@univerjs/docs-ui 0.17.0 → 0.18.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 (199) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +53 -19
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/en-US.js +1 -1
  5. package/lib/cjs/locale/es-ES.js +1 -1
  6. package/lib/cjs/locale/fa-IR.js +1 -1
  7. package/lib/cjs/locale/fr-FR.js +1 -1
  8. package/lib/cjs/locale/ja-JP.js +1 -1
  9. package/lib/cjs/locale/ko-KR.js +1 -1
  10. package/lib/cjs/locale/ru-RU.js +1 -1
  11. package/lib/cjs/locale/sk-SK.js +1 -1
  12. package/lib/cjs/locale/vi-VN.js +1 -1
  13. package/lib/cjs/locale/zh-CN.js +1 -1
  14. package/lib/cjs/locale/zh-TW.js +1 -1
  15. package/lib/es/facade.js +1 -105
  16. package/lib/es/index.js +53 -13499
  17. package/lib/es/locale/ca-ES.js +1 -125
  18. package/lib/es/locale/en-US.js +1 -125
  19. package/lib/es/locale/es-ES.js +1 -125
  20. package/lib/es/locale/fa-IR.js +1 -125
  21. package/lib/es/locale/fr-FR.js +1 -125
  22. package/lib/es/locale/ja-JP.js +1 -125
  23. package/lib/es/locale/ko-KR.js +1 -125
  24. package/lib/es/locale/ru-RU.js +1 -125
  25. package/lib/es/locale/sk-SK.js +1 -125
  26. package/lib/es/locale/vi-VN.js +1 -125
  27. package/lib/es/locale/zh-CN.js +1 -125
  28. package/lib/es/locale/zh-TW.js +1 -125
  29. package/lib/facade.js +1 -105
  30. package/lib/index.css +478 -1
  31. package/lib/index.js +53 -13499
  32. package/lib/locale/ca-ES.js +1 -125
  33. package/lib/locale/en-US.js +1 -125
  34. package/lib/locale/es-ES.js +1 -125
  35. package/lib/locale/fa-IR.js +1 -125
  36. package/lib/locale/fr-FR.js +1 -125
  37. package/lib/locale/ja-JP.js +1 -125
  38. package/lib/locale/ko-KR.js +1 -125
  39. package/lib/locale/ru-RU.js +1 -125
  40. package/lib/locale/sk-SK.js +1 -125
  41. package/lib/locale/vi-VN.js +1 -125
  42. package/lib/locale/zh-CN.js +1 -125
  43. package/lib/locale/zh-TW.js +1 -125
  44. package/lib/types/basics/component-tools.d.ts +17 -2
  45. package/lib/types/basics/custom-decoration-factory.d.ts +18 -3
  46. package/lib/types/basics/paragraph.d.ts +16 -1
  47. package/lib/types/basics/selection.d.ts +16 -1
  48. package/lib/types/basics/table.d.ts +17 -2
  49. package/lib/types/basics/transform-position.d.ts +16 -1
  50. package/lib/types/commands/commands/auto-format.command.d.ts +16 -1
  51. package/lib/types/commands/commands/break-line.command.d.ts +16 -1
  52. package/lib/types/commands/commands/clipboard.command.d.ts +17 -1
  53. package/lib/types/commands/commands/clipboard.inner.command.d.ts +17 -2
  54. package/lib/types/commands/commands/core-editing.command.d.ts +17 -2
  55. package/lib/types/commands/commands/doc-delete.command.d.ts +17 -2
  56. package/lib/types/commands/commands/doc-header-footer.command.d.ts +17 -1
  57. package/lib/types/commands/commands/doc-horizontal-line.command.d.ts +16 -1
  58. package/lib/types/commands/commands/doc-page-setup.command.d.ts +16 -1
  59. package/lib/types/commands/commands/doc-paragraph-setting.command.d.ts +16 -1
  60. package/lib/types/commands/commands/doc-select-all.command.d.ts +16 -1
  61. package/lib/types/commands/commands/ime-input.command.d.ts +16 -1
  62. package/lib/types/commands/commands/inline-format.command.d.ts +17 -2
  63. package/lib/types/commands/commands/insert-below/insert-bullet-below.command.d.ts +16 -1
  64. package/lib/types/commands/commands/insert-custom-range.command.d.ts +17 -2
  65. package/lib/types/commands/commands/list.command.d.ts +18 -2
  66. package/lib/types/commands/commands/paragraph-align.command.d.ts +17 -1
  67. package/lib/types/commands/commands/replace-content.command.d.ts +17 -2
  68. package/lib/types/commands/commands/set-doc-zoom-ratio.command.d.ts +16 -1
  69. package/lib/types/commands/commands/set-heading.command.d.ts +17 -1
  70. package/lib/types/commands/commands/switch-doc-mode.command.d.ts +16 -1
  71. package/lib/types/commands/commands/table/doc-table-create.command.d.ts +16 -1
  72. package/lib/types/commands/commands/table/doc-table-delete.command.d.ts +16 -1
  73. package/lib/types/commands/commands/table/doc-table-insert.command.d.ts +16 -1
  74. package/lib/types/commands/commands/table/doc-table-tab.command.d.ts +16 -1
  75. package/lib/types/commands/commands/table/table.d.ts +17 -2
  76. package/lib/types/commands/commands/util.d.ts +17 -2
  77. package/lib/types/commands/operations/doc-create-table.operation.d.ts +16 -1
  78. package/lib/types/commands/operations/doc-cursor.operation.d.ts +16 -1
  79. package/lib/types/commands/operations/doc-header-footer-panel.operation.d.ts +16 -1
  80. package/lib/types/commands/operations/doc-paragraph-setting-panel.operation.d.ts +16 -1
  81. package/lib/types/commands/operations/open-page-setting.operation.d.ts +16 -1
  82. package/lib/types/commands/operations/set-doc-zoom-ratio.operation.d.ts +16 -1
  83. package/lib/types/commands/util.d.ts +16 -1
  84. package/lib/types/components/editor/utils.d.ts +16 -1
  85. package/lib/types/components/float-toolbar/FloatToolbar.stories.d.ts +16 -1
  86. package/lib/types/components/list-type-picker/picker.d.ts +15 -0
  87. package/lib/types/components/paragraph-menu/index.d.ts +16 -1
  88. package/lib/types/components/side-menu/SideMenu.stories.d.ts +16 -1
  89. package/lib/types/components/side-menu/index.d.ts +1 -1
  90. package/lib/types/config/config.d.ts +19 -4
  91. package/lib/types/controllers/doc-auto-format.controller.d.ts +15 -0
  92. package/lib/types/controllers/doc-header-footer.controller.d.ts +19 -2
  93. package/lib/types/controllers/doc-move-cursor.controller.d.ts +15 -0
  94. package/lib/types/controllers/doc-paragraph-setting.controller.d.ts +15 -0
  95. package/lib/types/controllers/doc-table.controller.d.ts +15 -0
  96. package/lib/types/controllers/doc-ui.controller.d.ts +15 -0
  97. package/lib/types/controllers/render-controllers/back-scroll.render-controller.d.ts +18 -2
  98. package/lib/types/controllers/render-controllers/doc-checklist.render-controller.d.ts +18 -2
  99. package/lib/types/controllers/render-controllers/doc-clipboard.controller.d.ts +18 -2
  100. package/lib/types/controllers/render-controllers/doc-contextmenu.render-controller.d.ts +18 -2
  101. package/lib/types/controllers/render-controllers/doc-editor-bridge.controller.d.ts +19 -2
  102. package/lib/types/controllers/render-controllers/doc-ime-input.controller.d.ts +18 -2
  103. package/lib/types/controllers/render-controllers/doc-input.controller.d.ts +18 -2
  104. package/lib/types/controllers/render-controllers/doc-resize.render-controller.d.ts +16 -1
  105. package/lib/types/controllers/render-controllers/doc-selection-render.controller.d.ts +18 -2
  106. package/lib/types/controllers/render-controllers/doc.render-controller.d.ts +19 -2
  107. package/lib/types/controllers/render-controllers/zoom.render-controller.d.ts +19 -2
  108. package/lib/types/facade/f-document.d.ts +17 -1
  109. package/lib/types/facade/f-univer.d.ts +16 -1
  110. package/lib/types/index.d.ts +0 -1
  111. package/lib/types/locale/ca-ES.d.ts +16 -1
  112. package/lib/types/locale/es-ES.d.ts +16 -1
  113. package/lib/types/locale/fa-IR.d.ts +16 -1
  114. package/lib/types/locale/fr-FR.d.ts +16 -1
  115. package/lib/types/locale/ja-JP.d.ts +16 -1
  116. package/lib/types/locale/ko-KR.d.ts +16 -1
  117. package/lib/types/locale/ru-RU.d.ts +16 -1
  118. package/lib/types/locale/sk-SK.d.ts +16 -1
  119. package/lib/types/locale/vi-VN.d.ts +16 -1
  120. package/lib/types/locale/zh-CN.d.ts +16 -1
  121. package/lib/types/locale/zh-TW.d.ts +16 -1
  122. package/lib/types/menu/context-menu.d.ts +17 -2
  123. package/lib/types/menu/menu.d.ts +18 -3
  124. package/lib/types/menu/paragraph-menu.d.ts +18 -2
  125. package/lib/types/menu/schema.d.ts +16 -1
  126. package/lib/types/plugin.d.ts +16 -2
  127. package/lib/types/services/clipboard/clipboard.service.d.ts +19 -3
  128. package/lib/types/services/clipboard/copy-content-cache.d.ts +16 -1
  129. package/lib/types/services/clipboard/html-to-udm/converter.d.ts +17 -2
  130. package/lib/types/services/clipboard/html-to-udm/parse-node-style.d.ts +16 -1
  131. package/lib/types/services/clipboard/html-to-udm/paste-plugins/plugin-lark.d.ts +16 -1
  132. package/lib/types/services/clipboard/html-to-udm/paste-plugins/plugin-univer.d.ts +16 -1
  133. package/lib/types/services/clipboard/html-to-udm/paste-plugins/plugin-word.d.ts +16 -1
  134. package/lib/types/services/clipboard/html-to-udm/paste-plugins/type.d.ts +16 -1
  135. package/lib/types/services/clipboard/html-to-udm/utils.d.ts +16 -1
  136. package/lib/types/services/clipboard/udm-to-html/convertor.d.ts +16 -1
  137. package/lib/types/services/doc-auto-format.service.d.ts +18 -2
  138. package/lib/types/services/doc-event-manager.service.d.ts +30 -14
  139. package/lib/types/services/doc-ime-input-manager.service.d.ts +19 -3
  140. package/lib/types/services/doc-menu-style.service.d.ts +17 -1
  141. package/lib/types/services/doc-page-layout.service.d.ts +18 -2
  142. package/lib/types/services/doc-paragraph-menu.service.d.ts +20 -3
  143. package/lib/types/services/doc-popup-manager.service.d.ts +21 -3
  144. package/lib/types/services/doc-print-interceptor-service.d.ts +20 -4
  145. package/lib/types/services/doc-state-change-manager.service.d.ts +20 -3
  146. package/lib/types/services/docs-render.service.d.ts +15 -0
  147. package/lib/types/services/editor/editor-manager.service.d.ts +23 -5
  148. package/lib/types/services/editor/editor.d.ts +24 -7
  149. package/lib/types/services/float-menu.service.d.ts +18 -2
  150. package/lib/types/services/selection/convert-rect-range.d.ts +17 -2
  151. package/lib/types/services/selection/convert-text-range.d.ts +17 -2
  152. package/lib/types/services/selection/doc-selection-render.service.d.ts +33 -17
  153. package/lib/types/services/selection/range-interface.d.ts +17 -2
  154. package/lib/types/services/selection/rect-range.d.ts +19 -3
  155. package/lib/types/services/selection/selection-utils.d.ts +33 -3
  156. package/lib/types/services/selection/text-range.d.ts +21 -4
  157. package/lib/types/shortcuts/core-editing.shortcut.d.ts +16 -1
  158. package/lib/types/shortcuts/cursor.shortcut.d.ts +16 -1
  159. package/lib/types/shortcuts/format.shortcut.d.ts +16 -1
  160. package/lib/types/shortcuts/toolbar.shortcut.d.ts +16 -1
  161. package/lib/types/shortcuts/utils.d.ts +16 -1
  162. package/lib/types/views/doc-footer/DocFooter.d.ts +1 -1
  163. package/lib/types/views/header-footer/text-bubble.d.ts +17 -1
  164. package/lib/types/views/page-settings/index.d.ts +16 -1
  165. package/lib/types/views/paragraph-setting/hook/utils.d.ts +18 -2
  166. package/lib/types/views/rich-text-editor/hooks/use-editor.d.ts +18 -3
  167. package/lib/types/views/rich-text-editor/hooks/use-keyboard-event.d.ts +17 -2
  168. package/lib/types/views/rich-text-editor/hooks/use-left-and-right-arrow.d.ts +16 -1
  169. package/lib/types/views/rich-text-editor/hooks/use-on-change.d.ts +17 -2
  170. package/lib/types/views/rich-text-editor/hooks/use-resize.d.ts +16 -1
  171. package/lib/types/views/rich-text-editor/index.d.ts +19 -4
  172. package/lib/umd/facade.js +1 -1
  173. package/lib/umd/index.js +53 -19
  174. package/lib/umd/locale/ca-ES.js +1 -1
  175. package/lib/umd/locale/en-US.js +1 -1
  176. package/lib/umd/locale/es-ES.js +1 -1
  177. package/lib/umd/locale/fa-IR.js +1 -1
  178. package/lib/umd/locale/fr-FR.js +1 -1
  179. package/lib/umd/locale/ja-JP.js +1 -1
  180. package/lib/umd/locale/ko-KR.js +1 -1
  181. package/lib/umd/locale/ru-RU.js +1 -1
  182. package/lib/umd/locale/sk-SK.js +1 -1
  183. package/lib/umd/locale/vi-VN.js +1 -1
  184. package/lib/umd/locale/zh-CN.js +1 -1
  185. package/lib/umd/locale/zh-TW.js +1 -1
  186. package/package.json +13 -12
  187. package/lib/types/basics/const/default-univer-doc-config.d.ts +0 -45
  188. package/lib/types/basics/const/index.d.ts +0 -17
  189. package/lib/types/basics/const/plugin-name.d.ts +0 -16
  190. package/lib/types/basics/index.d.ts +0 -17
  191. package/lib/types/basics/interfaces/component-config/i-doc-ui-plugin-config.d.ts +0 -59
  192. package/lib/types/basics/interfaces/component-config/index.d.ts +0 -16
  193. package/lib/types/basics/interfaces/index.d.ts +0 -16
  194. package/lib/types/controllers/app-ui-controller.d.ts +0 -6
  195. package/lib/types/controllers/doc-container-ui-controller.d.ts +0 -28
  196. package/lib/types/controllers/index.d.ts +0 -17
  197. package/lib/types/services/clipboard/__test__/html-and-udm-convert.spec.d.ts +0 -16
  198. package/lib/types/services/clipboard/udm-to-html/__test__/convertor.spec.d.ts +0 -16
  199. package/lib/types/views/doc-container/DocContainer.d.ts +0 -57
@@ -1,6 +1,24 @@
1
- import { INeedCheckDisposable, ITextRangeParam, Disposable, ICommandService, IUniverInstanceService } from '@univerjs/core';
2
- import { BaseObject, IBoundRectNoAngle, IRender, Scene, IRenderManagerService } from '@univerjs/engine-render';
3
- import { IPopup, ICanvasPopupService } from '@univerjs/ui';
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
+ import type { INeedCheckDisposable, ITextRangeParam } from '@univerjs/core';
17
+ import type { BaseObject, IBoundRectNoAngle, IRender, Scene } from '@univerjs/engine-render';
18
+ import type { IPopup } from '@univerjs/ui';
19
+ import { Disposable, ICommandService, IUniverInstanceService } from '@univerjs/core';
20
+ import { IRenderManagerService } from '@univerjs/engine-render';
21
+ import { ICanvasPopupService } from '@univerjs/ui';
4
22
  export declare function transformBound2OffsetBound(originBound: IBoundRectNoAngle, scene: Scene): IBoundRectNoAngle;
5
23
  export declare function transformPosition2Offset(x: number, y: number, scene: Scene): {
6
24
  x: number;
@@ -1,5 +1,21 @@
1
- import { DisposableCollection, Disposable, InterceptorManager } from '@univerjs/core';
2
- import { Documents, DocumentSkeleton, Engine, IBoundRectNoAngle, Scene } from '@univerjs/engine-render';
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
+ import type { DisposableCollection } from '@univerjs/core';
17
+ import type { Documents, DocumentSkeleton, Engine, IBoundRectNoAngle, Scene } from '@univerjs/engine-render';
18
+ import { Disposable, InterceptorManager } from '@univerjs/core';
3
19
  export interface IDocPrintContext {
4
20
  unitId: string;
5
21
  scene: Scene;
@@ -20,8 +36,8 @@ export interface IDocPrintComponentContext extends IDocPrintContext {
20
36
  export declare class DocPrintInterceptorService extends Disposable {
21
37
  private _printComponentMap;
22
38
  readonly interceptor: InterceptorManager<{
23
- PRINTING_COMPONENT_COLLECT: import('@univerjs/core').IInterceptor<undefined, IDocPrintComponentContext>;
24
- PRINTING_DOM_COLLECT: import('@univerjs/core').IInterceptor<DisposableCollection, IDocPrintDomtContext>;
39
+ PRINTING_COMPONENT_COLLECT: import("@univerjs/core").IInterceptor<undefined, IDocPrintComponentContext>;
40
+ PRINTING_DOM_COLLECT: import("@univerjs/core").IInterceptor<DisposableCollection, IDocPrintDomtContext>;
25
41
  }>;
26
42
  constructor();
27
43
  registerPrintComponent(componentKey: string, printingComponentKey: string): void;
@@ -1,5 +1,22 @@
1
- import { Nullable, ICommandService, IUndoRedoService, IUniverInstanceService, RxDisposable } from '@univerjs/core';
2
- import { IDocStateChangeParams, DocStateEmitService } from '@univerjs/docs';
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
+ import type { Nullable } from '@univerjs/core';
17
+ import type { IDocStateChangeParams } from '@univerjs/docs';
18
+ import { ICommandService, IUndoRedoService, IUniverInstanceService, RxDisposable } from '@univerjs/core';
19
+ import { DocStateEmitService } from '@univerjs/docs';
3
20
  import { IRenderManagerService } from '@univerjs/engine-render';
4
21
  interface IStateCache {
5
22
  history: IDocStateChangeParams[];
@@ -12,7 +29,7 @@ export declare class DocStateChangeManagerService extends RxDisposable {
12
29
  private readonly _docStateEmitService;
13
30
  private readonly _renderManagerService;
14
31
  private readonly _docStateChange$;
15
- readonly docStateChange$: import('rxjs').Observable<Nullable<IDocStateChangeParams>>;
32
+ readonly docStateChange$: import("rxjs").Observable<Nullable<IDocStateChangeParams>>;
16
33
  private _historyStateCache;
17
34
  private _changeStateCache;
18
35
  private _historyTimer;
@@ -1,3 +1,18 @@
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
+ */
1
16
  import { IUniverInstanceService, RxDisposable } from '@univerjs/core';
2
17
  import { IRenderManagerService } from '@univerjs/engine-render';
3
18
  export declare class DocsRenderService extends RxDisposable {
@@ -1,8 +1,26 @@
1
- import { IDisposable, IDocumentBody, Nullable, Disposable, ICommandService, IContextService, Injector, IUndoRedoService, IUniverInstanceService } from '@univerjs/core';
2
- import { ISuccinctDocRangeParam, IRenderManagerService } from '@univerjs/engine-render';
3
- import { Observable } from 'rxjs';
4
- import { IEditorConfigParams, Editor } from './editor';
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
+ import type { IDisposable, IDocumentBody, Nullable } from '@univerjs/core';
17
+ import type { ISuccinctDocRangeParam } from '@univerjs/engine-render';
18
+ import type { Observable } from 'rxjs';
19
+ import type { IEditorConfigParams } from './editor';
20
+ import { Disposable, ICommandService, IContextService, Injector, IUndoRedoService, IUniverInstanceService } from '@univerjs/core';
5
21
  import { DocSelectionManagerService } from '@univerjs/docs';
22
+ import { IRenderManagerService } from '@univerjs/engine-render';
23
+ import { Editor } from './editor';
6
24
  export interface IEditorSetValueParam {
7
25
  editorUnitId: string;
8
26
  body: IDocumentBody;
@@ -56,4 +74,4 @@ export declare class EditorService extends Disposable implements IEditorService,
56
74
  private _getCurrentEditorUnitId;
57
75
  private _getBlank;
58
76
  }
59
- export declare const IEditorService: import('@wendellhu/redi').IdentifierDecorator<IEditorService>;
77
+ export declare const IEditorService: import("@wendellhu/redi").IdentifierDecorator<IEditorService>;
@@ -1,8 +1,25 @@
1
- import { DocumentDataModel, ICommandService, IDocumentData, Injector, IPosition, IUndoRedoService, IUniverInstanceService, Nullable, Disposable } from '@univerjs/core';
2
- import { DocSelectionManagerService } from '@univerjs/docs';
3
- import { IDocSelectionInnerParam, IRender, ISuccinctDocRangeParam, ITextRangeWithStyle } from '@univerjs/engine-render';
4
- import { Observable } from 'rxjs';
5
- import { IEditorInputConfig, DocSelectionRenderService } from '../selection/doc-selection-render.service';
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
+ import type { DocumentDataModel, ICommandService, IDocumentData, Injector, IPosition, IUndoRedoService, IUniverInstanceService, Nullable } from '@univerjs/core';
17
+ import type { DocSelectionManagerService } from '@univerjs/docs';
18
+ import type { IDocSelectionInnerParam, IRender, ISuccinctDocRangeParam, ITextRangeWithStyle } from '@univerjs/engine-render';
19
+ import type { Observable } from 'rxjs';
20
+ import type { IEditorInputConfig } from '../selection/doc-selection-render.service';
21
+ import { Disposable } from '@univerjs/core';
22
+ import { DocSelectionRenderService } from '../selection/doc-selection-render.service';
6
23
  interface IEditorEvent {
7
24
  target: IEditor;
8
25
  data: IDocumentData;
@@ -105,7 +122,7 @@ export declare class Editor extends Disposable implements IEditor {
105
122
  getBoundingClientRect(): DOMRect;
106
123
  get editorDOM(): HTMLDivElement;
107
124
  isVisible(): boolean | undefined;
108
- getSkeleton(): import('@univerjs/engine-render').DocumentSkeleton | undefined;
125
+ getSkeleton(): import("@univerjs/engine-render").DocumentSkeleton | undefined;
109
126
  isSheetEditor(): boolean;
110
127
  /**
111
128
  * @deprecated use getDocumentData.
@@ -114,7 +131,7 @@ export declare class Editor extends Disposable implements IEditor {
114
131
  /**
115
132
  * @deprecated use getDocumentData.
116
133
  */
117
- getBody(): import('@univerjs/core').IDocumentBody | undefined;
134
+ getBody(): import("@univerjs/core").IDocumentBody | undefined;
118
135
  /**
119
136
  * @deprecated.
120
137
  */
@@ -1,5 +1,21 @@
1
- import { DocumentDataModel, IDisposable, Nullable, Disposable, IUniverInstanceService } from '@univerjs/core';
2
- import { IRenderContext, IRenderModule } from '@univerjs/engine-render';
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
+ import type { DocumentDataModel, IDisposable, Nullable } from '@univerjs/core';
17
+ import type { IRenderContext, IRenderModule } from '@univerjs/engine-render';
18
+ import { Disposable, IUniverInstanceService } from '@univerjs/core';
3
19
  import { DocSelectionManagerService } from '@univerjs/docs';
4
20
  import { ComponentManager } from '@univerjs/ui';
5
21
  import { DocCanvasPopManagerService } from './doc-popup-manager.service';
@@ -1,5 +1,20 @@
1
- import { Nullable } from '@univerjs/core';
2
- import { DocumentSkeleton, IDocumentOffsetConfig, INodePosition, IPoint } from '@univerjs/engine-render';
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
+ import type { Nullable } from '@univerjs/core';
17
+ import type { DocumentSkeleton, IDocumentOffsetConfig, INodePosition, IPoint } from '@univerjs/engine-render';
3
18
  export declare function isValidRectRange(anchorNodePosition: INodePosition, focusNodePosition: INodePosition): boolean;
4
19
  export declare function isInSameTableCell(anchorNodePosition: INodePosition, focusNodePosition: INodePosition): boolean;
5
20
  export declare function isInSameTableCellData(skeleton: DocumentSkeleton, anchorNodePosition: INodePosition, focusNodePosition: INodePosition): boolean;
@@ -1,5 +1,20 @@
1
- import { IPosition, ITextRange, Nullable } from '@univerjs/core';
2
- import { DocumentSkeleton, IDocumentOffsetConfig, INodePosition, IPoint } from '@univerjs/engine-render';
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
+ import type { IPosition, ITextRange, Nullable } from '@univerjs/core';
17
+ import type { DocumentSkeleton, IDocumentOffsetConfig, INodePosition, IPoint } from '@univerjs/engine-render';
3
18
  export declare enum NodePositionStateType {
4
19
  NORMAL = 0,
5
20
  START = 1,
@@ -1,5 +1,21 @@
1
- import { DocumentDataModel, Nullable, ILogService, IUniverInstanceService, RxDisposable } from '@univerjs/core';
2
- import { IDocSelectionInnerParam, IMouseEvent, INodePosition, IPointerEvent, IRenderContext, IRenderModule, ISuccinctDocRangeParam, ITextRangeWithStyle } from '@univerjs/engine-render';
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
+ import type { DocumentDataModel, Nullable } from '@univerjs/core';
17
+ import type { IDocSelectionInnerParam, IMouseEvent, INodePosition, IPointerEvent, IRenderContext, IRenderModule, ISuccinctDocRangeParam, ITextRangeWithStyle } from '@univerjs/engine-render';
18
+ import { ILogService, IUniverInstanceService, RxDisposable } from '@univerjs/core';
3
19
  import { DocSkeletonManagerService } from '@univerjs/docs';
4
20
  import { ILayoutService } from '@univerjs/ui';
5
21
  import { TextRange } from './text-range';
@@ -16,30 +32,30 @@ export declare class DocSelectionRenderService extends RxDisposable implements I
16
32
  private readonly _univerInstanceService;
17
33
  private readonly _docSkeletonManagerService;
18
34
  private readonly _onInputBefore$;
19
- readonly onInputBefore$: import('rxjs').Observable<Nullable<IEditorInputConfig>>;
35
+ readonly onInputBefore$: import("rxjs").Observable<Nullable<IEditorInputConfig>>;
20
36
  private readonly _onKeydown$;
21
- readonly onKeydown$: import('rxjs').Observable<IEditorInputConfig>;
37
+ readonly onKeydown$: import("rxjs").Observable<IEditorInputConfig>;
22
38
  private readonly _onInput$;
23
- readonly onInput$: import('rxjs').Observable<IEditorInputConfig>;
39
+ readonly onInput$: import("rxjs").Observable<IEditorInputConfig>;
24
40
  private readonly _onCompositionstart$;
25
- readonly onCompositionstart$: import('rxjs').Observable<Nullable<IEditorInputConfig>>;
41
+ readonly onCompositionstart$: import("rxjs").Observable<Nullable<IEditorInputConfig>>;
26
42
  private readonly _onCompositionupdate$;
27
- readonly onCompositionupdate$: import('rxjs').Observable<Nullable<IEditorInputConfig>>;
43
+ readonly onCompositionupdate$: import("rxjs").Observable<Nullable<IEditorInputConfig>>;
28
44
  private readonly _onCompositionend$;
29
- readonly onCompositionend$: import('rxjs').Observable<Nullable<IEditorInputConfig>>;
45
+ readonly onCompositionend$: import("rxjs").Observable<Nullable<IEditorInputConfig>>;
30
46
  private readonly _onSelectionStart$;
31
- readonly onSelectionStart$: import('rxjs').Observable<Nullable<INodePosition>>;
32
- readonly onChangeByEvent$: import('rxjs').Observable<Nullable<IEditorInputConfig>>;
47
+ readonly onSelectionStart$: import("rxjs").Observable<Nullable<INodePosition>>;
48
+ readonly onChangeByEvent$: import("rxjs").Observable<Nullable<IEditorInputConfig>>;
33
49
  private readonly _onPaste$;
34
- readonly onPaste$: import('rxjs').Observable<IEditorInputConfig>;
50
+ readonly onPaste$: import("rxjs").Observable<IEditorInputConfig>;
35
51
  private readonly _textSelectionInner$;
36
- readonly textSelectionInner$: import('rxjs').Observable<Nullable<IDocSelectionInnerParam>>;
52
+ readonly textSelectionInner$: import("rxjs").Observable<Nullable<IDocSelectionInnerParam>>;
37
53
  private readonly _onFocus$;
38
- readonly onFocus$: import('rxjs').Observable<IEditorInputConfig>;
54
+ readonly onFocus$: import("rxjs").Observable<IEditorInputConfig>;
39
55
  private readonly _onBlur$;
40
- readonly onBlur$: import('rxjs').Observable<IEditorInputConfig>;
56
+ readonly onBlur$: import("rxjs").Observable<IEditorInputConfig>;
41
57
  private readonly _onPointerDown$;
42
- readonly onPointerDown$: import('rxjs').Observable<void>;
58
+ readonly onPointerDown$: import("rxjs").Observable<void>;
43
59
  private _container;
44
60
  private _inputParent;
45
61
  private _input;
@@ -64,7 +80,7 @@ export declare class DocSelectionRenderService extends RxDisposable implements I
64
80
  get canFocusing(): boolean;
65
81
  constructor(_context: IRenderContext<DocumentDataModel>, _layoutService: ILayoutService, _logService: ILogService, _univerInstanceService: IUniverInstanceService, _docSkeletonManagerService: DocSkeletonManagerService);
66
82
  private _listenCurrentUnitChange;
67
- get activeViewPort(): import('@univerjs/engine-render').Viewport;
83
+ get activeViewPort(): import("@univerjs/engine-render").Viewport;
68
84
  setSegment(id: string): void;
69
85
  getSegment(): string;
70
86
  setSegmentPage(pageIndex: number): void;
@@ -97,7 +113,7 @@ export declare class DocSelectionRenderService extends RxDisposable implements I
97
113
  private _getAllTextRanges;
98
114
  private _getAllRectRanges;
99
115
  getAllTextRanges(): ITextRangeWithStyle[];
100
- getAllRectRanges(): import('@univerjs/engine-render').IRectRangeWithStyle[];
116
+ getAllRectRanges(): import("@univerjs/engine-render").IRectRangeWithStyle[];
101
117
  private _getActiveRange;
102
118
  private _getActiveRangeInstance;
103
119
  dispose(): void;
@@ -1,5 +1,20 @@
1
- import { DOC_RANGE_TYPE, Nullable, RANGE_DIRECTION } from '@univerjs/core';
2
- import { INodePosition, ITextSelectionStyle } from '@univerjs/engine-render';
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
+ import type { DOC_RANGE_TYPE, Nullable, RANGE_DIRECTION } from '@univerjs/core';
17
+ import type { INodePosition, ITextSelectionStyle } from '@univerjs/engine-render';
3
18
  export interface IDocRange {
4
19
  rangeType: DOC_RANGE_TYPE;
5
20
  anchorNodePosition?: Nullable<INodePosition>;
@@ -1,6 +1,22 @@
1
- import { Nullable, DOC_RANGE_TYPE, RANGE_DIRECTION } from '@univerjs/core';
2
- import { Documents, DocumentSkeleton, INodePosition, ITextSelectionStyle, Scene } from '@univerjs/engine-render';
3
- import { IDocRange } from './range-interface';
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
+ import type { Nullable } from '@univerjs/core';
17
+ import type { Documents, DocumentSkeleton, INodePosition, ITextSelectionStyle, Scene } from '@univerjs/engine-render';
18
+ import type { IDocRange } from './range-interface';
19
+ import { DOC_RANGE_TYPE, RANGE_DIRECTION } from '@univerjs/core';
4
20
  export declare function convertPositionsToRectRanges(scene: Scene, document: Documents, docSkeleton: DocumentSkeleton, anchorNodePosition: INodePosition, focusNodePosition: INodePosition, style?: ITextSelectionStyle, segmentId?: string, segmentPage?: number): RectRange[];
5
21
  export declare class RectRange implements IDocRange {
6
22
  private _scene;
@@ -1,6 +1,36 @@
1
- import { Nullable } from '@univerjs/core';
2
- import { Documents, DocumentSkeleton, Engine, IDocumentSkeletonGlyph, INodePosition, IRectRangeWithStyle, ITextRangeWithStyle, ITextSelectionStyle, Scene } from '@univerjs/engine-render';
3
- import { IDocRange } from './range-interface';
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
+ /**
17
+ * Copyright 2023-present DreamNum Co., Ltd.
18
+ *
19
+ * Licensed under the Apache License, Version 2.0 (the "License");
20
+ * you may not use this file except in compliance with the License.
21
+ * You may obtain a copy of the License at
22
+ *
23
+ * http://www.apache.org/licenses/LICENSE-2.0
24
+ *
25
+ * Unless required by applicable law or agreed to in writing, software
26
+ * distributed under the License is distributed on an "AS IS" BASIS,
27
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
28
+ * See the License for the specific language governing permissions and
29
+ * limitations under the License.
30
+ */
31
+ import type { Nullable } from '@univerjs/core';
32
+ import type { Documents, DocumentSkeleton, Engine, IDocumentSkeletonGlyph, INodePosition, IRectRangeWithStyle, ITextRangeWithStyle, ITextSelectionStyle, Scene } from '@univerjs/engine-render';
33
+ import type { IDocRange } from './range-interface';
4
34
  import { RectRange } from './rect-range';
5
35
  import { TextRange } from './text-range';
6
36
  interface IDocRangeList {
@@ -1,6 +1,23 @@
1
- import { Nullable, DOC_RANGE_TYPE, RANGE_DIRECTION } from '@univerjs/core';
2
- import { Documents, DocumentSkeleton, INodePosition, IPoint, ISuccinctDocRangeParam, ITextSelectionStyle, Scene, Rect } from '@univerjs/engine-render';
3
- import { IDocRange } from './range-interface';
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
+ import type { Nullable } from '@univerjs/core';
17
+ import type { Documents, DocumentSkeleton, INodePosition, IPoint, ISuccinctDocRangeParam, ITextSelectionStyle, Scene } from '@univerjs/engine-render';
18
+ import type { IDocRange } from './range-interface';
19
+ import { DOC_RANGE_TYPE, RANGE_DIRECTION } from '@univerjs/core';
20
+ import { Rect } from '@univerjs/engine-render';
4
21
  export declare const TEXT_RANGE_LAYER_INDEX = 3;
5
22
  export declare function cursorConvertToTextRange(scene: Scene, range: ISuccinctDocRangeParam, docSkeleton: DocumentSkeleton, document: Documents): Nullable<TextRange>;
6
23
  export declare function getAnchorBounding(pointsGroup: IPoint[][]): {
@@ -46,7 +63,7 @@ export declare class TextRange implements IDocRange {
46
63
  width: number;
47
64
  height: number;
48
65
  } | undefined;
49
- getAnchor(): Nullable<Rect<import('@univerjs/engine-render').IRectProps>>;
66
+ getAnchor(): Nullable<Rect<import("@univerjs/engine-render").IRectProps>>;
50
67
  activeStatic(): void;
51
68
  deactivateStatic(): void;
52
69
  isActive(): boolean;
@@ -1,4 +1,19 @@
1
- import { IShortcutItem } from '@univerjs/ui';
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
+ import type { IShortcutItem } from '@univerjs/ui';
2
17
  export declare const BreakLineShortcut: IShortcutItem;
3
18
  export declare const DeleteLeftShortcut: IShortcutItem;
4
19
  export declare const DeleteRightShortcut: IShortcutItem;
@@ -1,4 +1,19 @@
1
- import { IShortcutItem } from '@univerjs/ui';
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
+ import type { IShortcutItem } from '@univerjs/ui';
2
17
  export declare const MoveCursorUpShortcut: IShortcutItem;
3
18
  export declare const MoveCursorDownShortcut: IShortcutItem;
4
19
  export declare const MoveCursorLeftShortcut: IShortcutItem;
@@ -1,3 +1,18 @@
1
- import { IShortcutItem } from '@univerjs/ui';
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
+ import type { IShortcutItem } from '@univerjs/ui';
2
17
  export declare const TabShortCut: IShortcutItem;
3
18
  export declare const ShiftTabShortCut: IShortcutItem;
@@ -1,4 +1,19 @@
1
- import { IShortcutItem } from '@univerjs/ui';
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
+ import type { IShortcutItem } from '@univerjs/ui';
2
17
  export declare const BoldShortCut: IShortcutItem;
3
18
  export declare const ItalicShortCut: IShortcutItem;
4
19
  export declare const UnderlineShortCut: IShortcutItem;
@@ -1,3 +1,18 @@
1
- import { IContextService } from '@univerjs/core';
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
+ import type { IContextService } from '@univerjs/core';
2
17
  export declare function whenDocAndEditorFocused(contextService: IContextService): boolean;
3
18
  export declare function whenDocAndEditorFocusedWithBreakLine(contextService: IContextService): boolean;
@@ -13,4 +13,4 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- export declare function DocFooter(): false | import("react/jsx-runtime").JSX.Element | null;
16
+ export declare function DocFooter(): import("react/jsx-runtime").JSX.Element | null;
@@ -1,4 +1,20 @@
1
- import { IShapeProps, UniverRenderingContext, Shape } from '@univerjs/engine-render';
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
+ import type { IShapeProps, UniverRenderingContext } from '@univerjs/engine-render';
17
+ import { Shape } from '@univerjs/engine-render';
2
18
  export declare const COLLAB_CURSOR_LABEL_HEIGHT = 18;
3
19
  export declare const COLLAB_CURSOR_LABEL_MAX_WIDTH = 200;
4
20
  export declare const COLLAB_CURSOR_LABEL_TEXT_PADDING_LR = 6;