Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.
TypeScript boardcollaborationdocdocxexceloffce365officepdfpptpptxpresentationsdksheetslidesspreadsheetuniverwordwordprocessorworkspacexlsx
chore(presets): remove node core presets (#7863)
白熱209b81ad90f8
diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex c50766df24..1f73775912 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -3000,43 +3000,6 @@ importers:specifier: ^6.0.3version: 6.0.3- presets/packages/preset-docs-node-core:- dependencies:- '@univerjs/docs':- specifier: workspace:*- version: link:../../../packages/docs- '@univerjs/docs-drawing':- specifier: workspace:*- version: link:../../../packages/docs-drawing- '@univerjs/docs-hyper-link':- specifier: workspace:*- version: link:../../../packages/docs-hyper-link- '@univerjs/engine-formula':- specifier: workspace:*- version: link:../../../packages/engine-formula- '@univerjs/rpc-node':- specifier: workspace:*- version: link:../../../packages/rpc-node- '@univerjs/thread-comment':- specifier: workspace:*- version: link:../../../packages/thread-comment- devDependencies:- '@univerjs-infra/shared':- specifier: workspace:*- version: link:../../../common/shared- '@univerjs/core':- specifier: workspace:*- version: link:../../../packages/core- '@univerjs/presets':- specifier: workspace:*- version: link:../..- rxjs:- specifier: ^7.8.2- version: 7.8.2- typescript:- specifier: ^6.0.3- version: 6.0.3-presets/packages/preset-docs-thread-comment:dependencies:'@univerjs/docs-thread-comment-ui':@@ -3336,64 +3299,6 @@ importers:specifier: ^6.0.3version: 6.0.3- presets/packages/preset-sheets-node-core:- dependencies:- '@univerjs/docs':- specifier: workspace:*- version: link:../../../packages/docs- '@univerjs/engine-formula':- specifier: workspace:*- version: link:../../../packages/engine-formula- '@univerjs/rpc-node':- specifier: workspace:*- version: link:../../../packages/rpc-node- '@univerjs/sheets':- specifier: workspace:*- version: link:../../../packages/sheets- '@univerjs/sheets-data-validation':- specifier: workspace:*- version: link:../../../packages/sheets-data-validation- '@univerjs/sheets-drawing':- specifier: workspace:*- version: link:../../../packages/sheets-drawing- '@univerjs/sheets-filter':- specifier: workspace:*- version: link:../../../packages/sheets-filter- '@univerjs/sheets-formula':- specifier: workspace:*- version: link:../../../packages/sheets-formula- '@univerjs/sheets-hyper-link':- specifier: workspace:*- version: link:../../../packages/sheets-hyper-link- '@univerjs/sheets-numfmt':- specifier: workspace:*- version: link:../../../packages/sheets-numfmt- '@univerjs/sheets-sort':- specifier: workspace:*- version: link:../../../packages/sheets-sort- '@univerjs/sheets-thread-comment':- specifier: workspace:*- version: link:../../../packages/sheets-thread-comment- '@univerjs/thread-comment':- specifier: workspace:*- version: link:../../../packages/thread-comment- devDependencies:- '@univerjs-infra/shared':- specifier: workspace:*- version: link:../../../common/shared- '@univerjs/core':- specifier: workspace:*- version: link:../../../packages/core- '@univerjs/presets':- specifier: workspace:*- version: link:../..- rxjs:- specifier: ^7.8.2- version: 7.8.2- typescript:- specifier: ^6.0.3- version: 6.0.3-presets/packages/preset-sheets-note:dependencies:'@univerjs/sheets-note':diff --git a/presets/packages/preset-docs-node-core/README.md b/presets/packages/preset-docs-node-core/README.mddeleted file mode 100644index 49266ffae6..0000000000--- a/presets/packages/preset-docs-node-core/README.md+++ /dev/null@@ -1,38 +0,0 @@-# @univerjs/preset-docs-node-core--[](https://npmjs.com/package/@univerjs/preset-docs-node-core)-[](https://npmjs.com/package/@univerjs/preset-docs-node-core)-[](https://npmjs.com/package/@univerjs/preset-docs-node-core)--`@univerjs/preset-docs-node-core` provides a preset for running Univer Docs on Node.js with core features.--## Package Overview--| Package | CSS | Locales | Facade entry |-| --------------------------------- | :-: | :-----: | :----------: |-| `@univerjs/preset-docs-node-core` | No | Yes | Yes |--## Installation--```sh-pnpm add @univerjs/preset-docs-node-core-# or-npm install @univerjs/preset-docs-node-core-```--Keep all `@univerjs/*` packages on the same version.--## Usage--```ts-import { UniverDocsNodeCorePreset } from '@univerjs/preset-docs-node-core';--// Use with createUniver:-// createUniver({ presets: [UniverDocsNodeCorePreset()] });-```--## Resources--- [Documentation](https://docs.univer.ai)-- [NPM package](https://npmjs.com/package/@univerjs/preset-docs-node-core)-- [GitHub repository](https://github.com/dream-num/univer)diff --git a/presets/packages/preset-docs-node-core/package.json b/presets/packages/preset-docs-node-core/package.jsondeleted file mode 100644index 08e2456a07..0000000000--- a/presets/packages/preset-docs-node-core/package.json+++ /dev/null@@ -1,86 +0,0 @@-{- "name": "@univerjs/preset-docs-node-core",- "version": "1.0.4",- "private": false,- "description": "Preset for running Univer Docs on Node.js with core features.",- "author": "DreamNum Co., Ltd. <[email protected]>",- "license": "Apache-2.0",- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/univer"- },- "homepage": "https://univer.ai",- "repository": {- "type": "git",- "url": "https://github.com/dream-num/univer"- },- "bugs": {- "url": "https://github.com/dream-num/univer/issues"- },- "keywords": [- "univer",- "univer-preset",- "docs",- "node",- "core"- ],- "sideEffects": [- "*.css"- ],- "exports": {- ".": "./src/index.ts",- "./locales/*": "./src/locales/*.ts",- "./lib/*": "./lib/*"- },- "publishConfig": {- "access": "public",- "main": "./lib/es/index.js",- "module": "./lib/es/index.js",- "exports": {- ".": {- "import": "./lib/es/index.js",- "require": "./lib/cjs/index.js",- "types": "./lib/types/index.d.ts"- },- "./locales/*": {- "import": "./lib/es/locales/*.js",- "require": "./lib/cjs/locales/*.js",- "types": "./lib/types/locales/*.d.ts"- },- "./lib/*": "./lib/*"- }- },- "main": "./src/index.ts",- "directories": {- "lib": "lib"- },- "types": "./lib/types/index.d.ts",- "files": [- "lib"- ],- "scripts": {- "prepare": "univer-cli preset prepare",- "build:bundle": "univer-cli preset build --cleanup",- "build:types": "tsc -p tsconfig.node.json",- "build": "pnpm run build:bundle && pnpm run build:types",- "typecheck": "tsc --noEmit"- },- "peerDependencies": {- "rxjs": ">=7.0.0"- },- "dependencies": {- "@univerjs/docs": "workspace:*",- "@univerjs/docs-drawing": "workspace:*",- "@univerjs/docs-hyper-link": "workspace:*",- "@univerjs/engine-formula": "workspace:*",- "@univerjs/rpc-node": "workspace:*",- "@univerjs/thread-comment": "workspace:*"- },- "devDependencies": {- "@univerjs-infra/shared": "workspace:*",- "@univerjs/core": "workspace:*",- "@univerjs/presets": "workspace:*",- "rxjs": "^7.8.2",- "typescript": "^6.0.3"- }-}diff --git a/presets/packages/preset-docs-node-core/postcss.config.mjs b/presets/packages/preset-docs-node-core/postcss.config.mjsdeleted file mode 100644index 3dcb559a83..0000000000--- a/presets/packages/preset-docs-node-core/postcss.config.mjs+++ /dev/null@@ -1,17 +0,0 @@-/**- * Copyright 2023-present DreamNum Co., Ltd.- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */--export { default } from '@univerjs-infra/shared/postcss';diff --git a/presets/packages/preset-docs-node-core/src/index.ts b/presets/packages/preset-docs-node-core/src/index.tsdeleted file mode 100644index 03cbb17723..0000000000--- a/presets/packages/preset-docs-node-core/src/index.ts+++ /dev/null@@ -1,23 +0,0 @@-/**- * Copyright 2023-present DreamNum Co., Ltd.- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */--export * from './preset';-export * from '@univerjs/docs';-export * from '@univerjs/docs-drawing';-export * from '@univerjs/docs-hyper-link';-export * from '@univerjs/engine-formula';-export * from '@univerjs/rpc-node';-export * from '@univerjs/thread-comment';diff --git a/presets/packages/preset-docs-node-core/src/preset.ts b/presets/packages/preset-docs-node-core/src/preset.tsdeleted file mode 100644index e33cac42b1..0000000000--- a/presets/packages/preset-docs-node-core/src/preset.ts+++ /dev/null@@ -1,57 +0,0 @@-/**- * Copyright 2023-present DreamNum Co., Ltd.- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */--import type { IPreset } from '@univerjs/presets';-import type { IUniverFormulaConfig } from './types';-import { UniverDocsPlugin } from '@univerjs/docs';-import { UniverDocsDrawingPlugin } from '@univerjs/docs-drawing';-import { UniverDocsHyperLinkPlugin } from '@univerjs/docs-hyper-link';-import { UniverFormulaEnginePlugin } from '@univerjs/engine-formula';-// import { UniverRPCNodeMainPlugin } from '@univerjs/rpc-node';-import { UniverThreadCommentPlugin } from '@univerjs/thread-comment';--import '@univerjs/engine-formula/facade';--export type * from '@univerjs/engine-formula/facade';--export interface IUniverDocsNodeCorePresetConfig {- /**- * The formula configuration.- */- formula?: IUniverFormulaConfig;-}--export function UniverDocsNodeCorePreset(config: Partial<IUniverDocsNodeCorePresetConfig> = {}): IPreset {- const { formula } = config;-- return {- plugins: [- // useWorker- // ? [UniverRPCNodeMainPlugin, { workerSrc }]- // : null,- [UniverFormulaEnginePlugin, {- // notExecuteFormula: useWorker,- function: formula?.function,- }],-- UniverThreadCommentPlugin,- UniverDocsPlugin,-- UniverDocsHyperLinkPlugin,- UniverDocsDrawingPlugin,- ].filter((v) => !!v) as IPreset['plugins'],- };-}diff --git a/presets/packages/preset-docs-node-core/src/types.ts b/presets/packages/preset-docs-node-core/src/types.tsdeleted file mode 100644index 1761590e3e..0000000000--- a/presets/packages/preset-docs-node-core/src/types.ts+++ /dev/null@@ -1,25 +0,0 @@-/**- * Copyright 2023-present DreamNum Co., Ltd.- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */--import type { IUniverEngineFormulaConfig } from '@univerjs/engine-formula';--export interface IUniverFormulaConfig extends- Pick<IUniverEngineFormulaConfig, 'function'> {-}--export interface IUniverFormulaWorkerConfig extends- Pick<IUniverEngineFormulaConfig, 'function'> {-}diff --git a/presets/packages/preset-docs-node-core/tailwind.config.ts b/presets/packages/preset-docs-node-core/tailwind.config.tsdeleted file mode 100644index 64fef05703..0000000000--- a/presets/packages/preset-docs-node-core/tailwind.config.ts+++ /dev/null@@ -1,27 +0,0 @@-/**- * Copyright 2023-present DreamNum Co., Ltd.- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */--import type { Config } from 'tailwindcss';-import preset, { createTailwindContent } from '@univerjs-infra/shared/tailwind';--const config: Config = {- presets: [preset],- content: createTailwindContent(import.meta.url, {- includeStyleDependencies: true,- }),-};--export default config;diff --git a/presets/packages/preset-docs-node-core/tsconfig.json b/presets/packages/preset-docs-node-core/tsconfig.jsondeleted file mode 100644index 7ade7bf9fd..0000000000--- a/presets/packages/preset-docs-node-core/tsconfig.json+++ /dev/null@@ -1,8 +0,0 @@-{- "extends": "@univerjs-infra/shared/tsconfigs/base",- "compilerOptions": {- "rootDir": "src",- "outDir": "lib/types"- },- "include": ["src", "../../common/shared/types/global.d.ts"]-}diff --git a/presets/packages/preset-docs-node-core/tsconfig.node.json b/presets/packages/preset-docs-node-core/tsconfig.node.jsondeleted file mode 100644index 2abfa07367..0000000000--- a/presets/packages/preset-docs-node-core/tsconfig.node.json+++ /dev/null@@ -1,18 +0,0 @@-{- "extends": "@univerjs-infra/shared/tsconfigs/node",- "compilerOptions": {- "rootDir": "src",- "declaration": true,- "emitDeclarationOnly": true,- "noEmit": false,- "outDir": "lib/types"- },- "include": [- "src"- ],- "exclude": [- "src/**/__tests__/**",- "src/**/*.spec.ts",- "src/**/*.test.ts"- ]-}diff --git a/presets/packages/preset-sheets-node-core/README.md b/presets/packages/preset-sheets-node-core/README.mddeleted file mode 100644index 9bdd691b60..0000000000--- a/presets/packages/preset-sheets-node-core/README.md+++ /dev/null@@ -1,38 +0,0 @@-# @univerjs/preset-sheets-node-core--[](https://npmjs.com/package/@univerjs/preset-sheets-node-core)-[](https://npmjs.com/package/@univerjs/preset-sheets-node-core)-[](https://npmjs.com/package/@univerjs/preset-sheets-node-core)--`@univerjs/preset-sheets-node-core` provides a preset for running Univer Sheets on Node.js with core features.--## Package Overview--| Package | CSS | Locales | Facade entry |-| ----------------------------------- | :-: | :-----: | :----------: |-| `@univerjs/preset-sheets-node-core` | No | Yes | Yes |--## Installation--```sh-pnpm add @univerjs/preset-sheets-node-core-# or-npm install @univerjs/preset-sheets-node-core-```--Keep all `@univerjs/*` packages on the same version.--## Usage--```ts-import { UniverSheetsNodeCorePreset } from '@univerjs/preset-sheets-node-core';--// Use with createUniver:-// createUniver({ presets: [UniverSheetsNodeCorePreset()] });-```--## Resources--- [Documentation](https://docs.univer.ai)-- [NPM package](https://npmjs.com/package/@univerjs/preset-sheets-node-core)-- [GitHub repository](https://github.com/dream-num/univer)diff --git a/presets/packages/preset-sheets-node-core/package.json b/presets/packages/preset-sheets-node-core/package.jsondeleted file mode 100644index 425c32c1a8..0000000000--- a/presets/packages/preset-sheets-node-core/package.json+++ /dev/null@@ -1,99 +0,0 @@-{- "name": "@univerjs/preset-sheets-node-core",- "version": "1.0.4",- "private": false,- "description": "Preset for running Univer Sheets on Node.js with core features.",- "author": "DreamNum Co., Ltd. <[email protected]>",- "license": "Apache-2.0",- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/univer"- },- "homepage": "https://univer.ai",- "repository": {- "type": "git",- "url": "https://github.com/dream-num/univer"- },- "bugs": {- "url": "https://github.com/dream-num/univer/issues"- },- "keywords": [- "univer",- "univer-preset",- "sheets",- "node",- "core"- ],- "sideEffects": [- "*.css"- ],- "exports": {- ".": "./src/index.ts",- "./worker": "./src/worker.ts",- "./locales/*": "./src/locales/*.ts",- "./lib/*": "./lib/*"- },- "publishConfig": {- "access": "public",- "main": "./lib/es/index.js",- "module": "./lib/es/index.js",- "exports": {- ".": {- "import": "./lib/es/index.js",- "require": "./lib/cjs/index.js",- "types": "./lib/types/index.d.ts"- },- "./worker": {- "import": "./lib/es/worker.js",- "require": "./lib/cjs/worker.js",- "types": "./lib/types/worker.d.ts"- },- "./locales/*": {- "import": "./lib/es/locales/*.js",- "require": "./lib/cjs/locales/*.js",- "types": "./lib/types/locales/*.d.ts"- },- "./lib/*": "./lib/*"- }- },- "main": "./src/index.ts",- "directories": {- "lib": "lib"- },- "types": "./lib/types/index.d.ts",- "files": [- "lib"- ],- "scripts": {- "prepare": "univer-cli preset prepare",- "build:bundle": "univer-cli preset build --cleanup",- "build:types": "tsc -p tsconfig.node.json",- "build": "pnpm run build:bundle && pnpm run build:types",- "typecheck": "tsc --noEmit"- },- "peerDependencies": {- "rxjs": ">=7.0.0"- },- "dependencies": {- "@univerjs/docs": "workspace:*",- "@univerjs/engine-formula": "workspace:*",- "@univerjs/rpc-node": "workspace:*",- "@univerjs/sheets": "workspace:*",- "@univerjs/sheets-data-validation": "workspace:*",- "@univerjs/sheets-drawing": "workspace:*",- "@univerjs/sheets-filter": "workspace:*",- "@univerjs/sheets-formula": "workspace:*",- "@univerjs/sheets-hyper-link": "workspace:*",- "@univerjs/sheets-numfmt": "workspace:*",- "@univerjs/sheets-sort": "workspace:*",- "@univerjs/sheets-thread-comment": "workspace:*",- "@univerjs/thread-comment": "workspace:*"- },- "devDependencies": {- "@univerjs-infra/shared": "workspace:*",- "@univerjs/core": "workspace:*",- "@univerjs/presets": "workspace:*",- "rxjs": "^7.8.2",- "typescript": "^6.0.3"- }-}diff --git a/presets/packages/preset-sheets-node-core/postcss.config.mjs b/presets/packages/preset-sheets-node-core/postcss.config.mjsdeleted file mode 100644index 3dcb559a83..0000000000--- a/presets/packages/preset-sheets-node-core/postcss.config.mjs+++ /dev/null@@ -1,17 +0,0 @@-/**- * Copyright 2023-present DreamNum Co., Ltd.- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */--export { default } from '@univerjs-infra/shared/postcss';diff --git a/presets/packages/preset-sheets-node-core/src/index.ts b/presets/packages/preset-sheets-node-core/src/index.tsdeleted file mode 100644index 7510c957c4..0000000000--- a/presets/packages/preset-sheets-node-core/src/index.ts+++ /dev/null@@ -1,29 +0,0 @@-/**- * Copyright 2023-present DreamNum Co., Ltd.- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */--export * from './preset';-export * from '@univerjs/docs';-export * from '@univerjs/engine-formula';-export * from '@univerjs/rpc-node';-export * from '@univerjs/sheets';-export * from '@univerjs/sheets-data-validation';-export * from '@univerjs/sheets-drawing';-export * from '@univerjs/sheets-filter';-export * from '@univerjs/sheets-formula';-export * from '@univerjs/sheets-hyper-link';-export * from '@univerjs/sheets-sort';-export * from '@univerjs/sheets-thread-comment';-export * from '@univerjs/thread-comment';diff --git a/presets/packages/preset-sheets-node-core/src/preset.ts b/presets/packages/preset-sheets-node-core/src/preset.tsdeleted file mode 100644index 19628ab372..0000000000--- a/presets/packages/preset-sheets-node-core/src/preset.ts+++ /dev/null@@ -1,96 +0,0 @@-/**- * Copyright 2023-present DreamNum Co., Ltd.- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */--import type { IPreset } from '@univerjs/presets';-import type { IUniverFormulaConfig } from './types';-import { UniverDocsPlugin } from '@univerjs/docs';-import { UniverFormulaEnginePlugin } from '@univerjs/engine-formula';-import { UniverRPCNodeMainPlugin } from '@univerjs/rpc-node';-import { UniverSheetsPlugin } from '@univerjs/sheets';-import { UniverSheetsDataValidationPlugin } from '@univerjs/sheets-data-validation';-import { UniverSheetsDrawingPlugin } from '@univerjs/sheets-drawing';-import { UniverSheetsFilterPlugin } from '@univerjs/sheets-filter';-import { UniverSheetsFormulaPlugin } from '@univerjs/sheets-formula';-import { UniverSheetsHyperLinkPlugin } from '@univerjs/sheets-hyper-link';-import { UniverSheetsSortPlugin } from '@univerjs/sheets-sort';-import { UniverSheetsThreadCommentPlugin } from '@univerjs/sheets-thread-comment';-import { UniverThreadCommentPlugin } from '@univerjs/thread-comment';--import '@univerjs/sheets/facade';-import '@univerjs/sheets-formula/facade';-import '@univerjs/sheets-data-validation/facade';-import '@univerjs/engine-formula/facade';-import '@univerjs/sheets-filter/facade';-import '@univerjs/sheets-hyper-link/facade';-import '@univerjs/sheets-numfmt/facade';-import '@univerjs/sheets-sort/facade';-import '@univerjs/sheets-thread-comment/facade';--export type * from '@univerjs/engine-formula/facade';-export type * from '@univerjs/sheets-data-validation/facade';-export type * from '@univerjs/sheets-filter/facade';-export type * from '@univerjs/sheets-formula/facade';-export type * from '@univerjs/sheets-hyper-link/facade';-export type * from '@univerjs/sheets-numfmt/facade';-export type * from '@univerjs/sheets-sort/facade';-export type * from '@univerjs/sheets-thread-comment/facade';-export type * from '@univerjs/sheets/facade';--export interface IUniverSheetsNodeCorePresetConfig {- /**- * The formula configuration.- */- formula?: IUniverFormulaConfig;-- /**- * The URL of the worker script.- */- workerSrc?: string;-}--export function UniverSheetsNodeCorePreset(config: Partial<IUniverSheetsNodeCorePresetConfig> = {}): IPreset {- const { workerSrc, formula } = config;-- const useWorker = !!workerSrc;-- return {- plugins: [- useWorker- ? [UniverRPCNodeMainPlugin, { workerSrc }]- : null,- [UniverFormulaEnginePlugin, {- notExecuteFormula: useWorker,- function: formula?.function,- }],-- UniverThreadCommentPlugin,- UniverDocsPlugin,-- UniverSheetsPlugin,- [UniverSheetsFormulaPlugin, {- notExecuteFormula: useWorker,- description: formula?.description,- initialFormulaComputing: formula?.initialFormulaComputing,- }],- UniverSheetsDataValidationPlugin,- UniverSheetsFilterPlugin,- UniverSheetsHyperLinkPlugin,- UniverSheetsDrawingPlugin,- UniverSheetsSortPlugin,- UniverSheetsThreadCommentPlugin,- ].filter((v) => !!v) as IPreset['plugins'],- };-}diff --git a/presets/packages/preset-sheets-node-core/src/types.ts b/presets/packages/preset-sheets-node-core/src/types.tsdeleted file mode 100644index 4784c5b095..0000000000--- a/presets/packages/preset-sheets-node-core/src/types.ts+++ /dev/null@@ -1,27 +0,0 @@-/**- * Copyright 2023-present DreamNum Co., Ltd.- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */--import type { IUniverEngineFormulaConfig } from '@univerjs/engine-formula';-import type { IUniverSheetsFormulaBaseConfig } from '@univerjs/sheets-formula';--export interface IUniverFormulaConfig extends- Pick<IUniverEngineFormulaConfig, 'function'>,- Pick<IUniverSheetsFormulaBaseConfig, 'description' | 'initialFormulaComputing'> {-}--export interface IUniverFormulaWorkerConfig extends- Pick<IUniverEngineFormulaConfig, 'function'> {-}diff --git a/presets/packages/preset-sheets-node-core/src/worker.ts b/presets/packages/preset-sheets-node-core/src/worker.tsdeleted file mode 100644index 7b16d1d71b..0000000000--- a/presets/packages/preset-sheets-node-core/src/worker.ts+++ /dev/null@@ -1,49 +0,0 @@-/**- * Copyright 2023-present DreamNum Co., Ltd.- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */--import type { IPreset } from '@univerjs/presets';-import type { IUniverFormulaWorkerConfig } from './types';-import { UniverFormulaEnginePlugin } from '@univerjs/engine-formula';-import { UniverRPCNodeWorkerPlugin } from '@univerjs/rpc-node';-import { UniverSheetsPlugin } from '@univerjs/sheets';-import { UniverRemoteSheetsFormulaPlugin } from '@univerjs/sheets-formula';--export * from '@univerjs/engine-formula';-export * from '@univerjs/rpc-node';-export * from '@univerjs/sheets';-export * from '@univerjs/sheets-formula';--export interface IUniverSheetsNodeCoreWorkerPresetConfig {- /**- * The formula worker config.- */- formula?: IUniverFormulaWorkerConfig;-}--export function UniverSheetsNodeCoreWorkerPreset(config: Partial<IUniverSheetsNodeCoreWorkerPresetConfig> = {}): IPreset {- const {- formula,- } = config;-- return {- plugins: [- [UniverSheetsPlugin, { onlyRegisterFormulaRelatedMutations: true }],- [UniverFormulaEnginePlugin, { function: formula?.function }],- UniverRPCNodeWorkerPlugin,- UniverRemoteSheetsFormulaPlugin,- ],- };-}diff --git a/presets/packages/preset-sheets-node-core/tailwind.config.ts b/presets/packages/preset-sheets-node-core/tailwind.config.tsdeleted file mode 100644index 64fef05703..0000000000--- a/presets/packages/preset-sheets-node-core/tailwind.config.ts+++ /dev/null@@ -1,27 +0,0 @@-/**- * Copyright 2023-present DreamNum Co., Ltd.- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */--import type { Config } from 'tailwindcss';-import preset, { createTailwindContent } from '@univerjs-infra/shared/tailwind';--const config: Config = {- presets: [preset],- content: createTailwindContent(import.meta.url, {- includeStyleDependencies: true,- }),-};--export default config;diff --git a/presets/packages/preset-sheets-node-core/tsconfig.json b/presets/packages/preset-sheets-node-core/tsconfig.jsondeleted file mode 100644index 7ade7bf9fd..0000000000--- a/presets/packages/preset-sheets-node-core/tsconfig.json+++ /dev/null@@ -1,8 +0,0 @@-{- "extends": "@univerjs-infra/shared/tsconfigs/base",- "compilerOptions": {- "rootDir": "src",- "outDir": "lib/types"- },- "include": ["src", "../../common/shared/types/global.d.ts"]-}diff --git a/presets/packages/preset-sheets-node-core/tsconfig.node.json b/presets/packages/preset-sheets-node-core/tsconfig.node.jsondeleted file mode 100644index 2abfa07367..0000000000--- a/presets/packages/preset-sheets-node-core/tsconfig.node.json+++ /dev/null@@ -1,18 +0,0 @@-{- "extends": "@univerjs-infra/shared/tsconfigs/node",- "compilerOptions": {- "rootDir": "src",- "declaration": true,- "emitDeclarationOnly": true,- "noEmit": false,- "outDir": "lib/types"- },- "include": [- "src"- ],- "exclude": [- "src/**/__tests__/**",- "src/**/*.spec.ts",- "src/**/*.test.ts"- ]-}