@storybook/addon-vitest 0.0.0-pr-32207-sha-0c91842b → 0.0.0-pr-31819-sha-49719b52

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 (41) hide show
  1. package/dist/_browser-chunks/chunk-JFJ5UJ7Q.js +11 -0
  2. package/dist/_browser-chunks/chunk-PMYV6BH2.js +76 -0
  3. package/dist/_node-chunks/chunk-6LE5TWNL.js +6873 -0
  4. package/dist/_node-chunks/chunk-6LUGFFEW.js +247 -0
  5. package/dist/_node-chunks/chunk-73FMB4SF.js +2264 -0
  6. package/dist/_node-chunks/chunk-JSBGELJW.js +295 -0
  7. package/dist/_node-chunks/chunk-KF3GTM5X.js +481 -0
  8. package/dist/_node-chunks/chunk-LRML5GJH.js +103 -0
  9. package/dist/_node-chunks/chunk-M2IWFCRL.js +55 -0
  10. package/dist/_node-chunks/chunk-NHGMRVKU.js +91 -0
  11. package/dist/index.js +9 -6
  12. package/dist/manager.js +7516 -8
  13. package/dist/node/coverage-reporter.js +1898 -4
  14. package/dist/node/vitest.js +740 -17
  15. package/dist/postinstall.js +2076 -88
  16. package/dist/preset.js +360 -31
  17. package/dist/vitest-plugin/global-setup.js +200 -6
  18. package/dist/vitest-plugin/index.js +3823 -43
  19. package/dist/vitest-plugin/setup-file.js +30 -8
  20. package/dist/vitest-plugin/test-utils.js +102 -8
  21. package/manager.js +1 -1
  22. package/package.json +16 -89
  23. package/preset.js +1 -1
  24. package/dist/chunk-55WZLVGN.mjs +0 -11
  25. package/dist/chunk-JKRQGT2U.mjs +0 -10
  26. package/dist/index.mjs +0 -5
  27. package/dist/node/coverage-reporter.d.ts +0 -184
  28. package/dist/node/coverage-reporter.mjs +0 -12
  29. package/dist/node/vitest.d.ts +0 -2
  30. package/dist/node/vitest.mjs +0 -19
  31. package/dist/vitest-plugin/global-setup.d.ts +0 -6
  32. package/dist/vitest-plugin/global-setup.mjs +0 -13
  33. package/dist/vitest-plugin/index.mjs +0 -28
  34. package/dist/vitest-plugin/setup-file.d.ts +0 -14
  35. package/dist/vitest-plugin/setup-file.mjs +0 -9
  36. package/dist/vitest-plugin/test-utils.d.ts +0 -20
  37. package/dist/vitest-plugin/test-utils.mjs +0 -8
  38. package/manager.mjs +0 -1
  39. package/postinstall.js +0 -1
  40. package/postinstall.mjs +0 -1
  41. package/preset.mjs +0 -1
@@ -0,0 +1,91 @@
1
+ import CJS_COMPAT_NODE_URL_v8uc6hoy9t from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_v8uc6hoy9t from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_v8uc6hoy9t from "node:module";
4
+
5
+ var __filename = CJS_COMPAT_NODE_URL_v8uc6hoy9t.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_v8uc6hoy9t.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_v8uc6hoy9t.createRequire(import.meta.url);
8
+
9
+ // ------------------------------------------------------------
10
+ // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
+ // ------------------------------------------------------------
12
+ import {
13
+ __commonJS,
14
+ __name
15
+ } from "./chunk-M2IWFCRL.js";
16
+
17
+ // ../../node_modules/picocolors/picocolors.js
18
+ var require_picocolors = __commonJS({
19
+ "../../node_modules/picocolors/picocolors.js"(exports, module) {
20
+ var p = process || {};
21
+ var argv = p.argv || [];
22
+ var env = p.env || {};
23
+ var isColorSupported = !(!!env.NO_COLOR || argv.includes("--no-color")) && (!!env.FORCE_COLOR || argv.includes("--color") || p.platform === "win32" || (p.stdout || {}).isTTY && env.TERM !== "dumb" || !!env.CI);
24
+ var formatter = /* @__PURE__ */ __name((open, close, replace = open) => (input) => {
25
+ let string = "" + input, index = string.indexOf(close, open.length);
26
+ return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close;
27
+ }, "formatter");
28
+ var replaceClose = /* @__PURE__ */ __name((string, close, replace, index) => {
29
+ let result = "", cursor = 0;
30
+ do {
31
+ result += string.substring(cursor, index) + replace;
32
+ cursor = index + close.length;
33
+ index = string.indexOf(close, cursor);
34
+ } while (~index);
35
+ return result + string.substring(cursor);
36
+ }, "replaceClose");
37
+ var createColors = /* @__PURE__ */ __name((enabled = isColorSupported) => {
38
+ let f = enabled ? formatter : () => String;
39
+ return {
40
+ isColorSupported: enabled,
41
+ reset: f("\x1B[0m", "\x1B[0m"),
42
+ bold: f("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m"),
43
+ dim: f("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m"),
44
+ italic: f("\x1B[3m", "\x1B[23m"),
45
+ underline: f("\x1B[4m", "\x1B[24m"),
46
+ inverse: f("\x1B[7m", "\x1B[27m"),
47
+ hidden: f("\x1B[8m", "\x1B[28m"),
48
+ strikethrough: f("\x1B[9m", "\x1B[29m"),
49
+ black: f("\x1B[30m", "\x1B[39m"),
50
+ red: f("\x1B[31m", "\x1B[39m"),
51
+ green: f("\x1B[32m", "\x1B[39m"),
52
+ yellow: f("\x1B[33m", "\x1B[39m"),
53
+ blue: f("\x1B[34m", "\x1B[39m"),
54
+ magenta: f("\x1B[35m", "\x1B[39m"),
55
+ cyan: f("\x1B[36m", "\x1B[39m"),
56
+ white: f("\x1B[37m", "\x1B[39m"),
57
+ gray: f("\x1B[90m", "\x1B[39m"),
58
+ bgBlack: f("\x1B[40m", "\x1B[49m"),
59
+ bgRed: f("\x1B[41m", "\x1B[49m"),
60
+ bgGreen: f("\x1B[42m", "\x1B[49m"),
61
+ bgYellow: f("\x1B[43m", "\x1B[49m"),
62
+ bgBlue: f("\x1B[44m", "\x1B[49m"),
63
+ bgMagenta: f("\x1B[45m", "\x1B[49m"),
64
+ bgCyan: f("\x1B[46m", "\x1B[49m"),
65
+ bgWhite: f("\x1B[47m", "\x1B[49m"),
66
+ blackBright: f("\x1B[90m", "\x1B[39m"),
67
+ redBright: f("\x1B[91m", "\x1B[39m"),
68
+ greenBright: f("\x1B[92m", "\x1B[39m"),
69
+ yellowBright: f("\x1B[93m", "\x1B[39m"),
70
+ blueBright: f("\x1B[94m", "\x1B[39m"),
71
+ magentaBright: f("\x1B[95m", "\x1B[39m"),
72
+ cyanBright: f("\x1B[96m", "\x1B[39m"),
73
+ whiteBright: f("\x1B[97m", "\x1B[39m"),
74
+ bgBlackBright: f("\x1B[100m", "\x1B[49m"),
75
+ bgRedBright: f("\x1B[101m", "\x1B[49m"),
76
+ bgGreenBright: f("\x1B[102m", "\x1B[49m"),
77
+ bgYellowBright: f("\x1B[103m", "\x1B[49m"),
78
+ bgBlueBright: f("\x1B[104m", "\x1B[49m"),
79
+ bgMagentaBright: f("\x1B[105m", "\x1B[49m"),
80
+ bgCyanBright: f("\x1B[106m", "\x1B[49m"),
81
+ bgWhiteBright: f("\x1B[107m", "\x1B[49m")
82
+ };
83
+ }, "createColors");
84
+ module.exports = createColors();
85
+ module.exports.createColors = createColors;
86
+ }
87
+ });
88
+
89
+ export {
90
+ require_picocolors
91
+ };
package/dist/index.js CHANGED
@@ -1,7 +1,10 @@
1
- 'use strict';
1
+ import {
2
+ __name
3
+ } from "./_browser-chunks/chunk-JFJ5UJ7Q.js";
2
4
 
3
- var csf = require('storybook/internal/csf');
4
-
5
- var index_default=()=>csf.definePreviewAddon({});
6
-
7
- module.exports = index_default;
5
+ // src/index.ts
6
+ import { definePreviewAddon } from "storybook/internal/csf";
7
+ var index_default = /* @__PURE__ */ __name(() => definePreviewAddon({}), "default");
8
+ export {
9
+ index_default as default
10
+ };