@builder.io/sdk-qwik 0.16.19 → 0.16.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 (468) hide show
  1. package/lib/browser/blocks/accordion/accordion.qwik.cjs +143 -74
  2. package/lib/browser/blocks/accordion/accordion.qwik.mjs +143 -74
  3. package/lib/browser/blocks/accordion/component-info.qwik.cjs +1 -2
  4. package/lib/browser/blocks/accordion/component-info.qwik.mjs +1 -2
  5. package/lib/browser/blocks/button/button.qwik.cjs +17 -8
  6. package/lib/browser/blocks/button/button.qwik.mjs +17 -8
  7. package/lib/browser/blocks/columns/columns.qwik.cjs +119 -66
  8. package/lib/browser/blocks/columns/columns.qwik.mjs +119 -66
  9. package/lib/browser/blocks/columns/component-info.qwik.cjs +3 -4
  10. package/lib/browser/blocks/columns/component-info.qwik.mjs +3 -4
  11. package/lib/browser/blocks/custom-code/custom-code.qwik.cjs +22 -18
  12. package/lib/browser/blocks/custom-code/custom-code.qwik.mjs +23 -19
  13. package/lib/browser/blocks/embed/embed.qwik.cjs +23 -17
  14. package/lib/browser/blocks/embed/embed.qwik.mjs +23 -17
  15. package/lib/browser/blocks/form/form/form.qwik.cjs +128 -74
  16. package/lib/browser/blocks/form/form/form.qwik.mjs +129 -75
  17. package/lib/browser/blocks/form/input/input.qwik.cjs +2 -2
  18. package/lib/browser/blocks/form/input/input.qwik.mjs +3 -3
  19. package/lib/browser/blocks/form/select/select.qwik.cjs +5 -7
  20. package/lib/browser/blocks/form/select/select.qwik.mjs +6 -8
  21. package/lib/browser/blocks/form/submit-button/submit-button.qwik.cjs +9 -7
  22. package/lib/browser/blocks/form/submit-button/submit-button.qwik.mjs +10 -8
  23. package/lib/browser/blocks/form/textarea/textarea.qwik.cjs +21 -11
  24. package/lib/browser/blocks/form/textarea/textarea.qwik.mjs +22 -12
  25. package/lib/browser/blocks/fragment/fragment.qwik.cjs +3 -6
  26. package/lib/browser/blocks/fragment/fragment.qwik.mjs +4 -7
  27. package/lib/browser/blocks/image/component-info.qwik.cjs +3 -6
  28. package/lib/browser/blocks/image/component-info.qwik.mjs +3 -6
  29. package/lib/browser/blocks/image/image.helpers.qwik.cjs +6 -12
  30. package/lib/browser/blocks/image/image.helpers.qwik.mjs +6 -12
  31. package/lib/browser/blocks/image/image.qwik.cjs +89 -63
  32. package/lib/browser/blocks/image/image.qwik.mjs +89 -63
  33. package/lib/browser/blocks/img/img.qwik.cjs +18 -12
  34. package/lib/browser/blocks/img/img.qwik.mjs +18 -12
  35. package/lib/browser/blocks/section/section.qwik.cjs +6 -7
  36. package/lib/browser/blocks/section/section.qwik.mjs +7 -8
  37. package/lib/browser/blocks/slot/slot.qwik.cjs +43 -17
  38. package/lib/browser/blocks/slot/slot.qwik.mjs +43 -17
  39. package/lib/browser/blocks/symbol/symbol.helpers.qwik.cjs +1 -2
  40. package/lib/browser/blocks/symbol/symbol.helpers.qwik.mjs +1 -2
  41. package/lib/browser/blocks/symbol/symbol.qwik.cjs +137 -45
  42. package/lib/browser/blocks/symbol/symbol.qwik.mjs +137 -45
  43. package/lib/browser/blocks/tabs/tabs.qwik.cjs +99 -45
  44. package/lib/browser/blocks/tabs/tabs.qwik.mjs +99 -45
  45. package/lib/browser/blocks/text/text.qwik.cjs +15 -11
  46. package/lib/browser/blocks/text/text.qwik.mjs +15 -11
  47. package/lib/browser/blocks/video/video.qwik.cjs +87 -73
  48. package/lib/browser/blocks/video/video.qwik.mjs +88 -74
  49. package/lib/browser/components/awaiter.qwik.cjs +7 -8
  50. package/lib/browser/components/awaiter.qwik.mjs +8 -9
  51. package/lib/browser/components/block/animator.qwik.cjs +11 -22
  52. package/lib/browser/components/block/animator.qwik.mjs +11 -22
  53. package/lib/browser/components/block/block.helpers.qwik.cjs +4 -8
  54. package/lib/browser/components/block/block.helpers.qwik.mjs +4 -8
  55. package/lib/browser/components/block/block.qwik.cjs +320 -114
  56. package/lib/browser/components/block/block.qwik.mjs +321 -115
  57. package/lib/browser/components/block/components/block-styles.qwik.cjs +39 -22
  58. package/lib/browser/components/block/components/block-styles.qwik.mjs +40 -23
  59. package/lib/browser/components/block/components/block-wrapper.qwik.cjs +18 -12
  60. package/lib/browser/components/block/components/block-wrapper.qwik.mjs +18 -12
  61. package/lib/browser/components/block/components/component-ref/component-ref.qwik.cjs +29 -12
  62. package/lib/browser/components/block/components/component-ref/component-ref.qwik.mjs +31 -14
  63. package/lib/browser/components/block/components/interactive-element.qwik.cjs +58 -25
  64. package/lib/browser/components/block/components/interactive-element.qwik.mjs +59 -26
  65. package/lib/browser/components/block/components/repeated-block.qwik.cjs +31 -10
  66. package/lib/browser/components/block/components/repeated-block.qwik.mjs +32 -11
  67. package/lib/browser/components/blocks/blocks-wrapper.qwik.cjs +73 -25
  68. package/lib/browser/components/blocks/blocks-wrapper.qwik.mjs +73 -25
  69. package/lib/browser/components/blocks/blocks.qwik.cjs +84 -20
  70. package/lib/browser/components/blocks/blocks.qwik.mjs +85 -21
  71. package/lib/browser/components/content/components/enable-editor.qwik.cjs +175 -90
  72. package/lib/browser/components/content/components/enable-editor.qwik.mjs +176 -91
  73. package/lib/browser/components/content/components/styles.helpers.qwik.cjs +6 -12
  74. package/lib/browser/components/content/components/styles.helpers.qwik.mjs +6 -12
  75. package/lib/browser/components/content/components/styles.qwik.cjs +20 -8
  76. package/lib/browser/components/content/components/styles.qwik.mjs +20 -8
  77. package/lib/browser/components/content/content.helpers.qwik.cjs +1 -2
  78. package/lib/browser/components/content/content.helpers.qwik.mjs +1 -2
  79. package/lib/browser/components/content/content.qwik.cjs +213 -51
  80. package/lib/browser/components/content/content.qwik.mjs +213 -51
  81. package/lib/browser/components/content-variants/content-variants.qwik.cjs +325 -76
  82. package/lib/browser/components/content-variants/content-variants.qwik.mjs +326 -77
  83. package/lib/browser/components/dynamic-renderer/dynamic-renderer.qwik.cjs +12 -11
  84. package/lib/browser/components/dynamic-renderer/dynamic-renderer.qwik.mjs +13 -12
  85. package/lib/browser/components/inlined-script.qwik.cjs +13 -8
  86. package/lib/browser/components/inlined-script.qwik.mjs +14 -9
  87. package/lib/browser/components/inlined-styles.qwik.cjs +13 -8
  88. package/lib/browser/components/inlined-styles.qwik.mjs +14 -9
  89. package/lib/browser/constants/device-sizes.qwik.cjs +1 -2
  90. package/lib/browser/constants/device-sizes.qwik.mjs +1 -2
  91. package/lib/browser/constants/sdk-version.qwik.cjs +1 -1
  92. package/lib/browser/constants/sdk-version.qwik.mjs +1 -1
  93. package/lib/browser/functions/evaluate/evaluate.qwik.cjs +2 -4
  94. package/lib/browser/functions/evaluate/evaluate.qwik.mjs +2 -4
  95. package/lib/browser/functions/evaluate/helpers.qwik.cjs +3 -6
  96. package/lib/browser/functions/evaluate/helpers.qwik.mjs +3 -6
  97. package/lib/browser/functions/evaluate/should-force-browser-runtime-in-node.qwik.cjs +1 -2
  98. package/lib/browser/functions/evaluate/should-force-browser-runtime-in-node.qwik.mjs +1 -2
  99. package/lib/browser/functions/get-block-actions-handler.qwik.cjs +14 -8
  100. package/lib/browser/functions/get-block-actions-handler.qwik.mjs +15 -9
  101. package/lib/browser/functions/get-block-actions.qwik.cjs +2 -4
  102. package/lib/browser/functions/get-block-actions.qwik.mjs +2 -4
  103. package/lib/browser/functions/get-builder-search-params/index.qwik.cjs +2 -4
  104. package/lib/browser/functions/get-builder-search-params/index.qwik.mjs +2 -4
  105. package/lib/browser/functions/get-content/generate-content-url.qwik.cjs +11 -22
  106. package/lib/browser/functions/get-content/generate-content-url.qwik.mjs +11 -22
  107. package/lib/browser/functions/get-content/index.qwik.cjs +2 -4
  108. package/lib/browser/functions/get-content/index.qwik.mjs +2 -4
  109. package/lib/browser/functions/get-global-this.qwik.cjs +4 -8
  110. package/lib/browser/functions/get-global-this.qwik.mjs +4 -8
  111. package/lib/browser/functions/get-processed-block.qwik.cjs +8 -15
  112. package/lib/browser/functions/get-processed-block.qwik.mjs +8 -15
  113. package/lib/browser/functions/is-from-trusted-host.qwik.cjs +1 -2
  114. package/lib/browser/functions/is-from-trusted-host.qwik.mjs +1 -2
  115. package/lib/browser/functions/is-previewing.qwik.cjs +1 -2
  116. package/lib/browser/functions/is-previewing.qwik.mjs +1 -2
  117. package/lib/browser/functions/register-component.qwik.cjs +1 -2
  118. package/lib/browser/functions/register-component.qwik.mjs +1 -2
  119. package/lib/browser/functions/register.qwik.cjs +3 -6
  120. package/lib/browser/functions/register.qwik.mjs +3 -6
  121. package/lib/browser/functions/set.qwik.cjs +1 -2
  122. package/lib/browser/functions/set.qwik.mjs +1 -2
  123. package/lib/browser/functions/track/helpers.qwik.cjs +1 -2
  124. package/lib/browser/functions/track/helpers.qwik.mjs +1 -2
  125. package/lib/browser/functions/track/index.qwik.cjs +4 -8
  126. package/lib/browser/functions/track/index.qwik.mjs +4 -8
  127. package/lib/browser/functions/track/interaction.qwik.cjs +3 -6
  128. package/lib/browser/functions/track/interaction.qwik.mjs +3 -6
  129. package/lib/browser/helpers/ab-tests.qwik.cjs +8 -15
  130. package/lib/browser/helpers/ab-tests.qwik.mjs +9 -16
  131. package/lib/browser/helpers/cookie.qwik.cjs +2 -4
  132. package/lib/browser/helpers/cookie.qwik.mjs +2 -4
  133. package/lib/browser/helpers/css.qwik.cjs +4 -6
  134. package/lib/browser/helpers/css.qwik.mjs +4 -6
  135. package/lib/browser/helpers/flatten.qwik.cjs +2 -3
  136. package/lib/browser/helpers/flatten.qwik.mjs +2 -3
  137. package/lib/browser/helpers/localStorage.qwik.cjs +2 -4
  138. package/lib/browser/helpers/localStorage.qwik.mjs +2 -4
  139. package/lib/browser/helpers/omit.qwik.cjs +1 -2
  140. package/lib/browser/helpers/omit.qwik.mjs +1 -2
  141. package/lib/browser/helpers/search/search.qwik.cjs +2 -3
  142. package/lib/browser/helpers/search/search.qwik.mjs +2 -3
  143. package/lib/browser/helpers/sessionId.qwik.cjs +3 -4
  144. package/lib/browser/helpers/sessionId.qwik.mjs +3 -4
  145. package/lib/browser/helpers/subscribe-to-editor.qwik.cjs +5 -10
  146. package/lib/browser/helpers/subscribe-to-editor.qwik.mjs +5 -10
  147. package/lib/browser/helpers/url.qwik.cjs +2 -4
  148. package/lib/browser/helpers/url.qwik.mjs +2 -4
  149. package/lib/browser/helpers/visitorId.qwik.cjs +3 -4
  150. package/lib/browser/helpers/visitorId.qwik.mjs +3 -4
  151. package/lib/browser/scripts/init-editing.qwik.cjs +19 -25
  152. package/lib/browser/scripts/init-editing.qwik.mjs +19 -25
  153. package/lib/edge/blocks/accordion/accordion.qwik.cjs +143 -74
  154. package/lib/edge/blocks/accordion/accordion.qwik.mjs +143 -74
  155. package/lib/edge/blocks/accordion/component-info.qwik.cjs +1 -2
  156. package/lib/edge/blocks/accordion/component-info.qwik.mjs +1 -2
  157. package/lib/edge/blocks/button/button.qwik.cjs +17 -8
  158. package/lib/edge/blocks/button/button.qwik.mjs +17 -8
  159. package/lib/edge/blocks/columns/columns.qwik.cjs +119 -66
  160. package/lib/edge/blocks/columns/columns.qwik.mjs +119 -66
  161. package/lib/edge/blocks/columns/component-info.qwik.cjs +3 -4
  162. package/lib/edge/blocks/columns/component-info.qwik.mjs +3 -4
  163. package/lib/edge/blocks/custom-code/custom-code.qwik.cjs +22 -18
  164. package/lib/edge/blocks/custom-code/custom-code.qwik.mjs +23 -19
  165. package/lib/edge/blocks/embed/embed.qwik.cjs +23 -17
  166. package/lib/edge/blocks/embed/embed.qwik.mjs +23 -17
  167. package/lib/edge/blocks/form/form/form.qwik.cjs +128 -74
  168. package/lib/edge/blocks/form/form/form.qwik.mjs +129 -75
  169. package/lib/edge/blocks/form/input/input.qwik.cjs +2 -2
  170. package/lib/edge/blocks/form/input/input.qwik.mjs +3 -3
  171. package/lib/edge/blocks/form/select/select.qwik.cjs +5 -7
  172. package/lib/edge/blocks/form/select/select.qwik.mjs +6 -8
  173. package/lib/edge/blocks/form/submit-button/submit-button.qwik.cjs +9 -7
  174. package/lib/edge/blocks/form/submit-button/submit-button.qwik.mjs +10 -8
  175. package/lib/edge/blocks/form/textarea/textarea.qwik.cjs +21 -11
  176. package/lib/edge/blocks/form/textarea/textarea.qwik.mjs +22 -12
  177. package/lib/edge/blocks/fragment/fragment.qwik.cjs +3 -6
  178. package/lib/edge/blocks/fragment/fragment.qwik.mjs +4 -7
  179. package/lib/edge/blocks/image/component-info.qwik.cjs +3 -6
  180. package/lib/edge/blocks/image/component-info.qwik.mjs +3 -6
  181. package/lib/edge/blocks/image/image.helpers.qwik.cjs +6 -12
  182. package/lib/edge/blocks/image/image.helpers.qwik.mjs +6 -12
  183. package/lib/edge/blocks/image/image.qwik.cjs +89 -63
  184. package/lib/edge/blocks/image/image.qwik.mjs +89 -63
  185. package/lib/edge/blocks/img/img.qwik.cjs +18 -12
  186. package/lib/edge/blocks/img/img.qwik.mjs +18 -12
  187. package/lib/edge/blocks/section/section.qwik.cjs +6 -7
  188. package/lib/edge/blocks/section/section.qwik.mjs +7 -8
  189. package/lib/edge/blocks/slot/slot.qwik.cjs +43 -17
  190. package/lib/edge/blocks/slot/slot.qwik.mjs +43 -17
  191. package/lib/edge/blocks/symbol/symbol.helpers.qwik.cjs +1 -2
  192. package/lib/edge/blocks/symbol/symbol.helpers.qwik.mjs +1 -2
  193. package/lib/edge/blocks/symbol/symbol.qwik.cjs +137 -45
  194. package/lib/edge/blocks/symbol/symbol.qwik.mjs +137 -45
  195. package/lib/edge/blocks/tabs/tabs.qwik.cjs +99 -45
  196. package/lib/edge/blocks/tabs/tabs.qwik.mjs +99 -45
  197. package/lib/edge/blocks/text/text.qwik.cjs +15 -11
  198. package/lib/edge/blocks/text/text.qwik.mjs +15 -11
  199. package/lib/edge/blocks/video/video.qwik.cjs +87 -73
  200. package/lib/edge/blocks/video/video.qwik.mjs +88 -74
  201. package/lib/edge/components/awaiter.qwik.cjs +7 -8
  202. package/lib/edge/components/awaiter.qwik.mjs +8 -9
  203. package/lib/edge/components/block/animator.qwik.cjs +11 -22
  204. package/lib/edge/components/block/animator.qwik.mjs +11 -22
  205. package/lib/edge/components/block/block.helpers.qwik.cjs +4 -8
  206. package/lib/edge/components/block/block.helpers.qwik.mjs +4 -8
  207. package/lib/edge/components/block/block.qwik.cjs +320 -114
  208. package/lib/edge/components/block/block.qwik.mjs +321 -115
  209. package/lib/edge/components/block/components/block-styles.qwik.cjs +39 -22
  210. package/lib/edge/components/block/components/block-styles.qwik.mjs +40 -23
  211. package/lib/edge/components/block/components/block-wrapper.qwik.cjs +18 -12
  212. package/lib/edge/components/block/components/block-wrapper.qwik.mjs +18 -12
  213. package/lib/edge/components/block/components/component-ref/component-ref.qwik.cjs +29 -12
  214. package/lib/edge/components/block/components/component-ref/component-ref.qwik.mjs +31 -14
  215. package/lib/edge/components/block/components/interactive-element.qwik.cjs +58 -25
  216. package/lib/edge/components/block/components/interactive-element.qwik.mjs +59 -26
  217. package/lib/edge/components/block/components/repeated-block.qwik.cjs +31 -10
  218. package/lib/edge/components/block/components/repeated-block.qwik.mjs +32 -11
  219. package/lib/edge/components/blocks/blocks-wrapper.qwik.cjs +73 -25
  220. package/lib/edge/components/blocks/blocks-wrapper.qwik.mjs +73 -25
  221. package/lib/edge/components/blocks/blocks.qwik.cjs +84 -20
  222. package/lib/edge/components/blocks/blocks.qwik.mjs +85 -21
  223. package/lib/edge/components/content/components/enable-editor.qwik.cjs +175 -90
  224. package/lib/edge/components/content/components/enable-editor.qwik.mjs +176 -91
  225. package/lib/edge/components/content/components/styles.helpers.qwik.cjs +6 -12
  226. package/lib/edge/components/content/components/styles.helpers.qwik.mjs +6 -12
  227. package/lib/edge/components/content/components/styles.qwik.cjs +20 -8
  228. package/lib/edge/components/content/components/styles.qwik.mjs +20 -8
  229. package/lib/edge/components/content/content.helpers.qwik.cjs +1 -2
  230. package/lib/edge/components/content/content.helpers.qwik.mjs +1 -2
  231. package/lib/edge/components/content/content.qwik.cjs +213 -51
  232. package/lib/edge/components/content/content.qwik.mjs +213 -51
  233. package/lib/edge/components/content-variants/content-variants.qwik.cjs +325 -76
  234. package/lib/edge/components/content-variants/content-variants.qwik.mjs +326 -77
  235. package/lib/edge/components/dynamic-renderer/dynamic-renderer.qwik.cjs +12 -11
  236. package/lib/edge/components/dynamic-renderer/dynamic-renderer.qwik.mjs +13 -12
  237. package/lib/edge/components/inlined-script.qwik.cjs +13 -8
  238. package/lib/edge/components/inlined-script.qwik.mjs +14 -9
  239. package/lib/edge/components/inlined-styles.qwik.cjs +13 -8
  240. package/lib/edge/components/inlined-styles.qwik.mjs +14 -9
  241. package/lib/edge/constants/device-sizes.qwik.cjs +1 -2
  242. package/lib/edge/constants/device-sizes.qwik.mjs +1 -2
  243. package/lib/edge/constants/sdk-version.qwik.cjs +1 -1
  244. package/lib/edge/constants/sdk-version.qwik.mjs +1 -1
  245. package/lib/edge/functions/evaluate/edge-runtime/acorn-interpreter.qwik.cjs +7 -6
  246. package/lib/edge/functions/evaluate/edge-runtime/acorn-interpreter.qwik.mjs +7 -6
  247. package/lib/edge/functions/evaluate/edge-runtime/edge-runtime.qwik.cjs +11 -20
  248. package/lib/edge/functions/evaluate/edge-runtime/edge-runtime.qwik.mjs +11 -20
  249. package/lib/edge/functions/evaluate/evaluate.qwik.cjs +2 -4
  250. package/lib/edge/functions/evaluate/evaluate.qwik.mjs +2 -4
  251. package/lib/edge/functions/evaluate/helpers.qwik.cjs +3 -6
  252. package/lib/edge/functions/evaluate/helpers.qwik.mjs +3 -6
  253. package/lib/edge/functions/evaluate/should-force-browser-runtime-in-node.qwik.cjs +1 -2
  254. package/lib/edge/functions/evaluate/should-force-browser-runtime-in-node.qwik.mjs +1 -2
  255. package/lib/edge/functions/get-block-actions-handler.qwik.cjs +14 -8
  256. package/lib/edge/functions/get-block-actions-handler.qwik.mjs +15 -9
  257. package/lib/edge/functions/get-block-actions.qwik.cjs +2 -4
  258. package/lib/edge/functions/get-block-actions.qwik.mjs +2 -4
  259. package/lib/edge/functions/get-builder-search-params/index.qwik.cjs +2 -4
  260. package/lib/edge/functions/get-builder-search-params/index.qwik.mjs +2 -4
  261. package/lib/edge/functions/get-content/generate-content-url.qwik.cjs +11 -22
  262. package/lib/edge/functions/get-content/generate-content-url.qwik.mjs +11 -22
  263. package/lib/edge/functions/get-content/index.qwik.cjs +2 -4
  264. package/lib/edge/functions/get-content/index.qwik.mjs +2 -4
  265. package/lib/edge/functions/get-global-this.qwik.cjs +4 -8
  266. package/lib/edge/functions/get-global-this.qwik.mjs +4 -8
  267. package/lib/edge/functions/get-processed-block.qwik.cjs +8 -15
  268. package/lib/edge/functions/get-processed-block.qwik.mjs +8 -15
  269. package/lib/edge/functions/is-from-trusted-host.qwik.cjs +1 -2
  270. package/lib/edge/functions/is-from-trusted-host.qwik.mjs +1 -2
  271. package/lib/edge/functions/is-previewing.qwik.cjs +1 -2
  272. package/lib/edge/functions/is-previewing.qwik.mjs +1 -2
  273. package/lib/edge/functions/register-component.qwik.cjs +1 -2
  274. package/lib/edge/functions/register-component.qwik.mjs +1 -2
  275. package/lib/edge/functions/register.qwik.cjs +3 -6
  276. package/lib/edge/functions/register.qwik.mjs +3 -6
  277. package/lib/edge/functions/set.qwik.cjs +1 -2
  278. package/lib/edge/functions/set.qwik.mjs +1 -2
  279. package/lib/edge/functions/track/helpers.qwik.cjs +1 -2
  280. package/lib/edge/functions/track/helpers.qwik.mjs +1 -2
  281. package/lib/edge/functions/track/index.qwik.cjs +4 -8
  282. package/lib/edge/functions/track/index.qwik.mjs +4 -8
  283. package/lib/edge/functions/track/interaction.qwik.cjs +3 -6
  284. package/lib/edge/functions/track/interaction.qwik.mjs +3 -6
  285. package/lib/edge/helpers/ab-tests.qwik.cjs +8 -15
  286. package/lib/edge/helpers/ab-tests.qwik.mjs +9 -16
  287. package/lib/edge/helpers/cookie.qwik.cjs +2 -4
  288. package/lib/edge/helpers/cookie.qwik.mjs +2 -4
  289. package/lib/edge/helpers/css.qwik.cjs +4 -6
  290. package/lib/edge/helpers/css.qwik.mjs +4 -6
  291. package/lib/edge/helpers/flatten.qwik.cjs +2 -3
  292. package/lib/edge/helpers/flatten.qwik.mjs +2 -3
  293. package/lib/edge/helpers/localStorage.qwik.cjs +2 -4
  294. package/lib/edge/helpers/localStorage.qwik.mjs +2 -4
  295. package/lib/edge/helpers/omit.qwik.cjs +1 -2
  296. package/lib/edge/helpers/omit.qwik.mjs +1 -2
  297. package/lib/edge/helpers/search/search.qwik.cjs +2 -3
  298. package/lib/edge/helpers/search/search.qwik.mjs +2 -3
  299. package/lib/edge/helpers/sessionId.qwik.cjs +3 -4
  300. package/lib/edge/helpers/sessionId.qwik.mjs +3 -4
  301. package/lib/edge/helpers/subscribe-to-editor.qwik.cjs +5 -10
  302. package/lib/edge/helpers/subscribe-to-editor.qwik.mjs +5 -10
  303. package/lib/edge/helpers/url.qwik.cjs +2 -4
  304. package/lib/edge/helpers/url.qwik.mjs +2 -4
  305. package/lib/edge/helpers/visitorId.qwik.cjs +3 -4
  306. package/lib/edge/helpers/visitorId.qwik.mjs +3 -4
  307. package/lib/edge/scripts/init-editing.qwik.cjs +19 -25
  308. package/lib/edge/scripts/init-editing.qwik.mjs +19 -25
  309. package/lib/node/blocks/accordion/accordion.qwik.cjs +143 -74
  310. package/lib/node/blocks/accordion/accordion.qwik.mjs +143 -74
  311. package/lib/node/blocks/accordion/component-info.qwik.cjs +1 -2
  312. package/lib/node/blocks/accordion/component-info.qwik.mjs +1 -2
  313. package/lib/node/blocks/button/button.qwik.cjs +17 -8
  314. package/lib/node/blocks/button/button.qwik.mjs +17 -8
  315. package/lib/node/blocks/columns/columns.qwik.cjs +119 -66
  316. package/lib/node/blocks/columns/columns.qwik.mjs +119 -66
  317. package/lib/node/blocks/columns/component-info.qwik.cjs +3 -4
  318. package/lib/node/blocks/columns/component-info.qwik.mjs +3 -4
  319. package/lib/node/blocks/custom-code/custom-code.qwik.cjs +22 -18
  320. package/lib/node/blocks/custom-code/custom-code.qwik.mjs +23 -19
  321. package/lib/node/blocks/embed/embed.qwik.cjs +23 -17
  322. package/lib/node/blocks/embed/embed.qwik.mjs +23 -17
  323. package/lib/node/blocks/form/form/form.qwik.cjs +128 -74
  324. package/lib/node/blocks/form/form/form.qwik.mjs +129 -75
  325. package/lib/node/blocks/form/input/input.qwik.cjs +2 -2
  326. package/lib/node/blocks/form/input/input.qwik.mjs +3 -3
  327. package/lib/node/blocks/form/select/select.qwik.cjs +5 -7
  328. package/lib/node/blocks/form/select/select.qwik.mjs +6 -8
  329. package/lib/node/blocks/form/submit-button/submit-button.qwik.cjs +9 -7
  330. package/lib/node/blocks/form/submit-button/submit-button.qwik.mjs +10 -8
  331. package/lib/node/blocks/form/textarea/textarea.qwik.cjs +21 -11
  332. package/lib/node/blocks/form/textarea/textarea.qwik.mjs +22 -12
  333. package/lib/node/blocks/fragment/fragment.qwik.cjs +3 -6
  334. package/lib/node/blocks/fragment/fragment.qwik.mjs +4 -7
  335. package/lib/node/blocks/image/component-info.qwik.cjs +3 -6
  336. package/lib/node/blocks/image/component-info.qwik.mjs +3 -6
  337. package/lib/node/blocks/image/image.helpers.qwik.cjs +6 -12
  338. package/lib/node/blocks/image/image.helpers.qwik.mjs +6 -12
  339. package/lib/node/blocks/image/image.qwik.cjs +89 -63
  340. package/lib/node/blocks/image/image.qwik.mjs +89 -63
  341. package/lib/node/blocks/img/img.qwik.cjs +18 -12
  342. package/lib/node/blocks/img/img.qwik.mjs +18 -12
  343. package/lib/node/blocks/section/section.qwik.cjs +6 -7
  344. package/lib/node/blocks/section/section.qwik.mjs +7 -8
  345. package/lib/node/blocks/slot/slot.qwik.cjs +43 -17
  346. package/lib/node/blocks/slot/slot.qwik.mjs +43 -17
  347. package/lib/node/blocks/symbol/symbol.helpers.qwik.cjs +1 -2
  348. package/lib/node/blocks/symbol/symbol.helpers.qwik.mjs +1 -2
  349. package/lib/node/blocks/symbol/symbol.qwik.cjs +137 -45
  350. package/lib/node/blocks/symbol/symbol.qwik.mjs +137 -45
  351. package/lib/node/blocks/tabs/tabs.qwik.cjs +99 -45
  352. package/lib/node/blocks/tabs/tabs.qwik.mjs +99 -45
  353. package/lib/node/blocks/text/text.qwik.cjs +15 -11
  354. package/lib/node/blocks/text/text.qwik.mjs +15 -11
  355. package/lib/node/blocks/video/video.qwik.cjs +87 -73
  356. package/lib/node/blocks/video/video.qwik.mjs +88 -74
  357. package/lib/node/components/awaiter.qwik.cjs +7 -8
  358. package/lib/node/components/awaiter.qwik.mjs +8 -9
  359. package/lib/node/components/block/animator.qwik.cjs +11 -22
  360. package/lib/node/components/block/animator.qwik.mjs +11 -22
  361. package/lib/node/components/block/block.helpers.qwik.cjs +4 -8
  362. package/lib/node/components/block/block.helpers.qwik.mjs +4 -8
  363. package/lib/node/components/block/block.qwik.cjs +320 -114
  364. package/lib/node/components/block/block.qwik.mjs +321 -115
  365. package/lib/node/components/block/components/block-styles.qwik.cjs +39 -22
  366. package/lib/node/components/block/components/block-styles.qwik.mjs +40 -23
  367. package/lib/node/components/block/components/block-wrapper.qwik.cjs +18 -12
  368. package/lib/node/components/block/components/block-wrapper.qwik.mjs +18 -12
  369. package/lib/node/components/block/components/component-ref/component-ref.qwik.cjs +29 -12
  370. package/lib/node/components/block/components/component-ref/component-ref.qwik.mjs +31 -14
  371. package/lib/node/components/block/components/interactive-element.qwik.cjs +58 -25
  372. package/lib/node/components/block/components/interactive-element.qwik.mjs +59 -26
  373. package/lib/node/components/block/components/repeated-block.qwik.cjs +31 -10
  374. package/lib/node/components/block/components/repeated-block.qwik.mjs +32 -11
  375. package/lib/node/components/blocks/blocks-wrapper.qwik.cjs +73 -25
  376. package/lib/node/components/blocks/blocks-wrapper.qwik.mjs +73 -25
  377. package/lib/node/components/blocks/blocks.qwik.cjs +84 -20
  378. package/lib/node/components/blocks/blocks.qwik.mjs +85 -21
  379. package/lib/node/components/content/components/enable-editor.qwik.cjs +175 -90
  380. package/lib/node/components/content/components/enable-editor.qwik.mjs +176 -91
  381. package/lib/node/components/content/components/styles.helpers.qwik.cjs +6 -12
  382. package/lib/node/components/content/components/styles.helpers.qwik.mjs +6 -12
  383. package/lib/node/components/content/components/styles.qwik.cjs +20 -8
  384. package/lib/node/components/content/components/styles.qwik.mjs +20 -8
  385. package/lib/node/components/content/content.helpers.qwik.cjs +1 -2
  386. package/lib/node/components/content/content.helpers.qwik.mjs +1 -2
  387. package/lib/node/components/content/content.qwik.cjs +213 -51
  388. package/lib/node/components/content/content.qwik.mjs +213 -51
  389. package/lib/node/components/content-variants/content-variants.qwik.cjs +325 -76
  390. package/lib/node/components/content-variants/content-variants.qwik.mjs +326 -77
  391. package/lib/node/components/dynamic-renderer/dynamic-renderer.qwik.cjs +12 -11
  392. package/lib/node/components/dynamic-renderer/dynamic-renderer.qwik.mjs +13 -12
  393. package/lib/node/components/inlined-script.qwik.cjs +13 -8
  394. package/lib/node/components/inlined-script.qwik.mjs +14 -9
  395. package/lib/node/components/inlined-styles.qwik.cjs +13 -8
  396. package/lib/node/components/inlined-styles.qwik.mjs +14 -9
  397. package/lib/node/constants/device-sizes.qwik.cjs +1 -2
  398. package/lib/node/constants/device-sizes.qwik.mjs +1 -2
  399. package/lib/node/constants/sdk-version.qwik.cjs +1 -1
  400. package/lib/node/constants/sdk-version.qwik.mjs +1 -1
  401. package/lib/node/functions/evaluate/evaluate.qwik.cjs +2 -4
  402. package/lib/node/functions/evaluate/evaluate.qwik.mjs +2 -4
  403. package/lib/node/functions/evaluate/helpers.qwik.cjs +3 -6
  404. package/lib/node/functions/evaluate/helpers.qwik.mjs +3 -6
  405. package/lib/node/functions/evaluate/node-runtime/init.qwik.cjs +1 -2
  406. package/lib/node/functions/evaluate/node-runtime/init.qwik.mjs +1 -2
  407. package/lib/node/functions/evaluate/node-runtime/node-runtime.qwik.cjs +5 -4
  408. package/lib/node/functions/evaluate/node-runtime/node-runtime.qwik.mjs +5 -4
  409. package/lib/node/functions/evaluate/should-force-browser-runtime-in-node.qwik.cjs +1 -2
  410. package/lib/node/functions/evaluate/should-force-browser-runtime-in-node.qwik.mjs +1 -2
  411. package/lib/node/functions/get-block-actions-handler.qwik.cjs +14 -8
  412. package/lib/node/functions/get-block-actions-handler.qwik.mjs +15 -9
  413. package/lib/node/functions/get-block-actions.qwik.cjs +2 -4
  414. package/lib/node/functions/get-block-actions.qwik.mjs +2 -4
  415. package/lib/node/functions/get-builder-search-params/index.qwik.cjs +2 -4
  416. package/lib/node/functions/get-builder-search-params/index.qwik.mjs +2 -4
  417. package/lib/node/functions/get-content/generate-content-url.qwik.cjs +11 -22
  418. package/lib/node/functions/get-content/generate-content-url.qwik.mjs +11 -22
  419. package/lib/node/functions/get-content/index.qwik.cjs +2 -4
  420. package/lib/node/functions/get-content/index.qwik.mjs +2 -4
  421. package/lib/node/functions/get-global-this.qwik.cjs +4 -8
  422. package/lib/node/functions/get-global-this.qwik.mjs +4 -8
  423. package/lib/node/functions/get-processed-block.qwik.cjs +8 -15
  424. package/lib/node/functions/get-processed-block.qwik.mjs +8 -15
  425. package/lib/node/functions/is-from-trusted-host.qwik.cjs +1 -2
  426. package/lib/node/functions/is-from-trusted-host.qwik.mjs +1 -2
  427. package/lib/node/functions/is-previewing.qwik.cjs +1 -2
  428. package/lib/node/functions/is-previewing.qwik.mjs +1 -2
  429. package/lib/node/functions/register-component.qwik.cjs +1 -2
  430. package/lib/node/functions/register-component.qwik.mjs +1 -2
  431. package/lib/node/functions/register.qwik.cjs +3 -6
  432. package/lib/node/functions/register.qwik.mjs +3 -6
  433. package/lib/node/functions/set.qwik.cjs +1 -2
  434. package/lib/node/functions/set.qwik.mjs +1 -2
  435. package/lib/node/functions/track/helpers.qwik.cjs +1 -2
  436. package/lib/node/functions/track/helpers.qwik.mjs +1 -2
  437. package/lib/node/functions/track/index.qwik.cjs +4 -8
  438. package/lib/node/functions/track/index.qwik.mjs +4 -8
  439. package/lib/node/functions/track/interaction.qwik.cjs +3 -6
  440. package/lib/node/functions/track/interaction.qwik.mjs +3 -6
  441. package/lib/node/helpers/ab-tests.qwik.cjs +8 -15
  442. package/lib/node/helpers/ab-tests.qwik.mjs +9 -16
  443. package/lib/node/helpers/cookie.qwik.cjs +2 -4
  444. package/lib/node/helpers/cookie.qwik.mjs +2 -4
  445. package/lib/node/helpers/css.qwik.cjs +4 -6
  446. package/lib/node/helpers/css.qwik.mjs +4 -6
  447. package/lib/node/helpers/flatten.qwik.cjs +2 -3
  448. package/lib/node/helpers/flatten.qwik.mjs +2 -3
  449. package/lib/node/helpers/localStorage.qwik.cjs +2 -4
  450. package/lib/node/helpers/localStorage.qwik.mjs +2 -4
  451. package/lib/node/helpers/omit.qwik.cjs +1 -2
  452. package/lib/node/helpers/omit.qwik.mjs +1 -2
  453. package/lib/node/helpers/search/search.qwik.cjs +2 -3
  454. package/lib/node/helpers/search/search.qwik.mjs +2 -3
  455. package/lib/node/helpers/sessionId.qwik.cjs +3 -4
  456. package/lib/node/helpers/sessionId.qwik.mjs +3 -4
  457. package/lib/node/helpers/subscribe-to-editor.qwik.cjs +5 -10
  458. package/lib/node/helpers/subscribe-to-editor.qwik.mjs +5 -10
  459. package/lib/node/helpers/url.qwik.cjs +2 -4
  460. package/lib/node/helpers/url.qwik.mjs +2 -4
  461. package/lib/node/helpers/visitorId.qwik.cjs +3 -4
  462. package/lib/node/helpers/visitorId.qwik.mjs +3 -4
  463. package/lib/node/scripts/init-editing.qwik.cjs +19 -25
  464. package/lib/node/scripts/init-editing.qwik.mjs +19 -25
  465. package/package.json +2 -2
  466. package/types/src/blocks/columns/columns.d.ts +10 -10
  467. package/types/src/constants/sdk-version.d.ts +1 -1
  468. package/types/src/functions/evaluate/node-runtime/setIvm.d.ts +1 -0
@@ -1,7 +1,6 @@
1
- import { jsx } from "@builder.io/qwik/jsx-runtime";
1
+ import { componentQrl, inlinedQrl, _jsxC, _fnSignal, _IMMUTABLE } from "@builder.io/qwik";
2
2
  import { DynamicRenderer } from "../../components/dynamic-renderer/dynamic-renderer.qwik.mjs";
3
3
  import { getClassPropName } from "../../functions/get-class-prop-name.qwik.mjs";
4
- import { component$ } from "@builder.io/qwik";
5
4
  const attrs = function attrs2(props, state) {
6
5
  return {
7
6
  ...props.attributes,
@@ -15,14 +14,24 @@ const attrs = function attrs2(props, state) {
15
14
  }
16
15
  };
17
16
  };
18
- const Button = component$((props) => {
19
- return /* @__PURE__ */ jsx(DynamicRenderer, {
17
+ const Button = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
18
+ return /* @__PURE__ */ _jsxC(DynamicRenderer, {
20
19
  attributes: attrs(props),
21
- TagName: props.link ? props.builderLinkComponent || "a" : "button",
20
+ get TagName() {
21
+ return props.link ? props.builderLinkComponent || "a" : "button";
22
+ },
22
23
  actionAttributes: {},
23
- children: props.text
24
- });
25
- });
24
+ children: _fnSignal((p0) => p0.text, [
25
+ props
26
+ ], "p0.text"),
27
+ [_IMMUTABLE]: {
28
+ TagName: _fnSignal((p0) => p0.link ? p0.builderLinkComponent || "a" : "button", [
29
+ props
30
+ ], 'p0.link?p0.builderLinkComponent||"a":"button"'),
31
+ actionAttributes: _IMMUTABLE
32
+ }
33
+ }, 3, "jc_0");
34
+ }, "Button_component_gJoMUICXoUQ"));
26
35
  export {
27
36
  Button,
28
37
  attrs,
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const jsxRuntime = require("@builder.io/qwik/jsx-runtime");
3
+ const qwik = require("@builder.io/qwik");
4
4
  const blocks = require("../../components/blocks/blocks.qwik.cjs");
5
5
  const dynamicRenderer = require("../../components/dynamic-renderer/dynamic-renderer.qwik.cjs");
6
6
  const inlinedStyles = require("../../components/inlined-styles.qwik.cjs");
@@ -9,37 +9,36 @@ const deopt = require("../../functions/deopt.qwik.cjs");
9
9
  const getClassPropName = require("../../functions/get-class-prop-name.qwik.cjs");
10
10
  const getStyle = require("../../functions/get-style.qwik.cjs");
11
11
  const helpers = require("./helpers.qwik.cjs");
12
- const qwik = require("@builder.io/qwik");
13
- const getTagName = function getTagName2(props, state, column) {
12
+ const getTagName = function getTagName2(props, state, gutterSize, cols, stackAt, flexDir, column) {
14
13
  return column.link ? props.builderLinkComponent || "a" : "div";
15
14
  };
16
- const getWidth = function getWidth2(props, state, index) {
15
+ const getWidth = function getWidth2(props, state, gutterSize, cols, stackAt, flexDir, index) {
17
16
  var _a;
18
- return ((_a = state.cols[index]) == null ? void 0 : _a.width) || 100 / state.cols.length;
17
+ return ((_a = cols.value[index]) == null ? void 0 : _a.width) || 100 / cols.value.length;
19
18
  };
20
- const getColumnCssWidth = function getColumnCssWidth2(props, state, index) {
21
- const width = getWidth(props, state, index);
22
- const subtractWidth = state.gutterSize * (state.cols.length - 1) * (width / 100);
19
+ const getColumnCssWidth = function getColumnCssWidth2(props, state, gutterSize, cols, stackAt, flexDir, index) {
20
+ const width = getWidth(props, state, gutterSize, cols, stackAt, flexDir, index);
21
+ const subtractWidth = gutterSize.value * (cols.value.length - 1) * (width / 100);
23
22
  return `calc(${width}% - ${subtractWidth}px)`;
24
23
  };
25
- const getTabletStyle = function getTabletStyle2(props, state, { stackedStyle, desktopStyle }) {
26
- return state.stackAt === "tablet" ? stackedStyle : desktopStyle;
24
+ const getTabletStyle = function getTabletStyle2(props, state, gutterSize, cols, stackAt, flexDir, { stackedStyle, desktopStyle }) {
25
+ return stackAt.value === "tablet" ? stackedStyle : desktopStyle;
27
26
  };
28
- const getMobileStyle = function getMobileStyle2(props, state, { stackedStyle, desktopStyle }) {
29
- return state.stackAt === "never" ? desktopStyle : stackedStyle;
27
+ const getMobileStyle = function getMobileStyle2(props, state, gutterSize, cols, stackAt, flexDir, { stackedStyle, desktopStyle }) {
28
+ return stackAt.value === "never" ? desktopStyle : stackedStyle;
30
29
  };
31
- const columnsCssVars = function columnsCssVars2(props, state) {
30
+ const columnsCssVars = function columnsCssVars2(props, state, gutterSize, cols, stackAt, flexDir) {
32
31
  return {
33
- "--flex-dir": state.flexDir,
34
- "--flex-dir-tablet": getTabletStyle(props, state, {
35
- stackedStyle: state.flexDir,
32
+ "--flex-dir": flexDir.value,
33
+ "--flex-dir-tablet": getTabletStyle(props, state, gutterSize, cols, stackAt, flexDir, {
34
+ stackedStyle: flexDir.value,
36
35
  desktopStyle: "row"
37
36
  })
38
37
  };
39
38
  };
40
- const columnCssVars = function columnCssVars2(props, state, index) {
41
- const gutter = index === 0 ? 0 : state.gutterSize;
42
- const width = getColumnCssWidth(props, state, index);
39
+ const columnCssVars = function columnCssVars2(props, state, gutterSize, cols, stackAt, flexDir, index) {
40
+ const gutter = index === 0 ? 0 : gutterSize.value;
41
+ const width = getColumnCssWidth(props, state, gutterSize, cols, stackAt, flexDir, index);
43
42
  const gutterPixels = `${gutter}px`;
44
43
  const mobileWidth = "100%";
45
44
  const mobileMarginLeft = 0;
@@ -53,33 +52,33 @@ const columnCssVars = function columnCssVars2(props, state, index) {
53
52
  ...sharedStyles,
54
53
  width,
55
54
  [marginLeftKey]: gutterPixels,
56
- "--column-width-mobile": getMobileStyle(props, state, {
55
+ "--column-width-mobile": getMobileStyle(props, state, gutterSize, cols, stackAt, flexDir, {
57
56
  stackedStyle: mobileWidth,
58
57
  desktopStyle: width
59
58
  }),
60
- "--column-margin-left-mobile": getMobileStyle(props, state, {
59
+ "--column-margin-left-mobile": getMobileStyle(props, state, gutterSize, cols, stackAt, flexDir, {
61
60
  stackedStyle: mobileMarginLeft,
62
61
  desktopStyle: gutterPixels
63
62
  }),
64
- "--column-width-tablet": getTabletStyle(props, state, {
63
+ "--column-width-tablet": getTabletStyle(props, state, gutterSize, cols, stackAt, flexDir, {
65
64
  stackedStyle: mobileWidth,
66
65
  desktopStyle: width
67
66
  }),
68
- "--column-margin-left-tablet": getTabletStyle(props, state, {
67
+ "--column-margin-left-tablet": getTabletStyle(props, state, gutterSize, cols, stackAt, flexDir, {
69
68
  stackedStyle: mobileMarginLeft,
70
69
  desktopStyle: gutterPixels
71
70
  })
72
71
  };
73
72
  };
74
- const getWidthForBreakpointSize = function getWidthForBreakpointSize2(props, state, size) {
73
+ const getWidthForBreakpointSize = function getWidthForBreakpointSize2(props, state, gutterSize, cols, stackAt, flexDir, size) {
75
74
  var _a, _b;
76
75
  const breakpointSizes = deviceSizes.getSizesForBreakpoints(((_b = (_a = props.builderContext.content) == null ? void 0 : _a.meta) == null ? void 0 : _b.breakpoints) || {});
77
76
  return breakpointSizes[size].max;
78
77
  };
79
- const columnsStyles = function columnsStyles2(props, state) {
78
+ const columnsStyles = function columnsStyles2(props, state, gutterSize, cols, stackAt, flexDir) {
80
79
  const childColumnDiv = `.${props.builderBlock.id}-breakpoints > .builder-column`;
81
80
  return `
82
- @media (max-width: ${getWidthForBreakpointSize(props, state, "medium")}px) {
81
+ @media (max-width: ${getWidthForBreakpointSize(props, state, gutterSize, cols, stackAt, flexDir, "medium")}px) {
83
82
  .${props.builderBlock.id}-breakpoints {
84
83
  flex-direction: var(--flex-dir-tablet);
85
84
  align-items: stretch;
@@ -91,7 +90,7 @@ const columnsStyles = function columnsStyles2(props, state) {
91
90
  }
92
91
  }
93
92
 
94
- @media (max-width: ${getWidthForBreakpointSize(props, state, "small")}px) {
93
+ @media (max-width: ${getWidthForBreakpointSize(props, state, gutterSize, cols, stackAt, flexDir, "small")}px) {
95
94
  .${props.builderBlock.id}-breakpoints {
96
95
  flex-direction: var(--flex-dir);
97
96
  align-items: stretch;
@@ -104,55 +103,109 @@ const columnsStyles = function columnsStyles2(props, state) {
104
103
  },
105
104
  `;
106
105
  };
107
- const getAttributes = function getAttributes2(props, state, column, index) {
106
+ const getAttributes = function getAttributes2(props, state, gutterSize, cols, stackAt, flexDir, column, index) {
108
107
  return {
109
- ...{},
110
108
  ...column.link ? {
111
109
  href: column.link
112
110
  } : {},
113
111
  [getClassPropName.getClassPropName()]: "builder-column",
114
- style: getStyle.mapStyleObjToStrIfNeeded(columnCssVars(props, state, index))
112
+ style: getStyle.mapStyleObjToStrIfNeeded(columnCssVars(props, state, gutterSize, cols, stackAt, flexDir, index))
115
113
  };
116
114
  };
117
- const Columns = qwik.component$((props) => {
115
+ const Columns = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
118
116
  var _a;
119
- const state = qwik.useStore({
120
- cols: props.columns || [],
121
- flexDir: props.stackColumnsAt === "never" ? "row" : props.reverseColumnsWhenStacked ? "column-reverse" : "column",
122
- gutterSize: typeof props.space === "number" ? props.space || 0 : 20,
123
- stackAt: props.stackColumnsAt || "tablet"
124
- });
125
- qwik.useStylesScoped$(STYLES);
126
- return /* @__PURE__ */ jsxRuntime.jsxs("div", {
117
+ qwik._jsxBranch();
118
+ const state = {};
119
+ qwik.useStylesScopedQrl(/* @__PURE__ */ qwik.inlinedQrl(STYLES, "Columns_component_useStylesScoped_s7JLZz7MCCQ"));
120
+ const gutterSize = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
121
+ const [props2] = qwik.useLexicalScope();
122
+ return typeof props2.space === "number" ? props2.space || 0 : 20;
123
+ }, "Columns_component_gutterSize_useComputed_j0vfXzMKBDA", [
124
+ props
125
+ ]));
126
+ const cols = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
127
+ const [props2] = qwik.useLexicalScope();
128
+ return props2.columns || [];
129
+ }, "Columns_component_cols_useComputed_aVUzM2fGqrw", [
130
+ props
131
+ ]));
132
+ const stackAt = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
133
+ const [props2] = qwik.useLexicalScope();
134
+ return props2.stackColumnsAt || "tablet";
135
+ }, "Columns_component_stackAt_useComputed_62lgKFigB6o", [
136
+ props
137
+ ]));
138
+ const flexDir = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
139
+ const [props2] = qwik.useLexicalScope();
140
+ return props2.stackColumnsAt === "never" ? "row" : props2.reverseColumnsWhenStacked ? "column-reverse" : "column";
141
+ }, "Columns_component_flexDir_useComputed_FDnJAkDHoLk", [
142
+ props
143
+ ]));
144
+ return /* @__PURE__ */ qwik._jsxQ("div", {
127
145
  class: helpers.getColumnsClass((_a = props.builderBlock) == null ? void 0 : _a.id) + " div-Columns",
128
- style: columnsCssVars(props, state),
129
- children: [
130
- /* @__PURE__ */ jsxRuntime.jsx(inlinedStyles.InlinedStyles, {
131
- id: "builderio-columns",
132
- styles: columnsStyles(props, state),
133
- nonce: props.builderContext.nonce
134
- }),
135
- (props.columns || []).map((column, index) => {
136
- return /* @__PURE__ */ jsxRuntime.jsx(dynamicRenderer.DynamicRenderer, {
137
- TagName: getTagName(props, state, column),
138
- actionAttributes: {},
139
- attributes: getAttributes(props, state, column, index),
140
- children: /* @__PURE__ */ jsxRuntime.jsx(blocks.Blocks, {
141
- path: `component.options.columns.${index}.blocks`,
142
- parent: props.builderBlock.id,
143
- styleProp: {
146
+ style: columnsCssVars(props, state, gutterSize, cols, stackAt, flexDir)
147
+ }, null, [
148
+ /* @__PURE__ */ qwik._jsxC(inlinedStyles.InlinedStyles, {
149
+ id: "builderio-columns",
150
+ styles: columnsStyles(props, state, gutterSize, cols, stackAt, flexDir),
151
+ get nonce() {
152
+ return props.builderContext.nonce;
153
+ },
154
+ [qwik._IMMUTABLE]: {
155
+ id: qwik._IMMUTABLE,
156
+ nonce: qwik._fnSignal((p0) => p0.builderContext.nonce, [
157
+ props
158
+ ], "p0.builderContext.nonce")
159
+ }
160
+ }, 3, "c0_0"),
161
+ (props.columns || []).map((column, index) => {
162
+ return /* @__PURE__ */ qwik._jsxC(dynamicRenderer.DynamicRenderer, {
163
+ TagName: getTagName(props, state, gutterSize, cols, stackAt, flexDir, column),
164
+ actionAttributes: {},
165
+ attributes: getAttributes(props, state, gutterSize, cols, stackAt, flexDir, column, index),
166
+ children: /* @__PURE__ */ qwik._jsxC(blocks.Blocks, {
167
+ path: `component.options.columns.${index}.blocks`,
168
+ get parent() {
169
+ return props.builderBlock.id;
170
+ },
171
+ get styleProp() {
172
+ return {
144
173
  flexGrow: "1"
145
- },
146
- context: props.builderContext,
147
- registeredComponents: props.builderComponents,
148
- linkComponent: props.builderLinkComponent,
149
- blocks: deopt.deoptSignal(column.blocks)
150
- })
151
- }, index);
152
- })
153
- ]
154
- });
155
- });
174
+ };
175
+ },
176
+ get context() {
177
+ return props.builderContext;
178
+ },
179
+ get registeredComponents() {
180
+ return props.builderComponents;
181
+ },
182
+ get linkComponent() {
183
+ return props.builderLinkComponent;
184
+ },
185
+ blocks: deopt.deoptSignal(column.blocks),
186
+ [qwik._IMMUTABLE]: {
187
+ context: qwik._fnSignal((p0) => p0.builderContext, [
188
+ props
189
+ ], "p0.builderContext"),
190
+ linkComponent: qwik._fnSignal((p0) => p0.builderLinkComponent, [
191
+ props
192
+ ], "p0.builderLinkComponent"),
193
+ parent: qwik._fnSignal((p0) => p0.builderBlock.id, [
194
+ props
195
+ ], "p0.builderBlock.id"),
196
+ registeredComponents: qwik._fnSignal((p0) => p0.builderComponents, [
197
+ props
198
+ ], "p0.builderComponents"),
199
+ styleProp: qwik._IMMUTABLE
200
+ }
201
+ }, 3, "c0_1"),
202
+ [qwik._IMMUTABLE]: {
203
+ actionAttributes: qwik._IMMUTABLE
204
+ }
205
+ }, 1, index);
206
+ })
207
+ ], 1, "c0_2");
208
+ }, "Columns_component_7yLj4bxdI6c"));
156
209
  const STYLES = `
157
210
  .div-Columns {
158
211
  display: flex;
@@ -1,4 +1,4 @@
1
- import { jsxs, jsx } from "@builder.io/qwik/jsx-runtime";
1
+ import { componentQrl, inlinedQrl, _jsxBranch, useStylesScopedQrl, useComputedQrl, useLexicalScope, _jsxQ, _jsxC, _IMMUTABLE, _fnSignal } from "@builder.io/qwik";
2
2
  import { Blocks } from "../../components/blocks/blocks.qwik.mjs";
3
3
  import { DynamicRenderer } from "../../components/dynamic-renderer/dynamic-renderer.qwik.mjs";
4
4
  import { InlinedStyles } from "../../components/inlined-styles.qwik.mjs";
@@ -7,37 +7,36 @@ import { deoptSignal } from "../../functions/deopt.qwik.mjs";
7
7
  import { getClassPropName } from "../../functions/get-class-prop-name.qwik.mjs";
8
8
  import { mapStyleObjToStrIfNeeded } from "../../functions/get-style.qwik.mjs";
9
9
  import { getColumnsClass } from "./helpers.qwik.mjs";
10
- import { component$, useStore, useStylesScoped$ } from "@builder.io/qwik";
11
- const getTagName = function getTagName2(props, state, column) {
10
+ const getTagName = function getTagName2(props, state, gutterSize, cols, stackAt, flexDir, column) {
12
11
  return column.link ? props.builderLinkComponent || "a" : "div";
13
12
  };
14
- const getWidth = function getWidth2(props, state, index) {
13
+ const getWidth = function getWidth2(props, state, gutterSize, cols, stackAt, flexDir, index) {
15
14
  var _a;
16
- return ((_a = state.cols[index]) == null ? void 0 : _a.width) || 100 / state.cols.length;
15
+ return ((_a = cols.value[index]) == null ? void 0 : _a.width) || 100 / cols.value.length;
17
16
  };
18
- const getColumnCssWidth = function getColumnCssWidth2(props, state, index) {
19
- const width = getWidth(props, state, index);
20
- const subtractWidth = state.gutterSize * (state.cols.length - 1) * (width / 100);
17
+ const getColumnCssWidth = function getColumnCssWidth2(props, state, gutterSize, cols, stackAt, flexDir, index) {
18
+ const width = getWidth(props, state, gutterSize, cols, stackAt, flexDir, index);
19
+ const subtractWidth = gutterSize.value * (cols.value.length - 1) * (width / 100);
21
20
  return `calc(${width}% - ${subtractWidth}px)`;
22
21
  };
23
- const getTabletStyle = function getTabletStyle2(props, state, { stackedStyle, desktopStyle }) {
24
- return state.stackAt === "tablet" ? stackedStyle : desktopStyle;
22
+ const getTabletStyle = function getTabletStyle2(props, state, gutterSize, cols, stackAt, flexDir, { stackedStyle, desktopStyle }) {
23
+ return stackAt.value === "tablet" ? stackedStyle : desktopStyle;
25
24
  };
26
- const getMobileStyle = function getMobileStyle2(props, state, { stackedStyle, desktopStyle }) {
27
- return state.stackAt === "never" ? desktopStyle : stackedStyle;
25
+ const getMobileStyle = function getMobileStyle2(props, state, gutterSize, cols, stackAt, flexDir, { stackedStyle, desktopStyle }) {
26
+ return stackAt.value === "never" ? desktopStyle : stackedStyle;
28
27
  };
29
- const columnsCssVars = function columnsCssVars2(props, state) {
28
+ const columnsCssVars = function columnsCssVars2(props, state, gutterSize, cols, stackAt, flexDir) {
30
29
  return {
31
- "--flex-dir": state.flexDir,
32
- "--flex-dir-tablet": getTabletStyle(props, state, {
33
- stackedStyle: state.flexDir,
30
+ "--flex-dir": flexDir.value,
31
+ "--flex-dir-tablet": getTabletStyle(props, state, gutterSize, cols, stackAt, flexDir, {
32
+ stackedStyle: flexDir.value,
34
33
  desktopStyle: "row"
35
34
  })
36
35
  };
37
36
  };
38
- const columnCssVars = function columnCssVars2(props, state, index) {
39
- const gutter = index === 0 ? 0 : state.gutterSize;
40
- const width = getColumnCssWidth(props, state, index);
37
+ const columnCssVars = function columnCssVars2(props, state, gutterSize, cols, stackAt, flexDir, index) {
38
+ const gutter = index === 0 ? 0 : gutterSize.value;
39
+ const width = getColumnCssWidth(props, state, gutterSize, cols, stackAt, flexDir, index);
41
40
  const gutterPixels = `${gutter}px`;
42
41
  const mobileWidth = "100%";
43
42
  const mobileMarginLeft = 0;
@@ -51,33 +50,33 @@ const columnCssVars = function columnCssVars2(props, state, index) {
51
50
  ...sharedStyles,
52
51
  width,
53
52
  [marginLeftKey]: gutterPixels,
54
- "--column-width-mobile": getMobileStyle(props, state, {
53
+ "--column-width-mobile": getMobileStyle(props, state, gutterSize, cols, stackAt, flexDir, {
55
54
  stackedStyle: mobileWidth,
56
55
  desktopStyle: width
57
56
  }),
58
- "--column-margin-left-mobile": getMobileStyle(props, state, {
57
+ "--column-margin-left-mobile": getMobileStyle(props, state, gutterSize, cols, stackAt, flexDir, {
59
58
  stackedStyle: mobileMarginLeft,
60
59
  desktopStyle: gutterPixels
61
60
  }),
62
- "--column-width-tablet": getTabletStyle(props, state, {
61
+ "--column-width-tablet": getTabletStyle(props, state, gutterSize, cols, stackAt, flexDir, {
63
62
  stackedStyle: mobileWidth,
64
63
  desktopStyle: width
65
64
  }),
66
- "--column-margin-left-tablet": getTabletStyle(props, state, {
65
+ "--column-margin-left-tablet": getTabletStyle(props, state, gutterSize, cols, stackAt, flexDir, {
67
66
  stackedStyle: mobileMarginLeft,
68
67
  desktopStyle: gutterPixels
69
68
  })
70
69
  };
71
70
  };
72
- const getWidthForBreakpointSize = function getWidthForBreakpointSize2(props, state, size) {
71
+ const getWidthForBreakpointSize = function getWidthForBreakpointSize2(props, state, gutterSize, cols, stackAt, flexDir, size) {
73
72
  var _a, _b;
74
73
  const breakpointSizes = getSizesForBreakpoints(((_b = (_a = props.builderContext.content) == null ? void 0 : _a.meta) == null ? void 0 : _b.breakpoints) || {});
75
74
  return breakpointSizes[size].max;
76
75
  };
77
- const columnsStyles = function columnsStyles2(props, state) {
76
+ const columnsStyles = function columnsStyles2(props, state, gutterSize, cols, stackAt, flexDir) {
78
77
  const childColumnDiv = `.${props.builderBlock.id}-breakpoints > .builder-column`;
79
78
  return `
80
- @media (max-width: ${getWidthForBreakpointSize(props, state, "medium")}px) {
79
+ @media (max-width: ${getWidthForBreakpointSize(props, state, gutterSize, cols, stackAt, flexDir, "medium")}px) {
81
80
  .${props.builderBlock.id}-breakpoints {
82
81
  flex-direction: var(--flex-dir-tablet);
83
82
  align-items: stretch;
@@ -89,7 +88,7 @@ const columnsStyles = function columnsStyles2(props, state) {
89
88
  }
90
89
  }
91
90
 
92
- @media (max-width: ${getWidthForBreakpointSize(props, state, "small")}px) {
91
+ @media (max-width: ${getWidthForBreakpointSize(props, state, gutterSize, cols, stackAt, flexDir, "small")}px) {
93
92
  .${props.builderBlock.id}-breakpoints {
94
93
  flex-direction: var(--flex-dir);
95
94
  align-items: stretch;
@@ -102,55 +101,109 @@ const columnsStyles = function columnsStyles2(props, state) {
102
101
  },
103
102
  `;
104
103
  };
105
- const getAttributes = function getAttributes2(props, state, column, index) {
104
+ const getAttributes = function getAttributes2(props, state, gutterSize, cols, stackAt, flexDir, column, index) {
106
105
  return {
107
- ...{},
108
106
  ...column.link ? {
109
107
  href: column.link
110
108
  } : {},
111
109
  [getClassPropName()]: "builder-column",
112
- style: mapStyleObjToStrIfNeeded(columnCssVars(props, state, index))
110
+ style: mapStyleObjToStrIfNeeded(columnCssVars(props, state, gutterSize, cols, stackAt, flexDir, index))
113
111
  };
114
112
  };
115
- const Columns = component$((props) => {
113
+ const Columns = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
116
114
  var _a;
117
- const state = useStore({
118
- cols: props.columns || [],
119
- flexDir: props.stackColumnsAt === "never" ? "row" : props.reverseColumnsWhenStacked ? "column-reverse" : "column",
120
- gutterSize: typeof props.space === "number" ? props.space || 0 : 20,
121
- stackAt: props.stackColumnsAt || "tablet"
122
- });
123
- useStylesScoped$(STYLES);
124
- return /* @__PURE__ */ jsxs("div", {
115
+ _jsxBranch();
116
+ const state = {};
117
+ useStylesScopedQrl(/* @__PURE__ */ inlinedQrl(STYLES, "Columns_component_useStylesScoped_s7JLZz7MCCQ"));
118
+ const gutterSize = useComputedQrl(/* @__PURE__ */ inlinedQrl(() => {
119
+ const [props2] = useLexicalScope();
120
+ return typeof props2.space === "number" ? props2.space || 0 : 20;
121
+ }, "Columns_component_gutterSize_useComputed_j0vfXzMKBDA", [
122
+ props
123
+ ]));
124
+ const cols = useComputedQrl(/* @__PURE__ */ inlinedQrl(() => {
125
+ const [props2] = useLexicalScope();
126
+ return props2.columns || [];
127
+ }, "Columns_component_cols_useComputed_aVUzM2fGqrw", [
128
+ props
129
+ ]));
130
+ const stackAt = useComputedQrl(/* @__PURE__ */ inlinedQrl(() => {
131
+ const [props2] = useLexicalScope();
132
+ return props2.stackColumnsAt || "tablet";
133
+ }, "Columns_component_stackAt_useComputed_62lgKFigB6o", [
134
+ props
135
+ ]));
136
+ const flexDir = useComputedQrl(/* @__PURE__ */ inlinedQrl(() => {
137
+ const [props2] = useLexicalScope();
138
+ return props2.stackColumnsAt === "never" ? "row" : props2.reverseColumnsWhenStacked ? "column-reverse" : "column";
139
+ }, "Columns_component_flexDir_useComputed_FDnJAkDHoLk", [
140
+ props
141
+ ]));
142
+ return /* @__PURE__ */ _jsxQ("div", {
125
143
  class: getColumnsClass((_a = props.builderBlock) == null ? void 0 : _a.id) + " div-Columns",
126
- style: columnsCssVars(props, state),
127
- children: [
128
- /* @__PURE__ */ jsx(InlinedStyles, {
129
- id: "builderio-columns",
130
- styles: columnsStyles(props, state),
131
- nonce: props.builderContext.nonce
132
- }),
133
- (props.columns || []).map((column, index) => {
134
- return /* @__PURE__ */ jsx(DynamicRenderer, {
135
- TagName: getTagName(props, state, column),
136
- actionAttributes: {},
137
- attributes: getAttributes(props, state, column, index),
138
- children: /* @__PURE__ */ jsx(Blocks, {
139
- path: `component.options.columns.${index}.blocks`,
140
- parent: props.builderBlock.id,
141
- styleProp: {
144
+ style: columnsCssVars(props, state, gutterSize, cols, stackAt, flexDir)
145
+ }, null, [
146
+ /* @__PURE__ */ _jsxC(InlinedStyles, {
147
+ id: "builderio-columns",
148
+ styles: columnsStyles(props, state, gutterSize, cols, stackAt, flexDir),
149
+ get nonce() {
150
+ return props.builderContext.nonce;
151
+ },
152
+ [_IMMUTABLE]: {
153
+ id: _IMMUTABLE,
154
+ nonce: _fnSignal((p0) => p0.builderContext.nonce, [
155
+ props
156
+ ], "p0.builderContext.nonce")
157
+ }
158
+ }, 3, "c0_0"),
159
+ (props.columns || []).map((column, index) => {
160
+ return /* @__PURE__ */ _jsxC(DynamicRenderer, {
161
+ TagName: getTagName(props, state, gutterSize, cols, stackAt, flexDir, column),
162
+ actionAttributes: {},
163
+ attributes: getAttributes(props, state, gutterSize, cols, stackAt, flexDir, column, index),
164
+ children: /* @__PURE__ */ _jsxC(Blocks, {
165
+ path: `component.options.columns.${index}.blocks`,
166
+ get parent() {
167
+ return props.builderBlock.id;
168
+ },
169
+ get styleProp() {
170
+ return {
142
171
  flexGrow: "1"
143
- },
144
- context: props.builderContext,
145
- registeredComponents: props.builderComponents,
146
- linkComponent: props.builderLinkComponent,
147
- blocks: deoptSignal(column.blocks)
148
- })
149
- }, index);
150
- })
151
- ]
152
- });
153
- });
172
+ };
173
+ },
174
+ get context() {
175
+ return props.builderContext;
176
+ },
177
+ get registeredComponents() {
178
+ return props.builderComponents;
179
+ },
180
+ get linkComponent() {
181
+ return props.builderLinkComponent;
182
+ },
183
+ blocks: deoptSignal(column.blocks),
184
+ [_IMMUTABLE]: {
185
+ context: _fnSignal((p0) => p0.builderContext, [
186
+ props
187
+ ], "p0.builderContext"),
188
+ linkComponent: _fnSignal((p0) => p0.builderLinkComponent, [
189
+ props
190
+ ], "p0.builderLinkComponent"),
191
+ parent: _fnSignal((p0) => p0.builderBlock.id, [
192
+ props
193
+ ], "p0.builderBlock.id"),
194
+ registeredComponents: _fnSignal((p0) => p0.builderComponents, [
195
+ props
196
+ ], "p0.builderComponents"),
197
+ styleProp: _IMMUTABLE
198
+ }
199
+ }, 3, "c0_1"),
200
+ [_IMMUTABLE]: {
201
+ actionAttributes: _IMMUTABLE
202
+ }
203
+ }, 1, index);
204
+ })
205
+ ], 1, "c0_2");
206
+ }, "Columns_component_7yLj4bxdI6c"));
154
207
  const STYLES = `
155
208
  .div-Columns {
156
209
  display: flex;
@@ -200,16 +200,15 @@ const componentInfo = {
200
200
  const containsColumnWithWidth = !!columns.find((col) => col.get("width"));
201
201
  if (containsColumnWithWidth) {
202
202
  const containsColumnWithoutWidth = !!columns.find((col) => !col.get("width"));
203
- if (containsColumnWithoutWidth) {
203
+ if (containsColumnWithoutWidth)
204
204
  clearWidths();
205
- } else {
205
+ else {
206
206
  const sumWidths = columns.reduce((memo, col) => {
207
207
  return memo + col.get("width");
208
208
  }, 0);
209
209
  const widthsDontAddUp = sumWidths !== 100;
210
- if (widthsDontAddUp) {
210
+ if (widthsDontAddUp)
211
211
  clearWidths();
212
- }
213
212
  }
214
213
  }
215
214
  }
@@ -198,16 +198,15 @@ const componentInfo = {
198
198
  const containsColumnWithWidth = !!columns.find((col) => col.get("width"));
199
199
  if (containsColumnWithWidth) {
200
200
  const containsColumnWithoutWidth = !!columns.find((col) => !col.get("width"));
201
- if (containsColumnWithoutWidth) {
201
+ if (containsColumnWithoutWidth)
202
202
  clearWidths();
203
- } else {
203
+ else {
204
204
  const sumWidths = columns.reduce((memo, col) => {
205
205
  return memo + col.get("width");
206
206
  }, 0);
207
207
  const widthsDontAddUp = sumWidths !== 100;
208
- if (widthsDontAddUp) {
208
+ if (widthsDontAddUp)
209
209
  clearWidths();
210
- }
211
210
  }
212
211
  }
213
212
  }