@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,4 +1,4 @@
|
|
|
1
|
-
"use strict";const n=require("./index-
|
|
1
|
+
"use strict";const n=require("./index-97feec80.cjs"),o=e=>e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase(),c=e=>Object.entries(e).map(([r,s])=>{if(typeof s=="string")return`${o(r)}: ${s};`}).filter(n.checkIsDefined),a=e=>c(e).join(`
|
|
2
2
|
`),i=({mediaQuery:e,className:t,styles:r})=>{const s=`.${t} {
|
|
3
3
|
${a(r)}
|
|
4
4
|
}`;return e?`${e} {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as o } from "./index-
|
|
1
|
+
import { c as o } from "./index-2e217cde.js";
|
|
2
2
|
const c = (s) => s.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), n = (s) => Object.entries(s).map(([r, e]) => {
|
|
3
3
|
if (typeof e == "string")
|
|
4
4
|
return `${c(r)}: ${e};`;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("vue"),r=require("./index-97feec80.cjs"),m=require("./evaluate-a7ecae47.cjs");function f(n){return Math.round(n*1e3)/1e3}const v=(n,e,t=!0)=>{if(!(n instanceof HTMLElement))return null;let i=t?n:n.parentElement;do{if(!i)return null;if(e(i))return i}while(i=i.parentElement);return null},x=n=>v(n,e=>{const t=e.getAttribute("builder-id")||e.id;return(t==null?void 0:t.indexOf("builder-"))===0}),g=({event:n,target:e})=>{const t=e.getBoundingClientRect(),i=n.clientX-t.left,o=n.clientY-t.top,s=f(i/t.width),a=f(o/t.height);return{x:s,y:a}},R=n=>{const e=n.target,t=e&&x(e),i=(t==null?void 0:t.getAttribute("builder-id"))||(t==null?void 0:t.id);return{targetBuilderElement:i||void 0,metadata:{targetOffset:e?g({event:n,target:e}):void 0,builderTargetOffset:t?g({event:n,target:t}):void 0,builderElementIndex:t&&i?[].slice.call(document.getElementsByClassName(i)).indexOf(t):void 0}}},k="0.7.4",w=()=>{r.register("insertMenu",{name:"_default",default:!0,items:[{name:"Box"},{name:"Text"},{name:"Image"},{name:"Columns"},{name:"Core:Section"},{name:"Core:Button"},{name:"Embed"},{name:"Custom Code"}]})};let b=!1;const y=(n={})=>{var e,t;b||(b=!0,r.isBrowser()&&((e=window.parent)==null||e.postMessage({type:"builder.sdkInfo",data:{target:r.TARGET,version:k,supportsPatchUpdates:!1,supportsAddBlockScoping:!0,supportsCustomBreakpoints:!0}},"*"),(t=window.parent)==null||t.postMessage({type:"builder.updateContent",data:{options:n}},"*"),window.addEventListener("message",({data:i})=>{var o,s;if(i!=null&&i.type)switch(i.type){case"builder.evaluate":{const a=i.data.text,l=i.data.arguments||[],c=i.data.id,C=new Function(a);let d,u=null;try{d=C.apply(null,l)}catch(h){u=h}u?(o=window.parent)==null||o.postMessage({type:"builder.evaluateError",data:{id:c,error:u.message}},"*"):d&&typeof d.then=="function"?d.then(h=>{var p;(p=window.parent)==null||p.postMessage({type:"builder.evaluateResult",data:{id:c,result:h}},"*")}).catch(console.error):(s=window.parent)==null||s.postMessage({type:"builder.evaluateResult",data:{result:d,id:c}},"*");break}}})))},_=S.defineComponent({name:"enable-editor",props:["builderContextSignal","model","context","canTrack","apiKey","locale","includeRefs","enrich","content","showContent"],data(){return{forceReRenderCount:0,lastUpdated:0,shouldSendResetCookie:!1,httpReqsData:{},clicked:!1,builderContext:r.builderContext}},provide(){const n=this;return{[r.builderContext.key]:n.builderContextSignal}},mounted(){(()=>{var t,i;if(r.isBrowser()){if(r.isEditing()&&this.$refs.elementRef&&this.$refs.elementRef.dispatchEvent(new CustomEvent("initeditingbldr")),this.builderContextSignal.content&&r.getDefaultCanTrack(this.canTrack)){const s=(t=this.builderContextSignal.content)==null?void 0:t.testVariationId,a=(i=this.builderContextSignal.content)==null?void 0:i.id,l=this.apiKey;r._track({type:"impression",canTrack:!0,contentId:a,apiKey:l,variationId:s!==a?s:void 0})}r.isPreviewing()&&this.$refs.elementRef&&this.$refs.elementRef.dispatchEvent(new CustomEvent("initpreviewingbldr"))}})(),(()=>{this.apiKey||r.logger.error("No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."),this.evaluateJsCode(),this.runHttpRequests(),this.emitStateUpdate()})()},watch:{onUpdateHook0:{handler(){this.content&&this.mergeNewContent(this.content)},immediate:!0},onUpdateHook1:{handler(){},immediate:!0},onUpdateHook2:{handler(){this.evaluateJsCode()},immediate:!0},onUpdateHook3:{handler(){this.runHttpRequests()},immediate:!0},onUpdateHook4:{handler(){this.emitStateUpdate()},immediate:!0}},unmounted(){r.isBrowser()&&(window.removeEventListener("message",this.processMessage),window.removeEventListener("builder:component:stateChangeListenerActivated",this.emitStateUpdate))},computed:{onUpdateHook0(){return{0:this.content}},onUpdateHook1(){return{0:this.shouldSendResetCookie}},onUpdateHook2(){var n,e;return{0:(e=(n=this.builderContextSignal.content)==null?void 0:n.data)==null?void 0:e.jsCode,1:this.builderContextSignal.rootState}},onUpdateHook3(){var n,e;return{0:(e=(n=this.builderContextSignal.content)==null?void 0:n.data)==null?void 0:e.httpRequests}},onUpdateHook4(){return{0:this.builderContextSignal.rootState}}},methods:{mergeNewContent(n){var t,i,o,s,a;const e={...this.builderContextSignal.content,...n,data:{...(t=this.builderContextSignal.content)==null?void 0:t.data,...n==null?void 0:n.data},meta:{...(i=this.builderContextSignal.content)==null?void 0:i.meta,...n==null?void 0:n.meta,breakpoints:((o=n==null?void 0:n.meta)==null?void 0:o.breakpoints)||((a=(s=this.builderContextSignal.content)==null?void 0:s.meta)==null?void 0:a.breakpoints)}};this.builderContextSignal.content=e},processMessage(n){var t;const{data:e}=n;if(e)switch(e.type){case"builder.configureSdk":{const i=e.data,{breakpoints:o,contentId:s}=i;if(!s||s!==((t=this.builderContextSignal.content)==null?void 0:t.id))return;o&&this.mergeNewContent({meta:{breakpoints:o}}),this.forceReRenderCount=this.forceReRenderCount+1;break}case"builder.contentUpdate":{const i=e.data,o=i.key||i.alias||i.entry||i.modelName,s=i.data;o===this.model&&(this.mergeNewContent(s),this.forceReRenderCount=this.forceReRenderCount+1);break}}},evaluateJsCode(){var e,t;const n=(t=(e=this.builderContextSignal.content)==null?void 0:e.data)==null?void 0:t.jsCode;n&&m.evaluate({code:n,context:this.context||{},localState:void 0,rootState:this.builderContextSignal.rootState,rootSetState:this.builderContextSignal.rootSetState})},onClick(n){var e,t;if(this.builderContextSignal.content){const i=(e=this.builderContextSignal.content)==null?void 0:e.testVariationId,o=(t=this.builderContextSignal.content)==null?void 0:t.id;r._track({type:"click",canTrack:r.getDefaultCanTrack(this.canTrack),contentId:o,apiKey:this.apiKey,variationId:i!==o?i:void 0,...R(n),unique:!this.clicked})}this.clicked||(this.clicked=!0)},evalExpression(n){return n.replace(/{{([^}]+)}}/g,(e,t)=>m.evaluate({code:t,context:this.context||{},localState:void 0,rootState:this.builderContextSignal.rootState,rootSetState:this.builderContextSignal.rootSetState}))},handleRequest({url:n,key:e}){r.fetch(n).then(t=>t.json()).then(t=>{var o,s;const i={...this.builderContextSignal.rootState,[e]:t};(s=(o=this.builderContextSignal).rootSetState)==null||s.call(o,i),this.httpReqsData[e]=!0}).catch(t=>{console.error("error fetching dynamic data",n,t)})},runHttpRequests(){var e,t;const n=((t=(e=this.builderContextSignal.content)==null?void 0:e.data)==null?void 0:t.httpRequests)??{};Object.entries(n).forEach(([i,o])=>{if(o&&(!this.httpReqsData[i]||r.isEditing())){const s=this.evalExpression(o);this.handleRequest({url:s,key:i})}})},emitStateUpdate(){r.isEditing()&&window.dispatchEvent(new CustomEvent("builder:component:stateChange",{detail:{state:r.fastClone(this.builderContextSignal.rootState),ref:{name:this.model}}}))},elementRef_onIniteditingbldr(n){this.forceReRenderCount=this.forceReRenderCount+1,window.addEventListener("message",this.processMessage),w(),y({...this.locale?{locale:this.locale}:{},...this.includeRefs?{includeRefs:this.includeRefs}:{},...this.enrich?{enrich:this.enrich}:{}}),Object.values(this.builderContextSignal.componentInfos).forEach(e=>{var i;const t=r.createRegisterComponentMessage(e);(i=window.parent)==null||i.postMessage(t,"*")}),window.addEventListener("builder:component:stateChangeListenerActivated",this.emitStateUpdate)},elementRef_onInitpreviewingbldr(n){const e=new URL(location.href).searchParams,t=e.get("builder.preview"),i=e.get(`builder.preview.${t}`),o=e.get("apiKey")||e.get("builder.space");t===this.model&&o===this.apiKey&&(!this.content||i===this.content.id)&&r.fetchOneEntry({model:this.model,apiKey:this.apiKey,apiVersion:this.builderContextSignal.apiVersion}).then(s=>{s&&this.mergeNewContent(s)})},_classStringToObject(n){const e={};if(typeof n!="string")return e;const t=n.trim().split(/\s+/);for(const i of t)e[i]=!0;return e}}});var E=function(){var i,o,s;var e=this,t=e._self._c;return e._self._setupProxy,e.builderContextSignal.content?t("div",e._b({key:e.forceReRenderCount,ref:"elementRef",class:e._classStringToObject(`variant-${((i=e.content)==null?void 0:i.testVariationId)||((o=e.content)==null?void 0:o.id)}`),attrs:{"builder-content-id":(s=e.builderContextSignal.content)==null?void 0:s.id,"builder-model":e.model},on:{click:function(a){return e.onClick(a)},initeditingbldr:function(a){return e.elementRef_onIniteditingbldr(a)},initpreviewingbldr:function(a){return e.elementRef_onInitpreviewingbldr(a)}}},"div",{...e.showContent?{}:{hidden:!0,"aria-hidden":!0}},!1),[e._t("default")],2):e._e()},I=[],M=r.normalizeComponent(_,E,I,!1,null,null,null,null);const U=M.exports;exports.default=U;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as k } from "vue";
|
|
2
|
-
import { r as w, m as p, T as y, l as f, _ as g, o as b, p as _, i as h, f as E, q as I, t as U, u as M, v as H, n as
|
|
3
|
-
import { e as S } from "./evaluate-
|
|
2
|
+
import { r as w, m as p, T as y, l as f, _ as g, o as b, p as _, i as h, f as E, q as I, t as U, u as M, v as H, n as T } from "./index-2e217cde.js";
|
|
3
|
+
import { e as S } from "./evaluate-a47066df.js";
|
|
4
4
|
function C(n) {
|
|
5
5
|
return Math.round(n * 1e3) / 1e3;
|
|
6
6
|
}
|
|
7
|
-
const
|
|
7
|
+
const P = (n, e, t = !0) => {
|
|
8
8
|
if (!(n instanceof HTMLElement))
|
|
9
9
|
return null;
|
|
10
10
|
let i = t ? n : n.parentElement;
|
|
@@ -15,7 +15,7 @@ const T = (n, e, t = !0) => {
|
|
|
15
15
|
return i;
|
|
16
16
|
} while (i = i.parentElement);
|
|
17
17
|
return null;
|
|
18
|
-
}, K = (n) =>
|
|
18
|
+
}, K = (n) => P(n, (e) => {
|
|
19
19
|
const t = e.getAttribute("builder-id") || e.id;
|
|
20
20
|
return (t == null ? void 0 : t.indexOf("builder-")) === 0;
|
|
21
21
|
}), v = ({
|
|
@@ -43,7 +43,7 @@ const T = (n, e, t = !0) => {
|
|
|
43
43
|
builderElementIndex: t && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(t) : void 0
|
|
44
44
|
}
|
|
45
45
|
};
|
|
46
|
-
}, O = "0.7.
|
|
46
|
+
}, O = "0.7.4", N = () => {
|
|
47
47
|
w("insertMenu", {
|
|
48
48
|
name: "_default",
|
|
49
49
|
default: !0,
|
|
@@ -137,8 +137,7 @@ const j = (n = {}) => {
|
|
|
137
137
|
"includeRefs",
|
|
138
138
|
"enrich",
|
|
139
139
|
"content",
|
|
140
|
-
"showContent"
|
|
141
|
-
"classNameProp"
|
|
140
|
+
"showContent"
|
|
142
141
|
],
|
|
143
142
|
data() {
|
|
144
143
|
return {
|
|
@@ -412,21 +411,21 @@ const j = (n = {}) => {
|
|
|
412
411
|
}
|
|
413
412
|
});
|
|
414
413
|
var L = function() {
|
|
415
|
-
var i;
|
|
414
|
+
var i, o, s;
|
|
416
415
|
var e = this, t = e._self._c;
|
|
417
|
-
return e._self._setupProxy, e.builderContextSignal.content ? t("div", e._b({ key: e.forceReRenderCount, ref: "elementRef", class: e._classStringToObject(e.
|
|
418
|
-
return e.onClick(
|
|
419
|
-
}, initeditingbldr: function(
|
|
420
|
-
return e.elementRef_onIniteditingbldr(
|
|
421
|
-
}, initpreviewingbldr: function(
|
|
422
|
-
return e.elementRef_onInitpreviewingbldr(
|
|
416
|
+
return e._self._setupProxy, e.builderContextSignal.content ? t("div", e._b({ key: e.forceReRenderCount, ref: "elementRef", class: e._classStringToObject(`variant-${((i = e.content) == null ? void 0 : i.testVariationId) || ((o = e.content) == null ? void 0 : o.id)}`), attrs: { "builder-content-id": (s = e.builderContextSignal.content) == null ? void 0 : s.id, "builder-model": e.model }, on: { click: function(a) {
|
|
417
|
+
return e.onClick(a);
|
|
418
|
+
}, initeditingbldr: function(a) {
|
|
419
|
+
return e.elementRef_onIniteditingbldr(a);
|
|
420
|
+
}, initpreviewingbldr: function(a) {
|
|
421
|
+
return e.elementRef_onInitpreviewingbldr(a);
|
|
423
422
|
} } }, "div", {
|
|
424
423
|
...e.showContent ? {} : {
|
|
425
424
|
hidden: !0,
|
|
426
425
|
"aria-hidden": !0
|
|
427
426
|
}
|
|
428
427
|
}, !1), [e._t("default")], 2) : e._e();
|
|
429
|
-
}, B = [],
|
|
428
|
+
}, B = [], V = /* @__PURE__ */ T(
|
|
430
429
|
A,
|
|
431
430
|
L,
|
|
432
431
|
B,
|
|
@@ -436,7 +435,7 @@ var L = function() {
|
|
|
436
435
|
null,
|
|
437
436
|
null
|
|
438
437
|
);
|
|
439
|
-
const J =
|
|
438
|
+
const J = V.exports;
|
|
440
439
|
export {
|
|
441
440
|
J as default
|
|
442
441
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const t=require("./index-
|
|
1
|
+
"use strict";const t=require("./index-97feec80.cjs"),l=({builder:r,context:e,event:n,state:i})=>Object.entries({state:i,Builder:r,builder:r,context:e,event:n}),a=()=>({isEditing:t.isEditing(),isBrowser:t.isBrowser(),isServer:!t.isBrowser(),getUserAttributes:()=>t.getUserAttributes()}),d=(r,{isExpression:e=!0})=>e&&!(r.includes(";")||r.includes(" return ")||r.trim().startsWith("return "))?`return (${r});`:r,w=({code:r,builder:e,context:n,event:i,localState:s,rootSetState:u,rootState:g})=>{const c=l({builder:e,context:n,event:i,state:f(g,s,u)});return new Function(...c.map(([o])=>o),r)(...c.map(([,o])=>o))};function f(r,e,n){if(r===e)throw new Error("rootState === localState");return new Proxy(r,{get:(i,s)=>e&&s in e?e[s]:r[s],set:(i,s,u)=>{if(e&&s in e)throw new Error("Writing to local state is not allowed as it is read-only.");return r[s]=u,n==null||n(r),!0}})}const v=r=>(t.isBrowser(),w(r));function B({code:r,context:e,localState:n,rootState:i,rootSetState:s,event:u,isExpression:g=!0}){if(r===""){t.logger.warn("Skipping evaluation of empty code block.");return}const c={code:d(r,{isExpression:g}),builder:a(),context:e,event:u,rootSetState:s,rootState:i,localState:n};try{return v(c)}catch(o){t.logger.error("Failed code evaluation: "+o.message,{code:r});return}}exports.evaluate=B;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const r=require("./index-
|
|
1
|
+
"use strict";const r=require("./index-97feec80.cjs"),s=require("./evaluate-a7ecae47.cjs"),l=e=>`v-on:${e.toLowerCase()}`,i=(e,t)=>o=>s.evaluate({code:e,context:t.context,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,event:o,isExpression:!1});function u(e){const t={},o=e.block.actions??{};for(const c in o){if(!o.hasOwnProperty(c))continue;const n=o[c];let a=l(c);if(e.stripPrefix)switch(r.TARGET){case"vue2":case"vue3":a=a.replace("v-on:","");break;case"svelte":a=a.replace("on:","");break}t[a]=i(n,e)}return t}exports.getBlockActions=u;
|
package/vue2/lib/{node/get-block-actions-1a6b19ce.js → browser/get-block-actions-b8cf2dfe.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as n } from "./index-
|
|
2
|
-
import { e as s } from "./evaluate-
|
|
1
|
+
import { T as n } from "./index-2e217cde.js";
|
|
2
|
+
import { e as s } from "./evaluate-a47066df.js";
|
|
3
3
|
const l = (e) => `v-on:${e.toLowerCase()}`, i = (e, t) => (o) => s({
|
|
4
4
|
code: e,
|
|
5
5
|
context: t.context,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const c=require("./index-
|
|
1
|
+
"use strict";const c=require("./index-97feec80.cjs"),n=require("./css-76c87435.cjs");function i(e){const t={};if(typeof e!="string")return t;const s=e.trim().split(/\\s+/);for(const r of s)t[r]=!0;return t}function o(e){return e.class=i(e.class),e}const a=e=>({href:e.href});function u({block:e,context:t}){var r;const s={...a(e),...e.properties,"builder-id":e.id,style:e.style?l(e.style):void 0,class:[e.id,"builder-block",e.class,(r=e.properties)==null?void 0:r.class].filter(Boolean).join(" ")};return o(s)}function l(e){switch(c.TARGET){case"svelte":case"vue2":case"vue3":case"solid":return n.convertStyleMapToCSSArray(e).join(" ");case"qwik":case"reactNative":case"react":case"rsc":return e}}exports.getBlockProperties=u;
|
package/vue2/lib/browser/{get-processed-block-981ce262.cjs → get-processed-block-00d8b4d9.cjs}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const d=require("./evaluate-
|
|
1
|
+
"use strict";const d=require("./evaluate-a7ecae47.cjs"),g=require("./index-97feec80.cjs"),f=(e,i,o)=>{if(Object(e)!==e)return e;const t=Array.isArray(i)?i:i.toString().match(/[^.[\]]+/g);return t.slice(0,-1).reduce((r,n,s)=>Object(r[n])===r[n]?r[n]:r[n]=Math.abs(Number(t[s+1]))>>0===+t[s+1]?[]:{},e)[t[t.length-1]]=o,e};const l=({block:e,context:i,localState:o,rootState:t,rootSetState:r})=>{if(!e.bindings)return e;const n=g.fastClone(e),s={...n,properties:{...n.properties},actions:{...n.actions}};for(const c in e.bindings){const u=e.bindings[c],a=d.evaluate({code:u,localState:o,rootState:t,rootSetState:r,context:i});f(s,c,a)}return s};function p({block:e,context:i,shouldEvaluateBindings:o,localState:t,rootState:r,rootSetState:n}){const s=e;return o?l({block:s,localState:t,rootState:r,rootSetState:n,context:i}):s}exports.getProcessedBlock=p;
|