@flowerforce/flower-react 3.7.2 → 3.7.3-beta.0
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/dist/index.cjs.js +18 -4
- package/dist/index.esm.js +18 -4
- package/package.json +2 -2
package/dist/index.cjs.js
CHANGED
|
@@ -466,10 +466,17 @@ function Wrapper$1({ Component, id, flowName, currentNode, validate, asyncDeboun
|
|
|
466
466
|
flowName: flowNameFromPath,
|
|
467
467
|
id,
|
|
468
468
|
value: val,
|
|
469
|
-
dirty:
|
|
469
|
+
dirty: !isEqual(val, defaultValue)
|
|
470
470
|
}
|
|
471
471
|
});
|
|
472
|
-
}, [
|
|
472
|
+
}, [
|
|
473
|
+
flowNameFromPath,
|
|
474
|
+
id,
|
|
475
|
+
dispatch,
|
|
476
|
+
setCustomAsyncErrors,
|
|
477
|
+
asyncValidate,
|
|
478
|
+
asyncWaitingError
|
|
479
|
+
]);
|
|
473
480
|
const onBlurInternal = React.useCallback((e) => {
|
|
474
481
|
setTouched(true);
|
|
475
482
|
setFocus(false);
|
|
@@ -495,7 +502,14 @@ function Wrapper$1({ Component, id, flowName, currentNode, validate, asyncDeboun
|
|
|
495
502
|
setTouched(true);
|
|
496
503
|
debouncedValidation(value);
|
|
497
504
|
}
|
|
498
|
-
}, [
|
|
505
|
+
}, [
|
|
506
|
+
asyncValidate,
|
|
507
|
+
asyncInitialError,
|
|
508
|
+
value,
|
|
509
|
+
debouncedValidation,
|
|
510
|
+
setTouched,
|
|
511
|
+
hidden
|
|
512
|
+
]);
|
|
499
513
|
React.useEffect(() => {
|
|
500
514
|
if (onUpdate) {
|
|
501
515
|
onUpdate(value);
|
|
@@ -592,7 +606,7 @@ function Wrapper$1({ Component, id, flowName, currentNode, validate, asyncDeboun
|
|
|
592
606
|
dirty,
|
|
593
607
|
hidden,
|
|
594
608
|
isValidating,
|
|
595
|
-
isSubmitted
|
|
609
|
+
isSubmitted
|
|
596
610
|
}), [
|
|
597
611
|
props,
|
|
598
612
|
id,
|
package/dist/index.esm.js
CHANGED
|
@@ -464,10 +464,17 @@ function Wrapper$1({ Component, id, flowName, currentNode, validate, asyncDeboun
|
|
|
464
464
|
flowName: flowNameFromPath,
|
|
465
465
|
id,
|
|
466
466
|
value: val,
|
|
467
|
-
dirty:
|
|
467
|
+
dirty: !isEqual(val, defaultValue)
|
|
468
468
|
}
|
|
469
469
|
});
|
|
470
|
-
}, [
|
|
470
|
+
}, [
|
|
471
|
+
flowNameFromPath,
|
|
472
|
+
id,
|
|
473
|
+
dispatch,
|
|
474
|
+
setCustomAsyncErrors,
|
|
475
|
+
asyncValidate,
|
|
476
|
+
asyncWaitingError
|
|
477
|
+
]);
|
|
471
478
|
const onBlurInternal = useCallback((e) => {
|
|
472
479
|
setTouched(true);
|
|
473
480
|
setFocus(false);
|
|
@@ -493,7 +500,14 @@ function Wrapper$1({ Component, id, flowName, currentNode, validate, asyncDeboun
|
|
|
493
500
|
setTouched(true);
|
|
494
501
|
debouncedValidation(value);
|
|
495
502
|
}
|
|
496
|
-
}, [
|
|
503
|
+
}, [
|
|
504
|
+
asyncValidate,
|
|
505
|
+
asyncInitialError,
|
|
506
|
+
value,
|
|
507
|
+
debouncedValidation,
|
|
508
|
+
setTouched,
|
|
509
|
+
hidden
|
|
510
|
+
]);
|
|
497
511
|
useEffect(() => {
|
|
498
512
|
if (onUpdate) {
|
|
499
513
|
onUpdate(value);
|
|
@@ -590,7 +604,7 @@ function Wrapper$1({ Component, id, flowName, currentNode, validate, asyncDeboun
|
|
|
590
604
|
dirty,
|
|
591
605
|
hidden,
|
|
592
606
|
isValidating,
|
|
593
|
-
isSubmitted
|
|
607
|
+
isSubmitted
|
|
594
608
|
}), [
|
|
595
609
|
props,
|
|
596
610
|
id,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flowerforce/flower-react",
|
|
3
|
-
"version": "3.7.
|
|
3
|
+
"version": "3.7.3-beta.0",
|
|
4
4
|
"description": "FlowerJS components, hooks and utils for React.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"typescript": "^5.4.5"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@flowerforce/flower-core": "3.5.
|
|
37
|
+
"@flowerforce/flower-core": "3.5.3-beta.0",
|
|
38
38
|
"@reduxjs/toolkit": "^2.2.4",
|
|
39
39
|
"lodash": "^4.17.21",
|
|
40
40
|
"react-redux": "^9.1.2",
|