@jay-framework/design-system-validator 0.24.2 → 0.24.3
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.d.ts +1 -99
- package/dist/index.js +2 -1874
- package/dist/tools.d.ts +101 -0
- package/dist/tools.js +1875 -0
- package/package.json +17 -12
- package/plugin.yaml +13 -5
package/dist/tools.d.ts
ADDED
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { JayHtmlValidatorFn } from '@jay-framework/compiler-shared';
|
|
2
|
+
import { PluginAgentKitContext, PluginAgentKitResult } from '@jay-framework/stack-server-runtime';
|
|
3
|
+
import * as _jay_framework_fullstack_component from '@jay-framework/fullstack-component';
|
|
4
|
+
import { AddMenuItem } from '@jay-framework/plugin-validator';
|
|
5
|
+
export { designSystemSettingsPage } from './index.client.js';
|
|
6
|
+
import '@jay-framework/component';
|
|
7
|
+
|
|
8
|
+
declare const validateTokens: JayHtmlValidatorFn;
|
|
9
|
+
|
|
10
|
+
declare const validateComponents: JayHtmlValidatorFn;
|
|
11
|
+
|
|
12
|
+
declare const validateStructure: JayHtmlValidatorFn;
|
|
13
|
+
|
|
14
|
+
declare const validateContrast: JayHtmlValidatorFn;
|
|
15
|
+
|
|
16
|
+
declare const validateFontFallbacks: JayHtmlValidatorFn;
|
|
17
|
+
|
|
18
|
+
declare const validateUndefinedVars: JayHtmlValidatorFn;
|
|
19
|
+
|
|
20
|
+
declare const ADD_MENU_GENERATED_REL = "agent-kit/aiditor/add-menu/design-system.generated.yaml";
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* References handler for design-system-validator plugin.
|
|
24
|
+
*
|
|
25
|
+
* Runs during `jay-stack agent-kit` to generate AIditor add-menu entries
|
|
26
|
+
* from the project's DESIGN.md tokens — one item per design token, with HTML previews.
|
|
27
|
+
*/
|
|
28
|
+
|
|
29
|
+
declare function generateDesignSystemAgentKit(ctx: PluginAgentKitContext): Promise<PluginAgentKitResult>;
|
|
30
|
+
|
|
31
|
+
type DesignAnalysisFinding = {
|
|
32
|
+
file: string;
|
|
33
|
+
validator: string;
|
|
34
|
+
severity: 'error' | 'warning';
|
|
35
|
+
message: string;
|
|
36
|
+
suggestion?: string;
|
|
37
|
+
};
|
|
38
|
+
type DesignAnalysisResult = {
|
|
39
|
+
filesScanned: number;
|
|
40
|
+
findings: DesignAnalysisFinding[];
|
|
41
|
+
errorCount: number;
|
|
42
|
+
warningCount: number;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
type DesignMdSummary = {
|
|
46
|
+
relativePath: string;
|
|
47
|
+
name: string;
|
|
48
|
+
colorCount: number;
|
|
49
|
+
typographyCount: number;
|
|
50
|
+
spacingCount: number;
|
|
51
|
+
componentCount: number;
|
|
52
|
+
};
|
|
53
|
+
declare const getDesignSystemSettingsStatus: _jay_framework_fullstack_component.JayAction<unknown, {
|
|
54
|
+
hasDesignMd: boolean;
|
|
55
|
+
designFiles: DesignMdSummary[];
|
|
56
|
+
addMenuItemCount: number;
|
|
57
|
+
addMenuCatalogRel: string;
|
|
58
|
+
message: string;
|
|
59
|
+
}> & _jay_framework_fullstack_component.JayActionDefinition<unknown, {
|
|
60
|
+
hasDesignMd: boolean;
|
|
61
|
+
designFiles: DesignMdSummary[];
|
|
62
|
+
addMenuItemCount: number;
|
|
63
|
+
addMenuCatalogRel: string;
|
|
64
|
+
message: string;
|
|
65
|
+
}, []>;
|
|
66
|
+
declare const runDesignSystemAnalysisAction: _jay_framework_fullstack_component.JayAction<unknown, DesignAnalysisResult> & _jay_framework_fullstack_component.JayActionDefinition<unknown, DesignAnalysisResult, []>;
|
|
67
|
+
declare const loadDesignSystemAddMenuCatalog: _jay_framework_fullstack_component.JayAction<unknown, {
|
|
68
|
+
items: AddMenuItem[];
|
|
69
|
+
outputRel: string;
|
|
70
|
+
itemCount: number;
|
|
71
|
+
}> & _jay_framework_fullstack_component.JayActionDefinition<unknown, {
|
|
72
|
+
items: AddMenuItem[];
|
|
73
|
+
outputRel: string;
|
|
74
|
+
itemCount: number;
|
|
75
|
+
}, []>;
|
|
76
|
+
declare const saveDesignSystemAddMenuCatalog: _jay_framework_fullstack_component.JayAction<{
|
|
77
|
+
items: AddMenuItem[];
|
|
78
|
+
}, {
|
|
79
|
+
itemCount: number;
|
|
80
|
+
outputRel: string;
|
|
81
|
+
message: string;
|
|
82
|
+
}> & _jay_framework_fullstack_component.JayActionDefinition<{
|
|
83
|
+
items: AddMenuItem[];
|
|
84
|
+
}, {
|
|
85
|
+
itemCount: number;
|
|
86
|
+
outputRel: string;
|
|
87
|
+
message: string;
|
|
88
|
+
}, []>;
|
|
89
|
+
declare const regenerateDesignSystemAddMenu: _jay_framework_fullstack_component.JayAction<unknown, {
|
|
90
|
+
itemCount: number;
|
|
91
|
+
outputRel: string;
|
|
92
|
+
agentKitCreated: any;
|
|
93
|
+
message: any;
|
|
94
|
+
}> & _jay_framework_fullstack_component.JayActionDefinition<unknown, {
|
|
95
|
+
itemCount: number;
|
|
96
|
+
outputRel: string;
|
|
97
|
+
agentKitCreated: any;
|
|
98
|
+
message: any;
|
|
99
|
+
}, []>;
|
|
100
|
+
|
|
101
|
+
export { ADD_MENU_GENERATED_REL, generateDesignSystemAgentKit, getDesignSystemSettingsStatus, loadDesignSystemAddMenuCatalog, regenerateDesignSystemAddMenu, runDesignSystemAnalysisAction as runDesignSystemAnalysis, saveDesignSystemAddMenuCatalog, validateComponents, validateContrast, validateFontFallbacks, validateStructure, validateTokens, validateUndefinedVars };
|