@harbour-enterprises/superdoc 0.12.18 → 0.12.19

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 (28) hide show
  1. package/dist/chunks/{super-editor.es-DIiFOcde.es.js → super-editor.es-C_GbwRpZ.es.js} +112 -52
  2. package/dist/chunks/{super-editor.es-DK2NC1Gl.cjs → super-editor.es-DmWvNj76.cjs} +112 -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-DhgEAlTO.js} +2 -2
  7. package/dist/super-editor/chunks/{docx-zipper-Ce0B_FTd.js → docx-zipper-BSaSIAeQ.js} +1 -1
  8. package/dist/super-editor/chunks/{editor-CU4NcQRP.js → editor-BfaGq_P9.js} +3 -3
  9. package/dist/super-editor/chunks/{toolbar-BhjcMYDy.js → toolbar-DSWq6Fuv.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/file-zipper.es.js +1 -1
  20. package/dist/super-editor/super-editor.es.js +116 -55
  21. package/dist/super-editor/toolbar.es.js +2 -2
  22. package/dist/super-editor.cjs +1 -1
  23. package/dist/super-editor.es.js +1 -1
  24. package/dist/superdoc.cjs +4 -2
  25. package/dist/superdoc.es.js +5 -3
  26. package/dist/superdoc.umd.js +115 -53
  27. package/dist/superdoc.umd.js.map +1 -1
  28. 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.19") {
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.19") {
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.19");
40912
40912
  if (!this.options.ydoc) return;
40913
40913
  const metaMap = this.options.ydoc.getMap("meta");
40914
40914
  let docVersion = metaMap.get("version");
@@ -64877,6 +64877,7 @@ const closeDropdown = (dropdown) => {
64877
64877
  const makeDefaultItems = ({
64878
64878
  superToolbar,
64879
64879
  toolbarIcons: toolbarIcons2,
64880
+ toolbarTexts: toolbarTexts2,
64880
64881
  toolbarFonts,
64881
64882
  hideButtons,
64882
64883
  availableWidth,
@@ -64888,12 +64889,12 @@ const makeDefaultItems = ({
64888
64889
  name: "bold",
64889
64890
  command: "toggleBold",
64890
64891
  icon: toolbarIcons2.bold,
64891
- tooltip: "Bold"
64892
+ tooltip: toolbarTexts2.bold
64892
64893
  });
64893
64894
  const fontButton = useToolbarItem({
64894
64895
  type: "dropdown",
64895
64896
  name: "fontFamily",
64896
- tooltip: "Font",
64897
+ tooltip: toolbarTexts2.fontFamily,
64897
64898
  command: "setFontFamily",
64898
64899
  defaultLabel: "Arial",
64899
64900
  label: "Arial",
@@ -64917,7 +64918,7 @@ const makeDefaultItems = ({
64917
64918
  outline: "none"
64918
64919
  },
64919
64920
  name: "ai",
64920
- tooltip: "AI text generation",
64921
+ tooltip: toolbarTexts2.ai,
64921
64922
  icon: toolbarIcons2.ai,
64922
64923
  hideLabel: true,
64923
64924
  hasCaret: false,
@@ -64963,7 +64964,7 @@ const makeDefaultItems = ({
64963
64964
  minWidth: "50px",
64964
64965
  markName: "textStyle",
64965
64966
  labelAttr: "fontSize",
64966
- tooltip: "Font size",
64967
+ tooltip: toolbarTexts2.fontSize,
64967
64968
  hasCaret: true,
64968
64969
  hasInlineTextInput: false,
64969
64970
  inlineTextInputVisible: true,
@@ -65005,14 +65006,14 @@ const makeDefaultItems = ({
65005
65006
  name: "italic",
65006
65007
  command: "toggleItalic",
65007
65008
  icon: toolbarIcons2.italic,
65008
- tooltip: "Italic"
65009
+ tooltip: toolbarTexts2.italic
65009
65010
  });
65010
65011
  const underline = useToolbarItem({
65011
65012
  type: "button",
65012
65013
  name: "underline",
65013
65014
  command: "toggleUnderline",
65014
65015
  icon: toolbarIcons2.underline,
65015
- tooltip: "Underline"
65016
+ tooltip: toolbarTexts2.underline
65016
65017
  });
65017
65018
  const highlight = useToolbarItem({
65018
65019
  type: "dropdown",
@@ -65021,7 +65022,7 @@ const makeDefaultItems = ({
65021
65022
  hideLabel: true,
65022
65023
  markName: "highlight",
65023
65024
  labelAttr: "color",
65024
- tooltip: "Highlight color",
65025
+ tooltip: toolbarTexts2.highlight,
65025
65026
  command: "setHighlight",
65026
65027
  noArgumentCommand: "unsetHighlight",
65027
65028
  suppressActiveHighlight: true,
@@ -65044,7 +65045,7 @@ const makeDefaultItems = ({
65044
65045
  hideLabel: true,
65045
65046
  markName: "textStyle",
65046
65047
  labelAttr: "color",
65047
- tooltip: "Text color",
65048
+ tooltip: toolbarTexts2.color,
65048
65049
  command: "setColor",
65049
65050
  suppressActiveHighlight: true,
65050
65051
  options: [
@@ -65064,7 +65065,7 @@ const makeDefaultItems = ({
65064
65065
  type: "dropdown",
65065
65066
  name: "search",
65066
65067
  icon: toolbarIcons2.search,
65067
- tooltip: "Search",
65068
+ tooltip: toolbarTexts2.search,
65068
65069
  group: "right",
65069
65070
  inputRef: searchRef,
65070
65071
  options: [
@@ -65091,7 +65092,7 @@ const makeDefaultItems = ({
65091
65092
  name: "link",
65092
65093
  markName: "link",
65093
65094
  icon: toolbarIcons2.link,
65094
- tooltip: "Link",
65095
+ tooltip: toolbarTexts2.link,
65095
65096
  options: [
65096
65097
  {
65097
65098
  type: "render",
@@ -65144,7 +65145,7 @@ const makeDefaultItems = ({
65144
65145
  name: "image",
65145
65146
  command: "startImageUpload",
65146
65147
  icon: toolbarIcons2.image,
65147
- tooltip: "Image",
65148
+ tooltip: toolbarTexts2.image,
65148
65149
  disabled: false
65149
65150
  });
65150
65151
  const tableItem = useToolbarItem({
@@ -65153,7 +65154,7 @@ const makeDefaultItems = ({
65153
65154
  icon: toolbarIcons2.table,
65154
65155
  hideLabel: true,
65155
65156
  labelAttr: "table",
65156
- tooltip: "Insert table",
65157
+ tooltip: toolbarTexts2.table,
65157
65158
  command: "insertTable",
65158
65159
  suppressActiveHighlight: true,
65159
65160
  options: [
@@ -65191,69 +65192,69 @@ const makeDefaultItems = ({
65191
65192
  });
65192
65193
  const tableActionsOptions = [
65193
65194
  {
65194
- label: "Insert row above",
65195
+ label: toolbarTexts2.addRowBefore,
65195
65196
  command: "addRowBefore",
65196
65197
  icon: toolbarIcons2.addRowBefore,
65197
65198
  props: { "data-item": "btn-tableActions-option" }
65198
65199
  },
65199
65200
  {
65200
- label: "Insert row below",
65201
+ label: toolbarTexts2.addRowAfter,
65201
65202
  command: "addRowAfter",
65202
65203
  icon: toolbarIcons2.addRowAfter,
65203
65204
  props: { "data-item": "btn-tableActions-option" }
65204
65205
  },
65205
65206
  {
65206
- label: "Insert column left",
65207
+ label: toolbarTexts2.addColumnBefore,
65207
65208
  command: "addColumnBefore",
65208
65209
  icon: toolbarIcons2.addColumnBefore,
65209
65210
  props: { "data-item": "btn-tableActions-option" }
65210
65211
  },
65211
65212
  {
65212
- label: "Insert column right",
65213
+ label: toolbarTexts2.addColumnAfter,
65213
65214
  command: "addColumnAfter",
65214
65215
  icon: toolbarIcons2.addColumnAfter,
65215
65216
  bottomBorder: true,
65216
65217
  props: { "data-item": "btn-tableActions-option" }
65217
65218
  },
65218
65219
  {
65219
- label: "Delete row",
65220
+ label: toolbarTexts2.deleteRow,
65220
65221
  command: "deleteRow",
65221
65222
  icon: toolbarIcons2.deleteRow,
65222
65223
  props: { "data-item": "btn-tableActions-option" }
65223
65224
  },
65224
65225
  {
65225
- label: "Delete column",
65226
+ label: toolbarTexts2.deleteColumn,
65226
65227
  command: "deleteColumn",
65227
65228
  icon: toolbarIcons2.deleteColumn,
65228
65229
  props: { "data-item": "btn-tableActions-option" }
65229
65230
  },
65230
65231
  {
65231
- label: "Delete table",
65232
+ label: toolbarTexts2.deleteTable,
65232
65233
  command: "deleteTable",
65233
65234
  icon: toolbarIcons2.deleteTable,
65234
65235
  props: { "data-item": "btn-tableActions-option" }
65235
65236
  },
65236
65237
  {
65237
- label: "Transparent borders",
65238
+ label: toolbarTexts2.transparentBorders,
65238
65239
  command: "deleteCellAndTableBorders",
65239
65240
  icon: toolbarIcons2.deleteBorders,
65240
65241
  bottomBorder: true,
65241
65242
  props: { "data-item": "btn-tableActions-option" }
65242
65243
  },
65243
65244
  {
65244
- label: "Merge cells",
65245
+ label: toolbarTexts2.mergeCells,
65245
65246
  command: "mergeCells",
65246
65247
  icon: toolbarIcons2.mergeCells,
65247
65248
  props: { "data-item": "btn-tableActions-option" }
65248
65249
  },
65249
65250
  {
65250
- label: "Split cell",
65251
+ label: toolbarTexts2.splitCell,
65251
65252
  command: "splitCell",
65252
65253
  icon: toolbarIcons2.splitCell,
65253
65254
  props: { "data-item": "btn-tableActions-option" }
65254
65255
  },
65255
65256
  {
65256
- label: "Fix tables",
65257
+ label: toolbarTexts2.fixTables,
65257
65258
  command: "fixTables",
65258
65259
  icon: toolbarIcons2.fixTables,
65259
65260
  props: { "data-item": "btn-tableActions-option" }
@@ -65272,7 +65273,7 @@ const makeDefaultItems = ({
65272
65273
  const alignment2 = useToolbarItem({
65273
65274
  type: "dropdown",
65274
65275
  name: "textAlign",
65275
- tooltip: "Alignment",
65276
+ tooltip: toolbarTexts2.textAlign,
65276
65277
  icon: toolbarIcons2.alignLeft,
65277
65278
  command: "setTextAlign",
65278
65279
  hasCaret: true,
@@ -65322,21 +65323,21 @@ const makeDefaultItems = ({
65322
65323
  name: "list",
65323
65324
  command: "toggleBulletList",
65324
65325
  icon: toolbarIcons2.bulletList,
65325
- tooltip: "Bullet list"
65326
+ tooltip: toolbarTexts2.bulletList
65326
65327
  });
65327
65328
  const numberedList = useToolbarItem({
65328
65329
  type: "button",
65329
65330
  name: "numberedlist",
65330
65331
  command: "toggleOrderedList",
65331
65332
  icon: toolbarIcons2.numberedList,
65332
- tooltip: "Numbered list"
65333
+ tooltip: toolbarTexts2.numberedList
65333
65334
  });
65334
65335
  const indentLeft = useToolbarItem({
65335
65336
  type: "button",
65336
65337
  name: "indentleft",
65337
65338
  command: "decreaseTextIndent",
65338
65339
  icon: toolbarIcons2.indentLeft,
65339
- tooltip: "Left indent",
65340
+ tooltip: toolbarTexts2.indentLeft,
65340
65341
  disabled: false
65341
65342
  });
65342
65343
  const indentRight = useToolbarItem({
@@ -65344,7 +65345,7 @@ const makeDefaultItems = ({
65344
65345
  name: "indentright",
65345
65346
  command: "increaseTextIndent",
65346
65347
  icon: toolbarIcons2.indentRight,
65347
- tooltip: "Right indent",
65348
+ tooltip: toolbarTexts2.indentRight,
65348
65349
  disabled: false
65349
65350
  });
65350
65351
  const overflow = useToolbarItem({
@@ -65358,7 +65359,7 @@ const makeDefaultItems = ({
65358
65359
  type: "dropdown",
65359
65360
  name: "zoom",
65360
65361
  allowWithoutEditor: true,
65361
- tooltip: "Zoom",
65362
+ tooltip: toolbarTexts2.zoom,
65362
65363
  defaultLabel: "100%",
65363
65364
  label: "100%",
65364
65365
  hasCaret: true,
@@ -65384,7 +65385,7 @@ const makeDefaultItems = ({
65384
65385
  type: "button",
65385
65386
  name: "undo",
65386
65387
  disabled: true,
65387
- tooltip: "Undo",
65388
+ tooltip: toolbarTexts2.undo,
65388
65389
  command: "undo",
65389
65390
  icon: toolbarIcons2.undo,
65390
65391
  group: "left",
@@ -65396,7 +65397,7 @@ const makeDefaultItems = ({
65396
65397
  type: "button",
65397
65398
  disabled: true,
65398
65399
  name: "redo",
65399
- tooltip: "Redo",
65400
+ tooltip: toolbarTexts2.redo,
65400
65401
  command: "redo",
65401
65402
  icon: toolbarIcons2.redo,
65402
65403
  group: "left",
@@ -65408,7 +65409,7 @@ const makeDefaultItems = ({
65408
65409
  type: "button",
65409
65410
  disabled: false,
65410
65411
  name: "toggleTrackChanges",
65411
- tooltip: "Track Changes",
65412
+ tooltip: toolbarTexts2.trackChanges,
65412
65413
  command: "toggleTrackChanges",
65413
65414
  icon: toolbarIcons2.trackChanges,
65414
65415
  group: "left"
@@ -65417,7 +65418,7 @@ const makeDefaultItems = ({
65417
65418
  type: "button",
65418
65419
  disabled: false,
65419
65420
  name: "acceptTrackedChangeBySelection",
65420
- tooltip: "Accept changes under selection",
65421
+ tooltip: toolbarTexts2.trackChangesAccept,
65421
65422
  command: "acceptTrackedChangeBySelection",
65422
65423
  icon: toolbarIcons2.trackChangesAccept,
65423
65424
  group: "left"
@@ -65426,7 +65427,7 @@ const makeDefaultItems = ({
65426
65427
  type: "button",
65427
65428
  disabled: false,
65428
65429
  name: "rejectTrackedChangeOnSelection",
65429
- tooltip: "Reject changes under selection",
65430
+ tooltip: toolbarTexts2.trackChangesReject,
65430
65431
  command: "rejectTrackedChangeOnSelection",
65431
65432
  icon: toolbarIcons2.trackChangesReject,
65432
65433
  group: "left"
@@ -65435,7 +65436,7 @@ const makeDefaultItems = ({
65435
65436
  type: "button",
65436
65437
  disabled: false,
65437
65438
  name: "toggleTrackChangesShowOriginal",
65438
- tooltip: "Toggle Show Original",
65439
+ tooltip: toolbarTexts2.trackChangesOriginal,
65439
65440
  command: "toggleTrackChangesShowOriginal",
65440
65441
  icon: toolbarIcons2.trackChangesOriginal,
65441
65442
  group: "left"
@@ -65444,7 +65445,7 @@ const makeDefaultItems = ({
65444
65445
  type: "button",
65445
65446
  disabled: false,
65446
65447
  name: "toggleTrackChangesShowFinal",
65447
- tooltip: "Toggle Show Final",
65448
+ tooltip: toolbarTexts2.trackChangesFinal,
65448
65449
  command: "toggleTrackChangesShowFinal",
65449
65450
  icon: toolbarIcons2.trackChangesFinal,
65450
65451
  group: "left"
@@ -65453,7 +65454,7 @@ const makeDefaultItems = ({
65453
65454
  type: "button",
65454
65455
  name: "clearFormatting",
65455
65456
  command: "clearFormat",
65456
- tooltip: "Clear formatting",
65457
+ tooltip: toolbarTexts2.clearFormatting,
65457
65458
  icon: toolbarIcons2.clearFormatting
65458
65459
  });
65459
65460
  [
@@ -65468,7 +65469,7 @@ const makeDefaultItems = ({
65468
65469
  const copyFormat = useToolbarItem({
65469
65470
  type: "button",
65470
65471
  name: "copyFormat",
65471
- tooltip: "Format painter",
65472
+ tooltip: toolbarTexts2.copyFormat,
65472
65473
  icon: toolbarIcons2.copyFormat,
65473
65474
  command: "copyFormat"
65474
65475
  });
@@ -65510,22 +65511,22 @@ const makeDefaultItems = ({
65510
65511
  });
65511
65512
  const documentOptions = [
65512
65513
  {
65513
- label: "Editing",
65514
+ label: toolbarTexts2.documentEditingMode,
65514
65515
  value: "editing",
65515
65516
  icon: toolbarIcons2.documentEditingMode,
65516
- description: "Edit document directly"
65517
+ description: toolbarTexts2.documentEditingModeDescription
65517
65518
  },
65518
65519
  {
65519
- label: "Suggesting",
65520
+ label: toolbarTexts2.documentSuggestingMode,
65520
65521
  value: "suggesting",
65521
65522
  icon: toolbarIcons2.documentSuggestingMode,
65522
- description: "Edits become suggestions"
65523
+ description: toolbarTexts2.documentSuggestingModeDescription
65523
65524
  },
65524
65525
  {
65525
- label: "Viewing",
65526
+ label: toolbarTexts2.documentViewingMode,
65526
65527
  value: "viewing",
65527
65528
  icon: toolbarIcons2.documentViewingMode,
65528
- description: "View clean version of document only"
65529
+ description: toolbarTexts2.documentViewingModeDescription
65529
65530
  }
65530
65531
  ];
65531
65532
  function renderDocumentMode(renderDocumentButton) {
@@ -65546,7 +65547,7 @@ const makeDefaultItems = ({
65546
65547
  name: "pageBreakTool",
65547
65548
  command: "insertPageBreak",
65548
65549
  icon: toolbarIcons2.pageBreak,
65549
- tooltip: "Insert page break"
65550
+ tooltip: toolbarTexts2.pageBreak
65550
65551
  });
65551
65552
  const controlSizes = /* @__PURE__ */ new Map([
65552
65553
  ["separator", 20],
@@ -65564,7 +65565,7 @@ const makeDefaultItems = ({
65564
65565
  name: "ruler",
65565
65566
  command: "toggleRuler",
65566
65567
  icon: toolbarIcons2.ruler,
65567
- tooltip: "Show or hide ruler"
65568
+ tooltip: toolbarTexts2.ruler
65568
65569
  });
65569
65570
  const selectedLinkedStyle = ref$1(null);
65570
65571
  const linkedStyles = useToolbarItem({
@@ -65572,8 +65573,8 @@ const makeDefaultItems = ({
65572
65573
  name: "linkedStyles",
65573
65574
  command: "setLinkedStyle",
65574
65575
  icon: toolbarIcons2.paintbrush,
65575
- defaultLabel: "Format text",
65576
- label: "Format text",
65576
+ defaultLabel: toolbarTexts2.formatText,
65577
+ label: toolbarTexts2.formatText,
65577
65578
  hasCaret: true,
65578
65579
  isWide: true,
65579
65580
  style: { width: "140px" },
@@ -65617,7 +65618,7 @@ const makeDefaultItems = ({
65617
65618
  const lineHeight2 = useToolbarItem({
65618
65619
  type: "dropdown",
65619
65620
  name: "lineHeight",
65620
- tooltip: "Line height",
65621
+ tooltip: toolbarTexts2.lineHeight,
65621
65622
  icon: toolbarIcons2.lineHeight,
65622
65623
  hasCaret: false,
65623
65624
  hasInlineTextInput: false,
@@ -65879,6 +65880,56 @@ const startImageUpload = async ({ editor, view, file }) => {
65879
65880
  }
65880
65881
  );
65881
65882
  };
65883
+ const toolbarTexts = {
65884
+ bold: "Bold",
65885
+ fontFamily: "Font",
65886
+ ai: "AI text generation",
65887
+ fontSize: "Font size",
65888
+ italic: "Italic",
65889
+ underline: "Underline",
65890
+ highlight: "Highlight color",
65891
+ color: "Text color",
65892
+ search: "Search",
65893
+ link: "Link",
65894
+ image: "Image",
65895
+ table: "Insert table",
65896
+ addRowBefore: "Insert row above",
65897
+ addRowAfter: "Insert row below",
65898
+ addColumnBefore: "Insert column left",
65899
+ addColumnAfter: "Insert column right",
65900
+ deleteRow: "Delete row",
65901
+ deleteColumn: "Delete column",
65902
+ deleteTable: "Delete table",
65903
+ transparentBorders: "Transparent borders",
65904
+ mergeCells: "Merge cells",
65905
+ splitCell: "Split cell",
65906
+ fixTables: "Fix tables",
65907
+ textAlign: "Alignment",
65908
+ bulletList: "Bullet list",
65909
+ numberedList: "Numbered list",
65910
+ indentLeft: "Left indent",
65911
+ indentRight: "Right indent",
65912
+ zoom: "Zoom",
65913
+ undo: "Undo",
65914
+ redo: "Redo",
65915
+ trackChanges: "Track Changes",
65916
+ trackChangesAccept: "Accept changes under selection",
65917
+ trackChangesReject: "Reject changes under selection",
65918
+ trackChangesOriginal: "Toggle Show Original",
65919
+ trackChangesFinal: "Toggle Show Final",
65920
+ clearFormatting: "Clear formatting",
65921
+ copyFormat: "Format painter",
65922
+ lineHeight: "Line height",
65923
+ formatText: "Format text",
65924
+ ruler: "Show or hide ruler",
65925
+ pageBreak: "Insert page break",
65926
+ documentEditingMode: "Editing",
65927
+ documentSuggestingMode: "Suggesting",
65928
+ documentViewingMode: "Viewing",
65929
+ documentEditingModeDescription: "Edit document directly",
65930
+ documentSuggestingModeDescription: "Edits become suggestions",
65931
+ documentViewingModeDescription: "View clean version of document only"
65932
+ };
65882
65933
  class SuperToolbar extends EventEmitter2 {
65883
65934
  /**
65884
65935
  * Creates a new SuperToolbar instance
@@ -65894,6 +65945,7 @@ class SuperToolbar extends EventEmitter2 {
65894
65945
  role: "editor",
65895
65946
  pagination: false,
65896
65947
  icons: { ...toolbarIcons },
65948
+ texts: { ...toolbarTexts },
65897
65949
  fonts: null,
65898
65950
  hideButtons: true,
65899
65951
  responsiveToContainer: false,
@@ -66157,6 +66209,7 @@ class SuperToolbar extends EventEmitter2 {
66157
66209
  __privateMethod(this, _SuperToolbar_instances, makeToolbarItems_fn).call(this, {
66158
66210
  superToolbar: this,
66159
66211
  icons: this.config.icons,
66212
+ texts: this.config.texts,
66160
66213
  fonts: this.config.fonts,
66161
66214
  hideButtons: this.config.hideButtons,
66162
66215
  isDev: this.isDev
@@ -66180,6 +66233,10 @@ class SuperToolbar extends EventEmitter2 {
66180
66233
  ...toolbarIcons,
66181
66234
  ...config.icons
66182
66235
  };
66236
+ this.config.texts = {
66237
+ ...toolbarTexts,
66238
+ ...config.texts
66239
+ };
66183
66240
  this.config.hideButtons = config.hideButtons ?? true;
66184
66241
  this.config.responsiveToContainer = config.responsiveToContainer ?? false;
66185
66242
  if (!this.config.selector && this.config.element) {
@@ -66193,6 +66250,7 @@ class SuperToolbar extends EventEmitter2 {
66193
66250
  __privateMethod(this, _SuperToolbar_instances, makeToolbarItems_fn).call(this, {
66194
66251
  superToolbar: this,
66195
66252
  icons: this.config.icons,
66253
+ texts: this.config.texts,
66196
66254
  fonts: this.config.fonts,
66197
66255
  hideButtons: this.config.hideButtons,
66198
66256
  isDev: config.isDev
@@ -66369,6 +66427,7 @@ _interceptedCommands = /* @__PURE__ */ new WeakMap();
66369
66427
  makeToolbarItems_fn = function({
66370
66428
  superToolbar,
66371
66429
  icons: icons2,
66430
+ texts,
66372
66431
  fonts,
66373
66432
  hideButtons,
66374
66433
  isDev = false
@@ -66379,6 +66438,7 @@ makeToolbarItems_fn = function({
66379
66438
  const { defaultItems, overflowItems } = makeDefaultItems({
66380
66439
  superToolbar,
66381
66440
  toolbarIcons: icons2,
66441
+ toolbarTexts: texts,
66382
66442
  toolbarFonts: fonts,
66383
66443
  hideButtons,
66384
66444
  availableWidth,