@flowerforce/flower-react 3.3.3-beta.3 → 3.4.1-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/CHANGELOG.md +12 -0
- package/dist/index.cjs.js +2 -2
- package/dist/index.esm.js +2 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
@@ -1,3 +1,15 @@
|
|
1
|
+
## 3.4.0 (2024-09-16)
|
2
|
+
|
3
|
+
|
4
|
+
### 🚀 Features
|
5
|
+
|
6
|
+
- expose FlowerNavigateActions type ([07fb861](https://github.com/flowerforce/flower/commit/07fb861))
|
7
|
+
|
8
|
+
|
9
|
+
### 🩹 Fixes
|
10
|
+
|
11
|
+
- async validate on change value ([#62](https://github.com/flowerforce/flower/pull/62))
|
12
|
+
|
1
13
|
## 3.3.2 (2024-08-28)
|
2
14
|
|
3
15
|
|
package/dist/index.cjs.js
CHANGED
@@ -406,7 +406,7 @@ function isIntrinsicElement$1(x) {
|
|
406
406
|
return typeof x === 'string';
|
407
407
|
}
|
408
408
|
//TODO make types for wrapper function props
|
409
|
-
function Wrapper$1({ Component, id, flowName, currentNode, validate, asyncDebounce = 0, asyncValidate, asyncInitialError, asyncWaitingError, destroyValue, onBlur
|
409
|
+
function Wrapper$1({ Component, id, flowName, currentNode, validate, asyncDebounce = 0, asyncValidate, asyncInitialError, asyncWaitingError, destroyValue, onBlur, hidden, onUpdate, defaultValue, ...props }) {
|
410
410
|
const dispatch = useDispatch();
|
411
411
|
const [customAsyncErrors, setCustomAsyncErrors] = React.useState(asyncValidate && [asyncInitialError]);
|
412
412
|
const [isValidating, setIsValidating] = React.useState(undefined);
|
@@ -455,7 +455,7 @@ function Wrapper$1({ Component, id, flowName, currentNode, validate, asyncDeboun
|
|
455
455
|
dirty: defaultValue ? !isEqual(val, defaultValue) : true
|
456
456
|
}
|
457
457
|
});
|
458
|
-
}, [flowNameFromPath, id,
|
458
|
+
}, [flowNameFromPath, id, dispatch, setCustomAsyncErrors, asyncValidate, asyncWaitingError]);
|
459
459
|
const onBlurInternal = React.useCallback((e) => {
|
460
460
|
setTouched(true);
|
461
461
|
onBlur && onBlur(e);
|
package/dist/index.esm.js
CHANGED
@@ -404,7 +404,7 @@ function isIntrinsicElement$1(x) {
|
|
404
404
|
return typeof x === 'string';
|
405
405
|
}
|
406
406
|
//TODO make types for wrapper function props
|
407
|
-
function Wrapper$1({ Component, id, flowName, currentNode, validate, asyncDebounce = 0, asyncValidate, asyncInitialError, asyncWaitingError, destroyValue, onBlur
|
407
|
+
function Wrapper$1({ Component, id, flowName, currentNode, validate, asyncDebounce = 0, asyncValidate, asyncInitialError, asyncWaitingError, destroyValue, onBlur, hidden, onUpdate, defaultValue, ...props }) {
|
408
408
|
const dispatch = useDispatch();
|
409
409
|
const [customAsyncErrors, setCustomAsyncErrors] = useState(asyncValidate && [asyncInitialError]);
|
410
410
|
const [isValidating, setIsValidating] = useState(undefined);
|
@@ -453,7 +453,7 @@ function Wrapper$1({ Component, id, flowName, currentNode, validate, asyncDeboun
|
|
453
453
|
dirty: defaultValue ? !isEqual(val, defaultValue) : true
|
454
454
|
}
|
455
455
|
});
|
456
|
-
}, [flowNameFromPath, id,
|
456
|
+
}, [flowNameFromPath, id, dispatch, setCustomAsyncErrors, asyncValidate, asyncWaitingError]);
|
457
457
|
const onBlurInternal = useCallback((e) => {
|
458
458
|
setTouched(true);
|
459
459
|
onBlur && onBlur(e);
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@flowerforce/flower-react",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.4.1-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.2.3-beta.
|
37
|
+
"@flowerforce/flower-core": "3.2.3-beta.4",
|
38
38
|
"@reduxjs/toolkit": "^2.2.4",
|
39
39
|
"lodash": "^4.17.21",
|
40
40
|
"react-redux": "^9.1.2",
|