@harbour-enterprises/superdoc 0.12.18 → 0.12.20

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.
Files changed (31) hide show
  1. package/dist/chunks/{super-editor.es-DIiFOcde.es.js → super-editor.es-Bwk4Mypj.es.js} +119 -52
  2. package/dist/chunks/{super-editor.es-DK2NC1Gl.cjs → super-editor.es-Y854o0UB.cjs} +119 -52
  3. package/dist/core/SuperDoc.d.ts +5 -0
  4. package/dist/core/SuperDoc.d.ts.map +1 -1
  5. package/dist/super-editor/ai-writer.es.js +2 -2
  6. package/dist/super-editor/chunks/{converter-BbPgOxa0.js → converter-B8bdBUgY.js} +2 -2
  7. package/dist/super-editor/chunks/{docx-zipper-Ce0B_FTd.js → docx-zipper-CQsKTRQj.js} +1 -1
  8. package/dist/super-editor/chunks/{editor-CU4NcQRP.js → editor-NAeVYoNG.js} +10 -3
  9. package/dist/super-editor/chunks/{toolbar-BhjcMYDy.js → toolbar-CMBy65X5.js} +2 -2
  10. package/dist/super-editor/components/toolbar/defaultItems.d.ts +1 -1
  11. package/dist/super-editor/components/toolbar/defaultItems.d.ts.map +1 -1
  12. package/dist/super-editor/components/toolbar/super-toolbar.d.ts +5 -0
  13. package/dist/super-editor/components/toolbar/super-toolbar.d.ts.map +1 -1
  14. package/dist/super-editor/components/toolbar/toolbarTexts.d.ts +51 -0
  15. package/dist/super-editor/components/toolbar/toolbarTexts.d.ts.map +1 -0
  16. package/dist/super-editor/converter.es.js +1 -1
  17. package/dist/super-editor/docx-zipper.es.js +2 -2
  18. package/dist/super-editor/editor.es.js +3 -3
  19. package/dist/super-editor/extensions/paragraph/helpers/getDefaultSpacing.d.ts +7 -0
  20. package/dist/super-editor/extensions/paragraph/helpers/getDefaultSpacing.d.ts.map +1 -0
  21. package/dist/super-editor/extensions/paragraph/paragraph.d.ts.map +1 -1
  22. package/dist/super-editor/file-zipper.es.js +1 -1
  23. package/dist/super-editor/super-editor.es.js +116 -55
  24. package/dist/super-editor/toolbar.es.js +2 -2
  25. package/dist/super-editor.cjs +1 -1
  26. package/dist/super-editor.es.js +1 -1
  27. package/dist/superdoc.cjs +4 -2
  28. package/dist/superdoc.es.js +5 -3
  29. package/dist/superdoc.umd.js +122 -53
  30. package/dist/superdoc.umd.js.map +1 -1
  31. package/package.json +1 -1
@@ -23287,7 +23287,7 @@ const _SuperConverter = class _SuperConverter2 {
23287
23287
  return;
23288
23288
  }
23289
23289
  }
23290
- static updateDocumentVersion(docx = this.convertedXml, version2 = "0.12.18") {
23290
+ static updateDocumentVersion(docx = this.convertedXml, version2 = "0.12.20") {
23291
23291
  const customLocation = "docProps/custom.xml";
23292
23292
  if (!docx[customLocation]) {
23293
23293
  docx[customLocation] = generateCustomXml();
@@ -23753,7 +23753,7 @@ function storeSuperdocVersion(docx) {
23753
23753
  function generateCustomXml() {
23754
23754
  return DEFAULT_CUSTOM_XML;
23755
23755
  }
23756
- function generateSuperdocVersion(pid = 2, version2 = "0.12.18") {
23756
+ function generateSuperdocVersion(pid = 2, version2 = "0.12.20") {
23757
23757
  return {
23758
23758
  type: "element",
23759
23759
  name: "property",
@@ -40908,7 +40908,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
40908
40908
  * @returns {Object | void} Migration results
40909
40909
  */
40910
40910
  processCollaborationMigrations() {
40911
- console.debug("[checkVersionMigrations] Current editor version", "0.12.18");
40911
+ console.debug("[checkVersionMigrations] Current editor version", "0.12.20");
40912
40912
  if (!this.options.ydoc) return;
40913
40913
  const metaMap = this.options.ydoc.getMap("meta");
40914
40914
  let docVersion = metaMap.get("version");
@@ -43565,6 +43565,12 @@ const getQuickFormatList = (editor) => {
43565
43565
  return a.definition.attrs?.name.localeCompare(b.definition.attrs?.name);
43566
43566
  });
43567
43567
  };
43568
+ const getDefaultSpacing = () => ({
43569
+ lineSpaceAfter: 0,
43570
+ lineSpaceBefore: 0,
43571
+ line: 0,
43572
+ lineRule: null
43573
+ });
43568
43574
  const Paragraph = Node$1.create({
43569
43575
  name: "paragraph",
43570
43576
  priority: 1e3,
@@ -43579,6 +43585,7 @@ const Paragraph = Node$1.create({
43579
43585
  addAttributes() {
43580
43586
  return {
43581
43587
  spacing: {
43588
+ default: getDefaultSpacing(),
43582
43589
  renderDOM: (attrs) => {
43583
43590
  const { spacing } = attrs;
43584
43591
  if (!spacing) return {};
@@ -64877,6 +64884,7 @@ const closeDropdown = (dropdown) => {
64877
64884
  const makeDefaultItems = ({
64878
64885
  superToolbar,
64879
64886
  toolbarIcons: toolbarIcons2,
64887
+ toolbarTexts: toolbarTexts2,
64880
64888
  toolbarFonts,
64881
64889
  hideButtons,
64882
64890
  availableWidth,
@@ -64888,12 +64896,12 @@ const makeDefaultItems = ({
64888
64896
  name: "bold",
64889
64897
  command: "toggleBold",
64890
64898
  icon: toolbarIcons2.bold,
64891
- tooltip: "Bold"
64899
+ tooltip: toolbarTexts2.bold
64892
64900
  });
64893
64901
  const fontButton = useToolbarItem({
64894
64902
  type: "dropdown",
64895
64903
  name: "fontFamily",
64896
- tooltip: "Font",
64904
+ tooltip: toolbarTexts2.fontFamily,
64897
64905
  command: "setFontFamily",
64898
64906
  defaultLabel: "Arial",
64899
64907
  label: "Arial",
@@ -64917,7 +64925,7 @@ const makeDefaultItems = ({
64917
64925
  outline: "none"
64918
64926
  },
64919
64927
  name: "ai",
64920
- tooltip: "AI text generation",
64928
+ tooltip: toolbarTexts2.ai,
64921
64929
  icon: toolbarIcons2.ai,
64922
64930
  hideLabel: true,
64923
64931
  hasCaret: false,
@@ -64963,7 +64971,7 @@ const makeDefaultItems = ({
64963
64971
  minWidth: "50px",
64964
64972
  markName: "textStyle",
64965
64973
  labelAttr: "fontSize",
64966
- tooltip: "Font size",
64974
+ tooltip: toolbarTexts2.fontSize,
64967
64975
  hasCaret: true,
64968
64976
  hasInlineTextInput: false,
64969
64977
  inlineTextInputVisible: true,
@@ -65005,14 +65013,14 @@ const makeDefaultItems = ({
65005
65013
  name: "italic",
65006
65014
  command: "toggleItalic",
65007
65015
  icon: toolbarIcons2.italic,
65008
- tooltip: "Italic"
65016
+ tooltip: toolbarTexts2.italic
65009
65017
  });
65010
65018
  const underline = useToolbarItem({
65011
65019
  type: "button",
65012
65020
  name: "underline",
65013
65021
  command: "toggleUnderline",
65014
65022
  icon: toolbarIcons2.underline,
65015
- tooltip: "Underline"
65023
+ tooltip: toolbarTexts2.underline
65016
65024
  });
65017
65025
  const highlight = useToolbarItem({
65018
65026
  type: "dropdown",
@@ -65021,7 +65029,7 @@ const makeDefaultItems = ({
65021
65029
  hideLabel: true,
65022
65030
  markName: "highlight",
65023
65031
  labelAttr: "color",
65024
- tooltip: "Highlight color",
65032
+ tooltip: toolbarTexts2.highlight,
65025
65033
  command: "setHighlight",
65026
65034
  noArgumentCommand: "unsetHighlight",
65027
65035
  suppressActiveHighlight: true,
@@ -65044,7 +65052,7 @@ const makeDefaultItems = ({
65044
65052
  hideLabel: true,
65045
65053
  markName: "textStyle",
65046
65054
  labelAttr: "color",
65047
- tooltip: "Text color",
65055
+ tooltip: toolbarTexts2.color,
65048
65056
  command: "setColor",
65049
65057
  suppressActiveHighlight: true,
65050
65058
  options: [
@@ -65064,7 +65072,7 @@ const makeDefaultItems = ({
65064
65072
  type: "dropdown",
65065
65073
  name: "search",
65066
65074
  icon: toolbarIcons2.search,
65067
- tooltip: "Search",
65075
+ tooltip: toolbarTexts2.search,
65068
65076
  group: "right",
65069
65077
  inputRef: searchRef,
65070
65078
  options: [
@@ -65091,7 +65099,7 @@ const makeDefaultItems = ({
65091
65099
  name: "link",
65092
65100
  markName: "link",
65093
65101
  icon: toolbarIcons2.link,
65094
- tooltip: "Link",
65102
+ tooltip: toolbarTexts2.link,
65095
65103
  options: [
65096
65104
  {
65097
65105
  type: "render",
@@ -65144,7 +65152,7 @@ const makeDefaultItems = ({
65144
65152
  name: "image",
65145
65153
  command: "startImageUpload",
65146
65154
  icon: toolbarIcons2.image,
65147
- tooltip: "Image",
65155
+ tooltip: toolbarTexts2.image,
65148
65156
  disabled: false
65149
65157
  });
65150
65158
  const tableItem = useToolbarItem({
@@ -65153,7 +65161,7 @@ const makeDefaultItems = ({
65153
65161
  icon: toolbarIcons2.table,
65154
65162
  hideLabel: true,
65155
65163
  labelAttr: "table",
65156
- tooltip: "Insert table",
65164
+ tooltip: toolbarTexts2.table,
65157
65165
  command: "insertTable",
65158
65166
  suppressActiveHighlight: true,
65159
65167
  options: [
@@ -65191,69 +65199,69 @@ const makeDefaultItems = ({
65191
65199
  });
65192
65200
  const tableActionsOptions = [
65193
65201
  {
65194
- label: "Insert row above",
65202
+ label: toolbarTexts2.addRowBefore,
65195
65203
  command: "addRowBefore",
65196
65204
  icon: toolbarIcons2.addRowBefore,
65197
65205
  props: { "data-item": "btn-tableActions-option" }
65198
65206
  },
65199
65207
  {
65200
- label: "Insert row below",
65208
+ label: toolbarTexts2.addRowAfter,
65201
65209
  command: "addRowAfter",
65202
65210
  icon: toolbarIcons2.addRowAfter,
65203
65211
  props: { "data-item": "btn-tableActions-option" }
65204
65212
  },
65205
65213
  {
65206
- label: "Insert column left",
65214
+ label: toolbarTexts2.addColumnBefore,
65207
65215
  command: "addColumnBefore",
65208
65216
  icon: toolbarIcons2.addColumnBefore,
65209
65217
  props: { "data-item": "btn-tableActions-option" }
65210
65218
  },
65211
65219
  {
65212
- label: "Insert column right",
65220
+ label: toolbarTexts2.addColumnAfter,
65213
65221
  command: "addColumnAfter",
65214
65222
  icon: toolbarIcons2.addColumnAfter,
65215
65223
  bottomBorder: true,
65216
65224
  props: { "data-item": "btn-tableActions-option" }
65217
65225
  },
65218
65226
  {
65219
- label: "Delete row",
65227
+ label: toolbarTexts2.deleteRow,
65220
65228
  command: "deleteRow",
65221
65229
  icon: toolbarIcons2.deleteRow,
65222
65230
  props: { "data-item": "btn-tableActions-option" }
65223
65231
  },
65224
65232
  {
65225
- label: "Delete column",
65233
+ label: toolbarTexts2.deleteColumn,
65226
65234
  command: "deleteColumn",
65227
65235
  icon: toolbarIcons2.deleteColumn,
65228
65236
  props: { "data-item": "btn-tableActions-option" }
65229
65237
  },
65230
65238
  {
65231
- label: "Delete table",
65239
+ label: toolbarTexts2.deleteTable,
65232
65240
  command: "deleteTable",
65233
65241
  icon: toolbarIcons2.deleteTable,
65234
65242
  props: { "data-item": "btn-tableActions-option" }
65235
65243
  },
65236
65244
  {
65237
- label: "Transparent borders",
65245
+ label: toolbarTexts2.transparentBorders,
65238
65246
  command: "deleteCellAndTableBorders",
65239
65247
  icon: toolbarIcons2.deleteBorders,
65240
65248
  bottomBorder: true,
65241
65249
  props: { "data-item": "btn-tableActions-option" }
65242
65250
  },
65243
65251
  {
65244
- label: "Merge cells",
65252
+ label: toolbarTexts2.mergeCells,
65245
65253
  command: "mergeCells",
65246
65254
  icon: toolbarIcons2.mergeCells,
65247
65255
  props: { "data-item": "btn-tableActions-option" }
65248
65256
  },
65249
65257
  {
65250
- label: "Split cell",
65258
+ label: toolbarTexts2.splitCell,
65251
65259
  command: "splitCell",
65252
65260
  icon: toolbarIcons2.splitCell,
65253
65261
  props: { "data-item": "btn-tableActions-option" }
65254
65262
  },
65255
65263
  {
65256
- label: "Fix tables",
65264
+ label: toolbarTexts2.fixTables,
65257
65265
  command: "fixTables",
65258
65266
  icon: toolbarIcons2.fixTables,
65259
65267
  props: { "data-item": "btn-tableActions-option" }
@@ -65272,7 +65280,7 @@ const makeDefaultItems = ({
65272
65280
  const alignment2 = useToolbarItem({
65273
65281
  type: "dropdown",
65274
65282
  name: "textAlign",
65275
- tooltip: "Alignment",
65283
+ tooltip: toolbarTexts2.textAlign,
65276
65284
  icon: toolbarIcons2.alignLeft,
65277
65285
  command: "setTextAlign",
65278
65286
  hasCaret: true,
@@ -65322,21 +65330,21 @@ const makeDefaultItems = ({
65322
65330
  name: "list",
65323
65331
  command: "toggleBulletList",
65324
65332
  icon: toolbarIcons2.bulletList,
65325
- tooltip: "Bullet list"
65333
+ tooltip: toolbarTexts2.bulletList
65326
65334
  });
65327
65335
  const numberedList = useToolbarItem({
65328
65336
  type: "button",
65329
65337
  name: "numberedlist",
65330
65338
  command: "toggleOrderedList",
65331
65339
  icon: toolbarIcons2.numberedList,
65332
- tooltip: "Numbered list"
65340
+ tooltip: toolbarTexts2.numberedList
65333
65341
  });
65334
65342
  const indentLeft = useToolbarItem({
65335
65343
  type: "button",
65336
65344
  name: "indentleft",
65337
65345
  command: "decreaseTextIndent",
65338
65346
  icon: toolbarIcons2.indentLeft,
65339
- tooltip: "Left indent",
65347
+ tooltip: toolbarTexts2.indentLeft,
65340
65348
  disabled: false
65341
65349
  });
65342
65350
  const indentRight = useToolbarItem({
@@ -65344,7 +65352,7 @@ const makeDefaultItems = ({
65344
65352
  name: "indentright",
65345
65353
  command: "increaseTextIndent",
65346
65354
  icon: toolbarIcons2.indentRight,
65347
- tooltip: "Right indent",
65355
+ tooltip: toolbarTexts2.indentRight,
65348
65356
  disabled: false
65349
65357
  });
65350
65358
  const overflow = useToolbarItem({
@@ -65358,7 +65366,7 @@ const makeDefaultItems = ({
65358
65366
  type: "dropdown",
65359
65367
  name: "zoom",
65360
65368
  allowWithoutEditor: true,
65361
- tooltip: "Zoom",
65369
+ tooltip: toolbarTexts2.zoom,
65362
65370
  defaultLabel: "100%",
65363
65371
  label: "100%",
65364
65372
  hasCaret: true,
@@ -65384,7 +65392,7 @@ const makeDefaultItems = ({
65384
65392
  type: "button",
65385
65393
  name: "undo",
65386
65394
  disabled: true,
65387
- tooltip: "Undo",
65395
+ tooltip: toolbarTexts2.undo,
65388
65396
  command: "undo",
65389
65397
  icon: toolbarIcons2.undo,
65390
65398
  group: "left",
@@ -65396,7 +65404,7 @@ const makeDefaultItems = ({
65396
65404
  type: "button",
65397
65405
  disabled: true,
65398
65406
  name: "redo",
65399
- tooltip: "Redo",
65407
+ tooltip: toolbarTexts2.redo,
65400
65408
  command: "redo",
65401
65409
  icon: toolbarIcons2.redo,
65402
65410
  group: "left",
@@ -65408,7 +65416,7 @@ const makeDefaultItems = ({
65408
65416
  type: "button",
65409
65417
  disabled: false,
65410
65418
  name: "toggleTrackChanges",
65411
- tooltip: "Track Changes",
65419
+ tooltip: toolbarTexts2.trackChanges,
65412
65420
  command: "toggleTrackChanges",
65413
65421
  icon: toolbarIcons2.trackChanges,
65414
65422
  group: "left"
@@ -65417,7 +65425,7 @@ const makeDefaultItems = ({
65417
65425
  type: "button",
65418
65426
  disabled: false,
65419
65427
  name: "acceptTrackedChangeBySelection",
65420
- tooltip: "Accept changes under selection",
65428
+ tooltip: toolbarTexts2.trackChangesAccept,
65421
65429
  command: "acceptTrackedChangeBySelection",
65422
65430
  icon: toolbarIcons2.trackChangesAccept,
65423
65431
  group: "left"
@@ -65426,7 +65434,7 @@ const makeDefaultItems = ({
65426
65434
  type: "button",
65427
65435
  disabled: false,
65428
65436
  name: "rejectTrackedChangeOnSelection",
65429
- tooltip: "Reject changes under selection",
65437
+ tooltip: toolbarTexts2.trackChangesReject,
65430
65438
  command: "rejectTrackedChangeOnSelection",
65431
65439
  icon: toolbarIcons2.trackChangesReject,
65432
65440
  group: "left"
@@ -65435,7 +65443,7 @@ const makeDefaultItems = ({
65435
65443
  type: "button",
65436
65444
  disabled: false,
65437
65445
  name: "toggleTrackChangesShowOriginal",
65438
- tooltip: "Toggle Show Original",
65446
+ tooltip: toolbarTexts2.trackChangesOriginal,
65439
65447
  command: "toggleTrackChangesShowOriginal",
65440
65448
  icon: toolbarIcons2.trackChangesOriginal,
65441
65449
  group: "left"
@@ -65444,7 +65452,7 @@ const makeDefaultItems = ({
65444
65452
  type: "button",
65445
65453
  disabled: false,
65446
65454
  name: "toggleTrackChangesShowFinal",
65447
- tooltip: "Toggle Show Final",
65455
+ tooltip: toolbarTexts2.trackChangesFinal,
65448
65456
  command: "toggleTrackChangesShowFinal",
65449
65457
  icon: toolbarIcons2.trackChangesFinal,
65450
65458
  group: "left"
@@ -65453,7 +65461,7 @@ const makeDefaultItems = ({
65453
65461
  type: "button",
65454
65462
  name: "clearFormatting",
65455
65463
  command: "clearFormat",
65456
- tooltip: "Clear formatting",
65464
+ tooltip: toolbarTexts2.clearFormatting,
65457
65465
  icon: toolbarIcons2.clearFormatting
65458
65466
  });
65459
65467
  [
@@ -65468,7 +65476,7 @@ const makeDefaultItems = ({
65468
65476
  const copyFormat = useToolbarItem({
65469
65477
  type: "button",
65470
65478
  name: "copyFormat",
65471
- tooltip: "Format painter",
65479
+ tooltip: toolbarTexts2.copyFormat,
65472
65480
  icon: toolbarIcons2.copyFormat,
65473
65481
  command: "copyFormat"
65474
65482
  });
@@ -65510,22 +65518,22 @@ const makeDefaultItems = ({
65510
65518
  });
65511
65519
  const documentOptions = [
65512
65520
  {
65513
- label: "Editing",
65521
+ label: toolbarTexts2.documentEditingMode,
65514
65522
  value: "editing",
65515
65523
  icon: toolbarIcons2.documentEditingMode,
65516
- description: "Edit document directly"
65524
+ description: toolbarTexts2.documentEditingModeDescription
65517
65525
  },
65518
65526
  {
65519
- label: "Suggesting",
65527
+ label: toolbarTexts2.documentSuggestingMode,
65520
65528
  value: "suggesting",
65521
65529
  icon: toolbarIcons2.documentSuggestingMode,
65522
- description: "Edits become suggestions"
65530
+ description: toolbarTexts2.documentSuggestingModeDescription
65523
65531
  },
65524
65532
  {
65525
- label: "Viewing",
65533
+ label: toolbarTexts2.documentViewingMode,
65526
65534
  value: "viewing",
65527
65535
  icon: toolbarIcons2.documentViewingMode,
65528
- description: "View clean version of document only"
65536
+ description: toolbarTexts2.documentViewingModeDescription
65529
65537
  }
65530
65538
  ];
65531
65539
  function renderDocumentMode(renderDocumentButton) {
@@ -65546,7 +65554,7 @@ const makeDefaultItems = ({
65546
65554
  name: "pageBreakTool",
65547
65555
  command: "insertPageBreak",
65548
65556
  icon: toolbarIcons2.pageBreak,
65549
- tooltip: "Insert page break"
65557
+ tooltip: toolbarTexts2.pageBreak
65550
65558
  });
65551
65559
  const controlSizes = /* @__PURE__ */ new Map([
65552
65560
  ["separator", 20],
@@ -65564,7 +65572,7 @@ const makeDefaultItems = ({
65564
65572
  name: "ruler",
65565
65573
  command: "toggleRuler",
65566
65574
  icon: toolbarIcons2.ruler,
65567
- tooltip: "Show or hide ruler"
65575
+ tooltip: toolbarTexts2.ruler
65568
65576
  });
65569
65577
  const selectedLinkedStyle = ref$1(null);
65570
65578
  const linkedStyles = useToolbarItem({
@@ -65572,8 +65580,8 @@ const makeDefaultItems = ({
65572
65580
  name: "linkedStyles",
65573
65581
  command: "setLinkedStyle",
65574
65582
  icon: toolbarIcons2.paintbrush,
65575
- defaultLabel: "Format text",
65576
- label: "Format text",
65583
+ defaultLabel: toolbarTexts2.formatText,
65584
+ label: toolbarTexts2.formatText,
65577
65585
  hasCaret: true,
65578
65586
  isWide: true,
65579
65587
  style: { width: "140px" },
@@ -65617,7 +65625,7 @@ const makeDefaultItems = ({
65617
65625
  const lineHeight2 = useToolbarItem({
65618
65626
  type: "dropdown",
65619
65627
  name: "lineHeight",
65620
- tooltip: "Line height",
65628
+ tooltip: toolbarTexts2.lineHeight,
65621
65629
  icon: toolbarIcons2.lineHeight,
65622
65630
  hasCaret: false,
65623
65631
  hasInlineTextInput: false,
@@ -65879,6 +65887,56 @@ const startImageUpload = async ({ editor, view, file }) => {
65879
65887
  }
65880
65888
  );
65881
65889
  };
65890
+ const toolbarTexts = {
65891
+ bold: "Bold",
65892
+ fontFamily: "Font",
65893
+ ai: "AI text generation",
65894
+ fontSize: "Font size",
65895
+ italic: "Italic",
65896
+ underline: "Underline",
65897
+ highlight: "Highlight color",
65898
+ color: "Text color",
65899
+ search: "Search",
65900
+ link: "Link",
65901
+ image: "Image",
65902
+ table: "Insert table",
65903
+ addRowBefore: "Insert row above",
65904
+ addRowAfter: "Insert row below",
65905
+ addColumnBefore: "Insert column left",
65906
+ addColumnAfter: "Insert column right",
65907
+ deleteRow: "Delete row",
65908
+ deleteColumn: "Delete column",
65909
+ deleteTable: "Delete table",
65910
+ transparentBorders: "Transparent borders",
65911
+ mergeCells: "Merge cells",
65912
+ splitCell: "Split cell",
65913
+ fixTables: "Fix tables",
65914
+ textAlign: "Alignment",
65915
+ bulletList: "Bullet list",
65916
+ numberedList: "Numbered list",
65917
+ indentLeft: "Left indent",
65918
+ indentRight: "Right indent",
65919
+ zoom: "Zoom",
65920
+ undo: "Undo",
65921
+ redo: "Redo",
65922
+ trackChanges: "Track Changes",
65923
+ trackChangesAccept: "Accept changes under selection",
65924
+ trackChangesReject: "Reject changes under selection",
65925
+ trackChangesOriginal: "Toggle Show Original",
65926
+ trackChangesFinal: "Toggle Show Final",
65927
+ clearFormatting: "Clear formatting",
65928
+ copyFormat: "Format painter",
65929
+ lineHeight: "Line height",
65930
+ formatText: "Format text",
65931
+ ruler: "Show or hide ruler",
65932
+ pageBreak: "Insert page break",
65933
+ documentEditingMode: "Editing",
65934
+ documentSuggestingMode: "Suggesting",
65935
+ documentViewingMode: "Viewing",
65936
+ documentEditingModeDescription: "Edit document directly",
65937
+ documentSuggestingModeDescription: "Edits become suggestions",
65938
+ documentViewingModeDescription: "View clean version of document only"
65939
+ };
65882
65940
  class SuperToolbar extends EventEmitter2 {
65883
65941
  /**
65884
65942
  * Creates a new SuperToolbar instance
@@ -65894,6 +65952,7 @@ class SuperToolbar extends EventEmitter2 {
65894
65952
  role: "editor",
65895
65953
  pagination: false,
65896
65954
  icons: { ...toolbarIcons },
65955
+ texts: { ...toolbarTexts },
65897
65956
  fonts: null,
65898
65957
  hideButtons: true,
65899
65958
  responsiveToContainer: false,
@@ -66157,6 +66216,7 @@ class SuperToolbar extends EventEmitter2 {
66157
66216
  __privateMethod(this, _SuperToolbar_instances, makeToolbarItems_fn).call(this, {
66158
66217
  superToolbar: this,
66159
66218
  icons: this.config.icons,
66219
+ texts: this.config.texts,
66160
66220
  fonts: this.config.fonts,
66161
66221
  hideButtons: this.config.hideButtons,
66162
66222
  isDev: this.isDev
@@ -66180,6 +66240,10 @@ class SuperToolbar extends EventEmitter2 {
66180
66240
  ...toolbarIcons,
66181
66241
  ...config.icons
66182
66242
  };
66243
+ this.config.texts = {
66244
+ ...toolbarTexts,
66245
+ ...config.texts
66246
+ };
66183
66247
  this.config.hideButtons = config.hideButtons ?? true;
66184
66248
  this.config.responsiveToContainer = config.responsiveToContainer ?? false;
66185
66249
  if (!this.config.selector && this.config.element) {
@@ -66193,6 +66257,7 @@ class SuperToolbar extends EventEmitter2 {
66193
66257
  __privateMethod(this, _SuperToolbar_instances, makeToolbarItems_fn).call(this, {
66194
66258
  superToolbar: this,
66195
66259
  icons: this.config.icons,
66260
+ texts: this.config.texts,
66196
66261
  fonts: this.config.fonts,
66197
66262
  hideButtons: this.config.hideButtons,
66198
66263
  isDev: config.isDev
@@ -66369,6 +66434,7 @@ _interceptedCommands = /* @__PURE__ */ new WeakMap();
66369
66434
  makeToolbarItems_fn = function({
66370
66435
  superToolbar,
66371
66436
  icons: icons2,
66437
+ texts,
66372
66438
  fonts,
66373
66439
  hideButtons,
66374
66440
  isDev = false
@@ -66379,6 +66445,7 @@ makeToolbarItems_fn = function({
66379
66445
  const { defaultItems, overflowItems } = makeDefaultItems({
66380
66446
  superToolbar,
66381
66447
  toolbarIcons: icons2,
66448
+ toolbarTexts: texts,
66382
66449
  toolbarFonts: fonts,
66383
66450
  hideButtons,
66384
66451
  availableWidth,