@builder.io/sdk-vue 0.7.2 → 0.7.4
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 +1 -1
- package/vue2/lib/browser/{block-750d8ed7.cjs → block-07c332e9.cjs} +2 -2
- package/vue2/lib/{edge/block-88cc78c4.js → browser/block-780edfb4.js} +7 -7
- package/vue2/lib/{node/block-styles-b1b9a610.js → browser/block-styles-16983926.js} +5 -5
- package/vue2/lib/{edge/block-styles-65d9a724.cjs → browser/block-styles-35789d73.cjs} +1 -1
- package/vue2/lib/browser/{block-wrapper-571b134c.cjs → block-wrapper-75ec69c0.cjs} +1 -1
- package/vue2/lib/browser/{block-wrapper-f011d1f2.js → block-wrapper-fed601f8.js} +5 -5
- package/vue2/lib/browser/blocks/video/video.vue.d.ts +24 -2
- package/vue2/lib/{edge/blocks-wrapper-dcd7b27a.js → browser/blocks-wrapper-8be7f69e.js} +1 -1
- package/vue2/lib/{edge/blocks-wrapper-96489519.cjs → browser/blocks-wrapper-f0ace194.cjs} +1 -1
- package/vue2/lib/{edge/component-ref-9b2c6138.js → browser/component-ref-82f7b8e8.js} +6 -6
- package/vue2/lib/{edge/component-ref-0bf4a838.cjs → browser/component-ref-f215189b.cjs} +1 -1
- package/vue2/lib/browser/components/content/content.types.d.ts +0 -4
- package/vue2/lib/browser/components/content-variants/content-variants.vue.d.ts +1 -1
- package/vue2/lib/browser/components/content-variants/helpers.d.ts +3 -3
- package/vue2/lib/browser/components/content-variants/inlined-fns.d.ts +14 -0
- package/vue2/lib/browser/constants/sdk-version.d.ts +1 -1
- package/vue2/lib/{edge/content-ad722031.js → browser/content-07544a0e.js} +21 -22
- package/vue2/lib/browser/{content-859f190b.cjs → content-a7a7fc9d.cjs} +1 -1
- package/vue2/lib/{node/css-44cbcf3f.cjs → browser/css-76c87435.cjs} +1 -1
- package/vue2/lib/browser/{css-67efb2d0.js → css-ae5a66d5.js} +1 -1
- package/vue2/lib/browser/enable-editor-6c32ef6e.cjs +1 -0
- package/vue2/lib/browser/{enable-editor-4054558e.js → enable-editor-760639f0.js} +15 -16
- package/vue2/lib/browser/{evaluate-28c12253.js → evaluate-a47066df.js} +1 -1
- package/vue2/lib/browser/{evaluate-6cd69c12.cjs → evaluate-a7ecae47.cjs} +1 -1
- package/vue2/lib/browser/{get-block-actions-f19965b6.cjs → get-block-actions-386da520.cjs} +1 -1
- package/vue2/lib/{node/get-block-actions-1a6b19ce.js → browser/get-block-actions-b8cf2dfe.js} +2 -2
- package/vue2/lib/browser/{get-block-properties-a5f2574c.js → get-block-properties-bc4c7be9.js} +2 -2
- package/vue2/lib/{node/get-block-properties-2204d735.cjs → browser/get-block-properties-ff494f28.cjs} +1 -1
- package/vue2/lib/browser/{get-processed-block-981ce262.cjs → get-processed-block-00d8b4d9.cjs} +1 -1
- package/vue2/lib/browser/{get-processed-block-9b23550f.js → get-processed-block-fcf89b2f.js} +2 -2
- package/vue2/lib/{node/index-43273102.js → browser/index-2e217cde.js} +390 -345
- package/vue2/lib/browser/index-97feec80.cjs +124 -0
- package/vue2/lib/browser/index-helpers/blocks-exports.d.ts +1 -1
- package/vue2/lib/browser/index.cjs +1 -1
- package/vue2/lib/browser/index.js +1 -1
- package/vue2/lib/{edge/inlined-script-58b1138d.js → browser/inlined-script-0bb5d32b.js} +2 -2
- package/vue2/lib/browser/inlined-script-b7ea11cc.cjs +1 -0
- package/vue2/lib/{node/inlined-styles-73c1efea.cjs → browser/inlined-styles-68fc206b.cjs} +1 -1
- package/vue2/lib/{node/inlined-styles-f35650e9.js → browser/inlined-styles-e2e0a10c.js} +1 -1
- package/vue2/lib/{node/interactive-element-07235e63.cjs → browser/interactive-element-d3c5523b.cjs} +1 -1
- package/vue2/lib/{node/interactive-element-22405343.js → browser/interactive-element-dff8fe39.js} +5 -5
- package/vue2/lib/browser/{repeated-block-49fef627.cjs → repeated-block-07720e6b.cjs} +1 -1
- package/vue2/lib/{node/repeated-block-53bf7a45.js → browser/repeated-block-d24899a4.js} +2 -2
- package/vue2/lib/{node/styles-6a9d7ee1.cjs → browser/styles-13523f01.cjs} +2 -2
- package/vue2/lib/{node/styles-c2fd2724.js → browser/styles-c7b3d8ac.js} +2 -2
- package/vue2/lib/edge/{block-85fe2549.cjs → block-05cd2d1a.cjs} +2 -2
- package/vue2/lib/{browser/block-86d82810.js → edge/block-bd104a74.js} +7 -7
- package/vue2/lib/{node/block-styles-258f0e47.cjs → edge/block-styles-76f792ef.cjs} +1 -1
- package/vue2/lib/edge/{block-styles-9140aecf.js → block-styles-abd07e9a.js} +5 -5
- package/vue2/lib/{node/block-wrapper-1bdc3ca4.js → edge/block-wrapper-72353851.js} +5 -5
- package/vue2/lib/edge/{block-wrapper-e6392713.cjs → block-wrapper-c9fef722.cjs} +1 -1
- package/vue2/lib/edge/blocks/video/video.vue.d.ts +24 -2
- package/vue2/lib/{browser/blocks-wrapper-1d620d76.cjs → edge/blocks-wrapper-422482b9.cjs} +1 -1
- package/vue2/lib/{browser/blocks-wrapper-33f35ea5.js → edge/blocks-wrapper-44eb34d1.js} +1 -1
- package/vue2/lib/{node/component-ref-ccb3e639.js → edge/component-ref-73669490.js} +6 -6
- package/vue2/lib/{node/component-ref-5be913d9.cjs → edge/component-ref-823a3ade.cjs} +1 -1
- package/vue2/lib/edge/components/content/content.types.d.ts +0 -4
- package/vue2/lib/edge/components/content-variants/content-variants.vue.d.ts +1 -1
- package/vue2/lib/edge/components/content-variants/helpers.d.ts +3 -3
- package/vue2/lib/edge/components/content-variants/inlined-fns.d.ts +14 -0
- package/vue2/lib/edge/constants/sdk-version.d.ts +1 -1
- package/vue2/lib/{node/content-8b7678bc.cjs → edge/content-cebdf20d.cjs} +1 -1
- package/vue2/lib/{browser/content-dc49d77b.js → edge/content-db69a308.js} +21 -22
- package/vue2/lib/edge/{css-5bd5388a.js → css-54e4ec80.js} +1 -1
- package/vue2/lib/{browser/css-a19d330c.cjs → edge/css-dabe7580.cjs} +1 -1
- package/vue2/lib/edge/enable-editor-9109594a.cjs +1 -0
- package/vue2/lib/{node/enable-editor-8b4a5b45.js → edge/enable-editor-d335545f.js} +15 -16
- package/vue2/lib/edge/{evaluate-7661cdf7.cjs → evaluate-10ad6e1c.cjs} +1 -1
- package/vue2/lib/edge/{evaluate-79ba5368.js → evaluate-99370fa6.js} +1 -1
- package/vue2/lib/{browser/get-block-actions-63de56e5.js → edge/get-block-actions-228eef05.js} +2 -2
- package/vue2/lib/edge/{get-block-actions-4ed31703.cjs → get-block-actions-96abe3ea.cjs} +1 -1
- package/vue2/lib/edge/{get-block-properties-c72eb3c0.js → get-block-properties-5ec0b641.js} +2 -2
- package/vue2/lib/{browser/get-block-properties-21c833e6.cjs → edge/get-block-properties-e2643a11.cjs} +1 -1
- package/vue2/lib/edge/{get-processed-block-e8256b7e.cjs → get-processed-block-9b3d9010.cjs} +1 -1
- package/vue2/lib/{node/get-processed-block-78fabb02.js → edge/get-processed-block-e5ee0bac.js} +2 -2
- package/vue2/lib/edge/{index-4cf9f60c.js → index-31aedf87.js} +390 -345
- package/vue2/lib/edge/index-f007c959.cjs +124 -0
- package/vue2/lib/edge/index-helpers/blocks-exports.d.ts +1 -1
- package/vue2/lib/edge/index.cjs +1 -1
- package/vue2/lib/edge/index.js +1 -1
- package/vue2/lib/{node/inlined-script-da97caa2.js → edge/inlined-script-1fbdc086.js} +2 -2
- package/vue2/lib/edge/inlined-script-d732d8ca.cjs +1 -0
- package/vue2/lib/{browser/inlined-styles-9637cb58.cjs → edge/inlined-styles-49ba2b1e.cjs} +1 -1
- package/vue2/lib/edge/{inlined-styles-8c6cdbc5.js → inlined-styles-ba3931a6.js} +1 -1
- package/vue2/lib/{browser/interactive-element-d37313e0.cjs → edge/interactive-element-368f9d0d.cjs} +1 -1
- package/vue2/lib/{browser/interactive-element-c87a6c35.js → edge/interactive-element-c334da11.js} +5 -5
- package/vue2/lib/{browser/repeated-block-231b11b1.js → edge/repeated-block-731fdea1.js} +2 -2
- package/vue2/lib/edge/{repeated-block-8721baa8.cjs → repeated-block-fcdda74c.cjs} +1 -1
- package/vue2/lib/{browser/styles-6a6b8114.cjs → edge/styles-3f7ff927.cjs} +2 -2
- package/vue2/lib/{browser/styles-28f7ec70.js → edge/styles-8c4ee58d.js} +2 -2
- package/vue2/lib/node/{block-6c3981dc.js → block-ac098304.js} +7 -7
- package/vue2/lib/node/{block-575160ba.cjs → block-e30000ea.cjs} +2 -2
- package/vue2/lib/{browser/block-styles-132270d0.js → node/block-styles-59790d4f.js} +5 -5
- package/vue2/lib/{browser/block-styles-5b5e9888.cjs → node/block-styles-b7c0d773.cjs} +1 -1
- package/vue2/lib/{edge/block-wrapper-36a4a767.js → node/block-wrapper-584442d6.js} +5 -5
- package/vue2/lib/node/{block-wrapper-fed00059.cjs → block-wrapper-fc557c97.cjs} +1 -1
- package/vue2/lib/node/blocks/video/video.vue.d.ts +24 -2
- package/vue2/lib/node/{blocks-wrapper-031887f0.js → blocks-wrapper-3c044bbd.js} +1 -1
- package/vue2/lib/node/{blocks-wrapper-80b3a22f.cjs → blocks-wrapper-65858112.cjs} +1 -1
- package/vue2/lib/{browser/component-ref-d6254a68.js → node/component-ref-a6bc774c.js} +6 -6
- package/vue2/lib/{browser/component-ref-26a164ea.cjs → node/component-ref-e44e994d.cjs} +1 -1
- package/vue2/lib/node/components/content/content.types.d.ts +0 -4
- package/vue2/lib/node/components/content-variants/content-variants.vue.d.ts +1 -1
- package/vue2/lib/node/components/content-variants/helpers.d.ts +3 -3
- package/vue2/lib/node/components/content-variants/inlined-fns.d.ts +14 -0
- package/vue2/lib/node/constants/sdk-version.d.ts +1 -1
- package/vue2/lib/node/{content-f80acd05.js → content-0c402bc4.js} +21 -22
- package/vue2/lib/{edge/content-199e7143.cjs → node/content-df8168e7.cjs} +1 -1
- package/vue2/lib/{edge/css-05af2335.cjs → node/css-41ae8b09.cjs} +1 -1
- package/vue2/lib/node/{css-ad18a8ab.js → css-6d74c64e.js} +1 -1
- package/vue2/lib/{edge/enable-editor-a32a425e.js → node/enable-editor-4f107d4f.js} +15 -16
- package/vue2/lib/node/enable-editor-9d4c56f2.cjs +1 -0
- package/vue2/lib/node/{evaluate-52887aac.js → evaluate-9ad3f2db.js} +1 -1
- package/vue2/lib/node/{evaluate-19fac854.cjs → evaluate-d4f7178b.cjs} +1 -1
- package/vue2/lib/node/{get-block-actions-65751661.cjs → get-block-actions-5cdee638.cjs} +1 -1
- package/vue2/lib/{edge/get-block-actions-5ae9dffc.js → node/get-block-actions-95e00934.js} +2 -2
- package/vue2/lib/node/{get-block-properties-cbc0612e.js → get-block-properties-a14bae21.js} +2 -2
- package/vue2/lib/{edge/get-block-properties-e0553a33.cjs → node/get-block-properties-c3729a6d.cjs} +1 -1
- package/vue2/lib/node/{get-processed-block-902c8e72.cjs → get-processed-block-72cc0b71.cjs} +1 -1
- package/vue2/lib/{edge/get-processed-block-f3dbc4e7.js → node/get-processed-block-f8cccb85.js} +2 -2
- package/vue2/lib/{browser/index-f82eab8f.js → node/index-0d27ca35.js} +390 -345
- package/vue2/lib/node/index-0fa06fd7.cjs +124 -0
- package/vue2/lib/node/index-helpers/blocks-exports.d.ts +1 -1
- package/vue2/lib/node/index.cjs +1 -1
- package/vue2/lib/node/index.js +1 -1
- package/vue2/lib/node/inlined-script-1f196594.cjs +1 -0
- package/vue2/lib/{browser/inlined-script-2d16b8db.js → node/inlined-script-e3588cc8.js} +2 -2
- package/vue2/lib/{browser/inlined-styles-fbbf7fd9.js → node/inlined-styles-120a3b8e.js} +1 -1
- package/vue2/lib/{edge/inlined-styles-a1951810.cjs → node/inlined-styles-fffaa510.cjs} +1 -1
- package/vue2/lib/{edge/interactive-element-1a5ee50b.cjs → node/interactive-element-a31daba4.cjs} +1 -1
- package/vue2/lib/{edge/interactive-element-2f0d2294.js → node/interactive-element-e01ee0b1.js} +5 -5
- package/vue2/lib/{edge/repeated-block-a32b01bc.js → node/repeated-block-0f75a865.js} +2 -2
- package/vue2/lib/node/{repeated-block-771e5e8b.cjs → repeated-block-4d665c95.cjs} +1 -1
- package/vue2/lib/{edge/styles-b2c8a706.cjs → node/styles-2ac48a81.cjs} +2 -2
- package/vue2/lib/{edge/styles-eab59896.js → node/styles-5804f1aa.js} +2 -2
- package/vue2/package.json +7 -1
- package/vue3/lib/{edge/block-wrapper.4bb452b4.js → browser/block-wrapper.08f5700f.js} +2 -2
- package/vue3/lib/browser/{block-wrapper.fc71d4d3.cjs → block-wrapper.90c9936a.cjs} +1 -1
- package/vue3/lib/browser/blocks/video/video.vue.d.ts +23 -1
- package/vue3/lib/{edge/component-ref.215d8eb3.js → browser/component-ref.5f90d51a.js} +2 -2
- package/vue3/lib/browser/{component-ref.f8946ad7.cjs → component-ref.b4629079.cjs} +1 -1
- package/vue3/lib/browser/components/content/components/enable-editor.vue.d.ts +0 -3
- package/vue3/lib/browser/components/content/content.types.d.ts +0 -4
- package/vue3/lib/browser/components/content/content.vue.d.ts +0 -3
- package/vue3/lib/browser/components/content-variants/content-variants.vue.d.ts +2 -4
- package/vue3/lib/browser/components/content-variants/helpers.d.ts +3 -3
- package/vue3/lib/browser/components/content-variants/inlined-fns.d.ts +14 -0
- package/vue3/lib/browser/constants/sdk-version.d.ts +1 -1
- package/vue3/lib/{edge/get-block-actions.32987a91.js → browser/get-block-actions.d21cdbf2.js} +1 -1
- package/vue3/lib/{node/get-block-actions.3bf73664.cjs → browser/get-block-actions.f66d55a6.cjs} +1 -1
- package/vue3/lib/browser/index-helpers/blocks-exports.d.ts +1 -1
- package/vue3/lib/browser/index.231f04fb.cjs +161 -0
- package/vue3/lib/browser/{index.bd816233.js → index.2dd045c5.js} +802 -735
- package/vue3/lib/browser/index.cjs +1 -1
- package/vue3/lib/browser/index.js +1 -1
- package/vue3/lib/{edge/repeated-block.b5d1a5b6.cjs → browser/repeated-block.3739c1b9.cjs} +1 -1
- package/vue3/lib/{edge/repeated-block.d1e4f878.js → browser/repeated-block.c9323192.js} +2 -2
- package/vue3/lib/{browser/block-wrapper.32fa4b39.js → edge/block-wrapper.7d4dfc7f.js} +2 -2
- package/vue3/lib/edge/{block-wrapper.d36a195b.cjs → block-wrapper.e09cbe94.cjs} +1 -1
- package/vue3/lib/edge/blocks/video/video.vue.d.ts +23 -1
- package/vue3/lib/edge/{component-ref.09c0c561.cjs → component-ref.2ad33c60.cjs} +1 -1
- package/vue3/lib/{browser/component-ref.52b4ab91.js → edge/component-ref.4961077d.js} +2 -2
- package/vue3/lib/edge/components/content/components/enable-editor.vue.d.ts +0 -3
- package/vue3/lib/edge/components/content/content.types.d.ts +0 -4
- package/vue3/lib/edge/components/content/content.vue.d.ts +0 -3
- package/vue3/lib/edge/components/content-variants/content-variants.vue.d.ts +2 -4
- package/vue3/lib/edge/components/content-variants/helpers.d.ts +3 -3
- package/vue3/lib/edge/components/content-variants/inlined-fns.d.ts +14 -0
- package/vue3/lib/edge/constants/sdk-version.d.ts +1 -1
- package/vue3/lib/{browser/get-block-actions.720b385e.cjs → edge/get-block-actions.04020988.cjs} +1 -1
- package/vue3/lib/{browser/get-block-actions.33a95ae9.js → edge/get-block-actions.32efcc46.js} +1 -1
- package/vue3/lib/edge/index-helpers/blocks-exports.d.ts +1 -1
- package/vue3/lib/edge/{index.cc0efb3b.js → index.55d20937.js} +1242 -1175
- package/vue3/lib/edge/index.62561aef.cjs +181 -0
- package/vue3/lib/edge/index.cjs +1 -1
- package/vue3/lib/edge/index.js +1 -1
- package/vue3/lib/{browser/repeated-block.41d43763.js → edge/repeated-block.7e02873b.js} +2 -2
- package/vue3/lib/{browser/repeated-block.4bb78d4d.cjs → edge/repeated-block.807172cf.cjs} +1 -1
- package/vue3/lib/node/{block-wrapper.027e2e58.cjs → block-wrapper.36bd8466.cjs} +1 -1
- package/vue3/lib/node/{block-wrapper.1f5bec88.js → block-wrapper.cb167bf8.js} +2 -2
- package/vue3/lib/node/blocks/video/video.vue.d.ts +23 -1
- package/vue3/lib/node/{component-ref.d2c6eedf.js → component-ref.c0f35899.js} +2 -2
- package/vue3/lib/node/{component-ref.5c293120.cjs → component-ref.d917bb03.cjs} +1 -1
- package/vue3/lib/node/components/content/components/enable-editor.vue.d.ts +0 -3
- package/vue3/lib/node/components/content/content.types.d.ts +0 -4
- package/vue3/lib/node/components/content/content.vue.d.ts +0 -3
- package/vue3/lib/node/components/content-variants/content-variants.vue.d.ts +2 -4
- package/vue3/lib/node/components/content-variants/helpers.d.ts +3 -3
- package/vue3/lib/node/components/content-variants/inlined-fns.d.ts +14 -0
- package/vue3/lib/node/constants/sdk-version.d.ts +1 -1
- package/vue3/lib/{edge/get-block-actions.b7d0a3c2.cjs → node/get-block-actions.50ea0112.cjs} +1 -1
- package/vue3/lib/node/{get-block-actions.68279ccf.js → get-block-actions.912d8c9e.js} +1 -1
- package/vue3/lib/node/index-helpers/blocks-exports.d.ts +1 -1
- package/vue3/lib/node/index.804c5a4a.cjs +201 -0
- package/vue3/lib/node/index.cjs +1 -1
- package/vue3/lib/node/{index.bb1871d7.js → index.f6a9eadf.js} +765 -698
- package/vue3/lib/node/index.js +1 -1
- package/vue3/lib/node/{repeated-block.6533598e.cjs → repeated-block.20e89559.cjs} +1 -1
- package/vue3/lib/node/{repeated-block.c5b9936f.js → repeated-block.a497caff.js} +2 -2
- package/vue3/package.json +7 -1
- package/vue2/lib/browser/enable-editor-ed3f647e.cjs +0 -1
- package/vue2/lib/browser/index-63eb9f8d.cjs +0 -32
- package/vue2/lib/browser/inlined-script-95114af2.cjs +0 -1
- package/vue2/lib/edge/enable-editor-ee8b2ba3.cjs +0 -1
- package/vue2/lib/edge/index-946de873.cjs +0 -32
- package/vue2/lib/edge/inlined-script-cd8bf7d3.cjs +0 -1
- package/vue2/lib/node/enable-editor-405441b9.cjs +0 -1
- package/vue2/lib/node/index-d8e34fec.cjs +0 -32
- package/vue2/lib/node/inlined-script-82af82d4.cjs +0 -1
- package/vue3/lib/browser/index.abbd01ce.cjs +0 -69
- package/vue3/lib/edge/index.ceec697c.cjs +0 -89
- package/vue3/lib/node/index.44e0d18b.cjs +0 -109
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),t=require("./get-block-actions.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),t=require("./get-block-actions.50ea0112.cjs"),r=require("./index.804c5a4a.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","/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/components/block/components/block-wrapper.vue"]]);exports.default=l;
|
|
@@ -1,6 +1,6 @@
|
|
|
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.
|
|
2
|
+
import { g as s, a as k } from "./get-block-actions.912d8c9e.js";
|
|
3
|
+
import { _ as i } from "./index.f6a9eadf.js";
|
|
4
4
|
import "node:module";
|
|
5
5
|
const u = l({
|
|
6
6
|
name: "block-wrapper",
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { BuilderBlock } from "../../types/builder-block.js";
|
|
1
2
|
export interface VideoProps {
|
|
2
3
|
attributes?: any;
|
|
3
4
|
video?: string;
|
|
@@ -14,11 +15,18 @@ export interface VideoProps {
|
|
|
14
15
|
position?: "center" | "top" | "left" | "right" | "bottom" | "top left" | "top right" | "bottom left" | "bottom right";
|
|
15
16
|
posterImage?: string;
|
|
16
17
|
lazyLoad?: boolean;
|
|
18
|
+
children?: any;
|
|
19
|
+
fitContent?: boolean;
|
|
20
|
+
builderBlock?: BuilderBlock;
|
|
17
21
|
}
|
|
18
22
|
declare const _default: import("vue").DefineComponent<Readonly<{
|
|
19
23
|
video?: any;
|
|
20
24
|
attributes?: any;
|
|
25
|
+
aspectRatio?: any;
|
|
21
26
|
position?: any;
|
|
27
|
+
builderBlock?: any;
|
|
28
|
+
fitContent?: any;
|
|
29
|
+
lazyLoad?: any;
|
|
22
30
|
posterImage?: any;
|
|
23
31
|
autoPlay?: any;
|
|
24
32
|
controls?: any;
|
|
@@ -35,11 +43,21 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
35
43
|
muted?: boolean | undefined;
|
|
36
44
|
autoPlay?: boolean | undefined;
|
|
37
45
|
};
|
|
38
|
-
spreadProps():
|
|
46
|
+
spreadProps(): {
|
|
47
|
+
playsInline?: boolean | undefined;
|
|
48
|
+
loop?: boolean | undefined;
|
|
49
|
+
controls?: boolean | undefined;
|
|
50
|
+
muted?: boolean | undefined;
|
|
51
|
+
autoPlay?: boolean | undefined;
|
|
52
|
+
};
|
|
39
53
|
}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
40
54
|
video?: any;
|
|
41
55
|
attributes?: any;
|
|
56
|
+
aspectRatio?: any;
|
|
42
57
|
position?: any;
|
|
58
|
+
builderBlock?: any;
|
|
59
|
+
fitContent?: any;
|
|
60
|
+
lazyLoad?: any;
|
|
43
61
|
posterImage?: any;
|
|
44
62
|
autoPlay?: any;
|
|
45
63
|
controls?: any;
|
|
@@ -51,7 +69,11 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
51
69
|
}>>>, {
|
|
52
70
|
readonly video?: any;
|
|
53
71
|
readonly attributes?: any;
|
|
72
|
+
readonly aspectRatio?: any;
|
|
54
73
|
readonly position?: any;
|
|
74
|
+
readonly builderBlock?: any;
|
|
75
|
+
readonly fitContent?: any;
|
|
76
|
+
readonly lazyLoad?: any;
|
|
55
77
|
readonly posterImage?: any;
|
|
56
78
|
readonly autoPlay?: any;
|
|
57
79
|
readonly controls?: any;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
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 h, createElementBlock as u, Fragment as k, renderList as d, createCommentVNode as w } from "vue";
|
|
2
|
-
import { _ as P, B as y, a as R, w as W } from "./index.
|
|
3
|
-
import { g as I, a as C } from "./get-block-actions.
|
|
2
|
+
import { _ as P, B as y, a as R, w as W } from "./index.f6a9eadf.js";
|
|
3
|
+
import { g as I, a as C } from "./get-block-actions.912d8c9e.js";
|
|
4
4
|
import "node:module";
|
|
5
5
|
const E = f({
|
|
6
6
|
name: "interactive-element",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),n=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),n=require("./index.804c5a4a.cjs"),a=require("./get-block-actions.50ea0112.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,l,s,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 u=n._export_sfc(d,[["render",b],["__file","/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/components/block/components/interactive-element.vue"]]),B=({componentOptions:e,builderBlock:r,context:c,componentRef:l,includeBlockProps:s,isInteractive:p,contextValue:i})=>p?{Wrapper:l,block:r,context:c,wrapperProps:e}:{...e,...s?{attributes:a.getBlockProperties({block:r,context:i})}:{}},f=o.defineComponent({name:"component-ref",components:{Block:n.Block,BlockStyles:n.BlockStyles,InteractiveElement:u},props:["isInteractive","componentRef","componentOptions","builderBlock","context","includeBlockProps","blockChildren","registeredComponents"],data(){return{Wrapper:this.isInteractive?n.wrapComponentRef(u):this.componentRef,getWrapperProps:B}}});function g(e,r,c,l,s,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,m)=>(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,m)=>(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","/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/components/block/components/component-ref/component-ref.vue"]]);exports.default=v;
|
|
@@ -10,7 +10,6 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
10
10
|
includeRefs?: any;
|
|
11
11
|
enrich?: any;
|
|
12
12
|
showContent?: any;
|
|
13
|
-
classNameProp?: any;
|
|
14
13
|
}>, unknown, {
|
|
15
14
|
forceReRenderCount: number;
|
|
16
15
|
lastUpdated: number;
|
|
@@ -74,7 +73,6 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
74
73
|
includeRefs?: any;
|
|
75
74
|
enrich?: any;
|
|
76
75
|
showContent?: any;
|
|
77
|
-
classNameProp?: any;
|
|
78
76
|
}>>>, {
|
|
79
77
|
readonly content?: any;
|
|
80
78
|
readonly context?: any;
|
|
@@ -86,6 +84,5 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
86
84
|
readonly includeRefs?: any;
|
|
87
85
|
readonly enrich?: any;
|
|
88
86
|
readonly showContent?: any;
|
|
89
|
-
readonly classNameProp?: any;
|
|
90
87
|
}, {}>;
|
|
91
88
|
export default _default;
|
|
@@ -2,10 +2,6 @@ import type { BuilderRenderState } from '../../context/types.js';
|
|
|
2
2
|
import type { EnforcePartials } from '../../types/enforced-partials.js';
|
|
3
3
|
import type { ContentVariantsPrps } from '../content-variants/content-variants.types.js';
|
|
4
4
|
interface InternalRenderProps {
|
|
5
|
-
/**
|
|
6
|
-
* TO-DO: improve qwik generator to not remap this name for non-HTML tags, then name it `className`
|
|
7
|
-
*/
|
|
8
|
-
classNameProp: string | undefined;
|
|
9
5
|
showContent: boolean;
|
|
10
6
|
isSsrAbTest: boolean;
|
|
11
7
|
}
|
|
@@ -13,7 +13,6 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
13
13
|
includeRefs?: any;
|
|
14
14
|
enrich?: any;
|
|
15
15
|
showContent?: any;
|
|
16
|
-
classNameProp?: any;
|
|
17
16
|
customComponents?: any;
|
|
18
17
|
isSsrAbTest?: any;
|
|
19
18
|
}>, unknown, {
|
|
@@ -47,7 +46,6 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
47
46
|
includeRefs?: any;
|
|
48
47
|
enrich?: any;
|
|
49
48
|
showContent?: any;
|
|
50
|
-
classNameProp?: any;
|
|
51
49
|
customComponents?: any;
|
|
52
50
|
isSsrAbTest?: any;
|
|
53
51
|
}>>>, {
|
|
@@ -62,7 +60,6 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
62
60
|
readonly includeRefs?: any;
|
|
63
61
|
readonly enrich?: any;
|
|
64
62
|
readonly showContent?: any;
|
|
65
|
-
readonly classNameProp?: any;
|
|
66
63
|
readonly customComponents?: any;
|
|
67
64
|
readonly isSsrAbTest?: any;
|
|
68
65
|
}, {}>;
|
|
@@ -37,12 +37,10 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
37
37
|
meta?: {
|
|
38
38
|
[key: string]: any;
|
|
39
39
|
breakpoints?: import("../../types/typescript.js").Nullable<import("../../types/builder-content.js").Breakpoints>;
|
|
40
|
-
} | undefined;
|
|
41
|
-
* For internal use only. Do not provide this prop.
|
|
42
|
-
*/
|
|
40
|
+
} | undefined;
|
|
43
41
|
}[];
|
|
44
42
|
}, {
|
|
45
|
-
|
|
43
|
+
updateCookieAndStylesScriptStr(): string;
|
|
46
44
|
hideVariantsStyleString(): string;
|
|
47
45
|
defaultContent(): any;
|
|
48
46
|
}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
@@ -24,7 +24,7 @@ export declare const getVariants: (content: Nullable<BuilderContent>) => {
|
|
|
24
24
|
breakpoints?: import("../../types/typescript.js").Nullable<import("../../types/builder-content.js").Breakpoints>;
|
|
25
25
|
} | undefined;
|
|
26
26
|
}[];
|
|
27
|
-
export declare const
|
|
27
|
+
export declare const checkShouldRenderVariants: ({ canTrack, content }: {
|
|
28
28
|
canTrack: Nullable<boolean>;
|
|
29
29
|
content: Nullable<BuilderContent>;
|
|
30
30
|
}) => boolean;
|
|
@@ -33,8 +33,8 @@ type VariantData = {
|
|
|
33
33
|
testRatio?: number;
|
|
34
34
|
};
|
|
35
35
|
export declare const getScriptString: () => string;
|
|
36
|
-
export declare const
|
|
37
|
-
export declare const
|
|
36
|
+
export declare const getUpdateCookieAndStylesScript: (variants: VariantData[], contentId: string) => string;
|
|
37
|
+
export declare const getUpdateVariantVisibilityScript: ({ contentId, variationId }: {
|
|
38
38
|
variationId: string;
|
|
39
39
|
contentId: string;
|
|
40
40
|
}) => string;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WARNING: This file contains functions that get stringified and inlined into the HTML at build-time.
|
|
3
|
+
* They cannot import anything.
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* For more information on how this works,
|
|
7
|
+
* see our [SSR A/B Test Docs](https://github.com/BuilderIO/builder/tree/main/packages/sdks/src/SSR_AB_TEST.md)
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* For more information on how this works,
|
|
11
|
+
* see our [SSR A/B Test Docs](https://github.com/BuilderIO/builder/tree/main/packages/sdks/src/SSR_AB_TEST.md)
|
|
12
|
+
*/
|
|
13
|
+
export declare const UPDATE_COOKIES_AND_STYLES_SCRIPT = "function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {\n function getAndSetVariantId() {\n function setCookie(name, value, days) {\n let expires = '';\n if (days) {\n const date = new Date();\n date.setTime(date.getTime() + days * 24 * 60 * 60 * 1000);\n expires = '; expires=' + date.toUTCString();\n }\n document.cookie = name + '=' + (value || '') + expires + '; path=/' + '; Secure; SameSite=None';\n }\n function getCookie(name) {\n const nameEQ = name + '=';\n const ca = document.cookie.split(';');\n for (let i = 0; i < ca.length; i++) {\n let c = ca[i];\n while (c.charAt(0) === ' ') c = c.substring(1, c.length);\n if (c.indexOf(nameEQ) === 0) return c.substring(nameEQ.length, c.length);\n }\n return null;\n }\n const cookieName = `builder.tests.${contentId}`;\n const variantInCookie = getCookie(cookieName);\n const availableIDs = variants.map(vr => vr.id).concat(contentId);\n if (variantInCookie && availableIDs.includes(variantInCookie)) {\n return variantInCookie;\n }\n let n = 0;\n const random = Math.random();\n for (let i = 0; i < variants.length; i++) {\n const variant = variants[i];\n const testRatio = variant.testRatio;\n n += testRatio;\n if (random < n) {\n setCookie(cookieName, variant.id);\n return variant.id;\n }\n }\n setCookie(cookieName, contentId);\n return contentId;\n }\n const winningVariantId = getAndSetVariantId();\n const styleEl = document.currentScript?.previousElementSibling;\n if (isHydrationTarget) {\n styleEl.remove();\n const thisScriptEl = document.currentScript;\n thisScriptEl?.remove();\n } else {\n const newStyleStr = variants.concat({\n id: contentId\n }).filter(variant => variant.id !== winningVariantId).map(value => {\n return `.variant-${value.id} { display: none; }\n `;\n }).join('');\n styleEl.innerHTML = newStyleStr;\n }\n}";
|
|
14
|
+
export declare const UPDATE_VARIANT_VISIBILITY_SCRIPT = "function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {\n if (!navigator.cookieEnabled) {\n return;\n }\n function getCookie(name) {\n const nameEQ = name + '=';\n const ca = document.cookie.split(';');\n for (let i = 0; i < ca.length; i++) {\n let c = ca[i];\n while (c.charAt(0) === ' ') c = c.substring(1, c.length);\n if (c.indexOf(nameEQ) === 0) return c.substring(nameEQ.length, c.length);\n }\n return null;\n }\n const cookieName = `builder.tests.${defaultContentId}`;\n const winningVariant = getCookie(cookieName);\n const parentDiv = document.currentScript?.parentElement;\n const isDefaultContent = variantContentId === defaultContentId;\n const isWinningVariant = winningVariant === variantContentId;\n if (isWinningVariant && !isDefaultContent) {\n parentDiv?.removeAttribute('hidden');\n parentDiv?.removeAttribute('aria-hidden');\n } else if (!isWinningVariant && isDefaultContent) {\n parentDiv?.setAttribute('hidden', 'true');\n parentDiv?.setAttribute('aria-hidden', 'true');\n }\n if (isHydrationTarget) {\n if (!isWinningVariant) {\n parentDiv?.remove();\n }\n const thisScriptEl = document.currentScript;\n thisScriptEl?.remove();\n }\n return;\n}";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.7.
|
|
1
|
+
export declare const SDK_VERSION = "0.7.4";
|
package/vue3/lib/{edge/get-block-actions.b7d0a3c2.cjs → node/get-block-actions.50ea0112.cjs}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const o=require("./index.
|
|
1
|
+
"use strict";const o=require("./index.804c5a4a.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(o.TARGET){case"svelte":case"vue2":case"vue3":case"solid":return o.convertStyleMapToCSSArray(e).join(" ");case"qwik":case"reactNative":case"react":case"rsc":return e}}const p=e=>`v-on:${e.toLowerCase()}`,d=(e,t)=>r=>o.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 c=p(n);if(e.stripPrefix)switch(o.TARGET){case"vue2":case"vue3":c=c.replace("v-on:","");break;case"svelte":c=c.replace("on:","");break}t[c]=d(a,e)}return t}exports.getBlockActions=S;exports.getBlockProperties=f;
|
|
@@ -79,7 +79,7 @@ export declare const RenderContent: import("vue").DefineComponent<Readonly<{
|
|
|
79
79
|
} | undefined;
|
|
80
80
|
}[];
|
|
81
81
|
}, {
|
|
82
|
-
|
|
82
|
+
updateCookieAndStylesScriptStr(): string;
|
|
83
83
|
hideVariantsStyleString(): string;
|
|
84
84
|
defaultContent(): any;
|
|
85
85
|
}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|