@univerjs/sheets-hyper-link-ui 0.25.1 → 1.0.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (93) hide show
  1. package/lib/cjs/index.js +106 -239
  2. package/lib/cjs/locale/ar-SA.js +1 -0
  3. package/lib/cjs/locale/ca-ES.js +1 -0
  4. package/lib/cjs/locale/de-DE.js +1 -0
  5. package/lib/cjs/locale/en-US.js +1 -0
  6. package/lib/cjs/locale/es-ES.js +1 -0
  7. package/lib/cjs/locale/fa-IR.js +1 -0
  8. package/lib/cjs/locale/fr-FR.js +1 -0
  9. package/lib/cjs/locale/id-ID.js +1 -0
  10. package/lib/cjs/locale/it-IT.js +1 -0
  11. package/lib/cjs/locale/ja-JP.js +1 -0
  12. package/lib/cjs/locale/ko-KR.js +1 -0
  13. package/lib/cjs/locale/pl-PL.js +1 -0
  14. package/lib/cjs/locale/pt-BR.js +1 -0
  15. package/lib/cjs/locale/ru-RU.js +1 -0
  16. package/lib/cjs/locale/sk-SK.js +1 -0
  17. package/lib/cjs/locale/vi-VN.js +1 -0
  18. package/lib/cjs/locale/zh-CN.js +1 -0
  19. package/lib/cjs/locale/zh-HK.js +1 -0
  20. package/lib/cjs/locale/zh-TW.js +1 -0
  21. package/lib/es/index.js +109 -242
  22. package/lib/es/locale/ar-SA.js +1 -0
  23. package/lib/es/locale/ca-ES.js +1 -0
  24. package/lib/es/locale/de-DE.js +1 -0
  25. package/lib/es/locale/en-US.js +1 -0
  26. package/lib/es/locale/es-ES.js +1 -0
  27. package/lib/es/locale/fa-IR.js +1 -0
  28. package/lib/es/locale/fr-FR.js +1 -0
  29. package/lib/es/locale/id-ID.js +1 -0
  30. package/lib/es/locale/it-IT.js +1 -0
  31. package/lib/es/locale/ja-JP.js +1 -0
  32. package/lib/es/locale/ko-KR.js +1 -0
  33. package/lib/es/locale/pl-PL.js +1 -0
  34. package/lib/es/locale/pt-BR.js +1 -0
  35. package/lib/es/locale/ru-RU.js +1 -0
  36. package/lib/es/locale/sk-SK.js +1 -0
  37. package/lib/es/locale/vi-VN.js +1 -0
  38. package/lib/es/locale/zh-CN.js +1 -0
  39. package/lib/es/locale/zh-HK.js +1 -0
  40. package/lib/es/locale/zh-TW.js +1 -0
  41. package/lib/index.js +109 -242
  42. package/lib/locale/ar-SA.js +1 -0
  43. package/lib/locale/ca-ES.js +1 -0
  44. package/lib/locale/de-DE.js +1 -0
  45. package/lib/locale/en-US.js +1 -0
  46. package/lib/locale/es-ES.js +1 -0
  47. package/lib/locale/fa-IR.js +1 -0
  48. package/lib/locale/fr-FR.js +1 -0
  49. package/lib/locale/id-ID.js +1 -0
  50. package/lib/locale/it-IT.js +1 -0
  51. package/lib/locale/ja-JP.js +1 -0
  52. package/lib/locale/ko-KR.js +1 -0
  53. package/lib/locale/pl-PL.js +1 -0
  54. package/lib/locale/pt-BR.js +1 -0
  55. package/lib/locale/ru-RU.js +1 -0
  56. package/lib/locale/sk-SK.js +1 -0
  57. package/lib/locale/vi-VN.js +1 -0
  58. package/lib/locale/zh-CN.js +1 -0
  59. package/lib/locale/zh-HK.js +1 -0
  60. package/lib/locale/zh-TW.js +1 -0
  61. package/lib/types/controllers/components.controller.d.ts +24 -0
  62. package/lib/types/controllers/popup.controller.d.ts +1 -4
  63. package/lib/types/controllers/ui.controller.d.ts +3 -3
  64. package/lib/types/index.d.ts +4 -2
  65. package/lib/types/locale/en-US.d.ts +3 -0
  66. package/lib/types/locale/types.d.ts +18 -0
  67. package/lib/types/menu/menu.d.ts +3 -22
  68. package/lib/types/services/popup.service.d.ts +1 -5
  69. package/lib/types/services/side-panel.service.d.ts +2 -1
  70. package/lib/types/types/enums/edit-source.d.ts +1 -2
  71. package/lib/types/views/{CellLinkEdit/index.d.ts → CellLinkEdit.d.ts} +1 -1
  72. package/lib/types/views/{CellLinkPopup/index.d.ts → CellLinkPopup.d.ts} +3 -3
  73. package/lib/umd/index.js +1 -1
  74. package/lib/umd/locale/ar-SA.js +1 -1
  75. package/lib/umd/locale/ca-ES.js +1 -1
  76. package/lib/umd/locale/de-DE.js +1 -1
  77. package/lib/umd/locale/en-US.js +1 -1
  78. package/lib/umd/locale/es-ES.js +1 -1
  79. package/lib/umd/locale/fa-IR.js +1 -1
  80. package/lib/umd/locale/fr-FR.js +1 -1
  81. package/lib/umd/locale/id-ID.js +1 -1
  82. package/lib/umd/locale/it-IT.js +1 -1
  83. package/lib/umd/locale/ja-JP.js +1 -1
  84. package/lib/umd/locale/ko-KR.js +1 -1
  85. package/lib/umd/locale/pl-PL.js +1 -1
  86. package/lib/umd/locale/pt-BR.js +1 -1
  87. package/lib/umd/locale/ru-RU.js +1 -1
  88. package/lib/umd/locale/sk-SK.js +1 -1
  89. package/lib/umd/locale/vi-VN.js +1 -1
  90. package/lib/umd/locale/zh-CN.js +1 -1
  91. package/lib/umd/locale/zh-HK.js +1 -1
  92. package/lib/umd/locale/zh-TW.js +1 -1
  93. package/package.json +16 -16
@@ -18,6 +18,7 @@ const locale = { "sheets-hyper-link-ui": {
18
18
  linkError: "الرجاء إدخال رابط صالح"
19
19
  },
20
20
  menu: { add: "إدراج ارتباط تشعبي" },
21
+ permission: { hyperLinkErr: "ليس لديك إذن لإدراج رابط." },
21
22
  message: {
22
23
  noSheet: "تم حذف الورقة المستهدفة",
23
24
  refError: "نطاق غير صالح",
@@ -18,6 +18,7 @@ const locale = { "sheets-hyper-link-ui": {
18
18
  linkError: "Si us plau, introdueix un enllaç vàlid"
19
19
  },
20
20
  menu: { add: "Insereix enllaç" },
21
+ permission: { hyperLinkErr: "No teniu permís per inserir un enllaç." },
21
22
  message: {
22
23
  noSheet: "El full de destinació ha estat eliminat",
23
24
  refError: "Interval no vàlid",
@@ -18,6 +18,7 @@ const locale = { "sheets-hyper-link-ui": {
18
18
  linkError: "Bitte einen gültigen Link eingeben"
19
19
  },
20
20
  menu: { add: "Link einfügen" },
21
+ permission: { hyperLinkErr: "Sie haben keine Berechtigung, einen Link einzufügen." },
21
22
  message: {
22
23
  noSheet: "Zielblatt wurde gelöscht",
23
24
  refError: "Ungültiger Bereich",
@@ -33,6 +33,7 @@ const locale = { "sheets-hyper-link-ui": {
33
33
  linkError: "Please enter a legal link"
34
34
  },
35
35
  menu: { add: "Insert Link" },
36
+ permission: { hyperLinkErr: "You do not have permission to insert a link." },
36
37
  message: {
37
38
  noSheet: "Target sheet has been delete",
38
39
  refError: "Invalid Range",
@@ -18,6 +18,7 @@ const locale = { "sheets-hyper-link-ui": {
18
18
  linkError: "Por favor, introduce un enlace válido"
19
19
  },
20
20
  menu: { add: "Insertar enlace" },
21
+ permission: { hyperLinkErr: "No tiene permiso para insertar un enlace." },
21
22
  message: {
22
23
  noSheet: "La hoja de destino ha sido eliminada",
23
24
  refError: "Rango no válido",
@@ -18,6 +18,7 @@ const locale = { "sheets-hyper-link-ui": {
18
18
  linkError: "لطفا یک لینک معتبر وارد کنید"
19
19
  },
20
20
  menu: { add: "درج لینک" },
21
+ permission: { hyperLinkErr: "شما مجوز درج لینک را ندارید." },
21
22
  message: {
22
23
  noSheet: "برگ هدف حذف شده است",
23
24
  refError: "محدوده نامعتبر",
@@ -18,6 +18,7 @@ const locale = { "sheets-hyper-link-ui": {
18
18
  linkError: "Veuillez entrer un lien valide"
19
19
  },
20
20
  menu: { add: "Insérer un lien" },
21
+ permission: { hyperLinkErr: "Vous n’avez pas l’autorisation d’insérer un lien." },
21
22
  message: {
22
23
  noSheet: "La feuille cible a été supprimée",
23
24
  refError: "Plage invalide",
@@ -18,6 +18,7 @@ const locale = { "sheets-hyper-link-ui": {
18
18
  linkError: "Silakan masukkan tautan yang valid"
19
19
  },
20
20
  menu: { add: "Sisipkan Tautan" },
21
+ permission: { hyperLinkErr: "Anda tidak memiliki izin untuk menyisipkan tautan." },
21
22
  message: {
22
23
  noSheet: "Lembar target telah dihapus",
23
24
  refError: "Rentang Tidak Valid",
@@ -18,6 +18,7 @@ const locale = { "sheets-hyper-link-ui": {
18
18
  linkError: "Inserisci un collegamento valido"
19
19
  },
20
20
  menu: { add: "Inserisci collegamento" },
21
+ permission: { hyperLinkErr: "Non hai l’autorizzazione per inserire un collegamento." },
21
22
  message: {
22
23
  noSheet: "Il foglio di destinazione è stato eliminato",
23
24
  refError: "Intervallo non valido",
@@ -18,6 +18,7 @@ const locale = { "sheets-hyper-link-ui": {
18
18
  linkError: "有効なリンクを入力してください"
19
19
  },
20
20
  menu: { add: "リンクの挿入" },
21
+ permission: { hyperLinkErr: "リンクを挿入する権限がありません。" },
21
22
  message: {
22
23
  noSheet: "対象のワークシートが削除されました",
23
24
  refError: "無効な範囲です",
@@ -18,6 +18,7 @@ const locale = { "sheets-hyper-link-ui": {
18
18
  linkError: "유효한 링크를 입력하세요"
19
19
  },
20
20
  menu: { add: "링크 삽입" },
21
+ permission: { hyperLinkErr: "링크를 삽입할 권한이 없습니다." },
21
22
  message: {
22
23
  noSheet: "대상 워크시트가 삭제되었습니다",
23
24
  refError: "잘못된 범위입니다",
@@ -18,6 +18,7 @@ const locale = { "sheets-hyper-link-ui": {
18
18
  linkError: "Wprowadź prawidłowe łącze"
19
19
  },
20
20
  menu: { add: "Wstaw łącze" },
21
+ permission: { hyperLinkErr: "Nie masz uprawnień do wstawiania łącza." },
21
22
  message: {
22
23
  noSheet: "Arkusz docelowy został usunięty",
23
24
  refError: "Nieprawidłowy zakres",
@@ -18,6 +18,7 @@ const locale = { "sheets-hyper-link-ui": {
18
18
  linkError: "Por favor, digite um link válido"
19
19
  },
20
20
  menu: { add: "Inserir Link" },
21
+ permission: { hyperLinkErr: "Você não tem permissão para inserir um link." },
21
22
  message: {
22
23
  noSheet: "A planilha de destino foi excluída",
23
24
  refError: "Intervalo Inválido",
@@ -18,6 +18,7 @@ const locale = { "sheets-hyper-link-ui": {
18
18
  linkError: "Пожалуйста, введите корректную ссылку"
19
19
  },
20
20
  menu: { add: "Вставить ссылку" },
21
+ permission: { hyperLinkErr: "У вас нет разрешения на вставку ссылки." },
21
22
  message: {
22
23
  noSheet: "Целевой лист был удален",
23
24
  refError: "Недопустимый диапазон",
@@ -18,6 +18,7 @@ const locale = { "sheets-hyper-link-ui": {
18
18
  linkError: "Zadajte platný odkaz"
19
19
  },
20
20
  menu: { add: "Vložiť odkaz" },
21
+ permission: { hyperLinkErr: "Nemáte povolenie vložiť odkaz." },
21
22
  message: {
22
23
  noSheet: "Cieľový hárok bol odstránený",
23
24
  refError: "Neplatný rozsah",
@@ -18,6 +18,7 @@ const locale = { "sheets-hyper-link-ui": {
18
18
  linkError: "Vui lòng nhập liên kết hợp lệ"
19
19
  },
20
20
  menu: { add: "Thêm liên kết" },
21
+ permission: { hyperLinkErr: "Bạn không có quyền chèn liên kết." },
21
22
  message: {
22
23
  noSheet: "Bảng con này đã bị xóa",
23
24
  refError: "Tham chiếu lỗi",
@@ -18,6 +18,7 @@ const locale = { "sheets-hyper-link-ui": {
18
18
  linkError: "请输入合法的链接"
19
19
  },
20
20
  menu: { add: "添加链接" },
21
+ permission: { hyperLinkErr: "你没有权限插入链接。" },
21
22
  message: {
22
23
  noSheet: "该子表已被删除",
23
24
  refError: "错误的引用",
@@ -18,6 +18,7 @@ const locale = { "sheets-hyper-link-ui": {
18
18
  linkError: "請輸入合法的連結"
19
19
  },
20
20
  menu: { add: "新增連結" },
21
+ permission: { hyperLinkErr: "你沒有權限插入連結。" },
21
22
  message: {
22
23
  noSheet: "該子表已被刪除",
23
24
  refError: "錯誤的引用",
@@ -18,6 +18,7 @@ const locale = { "sheets-hyper-link-ui": {
18
18
  linkError: "請輸入合法的連結"
19
19
  },
20
20
  menu: { add: "新增連結" },
21
+ permission: { hyperLinkErr: "你沒有權限插入連結。" },
21
22
  message: {
22
23
  noSheet: "該子表已被刪除",
23
24
  refError: "錯誤的引用",
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { Disposable } from '@univerjs/core';
17
+ import { ComponentManager, IconManager } from '@univerjs/ui';
18
+ export declare class ComponentsController extends Disposable {
19
+ private readonly _componentManager;
20
+ private readonly _iconManager;
21
+ constructor(_componentManager: ComponentManager, _iconManager: IconManager);
22
+ private _registerComponents;
23
+ private _registerIcons;
24
+ }
@@ -18,7 +18,6 @@ import { DocSelectionManagerService } from '@univerjs/docs';
18
18
  import { IRenderManagerService } from '@univerjs/engine-render';
19
19
  import { SheetPermissionCheckController } from '@univerjs/sheets';
20
20
  import { HoverManagerService, IEditorBridgeService } from '@univerjs/sheets-ui';
21
- import { IZenZoneService } from '@univerjs/ui';
22
21
  import { SheetsHyperLinkPopupService } from '../services/popup.service';
23
22
  export declare class SheetsHyperLinkPopupController extends Disposable {
24
23
  private readonly _hoverManagerService;
@@ -30,12 +29,10 @@ export declare class SheetsHyperLinkPopupController extends Disposable {
30
29
  private readonly _editorBridgeService;
31
30
  private readonly _textSelectionManagerService;
32
31
  private readonly _univerInstanceService;
33
- private readonly _zenZoneService;
34
- constructor(_hoverManagerService: HoverManagerService, _sheetsHyperLinkPopupService: SheetsHyperLinkPopupService, _renderManagerService: IRenderManagerService, _permissionService: IPermissionService, _sheetPermissionCheckController: SheetPermissionCheckController, _commandService: ICommandService, _editorBridgeService: IEditorBridgeService, _textSelectionManagerService: DocSelectionManagerService, _univerInstanceService: IUniverInstanceService, _zenZoneService: IZenZoneService);
32
+ constructor(_hoverManagerService: HoverManagerService, _sheetsHyperLinkPopupService: SheetsHyperLinkPopupService, _renderManagerService: IRenderManagerService, _permissionService: IPermissionService, _sheetPermissionCheckController: SheetPermissionCheckController, _commandService: ICommandService, _editorBridgeService: IEditorBridgeService, _textSelectionManagerService: DocSelectionManagerService, _univerInstanceService: IUniverInstanceService);
35
33
  private _getLinkPermission;
36
34
  private _initHoverListener;
37
35
  private _initHoverEditingListener;
38
- private _initZenEditor;
39
36
  private _initTextSelectionListener;
40
37
  private _initCommandListener;
41
38
  }
@@ -14,15 +14,15 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { Disposable, ICommandService, Injector } from '@univerjs/core';
17
- import { ComponentManager, IMenuManagerService, IShortcutService } from '@univerjs/ui';
17
+ import { ComponentManager, IconManager, IMenuManagerService, IShortcutService } from '@univerjs/ui';
18
18
  export declare class SheetsHyperLinkUIController extends Disposable {
19
19
  private _componentManager;
20
+ private _iconManager;
20
21
  private _commandService;
21
22
  private readonly _menuManagerService;
22
23
  private _injector;
23
24
  private _shortcutService;
24
- constructor(_componentManager: ComponentManager, _commandService: ICommandService, _menuManagerService: IMenuManagerService, _injector: Injector, _shortcutService: IShortcutService);
25
- private _initComponents;
25
+ constructor(_componentManager: ComponentManager, _iconManager: IconManager, _commandService: ICommandService, _menuManagerService: IMenuManagerService, _injector: Injector, _shortcutService: IShortcutService);
26
26
  private _initCommands;
27
27
  private _initMenus;
28
28
  private _initShortCut;
@@ -14,11 +14,13 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import './global.css';
17
- export { CloseHyperLinkPopupOperation, InsertHyperLinkOperation, type IOpenHyperLinkEditPanelOperationParams, OpenHyperLinkEditPanelOperation, } from './commands/operations/popup.operations';
17
+ export { CloseHyperLinkPopupOperation, InsertHyperLinkOperation, OpenHyperLinkEditPanelOperation, } from './commands/operations/popup.operations';
18
+ export type { IOpenHyperLinkEditPanelOperationParams } from './commands/operations/popup.operations';
18
19
  export type { IUniverSheetsHyperLinkUIConfig } from './config/config';
19
20
  export { SheetsHyperLinkCopyPasteController } from './controllers/copy-paste.controller';
20
21
  export { InsertLinkShortcut } from './menu/menu';
21
22
  export { UniverSheetsHyperLinkUIPlugin } from './plugin';
22
23
  export { SheetsHyperLinkPopupService } from './services/popup.service';
23
24
  export { SheetsHyperLinkResolverService } from './services/resolver.service';
24
- export { type ICustomHyperLinkView, SheetsHyperLinkSidePanelService } from './services/side-panel.service';
25
+ export { SheetsHyperLinkSidePanelService } from './services/side-panel.service';
26
+ export type { ICustomHyperLinkView } from './services/side-panel.service';
@@ -35,6 +35,9 @@ declare const locale: {
35
35
  menu: {
36
36
  add: string;
37
37
  };
38
+ permission: {
39
+ hyperLinkErr: string;
40
+ };
38
41
  message: {
39
42
  noSheet: string;
40
43
  refError: string;
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import type { LocaleLeafKeys } from '@univerjs/core';
17
+ import type enUS from './en-US';
18
+ export type LocaleKey = LocaleLeafKeys<typeof enUS>;
@@ -15,26 +15,7 @@
15
15
  */
16
16
  import type { IAccessor } from '@univerjs/core';
17
17
  import type { IMenuItem, IShortcutItem } from '@univerjs/ui';
18
- import { MenuItemType } from '@univerjs/ui';
19
- export declare const genZenEditorMenuId: (id: string) => string;
20
- export declare const insertLinkMenuFactory: (accessor: IAccessor) => IMenuItem;
21
- export declare const zenEditorInsertLinkMenuFactory: (accessor: IAccessor) => IMenuItem;
22
- export declare const insertLinkMenuToolbarFactory: (accessor: IAccessor) => {
23
- id: string;
24
- hidden$: import("rxjs").Observable<boolean>;
25
- disabled$: import("rxjs").Observable<boolean>;
26
- tooltip: string;
27
- commandId: string;
28
- type: MenuItemType;
29
- icon: string;
30
- };
31
- export declare const zenEditorInsertLinkMenuToolbarFactory: (accessor: IAccessor) => {
32
- id: string;
33
- hidden$: import("rxjs").Observable<boolean>;
34
- disabled$: import("rxjs").Observable<boolean>;
35
- tooltip: string;
36
- commandId: string;
37
- type: MenuItemType;
38
- icon: string;
39
- };
18
+ import type { LocaleKey } from '../locale/types';
19
+ export declare const insertLinkMenuFactory: (accessor: IAccessor) => IMenuItem<LocaleKey>;
20
+ export declare const insertLinkMenuToolbarFactory: (accessor: IAccessor) => IMenuItem<LocaleKey>;
40
21
  export declare const InsertLinkShortcut: IShortcutItem;
@@ -18,9 +18,7 @@ import type { IBoundRectNoAngle } from '@univerjs/engine-render';
18
18
  import type { ISheetLocationBase } from '@univerjs/sheets';
19
19
  import { Disposable, Injector, IUniverInstanceService } from '@univerjs/core';
20
20
  import { DocSelectionManagerService } from '@univerjs/docs';
21
- import { DocCanvasPopManagerService } from '@univerjs/docs-ui';
22
21
  import { IEditorBridgeService, SheetCanvasPopManagerService } from '@univerjs/sheets-ui';
23
- import { IZenZoneService } from '@univerjs/ui';
24
22
  import { HyperLinkEditSourceType } from '../types/enums/edit-source';
25
23
  export interface IHyperLinkPopup {
26
24
  unitId: string;
@@ -56,8 +54,6 @@ export declare class SheetsHyperLinkPopupService extends Disposable {
56
54
  private readonly _univerInstanceService;
57
55
  private readonly _editorBridgeService;
58
56
  private readonly _textSelectionManagerService;
59
- private readonly _docCanvasPopManagerService;
60
- private readonly _zenZoneService;
61
57
  private _currentPopup;
62
58
  private _currentPopup$;
63
59
  currentPopup$: import("rxjs").Observable<IHyperLinkPopup | null>;
@@ -73,7 +69,7 @@ export declare class SheetsHyperLinkPopupService extends Disposable {
73
69
  customRange?: ICustomRange;
74
70
  label?: string;
75
71
  }) | null;
76
- constructor(_sheetCanvasPopManagerService: SheetCanvasPopManagerService, _injector: Injector, _univerInstanceService: IUniverInstanceService, _editorBridgeService: IEditorBridgeService, _textSelectionManagerService: DocSelectionManagerService, _docCanvasPopManagerService: DocCanvasPopManagerService, _zenZoneService: IZenZoneService);
72
+ constructor(_sheetCanvasPopManagerService: SheetCanvasPopManagerService, _injector: Injector, _univerInstanceService: IUniverInstanceService, _editorBridgeService: IEditorBridgeService, _textSelectionManagerService: DocSelectionManagerService);
77
73
  setIsKeepVisible(v: boolean): void;
78
74
  getIsKeepVisible(): boolean;
79
75
  showPopup(location: IHyperLinkPopupOptions): void;
@@ -21,8 +21,9 @@ export interface ICustomHyperLinkFormProps {
21
21
  linkId: string;
22
22
  payload: string;
23
23
  display: string;
24
- setByPayload: React.MutableRefObject<boolean>;
24
+ getIsDisplaySyncedWithPayload: () => boolean;
25
25
  showError: boolean;
26
+ setDisplaySyncedWithPayload: (synced: boolean) => void;
26
27
  setDisplay: (display: string) => void;
27
28
  setPayload: (payload: string) => void;
28
29
  }
@@ -15,6 +15,5 @@
15
15
  */
16
16
  export declare enum HyperLinkEditSourceType {
17
17
  EDITING = "editing",
18
- VIEWING = "viewing",
19
- ZEN_EDITOR = "zen_mode"
18
+ VIEWING = "viewing"
20
19
  }
@@ -14,6 +14,6 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  export declare const CellLinkEdit: {
17
- (): import("react/jsx-runtime").JSX.Element | null | undefined;
17
+ (): import("react").JSX.Element | null | undefined;
18
18
  componentKey: string;
19
19
  };
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import type { ICustomRange, Nullable } from '@univerjs/core';
17
- import { HyperLinkEditSourceType } from '../../types/enums/edit-source';
17
+ import { HyperLinkEditSourceType } from '../types/enums/edit-source';
18
18
  interface ICellLinkPopupPureProps {
19
19
  customRange?: Nullable<ICustomRange>;
20
20
  row: number;
@@ -25,9 +25,9 @@ interface ICellLinkPopupPureProps {
25
25
  copyPermission?: boolean;
26
26
  type: HyperLinkEditSourceType;
27
27
  }
28
- export declare const CellLinkPopupPure: (props: ICellLinkPopupPureProps) => import("react/jsx-runtime").JSX.Element | null;
28
+ export declare const CellLinkPopupPure: (props: ICellLinkPopupPureProps) => import("react").JSX.Element | null;
29
29
  export declare const CellLinkPopup: {
30
- (): import("react/jsx-runtime").JSX.Element | null;
30
+ (): import("react").JSX.Element | null;
31
31
  componentKey: string;
32
32
  };
33
33
  export {};