@specverse/engines 4.1.28 → 4.2.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/assets/examples/manifests/frontend-only.yaml +3 -6
- package/assets/examples/manifests/fullstack-app.yaml +5 -7
- package/assets/examples/manifests/fullstack-monorepo.yaml +3 -6
- package/dist/inference/comprehensive-engine.d.ts.map +1 -1
- package/dist/inference/comprehensive-engine.js +3 -19
- package/dist/inference/comprehensive-engine.js.map +1 -1
- package/dist/inference/core/rule-engine.d.ts +31 -0
- package/dist/inference/core/rule-engine.d.ts.map +1 -1
- package/dist/inference/core/rule-engine.js +117 -33
- package/dist/inference/core/rule-engine.js.map +1 -1
- package/dist/inference/core/rule-file-types.d.ts +0 -2
- package/dist/inference/core/rule-file-types.d.ts.map +1 -1
- package/dist/inference/core/rule-file-types.js +3 -6
- package/dist/inference/core/rule-file-types.js.map +1 -1
- package/dist/inference/core/rule-loader.d.ts +5 -15
- package/dist/inference/core/rule-loader.d.ts.map +1 -1
- package/dist/inference/core/rule-loader.js +43 -132
- package/dist/inference/core/rule-loader.js.map +1 -1
- package/dist/inference/core/types.d.ts +0 -6
- package/dist/inference/core/types.d.ts.map +1 -1
- package/dist/inference/core/types.js +0 -4
- package/dist/inference/core/types.js.map +1 -1
- package/dist/inference/logical/generators/component-type-resolver.d.ts +0 -26
- package/dist/inference/logical/generators/component-type-resolver.d.ts.map +1 -1
- package/dist/inference/logical/generators/component-type-resolver.js +0 -19
- package/dist/inference/logical/generators/component-type-resolver.js.map +1 -1
- package/dist/inference/logical/generators/specialist-view-expander.d.ts +1 -17
- package/dist/inference/logical/generators/specialist-view-expander.d.ts.map +1 -1
- package/dist/inference/logical/generators/specialist-view-expander.js +0 -15
- package/dist/inference/logical/generators/specialist-view-expander.js.map +1 -1
- package/dist/inference/logical/generators/view-generator.d.ts +4 -14
- package/dist/inference/logical/generators/view-generator.d.ts.map +1 -1
- package/dist/inference/logical/generators/view-generator.js +6 -26
- package/dist/inference/logical/generators/view-generator.js.map +1 -1
- package/dist/inference/logical/index.d.ts +2 -2
- package/dist/inference/logical/index.d.ts.map +1 -1
- package/dist/inference/logical/logical-engine.d.ts.map +1 -1
- package/dist/inference/logical/logical-engine.js +17 -80
- package/dist/inference/logical/logical-engine.js.map +1 -1
- package/dist/inference/quint-transpiler.d.ts +5 -3
- package/dist/inference/quint-transpiler.d.ts.map +1 -1
- package/dist/inference/quint-transpiler.js +11 -6
- package/dist/inference/quint-transpiler.js.map +1 -1
- package/dist/libs/instance-factories/applications/templates/generic/main-generator.js +3 -3
- package/dist/libs/instance-factories/applications/templates/react/api-client-generator.js +16 -6
- package/dist/libs/instance-factories/applications/templates/react-starter/app-tsx-generator.js +110 -0
- package/dist/libs/instance-factories/applications/templates/react-starter/dashboard-body-composer.js +121 -0
- package/dist/libs/instance-factories/applications/templates/react-starter/detail-body-composer.js +78 -0
- package/dist/libs/instance-factories/applications/templates/react-starter/form-body-composer.js +190 -0
- package/dist/libs/instance-factories/applications/templates/react-starter/helpers-emitter.js +45 -0
- package/dist/libs/instance-factories/applications/templates/react-starter/html-to-jsx.js +192 -0
- package/dist/libs/instance-factories/applications/templates/react-starter/list-body-composer.js +46 -0
- package/dist/libs/instance-factories/applications/templates/react-starter/orchestrator.js +30 -0
- package/dist/libs/instance-factories/applications/templates/react-starter/package-json-generator.js +38 -0
- package/dist/libs/instance-factories/applications/templates/react-starter/regen-safety.js +89 -0
- package/dist/libs/instance-factories/applications/templates/react-starter/view-emitter.js +56 -0
- package/dist/libs/instance-factories/applications/templates/react-starter/views-generator.js +66 -0
- package/dist/libs/instance-factories/cli/templates/commander/command-generator.js +14 -11
- package/dist/libs/instance-factories/controllers/templates/fastify/server-generator.js +11 -3
- package/dist/libs/instance-factories/services/templates/prisma/controller-generator.js +27 -17
- package/dist/libs/instance-factories/shared/path-resolver.js +1 -1
- package/dist/realize/index.d.ts.map +1 -1
- package/dist/realize/index.js +15 -22
- package/dist/realize/index.js.map +1 -1
- package/dist/registry/utils/manifest-adapter.d.ts +8 -1
- package/dist/registry/utils/manifest-adapter.d.ts.map +1 -1
- package/dist/registry/utils/manifest-adapter.js +8 -1
- package/dist/registry/utils/manifest-adapter.js.map +1 -1
- package/libs/instance-factories/applications/react-app-starter.yaml +150 -0
- package/libs/instance-factories/applications/templates/generic/main-generator.ts +3 -3
- package/libs/instance-factories/applications/templates/react/api-client-generator.ts +16 -6
- package/libs/instance-factories/applications/templates/react-starter/README.md +211 -0
- package/libs/instance-factories/applications/templates/react-starter/__tests__/dashboard-body-composer.test.ts +153 -0
- package/libs/instance-factories/applications/templates/react-starter/__tests__/detail-body-composer.test.ts +145 -0
- package/libs/instance-factories/applications/templates/react-starter/__tests__/form-body-composer.test.ts +175 -0
- package/libs/instance-factories/applications/templates/react-starter/__tests__/helpers-emitter.test.ts +55 -0
- package/libs/instance-factories/applications/templates/react-starter/__tests__/html-to-jsx.test.ts +140 -0
- package/libs/instance-factories/applications/templates/react-starter/__tests__/list-body-composer.test.ts +146 -0
- package/libs/instance-factories/applications/templates/react-starter/__tests__/orchestrator.test.ts +163 -0
- package/libs/instance-factories/applications/templates/react-starter/__tests__/parity-p2-factory-imports.test.ts +116 -0
- package/libs/instance-factories/applications/templates/react-starter/__tests__/parity-p3-rendered-output.test.ts +183 -0
- package/libs/instance-factories/applications/templates/react-starter/__tests__/regen-safety.test.ts +144 -0
- package/libs/instance-factories/applications/templates/react-starter/__tests__/starter-generators.test.ts +114 -0
- package/libs/instance-factories/applications/templates/react-starter/__tests__/view-emitter.test.ts +107 -0
- package/libs/instance-factories/applications/templates/react-starter/__tests__/views-generator.test.ts +139 -0
- package/libs/instance-factories/applications/templates/react-starter/app-tsx-generator.ts +141 -0
- package/libs/instance-factories/applications/templates/react-starter/dashboard-body-composer.ts +174 -0
- package/libs/instance-factories/applications/templates/react-starter/detail-body-composer.ts +135 -0
- package/libs/instance-factories/applications/templates/react-starter/form-body-composer.ts +306 -0
- package/libs/instance-factories/applications/templates/react-starter/helpers-emitter.ts +60 -0
- package/libs/instance-factories/applications/templates/react-starter/html-to-jsx.ts +334 -0
- package/libs/instance-factories/applications/templates/react-starter/list-body-composer.ts +120 -0
- package/libs/instance-factories/applications/templates/react-starter/orchestrator.ts +80 -0
- package/libs/instance-factories/applications/templates/react-starter/package-json-generator.ts +57 -0
- package/libs/instance-factories/applications/templates/react-starter/regen-safety.ts +157 -0
- package/libs/instance-factories/applications/templates/react-starter/skeletons/dashboard.tsx.template +47 -0
- package/libs/instance-factories/applications/templates/react-starter/skeletons/detail.tsx.template +94 -0
- package/libs/instance-factories/applications/templates/react-starter/skeletons/form.tsx.template +114 -0
- package/libs/instance-factories/applications/templates/react-starter/skeletons/list.tsx.template +72 -0
- package/libs/instance-factories/applications/templates/react-starter/view-emitter.ts +151 -0
- package/libs/instance-factories/applications/templates/react-starter/views-generator.ts +137 -0
- package/libs/instance-factories/cli/templates/commander/command-generator.ts +14 -11
- package/libs/instance-factories/controllers/templates/fastify/server-generator.ts +11 -3
- package/libs/instance-factories/services/templates/prisma/controller-generator.ts +27 -17
- package/libs/instance-factories/shared/path-resolver.ts +8 -2
- package/package.json +3 -3
- package/dist/libs/instance-factories/applications/templates/react/_view-components-source.js +0 -530
- package/dist/libs/instance-factories/applications/templates/react/app-tsx-generator.js +0 -73
- package/dist/libs/instance-factories/applications/templates/react/field-helpers-generator.js +0 -99
- package/dist/libs/instance-factories/applications/templates/react/package-json-generator.js +0 -49
- package/dist/libs/instance-factories/applications/templates/react/pattern-adapter-generator.js +0 -156
- package/dist/libs/instance-factories/applications/templates/react/react-pattern-adapter.js +0 -935
- package/dist/libs/instance-factories/applications/templates/react/relationship-field-generator.js +0 -143
- package/dist/libs/instance-factories/applications/templates/react/tailwind-adapter-generator.js +0 -646
- package/dist/libs/instance-factories/applications/templates/react/tailwind-adapter-wrapper-generator.js +0 -65
- package/dist/libs/instance-factories/applications/templates/react/view-dashboard-generator.js +0 -143
- package/dist/libs/instance-factories/applications/templates/react/view-detail-generator.js +0 -143
- package/dist/libs/instance-factories/applications/templates/react/view-form-generator.js +0 -355
- package/dist/libs/instance-factories/applications/templates/react/view-list-generator.js +0 -91
- package/dist/libs/instance-factories/applications/templates/react/view-router-generator.js +0 -79
- package/dist/libs/instance-factories/tools/templates/vscode/vscode-extension-generator.js.bak +0 -244
- package/dist/libs/instance-factories/views/index.js +0 -48
- package/dist/libs/instance-factories/views/templates/react/adapters/antd-adapter.js +0 -742
- package/dist/libs/instance-factories/views/templates/react/adapters/mui-adapter.js +0 -824
- package/dist/libs/instance-factories/views/templates/react/adapters/shadcn-adapter.js +0 -719
- package/dist/libs/instance-factories/views/templates/react/app-generator.js +0 -45
- package/dist/libs/instance-factories/views/templates/react/components-generator.js +0 -820
- package/dist/libs/instance-factories/views/templates/react/forms-generator.js +0 -275
- package/dist/libs/instance-factories/views/templates/react/frontend-package-json-generator.js +0 -46
- package/dist/libs/instance-factories/views/templates/react/hooks-generator.js +0 -81
- package/dist/libs/instance-factories/views/templates/react/index-css-generator.js +0 -9
- package/dist/libs/instance-factories/views/templates/react/index-html-generator.js +0 -23
- package/dist/libs/instance-factories/views/templates/react/main-tsx-generator.js +0 -21
- package/dist/libs/instance-factories/views/templates/react/react-component-generator.js +0 -299
- package/dist/libs/instance-factories/views/templates/react/router-generator.js +0 -136
- package/dist/libs/instance-factories/views/templates/react/router-generic-generator.js +0 -107
- package/dist/libs/instance-factories/views/templates/react/shared-utils-generator.js +0 -187
- package/dist/libs/instance-factories/views/templates/react/spec-json-generator.js +0 -7
- package/dist/libs/instance-factories/views/templates/react/types-generator.js +0 -56
- package/dist/libs/instance-factories/views/templates/react/views-metadata-generator.js +0 -27
- package/dist/libs/instance-factories/views/templates/react/vite-config-generator.js +0 -29
- package/dist/libs/instance-factories/views/templates/runtime/runtime-view-renderer.js +0 -261
- package/dist/libs/instance-factories/views/templates/shared/adapter-types.js +0 -34
- package/dist/libs/instance-factories/views/templates/shared/atomic-components-registry.js +0 -800
- package/dist/libs/instance-factories/views/templates/shared/base-generator.js +0 -305
- package/dist/libs/instance-factories/views/templates/shared/component-metadata.js +0 -517
- package/dist/libs/instance-factories/views/templates/shared/composite-pattern-types.js +0 -0
- package/dist/libs/instance-factories/views/templates/shared/composite-patterns.js +0 -445
- package/dist/libs/instance-factories/views/templates/shared/index.js +0 -80
- package/dist/libs/instance-factories/views/templates/shared/pattern-validator.js +0 -210
- package/dist/libs/instance-factories/views/templates/shared/property-mapper.js +0 -492
- package/dist/libs/instance-factories/views/templates/shared/syntax-mapper.js +0 -321
- package/dist/realize/index.js.bak +0 -758
- package/libs/instance-factories/applications/react-app.yaml +0 -186
- package/libs/instance-factories/applications/templates/react/_view-components-source.ts +0 -555
- package/libs/instance-factories/applications/templates/react/app-tsx-generator.ts +0 -94
- package/libs/instance-factories/applications/templates/react/field-helpers-generator.ts +0 -106
- package/libs/instance-factories/applications/templates/react/package-json-generator.ts +0 -57
- package/libs/instance-factories/applications/templates/react/pattern-adapter-generator.ts +0 -179
- package/libs/instance-factories/applications/templates/react/react-pattern-adapter.tsx +0 -1347
- package/libs/instance-factories/applications/templates/react/relationship-field-generator.ts +0 -150
- package/libs/instance-factories/applications/templates/react/tailwind-adapter-generator.ts +0 -704
- package/libs/instance-factories/applications/templates/react/tailwind-adapter-wrapper-generator.ts +0 -84
- package/libs/instance-factories/applications/templates/react/view-dashboard-generator.ts +0 -150
- package/libs/instance-factories/applications/templates/react/view-detail-generator.ts +0 -150
- package/libs/instance-factories/applications/templates/react/view-form-generator.ts +0 -362
- package/libs/instance-factories/applications/templates/react/view-list-generator.ts +0 -98
- package/libs/instance-factories/applications/templates/react/view-router-generator.ts +0 -89
- package/libs/instance-factories/views/README.md +0 -62
- package/libs/instance-factories/views/index.d.ts +0 -13
- package/libs/instance-factories/views/index.d.ts.map +0 -1
- package/libs/instance-factories/views/index.js +0 -18
- package/libs/instance-factories/views/index.js.map +0 -1
- package/libs/instance-factories/views/index.ts +0 -45
- package/libs/instance-factories/views/react-components.yaml +0 -129
- package/libs/instance-factories/views/templates/ARCHITECTURE.md +0 -198
- package/libs/instance-factories/views/templates/react/adapters/antd-adapter.ts +0 -869
- package/libs/instance-factories/views/templates/react/adapters/mui-adapter.ts +0 -953
- package/libs/instance-factories/views/templates/react/adapters/shadcn-adapter.ts +0 -806
- package/libs/instance-factories/views/templates/react/app-generator.ts +0 -55
- package/libs/instance-factories/views/templates/react/components-generator.ts +0 -938
- package/libs/instance-factories/views/templates/react/forms-generator.ts +0 -325
- package/libs/instance-factories/views/templates/react/frontend-package-json-generator.ts +0 -57
- package/libs/instance-factories/views/templates/react/hooks-generator.ts +0 -106
- package/libs/instance-factories/views/templates/react/index-css-generator.ts +0 -14
- package/libs/instance-factories/views/templates/react/index-html-generator.ts +0 -34
- package/libs/instance-factories/views/templates/react/main-tsx-generator.ts +0 -29
- package/libs/instance-factories/views/templates/react/react-component-generator.d.ts +0 -152
- package/libs/instance-factories/views/templates/react/react-component-generator.d.ts.map +0 -1
- package/libs/instance-factories/views/templates/react/react-component-generator.js +0 -398
- package/libs/instance-factories/views/templates/react/react-component-generator.js.map +0 -1
- package/libs/instance-factories/views/templates/react/react-component-generator.ts +0 -533
- package/libs/instance-factories/views/templates/react/router-generator.ts +0 -197
- package/libs/instance-factories/views/templates/react/router-generic-generator.ts +0 -132
- package/libs/instance-factories/views/templates/react/shared-utils-generator.ts +0 -196
- package/libs/instance-factories/views/templates/react/spec-json-generator.ts +0 -17
- package/libs/instance-factories/views/templates/react/types-generator.ts +0 -76
- package/libs/instance-factories/views/templates/react/views-metadata-generator.ts +0 -42
- package/libs/instance-factories/views/templates/react/vite-config-generator.ts +0 -38
- package/libs/instance-factories/views/templates/runtime/runtime-view-renderer.d.ts.map +0 -1
- package/libs/instance-factories/views/templates/runtime/runtime-view-renderer.js.map +0 -1
- package/libs/instance-factories/views/templates/runtime/runtime-view-renderer.ts +0 -474
- package/libs/instance-factories/views/templates/shared/__tests__/composite-patterns.test.ts +0 -242
- package/libs/instance-factories/views/templates/shared/adapter-types.d.ts +0 -77
- package/libs/instance-factories/views/templates/shared/adapter-types.d.ts.map +0 -1
- package/libs/instance-factories/views/templates/shared/adapter-types.js +0 -47
- package/libs/instance-factories/views/templates/shared/adapter-types.js.map +0 -1
- package/libs/instance-factories/views/templates/shared/adapter-types.ts +0 -142
- package/libs/instance-factories/views/templates/shared/atomic-components-registry.d.ts +0 -63
- package/libs/instance-factories/views/templates/shared/atomic-components-registry.d.ts.map +0 -1
- package/libs/instance-factories/views/templates/shared/atomic-components-registry.js +0 -822
- package/libs/instance-factories/views/templates/shared/atomic-components-registry.js.map +0 -1
- package/libs/instance-factories/views/templates/shared/atomic-components-registry.ts +0 -908
- package/libs/instance-factories/views/templates/shared/base-generator.d.ts +0 -247
- package/libs/instance-factories/views/templates/shared/base-generator.d.ts.map +0 -1
- package/libs/instance-factories/views/templates/shared/base-generator.js +0 -363
- package/libs/instance-factories/views/templates/shared/base-generator.js.map +0 -1
- package/libs/instance-factories/views/templates/shared/base-generator.ts +0 -608
- package/libs/instance-factories/views/templates/shared/component-metadata.d.ts +0 -254
- package/libs/instance-factories/views/templates/shared/component-metadata.d.ts.map +0 -1
- package/libs/instance-factories/views/templates/shared/component-metadata.js +0 -602
- package/libs/instance-factories/views/templates/shared/component-metadata.js.map +0 -1
- package/libs/instance-factories/views/templates/shared/component-metadata.ts +0 -803
- package/libs/instance-factories/views/templates/shared/composite-pattern-types.ts +0 -250
- package/libs/instance-factories/views/templates/shared/composite-patterns.ts +0 -535
- package/libs/instance-factories/views/templates/shared/index.ts +0 -68
- package/libs/instance-factories/views/templates/shared/pattern-validator.ts +0 -279
- package/libs/instance-factories/views/templates/shared/property-mapper.d.ts +0 -149
- package/libs/instance-factories/views/templates/shared/property-mapper.d.ts.map +0 -1
- package/libs/instance-factories/views/templates/shared/property-mapper.js +0 -580
- package/libs/instance-factories/views/templates/shared/property-mapper.js.map +0 -1
- package/libs/instance-factories/views/templates/shared/property-mapper.ts +0 -700
- package/libs/instance-factories/views/templates/shared/syntax-mapper.d.ts +0 -143
- package/libs/instance-factories/views/templates/shared/syntax-mapper.d.ts.map +0 -1
- package/libs/instance-factories/views/templates/shared/syntax-mapper.js +0 -420
- package/libs/instance-factories/views/templates/shared/syntax-mapper.js.map +0 -1
- package/libs/instance-factories/views/templates/shared/syntax-mapper.ts +0 -539
|
@@ -1,254 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Component Metadata - Runtime Rendering Hints
|
|
3
|
-
*
|
|
4
|
-
* Provides metadata for runtime interpretation and dynamic rendering.
|
|
5
|
-
* Bridges the static atomic components registry with dynamic runtime engines.
|
|
6
|
-
*
|
|
7
|
-
* Used by:
|
|
8
|
-
* - app-demo runtime engine for dynamic component rendering
|
|
9
|
-
* - Documentation generation for component catalogs
|
|
10
|
-
* - AI-powered component suggestions
|
|
11
|
-
* - IDE tooling and autocomplete
|
|
12
|
-
*
|
|
13
|
-
* Architecture:
|
|
14
|
-
* - Enriches atomic component definitions with runtime hints
|
|
15
|
-
* - Provides property descriptions and validation rules
|
|
16
|
-
* - Includes rendering capabilities and constraints
|
|
17
|
-
* - Supports dynamic component discovery
|
|
18
|
-
*/
|
|
19
|
-
import { AtomicComponentDefinition } from './atomic-components-registry.js';
|
|
20
|
-
/**
|
|
21
|
-
* Property metadata for runtime interpretation
|
|
22
|
-
*/
|
|
23
|
-
export interface PropertyMetadata {
|
|
24
|
-
name: string;
|
|
25
|
-
type: 'string' | 'number' | 'boolean' | 'object' | 'array' | 'enum';
|
|
26
|
-
required: boolean;
|
|
27
|
-
default?: any;
|
|
28
|
-
description: string;
|
|
29
|
-
enumValues?: string[];
|
|
30
|
-
validation?: {
|
|
31
|
-
min?: number;
|
|
32
|
-
max?: number;
|
|
33
|
-
pattern?: string;
|
|
34
|
-
options?: string[];
|
|
35
|
-
};
|
|
36
|
-
/**
|
|
37
|
-
* Common property that maps across frameworks
|
|
38
|
-
* (variant, size, color, position, orientation)
|
|
39
|
-
*/
|
|
40
|
-
isCommon?: boolean;
|
|
41
|
-
/**
|
|
42
|
-
* Property affects layout/rendering significantly
|
|
43
|
-
*/
|
|
44
|
-
affectsLayout?: boolean;
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* Event metadata for runtime interpretation
|
|
48
|
-
*/
|
|
49
|
-
export interface EventMetadata {
|
|
50
|
-
name: string;
|
|
51
|
-
description: string;
|
|
52
|
-
parameters?: {
|
|
53
|
-
name: string;
|
|
54
|
-
type: string;
|
|
55
|
-
description: string;
|
|
56
|
-
}[];
|
|
57
|
-
/**
|
|
58
|
-
* Event bubbles up to parent components
|
|
59
|
-
*/
|
|
60
|
-
bubbles?: boolean;
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* Rendering capability metadata
|
|
64
|
-
*/
|
|
65
|
-
export interface RenderingCapability {
|
|
66
|
-
/**
|
|
67
|
-
* Component can contain children
|
|
68
|
-
*/
|
|
69
|
-
supportsChildren: boolean;
|
|
70
|
-
/**
|
|
71
|
-
* Component supports conditional rendering (v-if, *ngIf, etc.)
|
|
72
|
-
*/
|
|
73
|
-
supportsConditional: boolean;
|
|
74
|
-
/**
|
|
75
|
-
* Component supports list rendering (v-for, *ngFor, map, etc.)
|
|
76
|
-
*/
|
|
77
|
-
supportsList: boolean;
|
|
78
|
-
/**
|
|
79
|
-
* Component supports slots/content projection
|
|
80
|
-
*/
|
|
81
|
-
supportsSlots: boolean;
|
|
82
|
-
/**
|
|
83
|
-
* Maximum recommended nesting depth
|
|
84
|
-
*/
|
|
85
|
-
maxDepth?: number;
|
|
86
|
-
/**
|
|
87
|
-
* Preferred position in component tree
|
|
88
|
-
*/
|
|
89
|
-
preferredPosition?: 'root' | 'container' | 'leaf' | 'any';
|
|
90
|
-
}
|
|
91
|
-
/**
|
|
92
|
-
* Accessibility metadata
|
|
93
|
-
*/
|
|
94
|
-
export interface AccessibilityMetadata {
|
|
95
|
-
/**
|
|
96
|
-
* ARIA role
|
|
97
|
-
*/
|
|
98
|
-
role?: string;
|
|
99
|
-
/**
|
|
100
|
-
* Keyboard navigable
|
|
101
|
-
*/
|
|
102
|
-
keyboardNavigable: boolean;
|
|
103
|
-
/**
|
|
104
|
-
* Required ARIA attributes
|
|
105
|
-
*/
|
|
106
|
-
requiredAriaAttrs?: string[];
|
|
107
|
-
/**
|
|
108
|
-
* Screen reader description template
|
|
109
|
-
*/
|
|
110
|
-
screenReaderDescription?: string;
|
|
111
|
-
}
|
|
112
|
-
/**
|
|
113
|
-
* Component state metadata
|
|
114
|
-
*/
|
|
115
|
-
export interface StateMetadata {
|
|
116
|
-
/**
|
|
117
|
-
* Component manages internal state
|
|
118
|
-
*/
|
|
119
|
-
hasInternalState: boolean;
|
|
120
|
-
/**
|
|
121
|
-
* State properties managed by component
|
|
122
|
-
*/
|
|
123
|
-
stateProperties?: {
|
|
124
|
-
name: string;
|
|
125
|
-
type: string;
|
|
126
|
-
description: string;
|
|
127
|
-
defaultValue?: any;
|
|
128
|
-
}[];
|
|
129
|
-
}
|
|
130
|
-
/**
|
|
131
|
-
* Complete component metadata for runtime
|
|
132
|
-
*/
|
|
133
|
-
export interface ComponentMetadata extends AtomicComponentDefinition {
|
|
134
|
-
/**
|
|
135
|
-
* Property definitions with validation
|
|
136
|
-
*/
|
|
137
|
-
propertyMetadata: PropertyMetadata[];
|
|
138
|
-
/**
|
|
139
|
-
* Event definitions
|
|
140
|
-
*/
|
|
141
|
-
eventMetadata?: EventMetadata[];
|
|
142
|
-
/**
|
|
143
|
-
* Rendering capabilities
|
|
144
|
-
*/
|
|
145
|
-
capabilities: RenderingCapability;
|
|
146
|
-
/**
|
|
147
|
-
* Accessibility information
|
|
148
|
-
*/
|
|
149
|
-
accessibility: AccessibilityMetadata;
|
|
150
|
-
/**
|
|
151
|
-
* State management information
|
|
152
|
-
*/
|
|
153
|
-
state: StateMetadata;
|
|
154
|
-
/**
|
|
155
|
-
* Related components (alternatives, compositions)
|
|
156
|
-
*/
|
|
157
|
-
related?: {
|
|
158
|
-
alternatives?: string[];
|
|
159
|
-
compositions?: string[];
|
|
160
|
-
containers?: string[];
|
|
161
|
-
};
|
|
162
|
-
/**
|
|
163
|
-
* Usage examples for runtime
|
|
164
|
-
*/
|
|
165
|
-
usageExamples?: {
|
|
166
|
-
title: string;
|
|
167
|
-
description: string;
|
|
168
|
-
code: string;
|
|
169
|
-
}[];
|
|
170
|
-
}
|
|
171
|
-
/**
|
|
172
|
-
* Metadata for the 5 universal properties
|
|
173
|
-
*/
|
|
174
|
-
export declare const COMMON_PROPERTY_METADATA: Record<string, PropertyMetadata>;
|
|
175
|
-
/**
|
|
176
|
-
* Enhanced metadata for all atomic components
|
|
177
|
-
*/
|
|
178
|
-
export declare const COMPONENT_METADATA_REGISTRY: Record<string, ComponentMetadata>;
|
|
179
|
-
/**
|
|
180
|
-
* Get metadata for a component type
|
|
181
|
-
*
|
|
182
|
-
* @param componentType - Component type from atomic registry
|
|
183
|
-
* @returns Component metadata or undefined
|
|
184
|
-
*/
|
|
185
|
-
export declare function getComponentMetadata(componentType: string): ComponentMetadata | undefined;
|
|
186
|
-
/**
|
|
187
|
-
* Get all available component types with metadata
|
|
188
|
-
*
|
|
189
|
-
* @returns Array of component type names
|
|
190
|
-
*/
|
|
191
|
-
export declare function getAllComponentTypes(): string[];
|
|
192
|
-
/**
|
|
193
|
-
* Get components by category
|
|
194
|
-
*
|
|
195
|
-
* @param category - Component category
|
|
196
|
-
* @returns Array of component metadata
|
|
197
|
-
*/
|
|
198
|
-
export declare function getComponentsByCategory(category: ComponentMetadata['category']): ComponentMetadata[];
|
|
199
|
-
/**
|
|
200
|
-
* Get components that can contain children
|
|
201
|
-
*
|
|
202
|
-
* @returns Array of container component metadata
|
|
203
|
-
*/
|
|
204
|
-
export declare function getContainerComponents(): ComponentMetadata[];
|
|
205
|
-
/**
|
|
206
|
-
* Get leaf components (cannot contain children)
|
|
207
|
-
*
|
|
208
|
-
* @returns Array of leaf component metadata
|
|
209
|
-
*/
|
|
210
|
-
export declare function getLeafComponents(): ComponentMetadata[];
|
|
211
|
-
/**
|
|
212
|
-
* Check if a component supports a specific property
|
|
213
|
-
*
|
|
214
|
-
* @param componentType - Component type
|
|
215
|
-
* @param propertyName - Property name
|
|
216
|
-
* @returns True if property is supported
|
|
217
|
-
*/
|
|
218
|
-
export declare function supportsProperty(componentType: string, propertyName: string): boolean;
|
|
219
|
-
/**
|
|
220
|
-
* Get property metadata for a component
|
|
221
|
-
*
|
|
222
|
-
* @param componentType - Component type
|
|
223
|
-
* @param propertyName - Property name
|
|
224
|
-
* @returns Property metadata or undefined
|
|
225
|
-
*/
|
|
226
|
-
export declare function getPropertyMetadata(componentType: string, propertyName: string): PropertyMetadata | undefined;
|
|
227
|
-
/**
|
|
228
|
-
* Validate property value against metadata
|
|
229
|
-
*
|
|
230
|
-
* @param componentType - Component type
|
|
231
|
-
* @param propertyName - Property name
|
|
232
|
-
* @param value - Property value
|
|
233
|
-
* @returns Validation result with errors
|
|
234
|
-
*/
|
|
235
|
-
export declare function validatePropertyValue(componentType: string, propertyName: string, value: any): {
|
|
236
|
-
valid: boolean;
|
|
237
|
-
errors: string[];
|
|
238
|
-
};
|
|
239
|
-
/**
|
|
240
|
-
* Get recommended components for composition
|
|
241
|
-
*
|
|
242
|
-
* @param componentType - Component type
|
|
243
|
-
* @returns Array of recommended component types
|
|
244
|
-
*/
|
|
245
|
-
export declare function getRecommendedCompositions(componentType: string): string[];
|
|
246
|
-
/**
|
|
247
|
-
* Check if two components can be nested
|
|
248
|
-
*
|
|
249
|
-
* @param parentType - Parent component type
|
|
250
|
-
* @param childType - Child component type
|
|
251
|
-
* @returns True if nesting is allowed
|
|
252
|
-
*/
|
|
253
|
-
export declare function canNest(parentType: string, childType: string): boolean;
|
|
254
|
-
//# sourceMappingURL=component-metadata.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"component-metadata.d.ts","sourceRoot":"","sources":["component-metadata.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;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