@builder.io/sdk-qwik 0.0.16 → 0.0.17

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 (345) hide show
  1. package/lib/index.qwik.cjs +218 -510
  2. package/lib/index.qwik.mjs +218 -510
  3. package/package.json +6 -5
  4. package/types/blocks/button/button.d.ts +9 -0
  5. package/types/blocks/button/component-info.d.ts +2 -0
  6. package/types/blocks/columns/columns.d.ts +32 -0
  7. package/types/blocks/columns/component-info.d.ts +2 -0
  8. package/types/blocks/custom-code/component-info.d.ts +2 -0
  9. package/types/blocks/custom-code/custom-code.d.ts +7 -0
  10. package/types/blocks/embed/component-info.d.ts +2 -0
  11. package/types/blocks/embed/embed.d.ts +6 -0
  12. package/types/blocks/embed/helpers.d.ts +1 -0
  13. package/types/blocks/form/component-info.d.ts +2 -0
  14. package/types/blocks/fragment/component-info.d.ts +2 -0
  15. package/types/blocks/fragment/fragment.d.ts +7 -0
  16. package/types/blocks/image/component-info.d.ts +2 -0
  17. package/types/blocks/image/image.d.ts +25 -0
  18. package/types/blocks/image/image.helpers.d.ts +1 -0
  19. package/types/blocks/img/component-info.d.ts +2 -0
  20. package/types/blocks/img/img.d.ts +10 -0
  21. package/types/blocks/input/component-info.d.ts +2 -0
  22. package/types/blocks/input/input.d.ts +11 -0
  23. package/types/blocks/raw-text/component-info.d.ts +2 -0
  24. package/types/blocks/raw-text/raw-text.d.ts +6 -0
  25. package/types/blocks/section/component-info.d.ts +2 -0
  26. package/types/blocks/section/section.d.ts +8 -0
  27. package/types/blocks/select/component-info.d.ts +2 -0
  28. package/types/blocks/select/select.d.ts +12 -0
  29. package/types/blocks/submit-button/component-info.d.ts +2 -0
  30. package/types/blocks/submit-button/submit-button.d.ts +6 -0
  31. package/types/blocks/symbol/component-info.d.ts +2 -0
  32. package/types/blocks/symbol/symbol.d.ts +20 -0
  33. package/types/blocks/text/component-info.d.ts +2 -0
  34. package/types/blocks/text/text.d.ts +5 -0
  35. package/types/blocks/textarea/component-info.d.ts +2 -0
  36. package/types/blocks/textarea/textarea.d.ts +9 -0
  37. package/types/blocks/util.d.ts +1 -0
  38. package/types/blocks/video/component-info.d.ts +2 -0
  39. package/types/blocks/video/video.d.ts +25 -0
  40. package/types/components/render-block/block-styles.d.ts +12 -0
  41. package/types/components/render-block/render-block.d.ts +32 -0
  42. package/types/components/render-block/render-block.helpers.d.ts +1 -0
  43. package/types/components/render-block/render-component.d.ts +12 -0
  44. package/types/components/render-block/render-repeated-block.d.ts +17 -0
  45. package/types/components/render-block/types.d.ts +6 -0
  46. package/types/components/render-blocks.d.ts +12 -0
  47. package/types/components/render-content/components/render-styles.d.ts +19 -0
  48. package/types/components/render-content/index.d.ts +1 -0
  49. package/types/components/render-content/render-content.d.ts +33 -0
  50. package/types/components/render-inlined-styles.d.ts +9 -0
  51. package/types/constants/builder-registered-components.d.ts +6 -0
  52. package/types/constants/device-sizes.d.ts +2 -0
  53. package/types/constants/target.d.ts +2 -0
  54. package/types/context/builder.context.d.ts +2 -0
  55. package/types/context/types.d.ts +16 -0
  56. package/types/functions/camel-to-kebab-case.d.ts +1 -0
  57. package/types/functions/convert-style-object.d.ts +1 -0
  58. package/types/functions/evaluate.d.ts +5 -0
  59. package/types/functions/event-handler-name.d.ts +1 -0
  60. package/types/functions/get-block-actions.d.ts +9 -0
  61. package/types/functions/get-block-component-options.d.ts +2 -0
  62. package/types/functions/get-block-properties.d.ts +5 -0
  63. package/types/functions/get-block-styles.d.ts +2 -0
  64. package/types/functions/get-block-tag.d.ts +10 -0
  65. package/types/functions/get-builder-search-params/fn.test.d.ts +1 -0
  66. package/types/functions/get-builder-search-params/index.d.ts +6 -0
  67. package/types/functions/get-content/ab-testing.d.ts +3 -0
  68. package/types/functions/get-content/fn.test.d.ts +1 -0
  69. package/types/functions/get-content/index.d.ts +9 -0
  70. package/types/functions/get-content/types.d.ts +26 -0
  71. package/types/functions/get-fetch.d.ts +1 -0
  72. package/types/functions/get-global-this.d.ts +1 -0
  73. package/types/functions/get-processed-block.d.ts +10 -0
  74. package/types/functions/get-processed-block.test.d.ts +1 -0
  75. package/types/functions/if-target.d.ts +7 -0
  76. package/types/functions/is-browser.d.ts +1 -0
  77. package/types/functions/is-editing.d.ts +1 -0
  78. package/types/functions/is-iframe.d.ts +1 -0
  79. package/types/functions/is-previewing.d.ts +1 -0
  80. package/types/functions/mark-mutable.d.ts +2 -0
  81. package/types/functions/on-change.d.ts +7 -0
  82. package/types/functions/on-change.test.d.ts +1 -0
  83. package/types/functions/register-component.d.ts +14 -0
  84. package/types/functions/register.d.ts +16 -0
  85. package/types/functions/sanitize-styles.d.ts +4 -0
  86. package/types/functions/set-editor-settings.d.ts +4 -0
  87. package/types/functions/set.d.ts +7 -0
  88. package/types/functions/set.test.d.ts +1 -0
  89. package/types/functions/track.d.ts +21 -0
  90. package/types/functions/transform-block.d.ts +2 -0
  91. package/types/helpers/cookie.d.ts +9 -0
  92. package/types/helpers/css.d.ts +1 -0
  93. package/types/helpers/flatten.d.ts +6 -0
  94. package/types/helpers/localStorage.d.ts +9 -0
  95. package/types/helpers/nullable.d.ts +2 -0
  96. package/types/helpers/sessionId.d.ts +7 -0
  97. package/types/helpers/time.d.ts +1 -0
  98. package/types/helpers/url.d.ts +6 -0
  99. package/types/helpers/url.test.d.ts +1 -0
  100. package/types/helpers/uuid.d.ts +8 -0
  101. package/types/helpers/visitorId.d.ts +8 -0
  102. package/types/index-helpers/blocks-exports.d.ts +10 -0
  103. package/types/index-helpers/top-of-file.d.ts +1 -0
  104. package/types/index.d.ts +10 -0
  105. package/types/scripts/init-editing.d.ts +2 -0
  106. package/types/types/builder-block.d.ts +57 -0
  107. package/types/types/builder-content.d.ts +38 -0
  108. package/types/types/can-track.d.ts +3 -0
  109. package/types/types/components.d.ts +177 -0
  110. package/types/types/deep-partial.d.ts +3 -0
  111. package/types/types/element.d.ts +59 -0
  112. package/types/types/targets.d.ts +3 -0
  113. package/types/types/typescript.d.ts +4 -0
  114. package/types-hacks.d.ts +6 -0
  115. package/.yarn/cache/@builder.io-qwik-npm-0.0.103-bdc7786a46-98363e9103.zip +0 -0
  116. package/.yarn/cache/@gar-promisify-npm-1.1.3-ac1a325862-4059f790e2.zip +0 -0
  117. package/.yarn/cache/@npmcli-fs-npm-2.1.2-08d434e77b-405074965e.zip +0 -0
  118. package/.yarn/cache/@npmcli-move-file-npm-2.0.1-b593d8f741-52dc02259d.zip +0 -0
  119. package/.yarn/cache/@tootallnate-once-npm-2.0.0-e36cf4f140-ad87447820.zip +0 -0
  120. package/.yarn/cache/@types-node-npm-18.7.6-c1eafa3d9a-5122988c32.zip +0 -0
  121. package/.yarn/cache/abbrev-npm-1.1.1-3659247eab-a4a97ec07d.zip +0 -0
  122. package/.yarn/cache/agent-base-npm-6.0.2-428f325a93-f52b6872cc.zip +0 -0
  123. package/.yarn/cache/agentkeepalive-npm-4.2.1-b86a9fb343-39cb49ed8c.zip +0 -0
  124. package/.yarn/cache/aggregate-error-npm-3.1.0-415a406f4e-1101a33f21.zip +0 -0
  125. package/.yarn/cache/ansi-regex-npm-5.0.1-c963a48615-2aa4bb54ca.zip +0 -0
  126. package/.yarn/cache/aproba-npm-2.0.0-8716bcfde6-5615cadcfb.zip +0 -0
  127. package/.yarn/cache/are-we-there-yet-npm-3.0.1-3395b1512f-52590c2486.zip +0 -0
  128. package/.yarn/cache/balanced-match-npm-1.0.2-a53c126459-9706c088a2.zip +0 -0
  129. package/.yarn/cache/brace-expansion-npm-1.1.11-fb95eb05ad-faf34a7bb0.zip +0 -0
  130. package/.yarn/cache/brace-expansion-npm-2.0.1-17aa2616f9-a61e7cd2e8.zip +0 -0
  131. package/.yarn/cache/cacache-npm-16.1.2-0d36d1aaf1-defe1d6f55.zip +0 -0
  132. package/.yarn/cache/chownr-npm-2.0.0-638f1c9c61-c57cf9dd07.zip +0 -0
  133. package/.yarn/cache/clean-stack-npm-2.2.0-a8ce435a5c-2ac8cd2b2f.zip +0 -0
  134. package/.yarn/cache/color-support-npm-1.1.3-3be5c53455-9b73568176.zip +0 -0
  135. package/.yarn/cache/concat-map-npm-0.0.1-85a921b7ee-902a9f5d89.zip +0 -0
  136. package/.yarn/cache/console-control-strings-npm-1.1.0-e3160e5275-8755d76787.zip +0 -0
  137. package/.yarn/cache/debug-npm-4.3.4-4513954577-3dbad3f94e.zip +0 -0
  138. package/.yarn/cache/delegates-npm-1.0.0-9b1942d75f-a51744d9b5.zip +0 -0
  139. package/.yarn/cache/depd-npm-1.1.2-b0c8414da7-6b406620d2.zip +0 -0
  140. package/.yarn/cache/emoji-regex-npm-8.0.0-213764015c-d4c5c39d5a.zip +0 -0
  141. package/.yarn/cache/encoding-npm-0.1.13-82a1837d30-bb98632f8f.zip +0 -0
  142. package/.yarn/cache/env-paths-npm-2.2.1-7c7577428c-65b5df55a8.zip +0 -0
  143. package/.yarn/cache/err-code-npm-2.0.3-082e0ff9a7-8b7b1be20d.zip +0 -0
  144. package/.yarn/cache/esbuild-darwin-arm64-npm-0.14.54-ec53803fa6-8.zip +0 -0
  145. package/.yarn/cache/esbuild-npm-0.14.54-b3dcd8a41e-49e360b118.zip +0 -0
  146. package/.yarn/cache/fs-minipass-npm-2.1.0-501ef87306-1b8d128dae.zip +0 -0
  147. package/.yarn/cache/fs.realpath-npm-1.0.0-c8f05d8126-99ddea01a7.zip +0 -0
  148. package/.yarn/cache/fsevents-npm-2.3.2-a881d6ac9f-97ade64e75.zip +0 -0
  149. package/.yarn/cache/fsevents-patch-3340e2eb10-8.zip +0 -0
  150. package/.yarn/cache/function-bind-npm-1.1.1-b56b322ae9-b32fbaebb3.zip +0 -0
  151. package/.yarn/cache/gauge-npm-4.0.4-8f878385e9-788b6bfe52.zip +0 -0
  152. package/.yarn/cache/glob-npm-7.2.3-2d866d17a5-29452e97b3.zip +0 -0
  153. package/.yarn/cache/glob-npm-8.0.3-750f909025-50bcdea19d.zip +0 -0
  154. package/.yarn/cache/graceful-fs-npm-4.2.10-79c70989ca-3f109d70ae.zip +0 -0
  155. package/.yarn/cache/has-npm-1.0.3-b7f00631c1-b9ad53d53b.zip +0 -0
  156. package/.yarn/cache/has-unicode-npm-2.0.1-893adb4747-1eab07a743.zip +0 -0
  157. package/.yarn/cache/http-cache-semantics-npm-4.1.0-860520a31f-974de94a81.zip +0 -0
  158. package/.yarn/cache/http-proxy-agent-npm-5.0.0-7f1f121b83-e2ee1ff165.zip +0 -0
  159. package/.yarn/cache/https-proxy-agent-npm-5.0.1-42d65f358e-571fccdf38.zip +0 -0
  160. package/.yarn/cache/humanize-ms-npm-1.2.1-e942bd7329-9c7a74a282.zip +0 -0
  161. package/.yarn/cache/iconv-lite-npm-0.6.3-24b8aae27e-3f60d47a5c.zip +0 -0
  162. package/.yarn/cache/imurmurhash-npm-0.1.4-610c5068a0-7cae75c8cd.zip +0 -0
  163. package/.yarn/cache/indent-string-npm-4.0.0-7b717435b2-824cfb9929.zip +0 -0
  164. package/.yarn/cache/infer-owner-npm-1.0.4-685ac3d2af-181e732764.zip +0 -0
  165. package/.yarn/cache/inflight-npm-1.0.6-ccedb4b908-f4f76aa072.zip +0 -0
  166. package/.yarn/cache/inherits-npm-2.0.4-c66b3957a0-4a48a73384.zip +0 -0
  167. package/.yarn/cache/ip-npm-2.0.0-204facb3cc-cfcfac6b87.zip +0 -0
  168. package/.yarn/cache/is-core-module-npm-2.10.0-6dff9310aa-0f3f77811f.zip +0 -0
  169. package/.yarn/cache/is-fullwidth-code-point-npm-3.0.0-1ecf4ebee5-44a30c2945.zip +0 -0
  170. package/.yarn/cache/is-lambda-npm-1.0.1-7ab55bc8a8-93a32f0194.zip +0 -0
  171. package/.yarn/cache/isexe-npm-2.0.0-b58870bd2e-26bf6c5480.zip +0 -0
  172. package/.yarn/cache/lru-cache-npm-6.0.0-b4c8668fe1-f97f499f89.zip +0 -0
  173. package/.yarn/cache/lru-cache-npm-7.14.0-354cf654ec-efdd329f2c.zip +0 -0
  174. package/.yarn/cache/make-fetch-happen-npm-10.2.1-f1cc7cd2df-2332eb9a8e.zip +0 -0
  175. package/.yarn/cache/minimatch-npm-3.1.2-9405269906-c154e56640.zip +0 -0
  176. package/.yarn/cache/minimatch-npm-5.1.0-34f6240621-15ce53d31a.zip +0 -0
  177. package/.yarn/cache/minipass-collect-npm-1.0.2-3b4676eab5-14df761028.zip +0 -0
  178. package/.yarn/cache/minipass-fetch-npm-2.1.1-c4a8efdb09-1aae0c2240.zip +0 -0
  179. package/.yarn/cache/minipass-flush-npm-1.0.5-efe79d9826-56269a0b22.zip +0 -0
  180. package/.yarn/cache/minipass-npm-3.3.5-a555b091e7-f89f02bcaa.zip +0 -0
  181. package/.yarn/cache/minipass-pipeline-npm-1.2.4-5924cb077f-b14240dac0.zip +0 -0
  182. package/.yarn/cache/minipass-sized-npm-1.0.3-306d86f432-79076749fc.zip +0 -0
  183. package/.yarn/cache/minizlib-npm-2.1.2-ea89cd0cfb-f1fdeac0b0.zip +0 -0
  184. package/.yarn/cache/mkdirp-npm-1.0.4-37f6ef56b9-a96865108c.zip +0 -0
  185. package/.yarn/cache/ms-npm-2.1.2-ec0c1512ff-673cdb2c31.zip +0 -0
  186. package/.yarn/cache/ms-npm-2.1.3-81ff3cfac1-aa92de6080.zip +0 -0
  187. package/.yarn/cache/nanoid-npm-3.3.4-3d250377d6-2fddd6dee9.zip +0 -0
  188. package/.yarn/cache/negotiator-npm-0.6.3-9d50e36171-b8ffeb1e26.zip +0 -0
  189. package/.yarn/cache/node-gyp-npm-9.1.0-2091059b31-1437fa4a87.zip +0 -0
  190. package/.yarn/cache/nopt-npm-5.0.0-304b40fbfe-d35fdec187.zip +0 -0
  191. package/.yarn/cache/npmlog-npm-6.0.2-e0e69455c7-ae238cd264.zip +0 -0
  192. package/.yarn/cache/once-npm-1.4.0-ccf03ef07a-cd0a885013.zip +0 -0
  193. package/.yarn/cache/p-map-npm-4.0.0-4677ae07c7-cb0ab21ec0.zip +0 -0
  194. package/.yarn/cache/path-is-absolute-npm-1.0.1-31bc695ffd-060840f92c.zip +0 -0
  195. package/.yarn/cache/path-parse-npm-1.0.7-09564527b7-49abf3d811.zip +0 -0
  196. package/.yarn/cache/picocolors-npm-1.0.0-d81e0b1927-a2e8092dd8.zip +0 -0
  197. package/.yarn/cache/postcss-npm-8.4.16-7367383579-10eee25efd.zip +0 -0
  198. package/.yarn/cache/promise-inflight-npm-1.0.1-5bb925afac-2274948309.zip +0 -0
  199. package/.yarn/cache/promise-retry-npm-2.0.1-871f0b01b7-f96a3f6d90.zip +0 -0
  200. package/.yarn/cache/readable-stream-npm-3.6.0-23a4a5eb56-d4ea81502d.zip +0 -0
  201. package/.yarn/cache/resolve-npm-1.22.1-3980488690-07af5fc1e8.zip +0 -0
  202. package/.yarn/cache/resolve-patch-46f9469d0d-5656f4d0be.zip +0 -0
  203. package/.yarn/cache/retry-npm-0.12.0-72ac7fb4cc-623bd7d2e5.zip +0 -0
  204. package/.yarn/cache/rimraf-npm-3.0.2-2cb7dac69a-87f4164e39.zip +0 -0
  205. package/.yarn/cache/rollup-npm-2.78.0-09284f4c78-01b5a7ae08.zip +0 -0
  206. package/.yarn/cache/safe-buffer-npm-5.2.1-3481c8aa9b-b99c4b41fd.zip +0 -0
  207. package/.yarn/cache/safer-buffer-npm-2.1.2-8d5c0b705e-cab8f25ae6.zip +0 -0
  208. package/.yarn/cache/semver-npm-7.3.7-3bfe704194-2fa3e87756.zip +0 -0
  209. package/.yarn/cache/set-blocking-npm-2.0.0-49e2cffa24-6e65a05f7c.zip +0 -0
  210. package/.yarn/cache/signal-exit-npm-3.0.7-bd270458a3-a2f098f247.zip +0 -0
  211. package/.yarn/cache/smart-buffer-npm-4.2.0-5ac3f668bb-b5167a7142.zip +0 -0
  212. package/.yarn/cache/socks-npm-2.7.0-cc1cb019db-0b5d94e2b3.zip +0 -0
  213. package/.yarn/cache/socks-proxy-agent-npm-7.0.0-7aacf32ea0-7205543701.zip +0 -0
  214. package/.yarn/cache/source-map-js-npm-1.0.2-ee4f9f9b30-c049a7fc4d.zip +0 -0
  215. package/.yarn/cache/ssri-npm-9.0.1-33ce27f4f8-fb58f5e46b.zip +0 -0
  216. package/.yarn/cache/string-width-npm-4.2.3-2c27177bae-e52c10dc3f.zip +0 -0
  217. package/.yarn/cache/string_decoder-npm-1.3.0-2422117fd0-8417646695.zip +0 -0
  218. package/.yarn/cache/strip-ansi-npm-6.0.1-caddc7cb40-f3cd25890a.zip +0 -0
  219. package/.yarn/cache/supports-preserve-symlinks-flag-npm-1.0.0-f17c4d0028-53b1e247e6.zip +0 -0
  220. package/.yarn/cache/tar-npm-6.1.11-e6ac3cba9c-a04c07bb9e.zip +0 -0
  221. package/.yarn/cache/typescript-npm-4.7.4-65aa6ffb42-5750181b1c.zip +0 -0
  222. package/.yarn/cache/typescript-patch-ae154b3216-96d3030cb0.zip +0 -0
  223. package/.yarn/cache/unique-filename-npm-1.1.1-c885c5095b-cf4998c922.zip +0 -0
  224. package/.yarn/cache/unique-slug-npm-2.0.2-f6ba1ddeb7-5b6876a645.zip +0 -0
  225. package/.yarn/cache/util-deprecate-npm-1.0.2-e3fe1a219c-474acf1146.zip +0 -0
  226. package/.yarn/cache/vite-npm-3.0.2-a17ab24a12-10aebec0df.zip +0 -0
  227. package/.yarn/cache/which-npm-2.0.2-320ddf72f7-1a5c563d3c.zip +0 -0
  228. package/.yarn/cache/wide-align-npm-1.1.5-889d77e592-d5fc37cd56.zip +0 -0
  229. package/.yarn/cache/wrappy-npm-1.0.2-916de4d4b3-159da4805f.zip +0 -0
  230. package/.yarn/cache/yallist-npm-4.0.0-b493d9e907-343617202a.zip +0 -0
  231. package/.yarn/install-state.gz +0 -0
  232. package/DEVELOPER.md +0 -118
  233. package/src/blocks/button/button.jsx +0 -27
  234. package/src/blocks/button/component-info.js +0 -41
  235. package/src/blocks/columns/columns.jsx +0 -102
  236. package/src/blocks/columns/component-info.js +0 -242
  237. package/src/blocks/custom-code/component-info.js +0 -31
  238. package/src/blocks/custom-code/custom-code.jsx +0 -71
  239. package/src/blocks/embed/component-info.js +0 -44
  240. package/src/blocks/embed/embed.jsx +0 -63
  241. package/src/blocks/embed/helpers.js +0 -9
  242. package/src/blocks/form/component-info.js +0 -262
  243. package/src/blocks/form/form.jsx +0 -303
  244. package/src/blocks/fragment/component-info.js +0 -11
  245. package/src/blocks/fragment/fragment.jsx +0 -11
  246. package/src/blocks/image/component-info.js +0 -151
  247. package/src/blocks/image/image.helpers.js +0 -48
  248. package/src/blocks/image/image.jsx +0 -110
  249. package/src/blocks/img/component-info.js +0 -20
  250. package/src/blocks/img/img.jsx +0 -19
  251. package/src/blocks/input/component-info.js +0 -74
  252. package/src/blocks/input/input.jsx +0 -21
  253. package/src/blocks/raw-text/component-info.js +0 -16
  254. package/src/blocks/raw-text/raw-text.jsx +0 -12
  255. package/src/blocks/section/component-info.js +0 -49
  256. package/src/blocks/section/section.jsx +0 -20
  257. package/src/blocks/select/component-info.js +0 -59
  258. package/src/blocks/select/select.jsx +0 -24
  259. package/src/blocks/submit-button/component-info.js +0 -28
  260. package/src/blocks/submit-button/submit-button.jsx +0 -11
  261. package/src/blocks/symbol/component-info.js +0 -43
  262. package/src/blocks/symbol/symbol.jsx +0 -78
  263. package/src/blocks/text/component-info.js +0 -24
  264. package/src/blocks/text/text.jsx +0 -7
  265. package/src/blocks/textarea/component-info.js +0 -47
  266. package/src/blocks/textarea/textarea.jsx +0 -15
  267. package/src/blocks/util.js +0 -7
  268. package/src/blocks/video/component-info.js +0 -106
  269. package/src/blocks/video/video.jsx +0 -53
  270. package/src/components/render-block/block-styles.jsx +0 -60
  271. package/src/components/render-block/render-block.helpers.js +0 -23
  272. package/src/components/render-block/render-block.jsx +0 -220
  273. package/src/components/render-block/render-component.jsx +0 -35
  274. package/src/components/render-block/render-repeated-block.jsx +0 -40
  275. package/src/components/render-block/types.js +0 -0
  276. package/src/components/render-blocks.jsx +0 -93
  277. package/src/components/render-content/components/render-styles.jsx +0 -76
  278. package/src/components/render-content/index.js +0 -4
  279. package/src/components/render-content/render-content.jsx +0 -368
  280. package/src/components/render-inlined-styles.jsx +0 -26
  281. package/src/constants/builder-registered-components.js +0 -51
  282. package/src/constants/device-sizes.js +0 -21
  283. package/src/constants/target.js +0 -4
  284. package/src/context/builder.context.js +0 -5
  285. package/src/functions/camel-to-kebab-case.js +0 -4
  286. package/src/functions/convert-style-object.js +0 -6
  287. package/src/functions/evaluate.js +0 -28
  288. package/src/functions/event-handler-name.js +0 -7
  289. package/src/functions/get-block-actions.js +0 -23
  290. package/src/functions/get-block-component-options.js +0 -28
  291. package/src/functions/get-block-properties.js +0 -29
  292. package/src/functions/get-block-styles.js +0 -34
  293. package/src/functions/get-block-tag.js +0 -6
  294. package/src/functions/get-builder-search-params/fn.test.js +0 -13
  295. package/src/functions/get-builder-search-params/index.js +0 -33
  296. package/src/functions/get-content/ab-testing.js +0 -38
  297. package/src/functions/get-content/fn.test.js +0 -31
  298. package/src/functions/get-content/index.js +0 -96
  299. package/src/functions/get-content/types.js +0 -0
  300. package/src/functions/get-fetch.js +0 -34
  301. package/src/functions/get-global-this.js +0 -18
  302. package/src/functions/get-processed-block.js +0 -57
  303. package/src/functions/get-processed-block.test.js +0 -32
  304. package/src/functions/if-target.js +0 -15
  305. package/src/functions/is-browser.js +0 -6
  306. package/src/functions/is-editing.js +0 -7
  307. package/src/functions/is-iframe.js +0 -7
  308. package/src/functions/is-previewing.js +0 -14
  309. package/src/functions/mark-mutable.js +0 -14
  310. package/src/functions/on-change.js +0 -27
  311. package/src/functions/on-change.test.js +0 -19
  312. package/src/functions/register-component.js +0 -72
  313. package/src/functions/register.js +0 -29
  314. package/src/functions/sanitize-styles.js +0 -5
  315. package/src/functions/set-editor-settings.js +0 -15
  316. package/src/functions/set.js +0 -11
  317. package/src/functions/set.test.js +0 -16
  318. package/src/functions/track.js +0 -115
  319. package/src/functions/transform-block.js +0 -6
  320. package/src/helpers/cookie.js +0 -59
  321. package/src/helpers/css.js +0 -12
  322. package/src/helpers/flatten.js +0 -34
  323. package/src/helpers/localStorage.js +0 -34
  324. package/src/helpers/nullable.js +0 -4
  325. package/src/helpers/sessionId.js +0 -26
  326. package/src/helpers/time.js +0 -5
  327. package/src/helpers/url.js +0 -10
  328. package/src/helpers/url.test.js +0 -15
  329. package/src/helpers/uuid.js +0 -13
  330. package/src/helpers/visitorId.js +0 -33
  331. package/src/index-helpers/blocks-exports.js +0 -22
  332. package/src/index-helpers/top-of-file.js +0 -4
  333. package/src/index.js +0 -10
  334. package/src/scripts/init-editing.js +0 -79
  335. package/src/types/builder-block.js +0 -0
  336. package/src/types/builder-content.js +0 -0
  337. package/src/types/can-track.js +0 -0
  338. package/src/types/components.js +0 -0
  339. package/src/types/deep-partial.js +0 -0
  340. package/src/types/element.js +0 -0
  341. package/src/types/targets.js +0 -0
  342. package/src/types/typescript.js +0 -0
  343. package/tsconfig.json +0 -110
  344. package/types.d.ts +0 -8
  345. package/vite.config.ts +0 -17
@@ -1,35 +0,0 @@
1
- // GENERATED BY MITOSIS
2
-
3
- import { markPropsMutable } from "../../functions/mark-mutable.js";
4
- import BlockStyles from "./block-styles";
5
- import RenderBlock from "./render-block";
6
- import { Fragment, h } from "@builder.io/qwik";
7
- export const RenderComponent = (props) => {
8
- return (
9
- <>
10
- {props.componentRef ? (
11
- <props.componentRef {...markPropsMutable(props.componentOptions)}>
12
- {(props.blockChildren || []).map((child) => {
13
- return (
14
- <RenderBlock
15
- key={"render-block-" + child.id}
16
- block={child}
17
- context={props.context}
18
- ></RenderBlock>
19
- );
20
- })}
21
- {(props.blockChildren || []).map((child) => {
22
- return (
23
- <BlockStyles
24
- key={"block-style-" + child.id}
25
- block={child}
26
- context={props.context}
27
- ></BlockStyles>
28
- );
29
- })}
30
- </props.componentRef>
31
- ) : null}
32
- </>
33
- );
34
- };
35
- export default RenderComponent;
@@ -1,40 +0,0 @@
1
- // GENERATED BY MITOSIS
2
-
3
- import BuilderContext from "../../context/builder.context";
4
- import RenderBlock from "./render-block";
5
- import {
6
- Fragment,
7
- component$,
8
- h,
9
- useContextProvider,
10
- useStore,
11
- } from "@builder.io/qwik";
12
- export const RenderRepeatedBlock = component$((props) => {
13
- useContextProvider(
14
- BuilderContext,
15
- useStore({
16
- content: (() => {
17
- return props.repeatContext.content;
18
- })(),
19
- state: (() => {
20
- return props.repeatContext.state;
21
- })(),
22
- context: (() => {
23
- return props.repeatContext.context;
24
- })(),
25
- apiKey: (() => {
26
- return props.repeatContext.apiKey;
27
- })(),
28
- registeredComponents: (() => {
29
- return props.repeatContext.registeredComponents;
30
- })(),
31
- })
32
- );
33
- return (
34
- <RenderBlock
35
- block={props.block}
36
- context={props.repeatContext}
37
- ></RenderBlock>
38
- );
39
- });
40
- export default RenderRepeatedBlock;
File without changes
@@ -1,93 +0,0 @@
1
- // GENERATED BY MITOSIS
2
-
3
- import BuilderContext from "../context/builder.context";
4
- import { isEditing } from "../functions/is-editing.js";
5
- import BlockStyles from "./render-block/block-styles";
6
- import RenderBlock from "./render-block/render-block";
7
- import {
8
- Fragment,
9
- component$,
10
- h,
11
- useContext,
12
- useStylesScoped$,
13
- } from "@builder.io/qwik";
14
- export const className = function className(props, state, builderContext) {
15
- return "builder-blocks" + (!props.blocks?.length ? " no-blocks" : "");
16
- };
17
- export const onClick = function onClick(props, state, builderContext) {
18
- if (isEditing() && !props.blocks?.length) {
19
- window.parent?.postMessage(
20
- {
21
- type: "builder.clickEmptyBlocks",
22
- data: {
23
- parentElementId: props.parent,
24
- dataPath: props.path,
25
- },
26
- },
27
- "*"
28
- );
29
- }
30
- };
31
- export const onMouseEnter = function onMouseEnter(
32
- props,
33
- state,
34
- builderContext
35
- ) {
36
- if (isEditing() && !props.blocks?.length) {
37
- window.parent?.postMessage(
38
- {
39
- type: "builder.hoverEmptyBlocks",
40
- data: {
41
- parentElementId: props.parent,
42
- dataPath: props.path,
43
- },
44
- },
45
- "*"
46
- );
47
- }
48
- };
49
- export const RenderBlocks = component$((props) => {
50
- useStylesScoped$(STYLES);
51
- const builderContext = useContext(BuilderContext);
52
- const state = {};
53
- return (
54
- <div
55
- class={className(props, state, builderContext) + " div-RenderBlocks"}
56
- builder-path={props.path}
57
- builder-parent-id={props.parent}
58
- dataSet={{
59
- class: className(props, state, builderContext),
60
- }}
61
- onClick$={(event) => onClick(props, state, builderContext)}
62
- onMouseEnter$={(event) => onMouseEnter(props, state, builderContext)}
63
- >
64
- {props.blocks
65
- ? (props.blocks || []).map((block) => {
66
- return (
67
- <RenderBlock
68
- key={"render-block-" + block.id}
69
- block={block}
70
- context={builderContext}
71
- ></RenderBlock>
72
- );
73
- })
74
- : null}
75
- {props.blocks
76
- ? (props.blocks || []).map((block) => {
77
- return (
78
- <BlockStyles
79
- key={"block-style-" + block.id}
80
- block={block}
81
- context={builderContext}
82
- ></BlockStyles>
83
- );
84
- })
85
- : null}
86
- </div>
87
- );
88
- });
89
- export default RenderBlocks;
90
- export const STYLES = `.div-RenderBlocks {
91
- display: flex;
92
- flex-direction: column;
93
- align-items: stretch; }`;
@@ -1,76 +0,0 @@
1
- // GENERATED BY MITOSIS
2
-
3
- import RenderInlinedStyles from "../../render-inlined-styles";
4
- import { Fragment, component$, h } from "@builder.io/qwik";
5
- export const getCssFromFont = function getCssFromFont(props, state, font) {
6
- // TODO: compute what font sizes are used and only load those.......
7
- const family =
8
- font.family +
9
- (font.kind && !font.kind.includes("#") ? ", " + font.kind : "");
10
- const name = family.split(",")[0];
11
- const url = font.fileUrl ?? font?.files?.regular;
12
- let str = "";
13
-
14
- if (url && family && name) {
15
- str += `
16
- @font-face {
17
- font-family: "${family}";
18
- src: local("${name}"), url('${url}') format('woff2');
19
- font-display: fallback;
20
- font-weight: 400;
21
- }
22
- `.trim();
23
- }
24
-
25
- if (font.files) {
26
- for (const weight in font.files) {
27
- const isNumber = String(Number(weight)) === weight;
28
-
29
- if (!isNumber) {
30
- continue;
31
- } // TODO: maybe limit number loaded
32
-
33
- const weightUrl = font.files[weight];
34
-
35
- if (weightUrl && weightUrl !== url) {
36
- str += `
37
- @font-face {
38
- font-family: "${family}";
39
- src: url('${weightUrl}') format('woff2');
40
- font-display: fallback;
41
- font-weight: ${weight};
42
- }
43
- `.trim();
44
- }
45
- }
46
- }
47
-
48
- return str;
49
- };
50
- export const getFontCss = function getFontCss(props, state, { customFonts }) {
51
- // TODO: flag for this
52
- // if (!this.builder.allowCustomFonts) {
53
- // return '';
54
- // }
55
- // TODO: separate internal data from external
56
- return (
57
- customFonts?.map((font) => getCssFromFont(props, state, font))?.join(" ") ||
58
- ""
59
- );
60
- };
61
- export const injectedStyles = function injectedStyles(props, state) {
62
- return `
63
- ${props.cssCode || ""}
64
- ${getFontCss(props, state, {
65
- customFonts: props.customFonts,
66
- })}`;
67
- };
68
- export const RenderContentStyles = component$((props) => {
69
- const state = {};
70
- return (
71
- <RenderInlinedStyles
72
- styles={injectedStyles(props, state)}
73
- ></RenderInlinedStyles>
74
- );
75
- });
76
- export default RenderContentStyles;
@@ -1,4 +0,0 @@
1
- import { default as default2 } from "./render-content.jsx";
2
- export {
3
- default2 as default
4
- };
@@ -1,368 +0,0 @@
1
- // GENERATED BY MITOSIS
2
-
3
- import { getDefaultRegisteredComponents } from "../../constants/builder-registered-components.js";
4
- import { TARGET } from "../../constants/target.js";
5
- import BuilderContext from "../../context/builder.context";
6
- import { evaluate } from "../../functions/evaluate.js";
7
- import { getContent } from "../../functions/get-content/index.js";
8
- import { getFetch } from "../../functions/get-fetch.js";
9
- import { isBrowser } from "../../functions/is-browser.js";
10
- import { isEditing } from "../../functions/is-editing.js";
11
- import { isPreviewing } from "../../functions/is-previewing.js";
12
- import { markMutable } from "../../functions/mark-mutable.js";
13
- import {
14
- components,
15
- createRegisterComponentMessage,
16
- } from "../../functions/register-component.js";
17
- import { track } from "../../functions/track.js";
18
- import {
19
- registerInsertMenu,
20
- setupBrowserForEditing,
21
- } from "../../scripts/init-editing.js";
22
- import RenderBlocks from "../render-blocks";
23
- import RenderContentStyles from "./components/render-styles";
24
- import {
25
- Fragment,
26
- _useMutableProps,
27
- component$,
28
- h,
29
- useCleanup$,
30
- useClientEffect$,
31
- useContextProvider,
32
- useRef,
33
- useStore,
34
- useWatch$,
35
- } from "@builder.io/qwik";
36
- export const useContent = function useContent(props, state, elementRef) {
37
- if (!props.content && !state.overrideContent) {
38
- return undefined;
39
- }
40
-
41
- const mergedContent = {
42
- ...props.content,
43
- ...state.overrideContent,
44
- data: {
45
- ...props.content?.data,
46
- ...props.data,
47
- ...state.overrideContent?.data,
48
- },
49
- };
50
- return mergedContent;
51
- };
52
- export const canTrackToUse = function canTrackToUse(props, state, elementRef) {
53
- return props.canTrack || true;
54
- };
55
- export const contentState = function contentState(props, state, elementRef) {
56
- return {
57
- ...props.content?.data?.state,
58
- ...props.data,
59
- ...state.overrideState,
60
- };
61
- };
62
- export const contextContext = function contextContext(
63
- props,
64
- state,
65
- elementRef
66
- ) {
67
- return props.context || {};
68
- };
69
- export const allRegisteredComponents = function allRegisteredComponents(
70
- props,
71
- state,
72
- elementRef
73
- ) {
74
- const allComponentsArray = [
75
- ...getDefaultRegisteredComponents(), // While this `components` object is deprecated, we must maintain support for it.
76
- // Since users are able to override our default components, we need to make sure that we do not break such
77
- // existing usage.
78
- // This is why we spread `components` after the default Builder.io components, but before the `props.customComponents`,
79
- // which is the new standard way of providing custom components, and must therefore take precedence.
80
- ...components,
81
- ...(props.customComponents || []),
82
- ];
83
- const allComponents = allComponentsArray.reduce(
84
- (acc, curr) => ({ ...acc, [curr.name]: curr }),
85
- {}
86
- );
87
- return allComponents;
88
- };
89
- export const processMessage = function processMessage(
90
- props,
91
- state,
92
- elementRef,
93
- event
94
- ) {
95
- const { data } = event;
96
-
97
- if (data) {
98
- switch (data.type) {
99
- case "builder.contentUpdate": {
100
- const messageContent = data.data;
101
- const key =
102
- messageContent.key ||
103
- messageContent.alias ||
104
- messageContent.entry ||
105
- messageContent.modelName;
106
- const contentData = messageContent.data;
107
-
108
- if (key === props.model) {
109
- state.overrideContent = contentData;
110
- state.forceReRenderCount = state.forceReRenderCount + 1; // This is a hack to force Qwik to re-render.
111
- }
112
-
113
- break;
114
- }
115
-
116
- case "builder.patchUpdates": {
117
- // TODO
118
- break;
119
- }
120
- }
121
- }
122
- };
123
- export const evaluateJsCode = function evaluateJsCode(
124
- props,
125
- state,
126
- elementRef
127
- ) {
128
- // run any dynamic JS code attached to content
129
- const jsCode = useContent(props, state, elementRef)?.data?.jsCode;
130
-
131
- if (jsCode) {
132
- evaluate({
133
- code: jsCode,
134
- context: contextContext(props, state, elementRef),
135
- state: contentState(props, state, elementRef),
136
- });
137
- }
138
- };
139
- export const httpReqsData = function httpReqsData(props, state, elementRef) {
140
- return {};
141
- };
142
- export const onClick = function onClick(props, state, elementRef, _event) {
143
- if (useContent(props, state, elementRef)) {
144
- track({
145
- type: "click",
146
- canTrack: canTrackToUse(props, state, elementRef),
147
- contentId: useContent(props, state, elementRef).id,
148
- orgId: props.apiKey,
149
- });
150
- }
151
- };
152
- export const evalExpression = function evalExpression(
153
- props,
154
- state,
155
- elementRef,
156
- expression
157
- ) {
158
- return expression.replace(/{{([^}]+)}}/g, (_match, group) =>
159
- evaluate({
160
- code: group,
161
- context: contextContext(props, state, elementRef),
162
- state: contentState(props, state, elementRef),
163
- })
164
- );
165
- };
166
- export const handleRequest = function handleRequest(
167
- props,
168
- state,
169
- elementRef,
170
- { url, key }
171
- ) {
172
- const fetchAndSetState = async () => {
173
- const fetch = await getFetch();
174
- const response = await fetch(url);
175
- const json = await response.json();
176
- const newOverrideState = { ...state.overrideState, [key]: json };
177
- state.overrideState = newOverrideState;
178
- };
179
-
180
- fetchAndSetState();
181
- };
182
- export const runHttpRequests = function runHttpRequests(
183
- props,
184
- state,
185
- elementRef
186
- ) {
187
- const requests =
188
- useContent(props, state, elementRef)?.data?.httpRequests ?? {};
189
- Object.entries(requests).forEach(([key, url]) => {
190
- if (url && (!httpReqsData(props, state, elementRef)[key] || isEditing())) {
191
- const evaluatedUrl = evalExpression(props, state, elementRef, url);
192
- handleRequest(props, state, elementRef, {
193
- url: evaluatedUrl,
194
- key,
195
- });
196
- }
197
- });
198
- };
199
- export const emitStateUpdate = function emitStateUpdate(
200
- props,
201
- state,
202
- elementRef
203
- ) {
204
- if (isEditing()) {
205
- window.dispatchEvent(
206
- new CustomEvent("builder:component:stateChange", {
207
- detail: {
208
- state: contentState(props, state, elementRef),
209
- ref: {
210
- name: props.model,
211
- },
212
- },
213
- })
214
- );
215
- }
216
- };
217
- export const shouldRenderContentStyles = function shouldRenderContentStyles(
218
- props,
219
- state,
220
- elementRef
221
- ) {
222
- return Boolean(
223
- (useContent(props, state, elementRef)?.data?.cssCode ||
224
- useContent(props, state, elementRef)?.data?.customFonts?.length) &&
225
- TARGET !== "reactNative"
226
- );
227
- };
228
- export const RenderContent = component$((props) => {
229
- const elementRef = useRef();
230
- const state = useStore({
231
- forceReRenderCount: 0,
232
- overrideContent: null,
233
- update: 0,
234
- overrideState: {},
235
- });
236
- useContextProvider(
237
- BuilderContext,
238
- useStore({
239
- content: (() => {
240
- return useContent(props, state, elementRef);
241
- })(),
242
- state: (() => {
243
- return contentState(props, state, elementRef);
244
- })(),
245
- context: (() => {
246
- return contextContext(props, state, elementRef);
247
- })(),
248
- apiKey: (() => {
249
- return props.apiKey;
250
- })(),
251
- registeredComponents: (() => {
252
- return allRegisteredComponents(props, state, elementRef);
253
- })(),
254
- })
255
- );
256
- useClientEffect$(() => {
257
- if (isBrowser()) {
258
- if (isEditing()) {
259
- state.forceReRenderCount = state.forceReRenderCount + 1;
260
- _useMutableProps(elementRef.current, true);
261
-
262
- registerInsertMenu();
263
- setupBrowserForEditing();
264
- Object.values(
265
- allRegisteredComponents(props, state, elementRef)
266
- ).forEach((registeredComponent) => {
267
- const message = createRegisterComponentMessage(registeredComponent);
268
- window.parent?.postMessage(message, "*");
269
- });
270
- window.addEventListener(
271
- "message",
272
- processMessage.bind(null, props, state, elementRef)
273
- );
274
- window.addEventListener(
275
- "builder:component:stateChangeListenerActivated",
276
- emitStateUpdate.bind(null, props, state, elementRef)
277
- );
278
- }
279
-
280
- if (useContent(props, state, elementRef)) {
281
- track({
282
- type: "impression",
283
- canTrack: canTrackToUse(props, state, elementRef),
284
- contentId: useContent(props, state, elementRef).id,
285
- orgId: props.apiKey,
286
- });
287
- } // override normal content in preview mode
288
-
289
- if (isPreviewing()) {
290
- const searchParams = new URL(location.href).searchParams;
291
-
292
- if (
293
- props.model &&
294
- searchParams.get("builder.preview") === props.model
295
- ) {
296
- const previewApiKey =
297
- searchParams.get("apiKey") || searchParams.get("builder.space");
298
-
299
- if (previewApiKey) {
300
- getContent({
301
- model: props.model,
302
- apiKey: previewApiKey,
303
- }).then((content) => {
304
- if (content) {
305
- state.overrideContent = content;
306
- }
307
- });
308
- }
309
- }
310
- }
311
-
312
- evaluateJsCode(props, state, elementRef);
313
- runHttpRequests(props, state, elementRef);
314
- emitStateUpdate(props, state, elementRef);
315
- }
316
- });
317
- useWatch$(({ track }) => {
318
- state.useContent?.data && track(state.useContent?.data, "jsCode");
319
- evaluateJsCode(props, state, elementRef);
320
- });
321
- useWatch$(({ track }) => {
322
- state.useContent?.data && track(state.useContent?.data, "httpRequests");
323
- runHttpRequests(props, state, elementRef);
324
- });
325
- useWatch$(({ track }) => {
326
- state && track(state, "contentState");
327
- emitStateUpdate(props, state, elementRef);
328
- });
329
- useCleanup$(() => {
330
- if (isBrowser()) {
331
- window.removeEventListener(
332
- "message",
333
- processMessage.bind(null, props, state, elementRef)
334
- );
335
- window.removeEventListener(
336
- "builder:component:stateChangeListenerActivated",
337
- emitStateUpdate.bind(null, props, state, elementRef)
338
- );
339
- }
340
- });
341
- return (
342
- <>
343
- {useContent(props, state, elementRef) ? (
344
- <div
345
- ref={elementRef}
346
- onClick$={(event) => onClick(props, state, elementRef, event)}
347
- builder-content-id={useContent(props, state, elementRef)?.id}
348
- >
349
- {shouldRenderContentStyles(props, state, elementRef) ? (
350
- <RenderContentStyles
351
- cssCode={useContent(props, state, elementRef)?.data?.cssCode}
352
- customFonts={
353
- useContent(props, state, elementRef)?.data?.customFonts
354
- }
355
- ></RenderContentStyles>
356
- ) : null}
357
- <RenderBlocks
358
- blocks={markMutable(
359
- useContent(props, state, elementRef)?.data?.blocks
360
- )}
361
- key={state.forceReRenderCount}
362
- ></RenderBlocks>
363
- </div>
364
- ) : null}
365
- </>
366
- );
367
- });
368
- export default RenderContent;
@@ -1,26 +0,0 @@
1
- // GENERATED BY MITOSIS
2
-
3
- import { TARGET } from "../constants/target.js";
4
- import { Fragment, h } from "@builder.io/qwik";
5
- export const injectedStyleScript = function injectedStyleScript(props, state) {
6
- return `<${tagName(props, state)}>${props.styles}</${tagName(props, state)}>`;
7
- };
8
- export const tagName = function tagName(props, state) {
9
- // NOTE: we have to obfusctate the name of the tag due to a limitation in the svelte-preprocessor plugin.
10
- // https://github.com/sveltejs/vite-plugin-svelte/issues/315#issuecomment-1109000027
11
- return "sty" + "le";
12
- };
13
- export const RenderInlinedStyles = (props) => {
14
- const state = {};
15
- state.tagName = tagName(props, state);
16
- return (
17
- <>
18
- {TARGET === "svelte" ? (
19
- <div dangerouslySetInnerHTML={injectedStyleScript(props, state)}></div>
20
- ) : (
21
- <state.tagName>{props.styles}</state.tagName>
22
- )}
23
- </>
24
- );
25
- };
26
- export default RenderInlinedStyles;
@@ -1,51 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
3
- var __hasOwnProp = Object.prototype.hasOwnProperty;
4
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
5
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6
- var __spreadValues = (a, b) => {
7
- for (var prop in b || (b = {}))
8
- if (__hasOwnProp.call(b, prop))
9
- __defNormalProp(a, prop, b[prop]);
10
- if (__getOwnPropSymbols)
11
- for (var prop of __getOwnPropSymbols(b)) {
12
- if (__propIsEnum.call(b, prop))
13
- __defNormalProp(a, prop, b[prop]);
14
- }
15
- return a;
16
- };
17
- import { default as Button } from "../blocks/button/button.jsx";
18
- import { componentInfo as buttonComponentInfo } from "../blocks/button/component-info.js";
19
- import { default as Columns } from "../blocks/columns/columns.jsx";
20
- import { componentInfo as columnsComponentInfo } from "../blocks/columns/component-info.js";
21
- import { componentInfo as fragmentComponentInfo } from "../blocks/fragment/component-info.js";
22
- import { default as Fragment } from "../blocks/fragment/fragment.jsx";
23
- import { componentInfo as imageComponentInfo } from "../blocks/image/component-info.js";
24
- import { default as Image } from "../blocks/image/image.jsx";
25
- import { componentInfo as sectionComponentInfo } from "../blocks/section/component-info.js";
26
- import { default as Section } from "../blocks/section/section.jsx";
27
- import { componentInfo as symbolComponentInfo } from "../blocks/symbol/component-info.js";
28
- import { default as Symbol } from "../blocks/symbol/symbol.jsx";
29
- import { componentInfo as textComponentInfo } from "../blocks/text/component-info.js";
30
- import { default as Text } from "../blocks/text/text.jsx";
31
- import { componentInfo as videoComponentInfo } from "../blocks/video/component-info.js";
32
- import { default as Video } from "../blocks/video/video.jsx";
33
- import { componentInfo as embedComponentInfo } from "../blocks/embed/component-info.js";
34
- import { default as embed } from "../blocks/embed/embed.jsx";
35
- import { default as Img } from "../blocks/img/img.jsx";
36
- import { componentInfo as imgComponentInfo } from "../blocks/img/component-info.js";
37
- const getDefaultRegisteredComponents = () => [
38
- __spreadValues({ component: Columns }, columnsComponentInfo),
39
- __spreadValues({ component: Image }, imageComponentInfo),
40
- __spreadValues({ component: Img }, imgComponentInfo),
41
- __spreadValues({ component: Text }, textComponentInfo),
42
- __spreadValues({ component: Video }, videoComponentInfo),
43
- __spreadValues({ component: Symbol }, symbolComponentInfo),
44
- __spreadValues({ component: Button }, buttonComponentInfo),
45
- __spreadValues({ component: Section }, sectionComponentInfo),
46
- __spreadValues({ component: Fragment }, fragmentComponentInfo),
47
- __spreadValues({ component: embed }, embedComponentInfo)
48
- ];
49
- export {
50
- getDefaultRegisteredComponents
51
- };