@builder.io/sdk-vue 0.0.3-1 → 0.0.3

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 (238) hide show
  1. package/README.md +2 -14
  2. package/package.json +5 -4
  3. package/packages/_vue2/dist/{block-styles.c531694e.cjs → block-styles.7d59e6ba.cjs} +2 -2
  4. package/packages/_vue2/dist/{block-styles.234651b2.js → block-styles.bc1f94cc.js} +3 -3
  5. package/packages/_vue2/dist/get-processed-block.73e1ad82.js +40 -0
  6. package/packages/_vue2/dist/get-processed-block.c83086c1.cjs +1 -0
  7. package/packages/_vue2/dist/{index.19474a4f.js → index.02cbe11b.js} +302 -300
  8. package/packages/_vue2/dist/index.1d7bcb8c.cjs +4 -0
  9. package/packages/_vue2/dist/render-block.4d368620.cjs +3 -0
  10. package/packages/_vue2/dist/{render-block.3cf39e0e.js → render-block.4fdcffb1.js} +31 -38
  11. package/packages/_vue2/dist/render-component-with-context.45bddebc.js +53 -0
  12. package/packages/_vue2/dist/render-component-with-context.83718839.cjs +1 -0
  13. package/packages/_vue2/dist/{render-component.a9d4efb1.cjs → render-component.4b341c2e.cjs} +1 -1
  14. package/packages/_vue2/dist/{render-component.56e5101d.js → render-component.a8a981da.js} +3 -3
  15. package/packages/_vue2/dist/{render-inlined-styles.b6534355.js → render-inlined-styles.198fc516.js} +1 -1
  16. package/packages/_vue2/dist/{render-inlined-styles.9b6439ce.cjs → render-inlined-styles.d903e589.cjs} +1 -1
  17. package/packages/_vue2/dist/{render-repeated-block.3e536590.js → render-repeated-block.7547b966.js} +2 -2
  18. package/packages/_vue2/dist/{render-repeated-block.95861e2e.cjs → render-repeated-block.d2d7376a.cjs} +1 -1
  19. package/packages/_vue2/dist/{render-styles.9d4787d0.cjs → render-styles.2b14f2b8.cjs} +1 -1
  20. package/packages/_vue2/dist/{render-styles.ad89c45c.js → render-styles.d7585530.js} +2 -2
  21. package/packages/_vue2/dist/sdk.cjs +1 -1
  22. package/packages/_vue2/dist/sdk.js +4 -4
  23. package/packages/_vue2/dist/src/blocks/button/button.vue.d.ts +11 -0
  24. package/packages/_vue2/dist/src/blocks/button/component-info.d.ts +2 -0
  25. package/packages/_vue2/dist/src/blocks/columns/columns.vue.d.ts +306 -0
  26. package/packages/_vue2/dist/src/blocks/columns/component-info.d.ts +2 -0
  27. package/packages/_vue2/dist/src/blocks/custom-code/component-info.d.ts +2 -0
  28. package/packages/_vue2/dist/src/blocks/custom-code/custom-code.vue.d.ts +18 -0
  29. package/packages/_vue2/dist/src/blocks/embed/component-info.d.ts +2 -0
  30. package/packages/_vue2/dist/src/blocks/embed/embed.vue.d.ts +22 -0
  31. package/packages/_vue2/dist/src/blocks/embed/helpers.d.ts +1 -0
  32. package/packages/_vue2/dist/src/blocks/fragment/component-info.d.ts +2 -0
  33. package/packages/_vue2/dist/src/blocks/fragment/fragment.vue.d.ts +10 -0
  34. package/packages/_vue2/dist/src/blocks/image/component-info.d.ts +2 -0
  35. package/packages/_vue2/dist/src/blocks/image/image.helpers.d.ts +1 -0
  36. package/packages/_vue2/dist/src/blocks/img/component-info.d.ts +2 -0
  37. package/packages/_vue2/dist/src/blocks/img/img.vue.d.ts +17 -0
  38. package/packages/_vue2/dist/src/blocks/section/component-info.d.ts +2 -0
  39. package/packages/_vue2/dist/src/blocks/section/section.vue.d.ts +11 -0
  40. package/packages/_vue2/dist/src/blocks/symbol/component-info.d.ts +2 -0
  41. package/packages/_vue2/dist/src/blocks/symbol/symbol.vue.d.ts +396 -0
  42. package/packages/_vue2/dist/src/blocks/text/component-info.d.ts +2 -0
  43. package/packages/_vue2/dist/src/blocks/text/text.vue.d.ts +8 -0
  44. package/packages/_vue2/dist/src/blocks/util.d.ts +1 -0
  45. package/packages/_vue2/dist/src/blocks/video/component-info.d.ts +2 -0
  46. package/packages/_vue2/dist/src/blocks/video/video.vue.d.ts +25 -0
  47. package/packages/_vue2/dist/src/components/render-block/block-styles.vue.d.ts +31 -0
  48. package/packages/_vue2/dist/src/components/render-block/render-block.helpers.d.ts +1 -0
  49. package/packages/_vue2/dist/src/components/render-block/render-block.vue.d.ts +237 -0
  50. package/packages/_vue2/dist/src/components/render-block/render-component-with-context.vue.d.ts +116 -0
  51. package/packages/_vue2/dist/src/components/render-block/render-component.vue.d.ts +141 -0
  52. package/packages/_vue2/dist/src/components/render-block/render-repeated-block.vue.d.ts +231 -0
  53. package/packages/_vue2/dist/src/components/render-block/types.d.ts +6 -0
  54. package/packages/_vue2/dist/src/components/render-blocks.vue.d.ts +279 -0
  55. package/packages/_vue2/dist/src/components/render-content/components/render-styles.vue.d.ts +27 -0
  56. package/packages/_vue2/dist/src/components/render-content/render-content.vue.d.ts +368 -0
  57. package/packages/_vue2/dist/src/components/render-inlined-styles.vue.d.ts +12 -0
  58. package/packages/_vue2/dist/src/constants/builder-registered-components.d.ts +6 -0
  59. package/packages/_vue2/dist/src/constants/device-sizes.d.ts +2 -0
  60. package/packages/_vue2/dist/src/constants/target.d.ts +2 -0
  61. package/packages/_vue2/dist/src/context/builder.context.d.ts +2 -0
  62. package/packages/_vue2/dist/src/context/types.d.ts +17 -0
  63. package/packages/_vue2/dist/src/functions/camel-to-kebab-case.d.ts +1 -0
  64. package/packages/_vue2/dist/src/functions/evaluate.d.ts +5 -0
  65. package/packages/_vue2/dist/src/functions/event-handler-name.d.ts +1 -0
  66. package/packages/_vue2/dist/src/functions/extract-text-styles.d.ts +4 -0
  67. package/packages/_vue2/dist/src/functions/fast-clone.d.ts +4 -0
  68. package/packages/_vue2/dist/src/functions/get-block-actions-handler.d.ts +5 -0
  69. package/packages/_vue2/dist/src/functions/get-block-actions.d.ts +9 -0
  70. package/packages/_vue2/dist/src/functions/get-block-component-options.d.ts +2 -0
  71. package/packages/_vue2/dist/src/functions/get-block-properties.d.ts +5 -0
  72. package/packages/_vue2/dist/src/functions/get-block-tag.d.ts +3 -0
  73. package/packages/_vue2/dist/src/functions/get-builder-search-params/index.d.ts +6 -0
  74. package/packages/_vue2/dist/src/functions/get-content/ab-testing.d.ts +5 -0
  75. package/packages/_vue2/dist/src/functions/get-content/index.d.ts +9 -0
  76. package/packages/_vue2/dist/src/functions/get-content/types.d.ts +31 -0
  77. package/packages/_vue2/dist/src/functions/get-fetch.d.ts +1 -0
  78. package/packages/_vue2/dist/src/functions/get-global-this.d.ts +1 -0
  79. package/packages/_vue2/dist/src/functions/get-processed-block.d.ts +10 -0
  80. package/packages/_vue2/dist/src/functions/get-react-native-block-styles.d.ts +6 -0
  81. package/packages/_vue2/dist/src/functions/is-browser.d.ts +1 -0
  82. package/packages/_vue2/dist/src/functions/is-editing.d.ts +1 -0
  83. package/packages/_vue2/dist/src/functions/is-iframe.d.ts +1 -0
  84. package/packages/_vue2/dist/src/functions/is-previewing.d.ts +1 -0
  85. package/packages/_vue2/dist/src/functions/mark-mutable.d.ts +2 -0
  86. package/packages/_vue2/dist/src/functions/register-component.d.ts +14 -0
  87. package/packages/_vue2/dist/src/functions/register.d.ts +16 -0
  88. package/packages/_vue2/dist/src/functions/sanitize-react-native-block-styles.d.ts +3 -0
  89. package/packages/_vue2/dist/src/functions/set-editor-settings.d.ts +4 -0
  90. package/packages/_vue2/dist/src/functions/set.d.ts +7 -0
  91. package/packages/_vue2/dist/src/functions/track.d.ts +21 -0
  92. package/packages/_vue2/dist/src/functions/transform-block.d.ts +2 -0
  93. package/packages/_vue2/dist/src/helpers/ab-tests.d.ts +8 -0
  94. package/packages/_vue2/dist/src/helpers/cookie.d.ts +15 -0
  95. package/packages/_vue2/dist/src/helpers/css.d.ts +5 -0
  96. package/packages/_vue2/dist/src/helpers/flatten.d.ts +6 -0
  97. package/packages/_vue2/dist/src/helpers/localStorage.d.ts +8 -0
  98. package/packages/_vue2/dist/src/helpers/nullable.d.ts +2 -0
  99. package/packages/_vue2/dist/src/helpers/sessionId.d.ts +6 -0
  100. package/packages/_vue2/dist/src/helpers/url.d.ts +6 -0
  101. package/packages/_vue2/dist/src/helpers/uuid.d.ts +8 -0
  102. package/packages/_vue2/dist/src/helpers/visitorId.d.ts +6 -0
  103. package/packages/_vue2/dist/src/index-helpers/blocks-exports.d.ts +10 -0
  104. package/packages/_vue2/dist/src/index-helpers/top-of-file.d.ts +1 -0
  105. package/packages/_vue2/dist/src/index.d.ts +8 -0
  106. package/packages/_vue2/dist/src/scripts/init-editing.d.ts +2 -0
  107. package/packages/_vue2/dist/src/types/builder-block.d.ts +57 -0
  108. package/packages/_vue2/dist/src/types/builder-content.d.ts +38 -0
  109. package/packages/_vue2/dist/src/types/can-track.d.ts +3 -0
  110. package/packages/_vue2/dist/src/types/components.d.ts +177 -0
  111. package/packages/_vue2/dist/src/types/deep-partial.d.ts +3 -0
  112. package/packages/_vue2/dist/src/types/element.d.ts +59 -0
  113. package/packages/_vue2/dist/src/types/typescript.d.ts +5 -0
  114. package/packages/_vue2/dist/style.css +1 -1
  115. package/packages/_vue3/dist/{block-styles.e3632a69.cjs → block-styles.44a21830.cjs} +2 -2
  116. package/packages/_vue3/dist/{block-styles.88005ace.js → block-styles.4fb6c64e.js} +3 -3
  117. package/packages/_vue3/dist/get-processed-block.19c3700a.js +40 -0
  118. package/packages/_vue3/dist/get-processed-block.d0247791.cjs +1 -0
  119. package/packages/_vue3/dist/index.acbcbf48.cjs +4 -0
  120. package/packages/_vue3/dist/{index.2472a241.js → index.c45f283d.js} +305 -302
  121. package/packages/_vue3/dist/render-block.9c91f64e.cjs +3 -0
  122. package/packages/_vue3/dist/{render-block.593fc01c.js → render-block.a0b27065.js} +78 -95
  123. package/packages/_vue3/dist/{render-component-with-context.f5cab824.js → render-component-with-context.205a19d1.js} +15 -10
  124. package/packages/_vue3/dist/render-component-with-context.fd83122c.cjs +1 -0
  125. package/packages/_vue3/dist/{render-component.06b4587b.cjs → render-component.38a974b8.cjs} +1 -1
  126. package/packages/_vue3/dist/{render-component.d5c26257.js → render-component.fbf7bbcb.js} +3 -3
  127. package/packages/_vue3/dist/{render-inlined-styles.be1aba8b.js → render-inlined-styles.3f53b0f1.js} +1 -1
  128. package/packages/_vue3/dist/{render-inlined-styles.3fab5467.cjs → render-inlined-styles.631d4b7f.cjs} +1 -1
  129. package/packages/_vue3/dist/{render-repeated-block.d1580cb5.cjs → render-repeated-block.35b18332.cjs} +1 -1
  130. package/packages/_vue3/dist/{render-repeated-block.1d1c64a8.js → render-repeated-block.4f78496b.js} +2 -2
  131. package/packages/_vue3/dist/{render-styles.4717b645.cjs → render-styles.1482932c.cjs} +1 -1
  132. package/packages/_vue3/dist/{render-styles.efaaccdf.js → render-styles.32666ea6.js} +2 -2
  133. package/packages/_vue3/dist/sdk.cjs +1 -1
  134. package/packages/_vue3/dist/sdk.js +7 -7
  135. package/packages/_vue3/dist/src/blocks/button/button.vue.d.ts +11 -0
  136. package/packages/_vue3/dist/src/blocks/button/component-info.d.ts +2 -0
  137. package/packages/_vue3/dist/src/blocks/columns/columns.vue.d.ts +77 -0
  138. package/packages/_vue3/dist/src/blocks/columns/component-info.d.ts +2 -0
  139. package/packages/_vue3/dist/src/blocks/custom-code/component-info.d.ts +2 -0
  140. package/packages/_vue3/dist/src/blocks/custom-code/custom-code.vue.d.ts +18 -0
  141. package/packages/_vue3/dist/src/blocks/embed/component-info.d.ts +2 -0
  142. package/packages/_vue3/dist/src/blocks/embed/embed.vue.d.ts +22 -0
  143. package/packages/_vue3/dist/src/blocks/embed/helpers.d.ts +1 -0
  144. package/packages/_vue3/dist/src/blocks/fragment/component-info.d.ts +2 -0
  145. package/packages/_vue3/dist/src/blocks/fragment/fragment.vue.d.ts +10 -0
  146. package/packages/_vue3/dist/src/blocks/image/component-info.d.ts +2 -0
  147. package/packages/_vue3/dist/src/blocks/image/image.helpers.d.ts +1 -0
  148. package/packages/_vue3/dist/src/blocks/image/image.vue.d.ts +31 -0
  149. package/packages/_vue3/dist/src/blocks/img/component-info.d.ts +2 -0
  150. package/packages/_vue3/dist/src/blocks/img/img.vue.d.ts +17 -0
  151. package/packages/_vue3/dist/src/blocks/section/component-info.d.ts +2 -0
  152. package/packages/_vue3/dist/src/blocks/section/section.vue.d.ts +11 -0
  153. package/packages/_vue3/dist/src/blocks/symbol/component-info.d.ts +2 -0
  154. package/packages/_vue3/dist/src/blocks/symbol/symbol.vue.d.ts +167 -0
  155. package/packages/_vue3/dist/src/blocks/text/component-info.d.ts +2 -0
  156. package/packages/_vue3/dist/src/blocks/text/text.vue.d.ts +8 -0
  157. package/packages/_vue3/dist/src/blocks/util.d.ts +1 -0
  158. package/packages/_vue3/dist/src/blocks/video/component-info.d.ts +2 -0
  159. package/packages/_vue3/dist/src/blocks/video/video.vue.d.ts +25 -0
  160. package/packages/_vue3/dist/src/components/render-block/block-styles.vue.d.ts +31 -0
  161. package/packages/_vue3/dist/src/components/render-block/render-block.helpers.d.ts +1 -0
  162. package/packages/_vue3/dist/src/components/render-block/render-block.vue.d.ts +8 -0
  163. package/packages/_vue3/dist/src/components/render-block/render-component-with-context.vue.d.ts +51 -0
  164. package/packages/_vue3/dist/src/components/render-block/render-component.vue.d.ts +44 -0
  165. package/packages/_vue3/dist/src/components/render-block/render-repeated-block.vue.d.ts +2 -0
  166. package/packages/_vue3/dist/src/components/render-block/types.d.ts +6 -0
  167. package/packages/_vue3/dist/src/components/render-blocks.vue.d.ts +50 -0
  168. package/packages/_vue3/dist/src/components/render-content/components/render-styles.vue.d.ts +27 -0
  169. package/packages/_vue3/dist/src/components/render-content/render-content.vue.d.ts +139 -0
  170. package/packages/_vue3/dist/src/components/render-inlined-styles.vue.d.ts +12 -0
  171. package/packages/_vue3/dist/src/constants/builder-registered-components.d.ts +6 -0
  172. package/packages/_vue3/dist/src/constants/device-sizes.d.ts +2 -0
  173. package/packages/_vue3/dist/src/constants/target.d.ts +2 -0
  174. package/packages/_vue3/dist/src/context/builder.context.d.ts +2 -0
  175. package/packages/_vue3/dist/src/context/types.d.ts +17 -0
  176. package/packages/_vue3/dist/src/functions/camel-to-kebab-case.d.ts +1 -0
  177. package/packages/_vue3/dist/src/functions/evaluate.d.ts +5 -0
  178. package/packages/_vue3/dist/src/functions/event-handler-name.d.ts +1 -0
  179. package/packages/_vue3/dist/src/functions/extract-text-styles.d.ts +4 -0
  180. package/packages/_vue3/dist/src/functions/fast-clone.d.ts +4 -0
  181. package/packages/_vue3/dist/src/functions/get-block-actions-handler.d.ts +5 -0
  182. package/packages/_vue3/dist/src/functions/get-block-actions.d.ts +9 -0
  183. package/packages/_vue3/dist/src/functions/get-block-component-options.d.ts +2 -0
  184. package/packages/_vue3/dist/src/functions/get-block-properties.d.ts +5 -0
  185. package/packages/_vue3/dist/src/functions/get-block-tag.d.ts +3 -0
  186. package/packages/_vue3/dist/src/functions/get-builder-search-params/index.d.ts +6 -0
  187. package/packages/_vue3/dist/src/functions/get-content/ab-testing.d.ts +5 -0
  188. package/packages/_vue3/dist/src/functions/get-content/index.d.ts +9 -0
  189. package/packages/_vue3/dist/src/functions/get-content/types.d.ts +31 -0
  190. package/packages/_vue3/dist/src/functions/get-fetch.d.ts +1 -0
  191. package/packages/_vue3/dist/src/functions/get-global-this.d.ts +1 -0
  192. package/packages/_vue3/dist/src/functions/get-processed-block.d.ts +10 -0
  193. package/packages/_vue3/dist/src/functions/get-react-native-block-styles.d.ts +6 -0
  194. package/packages/_vue3/dist/src/functions/is-browser.d.ts +1 -0
  195. package/packages/_vue3/dist/src/functions/is-editing.d.ts +1 -0
  196. package/packages/_vue3/dist/src/functions/is-iframe.d.ts +1 -0
  197. package/packages/_vue3/dist/src/functions/is-previewing.d.ts +1 -0
  198. package/packages/_vue3/dist/src/functions/mark-mutable.d.ts +2 -0
  199. package/packages/_vue3/dist/src/functions/register-component.d.ts +14 -0
  200. package/packages/_vue3/dist/src/functions/register.d.ts +16 -0
  201. package/packages/_vue3/dist/src/functions/sanitize-react-native-block-styles.d.ts +3 -0
  202. package/packages/_vue3/dist/src/functions/set-editor-settings.d.ts +4 -0
  203. package/packages/_vue3/dist/src/functions/set.d.ts +7 -0
  204. package/packages/_vue3/dist/src/functions/track.d.ts +21 -0
  205. package/packages/_vue3/dist/src/functions/transform-block.d.ts +2 -0
  206. package/packages/_vue3/dist/src/helpers/ab-tests.d.ts +8 -0
  207. package/packages/_vue3/dist/src/helpers/cookie.d.ts +15 -0
  208. package/packages/_vue3/dist/src/helpers/css.d.ts +5 -0
  209. package/packages/_vue3/dist/src/helpers/flatten.d.ts +6 -0
  210. package/packages/_vue3/dist/src/helpers/localStorage.d.ts +8 -0
  211. package/packages/_vue3/dist/src/helpers/nullable.d.ts +2 -0
  212. package/packages/_vue3/dist/src/helpers/sessionId.d.ts +6 -0
  213. package/packages/_vue3/dist/src/helpers/url.d.ts +6 -0
  214. package/packages/_vue3/dist/src/helpers/uuid.d.ts +8 -0
  215. package/packages/_vue3/dist/src/helpers/visitorId.d.ts +6 -0
  216. package/packages/_vue3/dist/src/index-helpers/blocks-exports.d.ts +10 -0
  217. package/packages/_vue3/dist/src/index-helpers/top-of-file.d.ts +1 -0
  218. package/packages/_vue3/dist/src/index.d.ts +8 -0
  219. package/packages/_vue3/dist/src/scripts/init-editing.d.ts +2 -0
  220. package/packages/_vue3/dist/src/types/builder-block.d.ts +57 -0
  221. package/packages/_vue3/dist/src/types/builder-content.d.ts +38 -0
  222. package/packages/_vue3/dist/src/types/can-track.d.ts +3 -0
  223. package/packages/_vue3/dist/src/types/components.d.ts +177 -0
  224. package/packages/_vue3/dist/src/types/deep-partial.d.ts +3 -0
  225. package/packages/_vue3/dist/src/types/element.d.ts +59 -0
  226. package/packages/_vue3/dist/src/types/typescript.d.ts +5 -0
  227. package/packages/_vue3/dist/style.css +1 -1
  228. package/packages/_vue2/dist/get-processed-block.1ba91586.js +0 -40
  229. package/packages/_vue2/dist/get-processed-block.6a23a7de.cjs +0 -1
  230. package/packages/_vue2/dist/index.e85eb7cf.cjs +0 -4
  231. package/packages/_vue2/dist/render-block.4f260352.cjs +0 -3
  232. package/packages/_vue2/dist/render-component-with-context.dcb1f5da.js +0 -53
  233. package/packages/_vue2/dist/render-component-with-context.f76bfccc.cjs +0 -1
  234. package/packages/_vue3/dist/get-processed-block.0d475a13.js +0 -40
  235. package/packages/_vue3/dist/get-processed-block.c75eb6d1.cjs +0 -1
  236. package/packages/_vue3/dist/index.e7c6fe34.cjs +0 -4
  237. package/packages/_vue3/dist/render-block.92199649.cjs +0 -3
  238. package/packages/_vue3/dist/render-component-with-context.fb4f86a9.cjs +0 -1
@@ -0,0 +1,368 @@
1
+ import type { BuilderRenderContext, RegisteredComponent } from "../../context/types.js";
2
+ import type { BuilderContent } from "../../types/builder-content.js";
3
+ import type { Nullable } from "../../types/typescript.js";
4
+ export declare type RenderContentProps = {
5
+ content?: Nullable<BuilderContent>;
6
+ model?: string;
7
+ data?: {
8
+ [key: string]: any;
9
+ };
10
+ context?: BuilderRenderContext;
11
+ apiKey: string;
12
+ customComponents?: RegisteredComponent[];
13
+ canTrack?: boolean;
14
+ };
15
+ import { markMutable } from "../../functions/mark-mutable.js";
16
+ declare const _sfc_main: {
17
+ name: string;
18
+ components: {
19
+ RenderContentStyles: () => Promise<{
20
+ name: string;
21
+ components: {
22
+ RenderInlinedStyles: () => Promise<{
23
+ name: string;
24
+ props: string[];
25
+ data: () => {
26
+ TARGET: string;
27
+ };
28
+ computed: {
29
+ injectedStyleScript(): any;
30
+ tagName(): string;
31
+ };
32
+ }>;
33
+ };
34
+ props: string[];
35
+ computed: {
36
+ injectedStyles(): any;
37
+ };
38
+ methods: {
39
+ getCssFromFont(font: any): string;
40
+ getFontCss({ customFonts }: {
41
+ customFonts: any;
42
+ }): any;
43
+ };
44
+ }>;
45
+ RenderBlocks: () => Promise<{
46
+ name: string;
47
+ components: {
48
+ RenderBlock: () => Promise<{
49
+ name: string;
50
+ components: {
51
+ RenderRepeatedBlock: () => Promise<{
52
+ name: string;
53
+ components: {
54
+ RenderBlock: () => Promise<any>;
55
+ };
56
+ props: string[];
57
+ provide(): {
58
+ BuilderContext: {
59
+ readonly content: any;
60
+ readonly state: any;
61
+ readonly context: any;
62
+ readonly apiKey: any;
63
+ readonly registeredComponents: any;
64
+ readonly inheritedStyles: any;
65
+ };
66
+ };
67
+ }>;
68
+ BlockStyles: () => Promise<{
69
+ name: string;
70
+ components: {
71
+ RenderInlinedStyles: () => Promise<{
72
+ name: string;
73
+ props: string[];
74
+ data: () => {
75
+ TARGET: string;
76
+ };
77
+ computed: {
78
+ injectedStyleScript(): any;
79
+ tagName(): string;
80
+ };
81
+ }>;
82
+ };
83
+ props: string[];
84
+ data: () => {
85
+ TARGET: string;
86
+ };
87
+ computed: {
88
+ useBlock(): any;
89
+ css(): any;
90
+ };
91
+ }>;
92
+ RenderComponentWithContext: () => Promise<{
93
+ name: string;
94
+ components: {
95
+ RenderComponent: () => Promise<{
96
+ name: string;
97
+ components: {
98
+ RenderBlock: () => Promise<any>;
99
+ BlockStyles: () => Promise<{
100
+ name: string;
101
+ components: {
102
+ RenderInlinedStyles: () => Promise<{
103
+ name: string;
104
+ props: string[];
105
+ data: () => {
106
+ TARGET: string;
107
+ };
108
+ computed: {
109
+ injectedStyleScript(): any;
110
+ tagName(): string;
111
+ };
112
+ }>;
113
+ };
114
+ props: string[];
115
+ data: () => {
116
+ TARGET: string;
117
+ };
118
+ computed: {
119
+ useBlock(): any;
120
+ css(): any;
121
+ };
122
+ }>;
123
+ };
124
+ props: string[];
125
+ data: () => {
126
+ markPropsMutable: typeof import("../../functions/mark-mutable.js").markPropsMutable;
127
+ };
128
+ }>;
129
+ };
130
+ props: string[];
131
+ provide(): {
132
+ BuilderContext: {
133
+ readonly content: any;
134
+ readonly state: any;
135
+ readonly context: any;
136
+ readonly apiKey: any;
137
+ readonly registeredComponents: any;
138
+ readonly inheritedStyles: any;
139
+ };
140
+ };
141
+ }>;
142
+ RenderComponent: () => Promise<{
143
+ name: string;
144
+ components: {
145
+ RenderBlock: () => Promise<any>;
146
+ BlockStyles: () => Promise<{
147
+ name: string;
148
+ components: {
149
+ RenderInlinedStyles: () => Promise<{
150
+ name: string;
151
+ props: string[];
152
+ data: () => {
153
+ TARGET: string;
154
+ };
155
+ computed: {
156
+ injectedStyleScript(): any;
157
+ tagName(): string;
158
+ };
159
+ }>;
160
+ };
161
+ props: string[];
162
+ data: () => {
163
+ TARGET: string;
164
+ };
165
+ computed: {
166
+ useBlock(): any;
167
+ css(): any;
168
+ };
169
+ }>;
170
+ };
171
+ props: string[];
172
+ data: () => {
173
+ markPropsMutable: typeof import("../../functions/mark-mutable.js").markPropsMutable;
174
+ };
175
+ }>;
176
+ };
177
+ props: string[];
178
+ data: () => {
179
+ isEmptyHtmlElement: (tagName: unknown) => boolean;
180
+ };
181
+ computed: {
182
+ component(): any;
183
+ tagName(): any;
184
+ useBlock(): any;
185
+ attributes(): any;
186
+ shouldWrap(): any;
187
+ renderComponentProps(): any;
188
+ children(): any;
189
+ childrenWithoutParentComponent(): any;
190
+ repeatItemData(): any;
191
+ inheritedTextStyles(): Partial<CSSStyleDeclaration>;
192
+ childrenContext(): any;
193
+ renderComponentTag(): (() => Promise<{
194
+ name: string;
195
+ components: {
196
+ RenderComponent: () => Promise<{
197
+ name: string;
198
+ components: {
199
+ RenderBlock: () => Promise<any>;
200
+ BlockStyles: () => Promise<{
201
+ name: string;
202
+ components: {
203
+ RenderInlinedStyles: () => Promise<{
204
+ name: string;
205
+ props: string[];
206
+ data: () => {
207
+ TARGET: string;
208
+ };
209
+ computed: {
210
+ injectedStyleScript(): any;
211
+ tagName(): string;
212
+ };
213
+ }>;
214
+ };
215
+ props: string[];
216
+ data: () => {
217
+ TARGET: string;
218
+ };
219
+ computed: {
220
+ useBlock(): any;
221
+ css(): any;
222
+ };
223
+ }>;
224
+ };
225
+ props: string[];
226
+ data: () => {
227
+ markPropsMutable: typeof import("../../functions/mark-mutable.js").markPropsMutable;
228
+ };
229
+ }>;
230
+ };
231
+ props: string[];
232
+ provide(): {
233
+ BuilderContext: {
234
+ readonly content: any;
235
+ readonly state: any;
236
+ readonly context: any;
237
+ readonly apiKey: any;
238
+ readonly registeredComponents: any;
239
+ readonly inheritedStyles: any;
240
+ };
241
+ };
242
+ }>) | (() => Promise<{
243
+ name: string;
244
+ components: {
245
+ RenderBlock: () => Promise<any>;
246
+ BlockStyles: () => Promise<{
247
+ name: string;
248
+ components: {
249
+ RenderInlinedStyles: () => Promise<{
250
+ name: string;
251
+ props: string[];
252
+ data: () => {
253
+ TARGET: string;
254
+ };
255
+ computed: {
256
+ injectedStyleScript(): any;
257
+ tagName(): string;
258
+ };
259
+ }>;
260
+ };
261
+ props: string[];
262
+ data: () => {
263
+ TARGET: string;
264
+ };
265
+ computed: {
266
+ useBlock(): any;
267
+ css(): any;
268
+ };
269
+ }>;
270
+ };
271
+ props: string[];
272
+ data: () => {
273
+ markPropsMutable: typeof import("../../functions/mark-mutable.js").markPropsMutable;
274
+ };
275
+ }>) | "RenderComponent";
276
+ };
277
+ }>;
278
+ BlockStyles: () => Promise<{
279
+ name: string;
280
+ components: {
281
+ RenderInlinedStyles: () => Promise<{
282
+ name: string;
283
+ props: string[];
284
+ data: () => {
285
+ TARGET: string;
286
+ };
287
+ computed: {
288
+ injectedStyleScript(): any;
289
+ tagName(): string;
290
+ };
291
+ }>;
292
+ };
293
+ props: string[];
294
+ data: () => {
295
+ TARGET: string;
296
+ };
297
+ computed: {
298
+ useBlock(): any;
299
+ css(): any;
300
+ };
301
+ }>;
302
+ };
303
+ props: string[];
304
+ inject: {
305
+ builderContext: string;
306
+ };
307
+ computed: {
308
+ className(): any;
309
+ };
310
+ methods: {
311
+ onClick(): void;
312
+ onMouseEnter(): void;
313
+ _classStringToObject(str: any): {};
314
+ };
315
+ }>;
316
+ };
317
+ props: string[];
318
+ data: () => {
319
+ forceReRenderCount: number;
320
+ overrideContent: null;
321
+ update: number;
322
+ overrideState: {};
323
+ markMutable: typeof markMutable;
324
+ };
325
+ provide(): {
326
+ BuilderContext: {
327
+ readonly content: any;
328
+ readonly state: any;
329
+ readonly context: any;
330
+ readonly apiKey: any;
331
+ readonly registeredComponents: any;
332
+ };
333
+ };
334
+ mounted(): void;
335
+ watch: {
336
+ onUpdateHook0(): void;
337
+ onUpdateHook1(): void;
338
+ onUpdateHook2(): void;
339
+ };
340
+ unmounted(): void;
341
+ computed: {
342
+ useContent(): any;
343
+ canTrackToUse(): any;
344
+ contentState(): any;
345
+ contextContext(): any;
346
+ allRegisteredComponents(): any;
347
+ httpReqsData(): {};
348
+ shouldRenderContentStyles(): any;
349
+ onUpdateHook0(): any;
350
+ onUpdateHook1(): any;
351
+ onUpdateHook2(): {
352
+ 0: () => any;
353
+ };
354
+ };
355
+ methods: {
356
+ processMessage(event: any): void;
357
+ evaluateJsCode(): void;
358
+ onClick(_event: any): void;
359
+ evalExpression(expression: any): any;
360
+ handleRequest({ url, key }: {
361
+ url: any;
362
+ key: any;
363
+ }): void;
364
+ runHttpRequests(): void;
365
+ emitStateUpdate(): void;
366
+ };
367
+ };
368
+ export default _sfc_main;
@@ -0,0 +1,12 @@
1
+ declare const _sfc_main: {
2
+ name: string;
3
+ props: string[];
4
+ data: () => {
5
+ TARGET: string;
6
+ };
7
+ computed: {
8
+ injectedStyleScript(): any;
9
+ tagName(): string;
10
+ };
11
+ };
12
+ export default _sfc_main;
@@ -0,0 +1,6 @@
1
+ import type { RegisteredComponent } from '../context/types.js';
2
+ /**
3
+ * Returns a list of all registered components.
4
+ * NOTE: This needs to be a function to work around ESM circular dependencies.
5
+ */
6
+ export declare const getDefaultRegisteredComponents: () => RegisteredComponent[];
@@ -0,0 +1,2 @@
1
+ export declare type SizeName = 'large' | 'medium' | 'small';
2
+ export declare const getMaxWidthQueryForSize: (size: SizeName) => string;
@@ -0,0 +1,2 @@
1
+ /** This file should be overriden for each framework. Ideally this would be implemented in Mitosis. */
2
+ export declare const TARGET = "vue2";
@@ -0,0 +1,2 @@
1
+ declare const _default: {};
2
+ export default _default;
@@ -0,0 +1,17 @@
1
+ import type { BuilderContent } from '../types/builder-content.js';
2
+ import type { ComponentInfo } from '../types/components.js';
3
+ import type { Dictionary, Nullable } from '../types/typescript.js';
4
+ export declare type RegisteredComponent = ComponentInfo & {
5
+ component: any;
6
+ };
7
+ export declare type RegisteredComponents = Dictionary<RegisteredComponent>;
8
+ export declare type BuilderRenderState = Record<string, unknown>;
9
+ export declare type BuilderRenderContext = Record<string, unknown>;
10
+ export interface BuilderContextInterface {
11
+ content: Nullable<BuilderContent>;
12
+ context: BuilderRenderContext;
13
+ state: BuilderRenderState;
14
+ apiKey: string | null;
15
+ registeredComponents: RegisteredComponents;
16
+ inheritedStyles: Record<string, unknown>;
17
+ }
@@ -0,0 +1 @@
1
+ export declare const camelToKebabCase: (string: string) => string;
@@ -0,0 +1,5 @@
1
+ import type { BuilderContextInterface } from '../context/types.js';
2
+ export declare function evaluate({ code, context, state, event, }: {
3
+ code: string;
4
+ event?: Event;
5
+ } & Pick<BuilderContextInterface, 'state' | 'context'>): any;
@@ -0,0 +1 @@
1
+ export declare const getEventHandlerName: (key: string) => string;
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Extract styles that apply to text from a style object.
3
+ */
4
+ export declare const extractTextStyles: (styles: Partial<CSSStyleDeclaration>) => Partial<CSSStyleDeclaration>;
@@ -0,0 +1,4 @@
1
+ /**
2
+ * We need to serialize values to a string in case there are Proxy values, as is the case with SolidJS etc.
3
+ */
4
+ export declare const fastClone: <T extends object>(obj: T) => T;
@@ -0,0 +1,5 @@
1
+ import type { BuilderContextInterface } from '../context/types.js';
2
+ import type { BuilderBlock } from '../types/builder-block.js';
3
+ export declare function crateEventHandler(value: string, options: {
4
+ block: BuilderBlock;
5
+ } & Pick<BuilderContextInterface, 'state' | 'context'>): (event: Event) => any;
@@ -0,0 +1,9 @@
1
+ import type { BuilderContextInterface } from '../context/types.js';
2
+ import type { BuilderBlock } from '../types/builder-block.js';
3
+ declare type Actions = {
4
+ [index: string]: (event: Event) => any;
5
+ };
6
+ export declare function getBlockActions(options: {
7
+ block: BuilderBlock;
8
+ } & Pick<BuilderContextInterface, 'state' | 'context'>): Actions;
9
+ export {};
@@ -0,0 +1,2 @@
1
+ import type { BuilderBlock } from '../types/builder-block.js';
2
+ export declare function getBlockComponentOptions(block: BuilderBlock): any;
@@ -0,0 +1,5 @@
1
+ import type { BuilderBlock } from '../types/builder-block.js';
2
+ export declare function getBlockProperties(block: BuilderBlock): {
3
+ 'builder-id': string | undefined;
4
+ class: {};
5
+ };
@@ -0,0 +1,3 @@
1
+ import type { BuilderBlock } from '../types/builder-block.js';
2
+ export declare type TagName = string;
3
+ export declare function getBlockTag(block: BuilderBlock): TagName;
@@ -0,0 +1,6 @@
1
+ declare type QueryObject = Record<string, string>;
2
+ export declare const convertSearchParamsToQueryObject: (searchParams: URLSearchParams) => QueryObject;
3
+ export declare const getBuilderSearchParams: (_options: QueryObject | URLSearchParams | undefined) => QueryObject;
4
+ export declare const getBuilderSearchParamsFromWindow: () => QueryObject;
5
+ export declare const normalizeSearchParams: (searchParams: QueryObject | URLSearchParams) => QueryObject;
6
+ export {};
@@ -0,0 +1,5 @@
1
+ import type { BuilderContent } from '../../types/builder-content.js';
2
+ import type { CanTrack } from '../../types/can-track.js';
3
+ export declare const handleABTesting: ({ item, canTrack, }: {
4
+ item: BuilderContent;
5
+ } & CanTrack) => Promise<void>;
@@ -0,0 +1,9 @@
1
+ import type { BuilderContent } from '../../types/builder-content.js';
2
+ export declare type GetContentOptions = import('./types.js').GetContentOptions;
3
+ export declare function getContent(options: GetContentOptions): Promise<BuilderContent | null>;
4
+ export declare const generateContentUrl: (options: GetContentOptions) => URL;
5
+ interface ContentResponse {
6
+ results: BuilderContent[];
7
+ }
8
+ export declare function getAllContent(options: GetContentOptions): Promise<ContentResponse>;
9
+ export {};
@@ -0,0 +1,31 @@
1
+ export interface GetContentOptions {
2
+ /** The model to get content for */
3
+ model: string;
4
+ /** Your public API key */
5
+ apiKey: string;
6
+ /** Number of items to fetch. Default is 1 */
7
+ limit?: number;
8
+ /** User attributes to target on, such as { urlPath: '/foo', device: 'mobile', ...etc } */
9
+ userAttributes?: (Record<string, string> & {
10
+ urlPath?: string;
11
+ }) | null;
12
+ /** Custom query */
13
+ query?: Record<string, any>;
14
+ /**
15
+ * Any other API options.
16
+ * Accepts both a key/value object or a `URLSearchParams` instance
17
+ * */
18
+ options?: Record<string, any> | URLSearchParams;
19
+ /**
20
+ * If set to `true`, it will lazy load symbols/references.
21
+ * If set to `false`, it will render the entire content tree eagerly.
22
+ */
23
+ noTraverse?: boolean;
24
+ /**
25
+ * If set to `false`, it will not use cookies to target content. Therefore, A/B Testing will be disabled and
26
+ * only the default variation will be returned to every user.
27
+ *
28
+ * Defaults to `true`.
29
+ */
30
+ canTrack?: boolean;
31
+ }
@@ -0,0 +1 @@
1
+ export declare function getFetch(): Promise<typeof global.fetch>;
@@ -0,0 +1 @@
1
+ export declare function getGlobalThis(): any;
@@ -0,0 +1,10 @@
1
+ import type { BuilderContextInterface } from '../context/types.js';
2
+ import type { BuilderBlock } from '../types/builder-block.js';
3
+ export declare function getProcessedBlock({ block, context, shouldEvaluateBindings, state, }: {
4
+ block: BuilderBlock;
5
+ /**
6
+ * In some cases, we want to avoid evaluating bindings and only want framework-specific block transformation. It is
7
+ * also sometimes too early to consider bindings, e.g. when we might be looking at a repeated block.
8
+ */
9
+ shouldEvaluateBindings: boolean;
10
+ } & Pick<BuilderContextInterface, 'state' | 'context'>): BuilderBlock;
@@ -0,0 +1,6 @@
1
+ import type { BuilderContextInterface } from '../context/types.js';
2
+ import type { BuilderBlock } from '../types/builder-block.js';
3
+ export declare function getReactNativeBlockStyles({ block, context, }: {
4
+ block: BuilderBlock;
5
+ context: BuilderContextInterface;
6
+ }): CSSStyleDeclaration | Record<string, string | undefined>;
@@ -0,0 +1 @@
1
+ export declare function isBrowser(): boolean;
@@ -0,0 +1 @@
1
+ export declare function isEditing(): boolean;
@@ -0,0 +1 @@
1
+ export declare function isIframe(): boolean;
@@ -0,0 +1 @@
1
+ export declare function isPreviewing(): boolean;
@@ -0,0 +1,2 @@
1
+ export declare function markMutable<T = any>(value: T): T;
2
+ export declare function markPropsMutable<T = any>(props: T): T;
@@ -0,0 +1,14 @@
1
+ import type { RegisteredComponent } from '../context/types.js';
2
+ import type { ComponentInfo } from '../types/components.js';
3
+ /**
4
+ * @deprecated. Use the `customComponents` prop in RenderContent instead to provide your custom components to the builder SDK.
5
+ */
6
+ export declare const components: RegisteredComponent[];
7
+ /**
8
+ * @deprecated. Use the `customComponents` prop in RenderContent instead to provide your custom components to the builder SDK.
9
+ */
10
+ export declare function registerComponent(component: any, info: ComponentInfo): void;
11
+ export declare const createRegisterComponentMessage: ({ component: _, ...info }: RegisteredComponent) => {
12
+ type: string;
13
+ data: ComponentInfo;
14
+ };
@@ -0,0 +1,16 @@
1
+ import type { BuilderBlock } from '../types/builder-block.js';
2
+ import type { DeepPartial } from '../types/deep-partial.js';
3
+ export interface InsertMenuItem {
4
+ name: string;
5
+ icon?: string;
6
+ item: DeepPartial<BuilderBlock>;
7
+ }
8
+ export interface InsertMenuConfig {
9
+ name: string;
10
+ priority?: number;
11
+ persist?: boolean;
12
+ advanced?: boolean;
13
+ items: InsertMenuItem[];
14
+ }
15
+ export declare function register(type: 'insertMenu', info: InsertMenuConfig): void;
16
+ export declare function register(type: string, info: any): void;
@@ -0,0 +1,3 @@
1
+ declare type Styles = Record<string, string | number>;
2
+ export declare const sanitizeReactNativeBlockStyles: (styles: Styles) => Styles;
3
+ export {};
@@ -0,0 +1,4 @@
1
+ export declare type Settings = {
2
+ customInsertMenu?: boolean;
3
+ };
4
+ export declare function setEditorSettings(newSettings: Settings): void;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Minimal implementation of lodash's _.set
3
+ * https://lodash.com/docs/4.17.15#set
4
+ *
5
+ * See ./set.test.ts for usage examples
6
+ */
7
+ export declare const set: (obj: any, _path: string | string[], value: any) => any;
@@ -0,0 +1,21 @@
1
+ import type { CanTrack } from '../types/can-track.js';
2
+ interface Event {
3
+ type: 'click' | 'impression';
4
+ data: {
5
+ contentId?: string;
6
+ ownerId: string;
7
+ metadata?: string;
8
+ sessionId: string | undefined;
9
+ visitorId: string | undefined;
10
+ [index: string]: any;
11
+ };
12
+ }
13
+ declare type EventProperties = {
14
+ type: Event['type'];
15
+ orgId: Event['data']['ownerId'];
16
+ contentId: Event['data']['contentId'];
17
+ [index: string]: any;
18
+ };
19
+ export declare type EventProps = EventProperties & CanTrack;
20
+ export declare function track(eventProps: EventProps): Promise<void | Response>;
21
+ export {};