@arcblock/ux 2.10.66 → 2.10.68
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/Address/did-address.d.ts +6 -5
- package/lib/Address/index.d.ts +1 -1
- package/lib/Avatar/index.d.ts +10 -8
- package/lib/Avatar/index.js +6 -4
- package/lib/Blocklet/blocklet.d.ts +4 -4
- package/lib/Blocklet/blocklet.js +2 -2
- package/lib/BlockletContext/index.d.ts +3 -3
- package/lib/BlockletNFT/index.d.ts +6 -6
- package/lib/BlockletNFT/index.js +3 -3
- package/lib/BlockletV2/blocklet.d.ts +2 -2
- package/lib/Button/wrap.d.ts +4 -4
- package/lib/Button/wrap.js +2 -2
- package/lib/CardSelector/index.js +0 -1
- package/lib/Center/index.d.ts +1 -1
- package/lib/ClickToCopy/copy-button.d.ts +5 -4
- package/lib/ClickToCopy/copy-button.js +0 -1
- package/lib/ClickToCopy/hook.d.ts +3 -8
- package/lib/ClickToCopy/index.d.ts +6 -4
- package/lib/CodeBlock/index.d.ts +3 -1
- package/lib/CookieConsent/index.d.ts +8 -29
- package/lib/CookieConsent/index.js +3 -17
- package/lib/CountDown/index.d.ts +21 -25
- package/lib/CountDown/index.js +12 -11
- package/lib/DID/index.d.ts +9 -8
- package/lib/Datatable/index.d.ts +5 -5
- package/lib/Datatable/index.js +5 -5
- package/lib/Dialog/confirm.d.ts +6 -6
- package/lib/Dialog/confirm.js +3 -3
- package/lib/Dialog/types.d.ts +1 -1
- package/lib/DidLogo/index.d.ts +5 -25
- package/lib/DidLogo/index.js +4 -15
- package/lib/DriftBot/index.d.ts +13 -19
- package/lib/DriftBot/index.js +5 -6
- package/lib/Earth/index.d.ts +28 -10
- package/lib/Earth/index.js +12 -52
- package/lib/Earth/util.d.ts +10 -5
- package/lib/Earth/util.js +1 -0
- package/lib/ErrorBoundary/fallback.d.ts +12 -19
- package/lib/ErrorBoundary/fallback.js +2 -19
- package/lib/ErrorBoundary/index.d.ts +1 -1
- package/lib/Footer/index.d.ts +17 -24
- package/lib/Footer/index.js +2 -11
- package/lib/Header/header.d.ts +2 -2
- package/lib/Icon/image.d.ts +3 -2
- package/lib/Icon/index.d.ts +6 -4
- package/lib/Img/index.d.ts +1 -1
- package/lib/Img/index.js +1 -1
- package/lib/InfoRow/index.d.ts +9 -32
- package/lib/InfoRow/index.js +10 -23
- package/lib/Layout/dashboard/external-link.d.ts +13 -14
- package/lib/Layout/dashboard/external-link.js +5 -22
- package/lib/Layout/dashboard/full-page.d.ts +19 -11
- package/lib/Layout/dashboard/full-page.js +2 -6
- package/lib/Layout/dashboard/index.d.ts +20 -39
- package/lib/Layout/dashboard/index.js +10 -38
- package/lib/Layout/dashboard/sidebar.d.ts +17 -20
- package/lib/Layout/dashboard/sidebar.js +3 -16
- package/lib/Layout/dashboard-legacy/header.d.ts +10 -36
- package/lib/Layout/dashboard-legacy/header.js +5 -24
- package/lib/Layout/dashboard-legacy/index.d.ts +17 -56
- package/lib/Layout/dashboard-legacy/index.js +12 -41
- package/lib/Layout/dashboard-legacy/sidebar.d.ts +15 -26
- package/lib/Layout/dashboard-legacy/sidebar.js +5 -15
- package/lib/Layout/index.d.ts +17 -56
- package/lib/Layout/index.js +24 -50
- package/lib/LoadingMask/index.d.ts +8 -31
- package/lib/LoadingMask/index.js +2 -18
- package/lib/Locale/browser-lang.d.ts +4 -1
- package/lib/Locale/browser-lang.js +8 -3
- package/lib/Locale/context.d.ts +18 -8
- package/lib/Locale/context.js +1 -1
- package/lib/Locale/languages.d.ts +9 -55
- package/lib/Locale/selector.d.ts +10 -26
- package/lib/Locale/selector.js +8 -25
- package/lib/Locale/util.d.ts +4 -3
- package/lib/Locale/util.js +0 -1
- package/lib/Logo/index.d.ts +9 -40
- package/lib/Logo/index.js +88 -46
- package/lib/Metric/index.d.ts +9 -31
- package/lib/Metric/index.js +5 -20
- package/lib/NFTDisplay/aspect-ratio-container.d.ts +5 -12
- package/lib/NFTDisplay/aspect-ratio-container.js +0 -5
- package/lib/NFTDisplay/broken.d.ts +3 -13
- package/lib/NFTDisplay/broken.js +80 -10
- package/lib/NFTDisplay/displayApi.d.ts +1 -1
- package/lib/NFTDisplay/index.d.ts +28 -6
- package/lib/NFTDisplay/index.js +17 -51
- package/lib/NFTDisplay/svg-embedder/img.d.ts +8 -23
- package/lib/NFTDisplay/svg-embedder/img.js +3 -17
- package/lib/NFTDisplay/svg-embedder/inline-svg.d.ts +7 -13
- package/lib/NFTDisplay/svg-embedder/inline-svg.js +1 -8
- package/lib/NavMenu/nav-menu.d.ts +2 -0
- package/lib/NavMenu/nav-menu.js +0 -1
- package/lib/PageScroller/index.d.ts +14 -13
- package/lib/PageScroller/index.js +12 -37
- package/lib/PageScroller/usePrevValue.d.ts +1 -1
- package/lib/PageScroller/usePrevValue.js +1 -2
- package/lib/Passport/index.d.ts +1 -1
- package/lib/Passport/passport.d.ts +10 -30
- package/lib/Passport/passport.js +5 -19
- package/lib/PoweredByArcBlock/index.d.ts +4 -14
- package/lib/PoweredByArcBlock/index.js +1 -8
- package/lib/PricingTable/PricingPlan.d.ts +11 -9
- package/lib/PricingTable/PricingPlan.js +0 -4
- package/lib/PricingTable/index.d.ts +5 -3
- package/lib/PricingTable/index.js +1 -5
- package/lib/QRCode/index.d.ts +11 -22
- package/lib/QRCode/index.js +1 -15
- package/lib/RelativeTime/index.d.ts +12 -40
- package/lib/RelativeTime/index.js +7 -27
- package/lib/Result/common.d.ts +26 -45
- package/lib/Result/common.js +2 -4
- package/lib/Result/index.d.ts +5 -18
- package/lib/Result/index.js +1 -9
- package/lib/Result/result.d.ts +7 -29
- package/lib/Result/result.js +2 -17
- package/lib/Result/translations.d.ts +2 -54
- package/lib/Screenshot/BaseScreenshot/index.d.ts +7 -24
- package/lib/Screenshot/BaseScreenshot/index.js +2 -15
- package/lib/Screenshot/BaseScreenshot/shells/Macbook.d.ts +25 -19
- package/lib/Screenshot/BaseScreenshot/shells/Phone.d.ts +25 -19
- package/lib/Screenshot/index.d.ts +84 -28
- package/lib/Screenshot/index.js +14 -43
- package/lib/SessionBlocklet/index.d.ts +6 -19
- package/lib/SessionBlocklet/index.js +3 -14
- package/lib/SessionManager/index.d.ts +1 -1
- package/lib/SessionPermission/index.d.ts +9 -17
- package/lib/SessionPermission/index.js +3 -11
- package/lib/SessionUser/components/logged-in.d.ts +9 -31
- package/lib/SessionUser/components/logged-in.js +13 -29
- package/lib/SessionUser/components/session-user-item.d.ts +8 -1
- package/lib/SessionUser/components/session-user-item.js +2 -12
- package/lib/SessionUser/components/session-user-switch.d.ts +9 -21
- package/lib/SessionUser/components/session-user-switch.js +3 -15
- package/lib/SessionUser/components/un-login.d.ts +7 -23
- package/lib/SessionUser/components/un-login.js +4 -16
- package/lib/SessionUser/components/user-info.d.ts +12 -29
- package/lib/SessionUser/components/user-info.js +4 -19
- package/lib/SessionUser/index.d.ts +7 -30
- package/lib/SessionUser/index.js +5 -26
- package/lib/SessionUser/libs/translation.d.ts +2 -31
- package/lib/SessionUser/libs/translation.js +1 -0
- package/lib/SessionUser/libs/utils.d.ts +10 -9
- package/lib/Sparkline/index.d.ts +22 -1
- package/lib/Sparkline/index.js +25 -17
- package/lib/Spinner/index.d.ts +6 -1
- package/lib/Spinner/index.js +4 -11
- package/lib/Success/index.d.ts +5 -21
- package/lib/Success/index.js +4 -16
- package/lib/Tabs/index.d.ts +12 -26
- package/lib/Tabs/index.js +7 -37
- package/lib/TextCollapse/index.d.ts +10 -10
- package/lib/TextCollapse/index.js +4 -21
- package/lib/Theme/index.js +0 -2
- package/lib/Theme/theme-provider.d.ts +1 -1
- package/lib/Theme/theme.d.ts +4 -1
- package/lib/Theme/theme.js +1 -2
- package/lib/Typography/index.d.ts +5 -24
- package/lib/Typography/index.js +5 -17
- package/lib/Util/index.d.ts +11 -6
- package/lib/Util/index.js +6 -0
- package/lib/Video/index.d.ts +12 -16
- package/lib/Video/index.js +0 -14
- package/lib/Wallet/Action.d.ts +13 -18
- package/lib/Wallet/Action.js +0 -7
- package/lib/Wallet/Download.d.ts +24 -30
- package/lib/Wallet/Download.js +201 -18
- package/lib/Wallet/Open.d.ts +5 -15
- package/lib/Wallet/Open.js +5 -11
- package/lib/WalletOSIcon/index.d.ts +6 -25
- package/lib/WalletOSIcon/index.js +3 -16
- package/lib/WebWalletSWKeeper/index.d.ts +8 -20
- package/lib/WebWalletSWKeeper/index.js +14 -19
- package/lib/WechatPrompt/index.js +2 -0
- package/lib/global.d.ts +15 -0
- package/lib/type.d.ts +12 -3
- package/lib/withTheme/index.d.ts +8 -6
- package/lib/withTracker/index.d.ts +1 -1
- package/lib/withTracker/index.js +3 -0
- package/package.json +9 -5
- package/src/Address/did-address.tsx +7 -6
- package/src/Address/index.tsx +1 -1
- package/src/Avatar/index.jsx +6 -4
- package/src/Blocklet/blocklet.jsx +2 -2
- package/src/BlockletContext/index.tsx +3 -3
- package/src/BlockletNFT/index.jsx +3 -3
- package/src/BlockletV2/blocklet.tsx +2 -2
- package/src/Button/wrap.jsx +2 -2
- package/src/CardSelector/index.tsx +0 -1
- package/src/Center/index.tsx +1 -1
- package/src/ClickToCopy/copy-button.tsx +4 -4
- package/src/ClickToCopy/hook.ts +3 -2
- package/src/ClickToCopy/index.tsx +6 -5
- package/src/CodeBlock/index.tsx +3 -1
- package/src/CookieConsent/{index.jsx → index.tsx} +16 -19
- package/src/CountDown/{index.jsx → index.tsx} +30 -16
- package/src/DID/index.tsx +9 -8
- package/src/Datatable/index.jsx +5 -5
- package/src/Dialog/confirm.jsx +3 -3
- package/src/Dialog/types.d.ts +1 -1
- package/src/DidLogo/{index.jsx → index.tsx} +7 -14
- package/src/DriftBot/{index.jsx → index.tsx} +13 -11
- package/src/Earth/{index.jsx → index.tsx} +94 -66
- package/src/Earth/{util.js → util.ts} +20 -17
- package/src/ErrorBoundary/{fallback.jsx → fallback.tsx} +20 -21
- package/src/Footer/{index.jsx → index.tsx} +17 -14
- package/src/Header/header.tsx +2 -3
- package/src/Header/responsive-header.tsx +0 -1
- package/src/Icon/image.tsx +3 -3
- package/src/Icon/index.tsx +7 -4
- package/src/Img/index.jsx +1 -1
- package/src/InfoRow/{index.jsx → index.tsx} +32 -25
- package/src/Layout/dashboard/external-link.tsx +46 -0
- package/src/Layout/dashboard/{full-page.jsx → full-page.tsx} +20 -9
- package/src/Layout/dashboard/{index.jsx → index.tsx} +42 -44
- package/src/Layout/dashboard/{sidebar.jsx → sidebar.tsx} +23 -20
- package/src/Layout/dashboard-legacy/{header.jsx → header.tsx} +16 -26
- package/src/Layout/dashboard-legacy/{index.jsx → index.tsx} +32 -46
- package/src/Layout/dashboard-legacy/{sidebar.jsx → sidebar.tsx} +27 -19
- package/src/Layout/{index.jsx → index.tsx} +41 -47
- package/src/LoadingMask/{index.jsx → index.tsx} +17 -19
- package/src/Locale/{browser-lang.js → browser-lang.ts} +9 -7
- package/src/Locale/context.tsx +18 -11
- package/src/Locale/{languages.js → languages.ts} +1 -1
- package/src/Locale/{selector.jsx → selector.tsx} +32 -29
- package/src/Locale/{util.js → util.ts} +9 -2
- package/src/Logo/index.tsx +58 -0
- package/src/Metric/{index.jsx → index.tsx} +23 -18
- package/src/NFTDisplay/{aspect-ratio-container.jsx → aspect-ratio-container.tsx} +9 -7
- package/src/NFTDisplay/{broken.jsx → broken.tsx} +7 -12
- package/src/NFTDisplay/{displayApi.js → displayApi.ts} +4 -4
- package/src/NFTDisplay/{index.jsx → index.tsx} +59 -64
- package/src/NFTDisplay/svg-embedder/{img.jsx → img.tsx} +10 -18
- package/src/NFTDisplay/svg-embedder/{inline-svg.jsx → inline-svg.tsx} +8 -9
- package/src/NavMenu/nav-menu.tsx +2 -3
- package/src/PageScroller/{index.jsx → index.tsx} +40 -53
- package/src/PageScroller/{usePrevValue.js → usePrevValue.ts} +2 -3
- package/src/Passport/{passport.jsx → passport.tsx} +22 -19
- package/src/PoweredByArcBlock/{index.jsx → index.tsx} +6 -11
- package/src/PricingTable/{PricingPlan.jsx → PricingPlan.tsx} +15 -5
- package/src/PricingTable/{index.jsx → index.tsx} +9 -6
- package/src/QRCode/{index.jsx → index.tsx} +13 -17
- package/src/RelativeTime/{index.jsx → index.tsx} +24 -24
- package/src/Result/{common.jsx → common.tsx} +17 -13
- package/src/Result/index.tsx +30 -0
- package/src/Result/{result.jsx → result.tsx} +8 -17
- package/src/Result/{translations.js → translations.ts} +3 -1
- package/src/Screenshot/BaseScreenshot/{index.jsx → index.tsx} +9 -15
- package/src/Screenshot/BaseScreenshot/shells/{Macbook.jsx → Macbook.tsx} +3 -1
- package/src/Screenshot/BaseScreenshot/shells/{Phone.jsx → Phone.tsx} +3 -1
- package/src/Screenshot/{index.jsx → index.tsx} +60 -54
- package/src/SessionBlocklet/{index.jsx → index.tsx} +8 -14
- package/src/SessionPermission/index.tsx +25 -0
- package/src/SessionUser/components/{logged-in.jsx → logged-in.tsx} +49 -31
- package/src/SessionUser/components/session-user-item.tsx +97 -0
- package/src/SessionUser/components/{session-user-switch.jsx → session-user-switch.tsx} +16 -21
- package/src/SessionUser/components/{un-login.jsx → un-login.tsx} +10 -15
- package/src/SessionUser/components/{user-info.jsx → user-info.tsx} +16 -22
- package/src/SessionUser/index.tsx +26 -0
- package/src/SessionUser/libs/{translation.js → translation.ts} +3 -1
- package/src/SessionUser/libs/utils.ts +39 -0
- package/src/Sparkline/{index.jsx → index.tsx} +38 -22
- package/src/Spinner/index.tsx +20 -0
- package/src/Success/{index.jsx → index.tsx} +7 -13
- package/src/Tabs/{index.jsx → index.tsx} +26 -40
- package/src/TextCollapse/{index.jsx → index.tsx} +26 -21
- package/src/Theme/index.ts +0 -1
- package/src/Theme/theme-provider.tsx +1 -1
- package/src/Theme/theme.ts +6 -3
- package/src/Typography/{index.jsx → index.tsx} +19 -22
- package/src/Util/index.ts +14 -8
- package/src/Video/{index.jsx → index.tsx} +7 -10
- package/src/Wallet/{Action.jsx → Action.tsx} +16 -12
- package/src/Wallet/{Download.jsx → Download.tsx} +25 -21
- package/src/Wallet/{Open.jsx → Open.tsx} +8 -11
- package/src/WalletOSIcon/{index.jsx → index.tsx} +8 -16
- package/src/WebWalletSWKeeper/{index.jsx → index.tsx} +21 -24
- package/src/WechatPrompt/{index.jsx → index.tsx} +1 -0
- package/src/global.d.ts +15 -0
- package/src/type.d.ts +12 -3
- package/src/withTheme/{index.jsx → index.tsx} +12 -2
- package/src/withTracker/{index.jsx → index.tsx} +6 -4
- package/src/Layout/dashboard/external-link.jsx +0 -47
- package/src/Logo/index.jsx +0 -66
- package/src/Result/index.jsx +0 -33
- package/src/SessionPermission/index.jsx +0 -28
- package/src/SessionUser/components/session-user-item.jsx +0 -93
- package/src/SessionUser/index.jsx +0 -38
- package/src/SessionUser/libs/utils.js +0 -37
- package/src/Spinner/index.jsx +0 -21
- /package/src/ErrorBoundary/{index.jsx → index.ts} +0 -0
- /package/src/NFTDisplay/{loading.jsx → loading.tsx} +0 -0
- /package/src/Passport/{index.jsx → index.ts} +0 -0
- /package/src/SessionManager/{index.jsx → index.tsx} +0 -0
package/lib/Screenshot/index.js
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
2
|
import { createElement, Children, cloneElement, useEffect, useRef, useState } from 'react';
|
3
|
-
import PropTypes from 'prop-types';
|
4
3
|
import { mergeProps } from '../Util';
|
5
4
|
import { styled } from '../Theme';
|
6
5
|
import BaseScreenshot from './BaseScreenshot';
|
@@ -99,7 +98,6 @@ const findChildren = (children, returnArgWhenNotFound = true) => {
|
|
99
98
|
}
|
100
99
|
return null;
|
101
100
|
};
|
102
|
-
|
103
101
|
// This component is built upon the awesome device.css lib
|
104
102
|
// By default it will find and only render img/video tags in the children
|
105
103
|
// If neither of them are found, the whole child tree is rendered
|
@@ -129,7 +127,7 @@ function OldScreenshot(props) {
|
|
129
127
|
className: "device-frame",
|
130
128
|
children: /*#__PURE__*/_jsx("div", {
|
131
129
|
className: "device-content",
|
132
|
-
children: findChildren(Children.toArray(children))
|
130
|
+
children: findChildren(Children.toArray(children))?.map((item, index) => /*#__PURE__*/cloneElement(item, {
|
133
131
|
key: index
|
134
132
|
}))
|
135
133
|
})
|
@@ -146,6 +144,13 @@ function OldScreenshot(props) {
|
|
146
144
|
})]
|
147
145
|
});
|
148
146
|
}
|
147
|
+
OldScreenshot.defaultProps = {
|
148
|
+
type: 'iphone-x',
|
149
|
+
className: '',
|
150
|
+
style: {},
|
151
|
+
width: 0,
|
152
|
+
height: 0
|
153
|
+
};
|
149
154
|
const Div = styled('div')`
|
150
155
|
@media (max-width: ${props => types[props.type].width}px) {
|
151
156
|
transform-origin: 0 0;
|
@@ -165,22 +170,6 @@ const Div = styled('div')`
|
|
165
170
|
height: 100.1%;
|
166
171
|
}
|
167
172
|
`;
|
168
|
-
OldScreenshot.propTypes = {
|
169
|
-
type: PropTypes.oneOf(Object.keys(types)),
|
170
|
-
children: PropTypes.any.isRequired,
|
171
|
-
className: PropTypes.string,
|
172
|
-
width: PropTypes.number,
|
173
|
-
height: PropTypes.number,
|
174
|
-
style: PropTypes.oneOfType([PropTypes.object, PropTypes.string])
|
175
|
-
};
|
176
|
-
OldScreenshot.defaultProps = {
|
177
|
-
type: 'iphone-x',
|
178
|
-
className: '',
|
179
|
-
style: '{}',
|
180
|
-
width: 0,
|
181
|
-
height: 0
|
182
|
-
};
|
183
|
-
|
184
173
|
/**
|
185
174
|
* 用于修正旧版 Screenshot 无法匹配尺寸的问题
|
186
175
|
* @param {*} props params to OldScreenshot
|
@@ -188,10 +177,10 @@ OldScreenshot.defaultProps = {
|
|
188
177
|
*/
|
189
178
|
function ScreenFixer(props) {
|
190
179
|
const screenEl = useRef(null);
|
191
|
-
const [height, setHeight] = useState(
|
180
|
+
const [height, setHeight] = useState();
|
192
181
|
const [scale, setScale] = useState(null);
|
193
182
|
useEffect(() => {
|
194
|
-
let resizeObs;
|
183
|
+
let resizeObs = null;
|
195
184
|
const fixSize = () => {
|
196
185
|
const {
|
197
186
|
clientWidth
|
@@ -243,10 +232,9 @@ const ReScreen = styled('div')`
|
|
243
232
|
`;
|
244
233
|
function Screenshot({
|
245
234
|
type,
|
246
|
-
src,
|
235
|
+
src = '',
|
247
236
|
children,
|
248
|
-
|
249
|
-
sx,
|
237
|
+
sx = {},
|
250
238
|
...rest
|
251
239
|
}) {
|
252
240
|
const _type = type.toLowerCase();
|
@@ -255,10 +243,7 @@ function Screenshot({
|
|
255
243
|
if (['phone', 'macbook'].includes(_type)) {
|
256
244
|
return /*#__PURE__*/_jsx(BaseScreenshot, {
|
257
245
|
type: _type,
|
258
|
-
sx:
|
259
|
-
...sx,
|
260
|
-
...style
|
261
|
-
},
|
246
|
+
sx: sx,
|
262
247
|
...rest,
|
263
248
|
children: children || (src ? /*#__PURE__*/_jsx("img", {
|
264
249
|
src: src,
|
@@ -270,29 +255,15 @@ function Screenshot({
|
|
270
255
|
// 旧版采用纯css制作,定制性欠缺,暂时保留使用
|
271
256
|
return /*#__PURE__*/_jsx(ScreenFixer, {
|
272
257
|
type: type,
|
273
|
-
...rest,
|
274
258
|
sx: {
|
275
259
|
...sx,
|
276
|
-
...style,
|
277
260
|
margin: 'auto'
|
278
261
|
},
|
262
|
+
...rest,
|
279
263
|
children: children || (src ? /*#__PURE__*/_jsx("img", {
|
280
264
|
src: src,
|
281
265
|
alt: "screenshot"
|
282
266
|
}) : null)
|
283
267
|
});
|
284
268
|
}
|
285
|
-
Screenshot.propTypes = {
|
286
|
-
type: PropTypes.string.isRequired,
|
287
|
-
src: PropTypes.string,
|
288
|
-
style: PropTypes.object,
|
289
|
-
sx: PropTypes.object,
|
290
|
-
children: PropTypes.any
|
291
|
-
};
|
292
|
-
Screenshot.defaultProps = {
|
293
|
-
src: '',
|
294
|
-
children: null,
|
295
|
-
style: {},
|
296
|
-
sx: {}
|
297
|
-
};
|
298
269
|
export default Screenshot;
|
@@ -1,20 +1,7 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
declare namespace SessionBlocklet {
|
7
|
-
namespace propTypes {
|
8
|
-
let session: PropTypes.Validator<object>;
|
9
|
-
let locale: PropTypes.Requireable<string>;
|
10
|
-
let size: PropTypes.Requireable<number>;
|
11
|
-
}
|
12
|
-
namespace defaultProps {
|
13
|
-
let locale_1: string;
|
14
|
-
export { locale_1 as locale };
|
15
|
-
let size_1: number;
|
16
|
-
export { size_1 as size };
|
17
|
-
}
|
1
|
+
import type { Locale } from '../type';
|
2
|
+
export interface SessionBlockletProps {
|
3
|
+
session: Record<string, any>;
|
4
|
+
locale?: Locale;
|
5
|
+
size?: number;
|
18
6
|
}
|
19
|
-
export default SessionBlocklet;
|
20
|
-
import PropTypes from 'prop-types';
|
7
|
+
export default function SessionBlocklet({ session, locale, size }: SessionBlockletProps): import("react/jsx-runtime").JSX.Element | null;
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
2
2
|
import { useRef } from 'react';
|
3
|
-
import PropTypes from 'prop-types';
|
4
3
|
import { Box, ClickAwayListener, Fade, IconButton, List, ListItem, ListItemButton, Paper, Popper, Typography } from '@mui/material';
|
5
4
|
import { Icon } from '@iconify/react';
|
6
5
|
import DashboardOutlineRoundedIcon from 'iconify-icons-material-symbols-400/dashboard-outline-rounded';
|
@@ -13,8 +12,8 @@ import SessionPermission from '../SessionPermission';
|
|
13
12
|
import { getTranslation } from '../Util';
|
14
13
|
export default function SessionBlocklet({
|
15
14
|
session,
|
16
|
-
locale,
|
17
|
-
size
|
15
|
+
locale = 'zh',
|
16
|
+
size = 24
|
18
17
|
}) {
|
19
18
|
const blocklet = window?.blocklet || {};
|
20
19
|
const sessionMenuList = (blocklet.navigation || []
|
@@ -55,7 +54,6 @@ export default function SessionBlocklet({
|
|
55
54
|
})
|
56
55
|
}), /*#__PURE__*/_jsx(Popper, {
|
57
56
|
open: currentState.open,
|
58
|
-
onClose: () => onTogglePopper(false),
|
59
57
|
anchorEl: popperAnchorRef.current,
|
60
58
|
transition: true,
|
61
59
|
placement: "bottom-end",
|
@@ -159,13 +157,4 @@ export default function SessionBlocklet({
|
|
159
157
|
})
|
160
158
|
})]
|
161
159
|
});
|
162
|
-
}
|
163
|
-
SessionBlocklet.propTypes = {
|
164
|
-
session: PropTypes.object.isRequired,
|
165
|
-
locale: PropTypes.string,
|
166
|
-
size: PropTypes.number
|
167
|
-
};
|
168
|
-
SessionBlocklet.defaultProps = {
|
169
|
-
locale: 'en',
|
170
|
-
size: 24
|
171
|
-
};
|
160
|
+
}
|
@@ -1,18 +1,10 @@
|
|
1
|
-
declare
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
let children: PropTypes.Validator<any>;
|
9
|
-
let session: PropTypes.Validator<object>;
|
10
|
-
let roles: PropTypes.Requireable<(string | null | undefined)[]>;
|
11
|
-
}
|
12
|
-
namespace defaultProps {
|
13
|
-
let roles_1: string[];
|
14
|
-
export { roles_1 as roles };
|
15
|
-
}
|
1
|
+
declare const roleList: readonly ["owner", "admin", "member", "guest"];
|
2
|
+
export interface SessionPermissionProps {
|
3
|
+
session: Record<string, any>;
|
4
|
+
roles?: (typeof roleList)[number][];
|
5
|
+
children: ((props: {
|
6
|
+
hasPermission: boolean;
|
7
|
+
}) => JSX.Element | null) | JSX.Element;
|
16
8
|
}
|
17
|
-
export default SessionPermission;
|
18
|
-
|
9
|
+
export default function SessionPermission({ session, roles, children }: SessionPermissionProps): JSX.Element | null;
|
10
|
+
export {};
|
@@ -1,9 +1,8 @@
|
|
1
|
-
import PropTypes from 'prop-types';
|
2
1
|
import { useCreation } from 'ahooks';
|
3
2
|
const roleList = ['owner', 'admin', 'member', 'guest'];
|
4
3
|
export default function SessionPermission({
|
5
4
|
session,
|
6
|
-
roles,
|
5
|
+
roles = ['owner', 'admin'],
|
7
6
|
children
|
8
7
|
}) {
|
9
8
|
const hasPermission = useCreation(() => {
|
@@ -17,12 +16,5 @@ export default function SessionPermission({
|
|
17
16
|
if (hasPermission) {
|
18
17
|
return children;
|
19
18
|
}
|
20
|
-
|
21
|
-
|
22
|
-
children: PropTypes.any.isRequired,
|
23
|
-
session: PropTypes.object.isRequired,
|
24
|
-
roles: PropTypes.arrayOf(PropTypes.oneOf(roleList))
|
25
|
-
};
|
26
|
-
SessionPermission.defaultProps = {
|
27
|
-
roles: ['owner', 'admin']
|
28
|
-
};
|
19
|
+
return null;
|
20
|
+
}
|
@@ -1,32 +1,10 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
declare namespace LoggedIn {
|
10
|
-
namespace propTypes {
|
11
|
-
let session: PropTypes.Validator<object>;
|
12
|
-
let onBindWallet: PropTypes.Requireable<(...args: any[]) => any>;
|
13
|
-
let dark: PropTypes.Requireable<boolean>;
|
14
|
-
let isBlocklet: PropTypes.Requireable<boolean>;
|
15
|
-
let locale: PropTypes.Requireable<string>;
|
16
|
-
let size: PropTypes.Requireable<number>;
|
17
|
-
}
|
18
|
-
namespace defaultProps {
|
19
|
-
let dark_1: boolean;
|
20
|
-
export { dark_1 as dark };
|
21
|
-
let isBlocklet_1: boolean;
|
22
|
-
export { isBlocklet_1 as isBlocklet };
|
23
|
-
export { noop as onBindWallet };
|
24
|
-
let locale_1: string;
|
25
|
-
export { locale_1 as locale };
|
26
|
-
let size_1: number;
|
27
|
-
export { size_1 as size };
|
28
|
-
}
|
1
|
+
import type { Locale, Session } from '../../type';
|
2
|
+
export interface LoggedInProps {
|
3
|
+
session: Session;
|
4
|
+
dark?: false | true;
|
5
|
+
onBindWallet?: () => void;
|
6
|
+
isBlocklet?: true | false;
|
7
|
+
locale?: Locale;
|
8
|
+
size?: number;
|
29
9
|
}
|
30
|
-
export default LoggedIn;
|
31
|
-
import PropTypes from 'prop-types';
|
32
|
-
import noop from 'lodash/noop';
|
10
|
+
export default function LoggedIn({ session, dark, onBindWallet, isBlocklet, locale, size, }: LoggedInProps): import("react/jsx-runtime").JSX.Element;
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
-
import PropTypes from 'prop-types';
|
3
2
|
import { useRef } from 'react';
|
4
3
|
import { useCreation, useMemoizedFn, useReactive } from 'ahooks';
|
5
4
|
import { Box, ClickAwayListener, Divider, Fade, IconButton, MenuItem, MenuList, Paper, Popper } from '@mui/material';
|
@@ -26,18 +25,18 @@ const getInviteLink = inviter => {
|
|
26
25
|
};
|
27
26
|
export default function LoggedIn({
|
28
27
|
session,
|
29
|
-
dark,
|
30
|
-
onBindWallet,
|
31
|
-
isBlocklet,
|
32
|
-
locale,
|
33
|
-
size
|
28
|
+
dark = false,
|
29
|
+
onBindWallet = noop,
|
30
|
+
isBlocklet = true,
|
31
|
+
locale = 'en',
|
32
|
+
size = 24
|
34
33
|
}) {
|
35
34
|
const t = useMemoizedFn((key, data = {}) => {
|
36
35
|
return translate(translations, key, locale, 'en', data);
|
37
36
|
});
|
38
37
|
const isInviteEnabled = useCreation(() => {
|
39
38
|
return !!globalThis?.blocklet?.settings?.invite?.enabled;
|
40
|
-
});
|
39
|
+
}, []);
|
41
40
|
const popperAnchorRef = useRef(null);
|
42
41
|
const currentState = useReactive({
|
43
42
|
open: false
|
@@ -102,8 +101,9 @@ export default function LoggedIn({
|
|
102
101
|
})
|
103
102
|
}), /*#__PURE__*/_jsx(Popper, {
|
104
103
|
open: currentState.open,
|
105
|
-
|
106
|
-
|
104
|
+
anchorEl: popperAnchorRef.current
|
105
|
+
// @ts-expect-error
|
106
|
+
,
|
107
107
|
dark: dark,
|
108
108
|
transition: true,
|
109
109
|
placement: "bottom-end",
|
@@ -175,6 +175,7 @@ export default function LoggedIn({
|
|
175
175
|
}), isInviteEnabled && /*#__PURE__*/_jsx(SessionMenuItem, {
|
176
176
|
icon: InviteIcon,
|
177
177
|
title: t('invite'),
|
178
|
+
component: "div",
|
178
179
|
onClick: handleOpenInvite,
|
179
180
|
sx: {
|
180
181
|
display: 'block',
|
@@ -189,6 +190,7 @@ export default function LoggedIn({
|
|
189
190
|
}) : null, /*#__PURE__*/_jsx(SessionMenuItem, {
|
190
191
|
icon: AccountCircleOffOutlineRoundedIcon,
|
191
192
|
title: t('logout'),
|
193
|
+
component: "div",
|
192
194
|
sx: {
|
193
195
|
color: 'error.main'
|
194
196
|
},
|
@@ -202,21 +204,7 @@ export default function LoggedIn({
|
|
202
204
|
})]
|
203
205
|
});
|
204
206
|
}
|
205
|
-
|
206
|
-
session: PropTypes.object.isRequired,
|
207
|
-
onBindWallet: PropTypes.func,
|
208
|
-
dark: PropTypes.bool,
|
209
|
-
isBlocklet: PropTypes.bool,
|
210
|
-
locale: PropTypes.string,
|
211
|
-
size: PropTypes.number
|
212
|
-
};
|
213
|
-
LoggedIn.defaultProps = {
|
214
|
-
dark: false,
|
215
|
-
isBlocklet: true,
|
216
|
-
onBindWallet: noop,
|
217
|
-
locale: 'en',
|
218
|
-
size: 24
|
219
|
-
};
|
207
|
+
// prop component is required
|
220
208
|
function SessionMenuItem({
|
221
209
|
icon,
|
222
210
|
title,
|
@@ -245,8 +233,4 @@ function SessionMenuItem({
|
|
245
233
|
}), title]
|
246
234
|
})
|
247
235
|
});
|
248
|
-
}
|
249
|
-
SessionMenuItem.propTypes = {
|
250
|
-
icon: PropTypes.any.isRequired,
|
251
|
-
title: PropTypes.string.isRequired
|
252
|
-
};
|
236
|
+
}
|
@@ -1,2 +1,9 @@
|
|
1
|
+
import { type BoxProps } from '@mui/material';
|
2
|
+
import { Session } from '../../type';
|
3
|
+
export interface SessionUserItemProps extends BoxProps {
|
4
|
+
sessionItem: Session;
|
5
|
+
statusContent?: React.ReactNode;
|
6
|
+
active?: false | true;
|
7
|
+
}
|
8
|
+
declare const SessionUserItem: import("react").ForwardRefExoticComponent<Omit<SessionUserItemProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
1
9
|
export default SessionUserItem;
|
2
|
-
declare const SessionUserItem: import("react").ForwardRefExoticComponent<import("react").RefAttributes<any>>;
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
-
import PropTypes from 'prop-types';
|
3
2
|
import { forwardRef } from 'react';
|
4
3
|
import { Box, IconButton, Tooltip, Typography } from '@mui/material';
|
5
4
|
import { Icon } from '@iconify/react';
|
@@ -11,8 +10,8 @@ import { temp as colors } from '../../Colors';
|
|
11
10
|
import { getSourceProvider } from '../libs/utils';
|
12
11
|
const SessionUserItem = /*#__PURE__*/forwardRef(({
|
13
12
|
sessionItem,
|
14
|
-
statusContent,
|
15
|
-
active,
|
13
|
+
statusContent = null,
|
14
|
+
active = false,
|
16
15
|
...rest
|
17
16
|
}, ref) => {
|
18
17
|
const isRawWalletAccount = getSourceProvider(sessionItem?.user) === 'wallet';
|
@@ -89,13 +88,4 @@ const SessionUserItem = /*#__PURE__*/forwardRef(({
|
|
89
88
|
})]
|
90
89
|
});
|
91
90
|
});
|
92
|
-
SessionUserItem.propTypes = {
|
93
|
-
sessionItem: PropTypes.object.isRequired,
|
94
|
-
statusContent: PropTypes.node,
|
95
|
-
active: PropTypes.bool
|
96
|
-
};
|
97
|
-
SessionUserItem.defaultProps = {
|
98
|
-
statusContent: null,
|
99
|
-
active: false
|
100
|
-
};
|
101
91
|
export default SessionUserItem;
|
@@ -1,22 +1,10 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
})
|
7
|
-
|
8
|
-
|
9
|
-
let session: PropTypes.Validator<object>;
|
10
|
-
let onSwitch: PropTypes.Validator<(...args: any[]) => any>;
|
11
|
-
let isBlocklet: PropTypes.Requireable<boolean>;
|
12
|
-
let locale: PropTypes.Requireable<string>;
|
13
|
-
}
|
14
|
-
namespace defaultProps {
|
15
|
-
let isBlocklet_1: boolean;
|
16
|
-
export { isBlocklet_1 as isBlocklet };
|
17
|
-
let locale_1: string;
|
18
|
-
export { locale_1 as locale };
|
19
|
-
}
|
1
|
+
import type { Locale, Session } from '../../type';
|
2
|
+
export interface SessionUserSwitchProps {
|
3
|
+
session: Session;
|
4
|
+
onSwitch: (params?: {
|
5
|
+
userSession: Session;
|
6
|
+
}) => Promise<void> | void;
|
7
|
+
isBlocklet?: true | false;
|
8
|
+
locale?: Locale;
|
20
9
|
}
|
21
|
-
export default SessionUserSwitch;
|
22
|
-
import PropTypes from 'prop-types';
|
10
|
+
export default function SessionUserSwitch({ session, onSwitch, isBlocklet, locale, }: SessionUserSwitchProps): import("react/jsx-runtime").JSX.Element;
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
2
|
-
import PropTypes from 'prop-types';
|
3
2
|
import { Box, ClickAwayListener, Divider, Fade, LinearProgress, MenuItem, MenuList, Paper, Popper } from '@mui/material';
|
4
3
|
import { useRef } from 'react';
|
5
4
|
import { useCreation, useMemoizedFn, useReactive, useSize, useMount } from 'ahooks';
|
@@ -16,8 +15,8 @@ import { translations } from '../libs/translation';
|
|
16
15
|
export default function SessionUserSwitch({
|
17
16
|
session,
|
18
17
|
onSwitch,
|
19
|
-
isBlocklet,
|
20
|
-
locale
|
18
|
+
isBlocklet = true,
|
19
|
+
locale = 'en'
|
21
20
|
}) {
|
22
21
|
const popperAnchorRef = useRef(null);
|
23
22
|
const t = useMemoizedFn((key, data = {}) => {
|
@@ -115,7 +114,6 @@ export default function SessionUserSwitch({
|
|
115
114
|
ref: popperAnchorRef
|
116
115
|
}), /*#__PURE__*/_jsx(Popper, {
|
117
116
|
open: currentState.open,
|
118
|
-
onClose: () => onTogglePopper(false),
|
119
117
|
anchorEl: popperAnchorRef.current,
|
120
118
|
transition: true,
|
121
119
|
sx: {
|
@@ -208,14 +206,4 @@ export default function SessionUserSwitch({
|
|
208
206
|
})
|
209
207
|
})]
|
210
208
|
});
|
211
|
-
}
|
212
|
-
SessionUserSwitch.propTypes = {
|
213
|
-
session: PropTypes.object.isRequired,
|
214
|
-
onSwitch: PropTypes.func.isRequired,
|
215
|
-
isBlocklet: PropTypes.bool,
|
216
|
-
locale: PropTypes.string
|
217
|
-
};
|
218
|
-
SessionUserSwitch.defaultProps = {
|
219
|
-
isBlocklet: true,
|
220
|
-
locale: 'en'
|
221
|
-
};
|
209
|
+
}
|
@@ -1,24 +1,8 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
declare namespace UnLogin {
|
8
|
-
namespace propTypes {
|
9
|
-
let session: PropTypes.Validator<object>;
|
10
|
-
let onLogin: PropTypes.Requireable<(...args: any[]) => any>;
|
11
|
-
let size: PropTypes.Requireable<number>;
|
12
|
-
let dark: PropTypes.Requireable<boolean>;
|
13
|
-
}
|
14
|
-
namespace defaultProps {
|
15
|
-
export { noop as onLogin };
|
16
|
-
let size_1: number;
|
17
|
-
export { size_1 as size };
|
18
|
-
let dark_1: boolean;
|
19
|
-
export { dark_1 as dark };
|
20
|
-
}
|
1
|
+
import { Session } from '../../type';
|
2
|
+
export interface UnLoginProps {
|
3
|
+
session: Session;
|
4
|
+
onLogin?: () => void;
|
5
|
+
size?: number;
|
6
|
+
dark?: false | true;
|
21
7
|
}
|
22
|
-
export default UnLogin;
|
23
|
-
import PropTypes from 'prop-types';
|
24
|
-
import noop from 'lodash/noop';
|
8
|
+
export default function UnLogin({ session, onLogin, size, dark }: UnLoginProps): import("react/jsx-runtime").JSX.Element;
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
-
import PropTypes from 'prop-types';
|
3
2
|
import { Box, CircularProgress, IconButton } from '@mui/material';
|
4
3
|
import { Icon } from '@iconify/react';
|
5
4
|
import PersonOutlineRoundedIcon from 'iconify-icons-material-symbols-400/person-outline-rounded';
|
@@ -8,9 +7,9 @@ import { useMemoizedFn } from 'ahooks';
|
|
8
7
|
import noop from 'lodash/noop';
|
9
8
|
export default function UnLogin({
|
10
9
|
session,
|
11
|
-
onLogin,
|
12
|
-
size,
|
13
|
-
dark
|
10
|
+
onLogin = noop,
|
11
|
+
size = 24,
|
12
|
+
dark = false
|
14
13
|
}) {
|
15
14
|
const isFirstLoading = false;
|
16
15
|
const userAnchorRef = useRef(null);
|
@@ -50,15 +49,4 @@ export default function UnLogin({
|
|
50
49
|
})
|
51
50
|
})
|
52
51
|
});
|
53
|
-
}
|
54
|
-
UnLogin.propTypes = {
|
55
|
-
session: PropTypes.object.isRequired,
|
56
|
-
onLogin: PropTypes.func,
|
57
|
-
size: PropTypes.number,
|
58
|
-
dark: PropTypes.bool
|
59
|
-
};
|
60
|
-
UnLogin.defaultProps = {
|
61
|
-
onLogin: noop,
|
62
|
-
size: 24,
|
63
|
-
dark: false
|
64
|
-
};
|
52
|
+
}
|
@@ -1,30 +1,13 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
let session: PropTypes.Validator<object>;
|
13
|
-
let onSwitchPassport: PropTypes.Validator<(...args: any[]) => any>;
|
14
|
-
let onSwitchAccount: PropTypes.Validator<(...args: any[]) => any>;
|
15
|
-
let onBindWallet: PropTypes.Validator<(...args: any[]) => any>;
|
16
|
-
let onSwitchProfile: PropTypes.Requireable<(...args: any[]) => any>;
|
17
|
-
let locale: PropTypes.Requireable<string>;
|
18
|
-
let isBlocklet: PropTypes.Requireable<boolean>;
|
19
|
-
}
|
20
|
-
namespace defaultProps {
|
21
|
-
let locale_1: string;
|
22
|
-
export { locale_1 as locale };
|
23
|
-
let isBlocklet_1: boolean;
|
24
|
-
export { isBlocklet_1 as isBlocklet };
|
25
|
-
export { noop as onSwitchProfile };
|
26
|
-
}
|
1
|
+
import type { Locale, Session } from '../../type';
|
2
|
+
export interface UserInfoProps {
|
3
|
+
session: Session;
|
4
|
+
onSwitchPassport: () => void;
|
5
|
+
onSwitchAccount: (params?: {
|
6
|
+
userSession: Session;
|
7
|
+
}) => void;
|
8
|
+
onBindWallet: () => void;
|
9
|
+
onSwitchProfile?: () => void;
|
10
|
+
locale?: Locale;
|
11
|
+
isBlocklet?: true | false;
|
27
12
|
}
|
28
|
-
export default UserInfo;
|
29
|
-
import PropTypes from 'prop-types';
|
30
|
-
import noop from 'lodash/noop';
|
13
|
+
export default function UserInfo({ session, onSwitchPassport, onSwitchAccount, onBindWallet, onSwitchProfile, locale, isBlocklet, }: UserInfoProps): import("react/jsx-runtime").JSX.Element;
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
-
import PropTypes from 'prop-types';
|
3
2
|
import { Box, Chip, Typography } from '@mui/material';
|
4
3
|
import { Icon } from '@iconify/react';
|
5
4
|
import SwapHorizRoundedIcon from '@iconify-icons/material-symbols/swap-horiz-rounded';
|
@@ -18,9 +17,9 @@ export default function UserInfo({
|
|
18
17
|
onSwitchPassport,
|
19
18
|
onSwitchAccount,
|
20
19
|
onBindWallet,
|
21
|
-
onSwitchProfile,
|
22
|
-
locale,
|
23
|
-
isBlocklet
|
20
|
+
onSwitchProfile = noop,
|
21
|
+
locale = 'en',
|
22
|
+
isBlocklet = true
|
24
23
|
}) {
|
25
24
|
const t = useMemoizedFn((key, data = {}) => {
|
26
25
|
return translate(translations, key, locale, 'en', data);
|
@@ -149,18 +148,4 @@ export default function UserInfo({
|
|
149
148
|
})]
|
150
149
|
}) : null]
|
151
150
|
});
|
152
|
-
}
|
153
|
-
UserInfo.propTypes = {
|
154
|
-
session: PropTypes.object.isRequired,
|
155
|
-
onSwitchPassport: PropTypes.func.isRequired,
|
156
|
-
onSwitchAccount: PropTypes.func.isRequired,
|
157
|
-
onBindWallet: PropTypes.func.isRequired,
|
158
|
-
onSwitchProfile: PropTypes.func,
|
159
|
-
locale: PropTypes.string,
|
160
|
-
isBlocklet: PropTypes.bool
|
161
|
-
};
|
162
|
-
UserInfo.defaultProps = {
|
163
|
-
locale: 'en',
|
164
|
-
isBlocklet: true,
|
165
|
-
onSwitchProfile: noop
|
166
|
-
};
|
151
|
+
}
|