@novaprose/core 0.5.3 → 0.7.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 +57 -20
- package/dist/{advlist-FH3K3AAQ.js → advlist-5FNKPLUX.js} +11 -20
- package/dist/advlist-5FNKPLUX.js.map +1 -0
- package/dist/{autolink-IDJWAL2V.js → autolink-45LTODWB.js} +7 -4
- package/dist/{autolink-IDJWAL2V.js.map → autolink-45LTODWB.js.map} +1 -1
- package/dist/{autoresize-4ZEPQCHP.js → autoresize-UB3GOA6D.js} +2 -2
- package/dist/{autosave-DH7SO4UQ.js → autosave-GMWJ5BPE.js} +7 -11
- package/dist/autosave-GMWJ5BPE.js.map +1 -0
- package/dist/{charmap-F7EVJ56K.js → charmap-2GC7LF7G.js} +7 -12
- package/dist/charmap-2GC7LF7G.js.map +1 -0
- package/dist/{chunk-MOO4PJGI.js → chunk-5AW2HHG6.js} +16 -1
- package/dist/chunk-5AW2HHG6.js.map +1 -0
- package/dist/{chunk-55LD2TT2.js → chunk-DWZLSZDG.js} +1550 -935
- package/dist/chunk-DWZLSZDG.js.map +1 -0
- package/dist/{chunk-YZPJQB3I.js → chunk-FCMZ7TUQ.js} +308 -34
- package/dist/chunk-FCMZ7TUQ.js.map +1 -0
- package/dist/{chunk-6GWG2BLC.js → chunk-HPLT3XRZ.js} +1 -1
- package/dist/chunk-HPLT3XRZ.js.map +1 -0
- package/dist/{chunk-HZRIBOPW.js → chunk-JPJVTB45.js} +38 -2
- package/dist/chunk-JPJVTB45.js.map +1 -0
- package/dist/{chunk-6AL2IS6V.js → chunk-KPE3QRPB.js} +206 -404
- package/dist/chunk-KPE3QRPB.js.map +1 -0
- package/dist/chunk-KWXFL4WS.js +174 -0
- package/dist/chunk-KWXFL4WS.js.map +1 -0
- package/dist/chunk-ND2CWNVG.js +51 -0
- package/dist/chunk-ND2CWNVG.js.map +1 -0
- package/dist/chunk-PVFKXRID.js +27 -0
- package/dist/chunk-PVFKXRID.js.map +1 -0
- package/dist/chunk-R2UMUCVI.js +351 -0
- package/dist/chunk-R2UMUCVI.js.map +1 -0
- package/dist/{chunk-GHEFKKRC.js → chunk-T3GY6IVK.js} +41 -24
- package/dist/chunk-T3GY6IVK.js.map +1 -0
- package/dist/{comments-panel-FYJE3U64.js → comments-panel-HXMWSRAW.js} +5 -3
- package/dist/comments-panel-HXMWSRAW.js.map +1 -0
- package/dist/{directionality-MF5HDXH3.js → directionality-5JLWQGP2.js} +13 -11
- package/dist/directionality-5JLWQGP2.js.map +1 -0
- package/dist/editor-CXkltf1R.d.ts +1886 -0
- package/dist/editor-CgSBFTke.d.cts +1886 -0
- package/dist/{emoticons-SONBUCFV.js → emoticons-ZD6ZRIWG.js} +7 -12
- package/dist/emoticons-ZD6ZRIWG.js.map +1 -0
- package/dist/form-dialog-QH6KAERD.js +180 -0
- package/dist/form-dialog-QH6KAERD.js.map +1 -0
- package/dist/html-rules-api-D3fKQi-R.d.cts +40 -0
- package/dist/html-rules-api-D3fKQi-R.d.ts +40 -0
- package/dist/html-rules.cjs +480 -0
- package/dist/html-rules.cjs.map +1 -0
- package/dist/html-rules.d.cts +87 -0
- package/dist/html-rules.d.ts +87 -0
- package/dist/html-rules.js +413 -0
- package/dist/html-rules.js.map +1 -0
- package/dist/i18n/de.cjs +324 -0
- package/dist/i18n/de.cjs.map +1 -0
- package/dist/i18n/de.d.cts +9 -0
- package/dist/i18n/de.d.ts +9 -0
- package/dist/i18n/de.js +303 -0
- package/dist/i18n/de.js.map +1 -0
- package/dist/i18n/es.cjs +324 -0
- package/dist/i18n/es.cjs.map +1 -0
- package/dist/i18n/es.d.cts +9 -0
- package/dist/i18n/es.d.ts +9 -0
- package/dist/i18n/es.js +303 -0
- package/dist/i18n/es.js.map +1 -0
- package/dist/i18n/fr.cjs +324 -0
- package/dist/i18n/fr.cjs.map +1 -0
- package/dist/i18n/fr.d.cts +9 -0
- package/dist/i18n/fr.d.ts +9 -0
- package/dist/i18n/fr.js +303 -0
- package/dist/i18n/fr.js.map +1 -0
- package/dist/i18n/it.cjs +324 -0
- package/dist/i18n/it.cjs.map +1 -0
- package/dist/i18n/it.d.cts +9 -0
- package/dist/i18n/it.d.ts +9 -0
- package/dist/i18n/it.js +303 -0
- package/dist/i18n/it.js.map +1 -0
- package/dist/i18n/pt-BR.cjs +324 -0
- package/dist/i18n/pt-BR.cjs.map +1 -0
- package/dist/i18n/pt-BR.d.cts +9 -0
- package/dist/i18n/pt-BR.d.ts +9 -0
- package/dist/i18n/pt-BR.js +303 -0
- package/dist/i18n/pt-BR.js.map +1 -0
- package/dist/i18n/ru.cjs +324 -0
- package/dist/i18n/ru.cjs.map +1 -0
- package/dist/i18n/ru.d.cts +10 -0
- package/dist/i18n/ru.d.ts +10 -0
- package/dist/i18n/ru.js +303 -0
- package/dist/i18n/ru.js.map +1 -0
- package/dist/index-C603bU6r.d.cts +216 -0
- package/dist/index-C603bU6r.d.ts +216 -0
- package/dist/index.cjs +3422 -1179
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +50 -1555
- package/dist/index.d.ts +50 -1555
- package/dist/index.js +278 -147
- package/dist/index.js.map +1 -1
- package/dist/{insertdatetime-X2T4ZY6R.js → insertdatetime-CRO7TJAQ.js} +10 -16
- package/dist/insertdatetime-CRO7TJAQ.js.map +1 -0
- package/dist/markdown.cjs +273 -0
- package/dist/markdown.cjs.map +1 -0
- package/dist/markdown.d.cts +23 -0
- package/dist/markdown.d.ts +23 -0
- package/dist/markdown.js +241 -0
- package/dist/markdown.js.map +1 -0
- package/dist/{nonbreaking-PP4KIJSR.js → nonbreaking-66LFZV2W.js} +8 -7
- package/dist/nonbreaking-66LFZV2W.js.map +1 -0
- package/dist/paste-office-F3QW4WWO.js +440 -0
- package/dist/paste-office-F3QW4WWO.js.map +1 -0
- package/dist/{quickbars-3WKHLKAR.js → quickbars-7E2QRS7J.js} +13 -9
- package/dist/quickbars-7E2QRS7J.js.map +1 -0
- package/dist/{revisionhistory-FYRVDGRA.js → revisionhistory-DXE7KU4R.js} +18 -32
- package/dist/revisionhistory-DXE7KU4R.js.map +1 -0
- package/dist/table-SSNABG5W.js +301 -0
- package/dist/table-SSNABG5W.js.map +1 -0
- package/dist/{visualblocks-NPTMWFXD.js → visualblocks-6DLBXYOA.js} +8 -7
- package/dist/visualblocks-6DLBXYOA.js.map +1 -0
- package/package.json +45 -5
- package/src/style.css +291 -29
- package/dist/advlist-FH3K3AAQ.js.map +0 -1
- package/dist/autosave-DH7SO4UQ.js.map +0 -1
- package/dist/charmap-F7EVJ56K.js.map +0 -1
- package/dist/chunk-55LD2TT2.js.map +0 -1
- package/dist/chunk-6AL2IS6V.js.map +0 -1
- package/dist/chunk-6GWG2BLC.js.map +0 -1
- package/dist/chunk-6RJENZXT.js +0 -104
- package/dist/chunk-6RJENZXT.js.map +0 -1
- package/dist/chunk-GHEFKKRC.js.map +0 -1
- package/dist/chunk-HZRIBOPW.js.map +0 -1
- package/dist/chunk-MOO4PJGI.js.map +0 -1
- package/dist/chunk-YZPJQB3I.js.map +0 -1
- package/dist/comments-panel-FYJE3U64.js.map +0 -1
- package/dist/directionality-MF5HDXH3.js.map +0 -1
- package/dist/emoticons-SONBUCFV.js.map +0 -1
- package/dist/insertdatetime-X2T4ZY6R.js.map +0 -1
- package/dist/nonbreaking-PP4KIJSR.js.map +0 -1
- package/dist/quickbars-3WKHLKAR.js.map +0 -1
- package/dist/revisionhistory-FYRVDGRA.js.map +0 -1
- package/dist/visualblocks-NPTMWFXD.js.map +0 -1
- /package/dist/{autoresize-4ZEPQCHP.js.map → autoresize-UB3GOA6D.js.map} +0 -0
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
/** Английские строки UI — язык по умолчанию и эталон набора ключей для остальных языков. */
|
|
2
|
+
declare const en: {
|
|
3
|
+
readonly 'toolbar.label': "Formatting";
|
|
4
|
+
readonly 'toolbar.options': "options";
|
|
5
|
+
readonly 'editor.label': "Rich text editor";
|
|
6
|
+
readonly 'editor.required': "Please fill in this field.";
|
|
7
|
+
readonly undo: "Undo";
|
|
8
|
+
readonly redo: "Redo";
|
|
9
|
+
readonly bold: "Bold";
|
|
10
|
+
readonly italic: "Italic";
|
|
11
|
+
readonly underline: "Underline";
|
|
12
|
+
readonly strike: "Strikethrough";
|
|
13
|
+
readonly code: "Inline code";
|
|
14
|
+
readonly subscript: "Subscript";
|
|
15
|
+
readonly superscript: "Superscript";
|
|
16
|
+
readonly link: "Link";
|
|
17
|
+
readonly unlink: "Remove link";
|
|
18
|
+
readonly image: "Image";
|
|
19
|
+
readonly bulletList: "Bulleted list";
|
|
20
|
+
readonly orderedList: "Numbered list";
|
|
21
|
+
readonly indent: "Increase indent";
|
|
22
|
+
readonly outdent: "Decrease indent";
|
|
23
|
+
readonly align: "Alignment";
|
|
24
|
+
readonly alignLeft: "Align left";
|
|
25
|
+
readonly alignCenter: "Align center";
|
|
26
|
+
readonly alignRight: "Align right";
|
|
27
|
+
readonly alignJustify: "Justify";
|
|
28
|
+
readonly blockquote: "Quote";
|
|
29
|
+
readonly codeBlock: "Code block";
|
|
30
|
+
readonly horizontalRule: "Horizontal line";
|
|
31
|
+
readonly clearFormatting: "Clear formatting";
|
|
32
|
+
readonly more: "More";
|
|
33
|
+
readonly moreFormats: "More formatting";
|
|
34
|
+
readonly blocks: "Text style";
|
|
35
|
+
readonly styles: "Formats";
|
|
36
|
+
readonly 'styles.headings': "Headings";
|
|
37
|
+
readonly 'styles.inline': "Inline";
|
|
38
|
+
readonly 'styles.blocks': "Blocks";
|
|
39
|
+
readonly 'styles.align': "Align";
|
|
40
|
+
readonly paragraph: "Paragraph";
|
|
41
|
+
readonly h1: "Heading 1";
|
|
42
|
+
readonly h2: "Heading 2";
|
|
43
|
+
readonly h3: "Heading 3";
|
|
44
|
+
readonly h4: "Heading 4";
|
|
45
|
+
readonly h5: "Heading 5";
|
|
46
|
+
readonly h6: "Heading 6";
|
|
47
|
+
readonly fontFamily: "Font";
|
|
48
|
+
readonly fontSize: "Font size";
|
|
49
|
+
readonly lineHeight: "Line height";
|
|
50
|
+
readonly default: "Default";
|
|
51
|
+
readonly textColor: "Text color";
|
|
52
|
+
readonly backgroundColor: "Highlight color";
|
|
53
|
+
readonly removeColor: "Remove color";
|
|
54
|
+
readonly customColor: "Custom color";
|
|
55
|
+
readonly 'dialog.cancel': "Cancel";
|
|
56
|
+
readonly 'dialog.save': "Save";
|
|
57
|
+
readonly 'dialog.insert': "Insert";
|
|
58
|
+
readonly 'dialog.close': "Close";
|
|
59
|
+
readonly 'dialog.required': "This field is required";
|
|
60
|
+
readonly 'dialog.invalid': "Check the format";
|
|
61
|
+
readonly 'link.title': "Insert link";
|
|
62
|
+
readonly 'link.editTitle': "Edit link";
|
|
63
|
+
readonly 'link.url': "URL";
|
|
64
|
+
readonly 'link.text': "Text to display";
|
|
65
|
+
readonly 'link.tooltip': "Title (tooltip)";
|
|
66
|
+
readonly 'link.newTab': "Open in new tab";
|
|
67
|
+
readonly 'link.open': "Open link";
|
|
68
|
+
readonly 'link.edit': "Edit link";
|
|
69
|
+
readonly 'link.copy': "Copy link";
|
|
70
|
+
readonly 'link.copied': "Link copied";
|
|
71
|
+
readonly 'link.invalid': "This URL is not allowed";
|
|
72
|
+
readonly 'image.title': "Insert image";
|
|
73
|
+
readonly 'image.url': "Image URL";
|
|
74
|
+
readonly 'image.alt': "Alternative text";
|
|
75
|
+
readonly 'image.altHint': "Describe the image for people using screen readers";
|
|
76
|
+
readonly 'image.upload': "Upload";
|
|
77
|
+
readonly 'image.drop': "Drop an image here or click to choose";
|
|
78
|
+
readonly 'image.uploading': "Uploading image…";
|
|
79
|
+
readonly 'image.uploadFailed': "Image upload failed";
|
|
80
|
+
readonly 'image.retry': "Retry";
|
|
81
|
+
readonly 'image.retrying': "Connection problem — retrying the upload…";
|
|
82
|
+
readonly 'image.invalid': "This image URL is not allowed";
|
|
83
|
+
readonly 'image.or': "or";
|
|
84
|
+
readonly 'image.toolbar': "Image options";
|
|
85
|
+
readonly 'image.alignLeft': "Float left";
|
|
86
|
+
readonly 'image.alignCenter': "Center";
|
|
87
|
+
readonly 'image.alignRight': "Float right";
|
|
88
|
+
readonly 'image.editAlt': "Alternative text";
|
|
89
|
+
readonly 'image.size': "Size";
|
|
90
|
+
readonly 'image.sizeSmall': "Small (25%)";
|
|
91
|
+
readonly 'image.sizeMedium': "Medium (50%)";
|
|
92
|
+
readonly 'image.sizeLarge': "Large (75%)";
|
|
93
|
+
readonly 'image.sizeFull': "Full width";
|
|
94
|
+
readonly 'image.sizeOriginal': "Original size";
|
|
95
|
+
readonly 'image.delete': "Remove image";
|
|
96
|
+
readonly 'image.caption': "Caption";
|
|
97
|
+
readonly 'image.captionPlaceholder': "Add a caption…";
|
|
98
|
+
readonly 'status.words': "{count} words";
|
|
99
|
+
readonly 'status.resize': "Resize editor";
|
|
100
|
+
readonly 'dialog.browse': "Browse";
|
|
101
|
+
readonly pasteAsText: "Paste as text";
|
|
102
|
+
readonly 'menu.label': "Menu";
|
|
103
|
+
readonly 'menu.file': "File";
|
|
104
|
+
readonly 'menu.edit': "Edit";
|
|
105
|
+
readonly 'menu.view': "View";
|
|
106
|
+
readonly 'menu.insert': "Insert";
|
|
107
|
+
readonly 'menu.format': "Format";
|
|
108
|
+
readonly 'menu.table': "Table";
|
|
109
|
+
readonly 'menu.help': "Help";
|
|
110
|
+
readonly selectAll: "Select all";
|
|
111
|
+
readonly print: "Print";
|
|
112
|
+
readonly 'table.rows': "Rows";
|
|
113
|
+
readonly 'table.cols': "Columns";
|
|
114
|
+
readonly 'table.invalidSize': "Enter a number from 1 to 50";
|
|
115
|
+
readonly 'quickbars.selection': "Quick formatting";
|
|
116
|
+
readonly 'quickbars.insert': "Quick insert";
|
|
117
|
+
readonly 'search.title': "Find and replace";
|
|
118
|
+
readonly 'search.find': "Find";
|
|
119
|
+
readonly 'search.replace': "Replace with";
|
|
120
|
+
readonly 'search.next': "Next match";
|
|
121
|
+
readonly 'search.prev': "Previous match";
|
|
122
|
+
readonly 'search.replaceOne': "Replace";
|
|
123
|
+
readonly 'search.replaceAll': "Replace all";
|
|
124
|
+
readonly 'search.matchCase': "Match case";
|
|
125
|
+
readonly 'search.wholeWord': "Whole words only";
|
|
126
|
+
readonly 'search.count': "{current} of {total}";
|
|
127
|
+
readonly 'search.none': "No results";
|
|
128
|
+
readonly fullscreen: "Fullscreen";
|
|
129
|
+
readonly preview: "Preview";
|
|
130
|
+
readonly sourceCode: "Source code";
|
|
131
|
+
readonly help: "Keyboard shortcuts";
|
|
132
|
+
readonly 'help.formatting': "Text formatting";
|
|
133
|
+
readonly 'help.blocks': "Paragraphs and lists";
|
|
134
|
+
readonly 'help.editing': "Editing";
|
|
135
|
+
readonly 'help.navigation': "Navigation";
|
|
136
|
+
readonly 'help.slash': "Insert block (slash commands)";
|
|
137
|
+
readonly 'help.toMenubar': "Move to the menu bar";
|
|
138
|
+
readonly 'help.toToolbar': "Move to the toolbar";
|
|
139
|
+
readonly 'help.toContextToolbar': "Move to the image/table toolbar";
|
|
140
|
+
readonly 'help.toEditor': "Back to the text";
|
|
141
|
+
readonly 'help.nextCell': "Next table cell";
|
|
142
|
+
readonly table: "Table";
|
|
143
|
+
readonly 'table.insert': "Insert table";
|
|
144
|
+
readonly 'table.size': "{rows} × {cols}";
|
|
145
|
+
readonly 'table.toolbar': "Table options";
|
|
146
|
+
readonly 'table.rowBefore': "Insert row above";
|
|
147
|
+
readonly 'table.rowAfter': "Insert row below";
|
|
148
|
+
readonly 'table.rowDelete': "Delete row";
|
|
149
|
+
readonly 'table.colBefore': "Insert column left";
|
|
150
|
+
readonly 'table.colAfter': "Insert column right";
|
|
151
|
+
readonly 'table.colDelete': "Delete column";
|
|
152
|
+
readonly 'table.merge': "Merge cells";
|
|
153
|
+
readonly 'table.split': "Split cell";
|
|
154
|
+
readonly 'table.rowHeader': "Header row";
|
|
155
|
+
readonly 'table.colHeader': "Header column";
|
|
156
|
+
readonly 'table.cellBackground': "Cell background";
|
|
157
|
+
readonly 'table.delete': "Delete table";
|
|
158
|
+
readonly 'table.sort': "Sort";
|
|
159
|
+
readonly 'table.sortAsc': "Sort A → Z, 1 → 9";
|
|
160
|
+
readonly 'table.sortDesc': "Sort Z → A, 9 → 1";
|
|
161
|
+
readonly 'table.props': "Table properties";
|
|
162
|
+
readonly 'table.style': "Style";
|
|
163
|
+
readonly 'table.styleDefault': "Default";
|
|
164
|
+
readonly 'table.width': "Width";
|
|
165
|
+
readonly 'table.widthHint': "For example 100% or 600px. Leave empty to fit the content.";
|
|
166
|
+
readonly 'table.invalidWidth': "Enter a width such as 100% or 600px";
|
|
167
|
+
readonly 'table.align': "Alignment on the page";
|
|
168
|
+
readonly 'table.alignDefault': "Default";
|
|
169
|
+
readonly 'table.alignCenter': "Center";
|
|
170
|
+
readonly 'table.alignRight': "Right";
|
|
171
|
+
readonly 'table.cellProps': "Cell properties";
|
|
172
|
+
readonly 'table.valign': "Vertical alignment";
|
|
173
|
+
readonly 'table.valignTop': "Top";
|
|
174
|
+
readonly 'table.valignMiddle': "Middle";
|
|
175
|
+
readonly 'table.valignBottom': "Bottom";
|
|
176
|
+
readonly 'table.cellType': "Cell type";
|
|
177
|
+
readonly 'table.cellData': "Data cell";
|
|
178
|
+
readonly 'table.cellHeader': "Header cell";
|
|
179
|
+
readonly 'table.colWidth': "Column width, px";
|
|
180
|
+
readonly 'table.colWidthHint': "Leave empty to fit the content.";
|
|
181
|
+
readonly 'table.invalidColWidth': "Enter a number from 24 to 4000";
|
|
182
|
+
readonly 'slash.label': "Commands";
|
|
183
|
+
readonly 'slash.empty': "No matching commands";
|
|
184
|
+
};
|
|
185
|
+
type MessageKey = keyof typeof en;
|
|
186
|
+
type Messages = Record<MessageKey, string>;
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* Строки плагинов: `<плагин>.<ключ>` («comments.reply», «anchor.title»). Плагины грузятся лениво,
|
|
190
|
+
* поэтому их строки живут в самом плагине и регистрируются при загрузке (registerPluginMessages),
|
|
191
|
+
* но переводятся той же системой, что и ядро: registerLanguage и опция `translations` их видят.
|
|
192
|
+
*/
|
|
193
|
+
type PluginMessageKey = `${string}.${string}`;
|
|
194
|
+
/**
|
|
195
|
+
* Языковой пакет или точечные переопределения: строки ядра (с подсказками типов) и строки плагинов.
|
|
196
|
+
* Недостающие ключи берутся из английского.
|
|
197
|
+
*/
|
|
198
|
+
type LanguagePack = Partial<Messages> & {
|
|
199
|
+
[key: PluginMessageKey]: string;
|
|
200
|
+
};
|
|
201
|
+
/** Зарегистрировать языковой пакет (BCP-47 код: 'de', 'pt-BR'). Недостающие ключи берутся из английского. */
|
|
202
|
+
declare function registerLanguage(code: string, messages: LanguagePack): void;
|
|
203
|
+
/**
|
|
204
|
+
* Все зарегистрированные строки плагинов в плоском виде: namespace → язык → ключ → строка
|
|
205
|
+
* (для проверки полноты переводов и шаблона для переводчиков).
|
|
206
|
+
*/
|
|
207
|
+
declare function getPluginMessages(): Readonly<Record<string, Readonly<Record<string, Record<string, string>>>>>;
|
|
208
|
+
type Translator = (key: MessageKey | PluginMessageKey, params?: Record<string, string | number>) => string;
|
|
209
|
+
/**
|
|
210
|
+
* Переводчик для экземпляра редактора. Ищет точный код ('pt-br'), затем базовый язык ('pt'),
|
|
211
|
+
* затем английский. overrides — точечная замена строк из конфига (и ядра, и плагинов).
|
|
212
|
+
* Строки плагинов ищутся в момент вызова: ленивые плагины регистрируются позже создания редактора.
|
|
213
|
+
*/
|
|
214
|
+
declare function createTranslator(language?: string, overrides?: LanguagePack): Translator;
|
|
215
|
+
|
|
216
|
+
export { type LanguagePack as L, type MessageKey as M, type PluginMessageKey as P, type Translator as T, type Messages as a, createTranslator as c, en as e, getPluginMessages as g, registerLanguage as r };
|