@builder.io/sdk-vue 2.0.13 → 2.0.14-10

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 (91) hide show
  1. package/README.md +1 -1
  2. package/lib/browser/awaiter-IEVhPpXd.js +16 -0
  3. package/lib/browser/awaiter-uuM0h1cD.cjs +1 -0
  4. package/lib/browser/{block-styles-NluRxFx2.cjs → block-styles-38IHR3Rm.cjs} +1 -1
  5. package/lib/browser/{block-styles-03Qg_nl9.js → block-styles-eFSzzXFY.js} +1 -1
  6. package/lib/browser/{block-wrapper-7wDwU1ik.js → block-wrapper-eFWj6yiY.js} +3 -3
  7. package/lib/browser/{block-wrapper-ianIz_MG.cjs → block-wrapper-emtPDnCs.cjs} +1 -1
  8. package/lib/browser/component-ref-bqBnNLM4.js +135 -0
  9. package/lib/browser/component-ref-q06ih8Pe.cjs +1 -0
  10. package/lib/browser/components/awaiter.vue.d.ts +2 -0
  11. package/lib/browser/components/block/components/interactive-element.vue.d.ts +3 -3
  12. package/lib/browser/constants/sdk-version.d.ts +1 -1
  13. package/lib/browser/context/component-reference-types.d.ts +4 -0
  14. package/lib/browser/context/types.d.ts +2 -1
  15. package/lib/browser/functions/evaluate/should-force-browser-runtime-in-node.d.ts +3 -1
  16. package/lib/browser/{get-block-properties-Cj0ih41l.cjs → get-block-properties-tEUILS9x.cjs} +1 -1
  17. package/lib/browser/{get-block-properties-ROTqTJZ3.js → get-block-properties-vVu95Ca_.js} +1 -1
  18. package/lib/browser/{index-3j8dJ25f.js → index-I8S_d0S0.js} +24 -20
  19. package/lib/browser/{index-sPD8fzSJ.cjs → index-lmwS3mzV.cjs} +6 -6
  20. package/lib/browser/index.cjs +1 -1
  21. package/lib/browser/index.mjs +1 -1
  22. package/lib/browser/{repeated-block-_EQDFqYb.js → repeated-block-AWjvlp94.js} +2 -2
  23. package/lib/browser/{repeated-block-BBHHbrlK.cjs → repeated-block-mJFv6FkB.cjs} +1 -1
  24. package/lib/browser/server-index.d.ts +1 -0
  25. package/lib/browser/style.css +1 -1
  26. package/lib/edge/awaiter-MEIHSkuA.js +15 -0
  27. package/lib/edge/awaiter-uHEu9ICV.cjs +1 -0
  28. package/lib/edge/{block-styles-TkeDyfA0.cjs → block-styles-ZWL1j2pb.cjs} +1 -1
  29. package/lib/edge/{block-styles-mSowNIFi.js → block-styles-w9ZHDYXk.js} +1 -1
  30. package/lib/edge/{block-wrapper-EnFwFXwA.js → block-wrapper-J1lWbkCc.js} +3 -3
  31. package/lib/{node/block-wrapper-8DA9SdPk.cjs → edge/block-wrapper-nYMiGsI_.cjs} +1 -1
  32. package/lib/edge/component-ref-ETGdpacc.cjs +1 -0
  33. package/lib/edge/component-ref-fs5DvfJV.js +134 -0
  34. package/lib/edge/components/awaiter.vue.d.ts +2 -0
  35. package/lib/edge/components/block/components/interactive-element.vue.d.ts +3 -3
  36. package/lib/edge/constants/sdk-version.d.ts +1 -1
  37. package/lib/edge/context/component-reference-types.d.ts +4 -0
  38. package/lib/edge/context/types.d.ts +2 -1
  39. package/lib/edge/functions/evaluate/should-force-browser-runtime-in-node.d.ts +3 -1
  40. package/lib/{node/get-block-properties-lLVZb91I.js → edge/get-block-properties-4HJ4PxLX.js} +1 -1
  41. package/lib/edge/{get-block-properties-MnsKwX8B.cjs → get-block-properties-oWXypqp2.cjs} +1 -1
  42. package/lib/edge/{index-C-mI6Ai4.js → index-QLtrJwb4.js} +24 -20
  43. package/lib/edge/{index-u68L80fc.cjs → index-gBb-qLi7.cjs} +10 -10
  44. package/lib/edge/index.cjs +1 -1
  45. package/lib/edge/index.mjs +1 -1
  46. package/lib/{node/repeated-block-49B-IJEV.cjs → edge/repeated-block-QrQdtLKC.cjs} +1 -1
  47. package/lib/edge/{repeated-block-P7xKkVOb.js → repeated-block-sFJ-d5LY.js} +2 -2
  48. package/lib/edge/server-index.d.ts +1 -0
  49. package/lib/edge/style.css +1 -1
  50. package/lib/node/awaiter-3vV9x3rP.cjs +1 -0
  51. package/lib/node/awaiter-VRFUJde8.js +15 -0
  52. package/lib/node/{block-styles-TC7FEjXP.js → block-styles-21u2hDP7.js} +16 -15
  53. package/lib/node/block-styles-Yw3zrV5t.cjs +1 -0
  54. package/lib/{edge/block-wrapper-BxeE3u_2.cjs → node/block-wrapper-F-kEYQRz.cjs} +1 -1
  55. package/lib/node/{block-wrapper-wULOB3JK.js → block-wrapper-U1SX2UVv.js} +3 -3
  56. package/lib/node/component-ref-i2kM18jg.js +134 -0
  57. package/lib/node/component-ref-q6P97jUb.cjs +1 -0
  58. package/lib/node/components/awaiter.vue.d.ts +2 -0
  59. package/lib/node/components/block/components/interactive-element.vue.d.ts +3 -3
  60. package/lib/node/constants/sdk-version.d.ts +1 -1
  61. package/lib/node/context/component-reference-types.d.ts +4 -0
  62. package/lib/node/context/types.d.ts +2 -1
  63. package/lib/node/functions/evaluate/should-force-browser-runtime-in-node.d.ts +3 -1
  64. package/lib/node/get-block-properties-QtW2uWuu.cjs +1 -0
  65. package/lib/{edge/get-block-properties-Hs6W4UwL.js → node/get-block-properties-j3Wl--AH.js} +17 -16
  66. package/lib/node/index-fXCrASbO.cjs +166 -0
  67. package/lib/node/{index-eZTeDA6U.js → index-t4QAfYSC.js} +907 -1133
  68. package/lib/node/index.cjs +1 -1
  69. package/lib/node/index.mjs +17 -16
  70. package/lib/node/init.cjs +1 -0
  71. package/lib/node/init.d.cts +14 -0
  72. package/lib/node/init.d.mts +14 -0
  73. package/lib/node/init.mjs +34 -0
  74. package/lib/{edge/repeated-block-cXD1rb5T.cjs → node/repeated-block-84E4UPp6.cjs} +1 -1
  75. package/lib/node/{repeated-block-_TZDsWlq.js → repeated-block-bm-dxutO.js} +13 -13
  76. package/lib/node/server-index.d.ts +1 -0
  77. package/lib/node/should-force-browser-runtime-in-node-Hy3G5eB4.js +248 -0
  78. package/lib/node/should-force-browser-runtime-in-node-cm1lg4FM.cjs +48 -0
  79. package/lib/node/style.css +1 -1
  80. package/nuxt-isolated-vm-plugin.js +14 -0
  81. package/nuxt.js +32 -2
  82. package/package.json +8 -5
  83. package/lib/browser/component-ref-MlfJPaLv.cjs +0 -1
  84. package/lib/browser/component-ref-yQ6WDHbR.js +0 -114
  85. package/lib/edge/component-ref-XzuZ1Hfj.cjs +0 -1
  86. package/lib/edge/component-ref-t51XeINm.js +0 -113
  87. package/lib/node/block-styles-aVTlrIHc.cjs +0 -1
  88. package/lib/node/component-ref-Tn-Aa9EG.js +0 -113
  89. package/lib/node/component-ref-cw1D-ZyS.cjs +0 -1
  90. package/lib/node/get-block-properties-coIi16X2.cjs +0 -1
  91. package/lib/node/index-ZUbIvJ0s.cjs +0 -213
package/README.md CHANGED
@@ -13,7 +13,7 @@ NOTE: if you are using Nuxt, you will need to add the SDK's Nuxt module in `nuxt
13
13
  ```js
14
14
  // https://nuxt.com/docs/api/configuration/nuxt-config
15
15
  export default defineNuxtConfig({
16
- module: ['@builder.io/sdk-vue/nuxt'],
16
+ modules: ['@builder.io/sdk-vue/nuxt'],
17
17
  });
18
18
  ```
19
19
 
@@ -0,0 +1,16 @@
1
+ import "./style.css";
2
+ import { defineComponent as t, renderSlot as o } from "vue";
3
+ import { e as r } from "./index-I8S_d0S0.js";
4
+ const n = t({
5
+ name: "awaiter",
6
+ props: [],
7
+ mounted() {
8
+ }
9
+ });
10
+ function a(e, s, p, f, i, m) {
11
+ return o(e.$slots, "default");
12
+ }
13
+ const u = /* @__PURE__ */ r(n, [["render", a]]);
14
+ export {
15
+ u as default
16
+ };
@@ -0,0 +1 @@
1
+ var p=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-lmwS3mzV.cjs"),n=e.defineComponent({name:"awaiter",props:[],mounted(){}});function o(t,a,i,c,u,d){return e.renderSlot(t.$slots,"default")}const s=r._export_sfc(n,[["render",o]]);exports.default=s;
@@ -1 +1 @@
1
- var v=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),s=require("./index-sPD8fzSJ.cjs"),f=l.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 y,p,h;const e=this.block,t=e.responsiveStyles,r=this.context.content,a=s.getSizesForBreakpoints(((y=r==null?void 0:r.meta)==null?void 0:y.breakpoints)||{}),i=t==null?void 0:t.large,d=t==null?void 0:t.medium,c=t==null?void 0:t.small,n=e.id;if(!n)return"";const S=i?s.createCssClass({className:n,styles:i}):"",k=d?s.createCssClass({className:n,styles:d,mediaQuery:s.getMaxWidthQueryForSize("medium",a)}):"",C=c?s.createCssClass({className:n,styles:c,mediaQuery:s.getMaxWidthQueryForSize("small",a)}):"",o=e.animations&&e.animations.find(m=>m.trigger==="hover");let u="";if(o){const m=((h=(p=o.steps)==null?void 0:p[1])==null?void 0:h.styles)||{};u=s.createCssClass({className:`${n}:hover`,styles:{...m,transition:`all ${o.duration}s ${s.camelToKebabCase(o.easing)}`,transitionDelay:o.delay?`${o.delay}s`:"0s"}})||""}return[S,k,C,u].join(" ")}}});function b(e,t,r,a,i,d){const c=l.resolveComponent("InlinedStyles");return e.TARGET!=="reactNative"&&e.css&&e.canShowBlock?(l.openBlock(),l.createBlock(c,{key:0,id:"builderio-block",styles:e.css,nonce:e.context.nonce},null,8,["styles","nonce"])):l.createCommentVNode("",!0)}const g=s._export_sfc(f,[["render",b]]);exports.default=g;
1
+ var v=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),s=require("./index-lmwS3mzV.cjs"),f=l.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 y,p,h;const e=this.block,t=e.responsiveStyles,r=this.context.content,a=s.getSizesForBreakpoints(((y=r==null?void 0:r.meta)==null?void 0:y.breakpoints)||{}),i=t==null?void 0:t.large,d=t==null?void 0:t.medium,c=t==null?void 0:t.small,n=e.id;if(!n)return"";const S=i?s.createCssClass({className:n,styles:i}):"",k=d?s.createCssClass({className:n,styles:d,mediaQuery:s.getMaxWidthQueryForSize("medium",a)}):"",C=c?s.createCssClass({className:n,styles:c,mediaQuery:s.getMaxWidthQueryForSize("small",a)}):"",o=e.animations&&e.animations.find(m=>m.trigger==="hover");let u="";if(o){const m=((h=(p=o.steps)==null?void 0:p[1])==null?void 0:h.styles)||{};u=s.createCssClass({className:`${n}:hover`,styles:{...m,transition:`all ${o.duration}s ${s.camelToKebabCase(o.easing)}`,transitionDelay:o.delay?`${o.delay}s`:"0s"}})||""}return[S,k,C,u].join(" ")}}});function b(e,t,r,a,i,d){const c=l.resolveComponent("InlinedStyles");return e.TARGET!=="reactNative"&&e.css&&e.canShowBlock?(l.openBlock(),l.createBlock(c,{key:0,id:"builderio-block",styles:e.css,nonce:e.context.nonce},null,8,["styles","nonce"])):l.createCommentVNode("",!0)}const g=s._export_sfc(f,[["render",b]]);exports.default=g;
@@ -1,6 +1,6 @@
1
1
  import "./style.css";
2
2
  import { defineComponent as C, resolveComponent as g, openBlock as $, createBlock as v, createCommentVNode as B } from "vue";
3
- import { _, T, c as h, g as w, a as l, b as k, d as I, e as N } from "./index-3j8dJ25f.js";
3
+ import { _, T, c as h, g as w, a as l, b as k, d as I, e as N } from "./index-I8S_d0S0.js";
4
4
  const z = C({
5
5
  name: "block-styles",
6
6
  components: { InlinedStyles: _ },
@@ -1,8 +1,8 @@
1
1
  import "./style.css";
2
2
  import { defineComponent as o, defineAsyncComponent as r, resolveComponent as n, openBlock as a, createBlock as c, withCtx as i, renderSlot as p } from "vue";
3
- import { g as s, a as l } from "./get-block-properties-ROTqTJZ3.js";
4
- import { e as m } from "./index-3j8dJ25f.js";
5
- const d = () => import("./index-3j8dJ25f.js").then((e) => e.E).then((e) => e.default).catch((e) => {
3
+ import { g as s, a as l } from "./get-block-properties-vVu95Ca_.js";
4
+ import { e as m } from "./index-I8S_d0S0.js";
5
+ const d = () => import("./index-I8S_d0S0.js").then((e) => e.E).then((e) => e.default).catch((e) => {
6
6
  throw console.error(
7
7
  "Error while attempting to dynamically import component DynamicRenderer at ../../dynamic-renderer/dynamic-renderer.vue",
8
8
  e
@@ -1 +1 @@
1
- var k=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),o=require("./get-block-properties-Cj0ih41l.cjs"),n=require("./index-sPD8fzSJ.cjs"),c=()=>Promise.resolve().then(()=>require("./index-sPD8fzSJ.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("DynamicRenderer");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
+ var k=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),o=require("./get-block-properties-tEUILS9x.cjs"),n=require("./index-lmwS3mzV.cjs"),c=()=>Promise.resolve().then(()=>require("./index-lmwS3mzV.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("DynamicRenderer");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;
@@ -0,0 +1,135 @@
1
+ import "./style.css";
2
+ import { defineComponent as d, defineAsyncComponent as P, resolveComponent as k, openBlock as o, createBlock as a, withCtx as l, renderSlot as m, resolveDynamicComponent as f, mergeProps as b, normalizeProps as B, createElementBlock as g, Fragment as $, renderList as v, createCommentVNode as W } from "vue";
3
+ import { e as h, B as S, w as y } from "./index-I8S_d0S0.js";
4
+ import { a as C, g as A } from "./get-block-properties-vVu95Ca_.js";
5
+ const R = () => import("./awaiter-IEVhPpXd.js").then((e) => e.default).catch((e) => {
6
+ throw console.error(
7
+ "Error while attempting to dynamically import component Awaiter at ../../awaiter.vue",
8
+ e
9
+ ), e;
10
+ }), E = d({
11
+ name: "interactive-element",
12
+ components: { Awaiter: P(R) },
13
+ props: ["includeBlockProps", "block", "context", "Wrapper", "wrapperProps"],
14
+ computed: {
15
+ attributes() {
16
+ return this.includeBlockProps ? {
17
+ ...C({
18
+ block: this.block,
19
+ context: this.context
20
+ }),
21
+ ...A({
22
+ block: this.block,
23
+ rootState: this.context.rootState,
24
+ rootSetState: this.context.rootSetState,
25
+ localState: this.context.localState,
26
+ context: this.context.context
27
+ })
28
+ } : {};
29
+ }
30
+ }
31
+ });
32
+ function I(e, n, s, i, r, c) {
33
+ const t = k("Awaiter");
34
+ return e.Wrapper.load ? (o(), a(t, {
35
+ key: 0,
36
+ load: e.Wrapper.load,
37
+ fallback: e.Wrapper.fallback,
38
+ props: e.wrapperProps,
39
+ attributes: e.attributes
40
+ }, {
41
+ default: l(() => [
42
+ m(e.$slots, "default")
43
+ ]),
44
+ _: 3
45
+ }, 8, ["load", "fallback", "props", "attributes"])) : (o(), a(f(e.Wrapper), b({
46
+ key: 1,
47
+ attributes: e.attributes
48
+ }, e.wrapperProps), {
49
+ default: l(() => [
50
+ m(e.$slots, "default")
51
+ ]),
52
+ _: 3
53
+ }, 16, ["attributes"]));
54
+ }
55
+ const u = /* @__PURE__ */ h(E, [["render", I]]), O = ({
56
+ componentOptions: e,
57
+ builderBlock: n,
58
+ context: s,
59
+ componentRef: i,
60
+ includeBlockProps: r,
61
+ isInteractive: c,
62
+ contextValue: t
63
+ }) => {
64
+ const p = {
65
+ ...e,
66
+ /**
67
+ * If `noWrap` is set to `true`, then the block's props/attributes are provided to the
68
+ * component itself directly. Otherwise, they are provided to the wrapper element.
69
+ */
70
+ ...r ? {
71
+ attributes: C({
72
+ block: n,
73
+ context: t
74
+ })
75
+ } : {}
76
+ };
77
+ return c ? {
78
+ Wrapper: i,
79
+ block: n,
80
+ context: s,
81
+ wrapperProps: e,
82
+ includeBlockProps: r
83
+ } : p;
84
+ }, V = d({
85
+ name: "component-ref",
86
+ components: { Block: S, InteractiveElement: u },
87
+ props: [
88
+ "isInteractive",
89
+ "componentRef",
90
+ "componentOptions",
91
+ "builderBlock",
92
+ "context",
93
+ "linkComponent",
94
+ "includeBlockProps",
95
+ "blockChildren",
96
+ "registeredComponents"
97
+ ],
98
+ data() {
99
+ return {
100
+ Wrapper: this.isInteractive ? y(u) : this.componentRef,
101
+ getWrapperProps: O
102
+ };
103
+ }
104
+ });
105
+ function z(e, n, s, i, r, c) {
106
+ const t = k("Block");
107
+ return e.componentRef ? (o(), a(f(e.Wrapper), B(b(
108
+ { key: 0 },
109
+ e.getWrapperProps({
110
+ componentOptions: e.componentOptions,
111
+ builderBlock: e.builderBlock,
112
+ context: e.context,
113
+ componentRef: e.componentRef,
114
+ linkComponent: e.linkComponent,
115
+ includeBlockProps: e.includeBlockProps,
116
+ isInteractive: e.isInteractive,
117
+ contextValue: e.context
118
+ })
119
+ )), {
120
+ default: l(() => [
121
+ (o(!0), g($, null, v(e.blockChildren, (p, w) => (o(), a(t, {
122
+ key: p.id,
123
+ block: p,
124
+ context: e.context,
125
+ registeredComponents: e.registeredComponents,
126
+ linkComponent: e.linkComponent
127
+ }, null, 8, ["block", "context", "registeredComponents", "linkComponent"]))), 128))
128
+ ]),
129
+ _: 1
130
+ }, 16)) : W("", !0);
131
+ }
132
+ const j = /* @__PURE__ */ h(V, [["render", z]]);
133
+ export {
134
+ j as default
135
+ };
@@ -0,0 +1 @@
1
+ var P=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),c=require("./index-lmwS3mzV.cjs"),a=require("./get-block-properties-tEUILS9x.cjs"),u=()=>Promise.resolve().then(()=>require("./awaiter-uuM0h1cD.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component Awaiter at ../../awaiter.vue",e),e}),d=t.defineComponent({name:"interactive-element",components:{Awaiter:t.defineAsyncComponent(u)},props:["includeBlockProps","block","context","Wrapper","wrapperProps"],computed:{attributes(){return this.includeBlockProps?{...a.getBlockProperties({block:this.block,context:this.context}),...a.getBlockActions({block:this.block,rootState:this.context.rootState,rootSetState:this.context.rootSetState,localState:this.context.localState,context:this.context.context})}:{}}}});function f(e,n,s,i,r,l){const o=t.resolveComponent("Awaiter");return e.Wrapper.load?(t.openBlock(),t.createBlock(o,{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.createBlock(t.resolveDynamicComponent(e.Wrapper),t.mergeProps({key:1,attributes:e.attributes},e.wrapperProps),{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},16,["attributes"]))}const m=c._export_sfc(d,[["render",f]]),b=({componentOptions:e,builderBlock:n,context:s,componentRef:i,includeBlockProps:r,isInteractive:l,contextValue:o})=>{const p={...e,...r?{attributes:a.getBlockProperties({block:n,context:o})}:{}};return l?{Wrapper:i,block:n,context:s,wrapperProps:e,includeBlockProps:r}:p},B=t.defineComponent({name:"component-ref",components:{Block:c.Block,InteractiveElement:m},props:["isInteractive","componentRef","componentOptions","builderBlock","context","linkComponent","includeBlockProps","blockChildren","registeredComponents"],data(){return{Wrapper:this.isInteractive?c.wrapComponentRef(m):this.componentRef,getWrapperProps:b}}});function C(e,n,s,i,r,l){const o=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.blockChildren,(p,k)=>(t.openBlock(),t.createBlock(o,{key:p.id,block:p,context:e.context,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent},null,8,["block","context","registeredComponents","linkComponent"]))),128))]),_:1},16)):t.createCommentVNode("",!0)}const h=c._export_sfc(B,[["render",C]]);exports.default=h;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<Readonly<{}>, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<Readonly<{}>>>, {}, {}>;
2
+ export default _default;
@@ -13,21 +13,21 @@ declare const _default: import("vue").DefineComponent<Readonly<{
13
13
  context?: any;
14
14
  block?: any;
15
15
  includeBlockProps?: any;
16
- wrapperProps?: any;
17
16
  Wrapper?: any;
17
+ wrapperProps?: any;
18
18
  }>, unknown, unknown, {
19
19
  attributes(): {};
20
20
  }, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
21
21
  context?: any;
22
22
  block?: any;
23
23
  includeBlockProps?: any;
24
- wrapperProps?: any;
25
24
  Wrapper?: any;
25
+ wrapperProps?: any;
26
26
  }>>>, {
27
27
  readonly context?: any;
28
28
  readonly block?: any;
29
29
  readonly includeBlockProps?: any;
30
- readonly wrapperProps?: any;
31
30
  readonly Wrapper?: any;
31
+ readonly wrapperProps?: any;
32
32
  }, {}>;
33
33
  export default _default;
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "2.0.13";
1
+ export declare const SDK_VERSION = "2.0.14-9";
@@ -0,0 +1,4 @@
1
+ /**
2
+ * To be overriden to the correct `Component` type for each framework.
3
+ */
4
+ export type ComponentReference = any;
@@ -3,9 +3,10 @@ import type { ApiVersion } from '../types/api-version';
3
3
  import type { BuilderContent } from '../types/builder-content';
4
4
  import type { ComponentInfo } from '../types/components';
5
5
  import type { Dictionary, Nullable } from '../types/typescript';
6
+ import type { ComponentReference } from './component-reference-types';
6
7
  import type { ExtraContextTypes } from './extra-context-types';
7
8
  export type RegisteredComponent = ComponentInfo & {
8
- component: any;
9
+ component: ComponentReference;
9
10
  };
10
11
  export type RegisteredComponents = Dictionary<RegisteredComponent>;
11
12
  export type BuilderRenderState = Record<string, unknown>;
@@ -1 +1,3 @@
1
- export declare const shouldForceBrowserRuntimeInNode: () => boolean;
1
+ export declare const shouldForceBrowserRuntimeInNode: ({ shouldLogWarning }: {
2
+ shouldLogWarning: boolean;
3
+ }) => boolean;
@@ -1 +1 @@
1
- var d=require("./style.css");const a=require("./index-sPD8fzSJ.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 p=e=>({href:e.href});function f({block:e,context:t}){var o;const r={...p(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=f;
1
+ var d=require("./style.css");const a=require("./index-lmwS3mzV.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 p=e=>({href:e.href});function f({block:e,context:t}){var o;const r={...p(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=f;
@@ -1,5 +1,5 @@
1
1
  import "./style.css";
2
- import { f as s, T as c, h as i, i as l } from "./index-3j8dJ25f.js";
2
+ import { f as s, T as c, h as i, i as l } from "./index-I8S_d0S0.js";
3
3
  const f = (e) => `v-on:${e.toLowerCase()}`, p = (e, t) => (r) => s({
4
4
  code: e,
5
5
  context: t.context,
@@ -257,13 +257,17 @@ function Wt() {
257
257
  var e;
258
258
  return typeof process < "u" && L((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
259
259
  }
260
- const Nt = () => {
261
- var o;
260
+ const Nt = ({
261
+ shouldLogWarning: e
262
+ }) => {
263
+ var r;
262
264
  if (!Wt())
263
265
  return !1;
264
- const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (o = process.env.NODE_OPTIONS) == null ? void 0 : o.includes("--no-node-snapshot");
265
- return e && t && !n ? (B.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
266
- }, Ot = (e) => (I() || Nt(), Ce(e)), Ft = !0, W = class W {
266
+ const t = process.arch === "arm64", n = process.version.startsWith("v20"), o = (r = process.env.NODE_OPTIONS) == null ? void 0 : r.includes("--no-node-snapshot");
267
+ return t && n && !o ? (e && B.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
268
+ }, Ot = (e) => (I() || Nt({
269
+ shouldLogWarning: !0
270
+ }), Ce(e)), Ft = !0, W = class W {
267
271
  static getCacheKey(t) {
268
272
  return JSON.stringify({
269
273
  ...t,
@@ -658,7 +662,7 @@ function Je(e, t) {
658
662
  const n = new URL(t.origin), o = n.hostname;
659
663
  return (e || dn).findIndex((r) => r.startsWith("*.") ? o.endsWith(r.slice(1)) : r === o) > -1;
660
664
  }
661
- const un = "2.0.13", pn = () => {
665
+ const un = "2.0.14-9", pn = () => {
662
666
  qt("insertMenu", {
663
667
  name: "_default",
664
668
  default: !0,
@@ -1231,22 +1235,22 @@ const Vn = ({
1231
1235
  "Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
1232
1236
  e
1233
1237
  ), e;
1234
- }), Un = () => import("./block-styles-03Qg_nl9.js").then((e) => e.default).catch((e) => {
1238
+ }), Un = () => import("./block-styles-eFSzzXFY.js").then((e) => e.default).catch((e) => {
1235
1239
  throw console.error(
1236
1240
  "Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
1237
1241
  e
1238
1242
  ), e;
1239
- }), Mn = () => import("./block-wrapper-7wDwU1ik.js").then((e) => e.default).catch((e) => {
1243
+ }), Mn = () => import("./block-wrapper-eFWj6yiY.js").then((e) => e.default).catch((e) => {
1240
1244
  throw console.error(
1241
1245
  "Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
1242
1246
  e
1243
1247
  ), e;
1244
- }), Hn = () => import("./component-ref-yQ6WDHbR.js").then((e) => e.default).catch((e) => {
1248
+ }), Hn = () => import("./component-ref-bqBnNLM4.js").then((e) => e.default).catch((e) => {
1245
1249
  throw console.error(
1246
1250
  "Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
1247
1251
  e
1248
1252
  ), e;
1249
- }), jn = () => import("./repeated-block-_EQDFqYb.js").then((e) => e.default).catch((e) => {
1253
+ }), jn = () => import("./repeated-block-AWjvlp94.js").then((e) => e.default).catch((e) => {
1250
1254
  throw console.error(
1251
1255
  "Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
1252
1256
  e
@@ -1462,7 +1466,7 @@ const ke = /* @__PURE__ */ b(Kn, [["render", qn]]), Ui = /* @__PURE__ */ Object.
1462
1466
  function Jn(e, t, n, o, r, i) {
1463
1467
  return c(), g(K(e.BlocksWrapper), C({
1464
1468
  ref: "blocksWrapperRef",
1465
- class: e.className + " component-178o76acnws",
1469
+ class: e.className + " component-1k2igrjdg3x",
1466
1470
  "builder-path": e.path,
1467
1471
  "builder-parent-id": e.parent,
1468
1472
  style: e.styleProp,
@@ -1476,7 +1480,7 @@ function Jn(e, t, n, o, r, i) {
1476
1480
  _: 3
1477
1481
  }, 16, ["class", "builder-path", "builder-parent-id", "style", "onClick", "onMouseEnter", "onKeyPress"]);
1478
1482
  }
1479
- const Gn = /* @__PURE__ */ b(zn, [["render", Jn], ["__scopeId", "data-v-824f09a8"]]), Yn = f({
1483
+ const Gn = /* @__PURE__ */ b(zn, [["render", Jn], ["__scopeId", "data-v-162df12b"]]), Yn = f({
1480
1484
  name: "builder-blocks",
1481
1485
  components: { BlocksWrapper: Gn, Block: ke },
1482
1486
  props: [
@@ -1718,7 +1722,7 @@ function oo(e, t, n, o, r, i) {
1718
1722
  var u;
1719
1723
  const s = y("InlinedStyles"), l = y("Blocks"), a = y("DynamicRenderer");
1720
1724
  return c(), m("div", C({
1721
- class: e.getColumnsClass((u = e.builderBlock) == null ? void 0 : u.id) + " div-2brhoa1k8gd",
1725
+ class: e.getColumnsClass((u = e.builderBlock) == null ? void 0 : u.id) + " div-4wbls88y960",
1722
1726
  style: e.columnsCssVars()
1723
1727
  }, {}), [
1724
1728
  e.TARGET !== "reactNative" ? (c(), g(s, {
@@ -1750,7 +1754,7 @@ function oo(e, t, n, o, r, i) {
1750
1754
  }, 1032, ["TagName", "attributes"]))), 128))
1751
1755
  ], 16);
1752
1756
  }
1753
- const ro = /* @__PURE__ */ b(no, [["render", oo], ["__scopeId", "data-v-52366f16"]]), io = f({
1757
+ const ro = /* @__PURE__ */ b(no, [["render", oo], ["__scopeId", "data-v-adc066fc"]]), io = f({
1754
1758
  name: "builder-fragment-component",
1755
1759
  props: []
1756
1760
  });
@@ -1843,7 +1847,7 @@ const uo = f({
1843
1847
  }
1844
1848
  }), po = ["srcset"], mo = ["loading", "fetchpriority", "alt", "role", "src", "srcset", "sizes"], ho = {
1845
1849
  key: 2,
1846
- class: "div-1pl23ac79ld-2"
1850
+ class: "div-29wpyomtntv-2"
1847
1851
  };
1848
1852
  function fo(e, t, n, o, r, i) {
1849
1853
  var s, l, a, u, h, d;
@@ -1865,7 +1869,7 @@ function fo(e, t, n, o, r, i) {
1865
1869
  ...e.aspectRatioCss
1866
1870
  }),
1867
1871
  class: J(
1868
- "builder-image" + (e.className ? " " + e.className : "") + " img-1pl23ac79ld"
1872
+ "builder-image" + (e.className ? " " + e.className : "") + " img-29wpyomtntv"
1869
1873
  ),
1870
1874
  src: e.image,
1871
1875
  srcset: e.srcSetToUse,
@@ -1874,7 +1878,7 @@ function fo(e, t, n, o, r, i) {
1874
1878
  ]),
1875
1879
  e.aspectRatio && !((l = (s = e.builderBlock) == null ? void 0 : s.children) != null && l.length && e.fitContent) ? (c(), m("div", {
1876
1880
  key: 0,
1877
- class: "builder-image-sizer div-1pl23ac79ld",
1881
+ class: "builder-image-sizer div-29wpyomtntv",
1878
1882
  style: D({
1879
1883
  paddingTop: e.aspectRatio * 100 + "%"
1880
1884
  })
@@ -1885,7 +1889,7 @@ function fo(e, t, n, o, r, i) {
1885
1889
  ])) : S("", !0)
1886
1890
  ], 64);
1887
1891
  }
1888
- const bo = /* @__PURE__ */ b(uo, [["render", fo], ["__scopeId", "data-v-b1147753"]]), go = f({
1892
+ const bo = /* @__PURE__ */ b(uo, [["render", fo], ["__scopeId", "data-v-77f8a6c4"]]), go = f({
1889
1893
  name: "builder-section-component",
1890
1894
  props: ["attributes", "maxWidth"],
1891
1895
  data() {
@@ -3449,7 +3453,7 @@ const rr = /* @__PURE__ */ b(tr, [["render", or]]), ir = {
3449
3453
  }
3450
3454
  }), dr = ["validate", "action", "method", "name"], ur = {
3451
3455
  key: 3,
3452
- class: "builder-form-error-text pre-3i4ezorcfhi"
3456
+ class: "builder-form-error-text pre-3q96myty4lk"
3453
3457
  };
3454
3458
  function pr(e, t, n, o, r, i) {
3455
3459
  var a;
@@ -3490,7 +3494,7 @@ function pr(e, t, n, o, r, i) {
3490
3494
  }, null, 8, ["blocks", "context"])) : S("", !0)
3491
3495
  ], 16, dr);
3492
3496
  }
3493
- const mr = /* @__PURE__ */ b(cr, [["render", pr], ["__scopeId", "data-v-489330f7"]]), hr = {
3497
+ const mr = /* @__PURE__ */ b(cr, [["render", pr], ["__scopeId", "data-v-6e18f21b"]]), hr = {
3494
3498
  name: "Form:Input",
3495
3499
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
3496
3500
  inputs: [