@builder.io/sdk-vue 0.8.0 → 0.9.0

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 (279) hide show
  1. package/README.md +1 -4
  2. package/package.json +1 -1
  3. package/vue2/lib/browser/{block-9d4161fb.cjs → block-8eb8a717.cjs} +2 -2
  4. package/vue2/lib/{edge/block-c6f466c0.js → browser/block-f46a2e5f.js} +7 -7
  5. package/vue2/lib/{node/block-styles-b947dfc5.js → browser/block-styles-5d933df0.js} +5 -5
  6. package/vue2/lib/{node/block-styles-c4974a44.cjs → browser/block-styles-c36b606c.cjs} +1 -1
  7. package/vue2/lib/browser/{block-wrapper-0d4fe902.js → block-wrapper-9032b3aa.js} +5 -5
  8. package/vue2/lib/browser/{block-wrapper-3157e1bc.cjs → block-wrapper-e68eb3ce.cjs} +1 -1
  9. package/vue2/lib/browser/blocks-wrapper-13a20963.js +74 -0
  10. package/vue2/lib/browser/blocks-wrapper-233d7a58.cjs +1 -0
  11. package/vue2/lib/{node/component-ref-7f93a1f0.cjs → browser/component-ref-3eabf9d3.cjs} +1 -1
  12. package/vue2/lib/{edge/component-ref-b3b70fa9.js → browser/component-ref-aff72404.js} +6 -6
  13. package/vue2/lib/browser/components/block/components/component-ref/component-ref.helpers.d.ts +1 -3
  14. package/vue2/lib/browser/components/block/components/component-ref/component-ref.vue.d.ts +1 -3
  15. package/vue2/lib/browser/components/blocks/blocks-wrapper.vue.d.ts +14 -0
  16. package/vue2/lib/browser/components/blocks/blocks.vue.d.ts +1 -1
  17. package/vue2/lib/browser/components/content/components/enable-editor.vue.d.ts +3 -0
  18. package/vue2/lib/browser/components/content/content.vue.d.ts +2 -0
  19. package/vue2/lib/browser/components/content-variants/content-variants.types.d.ts +16 -0
  20. package/vue2/lib/browser/components/content-variants/content-variants.vue.d.ts +12 -0
  21. package/vue2/lib/browser/constants/sdk-version.d.ts +1 -1
  22. package/vue2/lib/browser/{content-0575efdf.cjs → content-01c5295f.cjs} +1 -1
  23. package/vue2/lib/{edge/content-90700d7e.js → browser/content-5ff1bf50.js} +29 -23
  24. package/vue2/lib/browser/context/builder.context.d.ts +2 -0
  25. package/vue2/lib/browser/context/types.d.ts +2 -1
  26. package/vue2/lib/{node/css-97122c97.js → browser/css-0e1a5906.js} +1 -1
  27. package/vue2/lib/browser/{css-9cb1ef7e.cjs → css-8f0dfb3a.cjs} +1 -1
  28. package/vue2/lib/browser/enable-editor-79943def.cjs +1 -0
  29. package/vue2/lib/browser/{enable-editor-c377a256.js → enable-editor-ba199201.js} +25 -27
  30. package/vue2/lib/browser/{evaluate-2857c518.js → evaluate-c7aac0ee.js} +1 -1
  31. package/vue2/lib/browser/{evaluate-5a5f1e1a.cjs → evaluate-ec382d17.cjs} +1 -1
  32. package/vue2/lib/browser/functions/get-block-properties.d.ts +1 -1
  33. package/vue2/lib/browser/functions/transform-block-properties.d.ts +5 -2
  34. package/vue2/lib/browser/{get-block-actions-797d49a2.cjs → get-block-actions-34f93bab.cjs} +1 -1
  35. package/vue2/lib/{edge/get-block-actions-a4c6a740.js → browser/get-block-actions-80d8a41d.js} +2 -2
  36. package/vue2/lib/browser/{get-block-properties-eb393578.js → get-block-properties-b80c51fd.js} +10 -4
  37. package/vue2/lib/browser/get-block-properties-fcbe86d3.cjs +1 -0
  38. package/vue2/lib/browser/{get-processed-block-d2849656.js → get-processed-block-08346ffe.js} +2 -2
  39. package/vue2/lib/browser/{get-processed-block-e9eb76d5.cjs → get-processed-block-bb410f6f.cjs} +1 -1
  40. package/vue2/lib/{node/index-f82ca488.cjs → browser/index-4d603d94.cjs} +7 -7
  41. package/vue2/lib/{edge/index-22fb0dfe.js → browser/index-d4551a7a.js} +110 -103
  42. package/vue2/lib/browser/index-helpers/blocks-exports.d.ts +12 -0
  43. package/vue2/lib/browser/index.cjs +1 -1
  44. package/vue2/lib/browser/index.js +1 -1
  45. package/vue2/lib/{edge/inlined-script-f5a56ea4.js → browser/inlined-script-18dd0beb.js} +1 -1
  46. package/vue2/lib/browser/{inlined-script-166d99c7.cjs → inlined-script-ff6b73ba.cjs} +1 -1
  47. package/vue2/lib/browser/{inlined-styles-4c4a89e2.cjs → inlined-styles-3c12a021.cjs} +1 -1
  48. package/vue2/lib/{node/inlined-styles-4fa88e65.js → browser/inlined-styles-b687d7f1.js} +1 -1
  49. package/vue2/lib/{node/interactive-element-f08c324e.cjs → browser/interactive-element-52eda23c.cjs} +1 -1
  50. package/vue2/lib/{node/interactive-element-f46aae31.js → browser/interactive-element-91f198a4.js} +5 -5
  51. package/vue2/lib/{node/repeated-block-fe5a6df8.js → browser/repeated-block-6a55f793.js} +2 -2
  52. package/vue2/lib/{node/repeated-block-5d832619.cjs → browser/repeated-block-956e883f.cjs} +1 -1
  53. package/vue2/lib/browser/style.css +1 -1
  54. package/vue2/lib/browser/{styles-3945b4c7.js → styles-36c9fddb.js} +2 -2
  55. package/vue2/lib/{node/styles-85761eb4.cjs → browser/styles-8dc5678c.cjs} +2 -2
  56. package/vue2/lib/browser/types/enforced-partials.d.ts +7 -2
  57. package/vue2/lib/{browser/block-f5679152.js → edge/block-3d9fb7c2.js} +7 -7
  58. package/vue2/lib/{node/block-f9029bc3.cjs → edge/block-f15be379.cjs} +2 -2
  59. package/vue2/lib/edge/{block-styles-37805084.js → block-styles-8d163d7c.js} +5 -5
  60. package/vue2/lib/edge/{block-styles-adc484c6.cjs → block-styles-b8533af9.cjs} +1 -1
  61. package/vue2/lib/{node/block-wrapper-04b443cd.js → edge/block-wrapper-5c00ae5e.js} +5 -5
  62. package/vue2/lib/{node/block-wrapper-8ba974d4.cjs → edge/block-wrapper-aaa3ed0e.cjs} +1 -1
  63. package/vue2/lib/edge/blocks-wrapper-61df90f4.js +74 -0
  64. package/vue2/lib/edge/blocks-wrapper-69c07fcc.cjs +1 -0
  65. package/vue2/lib/{browser/component-ref-c51b0a20.cjs → edge/component-ref-0f3a0ba1.cjs} +1 -1
  66. package/vue2/lib/{node/component-ref-5f0d480f.js → edge/component-ref-193f3231.js} +6 -6
  67. package/vue2/lib/edge/components/block/components/component-ref/component-ref.helpers.d.ts +1 -3
  68. package/vue2/lib/edge/components/block/components/component-ref/component-ref.vue.d.ts +1 -3
  69. package/vue2/lib/edge/components/blocks/blocks-wrapper.vue.d.ts +14 -0
  70. package/vue2/lib/edge/components/blocks/blocks.vue.d.ts +1 -1
  71. package/vue2/lib/edge/components/content/components/enable-editor.vue.d.ts +3 -0
  72. package/vue2/lib/edge/components/content/content.vue.d.ts +2 -0
  73. package/vue2/lib/edge/components/content-variants/content-variants.types.d.ts +16 -0
  74. package/vue2/lib/edge/components/content-variants/content-variants.vue.d.ts +12 -0
  75. package/vue2/lib/edge/constants/sdk-version.d.ts +1 -1
  76. package/vue2/lib/{browser/content-84bda2e9.js → edge/content-0e433688.js} +29 -23
  77. package/vue2/lib/{node/content-a860398a.cjs → edge/content-deb91a9b.cjs} +1 -1
  78. package/vue2/lib/edge/context/builder.context.d.ts +2 -0
  79. package/vue2/lib/edge/context/types.d.ts +2 -1
  80. package/vue2/lib/{browser/css-bdeda4e4.js → edge/css-81e2e40c.js} +1 -1
  81. package/vue2/lib/{node/css-fb2674c8.cjs → edge/css-a72ded40.cjs} +1 -1
  82. package/vue2/lib/edge/enable-editor-27dc580b.cjs +1 -0
  83. package/vue2/lib/{node/enable-editor-df62e3bf.js → edge/enable-editor-cd9aa0aa.js} +25 -27
  84. package/vue2/lib/edge/{evaluate-4bd2a851.cjs → evaluate-128da0ac.cjs} +1 -1
  85. package/vue2/lib/edge/{evaluate-2a5e2028.js → evaluate-8d0bbfbd.js} +1 -1
  86. package/vue2/lib/edge/functions/get-block-properties.d.ts +1 -1
  87. package/vue2/lib/edge/functions/transform-block-properties.d.ts +5 -2
  88. package/vue2/lib/edge/{get-block-actions-84b02e58.cjs → get-block-actions-1b4a42bd.cjs} +1 -1
  89. package/vue2/lib/{node/get-block-actions-035815cd.js → edge/get-block-actions-b804a4ed.js} +2 -2
  90. package/vue2/lib/{node/get-block-properties-b3de78f4.js → edge/get-block-properties-248979b7.js} +10 -4
  91. package/vue2/lib/edge/get-block-properties-91cdf9bd.cjs +1 -0
  92. package/vue2/lib/edge/{get-processed-block-8f70184a.cjs → get-processed-block-08d699f0.cjs} +1 -1
  93. package/vue2/lib/{node/get-processed-block-e16b5f0b.js → edge/get-processed-block-9ad00b6e.js} +2 -2
  94. package/vue2/lib/{browser/index-1fdc0dd8.js → edge/index-23a8bb60.js} +110 -103
  95. package/vue2/lib/edge/{index-cf208007.cjs → index-4db92fa7.cjs} +7 -7
  96. package/vue2/lib/edge/index-helpers/blocks-exports.d.ts +12 -0
  97. package/vue2/lib/edge/index.cjs +1 -1
  98. package/vue2/lib/edge/index.js +1 -1
  99. package/vue2/lib/{node/inlined-script-a6f84120.js → edge/inlined-script-3796a498.js} +1 -1
  100. package/vue2/lib/edge/{inlined-script-f460fc92.cjs → inlined-script-e880446d.cjs} +1 -1
  101. package/vue2/lib/edge/{inlined-styles-ea805c3d.js → inlined-styles-ae4fbc9f.js} +1 -1
  102. package/vue2/lib/edge/{inlined-styles-c9c77496.cjs → inlined-styles-ae989bfa.cjs} +1 -1
  103. package/vue2/lib/{browser/interactive-element-f3bc9b6c.js → edge/interactive-element-4613d798.js} +5 -5
  104. package/vue2/lib/edge/{interactive-element-d909635d.cjs → interactive-element-e0de8a75.cjs} +1 -1
  105. package/vue2/lib/{browser/repeated-block-8c6f0ef0.cjs → edge/repeated-block-061a93e5.cjs} +1 -1
  106. package/vue2/lib/{browser/repeated-block-59ab7fe5.js → edge/repeated-block-277f2b40.js} +2 -2
  107. package/vue2/lib/edge/style.css +1 -1
  108. package/vue2/lib/{browser/styles-0fbadb80.cjs → edge/styles-290ae837.cjs} +2 -2
  109. package/vue2/lib/edge/{styles-8840ca47.js → styles-cca4b08e.js} +2 -2
  110. package/vue2/lib/edge/types/enforced-partials.d.ts +7 -2
  111. package/vue2/lib/node/{block-6dc57ba5.js → block-88d3d176.js} +7 -7
  112. package/vue2/lib/{edge/block-03548c5c.cjs → node/block-b586205d.cjs} +2 -2
  113. package/vue2/lib/{browser/block-styles-b76b4562.cjs → node/block-styles-471fd00b.cjs} +1 -1
  114. package/vue2/lib/{browser/block-styles-6ca785bb.js → node/block-styles-aba16bf4.js} +5 -5
  115. package/vue2/lib/{edge/block-wrapper-ff8027da.cjs → node/block-wrapper-c76e2259.cjs} +1 -1
  116. package/vue2/lib/{edge/block-wrapper-1d75af67.js → node/block-wrapper-d1dab513.js} +5 -5
  117. package/vue2/lib/node/blocks-wrapper-6dd528c4.js +74 -0
  118. package/vue2/lib/node/blocks-wrapper-9abf97bd.cjs +1 -0
  119. package/vue2/lib/{edge/component-ref-fc9c9d6b.cjs → node/component-ref-08e79b50.cjs} +1 -1
  120. package/vue2/lib/{browser/component-ref-d59047de.js → node/component-ref-3ee361bc.js} +6 -6
  121. package/vue2/lib/node/components/block/components/component-ref/component-ref.helpers.d.ts +1 -3
  122. package/vue2/lib/node/components/block/components/component-ref/component-ref.vue.d.ts +1 -3
  123. package/vue2/lib/node/components/blocks/blocks-wrapper.vue.d.ts +14 -0
  124. package/vue2/lib/node/components/blocks/blocks.vue.d.ts +1 -1
  125. package/vue2/lib/node/components/content/components/enable-editor.vue.d.ts +3 -0
  126. package/vue2/lib/node/components/content/content.vue.d.ts +2 -0
  127. package/vue2/lib/node/components/content-variants/content-variants.types.d.ts +16 -0
  128. package/vue2/lib/node/components/content-variants/content-variants.vue.d.ts +12 -0
  129. package/vue2/lib/node/constants/sdk-version.d.ts +1 -1
  130. package/vue2/lib/node/{content-b604b895.js → content-3d542f91.js} +29 -23
  131. package/vue2/lib/{edge/content-e5850b95.cjs → node/content-d8091f69.cjs} +1 -1
  132. package/vue2/lib/node/context/builder.context.d.ts +2 -0
  133. package/vue2/lib/node/context/types.d.ts +2 -1
  134. package/vue2/lib/{edge/css-5dcb14df.cjs → node/css-f88973d9.cjs} +1 -1
  135. package/vue2/lib/{edge/css-99493b5d.js → node/css-fc678131.js} +1 -1
  136. package/vue2/lib/{edge/enable-editor-81a0ad6d.js → node/enable-editor-7a3fcc5f.js} +25 -27
  137. package/vue2/lib/node/enable-editor-85e730f9.cjs +1 -0
  138. package/vue2/lib/node/{evaluate-44daeb3b.cjs → evaluate-10e29303.cjs} +1 -1
  139. package/vue2/lib/node/{evaluate-b86af327.js → evaluate-e38e24b8.js} +24 -23
  140. package/vue2/lib/node/functions/get-block-properties.d.ts +1 -1
  141. package/vue2/lib/node/functions/transform-block-properties.d.ts +5 -2
  142. package/vue2/lib/{browser/get-block-actions-6774e2de.js → node/get-block-actions-8c081856.js} +2 -2
  143. package/vue2/lib/node/{get-block-actions-0c98c4e4.cjs → get-block-actions-ac6479e1.cjs} +1 -1
  144. package/vue2/lib/{edge/get-block-properties-450803e5.js → node/get-block-properties-2a5dbda8.js} +10 -4
  145. package/vue2/lib/node/get-block-properties-81e3699e.cjs +1 -0
  146. package/vue2/lib/{edge/get-processed-block-1d7ecd6a.js → node/get-processed-block-ebacd599.js} +2 -2
  147. package/vue2/lib/node/{get-processed-block-34d0880b.cjs → get-processed-block-ebf5f46b.cjs} +1 -1
  148. package/vue2/lib/{browser/index-e56cba6d.cjs → node/index-d62c9232.cjs} +7 -7
  149. package/vue2/lib/node/{index-04eac5bd.js → index-ef12824d.js} +110 -103
  150. package/vue2/lib/node/index-helpers/blocks-exports.d.ts +12 -0
  151. package/vue2/lib/node/index.cjs +1 -1
  152. package/vue2/lib/node/index.js +1 -1
  153. package/vue2/lib/{browser/inlined-script-0fd7eea7.js → node/inlined-script-1cd578e5.js} +1 -1
  154. package/vue2/lib/node/{inlined-script-3d1617fb.cjs → inlined-script-88b1aa3e.cjs} +1 -1
  155. package/vue2/lib/{browser/inlined-styles-73447147.js → node/inlined-styles-1d3927dc.js} +1 -1
  156. package/vue2/lib/node/{inlined-styles-e70e3d2e.cjs → inlined-styles-91685244.cjs} +1 -1
  157. package/vue2/lib/{browser/interactive-element-772e6a3d.cjs → node/interactive-element-95a3909c.cjs} +1 -1
  158. package/vue2/lib/{edge/interactive-element-340237cb.js → node/interactive-element-97fabd2d.js} +5 -5
  159. package/vue2/lib/{edge/repeated-block-b32d9254.js → node/repeated-block-1bf29b19.js} +2 -2
  160. package/vue2/lib/{edge/repeated-block-d2b864a8.cjs → node/repeated-block-ef8d5bc1.cjs} +1 -1
  161. package/vue2/lib/node/style.css +1 -1
  162. package/vue2/lib/node/{styles-5a4adee9.js → styles-b6c2eccd.js} +2 -2
  163. package/vue2/lib/{edge/styles-8f4d5e0d.cjs → node/styles-c3cd7c3e.cjs} +2 -2
  164. package/vue2/lib/node/types/enforced-partials.d.ts +7 -2
  165. package/vue3/lib/{edge/block-wrapper.6ce0ef67.js → browser/block-wrapper.15e14a7d.js} +2 -2
  166. package/vue3/lib/{edge/block-wrapper.6a65a5d4.cjs → browser/block-wrapper.a7f5948e.cjs} +1 -1
  167. package/vue3/lib/browser/blocks/image/image.vue.d.ts +3 -3
  168. package/vue3/lib/{edge/component-ref.8741a80d.cjs → browser/component-ref.15d8ca5f.cjs} +1 -1
  169. package/vue3/lib/{edge/component-ref.6603a2a5.js → browser/component-ref.b4fe8508.js} +2 -2
  170. package/vue3/lib/browser/components/block/components/component-ref/component-ref.helpers.d.ts +1 -3
  171. package/vue3/lib/browser/components/block/components/component-ref/component-ref.vue.d.ts +1 -3
  172. package/vue3/lib/browser/components/blocks/blocks-wrapper.vue.d.ts +14 -0
  173. package/vue3/lib/browser/components/blocks/blocks.vue.d.ts +7 -7
  174. package/vue3/lib/browser/components/content/components/enable-editor.vue.d.ts +9 -0
  175. package/vue3/lib/browser/components/content/content.vue.d.ts +14 -0
  176. package/vue3/lib/browser/components/content-variants/content-variants.types.d.ts +16 -0
  177. package/vue3/lib/browser/components/content-variants/content-variants.vue.d.ts +12 -0
  178. package/vue3/lib/browser/constants/sdk-version.d.ts +1 -1
  179. package/vue3/lib/browser/context/builder.context.d.ts +2 -0
  180. package/vue3/lib/browser/context/types.d.ts +2 -1
  181. package/vue3/lib/browser/functions/get-block-properties.d.ts +1 -1
  182. package/vue3/lib/browser/functions/transform-block-properties.d.ts +5 -2
  183. package/vue3/lib/browser/get-block-actions.1284f7f4.cjs +1 -0
  184. package/vue3/lib/{edge/get-block-actions.a147904d.js → browser/get-block-actions.25085dc6.js} +17 -11
  185. package/vue3/lib/browser/index-helpers/blocks-exports.d.ts +18 -6
  186. package/vue3/lib/browser/{index.dfff88fe.js → index.c84b511e.js} +675 -634
  187. package/vue3/lib/browser/index.cjs +1 -1
  188. package/vue3/lib/browser/{index.8871e74f.cjs → index.e038c54d.cjs} +19 -19
  189. package/vue3/lib/browser/index.js +1 -1
  190. package/vue3/lib/{edge/repeated-block.3cdac290.js → browser/repeated-block.c501aed0.js} +2 -2
  191. package/vue3/lib/browser/{repeated-block.fecd4553.cjs → repeated-block.eb1f9edd.cjs} +1 -1
  192. package/vue3/lib/browser/style.css +1 -1
  193. package/vue3/lib/browser/types/enforced-partials.d.ts +7 -2
  194. package/vue3/lib/{browser/block-wrapper.352385b7.js → edge/block-wrapper.695c0554.js} +2 -2
  195. package/vue3/lib/{browser/block-wrapper.5e6d25d7.cjs → edge/block-wrapper.9cca9b7b.cjs} +1 -1
  196. package/vue3/lib/edge/blocks/image/image.vue.d.ts +3 -3
  197. package/vue3/lib/{browser/component-ref.5c2938c9.cjs → edge/component-ref.50f222f3.cjs} +1 -1
  198. package/vue3/lib/{browser/component-ref.bf30bc42.js → edge/component-ref.5be0ad03.js} +2 -2
  199. package/vue3/lib/edge/components/block/components/component-ref/component-ref.helpers.d.ts +1 -3
  200. package/vue3/lib/edge/components/block/components/component-ref/component-ref.vue.d.ts +1 -3
  201. package/vue3/lib/edge/components/blocks/blocks-wrapper.vue.d.ts +14 -0
  202. package/vue3/lib/edge/components/blocks/blocks.vue.d.ts +7 -7
  203. package/vue3/lib/edge/components/content/components/enable-editor.vue.d.ts +9 -0
  204. package/vue3/lib/edge/components/content/content.vue.d.ts +14 -0
  205. package/vue3/lib/edge/components/content-variants/content-variants.types.d.ts +16 -0
  206. package/vue3/lib/edge/components/content-variants/content-variants.vue.d.ts +12 -0
  207. package/vue3/lib/edge/constants/sdk-version.d.ts +1 -1
  208. package/vue3/lib/edge/context/builder.context.d.ts +2 -0
  209. package/vue3/lib/edge/context/types.d.ts +2 -1
  210. package/vue3/lib/edge/functions/get-block-properties.d.ts +1 -1
  211. package/vue3/lib/edge/functions/transform-block-properties.d.ts +5 -2
  212. package/vue3/lib/edge/get-block-actions.1d0e09b6.cjs +1 -0
  213. package/vue3/lib/{browser/get-block-actions.6a86c1e3.js → edge/get-block-actions.f2e5b517.js} +17 -11
  214. package/vue3/lib/edge/index-helpers/blocks-exports.d.ts +18 -6
  215. package/vue3/lib/edge/{index.7bae31e6.js → index.33299292.js} +846 -805
  216. package/vue3/lib/edge/{index.01b1f45a.cjs → index.99c2904d.cjs} +26 -26
  217. package/vue3/lib/edge/index.cjs +1 -1
  218. package/vue3/lib/edge/index.js +1 -1
  219. package/vue3/lib/{browser/repeated-block.16b97544.js → edge/repeated-block.14eebee4.js} +2 -2
  220. package/vue3/lib/edge/{repeated-block.7f5a9758.cjs → repeated-block.53e299ee.cjs} +1 -1
  221. package/vue3/lib/edge/style.css +1 -1
  222. package/vue3/lib/edge/types/enforced-partials.d.ts +7 -2
  223. package/vue3/lib/node/{block-wrapper.d4a48d58.cjs → block-wrapper.0a0c40cf.cjs} +1 -1
  224. package/vue3/lib/node/{block-wrapper.6198973e.js → block-wrapper.728d47ca.js} +2 -2
  225. package/vue3/lib/node/blocks/image/image.vue.d.ts +3 -3
  226. package/vue3/lib/node/{component-ref.d6bc01e4.cjs → component-ref.d5125dbe.cjs} +1 -1
  227. package/vue3/lib/node/{component-ref.a11780f4.js → component-ref.f9faaca2.js} +2 -2
  228. package/vue3/lib/node/components/block/components/component-ref/component-ref.helpers.d.ts +1 -3
  229. package/vue3/lib/node/components/block/components/component-ref/component-ref.vue.d.ts +1 -3
  230. package/vue3/lib/node/components/blocks/blocks-wrapper.vue.d.ts +14 -0
  231. package/vue3/lib/node/components/blocks/blocks.vue.d.ts +7 -7
  232. package/vue3/lib/node/components/content/components/enable-editor.vue.d.ts +9 -0
  233. package/vue3/lib/node/components/content/content.vue.d.ts +14 -0
  234. package/vue3/lib/node/components/content-variants/content-variants.types.d.ts +16 -0
  235. package/vue3/lib/node/components/content-variants/content-variants.vue.d.ts +12 -0
  236. package/vue3/lib/node/constants/sdk-version.d.ts +1 -1
  237. package/vue3/lib/node/context/builder.context.d.ts +2 -0
  238. package/vue3/lib/node/context/types.d.ts +2 -1
  239. package/vue3/lib/node/functions/get-block-properties.d.ts +1 -1
  240. package/vue3/lib/node/functions/transform-block-properties.d.ts +5 -2
  241. package/vue3/lib/node/get-block-actions.1079cc08.cjs +1 -0
  242. package/vue3/lib/node/{get-block-actions.a19931a2.js → get-block-actions.1b3dcb45.js} +17 -11
  243. package/vue3/lib/node/index-helpers/blocks-exports.d.ts +18 -6
  244. package/vue3/lib/node/{index.67294824.js → index.558533a1.js} +857 -810
  245. package/vue3/lib/node/index.6720f6e5.cjs +201 -0
  246. package/vue3/lib/node/index.cjs +1 -1
  247. package/vue3/lib/node/index.js +1 -1
  248. package/vue3/lib/node/{repeated-block.6106c352.js → repeated-block.38b9803d.js} +2 -2
  249. package/vue3/lib/node/{repeated-block.ab684d37.cjs → repeated-block.9d836783.cjs} +1 -1
  250. package/vue3/lib/node/style.css +1 -1
  251. package/vue3/lib/node/types/enforced-partials.d.ts +7 -2
  252. package/vue2/lib/browser/blocks-wrapper-02404286.cjs +0 -1
  253. package/vue2/lib/browser/blocks-wrapper-dc71efe8.js +0 -73
  254. package/vue2/lib/browser/enable-editor-c49316d4.cjs +0 -1
  255. package/vue2/lib/browser/functions/get-react-native-block-styles.d.ts +0 -7
  256. package/vue2/lib/browser/functions/sanitize-react-native-block-styles.d.ts +0 -3
  257. package/vue2/lib/browser/get-block-properties-b25a78e1.cjs +0 -1
  258. package/vue2/lib/edge/blocks-wrapper-e329b941.js +0 -73
  259. package/vue2/lib/edge/blocks-wrapper-ed7f6801.cjs +0 -1
  260. package/vue2/lib/edge/enable-editor-31a92cf5.cjs +0 -1
  261. package/vue2/lib/edge/functions/get-react-native-block-styles.d.ts +0 -7
  262. package/vue2/lib/edge/functions/sanitize-react-native-block-styles.d.ts +0 -3
  263. package/vue2/lib/edge/get-block-properties-a07f7705.cjs +0 -1
  264. package/vue2/lib/node/blocks-wrapper-2ebcec73.js +0 -73
  265. package/vue2/lib/node/blocks-wrapper-e32910ce.cjs +0 -1
  266. package/vue2/lib/node/enable-editor-cdf1803d.cjs +0 -1
  267. package/vue2/lib/node/functions/get-react-native-block-styles.d.ts +0 -7
  268. package/vue2/lib/node/functions/sanitize-react-native-block-styles.d.ts +0 -3
  269. package/vue2/lib/node/get-block-properties-d46ce865.cjs +0 -1
  270. package/vue3/lib/browser/functions/get-react-native-block-styles.d.ts +0 -7
  271. package/vue3/lib/browser/functions/sanitize-react-native-block-styles.d.ts +0 -3
  272. package/vue3/lib/browser/get-block-actions.f6ff7325.cjs +0 -1
  273. package/vue3/lib/edge/functions/get-react-native-block-styles.d.ts +0 -7
  274. package/vue3/lib/edge/functions/sanitize-react-native-block-styles.d.ts +0 -3
  275. package/vue3/lib/edge/get-block-actions.a9e5c4f5.cjs +0 -1
  276. package/vue3/lib/node/functions/get-react-native-block-styles.d.ts +0 -7
  277. package/vue3/lib/node/functions/sanitize-react-native-block-styles.d.ts +0 -3
  278. package/vue3/lib/node/get-block-actions.ecd370ea.cjs +0 -1
  279. package/vue3/lib/node/index.4291aa83.cjs +0 -201
@@ -1,6 +1,6 @@
1
1
  import "./style.css";
2
2
  import { defineComponent as u } from "vue";
3
- function E(e = {}, t, n) {
3
+ function P(e = {}, t, n) {
4
4
  const o = {};
5
5
  for (const r in e) {
6
6
  if (!e[r] || n && !r.startsWith(t))
@@ -14,7 +14,7 @@ const dt = u({
14
14
  name: "builder-button",
15
15
  props: ["attributes", "text", "link", "openLinkInNewTab"],
16
16
  data() {
17
- return { filterAttrs: E };
17
+ return { filterAttrs: P };
18
18
  },
19
19
  methods: {
20
20
  _classStringToObject(e) {
@@ -45,8 +45,8 @@ function p(e, t, n, o, r, s, i, f) {
45
45
  if (a.functional) {
46
46
  a._injectStyles = c;
47
47
  var v = a.render;
48
- a.render = function(k, b) {
49
- return c.call(b), v(k, b);
48
+ a.render = function(k, _) {
49
+ return c.call(_), v(k, _);
50
50
  };
51
51
  } else {
52
52
  var S = a.beforeCreate;
@@ -70,7 +70,7 @@ var ut = function() {
70
70
  null,
71
71
  null
72
72
  );
73
- const dn = mt.exports, A = (e) => JSON.parse(JSON.stringify(e)), M = {
73
+ const dn = mt.exports, E = (e) => JSON.parse(JSON.stringify(e)), M = {
74
74
  small: {
75
75
  min: 320,
76
76
  default: 321,
@@ -90,7 +90,7 @@ const dn = mt.exports, A = (e) => JSON.parse(JSON.stringify(e)), M = {
90
90
  small: e,
91
91
  medium: t
92
92
  }) => {
93
- const n = A(M);
93
+ const n = E(M);
94
94
  if (!e || !t)
95
95
  return n;
96
96
  const o = Math.floor(e / 2);
@@ -117,14 +117,14 @@ const dn = mt.exports, A = (e) => JSON.parse(JSON.stringify(e)), M = {
117
117
  "Error while attempting to dynamically import component Blocks at ../../components/blocks/blocks.vue",
118
118
  e
119
119
  ), e;
120
- }), _t = () => import("./inlined-styles-ea805c3d.js").then((e) => e.default).catch((e) => {
120
+ }), bt = () => import("./inlined-styles-b687d7f1.js").then((e) => e.default).catch((e) => {
121
121
  throw console.error(
122
122
  "Error while attempting to dynamically import component InlinedStyles at ../../components/inlined-styles.vue",
123
123
  e
124
124
  ), e;
125
- }), bt = u({
125
+ }), _t = u({
126
126
  name: "builder-columns",
127
- components: { "inlined-styles": _t, blocks: ht },
127
+ components: { "inlined-styles": bt, blocks: ht },
128
128
  props: [
129
129
  "js",
130
130
  "space",
@@ -253,7 +253,7 @@ var gt = function() {
253
253
  }, context: t.builderContext, registeredComponents: t.builderComponents, blocks: o.blocks } })], 1);
254
254
  })], 2);
255
255
  }, yt = [], vt = /* @__PURE__ */ p(
256
- bt,
256
+ _t,
257
257
  gt,
258
258
  yt,
259
259
  !1,
@@ -280,7 +280,7 @@ var kt = function() {
280
280
  null
281
281
  );
282
282
  const mn = xt.exports;
283
- function U(e) {
283
+ function j(e) {
284
284
  return e.replace(/http(s)?:/, "");
285
285
  }
286
286
  function wt(e = "", t, n) {
@@ -291,11 +291,11 @@ function It(e, t) {
291
291
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
292
292
  return e;
293
293
  if (t === "master")
294
- return U(e);
294
+ return j(e);
295
295
  const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
296
296
  if (n) {
297
297
  const o = e.split(n[0]), r = n[3], s = t.match("x") ? t : `${t}x`;
298
- return U(`${o[0]}_${s}${r}`);
298
+ return j(`${o[0]}_${s}${r}`);
299
299
  }
300
300
  return null;
301
301
  }
@@ -380,7 +380,7 @@ var Tt = function() {
380
380
  }, attrs: { loading: "lazy", alt: t.altText, role: t.altText ? "presentation" : void 0, src: t.image, srcset: t.srcSetToUse, sizes: t.sizes } })], 2), t.aspectRatio && !((r = (o = t.builderBlock) == null ? void 0 : o.children) != null && r.length && t.fitContent) ? [n("div", { staticClass: "builder-image-sizer div-1pl23ac79ld", style: {
381
381
  paddingTop: t.aspectRatio * 100 + "%"
382
382
  } })] : t._e(), (i = (s = t.builderBlock) == null ? void 0 : s.children) != null && i.length && t.fitContent ? [t._t("default")] : t._e(), !t.fitContent && t.$slots.default ? [n("div", { staticClass: "div-1pl23ac79ld-2" }, [t._t("default")], 2)] : t._e()], 2);
383
- }, Rt = [], Et = /* @__PURE__ */ p(
383
+ }, Rt = [], Pt = /* @__PURE__ */ p(
384
384
  $t,
385
385
  Tt,
386
386
  Rt,
@@ -390,14 +390,14 @@ var Tt = function() {
390
390
  null,
391
391
  null
392
392
  );
393
- const fn = Et.exports, At = u({
393
+ const fn = Pt.exports, Et = u({
394
394
  name: "builder-section-component",
395
395
  props: ["attributes", "maxWidth"],
396
396
  data() {
397
- return { filterAttrs: E };
397
+ return { filterAttrs: P };
398
398
  }
399
399
  });
400
- var Vt = function() {
400
+ var At = function() {
401
401
  var t = this, n = t._self._c;
402
402
  return t._self._setupProxy, n("section", t._g(t._b({ style: {
403
403
  width: "100%",
@@ -411,17 +411,17 @@ var Vt = function() {
411
411
  marginLeft: "auto",
412
412
  marginRight: "auto"
413
413
  } }, "section", t.filterAttrs(t.attributes, "v-on:", !1), !1), t.filterAttrs(t.attributes, "v-on:", !0)), [t._t("default")], 2);
414
- }, Pt = [], Ot = /* @__PURE__ */ p(
414
+ }, Vt = [], Ot = /* @__PURE__ */ p(
415
+ Et,
415
416
  At,
416
417
  Vt,
417
- Pt,
418
418
  !1,
419
419
  null,
420
420
  null,
421
421
  null,
422
422
  null
423
423
  );
424
- const hn = Ot.exports, x = "[Builder.io]: ", _ = {
424
+ const hn = Ot.exports, x = "[Builder.io]: ", b = {
425
425
  log: (...e) => console.log(x, ...e),
426
426
  error: (...e) => console.error(x, ...e),
427
427
  warn: (...e) => console.warn(x, ...e),
@@ -442,16 +442,16 @@ const hn = Ot.exports, x = "[Builder.io]: ", _ = {
442
442
  }
443
443
  }
444
444
  }).catch((n) => {
445
- _.error("Could not fetch symbol content: ", n);
445
+ b.error("Could not fetch symbol content: ", n);
446
446
  });
447
- }, Nt = () => Promise.resolve().then(() => Ae).then((e) => e.default).catch((e) => {
447
+ }, Wt = () => Promise.resolve().then(() => Ee).then((e) => e.default).catch((e) => {
448
448
  throw console.error(
449
449
  "Error while attempting to dynamically import component ContentVariants at ../../components/content-variants/content-variants.vue",
450
450
  e
451
451
  ), e;
452
- }), jt = u({
452
+ }), Nt = u({
453
453
  name: "builder-symbol",
454
- components: { "content-variants": Nt },
454
+ components: { "content-variants": Wt },
455
455
  props: [
456
456
  "js",
457
457
  "attributes",
@@ -462,7 +462,7 @@ const hn = Ot.exports, x = "[Builder.io]: ", _ = {
462
462
  ],
463
463
  data() {
464
464
  var e;
465
- return { contentToUse: (e = this.symbol) == null ? void 0 : e.content, filterAttrs: E };
465
+ return { contentToUse: (e = this.symbol) == null ? void 0 : e.content, filterAttrs: P };
466
466
  },
467
467
  mounted() {
468
468
  this.setContent();
@@ -511,7 +511,7 @@ const hn = Ot.exports, x = "[Builder.io]: ", _ = {
511
511
  }
512
512
  }
513
513
  });
514
- var Ut = function() {
514
+ var jt = function() {
515
515
  var o, r, s, i;
516
516
  var t = this, n = t._self._c;
517
517
  return t._self._setupProxy, n("div", t._g(t._b({ class: t._classStringToObject(t.className) }, "div", { ...t.filterAttrs(t.attributes, "v-on:", !1) }, !1), t.filterAttrs(t.attributes, "v-on:", !0)), [n("content-variants", { attrs: { __isNestedRender: !0, apiVersion: t.builderContext.apiVersion, apiKey: t.builderContext.apiKey, context: t.builderContext.context, customComponents: Object.values(t.builderComponents), data: {
@@ -519,29 +519,29 @@ var Ut = function() {
519
519
  ...t.builderContext.localState,
520
520
  ...(s = (r = t.contentToUse) == null ? void 0 : r.data) == null ? void 0 : s.state
521
521
  }, model: (i = t.symbol) == null ? void 0 : i.model, content: t.contentToUse } })], 1);
522
- }, Dt = [], Ft = /* @__PURE__ */ p(
522
+ }, Ut = [], Dt = /* @__PURE__ */ p(
523
+ Nt,
523
524
  jt,
524
525
  Ut,
525
- Dt,
526
526
  !1,
527
527
  null,
528
528
  null,
529
529
  null,
530
530
  null
531
531
  );
532
- const _n = Ft.exports, Lt = u({
532
+ const bn = Dt.exports, Ft = u({
533
533
  name: "builder-text",
534
534
  props: ["text"]
535
535
  });
536
- var Wt = function() {
536
+ var Lt = function() {
537
537
  var o;
538
538
  var t = this, n = t._self._c;
539
539
  return t._self._setupProxy, n("div", { staticClass: "builder-text", style: {
540
540
  outline: "none"
541
541
  }, domProps: { innerHTML: t._s(((o = t.text) == null ? void 0 : o.toString()) || "") } });
542
542
  }, Mt = [], Kt = /* @__PURE__ */ p(
543
+ Ft,
543
544
  Lt,
544
- Wt,
545
545
  Mt,
546
546
  !1,
547
547
  null,
@@ -549,7 +549,7 @@ var Wt = function() {
549
549
  null,
550
550
  null
551
551
  );
552
- const bn = Kt.exports, zt = u({
552
+ const _n = Kt.exports, zt = u({
553
553
  name: "builder-video",
554
554
  props: [
555
555
  "autoPlay",
@@ -654,23 +654,25 @@ const gn = Qt.exports, Jt = Symbol(), Xt = {
654
654
  apiKey: null,
655
655
  apiVersion: void 0,
656
656
  componentInfos: {},
657
- inheritedStyles: {}
657
+ inheritedStyles: {},
658
+ BlocksWrapper: "div",
659
+ BlocksWrapperProps: {}
658
660
  },
659
661
  key: Jt
660
662
  }, Yt = Symbol(), qt = {
661
663
  Components: { registeredComponents: {} },
662
664
  key: Yt
663
- }, Zt = () => import("./block-c6f466c0.js").then((e) => e.default).catch((e) => {
665
+ }, Zt = () => import("./block-f46a2e5f.js").then((e) => e.default).catch((e) => {
664
666
  throw console.error(
665
667
  "Error while attempting to dynamically import component Block at ../block/block.vue",
666
668
  e
667
669
  ), e;
668
- }), te = () => import("./block-styles-37805084.js").then((e) => e.default).catch((e) => {
670
+ }), te = () => import("./block-styles-5d933df0.js").then((e) => e.default).catch((e) => {
669
671
  throw console.error(
670
672
  "Error while attempting to dynamically import component BlockStyles at ../block/components/block-styles.vue",
671
673
  e
672
674
  ), e;
673
- }), ee = () => import("./blocks-wrapper-e329b941.js").then((e) => e.default).catch((e) => {
675
+ }), ee = () => import("./blocks-wrapper-13a20963.js").then((e) => e.default).catch((e) => {
674
676
  throw console.error(
675
677
  "Error while attempting to dynamically import component BlocksWrapper at ./blocks-wrapper.vue",
676
678
  e
@@ -696,11 +698,12 @@ const gn = Qt.exports, Jt = Symbol(), Xt = {
696
698
  }
697
699
  });
698
700
  var oe = function() {
701
+ var o, r;
699
702
  var t = this, n = t._self._c;
700
- return t._self._setupProxy, n("blocks-wrapper", { attrs: { blocks: t.blocks, parent: t.parent, path: t.path, styleProp: t.styleProp } }, [t.blocks ? t._l(t.blocks, function(o, r) {
701
- return n("block", { key: "render-block-" + o.id, attrs: { block: o, context: t.context || t.builderContext, registeredComponents: t.registeredComponents || t.componentsContext.registeredComponents } });
702
- }) : t._e(), t.blocks ? t._l(t.blocks, function(o, r) {
703
- return n("block-styles", { key: "block-style-" + o.id, attrs: { block: o, context: t.context || t.builderContext } });
703
+ return t._self._setupProxy, n("blocks-wrapper", { attrs: { blocks: t.blocks, parent: t.parent, path: t.path, styleProp: t.styleProp, BlocksWrapper: (o = t.context) == null ? void 0 : o.BlocksWrapper, BlocksWrapperProps: (r = t.context) == null ? void 0 : r.BlocksWrapperProps } }, [t.blocks ? t._l(t.blocks, function(s, i) {
704
+ return n("block", { key: "render-block-" + s.id, attrs: { block: s, context: t.context || t.builderContext, registeredComponents: t.registeredComponents || t.componentsContext.registeredComponents } });
705
+ }) : t._e(), t.blocks ? t._l(t.blocks, function(s, i) {
706
+ return n("block-styles", { key: "block-style-" + s.id, attrs: { block: s, context: t.context || t.builderContext } });
704
707
  }) : t._e()], 2);
705
708
  }, re = [], se = /* @__PURE__ */ p(
706
709
  ne,
@@ -732,7 +735,7 @@ const ae = (e) => {
732
735
  try {
733
736
  return t ? (n = document.cookie.split("; ").find((o) => o.startsWith(`${e}=`))) == null ? void 0 : n.split("=")[1] : void 0;
734
737
  } catch (o) {
735
- _.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
738
+ b.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
736
739
  return;
737
740
  }
738
741
  }, G = async (e) => z(e), ce = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(g).join("; "), le = [["secure", ""], ["SameSite", "None"]], de = ({
@@ -758,23 +761,23 @@ const ae = (e) => {
758
761
  });
759
762
  document.cookie = r;
760
763
  } catch (r) {
761
- _.warn("[COOKIE] SET error: ", (r == null ? void 0 : r.message) || r);
764
+ b.warn("[COOKIE] SET error: ", (r == null ? void 0 : r.message) || r);
762
765
  }
763
- }, ue = "builder.tests", V = (e) => `${ue}.${e}`, pe = ({
766
+ }, ue = "builder.tests", A = (e) => `${ue}.${e}`, pe = ({
764
767
  contentId: e
765
768
  }) => G({
766
- name: V(e),
769
+ name: A(e),
767
770
  canTrack: !0
768
771
  }), me = ({
769
772
  contentId: e
770
773
  }) => z({
771
- name: V(e),
774
+ name: A(e),
772
775
  canTrack: !0
773
776
  }), fe = ({
774
777
  contentId: e,
775
778
  value: t
776
779
  }) => H({
777
- name: V(e),
780
+ name: A(e),
778
781
  value: t,
779
782
  canTrack: !0
780
783
  }), Q = (e) => g(e.id) && g(e.variations) && Object.keys(e.variations).length > 0, he = ({
@@ -796,7 +799,7 @@ const ae = (e) => {
796
799
  contentId: e.id,
797
800
  value: t
798
801
  }).catch((n) => {
799
- _.error("could not store A/B test variation: ", n);
802
+ b.error("could not store A/B test variation: ", n);
800
803
  }), t;
801
804
  }, X = ({
802
805
  item: e,
@@ -812,7 +815,7 @@ const ae = (e) => {
812
815
  testVariationId: n.id,
813
816
  testVariationName: n.name || (n.id === e.id ? "Default" : "")
814
817
  };
815
- }, _e = ({
818
+ }, be = ({
816
819
  item: e,
817
820
  canTrack: t
818
821
  }) => {
@@ -835,7 +838,7 @@ const ae = (e) => {
835
838
  ...e,
836
839
  ...o
837
840
  };
838
- }, be = async ({
841
+ }, _e = async ({
839
842
  item: e,
840
843
  canTrack: t
841
844
  }) => {
@@ -962,17 +965,17 @@ const ae = (e) => {
962
965
  variationId: t
963
966
  }) => `window.${q}(
964
967
  "${t}", "${e}", ${Z}
965
- )`, xe = () => import("./content-90700d7e.js").then((e) => e.default).catch((e) => {
968
+ )`, xe = () => import("./content-5ff1bf50.js").then((e) => e.default).catch((e) => {
966
969
  throw console.error(
967
970
  "Error while attempting to dynamically import component ContentComponent at ../content/content.vue",
968
971
  e
969
972
  ), e;
970
- }), we = () => import("./inlined-script-f5a56ea4.js").then((e) => e.default).catch((e) => {
973
+ }), we = () => import("./inlined-script-18dd0beb.js").then((e) => e.default).catch((e) => {
971
974
  throw console.error(
972
975
  "Error while attempting to dynamically import component InlinedScript at ../inlined-script.vue",
973
976
  e
974
977
  ), e;
975
- }), Ie = () => import("./inlined-styles-ea805c3d.js").then((e) => e.default).catch((e) => {
978
+ }), Ie = () => import("./inlined-styles-b687d7f1.js").then((e) => e.default).catch((e) => {
976
979
  throw console.error(
977
980
  "Error while attempting to dynamically import component InlinedStyles at ../inlined-styles.vue",
978
981
  e
@@ -996,7 +999,11 @@ const ae = (e) => {
996
999
  "customComponents",
997
1000
  "locale",
998
1001
  "includeRefs",
999
- "enrich"
1002
+ "enrich",
1003
+ "blocksWrapper",
1004
+ "blocksWrapperProps",
1005
+ "contentWrapper",
1006
+ "contentWrapperProps"
1000
1007
  ],
1001
1008
  data() {
1002
1009
  return {
@@ -1031,7 +1038,7 @@ const ae = (e) => {
1031
1038
  return this.shouldRenderVariants ? {
1032
1039
  ...this.content,
1033
1040
  testVariationId: (e = this.content) == null ? void 0 : e.id
1034
- } : _e({
1041
+ } : be({
1035
1042
  item: this.content,
1036
1043
  canTrack: R(this.canTrack)
1037
1044
  });
@@ -1042,11 +1049,11 @@ var Te = function() {
1042
1049
  var o;
1043
1050
  var t = this, n = t._self._c;
1044
1051
  return t._self._setupProxy, n("div", [!t.__isNestedRender && t.TARGET !== "reactNative" ? [n("inlined-script", { attrs: { scriptStr: t.getScriptString() } })] : t._e(), t.shouldRenderVariants ? [n("inlined-styles", { attrs: { id: `variants-styles-${(o = t.content) == null ? void 0 : o.id}`, styles: t.hideVariantsStyleString } }), n("inlined-script", { attrs: { scriptStr: t.updateCookieAndStylesScriptStr } }), t._l(t.getVariants(t.content), function(r, s) {
1045
- return n("content-component", { key: r.testVariationId, attrs: { content: r, showContent: !1, model: t.model, data: t.data, context: t.context, apiKey: t.apiKey, apiVersion: t.apiVersion, customComponents: t.customComponents, canTrack: t.canTrack, locale: t.locale, includeRefs: t.includeRefs, enrich: t.enrich, isSsrAbTest: t.shouldRenderVariants } });
1046
- })] : t._e(), n("content-component", t._b({ attrs: { content: t.defaultContent, showContent: !0, model: t.model, data: t.data, context: t.context, apiKey: t.apiKey, apiVersion: t.apiVersion, customComponents: t.customComponents, canTrack: t.canTrack, locale: t.locale, includeRefs: t.includeRefs, enrich: t.enrich, isSsrAbTest: t.shouldRenderVariants } }, "content-component", {
1052
+ return n("content-component", { key: r.testVariationId, attrs: { content: r, showContent: !1, model: t.model, data: t.data, context: t.context, apiKey: t.apiKey, apiVersion: t.apiVersion, customComponents: t.customComponents, canTrack: t.canTrack, locale: t.locale, includeRefs: t.includeRefs, enrich: t.enrich, isSsrAbTest: t.shouldRenderVariants, blocksWrapper: t.blocksWrapper, blocksWrapperProps: t.blocksWrapperProps, contentWrapper: t.contentWrapper, contentWrapperProps: t.contentWrapperProps } });
1053
+ })] : t._e(), n("content-component", t._b({ attrs: { content: t.defaultContent, showContent: !0, model: t.model, data: t.data, context: t.context, apiKey: t.apiKey, apiVersion: t.apiVersion, customComponents: t.customComponents, canTrack: t.canTrack, locale: t.locale, includeRefs: t.includeRefs, enrich: t.enrich, isSsrAbTest: t.shouldRenderVariants, blocksWrapper: t.blocksWrapper, blocksWrapperProps: t.blocksWrapperProps, contentWrapper: t.contentWrapper, contentWrapperProps: t.contentWrapperProps } }, "content-component", {
1047
1054
  key: t.shouldRenderVariants.toString()
1048
1055
  }, !1))], 2);
1049
- }, Re = [], Ee = /* @__PURE__ */ p(
1056
+ }, Re = [], Pe = /* @__PURE__ */ p(
1050
1057
  $e,
1051
1058
  Te,
1052
1059
  Re,
@@ -1056,15 +1063,15 @@ var Te = function() {
1056
1063
  null,
1057
1064
  null
1058
1065
  );
1059
- const tt = Ee.exports, Ae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1066
+ const tt = Pe.exports, Ee = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1060
1067
  __proto__: null,
1061
1068
  default: tt
1062
1069
  }, Symbol.toStringTag, { value: "Module" })), vn = K, Sn = tt;
1063
- function Ve() {
1070
+ function Ae() {
1064
1071
  return m() && window.self !== window.top;
1065
1072
  }
1066
1073
  function et() {
1067
- return Ve() && window.location.search.indexOf("builder.frameEditing=") !== -1;
1074
+ return Ae() && window.location.search.indexOf("builder.frameEditing=") !== -1;
1068
1075
  }
1069
1076
  function kn() {
1070
1077
  return !m() || et() ? !1 : location.search.indexOf("builder.preview=") !== -1;
@@ -1072,22 +1079,22 @@ function kn() {
1072
1079
  const Cn = [], xn = (e) => ({
1073
1080
  type: "builder.registerComponent",
1074
1081
  data: Be(e)
1075
- }), Pe = (e) => {
1082
+ }), Ve = (e) => {
1076
1083
  const t = e.toString().trim();
1077
1084
  return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
1078
- }, Oe = (e) => typeof e == "function" ? Pe(e) : A(e), Be = ({
1085
+ }, Oe = (e) => typeof e == "function" ? Ve(e) : E(e), Be = ({
1079
1086
  inputs: e,
1080
1087
  ...t
1081
1088
  }) => ({
1082
- ...A(t),
1089
+ ...E(t),
1083
1090
  inputs: e == null ? void 0 : e.map((n) => Object.entries(n).reduce((o, [r, s]) => ({
1084
1091
  ...o,
1085
1092
  [r]: Oe(s)
1086
1093
  }), {}))
1087
- }), D = {};
1094
+ }), U = {};
1088
1095
  function wn(e, t) {
1089
- let n = D[e];
1090
- if (n || (n = D[e] = []), n.push(t), m()) {
1096
+ let n = U[e];
1097
+ if (n || (n = U[e] = []), n.push(t), m()) {
1091
1098
  const o = {
1092
1099
  type: "builder.register",
1093
1100
  data: {
@@ -1102,28 +1109,28 @@ function wn(e, t) {
1102
1109
  }
1103
1110
  }
1104
1111
  }
1105
- const F = {};
1112
+ const D = {};
1106
1113
  function In(e) {
1107
1114
  if (m()) {
1108
- Object.assign(F, e);
1115
+ Object.assign(D, e);
1109
1116
  const t = {
1110
1117
  type: "builder.settingsChange",
1111
- data: F
1118
+ data: D
1112
1119
  };
1113
1120
  parent.postMessage(t, "*");
1114
1121
  }
1115
1122
  }
1116
- function Ne() {
1123
+ function We() {
1117
1124
  return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
1118
1125
  }
1119
- function je() {
1120
- const e = Ne().fetch;
1126
+ function Ne() {
1127
+ const e = We().fetch;
1121
1128
  if (typeof e > "u")
1122
1129
  throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
1123
1130
  For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
1124
1131
  return e;
1125
1132
  }
1126
- const Ue = je();
1133
+ const je = Ne();
1127
1134
  function I(e, t = null, n = ".") {
1128
1135
  return Object.keys(e).reduce((o, r) => {
1129
1136
  const s = e[r], i = [t, r].filter(Boolean).join(n);
@@ -1136,7 +1143,7 @@ function I(e, t = null, n = ".") {
1136
1143
  };
1137
1144
  }, {});
1138
1145
  }
1139
- const De = "v3", L = "builder.", Fe = "options.", Le = (e) => {
1146
+ const Ue = "v3", F = "builder.", De = "options.", Fe = (e) => {
1140
1147
  const t = {};
1141
1148
  return e.forEach((n, o) => {
1142
1149
  t[o] = n;
@@ -1146,17 +1153,17 @@ const De = "v3", L = "builder.", Fe = "options.", Le = (e) => {
1146
1153
  return {};
1147
1154
  const t = ot(e), n = {};
1148
1155
  return Object.keys(t).forEach((o) => {
1149
- if (o.startsWith(L)) {
1150
- const r = o.replace(L, "").replace(Fe, "");
1156
+ if (o.startsWith(F)) {
1157
+ const r = o.replace(F, "").replace(De, "");
1151
1158
  n[r] = t[o];
1152
1159
  }
1153
1160
  }), n;
1154
- }, We = () => {
1161
+ }, Le = () => {
1155
1162
  if (!m())
1156
1163
  return {};
1157
1164
  const e = new URLSearchParams(window.location.search);
1158
1165
  return nt(e);
1159
- }, ot = (e) => e instanceof URLSearchParams ? Le(e) : e, W = (e) => typeof e == "number" && !isNaN(e) && e >= 0, P = (e) => {
1166
+ }, ot = (e) => e instanceof URLSearchParams ? Fe(e) : e, L = (e) => typeof e == "number" && !isNaN(e) && e >= 0, V = (e) => {
1160
1167
  let {
1161
1168
  noTraverse: t = !1
1162
1169
  } = e;
@@ -1169,14 +1176,14 @@ const De = "v3", L = "builder.", Fe = "options.", Le = (e) => {
1169
1176
  includeRefs: f = !0,
1170
1177
  enrich: a,
1171
1178
  locale: c,
1172
- apiVersion: v = De,
1179
+ apiVersion: v = Ue,
1173
1180
  fields: S,
1174
1181
  omit: l,
1175
1182
  offset: k,
1176
- cacheSeconds: b,
1183
+ cacheSeconds: _,
1177
1184
  staleCacheSeconds: $,
1178
1185
  sort: B,
1179
- includeUnpublished: N
1186
+ includeUnpublished: W
1180
1187
  } = e;
1181
1188
  if (!i)
1182
1189
  throw new Error("Missing API key");
@@ -1184,7 +1191,7 @@ const De = "v3", L = "builder.", Fe = "options.", Le = (e) => {
1184
1191
  throw new Error(`Invalid apiVersion: expected 'v2' or 'v3', received '${v}'`);
1185
1192
  (e.limit === void 0 || e.limit > 1) && !("noTraverse" in e) && (t = !0);
1186
1193
  const d = new URL(`https://cdn.builder.io/api/${v}/content/${s}?apiKey=${i}&limit=${n}&noTraverse=${t}&includeRefs=${f}${c ? `&locale=${c}` : ""}${a ? `&enrich=${a}` : ""}`);
1187
- if (d.searchParams.set("omit", l || "meta.componentsUsed"), S && d.searchParams.set("fields", S), Number.isFinite(k) && k > -1 && d.searchParams.set("offset", String(Math.floor(k))), typeof N == "boolean" && d.searchParams.set("includeUnpublished", String(N)), b && W(b) && d.searchParams.set("cacheSeconds", String(b)), $ && W($) && d.searchParams.set("staleCacheSeconds", String($)), B) {
1194
+ if (d.searchParams.set("omit", l || "meta.componentsUsed"), S && d.searchParams.set("fields", S), Number.isFinite(k) && k > -1 && d.searchParams.set("offset", String(Math.floor(k))), typeof W == "boolean" && d.searchParams.set("includeUnpublished", String(W)), _ && L(_) && d.searchParams.set("cacheSeconds", String(_)), $ && L($) && d.searchParams.set("staleCacheSeconds", String($)), B) {
1188
1195
  const h = I({
1189
1196
  sort: B
1190
1197
  });
@@ -1192,11 +1199,11 @@ const De = "v3", L = "builder.", Fe = "options.", Le = (e) => {
1192
1199
  d.searchParams.set(C, JSON.stringify(h[C]));
1193
1200
  }
1194
1201
  const lt = {
1195
- ...We(),
1202
+ ...Le(),
1196
1203
  ...ot(e.options || {})
1197
- }, j = I(lt);
1198
- for (const h in j)
1199
- d.searchParams.set(h, String(j[h]));
1204
+ }, N = I(lt);
1205
+ for (const h in N)
1206
+ d.searchParams.set(h, String(N[h]));
1200
1207
  if (o && d.searchParams.set("userAttributes", JSON.stringify(o)), r) {
1201
1208
  const h = I({
1202
1209
  query: r
@@ -1214,35 +1221,35 @@ async function O(e) {
1214
1221
  return t && t.results[0] || null;
1215
1222
  }
1216
1223
  const $n = O, Ke = async (e) => {
1217
- const t = P(e);
1218
- return await (await Ue(t.href)).json();
1219
- }, ze = async (e, t, n = P(e)) => {
1224
+ const t = V(e);
1225
+ return await (await je(t.href)).json();
1226
+ }, ze = async (e, t, n = V(e)) => {
1220
1227
  const o = R(e.canTrack);
1221
1228
  if (n.search.includes("preview="), !o || !(m() || y === "reactNative"))
1222
1229
  return t;
1223
1230
  try {
1224
1231
  const r = [];
1225
1232
  for (const s of t.results)
1226
- r.push(await be({
1233
+ r.push(await _e({
1227
1234
  item: s,
1228
1235
  canTrack: o
1229
1236
  }));
1230
1237
  t.results = r;
1231
1238
  } catch (r) {
1232
- _.error("Could not process A/B tests. ", r);
1239
+ b.error("Could not process A/B tests. ", r);
1233
1240
  }
1234
1241
  return t;
1235
1242
  };
1236
1243
  async function rt(e) {
1237
1244
  try {
1238
- const t = P(e), n = await Ke(e);
1239
- return Me(n) ? ze(e, n) : (_.error("Error fetching data. ", {
1245
+ const t = V(e), n = await Ke(e);
1246
+ return Me(n) ? ze(e, n) : (b.error("Error fetching data. ", {
1240
1247
  url: t,
1241
1248
  content: n,
1242
1249
  options: e
1243
1250
  }), null);
1244
1251
  } catch (t) {
1245
- return _.error("Error fetching data. ", t), null;
1252
+ return b.error("Error fetching data. ", t), null;
1246
1253
  }
1247
1254
  }
1248
1255
  const Tn = rt;
@@ -1399,7 +1406,7 @@ const it = "builderSessionId", He = async ({
1399
1406
  });
1400
1407
  async function an(e) {
1401
1408
  if (!e.apiKey) {
1402
- _.error("Missing API key for track call. Please provide your API key.");
1409
+ b.error("Missing API key for track call. Please provide your API key.");
1403
1410
  return;
1404
1411
  }
1405
1412
  if (e.canTrack && !et() && (m() || y === "reactNative"))
@@ -1419,7 +1426,7 @@ async function an(e) {
1419
1426
  const Rn = (e) => an({
1420
1427
  ...e,
1421
1428
  canTrack: !0
1422
- }), En = async (e) => {
1429
+ }), Pn = async (e) => {
1423
1430
  var o, r, s;
1424
1431
  const t = e.path || ((o = e.url) == null ? void 0 : o.pathname) || ((r = e.userAttributes) == null ? void 0 : r.urlPath), n = {
1425
1432
  ...e,
@@ -1451,7 +1458,7 @@ export {
1451
1458
  fn as I,
1452
1459
  nt as J,
1453
1460
  Rn as K,
1454
- En as L,
1461
+ Pn as L,
1455
1462
  ie as M,
1456
1463
  vn as R,
1457
1464
  hn as S,
@@ -1459,11 +1466,11 @@ export {
1459
1466
  gn as V,
1460
1467
  an as _,
1461
1468
  un as a,
1462
- E as b,
1469
+ P as b,
1463
1470
  g as c,
1464
- _n as d,
1465
- bn as e,
1466
- A as f,
1471
+ bn as d,
1472
+ _n as e,
1473
+ E as f,
1467
1474
  ft as g,
1468
1475
  yn as h,
1469
1476
  et as i,
@@ -1473,13 +1480,13 @@ export {
1473
1480
  m,
1474
1481
  p as n,
1475
1482
  R as o,
1476
- Ue as p,
1483
+ je as p,
1477
1484
  xn as q,
1478
1485
  wn as r,
1479
1486
  Be as s,
1480
1487
  O as t,
1481
1488
  kn as u,
1482
- _ as v,
1489
+ b as v,
1483
1490
  on as w,
1484
1491
  K as x,
1485
1492
  tt as y,