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
fix: fix facade not exported (#4285)
Wenzhao Huac3cc27e156c
diff --git a/packages/sheets-hyper-link-ui/src/facade/f-workbook.ts b/packages/sheets-hyper-link-ui/src/facade/f-workbook.tsindex 9ffbe47ef9..d9fe18195e 100644--- a/packages/sheets-hyper-link-ui/src/facade/f-workbook.ts+++ b/packages/sheets-hyper-link-ui/src/facade/f-workbook.ts@@ -14,10 +14,10 @@* limitations under the License.*/-import { FWorkbook } from '@univerjs/sheets/facade';import { SheetsHyperLinkParserService } from '@univerjs/sheets-hyper-link';-import { FWorkbookHyperLinkMixin } from '@univerjs/sheets-hyper-link/facade';import { SheetsHyperLinkResolverService } from '@univerjs/sheets-hyper-link-ui';+import { FWorkbookHyperLinkMixin } from '@univerjs/sheets-hyper-link/facade';+import { FWorkbook } from '@univerjs/sheets/facade';interface IFWorkbookHyperlinkUIMixin {/**diff --git a/packages/sheets-hyper-link-ui/src/facade/index.ts b/packages/sheets-hyper-link-ui/src/facade/index.tsindex cf732b1e13..64592300f0 100644--- a/packages/sheets-hyper-link-ui/src/facade/index.ts+++ b/packages/sheets-hyper-link-ui/src/facade/index.ts@@ -14,3 +14,4 @@* limitations under the License.*/+import './f-workbook';diff --git a/packages/sheets-hyper-link/src/facade/f-range.ts b/packages/sheets-hyper-link/src/facade/f-range.tsindex 7738f38a80..1d65f8ae9b 100644--- a/packages/sheets-hyper-link/src/facade/f-range.ts+++ b/packages/sheets-hyper-link/src/facade/f-range.ts@@ -16,8 +16,8 @@import type { IAddHyperLinkCommandParams, ICancelHyperLinkCommandParams, IUpdateHyperLinkCommandParams } from '@univerjs/sheets-hyper-link';import { CustomRangeType, DataStreamTreeTokenType, generateRandomId } from '@univerjs/core';-import { FRange } from '@univerjs/sheets/facade';import { AddHyperLinkCommand, CancelHyperLinkCommand, UpdateHyperLinkCommand } from '@univerjs/sheets-hyper-link';+import { FRange } from '@univerjs/sheets/facade';export interface ICellHyperLink {id: string;@@ -28,6 +28,14 @@ export interface ICellHyperLink {}export interface IFRangeHyperlinkMixin {+ /**+ * Set hyperlink in the cell in the range.+ * [!important] This method is async.+ * @param url url+ * @param label optional, label of the url+ * @returns success or not+ */+ setHyperLink(url: string, label?: string): Promise<boolean>;/*** Get all hyperlinks in the cell in the range.* @returns hyperlinks@@ -54,14 +62,7 @@ export interface IFRangeHyperlinkMixin {export class FRangeHyperlinkMixin extends FRange implements IFRangeHyperlinkMixin {// #region hyperlink- /**- * Set hyperlink in the cell in the range.- * [!important] This method is async.- * @param url url- * @param label optional, label of the url- * @returns success or not- */- setHyperLink(url: string, label?: string): Promise<boolean> {+ override setHyperLink(url: string, label?: string): Promise<boolean> {const params: IAddHyperLinkCommandParams = {unitId: this.getUnitId(),subUnitId: this._worksheet.getSheetId(),