@easy-editor/react-renderer 0.0.14 → 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/index.js CHANGED
@@ -1757,11 +1757,14 @@ function baseRendererFactory() {
1757
1757
  * execute method in schema.lifeCycles
1758
1758
  */
1759
1759
  __executeLifeCycleMethod = (method, args) => {
1760
- const {
1761
- engine
1762
- } = this.context;
1763
- if (!engine.props.enableStrictNotFoundMode) {
1764
- return;
1760
+ // construct 场景下,跳过判断
1761
+ if (this.context) {
1762
+ const {
1763
+ engine
1764
+ } = this.context;
1765
+ if (!engine.props.excuteLifeCycleInDesignMode) {
1766
+ return;
1767
+ }
1765
1768
  }
1766
1769
  executeLifeCycleMethod(this, this.props.__schema, method, args);
1767
1770
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easy-editor/react-renderer",
3
- "version": "0.0.14",
3
+ "version": "0.0.15",
4
4
  "description": "React Renderer package for EasyEditor.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",