mockaton 13.9.10 → 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 (274) hide show
  1. package/package.json +3 -2
  2. package/src/client/app-header.js +62 -42
  3. package/src/client/app.css +18 -0
  4. package/vite-plugin/README.md +0 -29
  5. package/vite-plugin/node_modules/.package-lock.json +0 -356
  6. package/vite-plugin/node_modules/@oxc-project/types/LICENSE +0 -22
  7. package/vite-plugin/node_modules/@oxc-project/types/README.md +0 -3
  8. package/vite-plugin/node_modules/@oxc-project/types/package.json +0 -26
  9. package/vite-plugin/node_modules/@oxc-project/types/types.d.ts +0 -1912
  10. package/vite-plugin/node_modules/@rolldown/binding-darwin-arm64/README.md +0 -3
  11. package/vite-plugin/node_modules/@rolldown/binding-darwin-arm64/package.json +0 -37
  12. package/vite-plugin/node_modules/@rolldown/binding-darwin-arm64/rolldown-binding.darwin-arm64.node +0 -0
  13. package/vite-plugin/node_modules/@rolldown/pluginutils/LICENSE +0 -25
  14. package/vite-plugin/node_modules/@rolldown/pluginutils/README.md +0 -83
  15. package/vite-plugin/node_modules/@rolldown/pluginutils/dist/filter/composable-filters.d.ts +0 -90
  16. package/vite-plugin/node_modules/@rolldown/pluginutils/dist/filter/composable-filters.js +0 -256
  17. package/vite-plugin/node_modules/@rolldown/pluginutils/dist/filter/filter-vite-plugins.d.ts +0 -28
  18. package/vite-plugin/node_modules/@rolldown/pluginutils/dist/filter/filter-vite-plugins.js +0 -75
  19. package/vite-plugin/node_modules/@rolldown/pluginutils/dist/filter/index.d.ts +0 -3
  20. package/vite-plugin/node_modules/@rolldown/pluginutils/dist/filter/index.js +0 -3
  21. package/vite-plugin/node_modules/@rolldown/pluginutils/dist/filter/simple-filters.d.ts +0 -71
  22. package/vite-plugin/node_modules/@rolldown/pluginutils/dist/filter/simple-filters.js +0 -70
  23. package/vite-plugin/node_modules/@rolldown/pluginutils/dist/index.d.ts +0 -1
  24. package/vite-plugin/node_modules/@rolldown/pluginutils/dist/index.js +0 -1
  25. package/vite-plugin/node_modules/@rolldown/pluginutils/dist/utils.d.ts +0 -2
  26. package/vite-plugin/node_modules/@rolldown/pluginutils/dist/utils.js +0 -17
  27. package/vite-plugin/node_modules/@rolldown/pluginutils/package.json +0 -37
  28. package/vite-plugin/node_modules/detect-libc/LICENSE +0 -201
  29. package/vite-plugin/node_modules/detect-libc/README.md +0 -163
  30. package/vite-plugin/node_modules/detect-libc/index.d.ts +0 -14
  31. package/vite-plugin/node_modules/detect-libc/lib/detect-libc.js +0 -313
  32. package/vite-plugin/node_modules/detect-libc/lib/elf.js +0 -39
  33. package/vite-plugin/node_modules/detect-libc/lib/filesystem.js +0 -51
  34. package/vite-plugin/node_modules/detect-libc/lib/process.js +0 -24
  35. package/vite-plugin/node_modules/detect-libc/package.json +0 -44
  36. package/vite-plugin/node_modules/fdir/LICENSE +0 -7
  37. package/vite-plugin/node_modules/fdir/README.md +0 -91
  38. package/vite-plugin/node_modules/fdir/dist/index.cjs +0 -588
  39. package/vite-plugin/node_modules/fdir/dist/index.d.cts +0 -155
  40. package/vite-plugin/node_modules/fdir/dist/index.d.mts +0 -155
  41. package/vite-plugin/node_modules/fdir/dist/index.mjs +0 -570
  42. package/vite-plugin/node_modules/fdir/package.json +0 -103
  43. package/vite-plugin/node_modules/fsevents/LICENSE +0 -22
  44. package/vite-plugin/node_modules/fsevents/README.md +0 -89
  45. package/vite-plugin/node_modules/fsevents/fsevents.d.ts +0 -46
  46. package/vite-plugin/node_modules/fsevents/fsevents.js +0 -83
  47. package/vite-plugin/node_modules/fsevents/fsevents.node +0 -0
  48. package/vite-plugin/node_modules/fsevents/package.json +0 -62
  49. package/vite-plugin/node_modules/lightningcss/LICENSE +0 -373
  50. package/vite-plugin/node_modules/lightningcss/README.md +0 -105
  51. package/vite-plugin/node_modules/lightningcss/node/ast.d.ts +0 -9892
  52. package/vite-plugin/node_modules/lightningcss/node/ast.js.flow +0 -10539
  53. package/vite-plugin/node_modules/lightningcss/node/browserslistToTargets.js +0 -48
  54. package/vite-plugin/node_modules/lightningcss/node/composeVisitors.js +0 -450
  55. package/vite-plugin/node_modules/lightningcss/node/flags.js +0 -28
  56. package/vite-plugin/node_modules/lightningcss/node/index.d.ts +0 -494
  57. package/vite-plugin/node_modules/lightningcss/node/index.js +0 -59
  58. package/vite-plugin/node_modules/lightningcss/node/index.js.flow +0 -843
  59. package/vite-plugin/node_modules/lightningcss/node/index.mjs +0 -4
  60. package/vite-plugin/node_modules/lightningcss/node/targets.d.ts +0 -40
  61. package/vite-plugin/node_modules/lightningcss/node/targets.js.flow +0 -39
  62. package/vite-plugin/node_modules/lightningcss/package.json +0 -110
  63. package/vite-plugin/node_modules/lightningcss-darwin-arm64/LICENSE +0 -373
  64. package/vite-plugin/node_modules/lightningcss-darwin-arm64/README.md +0 -1
  65. package/vite-plugin/node_modules/lightningcss-darwin-arm64/lightningcss.darwin-arm64.node +0 -0
  66. package/vite-plugin/node_modules/lightningcss-darwin-arm64/package.json +0 -34
  67. package/vite-plugin/node_modules/nanoid/LICENSE +0 -20
  68. package/vite-plugin/node_modules/nanoid/README.md +0 -39
  69. package/vite-plugin/node_modules/nanoid/async/index.browser.cjs +0 -69
  70. package/vite-plugin/node_modules/nanoid/async/index.browser.js +0 -34
  71. package/vite-plugin/node_modules/nanoid/async/index.cjs +0 -71
  72. package/vite-plugin/node_modules/nanoid/async/index.d.ts +0 -56
  73. package/vite-plugin/node_modules/nanoid/async/index.js +0 -35
  74. package/vite-plugin/node_modules/nanoid/async/index.native.js +0 -26
  75. package/vite-plugin/node_modules/nanoid/async/package.json +0 -12
  76. package/vite-plugin/node_modules/nanoid/bin/nanoid.cjs +0 -55
  77. package/vite-plugin/node_modules/nanoid/index.browser.cjs +0 -72
  78. package/vite-plugin/node_modules/nanoid/index.browser.js +0 -34
  79. package/vite-plugin/node_modules/nanoid/index.cjs +0 -85
  80. package/vite-plugin/node_modules/nanoid/index.d.cts +0 -91
  81. package/vite-plugin/node_modules/nanoid/index.d.ts +0 -91
  82. package/vite-plugin/node_modules/nanoid/index.js +0 -45
  83. package/vite-plugin/node_modules/nanoid/nanoid.js +0 -1
  84. package/vite-plugin/node_modules/nanoid/non-secure/index.cjs +0 -34
  85. package/vite-plugin/node_modules/nanoid/non-secure/index.d.ts +0 -33
  86. package/vite-plugin/node_modules/nanoid/non-secure/index.js +0 -21
  87. package/vite-plugin/node_modules/nanoid/non-secure/package.json +0 -6
  88. package/vite-plugin/node_modules/nanoid/package.json +0 -89
  89. package/vite-plugin/node_modules/nanoid/url-alphabet/index.cjs +0 -7
  90. package/vite-plugin/node_modules/nanoid/url-alphabet/index.js +0 -3
  91. package/vite-plugin/node_modules/nanoid/url-alphabet/package.json +0 -6
  92. package/vite-plugin/node_modules/picocolors/LICENSE +0 -15
  93. package/vite-plugin/node_modules/picocolors/README.md +0 -21
  94. package/vite-plugin/node_modules/picocolors/package.json +0 -25
  95. package/vite-plugin/node_modules/picocolors/picocolors.browser.js +0 -4
  96. package/vite-plugin/node_modules/picocolors/picocolors.d.ts +0 -5
  97. package/vite-plugin/node_modules/picocolors/picocolors.js +0 -75
  98. package/vite-plugin/node_modules/picocolors/types.d.ts +0 -51
  99. package/vite-plugin/node_modules/picomatch/LICENSE +0 -21
  100. package/vite-plugin/node_modules/picomatch/README.md +0 -749
  101. package/vite-plugin/node_modules/picomatch/index.js +0 -17
  102. package/vite-plugin/node_modules/picomatch/lib/constants.js +0 -184
  103. package/vite-plugin/node_modules/picomatch/lib/parse.js +0 -1386
  104. package/vite-plugin/node_modules/picomatch/lib/picomatch.js +0 -349
  105. package/vite-plugin/node_modules/picomatch/lib/scan.js +0 -391
  106. package/vite-plugin/node_modules/picomatch/lib/utils.js +0 -72
  107. package/vite-plugin/node_modules/picomatch/package.json +0 -82
  108. package/vite-plugin/node_modules/picomatch/posix.js +0 -3
  109. package/vite-plugin/node_modules/postcss/LICENSE +0 -20
  110. package/vite-plugin/node_modules/postcss/README.md +0 -28
  111. package/vite-plugin/node_modules/postcss/lib/at-rule.d.ts +0 -139
  112. package/vite-plugin/node_modules/postcss/lib/at-rule.js +0 -25
  113. package/vite-plugin/node_modules/postcss/lib/comment.d.ts +0 -67
  114. package/vite-plugin/node_modules/postcss/lib/comment.js +0 -13
  115. package/vite-plugin/node_modules/postcss/lib/container.d.ts +0 -478
  116. package/vite-plugin/node_modules/postcss/lib/container.js +0 -447
  117. package/vite-plugin/node_modules/postcss/lib/css-syntax-error.d.ts +0 -247
  118. package/vite-plugin/node_modules/postcss/lib/css-syntax-error.js +0 -133
  119. package/vite-plugin/node_modules/postcss/lib/declaration.d.ts +0 -150
  120. package/vite-plugin/node_modules/postcss/lib/declaration.js +0 -24
  121. package/vite-plugin/node_modules/postcss/lib/document.d.ts +0 -68
  122. package/vite-plugin/node_modules/postcss/lib/document.js +0 -33
  123. package/vite-plugin/node_modules/postcss/lib/fromJSON.d.ts +0 -9
  124. package/vite-plugin/node_modules/postcss/lib/fromJSON.js +0 -54
  125. package/vite-plugin/node_modules/postcss/lib/input.d.ts +0 -226
  126. package/vite-plugin/node_modules/postcss/lib/input.js +0 -273
  127. package/vite-plugin/node_modules/postcss/lib/lazy-result.d.ts +0 -189
  128. package/vite-plugin/node_modules/postcss/lib/lazy-result.js +0 -550
  129. package/vite-plugin/node_modules/postcss/lib/list.d.ts +0 -60
  130. package/vite-plugin/node_modules/postcss/lib/list.js +0 -58
  131. package/vite-plugin/node_modules/postcss/lib/map-generator.js +0 -376
  132. package/vite-plugin/node_modules/postcss/lib/no-work-result.d.ts +0 -45
  133. package/vite-plugin/node_modules/postcss/lib/no-work-result.js +0 -137
  134. package/vite-plugin/node_modules/postcss/lib/node.d.ts +0 -555
  135. package/vite-plugin/node_modules/postcss/lib/node.js +0 -449
  136. package/vite-plugin/node_modules/postcss/lib/parse.d.ts +0 -9
  137. package/vite-plugin/node_modules/postcss/lib/parse.js +0 -42
  138. package/vite-plugin/node_modules/postcss/lib/parser.js +0 -611
  139. package/vite-plugin/node_modules/postcss/lib/postcss.d.mts +0 -66
  140. package/vite-plugin/node_modules/postcss/lib/postcss.d.ts +0 -456
  141. package/vite-plugin/node_modules/postcss/lib/postcss.js +0 -101
  142. package/vite-plugin/node_modules/postcss/lib/postcss.mjs +0 -30
  143. package/vite-plugin/node_modules/postcss/lib/previous-map.d.ts +0 -80
  144. package/vite-plugin/node_modules/postcss/lib/previous-map.js +0 -145
  145. package/vite-plugin/node_modules/postcss/lib/processor.d.ts +0 -114
  146. package/vite-plugin/node_modules/postcss/lib/processor.js +0 -67
  147. package/vite-plugin/node_modules/postcss/lib/result.d.ts +0 -204
  148. package/vite-plugin/node_modules/postcss/lib/result.js +0 -42
  149. package/vite-plugin/node_modules/postcss/lib/root.d.ts +0 -86
  150. package/vite-plugin/node_modules/postcss/lib/root.js +0 -61
  151. package/vite-plugin/node_modules/postcss/lib/rule.d.ts +0 -126
  152. package/vite-plugin/node_modules/postcss/lib/rule.js +0 -27
  153. package/vite-plugin/node_modules/postcss/lib/stringifier.d.ts +0 -45
  154. package/vite-plugin/node_modules/postcss/lib/stringifier.js +0 -370
  155. package/vite-plugin/node_modules/postcss/lib/stringify.d.ts +0 -9
  156. package/vite-plugin/node_modules/postcss/lib/stringify.js +0 -11
  157. package/vite-plugin/node_modules/postcss/lib/symbols.js +0 -5
  158. package/vite-plugin/node_modules/postcss/lib/terminal-highlight.js +0 -70
  159. package/vite-plugin/node_modules/postcss/lib/tokenize.js +0 -266
  160. package/vite-plugin/node_modules/postcss/lib/warn-once.js +0 -13
  161. package/vite-plugin/node_modules/postcss/lib/warning.d.ts +0 -146
  162. package/vite-plugin/node_modules/postcss/lib/warning.js +0 -37
  163. package/vite-plugin/node_modules/postcss/package.json +0 -88
  164. package/vite-plugin/node_modules/rolldown/LICENSE +0 -25
  165. package/vite-plugin/node_modules/rolldown/README.md +0 -11
  166. package/vite-plugin/node_modules/rolldown/bin/cli.mjs +0 -2
  167. package/vite-plugin/node_modules/rolldown/dist/cli.d.mts +0 -1
  168. package/vite-plugin/node_modules/rolldown/dist/cli.mjs +0 -1191
  169. package/vite-plugin/node_modules/rolldown/dist/config.d.mts +0 -14
  170. package/vite-plugin/node_modules/rolldown/dist/config.mjs +0 -4
  171. package/vite-plugin/node_modules/rolldown/dist/experimental-index.d.mts +0 -253
  172. package/vite-plugin/node_modules/rolldown/dist/experimental-index.mjs +0 -320
  173. package/vite-plugin/node_modules/rolldown/dist/experimental-runtime-types.d.ts +0 -98
  174. package/vite-plugin/node_modules/rolldown/dist/filter-index.d.mts +0 -196
  175. package/vite-plugin/node_modules/rolldown/dist/filter-index.mjs +0 -386
  176. package/vite-plugin/node_modules/rolldown/dist/get-log-filter.d.mts +0 -3
  177. package/vite-plugin/node_modules/rolldown/dist/get-log-filter.mjs +0 -68
  178. package/vite-plugin/node_modules/rolldown/dist/index.d.mts +0 -4
  179. package/vite-plugin/node_modules/rolldown/dist/index.mjs +0 -50
  180. package/vite-plugin/node_modules/rolldown/dist/parallel-plugin-worker.d.mts +0 -1
  181. package/vite-plugin/node_modules/rolldown/dist/parallel-plugin-worker.mjs +0 -28
  182. package/vite-plugin/node_modules/rolldown/dist/parallel-plugin.d.mts +0 -13
  183. package/vite-plugin/node_modules/rolldown/dist/parallel-plugin.mjs +0 -6
  184. package/vite-plugin/node_modules/rolldown/dist/parse-ast-index.d.mts +0 -32
  185. package/vite-plugin/node_modules/rolldown/dist/parse-ast-index.mjs +0 -60
  186. package/vite-plugin/node_modules/rolldown/dist/plugins-index.d.mts +0 -33
  187. package/vite-plugin/node_modules/rolldown/dist/plugins-index.mjs +0 -40
  188. package/vite-plugin/node_modules/rolldown/dist/shared/binding-BeU_1iEk.mjs +0 -582
  189. package/vite-plugin/node_modules/rolldown/dist/shared/binding-zH1vcmbM.d.mts +0 -1899
  190. package/vite-plugin/node_modules/rolldown/dist/shared/bindingify-input-options-DbbBhzky.mjs +0 -2211
  191. package/vite-plugin/node_modules/rolldown/dist/shared/constructors-C2EWPKW3.mjs +0 -68
  192. package/vite-plugin/node_modules/rolldown/dist/shared/constructors-D0W3rNfA.d.mts +0 -37
  193. package/vite-plugin/node_modules/rolldown/dist/shared/define-config-5HJ1b9vG.d.mts +0 -3829
  194. package/vite-plugin/node_modules/rolldown/dist/shared/define-config-DJOr6Iwt.mjs +0 -6
  195. package/vite-plugin/node_modules/rolldown/dist/shared/error-DL-e8-oE.mjs +0 -85
  196. package/vite-plugin/node_modules/rolldown/dist/shared/get-log-filter-semyr3Lj.d.mts +0 -35
  197. package/vite-plugin/node_modules/rolldown/dist/shared/load-config-BoVO31Un.mjs +0 -120
  198. package/vite-plugin/node_modules/rolldown/dist/shared/logging-C6h4g8dA.d.mts +0 -50
  199. package/vite-plugin/node_modules/rolldown/dist/shared/logs-D80CXhvg.mjs +0 -180
  200. package/vite-plugin/node_modules/rolldown/dist/shared/misc-DJYbNKZX.mjs +0 -21
  201. package/vite-plugin/node_modules/rolldown/dist/shared/normalize-string-or-regex-CbQQ69gT.mjs +0 -66
  202. package/vite-plugin/node_modules/rolldown/dist/shared/parse-B_ZnWxLZ.mjs +0 -74
  203. package/vite-plugin/node_modules/rolldown/dist/shared/prompt-U5ajztzG.mjs +0 -847
  204. package/vite-plugin/node_modules/rolldown/dist/shared/resolve-tsconfig-CfYpGzid.mjs +0 -113
  205. package/vite-plugin/node_modules/rolldown/dist/shared/rolldown-D3JZ9rMt.mjs +0 -40
  206. package/vite-plugin/node_modules/rolldown/dist/shared/rolldown-build-DSxL8qiP.mjs +0 -3325
  207. package/vite-plugin/node_modules/rolldown/dist/shared/transform-DgZ3paSD.d.mts +0 -149
  208. package/vite-plugin/node_modules/rolldown/dist/shared/watch-Bd8v9ewv.mjs +0 -374
  209. package/vite-plugin/node_modules/rolldown/dist/utils-index.d.mts +0 -376
  210. package/vite-plugin/node_modules/rolldown/dist/utils-index.mjs +0 -2414
  211. package/vite-plugin/node_modules/rolldown/package.json +0 -153
  212. package/vite-plugin/node_modules/source-map-js/LICENSE +0 -28
  213. package/vite-plugin/node_modules/source-map-js/README.md +0 -765
  214. package/vite-plugin/node_modules/source-map-js/lib/array-set.js +0 -121
  215. package/vite-plugin/node_modules/source-map-js/lib/base64-vlq.js +0 -140
  216. package/vite-plugin/node_modules/source-map-js/lib/base64.js +0 -67
  217. package/vite-plugin/node_modules/source-map-js/lib/binary-search.js +0 -111
  218. package/vite-plugin/node_modules/source-map-js/lib/mapping-list.js +0 -79
  219. package/vite-plugin/node_modules/source-map-js/lib/quick-sort.js +0 -132
  220. package/vite-plugin/node_modules/source-map-js/lib/source-map-consumer.d.ts +0 -1
  221. package/vite-plugin/node_modules/source-map-js/lib/source-map-consumer.js +0 -1188
  222. package/vite-plugin/node_modules/source-map-js/lib/source-map-generator.d.ts +0 -1
  223. package/vite-plugin/node_modules/source-map-js/lib/source-map-generator.js +0 -444
  224. package/vite-plugin/node_modules/source-map-js/lib/source-node.d.ts +0 -1
  225. package/vite-plugin/node_modules/source-map-js/lib/source-node.js +0 -413
  226. package/vite-plugin/node_modules/source-map-js/lib/util.js +0 -594
  227. package/vite-plugin/node_modules/source-map-js/package.json +0 -71
  228. package/vite-plugin/node_modules/source-map-js/source-map.d.ts +0 -104
  229. package/vite-plugin/node_modules/source-map-js/source-map.js +0 -8
  230. package/vite-plugin/node_modules/tinyglobby/LICENSE +0 -21
  231. package/vite-plugin/node_modules/tinyglobby/README.md +0 -25
  232. package/vite-plugin/node_modules/tinyglobby/dist/index.cjs +0 -334
  233. package/vite-plugin/node_modules/tinyglobby/dist/index.d.cts +0 -148
  234. package/vite-plugin/node_modules/tinyglobby/dist/index.d.mts +0 -148
  235. package/vite-plugin/node_modules/tinyglobby/dist/index.mjs +0 -306
  236. package/vite-plugin/node_modules/tinyglobby/package.json +0 -73
  237. package/vite-plugin/node_modules/vite/LICENSE.md +0 -2230
  238. package/vite-plugin/node_modules/vite/README.md +0 -20
  239. package/vite-plugin/node_modules/vite/bin/openChrome.js +0 -68
  240. package/vite-plugin/node_modules/vite/bin/vite.js +0 -79
  241. package/vite-plugin/node_modules/vite/client.d.ts +0 -282
  242. package/vite-plugin/node_modules/vite/dist/client/client.mjs +0 -1237
  243. package/vite-plugin/node_modules/vite/dist/client/env.mjs +0 -18
  244. package/vite-plugin/node_modules/vite/dist/node/chunks/build.js +0 -5381
  245. package/vite-plugin/node_modules/vite/dist/node/chunks/chunk.js +0 -37
  246. package/vite-plugin/node_modules/vite/dist/node/chunks/dist.js +0 -6784
  247. package/vite-plugin/node_modules/vite/dist/node/chunks/lib.js +0 -371
  248. package/vite-plugin/node_modules/vite/dist/node/chunks/logger.js +0 -322
  249. package/vite-plugin/node_modules/vite/dist/node/chunks/moduleRunnerTransport.d.ts +0 -96
  250. package/vite-plugin/node_modules/vite/dist/node/chunks/node.js +0 -34874
  251. package/vite-plugin/node_modules/vite/dist/node/chunks/postcss-import.js +0 -467
  252. package/vite-plugin/node_modules/vite/dist/node/cli.js +0 -837
  253. package/vite-plugin/node_modules/vite/dist/node/index.d.ts +0 -3867
  254. package/vite-plugin/node_modules/vite/dist/node/index.js +0 -3
  255. package/vite-plugin/node_modules/vite/dist/node/internal.d.ts +0 -2
  256. package/vite-plugin/node_modules/vite/dist/node/internal.js +0 -2
  257. package/vite-plugin/node_modules/vite/dist/node/module-runner.d.ts +0 -315
  258. package/vite-plugin/node_modules/vite/dist/node/module-runner.js +0 -1262
  259. package/vite-plugin/node_modules/vite/misc/false.js +0 -1
  260. package/vite-plugin/node_modules/vite/misc/true.js +0 -1
  261. package/vite-plugin/node_modules/vite/package.json +0 -192
  262. package/vite-plugin/node_modules/vite/types/customEvent.d.ts +0 -79
  263. package/vite-plugin/node_modules/vite/types/hmrPayload.d.ts +0 -80
  264. package/vite-plugin/node_modules/vite/types/hot.d.ts +0 -39
  265. package/vite-plugin/node_modules/vite/types/import-meta.d.ts +0 -5
  266. package/vite-plugin/node_modules/vite/types/importGlob.d.ts +0 -89
  267. package/vite-plugin/node_modules/vite/types/importMeta.d.ts +0 -30
  268. package/vite-plugin/node_modules/vite/types/internal/cssPreprocessorOptions.d.ts +0 -44
  269. package/vite-plugin/node_modules/vite/types/internal/esbuildOptions.d.ts +0 -28
  270. package/vite-plugin/node_modules/vite/types/internal/lightningcssOptions.d.ts +0 -18
  271. package/vite-plugin/node_modules/vite/types/internal/rollupTypeCompat.d.ts +0 -24
  272. package/vite-plugin/node_modules/vite/types/internal/terserOptions.d.ts +0 -11
  273. package/vite-plugin/node_modules/vite/types/metadata.d.ts +0 -47
  274. package/vite-plugin/package.json +0 -17
@@ -1,494 +0,0 @@
1
- import type { Angle, CssColor, Rule, CustomProperty, EnvironmentVariable, Function, Image, LengthValue, MediaQuery, Declaration, Ratio, Resolution, Selector, SupportsCondition, Time, Token, TokenOrValue, UnknownAtRule, Url, Variable, StyleRule, DeclarationBlock, ParsedComponent, Multiplier, StyleSheet, Location2 } from './ast';
2
- import { Targets, Features } from './targets';
3
-
4
- export * from './ast';
5
-
6
- export { Targets, Features };
7
-
8
- export interface TransformOptions<C extends CustomAtRules> {
9
- /** The filename being transformed. Used for error messages and source maps. */
10
- filename: string,
11
- /** The source code to transform. */
12
- code: Uint8Array,
13
- /** Whether to enable minification. */
14
- minify?: boolean,
15
- /** Whether to output a source map. */
16
- sourceMap?: boolean,
17
- /** An input source map to extend. */
18
- inputSourceMap?: string,
19
- /**
20
- * An optional project root path, used as the source root in the output source map.
21
- * Also used to generate relative paths for sources used in CSS module hashes.
22
- */
23
- projectRoot?: string,
24
- /** The browser targets for the generated code. */
25
- targets?: Targets,
26
- /** Features that should always be compiled, even when supported by targets. */
27
- include?: number,
28
- /** Features that should never be compiled, even when unsupported by targets. */
29
- exclude?: number,
30
- /** Whether to enable parsing various draft syntax. */
31
- drafts?: Drafts,
32
- /** Whether to enable various non-standard syntax. */
33
- nonStandard?: NonStandard,
34
- /** Whether to compile this file as a CSS module. */
35
- cssModules?: boolean | CSSModulesConfig,
36
- /**
37
- * Whether to analyze dependencies (e.g. `@import` and `url()`).
38
- * When enabled, `@import` rules are removed, and `url()` dependencies
39
- * are replaced with hashed placeholders that can be replaced with the final
40
- * urls later (after bundling). Dependencies are returned as part of the result.
41
- */
42
- analyzeDependencies?: boolean | DependencyOptions,
43
- /**
44
- * Replaces user action pseudo classes with class names that can be applied from JavaScript.
45
- * This is useful for polyfills, for example.
46
- */
47
- pseudoClasses?: PseudoClasses,
48
- /**
49
- * A list of class names, ids, and custom identifiers (e.g. @keyframes) that are known
50
- * to be unused. These will be removed during minification. Note that these are not
51
- * selectors but individual names (without any . or # prefixes).
52
- */
53
- unusedSymbols?: string[],
54
- /**
55
- * Whether to ignore invalid rules and declarations rather than erroring.
56
- * When enabled, warnings are returned, and the invalid rule or declaration is
57
- * omitted from the output code.
58
- */
59
- errorRecovery?: boolean,
60
- /**
61
- * An AST visitor object. This allows custom transforms or analysis to be implemented in JavaScript.
62
- * Multiple visitors can be composed into one using the `composeVisitors` function.
63
- * For optimal performance, visitors should be as specific as possible about what types of values
64
- * they care about so that JavaScript has to be called as little as possible.
65
- */
66
- visitor?: Visitor<C> | VisitorFunction<C>,
67
- /**
68
- * Defines how to parse custom CSS at-rules. Each at-rule can have a prelude, defined using a CSS
69
- * [syntax string](https://drafts.css-houdini.org/css-properties-values-api/#syntax-strings), and
70
- * a block body. The body can be a declaration list, rule list, or style block as defined in the
71
- * [css spec](https://drafts.csswg.org/css-syntax/#declaration-rule-list).
72
- */
73
- customAtRules?: C
74
- }
75
-
76
- // This is a hack to make TS still provide autocomplete for `property` vs. just making it `string`.
77
- type PropertyStart = '-' | '_' | 'a' | 'b' | 'c' | 'd' | 'e' | 'f' | 'g' | 'h' | 'i' | 'j' | 'k' | 'l' | 'm' | 'n' | 'o' | 'p' | 'q' | 'r' | 's' | 't' | 'u' | 'v' | 'w' | 'x' | 'y' | 'z';
78
- export type ReturnedDeclaration = Declaration | {
79
- /** The property name. */
80
- property: `${PropertyStart}${string}`,
81
- /** The raw string value for the declaration. */
82
- raw: string
83
- };
84
-
85
- export type ReturnedMediaQuery = MediaQuery | {
86
- /** The raw string value for the media query. */
87
- raw: string
88
- };
89
-
90
- type FindByType<Union, Name> = Union extends { type: Name } ? Union : never;
91
- export type ReturnedRule = Rule<ReturnedDeclaration, ReturnedMediaQuery>;
92
- type RequiredValue<Rule> = Rule extends { value: object }
93
- ? Rule['value'] extends StyleRule
94
- ? Rule & { value: Required<StyleRule> & { declarations: Required<DeclarationBlock> } }
95
- : Rule & { value: Required<Rule['value']> }
96
- : Rule;
97
- type RuleVisitor<R = RequiredValue<Rule>> = ((rule: R) => ReturnedRule | ReturnedRule[] | void);
98
- type MappedRuleVisitors = {
99
- [Name in Exclude<Rule['type'], 'unknown' | 'custom'>]?: RuleVisitor<RequiredValue<FindByType<Rule, Name>>>;
100
- }
101
-
102
- type UnknownVisitors<T> = {
103
- [name: string]: RuleVisitor<T>
104
- }
105
-
106
- type CustomVisitors<T extends CustomAtRules> = {
107
- [Name in keyof T]?: RuleVisitor<CustomAtRule<Name, T[Name]>>
108
- };
109
-
110
- type AnyCustomAtRule<C extends CustomAtRules> = {
111
- [Key in keyof C]: CustomAtRule<Key, C[Key]>
112
- }[keyof C];
113
-
114
- type RuleVisitors<C extends CustomAtRules> = MappedRuleVisitors & {
115
- unknown?: UnknownVisitors<UnknownAtRule> | Omit<RuleVisitor<UnknownAtRule>, keyof CallableFunction>,
116
- custom?: CustomVisitors<C> | Omit<RuleVisitor<AnyCustomAtRule<C>>, keyof CallableFunction>
117
- };
118
-
119
- type PreludeTypes = Exclude<ParsedComponent['type'], 'literal' | 'repeated' | 'token'>;
120
- type SyntaxString = `<${PreludeTypes}>` | `<${PreludeTypes}>+` | `<${PreludeTypes}>#` | (string & {});
121
- type ComponentTypes = {
122
- [Key in PreludeTypes as `<${Key}>`]: FindByType<ParsedComponent, Key>
123
- };
124
-
125
- type Repetitions = {
126
- [Key in PreludeTypes as `<${Key}>+` | `<${Key}>#`]: {
127
- type: "repeated",
128
- value: {
129
- components: FindByType<ParsedComponent, Key>[],
130
- multiplier: Multiplier
131
- }
132
- }
133
- };
134
-
135
- type MappedPrelude = ComponentTypes & Repetitions;
136
- type MappedBody<P extends CustomAtRuleDefinition['body']> = P extends 'style-block' ? 'rule-list' : P;
137
- interface CustomAtRule<N, R extends CustomAtRuleDefinition> {
138
- name: N,
139
- prelude: R['prelude'] extends keyof MappedPrelude ? MappedPrelude[R['prelude']] : ParsedComponent,
140
- body: FindByType<CustomAtRuleBody, MappedBody<R['body']>>,
141
- loc: Location2
142
- }
143
-
144
- type CustomAtRuleBody = {
145
- type: 'declaration-list',
146
- value: Required<DeclarationBlock>
147
- } | {
148
- type: 'rule-list',
149
- value: RequiredValue<Rule>[]
150
- };
151
-
152
- type FindProperty<Union, Name> = Union extends { property: Name } ? Union : never;
153
- type DeclarationVisitor<P = Declaration> = ((property: P) => ReturnedDeclaration | ReturnedDeclaration[] | void);
154
- type MappedDeclarationVisitors = {
155
- [Name in Exclude<Declaration['property'], 'unparsed' | 'custom'>]?: DeclarationVisitor<FindProperty<Declaration, Name> | FindProperty<Declaration, 'unparsed'>>;
156
- }
157
-
158
- type CustomPropertyVisitors = {
159
- [name: string]: DeclarationVisitor<CustomProperty>
160
- }
161
-
162
- type DeclarationVisitors = MappedDeclarationVisitors & {
163
- custom?: CustomPropertyVisitors | DeclarationVisitor<CustomProperty>
164
- }
165
-
166
- interface RawValue {
167
- /** A raw string value which will be parsed like CSS. */
168
- raw: string
169
- }
170
-
171
- type TokenReturnValue = TokenOrValue | TokenOrValue[] | RawValue | void;
172
- type TokenVisitor = (token: Token) => TokenReturnValue;
173
- type VisitableTokenTypes = 'ident' | 'at-keyword' | 'hash' | 'id-hash' | 'string' | 'number' | 'percentage' | 'dimension';
174
- type TokenVisitors = {
175
- [Name in VisitableTokenTypes]?: (token: FindByType<Token, Name>) => TokenReturnValue;
176
- }
177
-
178
- type FunctionVisitor = (fn: Function) => TokenReturnValue;
179
- type EnvironmentVariableVisitor = (env: EnvironmentVariable) => TokenReturnValue;
180
- type EnvironmentVariableVisitors = {
181
- [name: string]: EnvironmentVariableVisitor
182
- };
183
-
184
- export interface Visitor<C extends CustomAtRules> {
185
- StyleSheet?(stylesheet: StyleSheet): StyleSheet<ReturnedDeclaration, ReturnedMediaQuery> | void;
186
- StyleSheetExit?(stylesheet: StyleSheet): StyleSheet<ReturnedDeclaration, ReturnedMediaQuery> | void;
187
- Rule?: RuleVisitor | RuleVisitors<C>;
188
- RuleExit?: RuleVisitor | RuleVisitors<C>;
189
- Declaration?: DeclarationVisitor | DeclarationVisitors;
190
- DeclarationExit?: DeclarationVisitor | DeclarationVisitors;
191
- Url?(url: Url): Url | void;
192
- Color?(color: CssColor): CssColor | void;
193
- Image?(image: Image): Image | void;
194
- ImageExit?(image: Image): Image | void;
195
- Length?(length: LengthValue): LengthValue | void;
196
- Angle?(angle: Angle): Angle | void;
197
- Ratio?(ratio: Ratio): Ratio | void;
198
- Resolution?(resolution: Resolution): Resolution | void;
199
- Time?(time: Time): Time | void;
200
- CustomIdent?(ident: string): string | void;
201
- DashedIdent?(ident: string): string | void;
202
- MediaQuery?(query: MediaQuery): ReturnedMediaQuery | ReturnedMediaQuery[] | void;
203
- MediaQueryExit?(query: MediaQuery): ReturnedMediaQuery | ReturnedMediaQuery[] | void;
204
- SupportsCondition?(condition: SupportsCondition): SupportsCondition;
205
- SupportsConditionExit?(condition: SupportsCondition): SupportsCondition;
206
- Selector?(selector: Selector): Selector | Selector[] | void;
207
- Token?: TokenVisitor | TokenVisitors;
208
- Function?: FunctionVisitor | { [name: string]: FunctionVisitor };
209
- FunctionExit?: FunctionVisitor | { [name: string]: FunctionVisitor };
210
- Variable?(variable: Variable): TokenReturnValue;
211
- VariableExit?(variable: Variable): TokenReturnValue;
212
- EnvironmentVariable?: EnvironmentVariableVisitor | EnvironmentVariableVisitors;
213
- EnvironmentVariableExit?: EnvironmentVariableVisitor | EnvironmentVariableVisitors;
214
- }
215
-
216
- export type VisitorDependency = FileDependency | GlobDependency;
217
- export interface VisitorOptions {
218
- addDependency: (dep: VisitorDependency) => void
219
- }
220
-
221
- export type VisitorFunction<C extends CustomAtRules> = (options: VisitorOptions) => Visitor<C>;
222
-
223
- export interface CustomAtRules {
224
- [name: string]: CustomAtRuleDefinition
225
- }
226
-
227
- export interface CustomAtRuleDefinition {
228
- /**
229
- * Defines the syntax for a custom at-rule prelude. The value should be a
230
- * CSS [syntax string](https://drafts.css-houdini.org/css-properties-values-api/#syntax-strings)
231
- * representing the types of values that are accepted. This property may be omitted or
232
- * set to null to indicate that no prelude is accepted.
233
- */
234
- prelude?: SyntaxString | null,
235
- /**
236
- * Defines the type of body contained within the at-rule block.
237
- * - declaration-list: A CSS declaration list, as in a style rule.
238
- * - rule-list: A list of CSS rules, as supported within a non-nested
239
- * at-rule such as `@media` or `@supports`.
240
- * - style-block: Both a declaration list and rule list, as accepted within
241
- * a nested at-rule within a style rule (e.g. `@media` inside a style rule
242
- * with directly nested declarations).
243
- */
244
- body?: 'declaration-list' | 'rule-list' | 'style-block' | null
245
- }
246
-
247
- export interface DependencyOptions {
248
- /** Whether to preserve `@import` rules rather than removing them. */
249
- preserveImports?: boolean
250
- }
251
-
252
- export type BundleOptions<C extends CustomAtRules> = Omit<TransformOptions<C>, 'code'>;
253
-
254
- export interface BundleAsyncOptions<C extends CustomAtRules> extends BundleOptions<C> {
255
- resolver?: Resolver;
256
- }
257
-
258
- /** Custom resolver to use when loading CSS files. */
259
- export interface Resolver {
260
- /** Read the given file and return its contents as a string. */
261
- read?: (file: string) => string | Promise<string>;
262
-
263
- /**
264
- * Resolve the given CSS import specifier from the provided originating file to a
265
- * path which gets passed to `read()`.
266
- */
267
- resolve?: (specifier: string, originatingFile: string) => string | Promise<string>;
268
- }
269
-
270
- export interface Drafts {
271
- /** Whether to enable @custom-media rules. */
272
- customMedia?: boolean
273
- }
274
-
275
- export interface NonStandard {
276
- /** Whether to enable the non-standard >>> and /deep/ selector combinators used by Angular and Vue. */
277
- deepSelectorCombinator?: boolean
278
- }
279
-
280
- export interface PseudoClasses {
281
- hover?: string,
282
- active?: string,
283
- focus?: string,
284
- focusVisible?: string,
285
- focusWithin?: string
286
- }
287
-
288
- export interface TransformResult {
289
- /** The transformed code. */
290
- code: Uint8Array,
291
- /** The generated source map, if enabled. */
292
- map: Uint8Array | void,
293
- /** CSS module exports, if enabled. */
294
- exports: CSSModuleExports | void,
295
- /** CSS module references, if `dashedIdents` is enabled. */
296
- references: CSSModuleReferences,
297
- /** `@import` and `url()` dependencies, if enabled. */
298
- dependencies: Dependency[] | void,
299
- /** Warnings that occurred during compilation. */
300
- warnings: Warning[]
301
- }
302
-
303
- export interface Warning {
304
- message: string,
305
- type: string,
306
- value?: any,
307
- loc: ErrorLocation
308
- }
309
-
310
- export interface CSSModulesConfig {
311
- /** The pattern to use when renaming class names and other identifiers. Default is `[hash]_[local]`. */
312
- pattern?: string,
313
- /** Whether to rename dashed identifiers, e.g. custom properties. */
314
- dashedIdents?: boolean,
315
- /** Whether to enable hashing for `@keyframes`. */
316
- animation?: boolean,
317
- /** Whether to enable hashing for CSS grid identifiers. */
318
- grid?: boolean,
319
- /** Whether to enable hashing for `@container` names. */
320
- container?: boolean,
321
- /** Whether to enable hashing for custom identifiers. */
322
- customIdents?: boolean,
323
- /** Whether to require at least one class or id selector in each rule. */
324
- pure?: boolean
325
- }
326
-
327
- export type CSSModuleExports = {
328
- /** Maps exported (i.e. original) names to local names. */
329
- [name: string]: CSSModuleExport
330
- };
331
-
332
- export interface CSSModuleExport {
333
- /** The local (compiled) name for this export. */
334
- name: string,
335
- /** Whether the export is referenced in this file. */
336
- isReferenced: boolean,
337
- /** Other names that are composed by this export. */
338
- composes: CSSModuleReference[]
339
- }
340
-
341
- export type CSSModuleReferences = {
342
- /** Maps placeholder names to references. */
343
- [name: string]: DependencyCSSModuleReference,
344
- };
345
-
346
- export type CSSModuleReference = LocalCSSModuleReference | GlobalCSSModuleReference | DependencyCSSModuleReference;
347
-
348
- export interface LocalCSSModuleReference {
349
- type: 'local',
350
- /** The local (compiled) name for the reference. */
351
- name: string,
352
- }
353
-
354
- export interface GlobalCSSModuleReference {
355
- type: 'global',
356
- /** The referenced global name. */
357
- name: string,
358
- }
359
-
360
- export interface DependencyCSSModuleReference {
361
- type: 'dependency',
362
- /** The name to reference within the dependency. */
363
- name: string,
364
- /** The dependency specifier for the referenced file. */
365
- specifier: string
366
- }
367
-
368
- export type Dependency = ImportDependency | UrlDependency | FileDependency | GlobDependency;
369
-
370
- export interface ImportDependency {
371
- type: 'import',
372
- /** The url of the `@import` dependency. */
373
- url: string,
374
- /** The media query for the `@import` rule. */
375
- media: string | null,
376
- /** The `supports()` query for the `@import` rule. */
377
- supports: string | null,
378
- /** The source location where the `@import` rule was found. */
379
- loc: SourceLocation,
380
- /** The placeholder that the import was replaced with. */
381
- placeholder: string
382
- }
383
-
384
- export interface UrlDependency {
385
- type: 'url',
386
- /** The url of the dependency. */
387
- url: string,
388
- /** The source location where the `url()` was found. */
389
- loc: SourceLocation,
390
- /** The placeholder that the url was replaced with. */
391
- placeholder: string
392
- }
393
-
394
- export interface FileDependency {
395
- type: 'file',
396
- filePath: string
397
- }
398
-
399
- export interface GlobDependency {
400
- type: 'glob',
401
- glob: string
402
- }
403
-
404
- export interface SourceLocation {
405
- /** The file path in which the dependency exists. */
406
- filePath: string,
407
- /** The start location of the dependency. */
408
- start: Location,
409
- /** The end location (inclusive) of the dependency. */
410
- end: Location
411
- }
412
-
413
- export interface Location {
414
- /** The line number (1-based). */
415
- line: number,
416
- /** The column number (0-based). */
417
- column: number
418
- }
419
-
420
- export interface ErrorLocation extends Location {
421
- filename: string
422
- }
423
-
424
- /**
425
- * Compiles a CSS file, including optionally minifying and lowering syntax to the given
426
- * targets. A source map may also be generated, but this is not enabled by default.
427
- */
428
- export declare function transform<C extends CustomAtRules>(options: TransformOptions<C>): TransformResult;
429
-
430
- export interface TransformAttributeOptions {
431
- /** The filename in which the style attribute appeared. Used for error messages and dependencies. */
432
- filename?: string,
433
- /** The source code to transform. */
434
- code: Uint8Array,
435
- /** Whether to enable minification. */
436
- minify?: boolean,
437
- /** The browser targets for the generated code. */
438
- targets?: Targets,
439
- /**
440
- * Whether to analyze `url()` dependencies.
441
- * When enabled, `url()` dependencies are replaced with hashed placeholders
442
- * that can be replaced with the final urls later (after bundling).
443
- * Dependencies are returned as part of the result.
444
- */
445
- analyzeDependencies?: boolean,
446
- /**
447
- * Whether to ignore invalid rules and declarations rather than erroring.
448
- * When enabled, warnings are returned, and the invalid rule or declaration is
449
- * omitted from the output code.
450
- */
451
- errorRecovery?: boolean,
452
- /**
453
- * An AST visitor object. This allows custom transforms or analysis to be implemented in JavaScript.
454
- * Multiple visitors can be composed into one using the `composeVisitors` function.
455
- * For optimal performance, visitors should be as specific as possible about what types of values
456
- * they care about so that JavaScript has to be called as little as possible.
457
- */
458
- visitor?: Visitor<never> | VisitorFunction<never>
459
- }
460
-
461
- export interface TransformAttributeResult {
462
- /** The transformed code. */
463
- code: Uint8Array,
464
- /** `@import` and `url()` dependencies, if enabled. */
465
- dependencies: Dependency[] | void,
466
- /** Warnings that occurred during compilation. */
467
- warnings: Warning[]
468
- }
469
-
470
- /**
471
- * Compiles a single CSS declaration list, such as an inline style attribute in HTML.
472
- */
473
- export declare function transformStyleAttribute(options: TransformAttributeOptions): TransformAttributeResult;
474
-
475
- /**
476
- * Converts a browserslist result into targets that can be passed to lightningcss.
477
- * @param browserslist the result of calling `browserslist`
478
- */
479
- export declare function browserslistToTargets(browserslist: string[]): Targets;
480
-
481
- /**
482
- * Bundles a CSS file and its dependencies, inlining @import rules.
483
- */
484
- export declare function bundle<C extends CustomAtRules>(options: BundleOptions<C>): TransformResult;
485
-
486
- /**
487
- * Bundles a CSS file and its dependencies asynchronously, inlining @import rules.
488
- */
489
- export declare function bundleAsync<C extends CustomAtRules>(options: BundleAsyncOptions<C>): Promise<TransformResult>;
490
-
491
- /**
492
- * Composes multiple visitor objects into a single one.
493
- */
494
- export declare function composeVisitors<C extends CustomAtRules>(visitors: (Visitor<C> | VisitorFunction<C>)[]): Visitor<C> | VisitorFunction<C>;
@@ -1,59 +0,0 @@
1
- let parts = [process.platform, process.arch];
2
- if (process.platform === 'linux') {
3
- const { MUSL, familySync } = require('detect-libc');
4
- const family = familySync();
5
- if (family === MUSL) {
6
- parts.push('musl');
7
- } else if (process.arch === 'arm') {
8
- parts.push('gnueabihf');
9
- } else {
10
- parts.push('gnu');
11
- }
12
- } else if (process.platform === 'win32') {
13
- parts.push('msvc');
14
- }
15
-
16
- let native;
17
- try {
18
- native = require(`lightningcss-${parts.join('-')}`);
19
- } catch (err) {
20
- native = require(`../lightningcss.${parts.join('-')}.node`);
21
- }
22
-
23
- module.exports.transform = wrap(native.transform);
24
- module.exports.transformStyleAttribute = wrap(native.transformStyleAttribute);
25
- module.exports.bundle = wrap(native.bundle);
26
- module.exports.bundleAsync = wrap(native.bundleAsync);
27
- module.exports.browserslistToTargets = require('./browserslistToTargets');
28
- module.exports.composeVisitors = require('./composeVisitors');
29
- module.exports.Features = require('./flags').Features;
30
-
31
- function wrap(call) {
32
- return (options) => {
33
- if (typeof options.visitor === 'function') {
34
- let deps = [];
35
- options.visitor = options.visitor({
36
- addDependency(dep) {
37
- deps.push(dep);
38
- }
39
- });
40
-
41
- let result = call(options);
42
- if (result instanceof Promise) {
43
- result = result.then(res => {
44
- if (deps.length) {
45
- res.dependencies ??= [];
46
- res.dependencies.push(...deps);
47
- }
48
- return res;
49
- });
50
- } else if (deps.length) {
51
- result.dependencies ??= [];
52
- result.dependencies.push(...deps);
53
- }
54
- return result;
55
- } else {
56
- return call(options);
57
- }
58
- };
59
- }