@flowerforce/flower-react 3.1.2-beta.0 → 3.1.2-beta.1
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/README.md +11 -1
- package/dist/index.cjs.js +691 -1079
- package/dist/index.esm.js +691 -1079
- package/dist/src/components/Flower.d.ts +7 -1
- package/package.json +2 -2
@@ -1,9 +1,15 @@
|
|
1
1
|
import React, { PropsWithChildren } from 'react';
|
2
|
+
type FlowerInitalState = {
|
3
|
+
startId?: string;
|
4
|
+
current?: string;
|
5
|
+
history?: string[];
|
6
|
+
};
|
2
7
|
type FlowerClientProps = PropsWithChildren & {
|
3
8
|
name: string;
|
4
9
|
destroyOnUnmount?: boolean;
|
5
10
|
startId?: string | null;
|
6
11
|
initialData?: any;
|
12
|
+
initialState?: FlowerInitalState;
|
7
13
|
};
|
8
|
-
declare const component: React.MemoExoticComponent<({ children, name, destroyOnUnmount, startId, initialData }: FlowerClientProps) => React.JSX.Element | null>;
|
14
|
+
declare const component: React.MemoExoticComponent<({ children, name, destroyOnUnmount, startId, initialData, initialState }: FlowerClientProps) => React.JSX.Element | null>;
|
9
15
|
export default component;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@flowerforce/flower-react",
|
3
|
-
"version": "3.1.2-beta.
|
3
|
+
"version": "3.1.2-beta.1",
|
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": "
|
37
|
+
"@flowerforce/flower-core": "*",
|
38
38
|
"@reduxjs/toolkit": "^2.2.4",
|
39
39
|
"lodash": "^4.17.21",
|
40
40
|
"react-redux": "^9.1.2",
|