@jaw.id/ui 1.1.2 → 1.2.1
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/components/OnboardingDialog/accountHelpers.d.ts +12 -0
- package/dist/components/OnboardingDialog/accountHelpers.d.ts.map +1 -0
- package/dist/components/OnboardingDialog/index.d.ts +2 -1
- package/dist/components/OnboardingDialog/index.d.ts.map +1 -1
- package/dist/components/OnboardingDialog/selectDefaultAccount.d.ts +12 -0
- package/dist/components/OnboardingDialog/selectDefaultAccount.d.ts.map +1 -0
- package/dist/components/OnboardingDialog/types.d.ts +11 -0
- package/dist/components/OnboardingDialog/types.d.ts.map +1 -1
- package/dist/components/TransactionDialog/AssetPreview.d.ts +10 -0
- package/dist/components/TransactionDialog/AssetPreview.d.ts.map +1 -0
- package/dist/components/TransactionDialog/index.d.ts +1 -1
- package/dist/components/TransactionDialog/index.d.ts.map +1 -1
- package/dist/components/TransactionDialog/types.d.ts +4 -0
- package/dist/components/TransactionDialog/types.d.ts.map +1 -1
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/useAssetPreview.d.ts +21 -0
- package/dist/hooks/useAssetPreview.d.ts.map +1 -0
- package/dist/index.css +1 -1
- package/dist/index.js +11178 -10871
- package/dist/react/ReactUIHandler.d.ts.map +1 -1
- package/dist/{smartAccount-DA5m3LVe.js → smartAccount-DYk6CqRF.js} +1 -1
- package/dist/utils/assetPreview.d.ts +43 -0
- package/dist/utils/assetPreview.d.ts.map +1 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type PasskeyAccount } from '@jaw.id/core';
|
|
2
|
+
import type { LocalStorageAccount } from './types';
|
|
3
|
+
/** Map a stored core account to the OnboardingDialog account shape. */
|
|
4
|
+
export declare function toLocalStorageAccount(account: PasskeyAccount): LocalStorageAccount;
|
|
5
|
+
/** Stored accounts in the OnboardingDialog account shape. */
|
|
6
|
+
export declare function getStoredLocalAccounts(apiKey?: string): LocalStorageAccount[];
|
|
7
|
+
/**
|
|
8
|
+
* credentialId of the currently-authenticated account (from jaw:passkey:authState),
|
|
9
|
+
* used to pick the "Continue as" default in OnboardingDialog.
|
|
10
|
+
*/
|
|
11
|
+
export declare function getLastAuthenticatedCredentialId(apiKey?: string): string | null;
|
|
12
|
+
//# sourceMappingURL=accountHelpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accountHelpers.d.ts","sourceRoot":"","sources":["../../../src/components/OnboardingDialog/accountHelpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AAC5D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAEnD,uEAAuE;AACvE,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,cAAc,GAAG,mBAAmB,CAOlF;AAED,6DAA6D;AAC7D,wBAAgB,sBAAsB,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,mBAAmB,EAAE,CAE7E;AAED;;;GAGG;AACH,wBAAgB,gCAAgC,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAE/E"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { OnboardingDialogProps } from './types';
|
|
2
|
-
export declare function OnboardingDialog({ accounts, onAccountSelect, loggingInAccount, onImportAccount, isImporting, onCreateAccount, onAccountCreationComplete, isCreating, ensDomain, chainId, mainnetRpcUrl, apiKey, supportedChains, subnameTextRecords, }: OnboardingDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare function OnboardingDialog({ accounts, onAccountSelect, loggingInAccount, onImportAccount, isImporting, onCreateAccount, onAccountCreationComplete, onAccountCreationError, isCreating, ensDomain, chainId, mainnetRpcUrl, apiKey, supportedChains, subnameTextRecords, lastAuthenticatedCredentialId, }: OnboardingDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export * from './types';
|
|
4
|
+
export * from './accountHelpers';
|
|
4
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/OnboardingDialog/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/OnboardingDialog/index.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AA4OhD,wBAAgB,gBAAgB,CAAC,EAC/B,QAAQ,EACR,eAAe,EACf,gBAAgB,EAChB,eAAe,EACf,WAAW,EACX,eAAe,EACf,yBAAyB,EACzB,sBAAsB,EACtB,UAAU,EACV,SAAS,EACT,OAAO,EACP,aAAa,EACb,MAAM,EACN,eAAe,EACf,kBAAkB,EAClB,6BAA6B,GAC9B,EAAE,qBAAqB,2CAyGvB;AAED,cAAc,SAAS,CAAC;AACxB,cAAc,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { LocalStorageAccount } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Choose the account to show in the "Continue with X" screen (Layout A).
|
|
4
|
+
*
|
|
5
|
+
* Precedence:
|
|
6
|
+
* 1. No accounts -> null (caller shows Layout B / "Sign In").
|
|
7
|
+
* 2. Last signed-in -> the account whose credentialId matches
|
|
8
|
+
* `lastAuthenticatedCredentialId` (from jaw:passkey:authState).
|
|
9
|
+
* 3. Fallback -> the account with the most recent creationDate.
|
|
10
|
+
*/
|
|
11
|
+
export declare function selectDefaultAccount(accounts: LocalStorageAccount[], lastAuthenticatedCredentialId?: string | null): LocalStorageAccount | null;
|
|
12
|
+
//# sourceMappingURL=selectDefaultAccount.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"selectDefaultAccount.d.ts","sourceRoot":"","sources":["../../../src/components/OnboardingDialog/selectDefaultAccount.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAEnD;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,CAClC,QAAQ,EAAE,mBAAmB,EAAE,EAC/B,6BAA6B,CAAC,EAAE,MAAM,GAAG,IAAI,GAC5C,mBAAmB,GAAG,IAAI,CAU5B"}
|
|
@@ -23,11 +23,22 @@ export interface OnboardingDialogProps {
|
|
|
23
23
|
isImporting: boolean;
|
|
24
24
|
onCreateAccount: (username: string) => Promise<CreatedAccountData>;
|
|
25
25
|
onAccountCreationComplete: (account: CreatedAccountData) => Promise<void>;
|
|
26
|
+
/**
|
|
27
|
+
* Called when the create flow fails after onCreateAccount resolved (e.g. subname
|
|
28
|
+
* registration), so hosts managing isCreating themselves can reset it.
|
|
29
|
+
*/
|
|
30
|
+
onAccountCreationError?: (error: unknown) => void;
|
|
26
31
|
isCreating: boolean;
|
|
27
32
|
ensDomain?: string;
|
|
28
33
|
chainId?: number;
|
|
29
34
|
mainnetRpcUrl: string;
|
|
30
35
|
apiKey?: string;
|
|
36
|
+
/**
|
|
37
|
+
* credentialId of the currently-authenticated account (from jaw:passkey:authState).
|
|
38
|
+
* Used to pick the "Continue with X" default. When it does not match any stored
|
|
39
|
+
* account, the most recently created account is used instead.
|
|
40
|
+
*/
|
|
41
|
+
lastAuthenticatedCredentialId?: string | null;
|
|
31
42
|
supportedChains?: Array<{
|
|
32
43
|
id: number;
|
|
33
44
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/OnboardingDialog/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,cAAc,CAAC;AAEvE,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,IAAI,CA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+
assetsOut: AssetDelta[];
|
|
4
|
+
assetsIn: AssetDelta[];
|
|
5
|
+
error: boolean;
|
|
6
|
+
nativeSymbol: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const AssetPreview: ({ assetsOut, assetsIn, error, nativeSymbol }: AssetPreviewProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=AssetPreview.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AssetPreview.d.ts","sourceRoot":"","sources":["../../../src/components/TransactionDialog/AssetPreview.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAqB,MAAM,0BAA0B,CAAC;AAGzE,UAAU,iBAAiB;IACzB,SAAS,EAAE,UAAU,EAAE,CAAC;IACxB,QAAQ,EAAE,UAAU,EAAE,CAAC;IACvB,KAAK,EAAE,OAAO,CAAC;IACf,YAAY,EAAE,MAAM,CAAC;CACtB;AAiDD,eAAO,MAAM,YAAY,GAAI,8CAA8C,iBAAiB,mDA4B3F,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { TransactionDialogProps } from './types';
|
|
2
|
-
export declare const TransactionDialog: ({ transactions, walletAddress, gasFee, gasFeeLoading, gasEstimationError, sponsored, onConfirm, onCancel, isProcessing, transactionStatus, networkName, apiKey, feeTokens, feeTokensLoading, selectedFeeToken, onFeeTokenSelect, showFeeTokenSelector, isPayingWithErc20, mainnetRpcUrl, nativeCurrencySymbol, }: TransactionDialogProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const TransactionDialog: ({ transactions, walletAddress, gasFee, gasFeeLoading, gasEstimationError, sponsored, assetsOut, assetsIn, assetPreviewError, onConfirm, onCancel, isProcessing, transactionStatus, networkName, apiKey, feeTokens, feeTokensLoading, selectedFeeToken, onFeeTokenSelect, showFeeTokenSelector, isPayingWithErc20, mainnetRpcUrl, nativeCurrencySymbol, }: TransactionDialogProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export * from './types';
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/TransactionDialog/index.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/TransactionDialog/index.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAQjD,eAAO,MAAM,iBAAiB,GAAI,0VA4B/B,sBAAsB,4CAs0BxB,CAAC;AAEF,cAAc,SAAS,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { FeeTokenOption } from '../FeeTokenSelector';
|
|
2
|
+
import { AssetDelta } from '../../utils/assetPreview';
|
|
2
3
|
export interface TransactionData {
|
|
3
4
|
to: string;
|
|
4
5
|
data?: string;
|
|
@@ -17,6 +18,9 @@ export interface TransactionDialogProps {
|
|
|
17
18
|
gasFeeLoading: boolean;
|
|
18
19
|
gasEstimationError: string;
|
|
19
20
|
sponsored: boolean;
|
|
21
|
+
assetsOut?: AssetDelta[];
|
|
22
|
+
assetsIn?: AssetDelta[];
|
|
23
|
+
assetPreviewError?: boolean;
|
|
20
24
|
onConfirm: () => Promise<void>;
|
|
21
25
|
onCancel: () => void;
|
|
22
26
|
isProcessing: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/TransactionDialog/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/TransactionDialog/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACr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CAAC,EAAE,OAAO,CAAC;IAG5B,aAAa,EAAE,MAAM,CAAC;IAGtB,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B"}
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ export * from './useIsMobile';
|
|
|
2
2
|
export * from './useChainIconURI';
|
|
3
3
|
export * from './useFeeTokenPrice';
|
|
4
4
|
export * from './useGasEstimation';
|
|
5
|
+
export * from './useAssetPreview';
|
|
5
6
|
export * from './useDecodedCalldata';
|
|
6
7
|
export * from './useClearSigningTypedData';
|
|
7
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,4BAA4B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,4BAA4B,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { Address } from 'viem';
|
|
2
|
+
import type { TransactionCall } from '@jaw.id/core';
|
|
3
|
+
import { type AssetDelta } from '../utils/assetPreview';
|
|
4
|
+
export interface UseAssetPreviewConfig {
|
|
5
|
+
account?: Address;
|
|
6
|
+
calls: TransactionCall[];
|
|
7
|
+
chainId: number;
|
|
8
|
+
apiKey?: string;
|
|
9
|
+
enabled?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export interface UseAssetPreviewResult {
|
|
12
|
+
assetsOut: AssetDelta[];
|
|
13
|
+
assetsIn: AssetDelta[];
|
|
14
|
+
error: boolean;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Simulate a batch and split the net balance changes into outgoing/incoming.
|
|
18
|
+
* Errors are swallowed into `error` so a failed/unsupported simulation never blocks signing.
|
|
19
|
+
*/
|
|
20
|
+
export declare function useAssetPreview({ account, calls, chainId, apiKey, enabled, }: UseAssetPreviewConfig): UseAssetPreviewResult;
|
|
21
|
+
//# sourceMappingURL=useAssetPreview.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAssetPreview.d.ts","sourceRoot":"","sources":["../../src/hooks/useAssetPreview.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AACpC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAwB,KAAK,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAE9E,MAAM,WAAW,qBAAqB;IACpC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,EAAE,eAAe,EAAE,CAAC;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,qBAAqB;IACpC,SAAS,EAAE,UAAU,EAAE,CAAC;IACxB,QAAQ,EAAE,UAAU,EAAE,CAAC;IACvB,KAAK,EAAE,OAAO,CAAC;CAChB;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,EAC9B,OAAO,EACP,KAAK,EACL,OAAO,EACP,MAAM,EACN,OAAc,GACf,EAAE,qBAAqB,GAAG,qBAAqB,CAsC/C"}
|