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.

fix: missing icons (#835)

Ran Luode6769a689ee
diff --git a/examples/package.json b/examples/package.json
index 6076453b0f..61b6bd833e 100644
--- a/examples/package.json
+++ b/examples/package.json
@@ -15,7 +15,7 @@
"@univerjs/docs-ui": "workspace:*",
"@univerjs/engine-formula": "workspace:*",
"@univerjs/engine-render": "workspace:*",
- "@univerjs/icons": "^0.1.18",
+ "@univerjs/icons": "^0.1.24",
"@univerjs/local-save": "workspace:*",
"@univerjs/rpc": "workspace:*",
"@univerjs/sheets": "workspace:*",
diff --git a/packages/design/package.json b/packages/design/package.json
index c445158b7c..6dc48aa600 100644
--- a/packages/design/package.json
+++ b/packages/design/package.json
@@ -49,7 +49,7 @@
"dependencies": {
"@rc-component/color-picker": "^1.4.1",
"@rc-component/trigger": "^1.18.2",
- "@univerjs/icons": "^0.1.18",
+ "@univerjs/icons": "^0.1.24",
"clsx": "^2.0.0",
"rc-dialog": "^9.3.4",
"rc-dropdown": "^4.1.0",
diff --git a/packages/docs-ui/src/controllers/menu/menu.ts b/packages/docs-ui/src/controllers/menu/menu.ts
index a9ab453d97..b793258cf8 100644
--- a/packages/docs-ui/src/controllers/menu/menu.ts
+++ b/packages/docs-ui/src/controllers/menu/menu.ts
@@ -87,7 +87,7 @@ export function SubscriptMenuItemFactory(accessor: IAccessor): IMenuButtonItem {
id: SetInlineFormatSubscriptCommand.id,
group: MenuGroup.TOOLBAR_FORMAT,
type: MenuItemType.BUTTON,
- icon: 'FontSizeReduceSingleSingle',
+ icon: 'SubscriptSingle',
tooltip: 'toolbar.subscript',
positions: [MenuPosition.TOOLBAR_START],
hidden$: getMenuHiddenObservable(accessor, UniverInstanceType.DOC),
@@ -99,7 +99,7 @@ export function SuperscriptMenuItemFactory(accessor: IAccessor): IMenuButtonItem
id: SetInlineFormatSuperscriptCommand.id,
group: MenuGroup.TOOLBAR_FORMAT,
type: MenuItemType.BUTTON,
- icon: 'FontSizeIncreaseSingle',
+ icon: 'SuperscriptSingle',
tooltip: 'toolbar.superscript',
positions: [MenuPosition.TOOLBAR_START],
hidden$: getMenuHiddenObservable(accessor, UniverInstanceType.DOC),
diff --git a/packages/sheets-formula/package.json b/packages/sheets-formula/package.json
index ecbba2b32c..502c17109e 100644
--- a/packages/sheets-formula/package.json
+++ b/packages/sheets-formula/package.json
@@ -42,7 +42,7 @@
"build": "tsc && vite build"
},
"dependencies": {
- "@univerjs/icons": "^0.1.18"
+ "@univerjs/icons": "^0.1.24"
},
"devDependencies": {
"@types/react": "^18.2.42",
diff --git a/packages/sheets-numfmt/package.json b/packages/sheets-numfmt/package.json
index 787d59a815..d4d95416e0 100644
--- a/packages/sheets-numfmt/package.json
+++ b/packages/sheets-numfmt/package.json
@@ -45,7 +45,7 @@
"build": "tsc && vite build"
},
"dependencies": {
- "@univerjs/icons": "^0.1.18"
+ "@univerjs/icons": "^0.1.24"
},
"devDependencies": {
"@types/react": "^18.2.42",
diff --git a/packages/sheets-ui/package.json b/packages/sheets-ui/package.json
index 7a243fdf28..8845665993 100644
--- a/packages/sheets-ui/package.json
+++ b/packages/sheets-ui/package.json
@@ -47,7 +47,7 @@
"build": "tsc && vite build"
},
"dependencies": {
- "@univerjs/icons": "^0.1.18"
+ "@univerjs/icons": "^0.1.24"
},
"devDependencies": {
"@types/react": "^18.2.42",
diff --git a/packages/ui/package.json b/packages/ui/package.json
index 24b16acca0..d56ebd66c4 100644
--- a/packages/ui/package.json
+++ b/packages/ui/package.json
@@ -47,7 +47,7 @@
"build": "tsc && vite build"
},
"dependencies": {
- "@univerjs/icons": "^0.1.23",
+ "@univerjs/icons": "^0.1.24",
"clsx": "^2.0.0",
"localforage": "^1.10.0",
"rc-notification": "^5.3.0",
diff --git a/packages/ui/src/common/component-manager.ts b/packages/ui/src/common/component-manager.ts
index a1363f677e..a54b72d80e 100644
--- a/packages/ui/src/common/component-manager.ts
+++ b/packages/ui/src/common/component-manager.ts
@@ -88,7 +88,9 @@ import {
RightRotationNinetyDegreesSingle,
SlashSingle,
StrikethroughSingle,
+ SubscriptSingle,
SumSingle,
+ SuperscriptSingle,
TruncationSingle,
UnderlineSingle,
UndoSingle,
@@ -152,6 +154,8 @@ export class ComponentManager {
StrikethroughSingle,
OrderSingle,
UnorderSingle,
+ SuperscriptSingle,
+ SubscriptSingle,
TruncationSingle,
UnderlineSingle,
UndoSingle,
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index f1f594dae3..884be9cafe 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -156,8 +156,8 @@ importers:
specifier: workspace:*
version: link:../packages/engine-render
'@univerjs/icons':
- specifier: ^0.1.18
+ specifier: ^0.1.24
'@univerjs/local-save':
specifier: workspace:*
version: link:../packages/local-save
@@ -287,8 +287,8 @@ importers:
specifier: ^1.18.2
'@univerjs/icons':
- specifier: ^0.1.18
+ specifier: ^0.1.24
clsx:
specifier: ^2.0.0
version: 2.0.0
@@ -810,8 +810,8 @@ importers:
packages/sheets-formula:
dependencies:
'@univerjs/icons':
- specifier: ^0.1.18
+ specifier: ^0.1.24
devDependencies:
'@types/react':
specifier: ^18.2.42
@@ -925,8 +925,8 @@ importers:
packages/sheets-numfmt:
dependencies:
'@univerjs/icons':
- specifier: ^0.1.18
+ specifier: ^0.1.24
devDependencies:
'@types/react':
specifier: ^18.2.42
@@ -989,8 +989,8 @@ importers:
packages/sheets-ui:
dependencies:
'@univerjs/icons':
- specifier: ^0.1.18
+ specifier: ^0.1.24
devDependencies:
'@types/react':
specifier: ^18.2.42
@@ -1152,8 +1152,8 @@ importers:
packages/ui:
dependencies:
'@univerjs/icons':
- specifier: ^0.1.23
+ specifier: ^0.1.24
clsx:
specifier: ^2.0.0
version: 2.0.0
@@ -5726,18 +5726,8 @@ packages:
resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==}
dev: true
- resolution: {integrity: sha512-5XLXzltYcLi4ilnoT1AQN+ef90Vux4XbePr+C54bpm/PN9QYtH7c0L51xEVrH9DE+R0bkqma3gyE0RIydCiK+A==}
- peerDependencies:
- react: '*'
- react-dom: '*'
- dependencies:
- react: 18.2.0
- react-dom: 18.2.0([email protected])
- dev: false
-
- resolution: {integrity: sha512-2alR9KjdYe/VKZlOUyWBzATUpZZmEhI8F5gTiIkftMYv2yE23P0Vid255dGbmOvBfYg9RUVDusDxXvhemiyvrQ==}
+ resolution: {integrity: sha512-+5MaebxDHTKWqpDI0avHgXZVWnyspqjgp5spM2WXJFNXjCcRB9H8o8du9IZloi3KWXMNz43J1hih++Z9j/gzfg==}
peerDependencies:
react: '*'
react-dom: '*'
@@ -5808,7 +5798,7 @@ packages:
magicast: 0.3.2
picocolors: 1.0.0
test-exclude: 6.0.0
+ vitest: 1.0.4(@types/[email protected])
transitivePeerDependencies:
- supports-color
dev: true