@easy-editor/core 0.0.13 → 0.0.15
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 +12 -3
- package/dist/cjs/index.development.js.map +1 -1
- package/dist/cjs/index.js +12 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/index.production.js +12 -3
- package/dist/cjs/index.production.js.map +1 -1
- package/dist/designer/setting/setting-field.d.ts +2 -0
- package/dist/editor.d.ts +1 -1
- package/dist/esm/index.development.js +12 -3
- package/dist/esm/index.development.js.map +1 -1
- package/dist/esm/index.js +12 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index.production.js +12 -3
- package/dist/esm/index.production.js.map +1 -1
- package/dist/index.js +12 -3
- package/dist/simulator/simulator.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -8440,6 +8440,9 @@ class Simulator {
|
|
|
8440
8440
|
get enableStrictNotFoundMode() {
|
|
8441
8441
|
return this.editor.get('enableStrictNotFoundMode') ?? false;
|
|
8442
8442
|
}
|
|
8443
|
+
get excuteLifeCycleInDesignMode() {
|
|
8444
|
+
return this.editor.get('excuteLifeCycleInDesignMode') ?? false;
|
|
8445
|
+
}
|
|
8443
8446
|
get notFoundComponent() {
|
|
8444
8447
|
return this.editor.get('notFoundComponent') ?? null;
|
|
8445
8448
|
}
|
|
@@ -10065,6 +10068,10 @@ class SettingField extends SettingPropEntry {
|
|
|
10065
10068
|
}
|
|
10066
10069
|
super.setValue(val, isHotValue, extraOptions);
|
|
10067
10070
|
}
|
|
10071
|
+
clearValue() {
|
|
10072
|
+
this.hotValue = null;
|
|
10073
|
+
super.clearValue();
|
|
10074
|
+
}
|
|
10068
10075
|
getHotValue() {
|
|
10069
10076
|
if (this.hotValue) {
|
|
10070
10077
|
return this.hotValue;
|
|
@@ -10080,13 +10087,15 @@ class SettingField extends SettingPropEntry {
|
|
|
10080
10087
|
const value = data;
|
|
10081
10088
|
if (options) {
|
|
10082
10089
|
options.fromSetHotValue = true;
|
|
10090
|
+
options.forceHotValue = true;
|
|
10083
10091
|
} else {
|
|
10084
10092
|
options = {
|
|
10085
|
-
fromSetHotValue: true
|
|
10093
|
+
fromSetHotValue: true,
|
|
10094
|
+
forceHotValue: true
|
|
10086
10095
|
};
|
|
10087
10096
|
}
|
|
10088
|
-
if (this.isUseVariable()) {
|
|
10089
|
-
const oldValue = this.getValue();
|
|
10097
|
+
if (this.isUseVariable() || options?.forceHotValue) {
|
|
10098
|
+
const oldValue = this.getValue() || {};
|
|
10090
10099
|
if (isJSExpression(value)) {
|
|
10091
10100
|
this.setValue({
|
|
10092
10101
|
type: 'JSExpression',
|
|
@@ -34,6 +34,7 @@ export declare class Simulator {
|
|
|
34
34
|
get device(): string;
|
|
35
35
|
get requestHandlersMap(): any;
|
|
36
36
|
get enableStrictNotFoundMode(): any;
|
|
37
|
+
get excuteLifeCycleInDesignMode(): any;
|
|
37
38
|
get notFoundComponent(): any;
|
|
38
39
|
get faultComponent(): any;
|
|
39
40
|
get designMode(): DesignMode;
|