Skip to content

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.

refactor(engine-numfmt): remove engine-numfmt package (#5527)

白熱0102d8d7d96c
diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS
index 52c586b580..d7f07a3c46 100644
--- a/.github/CODEOWNERS
+++ b/.github/CODEOWNERS
@@ -24,7 +24,6 @@ packages/design @jikkai
packages/drawing @weird94
packages/drawing-ui @weird94
packages/engine-formula @Dushusir @wpxp123456
-packages/engine-numfmt @VicKun4937
packages/engine-render @Jocs
packages/engine-render/components/docs @Jocs
packages/find-replace @siam-ese
diff --git a/common/storybook/package.json b/common/storybook/package.json
index 2754f79161..bd87e206ab 100644
--- a/common/storybook/package.json
+++ b/common/storybook/package.json
@@ -17,20 +17,20 @@
},
"dependencies": {
"@chromatic-com/storybook": "^4.0.1",
- "@storybook/addon-docs": "^9.0.15",
- "@storybook/addon-links": "^9.0.15",
+ "@storybook/addon-docs": "^9.0.16",
+ "@storybook/addon-links": "^9.0.16",
"@storybook/addon-styling-webpack": "^2.0.0",
"@storybook/addon-webpack5-compiler-swc": "^3.0.0",
"@storybook/icons": "^1.4.0",
- "@storybook/react": "^9.0.15",
- "@storybook/react-webpack5": "^9.0.15",
+ "@storybook/react": "^9.0.16",
+ "@storybook/react-webpack5": "^9.0.16",
"@univerjs/core": "workspace:*",
"@univerjs/design": "workspace:*",
"@univerjs/themes": "workspace:*",
"@univerjs/ui": "workspace:*",
"css-loader": "^7.1.2",
"postcss-loader": "^8.1.1",
- "storybook": "^9.0.15",
+ "storybook": "^9.0.16",
"storybook-addon-swc": "^1.2.0",
"style-loader": "^4.0.0",
"tsconfig-paths-webpack-plugin": "^4.2.0",
diff --git a/packages/core/src/shared/index.ts b/packages/core/src/shared/index.ts
index 11268abafd..3cbf7c0c9f 100644
--- a/packages/core/src/shared/index.ts
+++ b/packages/core/src/shared/index.ts
@@ -31,7 +31,16 @@ export * from './hash-algorithm';
export * from './lifecycle';
export * from './locale';
export { LRUHelper, LRUMap } from './lru/lru-map';
-export { type INumfmtLocalTag, isPatternEqualWithoutDecimal, numfmt } from './numfmt';
+export type { INumfmtLocalTag } from './numfmt';
+export {
+ DEFAULT_NUMBER_FORMAT,
+ DEFAULT_TEXT_FORMAT,
+ DEFAULT_TEXT_FORMAT_EXCEL,
+ isDefaultFormat,
+ isPatternEqualWithoutDecimal,
+ isTextFormat,
+ numfmt,
+} from './numfmt';
export * from './object-matrix';
export { queryObjectMatrix } from './object-matrix-query';
export { moveRangeByOffset, splitIntoGrid } from './range';
diff --git a/packages/core/src/shared/numfmt.ts b/packages/core/src/shared/numfmt.ts
index 6bab180611..e1c259bc12 100644
--- a/packages/core/src/shared/numfmt.ts
+++ b/packages/core/src/shared/numfmt.ts
@@ -18,6 +18,18 @@ import * as numfmt from 'numfmt';
export * as numfmt from 'numfmt';
+export const DEFAULT_TEXT_FORMAT = '@@@'; // Compatible with old data
+export const DEFAULT_TEXT_FORMAT_EXCEL = '@'; // The default text format in Excel, recommended
+export const DEFAULT_NUMBER_FORMAT = 'General'; // null or General are considered the default format
+
+export function isTextFormat(pattern: string | undefined) {
+ return pattern === DEFAULT_TEXT_FORMAT || pattern === DEFAULT_TEXT_FORMAT_EXCEL;
+}
+
+export function isDefaultFormat(pattern?: string | null) {
+ return pattern === null || pattern === undefined || pattern === DEFAULT_NUMBER_FORMAT;
+}
+
export type INumfmtLocalTag =
| 'zh-CN'
| 'zh-TW'
diff --git a/packages/engine-formula/package.json b/packages/engine-formula/package.json
index 20bdc32cbc..3bbd20b94d 100644
--- a/packages/engine-formula/package.json
+++ b/packages/engine-formula/package.json
@@ -74,7 +74,6 @@
"dependencies": {
"@flatten-js/interval-tree": "^1.1.3",
"@univerjs/core": "workspace:*",
- "@univerjs/engine-numfmt": "workspace:*",
"@univerjs/rpc": "workspace:*",
"decimal.js": "^10.6.0"
},
diff --git a/packages/engine-formula/src/engine/reference-object/base-reference-object.ts b/packages/engine-formula/src/engine/reference-object/base-reference-object.ts
index dab2d19fed..98134f3656 100644
--- a/packages/engine-formula/src/engine/reference-object/base-reference-object.ts
+++ b/packages/engine-formula/src/engine/reference-object/base-reference-object.ts
@@ -16,10 +16,8 @@
import type { ICellData, IRange, Nullable } from '@univerjs/core';
import type { IRuntimeUnitDataType, IUnitData, IUnitSheetNameMap, IUnitStylesData } from '../../basics/common';
-
import type { BaseValueObject, IArrayValueObject } from '../value-object/base-value-object';
-import { CellValueType, moveRangeByOffset } from '@univerjs/core';
-import { isTextFormat } from '@univerjs/engine-numfmt';
+import { CellValueType, isTextFormat, moveRangeByOffset } from '@univerjs/core';
import { FormulaAstLRU } from '../../basics/cache-lru';
import { ERROR_TYPE_SET, ErrorType } from '../../basics/error-type';
import { isNullCellForFormula } from '../../basics/is-null-cell';
diff --git a/packages/engine-numfmt/README.md b/packages/engine-numfmt/README.md
deleted file mode 100644
index ad53a8ed1a..0000000000
--- a/packages/engine-numfmt/README.md
+++ /dev/null
@@ -1,29 +0,0 @@
-# @univerjs/engine-numfmt
-
-## Package Overview
-
-| Package Name | UMD Namespace | Version | License | Downloads | Contains CSS | Contains i18n locales |
-| --- | --- | --- | --- | --- | :---: | :---: |
-| `@univerjs/engine-numfmt` | `UniverNumfmt` | [![][npm-version-shield]][npm-version-link] | ![][npm-license-shield] | ![][npm-downloads-shield] | ❌ | ❌ |
-
-## Introduction
-
-The `@univerjs/engine-formula` is a formula engine that provides fundamental capabilities for formula computation, including but not limited to: formula string parsing, formula calculation, and formula dependency analysis.
-
-## Usage
-
-### Installation
-
-```shell
-# Using npm
-npm install @univerjs/engine-numfmt
-
-# Using pnpm
-pnpm add @univerjs/engine-numfmt
-```
-
-<!-- Links -->
-[npm-version-shield]: https://img.shields.io/npm/v/@univerjs/engine-numfmt?style=flat-square
-[npm-version-link]: https://npmjs.com/package/@univerjs/engine-numfmt
-[npm-license-shield]: https://img.shields.io/npm/l/@univerjs/engine-numfmt?style=flat-square
-[npm-downloads-shield]: https://img.shields.io/npm/dm/@univerjs/engine-numfmt?style=flat-square
diff --git a/packages/engine-numfmt/package.json b/packages/engine-numfmt/package.json
deleted file mode 100644
index 5b7dcd8e71..0000000000
--- a/packages/engine-numfmt/package.json
+++ /dev/null
@@ -1,66 +0,0 @@
-{
- "name": "@univerjs/engine-numfmt",
- "version": "0.9.2",
- "private": false,
- "description": "UniverSheet normal plugin UI manager",
- "author": "DreamNum <[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"
- ],
- "exports": {
- ".": "./src/index.ts",
- "./*": "./src/*"
- },
- "main": "./src/index.ts",
- "types": "./lib/types/index.d.ts",
- "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"
- },
- "./*": {
- "import": "./lib/es/*",
- "require": "./lib/cjs/*",
- "types": "./lib/types/index.d.ts"
- },
- "./lib/*": "./lib/*"
- }
- },
- "directories": {
- "lib": "lib"
- },
- "files": [
- "lib"
- ],
- "scripts": {
- "test": "vitest run",
- "test:watch": "vitest",
- "coverage": "vitest run --coverage",
- "lint:types": "tsc --noEmit",
- "build": "univer-cli build"
- },
- "devDependencies": {
- "@univerjs-infra/shared": "workspace:*",
- "typescript": "^5.8.3",
- "vite": "^6.3.5",
- "vitest": "^3.2.4"
- }
-}
diff --git a/packages/engine-numfmt/src/const.ts b/packages/engine-numfmt/src/const.ts
deleted file mode 100644
index 837036610f..0000000000
--- a/packages/engine-numfmt/src/const.ts
+++ /dev/null
@@ -1,19 +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 const DEFAULT_TEXT_FORMAT = '@@@'; // Compatible with old data
-export const DEFAULT_TEXT_FORMAT_EXCEL = '@'; // The default text format in Excel, recommended
-export const DEFAULT_NUMBER_FORMAT = 'General'; // null or General are considered the default format
diff --git a/packages/engine-numfmt/src/index.ts b/packages/engine-numfmt/src/index.ts
deleted file mode 100644
index 96b5f561f1..0000000000
--- a/packages/engine-numfmt/src/index.ts
+++ /dev/null
@@ -1,18 +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_NUMBER_FORMAT, DEFAULT_TEXT_FORMAT, DEFAULT_TEXT_FORMAT_EXCEL } from './const';
-export { isDefaultFormat, isTextFormat } from './util';
diff --git a/packages/engine-numfmt/src/type.ts b/packages/engine-numfmt/src/type.ts
deleted file mode 100644
index 97cdcfc29e..0000000000
--- a/packages/engine-numfmt/src/type.ts
+++ /dev/null
@@ -1,303 +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.
- */
-
-type FormatType =
- | 'currency'
- | 'date'
- | 'datetime'
- | 'error'
- | 'fraction'
- | 'general'
- | 'grouped'
- | 'number'
- | 'percent'
- | 'scientific'
- | 'text'
- | 'time';
-
-/**
- * An arbirarty number that represents the format's specificity if you want to compare one to another. Integer comparisons roughly match Excel's resolutions when it determines which format wins out.
- *
- * text: 15
- * datetime: 10.8
- * date: 10.8
- * time: 10.8
- * percent: 10.6
- * currency: 10.4
- * grouped: 10.2
- * scientific: 6
- * number: 4
- * fraction: 2
- * general: 0
- * error: 0
- */
-type Level = 15 | 10.8 | 10.6 | 10.4 | 10.2 | 6 | 4 | 2 | 0;
-
-interface Info {
- type: FormatType;
-
- /**
- * Correspond to the output from same named functions found on the formatters.
- */
- isDate: boolean;
- isText: boolean;
- isPercent: boolean;
-
- /** The maximum number of decimals this format will emit. */
- maxDecimals: number;
-
- /**
- * 1 if the format uses color on the negative portion of the string, else a 0. This replicates Excel's CELL("color") functionality.
- */
- color: 0 | 1;
-
- /**
- * 1 if the positive portion of the number format contains an open parenthesis, else a 0. This is replicates Excel's CELL("parentheses") functionality.
- */
- parentheses: 0 | 1;
-
- /**
- * 1 if the positive portion of the format uses a thousands separator, else a 0.
- */
- grouped: 1;
- /**
- * Corresponds to Excel's CELL("format") functionality. It is should match Excel's quirky behaviour fairly well.
- */
- code: string;
- /**
- * The multiplier used when formatting the number (100 for percentages).
- */
- scale: 1;
-
- /**
- * An arbirarty number that represents the format's specificity if you want to compare one to another. Integer comparisons roughly match Excel's resolutions when it determines which format wins out.
- */
- level: Level;
- _partitions: Array<{
- color: string;
- tokens: Array<{ type: 'num'; num: string } | { type: 'point'; value: string } | { type: 'frac'; num: string }>;
- }>;
-}
-
-interface DateInfo {
- /** If any `y` or `b` operator was found in the pattern. */
- year: boolean;
-
- /** If any `m` operator was found in the pattern. */
- month: boolean;
-
- /** If any `d` operator was found in the pattern (including ones that emit weekday). */
- day: boolean;
-
- /** If any `h` operator was found in the pattern. */
- hours: boolean;
-
- /** If any `:m` operator was found in the pattern. */
- minutes: boolean;
- /** If any `s` operator was found in the pattern. */
- seconds: boolean;
-
- /** Will be set to `12` if AM/PM operators are being used in the formatting string, else it will be set to `24`. */
- clockType: 24 | 12;
-}
-
-interface Options {
- /**
- * A [BCP 47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) string tag. Locale default is english with a \u00a0 grouping symbol
- *
- * @default ""
- */
- locale: LocaleTag;
-
- /**
- * Should the formatter throw an error if a provided pattern is invalid. If not, a formatter will be constructed which only ever outputs an error string (see invalid in this table).
- * @default true
- */
- throws: boolean;
-
- /**
- * The string emitted when no-throw mode fails to parse a pattern.
- * @default "######"
- */
- invalid: string;
-
- /**
- * By default the formatters will emit [non-breaking-space](https://en.wikipedia.org/wiki/Non-breaking_space) rather than a regular space when emitting the formatted number. Setting this to false will make it use regular spaces instead.
- * @default true
- */
- nbsp: boolean;
-
- /**
- * Simulate the Lotus 1-2-3 [1900 leap year bug](https://docs.microsoft.com/en-us/office/troubleshoot/excel/wrongly-assumes-1900-is-leap-year). It is a requirement in the Ecma OOXML specification so it is on by default.
- *
- * @default false
- */
- leap1900: boolean;
-
- /**
- * Should the formatter throw an error when trying to format a date that is out of bounds?
- *
- * @default false
- */
- dateErrorThrows: boolean;
-
- /**
- * Should the formatter switch to a General number format when trying to format a date that is out of bounds?
- * @default true
- */
- dateErrorNumber: boolean;
-
- /**
- * The string emitted when a formatter fails to format a date that is out of bounds.
- * @default "######"
- */
- overflow: string;
-
- /**
- * Extends the allowed range of dates from Excel bounds (1900–9999) to Google Sheet bounds (0–99999).
- * @default true
- */
- dateSpanLarge: boolean;
-
- /**
- * Normally when date objects are used with the formatter, time zone is taken into account. This makes the formatter ignore the timezone offset.
- * @default false
- */
- ignoreTimezone: boolean;
-
- /**
- * when using the numfmt.parseDate, numfmt.parseValue and numfmt.dateFromSerial functions, the output will be a Date object.
- * @default false
- */
- nativeDate: boolean;
-}
-
-interface LocaleData {
- // non-breaking space
- group: string;
- decimal: string;
- positive: string;
- negative: string;
- percent: string;
- exponent: string;
- nan: string;
- infinity: string;
- ampm: [string, string];
-
- // gregorian calendar
- mmmm: string[];
- mmm: string[];
- dddd: string[];
- ddd: string[];
-
- // islamic calendar
- mmmm6: string[];
- mmm6: string[];
-}
-
-interface Formatter {
- isDate(): boolean;
- isPercent(): boolean;
- isText(): boolean;
- color(value: number): string;
- info: Info;
- dateInfo: DateInfo;
- (value: number): string;
-}
-
-type LocaleTag =
- | 'zh-CN'
- | 'zh'
- | 'zh-TW'
- | 'cs'
- | 'da'
- | 'nl'
- | 'en'
- | 'fi'
- | 'fr'
- | 'de'
- | 'el'
- | 'hu'
- | 'is'
- | 'id'
- | 'it'
- | 'ja'
- | 'ko'
- | 'nb'
- | 'pl'
- | 'pt'
- | 'ru'
- | 'sk'
- | 'es'
- | 'sv'
- | 'th'
- | 'tr';
-
-export interface ParsedReturnType {
- /**
- * The parsed value. For dates, this will be an Excel style serial date unless the nativeDate option is used.
- */
- v: number | string | boolean | Date;
- /**
- * (Optionally) the number format string of the input. This property will not be present if it amounts to the General format.
- */
- z?: string;
-}
-
-type _Year = number;
-type _MonthIndex = number;
-type _Date = number | undefined;
-type _Hours = number | undefined;
-type _Minutes = number | undefined;
-type _Seconds = number | undefined;
-type _Ms = number | undefined;
-type DateValue = [_Year, _MonthIndex, _Date, _Hours, _Minutes, _Seconds, _Ms];
-
-type ParseValue = number | boolean | DateValue | Date | null;
-
-export interface Numfmt {
- (value: string, opt?: Options): Formatter;
-
- format(pattern: string, value: ParseValue, opt?: Partial<Options>): string;
-
- round(value: number, places?: number): number;
-
- /**
- * @internal
- */
- parseLocale(tag: LocaleTag): void;
- getLocale(tag: LocaleTag): LocaleData | null;
-
- addLocale(data: Partial<LocaleData>, tag: LocaleTag): void;
-
- isDate(format: string): boolean;
- isPercent(format: string): boolean;
- isText(format: string): boolean;
-
- getInfo(format: string): Info;
-
- parseValue(value: string, op?: Options): ParsedReturnType;
- parseNumber(value: string, op?: Options): ParsedReturnType;
- parseDate(value: string, op?: Options): ParsedReturnType;
- parseTime(value: string, op?: Options): ParsedReturnType;
- parseBool(value: string, op?: Options): ParsedReturnType;
-
- dateToSerial(value: Date | [number, number, number], opt?: Options): number | string;
-
- dateFromSerial(value: number, opt?: Options): Date;
-
- options(op: Partial<Options>): void;
-}
diff --git a/packages/engine-numfmt/src/types/index.d.ts b/packages/engine-numfmt/src/types/index.d.ts
deleted file mode 100644
index 35c86cb441..0000000000
--- a/packages/engine-numfmt/src/types/index.d.ts
+++ /dev/null
@@ -1,21 +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.
- */
-
-declare module 'numfmt' {
- import type { Numfmt } from '../type';
-
- export default Numfmt;
-}
diff --git a/packages/engine-numfmt/src/util.ts b/packages/engine-numfmt/src/util.ts
deleted file mode 100644
index 7b72004a0d..0000000000
--- a/packages/engine-numfmt/src/util.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 { DEFAULT_NUMBER_FORMAT, DEFAULT_TEXT_FORMAT, DEFAULT_TEXT_FORMAT_EXCEL } from './const';
-
-export function isTextFormat(pattern: string | undefined) {
- return pattern === DEFAULT_TEXT_FORMAT || pattern === DEFAULT_TEXT_FORMAT_EXCEL;
-}
-
-export function isDefaultFormat(pattern?: string | null) {
- return pattern === null || pattern === undefined || pattern === DEFAULT_NUMBER_FORMAT;
-}
diff --git a/packages/engine-numfmt/src/vite-env.d.ts b/packages/engine-numfmt/src/vite-env.d.ts
deleted file mode 100644
index 11f02fe2a0..0000000000
--- a/packages/engine-numfmt/src/vite-env.d.ts
+++ /dev/null
@@ -1 +0,0 @@
-/// <reference types="vite/client" />
diff --git a/packages/engine-numfmt/tsconfig.json b/packages/engine-numfmt/tsconfig.json
deleted file mode 100644
index c62210cbad..0000000000
--- a/packages/engine-numfmt/tsconfig.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "extends": "@univerjs-infra/shared/tsconfigs/base",
- "compilerOptions": {
- "rootDir": "src",
- "outDir": "lib/types"
- },
- "references": [{ "path": "./tsconfig.node.json" }],
- "include": ["src"]
-}
diff --git a/packages/engine-numfmt/tsconfig.node.json b/packages/engine-numfmt/tsconfig.node.json
deleted file mode 100644
index 4947a09903..0000000000
--- a/packages/engine-numfmt/tsconfig.node.json
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "extends": "@univerjs-infra/shared/tsconfigs/node",
- "include": ["vitest.config.ts"]
-}
diff --git a/packages/engine-numfmt/vitest.config.ts b/packages/engine-numfmt/vitest.config.ts
deleted file mode 100644
index af97c6d7a2..0000000000
--- a/packages/engine-numfmt/vitest.config.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import createConfig from '@univerjs-infra/shared/vitest';
-
-export default createConfig();
diff --git a/packages/engine-render/README.md b/packages/engine-render/README.md
index 25cbde4f48..8b1a72df05 100644
--- a/packages/engine-render/README.md
+++ b/packages/engine-render/README.md
@@ -25,7 +25,7 @@ pnpm add @univerjs/engine-render
```
<!-- Links -->
-[npm-version-shield]: https://img.shields.io/npm/v/@univerjs/engine-numfmt?style=flat-square
-[npm-version-link]: https://npmjs.com/package/@univerjs/engine-numfmt
-[npm-license-shield]: https://img.shields.io/npm/l/@univerjs/engine-numfmt?style=flat-square
-[npm-downloads-shield]: https://img.shields.io/npm/dm/@univerjs/engine-numfmt?style=flat-square
+[npm-version-shield]: https://img.shields.io/npm/v/@univerjs/engine-render?style=flat-square
+[npm-version-link]: https://npmjs.com/package/@univerjs/engine-render
+[npm-license-shield]: https://img.shields.io/npm/l/@univerjs/engine-render?style=flat-square
+[npm-downloads-shield]: https://img.shields.io/npm/dm/@univerjs/engine-render?style=flat-square
diff --git a/packages/sheets-numfmt-ui/package.json b/packages/sheets-numfmt-ui/package.json
index 83b8138fb5..062ba9c02b 100644
--- a/packages/sheets-numfmt-ui/package.json
+++ b/packages/sheets-numfmt-ui/package.json
@@ -70,7 +70,6 @@
"dependencies": {
"@univerjs/core": "workspace:*",
"@univerjs/design": "workspace:*",
- "@univerjs/engine-numfmt": "workspace:*",
"@univerjs/engine-render": "workspace:*",
"@univerjs/icons": "^0.4.6",
"@univerjs/sheets": "workspace:*",
diff --git a/packages/sheets-numfmt-ui/src/controllers/menu.ts b/packages/sheets-numfmt-ui/src/controllers/menu.ts
index 08d7fb549e..f48d635164 100644
--- a/packages/sheets-numfmt-ui/src/controllers/menu.ts
+++ b/packages/sheets-numfmt-ui/src/controllers/menu.ts
@@ -16,8 +16,7 @@
import type { IAccessor } from '@univerjs/core';
import type { IMenuSelectorItem } from '@univerjs/ui';
-import { fromCallback, ICommandService, isPatternEqualWithoutDecimal, IUniverInstanceService, LocaleService, UniverInstanceType } from '@univerjs/core';
-import { DEFAULT_TEXT_FORMAT_EXCEL, isDefaultFormat } from '@univerjs/engine-numfmt';
+import { DEFAULT_TEXT_FORMAT_EXCEL, fromCallback, ICommandService, isDefaultFormat, isPatternEqualWithoutDecimal, IUniverInstanceService, LocaleService, UniverInstanceType } from '@univerjs/core';
import {
RangeProtectionPermissionEditPoint,
RemoveNumfmtMutation,
diff --git a/packages/sheets-numfmt-ui/src/controllers/numfmt-alert-render.controller.ts b/packages/sheets-numfmt-ui/src/controllers/numfmt-alert-render.controller.ts
index 447b86c067..6a99228701 100644
--- a/packages/sheets-numfmt-ui/src/controllers/numfmt-alert-render.controller.ts
+++ b/packages/sheets-numfmt-ui/src/controllers/numfmt-alert-render.controller.ts
@@ -17,8 +17,7 @@
import type { Workbook } from '@univerjs/core';
import type { IRenderContext, IRenderModule } from '@univerjs/engine-render';
import type { IUniverSheetsNumfmtConfig } from '@univerjs/sheets-numfmt';
-import { Disposable, IConfigService, Inject, isRealNum, LocaleService } from '@univerjs/core';
-import { isTextFormat } from '@univerjs/engine-numfmt';
+import { Disposable, IConfigService, Inject, isRealNum, isTextFormat, LocaleService } from '@univerjs/core';
import { INumfmtService } from '@univerjs/sheets';
import { SHEETS_NUMFMT_PLUGIN_CONFIG_KEY } from '@univerjs/sheets-numfmt';
import { CellAlertManagerService, CellAlertType, HoverManagerService } from '@univerjs/sheets-ui';
diff --git a/packages/sheets-numfmt-ui/src/controllers/numfmt.editor.controller.ts b/packages/sheets-numfmt-ui/src/controllers/numfmt.editor.controller.ts
index 5a4139441e..556187c0ff 100644
--- a/packages/sheets-numfmt-ui/src/controllers/numfmt.editor.controller.ts
+++ b/packages/sheets-numfmt-ui/src/controllers/numfmt.editor.controller.ts
@@ -26,6 +26,7 @@ import {
Disposable,
Inject,
Injector,
+ isTextFormat,
IUniverInstanceService,
numfmt,
Optional,
@@ -33,7 +34,6 @@ import {
UniverInstanceType,
willLoseNumericPrecision,
} from '@univerjs/core';
-import { isTextFormat } from '@univerjs/engine-numfmt';
import {
AFTER_CELL_EDIT,
BEFORE_CELL_EDIT,
diff --git a/packages/sheets-numfmt/package.json b/packages/sheets-numfmt/package.json
index 6355314b37..5968f4b012 100644
--- a/packages/sheets-numfmt/package.json
+++ b/packages/sheets-numfmt/package.json
@@ -74,7 +74,6 @@
"dependencies": {
"@univerjs/core": "workspace:*",
"@univerjs/engine-formula": "workspace:*",
- "@univerjs/engine-numfmt": "workspace:*",
"@univerjs/sheets": "workspace:*"
},
"devDependencies": {
diff --git a/packages/sheets-numfmt/src/commands/commands/set-numfmt.command.ts b/packages/sheets-numfmt/src/commands/commands/set-numfmt.command.ts
index e55ad077db..906cf7d0a9 100644
--- a/packages/sheets-numfmt/src/commands/commands/set-numfmt.command.ts
+++ b/packages/sheets-numfmt/src/commands/commands/set-numfmt.command.ts
@@ -22,8 +22,16 @@ import type {
ISetNumfmtMutationParams,
ISetRangeValuesMutationParams,
} from '@univerjs/sheets';
-import { CellValueType, CommandType, ICommandService, IUndoRedoService, IUniverInstanceService, ObjectMatrix, sequenceExecute } from '@univerjs/core';
-import { isTextFormat } from '@univerjs/engine-numfmt';
+import {
+ CellValueType,
+ CommandType,
+ ICommandService,
+ isTextFormat,
+ IUndoRedoService,
+ IUniverInstanceService,
+ ObjectMatrix,
+ sequenceExecute,
+} from '@univerjs/core';
import {
checkCellValueType,
factoryRemoveNumfmtUndoMutation,
diff --git a/packages/sheets-numfmt/src/controllers/numfmt-cell-content.controller.ts b/packages/sheets-numfmt/src/controllers/numfmt-cell-content.controller.ts
index 6e5be19b57..b1b39b0f86 100644
--- a/packages/sheets-numfmt/src/controllers/numfmt-cell-content.controller.ts
+++ b/packages/sheets-numfmt/src/controllers/numfmt-cell-content.controller.ts
@@ -14,12 +14,7 @@
* limitations under the License.
*/
-import type {
- ICellData,
- ICellDataForSheetInterceptor,
- INumfmtLocalTag,
- Workbook,
-} from '@univerjs/core';
+import type { ICellData, ICellDataForSheetInterceptor, INumfmtLocalTag, Workbook } from '@univerjs/core';
import type { ISetNumfmtMutationParams, ISetRangeValuesMutationParams } from '@univerjs/sheets';
import type { IUniverSheetsNumfmtConfig } from './config.schema';
import {
@@ -29,6 +24,7 @@ import {
IConfigService,
Inject,
InterceptorEffectEnum,
+ isTextFormat,
IUniverInstanceService,
LocaleService,
LocaleType,
@@ -37,8 +33,15 @@ import {
ThemeService,
UniverInstanceType,
} from '@univerjs/core';
-import { isTextFormat } from '@univerjs/engine-numfmt';
-import { checkCellValueType, InterceptCellContentPriority, INTERCEPTOR_POINT, INumfmtService, SetNumfmtMutation, SetRangeValuesMutation, SheetInterceptorService } from '@univerjs/sheets';
+import {
+ checkCellValueType,
+ InterceptCellContentPriority,
+ INTERCEPTOR_POINT,
+ INumfmtService,
+ SetNumfmtMutation,
+ SetRangeValuesMutation,
+ SheetInterceptorService,
+} from '@univerjs/sheets';
import { BehaviorSubject, merge, of, skip, switchMap } from 'rxjs';
import { getPatternPreviewIgnoreGeneral } from '../utils/pattern';
import { SHEETS_NUMFMT_PLUGIN_CONFIG_KEY } from './config.schema';
@@ -85,6 +88,9 @@ export class SheetsNumfmtCellContentController extends Disposable {
case LocaleType.ZH_CN: {
return 'zh-CN';
}
+ case LocaleType.KO_KR: {
+ return 'ko';
+ }
case LocaleType.ZH_TW: {
return 'zh-TW';
}
diff --git a/packages/sheets-ui/package.json b/packages/sheets-ui/package.json
index 8535f537f5..939c27b6f3 100644
--- a/packages/sheets-ui/package.json
+++ b/packages/sheets-ui/package.json
@@ -84,7 +84,6 @@
"@univerjs/docs": "workspace:*",
"@univerjs/docs-ui": "workspace:*",
"@univerjs/engine-formula": "workspace:*",
- "@univerjs/engine-numfmt": "workspace:*",
"@univerjs/engine-render": "workspace:*",
"@univerjs/icons": "^0.4.6",
"@univerjs/protocol": "0.1.46",
diff --git a/packages/sheets-ui/src/controllers/clipboard/utils.ts b/packages/sheets-ui/src/controllers/clipboard/utils.ts
index 994b58945d..b4132249c2 100644
--- a/packages/sheets-ui/src/controllers/clipboard/utils.ts
+++ b/packages/sheets-ui/src/controllers/clipboard/utils.ts
@@ -26,9 +26,21 @@ import type {
} from '@univerjs/sheets';
import type { ICellDataWithSpanInfo, ICopyPastePayload, ISheetDiscreteRangeLocation } from '../../services/clipboard/type';
import type { IDiscreteRange } from '../utils/range-tools';
-
-import { cellToRange, CellValueType, CustomRangeType, DEFAULT_STYLES, generateRandomId, IUniverInstanceService, numfmt, ObjectMatrix, Range, Rectangle, Tools, willLoseNumericPrecision } from '@univerjs/core';
-import { isTextFormat } from '@univerjs/engine-numfmt';
+import {
+ cellToRange,
+ CellValueType,
+ CustomRangeType,
+ DEFAULT_STYLES,
+ generateRandomId,
+ isTextFormat,
+ IUniverInstanceService,
+ numfmt,
+ ObjectMatrix,
+ Range,
+ Rectangle,
+ Tools,
+ willLoseNumericPrecision,
+} from '@univerjs/core';
import { DEFAULT_PADDING_DATA } from '@univerjs/engine-render';
import {
AddMergeUndoMutationFactory,
diff --git a/packages/sheets-ui/src/controllers/editor/__tests__/end-edit.controller.spec.ts b/packages/sheets-ui/src/controllers/editor/__tests__/end-edit.controller.spec.ts
index 1ab0106f01..a0c82fab98 100644
--- a/packages/sheets-ui/src/controllers/editor/__tests__/end-edit.controller.spec.ts
+++ b/packages/sheets-ui/src/controllers/editor/__tests__/end-edit.controller.spec.ts
@@ -16,9 +16,8 @@
import type { ICellData, IDocumentData, Univer, Workbook } from '@univerjs/core';
import type { IFunctionService } from '@univerjs/engine-formula';
-import { CellValueType, IConfigService, IContextService, Injector, LocaleService, LocaleType, Tools } from '@univerjs/core';
+import { CellValueType, DEFAULT_TEXT_FORMAT_EXCEL, IConfigService, IContextService, Injector, LocaleService, LocaleType, Tools } from '@univerjs/core';
import { LexerTreeBuilder } from '@univerjs/engine-formula';
-import { DEFAULT_TEXT_FORMAT_EXCEL } from '@univerjs/engine-numfmt';
import { SpreadsheetSkeleton } from '@univerjs/engine-render';
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
import { normalizeString } from '../../utils/char-tools';
diff --git a/packages/sheets-ui/src/controllers/editor/editing.render-controller.ts b/packages/sheets-ui/src/controllers/editor/editing.render-controller.ts
index fd5f99886b..89fddfaffe 100644
--- a/packages/sheets-ui/src/controllers/editor/editing.render-controller.ts
+++ b/packages/sheets-ui/src/controllers/editor/editing.render-controller.ts
@@ -16,10 +16,22 @@
/* eslint-disable max-lines-per-function */
-import type { DocumentDataModel, ICellData, ICommandInfo, IDisposable, IDocumentBody, IDocumentData, IDocumentStyle, IMutationInfo, IStyleData, Nullable, Styles, Workbook } from '@univerjs/core';
+import type {
+ DocumentDataModel,
+ ICellData,
+ ICommandInfo,
+ IDisposable,
+ IDocumentBody,
+ IDocumentData,
+ IDocumentStyle,
+ IMutationInfo,
+ IStyleData,
+ Nullable,
+ Styles,
+ Workbook,
+} from '@univerjs/core';
import type { IRichTextEditingMutationParams } from '@univerjs/docs';
import type { ISetRangeValuesCommandParams, MutationsAffectRange } from '@univerjs/sheets';
-
import type { IEditorBridgeServiceVisibleParam } from '../../services/editor-bridge.service';
import {
CellValueType,
@@ -39,6 +51,7 @@ import {
IContextService,
Inject,
isFormulaString,
+ isTextFormat,
IUndoRedoService,
IUniverInstanceService,
LocaleService,
@@ -47,22 +60,27 @@ import {
UniverInstanceType,
WrapStrategy,
} from '@univerjs/core';
-import {
- DocSelectionManagerService,
- DocSkeletonManagerService,
- RichTextEditingMutation,
-} from '@univerjs/docs';
+import { DocSelectionManagerService, DocSkeletonManagerService, RichTextEditingMutation } from '@univerjs/docs';
import { VIEWPORT_KEY as DOC_VIEWPORT_KEY, DocSelectionRenderService, IEditorService, MoveCursorOperation, MoveSelectionOperation, ReplaceSnapshotCommand } from '@univerjs/docs-ui';
import { IFunctionService, LexerTreeBuilder, matchToken } from '@univerjs/engine-formula';
-import { isTextFormat } from '@univerjs/engine-numfmt';
-
+import { convertTextRotation, DeviceInputEventType, IRenderManagerService } from '@univerjs/engine-render';
import {
- convertTextRotation,
- DeviceInputEventType,
- IRenderManagerService,
-} from '@univerjs/engine-render';
-
-import { adjustRangeOnMutation, COMMAND_LISTENER_SKELETON_CHANGE, InsertColMutation, InsertRowMutation, MoveColsMutation, MoveRowsMutation, REF_SELECTIONS_ENABLED, RemoveColMutation, RemoveRowMutation, SetRangeValuesCommand, SetSelectionsOperation, SetWorksheetActivateCommand, SetWorksheetActiveOperation, SheetInterceptorService, SheetsSelectionsService } from '@univerjs/sheets';
+ adjustRangeOnMutation,
+ COMMAND_LISTENER_SKELETON_CHANGE,
+ InsertColMutation,
+ InsertRowMutation,
+ MoveColsMutation,
+ MoveRowsMutation,
+ REF_SELECTIONS_ENABLED,
+ RemoveColMutation,
+ RemoveRowMutation,
+ SetRangeValuesCommand,
+ SetSelectionsOperation,
+ SetWorksheetActivateCommand,
+ SetWorksheetActiveOperation,
+ SheetInterceptorService,
+ SheetsSelectionsService,
+} from '@univerjs/sheets';
import { KeyCode, MetaKeys } from '@univerjs/ui';
import { distinctUntilChanged, filter } from 'rxjs';
import { getEditorObject } from '../../basics/editor/get-editor-object';
diff --git a/packages/sheets-ui/src/controllers/force-string-render.controller.ts b/packages/sheets-ui/src/controllers/force-string-render.controller.ts
index 81e3fb9c39..18a0223325 100644
--- a/packages/sheets-ui/src/controllers/force-string-render.controller.ts
+++ b/packages/sheets-ui/src/controllers/force-string-render.controller.ts
@@ -17,8 +17,7 @@
import type { Workbook } from '@univerjs/core';
import type { IRenderContext, IRenderModule } from '@univerjs/engine-render';
import type { IUniverSheetsUIConfig } from './config.schema';
-import { CellValueType, IConfigService, Inject, InterceptorEffectEnum, isRealNum, RxDisposable } from '@univerjs/core';
-import { isTextFormat } from '@univerjs/engine-numfmt';
+import { CellValueType, IConfigService, Inject, InterceptorEffectEnum, isRealNum, isTextFormat, RxDisposable } from '@univerjs/core';
import { INTERCEPTOR_POINT, SheetInterceptorService } from '@univerjs/sheets';
import { SheetSkeletonManagerService } from '../services/sheet-skeleton-manager.service';
import { SHEETS_UI_PLUGIN_CONFIG_KEY } from './config.schema';
diff --git a/packages/sheets-ui/src/services/clipboard/__tests__/clipboard-paste-form-excel.spec.ts b/packages/sheets-ui/src/services/clipboard/__tests__/clipboard-paste-form-excel.spec.ts
index f07e94009a..04564d10e2 100644
--- a/packages/sheets-ui/src/services/clipboard/__tests__/clipboard-paste-form-excel.spec.ts
+++ b/packages/sheets-ui/src/services/clipboard/__tests__/clipboard-paste-form-excel.spec.ts
@@ -15,8 +15,7 @@
*/
import type { ICellData, Injector, IStyleData, Nullable, Univer } from '@univerjs/core';
-import { CellValueType, ICommandService, IUniverInstanceService, LocaleType, RANGE_TYPE } from '@univerjs/core';
-import { DEFAULT_TEXT_FORMAT_EXCEL } from '@univerjs/engine-numfmt';
+import { CellValueType, DEFAULT_TEXT_FORMAT_EXCEL, ICommandService, IUniverInstanceService, LocaleType, RANGE_TYPE } from '@univerjs/core';
import {
AddWorksheetMergeMutation,
MoveRangeMutation,
diff --git a/packages/sheets/package.json b/packages/sheets/package.json
index b7c861c687..522d329507 100644
--- a/packages/sheets/package.json
+++ b/packages/sheets/package.json
@@ -80,7 +80,6 @@
"dependencies": {
"@univerjs/core": "workspace:*",
"@univerjs/engine-formula": "workspace:*",
- "@univerjs/engine-numfmt": "workspace:*",
"@univerjs/protocol": "0.1.46",
"@univerjs/rpc": "workspace:*"
},
diff --git a/packages/sheets/src/basics/cell-type.ts b/packages/sheets/src/basics/cell-type.ts
index edb5e0783d..bbc476bc2f 100644
--- a/packages/sheets/src/basics/cell-type.ts
+++ b/packages/sheets/src/basics/cell-type.ts
@@ -15,8 +15,7 @@
*/
import type { CellValue, ICellData, IStyleData, Nullable, Styles } from '@univerjs/core';
-import { CellValueType, isBooleanString, isRealNum, willLoseNumericPrecision } from '@univerjs/core';
-import { isTextFormat } from '@univerjs/engine-numfmt';
+import { CellValueType, isBooleanString, isRealNum, isTextFormat, willLoseNumericPrecision } from '@univerjs/core';
/**
* Get cell value type by style, new value and old value.
diff --git a/packages/sheets/src/commands/commands/__tests__/set-range-values.command.spec.ts b/packages/sheets/src/commands/commands/__tests__/set-range-values.command.spec.ts
index 4ec349a5bf..c6139f6223 100644
--- a/packages/sheets/src/commands/commands/__tests__/set-range-values.command.spec.ts
+++ b/packages/sheets/src/commands/commands/__tests__/set-range-values.command.spec.ts
@@ -19,6 +19,7 @@ import type { ISetRangeValuesCommandParams } from '../set-range-values.command';
import {
BooleanNumber,
CellValueType,
+ DEFAULT_TEXT_FORMAT_EXCEL,
ICommandService,
IUniverInstanceService,
LocaleType,
@@ -28,7 +29,6 @@ import {
UndoCommand,
UniverInstanceType,
} from '@univerjs/core';
-import { DEFAULT_TEXT_FORMAT_EXCEL } from '@univerjs/engine-numfmt';
import { afterEach, beforeEach, describe, expect, it } from 'vitest';
import { SheetsSelectionsService } from '../../../services/selections/selection.service';
import { SetRangeValuesMutation } from '../../mutations/set-range-values.mutation';
diff --git a/packages/sheets/src/services/__tests__/numfmt.service.test.ts b/packages/sheets/src/services/__tests__/numfmt.service.test.ts
index d9e8d07287..0425365bd4 100644
--- a/packages/sheets/src/services/__tests__/numfmt.service.test.ts
+++ b/packages/sheets/src/services/__tests__/numfmt.service.test.ts
@@ -16,9 +16,7 @@
import type { Injector, Styles, Univer, Workbook, Worksheet } from '@univerjs/core';
import type { IRemoveNumfmtMutationParams, ISetNumfmtMutationParams } from '@univerjs/sheets';
-import { cellToRange, CellValueType, ICommandService, IUniverInstanceService, UniverInstanceType } from '@univerjs/core';
-import { DEFAULT_TEXT_FORMAT_EXCEL } from '@univerjs/engine-numfmt';
-
+import { cellToRange, CellValueType, DEFAULT_TEXT_FORMAT_EXCEL, ICommandService, IUniverInstanceService, UniverInstanceType } from '@univerjs/core';
import { afterEach, beforeEach, describe, expect, it } from 'vitest';
import { RemoveNumfmtMutation, SetNumfmtMutation } from '../../commands/mutations/numfmt-mutation';
import { NumfmtService } from '../numfmt/numfmt.service';
diff --git a/packages/sheets/src/services/__tests__/util.ts b/packages/sheets/src/services/__tests__/util.ts
index 092068893c..b907aab837 100644
--- a/packages/sheets/src/services/__tests__/util.ts
+++ b/packages/sheets/src/services/__tests__/util.ts
@@ -15,8 +15,19 @@
*/
import type { Dependency, IWorkbookData, Workbook } from '@univerjs/core';
-import { CellValueType, ILogService, Inject, Injector, IUniverInstanceService, LocaleType, LogLevel, Plugin, Univer, UniverInstanceType } from '@univerjs/core';
-import { DEFAULT_TEXT_FORMAT_EXCEL } from '@univerjs/engine-numfmt';
+import {
+ CellValueType,
+ DEFAULT_TEXT_FORMAT_EXCEL,
+ ILogService,
+ Inject,
+ Injector,
+ IUniverInstanceService,
+ LocaleType,
+ LogLevel,
+ Plugin,
+ Univer,
+ UniverInstanceType,
+} from '@univerjs/core';
export const TEST_WORKBOOK_DATA_DEMO: IWorkbookData = {
id: 'test',
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 6fde194c43..943b14c869 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -197,16 +197,16 @@ importers:
dependencies:
'@chromatic-com/storybook':
specifier: ^4.0.1
- version: 4.0.1([email protected](@testing-library/[email protected])([email protected]))
+ version: 4.0.1([email protected](@testing-library/[email protected])([email protected]))
'@storybook/addon-docs':
- specifier: ^9.0.15
- version: 9.0.15(@types/[email protected])([email protected](@testing-library/[email protected])([email protected]))
+ specifier: ^9.0.16
+ version: 9.0.16(@types/[email protected])([email protected](@testing-library/[email protected])([email protected]))
'@storybook/addon-links':
- specifier: ^9.0.15
+ specifier: ^9.0.16
'@storybook/addon-styling-webpack':
specifier: ^2.0.0
'@storybook/addon-webpack5-compiler-swc':
specifier: ^3.0.0
@@ -214,11 +214,11 @@ importers:
specifier: ^1.4.0
'@storybook/react':
- specifier: ^9.0.15
+ specifier: ^9.0.16
'@storybook/react-webpack5':
- specifier: ^9.0.15
+ specifier: ^9.0.16
'@univerjs/core':
specifier: workspace:*
version: link:../../packages/core
@@ -238,8 +238,8 @@ importers:
specifier: ^8.1.1
storybook:
- specifier: ^9.0.15
- version: 9.0.15(@testing-library/[email protected])([email protected])
+ specifier: ^9.0.16
+ version: 9.0.16(@testing-library/[email protected])([email protected])
storybook-addon-swc:
specifier: ^1.2.0
@@ -1756,9 +1756,6 @@ importers:
'@univerjs/core':
specifier: workspace:*
version: link:../core
- '@univerjs/engine-numfmt':
- specifier: workspace:*
- version: link:../engine-numfmt
'@univerjs/rpc':
specifier: workspace:*
version: link:../rpc
@@ -1782,21 +1779,6 @@ importers:
specifier: ^3.2.4
- packages/engine-numfmt:
- devDependencies:
- '@univerjs-infra/shared':
- specifier: workspace:*
- version: link:../../common/shared
- typescript:
- specifier: ^5.8.3
- version: 5.8.3
- vite:
- specifier: ^6.3.5
- vitest:
- specifier: ^3.2.4
-
packages/engine-render:
dependencies:
'@floating-ui/dom':
@@ -1957,9 +1939,6 @@ importers:
'@univerjs/engine-formula':
specifier: workspace:*
version: link:../engine-formula
- '@univerjs/engine-numfmt':
- specifier: workspace:*
- version: link:../engine-numfmt
'@univerjs/protocol':
specifier: 0.1.46
version: 0.1.46(@grpc/[email protected])([email protected])
@@ -2752,9 +2731,6 @@ importers:
'@univerjs/engine-formula':
specifier: workspace:*
version: link:../engine-formula
- '@univerjs/engine-numfmt':
- specifier: workspace:*
- version: link:../engine-numfmt
'@univerjs/sheets':
specifier: workspace:*
version: link:../sheets
@@ -2783,9 +2759,6 @@ importers:
'@univerjs/design':
specifier: workspace:*
version: link:../design
- '@univerjs/engine-numfmt':
- specifier: workspace:*
- version: link:../engine-numfmt
'@univerjs/engine-render':
specifier: workspace:*
version: link:../engine-render
@@ -3105,9 +3078,6 @@ importers:
'@univerjs/engine-formula':
specifier: workspace:*
version: link:../engine-formula
- '@univerjs/engine-numfmt':
- specifier: workspace:*
- version: link:../engine-numfmt
'@univerjs/engine-render':
specifier: workspace:*
version: link:../engine-render
@@ -5569,16 +5539,16 @@ packages:
'@rushstack/[email protected]':
resolution: {integrity: sha512-bsbUucn41UXrQK7wgM8CNM/jagBytEyJqXw/umtI8d68vFm1Jwxh1OtLrlW7uGZgjCWiiPH6ooUNa1aVsuVr3Q==}
- '@storybook/[email protected]':
- resolution: {integrity: sha512-HOb45DkF23T1tRzakb9q33qnBRso15S/GM28ippPZWi5ZXR9RAyKVgOSMA/ViEpK4ezASxN+Tee+H7m4ksEFZw==}
+ '@storybook/[email protected]':
+ resolution: {integrity: sha512-/ZXaxMC/JqL0cnVuyPHXdJhNvgCrKvxcnM3ACdgBLsEIGcIqegPF+Ahkb2f9sjU36sR7ihT81cL/7cUvQwzd4Q==}
peerDependencies:
- storybook: ^9.0.15
+ storybook: ^9.0.16
- '@storybook/[email protected]':
- resolution: {integrity: sha512-DedEsoPOiRUupN9yuFaw9vwZe1QqK4QfC0Z9/0TxRNFdKffaakNJnPjnlrQn+R0eojYCRm9U9kdzOthM7/BgvQ==}
+ '@storybook/[email protected]':
+ resolution: {integrity: sha512-8jiFKeW7gTGZ/WhBnB38dTVFDapyiyLMCvktIcrsVrJTBbj/bC1+ts7OoeuJCs7/EN+2zn9vf+V17ZqI0I2sIA==}
peerDependencies:
react: 19.1.0
- storybook: ^9.0.15
+ storybook: ^9.0.16
peerDependenciesMeta:
react:
optional: true
@@ -5593,24 +5563,24 @@ packages:
resolution: {integrity: sha512-qkQwQEvHlxwPCHz/xakGfXJusEa1gKMw7enELh6QGopblfN3rMiV084boqiIqBReqWTasSwHOqvuElAu0NQ+8w==}
engines: {node: '>=18'}
- '@storybook/[email protected]':
- resolution: {integrity: sha512-SA69/NQeVZBD29jbnl/qtdgDRYxuLB4yGWpuV9Kr7TZibBbuER5MmHAdVqwrIRxcrlbhxfEcBTe8OfXKFVo1yw==}
+ '@storybook/[email protected]':
+ resolution: {integrity: sha512-Hb45cgUr6aYK24HBt42EGApbJVosunt7x6DTjawHD2BAqpfSxo6urLnKFIhx8H+af88XN37MTbp5bNozvw4WPA==}
peerDependencies:
- storybook: ^9.0.15
+ storybook: ^9.0.16
typescript: '*'
peerDependenciesMeta:
typescript:
optional: true
- '@storybook/[email protected]':
- resolution: {integrity: sha512-WcJVYj79t/Rx0wnBmm7/renO0Xij4t8KidGTyatd5hu4ALArcfCq9aq13hXBhJHkCTbzEebk+0uYVwdR6cjigA==}
+ '@storybook/[email protected]':
+ resolution: {integrity: sha512-U1SiqRywp6pu0DNy1uSH6b6B4aw7clYvICf+HNRzULYfS6V7ZHD2VaBmcf1xgx0aqVEPUGv6f46oZr2pzmcjGw==}
peerDependencies:
- storybook: ^9.0.15
+ storybook: ^9.0.16
- '@storybook/[email protected]':
- resolution: {integrity: sha512-KszyGjrocMiNbkmpBGARF1ugLYMVaw1J8Z31kmwTHsMgMZwAKcOsofJ0fPgFno0yV59DUVkWxVBdPs9V0hhvxA==}
+ '@storybook/[email protected]':
+ resolution: {integrity: sha512-MSmfPwI0j1mMAc+R3DVkVBQf2KLzaVn2SLdEwweesx63Nh9j3zu9CqKEa0zOuDX1lR2M0DZU0lV6K4sc2EYI4A==}
peerDependencies:
- storybook: ^9.0.15
+ storybook: ^9.0.16
'@storybook/[email protected]':
resolution: {integrity: sha512-FcOqPAXACP0I3oJ/ws6/rrPT9WGhu915Cg8D02a9YxLo0DE9zI+a9A5gRGvmQ09fiWPukqI8ZAEoQEdWUKMQdQ==}
@@ -5622,13 +5592,13 @@ packages:
react: 19.1.0
react-dom: 19.1.0
- '@storybook/[email protected]':
- resolution: {integrity: sha512-KWTlSuNcfXlwwTYbkwQeAQ5t5l2NHAyu3rannMPGZpemFdIxrzowWprZffsF70zua1x1FMquKJO/SxcFV7SZ1Q==}
+ '@storybook/[email protected]':
+ resolution: {integrity: sha512-esAGMKxeXfbW2O86u9foSOGegGQz78335u9RiCKaHXz6gl/xsoE60q3EEQhYxftO630YRfIXbZY7+N9rvbs78w==}
engines: {node: '>=20.0.0'}
peerDependencies:
react: 19.1.0
react-dom: 19.1.0
- storybook: ^9.0.15
+ storybook: ^9.0.16
typescript: '*'
peerDependenciesMeta:
typescript:
@@ -5640,32 +5610,32 @@ packages:
typescript: '>= 4.x'
webpack: '>= 4'
- '@storybook/[email protected]':
- resolution: {integrity: sha512-X5VlYKoZSIMU9HEshIwtNzp41nPt4kiJtJ2c5HzFa5F6M8rEHM5n059CGcCZQqff3FnZtK/y6v/kCVZO+8oETA==}
+ '@storybook/[email protected]':
+ resolution: {integrity: sha512-5aIK+31R41mRUvDB4vmBv8hwh3IVHIk/Zbs6kkWF2a+swOsB2+a06aLX21lma4/0T/AuFVXHWat0+inQ4nrXRg==}
peerDependencies:
react: 19.1.0
react-dom: 19.1.0
- storybook: ^9.0.15
+ storybook: ^9.0.16
- '@storybook/[email protected]':
- resolution: {integrity: sha512-l6aiyE4orFLoxiHCabZ7a1ra1AY+ncVvlwZQWyoh5nZRgCRLJXck8NpZT9imVbPhFo+9ZTi3ldE/jJNVL+mdiA==}
+ '@storybook/[email protected]':
+ resolution: {integrity: sha512-0m2JKE+ZiEquC6CBwVnsgzOFlkRNNRKnBUJg/K38QSeK62l3zD8Dy7j19LQzUUyMCnYdKYql67kKn8tDOeekOw==}
engines: {node: '>=20.0.0'}
peerDependencies:
react: 19.1.0
react-dom: 19.1.0
- storybook: ^9.0.15
+ storybook: ^9.0.16
typescript: '>= 4.9.x'
peerDependenciesMeta:
typescript:
optional: true
- '@storybook/[email protected]':
- resolution: {integrity: sha512-hewpSH8Ij4Bg7S9Tfw7ecfGPv7YDycRxsfpsDX7Mw3JhLuCdqjpmmTL2RgoNojg7TAW3FPdixcgQi/b4PH50ag==}
+ '@storybook/[email protected]':
+ resolution: {integrity: sha512-1jk9fBe8vEoZrba9cK19ZDdZgYMXUNl3Egjj5RsTMYMc1L2mtIu9o56VyK/1V4Q52N9IyawHvmIIuxc5pCZHkQ==}
engines: {node: '>=20.0.0'}
peerDependencies:
react: 19.1.0
react-dom: 19.1.0
- storybook: ^9.0.15
+ storybook: ^9.0.16
typescript: '>= 4.9.x'
peerDependenciesMeta:
typescript:
@@ -10551,8 +10521,8 @@ packages:
webpack:
optional: true
- resolution: {integrity: sha512-r9hwcSMM3dq7dkMveaWFTosrmyHCL2FRrV3JOwVnVWraF6GtCgp2k+r4hsYtyp1bY3zdmK9e4KYzXsGs5q1h/Q==}
+ resolution: {integrity: sha512-DzjzeggdzlXKKBK1L9iqNKqqNpyfeaL1hxxeAOmqgeMezwy5d5mCJmjNcZEmx+prsRmvj1OWm4ZZAg6iP/wABg==}
hasBin: true
peerDependencies:
prettier: ^2 || ^3
@@ -11626,13 +11596,13 @@ snapshots:
'@babel/helper-string-parser': 7.27.1
'@babel/helper-validator-identifier': 7.27.1
dependencies:
'@neoconfetti/react': 1.0.0
chromatic: 12.2.0
filesize: 10.1.6
jsonfile: 6.1.0
- storybook: 9.0.15(@testing-library/[email protected])([email protected])
+ storybook: 9.0.16(@testing-library/[email protected])([email protected])
strip-ansi: 7.1.0
transitivePeerDependencies:
- '@chromatic-com/cypress'
@@ -13345,29 +13315,29 @@ snapshots:
transitivePeerDependencies:
- '@types/node'
dependencies:
'@mdx-js/react': 3.1.0(@types/[email protected])([email protected])
- '@storybook/csf-plugin': 9.0.15([email protected](@testing-library/[email protected])([email protected]))
+ '@storybook/csf-plugin': 9.0.16([email protected](@testing-library/[email protected])([email protected]))
react: 19.1.0
react-dom: 19.1.0([email protected])
- storybook: 9.0.15(@testing-library/[email protected])([email protected])
+ storybook: 9.0.16(@testing-library/[email protected])([email protected])
ts-dedent: 2.2.0
transitivePeerDependencies:
- '@types/react'
dependencies:
'@storybook/global': 5.0.0
- storybook: 9.0.15(@testing-library/[email protected])([email protected])
+ storybook: 9.0.16(@testing-library/[email protected])([email protected])
optionalDependencies:
react: 19.1.0
dependencies:
- storybook: 9.0.15(@testing-library/[email protected])([email protected])
+ storybook: 9.0.16(@testing-library/[email protected])([email protected])
webpack: 5.99.8(@swc/[email protected])([email protected])
@@ -13378,9 +13348,9 @@ snapshots:
- '@swc/helpers'
- webpack
dependencies:
- '@storybook/core-webpack': 9.0.15([email protected](@testing-library/[email protected])([email protected]))
+ '@storybook/core-webpack': 9.0.16([email protected](@testing-library/[email protected])([email protected]))
case-sensitive-paths-webpack-plugin: 2.4.0
cjs-module-lexer: 1.4.3
@@ -13388,7 +13358,7 @@ snapshots:
fork-ts-checker-webpack-plugin: 8.0.0([email protected])([email protected](@swc/[email protected])([email protected]))
html-webpack-plugin: 5.6.3([email protected](@swc/[email protected])([email protected]))
magic-string: 0.30.17
- storybook: 9.0.15(@testing-library/[email protected])([email protected])
+ storybook: 9.0.16(@testing-library/[email protected])([email protected])
ts-dedent: 2.2.0
@@ -13405,14 +13375,14 @@ snapshots:
- uglify-js
- webpack-cli
dependencies:
- storybook: 9.0.15(@testing-library/[email protected])([email protected])
+ storybook: 9.0.16(@testing-library/[email protected])([email protected])
ts-dedent: 2.2.0
dependencies:
- storybook: 9.0.15(@testing-library/[email protected])([email protected])
+ storybook: 9.0.16(@testing-library/[email protected])([email protected])
unplugin: 1.16.1
'@storybook/[email protected]': {}
@@ -13422,9 +13392,9 @@ snapshots:
react: 19.1.0
react-dom: 19.1.0([email protected])
dependencies:
- '@storybook/core-webpack': 9.0.15([email protected](@testing-library/[email protected])([email protected]))
+ '@storybook/core-webpack': 9.0.16([email protected](@testing-library/[email protected])([email protected]))
'@storybook/react-docgen-typescript-plugin': 1.0.6--canary.9.0c3f3b7.0([email protected])([email protected](@swc/[email protected])([email protected]))
'@types/semver': 7.7.0
find-up: 7.0.0
@@ -13434,7 +13404,7 @@ snapshots:
react-dom: 19.1.0([email protected])
resolve: 1.22.10
semver: 7.7.2
- storybook: 9.0.15(@testing-library/[email protected])([email protected])
+ storybook: 9.0.16(@testing-library/[email protected])([email protected])
tsconfig-paths: 4.2.0
webpack: 5.99.8(@swc/[email protected])([email protected])
optionalDependencies:
@@ -13460,20 +13430,20 @@ snapshots:
transitivePeerDependencies:
- supports-color
dependencies:
react: 19.1.0
react-dom: 19.1.0([email protected])
- storybook: 9.0.15(@testing-library/[email protected])([email protected])
+ storybook: 9.0.16(@testing-library/[email protected])([email protected])
dependencies:
- '@storybook/builder-webpack5': 9.0.15(@swc/[email protected])([email protected])([email protected](@testing-library/[email protected])([email protected]))([email protected])
+ '@storybook/builder-webpack5': 9.0.16(@swc/[email protected])([email protected])([email protected](@testing-library/[email protected])([email protected]))([email protected])
react: 19.1.0
react-dom: 19.1.0([email protected])
- storybook: 9.0.15(@testing-library/[email protected])([email protected])
+ storybook: 9.0.16(@testing-library/[email protected])([email protected])
optionalDependencies:
typescript: 5.8.3
transitivePeerDependencies:
@@ -13484,13 +13454,13 @@ snapshots:
- uglify-js
- webpack-cli
dependencies:
'@storybook/global': 5.0.0
react: 19.1.0
react-dom: 19.1.0([email protected])
- storybook: 9.0.15(@testing-library/[email protected])([email protected])
+ storybook: 9.0.16(@testing-library/[email protected])([email protected])
optionalDependencies:
typescript: 5.8.3
@@ -19134,7 +19104,7 @@ snapshots:
webpack: 5.99.8(@swc/[email protected])([email protected])
dependencies:
'@storybook/global': 5.0.0
'@testing-library/jest-dom': 6.6.3