diff --git a/packages/superdoc/src/core/types/index.js b/packages/superdoc/src/core/types/index.js index b7b50278c2..88d857adc2 100644 --- a/packages/superdoc/src/core/types/index.js +++ b/packages/superdoc/src/core/types/index.js @@ -192,6 +192,7 @@ * @property {string} [markdown] Markdown content to initialize the editor with * @property {boolean} [isDebug=false] Whether to enable debug mode * @property {ViewOptions} [viewOptions] Document view options (OOXML ST_View compatible) + * @property {string} [cspNonce] Content Security Policy nonce for dynamically injected styles */ export {}; diff --git a/packages/template-builder/src/index.tsx b/packages/template-builder/src/index.tsx index 2aeb07e276..a9969ccf8c 100644 --- a/packages/template-builder/src/index.tsx +++ b/packages/template-builder/src/index.tsx @@ -112,6 +112,7 @@ const SuperDocTemplateBuilder = forwardRef { diff --git a/packages/template-builder/src/types.ts b/packages/template-builder/src/types.ts index d09a201feb..74fc13999c 100644 --- a/packages/template-builder/src/types.ts +++ b/packages/template-builder/src/types.ts @@ -110,6 +110,9 @@ export interface SuperDocTemplateBuilderProps { list?: ListConfig; toolbar?: boolean | string | ToolbarConfig; + /** Content Security Policy nonce for dynamically injected styles */ + cspNonce?: string; + // Events onReady?: () => void; onTrigger?: (event: TriggerEvent) => void;