@zhama/a2ui 0.10.1 → 0.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/a2ui-CnaCcq4c.d.ts +36 -0
- package/dist/a2ui-vyxwZCoa.d.cts +36 -0
- package/dist/context/index.d.cts +27 -0
- package/dist/context/index.d.ts +27 -0
- package/dist/data/index.d.cts +2 -0
- package/dist/data/index.d.ts +2 -0
- package/dist/events/index.d.cts +2 -0
- package/dist/events/index.d.ts +2 -0
- package/dist/index-BJe-XUR4.d.ts +118 -0
- package/dist/index-BWAU7Xp2.d.ts +331 -0
- package/dist/index-Bgqafemj.d.ts +106 -0
- package/dist/index-BltkjFKi.d.ts +67 -0
- package/dist/index-Bzqwwd1k.d.cts +106 -0
- package/dist/index-CEWReOmS.d.ts +16 -0
- package/dist/index-CLn74O53.d.cts +67 -0
- package/dist/index-CfuPxsd1.d.cts +16 -0
- package/dist/index-DCv59E9u.d.cts +331 -0
- package/dist/index-DKh6MRhF.d.cts +118 -0
- package/dist/index.d.cts +10 -0
- package/dist/index.d.ts +10 -0
- package/dist/styles/a2ui.css +143 -0
- package/dist/styles/index.d.cts +2 -0
- package/dist/styles/index.d.ts +2 -0
- package/dist/types/index.d.cts +2 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types-CtrG7MJe.d.cts +475 -0
- package/dist/types-CtrG7MJe.d.ts +475 -0
- package/dist/ui/index.d.cts +5 -0
- package/dist/ui/index.d.ts +5 -0
- package/package.json +4 -4
- /package/{src → dist}/styles/a2ui-variables.css +0 -0
|
@@ -0,0 +1,475 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A2UI Primitive Types
|
|
3
|
+
* 基础值类型,支持字面值和数据绑定路径
|
|
4
|
+
*/
|
|
5
|
+
interface StringValue {
|
|
6
|
+
path?: string;
|
|
7
|
+
literalString?: string;
|
|
8
|
+
literal?: string;
|
|
9
|
+
}
|
|
10
|
+
interface NumberValue {
|
|
11
|
+
path?: string;
|
|
12
|
+
literalNumber?: number;
|
|
13
|
+
literal?: number;
|
|
14
|
+
}
|
|
15
|
+
interface BooleanValue {
|
|
16
|
+
path?: string;
|
|
17
|
+
literalBoolean?: boolean;
|
|
18
|
+
literal?: boolean;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* A2UI Component Types
|
|
23
|
+
* 组件类型定义
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
interface Action {
|
|
27
|
+
name: string;
|
|
28
|
+
context?: Array<{
|
|
29
|
+
key: string;
|
|
30
|
+
value: {
|
|
31
|
+
path?: string;
|
|
32
|
+
literalString?: string;
|
|
33
|
+
literalNumber?: number;
|
|
34
|
+
literalBoolean?: boolean;
|
|
35
|
+
};
|
|
36
|
+
}>;
|
|
37
|
+
}
|
|
38
|
+
interface Text {
|
|
39
|
+
text: StringValue;
|
|
40
|
+
usageHint: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'caption' | 'body';
|
|
41
|
+
}
|
|
42
|
+
interface Image {
|
|
43
|
+
url: StringValue;
|
|
44
|
+
usageHint: 'icon' | 'avatar' | 'smallFeature' | 'mediumFeature' | 'largeFeature' | 'header';
|
|
45
|
+
fit?: 'contain' | 'cover' | 'fill' | 'none' | 'scale-down';
|
|
46
|
+
}
|
|
47
|
+
interface Icon {
|
|
48
|
+
name: StringValue;
|
|
49
|
+
size?: number | string;
|
|
50
|
+
container?: boolean;
|
|
51
|
+
variant?: string;
|
|
52
|
+
}
|
|
53
|
+
interface Video {
|
|
54
|
+
url: StringValue;
|
|
55
|
+
}
|
|
56
|
+
interface AudioPlayer {
|
|
57
|
+
url: StringValue;
|
|
58
|
+
description?: StringValue;
|
|
59
|
+
}
|
|
60
|
+
interface Tabs {
|
|
61
|
+
tabItems: Array<{
|
|
62
|
+
title: {
|
|
63
|
+
path?: string;
|
|
64
|
+
literalString?: string;
|
|
65
|
+
};
|
|
66
|
+
child: string;
|
|
67
|
+
}>;
|
|
68
|
+
}
|
|
69
|
+
interface Divider {
|
|
70
|
+
axis?: 'horizontal' | 'vertical';
|
|
71
|
+
color?: string;
|
|
72
|
+
thickness?: number;
|
|
73
|
+
}
|
|
74
|
+
interface Modal {
|
|
75
|
+
entryPointChild: string;
|
|
76
|
+
contentChild: string;
|
|
77
|
+
}
|
|
78
|
+
interface Button {
|
|
79
|
+
child: string;
|
|
80
|
+
action: Action;
|
|
81
|
+
}
|
|
82
|
+
interface Checkbox {
|
|
83
|
+
label: StringValue;
|
|
84
|
+
value: {
|
|
85
|
+
path?: string;
|
|
86
|
+
literalBoolean?: boolean;
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
interface TextField {
|
|
90
|
+
text?: StringValue;
|
|
91
|
+
label: StringValue;
|
|
92
|
+
type?: 'shortText' | 'number' | 'date' | 'longText';
|
|
93
|
+
validationRegexp?: string;
|
|
94
|
+
}
|
|
95
|
+
interface DateTimeInput {
|
|
96
|
+
value: StringValue;
|
|
97
|
+
enableDate?: boolean;
|
|
98
|
+
enableTime?: boolean;
|
|
99
|
+
outputFormat?: string;
|
|
100
|
+
}
|
|
101
|
+
interface MultipleChoice {
|
|
102
|
+
selections: {
|
|
103
|
+
path?: string;
|
|
104
|
+
literalArray?: string[];
|
|
105
|
+
};
|
|
106
|
+
options?: Array<{
|
|
107
|
+
label: {
|
|
108
|
+
path?: string;
|
|
109
|
+
literalString?: string;
|
|
110
|
+
};
|
|
111
|
+
value: string;
|
|
112
|
+
}>;
|
|
113
|
+
maxAllowedSelections?: number;
|
|
114
|
+
}
|
|
115
|
+
interface Slider {
|
|
116
|
+
value: {
|
|
117
|
+
path?: string;
|
|
118
|
+
literalNumber?: number;
|
|
119
|
+
};
|
|
120
|
+
minValue?: number;
|
|
121
|
+
maxValue?: number;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* A2UI Core Types
|
|
126
|
+
* 核心协议类型定义
|
|
127
|
+
*/
|
|
128
|
+
|
|
129
|
+
interface MessageProcessor {
|
|
130
|
+
getSurfaces(): ReadonlyMap<string, Surface>;
|
|
131
|
+
clearSurfaces(): void;
|
|
132
|
+
processMessages(messages: ServerToClientMessage[]): void;
|
|
133
|
+
getData(node: AnyComponentNode, relativePath: string, surfaceId: string): DataValue | null;
|
|
134
|
+
setData(node: AnyComponentNode | null, relativePath: string, value: DataValue, surfaceId: string): void;
|
|
135
|
+
resolvePath(path: string, dataContextPath?: string): string;
|
|
136
|
+
}
|
|
137
|
+
interface Theme {
|
|
138
|
+
components: {
|
|
139
|
+
AudioPlayer: Record<string, boolean>;
|
|
140
|
+
Button: Record<string, boolean>;
|
|
141
|
+
Card: Record<string, boolean>;
|
|
142
|
+
Column: Record<string, boolean>;
|
|
143
|
+
CheckBox: {
|
|
144
|
+
container: Record<string, boolean>;
|
|
145
|
+
element: Record<string, boolean>;
|
|
146
|
+
label: Record<string, boolean>;
|
|
147
|
+
};
|
|
148
|
+
DateTimeInput: {
|
|
149
|
+
container: Record<string, boolean>;
|
|
150
|
+
element: Record<string, boolean>;
|
|
151
|
+
label: Record<string, boolean>;
|
|
152
|
+
};
|
|
153
|
+
Divider: Record<string, boolean>;
|
|
154
|
+
Image: {
|
|
155
|
+
all: Record<string, boolean>;
|
|
156
|
+
icon: Record<string, boolean>;
|
|
157
|
+
avatar: Record<string, boolean>;
|
|
158
|
+
smallFeature: Record<string, boolean>;
|
|
159
|
+
mediumFeature: Record<string, boolean>;
|
|
160
|
+
largeFeature: Record<string, boolean>;
|
|
161
|
+
header: Record<string, boolean>;
|
|
162
|
+
};
|
|
163
|
+
Icon: Record<string, boolean>;
|
|
164
|
+
List: Record<string, boolean>;
|
|
165
|
+
Modal: {
|
|
166
|
+
backdrop: Record<string, boolean>;
|
|
167
|
+
element: Record<string, boolean>;
|
|
168
|
+
};
|
|
169
|
+
MultipleChoice: {
|
|
170
|
+
container: Record<string, boolean>;
|
|
171
|
+
element: Record<string, boolean>;
|
|
172
|
+
label: Record<string, boolean>;
|
|
173
|
+
};
|
|
174
|
+
Row: Record<string, boolean>;
|
|
175
|
+
Slider: {
|
|
176
|
+
container: Record<string, boolean>;
|
|
177
|
+
element: Record<string, boolean>;
|
|
178
|
+
label: Record<string, boolean>;
|
|
179
|
+
};
|
|
180
|
+
Tabs: {
|
|
181
|
+
container: Record<string, boolean>;
|
|
182
|
+
element: Record<string, boolean>;
|
|
183
|
+
controls: {
|
|
184
|
+
all: Record<string, boolean>;
|
|
185
|
+
selected: Record<string, boolean>;
|
|
186
|
+
};
|
|
187
|
+
};
|
|
188
|
+
Text: {
|
|
189
|
+
all: Record<string, boolean>;
|
|
190
|
+
h1: Record<string, boolean>;
|
|
191
|
+
h2: Record<string, boolean>;
|
|
192
|
+
h3: Record<string, boolean>;
|
|
193
|
+
h4: Record<string, boolean>;
|
|
194
|
+
h5: Record<string, boolean>;
|
|
195
|
+
h6: Record<string, boolean>;
|
|
196
|
+
caption: Record<string, boolean>;
|
|
197
|
+
body: Record<string, boolean>;
|
|
198
|
+
label: Record<string, boolean>;
|
|
199
|
+
};
|
|
200
|
+
TextField: {
|
|
201
|
+
container: Record<string, boolean>;
|
|
202
|
+
element: Record<string, boolean>;
|
|
203
|
+
label: Record<string, boolean>;
|
|
204
|
+
};
|
|
205
|
+
Video: Record<string, boolean>;
|
|
206
|
+
};
|
|
207
|
+
elements: {
|
|
208
|
+
a: Record<string, boolean>;
|
|
209
|
+
audio: Record<string, boolean>;
|
|
210
|
+
body: Record<string, boolean>;
|
|
211
|
+
button: Record<string, boolean>;
|
|
212
|
+
h1: Record<string, boolean>;
|
|
213
|
+
h2: Record<string, boolean>;
|
|
214
|
+
h3: Record<string, boolean>;
|
|
215
|
+
h4: Record<string, boolean>;
|
|
216
|
+
h5: Record<string, boolean>;
|
|
217
|
+
iframe: Record<string, boolean>;
|
|
218
|
+
input: Record<string, boolean>;
|
|
219
|
+
p: Record<string, boolean>;
|
|
220
|
+
pre: Record<string, boolean>;
|
|
221
|
+
textarea: Record<string, boolean>;
|
|
222
|
+
video: Record<string, boolean>;
|
|
223
|
+
};
|
|
224
|
+
markdown: {
|
|
225
|
+
p: string[];
|
|
226
|
+
h1: string[];
|
|
227
|
+
h2: string[];
|
|
228
|
+
h3: string[];
|
|
229
|
+
h4: string[];
|
|
230
|
+
h5: string[];
|
|
231
|
+
ul: string[];
|
|
232
|
+
ol: string[];
|
|
233
|
+
li: string[];
|
|
234
|
+
a: string[];
|
|
235
|
+
strong: string[];
|
|
236
|
+
em: string[];
|
|
237
|
+
code: string[];
|
|
238
|
+
blockquote: string[];
|
|
239
|
+
};
|
|
240
|
+
additionalStyles?: {
|
|
241
|
+
AudioPlayer?: Record<string, string>;
|
|
242
|
+
Button?: Record<string, string>;
|
|
243
|
+
Card?: Record<string, string>;
|
|
244
|
+
Column?: Record<string, string>;
|
|
245
|
+
CheckBox?: Record<string, string>;
|
|
246
|
+
DateTimeInput?: Record<string, string>;
|
|
247
|
+
Divider?: Record<string, string>;
|
|
248
|
+
Heading?: Record<string, string>;
|
|
249
|
+
Icon?: Record<string, string>;
|
|
250
|
+
Image?: Record<string, string>;
|
|
251
|
+
List?: Record<string, string>;
|
|
252
|
+
Modal?: Record<string, string>;
|
|
253
|
+
MultipleChoice?: Record<string, string>;
|
|
254
|
+
Row?: Record<string, string>;
|
|
255
|
+
Slider?: Record<string, string>;
|
|
256
|
+
Tabs?: Record<string, string>;
|
|
257
|
+
Text?: Record<string, string> | {
|
|
258
|
+
h1: Record<string, string>;
|
|
259
|
+
h2: Record<string, string>;
|
|
260
|
+
h3: Record<string, string>;
|
|
261
|
+
h4: Record<string, string>;
|
|
262
|
+
h5: Record<string, string>;
|
|
263
|
+
body: Record<string, string>;
|
|
264
|
+
caption: Record<string, string>;
|
|
265
|
+
};
|
|
266
|
+
TextField?: Record<string, string>;
|
|
267
|
+
Video?: Record<string, string>;
|
|
268
|
+
};
|
|
269
|
+
}
|
|
270
|
+
interface UserAction {
|
|
271
|
+
actionName: string;
|
|
272
|
+
sourceComponentId: string;
|
|
273
|
+
timestamp: string;
|
|
274
|
+
context?: Record<string, unknown>;
|
|
275
|
+
}
|
|
276
|
+
interface DataObject {
|
|
277
|
+
[key: string]: DataValue;
|
|
278
|
+
}
|
|
279
|
+
type DataMap = Map<string, DataValue>;
|
|
280
|
+
type DataArray = DataValue[];
|
|
281
|
+
type DataValue = string | number | boolean | null | DataMap | DataObject | DataArray;
|
|
282
|
+
interface ComponentArrayTemplate {
|
|
283
|
+
componentId: string;
|
|
284
|
+
dataBinding: string;
|
|
285
|
+
}
|
|
286
|
+
interface ComponentArrayReference {
|
|
287
|
+
explicitList?: string[];
|
|
288
|
+
template?: ComponentArrayTemplate;
|
|
289
|
+
}
|
|
290
|
+
type ComponentProperties = {
|
|
291
|
+
children?: ComponentArrayReference;
|
|
292
|
+
child?: string;
|
|
293
|
+
[k: string]: unknown;
|
|
294
|
+
};
|
|
295
|
+
interface ComponentInstance {
|
|
296
|
+
id: string;
|
|
297
|
+
weight?: number;
|
|
298
|
+
component?: Record<string, ComponentProperties>;
|
|
299
|
+
}
|
|
300
|
+
interface BeginRenderingMessage {
|
|
301
|
+
surfaceId: string;
|
|
302
|
+
root: string;
|
|
303
|
+
styles?: Record<string, string>;
|
|
304
|
+
}
|
|
305
|
+
interface SurfaceUpdateMessage {
|
|
306
|
+
surfaceId: string;
|
|
307
|
+
components: ComponentInstance[];
|
|
308
|
+
}
|
|
309
|
+
interface DataModelUpdate {
|
|
310
|
+
surfaceId: string;
|
|
311
|
+
path?: string;
|
|
312
|
+
contents: ValueMap[];
|
|
313
|
+
}
|
|
314
|
+
type ValueMap = DataObject & {
|
|
315
|
+
key: string;
|
|
316
|
+
valueString?: string;
|
|
317
|
+
valueNumber?: number;
|
|
318
|
+
valueBoolean?: boolean;
|
|
319
|
+
valueMap?: ValueMap[];
|
|
320
|
+
};
|
|
321
|
+
interface DeleteSurfaceMessage {
|
|
322
|
+
surfaceId: string;
|
|
323
|
+
}
|
|
324
|
+
interface ServerToClientMessage {
|
|
325
|
+
beginRendering?: BeginRenderingMessage;
|
|
326
|
+
surfaceUpdate?: SurfaceUpdateMessage;
|
|
327
|
+
dataModelUpdate?: DataModelUpdate;
|
|
328
|
+
deleteSurface?: DeleteSurfaceMessage;
|
|
329
|
+
}
|
|
330
|
+
interface ResolvedMap {
|
|
331
|
+
[key: string]: ResolvedValue;
|
|
332
|
+
}
|
|
333
|
+
type ResolvedArray = ResolvedValue[];
|
|
334
|
+
type ResolvedValue = string | number | boolean | null | AnyComponentNode | ResolvedMap | ResolvedArray;
|
|
335
|
+
interface BaseComponentNode {
|
|
336
|
+
id: string;
|
|
337
|
+
weight?: number | string;
|
|
338
|
+
dataContextPath?: string;
|
|
339
|
+
slotName?: string;
|
|
340
|
+
}
|
|
341
|
+
interface TextNode extends BaseComponentNode {
|
|
342
|
+
type: 'Text';
|
|
343
|
+
properties: ResolvedText;
|
|
344
|
+
}
|
|
345
|
+
interface ImageNode extends BaseComponentNode {
|
|
346
|
+
type: 'Image';
|
|
347
|
+
properties: ResolvedImage;
|
|
348
|
+
}
|
|
349
|
+
interface IconNode extends BaseComponentNode {
|
|
350
|
+
type: 'Icon';
|
|
351
|
+
properties: ResolvedIcon;
|
|
352
|
+
}
|
|
353
|
+
interface VideoNode extends BaseComponentNode {
|
|
354
|
+
type: 'Video';
|
|
355
|
+
properties: ResolvedVideo;
|
|
356
|
+
}
|
|
357
|
+
interface AudioPlayerNode extends BaseComponentNode {
|
|
358
|
+
type: 'AudioPlayer';
|
|
359
|
+
properties: ResolvedAudioPlayer;
|
|
360
|
+
}
|
|
361
|
+
interface RowNode extends BaseComponentNode {
|
|
362
|
+
type: 'Row';
|
|
363
|
+
properties: ResolvedRow;
|
|
364
|
+
}
|
|
365
|
+
interface ColumnNode extends BaseComponentNode {
|
|
366
|
+
type: 'Column';
|
|
367
|
+
properties: ResolvedColumn;
|
|
368
|
+
}
|
|
369
|
+
interface ListNode extends BaseComponentNode {
|
|
370
|
+
type: 'List';
|
|
371
|
+
properties: ResolvedList;
|
|
372
|
+
}
|
|
373
|
+
interface CardNode extends BaseComponentNode {
|
|
374
|
+
type: 'Card';
|
|
375
|
+
properties: ResolvedCard;
|
|
376
|
+
}
|
|
377
|
+
interface TabsNode extends BaseComponentNode {
|
|
378
|
+
type: 'Tabs';
|
|
379
|
+
properties: ResolvedTabs;
|
|
380
|
+
}
|
|
381
|
+
interface DividerNode extends BaseComponentNode {
|
|
382
|
+
type: 'Divider';
|
|
383
|
+
properties: ResolvedDivider;
|
|
384
|
+
}
|
|
385
|
+
interface ModalNode extends BaseComponentNode {
|
|
386
|
+
type: 'Modal';
|
|
387
|
+
properties: ResolvedModal;
|
|
388
|
+
}
|
|
389
|
+
interface ButtonNode extends BaseComponentNode {
|
|
390
|
+
type: 'Button';
|
|
391
|
+
properties: ResolvedButton;
|
|
392
|
+
}
|
|
393
|
+
interface CheckboxNode extends BaseComponentNode {
|
|
394
|
+
type: 'CheckBox';
|
|
395
|
+
properties: ResolvedCheckbox;
|
|
396
|
+
}
|
|
397
|
+
interface TextFieldNode extends BaseComponentNode {
|
|
398
|
+
type: 'TextField';
|
|
399
|
+
properties: ResolvedTextField;
|
|
400
|
+
}
|
|
401
|
+
interface DateTimeInputNode extends BaseComponentNode {
|
|
402
|
+
type: 'DateTimeInput';
|
|
403
|
+
properties: ResolvedDateTimeInput;
|
|
404
|
+
}
|
|
405
|
+
interface MultipleChoiceNode extends BaseComponentNode {
|
|
406
|
+
type: 'MultipleChoice';
|
|
407
|
+
properties: ResolvedMultipleChoice;
|
|
408
|
+
}
|
|
409
|
+
interface SliderNode extends BaseComponentNode {
|
|
410
|
+
type: 'Slider';
|
|
411
|
+
properties: ResolvedSlider;
|
|
412
|
+
}
|
|
413
|
+
interface CustomNode extends BaseComponentNode {
|
|
414
|
+
type: string;
|
|
415
|
+
properties: CustomNodeProperties;
|
|
416
|
+
}
|
|
417
|
+
type AnyComponentNode = TextNode | IconNode | ImageNode | VideoNode | AudioPlayerNode | RowNode | ColumnNode | ListNode | CardNode | TabsNode | DividerNode | ModalNode | ButtonNode | CheckboxNode | TextFieldNode | DateTimeInputNode | MultipleChoiceNode | SliderNode | CustomNode;
|
|
418
|
+
type ResolvedText = Text;
|
|
419
|
+
type ResolvedIcon = Icon;
|
|
420
|
+
type ResolvedImage = Image;
|
|
421
|
+
type ResolvedVideo = Video;
|
|
422
|
+
type ResolvedAudioPlayer = AudioPlayer;
|
|
423
|
+
type ResolvedDivider = Divider;
|
|
424
|
+
type ResolvedCheckbox = Checkbox;
|
|
425
|
+
type ResolvedTextField = TextField;
|
|
426
|
+
type ResolvedDateTimeInput = DateTimeInput;
|
|
427
|
+
type ResolvedMultipleChoice = MultipleChoice;
|
|
428
|
+
type ResolvedSlider = Slider;
|
|
429
|
+
interface ResolvedRow {
|
|
430
|
+
children: AnyComponentNode[];
|
|
431
|
+
distribution?: 'start' | 'center' | 'end' | 'spaceBetween' | 'spaceAround' | 'spaceEvenly';
|
|
432
|
+
alignment?: 'start' | 'center' | 'end' | 'stretch';
|
|
433
|
+
}
|
|
434
|
+
interface ResolvedColumn {
|
|
435
|
+
children: AnyComponentNode[];
|
|
436
|
+
distribution?: 'start' | 'center' | 'end' | 'spaceBetween' | 'spaceAround' | 'spaceEvenly';
|
|
437
|
+
alignment?: 'start' | 'center' | 'end' | 'stretch';
|
|
438
|
+
}
|
|
439
|
+
interface ResolvedButton {
|
|
440
|
+
child: AnyComponentNode;
|
|
441
|
+
action: Action;
|
|
442
|
+
}
|
|
443
|
+
interface ResolvedList {
|
|
444
|
+
children: AnyComponentNode[];
|
|
445
|
+
direction?: 'vertical' | 'horizontal';
|
|
446
|
+
alignment?: 'start' | 'center' | 'end' | 'stretch';
|
|
447
|
+
}
|
|
448
|
+
interface ResolvedCard {
|
|
449
|
+
child?: AnyComponentNode;
|
|
450
|
+
children?: AnyComponentNode[];
|
|
451
|
+
}
|
|
452
|
+
interface ResolvedTabItem {
|
|
453
|
+
title: StringValue;
|
|
454
|
+
child: AnyComponentNode;
|
|
455
|
+
}
|
|
456
|
+
interface ResolvedTabs {
|
|
457
|
+
tabItems: ResolvedTabItem[];
|
|
458
|
+
}
|
|
459
|
+
interface ResolvedModal {
|
|
460
|
+
entryPointChild: AnyComponentNode;
|
|
461
|
+
contentChild: AnyComponentNode;
|
|
462
|
+
}
|
|
463
|
+
interface CustomNodeProperties {
|
|
464
|
+
[k: string]: ResolvedValue;
|
|
465
|
+
}
|
|
466
|
+
type SurfaceID = string;
|
|
467
|
+
interface Surface {
|
|
468
|
+
rootComponentId: string | null;
|
|
469
|
+
componentTree: AnyComponentNode | null;
|
|
470
|
+
dataModel: DataMap;
|
|
471
|
+
components: Map<string, ComponentInstance>;
|
|
472
|
+
styles: Record<string, string>;
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
export type { TextFieldNode as $, Action as A, BooleanValue as B, Checkbox as C, Divider as D, AnyComponentNode as E, TextNode as F, ImageNode as G, IconNode as H, Image as I, VideoNode as J, AudioPlayerNode as K, RowNode as L, Modal as M, NumberValue as N, ColumnNode as O, ListNode as P, CardNode as Q, ResolvedValue as R, StringValue as S, Text as T, UserAction as U, Video as V, TabsNode as W, DividerNode as X, ModalNode as Y, ButtonNode as Z, CheckboxNode as _, Icon as a, DateTimeInputNode as a0, MultipleChoiceNode as a1, SliderNode as a2, CustomNode as a3, ResolvedText as a4, ResolvedIcon as a5, ResolvedImage as a6, ResolvedVideo as a7, ResolvedAudioPlayer as a8, ResolvedDivider as a9, ResolvedCheckbox as aa, ResolvedTextField as ab, ResolvedDateTimeInput as ac, ResolvedMultipleChoice as ad, ResolvedSlider as ae, ResolvedRow as af, ResolvedColumn as ag, ResolvedButton as ah, ResolvedList as ai, ResolvedCard as aj, ResolvedTabItem as ak, ResolvedTabs as al, ResolvedModal as am, CustomNodeProperties as an, SurfaceID as ao, Surface as ap, AudioPlayer as b, Tabs as c, Button as d, TextField as e, DateTimeInput as f, MultipleChoice as g, Slider as h, MessageProcessor as i, Theme as j, DataValue as k, DataObject as l, DataMap as m, DataArray as n, ComponentArrayTemplate as o, ComponentArrayReference as p, ComponentProperties as q, ComponentInstance as r, BeginRenderingMessage as s, SurfaceUpdateMessage as t, DataModelUpdate as u, ValueMap as v, DeleteSurfaceMessage as w, ServerToClientMessage as x, ResolvedMap as y, ResolvedArray as z };
|