@wibetter/json-editor 5.1.25 → 5.1.27

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/lib/index.css CHANGED
@@ -1,8 +1,8 @@
1
1
  /*!
2
- * @wibetter/json-editor v5.1.25
2
+ * @wibetter/json-editor v5.1.27
3
3
  * author: wibetter
4
4
  * build tool: AKFun
5
- * build time: Fri Jan 24 2025 18:27:16 GMT+0800 (中国标准时间)
5
+ * build time: Fri Jan 24 2025 23:22:17 GMT+0800 (中国标准时间)
6
6
  * build tool info: https://github.com/wibetter/akfun
7
7
  */
8
8
  /*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
package/lib/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  /*!
2
- * @wibetter/json-editor v5.1.25
2
+ * @wibetter/json-editor v5.1.27
3
3
  * author: wibetter
4
4
  * build tool: AKFun
5
- * build time: Fri Jan 24 2025 18:27:16 GMT+0800 (中国标准时间)
5
+ * build time: Fri Jan 24 2025 23:22:17 GMT+0800 (中国标准时间)
6
6
  * build tool info: https://github.com/wibetter/akfun
7
7
  */
8
8
  (function webpackUniversalModuleDefinition(root, factory) {
@@ -362,6 +362,7 @@ var JSONDataEditor = /*#__PURE__*/function (_React$PureComponent) {
362
362
  schemaStore: schemaStore,
363
363
  jsonStore: jsonStore
364
364
  }))), !isEmpty && jsonView && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement($components_JsonView_index__WEBPACK_IMPORTED_MODULE_6__["default"], {
365
+ key: lastUpdateTime + "-" + jsonLastUpdateTime + "-jsonView",
365
366
  jsonData: JSONEditorObj,
366
367
  readOnly: jsonViewReadOnly != null ? jsonViewReadOnly : true,
367
368
  onChange: jsonChange
@@ -7445,7 +7446,9 @@ var JSONEditorStore = (_dec = mobx__WEBPACK_IMPORTED_MODULE_4__.action.bound, _d
7445
7446
  this.initJsonData = (0,$utils_index__WEBPACK_IMPORTED_MODULE_7__.objClone)(this.jsonData); // 备份过滤钱的数据对象
7446
7447
  // 判断当前schema是否为空
7447
7448
  if (jsonSchema) {
7448
- this.jsonData = (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_6__.schema2json)(jsonSchema, jsonData || {});
7449
+ var newJsonData = (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_6__.schema2json)(jsonSchema, jsonData || {});
7450
+ this.jsonData = Object.assign({}, jsonData, newJsonData);
7451
+ // this.jsonData = newJsonData;
7449
7452
  // 记录当前初始化的时间
7450
7453
  this.updateLastTime();
7451
7454
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wibetter/json-editor",
3
- "version": "5.1.25",
3
+ "version": "5.1.27",
4
4
  "description": "JSON数据可视化/JSONEditor, 可视化界面编辑json数据",
5
5
  "keywords": [
6
6
  "json",
package/sdk/index.css CHANGED
@@ -1,8 +1,8 @@
1
1
  /*!
2
- * @wibetter/json-editor v5.1.25
2
+ * @wibetter/json-editor v5.1.26
3
3
  * author: wibetter
4
4
  * build tool: AKFun
5
- * build time: Fri Jan 24 2025 18:27:30 GMT+0800 (中国标准时间)
5
+ * build time: Fri Jan 24 2025 23:21:59 GMT+0800 (中国标准时间)
6
6
  * build tool info: https://github.com/wibetter/akfun
7
7
  */
8
8
  /*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
package/sdk/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  /*!
2
- * @wibetter/json-editor v5.1.25
2
+ * @wibetter/json-editor v5.1.26
3
3
  * author: wibetter
4
4
  * build tool: AKFun
5
- * build time: Fri Jan 24 2025 18:27:30 GMT+0800 (中国标准时间)
5
+ * build time: Fri Jan 24 2025 23:21:59 GMT+0800 (中国标准时间)
6
6
  * build tool info: https://github.com/wibetter/akfun
7
7
  */
8
8
  (function webpackUniversalModuleDefinition(root, factory) {
@@ -66444,6 +66444,7 @@ var JSONDataEditor = /*#__PURE__*/function (_React$PureComponent) {
66444
66444
  schemaStore: schemaStore,
66445
66445
  jsonStore: jsonStore
66446
66446
  }))), !isEmpty && jsonView && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement($components_JsonView_index__WEBPACK_IMPORTED_MODULE_5__["default"], {
66447
+ key: lastUpdateTime + "-" + jsonLastUpdateTime + "-jsonView",
66447
66448
  jsonData: JSONEditorObj,
66448
66449
  readOnly: jsonViewReadOnly != null ? jsonViewReadOnly : true,
66449
66450
  onChange: jsonChange
@@ -73378,7 +73379,9 @@ var JSONEditorStore = (_dec = mobx__WEBPACK_IMPORTED_MODULE_4__.action.bound, _d
73378
73379
  this.initJsonData = (0,$utils_index__WEBPACK_IMPORTED_MODULE_6__.objClone)(this.jsonData); // 备份过滤钱的数据对象
73379
73380
  // 判断当前schema是否为空
73380
73381
  if (jsonSchema) {
73381
- this.jsonData = (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_5__.schema2json)(jsonSchema, jsonData || {});
73382
+ var newJsonData = (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_5__.schema2json)(jsonSchema, jsonData || {});
73383
+ this.jsonData = Object.assign({}, jsonData, newJsonData);
73384
+ // this.jsonData = newJsonData;
73382
73385
  // 记录当前初始化的时间
73383
73386
  this.updateLastTime();
73384
73387
  }