@stll/folio-core 0.1.3 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ai-edits/clean-text.d.ts +21 -1
- package/dist/ai-edits/clean-text.js +69 -1
- package/dist/ai-edits/headless.d.ts +49 -22
- package/dist/ai-edits/headless.js +101 -77
- package/dist/ai-edits/index.d.ts +3 -1
- package/dist/ai-edits/index.js +3 -1
- package/dist/ai-edits/read.d.ts +43 -0
- package/dist/ai-edits/read.js +91 -0
- package/dist/docx/index.d.ts +2 -0
- package/dist/docx/index.js +2 -0
- package/dist/docx/parser.js +1 -1
- package/dist/docx/wrapTypes.d.ts +8 -1
- package/dist/docx/wrapTypes.js +0 -8
- package/dist/i18n/messages/catalogs.gen.d.ts +9899 -0
- package/dist/i18n/messages/catalogs.gen.js +9831 -0
- package/dist/i18n/messages/messages.gen.d.ts +585 -0
- package/dist/i18n/messages/messages.gen.js +0 -0
- package/dist/i18n/messages.d.ts +13 -0
- package/dist/i18n/messages.js +39 -0
- package/dist/layout-bridge/cellSelectionHighlight.d.ts +18 -0
- package/dist/layout-bridge/cellSelectionHighlight.js +36 -0
- package/dist/layout-bridge/headerFooterLayout.d.ts +50 -0
- package/dist/layout-bridge/headerFooterLayout.js +216 -0
- package/dist/layout-bridge/measuring/measureBlocksPipeline.d.ts +33 -0
- package/dist/layout-bridge/measuring/measureBlocksPipeline.js +0 -0
- package/dist/layout-bridge/sectionColumns.d.ts +11 -0
- package/dist/layout-bridge/sectionColumns.js +21 -0
- package/dist/layout-bridge/tableInsertHover.d.ts +42 -0
- package/dist/layout-bridge/tableInsertHover.js +102 -0
- package/dist/layout-engine/index.d.ts +2 -1
- package/dist/layout-engine/index.js +2 -1
- package/dist/layout-engine/measure/measureParagraph.js +40 -5
- package/dist/layout-engine/pmPageIndex.d.ts +24 -0
- package/dist/layout-engine/pmPageIndex.js +37 -0
- package/dist/layout-painter/imageLayout.d.ts +101 -0
- package/dist/layout-painter/imageLayout.js +161 -0
- package/dist/layout-painter/renderPage.d.ts +16 -1
- package/dist/layout-painter/renderPage.js +28 -1
- package/dist/layout-painter/renderParagraph.js +1 -1
- package/dist/layout-painter/sdtBoundary.d.ts +24 -1
- package/dist/layout-painter/sdtBoundary.js +40 -1
- package/dist/managers/AutoSaveManager.d.ts +89 -0
- package/dist/managers/AutoSaveManager.js +279 -0
- package/dist/managers/ClipboardManager.d.ts +31 -0
- package/dist/managers/ClipboardManager.js +147 -0
- package/dist/paged-layout/rangeProjection.d.ts +23 -1
- package/dist/paged-layout/rangeProjection.js +34 -1
- package/dist/prosemirror/cellDragSelection.d.ts +34 -0
- package/dist/prosemirror/cellDragSelection.js +69 -0
- package/dist/prosemirror/commands/sectionBreak.d.ts +15 -0
- package/dist/prosemirror/commands/sectionBreak.js +54 -0
- package/dist/prosemirror/commentIdAllocator.d.ts +32 -0
- package/dist/prosemirror/commentIdAllocator.js +35 -0
- package/dist/prosemirror/commentOps.d.ts +35 -0
- package/dist/prosemirror/commentOps.js +104 -0
- package/dist/prosemirror/conversion/toProseDoc.js +29 -6
- package/dist/prosemirror/extensions/index.d.ts +3 -0
- package/dist/prosemirror/extensions/index.js +3 -0
- package/dist/prosemirror/imageCommit.d.ts +42 -0
- package/dist/prosemirror/imageCommit.js +118 -0
- package/dist/prosemirror/paraText.d.ts +26 -0
- package/dist/prosemirror/paraText.js +73 -0
- package/dist/prosemirror/plugins/templateDirectives.d.ts +21 -1
- package/dist/prosemirror/plugins/templateDirectives.js +40 -1
- package/dist/prosemirror/queries.d.ts +46 -0
- package/dist/prosemirror/queries.js +74 -0
- package/dist/prosemirror/styles/styleResolver.d.ts +43 -1
- package/dist/prosemirror/styles/styleResolver.js +34 -0
- package/dist/prosemirror/tableResize.d.ts +49 -0
- package/dist/prosemirror/tableResize.js +162 -0
- package/dist/prosemirror/utils/extractTrackedChanges.d.ts +106 -0
- package/dist/prosemirror/utils/extractTrackedChanges.js +379 -0
- package/dist/prosemirror/utils/visualLineNavigation.d.ts +27 -0
- package/dist/prosemirror/utils/visualLineNavigation.js +217 -0
- package/dist/server.d.ts +2 -1
- package/dist/style-engine/index.d.ts +2 -2
- package/dist/style-engine/styleEngine.d.ts +14 -1
- package/dist/style-engine/styleEngine.js +15 -0
- package/dist/utils/colorResolver.d.ts +8 -1
- package/dist/utils/colorResolver.js +12 -1
- package/dist/utils/findVerticalScrollParent.d.ts +20 -0
- package/dist/utils/findVerticalScrollParent.js +30 -0
- package/dist/utils/fontResolver.d.ts +22 -3
- package/dist/utils/fontResolver.js +216 -31
- package/package.json +10 -1
|
@@ -0,0 +1,585 @@
|
|
|
1
|
+
//#region src/i18n/messages/messages.gen.d.ts
|
|
2
|
+
type Messages = {
|
|
3
|
+
"folio": {
|
|
4
|
+
"acceptChange": "Accept Change";
|
|
5
|
+
"accessDenied": "Access denied. You may not have permission to access this file.";
|
|
6
|
+
"alignCenter": "Center";
|
|
7
|
+
"alignLeft": "Align Left";
|
|
8
|
+
"alignRight": "Align Right";
|
|
9
|
+
"alignment": {
|
|
10
|
+
"alignLeftShortcut": "Ctrl+L";
|
|
11
|
+
"alignRightShortcut": "Ctrl+R";
|
|
12
|
+
"centerShortcut": "Ctrl+E";
|
|
13
|
+
"justifyShortcut": "Ctrl+J";
|
|
14
|
+
};
|
|
15
|
+
"alignmentGroup": "Alignment";
|
|
16
|
+
"bold": "Bold";
|
|
17
|
+
"boldShortcut": "Bold (Ctrl+B)";
|
|
18
|
+
"bulletList": "Bullet List";
|
|
19
|
+
"checkingDocxEditDescription": "stella is still checking whether this DOCX can be edited safely. Try again when the document finishes loading.";
|
|
20
|
+
"checkingDocxEditTitle": "Checking document";
|
|
21
|
+
"clearDate": "Clear date";
|
|
22
|
+
"clipboardReadFailed": "Couldn't read the clipboard. Check clipboard permissions and try again.";
|
|
23
|
+
"colorPicker": {
|
|
24
|
+
"ariaLabel": "{type} picker";
|
|
25
|
+
"automatic": "Automatic";
|
|
26
|
+
"colors": {
|
|
27
|
+
"blue": "Blue";
|
|
28
|
+
"darkBlue": "Dark Blue";
|
|
29
|
+
"darkRed": "Dark Red";
|
|
30
|
+
"green": "Green";
|
|
31
|
+
"lightBlue": "Light Blue";
|
|
32
|
+
"lightGreen": "Light Green";
|
|
33
|
+
"orange": "Orange";
|
|
34
|
+
"purple": "Purple";
|
|
35
|
+
"red": "Red";
|
|
36
|
+
"yellow": "Yellow";
|
|
37
|
+
};
|
|
38
|
+
"customColor": "Custom Color";
|
|
39
|
+
"noColor": "No color";
|
|
40
|
+
"standardColors": "Standard Colors";
|
|
41
|
+
"themeColors": "Theme Colors";
|
|
42
|
+
};
|
|
43
|
+
"comment": "Comment";
|
|
44
|
+
"comments": {
|
|
45
|
+
"addPlaceholder": "Add a comment...";
|
|
46
|
+
"cancel": "Cancel";
|
|
47
|
+
"hideAll": "Hide comments";
|
|
48
|
+
"moreReplies": "{count} more replies";
|
|
49
|
+
"noComments": "No comments yet.";
|
|
50
|
+
"reply": "Reply";
|
|
51
|
+
"replyPlaceholder": "Reply or add others with @";
|
|
52
|
+
"showAll": "All comments";
|
|
53
|
+
"unknownAuthor": "Unknown";
|
|
54
|
+
"visibility": "Comments";
|
|
55
|
+
};
|
|
56
|
+
"common": {
|
|
57
|
+
"apply": "Apply";
|
|
58
|
+
"cancel": "Cancel";
|
|
59
|
+
"closeDialog": "Close";
|
|
60
|
+
"insert": "Insert";
|
|
61
|
+
"px": "px";
|
|
62
|
+
"update": "Update";
|
|
63
|
+
};
|
|
64
|
+
"contentControlDateAriaLabel": "Pick a date";
|
|
65
|
+
"contentControlDropdownAriaLabel": "Dropdown options";
|
|
66
|
+
"contentControlDropdownNoOptions": "No options";
|
|
67
|
+
"contextMenu": {
|
|
68
|
+
"copy": "Copy";
|
|
69
|
+
"copyShortcut": "Ctrl+C";
|
|
70
|
+
"cut": "Cut";
|
|
71
|
+
"cutShortcut": "Ctrl+X";
|
|
72
|
+
"delete": "Delete";
|
|
73
|
+
"deleteShortcut": "Del";
|
|
74
|
+
"paste": "Paste";
|
|
75
|
+
"pastePlainTextShortcut": "Ctrl+Shift+V";
|
|
76
|
+
"pasteShortcut": "Ctrl+V";
|
|
77
|
+
"selectAllShortcut": "Ctrl+A";
|
|
78
|
+
};
|
|
79
|
+
"copy": "Copy";
|
|
80
|
+
"copyLink": "Copy link";
|
|
81
|
+
"cut": "Cut";
|
|
82
|
+
"decreaseFontSize": "Decrease font size";
|
|
83
|
+
"decreaseIndent": "Decrease Indent";
|
|
84
|
+
"delete": "Delete";
|
|
85
|
+
"deleteColumn": "Delete column";
|
|
86
|
+
"deleteRow": "Delete row";
|
|
87
|
+
"deleted": "Deleted";
|
|
88
|
+
"dialogs": {
|
|
89
|
+
"findReplace": {
|
|
90
|
+
"matchesFound": "{total} matches found";
|
|
91
|
+
"replaceButton": "Replace";
|
|
92
|
+
"toggleReplace": "Toggle replace";
|
|
93
|
+
};
|
|
94
|
+
"footnoteProperties": {
|
|
95
|
+
"endnotePositions": {
|
|
96
|
+
"endOfDocument": "End of document";
|
|
97
|
+
"endOfSection": "End of section";
|
|
98
|
+
};
|
|
99
|
+
"endnotes": "Endnotes";
|
|
100
|
+
"footnotePositions": {
|
|
101
|
+
"belowText": "Below text";
|
|
102
|
+
"bottomOfPage": "Bottom of page";
|
|
103
|
+
};
|
|
104
|
+
"footnotes": "Footnotes";
|
|
105
|
+
"formats": {
|
|
106
|
+
"decimal": "1, 2, 3, ...";
|
|
107
|
+
"lowerAlpha": "a, b, c, ...";
|
|
108
|
+
"lowerRoman": "i, ii, iii, ...";
|
|
109
|
+
"symbols": "*, †, ‡, ...";
|
|
110
|
+
"upperAlpha": "A, B, C, ...";
|
|
111
|
+
"upperRoman": "I, II, III, ...";
|
|
112
|
+
};
|
|
113
|
+
"numberFormat": "Number format";
|
|
114
|
+
"numbering": "Numbering";
|
|
115
|
+
"numberingOptions": {
|
|
116
|
+
"continuous": "Continuous";
|
|
117
|
+
"restartPage": "Restart each page";
|
|
118
|
+
"restartSection": "Restart each section";
|
|
119
|
+
};
|
|
120
|
+
"position": "Position";
|
|
121
|
+
"startAt": "Start at";
|
|
122
|
+
"title": "Footnote & Endnote Properties";
|
|
123
|
+
};
|
|
124
|
+
"hyperlink": {
|
|
125
|
+
"bookmarkLabel": "Bookmark";
|
|
126
|
+
"bookmarkPlaceholder": "Select a bookmark";
|
|
127
|
+
"displayTextHint": "Defaults to the selected text";
|
|
128
|
+
"displayTextLabel": "Display text";
|
|
129
|
+
"displayTextPlaceholder": "Text to display";
|
|
130
|
+
"invalidUrl": "Enter a valid URL";
|
|
131
|
+
"removeLink": "Remove link";
|
|
132
|
+
"tabBookmark": "Bookmark";
|
|
133
|
+
"tabWebAddress": "Web address";
|
|
134
|
+
"titleEdit": "Edit hyperlink";
|
|
135
|
+
"titleInsert": "Insert hyperlink";
|
|
136
|
+
"tooltipLabel": "Tooltip";
|
|
137
|
+
"tooltipPlaceholder": "Optional tooltip text";
|
|
138
|
+
"urlHint": "Include a full web address, or a mailto: / tel: link";
|
|
139
|
+
"urlLabel": "URL";
|
|
140
|
+
"urlPlaceholder": "https://example.com";
|
|
141
|
+
"urlRequired": "Enter a URL";
|
|
142
|
+
};
|
|
143
|
+
"imagePosition": {
|
|
144
|
+
"align": "Align";
|
|
145
|
+
"alignOptions": {
|
|
146
|
+
"bottom": "Bottom";
|
|
147
|
+
"center": "Center";
|
|
148
|
+
"left": "Left";
|
|
149
|
+
"right": "Right";
|
|
150
|
+
"top": "Top";
|
|
151
|
+
};
|
|
152
|
+
"alignment": "Alignment";
|
|
153
|
+
"horizontal": "Horizontal";
|
|
154
|
+
"offset": "Offset";
|
|
155
|
+
"offsetPx": "Offset (px)";
|
|
156
|
+
"relativeOptions": {
|
|
157
|
+
"character": "Character";
|
|
158
|
+
"column": "Column";
|
|
159
|
+
"line": "Line";
|
|
160
|
+
"margin": "Margin";
|
|
161
|
+
"page": "Page";
|
|
162
|
+
"paragraph": "Paragraph";
|
|
163
|
+
};
|
|
164
|
+
"relativeTo": "Relative to";
|
|
165
|
+
"title": "Image Position";
|
|
166
|
+
"vertical": "Vertical";
|
|
167
|
+
};
|
|
168
|
+
"imageProperties": {
|
|
169
|
+
"altText": "Alt Text";
|
|
170
|
+
"altTextPlaceholder": "Describe this image for accessibility...";
|
|
171
|
+
"border": "Border";
|
|
172
|
+
"borderStyles": {
|
|
173
|
+
"dashed": "Dashed";
|
|
174
|
+
"dotted": "Dotted";
|
|
175
|
+
"double": "Double";
|
|
176
|
+
"solid": "Solid";
|
|
177
|
+
};
|
|
178
|
+
"color": "Color";
|
|
179
|
+
"dimensions": "Dimensions";
|
|
180
|
+
"heightLabel": "Height";
|
|
181
|
+
"lockAspectRatio": "Lock aspect ratio";
|
|
182
|
+
"style": "Style";
|
|
183
|
+
"textWrapping": "Text wrapping";
|
|
184
|
+
"title": "Image Properties";
|
|
185
|
+
"width": "Width";
|
|
186
|
+
"widthLabel": "Width";
|
|
187
|
+
"wrapOptions": {
|
|
188
|
+
"behind": "Behind text";
|
|
189
|
+
"inFront": "In front of text";
|
|
190
|
+
"inline": "In line with text";
|
|
191
|
+
"topAndBottom": "Top and bottom";
|
|
192
|
+
"wrapLeft": "Wrap left";
|
|
193
|
+
"wrapRight": "Wrap right";
|
|
194
|
+
};
|
|
195
|
+
};
|
|
196
|
+
"insertSymbol": {
|
|
197
|
+
"categories": {
|
|
198
|
+
"arrows": "Arrows";
|
|
199
|
+
"common": "Common";
|
|
200
|
+
"currency": "Currency";
|
|
201
|
+
"greek": "Greek";
|
|
202
|
+
"math": "Math";
|
|
203
|
+
"shapes": "Shapes";
|
|
204
|
+
};
|
|
205
|
+
"noResults": "No symbols found for \"{query}\"";
|
|
206
|
+
"noResultsEmpty": "No symbols in this category";
|
|
207
|
+
"recent": "Recent";
|
|
208
|
+
"searchPlaceholder": "Search symbols...";
|
|
209
|
+
"title": "Insert symbol";
|
|
210
|
+
};
|
|
211
|
+
"insertTable": {
|
|
212
|
+
"autofit": "Autofit";
|
|
213
|
+
"columnWidthLabel": "Column width";
|
|
214
|
+
"columnsLabel": "Columns";
|
|
215
|
+
"fixedWidth": "Fixed width";
|
|
216
|
+
"hoverToSelect": "Hover to select table size";
|
|
217
|
+
"insertButton": "Insert";
|
|
218
|
+
"orSpecifySize": "Or specify size";
|
|
219
|
+
"rowsLabel": "Rows";
|
|
220
|
+
"sizeSelector": "Table size selector";
|
|
221
|
+
"style": "Style";
|
|
222
|
+
"tableSize": "{cols} × {rows} table";
|
|
223
|
+
"title": "Insert table";
|
|
224
|
+
"validationHint": "Rows: {minRows}–{maxRows}, columns: {minCols}–{maxCols}";
|
|
225
|
+
};
|
|
226
|
+
"pageSetup": {
|
|
227
|
+
"bottom": "Bottom";
|
|
228
|
+
"custom": "Custom";
|
|
229
|
+
"landscape": "Landscape";
|
|
230
|
+
"left": "Left";
|
|
231
|
+
"margins": "Margins";
|
|
232
|
+
"orientation": "Orientation";
|
|
233
|
+
"pageSize": "Page Size";
|
|
234
|
+
"pageSizes": {
|
|
235
|
+
"a3": "A3";
|
|
236
|
+
"a4": "A4";
|
|
237
|
+
"a5": "A5";
|
|
238
|
+
"b5": "B5";
|
|
239
|
+
"executive": "Executive";
|
|
240
|
+
"legal": "Legal";
|
|
241
|
+
"letter": "Letter";
|
|
242
|
+
};
|
|
243
|
+
"portrait": "Portrait";
|
|
244
|
+
"right": "Right";
|
|
245
|
+
"sizeLabel": "Size";
|
|
246
|
+
"title": "Page Setup";
|
|
247
|
+
"top": "Top";
|
|
248
|
+
};
|
|
249
|
+
"tableProperties": {
|
|
250
|
+
"alignOptions": {
|
|
251
|
+
"center": "Center";
|
|
252
|
+
"left": "Left";
|
|
253
|
+
"right": "Right";
|
|
254
|
+
};
|
|
255
|
+
"alignmentLabel": "Alignment";
|
|
256
|
+
"title": "Table Properties";
|
|
257
|
+
"units": {
|
|
258
|
+
"fiftiethsPercent": "(50ths of %)";
|
|
259
|
+
"twips": "tw";
|
|
260
|
+
};
|
|
261
|
+
"widthLabel": "Width";
|
|
262
|
+
"widthType": "Width type";
|
|
263
|
+
"widthTypes": {
|
|
264
|
+
"auto": "Auto";
|
|
265
|
+
"fixed": "Fixed (twips)";
|
|
266
|
+
"percentage": "Percentage";
|
|
267
|
+
};
|
|
268
|
+
};
|
|
269
|
+
};
|
|
270
|
+
"discardChanges": "Discard";
|
|
271
|
+
"dismiss": "Dismiss";
|
|
272
|
+
"displayText": "Display text";
|
|
273
|
+
"doneEditing": "Done editing";
|
|
274
|
+
"doubleClickFooter": "Double-click to add footer";
|
|
275
|
+
"doubleClickHeader": "Double-click to add header";
|
|
276
|
+
"editAuthRequired": "Refresh stella and sign in again before editing this document.";
|
|
277
|
+
"editDownloadFailed": "The document could not be downloaded for editing.";
|
|
278
|
+
"editLink": "Edit link";
|
|
279
|
+
"editOpenFailed": "The document could not be opened for editing.";
|
|
280
|
+
"editOpenFailedTitle": "Could not open DOCX";
|
|
281
|
+
"editPermissionDenied": "You do not have permission to edit this document.";
|
|
282
|
+
"editSaveFailedTitle": "Could not save DOCX";
|
|
283
|
+
"editSessionTakenOver": "Another tab, window, or device opened this document for editing, so this session was released. Unsaved local changes are preserved — reopen the doc to continue.";
|
|
284
|
+
"editor": {
|
|
285
|
+
"editing": "Editing";
|
|
286
|
+
"editingDescription": "Edit the document directly";
|
|
287
|
+
"showDocumentOutline": "Document outline";
|
|
288
|
+
"suggesting": "Suggesting";
|
|
289
|
+
"suggestingDescription": "Edits become tracked suggestions";
|
|
290
|
+
"viewing": "Viewing";
|
|
291
|
+
"viewingDescription": "Read or print the final document";
|
|
292
|
+
};
|
|
293
|
+
"findReplace": {
|
|
294
|
+
"close": "Close search";
|
|
295
|
+
"find": "Find";
|
|
296
|
+
"findAndReplace": "Find and replace";
|
|
297
|
+
"findPlaceholder": "Search document...";
|
|
298
|
+
"findText": "Find text";
|
|
299
|
+
"matchCase": "Match case";
|
|
300
|
+
"matchCounter": "{current} / {total}";
|
|
301
|
+
"next": "Next match";
|
|
302
|
+
"nextShortcut": "Next match (Enter)";
|
|
303
|
+
"noResults": "No results";
|
|
304
|
+
"previous": "Previous match";
|
|
305
|
+
"previousShortcut": "Previous match (Shift+Enter)";
|
|
306
|
+
"replaceAll": "Replace all";
|
|
307
|
+
"replaceCurrent": "Replace current match";
|
|
308
|
+
"replacePlaceholder": "Replacement text...";
|
|
309
|
+
"replaceText": "Replacement text";
|
|
310
|
+
"wholeWords": "Whole words";
|
|
311
|
+
};
|
|
312
|
+
"finishEditing": "Finish editing";
|
|
313
|
+
"font": {
|
|
314
|
+
"documentFonts": "Document Fonts";
|
|
315
|
+
"monospace": "Monospace";
|
|
316
|
+
"other": "Other";
|
|
317
|
+
"sansSerif": "Sans Serif";
|
|
318
|
+
"selectAriaLabel": "Select font";
|
|
319
|
+
"serif": "Serif";
|
|
320
|
+
};
|
|
321
|
+
"fontColor": "Font color";
|
|
322
|
+
"fontGroup": "Font";
|
|
323
|
+
"fontSize": "Font size";
|
|
324
|
+
"formatPainter": "Format Painter";
|
|
325
|
+
"formatPainterShortcut": "Format Painter (Ctrl+Shift+C)";
|
|
326
|
+
"formattingBar": {
|
|
327
|
+
"clearFormatting": "Clear formatting";
|
|
328
|
+
"commentsAndChanges": "Comments & Changes";
|
|
329
|
+
"highlightColor": "Highlight color";
|
|
330
|
+
"imageProperties": "Image Properties";
|
|
331
|
+
"imagePropertiesShortcut": "Image Properties";
|
|
332
|
+
"insertLink": "Insert link";
|
|
333
|
+
"insertLinkShortcut": "Insert link (Ctrl+K)";
|
|
334
|
+
"strikethrough": "Strikethrough";
|
|
335
|
+
"subscript": "Subscript";
|
|
336
|
+
"subscriptShortcut": "Subscript (Ctrl+=)";
|
|
337
|
+
"superscript": "Superscript";
|
|
338
|
+
"superscriptShortcut": "Superscript (Ctrl+Shift+=)";
|
|
339
|
+
};
|
|
340
|
+
"formattingToolbar": "Formatting toolbar";
|
|
341
|
+
"hideDetails": "Hide details";
|
|
342
|
+
"historyGroup": "History";
|
|
343
|
+
"imageOverlay": {
|
|
344
|
+
"deleteImage": "Delete image";
|
|
345
|
+
"replaceImage": "Replace image";
|
|
346
|
+
"rotate": "Rotate";
|
|
347
|
+
};
|
|
348
|
+
"imageTransform": {
|
|
349
|
+
"flipHorizontal": "Flip horizontal";
|
|
350
|
+
"flipVertical": "Flip vertical";
|
|
351
|
+
"rotateClockwise": "Rotate clockwise";
|
|
352
|
+
"rotateCounterClockwise": "Rotate counterclockwise";
|
|
353
|
+
"tooltip": "Rotate or flip";
|
|
354
|
+
};
|
|
355
|
+
"imageWrap": {
|
|
356
|
+
"behindText": "Behind text";
|
|
357
|
+
"floatLeft": "Wrap left";
|
|
358
|
+
"floatRight": "Wrap right";
|
|
359
|
+
"inFrontOfText": "In front of text";
|
|
360
|
+
"inline": "In line with text";
|
|
361
|
+
"menu": {
|
|
362
|
+
"ariaLabel": "Image wrap options";
|
|
363
|
+
"behindText": "Behind text";
|
|
364
|
+
"imageProperties": "Image Properties";
|
|
365
|
+
"inFrontOfText": "In front of text";
|
|
366
|
+
"inLineWithText": "In line with text";
|
|
367
|
+
"squareLeft": "Square (left)";
|
|
368
|
+
"squareRight": "Square (right)";
|
|
369
|
+
};
|
|
370
|
+
"menuDesc": {
|
|
371
|
+
"behindText": "Place the image behind the text so it does not affect text position.";
|
|
372
|
+
"inFrontOfText": "Place the image in front of the text, overlapping it.";
|
|
373
|
+
"inLineWithText": "Move the image with the surrounding text, like a text character.";
|
|
374
|
+
"squareLeft": "Text wraps around the image on the right; the image sits on the left.";
|
|
375
|
+
"squareRight": "Text wraps around the image on the left; the image sits on the right.";
|
|
376
|
+
};
|
|
377
|
+
"tooltipPrefix": "Wrap text: {label}";
|
|
378
|
+
"topAndBottom": "Top and bottom";
|
|
379
|
+
};
|
|
380
|
+
"increaseFontSize": "Increase font size";
|
|
381
|
+
"increaseIndent": "Increase Indent";
|
|
382
|
+
"insertColumnLeft": "Insert column left";
|
|
383
|
+
"insertColumnRight": "Insert column right";
|
|
384
|
+
"insertGroup": "Insert";
|
|
385
|
+
"insertImage": "Insert image";
|
|
386
|
+
"insertPageBreak": "Insert page break";
|
|
387
|
+
"insertRowAbove": "Insert row above";
|
|
388
|
+
"insertRowBelow": "Insert row below";
|
|
389
|
+
"insertTable": "Insert table";
|
|
390
|
+
"insertTableOfContents": "Insert table of contents";
|
|
391
|
+
"inserted": "Inserted";
|
|
392
|
+
"italic": "Italic";
|
|
393
|
+
"italicShortcut": "Italic (Ctrl+I)";
|
|
394
|
+
"justify": "Justify";
|
|
395
|
+
"lineSpacing": {
|
|
396
|
+
"double": "Double";
|
|
397
|
+
"label": "Line spacing";
|
|
398
|
+
"single": "Single";
|
|
399
|
+
};
|
|
400
|
+
"listFormatting": "List formatting";
|
|
401
|
+
"listsGroup": "Lists";
|
|
402
|
+
"loadingDocument": "Loading document...";
|
|
403
|
+
"loadingEditor": "Loading editor...";
|
|
404
|
+
"lockFile": "Lock file";
|
|
405
|
+
"markupView": {
|
|
406
|
+
"allMarkup": "All Markup";
|
|
407
|
+
"noMarkup": "No Markup";
|
|
408
|
+
"original": "Original";
|
|
409
|
+
"simple": "Simple Markup";
|
|
410
|
+
};
|
|
411
|
+
"moreFormatting": "More formatting";
|
|
412
|
+
"networkError": "Network error. Please check your internet connection and try again.";
|
|
413
|
+
"nextChange": "Next Change";
|
|
414
|
+
"numberedList": "Numbered List";
|
|
415
|
+
"parseError": "The document could not be parsed. It may be corrupted or in an unsupported format.";
|
|
416
|
+
"paste": "Paste";
|
|
417
|
+
"pasteUnformatted": "Paste without formatting";
|
|
418
|
+
"previousChange": "Previous Change";
|
|
419
|
+
"printRedirect": "To print, download the document and open it in your word processor.";
|
|
420
|
+
"redo": "Redo";
|
|
421
|
+
"redoShortcut": "Redo (Ctrl+Y)";
|
|
422
|
+
"rejectChange": "Reject Change";
|
|
423
|
+
"removeLink": "Remove link";
|
|
424
|
+
"renderErrorDescription": "Something went wrong showing this part of the document. Reload the page — if it keeps happening, let us know.";
|
|
425
|
+
"revisions": {
|
|
426
|
+
"cellDeleted": "Cell deleted";
|
|
427
|
+
"cellInserted": "Cell inserted";
|
|
428
|
+
"cellMerged": "Cells merged";
|
|
429
|
+
"cellPropertiesChanged": "Cell formatting changed";
|
|
430
|
+
"paragraphMarkDeleted": "Paragraph mark deleted";
|
|
431
|
+
"paragraphMarkInserted": "Paragraph mark inserted";
|
|
432
|
+
"paragraphPropertiesChanged": "Paragraph formatting changed";
|
|
433
|
+
"rowDeleted": "Row deleted";
|
|
434
|
+
"rowInserted": "Row inserted";
|
|
435
|
+
"rowPropertiesChanged": "Row formatting changed";
|
|
436
|
+
"tableDeleted": "Table deleted";
|
|
437
|
+
"tableInserted": "Table inserted";
|
|
438
|
+
"tablePropertiesChanged": "Table formatting changed";
|
|
439
|
+
};
|
|
440
|
+
"ruler": {
|
|
441
|
+
"bottomMargin": "Bottom margin";
|
|
442
|
+
"firstLineIndent": "First line indent";
|
|
443
|
+
"horizontal": "Horizontal ruler";
|
|
444
|
+
"leftIndent": "Left indent";
|
|
445
|
+
"rightIndent": "Right indent";
|
|
446
|
+
"toggle": "Ruler";
|
|
447
|
+
"topMargin": "Top margin";
|
|
448
|
+
"vertical": "Vertical ruler";
|
|
449
|
+
};
|
|
450
|
+
"saveCheckpointFailedDescription": "The DOCX was created locally, but stella could not upload the checkpoint. Keep the editor open and try saving again.";
|
|
451
|
+
"saveCheckpointFailedTitle": "Could not upload save";
|
|
452
|
+
"saveEditorUnavailableDescription": "The editor is not ready yet. Wait for the document to finish loading, then try saving again.";
|
|
453
|
+
"saveEditorUnavailableTitle": "Editor not ready";
|
|
454
|
+
"saveSerializeFailedDescription": "Folio could not produce a safe DOCX file from the current edit. Your session is still open.";
|
|
455
|
+
"saveSerializeFailedTitle": "Could not create DOCX";
|
|
456
|
+
"savingDocument": "Saving...";
|
|
457
|
+
"selectAll": "Select all";
|
|
458
|
+
"showDetails": "Show details";
|
|
459
|
+
"somethingWentWrong": "Something went wrong";
|
|
460
|
+
"styles": {
|
|
461
|
+
"heading1": "Heading 1";
|
|
462
|
+
"heading2": "Heading 2";
|
|
463
|
+
"heading3": "Heading 3";
|
|
464
|
+
"normalText": "Normal";
|
|
465
|
+
"selectAriaLabel": "Select paragraph style";
|
|
466
|
+
"subtitle": "Subtitle";
|
|
467
|
+
"title": "Title";
|
|
468
|
+
};
|
|
469
|
+
"synced": "Synced";
|
|
470
|
+
"syncing": "Syncing";
|
|
471
|
+
"table": {
|
|
472
|
+
"borderColor": "Border color";
|
|
473
|
+
"cellFillColor": "Cell fill color";
|
|
474
|
+
"deleteTable": "Delete table";
|
|
475
|
+
"mergeCells": "Merge cells";
|
|
476
|
+
"selectTable": "Select table";
|
|
477
|
+
"splitCell": "Split cell";
|
|
478
|
+
"styles": {
|
|
479
|
+
"gridTable1Light": "Grid Table 1 Light";
|
|
480
|
+
"gridTable4Accent1": "Grid Table 4 Accent 1";
|
|
481
|
+
"gridTable4Accent5": "Grid Table 4 Accent 5";
|
|
482
|
+
"gridTable4Accent6": "Grid Table 4 Accent 6";
|
|
483
|
+
"gridTable5Dark": "Grid Table 5 Dark";
|
|
484
|
+
"gridTableLight": "Grid Table Light";
|
|
485
|
+
"listTable3Accent2": "List Table 3 Accent 2";
|
|
486
|
+
"listTable4Accent3": "List Table 4 Accent 3";
|
|
487
|
+
"normalTable": "Normal Table";
|
|
488
|
+
"plainTable1": "Plain Table 1";
|
|
489
|
+
"plainTable2": "Plain Table 2";
|
|
490
|
+
"plainTable3": "Plain Table 3";
|
|
491
|
+
"plainTable4": "Plain Table 4";
|
|
492
|
+
"tableGrid": "Table Grid";
|
|
493
|
+
};
|
|
494
|
+
};
|
|
495
|
+
"tableAdvanced": {
|
|
496
|
+
"alignTableCenter": "Center table";
|
|
497
|
+
"alignTableLeft": "Align table left";
|
|
498
|
+
"alignTableRight": "Align table right";
|
|
499
|
+
"autoFit": "Autofit";
|
|
500
|
+
"bottom": "Bottom";
|
|
501
|
+
"cellMargins": "Cell margins";
|
|
502
|
+
"distributeColumns": "Distribute columns";
|
|
503
|
+
"height": "Height";
|
|
504
|
+
"heightRules": {
|
|
505
|
+
"atLeast": "At least";
|
|
506
|
+
"auto": "Auto";
|
|
507
|
+
"exact": "Exactly";
|
|
508
|
+
};
|
|
509
|
+
"middle": "Middle";
|
|
510
|
+
"rowHeight": "Row height";
|
|
511
|
+
"rule": "Rule";
|
|
512
|
+
"tableAlignment": "Table alignment";
|
|
513
|
+
"tableOptions": "Table options";
|
|
514
|
+
"tableOptionsMenu": "Table options menu";
|
|
515
|
+
"tableProperties": "Table properties";
|
|
516
|
+
"textDirections": {
|
|
517
|
+
"horizontal": "Horizontal";
|
|
518
|
+
"verticalLR": "Vertical (bottom to top)";
|
|
519
|
+
"verticalRL": "Vertical (top to bottom)";
|
|
520
|
+
};
|
|
521
|
+
"toggleHeaderRow": "Toggle header row";
|
|
522
|
+
"toggleNoWrap": "Toggle no wrap";
|
|
523
|
+
"top": "Top";
|
|
524
|
+
"verticalAlignment": "Vertical alignment";
|
|
525
|
+
};
|
|
526
|
+
"tableBordersAll": "All borders";
|
|
527
|
+
"tableBordersNone": "No borders";
|
|
528
|
+
"textDirection": "Text direction";
|
|
529
|
+
"textEditingMenu": "Text editing menu";
|
|
530
|
+
"textFormattingGroup": "Text formatting";
|
|
531
|
+
"toggleTrackChanges": "Toggle Track Changes";
|
|
532
|
+
"toolbar": {
|
|
533
|
+
"break": "Break";
|
|
534
|
+
"file": "File";
|
|
535
|
+
"findReplace": "Find and replace";
|
|
536
|
+
"findReplaceShortcut": "Ctrl+F";
|
|
537
|
+
"format": "Format";
|
|
538
|
+
"help": "Help";
|
|
539
|
+
"image": "Image";
|
|
540
|
+
"insert": "Insert";
|
|
541
|
+
"leftToRight": "Left to Right";
|
|
542
|
+
"open": "Open";
|
|
543
|
+
"openShortcut": "Ctrl+O";
|
|
544
|
+
"pageBreak": "Page Break";
|
|
545
|
+
"pageSetup": "Page Setup";
|
|
546
|
+
"reportIssue": "Report Issue";
|
|
547
|
+
"rightToLeft": "Right to Left";
|
|
548
|
+
"save": "Save";
|
|
549
|
+
"saveShortcut": "Ctrl+S";
|
|
550
|
+
"sectionBreakContinuous": "Section Break (Continuous)";
|
|
551
|
+
"sectionBreakNextPage": "Section Break (Next Page)";
|
|
552
|
+
"table": "Table";
|
|
553
|
+
"tableOfContents": "Table of Contents";
|
|
554
|
+
"watermark": "Watermark";
|
|
555
|
+
};
|
|
556
|
+
"trackedChanges": {
|
|
557
|
+
"replaced": "Replaced";
|
|
558
|
+
"unknown": "Unknown";
|
|
559
|
+
"with": "with";
|
|
560
|
+
};
|
|
561
|
+
"trackingOff": "Tracking: Off";
|
|
562
|
+
"trackingOn": "Tracking: On";
|
|
563
|
+
"tryAgain": "Try Again";
|
|
564
|
+
"underline": "Underline";
|
|
565
|
+
"underlineShortcut": "Underline (Ctrl+U)";
|
|
566
|
+
"undo": "Undo";
|
|
567
|
+
"undoShortcut": "Undo (Ctrl+Z)";
|
|
568
|
+
"unlockFile": "Unlock file";
|
|
569
|
+
"unlockForEditing": "Unlock to edit";
|
|
570
|
+
"unsupportedDocxEditDescription": "This DOCX contains structures Folio cannot safely rewrite. To avoid corrupting the file, download it and edit it in Word.";
|
|
571
|
+
"unsupportedDocxEditTitle": "Editing blocked";
|
|
572
|
+
"viewGroup": "View";
|
|
573
|
+
"viewer": {
|
|
574
|
+
"pageIndicator": "Page {current} of {total}";
|
|
575
|
+
};
|
|
576
|
+
"zoom": {
|
|
577
|
+
"zoomIn": "Zoom in";
|
|
578
|
+
"zoomLevel": "Zoom level";
|
|
579
|
+
"zoomOut": "Zoom out";
|
|
580
|
+
};
|
|
581
|
+
"zoomGroup": "Zoom";
|
|
582
|
+
};
|
|
583
|
+
};
|
|
584
|
+
//#endregion
|
|
585
|
+
export type { Messages as default };
|
|
File without changes
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
//#region src/i18n/messages.d.ts
|
|
2
|
+
declare const FOLIO_LOCALES: readonly ["en", "de", "fr", "es", "cs", "ar", "et", "he", "hi", "hu", "lt", "lv", "pl", "pt-BR", "sk", "tr", "zh-CN"];
|
|
3
|
+
type FolioLocale = (typeof FOLIO_LOCALES)[number];
|
|
4
|
+
type FolioMessageTree = {
|
|
5
|
+
[key: string]: string | FolioMessageTree;
|
|
6
|
+
};
|
|
7
|
+
type FolioMessages = {
|
|
8
|
+
folio: FolioMessageTree;
|
|
9
|
+
};
|
|
10
|
+
declare const isFolioLocale: (locale: string) => locale is FolioLocale;
|
|
11
|
+
declare const getFolioMessages: (locale: string) => FolioMessages;
|
|
12
|
+
//#endregion
|
|
13
|
+
export { FOLIO_LOCALES, FolioLocale, FolioMessages, getFolioMessages, isFolioLocale };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { CATALOGS as CATALOGS$1 } from "./messages/catalogs.gen.js";
|
|
2
|
+
//#region src/i18n/messages.ts
|
|
3
|
+
const FOLIO_LOCALES = [
|
|
4
|
+
"en",
|
|
5
|
+
"de",
|
|
6
|
+
"fr",
|
|
7
|
+
"es",
|
|
8
|
+
"cs",
|
|
9
|
+
"ar",
|
|
10
|
+
"et",
|
|
11
|
+
"he",
|
|
12
|
+
"hi",
|
|
13
|
+
"hu",
|
|
14
|
+
"lt",
|
|
15
|
+
"lv",
|
|
16
|
+
"pl",
|
|
17
|
+
"pt-BR",
|
|
18
|
+
"sk",
|
|
19
|
+
"tr",
|
|
20
|
+
"zh-CN"
|
|
21
|
+
];
|
|
22
|
+
const CATALOGS = CATALOGS$1;
|
|
23
|
+
const FOLIO_LOCALE_SET = new Set(FOLIO_LOCALES);
|
|
24
|
+
const isFolioLocale = (locale) => FOLIO_LOCALE_SET.has(locale);
|
|
25
|
+
const baseLanguageOf = (locale) => {
|
|
26
|
+
try {
|
|
27
|
+
return new Intl.Locale(locale).language;
|
|
28
|
+
} catch {
|
|
29
|
+
return null;
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
const getFolioMessages = (locale) => {
|
|
33
|
+
if (isFolioLocale(locale)) return CATALOGS[locale];
|
|
34
|
+
const base = baseLanguageOf(locale);
|
|
35
|
+
if (base !== null && isFolioLocale(base)) return CATALOGS[base];
|
|
36
|
+
return CATALOGS.en;
|
|
37
|
+
};
|
|
38
|
+
//#endregion
|
|
39
|
+
export { FOLIO_LOCALES, getFolioMessages, isFolioLocale };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { EditorState } from "prosemirror-state";
|
|
2
|
+
|
|
3
|
+
//#region src/layout-bridge/cellSelectionHighlight.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Apply the `.layout-table-cell-selected` class to painted layout cells
|
|
6
|
+
* matching a CellSelection in the PM state. Clears the class everywhere
|
|
7
|
+
* (within scope) first so toggling off (or moving to a TextSelection) erases
|
|
8
|
+
* prior highlights.
|
|
9
|
+
*
|
|
10
|
+
* Duck-types CellSelection via `$anchorCell` / `forEachCell` rather than
|
|
11
|
+
* `instanceof` to dodge bundling issues across `prosemirror-tables` copies
|
|
12
|
+
* (the same trick used inline in the selection-overlay update).
|
|
13
|
+
*/
|
|
14
|
+
declare function applyCellSelectionHighlight(pagesContainer: HTMLElement, state: EditorState, options?: {
|
|
15
|
+
scope?: "body" | "header" | "footer";
|
|
16
|
+
}): void;
|
|
17
|
+
//#endregion
|
|
18
|
+
export { applyCellSelectionHighlight };
|