@swishapp/react 0.131.1-unstable.20260515104343 → 0.132.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.
Files changed (2) hide show
  1. package/dist/index.d.mts +7 -7
  2. package/package.json +2 -2
package/dist/index.d.mts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { ApiError, ApiResponse, EditItemListsSuccessResponse, EditItemVariantSuccessResponse, EventName, Intent, IntentResponse, IntentToData, Item, ItemMatch, PageInfo, PaginatedApiResponse, SaveItemSuccessResponse, SwishApp, SwishOptionsInput, UnsaveItemSuccessResponse } from "@swishapp/sdk";
2
2
  import { ReactNode } from "react";
3
3
  import * as react_jsx_runtime0 from "react/jsx-runtime";
4
- import * as _swishapp_api_client0 from "@swishapp/api-client";
4
+ import * as _swishapp_api_client3 from "@swishapp/api-client";
5
5
  export * from "@swishapp/sdk";
6
6
 
7
7
  //#region src/types.d.ts
@@ -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: _swishapp_api_client0.ListDetail[] | null;
61
- error: _swishapp_api_client0.ApiError | null;
60
+ lists: _swishapp_api_client3.ListDetail[] | null;
61
+ error: _swishapp_api_client3.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: _swishapp_api_client0.PageInfo | null;
77
- error: _swishapp_api_client0.ApiError | null;
76
+ pageInfo: _swishapp_api_client3.PageInfo | null;
77
+ error: _swishapp_api_client3.ApiError | null;
78
78
  reset: () => void;
79
79
  hasMore: boolean;
80
80
  loadMore: () => void;
@@ -111,7 +111,7 @@ declare const useSwishItem: ({
111
111
  loading: boolean;
112
112
  saving: boolean;
113
113
  unsaving: boolean;
114
- error: _swishapp_api_client0.ApiError | null;
114
+ error: _swishapp_api_client3.ApiError | null;
115
115
  savedItemId: string | null;
116
116
  savedItemIds: string[];
117
117
  save: () => Promise<void>;
@@ -125,7 +125,7 @@ declare const useSwishItem: ({
125
125
  declare const useSwishItemCount: () => {
126
126
  count: number;
127
127
  loading: boolean;
128
- error: _swishapp_api_client0.ApiError | null;
128
+ error: _swishapp_api_client3.ApiError | null;
129
129
  };
130
130
  //#endregion
131
131
  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.131.1-unstable.20260515104343",
3
+ "version": "0.132.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.131.1-unstable.20260515104343"
13
+ "@swishapp/sdk": "0.132.0"
14
14
  },
15
15
  "peerDependencies": {
16
16
  "react": ">=16.8.0 || >=17.0.0 || >=18.0.0",