@builder.io/sdk-vue 0.7.1-1 → 0.7.2
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 +4 -4
- package/vue2/lib/browser/block-750d8ed7.cjs +3 -0
- package/vue2/lib/{node/block-979d66e1.js → browser/block-86d82810.js} +62 -62
- package/vue2/lib/{node/block-styles-50528f05.js → browser/block-styles-132270d0.js} +5 -5
- package/vue2/lib/{edge/block-styles-ba691a55.cjs → browser/block-styles-5b5e9888.cjs} +1 -1
- package/vue2/lib/browser/{block-wrapper-2d901f3f.cjs → block-wrapper-571b134c.cjs} +1 -1
- package/vue2/lib/browser/{block-wrapper-b1a6d78a.js → block-wrapper-f011d1f2.js} +5 -5
- package/vue2/lib/browser/blocks/button/button.vue.d.ts +2 -1
- package/vue2/lib/browser/blocks/columns/columns.vue.d.ts +2 -2
- package/vue2/lib/browser/blocks/img/img.vue.d.ts +2 -1
- package/vue2/lib/browser/blocks/section/section.vue.d.ts +2 -1
- package/vue2/lib/browser/blocks/symbol/symbol.vue.d.ts +4 -2
- package/vue2/lib/{edge/blocks-wrapper-7e831b51.cjs → browser/blocks-wrapper-1d620d76.cjs} +1 -1
- package/vue2/lib/{edge/blocks-wrapper-9c7effa2.js → browser/blocks-wrapper-33f35ea5.js} +1 -1
- package/vue2/lib/{edge/component-ref-02d30d18.cjs → browser/component-ref-26a164ea.cjs} +1 -1
- package/vue2/lib/{edge/component-ref-0404fc38.js → browser/component-ref-d6254a68.js} +10 -10
- package/vue2/lib/browser/components/block/block.vue.d.ts +3 -3
- package/vue2/lib/browser/components/block/components/block-styles.vue.d.ts +3 -3
- package/vue2/lib/browser/components/block/components/block-wrapper.vue.d.ts +3 -3
- package/vue2/lib/browser/components/block/components/interactive-element.vue.d.ts +3 -3
- package/vue2/lib/browser/components/blocks/blocks.vue.d.ts +2 -2
- package/vue2/lib/browser/components/content-variants/content-variants.vue.d.ts +4 -4
- package/vue2/lib/browser/components/inlined-styles.vue.d.ts +3 -3
- package/vue2/lib/browser/constants/sdk-version.d.ts +1 -1
- package/vue2/lib/browser/content-859f190b.cjs +1 -0
- package/vue2/lib/{edge/content-173f7be0.js → browser/content-dc49d77b.js} +232 -232
- package/vue2/lib/browser/context/types.d.ts +1 -1
- package/vue2/lib/browser/{css-d68fe0e5.js → css-67efb2d0.js} +1 -1
- package/vue2/lib/browser/{css-32f0c7fe.cjs → css-a19d330c.cjs} +1 -1
- package/vue2/lib/browser/{enable-editor-29804f7c.js → enable-editor-4054558e.js} +59 -60
- package/vue2/lib/browser/enable-editor-ed3f647e.cjs +1 -0
- package/vue2/lib/browser/{evaluate-c21703b5.js → evaluate-28c12253.js} +1 -1
- package/vue2/lib/browser/{evaluate-5f291a57.cjs → evaluate-6cd69c12.cjs} +1 -1
- package/vue2/lib/{node/get-block-actions-a7c25deb.js → browser/get-block-actions-63de56e5.js} +2 -2
- package/vue2/lib/browser/{get-block-actions-4f4fdc14.cjs → get-block-actions-f19965b6.cjs} +1 -1
- package/vue2/lib/{node/get-block-properties-75f3f91a.cjs → browser/get-block-properties-21c833e6.cjs} +1 -1
- package/vue2/lib/browser/{get-block-properties-14335b2d.js → get-block-properties-a5f2574c.js} +2 -2
- package/vue2/lib/browser/{get-processed-block-7dbd0508.cjs → get-processed-block-981ce262.cjs} +1 -1
- package/vue2/lib/browser/{get-processed-block-9c43bb30.js → get-processed-block-9b23550f.js} +2 -2
- package/vue2/lib/browser/helpers/ab-tests.d.ts +1 -1
- package/vue2/lib/{node/index-ea4df31a.cjs → browser/index-63eb9f8d.cjs} +9 -9
- package/vue2/lib/{node/index-7ce12494.js → browser/index-f82eab8f.js} +170 -170
- package/vue2/lib/browser/index-helpers/blocks-exports.d.ts +4 -4
- package/vue2/lib/browser/index.cjs +1 -1
- package/vue2/lib/browser/index.js +1 -1
- package/vue2/lib/{edge/inlined-script-7a7207fd.js → browser/inlined-script-2d16b8db.js} +1 -1
- package/vue2/lib/browser/{inlined-script-cc25d25c.cjs → inlined-script-95114af2.cjs} +1 -1
- package/vue2/lib/{node/inlined-styles-08dbb945.cjs → browser/inlined-styles-9637cb58.cjs} +1 -1
- package/vue2/lib/{node/inlined-styles-8982c8a6.js → browser/inlined-styles-fbbf7fd9.js} +1 -1
- package/vue2/lib/{node/interactive-element-caabd2d9.js → browser/interactive-element-c87a6c35.js} +5 -5
- package/vue2/lib/{node/interactive-element-fc5a4f1d.cjs → browser/interactive-element-d37313e0.cjs} +1 -1
- package/vue2/lib/{node/repeated-block-0ab8e6be.js → browser/repeated-block-231b11b1.js} +2 -2
- package/vue2/lib/browser/{repeated-block-ba80a339.cjs → repeated-block-49fef627.cjs} +1 -1
- package/vue2/lib/browser/server-index.d.ts +2 -2
- package/vue2/lib/browser/style.css +1 -1
- package/vue2/lib/{node/styles-6e09a0cc.js → browser/styles-28f7ec70.js} +2 -2
- package/vue2/lib/{node/styles-96606872.cjs → browser/styles-6a6b8114.cjs} +2 -2
- package/vue2/lib/edge/block-85fe2549.cjs +3 -0
- package/vue2/lib/{browser/block-dc97e982.js → edge/block-88cc78c4.js} +62 -62
- package/vue2/lib/{node/block-styles-00a3a4d7.cjs → edge/block-styles-65d9a724.cjs} +1 -1
- package/vue2/lib/edge/{block-styles-bd09453c.js → block-styles-9140aecf.js} +5 -5
- package/vue2/lib/{node/block-wrapper-8bd5d40b.js → edge/block-wrapper-36a4a767.js} +5 -5
- package/vue2/lib/edge/{block-wrapper-8e1bd00b.cjs → block-wrapper-e6392713.cjs} +1 -1
- package/vue2/lib/edge/blocks/button/button.vue.d.ts +2 -1
- package/vue2/lib/edge/blocks/columns/columns.vue.d.ts +2 -2
- package/vue2/lib/edge/blocks/img/img.vue.d.ts +2 -1
- package/vue2/lib/edge/blocks/section/section.vue.d.ts +2 -1
- package/vue2/lib/edge/blocks/symbol/symbol.vue.d.ts +4 -2
- package/vue2/lib/{browser/blocks-wrapper-9e8dd7a2.cjs → edge/blocks-wrapper-96489519.cjs} +1 -1
- package/vue2/lib/{browser/blocks-wrapper-fcb480f0.js → edge/blocks-wrapper-dcd7b27a.js} +1 -1
- package/vue2/lib/{node/component-ref-3ba26510.cjs → edge/component-ref-0bf4a838.cjs} +1 -1
- package/vue2/lib/{node/component-ref-123ffd3c.js → edge/component-ref-9b2c6138.js} +10 -10
- package/vue2/lib/edge/components/block/block.vue.d.ts +3 -3
- package/vue2/lib/edge/components/block/components/block-styles.vue.d.ts +3 -3
- package/vue2/lib/edge/components/block/components/block-wrapper.vue.d.ts +3 -3
- package/vue2/lib/edge/components/block/components/interactive-element.vue.d.ts +3 -3
- package/vue2/lib/edge/components/blocks/blocks.vue.d.ts +2 -2
- package/vue2/lib/edge/components/content-variants/content-variants.vue.d.ts +4 -4
- package/vue2/lib/edge/components/inlined-styles.vue.d.ts +3 -3
- package/vue2/lib/edge/constants/sdk-version.d.ts +1 -1
- package/vue2/lib/edge/content-199e7143.cjs +1 -0
- package/vue2/lib/{browser/content-76b432c4.js → edge/content-ad722031.js} +232 -232
- package/vue2/lib/edge/context/types.d.ts +1 -1
- package/vue2/lib/{node/css-c566c7a4.cjs → edge/css-05af2335.cjs} +1 -1
- package/vue2/lib/edge/{css-081095c1.js → css-5bd5388a.js} +1 -1
- package/vue2/lib/{node/enable-editor-96dbd852.js → edge/enable-editor-a32a425e.js} +59 -60
- package/vue2/lib/edge/enable-editor-ee8b2ba3.cjs +1 -0
- package/vue2/lib/edge/{evaluate-47aeba42.cjs → evaluate-7661cdf7.cjs} +1 -1
- package/vue2/lib/edge/{evaluate-d31c253f.js → evaluate-79ba5368.js} +1 -1
- package/vue2/lib/edge/{get-block-actions-fc18e691.cjs → get-block-actions-4ed31703.cjs} +1 -1
- package/vue2/lib/{browser/get-block-actions-47eb8bee.js → edge/get-block-actions-5ae9dffc.js} +2 -2
- package/vue2/lib/edge/{get-block-properties-d0176121.js → get-block-properties-c72eb3c0.js} +2 -2
- package/vue2/lib/{browser/get-block-properties-4c2072d0.cjs → edge/get-block-properties-e0553a33.cjs} +1 -1
- package/vue2/lib/edge/{get-processed-block-2d9f33f5.cjs → get-processed-block-e8256b7e.cjs} +1 -1
- package/vue2/lib/{node/get-processed-block-231c050b.js → edge/get-processed-block-f3dbc4e7.js} +2 -2
- package/vue2/lib/edge/helpers/ab-tests.d.ts +1 -1
- package/vue2/lib/edge/{index-6e4d121e.js → index-4cf9f60c.js} +170 -170
- package/vue2/lib/edge/{index-ca5baf07.cjs → index-946de873.cjs} +9 -9
- package/vue2/lib/edge/index-helpers/blocks-exports.d.ts +4 -4
- package/vue2/lib/edge/index.cjs +1 -1
- package/vue2/lib/edge/index.js +1 -1
- package/vue2/lib/{node/inlined-script-073d04d2.js → edge/inlined-script-58b1138d.js} +1 -1
- package/vue2/lib/{node/inlined-script-dccfb7fc.cjs → edge/inlined-script-cd8bf7d3.cjs} +1 -1
- package/vue2/lib/edge/{inlined-styles-f109793f.js → inlined-styles-8c6cdbc5.js} +1 -1
- package/vue2/lib/{browser/inlined-styles-da08b05d.cjs → edge/inlined-styles-a1951810.cjs} +1 -1
- package/vue2/lib/edge/{interactive-element-9c12c501.cjs → interactive-element-1a5ee50b.cjs} +1 -1
- package/vue2/lib/{browser/interactive-element-ac3e10b7.js → edge/interactive-element-2f0d2294.js} +5 -5
- package/vue2/lib/edge/{repeated-block-1093b757.cjs → repeated-block-8721baa8.cjs} +1 -1
- package/vue2/lib/{browser/repeated-block-51e74834.js → edge/repeated-block-a32b01bc.js} +2 -2
- package/vue2/lib/edge/server-index.d.ts +2 -2
- package/vue2/lib/edge/style.css +1 -1
- package/vue2/lib/{browser/styles-931da5e8.cjs → edge/styles-b2c8a706.cjs} +2 -2
- package/vue2/lib/{browser/styles-5eb21cb8.js → edge/styles-eab59896.js} +2 -2
- package/vue2/lib/node/block-575160ba.cjs +3 -0
- package/vue2/lib/{edge/block-2c7301d0.js → node/block-6c3981dc.js} +62 -62
- package/vue2/lib/{browser/block-styles-8f571c43.cjs → node/block-styles-258f0e47.cjs} +1 -1
- package/vue2/lib/{browser/block-styles-bc460f14.js → node/block-styles-b1b9a610.js} +5 -5
- package/vue2/lib/{edge/block-wrapper-4210f268.js → node/block-wrapper-1bdc3ca4.js} +5 -5
- package/vue2/lib/node/{block-wrapper-d7b449f1.cjs → block-wrapper-fed00059.cjs} +1 -1
- package/vue2/lib/node/blocks/button/button.vue.d.ts +2 -1
- package/vue2/lib/node/blocks/columns/columns.vue.d.ts +2 -2
- package/vue2/lib/node/blocks/img/img.vue.d.ts +2 -1
- package/vue2/lib/node/blocks/section/section.vue.d.ts +2 -1
- package/vue2/lib/node/blocks/symbol/symbol.vue.d.ts +4 -2
- package/vue2/lib/node/{blocks-wrapper-50937fc2.js → blocks-wrapper-031887f0.js} +1 -1
- package/vue2/lib/node/{blocks-wrapper-d425bec5.cjs → blocks-wrapper-80b3a22f.cjs} +1 -1
- package/vue2/lib/{browser/component-ref-bc236051.cjs → node/component-ref-5be913d9.cjs} +1 -1
- package/vue2/lib/{browser/component-ref-68e3a5b6.js → node/component-ref-ccb3e639.js} +10 -10
- package/vue2/lib/node/components/block/block.vue.d.ts +3 -3
- package/vue2/lib/node/components/block/components/block-styles.vue.d.ts +3 -3
- package/vue2/lib/node/components/block/components/block-wrapper.vue.d.ts +3 -3
- package/vue2/lib/node/components/block/components/interactive-element.vue.d.ts +3 -3
- package/vue2/lib/node/components/blocks/blocks.vue.d.ts +2 -2
- package/vue2/lib/node/components/content-variants/content-variants.vue.d.ts +4 -4
- package/vue2/lib/node/components/inlined-styles.vue.d.ts +3 -3
- package/vue2/lib/node/constants/sdk-version.d.ts +1 -1
- package/vue2/lib/node/content-8b7678bc.cjs +1 -0
- package/vue2/lib/node/{content-d31377e7.js → content-f80acd05.js} +232 -232
- package/vue2/lib/node/context/types.d.ts +1 -1
- package/vue2/lib/{edge/css-00393f8a.cjs → node/css-44cbcf3f.cjs} +1 -1
- package/vue2/lib/node/{css-469bd1df.js → css-ad18a8ab.js} +1 -1
- package/vue2/lib/node/enable-editor-405441b9.cjs +1 -0
- package/vue2/lib/{edge/enable-editor-d3f018c6.js → node/enable-editor-8b4a5b45.js} +59 -60
- package/vue2/lib/node/{evaluate-45bac138.cjs → evaluate-19fac854.cjs} +1 -1
- package/vue2/lib/node/{evaluate-946bbbf4.js → evaluate-52887aac.js} +8 -8
- package/vue2/lib/{edge/get-block-actions-33002e58.js → node/get-block-actions-1a6b19ce.js} +2 -2
- package/vue2/lib/node/{get-block-actions-fa0f60c5.cjs → get-block-actions-65751661.cjs} +1 -1
- package/vue2/lib/{edge/get-block-properties-c1a43e4b.cjs → node/get-block-properties-2204d735.cjs} +1 -1
- package/vue2/lib/node/{get-block-properties-5524be2a.js → get-block-properties-cbc0612e.js} +2 -2
- package/vue2/lib/{edge/get-processed-block-1280c9d5.js → node/get-processed-block-78fabb02.js} +2 -2
- package/vue2/lib/node/{get-processed-block-e246d1ed.cjs → get-processed-block-902c8e72.cjs} +1 -1
- package/vue2/lib/node/helpers/ab-tests.d.ts +1 -1
- package/vue2/lib/{browser/index-bb14138e.js → node/index-43273102.js} +170 -170
- package/vue2/lib/{browser/index-7528c088.cjs → node/index-d8e34fec.cjs} +9 -9
- package/vue2/lib/node/index-helpers/blocks-exports.d.ts +4 -4
- package/vue2/lib/node/index.cjs +1 -1
- package/vue2/lib/node/index.js +1 -1
- package/vue2/lib/{edge/inlined-script-e57329a5.cjs → node/inlined-script-82af82d4.cjs} +1 -1
- package/vue2/lib/{browser/inlined-script-431b5967.js → node/inlined-script-da97caa2.js} +1 -1
- package/vue2/lib/{edge/inlined-styles-9a96b77e.cjs → node/inlined-styles-73c1efea.cjs} +1 -1
- package/vue2/lib/{browser/inlined-styles-1717d4f0.js → node/inlined-styles-f35650e9.js} +1 -1
- package/vue2/lib/{browser/interactive-element-03353733.cjs → node/interactive-element-07235e63.cjs} +1 -1
- package/vue2/lib/{edge/interactive-element-6a866621.js → node/interactive-element-22405343.js} +5 -5
- package/vue2/lib/{edge/repeated-block-f7b967cf.js → node/repeated-block-53bf7a45.js} +2 -2
- package/vue2/lib/node/{repeated-block-f65d29a5.cjs → repeated-block-771e5e8b.cjs} +1 -1
- package/vue2/lib/node/server-index.d.ts +2 -2
- package/vue2/lib/node/style.css +1 -1
- package/vue2/lib/{edge/styles-a211b4e1.cjs → node/styles-6a9d7ee1.cjs} +2 -2
- package/vue2/lib/{edge/styles-aa2c087b.js → node/styles-c2fd2724.js} +2 -2
- package/vue2/package.json +1 -0
- package/vue3/lib/{edge/block-wrapper.4b2f2fb3.js → browser/block-wrapper.32fa4b39.js} +8 -8
- package/vue3/lib/browser/{block-wrapper.49af98a6.cjs → block-wrapper.fc71d4d3.cjs} +1 -1
- package/vue3/lib/browser/blocks/button/button.vue.d.ts +2 -1
- package/vue3/lib/browser/blocks/columns/columns.vue.d.ts +2 -2
- package/vue3/lib/browser/blocks/image/image.vue.d.ts +3 -3
- package/vue3/lib/browser/blocks/img/img.vue.d.ts +2 -1
- package/vue3/lib/browser/blocks/section/section.vue.d.ts +2 -1
- package/vue3/lib/browser/blocks/symbol/symbol.vue.d.ts +4 -2
- package/vue3/lib/{edge/component-ref.98beaea3.js → browser/component-ref.52b4ab91.js} +17 -17
- package/vue3/lib/browser/component-ref.f8946ad7.cjs +1 -0
- package/vue3/lib/browser/components/block/block.vue.d.ts +3 -3
- package/vue3/lib/browser/components/block/components/block-styles.vue.d.ts +3 -3
- package/vue3/lib/browser/components/block/components/block-wrapper.vue.d.ts +3 -3
- package/vue3/lib/browser/components/block/components/component-ref/component-ref.vue.d.ts +4 -4
- package/vue3/lib/browser/components/block/components/interactive-element.vue.d.ts +3 -3
- package/vue3/lib/browser/components/blocks/blocks.vue.d.ts +1 -1
- package/vue3/lib/browser/components/content/components/enable-editor.vue.d.ts +3 -3
- package/vue3/lib/browser/components/content/content.vue.d.ts +3 -3
- package/vue3/lib/browser/components/content-variants/content-variants.vue.d.ts +7 -5
- package/vue3/lib/browser/components/inlined-styles.vue.d.ts +3 -3
- package/vue3/lib/browser/constants/sdk-version.d.ts +1 -1
- package/vue3/lib/browser/context/types.d.ts +1 -1
- package/vue3/lib/{edge/get-block-actions.b460cca3.js → browser/get-block-actions.33a95ae9.js} +1 -1
- package/vue3/lib/{edge/get-block-actions.407fbfa9.cjs → browser/get-block-actions.720b385e.cjs} +1 -1
- package/vue3/lib/browser/helpers/ab-tests.d.ts +1 -1
- package/vue3/lib/browser/index-helpers/blocks-exports.d.ts +4 -4
- package/vue3/lib/browser/index.abbd01ce.cjs +69 -0
- package/vue3/lib/browser/{index.88b433c6.js → index.bd816233.js} +1303 -1285
- package/vue3/lib/browser/index.cjs +1 -1
- package/vue3/lib/browser/index.js +1 -1
- package/vue3/lib/{edge/repeated-block.cc9bbed2.js → browser/repeated-block.41d43763.js} +6 -6
- package/vue3/lib/{edge/repeated-block.f5d444e9.cjs → browser/repeated-block.4bb78d4d.cjs} +1 -1
- package/vue3/lib/browser/server-index.d.ts +2 -2
- package/vue3/lib/{browser/block-wrapper.09b54dd3.js → edge/block-wrapper.4bb452b4.js} +8 -8
- package/vue3/lib/edge/{block-wrapper.2d4ec833.cjs → block-wrapper.d36a195b.cjs} +1 -1
- package/vue3/lib/edge/blocks/button/button.vue.d.ts +2 -1
- package/vue3/lib/edge/blocks/columns/columns.vue.d.ts +2 -2
- package/vue3/lib/edge/blocks/image/image.vue.d.ts +3 -3
- package/vue3/lib/edge/blocks/img/img.vue.d.ts +2 -1
- package/vue3/lib/edge/blocks/section/section.vue.d.ts +2 -1
- package/vue3/lib/edge/blocks/symbol/symbol.vue.d.ts +4 -2
- package/vue3/lib/edge/component-ref.09c0c561.cjs +1 -0
- package/vue3/lib/{browser/component-ref.63194b25.js → edge/component-ref.215d8eb3.js} +17 -17
- package/vue3/lib/edge/components/block/block.vue.d.ts +3 -3
- package/vue3/lib/edge/components/block/components/block-styles.vue.d.ts +3 -3
- package/vue3/lib/edge/components/block/components/block-wrapper.vue.d.ts +3 -3
- package/vue3/lib/edge/components/block/components/component-ref/component-ref.vue.d.ts +4 -4
- package/vue3/lib/edge/components/block/components/interactive-element.vue.d.ts +3 -3
- package/vue3/lib/edge/components/blocks/blocks.vue.d.ts +1 -1
- package/vue3/lib/edge/components/content/components/enable-editor.vue.d.ts +3 -3
- package/vue3/lib/edge/components/content/content.vue.d.ts +3 -3
- package/vue3/lib/edge/components/content-variants/content-variants.vue.d.ts +7 -5
- package/vue3/lib/edge/components/inlined-styles.vue.d.ts +3 -3
- package/vue3/lib/edge/constants/sdk-version.d.ts +1 -1
- package/vue3/lib/edge/context/types.d.ts +1 -1
- package/vue3/lib/{browser/get-block-actions.4f330889.js → edge/get-block-actions.32987a91.js} +1 -1
- package/vue3/lib/{browser/get-block-actions.2e99e179.cjs → edge/get-block-actions.b7d0a3c2.cjs} +1 -1
- package/vue3/lib/edge/helpers/ab-tests.d.ts +1 -1
- package/vue3/lib/edge/index-helpers/blocks-exports.d.ts +4 -4
- package/vue3/lib/edge/{index.a8ffb479.js → index.cc0efb3b.js} +1526 -1507
- package/vue3/lib/edge/index.ceec697c.cjs +89 -0
- package/vue3/lib/edge/index.cjs +1 -1
- package/vue3/lib/edge/index.js +1 -1
- package/vue3/lib/{browser/repeated-block.ef8176d8.cjs → edge/repeated-block.b5d1a5b6.cjs} +1 -1
- package/vue3/lib/{browser/repeated-block.067ee555.js → edge/repeated-block.d1e4f878.js} +6 -6
- package/vue3/lib/edge/server-index.d.ts +2 -2
- package/vue3/lib/node/{block-wrapper.25e28ca3.cjs → block-wrapper.027e2e58.cjs} +1 -1
- package/vue3/lib/node/{block-wrapper.56bce6c4.js → block-wrapper.1f5bec88.js} +5 -5
- package/vue3/lib/node/blocks/button/button.vue.d.ts +2 -1
- package/vue3/lib/node/blocks/columns/columns.vue.d.ts +2 -2
- package/vue3/lib/node/blocks/image/image.vue.d.ts +3 -3
- package/vue3/lib/node/blocks/img/img.vue.d.ts +2 -1
- package/vue3/lib/node/blocks/section/section.vue.d.ts +2 -1
- package/vue3/lib/node/blocks/symbol/symbol.vue.d.ts +4 -2
- package/vue3/lib/node/component-ref.5c293120.cjs +1 -0
- package/vue3/lib/node/{component-ref.cd59ca4d.js → component-ref.d2c6eedf.js} +17 -17
- package/vue3/lib/node/components/block/block.vue.d.ts +3 -3
- package/vue3/lib/node/components/block/components/block-styles.vue.d.ts +3 -3
- package/vue3/lib/node/components/block/components/block-wrapper.vue.d.ts +3 -3
- package/vue3/lib/node/components/block/components/component-ref/component-ref.vue.d.ts +4 -4
- package/vue3/lib/node/components/block/components/interactive-element.vue.d.ts +3 -3
- package/vue3/lib/node/components/blocks/blocks.vue.d.ts +1 -1
- package/vue3/lib/node/components/content/components/enable-editor.vue.d.ts +3 -3
- package/vue3/lib/node/components/content/content.vue.d.ts +3 -3
- package/vue3/lib/node/components/content-variants/content-variants.vue.d.ts +7 -5
- package/vue3/lib/node/components/inlined-styles.vue.d.ts +3 -3
- package/vue3/lib/node/constants/sdk-version.d.ts +1 -1
- package/vue3/lib/node/context/types.d.ts +1 -1
- package/vue3/lib/node/{get-block-actions.0d715e21.cjs → get-block-actions.3bf73664.cjs} +1 -1
- package/vue3/lib/node/{get-block-actions.3df391e9.js → get-block-actions.68279ccf.js} +1 -1
- package/vue3/lib/node/helpers/ab-tests.d.ts +1 -1
- package/vue3/lib/node/index-helpers/blocks-exports.d.ts +4 -4
- package/vue3/lib/node/index.44e0d18b.cjs +109 -0
- package/vue3/lib/node/{index.88589866.js → index.bb1871d7.js} +1402 -1384
- package/vue3/lib/node/index.cjs +1 -1
- package/vue3/lib/node/index.js +1 -1
- package/vue3/lib/node/{repeated-block.78ed5bbb.cjs → repeated-block.6533598e.cjs} +1 -1
- package/vue3/lib/node/{repeated-block.57ca2ba1.js → repeated-block.c5b9936f.js} +5 -5
- package/vue3/lib/node/server-index.d.ts +2 -2
- package/vue3/package.json +1 -0
- package/vue2/lib/browser/block-2cb52597.cjs +0 -3
- package/vue2/lib/browser/content-1a8d2e10.cjs +0 -1
- package/vue2/lib/browser/enable-editor-58cd5d33.cjs +0 -1
- package/vue2/lib/edge/block-40b0f7b5.cjs +0 -3
- package/vue2/lib/edge/content-36b34b86.cjs +0 -1
- package/vue2/lib/edge/enable-editor-c36df3b5.cjs +0 -1
- package/vue2/lib/node/block-d7e689a7.cjs +0 -3
- package/vue2/lib/node/content-d8e76f5c.cjs +0 -1
- package/vue2/lib/node/enable-editor-8c4e460a.cjs +0 -1
- package/vue3/lib/browser/component-ref.78f795cd.cjs +0 -1
- package/vue3/lib/browser/index.c04232f6.cjs +0 -69
- package/vue3/lib/edge/component-ref.d8514fb0.cjs +0 -1
- package/vue3/lib/edge/index.8bdc4716.cjs +0 -89
- package/vue3/lib/node/component-ref.c35ae123.cjs +0 -1
- package/vue3/lib/node/index.b2d2bb5e.cjs +0 -109
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
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 R, j as f, s as g, T as F, k as E } from "./index-
|
|
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 R, j as f, s as g, T as F, k as E } from "./index-43273102.js";
|
|
3
3
|
const V = {
|
|
4
4
|
name: "Core:Button",
|
|
5
5
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
@@ -235,12 +235,176 @@ const V = {
|
|
|
235
235
|
advanced: !0
|
|
236
236
|
}]
|
|
237
237
|
}, W = {
|
|
238
|
+
name: "Custom Code",
|
|
239
|
+
static: !0,
|
|
240
|
+
requiredPermissions: ["editCode"],
|
|
241
|
+
inputs: [{
|
|
242
|
+
name: "code",
|
|
243
|
+
type: "html",
|
|
244
|
+
required: !0,
|
|
245
|
+
defaultValue: "<p>Hello there, I am custom HTML code!</p>",
|
|
246
|
+
code: !0
|
|
247
|
+
}, {
|
|
248
|
+
name: "replaceNodes",
|
|
249
|
+
type: "boolean",
|
|
250
|
+
helperText: "Preserve server rendered dom nodes",
|
|
251
|
+
advanced: !0
|
|
252
|
+
}, {
|
|
253
|
+
name: "scriptsClientOnly",
|
|
254
|
+
type: "boolean",
|
|
255
|
+
defaultValue: !1,
|
|
256
|
+
helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
|
|
257
|
+
advanced: !0
|
|
258
|
+
}]
|
|
259
|
+
}, $ = p({
|
|
260
|
+
name: "builder-custom-code",
|
|
261
|
+
props: ["replaceNodes", "code"],
|
|
262
|
+
data() {
|
|
263
|
+
return { scriptsInserted: [], scriptsRun: [] };
|
|
264
|
+
},
|
|
265
|
+
mounted() {
|
|
266
|
+
var t;
|
|
267
|
+
if (!((t = this.$refs.elementRef) != null && t.getElementsByTagName) || typeof window > "u")
|
|
268
|
+
return;
|
|
269
|
+
const e = this.$refs.elementRef.getElementsByTagName("script");
|
|
270
|
+
for (let n = 0; n < e.length; n++) {
|
|
271
|
+
const a = e[n];
|
|
272
|
+
if (a.src) {
|
|
273
|
+
if (this.scriptsInserted.includes(a.src))
|
|
274
|
+
continue;
|
|
275
|
+
this.scriptsInserted.push(a.src);
|
|
276
|
+
const o = document.createElement("script");
|
|
277
|
+
o.async = !0, o.src = a.src, document.head.appendChild(o);
|
|
278
|
+
} else if (!a.type || [
|
|
279
|
+
"text/javascript",
|
|
280
|
+
"application/javascript",
|
|
281
|
+
"application/ecmascript"
|
|
282
|
+
].includes(a.type)) {
|
|
283
|
+
if (this.scriptsRun.includes(a.innerText))
|
|
284
|
+
continue;
|
|
285
|
+
try {
|
|
286
|
+
this.scriptsRun.push(a.innerText), new Function(a.innerText)();
|
|
287
|
+
} catch (o) {
|
|
288
|
+
console.warn("`CustomCode`: Error running script:", o);
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
},
|
|
293
|
+
methods: {
|
|
294
|
+
_classStringToObject(e) {
|
|
295
|
+
const t = {};
|
|
296
|
+
if (typeof e != "string")
|
|
297
|
+
return t;
|
|
298
|
+
const n = e.trim().split(/\s+/);
|
|
299
|
+
for (const a of n)
|
|
300
|
+
t[a] = !0;
|
|
301
|
+
return t;
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
});
|
|
305
|
+
var P = function() {
|
|
306
|
+
var t = this, n = t._self._c;
|
|
307
|
+
return t._self._setupProxy, n("div", { ref: "elementRef", class: t._classStringToObject(
|
|
308
|
+
"builder-custom-code" + (t.replaceNodes ? " replace-nodes" : "")
|
|
309
|
+
), domProps: { innerHTML: t._s(t.code) } });
|
|
310
|
+
}, U = [], j = /* @__PURE__ */ u(
|
|
311
|
+
$,
|
|
312
|
+
P,
|
|
313
|
+
U,
|
|
314
|
+
!1,
|
|
315
|
+
null,
|
|
316
|
+
null,
|
|
317
|
+
null,
|
|
318
|
+
null
|
|
319
|
+
);
|
|
320
|
+
const H = j.exports, L = {
|
|
321
|
+
name: "Embed",
|
|
322
|
+
static: !0,
|
|
323
|
+
inputs: [{
|
|
324
|
+
name: "url",
|
|
325
|
+
type: "url",
|
|
326
|
+
required: !0,
|
|
327
|
+
defaultValue: "",
|
|
328
|
+
helperText: "e.g. enter a youtube url, google map, etc",
|
|
329
|
+
onChange: (e) => {
|
|
330
|
+
const t = e.get("url");
|
|
331
|
+
if (t)
|
|
332
|
+
return e.set("content", "Loading..."), fetch(`https://iframe.ly/api/iframely?url=${t}&api_key=ae0e60e78201a3f2b0de4b`).then((a) => a.json()).then((a) => {
|
|
333
|
+
e.get("url") === t && (a.html ? e.set("content", a.html) : e.set("content", "Invalid url, please try another"));
|
|
334
|
+
}).catch((a) => {
|
|
335
|
+
e.set("content", "There was an error embedding this URL, please try again or another URL");
|
|
336
|
+
});
|
|
337
|
+
e.delete("content");
|
|
338
|
+
}
|
|
339
|
+
}, {
|
|
340
|
+
name: "content",
|
|
341
|
+
type: "html",
|
|
342
|
+
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
343
|
+
hideFromUI: !0
|
|
344
|
+
}]
|
|
345
|
+
}, z = ["text/javascript", "application/javascript", "application/ecmascript"], D = (e) => z.includes(e.type), N = p({
|
|
346
|
+
name: "builder-embed",
|
|
347
|
+
props: ["content"],
|
|
348
|
+
data() {
|
|
349
|
+
return { scriptsInserted: [], scriptsRun: [], ranInitFn: !1 };
|
|
350
|
+
},
|
|
351
|
+
watch: {
|
|
352
|
+
onUpdateHook0: {
|
|
353
|
+
handler() {
|
|
354
|
+
this.$refs.elem && !this.ranInitFn && (this.ranInitFn = !0, this.findAndRunScripts());
|
|
355
|
+
},
|
|
356
|
+
immediate: !0
|
|
357
|
+
}
|
|
358
|
+
},
|
|
359
|
+
computed: {
|
|
360
|
+
onUpdateHook0() {
|
|
361
|
+
return {
|
|
362
|
+
0: this.$refs.elem,
|
|
363
|
+
1: this.ranInitFn
|
|
364
|
+
};
|
|
365
|
+
}
|
|
366
|
+
},
|
|
367
|
+
methods: {
|
|
368
|
+
findAndRunScripts() {
|
|
369
|
+
if (!this.$refs.elem || !this.$refs.elem.getElementsByTagName)
|
|
370
|
+
return;
|
|
371
|
+
const e = this.$refs.elem.getElementsByTagName("script");
|
|
372
|
+
for (let t = 0; t < e.length; t++) {
|
|
373
|
+
const n = e[t];
|
|
374
|
+
if (n.src && !this.scriptsInserted.includes(n.src)) {
|
|
375
|
+
this.scriptsInserted.push(n.src);
|
|
376
|
+
const a = document.createElement("script");
|
|
377
|
+
a.async = !0, a.src = n.src, document.head.appendChild(a);
|
|
378
|
+
} else if (D(n) && !this.scriptsRun.includes(n.innerText))
|
|
379
|
+
try {
|
|
380
|
+
this.scriptsRun.push(n.innerText), new Function(n.innerText)();
|
|
381
|
+
} catch (a) {
|
|
382
|
+
console.warn("`Embed`: Error running script:", a);
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
});
|
|
388
|
+
var M = function() {
|
|
389
|
+
var t = this, n = t._self._c;
|
|
390
|
+
return t._self._setupProxy, n("div", { ref: "elem", staticClass: "builder-embed", domProps: { innerHTML: t._s(t.content) } });
|
|
391
|
+
}, q = [], B = /* @__PURE__ */ u(
|
|
392
|
+
N,
|
|
393
|
+
M,
|
|
394
|
+
q,
|
|
395
|
+
!1,
|
|
396
|
+
null,
|
|
397
|
+
null,
|
|
398
|
+
null,
|
|
399
|
+
null
|
|
400
|
+
);
|
|
401
|
+
const K = B.exports, O = {
|
|
238
402
|
name: "Fragment",
|
|
239
403
|
static: !0,
|
|
240
404
|
hidden: !0,
|
|
241
405
|
canHaveChildren: !0,
|
|
242
406
|
noWrap: !0
|
|
243
|
-
},
|
|
407
|
+
}, J = {
|
|
244
408
|
name: "Image",
|
|
245
409
|
static: !0,
|
|
246
410
|
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",
|
|
@@ -340,7 +504,51 @@ const V = {
|
|
|
340
504
|
advanced: !0,
|
|
341
505
|
defaultValue: 0.7041
|
|
342
506
|
}]
|
|
343
|
-
},
|
|
507
|
+
}, Y = {
|
|
508
|
+
// friendlyName?
|
|
509
|
+
name: "Raw:Img",
|
|
510
|
+
hideFromInsertMenu: !0,
|
|
511
|
+
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",
|
|
512
|
+
inputs: [{
|
|
513
|
+
name: "image",
|
|
514
|
+
bubble: !0,
|
|
515
|
+
type: "file",
|
|
516
|
+
allowedFileTypes: ["jpeg", "jpg", "png", "svg", "gif", "webp"],
|
|
517
|
+
required: !0
|
|
518
|
+
}],
|
|
519
|
+
noWrap: !0,
|
|
520
|
+
static: !0
|
|
521
|
+
}, G = p({
|
|
522
|
+
name: "builder-img-component",
|
|
523
|
+
props: [
|
|
524
|
+
"backgroundSize",
|
|
525
|
+
"backgroundPosition",
|
|
526
|
+
"imgSrc",
|
|
527
|
+
"altText",
|
|
528
|
+
"image",
|
|
529
|
+
"attributes"
|
|
530
|
+
],
|
|
531
|
+
data() {
|
|
532
|
+
return { isEditing: y, filterAttrs: x };
|
|
533
|
+
}
|
|
534
|
+
});
|
|
535
|
+
var X = function() {
|
|
536
|
+
var t = this, n = t._self._c;
|
|
537
|
+
return t._self._setupProxy, n("img", t._g(t._b({ key: t.isEditing() && t.imgSrc || "default-key", style: {
|
|
538
|
+
objectFit: t.backgroundSize || "cover",
|
|
539
|
+
objectPosition: t.backgroundPosition || "center"
|
|
540
|
+
}, 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)));
|
|
541
|
+
}, Q = [], Z = /* @__PURE__ */ u(
|
|
542
|
+
G,
|
|
543
|
+
X,
|
|
544
|
+
Q,
|
|
545
|
+
!1,
|
|
546
|
+
null,
|
|
547
|
+
null,
|
|
548
|
+
null,
|
|
549
|
+
null
|
|
550
|
+
);
|
|
551
|
+
const ee = Z.exports, te = {
|
|
344
552
|
name: "Core:Section",
|
|
345
553
|
static: !0,
|
|
346
554
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -379,7 +587,7 @@ const V = {
|
|
|
379
587
|
}
|
|
380
588
|
}
|
|
381
589
|
}]
|
|
382
|
-
},
|
|
590
|
+
}, ne = {
|
|
383
591
|
name: "Symbol",
|
|
384
592
|
noWrap: !0,
|
|
385
593
|
static: !0,
|
|
@@ -412,7 +620,7 @@ const V = {
|
|
|
412
620
|
hideFromUI: !0,
|
|
413
621
|
type: "boolean"
|
|
414
622
|
}]
|
|
415
|
-
},
|
|
623
|
+
}, ae = {
|
|
416
624
|
name: "Text",
|
|
417
625
|
static: !0,
|
|
418
626
|
isRSC: !0,
|
|
@@ -430,7 +638,7 @@ const V = {
|
|
|
430
638
|
height: "auto",
|
|
431
639
|
textAlign: "center"
|
|
432
640
|
}
|
|
433
|
-
},
|
|
641
|
+
}, oe = {
|
|
434
642
|
name: "Video",
|
|
435
643
|
canHaveChildren: !0,
|
|
436
644
|
defaultStyles: {
|
|
@@ -511,214 +719,6 @@ const V = {
|
|
|
511
719
|
defaultValue: !0,
|
|
512
720
|
advanced: !0
|
|
513
721
|
}]
|
|
514
|
-
}, L = {
|
|
515
|
-
name: "Embed",
|
|
516
|
-
static: !0,
|
|
517
|
-
inputs: [{
|
|
518
|
-
name: "url",
|
|
519
|
-
type: "url",
|
|
520
|
-
required: !0,
|
|
521
|
-
defaultValue: "",
|
|
522
|
-
helperText: "e.g. enter a youtube url, google map, etc",
|
|
523
|
-
onChange: (e) => {
|
|
524
|
-
const t = e.get("url");
|
|
525
|
-
if (t)
|
|
526
|
-
return e.set("content", "Loading..."), fetch(`https://iframe.ly/api/iframely?url=${t}&api_key=ae0e60e78201a3f2b0de4b`).then((a) => a.json()).then((a) => {
|
|
527
|
-
e.get("url") === t && (a.html ? e.set("content", a.html) : e.set("content", "Invalid url, please try another"));
|
|
528
|
-
}).catch((a) => {
|
|
529
|
-
e.set("content", "There was an error embedding this URL, please try again or another URL");
|
|
530
|
-
});
|
|
531
|
-
e.delete("content");
|
|
532
|
-
}
|
|
533
|
-
}, {
|
|
534
|
-
name: "content",
|
|
535
|
-
type: "html",
|
|
536
|
-
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
537
|
-
hideFromUI: !0
|
|
538
|
-
}]
|
|
539
|
-
}, z = ["text/javascript", "application/javascript", "application/ecmascript"], D = (e) => z.includes(e.type), N = p({
|
|
540
|
-
name: "builder-embed",
|
|
541
|
-
props: ["content"],
|
|
542
|
-
data() {
|
|
543
|
-
return { scriptsInserted: [], scriptsRun: [], ranInitFn: !1 };
|
|
544
|
-
},
|
|
545
|
-
watch: {
|
|
546
|
-
onUpdateHook0: {
|
|
547
|
-
handler() {
|
|
548
|
-
this.$refs.elem && !this.ranInitFn && (this.ranInitFn = !0, this.findAndRunScripts());
|
|
549
|
-
},
|
|
550
|
-
immediate: !0
|
|
551
|
-
}
|
|
552
|
-
},
|
|
553
|
-
computed: {
|
|
554
|
-
onUpdateHook0() {
|
|
555
|
-
return {
|
|
556
|
-
0: this.$refs.elem,
|
|
557
|
-
1: this.ranInitFn
|
|
558
|
-
};
|
|
559
|
-
}
|
|
560
|
-
},
|
|
561
|
-
methods: {
|
|
562
|
-
findAndRunScripts() {
|
|
563
|
-
if (!this.$refs.elem || !this.$refs.elem.getElementsByTagName)
|
|
564
|
-
return;
|
|
565
|
-
const e = this.$refs.elem.getElementsByTagName("script");
|
|
566
|
-
for (let t = 0; t < e.length; t++) {
|
|
567
|
-
const n = e[t];
|
|
568
|
-
if (n.src && !this.scriptsInserted.includes(n.src)) {
|
|
569
|
-
this.scriptsInserted.push(n.src);
|
|
570
|
-
const a = document.createElement("script");
|
|
571
|
-
a.async = !0, a.src = n.src, document.head.appendChild(a);
|
|
572
|
-
} else if (D(n) && !this.scriptsRun.includes(n.innerText))
|
|
573
|
-
try {
|
|
574
|
-
this.scriptsRun.push(n.innerText), new Function(n.innerText)();
|
|
575
|
-
} catch (a) {
|
|
576
|
-
console.warn("`Embed`: Error running script:", a);
|
|
577
|
-
}
|
|
578
|
-
}
|
|
579
|
-
}
|
|
580
|
-
}
|
|
581
|
-
});
|
|
582
|
-
var M = function() {
|
|
583
|
-
var t = this, n = t._self._c;
|
|
584
|
-
return t._self._setupProxy, n("div", { ref: "elem", staticClass: "builder-embed", domProps: { innerHTML: t._s(t.content) } });
|
|
585
|
-
}, q = [], B = /* @__PURE__ */ u(
|
|
586
|
-
N,
|
|
587
|
-
M,
|
|
588
|
-
q,
|
|
589
|
-
!1,
|
|
590
|
-
null,
|
|
591
|
-
null,
|
|
592
|
-
null,
|
|
593
|
-
null
|
|
594
|
-
);
|
|
595
|
-
const K = B.exports, O = p({
|
|
596
|
-
name: "builder-img-component",
|
|
597
|
-
props: [
|
|
598
|
-
"backgroundSize",
|
|
599
|
-
"backgroundPosition",
|
|
600
|
-
"imgSrc",
|
|
601
|
-
"altText",
|
|
602
|
-
"image",
|
|
603
|
-
"attributes"
|
|
604
|
-
],
|
|
605
|
-
data() {
|
|
606
|
-
return { isEditing: y, filterAttrs: x };
|
|
607
|
-
}
|
|
608
|
-
});
|
|
609
|
-
var J = function() {
|
|
610
|
-
var t = this, n = t._self._c;
|
|
611
|
-
return t._self._setupProxy, n("img", t._g(t._b({ key: t.isEditing() && t.imgSrc || "default-key", style: {
|
|
612
|
-
objectFit: t.backgroundSize || "cover",
|
|
613
|
-
objectPosition: t.backgroundPosition || "center"
|
|
614
|
-
}, 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)));
|
|
615
|
-
}, Y = [], G = /* @__PURE__ */ u(
|
|
616
|
-
O,
|
|
617
|
-
J,
|
|
618
|
-
Y,
|
|
619
|
-
!1,
|
|
620
|
-
null,
|
|
621
|
-
null,
|
|
622
|
-
null,
|
|
623
|
-
null
|
|
624
|
-
);
|
|
625
|
-
const X = G.exports, Q = {
|
|
626
|
-
// friendlyName?
|
|
627
|
-
name: "Raw:Img",
|
|
628
|
-
hideFromInsertMenu: !0,
|
|
629
|
-
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",
|
|
630
|
-
inputs: [{
|
|
631
|
-
name: "image",
|
|
632
|
-
bubble: !0,
|
|
633
|
-
type: "file",
|
|
634
|
-
allowedFileTypes: ["jpeg", "jpg", "png", "svg", "gif", "webp"],
|
|
635
|
-
required: !0
|
|
636
|
-
}],
|
|
637
|
-
noWrap: !0,
|
|
638
|
-
static: !0
|
|
639
|
-
}, Z = p({
|
|
640
|
-
name: "builder-custom-code",
|
|
641
|
-
props: ["replaceNodes", "code"],
|
|
642
|
-
data() {
|
|
643
|
-
return { scriptsInserted: [], scriptsRun: [] };
|
|
644
|
-
},
|
|
645
|
-
mounted() {
|
|
646
|
-
var t;
|
|
647
|
-
if (!((t = this.$refs.elementRef) != null && t.getElementsByTagName) || typeof window > "u")
|
|
648
|
-
return;
|
|
649
|
-
const e = this.$refs.elementRef.getElementsByTagName("script");
|
|
650
|
-
for (let n = 0; n < e.length; n++) {
|
|
651
|
-
const a = e[n];
|
|
652
|
-
if (a.src) {
|
|
653
|
-
if (this.scriptsInserted.includes(a.src))
|
|
654
|
-
continue;
|
|
655
|
-
this.scriptsInserted.push(a.src);
|
|
656
|
-
const o = document.createElement("script");
|
|
657
|
-
o.async = !0, o.src = a.src, document.head.appendChild(o);
|
|
658
|
-
} else if (!a.type || [
|
|
659
|
-
"text/javascript",
|
|
660
|
-
"application/javascript",
|
|
661
|
-
"application/ecmascript"
|
|
662
|
-
].includes(a.type)) {
|
|
663
|
-
if (this.scriptsRun.includes(a.innerText))
|
|
664
|
-
continue;
|
|
665
|
-
try {
|
|
666
|
-
this.scriptsRun.push(a.innerText), new Function(a.innerText)();
|
|
667
|
-
} catch (o) {
|
|
668
|
-
console.warn("`CustomCode`: Error running script:", o);
|
|
669
|
-
}
|
|
670
|
-
}
|
|
671
|
-
}
|
|
672
|
-
},
|
|
673
|
-
methods: {
|
|
674
|
-
_classStringToObject(e) {
|
|
675
|
-
const t = {};
|
|
676
|
-
if (typeof e != "string")
|
|
677
|
-
return t;
|
|
678
|
-
const n = e.trim().split(/\s+/);
|
|
679
|
-
for (const a of n)
|
|
680
|
-
t[a] = !0;
|
|
681
|
-
return t;
|
|
682
|
-
}
|
|
683
|
-
}
|
|
684
|
-
});
|
|
685
|
-
var ee = function() {
|
|
686
|
-
var t = this, n = t._self._c;
|
|
687
|
-
return t._self._setupProxy, n("div", { ref: "elementRef", class: t._classStringToObject(
|
|
688
|
-
"builder-custom-code" + (t.replaceNodes ? " replace-nodes" : "")
|
|
689
|
-
), domProps: { innerHTML: t._s(t.code) } });
|
|
690
|
-
}, te = [], ne = /* @__PURE__ */ u(
|
|
691
|
-
Z,
|
|
692
|
-
ee,
|
|
693
|
-
te,
|
|
694
|
-
!1,
|
|
695
|
-
null,
|
|
696
|
-
null,
|
|
697
|
-
null,
|
|
698
|
-
null
|
|
699
|
-
);
|
|
700
|
-
const ae = ne.exports, oe = {
|
|
701
|
-
name: "Custom Code",
|
|
702
|
-
static: !0,
|
|
703
|
-
requiredPermissions: ["editCode"],
|
|
704
|
-
inputs: [{
|
|
705
|
-
name: "code",
|
|
706
|
-
type: "html",
|
|
707
|
-
required: !0,
|
|
708
|
-
defaultValue: "<p>Hello there, I am custom HTML code!</p>",
|
|
709
|
-
code: !0
|
|
710
|
-
}, {
|
|
711
|
-
name: "replaceNodes",
|
|
712
|
-
type: "boolean",
|
|
713
|
-
helperText: "Preserve server rendered dom nodes",
|
|
714
|
-
advanced: !0
|
|
715
|
-
}, {
|
|
716
|
-
name: "scriptsClientOnly",
|
|
717
|
-
type: "boolean",
|
|
718
|
-
defaultValue: !1,
|
|
719
|
-
helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
|
|
720
|
-
advanced: !0
|
|
721
|
-
}]
|
|
722
722
|
}, b = () => [{
|
|
723
723
|
component: v,
|
|
724
724
|
...V
|
|
@@ -726,32 +726,32 @@ const ae = ne.exports, oe = {
|
|
|
726
726
|
component: _,
|
|
727
727
|
...A
|
|
728
728
|
}, {
|
|
729
|
-
component:
|
|
730
|
-
...
|
|
729
|
+
component: H,
|
|
730
|
+
...W
|
|
731
731
|
}, {
|
|
732
732
|
component: K,
|
|
733
733
|
...L
|
|
734
734
|
}, {
|
|
735
735
|
component: S,
|
|
736
|
-
...
|
|
736
|
+
...O
|
|
737
737
|
}, {
|
|
738
738
|
component: T,
|
|
739
|
-
|
|
739
|
+
...J
|
|
740
740
|
}, {
|
|
741
|
-
component:
|
|
742
|
-
...
|
|
741
|
+
component: ee,
|
|
742
|
+
...Y
|
|
743
743
|
}, {
|
|
744
744
|
component: I,
|
|
745
|
-
...
|
|
745
|
+
...te
|
|
746
746
|
}, {
|
|
747
747
|
component: C,
|
|
748
|
-
...
|
|
748
|
+
...ne
|
|
749
749
|
}, {
|
|
750
750
|
component: w,
|
|
751
|
-
...
|
|
751
|
+
...ae
|
|
752
752
|
}, {
|
|
753
753
|
component: k,
|
|
754
|
-
...
|
|
754
|
+
...oe
|
|
755
755
|
}], ie = ({
|
|
756
756
|
content: e,
|
|
757
757
|
data: t,
|
|
@@ -784,32 +784,32 @@ const ae = ne.exports, oe = {
|
|
|
784
784
|
...t
|
|
785
785
|
},
|
|
786
786
|
meta: e == null ? void 0 : e.meta
|
|
787
|
-
} : void 0, se = () => import("./index-
|
|
787
|
+
} : void 0, se = () => import("./index-43273102.js").then((e) => e.M).then((e) => e.default).catch((e) => {
|
|
788
788
|
throw console.error(
|
|
789
789
|
"Error while attempting to dynamically import component Blocks at ../blocks/blocks.vue",
|
|
790
790
|
e
|
|
791
791
|
), e;
|
|
792
|
-
}), le = () => import("./
|
|
792
|
+
}), le = () => import("./inlined-script-da97caa2.js").then((e) => e.default).catch((e) => {
|
|
793
793
|
throw console.error(
|
|
794
|
-
"Error while attempting to dynamically import component
|
|
794
|
+
"Error while attempting to dynamically import component InlinedScript at ../inlined-script.vue",
|
|
795
795
|
e
|
|
796
796
|
), e;
|
|
797
|
-
}), ce = () => import("./enable-editor-
|
|
797
|
+
}), ce = () => import("./enable-editor-8b4a5b45.js").then((e) => e.default).catch((e) => {
|
|
798
798
|
throw console.error(
|
|
799
799
|
"Error while attempting to dynamically import component EnableEditor at ./components/enable-editor.vue",
|
|
800
800
|
e
|
|
801
801
|
), e;
|
|
802
|
-
}), de = () => import("./
|
|
802
|
+
}), de = () => import("./styles-c2fd2724.js").then((e) => e.default).catch((e) => {
|
|
803
803
|
throw console.error(
|
|
804
|
-
"Error while attempting to dynamically import component
|
|
804
|
+
"Error while attempting to dynamically import component ContentStyles at ./components/styles.vue",
|
|
805
805
|
e
|
|
806
806
|
), e;
|
|
807
807
|
}), pe = p({
|
|
808
808
|
name: "content-component",
|
|
809
809
|
components: {
|
|
810
810
|
"enable-editor": ce,
|
|
811
|
-
"inlined-script":
|
|
812
|
-
"content-styles":
|
|
811
|
+
"inlined-script": le,
|
|
812
|
+
"content-styles": de,
|
|
813
813
|
blocks: se
|
|
814
814
|
},
|
|
815
815
|
props: [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import type { ApiVersion } from '../types/api-version.js';
|
|
1
2
|
import type { BuilderContent } from '../types/builder-content.js';
|
|
2
3
|
import type { ComponentInfo } from '../types/components.js';
|
|
3
4
|
import type { Dictionary, Nullable } from '../types/typescript.js';
|
|
4
|
-
import type { ApiVersion } from '../types/api-version.js';
|
|
5
5
|
export type RegisteredComponent = ComponentInfo & {
|
|
6
6
|
component: any;
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const n=require("./index-
|
|
1
|
+
"use strict";const n=require("./index-d8e34fec.cjs"),o=e=>e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase(),c=e=>Object.entries(e).map(([r,s])=>{if(typeof s=="string")return`${o(r)}: ${s};`}).filter(n.checkIsDefined),a=e=>c(e).join(`
|
|
2
2
|
`),i=({mediaQuery:e,className:t,styles:r})=>{const s=`.${t} {
|
|
3
3
|
${a(r)}
|
|
4
4
|
}`;return e?`${e} {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as o } from "./index-
|
|
1
|
+
import { c as o } from "./index-43273102.js";
|
|
2
2
|
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
3
|
if (typeof e == "string")
|
|
4
4
|
return `${c(r)}: ${e};`;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("vue"),r=require("./index-d8e34fec.cjs"),m=require("./evaluate-19fac854.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.7.2",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","classNameProp"],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;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(e.classNameProp),attrs:{"builder-content-id":(i=e.builderContextSignal.content)==null?void 0:i.id,"builder-model":e.model},on:{click:function(o){return e.onClick(o)},initeditingbldr:function(o){return e.elementRef_onIniteditingbldr(o)},initpreviewingbldr:function(o){return e.elementRef_onInitpreviewingbldr(o)}}},"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;
|