@bridge-ds/visual 0.3.6 → 0.3.7

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 (2) hide show
  1. package/dist/index.js +3 -1
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -256,7 +256,8 @@ function defineConfig(input) {
256
256
  minReasonLength: g.override.minReasonLength ?? DEFAULT_OVERRIDE.minReasonLength
257
257
  }
258
258
  } : {},
259
- ...g.rights ? { rights: normalizeRights(g.rights) } : {}
259
+ ...g.rights ? { rights: normalizeRights(g.rights) } : {},
260
+ ...g.soloOwnerCanApproveBoth === true ? { soloOwnerCanApproveBoth: true } : {}
260
261
  },
261
262
  products: input.products?.length ? input.products.map((p) => ({ ...p })) : DEFAULT_PRODUCTS.map((p) => ({ ...p })),
262
263
  changes: input.changes === "direct" ? "direct" : DEFAULT_CHANGES_MODE,
@@ -380,6 +381,7 @@ function loadConfig(source) {
380
381
  }
381
382
  }
382
383
  problems.push(...rightsProblems(gov.rights));
384
+ if (gov.soloOwnerCanApproveBoth !== void 0 && typeof gov.soloOwnerCanApproveBoth !== "boolean") problems.push('"governance.soloOwnerCanApproveBoth" must be true or false');
383
385
  }
384
386
  }
385
387
  problems.push(...visualImpactProblems(d.visualImpact));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bridge-ds/visual",
3
- "version": "0.3.6",
3
+ "version": "0.3.7",
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.12.0",
50
+ "@bridge-ds/core": "^0.13.0",
51
51
  "pixelmatch": "7.1.0",
52
52
  "playwright-core": "1.63.0",
53
53
  "pngjs": "7.0.0"