@nanahoshi/mona-ui 0.36.0 → 0.37.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/docs/api/editor.md +67 -0
- package/docs/api/file-upload.md +1 -1
- package/docs/api/i18n.md +16 -0
- package/docs/api/locales.md +14 -14
- package/docs/api/popup.md +1 -1
- package/docs/editor.md +238 -9
- package/fesm2022/nanahoshi-mona-ui-editor.mjs +1348 -190
- package/fesm2022/nanahoshi-mona-ui-file-upload.mjs +28 -94
- package/fesm2022/nanahoshi-mona-ui-i18n-icu.mjs +50 -1
- package/fesm2022/nanahoshi-mona-ui-internal.mjs +83 -2
- package/fesm2022/nanahoshi-mona-ui-locales-ar-sa.mjs +59 -1
- package/fesm2022/nanahoshi-mona-ui-locales-de-de.mjs +23 -1
- package/fesm2022/nanahoshi-mona-ui-locales-es-es.mjs +35 -1
- package/fesm2022/nanahoshi-mona-ui-locales-fr-fr.mjs +35 -1
- package/fesm2022/nanahoshi-mona-ui-locales-id-id.mjs +17 -1
- package/fesm2022/nanahoshi-mona-ui-locales-it-it.mjs +35 -1
- package/fesm2022/nanahoshi-mona-ui-locales-ja-jp.mjs +17 -1
- package/fesm2022/nanahoshi-mona-ui-locales-ko-kr.mjs +17 -1
- package/fesm2022/nanahoshi-mona-ui-locales-pl-pl.mjs +47 -1
- package/fesm2022/nanahoshi-mona-ui-locales-pt-br.mjs +35 -1
- package/fesm2022/nanahoshi-mona-ui-locales-ru-ru.mjs +47 -1
- package/fesm2022/nanahoshi-mona-ui-locales-tr-tr.mjs +17 -1
- package/fesm2022/nanahoshi-mona-ui-locales-zh-cn.mjs +17 -1
- package/fesm2022/nanahoshi-mona-ui-locales-zh-tw.mjs +17 -1
- package/fesm2022/nanahoshi-mona-ui-popup.mjs +29 -8
- package/i18n/catalogs/en-US.messages.json +17 -1
- package/llms.txt +1 -1
- package/locales/ar-sa/ar-sa.messages.json +17 -1
- package/locales/de-de/de-de.messages.json +17 -1
- package/locales/es-es/es-es.messages.json +17 -1
- package/locales/fr-fr/fr-fr.messages.json +17 -1
- package/locales/id-id/id-id.messages.json +17 -1
- package/locales/it-it/it-it.messages.json +17 -1
- package/locales/ja-jp/ja-jp.messages.json +17 -1
- package/locales/ko-kr/ko-kr.messages.json +17 -1
- package/locales/pl-pl/pl-pl.messages.json +17 -1
- package/locales/pt-br/pt-br.messages.json +17 -1
- package/locales/ru-ru/ru-ru.messages.json +17 -1
- package/locales/tr-tr/tr-tr.messages.json +17 -1
- package/locales/zh-cn/zh-cn.messages.json +17 -1
- package/locales/zh-tw/zh-tw.messages.json +17 -1
- package/package.json +1 -1
- package/types/nanahoshi-mona-ui-editor.d.ts +124 -2
- package/types/nanahoshi-mona-ui-file-upload.d.ts +1 -0
- package/types/nanahoshi-mona-ui-i18n.d.ts +32 -0
- package/types/nanahoshi-mona-ui-internal.d.ts +37 -0
- package/types/nanahoshi-mona-ui-locales-ar-sa.d.ts +16 -0
- package/types/nanahoshi-mona-ui-locales-de-de.d.ts +16 -0
- package/types/nanahoshi-mona-ui-locales-es-es.d.ts +16 -0
- package/types/nanahoshi-mona-ui-locales-fr-fr.d.ts +16 -0
- package/types/nanahoshi-mona-ui-locales-id-id.d.ts +16 -0
- package/types/nanahoshi-mona-ui-locales-it-it.d.ts +16 -0
- package/types/nanahoshi-mona-ui-locales-ja-jp.d.ts +16 -0
- package/types/nanahoshi-mona-ui-locales-ko-kr.d.ts +16 -0
- package/types/nanahoshi-mona-ui-locales-pl-pl.d.ts +16 -0
- package/types/nanahoshi-mona-ui-locales-pt-br.d.ts +16 -0
- package/types/nanahoshi-mona-ui-locales-ru-ru.d.ts +16 -0
- package/types/nanahoshi-mona-ui-locales-tr-tr.d.ts +16 -0
- package/types/nanahoshi-mona-ui-locales-zh-cn.d.ts +16 -0
- package/types/nanahoshi-mona-ui-locales-zh-tw.d.ts +16 -0
- package/types/nanahoshi-mona-ui-popup.d.ts +3 -1
|
@@ -235,6 +235,10 @@ export declare const MONA_RU_RU_LOCALE: {
|
|
|
235
235
|
backgroundColor: string;
|
|
236
236
|
bold: string;
|
|
237
237
|
cancel: string;
|
|
238
|
+
characterCount: (count: number) => string;
|
|
239
|
+
characterLimitHint: (limit: number) => string;
|
|
240
|
+
charactersLeft: (count: number) => string;
|
|
241
|
+
charactersOver: (count: number) => string;
|
|
238
242
|
codeBlock: string;
|
|
239
243
|
color: string;
|
|
240
244
|
contentLabel: string;
|
|
@@ -242,6 +246,7 @@ export declare const MONA_RU_RU_LOCALE: {
|
|
|
242
246
|
deleteColumn: string;
|
|
243
247
|
deleteRow: string;
|
|
244
248
|
deleteTable: string;
|
|
249
|
+
editImage: string;
|
|
245
250
|
editLink: string;
|
|
246
251
|
enterUrl: string;
|
|
247
252
|
fontSize: string;
|
|
@@ -249,6 +254,11 @@ export declare const MONA_RU_RU_LOCALE: {
|
|
|
249
254
|
heading: (level: number) => string;
|
|
250
255
|
heightPx: string;
|
|
251
256
|
historyGroup: string;
|
|
257
|
+
imageFile: string;
|
|
258
|
+
imageInserted: (name: string) => string;
|
|
259
|
+
imageTooLarge: (name: string, size: string) => string;
|
|
260
|
+
imageUploadFailed: (name: string) => string;
|
|
261
|
+
imageUploading: (name: string) => string;
|
|
252
262
|
imageUrl: string;
|
|
253
263
|
indent: string;
|
|
254
264
|
indentGroup: string;
|
|
@@ -264,12 +274,17 @@ export declare const MONA_RU_RU_LOCALE: {
|
|
|
264
274
|
justify: string;
|
|
265
275
|
linkGroup: string;
|
|
266
276
|
listGroup: string;
|
|
277
|
+
mentionNoResults: string;
|
|
278
|
+
mentionResults: (count: number) => string;
|
|
279
|
+
mentionSearching: string;
|
|
280
|
+
mentionSuggestions: string;
|
|
267
281
|
mergeCells: string;
|
|
268
282
|
outdent: string;
|
|
269
283
|
paragraph: string;
|
|
270
284
|
quotation: string;
|
|
271
285
|
redo: string;
|
|
272
286
|
removeLink: string;
|
|
287
|
+
save: string;
|
|
273
288
|
selectFontFamily: string;
|
|
274
289
|
selectFontSize: string;
|
|
275
290
|
splitCell: string;
|
|
@@ -284,6 +299,7 @@ export declare const MONA_RU_RU_LOCALE: {
|
|
|
284
299
|
underline: string;
|
|
285
300
|
undo: string;
|
|
286
301
|
widthPx: string;
|
|
302
|
+
wordCount: (count: number) => string;
|
|
287
303
|
};
|
|
288
304
|
fileUpload: {
|
|
289
305
|
browse: string;
|
|
@@ -235,6 +235,10 @@ export declare const MONA_TR_TR_LOCALE: {
|
|
|
235
235
|
backgroundColor: string;
|
|
236
236
|
bold: string;
|
|
237
237
|
cancel: string;
|
|
238
|
+
characterCount: (count: number) => string;
|
|
239
|
+
characterLimitHint: (limit: number) => string;
|
|
240
|
+
charactersLeft: (count: number) => string;
|
|
241
|
+
charactersOver: (count: number) => string;
|
|
238
242
|
codeBlock: string;
|
|
239
243
|
color: string;
|
|
240
244
|
contentLabel: string;
|
|
@@ -242,6 +246,7 @@ export declare const MONA_TR_TR_LOCALE: {
|
|
|
242
246
|
deleteColumn: string;
|
|
243
247
|
deleteRow: string;
|
|
244
248
|
deleteTable: string;
|
|
249
|
+
editImage: string;
|
|
245
250
|
editLink: string;
|
|
246
251
|
enterUrl: string;
|
|
247
252
|
fontSize: string;
|
|
@@ -249,6 +254,11 @@ export declare const MONA_TR_TR_LOCALE: {
|
|
|
249
254
|
heading: (level: number) => string;
|
|
250
255
|
heightPx: string;
|
|
251
256
|
historyGroup: string;
|
|
257
|
+
imageFile: string;
|
|
258
|
+
imageInserted: (name: string) => string;
|
|
259
|
+
imageTooLarge: (name: string, size: string) => string;
|
|
260
|
+
imageUploadFailed: (name: string) => string;
|
|
261
|
+
imageUploading: (name: string) => string;
|
|
252
262
|
imageUrl: string;
|
|
253
263
|
indent: string;
|
|
254
264
|
indentGroup: string;
|
|
@@ -264,12 +274,17 @@ export declare const MONA_TR_TR_LOCALE: {
|
|
|
264
274
|
justify: string;
|
|
265
275
|
linkGroup: string;
|
|
266
276
|
listGroup: string;
|
|
277
|
+
mentionNoResults: string;
|
|
278
|
+
mentionResults: (count: number) => string;
|
|
279
|
+
mentionSearching: string;
|
|
280
|
+
mentionSuggestions: string;
|
|
267
281
|
mergeCells: string;
|
|
268
282
|
outdent: string;
|
|
269
283
|
paragraph: string;
|
|
270
284
|
quotation: string;
|
|
271
285
|
redo: string;
|
|
272
286
|
removeLink: string;
|
|
287
|
+
save: string;
|
|
273
288
|
selectFontFamily: string;
|
|
274
289
|
selectFontSize: string;
|
|
275
290
|
splitCell: string;
|
|
@@ -284,6 +299,7 @@ export declare const MONA_TR_TR_LOCALE: {
|
|
|
284
299
|
underline: string;
|
|
285
300
|
undo: string;
|
|
286
301
|
widthPx: string;
|
|
302
|
+
wordCount: (count: number) => string;
|
|
287
303
|
};
|
|
288
304
|
fileUpload: {
|
|
289
305
|
browse: string;
|
|
@@ -235,6 +235,10 @@ export declare const MONA_ZH_CN_LOCALE: {
|
|
|
235
235
|
backgroundColor: string;
|
|
236
236
|
bold: string;
|
|
237
237
|
cancel: string;
|
|
238
|
+
characterCount: (count: number) => string;
|
|
239
|
+
characterLimitHint: (limit: number) => string;
|
|
240
|
+
charactersLeft: (count: number) => string;
|
|
241
|
+
charactersOver: (count: number) => string;
|
|
238
242
|
codeBlock: string;
|
|
239
243
|
color: string;
|
|
240
244
|
contentLabel: string;
|
|
@@ -242,6 +246,7 @@ export declare const MONA_ZH_CN_LOCALE: {
|
|
|
242
246
|
deleteColumn: string;
|
|
243
247
|
deleteRow: string;
|
|
244
248
|
deleteTable: string;
|
|
249
|
+
editImage: string;
|
|
245
250
|
editLink: string;
|
|
246
251
|
enterUrl: string;
|
|
247
252
|
fontSize: string;
|
|
@@ -249,6 +254,11 @@ export declare const MONA_ZH_CN_LOCALE: {
|
|
|
249
254
|
heading: (level: number) => string;
|
|
250
255
|
heightPx: string;
|
|
251
256
|
historyGroup: string;
|
|
257
|
+
imageFile: string;
|
|
258
|
+
imageInserted: (name: string) => string;
|
|
259
|
+
imageTooLarge: (name: string, size: string) => string;
|
|
260
|
+
imageUploadFailed: (name: string) => string;
|
|
261
|
+
imageUploading: (name: string) => string;
|
|
252
262
|
imageUrl: string;
|
|
253
263
|
indent: string;
|
|
254
264
|
indentGroup: string;
|
|
@@ -264,12 +274,17 @@ export declare const MONA_ZH_CN_LOCALE: {
|
|
|
264
274
|
justify: string;
|
|
265
275
|
linkGroup: string;
|
|
266
276
|
listGroup: string;
|
|
277
|
+
mentionNoResults: string;
|
|
278
|
+
mentionResults: (count: number) => string;
|
|
279
|
+
mentionSearching: string;
|
|
280
|
+
mentionSuggestions: string;
|
|
267
281
|
mergeCells: string;
|
|
268
282
|
outdent: string;
|
|
269
283
|
paragraph: string;
|
|
270
284
|
quotation: string;
|
|
271
285
|
redo: string;
|
|
272
286
|
removeLink: string;
|
|
287
|
+
save: string;
|
|
273
288
|
selectFontFamily: string;
|
|
274
289
|
selectFontSize: string;
|
|
275
290
|
splitCell: string;
|
|
@@ -284,6 +299,7 @@ export declare const MONA_ZH_CN_LOCALE: {
|
|
|
284
299
|
underline: string;
|
|
285
300
|
undo: string;
|
|
286
301
|
widthPx: string;
|
|
302
|
+
wordCount: (count: number) => string;
|
|
287
303
|
};
|
|
288
304
|
fileUpload: {
|
|
289
305
|
browse: string;
|
|
@@ -235,6 +235,10 @@ export declare const MONA_ZH_TW_LOCALE: {
|
|
|
235
235
|
backgroundColor: string;
|
|
236
236
|
bold: string;
|
|
237
237
|
cancel: string;
|
|
238
|
+
characterCount: (count: number) => string;
|
|
239
|
+
characterLimitHint: (limit: number) => string;
|
|
240
|
+
charactersLeft: (count: number) => string;
|
|
241
|
+
charactersOver: (count: number) => string;
|
|
238
242
|
codeBlock: string;
|
|
239
243
|
color: string;
|
|
240
244
|
contentLabel: string;
|
|
@@ -242,6 +246,7 @@ export declare const MONA_ZH_TW_LOCALE: {
|
|
|
242
246
|
deleteColumn: string;
|
|
243
247
|
deleteRow: string;
|
|
244
248
|
deleteTable: string;
|
|
249
|
+
editImage: string;
|
|
245
250
|
editLink: string;
|
|
246
251
|
enterUrl: string;
|
|
247
252
|
fontSize: string;
|
|
@@ -249,6 +254,11 @@ export declare const MONA_ZH_TW_LOCALE: {
|
|
|
249
254
|
heading: (level: number) => string;
|
|
250
255
|
heightPx: string;
|
|
251
256
|
historyGroup: string;
|
|
257
|
+
imageFile: string;
|
|
258
|
+
imageInserted: (name: string) => string;
|
|
259
|
+
imageTooLarge: (name: string, size: string) => string;
|
|
260
|
+
imageUploadFailed: (name: string) => string;
|
|
261
|
+
imageUploading: (name: string) => string;
|
|
252
262
|
imageUrl: string;
|
|
253
263
|
indent: string;
|
|
254
264
|
indentGroup: string;
|
|
@@ -264,12 +274,17 @@ export declare const MONA_ZH_TW_LOCALE: {
|
|
|
264
274
|
justify: string;
|
|
265
275
|
linkGroup: string;
|
|
266
276
|
listGroup: string;
|
|
277
|
+
mentionNoResults: string;
|
|
278
|
+
mentionResults: (count: number) => string;
|
|
279
|
+
mentionSearching: string;
|
|
280
|
+
mentionSuggestions: string;
|
|
267
281
|
mergeCells: string;
|
|
268
282
|
outdent: string;
|
|
269
283
|
paragraph: string;
|
|
270
284
|
quotation: string;
|
|
271
285
|
redo: string;
|
|
272
286
|
removeLink: string;
|
|
287
|
+
save: string;
|
|
273
288
|
selectFontFamily: string;
|
|
274
289
|
selectFontSize: string;
|
|
275
290
|
splitCell: string;
|
|
@@ -284,6 +299,7 @@ export declare const MONA_ZH_TW_LOCALE: {
|
|
|
284
299
|
underline: string;
|
|
285
300
|
undo: string;
|
|
286
301
|
widthPx: string;
|
|
302
|
+
wordCount: (count: number) => string;
|
|
287
303
|
};
|
|
288
304
|
fileUpload: {
|
|
289
305
|
browse: string;
|
|
@@ -236,7 +236,9 @@ interface PopupSettings<T = unknown, C = void> {
|
|
|
236
236
|
*/
|
|
237
237
|
minWidth?: number | string;
|
|
238
238
|
/**
|
|
239
|
-
* Offset of the popup.
|
|
239
|
+
* Offset of the popup, in pixels, for the position the connection points give. A fallback that flips the popup
|
|
240
|
+
* to the anchor's other side, such as above it when there is no room below, gets the offset negated on that
|
|
241
|
+
* axis, so the gap stays between the popup and the anchor. Positions passed in `positions` take it as given.
|
|
240
242
|
* @type {PopupOffset}
|
|
241
243
|
*/
|
|
242
244
|
offset?: PopupOffset;
|