@builder.io/sdk-vue 0.6.1-1 → 0.6.1

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 (1784) hide show
  1. package/package.json +7 -3
  2. package/vue2/lib/browser/block-7572b272.cjs +3 -0
  3. package/vue2/lib/browser/block-c120af6b.js +181 -0
  4. package/vue2/lib/browser/block-styles-7b6133cb.js +77 -0
  5. package/vue2/lib/browser/block-styles-d210742a.cjs +1 -0
  6. package/vue2/lib/browser/block-wrapper-7137e4eb.js +66 -0
  7. package/vue2/lib/browser/block-wrapper-73003591.cjs +1 -0
  8. package/vue2/lib/browser/blocks/button/button.vue.d.ts +17 -0
  9. package/vue2/lib/browser/blocks/button/component-info.d.ts +2 -0
  10. package/vue2/lib/browser/blocks/columns/columns.vue.d.ts +44 -0
  11. package/vue2/lib/browser/blocks/columns/component-info.d.ts +2 -0
  12. package/vue2/lib/browser/blocks/custom-code/component-info.d.ts +2 -0
  13. package/vue2/lib/browser/blocks/custom-code/custom-code.vue.d.ts +14 -0
  14. package/vue2/lib/browser/blocks/embed/component-info.d.ts +2 -0
  15. package/vue2/lib/browser/blocks/embed/embed.vue.d.ts +18 -0
  16. package/vue2/lib/browser/blocks/embed/helpers.d.ts +1 -0
  17. package/vue2/lib/browser/blocks/form/component-info.d.ts +2 -0
  18. package/vue2/lib/browser/blocks/fragment/component-info.d.ts +2 -0
  19. package/vue2/lib/browser/blocks/fragment/fragment.vue.d.ts +7 -0
  20. package/vue2/lib/browser/blocks/helpers.d.ts +13 -0
  21. package/vue2/lib/browser/blocks/image/component-info.d.ts +2 -0
  22. package/vue2/lib/browser/blocks/image/image.helpers.d.ts +1 -0
  23. package/vue2/lib/browser/blocks/image/image.vue.d.ts +72 -0
  24. package/vue2/lib/browser/blocks/img/component-info.d.ts +2 -0
  25. package/vue2/lib/browser/blocks/img/img.vue.d.ts +38 -0
  26. package/vue2/lib/browser/blocks/input/component-info.d.ts +2 -0
  27. package/vue2/lib/browser/blocks/raw-text/component-info.d.ts +2 -0
  28. package/vue2/lib/browser/blocks/section/component-info.d.ts +2 -0
  29. package/vue2/lib/browser/blocks/section/section.vue.d.ts +22 -0
  30. package/vue2/lib/browser/blocks/select/component-info.d.ts +2 -0
  31. package/vue2/lib/browser/blocks/submit-button/component-info.d.ts +2 -0
  32. package/vue2/lib/browser/blocks/symbol/component-info.d.ts +2 -0
  33. package/vue2/lib/browser/blocks/symbol/symbol.helpers.d.ts +14 -0
  34. package/vue2/lib/browser/blocks/symbol/symbol.vue.d.ts +37 -0
  35. package/vue2/lib/browser/blocks/text/component-info.d.ts +2 -0
  36. package/vue2/lib/browser/blocks/text/text.vue.d.ts +11 -0
  37. package/vue2/lib/browser/blocks/textarea/component-info.d.ts +2 -0
  38. package/vue2/lib/browser/blocks/video/component-info.d.ts +2 -0
  39. package/vue2/lib/browser/blocks/video/video.vue.d.ts +64 -0
  40. package/vue2/lib/browser/blocks-wrapper-9f1e75a3.js +72 -0
  41. package/vue2/lib/browser/blocks-wrapper-b4d967ac.cjs +1 -0
  42. package/vue2/lib/browser/component-ref-b509786c.js +102 -0
  43. package/vue2/lib/browser/component-ref-da79bed8.cjs +1 -0
  44. package/vue2/lib/browser/components/block/block.helpers.d.ts +13 -0
  45. package/vue2/lib/browser/components/block/block.vue.d.ts +41 -0
  46. package/vue2/lib/browser/components/block/components/block-styles.vue.d.ts +23 -0
  47. package/vue2/lib/browser/components/block/components/block-wrapper.vue.d.ts +29 -0
  48. package/vue2/lib/browser/components/block/components/component-ref/component-ref.helpers.d.ts +30 -0
  49. package/vue2/lib/browser/components/block/components/component-ref/component-ref.vue.d.ts +41 -0
  50. package/vue2/lib/browser/components/block/components/interactive-element.vue.d.ts +30 -0
  51. package/vue2/lib/browser/components/block/components/repeated-block.vue.d.ts +16 -0
  52. package/vue2/lib/browser/components/block/types.d.ts +6 -0
  53. package/vue2/lib/browser/components/blocks/blocks-wrapper.vue.d.ts +30 -0
  54. package/vue2/lib/browser/components/blocks/blocks.vue.d.ts +29 -0
  55. package/vue2/lib/browser/components/content/components/enable-editor.vue.d.ts +56 -0
  56. package/vue2/lib/browser/components/content/components/styles.helpers.d.ts +15 -0
  57. package/vue2/lib/browser/components/content/components/styles.vue.d.ts +16 -0
  58. package/vue2/lib/browser/components/content/content.helpers.d.ts +7 -0
  59. package/vue2/lib/browser/components/content/content.types.d.ts +24 -0
  60. package/vue2/lib/browser/components/content/content.vue.d.ts +26 -0
  61. package/vue2/lib/browser/components/content/index.d.ts +1 -0
  62. package/vue2/lib/browser/components/content/wrap-component-ref.d.ts +6 -0
  63. package/vue2/lib/browser/components/content-variants/content-variants.types.d.ts +20 -0
  64. package/vue2/lib/browser/components/content-variants/content-variants.vue.d.ts +50 -0
  65. package/vue2/lib/browser/components/content-variants/helpers.d.ts +18 -0
  66. package/vue2/lib/browser/components/inlined-script.vue.d.ts +11 -0
  67. package/vue2/lib/browser/components/inlined-styles.vue.d.ts +11 -0
  68. package/vue2/lib/browser/constants/builder-registered-components.d.ts +6 -0
  69. package/vue2/lib/browser/constants/device-sizes.d.ts +13 -0
  70. package/vue2/lib/browser/constants/sdk-version.d.ts +1 -0
  71. package/vue2/lib/browser/constants/target.d.ts +2 -0
  72. package/vue2/lib/browser/content-284be2c3.cjs +1 -0
  73. package/vue2/lib/browser/content-adf884f8.js +928 -0
  74. package/vue2/lib/browser/context/builder.context.d.ts +15 -0
  75. package/vue2/lib/browser/context/components.context.d.ts +7 -0
  76. package/vue2/lib/browser/context/types.d.ts +35 -0
  77. package/vue2/lib/browser/css-01587ac9.js +21 -0
  78. package/vue2/lib/browser/css-924d8859.cjs +6 -0
  79. package/vue2/lib/browser/enable-editor-4c0af531.cjs +1 -0
  80. package/vue2/lib/browser/enable-editor-872f651f.js +429 -0
  81. package/vue2/lib/browser/evaluate-34eb09eb.js +81 -0
  82. package/vue2/lib/browser/evaluate-3b22ca76.cjs +1 -0
  83. package/vue2/lib/browser/functions/apply-patch-with-mutation.d.ts +10 -0
  84. package/vue2/lib/browser/functions/camel-to-kebab-case.d.ts +1 -0
  85. package/vue2/lib/browser/functions/deopt.d.ts +4 -0
  86. package/vue2/lib/browser/functions/evaluate/browser-runtime/browser.d.ts +4 -0
  87. package/vue2/lib/browser/functions/evaluate/browser-runtime/index.d.ts +1 -0
  88. package/vue2/lib/browser/functions/evaluate/edge-runtime/acorn-interpreter.d.ts +2 -0
  89. package/vue2/lib/browser/functions/evaluate/edge-runtime/edge-runtime.d.ts +2 -0
  90. package/vue2/lib/browser/functions/evaluate/edge-runtime/index.d.ts +1 -0
  91. package/vue2/lib/browser/functions/evaluate/evaluate.d.ts +6 -0
  92. package/vue2/lib/browser/functions/evaluate/helpers.d.ts +18 -0
  93. package/vue2/lib/browser/functions/evaluate/index.d.ts +1 -0
  94. package/vue2/lib/browser/functions/evaluate/node-runtime/index.d.ts +1 -0
  95. package/vue2/lib/browser/functions/evaluate/placeholder-runtime.d.ts +2 -0
  96. package/vue2/lib/browser/functions/event-handler-name.d.ts +1 -0
  97. package/vue2/lib/browser/functions/extract-text-styles.d.ts +4 -0
  98. package/vue2/lib/browser/functions/fast-clone.d.ts +4 -0
  99. package/vue2/lib/browser/functions/fetch-builder-props.d.ts +40 -0
  100. package/vue2/lib/browser/functions/get-block-actions-handler.d.ts +8 -0
  101. package/vue2/lib/browser/functions/get-block-actions.d.ts +10 -0
  102. package/vue2/lib/browser/functions/get-block-component-options.d.ts +2 -0
  103. package/vue2/lib/browser/functions/get-block-properties.d.ts +6 -0
  104. package/vue2/lib/browser/functions/get-builder-search-params/index.d.ts +12 -0
  105. package/vue2/lib/browser/functions/get-content/generate-content-url.d.ts +2 -0
  106. package/vue2/lib/browser/functions/get-content/index.d.ts +28 -0
  107. package/vue2/lib/browser/functions/get-content/types.d.ts +51 -0
  108. package/vue2/lib/browser/functions/get-fetch.d.ts +1 -0
  109. package/vue2/lib/browser/functions/get-processed-block.d.ts +10 -0
  110. package/vue2/lib/browser/functions/get-react-native-block-styles.d.ts +7 -0
  111. package/vue2/lib/browser/functions/is-browser.d.ts +1 -0
  112. package/vue2/lib/browser/functions/is-edge-runtime.d.ts +4 -0
  113. package/vue2/lib/browser/functions/is-editing.d.ts +1 -0
  114. package/vue2/lib/browser/functions/is-iframe.d.ts +1 -0
  115. package/vue2/lib/browser/functions/is-previewing.d.ts +1 -0
  116. package/vue2/lib/browser/functions/on-change.d.ts +7 -0
  117. package/vue2/lib/browser/functions/register-component.d.ts +15 -0
  118. package/vue2/lib/browser/functions/register.d.ts +16 -0
  119. package/vue2/lib/browser/functions/sanitize-react-native-block-styles.d.ts +3 -0
  120. package/vue2/lib/browser/functions/set-editor-settings.d.ts +4 -0
  121. package/vue2/lib/browser/functions/set.d.ts +7 -0
  122. package/vue2/lib/browser/functions/track/helpers.d.ts +5 -0
  123. package/vue2/lib/browser/functions/track/index.d.ts +51 -0
  124. package/vue2/lib/browser/functions/track/interaction.d.ts +13 -0
  125. package/vue2/lib/browser/functions/transform-block-properties.d.ts +2 -0
  126. package/vue2/lib/browser/functions/transform-block.d.ts +2 -0
  127. package/vue2/lib/browser/get-block-actions-2147e6cd.js +35 -0
  128. package/vue2/lib/browser/get-block-actions-55e90df6.cjs +1 -0
  129. package/vue2/lib/browser/get-block-properties-2f43ed48.cjs +1 -0
  130. package/vue2/lib/browser/get-block-properties-58c54a69.js +48 -0
  131. package/vue2/lib/browser/get-processed-block-15b0d499.cjs +1 -0
  132. package/vue2/lib/browser/get-processed-block-a2ff4c51.js +58 -0
  133. package/vue2/lib/browser/helpers/ab-tests.d.ts +9 -0
  134. package/vue2/lib/browser/helpers/canTrack.d.ts +1 -0
  135. package/vue2/lib/browser/helpers/cookie.d.ts +19 -0
  136. package/vue2/lib/browser/helpers/css.d.ts +7 -0
  137. package/vue2/lib/browser/helpers/flatten.d.ts +6 -0
  138. package/vue2/lib/browser/helpers/localStorage.d.ts +9 -0
  139. package/vue2/lib/browser/helpers/logger.d.ts +6 -0
  140. package/vue2/lib/browser/helpers/nullable.d.ts +2 -0
  141. package/vue2/lib/browser/helpers/preview-lru-cache/get.d.ts +2 -0
  142. package/vue2/lib/browser/helpers/preview-lru-cache/init.d.ts +6 -0
  143. package/vue2/lib/browser/helpers/preview-lru-cache/set.d.ts +7 -0
  144. package/vue2/lib/browser/helpers/sessionId.d.ts +6 -0
  145. package/vue2/lib/browser/helpers/time.d.ts +1 -0
  146. package/vue2/lib/browser/helpers/url.d.ts +6 -0
  147. package/vue2/lib/browser/helpers/uuid.d.ts +8 -0
  148. package/vue2/lib/browser/helpers/visitorId.d.ts +6 -0
  149. package/vue2/lib/browser/index-20a64e56.js +1422 -0
  150. package/vue2/lib/browser/index-31b135ac.cjs +32 -0
  151. package/vue2/lib/browser/index-helpers/blocks-exports.d.ts +88 -0
  152. package/vue2/lib/browser/index-helpers/top-of-file.d.ts +1 -0
  153. package/vue2/lib/browser/index.cjs +1 -0
  154. package/vue2/lib/browser/index.d.ts +7 -0
  155. package/vue2/lib/browser/index.js +29 -0
  156. package/vue2/lib/browser/inlined-script-395a54bf.cjs +1 -0
  157. package/vue2/lib/browser/inlined-script-dd1c2277.js +23 -0
  158. package/vue2/lib/browser/inlined-styles-5f724636.js +23 -0
  159. package/vue2/lib/browser/inlined-styles-6ad3b97d.cjs +1 -0
  160. package/vue2/lib/browser/interactive-element-91844a73.cjs +1 -0
  161. package/vue2/lib/browser/interactive-element-9a3140c7.js +42 -0
  162. package/vue2/lib/browser/repeated-block-2801e2ad.cjs +1 -0
  163. package/vue2/lib/browser/repeated-block-db085f7a.js +38 -0
  164. package/vue2/lib/browser/scripts/init-editing.d.ts +6 -0
  165. package/vue2/lib/browser/server-index.d.ts +15 -0
  166. package/vue2/lib/browser/style.css +1 -0
  167. package/vue2/lib/browser/styles-1aad0890.cjs +31 -0
  168. package/vue2/lib/browser/styles-c675d986.js +89 -0
  169. package/vue2/lib/browser/types/api-version.d.ts +2 -0
  170. package/vue2/lib/browser/types/builder-block.d.ts +66 -0
  171. package/vue2/lib/browser/types/builder-content.d.ts +44 -0
  172. package/vue2/lib/browser/types/builder-props.d.ts +9 -0
  173. package/vue2/lib/browser/types/can-track.d.ts +3 -0
  174. package/vue2/lib/browser/types/components.d.ts +111 -0
  175. package/vue2/lib/browser/types/deep-partial.d.ts +3 -0
  176. package/vue2/lib/browser/types/element.d.ts +59 -0
  177. package/vue2/lib/browser/types/enforced-partials.d.ts +21 -0
  178. package/vue2/lib/browser/types/input.d.ts +121 -0
  179. package/vue2/lib/browser/types/targets.d.ts +1 -0
  180. package/vue2/lib/browser/types/typescript.d.ts +11 -0
  181. package/vue2/lib/edge/block-89ebff36.cjs +3 -0
  182. package/vue2/lib/edge/block-a17dd5f3.js +181 -0
  183. package/vue2/lib/edge/block-styles-68308a10.js +77 -0
  184. package/vue2/lib/edge/block-styles-c081fccd.cjs +1 -0
  185. package/vue2/lib/edge/block-wrapper-1d8816f6.js +66 -0
  186. package/vue2/lib/edge/block-wrapper-224770b5.cjs +1 -0
  187. package/vue2/lib/edge/blocks/button/button.vue.d.ts +17 -0
  188. package/vue2/lib/edge/blocks/button/component-info.d.ts +2 -0
  189. package/vue2/lib/edge/blocks/columns/columns.vue.d.ts +44 -0
  190. package/vue2/lib/edge/blocks/columns/component-info.d.ts +2 -0
  191. package/vue2/lib/edge/blocks/custom-code/component-info.d.ts +2 -0
  192. package/vue2/lib/edge/blocks/custom-code/custom-code.vue.d.ts +14 -0
  193. package/vue2/lib/edge/blocks/embed/component-info.d.ts +2 -0
  194. package/vue2/lib/edge/blocks/embed/embed.vue.d.ts +18 -0
  195. package/vue2/lib/edge/blocks/embed/helpers.d.ts +1 -0
  196. package/vue2/lib/edge/blocks/form/component-info.d.ts +2 -0
  197. package/vue2/lib/edge/blocks/fragment/component-info.d.ts +2 -0
  198. package/vue2/lib/edge/blocks/fragment/fragment.vue.d.ts +7 -0
  199. package/vue2/lib/edge/blocks/helpers.d.ts +13 -0
  200. package/vue2/lib/edge/blocks/image/component-info.d.ts +2 -0
  201. package/vue2/lib/edge/blocks/image/image.helpers.d.ts +1 -0
  202. package/vue2/lib/edge/blocks/image/image.vue.d.ts +72 -0
  203. package/vue2/lib/edge/blocks/img/component-info.d.ts +2 -0
  204. package/vue2/lib/edge/blocks/img/img.vue.d.ts +38 -0
  205. package/vue2/lib/edge/blocks/input/component-info.d.ts +2 -0
  206. package/vue2/lib/edge/blocks/raw-text/component-info.d.ts +2 -0
  207. package/vue2/lib/edge/blocks/section/component-info.d.ts +2 -0
  208. package/vue2/lib/edge/blocks/section/section.vue.d.ts +22 -0
  209. package/vue2/lib/edge/blocks/select/component-info.d.ts +2 -0
  210. package/vue2/lib/edge/blocks/submit-button/component-info.d.ts +2 -0
  211. package/vue2/lib/edge/blocks/symbol/component-info.d.ts +2 -0
  212. package/vue2/lib/edge/blocks/symbol/symbol.helpers.d.ts +14 -0
  213. package/vue2/lib/edge/blocks/symbol/symbol.vue.d.ts +37 -0
  214. package/vue2/lib/edge/blocks/text/component-info.d.ts +2 -0
  215. package/vue2/lib/edge/blocks/text/text.vue.d.ts +11 -0
  216. package/vue2/lib/edge/blocks/textarea/component-info.d.ts +2 -0
  217. package/vue2/lib/edge/blocks/video/component-info.d.ts +2 -0
  218. package/vue2/lib/edge/blocks/video/video.vue.d.ts +64 -0
  219. package/vue2/lib/edge/blocks-wrapper-4e301a45.cjs +1 -0
  220. package/vue2/lib/edge/blocks-wrapper-e865d99a.js +72 -0
  221. package/vue2/lib/edge/component-ref-46ff36c7.cjs +1 -0
  222. package/vue2/lib/edge/component-ref-47c7b4b9.js +102 -0
  223. package/vue2/lib/edge/components/block/block.helpers.d.ts +13 -0
  224. package/vue2/lib/edge/components/block/block.vue.d.ts +41 -0
  225. package/vue2/lib/edge/components/block/components/block-styles.vue.d.ts +23 -0
  226. package/vue2/lib/edge/components/block/components/block-wrapper.vue.d.ts +29 -0
  227. package/vue2/lib/edge/components/block/components/component-ref/component-ref.helpers.d.ts +30 -0
  228. package/vue2/lib/edge/components/block/components/component-ref/component-ref.vue.d.ts +41 -0
  229. package/vue2/lib/edge/components/block/components/interactive-element.vue.d.ts +30 -0
  230. package/vue2/lib/edge/components/block/components/repeated-block.vue.d.ts +16 -0
  231. package/vue2/lib/edge/components/block/types.d.ts +6 -0
  232. package/vue2/lib/edge/components/blocks/blocks-wrapper.vue.d.ts +30 -0
  233. package/vue2/lib/edge/components/blocks/blocks.vue.d.ts +29 -0
  234. package/vue2/lib/edge/components/content/components/enable-editor.vue.d.ts +56 -0
  235. package/vue2/lib/edge/components/content/components/styles.helpers.d.ts +15 -0
  236. package/vue2/lib/edge/components/content/components/styles.vue.d.ts +16 -0
  237. package/vue2/lib/edge/components/content/content.helpers.d.ts +7 -0
  238. package/vue2/lib/edge/components/content/content.types.d.ts +24 -0
  239. package/vue2/lib/edge/components/content/content.vue.d.ts +26 -0
  240. package/vue2/lib/edge/components/content/index.d.ts +1 -0
  241. package/vue2/lib/edge/components/content/wrap-component-ref.d.ts +6 -0
  242. package/vue2/lib/edge/components/content-variants/content-variants.types.d.ts +20 -0
  243. package/vue2/lib/edge/components/content-variants/content-variants.vue.d.ts +50 -0
  244. package/vue2/lib/edge/components/content-variants/helpers.d.ts +18 -0
  245. package/vue2/lib/edge/components/inlined-script.vue.d.ts +11 -0
  246. package/vue2/lib/edge/components/inlined-styles.vue.d.ts +11 -0
  247. package/vue2/lib/edge/constants/builder-registered-components.d.ts +6 -0
  248. package/vue2/lib/edge/constants/device-sizes.d.ts +13 -0
  249. package/vue2/lib/edge/constants/sdk-version.d.ts +1 -0
  250. package/vue2/lib/edge/constants/target.d.ts +2 -0
  251. package/vue2/lib/edge/content-c1d216c0.cjs +1 -0
  252. package/vue2/lib/edge/content-dba5c9d2.js +928 -0
  253. package/vue2/lib/edge/context/builder.context.d.ts +15 -0
  254. package/vue2/lib/edge/context/components.context.d.ts +7 -0
  255. package/vue2/lib/edge/context/types.d.ts +35 -0
  256. package/vue2/lib/edge/css-384211ae.js +21 -0
  257. package/vue2/lib/edge/css-f5a4c224.cjs +6 -0
  258. package/vue2/lib/edge/enable-editor-8c6fd5f2.cjs +1 -0
  259. package/vue2/lib/edge/enable-editor-985c44d4.js +429 -0
  260. package/vue2/lib/edge/evaluate-60a4358c.js +2532 -0
  261. package/vue2/lib/edge/evaluate-d1682114.cjs +21 -0
  262. package/vue2/lib/edge/functions/apply-patch-with-mutation.d.ts +10 -0
  263. package/vue2/lib/edge/functions/camel-to-kebab-case.d.ts +1 -0
  264. package/vue2/lib/edge/functions/deopt.d.ts +4 -0
  265. package/vue2/lib/edge/functions/evaluate/browser-runtime/browser.d.ts +4 -0
  266. package/vue2/lib/edge/functions/evaluate/browser-runtime/index.d.ts +1 -0
  267. package/vue2/lib/edge/functions/evaluate/edge-runtime/acorn-interpreter.d.ts +2 -0
  268. package/vue2/lib/edge/functions/evaluate/edge-runtime/edge-runtime.d.ts +2 -0
  269. package/vue2/lib/edge/functions/evaluate/edge-runtime/index.d.ts +1 -0
  270. package/vue2/lib/edge/functions/evaluate/evaluate.d.ts +6 -0
  271. package/vue2/lib/edge/functions/evaluate/helpers.d.ts +18 -0
  272. package/vue2/lib/edge/functions/evaluate/index.d.ts +1 -0
  273. package/vue2/lib/edge/functions/evaluate/node-runtime/index.d.ts +1 -0
  274. package/vue2/lib/edge/functions/evaluate/placeholder-runtime.d.ts +2 -0
  275. package/vue2/lib/edge/functions/event-handler-name.d.ts +1 -0
  276. package/vue2/lib/edge/functions/extract-text-styles.d.ts +4 -0
  277. package/vue2/lib/edge/functions/fast-clone.d.ts +4 -0
  278. package/vue2/lib/edge/functions/fetch-builder-props.d.ts +40 -0
  279. package/vue2/lib/edge/functions/get-block-actions-handler.d.ts +8 -0
  280. package/vue2/lib/edge/functions/get-block-actions.d.ts +10 -0
  281. package/vue2/lib/edge/functions/get-block-component-options.d.ts +2 -0
  282. package/vue2/lib/edge/functions/get-block-properties.d.ts +6 -0
  283. package/vue2/lib/edge/functions/get-builder-search-params/index.d.ts +12 -0
  284. package/vue2/lib/edge/functions/get-content/generate-content-url.d.ts +2 -0
  285. package/vue2/lib/edge/functions/get-content/index.d.ts +28 -0
  286. package/vue2/lib/edge/functions/get-content/types.d.ts +51 -0
  287. package/vue2/lib/edge/functions/get-fetch.d.ts +1 -0
  288. package/vue2/lib/edge/functions/get-processed-block.d.ts +10 -0
  289. package/vue2/lib/edge/functions/get-react-native-block-styles.d.ts +7 -0
  290. package/vue2/lib/edge/functions/is-browser.d.ts +1 -0
  291. package/vue2/lib/edge/functions/is-edge-runtime.d.ts +4 -0
  292. package/vue2/lib/edge/functions/is-editing.d.ts +1 -0
  293. package/vue2/lib/edge/functions/is-iframe.d.ts +1 -0
  294. package/vue2/lib/edge/functions/is-previewing.d.ts +1 -0
  295. package/vue2/lib/edge/functions/on-change.d.ts +7 -0
  296. package/vue2/lib/edge/functions/register-component.d.ts +15 -0
  297. package/vue2/lib/edge/functions/register.d.ts +16 -0
  298. package/vue2/lib/edge/functions/sanitize-react-native-block-styles.d.ts +3 -0
  299. package/vue2/lib/edge/functions/set-editor-settings.d.ts +4 -0
  300. package/vue2/lib/edge/functions/set.d.ts +7 -0
  301. package/vue2/lib/edge/functions/track/helpers.d.ts +5 -0
  302. package/vue2/lib/edge/functions/track/index.d.ts +51 -0
  303. package/vue2/lib/edge/functions/track/interaction.d.ts +13 -0
  304. package/vue2/lib/edge/functions/transform-block-properties.d.ts +2 -0
  305. package/vue2/lib/edge/functions/transform-block.d.ts +2 -0
  306. package/vue2/lib/edge/get-block-actions-30acfe84.js +35 -0
  307. package/vue2/lib/edge/get-block-actions-70f0ddb1.cjs +1 -0
  308. package/vue2/lib/edge/get-block-properties-26d44344.js +48 -0
  309. package/vue2/lib/edge/get-block-properties-e47eac50.cjs +1 -0
  310. package/vue2/lib/edge/get-processed-block-6bfaca9c.cjs +1 -0
  311. package/vue2/lib/edge/get-processed-block-d3436370.js +52 -0
  312. package/vue2/lib/edge/helpers/ab-tests.d.ts +9 -0
  313. package/vue2/lib/edge/helpers/canTrack.d.ts +1 -0
  314. package/vue2/lib/edge/helpers/cookie.d.ts +19 -0
  315. package/vue2/lib/edge/helpers/css.d.ts +7 -0
  316. package/vue2/lib/edge/helpers/flatten.d.ts +6 -0
  317. package/vue2/lib/edge/helpers/localStorage.d.ts +9 -0
  318. package/vue2/lib/edge/helpers/logger.d.ts +6 -0
  319. package/vue2/lib/edge/helpers/nullable.d.ts +2 -0
  320. package/vue2/lib/edge/helpers/preview-lru-cache/get.d.ts +2 -0
  321. package/vue2/lib/edge/helpers/preview-lru-cache/init.d.ts +6 -0
  322. package/vue2/lib/edge/helpers/preview-lru-cache/set.d.ts +7 -0
  323. package/vue2/lib/edge/helpers/sessionId.d.ts +6 -0
  324. package/vue2/lib/edge/helpers/time.d.ts +1 -0
  325. package/vue2/lib/edge/helpers/url.d.ts +6 -0
  326. package/vue2/lib/edge/helpers/uuid.d.ts +8 -0
  327. package/vue2/lib/edge/helpers/visitorId.d.ts +6 -0
  328. package/vue2/lib/edge/index-84b65a4f.js +1422 -0
  329. package/vue2/lib/edge/index-a83a44e7.cjs +32 -0
  330. package/vue2/lib/edge/index-helpers/blocks-exports.d.ts +88 -0
  331. package/vue2/lib/edge/index-helpers/top-of-file.d.ts +1 -0
  332. package/vue2/lib/edge/index.cjs +1 -0
  333. package/vue2/lib/edge/index.d.ts +7 -0
  334. package/vue2/lib/edge/index.js +29 -0
  335. package/vue2/lib/edge/inlined-script-58f8fb7e.js +23 -0
  336. package/vue2/lib/edge/inlined-script-c7731507.cjs +1 -0
  337. package/vue2/lib/edge/inlined-styles-f19ba9ed.js +23 -0
  338. package/vue2/lib/edge/inlined-styles-fac668de.cjs +1 -0
  339. package/vue2/lib/edge/interactive-element-086120dd.js +42 -0
  340. package/vue2/lib/edge/interactive-element-f7ebf39a.cjs +1 -0
  341. package/vue2/lib/edge/repeated-block-5d01ffbd.cjs +1 -0
  342. package/vue2/lib/edge/repeated-block-8d023e60.js +38 -0
  343. package/vue2/lib/edge/scripts/init-editing.d.ts +6 -0
  344. package/vue2/lib/edge/server-index.d.ts +15 -0
  345. package/vue2/lib/edge/style.css +1 -0
  346. package/vue2/lib/edge/styles-022c2ac6.cjs +31 -0
  347. package/vue2/lib/edge/styles-dafbc021.js +89 -0
  348. package/vue2/lib/edge/types/api-version.d.ts +2 -0
  349. package/vue2/lib/edge/types/builder-block.d.ts +66 -0
  350. package/vue2/lib/edge/types/builder-content.d.ts +44 -0
  351. package/vue2/lib/edge/types/builder-props.d.ts +9 -0
  352. package/vue2/lib/edge/types/can-track.d.ts +3 -0
  353. package/vue2/lib/edge/types/components.d.ts +111 -0
  354. package/vue2/lib/edge/types/deep-partial.d.ts +3 -0
  355. package/vue2/lib/edge/types/element.d.ts +59 -0
  356. package/vue2/lib/edge/types/enforced-partials.d.ts +21 -0
  357. package/vue2/lib/edge/types/input.d.ts +121 -0
  358. package/vue2/lib/edge/types/targets.d.ts +1 -0
  359. package/vue2/lib/edge/types/typescript.d.ts +11 -0
  360. package/vue2/lib/node/block-7572b272.cjs +3 -0
  361. package/vue2/lib/node/block-c120af6b.js +181 -0
  362. package/vue2/lib/node/block-styles-7b6133cb.js +77 -0
  363. package/vue2/lib/node/block-styles-d210742a.cjs +1 -0
  364. package/vue2/lib/node/block-wrapper-7137e4eb.js +66 -0
  365. package/vue2/lib/node/block-wrapper-73003591.cjs +1 -0
  366. package/vue2/lib/node/blocks/button/button.vue.d.ts +17 -0
  367. package/vue2/lib/node/blocks/button/component-info.d.ts +2 -0
  368. package/vue2/lib/node/blocks/columns/columns.vue.d.ts +44 -0
  369. package/vue2/lib/node/blocks/columns/component-info.d.ts +2 -0
  370. package/vue2/lib/node/blocks/custom-code/component-info.d.ts +2 -0
  371. package/vue2/lib/node/blocks/custom-code/custom-code.vue.d.ts +14 -0
  372. package/vue2/lib/node/blocks/embed/component-info.d.ts +2 -0
  373. package/vue2/lib/node/blocks/embed/embed.vue.d.ts +18 -0
  374. package/vue2/lib/node/blocks/embed/helpers.d.ts +1 -0
  375. package/vue2/lib/node/blocks/form/component-info.d.ts +2 -0
  376. package/vue2/lib/node/blocks/fragment/component-info.d.ts +2 -0
  377. package/vue2/lib/node/blocks/fragment/fragment.vue.d.ts +7 -0
  378. package/vue2/lib/node/blocks/helpers.d.ts +13 -0
  379. package/vue2/lib/node/blocks/image/component-info.d.ts +2 -0
  380. package/vue2/lib/node/blocks/image/image.helpers.d.ts +1 -0
  381. package/vue2/lib/node/blocks/image/image.vue.d.ts +72 -0
  382. package/vue2/lib/node/blocks/img/component-info.d.ts +2 -0
  383. package/vue2/lib/node/blocks/img/img.vue.d.ts +38 -0
  384. package/vue2/lib/node/blocks/input/component-info.d.ts +2 -0
  385. package/vue2/lib/node/blocks/raw-text/component-info.d.ts +2 -0
  386. package/vue2/lib/node/blocks/section/component-info.d.ts +2 -0
  387. package/vue2/lib/node/blocks/section/section.vue.d.ts +22 -0
  388. package/vue2/lib/node/blocks/select/component-info.d.ts +2 -0
  389. package/vue2/lib/node/blocks/submit-button/component-info.d.ts +2 -0
  390. package/vue2/lib/node/blocks/symbol/component-info.d.ts +2 -0
  391. package/vue2/lib/node/blocks/symbol/symbol.helpers.d.ts +14 -0
  392. package/vue2/lib/node/blocks/symbol/symbol.vue.d.ts +37 -0
  393. package/vue2/lib/node/blocks/text/component-info.d.ts +2 -0
  394. package/vue2/lib/node/blocks/text/text.vue.d.ts +11 -0
  395. package/vue2/lib/node/blocks/textarea/component-info.d.ts +2 -0
  396. package/vue2/lib/node/blocks/video/component-info.d.ts +2 -0
  397. package/vue2/lib/node/blocks/video/video.vue.d.ts +64 -0
  398. package/vue2/lib/node/blocks-wrapper-9f1e75a3.js +72 -0
  399. package/vue2/lib/node/blocks-wrapper-b4d967ac.cjs +1 -0
  400. package/vue2/lib/node/component-ref-b509786c.js +102 -0
  401. package/vue2/lib/node/component-ref-da79bed8.cjs +1 -0
  402. package/vue2/lib/node/components/block/block.helpers.d.ts +13 -0
  403. package/vue2/lib/node/components/block/block.vue.d.ts +41 -0
  404. package/vue2/lib/node/components/block/components/block-styles.vue.d.ts +23 -0
  405. package/vue2/lib/node/components/block/components/block-wrapper.vue.d.ts +29 -0
  406. package/vue2/lib/node/components/block/components/component-ref/component-ref.helpers.d.ts +30 -0
  407. package/vue2/lib/node/components/block/components/component-ref/component-ref.vue.d.ts +41 -0
  408. package/vue2/lib/node/components/block/components/interactive-element.vue.d.ts +30 -0
  409. package/vue2/lib/node/components/block/components/repeated-block.vue.d.ts +16 -0
  410. package/vue2/lib/node/components/block/types.d.ts +6 -0
  411. package/vue2/lib/node/components/blocks/blocks-wrapper.vue.d.ts +30 -0
  412. package/vue2/lib/node/components/blocks/blocks.vue.d.ts +29 -0
  413. package/vue2/lib/node/components/content/components/enable-editor.vue.d.ts +56 -0
  414. package/vue2/lib/node/components/content/components/styles.helpers.d.ts +15 -0
  415. package/vue2/lib/node/components/content/components/styles.vue.d.ts +16 -0
  416. package/vue2/lib/node/components/content/content.helpers.d.ts +7 -0
  417. package/vue2/lib/node/components/content/content.types.d.ts +24 -0
  418. package/vue2/lib/node/components/content/content.vue.d.ts +26 -0
  419. package/vue2/lib/node/components/content/index.d.ts +1 -0
  420. package/vue2/lib/node/components/content/wrap-component-ref.d.ts +6 -0
  421. package/vue2/lib/node/components/content-variants/content-variants.types.d.ts +20 -0
  422. package/vue2/lib/node/components/content-variants/content-variants.vue.d.ts +50 -0
  423. package/vue2/lib/node/components/content-variants/helpers.d.ts +18 -0
  424. package/vue2/lib/node/components/inlined-script.vue.d.ts +11 -0
  425. package/vue2/lib/node/components/inlined-styles.vue.d.ts +11 -0
  426. package/vue2/lib/node/constants/builder-registered-components.d.ts +6 -0
  427. package/vue2/lib/node/constants/device-sizes.d.ts +13 -0
  428. package/vue2/lib/node/constants/sdk-version.d.ts +1 -0
  429. package/vue2/lib/node/constants/target.d.ts +2 -0
  430. package/vue2/lib/node/content-284be2c3.cjs +1 -0
  431. package/vue2/lib/node/content-adf884f8.js +928 -0
  432. package/vue2/lib/node/context/builder.context.d.ts +15 -0
  433. package/vue2/lib/node/context/components.context.d.ts +7 -0
  434. package/vue2/lib/node/context/types.d.ts +35 -0
  435. package/vue2/lib/node/css-01587ac9.js +21 -0
  436. package/vue2/lib/node/css-924d8859.cjs +6 -0
  437. package/vue2/lib/node/enable-editor-4c0af531.cjs +1 -0
  438. package/vue2/lib/node/enable-editor-872f651f.js +429 -0
  439. package/vue2/lib/node/evaluate-34eb09eb.js +81 -0
  440. package/vue2/lib/node/evaluate-3b22ca76.cjs +1 -0
  441. package/vue2/lib/node/functions/apply-patch-with-mutation.d.ts +10 -0
  442. package/vue2/lib/node/functions/camel-to-kebab-case.d.ts +1 -0
  443. package/vue2/lib/node/functions/deopt.d.ts +4 -0
  444. package/vue2/lib/node/functions/evaluate/browser-runtime/browser.d.ts +4 -0
  445. package/vue2/lib/node/functions/evaluate/browser-runtime/index.d.ts +1 -0
  446. package/vue2/lib/node/functions/evaluate/edge-runtime/acorn-interpreter.d.ts +2 -0
  447. package/vue2/lib/node/functions/evaluate/edge-runtime/edge-runtime.d.ts +2 -0
  448. package/vue2/lib/node/functions/evaluate/edge-runtime/index.d.ts +1 -0
  449. package/vue2/lib/node/functions/evaluate/evaluate.d.ts +6 -0
  450. package/vue2/lib/node/functions/evaluate/helpers.d.ts +18 -0
  451. package/vue2/lib/node/functions/evaluate/index.d.ts +1 -0
  452. package/vue2/lib/node/functions/evaluate/node-runtime/index.d.ts +1 -0
  453. package/vue2/lib/node/functions/evaluate/placeholder-runtime.d.ts +2 -0
  454. package/vue2/lib/node/functions/event-handler-name.d.ts +1 -0
  455. package/vue2/lib/node/functions/extract-text-styles.d.ts +4 -0
  456. package/vue2/lib/node/functions/fast-clone.d.ts +4 -0
  457. package/vue2/lib/node/functions/fetch-builder-props.d.ts +40 -0
  458. package/vue2/lib/node/functions/get-block-actions-handler.d.ts +8 -0
  459. package/vue2/lib/node/functions/get-block-actions.d.ts +10 -0
  460. package/vue2/lib/node/functions/get-block-component-options.d.ts +2 -0
  461. package/vue2/lib/node/functions/get-block-properties.d.ts +6 -0
  462. package/vue2/lib/node/functions/get-builder-search-params/index.d.ts +12 -0
  463. package/vue2/lib/node/functions/get-content/generate-content-url.d.ts +2 -0
  464. package/vue2/lib/node/functions/get-content/index.d.ts +28 -0
  465. package/vue2/lib/node/functions/get-content/types.d.ts +51 -0
  466. package/vue2/lib/node/functions/get-fetch.d.ts +1 -0
  467. package/vue2/lib/node/functions/get-processed-block.d.ts +10 -0
  468. package/vue2/lib/node/functions/get-react-native-block-styles.d.ts +7 -0
  469. package/vue2/lib/node/functions/is-browser.d.ts +1 -0
  470. package/vue2/lib/node/functions/is-edge-runtime.d.ts +4 -0
  471. package/vue2/lib/node/functions/is-editing.d.ts +1 -0
  472. package/vue2/lib/node/functions/is-iframe.d.ts +1 -0
  473. package/vue2/lib/node/functions/is-previewing.d.ts +1 -0
  474. package/vue2/lib/node/functions/on-change.d.ts +7 -0
  475. package/vue2/lib/node/functions/register-component.d.ts +15 -0
  476. package/vue2/lib/node/functions/register.d.ts +16 -0
  477. package/vue2/lib/node/functions/sanitize-react-native-block-styles.d.ts +3 -0
  478. package/vue2/lib/node/functions/set-editor-settings.d.ts +4 -0
  479. package/vue2/lib/node/functions/set.d.ts +7 -0
  480. package/vue2/lib/node/functions/track/helpers.d.ts +5 -0
  481. package/vue2/lib/node/functions/track/index.d.ts +51 -0
  482. package/vue2/lib/node/functions/track/interaction.d.ts +13 -0
  483. package/vue2/lib/node/functions/transform-block-properties.d.ts +2 -0
  484. package/vue2/lib/node/functions/transform-block.d.ts +2 -0
  485. package/vue2/lib/node/get-block-actions-2147e6cd.js +35 -0
  486. package/vue2/lib/node/get-block-actions-55e90df6.cjs +1 -0
  487. package/vue2/lib/node/get-block-properties-2f43ed48.cjs +1 -0
  488. package/vue2/lib/node/get-block-properties-58c54a69.js +48 -0
  489. package/vue2/lib/node/get-processed-block-15b0d499.cjs +1 -0
  490. package/vue2/lib/node/get-processed-block-a2ff4c51.js +58 -0
  491. package/vue2/lib/node/helpers/ab-tests.d.ts +9 -0
  492. package/vue2/lib/node/helpers/canTrack.d.ts +1 -0
  493. package/vue2/lib/node/helpers/cookie.d.ts +19 -0
  494. package/vue2/lib/node/helpers/css.d.ts +7 -0
  495. package/vue2/lib/node/helpers/flatten.d.ts +6 -0
  496. package/vue2/lib/node/helpers/localStorage.d.ts +9 -0
  497. package/vue2/lib/node/helpers/logger.d.ts +6 -0
  498. package/vue2/lib/node/helpers/nullable.d.ts +2 -0
  499. package/vue2/lib/node/helpers/preview-lru-cache/get.d.ts +2 -0
  500. package/vue2/lib/node/helpers/preview-lru-cache/helpers.d.ts +0 -0
  501. package/vue2/lib/node/helpers/preview-lru-cache/init.d.ts +6 -0
  502. package/vue2/lib/node/helpers/preview-lru-cache/set.d.ts +7 -0
  503. package/vue2/lib/node/helpers/preview-lru-cache/types.d.ts +0 -0
  504. package/vue2/lib/node/helpers/sessionId.d.ts +6 -0
  505. package/vue2/lib/node/helpers/time.d.ts +1 -0
  506. package/vue2/lib/node/helpers/url.d.ts +6 -0
  507. package/vue2/lib/node/helpers/uuid.d.ts +8 -0
  508. package/vue2/lib/node/helpers/visitorId.d.ts +6 -0
  509. package/vue2/lib/node/index-20a64e56.js +1422 -0
  510. package/vue2/lib/node/index-31b135ac.cjs +32 -0
  511. package/vue2/lib/node/index-helpers/blocks-exports.d.ts +88 -0
  512. package/vue2/lib/node/index-helpers/top-of-file.d.ts +1 -0
  513. package/vue2/lib/node/index.cjs +1 -0
  514. package/vue2/lib/node/index.d.ts +7 -0
  515. package/vue2/lib/node/index.js +29 -0
  516. package/vue2/lib/node/inlined-script-395a54bf.cjs +1 -0
  517. package/vue2/lib/node/inlined-script-dd1c2277.js +23 -0
  518. package/vue2/lib/node/inlined-styles-5f724636.js +23 -0
  519. package/vue2/lib/node/inlined-styles-6ad3b97d.cjs +1 -0
  520. package/vue2/lib/node/interactive-element-91844a73.cjs +1 -0
  521. package/vue2/lib/node/interactive-element-9a3140c7.js +42 -0
  522. package/vue2/lib/node/repeated-block-2801e2ad.cjs +1 -0
  523. package/vue2/lib/node/repeated-block-db085f7a.js +38 -0
  524. package/vue2/lib/node/scripts/init-editing.d.ts +6 -0
  525. package/vue2/lib/node/server-index.d.ts +15 -0
  526. package/vue2/lib/node/style.css +1 -0
  527. package/vue2/lib/node/styles-1aad0890.cjs +31 -0
  528. package/vue2/lib/node/styles-c675d986.js +89 -0
  529. package/vue2/lib/node/types/api-version.d.ts +2 -0
  530. package/vue2/lib/node/types/builder-block.d.ts +66 -0
  531. package/vue2/lib/node/types/builder-content.d.ts +44 -0
  532. package/vue2/lib/node/types/builder-props.d.ts +9 -0
  533. package/vue2/lib/node/types/can-track.d.ts +3 -0
  534. package/vue2/lib/node/types/components.d.ts +111 -0
  535. package/vue2/lib/node/types/deep-partial.d.ts +3 -0
  536. package/vue2/lib/node/types/element.d.ts +59 -0
  537. package/vue2/lib/node/types/enforced-partials.d.ts +21 -0
  538. package/vue2/lib/node/types/input.d.ts +121 -0
  539. package/vue2/lib/node/types/targets.d.ts +1 -0
  540. package/vue2/lib/node/types/typescript.d.ts +11 -0
  541. package/vue3/lib/browser/block-wrapper.ae2637e5.cjs +1 -0
  542. package/vue3/lib/browser/block-wrapper.f1e0d99f.js +54 -0
  543. package/vue3/lib/browser/blocks/button/button.vue.d.ts +30 -0
  544. package/vue3/lib/browser/blocks/button/component-info.d.ts +2 -0
  545. package/vue3/lib/browser/blocks/columns/columns.vue.d.ts +69 -0
  546. package/vue3/lib/browser/blocks/columns/component-info.d.ts +2 -0
  547. package/vue3/lib/browser/blocks/custom-code/component-info.d.ts +2 -0
  548. package/vue3/lib/browser/blocks/custom-code/custom-code.vue.d.ts +21 -0
  549. package/vue3/lib/browser/blocks/embed/component-info.d.ts +2 -0
  550. package/vue3/lib/browser/blocks/embed/embed.vue.d.ts +22 -0
  551. package/vue3/lib/browser/blocks/embed/helpers.d.ts +1 -0
  552. package/vue3/lib/browser/blocks/form/component-info.d.ts +2 -0
  553. package/vue3/lib/browser/blocks/fragment/component-info.d.ts +2 -0
  554. package/vue3/lib/browser/blocks/fragment/fragment.vue.d.ts +7 -0
  555. package/vue3/lib/browser/blocks/helpers.d.ts +13 -0
  556. package/vue3/lib/browser/blocks/image/component-info.d.ts +2 -0
  557. package/vue3/lib/browser/blocks/image/image.helpers.d.ts +1 -0
  558. package/vue3/lib/browser/blocks/image/image.vue.d.ts +72 -0
  559. package/vue3/lib/browser/blocks/img/component-info.d.ts +2 -0
  560. package/vue3/lib/browser/blocks/img/img.vue.d.ts +38 -0
  561. package/vue3/lib/browser/blocks/input/component-info.d.ts +2 -0
  562. package/vue3/lib/browser/blocks/raw-text/component-info.d.ts +2 -0
  563. package/vue3/lib/browser/blocks/section/component-info.d.ts +2 -0
  564. package/vue3/lib/browser/blocks/section/section.vue.d.ts +22 -0
  565. package/vue3/lib/browser/blocks/select/component-info.d.ts +2 -0
  566. package/vue3/lib/browser/blocks/submit-button/component-info.d.ts +2 -0
  567. package/vue3/lib/browser/blocks/symbol/component-info.d.ts +2 -0
  568. package/vue3/lib/browser/blocks/symbol/symbol.helpers.d.ts +14 -0
  569. package/vue3/lib/browser/blocks/symbol/symbol.vue.d.ts +56 -0
  570. package/vue3/lib/browser/blocks/text/component-info.d.ts +2 -0
  571. package/vue3/lib/browser/blocks/text/text.vue.d.ts +11 -0
  572. package/vue3/lib/browser/blocks/textarea/component-info.d.ts +2 -0
  573. package/vue3/lib/browser/blocks/video/component-info.d.ts +2 -0
  574. package/vue3/lib/browser/blocks/video/video.vue.d.ts +64 -0
  575. package/vue3/lib/browser/component-ref.90060339.cjs +1 -0
  576. package/vue3/lib/browser/component-ref.e2ad1f80.js +111 -0
  577. package/vue3/lib/browser/components/block/block.helpers.d.ts +13 -0
  578. package/vue3/lib/browser/components/block/block.vue.d.ts +41 -0
  579. package/vue3/lib/browser/components/block/components/block-styles.vue.d.ts +23 -0
  580. package/vue3/lib/browser/components/block/components/block-wrapper.vue.d.ts +29 -0
  581. package/vue3/lib/browser/components/block/components/component-ref/component-ref.helpers.d.ts +30 -0
  582. package/vue3/lib/browser/components/block/components/component-ref/component-ref.vue.d.ts +41 -0
  583. package/vue3/lib/browser/components/block/components/interactive-element.vue.d.ts +30 -0
  584. package/vue3/lib/browser/components/block/components/repeated-block.vue.d.ts +16 -0
  585. package/vue3/lib/browser/components/block/types.d.ts +6 -0
  586. package/vue3/lib/browser/components/blocks/blocks-wrapper.vue.d.ts +30 -0
  587. package/vue3/lib/browser/components/blocks/blocks.vue.d.ts +29 -0
  588. package/vue3/lib/browser/components/content/components/enable-editor.vue.d.ts +90 -0
  589. package/vue3/lib/browser/components/content/components/styles.helpers.d.ts +15 -0
  590. package/vue3/lib/browser/components/content/components/styles.vue.d.ts +16 -0
  591. package/vue3/lib/browser/components/content/content.helpers.d.ts +7 -0
  592. package/vue3/lib/browser/components/content/content.types.d.ts +24 -0
  593. package/vue3/lib/browser/components/content/content.vue.d.ts +69 -0
  594. package/vue3/lib/browser/components/content/index.d.ts +1 -0
  595. package/vue3/lib/browser/components/content/wrap-component-ref.d.ts +6 -0
  596. package/vue3/lib/browser/components/content-variants/content-variants.types.d.ts +20 -0
  597. package/vue3/lib/browser/components/content-variants/content-variants.vue.d.ts +73 -0
  598. package/vue3/lib/browser/components/content-variants/helpers.d.ts +41 -0
  599. package/vue3/lib/browser/components/inlined-script.vue.d.ts +11 -0
  600. package/vue3/lib/browser/components/inlined-styles.vue.d.ts +11 -0
  601. package/vue3/lib/browser/constants/builder-registered-components.d.ts +6 -0
  602. package/vue3/lib/browser/constants/device-sizes.d.ts +13 -0
  603. package/vue3/lib/browser/constants/sdk-version.d.ts +1 -0
  604. package/vue3/lib/browser/constants/target.d.ts +2 -0
  605. package/vue3/lib/browser/context/builder.context.d.ts +15 -0
  606. package/vue3/lib/browser/context/components.context.d.ts +7 -0
  607. package/vue3/lib/browser/context/types.d.ts +35 -0
  608. package/vue3/lib/browser/functions/apply-patch-with-mutation.d.ts +10 -0
  609. package/vue3/lib/browser/functions/camel-to-kebab-case.d.ts +1 -0
  610. package/vue3/lib/browser/functions/deopt.d.ts +4 -0
  611. package/vue3/lib/browser/functions/evaluate/browser-runtime/browser.d.ts +4 -0
  612. package/vue3/lib/browser/functions/evaluate/browser-runtime/index.d.ts +1 -0
  613. package/vue3/lib/browser/functions/evaluate/edge-runtime/acorn-interpreter.d.ts +2 -0
  614. package/vue3/lib/browser/functions/evaluate/edge-runtime/edge-runtime.d.ts +2 -0
  615. package/vue3/lib/browser/functions/evaluate/edge-runtime/index.d.ts +1 -0
  616. package/vue3/lib/browser/functions/evaluate/evaluate.d.ts +6 -0
  617. package/vue3/lib/browser/functions/evaluate/helpers.d.ts +18 -0
  618. package/vue3/lib/browser/functions/evaluate/index.d.ts +1 -0
  619. package/vue3/lib/browser/functions/evaluate/node-runtime/index.d.ts +1 -0
  620. package/vue3/lib/browser/functions/evaluate/placeholder-runtime.d.ts +2 -0
  621. package/vue3/lib/browser/functions/event-handler-name.d.ts +1 -0
  622. package/vue3/lib/browser/functions/extract-text-styles.d.ts +4 -0
  623. package/vue3/lib/browser/functions/fast-clone.d.ts +4 -0
  624. package/vue3/lib/browser/functions/fetch-builder-props.d.ts +40 -0
  625. package/vue3/lib/browser/functions/get-block-actions-handler.d.ts +8 -0
  626. package/vue3/lib/browser/functions/get-block-actions.d.ts +10 -0
  627. package/vue3/lib/browser/functions/get-block-component-options.d.ts +2 -0
  628. package/vue3/lib/browser/functions/get-block-properties.d.ts +6 -0
  629. package/vue3/lib/browser/functions/get-builder-search-params/index.d.ts +12 -0
  630. package/vue3/lib/browser/functions/get-content/generate-content-url.d.ts +2 -0
  631. package/vue3/lib/browser/functions/get-content/index.d.ts +28 -0
  632. package/vue3/lib/browser/functions/get-content/types.d.ts +51 -0
  633. package/vue3/lib/browser/functions/get-fetch.d.ts +1 -0
  634. package/vue3/lib/browser/functions/get-processed-block.d.ts +10 -0
  635. package/vue3/lib/browser/functions/get-react-native-block-styles.d.ts +7 -0
  636. package/vue3/lib/browser/functions/is-browser.d.ts +1 -0
  637. package/vue3/lib/browser/functions/is-edge-runtime.d.ts +4 -0
  638. package/vue3/lib/browser/functions/is-editing.d.ts +1 -0
  639. package/vue3/lib/browser/functions/is-iframe.d.ts +1 -0
  640. package/vue3/lib/browser/functions/is-previewing.d.ts +1 -0
  641. package/vue3/lib/browser/functions/on-change.d.ts +7 -0
  642. package/vue3/lib/browser/functions/register-component.d.ts +15 -0
  643. package/vue3/lib/browser/functions/register.d.ts +16 -0
  644. package/vue3/lib/browser/functions/sanitize-react-native-block-styles.d.ts +3 -0
  645. package/vue3/lib/browser/functions/set-editor-settings.d.ts +4 -0
  646. package/vue3/lib/browser/functions/set.d.ts +7 -0
  647. package/vue3/lib/browser/functions/track/helpers.d.ts +5 -0
  648. package/vue3/lib/browser/functions/track/index.d.ts +51 -0
  649. package/vue3/lib/browser/functions/track/interaction.d.ts +13 -0
  650. package/vue3/lib/browser/functions/transform-block-properties.d.ts +2 -0
  651. package/vue3/lib/browser/functions/transform-block.d.ts +2 -0
  652. package/vue3/lib/browser/get-block-actions.05d2bf89.js +79 -0
  653. package/vue3/lib/browser/get-block-actions.9a71b975.cjs +1 -0
  654. package/vue3/lib/browser/helpers/ab-tests.d.ts +9 -0
  655. package/vue3/lib/browser/helpers/canTrack.d.ts +1 -0
  656. package/vue3/lib/browser/helpers/cookie.d.ts +19 -0
  657. package/vue3/lib/browser/helpers/css.d.ts +7 -0
  658. package/vue3/lib/browser/helpers/flatten.d.ts +6 -0
  659. package/vue3/lib/browser/helpers/localStorage.d.ts +9 -0
  660. package/vue3/lib/browser/helpers/logger.d.ts +6 -0
  661. package/vue3/lib/browser/helpers/nullable.d.ts +2 -0
  662. package/vue3/lib/browser/helpers/preview-lru-cache/get.d.ts +2 -0
  663. package/vue3/lib/browser/helpers/preview-lru-cache/helpers.d.ts +0 -0
  664. package/vue3/lib/browser/helpers/preview-lru-cache/init.d.ts +6 -0
  665. package/vue3/lib/browser/helpers/preview-lru-cache/set.d.ts +7 -0
  666. package/vue3/lib/browser/helpers/preview-lru-cache/types.d.ts +0 -0
  667. package/vue3/lib/browser/helpers/sessionId.d.ts +6 -0
  668. package/vue3/lib/browser/helpers/time.d.ts +1 -0
  669. package/vue3/lib/browser/helpers/url.d.ts +6 -0
  670. package/vue3/lib/browser/helpers/uuid.d.ts +8 -0
  671. package/vue3/lib/browser/helpers/visitorId.d.ts +6 -0
  672. package/vue3/lib/browser/index-helpers/blocks-exports.d.ts +111 -0
  673. package/vue3/lib/browser/index-helpers/top-of-file.d.ts +1 -0
  674. package/vue3/lib/browser/index.bb9d2170.js +3243 -0
  675. package/vue3/lib/browser/index.cjs +1 -0
  676. package/vue3/lib/browser/index.d.ts +7 -0
  677. package/vue3/lib/browser/index.eed52cb2.cjs +69 -0
  678. package/vue3/lib/browser/index.js +29 -0
  679. package/vue3/lib/browser/repeated-block.6860cc5f.js +33 -0
  680. package/vue3/lib/browser/repeated-block.f7f28e2b.cjs +1 -0
  681. package/vue3/lib/browser/scripts/init-editing.d.ts +6 -0
  682. package/vue3/lib/browser/server-index.d.ts +15 -0
  683. package/vue3/lib/browser/style.css +1 -0
  684. package/vue3/lib/browser/types/api-version.d.ts +2 -0
  685. package/vue3/lib/browser/types/builder-block.d.ts +66 -0
  686. package/vue3/lib/browser/types/builder-content.d.ts +44 -0
  687. package/vue3/lib/browser/types/builder-props.d.ts +9 -0
  688. package/vue3/lib/browser/types/can-track.d.ts +3 -0
  689. package/vue3/lib/browser/types/components.d.ts +111 -0
  690. package/vue3/lib/browser/types/deep-partial.d.ts +3 -0
  691. package/vue3/lib/browser/types/element.d.ts +59 -0
  692. package/vue3/lib/browser/types/enforced-partials.d.ts +21 -0
  693. package/vue3/lib/browser/types/input.d.ts +121 -0
  694. package/vue3/lib/browser/types/targets.d.ts +1 -0
  695. package/vue3/lib/browser/types/typescript.d.ts +11 -0
  696. package/vue3/lib/edge/block-wrapper.5020430a.js +54 -0
  697. package/vue3/lib/edge/block-wrapper.6bb62da5.cjs +1 -0
  698. package/vue3/lib/edge/blocks/button/button.vue.d.ts +30 -0
  699. package/vue3/lib/edge/blocks/button/component-info.d.ts +2 -0
  700. package/vue3/lib/edge/blocks/columns/columns.vue.d.ts +69 -0
  701. package/vue3/lib/edge/blocks/columns/component-info.d.ts +2 -0
  702. package/vue3/lib/edge/blocks/custom-code/component-info.d.ts +2 -0
  703. package/vue3/lib/edge/blocks/custom-code/custom-code.vue.d.ts +21 -0
  704. package/vue3/lib/edge/blocks/embed/component-info.d.ts +2 -0
  705. package/vue3/lib/edge/blocks/embed/embed.vue.d.ts +22 -0
  706. package/vue3/lib/edge/blocks/embed/helpers.d.ts +1 -0
  707. package/vue3/lib/edge/blocks/form/component-info.d.ts +2 -0
  708. package/vue3/lib/edge/blocks/fragment/component-info.d.ts +2 -0
  709. package/vue3/lib/edge/blocks/fragment/fragment.vue.d.ts +7 -0
  710. package/vue3/lib/edge/blocks/helpers.d.ts +13 -0
  711. package/vue3/lib/edge/blocks/image/component-info.d.ts +2 -0
  712. package/vue3/lib/edge/blocks/image/image.helpers.d.ts +1 -0
  713. package/vue3/lib/edge/blocks/image/image.vue.d.ts +72 -0
  714. package/vue3/lib/edge/blocks/img/component-info.d.ts +2 -0
  715. package/vue3/lib/edge/blocks/img/img.vue.d.ts +38 -0
  716. package/vue3/lib/edge/blocks/input/component-info.d.ts +2 -0
  717. package/vue3/lib/edge/blocks/raw-text/component-info.d.ts +2 -0
  718. package/vue3/lib/edge/blocks/section/component-info.d.ts +2 -0
  719. package/vue3/lib/edge/blocks/section/section.vue.d.ts +22 -0
  720. package/vue3/lib/edge/blocks/select/component-info.d.ts +2 -0
  721. package/vue3/lib/edge/blocks/submit-button/component-info.d.ts +2 -0
  722. package/vue3/lib/edge/blocks/symbol/component-info.d.ts +2 -0
  723. package/vue3/lib/edge/blocks/symbol/symbol.helpers.d.ts +14 -0
  724. package/vue3/lib/edge/blocks/symbol/symbol.vue.d.ts +56 -0
  725. package/vue3/lib/edge/blocks/text/component-info.d.ts +2 -0
  726. package/vue3/lib/edge/blocks/text/text.vue.d.ts +11 -0
  727. package/vue3/lib/edge/blocks/textarea/component-info.d.ts +2 -0
  728. package/vue3/lib/edge/blocks/video/component-info.d.ts +2 -0
  729. package/vue3/lib/edge/blocks/video/video.vue.d.ts +64 -0
  730. package/vue3/lib/edge/component-ref.0528b1a0.cjs +1 -0
  731. package/vue3/lib/edge/component-ref.1af99a31.js +111 -0
  732. package/vue3/lib/edge/components/block/block.helpers.d.ts +13 -0
  733. package/vue3/lib/edge/components/block/block.vue.d.ts +41 -0
  734. package/vue3/lib/edge/components/block/components/block-styles.vue.d.ts +23 -0
  735. package/vue3/lib/edge/components/block/components/block-wrapper.vue.d.ts +29 -0
  736. package/vue3/lib/edge/components/block/components/component-ref/component-ref.helpers.d.ts +30 -0
  737. package/vue3/lib/edge/components/block/components/component-ref/component-ref.vue.d.ts +41 -0
  738. package/vue3/lib/edge/components/block/components/interactive-element.vue.d.ts +30 -0
  739. package/vue3/lib/edge/components/block/components/repeated-block.vue.d.ts +16 -0
  740. package/vue3/lib/edge/components/block/types.d.ts +6 -0
  741. package/vue3/lib/edge/components/blocks/blocks-wrapper.vue.d.ts +30 -0
  742. package/vue3/lib/edge/components/blocks/blocks.vue.d.ts +29 -0
  743. package/vue3/lib/edge/components/content/components/enable-editor.vue.d.ts +90 -0
  744. package/vue3/lib/edge/components/content/components/styles.helpers.d.ts +15 -0
  745. package/vue3/lib/edge/components/content/components/styles.vue.d.ts +16 -0
  746. package/vue3/lib/edge/components/content/content.helpers.d.ts +7 -0
  747. package/vue3/lib/edge/components/content/content.types.d.ts +24 -0
  748. package/vue3/lib/edge/components/content/content.vue.d.ts +69 -0
  749. package/vue3/lib/edge/components/content/index.d.ts +1 -0
  750. package/vue3/lib/edge/components/content/wrap-component-ref.d.ts +6 -0
  751. package/vue3/lib/edge/components/content-variants/content-variants.types.d.ts +20 -0
  752. package/vue3/lib/edge/components/content-variants/content-variants.vue.d.ts +73 -0
  753. package/vue3/lib/edge/components/content-variants/helpers.d.ts +41 -0
  754. package/vue3/lib/edge/components/inlined-script.vue.d.ts +11 -0
  755. package/vue3/lib/edge/components/inlined-styles.vue.d.ts +11 -0
  756. package/vue3/lib/edge/constants/builder-registered-components.d.ts +6 -0
  757. package/vue3/lib/edge/constants/device-sizes.d.ts +13 -0
  758. package/vue3/lib/edge/constants/sdk-version.d.ts +1 -0
  759. package/vue3/lib/edge/constants/target.d.ts +2 -0
  760. package/vue3/lib/edge/context/builder.context.d.ts +15 -0
  761. package/vue3/lib/edge/context/components.context.d.ts +7 -0
  762. package/vue3/lib/edge/context/types.d.ts +35 -0
  763. package/vue3/lib/edge/functions/apply-patch-with-mutation.d.ts +10 -0
  764. package/vue3/lib/edge/functions/camel-to-kebab-case.d.ts +1 -0
  765. package/vue3/lib/edge/functions/deopt.d.ts +4 -0
  766. package/vue3/lib/edge/functions/evaluate/browser-runtime/browser.d.ts +4 -0
  767. package/vue3/lib/edge/functions/evaluate/browser-runtime/index.d.ts +1 -0
  768. package/vue3/lib/edge/functions/evaluate/edge-runtime/acorn-interpreter.d.ts +2 -0
  769. package/vue3/lib/edge/functions/evaluate/edge-runtime/edge-runtime.d.ts +2 -0
  770. package/vue3/lib/edge/functions/evaluate/edge-runtime/index.d.ts +1 -0
  771. package/vue3/lib/edge/functions/evaluate/evaluate.d.ts +6 -0
  772. package/vue3/lib/edge/functions/evaluate/helpers.d.ts +18 -0
  773. package/vue3/lib/edge/functions/evaluate/index.d.ts +1 -0
  774. package/vue3/lib/edge/functions/evaluate/node-runtime/index.d.ts +1 -0
  775. package/vue3/lib/edge/functions/evaluate/placeholder-runtime.d.ts +2 -0
  776. package/vue3/lib/edge/functions/event-handler-name.d.ts +1 -0
  777. package/vue3/lib/edge/functions/extract-text-styles.d.ts +4 -0
  778. package/vue3/lib/edge/functions/fast-clone.d.ts +4 -0
  779. package/vue3/lib/edge/functions/fetch-builder-props.d.ts +40 -0
  780. package/vue3/lib/edge/functions/get-block-actions-handler.d.ts +8 -0
  781. package/vue3/lib/edge/functions/get-block-actions.d.ts +10 -0
  782. package/vue3/lib/edge/functions/get-block-component-options.d.ts +2 -0
  783. package/vue3/lib/edge/functions/get-block-properties.d.ts +6 -0
  784. package/vue3/lib/edge/functions/get-builder-search-params/index.d.ts +12 -0
  785. package/vue3/lib/edge/functions/get-content/generate-content-url.d.ts +2 -0
  786. package/vue3/lib/edge/functions/get-content/index.d.ts +28 -0
  787. package/vue3/lib/edge/functions/get-content/types.d.ts +51 -0
  788. package/vue3/lib/edge/functions/get-fetch.d.ts +1 -0
  789. package/vue3/lib/edge/functions/get-processed-block.d.ts +10 -0
  790. package/vue3/lib/edge/functions/get-react-native-block-styles.d.ts +7 -0
  791. package/vue3/lib/edge/functions/is-browser.d.ts +1 -0
  792. package/vue3/lib/edge/functions/is-edge-runtime.d.ts +4 -0
  793. package/vue3/lib/edge/functions/is-editing.d.ts +1 -0
  794. package/vue3/lib/edge/functions/is-iframe.d.ts +1 -0
  795. package/vue3/lib/edge/functions/is-previewing.d.ts +1 -0
  796. package/vue3/lib/edge/functions/on-change.d.ts +7 -0
  797. package/vue3/lib/edge/functions/register-component.d.ts +15 -0
  798. package/vue3/lib/edge/functions/register.d.ts +16 -0
  799. package/vue3/lib/edge/functions/sanitize-react-native-block-styles.d.ts +3 -0
  800. package/vue3/lib/edge/functions/set-editor-settings.d.ts +4 -0
  801. package/vue3/lib/edge/functions/set.d.ts +7 -0
  802. package/vue3/lib/edge/functions/track/helpers.d.ts +5 -0
  803. package/vue3/lib/edge/functions/track/index.d.ts +51 -0
  804. package/vue3/lib/edge/functions/track/interaction.d.ts +13 -0
  805. package/vue3/lib/edge/functions/transform-block-properties.d.ts +2 -0
  806. package/vue3/lib/edge/functions/transform-block.d.ts +2 -0
  807. package/vue3/lib/edge/get-block-actions.8e0880b9.js +79 -0
  808. package/vue3/lib/edge/get-block-actions.cdcc68a3.cjs +1 -0
  809. package/vue3/lib/edge/helpers/ab-tests.d.ts +9 -0
  810. package/vue3/lib/edge/helpers/canTrack.d.ts +1 -0
  811. package/vue3/lib/edge/helpers/cookie.d.ts +19 -0
  812. package/vue3/lib/edge/helpers/css.d.ts +7 -0
  813. package/vue3/lib/edge/helpers/flatten.d.ts +6 -0
  814. package/vue3/lib/edge/helpers/localStorage.d.ts +9 -0
  815. package/vue3/lib/edge/helpers/logger.d.ts +6 -0
  816. package/vue3/lib/edge/helpers/nullable.d.ts +2 -0
  817. package/vue3/lib/edge/helpers/preview-lru-cache/get.d.ts +2 -0
  818. package/vue3/lib/edge/helpers/preview-lru-cache/helpers.d.ts +0 -0
  819. package/vue3/lib/edge/helpers/preview-lru-cache/init.d.ts +6 -0
  820. package/vue3/lib/edge/helpers/preview-lru-cache/set.d.ts +7 -0
  821. package/vue3/lib/edge/helpers/preview-lru-cache/types.d.ts +0 -0
  822. package/vue3/lib/edge/helpers/sessionId.d.ts +6 -0
  823. package/vue3/lib/edge/helpers/time.d.ts +1 -0
  824. package/vue3/lib/edge/helpers/url.d.ts +6 -0
  825. package/vue3/lib/edge/helpers/uuid.d.ts +8 -0
  826. package/vue3/lib/edge/helpers/visitorId.d.ts +6 -0
  827. package/vue3/lib/edge/index-helpers/blocks-exports.d.ts +111 -0
  828. package/vue3/lib/edge/index-helpers/top-of-file.d.ts +1 -0
  829. package/vue3/lib/edge/index.51a4e9bc.js +5687 -0
  830. package/vue3/lib/edge/index.cjs +1 -0
  831. package/vue3/lib/edge/index.d.ts +7 -0
  832. package/vue3/lib/edge/index.f8106764.cjs +89 -0
  833. package/vue3/lib/edge/index.js +29 -0
  834. package/vue3/lib/edge/repeated-block.1735d6ce.js +33 -0
  835. package/vue3/lib/edge/repeated-block.6e7688cb.cjs +1 -0
  836. package/vue3/lib/edge/scripts/init-editing.d.ts +6 -0
  837. package/vue3/lib/edge/server-index.d.ts +15 -0
  838. package/vue3/lib/edge/style.css +1 -0
  839. package/vue3/lib/edge/types/api-version.d.ts +2 -0
  840. package/vue3/lib/edge/types/builder-block.d.ts +66 -0
  841. package/vue3/lib/edge/types/builder-content.d.ts +44 -0
  842. package/vue3/lib/edge/types/builder-props.d.ts +9 -0
  843. package/vue3/lib/edge/types/can-track.d.ts +3 -0
  844. package/vue3/lib/edge/types/components.d.ts +111 -0
  845. package/vue3/lib/edge/types/deep-partial.d.ts +3 -0
  846. package/vue3/lib/edge/types/element.d.ts +59 -0
  847. package/vue3/lib/edge/types/enforced-partials.d.ts +21 -0
  848. package/vue3/lib/edge/types/input.d.ts +121 -0
  849. package/vue3/lib/edge/types/targets.d.ts +1 -0
  850. package/vue3/lib/edge/types/typescript.d.ts +11 -0
  851. package/vue3/lib/node/block-wrapper.ae2637e5.cjs +1 -0
  852. package/vue3/lib/node/block-wrapper.f1e0d99f.js +54 -0
  853. package/vue3/lib/node/blocks/button/button.vue.d.ts +30 -0
  854. package/vue3/lib/node/blocks/button/component-info.d.ts +2 -0
  855. package/vue3/lib/node/blocks/columns/columns.vue.d.ts +69 -0
  856. package/vue3/lib/node/blocks/columns/component-info.d.ts +2 -0
  857. package/vue3/lib/node/blocks/custom-code/component-info.d.ts +2 -0
  858. package/vue3/lib/node/blocks/custom-code/custom-code.vue.d.ts +21 -0
  859. package/vue3/lib/node/blocks/embed/component-info.d.ts +2 -0
  860. package/vue3/lib/node/blocks/embed/embed.vue.d.ts +22 -0
  861. package/vue3/lib/node/blocks/embed/helpers.d.ts +1 -0
  862. package/vue3/lib/node/blocks/form/component-info.d.ts +2 -0
  863. package/vue3/lib/node/blocks/fragment/component-info.d.ts +2 -0
  864. package/vue3/lib/node/blocks/fragment/fragment.vue.d.ts +7 -0
  865. package/vue3/lib/node/blocks/helpers.d.ts +13 -0
  866. package/vue3/lib/node/blocks/image/component-info.d.ts +2 -0
  867. package/vue3/lib/node/blocks/image/image.helpers.d.ts +1 -0
  868. package/vue3/lib/node/blocks/image/image.vue.d.ts +72 -0
  869. package/vue3/lib/node/blocks/img/component-info.d.ts +2 -0
  870. package/vue3/lib/node/blocks/img/img.vue.d.ts +38 -0
  871. package/vue3/lib/node/blocks/input/component-info.d.ts +2 -0
  872. package/vue3/lib/node/blocks/raw-text/component-info.d.ts +2 -0
  873. package/vue3/lib/node/blocks/section/component-info.d.ts +2 -0
  874. package/vue3/lib/node/blocks/section/section.vue.d.ts +22 -0
  875. package/vue3/lib/node/blocks/select/component-info.d.ts +2 -0
  876. package/vue3/lib/node/blocks/submit-button/component-info.d.ts +2 -0
  877. package/vue3/lib/node/blocks/symbol/component-info.d.ts +2 -0
  878. package/vue3/lib/node/blocks/symbol/symbol.helpers.d.ts +14 -0
  879. package/vue3/lib/node/blocks/symbol/symbol.vue.d.ts +56 -0
  880. package/vue3/lib/node/blocks/text/component-info.d.ts +2 -0
  881. package/vue3/lib/node/blocks/text/text.vue.d.ts +11 -0
  882. package/vue3/lib/node/blocks/textarea/component-info.d.ts +2 -0
  883. package/vue3/lib/node/blocks/video/component-info.d.ts +2 -0
  884. package/vue3/lib/node/blocks/video/video.vue.d.ts +64 -0
  885. package/vue3/lib/node/component-ref.90060339.cjs +1 -0
  886. package/vue3/lib/node/component-ref.e2ad1f80.js +111 -0
  887. package/vue3/lib/node/components/block/block.helpers.d.ts +13 -0
  888. package/vue3/lib/node/components/block/block.vue.d.ts +41 -0
  889. package/vue3/lib/node/components/block/components/block-styles.vue.d.ts +23 -0
  890. package/vue3/lib/node/components/block/components/block-wrapper.vue.d.ts +29 -0
  891. package/vue3/lib/node/components/block/components/component-ref/component-ref.helpers.d.ts +30 -0
  892. package/vue3/lib/node/components/block/components/component-ref/component-ref.vue.d.ts +41 -0
  893. package/vue3/lib/node/components/block/components/interactive-element.vue.d.ts +30 -0
  894. package/vue3/lib/node/components/block/components/repeated-block.vue.d.ts +16 -0
  895. package/vue3/lib/node/components/block/types.d.ts +6 -0
  896. package/vue3/lib/node/components/blocks/blocks-wrapper.vue.d.ts +30 -0
  897. package/vue3/lib/node/components/blocks/blocks.vue.d.ts +29 -0
  898. package/vue3/lib/node/components/content/components/enable-editor.vue.d.ts +90 -0
  899. package/vue3/lib/node/components/content/components/styles.helpers.d.ts +15 -0
  900. package/vue3/lib/node/components/content/components/styles.vue.d.ts +16 -0
  901. package/vue3/lib/node/components/content/content.helpers.d.ts +7 -0
  902. package/vue3/lib/node/components/content/content.types.d.ts +24 -0
  903. package/vue3/lib/node/components/content/content.vue.d.ts +69 -0
  904. package/vue3/lib/node/components/content/index.d.ts +1 -0
  905. package/vue3/lib/node/components/content/wrap-component-ref.d.ts +6 -0
  906. package/vue3/lib/node/components/content-variants/content-variants.types.d.ts +20 -0
  907. package/vue3/lib/node/components/content-variants/content-variants.vue.d.ts +73 -0
  908. package/vue3/lib/node/components/content-variants/helpers.d.ts +41 -0
  909. package/vue3/lib/node/components/inlined-script.vue.d.ts +11 -0
  910. package/vue3/lib/node/components/inlined-styles.vue.d.ts +11 -0
  911. package/vue3/lib/node/constants/builder-registered-components.d.ts +6 -0
  912. package/vue3/lib/node/constants/device-sizes.d.ts +13 -0
  913. package/vue3/lib/node/constants/sdk-version.d.ts +1 -0
  914. package/vue3/lib/node/constants/target.d.ts +2 -0
  915. package/vue3/lib/node/context/builder.context.d.ts +15 -0
  916. package/vue3/lib/node/context/components.context.d.ts +7 -0
  917. package/vue3/lib/node/context/types.d.ts +35 -0
  918. package/vue3/lib/node/functions/apply-patch-with-mutation.d.ts +10 -0
  919. package/vue3/lib/node/functions/camel-to-kebab-case.d.ts +1 -0
  920. package/vue3/lib/node/functions/deopt.d.ts +4 -0
  921. package/vue3/lib/node/functions/evaluate/browser-runtime/browser.d.ts +4 -0
  922. package/vue3/lib/node/functions/evaluate/browser-runtime/index.d.ts +1 -0
  923. package/vue3/lib/node/functions/evaluate/edge-runtime/acorn-interpreter.d.ts +2 -0
  924. package/vue3/lib/node/functions/evaluate/edge-runtime/edge-runtime.d.ts +2 -0
  925. package/vue3/lib/node/functions/evaluate/edge-runtime/index.d.ts +1 -0
  926. package/vue3/lib/node/functions/evaluate/evaluate.d.ts +6 -0
  927. package/vue3/lib/node/functions/evaluate/helpers.d.ts +18 -0
  928. package/vue3/lib/node/functions/evaluate/index.d.ts +1 -0
  929. package/vue3/lib/node/functions/evaluate/node-runtime/index.d.ts +1 -0
  930. package/vue3/lib/node/functions/evaluate/placeholder-runtime.d.ts +2 -0
  931. package/vue3/lib/node/functions/event-handler-name.d.ts +1 -0
  932. package/vue3/lib/node/functions/extract-text-styles.d.ts +4 -0
  933. package/vue3/lib/node/functions/fast-clone.d.ts +4 -0
  934. package/vue3/lib/node/functions/fetch-builder-props.d.ts +40 -0
  935. package/vue3/lib/node/functions/get-block-actions-handler.d.ts +8 -0
  936. package/vue3/lib/node/functions/get-block-actions.d.ts +10 -0
  937. package/vue3/lib/node/functions/get-block-component-options.d.ts +2 -0
  938. package/vue3/lib/node/functions/get-block-properties.d.ts +6 -0
  939. package/vue3/lib/node/functions/get-builder-search-params/index.d.ts +12 -0
  940. package/vue3/lib/node/functions/get-content/generate-content-url.d.ts +2 -0
  941. package/vue3/lib/node/functions/get-content/index.d.ts +28 -0
  942. package/vue3/lib/node/functions/get-content/types.d.ts +51 -0
  943. package/vue3/lib/node/functions/get-fetch.d.ts +1 -0
  944. package/vue3/lib/node/functions/get-processed-block.d.ts +10 -0
  945. package/vue3/lib/node/functions/get-react-native-block-styles.d.ts +7 -0
  946. package/vue3/lib/node/functions/is-browser.d.ts +1 -0
  947. package/vue3/lib/node/functions/is-edge-runtime.d.ts +4 -0
  948. package/vue3/lib/node/functions/is-editing.d.ts +1 -0
  949. package/vue3/lib/node/functions/is-iframe.d.ts +1 -0
  950. package/vue3/lib/node/functions/is-previewing.d.ts +1 -0
  951. package/vue3/lib/node/functions/on-change.d.ts +7 -0
  952. package/vue3/lib/node/functions/register-component.d.ts +15 -0
  953. package/vue3/lib/node/functions/register.d.ts +16 -0
  954. package/vue3/lib/node/functions/sanitize-react-native-block-styles.d.ts +3 -0
  955. package/vue3/lib/node/functions/set-editor-settings.d.ts +4 -0
  956. package/vue3/lib/node/functions/set.d.ts +7 -0
  957. package/vue3/lib/node/functions/track/helpers.d.ts +5 -0
  958. package/vue3/lib/node/functions/track/index.d.ts +51 -0
  959. package/vue3/lib/node/functions/track/interaction.d.ts +13 -0
  960. package/vue3/lib/node/functions/transform-block-properties.d.ts +2 -0
  961. package/vue3/lib/node/functions/transform-block.d.ts +2 -0
  962. package/vue3/lib/node/get-block-actions.05d2bf89.js +79 -0
  963. package/vue3/lib/node/get-block-actions.9a71b975.cjs +1 -0
  964. package/vue3/lib/node/helpers/ab-tests.d.ts +9 -0
  965. package/vue3/lib/node/helpers/canTrack.d.ts +1 -0
  966. package/vue3/lib/node/helpers/cookie.d.ts +19 -0
  967. package/vue3/lib/node/helpers/css.d.ts +7 -0
  968. package/vue3/lib/node/helpers/flatten.d.ts +6 -0
  969. package/vue3/lib/node/helpers/localStorage.d.ts +9 -0
  970. package/vue3/lib/node/helpers/logger.d.ts +6 -0
  971. package/vue3/lib/node/helpers/nullable.d.ts +2 -0
  972. package/vue3/lib/node/helpers/preview-lru-cache/get.d.ts +2 -0
  973. package/vue3/lib/node/helpers/preview-lru-cache/helpers.d.ts +0 -0
  974. package/vue3/lib/node/helpers/preview-lru-cache/init.d.ts +6 -0
  975. package/vue3/lib/node/helpers/preview-lru-cache/set.d.ts +7 -0
  976. package/vue3/lib/node/helpers/preview-lru-cache/types.d.ts +0 -0
  977. package/vue3/lib/node/helpers/sessionId.d.ts +6 -0
  978. package/vue3/lib/node/helpers/time.d.ts +1 -0
  979. package/vue3/lib/node/helpers/url.d.ts +6 -0
  980. package/vue3/lib/node/helpers/uuid.d.ts +8 -0
  981. package/vue3/lib/node/helpers/visitorId.d.ts +6 -0
  982. package/vue3/lib/node/index-helpers/blocks-exports.d.ts +111 -0
  983. package/vue3/lib/node/index-helpers/top-of-file.d.ts +1 -0
  984. package/vue3/lib/node/index.bb9d2170.js +3243 -0
  985. package/vue3/lib/node/index.cjs +1 -0
  986. package/vue3/lib/node/index.d.ts +7 -0
  987. package/vue3/lib/node/index.eed52cb2.cjs +69 -0
  988. package/vue3/lib/node/index.js +29 -0
  989. package/vue3/lib/node/repeated-block.6860cc5f.js +33 -0
  990. package/vue3/lib/node/repeated-block.f7f28e2b.cjs +1 -0
  991. package/vue3/lib/node/scripts/init-editing.d.ts +6 -0
  992. package/vue3/lib/node/server-index.d.ts +15 -0
  993. package/vue3/lib/node/style.css +1 -0
  994. package/vue3/lib/node/types/api-version.d.ts +2 -0
  995. package/vue3/lib/node/types/builder-block.d.ts +66 -0
  996. package/vue3/lib/node/types/builder-content.d.ts +44 -0
  997. package/vue3/lib/node/types/builder-props.d.ts +9 -0
  998. package/vue3/lib/node/types/can-track.d.ts +3 -0
  999. package/vue3/lib/node/types/components.d.ts +111 -0
  1000. package/vue3/lib/node/types/deep-partial.d.ts +3 -0
  1001. package/vue3/lib/node/types/element.d.ts +59 -0
  1002. package/vue3/lib/node/types/enforced-partials.d.ts +21 -0
  1003. package/vue3/lib/node/types/input.d.ts +121 -0
  1004. package/vue3/lib/node/types/targets.d.ts +1 -0
  1005. package/vue3/lib/node/types/typescript.d.ts +11 -0
  1006. package/vue2/env.d.ts +0 -1
  1007. package/vue2/node_modules/@types/node/LICENSE +0 -21
  1008. package/vue2/node_modules/@types/node/README.md +0 -16
  1009. package/vue2/node_modules/@types/node/assert/strict.d.ts +0 -8
  1010. package/vue2/node_modules/@types/node/assert.d.ts +0 -962
  1011. package/vue2/node_modules/@types/node/async_hooks.d.ts +0 -497
  1012. package/vue2/node_modules/@types/node/buffer.d.ts +0 -2236
  1013. package/vue2/node_modules/@types/node/child_process.d.ts +0 -1396
  1014. package/vue2/node_modules/@types/node/cluster.d.ts +0 -414
  1015. package/vue2/node_modules/@types/node/console.d.ts +0 -412
  1016. package/vue2/node_modules/@types/node/constants.d.ts +0 -18
  1017. package/vue2/node_modules/@types/node/crypto.d.ts +0 -3869
  1018. package/vue2/node_modules/@types/node/dgram.d.ts +0 -545
  1019. package/vue2/node_modules/@types/node/diagnostics_channel.d.ts +0 -191
  1020. package/vue2/node_modules/@types/node/dns/promises.d.ts +0 -369
  1021. package/vue2/node_modules/@types/node/dns.d.ts +0 -655
  1022. package/vue2/node_modules/@types/node/domain.d.ts +0 -170
  1023. package/vue2/node_modules/@types/node/events.d.ts +0 -641
  1024. package/vue2/node_modules/@types/node/fs/promises.d.ts +0 -1094
  1025. package/vue2/node_modules/@types/node/fs.d.ts +0 -3803
  1026. package/vue2/node_modules/@types/node/globals.d.ts +0 -287
  1027. package/vue2/node_modules/@types/node/globals.global.d.ts +0 -1
  1028. package/vue2/node_modules/@types/node/http.d.ts +0 -1504
  1029. package/vue2/node_modules/@types/node/http2.d.ts +0 -2100
  1030. package/vue2/node_modules/@types/node/https.d.ts +0 -532
  1031. package/vue2/node_modules/@types/node/index.d.ts +0 -131
  1032. package/vue2/node_modules/@types/node/inspector.d.ts +0 -2745
  1033. package/vue2/node_modules/@types/node/module.d.ts +0 -115
  1034. package/vue2/node_modules/@types/node/net.d.ts +0 -828
  1035. package/vue2/node_modules/@types/node/os.d.ts +0 -455
  1036. package/vue2/node_modules/@types/node/package.json +0 -232
  1037. package/vue2/node_modules/@types/node/path.d.ts +0 -191
  1038. package/vue2/node_modules/@types/node/perf_hooks.d.ts +0 -586
  1039. package/vue2/node_modules/@types/node/process.d.ts +0 -1481
  1040. package/vue2/node_modules/@types/node/punycode.d.ts +0 -117
  1041. package/vue2/node_modules/@types/node/querystring.d.ts +0 -131
  1042. package/vue2/node_modules/@types/node/readline.d.ts +0 -543
  1043. package/vue2/node_modules/@types/node/repl.d.ts +0 -424
  1044. package/vue2/node_modules/@types/node/stream/consumers.d.ts +0 -12
  1045. package/vue2/node_modules/@types/node/stream/promises.d.ts +0 -42
  1046. package/vue2/node_modules/@types/node/stream/web.d.ts +0 -392
  1047. package/vue2/node_modules/@types/node/stream.d.ts +0 -1363
  1048. package/vue2/node_modules/@types/node/string_decoder.d.ts +0 -67
  1049. package/vue2/node_modules/@types/node/test.d.ts +0 -190
  1050. package/vue2/node_modules/@types/node/timers/promises.d.ts +0 -93
  1051. package/vue2/node_modules/@types/node/timers.d.ts +0 -94
  1052. package/vue2/node_modules/@types/node/tls.d.ts +0 -1019
  1053. package/vue2/node_modules/@types/node/trace_events.d.ts +0 -161
  1054. package/vue2/node_modules/@types/node/ts4.8/assert/strict.d.ts +0 -8
  1055. package/vue2/node_modules/@types/node/ts4.8/assert.d.ts +0 -962
  1056. package/vue2/node_modules/@types/node/ts4.8/async_hooks.d.ts +0 -497
  1057. package/vue2/node_modules/@types/node/ts4.8/buffer.d.ts +0 -2236
  1058. package/vue2/node_modules/@types/node/ts4.8/child_process.d.ts +0 -1396
  1059. package/vue2/node_modules/@types/node/ts4.8/cluster.d.ts +0 -414
  1060. package/vue2/node_modules/@types/node/ts4.8/console.d.ts +0 -412
  1061. package/vue2/node_modules/@types/node/ts4.8/constants.d.ts +0 -18
  1062. package/vue2/node_modules/@types/node/ts4.8/crypto.d.ts +0 -3866
  1063. package/vue2/node_modules/@types/node/ts4.8/dgram.d.ts +0 -545
  1064. package/vue2/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +0 -191
  1065. package/vue2/node_modules/@types/node/ts4.8/dns/promises.d.ts +0 -368
  1066. package/vue2/node_modules/@types/node/ts4.8/dns.d.ts +0 -654
  1067. package/vue2/node_modules/@types/node/ts4.8/domain.d.ts +0 -170
  1068. package/vue2/node_modules/@types/node/ts4.8/events.d.ts +0 -641
  1069. package/vue2/node_modules/@types/node/ts4.8/fs/promises.d.ts +0 -1094
  1070. package/vue2/node_modules/@types/node/ts4.8/fs.d.ts +0 -3802
  1071. package/vue2/node_modules/@types/node/ts4.8/globals.d.ts +0 -284
  1072. package/vue2/node_modules/@types/node/ts4.8/globals.global.d.ts +0 -1
  1073. package/vue2/node_modules/@types/node/ts4.8/http.d.ts +0 -1503
  1074. package/vue2/node_modules/@types/node/ts4.8/http2.d.ts +0 -2100
  1075. package/vue2/node_modules/@types/node/ts4.8/https.d.ts +0 -532
  1076. package/vue2/node_modules/@types/node/ts4.8/index.d.ts +0 -86
  1077. package/vue2/node_modules/@types/node/ts4.8/inspector.d.ts +0 -2745
  1078. package/vue2/node_modules/@types/node/ts4.8/module.d.ts +0 -115
  1079. package/vue2/node_modules/@types/node/ts4.8/net.d.ts +0 -828
  1080. package/vue2/node_modules/@types/node/ts4.8/os.d.ts +0 -456
  1081. package/vue2/node_modules/@types/node/ts4.8/path.d.ts +0 -191
  1082. package/vue2/node_modules/@types/node/ts4.8/perf_hooks.d.ts +0 -586
  1083. package/vue2/node_modules/@types/node/ts4.8/process.d.ts +0 -1481
  1084. package/vue2/node_modules/@types/node/ts4.8/punycode.d.ts +0 -117
  1085. package/vue2/node_modules/@types/node/ts4.8/querystring.d.ts +0 -131
  1086. package/vue2/node_modules/@types/node/ts4.8/readline.d.ts +0 -543
  1087. package/vue2/node_modules/@types/node/ts4.8/repl.d.ts +0 -424
  1088. package/vue2/node_modules/@types/node/ts4.8/stream/consumers.d.ts +0 -12
  1089. package/vue2/node_modules/@types/node/ts4.8/stream/promises.d.ts +0 -42
  1090. package/vue2/node_modules/@types/node/ts4.8/stream/web.d.ts +0 -392
  1091. package/vue2/node_modules/@types/node/ts4.8/stream.d.ts +0 -1363
  1092. package/vue2/node_modules/@types/node/ts4.8/string_decoder.d.ts +0 -67
  1093. package/vue2/node_modules/@types/node/ts4.8/test.d.ts +0 -190
  1094. package/vue2/node_modules/@types/node/ts4.8/timers/promises.d.ts +0 -93
  1095. package/vue2/node_modules/@types/node/ts4.8/timers.d.ts +0 -94
  1096. package/vue2/node_modules/@types/node/ts4.8/tls.d.ts +0 -1019
  1097. package/vue2/node_modules/@types/node/ts4.8/trace_events.d.ts +0 -161
  1098. package/vue2/node_modules/@types/node/ts4.8/tty.d.ts +0 -204
  1099. package/vue2/node_modules/@types/node/ts4.8/url.d.ts +0 -855
  1100. package/vue2/node_modules/@types/node/ts4.8/util.d.ts +0 -1594
  1101. package/vue2/node_modules/@types/node/ts4.8/v8.d.ts +0 -472
  1102. package/vue2/node_modules/@types/node/ts4.8/vm.d.ts +0 -507
  1103. package/vue2/node_modules/@types/node/ts4.8/wasi.d.ts +0 -158
  1104. package/vue2/node_modules/@types/node/ts4.8/worker_threads.d.ts +0 -649
  1105. package/vue2/node_modules/@types/node/ts4.8/zlib.d.ts +0 -517
  1106. package/vue2/node_modules/@types/node/tty.d.ts +0 -204
  1107. package/vue2/node_modules/@types/node/url.d.ts +0 -855
  1108. package/vue2/node_modules/@types/node/util.d.ts +0 -1594
  1109. package/vue2/node_modules/@types/node/v8.d.ts +0 -472
  1110. package/vue2/node_modules/@types/node/vm.d.ts +0 -507
  1111. package/vue2/node_modules/@types/node/wasi.d.ts +0 -158
  1112. package/vue2/node_modules/@types/node/worker_threads.d.ts +0 -649
  1113. package/vue2/node_modules/@types/node/zlib.d.ts +0 -517
  1114. package/vue2/node_modules/@vitejs/plugin-vue2/LICENSE +0 -21
  1115. package/vue2/node_modules/@vitejs/plugin-vue2/README.md +0 -115
  1116. package/vue2/node_modules/@vitejs/plugin-vue2/package.json +0 -65
  1117. package/vue2/node_modules/@vue/compiler-sfc/LICENSE +0 -21
  1118. package/vue2/node_modules/@vue/compiler-sfc/package.json +0 -34
  1119. package/vue2/node_modules/@vue/tsconfig/README.md +0 -31
  1120. package/vue2/node_modules/@vue/tsconfig/package.json +0 -35
  1121. package/vue2/node_modules/@vue/tsconfig/tsconfig.json +0 -40
  1122. package/vue2/node_modules/@vue/tsconfig/tsconfig.node.json +0 -17
  1123. package/vue2/node_modules/@vue/tsconfig/tsconfig.web.json +0 -19
  1124. package/vue2/node_modules/rollup/LICENSE.md +0 -695
  1125. package/vue2/node_modules/rollup/README.md +0 -125
  1126. package/vue2/node_modules/rollup/package.json +0 -178
  1127. package/vue2/node_modules/vite/LICENSE.md +0 -3396
  1128. package/vue2/node_modules/vite/README.md +0 -20
  1129. package/vue2/node_modules/vite/bin/openChrome.applescript +0 -95
  1130. package/vue2/node_modules/vite/bin/vite.js +0 -61
  1131. package/vue2/node_modules/vite/client.d.ts +0 -281
  1132. package/vue2/node_modules/vite/index.cjs +0 -34
  1133. package/vue2/node_modules/vite/package.json +0 -170
  1134. package/vue2/node_modules/vite-plugin-dts/LICENSE +0 -21
  1135. package/vue2/node_modules/vite-plugin-dts/README.md +0 -368
  1136. package/vue2/node_modules/vite-plugin-dts/README.zh-CN.md +0 -368
  1137. package/vue2/node_modules/vite-plugin-dts/node_modules/vue-tsc/LICENSE +0 -21
  1138. package/vue2/node_modules/vite-plugin-dts/node_modules/vue-tsc/README.md +0 -36
  1139. package/vue2/node_modules/vite-plugin-dts/node_modules/vue-tsc/bin/vue-tsc.js +0 -67
  1140. package/vue2/node_modules/vite-plugin-dts/node_modules/vue-tsc/out/index.d.ts +0 -16
  1141. package/vue2/node_modules/vite-plugin-dts/node_modules/vue-tsc/out/index.js +0 -120
  1142. package/vue2/node_modules/vite-plugin-dts/node_modules/vue-tsc/out/shared.d.ts +0 -8
  1143. package/vue2/node_modules/vite-plugin-dts/node_modules/vue-tsc/out/shared.js +0 -5
  1144. package/vue2/node_modules/vite-plugin-dts/node_modules/vue-tsc/package.json +0 -28
  1145. package/vue2/node_modules/vite-plugin-dts/package.json +0 -103
  1146. package/vue2/node_modules/vue/LICENSE +0 -21
  1147. package/vue2/node_modules/vue/README.md +0 -118
  1148. package/vue2/node_modules/vue/compiler-sfc/index.d.ts +0 -1
  1149. package/vue2/node_modules/vue/compiler-sfc/index.js +0 -1
  1150. package/vue2/node_modules/vue/compiler-sfc/index.mjs +0 -1
  1151. package/vue2/node_modules/vue/compiler-sfc/package.json +0 -5
  1152. package/vue2/node_modules/vue/package.json +0 -132
  1153. package/vue2/node_modules/vue/packages/compiler-sfc/api-extractor.json +0 -64
  1154. package/vue2/node_modules/vue/packages/compiler-sfc/node_modules/.bin/lessc +0 -17
  1155. package/vue2/node_modules/vue/packages/compiler-sfc/node_modules/.bin/parser +0 -17
  1156. package/vue2/node_modules/vue/packages/compiler-sfc/node_modules/.bin/sass +0 -17
  1157. package/vue2/node_modules/vue/packages/compiler-sfc/node_modules/.bin/stylus +0 -17
  1158. package/vue2/node_modules/vue/packages/compiler-sfc/package.json +0 -34
  1159. package/vue2/node_modules/vue/packages/compiler-sfc/src/babelUtils.ts +0 -423
  1160. package/vue2/node_modules/vue/packages/compiler-sfc/src/compileScript.ts +0 -1911
  1161. package/vue2/node_modules/vue/packages/compiler-sfc/src/compileStyle.ts +0 -147
  1162. package/vue2/node_modules/vue/packages/compiler-sfc/src/compileTemplate.ts +0 -205
  1163. package/vue2/node_modules/vue/packages/compiler-sfc/src/cssVars.ts +0 -179
  1164. package/vue2/node_modules/vue/packages/compiler-sfc/src/index.ts +0 -31
  1165. package/vue2/node_modules/vue/packages/compiler-sfc/src/parse.ts +0 -129
  1166. package/vue2/node_modules/vue/packages/compiler-sfc/src/parseComponent.ts +0 -220
  1167. package/vue2/node_modules/vue/packages/compiler-sfc/src/prefixIdentifiers.ts +0 -82
  1168. package/vue2/node_modules/vue/packages/compiler-sfc/src/rewriteDefault.ts +0 -115
  1169. package/vue2/node_modules/vue/packages/compiler-sfc/src/stylePlugins/scoped.ts +0 -203
  1170. package/vue2/node_modules/vue/packages/compiler-sfc/src/stylePlugins/trim.ts +0 -18
  1171. package/vue2/node_modules/vue/packages/compiler-sfc/src/stylePreprocessors.ts +0 -135
  1172. package/vue2/node_modules/vue/packages/compiler-sfc/src/templateCompilerModules/assetUrl.ts +0 -84
  1173. package/vue2/node_modules/vue/packages/compiler-sfc/src/templateCompilerModules/srcset.ts +0 -76
  1174. package/vue2/node_modules/vue/packages/compiler-sfc/src/templateCompilerModules/utils.ts +0 -86
  1175. package/vue2/node_modules/vue/packages/compiler-sfc/src/types.ts +0 -69
  1176. package/vue2/node_modules/vue/packages/compiler-sfc/src/warn.ts +0 -16
  1177. package/vue2/node_modules/vue/packages/compiler-sfc/test/__snapshots__/compileScript.spec.ts.snap +0 -925
  1178. package/vue2/node_modules/vue/packages/compiler-sfc/test/__snapshots__/cssVars.spec.ts.snap +0 -189
  1179. package/vue2/node_modules/vue/packages/compiler-sfc/test/compileScript.spec.ts +0 -1594
  1180. package/vue2/node_modules/vue/packages/compiler-sfc/test/compileStyle.spec.ts +0 -203
  1181. package/vue2/node_modules/vue/packages/compiler-sfc/test/compileTemplate.spec.ts +0 -258
  1182. package/vue2/node_modules/vue/packages/compiler-sfc/test/cssVars.spec.ts +0 -247
  1183. package/vue2/node_modules/vue/packages/compiler-sfc/test/parseComponent.spec.ts +0 -269
  1184. package/vue2/node_modules/vue/packages/compiler-sfc/test/prefixIdentifiers.spec.ts +0 -97
  1185. package/vue2/node_modules/vue/packages/compiler-sfc/test/rewriteDefault.spec.ts +0 -245
  1186. package/vue2/node_modules/vue/packages/compiler-sfc/test/stylePluginScoped.spec.ts +0 -137
  1187. package/vue2/node_modules/vue/packages/compiler-sfc/test/tsconfig.json +0 -7
  1188. package/vue2/node_modules/vue/packages/compiler-sfc/test/util.ts +0 -35
  1189. package/vue2/node_modules/vue/src/compiler/codeframe.ts +0 -52
  1190. package/vue2/node_modules/vue/src/compiler/codegen/events.ts +0 -170
  1191. package/vue2/node_modules/vue/src/compiler/codegen/index.ts +0 -668
  1192. package/vue2/node_modules/vue/src/compiler/create-compiler.ts +0 -83
  1193. package/vue2/node_modules/vue/src/compiler/directives/bind.ts +0 -9
  1194. package/vue2/node_modules/vue/src/compiler/directives/index.ts +0 -9
  1195. package/vue2/node_modules/vue/src/compiler/directives/model.ts +0 -145
  1196. package/vue2/node_modules/vue/src/compiler/directives/on.ts +0 -9
  1197. package/vue2/node_modules/vue/src/compiler/error-detector.ts +0 -158
  1198. package/vue2/node_modules/vue/src/compiler/helpers.ts +0 -243
  1199. package/vue2/node_modules/vue/src/compiler/index.ts +0 -24
  1200. package/vue2/node_modules/vue/src/compiler/optimizer.ts +0 -135
  1201. package/vue2/node_modules/vue/src/compiler/parser/entity-decoder.ts +0 -9
  1202. package/vue2/node_modules/vue/src/compiler/parser/filter-parser.ts +0 -116
  1203. package/vue2/node_modules/vue/src/compiler/parser/html-parser.ts +0 -341
  1204. package/vue2/node_modules/vue/src/compiler/parser/index.ts +0 -999
  1205. package/vue2/node_modules/vue/src/compiler/parser/text-parser.ts +0 -52
  1206. package/vue2/node_modules/vue/src/compiler/to-function.ts +0 -119
  1207. package/vue2/node_modules/vue/src/core/components/index.ts +0 -5
  1208. package/vue2/node_modules/vue/src/core/components/keep-alive.ts +0 -165
  1209. package/vue2/node_modules/vue/src/core/config.ts +0 -128
  1210. package/vue2/node_modules/vue/src/core/global-api/assets.ts +0 -35
  1211. package/vue2/node_modules/vue/src/core/global-api/extend.ts +0 -94
  1212. package/vue2/node_modules/vue/src/core/global-api/index.ts +0 -68
  1213. package/vue2/node_modules/vue/src/core/global-api/mixin.ts +0 -9
  1214. package/vue2/node_modules/vue/src/core/global-api/use.ts +0 -23
  1215. package/vue2/node_modules/vue/src/core/index.ts +0 -27
  1216. package/vue2/node_modules/vue/src/core/instance/events.ts +0 -160
  1217. package/vue2/node_modules/vue/src/core/instance/index.ts +0 -27
  1218. package/vue2/node_modules/vue/src/core/instance/init.ts +0 -140
  1219. package/vue2/node_modules/vue/src/core/instance/inject.ts +0 -80
  1220. package/vue2/node_modules/vue/src/core/instance/lifecycle.ts +0 -415
  1221. package/vue2/node_modules/vue/src/core/instance/proxy.ts +0 -97
  1222. package/vue2/node_modules/vue/src/core/instance/render-helpers/bind-dynamic-keys.ts +0 -36
  1223. package/vue2/node_modules/vue/src/core/instance/render-helpers/bind-object-listeners.ts +0 -18
  1224. package/vue2/node_modules/vue/src/core/instance/render-helpers/bind-object-props.ts +0 -59
  1225. package/vue2/node_modules/vue/src/core/instance/render-helpers/check-keycodes.ts +0 -33
  1226. package/vue2/node_modules/vue/src/core/instance/render-helpers/index.ts +0 -31
  1227. package/vue2/node_modules/vue/src/core/instance/render-helpers/render-list.ts +0 -49
  1228. package/vue2/node_modules/vue/src/core/instance/render-helpers/render-slot.ts +0 -39
  1229. package/vue2/node_modules/vue/src/core/instance/render-helpers/render-static.ts +0 -57
  1230. package/vue2/node_modules/vue/src/core/instance/render-helpers/resolve-filter.ts +0 -8
  1231. package/vue2/node_modules/vue/src/core/instance/render-helpers/resolve-scoped-slots.ts +0 -30
  1232. package/vue2/node_modules/vue/src/core/instance/render-helpers/resolve-slots.ts +0 -51
  1233. package/vue2/node_modules/vue/src/core/instance/render.ts +0 -173
  1234. package/vue2/node_modules/vue/src/core/instance/state.ts +0 -387
  1235. package/vue2/node_modules/vue/src/core/observer/array.ts +0 -54
  1236. package/vue2/node_modules/vue/src/core/observer/dep.ts +0 -108
  1237. package/vue2/node_modules/vue/src/core/observer/index.ts +0 -338
  1238. package/vue2/node_modules/vue/src/core/observer/scheduler.ts +0 -199
  1239. package/vue2/node_modules/vue/src/core/observer/traverse.ts +0 -47
  1240. package/vue2/node_modules/vue/src/core/observer/watcher.ts +0 -278
  1241. package/vue2/node_modules/vue/src/core/util/debug.ts +0 -105
  1242. package/vue2/node_modules/vue/src/core/util/env.ts +0 -93
  1243. package/vue2/node_modules/vue/src/core/util/error.ts +0 -81
  1244. package/vue2/node_modules/vue/src/core/util/index.ts +0 -9
  1245. package/vue2/node_modules/vue/src/core/util/lang.ts +0 -45
  1246. package/vue2/node_modules/vue/src/core/util/next-tick.ts +0 -117
  1247. package/vue2/node_modules/vue/src/core/util/options.ts +0 -489
  1248. package/vue2/node_modules/vue/src/core/util/perf.ts +0 -28
  1249. package/vue2/node_modules/vue/src/core/util/props.ts +0 -254
  1250. package/vue2/node_modules/vue/src/core/vdom/create-component.ts +0 -275
  1251. package/vue2/node_modules/vue/src/core/vdom/create-element.ts +0 -172
  1252. package/vue2/node_modules/vue/src/core/vdom/create-functional-component.ts +0 -180
  1253. package/vue2/node_modules/vue/src/core/vdom/helpers/extract-props.ts +0 -75
  1254. package/vue2/node_modules/vue/src/core/vdom/helpers/get-first-component-child.ts +0 -16
  1255. package/vue2/node_modules/vue/src/core/vdom/helpers/index.ts +0 -7
  1256. package/vue2/node_modules/vue/src/core/vdom/helpers/is-async-placeholder.ts +0 -6
  1257. package/vue2/node_modules/vue/src/core/vdom/helpers/merge-hook.ts +0 -40
  1258. package/vue2/node_modules/vue/src/core/vdom/helpers/normalize-children.ts +0 -99
  1259. package/vue2/node_modules/vue/src/core/vdom/helpers/normalize-scoped-slots.ts +0 -97
  1260. package/vue2/node_modules/vue/src/core/vdom/helpers/resolve-async-component.ts +0 -157
  1261. package/vue2/node_modules/vue/src/core/vdom/helpers/update-listeners.ts +0 -101
  1262. package/vue2/node_modules/vue/src/core/vdom/modules/directives.ts +0 -137
  1263. package/vue2/node_modules/vue/src/core/vdom/modules/index.ts +0 -4
  1264. package/vue2/node_modules/vue/src/core/vdom/modules/template-ref.ts +0 -94
  1265. package/vue2/node_modules/vue/src/core/vdom/patch.ts +0 -904
  1266. package/vue2/node_modules/vue/src/core/vdom/vnode.ts +0 -119
  1267. package/vue2/node_modules/vue/src/global.d.ts +0 -17
  1268. package/vue2/node_modules/vue/src/platforms/web/compiler/directives/html.ts +0 -8
  1269. package/vue2/node_modules/vue/src/platforms/web/compiler/directives/index.ts +0 -9
  1270. package/vue2/node_modules/vue/src/platforms/web/compiler/directives/model.ts +0 -181
  1271. package/vue2/node_modules/vue/src/platforms/web/compiler/directives/text.ts +0 -8
  1272. package/vue2/node_modules/vue/src/platforms/web/compiler/index.ts +0 -6
  1273. package/vue2/node_modules/vue/src/platforms/web/compiler/modules/class.ts +0 -44
  1274. package/vue2/node_modules/vue/src/platforms/web/compiler/modules/index.ts +0 -5
  1275. package/vue2/node_modules/vue/src/platforms/web/compiler/modules/model.ts +0 -89
  1276. package/vue2/node_modules/vue/src/platforms/web/compiler/modules/style.ts +0 -47
  1277. package/vue2/node_modules/vue/src/platforms/web/compiler/options.ts +0 -25
  1278. package/vue2/node_modules/vue/src/platforms/web/compiler/util.ts +0 -22
  1279. package/vue2/node_modules/vue/src/platforms/web/entry-compiler.ts +0 -4
  1280. package/vue2/node_modules/vue/src/platforms/web/entry-runtime-esm.ts +0 -5
  1281. package/vue2/node_modules/vue/src/platforms/web/entry-runtime-with-compiler-esm.ts +0 -5
  1282. package/vue2/node_modules/vue/src/platforms/web/entry-runtime-with-compiler.ts +0 -10
  1283. package/vue2/node_modules/vue/src/platforms/web/entry-runtime.ts +0 -7
  1284. package/vue2/node_modules/vue/src/platforms/web/runtime/class-util.ts +0 -61
  1285. package/vue2/node_modules/vue/src/platforms/web/runtime/components/index.ts +0 -7
  1286. package/vue2/node_modules/vue/src/platforms/web/runtime/components/transition-group.ts +0 -204
  1287. package/vue2/node_modules/vue/src/platforms/web/runtime/components/transition.ts +0 -205
  1288. package/vue2/node_modules/vue/src/platforms/web/runtime/directives/index.ts +0 -7
  1289. package/vue2/node_modules/vue/src/platforms/web/runtime/directives/model.ts +0 -148
  1290. package/vue2/node_modules/vue/src/platforms/web/runtime/directives/show.ts +0 -61
  1291. package/vue2/node_modules/vue/src/platforms/web/runtime/index.ts +0 -75
  1292. package/vue2/node_modules/vue/src/platforms/web/runtime/modules/attrs.ts +0 -115
  1293. package/vue2/node_modules/vue/src/platforms/web/runtime/modules/class.ts +0 -37
  1294. package/vue2/node_modules/vue/src/platforms/web/runtime/modules/dom-props.ts +0 -123
  1295. package/vue2/node_modules/vue/src/platforms/web/runtime/modules/events.ts +0 -127
  1296. package/vue2/node_modules/vue/src/platforms/web/runtime/modules/index.ts +0 -8
  1297. package/vue2/node_modules/vue/src/platforms/web/runtime/modules/style.ts +0 -104
  1298. package/vue2/node_modules/vue/src/platforms/web/runtime/modules/transition.ts +0 -341
  1299. package/vue2/node_modules/vue/src/platforms/web/runtime/node-ops.ts +0 -66
  1300. package/vue2/node_modules/vue/src/platforms/web/runtime/patch.ts +0 -10
  1301. package/vue2/node_modules/vue/src/platforms/web/runtime/transition-util.ts +0 -215
  1302. package/vue2/node_modules/vue/src/platforms/web/runtime-with-compiler.ts +0 -110
  1303. package/vue2/node_modules/vue/src/platforms/web/util/attrs.ts +0 -58
  1304. package/vue2/node_modules/vue/src/platforms/web/util/class.ts +0 -87
  1305. package/vue2/node_modules/vue/src/platforms/web/util/compat.ts +0 -16
  1306. package/vue2/node_modules/vue/src/platforms/web/util/element.ts +0 -76
  1307. package/vue2/node_modules/vue/src/platforms/web/util/index.ts +0 -21
  1308. package/vue2/node_modules/vue/src/platforms/web/util/style.ts +0 -71
  1309. package/vue2/node_modules/vue/src/shared/constants.ts +0 -20
  1310. package/vue2/node_modules/vue/src/shared/util.ts +0 -372
  1311. package/vue2/node_modules/vue/src/v3/apiAsyncComponent.ts +0 -117
  1312. package/vue2/node_modules/vue/src/v3/apiInject.ts +0 -71
  1313. package/vue2/node_modules/vue/src/v3/apiLifecycle.ts +0 -68
  1314. package/vue2/node_modules/vue/src/v3/apiSetup.ts +0 -246
  1315. package/vue2/node_modules/vue/src/v3/apiWatch.ts +0 -349
  1316. package/vue2/node_modules/vue/src/v3/currentInstance.ts +0 -23
  1317. package/vue2/node_modules/vue/src/v3/debug.ts +0 -21
  1318. package/vue2/node_modules/vue/src/v3/h.ts +0 -18
  1319. package/vue2/node_modules/vue/src/v3/index.ts +0 -96
  1320. package/vue2/node_modules/vue/src/v3/reactivity/computed.ts +0 -100
  1321. package/vue2/node_modules/vue/src/v3/reactivity/effect.ts +0 -20
  1322. package/vue2/node_modules/vue/src/v3/reactivity/effectScope.ts +0 -137
  1323. package/vue2/node_modules/vue/src/v3/reactivity/operations.ts +0 -14
  1324. package/vue2/node_modules/vue/src/v3/reactivity/reactive.ts +0 -137
  1325. package/vue2/node_modules/vue/src/v3/reactivity/readonly.ts +0 -127
  1326. package/vue2/node_modules/vue/src/v3/reactivity/ref.ts +0 -296
  1327. package/vue2/node_modules/vue/src/v3/sfc-helpers/useCssModule.ts +0 -24
  1328. package/vue2/node_modules/vue/src/v3/sfc-helpers/useCssVars.ts +0 -34
  1329. package/vue2/src/blocks/BaseText.vue +0 -25
  1330. package/vue2/src/blocks/button/button.vue +0 -68
  1331. package/vue2/src/blocks/button/component-info.ts +0 -35
  1332. package/vue2/src/blocks/columns/columns.vue +0 -238
  1333. package/vue2/src/blocks/columns/component-info.ts +0 -219
  1334. package/vue2/src/blocks/custom-code/component-info.ts +0 -24
  1335. package/vue2/src/blocks/custom-code/custom-code.vue +0 -88
  1336. package/vue2/src/blocks/embed/component-info.ts +0 -38
  1337. package/vue2/src/blocks/embed/embed.vue +0 -71
  1338. package/vue2/src/blocks/embed/helpers.ts +0 -2
  1339. package/vue2/src/blocks/form/component-info.ts +0 -233
  1340. package/vue2/src/blocks/form/form.vue +0 -7
  1341. package/vue2/src/blocks/fragment/component-info.ts +0 -8
  1342. package/vue2/src/blocks/fragment/fragment.vue +0 -19
  1343. package/vue2/src/blocks/helpers.ts +0 -43
  1344. package/vue2/src/blocks/image/component-info.ts +0 -124
  1345. package/vue2/src/blocks/image/image.helpers.ts +0 -47
  1346. package/vue2/src/blocks/image/image.vue +0 -174
  1347. package/vue2/src/blocks/img/component-info.ts +0 -16
  1348. package/vue2/src/blocks/img/img.vue +0 -59
  1349. package/vue2/src/blocks/input/component-info.ts +0 -47
  1350. package/vue2/src/blocks/input/input.vue +0 -52
  1351. package/vue2/src/blocks/raw-text/component-info.ts +0 -11
  1352. package/vue2/src/blocks/raw-text/raw-text.vue +0 -35
  1353. package/vue2/src/blocks/section/component-info.ts +0 -41
  1354. package/vue2/src/blocks/section/section.vue +0 -47
  1355. package/vue2/src/blocks/select/component-info.ts +0 -44
  1356. package/vue2/src/blocks/select/select.vue +0 -50
  1357. package/vue2/src/blocks/submit-button/component-info.ts +0 -27
  1358. package/vue2/src/blocks/submit-button/submit-button.vue +0 -34
  1359. package/vue2/src/blocks/symbol/component-info.ts +0 -35
  1360. package/vue2/src/blocks/symbol/symbol.helpers.ts +0 -47
  1361. package/vue2/src/blocks/symbol/symbol.vue +0 -143
  1362. package/vue2/src/blocks/text/component-info.ts +0 -20
  1363. package/vue2/src/blocks/text/text.vue +0 -23
  1364. package/vue2/src/blocks/textarea/component-info.ts +0 -38
  1365. package/vue2/src/blocks/textarea/textarea.vue +0 -38
  1366. package/vue2/src/blocks/video/component-info.ts +0 -83
  1367. package/vue2/src/blocks/video/video.vue +0 -105
  1368. package/vue2/src/components/block/block.helpers.ts +0 -89
  1369. package/vue2/src/components/block/block.vue +0 -203
  1370. package/vue2/src/components/block/components/block-styles.vue +0 -110
  1371. package/vue2/src/components/block/components/block-wrapper.vue +0 -83
  1372. package/vue2/src/components/block/components/component-ref/component-ref.helpers.ts +0 -52
  1373. package/vue2/src/components/block/components/component-ref/component-ref.vue +0 -97
  1374. package/vue2/src/components/block/components/interactive-element.vue +0 -48
  1375. package/vue2/src/components/block/components/repeated-block.vue +0 -51
  1376. package/vue2/src/components/block/types.ts +0 -6
  1377. package/vue2/src/components/blocks/blocks-wrapper.vue +0 -91
  1378. package/vue2/src/components/blocks/blocks.vue +0 -99
  1379. package/vue2/src/components/content/components/enable-editor.vue +0 -418
  1380. package/vue2/src/components/content/components/styles.helpers.ts +0 -77
  1381. package/vue2/src/components/content/components/styles.vue +0 -60
  1382. package/vue2/src/components/content/content.helpers.ts +0 -42
  1383. package/vue2/src/components/content/content.types.ts +0 -23
  1384. package/vue2/src/components/content/content.vue +0 -205
  1385. package/vue2/src/components/content/index.ts +0 -1
  1386. package/vue2/src/components/content/wrap-component-ref.ts +0 -6
  1387. package/vue2/src/components/content-variants/content-variants.types.ts +0 -20
  1388. package/vue2/src/components/content-variants/content-variants.vue +0 -177
  1389. package/vue2/src/components/content-variants/helpers.ts +0 -207
  1390. package/vue2/src/components/inlined-script.vue +0 -18
  1391. package/vue2/src/components/inlined-styles.vue +0 -18
  1392. package/vue2/src/constants/builder-registered-components.ts +0 -62
  1393. package/vue2/src/constants/device-sizes.ts +0 -59
  1394. package/vue2/src/constants/sdk-version.ts +0 -1
  1395. package/vue2/src/constants/target.ts +0 -4
  1396. package/vue2/src/context/builder.context.ts +0 -16
  1397. package/vue2/src/context/components.context.ts +0 -6
  1398. package/vue2/src/context/types.ts +0 -36
  1399. package/vue2/src/functions/apply-patch-with-mutation.ts +0 -61
  1400. package/vue2/src/functions/camel-to-kebab-case.ts +0 -1
  1401. package/vue2/src/functions/deopt.ts +0 -6
  1402. package/vue2/src/functions/evaluate/browser-runtime/browser.ts +0 -41
  1403. package/vue2/src/functions/evaluate/browser-runtime/index.ts +0 -1
  1404. package/vue2/src/functions/evaluate/edge-runtime/acorn-interpreter.ts +0 -2891
  1405. package/vue2/src/functions/evaluate/edge-runtime/edge-runtime.ts +0 -96
  1406. package/vue2/src/functions/evaluate/edge-runtime/index.ts +0 -1
  1407. package/vue2/src/functions/evaluate/evaluate.ts +0 -66
  1408. package/vue2/src/functions/evaluate/helpers.ts +0 -32
  1409. package/vue2/src/functions/evaluate/index.ts +0 -1
  1410. package/vue2/src/functions/evaluate/node-runtime/index.ts +0 -1
  1411. package/vue2/src/functions/evaluate/placeholder-runtime.ts +0 -4
  1412. package/vue2/src/functions/event-handler-name.ts +0 -1
  1413. package/vue2/src/functions/extract-text-styles.ts +0 -24
  1414. package/vue2/src/functions/fast-clone.ts +0 -4
  1415. package/vue2/src/functions/fetch-builder-props.ts +0 -62
  1416. package/vue2/src/functions/get-block-actions-handler.ts +0 -16
  1417. package/vue2/src/functions/get-block-actions.ts +0 -36
  1418. package/vue2/src/functions/get-block-component-options.ts +0 -11
  1419. package/vue2/src/functions/get-block-properties.ts +0 -82
  1420. package/vue2/src/functions/get-builder-search-params/index.ts +0 -40
  1421. package/vue2/src/functions/get-content/generate-content-url.ts +0 -45
  1422. package/vue2/src/functions/get-content/index.ts +0 -110
  1423. package/vue2/src/functions/get-content/types.ts +0 -62
  1424. package/vue2/src/functions/get-fetch.ts +0 -11
  1425. package/vue2/src/functions/get-global-this.ts +0 -16
  1426. package/vue2/src/functions/get-processed-block.ts +0 -69
  1427. package/vue2/src/functions/get-react-native-block-styles.ts +0 -27
  1428. package/vue2/src/functions/is-browser.ts +0 -3
  1429. package/vue2/src/functions/is-edge-runtime.ts +0 -9
  1430. package/vue2/src/functions/is-editing.ts +0 -5
  1431. package/vue2/src/functions/is-iframe.ts +0 -4
  1432. package/vue2/src/functions/is-previewing.ts +0 -11
  1433. package/vue2/src/functions/on-change.ts +0 -29
  1434. package/vue2/src/functions/register-component.ts +0 -48
  1435. package/vue2/src/functions/register.ts +0 -44
  1436. package/vue2/src/functions/sanitize-react-native-block-styles.ts +0 -58
  1437. package/vue2/src/functions/set-editor-settings.ts +0 -15
  1438. package/vue2/src/functions/set.ts +0 -14
  1439. package/vue2/src/functions/track/helpers.ts +0 -51
  1440. package/vue2/src/functions/track/index.ts +0 -131
  1441. package/vue2/src/functions/track/interaction.ts +0 -63
  1442. package/vue2/src/functions/transform-block-properties.ts +0 -18
  1443. package/vue2/src/functions/transform-block.ts +0 -6
  1444. package/vue2/src/helpers/ab-tests.ts +0 -166
  1445. package/vue2/src/helpers/canTrack.ts +0 -2
  1446. package/vue2/src/helpers/cookie.ts +0 -81
  1447. package/vue2/src/helpers/css.ts +0 -33
  1448. package/vue2/src/helpers/flatten.ts +0 -19
  1449. package/vue2/src/helpers/localStorage.ts +0 -36
  1450. package/vue2/src/helpers/logger.ts +0 -7
  1451. package/vue2/src/helpers/nullable.ts +0 -2
  1452. package/vue2/src/helpers/preview-lru-cache/get.ts +0 -4
  1453. package/vue2/src/helpers/preview-lru-cache/init.ts +0 -7
  1454. package/vue2/src/helpers/preview-lru-cache/set.ts +0 -12
  1455. package/vue2/src/helpers/sessionId.ts +0 -37
  1456. package/vue2/src/helpers/time.ts +0 -2
  1457. package/vue2/src/helpers/url.ts +0 -15
  1458. package/vue2/src/helpers/uuid.ts +0 -17
  1459. package/vue2/src/helpers/visitorId.ts +0 -37
  1460. package/vue2/src/index-helpers/blocks-exports.ts +0 -20
  1461. package/vue2/src/index-helpers/top-of-file.ts +0 -4
  1462. package/vue2/src/index.ts +0 -8
  1463. package/vue2/src/scripts/init-editing.ts +0 -113
  1464. package/vue2/src/server-index.ts +0 -15
  1465. package/vue2/tsconfig.config.json +0 -8
  1466. package/vue2/tsconfig.json +0 -16
  1467. package/vue2/vite.config.js +0 -31
  1468. package/vue3/env.d.ts +0 -1
  1469. package/vue3/node_modules/@types/node/LICENSE +0 -21
  1470. package/vue3/node_modules/@types/node/README.md +0 -16
  1471. package/vue3/node_modules/@types/node/assert/strict.d.ts +0 -8
  1472. package/vue3/node_modules/@types/node/assert.d.ts +0 -962
  1473. package/vue3/node_modules/@types/node/async_hooks.d.ts +0 -497
  1474. package/vue3/node_modules/@types/node/buffer.d.ts +0 -2236
  1475. package/vue3/node_modules/@types/node/child_process.d.ts +0 -1396
  1476. package/vue3/node_modules/@types/node/cluster.d.ts +0 -414
  1477. package/vue3/node_modules/@types/node/console.d.ts +0 -412
  1478. package/vue3/node_modules/@types/node/constants.d.ts +0 -18
  1479. package/vue3/node_modules/@types/node/crypto.d.ts +0 -3869
  1480. package/vue3/node_modules/@types/node/dgram.d.ts +0 -545
  1481. package/vue3/node_modules/@types/node/diagnostics_channel.d.ts +0 -191
  1482. package/vue3/node_modules/@types/node/dns/promises.d.ts +0 -369
  1483. package/vue3/node_modules/@types/node/dns.d.ts +0 -655
  1484. package/vue3/node_modules/@types/node/domain.d.ts +0 -170
  1485. package/vue3/node_modules/@types/node/events.d.ts +0 -641
  1486. package/vue3/node_modules/@types/node/fs/promises.d.ts +0 -1094
  1487. package/vue3/node_modules/@types/node/fs.d.ts +0 -3803
  1488. package/vue3/node_modules/@types/node/globals.d.ts +0 -287
  1489. package/vue3/node_modules/@types/node/globals.global.d.ts +0 -1
  1490. package/vue3/node_modules/@types/node/http.d.ts +0 -1504
  1491. package/vue3/node_modules/@types/node/http2.d.ts +0 -2100
  1492. package/vue3/node_modules/@types/node/https.d.ts +0 -532
  1493. package/vue3/node_modules/@types/node/index.d.ts +0 -131
  1494. package/vue3/node_modules/@types/node/inspector.d.ts +0 -2745
  1495. package/vue3/node_modules/@types/node/module.d.ts +0 -115
  1496. package/vue3/node_modules/@types/node/net.d.ts +0 -828
  1497. package/vue3/node_modules/@types/node/os.d.ts +0 -455
  1498. package/vue3/node_modules/@types/node/package.json +0 -232
  1499. package/vue3/node_modules/@types/node/path.d.ts +0 -191
  1500. package/vue3/node_modules/@types/node/perf_hooks.d.ts +0 -586
  1501. package/vue3/node_modules/@types/node/process.d.ts +0 -1481
  1502. package/vue3/node_modules/@types/node/punycode.d.ts +0 -117
  1503. package/vue3/node_modules/@types/node/querystring.d.ts +0 -131
  1504. package/vue3/node_modules/@types/node/readline.d.ts +0 -543
  1505. package/vue3/node_modules/@types/node/repl.d.ts +0 -424
  1506. package/vue3/node_modules/@types/node/stream/consumers.d.ts +0 -12
  1507. package/vue3/node_modules/@types/node/stream/promises.d.ts +0 -42
  1508. package/vue3/node_modules/@types/node/stream/web.d.ts +0 -392
  1509. package/vue3/node_modules/@types/node/stream.d.ts +0 -1363
  1510. package/vue3/node_modules/@types/node/string_decoder.d.ts +0 -67
  1511. package/vue3/node_modules/@types/node/test.d.ts +0 -190
  1512. package/vue3/node_modules/@types/node/timers/promises.d.ts +0 -93
  1513. package/vue3/node_modules/@types/node/timers.d.ts +0 -94
  1514. package/vue3/node_modules/@types/node/tls.d.ts +0 -1019
  1515. package/vue3/node_modules/@types/node/trace_events.d.ts +0 -161
  1516. package/vue3/node_modules/@types/node/ts4.8/assert/strict.d.ts +0 -8
  1517. package/vue3/node_modules/@types/node/ts4.8/assert.d.ts +0 -962
  1518. package/vue3/node_modules/@types/node/ts4.8/async_hooks.d.ts +0 -497
  1519. package/vue3/node_modules/@types/node/ts4.8/buffer.d.ts +0 -2236
  1520. package/vue3/node_modules/@types/node/ts4.8/child_process.d.ts +0 -1396
  1521. package/vue3/node_modules/@types/node/ts4.8/cluster.d.ts +0 -414
  1522. package/vue3/node_modules/@types/node/ts4.8/console.d.ts +0 -412
  1523. package/vue3/node_modules/@types/node/ts4.8/constants.d.ts +0 -18
  1524. package/vue3/node_modules/@types/node/ts4.8/crypto.d.ts +0 -3866
  1525. package/vue3/node_modules/@types/node/ts4.8/dgram.d.ts +0 -545
  1526. package/vue3/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +0 -191
  1527. package/vue3/node_modules/@types/node/ts4.8/dns/promises.d.ts +0 -368
  1528. package/vue3/node_modules/@types/node/ts4.8/dns.d.ts +0 -654
  1529. package/vue3/node_modules/@types/node/ts4.8/domain.d.ts +0 -170
  1530. package/vue3/node_modules/@types/node/ts4.8/events.d.ts +0 -641
  1531. package/vue3/node_modules/@types/node/ts4.8/fs/promises.d.ts +0 -1094
  1532. package/vue3/node_modules/@types/node/ts4.8/fs.d.ts +0 -3802
  1533. package/vue3/node_modules/@types/node/ts4.8/globals.d.ts +0 -284
  1534. package/vue3/node_modules/@types/node/ts4.8/globals.global.d.ts +0 -1
  1535. package/vue3/node_modules/@types/node/ts4.8/http.d.ts +0 -1503
  1536. package/vue3/node_modules/@types/node/ts4.8/http2.d.ts +0 -2100
  1537. package/vue3/node_modules/@types/node/ts4.8/https.d.ts +0 -532
  1538. package/vue3/node_modules/@types/node/ts4.8/index.d.ts +0 -86
  1539. package/vue3/node_modules/@types/node/ts4.8/inspector.d.ts +0 -2745
  1540. package/vue3/node_modules/@types/node/ts4.8/module.d.ts +0 -115
  1541. package/vue3/node_modules/@types/node/ts4.8/net.d.ts +0 -828
  1542. package/vue3/node_modules/@types/node/ts4.8/os.d.ts +0 -456
  1543. package/vue3/node_modules/@types/node/ts4.8/path.d.ts +0 -191
  1544. package/vue3/node_modules/@types/node/ts4.8/perf_hooks.d.ts +0 -586
  1545. package/vue3/node_modules/@types/node/ts4.8/process.d.ts +0 -1481
  1546. package/vue3/node_modules/@types/node/ts4.8/punycode.d.ts +0 -117
  1547. package/vue3/node_modules/@types/node/ts4.8/querystring.d.ts +0 -131
  1548. package/vue3/node_modules/@types/node/ts4.8/readline.d.ts +0 -543
  1549. package/vue3/node_modules/@types/node/ts4.8/repl.d.ts +0 -424
  1550. package/vue3/node_modules/@types/node/ts4.8/stream/consumers.d.ts +0 -12
  1551. package/vue3/node_modules/@types/node/ts4.8/stream/promises.d.ts +0 -42
  1552. package/vue3/node_modules/@types/node/ts4.8/stream/web.d.ts +0 -392
  1553. package/vue3/node_modules/@types/node/ts4.8/stream.d.ts +0 -1363
  1554. package/vue3/node_modules/@types/node/ts4.8/string_decoder.d.ts +0 -67
  1555. package/vue3/node_modules/@types/node/ts4.8/test.d.ts +0 -190
  1556. package/vue3/node_modules/@types/node/ts4.8/timers/promises.d.ts +0 -93
  1557. package/vue3/node_modules/@types/node/ts4.8/timers.d.ts +0 -94
  1558. package/vue3/node_modules/@types/node/ts4.8/tls.d.ts +0 -1019
  1559. package/vue3/node_modules/@types/node/ts4.8/trace_events.d.ts +0 -161
  1560. package/vue3/node_modules/@types/node/ts4.8/tty.d.ts +0 -204
  1561. package/vue3/node_modules/@types/node/ts4.8/url.d.ts +0 -855
  1562. package/vue3/node_modules/@types/node/ts4.8/util.d.ts +0 -1594
  1563. package/vue3/node_modules/@types/node/ts4.8/v8.d.ts +0 -472
  1564. package/vue3/node_modules/@types/node/ts4.8/vm.d.ts +0 -507
  1565. package/vue3/node_modules/@types/node/ts4.8/wasi.d.ts +0 -158
  1566. package/vue3/node_modules/@types/node/ts4.8/worker_threads.d.ts +0 -649
  1567. package/vue3/node_modules/@types/node/ts4.8/zlib.d.ts +0 -517
  1568. package/vue3/node_modules/@types/node/tty.d.ts +0 -204
  1569. package/vue3/node_modules/@types/node/url.d.ts +0 -855
  1570. package/vue3/node_modules/@types/node/util.d.ts +0 -1594
  1571. package/vue3/node_modules/@types/node/v8.d.ts +0 -472
  1572. package/vue3/node_modules/@types/node/vm.d.ts +0 -507
  1573. package/vue3/node_modules/@types/node/wasi.d.ts +0 -158
  1574. package/vue3/node_modules/@types/node/worker_threads.d.ts +0 -649
  1575. package/vue3/node_modules/@types/node/zlib.d.ts +0 -517
  1576. package/vue3/node_modules/@vitejs/plugin-vue/LICENSE +0 -21
  1577. package/vue3/node_modules/@vitejs/plugin-vue/README.md +0 -171
  1578. package/vue3/node_modules/@vitejs/plugin-vue/package.json +0 -51
  1579. package/vue3/node_modules/@vue/server-renderer/LICENSE +0 -21
  1580. package/vue3/node_modules/@vue/server-renderer/README.md +0 -178
  1581. package/vue3/node_modules/@vue/server-renderer/index.js +0 -7
  1582. package/vue3/node_modules/@vue/server-renderer/package.json +0 -41
  1583. package/vue3/node_modules/@vue/tsconfig/README.md +0 -31
  1584. package/vue3/node_modules/@vue/tsconfig/package.json +0 -35
  1585. package/vue3/node_modules/@vue/tsconfig/tsconfig.json +0 -40
  1586. package/vue3/node_modules/@vue/tsconfig/tsconfig.node.json +0 -17
  1587. package/vue3/node_modules/@vue/tsconfig/tsconfig.web.json +0 -19
  1588. package/vue3/node_modules/esbuild/LICENSE.md +0 -21
  1589. package/vue3/node_modules/esbuild/README.md +0 -3
  1590. package/vue3/node_modules/esbuild/bin/esbuild +0 -212
  1591. package/vue3/node_modules/esbuild/install.js +0 -245
  1592. package/vue3/node_modules/esbuild/package.json +0 -42
  1593. package/vue3/node_modules/vite/LICENSE.md +0 -3450
  1594. package/vue3/node_modules/vite/README.md +0 -20
  1595. package/vue3/node_modules/vite/bin/openChrome.applescript +0 -95
  1596. package/vue3/node_modules/vite/bin/vite.js +0 -61
  1597. package/vue3/node_modules/vite/client.d.ts +0 -248
  1598. package/vue3/node_modules/vite/index.cjs +0 -34
  1599. package/vue3/node_modules/vite/package.json +0 -154
  1600. package/vue3/node_modules/vite-plugin-dts/LICENSE +0 -21
  1601. package/vue3/node_modules/vite-plugin-dts/README.md +0 -368
  1602. package/vue3/node_modules/vite-plugin-dts/README.zh-CN.md +0 -368
  1603. package/vue3/node_modules/vite-plugin-dts/node_modules/vue-tsc/LICENSE +0 -21
  1604. package/vue3/node_modules/vite-plugin-dts/node_modules/vue-tsc/README.md +0 -36
  1605. package/vue3/node_modules/vite-plugin-dts/node_modules/vue-tsc/bin/vue-tsc.js +0 -67
  1606. package/vue3/node_modules/vite-plugin-dts/node_modules/vue-tsc/out/index.d.ts +0 -16
  1607. package/vue3/node_modules/vite-plugin-dts/node_modules/vue-tsc/out/index.js +0 -120
  1608. package/vue3/node_modules/vite-plugin-dts/node_modules/vue-tsc/out/shared.d.ts +0 -8
  1609. package/vue3/node_modules/vite-plugin-dts/node_modules/vue-tsc/out/shared.js +0 -5
  1610. package/vue3/node_modules/vite-plugin-dts/node_modules/vue-tsc/package.json +0 -28
  1611. package/vue3/node_modules/vite-plugin-dts/package.json +0 -103
  1612. package/vue3/node_modules/vue/LICENSE +0 -21
  1613. package/vue3/node_modules/vue/README.md +0 -54
  1614. package/vue3/node_modules/vue/compiler-sfc/index.d.mts +0 -1
  1615. package/vue3/node_modules/vue/compiler-sfc/index.d.ts +0 -1
  1616. package/vue3/node_modules/vue/compiler-sfc/index.js +0 -3
  1617. package/vue3/node_modules/vue/compiler-sfc/index.mjs +0 -3
  1618. package/vue3/node_modules/vue/compiler-sfc/package.json +0 -4
  1619. package/vue3/node_modules/vue/compiler-sfc/register-ts.js +0 -5
  1620. package/vue3/node_modules/vue/index.js +0 -7
  1621. package/vue3/node_modules/vue/index.mjs +0 -1
  1622. package/vue3/node_modules/vue/jsx-runtime/index.d.ts +0 -29
  1623. package/vue3/node_modules/vue/jsx-runtime/index.js +0 -15
  1624. package/vue3/node_modules/vue/jsx-runtime/index.mjs +0 -17
  1625. package/vue3/node_modules/vue/jsx-runtime/package.json +0 -5
  1626. package/vue3/node_modules/vue/jsx.d.ts +0 -26
  1627. package/vue3/node_modules/vue/macros-global.d.ts +0 -19
  1628. package/vue3/node_modules/vue/macros.d.ts +0 -112
  1629. package/vue3/node_modules/vue/package.json +0 -103
  1630. package/vue3/node_modules/vue/ref-macros.d.ts +0 -2
  1631. package/vue3/node_modules/vue/server-renderer/index.d.mts +0 -1
  1632. package/vue3/node_modules/vue/server-renderer/index.d.ts +0 -1
  1633. package/vue3/node_modules/vue/server-renderer/index.js +0 -1
  1634. package/vue3/node_modules/vue/server-renderer/index.mjs +0 -1
  1635. package/vue3/node_modules/vue/server-renderer/package.json +0 -4
  1636. package/vue3/node_modules/vue-tsc/LICENSE +0 -21
  1637. package/vue3/node_modules/vue-tsc/README.md +0 -44
  1638. package/vue3/node_modules/vue-tsc/bin/vue-tsc.js +0 -48
  1639. package/vue3/node_modules/vue-tsc/out/proxy.d.ts +0 -4
  1640. package/vue3/node_modules/vue-tsc/out/proxy.js +0 -110
  1641. package/vue3/node_modules/vue-tsc/package.json +0 -26
  1642. package/vue3/src/blocks/BaseText.vue +0 -25
  1643. package/vue3/src/blocks/button/button.vue +0 -71
  1644. package/vue3/src/blocks/button/component-info.ts +0 -35
  1645. package/vue3/src/blocks/columns/columns.vue +0 -220
  1646. package/vue3/src/blocks/columns/component-info.ts +0 -219
  1647. package/vue3/src/blocks/custom-code/component-info.ts +0 -24
  1648. package/vue3/src/blocks/custom-code/custom-code.vue +0 -88
  1649. package/vue3/src/blocks/embed/component-info.ts +0 -38
  1650. package/vue3/src/blocks/embed/embed.vue +0 -71
  1651. package/vue3/src/blocks/embed/helpers.ts +0 -2
  1652. package/vue3/src/blocks/form/component-info.ts +0 -233
  1653. package/vue3/src/blocks/form/form.vue +0 -7
  1654. package/vue3/src/blocks/fragment/component-info.ts +0 -8
  1655. package/vue3/src/blocks/fragment/fragment.vue +0 -19
  1656. package/vue3/src/blocks/helpers.ts +0 -43
  1657. package/vue3/src/blocks/image/component-info.ts +0 -124
  1658. package/vue3/src/blocks/image/image.helpers.ts +0 -47
  1659. package/vue3/src/blocks/image/image.vue +0 -172
  1660. package/vue3/src/blocks/img/component-info.ts +0 -16
  1661. package/vue3/src/blocks/img/img.vue +0 -59
  1662. package/vue3/src/blocks/input/component-info.ts +0 -47
  1663. package/vue3/src/blocks/input/input.vue +0 -52
  1664. package/vue3/src/blocks/raw-text/component-info.ts +0 -11
  1665. package/vue3/src/blocks/raw-text/raw-text.vue +0 -35
  1666. package/vue3/src/blocks/section/component-info.ts +0 -41
  1667. package/vue3/src/blocks/section/section.vue +0 -47
  1668. package/vue3/src/blocks/select/component-info.ts +0 -44
  1669. package/vue3/src/blocks/select/select.vue +0 -46
  1670. package/vue3/src/blocks/submit-button/component-info.ts +0 -27
  1671. package/vue3/src/blocks/submit-button/submit-button.vue +0 -34
  1672. package/vue3/src/blocks/symbol/component-info.ts +0 -35
  1673. package/vue3/src/blocks/symbol/symbol.helpers.ts +0 -47
  1674. package/vue3/src/blocks/symbol/symbol.vue +0 -134
  1675. package/vue3/src/blocks/text/component-info.ts +0 -20
  1676. package/vue3/src/blocks/text/text.vue +0 -23
  1677. package/vue3/src/blocks/textarea/component-info.ts +0 -38
  1678. package/vue3/src/blocks/textarea/textarea.vue +0 -38
  1679. package/vue3/src/blocks/video/component-info.ts +0 -83
  1680. package/vue3/src/blocks/video/video.vue +0 -105
  1681. package/vue3/src/components/block/block.helpers.ts +0 -89
  1682. package/vue3/src/components/block/block.vue +0 -214
  1683. package/vue3/src/components/block/components/block-styles.vue +0 -100
  1684. package/vue3/src/components/block/components/block-wrapper.vue +0 -86
  1685. package/vue3/src/components/block/components/component-ref/component-ref.helpers.ts +0 -52
  1686. package/vue3/src/components/block/components/component-ref/component-ref.vue +0 -74
  1687. package/vue3/src/components/block/components/interactive-element.vue +0 -48
  1688. package/vue3/src/components/block/components/repeated-block.vue +0 -51
  1689. package/vue3/src/components/block/types.ts +0 -6
  1690. package/vue3/src/components/blocks/blocks-wrapper.vue +0 -91
  1691. package/vue3/src/components/blocks/blocks.vue +0 -78
  1692. package/vue3/src/components/content/components/enable-editor.vue +0 -419
  1693. package/vue3/src/components/content/components/styles.helpers.ts +0 -77
  1694. package/vue3/src/components/content/components/styles.vue +0 -51
  1695. package/vue3/src/components/content/content.helpers.ts +0 -42
  1696. package/vue3/src/components/content/content.types.ts +0 -23
  1697. package/vue3/src/components/content/content.vue +0 -169
  1698. package/vue3/src/components/content/index.ts +0 -1
  1699. package/vue3/src/components/content/wrap-component-ref.ts +0 -7
  1700. package/vue3/src/components/content-variants/content-variants.types.ts +0 -20
  1701. package/vue3/src/components/content-variants/content-variants.vue +0 -151
  1702. package/vue3/src/components/content-variants/helpers.ts +0 -207
  1703. package/vue3/src/components/inlined-script.vue +0 -12
  1704. package/vue3/src/components/inlined-styles.vue +0 -12
  1705. package/vue3/src/constants/builder-registered-components.ts +0 -62
  1706. package/vue3/src/constants/device-sizes.ts +0 -59
  1707. package/vue3/src/constants/sdk-version.ts +0 -1
  1708. package/vue3/src/constants/target.ts +0 -4
  1709. package/vue3/src/context/builder.context.ts +0 -16
  1710. package/vue3/src/context/components.context.ts +0 -6
  1711. package/vue3/src/context/types.ts +0 -36
  1712. package/vue3/src/functions/apply-patch-with-mutation.ts +0 -61
  1713. package/vue3/src/functions/camel-to-kebab-case.ts +0 -1
  1714. package/vue3/src/functions/deopt.ts +0 -6
  1715. package/vue3/src/functions/evaluate/browser-runtime/browser.ts +0 -41
  1716. package/vue3/src/functions/evaluate/browser-runtime/index.ts +0 -1
  1717. package/vue3/src/functions/evaluate/edge-runtime/acorn-interpreter.ts +0 -2891
  1718. package/vue3/src/functions/evaluate/edge-runtime/edge-runtime.ts +0 -96
  1719. package/vue3/src/functions/evaluate/edge-runtime/index.ts +0 -1
  1720. package/vue3/src/functions/evaluate/evaluate.ts +0 -66
  1721. package/vue3/src/functions/evaluate/helpers.ts +0 -32
  1722. package/vue3/src/functions/evaluate/index.ts +0 -1
  1723. package/vue3/src/functions/evaluate/node-runtime/index.ts +0 -1
  1724. package/vue3/src/functions/evaluate/placeholder-runtime.ts +0 -4
  1725. package/vue3/src/functions/event-handler-name.ts +0 -1
  1726. package/vue3/src/functions/extract-text-styles.ts +0 -24
  1727. package/vue3/src/functions/fast-clone.ts +0 -4
  1728. package/vue3/src/functions/fetch-builder-props.ts +0 -62
  1729. package/vue3/src/functions/get-block-actions-handler.ts +0 -16
  1730. package/vue3/src/functions/get-block-actions.ts +0 -36
  1731. package/vue3/src/functions/get-block-component-options.ts +0 -11
  1732. package/vue3/src/functions/get-block-properties.ts +0 -82
  1733. package/vue3/src/functions/get-builder-search-params/index.ts +0 -40
  1734. package/vue3/src/functions/get-content/generate-content-url.ts +0 -45
  1735. package/vue3/src/functions/get-content/index.ts +0 -110
  1736. package/vue3/src/functions/get-content/types.ts +0 -62
  1737. package/vue3/src/functions/get-fetch.ts +0 -11
  1738. package/vue3/src/functions/get-global-this.ts +0 -16
  1739. package/vue3/src/functions/get-processed-block.ts +0 -69
  1740. package/vue3/src/functions/get-react-native-block-styles.ts +0 -27
  1741. package/vue3/src/functions/is-browser.ts +0 -3
  1742. package/vue3/src/functions/is-edge-runtime.ts +0 -9
  1743. package/vue3/src/functions/is-editing.ts +0 -5
  1744. package/vue3/src/functions/is-iframe.ts +0 -4
  1745. package/vue3/src/functions/is-previewing.ts +0 -11
  1746. package/vue3/src/functions/on-change.ts +0 -29
  1747. package/vue3/src/functions/register-component.ts +0 -48
  1748. package/vue3/src/functions/register.ts +0 -44
  1749. package/vue3/src/functions/sanitize-react-native-block-styles.ts +0 -58
  1750. package/vue3/src/functions/set-editor-settings.ts +0 -15
  1751. package/vue3/src/functions/set.ts +0 -14
  1752. package/vue3/src/functions/track/helpers.ts +0 -51
  1753. package/vue3/src/functions/track/index.ts +0 -131
  1754. package/vue3/src/functions/track/interaction.ts +0 -63
  1755. package/vue3/src/functions/transform-block-properties.ts +0 -18
  1756. package/vue3/src/functions/transform-block.ts +0 -6
  1757. package/vue3/src/helpers/ab-tests.ts +0 -166
  1758. package/vue3/src/helpers/canTrack.ts +0 -2
  1759. package/vue3/src/helpers/cookie.ts +0 -81
  1760. package/vue3/src/helpers/css.ts +0 -33
  1761. package/vue3/src/helpers/flatten.ts +0 -19
  1762. package/vue3/src/helpers/localStorage.ts +0 -36
  1763. package/vue3/src/helpers/logger.ts +0 -7
  1764. package/vue3/src/helpers/nullable.ts +0 -2
  1765. package/vue3/src/helpers/preview-lru-cache/get.ts +0 -4
  1766. package/vue3/src/helpers/preview-lru-cache/init.ts +0 -7
  1767. package/vue3/src/helpers/preview-lru-cache/set.ts +0 -12
  1768. package/vue3/src/helpers/sessionId.ts +0 -37
  1769. package/vue3/src/helpers/time.ts +0 -2
  1770. package/vue3/src/helpers/url.ts +0 -15
  1771. package/vue3/src/helpers/uuid.ts +0 -17
  1772. package/vue3/src/helpers/visitorId.ts +0 -37
  1773. package/vue3/src/index-helpers/blocks-exports.ts +0 -20
  1774. package/vue3/src/index-helpers/top-of-file.ts +0 -4
  1775. package/vue3/src/index.ts +0 -8
  1776. package/vue3/src/scripts/init-editing.ts +0 -113
  1777. package/vue3/src/server-index.ts +0 -15
  1778. package/vue3/tsconfig.config.json +0 -8
  1779. package/vue3/tsconfig.json +0 -17
  1780. package/vue3/vite.config.js +0 -31
  1781. /package/vue2/{src/helpers/preview-lru-cache/helpers.ts → lib/browser/helpers/preview-lru-cache/helpers.d.ts} +0 -0
  1782. /package/vue2/{src/helpers/preview-lru-cache/types.ts → lib/browser/helpers/preview-lru-cache/types.d.ts} +0 -0
  1783. /package/{vue3/src/helpers/preview-lru-cache/helpers.ts → vue2/lib/edge/helpers/preview-lru-cache/helpers.d.ts} +0 -0
  1784. /package/{vue3/src/helpers/preview-lru-cache/types.ts → vue2/lib/edge/helpers/preview-lru-cache/types.d.ts} +0 -0
@@ -1,2236 +0,0 @@
1
- /**
2
- * `Buffer` objects are used to represent a fixed-length sequence of bytes. Many
3
- * Node.js APIs support `Buffer`s.
4
- *
5
- * The `Buffer` class is a subclass of JavaScript's [`Uint8Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array) class and
6
- * extends it with methods that cover additional use cases. Node.js APIs accept
7
- * plain [`Uint8Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array) s wherever `Buffer`s are supported as well.
8
- *
9
- * While the `Buffer` class is available within the global scope, it is still
10
- * recommended to explicitly reference it via an import or require statement.
11
- *
12
- * ```js
13
- * import { Buffer } from 'buffer';
14
- *
15
- * // Creates a zero-filled Buffer of length 10.
16
- * const buf1 = Buffer.alloc(10);
17
- *
18
- * // Creates a Buffer of length 10,
19
- * // filled with bytes which all have the value `1`.
20
- * const buf2 = Buffer.alloc(10, 1);
21
- *
22
- * // Creates an uninitialized buffer of length 10.
23
- * // This is faster than calling Buffer.alloc() but the returned
24
- * // Buffer instance might contain old data that needs to be
25
- * // overwritten using fill(), write(), or other functions that fill the Buffer's
26
- * // contents.
27
- * const buf3 = Buffer.allocUnsafe(10);
28
- *
29
- * // Creates a Buffer containing the bytes [1, 2, 3].
30
- * const buf4 = Buffer.from([1, 2, 3]);
31
- *
32
- * // Creates a Buffer containing the bytes [1, 1, 1, 1] – the entries
33
- * // are all truncated using `(value & 255)` to fit into the range 0–255.
34
- * const buf5 = Buffer.from([257, 257.5, -255, '1']);
35
- *
36
- * // Creates a Buffer containing the UTF-8-encoded bytes for the string 'tést':
37
- * // [0x74, 0xc3, 0xa9, 0x73, 0x74] (in hexadecimal notation)
38
- * // [116, 195, 169, 115, 116] (in decimal notation)
39
- * const buf6 = Buffer.from('tést');
40
- *
41
- * // Creates a Buffer containing the Latin-1 bytes [0x74, 0xe9, 0x73, 0x74].
42
- * const buf7 = Buffer.from('tést', 'latin1');
43
- * ```
44
- * @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/buffer.js)
45
- */
46
- declare module 'buffer' {
47
- import { BinaryLike } from 'node:crypto';
48
- import { ReadableStream as WebReadableStream } from 'node:stream/web';
49
- export const INSPECT_MAX_BYTES: number;
50
- export const kMaxLength: number;
51
- export const kStringMaxLength: number;
52
- export const constants: {
53
- MAX_LENGTH: number;
54
- MAX_STRING_LENGTH: number;
55
- };
56
- export type TranscodeEncoding = 'ascii' | 'utf8' | 'utf16le' | 'ucs2' | 'latin1' | 'binary';
57
- /**
58
- * Re-encodes the given `Buffer` or `Uint8Array` instance from one character
59
- * encoding to another. Returns a new `Buffer` instance.
60
- *
61
- * Throws if the `fromEnc` or `toEnc` specify invalid character encodings or if
62
- * conversion from `fromEnc` to `toEnc` is not permitted.
63
- *
64
- * Encodings supported by `buffer.transcode()` are: `'ascii'`, `'utf8'`,`'utf16le'`, `'ucs2'`, `'latin1'`, and `'binary'`.
65
- *
66
- * The transcoding process will use substitution characters if a given byte
67
- * sequence cannot be adequately represented in the target encoding. For instance:
68
- *
69
- * ```js
70
- * import { Buffer, transcode } from 'buffer';
71
- *
72
- * const newBuf = transcode(Buffer.from('€'), 'utf8', 'ascii');
73
- * console.log(newBuf.toString('ascii'));
74
- * // Prints: '?'
75
- * ```
76
- *
77
- * Because the Euro (`€`) sign is not representable in US-ASCII, it is replaced
78
- * with `?` in the transcoded `Buffer`.
79
- * @since v7.1.0
80
- * @param source A `Buffer` or `Uint8Array` instance.
81
- * @param fromEnc The current encoding.
82
- * @param toEnc To target encoding.
83
- */
84
- export function transcode(source: Uint8Array, fromEnc: TranscodeEncoding, toEnc: TranscodeEncoding): Buffer;
85
- export const SlowBuffer: {
86
- /** @deprecated since v6.0.0, use `Buffer.allocUnsafeSlow()` */
87
- new (size: number): Buffer;
88
- prototype: Buffer;
89
- };
90
- /**
91
- * Resolves a `'blob:nodedata:...'` an associated `Blob` object registered using
92
- * a prior call to `URL.createObjectURL()`.
93
- * @since v16.7.0
94
- * @experimental
95
- * @param id A `'blob:nodedata:...` URL string returned by a prior call to `URL.createObjectURL()`.
96
- */
97
- export function resolveObjectURL(id: string): Blob | undefined;
98
- export { Buffer };
99
- /**
100
- * @experimental
101
- */
102
- export interface BlobOptions {
103
- /**
104
- * @default 'utf8'
105
- */
106
- encoding?: BufferEncoding | undefined;
107
- /**
108
- * The Blob content-type. The intent is for `type` to convey
109
- * the MIME media type of the data, however no validation of the type format
110
- * is performed.
111
- */
112
- type?: string | undefined;
113
- }
114
- /**
115
- * A [`Blob`](https://developer.mozilla.org/en-US/docs/Web/API/Blob) encapsulates immutable, raw data that can be safely shared across
116
- * multiple worker threads.
117
- * @since v15.7.0
118
- * @experimental
119
- */
120
- export class Blob {
121
- /**
122
- * The total size of the `Blob` in bytes.
123
- * @since v15.7.0
124
- */
125
- readonly size: number;
126
- /**
127
- * The content-type of the `Blob`.
128
- * @since v15.7.0
129
- */
130
- readonly type: string;
131
- /**
132
- * Creates a new `Blob` object containing a concatenation of the given sources.
133
- *
134
- * {ArrayBuffer}, {TypedArray}, {DataView}, and {Buffer} sources are copied into
135
- * the 'Blob' and can therefore be safely modified after the 'Blob' is created.
136
- *
137
- * String sources are also copied into the `Blob`.
138
- */
139
- constructor(sources: Array<BinaryLike | Blob>, options?: BlobOptions);
140
- /**
141
- * Returns a promise that fulfills with an [ArrayBuffer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer) containing a copy of
142
- * the `Blob` data.
143
- * @since v15.7.0
144
- */
145
- arrayBuffer(): Promise<ArrayBuffer>;
146
- /**
147
- * Creates and returns a new `Blob` containing a subset of this `Blob` objects
148
- * data. The original `Blob` is not altered.
149
- * @since v15.7.0
150
- * @param start The starting index.
151
- * @param end The ending index.
152
- * @param type The content-type for the new `Blob`
153
- */
154
- slice(start?: number, end?: number, type?: string): Blob;
155
- /**
156
- * Returns a promise that fulfills with the contents of the `Blob` decoded as a
157
- * UTF-8 string.
158
- * @since v15.7.0
159
- */
160
- text(): Promise<string>;
161
- /**
162
- * Returns a new (WHATWG) `ReadableStream` that allows the content of the `Blob` to be read.
163
- * @since v16.7.0
164
- */
165
- stream(): WebReadableStream;
166
- }
167
- export import atob = globalThis.atob;
168
- export import btoa = globalThis.btoa;
169
- global {
170
- namespace NodeJS {
171
- export { BufferEncoding };
172
- }
173
- // Buffer class
174
- type BufferEncoding = 'ascii' | 'utf8' | 'utf-8' | 'utf16le' | 'ucs2' | 'ucs-2' | 'base64' | 'base64url' | 'latin1' | 'binary' | 'hex';
175
- type WithImplicitCoercion<T> =
176
- | T
177
- | {
178
- valueOf(): T;
179
- };
180
- /**
181
- * Raw data is stored in instances of the Buffer class.
182
- * A Buffer is similar to an array of integers but corresponds to a raw memory allocation outside the V8 heap. A Buffer cannot be resized.
183
- * Valid string encodings: 'ascii'|'utf8'|'utf16le'|'ucs2'(alias of 'utf16le')|'base64'|'base64url'|'binary'(deprecated)|'hex'
184
- */
185
- interface BufferConstructor {
186
- /**
187
- * Allocates a new buffer containing the given {str}.
188
- *
189
- * @param str String to store in buffer.
190
- * @param encoding encoding to use, optional. Default is 'utf8'
191
- * @deprecated since v10.0.0 - Use `Buffer.from(string[, encoding])` instead.
192
- */
193
- new (str: string, encoding?: BufferEncoding): Buffer;
194
- /**
195
- * Allocates a new buffer of {size} octets.
196
- *
197
- * @param size count of octets to allocate.
198
- * @deprecated since v10.0.0 - Use `Buffer.alloc()` instead (also see `Buffer.allocUnsafe()`).
199
- */
200
- new (size: number): Buffer;
201
- /**
202
- * Allocates a new buffer containing the given {array} of octets.
203
- *
204
- * @param array The octets to store.
205
- * @deprecated since v10.0.0 - Use `Buffer.from(array)` instead.
206
- */
207
- new (array: Uint8Array): Buffer;
208
- /**
209
- * Produces a Buffer backed by the same allocated memory as
210
- * the given {ArrayBuffer}/{SharedArrayBuffer}.
211
- *
212
- *
213
- * @param arrayBuffer The ArrayBuffer with which to share memory.
214
- * @deprecated since v10.0.0 - Use `Buffer.from(arrayBuffer[, byteOffset[, length]])` instead.
215
- */
216
- new (arrayBuffer: ArrayBuffer | SharedArrayBuffer): Buffer;
217
- /**
218
- * Allocates a new buffer containing the given {array} of octets.
219
- *
220
- * @param array The octets to store.
221
- * @deprecated since v10.0.0 - Use `Buffer.from(array)` instead.
222
- */
223
- new (array: ReadonlyArray<any>): Buffer;
224
- /**
225
- * Copies the passed {buffer} data onto a new {Buffer} instance.
226
- *
227
- * @param buffer The buffer to copy.
228
- * @deprecated since v10.0.0 - Use `Buffer.from(buffer)` instead.
229
- */
230
- new (buffer: Buffer): Buffer;
231
- /**
232
- * Allocates a new `Buffer` using an `array` of bytes in the range `0` – `255`.
233
- * Array entries outside that range will be truncated to fit into it.
234
- *
235
- * ```js
236
- * import { Buffer } from 'buffer';
237
- *
238
- * // Creates a new Buffer containing the UTF-8 bytes of the string 'buffer'.
239
- * const buf = Buffer.from([0x62, 0x75, 0x66, 0x66, 0x65, 0x72]);
240
- * ```
241
- *
242
- * A `TypeError` will be thrown if `array` is not an `Array` or another type
243
- * appropriate for `Buffer.from()` variants.
244
- *
245
- * `Buffer.from(array)` and `Buffer.from(string)` may also use the internal`Buffer` pool like `Buffer.allocUnsafe()` does.
246
- * @since v5.10.0
247
- */
248
- from(arrayBuffer: WithImplicitCoercion<ArrayBuffer | SharedArrayBuffer>, byteOffset?: number, length?: number): Buffer;
249
- /**
250
- * Creates a new Buffer using the passed {data}
251
- * @param data data to create a new Buffer
252
- */
253
- from(data: Uint8Array | ReadonlyArray<number>): Buffer;
254
- from(data: WithImplicitCoercion<Uint8Array | ReadonlyArray<number> | string>): Buffer;
255
- /**
256
- * Creates a new Buffer containing the given JavaScript string {str}.
257
- * If provided, the {encoding} parameter identifies the character encoding.
258
- * If not provided, {encoding} defaults to 'utf8'.
259
- */
260
- from(
261
- str:
262
- | WithImplicitCoercion<string>
263
- | {
264
- [Symbol.toPrimitive](hint: 'string'): string;
265
- },
266
- encoding?: BufferEncoding
267
- ): Buffer;
268
- /**
269
- * Creates a new Buffer using the passed {data}
270
- * @param values to create a new Buffer
271
- */
272
- of(...items: number[]): Buffer;
273
- /**
274
- * Returns `true` if `obj` is a `Buffer`, `false` otherwise.
275
- *
276
- * ```js
277
- * import { Buffer } from 'buffer';
278
- *
279
- * Buffer.isBuffer(Buffer.alloc(10)); // true
280
- * Buffer.isBuffer(Buffer.from('foo')); // true
281
- * Buffer.isBuffer('a string'); // false
282
- * Buffer.isBuffer([]); // false
283
- * Buffer.isBuffer(new Uint8Array(1024)); // false
284
- * ```
285
- * @since v0.1.101
286
- */
287
- isBuffer(obj: any): obj is Buffer;
288
- /**
289
- * Returns `true` if `encoding` is the name of a supported character encoding,
290
- * or `false` otherwise.
291
- *
292
- * ```js
293
- * import { Buffer } from 'buffer';
294
- *
295
- * console.log(Buffer.isEncoding('utf8'));
296
- * // Prints: true
297
- *
298
- * console.log(Buffer.isEncoding('hex'));
299
- * // Prints: true
300
- *
301
- * console.log(Buffer.isEncoding('utf/8'));
302
- * // Prints: false
303
- *
304
- * console.log(Buffer.isEncoding(''));
305
- * // Prints: false
306
- * ```
307
- * @since v0.9.1
308
- * @param encoding A character encoding name to check.
309
- */
310
- isEncoding(encoding: string): encoding is BufferEncoding;
311
- /**
312
- * Returns the byte length of a string when encoded using `encoding`.
313
- * This is not the same as [`String.prototype.length`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/length), which does not account
314
- * for the encoding that is used to convert the string into bytes.
315
- *
316
- * For `'base64'`, `'base64url'`, and `'hex'`, this function assumes valid input.
317
- * For strings that contain non-base64/hex-encoded data (e.g. whitespace), the
318
- * return value might be greater than the length of a `Buffer` created from the
319
- * string.
320
- *
321
- * ```js
322
- * import { Buffer } from 'buffer';
323
- *
324
- * const str = '\u00bd + \u00bc = \u00be';
325
- *
326
- * console.log(`${str}: ${str.length} characters, ` +
327
- * `${Buffer.byteLength(str, 'utf8')} bytes`);
328
- * // Prints: ½ + ¼ = ¾: 9 characters, 12 bytes
329
- * ```
330
- *
331
- * When `string` is a
332
- * `Buffer`/[`DataView`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView)/[`TypedArray`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/-
333
- * Reference/Global_Objects/TypedArray)/[`ArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer)/[`SharedArrayBuffer`](https://develop-
334
- * er.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer), the byte length as reported by `.byteLength`is returned.
335
- * @since v0.1.90
336
- * @param string A value to calculate the length of.
337
- * @param [encoding='utf8'] If `string` is a string, this is its encoding.
338
- * @return The number of bytes contained within `string`.
339
- */
340
- byteLength(string: string | NodeJS.ArrayBufferView | ArrayBuffer | SharedArrayBuffer, encoding?: BufferEncoding): number;
341
- /**
342
- * Returns a new `Buffer` which is the result of concatenating all the `Buffer`instances in the `list` together.
343
- *
344
- * If the list has no items, or if the `totalLength` is 0, then a new zero-length`Buffer` is returned.
345
- *
346
- * If `totalLength` is not provided, it is calculated from the `Buffer` instances
347
- * in `list` by adding their lengths.
348
- *
349
- * If `totalLength` is provided, it is coerced to an unsigned integer. If the
350
- * combined length of the `Buffer`s in `list` exceeds `totalLength`, the result is
351
- * truncated to `totalLength`.
352
- *
353
- * ```js
354
- * import { Buffer } from 'buffer';
355
- *
356
- * // Create a single `Buffer` from a list of three `Buffer` instances.
357
- *
358
- * const buf1 = Buffer.alloc(10);
359
- * const buf2 = Buffer.alloc(14);
360
- * const buf3 = Buffer.alloc(18);
361
- * const totalLength = buf1.length + buf2.length + buf3.length;
362
- *
363
- * console.log(totalLength);
364
- * // Prints: 42
365
- *
366
- * const bufA = Buffer.concat([buf1, buf2, buf3], totalLength);
367
- *
368
- * console.log(bufA);
369
- * // Prints: <Buffer 00 00 00 00 ...>
370
- * console.log(bufA.length);
371
- * // Prints: 42
372
- * ```
373
- *
374
- * `Buffer.concat()` may also use the internal `Buffer` pool like `Buffer.allocUnsafe()` does.
375
- * @since v0.7.11
376
- * @param list List of `Buffer` or {@link Uint8Array} instances to concatenate.
377
- * @param totalLength Total length of the `Buffer` instances in `list` when concatenated.
378
- */
379
- concat(list: ReadonlyArray<Uint8Array>, totalLength?: number): Buffer;
380
- /**
381
- * Compares `buf1` to `buf2`, typically for the purpose of sorting arrays of`Buffer` instances. This is equivalent to calling `buf1.compare(buf2)`.
382
- *
383
- * ```js
384
- * import { Buffer } from 'buffer';
385
- *
386
- * const buf1 = Buffer.from('1234');
387
- * const buf2 = Buffer.from('0123');
388
- * const arr = [buf1, buf2];
389
- *
390
- * console.log(arr.sort(Buffer.compare));
391
- * // Prints: [ <Buffer 30 31 32 33>, <Buffer 31 32 33 34> ]
392
- * // (This result is equal to: [buf2, buf1].)
393
- * ```
394
- * @since v0.11.13
395
- * @return Either `-1`, `0`, or `1`, depending on the result of the comparison. See `compare` for details.
396
- */
397
- compare(buf1: Uint8Array, buf2: Uint8Array): number;
398
- /**
399
- * Allocates a new `Buffer` of `size` bytes. If `fill` is `undefined`, the`Buffer` will be zero-filled.
400
- *
401
- * ```js
402
- * import { Buffer } from 'buffer';
403
- *
404
- * const buf = Buffer.alloc(5);
405
- *
406
- * console.log(buf);
407
- * // Prints: <Buffer 00 00 00 00 00>
408
- * ```
409
- *
410
- * If `size` is larger than {@link constants.MAX_LENGTH} or smaller than 0, `ERR_INVALID_ARG_VALUE` is thrown.
411
- *
412
- * If `fill` is specified, the allocated `Buffer` will be initialized by calling `buf.fill(fill)`.
413
- *
414
- * ```js
415
- * import { Buffer } from 'buffer';
416
- *
417
- * const buf = Buffer.alloc(5, 'a');
418
- *
419
- * console.log(buf);
420
- * // Prints: <Buffer 61 61 61 61 61>
421
- * ```
422
- *
423
- * If both `fill` and `encoding` are specified, the allocated `Buffer` will be
424
- * initialized by calling `buf.fill(fill, encoding)`.
425
- *
426
- * ```js
427
- * import { Buffer } from 'buffer';
428
- *
429
- * const buf = Buffer.alloc(11, 'aGVsbG8gd29ybGQ=', 'base64');
430
- *
431
- * console.log(buf);
432
- * // Prints: <Buffer 68 65 6c 6c 6f 20 77 6f 72 6c 64>
433
- * ```
434
- *
435
- * Calling `Buffer.alloc()` can be measurably slower than the alternative `Buffer.allocUnsafe()` but ensures that the newly created `Buffer` instance
436
- * contents will never contain sensitive data from previous allocations, including
437
- * data that might not have been allocated for `Buffer`s.
438
- *
439
- * A `TypeError` will be thrown if `size` is not a number.
440
- * @since v5.10.0
441
- * @param size The desired length of the new `Buffer`.
442
- * @param [fill=0] A value to pre-fill the new `Buffer` with.
443
- * @param [encoding='utf8'] If `fill` is a string, this is its encoding.
444
- */
445
- alloc(size: number, fill?: string | Buffer | number, encoding?: BufferEncoding): Buffer;
446
- /**
447
- * Allocates a new `Buffer` of `size` bytes. If `size` is larger than {@link constants.MAX_LENGTH} or smaller than 0, `ERR_INVALID_ARG_VALUE` is thrown.
448
- *
449
- * The underlying memory for `Buffer` instances created in this way is _not_
450
- * _initialized_. The contents of the newly created `Buffer` are unknown and_may contain sensitive data_. Use `Buffer.alloc()` instead to initialize`Buffer` instances with zeroes.
451
- *
452
- * ```js
453
- * import { Buffer } from 'buffer';
454
- *
455
- * const buf = Buffer.allocUnsafe(10);
456
- *
457
- * console.log(buf);
458
- * // Prints (contents may vary): <Buffer a0 8b 28 3f 01 00 00 00 50 32>
459
- *
460
- * buf.fill(0);
461
- *
462
- * console.log(buf);
463
- * // Prints: <Buffer 00 00 00 00 00 00 00 00 00 00>
464
- * ```
465
- *
466
- * A `TypeError` will be thrown if `size` is not a number.
467
- *
468
- * The `Buffer` module pre-allocates an internal `Buffer` instance of
469
- * size `Buffer.poolSize` that is used as a pool for the fast allocation of new`Buffer` instances created using `Buffer.allocUnsafe()`,`Buffer.from(array)`, `Buffer.concat()`, and the
470
- * deprecated`new Buffer(size)` constructor only when `size` is less than or equal
471
- * to `Buffer.poolSize >> 1` (floor of `Buffer.poolSize` divided by two).
472
- *
473
- * Use of this pre-allocated internal memory pool is a key difference between
474
- * calling `Buffer.alloc(size, fill)` vs. `Buffer.allocUnsafe(size).fill(fill)`.
475
- * Specifically, `Buffer.alloc(size, fill)` will _never_ use the internal `Buffer`pool, while `Buffer.allocUnsafe(size).fill(fill)`_will_ use the internal`Buffer` pool if `size` is less
476
- * than or equal to half `Buffer.poolSize`. The
477
- * difference is subtle but can be important when an application requires the
478
- * additional performance that `Buffer.allocUnsafe()` provides.
479
- * @since v5.10.0
480
- * @param size The desired length of the new `Buffer`.
481
- */
482
- allocUnsafe(size: number): Buffer;
483
- /**
484
- * Allocates a new `Buffer` of `size` bytes. If `size` is larger than {@link constants.MAX_LENGTH} or smaller than 0, `ERR_INVALID_ARG_VALUE` is thrown. A zero-length `Buffer` is created
485
- * if `size` is 0.
486
- *
487
- * The underlying memory for `Buffer` instances created in this way is _not_
488
- * _initialized_. The contents of the newly created `Buffer` are unknown and_may contain sensitive data_. Use `buf.fill(0)` to initialize
489
- * such `Buffer` instances with zeroes.
490
- *
491
- * When using `Buffer.allocUnsafe()` to allocate new `Buffer` instances,
492
- * allocations under 4 KB are sliced from a single pre-allocated `Buffer`. This
493
- * allows applications to avoid the garbage collection overhead of creating many
494
- * individually allocated `Buffer` instances. This approach improves both
495
- * performance and memory usage by eliminating the need to track and clean up as
496
- * many individual `ArrayBuffer` objects.
497
- *
498
- * However, in the case where a developer may need to retain a small chunk of
499
- * memory from a pool for an indeterminate amount of time, it may be appropriate
500
- * to create an un-pooled `Buffer` instance using `Buffer.allocUnsafeSlow()` and
501
- * then copying out the relevant bits.
502
- *
503
- * ```js
504
- * import { Buffer } from 'buffer';
505
- *
506
- * // Need to keep around a few small chunks of memory.
507
- * const store = [];
508
- *
509
- * socket.on('readable', () => {
510
- * let data;
511
- * while (null !== (data = readable.read())) {
512
- * // Allocate for retained data.
513
- * const sb = Buffer.allocUnsafeSlow(10);
514
- *
515
- * // Copy the data into the new allocation.
516
- * data.copy(sb, 0, 0, 10);
517
- *
518
- * store.push(sb);
519
- * }
520
- * });
521
- * ```
522
- *
523
- * A `TypeError` will be thrown if `size` is not a number.
524
- * @since v5.12.0
525
- * @param size The desired length of the new `Buffer`.
526
- */
527
- allocUnsafeSlow(size: number): Buffer;
528
- /**
529
- * This is the size (in bytes) of pre-allocated internal `Buffer` instances used
530
- * for pooling. This value may be modified.
531
- * @since v0.11.3
532
- */
533
- poolSize: number;
534
- }
535
- interface Buffer extends Uint8Array {
536
- /**
537
- * Writes `string` to `buf` at `offset` according to the character encoding in`encoding`. The `length` parameter is the number of bytes to write. If `buf` did
538
- * not contain enough space to fit the entire string, only part of `string` will be
539
- * written. However, partially encoded characters will not be written.
540
- *
541
- * ```js
542
- * import { Buffer } from 'buffer';
543
- *
544
- * const buf = Buffer.alloc(256);
545
- *
546
- * const len = buf.write('\u00bd + \u00bc = \u00be', 0);
547
- *
548
- * console.log(`${len} bytes: ${buf.toString('utf8', 0, len)}`);
549
- * // Prints: 12 bytes: ½ + ¼ = ¾
550
- *
551
- * const buffer = Buffer.alloc(10);
552
- *
553
- * const length = buffer.write('abcd', 8);
554
- *
555
- * console.log(`${length} bytes: ${buffer.toString('utf8', 8, 10)}`);
556
- * // Prints: 2 bytes : ab
557
- * ```
558
- * @since v0.1.90
559
- * @param string String to write to `buf`.
560
- * @param [offset=0] Number of bytes to skip before starting to write `string`.
561
- * @param [length=buf.length - offset] Maximum number of bytes to write (written bytes will not exceed `buf.length - offset`).
562
- * @param [encoding='utf8'] The character encoding of `string`.
563
- * @return Number of bytes written.
564
- */
565
- write(string: string, encoding?: BufferEncoding): number;
566
- write(string: string, offset: number, encoding?: BufferEncoding): number;
567
- write(string: string, offset: number, length: number, encoding?: BufferEncoding): number;
568
- /**
569
- * Decodes `buf` to a string according to the specified character encoding in`encoding`. `start` and `end` may be passed to decode only a subset of `buf`.
570
- *
571
- * If `encoding` is `'utf8'` and a byte sequence in the input is not valid UTF-8,
572
- * then each invalid byte is replaced with the replacement character `U+FFFD`.
573
- *
574
- * The maximum length of a string instance (in UTF-16 code units) is available
575
- * as {@link constants.MAX_STRING_LENGTH}.
576
- *
577
- * ```js
578
- * import { Buffer } from 'buffer';
579
- *
580
- * const buf1 = Buffer.allocUnsafe(26);
581
- *
582
- * for (let i = 0; i < 26; i++) {
583
- * // 97 is the decimal ASCII value for 'a'.
584
- * buf1[i] = i + 97;
585
- * }
586
- *
587
- * console.log(buf1.toString('utf8'));
588
- * // Prints: abcdefghijklmnopqrstuvwxyz
589
- * console.log(buf1.toString('utf8', 0, 5));
590
- * // Prints: abcde
591
- *
592
- * const buf2 = Buffer.from('tést');
593
- *
594
- * console.log(buf2.toString('hex'));
595
- * // Prints: 74c3a97374
596
- * console.log(buf2.toString('utf8', 0, 3));
597
- * // Prints: té
598
- * console.log(buf2.toString(undefined, 0, 3));
599
- * // Prints: té
600
- * ```
601
- * @since v0.1.90
602
- * @param [encoding='utf8'] The character encoding to use.
603
- * @param [start=0] The byte offset to start decoding at.
604
- * @param [end=buf.length] The byte offset to stop decoding at (not inclusive).
605
- */
606
- toString(encoding?: BufferEncoding, start?: number, end?: number): string;
607
- /**
608
- * Returns a JSON representation of `buf`. [`JSON.stringify()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify) implicitly calls
609
- * this function when stringifying a `Buffer` instance.
610
- *
611
- * `Buffer.from()` accepts objects in the format returned from this method.
612
- * In particular, `Buffer.from(buf.toJSON())` works like `Buffer.from(buf)`.
613
- *
614
- * ```js
615
- * import { Buffer } from 'buffer';
616
- *
617
- * const buf = Buffer.from([0x1, 0x2, 0x3, 0x4, 0x5]);
618
- * const json = JSON.stringify(buf);
619
- *
620
- * console.log(json);
621
- * // Prints: {"type":"Buffer","data":[1,2,3,4,5]}
622
- *
623
- * const copy = JSON.parse(json, (key, value) => {
624
- * return value &#x26;&#x26; value.type === 'Buffer' ?
625
- * Buffer.from(value) :
626
- * value;
627
- * });
628
- *
629
- * console.log(copy);
630
- * // Prints: <Buffer 01 02 03 04 05>
631
- * ```
632
- * @since v0.9.2
633
- */
634
- toJSON(): {
635
- type: 'Buffer';
636
- data: number[];
637
- };
638
- /**
639
- * Returns `true` if both `buf` and `otherBuffer` have exactly the same bytes,`false` otherwise. Equivalent to `buf.compare(otherBuffer) === 0`.
640
- *
641
- * ```js
642
- * import { Buffer } from 'buffer';
643
- *
644
- * const buf1 = Buffer.from('ABC');
645
- * const buf2 = Buffer.from('414243', 'hex');
646
- * const buf3 = Buffer.from('ABCD');
647
- *
648
- * console.log(buf1.equals(buf2));
649
- * // Prints: true
650
- * console.log(buf1.equals(buf3));
651
- * // Prints: false
652
- * ```
653
- * @since v0.11.13
654
- * @param otherBuffer A `Buffer` or {@link Uint8Array} with which to compare `buf`.
655
- */
656
- equals(otherBuffer: Uint8Array): boolean;
657
- /**
658
- * Compares `buf` with `target` and returns a number indicating whether `buf`comes before, after, or is the same as `target` in sort order.
659
- * Comparison is based on the actual sequence of bytes in each `Buffer`.
660
- *
661
- * * `0` is returned if `target` is the same as `buf`
662
- * * `1` is returned if `target` should come _before_`buf` when sorted.
663
- * * `-1` is returned if `target` should come _after_`buf` when sorted.
664
- *
665
- * ```js
666
- * import { Buffer } from 'buffer';
667
- *
668
- * const buf1 = Buffer.from('ABC');
669
- * const buf2 = Buffer.from('BCD');
670
- * const buf3 = Buffer.from('ABCD');
671
- *
672
- * console.log(buf1.compare(buf1));
673
- * // Prints: 0
674
- * console.log(buf1.compare(buf2));
675
- * // Prints: -1
676
- * console.log(buf1.compare(buf3));
677
- * // Prints: -1
678
- * console.log(buf2.compare(buf1));
679
- * // Prints: 1
680
- * console.log(buf2.compare(buf3));
681
- * // Prints: 1
682
- * console.log([buf1, buf2, buf3].sort(Buffer.compare));
683
- * // Prints: [ <Buffer 41 42 43>, <Buffer 41 42 43 44>, <Buffer 42 43 44> ]
684
- * // (This result is equal to: [buf1, buf3, buf2].)
685
- * ```
686
- *
687
- * The optional `targetStart`, `targetEnd`, `sourceStart`, and `sourceEnd`arguments can be used to limit the comparison to specific ranges within `target`and `buf` respectively.
688
- *
689
- * ```js
690
- * import { Buffer } from 'buffer';
691
- *
692
- * const buf1 = Buffer.from([1, 2, 3, 4, 5, 6, 7, 8, 9]);
693
- * const buf2 = Buffer.from([5, 6, 7, 8, 9, 1, 2, 3, 4]);
694
- *
695
- * console.log(buf1.compare(buf2, 5, 9, 0, 4));
696
- * // Prints: 0
697
- * console.log(buf1.compare(buf2, 0, 6, 4));
698
- * // Prints: -1
699
- * console.log(buf1.compare(buf2, 5, 6, 5));
700
- * // Prints: 1
701
- * ```
702
- *
703
- * `ERR_OUT_OF_RANGE` is thrown if `targetStart < 0`, `sourceStart < 0`,`targetEnd > target.byteLength`, or `sourceEnd > source.byteLength`.
704
- * @since v0.11.13
705
- * @param target A `Buffer` or {@link Uint8Array} with which to compare `buf`.
706
- * @param [targetStart=0] The offset within `target` at which to begin comparison.
707
- * @param [targetEnd=target.length] The offset within `target` at which to end comparison (not inclusive).
708
- * @param [sourceStart=0] The offset within `buf` at which to begin comparison.
709
- * @param [sourceEnd=buf.length] The offset within `buf` at which to end comparison (not inclusive).
710
- */
711
- compare(target: Uint8Array, targetStart?: number, targetEnd?: number, sourceStart?: number, sourceEnd?: number): number;
712
- /**
713
- * Copies data from a region of `buf` to a region in `target`, even if the `target`memory region overlaps with `buf`.
714
- *
715
- * [`TypedArray.prototype.set()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/set) performs the same operation, and is available
716
- * for all TypedArrays, including Node.js `Buffer`s, although it takes
717
- * different function arguments.
718
- *
719
- * ```js
720
- * import { Buffer } from 'buffer';
721
- *
722
- * // Create two `Buffer` instances.
723
- * const buf1 = Buffer.allocUnsafe(26);
724
- * const buf2 = Buffer.allocUnsafe(26).fill('!');
725
- *
726
- * for (let i = 0; i < 26; i++) {
727
- * // 97 is the decimal ASCII value for 'a'.
728
- * buf1[i] = i + 97;
729
- * }
730
- *
731
- * // Copy `buf1` bytes 16 through 19 into `buf2` starting at byte 8 of `buf2`.
732
- * buf1.copy(buf2, 8, 16, 20);
733
- * // This is equivalent to:
734
- * // buf2.set(buf1.subarray(16, 20), 8);
735
- *
736
- * console.log(buf2.toString('ascii', 0, 25));
737
- * // Prints: !!!!!!!!qrst!!!!!!!!!!!!!
738
- * ```
739
- *
740
- * ```js
741
- * import { Buffer } from 'buffer';
742
- *
743
- * // Create a `Buffer` and copy data from one region to an overlapping region
744
- * // within the same `Buffer`.
745
- *
746
- * const buf = Buffer.allocUnsafe(26);
747
- *
748
- * for (let i = 0; i < 26; i++) {
749
- * // 97 is the decimal ASCII value for 'a'.
750
- * buf[i] = i + 97;
751
- * }
752
- *
753
- * buf.copy(buf, 0, 4, 10);
754
- *
755
- * console.log(buf.toString());
756
- * // Prints: efghijghijklmnopqrstuvwxyz
757
- * ```
758
- * @since v0.1.90
759
- * @param target A `Buffer` or {@link Uint8Array} to copy into.
760
- * @param [targetStart=0] The offset within `target` at which to begin writing.
761
- * @param [sourceStart=0] The offset within `buf` from which to begin copying.
762
- * @param [sourceEnd=buf.length] The offset within `buf` at which to stop copying (not inclusive).
763
- * @return The number of bytes copied.
764
- */
765
- copy(target: Uint8Array, targetStart?: number, sourceStart?: number, sourceEnd?: number): number;
766
- /**
767
- * Returns a new `Buffer` that references the same memory as the original, but
768
- * offset and cropped by the `start` and `end` indices.
769
- *
770
- * This is the same behavior as `buf.subarray()`.
771
- *
772
- * This method is not compatible with the `Uint8Array.prototype.slice()`,
773
- * which is a superclass of `Buffer`. To copy the slice, use`Uint8Array.prototype.slice()`.
774
- *
775
- * ```js
776
- * import { Buffer } from 'buffer';
777
- *
778
- * const buf = Buffer.from('buffer');
779
- *
780
- * const copiedBuf = Uint8Array.prototype.slice.call(buf);
781
- * copiedBuf[0]++;
782
- * console.log(copiedBuf.toString());
783
- * // Prints: cuffer
784
- *
785
- * console.log(buf.toString());
786
- * // Prints: buffer
787
- * ```
788
- * @since v0.3.0
789
- * @param [start=0] Where the new `Buffer` will start.
790
- * @param [end=buf.length] Where the new `Buffer` will end (not inclusive).
791
- */
792
- slice(start?: number, end?: number): Buffer;
793
- /**
794
- * Returns a new `Buffer` that references the same memory as the original, but
795
- * offset and cropped by the `start` and `end` indices.
796
- *
797
- * Specifying `end` greater than `buf.length` will return the same result as
798
- * that of `end` equal to `buf.length`.
799
- *
800
- * This method is inherited from [`TypedArray.prototype.subarray()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/subarray).
801
- *
802
- * Modifying the new `Buffer` slice will modify the memory in the original `Buffer`because the allocated memory of the two objects overlap.
803
- *
804
- * ```js
805
- * import { Buffer } from 'buffer';
806
- *
807
- * // Create a `Buffer` with the ASCII alphabet, take a slice, and modify one byte
808
- * // from the original `Buffer`.
809
- *
810
- * const buf1 = Buffer.allocUnsafe(26);
811
- *
812
- * for (let i = 0; i < 26; i++) {
813
- * // 97 is the decimal ASCII value for 'a'.
814
- * buf1[i] = i + 97;
815
- * }
816
- *
817
- * const buf2 = buf1.subarray(0, 3);
818
- *
819
- * console.log(buf2.toString('ascii', 0, buf2.length));
820
- * // Prints: abc
821
- *
822
- * buf1[0] = 33;
823
- *
824
- * console.log(buf2.toString('ascii', 0, buf2.length));
825
- * // Prints: !bc
826
- * ```
827
- *
828
- * Specifying negative indexes causes the slice to be generated relative to the
829
- * end of `buf` rather than the beginning.
830
- *
831
- * ```js
832
- * import { Buffer } from 'buffer';
833
- *
834
- * const buf = Buffer.from('buffer');
835
- *
836
- * console.log(buf.subarray(-6, -1).toString());
837
- * // Prints: buffe
838
- * // (Equivalent to buf.subarray(0, 5).)
839
- *
840
- * console.log(buf.subarray(-6, -2).toString());
841
- * // Prints: buff
842
- * // (Equivalent to buf.subarray(0, 4).)
843
- *
844
- * console.log(buf.subarray(-5, -2).toString());
845
- * // Prints: uff
846
- * // (Equivalent to buf.subarray(1, 4).)
847
- * ```
848
- * @since v3.0.0
849
- * @param [start=0] Where the new `Buffer` will start.
850
- * @param [end=buf.length] Where the new `Buffer` will end (not inclusive).
851
- */
852
- subarray(start?: number, end?: number): Buffer;
853
- /**
854
- * Writes `value` to `buf` at the specified `offset` as big-endian.
855
- *
856
- * `value` is interpreted and written as a two's complement signed integer.
857
- *
858
- * ```js
859
- * import { Buffer } from 'buffer';
860
- *
861
- * const buf = Buffer.allocUnsafe(8);
862
- *
863
- * buf.writeBigInt64BE(0x0102030405060708n, 0);
864
- *
865
- * console.log(buf);
866
- * // Prints: <Buffer 01 02 03 04 05 06 07 08>
867
- * ```
868
- * @since v12.0.0, v10.20.0
869
- * @param value Number to be written to `buf`.
870
- * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy: `0 <= offset <= buf.length - 8`.
871
- * @return `offset` plus the number of bytes written.
872
- */
873
- writeBigInt64BE(value: bigint, offset?: number): number;
874
- /**
875
- * Writes `value` to `buf` at the specified `offset` as little-endian.
876
- *
877
- * `value` is interpreted and written as a two's complement signed integer.
878
- *
879
- * ```js
880
- * import { Buffer } from 'buffer';
881
- *
882
- * const buf = Buffer.allocUnsafe(8);
883
- *
884
- * buf.writeBigInt64LE(0x0102030405060708n, 0);
885
- *
886
- * console.log(buf);
887
- * // Prints: <Buffer 08 07 06 05 04 03 02 01>
888
- * ```
889
- * @since v12.0.0, v10.20.0
890
- * @param value Number to be written to `buf`.
891
- * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy: `0 <= offset <= buf.length - 8`.
892
- * @return `offset` plus the number of bytes written.
893
- */
894
- writeBigInt64LE(value: bigint, offset?: number): number;
895
- /**
896
- * Writes `value` to `buf` at the specified `offset` as big-endian.
897
- *
898
- * This function is also available under the `writeBigUint64BE` alias.
899
- *
900
- * ```js
901
- * import { Buffer } from 'buffer';
902
- *
903
- * const buf = Buffer.allocUnsafe(8);
904
- *
905
- * buf.writeBigUInt64BE(0xdecafafecacefaden, 0);
906
- *
907
- * console.log(buf);
908
- * // Prints: <Buffer de ca fa fe ca ce fa de>
909
- * ```
910
- * @since v12.0.0, v10.20.0
911
- * @param value Number to be written to `buf`.
912
- * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy: `0 <= offset <= buf.length - 8`.
913
- * @return `offset` plus the number of bytes written.
914
- */
915
- writeBigUInt64BE(value: bigint, offset?: number): number;
916
- /**
917
- * @alias Buffer.writeBigUInt64BE
918
- * @since v14.10.0, v12.19.0
919
- */
920
- writeBigUint64BE(value: bigint, offset?: number): number;
921
- /**
922
- * Writes `value` to `buf` at the specified `offset` as little-endian
923
- *
924
- * ```js
925
- * import { Buffer } from 'buffer';
926
- *
927
- * const buf = Buffer.allocUnsafe(8);
928
- *
929
- * buf.writeBigUInt64LE(0xdecafafecacefaden, 0);
930
- *
931
- * console.log(buf);
932
- * // Prints: <Buffer de fa ce ca fe fa ca de>
933
- * ```
934
- *
935
- * This function is also available under the `writeBigUint64LE` alias.
936
- * @since v12.0.0, v10.20.0
937
- * @param value Number to be written to `buf`.
938
- * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy: `0 <= offset <= buf.length - 8`.
939
- * @return `offset` plus the number of bytes written.
940
- */
941
- writeBigUInt64LE(value: bigint, offset?: number): number;
942
- /**
943
- * @alias Buffer.writeBigUInt64LE
944
- * @since v14.10.0, v12.19.0
945
- */
946
- writeBigUint64LE(value: bigint, offset?: number): number;
947
- /**
948
- * Writes `byteLength` bytes of `value` to `buf` at the specified `offset`as little-endian. Supports up to 48 bits of accuracy. Behavior is undefined
949
- * when `value` is anything other than an unsigned integer.
950
- *
951
- * This function is also available under the `writeUintLE` alias.
952
- *
953
- * ```js
954
- * import { Buffer } from 'buffer';
955
- *
956
- * const buf = Buffer.allocUnsafe(6);
957
- *
958
- * buf.writeUIntLE(0x1234567890ab, 0, 6);
959
- *
960
- * console.log(buf);
961
- * // Prints: <Buffer ab 90 78 56 34 12>
962
- * ```
963
- * @since v0.5.5
964
- * @param value Number to be written to `buf`.
965
- * @param offset Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - byteLength`.
966
- * @param byteLength Number of bytes to write. Must satisfy `0 < byteLength <= 6`.
967
- * @return `offset` plus the number of bytes written.
968
- */
969
- writeUIntLE(value: number, offset: number, byteLength: number): number;
970
- /**
971
- * @alias Buffer.writeUIntLE
972
- * @since v14.9.0, v12.19.0
973
- */
974
- writeUintLE(value: number, offset: number, byteLength: number): number;
975
- /**
976
- * Writes `byteLength` bytes of `value` to `buf` at the specified `offset`as big-endian. Supports up to 48 bits of accuracy. Behavior is undefined
977
- * when `value` is anything other than an unsigned integer.
978
- *
979
- * This function is also available under the `writeUintBE` alias.
980
- *
981
- * ```js
982
- * import { Buffer } from 'buffer';
983
- *
984
- * const buf = Buffer.allocUnsafe(6);
985
- *
986
- * buf.writeUIntBE(0x1234567890ab, 0, 6);
987
- *
988
- * console.log(buf);
989
- * // Prints: <Buffer 12 34 56 78 90 ab>
990
- * ```
991
- * @since v0.5.5
992
- * @param value Number to be written to `buf`.
993
- * @param offset Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - byteLength`.
994
- * @param byteLength Number of bytes to write. Must satisfy `0 < byteLength <= 6`.
995
- * @return `offset` plus the number of bytes written.
996
- */
997
- writeUIntBE(value: number, offset: number, byteLength: number): number;
998
- /**
999
- * @alias Buffer.writeUIntBE
1000
- * @since v14.9.0, v12.19.0
1001
- */
1002
- writeUintBE(value: number, offset: number, byteLength: number): number;
1003
- /**
1004
- * Writes `byteLength` bytes of `value` to `buf` at the specified `offset`as little-endian. Supports up to 48 bits of accuracy. Behavior is undefined
1005
- * when `value` is anything other than a signed integer.
1006
- *
1007
- * ```js
1008
- * import { Buffer } from 'buffer';
1009
- *
1010
- * const buf = Buffer.allocUnsafe(6);
1011
- *
1012
- * buf.writeIntLE(0x1234567890ab, 0, 6);
1013
- *
1014
- * console.log(buf);
1015
- * // Prints: <Buffer ab 90 78 56 34 12>
1016
- * ```
1017
- * @since v0.11.15
1018
- * @param value Number to be written to `buf`.
1019
- * @param offset Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - byteLength`.
1020
- * @param byteLength Number of bytes to write. Must satisfy `0 < byteLength <= 6`.
1021
- * @return `offset` plus the number of bytes written.
1022
- */
1023
- writeIntLE(value: number, offset: number, byteLength: number): number;
1024
- /**
1025
- * Writes `byteLength` bytes of `value` to `buf` at the specified `offset`as big-endian. Supports up to 48 bits of accuracy. Behavior is undefined when`value` is anything other than a
1026
- * signed integer.
1027
- *
1028
- * ```js
1029
- * import { Buffer } from 'buffer';
1030
- *
1031
- * const buf = Buffer.allocUnsafe(6);
1032
- *
1033
- * buf.writeIntBE(0x1234567890ab, 0, 6);
1034
- *
1035
- * console.log(buf);
1036
- * // Prints: <Buffer 12 34 56 78 90 ab>
1037
- * ```
1038
- * @since v0.11.15
1039
- * @param value Number to be written to `buf`.
1040
- * @param offset Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - byteLength`.
1041
- * @param byteLength Number of bytes to write. Must satisfy `0 < byteLength <= 6`.
1042
- * @return `offset` plus the number of bytes written.
1043
- */
1044
- writeIntBE(value: number, offset: number, byteLength: number): number;
1045
- /**
1046
- * Reads an unsigned, big-endian 64-bit integer from `buf` at the specified`offset`.
1047
- *
1048
- * This function is also available under the `readBigUint64BE` alias.
1049
- *
1050
- * ```js
1051
- * import { Buffer } from 'buffer';
1052
- *
1053
- * const buf = Buffer.from([0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff]);
1054
- *
1055
- * console.log(buf.readBigUInt64BE(0));
1056
- * // Prints: 4294967295n
1057
- * ```
1058
- * @since v12.0.0, v10.20.0
1059
- * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy: `0 <= offset <= buf.length - 8`.
1060
- */
1061
- readBigUInt64BE(offset?: number): bigint;
1062
- /**
1063
- * @alias Buffer.readBigUInt64BE
1064
- * @since v14.10.0, v12.19.0
1065
- */
1066
- readBigUint64BE(offset?: number): bigint;
1067
- /**
1068
- * Reads an unsigned, little-endian 64-bit integer from `buf` at the specified`offset`.
1069
- *
1070
- * This function is also available under the `readBigUint64LE` alias.
1071
- *
1072
- * ```js
1073
- * import { Buffer } from 'buffer';
1074
- *
1075
- * const buf = Buffer.from([0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff]);
1076
- *
1077
- * console.log(buf.readBigUInt64LE(0));
1078
- * // Prints: 18446744069414584320n
1079
- * ```
1080
- * @since v12.0.0, v10.20.0
1081
- * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy: `0 <= offset <= buf.length - 8`.
1082
- */
1083
- readBigUInt64LE(offset?: number): bigint;
1084
- /**
1085
- * @alias Buffer.readBigUInt64LE
1086
- * @since v14.10.0, v12.19.0
1087
- */
1088
- readBigUint64LE(offset?: number): bigint;
1089
- /**
1090
- * Reads a signed, big-endian 64-bit integer from `buf` at the specified `offset`.
1091
- *
1092
- * Integers read from a `Buffer` are interpreted as two's complement signed
1093
- * values.
1094
- * @since v12.0.0, v10.20.0
1095
- * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy: `0 <= offset <= buf.length - 8`.
1096
- */
1097
- readBigInt64BE(offset?: number): bigint;
1098
- /**
1099
- * Reads a signed, little-endian 64-bit integer from `buf` at the specified`offset`.
1100
- *
1101
- * Integers read from a `Buffer` are interpreted as two's complement signed
1102
- * values.
1103
- * @since v12.0.0, v10.20.0
1104
- * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy: `0 <= offset <= buf.length - 8`.
1105
- */
1106
- readBigInt64LE(offset?: number): bigint;
1107
- /**
1108
- * Reads `byteLength` number of bytes from `buf` at the specified `offset`and interprets the result as an unsigned, little-endian integer supporting
1109
- * up to 48 bits of accuracy.
1110
- *
1111
- * This function is also available under the `readUintLE` alias.
1112
- *
1113
- * ```js
1114
- * import { Buffer } from 'buffer';
1115
- *
1116
- * const buf = Buffer.from([0x12, 0x34, 0x56, 0x78, 0x90, 0xab]);
1117
- *
1118
- * console.log(buf.readUIntLE(0, 6).toString(16));
1119
- * // Prints: ab9078563412
1120
- * ```
1121
- * @since v0.11.15
1122
- * @param offset Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - byteLength`.
1123
- * @param byteLength Number of bytes to read. Must satisfy `0 < byteLength <= 6`.
1124
- */
1125
- readUIntLE(offset: number, byteLength: number): number;
1126
- /**
1127
- * @alias Buffer.readUIntLE
1128
- * @since v14.9.0, v12.19.0
1129
- */
1130
- readUintLE(offset: number, byteLength: number): number;
1131
- /**
1132
- * Reads `byteLength` number of bytes from `buf` at the specified `offset`and interprets the result as an unsigned big-endian integer supporting
1133
- * up to 48 bits of accuracy.
1134
- *
1135
- * This function is also available under the `readUintBE` alias.
1136
- *
1137
- * ```js
1138
- * import { Buffer } from 'buffer';
1139
- *
1140
- * const buf = Buffer.from([0x12, 0x34, 0x56, 0x78, 0x90, 0xab]);
1141
- *
1142
- * console.log(buf.readUIntBE(0, 6).toString(16));
1143
- * // Prints: 1234567890ab
1144
- * console.log(buf.readUIntBE(1, 6).toString(16));
1145
- * // Throws ERR_OUT_OF_RANGE.
1146
- * ```
1147
- * @since v0.11.15
1148
- * @param offset Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - byteLength`.
1149
- * @param byteLength Number of bytes to read. Must satisfy `0 < byteLength <= 6`.
1150
- */
1151
- readUIntBE(offset: number, byteLength: number): number;
1152
- /**
1153
- * @alias Buffer.readUIntBE
1154
- * @since v14.9.0, v12.19.0
1155
- */
1156
- readUintBE(offset: number, byteLength: number): number;
1157
- /**
1158
- * Reads `byteLength` number of bytes from `buf` at the specified `offset`and interprets the result as a little-endian, two's complement signed value
1159
- * supporting up to 48 bits of accuracy.
1160
- *
1161
- * ```js
1162
- * import { Buffer } from 'buffer';
1163
- *
1164
- * const buf = Buffer.from([0x12, 0x34, 0x56, 0x78, 0x90, 0xab]);
1165
- *
1166
- * console.log(buf.readIntLE(0, 6).toString(16));
1167
- * // Prints: -546f87a9cbee
1168
- * ```
1169
- * @since v0.11.15
1170
- * @param offset Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - byteLength`.
1171
- * @param byteLength Number of bytes to read. Must satisfy `0 < byteLength <= 6`.
1172
- */
1173
- readIntLE(offset: number, byteLength: number): number;
1174
- /**
1175
- * Reads `byteLength` number of bytes from `buf` at the specified `offset`and interprets the result as a big-endian, two's complement signed value
1176
- * supporting up to 48 bits of accuracy.
1177
- *
1178
- * ```js
1179
- * import { Buffer } from 'buffer';
1180
- *
1181
- * const buf = Buffer.from([0x12, 0x34, 0x56, 0x78, 0x90, 0xab]);
1182
- *
1183
- * console.log(buf.readIntBE(0, 6).toString(16));
1184
- * // Prints: 1234567890ab
1185
- * console.log(buf.readIntBE(1, 6).toString(16));
1186
- * // Throws ERR_OUT_OF_RANGE.
1187
- * console.log(buf.readIntBE(1, 0).toString(16));
1188
- * // Throws ERR_OUT_OF_RANGE.
1189
- * ```
1190
- * @since v0.11.15
1191
- * @param offset Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - byteLength`.
1192
- * @param byteLength Number of bytes to read. Must satisfy `0 < byteLength <= 6`.
1193
- */
1194
- readIntBE(offset: number, byteLength: number): number;
1195
- /**
1196
- * Reads an unsigned 8-bit integer from `buf` at the specified `offset`.
1197
- *
1198
- * This function is also available under the `readUint8` alias.
1199
- *
1200
- * ```js
1201
- * import { Buffer } from 'buffer';
1202
- *
1203
- * const buf = Buffer.from([1, -2]);
1204
- *
1205
- * console.log(buf.readUInt8(0));
1206
- * // Prints: 1
1207
- * console.log(buf.readUInt8(1));
1208
- * // Prints: 254
1209
- * console.log(buf.readUInt8(2));
1210
- * // Throws ERR_OUT_OF_RANGE.
1211
- * ```
1212
- * @since v0.5.0
1213
- * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 1`.
1214
- */
1215
- readUInt8(offset?: number): number;
1216
- /**
1217
- * @alias Buffer.readUInt8
1218
- * @since v14.9.0, v12.19.0
1219
- */
1220
- readUint8(offset?: number): number;
1221
- /**
1222
- * Reads an unsigned, little-endian 16-bit integer from `buf` at the specified`offset`.
1223
- *
1224
- * This function is also available under the `readUint16LE` alias.
1225
- *
1226
- * ```js
1227
- * import { Buffer } from 'buffer';
1228
- *
1229
- * const buf = Buffer.from([0x12, 0x34, 0x56]);
1230
- *
1231
- * console.log(buf.readUInt16LE(0).toString(16));
1232
- * // Prints: 3412
1233
- * console.log(buf.readUInt16LE(1).toString(16));
1234
- * // Prints: 5634
1235
- * console.log(buf.readUInt16LE(2).toString(16));
1236
- * // Throws ERR_OUT_OF_RANGE.
1237
- * ```
1238
- * @since v0.5.5
1239
- * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 2`.
1240
- */
1241
- readUInt16LE(offset?: number): number;
1242
- /**
1243
- * @alias Buffer.readUInt16LE
1244
- * @since v14.9.0, v12.19.0
1245
- */
1246
- readUint16LE(offset?: number): number;
1247
- /**
1248
- * Reads an unsigned, big-endian 16-bit integer from `buf` at the specified`offset`.
1249
- *
1250
- * This function is also available under the `readUint16BE` alias.
1251
- *
1252
- * ```js
1253
- * import { Buffer } from 'buffer';
1254
- *
1255
- * const buf = Buffer.from([0x12, 0x34, 0x56]);
1256
- *
1257
- * console.log(buf.readUInt16BE(0).toString(16));
1258
- * // Prints: 1234
1259
- * console.log(buf.readUInt16BE(1).toString(16));
1260
- * // Prints: 3456
1261
- * ```
1262
- * @since v0.5.5
1263
- * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 2`.
1264
- */
1265
- readUInt16BE(offset?: number): number;
1266
- /**
1267
- * @alias Buffer.readUInt16BE
1268
- * @since v14.9.0, v12.19.0
1269
- */
1270
- readUint16BE(offset?: number): number;
1271
- /**
1272
- * Reads an unsigned, little-endian 32-bit integer from `buf` at the specified`offset`.
1273
- *
1274
- * This function is also available under the `readUint32LE` alias.
1275
- *
1276
- * ```js
1277
- * import { Buffer } from 'buffer';
1278
- *
1279
- * const buf = Buffer.from([0x12, 0x34, 0x56, 0x78]);
1280
- *
1281
- * console.log(buf.readUInt32LE(0).toString(16));
1282
- * // Prints: 78563412
1283
- * console.log(buf.readUInt32LE(1).toString(16));
1284
- * // Throws ERR_OUT_OF_RANGE.
1285
- * ```
1286
- * @since v0.5.5
1287
- * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 4`.
1288
- */
1289
- readUInt32LE(offset?: number): number;
1290
- /**
1291
- * @alias Buffer.readUInt32LE
1292
- * @since v14.9.0, v12.19.0
1293
- */
1294
- readUint32LE(offset?: number): number;
1295
- /**
1296
- * Reads an unsigned, big-endian 32-bit integer from `buf` at the specified`offset`.
1297
- *
1298
- * This function is also available under the `readUint32BE` alias.
1299
- *
1300
- * ```js
1301
- * import { Buffer } from 'buffer';
1302
- *
1303
- * const buf = Buffer.from([0x12, 0x34, 0x56, 0x78]);
1304
- *
1305
- * console.log(buf.readUInt32BE(0).toString(16));
1306
- * // Prints: 12345678
1307
- * ```
1308
- * @since v0.5.5
1309
- * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 4`.
1310
- */
1311
- readUInt32BE(offset?: number): number;
1312
- /**
1313
- * @alias Buffer.readUInt32BE
1314
- * @since v14.9.0, v12.19.0
1315
- */
1316
- readUint32BE(offset?: number): number;
1317
- /**
1318
- * Reads a signed 8-bit integer from `buf` at the specified `offset`.
1319
- *
1320
- * Integers read from a `Buffer` are interpreted as two's complement signed values.
1321
- *
1322
- * ```js
1323
- * import { Buffer } from 'buffer';
1324
- *
1325
- * const buf = Buffer.from([-1, 5]);
1326
- *
1327
- * console.log(buf.readInt8(0));
1328
- * // Prints: -1
1329
- * console.log(buf.readInt8(1));
1330
- * // Prints: 5
1331
- * console.log(buf.readInt8(2));
1332
- * // Throws ERR_OUT_OF_RANGE.
1333
- * ```
1334
- * @since v0.5.0
1335
- * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 1`.
1336
- */
1337
- readInt8(offset?: number): number;
1338
- /**
1339
- * Reads a signed, little-endian 16-bit integer from `buf` at the specified`offset`.
1340
- *
1341
- * Integers read from a `Buffer` are interpreted as two's complement signed values.
1342
- *
1343
- * ```js
1344
- * import { Buffer } from 'buffer';
1345
- *
1346
- * const buf = Buffer.from([0, 5]);
1347
- *
1348
- * console.log(buf.readInt16LE(0));
1349
- * // Prints: 1280
1350
- * console.log(buf.readInt16LE(1));
1351
- * // Throws ERR_OUT_OF_RANGE.
1352
- * ```
1353
- * @since v0.5.5
1354
- * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 2`.
1355
- */
1356
- readInt16LE(offset?: number): number;
1357
- /**
1358
- * Reads a signed, big-endian 16-bit integer from `buf` at the specified `offset`.
1359
- *
1360
- * Integers read from a `Buffer` are interpreted as two's complement signed values.
1361
- *
1362
- * ```js
1363
- * import { Buffer } from 'buffer';
1364
- *
1365
- * const buf = Buffer.from([0, 5]);
1366
- *
1367
- * console.log(buf.readInt16BE(0));
1368
- * // Prints: 5
1369
- * ```
1370
- * @since v0.5.5
1371
- * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 2`.
1372
- */
1373
- readInt16BE(offset?: number): number;
1374
- /**
1375
- * Reads a signed, little-endian 32-bit integer from `buf` at the specified`offset`.
1376
- *
1377
- * Integers read from a `Buffer` are interpreted as two's complement signed values.
1378
- *
1379
- * ```js
1380
- * import { Buffer } from 'buffer';
1381
- *
1382
- * const buf = Buffer.from([0, 0, 0, 5]);
1383
- *
1384
- * console.log(buf.readInt32LE(0));
1385
- * // Prints: 83886080
1386
- * console.log(buf.readInt32LE(1));
1387
- * // Throws ERR_OUT_OF_RANGE.
1388
- * ```
1389
- * @since v0.5.5
1390
- * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 4`.
1391
- */
1392
- readInt32LE(offset?: number): number;
1393
- /**
1394
- * Reads a signed, big-endian 32-bit integer from `buf` at the specified `offset`.
1395
- *
1396
- * Integers read from a `Buffer` are interpreted as two's complement signed values.
1397
- *
1398
- * ```js
1399
- * import { Buffer } from 'buffer';
1400
- *
1401
- * const buf = Buffer.from([0, 0, 0, 5]);
1402
- *
1403
- * console.log(buf.readInt32BE(0));
1404
- * // Prints: 5
1405
- * ```
1406
- * @since v0.5.5
1407
- * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 4`.
1408
- */
1409
- readInt32BE(offset?: number): number;
1410
- /**
1411
- * Reads a 32-bit, little-endian float from `buf` at the specified `offset`.
1412
- *
1413
- * ```js
1414
- * import { Buffer } from 'buffer';
1415
- *
1416
- * const buf = Buffer.from([1, 2, 3, 4]);
1417
- *
1418
- * console.log(buf.readFloatLE(0));
1419
- * // Prints: 1.539989614439558e-36
1420
- * console.log(buf.readFloatLE(1));
1421
- * // Throws ERR_OUT_OF_RANGE.
1422
- * ```
1423
- * @since v0.11.15
1424
- * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 4`.
1425
- */
1426
- readFloatLE(offset?: number): number;
1427
- /**
1428
- * Reads a 32-bit, big-endian float from `buf` at the specified `offset`.
1429
- *
1430
- * ```js
1431
- * import { Buffer } from 'buffer';
1432
- *
1433
- * const buf = Buffer.from([1, 2, 3, 4]);
1434
- *
1435
- * console.log(buf.readFloatBE(0));
1436
- * // Prints: 2.387939260590663e-38
1437
- * ```
1438
- * @since v0.11.15
1439
- * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 4`.
1440
- */
1441
- readFloatBE(offset?: number): number;
1442
- /**
1443
- * Reads a 64-bit, little-endian double from `buf` at the specified `offset`.
1444
- *
1445
- * ```js
1446
- * import { Buffer } from 'buffer';
1447
- *
1448
- * const buf = Buffer.from([1, 2, 3, 4, 5, 6, 7, 8]);
1449
- *
1450
- * console.log(buf.readDoubleLE(0));
1451
- * // Prints: 5.447603722011605e-270
1452
- * console.log(buf.readDoubleLE(1));
1453
- * // Throws ERR_OUT_OF_RANGE.
1454
- * ```
1455
- * @since v0.11.15
1456
- * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 8`.
1457
- */
1458
- readDoubleLE(offset?: number): number;
1459
- /**
1460
- * Reads a 64-bit, big-endian double from `buf` at the specified `offset`.
1461
- *
1462
- * ```js
1463
- * import { Buffer } from 'buffer';
1464
- *
1465
- * const buf = Buffer.from([1, 2, 3, 4, 5, 6, 7, 8]);
1466
- *
1467
- * console.log(buf.readDoubleBE(0));
1468
- * // Prints: 8.20788039913184e-304
1469
- * ```
1470
- * @since v0.11.15
1471
- * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 8`.
1472
- */
1473
- readDoubleBE(offset?: number): number;
1474
- reverse(): this;
1475
- /**
1476
- * Interprets `buf` as an array of unsigned 16-bit integers and swaps the
1477
- * byte order _in-place_. Throws `ERR_INVALID_BUFFER_SIZE` if `buf.length` is not a multiple of 2.
1478
- *
1479
- * ```js
1480
- * import { Buffer } from 'buffer';
1481
- *
1482
- * const buf1 = Buffer.from([0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8]);
1483
- *
1484
- * console.log(buf1);
1485
- * // Prints: <Buffer 01 02 03 04 05 06 07 08>
1486
- *
1487
- * buf1.swap16();
1488
- *
1489
- * console.log(buf1);
1490
- * // Prints: <Buffer 02 01 04 03 06 05 08 07>
1491
- *
1492
- * const buf2 = Buffer.from([0x1, 0x2, 0x3]);
1493
- *
1494
- * buf2.swap16();
1495
- * // Throws ERR_INVALID_BUFFER_SIZE.
1496
- * ```
1497
- *
1498
- * One convenient use of `buf.swap16()` is to perform a fast in-place conversion
1499
- * between UTF-16 little-endian and UTF-16 big-endian:
1500
- *
1501
- * ```js
1502
- * import { Buffer } from 'buffer';
1503
- *
1504
- * const buf = Buffer.from('This is little-endian UTF-16', 'utf16le');
1505
- * buf.swap16(); // Convert to big-endian UTF-16 text.
1506
- * ```
1507
- * @since v5.10.0
1508
- * @return A reference to `buf`.
1509
- */
1510
- swap16(): Buffer;
1511
- /**
1512
- * Interprets `buf` as an array of unsigned 32-bit integers and swaps the
1513
- * byte order _in-place_. Throws `ERR_INVALID_BUFFER_SIZE` if `buf.length` is not a multiple of 4.
1514
- *
1515
- * ```js
1516
- * import { Buffer } from 'buffer';
1517
- *
1518
- * const buf1 = Buffer.from([0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8]);
1519
- *
1520
- * console.log(buf1);
1521
- * // Prints: <Buffer 01 02 03 04 05 06 07 08>
1522
- *
1523
- * buf1.swap32();
1524
- *
1525
- * console.log(buf1);
1526
- * // Prints: <Buffer 04 03 02 01 08 07 06 05>
1527
- *
1528
- * const buf2 = Buffer.from([0x1, 0x2, 0x3]);
1529
- *
1530
- * buf2.swap32();
1531
- * // Throws ERR_INVALID_BUFFER_SIZE.
1532
- * ```
1533
- * @since v5.10.0
1534
- * @return A reference to `buf`.
1535
- */
1536
- swap32(): Buffer;
1537
- /**
1538
- * Interprets `buf` as an array of 64-bit numbers and swaps byte order _in-place_.
1539
- * Throws `ERR_INVALID_BUFFER_SIZE` if `buf.length` is not a multiple of 8.
1540
- *
1541
- * ```js
1542
- * import { Buffer } from 'buffer';
1543
- *
1544
- * const buf1 = Buffer.from([0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8]);
1545
- *
1546
- * console.log(buf1);
1547
- * // Prints: <Buffer 01 02 03 04 05 06 07 08>
1548
- *
1549
- * buf1.swap64();
1550
- *
1551
- * console.log(buf1);
1552
- * // Prints: <Buffer 08 07 06 05 04 03 02 01>
1553
- *
1554
- * const buf2 = Buffer.from([0x1, 0x2, 0x3]);
1555
- *
1556
- * buf2.swap64();
1557
- * // Throws ERR_INVALID_BUFFER_SIZE.
1558
- * ```
1559
- * @since v6.3.0
1560
- * @return A reference to `buf`.
1561
- */
1562
- swap64(): Buffer;
1563
- /**
1564
- * Writes `value` to `buf` at the specified `offset`. `value` must be a
1565
- * valid unsigned 8-bit integer. Behavior is undefined when `value` is anything
1566
- * other than an unsigned 8-bit integer.
1567
- *
1568
- * This function is also available under the `writeUint8` alias.
1569
- *
1570
- * ```js
1571
- * import { Buffer } from 'buffer';
1572
- *
1573
- * const buf = Buffer.allocUnsafe(4);
1574
- *
1575
- * buf.writeUInt8(0x3, 0);
1576
- * buf.writeUInt8(0x4, 1);
1577
- * buf.writeUInt8(0x23, 2);
1578
- * buf.writeUInt8(0x42, 3);
1579
- *
1580
- * console.log(buf);
1581
- * // Prints: <Buffer 03 04 23 42>
1582
- * ```
1583
- * @since v0.5.0
1584
- * @param value Number to be written to `buf`.
1585
- * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 1`.
1586
- * @return `offset` plus the number of bytes written.
1587
- */
1588
- writeUInt8(value: number, offset?: number): number;
1589
- /**
1590
- * @alias Buffer.writeUInt8
1591
- * @since v14.9.0, v12.19.0
1592
- */
1593
- writeUint8(value: number, offset?: number): number;
1594
- /**
1595
- * Writes `value` to `buf` at the specified `offset` as little-endian. The `value`must be a valid unsigned 16-bit integer. Behavior is undefined when `value` is
1596
- * anything other than an unsigned 16-bit integer.
1597
- *
1598
- * This function is also available under the `writeUint16LE` alias.
1599
- *
1600
- * ```js
1601
- * import { Buffer } from 'buffer';
1602
- *
1603
- * const buf = Buffer.allocUnsafe(4);
1604
- *
1605
- * buf.writeUInt16LE(0xdead, 0);
1606
- * buf.writeUInt16LE(0xbeef, 2);
1607
- *
1608
- * console.log(buf);
1609
- * // Prints: <Buffer ad de ef be>
1610
- * ```
1611
- * @since v0.5.5
1612
- * @param value Number to be written to `buf`.
1613
- * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 2`.
1614
- * @return `offset` plus the number of bytes written.
1615
- */
1616
- writeUInt16LE(value: number, offset?: number): number;
1617
- /**
1618
- * @alias Buffer.writeUInt16LE
1619
- * @since v14.9.0, v12.19.0
1620
- */
1621
- writeUint16LE(value: number, offset?: number): number;
1622
- /**
1623
- * Writes `value` to `buf` at the specified `offset` as big-endian. The `value`must be a valid unsigned 16-bit integer. Behavior is undefined when `value`is anything other than an
1624
- * unsigned 16-bit integer.
1625
- *
1626
- * This function is also available under the `writeUint16BE` alias.
1627
- *
1628
- * ```js
1629
- * import { Buffer } from 'buffer';
1630
- *
1631
- * const buf = Buffer.allocUnsafe(4);
1632
- *
1633
- * buf.writeUInt16BE(0xdead, 0);
1634
- * buf.writeUInt16BE(0xbeef, 2);
1635
- *
1636
- * console.log(buf);
1637
- * // Prints: <Buffer de ad be ef>
1638
- * ```
1639
- * @since v0.5.5
1640
- * @param value Number to be written to `buf`.
1641
- * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 2`.
1642
- * @return `offset` plus the number of bytes written.
1643
- */
1644
- writeUInt16BE(value: number, offset?: number): number;
1645
- /**
1646
- * @alias Buffer.writeUInt16BE
1647
- * @since v14.9.0, v12.19.0
1648
- */
1649
- writeUint16BE(value: number, offset?: number): number;
1650
- /**
1651
- * Writes `value` to `buf` at the specified `offset` as little-endian. The `value`must be a valid unsigned 32-bit integer. Behavior is undefined when `value` is
1652
- * anything other than an unsigned 32-bit integer.
1653
- *
1654
- * This function is also available under the `writeUint32LE` alias.
1655
- *
1656
- * ```js
1657
- * import { Buffer } from 'buffer';
1658
- *
1659
- * const buf = Buffer.allocUnsafe(4);
1660
- *
1661
- * buf.writeUInt32LE(0xfeedface, 0);
1662
- *
1663
- * console.log(buf);
1664
- * // Prints: <Buffer ce fa ed fe>
1665
- * ```
1666
- * @since v0.5.5
1667
- * @param value Number to be written to `buf`.
1668
- * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 4`.
1669
- * @return `offset` plus the number of bytes written.
1670
- */
1671
- writeUInt32LE(value: number, offset?: number): number;
1672
- /**
1673
- * @alias Buffer.writeUInt32LE
1674
- * @since v14.9.0, v12.19.0
1675
- */
1676
- writeUint32LE(value: number, offset?: number): number;
1677
- /**
1678
- * Writes `value` to `buf` at the specified `offset` as big-endian. The `value`must be a valid unsigned 32-bit integer. Behavior is undefined when `value`is anything other than an
1679
- * unsigned 32-bit integer.
1680
- *
1681
- * This function is also available under the `writeUint32BE` alias.
1682
- *
1683
- * ```js
1684
- * import { Buffer } from 'buffer';
1685
- *
1686
- * const buf = Buffer.allocUnsafe(4);
1687
- *
1688
- * buf.writeUInt32BE(0xfeedface, 0);
1689
- *
1690
- * console.log(buf);
1691
- * // Prints: <Buffer fe ed fa ce>
1692
- * ```
1693
- * @since v0.5.5
1694
- * @param value Number to be written to `buf`.
1695
- * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 4`.
1696
- * @return `offset` plus the number of bytes written.
1697
- */
1698
- writeUInt32BE(value: number, offset?: number): number;
1699
- /**
1700
- * @alias Buffer.writeUInt32BE
1701
- * @since v14.9.0, v12.19.0
1702
- */
1703
- writeUint32BE(value: number, offset?: number): number;
1704
- /**
1705
- * Writes `value` to `buf` at the specified `offset`. `value` must be a valid
1706
- * signed 8-bit integer. Behavior is undefined when `value` is anything other than
1707
- * a signed 8-bit integer.
1708
- *
1709
- * `value` is interpreted and written as a two's complement signed integer.
1710
- *
1711
- * ```js
1712
- * import { Buffer } from 'buffer';
1713
- *
1714
- * const buf = Buffer.allocUnsafe(2);
1715
- *
1716
- * buf.writeInt8(2, 0);
1717
- * buf.writeInt8(-2, 1);
1718
- *
1719
- * console.log(buf);
1720
- * // Prints: <Buffer 02 fe>
1721
- * ```
1722
- * @since v0.5.0
1723
- * @param value Number to be written to `buf`.
1724
- * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 1`.
1725
- * @return `offset` plus the number of bytes written.
1726
- */
1727
- writeInt8(value: number, offset?: number): number;
1728
- /**
1729
- * Writes `value` to `buf` at the specified `offset` as little-endian. The `value`must be a valid signed 16-bit integer. Behavior is undefined when `value` is
1730
- * anything other than a signed 16-bit integer.
1731
- *
1732
- * The `value` is interpreted and written as a two's complement signed integer.
1733
- *
1734
- * ```js
1735
- * import { Buffer } from 'buffer';
1736
- *
1737
- * const buf = Buffer.allocUnsafe(2);
1738
- *
1739
- * buf.writeInt16LE(0x0304, 0);
1740
- *
1741
- * console.log(buf);
1742
- * // Prints: <Buffer 04 03>
1743
- * ```
1744
- * @since v0.5.5
1745
- * @param value Number to be written to `buf`.
1746
- * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 2`.
1747
- * @return `offset` plus the number of bytes written.
1748
- */
1749
- writeInt16LE(value: number, offset?: number): number;
1750
- /**
1751
- * Writes `value` to `buf` at the specified `offset` as big-endian. The `value`must be a valid signed 16-bit integer. Behavior is undefined when `value` is
1752
- * anything other than a signed 16-bit integer.
1753
- *
1754
- * The `value` is interpreted and written as a two's complement signed integer.
1755
- *
1756
- * ```js
1757
- * import { Buffer } from 'buffer';
1758
- *
1759
- * const buf = Buffer.allocUnsafe(2);
1760
- *
1761
- * buf.writeInt16BE(0x0102, 0);
1762
- *
1763
- * console.log(buf);
1764
- * // Prints: <Buffer 01 02>
1765
- * ```
1766
- * @since v0.5.5
1767
- * @param value Number to be written to `buf`.
1768
- * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 2`.
1769
- * @return `offset` plus the number of bytes written.
1770
- */
1771
- writeInt16BE(value: number, offset?: number): number;
1772
- /**
1773
- * Writes `value` to `buf` at the specified `offset` as little-endian. The `value`must be a valid signed 32-bit integer. Behavior is undefined when `value` is
1774
- * anything other than a signed 32-bit integer.
1775
- *
1776
- * The `value` is interpreted and written as a two's complement signed integer.
1777
- *
1778
- * ```js
1779
- * import { Buffer } from 'buffer';
1780
- *
1781
- * const buf = Buffer.allocUnsafe(4);
1782
- *
1783
- * buf.writeInt32LE(0x05060708, 0);
1784
- *
1785
- * console.log(buf);
1786
- * // Prints: <Buffer 08 07 06 05>
1787
- * ```
1788
- * @since v0.5.5
1789
- * @param value Number to be written to `buf`.
1790
- * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 4`.
1791
- * @return `offset` plus the number of bytes written.
1792
- */
1793
- writeInt32LE(value: number, offset?: number): number;
1794
- /**
1795
- * Writes `value` to `buf` at the specified `offset` as big-endian. The `value`must be a valid signed 32-bit integer. Behavior is undefined when `value` is
1796
- * anything other than a signed 32-bit integer.
1797
- *
1798
- * The `value` is interpreted and written as a two's complement signed integer.
1799
- *
1800
- * ```js
1801
- * import { Buffer } from 'buffer';
1802
- *
1803
- * const buf = Buffer.allocUnsafe(4);
1804
- *
1805
- * buf.writeInt32BE(0x01020304, 0);
1806
- *
1807
- * console.log(buf);
1808
- * // Prints: <Buffer 01 02 03 04>
1809
- * ```
1810
- * @since v0.5.5
1811
- * @param value Number to be written to `buf`.
1812
- * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 4`.
1813
- * @return `offset` plus the number of bytes written.
1814
- */
1815
- writeInt32BE(value: number, offset?: number): number;
1816
- /**
1817
- * Writes `value` to `buf` at the specified `offset` as little-endian. Behavior is
1818
- * undefined when `value` is anything other than a JavaScript number.
1819
- *
1820
- * ```js
1821
- * import { Buffer } from 'buffer';
1822
- *
1823
- * const buf = Buffer.allocUnsafe(4);
1824
- *
1825
- * buf.writeFloatLE(0xcafebabe, 0);
1826
- *
1827
- * console.log(buf);
1828
- * // Prints: <Buffer bb fe 4a 4f>
1829
- * ```
1830
- * @since v0.11.15
1831
- * @param value Number to be written to `buf`.
1832
- * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 4`.
1833
- * @return `offset` plus the number of bytes written.
1834
- */
1835
- writeFloatLE(value: number, offset?: number): number;
1836
- /**
1837
- * Writes `value` to `buf` at the specified `offset` as big-endian. Behavior is
1838
- * undefined when `value` is anything other than a JavaScript number.
1839
- *
1840
- * ```js
1841
- * import { Buffer } from 'buffer';
1842
- *
1843
- * const buf = Buffer.allocUnsafe(4);
1844
- *
1845
- * buf.writeFloatBE(0xcafebabe, 0);
1846
- *
1847
- * console.log(buf);
1848
- * // Prints: <Buffer 4f 4a fe bb>
1849
- * ```
1850
- * @since v0.11.15
1851
- * @param value Number to be written to `buf`.
1852
- * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 4`.
1853
- * @return `offset` plus the number of bytes written.
1854
- */
1855
- writeFloatBE(value: number, offset?: number): number;
1856
- /**
1857
- * Writes `value` to `buf` at the specified `offset` as little-endian. The `value`must be a JavaScript number. Behavior is undefined when `value` is anything
1858
- * other than a JavaScript number.
1859
- *
1860
- * ```js
1861
- * import { Buffer } from 'buffer';
1862
- *
1863
- * const buf = Buffer.allocUnsafe(8);
1864
- *
1865
- * buf.writeDoubleLE(123.456, 0);
1866
- *
1867
- * console.log(buf);
1868
- * // Prints: <Buffer 77 be 9f 1a 2f dd 5e 40>
1869
- * ```
1870
- * @since v0.11.15
1871
- * @param value Number to be written to `buf`.
1872
- * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 8`.
1873
- * @return `offset` plus the number of bytes written.
1874
- */
1875
- writeDoubleLE(value: number, offset?: number): number;
1876
- /**
1877
- * Writes `value` to `buf` at the specified `offset` as big-endian. The `value`must be a JavaScript number. Behavior is undefined when `value` is anything
1878
- * other than a JavaScript number.
1879
- *
1880
- * ```js
1881
- * import { Buffer } from 'buffer';
1882
- *
1883
- * const buf = Buffer.allocUnsafe(8);
1884
- *
1885
- * buf.writeDoubleBE(123.456, 0);
1886
- *
1887
- * console.log(buf);
1888
- * // Prints: <Buffer 40 5e dd 2f 1a 9f be 77>
1889
- * ```
1890
- * @since v0.11.15
1891
- * @param value Number to be written to `buf`.
1892
- * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 8`.
1893
- * @return `offset` plus the number of bytes written.
1894
- */
1895
- writeDoubleBE(value: number, offset?: number): number;
1896
- /**
1897
- * Fills `buf` with the specified `value`. If the `offset` and `end` are not given,
1898
- * the entire `buf` will be filled:
1899
- *
1900
- * ```js
1901
- * import { Buffer } from 'buffer';
1902
- *
1903
- * // Fill a `Buffer` with the ASCII character 'h'.
1904
- *
1905
- * const b = Buffer.allocUnsafe(50).fill('h');
1906
- *
1907
- * console.log(b.toString());
1908
- * // Prints: hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
1909
- * ```
1910
- *
1911
- * `value` is coerced to a `uint32` value if it is not a string, `Buffer`, or
1912
- * integer. If the resulting integer is greater than `255` (decimal), `buf` will be
1913
- * filled with `value &#x26; 255`.
1914
- *
1915
- * If the final write of a `fill()` operation falls on a multi-byte character,
1916
- * then only the bytes of that character that fit into `buf` are written:
1917
- *
1918
- * ```js
1919
- * import { Buffer } from 'buffer';
1920
- *
1921
- * // Fill a `Buffer` with character that takes up two bytes in UTF-8.
1922
- *
1923
- * console.log(Buffer.allocUnsafe(5).fill('\u0222'));
1924
- * // Prints: <Buffer c8 a2 c8 a2 c8>
1925
- * ```
1926
- *
1927
- * If `value` contains invalid characters, it is truncated; if no valid
1928
- * fill data remains, an exception is thrown:
1929
- *
1930
- * ```js
1931
- * import { Buffer } from 'buffer';
1932
- *
1933
- * const buf = Buffer.allocUnsafe(5);
1934
- *
1935
- * console.log(buf.fill('a'));
1936
- * // Prints: <Buffer 61 61 61 61 61>
1937
- * console.log(buf.fill('aazz', 'hex'));
1938
- * // Prints: <Buffer aa aa aa aa aa>
1939
- * console.log(buf.fill('zz', 'hex'));
1940
- * // Throws an exception.
1941
- * ```
1942
- * @since v0.5.0
1943
- * @param value The value with which to fill `buf`.
1944
- * @param [offset=0] Number of bytes to skip before starting to fill `buf`.
1945
- * @param [end=buf.length] Where to stop filling `buf` (not inclusive).
1946
- * @param [encoding='utf8'] The encoding for `value` if `value` is a string.
1947
- * @return A reference to `buf`.
1948
- */
1949
- fill(value: string | Uint8Array | number, offset?: number, end?: number, encoding?: BufferEncoding): this;
1950
- /**
1951
- * If `value` is:
1952
- *
1953
- * * a string, `value` is interpreted according to the character encoding in`encoding`.
1954
- * * a `Buffer` or [`Uint8Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array), `value` will be used in its entirety.
1955
- * To compare a partial `Buffer`, use `buf.slice()`.
1956
- * * a number, `value` will be interpreted as an unsigned 8-bit integer
1957
- * value between `0` and `255`.
1958
- *
1959
- * ```js
1960
- * import { Buffer } from 'buffer';
1961
- *
1962
- * const buf = Buffer.from('this is a buffer');
1963
- *
1964
- * console.log(buf.indexOf('this'));
1965
- * // Prints: 0
1966
- * console.log(buf.indexOf('is'));
1967
- * // Prints: 2
1968
- * console.log(buf.indexOf(Buffer.from('a buffer')));
1969
- * // Prints: 8
1970
- * console.log(buf.indexOf(97));
1971
- * // Prints: 8 (97 is the decimal ASCII value for 'a')
1972
- * console.log(buf.indexOf(Buffer.from('a buffer example')));
1973
- * // Prints: -1
1974
- * console.log(buf.indexOf(Buffer.from('a buffer example').slice(0, 8)));
1975
- * // Prints: 8
1976
- *
1977
- * const utf16Buffer = Buffer.from('\u039a\u0391\u03a3\u03a3\u0395', 'utf16le');
1978
- *
1979
- * console.log(utf16Buffer.indexOf('\u03a3', 0, 'utf16le'));
1980
- * // Prints: 4
1981
- * console.log(utf16Buffer.indexOf('\u03a3', -4, 'utf16le'));
1982
- * // Prints: 6
1983
- * ```
1984
- *
1985
- * If `value` is not a string, number, or `Buffer`, this method will throw a`TypeError`. If `value` is a number, it will be coerced to a valid byte value,
1986
- * an integer between 0 and 255.
1987
- *
1988
- * If `byteOffset` is not a number, it will be coerced to a number. If the result
1989
- * of coercion is `NaN` or `0`, then the entire buffer will be searched. This
1990
- * behavior matches [`String.prototype.indexOf()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/indexOf).
1991
- *
1992
- * ```js
1993
- * import { Buffer } from 'buffer';
1994
- *
1995
- * const b = Buffer.from('abcdef');
1996
- *
1997
- * // Passing a value that's a number, but not a valid byte.
1998
- * // Prints: 2, equivalent to searching for 99 or 'c'.
1999
- * console.log(b.indexOf(99.9));
2000
- * console.log(b.indexOf(256 + 99));
2001
- *
2002
- * // Passing a byteOffset that coerces to NaN or 0.
2003
- * // Prints: 1, searching the whole buffer.
2004
- * console.log(b.indexOf('b', undefined));
2005
- * console.log(b.indexOf('b', {}));
2006
- * console.log(b.indexOf('b', null));
2007
- * console.log(b.indexOf('b', []));
2008
- * ```
2009
- *
2010
- * If `value` is an empty string or empty `Buffer` and `byteOffset` is less
2011
- * than `buf.length`, `byteOffset` will be returned. If `value` is empty and`byteOffset` is at least `buf.length`, `buf.length` will be returned.
2012
- * @since v1.5.0
2013
- * @param value What to search for.
2014
- * @param [byteOffset=0] Where to begin searching in `buf`. If negative, then offset is calculated from the end of `buf`.
2015
- * @param [encoding='utf8'] If `value` is a string, this is the encoding used to determine the binary representation of the string that will be searched for in `buf`.
2016
- * @return The index of the first occurrence of `value` in `buf`, or `-1` if `buf` does not contain `value`.
2017
- */
2018
- indexOf(value: string | number | Uint8Array, byteOffset?: number, encoding?: BufferEncoding): number;
2019
- /**
2020
- * Identical to `buf.indexOf()`, except the last occurrence of `value` is found
2021
- * rather than the first occurrence.
2022
- *
2023
- * ```js
2024
- * import { Buffer } from 'buffer';
2025
- *
2026
- * const buf = Buffer.from('this buffer is a buffer');
2027
- *
2028
- * console.log(buf.lastIndexOf('this'));
2029
- * // Prints: 0
2030
- * console.log(buf.lastIndexOf('buffer'));
2031
- * // Prints: 17
2032
- * console.log(buf.lastIndexOf(Buffer.from('buffer')));
2033
- * // Prints: 17
2034
- * console.log(buf.lastIndexOf(97));
2035
- * // Prints: 15 (97 is the decimal ASCII value for 'a')
2036
- * console.log(buf.lastIndexOf(Buffer.from('yolo')));
2037
- * // Prints: -1
2038
- * console.log(buf.lastIndexOf('buffer', 5));
2039
- * // Prints: 5
2040
- * console.log(buf.lastIndexOf('buffer', 4));
2041
- * // Prints: -1
2042
- *
2043
- * const utf16Buffer = Buffer.from('\u039a\u0391\u03a3\u03a3\u0395', 'utf16le');
2044
- *
2045
- * console.log(utf16Buffer.lastIndexOf('\u03a3', undefined, 'utf16le'));
2046
- * // Prints: 6
2047
- * console.log(utf16Buffer.lastIndexOf('\u03a3', -5, 'utf16le'));
2048
- * // Prints: 4
2049
- * ```
2050
- *
2051
- * If `value` is not a string, number, or `Buffer`, this method will throw a`TypeError`. If `value` is a number, it will be coerced to a valid byte value,
2052
- * an integer between 0 and 255.
2053
- *
2054
- * If `byteOffset` is not a number, it will be coerced to a number. Any arguments
2055
- * that coerce to `NaN`, like `{}` or `undefined`, will search the whole buffer.
2056
- * This behavior matches [`String.prototype.lastIndexOf()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/lastIndexOf).
2057
- *
2058
- * ```js
2059
- * import { Buffer } from 'buffer';
2060
- *
2061
- * const b = Buffer.from('abcdef');
2062
- *
2063
- * // Passing a value that's a number, but not a valid byte.
2064
- * // Prints: 2, equivalent to searching for 99 or 'c'.
2065
- * console.log(b.lastIndexOf(99.9));
2066
- * console.log(b.lastIndexOf(256 + 99));
2067
- *
2068
- * // Passing a byteOffset that coerces to NaN.
2069
- * // Prints: 1, searching the whole buffer.
2070
- * console.log(b.lastIndexOf('b', undefined));
2071
- * console.log(b.lastIndexOf('b', {}));
2072
- *
2073
- * // Passing a byteOffset that coerces to 0.
2074
- * // Prints: -1, equivalent to passing 0.
2075
- * console.log(b.lastIndexOf('b', null));
2076
- * console.log(b.lastIndexOf('b', []));
2077
- * ```
2078
- *
2079
- * If `value` is an empty string or empty `Buffer`, `byteOffset` will be returned.
2080
- * @since v6.0.0
2081
- * @param value What to search for.
2082
- * @param [byteOffset=buf.length - 1] Where to begin searching in `buf`. If negative, then offset is calculated from the end of `buf`.
2083
- * @param [encoding='utf8'] If `value` is a string, this is the encoding used to determine the binary representation of the string that will be searched for in `buf`.
2084
- * @return The index of the last occurrence of `value` in `buf`, or `-1` if `buf` does not contain `value`.
2085
- */
2086
- lastIndexOf(value: string | number | Uint8Array, byteOffset?: number, encoding?: BufferEncoding): number;
2087
- /**
2088
- * Creates and returns an [iterator](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols) of `[index, byte]` pairs from the contents
2089
- * of `buf`.
2090
- *
2091
- * ```js
2092
- * import { Buffer } from 'buffer';
2093
- *
2094
- * // Log the entire contents of a `Buffer`.
2095
- *
2096
- * const buf = Buffer.from('buffer');
2097
- *
2098
- * for (const pair of buf.entries()) {
2099
- * console.log(pair);
2100
- * }
2101
- * // Prints:
2102
- * // [0, 98]
2103
- * // [1, 117]
2104
- * // [2, 102]
2105
- * // [3, 102]
2106
- * // [4, 101]
2107
- * // [5, 114]
2108
- * ```
2109
- * @since v1.1.0
2110
- */
2111
- entries(): IterableIterator<[number, number]>;
2112
- /**
2113
- * Equivalent to `buf.indexOf() !== -1`.
2114
- *
2115
- * ```js
2116
- * import { Buffer } from 'buffer';
2117
- *
2118
- * const buf = Buffer.from('this is a buffer');
2119
- *
2120
- * console.log(buf.includes('this'));
2121
- * // Prints: true
2122
- * console.log(buf.includes('is'));
2123
- * // Prints: true
2124
- * console.log(buf.includes(Buffer.from('a buffer')));
2125
- * // Prints: true
2126
- * console.log(buf.includes(97));
2127
- * // Prints: true (97 is the decimal ASCII value for 'a')
2128
- * console.log(buf.includes(Buffer.from('a buffer example')));
2129
- * // Prints: false
2130
- * console.log(buf.includes(Buffer.from('a buffer example').slice(0, 8)));
2131
- * // Prints: true
2132
- * console.log(buf.includes('this', 4));
2133
- * // Prints: false
2134
- * ```
2135
- * @since v5.3.0
2136
- * @param value What to search for.
2137
- * @param [byteOffset=0] Where to begin searching in `buf`. If negative, then offset is calculated from the end of `buf`.
2138
- * @param [encoding='utf8'] If `value` is a string, this is its encoding.
2139
- * @return `true` if `value` was found in `buf`, `false` otherwise.
2140
- */
2141
- includes(value: string | number | Buffer, byteOffset?: number, encoding?: BufferEncoding): boolean;
2142
- /**
2143
- * Creates and returns an [iterator](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols) of `buf` keys (indices).
2144
- *
2145
- * ```js
2146
- * import { Buffer } from 'buffer';
2147
- *
2148
- * const buf = Buffer.from('buffer');
2149
- *
2150
- * for (const key of buf.keys()) {
2151
- * console.log(key);
2152
- * }
2153
- * // Prints:
2154
- * // 0
2155
- * // 1
2156
- * // 2
2157
- * // 3
2158
- * // 4
2159
- * // 5
2160
- * ```
2161
- * @since v1.1.0
2162
- */
2163
- keys(): IterableIterator<number>;
2164
- /**
2165
- * Creates and returns an [iterator](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols) for `buf` values (bytes). This function is
2166
- * called automatically when a `Buffer` is used in a `for..of` statement.
2167
- *
2168
- * ```js
2169
- * import { Buffer } from 'buffer';
2170
- *
2171
- * const buf = Buffer.from('buffer');
2172
- *
2173
- * for (const value of buf.values()) {
2174
- * console.log(value);
2175
- * }
2176
- * // Prints:
2177
- * // 98
2178
- * // 117
2179
- * // 102
2180
- * // 102
2181
- * // 101
2182
- * // 114
2183
- *
2184
- * for (const value of buf) {
2185
- * console.log(value);
2186
- * }
2187
- * // Prints:
2188
- * // 98
2189
- * // 117
2190
- * // 102
2191
- * // 102
2192
- * // 101
2193
- * // 114
2194
- * ```
2195
- * @since v1.1.0
2196
- */
2197
- values(): IterableIterator<number>;
2198
- }
2199
- var Buffer: BufferConstructor;
2200
- /**
2201
- * Decodes a string of Base64-encoded data into bytes, and encodes those bytes
2202
- * into a string using Latin-1 (ISO-8859-1).
2203
- *
2204
- * The `data` may be any JavaScript-value that can be coerced into a string.
2205
- *
2206
- * **This function is only provided for compatibility with legacy web platform APIs**
2207
- * **and should never be used in new code, because they use strings to represent**
2208
- * **binary data and predate the introduction of typed arrays in JavaScript.**
2209
- * **For code running using Node.js APIs, converting between base64-encoded strings**
2210
- * **and binary data should be performed using `Buffer.from(str, 'base64')` and`buf.toString('base64')`.**
2211
- * @since v15.13.0
2212
- * @legacy Use `Buffer.from(data, 'base64')` instead.
2213
- * @param data The Base64-encoded input string.
2214
- */
2215
- function atob(data: string): string;
2216
- /**
2217
- * Decodes a string into bytes using Latin-1 (ISO-8859), and encodes those bytes
2218
- * into a string using Base64.
2219
- *
2220
- * The `data` may be any JavaScript-value that can be coerced into a string.
2221
- *
2222
- * **This function is only provided for compatibility with legacy web platform APIs**
2223
- * **and should never be used in new code, because they use strings to represent**
2224
- * **binary data and predate the introduction of typed arrays in JavaScript.**
2225
- * **For code running using Node.js APIs, converting between base64-encoded strings**
2226
- * **and binary data should be performed using `Buffer.from(str, 'base64')` and`buf.toString('base64')`.**
2227
- * @since v15.13.0
2228
- * @legacy Use `buf.toString('base64')` instead.
2229
- * @param data An ASCII (Latin1) string.
2230
- */
2231
- function btoa(data: string): string;
2232
- }
2233
- }
2234
- declare module 'node:buffer' {
2235
- export * from 'buffer';
2236
- }