@superdoc-dev/template-builder 1.1.0 → 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 -1104
- package/dist/types.d.ts +9 -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;
|
|
@@ -101,6 +103,13 @@ export interface SuperDocTemplateBuilderProps {
|
|
|
101
103
|
toolbar?: boolean | string | ToolbarConfig;
|
|
102
104
|
/** Content Security Policy nonce for dynamically injected styles */
|
|
103
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;
|
|
104
113
|
onReady?: () => void;
|
|
105
114
|
onTrigger?: (event: TriggerEvent) => void;
|
|
106
115
|
onFieldInsert?: (field: TemplateField) => void;
|