@kerfjs/ui 5.0.0-beta.18 → 5.0.0-beta.22
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/README.md +114 -3
- package/ai/application-ui-diagnostic-ids-v1.json +92 -0
- package/ai/application-ui-profile-sync.cjs +529 -0
- package/ai/application-ui-profile.d.mts +1 -0
- package/ai/application-ui-profile.d.ts +102 -0
- package/ai/application-ui-profile.defaults.json +41 -0
- package/ai/application-ui-profile.mjs +626 -0
- package/ai/application-ui-profile.schema.json +130 -0
- package/ai/catalog-authoring.json +25 -0
- package/ai/catalog-authoring.schema.json +61 -0
- package/ai/compile-time-contracts-v1.json +101 -0
- package/ai/compile-time-contracts-v1.schema.json +49 -0
- package/ai/component-catalog-extension-v2.d.ts +7 -0
- package/ai/component-catalog-extension-v2.schema.json +7 -0
- package/ai/component-catalog-v2-overrides.json +326 -0
- package/ai/component-catalog-v2.d.ts +67 -0
- package/ai/component-catalog-v2.json +4441 -0
- package/ai/component-catalog-v2.schema.json +246 -0
- package/ai/component-catalog.json +150 -6
- package/ai/public-api-signatures-v1.md +294 -64
- package/ai/skill.md +41 -5
- package/ai/webawesome-jsx-signatures-v1.md +1 -1
- package/analyzer/cli.mjs +46 -0
- package/analyzer/index.d.mts +45 -0
- package/analyzer/index.mjs +743 -0
- package/analyzer/report.schema.json +66 -0
- package/dist/browser/pane.js +3 -0
- package/dist/browser/sunken-panel.js +3 -0
- package/dist/catalog-resources.d.ts +34 -0
- package/dist/catalog-resources.js +22 -0
- package/dist/catalog-resources.js.map +1 -0
- package/dist/catalog.d.ts +21 -3
- package/dist/catalog.js +239 -210
- package/dist/catalog.js.map +1 -1
- package/dist/{chunk-ZK2G3VR5.js → chunk-5VTB2BKP.js} +1 -1
- package/dist/chunk-5VTB2BKP.js.map +1 -0
- package/dist/{chunk-S3HKPI7I.js → chunk-7KEUJIIC.js} +1 -1
- package/dist/chunk-7KEUJIIC.js.map +1 -0
- package/dist/{chunk-NVWXKU37.js → chunk-AASLYRGE.js} +1 -1
- package/dist/chunk-AASLYRGE.js.map +1 -0
- package/dist/{chunk-QIRXYKCE.js → chunk-DSNIYOZ3.js} +3 -2
- package/dist/chunk-DSNIYOZ3.js.map +1 -0
- package/dist/{chunk-ENVTNLYC.js → chunk-GP5DP5DL.js} +55 -15
- package/dist/chunk-GP5DP5DL.js.map +1 -0
- package/dist/chunk-JRKSK2HX.js +79 -0
- package/dist/chunk-JRKSK2HX.js.map +1 -0
- package/dist/{chunk-U5IFGQCD.js → chunk-K57KRAOV.js} +1 -1
- package/dist/chunk-K57KRAOV.js.map +1 -0
- package/dist/{chunk-ZVI5YST2.js → chunk-M7JBER5U.js} +1 -1
- package/dist/chunk-M7JBER5U.js.map +1 -0
- package/dist/{chunk-43FUQH35.js → chunk-OHU6CI22.js} +2 -2
- package/dist/{chunk-43FUQH35.js.map → chunk-OHU6CI22.js.map} +1 -1
- package/dist/{chunk-4TRDV6RL.js → chunk-OZWU5ZPZ.js} +1 -1
- package/dist/chunk-OZWU5ZPZ.js.map +1 -0
- package/dist/{chunk-JTHUXDN2.js → chunk-RYRIFZCT.js} +3 -3
- package/dist/chunk-RYRIFZCT.js.map +1 -0
- package/dist/{chunk-6ETZKKAE.js → chunk-VLYV65LK.js} +1 -1
- package/dist/chunk-VLYV65LK.js.map +1 -0
- package/dist/chunk-W4CXQYSG.js +23 -0
- package/dist/chunk-W4CXQYSG.js.map +1 -0
- package/dist/{chunk-S3PCZ7NV.js → chunk-W7YD6E4N.js} +1 -1
- package/dist/chunk-W7YD6E4N.js.map +1 -0
- package/dist/index.d.ts +6 -4
- package/dist/index.js +14 -12
- package/dist/list-header.d.ts +29 -8
- package/dist/list-header.js +1 -1
- package/dist/nav-stack.js +1 -1
- package/dist/pane.d.ts +49 -0
- package/dist/pane.js +4 -0
- package/dist/pane.js.map +1 -0
- package/dist/panel-header.d.ts +9 -3
- package/dist/panel-header.js +1 -1
- package/dist/segmented-control.d.ts +6 -6
- package/dist/segmented-control.js +1 -1
- package/dist/select.d.ts +10 -4
- package/dist/select.js +1 -1
- package/dist/split-view.js +2 -2
- package/dist/state-banner.d.ts +3 -2
- package/dist/state-banner.js +1 -1
- package/dist/styles/catalog.css +6 -6
- package/dist/styles/layout.css +2 -20
- package/dist/styles/pane.css +62 -0
- package/dist/styles/segmented-control.css +3 -7
- package/dist/styles/sunken-panel.css +18 -0
- package/dist/sunken-panel.d.ts +16 -0
- package/dist/sunken-panel.js +3 -0
- package/dist/sunken-panel.js.map +1 -0
- package/dist/tab-bar.d.ts +3 -2
- package/dist/tab-bar.js +1 -1
- package/dist/tab-scaffold.d.ts +6 -6
- package/dist/tab-scaffold.js.map +1 -1
- package/dist/token-search-field.d.ts +25 -9
- package/dist/token-search-field.js +1 -1
- package/dist/toolbar-control-group.d.ts +9 -5
- package/dist/toolbar-control-group.js +1 -1
- package/dist/toolbar-text.d.ts +10 -11
- package/dist/toolbar-text.js +1 -1
- package/dist/wire-tab-bars.d.ts +5 -2
- package/dist/wire-tab-bars.js +1 -1
- package/dist/wire-token-search-fields.d.ts +11 -6
- package/dist/wire-token-search-fields.js +1 -1
- package/docs/catalog.md +186 -67
- package/docs/component-contract.md +102 -5
- package/docs/component-selection.md +9 -5
- package/docs/design/templates/panel-header/icon-actions-dark.svg +1 -1
- package/docs/design/templates/panel-header/icon-actions.svg +1 -1
- package/docs/design/templates/panel-header/icon-summary-actions-dark.svg +1 -1
- package/docs/design/templates/panel-header/icon-summary-actions.svg +1 -1
- package/docs/design/templates/panel-header/no-icon-dark.svg +1 -1
- package/docs/design/templates/panel-header/no-icon.svg +1 -1
- package/docs/design/templates/panel-header/page-heading-dark.svg +1 -1
- package/docs/design/templates/panel-header/page-heading.svg +1 -1
- package/docs/design/templates/panel-header/title-only-dark.svg +1 -1
- package/docs/design/templates/panel-header/title-only.svg +1 -1
- package/docs/design/templates/panel-header-dark.svg +5 -5
- package/docs/design/templates/panel-header.svg +5 -5
- package/docs/design/templates/segmented-control/equal-dark.svg +1 -1
- package/docs/design/templates/segmented-control/equal.svg +1 -1
- package/docs/design/templates/segmented-control-dark.svg +1 -1
- package/docs/design/templates/segmented-control.svg +1 -1
- package/docs/design/templates/toolbar/title-and-actions-dark.svg +1 -1
- package/docs/design/templates/toolbar/title-and-actions.svg +1 -1
- package/docs/design/templates/toolbar-control-group/with-text-dark.svg +1 -1
- package/docs/design/templates/toolbar-control-group/with-text.svg +1 -1
- package/docs/design/templates/toolbar-control-group-dark.svg +1 -1
- package/docs/design/templates/toolbar-control-group.svg +1 -1
- package/docs/design/templates/toolbar-dark.svg +1 -1
- package/docs/design/templates/toolbar-text/default-dark.svg +1 -1
- package/docs/design/templates/toolbar-text/default.svg +1 -1
- package/docs/design/templates/toolbar-text/large-dark.svg +1 -1
- package/docs/design/templates/toolbar-text/large.svg +1 -1
- package/docs/design/templates/toolbar-text/small-dark.svg +1 -1
- package/docs/design/templates/toolbar-text/small.svg +1 -1
- package/docs/design/templates/toolbar-text-dark.svg +3 -3
- package/docs/design/templates/toolbar-text.svg +3 -3
- package/docs/design/templates/toolbar.svg +1 -1
- package/docs/design/templates.md +11 -6
- package/docs/design-philosophy.md +2 -4
- package/docs/examples/application-ui-profile.json +60 -0
- package/docs/examples/component-catalog-extension-v2.json +81 -0
- package/docs/layout.md +42 -23
- package/docs/sunken-panel.md +43 -0
- package/docs/type-contracts.md +99 -0
- package/docs/ui-analyzer.md +81 -0
- package/docs/ui-doctor.md +77 -0
- package/docs/ui-evaluator.md +122 -0
- package/doctor/cli.mjs +115 -0
- package/doctor/config.schema.json +68 -0
- package/doctor/index.d.mts +116 -0
- package/doctor/index.mjs +1256 -0
- package/doctor/report.schema.json +118 -0
- package/evaluator/cli.mjs +89 -0
- package/evaluator/index.d.mts +90 -0
- package/evaluator/index.mjs +1138 -0
- package/evaluator/report.schema.json +152 -0
- package/llms.txt +40 -3
- package/package.json +66 -8
- package/ux-demo/recipes/compact-toolbar.tsx +2 -2
- package/ux-demo/recipes/composer-form.tsx +1 -1
- package/dist/chunk-4TRDV6RL.js.map +0 -1
- package/dist/chunk-6ETZKKAE.js.map +0 -1
- package/dist/chunk-ENVTNLYC.js.map +0 -1
- package/dist/chunk-JTHUXDN2.js.map +0 -1
- package/dist/chunk-NVWXKU37.js.map +0 -1
- package/dist/chunk-QIRXYKCE.js.map +0 -1
- package/dist/chunk-S3HKPI7I.js.map +0 -1
- package/dist/chunk-S3PCZ7NV.js.map +0 -1
- package/dist/chunk-U5IFGQCD.js.map +0 -1
- package/dist/chunk-ZK2G3VR5.js.map +0 -1
- package/dist/chunk-ZVI5YST2.js.map +0 -1
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
export type UiDoctorSeverity = 'error' | 'warning' | 'review' | 'info';
|
|
2
|
+
export type UiDoctorStageId =
|
|
3
|
+
| 'catalog'
|
|
4
|
+
| 'typescript'
|
|
5
|
+
| 'eslint'
|
|
6
|
+
| 'analyzer'
|
|
7
|
+
| 'browser'
|
|
8
|
+
| 'doctor'
|
|
9
|
+
| 'merged';
|
|
10
|
+
export type UiDoctorStageStatus =
|
|
11
|
+
'ran' | 'cached' | 'skipped' | 'unavailable' | 'failed' | 'cancelled';
|
|
12
|
+
|
|
13
|
+
export interface UiDoctorSuppression {
|
|
14
|
+
id: string;
|
|
15
|
+
rules: string[];
|
|
16
|
+
target: string;
|
|
17
|
+
rationale: string;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export interface UiDoctorConfig {
|
|
21
|
+
$schema?: string;
|
|
22
|
+
schemaVersion: 1;
|
|
23
|
+
mode?: 'full' | 'changed';
|
|
24
|
+
package?: string;
|
|
25
|
+
stages?: Partial<
|
|
26
|
+
Record<
|
|
27
|
+
'catalog' | 'typescript' | 'eslint' | 'analyzer' | 'browser',
|
|
28
|
+
boolean
|
|
29
|
+
>
|
|
30
|
+
>;
|
|
31
|
+
browser?: {
|
|
32
|
+
url: string;
|
|
33
|
+
browsers?: Array<'chromium' | 'firefox' | 'webkit'>;
|
|
34
|
+
retention?: 'always' | 'on-failure' | 'never';
|
|
35
|
+
outputDirectory?: string;
|
|
36
|
+
reportPath?: string;
|
|
37
|
+
};
|
|
38
|
+
cache?: boolean;
|
|
39
|
+
suppressions?: UiDoctorSuppression[];
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export interface UiDoctorDiagnostic {
|
|
43
|
+
id: string;
|
|
44
|
+
severity: UiDoctorSeverity;
|
|
45
|
+
stage: UiDoctorStageId | string;
|
|
46
|
+
message: string;
|
|
47
|
+
location?: { file: string; line: number; column: number; path?: string };
|
|
48
|
+
dom?: { context?: string; selector: string };
|
|
49
|
+
evidence?: unknown;
|
|
50
|
+
catalogFacts?: unknown;
|
|
51
|
+
documentation?: string;
|
|
52
|
+
action?: string;
|
|
53
|
+
sources?: string[];
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export interface UiDoctorReport {
|
|
57
|
+
schemaVersion: 1;
|
|
58
|
+
tool: { name: '@kerfjs/ui/doctor'; reportVersion: 1 };
|
|
59
|
+
mode: 'full' | 'changed';
|
|
60
|
+
root: '.';
|
|
61
|
+
package: string;
|
|
62
|
+
paths: string[];
|
|
63
|
+
stages: Array<{ id: string; status: UiDoctorStageStatus; detail?: string }>;
|
|
64
|
+
diagnostics: UiDoctorDiagnostic[];
|
|
65
|
+
suppressions: Array<
|
|
66
|
+
UiDoctorDiagnostic & { suppression: { id: string; rationale: string } }
|
|
67
|
+
>;
|
|
68
|
+
summary: {
|
|
69
|
+
errors: number;
|
|
70
|
+
warnings: number;
|
|
71
|
+
review: number;
|
|
72
|
+
suppressed: number;
|
|
73
|
+
};
|
|
74
|
+
exitCode: 0 | 1 | 2 | 130;
|
|
75
|
+
cache: { hit: boolean; key: string };
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export const UI_DOCTOR_SCHEMA_VERSION: 1;
|
|
79
|
+
export const UI_DOCTOR_EXIT: Readonly<{
|
|
80
|
+
clean: 0;
|
|
81
|
+
findings: 1;
|
|
82
|
+
configuration: 2;
|
|
83
|
+
cancelled: 130;
|
|
84
|
+
}>;
|
|
85
|
+
export const UI_DOCTOR_RULES: Readonly<
|
|
86
|
+
Record<string, { severity: UiDoctorSeverity; title: string }>
|
|
87
|
+
>;
|
|
88
|
+
export function validateUiDoctorConfig(
|
|
89
|
+
config: unknown,
|
|
90
|
+
source?: string,
|
|
91
|
+
): UiDoctorDiagnostic[];
|
|
92
|
+
export function readUiDoctorConfig(
|
|
93
|
+
root: string,
|
|
94
|
+
path?: string,
|
|
95
|
+
): Promise<{
|
|
96
|
+
path: string;
|
|
97
|
+
config: UiDoctorConfig;
|
|
98
|
+
diagnostics: UiDoctorDiagnostic[];
|
|
99
|
+
}>;
|
|
100
|
+
export function resolveUiDoctorPackage(
|
|
101
|
+
root: string,
|
|
102
|
+
selector?: string,
|
|
103
|
+
): Promise<string>;
|
|
104
|
+
export function runUiDoctor(options?: {
|
|
105
|
+
root?: string;
|
|
106
|
+
package?: string;
|
|
107
|
+
mode?: 'full' | 'changed';
|
|
108
|
+
paths?: string[];
|
|
109
|
+
config?: UiDoctorConfig;
|
|
110
|
+
configPath?: string;
|
|
111
|
+
cache?: boolean;
|
|
112
|
+
signal?: AbortSignal;
|
|
113
|
+
browser?: UiDoctorConfig['browser'];
|
|
114
|
+
eslintConfig?: 'recommended-ui' | 'strict-ui';
|
|
115
|
+
}): Promise<UiDoctorReport>;
|
|
116
|
+
export function formatUiDoctorText(report: UiDoctorReport): string;
|