@yahoo/uds-create-config 4.10.1 → 4.10.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/configs/CanvasConfig.d.ts +165 -77
- package/dist/configs/documentation.d.ts +256 -0
- package/dist/configs/documentation.js +16 -0
- package/dist/configs/react-native-system.d.ts +111 -52
- package/dist/configs/system.d.ts +121 -87
- package/dist/configs/system.js +4 -0
- package/dist/entities/documentation/Documentation.d.ts +44 -0
- package/dist/entities/documentation/Documentation.js +49 -0
- package/dist/entities/native/NativeModifier.d.ts +1 -1
- package/dist/entities/native/NativeSettings.d.ts +1 -1
- package/dist/entities/native/NativeStyleProperty.d.ts +2 -2
- package/dist/entities/native/NativeToken.d.ts +4 -3
- package/dist/entities/system/CanvasRole.d.ts +1 -1
- package/dist/entities/system/Component.d.ts +23 -13
- package/dist/entities/system/Component.js +41 -15
- package/dist/entities/system/Composite.d.ts +1 -1
- package/dist/entities/system/Device.d.ts +1 -1
- package/dist/entities/system/File.d.ts +2 -2
- package/dist/entities/system/Font.d.ts +1 -1
- package/dist/entities/system/GlobalStyle.d.ts +1 -1
- package/dist/entities/system/Guidance.d.ts +1 -1
- package/dist/entities/system/GuidanceStyle.d.ts +1 -1
- package/dist/entities/system/Icon.d.ts +63 -11
- package/dist/entities/system/Icon.js +70 -14
- package/dist/entities/system/LinkedSystem.d.ts +1 -1
- package/dist/entities/system/Modifier.d.ts +2 -2
- package/dist/entities/system/Motion.d.ts +1 -1
- package/dist/entities/system/Package.d.ts +1 -1
- package/dist/entities/system/Settings.d.ts +1 -1
- package/dist/entities/system/StyleProperty.d.ts +12 -19
- package/dist/entities/system/StyleProperty.js +7 -10
- package/dist/entities/system/Token.d.ts +4 -3
- package/dist/entities/system/defineComponent.d.ts +21 -6
- package/dist/entities/system/defineComponent.js +7 -12
- package/dist/entities/system/glyph-identity.d.ts +7 -0
- package/dist/entities/system/glyph-identity.js +153 -0
- package/dist/entities/system/icon-domain-invariants.d.ts +11 -0
- package/dist/entities/system/icon-domain-invariants.js +178 -0
- package/dist/entities/system/icon-library.d.ts +93 -34
- package/dist/entities/system/icon-library.js +218 -50
- package/dist/entities/system/icon-metadata.d.ts +10 -4
- package/dist/entities/system/icon-metadata.js +45 -5
- package/dist/entities/system/runtime-modules.js +5 -5
- package/dist/entities/system/style-bag.js +14 -2
- package/dist/framework/Config.d.ts +1 -1
- package/dist/framework/Config.js +34 -5
- package/dist/framework/defineConfig.d.ts +6 -3
- package/dist/framework/defineEntity.d.ts +54 -15
- package/dist/framework/defineEntity.js +56 -2
- package/dist/framework/projections.d.ts +40 -2
- package/dist/framework/projections.js +99 -5
- package/dist/framework/prop-surface.d.ts +6 -5
- package/dist/framework/prop-surface.js +12 -14
- package/dist/framework/registry.d.ts +17 -1
- package/dist/framework/registry.js +2 -1
- package/dist/framework/render-spec.d.ts +6 -5
- package/dist/framework/render-spec.js +16 -11
- package/dist/framework/schema-version.d.ts +1 -1
- package/dist/framework/schema-version.js +5 -5
- package/dist/framework/signature.js +5 -1
- package/dist/framework/utils/group.d.ts +15 -1
- package/dist/framework/utils/ref-grammar.d.ts +35 -0
- package/dist/framework/utils/ref-grammar.js +76 -0
- package/dist/framework/utils/refs.d.ts +13 -45
- package/dist/framework/utils/refs.js +31 -94
- package/dist/framework/value-domain.js +53 -8
- package/dist/index.d.ts +8 -6
- package/dist/index.js +7 -5
- package/dist/migrations/2.0.0/v1-artifact.d.ts +62 -45
- package/dist/migrations/2.0.0/v1-artifact.js +5 -7
- package/dist/migrations/20260921044042_icon_library_without_component.d.ts +19 -0
- package/dist/migrations/20260921044042_icon_library_without_component.js +86 -0
- package/dist/migrations/20260922013625_icon_libraries.d.ts +18 -0
- package/dist/migrations/20260922013625_icon_libraries.js +8 -0
- package/dist/renderer/UdsRenderer.d.ts +8 -1
- package/dist/renderer/UdsRenderer.js +7 -3
- package/dist/renderer/glyphEntries.d.ts +32 -0
- package/dist/renderer/glyphEntries.js +48 -0
- package/dist/renderer/glyphRenderable.d.ts +10 -0
- package/dist/renderer/glyphRenderable.js +40 -0
- package/dist/renderer/icon-library.d.ts +18 -11
- package/dist/renderer/index.d.ts +4 -2
- package/dist/renderer/index.js +4 -2
- package/dist/renderer/resolveGlyph.d.ts +47 -0
- package/dist/renderer/resolveGlyph.js +78 -0
- package/dist/renderer/wrapRegistry.d.ts +13 -4
- package/dist/renderer/wrapRegistry.js +7 -5
- package/dist/renderer/wrappers/component-refs.js +6 -2
- package/dist/renderer/wrappers/glyph-props.d.ts +15 -0
- package/dist/renderer/wrappers/glyph-props.js +65 -0
- package/dist/spec/glyph-jsx.d.ts +41 -0
- package/dist/spec/{asset-jsx.js → glyph-jsx.js} +7 -25
- package/dist/spec/index.d.ts +2 -2
- package/dist/spec/index.js +2 -2
- package/dist/spec/jsxToSpec.d.ts +10 -4
- package/dist/spec/jsxToSpec.js +21 -4
- package/dist/spec/specToJsx.d.ts +20 -9
- package/dist/spec/specToJsx.js +77 -16
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/dist/renderer/assetEntries.d.ts +0 -37
- package/dist/renderer/assetEntries.js +0 -38
- package/dist/renderer/assetRenderable.d.ts +0 -25
- package/dist/renderer/assetRenderable.js +0 -19
- package/dist/spec/asset-jsx.d.ts +0 -61
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
import { ComputedInput } from "../framework/registry.js";
|
|
2
|
+
import { DerivedEntityClass } from "../framework/defineDerivedEntity.js";
|
|
3
|
+
import { EntityClass } from "../framework/defineEntity.js";
|
|
4
|
+
import { ConfigClass } from "../framework/defineConfig.js";
|
|
5
|
+
import { Config } from "../framework/Config.js";
|
|
6
|
+
import * as _$zod from "zod";
|
|
7
|
+
import * as _$zod_v4_core0 from "zod/v4/core";
|
|
8
|
+
|
|
9
|
+
//#region src/configs/documentation.d.ts
|
|
10
|
+
declare const DocumentationLibrary: ConfigClass<{
|
|
11
|
+
documents: EntityClass<_$zod.ZodObject<{
|
|
12
|
+
title: _$zod.ZodString;
|
|
13
|
+
summary: _$zod.ZodOptional<_$zod.ZodString>;
|
|
14
|
+
markdown: _$zod.ZodString;
|
|
15
|
+
category: _$zod.ZodString;
|
|
16
|
+
public: _$zod.ZodDefault<_$zod.ZodBoolean>;
|
|
17
|
+
products: _$zod.ZodArray<_$zod.ZodEnum<{
|
|
18
|
+
create: "create";
|
|
19
|
+
uds: "uds";
|
|
20
|
+
}>>;
|
|
21
|
+
platform: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
22
|
+
mobile: "mobile";
|
|
23
|
+
web: "web";
|
|
24
|
+
}>>;
|
|
25
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<Record<never, never>, _$zod_v4_core0.$strip>, "documentation", {
|
|
26
|
+
readonly search: {
|
|
27
|
+
readonly input: _$zod.ZodObject<{
|
|
28
|
+
query: _$zod.ZodDefault<_$zod.ZodString>;
|
|
29
|
+
}, _$zod_v4_core0.$strip>;
|
|
30
|
+
readonly readOnly: true;
|
|
31
|
+
readonly label: "Search";
|
|
32
|
+
readonly description: "Find articles by text in their path, title, summary, or Markdown. An empty query browses all articles. Returns metadata without article bodies; use get to read an article.";
|
|
33
|
+
readonly scope: "collection";
|
|
34
|
+
readonly example: () => {
|
|
35
|
+
query: string;
|
|
36
|
+
};
|
|
37
|
+
readonly handler: (input: Record<string, unknown>, config: Config) => {
|
|
38
|
+
path: string;
|
|
39
|
+
title: string;
|
|
40
|
+
summary: string | undefined;
|
|
41
|
+
category: string;
|
|
42
|
+
products: ("create" | "uds")[];
|
|
43
|
+
platform: "mobile" | "web" | undefined;
|
|
44
|
+
}[];
|
|
45
|
+
};
|
|
46
|
+
}, Record<never, never>, false, Record<never, never>, Record<never, never>>;
|
|
47
|
+
}, {
|
|
48
|
+
operations: DerivedEntityClass<_$zod.ZodObject<{
|
|
49
|
+
kind: _$zod.ZodString;
|
|
50
|
+
verb: _$zod.ZodString;
|
|
51
|
+
readOnly: _$zod.ZodBoolean;
|
|
52
|
+
label: _$zod.ZodString;
|
|
53
|
+
description: _$zod.ZodString;
|
|
54
|
+
scope: _$zod.ZodString;
|
|
55
|
+
creates: _$zod.ZodBoolean;
|
|
56
|
+
approval: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
57
|
+
destructive: "destructive";
|
|
58
|
+
"reference-change": "reference-change";
|
|
59
|
+
}>>;
|
|
60
|
+
}, _$zod_v4_core0.$strip>, {
|
|
61
|
+
inputSchema: ({
|
|
62
|
+
member: op,
|
|
63
|
+
config
|
|
64
|
+
}: Omit<ComputedInput, "member"> & {
|
|
65
|
+
member: {
|
|
66
|
+
kind: string;
|
|
67
|
+
verb: string;
|
|
68
|
+
readOnly: boolean;
|
|
69
|
+
label: string;
|
|
70
|
+
description: string;
|
|
71
|
+
scope: string;
|
|
72
|
+
creates: boolean;
|
|
73
|
+
approval?: "destructive" | "reference-change" | undefined;
|
|
74
|
+
};
|
|
75
|
+
}) => _$zod.ZodTypeAny<unknown, unknown, _$zod_v4_core0.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
76
|
+
execute: ({
|
|
77
|
+
member: op,
|
|
78
|
+
config: declaring
|
|
79
|
+
}: Omit<ComputedInput, "member"> & {
|
|
80
|
+
member: {
|
|
81
|
+
kind: string;
|
|
82
|
+
verb: string;
|
|
83
|
+
readOnly: boolean;
|
|
84
|
+
label: string;
|
|
85
|
+
description: string;
|
|
86
|
+
scope: string;
|
|
87
|
+
creates: boolean;
|
|
88
|
+
approval?: "destructive" | "reference-change" | undefined;
|
|
89
|
+
};
|
|
90
|
+
}) => ((input: Record<string, unknown>, config: Config) => unknown) | undefined;
|
|
91
|
+
field: ({
|
|
92
|
+
member: op
|
|
93
|
+
}: Omit<ComputedInput, "member"> & {
|
|
94
|
+
member: {
|
|
95
|
+
kind: string;
|
|
96
|
+
verb: string;
|
|
97
|
+
readOnly: boolean;
|
|
98
|
+
label: string;
|
|
99
|
+
description: string;
|
|
100
|
+
scope: string;
|
|
101
|
+
creates: boolean;
|
|
102
|
+
approval?: "destructive" | "reference-change" | undefined;
|
|
103
|
+
};
|
|
104
|
+
}) => string | undefined;
|
|
105
|
+
title: ({
|
|
106
|
+
member: op,
|
|
107
|
+
config
|
|
108
|
+
}: Omit<ComputedInput, "member"> & {
|
|
109
|
+
member: {
|
|
110
|
+
kind: string;
|
|
111
|
+
verb: string;
|
|
112
|
+
readOnly: boolean;
|
|
113
|
+
label: string;
|
|
114
|
+
description: string;
|
|
115
|
+
scope: string;
|
|
116
|
+
creates: boolean;
|
|
117
|
+
approval?: "destructive" | "reference-change" | undefined;
|
|
118
|
+
};
|
|
119
|
+
}) => ((entity: string) => string) | undefined;
|
|
120
|
+
example: ({
|
|
121
|
+
member: op,
|
|
122
|
+
config
|
|
123
|
+
}: Omit<ComputedInput, "member"> & {
|
|
124
|
+
member: {
|
|
125
|
+
kind: string;
|
|
126
|
+
verb: string;
|
|
127
|
+
readOnly: boolean;
|
|
128
|
+
label: string;
|
|
129
|
+
description: string;
|
|
130
|
+
scope: string;
|
|
131
|
+
creates: boolean;
|
|
132
|
+
approval?: "destructive" | "reference-change" | undefined;
|
|
133
|
+
};
|
|
134
|
+
}) => Record<string, unknown> | undefined;
|
|
135
|
+
}>;
|
|
136
|
+
tools: DerivedEntityClass<_$zod.ZodObject<{
|
|
137
|
+
operation: DerivedEntityClass<_$zod.ZodObject<{
|
|
138
|
+
kind: _$zod.ZodString;
|
|
139
|
+
verb: _$zod.ZodString;
|
|
140
|
+
readOnly: _$zod.ZodBoolean;
|
|
141
|
+
label: _$zod.ZodString;
|
|
142
|
+
description: _$zod.ZodString;
|
|
143
|
+
scope: _$zod.ZodString;
|
|
144
|
+
creates: _$zod.ZodBoolean;
|
|
145
|
+
approval: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
146
|
+
destructive: "destructive";
|
|
147
|
+
"reference-change": "reference-change";
|
|
148
|
+
}>>;
|
|
149
|
+
}, _$zod_v4_core0.$strip>, {
|
|
150
|
+
inputSchema: ({
|
|
151
|
+
member: op,
|
|
152
|
+
config
|
|
153
|
+
}: Omit<ComputedInput, "member"> & {
|
|
154
|
+
member: {
|
|
155
|
+
kind: string;
|
|
156
|
+
verb: string;
|
|
157
|
+
readOnly: boolean;
|
|
158
|
+
label: string;
|
|
159
|
+
description: string;
|
|
160
|
+
scope: string;
|
|
161
|
+
creates: boolean;
|
|
162
|
+
approval?: "destructive" | "reference-change" | undefined;
|
|
163
|
+
};
|
|
164
|
+
}) => _$zod.ZodTypeAny<unknown, unknown, _$zod_v4_core0.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
165
|
+
execute: ({
|
|
166
|
+
member: op,
|
|
167
|
+
config: declaring
|
|
168
|
+
}: Omit<ComputedInput, "member"> & {
|
|
169
|
+
member: {
|
|
170
|
+
kind: string;
|
|
171
|
+
verb: string;
|
|
172
|
+
readOnly: boolean;
|
|
173
|
+
label: string;
|
|
174
|
+
description: string;
|
|
175
|
+
scope: string;
|
|
176
|
+
creates: boolean;
|
|
177
|
+
approval?: "destructive" | "reference-change" | undefined;
|
|
178
|
+
};
|
|
179
|
+
}) => ((input: Record<string, unknown>, config: Config) => unknown) | undefined;
|
|
180
|
+
field: ({
|
|
181
|
+
member: op
|
|
182
|
+
}: Omit<ComputedInput, "member"> & {
|
|
183
|
+
member: {
|
|
184
|
+
kind: string;
|
|
185
|
+
verb: string;
|
|
186
|
+
readOnly: boolean;
|
|
187
|
+
label: string;
|
|
188
|
+
description: string;
|
|
189
|
+
scope: string;
|
|
190
|
+
creates: boolean;
|
|
191
|
+
approval?: "destructive" | "reference-change" | undefined;
|
|
192
|
+
};
|
|
193
|
+
}) => string | undefined;
|
|
194
|
+
title: ({
|
|
195
|
+
member: op,
|
|
196
|
+
config
|
|
197
|
+
}: Omit<ComputedInput, "member"> & {
|
|
198
|
+
member: {
|
|
199
|
+
kind: string;
|
|
200
|
+
verb: string;
|
|
201
|
+
readOnly: boolean;
|
|
202
|
+
label: string;
|
|
203
|
+
description: string;
|
|
204
|
+
scope: string;
|
|
205
|
+
creates: boolean;
|
|
206
|
+
approval?: "destructive" | "reference-change" | undefined;
|
|
207
|
+
};
|
|
208
|
+
}) => ((entity: string) => string) | undefined;
|
|
209
|
+
example: ({
|
|
210
|
+
member: op,
|
|
211
|
+
config
|
|
212
|
+
}: Omit<ComputedInput, "member"> & {
|
|
213
|
+
member: {
|
|
214
|
+
kind: string;
|
|
215
|
+
verb: string;
|
|
216
|
+
readOnly: boolean;
|
|
217
|
+
label: string;
|
|
218
|
+
description: string;
|
|
219
|
+
scope: string;
|
|
220
|
+
creates: boolean;
|
|
221
|
+
approval?: "destructive" | "reference-change" | undefined;
|
|
222
|
+
};
|
|
223
|
+
}) => Record<string, unknown> | undefined;
|
|
224
|
+
}>;
|
|
225
|
+
name: _$zod.ZodString;
|
|
226
|
+
description: _$zod.ZodString;
|
|
227
|
+
enabled: _$zod.ZodDefault<_$zod.ZodBoolean>;
|
|
228
|
+
}, _$zod_v4_core0.$strip>, {
|
|
229
|
+
kind: (input: ComputedInput) => string | undefined;
|
|
230
|
+
verb: (input: ComputedInput) => string | undefined;
|
|
231
|
+
readOnly: ({
|
|
232
|
+
member,
|
|
233
|
+
config
|
|
234
|
+
}: Omit<ComputedInput, "member"> & {
|
|
235
|
+
member: {
|
|
236
|
+
operation: {
|
|
237
|
+
__ref: string;
|
|
238
|
+
};
|
|
239
|
+
name: string;
|
|
240
|
+
description: string;
|
|
241
|
+
enabled: boolean;
|
|
242
|
+
};
|
|
243
|
+
}) => boolean;
|
|
244
|
+
inputSchema: (input: ComputedInput) => _$zod.ZodTypeAny<unknown, unknown, _$zod_v4_core0.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
245
|
+
execute: (input: ComputedInput) => ((input: Record<string, unknown>, config: Config) => unknown) | undefined;
|
|
246
|
+
action: (input: ComputedInput) => string | undefined;
|
|
247
|
+
field: (input: ComputedInput) => string | undefined;
|
|
248
|
+
scope: (input: ComputedInput) => string | undefined;
|
|
249
|
+
approval: (input: ComputedInput) => "destructive" | "reference-change" | undefined;
|
|
250
|
+
label: (input: ComputedInput) => string | undefined;
|
|
251
|
+
shortLabel: (input: ComputedInput) => string | undefined;
|
|
252
|
+
example: (input: ComputedInput) => Record<string, unknown> | undefined;
|
|
253
|
+
}>;
|
|
254
|
+
}, Record<never, never>>;
|
|
255
|
+
//#endregion
|
|
256
|
+
export { DocumentationLibrary };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Operation } from "../entities/system/Operation.js";
|
|
2
|
+
import { Tool } from "../entities/system/Tool.js";
|
|
3
|
+
import { defineConfig } from "../framework/defineConfig.js";
|
|
4
|
+
import { Documentation } from "../entities/documentation/Documentation.js";
|
|
5
|
+
//#region src/configs/documentation.ts
|
|
6
|
+
const DocumentationLibrary = defineConfig({
|
|
7
|
+
name: "documentation-library",
|
|
8
|
+
description: "Knowledge Base articles about UDS and Create, independently of users’ design systems.",
|
|
9
|
+
entities: { documents: Documentation },
|
|
10
|
+
derivedEntities: {
|
|
11
|
+
operations: Operation,
|
|
12
|
+
tools: Tool
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
//#endregion
|
|
16
|
+
export { DocumentationLibrary };
|