@builder.io/sdk-vue 2.0.17 → 2.0.21

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 (88) hide show
  1. package/lib/browser/awaiter-63wFxDc-.cjs +1 -0
  2. package/lib/browser/awaiter-wFAQUD8u.js +16 -0
  3. package/lib/browser/{block-styles-XATffH3k.js → block-styles-e9UJWxRw.js} +1 -1
  4. package/lib/browser/{block-styles-Zh_uY_9J.cjs → block-styles-w3CYR9qS.cjs} +1 -1
  5. package/lib/browser/{block-wrapper-3zieXizb.js → block-wrapper-BBK1LMQ8.js} +3 -3
  6. package/lib/browser/{block-wrapper-qyvezpeU.cjs → block-wrapper-KE-bUIi7.cjs} +1 -1
  7. package/lib/browser/component-ref-cecMbUuX.js +135 -0
  8. package/lib/browser/component-ref-e6CG1TqL.cjs +1 -0
  9. package/lib/browser/components/awaiter.vue.d.ts +2 -0
  10. package/lib/browser/components/block/components/interactive-element.vue.d.ts +3 -3
  11. package/lib/browser/components/content/components/enable-editor.vue.d.ts +0 -7
  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/browser-runtime/browser.d.ts +0 -6
  16. package/lib/browser/functions/evaluate/helpers.d.ts +5 -0
  17. package/lib/browser/{get-block-properties-fBYHk4bI.cjs → get-block-properties-8qBDZMKr.cjs} +1 -1
  18. package/lib/browser/{get-block-properties-pPWign8y.js → get-block-properties-JZrAY1r_.js} +1 -1
  19. package/lib/browser/{index-BOG8Hl1M.js → index-ei0E4zOL.js} +259 -280
  20. package/lib/browser/{index-1YjkT_sc.cjs → index-uR3yr3o2.cjs} +15 -15
  21. package/lib/browser/index.cjs +1 -1
  22. package/lib/browser/index.mjs +1 -1
  23. package/lib/browser/{repeated-block-zS917EGl.js → repeated-block-4KouNbyE.js} +2 -2
  24. package/lib/browser/{repeated-block-0DDJP8Gf.cjs → repeated-block-5kGcO6DI.cjs} +1 -1
  25. package/lib/browser/style.css +1 -1
  26. package/lib/edge/awaiter-aq8paHrs.cjs +1 -0
  27. package/lib/edge/awaiter-byTF6qeD.js +15 -0
  28. package/lib/edge/{block-styles-42NfQ-QZ.js → block-styles-8MRmenjP.js} +1 -1
  29. package/lib/edge/{block-styles-XqNJ134U.cjs → block-styles-sHjSbOMY.cjs} +1 -1
  30. package/lib/edge/{block-wrapper-rnfy_SCM.cjs → block-wrapper-ilLh_PHh.cjs} +1 -1
  31. package/lib/edge/{block-wrapper-ir-wF7K0.js → block-wrapper-rzB4thH4.js} +3 -3
  32. package/lib/edge/component-ref-FJL2g6D2.cjs +1 -0
  33. package/lib/edge/component-ref-hkYDlUjG.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/components/content/components/enable-editor.vue.d.ts +0 -7
  37. package/lib/edge/constants/sdk-version.d.ts +1 -1
  38. package/lib/edge/context/component-reference-types.d.ts +4 -0
  39. package/lib/edge/context/types.d.ts +2 -1
  40. package/lib/edge/functions/evaluate/browser-runtime/browser.d.ts +0 -6
  41. package/lib/edge/functions/evaluate/helpers.d.ts +5 -0
  42. package/lib/edge/{get-block-properties-eb2d5_4Q.cjs → get-block-properties-aM96dauJ.cjs} +1 -1
  43. package/lib/edge/{get-block-properties-ALNjeTqz.js → get-block-properties-cbYhtG2B.js} +1 -1
  44. package/lib/edge/index-Nw62yGCU.cjs +184 -0
  45. package/lib/edge/{index-v3LhePEX.js → index-s36DlX8g.js} +1382 -1385
  46. package/lib/edge/index.cjs +1 -1
  47. package/lib/edge/index.mjs +1 -1
  48. package/lib/{node/repeated-block-npWRvHlT.cjs → edge/repeated-block-wdJ005G3.cjs} +1 -1
  49. package/lib/edge/{repeated-block-Uq0TRwkZ.js → repeated-block-zOlg6ACd.js} +2 -2
  50. package/lib/edge/style.css +1 -1
  51. package/lib/node/awaiter-Fsn-BZdK.cjs +1 -0
  52. package/lib/node/awaiter-c00-BKl8.js +15 -0
  53. package/lib/node/{block-styles-Su4n0sEi.cjs → block-styles-dNkK6XUk.cjs} +1 -1
  54. package/lib/node/{block-styles-vHF5sPG1.js → block-styles-y32fRgui.js} +2 -2
  55. package/lib/node/{block-wrapper-Txf-PVII.cjs → block-wrapper-9SHqyGhh.cjs} +1 -1
  56. package/lib/node/{block-wrapper-IDLu_rNS.js → block-wrapper-Gb1-_hO0.js} +3 -3
  57. package/lib/node/component-ref-9ri0cWhO.js +134 -0
  58. package/lib/node/component-ref-LAJelZZi.cjs +1 -0
  59. package/lib/node/components/awaiter.vue.d.ts +2 -0
  60. package/lib/node/components/block/components/interactive-element.vue.d.ts +3 -3
  61. package/lib/node/components/content/components/enable-editor.vue.d.ts +0 -7
  62. package/lib/node/constants/sdk-version.d.ts +1 -1
  63. package/lib/node/context/component-reference-types.d.ts +4 -0
  64. package/lib/node/context/types.d.ts +2 -1
  65. package/lib/node/functions/evaluate/browser-runtime/browser.d.ts +0 -6
  66. package/lib/node/functions/evaluate/helpers.d.ts +5 -0
  67. package/lib/node/{get-block-properties-ddqamR0O.cjs → get-block-properties-XKVJQeGu.cjs} +1 -1
  68. package/lib/node/{get-block-properties-Ofwbz2xI.js → get-block-properties-hbwsLjcS.js} +2 -2
  69. package/lib/node/{index-DIvgU3ms.cjs → index-eLulgxIT.cjs} +25 -25
  70. package/lib/node/{index-3yXRUxo9.js → index-owOkjqS8.js} +499 -546
  71. package/lib/node/index.cjs +1 -1
  72. package/lib/node/index.mjs +7 -7
  73. package/lib/node/init.cjs +1 -1
  74. package/lib/node/init.mjs +1 -1
  75. package/lib/{edge/repeated-block-n_hytrP5.cjs → node/repeated-block-keRWtfEG.cjs} +1 -1
  76. package/lib/node/{repeated-block-e-lz3FXu.js → repeated-block-xs28_Dw4.js} +2 -2
  77. package/lib/node/{should-force-browser-runtime-in-node-cm1lg4FM.cjs → should-force-browser-runtime-in-node-k58tZzl7.cjs} +2 -2
  78. package/lib/node/{should-force-browser-runtime-in-node-Hy3G5eB4.js → should-force-browser-runtime-in-node-o45oecPI.js} +61 -34
  79. package/lib/node/style.css +1 -1
  80. package/nuxt.js +1 -1
  81. package/package.json +1 -2
  82. package/lib/browser/component-ref-7Yms_kIr.cjs +0 -1
  83. package/lib/browser/component-ref-Y4ahpku0.js +0 -114
  84. package/lib/edge/component-ref-BZN6oNTF.cjs +0 -1
  85. package/lib/edge/component-ref-RIUPYjj6.js +0 -113
  86. package/lib/edge/index-0XQ5XNP7.cjs +0 -186
  87. package/lib/node/component-ref-UXGJDqnl.js +0 -113
  88. package/lib/node/component-ref-Wtcz1Bo2.cjs +0 -1
@@ -1,113 +0,0 @@
1
- import { defineComponent as m, openBlock as r, createBlock as a, resolveDynamicComponent as k, mergeProps as u, withCtx as d, renderSlot as h, resolveComponent as B, normalizeProps as P, createElementBlock as g, Fragment as $, renderList as v, createCommentVNode as S } from "vue";
2
- import { d as f, B as W, w } from "./index-3yXRUxo9.js";
3
- import { a as b, g as R } from "./get-block-properties-Ofwbz2xI.js";
4
- const x = m({
5
- name: "interactive-element",
6
- props: ["includeBlockProps", "block", "context", "wrapperProps", "Wrapper"],
7
- computed: {
8
- attributes() {
9
- return this.includeBlockProps ? {
10
- ...b({
11
- block: this.block,
12
- context: this.context
13
- }),
14
- ...R({
15
- block: this.block,
16
- rootState: this.context.rootState,
17
- rootSetState: this.context.rootSetState,
18
- localState: this.context.localState,
19
- context: this.context.context
20
- })
21
- } : {};
22
- }
23
- }
24
- });
25
- function I(e, t, p, s, o, c) {
26
- return r(), a(k(e.Wrapper), u({ attributes: e.attributes }, e.wrapperProps), {
27
- default: d(() => [
28
- h(e.$slots, "default")
29
- ]),
30
- _: 3
31
- }, 16, ["attributes"]);
32
- }
33
- const l = /* @__PURE__ */ f(x, [["render", I]]), E = ({
34
- componentOptions: e,
35
- builderBlock: t,
36
- context: p,
37
- componentRef: s,
38
- includeBlockProps: o,
39
- isInteractive: c,
40
- contextValue: i
41
- }) => {
42
- const n = {
43
- ...e,
44
- /**
45
- * If `noWrap` is set to `true`, then the block's props/attributes are provided to the
46
- * component itself directly. Otherwise, they are provided to the wrapper element.
47
- */
48
- ...o ? {
49
- attributes: b({
50
- block: t,
51
- context: i
52
- })
53
- } : {}
54
- };
55
- return c ? {
56
- Wrapper: s,
57
- block: t,
58
- context: p,
59
- wrapperProps: e,
60
- includeBlockProps: o
61
- } : n;
62
- }, y = m({
63
- name: "component-ref",
64
- components: { Block: W, InteractiveElement: l },
65
- props: [
66
- "isInteractive",
67
- "componentRef",
68
- "componentOptions",
69
- "builderBlock",
70
- "context",
71
- "linkComponent",
72
- "includeBlockProps",
73
- "blockChildren",
74
- "registeredComponents"
75
- ],
76
- data() {
77
- return {
78
- Wrapper: this.isInteractive ? w(l) : this.componentRef,
79
- getWrapperProps: E
80
- };
81
- }
82
- });
83
- function A(e, t, p, s, o, c) {
84
- const i = B("Block");
85
- return e.componentRef ? (r(), a(k(e.Wrapper), P(u(
86
- { key: 0 },
87
- e.getWrapperProps({
88
- componentOptions: e.componentOptions,
89
- builderBlock: e.builderBlock,
90
- context: e.context,
91
- componentRef: e.componentRef,
92
- linkComponent: e.linkComponent,
93
- includeBlockProps: e.includeBlockProps,
94
- isInteractive: e.isInteractive,
95
- contextValue: e.context
96
- })
97
- )), {
98
- default: d(() => [
99
- (r(!0), g($, null, v(e.blockChildren, (n, C) => (r(), a(i, {
100
- key: n.id,
101
- block: n,
102
- context: e.context,
103
- registeredComponents: e.registeredComponents,
104
- linkComponent: e.linkComponent
105
- }, null, 8, ["block", "context", "registeredComponents", "linkComponent"]))), 128))
106
- ]),
107
- _: 1
108
- }, 16)) : S("", !0);
109
- }
110
- const D = /* @__PURE__ */ f(y, [["render", A]]);
111
- export {
112
- D as default
113
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),c=require("./index-DIvgU3ms.cjs"),a=require("./get-block-properties-ddqamR0O.cjs"),u=t.defineComponent({name:"interactive-element",props:["includeBlockProps","block","context","wrapperProps","Wrapper"],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 d(e,o,p,s,n,i){return t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.Wrapper),t.mergeProps({attributes:e.attributes},e.wrapperProps),{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},16,["attributes"])}const m=c._export_sfc(u,[["render",d]]),f=({componentOptions:e,builderBlock:o,context:p,componentRef:s,includeBlockProps:n,isInteractive:i,contextValue:l})=>{const r={...e,...n?{attributes:a.getBlockProperties({block:o,context:l})}:{}};return i?{Wrapper:s,block:o,context:p,wrapperProps:e,includeBlockProps:n}:r},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:f}}});function b(e,o,p,s,n,i){const l=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,(r,k)=>(t.openBlock(),t.createBlock(l,{key:r.id,block:r,context:e.context,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent},null,8,["block","context","registeredComponents","linkComponent"]))),128))]),_:1},16)):t.createCommentVNode("",!0)}const C=c._export_sfc(B,[["render",b]]);exports.default=C;