@jaw.id/ui 0.3.0 → 0.4.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-Ccf5DW0M.js → ccip-BaE8Nb4B.js} +1 -1
- package/dist/components/Eip712Dialog/index.d.ts.map +1 -1
- package/dist/components/TransactionDialog/ClearSignedView.d.ts +9 -0
- package/dist/components/TransactionDialog/ClearSignedView.d.ts.map +1 -0
- package/dist/components/TransactionDialog/DecodedCalldata.d.ts.map +1 -1
- package/dist/components/TransactionDialog/index.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/useClearSigningTypedData.d.ts +13 -0
- package/dist/hooks/useClearSigningTypedData.d.ts.map +1 -0
- package/dist/hooks/useDecodedCalldata.d.ts +12 -2
- package/dist/hooks/useDecodedCalldata.d.ts.map +1 -1
- package/dist/{index-UyXBL6E3.js → index-D1Fqo6z9.js} +17678 -17096
- package/dist/index.css +1 -1
- package/dist/index.js +54 -43
- package/dist/utils/clearSigning.d.ts +161 -0
- package/dist/utils/clearSigning.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
|
@@ -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-D1Fqo6z9.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/Eip712Dialog/index.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Eip712Dialog/index.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AA0P5C,eAAO,MAAM,YAAY,GAAI,mLAgB1B,iBAAiB,4CA2OnB,CAAC;AAEF,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ClearSigningDisplay } from '../../utils/clearSigning';
|
|
2
|
+
interface ClearSignedViewProps {
|
|
3
|
+
display: ClearSigningDisplay;
|
|
4
|
+
chainId: number;
|
|
5
|
+
mainnetRpcUrl?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const ClearSignedView: ({ display, chainId, mainnetRpcUrl }: ClearSignedViewProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=ClearSignedView.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ClearSignedView.d.ts","sourceRoot":"","sources":["../../../src/components/TransactionDialog/ClearSignedView.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAc,MAAM,0BAA0B,CAAC;AAGhF,UAAU,oBAAoB;IAC5B,OAAO,EAAE,mBAAmB,CAAC;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AA0BD,eAAO,MAAM,eAAe,GAAI,qCAAqC,oBAAoB,mDAmExF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DecodedCalldata.d.ts","sourceRoot":"","sources":["../../../src/components/TransactionDialog/DecodedCalldata.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DecodedCalldata.d.ts","sourceRoot":"","sources":["../../../src/components/TransactionDialog/DecodedCalldata.tsx"],"names":[],"mappings":"AAQA,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,4CAgLtB,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;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/TransactionDialog/index.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAMjD,eAAO,MAAM,iBAAiB,GAAI,kTAyB/B,sBAAsB,4CAsyBxB,CAAC;AAEF,cAAc,SAAS,CAAC"}
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -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"}
|
|
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"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ClearSigningDisplay } from '../utils/clearSigning';
|
|
2
|
+
interface UseClearSigningTypedDataResult {
|
|
3
|
+
display: ClearSigningDisplay | null;
|
|
4
|
+
isLoading: boolean;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Resolve an ERC-7730 descriptor for `(chainId, verifyingContract, primaryType)`
|
|
8
|
+
* and produce a ClearSigningDisplay over the typed-data message.
|
|
9
|
+
* Returns `display: null` when no descriptor matches.
|
|
10
|
+
*/
|
|
11
|
+
export declare function useClearSigningTypedData(typedDataJson: string | undefined, chainId: number, apiKey?: string): UseClearSigningTypedDataResult;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=useClearSigningTypedData.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useClearSigningTypedData.d.ts","sourceRoot":"","sources":["../../src/hooks/useClearSigningTypedData.ts"],"names":[],"mappings":"AACA,OAAO,EAML,KAAK,mBAAmB,EACzB,MAAM,uBAAuB,CAAC;AAS/B,UAAU,8BAA8B;IACtC,OAAO,EAAE,mBAAmB,GAAG,IAAI,CAAC;IACpC,SAAS,EAAE,OAAO,CAAC;CACpB;AAED;;;;GAIG;AACH,wBAAgB,wBAAwB,CACtC,aAAa,EAAE,MAAM,GAAG,SAAS,EACjC,OAAO,EAAE,MAAM,EACf,MAAM,CAAC,EAAE,MAAM,GACd,8BAA8B,CA8EhC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ClearSigningDisplay } from '../utils/clearSigning';
|
|
1
2
|
export interface DecodedParam {
|
|
2
3
|
name: string;
|
|
3
4
|
type: string;
|
|
@@ -9,8 +10,17 @@ export interface DecodedCalldata {
|
|
|
9
10
|
signature: string;
|
|
10
11
|
params: DecodedParam[];
|
|
11
12
|
}
|
|
12
|
-
|
|
13
|
+
/**
|
|
14
|
+
* Result of attempting to decode calldata.
|
|
15
|
+
* - `clearSigned` is set when the contract has an ERC-7730 descriptor in the public registry.
|
|
16
|
+
* - `decoded` is set when whatsabi's bytecode-based ABI extraction succeeds.
|
|
17
|
+
* Both may be set: the clear-signed view renders on top, the raw view sits under "Show raw details".
|
|
18
|
+
* Neither may be set if the contract is unknown to both pipelines.
|
|
19
|
+
*/
|
|
20
|
+
export interface DecodeResult {
|
|
21
|
+
clearSigned: ClearSigningDisplay | null;
|
|
13
22
|
decoded: DecodedCalldata | null;
|
|
14
23
|
isLoading: boolean;
|
|
15
|
-
}
|
|
24
|
+
}
|
|
25
|
+
export declare function useDecodedCalldata(to: string | undefined, data: string | undefined, chainId: number, apiKey?: string): DecodeResult;
|
|
16
26
|
//# sourceMappingURL=useDecodedCalldata.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDecodedCalldata.d.ts","sourceRoot":"","sources":["../../src/hooks/useDecodedCalldata.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useDecodedCalldata.d.ts","sourceRoot":"","sources":["../../src/hooks/useDecodedCalldata.ts"],"names":[],"mappings":"AAIA,OAAO,EAOL,KAAK,mBAAmB,EACzB,MAAM,uBAAuB,CAAC;AAE/B,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,eAAe;IAC9B,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,YAAY,EAAE,CAAC;CACxB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,YAAY;IAC3B,WAAW,EAAE,mBAAmB,GAAG,IAAI,CAAC;IACxC,OAAO,EAAE,eAAe,GAAG,IAAI,CAAC;IAChC,SAAS,EAAE,OAAO,CAAC;CACpB;AAsFD,wBAAgB,kBAAkB,CAChC,EAAE,EAAE,MAAM,GAAG,SAAS,EACtB,IAAI,EAAE,MAAM,GAAG,SAAS,EACxB,OAAO,EAAE,MAAM,EACf,MAAM,CAAC,EAAE,MAAM,GACd,YAAY,CA8Bd"}
|