@univerjs/docs 0.1.0-alpha.1 → 0.1.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.txt +178 -0
- package/README.md +1 -1
- package/lib/cjs/index.js +2 -5928
- package/lib/es/index.js +2993 -0
- package/lib/types/basics/component-tools.d.ts +15 -1
- package/lib/types/basics/docs-view-key.d.ts +15 -1
- package/lib/types/basics/retain-delete-params.d.ts +15 -1
- package/lib/types/commands/commands/__tests__/clipboard.command.spec.d.ts +15 -1
- package/lib/types/commands/commands/__tests__/core-editing.command.spec.d.ts +15 -1
- package/lib/types/commands/commands/__tests__/create-command-test-bed.d.ts +15 -1
- package/lib/types/commands/commands/__tests__/inline-format.command.spec.d.ts +15 -1
- package/lib/types/commands/commands/__tests__/mock-text-selection-render-manager.d.ts +24 -0
- package/lib/types/commands/commands/__tests__/replace-content.command.spec.d.ts +15 -1
- package/lib/types/commands/commands/break-line.command.d.ts +17 -0
- package/lib/types/commands/commands/clipboard.command.d.ts +15 -1
- package/lib/types/commands/commands/clipboard.inner.command.d.ts +15 -1
- package/lib/types/commands/commands/core-editing.command.d.ts +18 -6
- package/lib/types/commands/commands/delete.command.d.ts +26 -0
- package/lib/types/commands/commands/ime-input.command.d.ts +15 -1
- package/lib/types/commands/commands/inline-format.command.d.ts +17 -1
- package/lib/types/commands/commands/insert-floating-object.command.d.ts +15 -1
- package/lib/types/commands/commands/list.command.d.ts +28 -0
- package/lib/types/commands/commands/remove-floating-object.command.d.ts +15 -1
- package/lib/types/commands/commands/replace-content.command.d.ts +15 -1
- package/lib/types/commands/commands/set-doc-zoom-ratio.command.d.ts +15 -1
- package/lib/types/commands/commands/set-floating-object-transform.command.d.ts +15 -1
- package/lib/types/commands/mutations/core-editing.mutation.d.ts +15 -1
- package/lib/types/commands/mutations/insert-floating-object.mutation.d.ts +15 -1
- package/lib/types/commands/mutations/remove-floating-object.mutation.d.ts +15 -1
- package/lib/types/commands/mutations/set-floating-object.mutation.d.ts +15 -1
- package/lib/types/commands/operations/cursor.operation.d.ts +15 -1
- package/lib/types/commands/operations/select-all.operation.d.ts +15 -1
- package/lib/types/commands/operations/set-doc-zoom-ratio.operation.d.ts +15 -1
- package/lib/types/commands/operations/text-selection.operation.d.ts +19 -3
- package/lib/types/controllers/clipboard.controller.d.ts +18 -4
- package/lib/types/controllers/doc-render.controller.d.ts +16 -3
- package/lib/types/controllers/floating-object.controller.d.ts +15 -1
- package/lib/types/controllers/ime-input.controller.d.ts +16 -4
- package/lib/types/controllers/inline-format.controller.d.ts +17 -6
- package/lib/types/controllers/move-cursor.controller.d.ts +17 -4
- package/lib/types/controllers/normal-input.controller.d.ts +16 -4
- package/lib/types/controllers/page-render.controller.d.ts +18 -3
- package/lib/types/controllers/text-selection.controller.d.ts +20 -6
- package/lib/types/controllers/zoom.controller.d.ts +15 -1
- package/lib/types/doc-plugin.d.ts +18 -4
- package/lib/types/index.d.ts +22 -4
- package/lib/types/services/clipboard/__test__/html-and-udm-convert.spec.d.ts +15 -1
- package/lib/types/services/clipboard/clipboard.service.d.ts +15 -1
- package/lib/types/services/clipboard/copy-content-cache.d.ts +15 -1
- package/lib/types/services/clipboard/html-to-udm/converter.d.ts +15 -1
- package/lib/types/services/clipboard/html-to-udm/parse-node-style.d.ts +15 -1
- package/lib/types/services/clipboard/html-to-udm/parse-to-dom.d.ts +15 -1
- package/lib/types/services/clipboard/html-to-udm/paste-plugins/plugin-lark.d.ts +15 -1
- package/lib/types/services/clipboard/html-to-udm/paste-plugins/plugin-word.d.ts +15 -1
- package/lib/types/services/clipboard/html-to-udm/paste-plugins/type.d.ts +15 -1
- package/lib/types/services/clipboard/html-to-udm/utils.d.ts +15 -1
- package/lib/types/services/clipboard/udm-to-html/convertor.d.ts +15 -1
- package/lib/types/services/doc-skeleton-manager.service.d.ts +15 -1
- package/lib/types/services/doc-view-model-manager.service.d.ts +15 -1
- package/lib/types/services/ime-input-manager.service.d.ts +15 -1
- package/lib/types/services/text-selection-manager.service.d.ts +48 -32
- package/lib/types/shortcuts/core-editing.shortcut.d.ts +15 -1
- package/lib/types/shortcuts/cursor.shortcut.d.ts +15 -1
- package/lib/types/views/doc-canvas-view.d.ts +20 -3
- package/lib/umd/index.js +2 -0
- package/package.json +26 -25
- package/LICENSE +0 -21
- package/lib/cjs/locale/en-US.js +0 -26
- package/lib/cjs/locale/zh-CN.js +0 -26
- package/lib/esm/index.js +0 -5845
- package/lib/esm/locale/en-US.js +0 -5
- package/lib/esm/locale/zh-CN.js +0 -5
- package/lib/types/basics/component-tools.d.ts.map +0 -1
- package/lib/types/basics/demo-data.d.ts +0 -3
- package/lib/types/basics/demo-data.d.ts.map +0 -1
- package/lib/types/basics/docs-view-key.d.ts.map +0 -1
- package/lib/types/basics/retain-delete-params.d.ts.map +0 -1
- package/lib/types/commands/commands/__tests__/clipboard.command.spec.d.ts.map +0 -1
- package/lib/types/commands/commands/__tests__/core-editing.command.spec.d.ts.map +0 -1
- package/lib/types/commands/commands/__tests__/create-command-test-bed.d.ts.map +0 -1
- package/lib/types/commands/commands/__tests__/inline-format.command.spec.d.ts.map +0 -1
- package/lib/types/commands/commands/__tests__/replace-content.command.spec.d.ts.map +0 -1
- package/lib/types/commands/commands/clipboard.command.d.ts.map +0 -1
- package/lib/types/commands/commands/clipboard.inner.command.d.ts.map +0 -1
- package/lib/types/commands/commands/core-editing.command.d.ts.map +0 -1
- package/lib/types/commands/commands/ime-input.command.d.ts.map +0 -1
- package/lib/types/commands/commands/inline-format.command.d.ts.map +0 -1
- package/lib/types/commands/commands/insert-floating-object.command.d.ts.map +0 -1
- package/lib/types/commands/commands/remove-floating-object.command.d.ts.map +0 -1
- package/lib/types/commands/commands/replace-content.command.d.ts.map +0 -1
- package/lib/types/commands/commands/set-doc-zoom-ratio.command.d.ts.map +0 -1
- package/lib/types/commands/commands/set-floating-object-transform.command.d.ts.map +0 -1
- package/lib/types/commands/mutations/core-editing.mutation.d.ts.map +0 -1
- package/lib/types/commands/mutations/insert-floating-object.mutation.d.ts.map +0 -1
- package/lib/types/commands/mutations/remove-floating-object.mutation.d.ts.map +0 -1
- package/lib/types/commands/mutations/set-floating-object.mutation.d.ts.map +0 -1
- package/lib/types/commands/operations/cursor.operation.d.ts.map +0 -1
- package/lib/types/commands/operations/select-all.operation.d.ts.map +0 -1
- package/lib/types/commands/operations/set-doc-zoom-ratio.operation.d.ts.map +0 -1
- package/lib/types/commands/operations/text-selection.operation.d.ts.map +0 -1
- package/lib/types/controllers/clipboard.controller.d.ts.map +0 -1
- package/lib/types/controllers/delete.controller.d.ts +0 -16
- package/lib/types/controllers/delete.controller.d.ts.map +0 -1
- package/lib/types/controllers/doc-render.controller.d.ts.map +0 -1
- package/lib/types/controllers/floating-object.controller.d.ts.map +0 -1
- package/lib/types/controllers/ime-input.controller.d.ts.map +0 -1
- package/lib/types/controllers/inline-format.controller.d.ts.map +0 -1
- package/lib/types/controllers/line-break-input.controller.d.ts +0 -20
- package/lib/types/controllers/line-break-input.controller.d.ts.map +0 -1
- package/lib/types/controllers/move-cursor.controller.d.ts.map +0 -1
- package/lib/types/controllers/normal-input.controller.d.ts.map +0 -1
- package/lib/types/controllers/page-render.controller.d.ts.map +0 -1
- package/lib/types/controllers/text-selection.controller.d.ts.map +0 -1
- package/lib/types/controllers/zoom.controller.d.ts.map +0 -1
- package/lib/types/doc-plugin.d.ts.map +0 -1
- package/lib/types/index.d.ts.map +0 -1
- package/lib/types/locale/en-US.d.ts +0 -3
- package/lib/types/locale/en-US.d.ts.map +0 -1
- package/lib/types/locale/index.d.ts +0 -3
- package/lib/types/locale/index.d.ts.map +0 -1
- package/lib/types/locale/zh-CN.d.ts +0 -3
- package/lib/types/locale/zh-CN.d.ts.map +0 -1
- package/lib/types/services/clipboard/__test__/html-and-udm-convert.spec.d.ts.map +0 -1
- package/lib/types/services/clipboard/clipboard.service.d.ts.map +0 -1
- package/lib/types/services/clipboard/copy-content-cache.d.ts.map +0 -1
- package/lib/types/services/clipboard/html-to-udm/converter.d.ts.map +0 -1
- package/lib/types/services/clipboard/html-to-udm/parse-node-style.d.ts.map +0 -1
- package/lib/types/services/clipboard/html-to-udm/parse-to-dom.d.ts.map +0 -1
- package/lib/types/services/clipboard/html-to-udm/paste-plugins/plugin-lark.d.ts.map +0 -1
- package/lib/types/services/clipboard/html-to-udm/paste-plugins/plugin-word.d.ts.map +0 -1
- package/lib/types/services/clipboard/html-to-udm/paste-plugins/type.d.ts.map +0 -1
- package/lib/types/services/clipboard/html-to-udm/utils.d.ts.map +0 -1
- package/lib/types/services/clipboard/udm-to-html/convertor.d.ts.map +0 -1
- package/lib/types/services/doc-skeleton-manager.service.d.ts.map +0 -1
- package/lib/types/services/doc-view-model-manager.service.d.ts.map +0 -1
- package/lib/types/services/ime-input-manager.service.d.ts.map +0 -1
- package/lib/types/services/text-selection-manager.service.d.ts.map +0 -1
- package/lib/types/shortcuts/core-editing.shortcut.d.ts.map +0 -1
- package/lib/types/shortcuts/cursor.shortcut.d.ts.map +0 -1
- package/lib/types/views/doc-canvas-view.d.ts.map +0 -1
|
@@ -1,6 +1,20 @@
|
|
|
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
|
+
*/
|
|
1
16
|
import type { ICommand } from '@univerjs/core';
|
|
2
17
|
interface ISelectAllOperationParams {
|
|
3
18
|
}
|
|
4
19
|
export declare const SelectAllOperation: ICommand<ISelectAllOperationParams>;
|
|
5
20
|
export {};
|
|
6
|
-
//# sourceMappingURL=select-all.operation.d.ts.map
|
|
@@ -1,3 +1,18 @@
|
|
|
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
|
+
*/
|
|
1
16
|
import type { IOperation } from '@univerjs/core';
|
|
2
17
|
import type { IAccessor } from '@wendellhu/redi';
|
|
3
18
|
export interface ISetDocZoomRatioOperationParams {
|
|
@@ -6,4 +21,3 @@ export interface ISetDocZoomRatioOperationParams {
|
|
|
6
21
|
}
|
|
7
22
|
export declare const SetDocZoomRatioUndoMutationFactory: (accessor: IAccessor, params: ISetDocZoomRatioOperationParams) => ISetDocZoomRatioOperationParams;
|
|
8
23
|
export declare const SetDocZoomRatioOperation: IOperation<ISetDocZoomRatioOperationParams>;
|
|
9
|
-
//# sourceMappingURL=set-doc-zoom-ratio.operation.d.ts.map
|
|
@@ -1,9 +1,25 @@
|
|
|
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
|
+
*/
|
|
1
16
|
import type { IOperation } from '@univerjs/core';
|
|
2
|
-
import type { TextRange } from '@univerjs/engine-render';
|
|
17
|
+
import type { ITextSelectionStyle, TextRange } from '@univerjs/engine-render';
|
|
3
18
|
export interface ISetTextSelectionsOperationParams {
|
|
4
19
|
unitId: string;
|
|
5
|
-
|
|
20
|
+
subUnitId: string;
|
|
21
|
+
segmentId: string;
|
|
22
|
+
style: ITextSelectionStyle;
|
|
6
23
|
ranges: TextRange[];
|
|
7
24
|
}
|
|
8
25
|
export declare const SetTextSelectionsOperation: IOperation<ISetTextSelectionsOperationParams>;
|
|
9
|
-
//# sourceMappingURL=text-selection.operation.d.ts.map
|
|
@@ -1,14 +1,29 @@
|
|
|
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
|
+
*/
|
|
1
16
|
import { Disposable, ICommandService, IContextService, ILogService, IUniverInstanceService } from '@univerjs/core';
|
|
2
|
-
import { ITextSelectionRenderManager } from '@univerjs/engine-render';
|
|
3
17
|
import { IDocClipboardService } from '../services/clipboard/clipboard.service';
|
|
18
|
+
import { TextSelectionManagerService } from '../services/text-selection-manager.service';
|
|
4
19
|
export declare class DocClipboardController extends Disposable {
|
|
5
20
|
private readonly _logService;
|
|
6
21
|
private readonly _commandService;
|
|
7
22
|
private readonly _currentUniverService;
|
|
8
23
|
private readonly _docClipboardService;
|
|
9
|
-
private
|
|
24
|
+
private readonly _textSelectionManagerService;
|
|
10
25
|
private readonly _contextService;
|
|
11
|
-
constructor(_logService: ILogService, _commandService: ICommandService, _currentUniverService: IUniverInstanceService, _docClipboardService: IDocClipboardService,
|
|
26
|
+
constructor(_logService: ILogService, _commandService: ICommandService, _currentUniverService: IUniverInstanceService, _docClipboardService: IDocClipboardService, _textSelectionManagerService: TextSelectionManagerService, _contextService: IContextService);
|
|
12
27
|
initialize(): void;
|
|
13
28
|
private _commandExecutedListener;
|
|
14
29
|
private _handlePaste;
|
|
@@ -16,4 +31,3 @@ export declare class DocClipboardController extends Disposable {
|
|
|
16
31
|
private _handleCopy;
|
|
17
32
|
private _handleCut;
|
|
18
33
|
}
|
|
19
|
-
//# sourceMappingURL=clipboard.controller.d.ts.map
|
|
@@ -1,5 +1,19 @@
|
|
|
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
|
+
*/
|
|
1
16
|
import { Disposable, ICommandService } from '@univerjs/core';
|
|
2
|
-
import type { DocumentSkeleton, IRender } from '@univerjs/engine-render';
|
|
3
17
|
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
4
18
|
import { DocSkeletonManagerService } from '../services/doc-skeleton-manager.service';
|
|
5
19
|
export declare class DocRenderController extends Disposable {
|
|
@@ -8,7 +22,6 @@ export declare class DocRenderController extends Disposable {
|
|
|
8
22
|
private readonly _commandService;
|
|
9
23
|
constructor(_docSkeletonManagerService: DocSkeletonManagerService, _renderManagerService: IRenderManagerService, _commandService: ICommandService);
|
|
10
24
|
private _initialRenderRefresh;
|
|
11
|
-
|
|
25
|
+
private _recalculateSizeBySkeleton;
|
|
12
26
|
private _commandExecutedListener;
|
|
13
27
|
}
|
|
14
|
-
//# sourceMappingURL=doc-render.controller.d.ts.map
|
|
@@ -1,3 +1,18 @@
|
|
|
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
|
+
*/
|
|
1
16
|
import { Disposable, ICommandService, IFloatingObjectManagerService, IUniverInstanceService } from '@univerjs/core';
|
|
2
17
|
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
3
18
|
import { DocSkeletonManagerService } from '../services/doc-skeleton-manager.service';
|
|
@@ -16,4 +31,3 @@ export declare class FloatingObjectController extends Disposable {
|
|
|
16
31
|
private _commandExecutedListener;
|
|
17
32
|
private _refreshFloatingObject;
|
|
18
33
|
}
|
|
19
|
-
//# sourceMappingURL=floating-object.controller.d.ts.map
|
|
@@ -1,14 +1,27 @@
|
|
|
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
|
+
*/
|
|
1
16
|
import { Disposable, ICommandService, IUniverInstanceService } from '@univerjs/core';
|
|
2
17
|
import { IRenderManagerService, ITextSelectionRenderManager } from '@univerjs/engine-render';
|
|
3
18
|
import { DocSkeletonManagerService } from '../services/doc-skeleton-manager.service';
|
|
4
19
|
import { IMEInputManagerService } from '../services/ime-input-manager.service';
|
|
5
|
-
import { TextSelectionManagerService } from '../services/text-selection-manager.service';
|
|
6
20
|
export declare class IMEInputController extends Disposable {
|
|
7
21
|
private readonly _docSkeletonManagerService;
|
|
8
22
|
private readonly _currentUniverService;
|
|
9
23
|
private readonly _renderManagerService;
|
|
10
24
|
private readonly _textSelectionRenderManager;
|
|
11
|
-
private readonly _textSelectionManagerService;
|
|
12
25
|
private readonly _imeInputManagerService;
|
|
13
26
|
private readonly _commandService;
|
|
14
27
|
private _previousIMEContent;
|
|
@@ -16,7 +29,7 @@ export declare class IMEInputController extends Disposable {
|
|
|
16
29
|
private _onStartSubscription;
|
|
17
30
|
private _onUpdateSubscription;
|
|
18
31
|
private _onEndSubscription;
|
|
19
|
-
constructor(_docSkeletonManagerService: DocSkeletonManagerService, _currentUniverService: IUniverInstanceService, _renderManagerService: IRenderManagerService, _textSelectionRenderManager: ITextSelectionRenderManager,
|
|
32
|
+
constructor(_docSkeletonManagerService: DocSkeletonManagerService, _currentUniverService: IUniverInstanceService, _renderManagerService: IRenderManagerService, _textSelectionRenderManager: ITextSelectionRenderManager, _imeInputManagerService: IMEInputManagerService, _commandService: ICommandService);
|
|
20
33
|
dispose(): void;
|
|
21
34
|
private _initialize;
|
|
22
35
|
private _initialOnCompositionstart;
|
|
@@ -26,4 +39,3 @@ export declare class IMEInputController extends Disposable {
|
|
|
26
39
|
private _resetIME;
|
|
27
40
|
private _getDocObject;
|
|
28
41
|
}
|
|
29
|
-
//# sourceMappingURL=ime-input.controller.d.ts.map
|
|
@@ -1,5 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 } from '@univerjs/core';
|
|
3
17
|
import { TextSelectionManagerService } from '../services/text-selection-manager.service';
|
|
4
18
|
/**
|
|
5
19
|
* Used to manage the addition and removal of inline styles,
|
|
@@ -7,12 +21,9 @@ import { TextSelectionManagerService } from '../services/text-selection-manager.
|
|
|
7
21
|
* some of the logic may be moved to the command, as the command is testable.
|
|
8
22
|
*/
|
|
9
23
|
export declare class InlineFormatController extends Disposable {
|
|
10
|
-
private readonly _currentUniverService;
|
|
11
|
-
private readonly _textSelectionRenderManager;
|
|
12
24
|
private readonly _textSelectionManagerService;
|
|
13
25
|
private readonly _commandService;
|
|
14
|
-
constructor(
|
|
26
|
+
constructor(_textSelectionManagerService: TextSelectionManagerService, _commandService: ICommandService);
|
|
15
27
|
private _commandExecutedListener;
|
|
16
28
|
private _handleInlineFormat;
|
|
17
29
|
}
|
|
18
|
-
//# sourceMappingURL=inline-format.controller.d.ts.map
|
|
@@ -1,16 +1,30 @@
|
|
|
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
|
+
*/
|
|
1
16
|
import { Disposable, ICommandService, IUniverInstanceService } from '@univerjs/core';
|
|
2
|
-
import { IRenderManagerService
|
|
17
|
+
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
3
18
|
import { DocSkeletonManagerService } from '../services/doc-skeleton-manager.service';
|
|
4
19
|
import { TextSelectionManagerService } from '../services/text-selection-manager.service';
|
|
5
20
|
export declare class MoveCursorController extends Disposable {
|
|
6
21
|
private readonly _docSkeletonManagerService;
|
|
7
22
|
private readonly _currentUniverService;
|
|
8
23
|
private readonly _renderManagerService;
|
|
9
|
-
private readonly _textSelectionRenderManager;
|
|
10
24
|
private readonly _textSelectionManagerService;
|
|
11
25
|
private readonly _commandService;
|
|
12
26
|
private _onInputSubscription;
|
|
13
|
-
constructor(_docSkeletonManagerService: DocSkeletonManagerService, _currentUniverService: IUniverInstanceService, _renderManagerService: IRenderManagerService,
|
|
27
|
+
constructor(_docSkeletonManagerService: DocSkeletonManagerService, _currentUniverService: IUniverInstanceService, _renderManagerService: IRenderManagerService, _textSelectionManagerService: TextSelectionManagerService, _commandService: ICommandService);
|
|
14
28
|
dispose(): void;
|
|
15
29
|
private _initialize;
|
|
16
30
|
private _commandExecutedListener;
|
|
@@ -22,4 +36,3 @@ export declare class MoveCursorController extends Disposable {
|
|
|
22
36
|
private _getNextOrPrevLine;
|
|
23
37
|
private _getDocObject;
|
|
24
38
|
}
|
|
25
|
-
//# sourceMappingURL=move-cursor.controller.d.ts.map
|
|
@@ -1,20 +1,32 @@
|
|
|
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
|
+
*/
|
|
1
16
|
import { Disposable, ICommandService, IUniverInstanceService } from '@univerjs/core';
|
|
2
17
|
import { IRenderManagerService, ITextSelectionRenderManager } from '@univerjs/engine-render';
|
|
3
18
|
import { DocSkeletonManagerService } from '../services/doc-skeleton-manager.service';
|
|
4
|
-
import { TextSelectionManagerService } from '../services/text-selection-manager.service';
|
|
5
19
|
export declare class NormalInputController extends Disposable {
|
|
6
20
|
private readonly _docSkeletonManagerService;
|
|
7
21
|
private readonly _currentUniverService;
|
|
8
22
|
private readonly _renderManagerService;
|
|
9
23
|
private readonly _textSelectionRenderManager;
|
|
10
|
-
private readonly _textSelectionManagerService;
|
|
11
24
|
private readonly _commandService;
|
|
12
25
|
private _onInputSubscription;
|
|
13
|
-
constructor(_docSkeletonManagerService: DocSkeletonManagerService, _currentUniverService: IUniverInstanceService, _renderManagerService: IRenderManagerService, _textSelectionRenderManager: ITextSelectionRenderManager,
|
|
26
|
+
constructor(_docSkeletonManagerService: DocSkeletonManagerService, _currentUniverService: IUniverInstanceService, _renderManagerService: IRenderManagerService, _textSelectionRenderManager: ITextSelectionRenderManager, _commandService: ICommandService);
|
|
14
27
|
dispose(): void;
|
|
15
28
|
private _initialize;
|
|
16
29
|
private _initialNormalInput;
|
|
17
30
|
private _commandExecutedListener;
|
|
18
31
|
private _getDocObject;
|
|
19
32
|
}
|
|
20
|
-
//# sourceMappingURL=normal-input.controller.d.ts.map
|
|
@@ -1,10 +1,25 @@
|
|
|
1
|
-
|
|
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';
|
|
2
17
|
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
3
18
|
export declare class PageRenderController extends Disposable {
|
|
4
19
|
private readonly _renderManagerService;
|
|
5
|
-
|
|
20
|
+
private readonly _currentUniverService;
|
|
21
|
+
constructor(_renderManagerService: IRenderManagerService, _currentUniverService: IUniverInstanceService);
|
|
6
22
|
private _initialize;
|
|
7
23
|
private _initialRenderRefresh;
|
|
8
24
|
private _commandExecutedListener;
|
|
9
25
|
}
|
|
10
|
-
//# sourceMappingURL=page-render.controller.d.ts.map
|
|
@@ -1,5 +1,21 @@
|
|
|
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
|
+
*/
|
|
1
16
|
import { Disposable, ICommandService, IUniverInstanceService } from '@univerjs/core';
|
|
2
17
|
import { IRenderManagerService, ITextSelectionRenderManager } from '@univerjs/engine-render';
|
|
18
|
+
import { LayoutService } from '@univerjs/ui';
|
|
3
19
|
import { DocSkeletonManagerService } from '../services/doc-skeleton-manager.service';
|
|
4
20
|
import { TextSelectionManagerService } from '../services/text-selection-manager.service';
|
|
5
21
|
export declare class TextSelectionController extends Disposable {
|
|
@@ -9,20 +25,18 @@ export declare class TextSelectionController extends Disposable {
|
|
|
9
25
|
private readonly _renderManagerService;
|
|
10
26
|
private readonly _textSelectionRenderManager;
|
|
11
27
|
private readonly _textSelectionManagerService;
|
|
28
|
+
private readonly _layoutService?;
|
|
12
29
|
private _moveInObserver;
|
|
13
30
|
private _moveOutObserver;
|
|
14
31
|
private _downObserver;
|
|
15
32
|
private _dblClickObserver;
|
|
16
33
|
private _tripleClickObserver;
|
|
17
34
|
private _loadedMap;
|
|
18
|
-
constructor(_docSkeletonManagerService: DocSkeletonManagerService, _currentUniverService: IUniverInstanceService, _commandService: ICommandService, _renderManagerService: IRenderManagerService, _textSelectionRenderManager: ITextSelectionRenderManager, _textSelectionManagerService: TextSelectionManagerService);
|
|
19
|
-
dispose(): void;
|
|
35
|
+
constructor(_docSkeletonManagerService: DocSkeletonManagerService, _currentUniverService: IUniverInstanceService, _commandService: ICommandService, _renderManagerService: IRenderManagerService, _textSelectionRenderManager: ITextSelectionRenderManager, _textSelectionManagerService: TextSelectionManagerService, _layoutService?: LayoutService | undefined);
|
|
20
36
|
private _initialize;
|
|
37
|
+
dispose(): void;
|
|
21
38
|
private _initialMain;
|
|
22
|
-
private _onChangeListener;
|
|
23
|
-
private _userActionSyncListener;
|
|
24
|
-
private _getDocObjectById;
|
|
25
39
|
private _commandExecutedListener;
|
|
26
40
|
private _skeletonListener;
|
|
41
|
+
private _getDocObjectById;
|
|
27
42
|
}
|
|
28
|
-
//# sourceMappingURL=text-selection.controller.d.ts.map
|
|
@@ -1,3 +1,18 @@
|
|
|
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
|
+
*/
|
|
1
16
|
import { Disposable, ICommandService, IUniverInstanceService } from '@univerjs/core';
|
|
2
17
|
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
3
18
|
import { DocSkeletonManagerService } from '../services/doc-skeleton-manager.service';
|
|
@@ -19,4 +34,3 @@ export declare class ZoomController extends Disposable {
|
|
|
19
34
|
private _calculatePagePosition;
|
|
20
35
|
private _getDocObject;
|
|
21
36
|
}
|
|
22
|
-
//# sourceMappingURL=zoom.controller.d.ts.map
|
|
@@ -1,19 +1,33 @@
|
|
|
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
|
+
*/
|
|
1
16
|
import { IConfigService, IUniverInstanceService, LocaleService, Plugin, PluginType } from '@univerjs/core';
|
|
2
17
|
import { Injector } from '@wendellhu/redi';
|
|
3
|
-
export interface
|
|
18
|
+
export interface IUniverDocsConfig {
|
|
4
19
|
hasScroll?: boolean;
|
|
5
20
|
}
|
|
6
|
-
export declare class
|
|
21
|
+
export declare class UniverDocsPlugin extends Plugin {
|
|
7
22
|
_injector: Injector;
|
|
8
23
|
private readonly _localeService;
|
|
9
24
|
private readonly _configService;
|
|
10
25
|
private readonly _currentUniverService;
|
|
11
26
|
static type: PluginType;
|
|
12
27
|
private _config;
|
|
13
|
-
constructor(config: Partial<
|
|
28
|
+
constructor(config: Partial<IUniverDocsConfig> | undefined, _injector: Injector, _localeService: LocaleService, _configService: IConfigService, _currentUniverService: IUniverInstanceService);
|
|
14
29
|
initialize(): void;
|
|
15
30
|
private _initializeCommands;
|
|
16
31
|
onReady(): void;
|
|
17
32
|
private _initializeDependencies;
|
|
18
33
|
}
|
|
19
|
-
//# sourceMappingURL=doc-plugin.d.ts.map
|
package/lib/types/index.d.ts
CHANGED
|
@@ -1,15 +1,33 @@
|
|
|
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
|
+
*/
|
|
1
16
|
export { getDocObject } from './basics/component-tools';
|
|
2
17
|
export * from './basics/docs-view-key';
|
|
18
|
+
export { BreakLineCommand } from './commands/commands/break-line.command';
|
|
3
19
|
export { DocCopyCommand, DocCutCommand, DocPasteCommand } from './commands/commands/clipboard.command';
|
|
4
|
-
export {
|
|
20
|
+
export { DeleteCommand, type ICoverCommandParams, type IDeleteCommandParams, type IInsertCommandParams, InsertCommand, type IUpdateCommandParams, UpdateCommand, } from './commands/commands/core-editing.command';
|
|
21
|
+
export { DeleteLeftCommand, DeleteRightCommand } from './commands/commands/delete.command';
|
|
5
22
|
export { type IIMEInputCommandParams, IMEInputCommand } from './commands/commands/ime-input.command';
|
|
6
|
-
export { SetInlineFormatBoldCommand, SetInlineFormatCommand, SetInlineFormatFontFamilyCommand, SetInlineFormatFontSizeCommand, SetInlineFormatItalicCommand, SetInlineFormatStrikethroughCommand, SetInlineFormatTextColorCommand, SetInlineFormatUnderlineCommand, } from './commands/commands/inline-format.command';
|
|
23
|
+
export { SetInlineFormatBoldCommand, SetInlineFormatCommand, SetInlineFormatFontFamilyCommand, SetInlineFormatFontSizeCommand, SetInlineFormatItalicCommand, SetInlineFormatStrikethroughCommand, SetInlineFormatSubscriptCommand, SetInlineFormatSuperscriptCommand, SetInlineFormatTextColorCommand, SetInlineFormatUnderlineCommand, } from './commands/commands/inline-format.command';
|
|
24
|
+
export { BulletListCommand, OrderListCommand } from './commands/commands/list.command';
|
|
7
25
|
export { CoverContentCommand, ReplaceContentCommand } from './commands/commands/replace-content.command';
|
|
8
26
|
export { type IRichTextEditingMutationParams, RichTextEditingMutation, } from './commands/mutations/core-editing.mutation';
|
|
9
27
|
export { MoveCursorOperation, MoveSelectionOperation } from './commands/operations/cursor.operation';
|
|
10
28
|
export { type ISetTextSelectionsOperationParams, SetTextSelectionsOperation, } from './commands/operations/text-selection.operation';
|
|
11
|
-
export {
|
|
29
|
+
export { type IUniverDocsConfig, UniverDocsPlugin } from './doc-plugin';
|
|
12
30
|
export { DocSkeletonManagerService } from './services/doc-skeleton-manager.service';
|
|
13
31
|
export { DocViewModelManagerService } from './services/doc-view-model-manager.service';
|
|
14
32
|
export { TextSelectionManagerService } from './services/text-selection-manager.service';
|
|
15
|
-
|
|
33
|
+
export { DocCanvasView } from './views/doc-canvas-view';
|
|
@@ -1,2 +1,16 @@
|
|
|
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
|
+
*/
|
|
1
16
|
export {};
|
|
2
|
-
//# sourceMappingURL=html-and-udm-convert.spec.d.ts.map
|
|
@@ -1,3 +1,18 @@
|
|
|
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
|
+
*/
|
|
1
16
|
import type { IDocumentBody } from '@univerjs/core';
|
|
2
17
|
import { Disposable, IUniverInstanceService } from '@univerjs/core';
|
|
3
18
|
import { IClipboardInterfaceService } from '@univerjs/ui';
|
|
@@ -25,4 +40,3 @@ export declare class DocClipboardService extends Disposable implements IDocClipb
|
|
|
25
40
|
setClipboardData(documentBodyList: IDocumentBody[]): Promise<void>;
|
|
26
41
|
addClipboardHook(hook: IDocClipboardHook): IDisposable;
|
|
27
42
|
}
|
|
28
|
-
//# sourceMappingURL=clipboard.service.d.ts.map
|
|
@@ -1,3 +1,18 @@
|
|
|
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
|
+
*/
|
|
1
16
|
import type { IDocumentBody } from '@univerjs/core';
|
|
2
17
|
export declare function genId(): string;
|
|
3
18
|
export declare function extractId(html: string): string | null;
|
|
@@ -8,4 +23,3 @@ export declare class CopyContentCache {
|
|
|
8
23
|
clear(): void;
|
|
9
24
|
}
|
|
10
25
|
export declare const copyContentCache: CopyContentCache;
|
|
11
|
-
//# sourceMappingURL=copy-content-cache.d.ts.map
|
|
@@ -1,3 +1,18 @@
|
|
|
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
|
+
*/
|
|
1
16
|
import type { IDocumentBody } from '@univerjs/core';
|
|
2
17
|
import type { IPastePlugin } from './paste-plugins/type';
|
|
3
18
|
/**
|
|
@@ -13,4 +28,3 @@ export declare class HtmlToUDMService {
|
|
|
13
28
|
convert(html: string): IDocumentBody;
|
|
14
29
|
private process;
|
|
15
30
|
}
|
|
16
|
-
//# sourceMappingURL=converter.d.ts.map
|
|
@@ -1,3 +1,17 @@
|
|
|
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
|
+
*/
|
|
1
16
|
import type { ITextStyle } from '@univerjs/core';
|
|
2
17
|
export declare function extractNodeStyle(node: HTMLElement): ITextStyle;
|
|
3
|
-
//# sourceMappingURL=parse-node-style.d.ts.map
|
|
@@ -1,2 +1,16 @@
|
|
|
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
|
+
*/
|
|
1
16
|
export default function parseToDom(rawHtml: string): Element | null;
|
|
2
|
-
//# sourceMappingURL=parse-to-dom.d.ts.map
|