@swishapp/react 0.121.0-unstable.20260318185714 → 0.121.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/index.d.mts +7 -7
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _swishapp_sdk0 from "@swishapp/sdk";
|
|
2
2
|
import { ApiError, ApiResponse, EditItemListsSuccessResponse, EditItemVariantSuccessResponse, EventName, Intent, IntentResponse, IntentToData, Item, PageInfo, PaginatedApiResponse, SaveItemSuccessResponse, SwishApp, SwishOptions, UnsaveItemSuccessResponse } from "@swishapp/sdk";
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
4
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
@@ -57,8 +57,8 @@ declare const useSwishIntent: <I extends Intent = Intent>(intent: I, ...args: In
|
|
|
57
57
|
//#region src/hooks/use-swish-lists.d.ts
|
|
58
58
|
declare const useSwishLists: () => {
|
|
59
59
|
loading: boolean;
|
|
60
|
-
lists:
|
|
61
|
-
error:
|
|
60
|
+
lists: _swishapp_sdk0.ListDetail[] | null;
|
|
61
|
+
error: _swishapp_sdk0.ApiError | null;
|
|
62
62
|
reset: () => void;
|
|
63
63
|
};
|
|
64
64
|
//#endregion
|
|
@@ -73,8 +73,8 @@ declare const useSwishItems: ({
|
|
|
73
73
|
}?: UseSwishItemsOptions) => {
|
|
74
74
|
loading: boolean;
|
|
75
75
|
data: Item[];
|
|
76
|
-
pageInfo:
|
|
77
|
-
error:
|
|
76
|
+
pageInfo: _swishapp_sdk0.PageInfo | null;
|
|
77
|
+
error: _swishapp_sdk0.ApiError | null;
|
|
78
78
|
reset: () => void;
|
|
79
79
|
hasMore: boolean;
|
|
80
80
|
loadMore: () => void;
|
|
@@ -101,7 +101,7 @@ declare const useSwishItem: ({
|
|
|
101
101
|
}: UseSwishItemProps) => {
|
|
102
102
|
saved: boolean;
|
|
103
103
|
loading: boolean;
|
|
104
|
-
error:
|
|
104
|
+
error: _swishapp_sdk0.ApiError | null;
|
|
105
105
|
save: () => Promise<void>;
|
|
106
106
|
unsave: () => Promise<void>;
|
|
107
107
|
updateLists: () => Promise<void>;
|
|
@@ -113,7 +113,7 @@ declare const useSwishItem: ({
|
|
|
113
113
|
declare const useSwishItemCount: () => {
|
|
114
114
|
count: number;
|
|
115
115
|
loading: boolean;
|
|
116
|
-
error:
|
|
116
|
+
error: _swishapp_sdk0.ApiError | null;
|
|
117
117
|
};
|
|
118
118
|
//#endregion
|
|
119
119
|
export { SwishContextValue, SwishProvider, type SwishProviderProps, useSwish, useSwishIntent, useSwishItem, useSwishItemCount, useSwishItems, useSwishLists, useSwishQuery };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swishapp/react",
|
|
3
|
-
"version": "0.121.0
|
|
3
|
+
"version": "0.121.0",
|
|
4
4
|
"description": "React bindings for Swish SDK",
|
|
5
5
|
"author": "Swish",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"access": "public"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@swishapp/sdk": "0.121.0
|
|
13
|
+
"@swishapp/sdk": "0.121.0"
|
|
14
14
|
},
|
|
15
15
|
"peerDependencies": {
|
|
16
16
|
"react": ">=16.8.0 || >=17.0.0 || >=18.0.0",
|