@assistant-ui/react-generative-ui 0.0.19 → 0.0.20

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.
Files changed (137) hide show
  1. package/dist/JSONGenerativeUI.client.d.ts +14 -15
  2. package/dist/JSONGenerativeUI.client.d.ts.map +1 -1
  3. package/dist/JSONGenerativeUI.client.js +28 -8
  4. package/dist/JSONGenerativeUI.client.js.map +1 -1
  5. package/dist/JSONGenerativeUI.server.d.ts +5 -7
  6. package/dist/JSONGenerativeUI.server.d.ts.map +1 -1
  7. package/dist/JSONGenerativeUI.shared.d.ts +35 -36
  8. package/dist/JSONGenerativeUI.shared.d.ts.map +1 -1
  9. package/dist/a2ui/convert.d.ts +7 -7
  10. package/dist/a2ui/convert.d.ts.map +1 -1
  11. package/dist/a2ui/convert.js +115 -16
  12. package/dist/a2ui/convert.js.map +1 -1
  13. package/dist/a2ui/reducer.d.ts +1 -3
  14. package/dist/a2ui/reducer.d.ts.map +1 -1
  15. package/dist/a2ui/reducer.js +8 -0
  16. package/dist/a2ui/reducer.js.map +1 -1
  17. package/dist/a2ui/snapshot.d.ts +3 -0
  18. package/dist/a2ui/snapshot.d.ts.map +1 -0
  19. package/dist/a2ui/snapshot.js +33 -0
  20. package/dist/a2ui/snapshot.js.map +1 -0
  21. package/dist/a2ui/types.d.ts +50 -40
  22. package/dist/a2ui/types.d.ts.map +1 -1
  23. package/dist/a2ui/types.js.map +1 -1
  24. package/dist/a2ui.d.ts +5 -4
  25. package/dist/a2ui.d.ts.map +1 -0
  26. package/dist/a2ui.js +2 -1
  27. package/dist/actionRegistry.d.ts +12 -14
  28. package/dist/actionRegistry.d.ts.map +1 -1
  29. package/dist/actionRegistry.js.map +1 -1
  30. package/dist/buildPresentParameters.d.ts +2 -4
  31. package/dist/buildPresentParameters.d.ts.map +1 -1
  32. package/dist/buildPresentParameters.js +16 -4
  33. package/dist/buildPresentParameters.js.map +1 -1
  34. package/dist/constants.d.ts +0 -2
  35. package/dist/constants.d.ts.map +1 -1
  36. package/dist/convert/boundSpec.d.ts +0 -2
  37. package/dist/convert/boundSpec.d.ts.map +1 -1
  38. package/dist/convert/copyBounded.d.ts +2 -4
  39. package/dist/convert/copyBounded.d.ts.map +1 -1
  40. package/dist/convert/isElement.d.ts +1 -3
  41. package/dist/convert/isElement.d.ts.map +1 -1
  42. package/dist/convert/takeRun.d.ts +3 -5
  43. package/dist/convert/takeRun.d.ts.map +1 -1
  44. package/dist/defineGenerativeComponents.d.ts +1 -3
  45. package/dist/defineGenerativeComponents.d.ts.map +1 -1
  46. package/dist/generativeUIToJSX.d.ts +4 -6
  47. package/dist/generativeUIToJSX.d.ts.map +1 -1
  48. package/dist/index.d.ts +3 -13
  49. package/dist/index.d.ts.map +1 -0
  50. package/dist/index.server.d.ts +3 -13
  51. package/dist/index.server.d.ts.map +1 -0
  52. package/dist/index.shared.d.ts +15 -11
  53. package/dist/index.shared.d.ts.map +1 -0
  54. package/dist/ir.d.ts +17 -19
  55. package/dist/ir.d.ts.map +1 -1
  56. package/dist/renderGenerativeUI.d.ts +2 -4
  57. package/dist/renderGenerativeUI.d.ts.map +1 -1
  58. package/dist/scopeSchema.d.ts +6 -0
  59. package/dist/scopeSchema.d.ts.map +1 -0
  60. package/dist/scopeSchema.js +56 -0
  61. package/dist/scopeSchema.js.map +1 -0
  62. package/dist/slack/constants.d.ts +8 -9
  63. package/dist/slack/constants.d.ts.map +1 -1
  64. package/dist/slack/decodeBlockAction.d.ts +1 -3
  65. package/dist/slack/decodeBlockAction.d.ts.map +1 -1
  66. package/dist/slack/fromSlackBlocks.d.ts +1 -3
  67. package/dist/slack/fromSlackBlocks.d.ts.map +1 -1
  68. package/dist/slack/toSlackBlocks.d.ts +1 -3
  69. package/dist/slack/toSlackBlocks.d.ts.map +1 -1
  70. package/dist/slack/toSlackBlocks.js +1 -1
  71. package/dist/slack/types.d.ts +78 -80
  72. package/dist/slack/types.d.ts.map +1 -1
  73. package/dist/slack.d.ts +5 -5
  74. package/dist/slack.d.ts.map +1 -0
  75. package/dist/teams/constants.d.ts +1 -3
  76. package/dist/teams/constants.d.ts.map +1 -1
  77. package/dist/teams/decodeSubmitData.d.ts +1 -3
  78. package/dist/teams/decodeSubmitData.d.ts.map +1 -1
  79. package/dist/teams/toAdaptiveCard.d.ts +4 -6
  80. package/dist/teams/toAdaptiveCard.d.ts.map +1 -1
  81. package/dist/teams/toTeamsAttachments.d.ts +1 -3
  82. package/dist/teams/toTeamsAttachments.d.ts.map +1 -1
  83. package/dist/teams/types.d.ts +108 -109
  84. package/dist/teams/types.d.ts.map +1 -1
  85. package/dist/teams.d.ts +5 -5
  86. package/dist/teams.d.ts.map +1 -0
  87. package/dist/types.d.ts +36 -37
  88. package/dist/types.d.ts.map +1 -1
  89. package/dist/vocabulary/alert.d.ts +21 -23
  90. package/dist/vocabulary/alert.d.ts.map +1 -1
  91. package/dist/vocabulary/collectFormValues.d.ts +8 -10
  92. package/dist/vocabulary/collectFormValues.d.ts.map +1 -1
  93. package/dist/vocabulary/data.d.ts +45 -47
  94. package/dist/vocabulary/data.d.ts.map +1 -1
  95. package/dist/vocabulary/dispatch.d.ts +2 -4
  96. package/dist/vocabulary/dispatch.d.ts.map +1 -1
  97. package/dist/vocabulary/fact.d.ts +8 -10
  98. package/dist/vocabulary/fact.d.ts.map +1 -1
  99. package/dist/vocabulary/form.d.ts +7 -9
  100. package/dist/vocabulary/form.d.ts.map +1 -1
  101. package/dist/vocabulary/icon.d.ts +37 -39
  102. package/dist/vocabulary/icon.d.ts.map +1 -1
  103. package/dist/vocabulary/index.d.ts +1 -3
  104. package/dist/vocabulary/index.d.ts.map +1 -1
  105. package/dist/vocabulary/interactive.d.ts +87 -86
  106. package/dist/vocabulary/interactive.d.ts.map +1 -1
  107. package/dist/vocabulary/interactive.js +4 -4
  108. package/dist/vocabulary/interactive.js.map +1 -1
  109. package/dist/vocabulary/layout.d.ts +75 -77
  110. package/dist/vocabulary/layout.d.ts.map +1 -1
  111. package/dist/vocabulary/list.d.ts +10 -12
  112. package/dist/vocabulary/list.d.ts.map +1 -1
  113. package/dist/vocabulary/media.d.ts +21 -23
  114. package/dist/vocabulary/media.d.ts.map +1 -1
  115. package/dist/vocabulary/text.d.ts +53 -55
  116. package/dist/vocabulary/text.d.ts.map +1 -1
  117. package/dist/vocabulary/toTextContent.d.ts +0 -2
  118. package/dist/vocabulary/toTextContent.d.ts.map +1 -1
  119. package/package.json +4 -4
  120. package/src/JSONGenerativeUI.client.tsx +57 -15
  121. package/src/JSONGenerativeUI.test.tsx +298 -4
  122. package/src/a2ui/convert.test.ts +496 -0
  123. package/src/a2ui/convert.ts +170 -25
  124. package/src/a2ui/reducer.test.ts +18 -0
  125. package/src/a2ui/reducer.ts +16 -0
  126. package/src/a2ui/snapshot.test.ts +52 -0
  127. package/src/a2ui/snapshot.ts +52 -0
  128. package/src/a2ui/types.ts +16 -0
  129. package/src/a2ui.ts +2 -0
  130. package/src/actionRegistry.ts +5 -5
  131. package/src/buildPresentParameters.test.ts +246 -0
  132. package/src/buildPresentParameters.ts +18 -3
  133. package/src/scopeSchema.test.ts +72 -0
  134. package/src/scopeSchema.ts +71 -0
  135. package/src/vocabulary/interactive.dispatch.test.tsx +17 -3
  136. package/src/vocabulary/interactive.test.tsx +19 -0
  137. package/src/vocabulary/interactive.tsx +4 -1
@@ -1,47 +1,46 @@
1
- //#region src/teams/types.d.ts
2
1
  /** A TextBlock size, from Adaptive Card's closed size enum. */
3
2
  export type TeamsTextSize = "small" | "medium" | "large" | "extraLarge";
4
3
  /** A Container's style, driving its accent color in Teams' renderer. */
5
4
  export type TeamsContainerStyle = "default" | "emphasis" | "good" | "attention" | "warning" | "accent";
6
5
  /** A run of wrapped text. Every TextBlock we emit sets `wrap: true`. */
7
6
  export interface TeamsTextBlock {
8
- readonly type: "TextBlock";
9
- readonly text: string;
10
- readonly wrap: true;
11
- readonly size?: TeamsTextSize;
12
- readonly weight?: "bolder";
13
- readonly style?: "heading";
14
- readonly isSubtle?: true;
15
- readonly separator?: true;
16
- readonly spacing?: "large";
7
+ readonly type: "TextBlock";
8
+ readonly text: string;
9
+ readonly wrap: true;
10
+ readonly size?: TeamsTextSize;
11
+ readonly weight?: "bolder";
12
+ readonly style?: "heading";
13
+ readonly isSubtle?: true;
14
+ readonly separator?: true;
15
+ readonly spacing?: "large";
17
16
  }
18
17
  /** An image element. */
19
18
  export interface TeamsImage {
20
- readonly type: "Image";
21
- readonly url: string;
22
- readonly altText?: string;
23
- readonly size?: "small" | "medium" | "large";
24
- readonly separator?: true;
25
- readonly spacing?: "large";
19
+ readonly type: "Image";
20
+ readonly url: string;
21
+ readonly altText?: string;
22
+ readonly size?: "small" | "medium" | "large";
23
+ readonly separator?: true;
24
+ readonly spacing?: "large";
26
25
  }
27
26
  /** One label/value entry inside a {@link TeamsFactSet}. */
28
27
  export interface TeamsFact {
29
- readonly title: string;
30
- readonly value: string;
28
+ readonly title: string;
29
+ readonly value: string;
31
30
  }
32
31
  /** A set of label/value facts, rendered as an aligned two-column list. */
33
32
  export interface TeamsFactSet {
34
- readonly type: "FactSet";
35
- readonly facts: readonly TeamsFact[];
36
- readonly separator?: true;
37
- readonly spacing?: "large";
33
+ readonly type: "FactSet";
34
+ readonly facts: readonly TeamsFact[];
35
+ readonly separator?: true;
36
+ readonly spacing?: "large";
38
37
  }
39
38
  /** The `aui` envelope nested inside every {@link TeamsSubmitAction}'s `data`. */
40
39
  export interface TeamsSubmitData {
41
- readonly aui: {
42
- readonly type: string;
43
- readonly payload?: Record<string, unknown>;
44
- };
40
+ readonly aui: {
41
+ readonly type: string;
42
+ readonly payload?: Record<string, unknown>;
43
+ };
45
44
  }
46
45
  /**
47
46
  * A submit action. `data` carries the resume payload under an `aui` key so
@@ -49,128 +48,128 @@ export interface TeamsSubmitData {
49
48
  * a Teams bot receives, alongside whatever other named inputs shared the card.
50
49
  */
51
50
  export interface TeamsSubmitAction {
52
- readonly type: "Action.Submit";
53
- readonly title: string;
54
- readonly data: TeamsSubmitData;
55
- readonly mode?: "secondary";
51
+ readonly type: "Action.Submit";
52
+ readonly title: string;
53
+ readonly data: TeamsSubmitData;
54
+ readonly mode?: "secondary";
56
55
  }
57
56
  /** The action shape accepted at the card's top-level `actions` field. */
58
57
  export type TeamsCardAction = TeamsSubmitAction;
59
58
  /** A bar of submit actions, rendered inline in the body flow. */
60
59
  export interface TeamsActionSet {
61
- readonly type: "ActionSet";
62
- readonly actions: readonly TeamsSubmitAction[];
63
- readonly separator?: true;
64
- readonly spacing?: "large";
60
+ readonly type: "ActionSet";
61
+ readonly actions: readonly TeamsSubmitAction[];
62
+ readonly separator?: true;
63
+ readonly spacing?: "large";
65
64
  }
66
65
  /** A bordered grouping container. */
67
66
  export interface TeamsContainer {
68
- readonly type: "Container";
69
- readonly style?: TeamsContainerStyle;
70
- readonly items: readonly TeamsCardElement[];
71
- readonly selectAction?: TeamsSubmitAction;
72
- readonly separator?: true;
73
- readonly spacing?: "large";
67
+ readonly type: "Container";
68
+ readonly style?: TeamsContainerStyle;
69
+ readonly items: readonly TeamsCardElement[];
70
+ readonly selectAction?: TeamsSubmitAction;
71
+ readonly separator?: true;
72
+ readonly spacing?: "large";
74
73
  }
75
74
  /** One column inside a {@link TeamsColumnSet}. */
76
75
  export interface TeamsColumn {
77
- readonly type: "Column";
78
- readonly width: "auto";
79
- readonly items: readonly TeamsCardElement[];
76
+ readonly type: "Column";
77
+ readonly width: "auto";
78
+ readonly items: readonly TeamsCardElement[];
80
79
  }
81
80
  /** A horizontal row of columns. */
82
81
  export interface TeamsColumnSet {
83
- readonly type: "ColumnSet";
84
- readonly columns: readonly TeamsColumn[];
85
- readonly separator?: true;
86
- readonly spacing?: "large";
82
+ readonly type: "ColumnSet";
83
+ readonly columns: readonly TeamsColumn[];
84
+ readonly separator?: true;
85
+ readonly spacing?: "large";
87
86
  }
88
87
  /** One selectable choice inside a {@link TeamsInputChoiceSet}. */
89
88
  export interface TeamsInputChoice {
90
- readonly title: string;
91
- readonly value: string;
89
+ readonly title: string;
90
+ readonly value: string;
92
91
  }
93
92
  /** A dropdown (`compact`) or radio group (`expanded`) input. */
94
93
  export interface TeamsInputChoiceSet {
95
- readonly type: "Input.ChoiceSet";
96
- readonly id: string;
97
- readonly style: "compact" | "expanded";
98
- readonly choices: readonly TeamsInputChoice[];
99
- readonly placeholder?: string;
100
- readonly label?: string;
101
- readonly value?: string;
102
- readonly separator?: true;
103
- readonly spacing?: "large";
94
+ readonly type: "Input.ChoiceSet";
95
+ readonly id: string;
96
+ readonly style: "compact" | "expanded";
97
+ readonly choices: readonly TeamsInputChoice[];
98
+ readonly placeholder?: string;
99
+ readonly label?: string;
100
+ readonly value?: string;
101
+ readonly separator?: true;
102
+ readonly spacing?: "large";
104
103
  }
105
104
  /** A checkbox-shaped boolean input. */
106
105
  export interface TeamsInputToggle {
107
- readonly type: "Input.Toggle";
108
- readonly id: string;
109
- readonly title: string;
110
- readonly value: "true" | "false";
111
- readonly valueOn: "true";
112
- readonly valueOff: "false";
113
- readonly separator?: true;
114
- readonly spacing?: "large";
106
+ readonly type: "Input.Toggle";
107
+ readonly id: string;
108
+ readonly title: string;
109
+ readonly value: "true" | "false";
110
+ readonly valueOn: "true";
111
+ readonly valueOff: "false";
112
+ readonly separator?: true;
113
+ readonly spacing?: "large";
115
114
  }
116
115
  /** A single or multi-line text input. */
117
116
  export interface TeamsInputText {
118
- readonly type: "Input.Text";
119
- readonly id: string;
120
- readonly label?: string;
121
- readonly placeholder?: string;
122
- readonly isMultiline?: true;
123
- readonly separator?: true;
124
- readonly spacing?: "large";
117
+ readonly type: "Input.Text";
118
+ readonly id: string;
119
+ readonly label?: string;
120
+ readonly placeholder?: string;
121
+ readonly isMultiline?: true;
122
+ readonly separator?: true;
123
+ readonly spacing?: "large";
125
124
  }
126
125
  /** A date input, restricted to `YYYY-MM-DD` values. */
127
126
  export interface TeamsInputDate {
128
- readonly type: "Input.Date";
129
- readonly id: string;
130
- readonly label?: string;
131
- readonly value?: string;
132
- readonly min?: string;
133
- readonly max?: string;
134
- readonly separator?: true;
135
- readonly spacing?: "large";
127
+ readonly type: "Input.Date";
128
+ readonly id: string;
129
+ readonly label?: string;
130
+ readonly value?: string;
131
+ readonly min?: string;
132
+ readonly max?: string;
133
+ readonly separator?: true;
134
+ readonly spacing?: "large";
136
135
  }
137
136
  /** One cell inside a {@link TeamsTableRow}. */
138
137
  export interface TeamsTableCell {
139
- readonly type: "TableCell";
140
- readonly items: readonly TeamsTextBlock[];
138
+ readonly type: "TableCell";
139
+ readonly items: readonly TeamsTextBlock[];
141
140
  }
142
141
  /** One row inside a {@link TeamsTable}. */
143
142
  export interface TeamsTableRow {
144
- readonly type: "TableRow";
145
- readonly cells: readonly TeamsTableCell[];
143
+ readonly type: "TableRow";
144
+ readonly cells: readonly TeamsTableCell[];
146
145
  }
147
146
  /** A column width definition inside a {@link TeamsTable}. */
148
147
  export interface TeamsTableColumnDefinition {
149
- readonly width: 1;
148
+ readonly width: 1;
150
149
  }
151
150
  /** A native table. `rows[0]` is the header row when `firstRowAsHeaders` is true. */
152
151
  export interface TeamsTable {
153
- readonly type: "Table";
154
- readonly firstRowAsHeaders: boolean;
155
- readonly columns: readonly TeamsTableColumnDefinition[];
156
- readonly rows: readonly TeamsTableRow[];
157
- readonly separator?: true;
158
- readonly spacing?: "large";
152
+ readonly type: "Table";
153
+ readonly firstRowAsHeaders: boolean;
154
+ readonly columns: readonly TeamsTableColumnDefinition[];
155
+ readonly rows: readonly TeamsTableRow[];
156
+ readonly separator?: true;
157
+ readonly spacing?: "large";
159
158
  }
160
159
  /** A body element emitted by {@link toAdaptiveCard}. */
161
160
  export type TeamsCardElement = TeamsTextBlock | TeamsImage | TeamsFactSet | TeamsActionSet | TeamsContainer | TeamsColumnSet | TeamsInputChoiceSet | TeamsInputToggle | TeamsInputText | TeamsInputDate | TeamsTable;
162
161
  /** A Microsoft Teams Adaptive Card, pinned to schema version 1.5 (the Teams desktop/web cap; mobile clients cap at 1.2). */
163
162
  export interface TeamsAdaptiveCard {
164
- readonly $schema: "http://adaptivecards.io/schemas/adaptive-card.json";
165
- readonly type: "AdaptiveCard";
166
- readonly version: "1.5";
167
- readonly body: readonly TeamsCardElement[];
168
- readonly actions: readonly TeamsCardAction[];
163
+ readonly $schema: "http://adaptivecards.io/schemas/adaptive-card.json";
164
+ readonly type: "AdaptiveCard";
165
+ readonly version: "1.5";
166
+ readonly body: readonly TeamsCardElement[];
167
+ readonly actions: readonly TeamsCardAction[];
169
168
  }
170
169
  /** An Adaptive Card wrapped as a bot-framework message attachment. */
171
170
  export interface TeamsCardAttachment {
172
- readonly contentType: "application/vnd.microsoft.card.adaptive";
173
- readonly content: TeamsAdaptiveCard;
171
+ readonly contentType: "application/vnd.microsoft.card.adaptive";
172
+ readonly content: TeamsAdaptiveCard;
174
173
  }
175
174
  /**
176
175
  * A non-fatal note reported during Teams conversion.
@@ -183,22 +182,22 @@ export interface TeamsCardAttachment {
183
182
  * column count.
184
183
  */
185
184
  export interface TeamsConversionWarning {
186
- readonly code: "clamped" | "dropped" | "fallback" | "advisory";
187
- readonly component: string;
188
- readonly detail: string;
185
+ readonly code: "clamped" | "dropped" | "fallback" | "advisory";
186
+ readonly component: string;
187
+ readonly detail: string;
189
188
  }
190
189
  /** Options accepted by {@link toAdaptiveCard} and {@link toTeamsAttachments}. Reserved for future extension; no options are currently defined. */
191
- export interface ToAdaptiveCardOptions {}
190
+ export interface ToAdaptiveCardOptions {
191
+ }
192
192
  /** The card and non-fatal warnings produced by {@link toAdaptiveCard}. */
193
193
  export interface AdaptiveCardResult {
194
- readonly card: TeamsAdaptiveCard;
195
- readonly warnings: TeamsConversionWarning[];
194
+ readonly card: TeamsAdaptiveCard;
195
+ readonly warnings: TeamsConversionWarning[];
196
196
  }
197
197
  /** The attachments and non-fatal warnings produced by {@link toTeamsAttachments}. */
198
198
  export interface TeamsAttachmentsResult {
199
- readonly attachments: TeamsCardAttachment[];
200
- readonly attachmentLayout?: "carousel";
201
- readonly warnings: TeamsConversionWarning[];
199
+ readonly attachments: TeamsCardAttachment[];
200
+ readonly attachmentLayout?: "carousel";
201
+ readonly warnings: TeamsConversionWarning[];
202
202
  }
203
- //#endregion
204
203
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","names":[],"sources":["../../src/teams/types.ts"],"mappings":";;YACY;;YAGA;;iBASK;WACN;WACA;WACA;WACA,OAAO;WACP;WACA;WACA;WACA;WACA;;;iBAIM;WACN;WACA;WACA;WACA;WACA;WACA;;;iBAIM;WACN;WACA;;;iBAIM;WACN;WACA,gBAAgB;WAChB;WACA;;;iBAIM;WACN;aACE;aACA,UAAU;;;;;;;;iBASN;WACN;WACA;WACA,MAAM;WACN;;;YAIC,kBAAkB;;iBAGb;WACN;WACA,kBAAkB;WAClB;WACA;;;iBAIM;WACN;WACA,QAAQ;WACR,gBAAgB;WAChB,eAAe;WACf;WACA;;;iBAIM;WACN;WACA;WACA,gBAAgB;;;iBAIV;WACN;WACA,kBAAkB;WAClB;WACA;;;iBAIM;WACN;WACA;;;iBAIM;WACN;WACA;WACA;WACA,kBAAkB;WAClB;WACA;WACA;WACA;WACA;;;iBAIM;WACN;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;;iBAIM;WACN;WACA;WACA;WACA;WACA;WACA;WACA;;;iBAIM;WACN;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;;iBAIM;WACN;WACA,gBAAgB;;;iBAIV;WACN;WACA,gBAAgB;;;iBAIV;WACN;;;iBAIM;WACN;WACA;WACA,kBAAkB;WAClB,eAAe;WACf;WACA;;;YAIC,mBACR,iBACA,aACA,eACA,iBACA,iBACA,iBACA,sBACA,mBACA,iBACA,iBACA;;iBAGa;WACN;WACA;WACA;WACA,eAAe;WACf,kBAAkB;;;iBAIZ;WACN;WACA,SAAS;;;;;;;;;;;;iBAaH;WACN;WACA;WACA;;;iBAIM;;iBAGA;WACN,MAAM;WACN,UAAU;;;iBAIJ;WACN,aAAa;WAC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B;IAClC,QAAQ,CAAC,WAAW,EAAE,yCAAyC,CAAC;IAChE,QAAQ,CAAC,OAAO,EAAE,iBAAiB,CAAC;CACrC;AAED;;;;;;;;;GASG;AACH,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,IAAI,EAAE,SAAS,GAAG,SAAS,GAAG,UAAU,GAAG,UAAU,CAAC;IAC/D,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAED,kJAAkJ;AAClJ,MAAM,WAAW,qBAAqB;CAAG;AAEzC,0EAA0E;AAC1E,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,IAAI,EAAE,iBAAiB,CAAC;IACjC,QAAQ,CAAC,QAAQ,EAAE,sBAAsB,EAAE,CAAC;CAC7C;AAED,qFAAqF;AACrF,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,WAAW,EAAE,mBAAmB,EAAE,CAAC;IAC5C,QAAQ,CAAC,gBAAgB,CAAC,EAAE,UAAU,CAAC;IACvC,QAAQ,CAAC,QAAQ,EAAE,sBAAsB,EAAE,CAAC;CAC7C"}
package/dist/teams.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { decodeSubmitData } from "./teams/decodeSubmitData.js";
2
- import { AdaptiveCardResult, TeamsActionSet, TeamsAdaptiveCard, TeamsAttachmentsResult, TeamsCardAction, TeamsCardAttachment, TeamsCardElement, TeamsColumn, TeamsColumnSet, TeamsContainer, TeamsContainerStyle, TeamsConversionWarning, TeamsFact, TeamsFactSet, TeamsImage, TeamsInputChoice, TeamsInputChoiceSet, TeamsInputDate, TeamsInputText, TeamsInputToggle, TeamsSubmitAction, TeamsSubmitData, TeamsTable, TeamsTableCell, TeamsTableColumnDefinition, TeamsTableRow, TeamsTextBlock, TeamsTextSize, ToAdaptiveCardOptions } from "./teams/types.js";
3
- import { toAdaptiveCard } from "./teams/toAdaptiveCard.js";
4
- import { toTeamsAttachments } from "./teams/toTeamsAttachments.js";
5
- export { type AdaptiveCardResult, type TeamsActionSet, type TeamsAdaptiveCard, type TeamsAttachmentsResult, type TeamsCardAction, type TeamsCardAttachment, type TeamsCardElement, type TeamsColumn, type TeamsColumnSet, type TeamsContainer, type TeamsContainerStyle, type TeamsConversionWarning, type TeamsFact, type TeamsFactSet, type TeamsImage, type TeamsInputChoice, type TeamsInputChoiceSet, type TeamsInputDate, type TeamsInputText, type TeamsInputToggle, type TeamsSubmitAction, type TeamsSubmitData, type TeamsTable, type TeamsTableCell, type TeamsTableColumnDefinition, type TeamsTableRow, type TeamsTextBlock, type TeamsTextSize, type ToAdaptiveCardOptions, decodeSubmitData, toAdaptiveCard, toTeamsAttachments };
1
+ export { decodeSubmitData } from "./teams/decodeSubmitData.js";
2
+ export { toAdaptiveCard } from "./teams/toAdaptiveCard.js";
3
+ export { toTeamsAttachments } from "./teams/toTeamsAttachments.js";
4
+ export type { AdaptiveCardResult, TeamsAdaptiveCard, TeamsActionSet, TeamsAttachmentsResult, TeamsCardAction, TeamsCardAttachment, TeamsCardElement, TeamsColumn, TeamsColumnSet, TeamsContainer, TeamsContainerStyle, TeamsConversionWarning, TeamsFact, TeamsFactSet, TeamsImage, TeamsInputChoice, TeamsInputChoiceSet, TeamsInputDate, TeamsInputText, TeamsInputToggle, TeamsSubmitAction, TeamsSubmitData, TeamsTable, TeamsTableCell, TeamsTableColumnDefinition, TeamsTableRow, TeamsTextBlock, TeamsTextSize, ToAdaptiveCardOptions, } from "./teams/types.js";
5
+ //# sourceMappingURL=teams.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"teams.d.ts","sourceRoot":"","sources":["../src/teams.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,oCAAiC;AAC5D,OAAO,EAAE,cAAc,EAAE,kCAA+B;AACxD,OAAO,EAAE,kBAAkB,EAAE,sCAAmC;AAChE,YAAY,EACV,kBAAkB,EAClB,iBAAiB,EACjB,cAAc,EACd,sBAAsB,EACtB,eAAe,EACf,mBAAmB,EACnB,gBAAgB,EAChB,WAAW,EACX,cAAc,EACd,cAAc,EACd,mBAAmB,EACnB,sBAAsB,EACtB,SAAS,EACT,YAAY,EACZ,UAAU,EACV,gBAAgB,EAChB,mBAAmB,EACnB,cAAc,EACd,cAAc,EACd,gBAAgB,EAChB,iBAAiB,EACjB,eAAe,EACf,UAAU,EACV,cAAc,EACd,0BAA0B,EAC1B,aAAa,EACb,cAAc,EACd,aAAa,EACb,qBAAqB,GACtB,yBAAsB"}
package/dist/types.d.ts CHANGED
@@ -1,7 +1,6 @@
1
- import { Action, NormalizedUIElement } from "./ir.js";
2
- import { ReactNode } from "react";
3
- import { ZodType } from "zod";
4
- //#region src/types.d.ts
1
+ import type { ReactNode } from "react";
2
+ import type { ZodType } from "zod";
3
+ import type { Action, NormalizedUIElement } from "./ir.js";
5
4
  /**
6
5
  * The canonical generative-ui element, normalized from the flat `$type` shape
7
6
  * or the legacy `component` shape (see {@link normalizeUINode}). `children` is
@@ -25,9 +24,9 @@ export type GenerativeUIStatus = "streaming" | "done";
25
24
  export type GenerativeUIDispatch = (action: Action) => unknown;
26
25
  /** The render context threaded through {@link renderGenerativeUI}. */
27
26
  export type GenerativeUIRenderContext = {
28
- /** Whether the tool call's arguments are still streaming or are complete. */
29
- status: GenerativeUIStatus;
30
- dispatch?: GenerativeUIDispatch;
27
+ /** Whether the tool call's arguments are still streaming or are complete. */
28
+ status: GenerativeUIStatus;
29
+ dispatch?: GenerativeUIDispatch;
31
30
  };
32
31
  /**
33
32
  * Props a component's `render` receives: its model props, rendered `children`,
@@ -39,22 +38,22 @@ export type GenerativeUIRenderContext = {
39
38
  * collide with a real `status`/`action`/`dispatch` prop.
40
39
  */
41
40
  type StreamingRenderProps<P> = (Partial<P> & {
42
- children?: ReactNode;
43
- $status: "streaming";
44
- $action?: Action;
45
- $dispatch?: GenerativeUIDispatch;
41
+ children?: ReactNode;
42
+ $status: "streaming";
43
+ $action?: Action;
44
+ $dispatch?: GenerativeUIDispatch;
46
45
  }) | (P & {
47
- children?: ReactNode;
48
- $status: "done";
49
- $action?: Action;
50
- $dispatch?: GenerativeUIDispatch;
46
+ children?: ReactNode;
47
+ $status: "done";
48
+ $action?: Action;
49
+ $dispatch?: GenerativeUIDispatch;
51
50
  });
52
51
  /** Props for a component that only renders once complete — `$status` is always `"done"`. */
53
52
  type StaticRenderProps<P> = P & {
54
- children?: ReactNode;
55
- $status: "done";
56
- $action?: Action;
57
- $dispatch?: GenerativeUIDispatch;
53
+ children?: ReactNode;
54
+ $status: "done";
55
+ $action?: Action;
56
+ $dispatch?: GenerativeUIDispatch;
58
57
  };
59
58
  /**
60
59
  * A component the model is allowed to render, with the schema for its props.
@@ -69,24 +68,24 @@ type StaticRenderProps<P> = P & {
69
68
  * `type` across renders for hook identity to be stable.
70
69
  */
71
70
  export type GenerativeUIComponent<P = any> = {
72
- /** Natural-language description shown to the model when selecting the component. */
73
- description: string;
74
- /** Schema for the props the model must provide. Drives the tool parameters. */
75
- properties: ZodType<P>;
76
- /**
77
- * Render from partially-streamed props. Widened to `boolean | undefined`
78
- * so a non-literal value (e.g. a variable) still resolves to this branch
79
- * cleanly rather than matching neither; the strict `false | undefined`
80
- * branch below is the only one that promises complete props.
81
- */
82
- streamProperties: boolean | undefined;
83
- render: (props: StreamingRenderProps<P>) => ReactNode;
71
+ /** Natural-language description shown to the model when selecting the component. */
72
+ description: string;
73
+ /** Schema for the props the model must provide. Drives the tool parameters. */
74
+ properties: ZodType<P>;
75
+ /**
76
+ * Render from partially-streamed props. Widened to `boolean | undefined`
77
+ * so a non-literal value (e.g. a variable) still resolves to this branch
78
+ * cleanly rather than matching neither; the strict `false | undefined`
79
+ * branch below is the only one that promises complete props.
80
+ */
81
+ streamProperties: boolean | undefined;
82
+ render: (props: StreamingRenderProps<P>) => ReactNode;
84
83
  } | {
85
- description: string;
86
- properties: ZodType<P>;
87
- /** Render only once props are complete (the default). */
88
- streamProperties?: false | undefined;
89
- render: (props: StaticRenderProps<P>) => ReactNode;
84
+ description: string;
85
+ properties: ZodType<P>;
86
+ /** Render only once props are complete (the default). */
87
+ streamProperties?: false | undefined;
88
+ render: (props: StaticRenderProps<P>) => ReactNode;
90
89
  };
91
90
  /**
92
91
  * The consumer-provided allowlist of components the model is permitted to
@@ -96,5 +95,5 @@ export type GenerativeUIComponent<P = any> = {
96
95
  * This registry is the security boundary — any `type` not present is rejected.
97
96
  */
98
97
  export type GenerativeUILibrary = Record<string, GenerativeUIComponent>;
99
- //#endregion
98
+ export {};
100
99
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","names":[],"sources":["../src/types.ts"],"mappings":";;;;;;;;;;;YAWY,sBAAsB;YAEtB,oBAAoB;;;;;;;YAQpB,mBACR,qEAMA;YAEQ,qBAAqB;;YAGrB;;YAGA,wBAAwB,QAAQ;;YAGhC;;EAEV,QAAQ;EACR,WAAW;;;;;;;;;;;KAYR,qBAAqB,MACrB,QAAQ;EACP,WAAW;EACX;EACA,UAAU;EACV,YAAY;MAEb;EACC,WAAW;EACX;EACA,UAAU;EACV,YAAY;;;KAIb,kBAAkB,KAAK;EAC1B,WAAW;EACX;EACA,UAAU;EACV,YAAY;;;;;;;;;;;;;;YAeF,sBAAsB;;EAG5B;;EAEA,YAAY,QAAQ;;;;;;;EAOpB;EACA,SAAS,OAAO,qBAAqB,OAAO;;EAG5C;EACA,YAAY,QAAQ;;EAEpB;EACA,SAAS,OAAO,kBAAkB,OAAO;;;;;;;;;YAUnC,sBAAsB,eAAe"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AACnC,OAAO,KAAK,EAAE,MAAM,EAAE,mBAAmB,EAAE,gBAAa;AAExD;;;;;;GAMG;AACH,MA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oB,CAAC;CAClC,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,qBAAqB,CAAC,CAAC,GAAG,GAAG,IACrC;IACE,oFAAoF;IACpF,WAAW,EAAE,MAAM,CAAC;IACpB,+EAA+E;IAC/E,UAAU,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;IACvB;;;;;OAKG;IACH,gBAAgB,EAAE,OAAO,GAAG,SAAS,CAAC;IACtC,MAAM,EAAE,CAAC,KAAK,EAAE,oBAAoB,CAAC,CAAC,CAAC,KAAK,SAAS,CAAC;CACvD,GACD;IACE,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;IACvB,yDAAyD;IACzD,gBAAgB,CAAC,EAAE,KAAK,GAAG,SAAS,CAAC;IACrC,MAAM,EAAE,CAAC,KAAK,EAAE,iBAAiB,CAAC,CAAC,CAAC,KAAK,SAAS,CAAC;CACpD,CAAC;AAEN;;;;;;GAMG;AACH,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC,MAAM,EAAE,qBAAqB,CAAC,CAAC"}
@@ -1,27 +1,25 @@
1
1
  import { z } from "zod";
2
- //#region src/vocabulary/alert.d.ts
3
2
  export declare const alertVocabulary: {
4
- Alert: {
5
- description: string;
6
- properties: z.ZodObject<{
7
- title: z.ZodOptional<z.ZodString>;
8
- description: z.ZodOptional<z.ZodString>;
9
- tone: z.ZodOptional<z.ZodEnum<{
10
- success: "success";
11
- info: "info";
12
- warning: "warning";
13
- danger: "danger";
14
- }>>;
15
- }, z.core.$strip>;
16
- render: ({ title, description, tone, children }: any) => import("react").JSX.Element;
17
- };
18
- Carousel: {
19
- description: string;
20
- properties: z.ZodObject<{
21
- label: z.ZodOptional<z.ZodString>;
22
- }, z.core.$strip>;
23
- render: ({ label, children }: any) => import("react").JSX.Element;
24
- };
3
+ Alert: {
4
+ description: string;
5
+ properties: z.ZodObject<{
6
+ title: z.ZodOptional<z.ZodString>;
7
+ description: z.ZodOptional<z.ZodString>;
8
+ tone: z.ZodOptional<z.ZodEnum<{
9
+ danger: "danger";
10
+ info: "info";
11
+ success: "success";
12
+ warning: "warning";
13
+ }>>;
14
+ }, z.core.$strip>;
15
+ render: ({ title, description, tone, children }: any) => import("react").JSX.Element;
16
+ };
17
+ Carousel: {
18
+ description: string;
19
+ properties: z.ZodObject<{
20
+ label: z.ZodOptional<z.ZodString>;
21
+ }, z.core.$strip>;
22
+ render: ({ label, children }: any) => import("react").JSX.Element;
23
+ };
25
24
  };
26
- //#endregion
27
25
  //# sourceMappingURL=alert.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"alert.d.ts","names":[],"sources":["../../src/vocabulary/alert.tsx"],"mappings":";;qBAQa"}
1
+ {"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../src/vocabulary/alert.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;CAkEG,CAAC"}
@@ -1,16 +1,15 @@
1
- import { FormEvent } from "react";
2
- //#region src/vocabulary/collectFormValues.d.ts
1
+ import type { FormEvent } from "react";
3
2
  /**
4
3
  * The subset of `HTMLInputElement`/`HTMLSelectElement`/`HTMLTextAreaElement` that {@link collectFormValues} reads. A structural type rather than the DOM interfaces themselves, so a plain object can stand in for a form control in tests.
5
4
  */
6
5
  export type FormControlElementLike = {
7
- readonly name: string;
8
- readonly type: string;
9
- readonly value: string;
10
- readonly checked?: boolean;
11
- readonly disabled: boolean;
12
- readonly hasAttribute: (name: string) => boolean;
13
- readonly matches?: ((selector: string) => boolean) | undefined;
6
+ readonly name: string;
7
+ readonly type: string;
8
+ readonly value: string;
9
+ readonly checked?: boolean;
10
+ readonly disabled: boolean;
11
+ readonly hasAttribute: (name: string) => boolean;
12
+ readonly matches?: ((selector: string) => boolean) | undefined;
14
13
  };
15
14
  /**
16
15
  * Collects a submitted form's named control values into a plain object, keyed by `name`, in document order. Reads each control's live DOM state rather than `FormData`, so a checkbox resolves to its `checked` boolean instead of an on/off string. A radio group resolves to its checked option's `value`, or `undefined` if none is checked. Any other repeated `name` resolves to an array of its controls' values, in document order. Controls without a `name`, that carry `data-aui-generated-name`, or that are effectively disabled, including through an ancestor disabled fieldset outside its first legend, are skipped entirely.
@@ -20,5 +19,4 @@ export declare function collectFormValues(elements: ArrayLike<FormControlElement
20
19
  * Convenience wrapper around {@link collectFormValues} for a native form submit event; the cast from `HTMLFormControlsCollection` to `ArrayLike<FormControlElementLike>` lives here once instead of at every call site.
21
20
  */
22
21
  export declare function collectFormValuesFromEvent(event: FormEvent<HTMLFormElement>): Record<string, unknown>;
23
- //#endregion
24
22
  //# sourceMappingURL=collectFormValues.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"collectFormValues.d.ts","names":[],"sources":["../../src/vocabulary/collectFormValues.ts"],"mappings":";;;;;YAMY;WACD;WACA;WACA;WACA;WACA;WACA,eAAe;WACf,YAAY;;;;;wBAMP,kBACd,UAAU,UAAU,0BACnB;;;;wBAsCa,2BACd,OAAO,UAAU,mBAChB"}
1
+ {"version":3,"file":"collectFormValues.d.ts","sourceRoot":"","sources":["../../src/vocabulary/collectFormValues.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC;IACjD,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,GAAG,SAAS,CAAC;CAChE,CAAC;AAEF;;GAEG;AACH,wBAAgB,iBAAiB,CAC/B,QAAQ,EAAE,SAAS,CAAC,sBAAsB,CAAC,GAC1C,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAiCzB;AAED;;GAEG;AACH,wBAAgB,0BAA0B,CACxC,KAAK,EAAE,SAAS,CAAC,eAAe,CAAC,GAChC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAKzB"}