@builder.io/sdk-react 0.2.2 → 0.2.3-0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (308) hide show
  1. package/dist/react/blocks/BaseText.d.ts +2 -0
  2. package/dist/react/blocks/BaseText.js +1 -0
  3. package/dist/react/blocks/button/button.d.ts +2 -0
  4. package/dist/react/blocks/button/button.js +1 -0
  5. package/dist/react/blocks/button/component-info.d.ts +38 -0
  6. package/dist/react/blocks/columns/columns.d.ts +2 -0
  7. package/dist/react/blocks/columns/columns.js +1 -0
  8. package/dist/react/blocks/columns/component-info.d.ts +176 -0
  9. package/dist/react/blocks/custom-code/component-info.d.ts +31 -0
  10. package/dist/react/blocks/custom-code/custom-code.d.ts +2 -0
  11. package/dist/react/blocks/custom-code/custom-code.js +1 -0
  12. package/dist/react/blocks/embed/component-info.d.ts +22 -0
  13. package/dist/react/blocks/embed/embed.d.ts +2 -0
  14. package/dist/react/blocks/embed/embed.js +1 -0
  15. package/dist/react/blocks/embed/helpers.d.ts +1 -0
  16. package/dist/react/blocks/form/component-info.d.ts +235 -0
  17. package/dist/react/blocks/form/form.d.ts +2 -0
  18. package/dist/react/blocks/form/form.js +1 -0
  19. package/dist/react/blocks/fragment/component-info.d.ts +8 -0
  20. package/dist/react/blocks/fragment/fragment.d.ts +2 -0
  21. package/dist/react/blocks/fragment/fragment.js +1 -0
  22. package/dist/react/blocks/image/component-info.d.ts +114 -0
  23. package/dist/react/blocks/image/image.d.ts +2 -0
  24. package/dist/react/blocks/image/image.helpers.d.ts +1 -0
  25. package/dist/react/blocks/image/image.js +1 -0
  26. package/dist/react/blocks/img/component-info.d.ts +15 -0
  27. package/dist/react/blocks/img/img.d.ts +2 -0
  28. package/dist/react/blocks/img/img.js +1 -0
  29. package/dist/react/blocks/input/component-info.d.ts +66 -0
  30. package/dist/react/blocks/input/input.d.ts +2 -0
  31. package/dist/react/blocks/input/input.js +1 -0
  32. package/dist/react/blocks/raw-text/component-info.d.ts +10 -0
  33. package/dist/react/blocks/raw-text/raw-text.d.ts +2 -0
  34. package/dist/react/blocks/raw-text/raw-text.js +1 -0
  35. package/dist/react/blocks/section/component-info.d.ts +43 -0
  36. package/dist/react/blocks/section/section.d.ts +2 -0
  37. package/dist/react/blocks/section/section.js +1 -0
  38. package/dist/react/blocks/select/component-info.d.ts +61 -0
  39. package/dist/react/blocks/select/select.d.ts +2 -0
  40. package/dist/react/blocks/select/select.js +1 -0
  41. package/dist/react/blocks/submit-button/component-info.d.ts +23 -0
  42. package/dist/react/blocks/submit-button/submit-button.d.ts +2 -0
  43. package/dist/react/blocks/submit-button/submit-button.js +1 -0
  44. package/dist/react/blocks/symbol/component-info.d.ts +35 -0
  45. package/dist/react/blocks/symbol/symbol.d.ts +2 -0
  46. package/dist/react/blocks/symbol/symbol.js +1 -0
  47. package/dist/react/blocks/text/component-info.d.ts +19 -0
  48. package/dist/react/blocks/text/text.d.ts +2 -0
  49. package/dist/react/blocks/text/text.js +1 -0
  50. package/dist/react/blocks/textarea/component-info.d.ts +53 -0
  51. package/dist/react/blocks/textarea/textarea.d.ts +2 -0
  52. package/dist/react/blocks/textarea/textarea.js +1 -0
  53. package/dist/react/blocks/util.d.ts +1 -0
  54. package/dist/react/blocks/video/component-info.d.ts +80 -0
  55. package/dist/react/blocks/video/video.d.ts +2 -0
  56. package/dist/react/blocks/video/video.js +1 -0
  57. package/dist/react/components/render-block/block-styles.d.ts +2 -0
  58. package/dist/react/components/render-block/block-styles.js +1 -0
  59. package/dist/react/components/render-block/render-block.d.ts +2 -0
  60. package/dist/react/components/render-block/render-block.helpers.d.ts +13 -0
  61. package/dist/react/components/render-block/render-block.js +1 -0
  62. package/dist/react/components/render-block/render-component.d.ts +2 -0
  63. package/dist/react/components/render-block/render-component.js +1 -0
  64. package/dist/react/components/render-block/render-repeated-block.d.ts +2 -0
  65. package/dist/react/components/render-block/render-repeated-block.js +1 -0
  66. package/dist/react/components/render-block/types.d.ts +0 -0
  67. package/dist/react/components/render-blocks.d.ts +2 -0
  68. package/dist/react/components/render-blocks.js +1 -0
  69. package/dist/react/components/render-content/builder-editing.d.ts +2 -0
  70. package/dist/react/components/render-content/builder-editing.js +1 -0
  71. package/dist/react/components/render-content/components/render-styles.d.ts +2 -0
  72. package/dist/react/components/render-content/components/render-styles.helpers.d.ts +7 -0
  73. package/dist/react/components/render-content/components/render-styles.js +1 -0
  74. package/dist/react/components/render-content/index.d.ts +2 -0
  75. package/dist/react/components/render-content/render-content.d.ts +2 -0
  76. package/dist/react/components/render-content/render-content.helpers.d.ts +9 -0
  77. package/dist/react/components/render-content/render-content.js +1 -0
  78. package/dist/react/components/render-content/render-content.types.d.ts +0 -0
  79. package/dist/react/components/render-inlined-styles.d.ts +2 -0
  80. package/dist/react/components/render-inlined-styles.js +1 -0
  81. package/dist/react/constants/builder-registered-components.d.ts +1 -0
  82. package/dist/react/constants/device-sizes.d.ts +21 -0
  83. package/dist/react/constants/target.d.ts +1 -0
  84. package/dist/react/context/builder.context.d.ts +11 -0
  85. package/dist/react/context/types.d.ts +0 -0
  86. package/dist/react/functions/camel-to-kebab-case.d.ts +1 -0
  87. package/dist/react/functions/evaluate.d.ts +7 -0
  88. package/dist/react/functions/event-handler-name.d.ts +1 -0
  89. package/dist/react/functions/extract-text-styles.d.ts +1 -0
  90. package/dist/react/functions/fast-clone.d.ts +1 -0
  91. package/dist/react/functions/get-block-actions-handler.d.ts +1 -0
  92. package/dist/react/functions/get-block-actions.d.ts +1 -0
  93. package/dist/react/functions/get-block-component-options.d.ts +1 -0
  94. package/dist/react/functions/get-block-properties.d.ts +1 -0
  95. package/dist/react/functions/get-builder-search-params/fn.test.d.ts +1 -0
  96. package/dist/react/functions/get-builder-search-params/index.d.ts +4 -0
  97. package/dist/react/functions/get-content/ab-testing.d.ts +1 -0
  98. package/dist/react/functions/get-content/generate-content-url.d.ts +1 -0
  99. package/dist/react/functions/get-content/generate-content-url.test.d.ts +1 -0
  100. package/dist/react/functions/get-content/index.d.ts +2 -0
  101. package/dist/react/functions/get-content/index.js +1 -1
  102. package/dist/react/functions/get-content/types.d.ts +0 -0
  103. package/dist/react/functions/get-fetch.d.ts +1 -0
  104. package/dist/react/functions/get-global-this.d.ts +1 -0
  105. package/dist/react/functions/get-processed-block.d.ts +6 -0
  106. package/dist/react/functions/get-processed-block.test.d.ts +1 -0
  107. package/dist/react/functions/get-react-native-block-styles.d.ts +5 -0
  108. package/dist/react/functions/if-target.d.ts +5 -0
  109. package/dist/react/functions/is-browser.d.ts +1 -0
  110. package/dist/react/functions/is-editing.d.ts +1 -0
  111. package/dist/react/functions/is-iframe.d.ts +1 -0
  112. package/dist/react/functions/is-previewing.d.ts +1 -0
  113. package/dist/react/functions/on-change.d.ts +2 -0
  114. package/dist/react/functions/on-change.test.d.ts +1 -0
  115. package/dist/react/functions/register-component.d.ts +6 -0
  116. package/dist/react/functions/register.d.ts +1 -0
  117. package/dist/react/functions/sanitize-react-native-block-styles.d.ts +1 -0
  118. package/dist/react/functions/set-editor-settings.d.ts +1 -0
  119. package/dist/react/functions/set.d.ts +1 -0
  120. package/dist/react/functions/set.test.d.ts +1 -0
  121. package/dist/react/functions/track/helpers.d.ts +5 -0
  122. package/dist/react/functions/track/index.d.ts +2 -0
  123. package/dist/react/functions/track/interaction.d.ts +14 -0
  124. package/dist/react/functions/transform-block-properties.d.ts +1 -0
  125. package/dist/react/functions/transform-block.d.ts +1 -0
  126. package/dist/react/helpers/ab-tests.d.ts +9 -0
  127. package/dist/react/helpers/cookie.d.ts +2 -0
  128. package/dist/react/helpers/css.d.ts +7 -0
  129. package/dist/react/helpers/flatten.d.ts +1 -0
  130. package/dist/react/helpers/localStorage.d.ts +9 -0
  131. package/dist/react/helpers/logger.d.ts +5 -0
  132. package/dist/react/helpers/nullable.d.ts +1 -0
  133. package/dist/react/helpers/sessionId.d.ts +6 -0
  134. package/dist/react/helpers/time.d.ts +1 -0
  135. package/dist/react/helpers/url.d.ts +1 -0
  136. package/dist/react/helpers/url.test.d.ts +1 -0
  137. package/dist/react/helpers/uuid.d.ts +2 -0
  138. package/dist/react/helpers/visitorId.d.ts +8 -0
  139. package/dist/react/index-helpers/blocks-exports.d.ts +11 -0
  140. package/dist/react/index-helpers/top-of-file.d.ts +2 -0
  141. package/dist/react/index.d.ts +11 -0
  142. package/dist/react/scripts/init-editing.d.ts +2 -0
  143. package/dist/react/types/api-version.d.ts +1 -0
  144. package/dist/react/types/builder-block.d.ts +0 -0
  145. package/dist/react/types/builder-content.d.ts +0 -0
  146. package/dist/react/types/can-track.d.ts +0 -0
  147. package/dist/react/types/components.d.ts +0 -0
  148. package/dist/react/types/deep-partial.d.ts +0 -0
  149. package/dist/react/types/element.d.ts +0 -0
  150. package/dist/react/types/input.d.ts +0 -0
  151. package/dist/react/types/targets.d.ts +0 -0
  152. package/dist/react/types/typescript.d.ts +0 -0
  153. package/dist/rsc/blocks/BaseText.d.ts +2 -0
  154. package/dist/rsc/blocks/button/button.d.ts +2 -0
  155. package/dist/rsc/blocks/button/component-info.d.ts +38 -0
  156. package/dist/rsc/blocks/columns/columns.d.ts +2 -0
  157. package/dist/rsc/blocks/columns/component-info.d.ts +176 -0
  158. package/dist/rsc/blocks/custom-code/component-info.d.ts +31 -0
  159. package/dist/rsc/blocks/custom-code/custom-code.d.ts +2 -0
  160. package/dist/rsc/blocks/embed/component-info.d.ts +22 -0
  161. package/dist/rsc/blocks/embed/embed.d.ts +2 -0
  162. package/dist/rsc/blocks/embed/helpers.d.ts +1 -0
  163. package/dist/rsc/blocks/form/component-info.d.ts +235 -0
  164. package/dist/rsc/blocks/form/form.d.ts +2 -0
  165. package/dist/rsc/blocks/fragment/component-info.d.ts +8 -0
  166. package/dist/rsc/blocks/fragment/fragment.d.ts +2 -0
  167. package/dist/rsc/blocks/image/component-info.d.ts +114 -0
  168. package/dist/rsc/blocks/image/image.d.ts +2 -0
  169. package/dist/rsc/blocks/image/image.helpers.d.ts +1 -0
  170. package/dist/rsc/blocks/img/component-info.d.ts +15 -0
  171. package/dist/rsc/blocks/img/img.d.ts +2 -0
  172. package/dist/rsc/blocks/input/component-info.d.ts +66 -0
  173. package/dist/rsc/blocks/input/input.d.ts +2 -0
  174. package/dist/rsc/blocks/raw-text/component-info.d.ts +10 -0
  175. package/dist/rsc/blocks/raw-text/raw-text.d.ts +2 -0
  176. package/dist/rsc/blocks/section/component-info.d.ts +43 -0
  177. package/dist/rsc/blocks/section/section.d.ts +2 -0
  178. package/dist/rsc/blocks/select/component-info.d.ts +61 -0
  179. package/dist/rsc/blocks/select/select.d.ts +2 -0
  180. package/dist/rsc/blocks/submit-button/component-info.d.ts +23 -0
  181. package/dist/rsc/blocks/submit-button/submit-button.d.ts +2 -0
  182. package/dist/rsc/blocks/symbol/component-info.d.ts +35 -0
  183. package/dist/rsc/blocks/symbol/symbol.d.ts +2 -0
  184. package/dist/rsc/blocks/text/component-info.d.ts +19 -0
  185. package/dist/rsc/blocks/text/text.d.ts +2 -0
  186. package/dist/rsc/blocks/textarea/component-info.d.ts +53 -0
  187. package/dist/rsc/blocks/textarea/textarea.d.ts +2 -0
  188. package/dist/rsc/blocks/util.d.ts +1 -0
  189. package/dist/rsc/blocks/video/component-info.d.ts +80 -0
  190. package/dist/rsc/blocks/video/video.d.ts +2 -0
  191. package/dist/rsc/components/render-block/block-styles.d.ts +2 -0
  192. package/dist/rsc/components/render-block/render-block.d.ts +2 -0
  193. package/dist/rsc/components/render-block/render-block.helpers.d.ts +10 -0
  194. package/dist/rsc/components/render-block/render-component.d.ts +2 -0
  195. package/dist/rsc/components/render-block/render-repeated-block.d.ts +2 -0
  196. package/dist/rsc/components/render-block/types.d.ts +0 -0
  197. package/dist/rsc/components/render-blocks.d.ts +2 -0
  198. package/dist/rsc/components/render-content/builder-editing.d.ts +27 -0
  199. package/dist/rsc/components/render-content/components/render-styles.d.ts +2 -0
  200. package/dist/rsc/components/render-content/components/render-styles.helpers.d.ts +7 -0
  201. package/dist/rsc/components/render-content/index.d.ts +2 -0
  202. package/dist/rsc/components/render-content/render-content.d.ts +2 -0
  203. package/dist/rsc/components/render-content/render-content.helpers.d.ts +9 -0
  204. package/dist/rsc/components/render-content/render-content.types.d.ts +0 -0
  205. package/dist/rsc/components/render-inlined-styles.d.ts +2 -0
  206. package/dist/rsc/constants/builder-registered-components.d.ts +1 -0
  207. package/dist/rsc/constants/device-sizes.d.ts +21 -0
  208. package/dist/rsc/constants/target.d.ts +1 -0
  209. package/dist/rsc/context/builder.context.d.ts +11 -0
  210. package/dist/rsc/context/types.d.ts +0 -0
  211. package/dist/rsc/functions/camel-to-kebab-case.d.ts +1 -0
  212. package/dist/rsc/functions/evaluate.d.ts +1 -0
  213. package/dist/rsc/functions/event-handler-name.d.ts +1 -0
  214. package/dist/rsc/functions/extract-text-styles.d.ts +1 -0
  215. package/dist/rsc/functions/fast-clone.d.ts +1 -0
  216. package/dist/rsc/functions/get-block-actions-handler.d.ts +1 -0
  217. package/dist/rsc/functions/get-block-actions.d.ts +1 -0
  218. package/dist/rsc/functions/get-block-component-options.d.ts +1 -0
  219. package/dist/rsc/functions/get-block-properties.d.ts +1 -0
  220. package/dist/rsc/functions/get-builder-search-params/fn.test.d.ts +1 -0
  221. package/dist/rsc/functions/get-builder-search-params/index.d.ts +4 -0
  222. package/dist/rsc/functions/get-content/ab-testing.d.ts +1 -0
  223. package/dist/rsc/functions/get-content/generate-content-url.d.ts +1 -0
  224. package/dist/rsc/functions/get-content/generate-content-url.test.d.ts +1 -0
  225. package/dist/rsc/functions/get-content/index.d.ts +2 -0
  226. package/dist/rsc/functions/get-content/index.js +1 -1
  227. package/dist/rsc/functions/get-content/types.d.ts +0 -0
  228. package/dist/rsc/functions/get-fetch.d.ts +1 -0
  229. package/dist/rsc/functions/get-global-this.d.ts +1 -0
  230. package/dist/rsc/functions/get-processed-block.d.ts +6 -0
  231. package/dist/rsc/functions/get-processed-block.test.d.ts +1 -0
  232. package/dist/rsc/functions/get-react-native-block-styles.d.ts +5 -0
  233. package/dist/rsc/functions/if-target.d.ts +5 -0
  234. package/dist/rsc/functions/is-browser.d.ts +1 -0
  235. package/dist/rsc/functions/is-editing.d.ts +1 -0
  236. package/dist/rsc/functions/is-iframe.d.ts +1 -0
  237. package/dist/rsc/functions/is-previewing.d.ts +1 -0
  238. package/dist/rsc/functions/on-change.d.ts +2 -0
  239. package/dist/rsc/functions/on-change.test.d.ts +1 -0
  240. package/dist/rsc/functions/register-component.d.ts +6 -0
  241. package/dist/rsc/functions/register.d.ts +1 -0
  242. package/dist/rsc/functions/sanitize-react-native-block-styles.d.ts +1 -0
  243. package/dist/rsc/functions/set-editor-settings.d.ts +1 -0
  244. package/dist/rsc/functions/set.d.ts +1 -0
  245. package/dist/rsc/functions/set.test.d.ts +1 -0
  246. package/dist/rsc/functions/track/helpers.d.ts +5 -0
  247. package/dist/rsc/functions/track/index.d.ts +2 -0
  248. package/dist/rsc/functions/track/interaction.d.ts +14 -0
  249. package/dist/rsc/functions/transform-block-properties.d.ts +1 -0
  250. package/dist/rsc/functions/transform-block.d.ts +1 -0
  251. package/dist/rsc/helpers/ab-tests.d.ts +9 -0
  252. package/dist/rsc/helpers/cookie.d.ts +2 -0
  253. package/dist/rsc/helpers/css.d.ts +7 -0
  254. package/dist/rsc/helpers/flatten.d.ts +1 -0
  255. package/dist/rsc/helpers/localStorage.d.ts +9 -0
  256. package/dist/rsc/helpers/logger.d.ts +5 -0
  257. package/dist/rsc/helpers/nullable.d.ts +1 -0
  258. package/dist/rsc/helpers/sessionId.d.ts +6 -0
  259. package/dist/rsc/helpers/time.d.ts +1 -0
  260. package/dist/rsc/helpers/url.d.ts +1 -0
  261. package/dist/rsc/helpers/url.test.d.ts +1 -0
  262. package/dist/rsc/helpers/uuid.d.ts +2 -0
  263. package/dist/rsc/helpers/visitorId.d.ts +8 -0
  264. package/dist/rsc/index-helpers/blocks-exports.d.ts +11 -0
  265. package/dist/rsc/index-helpers/top-of-file.d.ts +2 -0
  266. package/dist/rsc/index.d.ts +11 -0
  267. package/dist/rsc/scripts/init-editing.d.ts +2 -0
  268. package/dist/rsc/types/api-version.d.ts +1 -0
  269. package/dist/rsc/types/builder-block.d.ts +0 -0
  270. package/dist/rsc/types/builder-content.d.ts +0 -0
  271. package/dist/rsc/types/can-track.d.ts +0 -0
  272. package/dist/rsc/types/components.d.ts +0 -0
  273. package/dist/rsc/types/deep-partial.d.ts +0 -0
  274. package/dist/rsc/types/element.d.ts +0 -0
  275. package/dist/rsc/types/input.d.ts +0 -0
  276. package/dist/rsc/types/targets.d.ts +0 -0
  277. package/dist/rsc/types/typescript.d.ts +0 -0
  278. package/package.json +4 -10
  279. package/packages/react/src/blocks/BaseText.jsx +1 -0
  280. package/packages/react/src/blocks/button/button.jsx +1 -0
  281. package/packages/react/src/blocks/columns/columns.jsx +1 -0
  282. package/packages/react/src/blocks/custom-code/custom-code.jsx +1 -0
  283. package/packages/react/src/blocks/embed/embed.jsx +1 -0
  284. package/packages/react/src/blocks/form/form.jsx +1 -0
  285. package/packages/react/src/blocks/fragment/fragment.jsx +1 -0
  286. package/packages/react/src/blocks/image/image.jsx +1 -0
  287. package/packages/react/src/blocks/img/img.jsx +1 -0
  288. package/packages/react/src/blocks/input/input.jsx +1 -0
  289. package/packages/react/src/blocks/raw-text/raw-text.jsx +1 -0
  290. package/packages/react/src/blocks/section/section.jsx +1 -0
  291. package/packages/react/src/blocks/select/select.jsx +1 -0
  292. package/packages/react/src/blocks/submit-button/submit-button.jsx +1 -0
  293. package/packages/react/src/blocks/symbol/symbol.jsx +1 -0
  294. package/packages/react/src/blocks/text/text.jsx +1 -0
  295. package/packages/react/src/blocks/textarea/textarea.jsx +1 -0
  296. package/packages/react/src/blocks/video/video.jsx +1 -0
  297. package/packages/react/src/components/render-block/block-styles.jsx +1 -0
  298. package/packages/react/src/components/render-block/render-block.jsx +1 -0
  299. package/packages/react/src/components/render-block/render-component.jsx +1 -0
  300. package/packages/react/src/components/render-block/render-repeated-block.jsx +1 -0
  301. package/packages/react/src/components/render-blocks.jsx +1 -0
  302. package/packages/react/src/components/render-content/builder-editing.jsx +1 -0
  303. package/packages/react/src/components/render-content/components/render-styles.jsx +1 -0
  304. package/packages/react/src/components/render-content/render-content.jsx +1 -0
  305. package/packages/react/src/components/render-inlined-styles.jsx +1 -0
  306. package/packages/react/src/functions/get-content/index.js +1 -1
  307. package/packages/rsc/src/functions/get-content/index.js +1 -1
  308. package/tsconfig.base.json +8 -3
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import * as React from "react";
2
3
  import { useState } from "react";
3
4
  import { getBlockActions } from "../../functions/get-block-actions.js";
@@ -0,0 +1,2 @@
1
+ export default RenderComponent;
2
+ declare function RenderComponent(props: any): JSX.Element;
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import * as React from "react";
2
3
  import BlockStyles from "./block-styles";
3
4
  import RenderBlock from "./render-block";
@@ -0,0 +1,2 @@
1
+ export default RenderRepeatedBlock;
2
+ declare function RenderRepeatedBlock(props: any): JSX.Element;
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import * as React from "react";
2
3
  import { useContext } from "react";
3
4
  import BuilderContext from "../../context/builder.context.js";
File without changes
@@ -0,0 +1,2 @@
1
+ export default RenderBlocks;
2
+ declare function RenderBlocks(props: any): JSX.Element;
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import * as React from "react";
2
3
  import { useContext } from "react";
3
4
  import BuilderContext from "../context/builder.context.js";
@@ -0,0 +1,2 @@
1
+ export default BuilderEditing;
2
+ declare function BuilderEditing(props: any): JSX.Element;
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import * as React from "react";
2
3
  function BuilderEditing(props) {
3
4
  return React.createElement("div", null);
@@ -0,0 +1,2 @@
1
+ export default RenderContentStyles;
2
+ declare function RenderContentStyles(props: any): JSX.Element;
@@ -0,0 +1,7 @@
1
+ export function getCss({ cssCode, contentId }: {
2
+ cssCode: any;
3
+ contentId: any;
4
+ }): any;
5
+ export function getFontCss({ customFonts }: {
6
+ customFonts: any;
7
+ }): any;
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import * as React from "react";
2
3
  import { useState } from "react";
3
4
  import RenderInlinedStyles from "../../render-inlined-styles";
@@ -0,0 +1,2 @@
1
+ export { default2 as default };
2
+ import { default as default2 } from "./render-content";
@@ -0,0 +1,2 @@
1
+ export default RenderContent;
2
+ declare function RenderContent(props: any): JSX.Element;
@@ -0,0 +1,9 @@
1
+ export function getContentInitialValue({ content, data }: {
2
+ content: any;
3
+ data: any;
4
+ }): any;
5
+ export function getContextStateInitialValue({ content, data, locale }: {
6
+ content: any;
7
+ data: any;
8
+ locale: any;
9
+ }): any;
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import * as React from "react";
2
3
  import { useState, useContext, useRef, useEffect } from "react";
3
4
  import { getDefaultRegisteredComponents } from "../../constants/builder-registered-components.js";
@@ -0,0 +1,2 @@
1
+ export default RenderInlinedStyles;
2
+ declare function RenderInlinedStyles(props: any): JSX.Element;
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import * as React from "react";
2
3
  import { TARGET } from "../constants/target.js";
3
4
  function RenderInlinedStyles(props) {
@@ -0,0 +1 @@
1
+ export function getDefaultRegisteredComponents(): any[];
@@ -0,0 +1,21 @@
1
+ export function getMaxWidthQueryForSize(size: any, sizeValues?: {
2
+ small: {
3
+ min: number;
4
+ default: number;
5
+ max: number;
6
+ };
7
+ medium: {
8
+ min: number;
9
+ default: number;
10
+ max: number;
11
+ };
12
+ large: {
13
+ min: number;
14
+ default: number;
15
+ max: number;
16
+ };
17
+ }): string;
18
+ export function getSizesForBreakpoints({ small, medium }: {
19
+ small: any;
20
+ medium: any;
21
+ }): any;
@@ -0,0 +1 @@
1
+ export const TARGET: "react";
@@ -0,0 +1,11 @@
1
+ export { stdin_default as default };
2
+ declare var stdin_default: import("react").Context<{
3
+ content: null;
4
+ context: {};
5
+ state: {};
6
+ setState(): void;
7
+ apiKey: null;
8
+ apiVersion: undefined;
9
+ registeredComponents: {};
10
+ inheritedStyles: {};
11
+ }>;
File without changes
@@ -0,0 +1 @@
1
+ export function camelToKebabCase(string: any): any;
@@ -0,0 +1,7 @@
1
+ export function evaluate({ code, context, state, event, isExpression }: {
2
+ code: any;
3
+ context: any;
4
+ state: any;
5
+ event: any;
6
+ isExpression?: boolean | undefined;
7
+ }): any;
@@ -0,0 +1 @@
1
+ export function getEventHandlerName(key: any): string;
@@ -0,0 +1 @@
1
+ export function extractTextStyles(styles: any): {};
@@ -0,0 +1 @@
1
+ export function fastClone(obj: any): any;
@@ -0,0 +1 @@
1
+ export function createEventHandler(value: any, options: any): (event: any) => any;
@@ -0,0 +1 @@
1
+ export function getBlockActions(options: any): {};
@@ -0,0 +1 @@
1
+ export function getBlockComponentOptions(block: any): any;
@@ -0,0 +1 @@
1
+ export function getBlockProperties(block: any): any;
@@ -0,0 +1,4 @@
1
+ export function convertSearchParamsToQueryObject(searchParams: any): {};
2
+ export function getBuilderSearchParams(_options: any): {};
3
+ export function getBuilderSearchParamsFromWindow(): {};
4
+ export function normalizeSearchParams(searchParams: any): any;
@@ -0,0 +1 @@
1
+ export function handleABTesting(_0: any): Promise<any>;
@@ -0,0 +1 @@
1
+ export function generateContentUrl(options: any): URL;
@@ -0,0 +1,2 @@
1
+ export function getAllContent(options: any): Promise<any>;
2
+ export function getContent(options: any): Promise<any>;
@@ -59,7 +59,7 @@ function getAllContent(options) {
59
59
  const res = yield fetch(url.href);
60
60
  const content = yield res.json();
61
61
  if ("status" in content && !("results" in content)) {
62
- logger.error("Error fetching data. ", content, options);
62
+ logger.error("Error fetching data. ", { url, content, options });
63
63
  return content;
64
64
  }
65
65
  const canTrack = options.canTrack !== false;
File without changes
@@ -0,0 +1 @@
1
+ export const fetch: typeof globalThis.fetch;
@@ -0,0 +1 @@
1
+ export function getGlobalThis(): typeof globalThis;
@@ -0,0 +1,6 @@
1
+ export function getProcessedBlock({ block, context, shouldEvaluateBindings, state }: {
2
+ block: any;
3
+ context: any;
4
+ shouldEvaluateBindings: any;
5
+ state: any;
6
+ }): any;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,5 @@
1
+ export function getReactNativeBlockStyles({ block, context, blockStyles }: {
2
+ block: any;
3
+ context: any;
4
+ blockStyles: any;
5
+ }): {};
@@ -0,0 +1,5 @@
1
+ export function ifTarget({ targets, doThing, elseThing }: {
2
+ targets: any;
3
+ doThing: any;
4
+ elseThing: any;
5
+ }): any;
@@ -0,0 +1 @@
1
+ export function isBrowser(): boolean;
@@ -0,0 +1 @@
1
+ export function isEditing(): boolean;
@@ -0,0 +1 @@
1
+ export function isIframe(): boolean;
@@ -0,0 +1 @@
1
+ export function isPreviewing(): boolean;
@@ -0,0 +1,2 @@
1
+ export function onChange(obj: any, cb: any): any;
2
+ export const onChangeProxySymbol: unique symbol;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
1
+ export const components: any[];
2
+ export function createRegisterComponentMessage(_a: any): {
3
+ type: string;
4
+ data: any;
5
+ };
6
+ export function registerComponent(component: any, info: any): any;
@@ -0,0 +1 @@
1
+ export function register(type: any, info: any): void;
@@ -0,0 +1 @@
1
+ export function sanitizeReactNativeBlockStyles(styles: any): {};
@@ -0,0 +1 @@
1
+ export function setEditorSettings(newSettings: any): void;
@@ -0,0 +1 @@
1
+ export function set(obj: any, _path: any, value: any): any;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,5 @@
1
+ export function getUserAttributes(): {
2
+ urlPath: string | undefined;
3
+ host: string | undefined;
4
+ device: string;
5
+ };
@@ -0,0 +1,2 @@
1
+ export function _track(eventProps: any): Promise<any>;
2
+ export function track(args: any): Promise<any>;
@@ -0,0 +1,14 @@
1
+ export function getInteractionPropertiesForEvent(event: any): {
2
+ targetBuilderElement: any;
3
+ metadata: {
4
+ targetOffset: {
5
+ x: number;
6
+ y: number;
7
+ } | undefined;
8
+ builderTargetOffset: {
9
+ x: number;
10
+ y: number;
11
+ } | undefined;
12
+ builderElementIndex: number | undefined;
13
+ };
14
+ };
@@ -0,0 +1 @@
1
+ export function transformBlockProperties(properties: any): any;
@@ -0,0 +1 @@
1
+ export function transformBlock(block: any): any;
@@ -0,0 +1,9 @@
1
+ export function getContentVariationCookie({ contentId, canTrack }: {
2
+ contentId: any;
3
+ canTrack: any;
4
+ }): Promise<any>;
5
+ export function setContentVariationCookie({ contentId, canTrack, value }: {
6
+ contentId: any;
7
+ canTrack: any;
8
+ value: any;
9
+ }): Promise<any>;
@@ -0,0 +1,2 @@
1
+ export function getCookie(_0: any): Promise<any>;
2
+ export function setCookie(_0: any): Promise<any>;
@@ -0,0 +1,7 @@
1
+ export function convertStyleMapToCSS(style: any): string;
2
+ export function convertStyleMapToCSSArray(style: any): (string | undefined)[];
3
+ export function createCssClass({ mediaQuery, className, styles }: {
4
+ mediaQuery: any;
5
+ className: any;
6
+ styles: any;
7
+ }): string;
@@ -0,0 +1 @@
1
+ export function flatten(object: any, path?: null, separator?: string): any;
@@ -0,0 +1,9 @@
1
+ export function getLocalStorageItem({ key, canTrack }: {
2
+ key: any;
3
+ canTrack: any;
4
+ }): string | null | undefined;
5
+ export function setLocalStorageItem({ key, canTrack, value }: {
6
+ key: any;
7
+ canTrack: any;
8
+ value: any;
9
+ }): void;
@@ -0,0 +1,5 @@
1
+ export namespace logger {
2
+ function log(...message: any[]): void;
3
+ function error(...message: any[]): void;
4
+ function warn(...message: any[]): void;
5
+ }
@@ -0,0 +1 @@
1
+ export function checkIsDefined(maybeT: any): boolean;
@@ -0,0 +1,6 @@
1
+ export function createSessionId(): string;
2
+ export function getSessionId(_0: any): Promise<any>;
3
+ export function setSessionId({ id, canTrack }: {
4
+ id: any;
5
+ canTrack: any;
6
+ }): Promise<any>;
@@ -0,0 +1 @@
1
+ export function getCurrentDatePlusMinutes(minutes?: number): Date;
@@ -0,0 +1 @@
1
+ export function getTopLevelDomain(host: any): any;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ export function uuid(): string;
2
+ export function uuidv4(): string;
@@ -0,0 +1,8 @@
1
+ export function createVisitorId(): string;
2
+ export function getVisitorId({ canTrack }: {
3
+ canTrack: any;
4
+ }): string | null | undefined;
5
+ export function setVisitorId({ id, canTrack }: {
6
+ id: any;
7
+ canTrack: any;
8
+ }): void;
@@ -0,0 +1,11 @@
1
+ import { default as default2 } from "../blocks/button/button";
2
+ import { default as default3 } from "../blocks/columns/columns";
3
+ import { default as default4 } from "../blocks/fragment/fragment";
4
+ import { default as default5 } from "../blocks/image/image";
5
+ import { default as default6 } from "../components/render-blocks";
6
+ import { default as default7 } from "../components/render-content/render-content";
7
+ import { default as default8 } from "../blocks/section/section";
8
+ import { default as default9 } from "../blocks/symbol/symbol";
9
+ import { default as default10 } from "../blocks/text/text";
10
+ import { default as default11 } from "../blocks/video/video";
11
+ export { default2 as Button, default3 as Columns, default4 as Fragment, default5 as Image, default6 as RenderBlocks, default7 as RenderContent, default8 as Section, default9 as Symbol, default10 as Text, default11 as Video };
@@ -0,0 +1,2 @@
1
+ export { stdin_default as default };
2
+ declare var stdin_default: undefined;
@@ -0,0 +1,11 @@
1
+ export * from "./index-helpers/top-of-file.js";
2
+ export * from "./index-helpers/blocks-exports.js";
3
+ export * from "./functions/is-editing.js";
4
+ export * from "./functions/is-previewing.js";
5
+ export * from "./functions/register-component.js";
6
+ export * from "./functions/register.js";
7
+ export * from "./functions/set-editor-settings.js";
8
+ export * from "./functions/get-content/index.js";
9
+ export * from "./functions/get-builder-search-params/index.js";
10
+ export { track };
11
+ import { track } from "./functions/track/index.js";
@@ -0,0 +1,2 @@
1
+ export function registerInsertMenu(): void;
2
+ export function setupBrowserForEditing(options?: {}): void;
@@ -0,0 +1 @@
1
+ export const DEFAULT_API_VERSION: "v3";
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,2 @@
1
+ export default BaseText;
2
+ declare function BaseText(props: any): JSX.Element;
@@ -0,0 +1,2 @@
1
+ export default Button;
2
+ declare function Button(props: any): JSX.Element;
@@ -0,0 +1,38 @@
1
+ export namespace componentInfo {
2
+ export const name: string;
3
+ export const image: string;
4
+ export namespace defaultStyles {
5
+ const appearance: string;
6
+ const paddingTop: string;
7
+ const paddingBottom: string;
8
+ const paddingLeft: string;
9
+ const paddingRight: string;
10
+ const backgroundColor: string;
11
+ const color: string;
12
+ const borderRadius: string;
13
+ const textAlign: string;
14
+ const cursor: string;
15
+ }
16
+ export const inputs: ({
17
+ name: string;
18
+ type: string;
19
+ defaultValue: string;
20
+ bubble: boolean;
21
+ friendlyName?: undefined;
22
+ } | {
23
+ name: string;
24
+ type: string;
25
+ bubble: boolean;
26
+ defaultValue?: undefined;
27
+ friendlyName?: undefined;
28
+ } | {
29
+ name: string;
30
+ type: string;
31
+ defaultValue: boolean;
32
+ friendlyName: string;
33
+ bubble?: undefined;
34
+ })[];
35
+ const _static: boolean;
36
+ export { _static as static };
37
+ export const noWrap: boolean;
38
+ }
@@ -0,0 +1,2 @@
1
+ export default Columns;
2
+ declare function Columns(props: any): JSX.Element;