@servicetitan/dte-unlayer 0.83.0 → 0.85.0

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.
@@ -9,6 +9,9 @@ export const schemaIsAvailableType = (type: string): type is SchemaNodeAvailable
9
9
 
10
10
  export interface SchemaFieldBaseOptions {
11
11
  placeholder?: any;
12
+ description?: any;
13
+ sampleData?: any;
14
+ showInEditor?: boolean;
12
15
  }
13
16
 
14
17
  interface SchemaNodeProps {
@@ -77,4 +77,5 @@ export interface CreateUnlayerEditorProps {
77
77
  hideAllTools?: boolean;
78
78
  hideContentControls?: boolean;
79
79
  hideBodyMenuItem?: boolean;
80
+ enableHTMLEditing?: boolean;
80
81
  }
package/src/unlayer.tsx CHANGED
@@ -136,6 +136,7 @@ export const createUnlayerEditor = (
136
136
  customJS,
137
137
  eSignFieldTypes,
138
138
  eSignRecipients,
139
+ enableHTMLEditing,
139
140
  hideAllTools,
140
141
  hideBodyMenuItem,
141
142
  hideContentControls,
@@ -253,7 +254,7 @@ export const createUnlayerEditor = (
253
254
  },
254
255
  tools: {
255
256
  'button': { enabled: false },
256
- 'html': { enabled: false },
257
+ 'html': { enabled: enableHTMLEditing },
257
258
  'menu': { enabled: false },
258
259
  'form': { enabled: false },
259
260
  ...(noCoreTools