chromatic 13.3.6--canary.1227.21011124277.0 → 13.3.6--canary.1228.21436456148.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.
package/dist/node.js CHANGED
@@ -2,37 +2,38 @@
2
2
 
3
3
  !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="0cf6a3a5-e29f-509e-b640-db78f38007ea")}catch(e){}}();
4
4
 
5
- var chunkYI6WVI4W_js = require('./chunk-YI6WVI4W.js');
6
- require('./chunk-LAQIPRAO.js');
5
+ var chunkZVWAYXX5_js = require('./chunk-ZVWAYXX5.js');
6
+ var chunkORGLXPKH_js = require('./chunk-ORGLXPKH.js');
7
+ require('./chunk-4APITVWL.js');
8
+ require('./chunk-JK52R5MH.js');
7
9
  require('./chunk-O2POOKSN.js');
8
- require('./chunk-IM5VGDJQ.js');
9
- require('./chunk-LTE3MQL2.js');
10
- var chunkHZVCNUTP_js = require('./chunk-HZVCNUTP.js');
11
- require('./chunk-F6FLWRPJ.js');
10
+ require('./chunk-CSUWEKGO.js');
12
11
  require('./chunk-LZXDNZPW.js');
12
+ require('./chunk-LTE3MQL2.js');
13
+ require('./chunk-UIMESW7Y.js');
13
14
  require('./chunk-TKGT252T.js');
14
15
 
15
16
 
16
17
 
17
18
  Object.defineProperty(exports, 'getConfiguration', {
18
19
  enumerable: true,
19
- get: function () { return chunkYI6WVI4W_js.d; }
20
+ get: function () { return chunkZVWAYXX5_js.d; }
20
21
  });
21
22
  Object.defineProperty(exports, 'getGitInfo', {
22
23
  enumerable: true,
23
- get: function () { return chunkYI6WVI4W_js.g; }
24
+ get: function () { return chunkZVWAYXX5_js.g; }
24
25
  });
25
26
  Object.defineProperty(exports, 'run', {
26
27
  enumerable: true,
27
- get: function () { return chunkYI6WVI4W_js.e; }
28
+ get: function () { return chunkZVWAYXX5_js.e; }
28
29
  });
29
30
  Object.defineProperty(exports, 'runAll', {
30
31
  enumerable: true,
31
- get: function () { return chunkYI6WVI4W_js.f; }
32
+ get: function () { return chunkZVWAYXX5_js.f; }
32
33
  });
33
34
  Object.defineProperty(exports, 'createLogger', {
34
35
  enumerable: true,
35
- get: function () { return chunkHZVCNUTP_js.E; }
36
+ get: function () { return chunkORGLXPKH_js.E; }
36
37
  });
37
38
  //# sourceMappingURL=out.js.map
38
39
  //# sourceMappingURL=node.js.map
@@ -0,0 +1,26 @@
1
+ 'use strict';
2
+
3
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="e3633225-5fa5-51ee-81e6-3e5454b48ff6")}catch(e){}}();
4
+
5
+ Object.defineProperty(exports, '__esModule', { value: true });
6
+
7
+ require('./chunk-UIMESW7Y.js');
8
+ require('./chunk-TKGT252T.js');
9
+ var v = require('url');
10
+ var _ = require('path');
11
+ var p = require('module');
12
+
13
+ var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
14
+ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
15
+
16
+ var v__default = /*#__PURE__*/_interopDefault(v);
17
+ var ___default = /*#__PURE__*/_interopDefault(_);
18
+ var p__default = /*#__PURE__*/_interopDefault(p);
19
+
20
+ var c=v__default.default.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('out.js', document.baseURI).href)));___default.default.dirname(c);p__default.default.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('out.js', document.baseURI).href)));var g=class{value;next;constructor(e){this.value=e;}},q=class{#e;#t;#i;constructor(){this.clear();}enqueue(e){let t=new g(e);this.#e?(this.#t.next=t,this.#t=t):(this.#e=t,this.#t=t),this.#i++;}dequeue(){let e=this.#e;if(e)return this.#e=this.#e.next,this.#i--,this.#e||(this.#t=void 0),e.value}peek(){if(this.#e)return this.#e.value}clear(){this.#e=void 0,this.#t=void 0,this.#i=0;}get size(){return this.#i}*[Symbol.iterator](){let e=this.#e;for(;e;)yield e.value,e=e.next;}*drain(){for(;this.#e;)yield this.dequeue();}};function P(e){h(e);let t=new q,r=0,n=()=>{r<e&&t.size>0&&(r++,t.dequeue()());},o=()=>{r--,n();},m=async(i,u,s)=>{let a=(async()=>i(...s))();u(a);try{await a;}catch{}o();},d=(i,u,s)=>{new Promise(a=>{t.enqueue(a);}).then(m.bind(void 0,i,u,s)),r<e&&n();},l=(i,...u)=>new Promise(s=>{d(i,s,u);});return Object.defineProperties(l,{activeCount:{get:()=>r},pendingCount:{get:()=>t.size},clearQueue:{value(){t.clear();}},concurrency:{get:()=>e,set(i){h(i),e=i,queueMicrotask(()=>{for(;r<e&&t.size>0;)n();});}},map:{async value(i,u){let s=Array.from(i,(a,f)=>this(u,a,f));return Promise.all(s)}}}),l}function b(e,t){let{concurrency:r}=t,n=P(r);return (...o)=>n(()=>e(...o))}function h(e){if(!((Number.isInteger(e)||e===Number.POSITIVE_INFINITY)&&e>0))throw new TypeError("Expected `concurrency` to be a number from 1 and up")}
21
+
22
+ exports.default = P;
23
+ exports.limitFunction = b;
24
+ //# sourceMappingURL=out.js.map
25
+ //# sourceMappingURL=p-limit-IAOFNB4G-AVPP6LIW.js.map
26
+ //# debugId=e3633225-5fa5-51ee-81e6-3e5454b48ff6
@@ -2,12 +2,12 @@
2
2
 
3
3
  !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="abdb8baf-b3c5-5301-8ac4-55ed1f07e970")}catch(e){}}();
4
4
 
5
- var chunkHZVCNUTP_js = require('./chunk-HZVCNUTP.js');
6
- var chunkF6FLWRPJ_js = require('./chunk-F6FLWRPJ.js');
5
+ var chunkORGLXPKH_js = require('./chunk-ORGLXPKH.js');
6
+ var chunkJK52R5MH_js = require('./chunk-JK52R5MH.js');
7
7
  var chunkLZXDNZPW_js = require('./chunk-LZXDNZPW.js');
8
8
  var chunkTKGT252T_js = require('./chunk-TKGT252T.js');
9
9
 
10
- var c=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.z());var{STORYBOOK_BASE_DIR:u,STORYBOOK_CONFIG_DIR:h,WEBPACK_STATS_FILE:k}=process.env;async function B(d){let{flags:t,input:p}=(0, c.default)(`
10
+ var c=chunkTKGT252T_js.e(chunkJK52R5MH_js.x());var{STORYBOOK_BASE_DIR:u,STORYBOOK_CONFIG_DIR:h,WEBPACK_STATS_FILE:k}=process.env;async function B(d){let{flags:t,input:p}=(0, c.default)(`
11
11
  Usage
12
12
  $ chromatic trace [-b|--base-dir] [-c|--config-dir] [-s|--stats-file] [-u|--untraced] [-m|--mode] [<changed files>...]
13
13
 
@@ -18,9 +18,9 @@ var c=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.z());var{STORYBOOK_BASE_DIR:u,STORYBOO
18
18
  --storybook-config-dir, -c <dirname> Directory where to load Storybook configurations from. Alternatively, set STORYBOOK_CONFIG_DIR. (default: '.storybook')
19
19
  --untraced, -u <filepath> Disregard these files and their dependencies. Globs are supported via picomatch. This flag can be specified multiple times.
20
20
  --mode, -m <mode> Set to 'expanded' to reveal the underlying list of files for each bundle, or set to 'compact' to only show a flat list of affected story files.
21
- `,{argv:d,description:"Trace utility for TurboSnap",flags:{statsFile:{type:"string",alias:"s",default:k||"storybook-static/preview-stats.json"},storybookBaseDir:{type:"string",alias:"b",default:u||"."},storybookConfigDir:{type:"string",alias:"c",default:h||".storybook"},untraced:{type:"string",alias:"u",isMultiple:!0},mode:{type:"string",alias:"m"}}}),e=chunkHZVCNUTP_js.E({},{logPrefix:"",logLevel:"info"}),y={log:e,options:{storybookBaseDir:t.storybookBaseDir,storybookConfigDir:t.storybookConfigDir,untraced:t.untraced,traceChanged:t.mode||!0},git:{rootPath:await chunkHZVCNUTP_js.x({log:e})},storybook:{baseDir:t.storybookBaseDir,configDir:t.storybookConfigDir}},g=await chunkLZXDNZPW_js.a(t.statsFile),i=p.map(o=>o.replace(/^\.\//,"")),r=i.find(o=>chunkHZVCNUTP_js.$(o));if(r)throw new Error(`Unable to trace package manifest file (${r}) as that would require diffing file contents.`);await chunkHZVCNUTP_js.ha(y,g,t.statsFile,i);}
21
+ `,{argv:d,description:"Trace utility for TurboSnap",flags:{statsFile:{type:"string",alias:"s",default:k||"storybook-static/preview-stats.json"},storybookBaseDir:{type:"string",alias:"b",default:u||"."},storybookConfigDir:{type:"string",alias:"c",default:h||".storybook"},untraced:{type:"string",alias:"u",isMultiple:!0},mode:{type:"string",alias:"m"}}}),e=chunkORGLXPKH_js.E({},{logPrefix:"",logLevel:"info"}),y={log:e,options:{storybookBaseDir:t.storybookBaseDir,storybookConfigDir:t.storybookConfigDir,untraced:t.untraced,traceChanged:t.mode||!0},git:{rootPath:await chunkORGLXPKH_js.y({log:e})},storybook:{baseDir:t.storybookBaseDir,configDir:t.storybookConfigDir}},g=await chunkLZXDNZPW_js.a(t.statsFile),i=p.map(o=>o.replace(/^\.\//,"")),r=i.find(o=>chunkORGLXPKH_js.$(o));if(r)throw new Error(`Unable to trace package manifest file (${r}) as that would require diffing file contents.`);await chunkORGLXPKH_js.ga(y,g,t.statsFile,i);}
22
22
 
23
23
  exports.main = B;
24
24
  //# sourceMappingURL=out.js.map
25
- //# sourceMappingURL=trace-WZCOPXHB.js.map
25
+ //# sourceMappingURL=trace-NGJIEYZX.js.map
26
26
  //# debugId=abdb8baf-b3c5-5301-8ac4-55ed1f07e970
@@ -2,17 +2,17 @@
2
2
 
3
3
  !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="0cf6a3a5-e29f-509e-b640-db78f38007ea")}catch(e){}}();
4
4
 
5
- var chunkIM5VGDJQ_js = require('./chunk-IM5VGDJQ.js');
6
- require('./chunk-LTE3MQL2.js');
5
+ var chunkCSUWEKGO_js = require('./chunk-CSUWEKGO.js');
7
6
  require('./chunk-LZXDNZPW.js');
7
+ require('./chunk-LTE3MQL2.js');
8
8
  require('./chunk-TKGT252T.js');
9
9
 
10
10
 
11
11
 
12
12
  Object.defineProperty(exports, 'main', {
13
13
  enumerable: true,
14
- get: function () { return chunkIM5VGDJQ_js.b; }
14
+ get: function () { return chunkCSUWEKGO_js.b; }
15
15
  });
16
16
  //# sourceMappingURL=out.js.map
17
- //# sourceMappingURL=trimStatsFile-B32JUOXW.js.map
17
+ //# sourceMappingURL=trimStatsFile-7PMDUGYE.js.map
18
18
  //# debugId=0cf6a3a5-e29f-509e-b640-db78f38007ea
package/isChromatic.d.ts CHANGED
@@ -1,7 +1,9 @@
1
1
  /**
2
- * Returns `true` if running within Chromatic, `false` otherwise.
3
- * @argument window - The window object whose `navigator` and/or `location` is
4
- * used to determine if running in Chromatic.
2
+ * Checks if the current environment is running in Chromatic.
3
+ *
4
+ * @param window - The window object whose `navigator` and/or `location` is used to determine if running in Chromatic.
5
+ *
6
+ * @returns `true` if running within Chromatic, `false` otherwise.
5
7
  */
6
8
  declare function isChromatic(window?: Window): boolean;
7
9
  export = isChromatic;
package/isChromatic.js CHANGED
@@ -1,7 +1,8 @@
1
- /* eslint-disable unicorn/prefer-module */
2
1
  /* eslint-env browser */
3
2
 
3
+ // eslint-disable-next-line unicorn/prefer-module
4
4
  module.exports = function isChromatic(windowArgument) {
5
+ // eslint-disable-next-line unicorn/prefer-global-this
5
6
  const windowToCheck = windowArgument || (typeof window !== 'undefined' && window);
6
7
  return !!(
7
8
  windowToCheck &&
package/isChromatic.mjs CHANGED
@@ -1,6 +1,7 @@
1
1
  /* eslint-env browser */
2
2
 
3
3
  export default function isChromatic(windowArgument) {
4
+ // eslint-disable-next-line unicorn/prefer-global-this
4
5
  const windowToCheck = windowArgument || (typeof window !== 'undefined' && window);
5
6
  return !!(
6
7
  windowToCheck &&
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chromatic",
3
- "version": "13.3.6--canary.1227.21011124277.0",
3
+ "version": "13.3.6--canary.1228.21436456148.0",
4
4
  "description": "Automate visual testing across browsers. Gather UI feedback. Versioned documentation.",
5
5
  "keywords": [
6
6
  "storybook-addon",
@@ -77,32 +77,28 @@
77
77
  "@antfu/ni": "^0.21.5",
78
78
  "@auto-it/slack": "^11.1.6",
79
79
  "@discoveryjs/json-ext": "^0.5.7",
80
- "@eslint-community/eslint-plugin-eslint-comments": "^4.3.0",
80
+ "@eslint-community/eslint-plugin-eslint-comments": "^4.6.0",
81
81
  "@sentry/cli": "^2.37.0",
82
82
  "@sentry/node": "^8.30.0",
83
83
  "@snyk/dep-graph": "^2.9.0",
84
- "@storybook/addon-essentials": "^8.1.5",
85
- "@storybook/addon-webpack5-compiler-swc": "^1.0.3",
86
- "@storybook/csf-tools": "^8.1.5",
84
+ "@storybook/addon-docs": "^10.2.1",
85
+ "@storybook/addon-webpack5-compiler-swc": "^4.0.2",
87
86
  "@storybook/linter-config": "^4.0.0",
88
- "@storybook/react": "^8.1.5",
89
- "@storybook/react-webpack5": "^8.1.5",
90
- "@tsconfig/node16": "^16.1.1",
87
+ "@storybook/react-webpack5": "^10.2.1",
88
+ "@tsconfig/node22": "^22.0.0",
91
89
  "@types/archiver": "^5.3.1",
92
90
  "@types/async-retry": "^1.4.3",
93
91
  "@types/cross-spawn": "^6.0.2",
94
92
  "@types/fs-extra": "^9.0.13",
95
93
  "@types/jsonfile": "^6.0.1",
96
94
  "@types/listr": "^0.14.4",
97
- "@types/node": "18.x",
95
+ "@types/node": "22.x",
98
96
  "@types/picomatch": "^2.3.0",
99
97
  "@types/progress-stream": "^2.0.2",
100
98
  "@types/prompts": "^2.4.9",
101
99
  "@types/semver": "^7.3.9",
102
100
  "@types/webpack-env": "^1.18.5",
103
101
  "@types/ws": "^8",
104
- "@typescript-eslint/eslint-plugin": "^6.8.0",
105
- "@typescript-eslint/parser": "^6.8.0",
106
102
  "@vitest/coverage-v8": "^2.0.5",
107
103
  "ansi-html": "0.0.9",
108
104
  "any-observable": "^0.5.1",
@@ -118,17 +114,19 @@
118
114
  "debug": "^4.3.2",
119
115
  "dotenv": "^16.4.5",
120
116
  "env-ci": "^11.1.0",
121
- "eslint": "^9.10.0",
122
- "eslint-config-prettier": "^9.0.0",
123
- "eslint-plugin-import": "^2.28.1",
124
- "eslint-plugin-jsdoc": "^48.2.6",
125
- "eslint-plugin-json": "^3.1.0",
126
- "eslint-plugin-no-secrets": "^1.0.2",
127
- "eslint-plugin-react": "^7.33.2",
128
- "eslint-plugin-security": "^3.0.0",
129
- "eslint-plugin-simple-import-sort": "^12.1.0",
130
- "eslint-plugin-sort-class-members": "^1.20.0",
131
- "eslint-plugin-unicorn": "^53.0.0",
117
+ "eslint": "^9.39.2",
118
+ "eslint-config-prettier": "^10.1.8",
119
+ "eslint-plugin-import": "^2.32.0",
120
+ "eslint-plugin-jsdoc": "^62.4.1",
121
+ "eslint-plugin-json": "^4.0.1",
122
+ "eslint-plugin-no-secrets": "^2.2.1",
123
+ "eslint-plugin-prettier": "^5.5.5",
124
+ "eslint-plugin-react": "^7.37.5",
125
+ "eslint-plugin-security": "^3.0.1",
126
+ "eslint-plugin-simple-import-sort": "^12.1.1",
127
+ "eslint-plugin-sort-class-members": "^1.21.0",
128
+ "eslint-plugin-storybook": "^10.2.1",
129
+ "eslint-plugin-unicorn": "^62.0.0",
132
130
  "esm": "^3.2.25",
133
131
  "execa": "^9.6.0",
134
132
  "fake-tag": "^2.0.0",
@@ -136,7 +134,7 @@
136
134
  "find-up": "^7.0.0",
137
135
  "formdata-node": "^6.0.3",
138
136
  "fs-extra": "^10.0.0",
139
- "globals": "^15.3.0",
137
+ "globals": "^15.14.0",
140
138
  "https-proxy-agent": "^7.0.2",
141
139
  "husky": "^7.0.0",
142
140
  "json5": "^2.2.3",
@@ -153,35 +151,36 @@
153
151
  "observable": "^2.1.4",
154
152
  "os-browserify": "^0.3.0",
155
153
  "p-limit": "3.1.0",
154
+ "path-browserify": "^1.0.1",
156
155
  "picomatch": "2.2.2",
157
156
  "pkg-up": "^3.1.0",
158
157
  "pluralize": "^8.0.0",
159
- "prettier": "^3.2.5",
158
+ "prettier": "^3.8.1",
160
159
  "progress-stream": "^2.0.0",
161
160
  "prompts": "^2.4.2",
162
- "prop-types": "^15.7.2",
163
- "react": "^17.0.2",
164
- "react-dom": "^17.0.2",
161
+ "prop-types": "^15.8.1",
162
+ "react": "^19.2.4",
163
+ "react-dom": "^19.2.4",
165
164
  "read-package-up": "^11.0.0",
166
165
  "semver": "^7.3.5",
167
166
  "slash": "^3.0.0",
168
167
  "snyk-nodejs-lockfile-parser": "^1.58.18",
169
168
  "snyk-nodejs-plugin": "^1.4.3",
170
169
  "sort-package-json": "1.50.0",
171
- "storybook": "^8.1.5",
170
+ "storybook": "^10.2.1",
172
171
  "string-argv": "^0.3.1",
173
172
  "strip-ansi": "^7.1.0",
174
173
  "tmp-promise": "3.0.2",
175
174
  "ts-dedent": "^1.0.0",
176
175
  "ts-loader": "^9.2.5",
177
176
  "tsup": "^7.2.0",
178
- "typescript": "^5.2.2",
179
- "typescript-eslint": "^7.11.0",
177
+ "typescript": "^5.7.0",
178
+ "typescript-eslint": "^8.54.0",
180
179
  "util-deprecate": "^1.0.2",
181
180
  "uuid": "^8.3.2",
182
- "vite": "^4.4.9",
183
- "vite-tsconfig-paths": "^5.1.4",
184
- "vitest": "^2.0.5",
181
+ "vite": "^7.3.1",
182
+ "vite-tsconfig-paths": "^6.0.5",
183
+ "vitest": "^4.0.18",
185
184
  "why-is-node-running": "^2.1.2",
186
185
  "ws": "^8.18.2",
187
186
  "xxhash-wasm": "^1.0.2",