@univerjs/sheets-thread-comment-ui 1.0.0-insiders.20260809-70eefdd → 1.0.0-rc.0

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 (101) hide show
  1. package/LICENSE +176 -0
  2. package/README.md +16 -8
  3. package/lib/cjs/index.js +675 -156
  4. package/lib/cjs/locale/ar-SA.js +1 -0
  5. package/lib/cjs/locale/ca-ES.js +1 -0
  6. package/lib/cjs/locale/de-DE.js +1 -0
  7. package/lib/cjs/locale/en-US.js +1 -0
  8. package/lib/cjs/locale/es-ES.js +1 -0
  9. package/lib/cjs/locale/fa-IR.js +1 -0
  10. package/lib/cjs/locale/fr-FR.js +1 -0
  11. package/lib/cjs/locale/id-ID.js +1 -0
  12. package/lib/cjs/locale/it-IT.js +1 -0
  13. package/lib/cjs/locale/ja-JP.js +1 -0
  14. package/lib/cjs/locale/ko-KR.js +1 -0
  15. package/lib/cjs/locale/pl-PL.js +1 -0
  16. package/lib/cjs/locale/pt-BR.js +1 -0
  17. package/lib/cjs/locale/ru-RU.js +1 -0
  18. package/lib/cjs/locale/sk-SK.js +1 -0
  19. package/lib/cjs/locale/vi-VN.js +1 -0
  20. package/lib/cjs/locale/zh-CN.js +1 -0
  21. package/lib/cjs/locale/zh-HK.js +1 -0
  22. package/lib/cjs/locale/zh-TW.js +1 -0
  23. package/lib/es/index.js +676 -163
  24. package/lib/es/locale/ar-SA.js +1 -0
  25. package/lib/es/locale/ca-ES.js +1 -0
  26. package/lib/es/locale/de-DE.js +1 -0
  27. package/lib/es/locale/en-US.js +1 -0
  28. package/lib/es/locale/es-ES.js +1 -0
  29. package/lib/es/locale/fa-IR.js +1 -0
  30. package/lib/es/locale/fr-FR.js +1 -0
  31. package/lib/es/locale/id-ID.js +1 -0
  32. package/lib/es/locale/it-IT.js +1 -0
  33. package/lib/es/locale/ja-JP.js +1 -0
  34. package/lib/es/locale/ko-KR.js +1 -0
  35. package/lib/es/locale/pl-PL.js +1 -0
  36. package/lib/es/locale/pt-BR.js +1 -0
  37. package/lib/es/locale/ru-RU.js +1 -0
  38. package/lib/es/locale/sk-SK.js +1 -0
  39. package/lib/es/locale/vi-VN.js +1 -0
  40. package/lib/es/locale/zh-CN.js +1 -0
  41. package/lib/es/locale/zh-HK.js +1 -0
  42. package/lib/es/locale/zh-TW.js +1 -0
  43. package/lib/index.js +676 -163
  44. package/lib/locale/ar-SA.js +1 -0
  45. package/lib/locale/ca-ES.js +1 -0
  46. package/lib/locale/de-DE.js +1 -0
  47. package/lib/locale/en-US.js +1 -0
  48. package/lib/locale/es-ES.js +1 -0
  49. package/lib/locale/fa-IR.js +1 -0
  50. package/lib/locale/fr-FR.js +1 -0
  51. package/lib/locale/id-ID.js +1 -0
  52. package/lib/locale/it-IT.js +1 -0
  53. package/lib/locale/ja-JP.js +1 -0
  54. package/lib/locale/ko-KR.js +1 -0
  55. package/lib/locale/pl-PL.js +1 -0
  56. package/lib/locale/pt-BR.js +1 -0
  57. package/lib/locale/ru-RU.js +1 -0
  58. package/lib/locale/sk-SK.js +1 -0
  59. package/lib/locale/vi-VN.js +1 -0
  60. package/lib/locale/zh-CN.js +1 -0
  61. package/lib/locale/zh-HK.js +1 -0
  62. package/lib/locale/zh-TW.js +1 -0
  63. package/lib/types/commands/operations/comment.operation.d.ts +5 -0
  64. package/lib/types/commands/operations/mobile/show-add-sheet-comment.operation.d.ts +17 -0
  65. package/lib/types/controllers/mobile/components.controller.d.ts +22 -0
  66. package/lib/types/controllers/mobile/sheets-thread-comment.controller.d.ts +20 -0
  67. package/lib/types/controllers/render-controllers/drawing.render-controller.d.ts +35 -0
  68. package/lib/types/controllers/sheets-thread-comment-permission.controller.d.ts +1 -0
  69. package/lib/types/controllers/sheets-thread-comment-popup.controller.d.ts +2 -0
  70. package/lib/types/index.d.ts +1 -0
  71. package/lib/types/locale/en-US.d.ts +1 -0
  72. package/lib/types/menu/menu.d.ts +11 -0
  73. package/lib/types/menu/mobile-menu.d.ts +35 -0
  74. package/lib/types/menu/mobile-schema.d.ts +17 -0
  75. package/lib/types/mobile-plugin.d.ts +31 -0
  76. package/lib/types/plugin.d.ts +3 -1
  77. package/lib/types/services/mobile/mobile-sheet-comment-draft.service.d.ts +31 -0
  78. package/lib/types/types/const.d.ts +1 -0
  79. package/lib/types/views/SheetsThreadCommentPanel.d.ts +5 -1
  80. package/lib/types/views/mobile/MobileSheetsThreadCommentPanel.d.ts +16 -0
  81. package/lib/umd/index.js +3 -1
  82. package/lib/umd/locale/ar-SA.js +1 -1
  83. package/lib/umd/locale/ca-ES.js +1 -1
  84. package/lib/umd/locale/de-DE.js +1 -1
  85. package/lib/umd/locale/en-US.js +1 -1
  86. package/lib/umd/locale/es-ES.js +1 -1
  87. package/lib/umd/locale/fa-IR.js +1 -1
  88. package/lib/umd/locale/fr-FR.js +1 -1
  89. package/lib/umd/locale/id-ID.js +1 -1
  90. package/lib/umd/locale/it-IT.js +1 -1
  91. package/lib/umd/locale/ja-JP.js +1 -1
  92. package/lib/umd/locale/ko-KR.js +1 -1
  93. package/lib/umd/locale/pl-PL.js +1 -1
  94. package/lib/umd/locale/pt-BR.js +1 -1
  95. package/lib/umd/locale/ru-RU.js +1 -1
  96. package/lib/umd/locale/sk-SK.js +1 -1
  97. package/lib/umd/locale/vi-VN.js +1 -1
  98. package/lib/umd/locale/zh-CN.js +1 -1
  99. package/lib/umd/locale/zh-HK.js +1 -1
  100. package/lib/umd/locale/zh-TW.js +1 -1
  101. package/package.json +15 -14
@@ -4,6 +4,7 @@ const locale = { "sheets-thread-comment-ui": {
4
4
  permission: { commentErr: "ليس لديك إذن لاستخدام التعليقات." },
5
5
  menu: {
6
6
  addComment: "إضافة تعليق",
7
+ openComments: "فتح التعليقات",
7
8
  commentManagement: "إدارة التعليقات"
8
9
  }
9
10
  } };
@@ -4,6 +4,7 @@ const locale = { "sheets-thread-comment-ui": {
4
4
  permission: { commentErr: "No teniu permís per utilitzar comentaris." },
5
5
  menu: {
6
6
  addComment: "Afegeix un comentari",
7
+ openComments: "Obre els comentaris",
7
8
  commentManagement: "Gestió de comentaris"
8
9
  }
9
10
  } };
@@ -4,6 +4,7 @@ const locale = { "sheets-thread-comment-ui": {
4
4
  permission: { commentErr: "Sie haben keine Berechtigung, Kommentare zu verwenden." },
5
5
  menu: {
6
6
  addComment: "Kommentar hinzufügen",
7
+ openComments: "Kommentare öffnen",
7
8
  commentManagement: "Kommentarverwaltung"
8
9
  }
9
10
  } };
@@ -19,6 +19,7 @@ const locale = { "sheets-thread-comment-ui": {
19
19
  permission: { commentErr: "You do not have permission to use comments." },
20
20
  menu: {
21
21
  addComment: "Add Comment",
22
+ openComments: "Open Comments",
22
23
  commentManagement: "Comment Management"
23
24
  }
24
25
  } };
@@ -4,6 +4,7 @@ const locale = { "sheets-thread-comment-ui": {
4
4
  permission: { commentErr: "No tiene permiso para usar comentarios." },
5
5
  menu: {
6
6
  addComment: "Añadir comentario",
7
+ openComments: "Abrir comentarios",
7
8
  commentManagement: "Gestión de comentarios"
8
9
  }
9
10
  } };
@@ -4,6 +4,7 @@ const locale = { "sheets-thread-comment-ui": {
4
4
  permission: { commentErr: "شما مجوز استفاده از نظرات را ندارید." },
5
5
  menu: {
6
6
  addComment: "افزودن نظر",
7
+ openComments: "باز کردن نظرات",
7
8
  commentManagement: "مدیریت نظر"
8
9
  }
9
10
  } };
@@ -4,6 +4,7 @@ const locale = { "sheets-thread-comment-ui": {
4
4
  permission: { commentErr: "Vous n’avez pas l’autorisation d’utiliser les commentaires." },
5
5
  menu: {
6
6
  addComment: "Ajouter un commentaire",
7
+ openComments: "Ouvrir les commentaires",
7
8
  commentManagement: "Gestion des commentaires"
8
9
  }
9
10
  } };
@@ -4,6 +4,7 @@ const locale = { "sheets-thread-comment-ui": {
4
4
  permission: { commentErr: "Anda tidak memiliki izin untuk menggunakan komentar." },
5
5
  menu: {
6
6
  addComment: "Tambah Komentar",
7
+ openComments: "Buka Komentar",
7
8
  commentManagement: "Manajemen Komentar"
8
9
  }
9
10
  } };
@@ -4,6 +4,7 @@ const locale = { "sheets-thread-comment-ui": {
4
4
  permission: { commentErr: "Non hai l’autorizzazione per usare i commenti." },
5
5
  menu: {
6
6
  addComment: "Aggiungi commento",
7
+ openComments: "Apri commenti",
7
8
  commentManagement: "Gestione commenti"
8
9
  }
9
10
  } };
@@ -4,6 +4,7 @@ const locale = { "sheets-thread-comment-ui": {
4
4
  permission: { commentErr: "コメントを使用する権限がありません。" },
5
5
  menu: {
6
6
  addComment: "コメントを追加",
7
+ openComments: "コメントを開く",
7
8
  commentManagement: "コメント管理"
8
9
  }
9
10
  } };
@@ -4,6 +4,7 @@ const locale = { "sheets-thread-comment-ui": {
4
4
  permission: { commentErr: "댓글을 사용할 권한이 없습니다." },
5
5
  menu: {
6
6
  addComment: "댓글 추가",
7
+ openComments: "댓글 열기",
7
8
  commentManagement: "댓글 관리"
8
9
  }
9
10
  } };
@@ -4,6 +4,7 @@ const locale = { "sheets-thread-comment-ui": {
4
4
  permission: { commentErr: "Nie masz uprawnień do używania komentarzy." },
5
5
  menu: {
6
6
  addComment: "Dodaj komentarz",
7
+ openComments: "Otwórz komentarze",
7
8
  commentManagement: "Zarządzanie komentarzami"
8
9
  }
9
10
  } };
@@ -4,6 +4,7 @@ const locale = { "sheets-thread-comment-ui": {
4
4
  permission: { commentErr: "Você não tem permissão para usar comentários." },
5
5
  menu: {
6
6
  addComment: "Adicionar Comentário",
7
+ openComments: "Abrir comentários",
7
8
  commentManagement: "Gerenciamento de Comentários"
8
9
  }
9
10
  } };
@@ -4,6 +4,7 @@ const locale = { "sheets-thread-comment-ui": {
4
4
  permission: { commentErr: "У вас нет разрешения на использование комментариев." },
5
5
  menu: {
6
6
  addComment: "Добавить комментарий",
7
+ openComments: "Открыть комментарии",
7
8
  commentManagement: "Управление комментариями"
8
9
  }
9
10
  } };
@@ -4,6 +4,7 @@ const locale = { "sheets-thread-comment-ui": {
4
4
  permission: { commentErr: "Nemáte povolenie používať komentáre." },
5
5
  menu: {
6
6
  addComment: "Pridať komentár",
7
+ openComments: "Otvoriť komentáre",
7
8
  commentManagement: "Správa komentárov"
8
9
  }
9
10
  } };
@@ -4,6 +4,7 @@ const locale = { "sheets-thread-comment-ui": {
4
4
  permission: { commentErr: "Bạn không có quyền sử dụng bình luận." },
5
5
  menu: {
6
6
  addComment: "Thêm bình luận",
7
+ openComments: "Mở bình luận",
7
8
  commentManagement: "Quản lý bình luận"
8
9
  }
9
10
  } };
@@ -4,6 +4,7 @@ const locale = { "sheets-thread-comment-ui": {
4
4
  permission: { commentErr: "你没有权限使用评论。" },
5
5
  menu: {
6
6
  addComment: "添加评论",
7
+ openComments: "打开评论",
7
8
  commentManagement: "评论管理"
8
9
  }
9
10
  } };
@@ -4,6 +4,7 @@ const locale = { "sheets-thread-comment-ui": {
4
4
  permission: { commentErr: "你沒有權限使用評論。" },
5
5
  menu: {
6
6
  addComment: "新增評論",
7
+ openComments: "開啟評論",
7
8
  commentManagement: "評論管理"
8
9
  }
9
10
  } };
@@ -4,6 +4,7 @@ const locale = { "sheets-thread-comment-ui": {
4
4
  permission: { commentErr: "你沒有權限使用評論。" },
5
5
  menu: {
6
6
  addComment: "新增評論",
7
+ openComments: "開啟評論",
7
8
  commentManagement: "評論管理"
8
9
  }
9
10
  } };
@@ -14,5 +14,10 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import type { IOperation } from '@univerjs/core';
17
+ import { ThreadCommentPanelService } from '@univerjs/thread-comment-ui';
18
+ import { ISidebarService } from '@univerjs/ui';
17
19
  export declare const ShowAddSheetCommentModalOperation: IOperation;
18
20
  export declare const ToggleSheetCommentPanelOperation: IOperation;
21
+ export declare const OpenSheetCommentPanelOperation: IOperation;
22
+ export declare function openSheetCommentPanel(sidebarService: ISidebarService, panelService: ThreadCommentPanelService): void;
23
+ export declare const AddSheetDrawingCommentOperation: IOperation;
@@ -0,0 +1,17 @@
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 { IOperation } from '@univerjs/core';
17
+ export declare const ShowAddSheetCommentMobileOperation: IOperation;
@@ -0,0 +1,22 @@
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 MobileComponentsController extends Disposable {
19
+ private readonly _componentManager;
20
+ private readonly _iconManager;
21
+ constructor(_componentManager: ComponentManager, _iconManager: IconManager);
22
+ }
@@ -0,0 +1,20 @@
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 { IMenuManagerService } from '@univerjs/ui';
18
+ export declare class SheetsThreadCommentMobileController extends Disposable {
19
+ constructor(menuManagerService: IMenuManagerService);
20
+ }
@@ -0,0 +1,35 @@
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 { Workbook } from '@univerjs/core';
17
+ import type { IRenderContext, IRenderModule } from '@univerjs/engine-render';
18
+ import { ICommandService, RxDisposable, ThemeService } from '@univerjs/core';
19
+ import { IDrawingManagerService } from '@univerjs/drawing';
20
+ import { ThreadCommentModel } from '@univerjs/thread-comment';
21
+ import { ThreadCommentPanelService } from '@univerjs/thread-comment-ui';
22
+ export declare class SheetsThreadCommentDrawingRenderController extends RxDisposable implements IRenderModule {
23
+ private readonly _context;
24
+ private readonly _commandService;
25
+ private readonly _drawingManagerService;
26
+ private readonly _commentModel;
27
+ private readonly _panelService;
28
+ private readonly _themeService;
29
+ private readonly _overlay;
30
+ constructor(_context: IRenderContext<Workbook>, _commandService: ICommandService, _drawingManagerService: IDrawingManagerService, _commentModel: ThreadCommentModel, _panelService: ThreadCommentPanelService, _themeService: ThemeService);
31
+ private _onOverlayPointerDown;
32
+ private _syncOverlay;
33
+ private _getDrawingOutline;
34
+ private _getColors;
35
+ }
@@ -23,4 +23,5 @@ export declare class SheetsThreadCommentPermissionController extends Disposable
23
23
  private readonly _sheetsThreadCommentModel;
24
24
  constructor(_localeService: LocaleService, _commandService: ICommandService, _sheetPermissionCheckController: SheetPermissionCheckController, _sheetsThreadCommentModel: SheetsThreadCommentModel);
25
25
  private _commandExecutedListener;
26
+ private _hasCommentPermission;
26
27
  }
@@ -13,6 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
+ import type { ActiveCommentInfo } from '@univerjs/thread-comment-ui';
16
17
  import { Disposable, ICommandService, IUniverInstanceService } from '@univerjs/core';
17
18
  import { IRenderManagerService } from '@univerjs/engine-render';
18
19
  import { SheetPermissionCheckController, SheetsSelectionsService } from '@univerjs/sheets';
@@ -20,6 +21,7 @@ import { SheetsThreadCommentModel } from '@univerjs/sheets-thread-comment';
20
21
  import { IEditorBridgeService, IMarkSelectionService } from '@univerjs/sheets-ui';
21
22
  import { ThreadCommentPanelService } from '@univerjs/thread-comment-ui';
22
23
  import { SheetsThreadCommentPopupService } from '../services/sheets-thread-comment-popup.service';
24
+ export declare function resolveFocusedSheetComment(activeComment: ActiveCommentInfo, hoveredComment: ActiveCommentInfo, unitId: string | undefined, subUnitId: string | undefined): Exclude<ActiveCommentInfo, null | undefined> | undefined;
23
25
  export declare class SheetsThreadCommentPopupController extends Disposable {
24
26
  private readonly _commandService;
25
27
  private readonly _sheetsThreadCommentPopupService;
@@ -17,5 +17,6 @@ import './global.css';
17
17
  export { ShowAddSheetCommentModalOperation, ToggleSheetCommentPanelOperation, } from './commands/operations/comment.operation';
18
18
  export type { IUniverSheetsThreadCommentUIConfig } from './config/config';
19
19
  export { menuSchema as SheetsThreadCommentUIMenuSchema } from './menu/schema';
20
+ export { UniverSheetsThreadCommentMobileUIPlugin } from './mobile-plugin';
20
21
  export { UniverSheetsThreadCommentUIPlugin } from './plugin';
21
22
  export { SheetsThreadCommentPopupService } from './services/sheets-thread-comment-popup.service';
@@ -23,6 +23,7 @@ declare const locale: {
23
23
  };
24
24
  menu: {
25
25
  addComment: string;
26
+ openComments: string;
26
27
  commentManagement: string;
27
28
  };
28
29
  };
@@ -16,11 +16,21 @@
16
16
  import type { IAccessor } from '@univerjs/core';
17
17
  import type { IShortcutItem } from '@univerjs/ui';
18
18
  import { MenuItemType } from '@univerjs/ui';
19
+ export declare const drawingCommentMenuFactory: (accessor: IAccessor) => {
20
+ id: string;
21
+ type: MenuItemType;
22
+ icon: string;
23
+ title: string;
24
+ tooltip: string;
25
+ hidden$: import("rxjs").Observable<boolean>;
26
+ disabled$: import("rxjs").Observable<boolean>;
27
+ };
19
28
  export declare const threadCommentMenuFactory: (accessor: IAccessor) => {
20
29
  id: string;
21
30
  type: MenuItemType;
22
31
  icon: string;
23
32
  title: string;
33
+ tooltip: string;
24
34
  hidden$: import("rxjs").Observable<boolean>;
25
35
  disabled$: import("rxjs").Observable<boolean>;
26
36
  };
@@ -28,6 +38,7 @@ export declare const threadPanelMenuFactory: (accessor: IAccessor) => {
28
38
  id: string;
29
39
  type: MenuItemType;
30
40
  icon: string;
41
+ title: string;
31
42
  tooltip: string;
32
43
  disabled$: import("rxjs").Observable<boolean>;
33
44
  hidden$: import("rxjs").Observable<boolean>;
@@ -0,0 +1,35 @@
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 { IAccessor } from '@univerjs/core';
17
+ import type { LocaleKey } from '../locale/types';
18
+ import { MenuItemType } from '@univerjs/ui';
19
+ export declare function getMobileThreadCommentMenuTitle(accessor: IAccessor): LocaleKey;
20
+ export declare const mobileThreadCommentMenuFactory: (accessor: IAccessor) => {
21
+ id: string;
22
+ type: MenuItemType;
23
+ icon: string;
24
+ title: string;
25
+ hidden$: import("rxjs").Observable<boolean>;
26
+ disabled$: import("rxjs").Observable<boolean>;
27
+ };
28
+ export declare const mobileContextThreadCommentMenuFactory: (accessor: IAccessor) => {
29
+ title: "sheets-thread-comment-ui.panel.title" | "sheets-thread-comment-ui.menu.addComment" | "sheets-thread-comment-ui.menu.openComments" | "sheets-thread-comment-ui.menu.commentManagement" | "sheets-thread-comment-ui.permission.commentErr";
30
+ id: string;
31
+ type: MenuItemType;
32
+ icon: string;
33
+ hidden$: import("rxjs").Observable<boolean>;
34
+ disabled$: import("rxjs").Observable<boolean>;
35
+ };
@@ -0,0 +1,17 @@
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 { MenuSchemaType } from '@univerjs/ui';
17
+ export declare const mobileMenuSchema: MenuSchemaType;
@@ -0,0 +1,31 @@
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 { IUniverSheetsThreadCommentUIConfig } from './config/config';
17
+ import { ICommandService, IConfigService, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
18
+ export declare class UniverSheetsThreadCommentMobileUIPlugin extends Plugin {
19
+ private readonly _config;
20
+ protected _injector: Injector;
21
+ private readonly _commandService;
22
+ private readonly _configService;
23
+ static pluginName: string;
24
+ static packageName: string;
25
+ static version: string;
26
+ static type: UniverInstanceType;
27
+ constructor(_config: Partial<IUniverSheetsThreadCommentUIConfig> | undefined, _injector: Injector, _commandService: ICommandService, _configService: IConfigService);
28
+ onStarting(): void;
29
+ onReady(): void;
30
+ onRendered(): void;
31
+ }
@@ -15,16 +15,18 @@
15
15
  */
16
16
  import type { IUniverSheetsThreadCommentUIConfig } from './config/config';
17
17
  import { ICommandService, IConfigService, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
18
+ import { IRenderManagerService } from '@univerjs/engine-render';
18
19
  export declare class UniverSheetsThreadCommentUIPlugin extends Plugin {
19
20
  private readonly _config;
20
21
  protected _injector: Injector;
21
22
  protected _commandService: ICommandService;
23
+ private readonly _renderManagerService;
22
24
  private readonly _configService;
23
25
  static pluginName: string;
24
26
  static packageName: string;
25
27
  static version: string;
26
28
  static type: UniverInstanceType;
27
- constructor(_config: Partial<IUniverSheetsThreadCommentUIConfig> | undefined, _injector: Injector, _commandService: ICommandService, _configService: IConfigService);
29
+ constructor(_config: Partial<IUniverSheetsThreadCommentUIConfig> | undefined, _injector: Injector, _commandService: ICommandService, _renderManagerService: IRenderManagerService, _configService: IConfigService);
28
30
  onStarting(): void;
29
31
  onReady(): void;
30
32
  onRendered(): void;
@@ -0,0 +1,31 @@
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 { Nullable } from '@univerjs/core';
17
+ import { Disposable } from '@univerjs/core';
18
+ export interface IMobileSheetCommentDraft {
19
+ unitId: string;
20
+ subUnitId: string;
21
+ row: number;
22
+ column: number;
23
+ }
24
+ export declare class MobileSheetCommentDraftService extends Disposable {
25
+ private readonly _draft$;
26
+ readonly draft$: import("rxjs").Observable<Nullable<IMobileSheetCommentDraft>>;
27
+ constructor();
28
+ get draft(): Nullable<IMobileSheetCommentDraft>;
29
+ place(draft: IMobileSheetCommentDraft): void;
30
+ cancel(): void;
31
+ }
@@ -15,4 +15,5 @@
15
15
  */
16
16
  export declare const SHEETS_THREAD_COMMENT_MODAL = "univer.sheet.thread-comment-modal";
17
17
  export declare const SHEETS_THREAD_COMMENT_PANEL = "univer.sheet.thread-comment-panel";
18
+ export declare const SHOW_ADD_SHEET_COMMENT_OPERATION_ID = "sheet.operation.show-comment-modal";
18
19
  export declare const PLUGIN_NAME = "SHEET_THREAD_COMMENT_UI_PLUGIN";
@@ -13,4 +13,8 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- export declare const SheetsThreadCommentPanel: () => import("react").JSX.Element;
16
+ import { ThreadCommentPanel } from '@univerjs/thread-comment-ui';
17
+ export interface ISheetsThreadCommentPanelProps {
18
+ ThreadCommentPanelComponent?: typeof ThreadCommentPanel;
19
+ }
20
+ export declare const SheetsThreadCommentPanel: ({ ThreadCommentPanelComponent, }?: ISheetsThreadCommentPanelProps) => import("react").JSX.Element;
@@ -0,0 +1,16 @@
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
+ export declare function MobileSheetsThreadCommentPanel(): import("react").JSX.Element;