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,145 +0,0 @@
1
- 'use strict'
2
-
3
- let { existsSync, readFileSync } = require('fs')
4
- let { dirname, join } = require('path')
5
- let { SourceMapConsumer, SourceMapGenerator } = require('source-map-js')
6
-
7
- function fromBase64(str) {
8
- if (Buffer) {
9
- return Buffer.from(str, 'base64').toString()
10
- } else {
11
- /* c8 ignore next 2 */
12
- return window.atob(str)
13
- }
14
- }
15
-
16
- class PreviousMap {
17
- constructor(css, opts) {
18
- if (opts.map === false) return
19
- this.loadAnnotation(css)
20
- this.inline = this.startWith(this.annotation, 'data:')
21
-
22
- let prev = opts.map ? opts.map.prev : undefined
23
- let text = this.loadMap(opts.from, prev)
24
- if (!this.mapFile && opts.from) {
25
- this.mapFile = opts.from
26
- }
27
- if (this.mapFile) this.root = dirname(this.mapFile)
28
- if (text) this.text = text
29
- }
30
-
31
- consumer() {
32
- if (!this.consumerCache) {
33
- this.consumerCache = new SourceMapConsumer(this.text)
34
- }
35
- return this.consumerCache
36
- }
37
-
38
- decodeInline(text) {
39
- let baseCharsetUri = /^data:application\/json;charset=utf-?8;base64,/
40
- let baseUri = /^data:application\/json;base64,/
41
- let charsetUri = /^data:application\/json;charset=utf-?8,/
42
- let uri = /^data:application\/json,/
43
-
44
- let uriMatch = text.match(charsetUri) || text.match(uri)
45
- if (uriMatch) {
46
- return decodeURIComponent(text.substr(uriMatch[0].length))
47
- }
48
-
49
- let baseUriMatch = text.match(baseCharsetUri) || text.match(baseUri)
50
- if (baseUriMatch) {
51
- return fromBase64(text.substr(baseUriMatch[0].length))
52
- }
53
-
54
- let encoding = text.slice('data:application/json;'.length)
55
- encoding = encoding.slice(0, encoding.indexOf(','))
56
- throw new Error('Unsupported source map encoding ' + encoding)
57
- }
58
-
59
- getAnnotationURL(sourceMapString) {
60
- return sourceMapString.replace(/^\/\*\s*# sourceMappingURL=/, '').trim()
61
- }
62
-
63
- isMap(map) {
64
- if (typeof map !== 'object') return false
65
- return (
66
- typeof map.mappings === 'string' ||
67
- typeof map._mappings === 'string' ||
68
- Array.isArray(map.sections)
69
- )
70
- }
71
-
72
- loadAnnotation(css) {
73
- let comments = css.match(/\/\*\s*# sourceMappingURL=/g)
74
- if (!comments) return
75
-
76
- // sourceMappingURLs from comments, strings, etc.
77
- let start = css.lastIndexOf(comments.pop())
78
- let end = css.indexOf('*/', start)
79
-
80
- if (start > -1 && end > -1) {
81
- // Locate the last sourceMappingURL to avoid pickin
82
- this.annotation = this.getAnnotationURL(css.substring(start, end))
83
- }
84
- }
85
-
86
- loadFile(path) {
87
- this.root = dirname(path)
88
- if (existsSync(path)) {
89
- this.mapFile = path
90
- return readFileSync(path, 'utf-8').toString().trim()
91
- }
92
- }
93
-
94
- loadMap(file, prev) {
95
- if (prev === false) return false
96
-
97
- if (prev) {
98
- if (typeof prev === 'string') {
99
- return prev
100
- } else if (typeof prev === 'function') {
101
- let prevPath = prev(file)
102
- if (prevPath) {
103
- let map = this.loadFile(prevPath)
104
- if (!map) {
105
- throw new Error(
106
- 'Unable to load previous source map: ' + prevPath.toString()
107
- )
108
- }
109
- return map
110
- }
111
- } else if (prev instanceof SourceMapConsumer) {
112
- return SourceMapGenerator.fromSourceMap(prev).toString()
113
- } else if (prev instanceof SourceMapGenerator) {
114
- return prev.toString()
115
- } else if (this.isMap(prev)) {
116
- return JSON.stringify(prev)
117
- } else {
118
- throw new Error(
119
- 'Unsupported previous source map format: ' + prev.toString()
120
- )
121
- }
122
- } else if (this.inline) {
123
- return this.decodeInline(this.annotation)
124
- } else if (this.annotation) {
125
- let map = this.annotation
126
- if (file) map = join(dirname(file), map)
127
- return this.loadFile(map)
128
- }
129
- }
130
-
131
- startWith(string, start) {
132
- if (!string) return false
133
- return string.substr(0, start.length) === start
134
- }
135
-
136
- withContent() {
137
- return !!(
138
- this.consumer().sourcesContent &&
139
- this.consumer().sourcesContent.length > 0
140
- )
141
- }
142
- }
143
-
144
- module.exports = PreviousMap
145
- PreviousMap.default = PreviousMap
@@ -1,114 +0,0 @@
1
- import Document from './document.js'
2
- import LazyResult from './lazy-result.js'
3
- import NoWorkResult from './no-work-result.js'
4
- import {
5
- AcceptedPlugin,
6
- Plugin,
7
- ProcessOptions,
8
- TransformCallback,
9
- Transformer
10
- } from './postcss.js'
11
- import Result from './result.js'
12
- import Root from './root.js'
13
-
14
- declare namespace Processor {
15
- export { Processor_ as default }
16
- }
17
-
18
- /**
19
- * Contains plugins to process CSS. Create one `Processor` instance,
20
- * initialize its plugins, and then use that instance on numerous CSS files.
21
- *
22
- * ```js
23
- * const processor = postcss([autoprefixer, postcssNested])
24
- * processor.process(css1).then(result => console.log(result.css))
25
- * processor.process(css2).then(result => console.log(result.css))
26
- * ```
27
- */
28
- declare class Processor_ {
29
- /**
30
- * Plugins added to this processor.
31
- *
32
- * ```js
33
- * const processor = postcss([autoprefixer, postcssNested])
34
- * processor.plugins.length //=> 2
35
- * ```
36
- */
37
- plugins: (Plugin | TransformCallback | Transformer)[]
38
-
39
- /**
40
- * Current PostCSS version.
41
- *
42
- * ```js
43
- * if (result.processor.version.split('.')[0] !== '6') {
44
- * throw new Error('This plugin works only with PostCSS 6')
45
- * }
46
- * ```
47
- */
48
- version: string
49
-
50
- /**
51
- * @param plugins PostCSS plugins
52
- */
53
- constructor(plugins?: readonly AcceptedPlugin[])
54
-
55
- /**
56
- * Parses source CSS and returns a `LazyResult` Promise proxy.
57
- * Because some plugins can be asynchronous it doesn’t make
58
- * any transformations. Transformations will be applied
59
- * in the `LazyResult` methods.
60
- *
61
- * ```js
62
- * processor.process(css, { from: 'a.css', to: 'a.out.css' })
63
- * .then(result => {
64
- * console.log(result.css)
65
- * })
66
- * ```
67
- *
68
- * @param css String with input CSS or any object with a `toString()` method,
69
- * like a Buffer. Optionally, send a `Result` instance
70
- * and the processor will take the `Root` from it.
71
- * @param opts Options.
72
- * @return Promise proxy.
73
- */
74
- process(
75
- css: { toString(): string } | LazyResult | Result | Root | string
76
- ): LazyResult | NoWorkResult
77
- process<RootNode extends Document | Root = Root>(
78
- css: { toString(): string } | LazyResult | Result | Root | string,
79
- options: ProcessOptions<RootNode>
80
- ): LazyResult<RootNode>
81
-
82
- /**
83
- * Adds a plugin to be used as a CSS processor.
84
- *
85
- * PostCSS plugin can be in 4 formats:
86
- * * A plugin in `Plugin` format.
87
- * * A plugin creator function with `pluginCreator.postcss = true`.
88
- * PostCSS will call this function without argument to get plugin.
89
- * * A function. PostCSS will pass the function a {@link Root}
90
- * as the first argument and current `Result` instance
91
- * as the second.
92
- * * Another `Processor` instance. PostCSS will copy plugins
93
- * from that instance into this one.
94
- *
95
- * Plugins can also be added by passing them as arguments when creating
96
- * a `postcss` instance (see [`postcss(plugins)`]).
97
- *
98
- * Asynchronous plugins should return a `Promise` instance.
99
- *
100
- * ```js
101
- * const processor = postcss()
102
- * .use(autoprefixer)
103
- * .use(postcssNested)
104
- * ```
105
- *
106
- * @param plugin PostCSS plugin or `Processor` with plugins.
107
- * @return Current processor to make methods chain.
108
- */
109
- use(plugin: AcceptedPlugin): this
110
- }
111
-
112
- declare class Processor extends Processor_ {}
113
-
114
- export = Processor
@@ -1,67 +0,0 @@
1
- 'use strict'
2
-
3
- let Document = require('./document')
4
- let LazyResult = require('./lazy-result')
5
- let NoWorkResult = require('./no-work-result')
6
- let Root = require('./root')
7
-
8
- class Processor {
9
- constructor(plugins = []) {
10
- this.version = '8.5.10'
11
- this.plugins = this.normalize(plugins)
12
- }
13
-
14
- normalize(plugins) {
15
- let normalized = []
16
- for (let i of plugins) {
17
- if (i.postcss === true) {
18
- i = i()
19
- } else if (i.postcss) {
20
- i = i.postcss
21
- }
22
-
23
- if (typeof i === 'object' && Array.isArray(i.plugins)) {
24
- normalized = normalized.concat(i.plugins)
25
- } else if (typeof i === 'object' && i.postcssPlugin) {
26
- normalized.push(i)
27
- } else if (typeof i === 'function') {
28
- normalized.push(i)
29
- } else if (typeof i === 'object' && (i.parse || i.stringify)) {
30
- if (process.env.NODE_ENV !== 'production') {
31
- throw new Error(
32
- 'PostCSS syntaxes cannot be used as plugins. Instead, please use ' +
33
- 'one of the syntax/parser/stringifier options as outlined ' +
34
- 'in your PostCSS runner documentation.'
35
- )
36
- }
37
- } else {
38
- throw new Error(i + ' is not a PostCSS plugin')
39
- }
40
- }
41
- return normalized
42
- }
43
-
44
- process(css, opts = {}) {
45
- if (
46
- !this.plugins.length &&
47
- !opts.parser &&
48
- !opts.stringifier &&
49
- !opts.syntax
50
- ) {
51
- return new NoWorkResult(this, css, opts)
52
- } else {
53
- return new LazyResult(this, css, opts)
54
- }
55
- }
56
-
57
- use(plugin) {
58
- this.plugins = this.plugins.concat(this.normalize([plugin]))
59
- return this
60
- }
61
- }
62
-
63
- module.exports = Processor
64
- Processor.default = Processor
65
-
66
- Root.registerProcessor(Processor)
67
- Document.registerProcessor(Processor)
@@ -1,204 +0,0 @@
1
- import {
2
- Document,
3
- Node,
4
- Plugin,
5
- ProcessOptions,
6
- Root,
7
- SourceMap,
8
- TransformCallback,
9
- Warning,
10
- WarningOptions
11
- } from './postcss.js'
12
- import Processor from './processor.js'
13
-
14
- declare namespace Result {
15
- export interface Message {
16
- [others: string]: any
17
-
18
- /**
19
- * Source PostCSS plugin name.
20
- */
21
- plugin?: string
22
-
23
- /**
24
- * Message type.
25
- */
26
- type: string
27
- }
28
-
29
- export interface ResultOptions extends ProcessOptions {
30
- /**
31
- * The CSS node that was the source of the warning.
32
- */
33
- node?: Node
34
-
35
- /**
36
- * Name of plugin that created this warning. `Result#warn` will fill it
37
- * automatically with `Plugin#postcssPlugin` value.
38
- */
39
- plugin?: string
40
- }
41
-
42
- export { Result_ as default }
43
- }
44
-
45
- /**
46
- * Provides the result of the PostCSS transformations.
47
- *
48
- * A Result instance is returned by `LazyResult#then`
49
- * or `Root#toResult` methods.
50
- *
51
- * ```js
52
- * postcss([autoprefixer]).process(css).then(result => {
53
- * console.log(result.css)
54
- * })
55
- * ```
56
- *
57
- * ```js
58
- * const result2 = postcss.parse(css).toResult()
59
- * ```
60
- */
61
- declare class Result_<RootNode = Document | Root> {
62
- /**
63
- * A CSS string representing of `Result#root`.
64
- *
65
- * ```js
66
- * postcss.parse('a{}').toResult().css //=> "a{}"
67
- * ```
68
- */
69
- css: string
70
-
71
- /**
72
- * Last runned PostCSS plugin.
73
- */
74
- lastPlugin: Plugin | TransformCallback
75
-
76
- /**
77
- * An instance of `SourceMapGenerator` class from the `source-map` library,
78
- * representing changes to the `Result#root` instance.
79
- *
80
- * ```js
81
- * result.map.toJSON() //=> { version: 3, file: 'a.css', … }
82
- * ```
83
- *
84
- * ```js
85
- * if (result.map) {
86
- * fs.writeFileSync(result.opts.to + '.map', result.map.toString())
87
- * }
88
- * ```
89
- */
90
- map: SourceMap
91
-
92
- /**
93
- * Contains messages from plugins (e.g., warnings or custom messages).
94
- * Each message should have type and plugin properties.
95
- *
96
- * ```js
97
- * AtRule: {
98
- * import: (atRule, { result }) {
99
- * const importedFile = parseImport(atRule)
100
- * result.messages.push({
101
- * type: 'dependency',
102
- * plugin: 'postcss-import',
103
- * file: importedFile,
104
- * parent: result.opts.from
105
- * })
106
- * }
107
- * }
108
- * ```
109
- */
110
- messages: Result.Message[]
111
-
112
- /**
113
- * Options from the `Processor#process` or `Root#toResult` call
114
- * that produced this Result instance.]
115
- *
116
- * ```js
117
- * root.toResult(opts).opts === opts
118
- * ```
119
- */
120
- opts: Result.ResultOptions
121
-
122
- /**
123
- * The Processor instance used for this transformation.
124
- *
125
- * ```js
126
- * for (const plugin of result.processor.plugins) {
127
- * if (plugin.postcssPlugin === 'postcss-bad') {
128
- * throw 'postcss-good is incompatible with postcss-bad'
129
- * }
130
- * })
131
- * ```
132
- */
133
- processor: Processor
134
-
135
- /**
136
- * Root node after all transformations.
137
- *
138
- * ```js
139
- * root.toResult().root === root
140
- * ```
141
- */
142
- root: RootNode
143
-
144
- /**
145
- * An alias for the `Result#css` property.
146
- * Use it with syntaxes that generate non-CSS output.
147
- *
148
- * ```js
149
- * result.css === result.content
150
- * ```
151
- */
152
- get content(): string
153
-
154
- /**
155
- * @param processor Processor used for this transformation.
156
- * @param root Root node after all transformations.
157
- * @param opts Options from the `Processor#process` or `Root#toResult`.
158
- */
159
- constructor(processor: Processor, root: RootNode, opts: Result.ResultOptions)
160
-
161
- /**
162
- * Returns for `Result#css` content.
163
- *
164
- * ```js
165
- * result + '' === result.css
166
- * ```
167
- *
168
- * @return String representing of `Result#root`.
169
- */
170
- toString(): string
171
-
172
- /**
173
- * Creates an instance of `Warning` and adds it to `Result#messages`.
174
- *
175
- * ```js
176
- * if (decl.important) {
177
- * result.warn('Avoid !important', { node: decl, word: '!important' })
178
- * }
179
- * ```
180
- *
181
- * @param text Warning message.
182
- * @param opts Warning options.
183
- * @return Created warning.
184
- */
185
- warn(message: string, options?: WarningOptions): Warning
186
-
187
- /**
188
- * Returns warnings from plugins. Filters `Warning` instances
189
- * from `Result#messages`.
190
- *
191
- * ```js
192
- * result.warnings().forEach(warn => {
193
- * console.warn(warn.toString())
194
- * })
195
- * ```
196
- *
197
- * @return Warnings from plugins.
198
- */
199
- warnings(): Warning[]
200
- }
201
-
202
- declare class Result<RootNode = Document | Root> extends Result_<RootNode> {}
203
-
204
- export = Result
@@ -1,42 +0,0 @@
1
- 'use strict'
2
-
3
- let Warning = require('./warning')
4
-
5
- class Result {
6
- get content() {
7
- return this.css
8
- }
9
-
10
- constructor(processor, root, opts) {
11
- this.processor = processor
12
- this.messages = []
13
- this.root = root
14
- this.opts = opts
15
- this.css = ''
16
- this.map = undefined
17
- }
18
-
19
- toString() {
20
- return this.css
21
- }
22
-
23
- warn(text, opts = {}) {
24
- if (!opts.plugin) {
25
- if (this.lastPlugin && this.lastPlugin.postcssPlugin) {
26
- opts.plugin = this.lastPlugin.postcssPlugin
27
- }
28
- }
29
-
30
- let warning = new Warning(text, opts)
31
- this.messages.push(warning)
32
-
33
- return warning
34
- }
35
-
36
- warnings() {
37
- return this.messages.filter(i => i.type === 'warning')
38
- }
39
- }
40
-
41
- module.exports = Result
42
- Result.default = Result
@@ -1,86 +0,0 @@
1
- import Container, { ContainerProps } from './container.js'
2
- import Document from './document.js'
3
- import { ProcessOptions } from './postcss.js'
4
- import Result from './result.js'
5
-
6
- declare namespace Root {
7
- export interface RootRaws extends Record<string, any> {
8
- /**
9
- * The space symbols after the last child to the end of file.
10
- */
11
- after?: string
12
-
13
- /**
14
- * Non-CSS code after `Root`, when `Root` is inside `Document`.
15
- *
16
- * **Experimental:** some aspects of this node could change within minor
17
- * or patch version releases.
18
- */
19
- codeAfter?: string
20
-
21
- /**
22
- * Non-CSS code before `Root`, when `Root` is inside `Document`.
23
- *
24
- * **Experimental:** some aspects of this node could change within minor
25
- * or patch version releases.
26
- */
27
- codeBefore?: string
28
-
29
- /**
30
- * Is the last child has an (optional) semicolon.
31
- */
32
- semicolon?: boolean
33
- }
34
-
35
- export interface RootProps extends ContainerProps {
36
- /**
37
- * Information used to generate byte-to-byte equal node string
38
- * as it was in the origin input.
39
- * */
40
- raws?: RootRaws
41
- }
42
-
43
- export { Root_ as default }
44
- }
45
-
46
- /**
47
- * Represents a CSS file and contains all its parsed nodes.
48
- *
49
- * ```js
50
- * const root = postcss.parse('a{color:black} b{z-index:2}')
51
- * root.type //=> 'root'
52
- * root.nodes.length //=> 2
53
- * ```
54
- */
55
- declare class Root_ extends Container {
56
- nodes: NonNullable<Container['nodes']>
57
- parent: Document | undefined
58
- raws: Root.RootRaws
59
- type: 'root'
60
-
61
- constructor(defaults?: Root.RootProps)
62
-
63
- assign(overrides: object | Root.RootProps): this
64
- clone(overrides?: Partial<Root.RootProps>): this
65
- cloneAfter(overrides?: Partial<Root.RootProps>): this
66
- cloneBefore(overrides?: Partial<Root.RootProps>): this
67
-
68
- /**
69
- * Returns a `Result` instance representing the root’s CSS.
70
- *
71
- * ```js
72
- * const root1 = postcss.parse(css1, { from: 'a.css' })
73
- * const root2 = postcss.parse(css2, { from: 'b.css' })
74
- * root1.append(root2)
75
- * const result = root1.toResult({ to: 'all.css', map: true })
76
- * ```
77
- *
78
- * @param options Options.
79
- * @return Result with current root’s CSS.
80
- */
81
- toResult(options?: ProcessOptions): Result
82
- }
83
-
84
- declare class Root extends Root_ {}
85
-
86
- export = Root