@builder.io/sdk-vue 0.8.0 → 0.9.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-9d4161fb.cjs → block-8eb8a717.cjs} +2 -2
- package/vue2/lib/{edge/block-c6f466c0.js → browser/block-f46a2e5f.js} +7 -7
- package/vue2/lib/{node/block-styles-b947dfc5.js → browser/block-styles-5d933df0.js} +5 -5
- package/vue2/lib/{node/block-styles-c4974a44.cjs → browser/block-styles-c36b606c.cjs} +1 -1
- package/vue2/lib/browser/{block-wrapper-0d4fe902.js → block-wrapper-9032b3aa.js} +5 -5
- package/vue2/lib/browser/{block-wrapper-3157e1bc.cjs → block-wrapper-e68eb3ce.cjs} +1 -1
- package/vue2/lib/browser/blocks-wrapper-13a20963.js +74 -0
- package/vue2/lib/browser/blocks-wrapper-233d7a58.cjs +1 -0
- package/vue2/lib/{node/component-ref-7f93a1f0.cjs → browser/component-ref-3eabf9d3.cjs} +1 -1
- package/vue2/lib/{edge/component-ref-b3b70fa9.js → browser/component-ref-aff72404.js} +6 -6
- 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-0575efdf.cjs → content-01c5295f.cjs} +1 -1
- package/vue2/lib/{edge/content-90700d7e.js → browser/content-5ff1bf50.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-97122c97.js → browser/css-0e1a5906.js} +1 -1
- package/vue2/lib/browser/{css-9cb1ef7e.cjs → css-8f0dfb3a.cjs} +1 -1
- package/vue2/lib/browser/enable-editor-79943def.cjs +1 -0
- package/vue2/lib/browser/{enable-editor-c377a256.js → enable-editor-ba199201.js} +25 -27
- package/vue2/lib/browser/{evaluate-2857c518.js → evaluate-c7aac0ee.js} +1 -1
- package/vue2/lib/browser/{evaluate-5a5f1e1a.cjs → evaluate-ec382d17.cjs} +1 -1
- package/vue2/lib/browser/functions/get-block-properties.d.ts +1 -1
- package/vue2/lib/browser/functions/transform-block-properties.d.ts +5 -2
- package/vue2/lib/browser/{get-block-actions-797d49a2.cjs → get-block-actions-34f93bab.cjs} +1 -1
- package/vue2/lib/{edge/get-block-actions-a4c6a740.js → browser/get-block-actions-80d8a41d.js} +2 -2
- package/vue2/lib/browser/{get-block-properties-eb393578.js → get-block-properties-b80c51fd.js} +10 -4
- package/vue2/lib/browser/get-block-properties-fcbe86d3.cjs +1 -0
- package/vue2/lib/browser/{get-processed-block-d2849656.js → get-processed-block-08346ffe.js} +2 -2
- package/vue2/lib/browser/{get-processed-block-e9eb76d5.cjs → get-processed-block-bb410f6f.cjs} +1 -1
- package/vue2/lib/{node/index-f82ca488.cjs → browser/index-4d603d94.cjs} +7 -7
- package/vue2/lib/{edge/index-22fb0dfe.js → browser/index-d4551a7a.js} +110 -103
- 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/{edge/inlined-script-f5a56ea4.js → browser/inlined-script-18dd0beb.js} +1 -1
- package/vue2/lib/browser/{inlined-script-166d99c7.cjs → inlined-script-ff6b73ba.cjs} +1 -1
- package/vue2/lib/browser/{inlined-styles-4c4a89e2.cjs → inlined-styles-3c12a021.cjs} +1 -1
- package/vue2/lib/{node/inlined-styles-4fa88e65.js → browser/inlined-styles-b687d7f1.js} +1 -1
- package/vue2/lib/{node/interactive-element-f08c324e.cjs → browser/interactive-element-52eda23c.cjs} +1 -1
- package/vue2/lib/{node/interactive-element-f46aae31.js → browser/interactive-element-91f198a4.js} +5 -5
- package/vue2/lib/{node/repeated-block-fe5a6df8.js → browser/repeated-block-6a55f793.js} +2 -2
- package/vue2/lib/{node/repeated-block-5d832619.cjs → browser/repeated-block-956e883f.cjs} +1 -1
- package/vue2/lib/browser/style.css +1 -1
- package/vue2/lib/browser/{styles-3945b4c7.js → styles-36c9fddb.js} +2 -2
- package/vue2/lib/{node/styles-85761eb4.cjs → browser/styles-8dc5678c.cjs} +2 -2
- package/vue2/lib/browser/types/enforced-partials.d.ts +7 -2
- package/vue2/lib/{browser/block-f5679152.js → edge/block-3d9fb7c2.js} +7 -7
- package/vue2/lib/{node/block-f9029bc3.cjs → edge/block-f15be379.cjs} +2 -2
- package/vue2/lib/edge/{block-styles-37805084.js → block-styles-8d163d7c.js} +5 -5
- package/vue2/lib/edge/{block-styles-adc484c6.cjs → block-styles-b8533af9.cjs} +1 -1
- package/vue2/lib/{node/block-wrapper-04b443cd.js → edge/block-wrapper-5c00ae5e.js} +5 -5
- package/vue2/lib/{node/block-wrapper-8ba974d4.cjs → edge/block-wrapper-aaa3ed0e.cjs} +1 -1
- package/vue2/lib/edge/blocks-wrapper-61df90f4.js +74 -0
- package/vue2/lib/edge/blocks-wrapper-69c07fcc.cjs +1 -0
- package/vue2/lib/{browser/component-ref-c51b0a20.cjs → edge/component-ref-0f3a0ba1.cjs} +1 -1
- package/vue2/lib/{node/component-ref-5f0d480f.js → edge/component-ref-193f3231.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/{browser/content-84bda2e9.js → edge/content-0e433688.js} +29 -23
- package/vue2/lib/{node/content-a860398a.cjs → edge/content-deb91a9b.cjs} +1 -1
- 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-bdeda4e4.js → edge/css-81e2e40c.js} +1 -1
- package/vue2/lib/{node/css-fb2674c8.cjs → edge/css-a72ded40.cjs} +1 -1
- package/vue2/lib/edge/enable-editor-27dc580b.cjs +1 -0
- package/vue2/lib/{node/enable-editor-df62e3bf.js → edge/enable-editor-cd9aa0aa.js} +25 -27
- package/vue2/lib/edge/{evaluate-4bd2a851.cjs → evaluate-128da0ac.cjs} +1 -1
- package/vue2/lib/edge/{evaluate-2a5e2028.js → evaluate-8d0bbfbd.js} +1 -1
- package/vue2/lib/edge/functions/get-block-properties.d.ts +1 -1
- package/vue2/lib/edge/functions/transform-block-properties.d.ts +5 -2
- package/vue2/lib/edge/{get-block-actions-84b02e58.cjs → get-block-actions-1b4a42bd.cjs} +1 -1
- package/vue2/lib/{node/get-block-actions-035815cd.js → edge/get-block-actions-b804a4ed.js} +2 -2
- package/vue2/lib/{node/get-block-properties-b3de78f4.js → edge/get-block-properties-248979b7.js} +10 -4
- package/vue2/lib/edge/get-block-properties-91cdf9bd.cjs +1 -0
- package/vue2/lib/edge/{get-processed-block-8f70184a.cjs → get-processed-block-08d699f0.cjs} +1 -1
- package/vue2/lib/{node/get-processed-block-e16b5f0b.js → edge/get-processed-block-9ad00b6e.js} +2 -2
- package/vue2/lib/{browser/index-1fdc0dd8.js → edge/index-23a8bb60.js} +110 -103
- package/vue2/lib/edge/{index-cf208007.cjs → index-4db92fa7.cjs} +7 -7
- 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-a6f84120.js → edge/inlined-script-3796a498.js} +1 -1
- package/vue2/lib/edge/{inlined-script-f460fc92.cjs → inlined-script-e880446d.cjs} +1 -1
- package/vue2/lib/edge/{inlined-styles-ea805c3d.js → inlined-styles-ae4fbc9f.js} +1 -1
- package/vue2/lib/edge/{inlined-styles-c9c77496.cjs → inlined-styles-ae989bfa.cjs} +1 -1
- package/vue2/lib/{browser/interactive-element-f3bc9b6c.js → edge/interactive-element-4613d798.js} +5 -5
- package/vue2/lib/edge/{interactive-element-d909635d.cjs → interactive-element-e0de8a75.cjs} +1 -1
- package/vue2/lib/{browser/repeated-block-8c6f0ef0.cjs → edge/repeated-block-061a93e5.cjs} +1 -1
- package/vue2/lib/{browser/repeated-block-59ab7fe5.js → edge/repeated-block-277f2b40.js} +2 -2
- package/vue2/lib/edge/style.css +1 -1
- package/vue2/lib/{browser/styles-0fbadb80.cjs → edge/styles-290ae837.cjs} +2 -2
- package/vue2/lib/edge/{styles-8840ca47.js → styles-cca4b08e.js} +2 -2
- package/vue2/lib/edge/types/enforced-partials.d.ts +7 -2
- package/vue2/lib/node/{block-6dc57ba5.js → block-88d3d176.js} +7 -7
- package/vue2/lib/{edge/block-03548c5c.cjs → node/block-b586205d.cjs} +2 -2
- package/vue2/lib/{browser/block-styles-b76b4562.cjs → node/block-styles-471fd00b.cjs} +1 -1
- package/vue2/lib/{browser/block-styles-6ca785bb.js → node/block-styles-aba16bf4.js} +5 -5
- package/vue2/lib/{edge/block-wrapper-ff8027da.cjs → node/block-wrapper-c76e2259.cjs} +1 -1
- package/vue2/lib/{edge/block-wrapper-1d75af67.js → node/block-wrapper-d1dab513.js} +5 -5
- package/vue2/lib/node/blocks-wrapper-6dd528c4.js +74 -0
- package/vue2/lib/node/blocks-wrapper-9abf97bd.cjs +1 -0
- package/vue2/lib/{edge/component-ref-fc9c9d6b.cjs → node/component-ref-08e79b50.cjs} +1 -1
- package/vue2/lib/{browser/component-ref-d59047de.js → node/component-ref-3ee361bc.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-b604b895.js → content-3d542f91.js} +29 -23
- package/vue2/lib/{edge/content-e5850b95.cjs → node/content-d8091f69.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-5dcb14df.cjs → node/css-f88973d9.cjs} +1 -1
- package/vue2/lib/{edge/css-99493b5d.js → node/css-fc678131.js} +1 -1
- package/vue2/lib/{edge/enable-editor-81a0ad6d.js → node/enable-editor-7a3fcc5f.js} +25 -27
- package/vue2/lib/node/enable-editor-85e730f9.cjs +1 -0
- package/vue2/lib/node/{evaluate-44daeb3b.cjs → evaluate-10e29303.cjs} +1 -1
- package/vue2/lib/node/{evaluate-b86af327.js → evaluate-e38e24b8.js} +24 -23
- package/vue2/lib/node/functions/get-block-properties.d.ts +1 -1
- package/vue2/lib/node/functions/transform-block-properties.d.ts +5 -2
- package/vue2/lib/{browser/get-block-actions-6774e2de.js → node/get-block-actions-8c081856.js} +2 -2
- package/vue2/lib/node/{get-block-actions-0c98c4e4.cjs → get-block-actions-ac6479e1.cjs} +1 -1
- package/vue2/lib/{edge/get-block-properties-450803e5.js → node/get-block-properties-2a5dbda8.js} +10 -4
- package/vue2/lib/node/get-block-properties-81e3699e.cjs +1 -0
- package/vue2/lib/{edge/get-processed-block-1d7ecd6a.js → node/get-processed-block-ebacd599.js} +2 -2
- package/vue2/lib/node/{get-processed-block-34d0880b.cjs → get-processed-block-ebf5f46b.cjs} +1 -1
- package/vue2/lib/{browser/index-e56cba6d.cjs → node/index-d62c9232.cjs} +7 -7
- package/vue2/lib/node/{index-04eac5bd.js → index-ef12824d.js} +110 -103
- 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/{browser/inlined-script-0fd7eea7.js → node/inlined-script-1cd578e5.js} +1 -1
- package/vue2/lib/node/{inlined-script-3d1617fb.cjs → inlined-script-88b1aa3e.cjs} +1 -1
- package/vue2/lib/{browser/inlined-styles-73447147.js → node/inlined-styles-1d3927dc.js} +1 -1
- package/vue2/lib/node/{inlined-styles-e70e3d2e.cjs → inlined-styles-91685244.cjs} +1 -1
- package/vue2/lib/{browser/interactive-element-772e6a3d.cjs → node/interactive-element-95a3909c.cjs} +1 -1
- package/vue2/lib/{edge/interactive-element-340237cb.js → node/interactive-element-97fabd2d.js} +5 -5
- package/vue2/lib/{edge/repeated-block-b32d9254.js → node/repeated-block-1bf29b19.js} +2 -2
- package/vue2/lib/{edge/repeated-block-d2b864a8.cjs → node/repeated-block-ef8d5bc1.cjs} +1 -1
- package/vue2/lib/node/style.css +1 -1
- package/vue2/lib/node/{styles-5a4adee9.js → styles-b6c2eccd.js} +2 -2
- package/vue2/lib/{edge/styles-8f4d5e0d.cjs → node/styles-c3cd7c3e.cjs} +2 -2
- package/vue2/lib/node/types/enforced-partials.d.ts +7 -2
- package/vue3/lib/{edge/block-wrapper.6ce0ef67.js → browser/block-wrapper.15e14a7d.js} +2 -2
- package/vue3/lib/{edge/block-wrapper.6a65a5d4.cjs → browser/block-wrapper.a7f5948e.cjs} +1 -1
- package/vue3/lib/browser/blocks/image/image.vue.d.ts +3 -3
- package/vue3/lib/{edge/component-ref.8741a80d.cjs → browser/component-ref.15d8ca5f.cjs} +1 -1
- package/vue3/lib/{edge/component-ref.6603a2a5.js → browser/component-ref.b4fe8508.js} +2 -2
- 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/transform-block-properties.d.ts +5 -2
- package/vue3/lib/browser/get-block-actions.1284f7f4.cjs +1 -0
- package/vue3/lib/{edge/get-block-actions.a147904d.js → browser/get-block-actions.25085dc6.js} +17 -11
- package/vue3/lib/browser/index-helpers/blocks-exports.d.ts +18 -6
- package/vue3/lib/browser/{index.dfff88fe.js → index.c84b511e.js} +675 -634
- package/vue3/lib/browser/index.cjs +1 -1
- package/vue3/lib/browser/{index.8871e74f.cjs → index.e038c54d.cjs} +19 -19
- package/vue3/lib/browser/index.js +1 -1
- package/vue3/lib/{edge/repeated-block.3cdac290.js → browser/repeated-block.c501aed0.js} +2 -2
- package/vue3/lib/browser/{repeated-block.fecd4553.cjs → repeated-block.eb1f9edd.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.352385b7.js → edge/block-wrapper.695c0554.js} +2 -2
- package/vue3/lib/{browser/block-wrapper.5e6d25d7.cjs → edge/block-wrapper.9cca9b7b.cjs} +1 -1
- package/vue3/lib/edge/blocks/image/image.vue.d.ts +3 -3
- package/vue3/lib/{browser/component-ref.5c2938c9.cjs → edge/component-ref.50f222f3.cjs} +1 -1
- package/vue3/lib/{browser/component-ref.bf30bc42.js → edge/component-ref.5be0ad03.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/transform-block-properties.d.ts +5 -2
- package/vue3/lib/edge/get-block-actions.1d0e09b6.cjs +1 -0
- package/vue3/lib/{browser/get-block-actions.6a86c1e3.js → edge/get-block-actions.f2e5b517.js} +17 -11
- package/vue3/lib/edge/index-helpers/blocks-exports.d.ts +18 -6
- package/vue3/lib/edge/{index.7bae31e6.js → index.33299292.js} +846 -805
- package/vue3/lib/edge/{index.01b1f45a.cjs → index.99c2904d.cjs} +26 -26
- package/vue3/lib/edge/index.cjs +1 -1
- package/vue3/lib/edge/index.js +1 -1
- package/vue3/lib/{browser/repeated-block.16b97544.js → edge/repeated-block.14eebee4.js} +2 -2
- package/vue3/lib/edge/{repeated-block.7f5a9758.cjs → repeated-block.53e299ee.cjs} +1 -1
- 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.d4a48d58.cjs → block-wrapper.0a0c40cf.cjs} +1 -1
- package/vue3/lib/node/{block-wrapper.6198973e.js → block-wrapper.728d47ca.js} +2 -2
- package/vue3/lib/node/blocks/image/image.vue.d.ts +3 -3
- package/vue3/lib/node/{component-ref.d6bc01e4.cjs → component-ref.d5125dbe.cjs} +1 -1
- package/vue3/lib/node/{component-ref.a11780f4.js → component-ref.f9faaca2.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/transform-block-properties.d.ts +5 -2
- package/vue3/lib/node/get-block-actions.1079cc08.cjs +1 -0
- package/vue3/lib/node/{get-block-actions.a19931a2.js → get-block-actions.1b3dcb45.js} +17 -11
- package/vue3/lib/node/index-helpers/blocks-exports.d.ts +18 -6
- package/vue3/lib/node/{index.67294824.js → index.558533a1.js} +857 -810
- package/vue3/lib/node/index.6720f6e5.cjs +201 -0
- package/vue3/lib/node/index.cjs +1 -1
- package/vue3/lib/node/index.js +1 -1
- package/vue3/lib/node/{repeated-block.6106c352.js → repeated-block.38b9803d.js} +2 -2
- package/vue3/lib/node/{repeated-block.ab684d37.cjs → repeated-block.9d836783.cjs} +1 -1
- 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-02404286.cjs +0 -1
- package/vue2/lib/browser/blocks-wrapper-dc71efe8.js +0 -73
- package/vue2/lib/browser/enable-editor-c49316d4.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-b25a78e1.cjs +0 -1
- package/vue2/lib/edge/blocks-wrapper-e329b941.js +0 -73
- package/vue2/lib/edge/blocks-wrapper-ed7f6801.cjs +0 -1
- package/vue2/lib/edge/enable-editor-31a92cf5.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-a07f7705.cjs +0 -1
- package/vue2/lib/node/blocks-wrapper-2ebcec73.js +0 -73
- package/vue2/lib/node/blocks-wrapper-e32910ce.cjs +0 -1
- package/vue2/lib/node/enable-editor-cdf1803d.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-d46ce865.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.f6ff7325.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.a9e5c4f5.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.ecd370ea.cjs +0 -1
- package/vue3/lib/node/index.4291aa83.cjs +0 -201
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
2
|
import { defineComponent as u } from "vue";
|
|
3
|
-
function
|
|
3
|
+
function P(e = {}, t, n) {
|
|
4
4
|
const o = {};
|
|
5
5
|
for (const r in e) {
|
|
6
6
|
if (!e[r] || n && !r.startsWith(t))
|
|
@@ -14,7 +14,7 @@ const dt = u({
|
|
|
14
14
|
name: "builder-button",
|
|
15
15
|
props: ["attributes", "text", "link", "openLinkInNewTab"],
|
|
16
16
|
data() {
|
|
17
|
-
return { filterAttrs:
|
|
17
|
+
return { filterAttrs: P };
|
|
18
18
|
},
|
|
19
19
|
methods: {
|
|
20
20
|
_classStringToObject(e) {
|
|
@@ -45,8 +45,8 @@ function p(e, t, n, o, r, s, i, f) {
|
|
|
45
45
|
if (a.functional) {
|
|
46
46
|
a._injectStyles = c;
|
|
47
47
|
var v = a.render;
|
|
48
|
-
a.render = function(k,
|
|
49
|
-
return c.call(
|
|
48
|
+
a.render = function(k, _) {
|
|
49
|
+
return c.call(_), v(k, _);
|
|
50
50
|
};
|
|
51
51
|
} else {
|
|
52
52
|
var S = a.beforeCreate;
|
|
@@ -70,7 +70,7 @@ var ut = function() {
|
|
|
70
70
|
null,
|
|
71
71
|
null
|
|
72
72
|
);
|
|
73
|
-
const dn = mt.exports,
|
|
73
|
+
const dn = mt.exports, E = (e) => JSON.parse(JSON.stringify(e)), M = {
|
|
74
74
|
small: {
|
|
75
75
|
min: 320,
|
|
76
76
|
default: 321,
|
|
@@ -90,7 +90,7 @@ const dn = mt.exports, A = (e) => JSON.parse(JSON.stringify(e)), M = {
|
|
|
90
90
|
small: e,
|
|
91
91
|
medium: t
|
|
92
92
|
}) => {
|
|
93
|
-
const n =
|
|
93
|
+
const n = E(M);
|
|
94
94
|
if (!e || !t)
|
|
95
95
|
return n;
|
|
96
96
|
const o = Math.floor(e / 2);
|
|
@@ -117,14 +117,14 @@ const dn = mt.exports, A = (e) => JSON.parse(JSON.stringify(e)), M = {
|
|
|
117
117
|
"Error while attempting to dynamically import component Blocks at ../../components/blocks/blocks.vue",
|
|
118
118
|
e
|
|
119
119
|
), e;
|
|
120
|
-
}),
|
|
120
|
+
}), bt = () => import("./inlined-styles-b687d7f1.js").then((e) => e.default).catch((e) => {
|
|
121
121
|
throw console.error(
|
|
122
122
|
"Error while attempting to dynamically import component InlinedStyles at ../../components/inlined-styles.vue",
|
|
123
123
|
e
|
|
124
124
|
), e;
|
|
125
|
-
}),
|
|
125
|
+
}), _t = u({
|
|
126
126
|
name: "builder-columns",
|
|
127
|
-
components: { "inlined-styles":
|
|
127
|
+
components: { "inlined-styles": bt, blocks: ht },
|
|
128
128
|
props: [
|
|
129
129
|
"js",
|
|
130
130
|
"space",
|
|
@@ -253,7 +253,7 @@ var gt = function() {
|
|
|
253
253
|
}, context: t.builderContext, registeredComponents: t.builderComponents, blocks: o.blocks } })], 1);
|
|
254
254
|
})], 2);
|
|
255
255
|
}, yt = [], vt = /* @__PURE__ */ p(
|
|
256
|
-
|
|
256
|
+
_t,
|
|
257
257
|
gt,
|
|
258
258
|
yt,
|
|
259
259
|
!1,
|
|
@@ -280,7 +280,7 @@ var kt = function() {
|
|
|
280
280
|
null
|
|
281
281
|
);
|
|
282
282
|
const mn = xt.exports;
|
|
283
|
-
function
|
|
283
|
+
function j(e) {
|
|
284
284
|
return e.replace(/http(s)?:/, "");
|
|
285
285
|
}
|
|
286
286
|
function wt(e = "", t, n) {
|
|
@@ -291,11 +291,11 @@ function It(e, t) {
|
|
|
291
291
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
292
292
|
return e;
|
|
293
293
|
if (t === "master")
|
|
294
|
-
return
|
|
294
|
+
return j(e);
|
|
295
295
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
296
296
|
if (n) {
|
|
297
297
|
const o = e.split(n[0]), r = n[3], s = t.match("x") ? t : `${t}x`;
|
|
298
|
-
return
|
|
298
|
+
return j(`${o[0]}_${s}${r}`);
|
|
299
299
|
}
|
|
300
300
|
return null;
|
|
301
301
|
}
|
|
@@ -380,7 +380,7 @@ var Tt = function() {
|
|
|
380
380
|
}, attrs: { loading: "lazy", alt: t.altText, role: t.altText ? "presentation" : void 0, src: t.image, srcset: t.srcSetToUse, sizes: t.sizes } })], 2), t.aspectRatio && !((r = (o = t.builderBlock) == null ? void 0 : o.children) != null && r.length && t.fitContent) ? [n("div", { staticClass: "builder-image-sizer div-1pl23ac79ld", style: {
|
|
381
381
|
paddingTop: t.aspectRatio * 100 + "%"
|
|
382
382
|
} })] : t._e(), (i = (s = t.builderBlock) == null ? void 0 : s.children) != null && i.length && t.fitContent ? [t._t("default")] : t._e(), !t.fitContent && t.$slots.default ? [n("div", { staticClass: "div-1pl23ac79ld-2" }, [t._t("default")], 2)] : t._e()], 2);
|
|
383
|
-
}, Rt = [],
|
|
383
|
+
}, Rt = [], Pt = /* @__PURE__ */ p(
|
|
384
384
|
$t,
|
|
385
385
|
Tt,
|
|
386
386
|
Rt,
|
|
@@ -390,14 +390,14 @@ var Tt = function() {
|
|
|
390
390
|
null,
|
|
391
391
|
null
|
|
392
392
|
);
|
|
393
|
-
const fn =
|
|
393
|
+
const fn = Pt.exports, Et = u({
|
|
394
394
|
name: "builder-section-component",
|
|
395
395
|
props: ["attributes", "maxWidth"],
|
|
396
396
|
data() {
|
|
397
|
-
return { filterAttrs:
|
|
397
|
+
return { filterAttrs: P };
|
|
398
398
|
}
|
|
399
399
|
});
|
|
400
|
-
var
|
|
400
|
+
var At = function() {
|
|
401
401
|
var t = this, n = t._self._c;
|
|
402
402
|
return t._self._setupProxy, n("section", t._g(t._b({ style: {
|
|
403
403
|
width: "100%",
|
|
@@ -411,17 +411,17 @@ var Vt = function() {
|
|
|
411
411
|
marginLeft: "auto",
|
|
412
412
|
marginRight: "auto"
|
|
413
413
|
} }, "section", t.filterAttrs(t.attributes, "v-on:", !1), !1), t.filterAttrs(t.attributes, "v-on:", !0)), [t._t("default")], 2);
|
|
414
|
-
},
|
|
414
|
+
}, Vt = [], Ot = /* @__PURE__ */ p(
|
|
415
|
+
Et,
|
|
415
416
|
At,
|
|
416
417
|
Vt,
|
|
417
|
-
Pt,
|
|
418
418
|
!1,
|
|
419
419
|
null,
|
|
420
420
|
null,
|
|
421
421
|
null,
|
|
422
422
|
null
|
|
423
423
|
);
|
|
424
|
-
const hn = Ot.exports, x = "[Builder.io]: ",
|
|
424
|
+
const hn = Ot.exports, x = "[Builder.io]: ", b = {
|
|
425
425
|
log: (...e) => console.log(x, ...e),
|
|
426
426
|
error: (...e) => console.error(x, ...e),
|
|
427
427
|
warn: (...e) => console.warn(x, ...e),
|
|
@@ -442,16 +442,16 @@ const hn = Ot.exports, x = "[Builder.io]: ", _ = {
|
|
|
442
442
|
}
|
|
443
443
|
}
|
|
444
444
|
}).catch((n) => {
|
|
445
|
-
|
|
445
|
+
b.error("Could not fetch symbol content: ", n);
|
|
446
446
|
});
|
|
447
|
-
},
|
|
447
|
+
}, Wt = () => Promise.resolve().then(() => Ee).then((e) => e.default).catch((e) => {
|
|
448
448
|
throw console.error(
|
|
449
449
|
"Error while attempting to dynamically import component ContentVariants at ../../components/content-variants/content-variants.vue",
|
|
450
450
|
e
|
|
451
451
|
), e;
|
|
452
|
-
}),
|
|
452
|
+
}), Nt = u({
|
|
453
453
|
name: "builder-symbol",
|
|
454
|
-
components: { "content-variants":
|
|
454
|
+
components: { "content-variants": Wt },
|
|
455
455
|
props: [
|
|
456
456
|
"js",
|
|
457
457
|
"attributes",
|
|
@@ -462,7 +462,7 @@ const hn = Ot.exports, x = "[Builder.io]: ", _ = {
|
|
|
462
462
|
],
|
|
463
463
|
data() {
|
|
464
464
|
var e;
|
|
465
|
-
return { contentToUse: (e = this.symbol) == null ? void 0 : e.content, filterAttrs:
|
|
465
|
+
return { contentToUse: (e = this.symbol) == null ? void 0 : e.content, filterAttrs: P };
|
|
466
466
|
},
|
|
467
467
|
mounted() {
|
|
468
468
|
this.setContent();
|
|
@@ -511,7 +511,7 @@ const hn = Ot.exports, x = "[Builder.io]: ", _ = {
|
|
|
511
511
|
}
|
|
512
512
|
}
|
|
513
513
|
});
|
|
514
|
-
var
|
|
514
|
+
var jt = function() {
|
|
515
515
|
var o, r, s, i;
|
|
516
516
|
var t = this, n = t._self._c;
|
|
517
517
|
return t._self._setupProxy, n("div", t._g(t._b({ class: t._classStringToObject(t.className) }, "div", { ...t.filterAttrs(t.attributes, "v-on:", !1) }, !1), t.filterAttrs(t.attributes, "v-on:", !0)), [n("content-variants", { attrs: { __isNestedRender: !0, apiVersion: t.builderContext.apiVersion, apiKey: t.builderContext.apiKey, context: t.builderContext.context, customComponents: Object.values(t.builderComponents), data: {
|
|
@@ -519,29 +519,29 @@ var Ut = function() {
|
|
|
519
519
|
...t.builderContext.localState,
|
|
520
520
|
...(s = (r = t.contentToUse) == null ? void 0 : r.data) == null ? void 0 : s.state
|
|
521
521
|
}, model: (i = t.symbol) == null ? void 0 : i.model, content: t.contentToUse } })], 1);
|
|
522
|
-
},
|
|
522
|
+
}, Ut = [], Dt = /* @__PURE__ */ p(
|
|
523
|
+
Nt,
|
|
523
524
|
jt,
|
|
524
525
|
Ut,
|
|
525
|
-
Dt,
|
|
526
526
|
!1,
|
|
527
527
|
null,
|
|
528
528
|
null,
|
|
529
529
|
null,
|
|
530
530
|
null
|
|
531
531
|
);
|
|
532
|
-
const
|
|
532
|
+
const bn = Dt.exports, Ft = u({
|
|
533
533
|
name: "builder-text",
|
|
534
534
|
props: ["text"]
|
|
535
535
|
});
|
|
536
|
-
var
|
|
536
|
+
var Lt = function() {
|
|
537
537
|
var o;
|
|
538
538
|
var t = this, n = t._self._c;
|
|
539
539
|
return t._self._setupProxy, n("div", { staticClass: "builder-text", style: {
|
|
540
540
|
outline: "none"
|
|
541
541
|
}, domProps: { innerHTML: t._s(((o = t.text) == null ? void 0 : o.toString()) || "") } });
|
|
542
542
|
}, Mt = [], Kt = /* @__PURE__ */ p(
|
|
543
|
+
Ft,
|
|
543
544
|
Lt,
|
|
544
|
-
Wt,
|
|
545
545
|
Mt,
|
|
546
546
|
!1,
|
|
547
547
|
null,
|
|
@@ -549,7 +549,7 @@ var Wt = function() {
|
|
|
549
549
|
null,
|
|
550
550
|
null
|
|
551
551
|
);
|
|
552
|
-
const
|
|
552
|
+
const _n = Kt.exports, zt = u({
|
|
553
553
|
name: "builder-video",
|
|
554
554
|
props: [
|
|
555
555
|
"autoPlay",
|
|
@@ -654,23 +654,25 @@ const gn = Qt.exports, Jt = Symbol(), Xt = {
|
|
|
654
654
|
apiKey: null,
|
|
655
655
|
apiVersion: void 0,
|
|
656
656
|
componentInfos: {},
|
|
657
|
-
inheritedStyles: {}
|
|
657
|
+
inheritedStyles: {},
|
|
658
|
+
BlocksWrapper: "div",
|
|
659
|
+
BlocksWrapperProps: {}
|
|
658
660
|
},
|
|
659
661
|
key: Jt
|
|
660
662
|
}, Yt = Symbol(), qt = {
|
|
661
663
|
Components: { registeredComponents: {} },
|
|
662
664
|
key: Yt
|
|
663
|
-
}, Zt = () => import("./block-
|
|
665
|
+
}, Zt = () => import("./block-f46a2e5f.js").then((e) => e.default).catch((e) => {
|
|
664
666
|
throw console.error(
|
|
665
667
|
"Error while attempting to dynamically import component Block at ../block/block.vue",
|
|
666
668
|
e
|
|
667
669
|
), e;
|
|
668
|
-
}), te = () => import("./block-styles-
|
|
670
|
+
}), te = () => import("./block-styles-5d933df0.js").then((e) => e.default).catch((e) => {
|
|
669
671
|
throw console.error(
|
|
670
672
|
"Error while attempting to dynamically import component BlockStyles at ../block/components/block-styles.vue",
|
|
671
673
|
e
|
|
672
674
|
), e;
|
|
673
|
-
}), ee = () => import("./blocks-wrapper-
|
|
675
|
+
}), ee = () => import("./blocks-wrapper-13a20963.js").then((e) => e.default).catch((e) => {
|
|
674
676
|
throw console.error(
|
|
675
677
|
"Error while attempting to dynamically import component BlocksWrapper at ./blocks-wrapper.vue",
|
|
676
678
|
e
|
|
@@ -696,11 +698,12 @@ const gn = Qt.exports, Jt = Symbol(), Xt = {
|
|
|
696
698
|
}
|
|
697
699
|
});
|
|
698
700
|
var oe = function() {
|
|
701
|
+
var o, r;
|
|
699
702
|
var t = this, n = t._self._c;
|
|
700
|
-
return t._self._setupProxy, n("blocks-wrapper", { attrs: { blocks: t.blocks, parent: t.parent, path: t.path, styleProp: t.styleProp } }, [t.blocks ? t._l(t.blocks, function(
|
|
701
|
-
return n("block", { key: "render-block-" +
|
|
702
|
-
}) : t._e(), t.blocks ? t._l(t.blocks, function(
|
|
703
|
-
return n("block-styles", { key: "block-style-" +
|
|
703
|
+
return t._self._setupProxy, n("blocks-wrapper", { attrs: { blocks: t.blocks, parent: t.parent, path: t.path, styleProp: t.styleProp, BlocksWrapper: (o = t.context) == null ? void 0 : o.BlocksWrapper, BlocksWrapperProps: (r = t.context) == null ? void 0 : r.BlocksWrapperProps } }, [t.blocks ? t._l(t.blocks, function(s, i) {
|
|
704
|
+
return n("block", { key: "render-block-" + s.id, attrs: { block: s, context: t.context || t.builderContext, registeredComponents: t.registeredComponents || t.componentsContext.registeredComponents } });
|
|
705
|
+
}) : t._e(), t.blocks ? t._l(t.blocks, function(s, i) {
|
|
706
|
+
return n("block-styles", { key: "block-style-" + s.id, attrs: { block: s, context: t.context || t.builderContext } });
|
|
704
707
|
}) : t._e()], 2);
|
|
705
708
|
}, re = [], se = /* @__PURE__ */ p(
|
|
706
709
|
ne,
|
|
@@ -732,7 +735,7 @@ const ae = (e) => {
|
|
|
732
735
|
try {
|
|
733
736
|
return t ? (n = document.cookie.split("; ").find((o) => o.startsWith(`${e}=`))) == null ? void 0 : n.split("=")[1] : void 0;
|
|
734
737
|
} catch (o) {
|
|
735
|
-
|
|
738
|
+
b.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
|
|
736
739
|
return;
|
|
737
740
|
}
|
|
738
741
|
}, G = async (e) => z(e), ce = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(g).join("; "), le = [["secure", ""], ["SameSite", "None"]], de = ({
|
|
@@ -758,23 +761,23 @@ const ae = (e) => {
|
|
|
758
761
|
});
|
|
759
762
|
document.cookie = r;
|
|
760
763
|
} catch (r) {
|
|
761
|
-
|
|
764
|
+
b.warn("[COOKIE] SET error: ", (r == null ? void 0 : r.message) || r);
|
|
762
765
|
}
|
|
763
|
-
}, ue = "builder.tests",
|
|
766
|
+
}, ue = "builder.tests", A = (e) => `${ue}.${e}`, pe = ({
|
|
764
767
|
contentId: e
|
|
765
768
|
}) => G({
|
|
766
|
-
name:
|
|
769
|
+
name: A(e),
|
|
767
770
|
canTrack: !0
|
|
768
771
|
}), me = ({
|
|
769
772
|
contentId: e
|
|
770
773
|
}) => z({
|
|
771
|
-
name:
|
|
774
|
+
name: A(e),
|
|
772
775
|
canTrack: !0
|
|
773
776
|
}), fe = ({
|
|
774
777
|
contentId: e,
|
|
775
778
|
value: t
|
|
776
779
|
}) => H({
|
|
777
|
-
name:
|
|
780
|
+
name: A(e),
|
|
778
781
|
value: t,
|
|
779
782
|
canTrack: !0
|
|
780
783
|
}), Q = (e) => g(e.id) && g(e.variations) && Object.keys(e.variations).length > 0, he = ({
|
|
@@ -796,7 +799,7 @@ const ae = (e) => {
|
|
|
796
799
|
contentId: e.id,
|
|
797
800
|
value: t
|
|
798
801
|
}).catch((n) => {
|
|
799
|
-
|
|
802
|
+
b.error("could not store A/B test variation: ", n);
|
|
800
803
|
}), t;
|
|
801
804
|
}, X = ({
|
|
802
805
|
item: e,
|
|
@@ -812,7 +815,7 @@ const ae = (e) => {
|
|
|
812
815
|
testVariationId: n.id,
|
|
813
816
|
testVariationName: n.name || (n.id === e.id ? "Default" : "")
|
|
814
817
|
};
|
|
815
|
-
},
|
|
818
|
+
}, be = ({
|
|
816
819
|
item: e,
|
|
817
820
|
canTrack: t
|
|
818
821
|
}) => {
|
|
@@ -835,7 +838,7 @@ const ae = (e) => {
|
|
|
835
838
|
...e,
|
|
836
839
|
...o
|
|
837
840
|
};
|
|
838
|
-
},
|
|
841
|
+
}, _e = async ({
|
|
839
842
|
item: e,
|
|
840
843
|
canTrack: t
|
|
841
844
|
}) => {
|
|
@@ -962,17 +965,17 @@ const ae = (e) => {
|
|
|
962
965
|
variationId: t
|
|
963
966
|
}) => `window.${q}(
|
|
964
967
|
"${t}", "${e}", ${Z}
|
|
965
|
-
)`, xe = () => import("./content-
|
|
968
|
+
)`, xe = () => import("./content-5ff1bf50.js").then((e) => e.default).catch((e) => {
|
|
966
969
|
throw console.error(
|
|
967
970
|
"Error while attempting to dynamically import component ContentComponent at ../content/content.vue",
|
|
968
971
|
e
|
|
969
972
|
), e;
|
|
970
|
-
}), we = () => import("./inlined-script-
|
|
973
|
+
}), we = () => import("./inlined-script-18dd0beb.js").then((e) => e.default).catch((e) => {
|
|
971
974
|
throw console.error(
|
|
972
975
|
"Error while attempting to dynamically import component InlinedScript at ../inlined-script.vue",
|
|
973
976
|
e
|
|
974
977
|
), e;
|
|
975
|
-
}), Ie = () => import("./inlined-styles-
|
|
978
|
+
}), Ie = () => import("./inlined-styles-b687d7f1.js").then((e) => e.default).catch((e) => {
|
|
976
979
|
throw console.error(
|
|
977
980
|
"Error while attempting to dynamically import component InlinedStyles at ../inlined-styles.vue",
|
|
978
981
|
e
|
|
@@ -996,7 +999,11 @@ const ae = (e) => {
|
|
|
996
999
|
"customComponents",
|
|
997
1000
|
"locale",
|
|
998
1001
|
"includeRefs",
|
|
999
|
-
"enrich"
|
|
1002
|
+
"enrich",
|
|
1003
|
+
"blocksWrapper",
|
|
1004
|
+
"blocksWrapperProps",
|
|
1005
|
+
"contentWrapper",
|
|
1006
|
+
"contentWrapperProps"
|
|
1000
1007
|
],
|
|
1001
1008
|
data() {
|
|
1002
1009
|
return {
|
|
@@ -1031,7 +1038,7 @@ const ae = (e) => {
|
|
|
1031
1038
|
return this.shouldRenderVariants ? {
|
|
1032
1039
|
...this.content,
|
|
1033
1040
|
testVariationId: (e = this.content) == null ? void 0 : e.id
|
|
1034
|
-
} :
|
|
1041
|
+
} : be({
|
|
1035
1042
|
item: this.content,
|
|
1036
1043
|
canTrack: R(this.canTrack)
|
|
1037
1044
|
});
|
|
@@ -1042,11 +1049,11 @@ var Te = function() {
|
|
|
1042
1049
|
var o;
|
|
1043
1050
|
var t = this, n = t._self._c;
|
|
1044
1051
|
return t._self._setupProxy, n("div", [!t.__isNestedRender && t.TARGET !== "reactNative" ? [n("inlined-script", { attrs: { scriptStr: t.getScriptString() } })] : t._e(), t.shouldRenderVariants ? [n("inlined-styles", { attrs: { id: `variants-styles-${(o = t.content) == null ? void 0 : o.id}`, styles: t.hideVariantsStyleString } }), n("inlined-script", { attrs: { scriptStr: t.updateCookieAndStylesScriptStr } }), t._l(t.getVariants(t.content), function(r, s) {
|
|
1045
|
-
return n("content-component", { key: r.testVariationId, attrs: { content: r, showContent: !1, model: t.model, data: t.data, context: t.context, apiKey: t.apiKey, apiVersion: t.apiVersion, customComponents: t.customComponents, canTrack: t.canTrack, locale: t.locale, includeRefs: t.includeRefs, enrich: t.enrich, isSsrAbTest: t.shouldRenderVariants } });
|
|
1046
|
-
})] : t._e(), n("content-component", t._b({ attrs: { content: t.defaultContent, showContent: !0, model: t.model, data: t.data, context: t.context, apiKey: t.apiKey, apiVersion: t.apiVersion, customComponents: t.customComponents, canTrack: t.canTrack, locale: t.locale, includeRefs: t.includeRefs, enrich: t.enrich, isSsrAbTest: t.shouldRenderVariants } }, "content-component", {
|
|
1052
|
+
return n("content-component", { key: r.testVariationId, attrs: { content: r, showContent: !1, model: t.model, data: t.data, context: t.context, apiKey: t.apiKey, apiVersion: t.apiVersion, customComponents: t.customComponents, canTrack: t.canTrack, locale: t.locale, includeRefs: t.includeRefs, enrich: t.enrich, isSsrAbTest: t.shouldRenderVariants, blocksWrapper: t.blocksWrapper, blocksWrapperProps: t.blocksWrapperProps, contentWrapper: t.contentWrapper, contentWrapperProps: t.contentWrapperProps } });
|
|
1053
|
+
})] : t._e(), n("content-component", t._b({ attrs: { content: t.defaultContent, showContent: !0, model: t.model, data: t.data, context: t.context, apiKey: t.apiKey, apiVersion: t.apiVersion, customComponents: t.customComponents, canTrack: t.canTrack, locale: t.locale, includeRefs: t.includeRefs, enrich: t.enrich, isSsrAbTest: t.shouldRenderVariants, blocksWrapper: t.blocksWrapper, blocksWrapperProps: t.blocksWrapperProps, contentWrapper: t.contentWrapper, contentWrapperProps: t.contentWrapperProps } }, "content-component", {
|
|
1047
1054
|
key: t.shouldRenderVariants.toString()
|
|
1048
1055
|
}, !1))], 2);
|
|
1049
|
-
}, Re = [],
|
|
1056
|
+
}, Re = [], Pe = /* @__PURE__ */ p(
|
|
1050
1057
|
$e,
|
|
1051
1058
|
Te,
|
|
1052
1059
|
Re,
|
|
@@ -1056,15 +1063,15 @@ var Te = function() {
|
|
|
1056
1063
|
null,
|
|
1057
1064
|
null
|
|
1058
1065
|
);
|
|
1059
|
-
const tt =
|
|
1066
|
+
const tt = Pe.exports, Ee = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1060
1067
|
__proto__: null,
|
|
1061
1068
|
default: tt
|
|
1062
1069
|
}, Symbol.toStringTag, { value: "Module" })), vn = K, Sn = tt;
|
|
1063
|
-
function
|
|
1070
|
+
function Ae() {
|
|
1064
1071
|
return m() && window.self !== window.top;
|
|
1065
1072
|
}
|
|
1066
1073
|
function et() {
|
|
1067
|
-
return
|
|
1074
|
+
return Ae() && window.location.search.indexOf("builder.frameEditing=") !== -1;
|
|
1068
1075
|
}
|
|
1069
1076
|
function kn() {
|
|
1070
1077
|
return !m() || et() ? !1 : location.search.indexOf("builder.preview=") !== -1;
|
|
@@ -1072,22 +1079,22 @@ function kn() {
|
|
|
1072
1079
|
const Cn = [], xn = (e) => ({
|
|
1073
1080
|
type: "builder.registerComponent",
|
|
1074
1081
|
data: Be(e)
|
|
1075
|
-
}),
|
|
1082
|
+
}), Ve = (e) => {
|
|
1076
1083
|
const t = e.toString().trim();
|
|
1077
1084
|
return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
|
|
1078
|
-
}, Oe = (e) => typeof e == "function" ?
|
|
1085
|
+
}, Oe = (e) => typeof e == "function" ? Ve(e) : E(e), Be = ({
|
|
1079
1086
|
inputs: e,
|
|
1080
1087
|
...t
|
|
1081
1088
|
}) => ({
|
|
1082
|
-
...
|
|
1089
|
+
...E(t),
|
|
1083
1090
|
inputs: e == null ? void 0 : e.map((n) => Object.entries(n).reduce((o, [r, s]) => ({
|
|
1084
1091
|
...o,
|
|
1085
1092
|
[r]: Oe(s)
|
|
1086
1093
|
}), {}))
|
|
1087
|
-
}),
|
|
1094
|
+
}), U = {};
|
|
1088
1095
|
function wn(e, t) {
|
|
1089
|
-
let n =
|
|
1090
|
-
if (n || (n =
|
|
1096
|
+
let n = U[e];
|
|
1097
|
+
if (n || (n = U[e] = []), n.push(t), m()) {
|
|
1091
1098
|
const o = {
|
|
1092
1099
|
type: "builder.register",
|
|
1093
1100
|
data: {
|
|
@@ -1102,28 +1109,28 @@ function wn(e, t) {
|
|
|
1102
1109
|
}
|
|
1103
1110
|
}
|
|
1104
1111
|
}
|
|
1105
|
-
const
|
|
1112
|
+
const D = {};
|
|
1106
1113
|
function In(e) {
|
|
1107
1114
|
if (m()) {
|
|
1108
|
-
Object.assign(
|
|
1115
|
+
Object.assign(D, e);
|
|
1109
1116
|
const t = {
|
|
1110
1117
|
type: "builder.settingsChange",
|
|
1111
|
-
data:
|
|
1118
|
+
data: D
|
|
1112
1119
|
};
|
|
1113
1120
|
parent.postMessage(t, "*");
|
|
1114
1121
|
}
|
|
1115
1122
|
}
|
|
1116
|
-
function
|
|
1123
|
+
function We() {
|
|
1117
1124
|
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
|
|
1118
1125
|
}
|
|
1119
|
-
function
|
|
1120
|
-
const e =
|
|
1126
|
+
function Ne() {
|
|
1127
|
+
const e = We().fetch;
|
|
1121
1128
|
if (typeof e > "u")
|
|
1122
1129
|
throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
|
|
1123
1130
|
For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
|
|
1124
1131
|
return e;
|
|
1125
1132
|
}
|
|
1126
|
-
const
|
|
1133
|
+
const je = Ne();
|
|
1127
1134
|
function I(e, t = null, n = ".") {
|
|
1128
1135
|
return Object.keys(e).reduce((o, r) => {
|
|
1129
1136
|
const s = e[r], i = [t, r].filter(Boolean).join(n);
|
|
@@ -1136,7 +1143,7 @@ function I(e, t = null, n = ".") {
|
|
|
1136
1143
|
};
|
|
1137
1144
|
}, {});
|
|
1138
1145
|
}
|
|
1139
|
-
const
|
|
1146
|
+
const Ue = "v3", F = "builder.", De = "options.", Fe = (e) => {
|
|
1140
1147
|
const t = {};
|
|
1141
1148
|
return e.forEach((n, o) => {
|
|
1142
1149
|
t[o] = n;
|
|
@@ -1146,17 +1153,17 @@ const De = "v3", L = "builder.", Fe = "options.", Le = (e) => {
|
|
|
1146
1153
|
return {};
|
|
1147
1154
|
const t = ot(e), n = {};
|
|
1148
1155
|
return Object.keys(t).forEach((o) => {
|
|
1149
|
-
if (o.startsWith(
|
|
1150
|
-
const r = o.replace(
|
|
1156
|
+
if (o.startsWith(F)) {
|
|
1157
|
+
const r = o.replace(F, "").replace(De, "");
|
|
1151
1158
|
n[r] = t[o];
|
|
1152
1159
|
}
|
|
1153
1160
|
}), n;
|
|
1154
|
-
},
|
|
1161
|
+
}, Le = () => {
|
|
1155
1162
|
if (!m())
|
|
1156
1163
|
return {};
|
|
1157
1164
|
const e = new URLSearchParams(window.location.search);
|
|
1158
1165
|
return nt(e);
|
|
1159
|
-
}, ot = (e) => e instanceof URLSearchParams ?
|
|
1166
|
+
}, ot = (e) => e instanceof URLSearchParams ? Fe(e) : e, L = (e) => typeof e == "number" && !isNaN(e) && e >= 0, V = (e) => {
|
|
1160
1167
|
let {
|
|
1161
1168
|
noTraverse: t = !1
|
|
1162
1169
|
} = e;
|
|
@@ -1169,14 +1176,14 @@ const De = "v3", L = "builder.", Fe = "options.", Le = (e) => {
|
|
|
1169
1176
|
includeRefs: f = !0,
|
|
1170
1177
|
enrich: a,
|
|
1171
1178
|
locale: c,
|
|
1172
|
-
apiVersion: v =
|
|
1179
|
+
apiVersion: v = Ue,
|
|
1173
1180
|
fields: S,
|
|
1174
1181
|
omit: l,
|
|
1175
1182
|
offset: k,
|
|
1176
|
-
cacheSeconds:
|
|
1183
|
+
cacheSeconds: _,
|
|
1177
1184
|
staleCacheSeconds: $,
|
|
1178
1185
|
sort: B,
|
|
1179
|
-
includeUnpublished:
|
|
1186
|
+
includeUnpublished: W
|
|
1180
1187
|
} = e;
|
|
1181
1188
|
if (!i)
|
|
1182
1189
|
throw new Error("Missing API key");
|
|
@@ -1184,7 +1191,7 @@ const De = "v3", L = "builder.", Fe = "options.", Le = (e) => {
|
|
|
1184
1191
|
throw new Error(`Invalid apiVersion: expected 'v2' or 'v3', received '${v}'`);
|
|
1185
1192
|
(e.limit === void 0 || e.limit > 1) && !("noTraverse" in e) && (t = !0);
|
|
1186
1193
|
const d = new URL(`https://cdn.builder.io/api/${v}/content/${s}?apiKey=${i}&limit=${n}&noTraverse=${t}&includeRefs=${f}${c ? `&locale=${c}` : ""}${a ? `&enrich=${a}` : ""}`);
|
|
1187
|
-
if (d.searchParams.set("omit", l || "meta.componentsUsed"), S && d.searchParams.set("fields", S), Number.isFinite(k) && k > -1 && d.searchParams.set("offset", String(Math.floor(k))), typeof
|
|
1194
|
+
if (d.searchParams.set("omit", l || "meta.componentsUsed"), S && d.searchParams.set("fields", S), Number.isFinite(k) && k > -1 && d.searchParams.set("offset", String(Math.floor(k))), typeof W == "boolean" && d.searchParams.set("includeUnpublished", String(W)), _ && L(_) && d.searchParams.set("cacheSeconds", String(_)), $ && L($) && d.searchParams.set("staleCacheSeconds", String($)), B) {
|
|
1188
1195
|
const h = I({
|
|
1189
1196
|
sort: B
|
|
1190
1197
|
});
|
|
@@ -1192,11 +1199,11 @@ const De = "v3", L = "builder.", Fe = "options.", Le = (e) => {
|
|
|
1192
1199
|
d.searchParams.set(C, JSON.stringify(h[C]));
|
|
1193
1200
|
}
|
|
1194
1201
|
const lt = {
|
|
1195
|
-
...
|
|
1202
|
+
...Le(),
|
|
1196
1203
|
...ot(e.options || {})
|
|
1197
|
-
},
|
|
1198
|
-
for (const h in
|
|
1199
|
-
d.searchParams.set(h, String(
|
|
1204
|
+
}, N = I(lt);
|
|
1205
|
+
for (const h in N)
|
|
1206
|
+
d.searchParams.set(h, String(N[h]));
|
|
1200
1207
|
if (o && d.searchParams.set("userAttributes", JSON.stringify(o)), r) {
|
|
1201
1208
|
const h = I({
|
|
1202
1209
|
query: r
|
|
@@ -1214,35 +1221,35 @@ async function O(e) {
|
|
|
1214
1221
|
return t && t.results[0] || null;
|
|
1215
1222
|
}
|
|
1216
1223
|
const $n = O, Ke = async (e) => {
|
|
1217
|
-
const t =
|
|
1218
|
-
return await (await
|
|
1219
|
-
}, ze = async (e, t, n =
|
|
1224
|
+
const t = V(e);
|
|
1225
|
+
return await (await je(t.href)).json();
|
|
1226
|
+
}, ze = async (e, t, n = V(e)) => {
|
|
1220
1227
|
const o = R(e.canTrack);
|
|
1221
1228
|
if (n.search.includes("preview="), !o || !(m() || y === "reactNative"))
|
|
1222
1229
|
return t;
|
|
1223
1230
|
try {
|
|
1224
1231
|
const r = [];
|
|
1225
1232
|
for (const s of t.results)
|
|
1226
|
-
r.push(await
|
|
1233
|
+
r.push(await _e({
|
|
1227
1234
|
item: s,
|
|
1228
1235
|
canTrack: o
|
|
1229
1236
|
}));
|
|
1230
1237
|
t.results = r;
|
|
1231
1238
|
} catch (r) {
|
|
1232
|
-
|
|
1239
|
+
b.error("Could not process A/B tests. ", r);
|
|
1233
1240
|
}
|
|
1234
1241
|
return t;
|
|
1235
1242
|
};
|
|
1236
1243
|
async function rt(e) {
|
|
1237
1244
|
try {
|
|
1238
|
-
const t =
|
|
1239
|
-
return Me(n) ? ze(e, n) : (
|
|
1245
|
+
const t = V(e), n = await Ke(e);
|
|
1246
|
+
return Me(n) ? ze(e, n) : (b.error("Error fetching data. ", {
|
|
1240
1247
|
url: t,
|
|
1241
1248
|
content: n,
|
|
1242
1249
|
options: e
|
|
1243
1250
|
}), null);
|
|
1244
1251
|
} catch (t) {
|
|
1245
|
-
return
|
|
1252
|
+
return b.error("Error fetching data. ", t), null;
|
|
1246
1253
|
}
|
|
1247
1254
|
}
|
|
1248
1255
|
const Tn = rt;
|
|
@@ -1399,7 +1406,7 @@ const it = "builderSessionId", He = async ({
|
|
|
1399
1406
|
});
|
|
1400
1407
|
async function an(e) {
|
|
1401
1408
|
if (!e.apiKey) {
|
|
1402
|
-
|
|
1409
|
+
b.error("Missing API key for track call. Please provide your API key.");
|
|
1403
1410
|
return;
|
|
1404
1411
|
}
|
|
1405
1412
|
if (e.canTrack && !et() && (m() || y === "reactNative"))
|
|
@@ -1419,7 +1426,7 @@ async function an(e) {
|
|
|
1419
1426
|
const Rn = (e) => an({
|
|
1420
1427
|
...e,
|
|
1421
1428
|
canTrack: !0
|
|
1422
|
-
}),
|
|
1429
|
+
}), Pn = async (e) => {
|
|
1423
1430
|
var o, r, s;
|
|
1424
1431
|
const t = e.path || ((o = e.url) == null ? void 0 : o.pathname) || ((r = e.userAttributes) == null ? void 0 : r.urlPath), n = {
|
|
1425
1432
|
...e,
|
|
@@ -1451,7 +1458,7 @@ export {
|
|
|
1451
1458
|
fn as I,
|
|
1452
1459
|
nt as J,
|
|
1453
1460
|
Rn as K,
|
|
1454
|
-
|
|
1461
|
+
Pn as L,
|
|
1455
1462
|
ie as M,
|
|
1456
1463
|
vn as R,
|
|
1457
1464
|
hn as S,
|
|
@@ -1459,11 +1466,11 @@ export {
|
|
|
1459
1466
|
gn as V,
|
|
1460
1467
|
an as _,
|
|
1461
1468
|
un as a,
|
|
1462
|
-
|
|
1469
|
+
P as b,
|
|
1463
1470
|
g as c,
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1471
|
+
bn as d,
|
|
1472
|
+
_n as e,
|
|
1473
|
+
E as f,
|
|
1467
1474
|
ft as g,
|
|
1468
1475
|
yn as h,
|
|
1469
1476
|
et as i,
|
|
@@ -1473,13 +1480,13 @@ export {
|
|
|
1473
1480
|
m,
|
|
1474
1481
|
p as n,
|
|
1475
1482
|
R as o,
|
|
1476
|
-
|
|
1483
|
+
je as p,
|
|
1477
1484
|
xn as q,
|
|
1478
1485
|
wn as r,
|
|
1479
1486
|
Be as s,
|
|
1480
1487
|
O as t,
|
|
1481
1488
|
kn as u,
|
|
1482
|
-
|
|
1489
|
+
b as v,
|
|
1483
1490
|
on as w,
|
|
1484
1491
|
K as x,
|
|
1485
1492
|
tt as y,
|