@innovastudio/contentbox 1.6.106 → 1.6.107
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@innovastudio/contentbox",
|
3
3
|
"type": "module",
|
4
|
-
"version": "1.6.
|
4
|
+
"version": "1.6.107",
|
5
5
|
"description": "",
|
6
6
|
"main": "public/contentbox/contentbox.esm.js",
|
7
7
|
"types": "index.d.ts",
|
@@ -28,6 +28,7 @@
|
|
28
28
|
"@babel/preset-env": "^7.15.0",
|
29
29
|
"@deepgram/sdk": "^2.3.0",
|
30
30
|
"@fal-ai/client": "^1.4.0",
|
31
|
+
"@google/genai": "^0.10.0",
|
31
32
|
"@rollup/plugin-babel": "^5.3.0",
|
32
33
|
"@rollup/plugin-commonjs": "^25.0.7",
|
33
34
|
"@rollup/plugin-eslint": "^8.0.1",
|
@@ -45,6 +46,7 @@
|
|
45
46
|
"mime-types": "^3.0.1",
|
46
47
|
"mini-css-extract-plugin": "^2.2.0",
|
47
48
|
"multer": "^1.4.5-lts.1",
|
49
|
+
"openai": "^4.96.2",
|
48
50
|
"request": "^2.88.2",
|
49
51
|
"rollup": "^2.59.0",
|
50
52
|
"rollup-plugin-terser": "^7.0.2",
|
@@ -57,7 +59,7 @@
|
|
57
59
|
"ws": "^8.13.0"
|
58
60
|
},
|
59
61
|
"dependencies": {
|
60
|
-
"@innovastudio/contentbuilder": "^1.5.
|
62
|
+
"@innovastudio/contentbuilder": "^1.5.103",
|
61
63
|
"js-beautify": "^1.14.0",
|
62
64
|
"sortablejs": "^1.15.2"
|
63
65
|
}
|
@@ -27828,7 +27828,7 @@ const renderQuickAdd = builder => {
|
|
27828
27828
|
dom.addEventListener(elm, 'click', () => {
|
27829
27829
|
// const mode = quickadd.getAttribute('data-mode');
|
27830
27830
|
|
27831
|
-
let html = `
|
27831
|
+
let html = builder.opts.formTemplate.trim() || `
|
27832
27832
|
<div class="row">
|
27833
27833
|
<div class="column" data-noedit
|
27834
27834
|
data-dialog-width="1600px"
|
@@ -27885,44 +27885,18 @@ const renderQuickAdd = builder => {
|
|
27885
27885
|
var viewer = new FormViewer(elm);
|
27886
27886
|
|
27887
27887
|
let json = {
|
27888
|
-
"title": "
|
27889
|
-
"description": "
|
27888
|
+
"title": "Let’s Build Something Cool!",
|
27889
|
+
"description": "Fuel your creativity with ease.",
|
27890
27890
|
"elements": [
|
27891
27891
|
{
|
27892
|
-
"title": "
|
27893
|
-
"name": "
|
27892
|
+
"title": "Your Name:",
|
27893
|
+
"name": "your_name",
|
27894
27894
|
"type": "short-text",
|
27895
27895
|
"isRequired": true,
|
27896
|
-
"placeholder": "Enter your
|
27897
|
-
},
|
27898
|
-
{
|
27899
|
-
"title": "Ticket Type:",
|
27900
|
-
"name": "ticket_type",
|
27901
|
-
"type": "select",
|
27902
|
-
"isRequired": true,
|
27903
|
-
"choices": [
|
27904
|
-
"Standard Admission",
|
27905
|
-
"VIP Admission",
|
27906
|
-
"Student Discount"
|
27907
|
-
]
|
27908
|
-
},
|
27909
|
-
{
|
27910
|
-
"title": "Select the sessions you’re interested in:",
|
27911
|
-
"name": "select_the_sessions_youre_interested_in",
|
27912
|
-
"type": "multi-select",
|
27913
|
-
"choices": [
|
27914
|
-
"Keynote Speech",
|
27915
|
-
"AI Workshop",
|
27916
|
-
"Networking Session"
|
27917
|
-
]
|
27918
|
-
},
|
27919
|
-
{
|
27920
|
-
"title": "Are you attending the networking dinner?",
|
27921
|
-
"name": "are_you_attending_the_networking_dinner",
|
27922
|
-
"type": "switch"
|
27896
|
+
"placeholder": "Enter your name"
|
27923
27897
|
},
|
27924
27898
|
{
|
27925
|
-
"title": "Email:",
|
27899
|
+
"title": "Your Best Email:",
|
27926
27900
|
"name": "email",
|
27927
27901
|
"type": "email",
|
27928
27902
|
"isRequired": true,
|
@@ -27930,7 +27904,7 @@ const renderQuickAdd = builder => {
|
|
27930
27904
|
}
|
27931
27905
|
],
|
27932
27906
|
"useSubmitButton": true,
|
27933
|
-
"submitText": "
|
27907
|
+
"submitText": "Let’s Go!"
|
27934
27908
|
};
|
27935
27909
|
|
27936
27910
|
const initialFormData = JSON.stringify(json);
|
@@ -27996,44 +27970,18 @@ const renderQuickAdd = builder => {
|
|
27996
27970
|
${encodeURIComponent(`
|
27997
27971
|
{
|
27998
27972
|
"json": {
|
27999
|
-
"title": "
|
28000
|
-
"description": "
|
27973
|
+
"title": "Let’s Build Something Cool!",
|
27974
|
+
"description": "Fuel your creativity with ease.",
|
28001
27975
|
"elements": [
|
28002
27976
|
{
|
28003
|
-
"title": "
|
28004
|
-
"name": "
|
27977
|
+
"title": "Your Name:",
|
27978
|
+
"name": "your_name",
|
28005
27979
|
"type": "short-text",
|
28006
27980
|
"isRequired": true,
|
28007
27981
|
"placeholder": "Enter your full name"
|
28008
27982
|
},
|
28009
27983
|
{
|
28010
|
-
"title": "
|
28011
|
-
"name": "ticket_type",
|
28012
|
-
"type": "select",
|
28013
|
-
"isRequired": true,
|
28014
|
-
"choices": [
|
28015
|
-
"Standard Admission",
|
28016
|
-
"VIP Admission",
|
28017
|
-
"Student Discount"
|
28018
|
-
]
|
28019
|
-
},
|
28020
|
-
{
|
28021
|
-
"title": "Select the sessions you’re interested in:",
|
28022
|
-
"name": "select_the_sessions_youre_interested_in",
|
28023
|
-
"type": "multi-select",
|
28024
|
-
"choices": [
|
28025
|
-
"Keynote Speech",
|
28026
|
-
"AI Workshop",
|
28027
|
-
"Networking Session"
|
28028
|
-
]
|
28029
|
-
},
|
28030
|
-
{
|
28031
|
-
"title": "Are you attending the networking dinner?",
|
28032
|
-
"name": "are_you_attending_the_networking_dinner",
|
28033
|
-
"type": "switch"
|
28034
|
-
},
|
28035
|
-
{
|
28036
|
-
"title": "Email:",
|
27984
|
+
"title": "Your Best Email:",
|
28037
27985
|
"name": "email",
|
28038
27986
|
"type": "email",
|
28039
27987
|
"isRequired": true,
|
@@ -28041,7 +27989,7 @@ const renderQuickAdd = builder => {
|
|
28041
27989
|
}
|
28042
27990
|
],
|
28043
27991
|
"useSubmitButton": true,
|
28044
|
-
"submitText": "
|
27992
|
+
"submitText": "Let’s Go!"
|
28045
27993
|
},
|
28046
27994
|
"thankYouMessage": "Thanks for your submission!",
|
28047
27995
|
"errorMessage": "Oops! There was a problem submitting your form.",
|
@@ -118825,6 +118773,7 @@ class ContentBuilder {
|
|
118825
118773
|
</div>
|
118826
118774
|
</div>
|
118827
118775
|
`,
|
118776
|
+
formTemplate: '',
|
118828
118777
|
/*
|
118829
118778
|
onZoomStart: () => {
|
118830
118779
|
},
|
@@ -156512,6 +156461,7 @@ class ContentBox {
|
|
156512
156461
|
</div>
|
156513
156462
|
</div>
|
156514
156463
|
`,
|
156464
|
+
formTemplate: '',
|
156515
156465
|
// pageTemplate: `
|
156516
156466
|
// <!DOCTYPE html>
|
156517
156467
|
// <html lang="en">
|
@@ -159951,6 +159901,7 @@ Add an image for each feature.`, 'Create a new block showcasing a photo gallery
|
|
159951
159901
|
imageRenameOnEdit: this.settings.imageRenameOnEdit,
|
159952
159902
|
icons: this.settings.icons,
|
159953
159903
|
sectionTemplate: this.settings.sectionTemplate,
|
159904
|
+
formTemplate: this.settings.formTemplate,
|
159954
159905
|
onBlockSectionAdd: () => {
|
159955
159906
|
this.pageSetup();
|
159956
159907
|
},
|