@well-played.gg/react-sdk 1.1.1 → 1.2.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.
package/dist/index.d.ts CHANGED
@@ -8,7 +8,7 @@ import { EventErrorListener } from 'graphql-ws';
8
8
  import { FragmentOf } from 'gql.tada';
9
9
  import { initGraphQLTada } from 'gql.tada';
10
10
  import { InvalidationPolicies } from '@nerdwallet/apollo-cache-policies/dist/policies/types';
11
- import { JSX as JSX_2 } from 'react/jsx-runtime';
11
+ import { JSX } from 'react/jsx-runtime';
12
12
  import { LazyQueryHookOptions } from '@apollo/client/react/types/types';
13
13
  import { NoInfer as NoInfer_2 } from '@apollo/client/react/types/types';
14
14
  import { NormalizedCacheObject } from '@apollo/client';
@@ -22,6 +22,8 @@ import { TadaDocumentNode } from 'gql.tada';
22
22
  import { TypedDocumentNode } from '@graphql-typed-document-node/core';
23
23
  import { VariablesOf } from 'gql.tada';
24
24
 
25
+ declare type ApiBaseUrl = "well-played.gg" | "stg.well-played.gg";
26
+
25
27
  declare type BaseGame = ResultOf<typeof TOURNAMENT_STEP_SHAPE_QUERY>["tournamentStepGeneratedShape"][0]["rounds"][0]["games"][0];
26
28
 
27
29
  declare type BaseGroup = ResultOf<typeof TOURNAMENT_STEP_SHAPE_QUERY>["tournamentStepGeneratedShape"][0];
@@ -42,6 +44,7 @@ declare type ClientProps = {
42
44
  onError?: EventErrorListener;
43
45
  };
44
46
  };
47
+ apiBaseUrl?: ApiBaseUrl;
45
48
  };
46
49
 
47
50
  export { FragmentOf }
@@ -348,7 +351,7 @@ export { ResultOf }
348
351
  export declare const RichTextEditorContent: ({ content, style, }: {
349
352
  content: string;
350
353
  style?: React.CSSProperties;
351
- }) => JSX_2.Element;
354
+ }) => JSX.Element;
352
355
 
353
356
  declare type RoundWithGames = Omit<BaseRound, "games"> & {
354
357
  games: GameWithMatches[];
@@ -561,7 +564,7 @@ export declare const useWellPlayed: () => {
561
564
 
562
565
  export { VariablesOf }
563
566
 
564
- export declare const WellPlayedProvider: ({ children, oidcConfig, wpAppConfig, ...configs }: PropsWithChildren<WPConfigProps>) => JSX_2.Element;
567
+ export declare const WellPlayedProvider: ({ children, oidcConfig, wpAppConfig, ...configs }: PropsWithChildren<WPConfigProps>) => JSX.Element;
565
568
 
566
569
  declare type WPConfigProps = {
567
570
  /**
@@ -597,6 +600,10 @@ declare type WPConfigProps = {
597
600
  * GraphQL client configurations
598
601
  */
599
602
  clientConfig?: Omit<ClientProps, "token">;
603
+ /**
604
+ * API Base URL
605
+ */
606
+ apiBaseUrl?: ApiBaseUrl;
600
607
  };
601
608
 
602
609
  export { }