@reef-knot/core-react 1.6.0 → 1.7.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/chains/index.d.ts.map +1 -1
- package/dist/context/acceptTermsModal.d.ts +2 -0
- package/dist/context/acceptTermsModal.d.ts.map +1 -1
- package/dist/context/acceptTermsModal.js +5 -2
- package/dist/context/index.d.ts.map +1 -1
- package/dist/context/reefKnot.d.ts +1 -0
- package/dist/context/reefKnot.d.ts.map +1 -1
- package/dist/context/reefKnot.js +3 -2
- package/package.json +9 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/chains/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/chains/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC"}
|
|
@@ -5,6 +5,8 @@ export type AcceptTermsModalContextValue = {
|
|
|
5
5
|
setVisible: React.Dispatch<React.SetStateAction<boolean>>;
|
|
6
6
|
onContinue: () => void;
|
|
7
7
|
setOnContinue: React.Dispatch<React.SetStateAction<() => void>>;
|
|
8
|
+
error?: Error;
|
|
9
|
+
setError: React.Dispatch<React.SetStateAction<Error | undefined>>;
|
|
8
10
|
};
|
|
9
11
|
};
|
|
10
12
|
export declare const AcceptTermsModalContext: React.Context<AcceptTermsModalContextValue>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acceptTermsModal.d.ts","sourceRoot":"","sources":["../../src/context/acceptTermsModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAiB,EAAE,EAAqB,MAAM,OAAO,CAAC;AAEpE,MAAM,MAAM,4BAA4B,GAAG;IACzC,gBAAgB,EAAE;QAChB,SAAS,EAAE,OAAO,CAAC;QACnB,UAAU,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;QAC1D,UAAU,EAAE,MAAM,IAAI,CAAC;QACvB,aAAa,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,IAAI,CAAC,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"acceptTermsModal.d.ts","sourceRoot":"","sources":["../../src/context/acceptTermsModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAiB,EAAE,EAAqB,MAAM,OAAO,CAAC;AAEpE,MAAM,MAAM,4BAA4B,GAAG;IACzC,gBAAgB,EAAE;QAChB,SAAS,EAAE,OAAO,CAAC;QACnB,UAAU,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;QAC1D,UAAU,EAAE,MAAM,IAAI,CAAC;QACvB,aAAa,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,IAAI,CAAC,CAAC,CAAC;QAChE,KAAK,CAAC,EAAE,KAAK,CAAC;QACd,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,GAAG,SAAS,CAAC,CAAC,CAAC;KACnE,CAAC;CACH,CAAC;AAKF,eAAO,MAAM,uBAAuB,6CAKF,CAAC;AAEnC,eAAO,MAAM,+BAA+B,EAAE,EA8B7C,CAAC"}
|
|
@@ -13,14 +13,17 @@ const AcceptTermsModalContextProvider = ({
|
|
|
13
13
|
}) => {
|
|
14
14
|
const [isAcceptTermsModalVisible, setIsAcceptTermsModalVisible] = useState(isVisibleDefaultValue);
|
|
15
15
|
const [onAcceptTermsModalContinue, setOnAcceptTermsModalContinue] = useState(() => onContinueDefaultValue);
|
|
16
|
+
const [error, setError] = useState(undefined);
|
|
16
17
|
const contextValue = useMemo(() => ({
|
|
17
18
|
acceptTermsModal: {
|
|
18
19
|
isVisible: isAcceptTermsModalVisible,
|
|
19
20
|
setVisible: setIsAcceptTermsModalVisible,
|
|
20
21
|
onContinue: onAcceptTermsModalContinue,
|
|
21
|
-
setOnContinue: setOnAcceptTermsModalContinue
|
|
22
|
+
setOnContinue: setOnAcceptTermsModalContinue,
|
|
23
|
+
error,
|
|
24
|
+
setError
|
|
22
25
|
}
|
|
23
|
-
}), [isAcceptTermsModalVisible, onAcceptTermsModalContinue]);
|
|
26
|
+
}), [error, isAcceptTermsModalVisible, onAcceptTermsModalContinue]);
|
|
24
27
|
return React.createElement(AcceptTermsModalContext.Provider, {
|
|
25
28
|
value: contextValue
|
|
26
29
|
}, children);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/context/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/context/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC"}
|
|
@@ -10,6 +10,7 @@ export interface ReefKnotContextProps {
|
|
|
10
10
|
export type ReefKnotContextValue = {
|
|
11
11
|
rpc: Record<number, string>;
|
|
12
12
|
walletDataList: WalletAdapterData[];
|
|
13
|
+
chains: Chain[];
|
|
13
14
|
};
|
|
14
15
|
export declare const ReefKnotContext: React.Context<ReefKnotContextValue>;
|
|
15
16
|
export declare const ReefKnot: FC<ReefKnotContextProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reefKnot.d.ts","sourceRoot":"","sources":["../../src/context/reefKnot.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAiB,EAAE,EAAW,MAAM,OAAO,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAKrC,MAAM,WAAW,oBAAoB;IACnC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC5B,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,MAAM,EAAE,KAAK,EAAE,CAAC;IAChB,YAAY,CAAC,EAAE,KAAK,CAAC;CACtB;AAED,MAAM,MAAM,oBAAoB,GAAG;IACjC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC5B,cAAc,EAAE,iBAAiB,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"reefKnot.d.ts","sourceRoot":"","sources":["../../src/context/reefKnot.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAiB,EAAE,EAAW,MAAM,OAAO,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAKrC,MAAM,WAAW,oBAAoB;IACnC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC5B,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,MAAM,EAAE,KAAK,EAAE,CAAC;IAChB,YAAY,CAAC,EAAE,KAAK,CAAC;CACtB;AAED,MAAM,MAAM,oBAAoB,GAAG;IACjC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC5B,cAAc,EAAE,iBAAiB,EAAE,CAAC;IACpC,MAAM,EAAE,KAAK,EAAE,CAAC;CACjB,CAAC;AAEF,eAAO,MAAM,eAAe,qCAA4C,CAAC;AAEzE,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAC,oBAAoB,CA8B7C,CAAC"}
|
package/dist/context/reefKnot.js
CHANGED
|
@@ -19,8 +19,9 @@ const ReefKnot = ({
|
|
|
19
19
|
});
|
|
20
20
|
const contextValue = useMemo(() => ({
|
|
21
21
|
rpc,
|
|
22
|
-
walletDataList
|
|
23
|
-
|
|
22
|
+
walletDataList,
|
|
23
|
+
chains
|
|
24
|
+
}), [rpc, walletDataList, chains]);
|
|
24
25
|
return React.createElement(ReefKnotContext.Provider, {
|
|
25
26
|
value: contextValue
|
|
26
27
|
}, React.createElement(AcceptTermsModalContextProvider, null, React.createElement(WCWarnBannerContextProvider, null, children)));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reef-knot/core-react",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.0",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -34,20 +34,21 @@
|
|
|
34
34
|
"scripts": {
|
|
35
35
|
"build": "rollup -c",
|
|
36
36
|
"dev": "dev=on rollup -c -w",
|
|
37
|
-
"lint": "eslint"
|
|
37
|
+
"lint": "eslint --ext ts,tsx,js,mjs ."
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"react": "17.0.2",
|
|
41
|
-
"wagmi": "^0.12.19",
|
|
42
40
|
"@reef-knot/wallets-list": "^1.4.4",
|
|
43
41
|
"@reef-knot/types": "^1.3.0",
|
|
44
|
-
"@reef-knot/ui-react": "^1.0.7"
|
|
42
|
+
"@reef-knot/ui-react": "^1.0.7",
|
|
43
|
+
"eslint-config-custom": "*",
|
|
44
|
+
"react": "17.0.2",
|
|
45
|
+
"wagmi": "^0.12.19"
|
|
45
46
|
},
|
|
46
47
|
"peerDependencies": {
|
|
47
|
-
"react": ">=17",
|
|
48
|
-
"wagmi": "^0.12.19",
|
|
49
48
|
"@reef-knot/wallets-list": "^1.4.1",
|
|
50
49
|
"@reef-knot/types": "^1.2.1",
|
|
51
|
-
"@reef-knot/ui-react": "^1.0.4"
|
|
50
|
+
"@reef-knot/ui-react": "^1.0.4",
|
|
51
|
+
"react": ">=17",
|
|
52
|
+
"wagmi": "^0.12.19"
|
|
52
53
|
}
|
|
53
54
|
}
|