@builder.io/sdk-vue 0.11.2 → 0.11.4

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 (137) hide show
  1. package/README.md +15 -12
  2. package/lib/browser/block-styles.8f0654da.js +70 -0
  3. package/lib/browser/block-styles.d76101ae.cjs +1 -0
  4. package/lib/browser/block-wrapper.0135d727.js +56 -0
  5. package/lib/browser/block-wrapper.669178c6.cjs +1 -0
  6. package/lib/browser/blocks/button/button.types.d.ts +6 -0
  7. package/lib/browser/blocks/button/button.vue.d.ts +0 -9
  8. package/lib/browser/blocks/columns/columns.types.d.ts +15 -0
  9. package/lib/browser/blocks/columns/columns.vue.d.ts +0 -14
  10. package/lib/browser/blocks/fragment/fragment.types.d.ts +5 -0
  11. package/lib/browser/blocks/fragment/fragment.vue.d.ts +0 -5
  12. package/lib/browser/blocks/image/image.types.d.ts +19 -0
  13. package/lib/browser/blocks/image/image.vue.d.ts +0 -19
  14. package/lib/browser/blocks/section/section.types.d.ts +6 -0
  15. package/lib/browser/blocks/section/section.vue.d.ts +0 -9
  16. package/lib/browser/blocks/symbol/symbol.types.d.ts +18 -0
  17. package/lib/browser/blocks/symbol/symbol.vue.d.ts +0 -23
  18. package/lib/browser/blocks/text/text.types.d.ts +3 -0
  19. package/lib/browser/blocks/text/text.vue.d.ts +0 -3
  20. package/lib/browser/blocks/video/video.types.d.ts +21 -0
  21. package/lib/browser/blocks/video/video.vue.d.ts +0 -21
  22. package/lib/{edge/component-ref.b20baf4e.js → browser/component-ref.9bbf487c.js} +40 -47
  23. package/lib/browser/component-ref.f273e2bb.cjs +1 -0
  24. package/lib/browser/components/blocks/blocks.types.d.ts +6 -0
  25. package/lib/browser/components/blocks/blocks.vue.d.ts +0 -6
  26. package/lib/browser/components/content/components/enable-editor.vue.d.ts +12 -0
  27. package/lib/browser/components/content/content.helpers.d.ts +1 -1
  28. package/lib/browser/components/content-variants/content-variants.types.d.ts +30 -1
  29. package/lib/browser/constants/sdk-version.d.ts +1 -1
  30. package/lib/browser/css.0ab8602b.js +22 -0
  31. package/lib/browser/css.a1dfcd0d.cjs +6 -0
  32. package/lib/browser/functions/get-content/index.d.ts +1 -1
  33. package/lib/browser/functions/get-content/types.d.ts +2 -2
  34. package/lib/browser/get-block-actions.01d505fc.cjs +1 -0
  35. package/lib/{node/get-block-actions.93573479.js → browser/get-block-actions.f3ed3777.js} +13 -11
  36. package/lib/browser/{index.523c82d0.js → index.6e613dba.js} +735 -787
  37. package/lib/browser/index.732e9dec.cjs +156 -0
  38. package/lib/browser/index.cjs +1 -1
  39. package/lib/browser/index.js +8 -8
  40. package/lib/browser/{repeated-block.b8d63262.js → repeated-block.ab0829a7.js} +2 -2
  41. package/lib/browser/{repeated-block.a0ed3abf.cjs → repeated-block.c6e24224.cjs} +1 -1
  42. package/lib/browser/server-index.d.ts +10 -1
  43. package/lib/edge/block-styles.a2c5d017.cjs +1 -0
  44. package/lib/edge/block-styles.bed8f6d5.js +69 -0
  45. package/lib/{browser/block-wrapper.166db2f3.js → edge/block-wrapper.0057cc28.js} +3 -3
  46. package/lib/edge/block-wrapper.9a650872.cjs +1 -0
  47. package/lib/edge/blocks/button/button.types.d.ts +6 -0
  48. package/lib/edge/blocks/button/button.vue.d.ts +0 -9
  49. package/lib/edge/blocks/columns/columns.types.d.ts +15 -0
  50. package/lib/edge/blocks/columns/columns.vue.d.ts +0 -14
  51. package/lib/edge/blocks/fragment/fragment.types.d.ts +5 -0
  52. package/lib/edge/blocks/fragment/fragment.vue.d.ts +0 -5
  53. package/lib/edge/blocks/image/image.types.d.ts +19 -0
  54. package/lib/edge/blocks/image/image.vue.d.ts +0 -19
  55. package/lib/edge/blocks/section/section.types.d.ts +6 -0
  56. package/lib/edge/blocks/section/section.vue.d.ts +0 -9
  57. package/lib/edge/blocks/symbol/symbol.types.d.ts +18 -0
  58. package/lib/edge/blocks/symbol/symbol.vue.d.ts +0 -23
  59. package/lib/edge/blocks/text/text.types.d.ts +3 -0
  60. package/lib/edge/blocks/text/text.vue.d.ts +0 -3
  61. package/lib/edge/blocks/video/video.types.d.ts +21 -0
  62. package/lib/edge/blocks/video/video.vue.d.ts +0 -21
  63. package/lib/edge/component-ref.d38b1b05.cjs +1 -0
  64. package/lib/{browser/component-ref.10189e21.js → edge/component-ref.dc15b1b3.js} +40 -49
  65. package/lib/edge/components/blocks/blocks.types.d.ts +6 -0
  66. package/lib/edge/components/blocks/blocks.vue.d.ts +0 -6
  67. package/lib/edge/components/content/components/enable-editor.vue.d.ts +12 -0
  68. package/lib/edge/components/content/content.helpers.d.ts +1 -1
  69. package/lib/edge/components/content-variants/content-variants.types.d.ts +30 -1
  70. package/lib/edge/constants/sdk-version.d.ts +1 -1
  71. package/lib/edge/css.85043e1b.cjs +6 -0
  72. package/lib/edge/css.dc615681.js +21 -0
  73. package/lib/edge/functions/get-content/index.d.ts +1 -1
  74. package/lib/edge/functions/get-content/types.d.ts +2 -2
  75. package/lib/{browser/get-block-actions.cf32df43.js → edge/get-block-actions.49c48fed.js} +4 -4
  76. package/lib/edge/get-block-actions.998faf5f.cjs +1 -0
  77. package/lib/edge/{index.75e7a27c.js → index.29ef8c7a.js} +1287 -1339
  78. package/lib/edge/{index.0db08bf0.cjs → index.93931a31.cjs} +26 -31
  79. package/lib/edge/index.cjs +1 -1
  80. package/lib/edge/index.js +7 -7
  81. package/lib/edge/{repeated-block.d5c52934.js → repeated-block.1815e5e5.js} +2 -2
  82. package/lib/edge/{repeated-block.c831f250.cjs → repeated-block.e2a28b68.cjs} +1 -1
  83. package/lib/edge/server-index.d.ts +10 -1
  84. package/lib/node/block-styles.862ad1e7.cjs +1 -0
  85. package/lib/node/block-styles.b095e76c.js +70 -0
  86. package/lib/node/block-wrapper.ab4d974f.cjs +1 -0
  87. package/lib/node/block-wrapper.f5507846.js +56 -0
  88. package/lib/node/blocks/button/button.types.d.ts +6 -0
  89. package/lib/node/blocks/button/button.vue.d.ts +0 -9
  90. package/lib/node/blocks/columns/columns.types.d.ts +15 -0
  91. package/lib/node/blocks/columns/columns.vue.d.ts +0 -14
  92. package/lib/node/blocks/fragment/fragment.types.d.ts +5 -0
  93. package/lib/node/blocks/fragment/fragment.vue.d.ts +0 -5
  94. package/lib/node/blocks/image/image.types.d.ts +19 -0
  95. package/lib/node/blocks/image/image.vue.d.ts +0 -19
  96. package/lib/node/blocks/section/section.types.d.ts +6 -0
  97. package/lib/node/blocks/section/section.vue.d.ts +0 -9
  98. package/lib/node/blocks/symbol/symbol.types.d.ts +18 -0
  99. package/lib/node/blocks/symbol/symbol.vue.d.ts +0 -23
  100. package/lib/node/blocks/text/text.types.d.ts +3 -0
  101. package/lib/node/blocks/text/text.vue.d.ts +0 -3
  102. package/lib/node/blocks/video/video.types.d.ts +21 -0
  103. package/lib/node/blocks/video/video.vue.d.ts +0 -21
  104. package/lib/node/component-ref.98e3808c.cjs +1 -0
  105. package/lib/node/{component-ref.a61e19d0.js → component-ref.a49a09a7.js} +40 -48
  106. package/lib/node/components/blocks/blocks.types.d.ts +6 -0
  107. package/lib/node/components/blocks/blocks.vue.d.ts +0 -6
  108. package/lib/node/components/content/components/enable-editor.vue.d.ts +12 -0
  109. package/lib/node/components/content/content.helpers.d.ts +1 -1
  110. package/lib/node/components/content-variants/content-variants.types.d.ts +30 -1
  111. package/lib/node/constants/sdk-version.d.ts +1 -1
  112. package/lib/node/css.7cf759d3.js +21 -0
  113. package/lib/node/css.e4e28b3e.cjs +6 -0
  114. package/lib/node/functions/get-content/index.d.ts +1 -1
  115. package/lib/node/functions/get-content/types.d.ts +2 -2
  116. package/lib/node/get-block-actions.6ee48138.cjs +1 -0
  117. package/lib/{edge/get-block-actions.01191962.js → node/get-block-actions.96799d8b.js} +10 -9
  118. package/lib/node/{index.e41a8ad1.js → index.8a4deeec.js} +316 -368
  119. package/lib/node/{index.c2ecfe73.cjs → index.cf17f259.cjs} +6 -11
  120. package/lib/node/index.cjs +1 -1
  121. package/lib/node/index.js +8 -8
  122. package/lib/node/{repeated-block.7c2934b2.js → repeated-block.93e6e548.js} +2 -2
  123. package/lib/node/{repeated-block.088dd1eb.cjs → repeated-block.b9f01b9c.cjs} +1 -1
  124. package/lib/node/server-index.d.ts +10 -1
  125. package/package.json +47 -1
  126. package/lib/browser/block-wrapper.c7230ad9.cjs +0 -1
  127. package/lib/browser/component-ref.1ce72666.cjs +0 -1
  128. package/lib/browser/get-block-actions.8886d821.cjs +0 -1
  129. package/lib/browser/index.12ba04ce.cjs +0 -161
  130. package/lib/edge/block-wrapper.15cada1a.cjs +0 -1
  131. package/lib/edge/block-wrapper.ca1e4088.js +0 -54
  132. package/lib/edge/component-ref.8713bd04.cjs +0 -1
  133. package/lib/edge/get-block-actions.3e82e320.cjs +0 -1
  134. package/lib/node/block-wrapper.225409d6.cjs +0 -1
  135. package/lib/node/block-wrapper.90336157.js +0 -55
  136. package/lib/node/component-ref.2e739af9.cjs +0 -1
  137. package/lib/node/get-block-actions.f91cf957.cjs +0 -1
@@ -1,22 +1,3 @@
1
- import type { BuilderBlock } from "../../types/builder-block.js";
2
- export interface ImageProps {
3
- className?: string;
4
- image: string;
5
- sizes?: string;
6
- lazy?: boolean;
7
- height?: number;
8
- width?: number;
9
- altText?: string;
10
- backgroundSize?: "cover" | "contain";
11
- backgroundPosition?: string;
12
- srcset?: string;
13
- aspectRatio?: number;
14
- children?: any;
15
- fitContent?: boolean;
16
- builderBlock?: BuilderBlock;
17
- noWebp?: boolean;
18
- src?: string;
19
- }
20
1
  declare const _default: import("vue").DefineComponent<Readonly<{
21
2
  image?: any;
22
3
  className?: any;
@@ -0,0 +1,6 @@
1
+ export interface SectionProps {
2
+ maxWidth?: number;
3
+ attributes?: any;
4
+ children?: any;
5
+ builderBlock?: any;
6
+ }
@@ -1,13 +1,4 @@
1
1
  import { filterAttrs } from "../helpers.js";
2
- /**
3
- * This import is used by the Svelte SDK. Do not remove.
4
- */
5
- export interface SectionProps {
6
- maxWidth?: number;
7
- attributes?: any;
8
- children?: any;
9
- builderBlock?: any;
10
- }
11
2
  declare const _default: import("vue").DefineComponent<Readonly<{
12
3
  attributes?: any;
13
4
  maxWidth?: any;
@@ -0,0 +1,18 @@
1
+ import type { BuilderContent } from '../../types/builder-content.js';
2
+ import type { BuilderComponentsProp } from '../../types/builder-props.js';
3
+ interface SymbolInfo {
4
+ model?: string;
5
+ entry?: string;
6
+ data?: any;
7
+ content?: BuilderContent;
8
+ inline?: boolean;
9
+ dynamic?: boolean;
10
+ }
11
+ export interface SymbolProps extends BuilderComponentsProp {
12
+ symbol?: SymbolInfo;
13
+ dataOnly?: boolean;
14
+ dynamic?: boolean;
15
+ attributes?: any;
16
+ inheritState?: boolean;
17
+ }
18
+ export {};
@@ -1,27 +1,4 @@
1
- import type { BuilderContent } from "../../types/builder-content.js";
2
- import type { BuilderComponentsProp } from "../../types/builder-props.js";
3
1
  import { filterAttrs } from "../helpers.js";
4
- /**
5
- * This import is used by the Svelte SDK. Do not remove.
6
- */
7
- export interface SymbolInfo {
8
- model?: string;
9
- entry?: string;
10
- data?: any;
11
- content?: BuilderContent;
12
- inline?: boolean;
13
- dynamic?: boolean;
14
- }
15
- /**
16
- * This import is used by the Svelte SDK. Do not remove.
17
- */
18
- export interface SymbolProps extends BuilderComponentsProp {
19
- symbol?: SymbolInfo;
20
- dataOnly?: boolean;
21
- dynamic?: boolean;
22
- attributes?: any;
23
- inheritState?: boolean;
24
- }
25
2
  declare const _default: import("vue").DefineComponent<Readonly<{
26
3
  symbol?: any;
27
4
  builderContext?: any;
@@ -0,0 +1,3 @@
1
+ export type TextProps = {
2
+ text?: string;
3
+ };
@@ -1,6 +1,3 @@
1
- export interface TextProps {
2
- text?: string;
3
- }
4
1
  declare const _default: import("vue").DefineComponent<Readonly<{
5
2
  text?: any;
6
3
  }>, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
@@ -0,0 +1,21 @@
1
+ import type { BuilderBlock } from '../../types/builder-block.js';
2
+ export interface VideoProps {
3
+ attributes?: any;
4
+ video?: string;
5
+ autoPlay?: boolean;
6
+ controls?: boolean;
7
+ muted?: boolean;
8
+ loop?: boolean;
9
+ playsInline?: boolean;
10
+ aspectRatio?: number;
11
+ width?: number;
12
+ height?: number;
13
+ fit?: 'contain' | 'cover' | 'fill';
14
+ preload?: 'auto' | 'metadata' | 'none';
15
+ position?: 'center' | 'top' | 'left' | 'right' | 'bottom' | 'top left' | 'top right' | 'bottom left' | 'bottom right';
16
+ posterImage?: string;
17
+ lazyLoad?: boolean;
18
+ children?: any;
19
+ fitContent?: boolean;
20
+ builderBlock?: BuilderBlock;
21
+ }
@@ -1,24 +1,3 @@
1
- import type { BuilderBlock } from "../../types/builder-block.js";
2
- export interface VideoProps {
3
- attributes?: any;
4
- video?: string;
5
- autoPlay?: boolean;
6
- controls?: boolean;
7
- muted?: boolean;
8
- loop?: boolean;
9
- playsInline?: boolean;
10
- aspectRatio?: number;
11
- width?: number;
12
- height?: number;
13
- fit?: "contain" | "cover" | "fill";
14
- preload?: "auto" | "metadata" | "none";
15
- position?: "center" | "top" | "left" | "right" | "bottom" | "top left" | "top right" | "bottom left" | "bottom right";
16
- posterImage?: string;
17
- lazyLoad?: boolean;
18
- children?: any;
19
- fitContent?: boolean;
20
- builderBlock?: BuilderBlock;
21
- }
22
1
  declare const _default: import("vue").DefineComponent<Readonly<{
23
2
  video?: any;
24
3
  attributes?: any;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),c=require("./index.93931a31.cjs"),a=require("./get-block-actions.998faf5f.cjs");require("./css.85043e1b.cjs");const m=o.defineComponent({name:"interactive-element",props:["wrapperProps","includeBlockProps","block","context","Wrapper"],data(){return{getBlockActions:a.getBlockActions,getBlockProperties:a.getBlockProperties}}});function d(e,t,s,p,n,l){return o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.Wrapper),o.mergeProps({attributes:e.includeBlockProps?{...e.getBlockProperties({block:e.block,context:e.context}),...e.getBlockActions({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context})}:{}},e.wrapperProps),{default:o.withCtx(()=>[o.renderSlot(e.$slots,"default")]),_:3},16,["attributes"])}const u=c._export_sfc(m,[["render",d],["__file","/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/block/components/interactive-element.vue"]]),f=({componentOptions:e,builderBlock:t,context:s,componentRef:p,includeBlockProps:n,isInteractive:l,contextValue:i})=>{const r={...e,...n?{attributes:a.getBlockProperties({block:t,context:i})}:{}};return l?{Wrapper:p,block:t,context:s,wrapperProps:e,includeBlockProps:n}:r},b=o.defineComponent({name:"component-ref",components:{Block:c.Block,InteractiveElement:u},props:["isInteractive","componentRef","componentOptions","builderBlock","context","includeBlockProps","blockChildren","registeredComponents"],data(){return{Wrapper:this.isInteractive?c.wrapComponentRef(u):this.componentRef,getWrapperProps:f}}});function B(e,t,s,p,n,l){const i=o.resolveComponent("block");return e.componentRef?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.Wrapper),o.normalizeProps(o.mergeProps({key:0},e.getWrapperProps({componentOptions:e.componentOptions,builderBlock:e.builderBlock,context:e.context,componentRef:e.componentRef,includeBlockProps:e.includeBlockProps,isInteractive:e.isInteractive,contextValue:e.context}))),{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.blockChildren,(r,k)=>(o.openBlock(),o.createBlock(i,{key:r.id,block:r,context:e.context,registeredComponents:e.registeredComponents},null,8,["block","context","registeredComponents"]))),128))]),_:1},16)):o.createCommentVNode("v-if",!0)}const g=c._export_sfc(b,[["render",B],["__file","/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/block/components/component-ref/component-ref.vue"]]);exports.default=g;
@@ -1,16 +1,16 @@
1
- import "./style.css";
2
- import { defineComponent as f, openBlock as t, createBlock as c, resolveDynamicComponent as v, mergeProps as B, withCtx as P, renderSlot as S, resolveComponent as m, normalizeProps as h, createElementBlock as u, Fragment as k, renderList as d, createCommentVNode as w } from "vue";
3
- import { _ as g, B as y, a as W, w as R } from "./index.523c82d0.js";
4
- import { g as I, a as C } from "./get-block-actions.cf32df43.js";
5
- const E = f({
1
+ import { defineComponent as m, openBlock as r, createBlock as l, resolveDynamicComponent as u, mergeProps as k, withCtx as d, renderSlot as P, resolveComponent as g, normalizeProps as B, createElementBlock as C, Fragment as $, renderList as h, createCommentVNode as w } from "vue";
2
+ import { _ as f, B as S, w as W } from "./index.29ef8c7a.js";
3
+ import { g as R, a as b } from "./get-block-actions.49c48fed.js";
4
+ import "./css.dc615681.js";
5
+ const I = m({
6
6
  name: "interactive-element",
7
7
  props: ["wrapperProps", "includeBlockProps", "block", "context", "Wrapper"],
8
8
  data() {
9
- return { getBlockActions: I, getBlockProperties: C };
9
+ return { getBlockActions: R, getBlockProperties: b };
10
10
  }
11
11
  });
12
- function A(e, n, s, p, r, l) {
13
- return t(), c(v(e.Wrapper), B({
12
+ function E(e, o, p, c, t, s) {
13
+ return r(), l(u(e.Wrapper), k({
14
14
  attributes: e.includeBlockProps ? {
15
15
  ...e.getBlockProperties({
16
16
  block: e.block,
@@ -25,44 +25,40 @@ function A(e, n, s, p, r, l) {
25
25
  })
26
26
  } : {}
27
27
  }, e.wrapperProps), {
28
- default: P(() => [
29
- S(e.$slots, "default")
28
+ default: d(() => [
29
+ P(e.$slots, "default")
30
30
  ]),
31
31
  _: 3
32
32
  }, 16, ["attributes"]);
33
33
  }
34
- const b = /* @__PURE__ */ g(E, [["render", A], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/block/components/interactive-element.vue"]]), O = ({
34
+ const i = /* @__PURE__ */ f(I, [["render", E], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/block/components/interactive-element.vue"]]), y = ({
35
35
  componentOptions: e,
36
- builderBlock: n,
37
- context: s,
38
- componentRef: p,
39
- includeBlockProps: r,
40
- isInteractive: l,
36
+ builderBlock: o,
37
+ context: p,
38
+ componentRef: c,
39
+ includeBlockProps: t,
40
+ isInteractive: s,
41
41
  contextValue: a
42
42
  }) => {
43
- const i = {
43
+ const n = {
44
44
  ...e,
45
- ...r ? {
46
- attributes: C({
47
- block: n,
45
+ ...t ? {
46
+ attributes: b({
47
+ block: o,
48
48
  context: a
49
49
  })
50
50
  } : {}
51
51
  };
52
- return l ? {
53
- Wrapper: p,
54
- block: n,
55
- context: s,
52
+ return s ? {
53
+ Wrapper: c,
54
+ block: o,
55
+ context: p,
56
56
  wrapperProps: e,
57
- includeBlockProps: r
58
- } : i;
59
- }, V = f({
57
+ includeBlockProps: t
58
+ } : n;
59
+ }, A = m({
60
60
  name: "component-ref",
61
- components: {
62
- Block: y,
63
- BlockStyles: W,
64
- InteractiveElement: b
65
- },
61
+ components: { Block: S, InteractiveElement: i },
66
62
  props: [
67
63
  "isInteractive",
68
64
  "componentRef",
@@ -75,14 +71,14 @@ const b = /* @__PURE__ */ g(E, [["render", A], ["__file", "/home/runner/work/bui
75
71
  ],
76
72
  data() {
77
73
  return {
78
- Wrapper: this.isInteractive ? R(b) : this.componentRef,
79
- getWrapperProps: O
74
+ Wrapper: this.isInteractive ? W(i) : this.componentRef,
75
+ getWrapperProps: y
80
76
  };
81
77
  }
82
78
  });
83
- function z(e, n, s, p, r, l) {
84
- const a = m("block"), i = m("block-styles");
85
- return e.componentRef ? (t(), c(v(e.Wrapper), h(B(
79
+ function O(e, o, p, c, t, s) {
80
+ const a = g("block");
81
+ return e.componentRef ? (r(), l(u(e.Wrapper), B(k(
86
82
  { key: 0 },
87
83
  e.getWrapperProps({
88
84
  componentOptions: e.componentOptions,
@@ -94,23 +90,18 @@ function z(e, n, s, p, r, l) {
94
90
  contextValue: e.context
95
91
  })
96
92
  )), {
97
- default: P(() => [
98
- (t(!0), u(k, null, d(e.blockChildren, (o, $) => (t(), c(a, {
99
- key: "block-" + o.id,
100
- block: o,
93
+ default: d(() => [
94
+ (r(!0), C($, null, h(e.blockChildren, (n, v) => (r(), l(a, {
95
+ key: n.id,
96
+ block: n,
101
97
  context: e.context,
102
98
  registeredComponents: e.registeredComponents
103
- }, null, 8, ["block", "context", "registeredComponents"]))), 128)),
104
- (t(!0), u(k, null, d(e.blockChildren, (o, $) => (t(), c(i, {
105
- key: "block-style-" + o.id,
106
- block: o,
107
- context: e.context
108
- }, null, 8, ["block", "context"]))), 128))
99
+ }, null, 8, ["block", "context", "registeredComponents"]))), 128))
109
100
  ]),
110
101
  _: 1
111
102
  }, 16)) : w("v-if", !0);
112
103
  }
113
- const j = /* @__PURE__ */ g(V, [["render", z], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/block/components/component-ref/component-ref.vue"]]);
104
+ const L = /* @__PURE__ */ f(A, [["render", O], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/block/components/component-ref/component-ref.vue"]]);
114
105
  export {
115
- j as default
106
+ L as default
116
107
  };
@@ -0,0 +1,6 @@
1
+ import type { BuilderContextInterface, RegisteredComponents } from '../../context/types.js';
2
+ import type { BlocksWrapperProps } from './blocks-wrapper.vue';
3
+ export type BlocksProps = Partial<Omit<BlocksWrapperProps, 'BlocksWrapper' | 'BlocksWrapperProps'>> & {
4
+ context?: BuilderContextInterface;
5
+ registeredComponents?: RegisteredComponents;
6
+ };
@@ -1,9 +1,3 @@
1
- import type { BuilderContextInterface, RegisteredComponents } from "../../context/types.js";
2
- import type { BlocksWrapperProps } from "./blocks-wrapper.vue";
3
- export type BlocksProps = Partial<Omit<BlocksWrapperProps, "BlocksWrapper" | "BlocksWrapperProps">> & {
4
- context?: BuilderContextInterface;
5
- registeredComponents?: RegisteredComponents;
6
- };
7
1
  declare const _default: import("vue").DefineComponent<Readonly<{
8
2
  path?: any;
9
3
  blocks?: any;
@@ -1,5 +1,7 @@
1
1
  import type { BuilderContent } from "../../../types/builder-content.js";
2
+ import type { Dictionary } from "../../../types/typescript.js";
2
3
  declare const _default: import("vue").DefineComponent<Readonly<{
4
+ data?: any;
3
5
  content?: any;
4
6
  context?: any;
5
7
  apiKey?: any;
@@ -14,6 +16,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
14
16
  contentWrapperProps?: any;
15
17
  }>, unknown, {
16
18
  forceReRenderCount: number;
19
+ firstRender: boolean;
17
20
  lastUpdated: number;
18
21
  shouldSendResetCookie: boolean;
19
22
  ContentWrapper: any;
@@ -52,7 +55,14 @@ declare const _default: import("vue").DefineComponent<Readonly<{
52
55
  onUpdateHook4(): {
53
56
  0: any;
54
57
  };
58
+ onUpdateHook5(): {
59
+ 0: any;
60
+ };
61
+ onUpdateHook6(): {
62
+ 0: any;
63
+ };
55
64
  }, {
65
+ mergeNewRootState(newData: Dictionary<any>): void;
56
66
  mergeNewContent(newContent: BuilderContent): void;
57
67
  processMessage(event: MessageEvent): void;
58
68
  evaluateJsCode(): void;
@@ -68,6 +78,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
68
78
  elementRef_onInitpreviewingbldr(event: any): void;
69
79
  _classStringToObject(str: string): Record<string, boolean>;
70
80
  }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
81
+ data?: any;
71
82
  content?: any;
72
83
  context?: any;
73
84
  apiKey?: any;
@@ -81,6 +92,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
81
92
  showContent?: any;
82
93
  contentWrapperProps?: any;
83
94
  }>>>, {
95
+ readonly data?: any;
84
96
  readonly content?: any;
85
97
  readonly context?: any;
86
98
  readonly apiKey?: any;
@@ -1,7 +1,7 @@
1
1
  import type { BuilderContent } from '../../types/builder-content.js';
2
2
  import type { Nullable } from '../../types/typescript.js';
3
3
  import type { ContentProps } from './content.types.js';
4
- export declare const getContextStateInitialValue: ({ content, data, locale }: Pick<ContentProps, 'content' | 'data' | 'locale'>) => {
4
+ export declare const getRootStateInitialValue: ({ content, data, locale }: Pick<ContentProps, 'content' | 'data' | 'locale'>) => {
5
5
  locale?: string | undefined;
6
6
  };
7
7
  export declare const getContentInitialValue: ({ content, data }: Pick<ContentProps, 'content' | 'data'>) => Nullable<BuilderContent>;
@@ -3,19 +3,48 @@ import type { ApiVersion } from '../../types/api-version.js';
3
3
  import type { BuilderContent } from '../../types/builder-content.js';
4
4
  import type { Nullable } from '../../types/typescript.js';
5
5
  export interface ContentVariantsPrps {
6
+ /**
7
+ * The Builder content JSON to render (required).
8
+ */
6
9
  content?: Nullable<BuilderContent>;
10
+ /**
11
+ * The Builder content `model` to render (required).
12
+ */
7
13
  model?: string;
14
+ /**
15
+ * Additional data to inject into your Builder content (optional).
16
+ */
8
17
  data?: {
9
18
  [key: string]: any;
10
19
  };
20
+ /**
21
+ *
22
+ */
11
23
  context?: BuilderRenderContext;
24
+ /**
25
+ * Your API Key: needed to dynamically fetch symbols (required).
26
+ */
12
27
  apiKey: string;
13
28
  apiVersion?: ApiVersion;
29
+ /**
30
+ * An array of custom components to register (optional).
31
+ */
14
32
  customComponents?: RegisteredComponent[];
33
+ /**
34
+ * A boolean to enable or disable tracking (optional). Defaults to `true`.
35
+ */
15
36
  canTrack?: boolean;
37
+ /**
38
+ * If provided, the API will auto-resolve localized objects to the value of this `locale` key (optional).
39
+ */
16
40
  locale?: string;
17
- /** @deprecated use `enrich` instead **/
41
+ /** @deprecated use `enrich` instead */
18
42
  includeRefs?: boolean;
43
+ /**
44
+ * A boolean to enable or disable enriching API content (optional).
45
+ *
46
+ * Enriching will Include multilevel references in the response. Defaults to `false`.
47
+ */
19
48
  enrich?: boolean;
20
49
  /**
21
50
  * The element that wraps your content. Defaults to `div` ('ScrollView' in React Native).
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.11.2";
1
+ export declare const SDK_VERSION = "0.11.4";
@@ -0,0 +1,6 @@
1
+ "use strict";const n=require("./index.93931a31.cjs"),o=e=>e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase(),c=e=>Object.entries(e).map(([r,s])=>{if(typeof s=="string")return`${o(r)}: ${s};`}).filter(n.checkIsDefined),a=e=>c(e).join(`
2
+ `),i=({mediaQuery:e,className:t,styles:r})=>{const s=`.${t} {
3
+ ${a(r)}
4
+ }`;return e?`${e} {
5
+ ${s}
6
+ }`:s};exports.convertStyleMapToCSSArray=c;exports.createCssClass=i;
@@ -0,0 +1,21 @@
1
+ import { c as o } from "./index.29ef8c7a.js";
2
+ const c = (s) => s.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), n = (s) => Object.entries(s).map(([r, e]) => {
3
+ if (typeof e == "string")
4
+ return `${c(r)}: ${e};`;
5
+ }).filter(o), a = (s) => n(s).join(`
6
+ `), i = ({
7
+ mediaQuery: s,
8
+ className: t,
9
+ styles: r
10
+ }) => {
11
+ const e = `.${t} {
12
+ ${a(r)}
13
+ }`;
14
+ return s ? `${s} {
15
+ ${e}
16
+ }` : e;
17
+ };
18
+ export {
19
+ n as a,
20
+ i as c
21
+ };
@@ -1,7 +1,7 @@
1
1
  import type { BuilderContent } from '../../types/builder-content.js';
2
2
  import type { GetContentOptions } from './types.js';
3
3
  /**
4
- * Returns a the first entry that matches the given options.
4
+ * Returns the first content entry that matches the given options.
5
5
  */
6
6
  export declare function fetchOneEntry(options: GetContentOptions): Promise<BuilderContent | null>;
7
7
  /**
@@ -1,7 +1,7 @@
1
1
  export interface GetContentOptions {
2
- /** The model to get content for */
2
+ /** The model to get content for (required) */
3
3
  model: string;
4
- /** Your public API key */
4
+ /** Your public API key (required) */
5
5
  apiKey: string;
6
6
  /** Number of items to fetch. Default is 1 */
7
7
  limit?: number;
@@ -1,5 +1,5 @@
1
- import "./style.css";
2
- import { T as n, c as i, e as l } from "./index.523c82d0.js";
1
+ import { T as n, e as i } from "./index.29ef8c7a.js";
2
+ import { a as l } from "./css.dc615681.js";
3
3
  function u(e) {
4
4
  const t = {};
5
5
  if (typeof e != "string")
@@ -40,7 +40,7 @@ function S(e) {
40
40
  case "svelte":
41
41
  case "vue":
42
42
  case "solid":
43
- return i(e).join(" ");
43
+ return l(e).join(" ");
44
44
  case "qwik":
45
45
  case "reactNative":
46
46
  case "react":
@@ -48,7 +48,7 @@ function S(e) {
48
48
  return e;
49
49
  }
50
50
  }
51
- const p = (e) => `v-on:${e.toLowerCase()}`, d = (e, t) => (r) => l({
51
+ const p = (e) => `v-on:${e.toLowerCase()}`, d = (e, t) => (r) => i({
52
52
  code: e,
53
53
  context: t.context,
54
54
  localState: t.localState,
@@ -0,0 +1 @@
1
+ "use strict";const o=require("./index.93931a31.cjs"),i=require("./css.85043e1b.cjs");function l(e){const t={};if(typeof e!="string")return t;const r=e.trim().split(/\\s+/);for(const s of r)t[s]=!0;return t}function u({properties:e}){return e.class=l(e.class),e}const f=e=>({href:e.href});function v({block:e,context:t}){var s;const r={...f(e),...e.properties,"builder-id":e.id,style:e.style?d(e.style):void 0,class:[e.id,"builder-block",e.class,(s=e.properties)==null?void 0:s.class].filter(Boolean).join(" ")};return u({properties:r,context:t,block:e})}function d(e){switch(o.TARGET){case"svelte":case"vue":case"solid":return i.convertStyleMapToCSSArray(e).join(" ");case"qwik":case"reactNative":case"react":case"rsc":return e}}const S=e=>`v-on:${e.toLowerCase()}`,p=(e,t)=>r=>o.evaluate({code:e,context:t.context,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,event:r,isExpression:!1});function g(e){var s;const t={},r=(s=e.block.actions)!=null?s:{};for(const n in r){if(!r.hasOwnProperty(n))continue;const a=r[n];let c=S(n);if(e.stripPrefix)switch(o.TARGET){case"vue":c=c.replace("v-on:","");break;case"svelte":c=c.replace("on:","");break}t[c]=p(a,e)}return t}exports.getBlockActions=g;exports.getBlockProperties=v;