@univerjs/preset-docs-core 0.8.0-nightly.202506031608 → 0.8.0-nightly.202506051607
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 +1 -1
- package/lib/es/index.js +20 -18
- package/lib/index.js +20 -18
- package/lib/types/umd.d.ts +1 -1
- package/lib/umd/index.js +10 -10
- package/package.json +9 -9
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("@univerjs/docs"),t=require("@univerjs/docs-ui"),o=require("@univerjs/engine-formula"),n=require("@univerjs/engine-render"),c=require("@univerjs/network"),i=require("@univerjs/ui");require("@univerjs/network/lib/facade");require("@univerjs/docs-ui/lib/facade");function
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("@univerjs/docs"),t=require("@univerjs/docs-ui"),o=require("@univerjs/engine-formula"),n=require("@univerjs/engine-render"),c=require("@univerjs/network"),i=require("@univerjs/ui");require("@univerjs/network/lib/facade");require("@univerjs/docs-ui/lib/facade");function O(e={}){const{container:u="app",header:a,footer:l,toolbar:s,ribbonType:b,menu:p,contextMenu:f,disableAutoFocus:y}=e;return{plugins:[c.UniverNetworkPlugin,r.UniverDocsPlugin,n.UniverRenderEnginePlugin,o.UniverFormulaEnginePlugin,[i.UniverUIPlugin,{container:u,header:a,footer:l,toolbar:s,ribbonType:b,menu:p,contextMenu:f,disableAutoFocus:y}],t.UniverDocsUIPlugin]}}exports.UniverDocsCorePreset=O;Object.keys(r).forEach(e=>{e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>r[e]})});Object.keys(t).forEach(e=>{e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>t[e]})});Object.keys(o).forEach(e=>{e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>o[e]})});Object.keys(n).forEach(e=>{e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>n[e]})});Object.keys(c).forEach(e=>{e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>c[e]})});Object.keys(i).forEach(e=>{e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>i[e]})});
|
package/lib/es/index.js
CHANGED
|
@@ -1,46 +1,48 @@
|
|
|
1
|
-
import { UniverDocsPlugin as
|
|
1
|
+
import { UniverDocsPlugin as u } from "@univerjs/docs";
|
|
2
2
|
export * from "@univerjs/docs";
|
|
3
|
-
import { UniverDocsUIPlugin as
|
|
3
|
+
import { UniverDocsUIPlugin as l } from "@univerjs/docs-ui";
|
|
4
4
|
export * from "@univerjs/docs-ui";
|
|
5
|
-
import { UniverFormulaEnginePlugin as
|
|
5
|
+
import { UniverFormulaEnginePlugin as g } from "@univerjs/engine-formula";
|
|
6
6
|
export * from "@univerjs/engine-formula";
|
|
7
|
-
import { UniverRenderEnginePlugin as
|
|
7
|
+
import { UniverRenderEnginePlugin as U } from "@univerjs/engine-render";
|
|
8
8
|
export * from "@univerjs/engine-render";
|
|
9
|
-
import { UniverNetworkPlugin as
|
|
9
|
+
import { UniverNetworkPlugin as c } from "@univerjs/network";
|
|
10
10
|
export * from "@univerjs/network";
|
|
11
|
-
import { UniverUIPlugin as
|
|
11
|
+
import { UniverUIPlugin as s } from "@univerjs/ui";
|
|
12
12
|
export * from "@univerjs/ui";
|
|
13
13
|
import "@univerjs/network/lib/facade";
|
|
14
14
|
import "@univerjs/docs-ui/lib/facade";
|
|
15
|
-
function
|
|
15
|
+
function F(r = {}) {
|
|
16
16
|
const {
|
|
17
17
|
container: o = "app",
|
|
18
18
|
header: e,
|
|
19
19
|
footer: n,
|
|
20
20
|
toolbar: i,
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
ribbonType: t,
|
|
22
|
+
menu: m,
|
|
23
|
+
contextMenu: p,
|
|
24
|
+
disableAutoFocus: f
|
|
24
25
|
} = r;
|
|
25
26
|
return {
|
|
26
27
|
plugins: [
|
|
28
|
+
c,
|
|
29
|
+
u,
|
|
27
30
|
U,
|
|
28
|
-
f,
|
|
29
31
|
g,
|
|
30
|
-
|
|
31
|
-
[c, {
|
|
32
|
+
[s, {
|
|
32
33
|
container: o,
|
|
33
34
|
header: e,
|
|
34
35
|
footer: n,
|
|
35
36
|
toolbar: i,
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
ribbonType: t,
|
|
38
|
+
menu: m,
|
|
39
|
+
contextMenu: p,
|
|
40
|
+
disableAutoFocus: f
|
|
39
41
|
}],
|
|
40
|
-
|
|
42
|
+
l
|
|
41
43
|
]
|
|
42
44
|
};
|
|
43
45
|
}
|
|
44
46
|
export {
|
|
45
|
-
|
|
47
|
+
F as UniverDocsCorePreset
|
|
46
48
|
};
|
package/lib/index.js
CHANGED
|
@@ -1,46 +1,48 @@
|
|
|
1
|
-
import { UniverDocsPlugin as
|
|
1
|
+
import { UniverDocsPlugin as u } from "@univerjs/docs";
|
|
2
2
|
export * from "@univerjs/docs";
|
|
3
|
-
import { UniverDocsUIPlugin as
|
|
3
|
+
import { UniverDocsUIPlugin as l } from "@univerjs/docs-ui";
|
|
4
4
|
export * from "@univerjs/docs-ui";
|
|
5
|
-
import { UniverFormulaEnginePlugin as
|
|
5
|
+
import { UniverFormulaEnginePlugin as g } from "@univerjs/engine-formula";
|
|
6
6
|
export * from "@univerjs/engine-formula";
|
|
7
|
-
import { UniverRenderEnginePlugin as
|
|
7
|
+
import { UniverRenderEnginePlugin as U } from "@univerjs/engine-render";
|
|
8
8
|
export * from "@univerjs/engine-render";
|
|
9
|
-
import { UniverNetworkPlugin as
|
|
9
|
+
import { UniverNetworkPlugin as c } from "@univerjs/network";
|
|
10
10
|
export * from "@univerjs/network";
|
|
11
|
-
import { UniverUIPlugin as
|
|
11
|
+
import { UniverUIPlugin as s } from "@univerjs/ui";
|
|
12
12
|
export * from "@univerjs/ui";
|
|
13
13
|
import "@univerjs/network/lib/facade";
|
|
14
14
|
import "@univerjs/docs-ui/lib/facade";
|
|
15
|
-
function
|
|
15
|
+
function F(r = {}) {
|
|
16
16
|
const {
|
|
17
17
|
container: o = "app",
|
|
18
18
|
header: e,
|
|
19
19
|
footer: n,
|
|
20
20
|
toolbar: i,
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
ribbonType: t,
|
|
22
|
+
menu: m,
|
|
23
|
+
contextMenu: p,
|
|
24
|
+
disableAutoFocus: f
|
|
24
25
|
} = r;
|
|
25
26
|
return {
|
|
26
27
|
plugins: [
|
|
28
|
+
c,
|
|
29
|
+
u,
|
|
27
30
|
U,
|
|
28
|
-
f,
|
|
29
31
|
g,
|
|
30
|
-
|
|
31
|
-
[c, {
|
|
32
|
+
[s, {
|
|
32
33
|
container: o,
|
|
33
34
|
header: e,
|
|
34
35
|
footer: n,
|
|
35
36
|
toolbar: i,
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
ribbonType: t,
|
|
38
|
+
menu: m,
|
|
39
|
+
contextMenu: p,
|
|
40
|
+
disableAutoFocus: f
|
|
39
41
|
}],
|
|
40
|
-
|
|
42
|
+
l
|
|
41
43
|
]
|
|
42
44
|
};
|
|
43
45
|
}
|
|
44
46
|
export {
|
|
45
|
-
|
|
47
|
+
F as UniverDocsCorePreset
|
|
46
48
|
};
|
package/lib/types/umd.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import '@univerjs/ui/lib/index.css';
|
|
|
7
7
|
import '@univerjs/docs-ui/lib/index.css';
|
|
8
8
|
export type * from '@univerjs/docs-ui/lib/facade';
|
|
9
9
|
export type * from '@univerjs/network/lib/facade';
|
|
10
|
-
export interface IUniverDocsCorePresetConfig extends Pick<IUniverUIConfig, 'container' | 'header' | 'footer' | 'toolbar' | 'menu' | 'contextMenu' | 'disableAutoFocus'> {
|
|
10
|
+
export interface IUniverDocsCorePresetConfig extends Pick<IUniverUIConfig, 'container' | 'header' | 'footer' | 'toolbar' | 'ribbonType' | 'menu' | 'contextMenu' | 'disableAutoFocus'> {
|
|
11
11
|
collaboration?: true;
|
|
12
12
|
}
|
|
13
13
|
export declare function UniverDocsCorePreset(config?: Partial<IUniverDocsCorePresetConfig>): IPreset;
|