@onereach/idw-contracts 0.2.1 → 0.3.0-beta.36.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/dist/cjs/idw-card/card-schema.js +117 -5
- package/dist/cjs/idw-card/card-schema.js.map +1 -1
- package/dist/cjs/idw-card/collect.js +22 -6
- package/dist/cjs/idw-card/collect.js.map +1 -1
- package/dist/cjs/idw-card/index.js.map +1 -1
- package/dist/cjs/idw-card/templates/file.js +3 -1
- package/dist/cjs/idw-card/templates/file.js.map +1 -1
- package/dist/cjs/idw-card/templates/json-schema.js +2 -1
- package/dist/cjs/idw-card/templates/json-schema.js.map +1 -1
- package/dist/cjs/idw-card/templates/skill.js +31 -5
- package/dist/cjs/idw-card/templates/skill.js.map +1 -1
- package/dist/cjs/idw-card/types.js.map +1 -1
- package/dist/esm/idw-card/card-schema.js +117 -5
- package/dist/esm/idw-card/card-schema.js.map +1 -1
- package/dist/esm/idw-card/collect.js +22 -6
- package/dist/esm/idw-card/collect.js.map +1 -1
- package/dist/esm/idw-card/index.js.map +1 -1
- package/dist/esm/idw-card/templates/file.js +3 -1
- package/dist/esm/idw-card/templates/file.js.map +1 -1
- package/dist/esm/idw-card/templates/json-schema.js +2 -1
- package/dist/esm/idw-card/templates/json-schema.js.map +1 -1
- package/dist/esm/idw-card/templates/skill.js +31 -5
- package/dist/esm/idw-card/templates/skill.js.map +1 -1
- package/dist/esm/idw-card/types.js.map +1 -1
- package/dist/types/idw-card/card-schema.d.ts.map +1 -1
- package/dist/types/idw-card/collect.d.ts.map +1 -1
- package/dist/types/idw-card/index.d.ts +1 -1
- package/dist/types/idw-card/index.d.ts.map +1 -1
- package/dist/types/idw-card/templates/file.d.ts +4 -0
- package/dist/types/idw-card/templates/file.d.ts.map +1 -1
- package/dist/types/idw-card/templates/json-schema.d.ts.map +1 -1
- package/dist/types/idw-card/templates/skill.d.ts +43 -5
- package/dist/types/idw-card/templates/skill.d.ts.map +1 -1
- package/dist/types/idw-card/types.d.ts +156 -12
- package/dist/types/idw-card/types.d.ts.map +1 -1
- package/package.json +2 -3
- package/skills/idw-card-authoring/SKILL.md +39 -34
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import type { IdwCardTemplate } from './types';
|
|
3
3
|
export declare const SKILL_TEMPLATE_ID: "skill";
|
|
4
|
-
export declare const skillDataSchema: z.ZodObject<{
|
|
4
|
+
export declare const skillDataSchema: z.ZodEffects<z.ZodObject<{
|
|
5
5
|
text: z.ZodString;
|
|
6
6
|
skill: z.ZodOptional<z.ZodObject<{
|
|
7
7
|
id: z.ZodString;
|
|
@@ -38,6 +38,24 @@ export declare const skillDataSchema: z.ZodObject<{
|
|
|
38
38
|
domain: string;
|
|
39
39
|
} | undefined;
|
|
40
40
|
startSkillLabel?: string | undefined;
|
|
41
|
+
}>, {
|
|
42
|
+
text: string;
|
|
43
|
+
skill?: {
|
|
44
|
+
id: string;
|
|
45
|
+
name: string;
|
|
46
|
+
image: string;
|
|
47
|
+
domain: string;
|
|
48
|
+
} | undefined;
|
|
49
|
+
startSkillLabel?: string | undefined;
|
|
50
|
+
}, {
|
|
51
|
+
text: string;
|
|
52
|
+
skill?: {
|
|
53
|
+
id: string;
|
|
54
|
+
name: string;
|
|
55
|
+
image: string;
|
|
56
|
+
domain: string;
|
|
57
|
+
} | undefined;
|
|
58
|
+
startSkillLabel?: string | undefined;
|
|
41
59
|
}>;
|
|
42
60
|
export type SkillTemplateData = z.infer<typeof skillDataSchema>;
|
|
43
61
|
export declare const skillTemplateCard: {
|
|
@@ -45,12 +63,32 @@ export declare const skillTemplateCard: {
|
|
|
45
63
|
schema: "idw.card";
|
|
46
64
|
version: "1.0";
|
|
47
65
|
fallbackText: string;
|
|
48
|
-
body: {
|
|
66
|
+
body: ({
|
|
49
67
|
type: string;
|
|
50
|
-
text: string;
|
|
51
68
|
skill: string;
|
|
52
|
-
|
|
53
|
-
|
|
69
|
+
$when: string;
|
|
70
|
+
text?: undefined;
|
|
71
|
+
actions?: undefined;
|
|
72
|
+
} | {
|
|
73
|
+
type: string;
|
|
74
|
+
text: string;
|
|
75
|
+
skill?: undefined;
|
|
76
|
+
$when?: undefined;
|
|
77
|
+
actions?: undefined;
|
|
78
|
+
} | {
|
|
79
|
+
type: string;
|
|
80
|
+
$when: string;
|
|
81
|
+
actions: {
|
|
82
|
+
type: string;
|
|
83
|
+
verb: string;
|
|
84
|
+
title: string;
|
|
85
|
+
skillId: string;
|
|
86
|
+
variant: string;
|
|
87
|
+
color: string;
|
|
88
|
+
}[];
|
|
89
|
+
skill?: undefined;
|
|
90
|
+
text?: undefined;
|
|
91
|
+
})[];
|
|
54
92
|
};
|
|
55
93
|
export declare const skillTemplate: IdwCardTemplate;
|
|
56
94
|
//# sourceMappingURL=skill.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skill.d.ts","sourceRoot":"","sources":["../../../../src/idw-card/templates/skill.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE/C,eAAO,MAAM,iBAAiB,SAAmB,CAAC;AAElD,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"skill.d.ts","sourceRoot":"","sources":["../../../../src/idw-card/templates/skill.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE/C,eAAO,MAAM,iBAAiB,SAAmB,CAAC;AAElD,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiB1B,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAEhE,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4B7B,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,eAS3B,CAAC"}
|
|
@@ -2,7 +2,13 @@ export type IdwSpacing = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
|
2
2
|
export type IdwTextStyle = 'caption' | 'body' | 'headline';
|
|
3
3
|
export type IdwTone = 'default' | 'emphasis' | 'success' | 'warning' | 'attention';
|
|
4
4
|
export type IdwCardActionStyle = 'default' | 'primary' | 'destructive';
|
|
5
|
+
/** `OrButtonV3` variant. Preferred over {@link IdwCardActionStyle}. */
|
|
6
|
+
export type IdwButtonVariant = 'contained' | 'outlined' | 'text';
|
|
7
|
+
/** `OrButtonV3` color. */
|
|
8
|
+
export type IdwButtonColor = 'primary' | 'danger';
|
|
5
9
|
export type IdwColumnWidth = 'auto' | 'stretch';
|
|
10
|
+
/** Alignment inside the element shell. `start` is the default. */
|
|
11
|
+
export type IdwAlignment = 'start' | 'center' | 'end';
|
|
6
12
|
export type IdwCardVerb = 'open-url' | 'approve' | 'reject' | 'submit' | 'start-skill' | 'mention' | 'open-conversation' | 'toggle-visibility' | 'show-card';
|
|
7
13
|
export type IdwCardAction = {
|
|
8
14
|
type: 'Action';
|
|
@@ -11,7 +17,13 @@ export type IdwCardAction = {
|
|
|
11
17
|
url?: string;
|
|
12
18
|
skillId?: string;
|
|
13
19
|
data?: Record<string, unknown>;
|
|
20
|
+
/** @deprecated Use {@link variant} and {@link color}. */
|
|
14
21
|
style?: IdwCardActionStyle;
|
|
22
|
+
variant?: IdwButtonVariant;
|
|
23
|
+
color?: IdwButtonColor;
|
|
24
|
+
disabled?: boolean;
|
|
25
|
+
/** Leading Material icon name, rendered inside `OrButtonV3`. */
|
|
26
|
+
icon?: string;
|
|
15
27
|
targetIds?: string[];
|
|
16
28
|
card?: IdwCard;
|
|
17
29
|
$when?: string;
|
|
@@ -22,6 +34,16 @@ export type IdwCardElementBase = {
|
|
|
22
34
|
isVisible?: boolean;
|
|
23
35
|
separator?: boolean;
|
|
24
36
|
$when?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Places this element on the row. The shell stays full width.
|
|
39
|
+
* @default 'start'
|
|
40
|
+
*/
|
|
41
|
+
horizontalAlignment?: IdwAlignment;
|
|
42
|
+
/**
|
|
43
|
+
* Places this element in the leftover height of a stretched column or container.
|
|
44
|
+
* Has no effect when the parent is only as tall as its content.
|
|
45
|
+
*/
|
|
46
|
+
verticalAlignment?: IdwAlignment;
|
|
25
47
|
};
|
|
26
48
|
export type IdwFact = {
|
|
27
49
|
title: string;
|
|
@@ -33,14 +55,29 @@ export type IdwTextElement = IdwCardElementBase & {
|
|
|
33
55
|
textStyle?: IdwTextStyle;
|
|
34
56
|
tone?: IdwTone;
|
|
35
57
|
};
|
|
58
|
+
export type IdwImageAspect = 'video' | 'square';
|
|
36
59
|
export type IdwImageElement = IdwCardElementBase & {
|
|
37
60
|
type: 'Image';
|
|
38
61
|
url: string;
|
|
39
62
|
alt: string;
|
|
63
|
+
/** @default 'video' (16:9). */
|
|
64
|
+
aspect?: IdwImageAspect;
|
|
65
|
+
};
|
|
66
|
+
export type IdwFactProgress = {
|
|
67
|
+
label?: string;
|
|
68
|
+
value: number;
|
|
69
|
+
maxValue?: number;
|
|
70
|
+
/** @deprecated Use maxValue. */
|
|
71
|
+
max?: number;
|
|
72
|
+
/** @default 'linear' */
|
|
73
|
+
variant?: IdwProgressVariant;
|
|
74
|
+
/** @default 'success' */
|
|
75
|
+
color?: IdwProgressColor;
|
|
40
76
|
};
|
|
41
77
|
export type IdwFactSetElement = IdwCardElementBase & {
|
|
42
78
|
type: 'FactSet';
|
|
43
79
|
facts: IdwFact[];
|
|
80
|
+
progress?: IdwFactProgress;
|
|
44
81
|
};
|
|
45
82
|
export type IdwContainerElement = IdwCardElementBase & {
|
|
46
83
|
type: 'Container';
|
|
@@ -64,6 +101,26 @@ export type IdwFileElement = IdwCardElementBase & {
|
|
|
64
101
|
type: 'File';
|
|
65
102
|
title: string;
|
|
66
103
|
src: string;
|
|
104
|
+
/** Display size, such as `2.4 MB`. */
|
|
105
|
+
size?: string;
|
|
106
|
+
};
|
|
107
|
+
export type IdwNoteElement = IdwCardElementBase & {
|
|
108
|
+
type: 'Note';
|
|
109
|
+
text: string;
|
|
110
|
+
/** @default 'Notes:' */
|
|
111
|
+
label?: string;
|
|
112
|
+
/** Material icon name. @default 'sticky_note_2' */
|
|
113
|
+
icon?: string;
|
|
114
|
+
};
|
|
115
|
+
/** `OrNotificationV3` variant. */
|
|
116
|
+
export type IdwNotificationVariant = 'info' | 'success' | 'warning' | 'error';
|
|
117
|
+
export type IdwNotificationElement = IdwCardElementBase & {
|
|
118
|
+
type: 'Notification';
|
|
119
|
+
message: string;
|
|
120
|
+
/** @default 'info' */
|
|
121
|
+
variant?: IdwNotificationVariant;
|
|
122
|
+
/** @default false */
|
|
123
|
+
disableClose?: boolean;
|
|
67
124
|
};
|
|
68
125
|
/** Minimal skill fields a card may embed. Matches SkillCard in ui-components. */
|
|
69
126
|
export type IdwCardSkillData = {
|
|
@@ -74,8 +131,13 @@ export type IdwCardSkillData = {
|
|
|
74
131
|
};
|
|
75
132
|
export type IdwSkillElement = IdwCardElementBase & {
|
|
76
133
|
type: 'Skill';
|
|
77
|
-
|
|
134
|
+
/**
|
|
135
|
+
* Announcement copy. New cards put this in a sibling `Text` element.
|
|
136
|
+
* Kept so `1.0` skill elements still render.
|
|
137
|
+
*/
|
|
138
|
+
text?: string;
|
|
78
139
|
skill?: IdwCardSkillData;
|
|
140
|
+
/** @deprecated Put a sibling `ActionSet` on new cards. */
|
|
79
141
|
startSkillLabel?: string;
|
|
80
142
|
};
|
|
81
143
|
export type IdwActionSetElement = IdwCardElementBase & {
|
|
@@ -86,11 +148,21 @@ export type IdwInputBase = IdwCardElementBase & {
|
|
|
86
148
|
name: string;
|
|
87
149
|
label?: string;
|
|
88
150
|
hint?: string;
|
|
151
|
+
/** Library `error` prop. */
|
|
152
|
+
error?: string;
|
|
153
|
+
/** @deprecated Use error. */
|
|
89
154
|
errorMessage?: string;
|
|
90
155
|
required?: boolean;
|
|
91
156
|
disabled?: boolean;
|
|
92
157
|
};
|
|
93
158
|
export type IdwTextInputStyle = 'text' | 'email' | 'url' | 'tel' | 'password';
|
|
159
|
+
export type IdwInputTextareaElement = IdwInputBase & {
|
|
160
|
+
type: 'Input.Textarea';
|
|
161
|
+
value?: string;
|
|
162
|
+
placeholder?: string;
|
|
163
|
+
rows?: number;
|
|
164
|
+
maxLength?: number;
|
|
165
|
+
};
|
|
94
166
|
export type IdwInputTextElement = IdwInputBase & {
|
|
95
167
|
type: 'Input.Text';
|
|
96
168
|
value?: string;
|
|
@@ -117,16 +189,56 @@ export type IdwInputCheckboxElement = IdwInputBase & {
|
|
|
117
189
|
value?: boolean;
|
|
118
190
|
};
|
|
119
191
|
export type IdwChoice = {
|
|
120
|
-
|
|
192
|
+
/** Library option label. */
|
|
193
|
+
label?: string;
|
|
194
|
+
/** @deprecated Use label. */
|
|
195
|
+
title?: string;
|
|
121
196
|
value: string;
|
|
122
197
|
disabled?: boolean;
|
|
123
198
|
};
|
|
199
|
+
/** Option passed to `OrSelectV3`, `OrRadioGroupV3`, and `OrCheckboxGroupV3`. */
|
|
200
|
+
export type IdwOption = {
|
|
201
|
+
label: string;
|
|
202
|
+
value: string;
|
|
203
|
+
disabled?: boolean;
|
|
204
|
+
};
|
|
205
|
+
/** `OrRadioGroupV3` / `OrCheckboxGroupV3` direction. */
|
|
206
|
+
export type IdwChoiceDirection = 'vertical' | 'horizontal';
|
|
207
|
+
export type IdwInputSelectElement = IdwInputBase & {
|
|
208
|
+
type: 'Input.Select';
|
|
209
|
+
options: IdwOption[];
|
|
210
|
+
multiple?: boolean;
|
|
211
|
+
enableSearch?: boolean;
|
|
212
|
+
enableClear?: boolean;
|
|
213
|
+
value?: string | string[];
|
|
214
|
+
placeholder?: string;
|
|
215
|
+
};
|
|
216
|
+
export type IdwInputRadioGroupElement = IdwInputBase & {
|
|
217
|
+
type: 'Input.RadioGroup';
|
|
218
|
+
options: IdwOption[];
|
|
219
|
+
value?: string;
|
|
220
|
+
readonly?: boolean;
|
|
221
|
+
direction?: IdwChoiceDirection;
|
|
222
|
+
};
|
|
223
|
+
export type IdwInputCheckboxGroupElement = IdwInputBase & {
|
|
224
|
+
type: 'Input.CheckboxGroup';
|
|
225
|
+
options: IdwOption[];
|
|
226
|
+
value?: string[];
|
|
227
|
+
readonly?: boolean;
|
|
228
|
+
direction?: IdwChoiceDirection;
|
|
229
|
+
};
|
|
230
|
+
/** @deprecated Use `Input.Select`, `Input.RadioGroup`, or `Input.CheckboxGroup`. */
|
|
124
231
|
export type IdwChoiceSetStyle = 'compact' | 'expanded' | 'filtered';
|
|
232
|
+
/** @deprecated Use `Input.Select`, `Input.RadioGroup`, or `Input.CheckboxGroup`. */
|
|
125
233
|
export type IdwInputChoiceSetElement = IdwInputBase & {
|
|
126
234
|
type: 'Input.ChoiceSet';
|
|
127
235
|
choices: IdwChoice[];
|
|
236
|
+
/** @deprecated `expanded` renders a radio or checkbox group. */
|
|
128
237
|
style?: IdwChoiceSetStyle;
|
|
238
|
+
/** @deprecated Use Input.Select `multiple`. */
|
|
129
239
|
multi?: boolean;
|
|
240
|
+
multiple?: boolean;
|
|
241
|
+
enableSearch?: boolean;
|
|
130
242
|
value?: string | string[];
|
|
131
243
|
placeholder?: string;
|
|
132
244
|
};
|
|
@@ -145,23 +257,44 @@ export type IdwInputDateTimeElement = IdwInputBase & {
|
|
|
145
257
|
value?: string;
|
|
146
258
|
placeholder?: string;
|
|
147
259
|
};
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
260
|
+
/** `OrSliderV3` / `OrRangeSliderV3` color. */
|
|
261
|
+
export type IdwSliderColor = 'primary' | 'secondary';
|
|
262
|
+
/** `OrSliderV3` / `OrRangeSliderV3` orientation. */
|
|
263
|
+
export type IdwSliderOrientation = 'horizontal' | 'horizontal-reversed' | 'vertical' | 'vertical-reversed';
|
|
264
|
+
type IdwSliderControl = IdwCardElementBase & {
|
|
265
|
+
name: string;
|
|
266
|
+
disabled?: boolean;
|
|
267
|
+
/** @deprecated Use minValue. */
|
|
151
268
|
min?: number;
|
|
269
|
+
/** @deprecated Use maxValue. */
|
|
152
270
|
max?: number;
|
|
271
|
+
minValue?: number;
|
|
272
|
+
maxValue?: number;
|
|
153
273
|
step?: number;
|
|
274
|
+
breakpoints?: number[];
|
|
275
|
+
/** @default 'primary' */
|
|
276
|
+
color?: IdwSliderColor;
|
|
277
|
+
/** @default 'horizontal' */
|
|
278
|
+
orientation?: IdwSliderOrientation;
|
|
279
|
+
};
|
|
280
|
+
export type IdwInputSliderElement = IdwSliderControl & {
|
|
281
|
+
type: 'Input.Slider';
|
|
282
|
+
value?: number;
|
|
154
283
|
};
|
|
155
|
-
export type IdwInputRangeElement =
|
|
284
|
+
export type IdwInputRangeElement = IdwSliderControl & {
|
|
156
285
|
type: 'Input.Range';
|
|
157
286
|
value?: [number, number];
|
|
158
|
-
min?: number;
|
|
159
|
-
max?: number;
|
|
160
|
-
step?: number;
|
|
161
287
|
};
|
|
162
|
-
|
|
288
|
+
/** `OrRatingV3` variant. */
|
|
289
|
+
export type IdwRatingVariant = 'default' | 'fitted';
|
|
290
|
+
export type IdwInputRatingElement = IdwCardElementBase & {
|
|
163
291
|
type: 'Input.Rating';
|
|
292
|
+
name: string;
|
|
164
293
|
value?: number;
|
|
294
|
+
disabled?: boolean;
|
|
295
|
+
readonly?: boolean;
|
|
296
|
+
/** @default 'default' */
|
|
297
|
+
variant?: IdwRatingVariant;
|
|
165
298
|
};
|
|
166
299
|
export type IdwLocationValue = {
|
|
167
300
|
address?: string;
|
|
@@ -175,13 +308,23 @@ export type IdwInputLocationElement = IdwInputBase & {
|
|
|
175
308
|
includeCoordinates?: boolean;
|
|
176
309
|
};
|
|
177
310
|
export type IdwProgressVariant = 'linear' | 'circle';
|
|
311
|
+
/** `OrProgressV3` color. `tone` remains accepted. */
|
|
312
|
+
export type IdwProgressColor = 'auto' | 'primary' | 'success' | 'warning' | 'error';
|
|
178
313
|
export type IdwProgressElement = IdwCardElementBase & {
|
|
179
314
|
type: 'Progress';
|
|
180
315
|
value: number;
|
|
316
|
+
maxValue?: number;
|
|
317
|
+
/** @deprecated Use maxValue. */
|
|
181
318
|
max?: number;
|
|
319
|
+
/** Rendered in the `OrProgressV3` label slot. */
|
|
182
320
|
label?: string;
|
|
321
|
+
/** Maps to `OrProgressV3` `type`, because `type` is the element discriminator. */
|
|
183
322
|
variant?: IdwProgressVariant;
|
|
323
|
+
color?: IdwProgressColor;
|
|
324
|
+
/** @deprecated Use color. */
|
|
184
325
|
tone?: IdwTone;
|
|
326
|
+
precision?: number;
|
|
327
|
+
loading?: boolean;
|
|
185
328
|
};
|
|
186
329
|
export type IdwBadgeElement = IdwCardElementBase & {
|
|
187
330
|
type: 'Badge';
|
|
@@ -216,8 +359,8 @@ export type IdwTableElement = IdwCardElementBase & {
|
|
|
216
359
|
columns: IdwTableColumn[];
|
|
217
360
|
rows: string[][];
|
|
218
361
|
};
|
|
219
|
-
export type IdwCardInputElement = IdwInputTextElement | IdwInputNumberElement | IdwInputToggleElement | IdwInputCheckboxElement | IdwInputChoiceSetElement | IdwInputDateElement | IdwInputTimeElement | IdwInputDateTimeElement | IdwInputSliderElement | IdwInputRangeElement | IdwInputRatingElement | IdwInputLocationElement;
|
|
220
|
-
export type IdwCardElement = IdwTextElement | IdwImageElement | IdwFactSetElement | IdwContainerElement | IdwColumnSetElement | IdwHtmlElement | IdwFileElement | IdwSkillElement | IdwActionSetElement | IdwCardInputElement | IdwProgressElement | IdwBadgeElement | IdwIconElement | IdwImageSetElement | IdwMediaElement | IdwTableElement;
|
|
362
|
+
export type IdwCardInputElement = IdwInputTextElement | IdwInputTextareaElement | IdwInputNumberElement | IdwInputToggleElement | IdwInputCheckboxElement | IdwInputSelectElement | IdwInputRadioGroupElement | IdwInputCheckboxGroupElement | IdwInputChoiceSetElement | IdwInputDateElement | IdwInputTimeElement | IdwInputDateTimeElement | IdwInputSliderElement | IdwInputRangeElement | IdwInputRatingElement | IdwInputLocationElement;
|
|
363
|
+
export type IdwCardElement = IdwTextElement | IdwImageElement | IdwFactSetElement | IdwContainerElement | IdwColumnSetElement | IdwHtmlElement | IdwFileElement | IdwNoteElement | IdwNotificationElement | IdwSkillElement | IdwActionSetElement | IdwCardInputElement | IdwProgressElement | IdwBadgeElement | IdwIconElement | IdwImageSetElement | IdwMediaElement | IdwTableElement;
|
|
221
364
|
export type IdwCard = {
|
|
222
365
|
$schema?: string;
|
|
223
366
|
type: 'IdwCard';
|
|
@@ -247,4 +390,5 @@ export type IdwCardInputMeta = {
|
|
|
247
390
|
visible: boolean;
|
|
248
391
|
};
|
|
249
392
|
export declare function isIdwCardInputElement(element: IdwCardElement): element is IdwCardInputElement;
|
|
393
|
+
export {};
|
|
250
394
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/idw-card/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AACnE,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,MAAM,GAAG,UAAU,CAAC;AAC3D,MAAM,MAAM,OAAO,GAAG,SAAS,GAAG,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,WAAW,CAAC;AACnF,MAAM,MAAM,kBAAkB,GAAG,SAAS,GAAG,SAAS,GAAG,aAAa,CAAC;AACvE,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,SAAS,CAAC;AAEhD,MAAM,MAAM,WAAW,GACnB,UAAU,GACV,SAAS,GACT,QAAQ,GACR,QAAQ,GACR,aAAa,GACb,SAAS,GACT,mBAAmB,GACnB,mBAAmB,GACnB,WAAW,CAAC;AAEhB,MAAM,MAAM,a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ClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,IAAI,mBAAmB,CAE7F"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onereach/idw-contracts",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0-beta.36.0",
|
|
4
4
|
"description": "Shared IDW contracts, schemas and types (isomorphic, consumed by idw-api and idw-ui).",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -38,6 +38,5 @@
|
|
|
38
38
|
},
|
|
39
39
|
"publishConfig": {
|
|
40
40
|
"access": "public"
|
|
41
|
-
}
|
|
42
|
-
"gitHead": "943617eca8cabefe8d12dfc6674eadcdbae86bf3"
|
|
41
|
+
}
|
|
43
42
|
}
|
|
@@ -42,7 +42,7 @@ Prefer a named template when one fits. Otherwise emit a raw card.
|
|
|
42
42
|
"schema": "idw.card",
|
|
43
43
|
"version": "1.0",
|
|
44
44
|
"body": [{ "type": "Text", "text": "Hello", "textStyle": "headline" }],
|
|
45
|
-
"actions": [{ "type": "Action", "verb": "submit", "title": "OK", "
|
|
45
|
+
"actions": [{ "type": "Action", "verb": "submit", "title": "OK", "variant": "contained", "color": "primary" }],
|
|
46
46
|
"fallbackText": "This card could not be displayed."
|
|
47
47
|
}
|
|
48
48
|
```
|
|
@@ -60,10 +60,10 @@ Do not emit Adaptive Cards types. Common mistakes:
|
|
|
60
60
|
| `AdaptiveCard` | `IdwCard` |
|
|
61
61
|
| `TextBlock` / `RichTextBlock` | `Text` (Markdown) |
|
|
62
62
|
| `Action.OpenUrl` / `Action.Submit` / `Action.Execute` | `{ "type": "Action", "verb": "open-url" \| "submit" \| … }` |
|
|
63
|
-
| `Input.ChoiceSet`
|
|
64
|
-
| `isMultiSelect` | `
|
|
63
|
+
| `Input.ChoiceSet` | `Input.Select`, `Input.RadioGroup`, or `Input.CheckboxGroup`. Optional `id` is only for `toggle-visibility`; the collection key is `name` |
|
|
64
|
+
| `isMultiSelect` | `Input.Select` with `multiple` |
|
|
65
65
|
| `isRequired` | `required` |
|
|
66
|
-
| `style: "positive"` / host colors / px |
|
|
66
|
+
| `style: "positive"` / host colors / px | action `variant` + `color`; spacing/tone tokens below |
|
|
67
67
|
| `theme`, `backgroundImage`, hex colors | omit — host `hostConfig` owns theme |
|
|
68
68
|
|
|
69
69
|
Not in v1: Refresh, Authentication, Carousel, Charts, `Data.Query`, `selectAction`, `Action.Execute`.
|
|
@@ -83,8 +83,8 @@ Current templates:
|
|
|
83
83
|
|---|---|---|
|
|
84
84
|
| `markdown` | `text` | |
|
|
85
85
|
| `html` | `title`, `content` | |
|
|
86
|
-
| `file` | `title`, `src` | |
|
|
87
|
-
| `skill` | `text
|
|
86
|
+
| `file` | `title`, `src` | `size` |
|
|
87
|
+
| `skill` | | `text`, `skill` (`id`, `name`, `image`, `domain`), `startSkillLabel` (requires `skill`) |
|
|
88
88
|
| `approval` | `title`, `summary`, `requester` | `dueAt`, `facts[]` (`title`/`value`), `approveLabel`, `rejectLabel` |
|
|
89
89
|
|
|
90
90
|
Do not invent template ids. If none fit, emit a raw card.
|
|
@@ -103,7 +103,7 @@ Do not invent template ids. If none fit, emit a raw card.
|
|
|
103
103
|
|
|
104
104
|
Limits: nesting `Container` / `ColumnSet` ≤ 3. `ColumnSet` has 2–3 columns. Image / File / Media / `open-url` URLs must be relative or `http(s)` — never `javascript:`.
|
|
105
105
|
|
|
106
|
-
Every element may have: `id`, `spacing` (`none` \| `xs` \| `sm` \| `md` \| `lg` \| `xl`), `isVisible`, `separator`, and `$when` (templates only). Omit `spacing` for the default sibling gap (`md`). The first item in a stack has no top gap. Use `none` only to sit flush against the previous item.
|
|
106
|
+
Every element may have: `id`, `spacing` (`none` \| `xs` \| `sm` \| `md` \| `lg` \| `xl`), `horizontalAlignment` and `verticalAlignment` (`start` \| `center` \| `end`), `isVisible`, `separator`, and `$when` (templates only). Omit `spacing` for the default sibling gap (`md`). The first item in a stack has no top gap. Use `none` only to sit flush against the previous item. Omit alignment for `start`. `horizontalAlignment` places the element in its full-width row, so a circle progress can sit in the center. `verticalAlignment` places it in the leftover height of a stretched column or container.
|
|
107
107
|
|
|
108
108
|
Do not put `theme`, colors, px, or font stacks on the card.
|
|
109
109
|
|
|
@@ -112,43 +112,49 @@ Do not put `theme`, colors, px, or font stacks on the card.
|
|
|
112
112
|
| `type` | Required fields | Optional |
|
|
113
113
|
|---|---|---|
|
|
114
114
|
| `Text` | `text` | `textStyle`: `caption` \| `body` \| `headline`; `tone` |
|
|
115
|
-
| `Image` | `url`, `alt` | |
|
|
116
|
-
| `ImageSet` | `images[]` (`url`, `alt`) | |
|
|
117
|
-
| `FactSet` | `facts[]` (`title`, `value`) | |
|
|
115
|
+
| `Image` | `url`, `alt` | `aspect`: `video` (default) \| `square` |
|
|
116
|
+
| `ImageSet` | `images[]` (`url`, `alt`) | 2 and 4 images are two columns. 3 puts the first image across the top. 5 puts the third image across the middle |
|
|
117
|
+
| `FactSet` | `facts[]` (`title`, `value`) | `progress`: `{ label?, value, maxValue?, variant?, color? }`. `variant` defaults to `linear`, `color` to `success` |
|
|
118
118
|
| `Container` | `items[]` | `tone` |
|
|
119
|
-
| `ColumnSet` | `columns[]` (`items`, `width?`: `auto` \| `stretch`) | 2–3 columns |
|
|
119
|
+
| `ColumnSet` | `columns[]` (`items`, `width?`: `auto` \| `stretch`) | 2–3 columns. When every column has the same number of items, items at the same index share a row. `Input.Toggle` and `Input.Checkbox` center in that row |
|
|
120
120
|
| `Table` | `columns[]` (`title`), `rows` (string[][]) | |
|
|
121
|
-
| `Media` | `url` | `mediaType`: `video` \| `audio`; `poster`; `title
|
|
121
|
+
| `Media` | `url` | `mediaType`: `video` \| `audio`; `poster`; `title`. Renders the feed video or audio player |
|
|
122
122
|
| `Html` | `title`, `content` | sandbox is host-owned, not configurable |
|
|
123
|
-
| `File` | `title`, `src` |
|
|
124
|
-
| `
|
|
125
|
-
| `
|
|
123
|
+
| `File` | `title`, `src` | `size` display string. Attachment row, not a link. The host menu opens or downloads `src` |
|
|
124
|
+
| `Note` | `text` | `label` (default `Notes:`); `icon` (default `sticky_note_2`). A sticky note, not a status message |
|
|
125
|
+
| `Notification` | `message` | `OrNotificationV3`. `variant`: `info` (default) \| `success` \| `warning` \| `error`; `disableClose` (default false) |
|
|
126
|
+
| `Skill` | | `skill`: `{ id, name, image, domain }`. Put announcement copy in a sibling `Text`. `text` and `startSkillLabel` on this element still render |
|
|
127
|
+
| `ActionSet` | `actions[]` | max 5. Action `variant`, `color`, `disabled`, `icon`. `style` still accepted |
|
|
126
128
|
| `Badge` | `text` | `tone` |
|
|
127
129
|
| `Icon` | `icon` | Material icon name |
|
|
128
|
-
| `Progress` | `value` | `
|
|
130
|
+
| `Progress` | `value` | `OrProgressV3`. `maxValue` (default 100); `label` (label slot); `variant`: `linear` \| `circle` (the library `type`); `color`; `precision`; `loading`. `max` and `tone` still accepted |
|
|
129
131
|
|
|
130
132
|
`tone`: `default` \| `emphasis` \| `success` \| `warning` \| `attention`.
|
|
131
133
|
|
|
132
134
|
## Inputs
|
|
133
135
|
|
|
134
|
-
Every input needs `name` (key in the collected `inputs` map).
|
|
136
|
+
Every input needs `name` (key in the collected `inputs` map). Text, number, choice, date, toggle, checkbox, and location inputs also take `label`, `hint`, `error` (`errorMessage` still accepted), `required`, and `disabled`. `Input.Slider`, `Input.Range`, and `Input.Rating` do not: those controls have no label.
|
|
135
137
|
|
|
136
138
|
| `type` | Value | Extra |
|
|
137
139
|
|---|---|---|
|
|
138
140
|
| `Input.Text` | string | `placeholder`, `multiline`, `rows`, `maxLength`, `style`: `text` \| `email` \| `url` \| `tel` \| `password` |
|
|
141
|
+
| `Input.Textarea` | string | `placeholder`, `rows`, `maxLength` |
|
|
139
142
|
| `Input.Number` | number | `placeholder`, `min`, `max`, `step` |
|
|
140
143
|
| `Input.Toggle` | boolean | switch |
|
|
141
144
|
| `Input.Checkbox` | boolean | single checkbox |
|
|
142
|
-
| `Input.
|
|
145
|
+
| `Input.Select` | string or string[] | `OrSelectV3`. `options[]` (`label`, `value`, `disabled?`); `multiple`; `enableSearch`; `enableClear`; `placeholder` |
|
|
146
|
+
| `Input.RadioGroup` | string | `OrRadioGroupV3`. `options[]`; `direction`: `vertical` \| `horizontal`; `readonly` |
|
|
147
|
+
| `Input.CheckboxGroup` | string[] | `OrCheckboxGroupV3`. `options[]`; `direction`: `vertical` \| `horizontal`; `readonly` |
|
|
148
|
+
| `Input.ChoiceSet` | string or string[] | Deprecated. Still validates. Prefer `Input.Select`, `Input.RadioGroup`, or `Input.CheckboxGroup` |
|
|
143
149
|
| `Input.Date` | `YYYY-MM-DD` | |
|
|
144
150
|
| `Input.Time` | `HH:mm` | |
|
|
145
151
|
| `Input.DateTime` | ISO datetime | |
|
|
146
|
-
| `Input.Slider` | number | `
|
|
147
|
-
| `Input.Range` | `[from, to]` | `
|
|
148
|
-
| `Input.Rating` | number | |
|
|
152
|
+
| `Input.Slider` | number | `OrSliderV3`. `minValue`, `maxValue`, `step`, `breakpoints`, `color`: `primary` \| `secondary`, `orientation`: `horizontal` \| `horizontal-reversed` \| `vertical` \| `vertical-reversed`. `min` and `max` still accepted |
|
|
153
|
+
| `Input.Range` | `[from, to]` | `OrRangeSliderV3`. Same props as `Input.Slider` |
|
|
154
|
+
| `Input.Rating` | number | `OrRatingV3`. `variant`: `default` \| `fitted`; `readonly` |
|
|
149
155
|
| `Input.Location` | `{ address?, lat?, lng? }` | `placeholder`, `includeCoordinates` |
|
|
150
156
|
|
|
151
|
-
|
|
157
|
+
Use `Input.Select` for a dropdown, `Input.RadioGroup` for one choice shown as radios, and `Input.CheckboxGroup` for several choices shown as checkboxes. Their list is `options`. `Input.ChoiceSet` still validates and still uses `choices`: default is a select, `style: "expanded"` is radios, and `style: "expanded"` with `multiple` is checkboxes.
|
|
152
158
|
|
|
153
159
|
`Input.Location` is address text plus optional lat/lng. It is not a map.
|
|
154
160
|
|
|
@@ -159,7 +165,8 @@ ChoiceSet: `compact` / default → select; `filtered` → searchable select; `ex
|
|
|
159
165
|
"type": "Action",
|
|
160
166
|
"verb": "submit",
|
|
161
167
|
"title": "Send",
|
|
162
|
-
"
|
|
168
|
+
"variant": "contained",
|
|
169
|
+
"color": "primary"
|
|
163
170
|
}
|
|
164
171
|
```
|
|
165
172
|
|
|
@@ -177,7 +184,7 @@ Closed verbs:
|
|
|
177
184
|
| `toggle-visibility` | `targetIds` (required) | Flip `id`s (respects initial `isVisible`) |
|
|
178
185
|
| `show-card` | `card` (required, a full `IdwCard`) | Expand a nested card |
|
|
179
186
|
|
|
180
|
-
`
|
|
187
|
+
`variant`: `contained` \| `outlined` \| `text`. `color`: `primary` \| `danger`. Optional `disabled`, `icon` (Material icon name, rendered inside the button), and `data` (passed through to the host). `style`: `default` \| `primary` \| `destructive` still validates: `default` and `primary` map to outlined/contained primary, `destructive` maps to outlined danger. Explicit `variant` and `color` win.
|
|
181
188
|
|
|
182
189
|
The host executes the side effect. You only declare the verb. On `approve` / `reject` / `submit`, the renderer attaches `inputs: { [name]: value }`.
|
|
183
190
|
|
|
@@ -225,25 +232,23 @@ After bind, the result must still be a valid `IdwCard`.
|
|
|
225
232
|
"body": [
|
|
226
233
|
{ "type": "Text", "text": "How did this go?", "textStyle": "headline" },
|
|
227
234
|
{
|
|
228
|
-
"type": "Input.
|
|
235
|
+
"type": "Input.RadioGroup",
|
|
229
236
|
"name": "outcome",
|
|
230
237
|
"label": "Outcome",
|
|
231
238
|
"required": true,
|
|
232
|
-
"
|
|
233
|
-
|
|
234
|
-
{ "
|
|
235
|
-
{ "title": "Blocked", "value": "blocked" }
|
|
239
|
+
"options": [
|
|
240
|
+
{ "label": "Done", "value": "done" },
|
|
241
|
+
{ "label": "Blocked", "value": "blocked" }
|
|
236
242
|
]
|
|
237
243
|
},
|
|
238
244
|
{
|
|
239
|
-
"type": "Input.
|
|
245
|
+
"type": "Input.Textarea",
|
|
240
246
|
"name": "notes",
|
|
241
|
-
"label": "Notes"
|
|
242
|
-
"multiline": true
|
|
247
|
+
"label": "Notes"
|
|
243
248
|
}
|
|
244
249
|
],
|
|
245
250
|
"actions": [
|
|
246
|
-
{ "type": "Action", "verb": "submit", "title": "Send", "
|
|
251
|
+
{ "type": "Action", "verb": "submit", "title": "Send", "variant": "contained", "color": "primary" }
|
|
247
252
|
]
|
|
248
253
|
}
|
|
249
254
|
```
|
|
@@ -271,7 +276,7 @@ After bind, the result must still be a valid `IdwCard`.
|
|
|
271
276
|
- `type` / `schema` / `version` are exactly `IdwCard` / `idw.card` / `1.0`
|
|
272
277
|
- No Adaptive Cards type names or action types
|
|
273
278
|
- No theme, colors, or px
|
|
274
|
-
- Inputs have unique `name`s; required fields have `
|
|
279
|
+
- Inputs have unique `name`s; required fields have `error` when the default is not enough
|
|
275
280
|
- Action verbs are from the closed list; `open-url` / `start-skill` / `toggle-visibility` / `show-card` have their extra fields
|
|
276
281
|
- URLs are relative or `http(s)`
|
|
277
282
|
- Body ≤ 64, nesting ≤ 3, actions ≤ 5, columns 2–3
|