@bridge-ds/visual 0.3.9 → 0.3.11
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/index.js +3 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -237,7 +237,8 @@ function defineConfig(input) {
|
|
|
237
237
|
styleSuffix: input.components.styleSuffix ?? ".module.css",
|
|
238
238
|
reference: input.components.reference,
|
|
239
239
|
index: input.components.index,
|
|
240
|
-
specs: input.components.specs
|
|
240
|
+
specs: input.components.specs,
|
|
241
|
+
...input.components.styles ? { styles: input.components.styles.map(trimSlashes) } : {}
|
|
241
242
|
} : void 0,
|
|
242
243
|
docs: { ...input.docs },
|
|
243
244
|
changesets: pkg ? { dir: trimSlashes(input.changesets?.dir ?? ".changeset"), package: pkg } : void 0,
|
|
@@ -361,6 +362,7 @@ function loadConfig(source) {
|
|
|
361
362
|
problems.push('"contrast" must be { "path", "modes"? }');
|
|
362
363
|
const comps = d.components;
|
|
363
364
|
if (comps !== void 0 && (!isObj(comps) || !isStr(comps.dir))) problems.push('"components.dir" must be a non-empty string');
|
|
365
|
+
if (isObj(comps) && comps.styles !== void 0 && !isStrList(comps.styles)) problems.push('"components.styles" must be a list of globs');
|
|
364
366
|
const cs = d.changeset;
|
|
365
367
|
if (cs !== void 0 && (!isObj(cs) || !isStr(cs.package))) problems.push('"changeset.package" must be a non-empty string');
|
|
366
368
|
const css = d.changesets;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bridge-ds/visual",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.11",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Bridge visual impact analysis: screenshots the stories and app screens a design system change touches, at the base and head refs, and pixel-diffs them into before/after/diff images and a JSON manifest.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"build:package": "node ../../scripts/build-packages.mjs visual"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@bridge-ds/core": "^0.
|
|
50
|
+
"@bridge-ds/core": "^0.17.0",
|
|
51
51
|
"pixelmatch": "7.1.0",
|
|
52
52
|
"playwright-core": "1.63.0",
|
|
53
53
|
"pngjs": "7.0.0"
|