@matchain/matchid-sdk-react 0.1.30 → 0.1.32

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 CHANGED
@@ -5,9 +5,9 @@ import { SignableMessage, Hex, TransactionSerializable, Account } from 'viem';
5
5
  import * as _tanstack_react_query from '@tanstack/react-query';
6
6
  import { UseQueryOptions } from '@tanstack/react-query/src/types';
7
7
 
8
- type ISocialLoginMethod = 'google' | 'twitter' | 'discord' | 'github' |'telegram' | 'linkedin' | 'facebook'
8
+ type ISocialLoginMethod = 'google' | 'twitter' | 'discord' | 'github' | 'telegram' | 'linkedin' | 'facebook'|'youtube'
9
9
  type LoginMethodType = 'evm' | 'sol' | 'email' | ISocialLoginMethod
10
- type OtherLoginMethodType ='email' | ISocialLoginMethod
10
+ type OtherLoginMethodType = 'email' | ISocialLoginMethod
11
11
  type RecommendLoginMethodType = 'wallet' | 'email' | ISocialLoginMethod
12
12
  type IEnvConfigType = {
13
13
  endpoints: {
@@ -155,6 +155,8 @@ type PopoverProps = PropsWithChildren & {
155
155
  gap?: number | string
156
156
  }
157
157
 
158
+ type LocaleType = "en" | "zh" | "tw" | "fr" | "ja" | "ko" | "vi" | "es" | "pt"
159
+
158
160
  type MatchContextType = {
159
161
  appid: string;
160
162
  events?: IMatchEvents;
@@ -163,6 +165,7 @@ type MatchContextType = {
163
165
  token: string;
164
166
  }) => Promise<void>;
165
167
  theme: "light" | "dark";
168
+ locale?: LocaleType;
166
169
  } & Partial<IEnvConfigType>;
167
170
  declare const MatchProvider: React$1.FC<{
168
171
  children: ReactNode;
@@ -170,6 +173,7 @@ declare const MatchProvider: React$1.FC<{
170
173
  events?: IMatchEvents;
171
174
  theme?: "light" | "dark";
172
175
  endpoints?: IEnvConfigType['endpoints'];
176
+ locale?: LocaleType;
173
177
  }>;
174
178
  declare const useMatch: () => MatchContextType;
175
179
 
package/dist/index.d.ts CHANGED
@@ -5,9 +5,9 @@ import { SignableMessage, Hex, TransactionSerializable, Account } from 'viem';
5
5
  import * as _tanstack_react_query from '@tanstack/react-query';
6
6
  import { UseQueryOptions } from '@tanstack/react-query/src/types';
7
7
 
8
- type ISocialLoginMethod = 'google' | 'twitter' | 'discord' | 'github' |'telegram' | 'linkedin' | 'facebook'
8
+ type ISocialLoginMethod = 'google' | 'twitter' | 'discord' | 'github' | 'telegram' | 'linkedin' | 'facebook'|'youtube'
9
9
  type LoginMethodType = 'evm' | 'sol' | 'email' | ISocialLoginMethod
10
- type OtherLoginMethodType ='email' | ISocialLoginMethod
10
+ type OtherLoginMethodType = 'email' | ISocialLoginMethod
11
11
  type RecommendLoginMethodType = 'wallet' | 'email' | ISocialLoginMethod
12
12
  type IEnvConfigType = {
13
13
  endpoints: {
@@ -155,6 +155,8 @@ type PopoverProps = PropsWithChildren & {
155
155
  gap?: number | string
156
156
  }
157
157
 
158
+ type LocaleType = "en" | "zh" | "tw" | "fr" | "ja" | "ko" | "vi" | "es" | "pt"
159
+
158
160
  type MatchContextType = {
159
161
  appid: string;
160
162
  events?: IMatchEvents;
@@ -163,6 +165,7 @@ type MatchContextType = {
163
165
  token: string;
164
166
  }) => Promise<void>;
165
167
  theme: "light" | "dark";
168
+ locale?: LocaleType;
166
169
  } & Partial<IEnvConfigType>;
167
170
  declare const MatchProvider: React$1.FC<{
168
171
  children: ReactNode;
@@ -170,6 +173,7 @@ declare const MatchProvider: React$1.FC<{
170
173
  events?: IMatchEvents;
171
174
  theme?: "light" | "dark";
172
175
  endpoints?: IEnvConfigType['endpoints'];
176
+ locale?: LocaleType;
173
177
  }>;
174
178
  declare const useMatch: () => MatchContextType;
175
179