@builder.io/sdk-vue 1.0.15 → 1.0.16
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/{block-styles-T4pQN2_K.js → block-styles-6TCYHFhw.js} +6 -5
- package/lib/browser/block-styles-Ms1wQqgK.cjs +1 -0
- package/lib/browser/{block-wrapper-BS6H_HBW.cjs → block-wrapper-8w1ok_04.cjs} +1 -1
- package/lib/browser/{block-wrapper-kApw6sWf.js → block-wrapper-TDrSjeun.js} +3 -3
- package/lib/browser/{component-ref-T_Bt-NXH.js → component-ref-3TnMqFsh.js} +2 -2
- package/lib/browser/{component-ref-J4lTvF63.cjs → component-ref-piWtyJuS.cjs} +1 -1
- package/lib/browser/components/content-variants/content-variants.vue.d.ts +1 -1
- package/lib/browser/components/content-variants/helpers.d.ts +1 -1
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/{get-block-properties-7bc31nNM.js → get-block-properties-swAAqr5Q.js} +1 -1
- package/lib/browser/{get-block-properties-WeCTcMri.cjs → get-block-properties-znBNJG9m.cjs} +1 -1
- package/lib/browser/{index-4mbHsvBx.js → index-JoCrt5Mj.js} +32 -18
- package/lib/browser/index-ZID1XPKY.cjs +166 -0
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.js +1 -1
- package/lib/browser/{repeated-block-yWT-i8YN.js → repeated-block-0mjIhErN.js} +2 -2
- package/lib/browser/{repeated-block--q5yqvlb.cjs → repeated-block-Aag6lq7R.cjs} +1 -1
- package/lib/browser/style.css +1 -1
- package/lib/edge/block-styles-gsIg0xFp.cjs +1 -0
- package/lib/{node/block-styles-rh7tEoHf.js → edge/block-styles-wHtoAtTy.js} +6 -5
- package/lib/edge/{block-wrapper-LGqW1WHl.js → block-wrapper-CHWNqOBk.js} +3 -3
- package/lib/{node/block-wrapper-cEkh_JGR.cjs → edge/block-wrapper-y134R03K.cjs} +1 -1
- package/lib/{node/component-ref-GxIWocaf.js → edge/component-ref-Jjo_mmFM.js} +2 -2
- package/lib/{node/component-ref-4MMqYT0r.cjs → edge/component-ref-dz-_8Rct.cjs} +1 -1
- package/lib/edge/components/content-variants/content-variants.vue.d.ts +1 -1
- package/lib/edge/components/content-variants/helpers.d.ts +1 -1
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/{get-block-properties-KmHAHG48.cjs → get-block-properties-nuJvnYlI.cjs} +1 -1
- package/lib/{node/get-block-properties-T27zvZZR.js → edge/get-block-properties-pA4T7Rp3.js} +1 -1
- package/lib/edge/{index-mgx2v7lM.js → index-cQ_3UsPy.js} +32 -18
- package/lib/edge/{index-8bjS2-PR.cjs → index-jlM1T4Q0.cjs} +12 -12
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.js +1 -1
- package/lib/edge/{repeated-block-VTXsyh8q.cjs → repeated-block-CRyZSIkn.cjs} +1 -1
- package/lib/edge/{repeated-block-zDw-Utg9.js → repeated-block-rzrX2Oxi.js} +2 -2
- package/lib/edge/style.css +1 -1
- package/lib/node/block-styles-VEtxLEov.cjs +1 -0
- package/lib/{edge/block-styles-LQO3VHOr.js → node/block-styles-_FqGGl6q.js} +6 -5
- package/lib/{edge/block-wrapper-0vi32HUX.cjs → node/block-wrapper-7jTb1ywg.cjs} +1 -1
- package/lib/node/{block-wrapper-MpN3sYhf.js → block-wrapper-L7vUm63u.js} +3 -3
- package/lib/{edge/component-ref-Wpu3G6M3.js → node/component-ref-KGHZuMWD.js} +2 -2
- package/lib/{edge/component-ref-dIn3f0RM.cjs → node/component-ref-abZqErrZ.cjs} +1 -1
- package/lib/node/components/content-variants/content-variants.vue.d.ts +1 -1
- package/lib/node/components/content-variants/helpers.d.ts +1 -1
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/{edge/get-block-properties-nQPKKZHn.js → node/get-block-properties-VsjMrc1l.js} +1 -1
- package/lib/node/{get-block-properties-B5QLQJm5.cjs → get-block-properties-xYp_r32a.cjs} +1 -1
- package/lib/node/{index-tdTNLVlt.js → index-t3tNER21.js} +36 -22
- package/lib/node/index-vItLZEt6.cjs +206 -0
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.js +1 -1
- package/lib/node/{repeated-block-8a9KznE-.cjs → repeated-block-v33kirpq.cjs} +1 -1
- package/lib/node/{repeated-block-XpohtcNq.js → repeated-block-xPkQgRw-.js} +2 -2
- package/lib/node/style.css +1 -1
- package/package.json +1 -1
- package/lib/browser/block-styles-JdWTcagf.cjs +0 -1
- package/lib/browser/index-Knuxd6qK.cjs +0 -166
- package/lib/edge/block-styles-FE8XgE6h.cjs +0 -1
- package/lib/node/block-styles-f5d_sXFZ.cjs +0 -1
- package/lib/node/index-Oh0XoTAq.cjs +0 -206
package/lib/edge/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-jlM1T4Q0.cjs");exports.Blocks=e.Blocks;exports.Button=e.Button;exports.Columns=e.Columns;exports.Content=e.ContentVariants;exports.Fragment=e.Fragment;exports.Image=e.Image;exports.Section=e.Section;exports.Symbol=e.Symbol;exports.Text=e.Text;exports.Video=e.Video;exports._processContentResult=e._processContentResult;exports.createRegisterComponentMessage=e.createRegisterComponentMessage;exports.fetchBuilderProps=e.fetchBuilderProps;exports.fetchEntries=e.fetchEntries;exports.fetchOneEntry=e.fetchOneEntry;exports.getBuilderSearchParams=e.getBuilderSearchParams;exports.isEditing=e.isEditing;exports.isPreviewing=e.isPreviewing;exports.register=e.register;exports.setEditorSettings=e.setEditorSettings;exports.subscribeToEditor=e.subscribeToEditor;exports.track=e.track;
|
package/lib/edge/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as a, k as t, C as r, o, F as i, I as n, S as c, l as g, m, V as l, z as u, r as d, y as p, A as C, D as E, u as S, p as f, q as h, s as B, t as b, x as k, v as x } from "./index-
|
|
1
|
+
import { n as a, k as t, C as r, o, F as i, I as n, S as c, l as g, m, V as l, z as u, r as d, y as p, A as C, D as E, u as S, p as f, q as h, s as B, t as b, x as k, v as x } from "./index-cQ_3UsPy.js";
|
|
2
2
|
export {
|
|
3
3
|
a as Blocks,
|
|
4
4
|
t as Button,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),t=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),t=require("./index-jlM1T4Q0.cjs"),r=()=>Promise.resolve().then(()=>require("./index-jlM1T4Q0.cjs")).then(e=>e.block).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component Block at ../block.vue",e),e}),c=o.defineComponent({name:"repeated-block",components:{Block:o.defineAsyncComponent(r)},props:["repeatContext","block","registeredComponents","linkComponent"],data(){return{store:this.repeatContext}},provide(){const e=this;return{[t.BuilderContext.key]:e.store}}});function s(e,i,p,a,m,d){const n=o.resolveComponent("block");return o.openBlock(),o.createBlock(n,{block:e.block,context:e.store,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent},null,8,["block","context","registeredComponents","linkComponent"])}const l=t._export_sfc(c,[["render",s]]);exports.default=l;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as t, defineAsyncComponent as n, resolveComponent as r, openBlock as c, createBlock as p } from "vue";
|
|
2
|
-
import { j as s, e as l } from "./index-
|
|
3
|
-
const i = () => import("./index-
|
|
2
|
+
import { j as s, e as l } from "./index-cQ_3UsPy.js";
|
|
3
|
+
const i = () => import("./index-cQ_3UsPy.js").then((e) => e.G).then((e) => e.default).catch((e) => {
|
|
4
4
|
throw console.error(
|
|
5
5
|
"Error while attempting to dynamically import component Block at ../block.vue",
|
|
6
6
|
e
|
package/lib/edge/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.component-1o2kztlxdt6[data-v-b8add99a]{display:flex;flex-direction:column;align-items:stretch}.div-2fnk003dqad[data-v-
|
|
1
|
+
.component-1o2kztlxdt6[data-v-b8add99a]{display:flex;flex-direction:column;align-items:stretch}.div-2fnk003dqad[data-v-4eaba73b]{display:flex;line-height:normal}.img-1be3j8m9ewb[data-v-c23615d2]{opacity:1;transition:opacity .2s ease-in-out}.div-1be3j8m9ewb[data-v-c23615d2]{width:100%;pointer-events:none;font-size:0}.div-1be3j8m9ewb-2[data-v-c23615d2]{display:flex;flex-direction:column;align-items:stretch;position:absolute;top:0;left:0;width:100%;height:100%}.pre-5vz8uirn7sc[data-v-541b06ed]{padding:10px;color:red;text-align:center}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("vue"),t=require("./index-vItLZEt6.cjs"),h=s.defineComponent({name:"block-styles",components:{InlinedStyles:t._sfc_main},props:["block","context"],data(){return{TARGET:t.TARGET}},computed:{canShowBlock(){const e=t.getProcessedBlock({block:this.block,localState:this.context.localState,rootState:this.context.rootState,rootSetState:this.context.rootSetState,context:this.context.context,shouldEvaluateBindings:!0});return t.checkIsDefined(e.hide)?!e.hide:t.checkIsDefined(e.show)?e.show:!0},css(){var d;const e=t.getProcessedBlock({block:this.block,localState:this.context.localState,rootState:this.context.rootState,rootSetState:this.context.rootSetState,context:this.context.context,shouldEvaluateBindings:!0}),o=e.responsiveStyles,c=this.context.content,r=t.getSizesForBreakpoints(((d=c==null?void 0:c.meta)==null?void 0:d.breakpoints)||{}),a=o==null?void 0:o.large,i=o==null?void 0:o.medium,n=o==null?void 0:o.small,l=e.id;if(!l)return"";const u=a?t.createCssClass({className:l,styles:a}):"",S=i?t.createCssClass({className:l,styles:i,mediaQuery:t.getMaxWidthQueryForSize("medium",r)}):"",m=n?t.createCssClass({className:l,styles:n,mediaQuery:t.getMaxWidthQueryForSize("small",r)}):"";return[u,S,m].join(" ")}}});function k(e,o,c,r,a,i){const n=s.resolveComponent("inlined-styles");return e.TARGET!=="reactNative"&&e.css&&e.canShowBlock?(s.openBlock(),s.createBlock(n,{key:0,id:"builderio-block",styles:e.css},null,8,["styles"])):s.createCommentVNode("",!0)}const p=t._export_sfc(h,[["render",k]]);exports.default=p;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as k, resolveComponent as y, openBlock as x, createBlock as f, createCommentVNode as
|
|
2
|
-
import { _, T as
|
|
1
|
+
import { defineComponent as k, resolveComponent as y, openBlock as x, createBlock as f, createCommentVNode as b } from "vue";
|
|
2
|
+
import { _ as B, T as _, g as d, c as m, a as g, b as r, d as S, e as C } from "./index-t3tNER21.js";
|
|
3
3
|
const v = k({
|
|
4
4
|
name: "block-styles",
|
|
5
|
-
components: { InlinedStyles:
|
|
5
|
+
components: { InlinedStyles: B },
|
|
6
6
|
props: ["block", "context"],
|
|
7
7
|
data() {
|
|
8
|
-
return { TARGET:
|
|
8
|
+
return { TARGET: _ };
|
|
9
9
|
},
|
|
10
10
|
computed: {
|
|
11
11
|
canShowBlock() {
|
|
@@ -59,8 +59,9 @@ function T(t, e, o, c, a, l) {
|
|
|
59
59
|
const s = y("inlined-styles");
|
|
60
60
|
return t.TARGET !== "reactNative" && t.css && t.canShowBlock ? (x(), f(s, {
|
|
61
61
|
key: 0,
|
|
62
|
+
id: "builderio-block",
|
|
62
63
|
styles: t.css
|
|
63
|
-
}, null, 8, ["styles"])) :
|
|
64
|
+
}, null, 8, ["styles"])) : b("", !0);
|
|
64
65
|
}
|
|
65
66
|
const E = /* @__PURE__ */ C(v, [["render", T]]);
|
|
66
67
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),o=require("./get-block-properties-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),o=require("./get-block-properties-xYp_r32a.cjs"),n=require("./index-vItLZEt6.cjs"),c=()=>Promise.resolve().then(()=>require("./index-vItLZEt6.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}),a=t.defineComponent({name:"block-wrapper",components:{DynamicRenderer:t.defineAsyncComponent(c)},props:["Wrapper","block","context"],data(){return{getBlockActions:o.getBlockActions,getBlockProperties:o.getBlockProperties}}});function i(e,l,p,d,m,u){const r=t.resolveComponent("dynamic-renderer");return t.openBlock(),t.createBlock(r,{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})},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["TagName","attributes","actionAttributes"])}const s=n._export_sfc(a,[["render",i]]);exports.default=s;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as o, defineAsyncComponent as r, resolveComponent as n, openBlock as a, createBlock as c, withCtx as i, renderSlot as p } from "vue";
|
|
2
|
-
import { g as s, a as l } from "./get-block-properties-
|
|
3
|
-
import { e as m } from "./index-
|
|
4
|
-
const d = () => import("./index-
|
|
2
|
+
import { g as s, a as l } from "./get-block-properties-VsjMrc1l.js";
|
|
3
|
+
import { e as m } from "./index-t3tNER21.js";
|
|
4
|
+
const d = () => import("./index-t3tNER21.js").then((e) => e.E).then((e) => e.default).catch((e) => {
|
|
5
5
|
throw console.error(
|
|
6
6
|
"Error while attempting to dynamically import component DynamicRenderer at ../../dynamic-renderer/dynamic-renderer.vue",
|
|
7
7
|
e
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as m, openBlock as r, createBlock as l, resolveDynamicComponent as k, mergeProps as d, withCtx as u, renderSlot as P, resolveComponent as B, normalizeProps as g, createElementBlock as $, Fragment as v, renderList as S, createCommentVNode as W } from "vue";
|
|
2
|
-
import { e as f, B as h, w } from "./index-
|
|
3
|
-
import { g as R, a as b } from "./get-block-properties-
|
|
2
|
+
import { e as f, B as h, w } from "./index-t3tNER21.js";
|
|
3
|
+
import { g as R, a as b } from "./get-block-properties-VsjMrc1l.js";
|
|
4
4
|
const I = m({
|
|
5
5
|
name: "interactive-element",
|
|
6
6
|
props: ["wrapperProps", "includeBlockProps", "block", "context", "Wrapper"],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),p=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),p=require("./index-vItLZEt6.cjs"),a=require("./get-block-properties-xYp_r32a.cjs"),u=o.defineComponent({name:"interactive-element",props:["wrapperProps","includeBlockProps","block","context","Wrapper"],data(){return{getBlockActions:a.getBlockActions,getBlockProperties:a.getBlockProperties}}});function d(e,t,c,l,n,s){return o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.Wrapper),o.mergeProps({attributes:e.includeBlockProps?{...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 k=p._export_sfc(u,[["render",d]]),B=({componentOptions:e,builderBlock:t,context:c,componentRef:l,includeBlockProps:n,isInteractive:s,contextValue:i})=>{const r={...e,...n?{attributes:a.getBlockProperties({block:t,context:i})}:{}};return s?{Wrapper:l,block:t,context:c,wrapperProps:e,includeBlockProps:n}:r},f=o.defineComponent({name:"component-ref",components:{Block:p.Block,InteractiveElement:k},props:["isInteractive","componentRef","componentOptions","builderBlock","context","linkComponent","includeBlockProps","blockChildren","registeredComponents"],data(){return{Wrapper:this.isInteractive?p.wrapComponentRef(k):this.componentRef,getWrapperProps:B}}});function b(e,t,c,l,n,s){const i=o.resolveComponent("block");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,linkComponent:e.linkComponent,includeBlockProps:e.includeBlockProps,isInteractive:e.isInteractive,contextValue:e.context}))),{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.blockChildren,(r,m)=>(o.openBlock(),o.createBlock(i,{key:r.id,block:r,context:e.context,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent},null,8,["block","context","registeredComponents","linkComponent"]))),128))]),_:1},16)):o.createCommentVNode("",!0)}const C=p._export_sfc(f,[["render",b]]);exports.default=C;
|
|
@@ -19,7 +19,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
19
19
|
}>, unknown, {
|
|
20
20
|
shouldRenderVariants: boolean;
|
|
21
21
|
TARGET: import("../../types/targets.js").Target;
|
|
22
|
-
|
|
22
|
+
getInitVariantsFnsScriptString: () => string;
|
|
23
23
|
getVariants: (content: import("../../helpers/nullable.js").Nullable<import("../../server-index.js").BuilderContent>) => {
|
|
24
24
|
testVariationId: string | undefined;
|
|
25
25
|
id: string | undefined;
|
|
@@ -32,7 +32,7 @@ type VariantData = {
|
|
|
32
32
|
id: string;
|
|
33
33
|
testRatio?: number;
|
|
34
34
|
};
|
|
35
|
-
export declare const
|
|
35
|
+
export declare const getInitVariantsFnsScriptString: () => string;
|
|
36
36
|
export declare const getUpdateCookieAndStylesScript: (variants: VariantData[], contentId: string) => string;
|
|
37
37
|
export declare const getUpdateVariantVisibilityScript: ({ contentId, variationId }: {
|
|
38
38
|
variationId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.0.
|
|
1
|
+
export declare const SDK_VERSION = "1.0.16";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const a=require("./index-
|
|
1
|
+
"use strict";const a=require("./index-vItLZEt6.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,enableCache:!0});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;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var v = (e, t, n) => (
|
|
1
|
+
var E = Object.defineProperty;
|
|
2
|
+
var $ = (e, t, n) => t in e ? E(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
+
var v = (e, t, n) => ($(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
4
4
|
import { defineComponent, openBlock, createElementBlock, Fragment as Fragment$1, createBlock, resolveDynamicComponent, mergeProps, toHandlers, withCtx, renderSlot, resolveComponent, createTextVNode, toDisplayString, defineAsyncComponent, createVNode, renderList, createCommentVNode, h, createElementVNode, normalizeStyle, normalizeClass, markRaw } from "vue";
|
|
5
5
|
import { createRequire } from "node:module";
|
|
6
6
|
const EMPTY_HTML_ELEMENTS = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), isEmptyElement = (e) => typeof e == "string" && EMPTY_HTML_ELEMENTS.has(e.toLowerCase());
|
|
@@ -696,22 +696,22 @@ const getComponent = ({
|
|
|
696
696
|
},
|
|
697
697
|
block: o
|
|
698
698
|
}));
|
|
699
|
-
}, BlockStyles = () => import("./block-styles-
|
|
699
|
+
}, BlockStyles = () => import("./block-styles-_FqGGl6q.js").then((e) => e.default).catch((e) => {
|
|
700
700
|
throw console.error(
|
|
701
701
|
"Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
|
|
702
702
|
e
|
|
703
703
|
), e;
|
|
704
|
-
}), BlockWrapper = () => import("./block-wrapper-
|
|
704
|
+
}), BlockWrapper = () => import("./block-wrapper-L7vUm63u.js").then((e) => e.default).catch((e) => {
|
|
705
705
|
throw console.error(
|
|
706
706
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
707
707
|
e
|
|
708
708
|
), e;
|
|
709
|
-
}), ComponentRef = () => import("./component-ref-
|
|
709
|
+
}), ComponentRef = () => import("./component-ref-KGHZuMWD.js").then((e) => e.default).catch((e) => {
|
|
710
710
|
throw console.error(
|
|
711
711
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
712
712
|
e
|
|
713
713
|
), e;
|
|
714
|
-
}), RepeatedBlock = () => import("./repeated-block-
|
|
714
|
+
}), RepeatedBlock = () => import("./repeated-block-xPkQgRw-.js").then((e) => e.default).catch((e) => {
|
|
715
715
|
throw console.error(
|
|
716
716
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
717
717
|
e
|
|
@@ -963,7 +963,10 @@ function _sfc_render$j(e, t, n, o, r, s) {
|
|
|
963
963
|
}
|
|
964
964
|
const Blocks = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render$j]]), _sfc_main$k = defineComponent({
|
|
965
965
|
render() {
|
|
966
|
-
return h("style", {
|
|
966
|
+
return h("style", {
|
|
967
|
+
innerHTML: this.styles,
|
|
968
|
+
"data-id": this.id
|
|
969
|
+
});
|
|
967
970
|
},
|
|
968
971
|
name: "inlined-styles",
|
|
969
972
|
props: ["styles", "id"]
|
|
@@ -1140,6 +1143,7 @@ function _sfc_render$i(e, t, n, o, r, s) {
|
|
|
1140
1143
|
}, {}), [
|
|
1141
1144
|
e.TARGET !== "reactNative" ? (openBlock(), createBlock(i, {
|
|
1142
1145
|
key: 0,
|
|
1146
|
+
id: "builderio-columns",
|
|
1143
1147
|
styles: e.columnsStyles
|
|
1144
1148
|
}, null, 8, ["styles"])) : createCommentVNode("", !0),
|
|
1145
1149
|
(openBlock(!0), createElementBlock(Fragment$1, null, renderList(e.columns, (c, u) => (openBlock(), createBlock(l, {
|
|
@@ -1171,7 +1175,7 @@ function _sfc_render$i(e, t, n, o, r, s) {
|
|
|
1171
1175
|
}, 1032, ["TagName", "attributes"]))), 128))
|
|
1172
1176
|
], 16);
|
|
1173
1177
|
}
|
|
1174
|
-
const Columns = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$i], ["__scopeId", "data-v-
|
|
1178
|
+
const Columns = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$i], ["__scopeId", "data-v-4eaba73b"]]), _sfc_main$i = defineComponent({
|
|
1175
1179
|
name: "builder-fragment-component",
|
|
1176
1180
|
props: []
|
|
1177
1181
|
});
|
|
@@ -3090,7 +3094,7 @@ const Video = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$5
|
|
|
3090
3094
|
})), checkShouldRenderVariants = ({
|
|
3091
3095
|
canTrack: e,
|
|
3092
3096
|
content: t
|
|
3093
|
-
}) => !(!(getVariants(t).length > 0) || !e), getIsHydrationTarget = (e) => e === "react" || e === "reactNative", isHydrationTarget = getIsHydrationTarget(TARGET),
|
|
3097
|
+
}) => !(!(getVariants(t).length > 0) || !e), getIsHydrationTarget = (e) => e === "react" || e === "reactNative", isHydrationTarget = getIsHydrationTarget(TARGET), getInitVariantsFnsScriptString = () => `
|
|
3094
3098
|
window.${UPDATE_COOKIES_AND_STYLES_SCRIPT_NAME} = ${UPDATE_COOKIES_AND_STYLES_SCRIPT}
|
|
3095
3099
|
window.${UPDATE_VARIANT_VISIBILITY_SCRIPT_FN_NAME} = ${UPDATE_VARIANT_VISIBILITY_SCRIPT}
|
|
3096
3100
|
`, getUpdateCookieAndStylesScript = (e, t) => `
|
|
@@ -3103,7 +3107,10 @@ const Video = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$5
|
|
|
3103
3107
|
"${t}", "${e}", ${isHydrationTarget}
|
|
3104
3108
|
)`, _sfc_main$5 = defineComponent({
|
|
3105
3109
|
render() {
|
|
3106
|
-
return h("script", {
|
|
3110
|
+
return h("script", {
|
|
3111
|
+
innerHTML: this.scriptStr,
|
|
3112
|
+
"data-id": this.id
|
|
3113
|
+
});
|
|
3107
3114
|
},
|
|
3108
3115
|
name: "inlined-script",
|
|
3109
3116
|
props: ["scriptStr", "id"]
|
|
@@ -3425,7 +3432,7 @@ function isFromTrustedHost(e, t) {
|
|
|
3425
3432
|
const n = new URL(t.origin), o = n.hostname;
|
|
3426
3433
|
return (e || DEFAULT_TRUSTED_HOSTS).findIndex((r) => r.startsWith("*.") ? o.endsWith(r.slice(1)) : r === o) > -1;
|
|
3427
3434
|
}
|
|
3428
|
-
const SDK_VERSION = "1.0.
|
|
3435
|
+
const SDK_VERSION = "1.0.16", registry = {};
|
|
3429
3436
|
function register(e, t) {
|
|
3430
3437
|
let n = registry[e];
|
|
3431
3438
|
if (n || (n = registry[e] = []), n.push(t), isBrowser()) {
|
|
@@ -3977,7 +3984,10 @@ ${getDefaultStyles(this.isNestedRender)}
|
|
|
3977
3984
|
});
|
|
3978
3985
|
function _sfc_render$3(e, t, n, o, r, s) {
|
|
3979
3986
|
const i = resolveComponent("inlined-styles");
|
|
3980
|
-
return openBlock(), createBlock(i, {
|
|
3987
|
+
return openBlock(), createBlock(i, {
|
|
3988
|
+
id: "builderio-content",
|
|
3989
|
+
styles: e.injectedStyles
|
|
3990
|
+
}, null, 8, ["styles"]);
|
|
3981
3991
|
}
|
|
3982
3992
|
const ContentStyles = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$3]]), getRootStateInitialValue = ({
|
|
3983
3993
|
content: e,
|
|
@@ -4126,6 +4136,7 @@ function _sfc_render$2(e, t, n, o, r, s) {
|
|
|
4126
4136
|
return [
|
|
4127
4137
|
e.isSsrAbTest ? (openBlock(), createBlock(i, {
|
|
4128
4138
|
key: 0,
|
|
4139
|
+
id: "builderio-variant-visibility",
|
|
4129
4140
|
scriptStr: e.scriptStr
|
|
4130
4141
|
}, null, 8, ["scriptStr"])) : createCommentVNode("", !0),
|
|
4131
4142
|
e.TARGET !== "reactNative" ? (openBlock(), createBlock(a, {
|
|
@@ -4179,7 +4190,7 @@ const ContentComponent = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _s
|
|
|
4179
4190
|
content: this.content
|
|
4180
4191
|
}),
|
|
4181
4192
|
TARGET,
|
|
4182
|
-
|
|
4193
|
+
getInitVariantsFnsScriptString,
|
|
4183
4194
|
getVariants
|
|
4184
4195
|
};
|
|
4185
4196
|
},
|
|
@@ -4213,23 +4224,26 @@ const ContentComponent = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _s
|
|
|
4213
4224
|
}
|
|
4214
4225
|
});
|
|
4215
4226
|
function _sfc_render$1(e, t, n, o, r, s) {
|
|
4216
|
-
var c;
|
|
4217
4227
|
const i = resolveComponent("inlined-script"), a = resolveComponent("inlined-styles"), l = resolveComponent("content-component");
|
|
4218
4228
|
return openBlock(), createElementBlock(Fragment$1, null, [
|
|
4219
4229
|
!e.isNestedRender && e.TARGET !== "reactNative" ? (openBlock(), createBlock(i, {
|
|
4220
4230
|
key: 0,
|
|
4221
|
-
|
|
4231
|
+
id: "builderio-init-variants-fns",
|
|
4232
|
+
scriptStr: e.getInitVariantsFnsScriptString()
|
|
4222
4233
|
}, null, 8, ["scriptStr"])) : createCommentVNode("", !0),
|
|
4223
4234
|
e.shouldRenderVariants ? (openBlock(), createElementBlock(Fragment$1, { key: 1 }, [
|
|
4224
4235
|
createVNode(a, {
|
|
4225
|
-
id:
|
|
4236
|
+
id: "builderio-variants",
|
|
4226
4237
|
styles: e.hideVariantsStyleString
|
|
4227
|
-
}, null, 8, ["
|
|
4228
|
-
createVNode(i, {
|
|
4229
|
-
|
|
4230
|
-
|
|
4238
|
+
}, null, 8, ["styles"]),
|
|
4239
|
+
createVNode(i, {
|
|
4240
|
+
id: "builderio-variants-visibility",
|
|
4241
|
+
scriptStr: e.updateCookieAndStylesScriptStr
|
|
4242
|
+
}, null, 8, ["scriptStr"]),
|
|
4243
|
+
(openBlock(!0), createElementBlock(Fragment$1, null, renderList(e.getVariants(e.content), (c, u) => (openBlock(), createBlock(l, {
|
|
4244
|
+
key: c.testVariationId,
|
|
4231
4245
|
isNestedRender: e.isNestedRender,
|
|
4232
|
-
content:
|
|
4246
|
+
content: c,
|
|
4233
4247
|
showContent: !1,
|
|
4234
4248
|
model: e.model,
|
|
4235
4249
|
data: e.data,
|