@loworbitstudio/visor 1.3.4 → 1.5.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/CHANGELOG.json +7 -1
- package/dist/index.js +3 -2
- package/dist/registry.json +89 -82
- package/dist/visor-manifest.json +282 -55
- package/package.json +2 -2
package/dist/CHANGELOG.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": "0.4.0",
|
|
3
|
-
"generated_at": "2026-
|
|
3
|
+
"generated_at": "2026-06-04T00:42:59.549Z",
|
|
4
4
|
"components": {
|
|
5
5
|
"accessibility-specimen": {
|
|
6
6
|
"changeType": "current",
|
|
@@ -308,6 +308,12 @@
|
|
|
308
308
|
"breakingChange": false,
|
|
309
309
|
"migrationNote": null
|
|
310
310
|
},
|
|
311
|
+
"key-value-list": {
|
|
312
|
+
"changeType": "current",
|
|
313
|
+
"files": [],
|
|
314
|
+
"breakingChange": false,
|
|
315
|
+
"migrationNote": null
|
|
316
|
+
},
|
|
311
317
|
"label": {
|
|
312
318
|
"changeType": "current",
|
|
313
319
|
"files": [],
|
package/dist/index.js
CHANGED
|
@@ -2720,7 +2720,7 @@ function themeValidateCommand(file, cwd, options) {
|
|
|
2720
2720
|
}
|
|
2721
2721
|
process.exit(1);
|
|
2722
2722
|
}
|
|
2723
|
-
const result = validate(parsed);
|
|
2723
|
+
const result = validate(parsed, { strictDark: options.strictDark });
|
|
2724
2724
|
if (options.json) {
|
|
2725
2725
|
console.log(JSON.stringify(result));
|
|
2726
2726
|
process.exit(result.valid ? 0 : 1);
|
|
@@ -2751,6 +2751,7 @@ function themeValidateCommand(file, cwd, options) {
|
|
|
2751
2751
|
logger.error("Validation failed. Fix the errors above before applying this theme.");
|
|
2752
2752
|
process.exit(1);
|
|
2753
2753
|
}
|
|
2754
|
+
process.exit(0);
|
|
2754
2755
|
}
|
|
2755
2756
|
function printIssue(issue) {
|
|
2756
2757
|
const prefix = issue.severity === "error" ? pc3.red(" ERROR") : pc3.yellow(" WARN ");
|
|
@@ -7325,7 +7326,7 @@ theme.command("export").description(
|
|
|
7325
7326
|
themeExportCommand(file, process.cwd(), options);
|
|
7326
7327
|
}
|
|
7327
7328
|
);
|
|
7328
|
-
theme.command("validate").description("Run full validation ruleset on a .visor.yaml file").argument("<file>", "path to .visor.yaml file").option("--json", "output structured JSON (for AI agents)").action(
|
|
7329
|
+
theme.command("validate").description("Run full validation ruleset on a .visor.yaml file").argument("<file>", "path to .visor.yaml file").option("--json", "output structured JSON (for AI agents)").option("--strict-dark", "promote DARK_LIGHT_PARITY and missing dark neutral from warning to error (enforces the 'always both modes' convention)").action(
|
|
7329
7330
|
(file, options) => {
|
|
7330
7331
|
themeValidateCommand(file, process.cwd(), options);
|
|
7331
7332
|
}
|