@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/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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superdoc-dev/template-builder",
3
- "version": "1.1.0",
3
+ "version": "1.2.0-next.1",
4
4
  "description": "React template builder component for SuperDoc",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",