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
chore: fix package self import (#3984)
#FF00008f79e86dea7d
diff --git a/packages/sheets-hyper-link/src/commands/commands/add-hyper-link.command.ts b/packages/sheets-hyper-link/src/commands/commands/add-hyper-link.command.tsindex bffb50378d..95fac4d903 100644--- a/packages/sheets-hyper-link/src/commands/commands/add-hyper-link.command.ts+++ b/packages/sheets-hyper-link/src/commands/commands/add-hyper-link.command.ts@@ -16,10 +16,13 @@import type { ICellData, ICommand, IDocumentData, IMutationInfo } from '@univerjs/core';import type { ISetRangeValuesMutationParams } from '@univerjs/sheets';+import type { ICellHyperLink } from '../../types/interfaces/i-hyper-link';import { BuildTextUtils, CellValueType, CommandType, CustomRangeType, generateRandomId, ICommandService, IUndoRedoService, IUniverInstanceService, sequenceExecuteAsync, TextX, Tools } from '@univerjs/core';import { addCustomRangeBySelectionFactory } from '@univerjs/docs';import { getSheetCommandTarget, SetRangeValuesMutation, SetRangeValuesUndoMutationFactory, SheetInterceptorService } from '@univerjs/sheets';-import { AddHyperLinkMutation, HyperLinkModel, type ICellHyperLink, RemoveHyperLinkMutation } from '@univerjs/sheets-hyper-link';+import { HyperLinkModel } from '../../models/hyper-link.model';+import { AddHyperLinkMutation } from '../mutations/add-hyper-link.mutation';+import { RemoveHyperLinkMutation } from '../mutations/remove-hyper-link.mutation';export interface IAddHyperLinkCommandParams {unitId: string;diff --git a/packages/sheets-hyper-link/src/commands/commands/remove-hyper-link.command.ts b/packages/sheets-hyper-link/src/commands/commands/remove-hyper-link.command.tsindex a83ac1cdcb..4b4a96bd7f 100644--- a/packages/sheets-hyper-link/src/commands/commands/remove-hyper-link.command.ts+++ b/packages/sheets-hyper-link/src/commands/commands/remove-hyper-link.command.ts@@ -15,11 +15,13 @@*/import type { DocumentDataModel, ICommand, IDocumentBody, IMutationInfo, Nullable } from '@univerjs/core';-import type { IAddHyperLinkMutationParams } from '@univerjs/sheets-hyper-link';+import type { IAddHyperLinkMutationParams } from '../mutations/add-hyper-link.mutation';import { BuildTextUtils, CellValueType, CommandType, ICommandService, IUndoRedoService, IUniverInstanceService, sequenceExecute, TextX, Tools, UniverInstanceType } from '@univerjs/core';import { deleteCustomRangeFactory } from '@univerjs/docs';import { getSheetCommandTarget, SetRangeValuesMutation, SetRangeValuesUndoMutationFactory } from '@univerjs/sheets';-import { AddHyperLinkMutation, HyperLinkModel, RemoveHyperLinkMutation } from '@univerjs/sheets-hyper-link';+import { HyperLinkModel } from '../../models/hyper-link.model';+import { AddHyperLinkMutation } from '../mutations/add-hyper-link.mutation';+import { RemoveHyperLinkMutation } from '../mutations/remove-hyper-link.mutation';export interface ICancelHyperLinkCommandParams {unitId: string;diff --git a/packages/sheets-hyper-link/src/commands/commands/update-hyper-link.command.ts b/packages/sheets-hyper-link/src/commands/commands/update-hyper-link.command.tsindex 71d9b28520..aa524b728a 100644--- a/packages/sheets-hyper-link/src/commands/commands/update-hyper-link.command.ts+++ b/packages/sheets-hyper-link/src/commands/commands/update-hyper-link.command.ts@@ -15,10 +15,13 @@*/import type { DocumentDataModel, ICellData, ICommand, IMutationInfo } from '@univerjs/core';+import type { ICellLinkContent } from '../../types/interfaces/i-hyper-link';import { CellValueType, CommandType, CustomRangeType, generateRandomId, getBodySlice, ICommandService, IUndoRedoService, IUniverInstanceService, sequenceExecuteAsync, TextX, Tools, UniverInstanceType } from '@univerjs/core';import { replaceSelectionFactory } from '@univerjs/docs';import { getSheetCommandTarget, SetRangeValuesMutation, SetRangeValuesUndoMutationFactory, SheetInterceptorService } from '@univerjs/sheets';-import { AddHyperLinkMutation, HyperLinkModel, type ICellLinkContent, RemoveHyperLinkMutation } from '@univerjs/sheets-hyper-link';+import { HyperLinkModel } from '../../models/hyper-link.model';+import { AddHyperLinkMutation } from '../mutations/add-hyper-link.mutation';+import { RemoveHyperLinkMutation } from '../mutations/remove-hyper-link.mutation';export interface IUpdateHyperLinkCommandParams {unitId: string;diff --git a/packages/thread-comment-ui/src/views/thread-comment-editor/index.tsx b/packages/thread-comment-ui/src/views/thread-comment-editor/index.tsxindex 3636cce33e..24b31ae2f2 100644--- a/packages/thread-comment-ui/src/views/thread-comment-editor/index.tsx+++ b/packages/thread-comment-ui/src/views/thread-comment-editor/index.tsx@@ -22,9 +22,9 @@ import { Button, Mention, Mentions } from '@univerjs/design';import { DocSelectionManagerService } from '@univerjs/docs';import { DocSelectionRenderService } from '@univerjs/docs-ui';import { IRenderManagerService } from '@univerjs/engine-render';-import { IThreadCommentMentionDataService } from '@univerjs/thread-comment-ui';import React, { forwardRef, useImperativeHandle, useRef, useState } from 'react';import { SetActiveCommentOperation } from '../../commands/operations/comment.operations';+import { IThreadCommentMentionDataService } from '../../services/thread-comment-mention-data.service';import styles from './index.module.less';import { parseMentions, transformDocument2TextNodes, transformMention, transformTextNode2Text, transformTextNodes2Document } from './util';