@dynamic-labs/webview-messages 4.59.2 → 4.60.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 +10 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +8 -8
- package/src/index.d.ts +1 -0
- package/src/lib/DelegatedAccessMessages.d.ts +38 -0
- package/src/lib/StoreKeys.d.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,14 @@
|
|
|
1
1
|
|
|
2
|
+
## [4.60.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.59.2...v4.60.0) (2026-02-05)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* add prompt to unlock wallet when getting encrypted shares ([#10333](https://github.com/dynamic-labs/dynamic-auth/issues/10333)) ([7009dfa](https://github.com/dynamic-labs/dynamic-auth/commit/7009dfa315538f4f4ad27ff37e7902f10e1cf019))
|
|
8
|
+
* add stellar sendBalance method ([#10310](https://github.com/dynamic-labs/dynamic-auth/issues/10310)) ([c083ea0](https://github.com/dynamic-labs/dynamic-auth/commit/c083ea0a7caa0cb9095d32897acf677c1b661cb4))
|
|
9
|
+
* **webview-controller:** add DelegatedAccessController ([#10348](https://github.com/dynamic-labs/dynamic-auth/issues/10348)) ([57599e4](https://github.com/dynamic-labs/dynamic-auth/commit/57599e4dd1ad6f4b22f98d49d7fae1a724b719ee))
|
|
10
|
+
* **webview-messages:** add DelegatedAccessMessages types ([#10347](https://github.com/dynamic-labs/dynamic-auth/issues/10347)) ([b0a1275](https://github.com/dynamic-labs/dynamic-auth/commit/b0a12759016fa6f8a76753c2394d589acb18ccf1))
|
|
11
|
+
|
|
2
12
|
### [4.59.2](https://github.com/dynamic-labs/dynamic-auth/compare/v4.59.1...v4.59.2) (2026-02-03)
|
|
3
13
|
|
|
4
14
|
|
package/package.cjs
CHANGED
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/webview-messages",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.60.0",
|
|
4
4
|
"description": "A package to define messages for the webview-controller",
|
|
5
5
|
"author": "Dynamic Labs, Inc.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -20,13 +20,13 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@dynamic-labs/sdk-api-core": "0.0.860",
|
|
22
22
|
"@dynamic-labs-sdk/client": "0.4.0",
|
|
23
|
-
"@dynamic-labs/assert-package-version": "4.
|
|
24
|
-
"@dynamic-labs/locale": "4.
|
|
25
|
-
"@dynamic-labs/logger": "4.
|
|
26
|
-
"@dynamic-labs/message-transport": "4.
|
|
27
|
-
"@dynamic-labs/types": "4.
|
|
28
|
-
"@dynamic-labs/wallet-connector-core": "4.
|
|
29
|
-
"@dynamic-labs/webauthn": "4.
|
|
23
|
+
"@dynamic-labs/assert-package-version": "4.60.0",
|
|
24
|
+
"@dynamic-labs/locale": "4.60.0",
|
|
25
|
+
"@dynamic-labs/logger": "4.60.0",
|
|
26
|
+
"@dynamic-labs/message-transport": "4.60.0",
|
|
27
|
+
"@dynamic-labs/types": "4.60.0",
|
|
28
|
+
"@dynamic-labs/wallet-connector-core": "4.60.0",
|
|
29
|
+
"@dynamic-labs/webauthn": "4.60.0"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {}
|
|
32
32
|
}
|
package/src/index.d.ts
CHANGED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { ChainEnum } from '@dynamic-labs/sdk-api-core';
|
|
2
|
+
import { BaseWallet } from '@dynamic-labs/types';
|
|
3
|
+
export type WalletDelegationStatus = 'delegated' | 'denied' | 'pending';
|
|
4
|
+
export type BaseWalletWithStatus = BaseWallet & {
|
|
5
|
+
status: WalletDelegationStatus;
|
|
6
|
+
isDismissedThisSession?: boolean;
|
|
7
|
+
};
|
|
8
|
+
export type DelegatedAccessState = {
|
|
9
|
+
delegatedAccessEnabled?: boolean;
|
|
10
|
+
requiresDelegation?: boolean;
|
|
11
|
+
walletsDelegatedStatus: BaseWalletWithStatus[];
|
|
12
|
+
};
|
|
13
|
+
export type DelegatedAccessMessages = {
|
|
14
|
+
initDelegationProcess: (params: {
|
|
15
|
+
walletIds?: string[];
|
|
16
|
+
}) => Promise<void>;
|
|
17
|
+
shouldPromptWalletDelegation: () => Promise<boolean>;
|
|
18
|
+
getWalletsDelegatedStatus: () => Promise<BaseWalletWithStatus[]>;
|
|
19
|
+
delegateKeyShares: (params: {
|
|
20
|
+
wallets?: {
|
|
21
|
+
chainName: ChainEnum;
|
|
22
|
+
accountAddress: string;
|
|
23
|
+
}[];
|
|
24
|
+
}) => Promise<void>;
|
|
25
|
+
revokeDelegation: (params: {
|
|
26
|
+
wallets: {
|
|
27
|
+
chainName: ChainEnum;
|
|
28
|
+
accountAddress: string;
|
|
29
|
+
}[];
|
|
30
|
+
}) => Promise<void>;
|
|
31
|
+
denyWalletDelegation: (params: {
|
|
32
|
+
walletId: string;
|
|
33
|
+
}) => Promise<void>;
|
|
34
|
+
dismissDelegationPrompt: (params: {
|
|
35
|
+
walletId?: string;
|
|
36
|
+
}) => Promise<void>;
|
|
37
|
+
clearDelegationSessionState: () => Promise<void>;
|
|
38
|
+
};
|
package/src/lib/StoreKeys.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export type StoreKeys = 'auth' | 'sdk' | 'wallets' | 'embeddedWallets' | 'platform' | 'userInterface' | 'otp' | 'networks';
|
|
1
|
+
export type StoreKeys = 'auth' | 'sdk' | 'wallets' | 'embeddedWallets' | 'platform' | 'userInterface' | 'otp' | 'networks' | 'delegatedAccess';
|