@builder.io/sdk-vue 5.1.0 → 5.2.0

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.
Files changed (121) hide show
  1. package/lib/browser/{awaiter-GjRYxPnU.cjs → awaiter-Xj7xgU8A.cjs} +1 -1
  2. package/lib/browser/{awaiter-5WjT5CVy.js → awaiter-fiHMd9OX.js} +1 -1
  3. package/lib/browser/block-wrapper-2d_iPFQQ.js +51 -0
  4. package/lib/browser/block-wrapper-lKLgKxgH.cjs +1 -0
  5. package/lib/browser/blocks/form/form/form.vue.d.ts +3 -3
  6. package/lib/browser/blocks/form/input/input.vue.d.ts +3 -3
  7. package/lib/browser/blocks/symbol/symbol.helpers.d.ts +2 -0
  8. package/lib/browser/blocks/symbol/symbol.types.d.ts +2 -0
  9. package/lib/browser/component-ref-Bo_fwbYK.cjs +1 -0
  10. package/lib/browser/component-ref-YEfZKvMy.js +185 -0
  11. package/lib/browser/components/content/components/enable-editor.vue.d.ts +9 -9
  12. package/lib/browser/components/content/components/styles.vue.d.ts +3 -3
  13. package/lib/browser/components/content/content.vue.d.ts +9 -9
  14. package/lib/browser/components/content-variants/content-variants.vue.d.ts +9 -9
  15. package/lib/browser/components/inlined-script.vue.d.ts +3 -3
  16. package/lib/browser/components/inlined-styles.vue.d.ts +3 -3
  17. package/lib/browser/constants/sdk-version.d.ts +1 -1
  18. package/lib/browser/functions/evaluate/evaluate.d.ts +1 -1
  19. package/lib/browser/functions/evaluate/helpers.d.ts +9 -1
  20. package/lib/browser/functions/get-block-actions-handler.d.ts +2 -0
  21. package/lib/browser/functions/get-block-actions.d.ts +2 -0
  22. package/lib/{edge/get-block-properties--YFzBEV7.js → browser/get-block-properties-5nuoWf39.js} +9 -7
  23. package/lib/browser/get-block-properties-d-Ruoi4f.cjs +1 -0
  24. package/lib/browser/index-1GET5eOz.cjs +334 -0
  25. package/lib/browser/{index-EQdaCBDB.js → index-eVqO7_Qb.js} +475 -459
  26. package/lib/browser/index.cjs +1 -1
  27. package/lib/browser/index.mjs +1 -1
  28. package/lib/browser/{live-edit-tO-V6Sv7.js → live-edit-9paJdIsz.js} +1 -1
  29. package/lib/browser/{live-edit-Jion_iv8.cjs → live-edit-ETOoXz63.cjs} +1 -1
  30. package/lib/browser/{repeated-block-kNj6mfjr.js → repeated-block-A24n6o-E.js} +2 -2
  31. package/lib/browser/{repeated-block-uNYlrd8d.cjs → repeated-block-RfWox6Ev.cjs} +1 -1
  32. package/lib/browser/{style-wrapper-jthdwC6f.cjs → style-wrapper-GTejPbe6.cjs} +1 -1
  33. package/lib/browser/{style-wrapper-CSSH3Epu.js → style-wrapper-tibcUSpL.js} +1 -1
  34. package/lib/edge/{awaiter-0PdAd6k-.cjs → awaiter-SdqgCFCT.cjs} +1 -1
  35. package/lib/edge/{awaiter-OJqvwrja.js → awaiter-rbgcBB2Y.js} +1 -1
  36. package/lib/edge/block-wrapper-DYh1gucy.js +50 -0
  37. package/lib/edge/block-wrapper-WT0fK9OQ.cjs +1 -0
  38. package/lib/edge/blocks/form/form/form.vue.d.ts +3 -3
  39. package/lib/edge/blocks/form/input/input.vue.d.ts +3 -3
  40. package/lib/edge/blocks/symbol/symbol.helpers.d.ts +2 -0
  41. package/lib/edge/blocks/symbol/symbol.types.d.ts +2 -0
  42. package/lib/edge/component-ref-14bWdw0y.js +184 -0
  43. package/lib/edge/component-ref-Ari_o8qM.cjs +1 -0
  44. package/lib/edge/components/content/components/enable-editor.vue.d.ts +9 -9
  45. package/lib/edge/components/content/components/styles.vue.d.ts +3 -3
  46. package/lib/edge/components/content/content.vue.d.ts +9 -9
  47. package/lib/edge/components/content-variants/content-variants.vue.d.ts +9 -9
  48. package/lib/edge/components/inlined-script.vue.d.ts +3 -3
  49. package/lib/edge/components/inlined-styles.vue.d.ts +3 -3
  50. package/lib/edge/constants/sdk-version.d.ts +1 -1
  51. package/lib/edge/functions/evaluate/evaluate.d.ts +1 -1
  52. package/lib/edge/functions/evaluate/helpers.d.ts +9 -1
  53. package/lib/edge/functions/get-block-actions-handler.d.ts +2 -0
  54. package/lib/edge/functions/get-block-actions.d.ts +2 -0
  55. package/lib/{browser/get-block-properties-dmm_DIxo.js → edge/get-block-properties-6j21Yx4_.js} +17 -17
  56. package/lib/edge/get-block-properties-kMAb8z5D.cjs +1 -0
  57. package/lib/edge/{index-ljVeDS39.cjs → index-2Armmtcs.cjs} +17 -17
  58. package/lib/edge/{index-Agn-gjHJ.js → index-unVH2XRb.js} +848 -832
  59. package/lib/edge/index.cjs +1 -1
  60. package/lib/edge/index.mjs +1 -1
  61. package/lib/{node/live-edit-jWT4dXgM.cjs → edge/live-edit-gMqK1-U2.cjs} +1 -1
  62. package/lib/{node/live-edit-E90Rueqo.js → edge/live-edit-yXkE9pDV.js} +1 -1
  63. package/lib/{node/repeated-block-gCLdrEyt.js → edge/repeated-block-F4oPiI78.js} +2 -2
  64. package/lib/edge/{repeated-block-GaabRNMP.cjs → repeated-block-Y0Z3ldLT.cjs} +1 -1
  65. package/lib/edge/{style-wrapper-I1DS5PUP.js → style-wrapper-Ad7ABy2Z.js} +1 -1
  66. package/lib/edge/{style-wrapper-MIBe_b13.cjs → style-wrapper-sL972lDH.cjs} +1 -1
  67. package/lib/node/{awaiter-qP3UIYQS.js → awaiter-_ZqW9w8N.js} +1 -1
  68. package/lib/node/{awaiter-ZX8mvzyL.cjs → awaiter-i0lAEAYI.cjs} +1 -1
  69. package/lib/node/block-wrapper-Bv_s1rr1.cjs +1 -0
  70. package/lib/node/block-wrapper-CnMu7UjK.js +50 -0
  71. package/lib/node/blocks/form/form/form.vue.d.ts +3 -3
  72. package/lib/node/blocks/form/input/input.vue.d.ts +3 -3
  73. package/lib/node/blocks/symbol/symbol.helpers.d.ts +2 -0
  74. package/lib/node/blocks/symbol/symbol.types.d.ts +2 -0
  75. package/lib/node/component-ref-LWytt0tD.cjs +1 -0
  76. package/lib/node/component-ref-lU9WFg32.js +185 -0
  77. package/lib/node/components/content/components/enable-editor.vue.d.ts +9 -9
  78. package/lib/node/components/content/components/styles.vue.d.ts +3 -3
  79. package/lib/node/components/content/content.vue.d.ts +9 -9
  80. package/lib/node/components/content-variants/content-variants.vue.d.ts +9 -9
  81. package/lib/node/components/inlined-script.vue.d.ts +3 -3
  82. package/lib/node/components/inlined-styles.vue.d.ts +3 -3
  83. package/lib/node/constants/sdk-version.d.ts +1 -1
  84. package/lib/node/functions/evaluate/evaluate.d.ts +1 -1
  85. package/lib/node/functions/evaluate/helpers.d.ts +9 -1
  86. package/lib/node/functions/get-block-actions-handler.d.ts +2 -0
  87. package/lib/node/functions/get-block-actions.d.ts +2 -0
  88. package/lib/node/{get-block-properties-o5VoFlz_.js → get-block-properties-oSP4WCJG.js} +18 -17
  89. package/lib/node/get-block-properties-sdbm535D.cjs +1 -0
  90. package/lib/node/{index-SH8gdiHf.js → index-9Wxomhx_.js} +702 -900
  91. package/lib/node/{index-AumTeVyL.cjs → index-z7Ed9MEJ.cjs} +30 -30
  92. package/lib/node/index.cjs +1 -1
  93. package/lib/node/index.mjs +11 -11
  94. package/lib/node/init.cjs +1 -1
  95. package/lib/node/init.mjs +1 -1
  96. package/lib/{edge/live-edit-TWpZ33A7.js → node/live-edit-ZjrPT1e_.js} +1 -1
  97. package/lib/{edge/live-edit-nHq1I7ij.cjs → node/live-edit-nQPgUSEF.cjs} +1 -1
  98. package/lib/node/{repeated-block-4pHYUEBM.cjs → repeated-block-G-7Wr2Ub.cjs} +1 -1
  99. package/lib/{edge/repeated-block-_wYfLmVg.js → node/repeated-block-zGwBOU59.js} +2 -2
  100. package/lib/node/{should-force-browser-runtime-in-node-5h08TaCf.js → should-force-browser-runtime-in-node-0jTQ7bdA.js} +261 -41
  101. package/lib/node/should-force-browser-runtime-in-node-kkE7IeZS.cjs +48 -0
  102. package/lib/node/{style-wrapper-7nh-8JLA.cjs → style-wrapper-QZvOi8Ur.cjs} +1 -1
  103. package/lib/node/{style-wrapper-1rHE_XSt.js → style-wrapper-QtIk1dHP.js} +10 -10
  104. package/package.json +1 -1
  105. package/lib/browser/block-wrapper-8v7I2JSB.cjs +0 -1
  106. package/lib/browser/block-wrapper-s3-0mqGr.js +0 -44
  107. package/lib/browser/component-ref-8g4g9kyF.js +0 -178
  108. package/lib/browser/component-ref-r7lSDLc0.cjs +0 -1
  109. package/lib/browser/get-block-properties-GPPIll7t.cjs +0 -1
  110. package/lib/browser/index-Treb985Y.cjs +0 -334
  111. package/lib/edge/block-wrapper-DfG53TBm.cjs +0 -1
  112. package/lib/edge/block-wrapper-LzMR5J5q.js +0 -43
  113. package/lib/edge/component-ref-30u-bbmm.js +0 -177
  114. package/lib/edge/component-ref-VTMpfeME.cjs +0 -1
  115. package/lib/edge/get-block-properties-yv9bFXVp.cjs +0 -1
  116. package/lib/node/block-wrapper-3FbaAWv9.js +0 -43
  117. package/lib/node/block-wrapper-mEOIfHOk.cjs +0 -1
  118. package/lib/node/component-ref-DHpSqIaD.cjs +0 -1
  119. package/lib/node/component-ref-MKSj3oym.js +0 -178
  120. package/lib/node/get-block-properties-b4xkM8mc.cjs +0 -1
  121. package/lib/node/should-force-browser-runtime-in-node-IsToRTN-.cjs +0 -48
@@ -1 +1 @@
1
- var t=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-Treb985Y.cjs");exports.Blocks=e.Blocks;exports.BuilderContext=e.BuilderContext;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;
1
+ var t=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-1GET5eOz.cjs");exports.Blocks=e.Blocks;exports.BuilderContext=e.BuilderContext;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;
@@ -1,5 +1,5 @@
1
1
  import "./style.css";
2
- import { p as a, b as r, m as i, C as o, q as n, F as c, I as g, S as m, n as u, o as l, V as d, E as C, t as p, D as E, G as b, H as B, y as S, i as f, r as h, u as x, v as y, s as A, x as P, A as k, z as v } from "./index-EQdaCBDB.js";
2
+ import { p as a, b as r, m as i, C as o, q as n, F as c, I as g, S as m, n as u, o as l, V as d, E as C, t as p, D as E, G as b, H as B, y as S, i as f, r as h, u as x, v as y, s as A, x as P, A as k, z as v } from "./index-eVqO7_Qb.js";
3
3
  export {
4
4
  a as Blocks,
5
5
  r as BuilderContext,
@@ -1,7 +1,7 @@
1
1
  import "./style.css";
2
2
  import { defineComponent as o, openBlock as r, createBlock as n, resolveDynamicComponent as i, mergeProps as s, withCtx as p, renderSlot as a } from "vue";
3
3
  import { f as c } from "./find-block-4FksmtpZ.js";
4
- import { b as d, _ as m } from "./index-EQdaCBDB.js";
4
+ import { b as d, _ as m } from "./index-eVqO7_Qb.js";
5
5
  const l = o({
6
6
  name: "live-edit",
7
7
  props: ["id", "attributes", "Wrapper"],
@@ -1 +1 @@
1
- var l=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),r=require("./find-block-FHyxDYzT.cjs"),n=require("./index-Treb985Y.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
+ var l=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),r=require("./find-block-FHyxDYzT.cjs"),n=require("./index-1GET5eOz.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,7 +1,7 @@
1
1
  import "./style.css";
2
2
  import { defineComponent as t, defineAsyncComponent as n, resolveComponent as r, openBlock as p, createBlock as s } from "vue";
3
- import { b as c, _ as i } from "./index-EQdaCBDB.js";
4
- const a = () => import("./index-EQdaCBDB.js").then((e) => e.K).then((e) => e.default).catch((e) => {
3
+ import { b as c, _ as i } from "./index-eVqO7_Qb.js";
4
+ const a = () => import("./index-eVqO7_Qb.js").then((e) => e.K).then((e) => e.default).catch((e) => {
5
5
  throw console.error(
6
6
  "Error while attempting to dynamically import component Block at ../block.vue",
7
7
  e
@@ -1 +1 @@
1
- var k=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),t=require("./index-Treb985Y.cjs"),r=()=>Promise.resolve().then(()=>require("./index-Treb985Y.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
+ var k=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),t=require("./index-1GET5eOz.cjs"),r=()=>Promise.resolve().then(()=>require("./index-1GET5eOz.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 +1 @@
1
- var F=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),s=require("./index-Treb985Y.cjs"),$=require("./find-block-FHyxDYzT.cjs"),T=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;const e=this.block,t=e.responsiveStyles,n=this.context.content,l=s.getSizesForBreakpoints(((S=n==null?void 0:n.meta)==null?void 0:S.breakpoints)||{}),p=!!((B=(h=n==null?void 0:n.meta)==null?void 0:h.breakpoints)!=null&&B.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 v=a?s.createCssClass({className:m,styles:a}):"",b=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)}):"",k=r&&p?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=((f=(C=i.steps)==null?void 0:C[1])==null?void 0:f.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[v,b,x,k,y].join(" ")}}});function _(e,t,n,l,p,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 E=s._export_sfc(T,[["render",_]]),P=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,u;const e=(y=this.processedBlock)==null?void 0:y.responsiveStyles,t=this.contextProvider.content,n=s.getSizesForBreakpoints(((S=t==null?void 0:t.meta)==null?void 0:S.breakpoints)||{}),l=!!((B=(h=t==null?void 0:t.meta)==null?void 0:h.breakpoints)!=null&&B.xsmall),p=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=(C=this.processedBlock)==null?void 0:C.id;if(!r)return"";const m=p?s.createCssClass({className:r,styles:p}):"",v=a?s.createCssClass({className:r,styles:a,mediaQuery:s.getMaxWidthQueryForSize("medium",n)}):"",b=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)}):"",k=this.processedBlock.animations&&this.processedBlock.animations.find(g=>g.trigger==="hover");let i="";if(k){const g=((u=(f=k.steps)==null?void 0:f[1])==null?void 0:u.styles)||{};i=s.createCssClass({className:`${r}:hover`,styles:{...g,transition:`all ${k.duration}s ${s.camelToKebabCase(k.easing)}`,transitionDelay:k.delay?`${k.delay}s`:"0s"}})||""}return[m,v,b,x,i].join(" ")}}});function Q(e,t,n,l,p,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 A=s._export_sfc(P,[["render",Q]]),I=o.defineComponent({name:"style-wrapper",components:{BlockStyles:E,LiveEditBlockStyles:A},props:["block","context"],data(){return{isClientEditing:!1,isHydrated:!1,TARGET:s.TARGET}},inject:{contextProvider:s.BuilderContext.key},mounted(){}});function z(e,t,n,l,p,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(I,[["render",z]]);exports.default=w;
1
+ var F=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),s=require("./index-1GET5eOz.cjs"),$=require("./find-block-FHyxDYzT.cjs"),T=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;const e=this.block,t=e.responsiveStyles,n=this.context.content,l=s.getSizesForBreakpoints(((S=n==null?void 0:n.meta)==null?void 0:S.breakpoints)||{}),p=!!((B=(h=n==null?void 0:n.meta)==null?void 0:h.breakpoints)!=null&&B.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 v=a?s.createCssClass({className:m,styles:a}):"",b=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)}):"",k=r&&p?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=((f=(C=i.steps)==null?void 0:C[1])==null?void 0:f.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[v,b,x,k,y].join(" ")}}});function _(e,t,n,l,p,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 E=s._export_sfc(T,[["render",_]]),P=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,u;const e=(y=this.processedBlock)==null?void 0:y.responsiveStyles,t=this.contextProvider.content,n=s.getSizesForBreakpoints(((S=t==null?void 0:t.meta)==null?void 0:S.breakpoints)||{}),l=!!((B=(h=t==null?void 0:t.meta)==null?void 0:h.breakpoints)!=null&&B.xsmall),p=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=(C=this.processedBlock)==null?void 0:C.id;if(!r)return"";const m=p?s.createCssClass({className:r,styles:p}):"",v=a?s.createCssClass({className:r,styles:a,mediaQuery:s.getMaxWidthQueryForSize("medium",n)}):"",b=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)}):"",k=this.processedBlock.animations&&this.processedBlock.animations.find(g=>g.trigger==="hover");let i="";if(k){const g=((u=(f=k.steps)==null?void 0:f[1])==null?void 0:u.styles)||{};i=s.createCssClass({className:`${r}:hover`,styles:{...g,transition:`all ${k.duration}s ${s.camelToKebabCase(k.easing)}`,transitionDelay:k.delay?`${k.delay}s`:"0s"}})||""}return[m,v,b,x,i].join(" ")}}});function Q(e,t,n,l,p,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 A=s._export_sfc(P,[["render",Q]]),I=o.defineComponent({name:"style-wrapper",components:{BlockStyles:E,LiveEditBlockStyles:A},props:["block","context"],data(){return{isClientEditing:!1,isHydrated:!1,TARGET:s.TARGET}},inject:{contextProvider:s.BuilderContext.key},mounted(){}});function z(e,t,n,l,p,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(I,[["render",z]]);exports.default=w;
@@ -1,6 +1,6 @@
1
1
  import "./style.css";
2
2
  import { defineComponent as E, resolveComponent as x, openBlock as y, createBlock as $, createCommentVNode as Q, createElementBlock as z, Fragment as G } from "vue";
3
- import { c as A, T as w, d as C, f as N, h as l, j as u, k as j, _ as I, l as H, b as R } from "./index-EQdaCBDB.js";
3
+ import { c as A, T as w, d as C, f as N, h as l, j as u, k as j, _ as I, l as H, b as R } from "./index-eVqO7_Qb.js";
4
4
  import { f as U } from "./find-block-4FksmtpZ.js";
5
5
  const W = E({
6
6
  name: "block-styles",
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-ljVeDS39.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
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-2Armmtcs.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,5 +1,5 @@
1
1
  import { defineComponent as t, renderSlot as o } from "vue";
2
- import { _ as r } from "./index-Agn-gjHJ.js";
2
+ import { _ as r } from "./index-unVH2XRb.js";
3
3
  const n = t({
4
4
  name: "awaiter",
5
5
  props: [],
@@ -0,0 +1,50 @@
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-6j21Yx4_.js";
3
+ import { _ as k } from "./index-unVH2XRb.js";
4
+ const u = () => import("./index-unVH2XRb.js").then((t) => t.J).then((t) => t.default).catch((t) => {
5
+ throw console.error(
6
+ "Error while attempting to dynamically import component DynamicRenderer at ../../dynamic-renderer/dynamic-renderer.vue",
7
+ t
8
+ ), t;
9
+ }), f = r({
10
+ name: "block-wrapper",
11
+ components: { DynamicRenderer: a(u) },
12
+ props: ["Wrapper", "block", "context"],
13
+ data() {
14
+ return { getBlockActions: m, getBlockProperties: d };
15
+ }
16
+ });
17
+ function y(t, b, g, S, h, B) {
18
+ var e, o;
19
+ const n = c("DynamicRenderer");
20
+ return i(), p(n, {
21
+ TagName: t.Wrapper,
22
+ attributes: t.getBlockProperties({
23
+ block: t.block,
24
+ context: t.context
25
+ }),
26
+ actionAttributes: t.getBlockActions({
27
+ block: t.block,
28
+ rootState: t.context.rootState,
29
+ rootSetState: t.context.rootSetState,
30
+ localState: t.context.localState,
31
+ context: t.context.context,
32
+ stripPrefix: !0,
33
+ trackingContext: {
34
+ apiKey: t.context.apiKey,
35
+ canTrack: t.context.canTrack ?? !0,
36
+ contentId: (e = t.context.content) == null ? void 0 : e.id,
37
+ variationId: (o = t.context.content) == null ? void 0 : o.testVariationId
38
+ }
39
+ })
40
+ }, {
41
+ default: s(() => [
42
+ l(t.$slots, "default")
43
+ ]),
44
+ _: 3
45
+ }, 8, ["TagName", "attributes", "actionAttributes"]);
46
+ }
47
+ const R = /* @__PURE__ */ k(f, [["render", y]]);
48
+ export {
49
+ R as default
50
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),r=require("./get-block-properties-kMAb8z5D.cjs"),a=require("./index-2Armmtcs.cjs"),i=()=>Promise.resolve().then(()=>require("./index-2Armmtcs.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;
@@ -34,9 +34,9 @@ export type FormState = "unsubmitted" | "sending" | "success" | "error";
34
34
  declare const _default: import("vue").DefineComponent<Readonly<{
35
35
  name?: any;
36
36
  builderContext?: any;
37
+ method?: any;
37
38
  attributes?: any;
38
39
  action?: any;
39
- method?: any;
40
40
  previewState?: any;
41
41
  sendWithJs?: any;
42
42
  sendSubmissionsTo?: any;
@@ -63,9 +63,9 @@ declare const _default: import("vue").DefineComponent<Readonly<{
63
63
  }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
64
64
  name?: any;
65
65
  builderContext?: any;
66
+ method?: any;
66
67
  attributes?: any;
67
68
  action?: any;
68
- method?: any;
69
69
  previewState?: any;
70
70
  sendWithJs?: any;
71
71
  sendSubmissionsTo?: any;
@@ -82,9 +82,9 @@ declare const _default: import("vue").DefineComponent<Readonly<{
82
82
  }>>>, {
83
83
  readonly name?: any;
84
84
  readonly builderContext?: any;
85
+ readonly method?: any;
85
86
  readonly attributes?: any;
86
87
  readonly action?: any;
87
- readonly method?: any;
88
88
  readonly previewState?: any;
89
89
  readonly sendWithJs?: any;
90
90
  readonly sendSubmissionsTo?: any;
@@ -15,8 +15,8 @@ export interface FormInputProps {
15
15
  declare const _default: import("vue").DefineComponent<Readonly<{
16
16
  name?: any;
17
17
  value?: any;
18
- attributes?: any;
19
18
  type?: any;
19
+ attributes?: any;
20
20
  defaultValue?: any;
21
21
  placeholder?: any;
22
22
  required?: any;
@@ -26,16 +26,16 @@ declare const _default: import("vue").DefineComponent<Readonly<{
26
26
  }, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
27
27
  name?: any;
28
28
  value?: any;
29
- attributes?: any;
30
29
  type?: any;
30
+ attributes?: any;
31
31
  defaultValue?: any;
32
32
  placeholder?: any;
33
33
  required?: any;
34
34
  }>>>, {
35
35
  readonly name?: any;
36
36
  readonly value?: any;
37
- readonly attributes?: any;
38
37
  readonly type?: any;
38
+ readonly attributes?: any;
39
39
  readonly defaultValue?: any;
40
40
  readonly placeholder?: any;
41
41
  readonly required?: any;
@@ -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 declare const fetchSymbolContent: ({ builderContextValue, symbol }: {
12
14
  symbol: SymbolInfo | undefined;
@@ -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;
@@ -0,0 +1,184 @@
1
+ import { defineComponent as h, defineAsyncComponent as u, resolveComponent as m, openBlock as o, createBlock as a, withCtx as p, renderSlot as d, createElementBlock as b, Fragment as C, resolveDynamicComponent as w, mergeProps as g, normalizeProps as W, renderList as B, createCommentVNode as k } from "vue";
2
+ import { T as E, i as $, _ as v, B as R, w as A } from "./index-unVH2XRb.js";
3
+ import { a as P, g as S } from "./get-block-properties-6j21Yx4_.js";
4
+ const I = () => import("./awaiter-rbgcBB2Y.js").then((t) => t.default).catch((t) => {
5
+ throw console.error(
6
+ "Error while attempting to dynamically import component Awaiter at ../../awaiter.vue",
7
+ t
8
+ ), t;
9
+ }), T = () => import("./live-edit-yXkE9pDV.js").then((t) => t.default).catch((t) => {
10
+ throw console.error(
11
+ "Error while attempting to dynamically import component LiveEdit at ../../live-edit.vue",
12
+ t
13
+ ), t;
14
+ }), L = h({
15
+ name: "interactive-element",
16
+ components: {
17
+ LiveEdit: u(T),
18
+ Awaiter: u(I)
19
+ },
20
+ props: ["wrapperProps", "block", "includeBlockProps", "context", "Wrapper"],
21
+ data() {
22
+ return { forceRenderCount: 0, TARGET: E, isEditing: $ };
23
+ },
24
+ watch: {
25
+ onUpdateHook0: { handler() {
26
+ }, immediate: !0 }
27
+ },
28
+ computed: {
29
+ attributes() {
30
+ var t, e;
31
+ return this.includeBlockProps ? {
32
+ ...P({
33
+ block: this.block,
34
+ context: this.context
35
+ }),
36
+ ...S({
37
+ block: this.block,
38
+ rootState: this.context.rootState,
39
+ rootSetState: this.context.rootSetState,
40
+ localState: this.context.localState,
41
+ context: this.context.context,
42
+ trackingContext: {
43
+ apiKey: this.context.apiKey,
44
+ canTrack: this.context.canTrack ?? !0,
45
+ contentId: (t = this.context.content) == null ? void 0 : t.id,
46
+ variationId: (e = this.context.content) == null ? void 0 : e.testVariationId
47
+ }
48
+ })
49
+ } : {};
50
+ },
51
+ targetWrapperProps() {
52
+ return {
53
+ ...this.wrapperProps,
54
+ ...Object.keys(this.attributes).length > 0 ? {
55
+ attributes: this.attributes
56
+ } : {}
57
+ };
58
+ },
59
+ onUpdateHook0() {
60
+ var t, e;
61
+ return {
62
+ 0: this.wrapperProps,
63
+ 1: (e = (t = this.block) == null ? void 0 : t.component) == null ? void 0 : e.options
64
+ };
65
+ }
66
+ }
67
+ });
68
+ function O(t, e, s, c, i, l) {
69
+ const r = m("Awaiter"), n = m("LiveEdit");
70
+ return t.Wrapper.load ? (o(), a(r, {
71
+ key: 0,
72
+ load: t.Wrapper.load,
73
+ fallback: t.Wrapper.fallback,
74
+ props: t.wrapperProps,
75
+ attributes: t.attributes
76
+ }, {
77
+ default: p(() => [
78
+ d(t.$slots, "default")
79
+ ]),
80
+ _: 3
81
+ }, 8, ["load", "fallback", "props", "attributes"])) : (o(), b(C, { key: 1 }, [
82
+ t.TARGET === "rsc" && t.isEditing() ? (o(), a(n, {
83
+ key: 0,
84
+ Wrapper: t.Wrapper,
85
+ id: t.block.id || "",
86
+ attributes: t.attributes
87
+ }, {
88
+ default: p(() => [
89
+ d(t.$slots, "default")
90
+ ]),
91
+ _: 3
92
+ }, 8, ["Wrapper", "id", "attributes"])) : (o(), a(w(t.Wrapper), g({
93
+ key: 1,
94
+ attributes: t.attributes
95
+ }, t.targetWrapperProps), {
96
+ default: p(() => [
97
+ d(t.$slots, "default")
98
+ ]),
99
+ _: 3
100
+ }, 16, ["attributes"]))
101
+ ], 64));
102
+ }
103
+ const f = /* @__PURE__ */ v(L, [["render", O]]), U = ({
104
+ componentOptions: t,
105
+ builderBlock: e,
106
+ context: s,
107
+ componentRef: c,
108
+ includeBlockProps: i,
109
+ isInteractive: l,
110
+ contextValue: r
111
+ }) => {
112
+ const n = {
113
+ ...t,
114
+ /**
115
+ * If `noWrap` is set to `true`, then the block's props/attributes are provided to the
116
+ * component itself directly. Otherwise, they are provided to the wrapper element.
117
+ */
118
+ ...i ? {
119
+ attributes: P({
120
+ block: e,
121
+ context: r
122
+ })
123
+ } : {}
124
+ };
125
+ return l ? {
126
+ Wrapper: c,
127
+ block: e,
128
+ context: s,
129
+ wrapperProps: t,
130
+ includeBlockProps: i
131
+ } : n;
132
+ }, V = h({
133
+ name: "component-ref",
134
+ components: { Block: R, InteractiveElement: f },
135
+ props: [
136
+ "isInteractive",
137
+ "componentRef",
138
+ "componentOptions",
139
+ "builderBlock",
140
+ "context",
141
+ "linkComponent",
142
+ "includeBlockProps",
143
+ "blockChildren",
144
+ "registeredComponents"
145
+ ],
146
+ data() {
147
+ return {
148
+ shouldUpdate: !1,
149
+ Wrapper: this.isInteractive ? A(f) : this.componentRef,
150
+ getWrapperProps: U
151
+ };
152
+ }
153
+ });
154
+ function G(t, e, s, c, i, l) {
155
+ const r = m("Block");
156
+ return t.componentRef ? (o(), a(w(t.Wrapper), W(g(
157
+ { key: 0 },
158
+ t.getWrapperProps({
159
+ componentOptions: t.componentOptions,
160
+ builderBlock: t.builderBlock,
161
+ context: t.context,
162
+ componentRef: t.componentRef,
163
+ linkComponent: t.linkComponent,
164
+ includeBlockProps: t.includeBlockProps,
165
+ isInteractive: t.isInteractive,
166
+ contextValue: t.context
167
+ })
168
+ )), {
169
+ default: p(() => [
170
+ t.componentRef ? (o(!0), b(C, { key: 0 }, B(t.blockChildren, (n, y) => (o(), a(r, {
171
+ key: n.id,
172
+ block: n,
173
+ context: t.context,
174
+ registeredComponents: t.registeredComponents,
175
+ linkComponent: t.linkComponent
176
+ }, null, 8, ["block", "context", "registeredComponents", "linkComponent"]))), 128)) : k("", !0)
177
+ ]),
178
+ _: 1
179
+ }, 16)) : k("", !0);
180
+ }
181
+ const z = /* @__PURE__ */ v(V, [["render", G]]);
182
+ export {
183
+ z as default
184
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),r=require("./index-2Armmtcs.cjs"),l=require("./get-block-properties-kMAb8z5D.cjs"),u=()=>Promise.resolve().then(()=>require("./awaiter-SdqgCFCT.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-gMqK1-U2.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 f(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",f]]),b=({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","componentOptions","builderBlock","context","linkComponent","includeBlockProps","blockChildren","registeredComponents"],data(){return{shouldUpdate:!1,Wrapper:this.isInteractive?r.wrapComponentRef(d):this.componentRef,getWrapperProps:b}}});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(()=>[e.componentRef?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.blockChildren,(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)):t.createCommentVNode("",!0)]),_:1},16)):t.createCommentVNode("",!0)}const v=r._export_sfc(C,[["render",B]]);exports.default=v;
@@ -3,13 +3,13 @@ import type { BuilderContent } from "../../../types/builder-content";
3
3
  import type { Dictionary } from "../../../types/typescript";
4
4
  declare const _default: import("vue").DefineComponent<Readonly<{
5
5
  data?: any;
6
+ canTrack?: any;
7
+ apiKey?: any;
8
+ apiHost?: any;
6
9
  context?: any;
7
10
  content?: any;
8
- apiKey?: any;
9
11
  model?: any;
10
- canTrack?: any;
11
12
  locale?: any;
12
- apiHost?: any;
13
13
  trustedHosts?: any;
14
14
  showContent?: any;
15
15
  enrich?: any;
@@ -77,13 +77,13 @@ declare const _default: import("vue").DefineComponent<Readonly<{
77
77
  elementRef_onInitpreviewingbldr(event: any): void;
78
78
  }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
79
79
  data?: any;
80
+ canTrack?: any;
81
+ apiKey?: any;
82
+ apiHost?: any;
80
83
  context?: any;
81
84
  content?: any;
82
- apiKey?: any;
83
85
  model?: any;
84
- canTrack?: any;
85
86
  locale?: any;
86
- apiHost?: any;
87
87
  trustedHosts?: any;
88
88
  showContent?: any;
89
89
  enrich?: any;
@@ -93,13 +93,13 @@ declare const _default: import("vue").DefineComponent<Readonly<{
93
93
  builderContextSignal?: any;
94
94
  }>>>, {
95
95
  readonly data?: any;
96
+ readonly canTrack?: any;
97
+ readonly apiKey?: any;
98
+ readonly apiHost?: any;
96
99
  readonly context?: any;
97
100
  readonly content?: any;
98
- readonly apiKey?: any;
99
101
  readonly model?: any;
100
- readonly canTrack?: any;
101
102
  readonly locale?: any;
102
- readonly apiHost?: any;
103
103
  readonly trustedHosts?: any;
104
104
  readonly showContent?: any;
105
105
  readonly enrich?: any;
@@ -1,20 +1,20 @@
1
1
  declare const _default: import("vue").DefineComponent<Readonly<{
2
- nonce?: any;
3
2
  contentId?: any;
3
+ nonce?: any;
4
4
  isNestedRender?: any;
5
5
  cssCode?: any;
6
6
  customFonts?: any;
7
7
  }>, unknown, {
8
8
  injectedStyles: string;
9
9
  }, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
10
- nonce?: any;
11
10
  contentId?: any;
11
+ nonce?: any;
12
12
  isNestedRender?: any;
13
13
  cssCode?: any;
14
14
  customFonts?: any;
15
15
  }>>>, {
16
- readonly nonce?: any;
17
16
  readonly contentId?: any;
17
+ readonly nonce?: any;
18
18
  readonly isNestedRender?: any;
19
19
  readonly cssCode?: any;
20
20
  readonly customFonts?: any;
@@ -3,15 +3,15 @@ import type { ComponentInfo } from "../../types/components";
3
3
  import type { Dictionary } from "../../types/typescript";
4
4
  declare const _default: import("vue").DefineComponent<Readonly<{
5
5
  data?: any;
6
+ canTrack?: any;
7
+ apiKey?: any;
8
+ apiHost?: any;
6
9
  context?: any;
7
10
  content?: any;
8
- apiKey?: any;
9
11
  apiVersion?: any;
10
12
  nonce?: any;
11
13
  model?: any;
12
- canTrack?: any;
13
14
  locale?: any;
14
- apiHost?: any;
15
15
  trustedHosts?: any;
16
16
  showContent?: any;
17
17
  isSsrAbTest?: any;
@@ -55,15 +55,15 @@ declare const _default: import("vue").DefineComponent<Readonly<{
55
55
  contentSetState(newRootState: BuilderRenderState): void;
56
56
  }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
57
57
  data?: any;
58
+ canTrack?: any;
59
+ apiKey?: any;
60
+ apiHost?: any;
58
61
  context?: any;
59
62
  content?: any;
60
- apiKey?: any;
61
63
  apiVersion?: any;
62
64
  nonce?: any;
63
65
  model?: any;
64
- canTrack?: any;
65
66
  locale?: any;
66
- apiHost?: any;
67
67
  trustedHosts?: any;
68
68
  showContent?: any;
69
69
  isSsrAbTest?: any;
@@ -77,15 +77,15 @@ declare const _default: import("vue").DefineComponent<Readonly<{
77
77
  isNestedRender?: any;
78
78
  }>>>, {
79
79
  readonly data?: any;
80
+ readonly canTrack?: any;
81
+ readonly apiKey?: any;
82
+ readonly apiHost?: any;
80
83
  readonly context?: any;
81
84
  readonly content?: any;
82
- readonly apiKey?: any;
83
85
  readonly apiVersion?: any;
84
86
  readonly nonce?: any;
85
87
  readonly model?: any;
86
- readonly canTrack?: any;
87
88
  readonly locale?: any;
88
- readonly apiHost?: any;
89
89
  readonly trustedHosts?: any;
90
90
  readonly showContent?: any;
91
91
  readonly isSsrAbTest?: any;
@@ -1,14 +1,14 @@
1
1
  declare const _default: import("vue").DefineComponent<Readonly<{
2
2
  data?: any;
3
+ canTrack?: any;
4
+ apiKey?: any;
5
+ apiHost?: any;
3
6
  context?: any;
4
7
  content?: any;
5
- apiKey?: any;
6
8
  apiVersion?: any;
7
9
  nonce?: any;
8
10
  model?: any;
9
- canTrack?: any;
10
11
  locale?: any;
11
- apiHost?: any;
12
12
  trustedHosts?: any;
13
13
  customComponents?: any;
14
14
  linkComponent?: any;
@@ -54,15 +54,15 @@ declare const _default: import("vue").DefineComponent<Readonly<{
54
54
  defaultContent(): any;
55
55
  }, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
56
56
  data?: any;
57
+ canTrack?: any;
58
+ apiKey?: any;
59
+ apiHost?: any;
57
60
  context?: any;
58
61
  content?: any;
59
- apiKey?: any;
60
62
  apiVersion?: any;
61
63
  nonce?: any;
62
64
  model?: any;
63
- canTrack?: any;
64
65
  locale?: any;
65
- apiHost?: any;
66
66
  trustedHosts?: any;
67
67
  customComponents?: any;
68
68
  linkComponent?: any;
@@ -74,15 +74,15 @@ declare const _default: import("vue").DefineComponent<Readonly<{
74
74
  isNestedRender?: any;
75
75
  }>>>, {
76
76
  readonly data?: any;
77
+ readonly canTrack?: any;
78
+ readonly apiKey?: any;
79
+ readonly apiHost?: any;
77
80
  readonly context?: any;
78
81
  readonly content?: any;
79
- readonly apiKey?: any;
80
82
  readonly apiVersion?: any;
81
83
  readonly nonce?: any;
82
84
  readonly model?: any;
83
- readonly canTrack?: any;
84
85
  readonly locale?: any;
85
- readonly apiHost?: any;
86
86
  readonly trustedHosts?: any;
87
87
  readonly customComponents?: any;
88
88
  readonly linkComponent?: any;
@@ -1,14 +1,14 @@
1
1
  declare const _default: import("vue").DefineComponent<Readonly<{
2
- nonce?: any;
3
2
  id?: any;
3
+ nonce?: any;
4
4
  scriptStr?: any;
5
5
  }>, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
6
- nonce?: any;
7
6
  id?: any;
7
+ nonce?: any;
8
8
  scriptStr?: any;
9
9
  }>>>, {
10
- readonly nonce?: any;
11
10
  readonly id?: any;
11
+ readonly nonce?: any;
12
12
  readonly scriptStr?: any;
13
13
  }, {}>;
14
14
  export default _default;