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: add resources in IDocumentData (#1327)
Mr.c339c36b9c7a9
diff --git a/packages/core/src/types/interfaces/i-document-data.ts b/packages/core/src/types/interfaces/i-document-data.tsindex 9b9363b0a9..bc35611618 100644--- a/packages/core/src/types/interfaces/i-document-data.ts+++ b/packages/core/src/types/interfaces/i-document-data.ts@@ -35,6 +35,9 @@ export interface IDocumentData extends IReferenceSource, IExtraModelData {body?: IDocumentBody;documentStyle: IDocumentStyle;settings?: IDocumentSettings;+ // The type of data depends on how the plug-in is defined+ resources?: Array<{ id?: string; name: string; data: string }>;+}export interface IReferenceSource {