@builder.io/sdk-react 2.0.24-4 → 2.0.24

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 (487) hide show
  1. package/lib/browser/blocks-exports.cjs +2 -2
  2. package/lib/browser/blocks-exports.mjs +4 -4
  3. package/lib/browser/index.cjs +1 -1
  4. package/lib/browser/index.mjs +1 -1
  5. package/lib/browser/{server-entry-416ffa04.cjs → server-entry-0dfca5e0.cjs} +1 -1
  6. package/lib/browser/{server-entry-9d006173.js → server-entry-578cd6e2.js} +1 -1
  7. package/lib/browser/server-entry.cjs +1 -1
  8. package/lib/browser/server-entry.mjs +1 -1
  9. package/lib/edge/{accordion-f69d6e22.js → accordion-5b929fba.js} +1 -1
  10. package/lib/edge/{accordion-985d80e5.cjs → accordion-bb9fa8d9.cjs} +1 -1
  11. package/lib/edge/{blocks-a9dfda85.cjs → blocks-cff95ab8.cjs} +5 -5
  12. package/lib/edge/{blocks-08df0336.js → blocks-e8701f70.js} +25 -25
  13. package/lib/edge/blocks-exports.cjs +1 -1
  14. package/lib/edge/blocks-exports.mjs +2 -2
  15. package/lib/edge/{button-ae1b9d7b.cjs → button-89adbac2.cjs} +1 -1
  16. package/lib/edge/{button-286bd20e.js → button-dd9c397c.js} +2 -2
  17. package/lib/edge/{columns-f1c4af32.js → columns-acd49f06.js} +4 -4
  18. package/lib/edge/{columns-5319c0d2.cjs → columns-b0cfdce7.cjs} +1 -1
  19. package/lib/edge/{content-variants-582c8283.js → content-variants-2cbf3c83.js} +11 -11
  20. package/lib/edge/{content-variants-0eb27f48.cjs → content-variants-56c457f6.cjs} +1 -1
  21. package/lib/edge/{evaluate-322711e6.js → evaluate-68711886.js} +1 -1
  22. package/lib/edge/{evaluate-8ba3acb6.cjs → evaluate-efa88e4b.cjs} +1 -1
  23. package/lib/edge/{form-3aa4916c.js → form-060579d1.js} +4 -4
  24. package/lib/edge/{form-67f85cf1.cjs → form-85e86f80.cjs} +1 -1
  25. package/lib/edge/{get-class-prop-name-e91f3997.js → get-class-prop-name-bb0664a1.js} +1 -1
  26. package/lib/edge/{get-class-prop-name-a62b4faa.cjs → get-class-prop-name-d6d04e54.cjs} +1 -1
  27. package/lib/edge/{img-dff54673.cjs → img-7267e34a.cjs} +1 -1
  28. package/lib/edge/{img-faea3d08.js → img-cb9a2e73.js} +1 -1
  29. package/lib/edge/index.cjs +1 -1
  30. package/lib/edge/index.mjs +1 -1
  31. package/lib/edge/{input-d2659b98.cjs → input-0a7941d1.cjs} +1 -1
  32. package/lib/edge/{input-6e519eca.js → input-99f775bd.js} +1 -1
  33. package/lib/edge/{select-2d29658c.js → select-88a74342.js} +1 -1
  34. package/lib/edge/{select-4bd3e6f1.cjs → select-9791ad44.cjs} +1 -1
  35. package/lib/edge/{server-entry-cb45c291.js → server-entry-a7db0ef9.js} +1 -1
  36. package/lib/edge/{server-entry-bfd03b60.cjs → server-entry-cb6fb618.cjs} +1 -1
  37. package/lib/edge/server-entry.cjs +1 -1
  38. package/lib/edge/server-entry.mjs +1 -1
  39. package/lib/edge/{slot-04b4ef3f.js → slot-28b25c84.js} +4 -4
  40. package/lib/edge/{slot-bd7569c2.cjs → slot-d3b5cdb8.cjs} +1 -1
  41. package/lib/edge/{symbol-55cb3d28.js → symbol-1ab0fb76.js} +2 -2
  42. package/lib/edge/{symbol-36f8ff9a.cjs → symbol-f0ba82bf.cjs} +1 -1
  43. package/lib/edge/{tabs-d16dc29a.js → tabs-a04af934.js} +4 -4
  44. package/lib/edge/{tabs-edb19af7.cjs → tabs-fad92db1.cjs} +1 -1
  45. package/lib/edge/{text-e93b2e5f.js → text-3c4c2e24.js} +2 -2
  46. package/lib/edge/{text-d43cb037.cjs → text-ee3d6be2.cjs} +1 -1
  47. package/lib/node/blocks-exports.cjs +21 -21
  48. package/lib/node/blocks-exports.mjs +9 -10
  49. package/lib/node/index.cjs +1 -1
  50. package/lib/node/index.mjs +25 -26
  51. package/lib/node/init.cjs +1 -1
  52. package/lib/node/init.mjs +5 -6
  53. package/lib/node/{server-entry-2dc8afb6.cjs → server-entry-2ce603a9.cjs} +1 -1
  54. package/lib/node/{server-entry-2b6abd6c.js → server-entry-bf8bf121.js} +1 -1
  55. package/lib/node/server-entry.cjs +1 -1
  56. package/lib/node/server-entry.mjs +1 -1
  57. package/lib/node/{setIvm-ef48cefa.js → should-force-browser-runtime-in-node-2251f2e6.js} +57 -45
  58. package/lib/node/should-force-browser-runtime-in-node-411c24f8.cjs +48 -0
  59. package/package.json +3 -9
  60. package/types/constants/sdk-version.d.ts +1 -1
  61. package/lib/node/setIvm-3ef2ce91.cjs +0 -48
  62. package/lib/node/setIvm.cjs +0 -1
  63. package/lib/node/setIvm.mjs +0 -5
  64. package/lib/node/should-force-browser-runtime-in-node-5098dffa.cjs +0 -1
  65. package/lib/node/should-force-browser-runtime-in-node-eb0799a1.js +0 -17
  66. package/types/blocks/textarea/component-info.d.ts +0 -2
  67. package/types/blocks/textarea/index.d.ts +0 -1
  68. package/types/blocks/textarea/textarea.d.ts +0 -13
  69. package/types/cjs/blocks/BaseText.d.cts +0 -6
  70. package/types/cjs/blocks/button/button.d.cts +0 -4
  71. package/types/cjs/blocks/button/button.types.d.cts +0 -7
  72. package/types/cjs/blocks/button/component-info.d.cts +0 -2
  73. package/types/cjs/blocks/button/index.d.cts +0 -1
  74. package/types/cjs/blocks/columns/columns.d.cts +0 -4
  75. package/types/cjs/blocks/columns/columns.types.d.cts +0 -15
  76. package/types/cjs/blocks/columns/component-info.d.cts +0 -2
  77. package/types/cjs/blocks/columns/helpers.d.cts +0 -1
  78. package/types/cjs/blocks/columns/index.d.cts +0 -1
  79. package/types/cjs/blocks/custom-code/component-info.d.cts +0 -2
  80. package/types/cjs/blocks/custom-code/custom-code.d.cts +0 -7
  81. package/types/cjs/blocks/custom-code/index.d.cts +0 -1
  82. package/types/cjs/blocks/embed/component-info.d.cts +0 -2
  83. package/types/cjs/blocks/embed/embed.d.cts +0 -6
  84. package/types/cjs/blocks/embed/helpers.d.cts +0 -1
  85. package/types/cjs/blocks/embed/index.d.cts +0 -1
  86. package/types/cjs/blocks/form/form/component-info.d.cts +0 -2
  87. package/types/cjs/blocks/form/form/form.d.cts +0 -33
  88. package/types/cjs/blocks/form/form/index.d.cts +0 -1
  89. package/types/cjs/blocks/form/input/component-info.d.cts +0 -2
  90. package/types/cjs/blocks/form/input/index.d.cts +0 -1
  91. package/types/cjs/blocks/form/input/input.d.cts +0 -15
  92. package/types/cjs/blocks/form/select/component-info.d.cts +0 -2
  93. package/types/cjs/blocks/form/select/index.d.cts +0 -1
  94. package/types/cjs/blocks/form/select/select.d.cts +0 -16
  95. package/types/cjs/blocks/form/submit-button/component-info.d.cts +0 -2
  96. package/types/cjs/blocks/form/submit-button/index.d.cts +0 -1
  97. package/types/cjs/blocks/form/submit-button/submit-button.d.cts +0 -10
  98. package/types/cjs/blocks/fragment/component-info.d.cts +0 -2
  99. package/types/cjs/blocks/fragment/fragment.d.cts +0 -4
  100. package/types/cjs/blocks/fragment/fragment.types.d.cts +0 -5
  101. package/types/cjs/blocks/fragment/index.d.cts +0 -1
  102. package/types/cjs/blocks/helpers.d.cts +0 -13
  103. package/types/cjs/blocks/image/component-info.d.cts +0 -2
  104. package/types/cjs/blocks/image/image.d.cts +0 -4
  105. package/types/cjs/blocks/image/image.helpers.d.cts +0 -1
  106. package/types/cjs/blocks/image/image.types.d.cts +0 -19
  107. package/types/cjs/blocks/image/index.d.cts +0 -1
  108. package/types/cjs/blocks/img/component-info.d.cts +0 -2
  109. package/types/cjs/blocks/img/img.d.cts +0 -14
  110. package/types/cjs/blocks/img/index.d.cts +0 -1
  111. package/types/cjs/blocks/raw-text/component-info.d.cts +0 -2
  112. package/types/cjs/blocks/raw-text/index.d.cts +0 -1
  113. package/types/cjs/blocks/raw-text/raw-text.d.cts +0 -7
  114. package/types/cjs/blocks/section/component-info.d.cts +0 -2
  115. package/types/cjs/blocks/section/index.d.cts +0 -1
  116. package/types/cjs/blocks/section/section.d.cts +0 -4
  117. package/types/cjs/blocks/section/section.types.d.cts +0 -6
  118. package/types/cjs/blocks/slot/component-info.d.cts +0 -2
  119. package/types/cjs/blocks/slot/index.d.cts +0 -1
  120. package/types/cjs/blocks/slot/slot.d.cts +0 -8
  121. package/types/cjs/blocks/symbol/component-info.d.cts +0 -2
  122. package/types/cjs/blocks/symbol/index.d.cts +0 -1
  123. package/types/cjs/blocks/symbol/symbol.d.cts +0 -4
  124. package/types/cjs/blocks/symbol/symbol.helpers.d.cts +0 -14
  125. package/types/cjs/blocks/symbol/symbol.types.d.cts +0 -18
  126. package/types/cjs/blocks/tabs/component-info.d.cts +0 -2
  127. package/types/cjs/blocks/tabs/index.d.cts +0 -1
  128. package/types/cjs/blocks/tabs/tabs.d.cts +0 -4
  129. package/types/cjs/blocks/tabs/tabs.types.d.cts +0 -13
  130. package/types/cjs/blocks/text/component-info.d.cts +0 -2
  131. package/types/cjs/blocks/text/index.d.cts +0 -1
  132. package/types/cjs/blocks/text/text.d.cts +0 -4
  133. package/types/cjs/blocks/text/text.types.d.cts +0 -4
  134. package/types/cjs/blocks/textarea/component-info.d.cts +0 -2
  135. package/types/cjs/blocks/textarea/index.d.cts +0 -1
  136. package/types/cjs/blocks/textarea/textarea.d.cts +0 -13
  137. package/types/cjs/blocks/video/component-info.d.cts +0 -2
  138. package/types/cjs/blocks/video/index.d.cts +0 -1
  139. package/types/cjs/blocks/video/video.d.cts +0 -4
  140. package/types/cjs/blocks/video/video.types.d.cts +0 -21
  141. package/types/cjs/components/block/animator.d.cts +0 -5
  142. package/types/cjs/components/block/block.d.cts +0 -11
  143. package/types/cjs/components/block/block.helpers.d.cts +0 -18
  144. package/types/cjs/components/block/components/block-styles.d.cts +0 -9
  145. package/types/cjs/components/block/components/block-wrapper.d.cts +0 -15
  146. package/types/cjs/components/block/components/component-ref/component-ref.d.cts +0 -4
  147. package/types/cjs/components/block/components/component-ref/component-ref.helpers.d.cts +0 -31
  148. package/types/cjs/components/block/components/interactive-element.d.cts +0 -14
  149. package/types/cjs/components/block/components/repeated-block.d.cts +0 -8
  150. package/types/cjs/components/block/types.d.cts +0 -6
  151. package/types/cjs/components/blocks/blocks-wrapper.d.cts +0 -19
  152. package/types/cjs/components/blocks/blocks.d.cts +0 -4
  153. package/types/cjs/components/blocks/blocks.types.d.cts +0 -7
  154. package/types/cjs/components/blocks/index.d.cts +0 -1
  155. package/types/cjs/components/content/components/enable-editor.d.cts +0 -10
  156. package/types/cjs/components/content/components/styles.d.cts +0 -10
  157. package/types/cjs/components/content/components/styles.helpers.d.cts +0 -17
  158. package/types/cjs/components/content/content.d.cts +0 -4
  159. package/types/cjs/components/content/content.helpers.d.cts +0 -7
  160. package/types/cjs/components/content/content.types.d.cts +0 -13
  161. package/types/cjs/components/content/contentProps.types.d.cts +0 -17
  162. package/types/cjs/components/content/index.d.cts +0 -1
  163. package/types/cjs/components/content/wrap-component-ref.d.cts +0 -6
  164. package/types/cjs/components/content-variants/content-variants.d.cts +0 -10
  165. package/types/cjs/components/content-variants/content-variants.types.d.cts +0 -71
  166. package/types/cjs/components/content-variants/helpers.d.cts +0 -41
  167. package/types/cjs/components/content-variants/index.d.cts +0 -1
  168. package/types/cjs/components/content-variants/inlined-fns.d.cts +0 -14
  169. package/types/cjs/components/dynamic-div.d.cts +0 -15
  170. package/types/cjs/components/dynamic-renderer/dynamic-renderer.d.cts +0 -9
  171. package/types/cjs/components/dynamic-renderer/dynamic-renderer.helpers.d.cts +0 -1
  172. package/types/cjs/components/error-boundary.d.cts +0 -11
  173. package/types/cjs/components/inlined-script.d.cts +0 -7
  174. package/types/cjs/components/inlined-styles.d.cts +0 -7
  175. package/types/cjs/constants/builder-registered-components.d.cts +0 -6
  176. package/types/cjs/constants/device-sizes.d.cts +0 -13
  177. package/types/cjs/constants/extra-components.d.cts +0 -7
  178. package/types/cjs/constants/sdk-version.d.cts +0 -1
  179. package/types/cjs/constants/target.d.cts +0 -2
  180. package/types/cjs/context/builder.context.d.cts +0 -3
  181. package/types/cjs/context/components.context.d.cts +0 -3
  182. package/types/cjs/context/index.d.cts +0 -1
  183. package/types/cjs/context/types.d.cts +0 -36
  184. package/types/cjs/functions/apply-patch-with-mutation.d.cts +0 -10
  185. package/types/cjs/functions/camel-to-kebab-case.d.cts +0 -1
  186. package/types/cjs/functions/deopt.d.cts +0 -4
  187. package/types/cjs/functions/evaluate/browser-runtime/browser.d.cts +0 -8
  188. package/types/cjs/functions/evaluate/browser-runtime/index.d.cts +0 -1
  189. package/types/cjs/functions/evaluate/choose-eval.d.cts +0 -6
  190. package/types/cjs/functions/evaluate/edge-runtime/acorn-interpreter.d.cts +0 -2
  191. package/types/cjs/functions/evaluate/edge-runtime/edge-runtime.d.cts +0 -2
  192. package/types/cjs/functions/evaluate/edge-runtime/index.d.cts +0 -1
  193. package/types/cjs/functions/evaluate/evaluate.d.cts +0 -4
  194. package/types/cjs/functions/evaluate/helpers.d.cts +0 -25
  195. package/types/cjs/functions/evaluate/index.d.cts +0 -1
  196. package/types/cjs/functions/evaluate/node-runtime/index.d.cts +0 -1
  197. package/types/cjs/functions/evaluate/node-runtime/init.d.cts +0 -13
  198. package/types/cjs/functions/evaluate/node-runtime/node-runtime.d.cts +0 -11
  199. package/types/cjs/functions/evaluate/node-runtime/safeDynamicRequire.d.cts +0 -6
  200. package/types/cjs/functions/evaluate/placeholder-runtime.d.cts +0 -2
  201. package/types/cjs/functions/evaluate/should-force-browser-runtime-in-node.d.cts +0 -1
  202. package/types/cjs/functions/event-handler-name.d.cts +0 -1
  203. package/types/cjs/functions/extract-text-styles.d.cts +0 -4
  204. package/types/cjs/functions/fast-clone.d.cts +0 -4
  205. package/types/cjs/functions/fetch-builder-props.d.cts +0 -53
  206. package/types/cjs/functions/get-block-actions-handler.d.cts +0 -8
  207. package/types/cjs/functions/get-block-actions.d.cts +0 -10
  208. package/types/cjs/functions/get-block-component-options.d.cts +0 -2
  209. package/types/cjs/functions/get-block-properties.d.cts +0 -10
  210. package/types/cjs/functions/get-builder-search-params/index.d.cts +0 -9
  211. package/types/cjs/functions/get-class-prop-name.d.cts +0 -1
  212. package/types/cjs/functions/get-content/generate-content-url.d.cts +0 -2
  213. package/types/cjs/functions/get-content/index.d.cts +0 -18
  214. package/types/cjs/functions/get-content/types.d.cts +0 -139
  215. package/types/cjs/functions/get-env.d.cts +0 -2
  216. package/types/cjs/functions/get-fetch.d.cts +0 -1
  217. package/types/cjs/functions/get-global-this.d.cts +0 -4
  218. package/types/cjs/functions/get-processed-block.d.cts +0 -10
  219. package/types/cjs/functions/get-style.d.cts +0 -12
  220. package/types/cjs/functions/get.d.cts +0 -1
  221. package/types/cjs/functions/is-browser.d.cts +0 -1
  222. package/types/cjs/functions/is-edge-runtime.d.cts +0 -4
  223. package/types/cjs/functions/is-editing.d.cts +0 -2
  224. package/types/cjs/functions/is-from-trusted-host.d.cts +0 -3
  225. package/types/cjs/functions/is-iframe.d.cts +0 -1
  226. package/types/cjs/functions/is-node-runtime.d.cts +0 -4
  227. package/types/cjs/functions/is-previewing.d.cts +0 -2
  228. package/types/cjs/functions/on-change.d.cts +0 -7
  229. package/types/cjs/functions/register-component.d.cts +0 -6
  230. package/types/cjs/functions/register.d.cts +0 -16
  231. package/types/cjs/functions/set-editor-settings.d.cts +0 -4
  232. package/types/cjs/functions/set.d.cts +0 -7
  233. package/types/cjs/functions/track/helpers.d.cts +0 -5
  234. package/types/cjs/functions/track/index.d.cts +0 -51
  235. package/types/cjs/functions/track/interaction.d.cts +0 -13
  236. package/types/cjs/functions/transform-block-properties.d.cts +0 -7
  237. package/types/cjs/functions/transform-block.d.cts +0 -2
  238. package/types/cjs/functions/transform-style-property.d.cts +0 -7
  239. package/types/cjs/helpers/ab-tests.d.cts +0 -9
  240. package/types/cjs/helpers/canTrack.d.cts +0 -1
  241. package/types/cjs/helpers/cookie.d.cts +0 -19
  242. package/types/cjs/helpers/css.d.cts +0 -7
  243. package/types/cjs/helpers/flatten.d.cts +0 -16
  244. package/types/cjs/helpers/localStorage.d.cts +0 -9
  245. package/types/cjs/helpers/logger.d.cts +0 -7
  246. package/types/cjs/helpers/nullable.d.cts +0 -2
  247. package/types/cjs/helpers/omit.d.cts +0 -1
  248. package/types/cjs/helpers/preview-lru-cache/get.d.cts +0 -2
  249. package/types/cjs/helpers/preview-lru-cache/helpers.d.cts +0 -1
  250. package/types/cjs/helpers/preview-lru-cache/init.d.cts +0 -6
  251. package/types/cjs/helpers/preview-lru-cache/set.d.cts +0 -7
  252. package/types/cjs/helpers/preview-lru-cache/types.d.cts +0 -1
  253. package/types/cjs/helpers/search/search.d.cts +0 -5
  254. package/types/cjs/helpers/sessionId.d.cts +0 -6
  255. package/types/cjs/helpers/subscribe-to-editor.d.cts +0 -35
  256. package/types/cjs/helpers/time.d.cts +0 -1
  257. package/types/cjs/helpers/url.d.cts +0 -6
  258. package/types/cjs/helpers/uuid.d.cts +0 -8
  259. package/types/cjs/helpers/visitorId.d.cts +0 -6
  260. package/types/cjs/index-helpers/blocks-exports.d.cts +0 -14
  261. package/types/cjs/index-helpers/top-of-file.d.cts +0 -1
  262. package/types/cjs/index.d.cts +0 -10
  263. package/types/cjs/scripts/init-editing.d.cts +0 -7
  264. package/types/cjs/server-index.d.cts +0 -39
  265. package/types/cjs/types/api-version.d.cts +0 -2
  266. package/types/cjs/types/builder-block.d.cts +0 -84
  267. package/types/cjs/types/builder-content.d.cts +0 -44
  268. package/types/cjs/types/builder-props.d.cts +0 -12
  269. package/types/cjs/types/can-track.d.cts +0 -3
  270. package/types/cjs/types/components.d.cts +0 -110
  271. package/types/cjs/types/deep-partial.d.cts +0 -3
  272. package/types/cjs/types/element.d.cts +0 -59
  273. package/types/cjs/types/enforced-partials.d.cts +0 -26
  274. package/types/cjs/types/input.d.cts +0 -122
  275. package/types/cjs/types/targets.d.cts +0 -1
  276. package/types/cjs/types/typescript.d.cts +0 -8
  277. package/types/esm/blocks/BaseText.d.mts +0 -6
  278. package/types/esm/blocks/button/button.d.mts +0 -4
  279. package/types/esm/blocks/button/button.types.d.mts +0 -7
  280. package/types/esm/blocks/button/component-info.d.mts +0 -2
  281. package/types/esm/blocks/button/index.d.mts +0 -1
  282. package/types/esm/blocks/columns/columns.d.mts +0 -4
  283. package/types/esm/blocks/columns/columns.types.d.mts +0 -15
  284. package/types/esm/blocks/columns/component-info.d.mts +0 -2
  285. package/types/esm/blocks/columns/helpers.d.mts +0 -1
  286. package/types/esm/blocks/columns/index.d.mts +0 -1
  287. package/types/esm/blocks/custom-code/component-info.d.mts +0 -2
  288. package/types/esm/blocks/custom-code/custom-code.d.mts +0 -7
  289. package/types/esm/blocks/custom-code/index.d.mts +0 -1
  290. package/types/esm/blocks/embed/component-info.d.mts +0 -2
  291. package/types/esm/blocks/embed/embed.d.mts +0 -6
  292. package/types/esm/blocks/embed/helpers.d.mts +0 -1
  293. package/types/esm/blocks/embed/index.d.mts +0 -1
  294. package/types/esm/blocks/form/form/component-info.d.mts +0 -2
  295. package/types/esm/blocks/form/form/form.d.mts +0 -33
  296. package/types/esm/blocks/form/form/index.d.mts +0 -1
  297. package/types/esm/blocks/form/input/component-info.d.mts +0 -2
  298. package/types/esm/blocks/form/input/index.d.mts +0 -1
  299. package/types/esm/blocks/form/input/input.d.mts +0 -15
  300. package/types/esm/blocks/form/select/component-info.d.mts +0 -2
  301. package/types/esm/blocks/form/select/index.d.mts +0 -1
  302. package/types/esm/blocks/form/select/select.d.mts +0 -16
  303. package/types/esm/blocks/form/submit-button/component-info.d.mts +0 -2
  304. package/types/esm/blocks/form/submit-button/index.d.mts +0 -1
  305. package/types/esm/blocks/form/submit-button/submit-button.d.mts +0 -10
  306. package/types/esm/blocks/fragment/component-info.d.mts +0 -2
  307. package/types/esm/blocks/fragment/fragment.d.mts +0 -4
  308. package/types/esm/blocks/fragment/fragment.types.d.mts +0 -5
  309. package/types/esm/blocks/fragment/index.d.mts +0 -1
  310. package/types/esm/blocks/helpers.d.mts +0 -13
  311. package/types/esm/blocks/image/component-info.d.mts +0 -2
  312. package/types/esm/blocks/image/image.d.mts +0 -4
  313. package/types/esm/blocks/image/image.helpers.d.mts +0 -1
  314. package/types/esm/blocks/image/image.types.d.mts +0 -19
  315. package/types/esm/blocks/image/index.d.mts +0 -1
  316. package/types/esm/blocks/img/component-info.d.mts +0 -2
  317. package/types/esm/blocks/img/img.d.mts +0 -14
  318. package/types/esm/blocks/img/index.d.mts +0 -1
  319. package/types/esm/blocks/raw-text/component-info.d.mts +0 -2
  320. package/types/esm/blocks/raw-text/index.d.mts +0 -1
  321. package/types/esm/blocks/raw-text/raw-text.d.mts +0 -7
  322. package/types/esm/blocks/section/component-info.d.mts +0 -2
  323. package/types/esm/blocks/section/index.d.mts +0 -1
  324. package/types/esm/blocks/section/section.d.mts +0 -4
  325. package/types/esm/blocks/section/section.types.d.mts +0 -6
  326. package/types/esm/blocks/slot/component-info.d.mts +0 -2
  327. package/types/esm/blocks/slot/index.d.mts +0 -1
  328. package/types/esm/blocks/slot/slot.d.mts +0 -8
  329. package/types/esm/blocks/symbol/component-info.d.mts +0 -2
  330. package/types/esm/blocks/symbol/index.d.mts +0 -1
  331. package/types/esm/blocks/symbol/symbol.d.mts +0 -4
  332. package/types/esm/blocks/symbol/symbol.helpers.d.mts +0 -14
  333. package/types/esm/blocks/symbol/symbol.types.d.mts +0 -18
  334. package/types/esm/blocks/tabs/component-info.d.mts +0 -2
  335. package/types/esm/blocks/tabs/index.d.mts +0 -1
  336. package/types/esm/blocks/tabs/tabs.d.mts +0 -4
  337. package/types/esm/blocks/tabs/tabs.types.d.mts +0 -13
  338. package/types/esm/blocks/text/component-info.d.mts +0 -2
  339. package/types/esm/blocks/text/index.d.mts +0 -1
  340. package/types/esm/blocks/text/text.d.mts +0 -4
  341. package/types/esm/blocks/text/text.types.d.mts +0 -4
  342. package/types/esm/blocks/textarea/component-info.d.mts +0 -2
  343. package/types/esm/blocks/textarea/index.d.mts +0 -1
  344. package/types/esm/blocks/textarea/textarea.d.mts +0 -13
  345. package/types/esm/blocks/video/component-info.d.mts +0 -2
  346. package/types/esm/blocks/video/index.d.mts +0 -1
  347. package/types/esm/blocks/video/video.d.mts +0 -4
  348. package/types/esm/blocks/video/video.types.d.mts +0 -21
  349. package/types/esm/components/block/animator.d.mts +0 -5
  350. package/types/esm/components/block/block.d.mts +0 -11
  351. package/types/esm/components/block/block.helpers.d.mts +0 -18
  352. package/types/esm/components/block/components/block-styles.d.mts +0 -9
  353. package/types/esm/components/block/components/block-wrapper.d.mts +0 -15
  354. package/types/esm/components/block/components/component-ref/component-ref.d.mts +0 -4
  355. package/types/esm/components/block/components/component-ref/component-ref.helpers.d.mts +0 -31
  356. package/types/esm/components/block/components/interactive-element.d.mts +0 -14
  357. package/types/esm/components/block/components/repeated-block.d.mts +0 -8
  358. package/types/esm/components/block/types.d.mts +0 -6
  359. package/types/esm/components/blocks/blocks-wrapper.d.mts +0 -19
  360. package/types/esm/components/blocks/blocks.d.mts +0 -4
  361. package/types/esm/components/blocks/blocks.types.d.mts +0 -7
  362. package/types/esm/components/blocks/index.d.mts +0 -1
  363. package/types/esm/components/content/components/enable-editor.d.mts +0 -10
  364. package/types/esm/components/content/components/styles.d.mts +0 -10
  365. package/types/esm/components/content/components/styles.helpers.d.mts +0 -17
  366. package/types/esm/components/content/content.d.mts +0 -4
  367. package/types/esm/components/content/content.helpers.d.mts +0 -7
  368. package/types/esm/components/content/content.types.d.mts +0 -13
  369. package/types/esm/components/content/contentProps.types.d.mts +0 -17
  370. package/types/esm/components/content/index.d.mts +0 -1
  371. package/types/esm/components/content/wrap-component-ref.d.mts +0 -6
  372. package/types/esm/components/content-variants/content-variants.d.mts +0 -10
  373. package/types/esm/components/content-variants/content-variants.types.d.mts +0 -71
  374. package/types/esm/components/content-variants/helpers.d.mts +0 -41
  375. package/types/esm/components/content-variants/index.d.mts +0 -1
  376. package/types/esm/components/content-variants/inlined-fns.d.mts +0 -14
  377. package/types/esm/components/dynamic-div.d.mts +0 -15
  378. package/types/esm/components/dynamic-renderer/dynamic-renderer.d.mts +0 -9
  379. package/types/esm/components/dynamic-renderer/dynamic-renderer.helpers.d.mts +0 -1
  380. package/types/esm/components/error-boundary.d.mts +0 -11
  381. package/types/esm/components/inlined-script.d.mts +0 -7
  382. package/types/esm/components/inlined-styles.d.mts +0 -7
  383. package/types/esm/constants/builder-registered-components.d.mts +0 -6
  384. package/types/esm/constants/device-sizes.d.mts +0 -13
  385. package/types/esm/constants/extra-components.d.mts +0 -7
  386. package/types/esm/constants/sdk-version.d.mts +0 -1
  387. package/types/esm/constants/target.d.mts +0 -2
  388. package/types/esm/context/builder.context.d.mts +0 -3
  389. package/types/esm/context/components.context.d.mts +0 -3
  390. package/types/esm/context/index.d.mts +0 -1
  391. package/types/esm/context/types.d.mts +0 -36
  392. package/types/esm/functions/apply-patch-with-mutation.d.mts +0 -10
  393. package/types/esm/functions/camel-to-kebab-case.d.mts +0 -1
  394. package/types/esm/functions/deopt.d.mts +0 -4
  395. package/types/esm/functions/evaluate/browser-runtime/browser.d.mts +0 -8
  396. package/types/esm/functions/evaluate/browser-runtime/index.d.mts +0 -1
  397. package/types/esm/functions/evaluate/choose-eval.d.mts +0 -6
  398. package/types/esm/functions/evaluate/edge-runtime/acorn-interpreter.d.mts +0 -2
  399. package/types/esm/functions/evaluate/edge-runtime/edge-runtime.d.mts +0 -2
  400. package/types/esm/functions/evaluate/edge-runtime/index.d.mts +0 -1
  401. package/types/esm/functions/evaluate/evaluate.d.mts +0 -4
  402. package/types/esm/functions/evaluate/helpers.d.mts +0 -25
  403. package/types/esm/functions/evaluate/index.d.mts +0 -1
  404. package/types/esm/functions/evaluate/node-runtime/index.d.mts +0 -1
  405. package/types/esm/functions/evaluate/node-runtime/init.d.mts +0 -13
  406. package/types/esm/functions/evaluate/node-runtime/node-runtime.d.mts +0 -11
  407. package/types/esm/functions/evaluate/node-runtime/safeDynamicRequire.d.mts +0 -6
  408. package/types/esm/functions/evaluate/placeholder-runtime.d.mts +0 -2
  409. package/types/esm/functions/evaluate/should-force-browser-runtime-in-node.d.mts +0 -1
  410. package/types/esm/functions/event-handler-name.d.mts +0 -1
  411. package/types/esm/functions/extract-text-styles.d.mts +0 -4
  412. package/types/esm/functions/fast-clone.d.mts +0 -4
  413. package/types/esm/functions/fetch-builder-props.d.mts +0 -53
  414. package/types/esm/functions/get-block-actions-handler.d.mts +0 -8
  415. package/types/esm/functions/get-block-actions.d.mts +0 -10
  416. package/types/esm/functions/get-block-component-options.d.mts +0 -2
  417. package/types/esm/functions/get-block-properties.d.mts +0 -10
  418. package/types/esm/functions/get-builder-search-params/index.d.mts +0 -9
  419. package/types/esm/functions/get-class-prop-name.d.mts +0 -1
  420. package/types/esm/functions/get-content/generate-content-url.d.mts +0 -2
  421. package/types/esm/functions/get-content/index.d.mts +0 -18
  422. package/types/esm/functions/get-content/types.d.mts +0 -139
  423. package/types/esm/functions/get-env.d.mts +0 -2
  424. package/types/esm/functions/get-fetch.d.mts +0 -1
  425. package/types/esm/functions/get-global-this.d.mts +0 -4
  426. package/types/esm/functions/get-processed-block.d.mts +0 -10
  427. package/types/esm/functions/get-style.d.mts +0 -12
  428. package/types/esm/functions/get.d.mts +0 -1
  429. package/types/esm/functions/is-browser.d.mts +0 -1
  430. package/types/esm/functions/is-edge-runtime.d.mts +0 -4
  431. package/types/esm/functions/is-editing.d.mts +0 -2
  432. package/types/esm/functions/is-from-trusted-host.d.mts +0 -3
  433. package/types/esm/functions/is-iframe.d.mts +0 -1
  434. package/types/esm/functions/is-node-runtime.d.mts +0 -4
  435. package/types/esm/functions/is-previewing.d.mts +0 -2
  436. package/types/esm/functions/on-change.d.mts +0 -7
  437. package/types/esm/functions/register-component.d.mts +0 -6
  438. package/types/esm/functions/register.d.mts +0 -16
  439. package/types/esm/functions/set-editor-settings.d.mts +0 -4
  440. package/types/esm/functions/set.d.mts +0 -7
  441. package/types/esm/functions/track/helpers.d.mts +0 -5
  442. package/types/esm/functions/track/index.d.mts +0 -51
  443. package/types/esm/functions/track/interaction.d.mts +0 -13
  444. package/types/esm/functions/transform-block-properties.d.mts +0 -7
  445. package/types/esm/functions/transform-block.d.mts +0 -2
  446. package/types/esm/functions/transform-style-property.d.mts +0 -7
  447. package/types/esm/helpers/ab-tests.d.mts +0 -9
  448. package/types/esm/helpers/canTrack.d.mts +0 -1
  449. package/types/esm/helpers/cookie.d.mts +0 -19
  450. package/types/esm/helpers/css.d.mts +0 -7
  451. package/types/esm/helpers/flatten.d.mts +0 -16
  452. package/types/esm/helpers/localStorage.d.mts +0 -9
  453. package/types/esm/helpers/logger.d.mts +0 -7
  454. package/types/esm/helpers/nullable.d.mts +0 -2
  455. package/types/esm/helpers/omit.d.mts +0 -1
  456. package/types/esm/helpers/preview-lru-cache/get.d.mts +0 -2
  457. package/types/esm/helpers/preview-lru-cache/helpers.d.mts +0 -1
  458. package/types/esm/helpers/preview-lru-cache/init.d.mts +0 -6
  459. package/types/esm/helpers/preview-lru-cache/set.d.mts +0 -7
  460. package/types/esm/helpers/preview-lru-cache/types.d.mts +0 -1
  461. package/types/esm/helpers/search/search.d.mts +0 -5
  462. package/types/esm/helpers/sessionId.d.mts +0 -6
  463. package/types/esm/helpers/subscribe-to-editor.d.mts +0 -35
  464. package/types/esm/helpers/time.d.mts +0 -1
  465. package/types/esm/helpers/url.d.mts +0 -6
  466. package/types/esm/helpers/uuid.d.mts +0 -8
  467. package/types/esm/helpers/visitorId.d.mts +0 -6
  468. package/types/esm/index-helpers/blocks-exports.d.mts +0 -14
  469. package/types/esm/index-helpers/top-of-file.d.mts +0 -1
  470. package/types/esm/index.d.mts +0 -10
  471. package/types/esm/index.d.mts.d.mts +0 -10
  472. package/types/esm/scripts/init-editing.d.mts +0 -7
  473. package/types/esm/server-index.d.mts +0 -39
  474. package/types/esm/types/api-version.d.mts +0 -2
  475. package/types/esm/types/builder-block.d.mts +0 -84
  476. package/types/esm/types/builder-content.d.mts +0 -44
  477. package/types/esm/types/builder-props.d.mts +0 -12
  478. package/types/esm/types/can-track.d.mts +0 -3
  479. package/types/esm/types/components.d.mts +0 -110
  480. package/types/esm/types/deep-partial.d.mts +0 -3
  481. package/types/esm/types/element.d.mts +0 -59
  482. package/types/esm/types/enforced-partials.d.mts +0 -26
  483. package/types/esm/types/input.d.mts +0 -122
  484. package/types/esm/types/targets.d.mts +0 -1
  485. package/types/esm/types/typescript.d.mts +0 -8
  486. package/types/functions/evaluate/node-runtime/setIvm.d.ts +0 -1
  487. package/types/helpers/sdk-headers.d.ts +0 -5
@@ -1,6 +0,0 @@
1
- /**
2
- * Overriding usage of `node:module` because of https://github.com/vercel/next.js/issues/60491
3
- * This doesn't actually work in production, but it lets the tests pass...
4
- * Mono-repo env seems to pull in the SDK differently which allows the eval('require') to work.
5
- */
6
- export declare let safeDynamicRequire: typeof require;
@@ -1,2 +0,0 @@
1
- import type { ExecutorArgs } from './helpers.js';
2
- export declare const evaluator: (_args: ExecutorArgs) => never;
@@ -1 +0,0 @@
1
- export declare const shouldForceBrowserRuntimeInNode: () => boolean;
@@ -1 +0,0 @@
1
- export declare const getEventHandlerName: (key: string) => string;
@@ -1,4 +0,0 @@
1
- /**
2
- * Extract styles that apply to text from a style object.
3
- */
4
- export declare const extractTextStyles: (styles: Partial<CSSStyleDeclaration>) => Partial<CSSStyleDeclaration>;
@@ -1,4 +0,0 @@
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;
@@ -1,53 +0,0 @@
1
- import type { ContentVariantsPrps } from '../components/content-variants/content-variants.types.js';
2
- import type { Dictionary } from '../types/typescript.js';
3
- import type { GetContentOptions } from './get-content/types.js';
4
- type GetBuilderPropsOptions = (Omit<GetContentOptions, 'model'> & {
5
- model?: string;
6
- }) & ({
7
- /**
8
- * The current URL path. Used to determine the `urlPath` for targeting content.
9
- *
10
- * Cannot be used with `url`.
11
- */
12
- path: string;
13
- /**
14
- * The current URL search params. Used to parse the `searchParams` for targeting content.
15
- *
16
- * Cannot be used with `url`.
17
- */
18
- searchParams?: URLSearchParams | Dictionary<string | string[]>;
19
- url?: undefined;
20
- } | {
21
- /**
22
- * The current URL. Used to determine the `urlPath` for targeting content and
23
- * to parse the `searchParams` for targeting content.
24
- *
25
- * Cannot be used with `path` or `searchParams`.
26
- */
27
- url: URL;
28
- path?: undefined;
29
- searchParams?: undefined;
30
- } | {
31
- url?: undefined;
32
- path?: undefined;
33
- searchParams?: undefined;
34
- });
35
- /**
36
- * Given an `apiKey` and `url` (or `path` + `searchParams`), provides all props that `Content` needs to render Builder Content.
37
- *
38
- * @example
39
- * ```jsx
40
- * const builderProps = await fetchBuilderProps({
41
- * apiKey: 'API_KEY',
42
- * // provide `url`
43
- * url: yourPageUrl,
44
- * // OR provide `path` + `searchParams`
45
- * path: yourPath,
46
- * searchParams: yourSearchParams,
47
- * });
48
- *
49
- * return <Content {...builderProps} />;
50
- * ```
51
- */
52
- export declare const fetchBuilderProps: (_args: GetBuilderPropsOptions) => Promise<ContentVariantsPrps>;
53
- export {};
@@ -1,8 +0,0 @@
1
- import type { BuilderContextInterface } from '../context/types.js';
2
- import type { BuilderBlock } from '../types/builder-block.js';
3
- type Options = {
4
- block: BuilderBlock;
5
- } & Pick<BuilderContextInterface, 'localState' | 'context' | 'rootState' | 'rootSetState'>;
6
- type EventHandler = (event: Event) => any;
7
- export declare const createEventHandler: (value: string, options: Options) => EventHandler;
8
- export {};
@@ -1,10 +0,0 @@
1
- import type { BuilderContextInterface } from '../context/types.js';
2
- import type { BuilderBlock } from '../types/builder-block.js';
3
- type Actions = {
4
- [index: string]: (event: Event) => any;
5
- };
6
- export declare function getBlockActions(options: {
7
- block: BuilderBlock;
8
- stripPrefix?: boolean;
9
- } & Pick<BuilderContextInterface, 'localState' | 'context' | 'rootState' | 'rootSetState'>): Actions;
10
- export {};
@@ -1,2 +0,0 @@
1
- import type { BuilderBlock } from '../types/builder-block.js';
2
- export declare function getBlockComponentOptions(block: BuilderBlock): any;
@@ -1,10 +0,0 @@
1
- import type { BuilderContextInterface } from '../context/types.js';
2
- import type { BuilderBlock } from '../types/builder-block.js';
3
- export declare function getBlockProperties({ block, context }: {
4
- block: BuilderBlock;
5
- context: BuilderContextInterface;
6
- }): {
7
- 'builder-id': string;
8
- style: string | Partial<CSSStyleDeclaration>;
9
- href: any;
10
- };
@@ -1,9 +0,0 @@
1
- import type { QueryObject } from '../../helpers/search/search.js';
2
- /**
3
- * Receives a `URLSearchParams` object or a regular query object, and returns the subset of query params that are
4
- * relevant to the Builder SDK.
5
- *
6
- * @returns
7
- */
8
- export declare const getBuilderSearchParams: (_options: QueryObject | URLSearchParams | undefined) => QueryObject;
9
- export declare const getBuilderSearchParamsFromWindow: () => QueryObject;
@@ -1 +0,0 @@
1
- export declare const getClassPropName: () => "className" | "class";
@@ -1,2 +0,0 @@
1
- import type { GetContentOptions } from './types.js';
2
- export declare const generateContentUrl: (options: GetContentOptions) => URL;
@@ -1,18 +0,0 @@
1
- import type { BuilderContent } from '../../types/builder-content.js';
2
- import type { GetContentOptions } from './types.js';
3
- /**
4
- * Returns the first content entry that matches the given options.
5
- */
6
- export declare function fetchOneEntry(options: GetContentOptions): Promise<BuilderContent | null>;
7
- type ContentResults = {
8
- results: BuilderContent[];
9
- };
10
- /**
11
- * @internal Exported only for testing purposes. Do not use.
12
- */
13
- export declare const _processContentResult: (options: GetContentOptions, content: ContentResults, url?: URL) => Promise<BuilderContent[]>;
14
- /**
15
- * Returns a paginated array of entries that match the given options.
16
- */
17
- export declare function fetchEntries(options: GetContentOptions): Promise<BuilderContent[]>;
18
- export {};
@@ -1,139 +0,0 @@
1
- export interface GetContentOptions {
2
- /** The model to get content for (required) */
3
- model: string;
4
- /** Your public API key (required) */
5
- apiKey: string;
6
- /** Number of items to fetch. Default is 1 */
7
- limit?: number;
8
- /**
9
- * Use to specify an offset for pagination of results. The default is 0.
10
- */
11
- offset?: number;
12
- /**
13
- * User attribute key value pairs to be used for targeting
14
- * https://www.builder.io/c/docs/custom-targeting-attributes
15
- *
16
- * e.g.
17
- * ```js
18
- * userAttributes: {
19
- * urlPath: '/',
20
- * returnVisitor: true,
21
- * device: 'mobile'
22
- * }
23
- * ```
24
- */
25
- userAttributes?: (Record<string, any> & {
26
- urlPath?: string;
27
- }) | null;
28
- /**
29
- * Mongodb style query of your data. E.g.:
30
- *
31
- * ```js
32
- * query: {
33
- * id: 'abc123',
34
- * data: {
35
- * myCustomField: { $gt: 20 },
36
- * }
37
- * }
38
- * ```
39
- *
40
- * See more info on MongoDB's query operators and format.
41
- *
42
- * @see {@link https://docs.mongodb.com/manual/reference/operator/query/}
43
- */
44
- query?: Record<string, any>;
45
- /**
46
- * Any other API options.
47
- * Accepts both a key/value object or a `URLSearchParams` instance
48
- * */
49
- options?: Record<string, any> | URLSearchParams;
50
- /**
51
- * If set to `false`, it will not use cookies to target content. Therefore, A/B Testing will be disabled and
52
- * only the default variation will be returned to every user.
53
- *
54
- * Defaults to `true`.
55
- */
56
- canTrack?: boolean;
57
- /**
58
- * Include multilevel references in the response.
59
- */
60
- enrich?: boolean;
61
- /**
62
- * If provided, the API will auto-resolve localized objects to the value of this `locale` key.
63
- */
64
- locale?: string;
65
- /**
66
- * If provided, sets the Builder API version used to fetch content.
67
- *
68
- * Currently, the only available API version is `v3`.
69
- */
70
- apiVersion?: 'v3';
71
- /**
72
- * Only include these fields.
73
- * Note: 'omit' takes precedence over 'fields'
74
- *
75
- * @example
76
- * ```
77
- * fields: 'id, name, data.customField'
78
- * ```
79
- */
80
- fields?: string;
81
- /**
82
- * Omit only these fields.
83
- * Note: 'omit' takes precedence over 'fields'
84
- *
85
- * @example
86
- * ```
87
- * omit: 'data.bigField,data.blocks'
88
- * ```
89
- */
90
- omit?: string;
91
- /**
92
- * Seconds to cache content. Sets the max-age of the cache-control header
93
- * response header.
94
- *
95
- * Use a higher value for better performance, lower for content that will change more frequently
96
- *
97
- * @see {@link https://www.builder.io/c/docs/query-api#__next:~:text=%26includeRefs%3Dtrue-,cacheSeconds,-No}
98
- */
99
- cacheSeconds?: number;
100
- /**
101
- * Builder.io uses stale-while-revalidate caching at the CDN level. This means we always serve
102
- * from edge cache and update caches in the background for maximum possible performance. This also
103
- * means that the more frequently content is requested, the more fresh it will be. The longest we
104
- * will ever hold something in stale cache is 1 day by default, and you can set this to be shorter
105
- * yourself as well. We suggest keeping this high unless you have content that must change rapidly
106
- * and gets very little traffic.
107
- *
108
- * @see {@link https://www.fastly.com/blog/prevent-application-network-instability-serve-stale-content}
109
- */
110
- staleCacheSeconds?: number;
111
- /**
112
- * Property to order results by.
113
- * Use 1 for ascending and -1 for descending.
114
- *
115
- * The key is what you're sorting on, so the following example sorts by createdDate
116
- * and because the value is 1, the sort is ascending.
117
- *
118
- * @example
119
- * ```
120
- * createdDate: 1
121
- * ```
122
- */
123
- sort?: {
124
- [key: string]: 1 | -1;
125
- };
126
- /**
127
- * Include content entries in a response that are still in
128
- * draft mode and un-archived. Default is false.
129
- */
130
- includeUnpublished?: boolean;
131
- /**
132
- * Optional override of the `fetch` function. (Defaults to global `fetch`)
133
- */
134
- fetch?: (input: string, init?: object) => Promise<any>;
135
- /**
136
- * Optional fetch options to be passed as the second argument to the `fetch` function.
137
- */
138
- fetchOptions?: object;
139
- }
@@ -1,2 +0,0 @@
1
- export declare const validEnvList: string[];
2
- export declare const getEnv: () => string;
@@ -1 +0,0 @@
1
- export declare const fetch: typeof globalThis.fetch;
@@ -1,4 +0,0 @@
1
- /// <reference types="node" />
2
- type Global = typeof global | typeof window | typeof self | typeof globalThis;
3
- export declare function getGlobalThis(): Global;
4
- export {};
@@ -1,10 +0,0 @@
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, localState, rootState, rootSetState }: {
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, 'localState' | 'context' | 'rootState' | 'rootSetState'>): BuilderBlock;
@@ -1,12 +0,0 @@
1
- import type { BuilderContextInterface } from '../context/types.js';
2
- import type { BuilderBlock } from '../types/builder-block.js';
3
- export declare const getStyle: ({ block, context }: {
4
- block: BuilderBlock;
5
- context: BuilderContextInterface;
6
- }) => string | Partial<CSSStyleDeclaration>;
7
- /**
8
- * Svelte does not support style attribute as an object so we need to flatten it.
9
- *
10
- * Additionally, Svelte, Vue and other frameworks use kebab-case styles, so we need to convert them.
11
- */
12
- export declare function mapStyleObjToStrIfNeeded(style: Partial<CSSStyleDeclaration>): string | Partial<CSSStyleDeclaration>;
@@ -1 +0,0 @@
1
- export declare const get: (obj: any, path: string, defaultValue?: any) => any;
@@ -1 +0,0 @@
1
- export declare function isBrowser(): boolean;
@@ -1,4 +0,0 @@
1
- /**
2
- * Identifies edge runtimes (edge, workers, serverless, etc.)
3
- */
4
- export declare function isEdgeRuntime(): boolean;
@@ -1,2 +0,0 @@
1
- import { type Search } from '../helpers/search/search.js';
2
- export declare function isEditing(search?: Search): boolean;
@@ -1,3 +0,0 @@
1
- export declare function isFromTrustedHost(trustedHosts: string[] | undefined, e: {
2
- origin: string;
3
- }): boolean;
@@ -1 +0,0 @@
1
- export declare function isIframe(): boolean;
@@ -1,4 +0,0 @@
1
- /**
2
- * Identifies node runtime
3
- */
4
- export declare function isNodeRuntime(): boolean;
@@ -1,2 +0,0 @@
1
- import type { Search } from '../helpers/search/search.js';
2
- export declare function isPreviewing(_search?: Search): boolean;
@@ -1,7 +0,0 @@
1
- export declare const onChangeProxySymbol: unique symbol;
2
- /**
3
- * Deeply observe an object and run a callback when it changes
4
- *
5
- * See ./on-change.test.ts for more info
6
- */
7
- export declare function onChange<T extends object = any>(obj: T, cb: () => void): T;
@@ -1,6 +0,0 @@
1
- import type { ComponentInfo } from '../types/components.js';
2
- export declare const createRegisterComponentMessage: (info: ComponentInfo) => {
3
- type: string;
4
- data: ComponentInfo;
5
- };
6
- export declare const serializeComponentInfo: ({ inputs, ...info }: ComponentInfo) => ComponentInfo;
@@ -1,16 +0,0 @@
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;
@@ -1,4 +0,0 @@
1
- export type Settings = {
2
- customInsertMenu?: boolean;
3
- };
4
- export declare function setEditorSettings(newSettings: Settings): void;
@@ -1,7 +0,0 @@
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;
@@ -1,5 +0,0 @@
1
- export declare const getUserAttributes: () => {
2
- urlPath: string;
3
- host: string;
4
- device: string;
5
- };
@@ -1,51 +0,0 @@
1
- import type { CanTrack } from '../../types/can-track.js';
2
- import type { Dictionary } from '../../types/typescript.js';
3
- interface Event {
4
- /**
5
- * The type of your event.
6
- *
7
- * Examples: `click`, `conversion`, `pageview`, `impression`
8
- */
9
- type: string;
10
- data: {
11
- /**
12
- * (Optional) The content's ID. Useful if this event pertains to a specific piece of content.
13
- */
14
- contentId?: string;
15
- /**
16
- * This is the ID of the space that the content belongs to.
17
- */
18
- ownerId: string;
19
- /**
20
- * (Optional) metadata that you want to provide with your event.
21
- */
22
- metadata?: Dictionary<any>;
23
- /**
24
- * Session ID of the user. This is provided by the SDK by checking session storage.
25
- */
26
- sessionId: string | undefined;
27
- /**
28
- * Visitor ID of the user. This is provided by the SDK by checking cookies.
29
- */
30
- visitorId: string | undefined;
31
- /**
32
- * (Optional) If running an A/B test, the ID of the variation that the user is in.
33
- */
34
- variationId?: string;
35
- [index: string]: any;
36
- };
37
- }
38
- type EventProperties = Pick<Event, 'type'> & Pick<Event['data'], 'contentId' | 'variationId' | 'metadata'> & {
39
- /**
40
- * Your organization's API key.
41
- */
42
- apiKey: Event['data']['ownerId'];
43
- /**
44
- * (Optional) Any additional (non-metadata) properties to add to the event.
45
- */
46
- [index: string]: any;
47
- };
48
- export type EventProps = EventProperties & CanTrack;
49
- export declare function _track(eventProps: EventProps): Promise<void | Response>;
50
- export declare const track: (args: EventProperties) => Promise<void | Response>;
51
- export {};
@@ -1,13 +0,0 @@
1
- type Offset = {
2
- x: number;
3
- y: number;
4
- };
5
- export declare const getInteractionPropertiesForEvent: (event: MouseEvent) => {
6
- targetBuilderElement: string;
7
- metadata: {
8
- targetOffset: Offset;
9
- builderTargetOffset: Offset;
10
- builderElementIndex: any;
11
- };
12
- };
13
- export {};
@@ -1,7 +0,0 @@
1
- import type { BuilderContextInterface } from '../context/types.js';
2
- import type { BuilderBlock } from '../types/builder-block.js';
3
- export declare function transformBlockProperties<T>({ properties }: {
4
- properties: T;
5
- context: BuilderContextInterface;
6
- block: BuilderBlock;
7
- }): T;
@@ -1,2 +0,0 @@
1
- import type { BuilderBlock } from '../types/builder-block.js';
2
- export declare function transformBlock(block: BuilderBlock): BuilderBlock;
@@ -1,7 +0,0 @@
1
- import type { BuilderContextInterface } from '../context/types.js';
2
- import type { BuilderBlock } from '../types/builder-block.js';
3
- export declare function transformStyleProperty({ style }: {
4
- style: Partial<CSSStyleDeclaration>;
5
- context: BuilderContextInterface;
6
- block: BuilderBlock;
7
- }): Partial<CSSStyleDeclaration>;
@@ -1,9 +0,0 @@
1
- import type { BuilderContent } from '../types/builder-content.js';
2
- import type { CanTrack } from '../types/can-track.js';
3
- import type { Nullable } from '../types/typescript.js';
4
- export declare const handleABTestingSync: ({ item, canTrack }: {
5
- item: Nullable<BuilderContent>;
6
- } & CanTrack) => Nullable<BuilderContent>;
7
- export declare const handleABTesting: ({ item, canTrack }: {
8
- item: BuilderContent;
9
- } & CanTrack) => Promise<BuilderContent>;
@@ -1 +0,0 @@
1
- export declare const getDefaultCanTrack: (canTrack?: boolean) => boolean;
@@ -1,19 +0,0 @@
1
- import type { CanTrack } from '../types/can-track.js';
2
- type GetCookieArgs = {
3
- name: string;
4
- } & CanTrack;
5
- export declare const getCookieSync: ({ name, canTrack }: GetCookieArgs) => string | undefined;
6
- /**
7
- * NOTE: This function is `async` because its react-native override is async. Do not remove the `async` keyword!
8
- * The sync version is only safe to use in code blocks that `react-native` is guaranteed not to not run.
9
- */
10
- export declare const getCookie: (args: GetCookieArgs) => Promise<string>;
11
- /**
12
- * NOTE: This function is `async` because its react-native override is async. Do not remove the `async` keyword!
13
- */
14
- export declare const setCookie: ({ name, value, expires, canTrack }: {
15
- name: string;
16
- value: string;
17
- expires?: Date;
18
- } & CanTrack) => Promise<void>;
19
- export {};
@@ -1,7 +0,0 @@
1
- export declare const convertStyleMapToCSSArray: (style: Partial<CSSStyleDeclaration>) => string[];
2
- export declare const convertStyleMapToCSS: (style: Partial<CSSStyleDeclaration>) => string;
3
- export declare const createCssClass: ({ mediaQuery, className, styles }: {
4
- mediaQuery?: string;
5
- className: string;
6
- styles: Partial<CSSStyleDeclaration>;
7
- }) => string;
@@ -1,16 +0,0 @@
1
- /**
2
- * Convert deep object to a flat object with dots
3
- *
4
- * { foo: { bar: 'baz' }} -> { 'foo.bar': 'baz' }
5
- */
6
- export declare function flatten<T extends Record<string, any>>(object: T, path?: string | null, separator?: string): T;
7
- /**
8
- * Flatten a nested MongoDB query object into a flat object with dot-separated keys.
9
- * $ keys are not flattened and are left as is.
10
- *
11
- * { foo: { bar: { $gt: 5 }}} -> { 'foo.bar': { '$gt': 5 }}
12
- * { foo: {'bar.id': { $elemMatch: { 'baz.id': { $in: ['abc', 'bcd'] }}}}} -> { 'foo.bar.id': { '$elemMatch': { 'baz.id': { '$in': ['abc', 'bcd'] }}}}
13
- */
14
- export declare function flattenMongoQuery(obj: any, _current?: any, _res?: any): {
15
- [key: string]: string;
16
- };
@@ -1,9 +0,0 @@
1
- import type { CanTrack } from '../types/can-track.js';
2
- import type { Nullable } from './nullable.js';
3
- export declare const getLocalStorageItem: ({ key, canTrack }: {
4
- key: string;
5
- } & CanTrack) => Nullable<string>;
6
- export declare const setLocalStorageItem: ({ key, canTrack, value }: {
7
- key: string;
8
- value: string;
9
- } & CanTrack) => void;
@@ -1,7 +0,0 @@
1
- export declare const MSG_PREFIX = "[Builder.io]: ";
2
- export declare const logger: {
3
- log: (...message: any[]) => void;
4
- error: (...message: any[]) => void;
5
- warn: (...message: any[]) => void;
6
- debug: (...message: any[]) => void;
7
- };
@@ -1,2 +0,0 @@
1
- export type Nullable<T> = T | null | undefined;
2
- export declare const checkIsDefined: <T>(maybeT: T) => maybeT is T;
@@ -1 +0,0 @@
1
- export declare function omit<T extends object>(obj: T, ...values: (keyof T)[]): Partial<T>;
@@ -1,2 +0,0 @@
1
- import type { BuilderContent } from '../../types/builder-content.js';
2
- export declare function getPreviewContent(_searchParams: URLSearchParams): BuilderContent | undefined;
@@ -1 +0,0 @@
1
- export {};
@@ -1,6 +0,0 @@
1
- /**
2
- * This is an LRU cache to hold preview content on the server-side.
3
- *
4
- * Note: This logic is only used by the NextJS SDK.
5
- */
6
- export declare function init(): void;
@@ -1,7 +0,0 @@
1
- import type { BuilderContent } from '../../types/builder-content.js';
2
- export declare function postPreviewContent({ key, value }: {
3
- key: string;
4
- value: BuilderContent;
5
- }): Promise<{
6
- [x: string]: BuilderContent;
7
- }>;
@@ -1 +0,0 @@
1
- export {};
@@ -1,5 +0,0 @@
1
- export type QueryObject = Record<string, string | string[]>;
2
- export declare const convertSearchParamsToQueryObject: (searchParams: URLSearchParams) => QueryObject;
3
- export declare const normalizeSearchParams: (searchParams: QueryObject | URLSearchParams) => QueryObject;
4
- export type Search = URLSearchParams | string | QueryObject;
5
- export declare const getSearchString: (search: Search) => string;