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(docs-ui): polish paragraph editing UX, localization, and RTL support (#7228)
白熱41de8dd63ac1
diff --git a/common/debugger/package.json b/common/debugger/package.jsonindex 01775a4805..3e1be68dd1 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.19.0",+ "@univerjs/icons": "1.20.0","@univerjs/mockdata": "workspace:*","@univerjs/sheets": "workspace:*","@univerjs/sheets-drawing-ui": "workspace:*",diff --git a/common/shared/package.json b/common/shared/package.jsonindex 01cd61b8da..772ac91f50 100644--- a/common/shared/package.json+++ b/common/shared/package.json@@ -51,8 +51,8 @@"vitest": "^4.1.10"},"devDependencies": {- "@univerjs/icons": "1.19.0",- "@univerjs/icons-svg": "^1.19.0",+ "@univerjs/icons": "1.20.0",+ "@univerjs/icons-svg": "^1.20.0","typescript": "^6.0.3","vue-tsc": "^3.3.6"}diff --git a/examples/package.json b/examples/package.jsonindex 45628b80bc..aff5bca5d5 100644--- a/examples/package.json+++ b/examples/package.json@@ -36,7 +36,7 @@"@univerjs/engine-formula": "workspace:*","@univerjs/engine-render": "workspace:*","@univerjs/find-replace": "workspace:*",- "@univerjs/icons": "1.19.0",+ "@univerjs/icons": "1.20.0","@univerjs/mockdata": "workspace:*","@univerjs/network": "workspace:*","@univerjs/preset-docs-core": "workspace:*",diff --git a/packages/action-recorder/package.json b/packages/action-recorder/package.jsonindex ea047dc482..2c424739d8 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.19.0",+ "@univerjs/icons": "1.20.0","@univerjs/sheets": "workspace:*","@univerjs/sheets-filter": "workspace:*","@univerjs/sheets-ui": "workspace:*",diff --git a/packages/design/package.json b/packages/design/package.jsonindex 4460c589e5..0fef500b45 100644--- a/packages/design/package.json+++ b/packages/design/package.json@@ -81,7 +81,7 @@"@radix-ui/react-popover": "^1.1.18","@radix-ui/react-separator": "^1.1.11","@radix-ui/react-slot": "^1.3.0",- "@univerjs/icons": "1.19.0",+ "@univerjs/icons": "1.20.0","class-variance-authority": "^0.7.1","clsx": "^2.1.1","react-transition-group": "^4.4.5",diff --git a/packages/design/src/components/segmented/Segmented.tsx b/packages/design/src/components/segmented/Segmented.tsxindex f160a4ba88..63d2e2328a 100644--- a/packages/design/src/components/segmented/Segmented.tsx+++ b/packages/design/src/components/segmented/Segmented.tsx@@ -14,7 +14,7 @@* limitations under the License.*/-import type { CSSProperties } from 'react';+import type { CSSProperties, ReactNode } from 'react';import { useContext, useEffect, useRef, useState } from 'react';import { clsx } from '../../helper/clsx';import { ConfigContext } from '../config-provider/ConfigProvider';@@ -23,7 +23,7 @@ type ItemValue = string | number;const SEGMENTED_PADDING = 4;interface ISegmentedItem<T extends ItemValue = ItemValue> {- label: string;+ label: ReactNode;value: T;}diff --git a/packages/design/src/components/segmented/__tests__/index.spec.tsx b/packages/design/src/components/segmented/__tests__/index.spec.tsxindex d8be92563d..8563f50277 100644--- a/packages/design/src/components/segmented/__tests__/index.spec.tsx+++ b/packages/design/src/components/segmented/__tests__/index.spec.tsx@@ -47,6 +47,18 @@ describe('Segmented', () => {expect(handleChange).toHaveBeenCalledWith('b');});+ it('should render ReactNode labels', () => {+ const { getByText } = render(+ <Segmented+ items={[+ { label: <span>Icon label</span>, value: 'icon' },+ ]}+ />+ );++ expect(getByText('Icon label')).toBeInTheDocument();+ });+it('should support controlled value', () => {const { getByText, rerender } = render(<Segmented items={items} value="a" />);expect(getByText('A')).toHaveClass('univer-text-gray-900', { exact: false });diff --git a/packages/design/src/index.ts b/packages/design/src/index.tsindex 462b8ea3f9..dc191dedd4 100644--- a/packages/design/src/index.ts+++ b/packages/design/src/index.ts@@ -86,7 +86,7 @@ export { SelectList } from './components/select-list/SelectList';export type { ISelectListProps } from './components/select-list/SelectList';export { MultipleSelect } from './components/select/MultipleSelect';export type { IMultipleSelectProps } from './components/select/MultipleSelect';-export { Select } from './components/select/Select';+export { Select, selectClassName } from './components/select/Select';export type { ISelectProps } from './components/select/Select';export { Separator } from './components/separator/Separator';export { Switch } from './components/switch/Switch';diff --git a/packages/docs-hyper-link-ui/package.json b/packages/docs-hyper-link-ui/package.jsonindex a410e1283d..8144ada4b2 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.19.0",+ "@univerjs/icons": "1.20.0","@univerjs/ui": "workspace:*"},"devDependencies": {diff --git a/packages/docs-quick-insert-ui/package.json b/packages/docs-quick-insert-ui/package.jsonindex 93a55980a4..8b08950e0f 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.19.0",+ "@univerjs/icons": "1.20.0","@univerjs/ui": "workspace:*"},"devDependencies": {diff --git a/packages/docs-thread-comment-ui/package.json b/packages/docs-thread-comment-ui/package.jsonindex e6738f9073..b63177815e 100644--- a/packages/docs-thread-comment-ui/package.json+++ b/packages/docs-thread-comment-ui/package.json@@ -78,7 +78,7 @@"@univerjs/docs": "workspace:*","@univerjs/docs-ui": "workspace:*","@univerjs/engine-render": "workspace:*",- "@univerjs/icons": "1.19.0",+ "@univerjs/icons": "1.20.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 7877f02013..0efaee1cd5 100644--- a/packages/docs-ui/package.json+++ b/packages/docs-ui/package.json@@ -89,7 +89,7 @@"@univerjs/design": "workspace:*","@univerjs/docs": "workspace:*","@univerjs/engine-render": "workspace:*",- "@univerjs/icons": "1.19.0",+ "@univerjs/icons": "1.20.0","@univerjs/ui": "workspace:*"},"devDependencies": {diff --git a/packages/docs-ui/src/controllers/components.controller.ts b/packages/docs-ui/src/controllers/components.controller.tsindex 5f61d8d8ac..0121a229a6 100644--- a/packages/docs-ui/src/controllers/components.controller.ts+++ b/packages/docs-ui/src/controllers/components.controller.ts@@ -41,6 +41,8 @@ import {KeyboardIcon,LeftInsertColumnDoubleIcon,LeftJustifyingIcon,+ LineIndentDecreaseIcon,+ LineIndentIncreaseIcon,MenuIcon,MoreLeftIcon,MoreRightIcon,@@ -155,6 +157,8 @@ export class ComponentsController extends Disposable {KeyboardIcon,LeftInsertColumnDoubleIcon,LeftJustifyingIcon,+ LineIndentDecreaseIcon,+ LineIndentIncreaseIcon,MenuIcon,TextTypeIcon,NoColorDoubleIcon,diff --git a/packages/docs-ui/src/controllers/render-controllers/__tests__/doc-paragraph-placeholder.render-controller.spec.ts b/packages/docs-ui/src/controllers/render-controllers/__tests__/doc-paragraph-placeholder.render-controller.spec.tsindex e6e032a4e4..31484389c8 100644--- a/packages/docs-ui/src/controllers/render-controllers/__tests__/doc-paragraph-placeholder.render-controller.spec.ts+++ b/packages/docs-ui/src/controllers/render-controllers/__tests__/doc-paragraph-placeholder.render-controller.spec.ts@@ -206,7 +206,7 @@ describe('doc paragraph placeholder render controller', () => {expect(shouldRenderParagraphPlaceholder(createDocumentModel(DocumentFlavor.MODERN), DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY, { placeholder: true })).toBe(false);});- it('shows normal text placeholder for an empty normal paragraph', () => {+ it('uses a readable minimum font size for an empty normal paragraph', () => {const page = createPage([createLine(0, { fontSize: 13, fontFamily: 'Inter' })]);const body = createBody('\r\n', [{ startIndex: 0, paragraphId: 'para_placeholder_normal' }]);@@ -215,13 +215,24 @@ describe('doc paragraph placeholder render controller', () => {expect(placeholders).toMatchObject([{text: '请输入文字或按"/"启用命令',fontFamily: 'Inter',- fontSize: 13,+ fontSize: 16,fontWeight: 'normal',x: 61,y: 116,}]);});+ it('keeps a larger normal paragraph font size', () => {+ const page = createPage([createLine(0, { fontSize: 18 })]);+ const body = createBody('\r\n', [{ startIndex: 0, paragraphId: 'para_placeholder_large' }]);++ const placeholders = getParagraphPlaceholderLayouts(page, body, locale);++ expect(placeholders[0]).toMatchObject({+ fontSize: 18,+ });+ });+it('shows heading placeholder with the heading font size', () => {const page = createPage([createLine(0, { fontSize: 20 })]);const body = createBody('\r\n', [{@@ -241,7 +252,7 @@ describe('doc paragraph placeholder render controller', () => {});});- it('shows list item placeholder after the marker when a list item has no text', () => {+ it('shows a readable list item placeholder after the marker when a list item has no text', () => {const page = createPage([createLine(0, { bullet: true, fontSize: 14 })]);const body = createBody('\r\n', [{startIndex: 0,@@ -257,7 +268,7 @@ describe('doc paragraph placeholder render controller', () => {expect(placeholders[0]).toMatchObject({text: '项目',- fontSize: 14,+ fontSize: 16,x: 77,});});diff --git a/packages/docs-ui/src/controllers/render-controllers/doc-paragraph-placeholder.render-controller.ts b/packages/docs-ui/src/controllers/render-controllers/doc-paragraph-placeholder.render-controller.tsindex 3cfb9face2..6502f2bc87 100644--- a/packages/docs-ui/src/controllers/render-controllers/doc-paragraph-placeholder.render-controller.ts+++ b/packages/docs-ui/src/controllers/render-controllers/doc-paragraph-placeholder.render-controller.ts@@ -44,6 +44,7 @@ import { DOCS_UI_PLUGIN_CONFIG_KEY } from '../../config/config';const PLACEHOLDER_COLOR = 'rgba(0, 0, 0, 0.35)';const DEFAULT_PLACEHOLDER_FONT_SIZE = 12;+const MIN_BODY_TEXT_PLACEHOLDER_FONT_SIZE = 16;const DEFAULT_PLACEHOLDER_FONT_FAMILY = 'Arial';const LIST_PLACEHOLDER_GAP = 4;@@ -249,8 +250,9 @@ function getLinePlaceholderLayout(const divide = line.divides[0];const glyphs = divide?.glyphGroup ?? [];const firstGlyph = glyphs[0];- const textStyle = NAMED_STYLE_MAP[paragraph.paragraphStyle?.namedStyleType ?? NamedStyleType.NORMAL_TEXT];- const fontSize = getLineFontSize(line) ?? textStyle?.fs ?? DEFAULT_PLACEHOLDER_FONT_SIZE;+ const namedStyleType = paragraph.paragraphStyle?.namedStyleType ?? NamedStyleType.NORMAL_TEXT;+ const textStyle = NAMED_STYLE_MAP[namedStyleType];+ const fontSize = getPlaceholderFontSize(line, paragraph);const fontFamily = getLineFontFamily(line) ?? DEFAULT_PLACEHOLDER_FONT_FAMILY;const fontWeight = textStyle?.bl ? 'bold' : 'normal';const lineStartX = originLeft + (divide?.left ?? 0) + (divide?.paddingLeft ?? 0);@@ -292,6 +294,18 @@ function getLineFontSize(line: IDocumentSkeletonLine): Nullable<number> {return null;}+function getPlaceholderFontSize(line: IDocumentSkeletonLine, paragraph: IParagraph): number {+ const namedStyleType = paragraph.paragraphStyle?.namedStyleType ?? NamedStyleType.NORMAL_TEXT;+ const textStyle = NAMED_STYLE_MAP[namedStyleType];+ const fontSize = getLineFontSize(line) ?? textStyle?.fs ?? DEFAULT_PLACEHOLDER_FONT_SIZE;++ if (namedStyleType !== NamedStyleType.NORMAL_TEXT) {+ return fontSize;+ }++ return Math.max(fontSize, MIN_BODY_TEXT_PLACEHOLDER_FONT_SIZE);+}+function getLineFontFamily(line: IDocumentSkeletonLine): Nullable<string> {for (const divide of line.divides) {for (const glyph of divide.glyphGroup) {diff --git a/packages/docs-ui/src/locale/ar-SA.ts b/packages/docs-ui/src/locale/ar-SA.tsindex fe78c1d67b..4d87fdc51f 100644--- a/packages/docs-ui/src/locale/ar-SA.ts+++ b/packages/docs-ui/src/locale/ar-SA.ts@@ -88,13 +88,13 @@ const locale: typeof enUS = {disableText: 'إعدادات الرأس والتذييل معطلة',},placeholder: {- heading1: 'Heading 1',- heading2: 'Heading 2',- heading3: 'Heading 3',- heading4: 'Heading 4',- heading5: 'Heading 5',- normalText: 'Type text or press "/" for commands',- listItem: 'Item',+ heading1: 'العنوان 1',+ heading2: 'العنوان 2',+ heading3: 'العنوان 3',+ heading4: 'العنوان 4',+ heading5: 'العنوان 5',+ normalText: 'اكتب نصًا أو اضغط على "/" للأوامر',+ listItem: 'عنصر',},doc: {menu: {@@ -131,16 +131,16 @@ const locale: typeof enUS = {insertBellow: 'إدراج أدناه',},paragraphMenu: {- alignAndIndent: 'Align and indent',- align: 'Align',- indent: 'Indent',- color: 'Colors',- increase: 'Increase',- decrease: 'Decrease',- increaseIndent: 'Increase indent',- decreaseIndent: 'Decrease indent',- defaultTextColor: 'Default text color',- noBackground: 'No background',+ alignAndIndent: 'المحاذاة والمسافة البادئة',+ align: 'المحاذاة',+ indent: 'المسافة البادئة',+ color: 'الألوان',+ increase: 'زيادة',+ decrease: 'تقليل',+ increaseIndent: 'زيادة المسافة البادئة',+ decreaseIndent: 'تقليل المسافة البادئة',+ defaultTextColor: 'لون النص الافتراضي',+ noBackground: 'بدون خلفية',},'page-settings': {'document-setting': 'إعداد المستند',diff --git a/packages/docs-ui/src/locale/ca-ES.ts b/packages/docs-ui/src/locale/ca-ES.tsindex 8520eff5f1..254d4eb452 100644--- a/packages/docs-ui/src/locale/ca-ES.ts+++ b/packages/docs-ui/src/locale/ca-ES.ts@@ -88,13 +88,13 @@ const locale: typeof enUS = {disableText: 'La configuració de capçalera i peu de pàgina està desactivada',},placeholder: {- heading1: 'Heading 1',- heading2: 'Heading 2',- heading3: 'Heading 3',- heading4: 'Heading 4',- heading5: 'Heading 5',- normalText: 'Type text or press "/" for commands',- listItem: 'Item',+ heading1: 'Títol 1',+ heading2: 'Títol 2',+ heading3: 'Títol 3',+ heading4: 'Títol 4',+ heading5: 'Títol 5',+ normalText: 'Escriviu text o premeu "/" per a les ordres',+ listItem: 'Element',},doc: {menu: {@@ -131,16 +131,16 @@ const locale: typeof enUS = {insertBellow: 'Insereix a sota',},paragraphMenu: {- alignAndIndent: 'Align and indent',- align: 'Align',- indent: 'Indent',+ alignAndIndent: 'Alineació i sagnat',+ align: 'Alineació',+ indent: 'Sagnat',color: 'Colors',- increase: 'Increase',- decrease: 'Decrease',- increaseIndent: 'Increase indent',- decreaseIndent: 'Decrease indent',- defaultTextColor: 'Default text color',- noBackground: 'No background',+ increase: 'Augmenta',+ decrease: 'Redueix',+ increaseIndent: 'Augmenta el sagnat',+ decreaseIndent: 'Redueix el sagnat',+ defaultTextColor: 'Color de text predeterminat',+ noBackground: 'Sense fons',},'page-settings': {'document-setting': 'Configuració de document',diff --git a/packages/docs-ui/src/locale/de-DE.ts b/packages/docs-ui/src/locale/de-DE.tsindex d830816cb2..68597deae3 100644--- a/packages/docs-ui/src/locale/de-DE.ts+++ b/packages/docs-ui/src/locale/de-DE.ts@@ -88,13 +88,13 @@ const locale: typeof enUS = {disableText: 'Kopf- und Fußzeileneinstellungen sind deaktiviert',},placeholder: {- heading1: 'Heading 1',- heading2: 'Heading 2',- heading3: 'Heading 3',- heading4: 'Heading 4',- heading5: 'Heading 5',- normalText: 'Type text or press "/" for commands',- listItem: 'Item',+ heading1: 'Überschrift 1',+ heading2: 'Überschrift 2',+ heading3: 'Überschrift 3',+ heading4: 'Überschrift 4',+ heading5: 'Überschrift 5',+ normalText: 'Text eingeben oder "/" für Befehle drücken',+ listItem: 'Listenelement',},doc: {menu: {@@ -131,16 +131,16 @@ const locale: typeof enUS = {insertBellow: 'Unten einfügen',},paragraphMenu: {- alignAndIndent: 'Align and indent',- align: 'Align',- indent: 'Indent',- color: 'Colors',- increase: 'Increase',- decrease: 'Decrease',- increaseIndent: 'Increase indent',- decreaseIndent: 'Decrease indent',- defaultTextColor: 'Default text color',- noBackground: 'No background',+ alignAndIndent: 'Ausrichtung und Einzug',+ align: 'Ausrichtung',+ indent: 'Einzug',+ color: 'Farben',+ increase: 'Vergrößern',+ decrease: 'Verkleinern',+ increaseIndent: 'Einzug vergrößern',+ decreaseIndent: 'Einzug verkleinern',+ defaultTextColor: 'Standardtextfarbe',+ noBackground: 'Kein Hintergrund',},'page-settings': {'document-setting': 'Dokumenteneinstellung',diff --git a/packages/docs-ui/src/locale/es-ES.ts b/packages/docs-ui/src/locale/es-ES.tsindex 7b07d4c40d..3b1a031bd3 100644--- a/packages/docs-ui/src/locale/es-ES.ts+++ b/packages/docs-ui/src/locale/es-ES.ts@@ -88,13 +88,13 @@ const locale: typeof enUS = {disableText: 'La configuración de encabezado y pie de página está deshabilitada',},placeholder: {- heading1: 'Heading 1',- heading2: 'Heading 2',- heading3: 'Heading 3',- heading4: 'Heading 4',- heading5: 'Heading 5',- normalText: 'Type text or press "/" for commands',- listItem: 'Item',+ heading1: 'Título 1',+ heading2: 'Título 2',+ heading3: 'Título 3',+ heading4: 'Título 4',+ heading5: 'Título 5',+ normalText: 'Escribe texto o pulsa "/" para ver los comandos',+ listItem: 'Elemento',},doc: {menu: {@@ -131,16 +131,16 @@ const locale: typeof enUS = {insertBellow: 'Insertar debajo',},paragraphMenu: {- alignAndIndent: 'Align and indent',- align: 'Align',- indent: 'Indent',- color: 'Colors',- increase: 'Increase',- decrease: 'Decrease',- increaseIndent: 'Increase indent',- decreaseIndent: 'Decrease indent',- defaultTextColor: 'Default text color',- noBackground: 'No background',+ alignAndIndent: 'Alineación y sangría',+ align: 'Alineación',+ indent: 'Sangría',+ color: 'Colores',+ increase: 'Aumentar',+ decrease: 'Disminuir',+ increaseIndent: 'Aumentar sangría',+ decreaseIndent: 'Disminuir sangría',+ defaultTextColor: 'Color de texto predeterminado',+ noBackground: 'Sin fondo',},'page-settings': {'document-setting': 'Configuración de documento',diff --git a/packages/docs-ui/src/locale/fa-IR.ts b/packages/docs-ui/src/locale/fa-IR.tsindex 3d32adc5c9..136958250c 100644--- a/packages/docs-ui/src/locale/fa-IR.ts+++ b/packages/docs-ui/src/locale/fa-IR.ts@@ -88,13 +88,13 @@ const locale: typeof enUS = {disableText: 'تنظیمات هدر و فوتر غیرفعال است',},placeholder: {- heading1: 'Heading 1',- heading2: 'Heading 2',- heading3: 'Heading 3',- heading4: 'Heading 4',- heading5: 'Heading 5',- normalText: 'Type text or press "/" for commands',- listItem: 'Item',+ heading1: 'عنوان ۱',+ heading2: 'عنوان ۲',+ heading3: 'عنوان ۳',+ heading4: 'عنوان ۴',+ heading5: 'عنوان ۵',+ normalText: 'متن را تایپ کنید یا برای دستورات «/» را فشار دهید',+ listItem: 'مورد',},doc: {menu: {@@ -131,16 +131,16 @@ const locale: typeof enUS = {insertBellow: 'درج در پایین',},paragraphMenu: {- alignAndIndent: 'Align and indent',- align: 'Align',- indent: 'Indent',- color: 'Colors',- increase: 'Increase',- decrease: 'Decrease',- increaseIndent: 'Increase indent',- decreaseIndent: 'Decrease indent',- defaultTextColor: 'Default text color',- noBackground: 'No background',+ alignAndIndent: 'تراز و تورفتگی',+ align: 'تراز',+ indent: 'تورفتگی',+ color: 'رنگها',+ increase: 'افزایش',+ decrease: 'کاهش',+ increaseIndent: 'افزایش تورفتگی',+ decreaseIndent: 'کاهش تورفتگی',+ defaultTextColor: 'رنگ پیشفرض متن',+ noBackground: 'بدون پسزمینه',},'page-settings': {'document-setting': 'تنظیمات سند',diff --git a/packages/docs-ui/src/locale/fr-FR.ts b/packages/docs-ui/src/locale/fr-FR.tsindex 00e9e88692..9aefb92631 100644--- a/packages/docs-ui/src/locale/fr-FR.ts+++ b/packages/docs-ui/src/locale/fr-FR.ts@@ -88,13 +88,13 @@ const locale: typeof enUS = {disableText: 'Les paramètres de l\'en-tête et du pied de page sont désactivés',},placeholder: {- heading1: 'Heading 1',- heading2: 'Heading 2',- heading3: 'Heading 3',- heading4: 'Heading 4',- heading5: 'Heading 5',- normalText: 'Type text or press "/" for commands',- listItem: 'Item',+ heading1: 'Titre 1',+ heading2: 'Titre 2',+ heading3: 'Titre 3',+ heading4: 'Titre 4',+ heading5: 'Titre 5',+ normalText: 'Saisissez du texte ou appuyez sur « / » pour les commandes',+ listItem: 'Élément',},doc: {menu: {@@ -131,16 +131,16 @@ const locale: typeof enUS = {insertBellow: 'Insérer dans le bas',},paragraphMenu: {- alignAndIndent: 'Align and indent',- align: 'Align',- indent: 'Indent',- color: 'Colors',- increase: 'Increase',- decrease: 'Decrease',- increaseIndent: 'Increase indent',- decreaseIndent: 'Decrease indent',- defaultTextColor: 'Default text color',- noBackground: 'No background',+ alignAndIndent: 'Alignement et retrait',+ align: 'Alignement',+ indent: 'Retrait',+ color: 'Couleurs',+ increase: 'Augmenter',+ decrease: 'Diminuer',+ increaseIndent: 'Augmenter le retrait',+ decreaseIndent: 'Diminuer le retrait',+ defaultTextColor: 'Couleur de texte par défaut',+ noBackground: 'Aucun arrière-plan',},'page-settings': {'document-setting': 'Paramètres du document',diff --git a/packages/docs-ui/src/locale/id-ID.ts b/packages/docs-ui/src/locale/id-ID.tsindex ef273c24ff..a0553b9909 100644--- a/packages/docs-ui/src/locale/id-ID.ts+++ b/packages/docs-ui/src/locale/id-ID.ts@@ -88,12 +88,12 @@ const locale: typeof enUS = {disableText: 'Pengaturan header & footer dinonaktifkan',},placeholder: {- heading1: 'Heading 1',- heading2: 'Heading 2',- heading3: 'Heading 3',- heading4: 'Heading 4',- heading5: 'Heading 5',- normalText: 'Type text or press "/" for commands',+ heading1: 'Judul 1',+ heading2: 'Judul 2',+ heading3: 'Judul 3',+ heading4: 'Judul 4',+ heading5: 'Judul 5',+ normalText: 'Ketik teks atau tekan "/" untuk perintah',listItem: 'Item',},doc: {@@ -131,16 +131,16 @@ const locale: typeof enUS = {insertBellow: 'Sisipkan di bawah',},paragraphMenu: {- alignAndIndent: 'Align and indent',- align: 'Align',- indent: 'Indent',- color: 'Colors',- increase: 'Increase',- decrease: 'Decrease',- increaseIndent: 'Increase indent',- decreaseIndent: 'Decrease indent',- defaultTextColor: 'Default text color',- noBackground: 'No background',+ alignAndIndent: 'Perataan dan inden',+ align: 'Perataan',+ indent: 'Inden',+ color: 'Warna',+ increase: 'Tambah',+ decrease: 'Kurangi',+ increaseIndent: 'Tambah inden',+ decreaseIndent: 'Kurangi inden',+ defaultTextColor: 'Warna teks default',+ noBackground: 'Tanpa latar belakang',},'page-settings': {'document-setting': 'Pengaturan Dokumen',diff --git a/packages/docs-ui/src/locale/it-IT.ts b/packages/docs-ui/src/locale/it-IT.tsindex 93e1526078..a96dc9a77b 100644--- a/packages/docs-ui/src/locale/it-IT.ts+++ b/packages/docs-ui/src/locale/it-IT.ts@@ -88,13 +88,13 @@ const locale: typeof enUS = {disableText: 'Le impostazioni di intestazione e piè di pagina sono disabilitate',},placeholder: {- heading1: 'Heading 1',- heading2: 'Heading 2',- heading3: 'Heading 3',- heading4: 'Heading 4',- heading5: 'Heading 5',- normalText: 'Type text or press "/" for commands',- listItem: 'Item',+ heading1: 'Titolo 1',+ heading2: 'Titolo 2',+ heading3: 'Titolo 3',+ heading4: 'Titolo 4',+ heading5: 'Titolo 5',+ normalText: 'Digita del testo o premi "/" per i comandi',+ listItem: 'Elemento',},doc: {menu: {@@ -131,16 +131,16 @@ const locale: typeof enUS = {insertBellow: 'Inserisci sotto',},paragraphMenu: {- alignAndIndent: 'Align and indent',- align: 'Align',- indent: 'Indent',- color: 'Colors',- increase: 'Increase',- decrease: 'Decrease',- increaseIndent: 'Increase indent',- decreaseIndent: 'Decrease indent',- defaultTextColor: 'Default text color',- noBackground: 'No background',+ alignAndIndent: 'Allineamento e rientro',+ align: 'Allineamento',+ indent: 'Rientro',+ color: 'Colori',+ increase: 'Aumenta',+ decrease: 'Riduci',+ increaseIndent: 'Aumenta rientro',+ decreaseIndent: 'Riduci rientro',+ defaultTextColor: 'Colore testo predefinito',+ noBackground: 'Nessuno sfondo',},'page-settings': {'document-setting': 'Impostazione Documento',diff --git a/packages/docs-ui/src/locale/ja-JP.ts b/packages/docs-ui/src/locale/ja-JP.tsindex 601d68a564..787f041115 100644--- a/packages/docs-ui/src/locale/ja-JP.ts+++ b/packages/docs-ui/src/locale/ja-JP.ts@@ -88,13 +88,13 @@ const locale: typeof enUS = {disableText: 'ヘッダーとフッターの設定は無効です',},placeholder: {- heading1: 'Heading 1',- heading2: 'Heading 2',- heading3: 'Heading 3',- heading4: 'Heading 4',- heading5: 'Heading 5',- normalText: 'Type text or press "/" for commands',- listItem: 'Item',+ heading1: '見出し 1',+ heading2: '見出し 2',+ heading3: '見出し 3',+ heading4: '見出し 4',+ heading5: '見出し 5',+ normalText: 'テキストを入力するか「/」を押してコマンドを表示',+ listItem: '項目',},doc: {menu: {@@ -131,16 +131,16 @@ const locale: typeof enUS = {insertBellow: '下に挿入',},paragraphMenu: {- alignAndIndent: 'Align and indent',- align: 'Align',- indent: 'Indent',- color: 'Colors',- increase: 'Increase',- decrease: 'Decrease',- increaseIndent: 'Increase indent',- decreaseIndent: 'Decrease indent',- defaultTextColor: 'Default text color',- noBackground: 'No background',+ alignAndIndent: '配置とインデント',+ align: '配置',+ indent: 'インデント',+ color: '色',+ increase: '増やす',+ decrease: '減らす',+ increaseIndent: 'インデントを増やす',+ decreaseIndent: 'インデントを減らす',+ defaultTextColor: 'デフォルトの文字色',+ noBackground: '背景なし',},'page-settings': {'document-setting': '文書設定',diff --git a/packages/docs-ui/src/locale/ko-KR.ts b/packages/docs-ui/src/locale/ko-KR.tsindex 52040da111..26a48e5862 100644--- a/packages/docs-ui/src/locale/ko-KR.ts+++ b/packages/docs-ui/src/locale/ko-KR.ts@@ -88,13 +88,13 @@ const locale: typeof enUS = {disableText: '머리글 및 바닥글 설정이 비활성화되었습니다',},placeholder: {- heading1: 'Heading 1',- heading2: 'Heading 2',- heading3: 'Heading 3',- heading4: 'Heading 4',- heading5: 'Heading 5',- normalText: 'Type text or press "/" for commands',- listItem: 'Item',+ heading1: '제목 1',+ heading2: '제목 2',+ heading3: '제목 3',+ heading4: '제목 4',+ heading5: '제목 5',+ normalText: '텍스트를 입력하거나 "/"를 눌러 명령어를 사용하세요',+ listItem: '항목',},doc: {menu: {@@ -131,16 +131,16 @@ const locale: typeof enUS = {insertBellow: '아래에 삽입',},paragraphMenu: {- alignAndIndent: 'Align and indent',- align: 'Align',- indent: 'Indent',- color: 'Colors',- increase: 'Increase',- decrease: 'Decrease',- increaseIndent: 'Increase indent',- decreaseIndent: 'Decrease indent',- defaultTextColor: 'Default text color',- noBackground: 'No background',+ alignAndIndent: '정렬 및 들여쓰기',+ align: '정렬',+ indent: '들여쓰기',+ color: '색상',+ increase: '늘리기',+ decrease: '줄이기',+ increaseIndent: '들여쓰기 늘리기',+ decreaseIndent: '들여쓰기 줄이기',+ defaultTextColor: '기본 텍스트 색상',+ noBackground: '배경 없음',},'page-settings': {'document-setting': '문서 설정',diff --git a/packages/docs-ui/src/locale/pl-PL.ts b/packages/docs-ui/src/locale/pl-PL.tsindex 5ff9b44ddd..797599dcf0 100644--- a/packages/docs-ui/src/locale/pl-PL.ts+++ b/packages/docs-ui/src/locale/pl-PL.ts@@ -88,13 +88,13 @@ const locale: typeof enUS = {disableText: 'Ustawienia nagłówka i stopki są wyłączone',},placeholder: {- heading1: 'Heading 1',- heading2: 'Heading 2',- heading3: 'Heading 3',- heading4: 'Heading 4',- heading5: 'Heading 5',- normalText: 'Type text or press "/" for commands',- listItem: 'Item',+ heading1: 'Nagłówek 1',+ heading2: 'Nagłówek 2',+ heading3: 'Nagłówek 3',+ heading4: 'Nagłówek 4',+ heading5: 'Nagłówek 5',+ normalText: 'Wpisz tekst lub naciśnij „/”, aby wyświetlić polecenia',+ listItem: 'Element',},doc: {menu: {@@ -131,16 +131,16 @@ const locale: typeof enUS = {insertBellow: 'Wstaw poniżej',},paragraphMenu: {- alignAndIndent: 'Align and indent',- align: 'Align',- indent: 'Indent',- color: 'Colors',- increase: 'Increase',- decrease: 'Decrease',- increaseIndent: 'Increase indent',- decreaseIndent: 'Decrease indent',- defaultTextColor: 'Default text color',- noBackground: 'No background',+ alignAndIndent: 'Wyrównanie i wcięcie',+ align: 'Wyrównanie',+ indent: 'Wcięcie',+ color: 'Kolory',+ increase: 'Zwiększ',+ decrease: 'Zmniejsz',+ increaseIndent: 'Zwiększ wcięcie',+ decreaseIndent: 'Zmniejsz wcięcie',+ defaultTextColor: 'Domyślny kolor tekstu',+ noBackground: 'Brak tła',},'page-settings': {'document-setting': 'Ustawienia dokumentu',diff --git a/packages/docs-ui/src/locale/pt-BR.ts b/packages/docs-ui/src/locale/pt-BR.tsindex 5dfcc22870..4f80b62c46 100644--- a/packages/docs-ui/src/locale/pt-BR.ts+++ b/packages/docs-ui/src/locale/pt-BR.ts@@ -88,12 +88,12 @@ const locale: typeof enUS = {disableText: 'As configurações de cabeçalho e rodapé estão desativadas',},placeholder: {- heading1: 'Heading 1',- heading2: 'Heading 2',- heading3: 'Heading 3',- heading4: 'Heading 4',- heading5: 'Heading 5',- normalText: 'Type text or press "/" for commands',+ heading1: 'Título 1',+ heading2: 'Título 2',+ heading3: 'Título 3',+ heading4: 'Título 4',+ heading5: 'Título 5',+ normalText: 'Digite o texto ou pressione "/" para usar comandos',listItem: 'Item',},doc: {@@ -131,16 +131,16 @@ const locale: typeof enUS = {insertBellow: 'Inserir abaixo',},paragraphMenu: {- alignAndIndent: 'Align and indent',- align: 'Align',- indent: 'Indent',- color: 'Colors',- increase: 'Increase',- decrease: 'Decrease',- increaseIndent: 'Increase indent',- decreaseIndent: 'Decrease indent',- defaultTextColor: 'Default text color',- noBackground: 'No background',+ alignAndIndent: 'Alinhamento e recuo',+ align: 'Alinhamento',+ indent: 'Recuo',+ color: 'Cores',+ increase: 'Aumentar',+ decrease: 'Diminuir',+ increaseIndent: 'Aumentar recuo',+ decreaseIndent: 'Diminuir recuo',+ defaultTextColor: 'Cor de texto padrão',+ noBackground: 'Sem plano de fundo',},'page-settings': {'document-setting': 'Configuração do documento',diff --git a/packages/docs-ui/src/locale/ru-RU.ts b/packages/docs-ui/src/locale/ru-RU.tsindex 1d4506f5d2..0e67ab5cbd 100644--- a/packages/docs-ui/src/locale/ru-RU.ts+++ b/packages/docs-ui/src/locale/ru-RU.ts@@ -88,13 +88,13 @@ const locale: typeof enUS = {disableText: 'Настройки верхнего и нижнего колонтитулов отключены',},placeholder: {- heading1: 'Heading 1',- heading2: 'Heading 2',- heading3: 'Heading 3',- heading4: 'Heading 4',- heading5: 'Heading 5',- normalText: 'Type text or press "/" for commands',- listItem: 'Item',+ heading1: 'Заголовок 1',+ heading2: 'Заголовок 2',+ heading3: 'Заголовок 3',+ heading4: 'Заголовок 4',+ heading5: 'Заголовок 5',+ normalText: 'Введите текст или нажмите «/» для вызова команд',+ listItem: 'Элемент',},doc: {menu: {@@ -131,16 +131,16 @@ const locale: typeof enUS = {insertBellow: 'Вставить ниже',},paragraphMenu: {- alignAndIndent: 'Align and indent',- align: 'Align',- indent: 'Indent',- color: 'Colors',- increase: 'Increase',- decrease: 'Decrease',- increaseIndent: 'Increase indent',- decreaseIndent: 'Decrease indent',- defaultTextColor: 'Default text color',- noBackground: 'No background',+ alignAndIndent: 'Выравнивание и отступ',+ align: 'Выравнивание',+ indent: 'Отступ',+ color: 'Цвета',+ increase: 'Увеличить',+ decrease: 'Уменьшить',+ increaseIndent: 'Увеличить отступ',+ decreaseIndent: 'Уменьшить отступ',+ defaultTextColor: 'Цвет текста по умолчанию',+ noBackground: 'Без фона',},'page-settings': {'document-setting': 'Настройки документа',diff --git a/packages/docs-ui/src/locale/sk-SK.ts b/packages/docs-ui/src/locale/sk-SK.tsindex f0ba504e22..1f2804eaec 100644--- a/packages/docs-ui/src/locale/sk-SK.ts+++ b/packages/docs-ui/src/locale/sk-SK.ts@@ -88,13 +88,13 @@ const locale: typeof enUS = {disableText: 'Nastavenia hlavičky a päty sú vypnuté',},placeholder: {- heading1: 'Heading 1',- heading2: 'Heading 2',- heading3: 'Heading 3',- heading4: 'Heading 4',- heading5: 'Heading 5',- normalText: 'Type text or press "/" for commands',- listItem: 'Item',+ heading1: 'Nadpis 1',+ heading2: 'Nadpis 2',+ heading3: 'Nadpis 3',+ heading4: 'Nadpis 4',+ heading5: 'Nadpis 5',+ normalText: 'Zadajte text alebo stlačte „/“ pre príkazy',+ listItem: 'Položka',},doc: {menu: {@@ -131,16 +131,16 @@ const locale: typeof enUS = {insertBellow: 'Vložiť pod',},paragraphMenu: {- alignAndIndent: 'Align and indent',- align: 'Align',- indent: 'Indent',- color: 'Colors',- increase: 'Increase',- decrease: 'Decrease',- increaseIndent: 'Increase indent',- decreaseIndent: 'Decrease indent',- defaultTextColor: 'Default text color',- noBackground: 'No background',+ alignAndIndent: 'Zarovnanie a odsadenie',+ align: 'Zarovnanie',+ indent: 'Odsadenie',+ color: 'Farby',+ increase: 'Zväčšiť',+ decrease: 'Zmenšiť',+ increaseIndent: 'Zväčšiť odsadenie',+ decreaseIndent: 'Zmenšiť odsadenie',+ defaultTextColor: 'Predvolená farba textu',+ noBackground: 'Bez pozadia',},'page-settings': {'document-setting': 'Nastavenia dokumentu',diff --git a/packages/docs-ui/src/locale/vi-VN.ts b/packages/docs-ui/src/locale/vi-VN.tsindex cf0dbd0fd9..084fd4a542 100644--- a/packages/docs-ui/src/locale/vi-VN.ts+++ b/packages/docs-ui/src/locale/vi-VN.ts@@ -88,13 +88,13 @@ const locale: typeof enUS = {disableText: 'Cài đặt đầu trang và chân trang không khả dụng',},placeholder: {- heading1: 'Heading 1',- heading2: 'Heading 2',- heading3: 'Heading 3',- heading4: 'Heading 4',- heading5: 'Heading 5',- normalText: 'Type text or press "/" for commands',- listItem: 'Item',+ heading1: 'Tiêu đề 1',+ heading2: 'Tiêu đề 2',+ heading3: 'Tiêu đề 3',+ heading4: 'Tiêu đề 4',+ heading5: 'Tiêu đề 5',+ normalText: 'Nhập văn bản hoặc nhấn "/" để dùng lệnh',+ listItem: 'Mục',},doc: {menu: {@@ -131,16 +131,16 @@ const locale: typeof enUS = {insertBellow: 'Chèn dưới',},paragraphMenu: {- alignAndIndent: 'Align and indent',- align: 'Align',- indent: 'Indent',- color: 'Colors',- increase: 'Increase',- decrease: 'Decrease',- increaseIndent: 'Increase indent',- decreaseIndent: 'Decrease indent',- defaultTextColor: 'Default text color',- noBackground: 'No background',+ alignAndIndent: 'Căn chỉnh và thụt lề',+ align: 'Căn chỉnh',+ indent: 'Thụt lề',+ color: 'Màu sắc',+ increase: 'Tăng',+ decrease: 'Giảm',+ increaseIndent: 'Tăng thụt lề',+ decreaseIndent: 'Giảm thụt lề',+ defaultTextColor: 'Màu văn bản mặc định',+ noBackground: 'Không có nền',},'page-settings': {'document-setting': 'Cài đặt tài liệu',diff --git a/packages/docs-ui/src/menu/__tests__/paragraph-menu.spec.ts b/packages/docs-ui/src/menu/__tests__/paragraph-menu.spec.tsindex 75e3923494..f6d7885c84 100644--- a/packages/docs-ui/src/menu/__tests__/paragraph-menu.spec.ts+++ b/packages/docs-ui/src/menu/__tests__/paragraph-menu.spec.ts@@ -20,6 +20,8 @@ import { describe, expect, it, vi } from 'vitest';import {BACKGROUND_COLOR_SWATCH_ICONS,ParagraphMenuBackgroundColorSwatchMenuItemFactories,+ ParagraphMenuIndentDecreaseMenuItemFactory,+ ParagraphMenuIndentIncreaseMenuItemFactory,} from '../paragraph-menu';vi.mock('@univerjs/ui', async () => {@@ -31,6 +33,17 @@ vi.mock('@univerjs/ui', async () => {});describe('paragraph menu theme colors', () => {+ it('uses semantic line-indent icons for indent actions', () => {+ const accessor = {+ get: vi.fn(),+ };+ const increase = ParagraphMenuIndentIncreaseMenuItemFactory(accessor as never);+ const decrease = ParagraphMenuIndentDecreaseMenuItemFactory(accessor as never);++ expect(increase.icon).toBe('LineIndentIncreaseIcon');+ expect(decrease.icon).toBe('LineIndentDecreaseIcon');+ });+it('uses direct theme highlight background tokens for background swatches', () => {const themeService = {getColorFromTheme: vi.fn((path: string) => ({diff --git a/packages/docs-ui/src/menu/paragraph-menu.ts b/packages/docs-ui/src/menu/paragraph-menu.tsindex d4de3124ca..efb5622494 100644--- a/packages/docs-ui/src/menu/paragraph-menu.ts+++ b/packages/docs-ui/src/menu/paragraph-menu.ts@@ -594,7 +594,7 @@ export function ParagraphMenuIndentIncreaseMenuItemFactory(accessor: IAccessor):return {id: DOC_PARAGRAPH_T_INDENT_INCREASE_ID,type: MenuItemType.BUTTON,- icon: 'MoreRightIcon',+ icon: 'LineIndentIncreaseIcon',title: 'docs-ui.paragraphMenu.increase',tooltip: 'docs-ui.paragraphMenu.increaseIndent',hidden$: getMenuHiddenObservable(accessor, UniverInstanceType.UNIVER_DOC),@@ -605,7 +605,7 @@ export function ParagraphMenuIndentDecreaseMenuItemFactory(accessor: IAccessor):return {id: DOC_PARAGRAPH_T_INDENT_DECREASE_ID,type: MenuItemType.BUTTON,- icon: 'MoreLeftIcon',+ icon: 'LineIndentDecreaseIcon',title: 'docs-ui.paragraphMenu.decrease',tooltip: 'docs-ui.paragraphMenu.decreaseIndent',hidden$: getMenuHiddenObservable(accessor, UniverInstanceType.UNIVER_DOC),diff --git a/packages/docs-ui/src/views/Icon.tsx b/packages/docs-ui/src/views/Icon.tsxindex 0b5d84131b..08e92337e8 100644--- a/packages/docs-ui/src/views/Icon.tsx+++ b/packages/docs-ui/src/views/Icon.tsx@@ -101,12 +101,14 @@ export function TextColorSwatchIcon({ className, style, onClick, color }: ColorSstrokeOpacity={0.16}/><text- x={7.5}+ x={12}y={16.5}+ direction="ltr"fontFamily="Arial, sans-serif"fontSize={12}fontWeight={700}fill={color}+ textAnchor="middle">A</text>diff --git a/packages/docs-ui/src/views/ParagraphMenu.tsx b/packages/docs-ui/src/views/ParagraphMenu.tsxindex 3f0a3afaee..fd0d655c64 100644--- a/packages/docs-ui/src/views/ParagraphMenu.tsx+++ b/packages/docs-ui/src/views/ParagraphMenu.tsx@@ -27,6 +27,7 @@ import {ICommandService,IUniverInstanceService,JSONX,+ LocaleService,NamedStyleType,SliceBodyType,TextX,@@ -98,8 +99,29 @@ import { IDocClipboardService } from '../services/clipboard/clipboard.service';import { DocEventManagerService } from '../services/doc-event-manager.service';import { DocParagraphMenuService } from '../services/doc-paragraph-menu.service';-export function getParagraphMenuPopupDirection(anchorLeft: number, menuWidth = 212, viewportPadding = 8): 'left' | 'right' {- return anchorLeft - menuWidth < viewportPadding ? 'right' : 'left';+export function getParagraphMenuPopupDirection(+ anchorLeft: number,+ menuWidth = 212,+ viewportPadding = 8,+ options: {+ anchorRight?: number;+ direction?: 'ltr' | 'rtl';+ viewportWidth?: number;+ } = {}+): 'left' | 'right' {+ const {+ anchorRight = anchorLeft,+ direction = 'ltr',+ viewportWidth = Number.POSITIVE_INFINITY,+ } = options;+ const hasLeftSpace = anchorLeft - menuWidth >= viewportPadding;+ const hasRightSpace = anchorRight + menuWidth + viewportPadding <= viewportWidth;++ if (direction === 'rtl') {+ return hasRightSpace || !hasLeftSpace ? 'right' : 'left';+ }++ return hasLeftSpace || !hasRightSpace ? 'left' : 'right';}export const PARAGRAPH_MENU_HOVER_OPEN_DELAY = 800;@@ -823,7 +845,9 @@ function ParagraphMenuBase({ popup, tableBlockOnly = false }: { popup: IPopup; tconst openMenuRef = useRef<() => void>(() => undefined);const hoverOpenSchedulerRef = useRef(createParagraphMenuHoverOpenScheduler(() => openMenuRef.current()));const commandService = useDependency(ICommandService);+ const localeService = useDependency(LocaleService);const docSelectionManagerService = useDependency(DocSelectionManagerService);+ const direction = useObservable(localeService.direction$, 'ltr');const docClipboardService = useDependency(IDocClipboardService);const docContentInsertService = useDependency(DocContentInsertService);const docBlockMoveValidatorService = useDependency(DocBlockMoveValidatorService);@@ -880,10 +904,16 @@ function ParagraphMenuBase({ popup, tableBlockOnly = false }: { popup: IPopup; tconst updateAnchorRect = () => {const boundingRect = anchorRef.current?.getBoundingClientRect();const left = (boundingRect?.left ?? 0) - 4;- setMenuDirection(getParagraphMenuPopupDirection(left));+ const right = boundingRect?.right ?? 0;+ const viewportWidth = anchorRef.current?.ownerDocument.defaultView?.innerWidth ?? window.innerWidth;+ setMenuDirection(getParagraphMenuPopupDirection(left, 212, 8, {+ anchorRight: right,+ direction,+ viewportWidth,+ }));const nextAnchorRect = {left,- right: boundingRect?.right ?? 0,+ right,top: boundingRect?.top ?? 0,bottom: boundingRect?.bottom ?? 0,};diff --git a/packages/docs-ui/src/views/__tests__/ParagraphMenu.spec.ts b/packages/docs-ui/src/views/__tests__/ParagraphMenu.spec.tsindex ddf0f96fb7..c24b94a7a9 100644--- a/packages/docs-ui/src/views/__tests__/ParagraphMenu.spec.ts+++ b/packages/docs-ui/src/views/__tests__/ParagraphMenu.spec.ts@@ -34,6 +34,7 @@ import {getParagraphMenuCommandParams,getParagraphMenuCommandTargetRange,getParagraphMenuHiddenItemIds,+ getParagraphMenuPopupDirection,getParagraphMenuResolvedCommand,isEmptyParagraphMenuTarget,shouldExecuteParagraphMenuMove,@@ -89,6 +90,20 @@ function blockRangeBody(blockType: DocumentBlockRangeType, paragraphStyle: IPara}describe('ParagraphMenu command behavior', () => {+ it('places the root menu on the right in rtl so submenus can open to the left', () => {+ expect(getParagraphMenuPopupDirection(300, 212, 8, {+ anchorRight: 340,+ direction: 'rtl',+ viewportWidth: 800,+ })).toBe('right');++ expect(getParagraphMenuPopupDirection(700, 212, 8, {+ anchorRight: 740,+ direction: 'rtl',+ viewportWidth: 800,+ })).toBe('left');+ });+it('applies a heading choice to the paragraph target as a named style change', () => {const targetRange: ITextRangeWithStyle = {startOffset: 10,diff --git a/packages/drawing-ui/package.json b/packages/drawing-ui/package.jsonindex 24dc2e0d86..335bcac76a 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.19.0",+ "@univerjs/icons": "1.20.0","@univerjs/ui": "workspace:*"},"devDependencies": {diff --git a/packages/find-replace/package.json b/packages/find-replace/package.jsonindex 5db6e62191..2b371d948a 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.19.0",+ "@univerjs/icons": "1.20.0","@univerjs/ui": "workspace:*"},"devDependencies": {diff --git a/packages/sheets-conditional-formatting-ui/package.json b/packages/sheets-conditional-formatting-ui/package.jsonindex b194105241..e40eecbbd4 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.19.0",+ "@univerjs/icons": "1.20.0","@univerjs/sheets": "workspace:*","@univerjs/sheets-conditional-formatting": "workspace:*","@univerjs/sheets-formula": "workspace:*",diff --git a/packages/sheets-conditional-formatting/package.json b/packages/sheets-conditional-formatting/package.jsonindex 0ff97f6172..c432aa35e8 100644--- a/packages/sheets-conditional-formatting/package.json+++ b/packages/sheets-conditional-formatting/package.json@@ -92,7 +92,7 @@},"devDependencies": {"@univerjs-infra/shared": "workspace:*",- "@univerjs/icons-svg": "^1.19.0",+ "@univerjs/icons-svg": "^1.20.0","@univerjs/sheets-formula": "workspace:*","rxjs": "^7.8.2","typescript": "^6.0.3",diff --git a/packages/sheets-crosshair-highlight/package.json b/packages/sheets-crosshair-highlight/package.jsonindex d5522fb33b..740729853b 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.19.0",+ "@univerjs/icons": "1.20.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 2348c97788..cab550949d 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.19.0",+ "@univerjs/icons": "1.20.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 5bb1b1016e..17e9e20ec5 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.19.0",+ "@univerjs/icons": "1.20.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 1c181f2e2b..e35685ec2a 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.19.0",+ "@univerjs/icons": "1.20.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 956d2f3b58..18dd9af61c 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.19.0",+ "@univerjs/icons": "1.20.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 c27bd7a597..46024d9298 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.19.0",+ "@univerjs/icons": "1.20.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 f371e9c8fe..1e0e6e9901 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.19.0",+ "@univerjs/icons": "1.20.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 d5a5773aa1..734ad6c3cc 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.19.0",+ "@univerjs/icons": "1.20.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 65e5f8892b..9e2674308e 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.19.0",+ "@univerjs/icons": "1.20.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 bc0d72f367..a78eea97b1 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.19.0",+ "@univerjs/icons": "1.20.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 77f4a96c35..70fd375008 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.19.0",+ "@univerjs/icons": "1.20.0","@univerjs/protocol": "workspace:*","@univerjs/sheets": "workspace:*","@univerjs/telemetry": "workspace:*",diff --git a/packages/slides-ui/package.json b/packages/slides-ui/package.jsonindex 41361786fe..23ba52167b 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.19.0",+ "@univerjs/icons": "1.20.0","@univerjs/slides": "workspace:*","@univerjs/ui": "workspace:*"},diff --git a/packages/thread-comment-ui/package.json b/packages/thread-comment-ui/package.jsonindex 5befdcfa6d..43d940cf8f 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.19.0",+ "@univerjs/icons": "1.20.0","@univerjs/thread-comment": "workspace:*","@univerjs/ui": "workspace:*"},diff --git a/packages/ui/package.json b/packages/ui/package.jsonindex a6f9d459e4..947b760bbc 100644--- a/packages/ui/package.json+++ b/packages/ui/package.json@@ -90,7 +90,7 @@"@univerjs/core": "workspace:*","@univerjs/design": "workspace:*","@univerjs/engine-render": "workspace:*",- "@univerjs/icons": "1.19.0",+ "@univerjs/icons": "1.20.0","@wendellhu/redi": "1.1.2"},"devDependencies": {diff --git a/packages/ui/src/views/components/context-menu/ContextMenuPanel.tsx b/packages/ui/src/views/components/context-menu/ContextMenuPanel.tsxindex fc5d15fe0f..2e1493a7d8 100644--- a/packages/ui/src/views/components/context-menu/ContextMenuPanel.tsx+++ b/packages/ui/src/views/components/context-menu/ContextMenuPanel.tsx@@ -1440,20 +1440,25 @@ function ContextMenuMenuItem(props: IContextMenuMenuItemProps) {const optionSelectable = !isNonSelectableLabel(option.label);const optionHoverable = !isNonHoverableLabel(option.label);const optionClassName = clsx(- sizeVariant === 'paragraph-t'- ? `- univer-relative univer-box-border univer-flex univer-min-h-10- univer-w-full univer-items-center univer-rounded-lg- univer-border-none univer-bg-transparent univer-px-3- univer-text-left univer-text-base- dark:!univer-text-white- `+ optionSelectable+ ? sizeVariant === 'paragraph-t'+ ? `+ univer-relative univer-box-border univer-flex univer-min-h-10+ univer-w-full univer-items-center univer-rounded-lg+ univer-border-none univer-bg-transparent univer-px-3+ univer-text-left univer-text-base+ dark:!univer-text-white+ `+ : `+ univer-relative univer-box-border univer-flex univer-min-h-8+ univer-w-full univer-items-center univer-rounded-md+ univer-border-none univer-bg-transparent univer-px-2+ univer-text-left univer-text-sm+ dark:!univer-text-white+ `: `- univer-relative univer-box-border univer-flex univer-min-h-8- univer-w-full univer-items-center univer-rounded-md- univer-border-none univer-bg-transparent univer-px-2- univer-text-left univer-text-sm- dark:!univer-text-white+ univer-relative univer-box-border univer-block univer-w-full+ univer-border-none univer-bg-transparent univer-p-0`,option.disabled? 'univer-cursor-not-allowed univer-opacity-60'diff --git a/packages/ui/src/views/components/context-menu/__tests__/ContextMenuPanel.spec.tsx b/packages/ui/src/views/components/context-menu/__tests__/ContextMenuPanel.spec.tsxindex 537b162457..6dd6703822 100644--- a/packages/ui/src/views/components/context-menu/__tests__/ContextMenuPanel.spec.tsx+++ b/packages/ui/src/views/components/context-menu/__tests__/ContextMenuPanel.spec.tsx@@ -414,6 +414,44 @@ describe('ContextMenuPanel', () => {expect(document.querySelectorAll(`[${CONTEXT_MENU_SUBMENU_PORTAL_ATTR}="true"]`)).toHaveLength(0);});+ it('does not add option padding around a non-selectable custom submenu component', () => {+ renderWithDependencies(+ <ContextMenuPanel menuType="insert-menu" sizeVariant="paragraph-t" />,+ {+ 'insert-menu': [+ {+ key: 'insert-table',+ order: 0,+ item: {+ id: 'insert-table',+ type: MenuItemType.BUTTON_SELECTOR,+ title: 'docs-ui.insertTable',+ selections: [{+ label: {+ name: 'test-picker',+ hoverable: false,+ selectable: false,+ },+ }],+ },+ },+ ],+ },+ (injector) => {+ injector.get(ComponentManager).register('test-picker', () => <div data-testid="test-picker" />);+ }+ );++ const insertButton = screen.getByRole('button', { name: 'translated:docs-ui.insertTable' });+ fireEvent.mouseEnter(insertButton.parentElement as HTMLElement);++ const picker = screen.getByTestId('test-picker');+ const optionWrapper = picker.parentElement?.parentElement as HTMLElement;++ expect(hasClassToken(optionWrapper, 'univer-p-0')).toBe(true);+ expect(hasClassToken(optionWrapper, 'univer-px-3')).toBe(false);+ });+it('keeps the newly hovered submenu open when moving across sibling submenu items', () => {vi.useFakeTimers();diff --git a/packages/ui/src/views/emoji-picker/EmojiPicker.tsx b/packages/ui/src/views/emoji-picker/EmojiPicker.tsxindex b986b9a02b..24ed315e89 100644--- a/packages/ui/src/views/emoji-picker/EmojiPicker.tsx+++ b/packages/ui/src/views/emoji-picker/EmojiPicker.tsx@@ -150,22 +150,21 @@ export function EmojiPicker(props: { popup?: IPopup<IEmojiPickerPopupProps> }) {"><div className="univer-flex univer-items-center univer-gap-1 univer-px-3 univer-pb-2 univer-pt-3">- <label- className="- univer-flex univer-h-8 univer-flex-1 univer-items-center univer-gap-1 univer-rounded-lg- univer-border univer-border-solid univer-border-primary-500 univer-px-2 univer-text-gray-500- dark:!univer-border-primary-600 dark:!univer-text-gray-400- "- >- <SearchIcon />- <Input- aria-label={localeService.t<LocaleKey>('ui.emojiPicker.search')}- placeholder={localeService.t<LocaleKey>('ui.emojiPicker.search')}- className="univer-min-w-0 univer-flex-1"- value={query}- onChange={setQuery}- />- </label>+ <Input+ aria-label={localeService.t<LocaleKey>('ui.emojiPicker.search')}+ placeholder={localeService.t<LocaleKey>('ui.emojiPicker.search')}+ className="univer-min-w-0 univer-flex-1"+ value={query}+ onChange={setQuery}+ slot={(+ <SearchIcon+ className="+ univer-size-4 univer-text-gray-500+ dark:!univer-text-gray-400+ "+ />+ )}+ /><buttontype="button"aria-label={localeService.t<LocaleKey>('ui.emojiPicker.random')}diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex e147327395..32c4d2838e 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -112,8 +112,8 @@ importers:specifier: workspace:*version: link:../../packages/engine-render'@univerjs/icons':- specifier: 1.19.0+ specifier: 1.20.0'@univerjs/mockdata':specifier: workspace:*version: link:../mockdata@@ -355,11 +355,11 @@ importers:version: 4.1.10(@types/[email protected])(@vitest/[email protected])([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))devDependencies:'@univerjs/icons':- specifier: 1.19.0+ specifier: 1.20.0'@univerjs/icons-svg':- specifier: ^1.19.0- version: 1.19.0+ specifier: ^1.20.0+ version: 1.20.0typescript:specifier: ^6.0.3version: 6.0.3@@ -500,8 +500,8 @@ importers:specifier: workspace:*version: link:../packages/find-replace'@univerjs/icons':- specifier: 1.19.0+ specifier: 1.20.0'@univerjs/mockdata':specifier: workspace:*version: link:../common/mockdata@@ -738,8 +738,8 @@ importers:specifier: workspace:*version: link:../design'@univerjs/icons':- specifier: 1.19.0+ specifier: 1.20.0'@univerjs/sheets':specifier: workspace:*version: link:../sheets@@ -876,8 +876,8 @@ importers:specifier: ^1.3.0version: 1.3.0(@types/[email protected])([email protected])'@univerjs/icons':- specifier: 1.19.0+ specifier: 1.20.0class-variance-authority:specifier: ^0.7.1version: 0.7.1@@ -1061,8 +1061,8 @@ importers:specifier: workspace:*version: link:../engine-render'@univerjs/icons':- specifier: 1.19.0+ specifier: 1.20.0'@univerjs/ui':specifier: workspace:*version: link:../ui@@ -1162,8 +1162,8 @@ importers:specifier: workspace:*version: link:../engine-render'@univerjs/icons':- specifier: 1.19.0+ specifier: 1.20.0'@univerjs/ui':specifier: workspace:*version: link:../ui@@ -1205,8 +1205,8 @@ importers:specifier: workspace:*version: link:../engine-render'@univerjs/icons':- specifier: 1.19.0+ specifier: 1.20.0'@univerjs/thread-comment':specifier: workspace:*version: link:../thread-comment@@ -1254,8 +1254,8 @@ importers:specifier: workspace:*version: link:../engine-render'@univerjs/icons':- specifier: 1.19.0+ specifier: 1.20.0'@univerjs/ui':specifier: workspace:*version: link:../ui@@ -1328,8 +1328,8 @@ importers:specifier: workspace:*version: link:../engine-render'@univerjs/icons':- specifier: 1.19.0+ specifier: 1.20.0'@univerjs/ui':specifier: workspace:*version: link:../ui@@ -1439,8 +1439,8 @@ importers:specifier: workspace:*version: link:../engine-render'@univerjs/icons':- specifier: 1.19.0+ specifier: 1.20.0'@univerjs/ui':specifier: workspace:*version: link:../ui@@ -1599,8 +1599,8 @@ importers:specifier: workspace:*version: link:../../common/shared'@univerjs/icons-svg':- specifier: ^1.19.0- version: 1.19.0+ specifier: ^1.20.0+ version: 1.20.0'@univerjs/sheets-formula':specifier: workspace:*version: link:../sheets-formula@@ -1629,8 +1629,8 @@ importers:specifier: workspace:*version: link:../engine-render'@univerjs/icons':- specifier: 1.19.0+ specifier: 1.20.0'@univerjs/sheets':specifier: workspace:*version: link:../sheets@@ -1684,8 +1684,8 @@ importers:specifier: workspace:*version: link:../engine-render'@univerjs/icons':- specifier: 1.19.0+ specifier: 1.20.0'@univerjs/sheets':specifier: workspace:*version: link:../sheets@@ -1770,8 +1770,8 @@ importers:specifier: workspace:*version: link:../engine-render'@univerjs/icons':- specifier: 1.19.0+ specifier: 1.20.0'@univerjs/sheets':specifier: workspace:*version: link:../sheets@@ -1939,8 +1939,8 @@ importers:specifier: workspace:*version: link:../engine-render'@univerjs/icons':- specifier: 1.19.0+ specifier: 1.20.0'@univerjs/rpc':specifier: workspace:*version: link:../rpc@@ -2068,8 +2068,8 @@ importers:specifier: workspace:*version: link:../engine-render'@univerjs/icons':- specifier: 1.19.0+ specifier: 1.20.0'@univerjs/sheets':specifier: workspace:*version: link:../sheets@@ -2154,8 +2154,8 @@ importers:specifier: workspace:*version: link:../engine-render'@univerjs/icons':- specifier: 1.19.0+ specifier: 1.20.0'@univerjs/sheets':specifier: workspace:*version: link:../sheets@@ -2240,8 +2240,8 @@ importers:specifier: workspace:*version: link:../engine-render'@univerjs/icons':- specifier: 1.19.0+ specifier: 1.20.0'@univerjs/sheets':specifier: workspace:*version: link:../sheets@@ -2317,8 +2317,8 @@ importers:specifier: workspace:*version: link:../engine-render'@univerjs/icons':- specifier: 1.19.0+ specifier: 1.20.0'@univerjs/sheets':specifier: workspace:*version: link:../sheets@@ -2388,8 +2388,8 @@ importers:specifier: workspace:*version: link:../engine-formula'@univerjs/icons':- specifier: 1.19.0+ specifier: 1.20.0'@univerjs/sheets':specifier: workspace:*version: link:../sheets@@ -2474,8 +2474,8 @@ importers:specifier: workspace:*version: link:../engine-render'@univerjs/icons':- specifier: 1.19.0+ specifier: 1.20.0'@univerjs/sheets':specifier: workspace:*version: link:../sheets@@ -2557,8 +2557,8 @@ importers:specifier: workspace:*version: link:../engine-render'@univerjs/icons':- specifier: 1.19.0+ specifier: 1.20.0'@univerjs/sheets':specifier: workspace:*version: link:../sheets@@ -2621,8 +2621,8 @@ importers:specifier: workspace:*version: link:../engine-render'@univerjs/icons':- specifier: 1.19.0+ specifier: 1.20.0'@univerjs/protocol':specifier: workspace:*version: link:../protocol@@ -2704,8 +2704,8 @@ importers:specifier: workspace:*version: link:../engine-render'@univerjs/icons':- specifier: 1.19.0+ specifier: 1.20.0'@univerjs/slides':specifier: workspace:*version: link:../slides@@ -2788,8 +2788,8 @@ importers:specifier: workspace:*version: link:../docs-ui'@univerjs/icons':- specifier: 1.19.0+ specifier: 1.20.0'@univerjs/thread-comment':specifier: workspace:*version: link:../thread-comment@@ -2834,8 +2834,8 @@ importers:specifier: workspace:*version: link:../engine-render'@univerjs/icons':- specifier: 1.19.0+ specifier: 1.20.0'@wendellhu/redi':specifier: 1.1.2version: 1.1.2([email protected])@@ -6796,11 +6796,11 @@ packages:resolution: {integrity: sha512-UexrHGnGTpbuQHct2ExOc2ZcFbGUS9FOesCxxqdBGcpI1BxYu/LZ6U8Aq6/72XtF/qRBk9nhuGHFJIXXMhPMdw==}engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}- '@univerjs/[email protected]':- resolution: {integrity: sha512-W1udOqHTHzFYz3rVJDXY5tOEw1tKrMWq4jVmIT1R7PfSCMCbXZzz54M+7nr9PZhXOs7/PXYhfokfG1P0JNpqDQ==}+ '@univerjs/[email protected]':+ resolution: {integrity: sha512-+Al8+IjipdaQB/PJY2BS/6kuUw8sbQ8+1B4P9sB42pRo+IO0Y9wJO3WYbDsIrPwvju6FhJZ00Q+c6rcVyet2DQ==}- '@univerjs/[email protected]':- resolution: {integrity: sha512-0aFxjvTtqQBEQt7BFnz4kxBCQTMaDEOi8WhG9lEeoK9JXlRn+GVRDQezwQXfMeqA3AtkNYmjRd9OvOMMqFerMw==}+ '@univerjs/[email protected]':+ resolution: {integrity: sha512-sYgbufupE0OkCyVK2dH8p5aFudxTCinlpoIpT6yo7LBXKtxSRaShnJdIuTsOAJLv9SMl0G/70nmCu4ma6dkULQ==}peerDependencies:react: 19.2.7react-dom: 19.2.7@@ -14207,8 +14207,8 @@ snapshots:'@typescript-eslint/[email protected]([email protected])':dependencies:- '@typescript-eslint/tsconfig-utils': 8.63.0([email protected])- '@typescript-eslint/types': 8.63.0+ '@typescript-eslint/tsconfig-utils': 8.56.1([email protected])+ '@typescript-eslint/types': 8.56.1debug: 4.4.3typescript: 6.0.3transitivePeerDependencies:@@ -14436,9 +14436,9 @@ snapshots:'@typescript-eslint/types': 8.63.0eslint-visitor-keys: 5.0.1- '@univerjs/[email protected]': {}+ '@univerjs/[email protected]': {}dependencies:react: 19.2.7react-dom: 19.2.7([email protected])