@builder.io/sdk-vue 5.3.0 → 5.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/{awaiter-2uzflb3S.cjs → awaiter-4W3WT96K.cjs} +1 -1
- package/lib/browser/{awaiter-4aFQAEvG.js → awaiter-B8s77WBH.js} +1 -1
- package/lib/browser/{block-wrapper-1ItsXF0j.cjs → block-wrapper-7JoIxDbQ.cjs} +1 -1
- package/lib/browser/{block-wrapper-Uj0c_ct-.js → block-wrapper-kW5g4Okp.js} +3 -3
- package/lib/browser/blocks/symbol/symbol.helpers.d.ts +1 -0
- package/lib/browser/blocks/symbol/symbol.vue.d.ts +1 -0
- package/lib/browser/{component-ref-U0GRcehd.cjs → component-ref-4Utffff4.cjs} +1 -1
- package/lib/browser/{component-ref-826ipClg.js → component-ref-b7ywwGcW.js} +4 -4
- package/lib/browser/components/builder-scripts.vue.d.ts +18 -0
- package/lib/browser/components/content/content.helpers.d.ts +7 -1
- package/lib/browser/components/content/content.vue.d.ts +4 -0
- package/lib/browser/components/content-variants/content-variants.vue.d.ts +3 -0
- package/lib/browser/components/content-variants/helpers.d.ts +6 -0
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/context/builder-scripts.context.d.ts +7 -0
- package/lib/browser/{get-block-properties-XhHpZEJX.cjs → get-block-properties-89n-r4Af.cjs} +1 -1
- package/lib/browser/{get-block-properties-u3S8CkNp.js → get-block-properties-Y6tHbrsL.js} +1 -1
- package/lib/browser/index-6jB0_2he.cjs +368 -0
- package/lib/browser/index-helpers/blocks-exports.d.ts +1 -0
- package/lib/browser/{index-Jf8hjJYZ.js → index-ikowBLdB.js} +946 -882
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +22 -21
- package/lib/browser/{live-edit-BxSoS0rX.cjs → live-edit-3wlrF5Sa.cjs} +1 -1
- package/lib/browser/{live-edit-uev5ovOr.js → live-edit-OfF9nBpT.js} +1 -1
- package/lib/browser/{repeated-block-s-uTJJ2l.js → repeated-block-fVyfF5-2.js} +2 -2
- package/lib/browser/{repeated-block-Mj7AAxUa.cjs → repeated-block-mH_DZ94i.cjs} +1 -1
- package/lib/browser/{style-wrapper-WeOZ3wU5.js → style-wrapper-8rqiq_70.js} +1 -1
- package/lib/browser/{style-wrapper-C17hpa9C.cjs → style-wrapper-wQeSi9uI.cjs} +1 -1
- package/lib/browser/style.css +1 -1
- package/lib/edge/{awaiter-3P7HNK2U.js → awaiter--AIlZV5A.js} +1 -1
- package/lib/edge/{awaiter-tL_1GDRg.cjs → awaiter-o_usBqsR.cjs} +1 -1
- package/lib/{node/block-wrapper-e5lqTjH4.js → edge/block-wrapper-C3hvVlZR.js} +3 -3
- package/lib/edge/{block-wrapper-AJ9g81fv.cjs → block-wrapper-f0WB40t8.cjs} +1 -1
- package/lib/edge/blocks/symbol/symbol.helpers.d.ts +1 -0
- package/lib/edge/blocks/symbol/symbol.vue.d.ts +1 -0
- package/lib/edge/{component-ref-kOTGaG_S.cjs → component-ref-RH-KNtol.cjs} +1 -1
- package/lib/edge/{component-ref-2H6t6CVL.js → component-ref-palC2iTk.js} +4 -4
- package/lib/edge/components/builder-scripts.vue.d.ts +18 -0
- package/lib/edge/components/content/content.helpers.d.ts +7 -1
- package/lib/edge/components/content/content.vue.d.ts +4 -0
- package/lib/edge/components/content-variants/content-variants.vue.d.ts +3 -0
- package/lib/edge/components/content-variants/helpers.d.ts +6 -0
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/context/builder-scripts.context.d.ts +7 -0
- package/lib/edge/{get-block-properties-yDy5CcoJ.js → get-block-properties-J0RzfSzL.js} +1 -1
- package/lib/edge/{get-block-properties-Cf0JYe8s.cjs → get-block-properties-NK3aSNeI.cjs} +1 -1
- package/lib/edge/index-Mb5Ji_3B.cjs +386 -0
- package/lib/edge/{index-0OjD7npr.js → index-Rfy62Wro.js} +1481 -1417
- package/lib/edge/index-helpers/blocks-exports.d.ts +1 -0
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +25 -24
- package/lib/{node/live-edit-iCnhUEuS.cjs → edge/live-edit-FXVlWLQR.cjs} +1 -1
- package/lib/{node/live-edit-GfW2VTki.js → edge/live-edit-mAeB4Uu2.js} +1 -1
- package/lib/edge/{repeated-block-UG8Sns3u.js → repeated-block-_kq2y3Kn.js} +2 -2
- package/lib/edge/{repeated-block-d6gfiTTu.cjs → repeated-block-tuEDHoSp.cjs} +1 -1
- package/lib/edge/{style-wrapper-UpCDtTSA.js → style-wrapper-OSOobwM9.js} +1 -1
- package/lib/edge/{style-wrapper-pawaG9qF.cjs → style-wrapper-r8zHhlTM.cjs} +1 -1
- package/lib/edge/style.css +1 -1
- package/lib/node/{awaiter-AN3_pw27.js → awaiter-fR3-KaXu.js} +1 -1
- package/lib/node/{awaiter-bGTvqMbD.cjs → awaiter-y38jjnBK.cjs} +1 -1
- package/lib/node/{block-wrapper-uIhnB7Vo.cjs → block-wrapper-nPZjqj5H.cjs} +1 -1
- package/lib/{edge/block-wrapper-W6_AJxdH.js → node/block-wrapper-ofgM0xH0.js} +3 -3
- package/lib/node/blocks/symbol/symbol.helpers.d.ts +1 -0
- package/lib/node/blocks/symbol/symbol.vue.d.ts +1 -0
- package/lib/node/{component-ref-lBfIlbHs.js → component-ref-COeITsvM.js} +5 -5
- package/lib/node/{component-ref-hWkVL5In.cjs → component-ref-WO74XtUa.cjs} +1 -1
- package/lib/node/components/builder-scripts.vue.d.ts +18 -0
- package/lib/node/components/content/content.helpers.d.ts +7 -1
- package/lib/node/components/content/content.vue.d.ts +4 -0
- package/lib/node/components/content-variants/content-variants.vue.d.ts +3 -0
- package/lib/node/components/content-variants/helpers.d.ts +6 -0
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/context/builder-scripts.context.d.ts +7 -0
- package/lib/node/{get-block-properties-pMlEyIJy.js → get-block-properties-JDRIQ736.js} +2 -2
- package/lib/node/{get-block-properties-VD2nOy1H.cjs → get-block-properties-UHO1OvdN.cjs} +1 -1
- package/lib/node/index-TDsy_Sk9.cjs +368 -0
- package/lib/node/{index-xfji5jj1.js → index-_L3VFXAv.js} +832 -768
- package/lib/node/index-helpers/blocks-exports.d.ts +1 -0
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +25 -24
- package/lib/node/init.cjs +1 -1
- package/lib/node/init.mjs +1 -1
- package/lib/{edge/live-edit-hyHdyjeL.cjs → node/live-edit-QgZv9WDZ.cjs} +1 -1
- package/lib/{edge/live-edit-es0ntXpd.js → node/live-edit-u-OEPKCw.js} +1 -1
- package/lib/node/{repeated-block-RuIC6FQv.cjs → repeated-block--LS-nlbL.cjs} +1 -1
- package/lib/node/{repeated-block-hte-wY9-.js → repeated-block-rhmN1ohE.js} +2 -2
- package/lib/node/{should-force-browser-runtime-in-node-r2oi-Y6E.js → should-force-browser-runtime-in-node-CwJRQBSu.js} +1 -1
- package/lib/node/{should-force-browser-runtime-in-node-oNYv8BG3.cjs → should-force-browser-runtime-in-node-MVlZh-76.cjs} +2 -2
- package/lib/node/{style-wrapper-c9ma8_oR.cjs → style-wrapper-oChSWVYu.cjs} +1 -1
- package/lib/node/{style-wrapper-y6_fa2q6.js → style-wrapper-qHENiLRx.js} +2 -2
- package/lib/node/style.css +1 -1
- package/package.json +1 -1
- package/lib/browser/index-KofqhXXd.cjs +0 -368
- package/lib/edge/index-Vo2N3MOA.cjs +0 -386
- package/lib/node/index-3pN6fdOW.cjs +0 -368
|
@@ -7,6 +7,7 @@ export { default as Symbol } from '../blocks/symbol/index';
|
|
|
7
7
|
export { default as Text } from '../blocks/text/index';
|
|
8
8
|
export { default as Video } from '../blocks/video/index';
|
|
9
9
|
export { default as Blocks } from '../components/blocks/index';
|
|
10
|
+
export { default as BuilderScripts } from '../components/builder-scripts.vue';
|
|
10
11
|
export { default as Content } from '../components/content-variants/index';
|
|
11
12
|
/**
|
|
12
13
|
* Builder Context
|
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-Mb5Ji_3B.cjs");exports.Blocks=e.Blocks;exports.BuilderContext=e.BuilderContext;exports.BuilderScripts=e.builderScripts;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.registerAction=e.registerAction;exports.setClientUserAttributes=e.setClientUserAttributes;exports.setEditorSettings=e.setEditorSettings;exports.subscribeToEditor=e.subscribeToEditor;exports.track=e.track;
|
package/lib/edge/index.mjs
CHANGED
|
@@ -1,28 +1,29 @@
|
|
|
1
|
-
import { q as t, b as a,
|
|
1
|
+
import { q as t, b as a, r, n as i, C as n, s as o, F as c, I as g, S as u, o as l, p as d, V as m, H as C, v as p, G as B, J as E, K as S, A as b, i as f, u as h, x, y, t as A, z as P, E as k, D as v } from "./index-Rfy62Wro.js";
|
|
2
2
|
export {
|
|
3
3
|
t as Blocks,
|
|
4
4
|
a as BuilderContext,
|
|
5
|
-
r as
|
|
6
|
-
i as
|
|
7
|
-
n as
|
|
8
|
-
o as
|
|
9
|
-
c as
|
|
10
|
-
g as
|
|
11
|
-
u as
|
|
12
|
-
l as
|
|
13
|
-
d as
|
|
14
|
-
m as
|
|
15
|
-
C as
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
f as
|
|
22
|
-
h as
|
|
23
|
-
x as
|
|
24
|
-
y as
|
|
25
|
-
A as
|
|
26
|
-
P as
|
|
27
|
-
k as
|
|
5
|
+
r as BuilderScripts,
|
|
6
|
+
i as Button,
|
|
7
|
+
n as Columns,
|
|
8
|
+
o as Content,
|
|
9
|
+
c as Fragment,
|
|
10
|
+
g as Image,
|
|
11
|
+
u as Section,
|
|
12
|
+
l as Symbol,
|
|
13
|
+
d as Text,
|
|
14
|
+
m as Video,
|
|
15
|
+
C as _processContentResult,
|
|
16
|
+
p as createRegisterComponentMessage,
|
|
17
|
+
B as fetchBuilderProps,
|
|
18
|
+
E as fetchEntries,
|
|
19
|
+
S as fetchOneEntry,
|
|
20
|
+
b as getBuilderSearchParams,
|
|
21
|
+
f as isEditing,
|
|
22
|
+
h as isPreviewing,
|
|
23
|
+
x as register,
|
|
24
|
+
y as registerAction,
|
|
25
|
+
A as setClientUserAttributes,
|
|
26
|
+
P as setEditorSettings,
|
|
27
|
+
k as subscribeToEditor,
|
|
28
|
+
v as track
|
|
28
29
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),r=require("./find-block-FREohLcp.cjs"),n=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),r=require("./find-block-FREohLcp.cjs"),n=require("./index-Mb5Ji_3B.cjs"),i=t.defineComponent({name:"live-edit",props:["id","attributes","Wrapper"],inject:{context:n.BuilderContext.key},computed:{block(){return r.findBlockById(this.context.content,this.id)},options(){var e,o;return((o=(e=this.block)==null?void 0:e.component)==null?void 0:o.options)||{}}}});function s(e,o,p,u,d,a){return t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.Wrapper),t.mergeProps({attributes:e.attributes},e.options),{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},16,["attributes"])}const c=n._export_sfc(i,[["render",s]]);exports.default=c;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as o, openBlock as r, createBlock as n, resolveDynamicComponent as i, mergeProps as s, withCtx as p, renderSlot as a } from "vue";
|
|
2
2
|
import { f as c } from "./find-block-3Ig0kVVe.js";
|
|
3
|
-
import { b as d, _ as l } from "./index-
|
|
3
|
+
import { b as d, _ as l } from "./index-Rfy62Wro.js";
|
|
4
4
|
const m = o({
|
|
5
5
|
name: "live-edit",
|
|
6
6
|
props: ["id", "attributes", "Wrapper"],
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as t, defineAsyncComponent as n, resolveComponent as r, openBlock as p, createBlock as s } from "vue";
|
|
2
|
-
import { b as c, _ as i } from "./index-
|
|
3
|
-
const a = () => import("./index-
|
|
2
|
+
import { b as c, _ as i } from "./index-Rfy62Wro.js";
|
|
3
|
+
const a = () => import("./index-Rfy62Wro.js").then((e) => e.M).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
|
|
@@ -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-Mb5Ji_3B.cjs"),r=()=>Promise.resolve().then(()=>require("./index-Mb5Ji_3B.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}},watch:{onUpdateHook0:{handler(){this.store=this.repeatContext},immediate:!0}},computed:{onUpdateHook0(){return{0:this.repeatContext}}}});function s(e,p,l,a,d,m){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 i=t._export_sfc(c,[["render",s]]);exports.default=i;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as E, resolveComponent as x, openBlock as y, createBlock as g, createCommentVNode as N, createElementBlock as G, Fragment as H } from "vue";
|
|
2
|
-
import { c as R, T as w, d as C, f as W, h as j, j as l, k as u, l as z, _ as Q, m as U, b as D } from "./index-
|
|
2
|
+
import { c as R, T as w, d as C, f as W, h as j, j as l, k as u, l as z, _ as Q, m as U, b as D } from "./index-Rfy62Wro.js";
|
|
3
3
|
import { f as F } from "./find-block-3Ig0kVVe.js";
|
|
4
4
|
const L = E({
|
|
5
5
|
name: "block-styles",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),s=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),s=require("./index-Mb5Ji_3B.cjs"),_=require("./find-block-FREohLcp.cjs"),P=o.defineComponent({name:"block-styles",components:{InlinedStyles:s._sfc_main},props:["block","context"],data(){return{TARGET:s.TARGET}},computed:{canShowBlock(){const e=this.block;return s.checkIsDefined(e.hide)?!e.hide:s.checkIsDefined(e.show)?e.show:!0},css(){var S,h,B,C,f,v;const e=this.block,t=s.getResponsiveStylesWithImagePosition(e.responsiveStyles,((S=e.component)==null?void 0:S.name)==="Image"),n=this.context.content,l=s.getSizesForBreakpoints(((h=n==null?void 0:n.meta)==null?void 0:h.breakpoints)||{}),k=!!((C=(B=n==null?void 0:n.meta)==null?void 0:B.breakpoints)!=null&&C.xsmall),a=t==null?void 0:t.large,c=t==null?void 0:t.medium,d=t==null?void 0:t.small,r=t==null?void 0:t.xsmall,m=e.id;if(!m)return"";const b=a?s.createCssClass({className:m,styles:a}):"",g=c?s.createCssClass({className:m,styles:c,mediaQuery:s.getMaxWidthQueryForSize("medium",l)}):"",x=d?s.createCssClass({className:m,styles:d,mediaQuery:s.getMaxWidthQueryForSize("small",l)}):"",p=r&&k?s.createCssClass({className:m,styles:r,mediaQuery:s.getMaxWidthQueryForSize("xsmall",l)}):"",i=e.animations&&e.animations.find(u=>u.trigger==="hover");let y="";if(i){const u=((v=(f=i.steps)==null?void 0:f[1])==null?void 0:v.styles)||{};y=s.createCssClass({className:`${m}:hover`,styles:{...u,transition:`all ${i.duration}s ${s.camelToKebabCase(i.easing)}`,transitionDelay:i.delay?`${i.delay}s`:"0s"}})||""}return[b,g,x,p,y].join(" ")}}});function E(e,t,n,l,k,a){const c=o.resolveComponent("InlinedStyles");return e.TARGET!=="reactNative"&&e.css&&e.canShowBlock?(o.openBlock(),o.createBlock(c,{key:0,id:"builderio-block",styles:e.css,nonce:e.context.nonce},null,8,["styles","nonce"])):o.createCommentVNode("",!0)}const I=s._export_sfc(P,[["render",E]]),Q=o.defineComponent({name:"live-edit-block-styles",components:{InlinedStyles:s._sfc_main},props:["contextProvider","id"],data(){return{TARGET:s.TARGET}},computed:{block(){return _.findBlockById(this.contextProvider.content,this.id)},processedBlock(){var n;const e=this.block;return e?(n=e.repeat)!=null&&n.collection?e:s.getProcessedBlock({block:e,localState:this.contextProvider.localState,rootState:this.contextProvider.rootState,rootSetState:this.contextProvider.rootSetState,context:this.contextProvider.context}):null},canShowBlock(){var e,t,n,l;return s.checkIsDefined((e=this.processedBlock)==null?void 0:e.hide)?!((t=this.processedBlock)!=null&&t.hide):s.checkIsDefined((n=this.processedBlock)==null?void 0:n.show)?(l=this.processedBlock)==null?void 0:l.show:!0},css(){var y,S,h,B,C,f,v,u,T;const e=s.getResponsiveStylesWithImagePosition((y=this.processedBlock)==null?void 0:y.responsiveStyles,((h=(S=this.processedBlock)==null?void 0:S.component)==null?void 0:h.name)==="Image"),t=this.contextProvider.content,n=s.getSizesForBreakpoints(((B=t==null?void 0:t.meta)==null?void 0:B.breakpoints)||{}),l=!!((f=(C=t==null?void 0:t.meta)==null?void 0:C.breakpoints)!=null&&f.xsmall),k=e==null?void 0:e.large,a=e==null?void 0:e.medium,c=e==null?void 0:e.small,d=e==null?void 0:e.xsmall,r=(v=this.processedBlock)==null?void 0:v.id;if(!r)return"";const m=k?s.createCssClass({className:r,styles:k}):"",b=a?s.createCssClass({className:r,styles:a,mediaQuery:s.getMaxWidthQueryForSize("medium",n)}):"",g=c?s.createCssClass({className:r,styles:c,mediaQuery:s.getMaxWidthQueryForSize("small",n)}):"",x=d&&l?s.createCssClass({className:r,styles:d,mediaQuery:s.getMaxWidthQueryForSize("xsmall",n)}):"",p=this.processedBlock.animations&&this.processedBlock.animations.find($=>$.trigger==="hover");let i="";if(p){const $=((T=(u=p.steps)==null?void 0:u[1])==null?void 0:T.styles)||{};i=s.createCssClass({className:`${r}:hover`,styles:{...$,transition:`all ${p.duration}s ${s.camelToKebabCase(p.easing)}`,transitionDelay:p.delay?`${p.delay}s`:"0s"}})||""}return[m,b,g,x,i].join(" ")}}});function A(e,t,n,l,k,a){const c=o.resolveComponent("InlinedStyles");return e.TARGET==="rsc"&&e.css&&e.canShowBlock?(o.openBlock(),o.createBlock(c,{key:0,id:"builderio-block",styles:e.css,nonce:e.contextProvider.nonce},null,8,["styles","nonce"])):o.createCommentVNode("",!0)}const R=s._export_sfc(Q,[["render",A]]),W=o.defineComponent({name:"style-wrapper",components:{BlockStyles:I,LiveEditBlockStyles:R},props:["block","context"],data(){return{isClientEditing:!1,isHydrated:!1,TARGET:s.TARGET}},inject:{contextProvider:s.BuilderContext.key},mounted(){}});function z(e,t,n,l,k,a){const c=o.resolveComponent("LiveEditBlockStyles"),d=o.resolveComponent("BlockStyles");return e.isHydrated?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[e.TARGET==="rsc"&&e.isClientEditing?(o.openBlock(),o.createBlock(c,{key:0,id:e.block.id,contextProvider:e.contextProvider},null,8,["id","contextProvider"])):(o.openBlock(),o.createBlock(d,{key:1,block:e.block,context:e.context},null,8,["block","context"]))],64)):(o.openBlock(),o.createBlock(d,{key:1,block:e.block,context:e.context},null,8,["block","context"]))}const w=s._export_sfc(W,[["render",z]]);exports.default=w;
|
package/lib/edge/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.component-
|
|
1
|
+
.component-1zgn626bpbf[data-v-bab174f6]{display:flex;flex-direction:column;align-items:stretch}.div-20351ewpue7[data-v-b0ce0948]{display:flex;line-height:normal;height:100%}.img-1ifnufbde19[data-v-a28af777]{opacity:1;transition:opacity .2s ease-in-out}.div-1ifnufbde19[data-v-a28af777]{width:100%;pointer-events:none;font-size:0}.div-1ifnufbde19-2[data-v-a28af777]{display:flex;flex-direction:column;align-items:stretch;position:absolute;top:0;left:0;width:100%;height:100%}.pre-7fq9d0i380[data-v-d1f88a0c]{padding:10px;color:red;text-align:center}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-TDsy_Sk9.cjs"),n=e.defineComponent({name:"awaiter",props:[],mounted(){}});function o(t,a,c,i,u,d){return e.renderSlot(t.$slots,"default")}const s=r._export_sfc(n,[["render",o]]);exports.default=s;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),r=require("./get-block-properties-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),r=require("./get-block-properties-UHO1OvdN.cjs"),a=require("./index-TDsy_Sk9.cjs"),i=()=>Promise.resolve().then(()=>require("./index-TDsy_Sk9.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;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as r, defineAsyncComponent as a, resolveComponent as c, openBlock as i, createBlock as p, withCtx as s, renderSlot as l } from "vue";
|
|
2
|
-
import { g as m, a as d } from "./get-block-properties-
|
|
3
|
-
import { _ as k } from "./index-
|
|
4
|
-
const u = () => import("./index-
|
|
2
|
+
import { g as m, a as d } from "./get-block-properties-JDRIQ736.js";
|
|
3
|
+
import { _ as k } from "./index-_L3VFXAv.js";
|
|
4
|
+
const u = () => import("./index-_L3VFXAv.js").then((t) => t.G).then((t) => t.default).catch((t) => {
|
|
5
5
|
throw console.error(
|
|
6
6
|
"Error while attempting to dynamically import component DynamicRenderer at ../../dynamic-renderer/dynamic-renderer.vue",
|
|
7
7
|
t
|
|
@@ -10,6 +10,7 @@ export interface SymbolInfo {
|
|
|
10
10
|
ownerId?: string;
|
|
11
11
|
global?: boolean;
|
|
12
12
|
}
|
|
13
|
+
export declare const isSymbolContentInlinedInParent: (symbol: SymbolInfo | undefined, bindings: Record<string, string> | undefined) => boolean;
|
|
13
14
|
export declare const fetchSymbolContent: ({ builderContextValue, symbol }: {
|
|
14
15
|
symbol: SymbolInfo | undefined;
|
|
15
16
|
builderContextValue: BuilderContextInterface;
|
|
@@ -11,6 +11,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
11
11
|
contentToUse: any;
|
|
12
12
|
symbolEntry: any;
|
|
13
13
|
filterAttrs: typeof filterAttrs;
|
|
14
|
+
isSymbolContentInlinedInParent: (symbol: import("./symbol.helpers").SymbolInfo | undefined, bindings: Record<string, string> | undefined) => boolean;
|
|
14
15
|
}, {
|
|
15
16
|
blocksWrapper(): "div";
|
|
16
17
|
contentWrapper(): "div";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { defineComponent as h, defineAsyncComponent as u, resolveComponent as m, openBlock as o, createBlock as i, withCtx as p, renderSlot as d, createElementBlock as f, Fragment as b, resolveDynamicComponent as C, mergeProps as w, normalizeProps as W, renderList as y, createCommentVNode as B } from "vue";
|
|
2
|
-
import { _ as g, B as E, w as R } from "./index-
|
|
3
|
-
import { T as $, d as A } from "./should-force-browser-runtime-in-node-
|
|
4
|
-
import { a as v, g as S } from "./get-block-properties-
|
|
5
|
-
const T = () => import("./awaiter-
|
|
2
|
+
import { _ as g, B as E, w as R } from "./index-_L3VFXAv.js";
|
|
3
|
+
import { T as $, d as A } from "./should-force-browser-runtime-in-node-CwJRQBSu.js";
|
|
4
|
+
import { a as v, g as S } from "./get-block-properties-JDRIQ736.js";
|
|
5
|
+
const T = () => import("./awaiter-fR3-KaXu.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
|
-
}), I = () => import("./live-edit-
|
|
10
|
+
}), I = () => import("./live-edit-u-OEPKCw.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
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),p=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),p=require("./index-TDsy_Sk9.cjs"),d=require("./should-force-browser-runtime-in-node-MVlZh-76.cjs"),l=require("./get-block-properties-UHO1OvdN.cjs"),k=()=>Promise.resolve().then(()=>require("./awaiter-y38jjnBK.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component Awaiter at ../../awaiter.vue",e),e}),h=()=>Promise.resolve().then(()=>require("./live-edit-QgZv9WDZ.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component LiveEdit at ../../live-edit.vue",e),e}),b=t.defineComponent({name:"interactive-element",components:{LiveEdit:t.defineAsyncComponent(h),Awaiter:t.defineAsyncComponent(k)},props:["wrapperProps","block","includeBlockProps","context","Wrapper"],data(){return{forceRenderCount:0,TARGET:d.TARGET,isEditing:d.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 f(e,o,s,a,i,c){const r=t.resolveComponent("Awaiter"),n=t.resolveComponent("LiveEdit");return e.Wrapper.load?(t.openBlock(),t.createBlock(r,{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 m=p._export_sfc(b,[["render",f]]),C=({componentOptions:e,builderBlock:o,context:s,componentRef:a,includeBlockProps:i,isInteractive:c,contextValue:r})=>{const n={...e,...i?{attributes:l.getBlockProperties({block:o,context:r})}:{}};return c?{Wrapper:a,block:o,context:s,wrapperProps:e,includeBlockProps:i}:n},B=t.defineComponent({name:"component-ref",components:{Block:p.Block,InteractiveElement:m},props:["isInteractive","componentRef","blockChildren","componentOptions","builderBlock","context","linkComponent","includeBlockProps","registeredComponents"],data(){return{shouldUpdate:!1,Wrapper:this.isInteractive?p.wrapComponentRef(m):this.componentRef,getWrapperProps:C}},computed:{blockChildrenToRender(){return this.componentRef?this.blockChildren:[]}}});function v(e,o,s,a,i,c){const r=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,u)=>(t.openBlock(),t.createBlock(r,{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 g=p._export_sfc(B,[["render",v]]);exports.default=g;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Emits the Variant Container and A/B test helper scripts once for all `Content` components inside it.
|
|
3
|
+
*/
|
|
4
|
+
declare const _default: import("vue").DefineComponent<Readonly<{
|
|
5
|
+
nonce?: any;
|
|
6
|
+
}>, unknown, {
|
|
7
|
+
isSupported: boolean;
|
|
8
|
+
shouldRenderAbTestFns: boolean;
|
|
9
|
+
getInitPersonalizationVariantsFnsScriptString: () => string;
|
|
10
|
+
SDKS_SUPPORTING_PERSONALIZATION: import("../types/targets").Target[];
|
|
11
|
+
TARGET: import("../types/targets").Target;
|
|
12
|
+
getInitVariantsFnsScriptString: () => string;
|
|
13
|
+
}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
14
|
+
nonce?: any;
|
|
15
|
+
}>>>, {
|
|
16
|
+
readonly nonce?: any;
|
|
17
|
+
}, {}>;
|
|
18
|
+
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { RegisteredComponent, RegisteredComponents } from '../../context/types';
|
|
1
|
+
import type { BuilderRenderState, RegisteredComponent, RegisteredComponents } from '../../context/types';
|
|
2
2
|
import type { BuilderContent } from '../../types/builder-content';
|
|
3
3
|
import type { ComponentInfo } from '../../types/components';
|
|
4
4
|
import type { Dictionary, Nullable } from '../../types/typescript';
|
|
@@ -9,3 +9,9 @@ export declare const getRootStateInitialValue: ({ content, data, locale }: Pick<
|
|
|
9
9
|
locale?: string | undefined;
|
|
10
10
|
};
|
|
11
11
|
export declare const getContentInitialValue: ({ content, data }: Pick<ContentProps, 'content' | 'data'>) => Nullable<BuilderContent>;
|
|
12
|
+
/**
|
|
13
|
+
* A state object whose reads and writes go to whatever `getRootState` returns
|
|
14
|
+
* when they happen, for jsCode functions that outlive the root state object
|
|
15
|
+
* they were defined against.
|
|
16
|
+
*/
|
|
17
|
+
export declare const getLiveRootState: (getRootState: () => BuilderRenderState) => BuilderRenderState;
|
|
@@ -24,6 +24,10 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
24
24
|
isNestedRender?: any;
|
|
25
25
|
}>, unknown, {
|
|
26
26
|
scriptStr: string;
|
|
27
|
+
jsCodeRun: {
|
|
28
|
+
done: boolean;
|
|
29
|
+
rootState: BuilderRenderState | null;
|
|
30
|
+
};
|
|
27
31
|
registeredComponents: import("../../context/types").RegisteredComponents;
|
|
28
32
|
builderContextSignal: {
|
|
29
33
|
content: import("../../types/typescript").Nullable<import("../..").BuilderContent>;
|
|
@@ -19,6 +19,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
19
19
|
blocksWrapper?: any;
|
|
20
20
|
blocksWrapperProps?: any;
|
|
21
21
|
isNestedRender?: any;
|
|
22
|
+
isContentInlinedInParent?: any;
|
|
22
23
|
}>, unknown, {
|
|
23
24
|
shouldRenderVariants: boolean;
|
|
24
25
|
shouldEmitPersonalizationFns: boolean;
|
|
@@ -75,6 +76,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
75
76
|
blocksWrapper?: any;
|
|
76
77
|
blocksWrapperProps?: any;
|
|
77
78
|
isNestedRender?: any;
|
|
79
|
+
isContentInlinedInParent?: any;
|
|
78
80
|
}>>>, {
|
|
79
81
|
readonly data?: any;
|
|
80
82
|
readonly canTrack?: any;
|
|
@@ -96,5 +98,6 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
96
98
|
readonly blocksWrapper?: any;
|
|
97
99
|
readonly blocksWrapperProps?: any;
|
|
98
100
|
readonly isNestedRender?: any;
|
|
101
|
+
readonly isContentInlinedInParent?: any;
|
|
99
102
|
}, {}>;
|
|
100
103
|
export default _default;
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import type { Nullable } from '../../helpers/nullable';
|
|
2
2
|
import type { BuilderContent } from '../../types/builder-content';
|
|
3
|
+
import type { Target } from '../../types/targets';
|
|
4
|
+
/**
|
|
5
|
+
* SDKs where `BuilderScripts` can dedupe helper scripts. Elsewhere `Content` cannot read its context
|
|
6
|
+
* (RSC server components, Angular DI) or has no inline scripts (React Native).
|
|
7
|
+
*/
|
|
8
|
+
export declare const SDKS_SUPPORTING_BUILDER_SCRIPTS: Target[];
|
|
3
9
|
export declare const getVariants: (content: Nullable<BuilderContent>) => {
|
|
4
10
|
testVariationId: string | undefined;
|
|
5
11
|
id: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "5.
|
|
1
|
+
export declare const SDK_VERSION = "5.4.1";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as s } from "./should-force-browser-runtime-in-node-
|
|
2
|
-
import { e as c, g as i, a as l } from "./index-
|
|
1
|
+
import { T as s } from "./should-force-browser-runtime-in-node-CwJRQBSu.js";
|
|
2
|
+
import { e as c, g as i, a as l } from "./index-_L3VFXAv.js";
|
|
3
3
|
const p = (e) => `v-on:${e.toLowerCase()}`, f = (e, t) => (o) => c({
|
|
4
4
|
code: e,
|
|
5
5
|
context: t.context,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const a=require("./should-force-browser-runtime-in-node-
|
|
1
|
+
"use strict";const a=require("./should-force-browser-runtime-in-node-MVlZh-76.cjs"),c=require("./index-TDsy_Sk9.cjs"),i=e=>`v-on:${e.toLowerCase()}`,l=(e,t)=>o=>c.evaluate({code:e,context:t.context,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,event:o,isExpression:!1,trackingContext:t.trackingContext});function u(e){const t={},o=e.block.actions??{};for(const n in o){if(!o.hasOwnProperty(n))continue;const s=o[n];let r=i(n);if(e.stripPrefix)switch(a.TARGET){case"vue":r=r.replace("v-on:","");break;case"svelte":r=r.replace("on:","");break}t[r]=l(s,e)}return t}function p({properties:e}){return e}const d=e=>({href:e.href});function f({block:e,context:t}){var r;const{_newProperty:o,...n}=e.properties||{},s={...d(e),...n,"builder-id":e.id,style:c.getStyle({block:e,context:t}),[c.getClassPropName()]:[e.id,"builder-block",e.class,(r=e.properties)==null?void 0:r.class].filter(Boolean).join(" ")};return p({properties:s,context:t,block:e})}exports.getBlockActions=u;exports.getBlockProperties=f;
|