@rainbow-oh/yee-c 0.14.4 → 0.14.5

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.
@@ -105,15 +105,15 @@ var FormStore = class {
105
105
  initialValues,
106
106
  callbacks
107
107
  }) => {
108
+ if (callbacks) {
109
+ this.setCallbacks(callbacks);
110
+ }
108
111
  if (!this.initialized) {
109
112
  this.initialized = true;
110
113
  if (initialValues) {
111
114
  this.store = __spreadValues(__spreadValues({}, this.store), initialValues);
112
115
  this.initialValues = JSON.parse(JSON.stringify(initialValues));
113
116
  }
114
- if (callbacks) {
115
- this.setCallbacks(callbacks);
116
- }
117
117
  this.fieldEntities.forEach((entity) => {
118
118
  entity == null ? void 0 : entity.onStoreChange();
119
119
  });
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * @rainbow-oh/yee-c CSS Variables
3
3
  * Auto-generated, do not edit manually
4
- * Generated on 2026-09-23T09:41:24.738Z
4
+ * Generated on 2026-10-08T06:15:24.118Z
5
5
  */
6
6
 
7
7
  /* ========== color.blue.css ========== */
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * @rainbow-oh/yee-c CSS Variables
3
3
  * Auto-generated, do not edit manually
4
- * Generated on 2026-09-23T09:41:24.738Z
4
+ * Generated on 2026-10-08T06:15:24.118Z
5
5
  */
6
6
 
7
7
  /* ========== color.css ========== */
@@ -3,4 +3,4 @@ declare global {
3
3
  __yee_c_version__: string;
4
4
  }
5
5
  }
6
- export declare const version = "0.14.4";
6
+ export declare const version = "0.14.5";
@@ -22,7 +22,7 @@ __export(version_exports, {
22
22
  version: () => version
23
23
  });
24
24
  module.exports = __toCommonJS(version_exports);
25
- var version = "0.14.4";
25
+ var version = "0.14.5";
26
26
  if (typeof window !== "undefined") {
27
27
  window.__yee_c_version__ = version;
28
28
  }
@@ -62,15 +62,19 @@ export var FormStore = /*#__PURE__*/function () {
62
62
  _defineProperty(this, "initialize", function (_ref) {
63
63
  var initialValues = _ref.initialValues,
64
64
  callbacks = _ref.callbacks;
65
+ // callbacks 每次挂载重绑:form 实例可由外层 useForm 持有、跨越 <Form> 卸载/重挂载存活,
66
+ // 若只在此处注册一次,重挂载后 store 仍持旧挂载的 useEvent 闭包,其 ref 已随旧实例
67
+ // 死亡(不再更新),onValuesChange 等会以过期闭包执行。
68
+ if (callbacks) {
69
+ _this.setCallbacks(callbacks);
70
+ }
65
71
  if (!_this.initialized) {
66
72
  _this.initialized = true;
67
73
  if (initialValues) {
68
74
  _this.store = _objectSpread(_objectSpread({}, _this.store), initialValues);
69
75
  _this.initialValues = JSON.parse(JSON.stringify(initialValues));
70
76
  }
71
- if (callbacks) {
72
- _this.setCallbacks(callbacks);
73
- }
77
+
74
78
  // Only refresh field entities, do not notify watchers (no value changes to watch during initialization)
75
79
  _this.fieldEntities.forEach(function (entity) {
76
80
  entity === null || entity === void 0 || entity.onStoreChange();
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * @rainbow-oh/yee-c CSS Variables
3
3
  * Auto-generated, do not edit manually
4
- * Generated on 2026-09-23T09:41:24.738Z
4
+ * Generated on 2026-10-08T06:15:24.118Z
5
5
  */
6
6
 
7
7
  /* ========== color.blue.css ========== */
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * @rainbow-oh/yee-c CSS Variables
3
3
  * Auto-generated, do not edit manually
4
- * Generated on 2026-09-23T09:41:24.738Z
4
+ * Generated on 2026-10-08T06:15:24.118Z
5
5
  */
6
6
 
7
7
  /* ========== color.css ========== */
@@ -3,4 +3,4 @@ declare global {
3
3
  __yee_c_version__: string;
4
4
  }
5
5
  }
6
- export declare const version = "0.14.4";
6
+ export declare const version = "0.14.5";
@@ -1,4 +1,4 @@
1
- export var version = "0.14.4";
1
+ export var version = "0.14.5";
2
2
  if (typeof window !== 'undefined') {
3
3
  window.__yee_c_version__ = version;
4
4
  }