@wibetter/json-editor 5.1.16 → 5.1.18

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.16
2
+ * @wibetter/json-editor v5.1.18
3
3
  * author: wibetter
4
4
  * build tool: AKFun
5
- * build time: Tue Jan 21 2025 18:00:43 GMT+0800 (中国标准时间)
5
+ * build time: Wed Jan 22 2025 12:03: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.16
2
+ * @wibetter/json-editor v5.1.18
3
3
  * author: wibetter
4
4
  * build tool: AKFun
5
- * build time: Tue Jan 21 2025 18:00:43 GMT+0800 (中国标准时间)
5
+ * build time: Wed Jan 22 2025 12:03:17 GMT+0800 (中国标准时间)
6
6
  * build tool info: https://github.com/wibetter/akfun
7
7
  */
8
8
  (function webpackUniversalModuleDefinition(root, factory) {
@@ -8201,7 +8201,6 @@ function getObjectTitle(objItem) {
8201
8201
  return objItem;
8202
8202
  }
8203
8203
  }
8204
- ;
8205
8204
 
8206
8205
  /**
8207
8206
  * options 数据处理
@@ -8212,14 +8211,20 @@ function getWrapOptions(options) {
8212
8211
  var curOptions = [];
8213
8212
  if ((0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_0__.isArray)(options)) {
8214
8213
  options.forEach(function (option) {
8215
- if ((0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_0__.isObject)(option)) {
8214
+ curOptions.push({
8215
+ label: getObjectTitle(option),
8216
+ value: option // isObject(option.value) ? option.value : option,
8217
+ });
8218
+ /*
8219
+ if (isObject(option)) {
8216
8220
  curOptions.push({
8217
8221
  label: getObjectTitle(option),
8218
- value: (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_0__.isObject)(option.value) ? option.value : option
8222
+ value: option // isObject(option.value) ? option.value : option,
8219
8223
  });
8220
8224
  } else {
8221
8225
  curOptions.push(option);
8222
8226
  }
8227
+ */
8223
8228
  });
8224
8229
  }
8225
8230
  return curOptions;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wibetter/json-editor",
3
- "version": "5.1.16",
3
+ "version": "5.1.18",
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.16
2
+ * @wibetter/json-editor v5.1.18
3
3
  * author: wibetter
4
4
  * build tool: AKFun
5
- * build time: Tue Jan 21 2025 18:00:52 GMT+0800 (中国标准时间)
5
+ * build time: Wed Jan 22 2025 12:03:03 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.16
2
+ * @wibetter/json-editor v5.1.18
3
3
  * author: wibetter
4
4
  * build tool: AKFun
5
- * build time: Tue Jan 21 2025 18:00:52 GMT+0800 (中国标准时间)
5
+ * build time: Wed Jan 22 2025 12:03:03 GMT+0800 (中国标准时间)
6
6
  * build tool info: https://github.com/wibetter/akfun
7
7
  */
8
8
  (function webpackUniversalModuleDefinition(root, factory) {
@@ -74497,7 +74497,6 @@ function getObjectTitle(objItem) {
74497
74497
  return objItem;
74498
74498
  }
74499
74499
  }
74500
- ;
74501
74500
 
74502
74501
  /**
74503
74502
  * options 数据处理
@@ -74508,14 +74507,20 @@ function getWrapOptions(options) {
74508
74507
  var curOptions = [];
74509
74508
  if ((0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_0__.isArray)(options)) {
74510
74509
  options.forEach(function (option) {
74511
- if ((0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_0__.isObject)(option)) {
74510
+ curOptions.push({
74511
+ label: getObjectTitle(option),
74512
+ value: option // isObject(option.value) ? option.value : option,
74513
+ });
74514
+ /*
74515
+ if (isObject(option)) {
74512
74516
  curOptions.push({
74513
74517
  label: getObjectTitle(option),
74514
- value: (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_0__.isObject)(option.value) ? option.value : option
74518
+ value: option // isObject(option.value) ? option.value : option,
74515
74519
  });
74516
74520
  } else {
74517
74521
  curOptions.push(option);
74518
74522
  }
74523
+ */
74519
74524
  });
74520
74525
  }
74521
74526
  return curOptions;