@builder.io/sdk-vue 0.6.4 → 0.7.1-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/package.json +5 -2
- package/vue2/lib/{node/block-f8ec39b9.cjs → browser/block-b12c2a9e.cjs} +2 -2
- package/vue2/lib/browser/{block-7623343e.js → block-d44d5b8a.js} +7 -7
- package/vue2/lib/{node/block-styles-78f1fc51.js → browser/block-styles-b2bcecac.js} +5 -5
- package/vue2/lib/{edge/block-styles-d41b334a.cjs → browser/block-styles-fad43b2e.cjs} +1 -1
- package/vue2/lib/browser/{block-wrapper-d129f149.js → block-wrapper-230a8abf.js} +5 -5
- package/vue2/lib/browser/{block-wrapper-04c09786.cjs → block-wrapper-ecdc5285.cjs} +1 -1
- package/vue2/lib/browser/blocks/custom-code/custom-code.vue.d.ts +0 -1
- package/vue2/lib/browser/blocks/image/image.vue.d.ts +1 -1
- package/vue2/lib/{edge/blocks-wrapper-d1b2c241.js → browser/blocks-wrapper-37d1fbf5.js} +1 -1
- package/vue2/lib/{edge/blocks-wrapper-c1a59075.cjs → browser/blocks-wrapper-5f4ff269.cjs} +1 -1
- package/vue2/lib/{edge/component-ref-bac7483e.js → browser/component-ref-25028977.js} +6 -6
- package/vue2/lib/{edge/component-ref-f49d33aa.cjs → browser/component-ref-8d39a7f4.cjs} +1 -1
- package/vue2/lib/browser/components/content/components/enable-editor.vue.d.ts +2 -1
- package/vue2/lib/browser/constants/sdk-version.d.ts +1 -1
- package/vue2/lib/{edge/content-ee5058bf.cjs → browser/content-e0b5be50.cjs} +1 -1
- package/vue2/lib/browser/{content-59001c88.js → content-e775e1b1.js} +66 -68
- package/vue2/lib/browser/{css-5244a373.js → css-41c2e31d.js} +1 -1
- package/vue2/lib/{node/css-e268cc90.cjs → browser/css-c292bae4.cjs} +1 -1
- package/vue2/lib/{node/enable-editor-0ec0fba2.js → browser/enable-editor-836e8731.js} +104 -90
- package/vue2/lib/browser/enable-editor-bf828ceb.cjs +1 -0
- package/vue2/lib/browser/evaluate-239c4f2e.js +86 -0
- package/vue2/lib/browser/evaluate-37bcc296.cjs +1 -0
- package/vue2/lib/browser/functions/evaluate/choose-eval.d.ts +6 -0
- package/vue2/lib/browser/functions/evaluate/evaluate.d.ts +1 -5
- package/vue2/lib/browser/functions/evaluate/helpers.d.ts +7 -1
- package/vue2/lib/browser/functions/evaluate/node-runtime/index.d.ts +1 -1
- package/vue2/lib/browser/functions/evaluate/node-runtime/node-runtime.d.ts +2 -0
- package/vue2/lib/browser/functions/get-content/types.d.ts +94 -3
- package/vue2/lib/browser/functions/is-node-runtime.d.ts +4 -0
- package/vue2/lib/browser/{get-block-actions-72575937.cjs → get-block-actions-0e6055b8.cjs} +1 -1
- package/vue2/lib/{node/get-block-actions-19c074c1.js → browser/get-block-actions-eb308dbc.js} +2 -2
- package/vue2/lib/{node/get-block-properties-a61a4f44.cjs → browser/get-block-properties-a17c5ae7.cjs} +1 -1
- package/vue2/lib/browser/{get-block-properties-8bd6705f.js → get-block-properties-f1d87f5b.js} +2 -2
- package/vue2/lib/browser/{get-processed-block-df5bc2af.cjs → get-processed-block-469b6014.cjs} +1 -1
- package/vue2/lib/{node/get-processed-block-5ea5ad51.js → browser/get-processed-block-dac77b11.js} +2 -2
- package/vue2/lib/browser/index-0daf250a.cjs +32 -0
- package/vue2/lib/{node/index-cd218de0.js → browser/index-2c3e3aa0.js} +389 -370
- package/vue2/lib/browser/index.cjs +1 -1
- package/vue2/lib/browser/index.js +5 -5
- package/vue2/lib/browser/{inlined-script-b9da40ba.cjs → inlined-script-17a3e298.cjs} +1 -1
- package/vue2/lib/{edge/inlined-script-1c876548.js → browser/inlined-script-a2ce7e25.js} +1 -1
- package/vue2/lib/{node/inlined-styles-86ba9613.cjs → browser/inlined-styles-02129d25.cjs} +1 -1
- package/vue2/lib/{node/inlined-styles-cb8ac12b.js → browser/inlined-styles-25974197.js} +1 -1
- package/vue2/lib/{node/interactive-element-7034b3c2.cjs → browser/interactive-element-31618273.cjs} +1 -1
- package/vue2/lib/{node/interactive-element-c2e016e7.js → browser/interactive-element-95e7ed70.js} +5 -5
- package/vue2/lib/browser/{repeated-block-515aea68.cjs → repeated-block-dc24507b.cjs} +1 -1
- package/vue2/lib/{node/repeated-block-82b3437a.js → browser/repeated-block-df873ea1.js} +2 -2
- package/vue2/lib/browser/style.css +1 -1
- package/vue2/lib/{node/styles-b9bdec6e.js → browser/styles-c0e6af8c.js} +2 -2
- package/vue2/lib/{node/styles-f43008cc.cjs → browser/styles-eb6d5133.cjs} +2 -2
- package/vue2/lib/{browser/block-f8ec39b9.cjs → edge/block-6ae253d3.cjs} +2 -2
- package/vue2/lib/edge/{block-9a136438.js → block-ee5e6b30.js} +7 -7
- package/vue2/lib/{node/block-styles-442c9444.cjs → edge/block-styles-0db05976.cjs} +1 -1
- package/vue2/lib/edge/{block-styles-293e6520.js → block-styles-7ddd1160.js} +5 -5
- package/vue2/lib/{node/block-wrapper-d129f149.js → edge/block-wrapper-2516c8f0.js} +5 -5
- package/vue2/lib/edge/{block-wrapper-e6bc8771.cjs → block-wrapper-4a546b0f.cjs} +1 -1
- package/vue2/lib/edge/blocks/custom-code/custom-code.vue.d.ts +0 -1
- package/vue2/lib/edge/blocks/image/image.vue.d.ts +1 -1
- package/vue2/lib/{browser/blocks-wrapper-ffcf193b.cjs → edge/blocks-wrapper-be115723.cjs} +1 -1
- package/vue2/lib/{browser/blocks-wrapper-744d9c88.js → edge/blocks-wrapper-f30c1e2e.js} +1 -1
- package/vue2/lib/{node/component-ref-ad91463a.js → edge/component-ref-7ca49e69.js} +6 -6
- package/vue2/lib/{node/component-ref-c0bc64bb.cjs → edge/component-ref-f5f09e76.cjs} +1 -1
- package/vue2/lib/edge/components/content/components/enable-editor.vue.d.ts +2 -1
- package/vue2/lib/edge/constants/sdk-version.d.ts +1 -1
- package/vue2/lib/edge/{content-dd98b5f2.js → content-32e8afd0.js} +66 -68
- package/vue2/lib/{browser/content-6391e001.cjs → edge/content-e389cb08.cjs} +1 -1
- package/vue2/lib/edge/{css-a40d0ce1.js → css-905123d6.js} +1 -1
- package/vue2/lib/{browser/css-e268cc90.cjs → edge/css-db1fb81d.cjs} +1 -1
- package/vue2/lib/{browser/enable-editor-0ec0fba2.js → edge/enable-editor-5339c72b.js} +104 -90
- package/vue2/lib/edge/enable-editor-8460bc4f.cjs +1 -0
- package/vue2/lib/edge/evaluate-7b0fdb29.cjs +21 -0
- package/vue2/lib/edge/{evaluate-5aed4676.js → evaluate-8d6921da.js} +379 -346
- package/vue2/lib/edge/functions/evaluate/choose-eval.d.ts +6 -0
- package/vue2/lib/edge/functions/evaluate/evaluate.d.ts +1 -5
- package/vue2/lib/edge/functions/evaluate/helpers.d.ts +7 -1
- package/vue2/lib/edge/functions/evaluate/node-runtime/index.d.ts +1 -1
- package/vue2/lib/edge/functions/evaluate/node-runtime/node-runtime.d.ts +2 -0
- package/vue2/lib/edge/functions/get-content/types.d.ts +94 -3
- package/vue2/lib/edge/functions/is-node-runtime.d.ts +4 -0
- package/vue2/lib/edge/{get-block-actions-877fd5f9.cjs → get-block-actions-ac5cd221.cjs} +1 -1
- package/vue2/lib/{browser/get-block-actions-19c074c1.js → edge/get-block-actions-eb1322f1.js} +2 -2
- package/vue2/lib/{browser/get-block-properties-a61a4f44.cjs → edge/get-block-properties-e45bd13c.cjs} +1 -1
- package/vue2/lib/edge/{get-block-properties-8b0da7b7.js → get-block-properties-fc55bc69.js} +2 -2
- package/vue2/lib/edge/{get-processed-block-ccaa4214.cjs → get-processed-block-3a429bb7.cjs} +1 -1
- package/vue2/lib/edge/{get-processed-block-f0bfcc66.js → get-processed-block-9e3229f1.js} +2 -2
- package/vue2/lib/edge/{index-f8dc2e35.js → index-0840538e.js} +389 -370
- package/vue2/lib/edge/index-66f83dfa.cjs +32 -0
- package/vue2/lib/edge/index.cjs +1 -1
- package/vue2/lib/edge/index.js +5 -5
- package/vue2/lib/{node/inlined-script-4f903f8e.js → edge/inlined-script-8ceab368.js} +1 -1
- package/vue2/lib/{node/inlined-script-b9da40ba.cjs → edge/inlined-script-9311a8f4.cjs} +1 -1
- package/vue2/lib/edge/{inlined-styles-7ebd6646.js → inlined-styles-4826f427.js} +1 -1
- package/vue2/lib/{browser/inlined-styles-86ba9613.cjs → edge/inlined-styles-f0c5389f.cjs} +1 -1
- package/vue2/lib/edge/{interactive-element-3eaf0e7a.cjs → interactive-element-20464160.cjs} +1 -1
- package/vue2/lib/{browser/interactive-element-c2e016e7.js → edge/interactive-element-a4e1753a.js} +5 -5
- package/vue2/lib/{browser/repeated-block-82b3437a.js → edge/repeated-block-5ff563c4.js} +2 -2
- package/vue2/lib/edge/{repeated-block-446ae014.cjs → repeated-block-90ff0a8e.cjs} +1 -1
- package/vue2/lib/edge/style.css +1 -1
- package/vue2/lib/{browser/styles-b9bdec6e.js → edge/styles-0821e7bd.js} +2 -2
- package/vue2/lib/{browser/styles-f43008cc.cjs → edge/styles-8e148f6b.cjs} +2 -2
- package/vue2/lib/{edge/block-33134063.cjs → node/block-46a1926a.cjs} +2 -2
- package/vue2/lib/node/{block-7623343e.js → block-a1bcdc0f.js} +7 -7
- package/vue2/lib/{browser/block-styles-442c9444.cjs → node/block-styles-34b37b5f.cjs} +1 -1
- package/vue2/lib/{browser/block-styles-78f1fc51.js → node/block-styles-40dfb747.js} +5 -5
- package/vue2/lib/{edge/block-wrapper-2f05e945.js → node/block-wrapper-02a13832.js} +5 -5
- package/vue2/lib/node/{block-wrapper-04c09786.cjs → block-wrapper-d012bc77.cjs} +1 -1
- package/vue2/lib/node/blocks/custom-code/custom-code.vue.d.ts +0 -1
- package/vue2/lib/node/blocks/image/image.vue.d.ts +1 -1
- package/vue2/lib/node/{blocks-wrapper-ffcf193b.cjs → blocks-wrapper-111adf2e.cjs} +1 -1
- package/vue2/lib/node/{blocks-wrapper-744d9c88.js → blocks-wrapper-2cf7c243.js} +1 -1
- package/vue2/lib/{browser/component-ref-ad91463a.js → node/component-ref-686b70a8.js} +6 -6
- package/vue2/lib/{browser/component-ref-c0bc64bb.cjs → node/component-ref-8664d291.cjs} +1 -1
- package/vue2/lib/node/components/content/components/enable-editor.vue.d.ts +2 -1
- package/vue2/lib/node/constants/sdk-version.d.ts +1 -1
- package/vue2/lib/node/{content-59001c88.js → content-750b77c5.js} +66 -68
- package/vue2/lib/node/{content-6391e001.cjs → content-804eb1c1.cjs} +1 -1
- package/vue2/lib/node/{css-5244a373.js → css-0997fa70.js} +1 -1
- package/vue2/lib/{edge/css-6d51b919.cjs → node/css-698817f7.cjs} +1 -1
- package/vue2/lib/node/enable-editor-4c3b62ba.cjs +1 -0
- package/vue2/lib/{edge/enable-editor-aeb1f840.js → node/enable-editor-991cf703.js} +104 -90
- package/vue2/lib/node/evaluate-06bae117.js +187 -0
- package/vue2/lib/node/evaluate-fc74c806.cjs +41 -0
- package/vue2/lib/node/functions/evaluate/choose-eval.d.ts +6 -0
- package/vue2/lib/node/functions/evaluate/evaluate.d.ts +1 -5
- package/vue2/lib/node/functions/evaluate/helpers.d.ts +7 -1
- package/vue2/lib/node/functions/evaluate/node-runtime/index.d.ts +1 -1
- package/vue2/lib/node/functions/evaluate/node-runtime/node-runtime.d.ts +2 -0
- package/vue2/lib/node/functions/get-content/types.d.ts +94 -3
- package/vue2/lib/node/functions/is-node-runtime.d.ts +4 -0
- package/vue2/lib/node/{get-block-actions-72575937.cjs → get-block-actions-779fa30b.cjs} +1 -1
- package/vue2/lib/{edge/get-block-actions-350bc978.js → node/get-block-actions-9781c926.js} +2 -2
- package/vue2/lib/{edge/get-block-properties-ece4e040.cjs → node/get-block-properties-090f2906.cjs} +1 -1
- package/vue2/lib/node/{get-block-properties-8bd6705f.js → get-block-properties-ed8d55a8.js} +2 -2
- package/vue2/lib/node/get-processed-block-267a96eb.js +52 -0
- package/vue2/lib/node/get-processed-block-270c0450.cjs +1 -0
- package/vue2/lib/node/index-55b86b2c.cjs +32 -0
- package/vue2/lib/{browser/index-cd218de0.js → node/index-fe4f9482.js} +389 -370
- package/vue2/lib/node/index.cjs +1 -1
- package/vue2/lib/node/index.js +5 -5
- package/vue2/lib/{edge/inlined-script-44721dc7.cjs → node/inlined-script-37af305a.cjs} +1 -1
- package/vue2/lib/{browser/inlined-script-4f903f8e.js → node/inlined-script-9bf9544a.js} +1 -1
- package/vue2/lib/{browser/inlined-styles-cb8ac12b.js → node/inlined-styles-7a704065.js} +1 -1
- package/vue2/lib/{edge/inlined-styles-eb80e4fe.cjs → node/inlined-styles-e812d54a.cjs} +1 -1
- package/vue2/lib/{edge/interactive-element-64d11339.js → node/interactive-element-a9adc81f.js} +5 -5
- package/vue2/lib/{browser/interactive-element-7034b3c2.cjs → node/interactive-element-e940e56b.cjs} +1 -1
- package/vue2/lib/{edge/repeated-block-b9a8feeb.js → node/repeated-block-acab5426.js} +2 -2
- package/vue2/lib/node/{repeated-block-515aea68.cjs → repeated-block-ef2bf12f.cjs} +1 -1
- package/vue2/lib/node/style.css +1 -1
- package/vue2/lib/{edge/styles-cfea6654.js → node/styles-34c3741a.js} +2 -2
- package/vue2/lib/{edge/styles-36552ab4.cjs → node/styles-93f84a1d.cjs} +2 -2
- package/vue2/package.json +2 -0
- package/vue3/lib/browser/{block-wrapper.1501b793.cjs → block-wrapper.75f65d10.cjs} +1 -1
- package/vue3/lib/{edge/block-wrapper.e3b7b422.js → browser/block-wrapper.eb12cfdc.js} +2 -2
- package/vue3/lib/browser/blocks/custom-code/custom-code.vue.d.ts +0 -1
- package/vue3/lib/browser/blocks/image/image.vue.d.ts +1 -1
- package/vue3/lib/{edge/component-ref.7035b91b.js → browser/component-ref.ce36b7ec.js} +2 -2
- package/vue3/lib/browser/{component-ref.4f5f964f.cjs → component-ref.f391a5ee.cjs} +1 -1
- package/vue3/lib/browser/components/content/components/enable-editor.vue.d.ts +8 -7
- package/vue3/lib/browser/components/content/content.vue.d.ts +6 -6
- package/vue3/lib/browser/constants/sdk-version.d.ts +1 -1
- package/vue3/lib/browser/functions/evaluate/choose-eval.d.ts +6 -0
- package/vue3/lib/browser/functions/evaluate/evaluate.d.ts +1 -5
- package/vue3/lib/browser/functions/evaluate/helpers.d.ts +7 -1
- package/vue3/lib/browser/functions/evaluate/node-runtime/index.d.ts +1 -1
- package/vue3/lib/browser/functions/evaluate/node-runtime/node-runtime.d.ts +2 -0
- package/vue3/lib/browser/functions/get-content/types.d.ts +94 -3
- package/vue3/lib/browser/functions/is-node-runtime.d.ts +4 -0
- package/vue3/lib/{edge/get-block-actions.7d762289.js → browser/get-block-actions.7c580dff.js} +1 -1
- package/vue3/lib/{node/get-block-actions.316f88d7.cjs → browser/get-block-actions.e6dfffe3.cjs} +1 -1
- package/vue3/lib/{node/index.67caa0a0.js → browser/index.188d2ee5.js} +673 -640
- package/vue3/lib/browser/index.cjs +1 -1
- package/vue3/lib/browser/index.fb1c2a1f.cjs +69 -0
- package/vue3/lib/browser/index.js +1 -1
- package/vue3/lib/browser/{repeated-block.3a15e789.cjs → repeated-block.2431c33d.cjs} +1 -1
- package/vue3/lib/{edge/repeated-block.59223c04.js → browser/repeated-block.7a8762fc.js} +2 -2
- package/vue3/lib/browser/style.css +1 -1
- package/vue3/lib/edge/{block-wrapper.8441fbe1.cjs → block-wrapper.0868030f.cjs} +1 -1
- package/vue3/lib/{node/block-wrapper.d71006fa.js → edge/block-wrapper.cab4805b.js} +2 -2
- package/vue3/lib/edge/blocks/custom-code/custom-code.vue.d.ts +0 -1
- package/vue3/lib/edge/blocks/image/image.vue.d.ts +1 -1
- package/vue3/lib/{node/component-ref.104f0d16.js → edge/component-ref.ace67608.js} +2 -2
- package/vue3/lib/{node/component-ref.4f5f964f.cjs → edge/component-ref.ae7eec27.cjs} +1 -1
- package/vue3/lib/edge/components/content/components/enable-editor.vue.d.ts +8 -7
- package/vue3/lib/edge/components/content/content.vue.d.ts +6 -6
- package/vue3/lib/edge/constants/sdk-version.d.ts +1 -1
- package/vue3/lib/edge/functions/evaluate/choose-eval.d.ts +6 -0
- package/vue3/lib/edge/functions/evaluate/evaluate.d.ts +1 -5
- package/vue3/lib/edge/functions/evaluate/helpers.d.ts +7 -1
- package/vue3/lib/edge/functions/evaluate/node-runtime/index.d.ts +1 -1
- package/vue3/lib/edge/functions/evaluate/node-runtime/node-runtime.d.ts +2 -0
- package/vue3/lib/edge/functions/get-content/types.d.ts +94 -3
- package/vue3/lib/edge/functions/is-node-runtime.d.ts +4 -0
- package/vue3/lib/edge/{get-block-actions.37ab332e.cjs → get-block-actions.83fca99e.cjs} +1 -1
- package/vue3/lib/{browser/get-block-actions.12becb73.js → edge/get-block-actions.cfa7e625.js} +1 -1
- package/vue3/lib/edge/{index.811ded87.js → index.28b94406.js} +1310 -1249
- package/vue3/lib/edge/index.8e0db5cb.cjs +89 -0
- package/vue3/lib/edge/index.cjs +1 -1
- package/vue3/lib/edge/index.js +1 -1
- package/vue3/lib/edge/{repeated-block.2c467c57.cjs → repeated-block.4515ae00.cjs} +1 -1
- package/vue3/lib/{node/repeated-block.ab5e93b5.js → edge/repeated-block.4f0522f0.js} +2 -2
- package/vue3/lib/edge/style.css +1 -1
- package/vue3/lib/node/block-wrapper.4b048f0a.cjs +1 -0
- package/vue3/lib/{browser/block-wrapper.d71006fa.js → node/block-wrapper.529d85d5.js} +9 -8
- package/vue3/lib/node/blocks/custom-code/custom-code.vue.d.ts +0 -1
- package/vue3/lib/node/blocks/image/image.vue.d.ts +1 -1
- package/vue3/lib/{browser/component-ref.104f0d16.js → node/component-ref.3c9a0fb1.js} +5 -4
- package/vue3/lib/node/component-ref.c78bd861.cjs +1 -0
- package/vue3/lib/node/components/content/components/enable-editor.vue.d.ts +8 -7
- package/vue3/lib/node/components/content/content.vue.d.ts +6 -6
- package/vue3/lib/node/constants/sdk-version.d.ts +1 -1
- package/vue3/lib/node/functions/evaluate/choose-eval.d.ts +6 -0
- package/vue3/lib/node/functions/evaluate/evaluate.d.ts +1 -5
- package/vue3/lib/node/functions/evaluate/helpers.d.ts +7 -1
- package/vue3/lib/node/functions/evaluate/node-runtime/index.d.ts +1 -1
- package/vue3/lib/node/functions/evaluate/node-runtime/node-runtime.d.ts +2 -0
- package/vue3/lib/node/functions/get-content/types.d.ts +94 -3
- package/vue3/lib/node/functions/is-node-runtime.d.ts +4 -0
- package/vue3/lib/node/{get-block-actions.12becb73.js → get-block-actions.65678660.js} +1 -1
- package/vue3/lib/{browser/get-block-actions.316f88d7.cjs → node/get-block-actions.977f70db.cjs} +1 -1
- package/vue3/lib/{browser/index.67caa0a0.js → node/index.1a21f267.js} +845 -718
- package/vue3/lib/node/index.baa2a660.cjs +109 -0
- package/vue3/lib/node/index.cjs +1 -1
- package/vue3/lib/node/index.js +27 -26
- package/vue3/lib/{browser/repeated-block.ab5e93b5.js → node/repeated-block.04f4039b.js} +5 -4
- package/vue3/lib/node/repeated-block.33e03818.cjs +1 -0
- package/vue3/lib/node/style.css +1 -1
- package/vue3/package.json +2 -0
- package/vue2/lib/browser/enable-editor-68f3b7d1.cjs +0 -1
- package/vue2/lib/browser/evaluate-81e9d18d.js +0 -81
- package/vue2/lib/browser/evaluate-c6468e7e.cjs +0 -1
- package/vue2/lib/browser/get-processed-block-5ea5ad51.js +0 -58
- package/vue2/lib/browser/index-4480d5e4.cjs +0 -32
- package/vue2/lib/edge/enable-editor-86cc8a4d.cjs +0 -1
- package/vue2/lib/edge/evaluate-16c456b4.cjs +0 -21
- package/vue2/lib/edge/index-df9193d2.cjs +0 -32
- package/vue2/lib/node/enable-editor-68f3b7d1.cjs +0 -1
- package/vue2/lib/node/evaluate-81e9d18d.js +0 -81
- package/vue2/lib/node/evaluate-c6468e7e.cjs +0 -1
- package/vue2/lib/node/get-processed-block-df5bc2af.cjs +0 -1
- package/vue2/lib/node/index-4480d5e4.cjs +0 -32
- package/vue3/lib/browser/index.2b9eb004.cjs +0 -69
- package/vue3/lib/edge/component-ref.40439a7f.cjs +0 -1
- package/vue3/lib/edge/index.db87480a.cjs +0 -89
- package/vue3/lib/node/block-wrapper.1501b793.cjs +0 -1
- package/vue3/lib/node/index.2b9eb004.cjs +0 -69
- package/vue3/lib/node/repeated-block.3a15e789.cjs +0 -1
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"vue2",
|
|
6
6
|
"vue3"
|
|
7
7
|
],
|
|
8
|
-
"version": "0.
|
|
8
|
+
"version": "0.7.1-0",
|
|
9
9
|
"main": "./vue3/lib/node/index.cjs",
|
|
10
10
|
"module": "./vue3/lib/node/index.js",
|
|
11
11
|
"type": "module",
|
|
@@ -161,14 +161,17 @@
|
|
|
161
161
|
"require": "./vue3/lib/browser/index.cjs"
|
|
162
162
|
}
|
|
163
163
|
},
|
|
164
|
-
"./vue3/css": "./vue3/lib/browser/style.css"
|
|
164
|
+
"./vue3/css": "./vue3/lib/browser/style.css",
|
|
165
|
+
"./css": "./vue3/lib/browser/style.css"
|
|
165
166
|
},
|
|
166
167
|
"scripts": {
|
|
168
|
+
"release": "npm publish",
|
|
167
169
|
"add-debug": "bash ./scripts/add-debug.sh",
|
|
168
170
|
"remove-debug": "bash ./scripts/remove-debug.sh",
|
|
169
171
|
"build": "nx run-many -t build -p @builder.io/sdk-vue-2 @builder.io/sdk-vue-3"
|
|
170
172
|
},
|
|
171
173
|
"peerDependencies": {
|
|
174
|
+
"isolated-vm": "^4.6.0",
|
|
172
175
|
"vue": ">= 2"
|
|
173
176
|
},
|
|
174
177
|
"devDependencies": {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("vue"),a=require("./get-processed-block-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("vue"),a=require("./get-processed-block-469b6014.cjs"),m=require("./evaluate-37bcc296.cjs"),d=require("./index-0daf250a.cjs");function h(t){var e;return{...(e=t.component)==null?void 0:e.options,...t.options,builderBlock:t}}const u=["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],k=t=>typeof t=="string"&&u.includes(t.toLowerCase()),b=({block:t,context:e,registeredComponents:o})=>{var c;const r=(c=a.getProcessedBlock({block:t,localState:e.localState,rootState:e.rootState,rootSetState:e.rootSetState,context:e.context,shouldEvaluateBindings:!1}).component)==null?void 0:c.name;if(!r)return null;const n=o[r];if(n)return n;console.warn(`
|
|
2
2
|
Could not find a registered component named "${r}".
|
|
3
|
-
If you registered it, is the file that registered it imported by the file that needs to render it?`)},f=({block:t,context:e})=>{const{repeat:o,...r}=t;if(!(o!=null&&o.collection))return;const n=m.evaluate({code:o.collection,localState:e.localState,rootState:e.rootState,rootSetState:e.rootSetState,context:e.context});if(!Array.isArray(n))return;const c=o.collection.split(".").pop(),s=o.itemName||(c?c+"Item":"item");return n.map((l,i)=>({context:{...e,localState:{...e.localState,$index:i,$item:l,[s]:l,[`$${s}Index`]:i}},block:r}))},C=()=>Promise.resolve().then(()=>require("./block-styles-
|
|
3
|
+
If you registered it, is the file that registered it imported by the file that needs to render it?`)},f=({block:t,context:e})=>{const{repeat:o,...r}=t;if(!(o!=null&&o.collection))return;const n=m.evaluate({code:o.collection,localState:e.localState,rootState:e.rootState,rootSetState:e.rootSetState,context:e.context});if(!Array.isArray(n))return;const c=o.collection.split(".").pop(),s=o.itemName||(c?c+"Item":"item");return n.map((l,i)=>({context:{...e,localState:{...e.localState,$index:i,$item:l,[s]:l,[`$${s}Index`]:i}},block:r}))},C=()=>Promise.resolve().then(()=>require("./block-styles-fad43b2e.cjs")).then(t=>t.default).catch(t=>{throw console.error("Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",t),t}),S=()=>Promise.resolve().then(()=>require("./repeated-block-dc24507b.cjs")).then(t=>t.default).catch(t=>{throw console.error("Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",t),t}),g=()=>Promise.resolve().then(()=>require("./component-ref-8d39a7f4.cjs")).then(t=>t.default).catch(t=>{throw console.error("Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",t),t}),y=()=>Promise.resolve().then(()=>require("./block-wrapper-ecdc5285.cjs")).then(t=>t.default).catch(t=>{throw console.error("Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",t),t}),B=p.defineComponent({name:"block",components:{"component-ref":g,"block-wrapper":y,"repeated-block":S,"block-styles":C},props:["block","context","registeredComponents"],data(){return{childrenContext:this.context,isEmptyHtmlElement:k}},computed:{blockComponent(){return b({block:this.block,context:this.context,registeredComponents:this.registeredComponents})},repeatItem(){return f({block:this.block,context:this.context})},processedBlock(){return this.repeatItem?this.block:a.getProcessedBlock({block:this.block,localState:this.context.localState,rootState:this.context.rootState,rootSetState:this.context.rootSetState,context:this.context.context,shouldEvaluateBindings:!0})},Tag(){return this.block.tagName||"div"},canShowBlock(){return"hide"in this.processedBlock?!this.processedBlock.hide:"show"in this.processedBlock?this.processedBlock.show:!0},childrenWithoutParentComponent(){var e;return!((e=this.blockComponent)!=null&&e.component)&&!this.repeatItem?this.processedBlock.children??[]:[]},componentRefProps(){var t,e,o,r,n;return{blockChildren:this.processedBlock.children??[],componentRef:(t=this.blockComponent)==null?void 0:t.component,componentOptions:{...h(this.processedBlock),builderContext:this.context,...((e=this.blockComponent)==null?void 0:e.name)==="Symbol"||((o=this.blockComponent)==null?void 0:o.name)==="Columns"?{builderComponents:this.registeredComponents}:{}},context:this.childrenContext,registeredComponents:this.registeredComponents,builderBlock:this.processedBlock,includeBlockProps:((r=this.blockComponent)==null?void 0:r.noWrap)===!0,isInteractive:!((n=this.blockComponent)!=null&&n.isRSC)}}}});var x=function(){var r;var e=this,o=e._self._c;return e._self._setupProxy,(r=e.blockComponent)!=null&&r.noWrap&&e.canShowBlock?o("component-ref",e._b({},"component-ref",e.componentRefProps,!1)):e.isEmptyHtmlElement(e.Tag)&&e.canShowBlock?o("block-wrapper",{attrs:{Wrapper:e.Tag,block:e.processedBlock,context:e.context,hasChildren:!1}}):!e.isEmptyHtmlElement(e.Tag)&&e.repeatItem&&e.canShowBlock?o("div",{staticClass:"vue2-root-element-workaround"},e._l(e.repeatItem,function(n,c){return o("repeated-block",{key:c,attrs:{repeatContext:n.context,block:n.block,registeredComponents:e.registeredComponents}})}),1):e.canShowBlock?o("block-wrapper",{attrs:{Wrapper:e.Tag,block:e.processedBlock,context:e.context,hasChildren:!0}},[o("component-ref",e._b({},"component-ref",e.componentRefProps,!1)),e._l(e.childrenWithoutParentComponent,function(n,c){return o("block",{key:"block-"+n.id,attrs:{block:n,context:e.childrenContext,registeredComponents:e.registeredComponents}})}),e._l(e.childrenWithoutParentComponent,function(n,c){return o("block-styles",{key:"block-style-"+n.id,attrs:{block:n,context:e.childrenContext}})})],2):e._e()},v=[],_=d.normalizeComponent(B,x,v,!1,null,null,null,null);const w=_.exports;exports.default=w;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as p } from "vue";
|
|
2
|
-
import { g as a } from "./get-processed-block-
|
|
3
|
-
import { e as m } from "./evaluate-
|
|
4
|
-
import { n as d } from "./index-
|
|
2
|
+
import { g as a } from "./get-processed-block-dac77b11.js";
|
|
3
|
+
import { e as m } from "./evaluate-239c4f2e.js";
|
|
4
|
+
import { n as d } from "./index-2c3e3aa0.js";
|
|
5
5
|
function h(e) {
|
|
6
6
|
var t;
|
|
7
7
|
return {
|
|
@@ -68,22 +68,22 @@ const k = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen",
|
|
|
68
68
|
},
|
|
69
69
|
block: r
|
|
70
70
|
}));
|
|
71
|
-
}, C = () => import("./block-styles-
|
|
71
|
+
}, C = () => import("./block-styles-b2bcecac.js").then((e) => e.default).catch((e) => {
|
|
72
72
|
throw console.error(
|
|
73
73
|
"Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
|
|
74
74
|
e
|
|
75
75
|
), e;
|
|
76
|
-
}), S = () => import("./repeated-block-
|
|
76
|
+
}), S = () => import("./repeated-block-df873ea1.js").then((e) => e.default).catch((e) => {
|
|
77
77
|
throw console.error(
|
|
78
78
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
79
79
|
e
|
|
80
80
|
), e;
|
|
81
|
-
}), g = () => import("./component-ref-
|
|
81
|
+
}), g = () => import("./component-ref-25028977.js").then((e) => e.default).catch((e) => {
|
|
82
82
|
throw console.error(
|
|
83
83
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
84
84
|
e
|
|
85
85
|
), e;
|
|
86
|
-
}), y = () => import("./block-wrapper-
|
|
86
|
+
}), y = () => import("./block-wrapper-230a8abf.js").then((e) => e.default).catch((e) => {
|
|
87
87
|
throw console.error(
|
|
88
88
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
89
89
|
e
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as y } from "vue";
|
|
2
|
-
import { T as f, c as m, g as x, a as d, n as _ } from "./index-
|
|
3
|
-
import { g as u } from "./get-processed-block-
|
|
4
|
-
import { c as n } from "./css-
|
|
5
|
-
import "./evaluate-
|
|
6
|
-
const k = () => import("./inlined-styles-
|
|
2
|
+
import { T as f, c as m, g as x, a as d, n as _ } from "./index-2c3e3aa0.js";
|
|
3
|
+
import { g as u } from "./get-processed-block-dac77b11.js";
|
|
4
|
+
import { c as n } from "./css-41c2e31d.js";
|
|
5
|
+
import "./evaluate-239c4f2e.js";
|
|
6
|
+
const k = () => import("./inlined-styles-25974197.js").then((e) => e.default).catch((e) => {
|
|
7
7
|
throw console.error(
|
|
8
8
|
"Error while attempting to dynamically import component InlinedStyles at ../../inlined-styles.vue",
|
|
9
9
|
e
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("vue"),s=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("vue"),s=require("./index-0daf250a.cjs"),d=require("./get-processed-block-469b6014.cjs"),c=require("./css-c292bae4.cjs");require("./evaluate-37bcc296.cjs");const p=()=>Promise.resolve().then(()=>require("./inlined-styles-02129d25.cjs")).then(t=>t.default).catch(t=>{throw console.error("Error while attempting to dynamically import component InlinedStyles at ../../inlined-styles.vue",t),t}),k=y.defineComponent({name:"block-styles",components:{"inlined-styles":p},props:["block","context"],data(){return{TARGET:s.TARGET}},computed:{canShowBlock(){const t=d.getProcessedBlock({block:this.block,localState:this.context.localState,rootState:this.context.rootState,rootSetState:this.context.rootSetState,context:this.context.context,shouldEvaluateBindings:!0});return s.checkIsDefined(t.hide)?!t.hide:s.checkIsDefined(t.show)?t.show:!0},css(){var u;const t=d.getProcessedBlock({block:this.block,localState:this.context.localState,rootState:this.context.rootState,rootSetState:this.context.rootSetState,context:this.context.context,shouldEvaluateBindings:!0}),e=t.responsiveStyles,o=this.context.content,r=s.getSizesForBreakpoints(((u=o==null?void 0:o.meta)==null?void 0:u.breakpoints)||{}),l=e==null?void 0:e.large,a=e==null?void 0:e.medium,i=e==null?void 0:e.small,n=t.id;if(!n)return"";const S=l?c.createCssClass({className:n,styles:l}):"",m=a?c.createCssClass({className:n,styles:a,mediaQuery:s.getMaxWidthQueryForSize("medium",r)}):"",h=i?c.createCssClass({className:n,styles:i,mediaQuery:s.getMaxWidthQueryForSize("small",r)}):"";return[S,m,h].join(" ")}}});var x=function(){var e=this,o=e._self._c;return e._self._setupProxy,e.TARGET!=="reactNative"&&e.css&&e.canShowBlock?o("inlined-styles",{attrs:{styles:e.css}}):e._e()},_=[],f=s.normalizeComponent(k,x,_,!1,null,null,null,null);const g=f.exports;exports.default=g;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as e } from "vue";
|
|
2
|
-
import { g as r } from "./get-block-actions-
|
|
3
|
-
import { g as c } from "./get-block-properties-
|
|
4
|
-
import { n } from "./index-
|
|
5
|
-
import "./evaluate-
|
|
6
|
-
import "./css-
|
|
2
|
+
import { g as r } from "./get-block-actions-eb308dbc.js";
|
|
3
|
+
import { g as c } from "./get-block-properties-f1d87f5b.js";
|
|
4
|
+
import { n } from "./index-2c3e3aa0.js";
|
|
5
|
+
import "./evaluate-239c4f2e.js";
|
|
6
|
+
import "./css-41c2e31d.js";
|
|
7
7
|
const a = e({
|
|
8
8
|
name: "block-wrapper",
|
|
9
9
|
props: ["Wrapper", "block", "context", "hasChildren"],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),r=require("./get-block-actions-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),r=require("./get-block-actions-0e6055b8.cjs"),c=require("./get-block-properties-a17c5ae7.cjs"),n=require("./index-0daf250a.cjs");require("./evaluate-37bcc296.cjs");require("./css-c292bae4.cjs");const l=o.defineComponent({name:"block-wrapper",props:["Wrapper","block","context","hasChildren"],data(){return{getBlockActions:r.getBlockActions,getBlockProperties:c.getBlockProperties}}});var a=function(){var t=this,e=t._self._c;return t._self._setupProxy,t.hasChildren?e(t.Wrapper,t._g(t._b({tag:"component"},"component",t.getBlockProperties({block:t.block,context:t.context}),!1),t.getBlockActions({block:t.block,rootState:t.context.rootState,rootSetState:t.context.rootSetState,localState:t.context.localState,context:t.context.context,stripPrefix:!0})),[t._t("default")],2):e(t.Wrapper,t._g(t._b({tag:"component"},"component",t.getBlockProperties({block:t.block,context:t.context}),!1),t.getBlockActions({block:t.block,rootState:t.context.rootState,rootSetState:t.context.rootSetState,localState:t.context.localState,context:t.context.context,stripPrefix:!0})))},s=[],i=n.normalizeComponent(l,a,s,!1,null,null,null,null);const p=i.exports;exports.default=p;
|
|
@@ -6,7 +6,6 @@ declare const _default: import("vue").DefineComponent<string[], {}, {
|
|
|
6
6
|
scriptsInserted: never[];
|
|
7
7
|
scriptsRun: never[];
|
|
8
8
|
}, {}, {
|
|
9
|
-
findAndRunScripts(): void;
|
|
10
9
|
_classStringToObject(str: string): Record<string, boolean>;
|
|
11
10
|
}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<string[]>>, {
|
|
12
11
|
[x: number]: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),r=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),r=require("./index-0daf250a.cjs"),a=o.defineComponent({name:"builder-blocks-wrapper",props:["blocks","parent","path","styleProp"],computed:{className(){var t;return"builder-blocks"+((t=this.blocks)!=null&&t.length?"":" no-blocks")}},methods:{onClick(){var t,e;r.isEditing()&&!((t=this.blocks)!=null&&t.length)&&((e=window.parent)==null||e.postMessage({type:"builder.clickEmptyBlocks",data:{parentElementId:this.parent,dataPath:this.path}},"*"))},onMouseEnter(){var t,e;r.isEditing()&&!((t=this.blocks)!=null&&t.length)&&((e=window.parent)==null||e.postMessage({type:"builder.hoverEmptyBlocks",data:{parentElementId:this.parent,dataPath:this.path}},"*"))},_classStringToObject(t){const e={};if(typeof t!="string")return e;const s=t.trim().split(/\s+/);for(const n of s)e[n]=!0;return e}}});var i=function(){var e=this,s=e._self._c;return e._self._setupProxy,s("div",e._b({class:e._classStringToObject(e.className+" div-tqyw9m0iue"),style:e.styleProp,attrs:{"builder-path":e.path,"builder-parent-id":e.parent},on:{click:function(n){return e.onClick()},mouseenter:function(n){return e.onMouseEnter()},keypress:function(n){return e.onClick()}}},"div",{},!1),[e._t("default")],2)},l=[],c=r.normalizeComponent(a,i,l,!1,null,"a3106f07",null,null);const p=c.exports;exports.default=p;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as p } from "vue";
|
|
2
|
-
import { g as s } from "./get-block-properties-
|
|
3
|
-
import { n as a } from "./index-
|
|
4
|
-
import "./css-
|
|
2
|
+
import { g as s } from "./get-block-properties-f1d87f5b.js";
|
|
3
|
+
import { n as a } from "./index-2c3e3aa0.js";
|
|
4
|
+
import "./css-41c2e31d.js";
|
|
5
5
|
const m = (t) => t, k = ({
|
|
6
6
|
componentOptions: t,
|
|
7
7
|
builderBlock: e,
|
|
@@ -27,17 +27,17 @@ const m = (t) => t, k = ({
|
|
|
27
27
|
context: i
|
|
28
28
|
})
|
|
29
29
|
} : {}
|
|
30
|
-
}, u = () => import("./block-styles-
|
|
30
|
+
}, u = () => import("./block-styles-b2bcecac.js").then((t) => t.default).catch((t) => {
|
|
31
31
|
throw console.error(
|
|
32
32
|
"Error while attempting to dynamically import component BlockStyles at ../block-styles.vue",
|
|
33
33
|
t
|
|
34
34
|
), t;
|
|
35
|
-
}), f = () => import("./block-
|
|
35
|
+
}), f = () => import("./block-d44d5b8a.js").then((t) => t.default).catch((t) => {
|
|
36
36
|
throw console.error(
|
|
37
37
|
"Error while attempting to dynamically import component Block at ../../block.vue",
|
|
38
38
|
t
|
|
39
39
|
), t;
|
|
40
|
-
}), c = () => import("./interactive-element-
|
|
40
|
+
}), c = () => import("./interactive-element-95e7ed70.js").then((t) => t.default).catch((t) => {
|
|
41
41
|
throw console.error(
|
|
42
42
|
"Error while attempting to dynamically import component InteractiveElement at ../interactive-element.vue",
|
|
43
43
|
t
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("vue"),p=require("./get-block-properties-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("vue"),p=require("./get-block-properties-a17c5ae7.cjs"),a=require("./index-0daf250a.cjs");require("./css-c292bae4.cjs");const m=t=>t,u=({componentOptions:t,builderBlock:e,context:n,componentRef:o,includeBlockProps:r,isInteractive:l,contextValue:i})=>l?{Wrapper:o,block:e,context:n,wrapperProps:t}:{...t,...r?{attributes:p.getBlockProperties({block:e,context:i})}:{}},d=()=>Promise.resolve().then(()=>require("./block-styles-fad43b2e.cjs")).then(t=>t.default).catch(t=>{throw console.error("Error while attempting to dynamically import component BlockStyles at ../block-styles.vue",t),t}),k=()=>Promise.resolve().then(()=>require("./block-b12c2a9e.cjs")).then(t=>t.default).catch(t=>{throw console.error("Error while attempting to dynamically import component Block at ../../block.vue",t),t}),c=()=>Promise.resolve().then(()=>require("./interactive-element-31618273.cjs")).then(t=>t.default).catch(t=>{throw console.error("Error while attempting to dynamically import component InteractiveElement at ../interactive-element.vue",t),t}),f=s.defineComponent({name:"component-ref",components:{block:k,"block-styles":d,"interactive-element":c},props:["isInteractive","componentRef","componentOptions","builderBlock","context","includeBlockProps","blockChildren","registeredComponents"],data(){return{Wrapper:this.isInteractive?m(c):this.componentRef,getWrapperProps:u}}});var v=function(){var e=this,n=e._self._c;return e._self._setupProxy,e.componentRef?n(e.Wrapper,e._b({tag:"component"},"component",e.getWrapperProps({componentOptions:e.componentOptions,builderBlock:e.builderBlock,context:e.context,componentRef:e.componentRef,includeBlockProps:e.includeBlockProps,isInteractive:e.isInteractive,contextValue:e.context}),!1),[e._l(e.blockChildren,function(o,r){return n("block",{key:"block-"+o.id,attrs:{block:o,context:e.context,registeredComponents:e.registeredComponents}})}),e._l(e.blockChildren,function(o,r){return n("block-styles",{key:"block-style-"+o.id,attrs:{block:o,context:e.context}})})],2):e._e()},b=[],_=a.normalizeComponent(f,v,b,!1,null,null,null,null);const h=_.exports;exports.default=h;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { BuilderContent } from "../../../types/builder-content.js";
|
|
2
2
|
declare const _default: import("vue").DefineComponent<string[], {}, {
|
|
3
|
-
canTrackToUse: any;
|
|
4
3
|
forceReRenderCount: number;
|
|
5
4
|
lastUpdated: number;
|
|
6
5
|
shouldSendResetCookie: boolean;
|
|
@@ -49,6 +48,8 @@ declare const _default: import("vue").DefineComponent<string[], {}, {
|
|
|
49
48
|
}): void;
|
|
50
49
|
runHttpRequests(): void;
|
|
51
50
|
emitStateUpdate(): void;
|
|
51
|
+
elementRef_onIniteditingbldr(event: any): void;
|
|
52
|
+
elementRef_onInitpreviewingbldr(event: any): void;
|
|
52
53
|
_classStringToObject(str: string): Record<string, boolean>;
|
|
53
54
|
}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<string[]>>, {
|
|
54
55
|
[x: number]: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.
|
|
1
|
+
export declare const SDK_VERSION = "0.7.1-0";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("vue"),i=require("./index-df9193d2.cjs"),g={name:"Core:Button",image:"https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",defaultStyles:{appearance:"none",paddingTop:"15px",paddingBottom:"15px",paddingLeft:"25px",paddingRight:"25px",backgroundColor:"#000000",color:"white",borderRadius:"4px",textAlign:"center",cursor:"pointer"},inputs:[{name:"text",type:"text",defaultValue:"Click me!",bubble:!0},{name:"link",type:"url",bubble:!0},{name:"openLinkInNewTab",type:"boolean",defaultValue:!1,friendlyName:"Open link in new tab"}],static:!0,noWrap:!0},b={name:"Columns",isRSC:!0,inputs:[{name:"columns",type:"array",broadcast:!0,subFields:[{name:"blocks",type:"array",hideFromUI:!0,defaultValue:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto",minHeight:"20px",minWidth:"20px",overflow:"hidden"}},component:{name:"Image",options:{image:"https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",backgroundPosition:"center",backgroundSize:"cover",aspectRatio:.7004048582995948}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto"}},component:{name:"Text",options:{text:"<p>Enter some text...</p>"}}}]},{name:"width",type:"number",hideFromUI:!0,helperText:"Width %, e.g. set to 50 to fill half of the space"},{name:"link",type:"url",helperText:"Optionally set a url that clicking this column will link to"}],defaultValue:[{blocks:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto",minHeight:"20px",minWidth:"20px",overflow:"hidden"}},component:{name:"Image",options:{image:"https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",backgroundPosition:"center",backgroundSize:"cover",aspectRatio:.7004048582995948}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto"}},component:{name:"Text",options:{text:"<p>Enter some text...</p>"}}}]},{blocks:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto",minHeight:"20px",minWidth:"20px",overflow:"hidden"}},component:{name:"Image",options:{image:"https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",backgroundPosition:"center",backgroundSize:"cover",aspectRatio:.7004048582995948}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto"}},component:{name:"Text",options:{text:"<p>Enter some text...</p>"}}}]}],onChange:e=>{function t(){n.forEach(a=>{a.delete("width")})}const n=e.get("columns");Array.isArray(n)&&n.find(r=>r.get("width"))&&(n.find(c=>!c.get("width"))||n.reduce((s,l)=>s+l.get("width"),0)!==100)&&t()}},{name:"space",type:"number",defaultValue:20,helperText:"Size of gap between columns",advanced:!0},{name:"stackColumnsAt",type:"string",defaultValue:"tablet",helperText:"Convert horizontal columns to vertical at what device size",enum:["tablet","mobile","never"],advanced:!0},{name:"reverseColumnsWhenStacked",type:"boolean",defaultValue:!1,helperText:"When stacking columns for mobile devices, reverse the ordering",advanced:!0}]},y={name:"Fragment",static:!0,hidden:!0,canHaveChildren:!0,noWrap:!0},x={name:"Image",static:!0,image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",defaultStyles:{position:"relative",minHeight:"20px",minWidth:"20px",overflow:"hidden"},canHaveChildren:!0,inputs:[{name:"image",type:"file",bubble:!0,allowedFileTypes:["jpeg","jpg","png","svg"],required:!0,defaultValue:"https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",onChange:e=>{e.delete("srcset"),e.delete("noWebp");function n(o,s=6e4){return new Promise((l,d)=>{const p=document.createElement("img");let m=!1;p.onload=()=>{m=!0,l(p)},p.addEventListener("error",h=>{console.warn("Image load failed",h.error),d(h.error)}),p.src=o,setTimeout(()=>{m||d(new Error("Image load timed out"))},s)})}function a(o){return Math.round(o*1e3)/1e3}const r=e.get("image"),c=e.get("aspectRatio");if(fetch(r).then(o=>o.blob()).then(o=>{o.type.includes("svg")&&e.set("noWebp",!0)}),r&&(!c||c===.7041))return n(r).then(o=>{const s=e.get("aspectRatio");e.get("image")===r&&(!s||s===.7041)&&o.width&&o.height&&(e.set("aspectRatio",a(o.height/o.width)),e.set("height",o.height),e.set("width",o.width))})}},{name:"backgroundSize",type:"text",defaultValue:"cover",enum:[{label:"contain",value:"contain",helperText:"The image should never get cropped"},{label:"cover",value:"cover",helperText:"The image should fill it's box, cropping when needed"}]},{name:"backgroundPosition",type:"text",defaultValue:"center",enum:["center","top","left","right","bottom","top left","top right","bottom left","bottom right"]},{name:"altText",type:"string",helperText:"Text to display when the user has images off"},{name:"height",type:"number",hideFromUI:!0},{name:"width",type:"number",hideFromUI:!0},{name:"sizes",type:"string",hideFromUI:!0},{name:"srcset",type:"string",hideFromUI:!0},{name:"lazy",type:"boolean",defaultValue:!0,hideFromUI:!0},{name:"fitContent",type:"boolean",helperText:"When child blocks are provided, fit to them instead of using the image's aspect ratio",defaultValue:!0},{name:"aspectRatio",type:"number",helperText:"This is the ratio of height/width, e.g. set to 1.5 for a 300px wide and 200px tall photo. Set to 0 to not force the image to maintain it's aspect ratio",advanced:!0,defaultValue:.7041}]},v={name:"Core:Section",static:!0,image:"https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",inputs:[{name:"maxWidth",type:"number",defaultValue:1200},{name:"lazyLoad",type:"boolean",defaultValue:!1,advanced:!0,description:"Only render this section when in view"}],defaultStyles:{paddingLeft:"20px",paddingRight:"20px",paddingTop:"50px",paddingBottom:"50px",marginTop:"0px",width:"100vw",marginLeft:"calc(50% - 50vw)"},canHaveChildren:!0,defaultChildren:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{textAlign:"center"}},component:{name:"Text",options:{text:"<p><b>I am a section! My content keeps from getting too wide, so that it's easy to read even on big screens.</b></p><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur</p>"}}}]},S={name:"Symbol",noWrap:!0,static:!0,isRSC:!0,inputs:[{name:"symbol",type:"uiSymbol"},{name:"dataOnly",helperText:"Make this a data symbol that doesn't display any UI",type:"boolean",defaultValue:!1,advanced:!0,hideFromUI:!0},{name:"inheritState",helperText:"Inherit the parent component state and data",type:"boolean",defaultValue:!1,advanced:!0},{name:"renderToLiquid",helperText:"Render this symbols contents to liquid. Turn off to fetch with javascript and use custom targeting",type:"boolean",defaultValue:!1,advanced:!0,hideFromUI:!0},{name:"useChildren",hideFromUI:!0,type:"boolean"}]},T={name:"Text",static:!0,isRSC:!0,image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-text_fields-24px%20(1).svg?alt=media&token=12177b73-0ee3-42ca-98c6-0dd003de1929",inputs:[{name:"text",type:"html",required:!0,autoFocus:!0,bubble:!0,defaultValue:"Enter some text..."}],defaultStyles:{lineHeight:"normal",height:"auto",textAlign:"center"}},_={name:"Video",canHaveChildren:!0,defaultStyles:{minHeight:"20px",minWidth:"20px"},image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-videocam-24px%20(1).svg?alt=media&token=49a84e4a-b20e-4977-a650-047f986874bb",inputs:[{name:"video",type:"file",allowedFileTypes:["mp4"],bubble:!0,defaultValue:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/assets%2FKQlEmWDxA0coC3PK6UvkrjwkIGI2%2F28cb070609f546cdbe5efa20e931aa4b?alt=media&token=912e9551-7a7c-4dfb-86b6-3da1537d1a7f",required:!0},{name:"posterImage",type:"file",allowedFileTypes:["jpeg","png"],helperText:"Image to show before the video plays"},{name:"autoPlay",type:"boolean",defaultValue:!0},{name:"controls",type:"boolean",defaultValue:!1},{name:"muted",type:"boolean",defaultValue:!0},{name:"loop",type:"boolean",defaultValue:!0},{name:"playsInline",type:"boolean",defaultValue:!0},{name:"fit",type:"text",defaultValue:"cover",enum:["contain","cover","fill","auto"]},{name:"preload",type:"text",defaultValue:"metadata",enum:["auto","metadata","none"]},{name:"fitContent",type:"boolean",helperText:"When child blocks are provided, fit to them instead of using the aspect ratio",defaultValue:!0,advanced:!0},{name:"position",type:"text",defaultValue:"center",enum:["center","top","left","right","bottom","top left","top right","bottom left","bottom right"]},{name:"height",type:"number",advanced:!0},{name:"width",type:"number",advanced:!0},{name:"aspectRatio",type:"number",advanced:!0,defaultValue:.7004048582995948},{name:"lazyLoad",type:"boolean",helperText:'Load this video "lazily" - as in only when a user scrolls near the video. Recommended for optmized performance and bandwidth consumption',defaultValue:!0,advanced:!0}]},C={name:"Embed",static:!0,inputs:[{name:"url",type:"url",required:!0,defaultValue:"",helperText:"e.g. enter a youtube url, google map, etc",onChange:e=>{const t=e.get("url");if(t)return e.set("content","Loading..."),fetch(`https://iframe.ly/api/iframely?url=${t}&api_key=ae0e60e78201a3f2b0de4b`).then(a=>a.json()).then(a=>{e.get("url")===t&&(a.html?e.set("content",a.html):e.set("content","Invalid url, please try another"))}).catch(a=>{e.set("content","There was an error embedding this URL, please try again or another URL")});e.delete("content")}},{name:"content",type:"html",defaultValue:'<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',hideFromUI:!0}]},I=["text/javascript","application/javascript","application/ecmascript"],w=e=>I.includes(e.type),k=u.defineComponent({name:"builder-embed",props:["content"],data(){return{scriptsInserted:[],scriptsRun:[],ranInitFn:!1}},watch:{onUpdateHook0:{handler(){this.$refs.elem&&!this.ranInitFn&&(this.ranInitFn=!0,this.findAndRunScripts())},immediate:!0}},computed:{onUpdateHook0(){return{0:this.$refs.elem,1:this.ranInitFn}}},methods:{findAndRunScripts(){if(!this.$refs.elem||!this.$refs.elem.getElementsByTagName)return;const e=this.$refs.elem.getElementsByTagName("script");for(let t=0;t<e.length;t++){const n=e[t];if(n.src&&!this.scriptsInserted.includes(n.src)){this.scriptsInserted.push(n.src);const a=document.createElement("script");a.async=!0,a.src=n.src,document.head.appendChild(a)}else if(w(n)&&!this.scriptsRun.includes(n.innerText))try{this.scriptsRun.push(n.innerText),new Function(n.innerText)()}catch(a){console.warn("`Embed`: Error running script:",a)}}}}});var R=function(){var t=this,n=t._self._c;return t._self._setupProxy,n("div",{ref:"elem",staticClass:"builder-embed",domProps:{innerHTML:t._s(t.content)}})},F=[],E=i.normalizeComponent(k,R,F,!1,null,null,null,null);const V=E.exports,A=u.defineComponent({name:"builder-img-component",props:["backgroundSize","backgroundPosition","imgSrc","altText","image","attributes"],data(){return{isEditing:i.isEditing,filterAttrs:i.filterAttrs}}});var P=function(){var t=this,n=t._self._c;return t._self._setupProxy,n("img",t._g(t._b({key:t.isEditing()&&t.imgSrc||"default-key",style:{objectFit:t.backgroundSize||"cover",objectPosition:t.backgroundPosition||"center"},attrs:{alt:t.altText,src:t.imgSrc||t.image}},"img",t.filterAttrs(t.attributes,"v-on:",!1),!1),t.filterAttrs(t.attributes,"v-on:",!0)))},W=[],$=i.normalizeComponent(A,P,W,!1,null,null,null,null);const U=$.exports,j={name:"Raw:Img",hideFromInsertMenu:!0,image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",inputs:[{name:"image",bubble:!0,type:"file",allowedFileTypes:["jpeg","jpg","png","svg","gif","webp"],required:!0}],noWrap:!0,static:!0},z=u.defineComponent({name:"builder-custom-code",props:["replaceNodes","code"],data(){return{scriptsInserted:[],scriptsRun:[]}},mounted(){this.findAndRunScripts()},methods:{findAndRunScripts(){if(this.$refs.elem&&this.$refs.elem.getElementsByTagName&&typeof window<"u"){const e=this.$refs.elem.getElementsByTagName("script");for(let t=0;t<e.length;t++){const n=e[t];if(n.src){if(this.scriptsInserted.includes(n.src))continue;this.scriptsInserted.push(n.src);const a=document.createElement("script");a.async=!0,a.src=n.src,document.head.appendChild(a)}else if(!n.type||["text/javascript","application/javascript","application/ecmascript"].includes(n.type)){if(this.scriptsRun.includes(n.innerText))continue;try{this.scriptsRun.push(n.innerText),new Function(n.innerText)()}catch(a){console.warn("`CustomCode`: Error running script:",a)}}}}},_classStringToObject(e){const t={};if(typeof e!="string")return t;const n=e.trim().split(/\s+/);for(const a of n)t[a]=!0;return t}}});var H=function(){var t=this,n=t._self._c;return t._self._setupProxy,n("div",{ref:"elem",class:t._classStringToObject("builder-custom-code"+(t.replaceNodes?" replace-nodes":"")),domProps:{innerHTML:t._s(t.code)}})},q=[],L=i.normalizeComponent(z,H,q,!1,null,null,null,null);const D=L.exports,N={name:"Custom Code",static:!0,requiredPermissions:["editCode"],inputs:[{name:"code",type:"html",required:!0,defaultValue:"<p>Hello there, I am custom HTML code!</p>",code:!0},{name:"replaceNodes",type:"boolean",helperText:"Preserve server rendered dom nodes",advanced:!0},{name:"scriptsClientOnly",type:"boolean",defaultValue:!1,helperText:"Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",advanced:!0}]},f=()=>[{component:i.Button,...g},{component:i.Columns,...b},{component:D,...N},{component:V,...C},{component:i.Fragment,...y},{component:i.Image,...x},{component:U,...j},{component:i.Section,...v},{component:i.Symbol,...S},{component:i.Text,...T},{component:i.Video,..._}],M=({content:e,data:t,locale:n})=>{var c,o,s;const a={};(o=(c=e==null?void 0:e.data)==null?void 0:c.inputs)==null||o.forEach(l=>{var d;l.name&&l.defaultValue!==void 0&&((d=e==null?void 0:e.data)!=null&&d.state)&&e.data.state[l.name]===void 0&&(a[l.name]=l.defaultValue)});const r={...(s=e==null?void 0:e.data)==null?void 0:s.state,...t,...n?{locale:n}:{}};return{...a,...r}},B=({content:e,data:t})=>e?{...e,data:{...e==null?void 0:e.data,...t},meta:e==null?void 0:e.meta}:void 0,K=()=>Promise.resolve().then(()=>require("./index-df9193d2.cjs")).then(e=>e.blocks).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component Blocks at ../blocks/blocks.vue",e),e}),O=()=>Promise.resolve().then(()=>require("./styles-36552ab4.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component ContentStyles at ./components/styles.vue",e),e}),G=()=>Promise.resolve().then(()=>require("./enable-editor-86cc8a4d.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component EnableEditor at ./components/enable-editor.vue",e),e}),J=()=>Promise.resolve().then(()=>require("./inlined-script-44721dc7.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component InlinedScript at ../inlined-script.vue",e),e}),Y=u.defineComponent({name:"content-component",components:{"enable-editor":G,"inlined-script":J,"content-styles":O,blocks:K},props:["content","customComponents","data","locale","context","apiKey","apiVersion","model","canTrack","includeRefs","enrich","classNameProp","showContent","isSsrAbTest"],data(){var e,t;return{scriptStr:i.getRenderContentScriptString({variationId:(e=this.content)==null?void 0:e.testVariationId,contentId:(t=this.content)==null?void 0:t.id}),registeredComponents:[...f(),...i.components,...this.customComponents||[]].reduce((n,{component:a,...r})=>({...n,[r.name]:{component:a,...i.serializeComponentInfo(r)}}),{}),builderContextSignal:{content:B({content:this.content,data:this.data}),localState:void 0,rootState:M({content:this.content,data:this.data,locale:this.locale}),rootSetState:this.contentSetState,context:this.context||{},apiKey:this.apiKey,apiVersion:this.apiVersion,componentInfos:[...f(),...i.components,...this.customComponents||[]].reduce((n,{component:a,...r})=>({...n,[r.name]:i.serializeComponentInfo(r)}),{}),inheritedStyles:{}},TARGET:i.TARGET}},provide(){const e=this;return{[i.ComponentsContext.key]:{registeredComponents:e.registeredComponents}}},methods:{contentSetState(e){this.builderContextSignal.rootState=e}}});var X=function(){var a,r,c,o,s,l,d;var t=this,n=t._self._c;return t._self._setupProxy,n("enable-editor",t._b({attrs:{content:t.content,model:t.model,context:t.context,apiKey:t.apiKey,canTrack:t.canTrack,locale:t.locale,includeRefs:t.includeRefs,enrich:t.enrich,classNameProp:t.classNameProp,showContent:t.showContent,builderContextSignal:t.builderContextSignal}},"enable-editor",{},!1),[t.isSsrAbTest?[n("inlined-script",{attrs:{scriptStr:t.scriptStr}})]:t._e(),t.TARGET!=="reactNative"?[n("content-styles",{attrs:{contentId:(a=t.builderContextSignal.content)==null?void 0:a.id,cssCode:(c=(r=t.builderContextSignal.content)==null?void 0:r.data)==null?void 0:c.cssCode,customFonts:(s=(o=t.builderContextSignal.content)==null?void 0:o.data)==null?void 0:s.customFonts}})]:t._e(),n("blocks",{attrs:{blocks:(d=(l=t.builderContextSignal.content)==null?void 0:l.data)==null?void 0:d.blocks,context:t.builderContextSignal,registeredComponents:t.registeredComponents}})],2)},Q=[],Z=i.normalizeComponent(Y,X,Q,!1,null,null,null,null);const ee=Z.exports;exports.default=ee;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("vue"),r=require("./index-0daf250a.cjs"),g={name:"Core:Button",image:"https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",defaultStyles:{appearance:"none",paddingTop:"15px",paddingBottom:"15px",paddingLeft:"25px",paddingRight:"25px",backgroundColor:"#000000",color:"white",borderRadius:"4px",textAlign:"center",cursor:"pointer"},inputs:[{name:"text",type:"text",defaultValue:"Click me!",bubble:!0},{name:"link",type:"url",bubble:!0},{name:"openLinkInNewTab",type:"boolean",defaultValue:!1,friendlyName:"Open link in new tab"}],static:!0,noWrap:!0},b={name:"Columns",isRSC:!0,inputs:[{name:"columns",type:"array",broadcast:!0,subFields:[{name:"blocks",type:"array",hideFromUI:!0,defaultValue:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto",minHeight:"20px",minWidth:"20px",overflow:"hidden"}},component:{name:"Image",options:{image:"https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",backgroundPosition:"center",backgroundSize:"cover",aspectRatio:.7004048582995948}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto"}},component:{name:"Text",options:{text:"<p>Enter some text...</p>"}}}]},{name:"width",type:"number",hideFromUI:!0,helperText:"Width %, e.g. set to 50 to fill half of the space"},{name:"link",type:"url",helperText:"Optionally set a url that clicking this column will link to"}],defaultValue:[{blocks:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto",minHeight:"20px",minWidth:"20px",overflow:"hidden"}},component:{name:"Image",options:{image:"https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",backgroundPosition:"center",backgroundSize:"cover",aspectRatio:.7004048582995948}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto"}},component:{name:"Text",options:{text:"<p>Enter some text...</p>"}}}]},{blocks:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto",minHeight:"20px",minWidth:"20px",overflow:"hidden"}},component:{name:"Image",options:{image:"https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",backgroundPosition:"center",backgroundSize:"cover",aspectRatio:.7004048582995948}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto"}},component:{name:"Text",options:{text:"<p>Enter some text...</p>"}}}]}],onChange:e=>{function t(){n.forEach(a=>{a.delete("width")})}const n=e.get("columns");Array.isArray(n)&&n.find(o=>o.get("width"))&&(n.find(c=>!c.get("width"))||n.reduce((s,l)=>s+l.get("width"),0)!==100)&&t()}},{name:"space",type:"number",defaultValue:20,helperText:"Size of gap between columns",advanced:!0},{name:"stackColumnsAt",type:"string",defaultValue:"tablet",helperText:"Convert horizontal columns to vertical at what device size",enum:["tablet","mobile","never"],advanced:!0},{name:"reverseColumnsWhenStacked",type:"boolean",defaultValue:!1,helperText:"When stacking columns for mobile devices, reverse the ordering",advanced:!0}]},y={name:"Fragment",static:!0,hidden:!0,canHaveChildren:!0,noWrap:!0},x={name:"Image",static:!0,image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",defaultStyles:{position:"relative",minHeight:"20px",minWidth:"20px",overflow:"hidden"},canHaveChildren:!0,inputs:[{name:"image",type:"file",bubble:!0,allowedFileTypes:["jpeg","jpg","png","svg"],required:!0,defaultValue:"https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",onChange:e=>{e.delete("srcset"),e.delete("noWebp");function n(i,s=6e4){return new Promise((l,d)=>{const p=document.createElement("img");let m=!1;p.onload=()=>{m=!0,l(p)},p.addEventListener("error",h=>{console.warn("Image load failed",h.error),d(h.error)}),p.src=i,setTimeout(()=>{m||d(new Error("Image load timed out"))},s)})}function a(i){return Math.round(i*1e3)/1e3}const o=e.get("image"),c=e.get("aspectRatio");if(fetch(o).then(i=>i.blob()).then(i=>{i.type.includes("svg")&&e.set("noWebp",!0)}),o&&(!c||c===.7041))return n(o).then(i=>{const s=e.get("aspectRatio");e.get("image")===o&&(!s||s===.7041)&&i.width&&i.height&&(e.set("aspectRatio",a(i.height/i.width)),e.set("height",i.height),e.set("width",i.width))})}},{name:"backgroundSize",type:"text",defaultValue:"cover",enum:[{label:"contain",value:"contain",helperText:"The image should never get cropped"},{label:"cover",value:"cover",helperText:"The image should fill it's box, cropping when needed"}]},{name:"backgroundPosition",type:"text",defaultValue:"center",enum:["center","top","left","right","bottom","top left","top right","bottom left","bottom right"]},{name:"altText",type:"string",helperText:"Text to display when the user has images off"},{name:"height",type:"number",hideFromUI:!0},{name:"width",type:"number",hideFromUI:!0},{name:"sizes",type:"string",hideFromUI:!0},{name:"srcset",type:"string",hideFromUI:!0},{name:"lazy",type:"boolean",defaultValue:!0,hideFromUI:!0},{name:"fitContent",type:"boolean",helperText:"When child blocks are provided, fit to them instead of using the image's aspect ratio",defaultValue:!0},{name:"aspectRatio",type:"number",helperText:"This is the ratio of height/width, e.g. set to 1.5 for a 300px wide and 200px tall photo. Set to 0 to not force the image to maintain it's aspect ratio",advanced:!0,defaultValue:.7041}]},v={name:"Core:Section",static:!0,image:"https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",inputs:[{name:"maxWidth",type:"number",defaultValue:1200},{name:"lazyLoad",type:"boolean",defaultValue:!1,advanced:!0,description:"Only render this section when in view"}],defaultStyles:{paddingLeft:"20px",paddingRight:"20px",paddingTop:"50px",paddingBottom:"50px",marginTop:"0px",width:"100vw",marginLeft:"calc(50% - 50vw)"},canHaveChildren:!0,defaultChildren:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{textAlign:"center"}},component:{name:"Text",options:{text:"<p><b>I am a section! My content keeps from getting too wide, so that it's easy to read even on big screens.</b></p><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur</p>"}}}]},T={name:"Symbol",noWrap:!0,static:!0,isRSC:!0,inputs:[{name:"symbol",type:"uiSymbol"},{name:"dataOnly",helperText:"Make this a data symbol that doesn't display any UI",type:"boolean",defaultValue:!1,advanced:!0,hideFromUI:!0},{name:"inheritState",helperText:"Inherit the parent component state and data",type:"boolean",defaultValue:!1,advanced:!0},{name:"renderToLiquid",helperText:"Render this symbols contents to liquid. Turn off to fetch with javascript and use custom targeting",type:"boolean",defaultValue:!1,advanced:!0,hideFromUI:!0},{name:"useChildren",hideFromUI:!0,type:"boolean"}]},S={name:"Text",static:!0,isRSC:!0,image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-text_fields-24px%20(1).svg?alt=media&token=12177b73-0ee3-42ca-98c6-0dd003de1929",inputs:[{name:"text",type:"html",required:!0,autoFocus:!0,bubble:!0,defaultValue:"Enter some text..."}],defaultStyles:{lineHeight:"normal",height:"auto",textAlign:"center"}},_={name:"Video",canHaveChildren:!0,defaultStyles:{minHeight:"20px",minWidth:"20px"},image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-videocam-24px%20(1).svg?alt=media&token=49a84e4a-b20e-4977-a650-047f986874bb",inputs:[{name:"video",type:"file",allowedFileTypes:["mp4"],bubble:!0,defaultValue:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/assets%2FKQlEmWDxA0coC3PK6UvkrjwkIGI2%2F28cb070609f546cdbe5efa20e931aa4b?alt=media&token=912e9551-7a7c-4dfb-86b6-3da1537d1a7f",required:!0},{name:"posterImage",type:"file",allowedFileTypes:["jpeg","png"],helperText:"Image to show before the video plays"},{name:"autoPlay",type:"boolean",defaultValue:!0},{name:"controls",type:"boolean",defaultValue:!1},{name:"muted",type:"boolean",defaultValue:!0},{name:"loop",type:"boolean",defaultValue:!0},{name:"playsInline",type:"boolean",defaultValue:!0},{name:"fit",type:"text",defaultValue:"cover",enum:["contain","cover","fill","auto"]},{name:"preload",type:"text",defaultValue:"metadata",enum:["auto","metadata","none"]},{name:"fitContent",type:"boolean",helperText:"When child blocks are provided, fit to them instead of using the aspect ratio",defaultValue:!0,advanced:!0},{name:"position",type:"text",defaultValue:"center",enum:["center","top","left","right","bottom","top left","top right","bottom left","bottom right"]},{name:"height",type:"number",advanced:!0},{name:"width",type:"number",advanced:!0},{name:"aspectRatio",type:"number",advanced:!0,defaultValue:.7004048582995948},{name:"lazyLoad",type:"boolean",helperText:'Load this video "lazily" - as in only when a user scrolls near the video. Recommended for optmized performance and bandwidth consumption',defaultValue:!0,advanced:!0}]},C={name:"Embed",static:!0,inputs:[{name:"url",type:"url",required:!0,defaultValue:"",helperText:"e.g. enter a youtube url, google map, etc",onChange:e=>{const t=e.get("url");if(t)return e.set("content","Loading..."),fetch(`https://iframe.ly/api/iframely?url=${t}&api_key=ae0e60e78201a3f2b0de4b`).then(a=>a.json()).then(a=>{e.get("url")===t&&(a.html?e.set("content",a.html):e.set("content","Invalid url, please try another"))}).catch(a=>{e.set("content","There was an error embedding this URL, please try again or another URL")});e.delete("content")}},{name:"content",type:"html",defaultValue:'<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',hideFromUI:!0}]},I=["text/javascript","application/javascript","application/ecmascript"],w=e=>I.includes(e.type),k=u.defineComponent({name:"builder-embed",props:["content"],data(){return{scriptsInserted:[],scriptsRun:[],ranInitFn:!1}},watch:{onUpdateHook0:{handler(){this.$refs.elem&&!this.ranInitFn&&(this.ranInitFn=!0,this.findAndRunScripts())},immediate:!0}},computed:{onUpdateHook0(){return{0:this.$refs.elem,1:this.ranInitFn}}},methods:{findAndRunScripts(){if(!this.$refs.elem||!this.$refs.elem.getElementsByTagName)return;const e=this.$refs.elem.getElementsByTagName("script");for(let t=0;t<e.length;t++){const n=e[t];if(n.src&&!this.scriptsInserted.includes(n.src)){this.scriptsInserted.push(n.src);const a=document.createElement("script");a.async=!0,a.src=n.src,document.head.appendChild(a)}else if(w(n)&&!this.scriptsRun.includes(n.innerText))try{this.scriptsRun.push(n.innerText),new Function(n.innerText)()}catch(a){console.warn("`Embed`: Error running script:",a)}}}}});var R=function(){var t=this,n=t._self._c;return t._self._setupProxy,n("div",{ref:"elem",staticClass:"builder-embed",domProps:{innerHTML:t._s(t.content)}})},F=[],E=r.normalizeComponent(k,R,F,!1,null,null,null,null);const V=E.exports,A=u.defineComponent({name:"builder-img-component",props:["backgroundSize","backgroundPosition","imgSrc","altText","image","attributes"],data(){return{isEditing:r.isEditing,filterAttrs:r.filterAttrs}}});var P=function(){var t=this,n=t._self._c;return t._self._setupProxy,n("img",t._g(t._b({key:t.isEditing()&&t.imgSrc||"default-key",style:{objectFit:t.backgroundSize||"cover",objectPosition:t.backgroundPosition||"center"},attrs:{alt:t.altText,src:t.imgSrc||t.image}},"img",t.filterAttrs(t.attributes,"v-on:",!1),!1),t.filterAttrs(t.attributes,"v-on:",!0)))},W=[],$=r.normalizeComponent(A,P,W,!1,null,null,null,null);const U=$.exports,j={name:"Raw:Img",hideFromInsertMenu:!0,image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",inputs:[{name:"image",bubble:!0,type:"file",allowedFileTypes:["jpeg","jpg","png","svg","gif","webp"],required:!0}],noWrap:!0,static:!0},z=u.defineComponent({name:"builder-custom-code",props:["replaceNodes","code"],data(){return{scriptsInserted:[],scriptsRun:[]}},mounted(){var t;if(!((t=this.$refs.elementRef)!=null&&t.getElementsByTagName)||typeof window>"u")return;const e=this.$refs.elementRef.getElementsByTagName("script");for(let n=0;n<e.length;n++){const a=e[n];if(a.src){if(this.scriptsInserted.includes(a.src))continue;this.scriptsInserted.push(a.src);const o=document.createElement("script");o.async=!0,o.src=a.src,document.head.appendChild(o)}else if(!a.type||["text/javascript","application/javascript","application/ecmascript"].includes(a.type)){if(this.scriptsRun.includes(a.innerText))continue;try{this.scriptsRun.push(a.innerText),new Function(a.innerText)()}catch(o){console.warn("`CustomCode`: Error running script:",o)}}}},methods:{_classStringToObject(e){const t={};if(typeof e!="string")return t;const n=e.trim().split(/\s+/);for(const a of n)t[a]=!0;return t}}});var H=function(){var t=this,n=t._self._c;return t._self._setupProxy,n("div",{ref:"elementRef",class:t._classStringToObject("builder-custom-code"+(t.replaceNodes?" replace-nodes":"")),domProps:{innerHTML:t._s(t.code)}})},q=[],L=r.normalizeComponent(z,H,q,!1,null,null,null,null);const D=L.exports,N={name:"Custom Code",static:!0,requiredPermissions:["editCode"],inputs:[{name:"code",type:"html",required:!0,defaultValue:"<p>Hello there, I am custom HTML code!</p>",code:!0},{name:"replaceNodes",type:"boolean",helperText:"Preserve server rendered dom nodes",advanced:!0},{name:"scriptsClientOnly",type:"boolean",defaultValue:!1,helperText:"Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",advanced:!0}]},f=()=>[{component:r.Button,...g},{component:r.Columns,...b},{component:D,...N},{component:V,...C},{component:r.Fragment,...y},{component:r.Image,...x},{component:U,...j},{component:r.Section,...v},{component:r.Symbol,...T},{component:r.Text,...S},{component:r.Video,..._}],M=({content:e,data:t,locale:n})=>{var c,i,s;const a={};(i=(c=e==null?void 0:e.data)==null?void 0:c.inputs)==null||i.forEach(l=>{var d;l.name&&l.defaultValue!==void 0&&((d=e==null?void 0:e.data)!=null&&d.state)&&e.data.state[l.name]===void 0&&(a[l.name]=l.defaultValue)});const o={...(s=e==null?void 0:e.data)==null?void 0:s.state,...t,...n?{locale:n}:{}};return{...a,...o}},B=({content:e,data:t})=>e?{...e,data:{...e==null?void 0:e.data,...t},meta:e==null?void 0:e.meta}:void 0,K=()=>Promise.resolve().then(()=>require("./index-0daf250a.cjs")).then(e=>e.blocks).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component Blocks at ../blocks/blocks.vue",e),e}),O=()=>Promise.resolve().then(()=>require("./styles-eb6d5133.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component ContentStyles at ./components/styles.vue",e),e}),G=()=>Promise.resolve().then(()=>require("./enable-editor-bf828ceb.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component EnableEditor at ./components/enable-editor.vue",e),e}),J=()=>Promise.resolve().then(()=>require("./inlined-script-17a3e298.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component InlinedScript at ../inlined-script.vue",e),e}),Y=u.defineComponent({name:"content-component",components:{"enable-editor":G,"inlined-script":J,"content-styles":O,blocks:K},props:["content","customComponents","data","locale","context","apiKey","apiVersion","model","canTrack","includeRefs","enrich","classNameProp","showContent","isSsrAbTest"],data(){var e,t;return{scriptStr:r.getRenderContentScriptString({variationId:(e=this.content)==null?void 0:e.testVariationId,contentId:(t=this.content)==null?void 0:t.id}),registeredComponents:[...f(),...r.components,...this.customComponents||[]].reduce((n,{component:a,...o})=>({...n,[o.name]:{component:a,...r.serializeComponentInfo(o)}}),{}),builderContextSignal:{content:B({content:this.content,data:this.data}),localState:void 0,rootState:M({content:this.content,data:this.data,locale:this.locale}),rootSetState:this.contentSetState,context:this.context||{},apiKey:this.apiKey,apiVersion:this.apiVersion,componentInfos:[...f(),...r.components,...this.customComponents||[]].reduce((n,{component:a,...o})=>({...n,[o.name]:r.serializeComponentInfo(o)}),{}),inheritedStyles:{}},TARGET:r.TARGET}},provide(){const e=this;return{[r.ComponentsContext.key]:{registeredComponents:e.registeredComponents}}},methods:{contentSetState(e){this.builderContextSignal.rootState=e}}});var X=function(){var a,o,c,i,s,l,d;var t=this,n=t._self._c;return t._self._setupProxy,n("enable-editor",t._b({attrs:{content:t.content,model:t.model,context:t.context,apiKey:t.apiKey,canTrack:t.canTrack,locale:t.locale,includeRefs:t.includeRefs,enrich:t.enrich,classNameProp:t.classNameProp,showContent:t.showContent,builderContextSignal:t.builderContextSignal}},"enable-editor",{},!1),[t.isSsrAbTest?[n("inlined-script",{attrs:{scriptStr:t.scriptStr}})]:t._e(),t.TARGET!=="reactNative"?[n("content-styles",{attrs:{contentId:(a=t.builderContextSignal.content)==null?void 0:a.id,cssCode:(c=(o=t.builderContextSignal.content)==null?void 0:o.data)==null?void 0:c.cssCode,customFonts:(s=(i=t.builderContextSignal.content)==null?void 0:i.data)==null?void 0:s.customFonts}})]:t._e(),n("blocks",{attrs:{blocks:(d=(l=t.builderContextSignal.content)==null?void 0:l.data)==null?void 0:d.blocks,context:t.builderContextSignal,registeredComponents:t.registeredComponents}})],2)},Q=[],Z=r.normalizeComponent(Y,X,Q,!1,null,null,null,null);const ee=Z.exports;exports.default=ee;
|