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
build: fix build issues caused by less (#2383)
白熱e0ed5e69a9fc
diff --git a/packages/docs-drawing-ui/src/views/doc-image-panel/DocDrawingAnchor.tsx b/packages/docs-drawing-ui/src/views/doc-image-panel/DocDrawingAnchor.tsxindex c3e636ee42..1e453a9a4d 100644--- a/packages/docs-drawing-ui/src/views/doc-image-panel/DocDrawingAnchor.tsx+++ b/packages/docs-drawing-ui/src/views/doc-image-panel/DocDrawingAnchor.tsx@@ -19,11 +19,11 @@ import { ICommandService, IDrawingManagerService, LocaleService } from '@univerjimport { useDependency } from '@wendellhu/redi/react-bindings';import React, { useEffect, useState } from 'react';import clsx from 'clsx';-import styles from '@univerjs/drawing-ui/views/panel/index.module.less';import type { BaseObject } from '@univerjs/engine-render';import { IRenderManagerService } from '@univerjs/engine-render';import type { IDocDrawing } from '@univerjs/docs-drawing';import { SetDocDrawingCommand } from '../../commands/commands/set-doc-drawing.command';+import styles from './index.module.less';export interface IDocDrawingAnchorProps {drawings: IDrawingParam[];diff --git a/packages/docs-drawing-ui/src/views/doc-image-panel/DocDrawingPanel.tsx b/packages/docs-drawing-ui/src/views/doc-image-panel/DocDrawingPanel.tsxindex 2268d85d80..ded26e17f1 100644--- a/packages/docs-drawing-ui/src/views/doc-image-panel/DocDrawingPanel.tsx+++ b/packages/docs-drawing-ui/src/views/doc-image-panel/DocDrawingPanel.tsx@@ -19,7 +19,7 @@ import { IDrawingManagerService } from '@univerjs/core';import { useDependency } from '@wendellhu/redi/react-bindings';import React, { useEffect, useState } from 'react';import { DrawingCommonPanel } from '@univerjs/drawing-ui';-import styles from '@univerjs/drawing-ui/views/panel/index.module.less';+import styles from './index.module.less';import { DocDrawingAnchor } from './DocDrawingAnchor';export const DocDrawingPanel = () => {diff --git a/packages/docs-drawing-ui/src/views/doc-image-panel/index.module.less b/packages/docs-drawing-ui/src/views/doc-image-panel/index.module.lessindex 703b56678d..52830aa09a 100644--- a/packages/docs-drawing-ui/src/views/doc-image-panel/index.module.less+++ b/packages/docs-drawing-ui/src/views/doc-image-panel/index.module.less@@ -1,3 +1,5 @@+@import '@univerjs/drawing-ui/views/panel/index.module.less';+.sheet-image {&-menu {position: absolute;diff --git a/packages/docs-drawing/package.json b/packages/docs-drawing/package.jsonindex 914522755a..fc192f63a1 100644--- a/packages/docs-drawing/package.json+++ b/packages/docs-drawing/package.json@@ -58,15 +58,12 @@},"peerDependencies": {"@univerjs/core": "workspace:*",- "@univerjs/docs": "workspace:*","@univerjs/docs-ui": "workspace:*","@univerjs/drawing": "workspace:*","@univerjs/engine-render": "workspace:*",- "@wendellhu/redi": ">=0.12.13",- "rxjs": ">=7.0.0"- },- "dependencies": {+ "@wendellhu/redi": "0.15.2"},+ "dependencies": {},"devDependencies": {"@univerjs/core": "workspace:*","@univerjs/docs": "workspace:*",@@ -75,9 +72,8 @@"@univerjs/engine-render": "workspace:*","@univerjs/shared": "workspace:*","@wendellhu/redi": "^0.15.2",- "rxjs": "^7.8.1","typescript": "^5.4.5",- "vite": "^5.2.11",+ "vite": "^5.2.12","vitest": "^1.6.0"}}diff --git a/packages/sheets-drawing-ui/src/views/sheet-image-panel/SheetDrawingAnchor.tsx b/packages/sheets-drawing-ui/src/views/sheet-image-panel/SheetDrawingAnchor.tsxindex 922a62f82d..4bf995bead 100644--- a/packages/sheets-drawing-ui/src/views/sheet-image-panel/SheetDrawingAnchor.tsx+++ b/packages/sheets-drawing-ui/src/views/sheet-image-panel/SheetDrawingAnchor.tsx@@ -20,12 +20,12 @@ import { useDependency } from '@wendellhu/redi/react-bindings';import React, { useEffect, useState } from 'react';import { Radio, RadioGroup } from '@univerjs/design';import clsx from 'clsx';-import styles from '@univerjs/drawing-ui/views/panel/index.module.less';import type { ISheetDrawing } from '@univerjs/sheets-drawing';import { SheetDrawingAnchorType } from '@univerjs/sheets-drawing';import type { BaseObject } from '@univerjs/engine-render';import { IRenderManagerService } from '@univerjs/engine-render';import { SetSheetDrawingCommand } from '../../commands/commands/set-sheet-drawing.command';+import styles from './index.module.less';export interface ISheetDrawingAnchorProps {drawings: IDrawingParam[];diff --git a/packages/sheets-drawing-ui/src/views/sheet-image-panel/SheetDrawingPanel.tsx b/packages/sheets-drawing-ui/src/views/sheet-image-panel/SheetDrawingPanel.tsxindex eb6a0d78d5..603afbcbbf 100644--- a/packages/sheets-drawing-ui/src/views/sheet-image-panel/SheetDrawingPanel.tsx+++ b/packages/sheets-drawing-ui/src/views/sheet-image-panel/SheetDrawingPanel.tsx@@ -19,7 +19,7 @@ import { IDrawingManagerService } from '@univerjs/core';import { useDependency } from '@wendellhu/redi/react-bindings';import React, { useEffect, useState } from 'react';import { DrawingCommonPanel } from '@univerjs/drawing-ui';-import styles from '@univerjs/drawing-ui/views/panel/index.module.less';+import styles from './index.module.less';import { SheetDrawingAnchor } from './SheetDrawingAnchor';export const SheetDrawingPanel = () => {diff --git a/packages/sheets-drawing-ui/src/views/sheet-image-panel/index.module.less b/packages/sheets-drawing-ui/src/views/sheet-image-panel/index.module.lessindex 703b56678d..52830aa09a 100644--- a/packages/sheets-drawing-ui/src/views/sheet-image-panel/index.module.less+++ b/packages/sheets-drawing-ui/src/views/sheet-image-panel/index.module.less@@ -1,3 +1,5 @@+@import '@univerjs/drawing-ui/views/panel/index.module.less';+.sheet-image {&-menu {position: absolute;diff --git a/packages/sheets-drawing/package.json b/packages/sheets-drawing/package.jsonindex 8171da9ad9..5d3e639599 100644--- a/packages/sheets-drawing/package.json+++ b/packages/sheets-drawing/package.json@@ -59,21 +59,17 @@"peerDependencies": {"@univerjs/core": "workspace:*","@univerjs/drawing": "workspace:*",- "@univerjs/sheets": "workspace:*",- "@wendellhu/redi": ">=0.12.13",- "rxjs": ">=7.0.0"- },- "dependencies": {+ "@wendellhu/redi": "0.15.2"},+ "dependencies": {},"devDependencies": {"@univerjs/core": "workspace:*","@univerjs/drawing": "workspace:*","@univerjs/shared": "workspace:*","@univerjs/sheets": "workspace:*","@wendellhu/redi": "^0.15.2",- "rxjs": "^7.8.1","typescript": "^5.4.5",- "vite": "^5.2.11",+ "vite": "^5.2.12","vitest": "^1.6.0"}}diff --git a/packages/sheets-ui/package.json b/packages/sheets-ui/package.jsonindex 3561493aa3..c5cfdc5b12 100644--- a/packages/sheets-ui/package.json+++ b/packages/sheets-ui/package.json@@ -76,7 +76,6 @@"@univerjs/engine-numfmt": "workspace:*","@univerjs/engine-render": "workspace:*","@univerjs/sheets": "workspace:*",- "@univerjs/sheets-ui": "workspace:*","@univerjs/ui": "workspace:*","@wendellhu/redi": "0.15.2","clsx": ">=2.0.0",diff --git a/packages/umd/package.json b/packages/umd/package.jsonindex 6ee04d6077..218ea21fe1 100644--- a/packages/umd/package.json+++ b/packages/umd/package.json@@ -45,6 +45,7 @@"@univerjs/data-validation": "workspace:*","@univerjs/design": "workspace:*","@univerjs/docs": "workspace:*",+ "@univerjs/docs-drawing": "workspace:*","@univerjs/docs-drawing-ui": "workspace:*","@univerjs/docs-ui": "workspace:*","@univerjs/drawing": "workspace:*",@@ -61,6 +62,7 @@"@univerjs/sheets-conditional-formatting": "workspace:*","@univerjs/sheets-conditional-formatting-ui": "workspace:*","@univerjs/sheets-data-validation": "workspace:*",+ "@univerjs/sheets-drawing": "workspace:*","@univerjs/sheets-drawing-ui": "workspace:*","@univerjs/sheets-filter": "workspace:*","@univerjs/sheets-filter-ui": "workspace:*",diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 12cb73b1a0..67d28b7df3 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -642,14 +642,11 @@ importers:'@wendellhu/redi':specifier: ^0.15.2version: 0.15.2- rxjs:- specifier: ^7.8.1- version: 7.8.1typescript:specifier: ^5.4.5version: 5.4.5vite:- specifier: ^5.2.11+ specifier: ^5.2.12vitest:specifier: ^1.6.0@@ -1355,14 +1352,11 @@ importers:'@wendellhu/redi':specifier: ^0.15.2version: 0.15.2- rxjs:- specifier: ^7.8.1- version: 7.8.1typescript:specifier: ^5.4.5version: 5.4.5vite:- specifier: ^5.2.11+ specifier: ^5.2.12vitest:specifier: ^1.6.0@@ -1842,9 +1836,6 @@ importers:'@univerjs/protocol':specifier: ^0.1.34version: 0.1.34(@grpc/[email protected])([email protected])- '@univerjs/sheets-ui':- specifier: workspace:*- version: 'link:'devDependencies:'@types/react':specifier: ^18.2.79@@ -2211,6 +2202,9 @@ importers:'@univerjs/docs':specifier: workspace:*version: link:../docs+ '@univerjs/docs-drawing':+ specifier: workspace:*+ version: link:../docs-drawing'@univerjs/docs-drawing-ui':specifier: workspace:*version: link:../docs-drawing-ui@@ -2259,6 +2253,9 @@ importers:'@univerjs/sheets-data-validation':specifier: workspace:*version: link:../sheets-data-validation+ '@univerjs/sheets-drawing':+ specifier: workspace:*+ version: link:../sheets-drawing'@univerjs/sheets-drawing-ui':specifier: workspace:*version: link:../sheets-drawing-ui