@univerjs/docs-ui 1.3.1 → 1.4.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.
Files changed (105) hide show
  1. package/lib/cjs/facade.js +1 -3
  2. package/lib/cjs/index.js +327 -495
  3. package/lib/cjs/locale/ar-SA.js +2 -2
  4. package/lib/cjs/locale/ca-ES.js +2 -2
  5. package/lib/cjs/locale/de-DE.js +2 -2
  6. package/lib/cjs/locale/en-US.js +2 -2
  7. package/lib/cjs/locale/es-ES.js +2 -2
  8. package/lib/cjs/locale/fa-IR.js +2 -2
  9. package/lib/cjs/locale/fr-FR.js +2 -2
  10. package/lib/cjs/locale/id-ID.js +2 -2
  11. package/lib/cjs/locale/it-IT.js +2 -2
  12. package/lib/cjs/locale/ja-JP.js +2 -2
  13. package/lib/cjs/locale/ko-KR.js +2 -2
  14. package/lib/cjs/locale/pl-PL.js +2 -2
  15. package/lib/cjs/locale/pt-BR.js +2 -2
  16. package/lib/cjs/locale/ru-RU.js +2 -2
  17. package/lib/cjs/locale/sk-SK.js +2 -2
  18. package/lib/cjs/locale/vi-VN.js +2 -2
  19. package/lib/cjs/locale/zh-CN.js +2 -2
  20. package/lib/cjs/locale/zh-HK.js +2 -2
  21. package/lib/cjs/locale/zh-TW.js +2 -2
  22. package/lib/es/facade.js +1 -2
  23. package/lib/es/index.js +327 -494
  24. package/lib/es/locale/ar-SA.js +2 -2
  25. package/lib/es/locale/ca-ES.js +2 -2
  26. package/lib/es/locale/de-DE.js +2 -2
  27. package/lib/es/locale/en-US.js +2 -2
  28. package/lib/es/locale/es-ES.js +2 -2
  29. package/lib/es/locale/fa-IR.js +2 -2
  30. package/lib/es/locale/fr-FR.js +2 -2
  31. package/lib/es/locale/id-ID.js +2 -2
  32. package/lib/es/locale/it-IT.js +2 -2
  33. package/lib/es/locale/ja-JP.js +2 -2
  34. package/lib/es/locale/ko-KR.js +2 -2
  35. package/lib/es/locale/pl-PL.js +2 -2
  36. package/lib/es/locale/pt-BR.js +2 -2
  37. package/lib/es/locale/ru-RU.js +2 -2
  38. package/lib/es/locale/sk-SK.js +2 -2
  39. package/lib/es/locale/vi-VN.js +2 -2
  40. package/lib/es/locale/zh-CN.js +2 -2
  41. package/lib/es/locale/zh-HK.js +2 -2
  42. package/lib/es/locale/zh-TW.js +2 -2
  43. package/lib/facade.js +1 -2
  44. package/lib/index.js +327 -494
  45. package/lib/locale/ar-SA.js +2 -2
  46. package/lib/locale/ca-ES.js +2 -2
  47. package/lib/locale/de-DE.js +2 -2
  48. package/lib/locale/en-US.js +2 -2
  49. package/lib/locale/es-ES.js +2 -2
  50. package/lib/locale/fa-IR.js +2 -2
  51. package/lib/locale/fr-FR.js +2 -2
  52. package/lib/locale/id-ID.js +2 -2
  53. package/lib/locale/it-IT.js +2 -2
  54. package/lib/locale/ja-JP.js +2 -2
  55. package/lib/locale/ko-KR.js +2 -2
  56. package/lib/locale/pl-PL.js +2 -2
  57. package/lib/locale/pt-BR.js +2 -2
  58. package/lib/locale/ru-RU.js +2 -2
  59. package/lib/locale/sk-SK.js +2 -2
  60. package/lib/locale/vi-VN.js +2 -2
  61. package/lib/locale/zh-CN.js +2 -2
  62. package/lib/locale/zh-HK.js +2 -2
  63. package/lib/locale/zh-TW.js +2 -2
  64. package/lib/types/commands/commands/doc-paragraph-setting.command.d.ts +1 -1
  65. package/lib/types/commands/commands/table/doc-table-create.command.d.ts +2 -2
  66. package/lib/types/controllers/components.controller.d.ts +0 -1
  67. package/lib/types/controllers/mobile/components.controller.d.ts +0 -1
  68. package/lib/types/locale/en-US.d.ts +1 -0
  69. package/lib/types/menu/mobile-schema.d.ts +5 -4
  70. package/lib/types/menu/paragraph-menu.d.ts +2 -2
  71. package/lib/types/services/clipboard/clipboard.service.d.ts +1 -1
  72. package/lib/types/services/clipboard/doc-paste-mutation-adapter.service.d.ts +1 -1
  73. package/lib/types/services/clipboard/paste-options.d.ts +6 -6
  74. package/lib/types/services/clipboard/udm-to-html/convertor.d.ts +1 -1
  75. package/lib/types/services/doc-render-background.d.ts +1 -1
  76. package/lib/types/services/editor/editor-manager.service.d.ts +1 -1
  77. package/lib/types/services/editor/editor.d.ts +1 -1
  78. package/lib/types/services/selection/text-range.d.ts +2 -2
  79. package/lib/types/views/header-footer/panel/DocHeaderFooterPanel.d.ts +1 -1
  80. package/lib/types/views/header-footer/panel/use-header-footer-options.d.ts +2 -2
  81. package/lib/types/views/paragraph-setting/ParagraphWordWrapSetting.d.ts +16 -0
  82. package/lib/types/views/paragraph-setting/hook/utils.d.ts +2 -2
  83. package/lib/types/views/rich-text-editor/hooks/use-resize.d.ts +1 -1
  84. package/lib/types/views/section-setting/use-section-setting.d.ts +13 -13
  85. package/lib/umd/index.js +16 -16
  86. package/lib/umd/locale/ar-SA.js +1 -1
  87. package/lib/umd/locale/ca-ES.js +1 -1
  88. package/lib/umd/locale/de-DE.js +1 -1
  89. package/lib/umd/locale/en-US.js +1 -1
  90. package/lib/umd/locale/es-ES.js +1 -1
  91. package/lib/umd/locale/fa-IR.js +1 -1
  92. package/lib/umd/locale/fr-FR.js +1 -1
  93. package/lib/umd/locale/id-ID.js +1 -1
  94. package/lib/umd/locale/it-IT.js +1 -1
  95. package/lib/umd/locale/ja-JP.js +1 -1
  96. package/lib/umd/locale/ko-KR.js +1 -1
  97. package/lib/umd/locale/pl-PL.js +1 -1
  98. package/lib/umd/locale/pt-BR.js +1 -1
  99. package/lib/umd/locale/ru-RU.js +1 -1
  100. package/lib/umd/locale/sk-SK.js +1 -1
  101. package/lib/umd/locale/vi-VN.js +1 -1
  102. package/lib/umd/locale/zh-CN.js +1 -1
  103. package/lib/umd/locale/zh-HK.js +1 -1
  104. package/lib/umd/locale/zh-TW.js +1 -1
  105. package/package.json +16 -16
@@ -1,4 +1,4 @@
1
- //#region src/locale/ar-SA.ts
1
+ // src/locale/ar-SA.ts
2
2
  const locale = { "docs-ui": {
3
3
  pasteOptions: {
4
4
  special: "لصق خاص",
@@ -157,6 +157,7 @@ const locale = { "docs-ui": {
157
157
  sectionSetting: "إعدادات المقطع"
158
158
  },
159
159
  paragraphSetting: {
160
+ wordWrap: "السماح بالتفاف النص اللاتيني في وسط الكلمة",
160
161
  alignment: "محاذاة",
161
162
  indentation: "إزاحة",
162
163
  left: "يسار",
@@ -254,5 +255,4 @@ const locale = { "docs-ui": {
254
255
  }
255
256
  } };
256
257
 
257
- //#endregion
258
258
  export { locale as default };
@@ -1,4 +1,4 @@
1
- //#region src/locale/ca-ES.ts
1
+ // src/locale/ca-ES.ts
2
2
  const locale = { "docs-ui": {
3
3
  pasteOptions: {
4
4
  special: "Enganxament especial",
@@ -157,6 +157,7 @@ const locale = { "docs-ui": {
157
157
  sectionSetting: "Configuració de secció"
158
158
  },
159
159
  paragraphSetting: {
160
+ wordWrap: "Permet ajustar el text llatí al mig d’una paraula",
160
161
  alignment: "Alineació",
161
162
  indentation: "Sagnat",
162
163
  left: "Esquerra",
@@ -254,5 +255,4 @@ const locale = { "docs-ui": {
254
255
  }
255
256
  } };
256
257
 
257
- //#endregion
258
258
  export { locale as default };
@@ -1,4 +1,4 @@
1
- //#region src/locale/de-DE.ts
1
+ // src/locale/de-DE.ts
2
2
  const locale = { "docs-ui": {
3
3
  pasteOptions: {
4
4
  special: "Inhalte einfügen",
@@ -157,6 +157,7 @@ const locale = { "docs-ui": {
157
157
  sectionSetting: "Abschnittseinstellungen"
158
158
  },
159
159
  paragraphSetting: {
160
+ wordWrap: "Textumbruch in der Mitte eines Wortes für westlichen Text zulassen",
160
161
  alignment: "Ausrichtung",
161
162
  indentation: "Einzug",
162
163
  left: "Links",
@@ -254,5 +255,4 @@ const locale = { "docs-ui": {
254
255
  }
255
256
  } };
256
257
 
257
- //#endregion
258
258
  export { locale as default };
@@ -1,4 +1,4 @@
1
- //#region src/locale/en-US.ts
1
+ // src/locale/en-US.ts
2
2
  /**
3
3
  * Copyright 2023-present DreamNum Co., Ltd.
4
4
  *
@@ -172,6 +172,7 @@ const locale = { "docs-ui": {
172
172
  sectionSetting: "Section Settings"
173
173
  },
174
174
  paragraphSetting: {
175
+ wordWrap: "Allow Latin text to wrap in the middle of a word",
175
176
  alignment: "Alignment",
176
177
  indentation: "Indentation",
177
178
  left: "Left",
@@ -269,5 +270,4 @@ const locale = { "docs-ui": {
269
270
  }
270
271
  } };
271
272
 
272
- //#endregion
273
273
  export { locale as default };
@@ -1,4 +1,4 @@
1
- //#region src/locale/es-ES.ts
1
+ // src/locale/es-ES.ts
2
2
  const locale = { "docs-ui": {
3
3
  pasteOptions: {
4
4
  special: "Pegado especial",
@@ -157,6 +157,7 @@ const locale = { "docs-ui": {
157
157
  sectionSetting: "Configuración de sección"
158
158
  },
159
159
  paragraphSetting: {
160
+ wordWrap: "Permitir ajuste de línea con división de palabra en el texto latino",
160
161
  alignment: "Alineación",
161
162
  indentation: "Sangría",
162
163
  left: "Izquierda",
@@ -254,5 +255,4 @@ const locale = { "docs-ui": {
254
255
  }
255
256
  } };
256
257
 
257
- //#endregion
258
258
  export { locale as default };
@@ -1,4 +1,4 @@
1
- //#region src/locale/fa-IR.ts
1
+ // src/locale/fa-IR.ts
2
2
  const locale = { "docs-ui": {
3
3
  pasteOptions: {
4
4
  special: "چسباندن ویژه",
@@ -157,6 +157,7 @@ const locale = { "docs-ui": {
157
157
  sectionSetting: "تنظیمات بخش"
158
158
  },
159
159
  paragraphSetting: {
160
+ wordWrap: "اجازه شکستن متن لاتین در میانهٔ کلمه",
160
161
  alignment: "تراز",
161
162
  indentation: "تورفتگی",
162
163
  left: "چپ",
@@ -254,5 +255,4 @@ const locale = { "docs-ui": {
254
255
  }
255
256
  } };
256
257
 
257
- //#endregion
258
258
  export { locale as default };
@@ -1,4 +1,4 @@
1
- //#region src/locale/fr-FR.ts
1
+ // src/locale/fr-FR.ts
2
2
  const locale = { "docs-ui": {
3
3
  pasteOptions: {
4
4
  special: "Collage spécial",
@@ -157,6 +157,7 @@ const locale = { "docs-ui": {
157
157
  sectionSetting: "Paramètres de section"
158
158
  },
159
159
  paragraphSetting: {
160
+ wordWrap: "Autoriser la césure en milieu de mot pour le texte en caractères latins",
160
161
  alignment: "Alignement",
161
162
  indentation: "Retrait",
162
163
  left: "Gauche",
@@ -254,5 +255,4 @@ const locale = { "docs-ui": {
254
255
  }
255
256
  } };
256
257
 
257
- //#endregion
258
258
  export { locale as default };
@@ -1,4 +1,4 @@
1
- //#region src/locale/id-ID.ts
1
+ // src/locale/id-ID.ts
2
2
  const locale = { "docs-ui": {
3
3
  pasteOptions: {
4
4
  special: "Tempel khusus",
@@ -157,6 +157,7 @@ const locale = { "docs-ui": {
157
157
  sectionSetting: "Pengaturan bagian"
158
158
  },
159
159
  paragraphSetting: {
160
+ wordWrap: "Perbolehkan teks Latin untuk dibungkus di tengah kata",
160
161
  alignment: "Perataan",
161
162
  indentation: "Indentasi",
162
163
  left: "Kiri",
@@ -254,5 +255,4 @@ const locale = { "docs-ui": {
254
255
  }
255
256
  } };
256
257
 
257
- //#endregion
258
258
  export { locale as default };
@@ -1,4 +1,4 @@
1
- //#region src/locale/it-IT.ts
1
+ // src/locale/it-IT.ts
2
2
  const locale = { "docs-ui": {
3
3
  pasteOptions: {
4
4
  special: "Incolla speciale",
@@ -157,6 +157,7 @@ const locale = { "docs-ui": {
157
157
  sectionSetting: "Impostazioni sezione"
158
158
  },
159
159
  paragraphSetting: {
160
+ wordWrap: "Consenti sillabazione testo in alfabeto latino",
160
161
  alignment: "Allineamento",
161
162
  indentation: "Rientro",
162
163
  left: "Sinistra",
@@ -254,5 +255,4 @@ const locale = { "docs-ui": {
254
255
  }
255
256
  } };
256
257
 
257
- //#endregion
258
258
  export { locale as default };
@@ -1,4 +1,4 @@
1
- //#region src/locale/ja-JP.ts
1
+ // src/locale/ja-JP.ts
2
2
  const locale = { "docs-ui": {
3
3
  pasteOptions: {
4
4
  special: "形式を選択して貼り付け",
@@ -157,6 +157,7 @@ const locale = { "docs-ui": {
157
157
  sectionSetting: "セクション設定"
158
158
  },
159
159
  paragraphSetting: {
160
+ wordWrap: "英単語の途中で改行する",
160
161
  alignment: "配置",
161
162
  indentation: "インデント",
162
163
  left: "左",
@@ -254,5 +255,4 @@ const locale = { "docs-ui": {
254
255
  }
255
256
  } };
256
257
 
257
- //#endregion
258
258
  export { locale as default };
@@ -1,4 +1,4 @@
1
- //#region src/locale/ko-KR.ts
1
+ // src/locale/ko-KR.ts
2
2
  const locale = { "docs-ui": {
3
3
  pasteOptions: {
4
4
  special: "선택하여 붙여넣기",
@@ -157,6 +157,7 @@ const locale = { "docs-ui": {
157
157
  sectionSetting: "구역 설정"
158
158
  },
159
159
  paragraphSetting: {
160
+ wordWrap: "영어 단어 잘림 허용",
160
161
  alignment: "정렬",
161
162
  indentation: "들여쓰기",
162
163
  left: "왼쪽",
@@ -254,5 +255,4 @@ const locale = { "docs-ui": {
254
255
  }
255
256
  } };
256
257
 
257
- //#endregion
258
258
  export { locale as default };
@@ -1,4 +1,4 @@
1
- //#region src/locale/pl-PL.ts
1
+ // src/locale/pl-PL.ts
2
2
  const locale = { "docs-ui": {
3
3
  pasteOptions: {
4
4
  special: "Wklej specjalnie",
@@ -157,6 +157,7 @@ const locale = { "docs-ui": {
157
157
  sectionSetting: "Ustawienia sekcji"
158
158
  },
159
159
  paragraphSetting: {
160
+ wordWrap: "Zezwalaj na zawijanie tekstu łacińskiego w środku wyrazu",
160
161
  alignment: "Wyrównanie",
161
162
  indentation: "Wcięcie",
162
163
  left: "Lewe",
@@ -254,5 +255,4 @@ const locale = { "docs-ui": {
254
255
  }
255
256
  } };
256
257
 
257
- //#endregion
258
258
  export { locale as default };
@@ -1,4 +1,4 @@
1
- //#region src/locale/pt-BR.ts
1
+ // src/locale/pt-BR.ts
2
2
  const locale = { "docs-ui": {
3
3
  pasteOptions: {
4
4
  special: "Colar especial",
@@ -157,6 +157,7 @@ const locale = { "docs-ui": {
157
157
  sectionSetting: "Configurações da seção"
158
158
  },
159
159
  paragraphSetting: {
160
+ wordWrap: "Permitir quebra de texto latino no meio de uma palavra",
160
161
  alignment: "Alinhamento",
161
162
  indentation: "Recuo",
162
163
  left: "Esquerda",
@@ -254,5 +255,4 @@ const locale = { "docs-ui": {
254
255
  }
255
256
  } };
256
257
 
257
- //#endregion
258
258
  export { locale as default };
@@ -1,4 +1,4 @@
1
- //#region src/locale/ru-RU.ts
1
+ // src/locale/ru-RU.ts
2
2
  const locale = { "docs-ui": {
3
3
  pasteOptions: {
4
4
  special: "Специальная вставка",
@@ -157,6 +157,7 @@ const locale = { "docs-ui": {
157
157
  sectionSetting: "Параметры раздела"
158
158
  },
159
159
  paragraphSetting: {
160
+ wordWrap: "Разрешить перенос английского текста в середине слова",
160
161
  alignment: "Выравнивание",
161
162
  indentation: "Отступ",
162
163
  left: "Левый",
@@ -254,5 +255,4 @@ const locale = { "docs-ui": {
254
255
  }
255
256
  } };
256
257
 
257
- //#endregion
258
258
  export { locale as default };
@@ -1,4 +1,4 @@
1
- //#region src/locale/sk-SK.ts
1
+ // src/locale/sk-SK.ts
2
2
  const locale = { "docs-ui": {
3
3
  pasteOptions: {
4
4
  special: "Prilepiť špeciálne",
@@ -157,6 +157,7 @@ const locale = { "docs-ui": {
157
157
  sectionSetting: "Nastavenia sekcie"
158
158
  },
159
159
  paragraphSetting: {
160
+ wordWrap: "Povoliť zalamovanie textu v latinke v strede slova",
160
161
  alignment: "Zarovnanie",
161
162
  indentation: "Odsadenie",
162
163
  left: "Vľavo",
@@ -254,5 +255,4 @@ const locale = { "docs-ui": {
254
255
  }
255
256
  } };
256
257
 
257
- //#endregion
258
258
  export { locale as default };
@@ -1,4 +1,4 @@
1
- //#region src/locale/vi-VN.ts
1
+ // src/locale/vi-VN.ts
2
2
  const locale = { "docs-ui": {
3
3
  pasteOptions: {
4
4
  special: "Dán đặc biệt",
@@ -157,6 +157,7 @@ const locale = { "docs-ui": {
157
157
  sectionSetting: "Cài đặt phần"
158
158
  },
159
159
  paragraphSetting: {
160
+ wordWrap: "Cho phép ngắt dòng văn bản Latinh ở giữa từ",
160
161
  alignment: "Căn chỉnh",
161
162
  indentation: "Thụt lề",
162
163
  left: "Trái",
@@ -254,5 +255,4 @@ const locale = { "docs-ui": {
254
255
  }
255
256
  } };
256
257
 
257
- //#endregion
258
258
  export { locale as default };
@@ -1,4 +1,4 @@
1
- //#region src/locale/zh-CN.ts
1
+ // src/locale/zh-CN.ts
2
2
  const locale = { "docs-ui": {
3
3
  pasteOptions: {
4
4
  special: "选择性粘贴",
@@ -157,6 +157,7 @@ const locale = { "docs-ui": {
157
157
  sectionSetting: "节设置"
158
158
  },
159
159
  paragraphSetting: {
160
+ wordWrap: "允许西文在单词中间换行",
160
161
  alignment: "对齐方式",
161
162
  indentation: "缩进",
162
163
  left: "左边距",
@@ -254,5 +255,4 @@ const locale = { "docs-ui": {
254
255
  }
255
256
  } };
256
257
 
257
- //#endregion
258
258
  export { locale as default };
@@ -1,4 +1,4 @@
1
- //#region src/locale/zh-HK.ts
1
+ // src/locale/zh-HK.ts
2
2
  const locale = { "docs-ui": {
3
3
  pasteOptions: {
4
4
  special: "選擇性貼上",
@@ -157,6 +157,7 @@ const locale = { "docs-ui": {
157
157
  sectionSetting: "節設定"
158
158
  },
159
159
  paragraphSetting: {
160
+ wordWrap: "允許英文字元在字中換行",
160
161
  alignment: "對齊",
161
162
  indentation: "縮排",
162
163
  left: "左",
@@ -254,5 +255,4 @@ const locale = { "docs-ui": {
254
255
  }
255
256
  } };
256
257
 
257
- //#endregion
258
258
  export { locale as default };
@@ -1,4 +1,4 @@
1
- //#region src/locale/zh-TW.ts
1
+ // src/locale/zh-TW.ts
2
2
  const locale = { "docs-ui": {
3
3
  pasteOptions: {
4
4
  special: "選擇性貼上",
@@ -157,6 +157,7 @@ const locale = { "docs-ui": {
157
157
  sectionSetting: "節設定"
158
158
  },
159
159
  paragraphSetting: {
160
+ wordWrap: "允許英文字元在字中換行",
160
161
  alignment: "對齊方式",
161
162
  indentation: "縮排",
162
163
  left: "左",
@@ -254,5 +255,4 @@ const locale = { "docs-ui": {
254
255
  }
255
256
  } };
256
257
 
257
- //#endregion
258
258
  export { locale as default };
@@ -15,6 +15,6 @@
15
15
  */
16
16
  import type { ICommand, IParagraphStyle } from '@univerjs/core';
17
17
  export interface IDocParagraphSettingCommandParams {
18
- paragraph?: Partial<Pick<IParagraphStyle, 'hanging' | 'horizontalAlign' | 'spaceBelow' | 'spaceAbove' | 'indentEnd' | 'indentStart' | 'lineSpacing' | 'indentFirstLine' | 'snapToGrid' | 'spacingRule'>>;
18
+ paragraph?: Partial<Pick<IParagraphStyle, 'hanging' | 'horizontalAlign' | 'spaceBelow' | 'spaceAbove' | 'indentEnd' | 'indentStart' | 'lineSpacing' | 'indentFirstLine' | 'snapToGrid' | 'spacingRule' | 'wordWrap'>>;
19
19
  }
20
20
  export declare const DocParagraphSettingCommand: ICommand<IDocParagraphSettingCommandParams>;
@@ -32,10 +32,10 @@ export declare function buildDocTableInsertBody(params: IDocTableInsertBodyParam
32
32
  paragraphs: IParagraph[];
33
33
  sectionBreaks: ISectionBreak[];
34
34
  textRuns: {
35
- st: number;
36
- ed: number;
37
35
  sId?: string;
38
36
  ts?: import("@univerjs/core").ITextStyle;
37
+ st: number;
38
+ ed: number;
39
39
  }[];
40
40
  tables: {
41
41
  startIndex: number;
@@ -19,7 +19,6 @@ export declare class ComponentsController extends Disposable {
19
19
  private readonly _componentManager;
20
20
  private readonly _iconManager;
21
21
  constructor(_componentManager: ComponentManager, _iconManager: IconManager);
22
- private _registerParts;
23
22
  private _registerIcons;
24
23
  private _registerComponents;
25
24
  }
@@ -19,7 +19,6 @@ export declare class MobileComponentsController extends Disposable {
19
19
  protected readonly _componentManager: ComponentManager;
20
20
  private readonly _iconManager;
21
21
  constructor(_componentManager: ComponentManager, _iconManager: IconManager);
22
- private _registerParts;
23
22
  private _registerIcons;
24
23
  protected _registerComponents(): void;
25
24
  }
@@ -180,6 +180,7 @@ declare const locale: {
180
180
  sectionSetting: string;
181
181
  };
182
182
  paragraphSetting: {
183
+ wordWrap: string;
183
184
  alignment: string;
184
185
  indentation: string;
185
186
  left: string;
@@ -13,12 +13,13 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
+ import { ContextMenuGroup, ContextMenuPosition } from '@univerjs/ui';
16
17
  import { DocPasteCommand, DocPasteSpecialCommand } from '../commands/commands/clipboard.command';
17
18
  import { DocSelectAllCommand, DocSelectWordCommand } from '../commands/commands/doc-select-all.command';
18
19
  import { PasteMenuFactory, PasteSpecialMenuFactory, SelectAllMenuFactory, SelectWordMenuFactory } from './context-menu';
19
20
  export declare const mobileMenuSchema: {
20
- "contextMenu.mainArea": {
21
- "contextMenu.quick": {
21
+ [ContextMenuPosition.MAIN_AREA]: {
22
+ [ContextMenuGroup.QUICK]: {
22
23
  [DocSelectWordCommand.id]: {
23
24
  order: number;
24
25
  menuItemFactory: typeof SelectWordMenuFactory;
@@ -30,7 +31,7 @@ export declare const mobileMenuSchema: {
30
31
  };
31
32
  };
32
33
  "docs.contextMenu.caret": {
33
- "contextMenu.quick": {
34
+ [ContextMenuGroup.QUICK]: {
34
35
  [DocPasteCommand.id]: {
35
36
  order: number;
36
37
  menuItemFactory: typeof PasteMenuFactory;
@@ -45,7 +46,7 @@ export declare const mobileMenuSchema: {
45
46
  };
46
47
  quickLayout: "tile";
47
48
  };
48
- "contextMenu.format": {
49
+ [ContextMenuGroup.FORMAT]: {
49
50
  [DocPasteSpecialCommand.id]: {
50
51
  order: number;
51
52
  menuItemFactory: typeof PasteSpecialMenuFactory;
@@ -17,8 +17,8 @@ import type { IAccessor } from '@univerjs/core';
17
17
  import type { IMenuButtonItem, IMenuItem, IMenuSelectorItem } from '@univerjs/ui';
18
18
  import type { LocaleKey } from '../locale/types';
19
19
  export declare const TEXT_COLORS: string[];
20
- export declare const TEXT_COLOR_SWATCH_ICONS: readonly ["DocParagraphTextColorSwatchIcon.0", "DocParagraphTextColorSwatchIcon.1", "DocParagraphTextColorSwatchIcon.2", "DocParagraphTextColorSwatchIcon.3", "DocParagraphTextColorSwatchIcon.4", "DocParagraphTextColorSwatchIcon.5", "DocParagraphTextColorSwatchIcon.6"];
21
- export declare const BACKGROUND_COLOR_SWATCH_ICONS: readonly ["DocParagraphBackgroundColorSwatchIcon.0", "DocParagraphBackgroundColorSwatchIcon.1", "DocParagraphBackgroundColorSwatchIcon.2", "DocParagraphBackgroundColorSwatchIcon.3", "DocParagraphBackgroundColorSwatchIcon.4", "DocParagraphBackgroundColorSwatchIcon.5", "DocParagraphBackgroundColorSwatchIcon.6", "DocParagraphBackgroundColorSwatchIcon.7", "DocParagraphBackgroundColorSwatchIcon.8", "DocParagraphBackgroundColorSwatchIcon.9", "DocParagraphBackgroundColorSwatchIcon.10", "DocParagraphBackgroundColorSwatchIcon.11", "DocParagraphBackgroundColorSwatchIcon.12", "DocParagraphBackgroundColorSwatchIcon.13", "DocParagraphBackgroundColorSwatchIcon.14"];
20
+ export declare const TEXT_COLOR_SWATCH_ICONS: readonly ['DocParagraphTextColorSwatchIcon.0', 'DocParagraphTextColorSwatchIcon.1', 'DocParagraphTextColorSwatchIcon.2', 'DocParagraphTextColorSwatchIcon.3', 'DocParagraphTextColorSwatchIcon.4', 'DocParagraphTextColorSwatchIcon.5', 'DocParagraphTextColorSwatchIcon.6'];
21
+ export declare const BACKGROUND_COLOR_SWATCH_ICONS: readonly ['DocParagraphBackgroundColorSwatchIcon.0', 'DocParagraphBackgroundColorSwatchIcon.1', 'DocParagraphBackgroundColorSwatchIcon.2', 'DocParagraphBackgroundColorSwatchIcon.3', 'DocParagraphBackgroundColorSwatchIcon.4', 'DocParagraphBackgroundColorSwatchIcon.5', 'DocParagraphBackgroundColorSwatchIcon.6', 'DocParagraphBackgroundColorSwatchIcon.7', 'DocParagraphBackgroundColorSwatchIcon.8', 'DocParagraphBackgroundColorSwatchIcon.9', 'DocParagraphBackgroundColorSwatchIcon.10', 'DocParagraphBackgroundColorSwatchIcon.11', 'DocParagraphBackgroundColorSwatchIcon.12', 'DocParagraphBackgroundColorSwatchIcon.13', 'DocParagraphBackgroundColorSwatchIcon.14'];
22
22
  export declare function H1HeadingMenuItemFactory(accessor: IAccessor): IMenuItem<LocaleKey>;
23
23
  export declare function H2HeadingMenuItemFactory(accessor: IAccessor): IMenuItem<LocaleKey>;
24
24
  export declare function H3HeadingMenuItemFactory(accessor: IAccessor): IMenuItem<LocaleKey>;
@@ -82,7 +82,7 @@ export interface IDocClipboardService {
82
82
  addClipboardHook(hook: IDocClipboardHook): IDisposable;
83
83
  }
84
84
  export declare function getTableClipboardBodySlice(body: IDocumentBody, range: IRectRangeWithStyle): IDocumentBody;
85
- export declare const IDocClipboardService: import("@wendellhu/redi").IdentifierDecorator<IDocClipboardService>;
85
+ export declare const IDocClipboardService: import("@univerjs/core").IdentifierDecorator<IDocClipboardService>;
86
86
  export declare class DocClipboardService extends Disposable implements IDocClipboardService {
87
87
  private readonly _univerInstanceService;
88
88
  private readonly _logService;
@@ -49,7 +49,7 @@ export interface IDocClipboardPasteAdapterService {
49
49
  registerAdapter(adapter: IDocClipboardPasteAdapter): IDisposable;
50
50
  getPasteMutationInfos(params: IDocClipboardPasteMutationInfoParams): IDocClipboardPasteMutationInfos;
51
51
  }
52
- export declare const IDocClipboardPasteAdapterService: import("@wendellhu/redi").IdentifierDecorator<IDocClipboardPasteAdapterService>;
52
+ export declare const IDocClipboardPasteAdapterService: import("@univerjs/core").IdentifierDecorator<IDocClipboardPasteAdapterService>;
53
53
  export declare class DocClipboardPasteAdapterService implements IDocClipboardPasteAdapterService {
54
54
  private readonly _adapters;
55
55
  registerAdapter(adapter: IDocClipboardPasteAdapter): IDisposable;
@@ -20,14 +20,14 @@ export interface IDocPasteStyle {
20
20
  paragraphStyle?: IParagraphStyle;
21
21
  }
22
22
  export declare const DOC_PASTE_OPTIONS: readonly [{
23
- readonly value: "source";
24
- readonly label: "docs-ui.pasteOptions.source";
23
+ readonly value: 'source';
24
+ readonly label: 'docs-ui.pasteOptions.source';
25
25
  }, {
26
- readonly value: "destination";
27
- readonly label: "docs-ui.pasteOptions.destination";
26
+ readonly value: 'destination';
27
+ readonly label: 'docs-ui.pasteOptions.destination';
28
28
  }, {
29
- readonly value: "text";
30
- readonly label: "docs-ui.pasteOptions.text";
29
+ readonly value: 'text';
30
+ readonly label: 'docs-ui.pasteOptions.text';
31
31
  }];
32
32
  export declare function getClipboardPlainText(doc: Partial<IDocumentData>): string;
33
33
  export declare function applyDocPasteMode(source: Partial<IDocumentData>, mode: DocPasteMode, style: IDocPasteStyle, text?: string): Partial<IDocumentData>;
@@ -20,6 +20,6 @@ export declare function getBodySliceHtml(doc: IDocumentData, startIndex: number,
20
20
  export declare function convertBodyToHtml(doc: IDocumentData): string;
21
21
  export declare class UDMToHtmlService {
22
22
  private readonly _docHtmlExportService?;
23
- constructor(_docHtmlExportService?: Pick<DocHtmlExportService, "transformDocumentForHtmlExport"> | undefined);
23
+ constructor(_docHtmlExportService?: Pick<DocHtmlExportService, 'transformDocumentForHtmlExport'> | undefined);
24
24
  convert(docList: IDocumentData[]): string;
25
25
  }
@@ -26,4 +26,4 @@ export interface IResolvedDocRenderBackground {
26
26
  docBackgroundFillColor?: string;
27
27
  }
28
28
  export declare function resolveDocRenderBackground(options: IResolveDocRenderBackgroundOptions): IResolvedDocRenderBackground;
29
- export declare function getDefaultDocCanvasBackgroundColor(documentFlavor?: DocumentFlavor, isEditor?: boolean): "transparent" | "var(--univer-gray-100)" | "var(--univer-gray-0)";
29
+ export declare function getDefaultDocCanvasBackgroundColor(documentFlavor?: DocumentFlavor, isEditor?: boolean): "transparent" | "var(--univer-gray-0)" | "var(--univer-gray-100)";
@@ -85,4 +85,4 @@ export declare class EditorService extends Disposable implements IEditorService,
85
85
  private _getCurrentEditorUnitId;
86
86
  private _getBlank;
87
87
  }
88
- export declare const IEditorService: import("@wendellhu/redi").IdentifierDecorator<IEditorService>;
88
+ export declare const IEditorService: import("@univerjs/core").IdentifierDecorator<IEditorService>;
@@ -122,9 +122,9 @@ export declare class Editor extends Disposable implements IEditor {
122
122
  dispose(disposeDocument?: boolean): void;
123
123
  get cancelDefaultResizeListener(): boolean | undefined;
124
124
  getRenderConfig(): {
125
- backScrollOffset?: number | undefined;
126
125
  canvasStyle: IEditorCanvasStyle;
127
126
  scrollBar: boolean | undefined;
127
+ backScrollOffset?: number | undefined;
128
128
  };
129
129
  get render(): IRender;
130
130
  isReadOnly(): boolean;
@@ -63,10 +63,10 @@ export declare class TextRange implements IDocRange {
63
63
  get segmentId(): string;
64
64
  get segmentPage(): number;
65
65
  getAbsolutePosition(): {
66
- left: number;
67
- top: number;
68
66
  width: number;
69
67
  height: number;
68
+ left: number;
69
+ top: number;
70
70
  } | undefined;
71
71
  getAnchor(): Nullable<Rect<import("@univerjs/engine-render").IRectProps>>;
72
72
  activeStatic(): void;
@@ -14,4 +14,4 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import type { IDocHeaderFooterOptionsProps } from './DocHeaderFooterOptions';
17
- export declare const DocHeaderFooterPanel: (props: Pick<IDocHeaderFooterOptionsProps, "ContentComponent">) => import("react").JSX.Element;
17
+ export declare const DocHeaderFooterPanel: (props: Pick<IDocHeaderFooterOptionsProps, 'ContentComponent'>) => import("react").JSX.Element;
@@ -19,7 +19,7 @@ export declare function useHeaderFooterOptions(unitId: string): {
19
19
  linkedToPrevious: boolean;
20
20
  options: IHeaderFooterProps;
21
21
  handleLinkToPreviousChange: (linked: boolean) => Promise<void>;
22
- handleCheckboxChange: (val: boolean, type: "useFirstPageHeaderFooter" | "evenAndOddHeaders") => Promise<void>;
23
- handleMarginChange: (val: number, type: "marginHeader" | "marginFooter") => Promise<void>;
22
+ handleCheckboxChange: (val: boolean, type: 'useFirstPageHeaderFooter' | 'evenAndOddHeaders') => Promise<void>;
23
+ handleMarginChange: (val: number, type: 'marginHeader' | 'marginFooter') => Promise<void>;
24
24
  closeHeaderFooter: () => Promise<boolean>;
25
25
  };
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export declare function ParagraphWordWrapSetting(): import("react").JSX.Element;
@@ -16,7 +16,6 @@
16
16
  import type { IDocumentBody, IDocumentStyle, IParagraph } from '@univerjs/core';
17
17
  import { SpacingRule } from '@univerjs/core';
18
18
  export declare function resolveParagraphsForSettingPanel(paragraphs: IParagraph[], body: IDocumentBody, documentStyle: IDocumentStyle): {
19
- paragraphStyle: import("@univerjs/core").IParagraphStyle;
20
19
  startIndex: number;
21
20
  paragraphId: string;
22
21
  headingCollapsed?: boolean;
@@ -24,9 +23,9 @@ export declare function resolveParagraphsForSettingPanel(paragraphs: IParagraph[
24
23
  bullet?: import("@univerjs/core").IBullet;
25
24
  sourceBullet?: import("@univerjs/core").IBullet | null;
26
25
  directBullet?: import("@univerjs/core").IBullet | null;
26
+ paragraphStyle: import("@univerjs/core").IParagraphStyle;
27
27
  }[];
28
28
  export declare const useCurrentParagraph: () => import("@univerjs/core").IParagraphRange[] | {
29
- paragraphStyle: import("@univerjs/core").IParagraphStyle;
30
29
  startIndex: number;
31
30
  paragraphId: string;
32
31
  headingCollapsed?: boolean;
@@ -34,6 +33,7 @@ export declare const useCurrentParagraph: () => import("@univerjs/core").IParagr
34
33
  bullet?: import("@univerjs/core").IBullet;
35
34
  sourceBullet?: import("@univerjs/core").IBullet | null;
36
35
  directBullet?: import("@univerjs/core").IBullet | null;
36
+ paragraphStyle: import("@univerjs/core").IParagraphStyle;
37
37
  }[];
38
38
  export declare const useFirstParagraphHorizontalAlign: (paragraph: IParagraph[], defaultValue: string) => readonly [string, (v: string) => Promise<boolean>];
39
39
  export declare const useFirstParagraphIndentStart: (paragraph: IParagraph[]) => readonly [number, (v: number) => Promise<boolean>];