@danxbot/ui 20.23.3 → 21.1.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.
Files changed (106) hide show
  1. package/dist/index.js +23607 -22540
  2. package/dist/index.js.map +1 -1
  3. package/dist/pure.js +290 -210
  4. package/dist/pure.js.map +1 -1
  5. package/dist/types/components/AppShell.d.ts +1 -1
  6. package/dist/types/components/Board.d.ts +4 -6
  7. package/dist/types/components/Card.d.ts +25 -1
  8. package/dist/types/components/Combobox.d.ts +2 -1
  9. package/dist/types/components/CommandPalette.d.ts +2 -0
  10. package/dist/types/components/DateField.d.ts +2 -2
  11. package/dist/types/components/DragDrop.d.ts +2 -4
  12. package/dist/types/components/InlineEdit.d.ts +4 -4
  13. package/dist/types/components/InlineMarkdownEdit.d.ts +2 -2
  14. package/dist/types/components/PagedWindowList.d.ts +1 -9
  15. package/dist/types/components/Progress.d.ts +4 -4
  16. package/dist/types/components/ReadMore.d.ts +2 -2
  17. package/dist/types/components/SecretField.d.ts +1 -1
  18. package/dist/types/components/Slider.d.ts +1 -1
  19. package/dist/types/components/SortMenu.d.ts +1 -1
  20. package/dist/types/components/Stat.d.ts +1 -1
  21. package/dist/types/components/StatusSelect.d.ts +1 -1
  22. package/dist/types/components/TriStateSwitch.d.ts +1 -7
  23. package/dist/types/components/board/context.d.ts +2 -4
  24. package/dist/types/components/calendar/CalendarMonth.d.ts +2 -3
  25. package/dist/types/components/calendar/CalendarTimeGrid.d.ts +1 -2
  26. package/dist/types/components/calendar/EventActions.d.ts +1 -2
  27. package/dist/types/components/calendar/format.d.ts +10 -9
  28. package/dist/types/components/calendar/use-calendar-drag.d.ts +0 -1
  29. package/dist/types/components/calendar/use-event-keyboard.d.ts +0 -1
  30. package/dist/types/components/chart/BarList.d.ts +1 -1
  31. package/dist/types/components/chart/ShareBar.d.ts +1 -1
  32. package/dist/types/components/chart/TimeSeriesChart.d.ts +2 -4
  33. package/dist/types/components/chart/shared.d.ts +2 -2
  34. package/dist/types/components/chart/time-series-scale.d.ts +1 -1
  35. package/dist/types/components/chat/EffortControl.d.ts +2 -2
  36. package/dist/types/components/chat/MessageScroller.d.ts +1 -1
  37. package/dist/types/components/checklist/StatusChecklist.d.ts +1 -1
  38. package/dist/types/components/edit/outcome.d.ts +0 -12
  39. package/dist/types/components/file-viewer/frames.d.ts +2 -1
  40. package/dist/types/components/kanban/KanbanBoard.d.ts +2 -21
  41. package/dist/types/components/kanban/types.d.ts +1 -1
  42. package/dist/types/components/markdown/Affordances.d.ts +3 -1
  43. package/dist/types/components/openapi/resolve.d.ts +7 -3
  44. package/dist/types/components/openapi/types.d.ts +2 -1
  45. package/dist/types/components/provenance/ConfidenceBar.d.ts +1 -1
  46. package/dist/types/components/provenance/ConfidenceReadout.d.ts +2 -2
  47. package/dist/types/components/provenance/ProvenanceBadge.d.ts +4 -3
  48. package/dist/types/components/provenance/ProvenanceDetail.d.ts +4 -6
  49. package/dist/types/components/provenance/ProvenanceDisclosure.d.ts +1 -1
  50. package/dist/types/components/provenance/absence.d.ts +4 -3
  51. package/dist/types/components/rbac/RoleKeyPicker.d.ts +1 -1
  52. package/dist/types/components/rbac/permissionSections.d.ts +1 -1
  53. package/dist/types/components/rbac/stagedForm.d.ts +4 -4
  54. package/dist/types/components/roadmap/RoadmapItemCard.d.ts +0 -1
  55. package/dist/types/index.d.ts +9 -7
  56. package/dist/types/lib/board/index.d.ts +2 -1
  57. package/dist/types/lib/board/move.d.ts +2 -2
  58. package/dist/types/lib/board/rejection.d.ts +8 -0
  59. package/dist/types/lib/board/types.d.ts +46 -0
  60. package/dist/types/lib/board/use-board.d.ts +2 -2
  61. package/dist/types/lib/calendar/drag.d.ts +1 -1
  62. package/dist/types/lib/calendar/index.d.ts +1 -1
  63. package/dist/types/lib/calendar/types.d.ts +3 -3
  64. package/dist/types/lib/confidence.d.ts +5 -0
  65. package/dist/types/lib/dnd/announce.d.ts +5 -23
  66. package/dist/types/lib/dnd/index.d.ts +1 -1
  67. package/dist/types/lib/format.d.ts +19 -18
  68. package/dist/types/lib/i18n/areas/auth-provenance-flows.d.ts +258 -0
  69. package/dist/types/lib/i18n/areas/board.d.ts +51 -0
  70. package/dist/types/lib/i18n/areas/chat-chart.d.ts +164 -0
  71. package/dist/types/lib/i18n/areas/code-editor.d.ts +40 -0
  72. package/dist/types/lib/i18n/areas/dates.d.ts +103 -0
  73. package/dist/types/lib/i18n/areas/docs-views.d.ts +268 -0
  74. package/dist/types/lib/i18n/areas/feedback.d.ts +104 -0
  75. package/dist/types/lib/i18n/areas/formats.d.ts +30 -0
  76. package/dist/types/lib/i18n/areas/forms.d.ts +130 -0
  77. package/dist/types/lib/i18n/areas/markdown.d.ts +139 -0
  78. package/dist/types/lib/i18n/areas/move-rejected.d.ts +16 -0
  79. package/dist/types/lib/i18n/areas/navigation.d.ts +144 -0
  80. package/dist/types/lib/i18n/areas/rbac.d.ts +584 -0
  81. package/dist/types/lib/i18n/emphasis.d.ts +3 -0
  82. package/dist/types/lib/i18n/index.d.ts +8 -0
  83. package/dist/types/lib/i18n/number-format.d.ts +5 -0
  84. package/dist/types/lib/i18n/plural.d.ts +7 -0
  85. package/dist/types/lib/i18n/provider.d.ts +16 -0
  86. package/dist/types/lib/i18n/strings.d.ts +15 -0
  87. package/dist/types/lib/intl-cache.d.ts +31 -0
  88. package/dist/types/lib/markdown/commands.d.ts +4 -2
  89. package/dist/types/lib/markdown/dom.d.ts +27 -21
  90. package/dist/types/lib/markdown/hotkeys.d.ts +12 -5
  91. package/dist/types/lib/markdown/image-decoration.d.ts +22 -1
  92. package/dist/types/lib/markdown/image-pipeline.d.ts +2 -0
  93. package/dist/types/lib/markdown/images.d.ts +1 -1
  94. package/dist/types/lib/markdown/reconcile.d.ts +4 -2
  95. package/dist/types/lib/markdown/surface.d.ts +4 -2
  96. package/dist/types/lib/reduced-motion-help.d.ts +2 -1
  97. package/dist/types/lib/time/relativeAge.d.ts +3 -2
  98. package/dist/types/lib/time/zone.d.ts +9 -0
  99. package/dist/types/lib/values/boolean.d.ts +11 -10
  100. package/dist/types/lib/values/currency.d.ts +5 -5
  101. package/dist/types/lib/values/date.d.ts +4 -4
  102. package/dist/types/lib/values/datetime.d.ts +3 -3
  103. package/dist/types/lib/values/locale-date.d.ts +34 -0
  104. package/dist/types/lib/values/number.d.ts +5 -5
  105. package/dist/types/pure.d.ts +1 -0
  106. package/package.json +1 -1
@@ -0,0 +1,268 @@
1
+ export interface DocsViewsStrings {
2
+ /** `OpenApiViewer`: the spec header, filter box, empty state, webhooks section. */
3
+ openApiViewer: {
4
+ /** Name of the group holding operations that carry no tag when other operations are tagged. */
5
+ untaggedGroup: string;
6
+ /** The version badge beside the spec title ("v1.2.0"). */
7
+ version: (version: string) => string;
8
+ /** Badge in the spec header counting operations. */
9
+ operationCount: (count: number, countText: string) => string;
10
+ /** Badge in the spec header counting webhooks. */
11
+ webhookCount: (count: number, countText: string) => string;
12
+ /** Term of the servers row in the spec header. */
13
+ servers: string;
14
+ /** Term of the security-schemes row in the spec header. */
15
+ securitySchemes: string;
16
+ /** Placeholder of the operation filter box. */
17
+ filterPlaceholder: string;
18
+ /** Accessible name of the operation filter box. */
19
+ filterLabel: string;
20
+ /** Title of the empty state shown when the filter matches nothing. */
21
+ noMatchTitle: string;
22
+ /** Description of that empty state; `query` is what the reader typed. */
23
+ noMatchDescription: (query: string) => string;
24
+ /** Button in that empty state that clears the filter. */
25
+ clearFilter: string;
26
+ /** Title of each operation's collapsed disclosure. */
27
+ details: string;
28
+ /** Heading of the webhooks section. */
29
+ webhooks: string;
30
+ /** Paragraph under the webhooks heading. */
31
+ webhooksIntro: string;
32
+ /** Footer line while filtering: how many of all operations match. */
33
+ matchSummary: (matched: number, matchedText: string, total: number, totalText: string) => string;
34
+ };
35
+ /** `OperationCard`: one operation's header, tabs, responses and security. */
36
+ operationCard: {
37
+ /** Badge on a deprecated operation. */
38
+ deprecated: string;
39
+ /** Line under the summary naming the operation id. */
40
+ operationId: (id: string) => string;
41
+ /** Tab holding the parameters. */
42
+ parameters: string;
43
+ /** Tab holding the request body. */
44
+ requestBody: string;
45
+ /** Tab holding the responses. */
46
+ responses: string;
47
+ /** Tab holding the security requirements. */
48
+ security: string;
49
+ /** Heading above the parameters of one location. */
50
+ locationLabel: {
51
+ path: string;
52
+ query: string;
53
+ header: string;
54
+ cookie: string;
55
+ };
56
+ /** Badge on a required request body. */
57
+ required: string;
58
+ /** Shown in a response that declares no body. */
59
+ noResponseBody: string;
60
+ /** File name shown on the synthesised example code block. */
61
+ example: string;
62
+ /** Shown when a schema reference could not be resolved. */
63
+ couldNotResolve: (ref: string) => string;
64
+ /** Separator between alternative security requirements. */
65
+ securityOr: string;
66
+ /** Accessible name of the copy-link button after the link was copied. */
67
+ linkCopied: string;
68
+ /** Accessible name of the copy-link button. */
69
+ copyLink: string;
70
+ };
71
+ /** `SchemaView`: the recursive schema property tree. */
72
+ schemaView: {
73
+ /** Type label of an allOf composition. */
74
+ allOf: string;
75
+ /** Type label of a oneOf composition. */
76
+ oneOf: string;
77
+ /** Type label of an anyOf composition. */
78
+ anyOf: string;
79
+ /** Type label of a schema with properties and no declared type. */
80
+ object: string;
81
+ /** Type label of an enum with no declared type. */
82
+ enum: string;
83
+ /** Type label of a schema that constrains nothing. */
84
+ any: string;
85
+ /** Note on a reference already shown further up the same branch. */
86
+ circularReference: string;
87
+ /** Note where the tree stops expanding. */
88
+ nestedFurther: string;
89
+ /** Badge on a deprecated schema. */
90
+ deprecated: string;
91
+ /** Badge on a required property. */
92
+ required: string;
93
+ /** The schema's declared format ("date-time"). */
94
+ format: (format: string) => string;
95
+ /** Note on an object that allows extra properties of any shape. */
96
+ additionalProperties: string;
97
+ };
98
+ /** `RoadmapItemCard`, `RoadmapSwimlaneBoard`, `RoadmapPage`: roadmap-item statuses and chrome. */
99
+ roadmap: {
100
+ /** Badge and column label per roadmap-item status. */
101
+ itemStatus: {
102
+ planned: string;
103
+ "in-progress": string;
104
+ shipped: string;
105
+ unresolved: string;
106
+ };
107
+ /** Disclosure button on a roadmap item card; `expanded` is the current state. */
108
+ toggleUseCases: (count: number, countText: string, expanded: boolean) => string;
109
+ /** Heading of the customer-facing roadmap page. */
110
+ pageTitle: string;
111
+ /** Subtitle of the customer-facing roadmap page. */
112
+ pageSubtitle: string;
113
+ /** Shown when no domain has a customer-visible item. */
114
+ empty: string;
115
+ /** Shown in a swimlane cell with no items. */
116
+ cellEmpty: string;
117
+ };
118
+ /** `UseCaseCard`: one use case's status and per-track build state. */
119
+ useCaseCard: {
120
+ /** Label per use-case status (badge and select option). */
121
+ status: {
122
+ pending: string;
123
+ "in-progress": string;
124
+ verified: string;
125
+ rejected: string;
126
+ };
127
+ /** Accessible name of the status select; `ref` is the use case's ref. */
128
+ statusFor: (ref: string) => string;
129
+ /** Accessible name of a track chip, saying whether the use case is built on it. */
130
+ trackBuilt: (trackName: string, built: boolean) => string;
131
+ /** Title of the collapsible background section. */
132
+ background: string;
133
+ };
134
+ /** `UseCaseLedgerPage`: the internal ledger with its filters. */
135
+ useCaseLedger: {
136
+ /** Page heading. */
137
+ title: string;
138
+ /** Page subtitle. */
139
+ subtitle: string;
140
+ /** Label of the domain filter. */
141
+ domain: string;
142
+ /** Option that clears the domain filter. */
143
+ allDomains: string;
144
+ /** Label of the status filter. */
145
+ status: string;
146
+ /** Option that clears the status filter. */
147
+ allStatuses: string;
148
+ /** Shown when the filters match no roadmap item. */
149
+ noMatch: string;
150
+ };
151
+ /** `OrderedEntityManager`: the shared list editor behind the phase and track managers. */
152
+ orderedEntityManager: {
153
+ /** Accessible name of a row's delete button. */
154
+ delete: (name: string) => string;
155
+ /** Label of the button that adds a new entry. */
156
+ add: string;
157
+ };
158
+ /** `PhaseManager`: the roadmap phase editor. */
159
+ phaseManager: {
160
+ /** Card title. */
161
+ title: string;
162
+ /** Card description. */
163
+ description: string;
164
+ /** Shown when there are no phases. */
165
+ empty: string;
166
+ /** Label of the add-a-phase field. */
167
+ addFieldLabel: string;
168
+ /** Placeholder of the add-a-phase field. */
169
+ addPlaceholder: string;
170
+ /** Accessible name of the drag container. */
171
+ containerLabel: string;
172
+ /** Badge on a phase that roadmap items still use. */
173
+ inUse: (count: number, countText: string) => string;
174
+ /** Why a phase's delete button is disabled. */
175
+ deleteBlocked: (count: number, countText: string, phaseName: string) => string;
176
+ };
177
+ /** `TrackManager`: the build-track editor. */
178
+ trackManager: {
179
+ /** Card title. */
180
+ title: string;
181
+ /** Card description. */
182
+ description: string;
183
+ /** Shown when there are no tracks. */
184
+ empty: string;
185
+ /** Label of the add-a-track field. */
186
+ addFieldLabel: string;
187
+ /** Placeholder of the add-a-track field. */
188
+ addPlaceholder: string;
189
+ /** Accessible name of the drag container. */
190
+ containerLabel: string;
191
+ /** Badge on a track row: use cases built out of the live ones. */
192
+ progress: (built: number, builtText: string, liveText: string) => string;
193
+ /** Why a track's delete button is disabled. */
194
+ deleteBlocked: (built: number, builtText: string, trackName: string) => string;
195
+ };
196
+ /** `FileViewer` and its header, rail, stage and page-jump field. */
197
+ fileViewer: {
198
+ /** Default heading when the host gives no title and there is no file. */
199
+ defaultTitle: string;
200
+ /** Default word for what a mark means, as an adjective ("marked"). */
201
+ marked: string;
202
+ /** Toggle that collapses the thumbnail rail. */
203
+ hideFileList: string;
204
+ /** Toggle that expands the thumbnail rail. */
205
+ showFileList: string;
206
+ /** Overflow-menu trigger and popover name on narrow screens. */
207
+ moreControls: string;
208
+ /** Previous-frame button. */
209
+ previous: string;
210
+ /** Why previous is disabled. */
211
+ firstOne: string;
212
+ /** Next-frame button. */
213
+ next: string;
214
+ /** Why next is disabled. */
215
+ lastOne: string;
216
+ /** Position readout of a pageless frame ("3 of 7"). */
217
+ position: (indexText: string, totalText: string) => string;
218
+ /** Position readout of a page frame ("Page 4 · 3 of 7"). */
219
+ pagePosition: (pageNumberText: string, indexText: string, totalText: string) => string;
220
+ /** Previous-mark button; `mark` is the host's word for a mark. */
221
+ previousMark: (mark: string) => string;
222
+ /** Next-mark button; `mark` is the host's word for a mark. */
223
+ nextMark: (mark: string) => string;
224
+ /** Count beside the mark buttons ("3 cited"). */
225
+ markCount: (countText: string, mark: string) => string;
226
+ /** Accessible name of a rail thumbnail that is marked. */
227
+ markedFrame: (frameName: string, mark: string) => string;
228
+ /** Name of the jump-to-page-number control and its popover. */
229
+ jumpToPage: string;
230
+ /** Placeholder of the page-number field. */
231
+ pageNumberPlaceholder: string;
232
+ /** Button that submits the page number. */
233
+ go: string;
234
+ /** Error when the typed page number is not digits. */
235
+ enterPageNumber: string;
236
+ /** Error when the page number does not exist in the file. */
237
+ noPageInFile: (typed: string) => string;
238
+ /** Zoom-out button. */
239
+ zoomOut: string;
240
+ /** Zoom-in button. */
241
+ zoomIn: string;
242
+ /** Fit button when the frame is a page. */
243
+ fitWidth: string;
244
+ /** Fit button when the frame is an image. */
245
+ fitWindow: string;
246
+ /** Download button with a visible label. */
247
+ download: string;
248
+ /** Accessible name of the icon-only download button. */
249
+ downloadFile: (fileName: string) => string;
250
+ /** Accessible name of the thumbnail rail. */
251
+ filesInViewer: string;
252
+ /** Name of a page frame of a file; also the image's alt text. */
253
+ pageOf: (fileName: string, pageNumberText: string) => string;
254
+ /** Name of a page frame that has no printed number. */
255
+ unnumberedPageOf: (fileName: string) => string;
256
+ /** Spinner label while the image is measured. */
257
+ loading: string;
258
+ /** Stage text when a page image failed to load. */
259
+ pageImageFailed: string;
260
+ /** Stage text when an image failed to load. */
261
+ imageFailed: string;
262
+ /** Stage text for a file with no preview. */
263
+ noPreview: string;
264
+ /** Link that opens the file in a new tab. */
265
+ openInNewTab: string;
266
+ };
267
+ }
268
+ export declare const docsViewsStrings: DocsViewsStrings;
@@ -0,0 +1,104 @@
1
+ import type { Emphasis } from "../emphasis";
2
+ import { type ReactNode } from "react";
3
+ export interface FeedbackStrings {
4
+ /** `<Avatar>`. */
5
+ avatar: {
6
+ /** Accessible name of the presence dot, by status. */
7
+ status: {
8
+ online: string;
9
+ busy: string;
10
+ away: string;
11
+ offline: string;
12
+ };
13
+ };
14
+ /** `<ConnectionCard>`. */
15
+ connectionCard: {
16
+ /** The status badge text, by health. */
17
+ status: {
18
+ healthy: string;
19
+ degraded: string;
20
+ broken: string;
21
+ unknown: string;
22
+ };
23
+ /** Accessible name of the action button: its visible `actionLabel` composed with the connection `name`. */
24
+ actionName: (actionLabel: string, name: string) => string;
25
+ };
26
+ /** `<CopyValue>`. */
27
+ copyValue: {
28
+ /** Accessible name of the copy button for the value called `label`. */
29
+ copy: (label: string) => string;
30
+ /** Live-region announcement after a successful copy. */
31
+ copied: string;
32
+ /** Live-region announcement after the clipboard refused. */
33
+ failed: string;
34
+ };
35
+ loading: {
36
+ /** Accessible name of a repeated skeleton. */
37
+ loading: string;
38
+ };
39
+ errorBoundary: {
40
+ /** Heading of the fallback when the caught subtree has no label. */
41
+ generic: string;
42
+ /** Heading of the fallback naming the part of the page that failed. */
43
+ failure: (label: string) => string;
44
+ };
45
+ progress: {
46
+ /** Name of the unfilled part of a segmented ring when the caller gives no `remainderLabel`. */
47
+ remaining: string;
48
+ /** Spoken description of a segmented ring whose segments exceed the total; `breakdown` is the comma-joined per-segment list. */
49
+ overTotal: (breakdown: string, overflowPercent: string) => string;
50
+ };
51
+ readMore: {
52
+ /** Toggle label while the content is clamped. */
53
+ more: string;
54
+ /** Toggle label while the content is expanded. */
55
+ less: string;
56
+ };
57
+ videoPlayer: {
58
+ /** Message shown in place of a video that failed to load. */
59
+ cannotPlay: string;
60
+ /** Download button beside that message. */
61
+ download: string;
62
+ };
63
+ toast: {
64
+ /** Accessible name of a toast's close button. */
65
+ dismiss: string;
66
+ };
67
+ legalDocument: {
68
+ /** Default accessible name of the table of contents. */
69
+ contents: string;
70
+ /** Callout title counting the placeholders not confirmed yet. */
71
+ unconfirmedTitle: (count: number, countText: string) => string;
72
+ /** Callout body explaining how unconfirmed values are shown. */
73
+ unconfirmedBody: string;
74
+ /** Label before the effective date in the document header. */
75
+ effectiveDate: string;
76
+ /** Label before the version in the document header. */
77
+ version: string;
78
+ };
79
+ lineDiff: {
80
+ /** Gap row standing for a folded run of unchanged lines. */
81
+ unchangedLines: (count: number, countText: string) => string;
82
+ };
83
+ tree: {
84
+ /** Accessible name of a closed branch's toggle. */
85
+ expand: string;
86
+ /** Accessible name of an open branch's toggle. */
87
+ collapse: string;
88
+ };
89
+ table: {
90
+ /** Accessible name of the header checkbox that selects every row on the page. */
91
+ selectAll: string;
92
+ /** Accessible name of one row's selection checkbox; `position` counts from 1. */
93
+ selectRow: (positionText: string) => string;
94
+ /** Message on the overlay shown while rows are refreshing. */
95
+ updating: string;
96
+ /** Live summary under the table: how many of the filtered rows are selected. */
97
+ selectedCount: (selected: number, selectedText: string, totalText: string, emphasis: Emphasis) => ReactNode;
98
+ /** Name of the table's pagination bar. */
99
+ paginationLabel: string;
100
+ /** Title of the default empty state. */
101
+ emptyTitle: string;
102
+ };
103
+ }
104
+ export declare const feedbackStrings: FeedbackStrings;
@@ -0,0 +1,30 @@
1
+ export interface BooleanStrings {
2
+ yes: string;
3
+ no: string;
4
+ /** Word for a boolean nothing was recorded for. */
5
+ unknown: string;
6
+ /** Lower-case spellings `parseBoolean` reads as true (English: ["yes", "y", "true", "t", "1"]). */
7
+ trueWords: string[];
8
+ /** Lower-case spellings `parseBoolean` reads as false (English: ["no", "n", "false", "f", "0"]). */
9
+ falseWords: string[];
10
+ }
11
+ export interface RelativeAgeStrings {
12
+ justNow: string;
13
+ /** The moment could not be parsed. */
14
+ unknown: string;
15
+ minutesAgo: (n: number, nText: string) => string;
16
+ hoursAgo: (n: number, nText: string) => string;
17
+ daysAgo: (n: number, nText: string) => string;
18
+ daysHoursAgo: (days: number, daysText: string, hours: number, hoursText: string) => string;
19
+ weeksAgo: (n: number, nText: string) => string;
20
+ }
21
+ export interface ReadErrorStrings {
22
+ /** A read failed with something that carries no message of its own. */
23
+ error: string;
24
+ }
25
+ export interface FormatsStrings {
26
+ boolean: BooleanStrings;
27
+ relativeAge: RelativeAgeStrings;
28
+ readError: ReadErrorStrings;
29
+ }
30
+ export declare const formatsStrings: FormatsStrings;
@@ -0,0 +1,130 @@
1
+ import type { Emphasis } from "../emphasis";
2
+ import { type ReactNode } from "react";
3
+ export interface FormsStrings {
4
+ slider: {
5
+ /** The readout of a two-thumb Slider: the low and high value, already locale-formatted. */
6
+ range: (from: string, to: string) => string;
7
+ };
8
+ /** `<Combobox>` and `<MultiCombobox>`. */
9
+ combobox: {
10
+ /** Input placeholder when the consumer passes none. */
11
+ placeholder: string;
12
+ /** Empty-list message when the consumer passes none. */
13
+ noMatch: string;
14
+ /** Name of the clear-the-selection button. */
15
+ clear: string;
16
+ /** Name of the open-the-list button. */
17
+ open: string;
18
+ /** Name of a selected chip's remove button. */
19
+ remove: string;
20
+ };
21
+ select: {
22
+ /** Trigger text while nothing is selected and the caller gave no `placeholder`. */
23
+ placeholder: string;
24
+ };
25
+ statusSelect: {
26
+ /** Trigger text when the value matches no option and the caller gave no `placeholder`. */
27
+ unknown: string;
28
+ };
29
+ settingRow: {
30
+ /** Label of the collapsed "details" disclosure when the caller gave no `detailsLabel`. */
31
+ detailsLabel: string;
32
+ };
33
+ passwordInput: {
34
+ /** Accessible name of the reveal button while the password is hidden. */
35
+ show: string;
36
+ /** Accessible name of the reveal button while the password is shown. */
37
+ hide: string;
38
+ /** Tooltip explaining why the reveal button is disabled. */
39
+ disabled: string;
40
+ };
41
+ passwordRequirements: {
42
+ /** Accessible name of the list of password rules. */
43
+ label: string;
44
+ };
45
+ secretField: {
46
+ /** Screen-reader-only note that a secret is already stored for the field. */
47
+ storedNotice: string;
48
+ /** Placeholder while the stored secret is marked for removal. */
49
+ willBeRemoved: string;
50
+ /** Placeholder of an empty field when no secret is stored. */
51
+ notSet: string;
52
+ /** Accessible name of the reveal button for typed text while it is hidden. */
53
+ showTyped: string;
54
+ /** Accessible name of the reveal button for typed text while it is shown. */
55
+ hideTyped: string;
56
+ /** Tooltip explaining why the reveal button is disabled. */
57
+ disabled: string;
58
+ /** Banner text while the stored secret is marked for removal. */
59
+ removedOnSave: string;
60
+ /** Button that undoes the pending removal. */
61
+ undo: string;
62
+ /** Button that opens the clear confirmation. */
63
+ clearStored: string;
64
+ /** Title of the clear confirmation dialog. */
65
+ clearTitle: string;
66
+ /** Body of the clear confirmation; `masked` is the stored value's visible ends ("sk-…ab"), or null when the caller gave no hint. */
67
+ clearDescription: (masked: string | null) => string;
68
+ /** Default label of the clear confirmation's destructive button. */
69
+ clearConfirm: string;
70
+ /** Who/when line under the field; `when` is the already-formatted instant and either argument may be absent. */
71
+ updated: (when: string | null, by: string | undefined) => string;
72
+ };
73
+ fileUpload: {
74
+ /** Default call to action inside the drop zone. */
75
+ dropOrBrowse: string;
76
+ /** Size limit line under the call to action, given the formatted limit. */
77
+ upTo: (limit: string) => string;
78
+ /** Rejection line for a file over the limit, given its name, its size and the limit (both formatted). */
79
+ tooBig: (name: string, size: string, limit: string) => string;
80
+ /** Accessible name of the button that drops one queued file, given the file name. */
81
+ remove: (name: string) => string;
82
+ };
83
+ imageUploadField: {
84
+ /** Default label of the drop zone and of the replace control. */
85
+ upload: string;
86
+ /** Default accessible name of the control that removes the image. */
87
+ remove: string;
88
+ /** Drop-zone label while an upload is in flight, and the reason the replace and remove controls are disabled meanwhile. */
89
+ uploading: string;
90
+ /** Reason the replace and remove controls are disabled when the whole field is. */
91
+ disabled: string;
92
+ /** Hint under a circular drop zone. */
93
+ cropHint: string;
94
+ /** Error shown when the upload failed without a message of its own. */
95
+ failed: string;
96
+ };
97
+ inlineEdit: {
98
+ /** Ghost text of an empty InlineEdit. */
99
+ empty: string;
100
+ /** Screen-reader announcement while an autosave is in flight. */
101
+ saving: string;
102
+ /** Message under a field whose save failed, naming the key that retries it. */
103
+ failure: (retryKey: "Enter" | "Ctrl+Enter") => string;
104
+ };
105
+ inlineMarkdownEdit: {
106
+ /** Resting text of an empty InlineMarkdownEdit. */
107
+ empty: string;
108
+ /** Refusal shown when saving is attempted while an image is unstored. */
109
+ unstoredImageRefusal: string;
110
+ };
111
+ triStateSwitch: {
112
+ /** The Yes stop's name and caption. */
113
+ yes: string;
114
+ /** The No stop's name and caption. */
115
+ no: string;
116
+ /** The middle stop's name and caption (nobody has answered). */
117
+ unset: string;
118
+ };
119
+ dialog: {
120
+ /** Accessible name of the corner close button on a Dialog. */
121
+ close: string;
122
+ /** Default label of an AlertDialog's cancel button. */
123
+ cancel: string;
124
+ /** Default label of an AlertDialog's confirm button. */
125
+ confirm: string;
126
+ /** Label of the type-to-confirm field in an AlertDialog; the sentence carries the phrase the person must type exactly once. */
127
+ typeToConfirm: (phrase: string, emphasis: Emphasis) => ReactNode;
128
+ };
129
+ }
130
+ export declare const formsStrings: FormsStrings;
@@ -0,0 +1,139 @@
1
+ import type { HotkeyId } from "../../markdown/hotkeys";
2
+ import type { ImageDecorationStrings } from "../../markdown/image-decoration";
3
+ export interface MarkdownStrings {
4
+ markdownEditor: {
5
+ /** Accessible name of the formatting toolbar; `label` is the editor's own label. */
6
+ formattingLabel: (label: string) => string;
7
+ /** Accessible name of the hidden image file picker. */
8
+ imageFileLabel: (label: string) => string;
9
+ /** Accessible name of the keyboard-shortcuts button. */
10
+ shortcuts: string;
11
+ /** Permanent advisement under the editor about how Tab leaves the field. */
12
+ tabAdvisement: string;
13
+ /** Tooltip of a toolbar button: its name and its chord. */
14
+ buttonTooltip: (name: string, chord: string) => string;
15
+ /** Names of the toolbar buttons. */
16
+ toolbar: {
17
+ bold: string;
18
+ italic: string;
19
+ inlineCode: string;
20
+ link: string;
21
+ image: string;
22
+ bulletList: string;
23
+ numberedList: string;
24
+ blockquote: string;
25
+ codeBlock: string;
26
+ table: string;
27
+ };
28
+ /** Header cell of each column of a table the editor inserts ("Column 1"). */
29
+ tableColumnHeader: (positionText: string) => string;
30
+ /** Header cell of a column the editor inserts into an existing table. */
31
+ newColumnHeader: string;
32
+ /** The words an image shown in the document carries as attributes. */
33
+ images: ImageDecorationStrings;
34
+ /** Group headings of the shortcuts panel. */
35
+ hotkeyGroups: {
36
+ formatting: string;
37
+ headings: string;
38
+ lists: string;
39
+ blocks: string;
40
+ tables: string;
41
+ };
42
+ /** What each row of the shortcuts panel does. */
43
+ hotkeys: Record<HotkeyId, string>;
44
+ };
45
+ markdownAffordances: {
46
+ /** Accessible name of the line menu button; `current` is the line's present type. */
47
+ lineType: (current: string) => string;
48
+ /** Heading of the block-type group in the line and selection menus. */
49
+ turnInto: string;
50
+ /** Names of the block types a line can become. */
51
+ blockTypes: {
52
+ paragraph: string;
53
+ heading1: string;
54
+ heading2: string;
55
+ heading3: string;
56
+ bulletList: string;
57
+ numberedList: string;
58
+ taskList: string;
59
+ blockquote: string;
60
+ codeBlock: string;
61
+ table: string;
62
+ horizontalRule: string;
63
+ };
64
+ /** Accessible name of the image address field. */
65
+ imageSource: string;
66
+ /** Accessible name of the link address field. */
67
+ linkDestination: string;
68
+ /** Button that turns an image into a link. */
69
+ turnIntoLink: string;
70
+ /** Button that turns a link into an image. */
71
+ turnIntoImage: string;
72
+ /** Button that removes an image but keeps its text. */
73
+ removeImage: string;
74
+ /** Button that removes a link but keeps its text. */
75
+ removeLink: string;
76
+ /** Visible caption of the code-block language picker. */
77
+ language: string;
78
+ /** Accessible name of the code-block language picker. */
79
+ codeBlockLanguage: string;
80
+ /** Option meaning the fence names no language. */
81
+ noLanguage: string;
82
+ /** Table bar: align the column left. */
83
+ alignLeft: string;
84
+ /** Table bar: centre the column. */
85
+ alignCenter: string;
86
+ /** Table bar: align the column right. */
87
+ alignRight: string;
88
+ /** Table bar: insert a row below. */
89
+ insertRowBelow: string;
90
+ /** Table bar: insert a column after. */
91
+ insertColumnAfter: string;
92
+ /** Table bar: delete the row. */
93
+ deleteRow: string;
94
+ /** Table bar: delete the column. */
95
+ deleteColumn: string;
96
+ /** Table bar: delete the table. */
97
+ deleteTable: string;
98
+ /** Heading of the inline-format group in the selection menu. */
99
+ formatGroup: string;
100
+ /** Names of the inline formats in the selection menu. */
101
+ format: {
102
+ bold: string;
103
+ italic: string;
104
+ inlineCode: string;
105
+ strikethrough: string;
106
+ };
107
+ };
108
+ markdownRender: {
109
+ /** Accessible name of a checked task-list box. */
110
+ done: string;
111
+ /** Accessible name of an unchecked task-list box. */
112
+ notDone: string;
113
+ /** Accessible name of a scrollable table region. */
114
+ table: string;
115
+ /** Accessible name of the footnotes section. */
116
+ footnotes: string;
117
+ /** Accessible name of a footnote's return link. */
118
+ backToReference: string;
119
+ /** Dialog title of an enlarged image that has no alt text. */
120
+ image: string;
121
+ };
122
+ imageUpload: {
123
+ /** Title of the warning while images upload. */
124
+ uploadingTitle: (count: number, countText: string) => string;
125
+ /** Body of that warning. */
126
+ uploadingBody: string;
127
+ /** Title of the warning when uploads failed. */
128
+ failedTitle: (count: number, countText: string) => string;
129
+ /** Retry button of that warning. */
130
+ retry: string;
131
+ /** Body of the failed-upload warning. */
132
+ failedBody: (count: number) => string;
133
+ /** Title of the warning for images that exist only in this tab. */
134
+ unstoredTitle: (count: number, countText: string) => string;
135
+ /** Body of that warning. */
136
+ unstoredBody: (count: number) => string;
137
+ };
138
+ }
139
+ export declare const markdownStrings: MarkdownStrings;