@whity/ui 0.5.0 → 1.0.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/README.md +107 -107
- package/package.json +221 -192
- package/src/access-denied.stories.tsx +179 -179
- package/src/access-denied.tsx +305 -305
- package/src/action-proposal.tsx +338 -302
- package/src/actor-chip.tsx +71 -71
- package/src/agent-activity.tsx +163 -163
- package/src/agent-collaboration.stories.tsx +156 -156
- package/src/agent-run-status.tsx +196 -196
- package/src/alert-dialog.stories.tsx +45 -45
- package/src/alert-dialog.tsx +147 -147
- package/src/alert.stories.tsx +91 -91
- package/src/alert.tsx +89 -89
- package/src/app-sidebar.stories.tsx +195 -195
- package/src/app-sidebar.tsx +604 -500
- package/src/approval-queue.tsx +109 -108
- package/src/audience-group-picker.stories.tsx +198 -198
- package/src/audience-group-picker.tsx +362 -362
- package/src/audience-people-picker.stories.tsx +102 -102
- package/src/audience-people-picker.tsx +279 -279
- package/src/avatar-pattern.ts +138 -0
- package/src/avatar.tsx +125 -83
- package/src/badge.stories.tsx +105 -105
- package/src/badge.tsx +68 -68
- package/src/beta-warning.stories.tsx +79 -79
- package/src/beta-warning.tsx +189 -189
- package/src/bilingual-input.stories.tsx +82 -82
- package/src/bilingual-input.tsx +188 -183
- package/src/board.tsx +216 -0
- package/src/breadcrumb.stories.tsx +51 -51
- package/src/breadcrumb.tsx +90 -90
- package/src/built-on-whity.tsx +52 -0
- package/src/button.stories.tsx +87 -87
- package/src/button.tsx +123 -118
- package/src/card.stories.tsx +423 -423
- package/src/card.tsx +180 -180
- package/src/chart.stories.tsx +66 -66
- package/src/chart.tsx +228 -228
- package/src/checkbox.stories.tsx +62 -62
- package/src/checkbox.tsx +54 -54
- package/src/collapsible.stories.tsx +48 -48
- package/src/collapsible.tsx +34 -34
- package/src/color-card.stories.tsx +61 -61
- package/src/color-card.tsx +270 -270
- package/src/color-picker.stories.tsx +65 -65
- package/src/color-picker.tsx +425 -425
- package/src/column-matcher.tsx +84 -0
- package/src/command-palette.tsx +398 -306
- package/src/confirm-action.tsx +98 -0
- package/src/copy-block.stories.tsx +38 -38
- package/src/copy-block.tsx +85 -85
- package/src/data-table.stories.tsx +200 -200
- package/src/data-table.tsx +1686 -1106
- package/src/date-picker.stories.tsx +61 -61
- package/src/date-picker.tsx +456 -422
- package/src/design-cards.stories.tsx +551 -458
- package/src/dialog.stories.tsx +48 -48
- package/src/dialog.tsx +179 -166
- package/src/display-preferences.tsx +50 -0
- package/src/documents/barcode-svg.stories.tsx +72 -72
- package/src/documents/barcode-svg.tsx +79 -79
- package/src/dropdown-menu.stories.tsx +77 -77
- package/src/dropdown-menu.tsx +271 -271
- package/src/editor/agent-panel.tsx +222 -0
- package/src/editor/agents.stories.tsx +81 -0
- package/src/editor/agents.ts +55 -0
- package/src/editor/behaviour.ts +279 -279
- package/src/editor/block-ids.ts +44 -44
- package/src/editor/block-list.tsx +104 -101
- package/src/editor/block-toolbar.tsx +490 -477
- package/src/editor/bubble.tsx +119 -93
- package/src/editor/catalogue.ts +169 -103
- package/src/editor/collab-rail.tsx +746 -746
- package/src/editor/collab.stories.tsx +207 -207
- package/src/editor/collab.ts +87 -87
- package/src/editor/contract.ts +476 -408
- package/src/editor/convert.ts +414 -362
- package/src/editor/doc-editor.stories.tsx +98 -98
- package/src/editor/doc-editor.tsx +1492 -1287
- package/src/editor/editor.css +636 -536
- package/src/editor/extensions.ts +86 -86
- package/src/editor/field-bar.tsx +154 -0
- package/src/editor/field-picker.tsx +109 -107
- package/src/editor/fields.ts +100 -100
- package/src/editor/gutter.tsx +443 -367
- package/src/editor/index.ts +23 -22
- package/src/editor/label-sheet.tsx +289 -289
- package/src/editor/labels.ts +394 -310
- package/src/editor/link-tools.tsx +141 -141
- package/src/editor/node-views.tsx +461 -450
- package/src/editor/page-view.tsx +372 -353
- package/src/editor/phone.tsx +310 -0
- package/src/editor/plugin-block-view.tsx +230 -0
- package/src/editor/plugin-blocks.stories.tsx +96 -0
- package/src/editor/plugin-blocks.ts +52 -0
- package/src/editor/publish-check.tsx +201 -182
- package/src/editor/rich-blocks.stories.tsx +146 -146
- package/src/editor/sample.ts +40 -40
- package/src/editor/save-block-dialog.tsx +141 -0
- package/src/editor/saved-block-view.tsx +205 -0
- package/src/editor/saved-blocks.stories.tsx +105 -0
- package/src/editor/saved-parts.ts +192 -0
- package/src/editor/schema-rich.ts +156 -150
- package/src/editor/schema.ts +368 -315
- package/src/editor/services.tsx +205 -127
- package/src/editor/slash.ts +64 -64
- package/src/editor/suggesting.ts +372 -372
- package/src/editor/suggestions.ts +763 -763
- package/src/editor/table-keys.ts +66 -66
- package/src/editor/templates.stories.tsx +324 -324
- package/src/editor/toolbar.tsx +364 -358
- package/src/empty-state.stories.tsx +51 -51
- package/src/empty-state.tsx +126 -100
- package/src/empty-state.usage-notes.md +30 -30
- package/src/form.stories.tsx +112 -112
- package/src/form.tsx +176 -176
- package/src/globals.css +20 -20
- package/src/icon-button.tsx +85 -85
- package/src/icon-map.ts +335 -244
- package/src/icon.tsx +41 -41
- package/src/index.ts +90 -67
- package/src/input.stories.tsx +157 -157
- package/src/input.tsx +768 -759
- package/src/kpi-strip.tsx +47 -0
- package/src/localized-text.ts +76 -0
- package/src/locked-screen.stories.tsx +29 -29
- package/src/locked-screen.tsx +75 -61
- package/src/lockup.tsx +42 -0
- package/src/lottie.tsx +441 -0
- package/src/mark.tsx +62 -62
- package/src/math-text.stories.tsx +33 -33
- package/src/math-text.tsx +43 -43
- package/src/menu-bar.stories.tsx +198 -198
- package/src/menu-bar.tsx +373 -373
- package/src/message-thread.tsx +181 -0
- package/src/money/currency.ts +244 -230
- package/src/money/money-input.tsx +131 -0
- package/src/money/money.tsx +33 -0
- package/src/open-on-computer.tsx +150 -0
- package/src/otp-input.tsx +161 -0
- package/src/page-header.stories.tsx +95 -95
- package/src/page-header.tsx +122 -122
- package/src/page-shell.stories.tsx +42 -42
- package/src/page-shell.tsx +32 -32
- package/src/page-states.tsx +277 -0
- package/src/pagination.stories.tsx +45 -45
- package/src/pagination.tsx +98 -98
- package/src/paper-sheet.stories.tsx +88 -0
- package/src/paper-sheet.tsx +85 -0
- package/src/phone-tab-bar.tsx +152 -0
- package/src/plugin-card.stories.tsx +208 -180
- package/src/plugin-card.tsx +931 -848
- package/src/popover.stories.tsx +48 -48
- package/src/popover.tsx +55 -55
- package/src/radio-group.stories.tsx +26 -26
- package/src/radio-group.tsx +44 -44
- package/src/route-flow/editor.tsx +1087 -1014
- package/src/route-flow/model.ts +771 -716
- package/src/save-bar.tsx +94 -0
- package/src/scope-grant.tsx +139 -139
- package/src/screen-too-small.stories.tsx +61 -61
- package/src/screen-too-small.tsx +104 -104
- package/src/search-field.tsx +65 -0
- package/src/select.stories.tsx +44 -44
- package/src/select.tsx +197 -197
- package/src/separator.stories.tsx +34 -34
- package/src/separator.tsx +34 -34
- package/src/sheet.stories.tsx +49 -49
- package/src/sheet.tsx +168 -168
- package/src/skeleton.stories.tsx +28 -28
- package/src/skeleton.tsx +19 -19
- package/src/slider.stories.tsx +78 -78
- package/src/slider.tsx +300 -300
- package/src/spinner.stories.tsx +33 -33
- package/src/spinner.tsx +55 -55
- package/src/stepper.tsx +85 -0
- package/src/switch.stories.tsx +42 -42
- package/src/switch.tsx +41 -41
- package/src/switcher.stories.tsx +111 -111
- package/src/switcher.tsx +131 -131
- package/src/system-state.tsx +55 -0
- package/src/table.stories.tsx +48 -48
- package/src/table.tsx +121 -121
- package/src/tabs.stories.tsx +74 -74
- package/src/tabs.tsx +90 -90
- package/src/tag-input.stories.tsx +67 -67
- package/src/tag-input.tsx +117 -117
- package/src/tenant-logo.tsx +63 -63
- package/src/tenant-switcher.stories.tsx +38 -38
- package/src/tenant-switcher.tsx +164 -164
- package/src/textarea.stories.tsx +27 -27
- package/src/textarea.tsx +18 -18
- package/src/theme-mode.ts +52 -52
- package/src/time-grid.tsx +163 -0
- package/src/time-picker.stories.tsx +62 -62
- package/src/time-picker.tsx +615 -615
- package/src/toggle-group.tsx +138 -138
- package/src/tooltip.stories.tsx +43 -43
- package/src/tooltip.tsx +73 -73
- package/src/top-nav.stories.tsx +58 -58
- package/src/top-nav.tsx +324 -324
- package/src/undo-bar.tsx +107 -107
- package/src/utils.ts +45 -45
- package/src/view-toggle.stories.tsx +84 -84
- package/src/view-toggle.tsx +110 -110
package/src/editor/labels.ts
CHANGED
|
@@ -1,310 +1,394 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Every string the editor shows, with its English default. Pass Arabic (or
|
|
3
|
-
* any language) through `labels`; the feature layer fills it from t().
|
|
4
|
-
*/
|
|
5
|
-
export const EDITOR_LABELS = {
|
|
6
|
-
back: "Back",
|
|
7
|
-
documentTitle: "Document title",
|
|
8
|
-
untitled: "Untitled",
|
|
9
|
-
saved: "Saved {time}",
|
|
10
|
-
saving: "Saving…",
|
|
11
|
-
offline: "Offline. Changes save when you’re back online",
|
|
12
|
-
saveFailed: "Not saved. Try again",
|
|
13
|
-
modeEditing: "Editing",
|
|
14
|
-
modeViewing: "Viewing",
|
|
15
|
-
modeMenu: "Mode",
|
|
16
|
-
modeEditingHint: "Change the document directly",
|
|
17
|
-
modeViewingHint: "Read only",
|
|
18
|
-
formatting: "Formatting",
|
|
19
|
-
undo: "Undo",
|
|
20
|
-
redo: "Redo",
|
|
21
|
-
styleMenu: "Text style",
|
|
22
|
-
normalText: "Normal text",
|
|
23
|
-
bold: "Bold",
|
|
24
|
-
italic: "Italic",
|
|
25
|
-
underline: "Underline",
|
|
26
|
-
strike: "Strikethrough",
|
|
27
|
-
code: "Code",
|
|
28
|
-
link: "Link",
|
|
29
|
-
highlight: "Highlight",
|
|
30
|
-
insert: "Insert",
|
|
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
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* Every string the editor shows, with its English default. Pass Arabic (or
|
|
3
|
+
* any language) through `labels`; the feature layer fills it from t().
|
|
4
|
+
*/
|
|
5
|
+
export const EDITOR_LABELS = {
|
|
6
|
+
back: "Back",
|
|
7
|
+
documentTitle: "Document title",
|
|
8
|
+
untitled: "Untitled",
|
|
9
|
+
saved: "Saved {time}",
|
|
10
|
+
saving: "Saving…",
|
|
11
|
+
offline: "Offline. Changes save when you’re back online",
|
|
12
|
+
saveFailed: "Not saved. Try again",
|
|
13
|
+
modeEditing: "Editing",
|
|
14
|
+
modeViewing: "Viewing",
|
|
15
|
+
modeMenu: "Mode",
|
|
16
|
+
modeEditingHint: "Change the document directly",
|
|
17
|
+
modeViewingHint: "Read only",
|
|
18
|
+
formatting: "Formatting",
|
|
19
|
+
undo: "Undo",
|
|
20
|
+
redo: "Redo",
|
|
21
|
+
styleMenu: "Text style",
|
|
22
|
+
normalText: "Normal text",
|
|
23
|
+
bold: "Bold",
|
|
24
|
+
italic: "Italic",
|
|
25
|
+
underline: "Underline",
|
|
26
|
+
strike: "Strikethrough",
|
|
27
|
+
code: "Code",
|
|
28
|
+
link: "Link",
|
|
29
|
+
highlight: "Highlight",
|
|
30
|
+
insert: "Insert",
|
|
31
|
+
moreTools: "More tools",
|
|
32
|
+
hideKeyboard: "Hide keyboard",
|
|
33
|
+
outline: "Outline",
|
|
34
|
+
outlineEmpty: "Headings appear here",
|
|
35
|
+
selection: "Selection",
|
|
36
|
+
linkAddress: "Link address",
|
|
37
|
+
linkApply: "Apply",
|
|
38
|
+
linkOpen: "Open link",
|
|
39
|
+
linkCopy: "Copy link",
|
|
40
|
+
linkEdit: "Edit link",
|
|
41
|
+
linkRemove: "Remove link",
|
|
42
|
+
addBelow: "Add a block below",
|
|
43
|
+
dragHandle: "Drag to move, click for options",
|
|
44
|
+
blockMenu: "Block options",
|
|
45
|
+
turnInto: "Turn into",
|
|
46
|
+
duplicate: "Duplicate",
|
|
47
|
+
copyLinkToBlock: "Copy link to block",
|
|
48
|
+
moveUp: "Move up",
|
|
49
|
+
moveDown: "Move down",
|
|
50
|
+
delete: "Delete",
|
|
51
|
+
searchBlocks: "Search blocks",
|
|
52
|
+
noBlocks: "No blocks match",
|
|
53
|
+
slashMove: "↑↓ to move",
|
|
54
|
+
slashInsert: "Enter to insert",
|
|
55
|
+
slashInsertAfter: "Enter inserts after this line",
|
|
56
|
+
slashClose: "Esc to close",
|
|
57
|
+
placeholder: "Type / for blocks, {{ for fields, or just write",
|
|
58
|
+
laterBlock: "{block} block · edited in a later version",
|
|
59
|
+
words: "{n} words",
|
|
60
|
+
word: "1 word",
|
|
61
|
+
lastEdited: "Last edited by {name} at {time}",
|
|
62
|
+
lastEditedAt: "Last edited at {time}",
|
|
63
|
+
english: "English",
|
|
64
|
+
arabic: "Arabic",
|
|
65
|
+
kindTemplate: "Template",
|
|
66
|
+
kindLetter: "Letter",
|
|
67
|
+
kindReport: "Report",
|
|
68
|
+
kindNote: "Note",
|
|
69
|
+
kindWiki: "Wiki page",
|
|
70
|
+
kindLabel: "Label sheet",
|
|
71
|
+
groupBasic: "Basic",
|
|
72
|
+
groupLists: "Lists",
|
|
73
|
+
groupStructure: "Structure",
|
|
74
|
+
groupMedia: "Media",
|
|
75
|
+
groupWhity: "Whity",
|
|
76
|
+
groupSaved: "Saved blocks",
|
|
77
|
+
groupPlugin: "Plugins",
|
|
78
|
+
blockCallout: "Callout",
|
|
79
|
+
blockCalloutHint: "A note or something important",
|
|
80
|
+
blockToggle: "Toggle",
|
|
81
|
+
blockToggleHint: "A line that hides blocks under it",
|
|
82
|
+
blockColumns: "Columns",
|
|
83
|
+
blockColumnsHint: "Two columns side by side",
|
|
84
|
+
blockPageBreak: "Page break",
|
|
85
|
+
blockPageBreakHint: "Start a new page when printed",
|
|
86
|
+
blockTable: "Table",
|
|
87
|
+
blockTableHint: "Rows and columns",
|
|
88
|
+
blockImage: "Image",
|
|
89
|
+
blockImageHint: "A picture with a caption",
|
|
90
|
+
blockFile: "File",
|
|
91
|
+
blockFileHint: "A file to download",
|
|
92
|
+
blockRecord: "Record",
|
|
93
|
+
blockRecordHint: "A live invoice, customer or any record",
|
|
94
|
+
blockChart: "Chart",
|
|
95
|
+
blockChartHint: "A live chart",
|
|
96
|
+
blockSignature: "Signature and stamp",
|
|
97
|
+
blockSignatureHint: "For letters and contracts",
|
|
98
|
+
blockBarcode: "Barcode",
|
|
99
|
+
blockBarcodeHint: "Code 128, EAN-13 or Code 39",
|
|
100
|
+
blockQr: "QR code",
|
|
101
|
+
blockQrHint: "A link or value as a QR code",
|
|
102
|
+
blockMath: "Maths",
|
|
103
|
+
blockMathHint: "A formula in TeX",
|
|
104
|
+
toggleOpen: "Show what’s inside",
|
|
105
|
+
toggleClose: "Hide what’s inside",
|
|
106
|
+
imageEmpty: "Choose an image",
|
|
107
|
+
fileEmpty: "Choose a file",
|
|
108
|
+
fileDownload: "Download {name}",
|
|
109
|
+
live: "Live",
|
|
110
|
+
recordEmpty: "Choose a record",
|
|
111
|
+
recordHidden: "You can’t see this record",
|
|
112
|
+
recordUnavailable: "Records aren’t available here",
|
|
113
|
+
recordFailed: "The record didn’t load",
|
|
114
|
+
chartEmpty: "Choose what the chart shows",
|
|
115
|
+
chartHidden: "You can’t see this chart’s data",
|
|
116
|
+
chartUnavailable: "Charts aren’t available here",
|
|
117
|
+
chartFailed: "The chart didn’t load",
|
|
118
|
+
chartNoData: "No data yet",
|
|
119
|
+
chartLiveRange: "{range} · live",
|
|
120
|
+
chartShowTable: "Show as table",
|
|
121
|
+
chartShowChart: "Show as chart",
|
|
122
|
+
chartCategory: "Item",
|
|
123
|
+
signatureName: "Name",
|
|
124
|
+
signatureDate: "Date",
|
|
125
|
+
signatureStamp: "Company stamp",
|
|
126
|
+
barcodeEmpty: "Set the barcode’s value",
|
|
127
|
+
qrEmpty: "Set the QR code’s value",
|
|
128
|
+
codeFromField: "Drawn from {value} when printed",
|
|
129
|
+
mathEmpty: "Write a formula",
|
|
130
|
+
blockToolbar: "Block",
|
|
131
|
+
calloutNote: "Note",
|
|
132
|
+
calloutImportant: "Important",
|
|
133
|
+
widthHalf: "Half width",
|
|
134
|
+
widthWide: "Wide",
|
|
135
|
+
widthFull: "Full width",
|
|
136
|
+
caption: "Caption",
|
|
137
|
+
altText: "Alt text",
|
|
138
|
+
replace: "Replace",
|
|
139
|
+
upload: "Upload",
|
|
140
|
+
uploading: "Uploading…",
|
|
141
|
+
uploadFailed: "The upload didn’t finish. Try again.",
|
|
142
|
+
headerRow: "Header row",
|
|
143
|
+
addRow: "Row",
|
|
144
|
+
addColumn: "Column",
|
|
145
|
+
deleteRow: "Delete row",
|
|
146
|
+
deleteColumn: "Delete column",
|
|
147
|
+
columnAlign: "Column alignment",
|
|
148
|
+
alignStart: "Align to start",
|
|
149
|
+
alignEnd: "Align to end",
|
|
150
|
+
deleteBlock: "Delete block",
|
|
151
|
+
recordChoose: "Change record",
|
|
152
|
+
recordType: "Record type",
|
|
153
|
+
recordId: "Record",
|
|
154
|
+
viewCard: "Card",
|
|
155
|
+
viewSummary: "Summary",
|
|
156
|
+
chartBar: "Bars",
|
|
157
|
+
chartLine: "Line",
|
|
158
|
+
chartDonut: "Donut",
|
|
159
|
+
chartSource: "Data",
|
|
160
|
+
chartTitle: "Title",
|
|
161
|
+
addSigner: "Signer",
|
|
162
|
+
signerRole: "Role",
|
|
163
|
+
stamp: "Stamp",
|
|
164
|
+
symbology: "Type",
|
|
165
|
+
value: "Value",
|
|
166
|
+
showText: "Show the value under it",
|
|
167
|
+
formula: "Formula",
|
|
168
|
+
done: "Done",
|
|
169
|
+
blockText: "Text",
|
|
170
|
+
blockTextHint: "Plain paragraph",
|
|
171
|
+
blockH1: "Heading 1",
|
|
172
|
+
blockH1Hint: "Big section heading",
|
|
173
|
+
blockH2: "Heading 2",
|
|
174
|
+
blockH2Hint: "Medium heading",
|
|
175
|
+
blockH3: "Heading 3",
|
|
176
|
+
blockH3Hint: "Small heading",
|
|
177
|
+
blockQuote: "Quote",
|
|
178
|
+
blockQuoteHint: "A quotation",
|
|
179
|
+
blockCode: "Code",
|
|
180
|
+
blockCodeHint: "Code or a fixed-width snippet",
|
|
181
|
+
blockBullet: "Bulleted list",
|
|
182
|
+
blockBulletHint: "A simple list",
|
|
183
|
+
blockNumber: "Numbered list",
|
|
184
|
+
blockNumberHint: "A list with numbers",
|
|
185
|
+
blockChecklist: "Checklist",
|
|
186
|
+
blockChecklistHint: "Tasks with checkboxes",
|
|
187
|
+
blockDivider: "Divider",
|
|
188
|
+
blockDividerHint: "A line between sections",
|
|
189
|
+
field: "Field",
|
|
190
|
+
fieldPicker: "Fields",
|
|
191
|
+
fieldSearch: "Search fields",
|
|
192
|
+
fieldBar: "Field",
|
|
193
|
+
fieldExample: "e.g.",
|
|
194
|
+
fieldChange: "Change field",
|
|
195
|
+
fieldRemove: "Remove field",
|
|
196
|
+
noFields: "No fields match",
|
|
197
|
+
fieldMissing: "No value for this record",
|
|
198
|
+
zoom: "Zoom",
|
|
199
|
+
zoomFit: "Fit width",
|
|
200
|
+
zoomPercent: "{n}%",
|
|
201
|
+
view: "View",
|
|
202
|
+
viewContinuous: "Continuous",
|
|
203
|
+
viewPage: "Page view",
|
|
204
|
+
pageOf: "Page {page} of {pages}",
|
|
205
|
+
pageContinued: "{title} · continued",
|
|
206
|
+
pageSetup: "A4 · margins 16 mm",
|
|
207
|
+
reference: "Ref",
|
|
208
|
+
preview: "Preview",
|
|
209
|
+
previewingWith: "Previewing with",
|
|
210
|
+
changeRecord: "Change record",
|
|
211
|
+
showFields: "Show fields",
|
|
212
|
+
backToEditing: "Back to editing",
|
|
213
|
+
exampleValues: "example values",
|
|
214
|
+
typedValues: "the values you type",
|
|
215
|
+
previewStatus: "Previewing {record}: as it will print, read-only",
|
|
216
|
+
previewEditingStatus: "Previewing {record}: as it will print",
|
|
217
|
+
pdf: "PDF",
|
|
218
|
+
publish: "Publish",
|
|
219
|
+
draftSaved: "Draft saved {time}",
|
|
220
|
+
publishedInUse: "published version {n} is in use",
|
|
221
|
+
notPublished: "not published yet",
|
|
222
|
+
publishTitle: "Before you publish",
|
|
223
|
+
publishExplain: "Publishing makes this draft the version new documents are issued from.",
|
|
224
|
+
publishExplainFor: "Publishing makes this draft the version new documents are issued from, for every {records}.",
|
|
225
|
+
publishChecking: "Checking the template…",
|
|
226
|
+
publishBlockers: "What blocks publishing",
|
|
227
|
+
publishClear: "Nothing blocks publishing.",
|
|
228
|
+
publishFailed: "Not published. Try again",
|
|
229
|
+
publishVersion: "Publish version {n}",
|
|
230
|
+
keepEditing: "Keep editing",
|
|
231
|
+
review: "Review",
|
|
232
|
+
show: "Show",
|
|
233
|
+
blockerSuggestion: "1 open suggestion",
|
|
234
|
+
blockerSuggestions: "{n} open suggestions",
|
|
235
|
+
blockerSuggestionsHint: "Accept or reject them first.",
|
|
236
|
+
blockerPlugin: "{plugin} is turned off",
|
|
237
|
+
blockerPluginHint: "Its blocks can’t be printed until it’s on again.",
|
|
238
|
+
blockerNoPrint: "A block has no print view",
|
|
239
|
+
blockerNoPrintHint: "It can’t be printed. Remove it, or keep it for notes.",
|
|
240
|
+
blockerField: "{field} isn’t a field of this record type",
|
|
241
|
+
blockerFieldHint: "Remove it, or pick a field the record has.",
|
|
242
|
+
blockerTheme: "This document uses a theme the workspace doesn’t have: {ref}",
|
|
243
|
+
blockerThemeHint: "Choose another theme or restore it.",
|
|
244
|
+
blockerTooLarge: "This template is too large to print: {size}, and the limit is {max}",
|
|
245
|
+
blockerTooLargeHint: "Use smaller images or fewer of them, then publish again.",
|
|
246
|
+
labelGrid: "{columns} × {rows} labels",
|
|
247
|
+
labelStock: "Label stock",
|
|
248
|
+
labelCertificate: "Certificate",
|
|
249
|
+
labelSheet: "Sheet",
|
|
250
|
+
labelColumns: "Columns",
|
|
251
|
+
labelRows: "Rows",
|
|
252
|
+
labelWidth: "Label width (mm)",
|
|
253
|
+
labelHeight: "Label height (mm)",
|
|
254
|
+
labelGapX: "Gap between columns (mm)",
|
|
255
|
+
labelGapY: "Gap between rows (mm)",
|
|
256
|
+
labelTooBig: "The labels don’t fit on the sheet.",
|
|
257
|
+
labelOverflow: "Doesn’t fit the label",
|
|
258
|
+
labelsPerSheet: "{n} labels a sheet",
|
|
259
|
+
printLabels: "Print labels",
|
|
260
|
+
fieldsThisTemplate: "This template",
|
|
261
|
+
fieldNew: "New field “{name}”",
|
|
262
|
+
fieldNewHint: "Type a name to add a field of this template.",
|
|
263
|
+
modeSuggesting: "Suggesting",
|
|
264
|
+
modeSuggestingHint: "Your edits become suggestions to accept",
|
|
265
|
+
modeSuggestingHintNoEdit: "An editor accepts your changes",
|
|
266
|
+
modeEditingLocked: "Ask an owner for edit access",
|
|
267
|
+
modeViewingCommentHint: "Read and comment, nothing changes",
|
|
268
|
+
comment: "Comment",
|
|
269
|
+
commentsAndSuggestions: "Comments and suggestions",
|
|
270
|
+
close: "Close",
|
|
271
|
+
cancel: "Cancel",
|
|
272
|
+
commentPlaceholder: "Comment or add others with @",
|
|
273
|
+
replyPlaceholder: "Reply or add others with @",
|
|
274
|
+
reply: "Reply",
|
|
275
|
+
resolve: "Resolve",
|
|
276
|
+
reopen: "Reopen",
|
|
277
|
+
resolvedBy: "Resolved by {name} · {time}",
|
|
278
|
+
accept: "Accept",
|
|
279
|
+
reject: "Reject",
|
|
280
|
+
railAll: "All",
|
|
281
|
+
acceptAll: "Accept all",
|
|
282
|
+
rejectAll: "Reject all",
|
|
283
|
+
acceptAllFrom: "Accept all from {name}",
|
|
284
|
+
rejectAllFrom: "Reject all from {name}",
|
|
285
|
+
countSuggestion: "1 suggestion",
|
|
286
|
+
countSuggestions: "{n} suggestions",
|
|
287
|
+
countComment: "1 comment",
|
|
288
|
+
countComments: "{n} comments",
|
|
289
|
+
countResolved: "{n} resolved",
|
|
290
|
+
tabAll: "All",
|
|
291
|
+
tabComments: "Comments",
|
|
292
|
+
tabSuggestions: "Suggestions",
|
|
293
|
+
tabResolved: "Resolved",
|
|
294
|
+
railEmpty: "No comments or suggestions yet. Select text and choose Comment.",
|
|
295
|
+
resolvedEmpty: "No resolved comments",
|
|
296
|
+
mentionPeople: "People",
|
|
297
|
+
mentionNone: "No one matches",
|
|
298
|
+
mentionHint: "Type a name to mention someone",
|
|
299
|
+
you: "You",
|
|
300
|
+
now: "now",
|
|
301
|
+
oneReply: "1 reply",
|
|
302
|
+
replies: "{n} replies",
|
|
303
|
+
actorFor: "for",
|
|
304
|
+
sugReplace: "Replace {from} with {to}",
|
|
305
|
+
sugAdd: "Add {text}",
|
|
306
|
+
sugDelete: "Delete {text}",
|
|
307
|
+
sugFormat: "Make {text} {mark}",
|
|
308
|
+
sugUnformat: "Remove {mark} from {text}",
|
|
309
|
+
sugAddBlocks: "Add {text}",
|
|
310
|
+
sugDeleteBlocks: "Delete {text}",
|
|
311
|
+
sugMoveBlock: "Move {text}",
|
|
312
|
+
sugBlock: "a block",
|
|
313
|
+
sugSending: "Sending…",
|
|
314
|
+
sugUnplaced: "Its text has changed since",
|
|
315
|
+
sugRefused: "That change can’t be a suggestion yet, so it was undone.",
|
|
316
|
+
collabFailed: "That didn’t work. Try again.",
|
|
317
|
+
agentAsk: "Ask an agent",
|
|
318
|
+
agentClose: "Close",
|
|
319
|
+
agentNoneConnected: "You haven't connected an agent yet. Connect your AI app to Whity, then ask it here.",
|
|
320
|
+
agentConnect: "Connect an agent",
|
|
321
|
+
agentPicker: "Agent",
|
|
322
|
+
agentAny: "Any of my agents",
|
|
323
|
+
agentThisDocument: "This document",
|
|
324
|
+
agentRequest: "What should the agent do?",
|
|
325
|
+
agentRequestPlaceholder: "Ask for a paragraph, a rewrite or a check",
|
|
326
|
+
agentWritesFor: "Writes only suggestions, for {name}",
|
|
327
|
+
agentWrites: "Writes only suggestions",
|
|
328
|
+
agentAskButton: "Ask",
|
|
329
|
+
agentRequests: "Your requests",
|
|
330
|
+
agentWaiting: "Waiting for your agent to pick this up",
|
|
331
|
+
agentWorking: "Working on it",
|
|
332
|
+
agentStopped: "Stopped before it finished",
|
|
333
|
+
agentFailedNext: "Check that your agent is still connected, then try again.",
|
|
334
|
+
agentQueued: "Waiting",
|
|
335
|
+
agentRunning: "Running",
|
|
336
|
+
agentDone: "Done",
|
|
337
|
+
agentStoppedBadge: "Stopped",
|
|
338
|
+
agentFailed: "Failed",
|
|
339
|
+
agentStop: "Stop",
|
|
340
|
+
agentRetry: "Try again",
|
|
341
|
+
agentRewrite: "Rewrite with an agent",
|
|
342
|
+
agentRewriteRequest: "Rewrite this, keeping the meaning",
|
|
343
|
+
saveBlockTitle: "Save as block",
|
|
344
|
+
saveBlockExplain: "Saves the {n} selected blocks as one block you can insert from the / menu.",
|
|
345
|
+
saveBlockName: "Name",
|
|
346
|
+
saveBlockNamePlaceholder: "Bank details",
|
|
347
|
+
saveBlockHow: "When it's inserted",
|
|
348
|
+
saveBlockSynced: "Synced",
|
|
349
|
+
saveBlockSyncedHint: "Editing it once updates every document that uses it. Published templates pick up the change when they're published again.",
|
|
350
|
+
saveBlockCopy: "Copy",
|
|
351
|
+
saveBlockCopyHint: "Inserts a copy people change freely.",
|
|
352
|
+
saveBlockWho: "Who can use it",
|
|
353
|
+
saveBlockOnlyMe: "Only me",
|
|
354
|
+
saveBlockOnlyMeHint: "It's in your / menu only.",
|
|
355
|
+
saveBlockEveryone: "Everyone in the workspace",
|
|
356
|
+
saveBlockEveryoneHint: "It joins the workspace library.",
|
|
357
|
+
saveBlockSave: "Save block",
|
|
358
|
+
saveBlockCancel: "Cancel",
|
|
359
|
+
saveBlockExplainOne: "Saves this block so you can insert it from the / menu.",
|
|
360
|
+
saveAsBlock: "Save as block",
|
|
361
|
+
savedBlockLabel: "Saved block: {name}",
|
|
362
|
+
savedBlockSynced: "Synced",
|
|
363
|
+
savedBlockUsedIn: "used in {n} documents",
|
|
364
|
+
savedBlockUsedInOne: "used in 1 document",
|
|
365
|
+
savedBlockDetach: "Detach",
|
|
366
|
+
savedBlockDetachHint: "Turn it into ordinary blocks you change here only",
|
|
367
|
+
savedBlockMissing: "This saved block was deleted or isn't shared with you.",
|
|
368
|
+
savedBlockSyncedHint: "Synced: changes reach every document",
|
|
369
|
+
savedBlockCopyHint: "Inserts a copy you change freely",
|
|
370
|
+
perDocumentMark: "Filled per document",
|
|
371
|
+
perDocumentFill: "Filled per document: {text}",
|
|
372
|
+
pluginBlockLabel: "{name}, from {plugin}",
|
|
373
|
+
pluginVerified: "Verified",
|
|
374
|
+
pluginNotVerified: "Not verified",
|
|
375
|
+
pluginPrints: "Prints",
|
|
376
|
+
pluginNotesOnly: "Notes only",
|
|
377
|
+
pluginEdit: "Edit",
|
|
378
|
+
pluginEditTitle: "Edit {name}",
|
|
379
|
+
pluginSave: "Save",
|
|
380
|
+
pluginCancel: "Cancel",
|
|
381
|
+
pluginChoose: "Choose",
|
|
382
|
+
pluginNeeds: "Needs the {plugin} plugin",
|
|
383
|
+
pluginNeedsHint: "Its data is kept. A template with it can't be published until the plugin is on.",
|
|
384
|
+
pluginEnable: "Enable",
|
|
385
|
+
pluginEnableFailed: "The plugin wasn't turned on. Try again.",
|
|
386
|
+
pluginNoView: "This block has nothing to show yet.",
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
export type EditorLabels = typeof EDITOR_LABELS
|
|
390
|
+
|
|
391
|
+
/** Fill `{name}` placeholders. */
|
|
392
|
+
export function fill(template: string, values: Record<string, string | number>): string {
|
|
393
|
+
return template.replace(/\{(\w+)\}/g, (_, key: string) => String(values[key] ?? `{${key}}`))
|
|
394
|
+
}
|