@dynamic-labs/starknet 4.48.1 → 4.49.0
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/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,23 @@
|
|
|
1
1
|
|
|
2
|
+
## [4.49.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.48.2...v4.49.0) (2025-12-05)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* add merchant name support for crypto.com onramp ([#10021](https://github.com/dynamic-labs/dynamic-auth/issues/10021)) ([846250f](https://github.com/dynamic-labs/dynamic-auth/commit/846250f3d61b182ec3ae2174c953536e0be3e7ca))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* listen for secondary wallet change in bridge mode ([#10024](https://github.com/dynamic-labs/dynamic-auth/issues/10024)) ([d4d7bb5](https://github.com/dynamic-labs/dynamic-auth/commit/d4d7bb54db9cc4922b57b0cae2d26ac2afd4d21d))
|
|
13
|
+
|
|
14
|
+
### [4.48.2](https://github.com/dynamic-labs/dynamic-auth/compare/v4.48.1...v4.48.2) (2025-12-03)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* only prompt ready wallet once to connect ([#10013](https://github.com/dynamic-labs/dynamic-auth/issues/10013)) ([fd3e306](https://github.com/dynamic-labs/dynamic-auth/commit/fd3e306f175969efee6d82ce539f77e55c329f38))
|
|
20
|
+
|
|
2
21
|
### [4.48.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.48.0...v4.48.1) (2025-12-02)
|
|
3
22
|
|
|
4
23
|
|
package/package.cjs
CHANGED
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/starknet",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.49.0",
|
|
4
4
|
"description": "A React SDK for implementing wallet web3 authentication and authorization to your website.",
|
|
5
5
|
"author": "Dynamic Labs, Inc.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -23,15 +23,15 @@
|
|
|
23
23
|
"starknet": "6.23.1",
|
|
24
24
|
"starknetkit": "2.10.4",
|
|
25
25
|
"text-encoding": "0.7.0",
|
|
26
|
-
"@dynamic-labs/sdk-api-core": "0.0.
|
|
27
|
-
"@dynamic-labs/assert-package-version": "4.
|
|
28
|
-
"@dynamic-labs/logger": "4.
|
|
29
|
-
"@dynamic-labs/rpc-providers": "4.
|
|
30
|
-
"@dynamic-labs/starknet-core": "4.
|
|
31
|
-
"@dynamic-labs/types": "4.
|
|
32
|
-
"@dynamic-labs/utils": "4.
|
|
33
|
-
"@dynamic-labs/wallet-book": "4.
|
|
34
|
-
"@dynamic-labs/wallet-connector-core": "4.
|
|
26
|
+
"@dynamic-labs/sdk-api-core": "0.0.831",
|
|
27
|
+
"@dynamic-labs/assert-package-version": "4.49.0",
|
|
28
|
+
"@dynamic-labs/logger": "4.49.0",
|
|
29
|
+
"@dynamic-labs/rpc-providers": "4.49.0",
|
|
30
|
+
"@dynamic-labs/starknet-core": "4.49.0",
|
|
31
|
+
"@dynamic-labs/types": "4.49.0",
|
|
32
|
+
"@dynamic-labs/utils": "4.49.0",
|
|
33
|
+
"@dynamic-labs/wallet-book": "4.49.0",
|
|
34
|
+
"@dynamic-labs/wallet-connector-core": "4.49.0",
|
|
35
35
|
"assert": "2.1.0"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {}
|
package/src/index.d.ts
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import { ArgentX } from './wallets/argent/injected/argentx';
|
|
2
|
-
import { ArgentMobile } from './wallets/argent/argentMobile/argentMobile';
|
|
3
|
-
import { WebWallet } from './wallets/argent/webwallet/webwallet';
|
|
4
2
|
import type { ArgentMobileWalletConnectorType } from './wallets/argent/argentMobile/argentMobile';
|
|
5
3
|
import type { WebWalletConnectorType } from './wallets/argent/webwallet/webwallet';
|
|
6
|
-
import { Braavos } from './wallets/injected/braavos';
|
|
7
4
|
import '@dynamic-labs/starknet-core';
|
|
8
|
-
export declare const StarknetWalletConnectors: (props: any) => (import("dist/packages/wallet-connector-core/src").WalletConnectorConstructor | typeof ArgentX
|
|
5
|
+
export declare const StarknetWalletConnectors: (props: any) => (import("dist/packages/wallet-connector-core/src").WalletConnectorConstructor | typeof ArgentX)[];
|
|
9
6
|
export type { StarknetWalletConnectorType } from './StarknetWalletConnector';
|
|
10
7
|
export type { ArgentXWalletConnectorType } from './wallets/argent/injected/argentx';
|
|
11
8
|
export type {
|
|
@@ -13,11 +13,11 @@ class ArgentX extends base.ArgentBase {
|
|
|
13
13
|
super('Ready Wallet (formerly Argent)', 'argentX', 'argentx', opts);
|
|
14
14
|
this.overrideKey = 'argentx';
|
|
15
15
|
}
|
|
16
|
-
prompt() {
|
|
16
|
+
prompt(options) {
|
|
17
17
|
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
18
18
|
const { connectorData, wallet } = yield starknetkit.connect({
|
|
19
19
|
connectors: [new injected.InjectedConnector({ options: { id: this.id } })],
|
|
20
|
-
modalMode: 'canAsk',
|
|
20
|
+
modalMode: options.silently ? 'neverAsk' : 'canAsk',
|
|
21
21
|
});
|
|
22
22
|
return {
|
|
23
23
|
data: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { PromptResult } from '../../../types';
|
|
1
|
+
import { PromptOptions, PromptResult } from '../../../types';
|
|
2
2
|
import { ArgentBase } from '../base';
|
|
3
3
|
export declare class ArgentX extends ArgentBase {
|
|
4
4
|
overrideKey: string;
|
|
5
5
|
constructor(opts: any);
|
|
6
|
-
prompt(): Promise<PromptResult>;
|
|
6
|
+
prompt(options: PromptOptions): Promise<PromptResult>;
|
|
7
7
|
}
|
|
8
8
|
export type ArgentXWalletConnectorType = ArgentX;
|
|
@@ -9,11 +9,11 @@ class ArgentX extends ArgentBase {
|
|
|
9
9
|
super('Ready Wallet (formerly Argent)', 'argentX', 'argentx', opts);
|
|
10
10
|
this.overrideKey = 'argentx';
|
|
11
11
|
}
|
|
12
|
-
prompt() {
|
|
12
|
+
prompt(options) {
|
|
13
13
|
return __awaiter(this, void 0, void 0, function* () {
|
|
14
14
|
const { connectorData, wallet } = yield connect({
|
|
15
15
|
connectors: [new InjectedConnector({ options: { id: this.id } })],
|
|
16
|
-
modalMode: 'canAsk',
|
|
16
|
+
modalMode: options.silently ? 'neverAsk' : 'canAsk',
|
|
17
17
|
});
|
|
18
18
|
return {
|
|
19
19
|
data: {
|