mockaton 13.9.9 → 13.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (279) hide show
  1. package/package.json +3 -2
  2. package/src/client/app-header.js +62 -42
  3. package/src/client/app.css +22 -4
  4. package/src/client/dir/dittoSplitPaths.js +1 -1
  5. package/src/client/dir/dittoSplitPaths.test.js +9 -7
  6. package/src/server/MockBroker.js +1 -1
  7. package/src/server/cli.test.js +1 -1
  8. package/src/server/mockBrokersCollection.js +4 -2
  9. package/vite-plugin/README.md +0 -29
  10. package/vite-plugin/node_modules/.package-lock.json +0 -356
  11. package/vite-plugin/node_modules/@oxc-project/types/LICENSE +0 -22
  12. package/vite-plugin/node_modules/@oxc-project/types/README.md +0 -3
  13. package/vite-plugin/node_modules/@oxc-project/types/package.json +0 -26
  14. package/vite-plugin/node_modules/@oxc-project/types/types.d.ts +0 -1912
  15. package/vite-plugin/node_modules/@rolldown/binding-darwin-arm64/README.md +0 -3
  16. package/vite-plugin/node_modules/@rolldown/binding-darwin-arm64/package.json +0 -37
  17. package/vite-plugin/node_modules/@rolldown/binding-darwin-arm64/rolldown-binding.darwin-arm64.node +0 -0
  18. package/vite-plugin/node_modules/@rolldown/pluginutils/LICENSE +0 -25
  19. package/vite-plugin/node_modules/@rolldown/pluginutils/README.md +0 -83
  20. package/vite-plugin/node_modules/@rolldown/pluginutils/dist/filter/composable-filters.d.ts +0 -90
  21. package/vite-plugin/node_modules/@rolldown/pluginutils/dist/filter/composable-filters.js +0 -256
  22. package/vite-plugin/node_modules/@rolldown/pluginutils/dist/filter/filter-vite-plugins.d.ts +0 -28
  23. package/vite-plugin/node_modules/@rolldown/pluginutils/dist/filter/filter-vite-plugins.js +0 -75
  24. package/vite-plugin/node_modules/@rolldown/pluginutils/dist/filter/index.d.ts +0 -3
  25. package/vite-plugin/node_modules/@rolldown/pluginutils/dist/filter/index.js +0 -3
  26. package/vite-plugin/node_modules/@rolldown/pluginutils/dist/filter/simple-filters.d.ts +0 -71
  27. package/vite-plugin/node_modules/@rolldown/pluginutils/dist/filter/simple-filters.js +0 -70
  28. package/vite-plugin/node_modules/@rolldown/pluginutils/dist/index.d.ts +0 -1
  29. package/vite-plugin/node_modules/@rolldown/pluginutils/dist/index.js +0 -1
  30. package/vite-plugin/node_modules/@rolldown/pluginutils/dist/utils.d.ts +0 -2
  31. package/vite-plugin/node_modules/@rolldown/pluginutils/dist/utils.js +0 -17
  32. package/vite-plugin/node_modules/@rolldown/pluginutils/package.json +0 -37
  33. package/vite-plugin/node_modules/detect-libc/LICENSE +0 -201
  34. package/vite-plugin/node_modules/detect-libc/README.md +0 -163
  35. package/vite-plugin/node_modules/detect-libc/index.d.ts +0 -14
  36. package/vite-plugin/node_modules/detect-libc/lib/detect-libc.js +0 -313
  37. package/vite-plugin/node_modules/detect-libc/lib/elf.js +0 -39
  38. package/vite-plugin/node_modules/detect-libc/lib/filesystem.js +0 -51
  39. package/vite-plugin/node_modules/detect-libc/lib/process.js +0 -24
  40. package/vite-plugin/node_modules/detect-libc/package.json +0 -44
  41. package/vite-plugin/node_modules/fdir/LICENSE +0 -7
  42. package/vite-plugin/node_modules/fdir/README.md +0 -91
  43. package/vite-plugin/node_modules/fdir/dist/index.cjs +0 -588
  44. package/vite-plugin/node_modules/fdir/dist/index.d.cts +0 -155
  45. package/vite-plugin/node_modules/fdir/dist/index.d.mts +0 -155
  46. package/vite-plugin/node_modules/fdir/dist/index.mjs +0 -570
  47. package/vite-plugin/node_modules/fdir/package.json +0 -103
  48. package/vite-plugin/node_modules/fsevents/LICENSE +0 -22
  49. package/vite-plugin/node_modules/fsevents/README.md +0 -89
  50. package/vite-plugin/node_modules/fsevents/fsevents.d.ts +0 -46
  51. package/vite-plugin/node_modules/fsevents/fsevents.js +0 -83
  52. package/vite-plugin/node_modules/fsevents/fsevents.node +0 -0
  53. package/vite-plugin/node_modules/fsevents/package.json +0 -62
  54. package/vite-plugin/node_modules/lightningcss/LICENSE +0 -373
  55. package/vite-plugin/node_modules/lightningcss/README.md +0 -105
  56. package/vite-plugin/node_modules/lightningcss/node/ast.d.ts +0 -9892
  57. package/vite-plugin/node_modules/lightningcss/node/ast.js.flow +0 -10539
  58. package/vite-plugin/node_modules/lightningcss/node/browserslistToTargets.js +0 -48
  59. package/vite-plugin/node_modules/lightningcss/node/composeVisitors.js +0 -450
  60. package/vite-plugin/node_modules/lightningcss/node/flags.js +0 -28
  61. package/vite-plugin/node_modules/lightningcss/node/index.d.ts +0 -494
  62. package/vite-plugin/node_modules/lightningcss/node/index.js +0 -59
  63. package/vite-plugin/node_modules/lightningcss/node/index.js.flow +0 -843
  64. package/vite-plugin/node_modules/lightningcss/node/index.mjs +0 -4
  65. package/vite-plugin/node_modules/lightningcss/node/targets.d.ts +0 -40
  66. package/vite-plugin/node_modules/lightningcss/node/targets.js.flow +0 -39
  67. package/vite-plugin/node_modules/lightningcss/package.json +0 -110
  68. package/vite-plugin/node_modules/lightningcss-darwin-arm64/LICENSE +0 -373
  69. package/vite-plugin/node_modules/lightningcss-darwin-arm64/README.md +0 -1
  70. package/vite-plugin/node_modules/lightningcss-darwin-arm64/lightningcss.darwin-arm64.node +0 -0
  71. package/vite-plugin/node_modules/lightningcss-darwin-arm64/package.json +0 -34
  72. package/vite-plugin/node_modules/nanoid/LICENSE +0 -20
  73. package/vite-plugin/node_modules/nanoid/README.md +0 -39
  74. package/vite-plugin/node_modules/nanoid/async/index.browser.cjs +0 -69
  75. package/vite-plugin/node_modules/nanoid/async/index.browser.js +0 -34
  76. package/vite-plugin/node_modules/nanoid/async/index.cjs +0 -71
  77. package/vite-plugin/node_modules/nanoid/async/index.d.ts +0 -56
  78. package/vite-plugin/node_modules/nanoid/async/index.js +0 -35
  79. package/vite-plugin/node_modules/nanoid/async/index.native.js +0 -26
  80. package/vite-plugin/node_modules/nanoid/async/package.json +0 -12
  81. package/vite-plugin/node_modules/nanoid/bin/nanoid.cjs +0 -55
  82. package/vite-plugin/node_modules/nanoid/index.browser.cjs +0 -72
  83. package/vite-plugin/node_modules/nanoid/index.browser.js +0 -34
  84. package/vite-plugin/node_modules/nanoid/index.cjs +0 -85
  85. package/vite-plugin/node_modules/nanoid/index.d.cts +0 -91
  86. package/vite-plugin/node_modules/nanoid/index.d.ts +0 -91
  87. package/vite-plugin/node_modules/nanoid/index.js +0 -45
  88. package/vite-plugin/node_modules/nanoid/nanoid.js +0 -1
  89. package/vite-plugin/node_modules/nanoid/non-secure/index.cjs +0 -34
  90. package/vite-plugin/node_modules/nanoid/non-secure/index.d.ts +0 -33
  91. package/vite-plugin/node_modules/nanoid/non-secure/index.js +0 -21
  92. package/vite-plugin/node_modules/nanoid/non-secure/package.json +0 -6
  93. package/vite-plugin/node_modules/nanoid/package.json +0 -89
  94. package/vite-plugin/node_modules/nanoid/url-alphabet/index.cjs +0 -7
  95. package/vite-plugin/node_modules/nanoid/url-alphabet/index.js +0 -3
  96. package/vite-plugin/node_modules/nanoid/url-alphabet/package.json +0 -6
  97. package/vite-plugin/node_modules/picocolors/LICENSE +0 -15
  98. package/vite-plugin/node_modules/picocolors/README.md +0 -21
  99. package/vite-plugin/node_modules/picocolors/package.json +0 -25
  100. package/vite-plugin/node_modules/picocolors/picocolors.browser.js +0 -4
  101. package/vite-plugin/node_modules/picocolors/picocolors.d.ts +0 -5
  102. package/vite-plugin/node_modules/picocolors/picocolors.js +0 -75
  103. package/vite-plugin/node_modules/picocolors/types.d.ts +0 -51
  104. package/vite-plugin/node_modules/picomatch/LICENSE +0 -21
  105. package/vite-plugin/node_modules/picomatch/README.md +0 -749
  106. package/vite-plugin/node_modules/picomatch/index.js +0 -17
  107. package/vite-plugin/node_modules/picomatch/lib/constants.js +0 -184
  108. package/vite-plugin/node_modules/picomatch/lib/parse.js +0 -1386
  109. package/vite-plugin/node_modules/picomatch/lib/picomatch.js +0 -349
  110. package/vite-plugin/node_modules/picomatch/lib/scan.js +0 -391
  111. package/vite-plugin/node_modules/picomatch/lib/utils.js +0 -72
  112. package/vite-plugin/node_modules/picomatch/package.json +0 -82
  113. package/vite-plugin/node_modules/picomatch/posix.js +0 -3
  114. package/vite-plugin/node_modules/postcss/LICENSE +0 -20
  115. package/vite-plugin/node_modules/postcss/README.md +0 -28
  116. package/vite-plugin/node_modules/postcss/lib/at-rule.d.ts +0 -139
  117. package/vite-plugin/node_modules/postcss/lib/at-rule.js +0 -25
  118. package/vite-plugin/node_modules/postcss/lib/comment.d.ts +0 -67
  119. package/vite-plugin/node_modules/postcss/lib/comment.js +0 -13
  120. package/vite-plugin/node_modules/postcss/lib/container.d.ts +0 -478
  121. package/vite-plugin/node_modules/postcss/lib/container.js +0 -447
  122. package/vite-plugin/node_modules/postcss/lib/css-syntax-error.d.ts +0 -247
  123. package/vite-plugin/node_modules/postcss/lib/css-syntax-error.js +0 -133
  124. package/vite-plugin/node_modules/postcss/lib/declaration.d.ts +0 -150
  125. package/vite-plugin/node_modules/postcss/lib/declaration.js +0 -24
  126. package/vite-plugin/node_modules/postcss/lib/document.d.ts +0 -68
  127. package/vite-plugin/node_modules/postcss/lib/document.js +0 -33
  128. package/vite-plugin/node_modules/postcss/lib/fromJSON.d.ts +0 -9
  129. package/vite-plugin/node_modules/postcss/lib/fromJSON.js +0 -54
  130. package/vite-plugin/node_modules/postcss/lib/input.d.ts +0 -226
  131. package/vite-plugin/node_modules/postcss/lib/input.js +0 -273
  132. package/vite-plugin/node_modules/postcss/lib/lazy-result.d.ts +0 -189
  133. package/vite-plugin/node_modules/postcss/lib/lazy-result.js +0 -550
  134. package/vite-plugin/node_modules/postcss/lib/list.d.ts +0 -60
  135. package/vite-plugin/node_modules/postcss/lib/list.js +0 -58
  136. package/vite-plugin/node_modules/postcss/lib/map-generator.js +0 -376
  137. package/vite-plugin/node_modules/postcss/lib/no-work-result.d.ts +0 -45
  138. package/vite-plugin/node_modules/postcss/lib/no-work-result.js +0 -137
  139. package/vite-plugin/node_modules/postcss/lib/node.d.ts +0 -555
  140. package/vite-plugin/node_modules/postcss/lib/node.js +0 -449
  141. package/vite-plugin/node_modules/postcss/lib/parse.d.ts +0 -9
  142. package/vite-plugin/node_modules/postcss/lib/parse.js +0 -42
  143. package/vite-plugin/node_modules/postcss/lib/parser.js +0 -611
  144. package/vite-plugin/node_modules/postcss/lib/postcss.d.mts +0 -66
  145. package/vite-plugin/node_modules/postcss/lib/postcss.d.ts +0 -456
  146. package/vite-plugin/node_modules/postcss/lib/postcss.js +0 -101
  147. package/vite-plugin/node_modules/postcss/lib/postcss.mjs +0 -30
  148. package/vite-plugin/node_modules/postcss/lib/previous-map.d.ts +0 -80
  149. package/vite-plugin/node_modules/postcss/lib/previous-map.js +0 -145
  150. package/vite-plugin/node_modules/postcss/lib/processor.d.ts +0 -114
  151. package/vite-plugin/node_modules/postcss/lib/processor.js +0 -67
  152. package/vite-plugin/node_modules/postcss/lib/result.d.ts +0 -204
  153. package/vite-plugin/node_modules/postcss/lib/result.js +0 -42
  154. package/vite-plugin/node_modules/postcss/lib/root.d.ts +0 -86
  155. package/vite-plugin/node_modules/postcss/lib/root.js +0 -61
  156. package/vite-plugin/node_modules/postcss/lib/rule.d.ts +0 -126
  157. package/vite-plugin/node_modules/postcss/lib/rule.js +0 -27
  158. package/vite-plugin/node_modules/postcss/lib/stringifier.d.ts +0 -45
  159. package/vite-plugin/node_modules/postcss/lib/stringifier.js +0 -370
  160. package/vite-plugin/node_modules/postcss/lib/stringify.d.ts +0 -9
  161. package/vite-plugin/node_modules/postcss/lib/stringify.js +0 -11
  162. package/vite-plugin/node_modules/postcss/lib/symbols.js +0 -5
  163. package/vite-plugin/node_modules/postcss/lib/terminal-highlight.js +0 -70
  164. package/vite-plugin/node_modules/postcss/lib/tokenize.js +0 -266
  165. package/vite-plugin/node_modules/postcss/lib/warn-once.js +0 -13
  166. package/vite-plugin/node_modules/postcss/lib/warning.d.ts +0 -146
  167. package/vite-plugin/node_modules/postcss/lib/warning.js +0 -37
  168. package/vite-plugin/node_modules/postcss/package.json +0 -88
  169. package/vite-plugin/node_modules/rolldown/LICENSE +0 -25
  170. package/vite-plugin/node_modules/rolldown/README.md +0 -11
  171. package/vite-plugin/node_modules/rolldown/bin/cli.mjs +0 -2
  172. package/vite-plugin/node_modules/rolldown/dist/cli.d.mts +0 -1
  173. package/vite-plugin/node_modules/rolldown/dist/cli.mjs +0 -1191
  174. package/vite-plugin/node_modules/rolldown/dist/config.d.mts +0 -14
  175. package/vite-plugin/node_modules/rolldown/dist/config.mjs +0 -4
  176. package/vite-plugin/node_modules/rolldown/dist/experimental-index.d.mts +0 -253
  177. package/vite-plugin/node_modules/rolldown/dist/experimental-index.mjs +0 -320
  178. package/vite-plugin/node_modules/rolldown/dist/experimental-runtime-types.d.ts +0 -98
  179. package/vite-plugin/node_modules/rolldown/dist/filter-index.d.mts +0 -196
  180. package/vite-plugin/node_modules/rolldown/dist/filter-index.mjs +0 -386
  181. package/vite-plugin/node_modules/rolldown/dist/get-log-filter.d.mts +0 -3
  182. package/vite-plugin/node_modules/rolldown/dist/get-log-filter.mjs +0 -68
  183. package/vite-plugin/node_modules/rolldown/dist/index.d.mts +0 -4
  184. package/vite-plugin/node_modules/rolldown/dist/index.mjs +0 -50
  185. package/vite-plugin/node_modules/rolldown/dist/parallel-plugin-worker.d.mts +0 -1
  186. package/vite-plugin/node_modules/rolldown/dist/parallel-plugin-worker.mjs +0 -28
  187. package/vite-plugin/node_modules/rolldown/dist/parallel-plugin.d.mts +0 -13
  188. package/vite-plugin/node_modules/rolldown/dist/parallel-plugin.mjs +0 -6
  189. package/vite-plugin/node_modules/rolldown/dist/parse-ast-index.d.mts +0 -32
  190. package/vite-plugin/node_modules/rolldown/dist/parse-ast-index.mjs +0 -60
  191. package/vite-plugin/node_modules/rolldown/dist/plugins-index.d.mts +0 -33
  192. package/vite-plugin/node_modules/rolldown/dist/plugins-index.mjs +0 -40
  193. package/vite-plugin/node_modules/rolldown/dist/shared/binding-BeU_1iEk.mjs +0 -582
  194. package/vite-plugin/node_modules/rolldown/dist/shared/binding-zH1vcmbM.d.mts +0 -1899
  195. package/vite-plugin/node_modules/rolldown/dist/shared/bindingify-input-options-DbbBhzky.mjs +0 -2211
  196. package/vite-plugin/node_modules/rolldown/dist/shared/constructors-C2EWPKW3.mjs +0 -68
  197. package/vite-plugin/node_modules/rolldown/dist/shared/constructors-D0W3rNfA.d.mts +0 -37
  198. package/vite-plugin/node_modules/rolldown/dist/shared/define-config-5HJ1b9vG.d.mts +0 -3829
  199. package/vite-plugin/node_modules/rolldown/dist/shared/define-config-DJOr6Iwt.mjs +0 -6
  200. package/vite-plugin/node_modules/rolldown/dist/shared/error-DL-e8-oE.mjs +0 -85
  201. package/vite-plugin/node_modules/rolldown/dist/shared/get-log-filter-semyr3Lj.d.mts +0 -35
  202. package/vite-plugin/node_modules/rolldown/dist/shared/load-config-BoVO31Un.mjs +0 -120
  203. package/vite-plugin/node_modules/rolldown/dist/shared/logging-C6h4g8dA.d.mts +0 -50
  204. package/vite-plugin/node_modules/rolldown/dist/shared/logs-D80CXhvg.mjs +0 -180
  205. package/vite-plugin/node_modules/rolldown/dist/shared/misc-DJYbNKZX.mjs +0 -21
  206. package/vite-plugin/node_modules/rolldown/dist/shared/normalize-string-or-regex-CbQQ69gT.mjs +0 -66
  207. package/vite-plugin/node_modules/rolldown/dist/shared/parse-B_ZnWxLZ.mjs +0 -74
  208. package/vite-plugin/node_modules/rolldown/dist/shared/prompt-U5ajztzG.mjs +0 -847
  209. package/vite-plugin/node_modules/rolldown/dist/shared/resolve-tsconfig-CfYpGzid.mjs +0 -113
  210. package/vite-plugin/node_modules/rolldown/dist/shared/rolldown-D3JZ9rMt.mjs +0 -40
  211. package/vite-plugin/node_modules/rolldown/dist/shared/rolldown-build-DSxL8qiP.mjs +0 -3325
  212. package/vite-plugin/node_modules/rolldown/dist/shared/transform-DgZ3paSD.d.mts +0 -149
  213. package/vite-plugin/node_modules/rolldown/dist/shared/watch-Bd8v9ewv.mjs +0 -374
  214. package/vite-plugin/node_modules/rolldown/dist/utils-index.d.mts +0 -376
  215. package/vite-plugin/node_modules/rolldown/dist/utils-index.mjs +0 -2414
  216. package/vite-plugin/node_modules/rolldown/package.json +0 -153
  217. package/vite-plugin/node_modules/source-map-js/LICENSE +0 -28
  218. package/vite-plugin/node_modules/source-map-js/README.md +0 -765
  219. package/vite-plugin/node_modules/source-map-js/lib/array-set.js +0 -121
  220. package/vite-plugin/node_modules/source-map-js/lib/base64-vlq.js +0 -140
  221. package/vite-plugin/node_modules/source-map-js/lib/base64.js +0 -67
  222. package/vite-plugin/node_modules/source-map-js/lib/binary-search.js +0 -111
  223. package/vite-plugin/node_modules/source-map-js/lib/mapping-list.js +0 -79
  224. package/vite-plugin/node_modules/source-map-js/lib/quick-sort.js +0 -132
  225. package/vite-plugin/node_modules/source-map-js/lib/source-map-consumer.d.ts +0 -1
  226. package/vite-plugin/node_modules/source-map-js/lib/source-map-consumer.js +0 -1188
  227. package/vite-plugin/node_modules/source-map-js/lib/source-map-generator.d.ts +0 -1
  228. package/vite-plugin/node_modules/source-map-js/lib/source-map-generator.js +0 -444
  229. package/vite-plugin/node_modules/source-map-js/lib/source-node.d.ts +0 -1
  230. package/vite-plugin/node_modules/source-map-js/lib/source-node.js +0 -413
  231. package/vite-plugin/node_modules/source-map-js/lib/util.js +0 -594
  232. package/vite-plugin/node_modules/source-map-js/package.json +0 -71
  233. package/vite-plugin/node_modules/source-map-js/source-map.d.ts +0 -104
  234. package/vite-plugin/node_modules/source-map-js/source-map.js +0 -8
  235. package/vite-plugin/node_modules/tinyglobby/LICENSE +0 -21
  236. package/vite-plugin/node_modules/tinyglobby/README.md +0 -25
  237. package/vite-plugin/node_modules/tinyglobby/dist/index.cjs +0 -334
  238. package/vite-plugin/node_modules/tinyglobby/dist/index.d.cts +0 -148
  239. package/vite-plugin/node_modules/tinyglobby/dist/index.d.mts +0 -148
  240. package/vite-plugin/node_modules/tinyglobby/dist/index.mjs +0 -306
  241. package/vite-plugin/node_modules/tinyglobby/package.json +0 -73
  242. package/vite-plugin/node_modules/vite/LICENSE.md +0 -2230
  243. package/vite-plugin/node_modules/vite/README.md +0 -20
  244. package/vite-plugin/node_modules/vite/bin/openChrome.js +0 -68
  245. package/vite-plugin/node_modules/vite/bin/vite.js +0 -79
  246. package/vite-plugin/node_modules/vite/client.d.ts +0 -282
  247. package/vite-plugin/node_modules/vite/dist/client/client.mjs +0 -1237
  248. package/vite-plugin/node_modules/vite/dist/client/env.mjs +0 -18
  249. package/vite-plugin/node_modules/vite/dist/node/chunks/build.js +0 -5381
  250. package/vite-plugin/node_modules/vite/dist/node/chunks/chunk.js +0 -37
  251. package/vite-plugin/node_modules/vite/dist/node/chunks/dist.js +0 -6784
  252. package/vite-plugin/node_modules/vite/dist/node/chunks/lib.js +0 -371
  253. package/vite-plugin/node_modules/vite/dist/node/chunks/logger.js +0 -322
  254. package/vite-plugin/node_modules/vite/dist/node/chunks/moduleRunnerTransport.d.ts +0 -96
  255. package/vite-plugin/node_modules/vite/dist/node/chunks/node.js +0 -34874
  256. package/vite-plugin/node_modules/vite/dist/node/chunks/postcss-import.js +0 -467
  257. package/vite-plugin/node_modules/vite/dist/node/cli.js +0 -837
  258. package/vite-plugin/node_modules/vite/dist/node/index.d.ts +0 -3867
  259. package/vite-plugin/node_modules/vite/dist/node/index.js +0 -3
  260. package/vite-plugin/node_modules/vite/dist/node/internal.d.ts +0 -2
  261. package/vite-plugin/node_modules/vite/dist/node/internal.js +0 -2
  262. package/vite-plugin/node_modules/vite/dist/node/module-runner.d.ts +0 -315
  263. package/vite-plugin/node_modules/vite/dist/node/module-runner.js +0 -1262
  264. package/vite-plugin/node_modules/vite/misc/false.js +0 -1
  265. package/vite-plugin/node_modules/vite/misc/true.js +0 -1
  266. package/vite-plugin/node_modules/vite/package.json +0 -192
  267. package/vite-plugin/node_modules/vite/types/customEvent.d.ts +0 -79
  268. package/vite-plugin/node_modules/vite/types/hmrPayload.d.ts +0 -80
  269. package/vite-plugin/node_modules/vite/types/hot.d.ts +0 -39
  270. package/vite-plugin/node_modules/vite/types/import-meta.d.ts +0 -5
  271. package/vite-plugin/node_modules/vite/types/importGlob.d.ts +0 -89
  272. package/vite-plugin/node_modules/vite/types/importMeta.d.ts +0 -30
  273. package/vite-plugin/node_modules/vite/types/internal/cssPreprocessorOptions.d.ts +0 -44
  274. package/vite-plugin/node_modules/vite/types/internal/esbuildOptions.d.ts +0 -28
  275. package/vite-plugin/node_modules/vite/types/internal/lightningcssOptions.d.ts +0 -18
  276. package/vite-plugin/node_modules/vite/types/internal/rollupTypeCompat.d.ts +0 -24
  277. package/vite-plugin/node_modules/vite/types/internal/terserOptions.d.ts +0 -11
  278. package/vite-plugin/node_modules/vite/types/metadata.d.ts +0 -47
  279. package/vite-plugin/package.json +0 -17
@@ -1,478 +0,0 @@
1
- import AtRule from './at-rule.js'
2
- import Comment from './comment.js'
3
- import Declaration from './declaration.js'
4
- import Node, { ChildNode, ChildProps, NodeProps } from './node.js'
5
- import { Root } from './postcss.js'
6
- import Rule from './rule.js'
7
-
8
- declare namespace Container {
9
- export type ContainerWithChildren<Child extends Node = ChildNode> = {
10
- nodes: Child[]
11
- } & (AtRule | Root | Rule)
12
-
13
- export interface ValueOptions {
14
- /**
15
- * String that’s used to narrow down values and speed up the regexp search.
16
- */
17
- fast?: string
18
-
19
- /**
20
- * An array of property names.
21
- */
22
- props?: readonly string[]
23
- }
24
-
25
- export interface ContainerProps extends NodeProps {
26
- nodes?: readonly (ChildProps | Node)[]
27
- }
28
-
29
- /**
30
- * All types that can be passed into container methods to create or add a new
31
- * child node.
32
- */
33
- export type NewChild =
34
- | ChildProps
35
- | Node
36
- | readonly ChildProps[]
37
- | readonly Node[]
38
- | readonly string[]
39
- | string
40
- | undefined
41
-
42
- export { Container_ as default }
43
- }
44
-
45
- /**
46
- * The `Root`, `AtRule`, and `Rule` container nodes
47
- * inherit some common methods to help work with their children.
48
- *
49
- * Note that all containers can store any content. If you write a rule inside
50
- * a rule, PostCSS will parse it.
51
- */
52
- declare abstract class Container_<Child extends Node = ChildNode> extends Node {
53
- /**
54
- * An array containing the container’s children.
55
- *
56
- * ```js
57
- * const root = postcss.parse('a { color: black }')
58
- * root.nodes.length //=> 1
59
- * root.nodes[0].selector //=> 'a'
60
- * root.nodes[0].nodes[0].prop //=> 'color'
61
- * ```
62
- */
63
- nodes: Child[] | undefined
64
-
65
- /**
66
- * The container’s first child.
67
- *
68
- * ```js
69
- * rule.first === rules.nodes[0]
70
- * ```
71
- */
72
- get first(): Child | undefined
73
-
74
- /**
75
- * The container’s last child.
76
- *
77
- * ```js
78
- * rule.last === rule.nodes[rule.nodes.length - 1]
79
- * ```
80
- */
81
- get last(): Child | undefined
82
- /**
83
- * Inserts new nodes to the end of the container.
84
- *
85
- * ```js
86
- * const decl1 = new Declaration({ prop: 'color', value: 'black' })
87
- * const decl2 = new Declaration({ prop: 'background-color', value: 'white' })
88
- * rule.append(decl1, decl2)
89
- *
90
- * root.append({ name: 'charset', params: '"UTF-8"' }) // at-rule
91
- * root.append({ selector: 'a' }) // rule
92
- * rule.append({ prop: 'color', value: 'black' }) // declaration
93
- * rule.append({ text: 'Comment' }) // comment
94
- *
95
- * root.append('a {}')
96
- * root.first.append('color: black; z-index: 1')
97
- * ```
98
- *
99
- * @param nodes New nodes.
100
- * @return This node for methods chain.
101
- */
102
- append(...nodes: Container.NewChild[]): this
103
- assign(overrides: Container.ContainerProps | object): this
104
- clone(overrides?: Partial<Container.ContainerProps>): this
105
-
106
- cloneAfter(overrides?: Partial<Container.ContainerProps>): this
107
-
108
- cloneBefore(overrides?: Partial<Container.ContainerProps>): this
109
- /**
110
- * Iterates through the container’s immediate children,
111
- * calling `callback` for each child.
112
- *
113
- * Returning `false` in the callback will break iteration.
114
- *
115
- * This method only iterates through the container’s immediate children.
116
- * If you need to recursively iterate through all the container’s descendant
117
- * nodes, use `Container#walk`.
118
- *
119
- * Unlike the for `{}`-cycle or `Array#forEach` this iterator is safe
120
- * if you are mutating the array of child nodes during iteration.
121
- * PostCSS will adjust the current index to match the mutations.
122
- *
123
- * ```js
124
- * const root = postcss.parse('a { color: black; z-index: 1 }')
125
- * const rule = root.first
126
- *
127
- * for (const decl of rule.nodes) {
128
- * decl.cloneBefore({ prop: '-webkit-' + decl.prop })
129
- * // Cycle will be infinite, because cloneBefore moves the current node
130
- * // to the next index
131
- * }
132
- *
133
- * rule.each(decl => {
134
- * decl.cloneBefore({ prop: '-webkit-' + decl.prop })
135
- * // Will be executed only for color and z-index
136
- * })
137
- * ```
138
- *
139
- * @param callback Iterator receives each node and index.
140
- * @return Returns `false` if iteration was broke.
141
- */
142
- each(
143
- callback: (node: Child, index: number) => false | void
144
- ): false | undefined
145
-
146
- /**
147
- * Returns `true` if callback returns `true`
148
- * for all of the container’s children.
149
- *
150
- * ```js
151
- * const noPrefixes = rule.every(i => i.prop[0] !== '-')
152
- * ```
153
- *
154
- * @param condition Iterator returns true or false.
155
- * @return Is every child pass condition.
156
- */
157
- every(
158
- condition: (node: Child, index: number, nodes: Child[]) => boolean
159
- ): boolean
160
- /**
161
- * Returns a `child`’s index within the `Container#nodes` array.
162
- *
163
- * ```js
164
- * rule.index( rule.nodes[2] ) //=> 2
165
- * ```
166
- *
167
- * @param child Child of the current container.
168
- * @return Child index.
169
- */
170
- index(child: Child | number): number
171
-
172
- /**
173
- * Insert new node after old node within the container.
174
- *
175
- * @param oldNode Child or child’s index.
176
- * @param newNode New node.
177
- * @return This node for methods chain.
178
- */
179
- insertAfter(oldNode: Child | number, newNode: Container.NewChild): this
180
-
181
- /**
182
- * Traverses the container’s descendant nodes, calling callback
183
- * for each comment node.
184
- *
185
- * Like `Container#each`, this method is safe
186
- * to use if you are mutating arrays during iteration.
187
- *
188
- * ```js
189
- * root.walkComments(comment => {
190
- * comment.remove()
191
- * })
192
- * ```
193
- *
194
- * @param callback Iterator receives each node and index.
195
- * @return Returns `false` if iteration was broke.
196
- */
197
-
198
- /**
199
- * Insert new node before old node within the container.
200
- *
201
- * ```js
202
- * rule.insertBefore(decl, decl.clone({ prop: '-webkit-' + decl.prop }))
203
- * ```
204
- *
205
- * @param oldNode Child or child’s index.
206
- * @param newNode New node.
207
- * @return This node for methods chain.
208
- */
209
- insertBefore(oldNode: Child | number, newNode: Container.NewChild): this
210
- /**
211
- * Inserts new nodes to the start of the container.
212
- *
213
- * ```js
214
- * const decl1 = new Declaration({ prop: 'color', value: 'black' })
215
- * const decl2 = new Declaration({ prop: 'background-color', value: 'white' })
216
- * rule.prepend(decl1, decl2)
217
- *
218
- * root.append({ name: 'charset', params: '"UTF-8"' }) // at-rule
219
- * root.append({ selector: 'a' }) // rule
220
- * rule.append({ prop: 'color', value: 'black' }) // declaration
221
- * rule.append({ text: 'Comment' }) // comment
222
- *
223
- * root.append('a {}')
224
- * root.first.append('color: black; z-index: 1')
225
- * ```
226
- *
227
- * @param nodes New nodes.
228
- * @return This node for methods chain.
229
- */
230
- prepend(...nodes: Container.NewChild[]): this
231
-
232
- /**
233
- * Add child to the end of the node.
234
- *
235
- * ```js
236
- * rule.push(new Declaration({ prop: 'color', value: 'black' }))
237
- * ```
238
- *
239
- * @param child New node.
240
- * @return This node for methods chain.
241
- */
242
- push(child: Child): this
243
-
244
- /**
245
- * Removes all children from the container
246
- * and cleans their parent properties.
247
- *
248
- * ```js
249
- * rule.removeAll()
250
- * rule.nodes.length //=> 0
251
- * ```
252
- *
253
- * @return This node for methods chain.
254
- */
255
- removeAll(): this
256
-
257
- /**
258
- * Removes node from the container and cleans the parent properties
259
- * from the node and its children.
260
- *
261
- * ```js
262
- * rule.nodes.length //=> 5
263
- * rule.removeChild(decl)
264
- * rule.nodes.length //=> 4
265
- * decl.parent //=> undefined
266
- * ```
267
- *
268
- * @param child Child or child’s index.
269
- * @return This node for methods chain.
270
- */
271
- removeChild(child: Child | number): this
272
-
273
- replaceValues(
274
- pattern: RegExp | string,
275
- replaced: { (substring: string, ...args: any[]): string } | string
276
- ): this
277
- /**
278
- * Passes all declaration values within the container that match pattern
279
- * through callback, replacing those values with the returned result
280
- * of callback.
281
- *
282
- * This method is useful if you are using a custom unit or function
283
- * and need to iterate through all values.
284
- *
285
- * ```js
286
- * root.replaceValues(/\d+rem/, { fast: 'rem' }, string => {
287
- * return 15 * parseInt(string) + 'px'
288
- * })
289
- * ```
290
- *
291
- * @param pattern Replace pattern.
292
- * @param {object} options Options to speed up the search.
293
- * @param replaced String to replace pattern or callback
294
- * that returns a new value. The callback
295
- * will receive the same arguments
296
- * as those passed to a function parameter
297
- * of `String#replace`.
298
- * @return This node for methods chain.
299
- */
300
- replaceValues(
301
- pattern: RegExp | string,
302
- options: Container.ValueOptions,
303
- replaced: { (substring: string, ...args: any[]): string } | string
304
- ): this
305
-
306
- /**
307
- * Returns `true` if callback returns `true` for (at least) one
308
- * of the container’s children.
309
- *
310
- * ```js
311
- * const hasPrefix = rule.some(i => i.prop[0] === '-')
312
- * ```
313
- *
314
- * @param condition Iterator returns true or false.
315
- * @return Is some child pass condition.
316
- */
317
- some(
318
- condition: (node: Child, index: number, nodes: Child[]) => boolean
319
- ): boolean
320
-
321
- /**
322
- * Traverses the container’s descendant nodes, calling callback
323
- * for each node.
324
- *
325
- * Like container.each(), this method is safe to use
326
- * if you are mutating arrays during iteration.
327
- *
328
- * If you only need to iterate through the container’s immediate children,
329
- * use `Container#each`.
330
- *
331
- * ```js
332
- * root.walk(node => {
333
- * // Traverses all descendant nodes.
334
- * })
335
- * ```
336
- *
337
- * @param callback Iterator receives each node and index.
338
- * @return Returns `false` if iteration was broke.
339
- */
340
- walk(
341
- callback: (node: ChildNode, index: number) => false | void
342
- ): false | undefined
343
-
344
- /**
345
- * Traverses the container’s descendant nodes, calling callback
346
- * for each at-rule node.
347
- *
348
- * If you pass a filter, iteration will only happen over at-rules
349
- * that have matching names.
350
- *
351
- * Like `Container#each`, this method is safe
352
- * to use if you are mutating arrays during iteration.
353
- *
354
- * ```js
355
- * root.walkAtRules(rule => {
356
- * if (isOld(rule.name)) rule.remove()
357
- * })
358
- *
359
- * let first = false
360
- * root.walkAtRules('charset', rule => {
361
- * if (!first) {
362
- * first = true
363
- * } else {
364
- * rule.remove()
365
- * }
366
- * })
367
- * ```
368
- *
369
- * @param name String or regular expression to filter at-rules by name.
370
- * @param callback Iterator receives each node and index.
371
- * @return Returns `false` if iteration was broke.
372
- */
373
- walkAtRules(
374
- nameFilter: RegExp | string,
375
- callback: (atRule: AtRule, index: number) => false | void
376
- ): false | undefined
377
- walkAtRules(
378
- callback: (atRule: AtRule, index: number) => false | void
379
- ): false | undefined
380
-
381
- walkComments(
382
- callback: (comment: Comment, indexed: number) => false | void
383
- ): false | undefined
384
- walkComments(
385
- callback: (comment: Comment, indexed: number) => false | void
386
- ): false | undefined
387
-
388
- /**
389
- * Traverses the container’s descendant nodes, calling callback
390
- * for each declaration node.
391
- *
392
- * If you pass a filter, iteration will only happen over declarations
393
- * with matching properties.
394
- *
395
- * ```js
396
- * root.walkDecls(decl => {
397
- * checkPropertySupport(decl.prop)
398
- * })
399
- *
400
- * root.walkDecls('border-radius', decl => {
401
- * decl.remove()
402
- * })
403
- *
404
- * root.walkDecls(/^background/, decl => {
405
- * decl.value = takeFirstColorFromGradient(decl.value)
406
- * })
407
- * ```
408
- *
409
- * Like `Container#each`, this method is safe
410
- * to use if you are mutating arrays during iteration.
411
- *
412
- * @param prop String or regular expression to filter declarations
413
- * by property name.
414
- * @param callback Iterator receives each node and index.
415
- * @return Returns `false` if iteration was broke.
416
- */
417
- walkDecls(
418
- propFilter: RegExp | string,
419
- callback: (decl: Declaration, index: number) => false | void
420
- ): false | undefined
421
- walkDecls(
422
- callback: (decl: Declaration, index: number) => false | void
423
- ): false | undefined
424
- /**
425
- * Traverses the container’s descendant nodes, calling callback
426
- * for each rule node.
427
- *
428
- * If you pass a filter, iteration will only happen over rules
429
- * with matching selectors.
430
- *
431
- * Like `Container#each`, this method is safe
432
- * to use if you are mutating arrays during iteration.
433
- *
434
- * ```js
435
- * const selectors = []
436
- * root.walkRules(rule => {
437
- * selectors.push(rule.selector)
438
- * })
439
- * console.log(`Your CSS uses ${ selectors.length } selectors`)
440
- * ```
441
- *
442
- * @param selector String or regular expression to filter rules by selector.
443
- * @param callback Iterator receives each node and index.
444
- * @return Returns `false` if iteration was broke.
445
- */
446
- walkRules(
447
- selectorFilter: RegExp | string,
448
- callback: (rule: Rule, index: number) => false | void
449
- ): false | undefined
450
- walkRules(
451
- callback: (rule: Rule, index: number) => false | void
452
- ): false | undefined
453
- /**
454
- * An internal method that converts a {@link NewChild} into a list of actual
455
- * child nodes that can then be added to this container.
456
- *
457
- * This ensures that the nodes' parent is set to this container, that they use
458
- * the correct prototype chain, and that they're marked as dirty.
459
- *
460
- * @param mnodes The new node or nodes to add.
461
- * @param sample A node from whose raws the new node's `before` raw should be
462
- * taken.
463
- * @param type This should be set to `'prepend'` if the new nodes will be
464
- * inserted at the beginning of the container.
465
- * @hidden
466
- */
467
- protected normalize(
468
- nodes: Container.NewChild,
469
- sample: Node | undefined,
470
- type?: 'prepend' | false
471
- ): Child[]
472
- }
473
-
474
- declare class Container<
475
- Child extends Node = ChildNode
476
- > extends Container_<Child> {}
477
-
478
- export = Container