@univerjs/sheets-zen-editor 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.
@@ -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 { ICommand } from '@univerjs/core';
1
+ import { ICommand } from '@univerjs/core';
2
+
17
3
  export declare const CancelZenEditCommand: ICommand;
18
4
  export declare const ConfirmZenEditCommand: ICommand;
@@ -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 { IOperation } from '@univerjs/core';
1
+ import { IOperation } from '@univerjs/core';
2
+
17
3
  export declare const OpenZenEditorOperation: IOperation;
@@ -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 { IContextService } from '@univerjs/core';
17
- import { type IShortcutItem } from '@univerjs/ui';
1
+ import { IShortcutItem } from '@univerjs/ui';
2
+ import { IContextService } from '@univerjs/core';
3
+
18
4
  export declare const ZenEditorConfirmShortcut: IShortcutItem;
19
5
  export declare const ZenEditorCancelShortcut: IShortcutItem;
20
6
  /**
@@ -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, ICommandService } from '@univerjs/core';
17
- import { IMenuService, IShortcutService, IZenZoneService } from '@univerjs/ui';
18
1
  import { Injector } from '@wendellhu/redi';
2
+ import { IMenuService, IShortcutService, IZenZoneService } from '@univerjs/ui';
3
+ import { Disposable, ICommandService } from '@univerjs/core';
4
+
19
5
  export declare class ZenEditorUIController extends Disposable {
20
6
  private readonly _injector;
21
7
  private readonly _zenZoneService;
@@ -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 { ICommandService, IUndoRedoService, IUniverInstanceService, RxDisposable } from '@univerjs/core';
17
- import { DocSkeletonManagerService, DocViewModelManagerService, TextSelectionManagerService } from '@univerjs/docs';
18
- import { IRenderManagerService } from '@univerjs/engine-render';
19
- import { IEditorBridgeService } from '@univerjs/sheets-ui';
20
- import { IZenZoneService } from '@univerjs/ui';
21
1
  import { IZenEditorManagerService } from '../services/zen-editor.service';
2
+ import { IZenZoneService } from '@univerjs/ui';
3
+ import { IEditorBridgeService } from '@univerjs/sheets-ui';
4
+ import { IRenderManagerService } from '@univerjs/engine-render';
5
+ import { DocSkeletonManagerService, DocViewModelManagerService, TextSelectionManagerService } from '@univerjs/docs';
6
+ import { ICommandService, IUndoRedoService, IUniverInstanceService, RxDisposable } from '@univerjs/core';
7
+
22
8
  export declare const DOCS_ZEN_EDITOR_UNIT_ID_KEY = "__defaultDocumentZenEditorSpecialUnitId_20231218__";
23
9
  export declare class ZenEditorController extends RxDisposable {
24
10
  private readonly _currentUniverService;
@@ -13,5 +13,5 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- export * from './plugin';
16
+ export { UniverSheetsZenEditorPlugin } from './plugin';
17
17
  export { enUS, zhCN } from './locale';
@@ -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,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 { LocaleService, Plugin, PluginType } from '@univerjs/core';
17
1
  import { Injector } from '@wendellhu/redi';
2
+ import { LocaleService, Plugin, PluginType } from '@univerjs/core';
3
+
18
4
  export interface IUniverSheetsZenEditorPluginConfig {
19
5
  }
20
6
  export declare class UniverSheetsZenEditorPlugin extends Plugin {
@@ -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 type { Nullable } from '@univerjs/core';
17
- import type { IDisposable } from '@wendellhu/redi';
18
- import type { Observable } from 'rxjs';
1
+ import { Observable } from 'rxjs';
2
+ import { IDisposable } from '@wendellhu/redi';
3
+ import { Nullable } from '@univerjs/core';
4
+
19
5
  export interface IZenEditorManagerService {
20
6
  position$: Observable<Nullable<DOMRect>>;
21
7
  dispose(): void;
@@ -31,4 +17,4 @@ export declare class ZenEditorManagerService implements IDisposable {
31
17
  getPosition(): Readonly<Nullable<DOMRect>>;
32
18
  private _refresh;
33
19
  }
34
- export declare const IZenEditorManagerService: import("@wendellhu/redi").IdentifierDecorator<ZenEditorManagerService>;
20
+ export declare const IZenEditorManagerService: import('@wendellhu/redi').IdentifierDecorator<ZenEditorManagerService>;
@@ -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 IMenuButtonItem } from '@univerjs/ui';
1
+ import { IMenuButtonItem } from '@univerjs/ui';
2
+
17
3
  export declare function ZenEditorMenuItemFactory(): IMenuButtonItem;
@@ -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 React from 'react';
1
+ import { default as React } from 'react';
2
+
17
3
  export declare const ZEN_EDITOR_COMPONENT = "ZEN_EDITOR_PLUGIN_ZEN_EDITOR_COMPONENT";
18
4
  export declare function ZenEditor(): React.JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs/sheets-zen-editor",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "private": false,
5
5
  "description": "Zen Editor plugin for Univer Sheets.",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -57,11 +57,11 @@
57
57
  "clsx": ">=2.0.0",
58
58
  "react": ">=16.9.0",
59
59
  "rxjs": ">=7.0.0",
60
- "@univerjs/core": "0.1.4",
61
- "@univerjs/docs": "0.1.4",
62
- "@univerjs/engine-render": "0.1.4",
63
- "@univerjs/sheets-ui": "0.1.4",
64
- "@univerjs/ui": "0.1.4"
60
+ "@univerjs/core": "0.1.5",
61
+ "@univerjs/docs": "0.1.5",
62
+ "@univerjs/engine-render": "0.1.5",
63
+ "@univerjs/sheets-ui": "0.1.5",
64
+ "@univerjs/ui": "0.1.5"
65
65
  },
66
66
  "dependencies": {
67
67
  "@univerjs/icons": "^0.1.42"
@@ -72,16 +72,16 @@
72
72
  "less": "^4.2.0",
73
73
  "react": "^18.2.0",
74
74
  "rxjs": "^7.8.1",
75
- "typescript": "^5.4.2",
76
- "vite": "^5.1.6",
75
+ "typescript": "^5.4.3",
76
+ "vite": "^5.2.6",
77
77
  "vitest": "^1.4.0",
78
- "@univerjs/core": "0.1.4",
79
- "@univerjs/design": "0.1.4",
80
- "@univerjs/docs": "0.1.4",
81
- "@univerjs/shared": "0.1.4",
82
- "@univerjs/sheets-ui": "0.1.4",
83
- "@univerjs/ui": "0.1.4",
84
- "@univerjs/engine-render": "0.1.4"
78
+ "@univerjs/core": "0.1.5",
79
+ "@univerjs/docs": "0.1.5",
80
+ "@univerjs/design": "0.1.5",
81
+ "@univerjs/engine-render": "0.1.5",
82
+ "@univerjs/sheets-ui": "0.1.5",
83
+ "@univerjs/ui": "0.1.5",
84
+ "@univerjs/shared": "0.1.5"
85
85
  },
86
86
  "scripts": {
87
87
  "test": "vitest run",