@docx-editor.dev/i18n 2.9.1 → 2.10.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/dist/de.js CHANGED
@@ -361,7 +361,9 @@ var de_default = {
361
361
  selectAll: "Alles markieren",
362
362
  selectAllShortcut: "Strg+A",
363
363
  editCustomNode: "{label} bearbeiten",
364
- removeCustomNode: "{label} entfernen"
364
+ removeCustomNode: "{label} entfernen",
365
+ pasteWithoutFormatting: null,
366
+ pasteWithoutFormattingShortcut: null
365
367
  },
366
368
  documentOutline: {
367
369
  ariaLabel: "Dokumentgliederung",
@@ -752,7 +754,11 @@ var de_default = {
752
754
  bodyOnlyNote: null,
753
755
  bodyOnlySectionBreak: null,
754
756
  bodyOnlyToc: null,
755
- furnitureOnlyPageField: null
757
+ furnitureOnlyPageField: null,
758
+ suggestingSectionBreak: null,
759
+ tableCellSectionBreak: null,
760
+ lockedSectionBreak: null,
761
+ lockedContentBreak: null
756
762
  },
757
763
  equationPopup: {
758
764
  apply: null,
package/dist/de.mjs CHANGED
@@ -334,7 +334,9 @@ var de_default = {
334
334
  selectAll: "Alles markieren",
335
335
  selectAllShortcut: "Strg+A",
336
336
  editCustomNode: "{label} bearbeiten",
337
- removeCustomNode: "{label} entfernen"
337
+ removeCustomNode: "{label} entfernen",
338
+ pasteWithoutFormatting: null,
339
+ pasteWithoutFormattingShortcut: null
338
340
  },
339
341
  documentOutline: {
340
342
  ariaLabel: "Dokumentgliederung",
@@ -725,7 +727,11 @@ var de_default = {
725
727
  bodyOnlyNote: null,
726
728
  bodyOnlySectionBreak: null,
727
729
  bodyOnlyToc: null,
728
- furnitureOnlyPageField: null
730
+ furnitureOnlyPageField: null,
731
+ suggestingSectionBreak: null,
732
+ tableCellSectionBreak: null,
733
+ lockedSectionBreak: null,
734
+ lockedContentBreak: null
729
735
  },
730
736
  equationPopup: {
731
737
  apply: null,
package/dist/en.js CHANGED
@@ -47,13 +47,17 @@ var en_default = {
47
47
  commentSelection: "Select a range before adding a comment",
48
48
  mergeUnsupported: "Cell merge is not supported",
49
49
  splitUnsupported: "Cell split is not supported",
50
- imageSuggesting: "Image property edits are unavailable in suggesting mode",
50
+ imageSuggesting: "Image changes are unavailable in suggesting mode",
51
51
  invalidValue: "This value is not valid for the command",
52
52
  unavailable: "This command is unavailable",
53
53
  bodyOnlySectionBreak: "Section breaks go in the document body.",
54
54
  bodyOnlyToc: "A table of contents goes in the document body.",
55
55
  bodyOnlyNote: "Footnotes and endnotes are added from the document body.",
56
- furnitureOnlyPageField: "Open a header or footer to insert a page number."
56
+ furnitureOnlyPageField: "Open a header or footer to insert a page number.",
57
+ suggestingSectionBreak: "Turn off suggesting to insert this section break. It changes where the next section starts, which can't be suggested.",
58
+ tableCellSectionBreak: "Section breaks go outside a table.",
59
+ lockedSectionBreak: "A locked or linked content control holds the next section, so this break can't change it.",
60
+ lockedContentBreak: "A content control locks this text, so you can't break a section here."
57
61
  },
58
62
  toolbar: {
59
63
  ariaLabel: "Formatting toolbar",
@@ -387,6 +391,8 @@ var en_default = {
387
391
  copyShortcut: "Ctrl+C",
388
392
  paste: "Paste",
389
393
  pasteShortcut: "Ctrl+V",
394
+ pasteWithoutFormatting: "Paste without formatting",
395
+ pasteWithoutFormattingShortcut: "Ctrl+Shift+V",
390
396
  delete: "Delete",
391
397
  deleteShortcut: "Del",
392
398
  selectAll: "Select All",
package/dist/en.mjs CHANGED
@@ -20,13 +20,17 @@ var en_default = {
20
20
  commentSelection: "Select a range before adding a comment",
21
21
  mergeUnsupported: "Cell merge is not supported",
22
22
  splitUnsupported: "Cell split is not supported",
23
- imageSuggesting: "Image property edits are unavailable in suggesting mode",
23
+ imageSuggesting: "Image changes are unavailable in suggesting mode",
24
24
  invalidValue: "This value is not valid for the command",
25
25
  unavailable: "This command is unavailable",
26
26
  bodyOnlySectionBreak: "Section breaks go in the document body.",
27
27
  bodyOnlyToc: "A table of contents goes in the document body.",
28
28
  bodyOnlyNote: "Footnotes and endnotes are added from the document body.",
29
- furnitureOnlyPageField: "Open a header or footer to insert a page number."
29
+ furnitureOnlyPageField: "Open a header or footer to insert a page number.",
30
+ suggestingSectionBreak: "Turn off suggesting to insert this section break. It changes where the next section starts, which can't be suggested.",
31
+ tableCellSectionBreak: "Section breaks go outside a table.",
32
+ lockedSectionBreak: "A locked or linked content control holds the next section, so this break can't change it.",
33
+ lockedContentBreak: "A content control locks this text, so you can't break a section here."
30
34
  },
31
35
  toolbar: {
32
36
  ariaLabel: "Formatting toolbar",
@@ -360,6 +364,8 @@ var en_default = {
360
364
  copyShortcut: "Ctrl+C",
361
365
  paste: "Paste",
362
366
  pasteShortcut: "Ctrl+V",
367
+ pasteWithoutFormatting: "Paste without formatting",
368
+ pasteWithoutFormattingShortcut: "Ctrl+Shift+V",
363
369
  delete: "Delete",
364
370
  deleteShortcut: "Del",
365
371
  selectAll: "Select All",
package/dist/fr.js CHANGED
@@ -361,7 +361,9 @@ var fr_default = {
361
361
  selectAll: "Tout sélectionner",
362
362
  selectAllShortcut: "Ctrl+A",
363
363
  editCustomNode: "Modifier {label}",
364
- removeCustomNode: "Supprimer {label}"
364
+ removeCustomNode: "Supprimer {label}",
365
+ pasteWithoutFormatting: null,
366
+ pasteWithoutFormattingShortcut: null
365
367
  },
366
368
  documentOutline: {
367
369
  ariaLabel: "Plan du document",
@@ -752,7 +754,11 @@ var fr_default = {
752
754
  bodyOnlyNote: null,
753
755
  bodyOnlySectionBreak: null,
754
756
  bodyOnlyToc: null,
755
- furnitureOnlyPageField: null
757
+ furnitureOnlyPageField: null,
758
+ suggestingSectionBreak: null,
759
+ tableCellSectionBreak: null,
760
+ lockedSectionBreak: null,
761
+ lockedContentBreak: null
756
762
  },
757
763
  equationPopup: {
758
764
  apply: null,
package/dist/fr.mjs CHANGED
@@ -334,7 +334,9 @@ var fr_default = {
334
334
  selectAll: "Tout sélectionner",
335
335
  selectAllShortcut: "Ctrl+A",
336
336
  editCustomNode: "Modifier {label}",
337
- removeCustomNode: "Supprimer {label}"
337
+ removeCustomNode: "Supprimer {label}",
338
+ pasteWithoutFormatting: null,
339
+ pasteWithoutFormattingShortcut: null
338
340
  },
339
341
  documentOutline: {
340
342
  ariaLabel: "Plan du document",
@@ -725,7 +727,11 @@ var fr_default = {
725
727
  bodyOnlyNote: null,
726
728
  bodyOnlySectionBreak: null,
727
729
  bodyOnlyToc: null,
728
- furnitureOnlyPageField: null
730
+ furnitureOnlyPageField: null,
731
+ suggestingSectionBreak: null,
732
+ tableCellSectionBreak: null,
733
+ lockedSectionBreak: null,
734
+ lockedContentBreak: null
729
735
  },
730
736
  equationPopup: {
731
737
  apply: null,
package/dist/he.js CHANGED
@@ -361,7 +361,9 @@ var he_default = {
361
361
  selectAll: "בחר הכל",
362
362
  selectAllShortcut: "Ctrl+A",
363
363
  editCustomNode: "ערוך {label}",
364
- removeCustomNode: "הסר {label}"
364
+ removeCustomNode: "הסר {label}",
365
+ pasteWithoutFormatting: null,
366
+ pasteWithoutFormattingShortcut: null
365
367
  },
366
368
  documentOutline: {
367
369
  ariaLabel: "מתווה המסמך",
@@ -752,7 +754,11 @@ var he_default = {
752
754
  bodyOnlyNote: null,
753
755
  bodyOnlySectionBreak: null,
754
756
  bodyOnlyToc: null,
755
- furnitureOnlyPageField: null
757
+ furnitureOnlyPageField: null,
758
+ suggestingSectionBreak: null,
759
+ tableCellSectionBreak: null,
760
+ lockedSectionBreak: null,
761
+ lockedContentBreak: null
756
762
  },
757
763
  equationPopup: {
758
764
  apply: null,
package/dist/he.mjs CHANGED
@@ -334,7 +334,9 @@ var he_default = {
334
334
  selectAll: "בחר הכל",
335
335
  selectAllShortcut: "Ctrl+A",
336
336
  editCustomNode: "ערוך {label}",
337
- removeCustomNode: "הסר {label}"
337
+ removeCustomNode: "הסר {label}",
338
+ pasteWithoutFormatting: null,
339
+ pasteWithoutFormattingShortcut: null
338
340
  },
339
341
  documentOutline: {
340
342
  ariaLabel: "מתווה המסמך",
@@ -725,7 +727,11 @@ var he_default = {
725
727
  bodyOnlyNote: null,
726
728
  bodyOnlySectionBreak: null,
727
729
  bodyOnlyToc: null,
728
- furnitureOnlyPageField: null
730
+ furnitureOnlyPageField: null,
731
+ suggestingSectionBreak: null,
732
+ tableCellSectionBreak: null,
733
+ lockedSectionBreak: null,
734
+ lockedContentBreak: null
729
735
  },
730
736
  equationPopup: {
731
737
  apply: null,
package/dist/hi.js CHANGED
@@ -361,7 +361,9 @@ var hi_default = {
361
361
  selectAll: "सभी चुनें",
362
362
  selectAllShortcut: "Ctrl+A",
363
363
  editCustomNode: "{label} संपादित करें",
364
- removeCustomNode: "{label} निकालें"
364
+ removeCustomNode: "{label} निकालें",
365
+ pasteWithoutFormatting: null,
366
+ pasteWithoutFormattingShortcut: null
365
367
  },
366
368
  documentOutline: {
367
369
  ariaLabel: "दस्तावेज़ की रूपरेखा",
@@ -752,7 +754,11 @@ var hi_default = {
752
754
  bodyOnlyNote: null,
753
755
  bodyOnlySectionBreak: null,
754
756
  bodyOnlyToc: null,
755
- furnitureOnlyPageField: null
757
+ furnitureOnlyPageField: null,
758
+ suggestingSectionBreak: null,
759
+ tableCellSectionBreak: null,
760
+ lockedSectionBreak: null,
761
+ lockedContentBreak: null
756
762
  },
757
763
  equationPopup: {
758
764
  apply: null,
package/dist/hi.mjs CHANGED
@@ -334,7 +334,9 @@ var hi_default = {
334
334
  selectAll: "सभी चुनें",
335
335
  selectAllShortcut: "Ctrl+A",
336
336
  editCustomNode: "{label} संपादित करें",
337
- removeCustomNode: "{label} निकालें"
337
+ removeCustomNode: "{label} निकालें",
338
+ pasteWithoutFormatting: null,
339
+ pasteWithoutFormattingShortcut: null
338
340
  },
339
341
  documentOutline: {
340
342
  ariaLabel: "दस्तावेज़ की रूपरेखा",
@@ -725,7 +727,11 @@ var hi_default = {
725
727
  bodyOnlyNote: null,
726
728
  bodyOnlySectionBreak: null,
727
729
  bodyOnlyToc: null,
728
- furnitureOnlyPageField: null
730
+ furnitureOnlyPageField: null,
731
+ suggestingSectionBreak: null,
732
+ tableCellSectionBreak: null,
733
+ lockedSectionBreak: null,
734
+ lockedContentBreak: null
729
735
  },
730
736
  equationPopup: {
731
737
  apply: null,
package/dist/id.js CHANGED
@@ -368,7 +368,9 @@ var id_default = {
368
368
  selectAll: "Pilih Semua",
369
369
  selectAllShortcut: "Ctrl+A",
370
370
  editCustomNode: "Edit {label}",
371
- removeCustomNode: "Hapus {label}"
371
+ removeCustomNode: "Hapus {label}",
372
+ pasteWithoutFormatting: null,
373
+ pasteWithoutFormattingShortcut: null
372
374
  },
373
375
  documentOutline: {
374
376
  ariaLabel: "Struktur dokumen",
@@ -752,7 +754,11 @@ var id_default = {
752
754
  bodyOnlyNote: null,
753
755
  bodyOnlySectionBreak: null,
754
756
  bodyOnlyToc: null,
755
- furnitureOnlyPageField: null
757
+ furnitureOnlyPageField: null,
758
+ suggestingSectionBreak: null,
759
+ tableCellSectionBreak: null,
760
+ lockedSectionBreak: null,
761
+ lockedContentBreak: null
756
762
  },
757
763
  equationPopup: {
758
764
  apply: null,
package/dist/id.mjs CHANGED
@@ -341,7 +341,9 @@ var id_default = {
341
341
  selectAll: "Pilih Semua",
342
342
  selectAllShortcut: "Ctrl+A",
343
343
  editCustomNode: "Edit {label}",
344
- removeCustomNode: "Hapus {label}"
344
+ removeCustomNode: "Hapus {label}",
345
+ pasteWithoutFormatting: null,
346
+ pasteWithoutFormattingShortcut: null
345
347
  },
346
348
  documentOutline: {
347
349
  ariaLabel: "Struktur dokumen",
@@ -725,7 +727,11 @@ var id_default = {
725
727
  bodyOnlyNote: null,
726
728
  bodyOnlySectionBreak: null,
727
729
  bodyOnlyToc: null,
728
- furnitureOnlyPageField: null
730
+ furnitureOnlyPageField: null,
731
+ suggestingSectionBreak: null,
732
+ tableCellSectionBreak: null,
733
+ lockedSectionBreak: null,
734
+ lockedContentBreak: null
729
735
  },
730
736
  equationPopup: {
731
737
  apply: null,
package/dist/index.d.mts CHANGED
@@ -44,13 +44,17 @@ var disabledReason = {
44
44
  commentSelection: "Select a range before adding a comment",
45
45
  mergeUnsupported: "Cell merge is not supported",
46
46
  splitUnsupported: "Cell split is not supported",
47
- imageSuggesting: "Image property edits are unavailable in suggesting mode",
47
+ imageSuggesting: "Image changes are unavailable in suggesting mode",
48
48
  invalidValue: "This value is not valid for the command",
49
49
  unavailable: "This command is unavailable",
50
50
  bodyOnlySectionBreak: "Section breaks go in the document body.",
51
51
  bodyOnlyToc: "A table of contents goes in the document body.",
52
52
  bodyOnlyNote: "Footnotes and endnotes are added from the document body.",
53
- furnitureOnlyPageField: "Open a header or footer to insert a page number."
53
+ furnitureOnlyPageField: "Open a header or footer to insert a page number.",
54
+ suggestingSectionBreak: "Turn off suggesting to insert this section break. It changes where the next section starts, which can't be suggested.",
55
+ tableCellSectionBreak: "Section breaks go outside a table.",
56
+ lockedSectionBreak: "A locked or linked content control holds the next section, so this break can't change it.",
57
+ lockedContentBreak: "A content control locks this text, so you can't break a section here."
54
58
  };
55
59
  var toolbar = {
56
60
  ariaLabel: "Formatting toolbar",
@@ -384,6 +388,8 @@ var contextMenu = {
384
388
  copyShortcut: "Ctrl+C",
385
389
  paste: "Paste",
386
390
  pasteShortcut: "Ctrl+V",
391
+ pasteWithoutFormatting: "Paste without formatting",
392
+ pasteWithoutFormattingShortcut: "Ctrl+Shift+V",
387
393
  "delete": "Delete",
388
394
  deleteShortcut: "Del",
389
395
  selectAll: "Select All",
@@ -804,6 +810,15 @@ var enJson = {
804
810
  review: review
805
811
  };
806
812
 
813
+ /**
814
+ * Translate a known engine refusal for adapter chrome.
815
+ *
816
+ * Unknown diagnostics stay exact, so integrations never lose the engine's explanation.
817
+ *
818
+ * @public
819
+ */
820
+ declare function localizeDisabledReason(reason: string | null, t: TFunction): string | null;
821
+
807
822
  /**
808
823
  * Shared locale data, types, and runtime helpers for the @docx-editor.dev
809
824
  * editor adapters.
@@ -940,14 +955,7 @@ declare function deepMerge(base: AnyRecord, override: AnyRecord | undefined): An
940
955
  * @public
941
956
  */
942
957
  type TFunction = (key: TranslationKey, vars?: Record<string, string | number>) => string;
943
- /**
944
- * Translate a known engine refusal for adapter chrome.
945
- *
946
- * Unknown diagnostics stay exact, so integrations never lose the engine's explanation.
947
- *
948
- * @public
949
- */
950
- declare function localizeDisabledReason(reason: string | null, t: TFunction): string | null;
958
+
951
959
  /**
952
960
  * Build a typed `t(key, vars?)` function from a merged locale.
953
961
  *
package/dist/index.d.ts CHANGED
@@ -44,13 +44,17 @@ var disabledReason = {
44
44
  commentSelection: "Select a range before adding a comment",
45
45
  mergeUnsupported: "Cell merge is not supported",
46
46
  splitUnsupported: "Cell split is not supported",
47
- imageSuggesting: "Image property edits are unavailable in suggesting mode",
47
+ imageSuggesting: "Image changes are unavailable in suggesting mode",
48
48
  invalidValue: "This value is not valid for the command",
49
49
  unavailable: "This command is unavailable",
50
50
  bodyOnlySectionBreak: "Section breaks go in the document body.",
51
51
  bodyOnlyToc: "A table of contents goes in the document body.",
52
52
  bodyOnlyNote: "Footnotes and endnotes are added from the document body.",
53
- furnitureOnlyPageField: "Open a header or footer to insert a page number."
53
+ furnitureOnlyPageField: "Open a header or footer to insert a page number.",
54
+ suggestingSectionBreak: "Turn off suggesting to insert this section break. It changes where the next section starts, which can't be suggested.",
55
+ tableCellSectionBreak: "Section breaks go outside a table.",
56
+ lockedSectionBreak: "A locked or linked content control holds the next section, so this break can't change it.",
57
+ lockedContentBreak: "A content control locks this text, so you can't break a section here."
54
58
  };
55
59
  var toolbar = {
56
60
  ariaLabel: "Formatting toolbar",
@@ -384,6 +388,8 @@ var contextMenu = {
384
388
  copyShortcut: "Ctrl+C",
385
389
  paste: "Paste",
386
390
  pasteShortcut: "Ctrl+V",
391
+ pasteWithoutFormatting: "Paste without formatting",
392
+ pasteWithoutFormattingShortcut: "Ctrl+Shift+V",
387
393
  "delete": "Delete",
388
394
  deleteShortcut: "Del",
389
395
  selectAll: "Select All",
@@ -804,6 +810,15 @@ var enJson = {
804
810
  review: review
805
811
  };
806
812
 
813
+ /**
814
+ * Translate a known engine refusal for adapter chrome.
815
+ *
816
+ * Unknown diagnostics stay exact, so integrations never lose the engine's explanation.
817
+ *
818
+ * @public
819
+ */
820
+ declare function localizeDisabledReason(reason: string | null, t: TFunction): string | null;
821
+
807
822
  /**
808
823
  * Shared locale data, types, and runtime helpers for the @docx-editor.dev
809
824
  * editor adapters.
@@ -940,14 +955,7 @@ declare function deepMerge(base: AnyRecord, override: AnyRecord | undefined): An
940
955
  * @public
941
956
  */
942
957
  type TFunction = (key: TranslationKey, vars?: Record<string, string | number>) => string;
943
- /**
944
- * Translate a known engine refusal for adapter chrome.
945
- *
946
- * Unknown diagnostics stay exact, so integrations never lose the engine's explanation.
947
- *
948
- * @public
949
- */
950
- declare function localizeDisabledReason(reason: string | null, t: TFunction): string | null;
958
+
951
959
  /**
952
960
  * Build a typed `t(key, vars?)` function from a merged locale.
953
961
  *
package/dist/index.js CHANGED
@@ -59,13 +59,17 @@ var en_default = {
59
59
  commentSelection: "Select a range before adding a comment",
60
60
  mergeUnsupported: "Cell merge is not supported",
61
61
  splitUnsupported: "Cell split is not supported",
62
- imageSuggesting: "Image property edits are unavailable in suggesting mode",
62
+ imageSuggesting: "Image changes are unavailable in suggesting mode",
63
63
  invalidValue: "This value is not valid for the command",
64
64
  unavailable: "This command is unavailable",
65
65
  bodyOnlySectionBreak: "Section breaks go in the document body.",
66
66
  bodyOnlyToc: "A table of contents goes in the document body.",
67
67
  bodyOnlyNote: "Footnotes and endnotes are added from the document body.",
68
- furnitureOnlyPageField: "Open a header or footer to insert a page number."
68
+ furnitureOnlyPageField: "Open a header or footer to insert a page number.",
69
+ suggestingSectionBreak: "Turn off suggesting to insert this section break. It changes where the next section starts, which can't be suggested.",
70
+ tableCellSectionBreak: "Section breaks go outside a table.",
71
+ lockedSectionBreak: "A locked or linked content control holds the next section, so this break can't change it.",
72
+ lockedContentBreak: "A content control locks this text, so you can't break a section here."
69
73
  },
70
74
  toolbar: {
71
75
  ariaLabel: "Formatting toolbar",
@@ -399,6 +403,8 @@ var en_default = {
399
403
  copyShortcut: "Ctrl+C",
400
404
  paste: "Paste",
401
405
  pasteShortcut: "Ctrl+V",
406
+ pasteWithoutFormatting: "Paste without formatting",
407
+ pasteWithoutFormattingShortcut: "Ctrl+Shift+V",
402
408
  delete: "Delete",
403
409
  deleteShortcut: "Del",
404
410
  selectAll: "Select All",
@@ -1112,7 +1118,9 @@ var de_default = {
1112
1118
  selectAll: "Alles markieren",
1113
1119
  selectAllShortcut: "Strg+A",
1114
1120
  editCustomNode: "{label} bearbeiten",
1115
- removeCustomNode: "{label} entfernen"
1121
+ removeCustomNode: "{label} entfernen",
1122
+ pasteWithoutFormatting: null,
1123
+ pasteWithoutFormattingShortcut: null
1116
1124
  },
1117
1125
  documentOutline: {
1118
1126
  ariaLabel: "Dokumentgliederung",
@@ -1503,7 +1511,11 @@ var de_default = {
1503
1511
  bodyOnlyNote: null,
1504
1512
  bodyOnlySectionBreak: null,
1505
1513
  bodyOnlyToc: null,
1506
- furnitureOnlyPageField: null
1514
+ furnitureOnlyPageField: null,
1515
+ suggestingSectionBreak: null,
1516
+ tableCellSectionBreak: null,
1517
+ lockedSectionBreak: null,
1518
+ lockedContentBreak: null
1507
1519
  },
1508
1520
  equationPopup: {
1509
1521
  apply: null,
@@ -1851,7 +1863,9 @@ var fr_default = {
1851
1863
  selectAll: "Tout sélectionner",
1852
1864
  selectAllShortcut: "Ctrl+A",
1853
1865
  editCustomNode: "Modifier {label}",
1854
- removeCustomNode: "Supprimer {label}"
1866
+ removeCustomNode: "Supprimer {label}",
1867
+ pasteWithoutFormatting: null,
1868
+ pasteWithoutFormattingShortcut: null
1855
1869
  },
1856
1870
  documentOutline: {
1857
1871
  ariaLabel: "Plan du document",
@@ -2242,7 +2256,11 @@ var fr_default = {
2242
2256
  bodyOnlyNote: null,
2243
2257
  bodyOnlySectionBreak: null,
2244
2258
  bodyOnlyToc: null,
2245
- furnitureOnlyPageField: null
2259
+ furnitureOnlyPageField: null,
2260
+ suggestingSectionBreak: null,
2261
+ tableCellSectionBreak: null,
2262
+ lockedSectionBreak: null,
2263
+ lockedContentBreak: null
2246
2264
  },
2247
2265
  equationPopup: {
2248
2266
  apply: null,
@@ -2590,7 +2608,9 @@ var he_default = {
2590
2608
  selectAll: "בחר הכל",
2591
2609
  selectAllShortcut: "Ctrl+A",
2592
2610
  editCustomNode: "ערוך {label}",
2593
- removeCustomNode: "הסר {label}"
2611
+ removeCustomNode: "הסר {label}",
2612
+ pasteWithoutFormatting: null,
2613
+ pasteWithoutFormattingShortcut: null
2594
2614
  },
2595
2615
  documentOutline: {
2596
2616
  ariaLabel: "מתווה המסמך",
@@ -2981,7 +3001,11 @@ var he_default = {
2981
3001
  bodyOnlyNote: null,
2982
3002
  bodyOnlySectionBreak: null,
2983
3003
  bodyOnlyToc: null,
2984
- furnitureOnlyPageField: null
3004
+ furnitureOnlyPageField: null,
3005
+ suggestingSectionBreak: null,
3006
+ tableCellSectionBreak: null,
3007
+ lockedSectionBreak: null,
3008
+ lockedContentBreak: null
2985
3009
  },
2986
3010
  equationPopup: {
2987
3011
  apply: null,
@@ -3329,7 +3353,9 @@ var hi_default = {
3329
3353
  selectAll: "सभी चुनें",
3330
3354
  selectAllShortcut: "Ctrl+A",
3331
3355
  editCustomNode: "{label} संपादित करें",
3332
- removeCustomNode: "{label} निकालें"
3356
+ removeCustomNode: "{label} निकालें",
3357
+ pasteWithoutFormatting: null,
3358
+ pasteWithoutFormattingShortcut: null
3333
3359
  },
3334
3360
  documentOutline: {
3335
3361
  ariaLabel: "दस्तावेज़ की रूपरेखा",
@@ -3720,7 +3746,11 @@ var hi_default = {
3720
3746
  bodyOnlyNote: null,
3721
3747
  bodyOnlySectionBreak: null,
3722
3748
  bodyOnlyToc: null,
3723
- furnitureOnlyPageField: null
3749
+ furnitureOnlyPageField: null,
3750
+ suggestingSectionBreak: null,
3751
+ tableCellSectionBreak: null,
3752
+ lockedSectionBreak: null,
3753
+ lockedContentBreak: null
3724
3754
  },
3725
3755
  equationPopup: {
3726
3756
  apply: null,
@@ -4075,7 +4105,9 @@ var id_default = {
4075
4105
  selectAll: "Pilih Semua",
4076
4106
  selectAllShortcut: "Ctrl+A",
4077
4107
  editCustomNode: "Edit {label}",
4078
- removeCustomNode: "Hapus {label}"
4108
+ removeCustomNode: "Hapus {label}",
4109
+ pasteWithoutFormatting: null,
4110
+ pasteWithoutFormattingShortcut: null
4079
4111
  },
4080
4112
  documentOutline: {
4081
4113
  ariaLabel: "Struktur dokumen",
@@ -4459,7 +4491,11 @@ var id_default = {
4459
4491
  bodyOnlyNote: null,
4460
4492
  bodyOnlySectionBreak: null,
4461
4493
  bodyOnlyToc: null,
4462
- furnitureOnlyPageField: null
4494
+ furnitureOnlyPageField: null,
4495
+ suggestingSectionBreak: null,
4496
+ tableCellSectionBreak: null,
4497
+ lockedSectionBreak: null,
4498
+ lockedContentBreak: null
4463
4499
  },
4464
4500
  equationPopup: {
4465
4501
  apply: null,
@@ -4807,7 +4843,9 @@ var pl_default = {
4807
4843
  selectAll: "Zaznacz wszystko",
4808
4844
  selectAllShortcut: "Ctrl+A",
4809
4845
  editCustomNode: "Edytuj {label}",
4810
- removeCustomNode: "Usuń {label}"
4846
+ removeCustomNode: "Usuń {label}",
4847
+ pasteWithoutFormatting: null,
4848
+ pasteWithoutFormattingShortcut: null
4811
4849
  },
4812
4850
  documentOutline: {
4813
4851
  ariaLabel: "Konspekt dokumentu",
@@ -5198,7 +5236,11 @@ var pl_default = {
5198
5236
  bodyOnlyNote: null,
5199
5237
  bodyOnlySectionBreak: null,
5200
5238
  bodyOnlyToc: null,
5201
- furnitureOnlyPageField: null
5239
+ furnitureOnlyPageField: null,
5240
+ suggestingSectionBreak: null,
5241
+ tableCellSectionBreak: null,
5242
+ lockedSectionBreak: null,
5243
+ lockedContentBreak: null
5202
5244
  },
5203
5245
  equationPopup: {
5204
5246
  apply: null,
@@ -5546,7 +5588,9 @@ var pt_BR_default = {
5546
5588
  selectAll: "Selecionar tudo",
5547
5589
  selectAllShortcut: "Ctrl+A",
5548
5590
  editCustomNode: "Editar {label}",
5549
- removeCustomNode: "Remover {label}"
5591
+ removeCustomNode: "Remover {label}",
5592
+ pasteWithoutFormatting: null,
5593
+ pasteWithoutFormattingShortcut: null
5550
5594
  },
5551
5595
  documentOutline: {
5552
5596
  ariaLabel: "Estrutura do documento",
@@ -5937,7 +5981,11 @@ var pt_BR_default = {
5937
5981
  bodyOnlyNote: null,
5938
5982
  bodyOnlySectionBreak: null,
5939
5983
  bodyOnlyToc: null,
5940
- furnitureOnlyPageField: null
5984
+ furnitureOnlyPageField: null,
5985
+ suggestingSectionBreak: null,
5986
+ tableCellSectionBreak: null,
5987
+ lockedSectionBreak: null,
5988
+ lockedContentBreak: null
5941
5989
  },
5942
5990
  equationPopup: {
5943
5991
  apply: null,
@@ -6285,7 +6333,9 @@ var tr_default = {
6285
6333
  selectAll: "Tümünü seç",
6286
6334
  selectAllShortcut: "Ctrl+A",
6287
6335
  editCustomNode: "{label} öğesini düzenle",
6288
- removeCustomNode: "{label} öğesini kaldır"
6336
+ removeCustomNode: "{label} öğesini kaldır",
6337
+ pasteWithoutFormatting: null,
6338
+ pasteWithoutFormattingShortcut: null
6289
6339
  },
6290
6340
  documentOutline: {
6291
6341
  ariaLabel: "Belge ana hattı",
@@ -6676,7 +6726,11 @@ var tr_default = {
6676
6726
  bodyOnlyNote: null,
6677
6727
  bodyOnlySectionBreak: null,
6678
6728
  bodyOnlyToc: null,
6679
- furnitureOnlyPageField: null
6729
+ furnitureOnlyPageField: null,
6730
+ suggestingSectionBreak: null,
6731
+ tableCellSectionBreak: null,
6732
+ lockedSectionBreak: null,
6733
+ lockedContentBreak: null
6680
6734
  },
6681
6735
  equationPopup: {
6682
6736
  apply: null,
@@ -7024,7 +7078,9 @@ var zh_CN_default = {
7024
7078
  selectAll: "全选",
7025
7079
  selectAllShortcut: "Ctrl+A",
7026
7080
  editCustomNode: "编辑{label}",
7027
- removeCustomNode: "删除{label}"
7081
+ removeCustomNode: "删除{label}",
7082
+ pasteWithoutFormatting: null,
7083
+ pasteWithoutFormattingShortcut: null
7028
7084
  },
7029
7085
  documentOutline: {
7030
7086
  ariaLabel: "文档大纲",
@@ -7415,7 +7471,11 @@ var zh_CN_default = {
7415
7471
  bodyOnlyNote: null,
7416
7472
  bodyOnlySectionBreak: null,
7417
7473
  bodyOnlyToc: null,
7418
- furnitureOnlyPageField: null
7474
+ furnitureOnlyPageField: null,
7475
+ suggestingSectionBreak: null,
7476
+ tableCellSectionBreak: null,
7477
+ lockedSectionBreak: null,
7478
+ lockedContentBreak: null
7419
7479
  },
7420
7480
  equationPopup: {
7421
7481
  apply: null,
@@ -7427,6 +7487,48 @@ var zh_CN_default = {
7427
7487
  }
7428
7488
  };
7429
7489
 
7490
+ // src/disabled-reasons.ts
7491
+ var DISABLED_REASON_KEYS = Object.freeze({
7492
+ "editor is not ready": "disabledReason.editorNotReady",
7493
+ "not wired to an editor command": "disabledReason.notWired",
7494
+ "this document was opened for viewing": "disabledReason.viewing",
7495
+ "the document is open for viewing": "disabledReason.viewing",
7496
+ "this document permits editing only as tracked changes": "disabledReason.trackedOnly",
7497
+ "no document is loaded": "disabledReason.noDocument",
7498
+ "no document is open": "disabledReason.noDocument",
7499
+ "no content control at the selection": "disabledReason.noContentControl",
7500
+ "no drawing is selected": "disabledReason.noDrawing",
7501
+ "the drawing is locked": "disabledReason.drawingLocked",
7502
+ "a comment needs a selected range": "disabledReason.commentSelection",
7503
+ "cell merge is not supported yet": "disabledReason.mergeUnsupported",
7504
+ "cell split is not supported yet": "disabledReason.splitUnsupported",
7505
+ "image changes are not supported in suggesting mode": "disabledReason.imageSuggesting",
7506
+ "invalid table chrome value": "disabledReason.invalidValue",
7507
+ "invalid value for toolbar command": "disabledReason.invalidValue",
7508
+ "unsupported table command": "disabledReason.unavailable",
7509
+ // Scope refusals. Each names a story limit the engine really enforces, so each is chrome the
7510
+ // user reads — and each rendered as raw English in every locale until it was listed here.
7511
+ "a section break can only be inserted in the editable document body": "disabledReason.bodyOnlySectionBreak",
7512
+ "a table of contents can only be inserted in the editable document body": "disabledReason.bodyOnlyToc",
7513
+ "insertNote requires body scope": "disabledReason.bodyOnlyNote",
7514
+ "insertPageField requires an open header or footer scope": "disabledReason.furnitureOnlyPageField",
7515
+ // Not a scope refusal: the story is right and the MODE is not. A section break's type
7516
+ // lands on the section that follows it, and Word's record for that change is one this
7517
+ // engine refuses to accept or reject — so it cannot be proposed.
7518
+ "a section break that changes where the next section starts cannot be suggested; turn off suggesting to insert it": "disabledReason.suggestingSectionBreak",
7519
+ "a section break cannot be inserted inside a table cell": "disabledReason.tableCellSectionBreak",
7520
+ // Deliberately NOT the store's `locked` / `bound` enums. Those are shared by every op —
7521
+ // `locked` covers a locked CONTROL whose content is editable as well as locked content —
7522
+ // so one sentence cannot be true of all of them. Each lane says what its own refusal means.
7523
+ "a section break cannot change a section that a locked or linked content control holds": "disabledReason.lockedSectionBreak",
7524
+ "a section break cannot be inserted in locked or linked content": "disabledReason.lockedContentBreak"
7525
+ });
7526
+ function localizeDisabledReason(reason, t) {
7527
+ if (!reason) return null;
7528
+ const key = Object.prototype.hasOwnProperty.call(DISABLED_REASON_KEYS, reason) ? DISABLED_REASON_KEYS[reason] : void 0;
7529
+ return key ? t(key) : reason;
7530
+ }
7531
+
7430
7532
  // src/index.ts
7431
7533
  var en = en_default;
7432
7534
  var de = de_default;
@@ -7515,36 +7617,6 @@ function formatMessage(template, vars, lang) {
7515
7617
  return val !== void 0 ? String(val) : `{${key}}`;
7516
7618
  });
7517
7619
  }
7518
- var DISABLED_REASON_KEYS = Object.freeze({
7519
- "editor is not ready": "disabledReason.editorNotReady",
7520
- "not wired to an editor command": "disabledReason.notWired",
7521
- "this document was opened for viewing": "disabledReason.viewing",
7522
- "the document is open for viewing": "disabledReason.viewing",
7523
- "this document permits editing only as tracked changes": "disabledReason.trackedOnly",
7524
- "no document is loaded": "disabledReason.noDocument",
7525
- "no document is open": "disabledReason.noDocument",
7526
- "no content control at the selection": "disabledReason.noContentControl",
7527
- "no drawing is selected": "disabledReason.noDrawing",
7528
- "the drawing is locked": "disabledReason.drawingLocked",
7529
- "a comment needs a selected range": "disabledReason.commentSelection",
7530
- "cell merge is not supported yet": "disabledReason.mergeUnsupported",
7531
- "cell split is not supported yet": "disabledReason.splitUnsupported",
7532
- "image property edits are not supported in suggesting mode": "disabledReason.imageSuggesting",
7533
- "invalid table chrome value": "disabledReason.invalidValue",
7534
- "invalid value for toolbar command": "disabledReason.invalidValue",
7535
- "unsupported table command": "disabledReason.unavailable",
7536
- // Scope refusals. Each names a story limit the engine really enforces, so each is chrome the
7537
- // user reads — and each rendered as raw English in every locale until it was listed here.
7538
- "a section break can only be inserted in the editable document body": "disabledReason.bodyOnlySectionBreak",
7539
- "a table of contents can only be inserted in the editable document body": "disabledReason.bodyOnlyToc",
7540
- "insertNote requires body scope": "disabledReason.bodyOnlyNote",
7541
- "insertPageField requires an open header or footer scope": "disabledReason.furnitureOnlyPageField"
7542
- });
7543
- function localizeDisabledReason(reason, t) {
7544
- if (!reason) return null;
7545
- const key = DISABLED_REASON_KEYS[reason];
7546
- return key ? t(key) : reason;
7547
- }
7548
7620
  function createT(strings, lang = "en") {
7549
7621
  return (key, vars) => {
7550
7622
  const value = lookupKey(strings, key);
package/dist/index.mjs CHANGED
@@ -20,13 +20,17 @@ var en_default = {
20
20
  commentSelection: "Select a range before adding a comment",
21
21
  mergeUnsupported: "Cell merge is not supported",
22
22
  splitUnsupported: "Cell split is not supported",
23
- imageSuggesting: "Image property edits are unavailable in suggesting mode",
23
+ imageSuggesting: "Image changes are unavailable in suggesting mode",
24
24
  invalidValue: "This value is not valid for the command",
25
25
  unavailable: "This command is unavailable",
26
26
  bodyOnlySectionBreak: "Section breaks go in the document body.",
27
27
  bodyOnlyToc: "A table of contents goes in the document body.",
28
28
  bodyOnlyNote: "Footnotes and endnotes are added from the document body.",
29
- furnitureOnlyPageField: "Open a header or footer to insert a page number."
29
+ furnitureOnlyPageField: "Open a header or footer to insert a page number.",
30
+ suggestingSectionBreak: "Turn off suggesting to insert this section break. It changes where the next section starts, which can't be suggested.",
31
+ tableCellSectionBreak: "Section breaks go outside a table.",
32
+ lockedSectionBreak: "A locked or linked content control holds the next section, so this break can't change it.",
33
+ lockedContentBreak: "A content control locks this text, so you can't break a section here."
30
34
  },
31
35
  toolbar: {
32
36
  ariaLabel: "Formatting toolbar",
@@ -360,6 +364,8 @@ var en_default = {
360
364
  copyShortcut: "Ctrl+C",
361
365
  paste: "Paste",
362
366
  pasteShortcut: "Ctrl+V",
367
+ pasteWithoutFormatting: "Paste without formatting",
368
+ pasteWithoutFormattingShortcut: "Ctrl+Shift+V",
363
369
  delete: "Delete",
364
370
  deleteShortcut: "Del",
365
371
  selectAll: "Select All",
@@ -1073,7 +1079,9 @@ var de_default = {
1073
1079
  selectAll: "Alles markieren",
1074
1080
  selectAllShortcut: "Strg+A",
1075
1081
  editCustomNode: "{label} bearbeiten",
1076
- removeCustomNode: "{label} entfernen"
1082
+ removeCustomNode: "{label} entfernen",
1083
+ pasteWithoutFormatting: null,
1084
+ pasteWithoutFormattingShortcut: null
1077
1085
  },
1078
1086
  documentOutline: {
1079
1087
  ariaLabel: "Dokumentgliederung",
@@ -1464,7 +1472,11 @@ var de_default = {
1464
1472
  bodyOnlyNote: null,
1465
1473
  bodyOnlySectionBreak: null,
1466
1474
  bodyOnlyToc: null,
1467
- furnitureOnlyPageField: null
1475
+ furnitureOnlyPageField: null,
1476
+ suggestingSectionBreak: null,
1477
+ tableCellSectionBreak: null,
1478
+ lockedSectionBreak: null,
1479
+ lockedContentBreak: null
1468
1480
  },
1469
1481
  equationPopup: {
1470
1482
  apply: null,
@@ -1812,7 +1824,9 @@ var fr_default = {
1812
1824
  selectAll: "Tout sélectionner",
1813
1825
  selectAllShortcut: "Ctrl+A",
1814
1826
  editCustomNode: "Modifier {label}",
1815
- removeCustomNode: "Supprimer {label}"
1827
+ removeCustomNode: "Supprimer {label}",
1828
+ pasteWithoutFormatting: null,
1829
+ pasteWithoutFormattingShortcut: null
1816
1830
  },
1817
1831
  documentOutline: {
1818
1832
  ariaLabel: "Plan du document",
@@ -2203,7 +2217,11 @@ var fr_default = {
2203
2217
  bodyOnlyNote: null,
2204
2218
  bodyOnlySectionBreak: null,
2205
2219
  bodyOnlyToc: null,
2206
- furnitureOnlyPageField: null
2220
+ furnitureOnlyPageField: null,
2221
+ suggestingSectionBreak: null,
2222
+ tableCellSectionBreak: null,
2223
+ lockedSectionBreak: null,
2224
+ lockedContentBreak: null
2207
2225
  },
2208
2226
  equationPopup: {
2209
2227
  apply: null,
@@ -2551,7 +2569,9 @@ var he_default = {
2551
2569
  selectAll: "בחר הכל",
2552
2570
  selectAllShortcut: "Ctrl+A",
2553
2571
  editCustomNode: "ערוך {label}",
2554
- removeCustomNode: "הסר {label}"
2572
+ removeCustomNode: "הסר {label}",
2573
+ pasteWithoutFormatting: null,
2574
+ pasteWithoutFormattingShortcut: null
2555
2575
  },
2556
2576
  documentOutline: {
2557
2577
  ariaLabel: "מתווה המסמך",
@@ -2942,7 +2962,11 @@ var he_default = {
2942
2962
  bodyOnlyNote: null,
2943
2963
  bodyOnlySectionBreak: null,
2944
2964
  bodyOnlyToc: null,
2945
- furnitureOnlyPageField: null
2965
+ furnitureOnlyPageField: null,
2966
+ suggestingSectionBreak: null,
2967
+ tableCellSectionBreak: null,
2968
+ lockedSectionBreak: null,
2969
+ lockedContentBreak: null
2946
2970
  },
2947
2971
  equationPopup: {
2948
2972
  apply: null,
@@ -3290,7 +3314,9 @@ var hi_default = {
3290
3314
  selectAll: "सभी चुनें",
3291
3315
  selectAllShortcut: "Ctrl+A",
3292
3316
  editCustomNode: "{label} संपादित करें",
3293
- removeCustomNode: "{label} निकालें"
3317
+ removeCustomNode: "{label} निकालें",
3318
+ pasteWithoutFormatting: null,
3319
+ pasteWithoutFormattingShortcut: null
3294
3320
  },
3295
3321
  documentOutline: {
3296
3322
  ariaLabel: "दस्तावेज़ की रूपरेखा",
@@ -3681,7 +3707,11 @@ var hi_default = {
3681
3707
  bodyOnlyNote: null,
3682
3708
  bodyOnlySectionBreak: null,
3683
3709
  bodyOnlyToc: null,
3684
- furnitureOnlyPageField: null
3710
+ furnitureOnlyPageField: null,
3711
+ suggestingSectionBreak: null,
3712
+ tableCellSectionBreak: null,
3713
+ lockedSectionBreak: null,
3714
+ lockedContentBreak: null
3685
3715
  },
3686
3716
  equationPopup: {
3687
3717
  apply: null,
@@ -4036,7 +4066,9 @@ var id_default = {
4036
4066
  selectAll: "Pilih Semua",
4037
4067
  selectAllShortcut: "Ctrl+A",
4038
4068
  editCustomNode: "Edit {label}",
4039
- removeCustomNode: "Hapus {label}"
4069
+ removeCustomNode: "Hapus {label}",
4070
+ pasteWithoutFormatting: null,
4071
+ pasteWithoutFormattingShortcut: null
4040
4072
  },
4041
4073
  documentOutline: {
4042
4074
  ariaLabel: "Struktur dokumen",
@@ -4420,7 +4452,11 @@ var id_default = {
4420
4452
  bodyOnlyNote: null,
4421
4453
  bodyOnlySectionBreak: null,
4422
4454
  bodyOnlyToc: null,
4423
- furnitureOnlyPageField: null
4455
+ furnitureOnlyPageField: null,
4456
+ suggestingSectionBreak: null,
4457
+ tableCellSectionBreak: null,
4458
+ lockedSectionBreak: null,
4459
+ lockedContentBreak: null
4424
4460
  },
4425
4461
  equationPopup: {
4426
4462
  apply: null,
@@ -4768,7 +4804,9 @@ var pl_default = {
4768
4804
  selectAll: "Zaznacz wszystko",
4769
4805
  selectAllShortcut: "Ctrl+A",
4770
4806
  editCustomNode: "Edytuj {label}",
4771
- removeCustomNode: "Usuń {label}"
4807
+ removeCustomNode: "Usuń {label}",
4808
+ pasteWithoutFormatting: null,
4809
+ pasteWithoutFormattingShortcut: null
4772
4810
  },
4773
4811
  documentOutline: {
4774
4812
  ariaLabel: "Konspekt dokumentu",
@@ -5159,7 +5197,11 @@ var pl_default = {
5159
5197
  bodyOnlyNote: null,
5160
5198
  bodyOnlySectionBreak: null,
5161
5199
  bodyOnlyToc: null,
5162
- furnitureOnlyPageField: null
5200
+ furnitureOnlyPageField: null,
5201
+ suggestingSectionBreak: null,
5202
+ tableCellSectionBreak: null,
5203
+ lockedSectionBreak: null,
5204
+ lockedContentBreak: null
5163
5205
  },
5164
5206
  equationPopup: {
5165
5207
  apply: null,
@@ -5507,7 +5549,9 @@ var pt_BR_default = {
5507
5549
  selectAll: "Selecionar tudo",
5508
5550
  selectAllShortcut: "Ctrl+A",
5509
5551
  editCustomNode: "Editar {label}",
5510
- removeCustomNode: "Remover {label}"
5552
+ removeCustomNode: "Remover {label}",
5553
+ pasteWithoutFormatting: null,
5554
+ pasteWithoutFormattingShortcut: null
5511
5555
  },
5512
5556
  documentOutline: {
5513
5557
  ariaLabel: "Estrutura do documento",
@@ -5898,7 +5942,11 @@ var pt_BR_default = {
5898
5942
  bodyOnlyNote: null,
5899
5943
  bodyOnlySectionBreak: null,
5900
5944
  bodyOnlyToc: null,
5901
- furnitureOnlyPageField: null
5945
+ furnitureOnlyPageField: null,
5946
+ suggestingSectionBreak: null,
5947
+ tableCellSectionBreak: null,
5948
+ lockedSectionBreak: null,
5949
+ lockedContentBreak: null
5902
5950
  },
5903
5951
  equationPopup: {
5904
5952
  apply: null,
@@ -6246,7 +6294,9 @@ var tr_default = {
6246
6294
  selectAll: "Tümünü seç",
6247
6295
  selectAllShortcut: "Ctrl+A",
6248
6296
  editCustomNode: "{label} öğesini düzenle",
6249
- removeCustomNode: "{label} öğesini kaldır"
6297
+ removeCustomNode: "{label} öğesini kaldır",
6298
+ pasteWithoutFormatting: null,
6299
+ pasteWithoutFormattingShortcut: null
6250
6300
  },
6251
6301
  documentOutline: {
6252
6302
  ariaLabel: "Belge ana hattı",
@@ -6637,7 +6687,11 @@ var tr_default = {
6637
6687
  bodyOnlyNote: null,
6638
6688
  bodyOnlySectionBreak: null,
6639
6689
  bodyOnlyToc: null,
6640
- furnitureOnlyPageField: null
6690
+ furnitureOnlyPageField: null,
6691
+ suggestingSectionBreak: null,
6692
+ tableCellSectionBreak: null,
6693
+ lockedSectionBreak: null,
6694
+ lockedContentBreak: null
6641
6695
  },
6642
6696
  equationPopup: {
6643
6697
  apply: null,
@@ -6985,7 +7039,9 @@ var zh_CN_default = {
6985
7039
  selectAll: "全选",
6986
7040
  selectAllShortcut: "Ctrl+A",
6987
7041
  editCustomNode: "编辑{label}",
6988
- removeCustomNode: "删除{label}"
7042
+ removeCustomNode: "删除{label}",
7043
+ pasteWithoutFormatting: null,
7044
+ pasteWithoutFormattingShortcut: null
6989
7045
  },
6990
7046
  documentOutline: {
6991
7047
  ariaLabel: "文档大纲",
@@ -7376,7 +7432,11 @@ var zh_CN_default = {
7376
7432
  bodyOnlyNote: null,
7377
7433
  bodyOnlySectionBreak: null,
7378
7434
  bodyOnlyToc: null,
7379
- furnitureOnlyPageField: null
7435
+ furnitureOnlyPageField: null,
7436
+ suggestingSectionBreak: null,
7437
+ tableCellSectionBreak: null,
7438
+ lockedSectionBreak: null,
7439
+ lockedContentBreak: null
7380
7440
  },
7381
7441
  equationPopup: {
7382
7442
  apply: null,
@@ -7388,6 +7448,48 @@ var zh_CN_default = {
7388
7448
  }
7389
7449
  };
7390
7450
 
7451
+ // src/disabled-reasons.ts
7452
+ var DISABLED_REASON_KEYS = Object.freeze({
7453
+ "editor is not ready": "disabledReason.editorNotReady",
7454
+ "not wired to an editor command": "disabledReason.notWired",
7455
+ "this document was opened for viewing": "disabledReason.viewing",
7456
+ "the document is open for viewing": "disabledReason.viewing",
7457
+ "this document permits editing only as tracked changes": "disabledReason.trackedOnly",
7458
+ "no document is loaded": "disabledReason.noDocument",
7459
+ "no document is open": "disabledReason.noDocument",
7460
+ "no content control at the selection": "disabledReason.noContentControl",
7461
+ "no drawing is selected": "disabledReason.noDrawing",
7462
+ "the drawing is locked": "disabledReason.drawingLocked",
7463
+ "a comment needs a selected range": "disabledReason.commentSelection",
7464
+ "cell merge is not supported yet": "disabledReason.mergeUnsupported",
7465
+ "cell split is not supported yet": "disabledReason.splitUnsupported",
7466
+ "image changes are not supported in suggesting mode": "disabledReason.imageSuggesting",
7467
+ "invalid table chrome value": "disabledReason.invalidValue",
7468
+ "invalid value for toolbar command": "disabledReason.invalidValue",
7469
+ "unsupported table command": "disabledReason.unavailable",
7470
+ // Scope refusals. Each names a story limit the engine really enforces, so each is chrome the
7471
+ // user reads — and each rendered as raw English in every locale until it was listed here.
7472
+ "a section break can only be inserted in the editable document body": "disabledReason.bodyOnlySectionBreak",
7473
+ "a table of contents can only be inserted in the editable document body": "disabledReason.bodyOnlyToc",
7474
+ "insertNote requires body scope": "disabledReason.bodyOnlyNote",
7475
+ "insertPageField requires an open header or footer scope": "disabledReason.furnitureOnlyPageField",
7476
+ // Not a scope refusal: the story is right and the MODE is not. A section break's type
7477
+ // lands on the section that follows it, and Word's record for that change is one this
7478
+ // engine refuses to accept or reject — so it cannot be proposed.
7479
+ "a section break that changes where the next section starts cannot be suggested; turn off suggesting to insert it": "disabledReason.suggestingSectionBreak",
7480
+ "a section break cannot be inserted inside a table cell": "disabledReason.tableCellSectionBreak",
7481
+ // Deliberately NOT the store's `locked` / `bound` enums. Those are shared by every op —
7482
+ // `locked` covers a locked CONTROL whose content is editable as well as locked content —
7483
+ // so one sentence cannot be true of all of them. Each lane says what its own refusal means.
7484
+ "a section break cannot change a section that a locked or linked content control holds": "disabledReason.lockedSectionBreak",
7485
+ "a section break cannot be inserted in locked or linked content": "disabledReason.lockedContentBreak"
7486
+ });
7487
+ function localizeDisabledReason(reason, t) {
7488
+ if (!reason) return null;
7489
+ const key = Object.prototype.hasOwnProperty.call(DISABLED_REASON_KEYS, reason) ? DISABLED_REASON_KEYS[reason] : void 0;
7490
+ return key ? t(key) : reason;
7491
+ }
7492
+
7391
7493
  // src/index.ts
7392
7494
  var en = en_default;
7393
7495
  var de = de_default;
@@ -7476,36 +7578,6 @@ function formatMessage(template, vars, lang) {
7476
7578
  return val !== void 0 ? String(val) : `{${key}}`;
7477
7579
  });
7478
7580
  }
7479
- var DISABLED_REASON_KEYS = Object.freeze({
7480
- "editor is not ready": "disabledReason.editorNotReady",
7481
- "not wired to an editor command": "disabledReason.notWired",
7482
- "this document was opened for viewing": "disabledReason.viewing",
7483
- "the document is open for viewing": "disabledReason.viewing",
7484
- "this document permits editing only as tracked changes": "disabledReason.trackedOnly",
7485
- "no document is loaded": "disabledReason.noDocument",
7486
- "no document is open": "disabledReason.noDocument",
7487
- "no content control at the selection": "disabledReason.noContentControl",
7488
- "no drawing is selected": "disabledReason.noDrawing",
7489
- "the drawing is locked": "disabledReason.drawingLocked",
7490
- "a comment needs a selected range": "disabledReason.commentSelection",
7491
- "cell merge is not supported yet": "disabledReason.mergeUnsupported",
7492
- "cell split is not supported yet": "disabledReason.splitUnsupported",
7493
- "image property edits are not supported in suggesting mode": "disabledReason.imageSuggesting",
7494
- "invalid table chrome value": "disabledReason.invalidValue",
7495
- "invalid value for toolbar command": "disabledReason.invalidValue",
7496
- "unsupported table command": "disabledReason.unavailable",
7497
- // Scope refusals. Each names a story limit the engine really enforces, so each is chrome the
7498
- // user reads — and each rendered as raw English in every locale until it was listed here.
7499
- "a section break can only be inserted in the editable document body": "disabledReason.bodyOnlySectionBreak",
7500
- "a table of contents can only be inserted in the editable document body": "disabledReason.bodyOnlyToc",
7501
- "insertNote requires body scope": "disabledReason.bodyOnlyNote",
7502
- "insertPageField requires an open header or footer scope": "disabledReason.furnitureOnlyPageField"
7503
- });
7504
- function localizeDisabledReason(reason, t) {
7505
- if (!reason) return null;
7506
- const key = DISABLED_REASON_KEYS[reason];
7507
- return key ? t(key) : reason;
7508
- }
7509
7581
  function createT(strings, lang = "en") {
7510
7582
  return (key, vars) => {
7511
7583
  const value = lookupKey(strings, key);
package/dist/pl.js CHANGED
@@ -361,7 +361,9 @@ var pl_default = {
361
361
  selectAll: "Zaznacz wszystko",
362
362
  selectAllShortcut: "Ctrl+A",
363
363
  editCustomNode: "Edytuj {label}",
364
- removeCustomNode: "Usuń {label}"
364
+ removeCustomNode: "Usuń {label}",
365
+ pasteWithoutFormatting: null,
366
+ pasteWithoutFormattingShortcut: null
365
367
  },
366
368
  documentOutline: {
367
369
  ariaLabel: "Konspekt dokumentu",
@@ -752,7 +754,11 @@ var pl_default = {
752
754
  bodyOnlyNote: null,
753
755
  bodyOnlySectionBreak: null,
754
756
  bodyOnlyToc: null,
755
- furnitureOnlyPageField: null
757
+ furnitureOnlyPageField: null,
758
+ suggestingSectionBreak: null,
759
+ tableCellSectionBreak: null,
760
+ lockedSectionBreak: null,
761
+ lockedContentBreak: null
756
762
  },
757
763
  equationPopup: {
758
764
  apply: null,
package/dist/pl.mjs CHANGED
@@ -334,7 +334,9 @@ var pl_default = {
334
334
  selectAll: "Zaznacz wszystko",
335
335
  selectAllShortcut: "Ctrl+A",
336
336
  editCustomNode: "Edytuj {label}",
337
- removeCustomNode: "Usuń {label}"
337
+ removeCustomNode: "Usuń {label}",
338
+ pasteWithoutFormatting: null,
339
+ pasteWithoutFormattingShortcut: null
338
340
  },
339
341
  documentOutline: {
340
342
  ariaLabel: "Konspekt dokumentu",
@@ -725,7 +727,11 @@ var pl_default = {
725
727
  bodyOnlyNote: null,
726
728
  bodyOnlySectionBreak: null,
727
729
  bodyOnlyToc: null,
728
- furnitureOnlyPageField: null
730
+ furnitureOnlyPageField: null,
731
+ suggestingSectionBreak: null,
732
+ tableCellSectionBreak: null,
733
+ lockedSectionBreak: null,
734
+ lockedContentBreak: null
729
735
  },
730
736
  equationPopup: {
731
737
  apply: null,
package/dist/pt-BR.js CHANGED
@@ -361,7 +361,9 @@ var pt_BR_default = {
361
361
  selectAll: "Selecionar tudo",
362
362
  selectAllShortcut: "Ctrl+A",
363
363
  editCustomNode: "Editar {label}",
364
- removeCustomNode: "Remover {label}"
364
+ removeCustomNode: "Remover {label}",
365
+ pasteWithoutFormatting: null,
366
+ pasteWithoutFormattingShortcut: null
365
367
  },
366
368
  documentOutline: {
367
369
  ariaLabel: "Estrutura do documento",
@@ -752,7 +754,11 @@ var pt_BR_default = {
752
754
  bodyOnlyNote: null,
753
755
  bodyOnlySectionBreak: null,
754
756
  bodyOnlyToc: null,
755
- furnitureOnlyPageField: null
757
+ furnitureOnlyPageField: null,
758
+ suggestingSectionBreak: null,
759
+ tableCellSectionBreak: null,
760
+ lockedSectionBreak: null,
761
+ lockedContentBreak: null
756
762
  },
757
763
  equationPopup: {
758
764
  apply: null,
package/dist/pt-BR.mjs CHANGED
@@ -334,7 +334,9 @@ var pt_BR_default = {
334
334
  selectAll: "Selecionar tudo",
335
335
  selectAllShortcut: "Ctrl+A",
336
336
  editCustomNode: "Editar {label}",
337
- removeCustomNode: "Remover {label}"
337
+ removeCustomNode: "Remover {label}",
338
+ pasteWithoutFormatting: null,
339
+ pasteWithoutFormattingShortcut: null
338
340
  },
339
341
  documentOutline: {
340
342
  ariaLabel: "Estrutura do documento",
@@ -725,7 +727,11 @@ var pt_BR_default = {
725
727
  bodyOnlyNote: null,
726
728
  bodyOnlySectionBreak: null,
727
729
  bodyOnlyToc: null,
728
- furnitureOnlyPageField: null
730
+ furnitureOnlyPageField: null,
731
+ suggestingSectionBreak: null,
732
+ tableCellSectionBreak: null,
733
+ lockedSectionBreak: null,
734
+ lockedContentBreak: null
729
735
  },
730
736
  equationPopup: {
731
737
  apply: null,
package/dist/tr.js CHANGED
@@ -361,7 +361,9 @@ var tr_default = {
361
361
  selectAll: "Tümünü seç",
362
362
  selectAllShortcut: "Ctrl+A",
363
363
  editCustomNode: "{label} öğesini düzenle",
364
- removeCustomNode: "{label} öğesini kaldır"
364
+ removeCustomNode: "{label} öğesini kaldır",
365
+ pasteWithoutFormatting: null,
366
+ pasteWithoutFormattingShortcut: null
365
367
  },
366
368
  documentOutline: {
367
369
  ariaLabel: "Belge ana hattı",
@@ -752,7 +754,11 @@ var tr_default = {
752
754
  bodyOnlyNote: null,
753
755
  bodyOnlySectionBreak: null,
754
756
  bodyOnlyToc: null,
755
- furnitureOnlyPageField: null
757
+ furnitureOnlyPageField: null,
758
+ suggestingSectionBreak: null,
759
+ tableCellSectionBreak: null,
760
+ lockedSectionBreak: null,
761
+ lockedContentBreak: null
756
762
  },
757
763
  equationPopup: {
758
764
  apply: null,
package/dist/tr.mjs CHANGED
@@ -334,7 +334,9 @@ var tr_default = {
334
334
  selectAll: "Tümünü seç",
335
335
  selectAllShortcut: "Ctrl+A",
336
336
  editCustomNode: "{label} öğesini düzenle",
337
- removeCustomNode: "{label} öğesini kaldır"
337
+ removeCustomNode: "{label} öğesini kaldır",
338
+ pasteWithoutFormatting: null,
339
+ pasteWithoutFormattingShortcut: null
338
340
  },
339
341
  documentOutline: {
340
342
  ariaLabel: "Belge ana hattı",
@@ -725,7 +727,11 @@ var tr_default = {
725
727
  bodyOnlyNote: null,
726
728
  bodyOnlySectionBreak: null,
727
729
  bodyOnlyToc: null,
728
- furnitureOnlyPageField: null
730
+ furnitureOnlyPageField: null,
731
+ suggestingSectionBreak: null,
732
+ tableCellSectionBreak: null,
733
+ lockedSectionBreak: null,
734
+ lockedContentBreak: null
729
735
  },
730
736
  equationPopup: {
731
737
  apply: null,
package/dist/zh-CN.js CHANGED
@@ -361,7 +361,9 @@ var zh_CN_default = {
361
361
  selectAll: "全选",
362
362
  selectAllShortcut: "Ctrl+A",
363
363
  editCustomNode: "编辑{label}",
364
- removeCustomNode: "删除{label}"
364
+ removeCustomNode: "删除{label}",
365
+ pasteWithoutFormatting: null,
366
+ pasteWithoutFormattingShortcut: null
365
367
  },
366
368
  documentOutline: {
367
369
  ariaLabel: "文档大纲",
@@ -752,7 +754,11 @@ var zh_CN_default = {
752
754
  bodyOnlyNote: null,
753
755
  bodyOnlySectionBreak: null,
754
756
  bodyOnlyToc: null,
755
- furnitureOnlyPageField: null
757
+ furnitureOnlyPageField: null,
758
+ suggestingSectionBreak: null,
759
+ tableCellSectionBreak: null,
760
+ lockedSectionBreak: null,
761
+ lockedContentBreak: null
756
762
  },
757
763
  equationPopup: {
758
764
  apply: null,
package/dist/zh-CN.mjs CHANGED
@@ -334,7 +334,9 @@ var zh_CN_default = {
334
334
  selectAll: "全选",
335
335
  selectAllShortcut: "Ctrl+A",
336
336
  editCustomNode: "编辑{label}",
337
- removeCustomNode: "删除{label}"
337
+ removeCustomNode: "删除{label}",
338
+ pasteWithoutFormatting: null,
339
+ pasteWithoutFormattingShortcut: null
338
340
  },
339
341
  documentOutline: {
340
342
  ariaLabel: "文档大纲",
@@ -725,7 +727,11 @@ var zh_CN_default = {
725
727
  bodyOnlyNote: null,
726
728
  bodyOnlySectionBreak: null,
727
729
  bodyOnlyToc: null,
728
- furnitureOnlyPageField: null
730
+ furnitureOnlyPageField: null,
731
+ suggestingSectionBreak: null,
732
+ tableCellSectionBreak: null,
733
+ lockedSectionBreak: null,
734
+ lockedContentBreak: null
729
735
  },
730
736
  equationPopup: {
731
737
  apply: null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docx-editor.dev/i18n",
3
- "version": "2.9.1",
3
+ "version": "2.10.0",
4
4
  "description": "Shared UI locale strings and types for the @docx-editor.dev editor adapters (React and Vue).",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.js",