@well-played.gg/react-sdk 2.0.1 → 2.0.3
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.ts +9 -0
- package/dist/wp-react-sdk.cjs.js +25 -23
- package/dist/wp-react-sdk.es.js +834 -825
- package/dist/wp-react-sdk.umd.js +23 -21
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { ApiBaseUrl } from '@well-played.gg/typescript-sdk';
|
|
|
2
2
|
import { ApolloClient } from '@apollo/client';
|
|
3
3
|
import { ApolloQueryResult } from '@apollo/client';
|
|
4
4
|
import { ClientProps } from '@well-played.gg/typescript-sdk';
|
|
5
|
+
import { createTypedClient } from '@well-played.gg/typescript-sdk';
|
|
5
6
|
import { JSX } from 'react/jsx-runtime';
|
|
6
7
|
import { LazyQueryHookOptions } from '@apollo/client/react/types/types';
|
|
7
8
|
import { NoInfer as NoInfer_2 } from '@apollo/client/react/types/types';
|
|
@@ -114,6 +115,7 @@ export declare const useConnectedPlayer: () => {
|
|
|
114
115
|
}[];
|
|
115
116
|
}[];
|
|
116
117
|
identities: {
|
|
118
|
+
providerId: string;
|
|
117
119
|
properties: {
|
|
118
120
|
property: string;
|
|
119
121
|
value: string;
|
|
@@ -137,6 +139,7 @@ export declare const useConnectedPlayer: () => {
|
|
|
137
139
|
}[];
|
|
138
140
|
}[];
|
|
139
141
|
identities: {
|
|
142
|
+
providerId: string;
|
|
140
143
|
properties: {
|
|
141
144
|
property: string;
|
|
142
145
|
value: string;
|
|
@@ -192,6 +195,7 @@ export declare const usePlayers: ({ playerIds, skip, }: {
|
|
|
192
195
|
value: string;
|
|
193
196
|
}[];
|
|
194
197
|
identities: {
|
|
198
|
+
providerId: string;
|
|
195
199
|
properties: {
|
|
196
200
|
property: string;
|
|
197
201
|
value: string;
|
|
@@ -233,6 +237,7 @@ export declare const useTournamentTeams: ({ tournamentId, skip, status, }: {
|
|
|
233
237
|
export declare const useWellPlayed: () => {
|
|
234
238
|
organizationId: string;
|
|
235
239
|
apiClient: ApolloClient<NormalizedCacheObject>;
|
|
240
|
+
typedClient: ReturnType<typeof createTypedClient>;
|
|
236
241
|
};
|
|
237
242
|
|
|
238
243
|
export declare const WellPlayedProvider: ({ children, oidcConfig, wpAppConfig, ...configs }: PropsWithChildren<WPConfigProps>) => JSX.Element;
|
|
@@ -275,6 +280,10 @@ declare type WPConfigProps = {
|
|
|
275
280
|
* API Base URL
|
|
276
281
|
*/
|
|
277
282
|
apiBaseUrl?: ApiBaseUrl;
|
|
283
|
+
/**
|
|
284
|
+
* Typed client configuration
|
|
285
|
+
*/
|
|
286
|
+
typedClientConfig?: Omit<Parameters<typeof createTypedClient>[0], "url" | "headers" | "batch" | "keepalive" | "method">;
|
|
278
287
|
};
|
|
279
288
|
|
|
280
289
|
export { }
|