@univerjs/preset-sheets-core 0.5.1 → 0.5.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.
@@ -1,20 +1,4 @@
1
- import { IUniverRPCMainThreadConfig } from '@univerjs/rpc';
2
- import { IUniverSheetsUIConfig } from '@univerjs/sheets-ui';
3
- import { IUniverUIConfig } from '@univerjs/ui';
4
- import { IPreset } from './types';
5
- import '@univerjs/sheets/facade';
6
- import '@univerjs/ui/facade';
7
- import '@univerjs/docs-ui/facade';
8
- import '@univerjs/sheets-ui/facade';
9
- import '@univerjs/engine-formula/facade';
10
- import '@univerjs/sheets-formula/facade';
11
- import '@univerjs/sheets-numfmt/facade';
12
- import '@univerjs/design/lib/index.css';
13
- import '@univerjs/ui/lib/index.css';
14
- import '@univerjs/docs-ui/lib/index.css';
15
- import '@univerjs/sheets-ui/lib/index.css';
16
- import '@univerjs/sheets-formula-ui/lib/index.css';
17
- import '@univerjs/sheets-numfmt-ui/lib/index.css';
1
+ export * from './umd';
18
2
  export * from '@univerjs/docs';
19
3
  export * from '@univerjs/docs-ui';
20
4
  export * from '@univerjs/engine-formula';
@@ -27,10 +11,3 @@ export * from '@univerjs/sheets-numfmt';
27
11
  export * from '@univerjs/sheets-numfmt-ui';
28
12
  export * from '@univerjs/sheets-ui';
29
13
  export * from '@univerjs/ui';
30
- export interface IUniverSheetsCorePresetConfig extends Pick<IUniverUIConfig, 'container' | 'header' | 'footer' | 'toolbar' | 'menu' | 'contextMenu' | 'disableAutoFocus'>, Pick<IUniverSheetsUIConfig, 'formulaBar'> {
31
- workerURL: IUniverRPCMainThreadConfig['workerURL'];
32
- }
33
- /**
34
- * This presets helps you to create a Univer sheet with open sourced features.
35
- */
36
- export declare function UniverSheetsCorePreset(config?: Partial<IUniverSheetsCorePresetConfig>): IPreset;
@@ -1,4 +1,6 @@
1
1
  import { IUniverConfig, Plugin, PluginCtor } from '@univerjs/core';
2
+ import { IUniverEngineFormulaConfig } from '@univerjs/engine-formula';
3
+ import { IUniverSheetsFormulaBaseConfig } from '@univerjs/sheets-formula';
2
4
  /**
3
5
  * A collection of plugins and their default configs.
4
6
  */
@@ -9,3 +11,7 @@ export interface IPreset {
9
11
  export interface IPresetOptions {
10
12
  lazy?: boolean;
11
13
  }
14
+ export interface IUniverFormulaConfig extends Pick<IUniverEngineFormulaConfig, 'function'>, Pick<IUniverSheetsFormulaBaseConfig, 'description'> {
15
+ }
16
+ export interface IUniverFormulaWorkerConfig extends Pick<IUniverEngineFormulaConfig, 'function'> {
17
+ }
@@ -0,0 +1,31 @@
1
+ import { IUniverRPCMainThreadConfig } from '@univerjs/rpc';
2
+ import { IUniverSheetsUIConfig } from '@univerjs/sheets-ui';
3
+ import { IUniverUIConfig } from '@univerjs/ui';
4
+ import { IPreset, IUniverFormulaConfig } from './types';
5
+ import '@univerjs/sheets/facade';
6
+ import '@univerjs/ui/facade';
7
+ import '@univerjs/docs-ui/facade';
8
+ import '@univerjs/sheets-ui/facade';
9
+ import '@univerjs/engine-formula/facade';
10
+ import '@univerjs/sheets-formula/facade';
11
+ import '@univerjs/sheets-numfmt/facade';
12
+ import '@univerjs/design/lib/index.css';
13
+ import '@univerjs/ui/lib/index.css';
14
+ import '@univerjs/docs-ui/lib/index.css';
15
+ import '@univerjs/sheets-ui/lib/index.css';
16
+ import '@univerjs/sheets-formula-ui/lib/index.css';
17
+ import '@univerjs/sheets-numfmt-ui/lib/index.css';
18
+ export interface IUniverSheetsCorePresetConfig extends Pick<IUniverUIConfig, 'container' | 'header' | 'footer' | 'toolbar' | 'menu' | 'contextMenu' | 'disableAutoFocus'>, Pick<IUniverSheetsUIConfig, 'formulaBar' | 'customComponents'> {
19
+ /**
20
+ * The formula configuration.
21
+ */
22
+ formula?: IUniverFormulaConfig;
23
+ /**
24
+ * The URL of the worker script.
25
+ */
26
+ workerURL: IUniverRPCMainThreadConfig['workerURL'];
27
+ }
28
+ /**
29
+ * This presets helps you to create a Univer sheet with open sourced features.
30
+ */
31
+ export declare function UniverSheetsCorePreset(config?: Partial<IUniverSheetsCorePresetConfig>): IPreset;
@@ -1,6 +1,8 @@
1
- import { IPreset } from './types';
2
- export * from '@univerjs/engine-formula';
3
- export * from '@univerjs/rpc';
4
- export * from '@univerjs/sheets';
5
- export * from '@univerjs/sheets-formula';
6
- export declare function UniverSheetsCoreWorkerPreset(): IPreset;
1
+ import { IPreset, IUniverFormulaWorkerConfig } from './types';
2
+ export interface IUniverSheetsCoreWorkerPresetConfig {
3
+ /**
4
+ * The formula worker config.
5
+ */
6
+ formula?: IUniverFormulaWorkerConfig;
7
+ }
8
+ export declare function UniverSheetsCoreWorkerPreset(config?: Partial<IUniverSheetsCoreWorkerPresetConfig>): IPreset;