@0xsequence/provider 0.42.6 → 0.42.7

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.
@@ -164,6 +164,14 @@ export interface Settings {
164
164
  * Note that this setting will not be persisted, use wallet.open with 'openWithOptions' intent
165
165
  * to set when you open the wallet for user. */
166
166
  lockFundingCurrencyToDefault?: boolean;
167
+ /** Specify an email address to allow user automatically sign in with the email option.
168
+ * Will be ignored if user is already signed in.
169
+ */
170
+ signInWithEmail?: string;
171
+ /** Specify which sign in options are allowed.
172
+ * Will be ignored if user is already signed in.
173
+ */
174
+ signInOptions?: SignInOption[];
167
175
  /** Specify auxiliary data
168
176
  */
169
177
  aux?: any;
@@ -174,6 +182,7 @@ export interface Settings {
174
182
  export declare type ThemeOption = 'light' | 'dark' | string;
175
183
  export declare type PaymentProviderOption = 'moonpay' | 'wyre' | 'ramp';
176
184
  export declare type CurrencyOption = 'usdc' | 'eth' | 'matic';
185
+ export declare type SignInOption = 'email' | 'google' | 'apple' | 'facebook' | 'discord' | 'twitch';
177
186
  export interface ConnectDetails {
178
187
  chainId?: string;
179
188
  error?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@0xsequence/provider",
3
- "version": "0.42.6",
3
+ "version": "0.42.7",
4
4
  "description": "provider sub-package for Sequence",
5
5
  "repository": "https://github.com/0xsequence/sequence.js/tree/master/packages/provider",
6
6
  "source": "src/index.ts",
@@ -13,13 +13,13 @@
13
13
  "typecheck": "tsc --noEmit"
14
14
  },
15
15
  "dependencies": {
16
- "@0xsequence/abi": "^0.42.6",
17
- "@0xsequence/auth": "^0.42.6",
18
- "@0xsequence/config": "^0.42.6",
19
- "@0xsequence/network": "^0.42.6",
20
- "@0xsequence/transactions": "^0.42.6",
21
- "@0xsequence/utils": "^0.42.6",
22
- "@0xsequence/wallet": "^0.42.6",
16
+ "@0xsequence/abi": "^0.42.7",
17
+ "@0xsequence/auth": "^0.42.7",
18
+ "@0xsequence/config": "^0.42.7",
19
+ "@0xsequence/network": "^0.42.7",
20
+ "@0xsequence/transactions": "^0.42.7",
21
+ "@0xsequence/utils": "^0.42.7",
22
+ "@0xsequence/wallet": "^0.42.7",
23
23
  "@ethersproject/abstract-signer": "^5.5.0",
24
24
  "@ethersproject/hash": "^5.5.0",
25
25
  "@ethersproject/providers": "^5.5.1",
package/src/types.ts CHANGED
@@ -210,6 +210,16 @@ export interface Settings {
210
210
  * to set when you open the wallet for user. */
211
211
  lockFundingCurrencyToDefault?: boolean
212
212
 
213
+ /** Specify an email address to allow user automatically sign in with the email option.
214
+ * Will be ignored if user is already signed in.
215
+ */
216
+ signInWithEmail?: string
217
+
218
+ /** Specify which sign in options are allowed.
219
+ * Will be ignored if user is already signed in.
220
+ */
221
+ signInOptions?: SignInOption[]
222
+
213
223
  /** Specify auxiliary data
214
224
  */
215
225
  aux?: any
@@ -221,6 +231,7 @@ export interface Settings {
221
231
  export type ThemeOption = 'light' | 'dark' | string
222
232
  export type PaymentProviderOption = 'moonpay' | 'wyre' | 'ramp'
223
233
  export type CurrencyOption = 'usdc' | 'eth' | 'matic'
234
+ export type SignInOption = 'email' | 'google' | 'apple' | 'facebook' | 'discord' | 'twitch'
224
235
 
225
236
  export interface ConnectDetails {
226
237
  // chainId (in hex) and error are defined by EIP-1193 expected fields