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(thread-comment): export sheet thread comment plugin constant (#4732)
Jelf83c0af9a0420
diff --git a/packages/thread-comment/src/controllers/tc-resource.controller.ts b/packages/thread-comment/src/controllers/tc-resource.controller.tsindex 5d2433dcb3..b4fe1a3ec3 100644--- a/packages/thread-comment/src/controllers/tc-resource.controller.ts+++ b/packages/thread-comment/src/controllers/tc-resource.controller.ts@@ -23,6 +23,8 @@ import { TC_PLUGIN_NAME } from '../types/const';export type UnitThreadCommentJSON = Record<string, IThreadComment[]>;+export const SHEET_UNIVER_THREAD_COMMENT_PLUGIN = `SHEET_${TC_PLUGIN_NAME}`;+export class ThreadCommentResourceController extends Disposable {constructor(@IResourceManagerService private readonly _resourceManagerService: IResourceManagerService,@@ -64,7 +66,7 @@ export class ThreadCommentResourceController extends Disposable {this.disposeWithMe(this._resourceManagerService.registerPluginResource({- pluginName: `SHEET_${TC_PLUGIN_NAME}`,+ pluginName: SHEET_UNIVER_THREAD_COMMENT_PLUGIN,businesses: [UniverType.UNIVER_SHEET, UniverType.UNIVER_DOC],toJson: (unitID) => toJson(unitID),parseJson: (json) => parseJson(json),diff --git a/packages/thread-comment/src/index.ts b/packages/thread-comment/src/index.tsindex b0de77b230..4aba8c70a8 100644--- a/packages/thread-comment/src/index.ts+++ b/packages/thread-comment/src/index.ts@@ -15,7 +15,7 @@*/export { type CommentUpdate, type IThreadInfo, ThreadCommentModel } from './models/thread-comment.model';-export { ThreadCommentResourceController } from './controllers/tc-resource.controller';+export { SHEET_UNIVER_THREAD_COMMENT_PLUGIN, ThreadCommentResourceController } from './controllers/tc-resource.controller';export { TC_PLUGIN_NAME } from './types/const';export type { IBaseComment, IThreadComment, IThreadCommentMention } from './types/interfaces/i-thread-comment';export { UniverThreadCommentPlugin } from './plugin';