@builder.io/sdk-vue 0.8.1 → 0.10.0
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/README.md +1 -4
- package/package.json +1 -1
- package/vue2/lib/browser/{block-a0c2b259.cjs → block-36cac25a.cjs} +2 -2
- package/vue2/lib/{node/block-7f67e05d.js → browser/block-861bf355.js} +7 -7
- package/vue2/lib/{node/block-styles-c993aa90.cjs → browser/block-styles-c455ab54.cjs} +1 -1
- package/vue2/lib/{edge/block-styles-df04ce35.js → browser/block-styles-faed2449.js} +5 -5
- package/vue2/lib/browser/{block-wrapper-57736e55.js → block-wrapper-37b64344.js} +5 -5
- package/vue2/lib/browser/{block-wrapper-899031dc.cjs → block-wrapper-74b1fda9.cjs} +1 -1
- package/vue2/lib/browser/blocks-wrapper-2b49452c.cjs +1 -0
- package/vue2/lib/browser/blocks-wrapper-490b6501.js +74 -0
- package/vue2/lib/{edge/component-ref-406288b4.js → browser/component-ref-92ea8509.js} +6 -6
- package/vue2/lib/{node/component-ref-19d8d4a8.cjs → browser/component-ref-9693d3b5.cjs} +1 -1
- package/vue2/lib/browser/components/block/components/component-ref/component-ref.helpers.d.ts +1 -3
- package/vue2/lib/browser/components/block/components/component-ref/component-ref.vue.d.ts +1 -3
- package/vue2/lib/browser/components/blocks/blocks-wrapper.vue.d.ts +14 -0
- package/vue2/lib/browser/components/blocks/blocks.vue.d.ts +1 -1
- package/vue2/lib/browser/components/content/components/enable-editor.vue.d.ts +3 -0
- package/vue2/lib/browser/components/content/content.vue.d.ts +2 -0
- package/vue2/lib/browser/components/content-variants/content-variants.types.d.ts +16 -0
- package/vue2/lib/browser/components/content-variants/content-variants.vue.d.ts +12 -0
- package/vue2/lib/browser/constants/sdk-version.d.ts +1 -1
- package/vue2/lib/browser/{content-3cada794.cjs → content-53eb5655.cjs} +1 -1
- package/vue2/lib/{edge/content-fbac6557.js → browser/content-8f812a38.js} +29 -23
- package/vue2/lib/browser/context/builder.context.d.ts +2 -0
- package/vue2/lib/browser/context/types.d.ts +2 -1
- package/vue2/lib/{node/css-3747a91a.cjs → browser/css-38eebc34.cjs} +1 -1
- package/vue2/lib/browser/{css-445df887.js → css-c5e3c46b.js} +1 -1
- package/vue2/lib/browser/enable-editor-1f6a54ac.cjs +1 -0
- package/vue2/lib/{edge/enable-editor-f4bb4d8e.js → browser/enable-editor-7ccc9be9.js} +25 -27
- package/vue2/lib/browser/{evaluate-a8ca82e7.cjs → evaluate-5b9ba4c5.cjs} +1 -1
- package/vue2/lib/browser/{evaluate-b3a4e37f.js → evaluate-6fd688e4.js} +1 -1
- package/vue2/lib/browser/functions/get-block-properties.d.ts +1 -1
- package/vue2/lib/browser/functions/get-content/index.d.ts +2 -2
- package/vue2/lib/browser/functions/transform-block-properties.d.ts +5 -2
- package/vue2/lib/{edge/get-block-actions-89cffb9a.js → browser/get-block-actions-9d967845.js} +2 -2
- package/vue2/lib/browser/{get-block-actions-3bd34049.cjs → get-block-actions-ea954589.cjs} +1 -1
- package/vue2/lib/browser/get-block-properties-d54aca83.cjs +1 -0
- package/vue2/lib/browser/{get-block-properties-4030d3b5.js → get-block-properties-ddf880dc.js} +10 -4
- package/vue2/lib/browser/{get-processed-block-14ea8201.cjs → get-processed-block-6a4110c3.cjs} +1 -1
- package/vue2/lib/browser/{get-processed-block-497309fc.js → get-processed-block-8eee466e.js} +2 -2
- package/vue2/lib/{node/index-f335cf42.js → browser/index-7a45f7e8.js} +113 -106
- package/vue2/lib/{edge/index-56af5fb4.cjs → browser/index-fae2823a.cjs} +7 -7
- package/vue2/lib/browser/index-helpers/blocks-exports.d.ts +12 -0
- package/vue2/lib/browser/index.cjs +1 -1
- package/vue2/lib/browser/index.js +1 -1
- package/vue2/lib/browser/{inlined-script-3dc8b278.cjs → inlined-script-310b1b78.cjs} +1 -1
- package/vue2/lib/{edge/inlined-script-a166a386.js → browser/inlined-script-93bcd870.js} +1 -1
- package/vue2/lib/browser/{inlined-styles-f1203db0.cjs → inlined-styles-52d0d9db.cjs} +1 -1
- package/vue2/lib/{node/inlined-styles-c3091b9e.js → browser/inlined-styles-f0555ea7.js} +1 -1
- package/vue2/lib/{node/interactive-element-72f51043.js → browser/interactive-element-35f60577.js} +5 -5
- package/vue2/lib/{node/interactive-element-64032c60.cjs → browser/interactive-element-d7adf963.cjs} +1 -1
- package/vue2/lib/{node/repeated-block-c2df83ff.cjs → browser/repeated-block-20b005e0.cjs} +1 -1
- package/vue2/lib/{node/repeated-block-f033b120.js → browser/repeated-block-ba6d35cc.js} +2 -2
- package/vue2/lib/browser/style.css +1 -1
- package/vue2/lib/{node/styles-7d3b3741.cjs → browser/styles-917a4f34.cjs} +2 -2
- package/vue2/lib/browser/{styles-e141b29e.js → styles-dc764ba9.js} +2 -2
- package/vue2/lib/browser/types/enforced-partials.d.ts +7 -2
- package/vue2/lib/{node/block-9f7dfe6d.cjs → edge/block-0f92a227.cjs} +2 -2
- package/vue2/lib/{browser/block-f1233138.js → edge/block-49c9733d.js} +7 -7
- package/vue2/lib/{node/block-styles-6d96e69c.js → edge/block-styles-ce2d9d5e.js} +5 -5
- package/vue2/lib/edge/{block-styles-236afaf6.cjs → block-styles-df90677b.cjs} +1 -1
- package/vue2/lib/{node/block-wrapper-4772c4ae.js → edge/block-wrapper-59785121.js} +5 -5
- package/vue2/lib/{node/block-wrapper-08f3c04a.cjs → edge/block-wrapper-f0eef937.cjs} +1 -1
- package/vue2/lib/edge/blocks-wrapper-79845ab6.js +74 -0
- package/vue2/lib/edge/blocks-wrapper-b7c8852b.cjs +1 -0
- package/vue2/lib/{browser/component-ref-de2bce5c.cjs → edge/component-ref-3248243b.cjs} +1 -1
- package/vue2/lib/{node/component-ref-6b1013d0.js → edge/component-ref-921b715d.js} +6 -6
- package/vue2/lib/edge/components/block/components/component-ref/component-ref.helpers.d.ts +1 -3
- package/vue2/lib/edge/components/block/components/component-ref/component-ref.vue.d.ts +1 -3
- package/vue2/lib/edge/components/blocks/blocks-wrapper.vue.d.ts +14 -0
- package/vue2/lib/edge/components/blocks/blocks.vue.d.ts +1 -1
- package/vue2/lib/edge/components/content/components/enable-editor.vue.d.ts +3 -0
- package/vue2/lib/edge/components/content/content.vue.d.ts +2 -0
- package/vue2/lib/edge/components/content-variants/content-variants.types.d.ts +16 -0
- package/vue2/lib/edge/components/content-variants/content-variants.vue.d.ts +12 -0
- package/vue2/lib/edge/constants/sdk-version.d.ts +1 -1
- package/vue2/lib/{node/content-7e6f95d2.cjs → edge/content-5c261489.cjs} +1 -1
- package/vue2/lib/{browser/content-bd41cd51.js → edge/content-98b184de.js} +29 -23
- package/vue2/lib/edge/context/builder.context.d.ts +2 -0
- package/vue2/lib/edge/context/types.d.ts +2 -1
- package/vue2/lib/{browser/css-535c5d1c.cjs → edge/css-4311a890.cjs} +1 -1
- package/vue2/lib/{node/css-ab629ac6.js → edge/css-b08d1e02.js} +1 -1
- package/vue2/lib/{node/enable-editor-58b89268.js → edge/enable-editor-52c3ad3c.js} +25 -27
- package/vue2/lib/edge/enable-editor-a382ccc8.cjs +1 -0
- package/vue2/lib/edge/{evaluate-0145ba88.cjs → evaluate-0bfb6f5e.cjs} +1 -1
- package/vue2/lib/edge/{evaluate-063c5f7a.js → evaluate-636aee70.js} +1 -1
- package/vue2/lib/edge/functions/get-block-properties.d.ts +1 -1
- package/vue2/lib/edge/functions/get-content/index.d.ts +2 -2
- package/vue2/lib/edge/functions/transform-block-properties.d.ts +5 -2
- package/vue2/lib/{node/get-block-actions-261b93f6.js → edge/get-block-actions-01697843.js} +2 -2
- package/vue2/lib/edge/{get-block-actions-7f885c3f.cjs → get-block-actions-d1222ac0.cjs} +1 -1
- package/vue2/lib/{node/get-block-properties-49526534.js → edge/get-block-properties-2332f899.js} +10 -4
- package/vue2/lib/edge/get-block-properties-c4077926.cjs +1 -0
- package/vue2/lib/edge/{get-processed-block-adb656ef.cjs → get-processed-block-0a1ec6ea.cjs} +1 -1
- package/vue2/lib/{node/get-processed-block-7242c9a8.js → edge/get-processed-block-1e4b19d3.js} +2 -2
- package/vue2/lib/{node/index-00b54a2d.cjs → edge/index-255d62bb.cjs} +7 -7
- package/vue2/lib/{browser/index-f3618847.js → edge/index-34d29a8a.js} +113 -106
- package/vue2/lib/edge/index-helpers/blocks-exports.d.ts +12 -0
- package/vue2/lib/edge/index.cjs +1 -1
- package/vue2/lib/edge/index.js +1 -1
- package/vue2/lib/{node/inlined-script-b0441af1.js → edge/inlined-script-48390289.js} +1 -1
- package/vue2/lib/edge/{inlined-script-a5b3779c.cjs → inlined-script-b88e2ef6.cjs} +1 -1
- package/vue2/lib/edge/{inlined-styles-029c0f2b.cjs → inlined-styles-0caaacb4.cjs} +1 -1
- package/vue2/lib/edge/{inlined-styles-f7c080fd.js → inlined-styles-8a6dd3b8.js} +1 -1
- package/vue2/lib/{browser/interactive-element-3720d577.js → edge/interactive-element-6bdf0962.js} +5 -5
- package/vue2/lib/edge/{interactive-element-960a9e10.cjs → interactive-element-bfb79ccc.cjs} +1 -1
- package/vue2/lib/{browser/repeated-block-711036ce.js → edge/repeated-block-72e17122.js} +2 -2
- package/vue2/lib/{browser/repeated-block-37646894.cjs → edge/repeated-block-c02fe8e4.cjs} +1 -1
- package/vue2/lib/edge/style.css +1 -1
- package/vue2/lib/edge/{styles-5c035753.js → styles-204a75db.js} +2 -2
- package/vue2/lib/{browser/styles-18e2ee39.cjs → edge/styles-61420111.cjs} +2 -2
- package/vue2/lib/edge/types/enforced-partials.d.ts +7 -2
- package/vue2/lib/{edge/block-65659a3f.cjs → node/block-79274dc2.cjs} +2 -2
- package/vue2/lib/{edge/block-35ad0e3f.js → node/block-e9ed3688.js} +7 -7
- package/vue2/lib/{browser/block-styles-33d86077.cjs → node/block-styles-09e2b9ad.cjs} +1 -1
- package/vue2/lib/{browser/block-styles-ebf9b1a6.js → node/block-styles-7bd04542.js} +5 -5
- package/vue2/lib/{edge/block-wrapper-ed85d5e5.js → node/block-wrapper-8924bb4a.js} +5 -5
- package/vue2/lib/{edge/block-wrapper-92227702.cjs → node/block-wrapper-a86bfb8b.cjs} +1 -1
- package/vue2/lib/node/blocks-wrapper-cccd83c0.cjs +1 -0
- package/vue2/lib/node/blocks-wrapper-f0f089d5.js +74 -0
- package/vue2/lib/{edge/component-ref-6fe256db.cjs → node/component-ref-f57085a0.cjs} +1 -1
- package/vue2/lib/{browser/component-ref-8822545e.js → node/component-ref-fbc7880f.js} +6 -6
- package/vue2/lib/node/components/block/components/component-ref/component-ref.helpers.d.ts +1 -3
- package/vue2/lib/node/components/block/components/component-ref/component-ref.vue.d.ts +1 -3
- package/vue2/lib/node/components/blocks/blocks-wrapper.vue.d.ts +14 -0
- package/vue2/lib/node/components/blocks/blocks.vue.d.ts +1 -1
- package/vue2/lib/node/components/content/components/enable-editor.vue.d.ts +3 -0
- package/vue2/lib/node/components/content/content.vue.d.ts +2 -0
- package/vue2/lib/node/components/content-variants/content-variants.types.d.ts +16 -0
- package/vue2/lib/node/components/content-variants/content-variants.vue.d.ts +12 -0
- package/vue2/lib/node/constants/sdk-version.d.ts +1 -1
- package/vue2/lib/node/{content-5de9cb53.js → content-59b2396d.js} +29 -23
- package/vue2/lib/{edge/content-78b300bf.cjs → node/content-d39cec9a.cjs} +1 -1
- package/vue2/lib/node/context/builder.context.d.ts +2 -0
- package/vue2/lib/node/context/types.d.ts +2 -1
- package/vue2/lib/{edge/css-15965af3.cjs → node/css-51ee2b3d.cjs} +1 -1
- package/vue2/lib/{edge/css-11eef1df.js → node/css-daa1c065.js} +1 -1
- package/vue2/lib/{browser/enable-editor-9486d0af.js → node/enable-editor-b2f063a7.js} +25 -27
- package/vue2/lib/node/enable-editor-e72e68d4.cjs +1 -0
- package/vue2/lib/node/{evaluate-5237e8df.cjs → evaluate-2c4b0c95.cjs} +1 -1
- package/vue2/lib/node/{evaluate-e40501d4.js → evaluate-a1bee057.js} +1 -1
- package/vue2/lib/node/functions/get-block-properties.d.ts +1 -1
- package/vue2/lib/node/functions/get-content/index.d.ts +2 -2
- package/vue2/lib/node/functions/transform-block-properties.d.ts +5 -2
- package/vue2/lib/{browser/get-block-actions-e5886236.js → node/get-block-actions-c172c6db.js} +2 -2
- package/vue2/lib/node/{get-block-actions-5d60bb63.cjs → get-block-actions-e0b74d12.cjs} +1 -1
- package/vue2/lib/{edge/get-block-properties-aedb780e.js → node/get-block-properties-281909a9.js} +10 -4
- package/vue2/lib/node/get-block-properties-f861d489.cjs +1 -0
- package/vue2/lib/node/{get-processed-block-3b811708.cjs → get-processed-block-0f04fb43.cjs} +1 -1
- package/vue2/lib/{edge/get-processed-block-c0f0da5d.js → node/get-processed-block-52f3ad4e.js} +2 -2
- package/vue2/lib/{edge/index-7870efd8.js → node/index-2a78d8bb.js} +113 -106
- package/vue2/lib/{browser/index-c5b74b20.cjs → node/index-ca2796c1.cjs} +7 -7
- package/vue2/lib/node/index-helpers/blocks-exports.d.ts +12 -0
- package/vue2/lib/node/index.cjs +1 -1
- package/vue2/lib/node/index.js +1 -1
- package/vue2/lib/node/{inlined-script-e7e8cc4a.cjs → inlined-script-b064e35e.cjs} +1 -1
- package/vue2/lib/{browser/inlined-script-84f7b988.js → node/inlined-script-f844d064.js} +1 -1
- package/vue2/lib/{browser/inlined-styles-9918b05e.js → node/inlined-styles-7bd96b02.js} +1 -1
- package/vue2/lib/node/{inlined-styles-a8e61790.cjs → inlined-styles-8bc76deb.cjs} +1 -1
- package/vue2/lib/{browser/interactive-element-5656c996.cjs → node/interactive-element-0ad1f701.cjs} +1 -1
- package/vue2/lib/{edge/interactive-element-c889d9dc.js → node/interactive-element-58f52f69.js} +5 -5
- package/vue2/lib/{edge/repeated-block-0c2cb139.cjs → node/repeated-block-8cc1a441.cjs} +1 -1
- package/vue2/lib/{edge/repeated-block-07d2d25b.js → node/repeated-block-bbb43376.js} +2 -2
- package/vue2/lib/node/style.css +1 -1
- package/vue2/lib/{edge/styles-ed45e5cf.cjs → node/styles-08d4bba5.cjs} +2 -2
- package/vue2/lib/node/{styles-a1697843.js → styles-23471dd5.js} +2 -2
- package/vue2/lib/node/types/enforced-partials.d.ts +7 -2
- package/vue3/lib/{edge/block-wrapper.57daa012.cjs → browser/block-wrapper.79de0d1b.cjs} +1 -1
- package/vue3/lib/{edge/block-wrapper.0d57b295.js → browser/block-wrapper.d8753b7e.js} +2 -2
- package/vue3/lib/browser/blocks/image/image.vue.d.ts +3 -3
- package/vue3/lib/{edge/component-ref.47f4d835.js → browser/component-ref.0fcf8f81.js} +2 -2
- package/vue3/lib/{edge/component-ref.5f18534f.cjs → browser/component-ref.e571e4c0.cjs} +1 -1
- package/vue3/lib/browser/components/block/components/component-ref/component-ref.helpers.d.ts +1 -3
- package/vue3/lib/browser/components/block/components/component-ref/component-ref.vue.d.ts +1 -3
- package/vue3/lib/browser/components/blocks/blocks-wrapper.vue.d.ts +14 -0
- package/vue3/lib/browser/components/blocks/blocks.vue.d.ts +7 -7
- package/vue3/lib/browser/components/content/components/enable-editor.vue.d.ts +9 -0
- package/vue3/lib/browser/components/content/content.vue.d.ts +14 -0
- package/vue3/lib/browser/components/content-variants/content-variants.types.d.ts +16 -0
- package/vue3/lib/browser/components/content-variants/content-variants.vue.d.ts +12 -0
- package/vue3/lib/browser/constants/sdk-version.d.ts +1 -1
- package/vue3/lib/browser/context/builder.context.d.ts +2 -0
- package/vue3/lib/browser/context/types.d.ts +2 -1
- package/vue3/lib/browser/functions/get-block-properties.d.ts +1 -1
- package/vue3/lib/browser/functions/get-content/index.d.ts +2 -2
- package/vue3/lib/browser/functions/transform-block-properties.d.ts +5 -2
- package/vue3/lib/{edge/get-block-actions.e18a650e.js → browser/get-block-actions.532ddca6.js} +17 -11
- package/vue3/lib/browser/get-block-actions.cf4a0fd3.cjs +1 -0
- package/vue3/lib/browser/index-helpers/blocks-exports.d.ts +18 -6
- package/vue3/lib/browser/{index.796bf63b.cjs → index.85b3d46a.cjs} +19 -19
- package/vue3/lib/browser/index.cjs +1 -1
- package/vue3/lib/browser/{index.c5cd33f5.js → index.d5883cd5.js} +678 -637
- package/vue3/lib/browser/index.js +1 -1
- package/vue3/lib/{edge/repeated-block.dbf2ac5d.js → browser/repeated-block.612b0dc8.js} +2 -2
- package/vue3/lib/browser/{repeated-block.293b3b51.cjs → repeated-block.d9744c29.cjs} +1 -1
- package/vue3/lib/browser/style.css +1 -1
- package/vue3/lib/browser/types/enforced-partials.d.ts +7 -2
- package/vue3/lib/{browser/block-wrapper.93359482.js → edge/block-wrapper.48cbd4ad.js} +2 -2
- package/vue3/lib/{browser/block-wrapper.2dba8fb9.cjs → edge/block-wrapper.5f54529d.cjs} +1 -1
- package/vue3/lib/edge/blocks/image/image.vue.d.ts +3 -3
- package/vue3/lib/{browser/component-ref.5d332cbe.cjs → edge/component-ref.779a5527.cjs} +1 -1
- package/vue3/lib/{browser/component-ref.348e3f3c.js → edge/component-ref.cd17a2b8.js} +2 -2
- package/vue3/lib/edge/components/block/components/component-ref/component-ref.helpers.d.ts +1 -3
- package/vue3/lib/edge/components/block/components/component-ref/component-ref.vue.d.ts +1 -3
- package/vue3/lib/edge/components/blocks/blocks-wrapper.vue.d.ts +14 -0
- package/vue3/lib/edge/components/blocks/blocks.vue.d.ts +7 -7
- package/vue3/lib/edge/components/content/components/enable-editor.vue.d.ts +9 -0
- package/vue3/lib/edge/components/content/content.vue.d.ts +14 -0
- package/vue3/lib/edge/components/content-variants/content-variants.types.d.ts +16 -0
- package/vue3/lib/edge/components/content-variants/content-variants.vue.d.ts +12 -0
- package/vue3/lib/edge/constants/sdk-version.d.ts +1 -1
- package/vue3/lib/edge/context/builder.context.d.ts +2 -0
- package/vue3/lib/edge/context/types.d.ts +2 -1
- package/vue3/lib/edge/functions/get-block-properties.d.ts +1 -1
- package/vue3/lib/edge/functions/get-content/index.d.ts +2 -2
- package/vue3/lib/edge/functions/transform-block-properties.d.ts +5 -2
- package/vue3/lib/edge/get-block-actions.e213d5e5.cjs +1 -0
- package/vue3/lib/{browser/get-block-actions.ca6fe762.js → edge/get-block-actions.e90f22a0.js} +17 -11
- package/vue3/lib/edge/index-helpers/blocks-exports.d.ts +18 -6
- package/vue3/lib/edge/{index.a7c064ed.js → index.26869e2b.js} +849 -808
- package/vue3/lib/edge/{index.c0fdb424.cjs → index.9551e853.cjs} +26 -26
- package/vue3/lib/edge/index.cjs +1 -1
- package/vue3/lib/edge/index.js +1 -1
- package/vue3/lib/edge/{repeated-block.0dedccc0.cjs → repeated-block.1a05344c.cjs} +1 -1
- package/vue3/lib/{browser/repeated-block.aa5dc36f.js → edge/repeated-block.f6f04e89.js} +2 -2
- package/vue3/lib/edge/style.css +1 -1
- package/vue3/lib/edge/types/enforced-partials.d.ts +7 -2
- package/vue3/lib/node/{block-wrapper.9e3f2443.cjs → block-wrapper.4e8f944e.cjs} +1 -1
- package/vue3/lib/node/{block-wrapper.1140bc59.js → block-wrapper.9be5f8cd.js} +2 -2
- package/vue3/lib/node/blocks/image/image.vue.d.ts +3 -3
- package/vue3/lib/node/{component-ref.814bc23c.cjs → component-ref.64358a5b.cjs} +1 -1
- package/vue3/lib/node/{component-ref.cad6e759.js → component-ref.b1bfb450.js} +2 -2
- package/vue3/lib/node/components/block/components/component-ref/component-ref.helpers.d.ts +1 -3
- package/vue3/lib/node/components/block/components/component-ref/component-ref.vue.d.ts +1 -3
- package/vue3/lib/node/components/blocks/blocks-wrapper.vue.d.ts +14 -0
- package/vue3/lib/node/components/blocks/blocks.vue.d.ts +7 -7
- package/vue3/lib/node/components/content/components/enable-editor.vue.d.ts +9 -0
- package/vue3/lib/node/components/content/content.vue.d.ts +14 -0
- package/vue3/lib/node/components/content-variants/content-variants.types.d.ts +16 -0
- package/vue3/lib/node/components/content-variants/content-variants.vue.d.ts +12 -0
- package/vue3/lib/node/constants/sdk-version.d.ts +1 -1
- package/vue3/lib/node/context/builder.context.d.ts +2 -0
- package/vue3/lib/node/context/types.d.ts +2 -1
- package/vue3/lib/node/functions/get-block-properties.d.ts +1 -1
- package/vue3/lib/node/functions/get-content/index.d.ts +2 -2
- package/vue3/lib/node/functions/transform-block-properties.d.ts +5 -2
- package/vue3/lib/node/get-block-actions.37f280b9.cjs +1 -0
- package/vue3/lib/node/{get-block-actions.46d61b25.js → get-block-actions.f7d97db3.js} +17 -11
- package/vue3/lib/node/index-helpers/blocks-exports.d.ts +18 -6
- package/vue3/lib/node/{index.456bef99.cjs → index.1e45420a.cjs} +7 -7
- package/vue3/lib/node/index.cjs +1 -1
- package/vue3/lib/node/{index.14c688da.js → index.f52ac974.js} +143 -101
- package/vue3/lib/node/index.js +1 -1
- package/vue3/lib/node/{repeated-block.19d21383.cjs → repeated-block.21ee0d19.cjs} +1 -1
- package/vue3/lib/node/{repeated-block.e72a8275.js → repeated-block.9f1ca9a7.js} +2 -2
- package/vue3/lib/node/style.css +1 -1
- package/vue3/lib/node/types/enforced-partials.d.ts +7 -2
- package/vue2/lib/browser/blocks-wrapper-542bca6e.cjs +0 -1
- package/vue2/lib/browser/blocks-wrapper-a93bf471.js +0 -73
- package/vue2/lib/browser/enable-editor-4491b5dd.cjs +0 -1
- package/vue2/lib/browser/functions/get-react-native-block-styles.d.ts +0 -7
- package/vue2/lib/browser/functions/sanitize-react-native-block-styles.d.ts +0 -3
- package/vue2/lib/browser/get-block-properties-d090641d.cjs +0 -1
- package/vue2/lib/edge/blocks-wrapper-c1bdb5b4.js +0 -73
- package/vue2/lib/edge/blocks-wrapper-ed1c3990.cjs +0 -1
- package/vue2/lib/edge/enable-editor-d4895e04.cjs +0 -1
- package/vue2/lib/edge/functions/get-react-native-block-styles.d.ts +0 -7
- package/vue2/lib/edge/functions/sanitize-react-native-block-styles.d.ts +0 -3
- package/vue2/lib/edge/get-block-properties-3f6858d3.cjs +0 -1
- package/vue2/lib/node/blocks-wrapper-0a06ae61.js +0 -73
- package/vue2/lib/node/blocks-wrapper-c8ab561d.cjs +0 -1
- package/vue2/lib/node/enable-editor-a05ea891.cjs +0 -1
- package/vue2/lib/node/functions/get-react-native-block-styles.d.ts +0 -7
- package/vue2/lib/node/functions/sanitize-react-native-block-styles.d.ts +0 -3
- package/vue2/lib/node/get-block-properties-ff0444df.cjs +0 -1
- package/vue3/lib/browser/functions/get-react-native-block-styles.d.ts +0 -7
- package/vue3/lib/browser/functions/sanitize-react-native-block-styles.d.ts +0 -3
- package/vue3/lib/browser/get-block-actions.91d70ba2.cjs +0 -1
- package/vue3/lib/edge/functions/get-react-native-block-styles.d.ts +0 -7
- package/vue3/lib/edge/functions/sanitize-react-native-block-styles.d.ts +0 -3
- package/vue3/lib/edge/get-block-actions.51f2dc73.cjs +0 -1
- package/vue3/lib/node/functions/get-react-native-block-styles.d.ts +0 -7
- package/vue3/lib/node/functions/sanitize-react-native-block-styles.d.ts +0 -3
- package/vue3/lib/node/get-block-actions.68f47245.cjs +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
2
|
import { defineComponent as p } from "vue";
|
|
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
|
|
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 k, e as C, V as w, h as F, j as f, s as g, T as R, k as V } from "./index-7a45f7e8.js";
|
|
4
4
|
const E = {
|
|
5
5
|
name: "Core:Button",
|
|
6
6
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
@@ -34,7 +34,7 @@ const E = {
|
|
|
34
34
|
}],
|
|
35
35
|
static: !0,
|
|
36
36
|
noWrap: !0
|
|
37
|
-
},
|
|
37
|
+
}, W = {
|
|
38
38
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
39
39
|
name: "Columns",
|
|
40
40
|
isRSC: !0,
|
|
@@ -235,7 +235,7 @@ const E = {
|
|
|
235
235
|
helperText: "When stacking columns for mobile devices, reverse the ordering",
|
|
236
236
|
advanced: !0
|
|
237
237
|
}]
|
|
238
|
-
},
|
|
238
|
+
}, A = {
|
|
239
239
|
name: "Custom Code",
|
|
240
240
|
static: !0,
|
|
241
241
|
requiredPermissions: ["editCode"],
|
|
@@ -257,7 +257,7 @@ const E = {
|
|
|
257
257
|
helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
|
|
258
258
|
advanced: !0
|
|
259
259
|
}]
|
|
260
|
-
},
|
|
260
|
+
}, P = p({
|
|
261
261
|
name: "builder-custom-code",
|
|
262
262
|
props: ["replaceNodes", "code"],
|
|
263
263
|
data() {
|
|
@@ -303,15 +303,15 @@ const E = {
|
|
|
303
303
|
}
|
|
304
304
|
}
|
|
305
305
|
});
|
|
306
|
-
var
|
|
306
|
+
var $ = function() {
|
|
307
307
|
var t = this, n = t._self._c;
|
|
308
308
|
return t._self._setupProxy, n("div", { ref: "elementRef", class: t._classStringToObject(
|
|
309
309
|
"builder-custom-code" + (t.replaceNodes ? " replace-nodes" : "")
|
|
310
310
|
), domProps: { innerHTML: t._s(t.code) } });
|
|
311
|
-
},
|
|
311
|
+
}, U = [], j = /* @__PURE__ */ u(
|
|
312
|
+
P,
|
|
312
313
|
$,
|
|
313
314
|
U,
|
|
314
|
-
P,
|
|
315
315
|
!1,
|
|
316
316
|
null,
|
|
317
317
|
null,
|
|
@@ -343,7 +343,7 @@ const H = j.exports, L = {
|
|
|
343
343
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
344
344
|
hideFromUI: !0
|
|
345
345
|
}]
|
|
346
|
-
}, z = ["text/javascript", "application/javascript", "application/ecmascript"],
|
|
346
|
+
}, z = ["text/javascript", "application/javascript", "application/ecmascript"], B = (e) => z.includes(e.type), D = p({
|
|
347
347
|
name: "builder-embed",
|
|
348
348
|
props: ["content"],
|
|
349
349
|
data() {
|
|
@@ -376,7 +376,7 @@ const H = j.exports, L = {
|
|
|
376
376
|
this.scriptsInserted.push(n.src);
|
|
377
377
|
const a = document.createElement("script");
|
|
378
378
|
a.async = !0, a.src = n.src, document.head.appendChild(a);
|
|
379
|
-
} else if (
|
|
379
|
+
} else if (B(n) && !this.scriptsRun.includes(n.innerText))
|
|
380
380
|
try {
|
|
381
381
|
this.scriptsRun.push(n.innerText), new Function(n.innerText)();
|
|
382
382
|
} catch (a) {
|
|
@@ -386,13 +386,13 @@ const H = j.exports, L = {
|
|
|
386
386
|
}
|
|
387
387
|
}
|
|
388
388
|
});
|
|
389
|
-
var
|
|
389
|
+
var M = function() {
|
|
390
390
|
var t = this, n = t._self._c;
|
|
391
391
|
return t._self._setupProxy, n("div", { ref: "elem", staticClass: "builder-embed", domProps: { innerHTML: t._s(t.content) } });
|
|
392
|
-
},
|
|
392
|
+
}, q = [], N = /* @__PURE__ */ u(
|
|
393
|
+
D,
|
|
393
394
|
M,
|
|
394
395
|
q,
|
|
395
|
-
B,
|
|
396
396
|
!1,
|
|
397
397
|
null,
|
|
398
398
|
null,
|
|
@@ -725,10 +725,10 @@ const ee = Z.exports, te = {
|
|
|
725
725
|
...E
|
|
726
726
|
}, {
|
|
727
727
|
component: _,
|
|
728
|
-
...
|
|
728
|
+
...W
|
|
729
729
|
}, {
|
|
730
730
|
component: H,
|
|
731
|
-
...
|
|
731
|
+
...A
|
|
732
732
|
}, {
|
|
733
733
|
component: K,
|
|
734
734
|
...L
|
|
@@ -745,13 +745,13 @@ const ee = Z.exports, te = {
|
|
|
745
745
|
component: I,
|
|
746
746
|
...te
|
|
747
747
|
}, {
|
|
748
|
-
component:
|
|
748
|
+
component: k,
|
|
749
749
|
...ne
|
|
750
750
|
}, {
|
|
751
|
-
component:
|
|
751
|
+
component: C,
|
|
752
752
|
...ae
|
|
753
753
|
}, {
|
|
754
|
-
component:
|
|
754
|
+
component: w,
|
|
755
755
|
...oe
|
|
756
756
|
}], ie = ({
|
|
757
757
|
content: e,
|
|
@@ -780,22 +780,22 @@ const ee = Z.exports, te = {
|
|
|
780
780
|
...t
|
|
781
781
|
},
|
|
782
782
|
meta: e == null ? void 0 : e.meta
|
|
783
|
-
} : void 0, se = () => import("./index-
|
|
783
|
+
} : void 0, se = () => import("./index-7a45f7e8.js").then((e) => e.M).then((e) => e.default).catch((e) => {
|
|
784
784
|
throw console.error(
|
|
785
785
|
"Error while attempting to dynamically import component Blocks at ../blocks/blocks.vue",
|
|
786
786
|
e
|
|
787
787
|
), e;
|
|
788
|
-
}), le = () => import("./inlined-script-
|
|
788
|
+
}), le = () => import("./inlined-script-93bcd870.js").then((e) => e.default).catch((e) => {
|
|
789
789
|
throw console.error(
|
|
790
790
|
"Error while attempting to dynamically import component InlinedScript at ../inlined-script.vue",
|
|
791
791
|
e
|
|
792
792
|
), e;
|
|
793
|
-
}), ce = () => import("./enable-editor-
|
|
793
|
+
}), ce = () => import("./enable-editor-7ccc9be9.js").then((e) => e.default).catch((e) => {
|
|
794
794
|
throw console.error(
|
|
795
795
|
"Error while attempting to dynamically import component EnableEditor at ./components/enable-editor.vue",
|
|
796
796
|
e
|
|
797
797
|
), e;
|
|
798
|
-
}), de = () => import("./styles-
|
|
798
|
+
}), de = () => import("./styles-dc764ba9.js").then((e) => e.default).catch((e) => {
|
|
799
799
|
throw console.error(
|
|
800
800
|
"Error while attempting to dynamically import component ContentStyles at ./components/styles.vue",
|
|
801
801
|
e
|
|
@@ -816,11 +816,15 @@ const ee = Z.exports, te = {
|
|
|
816
816
|
"context",
|
|
817
817
|
"apiKey",
|
|
818
818
|
"apiVersion",
|
|
819
|
+
"blocksWrapper",
|
|
820
|
+
"blocksWrapperProps",
|
|
819
821
|
"model",
|
|
820
822
|
"canTrack",
|
|
821
823
|
"includeRefs",
|
|
822
824
|
"enrich",
|
|
823
825
|
"showContent",
|
|
826
|
+
"contentWrapper",
|
|
827
|
+
"contentWrapperProps",
|
|
824
828
|
"isSsrAbTest"
|
|
825
829
|
],
|
|
826
830
|
data() {
|
|
@@ -882,7 +886,9 @@ const ee = Z.exports, te = {
|
|
|
882
886
|
}),
|
|
883
887
|
{}
|
|
884
888
|
),
|
|
885
|
-
inheritedStyles: {}
|
|
889
|
+
inheritedStyles: {},
|
|
890
|
+
BlocksWrapper: this.blocksWrapper || "div",
|
|
891
|
+
BlocksWrapperProps: this.blocksWrapperProps || {}
|
|
886
892
|
},
|
|
887
893
|
TARGET: R
|
|
888
894
|
};
|
|
@@ -904,7 +910,7 @@ const ee = Z.exports, te = {
|
|
|
904
910
|
var ue = function() {
|
|
905
911
|
var a, o, s, i, r, l, c;
|
|
906
912
|
var t = this, n = t._self._c;
|
|
907
|
-
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: (a = t.builderContextSignal.content) == null ? void 0 : a.id, cssCode: (s = (o = t.builderContextSignal.content) == null ? void 0 : o.data) == null ? void 0 : s.cssCode, customFonts: (r = (i = t.builderContextSignal.content) == null ? void 0 : i.data) == null ? void 0 : r.customFonts } })] : t._e(), n("blocks", { attrs: { blocks: (c = (l = t.builderContextSignal.content) == null ? void 0 : l.data) == null ? void 0 : c.blocks, context: t.builderContextSignal, registeredComponents: t.registeredComponents } })], 2);
|
|
913
|
+
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, contentWrapper: t.contentWrapper, contentWrapperProps: t.contentWrapperProps } }, "enable-editor", {}, !1), [t.isSsrAbTest ? [n("inlined-script", { attrs: { scriptStr: t.scriptStr } })] : t._e(), t.TARGET !== "reactNative" ? [n("content-styles", { attrs: { contentId: (a = t.builderContextSignal.content) == null ? void 0 : a.id, cssCode: (s = (o = t.builderContextSignal.content) == null ? void 0 : o.data) == null ? void 0 : s.cssCode, customFonts: (r = (i = t.builderContextSignal.content) == null ? void 0 : i.data) == null ? void 0 : r.customFonts } })] : t._e(), n("blocks", { attrs: { blocks: (c = (l = t.builderContextSignal.content) == null ? void 0 : l.data) == null ? void 0 : c.blocks, context: t.builderContextSignal, registeredComponents: t.registeredComponents } })], 2);
|
|
908
914
|
}, me = [], he = /* @__PURE__ */ u(
|
|
909
915
|
pe,
|
|
910
916
|
ue,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { BlocksWrapperProps } from '../components/blocks/blocks-wrapper.vue';
|
|
1
2
|
import type { ApiVersion } from '../types/api-version.js';
|
|
2
3
|
import type { BuilderContent } from '../types/builder-content.js';
|
|
3
4
|
import type { ComponentInfo } from '../types/components.js';
|
|
@@ -8,7 +9,7 @@ export type RegisteredComponent = ComponentInfo & {
|
|
|
8
9
|
export type RegisteredComponents = Dictionary<RegisteredComponent>;
|
|
9
10
|
export type BuilderRenderState = Record<string, unknown>;
|
|
10
11
|
export type BuilderRenderContext = Record<string, unknown>;
|
|
11
|
-
export interface BuilderContextInterface {
|
|
12
|
+
export interface BuilderContextInterface extends Pick<BlocksWrapperProps, 'BlocksWrapper' | 'BlocksWrapperProps'> {
|
|
12
13
|
content: Nullable<BuilderContent>;
|
|
13
14
|
context: BuilderRenderContext;
|
|
14
15
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var l=require("./style.css");const c=require("./index-
|
|
1
|
+
"use strict";var l=require("./style.css");const c=require("./index-fae2823a.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
2
|
`),i=({mediaQuery:e,className:t,styles:r})=>{const s=`.${t} {
|
|
3
3
|
${a(r)}
|
|
4
4
|
}`;return e?`${e} {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
|
-
import { c as o } from "./index-
|
|
2
|
+
import { c as o } from "./index-7a45f7e8.js";
|
|
3
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]) => {
|
|
4
4
|
if (typeof e == "string")
|
|
5
5
|
return `${c(r)}: ${e};`;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var P=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("vue"),r=require("./index-fae2823a.cjs"),m=require("./evaluate-5b9ba4c5.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.10.0",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","contentWrapper","model","context","canTrack","apiKey","locale","includeRefs","enrich","content","showContent","contentWrapperProps"],data(){return{forceReRenderCount:0,lastUpdated:0,shouldSendResetCookie:!1,ContentWrapper:this.contentWrapper||"div",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(e.ContentWrapper,e._b({key:e.forceReRenderCount,ref:"elementRef",tag:"component",class:e._classStringToObject(`variant-${((i=e.content)==null?void 0:i.testVariationId)||((o=e.content)==null?void 0:o.id)}`),attrs:{onClick:a=>e.onClick(a),"builder-content-id":(s=e.builderContextSignal.content)==null?void 0:s.id,"builder-model":e.model,onIniteditingbldr:a=>e.elementRef_onIniteditingbldr(a),onInitpreviewingbldr:a=>e.elementRef_onInitpreviewingbldr(a)}},"component",{...e.showContent?{}:{hidden:!0,"aria-hidden":!0},...e.contentWrapperProps},!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,11 +1,11 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
2
|
import { defineComponent as k } from "vue";
|
|
3
|
-
import { r as w, m as
|
|
4
|
-
import { e as
|
|
5
|
-
function
|
|
3
|
+
import { r as w, m as h, T as y, l as f, _ as g, o as b, p as _, i as p, f as E, q as I, t as U, u as M, v as H, n as P } from "./index-7a45f7e8.js";
|
|
4
|
+
import { e as C } from "./evaluate-6fd688e4.js";
|
|
5
|
+
function S(n) {
|
|
6
6
|
return Math.round(n * 1e3) / 1e3;
|
|
7
7
|
}
|
|
8
|
-
const
|
|
8
|
+
const T = (n, e, t = !0) => {
|
|
9
9
|
if (!(n instanceof HTMLElement))
|
|
10
10
|
return null;
|
|
11
11
|
let i = t ? n : n.parentElement;
|
|
@@ -16,14 +16,14 @@ const P = (n, e, t = !0) => {
|
|
|
16
16
|
return i;
|
|
17
17
|
} while (i = i.parentElement);
|
|
18
18
|
return null;
|
|
19
|
-
}, K = (n) =>
|
|
19
|
+
}, K = (n) => T(n, (e) => {
|
|
20
20
|
const t = e.getAttribute("builder-id") || e.id;
|
|
21
21
|
return (t == null ? void 0 : t.indexOf("builder-")) === 0;
|
|
22
22
|
}), v = ({
|
|
23
23
|
event: n,
|
|
24
24
|
target: e
|
|
25
25
|
}) => {
|
|
26
|
-
const t = e.getBoundingClientRect(), i = n.clientX - t.left, o = n.clientY - t.top, s =
|
|
26
|
+
const t = e.getBoundingClientRect(), i = n.clientX - t.left, o = n.clientY - t.top, s = S(i / t.width), a = S(o / t.height);
|
|
27
27
|
return {
|
|
28
28
|
x: s,
|
|
29
29
|
y: a
|
|
@@ -44,7 +44,7 @@ const P = (n, e, t = !0) => {
|
|
|
44
44
|
builderElementIndex: t && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(t) : void 0
|
|
45
45
|
}
|
|
46
46
|
};
|
|
47
|
-
}, O = "0.
|
|
47
|
+
}, O = "0.10.0", N = () => {
|
|
48
48
|
w("insertMenu", {
|
|
49
49
|
name: "_default",
|
|
50
50
|
default: !0,
|
|
@@ -70,7 +70,7 @@ const P = (n, e, t = !0) => {
|
|
|
70
70
|
let R = !1;
|
|
71
71
|
const j = (n = {}) => {
|
|
72
72
|
var e, t;
|
|
73
|
-
R || (R = !0,
|
|
73
|
+
R || (R = !0, h() && ((e = window.parent) == null || e.postMessage({
|
|
74
74
|
type: "builder.sdkInfo",
|
|
75
75
|
data: {
|
|
76
76
|
target: y,
|
|
@@ -130,6 +130,7 @@ const j = (n = {}) => {
|
|
|
130
130
|
name: "enable-editor",
|
|
131
131
|
props: [
|
|
132
132
|
"builderContextSignal",
|
|
133
|
+
"contentWrapper",
|
|
133
134
|
"model",
|
|
134
135
|
"context",
|
|
135
136
|
"canTrack",
|
|
@@ -138,13 +139,15 @@ const j = (n = {}) => {
|
|
|
138
139
|
"includeRefs",
|
|
139
140
|
"enrich",
|
|
140
141
|
"content",
|
|
141
|
-
"showContent"
|
|
142
|
+
"showContent",
|
|
143
|
+
"contentWrapperProps"
|
|
142
144
|
],
|
|
143
145
|
data() {
|
|
144
146
|
return {
|
|
145
147
|
forceReRenderCount: 0,
|
|
146
148
|
lastUpdated: 0,
|
|
147
149
|
shouldSendResetCookie: !1,
|
|
150
|
+
ContentWrapper: this.contentWrapper || "div",
|
|
148
151
|
httpReqsData: {},
|
|
149
152
|
clicked: !1,
|
|
150
153
|
builderContext: f
|
|
@@ -159,8 +162,8 @@ const j = (n = {}) => {
|
|
|
159
162
|
mounted() {
|
|
160
163
|
(() => {
|
|
161
164
|
var t, i;
|
|
162
|
-
if (
|
|
163
|
-
if (
|
|
165
|
+
if (h()) {
|
|
166
|
+
if (p() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
164
167
|
new CustomEvent("initeditingbldr")
|
|
165
168
|
), this.builderContextSignal.content && b(this.canTrack)) {
|
|
166
169
|
const s = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId, a = (i = this.builderContextSignal.content) == null ? void 0 : i.id, d = this.apiKey;
|
|
@@ -211,7 +214,7 @@ const j = (n = {}) => {
|
|
|
211
214
|
}
|
|
212
215
|
},
|
|
213
216
|
unmounted() {
|
|
214
|
-
|
|
217
|
+
h() && (window.removeEventListener("message", this.processMessage), window.removeEventListener(
|
|
215
218
|
"builder:component:stateChangeListenerActivated",
|
|
216
219
|
this.emitStateUpdate
|
|
217
220
|
));
|
|
@@ -290,7 +293,7 @@ const j = (n = {}) => {
|
|
|
290
293
|
evaluateJsCode() {
|
|
291
294
|
var e, t;
|
|
292
295
|
const n = (t = (e = this.builderContextSignal.content) == null ? void 0 : e.data) == null ? void 0 : t.jsCode;
|
|
293
|
-
n &&
|
|
296
|
+
n && C({
|
|
294
297
|
code: n,
|
|
295
298
|
context: this.context || {},
|
|
296
299
|
localState: void 0,
|
|
@@ -317,7 +320,7 @@ const j = (n = {}) => {
|
|
|
317
320
|
evalExpression(n) {
|
|
318
321
|
return n.replace(
|
|
319
322
|
/{{([^}]+)}}/g,
|
|
320
|
-
(e, t) =>
|
|
323
|
+
(e, t) => C({
|
|
321
324
|
code: t,
|
|
322
325
|
context: this.context || {},
|
|
323
326
|
localState: void 0,
|
|
@@ -342,7 +345,7 @@ const j = (n = {}) => {
|
|
|
342
345
|
var e, t;
|
|
343
346
|
const n = ((t = (e = this.builderContextSignal.content) == null ? void 0 : e.data) == null ? void 0 : t.httpRequests) ?? {};
|
|
344
347
|
Object.entries(n).forEach(([i, o]) => {
|
|
345
|
-
if (o && (!this.httpReqsData[i] ||
|
|
348
|
+
if (o && (!this.httpReqsData[i] || p())) {
|
|
346
349
|
const s = this.evalExpression(o);
|
|
347
350
|
this.handleRequest({
|
|
348
351
|
url: s,
|
|
@@ -352,7 +355,7 @@ const j = (n = {}) => {
|
|
|
352
355
|
});
|
|
353
356
|
},
|
|
354
357
|
emitStateUpdate() {
|
|
355
|
-
|
|
358
|
+
p() && window.dispatchEvent(
|
|
356
359
|
new CustomEvent(
|
|
357
360
|
"builder:component:stateChange",
|
|
358
361
|
{
|
|
@@ -414,19 +417,14 @@ const j = (n = {}) => {
|
|
|
414
417
|
var L = function() {
|
|
415
418
|
var i, o, s;
|
|
416
419
|
var e = this, t = e._self._c;
|
|
417
|
-
return e._self._setupProxy, e.builderContextSignal.content ? t(
|
|
418
|
-
return e.onClick(a);
|
|
419
|
-
}, initeditingbldr: function(a) {
|
|
420
|
-
return e.elementRef_onIniteditingbldr(a);
|
|
421
|
-
}, initpreviewingbldr: function(a) {
|
|
422
|
-
return e.elementRef_onInitpreviewingbldr(a);
|
|
423
|
-
} } }, "div", {
|
|
420
|
+
return e._self._setupProxy, e.builderContextSignal.content ? t(e.ContentWrapper, e._b({ key: e.forceReRenderCount, ref: "elementRef", tag: "component", class: e._classStringToObject(`variant-${((i = e.content) == null ? void 0 : i.testVariationId) || ((o = e.content) == null ? void 0 : o.id)}`), attrs: { onClick: (a) => e.onClick(a), "builder-content-id": (s = e.builderContextSignal.content) == null ? void 0 : s.id, "builder-model": e.model, onIniteditingbldr: (a) => e.elementRef_onIniteditingbldr(a), onInitpreviewingbldr: (a) => e.elementRef_onInitpreviewingbldr(a) } }, "component", {
|
|
424
421
|
...e.showContent ? {} : {
|
|
425
422
|
hidden: !0,
|
|
426
423
|
"aria-hidden": !0
|
|
427
|
-
}
|
|
424
|
+
},
|
|
425
|
+
...e.contentWrapperProps
|
|
428
426
|
}, !1), [e._t("default")], 2) : e._e();
|
|
429
|
-
}, B = [], V = /* @__PURE__ */
|
|
427
|
+
}, B = [], V = /* @__PURE__ */ P(
|
|
430
428
|
A,
|
|
431
429
|
L,
|
|
432
430
|
B,
|
|
@@ -436,7 +434,7 @@ var L = function() {
|
|
|
436
434
|
null,
|
|
437
435
|
null
|
|
438
436
|
);
|
|
439
|
-
const
|
|
437
|
+
const J = V.exports;
|
|
440
438
|
export {
|
|
441
|
-
|
|
439
|
+
J as default
|
|
442
440
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var m=require("./style.css");const t=require("./index-
|
|
1
|
+
"use strict";var m=require("./style.css");const t=require("./index-fae2823a.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;
|
|
@@ -16,11 +16,11 @@ type ContentResults = {
|
|
|
16
16
|
/**
|
|
17
17
|
* @internal Exported only for testing purposes. Do not use.
|
|
18
18
|
*/
|
|
19
|
-
export declare const _processContentResult: (options: GetContentOptions, content: ContentResults, url?: URL) => Promise<
|
|
19
|
+
export declare const _processContentResult: (options: GetContentOptions, content: ContentResults, url?: URL) => Promise<BuilderContent[]>;
|
|
20
20
|
/**
|
|
21
21
|
* Returns a paginated array of entries that match the given options.
|
|
22
22
|
*/
|
|
23
|
-
export declare function fetchEntries(options: GetContentOptions): Promise<
|
|
23
|
+
export declare function fetchEntries(options: GetContentOptions): Promise<BuilderContent[] | null>;
|
|
24
24
|
/**
|
|
25
25
|
* @deprecated `getAllContent` was renamed to `fetchEntries`. This is a temporary alias to avoid breaking changes.
|
|
26
26
|
*/
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export declare function transformBlockProperties({ properties, }: {
|
|
2
|
+
properties: any;
|
|
3
|
+
block: any;
|
|
4
|
+
context: any;
|
|
5
|
+
}): any;
|
package/vue2/lib/{edge/get-block-actions-89cffb9a.js → browser/get-block-actions-9d967845.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
|
-
import { T as n } from "./index-
|
|
3
|
-
import { e as s } from "./evaluate-
|
|
2
|
+
import { T as n } from "./index-7a45f7e8.js";
|
|
3
|
+
import { e as s } from "./evaluate-6fd688e4.js";
|
|
4
4
|
const l = (e) => `v-on:${e.toLowerCase()}`, i = (e, t) => (o) => s({
|
|
5
5
|
code: e,
|
|
6
6
|
context: t.context,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var v=require("./style.css");const r=require("./index-
|
|
1
|
+
"use strict";var v=require("./style.css");const r=require("./index-fae2823a.cjs"),s=require("./evaluate-5b9ba4c5.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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var f=require("./style.css");const i=require("./index-fae2823a.cjs"),c=require("./css-38eebc34.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({properties: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({properties:s,context:t,block:e})}function l(e){switch(i.TARGET){case"svelte":case"vue2":case"vue3":case"solid":return c.convertStyleMapToCSSArray(e).join(" ");case"qwik":case"reactNative":case"react":case"rsc":return e}}exports.getBlockProperties=u;
|
package/vue2/lib/browser/{get-block-properties-4030d3b5.js → get-block-properties-ddf880dc.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
|
-
import { T as o } from "./index-
|
|
3
|
-
import { a } from "./css-
|
|
2
|
+
import { T as o } from "./index-7a45f7e8.js";
|
|
3
|
+
import { a } from "./css-c5e3c46b.js";
|
|
4
4
|
function i(e) {
|
|
5
5
|
const t = {};
|
|
6
6
|
if (typeof e != "string")
|
|
@@ -10,7 +10,9 @@ function i(e) {
|
|
|
10
10
|
t[r] = !0;
|
|
11
11
|
return t;
|
|
12
12
|
}
|
|
13
|
-
function n(
|
|
13
|
+
function n({
|
|
14
|
+
properties: e
|
|
15
|
+
}) {
|
|
14
16
|
return e.class = i(e.class), e;
|
|
15
17
|
}
|
|
16
18
|
const c = (e) => ({
|
|
@@ -28,7 +30,11 @@ function m({
|
|
|
28
30
|
style: e.style ? u(e.style) : void 0,
|
|
29
31
|
class: [e.id, "builder-block", e.class, (r = e.properties) == null ? void 0 : r.class].filter(Boolean).join(" ")
|
|
30
32
|
};
|
|
31
|
-
return n(
|
|
33
|
+
return n({
|
|
34
|
+
properties: s,
|
|
35
|
+
context: t,
|
|
36
|
+
block: e
|
|
37
|
+
});
|
|
32
38
|
}
|
|
33
39
|
function u(e) {
|
|
34
40
|
switch (o) {
|
package/vue2/lib/browser/{get-processed-block-14ea8201.cjs → get-processed-block-6a4110c3.cjs}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var m=require("./style.css");const d=require("./index-
|
|
1
|
+
"use strict";var m=require("./style.css");const d=require("./index-fae2823a.cjs"),g=require("./evaluate-5b9ba4c5.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;
|
package/vue2/lib/browser/{get-processed-block-497309fc.js → get-processed-block-8eee466e.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
|
-
import { f } from "./index-
|
|
3
|
-
import { e as d } from "./evaluate-
|
|
2
|
+
import { f } from "./index-7a45f7e8.js";
|
|
3
|
+
import { e as d } from "./evaluate-6fd688e4.js";
|
|
4
4
|
const g = (n, i, o) => {
|
|
5
5
|
if (Object(n) !== n)
|
|
6
6
|
return n;
|