@builder.io/sdk-vue 0.7.6 → 0.8.1
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 +8 -7
- package/vue2/lib/{edge/block-1f2d2db7.cjs → browser/block-a0c2b259.cjs} +2 -2
- package/vue2/lib/{node/block-bbaf1d04.js → browser/block-f1233138.js} +10 -9
- package/vue2/lib/browser/block-styles-33d86077.cjs +1 -0
- package/vue2/lib/browser/{block-styles-fd9354cd.js → block-styles-ebf9b1a6.js} +8 -7
- package/vue2/lib/{edge/block-wrapper-e5b88192.js → browser/block-wrapper-57736e55.js} +8 -7
- package/vue2/lib/browser/block-wrapper-899031dc.cjs +1 -0
- package/vue2/lib/browser/blocks-wrapper-542bca6e.cjs +1 -0
- package/vue2/lib/{edge/blocks-wrapper-6746e3cd.js → browser/blocks-wrapper-a93bf471.js} +4 -3
- package/vue2/lib/{edge/component-ref-c33bfd71.js → browser/component-ref-8822545e.js} +9 -8
- package/vue2/lib/browser/component-ref-de2bce5c.cjs +1 -0
- package/vue2/lib/browser/constants/sdk-version.d.ts +1 -1
- package/vue2/lib/browser/content-3cada794.cjs +1 -0
- package/vue2/lib/{edge/content-2ea81381.js → browser/content-bd41cd51.js} +8 -7
- package/vue2/lib/browser/{css-5f8e03e7.js → css-445df887.js} +4 -3
- package/vue2/lib/browser/css-535c5d1c.cjs +6 -0
- package/vue2/lib/browser/enable-editor-4491b5dd.cjs +1 -0
- package/vue2/lib/{node/enable-editor-359d31d1.js → browser/enable-editor-9486d0af.js} +6 -5
- package/vue2/lib/browser/evaluate-a8ca82e7.cjs +1 -0
- package/vue2/lib/browser/{evaluate-04a2bd86.js → evaluate-b3a4e37f.js} +4 -3
- package/vue2/lib/browser/get-block-actions-3bd34049.cjs +1 -0
- package/vue2/lib/{node/get-block-actions-c8c3330b.js → browser/get-block-actions-e5886236.js} +5 -4
- package/vue2/lib/{edge/get-block-properties-721b933d.js → browser/get-block-properties-4030d3b5.js} +11 -10
- package/vue2/lib/browser/get-block-properties-d090641d.cjs +1 -0
- package/vue2/lib/browser/get-processed-block-14ea8201.cjs +1 -0
- package/vue2/lib/browser/{get-processed-block-1ddb5e78.js → get-processed-block-497309fc.js} +17 -16
- package/vue2/lib/{edge/index-1d97f3d7.cjs → browser/index-c5b74b20.cjs} +3 -3
- package/vue2/lib/{node/index-3fcbe332.js → browser/index-f3618847.js} +48 -47
- package/vue2/lib/browser/index.cjs +1 -1
- package/vue2/lib/browser/index.js +24 -23
- package/vue2/lib/browser/inlined-script-3dc8b278.cjs +1 -0
- package/vue2/lib/{edge/inlined-script-88ef6d76.js → browser/inlined-script-84f7b988.js} +7 -6
- package/vue2/lib/{node/inlined-styles-41df1b95.js → browser/inlined-styles-9918b05e.js} +5 -4
- package/vue2/lib/browser/inlined-styles-f1203db0.cjs +1 -0
- package/vue2/lib/{node/interactive-element-bbd449cb.js → browser/interactive-element-3720d577.js} +8 -7
- package/vue2/lib/browser/interactive-element-5656c996.cjs +1 -0
- package/vue2/lib/browser/repeated-block-37646894.cjs +1 -0
- package/vue2/lib/{node/repeated-block-82dffab6.js → browser/repeated-block-711036ce.js} +5 -4
- package/vue2/lib/{node/styles-b9c3f50e.cjs → browser/styles-18e2ee39.cjs} +2 -2
- package/vue2/lib/{edge/styles-fbe2ad34.js → browser/styles-e141b29e.js} +8 -7
- package/vue2/lib/edge/{block-88b23340.js → block-35ad0e3f.js} +10 -9
- package/vue2/lib/{browser/block-3acda1db.cjs → edge/block-65659a3f.cjs} +2 -2
- package/vue2/lib/edge/block-styles-236afaf6.cjs +1 -0
- package/vue2/lib/{node/block-styles-ae29f345.js → edge/block-styles-df04ce35.js} +8 -7
- package/vue2/lib/edge/block-wrapper-92227702.cjs +1 -0
- package/vue2/lib/{browser/block-wrapper-42a21f3a.js → edge/block-wrapper-ed85d5e5.js} +8 -7
- package/vue2/lib/{node/blocks-wrapper-1e6ad915.js → edge/blocks-wrapper-c1bdb5b4.js} +4 -3
- package/vue2/lib/edge/blocks-wrapper-ed1c3990.cjs +1 -0
- package/vue2/lib/{node/component-ref-205a7877.js → edge/component-ref-406288b4.js} +9 -8
- package/vue2/lib/edge/component-ref-6fe256db.cjs +1 -0
- package/vue2/lib/edge/constants/sdk-version.d.ts +1 -1
- package/vue2/lib/edge/content-78b300bf.cjs +1 -0
- package/vue2/lib/{browser/content-fea57461.js → edge/content-fbac6557.js} +8 -7
- package/vue2/lib/edge/{css-fdcffefa.js → css-11eef1df.js} +4 -3
- package/vue2/lib/edge/css-15965af3.cjs +6 -0
- package/vue2/lib/edge/enable-editor-d4895e04.cjs +1 -0
- package/vue2/lib/edge/{enable-editor-f32fd70b.js → enable-editor-f4bb4d8e.js} +6 -5
- package/vue2/lib/edge/{evaluate-907e638c.cjs → evaluate-0145ba88.cjs} +1 -1
- package/vue2/lib/edge/{evaluate-f1aeac53.js → evaluate-063c5f7a.js} +4 -3
- package/vue2/lib/edge/get-block-actions-7f885c3f.cjs +1 -0
- package/vue2/lib/edge/{get-block-actions-f7a64955.js → get-block-actions-89cffb9a.js} +5 -4
- package/vue2/lib/edge/get-block-properties-3f6858d3.cjs +1 -0
- package/vue2/lib/{node/get-block-properties-8711f880.js → edge/get-block-properties-aedb780e.js} +11 -10
- package/vue2/lib/edge/get-processed-block-adb656ef.cjs +1 -0
- package/vue2/lib/{node/get-processed-block-ee45c650.js → edge/get-processed-block-c0f0da5d.js} +16 -15
- package/vue2/lib/{node/index-bf858a42.cjs → edge/index-56af5fb4.cjs} +3 -3
- package/vue2/lib/{browser/index-efdcc0ee.js → edge/index-7870efd8.js} +48 -47
- package/vue2/lib/edge/index.cjs +1 -1
- package/vue2/lib/edge/index.js +24 -23
- package/vue2/lib/{node/inlined-script-24a8df2e.js → edge/inlined-script-a166a386.js} +7 -6
- package/vue2/lib/edge/inlined-script-a5b3779c.cjs +1 -0
- package/vue2/lib/edge/inlined-styles-029c0f2b.cjs +1 -0
- package/vue2/lib/edge/{inlined-styles-960710cc.js → inlined-styles-f7c080fd.js} +5 -4
- package/vue2/lib/edge/interactive-element-960a9e10.cjs +1 -0
- package/vue2/lib/{browser/interactive-element-eb83a760.js → edge/interactive-element-c889d9dc.js} +8 -7
- package/vue2/lib/{browser/repeated-block-b9f308bb.js → edge/repeated-block-07d2d25b.js} +5 -4
- package/vue2/lib/edge/repeated-block-0c2cb139.cjs +1 -0
- package/vue2/lib/{browser/styles-f398dedc.js → edge/styles-5c035753.js} +8 -7
- package/vue2/lib/edge/{styles-fccbcaef.cjs → styles-ed45e5cf.cjs} +2 -2
- package/vue2/lib/{browser/block-a6f87b59.js → node/block-7f67e05d.js} +10 -9
- package/vue2/lib/node/{block-250cdb0f.cjs → block-9f7dfe6d.cjs} +2 -2
- package/vue2/lib/{edge/block-styles-3ecae21c.js → node/block-styles-6d96e69c.js} +8 -7
- package/vue2/lib/node/block-styles-c993aa90.cjs +1 -0
- package/vue2/lib/node/block-wrapper-08f3c04a.cjs +1 -0
- package/vue2/lib/node/{block-wrapper-88b642c5.js → block-wrapper-4772c4ae.js} +8 -7
- package/vue2/lib/{browser/blocks-wrapper-ca4d46fe.js → node/blocks-wrapper-0a06ae61.js} +4 -3
- package/vue2/lib/node/blocks-wrapper-c8ab561d.cjs +1 -0
- package/vue2/lib/node/component-ref-19d8d4a8.cjs +1 -0
- package/vue2/lib/{browser/component-ref-1114d239.js → node/component-ref-6b1013d0.js} +9 -8
- package/vue2/lib/node/constants/sdk-version.d.ts +1 -1
- package/vue2/lib/node/{content-f12d606a.js → content-5de9cb53.js} +8 -7
- package/vue2/lib/node/content-7e6f95d2.cjs +1 -0
- package/vue2/lib/node/css-3747a91a.cjs +6 -0
- package/vue2/lib/node/{css-6048b6bd.js → css-ab629ac6.js} +4 -3
- package/vue2/lib/{browser/enable-editor-9e5fbca5.js → node/enable-editor-58b89268.js} +6 -5
- package/vue2/lib/node/enable-editor-a05ea891.cjs +1 -0
- package/vue2/lib/node/{evaluate-0814c11a.cjs → evaluate-5237e8df.cjs} +1 -1
- package/vue2/lib/node/{evaluate-834a9ea9.js → evaluate-e40501d4.js} +25 -23
- package/vue2/lib/{browser/get-block-actions-6bf6efd8.js → node/get-block-actions-261b93f6.js} +5 -4
- package/vue2/lib/node/get-block-actions-5d60bb63.cjs +1 -0
- package/vue2/lib/{browser/get-block-properties-d1d0bc05.js → node/get-block-properties-49526534.js} +11 -10
- package/vue2/lib/node/get-block-properties-ff0444df.cjs +1 -0
- package/vue2/lib/node/get-processed-block-3b811708.cjs +1 -0
- package/vue2/lib/{edge/get-processed-block-0ed76999.js → node/get-processed-block-7242c9a8.js} +16 -15
- package/vue2/lib/{browser/index-3caa5325.cjs → node/index-00b54a2d.cjs} +3 -3
- package/vue2/lib/{edge/index-5e05bfe5.js → node/index-f335cf42.js} +48 -47
- package/vue2/lib/node/index.cjs +1 -1
- package/vue2/lib/node/index.js +24 -23
- package/vue2/lib/{browser/inlined-script-ec4a5d29.js → node/inlined-script-b0441af1.js} +7 -6
- package/vue2/lib/node/inlined-script-e7e8cc4a.cjs +1 -0
- package/vue2/lib/node/inlined-styles-a8e61790.cjs +1 -0
- package/vue2/lib/{browser/inlined-styles-f423abf7.js → node/inlined-styles-c3091b9e.js} +5 -4
- package/vue2/lib/node/interactive-element-64032c60.cjs +1 -0
- package/vue2/lib/{edge/interactive-element-bb9f8f84.js → node/interactive-element-72f51043.js} +8 -7
- package/vue2/lib/node/repeated-block-c2df83ff.cjs +1 -0
- package/vue2/lib/{edge/repeated-block-06156896.js → node/repeated-block-f033b120.js} +5 -4
- package/vue2/lib/{browser/styles-d078f3c9.cjs → node/styles-7d3b3741.cjs} +2 -2
- package/vue2/lib/node/{styles-dc003dc5.js → styles-a1697843.js} +8 -7
- package/vue2/package.json +5 -0
- package/vue3/lib/{node/block-wrapper.56c45140.cjs → browser/block-wrapper.2dba8fb9.cjs} +1 -1
- package/vue3/lib/{node/block-wrapper.747652cc.js → browser/block-wrapper.93359482.js} +3 -3
- package/vue3/lib/{node/component-ref.4cde5228.js → browser/component-ref.348e3f3c.js} +3 -3
- package/vue3/lib/{node/component-ref.9c294efb.cjs → browser/component-ref.5d332cbe.cjs} +1 -1
- package/vue3/lib/browser/constants/sdk-version.d.ts +1 -1
- package/vue3/lib/browser/get-block-actions.91d70ba2.cjs +1 -0
- package/vue3/lib/{edge/get-block-actions.b12a50e1.js → browser/get-block-actions.ca6fe762.js} +6 -5
- package/vue3/lib/browser/{index.263ef516.cjs → index.796bf63b.cjs} +7 -7
- package/vue3/lib/browser/{index.3ca6cceb.js → index.c5cd33f5.js} +74 -73
- package/vue3/lib/browser/index.cjs +1 -1
- package/vue3/lib/browser/index.js +27 -26
- package/vue3/lib/{node/repeated-block.b45912e0.cjs → browser/repeated-block.293b3b51.cjs} +1 -1
- package/vue3/lib/{node/repeated-block.d9d63701.js → browser/repeated-block.aa5dc36f.js} +3 -3
- package/vue3/lib/edge/{block-wrapper.b96fad63.js → block-wrapper.0d57b295.js} +6 -5
- package/vue3/lib/edge/block-wrapper.57daa012.cjs +1 -0
- package/vue3/lib/edge/{component-ref.fef012d7.js → component-ref.47f4d835.js} +5 -4
- package/vue3/lib/edge/component-ref.5f18534f.cjs +1 -0
- package/vue3/lib/edge/constants/sdk-version.d.ts +1 -1
- package/vue3/lib/edge/get-block-actions.51f2dc73.cjs +1 -0
- package/vue3/lib/{browser/get-block-actions.b5062464.js → edge/get-block-actions.e18a650e.js} +6 -5
- package/vue3/lib/edge/{index.8968e581.js → index.a7c064ed.js} +128 -127
- package/vue3/lib/edge/{index.caa41e14.cjs → index.c0fdb424.cjs} +8 -8
- package/vue3/lib/edge/index.cjs +1 -1
- package/vue3/lib/edge/index.js +27 -26
- package/vue3/lib/edge/repeated-block.0dedccc0.cjs +1 -0
- package/vue3/lib/edge/{repeated-block.827595e1.js → repeated-block.dbf2ac5d.js} +5 -4
- package/vue3/lib/{browser/block-wrapper.1377d486.js → node/block-wrapper.1140bc59.js} +8 -6
- package/vue3/lib/node/block-wrapper.9e3f2443.cjs +1 -0
- package/vue3/lib/node/component-ref.814bc23c.cjs +1 -0
- package/vue3/lib/{browser/component-ref.0df2ace0.js → node/component-ref.cad6e759.js} +12 -10
- package/vue3/lib/node/constants/sdk-version.d.ts +1 -1
- package/vue3/lib/node/{get-block-actions.f57c50da.js → get-block-actions.46d61b25.js} +6 -5
- package/vue3/lib/node/get-block-actions.68f47245.cjs +1 -0
- package/vue3/lib/node/{index.941e6502.js → index.14c688da.js} +799 -793
- package/vue3/lib/node/index.456bef99.cjs +201 -0
- package/vue3/lib/node/index.cjs +1 -1
- package/vue3/lib/node/index.js +24 -23
- package/vue3/lib/node/repeated-block.19d21383.cjs +1 -0
- package/vue3/lib/{browser/repeated-block.055d09e9.js → node/repeated-block.e72a8275.js} +8 -6
- package/vue3/package.json +5 -0
- package/vue2/css/package.json +0 -4
- package/vue2/lib/browser/block-styles-5c462c72.cjs +0 -1
- package/vue2/lib/browser/block-wrapper-6614e2f6.cjs +0 -1
- package/vue2/lib/browser/blocks-wrapper-7761766b.cjs +0 -1
- package/vue2/lib/browser/component-ref-705f4623.cjs +0 -1
- package/vue2/lib/browser/content-4e18170c.cjs +0 -1
- package/vue2/lib/browser/css-bd209fae.cjs +0 -6
- package/vue2/lib/browser/enable-editor-430efbd4.cjs +0 -1
- package/vue2/lib/browser/evaluate-07174f5f.cjs +0 -1
- package/vue2/lib/browser/get-block-actions-84c842f6.cjs +0 -1
- package/vue2/lib/browser/get-block-properties-e2a40df1.cjs +0 -1
- package/vue2/lib/browser/get-processed-block-e0783c0a.cjs +0 -1
- package/vue2/lib/browser/inlined-script-335771a8.cjs +0 -1
- package/vue2/lib/browser/inlined-styles-3913a8d2.cjs +0 -1
- package/vue2/lib/browser/interactive-element-37bc0f5d.cjs +0 -1
- package/vue2/lib/browser/repeated-block-0d2b2875.cjs +0 -1
- package/vue2/lib/edge/block-styles-aceb9af8.cjs +0 -1
- package/vue2/lib/edge/block-wrapper-138380d7.cjs +0 -1
- package/vue2/lib/edge/blocks-wrapper-faea8d38.cjs +0 -1
- package/vue2/lib/edge/component-ref-7b7d8e68.cjs +0 -1
- package/vue2/lib/edge/content-5c39336c.cjs +0 -1
- package/vue2/lib/edge/css-23e659da.cjs +0 -6
- package/vue2/lib/edge/enable-editor-9d1118ea.cjs +0 -1
- package/vue2/lib/edge/get-block-actions-746c9bd2.cjs +0 -1
- package/vue2/lib/edge/get-block-properties-a5109149.cjs +0 -1
- package/vue2/lib/edge/get-processed-block-c0703239.cjs +0 -1
- package/vue2/lib/edge/inlined-script-9a554125.cjs +0 -1
- package/vue2/lib/edge/inlined-styles-908b0f3d.cjs +0 -1
- package/vue2/lib/edge/interactive-element-ad4ab167.cjs +0 -1
- package/vue2/lib/edge/repeated-block-5ba61f53.cjs +0 -1
- package/vue2/lib/node/block-styles-1e2640a2.cjs +0 -1
- package/vue2/lib/node/block-wrapper-ac53a924.cjs +0 -1
- package/vue2/lib/node/blocks-wrapper-a054ebaf.cjs +0 -1
- package/vue2/lib/node/component-ref-06eef9a6.cjs +0 -1
- package/vue2/lib/node/content-a5a1d56c.cjs +0 -1
- package/vue2/lib/node/css-b2c258a5.cjs +0 -6
- package/vue2/lib/node/enable-editor-fdd7a890.cjs +0 -1
- package/vue2/lib/node/get-block-actions-3773e4fd.cjs +0 -1
- package/vue2/lib/node/get-block-properties-3f9bfbe9.cjs +0 -1
- package/vue2/lib/node/get-processed-block-5728fca2.cjs +0 -1
- package/vue2/lib/node/inlined-script-05a289bc.cjs +0 -1
- package/vue2/lib/node/inlined-styles-7ac1dd90.cjs +0 -1
- package/vue2/lib/node/interactive-element-cae91247.cjs +0 -1
- package/vue2/lib/node/repeated-block-65e12830.cjs +0 -1
- package/vue3/css/package.json +0 -4
- package/vue3/lib/browser/block-wrapper.77966882.cjs +0 -1
- package/vue3/lib/browser/component-ref.cfa2879a.cjs +0 -1
- package/vue3/lib/browser/get-block-actions.53c9e174.cjs +0 -1
- package/vue3/lib/browser/repeated-block.10ac7676.cjs +0 -1
- package/vue3/lib/edge/block-wrapper.a5eacdf4.cjs +0 -1
- package/vue3/lib/edge/component-ref.4865219f.cjs +0 -1
- package/vue3/lib/edge/get-block-actions.e8f7801d.cjs +0 -1
- package/vue3/lib/edge/repeated-block.819e62ef.cjs +0 -1
- package/vue3/lib/node/get-block-actions.2b49b259.cjs +0 -1
- package/vue3/lib/node/index.6ab6fc2e.cjs +0 -201
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@builder.io/sdk-vue",
|
|
3
3
|
"description": "Builder.io SDK for Vue",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.8.1",
|
|
5
5
|
"main": "./vue3/lib/node/index.cjs",
|
|
6
6
|
"module": "./vue3/lib/node/index.js",
|
|
7
7
|
"type": "module",
|
|
@@ -9,12 +9,16 @@
|
|
|
9
9
|
"vue2",
|
|
10
10
|
"vue3"
|
|
11
11
|
],
|
|
12
|
+
"homepage": "https://github.com/BuilderIO/builder/tree/main/packages/sdks/output/vue",
|
|
13
|
+
"repository": {
|
|
14
|
+
"type": "git",
|
|
15
|
+
"url": "git+https://github.com/BuilderIO/builder.git",
|
|
16
|
+
"directory": "packages/sdks/output/vue"
|
|
17
|
+
},
|
|
12
18
|
"files": [
|
|
13
19
|
"vue2/lib",
|
|
14
|
-
"vue2/css/package.json",
|
|
15
20
|
"vue2/package.json",
|
|
16
21
|
"vue3/lib",
|
|
17
|
-
"vue3/css/package.json",
|
|
18
22
|
"vue3/package.json"
|
|
19
23
|
],
|
|
20
24
|
"exports": {
|
|
@@ -110,7 +114,6 @@
|
|
|
110
114
|
"require": "./vue2/lib/browser/index.cjs"
|
|
111
115
|
}
|
|
112
116
|
},
|
|
113
|
-
"./vue2/css": "./vue2/lib/browser/style.css",
|
|
114
117
|
"./vue3": {
|
|
115
118
|
"node": {
|
|
116
119
|
"import": "./vue3/lib/node/index.js",
|
|
@@ -160,9 +163,7 @@
|
|
|
160
163
|
"import": "./vue3/lib/browser/index.js",
|
|
161
164
|
"require": "./vue3/lib/browser/index.cjs"
|
|
162
165
|
}
|
|
163
|
-
}
|
|
164
|
-
"./vue3/css": "./vue3/lib/browser/style.css",
|
|
165
|
-
"./css": "./vue3/lib/browser/style.css"
|
|
166
|
+
}
|
|
166
167
|
},
|
|
167
168
|
"scripts": {
|
|
168
169
|
"release": "npm publish",
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("vue"),p=require("./get-processed-block-
|
|
1
|
+
"use strict";var _=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("vue"),p=require("./get-processed-block-14ea8201.cjs"),m=require("./evaluate-a8ca82e7.cjs"),d=require("./index-c5b74b20.cjs");function h(t){var e;return{...(e=t.component)==null?void 0:e.options,...t.options,builderBlock:t}}const u=["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],k=t=>typeof t=="string"&&u.includes(t.toLowerCase()),f=({block:t,context:e,registeredComponents:o})=>{var c;const r=(c=p.getProcessedBlock({block:t,localState:e.localState,rootState:e.rootState,rootSetState:e.rootSetState,context:e.context,shouldEvaluateBindings:!1}).component)==null?void 0:c.name;if(!r)return null;const n=o[r];if(n)return n;console.warn(`
|
|
2
2
|
Could not find a registered component named "${r}".
|
|
3
|
-
If you registered it, is the file that registered it imported by the file that needs to render it?`)},b=({block:t,context:e})=>{const{repeat:o,...r}=t;if(!(o!=null&&o.collection))return;const n=m.evaluate({code:o.collection,localState:e.localState,rootState:e.rootState,rootSetState:e.rootSetState,context:e.context});if(!Array.isArray(n))return;const c=o.collection.split(".").pop(),s=o.itemName||(c?c+"Item":"item");return n.map((l,i)=>({context:{...e,localState:{...e.localState,$index:i,$item:l,[s]:l,[`$${s}Index`]:i}},block:r}))},C=()=>Promise.resolve().then(()=>require("./block-styles-
|
|
3
|
+
If you registered it, is the file that registered it imported by the file that needs to render it?`)},b=({block:t,context:e})=>{const{repeat:o,...r}=t;if(!(o!=null&&o.collection))return;const n=m.evaluate({code:o.collection,localState:e.localState,rootState:e.rootState,rootSetState:e.rootSetState,context:e.context});if(!Array.isArray(n))return;const c=o.collection.split(".").pop(),s=o.itemName||(c?c+"Item":"item");return n.map((l,i)=>({context:{...e,localState:{...e.localState,$index:i,$item:l,[s]:l,[`$${s}Index`]:i}},block:r}))},C=()=>Promise.resolve().then(()=>require("./block-styles-33d86077.cjs")).then(t=>t.default).catch(t=>{throw console.error("Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",t),t}),g=()=>Promise.resolve().then(()=>require("./block-wrapper-899031dc.cjs")).then(t=>t.default).catch(t=>{throw console.error("Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",t),t}),B=()=>Promise.resolve().then(()=>require("./component-ref-de2bce5c.cjs")).then(t=>t.default).catch(t=>{throw console.error("Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",t),t}),S=()=>Promise.resolve().then(()=>require("./repeated-block-37646894.cjs")).then(t=>t.default).catch(t=>{throw console.error("Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",t),t}),P=a.defineComponent({name:"block",components:{"component-ref":B,"block-wrapper":g,"repeated-block":S,"block-styles":C},props:["block","context","registeredComponents"],data(){return{childrenContext:this.context,isEmptyHtmlElement:k}},computed:{blockComponent(){return f({block:this.block,context:this.context,registeredComponents:this.registeredComponents})},repeatItem(){return b({block:this.block,context:this.context})},processedBlock(){var t;return(t=this.block.repeat)!=null&&t.collection?this.block:p.getProcessedBlock({block:this.block,localState:this.context.localState,rootState:this.context.rootState,rootSetState:this.context.rootSetState,context:this.context.context,shouldEvaluateBindings:!0})},Tag(){return this.block.tagName||"div"},canShowBlock(){var o,r;if((o=this.block.repeat)!=null&&o.collection)return!!((r=this.repeatItem)!=null&&r.length);const t="hide"in this.processedBlock?this.processedBlock.hide:!1;return("show"in this.processedBlock?this.processedBlock.show:!0)&&!t},childrenWithoutParentComponent(){var e;return!((e=this.blockComponent)!=null&&e.component)&&!this.repeatItem?this.processedBlock.children??[]:[]},componentRefProps(){var t,e,o,r,n;return{blockChildren:this.processedBlock.children??[],componentRef:(t=this.blockComponent)==null?void 0:t.component,componentOptions:{...h(this.processedBlock),builderContext:this.context,...((e=this.blockComponent)==null?void 0:e.name)==="Symbol"||((o=this.blockComponent)==null?void 0:o.name)==="Columns"?{builderComponents:this.registeredComponents}:{}},context:this.childrenContext,registeredComponents:this.registeredComponents,builderBlock:this.processedBlock,includeBlockProps:((r=this.blockComponent)==null?void 0:r.noWrap)===!0,isInteractive:!((n=this.blockComponent)!=null&&n.isRSC)}}}});var x=function(){var r;var e=this,o=e._self._c;return e._self._setupProxy,(r=e.blockComponent)!=null&&r.noWrap&&e.canShowBlock?o("component-ref",{attrs:{componentRef:e.componentRefProps.componentRef,componentOptions:e.componentRefProps.componentOptions,blockChildren:e.componentRefProps.blockChildren,context:e.componentRefProps.context,registeredComponents:e.componentRefProps.registeredComponents,builderBlock:e.componentRefProps.builderBlock,includeBlockProps:e.componentRefProps.includeBlockProps,isInteractive:e.componentRefProps.isInteractive}}):e.isEmptyHtmlElement(e.Tag)&&e.canShowBlock?o("block-wrapper",{attrs:{Wrapper:e.Tag,block:e.processedBlock,context:e.context,hasChildren:!1}}):!e.isEmptyHtmlElement(e.Tag)&&e.repeatItem&&e.canShowBlock?o("div",{staticClass:"vue2-root-element-workaround"},e._l(e.repeatItem,function(n,c){return o("repeated-block",{key:c,attrs:{repeatContext:n.context,block:n.block,registeredComponents:e.registeredComponents}})}),1):e.canShowBlock?o("block-wrapper",{attrs:{Wrapper:e.Tag,block:e.processedBlock,context:e.context,hasChildren:!0}},[o("component-ref",{attrs:{componentRef:e.componentRefProps.componentRef,componentOptions:e.componentRefProps.componentOptions,blockChildren:e.componentRefProps.blockChildren,context:e.componentRefProps.context,registeredComponents:e.componentRefProps.registeredComponents,builderBlock:e.componentRefProps.builderBlock,includeBlockProps:e.componentRefProps.includeBlockProps,isInteractive:e.componentRefProps.isInteractive}}),e._l(e.childrenWithoutParentComponent,function(n,c){return o("block",{key:"block-"+n.id,attrs:{block:n,context:e.childrenContext,registeredComponents:e.registeredComponents}})}),e._l(e.childrenWithoutParentComponent,function(n,c){return o("block-styles",{key:"block-style-"+n.id,attrs:{block:n,context:e.childrenContext}})})],2):e._e()},R=[],y=d.normalizeComponent(P,x,R,!1,null,null,null,null);const v=y.exports;exports.default=v;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import "./style.css";
|
|
1
2
|
import { defineComponent as a } from "vue";
|
|
2
|
-
import { g as p } from "./get-processed-block-
|
|
3
|
-
import { e as m } from "./evaluate-
|
|
4
|
-
import { n as d } from "./index-
|
|
3
|
+
import { g as p } from "./get-processed-block-497309fc.js";
|
|
4
|
+
import { e as m } from "./evaluate-b3a4e37f.js";
|
|
5
|
+
import { n as d } from "./index-f3618847.js";
|
|
5
6
|
function h(t) {
|
|
6
7
|
var e;
|
|
7
8
|
return {
|
|
@@ -68,22 +69,22 @@ const k = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen",
|
|
|
68
69
|
},
|
|
69
70
|
block: r
|
|
70
71
|
}));
|
|
71
|
-
}, C = () => import("./block-styles-
|
|
72
|
+
}, C = () => import("./block-styles-ebf9b1a6.js").then((t) => t.default).catch((t) => {
|
|
72
73
|
throw console.error(
|
|
73
74
|
"Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
|
|
74
75
|
t
|
|
75
76
|
), t;
|
|
76
|
-
}), B = () => import("./block-wrapper-
|
|
77
|
+
}), B = () => import("./block-wrapper-57736e55.js").then((t) => t.default).catch((t) => {
|
|
77
78
|
throw console.error(
|
|
78
79
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
79
80
|
t
|
|
80
81
|
), t;
|
|
81
|
-
}), S = () => import("./component-ref-
|
|
82
|
+
}), S = () => import("./component-ref-8822545e.js").then((t) => t.default).catch((t) => {
|
|
82
83
|
throw console.error(
|
|
83
84
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
84
85
|
t
|
|
85
86
|
), t;
|
|
86
|
-
}), g = () => import("./repeated-block-
|
|
87
|
+
}), g = () => import("./repeated-block-711036ce.js").then((t) => t.default).catch((t) => {
|
|
87
88
|
throw console.error(
|
|
88
89
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
89
90
|
t
|
|
@@ -180,7 +181,7 @@ var R = function() {
|
|
|
180
181
|
null,
|
|
181
182
|
null
|
|
182
183
|
);
|
|
183
|
-
const
|
|
184
|
+
const T = P.exports;
|
|
184
185
|
export {
|
|
185
|
-
|
|
186
|
+
T as default
|
|
186
187
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var v=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("vue"),s=require("./index-c5b74b20.cjs"),d=require("./get-processed-block-14ea8201.cjs"),c=require("./css-535c5d1c.cjs");require("./evaluate-a8ca82e7.cjs");const p=()=>Promise.resolve().then(()=>require("./inlined-styles-f1203db0.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component InlinedStyles at ../../inlined-styles.vue",e),e}),k=y.defineComponent({name:"block-styles",components:{"inlined-styles":p},props:["block","context"],data(){return{TARGET:s.TARGET}},computed:{canShowBlock(){const e=d.getProcessedBlock({block:this.block,localState:this.context.localState,rootState:this.context.rootState,rootSetState:this.context.rootSetState,context:this.context.context,shouldEvaluateBindings:!0});return s.checkIsDefined(e.hide)?!e.hide:s.checkIsDefined(e.show)?e.show:!0},css(){var u;const e=d.getProcessedBlock({block:this.block,localState:this.context.localState,rootState:this.context.rootState,rootSetState:this.context.rootSetState,context:this.context.context,shouldEvaluateBindings:!0}),t=e.responsiveStyles,o=this.context.content,r=s.getSizesForBreakpoints(((u=o==null?void 0:o.meta)==null?void 0:u.breakpoints)||{}),l=t==null?void 0:t.large,a=t==null?void 0:t.medium,i=t==null?void 0:t.small,n=e.id;if(!n)return"";const S=l?c.createCssClass({className:n,styles:l}):"",m=a?c.createCssClass({className:n,styles:a,mediaQuery:s.getMaxWidthQueryForSize("medium",r)}):"",h=i?c.createCssClass({className:n,styles:i,mediaQuery:s.getMaxWidthQueryForSize("small",r)}):"";return[S,m,h].join(" ")}}});var x=function(){var t=this,o=t._self._c;return t._self._setupProxy,t.TARGET!=="reactNative"&&t.css&&t.canShowBlock?o("inlined-styles",{attrs:{styles:t.css}}):t._e()},_=[],f=s.normalizeComponent(k,x,_,!1,null,null,null,null);const g=f.exports;exports.default=g;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import "./style.css";
|
|
1
2
|
import { defineComponent as y } from "vue";
|
|
2
|
-
import { T as f, c as m, g as x, a as d, n as _ } from "./index-
|
|
3
|
-
import { g as u } from "./get-processed-block-
|
|
4
|
-
import { c as n } from "./css-
|
|
5
|
-
import "./evaluate-
|
|
6
|
-
const k = () => import("./inlined-styles-
|
|
3
|
+
import { T as f, c as m, g as x, a as d, n as _ } from "./index-f3618847.js";
|
|
4
|
+
import { g as u } from "./get-processed-block-497309fc.js";
|
|
5
|
+
import { c as n } from "./css-445df887.js";
|
|
6
|
+
import "./evaluate-b3a4e37f.js";
|
|
7
|
+
const k = () => import("./inlined-styles-9918b05e.js").then((e) => e.default).catch((e) => {
|
|
7
8
|
throw console.error(
|
|
8
9
|
"Error while attempting to dynamically import component InlinedStyles at ../../inlined-styles.vue",
|
|
9
10
|
e
|
|
@@ -76,7 +77,7 @@ var v = function() {
|
|
|
76
77
|
null,
|
|
77
78
|
null
|
|
78
79
|
);
|
|
79
|
-
const
|
|
80
|
+
const I = b.exports;
|
|
80
81
|
export {
|
|
81
|
-
|
|
82
|
+
I as default
|
|
82
83
|
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import "./style.css";
|
|
1
2
|
import { defineComponent as e } from "vue";
|
|
2
|
-
import { g as r } from "./get-block-actions-
|
|
3
|
-
import { g as c } from "./get-block-properties-
|
|
4
|
-
import { n } from "./index-
|
|
5
|
-
import "./evaluate-
|
|
6
|
-
import "./css-
|
|
3
|
+
import { g as r } from "./get-block-actions-e5886236.js";
|
|
4
|
+
import { g as c } from "./get-block-properties-4030d3b5.js";
|
|
5
|
+
import { n } from "./index-f3618847.js";
|
|
6
|
+
import "./evaluate-b3a4e37f.js";
|
|
7
|
+
import "./css-445df887.js";
|
|
7
8
|
const a = e({
|
|
8
9
|
name: "block-wrapper",
|
|
9
10
|
props: ["Wrapper", "block", "context", "hasChildren"],
|
|
@@ -60,7 +61,7 @@ var l = function() {
|
|
|
60
61
|
null,
|
|
61
62
|
null
|
|
62
63
|
);
|
|
63
|
-
const
|
|
64
|
+
const g = s.exports;
|
|
64
65
|
export {
|
|
65
|
-
|
|
66
|
+
g as default
|
|
66
67
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var x=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),r=require("./get-block-actions-3bd34049.cjs"),c=require("./get-block-properties-d090641d.cjs"),n=require("./index-c5b74b20.cjs");require("./evaluate-a8ca82e7.cjs");require("./css-535c5d1c.cjs");const l=o.defineComponent({name:"block-wrapper",props:["Wrapper","block","context","hasChildren"],data(){return{getBlockActions:r.getBlockActions,getBlockProperties:c.getBlockProperties}}});var a=function(){var t=this,e=t._self._c;return t._self._setupProxy,t.hasChildren?e(t.Wrapper,t._g(t._b({tag:"component"},"component",t.getBlockProperties({block:t.block,context:t.context}),!1),t.getBlockActions({block:t.block,rootState:t.context.rootState,rootSetState:t.context.rootSetState,localState:t.context.localState,context:t.context.context,stripPrefix:!0})),[t._t("default")],2):e(t.Wrapper,t._g(t._b({tag:"component"},"component",t.getBlockProperties({block:t.block,context:t.context}),!1),t.getBlockActions({block:t.block,rootState:t.context.rootState,rootSetState:t.context.rootSetState,localState:t.context.localState,context:t.context.context,stripPrefix:!0})))},s=[],i=n.normalizeComponent(l,a,s,!1,null,null,null,null);const p=i.exports;exports.default=p;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var u=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),r=require("./index-c5b74b20.cjs"),a=o.defineComponent({name:"builder-blocks-wrapper",props:["blocks","parent","path","styleProp"],computed:{className(){var t;return"builder-blocks"+((t=this.blocks)!=null&&t.length?"":" no-blocks")}},methods:{onClick(){var t,e;r.isEditing()&&!((t=this.blocks)!=null&&t.length)&&((e=window.parent)==null||e.postMessage({type:"builder.clickEmptyBlocks",data:{parentElementId:this.parent,dataPath:this.path}},"*"))},onMouseEnter(){var t,e;r.isEditing()&&!((t=this.blocks)!=null&&t.length)&&((e=window.parent)==null||e.postMessage({type:"builder.hoverEmptyBlocks",data:{parentElementId:this.parent,dataPath:this.path}},"*"))},_classStringToObject(t){const e={};if(typeof t!="string")return e;const s=t.trim().split(/\s+/);for(const n of s)e[n]=!0;return e}}});var i=function(){var e=this,s=e._self._c;return e._self._setupProxy,s("div",e._b({class:e._classStringToObject(e.className+" div-tqyw9m0iue"),style:e.styleProp,attrs:{"builder-path":e.path,"builder-parent-id":e.parent},on:{click:function(n){return e.onClick()},mouseenter:function(n){return e.onMouseEnter()},keypress:function(n){return e.onClick()}}},"div",{},!1),[e._t("default")],2)},l=[],c=r.normalizeComponent(a,i,l,!1,null,"a3106f07",null,null);const p=c.exports;exports.default=p;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import "./style.css";
|
|
1
2
|
import { defineComponent as o } from "vue";
|
|
2
|
-
import { i as r, n as a } from "./index-
|
|
3
|
+
import { i as r, n as a } from "./index-f3618847.js";
|
|
3
4
|
const l = o({
|
|
4
5
|
name: "builder-blocks-wrapper",
|
|
5
6
|
props: ["blocks", "parent", "path", "styleProp"],
|
|
@@ -66,7 +67,7 @@ var i = function() {
|
|
|
66
67
|
null,
|
|
67
68
|
null
|
|
68
69
|
);
|
|
69
|
-
const
|
|
70
|
+
const m = p.exports;
|
|
70
71
|
export {
|
|
71
|
-
|
|
72
|
+
m as default
|
|
72
73
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import "./style.css";
|
|
1
2
|
import { defineComponent as p } from "vue";
|
|
2
|
-
import { g as s } from "./get-block-properties-
|
|
3
|
-
import { n as a } from "./index-
|
|
4
|
-
import "./css-
|
|
3
|
+
import { g as s } from "./get-block-properties-4030d3b5.js";
|
|
4
|
+
import { n as a } from "./index-f3618847.js";
|
|
5
|
+
import "./css-445df887.js";
|
|
5
6
|
const m = (t) => t, k = ({
|
|
6
7
|
componentOptions: t,
|
|
7
8
|
builderBlock: e,
|
|
@@ -27,17 +28,17 @@ const m = (t) => t, k = ({
|
|
|
27
28
|
context: i
|
|
28
29
|
})
|
|
29
30
|
} : {}
|
|
30
|
-
}, u = () => import("./block-
|
|
31
|
+
}, u = () => import("./block-f1233138.js").then((t) => t.default).catch((t) => {
|
|
31
32
|
throw console.error(
|
|
32
33
|
"Error while attempting to dynamically import component Block at ../../block.vue",
|
|
33
34
|
t
|
|
34
35
|
), t;
|
|
35
|
-
}), f = () => import("./block-styles-
|
|
36
|
+
}), f = () => import("./block-styles-ebf9b1a6.js").then((t) => t.default).catch((t) => {
|
|
36
37
|
throw console.error(
|
|
37
38
|
"Error while attempting to dynamically import component BlockStyles at ../block-styles.vue",
|
|
38
39
|
t
|
|
39
40
|
), t;
|
|
40
|
-
}), c = () => import("./interactive-element-
|
|
41
|
+
}), c = () => import("./interactive-element-3720d577.js").then((t) => t.default).catch((t) => {
|
|
41
42
|
throw console.error(
|
|
42
43
|
"Error while attempting to dynamically import component InteractiveElement at ../interactive-element.vue",
|
|
43
44
|
t
|
|
@@ -96,7 +97,7 @@ var _ = function() {
|
|
|
96
97
|
null,
|
|
97
98
|
null
|
|
98
99
|
);
|
|
99
|
-
const
|
|
100
|
+
const C = v.exports;
|
|
100
101
|
export {
|
|
101
|
-
|
|
102
|
+
C as default
|
|
102
103
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var x=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("vue"),p=require("./get-block-properties-d090641d.cjs"),a=require("./index-c5b74b20.cjs");require("./css-535c5d1c.cjs");const m=t=>t,u=({componentOptions:t,builderBlock:e,context:n,componentRef:o,includeBlockProps:r,isInteractive:l,contextValue:i})=>l?{Wrapper:o,block:e,context:n,wrapperProps:t}:{...t,...r?{attributes:p.getBlockProperties({block:e,context:i})}:{}},d=()=>Promise.resolve().then(()=>require("./block-a0c2b259.cjs")).then(t=>t.default).catch(t=>{throw console.error("Error while attempting to dynamically import component Block at ../../block.vue",t),t}),k=()=>Promise.resolve().then(()=>require("./block-styles-33d86077.cjs")).then(t=>t.default).catch(t=>{throw console.error("Error while attempting to dynamically import component BlockStyles at ../block-styles.vue",t),t}),c=()=>Promise.resolve().then(()=>require("./interactive-element-5656c996.cjs")).then(t=>t.default).catch(t=>{throw console.error("Error while attempting to dynamically import component InteractiveElement at ../interactive-element.vue",t),t}),f=s.defineComponent({name:"component-ref",components:{block:d,"block-styles":k,"interactive-element":c},props:["isInteractive","componentRef","componentOptions","builderBlock","context","includeBlockProps","blockChildren","registeredComponents"],data(){return{Wrapper:this.isInteractive?m(c):this.componentRef,getWrapperProps:u}}});var v=function(){var e=this,n=e._self._c;return e._self._setupProxy,e.componentRef?n(e.Wrapper,e._b({tag:"component"},"component",e.getWrapperProps({componentOptions:e.componentOptions,builderBlock:e.builderBlock,context:e.context,componentRef:e.componentRef,includeBlockProps:e.includeBlockProps,isInteractive:e.isInteractive,contextValue:e.context}),!1),[e._l(e.blockChildren,function(o,r){return n("block",{key:"block-"+o.id,attrs:{block:o,context:e.context,registeredComponents:e.registeredComponents}})}),e._l(e.blockChildren,function(o,r){return n("block-styles",{key:"block-style-"+o.id,attrs:{block:o,context:e.context}})})],2):e._e()},b=[],_=a.normalizeComponent(f,v,b,!1,null,null,null,null);const h=_.exports;exports.default=h;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.
|
|
1
|
+
export declare const SDK_VERSION = "0.8.1";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var te=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("vue"),r=require("./index-c5b74b20.cjs"),g={name:"Core:Button",image:"https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",defaultStyles:{appearance:"none",paddingTop:"15px",paddingBottom:"15px",paddingLeft:"25px",paddingRight:"25px",backgroundColor:"#000000",color:"white",borderRadius:"4px",textAlign:"center",cursor:"pointer"},inputs:[{name:"text",type:"text",defaultValue:"Click me!",bubble:!0},{name:"link",type:"url",bubble:!0},{name:"openLinkInNewTab",type:"boolean",defaultValue:!1,friendlyName:"Open link in new tab"}],static:!0,noWrap:!0},b={name:"Columns",isRSC:!0,inputs:[{name:"columns",type:"array",broadcast:!0,subFields:[{name:"blocks",type:"array",hideFromUI:!0,defaultValue:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto",minHeight:"20px",minWidth:"20px",overflow:"hidden"}},component:{name:"Image",options:{image:"https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",backgroundPosition:"center",backgroundSize:"cover",aspectRatio:.7004048582995948}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto"}},component:{name:"Text",options:{text:"<p>Enter some text...</p>"}}}]},{name:"width",type:"number",hideFromUI:!0,helperText:"Width %, e.g. set to 50 to fill half of the space"},{name:"link",type:"url",helperText:"Optionally set a url that clicking this column will link to"}],defaultValue:[{blocks:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto",minHeight:"20px",minWidth:"20px",overflow:"hidden"}},component:{name:"Image",options:{image:"https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",backgroundPosition:"center",backgroundSize:"cover",aspectRatio:.7004048582995948}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto"}},component:{name:"Text",options:{text:"<p>Enter some text...</p>"}}}]},{blocks:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto",minHeight:"20px",minWidth:"20px",overflow:"hidden"}},component:{name:"Image",options:{image:"https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",backgroundPosition:"center",backgroundSize:"cover",aspectRatio:.7004048582995948}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto"}},component:{name:"Text",options:{text:"<p>Enter some text...</p>"}}}]}],onChange:e=>{function t(){n.forEach(o=>{o.delete("width")})}const n=e.get("columns");Array.isArray(n)&&n.find(a=>a.get("width"))&&(n.find(l=>!l.get("width"))||n.reduce((s,c)=>s+c.get("width"),0)!==100)&&t()}},{name:"space",type:"number",defaultValue:20,helperText:"Size of gap between columns",advanced:!0},{name:"stackColumnsAt",type:"string",defaultValue:"tablet",helperText:"Convert horizontal columns to vertical at what device size",enum:["tablet","mobile","never"],advanced:!0},{name:"reverseColumnsWhenStacked",type:"boolean",defaultValue:!1,helperText:"When stacking columns for mobile devices, reverse the ordering",advanced:!0}]},y={name:"Custom Code",static:!0,requiredPermissions:["editCode"],inputs:[{name:"code",type:"html",required:!0,defaultValue:"<p>Hello there, I am custom HTML code!</p>",code:!0},{name:"replaceNodes",type:"boolean",helperText:"Preserve server rendered dom nodes",advanced:!0},{name:"scriptsClientOnly",type:"boolean",defaultValue:!1,helperText:"Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",advanced:!0}]},x=u.defineComponent({name:"builder-custom-code",props:["replaceNodes","code"],data(){return{scriptsInserted:[],scriptsRun:[]}},mounted(){var t;if(!((t=this.$refs.elementRef)!=null&&t.getElementsByTagName)||typeof window>"u")return;const e=this.$refs.elementRef.getElementsByTagName("script");for(let n=0;n<e.length;n++){const o=e[n];if(o.src){if(this.scriptsInserted.includes(o.src))continue;this.scriptsInserted.push(o.src);const a=document.createElement("script");a.async=!0,a.src=o.src,document.head.appendChild(a)}else if(!o.type||["text/javascript","application/javascript","application/ecmascript"].includes(o.type)){if(this.scriptsRun.includes(o.innerText))continue;try{this.scriptsRun.push(o.innerText),new Function(o.innerText)()}catch(a){console.warn("`CustomCode`: Error running script:",a)}}}},methods:{_classStringToObject(e){const t={};if(typeof e!="string")return t;const n=e.trim().split(/\s+/);for(const o of n)t[o]=!0;return t}}});var v=function(){var t=this,n=t._self._c;return t._self._setupProxy,n("div",{ref:"elementRef",class:t._classStringToObject("builder-custom-code"+(t.replaceNodes?" replace-nodes":"")),domProps:{innerHTML:t._s(t.code)}})},S=[],T=r.normalizeComponent(x,v,S,!1,null,null,null,null);const _=T.exports,C={name:"Embed",static:!0,inputs:[{name:"url",type:"url",required:!0,defaultValue:"",helperText:"e.g. enter a youtube url, google map, etc",onChange:e=>{const t=e.get("url");if(t)return e.set("content","Loading..."),fetch(`https://iframe.ly/api/iframely?url=${t}&api_key=ae0e60e78201a3f2b0de4b`).then(o=>o.json()).then(o=>{e.get("url")===t&&(o.html?e.set("content",o.html):e.set("content","Invalid url, please try another"))}).catch(o=>{e.set("content","There was an error embedding this URL, please try again or another URL")});e.delete("content")}},{name:"content",type:"html",defaultValue:'<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',hideFromUI:!0}]},I=["text/javascript","application/javascript","application/ecmascript"],w=e=>I.includes(e.type),k=u.defineComponent({name:"builder-embed",props:["content"],data(){return{scriptsInserted:[],scriptsRun:[],ranInitFn:!1}},watch:{onUpdateHook0:{handler(){this.$refs.elem&&!this.ranInitFn&&(this.ranInitFn=!0,this.findAndRunScripts())},immediate:!0}},computed:{onUpdateHook0(){return{0:this.$refs.elem,1:this.ranInitFn}}},methods:{findAndRunScripts(){if(!this.$refs.elem||!this.$refs.elem.getElementsByTagName)return;const e=this.$refs.elem.getElementsByTagName("script");for(let t=0;t<e.length;t++){const n=e[t];if(n.src&&!this.scriptsInserted.includes(n.src)){this.scriptsInserted.push(n.src);const o=document.createElement("script");o.async=!0,o.src=n.src,document.head.appendChild(o)}else if(w(n)&&!this.scriptsRun.includes(n.innerText))try{this.scriptsRun.push(n.innerText),new Function(n.innerText)()}catch(o){console.warn("`Embed`: Error running script:",o)}}}}});var R=function(){var t=this,n=t._self._c;return t._self._setupProxy,n("div",{ref:"elem",staticClass:"builder-embed",domProps:{innerHTML:t._s(t.content)}})},F=[],E=r.normalizeComponent(k,R,F,!1,null,null,null,null);const V=E.exports,A={name:"Fragment",static:!0,hidden:!0,canHaveChildren:!0,noWrap:!0},P={name:"Image",static:!0,image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",defaultStyles:{position:"relative",minHeight:"20px",minWidth:"20px",overflow:"hidden"},canHaveChildren:!0,inputs:[{name:"image",type:"file",bubble:!0,allowedFileTypes:["jpeg","jpg","png","svg"],required:!0,defaultValue:"https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",onChange:e=>{e.delete("srcset"),e.delete("noWebp");function n(i,s=6e4){return new Promise((c,d)=>{const p=document.createElement("img");let m=!1;p.onload=()=>{m=!0,c(p)},p.addEventListener("error",h=>{console.warn("Image load failed",h.error),d(h.error)}),p.src=i,setTimeout(()=>{m||d(new Error("Image load timed out"))},s)})}function o(i){return Math.round(i*1e3)/1e3}const a=e.get("image"),l=e.get("aspectRatio");if(fetch(a).then(i=>i.blob()).then(i=>{i.type.includes("svg")&&e.set("noWebp",!0)}),a&&(!l||l===.7041))return n(a).then(i=>{const s=e.get("aspectRatio");e.get("image")===a&&(!s||s===.7041)&&i.width&&i.height&&(e.set("aspectRatio",o(i.height/i.width)),e.set("height",i.height),e.set("width",i.width))})}},{name:"backgroundSize",type:"text",defaultValue:"cover",enum:[{label:"contain",value:"contain",helperText:"The image should never get cropped"},{label:"cover",value:"cover",helperText:"The image should fill it's box, cropping when needed"}]},{name:"backgroundPosition",type:"text",defaultValue:"center",enum:["center","top","left","right","bottom","top left","top right","bottom left","bottom right"]},{name:"altText",type:"string",helperText:"Text to display when the user has images off"},{name:"height",type:"number",hideFromUI:!0},{name:"width",type:"number",hideFromUI:!0},{name:"sizes",type:"string",hideFromUI:!0},{name:"srcset",type:"string",hideFromUI:!0},{name:"lazy",type:"boolean",defaultValue:!0,hideFromUI:!0},{name:"fitContent",type:"boolean",helperText:"When child blocks are provided, fit to them instead of using the image's aspect ratio",defaultValue:!0},{name:"aspectRatio",type:"number",helperText:"This is the ratio of height/width, e.g. set to 1.5 for a 300px wide and 200px tall photo. Set to 0 to not force the image to maintain it's aspect ratio",advanced:!0,defaultValue:.7041}]},W={name:"Raw:Img",hideFromInsertMenu:!0,image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",inputs:[{name:"image",bubble:!0,type:"file",allowedFileTypes:["jpeg","jpg","png","svg","gif","webp"],required:!0}],noWrap:!0,static:!0},$=u.defineComponent({name:"builder-img-component",props:["backgroundSize","backgroundPosition","imgSrc","altText","image","attributes"],data(){return{isEditing:r.isEditing,filterAttrs:r.filterAttrs}}});var U=function(){var t=this,n=t._self._c;return t._self._setupProxy,n("img",t._g(t._b({key:t.isEditing()&&t.imgSrc||"default-key",style:{objectFit:t.backgroundSize||"cover",objectPosition:t.backgroundPosition||"center"},attrs:{alt:t.altText,src:t.imgSrc||t.image}},"img",t.filterAttrs(t.attributes,"v-on:",!1),!1),t.filterAttrs(t.attributes,"v-on:",!0)))},j=[],z=r.normalizeComponent($,U,j,!1,null,null,null,null);const H=z.exports,q={name:"Core:Section",static:!0,image:"https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",inputs:[{name:"maxWidth",type:"number",defaultValue:1200},{name:"lazyLoad",type:"boolean",defaultValue:!1,advanced:!0,description:"Only render this section when in view"}],defaultStyles:{paddingLeft:"20px",paddingRight:"20px",paddingTop:"50px",paddingBottom:"50px",marginTop:"0px",width:"100vw",marginLeft:"calc(50% - 50vw)"},canHaveChildren:!0,defaultChildren:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{textAlign:"center"}},component:{name:"Text",options:{text:"<p><b>I am a section! My content keeps from getting too wide, so that it's easy to read even on big screens.</b></p><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur</p>"}}}]},L={name:"Symbol",noWrap:!0,static:!0,isRSC:!0,inputs:[{name:"symbol",type:"uiSymbol"},{name:"dataOnly",helperText:"Make this a data symbol that doesn't display any UI",type:"boolean",defaultValue:!1,advanced:!0,hideFromUI:!0},{name:"inheritState",helperText:"Inherit the parent component state and data",type:"boolean",defaultValue:!1,advanced:!0},{name:"renderToLiquid",helperText:"Render this symbols contents to liquid. Turn off to fetch with javascript and use custom targeting",type:"boolean",defaultValue:!1,advanced:!0,hideFromUI:!0},{name:"useChildren",hideFromUI:!0,type:"boolean"}]},D={name:"Text",static:!0,isRSC:!0,image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-text_fields-24px%20(1).svg?alt=media&token=12177b73-0ee3-42ca-98c6-0dd003de1929",inputs:[{name:"text",type:"html",required:!0,autoFocus:!0,bubble:!0,defaultValue:"Enter some text..."}],defaultStyles:{lineHeight:"normal",height:"auto",textAlign:"center"}},M={name:"Video",canHaveChildren:!0,defaultStyles:{minHeight:"20px",minWidth:"20px"},image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-videocam-24px%20(1).svg?alt=media&token=49a84e4a-b20e-4977-a650-047f986874bb",inputs:[{name:"video",type:"file",allowedFileTypes:["mp4"],bubble:!0,defaultValue:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/assets%2FKQlEmWDxA0coC3PK6UvkrjwkIGI2%2F28cb070609f546cdbe5efa20e931aa4b?alt=media&token=912e9551-7a7c-4dfb-86b6-3da1537d1a7f",required:!0},{name:"posterImage",type:"file",allowedFileTypes:["jpeg","png"],helperText:"Image to show before the video plays"},{name:"autoPlay",type:"boolean",defaultValue:!0},{name:"controls",type:"boolean",defaultValue:!1},{name:"muted",type:"boolean",defaultValue:!0},{name:"loop",type:"boolean",defaultValue:!0},{name:"playsInline",type:"boolean",defaultValue:!0},{name:"fit",type:"text",defaultValue:"cover",enum:["contain","cover","fill","auto"]},{name:"preload",type:"text",defaultValue:"metadata",enum:["auto","metadata","none"]},{name:"fitContent",type:"boolean",helperText:"When child blocks are provided, fit to them instead of using the aspect ratio",defaultValue:!0,advanced:!0},{name:"position",type:"text",defaultValue:"center",enum:["center","top","left","right","bottom","top left","top right","bottom left","bottom right"]},{name:"height",type:"number",advanced:!0},{name:"width",type:"number",advanced:!0},{name:"aspectRatio",type:"number",advanced:!0,defaultValue:.7004048582995948},{name:"lazyLoad",type:"boolean",helperText:'Load this video "lazily" - as in only when a user scrolls near the video. Recommended for optmized performance and bandwidth consumption',defaultValue:!0,advanced:!0}]},f=()=>[{component:r.Button,...g},{component:r.Columns,...b},{component:_,...y},{component:V,...C},{component:r.Fragment,...A},{component:r.Image,...P},{component:H,...W},{component:r.Section,...q},{component:r.Symbol,...L},{component:r.Text,...D},{component:r.Video,...M}],B=({content:e,data:t,locale:n})=>{var l,i,s;const o={},a=((l=e==null?void 0:e.data)==null?void 0:l.state)||{};return(s=(i=e==null?void 0:e.data)==null?void 0:i.inputs)==null||s.forEach(c=>{c.name&&c.defaultValue!==void 0&&(o[c.name]=c.defaultValue)}),{...o,...a,...t,...n?{locale:n}:{}}},N=({content:e,data:t})=>e?{...e,data:{...e==null?void 0:e.data,...t},meta:e==null?void 0:e.meta}:void 0,K=()=>Promise.resolve().then(()=>require("./index-c5b74b20.cjs")).then(e=>e.blocks).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component Blocks at ../blocks/blocks.vue",e),e}),O=()=>Promise.resolve().then(()=>require("./inlined-script-3dc8b278.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component InlinedScript at ../inlined-script.vue",e),e}),G=()=>Promise.resolve().then(()=>require("./enable-editor-4491b5dd.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component EnableEditor at ./components/enable-editor.vue",e),e}),J=()=>Promise.resolve().then(()=>require("./styles-18e2ee39.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component ContentStyles at ./components/styles.vue",e),e}),Y=u.defineComponent({name:"content-component",components:{"enable-editor":G,"inlined-script":O,"content-styles":J,blocks:K},props:["content","customComponents","data","locale","context","apiKey","apiVersion","model","canTrack","includeRefs","enrich","showContent","isSsrAbTest"],data(){var e,t;return{scriptStr:r.getUpdateVariantVisibilityScript({variationId:(e=this.content)==null?void 0:e.testVariationId,contentId:(t=this.content)==null?void 0:t.id}),registeredComponents:[...f(),...r.components,...this.customComponents||[]].reduce((n,{component:o,...a})=>({...n,[a.name]:{component:o,...r.serializeComponentInfo(a)}}),{}),builderContextSignal:{content:N({content:this.content,data:this.data}),localState:void 0,rootState:B({content:this.content,data:this.data,locale:this.locale}),rootSetState:this.contentSetState,context:this.context||{},apiKey:this.apiKey,apiVersion:this.apiVersion,componentInfos:[...f(),...r.components,...this.customComponents||[]].reduce((n,{component:o,...a})=>({...n,[a.name]:r.serializeComponentInfo(a)}),{}),inheritedStyles:{}},TARGET:r.TARGET}},provide(){const e=this;return{[r.ComponentsContext.key]:{registeredComponents:e.registeredComponents}}},methods:{contentSetState(e){this.builderContextSignal.rootState=e}}});var X=function(){var o,a,l,i,s,c,d;var t=this,n=t._self._c;return t._self._setupProxy,n("enable-editor",t._b({attrs:{content:t.content,model:t.model,context:t.context,apiKey:t.apiKey,canTrack:t.canTrack,locale:t.locale,includeRefs:t.includeRefs,enrich:t.enrich,showContent:t.showContent,builderContextSignal:t.builderContextSignal}},"enable-editor",{},!1),[t.isSsrAbTest?[n("inlined-script",{attrs:{scriptStr:t.scriptStr}})]:t._e(),t.TARGET!=="reactNative"?[n("content-styles",{attrs:{contentId:(o=t.builderContextSignal.content)==null?void 0:o.id,cssCode:(l=(a=t.builderContextSignal.content)==null?void 0:a.data)==null?void 0:l.cssCode,customFonts:(s=(i=t.builderContextSignal.content)==null?void 0:i.data)==null?void 0:s.customFonts}})]:t._e(),n("blocks",{attrs:{blocks:(d=(c=t.builderContextSignal.content)==null?void 0:c.data)==null?void 0:d.blocks,context:t.builderContextSignal,registeredComponents:t.registeredComponents}})],2)},Q=[],Z=r.normalizeComponent(Y,X,Q,!1,null,null,null,null);const ee=Z.exports;exports.default=ee;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import "./style.css";
|
|
1
2
|
import { defineComponent as p } from "vue";
|
|
2
|
-
import { n as u, i as y, b as x, B as v, C as _, F as S, I as T, S as I, d as C, e as w, V as k, h as F, j as f, s as g, T as R, k as V } from "./index-
|
|
3
|
+
import { n as u, i as y, b as x, B as v, C as _, F as S, I as T, S as I, d as C, e as w, V as k, h as F, j as f, s as g, T as R, k as V } from "./index-f3618847.js";
|
|
3
4
|
const E = {
|
|
4
5
|
name: "Core:Button",
|
|
5
6
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
@@ -779,22 +780,22 @@ const ee = Z.exports, te = {
|
|
|
779
780
|
...t
|
|
780
781
|
},
|
|
781
782
|
meta: e == null ? void 0 : e.meta
|
|
782
|
-
} : void 0, se = () => import("./index-
|
|
783
|
+
} : void 0, se = () => import("./index-f3618847.js").then((e) => e.M).then((e) => e.default).catch((e) => {
|
|
783
784
|
throw console.error(
|
|
784
785
|
"Error while attempting to dynamically import component Blocks at ../blocks/blocks.vue",
|
|
785
786
|
e
|
|
786
787
|
), e;
|
|
787
|
-
}), le = () => import("./inlined-script-
|
|
788
|
+
}), le = () => import("./inlined-script-84f7b988.js").then((e) => e.default).catch((e) => {
|
|
788
789
|
throw console.error(
|
|
789
790
|
"Error while attempting to dynamically import component InlinedScript at ../inlined-script.vue",
|
|
790
791
|
e
|
|
791
792
|
), e;
|
|
792
|
-
}), ce = () => import("./enable-editor-
|
|
793
|
+
}), ce = () => import("./enable-editor-9486d0af.js").then((e) => e.default).catch((e) => {
|
|
793
794
|
throw console.error(
|
|
794
795
|
"Error while attempting to dynamically import component EnableEditor at ./components/enable-editor.vue",
|
|
795
796
|
e
|
|
796
797
|
), e;
|
|
797
|
-
}), de = () => import("./styles-
|
|
798
|
+
}), de = () => import("./styles-e141b29e.js").then((e) => e.default).catch((e) => {
|
|
798
799
|
throw console.error(
|
|
799
800
|
"Error while attempting to dynamically import component ContentStyles at ./components/styles.vue",
|
|
800
801
|
e
|
|
@@ -914,7 +915,7 @@ var ue = function() {
|
|
|
914
915
|
null,
|
|
915
916
|
null
|
|
916
917
|
);
|
|
917
|
-
const
|
|
918
|
+
const ye = he.exports;
|
|
918
919
|
export {
|
|
919
|
-
|
|
920
|
+
ye as default
|
|
920
921
|
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "./style.css";
|
|
2
|
+
import { c as o } from "./index-f3618847.js";
|
|
2
3
|
const c = (s) => s.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), n = (s) => Object.entries(s).map(([r, e]) => {
|
|
3
4
|
if (typeof e == "string")
|
|
4
5
|
return `${c(r)}: ${e};`;
|
|
5
6
|
}).filter(o), a = (s) => n(s).join(`
|
|
6
|
-
`),
|
|
7
|
+
`), l = ({
|
|
7
8
|
mediaQuery: s,
|
|
8
9
|
className: t,
|
|
9
10
|
styles: r
|
|
@@ -17,5 +18,5 @@ const c = (s) => s.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(
|
|
|
17
18
|
};
|
|
18
19
|
export {
|
|
19
20
|
n as a,
|
|
20
|
-
|
|
21
|
+
l as c
|
|
21
22
|
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";var l=require("./style.css");const c=require("./index-c5b74b20.cjs"),n=e=>e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase(),o=e=>Object.entries(e).map(([r,s])=>{if(typeof s=="string")return`${n(r)}: ${s};`}).filter(c.checkIsDefined),a=e=>o(e).join(`
|
|
2
|
+
`),i=({mediaQuery:e,className:t,styles:r})=>{const s=`.${t} {
|
|
3
|
+
${a(r)}
|
|
4
|
+
}`;return e?`${e} {
|
|
5
|
+
${s}
|
|
6
|
+
}`:s};exports.convertStyleMapToCSSArray=o;exports.createCssClass=i;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var H=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("vue"),r=require("./index-c5b74b20.cjs"),m=require("./evaluate-a8ca82e7.cjs");function f(n){return Math.round(n*1e3)/1e3}const v=(n,e,t=!0)=>{if(!(n instanceof HTMLElement))return null;let i=t?n:n.parentElement;do{if(!i)return null;if(e(i))return i}while(i=i.parentElement);return null},x=n=>v(n,e=>{const t=e.getAttribute("builder-id")||e.id;return(t==null?void 0:t.indexOf("builder-"))===0}),g=({event:n,target:e})=>{const t=e.getBoundingClientRect(),i=n.clientX-t.left,o=n.clientY-t.top,s=f(i/t.width),a=f(o/t.height);return{x:s,y:a}},R=n=>{const e=n.target,t=e&&x(e),i=(t==null?void 0:t.getAttribute("builder-id"))||(t==null?void 0:t.id);return{targetBuilderElement:i||void 0,metadata:{targetOffset:e?g({event:n,target:e}):void 0,builderTargetOffset:t?g({event:n,target:t}):void 0,builderElementIndex:t&&i?[].slice.call(document.getElementsByClassName(i)).indexOf(t):void 0}}},k="0.8.1",w=()=>{r.register("insertMenu",{name:"_default",default:!0,items:[{name:"Box"},{name:"Text"},{name:"Image"},{name:"Columns"},{name:"Core:Section"},{name:"Core:Button"},{name:"Embed"},{name:"Custom Code"}]})};let b=!1;const y=(n={})=>{var e,t;b||(b=!0,r.isBrowser()&&((e=window.parent)==null||e.postMessage({type:"builder.sdkInfo",data:{target:r.TARGET,version:k,supportsPatchUpdates:!1,supportsAddBlockScoping:!0,supportsCustomBreakpoints:!0}},"*"),(t=window.parent)==null||t.postMessage({type:"builder.updateContent",data:{options:n}},"*"),window.addEventListener("message",({data:i})=>{var o,s;if(i!=null&&i.type)switch(i.type){case"builder.evaluate":{const a=i.data.text,l=i.data.arguments||[],c=i.data.id,C=new Function(a);let d,u=null;try{d=C.apply(null,l)}catch(h){u=h}u?(o=window.parent)==null||o.postMessage({type:"builder.evaluateError",data:{id:c,error:u.message}},"*"):d&&typeof d.then=="function"?d.then(h=>{var p;(p=window.parent)==null||p.postMessage({type:"builder.evaluateResult",data:{id:c,result:h}},"*")}).catch(console.error):(s=window.parent)==null||s.postMessage({type:"builder.evaluateResult",data:{result:d,id:c}},"*");break}}})))},_=S.defineComponent({name:"enable-editor",props:["builderContextSignal","model","context","canTrack","apiKey","locale","includeRefs","enrich","content","showContent"],data(){return{forceReRenderCount:0,lastUpdated:0,shouldSendResetCookie:!1,httpReqsData:{},clicked:!1,builderContext:r.builderContext}},provide(){const n=this;return{[r.builderContext.key]:n.builderContextSignal}},mounted(){(()=>{var t,i;if(r.isBrowser()){if(r.isEditing()&&this.$refs.elementRef&&this.$refs.elementRef.dispatchEvent(new CustomEvent("initeditingbldr")),this.builderContextSignal.content&&r.getDefaultCanTrack(this.canTrack)){const s=(t=this.builderContextSignal.content)==null?void 0:t.testVariationId,a=(i=this.builderContextSignal.content)==null?void 0:i.id,l=this.apiKey;r._track({type:"impression",canTrack:!0,contentId:a,apiKey:l,variationId:s!==a?s:void 0})}r.isPreviewing()&&this.$refs.elementRef&&this.$refs.elementRef.dispatchEvent(new CustomEvent("initpreviewingbldr"))}})(),(()=>{this.apiKey||r.logger.error("No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."),this.evaluateJsCode(),this.runHttpRequests(),this.emitStateUpdate()})()},watch:{onUpdateHook0:{handler(){this.content&&this.mergeNewContent(this.content)},immediate:!0},onUpdateHook1:{handler(){},immediate:!0},onUpdateHook2:{handler(){this.evaluateJsCode()},immediate:!0},onUpdateHook3:{handler(){this.runHttpRequests()},immediate:!0},onUpdateHook4:{handler(){this.emitStateUpdate()},immediate:!0}},unmounted(){r.isBrowser()&&(window.removeEventListener("message",this.processMessage),window.removeEventListener("builder:component:stateChangeListenerActivated",this.emitStateUpdate))},computed:{onUpdateHook0(){return{0:this.content}},onUpdateHook1(){return{0:this.shouldSendResetCookie}},onUpdateHook2(){var n,e;return{0:(e=(n=this.builderContextSignal.content)==null?void 0:n.data)==null?void 0:e.jsCode,1:this.builderContextSignal.rootState}},onUpdateHook3(){var n,e;return{0:(e=(n=this.builderContextSignal.content)==null?void 0:n.data)==null?void 0:e.httpRequests}},onUpdateHook4(){return{0:this.builderContextSignal.rootState}}},methods:{mergeNewContent(n){var t,i,o,s,a;const e={...this.builderContextSignal.content,...n,data:{...(t=this.builderContextSignal.content)==null?void 0:t.data,...n==null?void 0:n.data},meta:{...(i=this.builderContextSignal.content)==null?void 0:i.meta,...n==null?void 0:n.meta,breakpoints:((o=n==null?void 0:n.meta)==null?void 0:o.breakpoints)||((a=(s=this.builderContextSignal.content)==null?void 0:s.meta)==null?void 0:a.breakpoints)}};this.builderContextSignal.content=e},processMessage(n){var t;const{data:e}=n;if(e)switch(e.type){case"builder.configureSdk":{const i=e.data,{breakpoints:o,contentId:s}=i;if(!s||s!==((t=this.builderContextSignal.content)==null?void 0:t.id))return;o&&this.mergeNewContent({meta:{breakpoints:o}}),this.forceReRenderCount=this.forceReRenderCount+1;break}case"builder.contentUpdate":{const i=e.data,o=i.key||i.alias||i.entry||i.modelName,s=i.data;o===this.model&&(this.mergeNewContent(s),this.forceReRenderCount=this.forceReRenderCount+1);break}}},evaluateJsCode(){var e,t;const n=(t=(e=this.builderContextSignal.content)==null?void 0:e.data)==null?void 0:t.jsCode;n&&m.evaluate({code:n,context:this.context||{},localState:void 0,rootState:this.builderContextSignal.rootState,rootSetState:this.builderContextSignal.rootSetState})},onClick(n){var e,t;if(this.builderContextSignal.content){const i=(e=this.builderContextSignal.content)==null?void 0:e.testVariationId,o=(t=this.builderContextSignal.content)==null?void 0:t.id;r._track({type:"click",canTrack:r.getDefaultCanTrack(this.canTrack),contentId:o,apiKey:this.apiKey,variationId:i!==o?i:void 0,...R(n),unique:!this.clicked})}this.clicked||(this.clicked=!0)},evalExpression(n){return n.replace(/{{([^}]+)}}/g,(e,t)=>m.evaluate({code:t,context:this.context||{},localState:void 0,rootState:this.builderContextSignal.rootState,rootSetState:this.builderContextSignal.rootSetState}))},handleRequest({url:n,key:e}){r.fetch(n).then(t=>t.json()).then(t=>{var o,s;const i={...this.builderContextSignal.rootState,[e]:t};(s=(o=this.builderContextSignal).rootSetState)==null||s.call(o,i),this.httpReqsData[e]=!0}).catch(t=>{console.error("error fetching dynamic data",n,t)})},runHttpRequests(){var e,t;const n=((t=(e=this.builderContextSignal.content)==null?void 0:e.data)==null?void 0:t.httpRequests)??{};Object.entries(n).forEach(([i,o])=>{if(o&&(!this.httpReqsData[i]||r.isEditing())){const s=this.evalExpression(o);this.handleRequest({url:s,key:i})}})},emitStateUpdate(){r.isEditing()&&window.dispatchEvent(new CustomEvent("builder:component:stateChange",{detail:{state:r.fastClone(this.builderContextSignal.rootState),ref:{name:this.model}}}))},elementRef_onIniteditingbldr(n){this.forceReRenderCount=this.forceReRenderCount+1,window.addEventListener("message",this.processMessage),w(),y({...this.locale?{locale:this.locale}:{},...this.includeRefs?{includeRefs:this.includeRefs}:{},...this.enrich?{enrich:this.enrich}:{}}),Object.values(this.builderContextSignal.componentInfos).forEach(e=>{var i;const t=r.createRegisterComponentMessage(e);(i=window.parent)==null||i.postMessage(t,"*")}),window.addEventListener("builder:component:stateChangeListenerActivated",this.emitStateUpdate)},elementRef_onInitpreviewingbldr(n){const e=new URL(location.href).searchParams,t=e.get("builder.preview"),i=e.get(`builder.preview.${t}`),o=e.get("apiKey")||e.get("builder.space");t===this.model&&o===this.apiKey&&(!this.content||i===this.content.id)&&r.fetchOneEntry({model:this.model,apiKey:this.apiKey,apiVersion:this.builderContextSignal.apiVersion}).then(s=>{s&&this.mergeNewContent(s)})},_classStringToObject(n){const e={};if(typeof n!="string")return e;const t=n.trim().split(/\s+/);for(const i of t)e[i]=!0;return e}}});var E=function(){var i,o,s;var e=this,t=e._self._c;return e._self._setupProxy,e.builderContextSignal.content?t("div",e._b({key:e.forceReRenderCount,ref:"elementRef",class:e._classStringToObject(`variant-${((i=e.content)==null?void 0:i.testVariationId)||((o=e.content)==null?void 0:o.id)}`),attrs:{"builder-content-id":(s=e.builderContextSignal.content)==null?void 0:s.id,"builder-model":e.model},on:{click:function(a){return e.onClick(a)},initeditingbldr:function(a){return e.elementRef_onIniteditingbldr(a)},initpreviewingbldr:function(a){return e.elementRef_onInitpreviewingbldr(a)}}},"div",{...e.showContent?{}:{hidden:!0,"aria-hidden":!0}},!1),[e._t("default")],2):e._e()},I=[],M=r.normalizeComponent(_,E,I,!1,null,null,null,null);const U=M.exports;exports.default=U;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import "./style.css";
|
|
1
2
|
import { defineComponent as k } from "vue";
|
|
2
|
-
import { r as w, m as p, T as y, l as f, _ as g, o as b, p as _, i as h, f as E, q as I, t as U, u as M, v as H, n as T } from "./index-
|
|
3
|
-
import { e as S } from "./evaluate-
|
|
3
|
+
import { r as w, m as p, T as y, l as f, _ as g, o as b, p as _, i as h, f as E, q as I, t as U, u as M, v as H, n as T } from "./index-f3618847.js";
|
|
4
|
+
import { e as S } from "./evaluate-b3a4e37f.js";
|
|
4
5
|
function C(n) {
|
|
5
6
|
return Math.round(n * 1e3) / 1e3;
|
|
6
7
|
}
|
|
@@ -43,7 +44,7 @@ const P = (n, e, t = !0) => {
|
|
|
43
44
|
builderElementIndex: t && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(t) : void 0
|
|
44
45
|
}
|
|
45
46
|
};
|
|
46
|
-
}, O = "0.
|
|
47
|
+
}, O = "0.8.1", N = () => {
|
|
47
48
|
w("insertMenu", {
|
|
48
49
|
name: "_default",
|
|
49
50
|
default: !0,
|
|
@@ -435,7 +436,7 @@ var L = function() {
|
|
|
435
436
|
null,
|
|
436
437
|
null
|
|
437
438
|
);
|
|
438
|
-
const
|
|
439
|
+
const z = V.exports;
|
|
439
440
|
export {
|
|
440
|
-
|
|
441
|
+
z as default
|
|
441
442
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var m=require("./style.css");const t=require("./index-c5b74b20.cjs"),l=({builder:r,context:e,event:n,state:i})=>Object.entries({state:i,Builder:r,builder:r,context:e,event:n}),a=()=>({isEditing:t.isEditing(),isBrowser:t.isBrowser(),isServer:!t.isBrowser(),getUserAttributes:()=>t.getUserAttributes()}),d=(r,{isExpression:e=!0})=>e&&!(r.includes(";")||r.includes(" return ")||r.trim().startsWith("return "))?`return (${r});`:r,w=({code:r,builder:e,context:n,event:i,localState:s,rootSetState:u,rootState:g})=>{const c=l({builder:e,context:n,event:i,state:f(g,s,u)});return new Function(...c.map(([o])=>o),r)(...c.map(([,o])=>o))};function f(r,e,n){if(r===e)throw new Error("rootState === localState");return new Proxy(r,{get:(i,s)=>e&&s in e?e[s]:r[s],set:(i,s,u)=>{if(e&&s in e)throw new Error("Writing to local state is not allowed as it is read-only.");return r[s]=u,n==null||n(r),!0}})}const v=r=>(t.isBrowser(),w(r));function B({code:r,context:e,localState:n,rootState:i,rootSetState:s,event:u,isExpression:g=!0}){if(r===""){t.logger.warn("Skipping evaluation of empty code block.");return}const c={code:d(r,{isExpression:g}),builder:a(),context:e,event:u,rootSetState:s,rootState:i,localState:n};try{return v(c)}catch(o){t.logger.error("Failed code evaluation: "+o.message,{code:r});return}}exports.evaluate=B;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "./style.css";
|
|
2
|
+
import { i as l, m as a, w as d, v as g } from "./index-f3618847.js";
|
|
2
3
|
const f = ({
|
|
3
4
|
builder: r,
|
|
4
5
|
context: e,
|
|
@@ -48,7 +49,7 @@ function B(r, e, n) {
|
|
|
48
49
|
});
|
|
49
50
|
}
|
|
50
51
|
const b = (r) => (a(), w(r));
|
|
51
|
-
function
|
|
52
|
+
function y({
|
|
52
53
|
code: r,
|
|
53
54
|
context: e,
|
|
54
55
|
localState: n,
|
|
@@ -82,5 +83,5 @@ function E({
|
|
|
82
83
|
}
|
|
83
84
|
}
|
|
84
85
|
export {
|
|
85
|
-
|
|
86
|
+
y as e
|
|
86
87
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var v=require("./style.css");const r=require("./index-c5b74b20.cjs"),s=require("./evaluate-a8ca82e7.cjs"),l=e=>`v-on:${e.toLowerCase()}`,i=(e,t)=>o=>s.evaluate({code:e,context:t.context,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,event:o,isExpression:!1});function u(e){const t={},o=e.block.actions??{};for(const c in o){if(!o.hasOwnProperty(c))continue;const n=o[c];let a=l(c);if(e.stripPrefix)switch(r.TARGET){case"vue2":case"vue3":a=a.replace("v-on:","");break;case"svelte":a=a.replace("on:","");break}t[a]=i(n,e)}return t}exports.getBlockActions=u;
|
package/vue2/lib/{node/get-block-actions-c8c3330b.js → browser/get-block-actions-e5886236.js}
RENAMED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import "./style.css";
|
|
2
|
+
import { T as n } from "./index-f3618847.js";
|
|
3
|
+
import { e as s } from "./evaluate-b3a4e37f.js";
|
|
3
4
|
const l = (e) => `v-on:${e.toLowerCase()}`, i = (e, t) => (o) => s({
|
|
4
5
|
code: e,
|
|
5
6
|
context: t.context,
|
|
@@ -9,7 +10,7 @@ const l = (e) => `v-on:${e.toLowerCase()}`, i = (e, t) => (o) => s({
|
|
|
9
10
|
event: o,
|
|
10
11
|
isExpression: !1
|
|
11
12
|
});
|
|
12
|
-
function
|
|
13
|
+
function m(e) {
|
|
13
14
|
const t = {}, o = e.block.actions ?? {};
|
|
14
15
|
for (const r in o) {
|
|
15
16
|
if (!o.hasOwnProperty(r))
|
|
@@ -31,5 +32,5 @@ function S(e) {
|
|
|
31
32
|
return t;
|
|
32
33
|
}
|
|
33
34
|
export {
|
|
34
|
-
|
|
35
|
+
m as g
|
|
35
36
|
};
|
package/vue2/lib/{edge/get-block-properties-721b933d.js → browser/get-block-properties-4030d3b5.js}
RENAMED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import "./style.css";
|
|
2
|
+
import { T as o } from "./index-f3618847.js";
|
|
3
|
+
import { a } from "./css-445df887.js";
|
|
4
|
+
function i(e) {
|
|
4
5
|
const t = {};
|
|
5
6
|
if (typeof e != "string")
|
|
6
7
|
return t;
|
|
@@ -9,25 +10,25 @@ function n(e) {
|
|
|
9
10
|
t[r] = !0;
|
|
10
11
|
return t;
|
|
11
12
|
}
|
|
12
|
-
function
|
|
13
|
-
return e.class =
|
|
13
|
+
function n(e) {
|
|
14
|
+
return e.class = i(e.class), e;
|
|
14
15
|
}
|
|
15
|
-
const
|
|
16
|
+
const c = (e) => ({
|
|
16
17
|
href: e.href
|
|
17
18
|
});
|
|
18
|
-
function
|
|
19
|
+
function m({
|
|
19
20
|
block: e,
|
|
20
21
|
context: t
|
|
21
22
|
}) {
|
|
22
23
|
var r;
|
|
23
24
|
const s = {
|
|
24
|
-
...
|
|
25
|
+
...c(e),
|
|
25
26
|
...e.properties,
|
|
26
27
|
"builder-id": e.id,
|
|
27
28
|
style: e.style ? u(e.style) : void 0,
|
|
28
29
|
class: [e.id, "builder-block", e.class, (r = e.properties) == null ? void 0 : r.class].filter(Boolean).join(" ")
|
|
29
30
|
};
|
|
30
|
-
return
|
|
31
|
+
return n(s);
|
|
31
32
|
}
|
|
32
33
|
function u(e) {
|
|
33
34
|
switch (o) {
|
|
@@ -44,5 +45,5 @@ function u(e) {
|
|
|
44
45
|
}
|
|
45
46
|
}
|
|
46
47
|
export {
|
|
47
|
-
|
|
48
|
+
m as g
|
|
48
49
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var f=require("./style.css");const c=require("./index-c5b74b20.cjs"),i=require("./css-535c5d1c.cjs");function n(e){const t={};if(typeof e!="string")return t;const s=e.trim().split(/\\s+/);for(const r of s)t[r]=!0;return t}function o(e){return e.class=n(e.class),e}const a=e=>({href:e.href});function u({block:e,context:t}){var r;const s={...a(e),...e.properties,"builder-id":e.id,style:e.style?l(e.style):void 0,class:[e.id,"builder-block",e.class,(r=e.properties)==null?void 0:r.class].filter(Boolean).join(" ")};return o(s)}function l(e){switch(c.TARGET){case"svelte":case"vue2":case"vue3":case"solid":return i.convertStyleMapToCSSArray(e).join(" ");case"qwik":case"reactNative":case"react":case"rsc":return e}}exports.getBlockProperties=u;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var m=require("./style.css");const d=require("./index-c5b74b20.cjs"),g=require("./evaluate-a8ca82e7.cjs"),f=(e,i,o)=>{if(Object(e)!==e)return e;const t=Array.isArray(i)?i:i.toString().match(/[^.[\]]+/g);return t.slice(0,-1).reduce((r,n,s)=>Object(r[n])===r[n]?r[n]:r[n]=Math.abs(Number(t[s+1]))>>0===+t[s+1]?[]:{},e)[t[t.length-1]]=o,e};const l=({block:e,context:i,localState:o,rootState:t,rootSetState:r})=>{if(!e.bindings)return e;const n=d.fastClone(e),s={...n,properties:{...n.properties},actions:{...n.actions}};for(const c in e.bindings){const u=e.bindings[c],a=g.evaluate({code:u,localState:o,rootState:t,rootSetState:r,context:i});f(s,c,a)}return s};function p({block:e,context:i,shouldEvaluateBindings:o,localState:t,rootState:r,rootSetState:n}){const s=e;return o?l({block:s,localState:t,rootState:r,rootSetState:n,context:i}):s}exports.getProcessedBlock=p;
|