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
feat: add RTL direction support for UI (#6893)
白熱7f53a7edd356
diff --git a/common/debugger/package.json b/common/debugger/package.jsonindex 40cd04ca90..3f8349e0a6 100644--- a/common/debugger/package.json+++ b/common/debugger/package.json@@ -35,7 +35,7 @@"@univerjs/design": "workspace:*","@univerjs/docs-drawing-ui": "workspace:*","@univerjs/engine-render": "workspace:*",- "@univerjs/icons": "^1.1.1",+ "@univerjs/icons": "^1.2.0","@univerjs/mockdata": "workspace:*","@univerjs/sheets": "workspace:*","@univerjs/sheets-drawing-ui": "workspace:*",diff --git a/common/debugger/src/views/use-rtl.ts b/common/debugger/src/views/use-rtl.tsindex c0fe07cc73..d6e1fff5b2 100644--- a/common/debugger/src/views/use-rtl.ts+++ b/common/debugger/src/views/use-rtl.ts@@ -14,26 +14,26 @@* limitations under the License.*/+import { LocaleService } from '@univerjs/core';+import { useDependency } from '@univerjs/ui';import { useEffect } from 'react';-function applyDirection(value: 'ltr' | 'rtl') {- document.documentElement.setAttribute('dir', value);-}-export function useRTL() {+ const localeService = useDependency(LocaleService);+useEffect(() => {const dir = localStorage.getItem('local.direction');if (dir === 'rtl' || dir === 'ltr') {- applyDirection(dir);+ localeService.setDirection(dir);}- }, []);+ }, [localeService]);const onSelect = () => {const current = document.documentElement.getAttribute('dir');const nextDirection = current === 'rtl' ? 'ltr' : 'rtl';- applyDirection(nextDirection);+ localeService.setDirection(nextDirection);localStorage.setItem('local.direction', nextDirection);};diff --git a/common/shared/package.json b/common/shared/package.jsonindex 0a77845521..2b88c3d27f 100644--- a/common/shared/package.json+++ b/common/shared/package.json@@ -51,7 +51,7 @@},"devDependencies": {"@types/fs-extra": "^11.0.4",- "@univerjs/icons": "^1.1.1",+ "@univerjs/icons": "^1.2.0","@univerjs/icons-svg": "^1.1.1","@univerjs/protocol": "workspace:*","typescript": "^6.0.3",diff --git a/examples/package.json b/examples/package.jsonindex cc459cbcfa..230e4a21c8 100644--- a/examples/package.json+++ b/examples/package.json@@ -35,7 +35,7 @@"@univerjs/engine-formula": "workspace:*","@univerjs/engine-render": "workspace:*","@univerjs/find-replace": "workspace:*",- "@univerjs/icons": "1.1.1",+ "@univerjs/icons": "1.2.0","@univerjs/mockdata": "workspace:*","@univerjs/network": "workspace:*","@univerjs/rpc": "workspace:*",diff --git a/packages/action-recorder/package.json b/packages/action-recorder/package.jsonindex a07e9859e1..8060086a95 100644--- a/packages/action-recorder/package.json+++ b/packages/action-recorder/package.json@@ -76,7 +76,7 @@"dependencies": {"@univerjs/core": "workspace:*","@univerjs/design": "workspace:*",- "@univerjs/icons": "^1.1.1",+ "@univerjs/icons": "^1.2.0","@univerjs/sheets": "workspace:*","@univerjs/sheets-filter": "workspace:*","@univerjs/sheets-ui": "workspace:*",diff --git a/packages/core/src/__tests__/univer-skeleton.spec.ts b/packages/core/src/__tests__/univer-skeleton.spec.tsindex fd50786397..de0a333920 100644--- a/packages/core/src/__tests__/univer-skeleton.spec.ts+++ b/packages/core/src/__tests__/univer-skeleton.spec.ts@@ -56,6 +56,7 @@ describe('Univer', () => {darkMode: true,locales,locale: LocaleType.EN_US,+ direction: 'rtl',logLevel: LogLevel.VERBOSE,logCommandExecution: true,});@@ -64,11 +65,13 @@ describe('Univer', () => {const localeService = injector.get(LocaleService);expect(localeService.getCurrentLocale()).toBe(LocaleType.EN_US);+ expect(localeService.getDirection()).toBe('rtl');expect(localeService.t('test.greeting', 'Univer')).toBe('Hello Univer');expect(injector.get(IConfigService).getConfig(COMMAND_LOG_EXECUTION_CONFIG_KEY)).toBe(true);univer.setLocale(LocaleType.ZH_CN);expect(localeService.getCurrentLocale()).toBe(LocaleType.ZH_CN);+ expect(localeService.getDirection()).toBe('rtl');univer.dispose();});diff --git a/packages/core/src/services/locale/__tests__/locale.service.spec.ts b/packages/core/src/services/locale/__tests__/locale.service.spec.tsindex b56abb49e4..f9c8a422c7 100644--- a/packages/core/src/services/locale/__tests__/locale.service.spec.ts+++ b/packages/core/src/services/locale/__tests__/locale.service.spec.ts@@ -66,6 +66,14 @@ describe('LocaleService', () => {expect(localeService.t('nonExistentKey')).toBe('nonExistentKey');});+ it('should return RTL status independent from current locale', () => {+ expect(localeService.getDirection()).toBe('ltr');+ localeService.setLocale(LocaleType.FA_IR);+ expect(localeService.getDirection()).toBe('ltr');+ localeService.setDirection('rtl');+ expect(localeService.getDirection()).toBe('rtl');+ });+it('should throw an error if locales are not initialized', () => {const newLocaleService = new LocaleService();const t = () => {diff --git a/packages/core/src/services/locale/locale.service.ts b/packages/core/src/services/locale/locale.service.tsindex 1e67f926b0..1fa5de77a2 100644--- a/packages/core/src/services/locale/locale.service.ts+++ b/packages/core/src/services/locale/locale.service.ts@@ -28,6 +28,9 @@ export class LocaleService extends Disposable {readonly currentLocale$ = this._currentLocale$.asObservable();private get _currentLocale(): LocaleType { return this._currentLocale$.value; }+ private _direction$ = new BehaviorSubject<'ltr' | 'rtl'>('ltr');+ readonly direction$ = this._direction$.asObservable();+private _locales: ILocales | null = null;localeChanged$ = new Subject<void>();@@ -38,6 +41,7 @@ export class LocaleService extends Disposable {this.disposeWithMe(toDisposable(() => {this._locales = null;this._currentLocale$.complete();+ this._direction$.complete();this.localeChanged$.complete();}));}@@ -105,6 +109,14 @@ export class LocaleService extends Disposable {return this._currentLocale;}+ setDirection(direction: 'ltr' | 'rtl') {+ this._direction$.next(direction);+ }++ getDirection() {+ return this._direction$.value;+ }+public resolveKeyPath(obj: ILanguagePack, keys: string[]): LanguageValue | null {const currentKey = keys.shift();diff --git a/packages/core/src/univer.ts b/packages/core/src/univer.tsindex faf32fbb90..497704430d 100644--- a/packages/core/src/univer.ts+++ b/packages/core/src/univer.ts@@ -70,6 +70,12 @@ export interface IUniverConfig {*/locale?: LocaleType;+ /**+ * The direction of the Univer instance.+ * @default 'ltr'+ */+ direction?: 'ltr' | 'rtl';+/*** The locales to be used*/@@ -117,11 +123,12 @@ export class Univer implements IDisposable {constructor(config: Partial<IUniverConfig> = {}, parentInjector?: Injector) {const injector = this._injector = createUniverInjector(parentInjector, config?.override);- const { theme, darkMode, locale, locales, logLevel, logCommandExecution } = config;+ const { theme, darkMode, locale, locales, direction, logLevel, logCommandExecution } = config;if (theme) this._injector.get(ThemeService).setTheme(theme);if (darkMode) this._injector.get(ThemeService).setDarkMode(darkMode);if (locales) this._injector.get(LocaleService).load(locales);if (locale) this._injector.get(LocaleService).setLocale(locale);+ if (direction) this._injector.get(LocaleService).setDirection(direction);if (logLevel) this._injector.get(ILogService).setLogLevel(logLevel);if (logCommandExecution !== undefined) {this._injector.get(IConfigService).setConfig(COMMAND_LOG_EXECUTION_CONFIG_KEY, logCommandExecution);diff --git a/packages/design/package.json b/packages/design/package.jsonindex a65ea48b84..f4aed20b20 100644--- a/packages/design/package.json+++ b/packages/design/package.json@@ -75,12 +75,13 @@},"dependencies": {"@radix-ui/react-dialog": "^1.1.15",+ "@radix-ui/react-direction": "^1.1.1","@radix-ui/react-dropdown-menu": "^2.1.16","@radix-ui/react-hover-card": "^1.1.15","@radix-ui/react-popover": "^1.1.15","@radix-ui/react-separator": "^1.1.8","@radix-ui/react-slot": "^1.2.4",- "@univerjs/icons": "^1.1.1",+ "@univerjs/icons": "^1.2.0","class-variance-authority": "^0.7.1","clsx": "^2.1.1","react-transition-group": "^4.4.5",diff --git a/packages/design/src/components/config-provider/ConfigProvider.tsx b/packages/design/src/components/config-provider/ConfigProvider.tsxindex 20db6d9fcc..faf4059077 100644--- a/packages/design/src/components/config-provider/ConfigProvider.tsx+++ b/packages/design/src/components/config-provider/ConfigProvider.tsx@@ -15,12 +15,14 @@*/import type { ReactNode } from 'react';+import { DirectionProvider } from '@radix-ui/react-direction';import { createContext, useMemo } from 'react';import { isBrowser } from '../../helper/is-browser';export interface IConfigProviderProps {children: ReactNode;locale?: any;+ direction?: 'ltr' | 'rtl';mountContainer: HTMLElement | null;}@@ -29,18 +31,21 @@ export const ConfigContext = createContext<Omit<IConfigProviderProps, 'children'});export function ConfigProvider(props: IConfigProviderProps) {- const { children, locale, mountContainer } = props;+ const { children, locale, mountContainer, direction } = props;const value = useMemo(() => {return {locale,+ direction,mountContainer,};- }, [locale, mountContainer]);+ }, [locale, direction, mountContainer]);return (<ConfigContext.Provider value={value}>- {children}+ <DirectionProvider dir={direction ?? 'ltr'}>+ {children}+ </DirectionProvider></ConfigContext.Provider>);}diff --git a/packages/design/src/components/draggable-list/DraggableList.tsx b/packages/design/src/components/draggable-list/DraggableList.tsxindex 9d0d69222f..2fe49d1a92 100644--- a/packages/design/src/components/draggable-list/DraggableList.tsx+++ b/packages/design/src/components/draggable-list/DraggableList.tsx@@ -15,9 +15,10 @@*/import type { CSSProperties, HTMLAttributes, PointerEvent, ReactNode } from 'react';-import { useEffect, useMemo, useRef, useState } from 'react';+import { useContext, useEffect, useMemo, useRef, useState } from 'react';import { createPortal } from 'react-dom';import { clsx } from '../../helper/clsx';+import { ConfigContext } from '../config-provider/ConfigProvider';interface IDragPosition {y: number;@@ -80,6 +81,8 @@ export function DraggableList<T = any>(props: IDraggableListProps<T>) {const dragSourceIdRef = useRef<string | null>(null);const dragStartIndexRef = useRef(-1);+ const { direction } = useContext(ConfigContext);+useEffect(() => {if (!draggingId) {setDisplayList(list);@@ -269,6 +272,7 @@ export function DraggableList<T = any>(props: IDraggableListProps<T>) {</div>{canUsePortal && draggingItem && ghostPosition && createPortal((<div+ dir={direction}className={clsx(`univer-pointer-events-none univer-fixed univer-rounded-md univer-border univer-border-gray-200univer-bg-white univer-shadow-lgdiff --git a/packages/design/src/components/gallery/Gallery.tsx b/packages/design/src/components/gallery/Gallery.tsxindex d7f53816a8..2b77a1e9fb 100644--- a/packages/design/src/components/gallery/Gallery.tsx+++ b/packages/design/src/components/gallery/Gallery.tsx@@ -15,9 +15,10 @@*/import { OneToOneIcon, ZoomInIcon, ZoomOutIcon } from '@univerjs/icons';-import { useEffect, useMemo, useRef, useState } from 'react';+import { useContext, useEffect, useMemo, useRef, useState } from 'react';import { createPortal } from 'react-dom';import { clsx } from '../../helper/clsx';+import { ConfigContext } from '../config-provider/ConfigProvider';import { Pager } from '../pager/Pager';export interface IGalleryProps {@@ -38,6 +39,7 @@ export function Gallery(props: IGalleryProps) {const [isVisible, setIsVisible] = useState(false);const [activeImageIndex, setActiveImageIndex] = useState(0);const [zoomLevel, setZoomLevel] = useState(1);+ const { direction } = useContext(ConfigContext);const dialogRef = useRef<HTMLDivElement>(null);@@ -105,6 +107,7 @@ export function Gallery(props: IGalleryProps) {return createPortal(<divdata-u-comp="gallery"+ dir={direction}role="dialog"aria-modal="true"aria-label="Image gallery"diff --git a/packages/design/src/components/popup/Popup.tsx b/packages/design/src/components/popup/Popup.tsxindex 1c0d66f5b8..d75c48cbc4 100644--- a/packages/design/src/components/popup/Popup.tsx+++ b/packages/design/src/components/popup/Popup.tsx@@ -59,7 +59,7 @@ export function Popup(props: IPopupProps) {const [realOffset, setRealOffset] = useState<[number, number]>(HIDDEN_POPUP_OFFSET);- const { mountContainer } = useContext(ConfigContext);+ const { mountContainer, direction } = useContext(ConfigContext);const calculateOffset = (): [number, number] | null => {const element = nodeRef.current;@@ -130,6 +130,7 @@ export function Popup(props: IPopupProps) {><sectionref={nodeRef}+ dir={direction}className="univer-popup"style={{// Fix #1089. If the popup does not have this 2px offset, the pointerup event's target woulddiff --git a/packages/design/src/components/tooltip/Tooltip.tsx b/packages/design/src/components/tooltip/Tooltip.tsxindex e531377046..94c05b9cd4 100644--- a/packages/design/src/components/tooltip/Tooltip.tsx+++ b/packages/design/src/components/tooltip/Tooltip.tsx@@ -15,9 +15,10 @@*/import type { ReactElement, ReactNode } from 'react';-import { useEffect, useLayoutEffect, useRef, useState } from 'react';+import { useContext, useEffect, useLayoutEffect, useRef, useState } from 'react';import { createPortal } from 'react-dom';import { clsx } from '../../helper/clsx';+import { ConfigContext } from '../config-provider/ConfigProvider';export interface ITooltipProps {/**@@ -71,6 +72,8 @@ export function Tooltip(props: ITooltipProps) {onVisibleChange,} = props;+ const { direction } = useContext(ConfigContext);+// Internal state for uncontrolled modeconst [uncontrolledVisible, setUncontrolledVisible] = useState(false);@@ -239,6 +242,7 @@ export function Tooltip(props: ITooltipProps) {tooltipNode = createPortal(<divref={tooltipRef}+ dir={direction}role="tooltip"className={clsx(`univer-animate-in univer-fade-in-0 univer-zoom-in-95 univer-pointer-events-auto univer-absolutediff --git a/packages/docs-hyper-link-ui/package.json b/packages/docs-hyper-link-ui/package.jsonindex 6f0a172f36..2669164554 100644--- a/packages/docs-hyper-link-ui/package.json+++ b/packages/docs-hyper-link-ui/package.json@@ -80,7 +80,7 @@"@univerjs/docs-hyper-link": "workspace:*","@univerjs/docs-ui": "workspace:*","@univerjs/engine-render": "workspace:*",- "@univerjs/icons": "^1.1.1",+ "@univerjs/icons": "^1.2.0","@univerjs/ui": "workspace:*"},"devDependencies": {diff --git a/packages/docs-quick-insert-ui/package.json b/packages/docs-quick-insert-ui/package.jsonindex 4d6575c02d..b60b3f81a3 100644--- a/packages/docs-quick-insert-ui/package.json+++ b/packages/docs-quick-insert-ui/package.json@@ -83,7 +83,7 @@"@univerjs/drawing": "workspace:*","@univerjs/drawing-ui": "workspace:*","@univerjs/engine-render": "workspace:*",- "@univerjs/icons": "^1.1.1",+ "@univerjs/icons": "^1.2.0","@univerjs/ui": "workspace:*"},"devDependencies": {diff --git a/packages/docs-thread-comment-ui/package.json b/packages/docs-thread-comment-ui/package.jsonindex c39ea1a2d2..2581db5bff 100644--- a/packages/docs-thread-comment-ui/package.json+++ b/packages/docs-thread-comment-ui/package.json@@ -72,7 +72,7 @@"@univerjs/docs": "workspace:*","@univerjs/docs-ui": "workspace:*","@univerjs/engine-render": "workspace:*",- "@univerjs/icons": "^1.1.1",+ "@univerjs/icons": "^1.2.0","@univerjs/thread-comment": "workspace:*","@univerjs/thread-comment-ui": "workspace:*","@univerjs/ui": "workspace:*"diff --git a/packages/docs-ui/package.json b/packages/docs-ui/package.jsonindex e7b4607b51..e353bae1f8 100644--- a/packages/docs-ui/package.json+++ b/packages/docs-ui/package.json@@ -90,7 +90,7 @@"@univerjs/docs": "workspace:*","@univerjs/drawing": "workspace:*","@univerjs/engine-render": "workspace:*",- "@univerjs/icons": "^1.1.1",+ "@univerjs/icons": "^1.2.0","@univerjs/ui": "workspace:*"},"devDependencies": {diff --git a/packages/drawing-ui/package.json b/packages/drawing-ui/package.jsonindex 45a12ef41a..58fbb47724 100644--- a/packages/drawing-ui/package.json+++ b/packages/drawing-ui/package.json@@ -78,7 +78,7 @@"@univerjs/design": "workspace:*","@univerjs/drawing": "workspace:*","@univerjs/engine-render": "workspace:*",- "@univerjs/icons": "^1.1.1",+ "@univerjs/icons": "^1.2.0","@univerjs/ui": "workspace:*"},"devDependencies": {diff --git a/packages/find-replace/package.json b/packages/find-replace/package.jsonindex 6e464b316a..b6173903d3 100644--- a/packages/find-replace/package.json+++ b/packages/find-replace/package.json@@ -77,7 +77,7 @@"@univerjs/core": "workspace:*","@univerjs/design": "workspace:*","@univerjs/engine-render": "workspace:*",- "@univerjs/icons": "^1.1.1",+ "@univerjs/icons": "^1.2.0","@univerjs/ui": "workspace:*"},"devDependencies": {diff --git a/packages/sheets-conditional-formatting-ui/package.json b/packages/sheets-conditional-formatting-ui/package.jsonindex 2682bd24ea..7b42e1dafa 100644--- a/packages/sheets-conditional-formatting-ui/package.json+++ b/packages/sheets-conditional-formatting-ui/package.json@@ -78,7 +78,7 @@"@univerjs/design": "workspace:*","@univerjs/engine-formula": "workspace:*","@univerjs/engine-render": "workspace:*",- "@univerjs/icons": "^1.1.1",+ "@univerjs/icons": "^1.2.0","@univerjs/sheets": "workspace:*","@univerjs/sheets-conditional-formatting": "workspace:*","@univerjs/sheets-formula": "workspace:*",diff --git a/packages/sheets-crosshair-highlight/package.json b/packages/sheets-crosshair-highlight/package.jsonindex c41d6c33c8..9697f206fb 100644--- a/packages/sheets-crosshair-highlight/package.json+++ b/packages/sheets-crosshair-highlight/package.json@@ -88,7 +88,7 @@"@univerjs/core": "workspace:*","@univerjs/design": "workspace:*","@univerjs/engine-render": "workspace:*",- "@univerjs/icons": "^1.1.1",+ "@univerjs/icons": "^1.2.0","@univerjs/sheets": "workspace:*","@univerjs/sheets-ui": "workspace:*","@univerjs/ui": "workspace:*"diff --git a/packages/sheets-data-validation-ui/package.json b/packages/sheets-data-validation-ui/package.jsonindex bf1f2faeb4..6a2ffac37b 100644--- a/packages/sheets-data-validation-ui/package.json+++ b/packages/sheets-data-validation-ui/package.json@@ -80,7 +80,7 @@"@univerjs/design": "workspace:*","@univerjs/engine-formula": "workspace:*","@univerjs/engine-render": "workspace:*",- "@univerjs/icons": "^1.1.1",+ "@univerjs/icons": "^1.2.0","@univerjs/sheets": "workspace:*","@univerjs/sheets-data-validation": "workspace:*","@univerjs/sheets-formula-ui": "workspace:*",diff --git a/packages/sheets-filter-ui/package.json b/packages/sheets-filter-ui/package.jsonindex 20ff165633..c711234155 100644--- a/packages/sheets-filter-ui/package.json+++ b/packages/sheets-filter-ui/package.json@@ -77,7 +77,7 @@"@univerjs/core": "workspace:*","@univerjs/design": "workspace:*","@univerjs/engine-render": "workspace:*",- "@univerjs/icons": "^1.1.1",+ "@univerjs/icons": "^1.2.0","@univerjs/rpc": "workspace:*","@univerjs/sheets": "workspace:*","@univerjs/sheets-filter": "workspace:*",diff --git a/packages/sheets-formula-ui/package.json b/packages/sheets-formula-ui/package.jsonindex 63bdf256b7..bf4c631d0a 100644--- a/packages/sheets-formula-ui/package.json+++ b/packages/sheets-formula-ui/package.json@@ -91,7 +91,7 @@"@univerjs/docs-ui": "workspace:*","@univerjs/engine-formula": "workspace:*","@univerjs/engine-render": "workspace:*",- "@univerjs/icons": "^1.1.1",+ "@univerjs/icons": "^1.2.0","@univerjs/sheets": "workspace:*","@univerjs/sheets-formula": "workspace:*","@univerjs/sheets-ui": "workspace:*",diff --git a/packages/sheets-hyper-link-ui/package.json b/packages/sheets-hyper-link-ui/package.jsonindex 34856301e5..6f73b0e08c 100644--- a/packages/sheets-hyper-link-ui/package.json+++ b/packages/sheets-hyper-link-ui/package.json@@ -91,7 +91,7 @@"@univerjs/docs-ui": "workspace:*","@univerjs/engine-formula": "workspace:*","@univerjs/engine-render": "workspace:*",- "@univerjs/icons": "^1.1.1",+ "@univerjs/icons": "^1.2.0","@univerjs/sheets": "workspace:*","@univerjs/sheets-data-validation": "workspace:*","@univerjs/sheets-formula-ui": "workspace:*",diff --git a/packages/sheets-note-ui/package.json b/packages/sheets-note-ui/package.jsonindex 24356d6dce..00d8185e7d 100644--- a/packages/sheets-note-ui/package.json+++ b/packages/sheets-note-ui/package.json@@ -74,7 +74,7 @@"@univerjs/core": "workspace:*","@univerjs/design": "workspace:*","@univerjs/engine-render": "workspace:*",- "@univerjs/icons": "^1.1.1",+ "@univerjs/icons": "^1.2.0","@univerjs/sheets": "workspace:*","@univerjs/sheets-note": "workspace:*","@univerjs/sheets-ui": "workspace:*",diff --git a/packages/sheets-numfmt-ui/package.json b/packages/sheets-numfmt-ui/package.jsonindex 67189e5f1d..b50154030b 100644--- a/packages/sheets-numfmt-ui/package.json+++ b/packages/sheets-numfmt-ui/package.json@@ -78,7 +78,7 @@"@univerjs/design": "workspace:*","@univerjs/engine-formula": "workspace:*","@univerjs/engine-render": "workspace:*",- "@univerjs/icons": "^1.1.1",+ "@univerjs/icons": "^1.2.0","@univerjs/sheets": "workspace:*","@univerjs/sheets-numfmt": "workspace:*","@univerjs/sheets-ui": "workspace:*",diff --git a/packages/sheets-sort-ui/package.json b/packages/sheets-sort-ui/package.jsonindex 822fccac6b..73e7440fe7 100644--- a/packages/sheets-sort-ui/package.json+++ b/packages/sheets-sort-ui/package.json@@ -77,7 +77,7 @@"@univerjs/core": "workspace:*","@univerjs/design": "workspace:*","@univerjs/engine-formula": "workspace:*",- "@univerjs/icons": "^1.1.1",+ "@univerjs/icons": "^1.2.0","@univerjs/sheets": "workspace:*","@univerjs/sheets-sort": "workspace:*","@univerjs/sheets-ui": "workspace:*",diff --git a/packages/sheets-table-ui/package.json b/packages/sheets-table-ui/package.jsonindex 902808e14a..439b56417d 100644--- a/packages/sheets-table-ui/package.json+++ b/packages/sheets-table-ui/package.json@@ -79,7 +79,7 @@"@univerjs/design": "workspace:*","@univerjs/engine-formula": "workspace:*","@univerjs/engine-render": "workspace:*",- "@univerjs/icons": "^1.1.1",+ "@univerjs/icons": "^1.2.0","@univerjs/sheets": "workspace:*","@univerjs/sheets-formula-ui": "workspace:*","@univerjs/sheets-sort": "workspace:*",diff --git a/packages/sheets-thread-comment-ui/package.json b/packages/sheets-thread-comment-ui/package.jsonindex d4786ab524..dec5ac5008 100644--- a/packages/sheets-thread-comment-ui/package.json+++ b/packages/sheets-thread-comment-ui/package.json@@ -77,7 +77,7 @@"@univerjs/core": "workspace:*","@univerjs/engine-formula": "workspace:*","@univerjs/engine-render": "workspace:*",- "@univerjs/icons": "^1.1.1",+ "@univerjs/icons": "^1.2.0","@univerjs/sheets": "workspace:*","@univerjs/sheets-thread-comment": "workspace:*","@univerjs/sheets-ui": "workspace:*",diff --git a/packages/sheets-ui/package.json b/packages/sheets-ui/package.jsonindex e2eb80f478..27f62765c4 100644--- a/packages/sheets-ui/package.json+++ b/packages/sheets-ui/package.json@@ -91,7 +91,7 @@"@univerjs/docs-ui": "workspace:*","@univerjs/engine-formula": "workspace:*","@univerjs/engine-render": "workspace:*",- "@univerjs/icons": "^1.1.1",+ "@univerjs/icons": "^1.2.0","@univerjs/protocol": "workspace:*","@univerjs/sheets": "workspace:*","@univerjs/telemetry": "workspace:*",diff --git a/packages/sheets-zen-editor/package.json b/packages/sheets-zen-editor/package.jsonindex 0e297e9500..0308c48697 100644--- a/packages/sheets-zen-editor/package.json+++ b/packages/sheets-zen-editor/package.json@@ -90,7 +90,7 @@"@univerjs/docs": "workspace:*","@univerjs/docs-ui": "workspace:*","@univerjs/engine-render": "workspace:*",- "@univerjs/icons": "^1.1.1",+ "@univerjs/icons": "^1.2.0","@univerjs/sheets": "workspace:*","@univerjs/sheets-ui": "workspace:*","@univerjs/ui": "workspace:*"diff --git a/packages/slides-ui/package.json b/packages/slides-ui/package.jsonindex b128425889..f549a5e102 100644--- a/packages/slides-ui/package.json+++ b/packages/slides-ui/package.json@@ -80,7 +80,7 @@"@univerjs/docs-ui": "workspace:*","@univerjs/drawing": "workspace:*","@univerjs/engine-render": "workspace:*",- "@univerjs/icons": "^1.1.1",+ "@univerjs/icons": "^1.2.0","@univerjs/slides": "workspace:*","@univerjs/ui": "workspace:*"},diff --git a/packages/thread-comment-ui/package.json b/packages/thread-comment-ui/package.jsonindex fd38570466..9f1713384b 100644--- a/packages/thread-comment-ui/package.json+++ b/packages/thread-comment-ui/package.json@@ -77,7 +77,7 @@"@univerjs/core": "workspace:*","@univerjs/design": "workspace:*","@univerjs/docs-ui": "workspace:*",- "@univerjs/icons": "^1.1.1",+ "@univerjs/icons": "^1.2.0","@univerjs/thread-comment": "workspace:*","@univerjs/ui": "workspace:*"},diff --git a/packages/ui/package.json b/packages/ui/package.jsonindex 8b46ea7bc7..3294f73a96 100644--- a/packages/ui/package.json+++ b/packages/ui/package.json@@ -89,7 +89,7 @@"@univerjs/core": "workspace:*","@univerjs/design": "workspace:*","@univerjs/engine-render": "workspace:*",- "@univerjs/icons": "^1.1.1",+ "@univerjs/icons": "^1.2.0","@wendellhu/redi": "1.1.1","localforage": "^1.10.0"},diff --git a/packages/ui/src/components/message/MessageContainer.tsx b/packages/ui/src/components/message/MessageContainer.tsxindex cac609befc..fad8fafff1 100644--- a/packages/ui/src/components/message/MessageContainer.tsx+++ b/packages/ui/src/components/message/MessageContainer.tsx@@ -15,12 +15,14 @@*/import { ThemeService } from '@univerjs/core';-import { Messager } from '@univerjs/design';+import { ConfigContext, Messager } from '@univerjs/design';+import { useContext } from 'react';import { useDependency, useObservable } from '../../utils/di';export function MessageContainer() {const themeService = useDependency(ThemeService);const darkMode = useObservable(themeService.darkMode$);+ const { direction } = useContext(ConfigContext);- return <Messager theme={darkMode ? 'dark' : 'light'} />;+ return <Messager theme={darkMode ? 'dark' : 'light'} dir={direction} />;}diff --git a/packages/ui/src/components/notification/Notification.tsx b/packages/ui/src/components/notification/Notification.tsxindex 4a03ea0ef7..adf7ab1922 100644--- a/packages/ui/src/components/notification/Notification.tsx+++ b/packages/ui/src/components/notification/Notification.tsx@@ -16,15 +16,17 @@import type { IToasterProps } from '@univerjs/design';import { ThemeService } from '@univerjs/core';-import { toast, Toaster } from '@univerjs/design';+import { ConfigContext, toast, Toaster } from '@univerjs/design';+import { useContext } from 'react';import { useDependency, useObservable } from '../../utils/di';export function Notification() {const themeService = useDependency(ThemeService);const darkMode = useObservable(themeService.darkMode$);+ const { direction } = useContext(ConfigContext);- return <Toaster theme={darkMode ? 'dark' : 'light'} />;+ return <Toaster theme={darkMode ? 'dark' : 'light'} dir={direction} />;}export interface INotificationOptions {diff --git a/packages/ui/src/views/components/context-menu/ContextMenuPanel.tsx b/packages/ui/src/views/components/context-menu/ContextMenuPanel.tsxindex 0453dd5985..ed2b24f200 100644--- a/packages/ui/src/views/components/context-menu/ContextMenuPanel.tsx+++ b/packages/ui/src/views/components/context-menu/ContextMenuPanel.tsx@@ -24,9 +24,9 @@ import type {} from '../../../services/menu/menu';import type { IMenuSchema } from '../../../services/menu/menu-manager.service';import { isRealNum, LocaleService } from '@univerjs/core';-import { borderBottomClassName, borderClassName, clsx, scrollbarClassName } from '@univerjs/design';+import { borderBottomClassName, borderClassName, clsx, ConfigContext, scrollbarClassName } from '@univerjs/design';import { CheckMarkIcon, MoreIcon } from '@univerjs/icons';-import { useEffect, useMemo, useRef, useState } from 'react';+import { useContext, useEffect, useMemo, useRef, useState } from 'react';import { createPortal } from 'react-dom';import { combineLatest, isObservable, of, scan, startWith } from 'rxjs';import { CustomLabel } from '../../../components/custom-label/CustomLabel';@@ -267,6 +267,7 @@ function ContextMenuMenu(props: IContextMenuMenuProps) {function ContextMenuMenuItem(props: IContextMenuMenuItemProps) {const { menuKey, menuItem, submenuPortalContainer, onOptionSelect, maxMenuHeight } = props;+ const { direction } = useContext(ConfigContext);const menuManagerService = useDependency(IMenuManagerService);const disabled = useObservable<boolean>(menuItem.disabled$, false);const activated = useObservable<boolean>(menuItem.activated$, false);@@ -495,6 +496,7 @@ function ContextMenuMenuItem(props: IContextMenuMenuItemProps) {? createPortal(<divref={submenuElementRef}+ dir={direction}{...{ [CONTEXT_MENU_SUBMENU_PORTAL_ATTR]: 'true' }}className="univer-z-[1080] univer-w-max univer-max-w-[calc(100vw-16px)]"style={{diff --git a/packages/ui/src/views/components/context-menu/MobileContextMenu.tsx b/packages/ui/src/views/components/context-menu/MobileContextMenu.tsxindex d1e7c77402..fcc0c24e28 100644--- a/packages/ui/src/views/components/context-menu/MobileContextMenu.tsx+++ b/packages/ui/src/views/components/context-menu/MobileContextMenu.tsx@@ -38,7 +38,8 @@ export function MobileContextMenu() {const commandService = useDependency(ICommandService);const layoutService = useDependency(ILayoutService);const localeService = useDependency(LocaleService);- const { mountContainer } = useContext(ConfigContext);+ const { mountContainer, direction } = useContext(ConfigContext);+visibleRef.current = visible;useEffect(() => {@@ -90,7 +91,7 @@ export function MobileContextMenu() {}return createPortal(- <div className="univer-fixed univer-inset-0 univer-z-[1080] univer-flex univer-items-end">+ <div dir={direction} className="univer-fixed univer-inset-0 univer-z-[1080] univer-flex univer-items-end"><buttontype="button"aria-label={localeService.t('rangeSelector.cancel')}diff --git a/packages/ui/src/views/components/global-zone/GlobalZone.tsx b/packages/ui/src/views/components/global-zone/GlobalZone.tsxindex b9f1cecd50..171997d222 100644--- a/packages/ui/src/views/components/global-zone/GlobalZone.tsx+++ b/packages/ui/src/views/components/global-zone/GlobalZone.tsx@@ -14,8 +14,8 @@* limitations under the License.*/-import { clsx } from '@univerjs/design';-import { useEffect, useMemo, useState } from 'react';+import { clsx, ConfigContext } from '@univerjs/design';+import { useContext, useEffect, useMemo, useState } from 'react';import { ComponentManager } from '../../../common/component-manager';import { IGlobalZoneService } from '../../../services/global-zone/global-zone.service';import { useDependency, useObservable } from '../../../utils/di';@@ -25,6 +25,7 @@ export function GlobalZone() {const [visible, setVisible] = useState(false);const componentKey = useObservable(globalZoneService.componentKey$, globalZoneService.componentKey);const componentManager = useDependency(ComponentManager);+ const { direction } = useContext(ConfigContext);const Component = useMemo(() => {const Component = componentManager.get(componentKey ?? '');@@ -49,6 +50,7 @@ export function GlobalZone() {return (<section+ dir={direction}className={clsx('univer-absolute univer-bg-gray-100',{diff --git a/packages/ui/src/views/components/popup/RectPopup.tsx b/packages/ui/src/views/components/popup/RectPopup.tsxindex dc2e9a6d67..4da280f7ee 100644--- a/packages/ui/src/views/components/popup/RectPopup.tsx+++ b/packages/ui/src/views/components/popup/RectPopup.tsx@@ -19,7 +19,7 @@ import type { ReactNode, RefObject } from 'react';import type { Observable } from 'rxjs';import type { IUniverUIConfig } from '../../../config/config';import { IConfigService } from '@univerjs/core';-import { clsx } from '@univerjs/design';+import { clsx, ConfigContext } from '@univerjs/design';import { createContext, useContext, useEffect, useRef } from 'react';import { createPortal } from 'react-dom';import { useEvent } from '../../../components/hooks/event';@@ -311,6 +311,8 @@ function RectPopup(props: IRectPopupProps) {};}, [contextMenuFn]);+ const { direction: dir } = useContext(ConfigContext);+const ele = (<>{mask && (@@ -324,6 +326,7 @@ function RectPopup(props: IRectPopupProps) {<sectiondata-u-comp="rect-popup"ref={nodeRef}+ dir={dir}className={clsx(`univer-pointer-events-auto univer-fixed univer-left-[-9999px] univer-top-[-9999px] univer-z-[1020]`, {diff --git a/packages/ui/src/views/mobile-workbench/MobileWorkbench.tsx b/packages/ui/src/views/mobile-workbench/MobileWorkbench.tsxindex a24c85af82..f827c0fead 100644--- a/packages/ui/src/views/mobile-workbench/MobileWorkbench.tsx+++ b/packages/ui/src/views/mobile-workbench/MobileWorkbench.tsx@@ -77,6 +77,7 @@ export function MobileWorkbench(props: IUniverAppProps) {}, [onRendered]);const [locale, setLocale] = useState(localeService.getLocales());+ const [direction, setDirection] = useState(localeService.getDirection());// Create a portal container for injecting global component themes.const portalContainer = useMemo<HTMLElement>(() => document.createElement('div'), []);@@ -98,6 +99,9 @@ export function MobileWorkbench(props: IUniverAppProps) {localeService.localeChanged$.subscribe(() => {setLocale(localeService.getLocales());}),+ localeService.direction$.subscribe(() => {+ setDirection(localeService.getDirection());+ }),];return () => {@@ -109,8 +113,12 @@ export function MobileWorkbench(props: IUniverAppProps) {};}, [localeService, mountContainer, portalContainer]);+ useEffect(() => {+ portalContainer.dir = direction;+ }, [direction, portalContainer]);+return (- <ConfigProvider locale={locale?.design} mountContainer={portalContainer}>+ <ConfigProvider locale={locale?.design} direction={direction} mountContainer={portalContainer}>{/*** IMPORTANT! This `tabIndex` should not be moved. This attribute allows the element to catch* all focusin event merged from its descendants. The DesktopLayoutService would listen to focusin events@@ -127,6 +135,7 @@ export function MobileWorkbench(props: IUniverAppProps) {tabIndex={-1}onBlur={(e) => e.stopPropagation()}onContextMenu={(e) => e.preventDefault()}+ dir={direction}>{/* header */}{header && toolbar && (@@ -194,8 +203,10 @@ export function MobileWorkbench(props: IUniverAppProps) {<ZenZone /></section></div>- <ComponentContainer key="global" components={globalComponents} />- {contextMenu && <MobileContextMenu />}+ <div dir={direction}>+ <ComponentContainer key="global" components={globalComponents} />+ {contextMenu && <MobileContextMenu />}+ </div></ConfigProvider>);}diff --git a/packages/ui/src/views/workbench/Workbench.tsx b/packages/ui/src/views/workbench/Workbench.tsxindex a1be4bb09b..95d2226655 100644--- a/packages/ui/src/views/workbench/Workbench.tsx+++ b/packages/ui/src/views/workbench/Workbench.tsx@@ -105,6 +105,7 @@ export function DesktopWorkbenchContent(props: IUniverWorkbenchProps) {}, [onRendered]);const [locale, setLocale] = useState(localeService.getLocales());+ const [direction, setDirection] = useState(localeService.getDirection());// Create a portal container for injecting global component themes.const portalContainer = useMemo<HTMLElement>(() => document.createElement('div'), []);@@ -116,6 +117,9 @@ export function DesktopWorkbenchContent(props: IUniverWorkbenchProps) {localeService.localeChanged$.subscribe(() => {setLocale(localeService.getLocales());}),+ localeService.direction$.subscribe(() => {+ setDirection(localeService.getDirection());+ }),];return () => {@@ -127,8 +131,12 @@ export function DesktopWorkbenchContent(props: IUniverWorkbenchProps) {};}, [localeService, mountContainer, portalContainer]);+ useEffect(() => {+ portalContainer.dir = direction;+ }, [direction, portalContainer]);+return (- <ConfigProvider locale={locale?.design} mountContainer={portalContainer}>+ <ConfigProvider locale={locale?.design} direction={direction} mountContainer={portalContainer}>{/*** IMPORTANT! This `tabIndex` should not be moved. This attribute allows the element to catch* all focusin event merged from its descendants. The DesktopLayoutService would listen to focusin events@@ -145,6 +153,7 @@ export function DesktopWorkbenchContent(props: IUniverWorkbenchProps) {tabIndex={-1}onBlur={(e) => e.stopPropagation()}onContextMenu={(e) => e.preventDefault()}+ dir={direction}>{/* user header */}<div@@ -226,11 +235,13 @@ export function DesktopWorkbenchContent(props: IUniverWorkbenchProps) {</section></div>- <ComponentContainer key="global" components={globalComponents} />- <GlobalZone />- {contextMenu && <DesktopContextMenu />}- <FloatingContainer />- <div id={popupRootId} />+ <div dir={direction}>+ <ComponentContainer key="global" components={globalComponents} />+ <GlobalZone />+ {contextMenu && <DesktopContextMenu />}+ <FloatingContainer />+ <div id={popupRootId} />+ </div></ConfigProvider>);}diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 1b88182855..af3161f069 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -127,8 +127,8 @@ importers:specifier: workspace:*version: link:../../packages/engine-render'@univerjs/icons':- specifier: ^1.1.1+ specifier: ^1.2.0'@univerjs/mockdata':specifier: workspace:*version: link:../mockdata@@ -379,8 +379,8 @@ importers:specifier: ^11.0.4version: 11.0.4'@univerjs/icons':- specifier: ^1.1.1+ specifier: ^1.2.0'@univerjs/icons-svg':specifier: ^1.1.1version: 1.1.1@@ -533,8 +533,8 @@ importers:specifier: workspace:*version: link:../packages/find-replace'@univerjs/icons':- specifier: 1.1.1+ specifier: 1.2.0'@univerjs/mockdata':specifier: workspace:*version: link:../common/mockdata@@ -735,8 +735,8 @@ importers:specifier: workspace:*version: link:../design'@univerjs/icons':- specifier: ^1.1.1+ specifier: ^1.2.0'@univerjs/sheets':specifier: workspace:*version: link:../sheets@@ -857,6 +857,9 @@ importers:'@radix-ui/react-dialog':specifier: ^1.1.15version: 1.1.15(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-direction':+ specifier: ^1.1.1+ version: 1.1.1(@types/[email protected])([email protected])'@radix-ui/react-dropdown-menu':specifier: ^2.1.16version: 2.1.16(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])@@ -873,8 +876,8 @@ importers:specifier: ^1.2.4version: 1.2.4(@types/[email protected])([email protected])'@univerjs/icons':- specifier: ^1.1.1+ specifier: ^1.2.0class-variance-authority:specifier: ^0.7.1version: 0.7.1@@ -1055,8 +1058,8 @@ importers:specifier: workspace:*version: link:../engine-render'@univerjs/icons':- specifier: ^1.1.1+ specifier: ^1.2.0'@univerjs/ui':specifier: workspace:*version: link:../ui@@ -1156,8 +1159,8 @@ importers:specifier: workspace:*version: link:../engine-render'@univerjs/icons':- specifier: ^1.1.1+ specifier: ^1.2.0'@univerjs/ui':specifier: workspace:*version: link:../ui@@ -1199,8 +1202,8 @@ importers:specifier: workspace:*version: link:../engine-render'@univerjs/icons':- specifier: ^1.1.1+ specifier: ^1.2.0'@univerjs/thread-comment':specifier: workspace:*version: link:../thread-comment@@ -1251,8 +1254,8 @@ importers:specifier: workspace:*version: link:../engine-render'@univerjs/icons':- specifier: ^1.1.1+ specifier: ^1.2.0'@univerjs/ui':specifier: workspace:*version: link:../ui@@ -1325,8 +1328,8 @@ importers:specifier: workspace:*version: link:../engine-render'@univerjs/icons':- specifier: ^1.1.1+ specifier: ^1.2.0'@univerjs/ui':specifier: workspace:*version: link:../ui@@ -1439,8 +1442,8 @@ importers:specifier: workspace:*version: link:../engine-render'@univerjs/icons':- specifier: ^1.1.1+ specifier: ^1.2.0'@univerjs/ui':specifier: workspace:*version: link:../ui@@ -1626,8 +1629,8 @@ importers:specifier: workspace:*version: link:../engine-render'@univerjs/icons':- specifier: ^1.1.1+ specifier: ^1.2.0'@univerjs/sheets':specifier: workspace:*version: link:../sheets@@ -1681,8 +1684,8 @@ importers:specifier: workspace:*version: link:../engine-render'@univerjs/icons':- specifier: ^1.1.1+ specifier: ^1.2.0'@univerjs/sheets':specifier: workspace:*version: link:../sheets@@ -1767,8 +1770,8 @@ importers:specifier: workspace:*version: link:../engine-render'@univerjs/icons':- specifier: ^1.1.1+ specifier: ^1.2.0'@univerjs/sheets':specifier: workspace:*version: link:../sheets@@ -1936,8 +1939,8 @@ importers:specifier: workspace:*version: link:../engine-render'@univerjs/icons':- specifier: ^1.1.1+ specifier: ^1.2.0'@univerjs/rpc':specifier: workspace:*version: link:../rpc@@ -2065,8 +2068,8 @@ importers:specifier: workspace:*version: link:../engine-render'@univerjs/icons':- specifier: ^1.1.1+ specifier: ^1.2.0'@univerjs/sheets':specifier: workspace:*version: link:../sheets@@ -2173,8 +2176,8 @@ importers:specifier: workspace:*version: link:../engine-render'@univerjs/icons':- specifier: ^1.1.1+ specifier: ^1.2.0'@univerjs/sheets':specifier: workspace:*version: link:../sheets@@ -2259,8 +2262,8 @@ importers:specifier: workspace:*version: link:../engine-render'@univerjs/icons':- specifier: ^1.1.1+ specifier: ^1.2.0'@univerjs/sheets':specifier: workspace:*version: link:../sheets@@ -2336,8 +2339,8 @@ importers:specifier: workspace:*version: link:../engine-render'@univerjs/icons':- specifier: ^1.1.1+ specifier: ^1.2.0'@univerjs/sheets':specifier: workspace:*version: link:../sheets@@ -2407,8 +2410,8 @@ importers:specifier: workspace:*version: link:../engine-formula'@univerjs/icons':- specifier: ^1.1.1+ specifier: ^1.2.0'@univerjs/sheets':specifier: workspace:*version: link:../sheets@@ -2487,8 +2490,8 @@ importers:specifier: workspace:*version: link:../engine-render'@univerjs/icons':- specifier: ^1.1.1+ specifier: ^1.2.0'@univerjs/sheets':specifier: workspace:*version: link:../sheets@@ -2570,8 +2573,8 @@ importers:specifier: workspace:*version: link:../engine-render'@univerjs/icons':- specifier: ^1.1.1+ specifier: ^1.2.0'@univerjs/sheets':specifier: workspace:*version: link:../sheets@@ -2634,8 +2637,8 @@ importers:specifier: workspace:*version: link:../engine-render'@univerjs/icons':- specifier: ^1.1.1+ specifier: ^1.2.0'@univerjs/protocol':specifier: workspace:*version: link:../protocol@@ -2692,8 +2695,8 @@ importers:specifier: workspace:*version: link:../engine-render'@univerjs/icons':- specifier: ^1.1.1+ specifier: ^1.2.0'@univerjs/sheets':specifier: workspace:*version: link:../sheets@@ -2769,8 +2772,8 @@ importers:specifier: workspace:*version: link:../engine-render'@univerjs/icons':- specifier: ^1.1.1+ specifier: ^1.2.0'@univerjs/slides':specifier: workspace:*version: link:../slides@@ -2853,8 +2856,8 @@ importers:specifier: workspace:*version: link:../docs-ui'@univerjs/icons':- specifier: ^1.1.1+ specifier: ^1.2.0'@univerjs/thread-comment':specifier: workspace:*version: link:../thread-comment@@ -2896,8 +2899,8 @@ importers:specifier: workspace:*version: link:../engine-render'@univerjs/icons':- specifier: ^1.1.1+ specifier: ^1.2.0'@wendellhu/redi':specifier: 1.1.1version: 1.1.1([email protected])@@ -6385,8 +6388,8 @@ packages:'@univerjs/[email protected]':resolution: {integrity: sha512-ur59SIR6JViQGFCwHfXIURmV5qBbSKcvE9OF9BRfDvxphmXYtWwfC0/ubrWF5Z4RGNKtP3VTPiVSJT27lkfE3A==}- '@univerjs/[email protected]':- resolution: {integrity: sha512-3agWxYwNEyfpiCerajLZvZWfa+Fsx2LhGY9EeacSiPk+32BX9NwmCa9uTpDVe0F94iEO+fGfkTB8pCeIFU4l8w==}+ '@univerjs/[email protected]':+ resolution: {integrity: sha512-+rw4sSNGjyn4FI6LWa2Z7cMtc5MzBMr7cAaAfeh66d/aqT60CCrBbuF3x+nuC/fvDMXQzEjOqywXUZ4HE+MwLw==}peerDependencies:react: 19.2.6react-dom: 19.2.6@@ -10462,6 +10465,11 @@ packages:engines: {node: '>=10'}hasBin: true+ resolution: {integrity: sha512-AcM7dV/5ul4EekoQ29Agm5vri8JNqRyj39o0qpX6vDF2GZrtutZl5RwgD1XnZjiTAfncsJhMI48QQH3sN87YNA==}+ engines: {node: '>=10'}+ hasBin: true+resolution: {integrity: sha512-CinAq1xWb0vR3twAv9evEU8cNWkXCb9kd5ePAHUKJBkOsUpR1wt/CvGdeca7vqumL1U5cSaeVQ6zZMxiJ3yWsg==}@@ -14323,7 +14331,7 @@ snapshots:eslint: 10.3.0([email protected])json-stable-stringify-without-jsonify: 1.0.1lodash.merge: 4.6.2- semver: 7.7.4+ semver: 7.8.0transitivePeerDependencies:- supports-color- typescript@@ -14481,7 +14489,7 @@ snapshots:'@univerjs/[email protected]': {}dependencies:react: 19.2.6react-dom: 19.2.6([email protected])@@ -19326,6 +19334,8 @@ snapshots:+ [email protected]: {}+dependencies:bytes: 3.0.0