@foris/avocado-not-front 4.0.0 → 4.0.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.
|
@@ -5,10 +5,10 @@ import { NextUIResponseData } from '../types/builder.type';
|
|
|
5
5
|
* Custom hook that encapsulates actions related to navigation and data fetching for dynamic UI flows.
|
|
6
6
|
*/
|
|
7
7
|
export declare const useAction: () => {
|
|
8
|
-
getNextUI: (userFlow: string, pageHash: string, entries: any, responseKey: string, showLoading?: boolean) => Promise<AxiosResponse<NextUIResponseData, any
|
|
9
|
-
fetchDataSource: (dataSource: NotFrontDataSource, userFlow: string, showLoading?: boolean) => Promise<AxiosResponse<any, any
|
|
8
|
+
getNextUI: (userFlow: string, pageHash: string, entries: any, responseKey: string, showLoading?: boolean) => Promise<AxiosResponse<NextUIResponseData, any>>;
|
|
9
|
+
fetchDataSource: (dataSource: NotFrontDataSource, userFlow: string, showLoading?: boolean) => Promise<AxiosResponse<any, any> | {
|
|
10
10
|
status: number;
|
|
11
11
|
data: {};
|
|
12
12
|
} | undefined>;
|
|
13
|
-
fetchAndGetNextUI: (userFlow: string, pageHash: string, entries: any, responseKey: string, dataSource: NotFrontDataSource) => Promise<AxiosResponse<NextUIResponseData, any
|
|
13
|
+
fetchAndGetNextUI: (userFlow: string, pageHash: string, entries: any, responseKey: string, dataSource: NotFrontDataSource) => Promise<AxiosResponse<NextUIResponseData, any> | undefined>;
|
|
14
14
|
};
|
|
@@ -4,7 +4,7 @@ export interface AxiosCall<T> {
|
|
|
4
4
|
controller?: AbortController;
|
|
5
5
|
}
|
|
6
6
|
declare const useFetchAndLoad: () => {
|
|
7
|
-
callEndpoint: (axiosCall: AxiosCall<any>) => Promise<AxiosResponse<any, any
|
|
7
|
+
callEndpoint: (axiosCall: AxiosCall<any>) => Promise<AxiosResponse<any, any>>;
|
|
8
8
|
cancelEndpoint: () => void;
|
|
9
9
|
};
|
|
10
10
|
export default useFetchAndLoad;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@foris/avocado-not-front",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.1",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"vite": "6.3.6",
|
|
40
40
|
"vite-plugin-dts": "3.7.1",
|
|
41
41
|
"rollup-plugin-visualizer": "5.12.0",
|
|
42
|
-
"axios": "
|
|
42
|
+
"axios": "1.8.4",
|
|
43
43
|
"jsonpath": "1.1.1",
|
|
44
44
|
"react": "18.3.1",
|
|
45
45
|
"react-dom": "18.3.1",
|
|
@@ -49,10 +49,10 @@
|
|
|
49
49
|
"zustand": "4.5.4",
|
|
50
50
|
"@uiw/react-codemirror": "4.23.12",
|
|
51
51
|
"@foris/ai-agent": "1.0.0",
|
|
52
|
-
"@foris/avocado-core": "1.3.0",
|
|
53
52
|
"@foris/avocado-icons": "1.16.3",
|
|
53
|
+
"@foris/tsconfig": "0.0.2",
|
|
54
54
|
"@foris/avocado-suite": "1.8.4",
|
|
55
|
-
"@foris/
|
|
55
|
+
"@foris/avocado-core": "1.3.0"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|
|
58
58
|
"@codemirror/lang-json": ">=6.0.0",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"@codemirror/lang-sql": ">=6.8.0",
|
|
61
61
|
"@codemirror/lang-yaml": ">=6.1.0",
|
|
62
62
|
"@uiw/react-codemirror": ">=4.23.0",
|
|
63
|
-
"axios": "
|
|
63
|
+
"axios": "1.8.4",
|
|
64
64
|
"jsonpath": ">=1.1.0",
|
|
65
65
|
"react": ">=18.0.0",
|
|
66
66
|
"react-dom": ">=18.0.0",
|