@judo/actions 0.33.0 → 0.34.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/dist/api/i-judo-rest-api.d.ts +58 -0
- package/dist/api/i-judo-rest-api.d.ts.map +1 -0
- package/dist/api/index.d.ts +2 -1
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/judo-rest-api.d.ts +3 -16
- package/dist/api/judo-rest-api.d.ts.map +1 -1
- package/dist/hooks/use-action-dispatcher.d.ts +2 -2
- package/dist/hooks/use-action-dispatcher.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/provider/api-context.d.ts +5 -5
- package/dist/provider/api-context.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { type ReactNode } from "react";
|
|
2
|
-
import type {
|
|
2
|
+
import type { IJudoRestApi } from "../api/i-judo-rest-api";
|
|
3
3
|
/**
|
|
4
4
|
* API context type.
|
|
5
5
|
*/
|
|
6
6
|
export interface ApiContextType {
|
|
7
7
|
/** JUDO REST API client */
|
|
8
|
-
api:
|
|
8
|
+
api: IJudoRestApi;
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
11
|
* Hook to access the JUDO REST API client.
|
|
12
12
|
*
|
|
13
|
-
* @returns
|
|
13
|
+
* @returns IJudoRestApi
|
|
14
14
|
* @throws Error if used outside ApiProvider
|
|
15
15
|
*/
|
|
16
|
-
export declare function useApi():
|
|
16
|
+
export declare function useApi(): IJudoRestApi;
|
|
17
17
|
/**
|
|
18
18
|
* Props for ApiProvider.
|
|
19
19
|
*/
|
|
20
20
|
export interface ApiProviderProps {
|
|
21
21
|
children: ReactNode;
|
|
22
22
|
/** JUDO REST API client instance */
|
|
23
|
-
api:
|
|
23
|
+
api: IJudoRestApi;
|
|
24
24
|
}
|
|
25
25
|
/**
|
|
26
26
|
* Provider for JUDO REST API client.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-context.d.ts","sourceRoot":"","sources":["../../src/provider/api-context.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAA6B,MAAM,OAAO,CAAC;AAClE,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"api-context.d.ts","sourceRoot":"","sources":["../../src/provider/api-context.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAA6B,MAAM,OAAO,CAAC;AAClE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAE3D;;GAEG;AACH,MAAM,WAAW,cAAc;IAC9B,2BAA2B;IAC3B,GAAG,EAAE,YAAY,CAAC;CAClB;AAID;;;;;GAKG;AACH,wBAAgB,MAAM,IAAI,YAAY,CAMrC;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAChC,QAAQ,EAAE,SAAS,CAAC;IACpB,oCAAoC;IACpC,GAAG,EAAE,YAAY,CAAC;CAClB;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,EAAE,QAAQ,EAAE,GAAG,EAAE,EAAE,gBAAgB,2CAG9D"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@judo/actions",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.34.0",
|
|
4
4
|
"license": "EPL-2.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"access": "public"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@judo/model-api": "0.
|
|
29
|
+
"@judo/model-api": "0.34.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@testing-library/react": "^16.3.2",
|