-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
⚡ (wordpress) Add lib_version prop in shortcode
Closes #1035
- Loading branch information
1 parent
8d413f0
commit eeac493
Showing
6 changed files
with
19 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
{ | ||
"name": "@typebot.io/wordpress", | ||
"version": "3.4.2", | ||
"version": "3.5.0", | ||
"main": "index.js", | ||
"repository": "https://github.com/baptisteArno/typebot.io", | ||
"author": "baptisteArno", | ||
"license": "AGPL-3.0-or-later", | ||
"scripts": { | ||
"deploy": "pnpm copy && pnpm commit", | ||
"copy": "svn copy ./trunk ./tags/3.4.2", | ||
"commit": "svn ci -m 'Affect v0.2.15 to Standard embed'" | ||
"copy": "svn copy ./trunk ./tags/3.5.0", | ||
"commit": "svn ci -m 'Add lib_version attr in shortcode'" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -91,7 +91,11 @@ function typebot_script() | |
|
||
public function add_typebot_container($attributes = []) | ||
{ | ||
$lib_url = "https://cdn.jsdelivr.net/npm/@typebot.io/[email protected]/dist/web.js"; | ||
$lib_version = '0.2'; | ||
if(array_key_exists('lib_version', $attributes)) { | ||
$lib_version = sanitize_text_field($attributes['lib_version']); | ||
} | ||
$lib_url = "https://cdn.jsdelivr.net/npm/@typebot.io/js@". $lib_version ."/dist/web.js"; | ||
$width = '100%'; | ||
$height = '500px'; | ||
$api_host = 'https://typebot.io'; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
eeac493
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
builder-v2 – ./apps/builder
builder-v2-git-main-typebot-io.vercel.app
builder-v2-typebot-io.vercel.app
app.typebot.io