@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
@@ -0,0 +1,10 @@
1
+ export namespace componentInfo {
2
+ const name: string;
3
+ const hideFromInsertMenu: boolean;
4
+ const inputs: {
5
+ name: string;
6
+ bubble: boolean;
7
+ type: string;
8
+ required: boolean;
9
+ }[];
10
+ }
@@ -0,0 +1,2 @@
1
+ export default RawText;
2
+ declare function RawText(props: any): JSX.Element;
@@ -0,0 +1,43 @@
1
+ export namespace componentInfo {
2
+ export const name: string;
3
+ const _static: boolean;
4
+ export { _static as static };
5
+ export const image: string;
6
+ export const inputs: ({
7
+ name: string;
8
+ type: string;
9
+ defaultValue: number;
10
+ advanced?: undefined;
11
+ description?: undefined;
12
+ } | {
13
+ name: string;
14
+ type: string;
15
+ defaultValue: boolean;
16
+ advanced: boolean;
17
+ description: string;
18
+ })[];
19
+ export namespace defaultStyles {
20
+ const paddingLeft: string;
21
+ const paddingRight: string;
22
+ const paddingTop: string;
23
+ const paddingBottom: string;
24
+ const marginTop: string;
25
+ const width: string;
26
+ const marginLeft: string;
27
+ }
28
+ export const canHaveChildren: boolean;
29
+ export const defaultChildren: {
30
+ "@type": string;
31
+ responsiveStyles: {
32
+ large: {
33
+ textAlign: string;
34
+ };
35
+ };
36
+ component: {
37
+ name: string;
38
+ options: {
39
+ text: string;
40
+ };
41
+ };
42
+ }[];
43
+ }
@@ -0,0 +1,2 @@
1
+ export default SectionComponent;
2
+ declare function SectionComponent(props: any): JSX.Element;
@@ -0,0 +1,61 @@
1
+ export namespace componentInfo {
2
+ export const name: string;
3
+ export const image: string;
4
+ export namespace defaultStyles {
5
+ const alignSelf: string;
6
+ }
7
+ export const inputs: ({
8
+ name: string;
9
+ type: string;
10
+ required: boolean;
11
+ subFields: ({
12
+ name: string;
13
+ type: string;
14
+ required: boolean;
15
+ } | {
16
+ name: string;
17
+ type: string;
18
+ required?: undefined;
19
+ })[];
20
+ defaultValue: {
21
+ value: string;
22
+ }[];
23
+ helperText?: undefined;
24
+ advanced?: undefined;
25
+ } | {
26
+ name: string;
27
+ type: string;
28
+ required: boolean;
29
+ helperText: string;
30
+ subFields?: undefined;
31
+ defaultValue?: undefined;
32
+ advanced?: undefined;
33
+ } | {
34
+ name: string;
35
+ type: string;
36
+ required?: undefined;
37
+ subFields?: undefined;
38
+ defaultValue?: undefined;
39
+ helperText?: undefined;
40
+ advanced?: undefined;
41
+ } | {
42
+ name: string;
43
+ type: string;
44
+ advanced: boolean;
45
+ required?: undefined;
46
+ subFields?: undefined;
47
+ defaultValue?: undefined;
48
+ helperText?: undefined;
49
+ } | {
50
+ name: string;
51
+ type: string;
52
+ defaultValue: boolean;
53
+ required?: undefined;
54
+ subFields?: undefined;
55
+ helperText?: undefined;
56
+ advanced?: undefined;
57
+ })[];
58
+ const _static: boolean;
59
+ export { _static as static };
60
+ export const noWrap: boolean;
61
+ }
@@ -0,0 +1,2 @@
1
+ export default SelectComponent;
2
+ declare function SelectComponent(props: any): JSX.Element;
@@ -0,0 +1,23 @@
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 cursor: string;
14
+ }
15
+ export const inputs: {
16
+ name: string;
17
+ type: string;
18
+ defaultValue: string;
19
+ }[];
20
+ const _static: boolean;
21
+ export { _static as static };
22
+ export const noWrap: boolean;
23
+ }
@@ -0,0 +1,2 @@
1
+ export default SubmitButton;
2
+ declare function SubmitButton(props: any): JSX.Element;
@@ -0,0 +1,35 @@
1
+ export namespace componentInfo {
2
+ export const name: string;
3
+ export const noWrap: boolean;
4
+ const _static: boolean;
5
+ export { _static as static };
6
+ export const inputs: ({
7
+ name: string;
8
+ type: string;
9
+ helperText?: undefined;
10
+ defaultValue?: undefined;
11
+ advanced?: undefined;
12
+ hideFromUI?: undefined;
13
+ } | {
14
+ name: string;
15
+ helperText: string;
16
+ type: string;
17
+ defaultValue: boolean;
18
+ advanced: boolean;
19
+ hideFromUI: boolean;
20
+ } | {
21
+ name: string;
22
+ helperText: string;
23
+ type: string;
24
+ defaultValue: boolean;
25
+ advanced: boolean;
26
+ hideFromUI?: undefined;
27
+ } | {
28
+ name: string;
29
+ hideFromUI: boolean;
30
+ type: string;
31
+ helperText?: undefined;
32
+ defaultValue?: undefined;
33
+ advanced?: undefined;
34
+ })[];
35
+ }
@@ -0,0 +1,2 @@
1
+ export default Symbol;
2
+ declare function Symbol(props: any): JSX.Element;
@@ -0,0 +1,19 @@
1
+ export namespace componentInfo {
2
+ export const name: string;
3
+ const _static: boolean;
4
+ export { _static as static };
5
+ export const image: string;
6
+ export const inputs: {
7
+ name: string;
8
+ type: string;
9
+ required: boolean;
10
+ autoFocus: boolean;
11
+ bubble: boolean;
12
+ defaultValue: string;
13
+ }[];
14
+ export namespace defaultStyles {
15
+ const lineHeight: string;
16
+ const height: string;
17
+ const textAlign: string;
18
+ }
19
+ }
@@ -0,0 +1,2 @@
1
+ export default Text;
2
+ declare function Text(props: any): JSX.Element;
@@ -0,0 +1,53 @@
1
+ export namespace componentInfo {
2
+ export const name: string;
3
+ export const image: string;
4
+ export const inputs: ({
5
+ advanced: boolean;
6
+ name: string;
7
+ type: string;
8
+ required?: undefined;
9
+ helperText?: undefined;
10
+ defaultValue?: undefined;
11
+ } | {
12
+ name: string;
13
+ type: string;
14
+ required: boolean;
15
+ helperText: string;
16
+ advanced?: undefined;
17
+ defaultValue?: undefined;
18
+ } | {
19
+ name: string;
20
+ type: string;
21
+ advanced?: undefined;
22
+ required?: undefined;
23
+ helperText?: undefined;
24
+ defaultValue?: undefined;
25
+ } | {
26
+ name: string;
27
+ type: string;
28
+ defaultValue: string;
29
+ advanced?: undefined;
30
+ required?: undefined;
31
+ helperText?: undefined;
32
+ } | {
33
+ name: string;
34
+ type: string;
35
+ defaultValue: boolean;
36
+ advanced?: undefined;
37
+ required?: undefined;
38
+ helperText?: undefined;
39
+ })[];
40
+ export namespace defaultStyles {
41
+ const paddingTop: string;
42
+ const paddingBottom: string;
43
+ const paddingLeft: string;
44
+ const paddingRight: string;
45
+ const borderRadius: string;
46
+ const borderWidth: string;
47
+ const borderStyle: string;
48
+ const borderColor: string;
49
+ }
50
+ const _static: boolean;
51
+ export { _static as static };
52
+ export const noWrap: boolean;
53
+ }
@@ -0,0 +1,2 @@
1
+ export default Textarea;
2
+ declare function Textarea(props: any): JSX.Element;
@@ -0,0 +1 @@
1
+ export function serializeFn(fnValue: any): string;
@@ -0,0 +1,80 @@
1
+ export namespace componentInfo {
2
+ const name: string;
3
+ const canHaveChildren: boolean;
4
+ namespace defaultStyles {
5
+ const minHeight: string;
6
+ const minWidth: string;
7
+ }
8
+ const image: string;
9
+ const inputs: ({
10
+ name: string;
11
+ type: string;
12
+ allowedFileTypes: string[];
13
+ bubble: boolean;
14
+ defaultValue: string;
15
+ required: boolean;
16
+ helperText?: undefined;
17
+ enum?: undefined;
18
+ advanced?: undefined;
19
+ } | {
20
+ name: string;
21
+ type: string;
22
+ allowedFileTypes: string[];
23
+ helperText: string;
24
+ bubble?: undefined;
25
+ defaultValue?: undefined;
26
+ required?: undefined;
27
+ enum?: undefined;
28
+ advanced?: undefined;
29
+ } | {
30
+ name: string;
31
+ type: string;
32
+ defaultValue: boolean;
33
+ allowedFileTypes?: undefined;
34
+ bubble?: undefined;
35
+ required?: undefined;
36
+ helperText?: undefined;
37
+ enum?: undefined;
38
+ advanced?: undefined;
39
+ } | {
40
+ name: string;
41
+ type: string;
42
+ defaultValue: string;
43
+ enum: string[];
44
+ allowedFileTypes?: undefined;
45
+ bubble?: undefined;
46
+ required?: undefined;
47
+ helperText?: undefined;
48
+ advanced?: undefined;
49
+ } | {
50
+ name: string;
51
+ type: string;
52
+ helperText: string;
53
+ defaultValue: boolean;
54
+ advanced: boolean;
55
+ allowedFileTypes?: undefined;
56
+ bubble?: undefined;
57
+ required?: undefined;
58
+ enum?: undefined;
59
+ } | {
60
+ name: string;
61
+ type: string;
62
+ advanced: boolean;
63
+ allowedFileTypes?: undefined;
64
+ bubble?: undefined;
65
+ defaultValue?: undefined;
66
+ required?: undefined;
67
+ helperText?: undefined;
68
+ enum?: undefined;
69
+ } | {
70
+ name: string;
71
+ type: string;
72
+ advanced: boolean;
73
+ defaultValue: number;
74
+ allowedFileTypes?: undefined;
75
+ bubble?: undefined;
76
+ required?: undefined;
77
+ helperText?: undefined;
78
+ enum?: undefined;
79
+ })[];
80
+ }
@@ -0,0 +1,2 @@
1
+ export default Video;
2
+ declare function Video(props: any): JSX.Element;
@@ -0,0 +1,2 @@
1
+ export default BlockStyles;
2
+ declare function BlockStyles(props: any): JSX.Element;
@@ -0,0 +1,2 @@
1
+ export default RenderBlock;
2
+ declare function RenderBlock(props: any): JSX.Element;
@@ -0,0 +1,10 @@
1
+ export function getComponent({ block, context }: {
2
+ block: any;
3
+ context: any;
4
+ }): any;
5
+ export function getProxyState(context: any): any;
6
+ export function getRepeatItemData({ block, context }: {
7
+ block: any;
8
+ context: any;
9
+ }): any;
10
+ export function isEmptyHtmlElement(tagName: any): boolean;
@@ -0,0 +1,2 @@
1
+ export default RenderComponent;
2
+ declare function RenderComponent(props: any): JSX.Element;
@@ -0,0 +1,2 @@
1
+ export default RenderRepeatedBlock;
2
+ declare function RenderRepeatedBlock(props: any): JSX.Element;
File without changes
@@ -0,0 +1,2 @@
1
+ export default RenderBlocks;
2
+ declare function RenderBlocks(props: any): JSX.Element;
@@ -0,0 +1,27 @@
1
+ /**
2
+ * @typedef {object} RegisteredComponent
3
+ * @typedef {object} BuilderContent
4
+ * @typedef {(data: {data: object, key: string }) => void} OnUpdateCallback
5
+ * @typedef {{
6
+ * model: string,
7
+ * components?: RegisteredComponent[],
8
+ * children: any,
9
+ * onUpdate?: OnUpdateCallback,
10
+ * }} BuilderEditingProps
11
+ */
12
+ /**
13
+ * @param {BuilderEditingProps} props
14
+ */
15
+ export function BuilderEditingWrapper(props: BuilderEditingProps): JSX.Element;
16
+ export type RegisteredComponent = object;
17
+ export type BuilderContent = object;
18
+ export type OnUpdateCallback = (data: {
19
+ data: object;
20
+ key: string;
21
+ }) => void;
22
+ export type BuilderEditingProps = {
23
+ model: string;
24
+ components?: RegisteredComponent[];
25
+ children: any;
26
+ onUpdate?: OnUpdateCallback;
27
+ };
@@ -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;
@@ -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;
@@ -0,0 +1,2 @@
1
+ export default RenderInlinedStyles;
2
+ declare function RenderInlinedStyles(props: any): JSX.Element;
@@ -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: "rsc";
@@ -0,0 +1,11 @@
1
+ export { stdin_default as default };
2
+ declare namespace stdin_default {
3
+ const content: null;
4
+ const context: {};
5
+ const state: {};
6
+ function setState(): void;
7
+ const apiKey: null;
8
+ const apiVersion: undefined;
9
+ const registeredComponents: {};
10
+ const inheritedStyles: {};
11
+ }
File without changes
@@ -0,0 +1 @@
1
+ export function camelToKebabCase(string: any): any;
@@ -0,0 +1 @@
1
+ export function evaluate(): null;
@@ -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) => null;
@@ -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): {};