@builder.io/sdk-vue 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 (367) hide show
  1. package/lib/browser/{block-styles-qEzB1AE4.js → block-styles-2lYNYVH3.js} +1 -1
  2. package/lib/browser/{block-styles-h0NwSSoD.cjs → block-styles-y6pFfJz3.cjs} +1 -1
  3. package/lib/browser/{block-wrapper-74EOWuCY.js → block-wrapper-a1zxMruE.js} +3 -3
  4. package/lib/browser/{block-wrapper-cY3VTwbu.cjs → block-wrapper-mlbE709c.cjs} +1 -1
  5. package/lib/browser/blocks/button/button.types.d.ts +1 -1
  6. package/lib/browser/blocks/button/button.vue.d.ts +1 -1
  7. package/lib/browser/blocks/button/component-info.d.ts +1 -1
  8. package/lib/browser/blocks/columns/columns.types.d.ts +2 -2
  9. package/lib/browser/blocks/columns/columns.vue.d.ts +3 -3
  10. package/lib/browser/blocks/columns/component-info.d.ts +1 -1
  11. package/lib/browser/blocks/custom-code/component-info.d.ts +1 -1
  12. package/lib/browser/blocks/embed/component-info.d.ts +1 -1
  13. package/lib/browser/blocks/form/form/component-info.d.ts +1 -1
  14. package/lib/browser/blocks/form/form/form.vue.d.ts +4 -7
  15. package/lib/browser/blocks/form/input/component-info.d.ts +1 -1
  16. package/lib/browser/blocks/form/input/input.vue.d.ts +2 -2
  17. package/lib/browser/blocks/form/select/component-info.d.ts +1 -1
  18. package/lib/browser/blocks/form/select/select.vue.d.ts +2 -2
  19. package/lib/browser/blocks/form/submit-button/component-info.d.ts +1 -1
  20. package/lib/browser/blocks/form/submit-button/submit-button.vue.d.ts +1 -1
  21. package/lib/browser/blocks/fragment/component-info.d.ts +1 -1
  22. package/lib/browser/blocks/image/component-info.d.ts +1 -1
  23. package/lib/browser/blocks/image/image.types.d.ts +1 -1
  24. package/lib/browser/blocks/img/component-info.d.ts +1 -1
  25. package/lib/browser/blocks/img/img.vue.d.ts +2 -2
  26. package/lib/browser/blocks/raw-text/component-info.d.ts +1 -1
  27. package/lib/browser/blocks/section/component-info.d.ts +1 -1
  28. package/lib/browser/blocks/section/section.vue.d.ts +1 -1
  29. package/lib/browser/blocks/slot/component-info.d.ts +1 -1
  30. package/lib/browser/blocks/slot/slot.vue.d.ts +1 -4
  31. package/lib/browser/blocks/symbol/component-info.d.ts +1 -1
  32. package/lib/browser/blocks/symbol/symbol.helpers.d.ts +2 -2
  33. package/lib/browser/blocks/symbol/symbol.types.d.ts +2 -2
  34. package/lib/browser/blocks/symbol/symbol.vue.d.ts +1 -1
  35. package/lib/browser/blocks/text/component-info.d.ts +1 -1
  36. package/lib/browser/blocks/textarea/component-info.d.ts +1 -1
  37. package/lib/browser/blocks/video/component-info.d.ts +1 -1
  38. package/lib/browser/blocks/video/video.types.d.ts +1 -1
  39. package/lib/browser/{component-ref-LM6x3Bcl.js → component-ref-5K3RMLKh.js} +2 -2
  40. package/lib/browser/{component-ref-Q1s_RePh.cjs → component-ref-mNbBuzhy.cjs} +1 -1
  41. package/lib/browser/components/block/animator.d.ts +1 -1
  42. package/lib/browser/components/block/block.helpers.d.ts +4 -4
  43. package/lib/browser/components/block/block.vue.d.ts +4 -4
  44. package/lib/browser/components/block/components/block-styles.vue.d.ts +3 -3
  45. package/lib/browser/components/block/components/block-wrapper.vue.d.ts +2 -2
  46. package/lib/browser/components/block/components/component-ref/component-ref.helpers.d.ts +3 -3
  47. package/lib/browser/components/block/components/component-ref/component-ref.vue.d.ts +4 -4
  48. package/lib/browser/components/block/components/interactive-element.vue.d.ts +5 -5
  49. package/lib/browser/components/block/types.d.ts +2 -2
  50. package/lib/browser/components/blocks/blocks-wrapper.vue.d.ts +4 -4
  51. package/lib/browser/components/blocks/blocks.types.d.ts +1 -1
  52. package/lib/browser/components/content/components/enable-editor.vue.d.ts +11 -11
  53. package/lib/browser/components/content/content.helpers.d.ts +3 -3
  54. package/lib/browser/components/content/content.types.d.ts +2 -2
  55. package/lib/browser/components/content/content.vue.d.ts +14 -14
  56. package/lib/browser/components/content/contentProps.types.d.ts +1 -1
  57. package/lib/browser/components/content-variants/content-variants.types.d.ts +4 -4
  58. package/lib/browser/components/content-variants/content-variants.vue.d.ts +14 -14
  59. package/lib/browser/components/content-variants/helpers.d.ts +5 -5
  60. package/lib/browser/components/dynamic-renderer/dynamic-renderer.vue.d.ts +3 -3
  61. package/lib/browser/constants/builder-registered-components.d.ts +1 -1
  62. package/lib/browser/constants/extra-components.d.ts +1 -1
  63. package/lib/browser/constants/sdk-version.d.ts +1 -1
  64. package/lib/browser/constants/target.d.ts +1 -1
  65. package/lib/browser/context/index.d.ts +1 -1
  66. package/lib/browser/context/types.d.ts +4 -4
  67. package/lib/browser/functions/evaluate/browser-runtime/browser.d.ts +2 -2
  68. package/lib/browser/functions/evaluate/browser-runtime/index.d.ts +1 -1
  69. package/lib/browser/functions/evaluate/choose-eval.d.ts +1 -1
  70. package/lib/browser/functions/evaluate/edge-runtime/edge-runtime.d.ts +1 -1
  71. package/lib/browser/functions/evaluate/edge-runtime/index.d.ts +1 -1
  72. package/lib/browser/functions/evaluate/evaluate.d.ts +1 -1
  73. package/lib/browser/functions/evaluate/helpers.d.ts +3 -3
  74. package/lib/browser/functions/evaluate/index.d.ts +1 -1
  75. package/lib/browser/functions/evaluate/node-runtime/index.d.ts +1 -1
  76. package/lib/browser/functions/evaluate/node-runtime/init.d.ts +10 -0
  77. package/lib/browser/functions/evaluate/node-runtime/node-runtime.d.ts +7 -1
  78. package/lib/browser/functions/evaluate/placeholder-runtime.d.ts +1 -1
  79. package/lib/browser/functions/fetch-builder-props.d.ts +3 -3
  80. package/lib/browser/functions/get-block-actions-handler.d.ts +2 -2
  81. package/lib/browser/functions/get-block-actions.d.ts +2 -2
  82. package/lib/browser/functions/get-block-component-options.d.ts +1 -1
  83. package/lib/browser/functions/get-block-properties.d.ts +2 -2
  84. package/lib/browser/functions/get-builder-search-params/index.d.ts +1 -1
  85. package/lib/browser/functions/get-content/generate-content-url.d.ts +1 -1
  86. package/lib/browser/functions/get-content/index.d.ts +2 -2
  87. package/lib/browser/functions/get-content/types.d.ts +139 -0
  88. package/lib/browser/functions/get-processed-block.d.ts +2 -2
  89. package/lib/browser/functions/get-style.d.ts +2 -2
  90. package/lib/browser/functions/is-editing.d.ts +1 -1
  91. package/lib/browser/functions/is-previewing.d.ts +1 -1
  92. package/lib/browser/functions/register-component.d.ts +1 -1
  93. package/lib/browser/functions/register.d.ts +2 -2
  94. package/lib/browser/functions/track/index.d.ts +2 -2
  95. package/lib/browser/functions/transform-block-properties.d.ts +2 -2
  96. package/lib/browser/functions/transform-block.d.ts +1 -1
  97. package/lib/browser/functions/transform-style-property.d.ts +2 -2
  98. package/lib/browser/{get-block-properties-JqO02Pvj.js → get-block-properties-4MopDiTP.js} +1 -1
  99. package/lib/browser/{get-block-properties-3XNUCHH5.cjs → get-block-properties-PuGrG7pm.cjs} +1 -1
  100. package/lib/browser/helpers/ab-tests.d.ts +3 -3
  101. package/lib/browser/helpers/cookie.d.ts +1 -1
  102. package/lib/browser/helpers/localStorage.d.ts +2 -2
  103. package/lib/browser/helpers/logger.d.ts +1 -0
  104. package/lib/browser/helpers/preview-lru-cache/get.d.ts +1 -1
  105. package/lib/browser/helpers/preview-lru-cache/set.d.ts +1 -1
  106. package/lib/browser/helpers/sessionId.d.ts +1 -1
  107. package/lib/browser/helpers/subscribe-to-editor.d.ts +3 -3
  108. package/lib/browser/helpers/visitorId.d.ts +1 -1
  109. package/lib/browser/{index-boTk8cd2.cjs → index-OSGu6alT.cjs} +5 -5
  110. package/lib/browser/index-helpers/blocks-exports.d.ts +11 -11
  111. package/lib/browser/{index-cWs7iJKE.js → index-mwZzSIN7.js} +51 -52
  112. package/lib/browser/index.cjs +1 -1
  113. package/lib/browser/index.d.cts +3 -3
  114. package/lib/browser/index.d.mts +3 -3
  115. package/lib/browser/index.js +1 -1
  116. package/lib/browser/{repeated-block-w8LmwHBS.cjs → repeated-block-VP4euR8a.cjs} +1 -1
  117. package/lib/browser/{repeated-block-2XTmcIT3.js → repeated-block-hUFMTXXS.js} +2 -2
  118. package/lib/browser/server-index.d.ts +27 -27
  119. package/lib/browser/style.css +1 -1
  120. package/lib/browser/types/builder-content.d.ts +3 -3
  121. package/lib/browser/types/builder-props.d.ts +2 -2
  122. package/lib/browser/types/components.d.ts +2 -2
  123. package/lib/edge/{block-styles-DY4QgHPp.cjs → block-styles-_eYB_Fxz.cjs} +1 -1
  124. package/lib/{node/block-styles-0bjSdiE1.js → edge/block-styles-nhMA9R4s.js} +1 -1
  125. package/lib/{node/block-wrapper-l6jhviaq.cjs → edge/block-wrapper-4RaFHsBw.cjs} +1 -1
  126. package/lib/edge/{block-wrapper-MB2DAb22.js → block-wrapper-xgShkhuq.js} +3 -3
  127. package/lib/edge/blocks/button/button.types.d.ts +1 -1
  128. package/lib/edge/blocks/button/button.vue.d.ts +1 -1
  129. package/lib/edge/blocks/button/component-info.d.ts +1 -1
  130. package/lib/edge/blocks/columns/columns.types.d.ts +2 -2
  131. package/lib/edge/blocks/columns/columns.vue.d.ts +3 -3
  132. package/lib/edge/blocks/columns/component-info.d.ts +1 -1
  133. package/lib/edge/blocks/custom-code/component-info.d.ts +1 -1
  134. package/lib/edge/blocks/embed/component-info.d.ts +1 -1
  135. package/lib/edge/blocks/form/form/component-info.d.ts +1 -1
  136. package/lib/edge/blocks/form/form/form.vue.d.ts +4 -7
  137. package/lib/edge/blocks/form/input/component-info.d.ts +1 -1
  138. package/lib/edge/blocks/form/input/input.vue.d.ts +2 -2
  139. package/lib/edge/blocks/form/select/component-info.d.ts +1 -1
  140. package/lib/edge/blocks/form/select/select.vue.d.ts +2 -2
  141. package/lib/edge/blocks/form/submit-button/component-info.d.ts +1 -1
  142. package/lib/edge/blocks/form/submit-button/submit-button.vue.d.ts +1 -1
  143. package/lib/edge/blocks/fragment/component-info.d.ts +1 -1
  144. package/lib/edge/blocks/image/component-info.d.ts +1 -1
  145. package/lib/edge/blocks/image/image.types.d.ts +1 -1
  146. package/lib/edge/blocks/img/component-info.d.ts +1 -1
  147. package/lib/edge/blocks/img/img.vue.d.ts +2 -2
  148. package/lib/edge/blocks/raw-text/component-info.d.ts +1 -1
  149. package/lib/edge/blocks/section/component-info.d.ts +1 -1
  150. package/lib/edge/blocks/section/section.vue.d.ts +1 -1
  151. package/lib/edge/blocks/slot/component-info.d.ts +1 -1
  152. package/lib/edge/blocks/slot/slot.vue.d.ts +1 -4
  153. package/lib/edge/blocks/symbol/component-info.d.ts +1 -1
  154. package/lib/edge/blocks/symbol/symbol.helpers.d.ts +2 -2
  155. package/lib/edge/blocks/symbol/symbol.types.d.ts +2 -2
  156. package/lib/edge/blocks/symbol/symbol.vue.d.ts +1 -1
  157. package/lib/edge/blocks/text/component-info.d.ts +1 -1
  158. package/lib/edge/blocks/textarea/component-info.d.ts +1 -1
  159. package/lib/edge/blocks/video/component-info.d.ts +1 -1
  160. package/lib/edge/blocks/video/video.types.d.ts +1 -1
  161. package/lib/{node/component-ref-_PZ_f7VE.cjs → edge/component-ref-KD6yANwg.cjs} +1 -1
  162. package/lib/{node/component-ref-hMFqpMd5.js → edge/component-ref-kGbDg8GR.js} +2 -2
  163. package/lib/edge/components/block/animator.d.ts +1 -1
  164. package/lib/edge/components/block/block.helpers.d.ts +4 -4
  165. package/lib/edge/components/block/block.vue.d.ts +4 -4
  166. package/lib/edge/components/block/components/block-styles.vue.d.ts +3 -3
  167. package/lib/edge/components/block/components/block-wrapper.vue.d.ts +2 -2
  168. package/lib/edge/components/block/components/component-ref/component-ref.helpers.d.ts +3 -3
  169. package/lib/edge/components/block/components/component-ref/component-ref.vue.d.ts +4 -4
  170. package/lib/edge/components/block/components/interactive-element.vue.d.ts +5 -5
  171. package/lib/edge/components/block/types.d.ts +2 -2
  172. package/lib/edge/components/blocks/blocks-wrapper.vue.d.ts +4 -4
  173. package/lib/edge/components/blocks/blocks.types.d.ts +1 -1
  174. package/lib/edge/components/content/components/enable-editor.vue.d.ts +11 -11
  175. package/lib/edge/components/content/content.helpers.d.ts +3 -3
  176. package/lib/edge/components/content/content.types.d.ts +2 -2
  177. package/lib/edge/components/content/content.vue.d.ts +14 -14
  178. package/lib/edge/components/content/contentProps.types.d.ts +1 -1
  179. package/lib/edge/components/content-variants/content-variants.types.d.ts +4 -4
  180. package/lib/edge/components/content-variants/content-variants.vue.d.ts +14 -14
  181. package/lib/edge/components/content-variants/helpers.d.ts +5 -5
  182. package/lib/edge/components/dynamic-renderer/dynamic-renderer.vue.d.ts +3 -3
  183. package/lib/edge/constants/builder-registered-components.d.ts +1 -1
  184. package/lib/edge/constants/extra-components.d.ts +1 -1
  185. package/lib/edge/constants/sdk-version.d.ts +1 -1
  186. package/lib/edge/constants/target.d.ts +1 -1
  187. package/lib/edge/context/index.d.ts +1 -1
  188. package/lib/edge/context/types.d.ts +4 -4
  189. package/lib/edge/functions/evaluate/browser-runtime/browser.d.ts +2 -2
  190. package/lib/edge/functions/evaluate/browser-runtime/index.d.ts +1 -1
  191. package/lib/edge/functions/evaluate/choose-eval.d.ts +1 -1
  192. package/lib/edge/functions/evaluate/edge-runtime/edge-runtime.d.ts +1 -1
  193. package/lib/edge/functions/evaluate/edge-runtime/index.d.ts +1 -1
  194. package/lib/edge/functions/evaluate/evaluate.d.ts +1 -1
  195. package/lib/edge/functions/evaluate/helpers.d.ts +3 -3
  196. package/lib/edge/functions/evaluate/index.d.ts +1 -1
  197. package/lib/edge/functions/evaluate/node-runtime/index.d.ts +1 -1
  198. package/lib/edge/functions/evaluate/node-runtime/init.d.ts +10 -0
  199. package/lib/edge/functions/evaluate/node-runtime/node-runtime.d.ts +7 -1
  200. package/lib/edge/functions/evaluate/placeholder-runtime.d.ts +1 -1
  201. package/lib/edge/functions/fetch-builder-props.d.ts +3 -3
  202. package/lib/edge/functions/get-block-actions-handler.d.ts +2 -2
  203. package/lib/edge/functions/get-block-actions.d.ts +2 -2
  204. package/lib/edge/functions/get-block-component-options.d.ts +1 -1
  205. package/lib/edge/functions/get-block-properties.d.ts +2 -2
  206. package/lib/edge/functions/get-builder-search-params/index.d.ts +1 -1
  207. package/lib/edge/functions/get-content/generate-content-url.d.ts +1 -1
  208. package/lib/edge/functions/get-content/index.d.ts +2 -2
  209. package/lib/edge/functions/get-content/types.d.ts +139 -0
  210. package/lib/edge/functions/get-processed-block.d.ts +2 -2
  211. package/lib/edge/functions/get-style.d.ts +2 -2
  212. package/lib/edge/functions/is-editing.d.ts +1 -1
  213. package/lib/edge/functions/is-previewing.d.ts +1 -1
  214. package/lib/edge/functions/register-component.d.ts +1 -1
  215. package/lib/edge/functions/register.d.ts +2 -2
  216. package/lib/edge/functions/track/index.d.ts +2 -2
  217. package/lib/edge/functions/transform-block-properties.d.ts +2 -2
  218. package/lib/edge/functions/transform-block.d.ts +1 -1
  219. package/lib/edge/functions/transform-style-property.d.ts +2 -2
  220. package/lib/edge/{get-block-properties-Db253d7J.cjs → get-block-properties-v6bf_R5d.cjs} +1 -1
  221. package/lib/{node/get-block-properties-ALDt-aYB.js → edge/get-block-properties-yFfbPH85.js} +1 -1
  222. package/lib/edge/helpers/ab-tests.d.ts +3 -3
  223. package/lib/edge/helpers/cookie.d.ts +1 -1
  224. package/lib/edge/helpers/localStorage.d.ts +2 -2
  225. package/lib/edge/helpers/logger.d.ts +1 -0
  226. package/lib/edge/helpers/preview-lru-cache/get.d.ts +1 -1
  227. package/lib/edge/helpers/preview-lru-cache/set.d.ts +1 -1
  228. package/lib/edge/helpers/sessionId.d.ts +1 -1
  229. package/lib/edge/helpers/subscribe-to-editor.d.ts +3 -3
  230. package/lib/edge/helpers/visitorId.d.ts +1 -1
  231. package/lib/edge/{index-EgsFYAAH.js → index-Ua4OW_gh.js} +129 -130
  232. package/lib/edge/index-helpers/blocks-exports.d.ts +11 -11
  233. package/lib/edge/{index-6jtmxcZK.cjs → index-xnWjf2tW.cjs} +5 -5
  234. package/lib/edge/index.cjs +1 -1
  235. package/lib/edge/index.d.cts +3 -3
  236. package/lib/edge/index.d.mts +3 -3
  237. package/lib/edge/index.js +1 -1
  238. package/lib/edge/{repeated-block-v0Tdo6MH.cjs → repeated-block-qRyqdxjD.cjs} +1 -1
  239. package/lib/edge/{repeated-block-IASkNW44.js → repeated-block-uiPuS74Z.js} +2 -2
  240. package/lib/edge/server-index.d.ts +27 -27
  241. package/lib/edge/style.css +1 -1
  242. package/lib/edge/types/builder-content.d.ts +3 -3
  243. package/lib/edge/types/builder-props.d.ts +2 -2
  244. package/lib/edge/types/components.d.ts +2 -2
  245. package/lib/node/{block-styles-hsIt6cz9.cjs → block-styles-h0iWFk09.cjs} +1 -1
  246. package/lib/{edge/block-styles-V1jE4Apg.js → node/block-styles-rz8jpORX.js} +1 -1
  247. package/lib/node/{block-wrapper-4eUteNjO.js → block-wrapper--vej-Ae6.js} +3 -3
  248. package/lib/{edge/block-wrapper-id_fLCFD.cjs → node/block-wrapper-bGeMckW5.cjs} +1 -1
  249. package/lib/node/blocks/button/button.types.d.ts +1 -1
  250. package/lib/node/blocks/button/button.vue.d.ts +1 -1
  251. package/lib/node/blocks/button/component-info.d.ts +1 -1
  252. package/lib/node/blocks/columns/columns.types.d.ts +2 -2
  253. package/lib/node/blocks/columns/columns.vue.d.ts +3 -3
  254. package/lib/node/blocks/columns/component-info.d.ts +1 -1
  255. package/lib/node/blocks/custom-code/component-info.d.ts +1 -1
  256. package/lib/node/blocks/embed/component-info.d.ts +1 -1
  257. package/lib/node/blocks/form/form/component-info.d.ts +1 -1
  258. package/lib/node/blocks/form/form/form.vue.d.ts +4 -7
  259. package/lib/node/blocks/form/input/component-info.d.ts +1 -1
  260. package/lib/node/blocks/form/input/input.vue.d.ts +2 -2
  261. package/lib/node/blocks/form/select/component-info.d.ts +1 -1
  262. package/lib/node/blocks/form/select/select.vue.d.ts +2 -2
  263. package/lib/node/blocks/form/submit-button/component-info.d.ts +1 -1
  264. package/lib/node/blocks/form/submit-button/submit-button.vue.d.ts +1 -1
  265. package/lib/node/blocks/fragment/component-info.d.ts +1 -1
  266. package/lib/node/blocks/image/component-info.d.ts +1 -1
  267. package/lib/node/blocks/image/image.types.d.ts +1 -1
  268. package/lib/node/blocks/img/component-info.d.ts +1 -1
  269. package/lib/node/blocks/img/img.vue.d.ts +2 -2
  270. package/lib/node/blocks/raw-text/component-info.d.ts +1 -1
  271. package/lib/node/blocks/section/component-info.d.ts +1 -1
  272. package/lib/node/blocks/section/section.vue.d.ts +1 -1
  273. package/lib/node/blocks/slot/component-info.d.ts +1 -1
  274. package/lib/node/blocks/slot/slot.vue.d.ts +1 -4
  275. package/lib/node/blocks/symbol/component-info.d.ts +1 -1
  276. package/lib/node/blocks/symbol/symbol.helpers.d.ts +2 -2
  277. package/lib/node/blocks/symbol/symbol.types.d.ts +2 -2
  278. package/lib/node/blocks/symbol/symbol.vue.d.ts +1 -1
  279. package/lib/node/blocks/text/component-info.d.ts +1 -1
  280. package/lib/node/blocks/textarea/component-info.d.ts +1 -1
  281. package/lib/node/blocks/video/component-info.d.ts +1 -1
  282. package/lib/node/blocks/video/video.types.d.ts +1 -1
  283. package/lib/{edge/component-ref-EF1jkhwy.js → node/component-ref-PGVczQrW.js} +2 -2
  284. package/lib/{edge/component-ref-pUSq0c0J.cjs → node/component-ref-YhLendyR.cjs} +1 -1
  285. package/lib/node/components/block/animator.d.ts +1 -1
  286. package/lib/node/components/block/block.helpers.d.ts +4 -4
  287. package/lib/node/components/block/block.vue.d.ts +4 -4
  288. package/lib/node/components/block/components/block-styles.vue.d.ts +3 -3
  289. package/lib/node/components/block/components/block-wrapper.vue.d.ts +2 -2
  290. package/lib/node/components/block/components/component-ref/component-ref.helpers.d.ts +3 -3
  291. package/lib/node/components/block/components/component-ref/component-ref.vue.d.ts +4 -4
  292. package/lib/node/components/block/components/interactive-element.vue.d.ts +5 -5
  293. package/lib/node/components/block/types.d.ts +2 -2
  294. package/lib/node/components/blocks/blocks-wrapper.vue.d.ts +4 -4
  295. package/lib/node/components/blocks/blocks.types.d.ts +1 -1
  296. package/lib/node/components/content/components/enable-editor.vue.d.ts +11 -11
  297. package/lib/node/components/content/content.helpers.d.ts +3 -3
  298. package/lib/node/components/content/content.types.d.ts +2 -2
  299. package/lib/node/components/content/content.vue.d.ts +14 -14
  300. package/lib/node/components/content/contentProps.types.d.ts +1 -1
  301. package/lib/node/components/content-variants/content-variants.types.d.ts +4 -4
  302. package/lib/node/components/content-variants/content-variants.vue.d.ts +14 -14
  303. package/lib/node/components/content-variants/helpers.d.ts +5 -5
  304. package/lib/node/components/dynamic-renderer/dynamic-renderer.vue.d.ts +3 -3
  305. package/lib/node/constants/builder-registered-components.d.ts +1 -1
  306. package/lib/node/constants/extra-components.d.ts +1 -1
  307. package/lib/node/constants/sdk-version.d.ts +1 -1
  308. package/lib/node/constants/target.d.ts +1 -1
  309. package/lib/node/context/index.d.ts +1 -1
  310. package/lib/node/context/types.d.ts +4 -4
  311. package/lib/node/functions/evaluate/browser-runtime/browser.d.ts +2 -2
  312. package/lib/node/functions/evaluate/browser-runtime/index.d.ts +1 -1
  313. package/lib/node/functions/evaluate/choose-eval.d.ts +1 -1
  314. package/lib/node/functions/evaluate/edge-runtime/edge-runtime.d.ts +1 -1
  315. package/lib/node/functions/evaluate/edge-runtime/index.d.ts +1 -1
  316. package/lib/node/functions/evaluate/evaluate.d.ts +1 -1
  317. package/lib/node/functions/evaluate/helpers.d.ts +3 -3
  318. package/lib/node/functions/evaluate/index.d.ts +1 -1
  319. package/lib/node/functions/evaluate/node-runtime/index.d.ts +1 -1
  320. package/lib/node/functions/evaluate/node-runtime/init.d.ts +10 -0
  321. package/lib/node/functions/evaluate/node-runtime/node-runtime.d.ts +7 -1
  322. package/lib/node/functions/evaluate/placeholder-runtime.d.ts +1 -1
  323. package/lib/node/functions/fetch-builder-props.d.ts +3 -3
  324. package/lib/node/functions/get-block-actions-handler.d.ts +2 -2
  325. package/lib/node/functions/get-block-actions.d.ts +2 -2
  326. package/lib/node/functions/get-block-component-options.d.ts +1 -1
  327. package/lib/node/functions/get-block-properties.d.ts +2 -2
  328. package/lib/node/functions/get-builder-search-params/index.d.ts +1 -1
  329. package/lib/node/functions/get-content/generate-content-url.d.ts +1 -1
  330. package/lib/node/functions/get-content/index.d.ts +2 -2
  331. package/lib/node/functions/get-content/types.d.ts +139 -0
  332. package/lib/node/functions/get-processed-block.d.ts +2 -2
  333. package/lib/node/functions/get-style.d.ts +2 -2
  334. package/lib/node/functions/is-editing.d.ts +1 -1
  335. package/lib/node/functions/is-previewing.d.ts +1 -1
  336. package/lib/node/functions/register-component.d.ts +1 -1
  337. package/lib/node/functions/register.d.ts +2 -2
  338. package/lib/node/functions/track/index.d.ts +2 -2
  339. package/lib/node/functions/transform-block-properties.d.ts +2 -2
  340. package/lib/node/functions/transform-block.d.ts +1 -1
  341. package/lib/node/functions/transform-style-property.d.ts +2 -2
  342. package/lib/node/{get-block-properties-IfIhpTyk.cjs → get-block-properties-GTVEiEYp.cjs} +1 -1
  343. package/lib/{edge/get-block-properties-faT56OMN.js → node/get-block-properties-kAmm-X1q.js} +1 -1
  344. package/lib/node/helpers/ab-tests.d.ts +3 -3
  345. package/lib/node/helpers/cookie.d.ts +1 -1
  346. package/lib/node/helpers/localStorage.d.ts +2 -2
  347. package/lib/node/helpers/logger.d.ts +1 -0
  348. package/lib/node/helpers/preview-lru-cache/get.d.ts +1 -1
  349. package/lib/node/helpers/preview-lru-cache/set.d.ts +1 -1
  350. package/lib/node/helpers/sessionId.d.ts +1 -1
  351. package/lib/node/helpers/subscribe-to-editor.d.ts +3 -3
  352. package/lib/node/helpers/visitorId.d.ts +1 -1
  353. package/lib/node/{index-u36w67Cr.cjs → index-XIqTnRyC.cjs} +13 -6
  354. package/lib/node/index-helpers/blocks-exports.d.ts +11 -11
  355. package/lib/node/{index-3WfVCyJd.js → index-mnDtU0q8.js} +41 -24
  356. package/lib/node/index.cjs +1 -1
  357. package/lib/node/index.d.cts +3 -3
  358. package/lib/node/index.d.mts +3 -3
  359. package/lib/node/index.js +1 -1
  360. package/lib/node/{repeated-block-dIHQGH39.cjs → repeated-block-SWSMCPvd.cjs} +1 -1
  361. package/lib/node/{repeated-block-qd2uOmxH.js → repeated-block-tjhtQDPA.js} +2 -2
  362. package/lib/node/server-index.d.ts +27 -27
  363. package/lib/node/style.css +1 -1
  364. package/lib/node/types/builder-content.d.ts +3 -3
  365. package/lib/node/types/builder-props.d.ts +2 -2
  366. package/lib/node/types/components.d.ts +2 -2
  367. package/package.json +1 -1
@@ -7,27 +7,27 @@ declare const _default: import("vue").DefineComponent<Readonly<{
7
7
  linkComponent?: any;
8
8
  blocksWrapper?: any;
9
9
  canTrack?: any;
10
- contentWrapper?: any;
11
- model?: any;
12
- trustedHosts?: any;
13
10
  locale?: any;
14
11
  enrich?: any;
12
+ trustedHosts?: any;
13
+ model?: any;
14
+ contentWrapper?: any;
15
15
  contentWrapperProps?: any;
16
16
  isNestedRender?: any;
17
17
  customComponents?: any;
18
18
  blocksWrapperProps?: any;
19
19
  }>, unknown, {
20
20
  shouldRenderVariants: boolean;
21
- TARGET: import("../../types/targets.js").Target;
21
+ TARGET: import("../../types/targets").Target;
22
22
  getInitVariantsFnsScriptString: () => string;
23
- getVariants: (content: import("../../helpers/nullable.js").Nullable<import("../../server-index.js").BuilderContent>) => {
23
+ getVariants: (content: import("../../helpers/nullable").Nullable<import("../..").BuilderContent>) => {
24
24
  testVariationId: string | undefined;
25
25
  id: string | undefined;
26
26
  data?: {
27
27
  [key: string]: any;
28
28
  title?: string | undefined;
29
- blocks?: import("../../server-index.js").BuilderBlock[] | undefined;
30
- inputs?: import("../../types/input.js").Input[] | undefined;
29
+ blocks?: import("../..").BuilderBlock[] | undefined;
30
+ inputs?: import("../../types/input").Input[] | undefined;
31
31
  state?: {
32
32
  [key: string]: any;
33
33
  } | undefined;
@@ -41,7 +41,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
41
41
  testRatio?: number | undefined;
42
42
  meta?: {
43
43
  [key: string]: any;
44
- breakpoints?: import("../../types/typescript.js").Nullable<import("../../types/builder-content.js").Breakpoints>;
44
+ breakpoints?: import("../../types/typescript").Nullable<import("../../types/builder-content").Breakpoints>;
45
45
  } | undefined;
46
46
  }[];
47
47
  }, {
@@ -57,11 +57,11 @@ declare const _default: import("vue").DefineComponent<Readonly<{
57
57
  linkComponent?: any;
58
58
  blocksWrapper?: any;
59
59
  canTrack?: any;
60
- contentWrapper?: any;
61
- model?: any;
62
- trustedHosts?: any;
63
60
  locale?: any;
64
61
  enrich?: any;
62
+ trustedHosts?: any;
63
+ model?: any;
64
+ contentWrapper?: any;
65
65
  contentWrapperProps?: any;
66
66
  isNestedRender?: any;
67
67
  customComponents?: any;
@@ -75,11 +75,11 @@ declare const _default: import("vue").DefineComponent<Readonly<{
75
75
  readonly linkComponent?: any;
76
76
  readonly blocksWrapper?: any;
77
77
  readonly canTrack?: any;
78
- readonly contentWrapper?: any;
79
- readonly model?: any;
80
- readonly trustedHosts?: any;
81
78
  readonly locale?: any;
82
79
  readonly enrich?: any;
80
+ readonly trustedHosts?: any;
81
+ readonly model?: any;
82
+ readonly contentWrapper?: any;
83
83
  readonly contentWrapperProps?: any;
84
84
  readonly isNestedRender?: any;
85
85
  readonly customComponents?: any;
@@ -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 }: {
@@ -5,18 +5,18 @@ export interface DynamicRendererProps {
5
5
  actionAttributes: any;
6
6
  }
7
7
  declare const _default: import("vue").DefineComponent<Readonly<{
8
+ TagName?: any;
8
9
  attributes?: any;
9
10
  actionAttributes?: any;
10
- TagName?: any;
11
11
  }>, unknown, {
12
12
  isEmptyElement: (tagName: any) => boolean;
13
13
  }, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
14
+ TagName?: any;
14
15
  attributes?: any;
15
16
  actionAttributes?: any;
16
- TagName?: any;
17
17
  }>>>, {
18
+ readonly TagName?: any;
18
19
  readonly attributes?: any;
19
20
  readonly actionAttributes?: any;
20
- readonly TagName?: any;
21
21
  }, {}>;
22
22
  export default _default;
@@ -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.
@@ -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[];
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.0.19";
1
+ export declare 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,8 +1,8 @@
1
1
  import type { BlocksWrapperProps } from '../components/blocks/blocks-wrapper.vue';
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 +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,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 +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,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 +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';
@@ -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;
@@ -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,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,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 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,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,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,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,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,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
  */
@@ -0,0 +1,139 @@
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,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 getProcessedBlock({ block, context, shouldEvaluateBindings, localState, rootState, rootSetState }: {
4
4
  block: BuilderBlock;
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
  export declare const getStyle: ({ block, context }: {
4
4
  block: BuilderBlock;
5
5
  context: BuilderContextInterface;
@@ -1,2 +1,2 @@
1
- import { type Search } from '../helpers/search/search.js';
1
+ import { type Search } from '../helpers/search/search';
2
2
  export declare function isEditing(search?: Search): boolean;
@@ -1,2 +1,2 @@
1
- import type { Search } from '../helpers/search/search.js';
1
+ import type { Search } from '../helpers/search/search';
2
2
  export declare function isPreviewing(search?: Search): boolean;
@@ -1,4 +1,4 @@
1
- import type { ComponentInfo } from '../types/components.js';
1
+ import type { ComponentInfo } from '../types/components';
2
2
  export declare const createRegisterComponentMessage: (info: ComponentInfo) => {
3
3
  type: string;
4
4
  data: ComponentInfo;
@@ -1,5 +1,5 @@
1
- import type { BuilderBlock } from '../types/builder-block.js';
2
- import type { DeepPartial } from '../types/deep-partial.js';
1
+ import type { BuilderBlock } from '../types/builder-block';
2
+ import type { DeepPartial } from '../types/deep-partial';
3
3
  export interface InsertMenuItem {
4
4
  name: string;
5
5
  icon?: string;
@@ -1,5 +1,5 @@
1
- import type { CanTrack } from '../../types/can-track.js';
2
- import type { Dictionary } from '../../types/typescript.js';
1
+ import type { CanTrack } from '../../types/can-track';
2
+ import type { Dictionary } from '../../types/typescript';
3
3
  interface Event {
4
4
  /**
5
5
  * The type of your event.
@@ -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 transformBlockProperties<T>({ properties }: {
4
4
  properties: T;
5
5
  context: BuilderContextInterface;
@@ -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 transformBlock(block: BuilderBlock): BuilderBlock;
@@ -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 transformStyleProperty({ style }: {
4
4
  style: Partial<CSSStyleDeclaration>;
5
5
  context: BuilderContextInterface;
@@ -1 +1 @@
1
- "use strict";const a=require("./index-6jtmxcZK.cjs"),c=e=>`v-on:${e.toLowerCase()}`,i=(e,t)=>r=>a.evaluate({code:e,context:t.context,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,event:r,isExpression:!1,enableCache:!0});function l(e){const t={},r=e.block.actions??{};for(const o in r){if(!r.hasOwnProperty(o))continue;const s=r[o];let n=c(o);if(e.stripPrefix)switch(a.TARGET){case"vue":n=n.replace("v-on:","");break;case"svelte":n=n.replace("on:","");break}t[n]=i(s,e)}return t}function u({properties:e}){return e}const f=e=>({href:e.href});function p({block:e,context:t}){var o;const r={...f(e),...e.properties,"builder-id":e.id,style:a.getStyle({block:e,context:t}),[a.getClassPropName()]:[e.id,"builder-block",e.class,(o=e.properties)==null?void 0:o.class].filter(Boolean).join(" ")};return u({properties:r,context:t,block:e})}exports.getBlockActions=l;exports.getBlockProperties=p;
1
+ "use strict";const a=require("./index-xnWjf2tW.cjs"),c=e=>`v-on:${e.toLowerCase()}`,i=(e,t)=>r=>a.evaluate({code:e,context:t.context,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,event:r,isExpression:!1,enableCache:!0});function l(e){const t={},r=e.block.actions??{};for(const o in r){if(!r.hasOwnProperty(o))continue;const s=r[o];let n=c(o);if(e.stripPrefix)switch(a.TARGET){case"vue":n=n.replace("v-on:","");break;case"svelte":n=n.replace("on:","");break}t[n]=i(s,e)}return t}function u({properties:e}){return e}const f=e=>({href:e.href});function p({block:e,context:t}){var o;const r={...f(e),...e.properties,"builder-id":e.id,style:a.getStyle({block:e,context:t}),[a.getClassPropName()]:[e.id,"builder-block",e.class,(o=e.properties)==null?void 0:o.class].filter(Boolean).join(" ")};return u({properties:r,context:t,block:e})}exports.getBlockActions=l;exports.getBlockProperties=p;
@@ -1,4 +1,4 @@
1
- import { f as s, T as c, h as i, i as l } from "./index-3WfVCyJd.js";
1
+ import { f as s, T as c, h as i, i as l } from "./index-Ua4OW_gh.js";
2
2
  const f = (e) => `v-on:${e.toLowerCase()}`, u = (e, t) => (r) => s({
3
3
  code: e,
4
4
  context: t.context,
@@ -1,6 +1,6 @@
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';
1
+ import type { BuilderContent } from '../types/builder-content';
2
+ import type { CanTrack } from '../types/can-track';
3
+ import type { Nullable } from '../types/typescript';
4
4
  export declare const handleABTestingSync: ({ item, canTrack }: {
5
5
  item: Nullable<BuilderContent>;
6
6
  } & CanTrack) => Nullable<BuilderContent>;
@@ -1,4 +1,4 @@
1
- import type { CanTrack } from '../types/can-track.js';
1
+ import type { CanTrack } from '../types/can-track';
2
2
  type GetCookieArgs = {
3
3
  name: string;
4
4
  } & CanTrack;
@@ -1,5 +1,5 @@
1
- import type { CanTrack } from '../types/can-track.js';
2
- import type { Nullable } from './nullable.js';
1
+ import type { CanTrack } from '../types/can-track';
2
+ import type { Nullable } from './nullable';
3
3
  export declare const getLocalStorageItem: ({ key, canTrack }: {
4
4
  key: string;
5
5
  } & CanTrack) => Nullable<string>;
@@ -1,3 +1,4 @@
1
+ export declare const MSG_PREFIX = "[Builder.io]: ";
1
2
  export declare const logger: {
2
3
  log: (...message: any[]) => void;
3
4
  error: (...message: any[]) => void;
@@ -1,2 +1,2 @@
1
- import type { BuilderContent } from '../../types/builder-content.js';
1
+ import type { BuilderContent } from '../../types/builder-content';
2
2
  export declare function getPreviewContent(_searchParams: URLSearchParams): BuilderContent | undefined;
@@ -1,4 +1,4 @@
1
- import type { BuilderContent } from '../../types/builder-content.js';
1
+ import type { BuilderContent } from '../../types/builder-content';
2
2
  export declare function postPreviewContent({ key, value }: {
3
3
  key: string;
4
4
  value: BuilderContent;
@@ -1,4 +1,4 @@
1
- import type { CanTrack } from '../types/can-track.js';
1
+ import type { CanTrack } from '../types/can-track';
2
2
  export declare const getSessionId: ({ canTrack }: CanTrack) => Promise<string | undefined>;
3
3
  export declare const createSessionId: () => string;
4
4
  export declare const setSessionId: ({ id, canTrack }: {
@@ -1,6 +1,6 @@
1
- import type { ContentProps } from '../components/content/content.types.js';
2
- import type { BuilderAnimation } from '../types/builder-block.js';
3
- import type { BuilderContent } from '../types/builder-content.js';
1
+ import type { ContentProps } from '../components/content/content.types';
2
+ import type { BuilderAnimation } from '../types/builder-block';
3
+ import type { BuilderContent } from '../types/builder-content';
4
4
  type ContentListener = Required<Pick<ContentProps, 'model' | 'trustedHosts'>> & {
5
5
  callbacks: {
6
6
  contentUpdate: (updatedContent: BuilderContent) => void;