@easy-editor/core 1.0.1 → 1.0.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/index.cjs CHANGED
@@ -8786,7 +8786,7 @@ class Simulator {
8786
8786
  return this.get('designMode') || 'design';
8787
8787
  }
8788
8788
  get dataSourceEngine() {
8789
- return this.get('dataSourceEngine');
8789
+ return config.get('dataSourceEngine');
8790
8790
  }
8791
8791
  get enableStrictNotFoundMode() {
8792
8792
  return config.get('enableStrictNotFoundMode') ?? false;
@@ -12068,7 +12068,7 @@ const destroy = async () => {
12068
12068
  logger.info('Engine destruction successfully');
12069
12069
  };
12070
12070
 
12071
- const version = '1.0.1';
12071
+ const version = '1.0.2';
12072
12072
  config.set('VERSION', version);
12073
12073
  console.log(`%c EasyEditor %c v${version} `, 'padding: 2px 1px; border-radius: 3px 0 0 3px; color: #fff; background: #5584ff; font-weight: bold;', 'padding: 2px 1px; border-radius: 0 3px 3px 0; color: #fff; background: #42c02e; font-weight: bold;');
12074
12074
 
package/dist/index.js CHANGED
@@ -8784,7 +8784,7 @@ class Simulator {
8784
8784
  return this.get('designMode') || 'design';
8785
8785
  }
8786
8786
  get dataSourceEngine() {
8787
- return this.get('dataSourceEngine');
8787
+ return config.get('dataSourceEngine');
8788
8788
  }
8789
8789
  get enableStrictNotFoundMode() {
8790
8790
  return config.get('enableStrictNotFoundMode') ?? false;
@@ -12066,7 +12066,7 @@ const destroy = async () => {
12066
12066
  logger.info('Engine destruction successfully');
12067
12067
  };
12068
12068
 
12069
- const version = '1.0.1';
12069
+ const version = '1.0.2';
12070
12070
  config.set('VERSION', version);
12071
12071
  console.log(`%c EasyEditor %c v${version} `, 'padding: 2px 1px; border-radius: 3px 0 0 3px; color: #fff; background: #5584ff; font-weight: bold;', 'padding: 2px 1px; border-radius: 0 3px 3px 0; color: #fff; background: #42c02e; font-weight: bold;');
12072
12072
 
@@ -16,7 +16,6 @@ export interface SimulatorProps {
16
16
  designMode?: DesignMode;
17
17
  device?: Device;
18
18
  deviceClassName?: string;
19
- dataSourceEngine?: DataSourceEngine;
20
19
  [key: string]: any;
21
20
  }
22
21
  export interface DeviceStyleProps {
@@ -69,6 +69,10 @@ export interface RootSchema extends NodeSchema {
69
69
  * 样式文件
70
70
  */
71
71
  css?: string;
72
+ /**
73
+ * 异步数据源配置
74
+ */
75
+ dataSource?: DataSource;
72
76
  }
73
77
  export interface NodeSchema {
74
78
  id?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easy-editor/core",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "A cross-framework low-code engine with scale-out design",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",