@univerjs/preset-docs-core 1.0.0-rc.0 → 1.0.1
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/lib/cjs/index.js +2 -2
- package/lib/cjs/locales/ar-SA.js +1 -1
- package/lib/cjs/locales/ca-ES.js +1 -1
- package/lib/cjs/locales/de-DE.js +1 -1
- package/lib/cjs/locales/en-US.js +1 -1
- package/lib/cjs/locales/es-ES.js +1 -1
- package/lib/cjs/locales/fa-IR.js +1 -1
- package/lib/cjs/locales/fr-FR.js +1 -1
- package/lib/cjs/locales/id-ID.js +1 -1
- package/lib/cjs/locales/it-IT.js +1 -1
- package/lib/cjs/locales/ja-JP.js +1 -1
- package/lib/cjs/locales/ko-KR.js +1 -1
- package/lib/cjs/locales/pl-PL.js +1 -1
- package/lib/cjs/locales/pt-BR.js +1 -1
- package/lib/cjs/locales/ru-RU.js +1 -1
- package/lib/cjs/locales/sk-SK.js +1 -1
- package/lib/cjs/locales/vi-VN.js +1 -1
- package/lib/cjs/locales/zh-CN.js +1 -1
- package/lib/cjs/locales/zh-HK.js +1 -1
- package/lib/cjs/locales/zh-TW.js +1 -1
- package/lib/cjs/{rolldown-runtime-C_NdSu1c.js → rolldown-runtime-C24Yb2bl.js} +1 -2
- package/lib/es/index.js +2 -2
- package/lib/index.css +467 -118
- package/lib/index.js +2 -2
- package/lib/types/preset.d.ts +2 -1
- package/package.json +12 -12
package/lib/index.js
CHANGED
|
@@ -23,7 +23,7 @@ export * from "@univerjs/design"
|
|
|
23
23
|
|
|
24
24
|
//#region src/preset.ts
|
|
25
25
|
function UniverDocsCorePreset(config = {}) {
|
|
26
|
-
const { container = "app", header, footer, toolbar, ribbonType, menu, contextMenu, disableAutoFocus } = config;
|
|
26
|
+
const { container = "app", header, footer, toolbar, ribbonType, menu, contextMenu, disableAutoFocus, toc } = config;
|
|
27
27
|
return { plugins: [
|
|
28
28
|
UniverNetworkPlugin,
|
|
29
29
|
UniverDocsPlugin,
|
|
@@ -38,7 +38,7 @@ function UniverDocsCorePreset(config = {}) {
|
|
|
38
38
|
contextMenu,
|
|
39
39
|
disableAutoFocus
|
|
40
40
|
}],
|
|
41
|
-
UniverDocsUIPlugin,
|
|
41
|
+
[UniverDocsUIPlugin, { toc }],
|
|
42
42
|
UniverFormulaEnginePlugin
|
|
43
43
|
] };
|
|
44
44
|
}
|
package/lib/types/preset.d.ts
CHANGED
|
@@ -13,13 +13,14 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
+
import type { IUniverDocsUIConfig } from '@univerjs/docs-ui';
|
|
16
17
|
import type { IPreset } from '@univerjs/presets';
|
|
17
18
|
import type { IUniverUIConfig } from '@univerjs/ui';
|
|
18
19
|
import '@univerjs/network/facade';
|
|
19
20
|
import '@univerjs/docs-ui/facade';
|
|
20
21
|
export type * from '@univerjs/docs-ui/facade';
|
|
21
22
|
export type * from '@univerjs/network/facade';
|
|
22
|
-
export interface IUniverDocsCorePresetConfig extends Pick<IUniverUIConfig, 'container' | 'header' | 'footer' | 'toolbar' | 'ribbonType' | 'menu' | 'contextMenu' | 'disableAutoFocus'> {
|
|
23
|
+
export interface IUniverDocsCorePresetConfig extends Pick<IUniverUIConfig, 'container' | 'header' | 'footer' | 'toolbar' | 'ribbonType' | 'menu' | 'contextMenu' | 'disableAutoFocus'>, Pick<IUniverDocsUIConfig, 'toc'> {
|
|
23
24
|
collaboration?: true;
|
|
24
25
|
}
|
|
25
26
|
export declare function UniverDocsCorePreset(config?: Partial<IUniverDocsCorePresetConfig>): IPreset;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs/preset-docs-core",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Preset for core Univer Docs editing and UI features.",
|
|
6
6
|
"author": "DreamNum Co., Ltd. <developer@univer.ai>",
|
|
@@ -56,22 +56,22 @@
|
|
|
56
56
|
"rxjs": ">=7.0.0"
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"@univerjs/design": "1.0.
|
|
60
|
-
"@univerjs/docs": "1.0.
|
|
61
|
-
"@univerjs/
|
|
62
|
-
"@univerjs/
|
|
63
|
-
"@univerjs/
|
|
64
|
-
"@univerjs/
|
|
65
|
-
"@univerjs/
|
|
59
|
+
"@univerjs/design": "1.0.1",
|
|
60
|
+
"@univerjs/docs": "1.0.1",
|
|
61
|
+
"@univerjs/docs-ui": "1.0.1",
|
|
62
|
+
"@univerjs/engine-formula": "1.0.1",
|
|
63
|
+
"@univerjs/engine-render": "1.0.1",
|
|
64
|
+
"@univerjs/network": "1.0.1",
|
|
65
|
+
"@univerjs/ui": "1.0.1"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
|
+
"@univerjs-infra/shared": "1.0.1",
|
|
69
|
+
"@univerjs/core": "1.0.1",
|
|
70
|
+
"@univerjs/presets": "1.0.1",
|
|
68
71
|
"react": "18.3.1",
|
|
69
72
|
"react-dom": "18.3.1",
|
|
70
73
|
"rxjs": "^7.8.2",
|
|
71
|
-
"typescript": "^6.0.3"
|
|
72
|
-
"@univerjs-infra/shared": "1.0.0-rc.0",
|
|
73
|
-
"@univerjs/core": "1.0.0-rc.0",
|
|
74
|
-
"@univerjs/presets": "1.0.0-rc.0"
|
|
74
|
+
"typescript": "^6.0.3"
|
|
75
75
|
},
|
|
76
76
|
"scripts": {
|
|
77
77
|
"build:bundle": "univer-cli preset build --cleanup",
|