@servicetitan/dte-unlayer 0.35.0 → 0.37.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.
@@ -24,6 +24,7 @@ export interface UnlayerEventConfig {
24
24
  schema?: SchemaObject;
25
25
  generics?: true | string[];
26
26
  genericConfigMode?: boolean;
27
+ isSnapshotMode?: boolean;
27
28
  units?: UnlayerEditorUnit[];
28
29
  }
29
30
 
package/src/store.ts CHANGED
@@ -159,7 +159,7 @@ export class UnlayerStore {
159
159
 
160
160
  if (tool.slug) {
161
161
  delete data.design.counters[`u_content_custom_${tool.slug}`];
162
- delete tool.values._meta;
162
+ delete tool.values._meta.htmlID;
163
163
  }
164
164
 
165
165
  tool.type = realTool.type;
@@ -198,6 +198,7 @@ export class UnlayerStore {
198
198
  schema: this.props.schema,
199
199
  generics: this.props.generics,
200
200
  genericConfigMode: this.props.genericConfigMode,
201
+ isSnapshotMode: this.props.isSnapshotMode,
201
202
  };
202
203
 
203
204
  this.sendMessage('--config', JSON.parse(JSON.stringify(data)));
@@ -55,6 +55,7 @@ export interface CreateUnlayerEditorProps {
55
55
  tools: UnlayerEditorCustomTool[];
56
56
  newSnapshot?: UnlayerEditorTwin;
57
57
  toolTwins?: UnlayerEditorTwin[];
58
+ isSnapshotMode?: boolean;
58
59
  dummyData?: any;
59
60
  schema?: SchemaObject;
60
61
  customCSS?: string | string[] | undefined;