@univerjs/docs-ui 0.1.4 → 0.1.5

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 (32) hide show
  1. package/lib/types/commands/commands/clipboard.command.d.ts +2 -16
  2. package/lib/types/controllers/app-ui-controller.d.ts +6 -20
  3. package/lib/types/controllers/back-scroll.controller.d.ts +4 -18
  4. package/lib/types/controllers/clipboard.controller.d.ts +4 -18
  5. package/lib/types/controllers/doc-container-ui-controller.d.ts +5 -20
  6. package/lib/types/controllers/doc-editor-bridge.controller.d.ts +4 -18
  7. package/lib/types/controllers/doc-render.controller.d.ts +4 -18
  8. package/lib/types/controllers/doc-ui.controller.d.ts +3 -18
  9. package/lib/types/controllers/floating-object.controller.d.ts +4 -18
  10. package/lib/types/controllers/menu/menu.d.ts +3 -17
  11. package/lib/types/controllers/page-render.controller.d.ts +3 -17
  12. package/lib/types/controllers/text-selection.controller.d.ts +4 -18
  13. package/lib/types/controllers/zoom.controller.d.ts +4 -18
  14. package/lib/types/docs-ui-plugin.d.ts +3 -17
  15. package/lib/types/locale/en-US.d.ts +2 -16
  16. package/lib/types/services/clipboard/clipboard.service.d.ts +5 -19
  17. package/lib/types/services/clipboard/copy-content-cache.d.ts +2 -16
  18. package/lib/types/services/clipboard/html-to-udm/converter.d.ts +3 -17
  19. package/lib/types/services/clipboard/html-to-udm/parse-node-style.d.ts +2 -16
  20. package/lib/types/services/clipboard/html-to-udm/paste-plugins/plugin-lark.d.ts +2 -16
  21. package/lib/types/services/clipboard/html-to-udm/paste-plugins/plugin-univer.d.ts +2 -16
  22. package/lib/types/services/clipboard/html-to-udm/paste-plugins/plugin-word.d.ts +2 -16
  23. package/lib/types/services/clipboard/html-to-udm/paste-plugins/type.d.ts +2 -16
  24. package/lib/types/services/clipboard/html-to-udm/utils.d.ts +2 -16
  25. package/lib/types/services/clipboard/udm-to-html/convertor.d.ts +2 -16
  26. package/lib/types/shortcuts/core-editing.shortcut.d.ts +2 -16
  27. package/lib/types/shortcuts/cursor.shortcut.d.ts +2 -16
  28. package/lib/types/shortcuts/utils.d.ts +2 -16
  29. package/lib/types/views/doc-background/DocBackground.d.ts +2 -16
  30. package/lib/types/views/doc-canvas-view.d.ts +4 -18
  31. package/lib/types/views/doc-container/DocContainer.d.ts +3 -17
  32. package/package.json +15 -15
@@ -1,19 +1,5 @@
1
- /**
2
- * Copyright 2023-present DreamNum Inc.
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, IMultiCommand } from '@univerjs/core';
1
+ import { IContextService, IMultiCommand } from '@univerjs/core';
2
+
17
3
  export declare function whenDocOrEditor(contextService: IContextService): boolean;
18
4
  export declare const DocCopyCommand: IMultiCommand;
19
5
  export declare const DocCutCommand: IMultiCommand;
@@ -1,24 +1,10 @@
1
- /**
2
- * Copyright 2023-present DreamNum Inc.
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 { LocaleService, RxDisposable } from '@univerjs/core';
17
- import { Injector } from '@wendellhu/redi';
18
- import { ILayoutService } from '@univerjs/ui';
19
- import { ITextSelectionRenderManager } from '@univerjs/engine-render';
20
- import type { IUniverDocsUIConfig } from '../basics';
21
1
  import { DocContainerUIController } from './doc-container-ui-controller';
2
+ import { IUniverDocsUIConfig } from '../basics';
3
+ import { ITextSelectionRenderManager } from '@univerjs/engine-render';
4
+ import { ILayoutService } from '@univerjs/ui';
5
+ import { Injector } from '@wendellhu/redi';
6
+ import { LocaleService, RxDisposable } from '@univerjs/core';
7
+
22
8
  export declare class AppUIController extends RxDisposable {
23
9
  private readonly _localeService;
24
10
  private readonly _injector;
@@ -1,22 +1,8 @@
1
- /**
2
- * Copyright 2023-present DreamNum Inc.
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 { IUniverInstanceService, RxDisposable } from '@univerjs/core';
17
- import { DocSkeletonManagerService, TextSelectionManagerService } from '@univerjs/docs';
18
- import { IRenderManagerService } from '@univerjs/engine-render';
19
1
  import { IEditorService } from '@univerjs/ui';
2
+ import { IRenderManagerService } from '@univerjs/engine-render';
3
+ import { DocSkeletonManagerService, TextSelectionManagerService } from '@univerjs/docs';
4
+ import { IUniverInstanceService, RxDisposable } from '@univerjs/core';
5
+
20
6
  export declare class BackScrollController extends RxDisposable {
21
7
  private readonly _docSkeletonManagerService;
22
8
  private readonly _textSelectionManagerService;
@@ -1,22 +1,8 @@
1
- /**
2
- * Copyright 2023-present DreamNum Inc.
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 { ICommandService, IContextService, RxDisposable } from '@univerjs/core';
17
- import { IClipboardInterfaceService } from '@univerjs/ui';
18
- import { ITextSelectionRenderManager } from '@univerjs/engine-render';
19
1
  import { IDocClipboardService } from '../services/clipboard/clipboard.service';
2
+ import { ITextSelectionRenderManager } from '@univerjs/engine-render';
3
+ import { IClipboardInterfaceService } from '@univerjs/ui';
4
+ import { ICommandService, IContextService, RxDisposable } from '@univerjs/core';
5
+
20
6
  export declare class DocClipboardController extends RxDisposable {
21
7
  private readonly _commandService;
22
8
  private readonly _clipboardInterfaceService;
@@ -1,23 +1,8 @@
1
- /**
2
- * Copyright 2023-present DreamNum Inc.
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
- /// <reference types="react" />
17
- import { LocaleService } from '@univerjs/core';
1
+ import { DocContainer } from '../views/doc-container/DocContainer';
2
+ import { IUniverDocsUIConfig } from '../basics';
18
3
  import { Injector } from '@wendellhu/redi';
19
- import type { IUniverDocsUIConfig } from '../basics';
20
- import type { DocContainer } from '../views/doc-container/DocContainer';
4
+ import { LocaleService } from '@univerjs/core';
5
+
21
6
  export declare class DocContainerUIController {
22
7
  private readonly _config;
23
8
  private readonly _localeService;
@@ -39,7 +24,7 @@ export declare class DocContainerUIController {
39
24
  *
40
25
  */
41
26
  changeLocale: (locale: string) => void;
42
- getContentRef(): import("react").RefObject<HTMLDivElement>;
27
+ getContentRef(): import('react').RefObject<HTMLDivElement>;
43
28
  UIDidMount(cb: Function): any;
44
29
  getDocContainer(): DocContainer | undefined;
45
30
  }
@@ -1,22 +1,8 @@
1
- /**
2
- * Copyright 2023-present DreamNum Inc.
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 { Disposable, ICommandService, IUniverInstanceService } from '@univerjs/core';
17
- import { IRenderManagerService, ITextSelectionRenderManager } from '@univerjs/engine-render';
18
- import { DocSkeletonManagerService } from '@univerjs/docs';
19
1
  import { IEditorService } from '@univerjs/ui';
2
+ import { DocSkeletonManagerService } from '@univerjs/docs';
3
+ import { IRenderManagerService, ITextSelectionRenderManager } from '@univerjs/engine-render';
4
+ import { Disposable, ICommandService, IUniverInstanceService } from '@univerjs/core';
5
+
20
6
  export declare class DocEditorBridgeController extends Disposable {
21
7
  private readonly _currentUniverService;
22
8
  private readonly _docSkeletonManagerService;
@@ -1,22 +1,8 @@
1
- /**
2
- * Copyright 2023-present DreamNum Inc.
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 { ICommandService, RxDisposable } from '@univerjs/core';
17
- import { IRenderManagerService } from '@univerjs/engine-render';
18
- import { IEditorService } from '@univerjs/ui';
19
1
  import { DocSkeletonManagerService } from '@univerjs/docs';
2
+ import { IEditorService } from '@univerjs/ui';
3
+ import { IRenderManagerService } from '@univerjs/engine-render';
4
+ import { ICommandService, RxDisposable } from '@univerjs/core';
5
+
20
6
  export declare class DocRenderController extends RxDisposable {
21
7
  private readonly _docSkeletonManagerService;
22
8
  private readonly _renderManagerService;
@@ -1,22 +1,7 @@
1
- /**
2
- * Copyright 2023-present DreamNum Inc.
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 { Disposable, IUniverInstanceService } from '@univerjs/core';
17
- import type { IDesktopUIController } from '@univerjs/ui';
18
- import { ComponentManager, IEditorService, ILayoutService, IMenuService } from '@univerjs/ui';
19
1
  import { Injector } from '@wendellhu/redi';
2
+ import { IDesktopUIController, ComponentManager, IEditorService, ILayoutService, IMenuService } from '@univerjs/ui';
3
+ import { Disposable, IUniverInstanceService } from '@univerjs/core';
4
+
20
5
  export declare class DocUIController extends Disposable {
21
6
  private readonly _injector;
22
7
  private readonly _componentManager;
@@ -1,22 +1,8 @@
1
- /**
2
- * Copyright 2023-present DreamNum Inc.
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 { Disposable, ICommandService, IFloatingObjectManagerService, IUniverInstanceService } from '@univerjs/core';
17
- import { DocSkeletonManagerService } from '@univerjs/docs';
18
- import { IRenderManagerService } from '@univerjs/engine-render';
19
1
  import { IEditorService } from '@univerjs/ui';
2
+ import { IRenderManagerService } from '@univerjs/engine-render';
3
+ import { DocSkeletonManagerService } from '@univerjs/docs';
4
+ import { Disposable, ICommandService, IFloatingObjectManagerService, IUniverInstanceService } from '@univerjs/core';
5
+
20
6
  export declare class FloatingObjectController extends Disposable {
21
7
  private readonly _docSkeletonManagerService;
22
8
  private readonly _currentUniverService;
@@ -1,20 +1,6 @@
1
- /**
2
- * Copyright 2023-present DreamNum Inc.
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 { IMenuButtonItem, IMenuSelectorItem } from '@univerjs/ui';
17
- import type { IAccessor } from '@wendellhu/redi';
1
+ import { IAccessor } from '@wendellhu/redi';
2
+ import { IMenuButtonItem, IMenuSelectorItem } from '@univerjs/ui';
3
+
18
4
  export declare function BoldMenuItemFactory(accessor: IAccessor): IMenuButtonItem;
19
5
  export declare function ItalicMenuItemFactory(accessor: IAccessor): IMenuButtonItem;
20
6
  export declare function UnderlineMenuItemFactory(accessor: IAccessor): IMenuButtonItem;
@@ -1,21 +1,7 @@
1
- /**
2
- * Copyright 2023-present DreamNum Inc.
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 { Disposable, IUniverInstanceService } from '@univerjs/core';
17
- import { IRenderManagerService } from '@univerjs/engine-render';
18
1
  import { IEditorService } from '@univerjs/ui';
2
+ import { IRenderManagerService } from '@univerjs/engine-render';
3
+ import { Disposable, IUniverInstanceService } from '@univerjs/core';
4
+
19
5
  export declare class PageRenderController extends Disposable {
20
6
  private readonly _renderManagerService;
21
7
  private readonly _editorService;
@@ -1,22 +1,8 @@
1
- /**
2
- * Copyright 2023-present DreamNum Inc.
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 { Disposable, ICommandService, IUniverInstanceService } from '@univerjs/core';
17
- import { IRenderManagerService, ITextSelectionRenderManager } from '@univerjs/engine-render';
18
- import { IEditorService } from '@univerjs/ui';
19
1
  import { DocSkeletonManagerService, TextSelectionManagerService } from '@univerjs/docs';
2
+ import { IEditorService } from '@univerjs/ui';
3
+ import { IRenderManagerService, ITextSelectionRenderManager } from '@univerjs/engine-render';
4
+ import { Disposable, ICommandService, IUniverInstanceService } from '@univerjs/core';
5
+
20
6
  export declare class TextSelectionController extends Disposable {
21
7
  private readonly _docSkeletonManagerService;
22
8
  private readonly _currentUniverService;
@@ -1,22 +1,8 @@
1
- /**
2
- * Copyright 2023-present DreamNum Inc.
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 { Disposable, ICommandService, IUniverInstanceService } from '@univerjs/core';
17
- import { DocSkeletonManagerService, TextSelectionManagerService } from '@univerjs/docs';
18
- import { IRenderManagerService } from '@univerjs/engine-render';
19
1
  import { IEditorService } from '@univerjs/ui';
2
+ import { IRenderManagerService } from '@univerjs/engine-render';
3
+ import { DocSkeletonManagerService, TextSelectionManagerService } from '@univerjs/docs';
4
+ import { Disposable, ICommandService, IUniverInstanceService } from '@univerjs/core';
5
+
20
6
  export declare class ZoomController extends Disposable {
21
7
  private readonly _docSkeletonManagerService;
22
8
  private readonly _currentUniverService;
@@ -1,21 +1,7 @@
1
- /**
2
- * Copyright 2023-present DreamNum Inc.
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 { ILogService, LocaleService, Plugin, PluginType } from '@univerjs/core';
1
+ import { IUniverDocsUIConfig } from './basics';
17
2
  import { Injector } from '@wendellhu/redi';
18
- import type { IUniverDocsUIConfig } from './basics';
3
+ import { ILogService, LocaleService, Plugin, PluginType } from '@univerjs/core';
4
+
19
5
  export declare class UniverDocsUIPlugin extends Plugin {
20
6
  private readonly _config;
21
7
  _injector: Injector;
@@ -1,18 +1,4 @@
1
- /**
2
- * Copyright 2023-present DreamNum Inc.
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 zhCN from './zh-CN';
1
+ import { default as zhCN } from './zh-CN';
2
+
17
3
  declare const locale: typeof zhCN;
18
4
  export default locale;
@@ -1,22 +1,8 @@
1
- /**
2
- * Copyright 2023-present DreamNum Inc.
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 { Disposable, ICommandService, ILogService, IUniverInstanceService } from '@univerjs/core';
17
- import { IClipboardInterfaceService } from '@univerjs/ui';
18
- import type { IDisposable } from '@wendellhu/redi';
19
1
  import { TextSelectionManagerService } from '@univerjs/docs';
2
+ import { IDisposable } from '@wendellhu/redi';
3
+ import { IClipboardInterfaceService } from '@univerjs/ui';
4
+ import { Disposable, ICommandService, ILogService, IUniverInstanceService } from '@univerjs/core';
5
+
20
6
  export interface IClipboardPropertyItem {
21
7
  }
22
8
  export interface IDocClipboardHook {
@@ -30,7 +16,7 @@ export interface IDocClipboardService {
30
16
  legacyPaste(html?: string, text?: string): Promise<boolean>;
31
17
  addClipboardHook(hook: IDocClipboardHook): IDisposable;
32
18
  }
33
- export declare const IDocClipboardService: import("@wendellhu/redi").IdentifierDecorator<IDocClipboardService>;
19
+ export declare const IDocClipboardService: import('@wendellhu/redi').IdentifierDecorator<IDocClipboardService>;
34
20
  export declare class DocClipboardService extends Disposable implements IDocClipboardService {
35
21
  private readonly _currentUniverService;
36
22
  private readonly _logService;
@@ -1,19 +1,5 @@
1
- /**
2
- * Copyright 2023-present DreamNum Inc.
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 { IDocumentBody } from '@univerjs/core';
1
+ import { IDocumentBody } from '@univerjs/core';
2
+
17
3
  export declare function genId(): string;
18
4
  export declare function extractId(html: string): string | null;
19
5
  export declare class CopyContentCache {
@@ -1,20 +1,6 @@
1
- /**
2
- * Copyright 2023-present DreamNum Inc.
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 { IDocumentBody } from '@univerjs/core';
17
- import type { IPastePlugin } from './paste-plugins/type';
1
+ import { IPastePlugin } from './paste-plugins/type';
2
+ import { IDocumentBody } from '@univerjs/core';
3
+
18
4
  /**
19
5
  * Convert html strings into data structures in univer, IDocumentBody.
20
6
  * Support plug-in, add custom rules,
@@ -1,17 +1,3 @@
1
- /**
2
- * Copyright 2023-present DreamNum Inc.
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 { ITextStyle } from '@univerjs/core';
1
+ import { ITextStyle } from '@univerjs/core';
2
+
17
3
  export declare function extractNodeStyle(node: HTMLElement): ITextStyle;
@@ -1,18 +1,4 @@
1
- /**
2
- * Copyright 2023-present DreamNum Inc.
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 { IPastePlugin } from './type';
1
+ import { IPastePlugin } from './type';
2
+
17
3
  declare const wordPastePlugin: IPastePlugin;
18
4
  export default wordPastePlugin;
@@ -1,18 +1,4 @@
1
- /**
2
- * Copyright 2023-present DreamNum Inc.
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 { IPastePlugin } from './type';
1
+ import { IPastePlugin } from './type';
2
+
17
3
  declare const univerPastePlugin: IPastePlugin;
18
4
  export default univerPastePlugin;
@@ -1,18 +1,4 @@
1
- /**
2
- * Copyright 2023-present DreamNum Inc.
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 { IPastePlugin } from './type';
1
+ import { IPastePlugin } from './type';
2
+
17
3
  declare const wordPastePlugin: IPastePlugin;
18
4
  export default wordPastePlugin;
@@ -1,19 +1,5 @@
1
- /**
2
- * Copyright 2023-present DreamNum Inc.
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 { IDocumentBody, ITextStyle } from '@univerjs/core';
1
+ import { IDocumentBody, ITextStyle } from '@univerjs/core';
2
+
17
3
  export interface IStyleRule {
18
4
  filter: string | string[] | ((node: HTMLElement) => boolean);
19
5
  getStyle(node: HTMLElement): ITextStyle;
@@ -1,17 +1,3 @@
1
- /**
2
- * Copyright 2023-present DreamNum Inc.
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 { IParagraphStyle, Nullable } from '@univerjs/core';
1
+ import { IParagraphStyle, Nullable } from '@univerjs/core';
2
+
17
3
  export declare function getParagraphStyle(el: HTMLElement): Nullable<IParagraphStyle>;
@@ -1,19 +1,5 @@
1
- /**
2
- * Copyright 2023-present DreamNum Inc.
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 { IDocumentBody, ITextRun } from '@univerjs/core';
1
+ import { IDocumentBody, ITextRun } from '@univerjs/core';
2
+
17
3
  export declare function covertTextRunToHtml(dataStream: string, textRun: ITextRun): string;
18
4
  export declare function getBodySliceHtml(body: IDocumentBody, startIndex: number, endIndex: number): string;
19
5
  export declare function convertBodyToHtml(body: IDocumentBody, withParagraphInfo?: boolean): string;
@@ -1,19 +1,5 @@
1
- /**
2
- * Copyright 2023-present DreamNum Inc.
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';
1
+ import { IShortcutItem } from '@univerjs/ui';
2
+
17
3
  export declare const BreakLineShortcut: IShortcutItem;
18
4
  export declare const DeleteLeftShortcut: IShortcutItem;
19
5
  export declare const DeleteRightShortcut: IShortcutItem;
@@ -1,19 +1,5 @@
1
- /**
2
- * Copyright 2023-present DreamNum Inc.
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';
1
+ import { IShortcutItem } from '@univerjs/ui';
2
+
17
3
  export declare const MoveCursorUpShortcut: IShortcutItem;
18
4
  export declare const MoveCursorDownShortcut: IShortcutItem;
19
5
  export declare const MoveCursorLeftShortcut: IShortcutItem;
@@ -1,18 +1,4 @@
1
- /**
2
- * Copyright 2023-present DreamNum Inc.
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';
1
+ import { IContextService } from '@univerjs/core';
2
+
17
3
  export declare function whenDocAndEditorFocused(contextService: IContextService): boolean;
18
4
  export declare function whenDocAndEditorFocusedWithBreakLine(contextService: IContextService): boolean;
@@ -1,19 +1,5 @@
1
- /**
2
- * Copyright 2023-present DreamNum Inc.
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 React from 'react';
1
+ import { default as React } from 'react';
2
+
17
3
  /**
18
4
  * Doc standalone background
19
5
  */
@@ -1,21 +1,7 @@
1
- /**
2
- * Copyright 2023-present DreamNum Inc.
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 { IConfigService, IUniverInstanceService, RxDisposable } from '@univerjs/core';
17
- import type { RenderManagerService } from '@univerjs/engine-render';
18
1
  import { IEditorService } from '@univerjs/ui';
2
+ import { RenderManagerService } from '@univerjs/engine-render';
3
+ import { IConfigService, IUniverInstanceService, RxDisposable } from '@univerjs/core';
4
+
19
5
  export declare class DocCanvasView extends RxDisposable {
20
6
  private readonly _renderManagerService;
21
7
  private readonly _configService;
@@ -24,7 +10,7 @@ export declare class DocCanvasView extends RxDisposable {
24
10
  private _scene;
25
11
  private _currentDocumentModel;
26
12
  private readonly _fps$;
27
- readonly fps$: import("rxjs").Observable<string>;
13
+ readonly fps$: import('rxjs').Observable<string>;
28
14
  constructor(_renderManagerService: RenderManagerService, _configService: IConfigService, _currentUniverService: IUniverInstanceService, _editorService: IEditorService);
29
15
  private _initialize;
30
16
  dispose(): void;
@@ -1,20 +1,6 @@
1
- /**
2
- * Copyright 2023-present DreamNum Inc.
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 React, { Component } from 'react';
17
- import type { IUniverDocsUIConfig } from '../../basics';
1
+ import { IUniverDocsUIConfig } from '../../basics';
2
+ import { default as React, Component } from 'react';
3
+
18
4
  interface IBaseDocContainerProps {
19
5
  config: IUniverDocsUIConfig;
20
6
  changeLocale: (locale: string) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs/docs-ui",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "private": false,
5
5
  "description": "Univer normal ui-plugin-docs",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -56,27 +56,27 @@
56
56
  "@wendellhu/redi": "0.13.0",
57
57
  "react": ">=16.9.0",
58
58
  "rxjs": ">=7.0.0",
59
- "@univerjs/core": "0.1.4",
60
- "@univerjs/design": "0.1.4",
61
- "@univerjs/docs": "0.1.4",
62
- "@univerjs/engine-render": "0.1.4",
63
- "@univerjs/ui": "0.1.4"
59
+ "@univerjs/core": "0.1.5",
60
+ "@univerjs/design": "0.1.5",
61
+ "@univerjs/docs": "0.1.5",
62
+ "@univerjs/engine-render": "0.1.5",
63
+ "@univerjs/ui": "0.1.5"
64
64
  },
65
65
  "devDependencies": {
66
- "@types/react": "^18.2.67",
66
+ "@types/react": "^18.2.72",
67
67
  "@wendellhu/redi": "^0.13.0",
68
68
  "less": "^4.2.0",
69
69
  "react": "^18.2.0",
70
70
  "rxjs": "^7.8.1",
71
- "typescript": "^5.4.2",
72
- "vite": "^5.1.6",
71
+ "typescript": "^5.4.3",
72
+ "vite": "^5.2.6",
73
73
  "vitest": "^1.4.0",
74
- "@univerjs/core": "0.1.4",
75
- "@univerjs/design": "0.1.4",
76
- "@univerjs/engine-render": "0.1.4",
77
- "@univerjs/docs": "0.1.4",
78
- "@univerjs/shared": "0.1.4",
79
- "@univerjs/ui": "0.1.4"
74
+ "@univerjs/core": "0.1.5",
75
+ "@univerjs/design": "0.1.5",
76
+ "@univerjs/engine-render": "0.1.5",
77
+ "@univerjs/shared": "0.1.5",
78
+ "@univerjs/docs": "0.1.5",
79
+ "@univerjs/ui": "0.1.5"
80
80
  },
81
81
  "scripts": {
82
82
  "test": "vitest run",