@arcblock/did-connect-react 3.3.4 → 3.3.5
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/lib/Connect/components/back-button.js +13 -12
- package/lib/Connect/components/login-item/connect-provider-list.js +187 -158
- package/lib/Connect/components/login-item/mobile-login-item.js +42 -40
- package/lib/Connect/components/login-item/wallet-login-options.js +109 -0
- package/lib/Connect/components/login-item/web-login-item.js +64 -59
- package/lib/Connect/contexts/state.js +66 -63
- package/lib/Connect/index.js +286 -264
- package/lib/package.json.js +1 -1
- package/package.json +5 -5
- package/src/Connect/components/back-button.jsx +3 -2
- package/src/Connect/components/login-item/connect-provider-list.jsx +133 -97
- package/src/Connect/components/login-item/mobile-login-item.jsx +3 -1
- package/src/Connect/components/login-item/wallet-login-options.jsx +116 -0
- package/src/Connect/components/login-item/web-login-item.jsx +10 -2
- package/src/Connect/contexts/state.jsx +5 -0
- package/src/Connect/index.jsx +77 -41
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { jsxs as c, Fragment as f, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import o from "prop-types";
|
|
3
|
+
import { Box as t, Divider as R } from "@mui/material";
|
|
4
|
+
import { LOGIN_PROVIDER as d } from "@arcblock/ux/lib/Util/constant";
|
|
5
|
+
import { checkSameProtocol as k, getWebWalletUrl as C } from "@arcblock/ux/lib/Util/wallet";
|
|
6
|
+
import { detectWalletExtension as W } from "@arcblock/ux/lib/Util";
|
|
7
|
+
import { useCreation as q } from "ahooks";
|
|
8
|
+
import { useBrowser as j } from "@arcblock/react-hooks";
|
|
9
|
+
import T from "./mobile-login-item.js";
|
|
10
|
+
import B from "./web-login-item.js";
|
|
11
|
+
import P from "../back-button.js";
|
|
12
|
+
import { useStateContext as v } from "../../contexts/state.js";
|
|
13
|
+
function E({
|
|
14
|
+
qrcode: p,
|
|
15
|
+
tokenState: r,
|
|
16
|
+
webWalletUrl: n = C(),
|
|
17
|
+
size: l = "small",
|
|
18
|
+
disableSwitchApp: m = !1,
|
|
19
|
+
tokenKey: u,
|
|
20
|
+
walletLoginRef: b = null,
|
|
21
|
+
webLoginRef: x = null,
|
|
22
|
+
onMobileLoginClick: g,
|
|
23
|
+
onWebLoginClick: h,
|
|
24
|
+
onBack: L
|
|
25
|
+
}) {
|
|
26
|
+
const { locale: w } = v(), i = j(), y = k(n), s = W(), a = q(() => i.mobile.tablet || !i.mobile.any && window?.navigator?.maxTouchPoints > 0, [i.mobile.tablet, i.mobile.any]);
|
|
27
|
+
return /* @__PURE__ */ c(f, { children: [
|
|
28
|
+
p,
|
|
29
|
+
/* @__PURE__ */ c(t, { sx: { width: "100%", display: "flex", flexDirection: "column", gap: 1.5 }, children: [
|
|
30
|
+
/* @__PURE__ */ e(t, { sx: { width: "100%" }, children: /* @__PURE__ */ e(
|
|
31
|
+
R,
|
|
32
|
+
{
|
|
33
|
+
orientation: "horizontal",
|
|
34
|
+
sx: {
|
|
35
|
+
fontSize: 12,
|
|
36
|
+
color: "text.hint",
|
|
37
|
+
"&::before, &::after": {
|
|
38
|
+
borderColor: "divider"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
children: "or"
|
|
42
|
+
}
|
|
43
|
+
) }),
|
|
44
|
+
/* @__PURE__ */ e(
|
|
45
|
+
t,
|
|
46
|
+
{
|
|
47
|
+
sx: {
|
|
48
|
+
width: "100%",
|
|
49
|
+
".arc-login-item": {
|
|
50
|
+
width: "100%",
|
|
51
|
+
justifyContent: "center",
|
|
52
|
+
"& > .arc-login-item__body": {
|
|
53
|
+
flex: "unset"
|
|
54
|
+
},
|
|
55
|
+
"& > .other-item-icon": {
|
|
56
|
+
display: "none !important"
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
children: a ? /* @__PURE__ */ e(
|
|
61
|
+
T,
|
|
62
|
+
{
|
|
63
|
+
ref: b,
|
|
64
|
+
tokenState: r,
|
|
65
|
+
isTablet: a,
|
|
66
|
+
sx: [l === "small" ? { p: 1 } : { p: 2 }],
|
|
67
|
+
locale: w,
|
|
68
|
+
tokenKey: u,
|
|
69
|
+
disableSwitchApp: m,
|
|
70
|
+
onClick: g
|
|
71
|
+
},
|
|
72
|
+
d.WALLET
|
|
73
|
+
) : (
|
|
74
|
+
// eslint-disable-next-line react/jsx-no-useless-fragment
|
|
75
|
+
/* @__PURE__ */ e(f, { children: (y || s) && (!i.mobile.any || s) ? /* @__PURE__ */ e(
|
|
76
|
+
B,
|
|
77
|
+
{
|
|
78
|
+
ref: x,
|
|
79
|
+
tokenState: r,
|
|
80
|
+
webWalletUrl: n,
|
|
81
|
+
sx: [l === "small" ? { p: 1 } : { p: 2 }],
|
|
82
|
+
disableSwitchApp: m,
|
|
83
|
+
onClick: h
|
|
84
|
+
},
|
|
85
|
+
d.WALLET
|
|
86
|
+
) : null })
|
|
87
|
+
)
|
|
88
|
+
}
|
|
89
|
+
),
|
|
90
|
+
/* @__PURE__ */ e(P, { variant: "text", onClick: L })
|
|
91
|
+
] })
|
|
92
|
+
] });
|
|
93
|
+
}
|
|
94
|
+
E.propTypes = {
|
|
95
|
+
qrcode: o.node.isRequired,
|
|
96
|
+
tokenState: o.object.isRequired,
|
|
97
|
+
webWalletUrl: o.string,
|
|
98
|
+
size: o.oneOf(["small", "normal", "large"]),
|
|
99
|
+
disableSwitchApp: o.bool,
|
|
100
|
+
tokenKey: o.string.isRequired,
|
|
101
|
+
walletLoginRef: o.object,
|
|
102
|
+
webLoginRef: o.object,
|
|
103
|
+
onMobileLoginClick: o.func.isRequired,
|
|
104
|
+
onWebLoginClick: o.func.isRequired,
|
|
105
|
+
onBack: o.func.isRequired
|
|
106
|
+
};
|
|
107
|
+
export {
|
|
108
|
+
E as default
|
|
109
|
+
};
|
|
@@ -1,65 +1,68 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import { CircularProgress as
|
|
4
|
-
import { useReactive as
|
|
5
|
-
import { detectWalletExtension as
|
|
6
|
-
import { mergeSx as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import { useImperativeHandle as
|
|
10
|
-
import
|
|
11
|
-
import { LOGIN_PROVIDER_ICON_SIZE as a, LOGIN_PROVIDER as
|
|
12
|
-
import
|
|
13
|
-
import { useStateContext as
|
|
14
|
-
import { EXT_DOWNLOAD_URL as
|
|
15
|
-
import
|
|
16
|
-
function
|
|
17
|
-
ref:
|
|
18
|
-
tokenState:
|
|
19
|
-
locale:
|
|
1
|
+
import { jsx as p } from "react/jsx-runtime";
|
|
2
|
+
import o from "prop-types";
|
|
3
|
+
import { CircularProgress as _ } from "@mui/material";
|
|
4
|
+
import { useReactive as w, useMemoizedFn as I, useCreation as f } from "ahooks";
|
|
5
|
+
import { detectWalletExtension as C, openWebWallet as E } from "@arcblock/ux/lib/Util";
|
|
6
|
+
import { mergeSx as O } from "@arcblock/ux/lib/Util/style";
|
|
7
|
+
import P from "lodash/noop";
|
|
8
|
+
import v from "lodash/omit";
|
|
9
|
+
import { useImperativeHandle as A } from "react";
|
|
10
|
+
import y from "@arcblock/ux/lib/DIDConnect/provider-icon";
|
|
11
|
+
import { LOGIN_PROVIDER_ICON_SIZE as a, LOGIN_PROVIDER as T } from "@arcblock/ux/lib/Util/constant";
|
|
12
|
+
import N from "./login-method-item.js";
|
|
13
|
+
import { useStateContext as U } from "../../contexts/state.js";
|
|
14
|
+
import { EXT_DOWNLOAD_URL as g } from "../../../constant.js";
|
|
15
|
+
import j from "../../hooks/auth-url.js";
|
|
16
|
+
function q({
|
|
17
|
+
ref: x = null,
|
|
18
|
+
tokenState: r,
|
|
19
|
+
locale: D = "en",
|
|
20
20
|
webWalletUrl: b,
|
|
21
|
-
onClick:
|
|
22
|
-
disableSwitchApp:
|
|
23
|
-
|
|
21
|
+
onClick: h = P,
|
|
22
|
+
disableSwitchApp: W = !1,
|
|
23
|
+
autoConnect: t = !0,
|
|
24
|
+
...u
|
|
24
25
|
}) {
|
|
25
|
-
const { browserBrand:
|
|
26
|
+
const { browserBrand: l } = U(), s = C(), n = w({
|
|
26
27
|
loading: !1
|
|
27
|
-
}),
|
|
28
|
-
|
|
28
|
+
}), R = j({ disableSwitchApp: W, tokenState: r }), c = I(() => {
|
|
29
|
+
if (!t)
|
|
30
|
+
return;
|
|
31
|
+
n.loading = !0, E({
|
|
29
32
|
webWalletUrl: b,
|
|
30
|
-
url:
|
|
31
|
-
locale:
|
|
32
|
-
appInfo:
|
|
33
|
-
memberAppInfo:
|
|
34
|
-
})?.type === "web" ?
|
|
35
|
-
|
|
33
|
+
url: R,
|
|
34
|
+
locale: D,
|
|
35
|
+
appInfo: r.appInfo,
|
|
36
|
+
memberAppInfo: r.memberAppInfo
|
|
37
|
+
})?.type === "web" ? n.loading = !1 : setTimeout(() => {
|
|
38
|
+
n.loading = !1;
|
|
36
39
|
}, 3e3);
|
|
37
|
-
}),
|
|
38
|
-
|
|
40
|
+
}), m = I((e) => {
|
|
41
|
+
r.url && (h(e), e?.preventDefault(), c());
|
|
39
42
|
});
|
|
40
|
-
|
|
41
|
-
connect:
|
|
43
|
+
A(x, () => ({
|
|
44
|
+
connect: c
|
|
42
45
|
}));
|
|
43
|
-
const
|
|
46
|
+
const i = f(() => l === "edge" ? g.edge : l === "chrome" ? g.chrome : null, [l]), d = f(() => {
|
|
44
47
|
const e = {};
|
|
45
|
-
return
|
|
48
|
+
return s || !t ? e.onClick = m : i && t ? (e.component = "a", e.href = i, e.target = "_blank", e.rel = "noopener") : e.onClick = m, r.url || (e.sx = {
|
|
46
49
|
cursor: "not-allowed"
|
|
47
50
|
}), e;
|
|
48
|
-
}, [
|
|
49
|
-
return /* @__PURE__ */
|
|
50
|
-
|
|
51
|
+
}, [m, r.url]), L = f(() => t ? s || i ? "DID Wallet (Extension)" : "DID Wallet (Web)" : "DID Wallet", [s, i]);
|
|
52
|
+
return /* @__PURE__ */ p(
|
|
53
|
+
N,
|
|
51
54
|
{
|
|
52
|
-
...
|
|
53
|
-
sx:
|
|
55
|
+
...u,
|
|
56
|
+
sx: O(
|
|
54
57
|
{
|
|
55
58
|
textDecoration: "none"
|
|
56
59
|
},
|
|
57
|
-
|
|
58
|
-
|
|
60
|
+
u?.sx,
|
|
61
|
+
d.sx
|
|
59
62
|
),
|
|
60
|
-
title:
|
|
61
|
-
icon:
|
|
62
|
-
|
|
63
|
+
title: L,
|
|
64
|
+
icon: n.loading || !r.url ? /* @__PURE__ */ p(
|
|
65
|
+
_,
|
|
63
66
|
{
|
|
64
67
|
color: "primary",
|
|
65
68
|
size: a,
|
|
@@ -69,29 +72,31 @@ function j({
|
|
|
69
72
|
}
|
|
70
73
|
}
|
|
71
74
|
}
|
|
72
|
-
) : /* @__PURE__ */
|
|
73
|
-
|
|
75
|
+
) : /* @__PURE__ */ p(
|
|
76
|
+
y,
|
|
74
77
|
{
|
|
75
78
|
sx: {
|
|
76
79
|
width: a,
|
|
77
80
|
height: a,
|
|
78
81
|
transform: "scale(0.9)"
|
|
79
82
|
},
|
|
80
|
-
provider:
|
|
83
|
+
provider: T.DID_WALLET
|
|
81
84
|
}
|
|
82
85
|
),
|
|
83
|
-
...
|
|
86
|
+
...v(d, "sx")
|
|
84
87
|
}
|
|
85
88
|
);
|
|
86
89
|
}
|
|
87
|
-
|
|
88
|
-
tokenState:
|
|
89
|
-
locale:
|
|
90
|
-
webWalletUrl:
|
|
91
|
-
onClick:
|
|
92
|
-
disableSwitchApp:
|
|
93
|
-
|
|
90
|
+
q.propTypes = {
|
|
91
|
+
tokenState: o.object.isRequired,
|
|
92
|
+
locale: o.string,
|
|
93
|
+
webWalletUrl: o.string.isRequired,
|
|
94
|
+
onClick: o.func,
|
|
95
|
+
disableSwitchApp: o.bool,
|
|
96
|
+
autoConnect: o.bool,
|
|
97
|
+
// 点击后是否自动连接,默认true
|
|
98
|
+
ref: o.any
|
|
94
99
|
};
|
|
95
100
|
export {
|
|
96
|
-
|
|
101
|
+
q as default
|
|
97
102
|
};
|
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as O } from "react/jsx-runtime";
|
|
2
2
|
import r from "prop-types";
|
|
3
|
-
import { createContext as
|
|
4
|
-
import
|
|
5
|
-
import { useUpdate as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import { Box as
|
|
9
|
-
import { translate as
|
|
10
|
-
import { getMaster as
|
|
11
|
-
import { getDIDMotifInfo as
|
|
12
|
-
import { isEthereumDid as
|
|
13
|
-
import
|
|
14
|
-
import { SessionContext as
|
|
15
|
-
import
|
|
16
|
-
const
|
|
3
|
+
import { createContext as V, useState as S, use as E, useRef as W, useEffect as X } from "react";
|
|
4
|
+
import Y from "@arcblock/react-hooks/lib/useBrowser";
|
|
5
|
+
import { useUpdate as Z, useCreation as i, useMemoizedFn as h, useLatest as _, useReactive as $, useSize as ee } from "ahooks";
|
|
6
|
+
import x from "lodash/isUndefined";
|
|
7
|
+
import te from "lodash/noop";
|
|
8
|
+
import { Box as oe } from "@mui/material";
|
|
9
|
+
import { translate as re } from "@arcblock/ux/lib/Locale/util";
|
|
10
|
+
import { getMaster as D, getCurrentApp as ne } from "@arcblock/ux/lib/Util/federated";
|
|
11
|
+
import { getDIDMotifInfo as se } from "@arcblock/did-motif";
|
|
12
|
+
import { isEthereumDid as ie, getDIDColor as pe } from "@arcblock/ux/lib/Util";
|
|
13
|
+
import ce from "../hooks/use-apps.js";
|
|
14
|
+
import { SessionContext as ue } from "../../Session/context.js";
|
|
15
|
+
import de from "../assets/locale.js";
|
|
16
|
+
const R = V({
|
|
17
17
|
isWalletWebview: !1,
|
|
18
18
|
isMobile: !1,
|
|
19
19
|
matchSmallScreen: !1,
|
|
20
20
|
blocklet: null
|
|
21
|
-
}), { Provider:
|
|
22
|
-
function
|
|
23
|
-
children:
|
|
21
|
+
}), { Provider: ae, Consumer: We } = R;
|
|
22
|
+
function le({
|
|
23
|
+
children: T,
|
|
24
24
|
blocklet: p,
|
|
25
|
-
masterBlocklet:
|
|
25
|
+
masterBlocklet: P = void 0,
|
|
26
26
|
action: d,
|
|
27
27
|
extraParams: t = {},
|
|
28
28
|
locale: a = "en",
|
|
29
|
-
testOnlyBorderColor:
|
|
29
|
+
testOnlyBorderColor: l = void 0,
|
|
30
30
|
...j
|
|
31
31
|
}) {
|
|
32
|
-
const
|
|
32
|
+
const w = Z(), [f, q] = S([]), [z, J] = S(!1), [m, N] = S(""), U = i(() => new Map(f.map((e) => [e.name, e])), [f]), k = h((e) => U.get(e)), B = _(m), L = h((e, s = {}) => re(de, e, a, "en", s)), g = E(ue), o = $({
|
|
33
33
|
sourceAppPid: void 0,
|
|
34
34
|
status: "created",
|
|
35
35
|
autoActiveWebview: !0,
|
|
36
36
|
deeplink: void 0,
|
|
37
37
|
chooseMethod: "",
|
|
38
|
-
retryConnect:
|
|
39
|
-
}),
|
|
38
|
+
retryConnect: te
|
|
39
|
+
}), F = W({
|
|
40
40
|
cancelCount: 0
|
|
41
|
-
}), n =
|
|
41
|
+
}), n = Y(), { appInfoList: b, autoGenerateSourceAppPid: A, canSwitchApp: v } = ce({
|
|
42
42
|
blocklet: p,
|
|
43
43
|
connectState: o,
|
|
44
44
|
action: d,
|
|
45
45
|
sourceAppPid: t?.sourceAppPid,
|
|
46
46
|
enableSwitchApp: t?.forceSwitch || t?.enableSwitchApp
|
|
47
|
-
}),
|
|
48
|
-
if (
|
|
47
|
+
}), C = W(null), M = ee(C), y = i(() => (M?.width || 0) < 500, [M?.width]), c = i(() => {
|
|
48
|
+
if (v)
|
|
49
49
|
return {
|
|
50
50
|
...t,
|
|
51
|
-
sourceAppPid:
|
|
51
|
+
sourceAppPid: x(o.sourceAppPid) ? A : o.sourceAppPid
|
|
52
52
|
};
|
|
53
|
-
const e =
|
|
54
|
-
return g?.session?.user && (e ===
|
|
53
|
+
const e = D(p)?.appPid, s = D(globalThis.blocklet)?.appPid;
|
|
54
|
+
return g?.session?.user && (e === s || !e) ? x(t?.sourceAppPid) ? {
|
|
55
55
|
...t,
|
|
56
56
|
sourceAppPid: g.session.user?.sourceAppPid
|
|
57
57
|
} : t : {
|
|
@@ -59,70 +59,73 @@ function de({
|
|
|
59
59
|
sourceAppPid: A
|
|
60
60
|
};
|
|
61
61
|
}, [
|
|
62
|
-
|
|
62
|
+
v,
|
|
63
63
|
t,
|
|
64
64
|
o.sourceAppPid,
|
|
65
65
|
d,
|
|
66
66
|
A,
|
|
67
67
|
g?.session?.user
|
|
68
|
-
]),
|
|
68
|
+
]), G = i(() => {
|
|
69
69
|
const e = window?.navigator?.userAgent;
|
|
70
70
|
return e.indexOf("Edge") > -1 || e.indexOf("Edg") > -1 ? "edge" : e.indexOf("Chrome") > -1 ? "chrome" : "unknown";
|
|
71
71
|
}, []);
|
|
72
|
-
|
|
72
|
+
X(() => {
|
|
73
73
|
o.sourceAppPid = c.sourceAppPid;
|
|
74
74
|
}, [c.sourceAppPid]);
|
|
75
|
-
const
|
|
75
|
+
const H = h((e) => {
|
|
76
76
|
o.status = e || "created";
|
|
77
|
-
}), u = globalThis.blocklet ?
|
|
78
|
-
if (
|
|
79
|
-
return
|
|
80
|
-
const e = u.appPid,
|
|
81
|
-
return
|
|
82
|
-
}, [u.appId,
|
|
77
|
+
}), u = globalThis.blocklet ? ne(p) : globalThis.env, I = i(() => {
|
|
78
|
+
if (l)
|
|
79
|
+
return l;
|
|
80
|
+
const e = u.appPid, s = ie(e), Q = s ? void 0 : se(e);
|
|
81
|
+
return s ? pe(e) : Q.color;
|
|
82
|
+
}, [u.appId, l]), K = i(() => ({
|
|
83
83
|
isWalletWebview: n.wallet || n.arcSphere,
|
|
84
84
|
isMobile: n.mobile.any,
|
|
85
|
-
matchSmallScreen:
|
|
85
|
+
matchSmallScreen: y,
|
|
86
86
|
connectState: o,
|
|
87
|
-
staticState:
|
|
87
|
+
staticState: F,
|
|
88
88
|
reactiveState: o,
|
|
89
|
-
appInfoList:
|
|
89
|
+
appInfoList: b,
|
|
90
90
|
extraParams: c,
|
|
91
91
|
blocklet: p,
|
|
92
|
-
masterBlocklet:
|
|
93
|
-
browserBrand:
|
|
92
|
+
masterBlocklet: P,
|
|
93
|
+
browserBrand: G,
|
|
94
94
|
currentAppInfo: u,
|
|
95
|
-
currentAppColor:
|
|
96
|
-
t:
|
|
95
|
+
currentAppColor: I,
|
|
96
|
+
t: L,
|
|
97
97
|
locale: a,
|
|
98
98
|
action: d,
|
|
99
|
-
changeStatus:
|
|
100
|
-
getPlugin:
|
|
101
|
-
latestActivePlugin:
|
|
102
|
-
plugins:
|
|
99
|
+
changeStatus: H,
|
|
100
|
+
getPlugin: k,
|
|
101
|
+
latestActivePlugin: B,
|
|
102
|
+
plugins: f,
|
|
103
103
|
setPlugins: q,
|
|
104
104
|
selectedPlugin: m,
|
|
105
|
-
setSelectedPlugin:
|
|
106
|
-
forceUpdate:
|
|
105
|
+
setSelectedPlugin: N,
|
|
106
|
+
forceUpdate: w,
|
|
107
|
+
// 控制钱包登录的显示
|
|
108
|
+
showWalletOptions: z,
|
|
109
|
+
setShowWalletOptions: J
|
|
107
110
|
}), [
|
|
108
111
|
n.wallet,
|
|
109
112
|
n.arcSphere,
|
|
110
113
|
n.mobile.any,
|
|
111
|
-
|
|
114
|
+
y,
|
|
112
115
|
JSON.stringify(o),
|
|
113
|
-
JSON.stringify(
|
|
116
|
+
JSON.stringify(b),
|
|
114
117
|
JSON.stringify(c),
|
|
115
118
|
p,
|
|
116
|
-
|
|
119
|
+
P,
|
|
117
120
|
a,
|
|
118
121
|
m,
|
|
119
|
-
|
|
122
|
+
w,
|
|
120
123
|
u,
|
|
121
|
-
|
|
124
|
+
I
|
|
122
125
|
]);
|
|
123
|
-
return /* @__PURE__ */
|
|
126
|
+
return /* @__PURE__ */ O(ae, { value: K, children: /* @__PURE__ */ O(oe, { ...j, ref: C, children: T }) });
|
|
124
127
|
}
|
|
125
|
-
|
|
128
|
+
le.propTypes = {
|
|
126
129
|
children: r.any.isRequired,
|
|
127
130
|
blocklet: r.object.isRequired,
|
|
128
131
|
masterBlocklet: r.object,
|
|
@@ -132,11 +135,11 @@ de.propTypes = {
|
|
|
132
135
|
testOnlyBorderColor: r.string
|
|
133
136
|
};
|
|
134
137
|
function xe() {
|
|
135
|
-
return
|
|
138
|
+
return E(R);
|
|
136
139
|
}
|
|
137
140
|
export {
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
+
We as StateConsumer,
|
|
142
|
+
R as StateContext,
|
|
143
|
+
le as StateProvider,
|
|
141
144
|
xe as useStateContext
|
|
142
145
|
};
|