@flowerforce/flower-react 3.3.0 → 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,27 @@
|
|
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
|
+
|
13
|
+
## 3.3.1 (2024-08-27)
|
14
|
+
|
15
|
+
|
16
|
+
### 🩹 Fixes
|
17
|
+
|
18
|
+
- rulesOperators example fixed ([f1def97](https://github.com/flowerforce/flower/commit/f1def97))
|
19
|
+
|
20
|
+
|
21
|
+
### 🧱 Updated Dependencies
|
22
|
+
|
23
|
+
- Updated flower-core to 3.2.1
|
24
|
+
|
1
25
|
## 3.3.0 (2024-08-27)
|
2
26
|
|
3
27
|
|
@@ -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;
|
@@ -85,7 +85,7 @@ export type FlowerFieldProps<T extends Record<string, any> = Record<string, any>
|
|
85
85
|
asyncWaitingError?: string;
|
86
86
|
/** An object containing the display rules of that component. When the conditions are not satisfied, the children is hidden.
|
87
87
|
*
|
88
|
-
* Example: rules={{ $and: [{ name: { $
|
88
|
+
* Example: rules={{ $and: [{ name: { $exists: true } }] }}
|
89
89
|
*/
|
90
90
|
rules?: RulesObject<T> | FunctionRule;
|
91
91
|
/** The name of the flow from which read the data
|
@@ -11,11 +11,11 @@ export type FlowerRuleProps = {
|
|
11
11
|
value?: any;
|
12
12
|
/** An object or function containing the display rules of that component. When the conditions are not satisfied, the children is hidden.
|
13
13
|
*
|
14
|
-
* Example: rules={{ $and: [{ name: { $
|
14
|
+
* Example: rules={{ $and: [{ name: { $exists: true } }] }}
|
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
|
@@ -11,7 +11,7 @@ export type FlowerValueProps = {
|
|
11
11
|
value?: any;
|
12
12
|
/** An object containing the display rules of that component. When the conditions are not satisfied, the children is hidden.
|
13
13
|
*
|
14
|
-
* Example: rules={{ $and: [{ name: { $
|
14
|
+
* Example: rules={{ $and: [{ name: { $exists: true } }] }}
|
15
15
|
*/
|
16
16
|
rules?: RulesObject<any> | FunctionRule;
|
17
17
|
/** The FlowerValue's children */
|
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",
|