@builder.io/sdk-vue 5.1.1 → 5.2.2
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/lib/browser/{awaiter-NbFI2CU_.js → awaiter-PiTJ_7wp.js} +1 -1
- package/lib/browser/{awaiter-YRNWppS-.cjs → awaiter-hHorxjIR.cjs} +1 -1
- package/lib/browser/{block-wrapper-_4lEInw9.js → block-wrapper-8FiWiPra.js} +3 -3
- package/lib/browser/{block-wrapper-7ZGQAl5W.cjs → block-wrapper-v0E7yyzI.cjs} +1 -1
- package/lib/browser/blocks/symbol/symbol.helpers.d.ts +2 -0
- package/lib/browser/blocks/symbol/symbol.types.d.ts +2 -0
- package/lib/browser/{component-ref-A2Q0eDCA.cjs → component-ref-jU5sC23e.cjs} +1 -1
- package/lib/browser/{component-ref-S2rn5_QV.js → component-ref-u11yYjHx.js} +38 -33
- package/lib/browser/components/block/components/component-ref/component-ref.vue.d.ts +3 -1
- package/lib/browser/components/content-variants/content-variants.vue.d.ts +1 -0
- package/lib/browser/components/content-variants/helpers.d.ts +1 -0
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/{get-block-properties-PbwnoRP4.cjs → get-block-properties-AT7KmjRH.cjs} +1 -1
- package/lib/browser/{get-block-properties-Y9GlYFTe.js → get-block-properties-UD7oT_P6.js} +1 -1
- package/lib/browser/{index-OpNLmfCu.cjs → index-9zsNLjBY.cjs} +50 -20
- package/lib/browser/{index-HPQgrUEC.js → index-qBdmc4Tf.js} +296 -260
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{live-edit-tMAUVH2B.cjs → live-edit-9FW3XnJY.cjs} +1 -1
- package/lib/browser/{live-edit-8F1riCsR.js → live-edit-yO4ZTgek.js} +1 -1
- package/lib/browser/{repeated-block-C21nYjNB.js → repeated-block-7Kr5DU4s.js} +2 -2
- package/lib/browser/{repeated-block-YesIuQQG.cjs → repeated-block-HJlXpRlA.cjs} +1 -1
- package/lib/browser/{style-wrapper-toT_b35_.cjs → style-wrapper-NagZ3htF.cjs} +1 -1
- package/lib/browser/{style-wrapper-6gB537kz.js → style-wrapper-oGUCilmw.js} +1 -1
- package/lib/browser/style.css +1 -1
- package/lib/edge/{awaiter-Z1Aho-Tf.js → awaiter-acJdczkp.js} +1 -1
- package/lib/edge/{awaiter-GbCbMdxs.cjs → awaiter-yr8VAu_H.cjs} +1 -1
- package/lib/edge/{block-wrapper-SGs68mW-.cjs → block-wrapper-aEKGXQsG.cjs} +1 -1
- package/lib/{node/block-wrapper-P5y87ZAx.js → edge/block-wrapper-mCaWnoxQ.js} +3 -3
- package/lib/edge/blocks/symbol/symbol.helpers.d.ts +2 -0
- package/lib/edge/blocks/symbol/symbol.types.d.ts +2 -0
- package/lib/edge/{component-ref-v3RKtvga.js → component-ref-pA4-SwIs.js} +33 -28
- package/lib/edge/{component-ref-1HNLmjNP.cjs → component-ref-wzojJNtP.cjs} +1 -1
- package/lib/edge/components/block/components/component-ref/component-ref.vue.d.ts +3 -1
- package/lib/edge/components/content-variants/content-variants.vue.d.ts +1 -0
- package/lib/edge/components/content-variants/helpers.d.ts +1 -0
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/{get-block-properties-O8BCJSao.js → get-block-properties-T1Ci7dP5.js} +1 -1
- package/lib/edge/{get-block-properties-ju6Fj919.cjs → get-block-properties-vOCtFmny.cjs} +1 -1
- package/lib/edge/{index-x6Hu33ce.js → index-9d4BROG7.js} +544 -508
- package/lib/edge/{index-FjhQsct4.cjs → index-OZxVFmQK.cjs} +54 -24
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/{node/live-edit-Jp1PzpUr.cjs → edge/live-edit-DElUbmBW.cjs} +1 -1
- package/lib/{node/live-edit-61Hzovyk.js → edge/live-edit-oX2tpNY4.js} +1 -1
- package/lib/edge/{repeated-block-gmtzy89x.js → repeated-block-WFlqwuyL.js} +2 -2
- package/lib/edge/{repeated-block-ic1FaN4o.cjs → repeated-block-uS6k8BJT.cjs} +1 -1
- package/lib/edge/{style-wrapper-DFS-znzq.js → style-wrapper-QjzY0pp1.js} +1 -1
- package/lib/edge/{style-wrapper-Xaty5j6j.cjs → style-wrapper-UNbimac8.cjs} +1 -1
- package/lib/edge/style.css +1 -1
- package/lib/node/{awaiter-7GQ8utUb.cjs → awaiter-68BBjUeZ.cjs} +1 -1
- package/lib/node/{awaiter-MB_eWqp9.js → awaiter-j4ORMLjV.js} +1 -1
- package/lib/{edge/block-wrapper-sP32aCJj.js → node/block-wrapper-MpV_yto9.js} +3 -3
- package/lib/node/{block-wrapper--M33E0VG.cjs → block-wrapper-xbWj7xN4.cjs} +1 -1
- package/lib/node/blocks/symbol/symbol.helpers.d.ts +2 -0
- package/lib/node/blocks/symbol/symbol.types.d.ts +2 -0
- package/lib/node/{component-ref-RUGITshe.js → component-ref-FMaZUEHA.js} +45 -40
- package/lib/node/{component-ref-KETj2JRL.cjs → component-ref-gcCyaLPb.cjs} +1 -1
- package/lib/node/components/block/components/component-ref/component-ref.vue.d.ts +3 -1
- package/lib/node/components/content-variants/content-variants.vue.d.ts +1 -0
- package/lib/node/components/content-variants/helpers.d.ts +1 -0
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/{get-block-properties-Ec9Kj4p7.js → get-block-properties-OFyB13c0.js} +2 -2
- package/lib/node/{get-block-properties-Z9QEqFjm.cjs → get-block-properties-xyodoUq1.cjs} +1 -1
- package/lib/node/{index-WS6d-d4F.cjs → index-INlBMXV-.cjs} +49 -19
- package/lib/node/{index-TvY2gce_.js → index-TU01S1LU.js} +263 -227
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +2 -2
- package/lib/node/init.cjs +1 -1
- package/lib/node/init.mjs +1 -1
- package/lib/{edge/live-edit-v7-_17wH.js → node/live-edit-047YZnu-.js} +1 -1
- package/lib/{edge/live-edit-VsbDXDK9.cjs → node/live-edit-g3b-brGl.cjs} +1 -1
- package/lib/node/{repeated-block-9JRCsGOV.cjs → repeated-block-EcOLRgeJ.cjs} +1 -1
- package/lib/node/{repeated-block-Nh0O2sxg.js → repeated-block-om1ZGsyQ.js} +2 -2
- package/lib/node/{should-force-browser-runtime-in-node-xByMtVKh.cjs → should-force-browser-runtime-in-node-A9wQILFE.cjs} +1 -1
- package/lib/node/{should-force-browser-runtime-in-node-ghF-DZhu.js → should-force-browser-runtime-in-node-dW9p7rxg.js} +1 -1
- package/lib/node/{style-wrapper-y344qWFp.js → style-wrapper-2Rqb9g04.js} +2 -2
- package/lib/node/{style-wrapper-rXB6kp1P.cjs → style-wrapper-lvW1HnEu.cjs} +1 -1
- package/lib/node/style.css +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
var p=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-
|
|
1
|
+
var p=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-9zsNLjBY.cjs"),n=e.defineComponent({name:"awaiter",props:[],mounted(){}});function o(t,a,i,c,u,d){return e.renderSlot(t.$slots,"default")}const s=r._export_sfc(n,[["render",o]]);exports.default=s;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
2
|
import { defineComponent as r, defineAsyncComponent as a, resolveComponent as c, openBlock as i, createBlock as p, withCtx as s, renderSlot as l } from "vue";
|
|
3
|
-
import { g as m, a as d } from "./get-block-properties-
|
|
4
|
-
import { _ as k } from "./index-
|
|
5
|
-
const u = () => import("./index-
|
|
3
|
+
import { g as m, a as d } from "./get-block-properties-UD7oT_P6.js";
|
|
4
|
+
import { _ as k } from "./index-qBdmc4Tf.js";
|
|
5
|
+
const u = () => import("./index-qBdmc4Tf.js").then((t) => t.J).then((t) => t.default).catch((t) => {
|
|
6
6
|
throw console.error(
|
|
7
7
|
"Error while attempting to dynamically import component DynamicRenderer at ../../dynamic-renderer/dynamic-renderer.vue",
|
|
8
8
|
t
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var b=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),r=require("./get-block-properties-
|
|
1
|
+
var b=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),r=require("./get-block-properties-AT7KmjRH.cjs"),a=require("./index-9zsNLjBY.cjs"),i=()=>Promise.resolve().then(()=>require("./index-9zsNLjBY.cjs")).then(e=>e.dynamicRenderer).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component DynamicRenderer at ../../dynamic-renderer/dynamic-renderer.vue",e),e}),s=t.defineComponent({name:"block-wrapper",components:{DynamicRenderer:t.defineAsyncComponent(i)},props:["Wrapper","block","context"],data(){return{getBlockActions:r.getBlockActions,getBlockProperties:r.getBlockProperties}}});function l(e,d,m,u,k,y){var o,n;const c=t.resolveComponent("DynamicRenderer");return t.openBlock(),t.createBlock(c,{TagName:e.Wrapper,attributes:e.getBlockProperties({block:e.block,context:e.context}),actionAttributes:e.getBlockActions({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context,stripPrefix:!0,trackingContext:{apiKey:e.context.apiKey,canTrack:e.context.canTrack??!0,contentId:(o=e.context.content)==null?void 0:o.id,variationId:(n=e.context.content)==null?void 0:n.testVariationId}})},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["TagName","attributes","actionAttributes"])}const p=a._export_sfc(s,[["render",l]]);exports.default=p;
|
|
@@ -7,6 +7,8 @@ export interface SymbolInfo {
|
|
|
7
7
|
content?: BuilderContent;
|
|
8
8
|
inline?: boolean;
|
|
9
9
|
dynamic?: boolean;
|
|
10
|
+
ownerId?: string;
|
|
11
|
+
global?: boolean;
|
|
10
12
|
}
|
|
11
13
|
export interface SymbolProps extends BuilderComponentsProp, BuilderDataProps, BuilderLinkComponentProp {
|
|
12
14
|
symbol?: SymbolInfo;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var g=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),r=require("./index-
|
|
1
|
+
var g=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),r=require("./index-9zsNLjBY.cjs"),l=require("./get-block-properties-AT7KmjRH.cjs"),u=()=>Promise.resolve().then(()=>require("./awaiter-hHorxjIR.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component Awaiter at ../../awaiter.vue",e),e}),k=()=>Promise.resolve().then(()=>require("./live-edit-9FW3XnJY.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component LiveEdit at ../../live-edit.vue",e),e}),h=t.defineComponent({name:"interactive-element",components:{LiveEdit:t.defineAsyncComponent(k),Awaiter:t.defineAsyncComponent(u)},props:["wrapperProps","block","includeBlockProps","context","Wrapper"],data(){return{forceRenderCount:0,TARGET:r.TARGET,isEditing:r.isEditing}},watch:{onUpdateHook0:{handler(){},immediate:!0}},computed:{attributes(){var e,o;return this.includeBlockProps?{...l.getBlockProperties({block:this.block,context:this.context}),...l.getBlockActions({block:this.block,rootState:this.context.rootState,rootSetState:this.context.rootSetState,localState:this.context.localState,context:this.context.context,trackingContext:{apiKey:this.context.apiKey,canTrack:this.context.canTrack??!0,contentId:(e=this.context.content)==null?void 0:e.id,variationId:(o=this.context.content)==null?void 0:o.testVariationId}})}:{}},targetWrapperProps(){return{...this.wrapperProps,...Object.keys(this.attributes).length>0?{attributes:this.attributes}:{}}},onUpdateHook0(){var e,o;return{0:this.wrapperProps,1:(o=(e=this.block)==null?void 0:e.component)==null?void 0:o.options}}}});function b(e,o,a,s,p,c){const i=t.resolveComponent("Awaiter"),n=t.resolveComponent("LiveEdit");return e.Wrapper.load?(t.openBlock(),t.createBlock(i,{key:0,load:e.Wrapper.load,fallback:e.Wrapper.fallback,props:e.wrapperProps,attributes:e.attributes},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["load","fallback","props","attributes"])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.TARGET==="rsc"&&e.isEditing()?(t.openBlock(),t.createBlock(n,{key:0,Wrapper:e.Wrapper,id:e.block.id||"",attributes:e.attributes},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["Wrapper","id","attributes"])):(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.Wrapper),t.mergeProps({key:1,attributes:e.attributes},e.targetWrapperProps),{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},16,["attributes"]))],64))}const d=r._export_sfc(h,[["render",b]]),f=({componentOptions:e,builderBlock:o,context:a,componentRef:s,includeBlockProps:p,isInteractive:c,contextValue:i})=>{const n={...e,...p?{attributes:l.getBlockProperties({block:o,context:i})}:{}};return c?{Wrapper:s,block:o,context:a,wrapperProps:e,includeBlockProps:p}:n},C=t.defineComponent({name:"component-ref",components:{Block:r.Block,InteractiveElement:d},props:["isInteractive","componentRef","blockChildren","componentOptions","builderBlock","context","linkComponent","includeBlockProps","registeredComponents"],data(){return{shouldUpdate:!1,Wrapper:this.isInteractive?r.wrapComponentRef(d):this.componentRef,getWrapperProps:f}},computed:{blockChildrenToRender(){return this.componentRef?this.blockChildren:[]}}});function B(e,o,a,s,p,c){const i=t.resolveComponent("Block");return e.componentRef?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.Wrapper),t.normalizeProps(t.mergeProps({key:0},e.getWrapperProps({componentOptions:e.componentOptions,builderBlock:e.builderBlock,context:e.context,componentRef:e.componentRef,linkComponent:e.linkComponent,includeBlockProps:e.includeBlockProps,isInteractive:e.isInteractive,contextValue:e.context}))),{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.blockChildrenToRender,(n,m)=>(t.openBlock(),t.createBlock(i,{key:n.id,block:n,context:e.context,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent},null,8,["block","context","registeredComponents","linkComponent"]))),128))]),_:1},16)):t.createCommentVNode("",!0)}const v=r._export_sfc(C,[["render",B]]);exports.default=v;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
|
-
import { defineComponent as h, defineAsyncComponent as u, resolveComponent as
|
|
3
|
-
import { T as E, i as
|
|
4
|
-
import { a as
|
|
5
|
-
const
|
|
2
|
+
import { defineComponent as h, defineAsyncComponent as u, resolveComponent as m, openBlock as o, createBlock as i, withCtx as p, renderSlot as d, createElementBlock as b, Fragment as f, resolveDynamicComponent as C, mergeProps as w, normalizeProps as W, renderList as y, createCommentVNode as B } from "vue";
|
|
3
|
+
import { T as E, i as R, _ as g, B as $, w as A } from "./index-qBdmc4Tf.js";
|
|
4
|
+
import { a as v, g as S } from "./get-block-properties-UD7oT_P6.js";
|
|
5
|
+
const T = () => import("./awaiter-PiTJ_7wp.js").then((t) => t.default).catch((t) => {
|
|
6
6
|
throw console.error(
|
|
7
7
|
"Error while attempting to dynamically import component Awaiter at ../../awaiter.vue",
|
|
8
8
|
t
|
|
9
9
|
), t;
|
|
10
|
-
}),
|
|
10
|
+
}), I = () => import("./live-edit-yO4ZTgek.js").then((t) => t.default).catch((t) => {
|
|
11
11
|
throw console.error(
|
|
12
12
|
"Error while attempting to dynamically import component LiveEdit at ../../live-edit.vue",
|
|
13
13
|
t
|
|
@@ -15,12 +15,12 @@ const I = () => import("./awaiter-NbFI2CU_.js").then((t) => t.default).catch((t)
|
|
|
15
15
|
}), L = h({
|
|
16
16
|
name: "interactive-element",
|
|
17
17
|
components: {
|
|
18
|
-
LiveEdit: u(
|
|
19
|
-
Awaiter: u(
|
|
18
|
+
LiveEdit: u(I),
|
|
19
|
+
Awaiter: u(T)
|
|
20
20
|
},
|
|
21
21
|
props: ["wrapperProps", "block", "includeBlockProps", "context", "Wrapper"],
|
|
22
22
|
data() {
|
|
23
|
-
return { forceRenderCount: 0, TARGET: E, isEditing:
|
|
23
|
+
return { forceRenderCount: 0, TARGET: E, isEditing: R };
|
|
24
24
|
},
|
|
25
25
|
watch: {
|
|
26
26
|
onUpdateHook0: { handler() {
|
|
@@ -30,7 +30,7 @@ const I = () => import("./awaiter-NbFI2CU_.js").then((t) => t.default).catch((t)
|
|
|
30
30
|
attributes() {
|
|
31
31
|
var t, e;
|
|
32
32
|
return this.includeBlockProps ? {
|
|
33
|
-
...
|
|
33
|
+
...v({
|
|
34
34
|
block: this.block,
|
|
35
35
|
context: this.context
|
|
36
36
|
}),
|
|
@@ -66,9 +66,9 @@ const I = () => import("./awaiter-NbFI2CU_.js").then((t) => t.default).catch((t)
|
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
});
|
|
69
|
-
function O(t, e, s, c,
|
|
70
|
-
const r =
|
|
71
|
-
return t.Wrapper.load ? (o(),
|
|
69
|
+
function O(t, e, s, c, a, l) {
|
|
70
|
+
const r = m("Awaiter"), n = m("LiveEdit");
|
|
71
|
+
return t.Wrapper.load ? (o(), i(r, {
|
|
72
72
|
key: 0,
|
|
73
73
|
load: t.Wrapper.load,
|
|
74
74
|
fallback: t.Wrapper.fallback,
|
|
@@ -76,37 +76,37 @@ function O(t, e, s, c, i, l) {
|
|
|
76
76
|
attributes: t.attributes
|
|
77
77
|
}, {
|
|
78
78
|
default: p(() => [
|
|
79
|
-
|
|
79
|
+
d(t.$slots, "default")
|
|
80
80
|
]),
|
|
81
81
|
_: 3
|
|
82
|
-
}, 8, ["load", "fallback", "props", "attributes"])) : (o(), b(
|
|
83
|
-
t.TARGET === "rsc" && t.isEditing() ? (o(),
|
|
82
|
+
}, 8, ["load", "fallback", "props", "attributes"])) : (o(), b(f, { key: 1 }, [
|
|
83
|
+
t.TARGET === "rsc" && t.isEditing() ? (o(), i(n, {
|
|
84
84
|
key: 0,
|
|
85
85
|
Wrapper: t.Wrapper,
|
|
86
86
|
id: t.block.id || "",
|
|
87
87
|
attributes: t.attributes
|
|
88
88
|
}, {
|
|
89
89
|
default: p(() => [
|
|
90
|
-
|
|
90
|
+
d(t.$slots, "default")
|
|
91
91
|
]),
|
|
92
92
|
_: 3
|
|
93
|
-
}, 8, ["Wrapper", "id", "attributes"])) : (o(),
|
|
93
|
+
}, 8, ["Wrapper", "id", "attributes"])) : (o(), i(C(t.Wrapper), w({
|
|
94
94
|
key: 1,
|
|
95
95
|
attributes: t.attributes
|
|
96
96
|
}, t.targetWrapperProps), {
|
|
97
97
|
default: p(() => [
|
|
98
|
-
|
|
98
|
+
d(t.$slots, "default")
|
|
99
99
|
]),
|
|
100
100
|
_: 3
|
|
101
101
|
}, 16, ["attributes"]))
|
|
102
102
|
], 64));
|
|
103
103
|
}
|
|
104
|
-
const
|
|
104
|
+
const k = /* @__PURE__ */ g(L, [["render", O]]), U = ({
|
|
105
105
|
componentOptions: t,
|
|
106
106
|
builderBlock: e,
|
|
107
107
|
context: s,
|
|
108
108
|
componentRef: c,
|
|
109
|
-
includeBlockProps:
|
|
109
|
+
includeBlockProps: a,
|
|
110
110
|
isInteractive: l,
|
|
111
111
|
contextValue: r
|
|
112
112
|
}) => {
|
|
@@ -116,8 +116,8 @@ const f = /* @__PURE__ */ v(L, [["render", O]]), U = ({
|
|
|
116
116
|
* If `noWrap` is set to `true`, then the block's props/attributes are provided to the
|
|
117
117
|
* component itself directly. Otherwise, they are provided to the wrapper element.
|
|
118
118
|
*/
|
|
119
|
-
...
|
|
120
|
-
attributes:
|
|
119
|
+
...a ? {
|
|
120
|
+
attributes: v({
|
|
121
121
|
block: e,
|
|
122
122
|
context: r
|
|
123
123
|
})
|
|
@@ -128,33 +128,38 @@ const f = /* @__PURE__ */ v(L, [["render", O]]), U = ({
|
|
|
128
128
|
block: e,
|
|
129
129
|
context: s,
|
|
130
130
|
wrapperProps: t,
|
|
131
|
-
includeBlockProps:
|
|
131
|
+
includeBlockProps: a
|
|
132
132
|
} : n;
|
|
133
133
|
}, V = h({
|
|
134
134
|
name: "component-ref",
|
|
135
|
-
components: { Block:
|
|
135
|
+
components: { Block: $, InteractiveElement: k },
|
|
136
136
|
props: [
|
|
137
137
|
"isInteractive",
|
|
138
138
|
"componentRef",
|
|
139
|
+
"blockChildren",
|
|
139
140
|
"componentOptions",
|
|
140
141
|
"builderBlock",
|
|
141
142
|
"context",
|
|
142
143
|
"linkComponent",
|
|
143
144
|
"includeBlockProps",
|
|
144
|
-
"blockChildren",
|
|
145
145
|
"registeredComponents"
|
|
146
146
|
],
|
|
147
147
|
data() {
|
|
148
148
|
return {
|
|
149
149
|
shouldUpdate: !1,
|
|
150
|
-
Wrapper: this.isInteractive ? A(
|
|
150
|
+
Wrapper: this.isInteractive ? A(k) : this.componentRef,
|
|
151
151
|
getWrapperProps: U
|
|
152
152
|
};
|
|
153
|
+
},
|
|
154
|
+
computed: {
|
|
155
|
+
blockChildrenToRender() {
|
|
156
|
+
return this.componentRef ? this.blockChildren : [];
|
|
157
|
+
}
|
|
153
158
|
}
|
|
154
159
|
});
|
|
155
|
-
function G(t, e, s, c,
|
|
156
|
-
const r =
|
|
157
|
-
return t.componentRef ? (o(),
|
|
160
|
+
function G(t, e, s, c, a, l) {
|
|
161
|
+
const r = m("Block");
|
|
162
|
+
return t.componentRef ? (o(), i(C(t.Wrapper), W(w(
|
|
158
163
|
{ key: 0 },
|
|
159
164
|
t.getWrapperProps({
|
|
160
165
|
componentOptions: t.componentOptions,
|
|
@@ -168,18 +173,18 @@ function G(t, e, s, c, i, l) {
|
|
|
168
173
|
})
|
|
169
174
|
)), {
|
|
170
175
|
default: p(() => [
|
|
171
|
-
|
|
176
|
+
(o(!0), b(f, null, y(t.blockChildrenToRender, (n, P) => (o(), i(r, {
|
|
172
177
|
key: n.id,
|
|
173
178
|
block: n,
|
|
174
179
|
context: t.context,
|
|
175
180
|
registeredComponents: t.registeredComponents,
|
|
176
181
|
linkComponent: t.linkComponent
|
|
177
|
-
}, null, 8, ["block", "context", "registeredComponents", "linkComponent"]))), 128))
|
|
182
|
+
}, null, 8, ["block", "context", "registeredComponents", "linkComponent"]))), 128))
|
|
178
183
|
]),
|
|
179
184
|
_: 1
|
|
180
|
-
}, 16)) :
|
|
185
|
+
}, 16)) : B("", !0);
|
|
181
186
|
}
|
|
182
|
-
const D = /* @__PURE__ */
|
|
187
|
+
const D = /* @__PURE__ */ g(V, [["render", G]]);
|
|
183
188
|
export {
|
|
184
189
|
D as default
|
|
185
190
|
};
|
|
@@ -25,7 +25,9 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
25
25
|
builderBlock: import("../../../..").BuilderBlock;
|
|
26
26
|
builderContext: import("../../../..").BuilderContextInterface;
|
|
27
27
|
};
|
|
28
|
-
}, {
|
|
28
|
+
}, {
|
|
29
|
+
blockChildrenToRender(): any;
|
|
30
|
+
}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
29
31
|
context?: any;
|
|
30
32
|
builderBlock?: any;
|
|
31
33
|
linkComponent?: any;
|
|
@@ -48,6 +48,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
48
48
|
breakpoints?: import("../../types/typescript").Nullable<import("../../types/builder-content").Breakpoints>;
|
|
49
49
|
} | undefined;
|
|
50
50
|
}[];
|
|
51
|
+
removeDuplicateScript: (id: string, scriptStr: string) => string;
|
|
51
52
|
}, {
|
|
52
53
|
updateCookieAndStylesScriptStr(): string;
|
|
53
54
|
hideVariantsStyleString(): string;
|
|
@@ -32,6 +32,7 @@ type VariantData = {
|
|
|
32
32
|
id: string;
|
|
33
33
|
testRatio?: number;
|
|
34
34
|
};
|
|
35
|
+
export declare const removeDuplicateScript: (id: string, scriptStr: string) => string;
|
|
35
36
|
export declare const getInitVariantsFnsScriptString: () => string;
|
|
36
37
|
export declare const getUpdateCookieAndStylesScript: (variants: VariantData[], contentId: string) => string;
|
|
37
38
|
export declare const getUpdateVariantVisibilityScript: ({ contentId, variationId }: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "5.
|
|
1
|
+
export declare const SDK_VERSION = "5.2.2";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var d=require("./style.css");const a=require("./index-
|
|
1
|
+
var d=require("./style.css");const a=require("./index-9zsNLjBY.cjs"),c=e=>`v-on:${e.toLowerCase()}`,i=(e,t)=>r=>a.evaluate({code:e,context:t.context,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,event:r,isExpression:!1,trackingContext:t.trackingContext});function l(e){const t={},r=e.block.actions??{};for(const o in r){if(!r.hasOwnProperty(o))continue;const s=r[o];let n=c(o);if(e.stripPrefix)switch(a.TARGET){case"vue":n=n.replace("v-on:","");break;case"svelte":n=n.replace("on:","");break}t[n]=i(s,e)}return t}function u({properties:e}){return e}const f=e=>({href:e.href});function p({block:e,context:t}){var o;const r={...f(e),...e.properties,"builder-id":e.id,style:a.getStyle({block:e,context:t}),[a.getClassPropName()]:[e.id,"builder-block",e.class,(o=e.properties)==null?void 0:o.class].filter(Boolean).join(" ")};return u({properties:r,context:t,block:e})}exports.getBlockActions=l;exports.getBlockProperties=p;
|