@builder.io/sdk-svelte 1.0.19 → 1.0.21

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 (694) hide show
  1. package/lib/browser/blocks/BaseText.svelte +11 -11
  2. package/lib/browser/blocks/button/button.svelte +2 -2
  3. package/lib/browser/blocks/button/button.svelte.d.ts +1 -1
  4. package/lib/browser/blocks/button/button.types.d.ts +1 -1
  5. package/lib/browser/blocks/button/component-info.d.ts +1 -1
  6. package/lib/browser/blocks/columns/columns.svelte +15 -15
  7. package/lib/browser/blocks/columns/columns.svelte.d.ts +1 -1
  8. package/lib/browser/blocks/columns/columns.types.d.ts +2 -2
  9. package/lib/browser/blocks/columns/component-info.d.ts +1 -1
  10. package/lib/browser/blocks/custom-code/component-info.d.ts +1 -1
  11. package/lib/browser/blocks/embed/component-info.d.ts +1 -1
  12. package/lib/browser/blocks/embed/embed.svelte +1 -1
  13. package/lib/browser/blocks/form/form/component-info.d.ts +1 -1
  14. package/lib/browser/blocks/form/form/form.svelte +6 -7
  15. package/lib/browser/blocks/form/input/component-info.d.ts +1 -1
  16. package/lib/browser/blocks/form/input/input.svelte +3 -3
  17. package/lib/browser/blocks/form/select/component-info.d.ts +1 -1
  18. package/lib/browser/blocks/form/select/select.svelte +4 -4
  19. package/lib/browser/blocks/form/submit-button/component-info.d.ts +1 -1
  20. package/lib/browser/blocks/form/submit-button/submit-button.svelte +2 -2
  21. package/lib/browser/blocks/fragment/component-info.d.ts +1 -1
  22. package/lib/browser/blocks/fragment/fragment.svelte.d.ts +1 -1
  23. package/lib/browser/blocks/image/component-info.d.ts +1 -1
  24. package/lib/browser/blocks/image/image.svelte +14 -14
  25. package/lib/browser/blocks/image/image.svelte.d.ts +1 -1
  26. package/lib/browser/blocks/image/image.types.d.ts +1 -1
  27. package/lib/browser/blocks/img/component-info.d.ts +1 -1
  28. package/lib/browser/blocks/img/img.svelte +14 -14
  29. package/lib/browser/blocks/raw-text/component-info.d.ts +1 -1
  30. package/lib/browser/blocks/section/component-info.d.ts +1 -1
  31. package/lib/browser/blocks/section/section.svelte +13 -13
  32. package/lib/browser/blocks/section/section.svelte.d.ts +1 -1
  33. package/lib/browser/blocks/slot/component-info.d.ts +1 -1
  34. package/lib/browser/blocks/slot/slot.svelte +12 -13
  35. package/lib/browser/blocks/slot/slot.svelte.d.ts +1 -2
  36. package/lib/browser/blocks/symbol/component-info.d.ts +1 -1
  37. package/lib/browser/blocks/symbol/symbol.helpers.d.ts +2 -2
  38. package/lib/browser/blocks/symbol/symbol.helpers.js +2 -2
  39. package/lib/browser/blocks/symbol/symbol.svelte +6 -6
  40. package/lib/browser/blocks/symbol/symbol.svelte.d.ts +2 -2
  41. package/lib/browser/blocks/symbol/symbol.types.d.ts +2 -2
  42. package/lib/browser/blocks/text/component-info.d.ts +1 -1
  43. package/lib/browser/blocks/text/text.svelte +11 -11
  44. package/lib/browser/blocks/text/text.svelte.d.ts +1 -1
  45. package/lib/browser/blocks/textarea/component-info.d.ts +1 -1
  46. package/lib/browser/blocks/textarea/textarea.svelte +2 -2
  47. package/lib/browser/blocks/video/component-info.d.ts +1 -1
  48. package/lib/browser/blocks/video/video.svelte +19 -19
  49. package/lib/browser/blocks/video/video.svelte.d.ts +1 -1
  50. package/lib/browser/blocks/video/video.types.d.ts +1 -1
  51. package/lib/browser/components/block/animator.d.ts +1 -1
  52. package/lib/browser/components/block/block.helpers.d.ts +4 -4
  53. package/lib/browser/components/block/block.helpers.js +4 -4
  54. package/lib/browser/components/block/block.svelte +4 -4
  55. package/lib/browser/components/block/components/block-styles.svelte +5 -5
  56. package/lib/browser/components/block/components/block-wrapper.svelte +2 -2
  57. package/lib/browser/components/block/components/block-wrapper.svelte.d.ts +2 -2
  58. package/lib/browser/components/block/components/component-ref/component-ref.helpers.d.ts +3 -3
  59. package/lib/browser/components/block/components/component-ref/component-ref.helpers.js +1 -1
  60. package/lib/browser/components/block/components/component-ref/component-ref.svelte +2 -2
  61. package/lib/browser/components/block/components/component-ref/component-ref.svelte.d.ts +1 -1
  62. package/lib/browser/components/block/components/interactive-element.svelte +3 -3
  63. package/lib/browser/components/block/components/repeated-block.svelte +1 -1
  64. package/lib/browser/components/block/components/repeated-block.svelte.d.ts +1 -1
  65. package/lib/browser/components/block/types.d.ts +2 -2
  66. package/lib/browser/components/blocks/blocks-wrapper.svelte +12 -12
  67. package/lib/browser/components/blocks/blocks.svelte +2 -2
  68. package/lib/browser/components/blocks/blocks.svelte.d.ts +1 -1
  69. package/lib/browser/components/blocks/blocks.types.d.ts +1 -1
  70. package/lib/browser/components/content/components/enable-editor.svelte +22 -22
  71. package/lib/browser/components/content/components/enable-editor.svelte.d.ts +7 -7
  72. package/lib/browser/components/content/components/styles.svelte +1 -1
  73. package/lib/browser/components/content/components/styles.svelte.d.ts +1 -1
  74. package/lib/browser/components/content/content.helpers.d.ts +3 -3
  75. package/lib/browser/components/content/content.svelte +7 -7
  76. package/lib/browser/components/content/content.svelte.d.ts +1 -1
  77. package/lib/browser/components/content/content.types.d.ts +2 -2
  78. package/lib/browser/components/content/contentProps.types.d.ts +2 -2
  79. package/lib/browser/components/content-variants/content-variants.svelte +4 -4
  80. package/lib/browser/components/content-variants/content-variants.svelte.d.ts +1 -1
  81. package/lib/browser/components/content-variants/content-variants.types.d.ts +4 -4
  82. package/lib/browser/components/content-variants/helpers.d.ts +5 -5
  83. package/lib/browser/components/content-variants/helpers.js +3 -3
  84. package/lib/browser/components/dynamic-renderer/dynamic-renderer.svelte +3 -3
  85. package/lib/browser/constants/builder-registered-components.d.ts +1 -1
  86. package/lib/browser/constants/builder-registered-components.js +17 -17
  87. package/lib/browser/constants/device-sizes.js +1 -1
  88. package/lib/browser/constants/extra-components.d.ts +1 -1
  89. package/lib/browser/constants/extra-components.js +17 -17
  90. package/lib/browser/constants/sdk-version.d.ts +1 -1
  91. package/lib/browser/constants/sdk-version.js +1 -1
  92. package/lib/browser/constants/target.d.ts +1 -1
  93. package/lib/browser/context/index.d.ts +1 -1
  94. package/lib/browser/context/index.js +1 -1
  95. package/lib/browser/context/types.d.ts +4 -4
  96. package/lib/browser/functions/evaluate/browser-runtime/browser.d.ts +2 -2
  97. package/lib/browser/functions/evaluate/browser-runtime/browser.js +1 -1
  98. package/lib/browser/functions/evaluate/browser-runtime/index.d.ts +1 -1
  99. package/lib/browser/functions/evaluate/browser-runtime/index.js +1 -1
  100. package/lib/browser/functions/evaluate/choose-eval.d.ts +1 -1
  101. package/lib/browser/functions/evaluate/choose-eval.js +3 -3
  102. package/lib/browser/functions/evaluate/edge-runtime/edge-runtime.d.ts +1 -1
  103. package/lib/browser/functions/evaluate/edge-runtime/edge-runtime.js +4 -4
  104. package/lib/browser/functions/evaluate/edge-runtime/index.d.ts +1 -1
  105. package/lib/browser/functions/evaluate/edge-runtime/index.js +1 -1
  106. package/lib/browser/functions/evaluate/evaluate.d.ts +1 -1
  107. package/lib/browser/functions/evaluate/evaluate.js +3 -3
  108. package/lib/browser/functions/evaluate/helpers.d.ts +3 -3
  109. package/lib/browser/functions/evaluate/helpers.js +3 -3
  110. package/lib/browser/functions/evaluate/index.d.ts +1 -1
  111. package/lib/browser/functions/evaluate/index.js +1 -1
  112. package/lib/browser/functions/evaluate/node-runtime/index.d.ts +1 -1
  113. package/lib/browser/functions/evaluate/node-runtime/index.js +1 -1
  114. package/lib/browser/functions/evaluate/node-runtime/init.d.ts +10 -0
  115. package/lib/browser/functions/evaluate/node-runtime/init.js +26 -0
  116. package/lib/browser/functions/evaluate/node-runtime/node-runtime.d.ts +7 -1
  117. package/lib/browser/functions/evaluate/node-runtime/node-runtime.js +36 -10
  118. package/lib/browser/functions/evaluate/placeholder-runtime.d.ts +1 -1
  119. package/lib/browser/functions/evaluate/should-force-browser-runtime-in-node.js +2 -2
  120. package/lib/browser/functions/fetch-builder-props.d.ts +3 -3
  121. package/lib/browser/functions/fetch-builder-props.js +2 -2
  122. package/lib/browser/functions/get-block-actions-handler.d.ts +2 -2
  123. package/lib/browser/functions/get-block-actions-handler.js +1 -1
  124. package/lib/browser/functions/get-block-actions.d.ts +2 -2
  125. package/lib/browser/functions/get-block-actions.js +3 -3
  126. package/lib/browser/functions/get-block-component-options.d.ts +1 -1
  127. package/lib/browser/functions/get-block-properties.d.ts +2 -2
  128. package/lib/browser/functions/get-block-properties.js +3 -3
  129. package/lib/browser/functions/get-builder-search-params/index.d.ts +1 -1
  130. package/lib/browser/functions/get-builder-search-params/index.js +2 -2
  131. package/lib/browser/functions/get-class-prop-name.js +1 -1
  132. package/lib/browser/functions/get-content/generate-content-url.d.ts +1 -1
  133. package/lib/browser/functions/get-content/generate-content-url.js +4 -4
  134. package/lib/browser/functions/get-content/index.d.ts +2 -2
  135. package/lib/browser/functions/get-content/index.js +8 -8
  136. package/lib/browser/functions/get-content/types.d.ts +3 -3
  137. package/lib/browser/functions/get-fetch.js +1 -1
  138. package/lib/browser/functions/get-processed-block.d.ts +2 -2
  139. package/lib/browser/functions/get-processed-block.js +4 -4
  140. package/lib/browser/functions/get-style.d.ts +2 -2
  141. package/lib/browser/functions/get-style.js +3 -3
  142. package/lib/browser/functions/is-edge-runtime.js +2 -2
  143. package/lib/browser/functions/is-editing.d.ts +1 -1
  144. package/lib/browser/functions/is-editing.js +3 -3
  145. package/lib/browser/functions/is-iframe.js +1 -1
  146. package/lib/browser/functions/is-node-runtime.js +1 -1
  147. package/lib/browser/functions/is-previewing.d.ts +1 -1
  148. package/lib/browser/functions/is-previewing.js +3 -3
  149. package/lib/browser/functions/register-component.d.ts +1 -1
  150. package/lib/browser/functions/register-component.js +1 -1
  151. package/lib/browser/functions/register.d.ts +2 -2
  152. package/lib/browser/functions/register.js +1 -1
  153. package/lib/browser/functions/set-editor-settings.js +1 -1
  154. package/lib/browser/functions/track/helpers.js +2 -2
  155. package/lib/browser/functions/track/index.d.ts +2 -2
  156. package/lib/browser/functions/track/index.js +7 -7
  157. package/lib/browser/functions/transform-block-properties.d.ts +2 -2
  158. package/lib/browser/functions/transform-block.d.ts +1 -1
  159. package/lib/browser/functions/transform-style-property.d.ts +2 -2
  160. package/lib/browser/helpers/ab-tests.d.ts +3 -3
  161. package/lib/browser/helpers/ab-tests.js +4 -4
  162. package/lib/browser/helpers/canTrack.js +1 -1
  163. package/lib/browser/helpers/cookie.d.ts +1 -1
  164. package/lib/browser/helpers/cookie.js +4 -4
  165. package/lib/browser/helpers/css.js +2 -2
  166. package/lib/browser/helpers/localStorage.d.ts +2 -2
  167. package/lib/browser/helpers/localStorage.js +1 -1
  168. package/lib/browser/helpers/logger.d.ts +1 -0
  169. package/lib/browser/helpers/logger.js +1 -1
  170. package/lib/browser/helpers/preview-lru-cache/get.d.ts +1 -1
  171. package/lib/browser/helpers/preview-lru-cache/set.d.ts +1 -1
  172. package/lib/browser/helpers/sessionId.d.ts +1 -1
  173. package/lib/browser/helpers/sessionId.js +3 -3
  174. package/lib/browser/helpers/subscribe-to-editor.d.ts +3 -3
  175. package/lib/browser/helpers/subscribe-to-editor.js +4 -4
  176. package/lib/browser/helpers/visitorId.d.ts +1 -1
  177. package/lib/browser/helpers/visitorId.js +3 -3
  178. package/lib/browser/index-helpers/blocks-exports.d.ts +11 -11
  179. package/lib/browser/index-helpers/blocks-exports.js +11 -11
  180. package/lib/browser/index.d.ts +3 -3
  181. package/lib/browser/index.js +3 -3
  182. package/lib/browser/scripts/init-editing.js +5 -5
  183. package/lib/browser/server-index.d.ts +27 -27
  184. package/lib/browser/server-index.js +11 -11
  185. package/lib/browser/types/builder-content.d.ts +3 -3
  186. package/lib/browser/types/builder-props.d.ts +2 -2
  187. package/lib/browser/types/components.d.ts +2 -2
  188. package/lib/browser/types/enforced-partials.d.ts +1 -1
  189. package/lib/edge/blocks/BaseText.svelte +11 -11
  190. package/lib/edge/blocks/button/button.svelte +2 -2
  191. package/lib/edge/blocks/button/button.svelte.d.ts +1 -1
  192. package/lib/edge/blocks/button/button.types.d.ts +1 -1
  193. package/lib/edge/blocks/button/component-info.d.ts +1 -1
  194. package/lib/edge/blocks/columns/columns.svelte +15 -15
  195. package/lib/edge/blocks/columns/columns.svelte.d.ts +1 -1
  196. package/lib/edge/blocks/columns/columns.types.d.ts +2 -2
  197. package/lib/edge/blocks/columns/component-info.d.ts +1 -1
  198. package/lib/edge/blocks/custom-code/component-info.d.ts +1 -1
  199. package/lib/edge/blocks/embed/component-info.d.ts +1 -1
  200. package/lib/edge/blocks/embed/embed.svelte +1 -1
  201. package/lib/edge/blocks/form/form/component-info.d.ts +1 -1
  202. package/lib/edge/blocks/form/form/form.svelte +6 -7
  203. package/lib/edge/blocks/form/input/component-info.d.ts +1 -1
  204. package/lib/edge/blocks/form/input/input.svelte +3 -3
  205. package/lib/edge/blocks/form/select/component-info.d.ts +1 -1
  206. package/lib/edge/blocks/form/select/select.svelte +4 -4
  207. package/lib/edge/blocks/form/submit-button/component-info.d.ts +1 -1
  208. package/lib/edge/blocks/form/submit-button/submit-button.svelte +2 -2
  209. package/lib/edge/blocks/fragment/component-info.d.ts +1 -1
  210. package/lib/edge/blocks/fragment/fragment.svelte.d.ts +1 -1
  211. package/lib/edge/blocks/image/component-info.d.ts +1 -1
  212. package/lib/edge/blocks/image/image.svelte +14 -14
  213. package/lib/edge/blocks/image/image.svelte.d.ts +1 -1
  214. package/lib/edge/blocks/image/image.types.d.ts +1 -1
  215. package/lib/edge/blocks/img/component-info.d.ts +1 -1
  216. package/lib/edge/blocks/img/img.svelte +14 -14
  217. package/lib/edge/blocks/raw-text/component-info.d.ts +1 -1
  218. package/lib/edge/blocks/section/component-info.d.ts +1 -1
  219. package/lib/edge/blocks/section/section.svelte +13 -13
  220. package/lib/edge/blocks/section/section.svelte.d.ts +1 -1
  221. package/lib/edge/blocks/slot/component-info.d.ts +1 -1
  222. package/lib/edge/blocks/slot/slot.svelte +12 -13
  223. package/lib/edge/blocks/slot/slot.svelte.d.ts +1 -2
  224. package/lib/edge/blocks/symbol/component-info.d.ts +1 -1
  225. package/lib/edge/blocks/symbol/symbol.helpers.d.ts +2 -2
  226. package/lib/edge/blocks/symbol/symbol.helpers.js +2 -2
  227. package/lib/edge/blocks/symbol/symbol.svelte +6 -6
  228. package/lib/edge/blocks/symbol/symbol.svelte.d.ts +2 -2
  229. package/lib/edge/blocks/symbol/symbol.types.d.ts +2 -2
  230. package/lib/edge/blocks/text/component-info.d.ts +1 -1
  231. package/lib/edge/blocks/text/text.svelte +11 -11
  232. package/lib/edge/blocks/text/text.svelte.d.ts +1 -1
  233. package/lib/edge/blocks/textarea/component-info.d.ts +1 -1
  234. package/lib/edge/blocks/textarea/textarea.svelte +2 -2
  235. package/lib/edge/blocks/video/component-info.d.ts +1 -1
  236. package/lib/edge/blocks/video/video.svelte +19 -19
  237. package/lib/edge/blocks/video/video.svelte.d.ts +1 -1
  238. package/lib/edge/blocks/video/video.types.d.ts +1 -1
  239. package/lib/edge/components/block/animator.d.ts +1 -1
  240. package/lib/edge/components/block/block.helpers.d.ts +4 -4
  241. package/lib/edge/components/block/block.helpers.js +4 -4
  242. package/lib/edge/components/block/block.svelte +4 -4
  243. package/lib/edge/components/block/components/block-styles.svelte +5 -5
  244. package/lib/edge/components/block/components/block-wrapper.svelte +2 -2
  245. package/lib/edge/components/block/components/block-wrapper.svelte.d.ts +2 -2
  246. package/lib/edge/components/block/components/component-ref/component-ref.helpers.d.ts +3 -3
  247. package/lib/edge/components/block/components/component-ref/component-ref.helpers.js +1 -1
  248. package/lib/edge/components/block/components/component-ref/component-ref.svelte +2 -2
  249. package/lib/edge/components/block/components/component-ref/component-ref.svelte.d.ts +1 -1
  250. package/lib/edge/components/block/components/interactive-element.svelte +3 -3
  251. package/lib/edge/components/block/components/repeated-block.svelte +1 -1
  252. package/lib/edge/components/block/components/repeated-block.svelte.d.ts +1 -1
  253. package/lib/edge/components/block/types.d.ts +2 -2
  254. package/lib/edge/components/blocks/blocks-wrapper.svelte +12 -12
  255. package/lib/edge/components/blocks/blocks.svelte +2 -2
  256. package/lib/edge/components/blocks/blocks.svelte.d.ts +1 -1
  257. package/lib/edge/components/blocks/blocks.types.d.ts +1 -1
  258. package/lib/edge/components/content/components/enable-editor.svelte +22 -22
  259. package/lib/edge/components/content/components/enable-editor.svelte.d.ts +7 -7
  260. package/lib/edge/components/content/components/styles.svelte +1 -1
  261. package/lib/edge/components/content/components/styles.svelte.d.ts +1 -1
  262. package/lib/edge/components/content/content.helpers.d.ts +3 -3
  263. package/lib/edge/components/content/content.svelte +7 -7
  264. package/lib/edge/components/content/content.svelte.d.ts +1 -1
  265. package/lib/edge/components/content/content.types.d.ts +2 -2
  266. package/lib/edge/components/content/contentProps.types.d.ts +2 -2
  267. package/lib/edge/components/content-variants/content-variants.svelte +4 -4
  268. package/lib/edge/components/content-variants/content-variants.svelte.d.ts +1 -1
  269. package/lib/edge/components/content-variants/content-variants.types.d.ts +4 -4
  270. package/lib/edge/components/content-variants/helpers.d.ts +5 -5
  271. package/lib/edge/components/content-variants/helpers.js +3 -3
  272. package/lib/edge/components/dynamic-renderer/dynamic-renderer.svelte +3 -3
  273. package/lib/edge/constants/builder-registered-components.d.ts +1 -1
  274. package/lib/edge/constants/builder-registered-components.js +17 -17
  275. package/lib/edge/constants/device-sizes.js +1 -1
  276. package/lib/edge/constants/extra-components.d.ts +1 -1
  277. package/lib/edge/constants/extra-components.js +17 -17
  278. package/lib/edge/constants/sdk-version.d.ts +1 -1
  279. package/lib/edge/constants/sdk-version.js +1 -1
  280. package/lib/edge/constants/target.d.ts +1 -1
  281. package/lib/edge/context/index.d.ts +1 -1
  282. package/lib/edge/context/index.js +1 -1
  283. package/lib/edge/context/types.d.ts +4 -4
  284. package/lib/edge/functions/evaluate/browser-runtime/browser.d.ts +2 -2
  285. package/lib/edge/functions/evaluate/browser-runtime/browser.js +1 -1
  286. package/lib/edge/functions/evaluate/browser-runtime/index.d.ts +1 -1
  287. package/lib/edge/functions/evaluate/browser-runtime/index.js +1 -1
  288. package/lib/edge/functions/evaluate/choose-eval.d.ts +1 -1
  289. package/lib/edge/functions/evaluate/choose-eval.js +3 -3
  290. package/lib/edge/functions/evaluate/edge-runtime/edge-runtime.d.ts +1 -1
  291. package/lib/edge/functions/evaluate/edge-runtime/edge-runtime.js +4 -4
  292. package/lib/edge/functions/evaluate/edge-runtime/index.d.ts +1 -1
  293. package/lib/edge/functions/evaluate/edge-runtime/index.js +1 -1
  294. package/lib/edge/functions/evaluate/evaluate.d.ts +1 -1
  295. package/lib/edge/functions/evaluate/evaluate.js +3 -3
  296. package/lib/edge/functions/evaluate/helpers.d.ts +3 -3
  297. package/lib/edge/functions/evaluate/helpers.js +3 -3
  298. package/lib/edge/functions/evaluate/index.d.ts +1 -1
  299. package/lib/edge/functions/evaluate/index.js +1 -1
  300. package/lib/edge/functions/evaluate/node-runtime/index.d.ts +1 -1
  301. package/lib/edge/functions/evaluate/node-runtime/index.js +1 -1
  302. package/lib/edge/functions/evaluate/node-runtime/init.d.ts +10 -0
  303. package/lib/edge/functions/evaluate/node-runtime/init.js +26 -0
  304. package/lib/edge/functions/evaluate/node-runtime/node-runtime.d.ts +7 -1
  305. package/lib/edge/functions/evaluate/node-runtime/node-runtime.js +36 -10
  306. package/lib/edge/functions/evaluate/placeholder-runtime.d.ts +1 -1
  307. package/lib/edge/functions/evaluate/should-force-browser-runtime-in-node.js +2 -2
  308. package/lib/edge/functions/fetch-builder-props.d.ts +3 -3
  309. package/lib/edge/functions/fetch-builder-props.js +2 -2
  310. package/lib/edge/functions/get-block-actions-handler.d.ts +2 -2
  311. package/lib/edge/functions/get-block-actions-handler.js +1 -1
  312. package/lib/edge/functions/get-block-actions.d.ts +2 -2
  313. package/lib/edge/functions/get-block-actions.js +3 -3
  314. package/lib/edge/functions/get-block-component-options.d.ts +1 -1
  315. package/lib/edge/functions/get-block-properties.d.ts +2 -2
  316. package/lib/edge/functions/get-block-properties.js +3 -3
  317. package/lib/edge/functions/get-builder-search-params/index.d.ts +1 -1
  318. package/lib/edge/functions/get-builder-search-params/index.js +2 -2
  319. package/lib/edge/functions/get-class-prop-name.js +1 -1
  320. package/lib/edge/functions/get-content/generate-content-url.d.ts +1 -1
  321. package/lib/edge/functions/get-content/generate-content-url.js +4 -4
  322. package/lib/edge/functions/get-content/index.d.ts +2 -2
  323. package/lib/edge/functions/get-content/index.js +8 -8
  324. package/lib/edge/functions/get-content/types.d.ts +3 -3
  325. package/lib/edge/functions/get-fetch.js +1 -1
  326. package/lib/edge/functions/get-processed-block.d.ts +2 -2
  327. package/lib/edge/functions/get-processed-block.js +4 -4
  328. package/lib/edge/functions/get-style.d.ts +2 -2
  329. package/lib/edge/functions/get-style.js +3 -3
  330. package/lib/edge/functions/is-edge-runtime.js +2 -2
  331. package/lib/edge/functions/is-editing.d.ts +1 -1
  332. package/lib/edge/functions/is-editing.js +3 -3
  333. package/lib/edge/functions/is-iframe.js +1 -1
  334. package/lib/edge/functions/is-node-runtime.js +1 -1
  335. package/lib/edge/functions/is-previewing.d.ts +1 -1
  336. package/lib/edge/functions/is-previewing.js +3 -3
  337. package/lib/edge/functions/register-component.d.ts +1 -1
  338. package/lib/edge/functions/register-component.js +1 -1
  339. package/lib/edge/functions/register.d.ts +2 -2
  340. package/lib/edge/functions/register.js +1 -1
  341. package/lib/edge/functions/set-editor-settings.js +1 -1
  342. package/lib/edge/functions/track/helpers.js +2 -2
  343. package/lib/edge/functions/track/index.d.ts +2 -2
  344. package/lib/edge/functions/track/index.js +7 -7
  345. package/lib/edge/functions/transform-block-properties.d.ts +2 -2
  346. package/lib/edge/functions/transform-block.d.ts +1 -1
  347. package/lib/edge/functions/transform-style-property.d.ts +2 -2
  348. package/lib/edge/helpers/ab-tests.d.ts +3 -3
  349. package/lib/edge/helpers/ab-tests.js +4 -4
  350. package/lib/edge/helpers/canTrack.js +1 -1
  351. package/lib/edge/helpers/cookie.d.ts +1 -1
  352. package/lib/edge/helpers/cookie.js +4 -4
  353. package/lib/edge/helpers/css.js +2 -2
  354. package/lib/edge/helpers/localStorage.d.ts +2 -2
  355. package/lib/edge/helpers/localStorage.js +1 -1
  356. package/lib/edge/helpers/logger.d.ts +1 -0
  357. package/lib/edge/helpers/logger.js +1 -1
  358. package/lib/edge/helpers/preview-lru-cache/get.d.ts +1 -1
  359. package/lib/edge/helpers/preview-lru-cache/set.d.ts +1 -1
  360. package/lib/edge/helpers/sessionId.d.ts +1 -1
  361. package/lib/edge/helpers/sessionId.js +3 -3
  362. package/lib/edge/helpers/subscribe-to-editor.d.ts +3 -3
  363. package/lib/edge/helpers/subscribe-to-editor.js +4 -4
  364. package/lib/edge/helpers/visitorId.d.ts +1 -1
  365. package/lib/edge/helpers/visitorId.js +3 -3
  366. package/lib/edge/index-helpers/blocks-exports.d.ts +11 -11
  367. package/lib/edge/index-helpers/blocks-exports.js +11 -11
  368. package/lib/edge/index.d.ts +3 -3
  369. package/lib/edge/index.js +3 -3
  370. package/lib/edge/scripts/init-editing.js +5 -5
  371. package/lib/edge/server-index.d.ts +27 -27
  372. package/lib/edge/server-index.js +11 -11
  373. package/lib/edge/types/builder-content.d.ts +3 -3
  374. package/lib/edge/types/builder-props.d.ts +2 -2
  375. package/lib/edge/types/components.d.ts +2 -2
  376. package/lib/edge/types/enforced-partials.d.ts +1 -1
  377. package/lib/node/blocks/BaseText.svelte +11 -11
  378. package/lib/node/blocks/button/button.svelte +2 -2
  379. package/lib/node/blocks/button/button.svelte.d.ts +1 -1
  380. package/lib/node/blocks/button/button.types.d.ts +1 -1
  381. package/lib/node/blocks/button/component-info.d.ts +1 -1
  382. package/lib/node/blocks/columns/columns.svelte +15 -15
  383. package/lib/node/blocks/columns/columns.svelte.d.ts +1 -1
  384. package/lib/node/blocks/columns/columns.types.d.ts +2 -2
  385. package/lib/node/blocks/columns/component-info.d.ts +1 -1
  386. package/lib/node/blocks/custom-code/component-info.d.ts +1 -1
  387. package/lib/node/blocks/embed/component-info.d.ts +1 -1
  388. package/lib/node/blocks/embed/embed.svelte +1 -1
  389. package/lib/node/blocks/form/form/component-info.d.ts +1 -1
  390. package/lib/node/blocks/form/form/form.svelte +6 -7
  391. package/lib/node/blocks/form/input/component-info.d.ts +1 -1
  392. package/lib/node/blocks/form/input/input.svelte +3 -3
  393. package/lib/node/blocks/form/select/component-info.d.ts +1 -1
  394. package/lib/node/blocks/form/select/select.svelte +4 -4
  395. package/lib/node/blocks/form/submit-button/component-info.d.ts +1 -1
  396. package/lib/node/blocks/form/submit-button/submit-button.svelte +2 -2
  397. package/lib/node/blocks/fragment/component-info.d.ts +1 -1
  398. package/lib/node/blocks/fragment/fragment.svelte.d.ts +1 -1
  399. package/lib/node/blocks/image/component-info.d.ts +1 -1
  400. package/lib/node/blocks/image/image.svelte +14 -14
  401. package/lib/node/blocks/image/image.svelte.d.ts +1 -1
  402. package/lib/node/blocks/image/image.types.d.ts +1 -1
  403. package/lib/node/blocks/img/component-info.d.ts +1 -1
  404. package/lib/node/blocks/img/img.svelte +14 -14
  405. package/lib/node/blocks/raw-text/component-info.d.ts +1 -1
  406. package/lib/node/blocks/section/component-info.d.ts +1 -1
  407. package/lib/node/blocks/section/section.svelte +13 -13
  408. package/lib/node/blocks/section/section.svelte.d.ts +1 -1
  409. package/lib/node/blocks/slot/component-info.d.ts +1 -1
  410. package/lib/node/blocks/slot/slot.svelte +12 -13
  411. package/lib/node/blocks/slot/slot.svelte.d.ts +1 -2
  412. package/lib/node/blocks/symbol/component-info.d.ts +1 -1
  413. package/lib/node/blocks/symbol/symbol.helpers.d.ts +2 -2
  414. package/lib/node/blocks/symbol/symbol.helpers.js +2 -2
  415. package/lib/node/blocks/symbol/symbol.svelte +6 -6
  416. package/lib/node/blocks/symbol/symbol.svelte.d.ts +2 -2
  417. package/lib/node/blocks/symbol/symbol.types.d.ts +2 -2
  418. package/lib/node/blocks/text/component-info.d.ts +1 -1
  419. package/lib/node/blocks/text/text.svelte +11 -11
  420. package/lib/node/blocks/text/text.svelte.d.ts +1 -1
  421. package/lib/node/blocks/textarea/component-info.d.ts +1 -1
  422. package/lib/node/blocks/textarea/textarea.svelte +2 -2
  423. package/lib/node/blocks/video/component-info.d.ts +1 -1
  424. package/lib/node/blocks/video/video.svelte +19 -19
  425. package/lib/node/blocks/video/video.svelte.d.ts +1 -1
  426. package/lib/node/blocks/video/video.types.d.ts +1 -1
  427. package/lib/node/components/block/animator.d.ts +1 -1
  428. package/lib/node/components/block/block.helpers.d.ts +4 -4
  429. package/lib/node/components/block/block.helpers.js +4 -4
  430. package/lib/node/components/block/block.svelte +4 -4
  431. package/lib/node/components/block/components/block-styles.svelte +5 -5
  432. package/lib/node/components/block/components/block-wrapper.svelte +2 -2
  433. package/lib/node/components/block/components/block-wrapper.svelte.d.ts +2 -2
  434. package/lib/node/components/block/components/component-ref/component-ref.helpers.d.ts +3 -3
  435. package/lib/node/components/block/components/component-ref/component-ref.helpers.js +1 -1
  436. package/lib/node/components/block/components/component-ref/component-ref.svelte +2 -2
  437. package/lib/node/components/block/components/component-ref/component-ref.svelte.d.ts +1 -1
  438. package/lib/node/components/block/components/interactive-element.svelte +3 -3
  439. package/lib/node/components/block/components/repeated-block.svelte +1 -1
  440. package/lib/node/components/block/components/repeated-block.svelte.d.ts +1 -1
  441. package/lib/node/components/block/types.d.ts +2 -2
  442. package/lib/node/components/blocks/blocks-wrapper.svelte +12 -12
  443. package/lib/node/components/blocks/blocks.svelte +2 -2
  444. package/lib/node/components/blocks/blocks.svelte.d.ts +1 -1
  445. package/lib/node/components/blocks/blocks.types.d.ts +1 -1
  446. package/lib/node/components/content/components/enable-editor.svelte +22 -22
  447. package/lib/node/components/content/components/enable-editor.svelte.d.ts +7 -7
  448. package/lib/node/components/content/components/styles.svelte +1 -1
  449. package/lib/node/components/content/components/styles.svelte.d.ts +1 -1
  450. package/lib/node/components/content/content.helpers.d.ts +3 -3
  451. package/lib/node/components/content/content.svelte +7 -7
  452. package/lib/node/components/content/content.svelte.d.ts +1 -1
  453. package/lib/node/components/content/content.types.d.ts +2 -2
  454. package/lib/node/components/content/contentProps.types.d.ts +2 -2
  455. package/lib/node/components/content-variants/content-variants.svelte +4 -4
  456. package/lib/node/components/content-variants/content-variants.svelte.d.ts +1 -1
  457. package/lib/node/components/content-variants/content-variants.types.d.ts +4 -4
  458. package/lib/node/components/content-variants/helpers.d.ts +5 -5
  459. package/lib/node/components/content-variants/helpers.js +3 -3
  460. package/lib/node/components/dynamic-renderer/dynamic-renderer.svelte +3 -3
  461. package/lib/node/constants/builder-registered-components.d.ts +1 -1
  462. package/lib/node/constants/builder-registered-components.js +17 -17
  463. package/lib/node/constants/device-sizes.js +1 -1
  464. package/lib/node/constants/extra-components.d.ts +1 -1
  465. package/lib/node/constants/extra-components.js +17 -17
  466. package/lib/node/constants/sdk-version.d.ts +1 -1
  467. package/lib/node/constants/sdk-version.js +1 -1
  468. package/lib/node/constants/target.d.ts +1 -1
  469. package/lib/node/context/index.d.ts +1 -1
  470. package/lib/node/context/index.js +1 -1
  471. package/lib/node/context/types.d.ts +4 -4
  472. package/lib/node/functions/evaluate/browser-runtime/browser.d.ts +2 -2
  473. package/lib/node/functions/evaluate/browser-runtime/browser.js +1 -1
  474. package/lib/node/functions/evaluate/browser-runtime/index.d.ts +1 -1
  475. package/lib/node/functions/evaluate/browser-runtime/index.js +1 -1
  476. package/lib/node/functions/evaluate/choose-eval.d.ts +1 -1
  477. package/lib/node/functions/evaluate/choose-eval.js +3 -3
  478. package/lib/node/functions/evaluate/edge-runtime/edge-runtime.d.ts +1 -1
  479. package/lib/node/functions/evaluate/edge-runtime/edge-runtime.js +4 -4
  480. package/lib/node/functions/evaluate/edge-runtime/index.d.ts +1 -1
  481. package/lib/node/functions/evaluate/edge-runtime/index.js +1 -1
  482. package/lib/node/functions/evaluate/evaluate.d.ts +1 -1
  483. package/lib/node/functions/evaluate/evaluate.js +3 -3
  484. package/lib/node/functions/evaluate/helpers.d.ts +3 -3
  485. package/lib/node/functions/evaluate/helpers.js +3 -3
  486. package/lib/node/functions/evaluate/index.d.ts +1 -1
  487. package/lib/node/functions/evaluate/index.js +1 -1
  488. package/lib/node/functions/evaluate/node-runtime/index.d.ts +1 -1
  489. package/lib/node/functions/evaluate/node-runtime/index.js +1 -1
  490. package/lib/node/functions/evaluate/node-runtime/init.d.ts +10 -0
  491. package/lib/node/functions/evaluate/node-runtime/init.js +26 -0
  492. package/lib/node/functions/evaluate/node-runtime/node-runtime.d.ts +7 -1
  493. package/lib/node/functions/evaluate/node-runtime/node-runtime.js +36 -10
  494. package/lib/node/functions/evaluate/placeholder-runtime.d.ts +1 -1
  495. package/lib/node/functions/evaluate/should-force-browser-runtime-in-node.js +2 -2
  496. package/lib/node/functions/fetch-builder-props.d.ts +3 -3
  497. package/lib/node/functions/fetch-builder-props.js +2 -2
  498. package/lib/node/functions/get-block-actions-handler.d.ts +2 -2
  499. package/lib/node/functions/get-block-actions-handler.js +1 -1
  500. package/lib/node/functions/get-block-actions.d.ts +2 -2
  501. package/lib/node/functions/get-block-actions.js +3 -3
  502. package/lib/node/functions/get-block-component-options.d.ts +1 -1
  503. package/lib/node/functions/get-block-properties.d.ts +2 -2
  504. package/lib/node/functions/get-block-properties.js +3 -3
  505. package/lib/node/functions/get-builder-search-params/index.d.ts +1 -1
  506. package/lib/node/functions/get-builder-search-params/index.js +2 -2
  507. package/lib/node/functions/get-class-prop-name.js +1 -1
  508. package/lib/node/functions/get-content/generate-content-url.d.ts +1 -1
  509. package/lib/node/functions/get-content/generate-content-url.js +4 -4
  510. package/lib/node/functions/get-content/index.d.ts +2 -2
  511. package/lib/node/functions/get-content/index.js +8 -8
  512. package/lib/node/functions/get-content/types.d.ts +3 -3
  513. package/lib/node/functions/get-fetch.js +1 -1
  514. package/lib/node/functions/get-processed-block.d.ts +2 -2
  515. package/lib/node/functions/get-processed-block.js +4 -4
  516. package/lib/node/functions/get-style.d.ts +2 -2
  517. package/lib/node/functions/get-style.js +3 -3
  518. package/lib/node/functions/is-edge-runtime.js +2 -2
  519. package/lib/node/functions/is-editing.d.ts +1 -1
  520. package/lib/node/functions/is-editing.js +3 -3
  521. package/lib/node/functions/is-iframe.js +1 -1
  522. package/lib/node/functions/is-node-runtime.js +1 -1
  523. package/lib/node/functions/is-previewing.d.ts +1 -1
  524. package/lib/node/functions/is-previewing.js +3 -3
  525. package/lib/node/functions/register-component.d.ts +1 -1
  526. package/lib/node/functions/register-component.js +1 -1
  527. package/lib/node/functions/register.d.ts +2 -2
  528. package/lib/node/functions/register.js +1 -1
  529. package/lib/node/functions/set-editor-settings.js +1 -1
  530. package/lib/node/functions/track/helpers.js +2 -2
  531. package/lib/node/functions/track/index.d.ts +2 -2
  532. package/lib/node/functions/track/index.js +7 -7
  533. package/lib/node/functions/transform-block-properties.d.ts +2 -2
  534. package/lib/node/functions/transform-block.d.ts +1 -1
  535. package/lib/node/functions/transform-style-property.d.ts +2 -2
  536. package/lib/node/helpers/ab-tests.d.ts +3 -3
  537. package/lib/node/helpers/ab-tests.js +4 -4
  538. package/lib/node/helpers/canTrack.js +1 -1
  539. package/lib/node/helpers/cookie.d.ts +1 -1
  540. package/lib/node/helpers/cookie.js +4 -4
  541. package/lib/node/helpers/css.js +2 -2
  542. package/lib/node/helpers/localStorage.d.ts +2 -2
  543. package/lib/node/helpers/localStorage.js +1 -1
  544. package/lib/node/helpers/logger.d.ts +1 -0
  545. package/lib/node/helpers/logger.js +1 -1
  546. package/lib/node/helpers/preview-lru-cache/get.d.ts +1 -1
  547. package/lib/node/helpers/preview-lru-cache/set.d.ts +1 -1
  548. package/lib/node/helpers/sessionId.d.ts +1 -1
  549. package/lib/node/helpers/sessionId.js +3 -3
  550. package/lib/node/helpers/subscribe-to-editor.d.ts +3 -3
  551. package/lib/node/helpers/subscribe-to-editor.js +4 -4
  552. package/lib/node/helpers/visitorId.d.ts +1 -1
  553. package/lib/node/helpers/visitorId.js +3 -3
  554. package/lib/node/index-helpers/blocks-exports.d.ts +11 -11
  555. package/lib/node/index-helpers/blocks-exports.js +11 -11
  556. package/lib/node/index.d.ts +3 -3
  557. package/lib/node/index.js +3 -3
  558. package/lib/node/scripts/init-editing.js +5 -5
  559. package/lib/node/server-index.d.ts +27 -27
  560. package/lib/node/server-index.js +11 -11
  561. package/lib/node/types/builder-content.d.ts +3 -3
  562. package/lib/node/types/builder-props.d.ts +2 -2
  563. package/lib/node/types/components.d.ts +2 -2
  564. package/lib/node/types/enforced-partials.d.ts +1 -1
  565. package/package.json +1 -1
  566. package/src/blocks/BaseText.svelte +11 -12
  567. package/src/blocks/button/button.svelte +3 -3
  568. package/src/blocks/button/button.types.ts +1 -1
  569. package/src/blocks/button/component-info.ts +1 -1
  570. package/src/blocks/columns/columns.svelte +18 -18
  571. package/src/blocks/columns/columns.types.ts +2 -2
  572. package/src/blocks/columns/component-info.ts +1 -1
  573. package/src/blocks/custom-code/component-info.ts +1 -1
  574. package/src/blocks/embed/component-info.ts +1 -1
  575. package/src/blocks/embed/embed.svelte +1 -1
  576. package/src/blocks/form/form/component-info.ts +1 -1
  577. package/src/blocks/form/form/form.svelte +9 -10
  578. package/src/blocks/form/input/component-info.ts +1 -1
  579. package/src/blocks/form/input/input.svelte +3 -3
  580. package/src/blocks/form/select/component-info.ts +1 -1
  581. package/src/blocks/form/select/select.svelte +4 -4
  582. package/src/blocks/form/submit-button/component-info.ts +1 -1
  583. package/src/blocks/form/submit-button/submit-button.svelte +2 -2
  584. package/src/blocks/fragment/component-info.ts +1 -1
  585. package/src/blocks/fragment/fragment.svelte +1 -1
  586. package/src/blocks/image/component-info.ts +1 -1
  587. package/src/blocks/image/image.svelte +15 -14
  588. package/src/blocks/image/image.types.ts +1 -1
  589. package/src/blocks/img/component-info.ts +1 -1
  590. package/src/blocks/img/img.svelte +14 -14
  591. package/src/blocks/raw-text/component-info.ts +1 -1
  592. package/src/blocks/section/component-info.ts +1 -1
  593. package/src/blocks/section/section.svelte +14 -13
  594. package/src/blocks/slot/component-info.ts +1 -1
  595. package/src/blocks/slot/slot.svelte +14 -15
  596. package/src/blocks/symbol/component-info.ts +1 -1
  597. package/src/blocks/symbol/symbol.helpers.ts +4 -4
  598. package/src/blocks/symbol/symbol.svelte +9 -9
  599. package/src/blocks/symbol/symbol.types.ts +2 -2
  600. package/src/blocks/text/component-info.ts +1 -1
  601. package/src/blocks/text/text.svelte +12 -12
  602. package/src/blocks/textarea/component-info.ts +1 -1
  603. package/src/blocks/textarea/textarea.svelte +2 -2
  604. package/src/blocks/video/component-info.ts +1 -1
  605. package/src/blocks/video/video.svelte +20 -19
  606. package/src/blocks/video/video.types.ts +1 -1
  607. package/src/components/block/animator.ts +1 -1
  608. package/src/components/block/block.helpers.ts +7 -7
  609. package/src/components/block/block.svelte +7 -7
  610. package/src/components/block/components/block-styles.svelte +7 -7
  611. package/src/components/block/components/block-wrapper.svelte +4 -4
  612. package/src/components/block/components/component-ref/component-ref.helpers.ts +4 -4
  613. package/src/components/block/components/component-ref/component-ref.svelte +3 -3
  614. package/src/components/block/components/interactive-element.svelte +6 -6
  615. package/src/components/block/components/repeated-block.svelte +2 -2
  616. package/src/components/block/types.ts +2 -2
  617. package/src/components/blocks/blocks-wrapper.svelte +13 -12
  618. package/src/components/blocks/blocks.svelte +3 -3
  619. package/src/components/blocks/blocks.types.ts +1 -1
  620. package/src/components/content/components/enable-editor.svelte +27 -28
  621. package/src/components/content/components/styles.svelte +2 -2
  622. package/src/components/content/content.helpers.ts +4 -4
  623. package/src/components/content/content.svelte +11 -11
  624. package/src/components/content/content.types.ts +2 -2
  625. package/src/components/content/contentProps.types.ts +2 -2
  626. package/src/components/content-variants/content-variants.svelte +5 -5
  627. package/src/components/content-variants/content-variants.types.ts +4 -4
  628. package/src/components/content-variants/helpers.ts +6 -6
  629. package/src/components/dynamic-renderer/dynamic-renderer.svelte +3 -3
  630. package/src/constants/builder-registered-components.ts +18 -18
  631. package/src/constants/device-sizes.ts +1 -1
  632. package/src/constants/extra-components.ts +18 -18
  633. package/src/constants/sdk-version.ts +1 -1
  634. package/src/constants/target.ts +1 -1
  635. package/src/context/index.ts +1 -1
  636. package/src/context/types.ts +4 -4
  637. package/src/functions/evaluate/browser-runtime/browser.ts +3 -3
  638. package/src/functions/evaluate/browser-runtime/index.ts +1 -1
  639. package/src/functions/evaluate/choose-eval.ts +4 -4
  640. package/src/functions/evaluate/edge-runtime/edge-runtime.ts +5 -5
  641. package/src/functions/evaluate/edge-runtime/index.ts +1 -1
  642. package/src/functions/evaluate/evaluate.ts +4 -4
  643. package/src/functions/evaluate/helpers.ts +4 -4
  644. package/src/functions/evaluate/index.ts +1 -1
  645. package/src/functions/evaluate/node-runtime/index.ts +1 -1
  646. package/src/functions/evaluate/node-runtime/init.ts +27 -0
  647. package/src/functions/evaluate/node-runtime/node-runtime.ts +35 -11
  648. package/src/functions/evaluate/placeholder-runtime.ts +1 -1
  649. package/src/functions/evaluate/should-force-browser-runtime-in-node.ts +2 -2
  650. package/src/functions/fetch-builder-props.ts +5 -5
  651. package/src/functions/get-block-actions-handler.ts +3 -3
  652. package/src/functions/get-block-actions.ts +5 -5
  653. package/src/functions/get-block-component-options.ts +1 -1
  654. package/src/functions/get-block-properties.ts +5 -5
  655. package/src/functions/get-builder-search-params/index.ts +3 -3
  656. package/src/functions/get-class-prop-name.ts +1 -1
  657. package/src/functions/get-content/generate-content-url.ts +5 -5
  658. package/src/functions/get-content/index.ts +10 -10
  659. package/src/functions/get-content/types.ts +3 -3
  660. package/src/functions/get-fetch.ts +1 -1
  661. package/src/functions/get-processed-block.ts +6 -6
  662. package/src/functions/get-style.ts +5 -5
  663. package/src/functions/is-edge-runtime.ts +2 -2
  664. package/src/functions/is-editing.ts +3 -3
  665. package/src/functions/is-iframe.ts +1 -1
  666. package/src/functions/is-node-runtime.ts +1 -1
  667. package/src/functions/is-previewing.ts +4 -4
  668. package/src/functions/register-component.ts +3 -3
  669. package/src/functions/register.ts +3 -3
  670. package/src/functions/set-editor-settings.ts +1 -1
  671. package/src/functions/track/helpers.ts +3 -3
  672. package/src/functions/track/index.ts +9 -9
  673. package/src/functions/transform-block-properties.ts +2 -2
  674. package/src/functions/transform-block.ts +1 -1
  675. package/src/functions/transform-style-property.ts +2 -2
  676. package/src/helpers/ab-tests.ts +7 -7
  677. package/src/helpers/canTrack.ts +1 -1
  678. package/src/helpers/cookie.ts +5 -5
  679. package/src/helpers/css.ts +2 -2
  680. package/src/helpers/localStorage.ts +3 -3
  681. package/src/helpers/logger.ts +1 -1
  682. package/src/helpers/preview-lru-cache/get.ts +1 -1
  683. package/src/helpers/preview-lru-cache/set.ts +1 -1
  684. package/src/helpers/sessionId.ts +4 -4
  685. package/src/helpers/subscribe-to-editor.ts +7 -7
  686. package/src/helpers/visitorId.ts +4 -4
  687. package/src/index-helpers/blocks-exports.ts +11 -11
  688. package/src/index.ts +3 -3
  689. package/src/scripts/init-editing.ts +5 -5
  690. package/src/server-index.ts +27 -27
  691. package/src/types/builder-content.ts +3 -3
  692. package/src/types/builder-props.ts +2 -2
  693. package/src/types/components.ts +2 -2
  694. package/src/types/enforced-partials.ts +1 -1
@@ -1,13 +1,13 @@
1
- import type { Nullable } from '../../helpers/nullable.js';
2
- import type { BuilderContent } from '../../types/builder-content.js';
1
+ import type { Nullable } from '../../helpers/nullable';
2
+ import type { BuilderContent } from '../../types/builder-content';
3
3
  export declare const getVariants: (content: Nullable<BuilderContent>) => {
4
4
  testVariationId: string | undefined;
5
5
  id: string | undefined;
6
6
  data?: {
7
7
  [key: string]: any;
8
8
  title?: string | undefined;
9
- blocks?: import("../../server-index.js").BuilderBlock[] | undefined;
10
- inputs?: import("../../types/input.js").Input[] | undefined;
9
+ blocks?: import("../..").BuilderBlock[] | undefined;
10
+ inputs?: import("../../types/input").Input[] | undefined;
11
11
  state?: {
12
12
  [key: string]: any;
13
13
  } | undefined;
@@ -21,7 +21,7 @@ export declare const getVariants: (content: Nullable<BuilderContent>) => {
21
21
  testRatio?: number | undefined;
22
22
  meta?: {
23
23
  [key: string]: any;
24
- breakpoints?: import("../../types/typescript.js").Nullable<import("../../types/builder-content.js").Breakpoints>;
24
+ breakpoints?: import("../../types/typescript").Nullable<import("../../types/builder-content").Breakpoints>;
25
25
  } | undefined;
26
26
  }[];
27
27
  export declare const checkShouldRenderVariants: ({ canTrack, content }: {
@@ -1,6 +1,6 @@
1
- import { TARGET } from '../../constants/target.js';
2
- import { isBrowser } from '../../functions/is-browser.js';
3
- import { UPDATE_COOKIES_AND_STYLES_SCRIPT, UPDATE_VARIANT_VISIBILITY_SCRIPT } from './inlined-fns.js';
1
+ import { TARGET } from '../../constants/target';
2
+ import { isBrowser } from '../../functions/is-browser';
3
+ import { UPDATE_COOKIES_AND_STYLES_SCRIPT, UPDATE_VARIANT_VISIBILITY_SCRIPT } from './inlined-fns';
4
4
  /**
5
5
  * We hardcode explicit function names here, because the `.toString()` of a function can change depending on the bundler.
6
6
  * Some bundlers will minify the fn name, etc.
@@ -1,9 +1,9 @@
1
1
  <script context="module"></script>
2
2
 
3
- <script>import { isEmptyElement } from "./dynamic-renderer.helpers.js";
4
- import { setAttrs } from "../../blocks/helpers.js";
5
- export let attributes;
3
+ <script>import { isEmptyElement } from "./dynamic-renderer.helpers";
4
+ import { setAttrs } from "../../blocks/helpers";
6
5
  export let TagName;
6
+ export let attributes;
7
7
  export let actionAttributes;
8
8
  </script>
9
9
 
@@ -1,4 +1,4 @@
1
- import type { RegisteredComponent } from '../context/types.js';
1
+ import type { RegisteredComponent } from '../context/types';
2
2
  /**
3
3
  * Returns a list of all registered components.
4
4
  * NOTE: This needs to be a function to work around ESM circular dependencies.
@@ -1,20 +1,20 @@
1
- import { componentInfo as buttonComponentInfo } from '../blocks/button/component-info.js';
2
- import { default as Button } from '../blocks/button/index.js';
3
- import { componentInfo as columnsComponentInfo } from '../blocks/columns/component-info.js';
4
- import { default as Columns } from '../blocks/columns/index.js';
5
- import { componentInfo as fragmentComponentInfo } from '../blocks/fragment/component-info.js';
6
- import { default as Fragment } from '../blocks/fragment/index.js';
7
- import { componentInfo as imageComponentInfo } from '../blocks/image/component-info.js';
8
- import { default as Image } from '../blocks/image/index.js';
9
- import { componentInfo as sectionComponentInfo } from '../blocks/section/component-info.js';
10
- import { default as Section } from '../blocks/section/index.js';
11
- import { componentInfo as slotComponentInfo } from '../blocks/slot/component-info.js';
12
- import { default as Slot } from '../blocks/slot/index.js';
13
- import { componentInfo as symbolComponentInfo } from '../blocks/symbol/component-info.js';
14
- import { default as Symbol } from '../blocks/symbol/index.js';
15
- import { componentInfo as textComponentInfo } from '../blocks/text/component-info.js';
16
- import { default as Text } from '../blocks/text/index.js';
17
- import { getExtraComponents } from './extra-components.js';
1
+ import { componentInfo as buttonComponentInfo } from '../blocks/button/component-info';
2
+ import { default as Button } from '../blocks/button/index';
3
+ import { componentInfo as columnsComponentInfo } from '../blocks/columns/component-info';
4
+ import { default as Columns } from '../blocks/columns/index';
5
+ import { componentInfo as fragmentComponentInfo } from '../blocks/fragment/component-info';
6
+ import { default as Fragment } from '../blocks/fragment/index';
7
+ import { componentInfo as imageComponentInfo } from '../blocks/image/component-info';
8
+ import { default as Image } from '../blocks/image/index';
9
+ import { componentInfo as sectionComponentInfo } from '../blocks/section/component-info';
10
+ import { default as Section } from '../blocks/section/index';
11
+ import { componentInfo as slotComponentInfo } from '../blocks/slot/component-info';
12
+ import { default as Slot } from '../blocks/slot/index';
13
+ import { componentInfo as symbolComponentInfo } from '../blocks/symbol/component-info';
14
+ import { default as Symbol } from '../blocks/symbol/index';
15
+ import { componentInfo as textComponentInfo } from '../blocks/text/component-info';
16
+ import { default as Text } from '../blocks/text/index';
17
+ import { getExtraComponents } from './extra-components';
18
18
  /**
19
19
  * Returns a list of all registered components.
20
20
  * NOTE: This needs to be a function to work around ESM circular dependencies.
@@ -1,4 +1,4 @@
1
- import { fastClone } from '../functions/fast-clone.js';
1
+ import { fastClone } from '../functions/fast-clone';
2
2
  const SIZES = {
3
3
  small: {
4
4
  min: 320,
@@ -3,5 +3,5 @@
3
3
  * Having them in a separate file allows us to override it to be empty in the
4
4
  * React Native SDK.
5
5
  */
6
- import type { RegisteredComponent } from '../context/types.js';
6
+ import type { RegisteredComponent } from '../context/types';
7
7
  export declare const getExtraComponents: () => RegisteredComponent[];
@@ -3,23 +3,23 @@
3
3
  * Having them in a separate file allows us to override it to be empty in the
4
4
  * React Native SDK.
5
5
  */
6
- import { componentInfo as customCodeInfo } from '../blocks/custom-code/component-info.js';
7
- import { default as customCode } from '../blocks/custom-code/index.js';
8
- import { componentInfo as embedComponentInfo } from '../blocks/embed/component-info.js';
9
- import { default as embed } from '../blocks/embed/index.js';
10
- import { componentInfo as formComponentInfo } from '../blocks/form/form/component-info.js';
11
- import { default as Form } from '../blocks/form/form/index.js';
12
- import { componentInfo as formInputComponentInfo } from '../blocks/form/input/component-info.js';
13
- import { default as FormInput } from '../blocks/form/input/index.js';
14
- import { componentInfo as formSelectComponentInfo } from '../blocks/form/select/component-info.js';
15
- import { default as FormSelect } from '../blocks/form/select/index.js';
16
- import { componentInfo as formSubmitButtonComponentInfo } from '../blocks/form/submit-button/component-info.js';
17
- import { default as FormSubmitButton } from '../blocks/form/submit-button/index.js';
18
- import { componentInfo as imgComponentInfo } from '../blocks/img/component-info.js';
19
- import { default as Img } from '../blocks/img/index.js';
20
- import { componentInfo as videoComponentInfo } from '../blocks/video/component-info.js';
21
- import { default as Video } from '../blocks/video/index.js';
22
- import { TARGET } from './target.js';
6
+ import { componentInfo as customCodeInfo } from '../blocks/custom-code/component-info';
7
+ import { default as customCode } from '../blocks/custom-code/index';
8
+ import { componentInfo as embedComponentInfo } from '../blocks/embed/component-info';
9
+ import { default as embed } from '../blocks/embed/index';
10
+ import { componentInfo as formComponentInfo } from '../blocks/form/form/component-info';
11
+ import { default as Form } from '../blocks/form/form/index';
12
+ import { componentInfo as formInputComponentInfo } from '../blocks/form/input/component-info';
13
+ import { default as FormInput } from '../blocks/form/input/index';
14
+ import { componentInfo as formSelectComponentInfo } from '../blocks/form/select/component-info';
15
+ import { default as FormSelect } from '../blocks/form/select/index';
16
+ import { componentInfo as formSubmitButtonComponentInfo } from '../blocks/form/submit-button/component-info';
17
+ import { default as FormSubmitButton } from '../blocks/form/submit-button/index';
18
+ import { componentInfo as imgComponentInfo } from '../blocks/img/component-info';
19
+ import { default as Img } from '../blocks/img/index';
20
+ import { componentInfo as videoComponentInfo } from '../blocks/video/component-info';
21
+ import { default as Video } from '../blocks/video/index';
22
+ import { TARGET } from './target';
23
23
  export const getExtraComponents = () => [{
24
24
  component: customCode,
25
25
  ...customCodeInfo
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.0.19";
1
+ export declare const SDK_VERSION = "1.0.21";
@@ -1 +1 @@
1
- export const SDK_VERSION = "1.0.19";
1
+ export const SDK_VERSION = "1.0.21";
@@ -1,2 +1,2 @@
1
1
  /** This file should be overriden for each framework. Ideally this would be implemented in Mitosis. */
2
- export declare const TARGET: import("../types/targets.js").Target;
2
+ export declare const TARGET: import("../types/targets").Target;
@@ -1 +1 @@
1
- export { default as BuilderContext } from './builder.context.js';
1
+ export { default as BuilderContext } from './builder.context';
@@ -1 +1 @@
1
- export { default as BuilderContext } from './builder.context.js';
1
+ export { default as BuilderContext } from './builder.context';
@@ -1,8 +1,8 @@
1
1
  import type { BlocksWrapperProps } from '../components/blocks/blocks-wrapper.svelte';
2
- import type { ApiVersion } from '../types/api-version.js';
3
- import type { BuilderContent } from '../types/builder-content.js';
4
- import type { ComponentInfo } from '../types/components.js';
5
- import type { Dictionary, Nullable } from '../types/typescript.js';
2
+ import type { ApiVersion } from '../types/api-version';
3
+ import type { BuilderContent } from '../types/builder-content';
4
+ import type { ComponentInfo } from '../types/components';
5
+ import type { Dictionary, Nullable } from '../types/typescript';
6
6
  export type RegisteredComponent = ComponentInfo & {
7
7
  component: any;
8
8
  };
@@ -1,5 +1,5 @@
1
- import type { BuilderRenderState } from '../../../context/types.js';
2
- import type { ExecutorArgs } from '../helpers.js';
1
+ import type { BuilderRenderState } from '../../../context/types';
2
+ import type { ExecutorArgs } from '../helpers';
3
3
  export declare const runInBrowser: ({ code, builder, context, event, localState, rootSetState, rootState }: ExecutorArgs) => any;
4
4
  export declare function flattenState({ rootState, localState, rootSetState }: {
5
5
  rootState: Record<string | symbol, any>;
@@ -1,4 +1,4 @@
1
- import { getFunctionArguments } from '../helpers.js';
1
+ import { getFunctionArguments } from '../helpers';
2
2
  export const runInBrowser = ({ code, builder, context, event, localState, rootSetState, rootState }) => {
3
3
  const functionArgs = getFunctionArguments({
4
4
  builder,
@@ -1 +1 @@
1
- export { runInBrowser as evaluator } from './browser.js';
1
+ export { runInBrowser as evaluator } from './browser';
@@ -1 +1 @@
1
- export { runInBrowser as evaluator } from './browser.js';
1
+ export { runInBrowser as evaluator } from './browser';
@@ -1,4 +1,4 @@
1
- import type { ExecutorArgs } from './helpers.js';
1
+ import type { ExecutorArgs } from './helpers';
2
2
  /**
3
3
  * Even though we have separate runtimes for browser/node/edge, sometimes frameworks will
4
4
  * end up sending the server runtime code to the browser (most notably in dev mode).
@@ -1,5 +1,5 @@
1
- import { isBrowser } from '../is-browser.js';
2
- import { runInBrowser } from './browser-runtime/browser.js';
1
+ import { isBrowser } from '../is-browser';
2
+ import { runInBrowser } from './browser-runtime/browser';
3
3
  /**
4
4
  * THIS IS A MAGICAL IMPORT. It is aliased by the build process of every SDK configuration, so that
5
5
  * it points to the correct runtime for that configuration, which are expected to live exactly at:
@@ -12,7 +12,7 @@ import { runInBrowser } from './browser-runtime/browser.js';
12
12
  * types can be resolved correctly.
13
13
  */
14
14
  import { evaluator } from '../../../browser/functions/evaluate/browser-runtime/index.js';
15
- import { shouldForceBrowserRuntimeInNode } from './should-force-browser-runtime-in-node.js';
15
+ import { shouldForceBrowserRuntimeInNode } from './should-force-browser-runtime-in-node';
16
16
  /**
17
17
  * Even though we have separate runtimes for browser/node/edge, sometimes frameworks will
18
18
  * end up sending the server runtime code to the browser (most notably in dev mode).
@@ -1,2 +1,2 @@
1
- import type { ExecutorArgs } from '../helpers.js';
1
+ import type { ExecutorArgs } from '../helpers';
2
2
  export declare const runInEdge: ({ builder, context, event, rootState, localState, rootSetState, code }: ExecutorArgs) => any;
@@ -1,7 +1,7 @@
1
- import { logger } from '../../../helpers/logger.js';
2
- import { set } from '../../set.js';
3
- import { getFunctionArguments } from '../helpers.js';
4
- import Interpreter from './acorn-interpreter.js';
1
+ import { logger } from '../../../helpers/logger';
2
+ import { set } from '../../set';
3
+ import { getFunctionArguments } from '../helpers';
4
+ import Interpreter from './acorn-interpreter';
5
5
  const processCode = (code) => {
6
6
  return code.split('\n').map(line => {
7
7
  const trimmed = line.trim();
@@ -1 +1 @@
1
- export { runInEdge as evaluator } from './edge-runtime.js';
1
+ export { runInEdge as evaluator } from './edge-runtime';
@@ -1 +1 @@
1
- export { runInEdge as evaluator } from './edge-runtime.js';
1
+ export { runInEdge as evaluator } from './edge-runtime';
@@ -1,4 +1,4 @@
1
- import type { EvaluatorArgs } from './helpers.js';
1
+ import type { EvaluatorArgs } from './helpers';
2
2
  type EvalValue = unknown;
3
3
  export declare function evaluate({ code, context, localState, rootState, rootSetState, event, isExpression, enableCache }: EvaluatorArgs): EvalValue;
4
4
  export {};
@@ -1,6 +1,6 @@
1
- import { logger } from '../../helpers/logger.js';
2
- import { chooseBrowserOrServerEval } from './choose-eval.js';
3
- import { getBuilderGlobals, parseCode } from './helpers.js';
1
+ import { logger } from '../../helpers/logger';
2
+ import { chooseBrowserOrServerEval } from './choose-eval';
3
+ import { getBuilderGlobals, parseCode } from './helpers';
4
4
  class EvalCache {
5
5
  static cacheLimit = 20;
6
6
  static cache = new Map();
@@ -1,5 +1,5 @@
1
- import type { BuilderContextInterface, BuilderRenderState } from '../../context/types.js';
2
- import { getUserAttributes } from '../track/helpers.js';
1
+ import type { BuilderContextInterface, BuilderRenderState } from '../../context/types';
2
+ import { getUserAttributes } from '../track/helpers';
3
3
  export type EvaluatorArgs = Omit<ExecutorArgs, 'builder' | 'event'> & {
4
4
  event?: Event;
5
5
  isExpression?: boolean;
@@ -20,6 +20,6 @@ export type Executor = (args: ExecutorArgs) => any;
20
20
  export type FunctionArguments = ReturnType<typeof getFunctionArguments>;
21
21
  export declare const getFunctionArguments: ({ builder, context, event, state }: Pick<ExecutorArgs, "context" | "builder" | "event"> & {
22
22
  state: BuilderRenderState;
23
- }) => [string, Event | BuilderRenderState | import("../../context/types.js").BuilderRenderContext | BuilderGlobals | undefined][];
23
+ }) => [string, Event | BuilderRenderState | import("../../context/types").BuilderRenderContext | BuilderGlobals | undefined][];
24
24
  export declare const getBuilderGlobals: () => BuilderGlobals;
25
25
  export declare const parseCode: (code: string, { isExpression }: Pick<EvaluatorArgs, 'isExpression'>) => string;
@@ -1,6 +1,6 @@
1
- import { isBrowser } from '../is-browser.js';
2
- import { isEditing } from '../is-editing.js';
3
- import { getUserAttributes } from '../track/helpers.js';
1
+ import { isBrowser } from '../is-browser';
2
+ import { isEditing } from '../is-editing';
3
+ import { getUserAttributes } from '../track/helpers';
4
4
  export const getFunctionArguments = ({ builder, context, event, state }) => {
5
5
  return Object.entries({
6
6
  state,
@@ -1 +1 @@
1
- export { evaluate } from './evaluate.js';
1
+ export { evaluate } from './evaluate';
@@ -1 +1 @@
1
- export { evaluate } from './evaluate.js';
1
+ export { evaluate } from './evaluate';
@@ -1 +1 @@
1
- export { runInNode as evaluator } from './node-runtime.js';
1
+ export { runInNode as evaluator } from './node-runtime';
@@ -1 +1 @@
1
- export { runInNode as evaluator } from './node-runtime.js';
1
+ export { runInNode as evaluator } from './node-runtime';
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This function initializes the SDK on a Node server. It handles importing the
3
+ * `isolated-vm` package which is needed for dynamic bindings.
4
+ *
5
+ * NOTE: this function cannot be called on the client. You must call this function
6
+ * from a server-only location, such as:
7
+ * - The NextJS Pages router's `_document.tsx`
8
+ * - Your Remix route's `loader`
9
+ */
10
+ export declare const initializeNodeRuntime: () => void;
@@ -0,0 +1,26 @@
1
+ /**
2
+ * This file:
3
+ * - imports `isolated-vm`, which can only be made from a file that never runs
4
+ * on the client (e.g. Next's `_document.tsx`)
5
+ * - stores the ivm instance in a global variable using `setIvm`
6
+ *
7
+ * This is needed for when bundlers/meta-frameworks are not able to reliably
8
+ * import the `isolated-vm` package using our `safeDynamicRequire` trick.
9
+ *
10
+ * The `isolated-vm` import must exist in this separate file, or it will end up
11
+ * in the SDK's main entry point, causing errors for users.
12
+ */
13
+ import ivm from 'isolated-vm';
14
+ import { setIvm } from './node-runtime';
15
+ /**
16
+ * This function initializes the SDK on a Node server. It handles importing the
17
+ * `isolated-vm` package which is needed for dynamic bindings.
18
+ *
19
+ * NOTE: this function cannot be called on the client. You must call this function
20
+ * from a server-only location, such as:
21
+ * - The NextJS Pages router's `_document.tsx`
22
+ * - Your Remix route's `loader`
23
+ */
24
+ export const initializeNodeRuntime = () => {
25
+ setIvm(ivm);
26
+ };
@@ -1,2 +1,8 @@
1
- import type { ExecutorArgs } from '../helpers.js';
1
+ import type { ExecutorArgs } from '../helpers';
2
+ /**
3
+ * Set the `isolated-vm` instance to be used by the node runtime.
4
+ * This is useful for environments that are not able to rely on our
5
+ * `safeDynamicRequire` trick to import the `isolated-vm` package.
6
+ */
7
+ export declare const setIvm: (ivm: typeof import('isolated-vm')) => void;
2
8
  export declare const runInNode: ({ code, builder, context, event, localState, rootSetState, rootState }: ExecutorArgs) => any;
@@ -1,7 +1,8 @@
1
- import { fastClone } from '../../fast-clone.js';
2
- import { set } from '../../set.js';
3
- import { getFunctionArguments } from '../helpers.js';
4
- import { safeDynamicRequire } from './safeDynamicRequire.js';
1
+ import { MSG_PREFIX, logger } from '../../../helpers/logger';
2
+ import { fastClone } from '../../fast-clone';
3
+ import { set } from '../../set';
4
+ import { getFunctionArguments } from '../helpers';
5
+ import { safeDynamicRequire } from './safeDynamicRequire';
5
6
  const getSyncValName = (key) => `bldr_${key}_sync`;
6
7
  const BUILDER_SET_STATE_NAME = 'BUILDER_SET_STATE';
7
8
  const INJECTED_IVM_GLOBAL = 'BUILDER_IVM';
@@ -53,19 +54,44 @@ if (typeof output === 'object' && output !== null) {
53
54
  output;
54
55
  `;
55
56
  };
57
+ let IVM_INSTANCE = null;
58
+ /**
59
+ * Set the `isolated-vm` instance to be used by the node runtime.
60
+ * This is useful for environments that are not able to rely on our
61
+ * `safeDynamicRequire` trick to import the `isolated-vm` package.
62
+ */
63
+ export const setIvm = (ivm) => {
64
+ IVM_INSTANCE = ivm;
65
+ };
66
+ const getIvm = () => {
67
+ try {
68
+ if (IVM_INSTANCE)
69
+ return IVM_INSTANCE;
70
+ const dynRequiredIvm = safeDynamicRequire('isolated-vm');
71
+ if (dynRequiredIvm)
72
+ return dynRequiredIvm;
73
+ }
74
+ catch (error) {
75
+ logger.error('isolated-vm import error.', error);
76
+ }
77
+ throw new Error(`${MSG_PREFIX}could not import \`isolated-vm\` module for safe script execution on Node server.
78
+
79
+ In certain Node environments, the SDK requires additional initialization steps. This can be achieved by
80
+ importing and calling \`initializeNodeRuntime()\` from "@builder.io/sdk-react/node/init". This must be done in
81
+ a server-only execution path within your application.
82
+
83
+ Please see the documentation for more information: https://builder.io/c/docs/integration-tips#enabling-data-bindings-in-node-environments
84
+ `);
85
+ };
56
86
  const getIsolateContext = () => {
57
- // if (Builder.serverContext) {
58
- // return Builder.serverContext;
59
- // }
60
- // Builder.setServerContext(isolate.createContextSync());
61
- const ivm = safeDynamicRequire('isolated-vm');
87
+ const ivm = getIvm();
62
88
  const isolate = new ivm.Isolate({
63
89
  memoryLimit: 128
64
90
  });
65
91
  return isolate.createContextSync();
66
92
  };
67
93
  export const runInNode = ({ code, builder, context, event, localState, rootSetState, rootState }) => {
68
- const ivm = safeDynamicRequire('isolated-vm');
94
+ const ivm = getIvm();
69
95
  const state = fastClone({
70
96
  ...rootState,
71
97
  ...localState
@@ -1,2 +1,2 @@
1
- import type { ExecutorArgs } from './helpers.js';
1
+ import type { ExecutorArgs } from './helpers';
2
2
  export declare const evaluator: (_args: ExecutorArgs) => never;
@@ -1,5 +1,5 @@
1
- import { logger } from '../../helpers/logger.js';
2
- import { isNodeRuntime } from '../is-node-runtime.js';
1
+ import { logger } from '../../helpers/logger';
2
+ import { isNodeRuntime } from '../is-node-runtime';
3
3
  export const shouldForceBrowserRuntimeInNode = () => {
4
4
  if (!isNodeRuntime())
5
5
  return false;
@@ -1,6 +1,6 @@
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';
1
+ import type { ContentVariantsPrps } from '../components/content-variants/content-variants.types';
2
+ import type { Dictionary } from '../types/typescript';
3
+ import type { GetContentOptions } from './get-content/types';
4
4
  type GetBuilderPropsOptions = (Omit<GetContentOptions, 'model'> & {
5
5
  model?: string;
6
6
  }) & ({
@@ -1,5 +1,5 @@
1
- import { getBuilderSearchParams } from './get-builder-search-params/index.js';
2
- import { fetchOneEntry } from './get-content/index.js';
1
+ import { getBuilderSearchParams } from './get-builder-search-params/index';
2
+ import { fetchOneEntry } from './get-content/index';
3
3
  /**
4
4
  * Given an `apiKey` and `url` (or `path` + `searchParams`), provides all props that `Content` needs to render Builder Content.
5
5
  *
@@ -1,5 +1,5 @@
1
- import type { BuilderContextInterface } from '../context/types.js';
2
- import type { BuilderBlock } from '../types/builder-block.js';
1
+ import type { BuilderContextInterface } from '../context/types';
2
+ import type { BuilderBlock } from '../types/builder-block';
3
3
  type Options = {
4
4
  block: BuilderBlock;
5
5
  } & Pick<BuilderContextInterface, 'localState' | 'context' | 'rootState' | 'rootSetState'>;
@@ -1,4 +1,4 @@
1
- import { evaluate } from './evaluate/index.js';
1
+ import { evaluate } from './evaluate/index';
2
2
  export const createEventHandler = (value, options) => event => evaluate({
3
3
  code: value,
4
4
  context: options.context,
@@ -1,5 +1,5 @@
1
- import type { BuilderContextInterface } from '../context/types.js';
2
- import type { BuilderBlock } from '../types/builder-block.js';
1
+ import type { BuilderContextInterface } from '../context/types';
2
+ import type { BuilderBlock } from '../types/builder-block';
3
3
  type Actions = {
4
4
  [index: string]: (event: Event) => any;
5
5
  };
@@ -1,6 +1,6 @@
1
- import { TARGET } from '../constants/target.js';
2
- import { getEventHandlerName } from './event-handler-name.js';
3
- import { createEventHandler } from './get-block-actions-handler.js';
1
+ import { TARGET } from '../constants/target';
2
+ import { getEventHandlerName } from './event-handler-name';
3
+ import { createEventHandler } from './get-block-actions-handler';
4
4
  export function getBlockActions(options) {
5
5
  const obj = {};
6
6
  const optionActions = options.block.actions ?? {};
@@ -1,2 +1,2 @@
1
- import type { BuilderBlock } from '../types/builder-block.js';
1
+ import type { BuilderBlock } from '../types/builder-block';
2
2
  export declare function getBlockComponentOptions(block: BuilderBlock): any;
@@ -1,5 +1,5 @@
1
- import type { BuilderContextInterface } from '../context/types.js';
2
- import type { BuilderBlock } from '../types/builder-block.js';
1
+ import type { BuilderContextInterface } from '../context/types';
2
+ import type { BuilderBlock } from '../types/builder-block';
3
3
  export declare function getBlockProperties({ block, context }: {
4
4
  block: BuilderBlock;
5
5
  context: BuilderContextInterface;
@@ -1,6 +1,6 @@
1
- import { getClassPropName } from './get-class-prop-name.js';
2
- import { getStyle } from './get-style.js';
3
- import { transformBlockProperties } from './transform-block-properties.js';
1
+ import { getClassPropName } from './get-class-prop-name';
2
+ import { getStyle } from './get-style';
3
+ import { transformBlockProperties } from './transform-block-properties';
4
4
  const extractRelevantRootBlockProperties = (block) => {
5
5
  // currently we are only spreading the `href` property
6
6
  // TO-DO: potentially spread all properties from block, but only if they are not already defined by BuilderBlock
@@ -1,4 +1,4 @@
1
- import type { QueryObject } from '../../helpers/search/search.js';
1
+ import type { QueryObject } from '../../helpers/search/search';
2
2
  /**
3
3
  * Receives a `URLSearchParams` object or a regular query object, and returns the subset of query params that are
4
4
  * relevant to the Builder SDK.
@@ -1,5 +1,5 @@
1
- import { normalizeSearchParams } from '../../helpers/search/search.js';
2
- import { isBrowser } from '../is-browser.js';
1
+ import { normalizeSearchParams } from '../../helpers/search/search';
2
+ import { isBrowser } from '../is-browser';
3
3
  const BUILDER_SEARCHPARAMS_PREFIX = 'builder.';
4
4
  const BUILDER_OPTIONS_PREFIX = 'options.';
5
5
  /**
@@ -1,4 +1,4 @@
1
- import { TARGET } from '../constants/target.js';
1
+ import { TARGET } from '../constants/target';
2
2
  export const getClassPropName = () => {
3
3
  switch (TARGET) {
4
4
  case 'react':
@@ -1,2 +1,2 @@
1
- import type { GetContentOptions } from './types.js';
1
+ import type { GetContentOptions } from './types';
2
2
  export declare const generateContentUrl: (options: GetContentOptions) => URL;
@@ -1,7 +1,7 @@
1
- import { flatten } from '../../helpers/flatten.js';
2
- import { normalizeSearchParams } from '../../helpers/search/search.js';
3
- import { DEFAULT_API_VERSION } from '../../types/api-version.js';
4
- import { getBuilderSearchParamsFromWindow } from '../get-builder-search-params/index.js';
1
+ import { flatten } from '../../helpers/flatten';
2
+ import { normalizeSearchParams } from '../../helpers/search/search';
3
+ import { DEFAULT_API_VERSION } from '../../types/api-version';
4
+ import { getBuilderSearchParamsFromWindow } from '../get-builder-search-params/index';
5
5
  const isPositiveNumber = (thing) => typeof thing === 'number' && !isNaN(thing) && thing >= 0;
6
6
  export const generateContentUrl = (options) => {
7
7
  const { limit = 30, userAttributes, query, model, apiKey, enrich, locale, apiVersion = DEFAULT_API_VERSION, fields, omit, offset, cacheSeconds, staleCacheSeconds, sort, includeUnpublished } = options;
@@ -1,5 +1,5 @@
1
- import type { BuilderContent } from '../../types/builder-content.js';
2
- import type { GetContentOptions } from './types.js';
1
+ import type { BuilderContent } from '../../types/builder-content';
2
+ import type { GetContentOptions } from './types';
3
3
  /**
4
4
  * Returns the first content entry that matches the given options.
5
5
  */