@superdoc-dev/template-builder 1.1.0-next.9 → 1.2.0-next.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.
- package/README.md +18 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +987 -1102
- package/dist/types.d.ts +11 -0
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { SuperDoc } from 'superdoc';
|
|
2
|
+
/** Field definition for template builder */
|
|
2
3
|
export interface FieldDefinition {
|
|
3
4
|
id: string;
|
|
4
5
|
label: string;
|
|
@@ -7,6 +8,7 @@ export interface FieldDefinition {
|
|
|
7
8
|
mode?: 'inline' | 'block';
|
|
8
9
|
group?: string;
|
|
9
10
|
}
|
|
11
|
+
/** Field instance in a template document */
|
|
10
12
|
export interface TemplateField {
|
|
11
13
|
id: string | number;
|
|
12
14
|
alias: string;
|
|
@@ -99,6 +101,15 @@ export interface SuperDocTemplateBuilderProps {
|
|
|
99
101
|
menu?: MenuConfig;
|
|
100
102
|
list?: ListConfig;
|
|
101
103
|
toolbar?: boolean | string | ToolbarConfig;
|
|
104
|
+
/** Content Security Policy nonce for dynamically injected styles */
|
|
105
|
+
cspNonce?: string;
|
|
106
|
+
/** Telemetry configuration for SuperDoc */
|
|
107
|
+
telemetry?: {
|
|
108
|
+
enabled: boolean;
|
|
109
|
+
metadata?: Record<string, any>;
|
|
110
|
+
};
|
|
111
|
+
/** License key for SuperDoc */
|
|
112
|
+
licenseKey?: string;
|
|
102
113
|
onReady?: () => void;
|
|
103
114
|
onTrigger?: (event: TriggerEvent) => void;
|
|
104
115
|
onFieldInsert?: (field: TemplateField) => void;
|