@easy-editor/core 0.0.3-alpha.0 → 0.0.3-alpha.2

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/esm/index.js CHANGED
@@ -7140,9 +7140,7 @@ let Node$1 = class Node {
7140
7140
  ...extras
7141
7141
  } = data;
7142
7142
  this.props.import(props, extras);
7143
- if (this.isParental) {
7144
- this._children?.import(children, checkId);
7145
- }
7143
+ this._children?.import(children, checkId);
7146
7144
  }
7147
7145
  export(stage = TRANSFORM_STAGE.SAVE) {
7148
7146
  const baseSchema = {
@@ -7785,8 +7783,6 @@ class Document {
7785
7783
  if (node.isRoot) return;
7786
7784
  this.internalRemoveNode(node, true);
7787
7785
  });
7788
- this.remove();
7789
- this.id = schema?.docId ?? uniqueId('doc');
7790
7786
  if (schema) {
7791
7787
  this.rootNode?.import(schema, checkId);
7792
7788
  this._blank = false;
@@ -8446,9 +8442,6 @@ class Simulator {
8446
8442
  get requestHandlersMap() {
8447
8443
  return this.get('requestHandlersMap') || null;
8448
8444
  }
8449
- get thisRequiredInJSE() {
8450
- return this.editor.get('thisRequiredInJSE') ?? true;
8451
- }
8452
8445
  get enableStrictNotFoundMode() {
8453
8446
  return this.editor.get('enableStrictNotFoundMode') ?? false;
8454
8447
  }
@@ -8576,6 +8569,7 @@ class Simulator {
8576
8569
  }
8577
8570
  this._renderer?.run();
8578
8571
  this.setupEvents();
8572
+ clipboard.injectCopyPaster(this._contentDocument);
8579
8573
  }
8580
8574
  getComponent(componentName) {
8581
8575
  return this._components[componentName];
@@ -8592,7 +8586,6 @@ class Simulator {
8592
8586
  setupEvents() {
8593
8587
  this.setupDragAndClick();
8594
8588
  this.setupDetecting();
8595
- clipboard.injectCopyPaster(this._contentDocument);
8596
8589
  }
8597
8590
  setupDragAndClick() {
8598
8591
  const {