@builder.io/sdk-vue 0.7.0 → 0.7.1-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +6 -2
- package/vue2/lib/browser/{block-134a618c.cjs → block-2cb52597.cjs} +2 -2
- package/vue2/lib/{node/block-169c0cf4.js → browser/block-dc97e982.js} +7 -7
- package/vue2/lib/{edge/block-styles-57f025e0.cjs → browser/block-styles-8f571c43.cjs} +1 -1
- package/vue2/lib/{node/block-styles-d8839dd9.js → browser/block-styles-bc460f14.js} +5 -5
- package/vue2/lib/browser/{block-wrapper-54cd4f6c.cjs → block-wrapper-2d901f3f.cjs} +1 -1
- package/vue2/lib/browser/{block-wrapper-ad23d63e.js → block-wrapper-b1a6d78a.js} +5 -5
- 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-be28f72a.cjs → browser/blocks-wrapper-9e8dd7a2.cjs} +1 -1
- package/vue2/lib/{edge/blocks-wrapper-671e376d.js → browser/blocks-wrapper-fcb480f0.js} +1 -1
- package/vue2/lib/{edge/component-ref-65be9ea0.js → browser/component-ref-68e3a5b6.js} +6 -6
- package/vue2/lib/{edge/component-ref-276a92fb.cjs → browser/component-ref-bc236051.cjs} +1 -1
- package/vue2/lib/browser/components/content/components/enable-editor.vue.d.ts +2 -0
- package/vue2/lib/browser/constants/sdk-version.d.ts +1 -1
- package/vue2/lib/browser/{content-91d3070e.cjs → content-1a8d2e10.cjs} +1 -1
- package/vue2/lib/{edge/content-962ba49d.js → browser/content-76b432c4.js} +62 -64
- package/vue2/lib/browser/{css-2c9ad067.cjs → css-32f0c7fe.cjs} +1 -1
- package/vue2/lib/browser/{css-ccd5d9e3.js → css-d68fe0e5.js} +1 -1
- package/vue2/lib/browser/{enable-editor-d9f53d7d.js → enable-editor-29804f7c.js} +107 -92
- package/vue2/lib/browser/enable-editor-58cd5d33.cjs +1 -0
- package/vue2/lib/browser/evaluate-5f291a57.cjs +1 -0
- package/vue2/lib/browser/evaluate-c21703b5.js +86 -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/{node/get-block-actions-e6c36554.js → browser/get-block-actions-47eb8bee.js} +2 -2
- package/vue2/lib/browser/{get-block-actions-7a5e8d90.cjs → get-block-actions-4f4fdc14.cjs} +1 -1
- package/vue2/lib/browser/{get-block-properties-fded8311.js → get-block-properties-14335b2d.js} +2 -2
- package/vue2/lib/{node/get-block-properties-088a8d57.cjs → browser/get-block-properties-4c2072d0.cjs} +1 -1
- package/vue2/lib/browser/{get-processed-block-cb418829.cjs → get-processed-block-7dbd0508.cjs} +1 -1
- package/vue2/lib/browser/{get-processed-block-28afdbdd.js → get-processed-block-9c43bb30.js} +2 -2
- package/vue2/lib/browser/index-7528c088.cjs +32 -0
- package/vue2/lib/{node/index-8b428b10.js → browser/index-bb14138e.js} +382 -367
- package/vue2/lib/browser/index.cjs +1 -1
- package/vue2/lib/browser/index.js +4 -4
- package/vue2/lib/{edge/inlined-script-45e42092.js → browser/inlined-script-431b5967.js} +1 -1
- package/vue2/lib/browser/{inlined-script-36c7686b.cjs → inlined-script-cc25d25c.cjs} +1 -1
- package/vue2/lib/{node/inlined-styles-48c2284e.js → browser/inlined-styles-1717d4f0.js} +1 -1
- package/vue2/lib/{node/inlined-styles-f49a7f1a.cjs → browser/inlined-styles-da08b05d.cjs} +1 -1
- package/vue2/lib/{node/interactive-element-2463f839.cjs → browser/interactive-element-03353733.cjs} +1 -1
- package/vue2/lib/{node/interactive-element-b479db6b.js → browser/interactive-element-ac3e10b7.js} +5 -5
- package/vue2/lib/{node/repeated-block-284f31d8.js → browser/repeated-block-51e74834.js} +2 -2
- package/vue2/lib/browser/{repeated-block-d5a07fb8.cjs → repeated-block-ba80a339.cjs} +1 -1
- package/vue2/lib/browser/style.css +1 -1
- package/vue2/lib/{node/styles-4803ecb4.js → browser/styles-5eb21cb8.js} +2 -2
- package/vue2/lib/{node/styles-f19bff73.cjs → browser/styles-931da5e8.cjs} +2 -2
- package/vue2/lib/{browser/block-169c0cf4.js → edge/block-2c7301d0.js} +7 -7
- package/vue2/lib/{node/block-134a618c.cjs → edge/block-40b0f7b5.cjs} +2 -2
- package/vue2/lib/{node/block-styles-dd554acd.cjs → edge/block-styles-ba691a55.cjs} +1 -1
- package/vue2/lib/edge/{block-styles-9d313184.js → block-styles-bd09453c.js} +5 -5
- package/vue2/lib/{node/block-wrapper-ad23d63e.js → edge/block-wrapper-4210f268.js} +5 -5
- package/vue2/lib/edge/{block-wrapper-252f3467.cjs → block-wrapper-8e1bd00b.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-051a6973.cjs → edge/blocks-wrapper-7e831b51.cjs} +1 -1
- package/vue2/lib/{browser/blocks-wrapper-ba3f831e.js → edge/blocks-wrapper-9c7effa2.js} +1 -1
- package/vue2/lib/{node/component-ref-73bbe275.cjs → edge/component-ref-02d30d18.cjs} +1 -1
- package/vue2/lib/{node/component-ref-7c67cc85.js → edge/component-ref-0404fc38.js} +6 -6
- package/vue2/lib/edge/components/content/components/enable-editor.vue.d.ts +2 -0
- package/vue2/lib/edge/constants/sdk-version.d.ts +1 -1
- package/vue2/lib/{browser/content-c3064d9d.js → edge/content-173f7be0.js} +62 -64
- package/vue2/lib/{node/content-91d3070e.cjs → edge/content-36b34b86.cjs} +1 -1
- package/vue2/lib/{node/css-2c9ad067.cjs → edge/css-00393f8a.cjs} +1 -1
- package/vue2/lib/edge/{css-9d2e1bcb.js → css-081095c1.js} +1 -1
- package/vue2/lib/edge/enable-editor-c36df3b5.cjs +1 -0
- package/vue2/lib/{node/enable-editor-d9f53d7d.js → edge/enable-editor-d3f018c6.js} +107 -92
- package/vue2/lib/edge/evaluate-47aeba42.cjs +21 -0
- package/vue2/lib/edge/{evaluate-becf2384.js → evaluate-d31c253f.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/{browser/get-block-actions-e6c36554.js → edge/get-block-actions-33002e58.js} +2 -2
- package/vue2/lib/edge/{get-block-actions-0ed7b9a3.cjs → get-block-actions-fc18e691.cjs} +1 -1
- package/vue2/lib/{browser/get-block-properties-088a8d57.cjs → edge/get-block-properties-c1a43e4b.cjs} +1 -1
- package/vue2/lib/edge/{get-block-properties-c460b7ad.js → get-block-properties-d0176121.js} +2 -2
- package/vue2/lib/edge/{get-processed-block-23aa8a9f.js → get-processed-block-1280c9d5.js} +2 -2
- package/vue2/lib/edge/{get-processed-block-fe5c136a.cjs → get-processed-block-2d9f33f5.cjs} +1 -1
- package/vue2/lib/edge/{index-8d71df29.js → index-6e4d121e.js} +382 -367
- package/vue2/lib/edge/index-ca5baf07.cjs +32 -0
- package/vue2/lib/edge/index.cjs +1 -1
- package/vue2/lib/edge/index.js +4 -4
- package/vue2/lib/{node/inlined-script-de7385eb.js → edge/inlined-script-7a7207fd.js} +1 -1
- package/vue2/lib/{node/inlined-script-36c7686b.cjs → edge/inlined-script-e57329a5.cjs} +1 -1
- package/vue2/lib/{browser/inlined-styles-f49a7f1a.cjs → edge/inlined-styles-9a96b77e.cjs} +1 -1
- package/vue2/lib/edge/{inlined-styles-411ade32.js → inlined-styles-f109793f.js} +1 -1
- package/vue2/lib/{browser/interactive-element-b479db6b.js → edge/interactive-element-6a866621.js} +5 -5
- package/vue2/lib/{browser/interactive-element-2463f839.cjs → edge/interactive-element-9c12c501.cjs} +1 -1
- package/vue2/lib/edge/{repeated-block-8eefee0f.cjs → repeated-block-1093b757.cjs} +1 -1
- package/vue2/lib/{browser/repeated-block-284f31d8.js → edge/repeated-block-f7b967cf.js} +2 -2
- package/vue2/lib/edge/style.css +1 -1
- package/vue2/lib/{browser/styles-f19bff73.cjs → edge/styles-a211b4e1.cjs} +2 -2
- package/vue2/lib/{browser/styles-4803ecb4.js → edge/styles-aa2c087b.js} +2 -2
- package/vue2/lib/{edge/block-04a014ef.js → node/block-979d66e1.js} +7 -7
- package/vue2/lib/{edge/block-7f6b0f80.cjs → node/block-d7e689a7.cjs} +2 -2
- package/vue2/lib/{browser/block-styles-dd554acd.cjs → node/block-styles-00a3a4d7.cjs} +1 -1
- package/vue2/lib/{browser/block-styles-d8839dd9.js → node/block-styles-50528f05.js} +5 -5
- package/vue2/lib/{edge/block-wrapper-e16ccd29.js → node/block-wrapper-8bd5d40b.js} +5 -5
- package/vue2/lib/node/{block-wrapper-54cd4f6c.cjs → block-wrapper-d7b449f1.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-ba3f831e.js → blocks-wrapper-50937fc2.js} +1 -1
- package/vue2/lib/node/{blocks-wrapper-051a6973.cjs → blocks-wrapper-d425bec5.cjs} +1 -1
- package/vue2/lib/{browser/component-ref-7c67cc85.js → node/component-ref-123ffd3c.js} +6 -6
- package/vue2/lib/{browser/component-ref-73bbe275.cjs → node/component-ref-3ba26510.cjs} +1 -1
- package/vue2/lib/node/components/content/components/enable-editor.vue.d.ts +2 -0
- package/vue2/lib/node/constants/sdk-version.d.ts +1 -1
- package/vue2/lib/node/{content-c3064d9d.js → content-d31377e7.js} +62 -64
- package/vue2/lib/{edge/content-6d81d16f.cjs → node/content-d8e76f5c.cjs} +1 -1
- package/vue2/lib/node/{css-ccd5d9e3.js → css-469bd1df.js} +1 -1
- package/vue2/lib/{edge/css-88f2410f.cjs → node/css-c566c7a4.cjs} +1 -1
- package/vue2/lib/node/enable-editor-8c4e460a.cjs +1 -0
- package/vue2/lib/{edge/enable-editor-b6040943.js → node/enable-editor-96dbd852.js} +107 -92
- package/vue2/lib/node/evaluate-45bac138.cjs +41 -0
- package/vue2/lib/node/evaluate-946bbbf4.js +187 -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/{edge/get-block-actions-046a80d0.js → node/get-block-actions-a7c25deb.js} +2 -2
- package/vue2/lib/node/{get-block-actions-7a5e8d90.cjs → get-block-actions-fa0f60c5.cjs} +1 -1
- package/vue2/lib/node/{get-block-properties-fded8311.js → get-block-properties-5524be2a.js} +2 -2
- package/vue2/lib/{edge/get-block-properties-a9ab7e30.cjs → node/get-block-properties-75f3f91a.cjs} +1 -1
- package/vue2/lib/node/get-processed-block-231c050b.js +52 -0
- package/vue2/lib/node/get-processed-block-e246d1ed.cjs +1 -0
- package/vue2/lib/{browser/index-8b428b10.js → node/index-7ce12494.js} +382 -367
- package/vue2/lib/node/index-ea4df31a.cjs +32 -0
- package/vue2/lib/node/index.cjs +1 -1
- package/vue2/lib/node/index.js +4 -4
- package/vue2/lib/{browser/inlined-script-de7385eb.js → node/inlined-script-073d04d2.js} +1 -1
- package/vue2/lib/{edge/inlined-script-f370acdf.cjs → node/inlined-script-dccfb7fc.cjs} +1 -1
- package/vue2/lib/{edge/inlined-styles-375c218f.cjs → node/inlined-styles-08dbb945.cjs} +1 -1
- package/vue2/lib/{browser/inlined-styles-48c2284e.js → node/inlined-styles-8982c8a6.js} +1 -1
- package/vue2/lib/{edge/interactive-element-0e97e5ad.js → node/interactive-element-caabd2d9.js} +5 -5
- package/vue2/lib/{edge/interactive-element-92851fbe.cjs → node/interactive-element-fc5a4f1d.cjs} +1 -1
- package/vue2/lib/{edge/repeated-block-c41268e9.js → node/repeated-block-0ab8e6be.js} +2 -2
- package/vue2/lib/node/{repeated-block-d5a07fb8.cjs → repeated-block-f65d29a5.cjs} +1 -1
- package/vue2/lib/node/style.css +1 -1
- package/vue2/lib/{edge/styles-633d9689.js → node/styles-6e09a0cc.js} +2 -2
- package/vue2/lib/{edge/styles-f2039a70.cjs → node/styles-96606872.cjs} +2 -2
- package/vue2/package.json +3 -0
- package/vue3/lib/{node/block-wrapper.b3297452.js → browser/block-wrapper.09b54dd3.js} +8 -8
- package/vue3/lib/browser/{block-wrapper.c00ddfcb.cjs → block-wrapper.49af98a6.cjs} +1 -1
- 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.f5eef526.js → browser/component-ref.63194b25.js} +17 -17
- package/vue3/lib/browser/component-ref.78f795cd.cjs +1 -0
- package/vue3/lib/browser/components/content/components/enable-editor.vue.d.ts +8 -6
- 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.c5c7e487.cjs → browser/get-block-actions.2e99e179.cjs} +1 -1
- package/vue3/lib/{edge/get-block-actions.f1dcfc47.js → browser/get-block-actions.4f330889.js} +1 -1
- package/vue3/lib/{node/index.c51504ff.js → browser/index.88b433c6.js} +826 -795
- package/vue3/lib/browser/index.c04232f6.cjs +69 -0
- package/vue3/lib/browser/index.cjs +1 -1
- package/vue3/lib/browser/index.js +1 -1
- package/vue3/lib/{edge/repeated-block.e2eb73cd.js → browser/repeated-block.067ee555.js} +6 -6
- package/vue3/lib/browser/{repeated-block.2245fce7.cjs → repeated-block.ef8176d8.cjs} +1 -1
- package/vue3/lib/edge/{block-wrapper.6e434dc7.cjs → block-wrapper.2d4ec833.cjs} +1 -1
- package/vue3/lib/{browser/block-wrapper.b3297452.js → edge/block-wrapper.4b2f2fb3.js} +8 -8
- 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.88102d68.js → edge/component-ref.98beaea3.js} +17 -17
- package/vue3/lib/edge/component-ref.d8514fb0.cjs +1 -0
- package/vue3/lib/edge/components/content/components/enable-editor.vue.d.ts +8 -6
- 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/{node/get-block-actions.703f8554.cjs → edge/get-block-actions.407fbfa9.cjs} +1 -1
- package/vue3/lib/{browser/get-block-actions.1865148e.js → edge/get-block-actions.b460cca3.js} +1 -1
- package/vue3/lib/edge/index.8bdc4716.cjs +89 -0
- package/vue3/lib/edge/{index.f80ab661.js → index.a8ffb479.js} +1352 -1293
- package/vue3/lib/edge/index.cjs +1 -1
- package/vue3/lib/edge/index.js +1 -1
- package/vue3/lib/{browser/repeated-block.f6fdedb6.js → edge/repeated-block.cc9bbed2.js} +6 -6
- package/vue3/lib/edge/{repeated-block.8292d33a.cjs → repeated-block.f5d444e9.cjs} +1 -1
- package/vue3/lib/node/block-wrapper.25e28ca3.cjs +1 -0
- package/vue3/lib/{edge/block-wrapper.dad1bb39.js → node/block-wrapper.56bce6c4.js} +7 -6
- 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/node/component-ref.c35ae123.cjs +1 -0
- package/vue3/lib/{browser/component-ref.88102d68.js → node/component-ref.cd59ca4d.js} +18 -17
- package/vue3/lib/node/components/content/components/enable-editor.vue.d.ts +8 -6
- 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/{browser/get-block-actions.703f8554.cjs → node/get-block-actions.0d715e21.cjs} +1 -1
- package/vue3/lib/node/{get-block-actions.1865148e.js → get-block-actions.3df391e9.js} +1 -1
- package/vue3/lib/{browser/index.c51504ff.js → node/index.88589866.js} +977 -852
- package/vue3/lib/node/index.b2d2bb5e.cjs +109 -0
- package/vue3/lib/node/index.cjs +1 -1
- package/vue3/lib/node/index.js +27 -26
- package/vue3/lib/node/{repeated-block.f6fdedb6.js → repeated-block.57ca2ba1.js} +7 -6
- package/vue3/lib/node/repeated-block.78ed5bbb.cjs +1 -0
- package/vue3/package.json +3 -0
- package/vue2/lib/browser/enable-editor-f87e3e48.cjs +0 -1
- package/vue2/lib/browser/evaluate-043734e5.cjs +0 -1
- package/vue2/lib/browser/evaluate-b309ef11.js +0 -81
- package/vue2/lib/browser/index-7b952a40.cjs +0 -32
- package/vue2/lib/edge/enable-editor-617a4b09.cjs +0 -1
- package/vue2/lib/edge/evaluate-e31fc7a4.cjs +0 -21
- package/vue2/lib/edge/index-cb2684cd.cjs +0 -32
- package/vue2/lib/node/enable-editor-f87e3e48.cjs +0 -1
- package/vue2/lib/node/evaluate-043734e5.cjs +0 -1
- package/vue2/lib/node/evaluate-b309ef11.js +0 -81
- package/vue2/lib/node/get-processed-block-28afdbdd.js +0 -58
- package/vue2/lib/node/get-processed-block-cb418829.cjs +0 -1
- package/vue2/lib/node/index-7b952a40.cjs +0 -32
- package/vue3/lib/browser/component-ref.5446db23.cjs +0 -1
- package/vue3/lib/browser/index.403011b1.cjs +0 -69
- package/vue3/lib/edge/component-ref.94b009f1.cjs +0 -1
- package/vue3/lib/edge/index.61c09215.cjs +0 -89
- package/vue3/lib/node/block-wrapper.c00ddfcb.cjs +0 -1
- package/vue3/lib/node/component-ref.5446db23.cjs +0 -1
- package/vue3/lib/node/index.403011b1.cjs +0 -69
- package/vue3/lib/node/repeated-block.2245fce7.cjs +0 -1
package/vue3/lib/edge/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.8bdc4716.cjs");require("vue");exports.Blocks=e.Blocks;exports.Button=e.Button;exports.Columns=e.Columns;exports.Content=e.Content;exports.Fragment=e.Fragment;exports.Image=e.Image;exports.RenderBlocks=e.RenderBlocks;exports.RenderContent=e.RenderContent;exports.Section=e.Section;exports.Symbol=e.Symbol;exports.Text=e.Text;exports.Video=e.Video;exports._processContentResult=e._processContentResult;exports.createRegisterComponentMessage=e.createRegisterComponentMessage;exports.fetchBuilderProps=e.fetchBuilderProps;exports.fetchEntries=e.fetchEntries;exports.fetchOneEntry=e.fetchOneEntry;exports.getAllContent=e.getAllContent;exports.getBuilderSearchParams=e.getBuilderSearchParams;exports.getContent=e.getContent;exports.isEditing=e.isEditing;exports.isPreviewing=e.isPreviewing;exports.register=e.register;exports.setEditorSettings=e.setEditorSettings;exports.track=e.track;
|
package/vue3/lib/edge/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as a, g as n, h as r, C as o, F as i, I as g, R as c, f as l, S as m, i as d, j as C, V as p, t as u, m as f, x as h, n as B, o as R, p as S, u as k, q as E, k as x, l as P, r as v, s as y, v as F } from "./index.
|
|
1
|
+
import { d as a, g as n, h as r, C as o, F as i, I as g, R as c, f as l, S as m, i as d, j as C, V as p, t as u, m as f, x as h, n as B, o as R, p as S, u as k, q as E, k as x, l as P, r as v, s as y, v as F } from "./index.a8ffb479.js";
|
|
2
2
|
import "vue";
|
|
3
3
|
export {
|
|
4
4
|
a as Blocks,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as t, defineAsyncComponent as n, resolveComponent as r, openBlock as
|
|
2
|
-
import { B as p, _ as l } from "./index.
|
|
3
|
-
const a = () => import("./index.
|
|
1
|
+
import { defineComponent as t, defineAsyncComponent as n, resolveComponent as r, openBlock as s, createBlock as c } from "vue";
|
|
2
|
+
import { B as p, _ as l } from "./index.a8ffb479.js";
|
|
3
|
+
const a = () => import("./index.a8ffb479.js").then((e) => e.y).then((e) => e.default).catch((e) => {
|
|
4
4
|
throw console.error(
|
|
5
5
|
"Error while attempting to dynamically import component Block at ../block.vue",
|
|
6
6
|
e
|
|
@@ -21,13 +21,13 @@ const a = () => import("./index.c51504ff.js").then((e) => e.y).then((e) => e.def
|
|
|
21
21
|
});
|
|
22
22
|
function m(e, d, k, u, b, f) {
|
|
23
23
|
const o = r("block");
|
|
24
|
-
return
|
|
24
|
+
return s(), c(o, {
|
|
25
25
|
block: e.block,
|
|
26
26
|
context: e.store,
|
|
27
27
|
registeredComponents: e.registeredComponents
|
|
28
28
|
}, null, 8, ["block", "context", "registeredComponents"]);
|
|
29
29
|
}
|
|
30
|
-
const
|
|
30
|
+
const h = /* @__PURE__ */ l(i, [["render", m], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/components/block/components/repeated-block.vue"]]);
|
|
31
31
|
export {
|
|
32
|
-
|
|
32
|
+
h as default
|
|
33
33
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),t=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),t=require("./index.8bdc4716.cjs"),r=()=>Promise.resolve().then(()=>require("./index.8bdc4716.cjs")).then(e=>e.block).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component Block at ../block.vue",e),e}),c=o.defineComponent({name:"repeated-block",components:{Block:o.defineAsyncComponent(r)},props:["repeatContext","block","registeredComponents"],data(){return{store:this.repeatContext}},provide(){const e=this;return{[t.BuilderContext.key]:e.store}}});function s(e,i,p,d,a,u){const n=o.resolveComponent("block");return o.openBlock(),o.createBlock(n,{block:e.block,context:e.store,registeredComponents:e.registeredComponents},null,8,["block","context","registeredComponents"])}const l=t._export_sfc(c,[["render",s],["__file","/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/components/block/components/repeated-block.vue"]]);exports.default=l;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),t=require("./get-block-actions.0d715e21.cjs"),r=require("./index.b2d2bb5e.cjs");require("node:module");const n=o.defineComponent({name:"block-wrapper",props:["Wrapper","block","context","hasChildren"],data(){return{getBlockActions:t.getBlockActions,getBlockProperties:t.getBlockProperties}}});function c(e,a,s,p,i,k){return e.hasChildren?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.Wrapper),o.mergeProps({key:0},e.getBlockProperties({block:e.block,context:e.context}),o.toHandlers(e.getBlockActions({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context,stripPrefix:!0}))),{default:o.withCtx(()=>[o.renderSlot(e.$slots,"default")]),_:3},16)):(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.Wrapper),o.mergeProps({key:1},e.getBlockProperties({block:e.block,context:e.context}),o.toHandlers(e.getBlockActions({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context,stripPrefix:!0}))),null,16))}const l=r._export_sfc(n,[["render",c],["__file","/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/components/block/components/block-wrapper.vue"]]);exports.default=l;
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { defineComponent as l, openBlock as o, createBlock as t, resolveDynamicComponent as r, mergeProps as n, toHandlers as a, withCtx as c, renderSlot as p } from "vue";
|
|
2
|
-
import { g as s, a as k } from "./get-block-actions.
|
|
3
|
-
import { _ as i } from "./index.
|
|
4
|
-
|
|
2
|
+
import { g as s, a as k } from "./get-block-actions.3df391e9.js";
|
|
3
|
+
import { _ as i } from "./index.88589866.js";
|
|
4
|
+
import "node:module";
|
|
5
|
+
const S = l({
|
|
5
6
|
name: "block-wrapper",
|
|
6
7
|
props: ["Wrapper", "block", "context", "hasChildren"],
|
|
7
8
|
data() {
|
|
8
9
|
return { getBlockActions: s, getBlockProperties: k };
|
|
9
10
|
}
|
|
10
11
|
});
|
|
11
|
-
function
|
|
12
|
+
function m(e, u, b, d, f, g) {
|
|
12
13
|
return e.hasChildren ? (o(), t(r(e.Wrapper), n(
|
|
13
14
|
{ key: 0 },
|
|
14
15
|
e.getBlockProperties({
|
|
@@ -48,7 +49,7 @@ function S(e, b, d, m, f, g) {
|
|
|
48
49
|
)
|
|
49
50
|
), null, 16));
|
|
50
51
|
}
|
|
51
|
-
const
|
|
52
|
+
const $ = /* @__PURE__ */ i(S, [["render", m], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/components/block/components/block-wrapper.vue"]]);
|
|
52
53
|
export {
|
|
53
|
-
|
|
54
|
+
$ as default
|
|
54
55
|
};
|
|
@@ -9,7 +9,6 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
9
9
|
scriptsInserted: never[];
|
|
10
10
|
scriptsRun: never[];
|
|
11
11
|
}, {}, {
|
|
12
|
-
findAndRunScripts(): void;
|
|
13
12
|
_classStringToObject(str: string): Record<string, boolean>;
|
|
14
13
|
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
15
14
|
code?: any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),n=require("./index.b2d2bb5e.cjs"),a=require("./get-block-actions.0d715e21.cjs");require("node:module");const d=o.defineComponent({name:"interactive-element",props:["wrapperProps","block","context","Wrapper"],data(){return{getBlockActions:a.getBlockActions,getBlockProperties:a.getBlockProperties}}});function b(e,r,c,s,l,p){return o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.Wrapper),o.mergeProps({attributes:{...e.getBlockProperties({block:e.block,context:e.context}),...e.getBlockActions({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context})}},e.wrapperProps),{default:o.withCtx(()=>[o.renderSlot(e.$slots,"default")]),_:3},16,["attributes"])}const m=n._export_sfc(d,[["render",b],["__file","/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/components/block/components/interactive-element.vue"]]),B=({componentOptions:e,builderBlock:r,context:c,componentRef:s,includeBlockProps:l,isInteractive:p,contextValue:i})=>p?{Wrapper:s,block:r,context:c,wrapperProps:e}:{...e,...l?{attributes:a.getBlockProperties({block:r,context:i})}:{}},f=o.defineComponent({name:"component-ref",components:{Block:n.Block,BlockStyles:n.BlockStyles,InteractiveElement:m},props:["isInteractive","componentRef","componentOptions","builderBlock","context","includeBlockProps","blockChildren","registeredComponents"],data(){return{Wrapper:this.isInteractive?n.wrapComponentRef(m):this.componentRef,getWrapperProps:B}}});function g(e,r,c,s,l,p){const i=o.resolveComponent("block"),k=o.resolveComponent("block-styles");return e.componentRef?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.Wrapper),o.normalizeProps(o.mergeProps({key:0},e.getWrapperProps({componentOptions:e.componentOptions,builderBlock:e.builderBlock,context:e.context,componentRef:e.componentRef,includeBlockProps:e.includeBlockProps,isInteractive:e.isInteractive,contextValue:e.context}))),{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.blockChildren,(t,u)=>(o.openBlock(),o.createBlock(i,{key:"block-"+t.id,block:t,context:e.context,registeredComponents:e.registeredComponents},null,8,["block","context","registeredComponents"]))),128)),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.blockChildren,(t,u)=>(o.openBlock(),o.createBlock(k,{key:"block-style-"+t.id,block:t,context:e.context},null,8,["block","context"]))),128))]),_:1},16)):o.createCommentVNode("v-if",!0)}const v=n._export_sfc(f,[["render",g],["__file","/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/components/block/components/component-ref/component-ref.vue"]]);exports.default=v;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { defineComponent as f, openBlock as o, createBlock as r, resolveDynamicComponent as v, mergeProps as g, withCtx as B, renderSlot as S, resolveComponent as m, normalizeProps as
|
|
2
|
-
import { _ as P, a as
|
|
3
|
-
import { g as I, a as C } from "./get-block-actions.
|
|
1
|
+
import { defineComponent as f, openBlock as o, createBlock as r, resolveDynamicComponent as v, mergeProps as g, withCtx as B, renderSlot as S, resolveComponent as m, normalizeProps as w, createElementBlock as k, Fragment as u, renderList as d, createCommentVNode as y } from "vue";
|
|
2
|
+
import { _ as P, a as R, b as W, w as h } from "./index.88589866.js";
|
|
3
|
+
import { g as I, a as C } from "./get-block-actions.3df391e9.js";
|
|
4
|
+
import "node:module";
|
|
4
5
|
const E = f({
|
|
5
6
|
name: "interactive-element",
|
|
6
7
|
props: ["wrapperProps", "block", "context", "Wrapper"],
|
|
@@ -8,7 +9,7 @@ const E = f({
|
|
|
8
9
|
return { getBlockActions: I, getBlockProperties: C };
|
|
9
10
|
}
|
|
10
11
|
});
|
|
11
|
-
function
|
|
12
|
+
function j(e, n, c, s, p, l) {
|
|
12
13
|
return o(), r(v(e.Wrapper), g({
|
|
13
14
|
attributes: {
|
|
14
15
|
...e.getBlockProperties({
|
|
@@ -30,7 +31,7 @@ function A(e, n, c, s, p, l) {
|
|
|
30
31
|
_: 3
|
|
31
32
|
}, 16, ["attributes"]);
|
|
32
33
|
}
|
|
33
|
-
const b = /* @__PURE__ */ P(E, [["render",
|
|
34
|
+
const b = /* @__PURE__ */ P(E, [["render", j], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/components/block/components/interactive-element.vue"]]), A = ({
|
|
34
35
|
componentOptions: e,
|
|
35
36
|
builderBlock: n,
|
|
36
37
|
context: c,
|
|
@@ -51,11 +52,11 @@ const b = /* @__PURE__ */ P(E, [["render", A], ["__file", "/home/runner/work/bui
|
|
|
51
52
|
context: a
|
|
52
53
|
})
|
|
53
54
|
} : {}
|
|
54
|
-
},
|
|
55
|
+
}, O = f({
|
|
55
56
|
name: "component-ref",
|
|
56
57
|
components: {
|
|
57
|
-
Block:
|
|
58
|
-
BlockStyles:
|
|
58
|
+
Block: R,
|
|
59
|
+
BlockStyles: W,
|
|
59
60
|
InteractiveElement: b
|
|
60
61
|
},
|
|
61
62
|
props: [
|
|
@@ -70,14 +71,14 @@ const b = /* @__PURE__ */ P(E, [["render", A], ["__file", "/home/runner/work/bui
|
|
|
70
71
|
],
|
|
71
72
|
data() {
|
|
72
73
|
return {
|
|
73
|
-
Wrapper: this.isInteractive ?
|
|
74
|
-
getWrapperProps:
|
|
74
|
+
Wrapper: this.isInteractive ? h(b) : this.componentRef,
|
|
75
|
+
getWrapperProps: A
|
|
75
76
|
};
|
|
76
77
|
}
|
|
77
78
|
});
|
|
78
|
-
function
|
|
79
|
+
function U(e, n, c, s, p, l) {
|
|
79
80
|
const a = m("block"), i = m("block-styles");
|
|
80
|
-
return e.componentRef ? (o(), r(v(e.Wrapper),
|
|
81
|
+
return e.componentRef ? (o(), r(v(e.Wrapper), w(g(
|
|
81
82
|
{ key: 0 },
|
|
82
83
|
e.getWrapperProps({
|
|
83
84
|
componentOptions: e.componentOptions,
|
|
@@ -90,22 +91,22 @@ function x(e, n, c, s, p, l) {
|
|
|
90
91
|
})
|
|
91
92
|
)), {
|
|
92
93
|
default: B(() => [
|
|
93
|
-
(o(!0), u
|
|
94
|
+
(o(!0), k(u, null, d(e.blockChildren, (t, $) => (o(), r(a, {
|
|
94
95
|
key: "block-" + t.id,
|
|
95
96
|
block: t,
|
|
96
97
|
context: e.context,
|
|
97
98
|
registeredComponents: e.registeredComponents
|
|
98
99
|
}, null, 8, ["block", "context", "registeredComponents"]))), 128)),
|
|
99
|
-
(o(!0), u
|
|
100
|
+
(o(!0), k(u, null, d(e.blockChildren, (t, $) => (o(), r(i, {
|
|
100
101
|
key: "block-style-" + t.id,
|
|
101
102
|
block: t,
|
|
102
103
|
context: e.context
|
|
103
104
|
}, null, 8, ["block", "context"]))), 128))
|
|
104
105
|
]),
|
|
105
106
|
_: 1
|
|
106
|
-
}, 16)) :
|
|
107
|
+
}, 16)) : y("v-if", !0);
|
|
107
108
|
}
|
|
108
|
-
const
|
|
109
|
+
const F = /* @__PURE__ */ P(O, [["render", U], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/components/block/components/component-ref/component-ref.vue"]]);
|
|
109
110
|
export {
|
|
110
|
-
|
|
111
|
+
F as default
|
|
111
112
|
};
|
|
@@ -6,11 +6,11 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
6
6
|
canTrack?: any;
|
|
7
7
|
builderContextSignal?: any;
|
|
8
8
|
model?: any;
|
|
9
|
-
showContent?: any;
|
|
10
|
-
classNameProp?: any;
|
|
11
9
|
locale?: any;
|
|
12
10
|
includeRefs?: any;
|
|
13
11
|
enrich?: any;
|
|
12
|
+
showContent?: any;
|
|
13
|
+
classNameProp?: any;
|
|
14
14
|
}>, unknown, {
|
|
15
15
|
forceReRenderCount: number;
|
|
16
16
|
lastUpdated: number;
|
|
@@ -60,6 +60,8 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
60
60
|
}): void;
|
|
61
61
|
runHttpRequests(): void;
|
|
62
62
|
emitStateUpdate(): void;
|
|
63
|
+
elementRef_onIniteditingbldr(event: any): void;
|
|
64
|
+
elementRef_onInitpreviewingbldr(event: any): void;
|
|
63
65
|
_classStringToObject(str: string): Record<string, boolean>;
|
|
64
66
|
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
65
67
|
context?: any;
|
|
@@ -68,11 +70,11 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
68
70
|
canTrack?: any;
|
|
69
71
|
builderContextSignal?: any;
|
|
70
72
|
model?: any;
|
|
71
|
-
showContent?: any;
|
|
72
|
-
classNameProp?: any;
|
|
73
73
|
locale?: any;
|
|
74
74
|
includeRefs?: any;
|
|
75
75
|
enrich?: any;
|
|
76
|
+
showContent?: any;
|
|
77
|
+
classNameProp?: any;
|
|
76
78
|
}>>>, {
|
|
77
79
|
readonly context?: any;
|
|
78
80
|
readonly content?: any;
|
|
@@ -80,10 +82,10 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
80
82
|
readonly canTrack?: any;
|
|
81
83
|
readonly builderContextSignal?: any;
|
|
82
84
|
readonly model?: any;
|
|
83
|
-
readonly showContent?: any;
|
|
84
|
-
readonly classNameProp?: any;
|
|
85
85
|
readonly locale?: any;
|
|
86
86
|
readonly includeRefs?: any;
|
|
87
87
|
readonly enrich?: any;
|
|
88
|
+
readonly showContent?: any;
|
|
89
|
+
readonly classNameProp?: any;
|
|
88
90
|
}, {}>;
|
|
89
91
|
export default _default;
|
|
@@ -9,11 +9,11 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
9
9
|
apiVersion?: any;
|
|
10
10
|
canTrack?: any;
|
|
11
11
|
model?: any;
|
|
12
|
-
showContent?: any;
|
|
13
|
-
classNameProp?: any;
|
|
14
12
|
locale?: any;
|
|
15
13
|
includeRefs?: any;
|
|
16
14
|
enrich?: any;
|
|
15
|
+
showContent?: any;
|
|
16
|
+
classNameProp?: any;
|
|
17
17
|
customComponents?: any;
|
|
18
18
|
isSsrAbTest?: any;
|
|
19
19
|
}>, unknown, {
|
|
@@ -43,11 +43,11 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
43
43
|
apiVersion?: any;
|
|
44
44
|
canTrack?: any;
|
|
45
45
|
model?: any;
|
|
46
|
-
showContent?: any;
|
|
47
|
-
classNameProp?: any;
|
|
48
46
|
locale?: any;
|
|
49
47
|
includeRefs?: any;
|
|
50
48
|
enrich?: any;
|
|
49
|
+
showContent?: any;
|
|
50
|
+
classNameProp?: any;
|
|
51
51
|
customComponents?: any;
|
|
52
52
|
isSsrAbTest?: any;
|
|
53
53
|
}>>>, {
|
|
@@ -58,11 +58,11 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
58
58
|
readonly apiVersion?: any;
|
|
59
59
|
readonly canTrack?: any;
|
|
60
60
|
readonly model?: any;
|
|
61
|
-
readonly showContent?: any;
|
|
62
|
-
readonly classNameProp?: any;
|
|
63
61
|
readonly locale?: any;
|
|
64
62
|
readonly includeRefs?: any;
|
|
65
63
|
readonly enrich?: any;
|
|
64
|
+
readonly showContent?: any;
|
|
65
|
+
readonly classNameProp?: any;
|
|
66
66
|
readonly customComponents?: any;
|
|
67
67
|
readonly isSsrAbTest?: any;
|
|
68
68
|
}, {}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.
|
|
1
|
+
export declare const SDK_VERSION = "0.7.1-1";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ExecutorArgs } from './helpers.js';
|
|
2
|
+
/**
|
|
3
|
+
* Even though we have separate runtimes for browser/node/edge, sometimes frameworks will
|
|
4
|
+
* end up sending the server runtime code to the browser (most notably in dev mode).
|
|
5
|
+
*/
|
|
6
|
+
export declare const chooseBrowserOrServerEval: (args: ExecutorArgs) => any;
|
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export type EvaluatorArgs = Omit<ExecutorArgs, 'builder' | 'event'> & {
|
|
3
|
-
event?: Event;
|
|
4
|
-
isExpression?: boolean;
|
|
5
|
-
};
|
|
1
|
+
import type { EvaluatorArgs } from './helpers.js';
|
|
6
2
|
export declare function evaluate({ code, context, localState, rootState, rootSetState, event, isExpression }: EvaluatorArgs): any;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import type { BuilderContextInterface, BuilderRenderState } from '../../context/types.js';
|
|
2
|
-
import
|
|
2
|
+
import { getUserAttributes } from '../track/helpers.js';
|
|
3
|
+
export type EvaluatorArgs = Omit<ExecutorArgs, 'builder' | 'event'> & {
|
|
4
|
+
event?: Event;
|
|
5
|
+
isExpression?: boolean;
|
|
6
|
+
};
|
|
3
7
|
export type BuilderGlobals = {
|
|
4
8
|
isEditing: boolean | undefined;
|
|
5
9
|
isBrowser: boolean | undefined;
|
|
@@ -16,3 +20,5 @@ export type FunctionArguments = ReturnType<typeof getFunctionArguments>;
|
|
|
16
20
|
export declare const getFunctionArguments: ({ builder, context, event, state }: Pick<ExecutorArgs, "context" | "builder" | "event"> & {
|
|
17
21
|
state: BuilderRenderState;
|
|
18
22
|
}) => [string, Event | BuilderRenderState | import("../../context/types.js").BuilderRenderContext | BuilderGlobals | undefined][];
|
|
23
|
+
export declare const getBuilderGlobals: () => BuilderGlobals;
|
|
24
|
+
export declare const parseCode: (code: string, { isExpression }: Pick<EvaluatorArgs, 'isExpression'>) => string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { evaluator } from '
|
|
1
|
+
export { runInNode as evaluator } from './node-runtime.js';
|
|
@@ -5,11 +5,42 @@ export interface GetContentOptions {
|
|
|
5
5
|
apiKey: string;
|
|
6
6
|
/** Number of items to fetch. Default is 1 */
|
|
7
7
|
limit?: number;
|
|
8
|
-
/**
|
|
8
|
+
/**
|
|
9
|
+
* Use to specify an offset for pagination of results. The default is 0.
|
|
10
|
+
*/
|
|
11
|
+
offset?: number;
|
|
12
|
+
/**
|
|
13
|
+
* User attribute key value pairs to be used for targeting
|
|
14
|
+
* https://www.builder.io/c/docs/custom-targeting-attributes
|
|
15
|
+
*
|
|
16
|
+
* e.g.
|
|
17
|
+
* ```js
|
|
18
|
+
* userAttributes: {
|
|
19
|
+
* urlPath: '/',
|
|
20
|
+
* returnVisitor: true,
|
|
21
|
+
* device: 'mobile'
|
|
22
|
+
* }
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
9
25
|
userAttributes?: (Record<string, string> & {
|
|
10
26
|
urlPath?: string;
|
|
11
27
|
}) | null;
|
|
12
|
-
/**
|
|
28
|
+
/**
|
|
29
|
+
* Mongodb style query of your data. E.g.:
|
|
30
|
+
*
|
|
31
|
+
* ```js
|
|
32
|
+
* query: {
|
|
33
|
+
* id: 'abc123',
|
|
34
|
+
* data: {
|
|
35
|
+
* myCustomField: { $gt: 20 },
|
|
36
|
+
* }
|
|
37
|
+
* }
|
|
38
|
+
* ```
|
|
39
|
+
*
|
|
40
|
+
* See more info on MongoDB's query operators and format.
|
|
41
|
+
*
|
|
42
|
+
* @see {@link https://docs.mongodb.com/manual/reference/operator/query/}
|
|
43
|
+
*/
|
|
13
44
|
query?: Record<string, any>;
|
|
14
45
|
/**
|
|
15
46
|
* Any other API options.
|
|
@@ -30,7 +61,7 @@ export interface GetContentOptions {
|
|
|
30
61
|
*/
|
|
31
62
|
canTrack?: boolean;
|
|
32
63
|
/**
|
|
33
|
-
* Include references in the response. Defaults to `true`.
|
|
64
|
+
* Include content of references in the response. Defaults to `true`.
|
|
34
65
|
* @deprecated use `enrich` instead
|
|
35
66
|
*/
|
|
36
67
|
includeRefs?: boolean;
|
|
@@ -48,4 +79,64 @@ export interface GetContentOptions {
|
|
|
48
79
|
* Defaults to `v3`.
|
|
49
80
|
*/
|
|
50
81
|
apiVersion?: 'v2' | 'v3';
|
|
82
|
+
/**
|
|
83
|
+
* Only include these fields.
|
|
84
|
+
* Note: 'omit' takes precedence over 'fields'
|
|
85
|
+
*
|
|
86
|
+
* @example
|
|
87
|
+
* ```
|
|
88
|
+
* fields: 'id, name, data.customField'
|
|
89
|
+
* ```
|
|
90
|
+
*/
|
|
91
|
+
fields?: string;
|
|
92
|
+
/**
|
|
93
|
+
* Omit only these fields.
|
|
94
|
+
* Note: 'omit' takes precedence over 'fields'
|
|
95
|
+
*
|
|
96
|
+
* @example
|
|
97
|
+
* ```
|
|
98
|
+
* omit: 'data.bigField,data.blocks'
|
|
99
|
+
* ```
|
|
100
|
+
*/
|
|
101
|
+
omit?: string;
|
|
102
|
+
/**
|
|
103
|
+
* Seconds to cache content. Sets the max-age of the cache-control header
|
|
104
|
+
* response header.
|
|
105
|
+
*
|
|
106
|
+
* Use a higher value for better performance, lower for content that will change more frequently
|
|
107
|
+
*
|
|
108
|
+
* @see {@link https://www.builder.io/c/docs/query-api#__next:~:text=%26includeRefs%3Dtrue-,cacheSeconds,-No}
|
|
109
|
+
*/
|
|
110
|
+
cacheSeconds?: number;
|
|
111
|
+
/**
|
|
112
|
+
* Builder.io uses stale-while-revalidate caching at the CDN level. This means we always serve
|
|
113
|
+
* from edge cache and update caches in the background for maximum possible performance. This also
|
|
114
|
+
* means that the more frequently content is requested, the more fresh it will be. The longest we
|
|
115
|
+
* will ever hold something in stale cache is 1 day by default, and you can set this to be shorter
|
|
116
|
+
* yourself as well. We suggest keeping this high unless you have content that must change rapidly
|
|
117
|
+
* and gets very little traffic.
|
|
118
|
+
*
|
|
119
|
+
* @see {@link https://www.fastly.com/blog/prevent-application-network-instability-serve-stale-content}
|
|
120
|
+
*/
|
|
121
|
+
staleCacheSeconds?: number;
|
|
122
|
+
/**
|
|
123
|
+
* Property to order results by.
|
|
124
|
+
* Use 1 for ascending and -1 for descending.
|
|
125
|
+
*
|
|
126
|
+
* The key is what you're sorting on, so the following example sorts by createdDate
|
|
127
|
+
* and because the value is 1, the sort is ascending.
|
|
128
|
+
*
|
|
129
|
+
* @example
|
|
130
|
+
* ```
|
|
131
|
+
* createdDate: 1
|
|
132
|
+
* ```
|
|
133
|
+
*/
|
|
134
|
+
sort?: {
|
|
135
|
+
[key: string]: 1 | -1;
|
|
136
|
+
};
|
|
137
|
+
/**
|
|
138
|
+
* Include content entries in a response that are still in
|
|
139
|
+
* draft mode and un-archived. Default is false.
|
|
140
|
+
*/
|
|
141
|
+
includeUnpublished?: boolean;
|
|
51
142
|
}
|
package/vue3/lib/{browser/get-block-actions.703f8554.cjs → node/get-block-actions.0d715e21.cjs}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const c=require("./index.
|
|
1
|
+
"use strict";const c=require("./index.b2d2bb5e.cjs");function i(e){const t={};if(typeof e!="string")return t;const r=e.trim().split(/\\s+/);for(const s of r)t[s]=!0;return t}function l(e){return e.class=i(e.class),e}const u=e=>({href:e.href});function f({block:e,context:t}){var s;const r={...u(e),...e.properties,"builder-id":e.id,style:e.style?v(e.style):void 0,class:[e.id,"builder-block",e.class,(s=e.properties)==null?void 0:s.class].filter(Boolean).join(" ")};return l(r)}function v(e){switch(c.TARGET){case"svelte":case"vue2":case"vue3":case"solid":return c.convertStyleMapToCSSArray(e).join(" ");case"qwik":case"reactNative":case"react":case"rsc":return e}}const d=e=>`v-on:${e.toLowerCase()}`,p=(e,t)=>r=>c.evaluate({code:e,context:t.context,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,event:r,isExpression:!1});function S(e){var s;const t={},r=(s=e.block.actions)!=null?s:{};for(const n in r){if(!r.hasOwnProperty(n))continue;const a=r[n];let o=d(n);if(e.stripPrefix)switch(c.TARGET){case"vue2":case"vue3":o=o.replace("v-on:","");break;case"svelte":o=o.replace("on:","");break}t[o]=p(a,e)}return t}exports.getBlockActions=S;exports.getBlockProperties=f;
|