@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/cjs/index.development.js +2 -9
- package/dist/cjs/index.development.js.map +1 -1
- package/dist/cjs/index.js +2 -9
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/index.production.js +2 -9
- package/dist/cjs/index.production.js.map +1 -1
- package/dist/esm/index.development.js +2 -9
- package/dist/esm/index.development.js.map +1 -1
- package/dist/esm/index.js +2 -9
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index.production.js +2 -9
- package/dist/esm/index.production.js.map +1 -1
- package/dist/index.js +2 -9
- package/dist/simulator/simulator.d.ts +0 -1
- package/package.json +4 -3
- package/CHANGELOG.md +0 -19
|
@@ -7142,9 +7142,7 @@ let Node$1 = class Node {
|
|
|
7142
7142
|
...extras
|
|
7143
7143
|
} = data;
|
|
7144
7144
|
this.props.import(props, extras);
|
|
7145
|
-
|
|
7146
|
-
this._children?.import(children, checkId);
|
|
7147
|
-
}
|
|
7145
|
+
this._children?.import(children, checkId);
|
|
7148
7146
|
}
|
|
7149
7147
|
export(stage = TRANSFORM_STAGE.SAVE) {
|
|
7150
7148
|
const baseSchema = {
|
|
@@ -7787,8 +7785,6 @@ class Document {
|
|
|
7787
7785
|
if (node.isRoot) return;
|
|
7788
7786
|
this.internalRemoveNode(node, true);
|
|
7789
7787
|
});
|
|
7790
|
-
this.remove();
|
|
7791
|
-
this.id = schema?.docId ?? uniqueId('doc');
|
|
7792
7788
|
if (schema) {
|
|
7793
7789
|
this.rootNode?.import(schema, checkId);
|
|
7794
7790
|
this._blank = false;
|
|
@@ -8448,9 +8444,6 @@ class Simulator {
|
|
|
8448
8444
|
get requestHandlersMap() {
|
|
8449
8445
|
return this.get('requestHandlersMap') || null;
|
|
8450
8446
|
}
|
|
8451
|
-
get thisRequiredInJSE() {
|
|
8452
|
-
return this.editor.get('thisRequiredInJSE') ?? true;
|
|
8453
|
-
}
|
|
8454
8447
|
get enableStrictNotFoundMode() {
|
|
8455
8448
|
return this.editor.get('enableStrictNotFoundMode') ?? false;
|
|
8456
8449
|
}
|
|
@@ -8578,6 +8571,7 @@ class Simulator {
|
|
|
8578
8571
|
}
|
|
8579
8572
|
this._renderer?.run();
|
|
8580
8573
|
this.setupEvents();
|
|
8574
|
+
clipboard.injectCopyPaster(this._contentDocument);
|
|
8581
8575
|
}
|
|
8582
8576
|
getComponent(componentName) {
|
|
8583
8577
|
return this._components[componentName];
|
|
@@ -8594,7 +8588,6 @@ class Simulator {
|
|
|
8594
8588
|
setupEvents() {
|
|
8595
8589
|
this.setupDragAndClick();
|
|
8596
8590
|
this.setupDetecting();
|
|
8597
|
-
clipboard.injectCopyPaster(this._contentDocument);
|
|
8598
8591
|
}
|
|
8599
8592
|
setupDragAndClick() {
|
|
8600
8593
|
const {
|