@jay-framework/design-system-validator 0.22.1 → 0.23.1
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/agent-kit/aiditor/settings.template.yaml +2 -0
- package/agent-kit/designer/font-fallback-patterns.md +78 -0
- package/dist/actions/font-fallback.jay-action +12 -0
- package/dist/index.client.d.ts +7 -0
- package/dist/index.client.js +657 -0
- package/dist/index.d.ts +89 -1
- package/dist/index.js +760 -291
- package/dist/pages/settings/page.jay-html +415 -0
- package/dist/pages/settings/page.jay-html.d.ts +74 -0
- package/package.json +24 -8
- package/plugin.yaml +20 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { JayHtmlValidatorFn } from '@jay-framework/compiler-shared';
|
|
2
|
+
import * as _jay_framework_fullstack_component from '@jay-framework/fullstack-component';
|
|
2
3
|
import { PluginAgentKitContext, PluginAgentKitResult } from '@jay-framework/stack-server-runtime';
|
|
4
|
+
import { AddMenuItem } from '@jay-framework/plugin-validator';
|
|
5
|
+
export { designSystemSettingsPage } from './index.client.js';
|
|
6
|
+
import '@jay-framework/component';
|
|
3
7
|
|
|
4
8
|
declare const validateTokens: JayHtmlValidatorFn;
|
|
5
9
|
|
|
@@ -9,6 +13,20 @@ declare const validateStructure: JayHtmlValidatorFn;
|
|
|
9
13
|
|
|
10
14
|
declare const validateContrast: JayHtmlValidatorFn;
|
|
11
15
|
|
|
16
|
+
declare const validateFontFallbacks: JayHtmlValidatorFn;
|
|
17
|
+
|
|
18
|
+
interface FontFallbackInput {
|
|
19
|
+
primary: string;
|
|
20
|
+
fallback: string;
|
|
21
|
+
}
|
|
22
|
+
interface FontFallbackOutput {
|
|
23
|
+
fontFamily: string;
|
|
24
|
+
fontFaces: string;
|
|
25
|
+
}
|
|
26
|
+
declare const fontFallback: _jay_framework_fullstack_component.JayAction<FontFallbackInput, FontFallbackOutput> & _jay_framework_fullstack_component.JayActionDefinition<FontFallbackInput, FontFallbackOutput, []>;
|
|
27
|
+
|
|
28
|
+
declare const ADD_MENU_GENERATED_REL = "agent-kit/aiditor/add-menu/design-system.generated.yaml";
|
|
29
|
+
|
|
12
30
|
/**
|
|
13
31
|
* References handler for design-system-validator plugin.
|
|
14
32
|
*
|
|
@@ -18,4 +36,74 @@ declare const validateContrast: JayHtmlValidatorFn;
|
|
|
18
36
|
|
|
19
37
|
declare function generateDesignSystemAgentKit(ctx: PluginAgentKitContext): Promise<PluginAgentKitResult>;
|
|
20
38
|
|
|
21
|
-
|
|
39
|
+
type DesignAnalysisFinding = {
|
|
40
|
+
file: string;
|
|
41
|
+
validator: string;
|
|
42
|
+
severity: 'error' | 'warning';
|
|
43
|
+
message: string;
|
|
44
|
+
suggestion?: string;
|
|
45
|
+
};
|
|
46
|
+
type DesignAnalysisResult = {
|
|
47
|
+
filesScanned: number;
|
|
48
|
+
findings: DesignAnalysisFinding[];
|
|
49
|
+
errorCount: number;
|
|
50
|
+
warningCount: number;
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
type DesignMdSummary = {
|
|
54
|
+
relativePath: string;
|
|
55
|
+
name: string;
|
|
56
|
+
colorCount: number;
|
|
57
|
+
typographyCount: number;
|
|
58
|
+
spacingCount: number;
|
|
59
|
+
componentCount: number;
|
|
60
|
+
};
|
|
61
|
+
declare const getDesignSystemSettingsStatus: _jay_framework_fullstack_component.JayAction<unknown, {
|
|
62
|
+
hasDesignMd: boolean;
|
|
63
|
+
designFiles: DesignMdSummary[];
|
|
64
|
+
addMenuItemCount: number;
|
|
65
|
+
addMenuCatalogRel: string;
|
|
66
|
+
message: string;
|
|
67
|
+
}> & _jay_framework_fullstack_component.JayActionDefinition<unknown, {
|
|
68
|
+
hasDesignMd: boolean;
|
|
69
|
+
designFiles: DesignMdSummary[];
|
|
70
|
+
addMenuItemCount: number;
|
|
71
|
+
addMenuCatalogRel: string;
|
|
72
|
+
message: string;
|
|
73
|
+
}, []>;
|
|
74
|
+
declare const runDesignSystemAnalysisAction: _jay_framework_fullstack_component.JayAction<unknown, DesignAnalysisResult> & _jay_framework_fullstack_component.JayActionDefinition<unknown, DesignAnalysisResult, []>;
|
|
75
|
+
declare const loadDesignSystemAddMenuCatalog: _jay_framework_fullstack_component.JayAction<unknown, {
|
|
76
|
+
items: AddMenuItem[];
|
|
77
|
+
outputRel: string;
|
|
78
|
+
itemCount: number;
|
|
79
|
+
}> & _jay_framework_fullstack_component.JayActionDefinition<unknown, {
|
|
80
|
+
items: AddMenuItem[];
|
|
81
|
+
outputRel: string;
|
|
82
|
+
itemCount: number;
|
|
83
|
+
}, []>;
|
|
84
|
+
declare const saveDesignSystemAddMenuCatalog: _jay_framework_fullstack_component.JayAction<{
|
|
85
|
+
items: AddMenuItem[];
|
|
86
|
+
}, {
|
|
87
|
+
itemCount: number;
|
|
88
|
+
outputRel: string;
|
|
89
|
+
message: string;
|
|
90
|
+
}> & _jay_framework_fullstack_component.JayActionDefinition<{
|
|
91
|
+
items: AddMenuItem[];
|
|
92
|
+
}, {
|
|
93
|
+
itemCount: number;
|
|
94
|
+
outputRel: string;
|
|
95
|
+
message: string;
|
|
96
|
+
}, []>;
|
|
97
|
+
declare const regenerateDesignSystemAddMenu: _jay_framework_fullstack_component.JayAction<unknown, {
|
|
98
|
+
itemCount: number;
|
|
99
|
+
outputRel: string;
|
|
100
|
+
agentKitCreated: any;
|
|
101
|
+
message: any;
|
|
102
|
+
}> & _jay_framework_fullstack_component.JayActionDefinition<unknown, {
|
|
103
|
+
itemCount: number;
|
|
104
|
+
outputRel: string;
|
|
105
|
+
agentKitCreated: any;
|
|
106
|
+
message: any;
|
|
107
|
+
}, []>;
|
|
108
|
+
|
|
109
|
+
export { ADD_MENU_GENERATED_REL, fontFallback, generateDesignSystemAgentKit, getDesignSystemSettingsStatus, loadDesignSystemAddMenuCatalog, regenerateDesignSystemAddMenu, runDesignSystemAnalysisAction as runDesignSystemAnalysis, saveDesignSystemAddMenuCatalog, validateComponents, validateContrast, validateFontFallbacks, validateStructure, validateTokens };
|