@signalplus/params-about 1.0.26 → 1.0.28-alpha

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.
Files changed (2) hide show
  1. package/lib/es/index.js +8 -5
  2. package/package.json +1 -1
package/lib/es/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Bundle of @signalplus/params-about
3
- * Generated: 2025-11-11
4
- * Version: 1.0.26
3
+ * Generated: 2026-09-23
4
+ * Version: 1.0.28-alpha
5
5
  * License: MIT
6
6
  * Author: 2631541504@qq.com
7
7
  */
@@ -1447,7 +1447,8 @@ var InstrumentsValueList = /*#__PURE__*/function (_PureComponent) {
1447
1447
  var _this$props$value,
1448
1448
  _this2 = this;
1449
1449
 
1450
- this.value = this.props.value || [];
1450
+ // Keep the editable placeholder local instead of mutating the parent's array.
1451
+ this.value = _toConsumableArray(this.props.value || []);
1451
1452
  if (!this.value.length && !this.props.readonly) this.value.push({
1452
1453
  instrument: ''
1453
1454
  });
@@ -1665,7 +1666,8 @@ var TextValueList = /*#__PURE__*/function (_PureComponent) {
1665
1666
  var _this$props$value,
1666
1667
  _this2 = this;
1667
1668
 
1668
- this.value = this.props.value || [];
1669
+ // Keep the editable placeholder local instead of mutating the parent's array.
1670
+ this.value = _toConsumableArray(this.props.value || []);
1669
1671
  if (!this.value.length && !this.props.readonly) this.value.push({
1670
1672
  key: ''
1671
1673
  });
@@ -2435,7 +2437,8 @@ var TenorBucketHandlerList = /*#__PURE__*/function (_PureComponent) {
2435
2437
  var _this$props$value,
2436
2438
  _this2 = this;
2437
2439
 
2438
- this.value = this.props.value || [];
2440
+ // Keep the editable placeholder local instead of mutating the parent's array.
2441
+ this.value = _toConsumableArray(this.props.value || []);
2439
2442
  if (!this.value.length && !this.props.readonly) this.value.push({
2440
2443
  key: ''
2441
2444
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signalplus/params-about",
3
- "version": "1.0.26",
3
+ "version": "1.0.28-alpha",
4
4
  "description": "A description for the module",
5
5
  "main": "./lib/umd/index.js",
6
6
  "module": "./lib/es/index.js",