@depup/chromatic 15.3.0-depup.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 ADDED
@@ -0,0 +1,42 @@
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]="0cf6a3a5-e29f-509e-b640-db78f38007ea")}catch(e){}}();
4
+
5
+ var chunkOZ5UCTZI_js = require('./chunk-OZ5UCTZI.js');
6
+ require('./chunk-O24NAZIY.js');
7
+ require('./chunk-LF2CMSKT.js');
8
+ require('./chunk-O2POOKSN.js');
9
+ require('./chunk-IM5VGDJQ.js');
10
+ require('./chunk-LTE3MQL2.js');
11
+ require('./chunk-NSVWRPLD.js');
12
+ var chunkB4N5LDWU_js = require('./chunk-B4N5LDWU.js');
13
+ require('./chunk-L4MOYV7P.js');
14
+ require('./chunk-GH7MN4KC.js');
15
+ require('./chunk-LZXDNZPW.js');
16
+ require('./chunk-TKGT252T.js');
17
+
18
+
19
+
20
+ Object.defineProperty(exports, 'getConfiguration', {
21
+ enumerable: true,
22
+ get: function () { return chunkOZ5UCTZI_js.d; }
23
+ });
24
+ Object.defineProperty(exports, 'getGitInfo', {
25
+ enumerable: true,
26
+ get: function () { return chunkOZ5UCTZI_js.g; }
27
+ });
28
+ Object.defineProperty(exports, 'run', {
29
+ enumerable: true,
30
+ get: function () { return chunkOZ5UCTZI_js.e; }
31
+ });
32
+ Object.defineProperty(exports, 'runAll', {
33
+ enumerable: true,
34
+ get: function () { return chunkOZ5UCTZI_js.f; }
35
+ });
36
+ Object.defineProperty(exports, 'createLogger', {
37
+ enumerable: true,
38
+ get: function () { return chunkB4N5LDWU_js.b; }
39
+ });
40
+ //# sourceMappingURL=out.js.map
41
+ //# sourceMappingURL=node.js.map
42
+ //# debugId=0cf6a3a5-e29f-509e-b640-db78f38007ea
@@ -0,0 +1,28 @@
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]="5445b1c7-5038-5724-9077-fbe4262eb0e3")}catch(e){}}();
4
+
5
+ var chunkNSVWRPLD_js = require('./chunk-NSVWRPLD.js');
6
+ var chunkB4N5LDWU_js = require('./chunk-B4N5LDWU.js');
7
+ require('./chunk-L4MOYV7P.js');
8
+ var chunkGH7MN4KC_js = require('./chunk-GH7MN4KC.js');
9
+ var chunkLZXDNZPW_js = require('./chunk-LZXDNZPW.js');
10
+ var chunkTKGT252T_js = require('./chunk-TKGT252T.js');
11
+
12
+ var c=chunkTKGT252T_js.e(chunkGH7MN4KC_js.s());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)(`
13
+ Usage
14
+ $ chromatic trace [-b|--base-dir] [-c|--config-dir] [-s|--stats-file] [-u|--untraced] [-m|--mode] [<changed files>...]
15
+
16
+ Options
17
+ <changed files>... List of changed files relative to repository root.
18
+ --stats-file, -s <filepath> Path to preview-stats.json. Alternatively, set WEBPACK_STATS_FILE. (default: 'storybook-static/preview-stats.json')
19
+ --storybook-base-dir, -b <dirname> Relative path from repository root to Storybook project root. Alternatively, set STORYBOOK_BASE_DIR. Use when your Storybook is located in a subdirectory of your repository.
20
+ --storybook-config-dir, -c <dirname> Directory where to load Storybook configurations from. Alternatively, set STORYBOOK_CONFIG_DIR. (default: '.storybook')
21
+ --untraced, -u <filepath> Disregard these files and their dependencies. Globs are supported via picomatch. This flag can be specified multiple times.
22
+ --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.
23
+ `,{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=chunkB4N5LDWU_js.b({},{logPrefix:"",logLevel:"info"}),y={log:e,options:{storybookBaseDir:t.storybookBaseDir,storybookConfigDir:t.storybookConfigDir,untraced:t.untraced,traceChanged:t.mode||!0},git:{rootPath:await chunkNSVWRPLD_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=>chunkNSVWRPLD_js.Z(o));if(r)throw new Error(`Unable to trace package manifest file (${r}) as that would require diffing file contents.`);await chunkNSVWRPLD_js.fa(y,g,t.statsFile,i);}
24
+
25
+ exports.main = B;
26
+ //# sourceMappingURL=out.js.map
27
+ //# sourceMappingURL=trace-MLXGIQZW.js.map
28
+ //# debugId=5445b1c7-5038-5724-9077-fbe4262eb0e3
@@ -0,0 +1,18 @@
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]="0cf6a3a5-e29f-509e-b640-db78f38007ea")}catch(e){}}();
4
+
5
+ var chunkIM5VGDJQ_js = require('./chunk-IM5VGDJQ.js');
6
+ require('./chunk-LTE3MQL2.js');
7
+ require('./chunk-LZXDNZPW.js');
8
+ require('./chunk-TKGT252T.js');
9
+
10
+
11
+
12
+ Object.defineProperty(exports, 'main', {
13
+ enumerable: true,
14
+ get: function () { return chunkIM5VGDJQ_js.b; }
15
+ });
16
+ //# sourceMappingURL=out.js.map
17
+ //# sourceMappingURL=trimStatsFile-B32JUOXW.js.map
18
+ //# debugId=0cf6a3a5-e29f-509e-b640-db78f38007ea
@@ -0,0 +1,7 @@
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.
5
+ */
6
+ declare function isChromatic(window?: Window): boolean;
7
+ export = isChromatic;
package/isChromatic.js ADDED
@@ -0,0 +1,11 @@
1
+ /* eslint-disable unicorn/prefer-module */
2
+ /* eslint-env browser */
3
+
4
+ module.exports = function isChromatic(windowArgument) {
5
+ const windowToCheck = windowArgument || (typeof window !== 'undefined' && window);
6
+ return !!(
7
+ windowToCheck &&
8
+ (/Chromatic/.test(windowToCheck.navigator.userAgent) ||
9
+ /chromatic=true/.test(windowToCheck.location.href))
10
+ );
11
+ };
@@ -0,0 +1,10 @@
1
+ /* eslint-env browser */
2
+
3
+ export default function isChromatic(windowArgument) {
4
+ const windowToCheck = windowArgument || (typeof window !== 'undefined' && window);
5
+ return !!(
6
+ windowToCheck &&
7
+ (/Chromatic/.test(windowToCheck.navigator.userAgent) ||
8
+ /chromatic=true/.test(windowToCheck.location.href))
9
+ );
10
+ }
package/package.json ADDED
@@ -0,0 +1,223 @@
1
+ {
2
+ "name": "@depup/chromatic",
3
+ "version": "15.3.0-depup.0",
4
+ "description": "[DepUp] Automate visual testing across browsers. Gather UI feedback. Versioned documentation.",
5
+ "keywords": [
6
+ "depup",
7
+ "dependency-bumped",
8
+ "updated-deps",
9
+ "chromatic",
10
+ "storybook-addon",
11
+ "storybook",
12
+ "addon",
13
+ "test",
14
+ "popular"
15
+ ],
16
+ "homepage": "https://www.chromatic.com",
17
+ "bugs": {
18
+ "url": "https://github.com/chromaui/chromatic-cli",
19
+ "email": "support@chromatic.com"
20
+ },
21
+ "repository": {
22
+ "type": "git",
23
+ "url": "git+https://github.com/chromaui/chromatic-cli.git"
24
+ },
25
+ "license": "MIT",
26
+ "author": {
27
+ "name": "Chromatic",
28
+ "email": "support@chromatic.com"
29
+ },
30
+ "exports": {
31
+ ".": {
32
+ "types": "./isChromatic.d.ts",
33
+ "require": "./isChromatic.js",
34
+ "import": "./isChromatic.mjs"
35
+ },
36
+ "./node": {
37
+ "types": "./dist/node.d.ts",
38
+ "require": "./dist/node.js",
39
+ "node": "./dist/node.js"
40
+ },
41
+ "./isChromatic": {
42
+ "types": "./isChromatic.d.ts",
43
+ "require": "./isChromatic.js",
44
+ "import": "./isChromatic.mjs"
45
+ },
46
+ "./package.json": "./package.json"
47
+ },
48
+ "main": "isChromatic.js",
49
+ "module": "isChromatic.mjs",
50
+ "typesVersions": {
51
+ "*": {
52
+ "*": [
53
+ "./isChromatic.d.ts"
54
+ ],
55
+ "isChromatic": [
56
+ "./isChromatic.d.ts"
57
+ ],
58
+ "node": [
59
+ "dist/node.d.ts"
60
+ ]
61
+ }
62
+ },
63
+ "bin": {
64
+ "chroma": "dist/bin.js",
65
+ "chromatic": "dist/bin.js",
66
+ "chromatic-cli": "dist/bin.js"
67
+ },
68
+ "files": [
69
+ "dist/*.js",
70
+ "dist/node.d.ts",
71
+ "isChromatic.js",
72
+ "isChromatic.mjs",
73
+ "isChromatic.d.ts",
74
+ "changes.json",
75
+ "README.md"
76
+ ],
77
+ "resolutions": {
78
+ "any-observable": "^0.5.1"
79
+ },
80
+ "devDependencies": {
81
+ "@actions/core": "^1.10.0",
82
+ "@actions/github": "^5.0.0",
83
+ "@antfu/ni": "^0.21.5",
84
+ "@auto-it/slack": "^11.1.6",
85
+ "@discoveryjs/json-ext": "^0.5.7",
86
+ "@eslint-community/eslint-plugin-eslint-comments": "^4.3.0",
87
+ "@sentry/cli": "^2.37.0",
88
+ "@sentry/node": "^8.30.0",
89
+ "@snyk/dep-graph": "^2.9.0",
90
+ "@storybook/addon-essentials": "^8.1.5",
91
+ "@storybook/addon-webpack5-compiler-swc": "^1.0.3",
92
+ "@storybook/csf-tools": "^8.1.5",
93
+ "@storybook/linter-config": "^4.0.0",
94
+ "@storybook/react": "^8.1.5",
95
+ "@storybook/react-webpack5": "^8.1.5",
96
+ "@tsconfig/node16": "^16.1.1",
97
+ "@types/archiver": "^5.3.1",
98
+ "@types/async-retry": "^1.4.3",
99
+ "@types/cross-spawn": "^6.0.2",
100
+ "@types/fs-extra": "^9.0.13",
101
+ "@types/jsonfile": "^6.0.1",
102
+ "@types/listr": "^0.14.4",
103
+ "@types/node": "18.x",
104
+ "@types/picomatch": "^2.3.0",
105
+ "@types/progress-stream": "^2.0.2",
106
+ "@types/prompts": "^2.4.9",
107
+ "@types/semver": "^7.3.9",
108
+ "@types/webpack-env": "^1.18.5",
109
+ "@types/ws": "^8",
110
+ "@typescript-eslint/eslint-plugin": "^6.8.0",
111
+ "@typescript-eslint/parser": "^6.8.0",
112
+ "@vitest/coverage-v8": "^2.0.5",
113
+ "ansi-html": "0.0.9",
114
+ "any-observable": "^0.5.1",
115
+ "archiver": "^5.3.0",
116
+ "async-retry": "^1.3.3",
117
+ "auto": "^11.0.5",
118
+ "boxen": "^7.1.1",
119
+ "chalk": "^4.1.2",
120
+ "clean-package": "^2.2.0",
121
+ "cpy": "^8.1.2",
122
+ "cross-env": "^7.0.3",
123
+ "cross-spawn": "^7.0.2",
124
+ "debug": "^4.3.2",
125
+ "dotenv": "^16.4.5",
126
+ "env-ci": "^11.1.0",
127
+ "eslint": "^9.10.0",
128
+ "eslint-config-prettier": "^9.0.0",
129
+ "eslint-plugin-import": "^2.28.1",
130
+ "eslint-plugin-jsdoc": "^48.2.6",
131
+ "eslint-plugin-json": "^3.1.0",
132
+ "eslint-plugin-no-secrets": "^1.0.2",
133
+ "eslint-plugin-react": "^7.33.2",
134
+ "eslint-plugin-security": "^3.0.0",
135
+ "eslint-plugin-simple-import-sort": "^12.1.0",
136
+ "eslint-plugin-sort-class-members": "^1.20.0",
137
+ "eslint-plugin-unicorn": "^53.0.0",
138
+ "esm": "^3.2.25",
139
+ "execa": "^9.6.0",
140
+ "fake-tag": "^2.0.0",
141
+ "filesize": "^10.1.0",
142
+ "find-up": "^7.0.0",
143
+ "formdata-node": "^6.0.3",
144
+ "fs-extra": "^10.0.0",
145
+ "globals": "^15.3.0",
146
+ "https-proxy-agent": "^7.0.2",
147
+ "husky": "^7.0.0",
148
+ "json5": "^2.2.3",
149
+ "jsonfile": "^6.0.1",
150
+ "junit-report-builder": "3.1.0",
151
+ "listr": "0.14.3",
152
+ "listr-update-renderer": "^0.5.0",
153
+ "meow": "^9.0.0",
154
+ "mock-fs": "^5.1.2",
155
+ "no-proxy": "^1.0.3",
156
+ "node-ask": "^1.0.1",
157
+ "node-fetch": "3.2.10",
158
+ "npm-run-all": "^4.0.2",
159
+ "observable": "^2.1.4",
160
+ "os-browserify": "^0.3.0",
161
+ "p-limit": "3.1.0",
162
+ "picomatch": "2.2.2",
163
+ "pkg-up": "^3.1.0",
164
+ "pluralize": "^8.0.0",
165
+ "prettier": "^3.2.5",
166
+ "progress-stream": "^2.0.0",
167
+ "prompts": "^2.4.2",
168
+ "prop-types": "^15.7.2",
169
+ "react": "^17.0.2",
170
+ "react-dom": "^17.0.2",
171
+ "read-package-up": "^11.0.0",
172
+ "semver": "^7.3.5",
173
+ "slash": "^3.0.0",
174
+ "snyk-nodejs-lockfile-parser": "^1.58.18",
175
+ "snyk-nodejs-plugin": "^1.4.3",
176
+ "sort-package-json": "1.50.0",
177
+ "storybook": "^8.1.5",
178
+ "string-argv": "^0.3.1",
179
+ "strip-ansi": "^7.1.0",
180
+ "tmp-promise": "3.0.2",
181
+ "ts-dedent": "^1.0.0",
182
+ "ts-loader": "^9.2.5",
183
+ "tsup": "^7.2.0",
184
+ "typescript": "^5.2.2",
185
+ "typescript-eslint": "^7.11.0",
186
+ "util-deprecate": "^1.0.2",
187
+ "uuid": "^8.3.2",
188
+ "vite": "^4.4.9",
189
+ "vite-tsconfig-paths": "^5.1.4",
190
+ "vitest": "^2.0.5",
191
+ "why-is-node-running": "^2.1.2",
192
+ "ws": "^8.18.2",
193
+ "xxhash-wasm": "^1.0.2",
194
+ "yarn-or-npm": "^3.0.1",
195
+ "zen-observable": "^0.8.15",
196
+ "zod": "^3.22.2"
197
+ },
198
+ "peerDependencies": {
199
+ "@chromatic-com/cypress": "^0.*.* || ^1.0.0",
200
+ "@chromatic-com/playwright": "^0.*.* || ^1.0.0"
201
+ },
202
+ "peerDependenciesMeta": {
203
+ "@chromatic-com/cypress": {
204
+ "optional": true
205
+ },
206
+ "@chromatic-com/playwright": {
207
+ "optional": true
208
+ }
209
+ },
210
+ "docs": "https://www.chromatic.com/docs/cli",
211
+ "storybook": {
212
+ "icon": "https://user-images.githubusercontent.com/263385/101995175-2e087800-3c96-11eb-9a33-9860a1c3ce62.gif",
213
+ "displayName": "Chromatic"
214
+ },
215
+ "depup": {
216
+ "changes": {},
217
+ "depsUpdated": 0,
218
+ "originalPackage": "chromatic",
219
+ "originalVersion": "15.3.0",
220
+ "processedAt": "2026-03-17T16:34:56.598Z",
221
+ "smokeTest": "passed"
222
+ }
223
+ }