generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathdocumenter.test.ts.snap
More file actions
365 lines (352 loc) · 14.3 KB
/
documenter.test.ts.snap
File metadata and controls
365 lines (352 loc) · 14.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
exports[`definition for board matches the snapshot > board 1`] = `
{
"dashCaseName": "board",
"events": [
{
"cancelable": false,
"description": "Called when a user modifies the size or position of board items.
The change detail has the following properties:
* \`items\`: (readonly Item<D>[]) - the updated items array.
* \`addedItem\`: (Item<D>, optional) - the item that was added as part of the update, if applicable.
* \`removedItem\`: (Item<D>, optional) - the item that was removed as part of the update, if applicable.
* \`resizedItem\`: (Item<D>, optional) - the item that was resized as part of the update, if applicable.
* \`movedItem\`: (Item<D>, optional) - the item that was moved as part of the update, if applicable.",
"detailInlineType": {
"name": "BoardProps.ItemsChangeDetail<D>",
"properties": [
{
"name": "addedItem",
"optional": true,
"type": "BoardProps.Item<D>",
},
{
"name": "items",
"optional": false,
"type": "ReadonlyArray<BoardProps.Item<D>>",
},
{
"name": "movedItem",
"optional": true,
"type": "BoardProps.Item<D>",
},
{
"name": "removedItem",
"optional": true,
"type": "BoardProps.Item<D>",
},
{
"name": "resizedItem",
"optional": true,
"type": "BoardProps.Item<D>",
},
],
"type": "object",
},
"detailType": "BoardProps.ItemsChangeDetail<D>",
"name": "onItemsChange",
},
],
"functions": [],
"name": "Board",
"properties": [
{
"description": "An object containing all the necessary localized strings required by the component.
Live announcements:
* \`liveAnnouncementDndStarted(BoardProps.DndOperationType): string\` - the function to create a live announcement string to indicate start of DnD ("reorder", "resize" or "insert").
* \`liveAnnouncementDndItemReordered(BoardProps.DndReorderState<D>): string\` - the function to create a live announcement string to indicate when DnD reorder is performed.
* \`liveAnnouncementDndItemResized(BoardProps.DndResizeState<D>): string\` - the function to create a live announcement string to indicate when DnD resize is performed.
* \`liveAnnouncementDndItemInserted(BoardProps.DndInsertState<D>): string\` - the function to create a live announcement string to indicate when DnD insert is performed.
* \`liveAnnouncementDndDiscarded(BoardProps.DndOperationType): string\` - the function to create a live announcement string to indicate commit of DnD ("reorder", "resize" or "insert").
* \`liveAnnouncementDndCommitted(BoardProps.DndOperationType): string\` - the function to create a live announcement string to indicate discard of DnD ("reorder", "resize" or "insert").
* \`liveAnnouncementItemRemoved(BoardProps.OperationStateRemove<D>): string\` - the function to create a live announcement string to indicate when item is removed.",
"inlineType": {
"name": "BoardProps.I18nStrings<D>",
"properties": [
{
"name": "liveAnnouncementDndCommitted",
"optional": false,
"type": "(operationType: BoardProps.DndOperationType) => string",
},
{
"name": "liveAnnouncementDndDiscarded",
"optional": false,
"type": "(operationType: BoardProps.DndOperationType) => string",
},
{
"name": "liveAnnouncementDndItemInserted",
"optional": false,
"type": "(operation: BoardProps.DndInsertState<D>) => string",
},
{
"name": "liveAnnouncementDndItemReordered",
"optional": false,
"type": "(operation: BoardProps.DndReorderState<D>) => string",
},
{
"name": "liveAnnouncementDndItemResized",
"optional": false,
"type": "(operation: BoardProps.DndResizeState<D>) => string",
},
{
"name": "liveAnnouncementDndStarted",
"optional": false,
"type": "(operationType: BoardProps.DndOperationType) => string",
},
{
"name": "liveAnnouncementItemRemoved",
"optional": false,
"type": "(operation: BoardProps.ItemRemovedState<D>) => string",
},
{
"name": "navigationAriaDescription",
"optional": true,
"type": "string",
},
{
"name": "navigationAriaLabel",
"optional": false,
"type": "string",
},
{
"name": "navigationItemAriaLabel",
"optional": false,
"type": "(item: BoardProps.Item<D> | null) => string",
},
],
"type": "object",
},
"name": "i18nStrings",
"optional": false,
"type": "BoardProps.I18nStrings<D>",
},
{
"description": "Specifies the items displayed in the board. Each item includes its position on the board and
optional data. The content of an item is controlled by the \`renderItem\` property.
The BoardProps.Item includes:
* \`id\` (string) - the unique item identifier. The IDs of any two items in a page must be different.
* \`definition.minRowSpan\` (number, optional) - the minimal number of rows the item is allowed to take. It can't be less than two. Defaults to two.
* \`definition.minColumnSpan\` (number, optional) - the minimal number of columns the item is allowed to take. It can't be less than one. Defaults to one.
* \`definition.defaultRowSpan\` (number, optional) - the number or rows the item will take when inserted to the board. It can't be less than \`definition.minRowSpan\`.
* \`definition.defaultColumnSpan\` (number, optional) - the number or columns the item will take when inserted in the board. It can't be less than \`definition.minColumnSpan\`.
* \`columnOffset\` (mapping, optional) - the item's offset from the first column (per layout) starting from zero. The value is updated by \`onItemsChange\` after an update is committed.
* \`rowSpan\` (number, optional) - the item's vertical size starting from two. The value is updated by \`onItemsChange\` after an update is committed.
* \`columnSpan\` (number, optional) - the item's horizontal size starting from one. The value is updated by \`onItemsChange\` after an update is committed.
* \`data\` (D) - optional item data which can include the specific configurations of an item, such as its title.",
"name": "items",
"optional": false,
"type": "ReadonlyArray<BoardProps.Item<D>>",
},
{
"description": "Specifies a function to render content for board items. The return value must include board item component.
The function takes the item and its associated actions (BoardProps.ItemActions) that include:
* \`removeItem(): void\` - the callback to issue the item's removal. Once issued, the \`onItemsChange\` will fire to update the state.",
"inlineType": {
"name": "(item: BoardProps.Item<D>, actions: BoardProps.ItemActions) => JSX.Element",
"parameters": [
{
"name": "item",
"type": "BoardProps.Item<D>",
},
{
"name": "actions",
"type": "BoardProps.ItemActions",
},
],
"returnType": "JSX.Element",
"type": "function",
},
"name": "renderItem",
"optional": false,
"type": "(item: BoardProps.Item<D>, actions: BoardProps.ItemActions) => JSX.Element",
},
],
"regions": [
{
"description": "Rendered when the \`items\` array is empty.
When items are loading the slot can be used to render the loading indicator.",
"isDefault": false,
"name": "empty",
},
],
"releaseStatus": "stable",
}
`;
exports[`definition for board-item matches the snapshot > board-item 1`] = `
{
"dashCaseName": "board-item",
"events": [],
"functions": [],
"name": "BoardItem",
"properties": [
{
"description": "Determines whether the main content of the item has padding. If \`true\`, removes the default padding
from the content area.",
"name": "disableContentPaddings",
"optional": true,
"type": "boolean",
},
{
"description": "An object containing all the necessary localized strings required by the component.
ARIA labels:
* \`dragHandleAriaLabel\` (string) - the ARIA label for the drag handle.
* \`dragHandleAriaDescription\` (string, optional) - the ARIA description for the drag handle.
* \`resizeHandleAriaLabel\` (string) - the ARIA label for the resize handle.
* \`resizeHandleAriaDescription\` (string, optional) - the ARIA description for the resize handle.
* \`dragHandleTooltipText\` (string, optional) - the ARIA description for the resize handle.
* \`dragHandleTooltipText\` (string, optional) - the Text for the drag handle Tooltip.
* \`resizeHandleTooltipText\` (string, optional) - the Text for the resize handle Tooltip.",
"inlineType": {
"name": "BoardItemProps.I18nStrings",
"properties": [
{
"name": "dragHandleAriaDescription",
"optional": true,
"type": "string",
},
{
"name": "dragHandleAriaLabel",
"optional": false,
"type": "string",
},
{
"name": "dragHandleTooltipText",
"optional": true,
"type": "string",
},
{
"name": "resizeHandleAriaDescription",
"optional": true,
"type": "string",
},
{
"name": "resizeHandleAriaLabel",
"optional": false,
"type": "string",
},
{
"name": "resizeHandleTooltipText",
"optional": true,
"type": "string",
},
],
"type": "object",
},
"name": "i18nStrings",
"optional": false,
"type": "BoardItemProps.I18nStrings",
},
],
"regions": [
{
"description": "Main content of the item.",
"isDefault": true,
"name": "children",
},
{
"description": "Footer of the item.",
"isDefault": false,
"name": "footer",
},
{
"description": "Heading element of the item. Use the [header component](/components/header/).",
"isDefault": false,
"name": "header",
},
{
"description": "Additional slot next to the heading. Use it to render an overflow actions menu in the form of a button dropdown.",
"isDefault": false,
"name": "settings",
},
],
"releaseStatus": "stable",
}
`;
exports[`definition for items-palette matches the snapshot > items-palette 1`] = `
{
"dashCaseName": "items-palette",
"events": [],
"functions": [],
"name": "ItemsPalette",
"properties": [
{
"description": "An object containing all the necessary localized strings required by the component.
Live announcements:
* \`liveAnnouncementDndStarted\` (string) - live announcement string to indicate start of DnD.
* \`liveAnnouncementDndDiscarded\` (string) - live announcement string to indicate discard of DnD.",
"inlineType": {
"name": "ItemsPaletteProps.I18nStrings<D>",
"properties": [
{
"name": "liveAnnouncementDndDiscarded",
"optional": false,
"type": "string",
},
{
"name": "liveAnnouncementDndStarted",
"optional": false,
"type": "string",
},
{
"name": "navigationAriaDescription",
"optional": true,
"type": "string",
},
{
"name": "navigationAriaLabel",
"optional": false,
"type": "string",
},
{
"name": "navigationItemAriaLabel",
"optional": false,
"type": "(item: ItemsPaletteProps.Item<D>) => string",
},
],
"type": "object",
},
"name": "i18nStrings",
"optional": false,
"type": "ItemsPaletteProps.I18nStrings<D>",
},
{
"description": "Specifies the items displayed in the palette. The content of each item is controlled by the \`renderItem\` property.
The ItemsPaletteProps.Item includes:
* \`id\` (string) - the unique item identifier. The IDs of any two items in a page must be different.
* \`definition.minRowSpan\` (number, optional) - the minimal number of rows the item is allowed to take. It can't be less than two. Defaults to two.
* \`definition.minColumnSpan\` (number, optional) - the minimal number of columns the item is allowed to take (in a 4 column layout). It can't be less than one. Defaults to one.
* \`definition.defaultRowSpan\` (number) - the number or rows the item will take when inserted to the board. It can't be less than \`definition.minRowSpan\`.
* \`definition.defaultColumnSpan\` (number) - the number or columns the item will take (in a 4 column layout) when inserted to the board. It can't be less than \`definition.minColumnSpan\`.
* \`data\` (D) - optional item data which can include the specific configurations of an item, such as its title.",
"name": "items",
"optional": false,
"type": "ReadonlyArray<ItemsPaletteProps.Item<D>>",
},
{
"description": "Specifies a function to render content for a palette item. The return value must include board item component.
The function takes the item and its associated context (ItemsPaletteProps.ItemContext) that include:
* \`showPreview\` (boolean) - a flag that indicates if the item's content needs to be rendered in preview mode.",
"inlineType": {
"name": "(item: ItemsPaletteProps.Item<D>, context: ItemsPaletteProps.ItemContext) => JSX.Element",
"parameters": [
{
"name": "item",
"type": "ItemsPaletteProps.Item<D>",
},
{
"name": "context",
"type": "ItemsPaletteProps.ItemContext",
},
],
"returnType": "JSX.Element",
"type": "function",
},
"name": "renderItem",
"optional": false,
"type": "(item: ItemsPaletteProps.Item<D>, context: ItemsPaletteProps.ItemContext) => JSX.Element",
},
],
"regions": [],
"releaseStatus": "stable",
}
`;