@jaw.id/ui 0.1.10 → 0.2.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/dist/{ccip-DyQ0l5E2.js → ccip-BfAhePO-.js} +1 -1
- package/dist/components/ConnectDialog/index.d.ts.map +1 -1
- package/dist/components/Eip712Dialog/index.d.ts.map +1 -1
- package/dist/components/PermissionDialog/index.d.ts.map +1 -1
- package/dist/components/SignatureDialog/index.d.ts.map +1 -1
- package/dist/components/SiweDialog/index.d.ts.map +1 -1
- package/dist/components/TransactionDialog/DecodedCalldata.d.ts.map +1 -1
- package/dist/components/TransactionDialog/index.d.ts.map +1 -1
- package/dist/hooks/useGasEstimation.d.ts +4 -2
- package/dist/hooks/useGasEstimation.d.ts.map +1 -1
- package/dist/{index-DYd0y78X.js → index-CeOEl89-.js} +14233 -14044
- package/dist/index.css +1 -1
- package/dist/index.js +17 -16
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/resolveChainLabel.d.ts +9 -0
- package/dist/utils/resolveChainLabel.d.ts.map +1 -0
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as p, g as m, s as w, d as k, i as b, l as L, a as O, c as R, b as E, e as x, H as y, f as M } from "./index-
|
|
1
|
+
import { B as p, g as m, s as w, d as k, i as b, l as L, a as O, c as R, b as E, e as x, H as y, f as M } from "./index-CeOEl89-.js";
|
|
2
2
|
class S extends p {
|
|
3
3
|
constructor({ callbackSelector: s, cause: e, data: o, extraData: n, sender: c, urls: t }) {
|
|
4
4
|
super(e.shortMessage || "An error occurred while fetching for an offchain result.", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ConnectDialog/index.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ConnectDialog/index.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAI7C,eAAO,MAAM,aAAa,GAAI,+LAiB3B,kBAAkB,4CA6NpB,CAAC;AAEF,cAAc,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Eip712Dialog/index.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAyP5C,eAAO,MAAM,YAAY,GAAI,mLAgB1B,iBAAiB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Eip712Dialog/index.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAyP5C,eAAO,MAAM,YAAY,GAAI,mLAgB1B,iBAAiB,4CA2MnB,CAAC;AAEF,cAAc,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/PermissionDialog/index.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/PermissionDialog/index.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAOhD,eAAO,MAAM,gBAAgB,GAAI,waAmC9B,qBAAqB,4CA6gBvB,CAAC;AAEF,cAAc,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/SignatureDialog/index.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAK/C,eAAO,MAAM,eAAe,GAAI,6KAgB7B,oBAAoB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/SignatureDialog/index.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAK/C,eAAO,MAAM,eAAe,GAAI,6KAgB7B,oBAAoB,4CA8ItB,CAAC;AAEF,cAAc,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/SiweDialog/index.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE1C,eAAO,MAAM,UAAU,GAAI,qMAkBxB,eAAe,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/SiweDialog/index.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE1C,eAAO,MAAM,UAAU,GAAI,qMAkBxB,eAAe,4CAqLjB,CAAC;AAEF,cAAc,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DecodedCalldata.d.ts","sourceRoot":"","sources":["../../../src/components/TransactionDialog/DecodedCalldata.tsx"],"names":[],"mappings":"AAOA,UAAU,oBAAoB;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,iBAAiB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC3C,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,eAAO,MAAM,eAAe,GAAI,kEAO7B,oBAAoB,
|
|
1
|
+
{"version":3,"file":"DecodedCalldata.d.ts","sourceRoot":"","sources":["../../../src/components/TransactionDialog/DecodedCalldata.tsx"],"names":[],"mappings":"AAOA,UAAU,oBAAoB;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,iBAAiB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC3C,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,eAAO,MAAM,eAAe,GAAI,kEAO7B,oBAAoB,4CAsItB,CAAC"}
|
|
@@ -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;AAKjD,eAAO,MAAM,iBAAiB,GAAI,kTAyB/B,sBAAsB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/TransactionDialog/index.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAKjD,eAAO,MAAM,iBAAiB,GAAI,kTAyB/B,sBAAsB,4CAsuBxB,CAAC;AAEF,cAAc,SAAS,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Hex } from 'viem';
|
|
1
|
+
import { Address, Hex } from 'viem';
|
|
2
2
|
import { Account, TokenEstimate, TransactionCall } from '../../../core/src/index.ts';
|
|
3
3
|
import { FeeTokenOption } from '../components/FeeTokenSelector';
|
|
4
4
|
export type { TransactionCall } from '../../../core/src/index.ts';
|
|
@@ -20,6 +20,8 @@ export interface UseGasEstimationConfig {
|
|
|
20
20
|
isSponsored?: boolean;
|
|
21
21
|
/** Optional permission ID for permission-based execution */
|
|
22
22
|
permissionId?: Hex;
|
|
23
|
+
/** Override account address — estimate gas for a different account this passkey owns */
|
|
24
|
+
address?: Address;
|
|
23
25
|
/** Callback when fee tokens are updated with estimates */
|
|
24
26
|
onFeeTokensUpdate?: (tokens: FeeTokenOption[]) => void;
|
|
25
27
|
}
|
|
@@ -73,5 +75,5 @@ export interface UseGasEstimationResult {
|
|
|
73
75
|
* });
|
|
74
76
|
* ```
|
|
75
77
|
*/
|
|
76
|
-
export declare function useGasEstimation({ account, transactionCalls, chainId, apiKey, feeTokens, isSponsored, permissionId, onFeeTokensUpdate, }: UseGasEstimationConfig): UseGasEstimationResult;
|
|
78
|
+
export declare function useGasEstimation({ account, transactionCalls, chainId, apiKey, feeTokens, isSponsored, permissionId, address, onFeeTokensUpdate, }: UseGasEstimationConfig): UseGasEstimationResult;
|
|
77
79
|
//# sourceMappingURL=useGasEstimation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useGasEstimation.d.ts","sourceRoot":"","sources":["../../src/hooks/useGasEstimation.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"useGasEstimation.d.ts","sourceRoot":"","sources":["../../src/hooks/useGasEstimation.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AACzC,OAAO,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAE5E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAOrE,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAEpD;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,+CAA+C;IAC/C,OAAO,EAAE,OAAO,GAAG,IAAI,CAAC;IACxB,6CAA6C;IAC7C,gBAAgB,EAAE,eAAe,EAAE,CAAC;IACpC,kCAAkC;IAClC,OAAO,EAAE,MAAM,CAAC;IAChB,mCAAmC;IACnC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,0CAA0C;IAC1C,SAAS,EAAE,cAAc,EAAE,CAAC;IAC5B,sEAAsE;IACtE,WAAW,CAAC,EAAE,OAAO,CAAC;IACt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