@widgetic/editor 4.1.3 → 4.1.5
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 +2 -0
- package/dist/i18n/language.d.ts +334 -5
- package/dist/i18n/translate.d.ts +1 -1
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -379,6 +379,8 @@ Note that you need to add the right deploy script that copies the dist folder to
|
|
|
379
379
|
|
|
380
380
|
## Deploy the component to the npm package registry
|
|
381
381
|
|
|
382
|
+
GitLab CI on `main` publishes this package. Bump `version` in `package.json` and push `main`. The job is an npm Trusted Publisher (`NPM_ID_TOKEN`) and skips a version that is already on npm. `npm publish` below is the laptop fallback when CI minutes are gone. The token stays in `~/.npmrc` and is never committed.
|
|
383
|
+
|
|
382
384
|
```bash
|
|
383
385
|
npm publish
|
|
384
386
|
```
|
package/dist/i18n/language.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { SHAD_EDITOR_MESSAGES } from '@widgetic/design-system/shad-editor';
|
|
2
1
|
export type { EditorCatalogs, EditorLanguage, EditorLanguageHandle } from './languageKit.js';
|
|
3
2
|
/**
|
|
4
3
|
* The language of an editor on a page. The editor has two packages inside it (the File Browser that picks a file, and
|
|
@@ -206,8 +205,338 @@ export declare const EDITOR_CATALOGS: {
|
|
|
206
205
|
readonly 'editor.textArea.enterUrl': "Enter URL";
|
|
207
206
|
readonly 'editor.schema.subtitleFont': "Subtitle Font";
|
|
208
207
|
};
|
|
209
|
-
readonly fileBrowser:
|
|
210
|
-
|
|
208
|
+
readonly fileBrowser: {
|
|
209
|
+
readonly 'action.cancel': "Cancel";
|
|
210
|
+
readonly 'action.confirm': "Confirm";
|
|
211
|
+
readonly 'action.create': "Create";
|
|
212
|
+
readonly 'action.delete': "Delete";
|
|
213
|
+
readonly 'action.done': "Done";
|
|
214
|
+
readonly 'action.download': "Download";
|
|
215
|
+
readonly 'action.move': "Move";
|
|
216
|
+
readonly 'action.rename': "Rename";
|
|
217
|
+
readonly 'action.tryAgain': "Try again";
|
|
218
|
+
readonly 'action.preview': "Preview";
|
|
219
|
+
readonly 'action.play': "Play";
|
|
220
|
+
readonly 'action.pause': "Pause";
|
|
221
|
+
readonly 'action.mute': "Mute";
|
|
222
|
+
readonly 'action.unmute': "Unmute";
|
|
223
|
+
readonly 'action.select': "Select";
|
|
224
|
+
readonly 'action.selected': "Selected";
|
|
225
|
+
readonly 'action.clearItems': "Clear items";
|
|
226
|
+
readonly 'action.addToEditor': "Add to Editor";
|
|
227
|
+
readonly 'list.separator': ", ";
|
|
228
|
+
readonly 'toast.inBackground': "This will happen in the background";
|
|
229
|
+
readonly 'toast.unknownError': "Unknown error occurred";
|
|
230
|
+
readonly 'toast.regionLabel': "Notifications";
|
|
231
|
+
readonly 'toast.closeLabel': "Close notification";
|
|
232
|
+
readonly 'search.placeholder': "Search...";
|
|
233
|
+
readonly 'filter.by': "Filter by {type}";
|
|
234
|
+
readonly 'filterName.all': "All";
|
|
235
|
+
readonly 'filterName.image': "Image";
|
|
236
|
+
readonly 'filterName.audio': "Audio";
|
|
237
|
+
readonly 'filterName.video': "Video";
|
|
238
|
+
readonly 'filterName.document': "Document";
|
|
239
|
+
readonly 'filterName.font': "Font";
|
|
240
|
+
readonly 'filterName.svg': "SVG";
|
|
241
|
+
readonly 'filterOption.all': "All";
|
|
242
|
+
readonly 'filterOption.image': "Images";
|
|
243
|
+
readonly 'filterOption.video': "Videos";
|
|
244
|
+
readonly 'filterOption.document': "Documents";
|
|
245
|
+
readonly 'filterOption.audio': "Audio";
|
|
246
|
+
readonly 'filterOption.font': "Fonts";
|
|
247
|
+
readonly 'filterOption.svg': "SVG";
|
|
248
|
+
readonly 'sort.name': "Name";
|
|
249
|
+
readonly 'sort.date': "Date";
|
|
250
|
+
readonly 'sort.size': "Size";
|
|
251
|
+
readonly 'breadcrumbs.back': "Back";
|
|
252
|
+
readonly 'breadcrumbs.forward': "Forward";
|
|
253
|
+
readonly 'breadcrumbs.root': "File browser";
|
|
254
|
+
readonly 'breadcrumbs.label': "breadcrumb";
|
|
255
|
+
readonly 'empty.library': "No files yet!";
|
|
256
|
+
readonly 'empty.libraryFiltered': "No files of this type!";
|
|
257
|
+
readonly 'empty.folder': "No files in this folder!";
|
|
258
|
+
readonly 'library.partialNotice': "Some files could not be loaded.";
|
|
259
|
+
readonly 'library.truncatedNotice': "Only the newest files are shown.";
|
|
260
|
+
readonly 'library.notSetUp': "The media library is not set up correctly.";
|
|
261
|
+
readonly 'library.defaultLabel': "My uploads";
|
|
262
|
+
readonly 'libraryError.loadFailed': "Could not load the files";
|
|
263
|
+
readonly 'libraryError.uploadFailed': "The upload failed";
|
|
264
|
+
readonly 'libraryError.renameFailed': "Could not rename the file";
|
|
265
|
+
readonly 'libraryError.deleteFailed': "Could not delete the file";
|
|
266
|
+
readonly 'libraryError.unreachable': "Could not reach the media library";
|
|
267
|
+
readonly 'libraryError.timeout': "The media library did not answer in time";
|
|
268
|
+
readonly 'libraryError.renameNotAllowed': "This media library does not allow renaming files";
|
|
269
|
+
readonly 'libraryError.deleteNotAllowed': "This media library does not allow deleting files";
|
|
270
|
+
readonly 'libraryError.fileGone': "The file is no longer in the list";
|
|
271
|
+
readonly 'libraryError.repeatedPage': "The media library keeps returning the same files, so the rest was not loaded";
|
|
272
|
+
readonly 'libraryError.accessToken': "Could not get an access token from the page";
|
|
273
|
+
readonly 'libraryError.accessTokenRenew': "Could not get a fresh access token from the page";
|
|
274
|
+
readonly 'libraryError.fileTooLarge': "Files over {limit} MB cannot be uploaded here yet";
|
|
275
|
+
readonly 'libraryError.uploadNotAllowed': "This media library does not accept uploads";
|
|
276
|
+
readonly 'size.bytes': "{size} Bytes";
|
|
277
|
+
readonly 'size.kb': "{size} KB";
|
|
278
|
+
readonly 'size.mb': "{size} MB";
|
|
279
|
+
readonly 'size.gb': "{size} GB";
|
|
280
|
+
readonly 'size.tb': "{size} TB";
|
|
281
|
+
readonly 'fileKind.any': "any";
|
|
282
|
+
readonly 'fileKind.image': "image";
|
|
283
|
+
readonly 'fileKind.video': "video";
|
|
284
|
+
readonly 'fileKind.audio': "audio";
|
|
285
|
+
readonly 'fileKind.document': "document";
|
|
286
|
+
readonly 'fileKind.font': "font";
|
|
287
|
+
readonly 'fileKind.svg': "SVG";
|
|
288
|
+
readonly 'fileTypes.allowed': "Allowed types: {types}";
|
|
289
|
+
readonly 'fileTypes.allowedSvg': "Allowed types: SVG files (.svg)";
|
|
290
|
+
readonly 'fileTypes.allowedDocument': "Allowed types: document files ({types})";
|
|
291
|
+
readonly 'fileTypes.addAll': "Add images ({images}), audio ({audio}), video ({video}), documents ({documents}), fonts ({fonts}) or vector graphics ({svg}).";
|
|
292
|
+
readonly 'fileTypes.fontNaming': "Font naming convention:\nFontFamily-Weight.extension\n\nExample:\nGeistMono-Black.ttf";
|
|
293
|
+
readonly 'upload.uploading': "Uploading...";
|
|
294
|
+
readonly 'upload.foldersNotAllowed': "Folders cannot be uploaded";
|
|
295
|
+
readonly 'upload.invalidType': "Invalid file type. Please use {types} files only.";
|
|
296
|
+
readonly 'upload.dropActive': "Drop to upload {types} files";
|
|
297
|
+
readonly 'upload.button': "Upload {types} files";
|
|
298
|
+
readonly 'upload.dragHint': "or drag and drop {types} files here";
|
|
299
|
+
readonly 'upload.chooseOrDrop': "Upload or drop {types} files here";
|
|
300
|
+
readonly 'upload.chooseOrDropLink': "Upload";
|
|
301
|
+
readonly 'upload.panelTitle': "File Upload Progress";
|
|
302
|
+
readonly 'upload.progress': "{total, plural, other {{done}/# files uploaded}}";
|
|
303
|
+
readonly 'upload.failedCount': "{count} failed";
|
|
304
|
+
readonly 'upload.expandPanel': "Expand panel";
|
|
305
|
+
readonly 'upload.collapsePanel': "Collapse panel";
|
|
306
|
+
readonly 'upload.expandUploader': "Expand uploader";
|
|
307
|
+
readonly 'upload.collapseUploader': "Collapse uploader";
|
|
308
|
+
readonly 'upload.closeUploader': "Close uploader";
|
|
309
|
+
readonly 'upload.cancel': "Cancel upload";
|
|
310
|
+
readonly 'upload.retry': "Retry upload";
|
|
311
|
+
readonly 'upload.retryFailed': "Retry failed uploads?";
|
|
312
|
+
readonly 'upload.clearCompleted': "Clear completed uploads";
|
|
313
|
+
readonly 'upload.completedAlt': "Completed";
|
|
314
|
+
readonly 'upload.networkError': "Network error";
|
|
315
|
+
readonly 'upload.unknownError': "Unknown error";
|
|
316
|
+
readonly 'upload.skippedOne': "Skipped duplicate file: {name}";
|
|
317
|
+
readonly 'upload.skippedMany': "{count, plural, one {Skipped # duplicate file} other {Skipped # duplicate files}}";
|
|
318
|
+
readonly 'upload.time.calculating': "calculating...";
|
|
319
|
+
readonly 'upload.time.lessThanSecond': "less than a second";
|
|
320
|
+
readonly 'upload.time.seconds': "{count, plural, one {# second} other {# seconds}}";
|
|
321
|
+
readonly 'upload.time.minutes': "{count, plural, one {# minute} other {# minutes}}";
|
|
322
|
+
readonly 'upload.timeLeft': "{time} left";
|
|
323
|
+
readonly 'upload.complete': "Upload complete.";
|
|
324
|
+
readonly 'upload.removeFile': "Remove file";
|
|
325
|
+
readonly 'upload.uploadingProgress': "{total, plural, other {Uploading {done}/# files}}";
|
|
326
|
+
readonly 'upload.filesTotal': "{count, plural, one {# file} other {# files}}";
|
|
327
|
+
readonly 'upload.completeCount': "{done}/{total} complete";
|
|
328
|
+
readonly 'dialog.delete.folderTitle': "Delete folder";
|
|
329
|
+
readonly 'dialog.delete.itemsTitle': "Delete items";
|
|
330
|
+
readonly 'dialog.delete.fileTitle': "Delete file";
|
|
331
|
+
readonly 'dialog.delete.folderMessage': "Delete '{name}' and all content inside?";
|
|
332
|
+
readonly 'dialog.delete.itemsMessage': "{count, plural, one {Are you sure you want to delete # item?} other {Are you sure you want to delete # items?}}";
|
|
333
|
+
readonly 'dialog.delete.fileMessage': "Delete '{name}'?";
|
|
334
|
+
readonly 'dialog.newFolder.placeholder': "folder name...";
|
|
335
|
+
readonly 'dialog.newFolder.invalidTitle': "Invalid folder name";
|
|
336
|
+
readonly 'dialog.newFolder.required': "Folder name is required";
|
|
337
|
+
readonly 'dialog.newFolder.invalidCharacters': "Folder name can only contain letters, numbers, and spaces";
|
|
338
|
+
readonly 'dialog.newFolder.tooLong': "Folder name cannot exceed {max} characters";
|
|
339
|
+
readonly 'dialog.rename.filePlaceholder': "file name...";
|
|
340
|
+
readonly 'dialog.rename.folderPlaceholder': "folder name...";
|
|
341
|
+
readonly 'dialog.rename.invalidTitle': "Invalid name";
|
|
342
|
+
readonly 'dialog.rename.enterName': "Please enter a name";
|
|
343
|
+
readonly 'dialog.rename.enterDifferentName': "Please enter a different name";
|
|
344
|
+
readonly 'dialog.rename.enterValidName': "Please enter a valid name";
|
|
345
|
+
readonly 'dialog.rename.tooShort': "Name must be at least 1 character long";
|
|
346
|
+
readonly 'dialog.rename.tooLong': "Name must be {max} characters or less";
|
|
347
|
+
readonly 'dialog.close': "Close modal";
|
|
348
|
+
readonly 'toast.rename.started': "Renaming \"{name}\"...";
|
|
349
|
+
readonly 'toast.rename.done': "Item renamed";
|
|
350
|
+
readonly 'toast.rename.doneDetail': "Successfully renamed \"{oldName}\" to \"{newName}\"";
|
|
351
|
+
readonly 'toast.rename.failed': "Rename failed";
|
|
352
|
+
readonly 'toast.rename.noChange': "No changes were made";
|
|
353
|
+
readonly 'toast.rename.noItem': "No valid item selected";
|
|
354
|
+
readonly 'toast.rename.unknownError': "An unknown error occurred";
|
|
355
|
+
readonly 'toast.delete.started': "{count, plural, one {Deleting \"{name}\"...} other {Deleting # items...}}";
|
|
356
|
+
readonly 'toast.delete.doneFolder': "Deleted folder \"{name}\"";
|
|
357
|
+
readonly 'toast.delete.doneFile': "Deleted \"{name}\"";
|
|
358
|
+
readonly 'toast.delete.doneMany': "{count, plural, one {Deleted # item} other {Deleted # items}}";
|
|
359
|
+
readonly 'toast.delete.doneFolderDetail': "Folder and its contents were deleted successfully";
|
|
360
|
+
readonly 'toast.delete.doneFileDetail': "Item was deleted successfully";
|
|
361
|
+
readonly 'toast.delete.doneManyDetail': "{count, plural, one {# item was deleted successfully} other {# items were deleted successfully}}";
|
|
362
|
+
readonly 'toast.delete.doneNames': "Deleted: {names}";
|
|
363
|
+
readonly 'toast.delete.failedOne': "Failed to delete \"{name}\"";
|
|
364
|
+
readonly 'toast.delete.failedMany': "{count, plural, one {Failed to delete # item} other {Failed to delete # items}}";
|
|
365
|
+
readonly 'toast.delete.failedNames': "Failed to delete: {names}";
|
|
366
|
+
readonly 'toast.delete.failedSome': "Some items could not be deleted";
|
|
367
|
+
readonly 'toast.delete.failedAll': "Failed to delete items";
|
|
368
|
+
readonly 'toast.folder.created': "Folder created";
|
|
369
|
+
readonly 'toast.folder.createdDetail': "Created folder \"{name}\"";
|
|
370
|
+
readonly 'toast.folder.failed': "Failed to create folder";
|
|
371
|
+
readonly 'toast.navigation.failed': "Navigation failed";
|
|
372
|
+
readonly 'toast.navigation.noFolder': "Could not find the target folder location";
|
|
373
|
+
readonly 'toast.navigation.error': "An error occurred while navigating to the target folder";
|
|
374
|
+
readonly 'toast.filesAdded': "Files added";
|
|
375
|
+
readonly 'toast.filesAddedDetail': "{count, plural, one {Added # file to the editor} other {Added # files to the editor}}";
|
|
376
|
+
readonly 'folder.currentLocation': "current location";
|
|
377
|
+
readonly 'folder.open': "Open folder {name}";
|
|
378
|
+
readonly 'folder.empty': "Empty";
|
|
379
|
+
readonly 'folder.itemCount': "{count, plural, one {# item} other {# items}}";
|
|
380
|
+
readonly 'item.previewLabel': "Preview {name}";
|
|
381
|
+
readonly 'item.audioFile': "Audio file";
|
|
382
|
+
readonly 'item.documentFile': "Document file";
|
|
383
|
+
readonly 'item.deleteMissing': "Delete missing file";
|
|
384
|
+
readonly 'item.folder': "Folder";
|
|
385
|
+
readonly 'recent.title': "Recent Files";
|
|
386
|
+
readonly 'recent.empty': "No recent files available!";
|
|
387
|
+
readonly 'newFolder.alt': "New Folder";
|
|
388
|
+
readonly 'newFolder.label': "New folder";
|
|
389
|
+
readonly 'search.noResults': "No results found";
|
|
390
|
+
readonly 'menu.open': "Open menu";
|
|
391
|
+
readonly 'menu.moreOptions': "More options";
|
|
392
|
+
readonly 'toolbar.more': "+{count} more";
|
|
393
|
+
readonly 'toolbar.moveMany': "{count, plural, one {Move # file} other {Move # files}}";
|
|
394
|
+
readonly 'toolbar.deleteMany': "{count, plural, one {Delete # file} other {Delete # files}}";
|
|
395
|
+
readonly 'selectedFiles.title': "Selected files";
|
|
396
|
+
readonly 'selectedFiles.empty': "No files selected";
|
|
397
|
+
readonly 'selectedFiles.count': "{count, plural, one {# file selected} other {# files selected}}";
|
|
398
|
+
readonly 'selectedFiles.confirmMany': "{count, plural, one {Use # file} other {Use # files}}";
|
|
399
|
+
readonly 'searchModal.placeholder': "Search files and folders...";
|
|
400
|
+
readonly 'searchModal.jumpToFolder': "Jump to folder";
|
|
401
|
+
readonly 'searchModal.empty': "No files found";
|
|
402
|
+
readonly 'moveDialog.titleOne': "Move \"{name}\"";
|
|
403
|
+
readonly 'moveDialog.titleMany': "{count, plural, one {Move # item} other {Move # items}}";
|
|
404
|
+
readonly 'moveDialog.rootName': "File browser";
|
|
405
|
+
readonly 'moveDialog.movingTo': "Moving to {name}";
|
|
406
|
+
readonly 'moveDialog.confirmFolder': "Move folder";
|
|
407
|
+
readonly 'moveDialog.confirmItem': "Move to folder";
|
|
408
|
+
readonly 'moveDialog.confirmMany': "{count, plural, one {Move # item} other {Move # items}}";
|
|
409
|
+
readonly 'moveDialog.failedFolder': "Failed to move folder";
|
|
410
|
+
readonly 'moveDialog.failedItems': "Failed to move items";
|
|
411
|
+
readonly 'moveDialog.noTarget': "No target folder selected";
|
|
412
|
+
readonly 'moveDialog.noItems': "No items selected to move";
|
|
413
|
+
readonly 'moveDialog.pickDestination': "Please select a destination folder";
|
|
414
|
+
readonly 'moveDialog.noneMoved': "No items were moved successfully";
|
|
415
|
+
readonly 'moveDialog.partialTitle': "Some items moved";
|
|
416
|
+
readonly 'moveDialog.partialDetail': "{total, plural, other {Moved {moved} out of # items}}";
|
|
417
|
+
readonly 'moveDialog.doneFolder': "Folder moved";
|
|
418
|
+
readonly 'moveDialog.doneOne': "Item moved";
|
|
419
|
+
readonly 'moveDialog.doneMany': "Items moved";
|
|
420
|
+
readonly 'moveDialog.doneFolderDetail': "Moved folder \"{name}\" successfully";
|
|
421
|
+
readonly 'moveDialog.doneItemsDetail': "{count, plural, one {Moved # item successfully} other {Moved # items successfully}}";
|
|
422
|
+
readonly 'preview.audioFailed': "Audio failed to load";
|
|
423
|
+
readonly 'preview.audioUnsupported': "Your browser does not support the audio element.";
|
|
424
|
+
readonly 'preview.videoFailed': "Video failed to load";
|
|
425
|
+
readonly 'preview.videoUnsupported': "Your browser does not support the video tag.";
|
|
426
|
+
readonly 'preview.errorAlt': "Error";
|
|
427
|
+
readonly 'preview.fileNotFound': "File not found";
|
|
428
|
+
readonly 'preview.loading': "Loading...";
|
|
429
|
+
readonly 'preview.textFailed': "Failed to load text file";
|
|
430
|
+
readonly 'preview.textFailedReason': "Failed to load text file: {reason}";
|
|
431
|
+
readonly 'preview.unavailable': "Preview not available for this file type.";
|
|
432
|
+
readonly 'preview.pdfLoading': "Loading PDF...";
|
|
433
|
+
readonly 'preview.pdfFailed': "Failed to load PDF";
|
|
434
|
+
readonly 'preview.pdfPage': "Page {page} of {total}";
|
|
435
|
+
readonly 'preview.pdfPreviousPage': "Previous page";
|
|
436
|
+
readonly 'preview.pdfNextPage': "Next page";
|
|
437
|
+
readonly 'fontPreview.sample': "The quick brown fox jumps over the lazy dog";
|
|
438
|
+
readonly 'fontPreview.sampleShort': "The quick fox";
|
|
439
|
+
readonly 'metadata.title': "File Information";
|
|
440
|
+
readonly 'metadata.name': "Name:";
|
|
441
|
+
readonly 'metadata.type': "Type:";
|
|
442
|
+
readonly 'metadata.size': "Size:";
|
|
443
|
+
readonly 'metadata.modified': "Last Modified:";
|
|
444
|
+
readonly 'metadata.notAvailable': "N/A";
|
|
445
|
+
readonly 'date.fewSecondsAgo': "A few seconds ago";
|
|
446
|
+
readonly 'date.hoursAgo': "{count, plural, one {# hour ago} other {# hours ago}}";
|
|
447
|
+
readonly 'date.daysAgo': "{count, plural, one {# day ago} other {# days ago}}";
|
|
448
|
+
readonly 'date.weeksAgo': "{count, plural, one {# week ago} other {# weeks ago}}";
|
|
449
|
+
readonly 'date.aboutAMonthAgo': "About a month ago";
|
|
450
|
+
readonly 'date.severalMonthsAgo': "Several months ago";
|
|
451
|
+
readonly 'date.overAYearAgo': "Over a year ago";
|
|
452
|
+
};
|
|
453
|
+
readonly shadEditor: {
|
|
454
|
+
readonly 'shadEditor.toolbar.undo': "Undo (\u2318Z)";
|
|
455
|
+
readonly 'shadEditor.toolbar.redo': "Redo (\u2318\u21E7Z)";
|
|
456
|
+
readonly 'shadEditor.toolbar.bold': "Bold (\u2318B)";
|
|
457
|
+
readonly 'shadEditor.toolbar.italic': "Italic (\u2318I)";
|
|
458
|
+
readonly 'shadEditor.toolbar.underline': "Underline (\u2318U)";
|
|
459
|
+
readonly 'shadEditor.toolbar.strikethrough': "Strike (\u2318\u21E7S)";
|
|
460
|
+
readonly 'shadEditor.toolbar.subscript': "Subscript (\u2318,)";
|
|
461
|
+
readonly 'shadEditor.toolbar.superscript': "Superscript (\u2318.)";
|
|
462
|
+
readonly 'shadEditor.toolbar.code': "Code (\u2318E)";
|
|
463
|
+
readonly 'shadEditor.toolbar.blockQuote': "Block Quote (\u2318\u21E7B)";
|
|
464
|
+
readonly 'shadEditor.toolbar.bulletList': "Bullet List (\u2318\u21E78)";
|
|
465
|
+
readonly 'shadEditor.toolbar.orderedList': "Ordered List";
|
|
466
|
+
readonly 'shadEditor.toolbar.taskList': "Tasks List (\u2318\u21E79)";
|
|
467
|
+
readonly 'shadEditor.text.tooltip': "Text Formatting";
|
|
468
|
+
readonly 'shadEditor.text.heading1': "Heading 1";
|
|
469
|
+
readonly 'shadEditor.text.heading2': "Heading 2";
|
|
470
|
+
readonly 'shadEditor.text.heading3': "Heading 3";
|
|
471
|
+
readonly 'shadEditor.text.paragraph': "Paragraph";
|
|
472
|
+
readonly 'shadEditor.text.codeBlock': "Code Block";
|
|
473
|
+
readonly 'shadEditor.align.tooltip': "Text Alignment";
|
|
474
|
+
readonly 'shadEditor.align.left': "Align Left";
|
|
475
|
+
readonly 'shadEditor.align.center': "Align Center";
|
|
476
|
+
readonly 'shadEditor.align.right': "Align Right";
|
|
477
|
+
readonly 'shadEditor.align.justify': "Align Justify";
|
|
478
|
+
readonly 'shadEditor.link.tooltip': "Add Or Remove Link";
|
|
479
|
+
readonly 'shadEditor.link.title': "Link";
|
|
480
|
+
readonly 'shadEditor.link.hint': "Insert or remove link from selected text.";
|
|
481
|
+
readonly 'shadEditor.link.placeholder': "Enter link to attach..";
|
|
482
|
+
readonly 'shadEditor.link.insert': "Insert";
|
|
483
|
+
readonly 'shadEditor.link.remove': "Remove";
|
|
484
|
+
readonly 'shadEditor.image.tooltip': "Add Image";
|
|
485
|
+
readonly 'shadEditor.image.title': "Image";
|
|
486
|
+
readonly 'shadEditor.image.urlHint': "Insert image url";
|
|
487
|
+
readonly 'shadEditor.image.urlPlaceholder': "Enter image url...";
|
|
488
|
+
readonly 'shadEditor.image.orPick': "OR Pick an Image";
|
|
489
|
+
readonly 'shadEditor.table.tooltip': "Table";
|
|
490
|
+
readonly 'shadEditor.table.insert': "Insert Table";
|
|
491
|
+
readonly 'shadEditor.table.header': "Header";
|
|
492
|
+
readonly 'shadEditor.table.toggleColumn': "Toggle Column";
|
|
493
|
+
readonly 'shadEditor.table.toggleRow': "Toggle Row";
|
|
494
|
+
readonly 'shadEditor.table.toggleCell': "Toggle Cell";
|
|
495
|
+
readonly 'shadEditor.table.cells': "Cells";
|
|
496
|
+
readonly 'shadEditor.table.merge': "Merge";
|
|
497
|
+
readonly 'shadEditor.table.split': "Split";
|
|
498
|
+
readonly 'shadEditor.table.mergeOrSplit': "Merge or Split";
|
|
499
|
+
readonly 'shadEditor.table.row': "Row";
|
|
500
|
+
readonly 'shadEditor.table.insertAbove': "Insert Above";
|
|
501
|
+
readonly 'shadEditor.table.insertBelow': "Insert Below";
|
|
502
|
+
readonly 'shadEditor.table.deleteRow': "Delete Row";
|
|
503
|
+
readonly 'shadEditor.table.column': "Column";
|
|
504
|
+
readonly 'shadEditor.table.insertBefore': "Insert Before";
|
|
505
|
+
readonly 'shadEditor.table.insertAfter': "Insert After";
|
|
506
|
+
readonly 'shadEditor.table.deleteColumn': "Delete";
|
|
507
|
+
readonly 'shadEditor.table.deleteTable': "Delete";
|
|
508
|
+
readonly 'shadEditor.textColor.tooltip': "Text Color";
|
|
509
|
+
readonly 'shadEditor.textColor.pick': "Pick a text color";
|
|
510
|
+
readonly 'shadEditor.textColor.remove': "Remove Color";
|
|
511
|
+
readonly 'shadEditor.highlight.tooltip': "Highlighter (\u2318\u21E7H)";
|
|
512
|
+
readonly 'shadEditor.highlight.pick': "Pick a highlight color";
|
|
513
|
+
readonly 'shadEditor.highlight.remove': "Remove Highlight";
|
|
514
|
+
readonly 'shadEditor.quickColor.tooltip': "Quick Colors";
|
|
515
|
+
readonly 'shadEditor.quickColor.textColor': "Text Color";
|
|
516
|
+
readonly 'shadEditor.quickColor.backgroundColors': "Background Colors";
|
|
517
|
+
readonly 'shadEditor.colorName.default': "Default";
|
|
518
|
+
readonly 'shadEditor.colorName.blue': "Blue";
|
|
519
|
+
readonly 'shadEditor.colorName.brown': "Brown";
|
|
520
|
+
readonly 'shadEditor.colorName.green': "Green";
|
|
521
|
+
readonly 'shadEditor.colorName.grey': "Grey";
|
|
522
|
+
readonly 'shadEditor.colorName.orange': "Orange";
|
|
523
|
+
readonly 'shadEditor.colorName.pink': "Pink";
|
|
524
|
+
readonly 'shadEditor.colorName.purple': "Purple";
|
|
525
|
+
readonly 'shadEditor.colorName.red': "Red";
|
|
526
|
+
readonly 'shadEditor.colorName.yellow': "Yellow";
|
|
527
|
+
readonly 'shadEditor.colorPicker.label': "Pick a color";
|
|
528
|
+
readonly 'shadEditor.search.tooltip': "Search And Replace Text";
|
|
529
|
+
readonly 'shadEditor.search.searchPlaceholder': "Enter Text to search..";
|
|
530
|
+
readonly 'shadEditor.search.replacePlaceholder': "Enter Text to Replace..";
|
|
531
|
+
readonly 'shadEditor.search.caseSensitive': "Case Sensitive";
|
|
532
|
+
readonly 'shadEditor.search.position': "{index} / {count}";
|
|
533
|
+
readonly 'shadEditor.imageBlock.back': "Back";
|
|
534
|
+
readonly 'shadEditor.imageBlock.caption': "Caption";
|
|
535
|
+
readonly 'shadEditor.imageBlock.duplicate': "Duplicate";
|
|
536
|
+
readonly 'shadEditor.imageBlock.fullScreen': "Full Screen";
|
|
537
|
+
readonly 'shadEditor.imageBlock.delete': "Delete";
|
|
538
|
+
readonly 'shadEditor.imageBlock.defaultCaption': "Image Caption";
|
|
539
|
+
};
|
|
211
540
|
};
|
|
212
541
|
/** Every message of the editor and of the packages inside it, as one catalog: what a page's `messages` may have a key of. */
|
|
213
542
|
export declare const ALL_EDITOR_MESSAGES: Readonly<Record<string, string>>;
|
|
@@ -216,12 +545,12 @@ export declare const ALL_EDITOR_MESSAGES: Readonly<Record<string, string>>;
|
|
|
216
545
|
* the nearest real one), a value that is not text, a template that does not parse, or one that asks for a value the message
|
|
217
546
|
* is never given. An empty list means every message will be used. For a test or a build step of the page.
|
|
218
547
|
*/
|
|
219
|
-
export declare const checkEditorMessages: (messages:
|
|
548
|
+
export declare const checkEditorMessages: (messages: import("@widgetic/file-browser").MessageOverrides) => import("@widgetic/file-browser").MessageProblem[];
|
|
220
549
|
/**
|
|
221
550
|
* Called by the root component of an editor while it is created, so everything inside it speaks the page's language.
|
|
222
551
|
* The context belongs to one root component, so two editors on a page can speak two languages.
|
|
223
552
|
*/
|
|
224
|
-
export declare const provideEditorLanguage: (initial:
|
|
553
|
+
export declare const provideEditorLanguage: (initial: import("@widgetic/design-system/i18n").I18nSettings) => import("./languageKit.js").EditorLanguageHandle;
|
|
225
554
|
/**
|
|
226
555
|
* Called by a part of the editor while it is created. Gives its words as stores, so a part that is already on the screen
|
|
227
556
|
* changes when the page sets the language again. Outside an editor (a control used on its own) it speaks English.
|
package/dist/i18n/translate.d.ts
CHANGED
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* its sentences with it until the page gives another translator). The editor's screens get their words, in the page's
|
|
4
4
|
* language, from `useEditorLanguage` (see `language.ts`).
|
|
5
5
|
*/
|
|
6
|
-
export declare const translateEnglish:
|
|
6
|
+
export declare const translateEnglish: import("@widgetic/design-system/i18n").Translate<"editor.app.loading" | "editor.app.tryAgain" | "editor.app.retry" | "editor.failure.widgetNotPublished" | "editor.failure.sessionEndedWhileSaving" | "editor.failure.sessionEnded" | "editor.failure.compositionNotFound" | "editor.failure.noAccess" | "editor.failure.noWidget" | "editor.failure.widgetNotFound" | "editor.failure.saveNeedsConnection" | "editor.failure.loadNeedsConnection" | "editor.failure.saveFailed" | "editor.failure.loadFailed" | "editor.failure.settingsLoadFailed" | "editor.failure.noSettings" | "editor.failure.errorCode" | "editor.props.title" | "editor.props.designTab" | "editor.props.contentTab" | "editor.props.contentCard" | "editor.props.save" | "editor.props.saving" | "editor.props.noConfiguration" | "editor.props.noDesignSchema" | "editor.props.noSchemaData" | "editor.props.noComponents" | "editor.props.noProperties" | "editor.props.addItem" | "editor.props.deleteItem" | "editor.embed.title" | "editor.embed.loading" | "editor.embed.noCode" | "editor.embed.codeHeader" | "editor.embed.headerArea" | "editor.embed.readMore" | "editor.embed.copy" | "editor.embed.copied" | "editor.embed.copiedHint" | "editor.embed.copiedDone" | "editor.embed.copyFailed" | "editor.embed.copyFailedHint" | "editor.preview.title" | "editor.preview.dragHandle" | "editor.preview.desktop" | "editor.preview.mobile" | "editor.preview.widthShort" | "editor.preview.heightShort" | "editor.preview.noUrl" | "editor.preview.copyUrl" | "editor.preview.refresh" | "editor.preview.fitToPanel" | "editor.preview.mobileViewport" | "editor.preview.desktopViewport" | "editor.preview.openInNewTab" | "editor.preview.newTab" | "editor.preview.selectWidget" | "editor.preview.widgetName" | "editor.preview.notPublished" | "editor.preview.publishToPreview" | "editor.preview.frameTitle" | "editor.preview.frameTitleNamed" | "editor.preview.unavailable" | "editor.preview.loadFailedPreview" | "editor.preview.retry" | "editor.preview.retryBuild" | "editor.preview.retryPreview" | "editor.preview.fixErrors" | "editor.preview.viewErrors" | "editor.preview.runtimeError" | "editor.preview.compilationErrors" | "editor.preview.compilationErrorsDetail" | "editor.preview.noCodeYet" | "editor.preview.noPreview" | "editor.preview.building" | "editor.preview.loadingWidget" | "editor.preview.loadingPreview" | "editor.preview.checkingWidget" | "editor.preview.applyingSettings" | "editor.preview.connecting" | "editor.preview.generatingCode" | "editor.list.recentlyUsed" | "editor.list.more" | "editor.list.searchResults" | "editor.list.loadingMore" | "editor.list.deleteItem" | "editor.category.all" | "editor.category.mine" | "editor.category.sansSerif" | "editor.category.serif" | "editor.category.script" | "editor.category.other" | "editor.category.icons" | "editor.category.emojis" | "editor.category.clipart" | "editor.font.select" | "editor.font.title" | "editor.font.search" | "editor.font.list" | "editor.font.loading" | "editor.font.noneFound" | "editor.font.noneAvailable" | "editor.font.remove" | "editor.font.weight" | "editor.font.weightList" | "editor.fontWeight.withItalic" | "editor.fontWeight.italic" | "editor.fontWeight.thin" | "editor.fontWeight.extraLight" | "editor.fontWeight.light" | "editor.fontWeight.regular" | "editor.fontWeight.medium" | "editor.fontWeight.semiBold" | "editor.fontWeight.bold" | "editor.fontWeight.extraBold" | "editor.fontWeight.black" | "editor.vector.select" | "editor.vector.title" | "editor.vector.search" | "editor.vector.list" | "editor.vector.noneFound" | "editor.vector.noneAvailable" | "editor.file.useFile" | "editor.file.useImage" | "editor.file.useVideo" | "editor.file.useAudio" | "editor.file.useDocument" | "editor.file.addFile" | "editor.file.addImage" | "editor.file.addVideo" | "editor.file.addAudio" | "editor.file.addDocument" | "editor.file.play" | "editor.file.pause" | "editor.file.notFound" | "editor.file.emptyFolder" | "editor.file.clear" | "editor.file.pickFailed" | "editor.file.dialogTitle" | "editor.file.closeDialog" | "editor.color.noRecent" | "editor.color.picker" | "editor.date.pick" | "editor.date.pickRange" | "editor.date.invalid" | "editor.date.selectMonth" | "editor.date.selectYear" | "editor.date.calendarLabel" | "editor.date.rangeCalendarLabel" | "editor.date.previousMonth" | "editor.date.nextMonth" | "editor.dateField.dayHint" | "editor.dateField.monthHint" | "editor.dateField.yearHint" | "editor.dateField.dayLabel" | "editor.dateField.monthLabel" | "editor.dateField.yearLabel" | "editor.dropdown.select" | "editor.switch.off" | "editor.switch.on" | "editor.tags.add" | "editor.position.x" | "editor.position.y" | "editor.fixedPosition.set" | "editor.fixedPosition.topLeft" | "editor.fixedPosition.topCenter" | "editor.fixedPosition.topRight" | "editor.fixedPosition.centerLeft" | "editor.fixedPosition.centerCenter" | "editor.fixedPosition.centerRight" | "editor.fixedPosition.bottomLeft" | "editor.fixedPosition.bottomCenter" | "editor.fixedPosition.bottomRight" | "editor.corners.group" | "editor.corners.topLeft" | "editor.corners.topRight" | "editor.corners.bottomLeft" | "editor.corners.bottomRight" | "editor.corners.lock" | "editor.corners.unlock" | "editor.textArea.toolbar" | "editor.textArea.toggleBold" | "editor.textArea.toggleItalic" | "editor.textArea.toggleUnderline" | "editor.textArea.toggleLink" | "editor.textArea.text" | "editor.textArea.paragraph" | "editor.textArea.heading1" | "editor.textArea.heading2" | "editor.textArea.heading3" | "editor.textArea.bulletList" | "editor.textArea.numberedList" | "editor.textArea.checkList" | "editor.textArea.textStyles" | "editor.textArea.listStyles" | "editor.textArea.enterUrl" | "editor.schema.subtitleFont">;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@widgetic/editor",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
"render-build": "bash render-build.sh",
|
|
39
39
|
"build": "npm run sync-embed-schema && NODE_ENV=production NODE_OPTIONS=--max-old-space-size=8192 vite build",
|
|
40
40
|
"package": "svelte-package",
|
|
41
|
+
"publish-to-npm": "node ../dev-tools/bin/publish-package.mjs",
|
|
41
42
|
"package:watch": "svelte-package --watch",
|
|
42
43
|
"preview": "vite preview",
|
|
43
44
|
"deploy": "vite build && vite preview --host --port 80",
|