@notabene/javascript-sdk 2.20.0-next.3 → 2.20.0-next.5
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/cjs/notabene.d.ts +57 -0
- package/dist/cjs/package.json +1 -1
- package/dist/esm/notabene.d.ts +57 -0
- package/dist/esm/package.json +1 -1
- package/dist/notabene.d.ts +57 -0
- package/package.json +1 -1
- package/src/types.ts +57 -0
package/dist/cjs/notabene.d.ts
CHANGED
|
@@ -3347,6 +3347,63 @@ export declare interface TransactionOptions {
|
|
|
3347
3347
|
contactSupport?: ContactSupportConfig;
|
|
3348
3348
|
consent?: ConsentConfig;
|
|
3349
3349
|
autoSubmit?: boolean;
|
|
3350
|
+
/**
|
|
3351
|
+
* Wallet connection behaviour.
|
|
3352
|
+
*/
|
|
3353
|
+
wallets?: {
|
|
3354
|
+
/**
|
|
3355
|
+
* EXPERIMENTAL. No stability guarantee; may change or be removed in a minor release.
|
|
3356
|
+
*
|
|
3357
|
+
* Prefer a wallet's `https://` universal link over its custom scheme (for example
|
|
3358
|
+
* `metamask://`) when connecting a mobile wallet. Useful when embedding inside a mobile
|
|
3359
|
+
* in-app webview, which cannot launch another app on its own and so needs the host app
|
|
3360
|
+
* to handle every custom scheme it might encounter.
|
|
3361
|
+
*
|
|
3362
|
+
* Off by default. Has no effect for wallets whose registry entry declares no universal
|
|
3363
|
+
* link, which is most of them today. Where a wallet does declare one, this also changes
|
|
3364
|
+
* behaviour in an ordinary mobile browser, and a universal link can be worse there if
|
|
3365
|
+
* the wallet's Android app links are not verified.
|
|
3366
|
+
*
|
|
3367
|
+
* Behaviour therefore depends on the wallet and on your host app. Verify against the
|
|
3368
|
+
* wallets your users actually use before enabling this in production.
|
|
3369
|
+
*
|
|
3370
|
+
* @defaultValue false
|
|
3371
|
+
*/
|
|
3372
|
+
experimentalPreferUniversalLinks?: boolean;
|
|
3373
|
+
/**
|
|
3374
|
+
* Restrict the mobile wallets offered over WalletConnect to this list.
|
|
3375
|
+
*
|
|
3376
|
+
* Useful when you only support a fixed set of wallets, for example because your app
|
|
3377
|
+
* allowlists their deep links, or because your compliance policy approves specific
|
|
3378
|
+
* wallets.
|
|
3379
|
+
*
|
|
3380
|
+
* Entries are WalletConnect Explorer wallet ids, 64-character hex strings. Wallet names
|
|
3381
|
+
* are not accepted, because the Explorer registry keys on these ids. Look them up in
|
|
3382
|
+
* Reown's Wallets List (https://docs.reown.com/cloud/wallets/wallet-list) or WalletGuide
|
|
3383
|
+
* (https://walletguide.walletconnect.network/).
|
|
3384
|
+
*
|
|
3385
|
+
* A wallet can have more than one id. Coinbase, Binance, OKX and Talisman each have two
|
|
3386
|
+
* Explorer listings, so list every id for a wallet or one of its listings will still be
|
|
3387
|
+
* offered.
|
|
3388
|
+
*
|
|
3389
|
+
* This restricts WalletConnect's own wallet list only. It does not restrict browser
|
|
3390
|
+
* extension wallets, does not affect hardware wallets, and does not control whether
|
|
3391
|
+
* WalletConnect is offered at all.
|
|
3392
|
+
*
|
|
3393
|
+
* Absent or empty means no restriction.
|
|
3394
|
+
*
|
|
3395
|
+
* @example
|
|
3396
|
+
* ```ts
|
|
3397
|
+
* // MetaMask and both Coinbase listings
|
|
3398
|
+
* allowedWalletConnectIds: [
|
|
3399
|
+
* 'c57ca95b47569778a828d19178114f4db188b89b763c899ba0be274e97267d96',
|
|
3400
|
+
* 'fd20dc426fb37566d803205b19bbc1d4096b248ac04548e3cfb6b3a38bd033aa',
|
|
3401
|
+
* 'd0ca99ff52b99abc48743dad0f7fc891e041be73574f7fac4afe5d4bb83845c8'
|
|
3402
|
+
* ]
|
|
3403
|
+
* ```
|
|
3404
|
+
*/
|
|
3405
|
+
allowedWalletConnectIds?: string[];
|
|
3406
|
+
};
|
|
3350
3407
|
}
|
|
3351
3408
|
|
|
3352
3409
|
/**
|
package/dist/cjs/package.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"author": "Notabene <developers@notabene.id>",
|
|
11
11
|
"license": "MIT",
|
|
12
12
|
"packageManager": "yarn@4.5.1",
|
|
13
|
-
"version": "2.20.0-next.
|
|
13
|
+
"version": "2.20.0-next.5",
|
|
14
14
|
"source": "src/notabene.ts",
|
|
15
15
|
"main": "dist/cjs/notabene.cjs",
|
|
16
16
|
"module": "dist/esm/notabene.js",
|
package/dist/esm/notabene.d.ts
CHANGED
|
@@ -3347,6 +3347,63 @@ export declare interface TransactionOptions {
|
|
|
3347
3347
|
contactSupport?: ContactSupportConfig;
|
|
3348
3348
|
consent?: ConsentConfig;
|
|
3349
3349
|
autoSubmit?: boolean;
|
|
3350
|
+
/**
|
|
3351
|
+
* Wallet connection behaviour.
|
|
3352
|
+
*/
|
|
3353
|
+
wallets?: {
|
|
3354
|
+
/**
|
|
3355
|
+
* EXPERIMENTAL. No stability guarantee; may change or be removed in a minor release.
|
|
3356
|
+
*
|
|
3357
|
+
* Prefer a wallet's `https://` universal link over its custom scheme (for example
|
|
3358
|
+
* `metamask://`) when connecting a mobile wallet. Useful when embedding inside a mobile
|
|
3359
|
+
* in-app webview, which cannot launch another app on its own and so needs the host app
|
|
3360
|
+
* to handle every custom scheme it might encounter.
|
|
3361
|
+
*
|
|
3362
|
+
* Off by default. Has no effect for wallets whose registry entry declares no universal
|
|
3363
|
+
* link, which is most of them today. Where a wallet does declare one, this also changes
|
|
3364
|
+
* behaviour in an ordinary mobile browser, and a universal link can be worse there if
|
|
3365
|
+
* the wallet's Android app links are not verified.
|
|
3366
|
+
*
|
|
3367
|
+
* Behaviour therefore depends on the wallet and on your host app. Verify against the
|
|
3368
|
+
* wallets your users actually use before enabling this in production.
|
|
3369
|
+
*
|
|
3370
|
+
* @defaultValue false
|
|
3371
|
+
*/
|
|
3372
|
+
experimentalPreferUniversalLinks?: boolean;
|
|
3373
|
+
/**
|
|
3374
|
+
* Restrict the mobile wallets offered over WalletConnect to this list.
|
|
3375
|
+
*
|
|
3376
|
+
* Useful when you only support a fixed set of wallets, for example because your app
|
|
3377
|
+
* allowlists their deep links, or because your compliance policy approves specific
|
|
3378
|
+
* wallets.
|
|
3379
|
+
*
|
|
3380
|
+
* Entries are WalletConnect Explorer wallet ids, 64-character hex strings. Wallet names
|
|
3381
|
+
* are not accepted, because the Explorer registry keys on these ids. Look them up in
|
|
3382
|
+
* Reown's Wallets List (https://docs.reown.com/cloud/wallets/wallet-list) or WalletGuide
|
|
3383
|
+
* (https://walletguide.walletconnect.network/).
|
|
3384
|
+
*
|
|
3385
|
+
* A wallet can have more than one id. Coinbase, Binance, OKX and Talisman each have two
|
|
3386
|
+
* Explorer listings, so list every id for a wallet or one of its listings will still be
|
|
3387
|
+
* offered.
|
|
3388
|
+
*
|
|
3389
|
+
* This restricts WalletConnect's own wallet list only. It does not restrict browser
|
|
3390
|
+
* extension wallets, does not affect hardware wallets, and does not control whether
|
|
3391
|
+
* WalletConnect is offered at all.
|
|
3392
|
+
*
|
|
3393
|
+
* Absent or empty means no restriction.
|
|
3394
|
+
*
|
|
3395
|
+
* @example
|
|
3396
|
+
* ```ts
|
|
3397
|
+
* // MetaMask and both Coinbase listings
|
|
3398
|
+
* allowedWalletConnectIds: [
|
|
3399
|
+
* 'c57ca95b47569778a828d19178114f4db188b89b763c899ba0be274e97267d96',
|
|
3400
|
+
* 'fd20dc426fb37566d803205b19bbc1d4096b248ac04548e3cfb6b3a38bd033aa',
|
|
3401
|
+
* 'd0ca99ff52b99abc48743dad0f7fc891e041be73574f7fac4afe5d4bb83845c8'
|
|
3402
|
+
* ]
|
|
3403
|
+
* ```
|
|
3404
|
+
*/
|
|
3405
|
+
allowedWalletConnectIds?: string[];
|
|
3406
|
+
};
|
|
3350
3407
|
}
|
|
3351
3408
|
|
|
3352
3409
|
/**
|
package/dist/esm/package.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"author": "Notabene <developers@notabene.id>",
|
|
11
11
|
"license": "MIT",
|
|
12
12
|
"packageManager": "yarn@4.5.1",
|
|
13
|
-
"version": "2.20.0-next.
|
|
13
|
+
"version": "2.20.0-next.5",
|
|
14
14
|
"source": "src/notabene.ts",
|
|
15
15
|
"main": "dist/cjs/notabene.cjs",
|
|
16
16
|
"module": "dist/esm/notabene.js",
|
package/dist/notabene.d.ts
CHANGED
|
@@ -3347,6 +3347,63 @@ export declare interface TransactionOptions {
|
|
|
3347
3347
|
contactSupport?: ContactSupportConfig;
|
|
3348
3348
|
consent?: ConsentConfig;
|
|
3349
3349
|
autoSubmit?: boolean;
|
|
3350
|
+
/**
|
|
3351
|
+
* Wallet connection behaviour.
|
|
3352
|
+
*/
|
|
3353
|
+
wallets?: {
|
|
3354
|
+
/**
|
|
3355
|
+
* EXPERIMENTAL. No stability guarantee; may change or be removed in a minor release.
|
|
3356
|
+
*
|
|
3357
|
+
* Prefer a wallet's `https://` universal link over its custom scheme (for example
|
|
3358
|
+
* `metamask://`) when connecting a mobile wallet. Useful when embedding inside a mobile
|
|
3359
|
+
* in-app webview, which cannot launch another app on its own and so needs the host app
|
|
3360
|
+
* to handle every custom scheme it might encounter.
|
|
3361
|
+
*
|
|
3362
|
+
* Off by default. Has no effect for wallets whose registry entry declares no universal
|
|
3363
|
+
* link, which is most of them today. Where a wallet does declare one, this also changes
|
|
3364
|
+
* behaviour in an ordinary mobile browser, and a universal link can be worse there if
|
|
3365
|
+
* the wallet's Android app links are not verified.
|
|
3366
|
+
*
|
|
3367
|
+
* Behaviour therefore depends on the wallet and on your host app. Verify against the
|
|
3368
|
+
* wallets your users actually use before enabling this in production.
|
|
3369
|
+
*
|
|
3370
|
+
* @defaultValue false
|
|
3371
|
+
*/
|
|
3372
|
+
experimentalPreferUniversalLinks?: boolean;
|
|
3373
|
+
/**
|
|
3374
|
+
* Restrict the mobile wallets offered over WalletConnect to this list.
|
|
3375
|
+
*
|
|
3376
|
+
* Useful when you only support a fixed set of wallets, for example because your app
|
|
3377
|
+
* allowlists their deep links, or because your compliance policy approves specific
|
|
3378
|
+
* wallets.
|
|
3379
|
+
*
|
|
3380
|
+
* Entries are WalletConnect Explorer wallet ids, 64-character hex strings. Wallet names
|
|
3381
|
+
* are not accepted, because the Explorer registry keys on these ids. Look them up in
|
|
3382
|
+
* Reown's Wallets List (https://docs.reown.com/cloud/wallets/wallet-list) or WalletGuide
|
|
3383
|
+
* (https://walletguide.walletconnect.network/).
|
|
3384
|
+
*
|
|
3385
|
+
* A wallet can have more than one id. Coinbase, Binance, OKX and Talisman each have two
|
|
3386
|
+
* Explorer listings, so list every id for a wallet or one of its listings will still be
|
|
3387
|
+
* offered.
|
|
3388
|
+
*
|
|
3389
|
+
* This restricts WalletConnect's own wallet list only. It does not restrict browser
|
|
3390
|
+
* extension wallets, does not affect hardware wallets, and does not control whether
|
|
3391
|
+
* WalletConnect is offered at all.
|
|
3392
|
+
*
|
|
3393
|
+
* Absent or empty means no restriction.
|
|
3394
|
+
*
|
|
3395
|
+
* @example
|
|
3396
|
+
* ```ts
|
|
3397
|
+
* // MetaMask and both Coinbase listings
|
|
3398
|
+
* allowedWalletConnectIds: [
|
|
3399
|
+
* 'c57ca95b47569778a828d19178114f4db188b89b763c899ba0be274e97267d96',
|
|
3400
|
+
* 'fd20dc426fb37566d803205b19bbc1d4096b248ac04548e3cfb6b3a38bd033aa',
|
|
3401
|
+
* 'd0ca99ff52b99abc48743dad0f7fc891e041be73574f7fac4afe5d4bb83845c8'
|
|
3402
|
+
* ]
|
|
3403
|
+
* ```
|
|
3404
|
+
*/
|
|
3405
|
+
allowedWalletConnectIds?: string[];
|
|
3406
|
+
};
|
|
3350
3407
|
}
|
|
3351
3408
|
|
|
3352
3409
|
/**
|
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"author": "Notabene <developers@notabene.id>",
|
|
11
11
|
"license": "MIT",
|
|
12
12
|
"packageManager": "yarn@4.5.1",
|
|
13
|
-
"version": "2.20.0-next.
|
|
13
|
+
"version": "2.20.0-next.5",
|
|
14
14
|
"source": "src/notabene.ts",
|
|
15
15
|
"main": "dist/cjs/notabene.cjs",
|
|
16
16
|
"module": "dist/esm/notabene.js",
|
package/src/types.ts
CHANGED
|
@@ -1044,6 +1044,63 @@ export interface TransactionOptions {
|
|
|
1044
1044
|
contactSupport?: ContactSupportConfig; // Requires 'contact-support' in agentSections
|
|
1045
1045
|
consent?: ConsentConfig; // Defaults to true
|
|
1046
1046
|
autoSubmit?: boolean; // Defaults to false
|
|
1047
|
+
/**
|
|
1048
|
+
* Wallet connection behaviour.
|
|
1049
|
+
*/
|
|
1050
|
+
wallets?: {
|
|
1051
|
+
/**
|
|
1052
|
+
* EXPERIMENTAL. No stability guarantee; may change or be removed in a minor release.
|
|
1053
|
+
*
|
|
1054
|
+
* Prefer a wallet's `https://` universal link over its custom scheme (for example
|
|
1055
|
+
* `metamask://`) when connecting a mobile wallet. Useful when embedding inside a mobile
|
|
1056
|
+
* in-app webview, which cannot launch another app on its own and so needs the host app
|
|
1057
|
+
* to handle every custom scheme it might encounter.
|
|
1058
|
+
*
|
|
1059
|
+
* Off by default. Has no effect for wallets whose registry entry declares no universal
|
|
1060
|
+
* link, which is most of them today. Where a wallet does declare one, this also changes
|
|
1061
|
+
* behaviour in an ordinary mobile browser, and a universal link can be worse there if
|
|
1062
|
+
* the wallet's Android app links are not verified.
|
|
1063
|
+
*
|
|
1064
|
+
* Behaviour therefore depends on the wallet and on your host app. Verify against the
|
|
1065
|
+
* wallets your users actually use before enabling this in production.
|
|
1066
|
+
*
|
|
1067
|
+
* @defaultValue false
|
|
1068
|
+
*/
|
|
1069
|
+
experimentalPreferUniversalLinks?: boolean;
|
|
1070
|
+
/**
|
|
1071
|
+
* Restrict the mobile wallets offered over WalletConnect to this list.
|
|
1072
|
+
*
|
|
1073
|
+
* Useful when you only support a fixed set of wallets, for example because your app
|
|
1074
|
+
* allowlists their deep links, or because your compliance policy approves specific
|
|
1075
|
+
* wallets.
|
|
1076
|
+
*
|
|
1077
|
+
* Entries are WalletConnect Explorer wallet ids, 64-character hex strings. Wallet names
|
|
1078
|
+
* are not accepted, because the Explorer registry keys on these ids. Look them up in
|
|
1079
|
+
* Reown's Wallets List (https://docs.reown.com/cloud/wallets/wallet-list) or WalletGuide
|
|
1080
|
+
* (https://walletguide.walletconnect.network/).
|
|
1081
|
+
*
|
|
1082
|
+
* A wallet can have more than one id. Coinbase, Binance, OKX and Talisman each have two
|
|
1083
|
+
* Explorer listings, so list every id for a wallet or one of its listings will still be
|
|
1084
|
+
* offered.
|
|
1085
|
+
*
|
|
1086
|
+
* This restricts WalletConnect's own wallet list only. It does not restrict browser
|
|
1087
|
+
* extension wallets, does not affect hardware wallets, and does not control whether
|
|
1088
|
+
* WalletConnect is offered at all.
|
|
1089
|
+
*
|
|
1090
|
+
* Absent or empty means no restriction.
|
|
1091
|
+
*
|
|
1092
|
+
* @example
|
|
1093
|
+
* ```ts
|
|
1094
|
+
* // MetaMask and both Coinbase listings
|
|
1095
|
+
* allowedWalletConnectIds: [
|
|
1096
|
+
* 'c57ca95b47569778a828d19178114f4db188b89b763c899ba0be274e97267d96',
|
|
1097
|
+
* 'fd20dc426fb37566d803205b19bbc1d4096b248ac04548e3cfb6b3a38bd033aa',
|
|
1098
|
+
* 'd0ca99ff52b99abc48743dad0f7fc891e041be73574f7fac4afe5d4bb83845c8'
|
|
1099
|
+
* ]
|
|
1100
|
+
* ```
|
|
1101
|
+
*/
|
|
1102
|
+
allowedWalletConnectIds?: string[];
|
|
1103
|
+
};
|
|
1047
1104
|
}
|
|
1048
1105
|
/**
|
|
1049
1106
|
* Component Message Type enum representing different message types that can be sent
|