@flowerforce/flower-react 3.3.1 → 3.3.2
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
CHANGED
@@ -1,3 +1,15 @@
|
|
1
|
+
## 3.3.2 (2024-08-28)
|
2
|
+
|
3
|
+
|
4
|
+
### 🩹 Fixes
|
5
|
+
|
6
|
+
- resolves RulesObject type and circular dependency ([894eced](https://github.com/flowerforce/flower/commit/894eced))
|
7
|
+
|
8
|
+
|
9
|
+
### 🧱 Updated Dependencies
|
10
|
+
|
11
|
+
- Updated flower-core to 3.2.2
|
12
|
+
|
1
13
|
## 3.3.1 (2024-08-27)
|
2
14
|
|
3
15
|
|
@@ -1,4 +1,4 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { FlowerFieldProps } from './types/FlowerField';
|
3
|
-
declare const component: React.MemoExoticComponent<({ id, validate, asyncValidate, asyncDebounce, asyncInitialError, asyncWaitingError, rules, alwaysDisplay, value, children, defaultValue, destroyValue, flowName, onUpdate }: FlowerFieldProps
|
3
|
+
declare const component: React.MemoExoticComponent<({ id, validate, asyncValidate, asyncDebounce, asyncInitialError, asyncWaitingError, rules, alwaysDisplay, value, children, defaultValue, destroyValue, flowName, onUpdate }: FlowerFieldProps) => React.JSX.Element | (string | number | Iterable<React.ReactNode> | React.JSX.Element)[] | null | undefined>;
|
4
4
|
export default component;
|
@@ -15,7 +15,7 @@ export type FlowerRuleProps = {
|
|
15
15
|
* Example: rules={(state) => state... === true}
|
16
16
|
* if missing it is always visible
|
17
17
|
*/
|
18
|
-
rules?: RulesObject<any
|
18
|
+
rules?: RulesObject<Record<string, any>> | FunctionRule;
|
19
19
|
/** The name of the flow from which read the data
|
20
20
|
*
|
21
21
|
* - note: the default value is the name of the flow where the component is used
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@flowerforce/flower-react",
|
3
|
-
"version": "3.3.
|
3
|
+
"version": "3.3.2",
|
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.
|
37
|
+
"@flowerforce/flower-core": "3.2.2",
|
38
38
|
"@reduxjs/toolkit": "^2.2.4",
|
39
39
|
"lodash": "^4.17.21",
|
40
40
|
"react-redux": "^9.1.2",
|