ar-design 0.2.72 → 0.2.73

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.
@@ -95,8 +95,17 @@ export const useValidation = function (data, params, step) {
95
95
  paramsShape(param, currentData);
96
96
  }
97
97
  else {
98
- // Subkey sadece bir seviye ise, doğrudan kullanılır.
99
- paramsShape(param, value?.[param.subkey]);
98
+ if (Array.isArray(value)) {
99
+ // Eğer value bir dizi ise ve subkey sadece bir seviye ise,
100
+ // dizinin her bir elemanına subkey uygulanabilir.
101
+ const extractedValues = value.map((item) => item?.[param.subkey]);
102
+ // Elde edilen değerler topluca paramsShape'e gönderilebilir ya da başka bir şekilde işlenebilir.
103
+ extractedValues.map((extractedValue) => paramsShape(param, extractedValue));
104
+ }
105
+ else {
106
+ // Value bir obje ise, subkey doğrudan kullanılır.
107
+ paramsShape(param, value?.[param.subkey]);
108
+ }
100
109
  }
101
110
  }
102
111
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ar-design",
3
- "version": "0.2.72",
3
+ "version": "0.2.73",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",