@abtnode/ux 1.16.25-beta-be3a37f4 → 1.16.25-beta-cfcab4af
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/es/actions.js +2 -4
- package/es/analytics/card.js +1 -2
- package/es/analytics/chart.js +1 -2
- package/es/analytics/disk.js +1 -2
- package/es/analytics/memory.js +1 -2
- package/es/analytics/runtime.js +1 -2
- package/es/analytics/traffic.js +1 -2
- package/es/blocklet/access/config-access.js +1 -3
- package/es/blocklet/access/index.js +1 -2
- package/es/blocklet/actions.js +1 -2
- package/es/blocklet/add-cert.js +1 -3
- package/es/blocklet/agreement-app.js +1 -2
- package/es/blocklet/agreement.js +1 -2
- package/es/blocklet/audit-logs.js +1 -2
- package/es/blocklet/blocklet-source.js +1 -2
- package/es/blocklet/component/add-component-button.js +1 -3
- package/es/blocklet/component/add-component-core.js +1 -3
- package/es/blocklet/component/component-cell.js +1 -2
- package/es/blocklet/component/configuration.js +1 -2
- package/es/blocklet/component/delete.js +1 -3
- package/es/blocklet/component/did-space/connect-to.js +1 -3
- package/es/blocklet/component/did-space/connected.js +1 -2
- package/es/blocklet/component/did-space/delete.js +1 -3
- package/es/blocklet/component/did-space/disconnect.js +1 -2
- package/es/blocklet/component/did-space/index.js +1 -2
- package/es/blocklet/component/did-space/item.js +1 -3
- package/es/blocklet/component/domain-list.js +1 -3
- package/es/blocklet/component/environment.js +1 -2
- package/es/blocklet/component/index.js +1 -3
- package/es/blocklet/component/navigation/locale-tabs.js +1 -3
- package/es/blocklet/component/navigation/navigation-actions.js +1 -2
- package/es/blocklet/component/navigation/navigation-dialog.js +1 -2
- package/es/blocklet/component/navigation/navigation-preview.js +1 -2
- package/es/blocklet/component/navigation/simple-select.js +1 -2
- package/es/blocklet/component/optional-component-cell.js +1 -2
- package/es/blocklet/component/related-components-dialog.js +1 -2
- package/es/blocklet/component/select-store.js +1 -3
- package/es/blocklet/component/selected/index.js +1 -2
- package/es/blocklet/component/sortable-tree.js +1 -3
- package/es/blocklet/component/space-connector.js +1 -3
- package/es/blocklet/component/space-selector.js +1 -2
- package/es/blocklet/component/step-actions.js +1 -2
- package/es/blocklet/component/store-blocklet-list.js +1 -3
- package/es/blocklet/config-navigation.js +1 -3
- package/es/blocklet/configuration.js +1 -2
- package/es/blocklet/disk-info.js +1 -2
- package/es/blocklet/install-from-url.js +1 -3
- package/es/blocklet/logo-uploader.js +1 -2
- package/es/blocklet/migration.js +1 -2
- package/es/blocklet/notification/email.js +1 -2
- package/es/blocklet/notification/index.js +1 -2
- package/es/blocklet/oauth/auth0.js +1 -2
- package/es/blocklet/oauth/common-settings.js +1 -2
- package/es/blocklet/oauth/federated-detail-dialog.js +1 -3
- package/es/blocklet/oauth/federated-invite-dialog.js +1 -2
- package/es/blocklet/oauth/federated-join-dialog.js +1 -2
- package/es/blocklet/oauth/federated-site-list.js +1 -3
- package/es/blocklet/oauth/federated.js +1 -3
- package/es/blocklet/oauth/index.js +1 -2
- package/es/blocklet/overview.js +1 -2
- package/es/blocklet/preferences/app-sk.js +1 -2
- package/es/blocklet/preferences/index.js +1 -2
- package/es/blocklet/publish/create-project.js +1 -2
- package/es/blocklet/publish/create-release.js +1 -3
- package/es/blocklet/publish/index.js +1 -2
- package/es/blocklet/publish/project-list.js +1 -2
- package/es/blocklet/publish/release-list.js +1 -3
- package/es/blocklet/publish/resource.js +1 -2
- package/es/blocklet/publish/select-components.js +1 -2
- package/es/blocklet/publish/tree.js +1 -2
- package/es/blocklet/purchase/common.js +1 -3
- package/es/blocklet/purchase/component-purchase.js +1 -3
- package/es/blocklet/router/action/add-domain-alias.js +1 -3
- package/es/blocklet/router/action/add-rule.js +13 -3
- package/es/blocklet/router/action/config-routing-rule.js +56 -7
- package/es/blocklet/router/action/delete-domain-alias.js +1 -3
- package/es/blocklet/router/action/delete-rule.js +1 -3
- package/es/blocklet/router/action/update-rule.js +13 -3
- package/es/blocklet/router/add-domain.js +1 -3
- package/es/blocklet/router/dns-tip.js +1 -2
- package/es/blocklet/router/domain-actions.js +1 -2
- package/es/blocklet/router/rule-actions.js +1 -2
- package/es/blocklet/router/rule-list.js +11 -4
- package/es/blocklet/runtime-info.js +1 -2
- package/es/blocklet/status.js +1 -2
- package/es/blocklet/storage/action.js +1 -3
- package/es/blocklet/storage/auto-check-update.js +1 -2
- package/es/blocklet/storage/backups.js +1 -3
- package/es/blocklet/storage/connect-to.js +1 -3
- package/es/blocklet/storage/connected.js +1 -2
- package/es/blocklet/storage/delete.js +1 -3
- package/es/blocklet/storage/disconnect.js +1 -2
- package/es/blocklet/storage/item.js +1 -3
- package/es/blocklet/storage/preview-nft.js +1 -3
- package/es/blocklet/transfer-owner.js +1 -3
- package/es/blocklet/version.js +1 -3
- package/es/certificate.js +1 -3
- package/es/clear-cache.js +1 -2
- package/es/confirm.js +1 -2
- package/es/delete-confirm.js +1 -2
- package/es/form/form-autocomplete-input.js +2 -5
- package/es/form/form-select-input.js +1 -3
- package/es/form/form-text-input.js +1 -3
- package/es/form/input-triggers.js +1 -3
- package/es/invitation/invitation-app.js +1 -2
- package/es/invitation/invitation-passport.js +1 -3
- package/es/invitation/invitation-receive.js +1 -2
- package/es/invitation/invitation-success.js +1 -2
- package/es/invitation/invitation-user.js +1 -2
- package/es/invitation/invitation.js +1 -3
- package/es/issue-passport.js +1 -2
- package/es/launch-blocklet/page-header.js +1 -2
- package/es/layout/addon.js +1 -2
- package/es/locales/ar.js +5 -1
- package/es/locales/de.js +5 -1
- package/es/locales/en.js +5 -1
- package/es/locales/es.js +5 -1
- package/es/locales/fr.js +5 -1
- package/es/locales/hi.js +5 -1
- package/es/locales/i18n.db +0 -0
- package/es/locales/id.js +5 -1
- package/es/locales/ja.js +5 -1
- package/es/locales/ko.js +5 -1
- package/es/locales/pt.js +5 -1
- package/es/locales/ru.js +5 -1
- package/es/locales/th.js +5 -1
- package/es/locales/vi.js +5 -1
- package/es/locales/zh-tw.js +5 -1
- package/es/locales/zh.js +5 -1
- package/es/logs/download.js +1 -2
- package/es/logs/log-terminal.js +1 -2
- package/es/lost-passport.js +1 -2
- package/es/nav-logo.js +1 -3
- package/es/notifications/addon.js +1 -2
- package/es/notifications/list.js +1 -3
- package/es/notifications/notification.js +1 -2
- package/es/notifications/page.js +1 -3
- package/es/passport-tag.js +1 -2
- package/es/schema-form/color-input.js +1 -2
- package/es/schema-form/index.js +1 -3
- package/es/schema-form/passport-input.js +1 -2
- package/es/store/add.js +1 -3
- package/es/store/delete.js +1 -3
- package/es/store/item.js +1 -2
- package/es/subscription.js +1 -3
- package/es/team/members/actions.js +1 -3
- package/es/team/members/index.js +1 -2
- package/es/team/members/invitations.js +1 -2
- package/es/team/members/invite-member.js +1 -3
- package/es/team/members/issue-passport.js +1 -3
- package/es/team/members/member.js +1 -2
- package/es/team/members/passport-issuances.js +1 -2
- package/es/team/members/passport-item.js +1 -2
- package/es/team/members/passports.js +1 -2
- package/es/team/members/toggle-user-approval.js +1 -3
- package/es/team/members/transfer-node.js +1 -3
- package/es/team/passports/color.js +1 -3
- package/es/team/passports/detail.js +1 -3
- package/es/team/passports/index.js +1 -3
- package/es/team/passports/mutate-role.js +1 -3
- package/es/team/passports/trusted-factories.js +1 -2
- package/es/team/passports/trusted-factory.js +1 -3
- package/es/team/passports/trusted-issuer.js +1 -3
- package/es/team/passports/trusted-issuers.js +1 -2
- package/lib/actions.js +1 -1
- package/lib/analytics/card.js +1 -1
- package/lib/analytics/chart.js +2 -2
- package/lib/analytics/disk.js +1 -1
- package/lib/analytics/runtime.js +1 -1
- package/lib/analytics/traffic.js +1 -1
- package/lib/blocklet/access/index.js +1 -1
- package/lib/blocklet/actions.js +6 -6
- package/lib/blocklet/add-cert.js +1 -1
- package/lib/blocklet/agreement-app.js +1 -1
- package/lib/blocklet/app-avatar.js +1 -1
- package/lib/blocklet/blocklet-source.js +1 -1
- package/lib/blocklet/bundle-avatar.js +1 -1
- package/lib/blocklet/component/add-component-core.js +14 -14
- package/lib/blocklet/component/button.js +1 -1
- package/lib/blocklet/component/component-cell.js +2 -2
- package/lib/blocklet/component/delete.js +1 -1
- package/lib/blocklet/component/did-space/connect-to.js +2 -2
- package/lib/blocklet/component/did-space/delete.js +3 -3
- package/lib/blocklet/component/did-space/disconnect.js +1 -1
- package/lib/blocklet/component/did-space/index.js +3 -3
- package/lib/blocklet/component/did-space/item.js +2 -2
- package/lib/blocklet/component/domain-list.js +4 -4
- package/lib/blocklet/component/environment.js +1 -1
- package/lib/blocklet/component/index.js +2 -2
- package/lib/blocklet/component/navigation/navigation-dialog.js +6 -6
- package/lib/blocklet/component/navigation/navigation-preview.js +3 -3
- package/lib/blocklet/component/navigation/simple-select.js +1 -1
- package/lib/blocklet/component/select-store.js +1 -1
- package/lib/blocklet/component/setting.js +1 -1
- package/lib/blocklet/component/sortable-tree.js +1 -1
- package/lib/blocklet/component/space-connector.js +9 -9
- package/lib/blocklet/component/space-selector.js +2 -2
- package/lib/blocklet/component/start.js +1 -1
- package/lib/blocklet/component/store-blocklet-list.js +2 -2
- package/lib/blocklet/component/switch-control.js +1 -1
- package/lib/blocklet/config-navigation.js +1 -1
- package/lib/blocklet/configuration.js +3 -3
- package/lib/blocklet/disk-info.js +1 -1
- package/lib/blocklet/install-from-url.js +1 -1
- package/lib/blocklet/log.js +1 -1
- package/lib/blocklet/logo-uploader.js +3 -3
- package/lib/blocklet/migration.js +1 -1
- package/lib/blocklet/mode.js +1 -1
- package/lib/blocklet/notification/email.js +6 -6
- package/lib/blocklet/oauth/auth0.js +6 -6
- package/lib/blocklet/oauth/common-settings.js +4 -4
- package/lib/blocklet/oauth/federated-detail-dialog.js +4 -4
- package/lib/blocklet/oauth/federated-invite-dialog.js +2 -2
- package/lib/blocklet/oauth/federated-join-dialog.js +3 -3
- package/lib/blocklet/oauth/federated-site-list.js +5 -5
- package/lib/blocklet/oauth/federated.js +6 -6
- package/lib/blocklet/overview.js +3 -3
- package/lib/blocklet/page-group.js +1 -1
- package/lib/blocklet/preferences/index.js +2 -2
- package/lib/blocklet/publish/create-project.js +2 -2
- package/lib/blocklet/publish/create-release.js +5 -5
- package/lib/blocklet/publish/index.js +1 -1
- package/lib/blocklet/publish/project-list.js +1 -1
- package/lib/blocklet/publish/release-list.js +1 -1
- package/lib/blocklet/publish/select-components.js +1 -1
- package/lib/blocklet/purchase/component-purchase.js +1 -1
- package/lib/blocklet/resource-type.js +2 -2
- package/lib/blocklet/router/action/add-domain-alias.js +1 -1
- package/lib/blocklet/router/action/add-rule.js +14 -2
- package/lib/blocklet/router/action/config-routing-rule.js +54 -5
- package/lib/blocklet/router/action/update-rule.js +14 -1
- package/lib/blocklet/router/add-domain.js +1 -1
- package/lib/blocklet/router/dns-tip.js +1 -1
- package/lib/blocklet/router/domain-actions.js +1 -1
- package/lib/blocklet/router/rule-actions.js +1 -1
- package/lib/blocklet/router/rule-list.js +11 -2
- package/lib/blocklet/runtime-info.js +1 -1
- package/lib/blocklet/status.js +1 -1
- package/lib/blocklet/storage/action.js +2 -2
- package/lib/blocklet/storage/auto-backup.js +1 -1
- package/lib/blocklet/storage/auto-check-update.js +1 -1
- package/lib/blocklet/storage/backups.js +1 -1
- package/lib/blocklet/storage/connect-to.js +2 -2
- package/lib/blocklet/storage/delete.js +4 -4
- package/lib/blocklet/storage/disconnect.js +1 -1
- package/lib/blocklet/storage/item.js +2 -2
- package/lib/blocklet/storage/preview-nft.js +2 -2
- package/lib/blocklet/util.js +2 -2
- package/lib/blocklet/version.js +1 -1
- package/lib/clear-cache.js +2 -2
- package/lib/click-to-copy.js +1 -1
- package/lib/confirm.js +1 -1
- package/lib/contexts/blocklet-storage.js +1 -1
- package/lib/contexts/node.js +1 -1
- package/lib/delete-confirm.js +1 -1
- package/lib/did-address.js +1 -1
- package/lib/empty-spinner.js +1 -1
- package/lib/exchange-passport.js +3 -3
- package/lib/form/form-autocomplete-input.js +2 -2
- package/lib/form/form-select-input.js +2 -2
- package/lib/form/form-text-input.js +2 -2
- package/lib/hooks/blocklet.js +15 -15
- package/lib/hooks/confirm.js +3 -3
- package/lib/hooks/url-evaluation.js +1 -1
- package/lib/hooks/use-app-logo.js +1 -1
- package/lib/hooks/use-auto-backup.js +1 -1
- package/lib/hooks/use-auto-check-update.js +1 -1
- package/lib/hooks/use-backup-progress.js +1 -1
- package/lib/hooks/use-backups.js +1 -1
- package/lib/hooks/use-blocklet-info-for-connect-did-spaces.js +3 -3
- package/lib/hooks/use-bundle-logo.js +1 -1
- package/lib/hooks/use-navigation.js +1 -1
- package/lib/hooks/use-space-gateways.js +3 -3
- package/lib/images.js +1 -1
- package/lib/invitation/invitation-app.js +1 -1
- package/lib/invitation/invitation-receive.js +5 -5
- package/lib/invitation/invitation.js +3 -3
- package/lib/issue-passport.js +2 -2
- package/lib/launch-blocklet/content-layout.js +1 -1
- package/lib/layout/addon.js +1 -1
- package/lib/locales/ar.js +5 -1
- package/lib/locales/de.js +5 -1
- package/lib/locales/en.js +5 -1
- package/lib/locales/es.js +5 -1
- package/lib/locales/fr.js +5 -1
- package/lib/locales/hi.js +5 -1
- package/lib/locales/i18n.db +0 -0
- package/lib/locales/id.js +5 -1
- package/lib/locales/index.js +1 -1
- package/lib/locales/ja.js +5 -1
- package/lib/locales/ko.js +5 -1
- package/lib/locales/pt.js +5 -1
- package/lib/locales/ru.js +5 -1
- package/lib/locales/th.js +5 -1
- package/lib/locales/vi.js +5 -1
- package/lib/locales/zh-tw.js +5 -1
- package/lib/locales/zh.js +5 -1
- package/lib/logs/log-terminal.js +1 -1
- package/lib/lost-passport.js +3 -3
- package/lib/nav-logo.js +1 -1
- package/lib/notifications/default-icon-variants.js +1 -1
- package/lib/notifications/notification.js +1 -1
- package/lib/notifications/tag.js +1 -1
- package/lib/passport-tag.js +1 -1
- package/lib/permission.js +1 -1
- package/lib/relative-time.js +1 -1
- package/lib/schema-form/index.js +1 -1
- package/lib/schema-form/passport-input.js +1 -1
- package/lib/schema-form/text-input.js +1 -1
- package/lib/subscription.js +1 -1
- package/lib/tag.js +1 -1
- package/lib/team/members/index.js +5 -5
- package/lib/team/members/invitations.js +1 -1
- package/lib/team/members/member.js +1 -1
- package/lib/team/members/passport-item.js +1 -1
- package/lib/team/members/passports.js +2 -2
- package/lib/team/passports/color.js +1 -1
- package/lib/team/passports/detail.js +1 -1
- package/lib/team/passports/index.js +1 -1
- package/lib/team/passports/trusted-factories.js +2 -2
- package/lib/team/passports/trusted-factory.js +1 -1
- package/lib/team/passports/trusted-issuer.js +2 -2
- package/lib/team/passports/trusted-issuers.js +2 -2
- package/lib/team/search-input.js +1 -1
- package/lib/util/index.js +7 -7
- package/lib/util/space-gateway.js +1 -1
- package/lib/util/spaces.js +3 -3
- package/lib/wrap-locale.js +1 -1
- package/package.json +17 -17
|
@@ -6,8 +6,7 @@ import { getPassportColorFromDid } from '@arcblock/nft-display';
|
|
|
6
6
|
import { getDisplayName } from '@blocklet/meta/lib/util';
|
|
7
7
|
import ColorInput from './color-input';
|
|
8
8
|
import commonPropTypes from './common-prop-types';
|
|
9
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
10
|
export default function PassportInput({
|
|
12
11
|
editing,
|
|
13
12
|
value,
|
package/es/store/add.js
CHANGED
|
@@ -13,9 +13,7 @@ import Button from '@arcblock/ux/lib/Button';
|
|
|
13
13
|
import Alert from '@arcblock/ux/lib/Alert';
|
|
14
14
|
import { useNodeContext } from '../contexts/node';
|
|
15
15
|
import { formatError, isNewStoreUrl } from '../util';
|
|
16
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
17
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
18
|
-
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
16
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
19
17
|
const useStyles = makeStyles(theme => ({
|
|
20
18
|
addMenuItemRoot: {
|
|
21
19
|
justifyContent: 'center',
|
package/es/store/delete.js
CHANGED
|
@@ -8,9 +8,7 @@ import Toast from '@arcblock/ux/lib/Toast';
|
|
|
8
8
|
import { useNodeContext } from '../contexts/node';
|
|
9
9
|
import DelConfirm from '../delete-confirm';
|
|
10
10
|
import { formatError } from '../util';
|
|
11
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
|
-
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
13
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
12
|
export default function DeleteStore({
|
|
15
13
|
store,
|
|
16
14
|
teamDid,
|
package/es/store/item.js
CHANGED
|
@@ -6,8 +6,7 @@ import LaunchIcon from '@mui/icons-material/Launch';
|
|
|
6
6
|
import IconButton from '@mui/material/IconButton';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
8
|
import DeleteStore from './delete';
|
|
9
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
10
|
const useStyles = makeStyles(() => ({
|
|
12
11
|
buttonText: {
|
|
13
12
|
textTransform: 'none !important'
|
package/es/subscription.js
CHANGED
|
@@ -12,9 +12,7 @@ import useAsyncRetry from 'react-use/lib/useAsyncRetry';
|
|
|
12
12
|
import useSetState from 'react-use/lib/useSetState';
|
|
13
13
|
import useMediaQuery from '@mui/material/useMediaQuery';
|
|
14
14
|
import { formatPrettyMsLocale, getAsset, getAssetExpiration, getSubscriptionURL } from './util';
|
|
15
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
16
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
17
|
-
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
15
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
18
16
|
const ALERT_THRESHOLD_MS = 30 * 24 * 60 * 60 * 1000;
|
|
19
17
|
const DEFAULT_LAUNCHER_URL = 'https://launcher.arcblock.io/'; // 兼容: 旧版本的 blocklet.controller 没有 launcherUrl 字段
|
|
20
18
|
|
|
@@ -17,9 +17,7 @@ import Actions from '../../actions';
|
|
|
17
17
|
import IssuePassport from './issue-passport';
|
|
18
18
|
import ToggleUserApproval from './toggle-user-approval';
|
|
19
19
|
import { useNodeContext } from '../../contexts/node';
|
|
20
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
21
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
22
|
-
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
20
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
23
21
|
export default function MemberActions({
|
|
24
22
|
type,
|
|
25
23
|
user,
|
package/es/team/members/index.js
CHANGED
|
@@ -37,8 +37,7 @@ import Member from './member';
|
|
|
37
37
|
import Invitations from './invitations';
|
|
38
38
|
import Actions from './actions';
|
|
39
39
|
import { parseAvatar } from './util';
|
|
40
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
41
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
40
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
42
41
|
const ROLE_ALL = '$all';
|
|
43
42
|
const ROLE_NONE = '$none';
|
|
44
43
|
const getCount = (counts, name) => {
|
|
@@ -14,8 +14,7 @@ import Confirm from '../../confirm';
|
|
|
14
14
|
import Permission from '../../permission';
|
|
15
15
|
import ClickToCopy from '../../click-to-copy';
|
|
16
16
|
import { sleep, getInviteLink, BlockletAdminRoles } from '../../util';
|
|
17
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
18
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
17
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
19
18
|
export default function Invitations() {
|
|
20
19
|
const {
|
|
21
20
|
api: client,
|
|
@@ -16,9 +16,7 @@ import Alert from '@arcblock/ux/lib/Alert';
|
|
|
16
16
|
import ClickToCopy from '../../click-to-copy';
|
|
17
17
|
import { useNodeContext } from '../../contexts/node';
|
|
18
18
|
import { formatError, getInviteLink, formatToDatetime } from '../../util';
|
|
19
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
20
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
21
|
-
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
19
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
22
20
|
export default function InviteMember({
|
|
23
21
|
teamDid,
|
|
24
22
|
roles,
|
|
@@ -13,9 +13,7 @@ import Button from '@arcblock/ux/lib/Button';
|
|
|
13
13
|
import Alert from '@arcblock/ux/lib/Alert';
|
|
14
14
|
import { useNodeContext } from '../../contexts/node';
|
|
15
15
|
import { formatError } from '../../util';
|
|
16
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
17
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
18
|
-
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
16
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
19
17
|
export default function IssuePassport({
|
|
20
18
|
teamDid,
|
|
21
19
|
ownerDid,
|
|
@@ -27,8 +27,7 @@ import Passports from './passports';
|
|
|
27
27
|
import ToggleUserApproval from './toggle-user-approval';
|
|
28
28
|
import { parseAvatar } from './util';
|
|
29
29
|
import UserConnections from './connections';
|
|
30
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
31
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
30
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
32
31
|
function LinkUser({
|
|
33
32
|
name,
|
|
34
33
|
...rest
|
|
@@ -12,8 +12,7 @@ import Permission from '../../permission';
|
|
|
12
12
|
import ClickToCopy from '../../click-to-copy';
|
|
13
13
|
import PassportTag from '../../passport-tag';
|
|
14
14
|
import { getIssuePassportLink, formatToDatetime, BlockletAdminRoles } from '../../util';
|
|
15
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
16
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
17
16
|
export default function PassportIssuances({
|
|
18
17
|
issuances,
|
|
19
18
|
teamDid,
|
|
@@ -6,8 +6,7 @@ import upperFirst from 'lodash/upperFirst';
|
|
|
6
6
|
import Box from '@mui/material/Box';
|
|
7
7
|
import { useLocaleContext } from '@arcblock/ux/lib/Locale/context';
|
|
8
8
|
import RevokeIcon from '@arcblock/icons/lib/RevokeIcon';
|
|
9
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
10
|
export default function PassportItem({
|
|
12
11
|
passport,
|
|
13
12
|
user,
|
|
@@ -26,8 +26,7 @@ import SearchInput from '../search-input';
|
|
|
26
26
|
import ListHeader from '../styles/list-header';
|
|
27
27
|
import IssuePassport from './issue-passport';
|
|
28
28
|
import PassportItem from './passport-item';
|
|
29
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
30
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
29
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
31
30
|
function ConfirmDescription({
|
|
32
31
|
action,
|
|
33
32
|
passport
|
|
@@ -8,9 +8,7 @@ import { useNodeContext } from '../../contexts/node';
|
|
|
8
8
|
import { useTeamContext } from '../../contexts/team';
|
|
9
9
|
import { useSessionContext } from '../../contexts/session';
|
|
10
10
|
import { formatError } from '../../util';
|
|
11
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
|
-
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
13
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
12
|
const isNodeOwner = (nodeInfo, userDid) => nodeInfo.nodeOwner && nodeInfo.nodeOwner.did === userDid;
|
|
15
13
|
const isSelf = (sessionUser, userDid) => sessionUser && sessionUser.did === userDid;
|
|
16
14
|
export default function ToggleUserApproval({
|
|
@@ -17,9 +17,7 @@ import ClickToCopy from '../../click-to-copy';
|
|
|
17
17
|
import { useNodeContext } from '../../contexts/node';
|
|
18
18
|
import { formatError, getInviteLink, formatToDatetime, getWebWalletUrl } from '../../util';
|
|
19
19
|
import { SessionContext } from '../../contexts/session';
|
|
20
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
21
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
22
|
-
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
20
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
23
21
|
export default function TransferMember({
|
|
24
22
|
teamDid,
|
|
25
23
|
onCancel,
|
|
@@ -16,9 +16,7 @@ import { useNodeContext } from '../../contexts/node';
|
|
|
16
16
|
import { useBlockletContext } from '../../contexts/blocklet';
|
|
17
17
|
import { BlockletAdminRoles } from '../../util';
|
|
18
18
|
import { withPermission } from '../../permission';
|
|
19
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
20
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
21
|
-
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
19
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
22
20
|
function PassportColor({
|
|
23
21
|
onCancel,
|
|
24
22
|
onSuccess
|
|
@@ -18,9 +18,7 @@ import { formatError, isProtectedRole, BlockletAdminRoles } from '../../util';
|
|
|
18
18
|
import { withPermission } from '../../permission';
|
|
19
19
|
import Confirm from '../../confirm';
|
|
20
20
|
import MutateRole from './mutate-role';
|
|
21
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
22
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
23
|
-
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
21
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
24
22
|
function PassportDetail({
|
|
25
23
|
onCancel,
|
|
26
24
|
onSuccess,
|
|
@@ -23,9 +23,7 @@ import Color from './color';
|
|
|
23
23
|
import MutateRole from './mutate-role';
|
|
24
24
|
import TrustedIssuers from './trusted-issuers';
|
|
25
25
|
import TrustedFactories from './trusted-factories';
|
|
26
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
27
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
28
|
-
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
26
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
29
27
|
export default function PassportList({
|
|
30
28
|
createPassportSvg
|
|
31
29
|
}) {
|
|
@@ -11,9 +11,7 @@ import Button from '@arcblock/ux/lib/Button';
|
|
|
11
11
|
import Alert from '@arcblock/ux/lib/Alert';
|
|
12
12
|
import { useNodeContext } from '../../contexts/node';
|
|
13
13
|
import { formatError } from '../../util';
|
|
14
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
16
|
-
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
14
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
17
15
|
export default function MutateRole({
|
|
18
16
|
teamDid,
|
|
19
17
|
onCancel,
|
|
@@ -22,8 +22,7 @@ import Confirm from '../../confirm';
|
|
|
22
22
|
import ListHeader from '../styles/list-header';
|
|
23
23
|
import SearchInput from '../search-input';
|
|
24
24
|
import TrustedFactory from './trusted-factory';
|
|
25
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
26
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
25
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
27
26
|
function TrustedFactories({
|
|
28
27
|
onCancel,
|
|
29
28
|
hasPermission
|
|
@@ -28,9 +28,7 @@ import { useNodeContext } from '../../contexts/node';
|
|
|
28
28
|
import { useTeamContext } from '../../contexts/team';
|
|
29
29
|
import { sleep, formatError } from '../../util';
|
|
30
30
|
import getChainClient from '../../chain';
|
|
31
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
32
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
33
|
-
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
31
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
34
32
|
export default function TrustedFactory({
|
|
35
33
|
onCancel,
|
|
36
34
|
onSuccess,
|
|
@@ -19,9 +19,7 @@ import Toast from '@arcblock/ux/lib/Toast';
|
|
|
19
19
|
import { useNodeContext } from '../../contexts/node';
|
|
20
20
|
import { useTeamContext } from '../../contexts/team';
|
|
21
21
|
import { sleep, formatError } from '../../util';
|
|
22
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
23
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
|
-
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
22
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
25
23
|
var LongArrow = function LongArrow(props) {
|
|
26
24
|
return /*#__PURE__*/_jsx("svg", {
|
|
27
25
|
...props,
|
|
@@ -21,8 +21,7 @@ import Confirm from '../../confirm';
|
|
|
21
21
|
import ListHeader from '../styles/list-header';
|
|
22
22
|
import SearchInput from '../search-input';
|
|
23
23
|
import TrustedIssuer from './trusted-issuer';
|
|
24
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
25
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
26
25
|
function TrustedIssuers({
|
|
27
26
|
onCancel,
|
|
28
27
|
hasPermission
|
package/lib/actions.js
CHANGED
|
@@ -22,7 +22,7 @@ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(
|
|
|
22
22
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
23
23
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
24
24
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
25
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i :
|
|
25
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
26
26
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
27
27
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
28
28
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
package/lib/analytics/card.js
CHANGED
|
@@ -17,7 +17,7 @@ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(
|
|
|
17
17
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
18
18
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
19
19
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
20
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i :
|
|
20
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
21
21
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
22
22
|
function InsightCard(_ref) {
|
|
23
23
|
let {
|
package/lib/analytics/chart.js
CHANGED
|
@@ -12,11 +12,11 @@ var _card = _interopRequireDefault(require("./card"));
|
|
|
12
12
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
13
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
14
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
15
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
15
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
16
16
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
17
17
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
18
18
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
19
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i :
|
|
19
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
20
20
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
21
21
|
function InsightChart(_ref) {
|
|
22
22
|
let {
|
package/lib/analytics/disk.js
CHANGED
|
@@ -18,7 +18,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
18
18
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
19
19
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
20
20
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
21
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i :
|
|
21
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
22
22
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
23
23
|
const BorderLinearProgress = (0, _styles.withStyles)(theme => ({
|
|
24
24
|
root: {
|
package/lib/analytics/runtime.js
CHANGED
|
@@ -21,7 +21,7 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
21
21
|
var _templateObject;
|
|
22
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
23
23
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
24
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
24
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
25
25
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
26
26
|
function RuntimeInsight() {
|
|
27
27
|
const {
|
package/lib/analytics/traffic.js
CHANGED
|
@@ -35,7 +35,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
35
35
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
36
36
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
37
37
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
38
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i :
|
|
38
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
39
39
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /* eslint-disable react/prop-types */ /* eslint-disable react-hooks/exhaustive-deps */
|
|
40
40
|
const noop = (0, _nthArg.default)(0);
|
|
41
41
|
const getDefaultRanges = (date, locale) => [{
|
|
@@ -29,7 +29,7 @@ var _config = _interopRequireDefault(require("../../who-can-access/config"));
|
|
|
29
29
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
30
30
|
var _templateObject;
|
|
31
31
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
32
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
32
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
33
33
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
34
34
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
35
35
|
function ComponentItem(_ref) {
|
package/lib/blocklet/actions.js
CHANGED
|
@@ -44,12 +44,12 @@ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(
|
|
|
44
44
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
45
45
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
46
46
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
47
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i :
|
|
47
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
48
48
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
49
49
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
50
50
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
51
51
|
function BlockletActions(_ref) {
|
|
52
|
-
var _blocklet$controller, _blocklet$
|
|
52
|
+
var _blocklet$controller, _blocklet$controller2;
|
|
53
53
|
let {
|
|
54
54
|
blocklet,
|
|
55
55
|
onStart,
|
|
@@ -77,8 +77,8 @@ function BlockletActions(_ref) {
|
|
|
77
77
|
nftState
|
|
78
78
|
} = (0, _blocklet.useBlockletContext)();
|
|
79
79
|
const inProgress = (0, _util.isInProgress)(blocklet.status);
|
|
80
|
-
let disableStart = (blocklet === null || blocklet === void 0
|
|
81
|
-
if (!(nftState !== null && nftState !== void 0 && nftState.expired) && (blocklet === null || blocklet === void 0
|
|
80
|
+
let disableStart = (blocklet === null || blocklet === void 0 || (_blocklet$controller = blocklet.controller) === null || _blocklet$controller === void 0 || (_blocklet$controller = _blocklet$controller.status) === null || _blocklet$controller === void 0 ? void 0 : _blocklet$controller.value) === _constant.BLOCKLET_CONTROLLER_STATUS.suspended;
|
|
81
|
+
if (!(nftState !== null && nftState !== void 0 && nftState.expired) && (blocklet === null || blocklet === void 0 || (_blocklet$controller2 = blocklet.controller) === null || _blocklet$controller2 === void 0 || (_blocklet$controller2 = _blocklet$controller2.status) === null || _blocklet$controller2 === void 0 ? void 0 : _blocklet$controller2.reason) === _constant.SUSPENDED_REASON.expired) {
|
|
82
82
|
disableStart = false;
|
|
83
83
|
}
|
|
84
84
|
const {
|
|
@@ -491,10 +491,10 @@ BlockletActions.defaultProps = {
|
|
|
491
491
|
variant: 'menu',
|
|
492
492
|
hasPermission: false,
|
|
493
493
|
useBlockletUrlEvaluation: () => {
|
|
494
|
-
var _window
|
|
494
|
+
var _window;
|
|
495
495
|
return {
|
|
496
496
|
loading: false,
|
|
497
|
-
recommendedUrl: (_window = window) === null || _window === void 0
|
|
497
|
+
recommendedUrl: (_window = window) === null || _window === void 0 || (_window = _window.location) === null || _window === void 0 ? void 0 : _window.href
|
|
498
498
|
};
|
|
499
499
|
}
|
|
500
500
|
};
|
package/lib/blocklet/add-cert.js
CHANGED
|
@@ -24,7 +24,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
24
24
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
25
25
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
26
26
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
27
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i :
|
|
27
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
28
28
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
29
29
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
30
30
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
@@ -9,7 +9,7 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
9
9
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
10
10
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
11
11
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
12
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i :
|
|
12
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
13
13
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
14
14
|
function _objectDestructuringEmpty(obj) { if (obj == null) throw new TypeError("Cannot destructure " + obj); }
|
|
15
15
|
function AgreementApp(_ref) {
|
|
@@ -15,7 +15,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
15
15
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
16
16
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
17
17
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
18
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i :
|
|
18
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
19
19
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
20
20
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
21
21
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
@@ -30,7 +30,7 @@ function BlockletSource(_ref) {
|
|
|
30
30
|
type: "success",
|
|
31
31
|
children: (0, _toUpper.default)(sourceInfo.source)
|
|
32
32
|
}, "source"), sourceInfo.source === 'registry' && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Link.default, {
|
|
33
|
-
href: (0, _urlJoin.default)(sourceInfo.deployedFrom, 'blocklets', (blocklet === null || blocklet === void 0
|
|
33
|
+
href: (0, _urlJoin.default)(sourceInfo.deployedFrom, 'blocklets', (blocklet === null || blocklet === void 0 || (_blocklet$meta = blocklet.meta) === null || _blocklet$meta === void 0 ? void 0 : _blocklet$meta.bundleDid) || ''),
|
|
34
34
|
target: "_blank",
|
|
35
35
|
className: "page-link",
|
|
36
36
|
underline: "hover",
|
|
@@ -15,7 +15,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
15
15
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
16
16
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
17
17
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
18
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i :
|
|
18
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
19
19
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
20
20
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
21
21
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
@@ -56,12 +56,12 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
56
56
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
57
57
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
58
58
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
59
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i :
|
|
59
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
60
60
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /* eslint-disable react/no-unstable-nested-components */
|
|
61
61
|
const requirePurchase = meta => meta.inStore && (0, _util.isFreeBlocklet)(meta) === false;
|
|
62
62
|
const isRequiredOnSetup = meta => {
|
|
63
63
|
var _meta$capabilities;
|
|
64
|
-
return [_constant.BLOCKLET_APP_SPACE_REQUIREMENT.REQUIRED, _constant.BLOCKLET_APP_SPACE_REQUIREMENT.REQUIRED_ON_SETUP].includes(meta === null || meta === void 0
|
|
64
|
+
return [_constant.BLOCKLET_APP_SPACE_REQUIREMENT.REQUIRED, _constant.BLOCKLET_APP_SPACE_REQUIREMENT.REQUIRED_ON_SETUP].includes(meta === null || meta === void 0 || (_meta$capabilities = meta.capabilities) === null || _meta$capabilities === void 0 ? void 0 : _meta$capabilities.didSpace);
|
|
65
65
|
};
|
|
66
66
|
/**
|
|
67
67
|
* @description
|
|
@@ -69,8 +69,8 @@ const isRequiredOnSetup = meta => {
|
|
|
69
69
|
* @return {string}
|
|
70
70
|
*/
|
|
71
71
|
const getDIDSpaceEndpoint = blocklet => {
|
|
72
|
-
var _blocklet$configs
|
|
73
|
-
return (blocklet === null || blocklet === void 0
|
|
72
|
+
var _blocklet$configs;
|
|
73
|
+
return (blocklet === null || blocklet === void 0 || (_blocklet$configs = blocklet.configs) === null || _blocklet$configs === void 0 || (_blocklet$configs = _blocklet$configs.find(item => item.key === _constant.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_SPACE_ENDPOINT)) === null || _blocklet$configs === void 0 ? void 0 : _blocklet$configs.value) || null;
|
|
74
74
|
};
|
|
75
75
|
const hasRequiredEnvironments = meta => (meta.environments || []).some(x => x.required);
|
|
76
76
|
const hasMissRequiredConfigs = (configsList, sharedValueMap) => {
|
|
@@ -304,7 +304,7 @@ function AddComponentCore(_ref3) {
|
|
|
304
304
|
const createBlockletEventHandler = handler => {
|
|
305
305
|
return b => {
|
|
306
306
|
var _b$meta, _blocklet$meta;
|
|
307
|
-
if (((b === null || b === void 0
|
|
307
|
+
if (((b === null || b === void 0 || (_b$meta = b.meta) === null || _b$meta === void 0 ? void 0 : _b$meta.did) || (b === null || b === void 0 ? void 0 : b.meta)) === (blocklet === null || blocklet === void 0 || (_blocklet$meta = blocklet.meta) === null || _blocklet$meta === void 0 ? void 0 : _blocklet$meta.did)) {
|
|
308
308
|
handler(b);
|
|
309
309
|
}
|
|
310
310
|
};
|
|
@@ -327,13 +327,13 @@ function AddComponentCore(_ref3) {
|
|
|
327
327
|
updateParams(p => _objectSpread(_objectSpread({}, p), {}, {
|
|
328
328
|
didSpaceEndpoint
|
|
329
329
|
}));
|
|
330
|
-
}), [blocklet === null || blocklet === void 0
|
|
330
|
+
}), [blocklet === null || blocklet === void 0 || (_blocklet$meta2 = blocklet.meta) === null || _blocklet$meta2 === void 0 ? void 0 : _blocklet$meta2.did]);
|
|
331
331
|
useSubscription(_constant.BlockletEvents.downloadFailed, createBlockletEventHandler(() => {
|
|
332
332
|
setInstallErrorResult(t('blocklet.component.installComponentError'));
|
|
333
|
-
}), [blocklet === null || blocklet === void 0
|
|
333
|
+
}), [blocklet === null || blocklet === void 0 || (_blocklet$meta3 = blocklet.meta) === null || _blocklet$meta3 === void 0 ? void 0 : _blocklet$meta3.did]);
|
|
334
334
|
useSubscription(_constant.BlockletEvents.installFailed, createBlockletEventHandler(() => {
|
|
335
335
|
setInstallErrorResult(t('blocklet.component.installComponentError'));
|
|
336
|
-
}), [blocklet === null || blocklet === void 0
|
|
336
|
+
}), [blocklet === null || blocklet === void 0 || (_blocklet$meta4 = blocklet.meta) === null || _blocklet$meta4 === void 0 ? void 0 : _blocklet$meta4.did]);
|
|
337
337
|
const onOver = () => {
|
|
338
338
|
setLoading(false);
|
|
339
339
|
setParams({});
|
|
@@ -452,11 +452,11 @@ function AddComponentCore(_ref3) {
|
|
|
452
452
|
if (activeStep === steps.length - 2) {
|
|
453
453
|
await onInstall(payload);
|
|
454
454
|
}
|
|
455
|
-
(_stepRef$current = stepRef.current) === null || _stepRef$current === void 0
|
|
455
|
+
(_stepRef$current = stepRef.current) === null || _stepRef$current === void 0 || (_stepRef$current$setA = _stepRef$current.setActiveStepByIndex) === null || _stepRef$current$setA === void 0 || _stepRef$current$setA.call(_stepRef$current, x => x + 1);
|
|
456
456
|
};
|
|
457
457
|
const _onCancel = () => {
|
|
458
458
|
var _stepRef$current2, _stepRef$current2$set;
|
|
459
|
-
(_stepRef$current2 = stepRef.current) === null || _stepRef$current2 === void 0
|
|
459
|
+
(_stepRef$current2 = stepRef.current) === null || _stepRef$current2 === void 0 || (_stepRef$current2$set = _stepRef$current2.setActiveStepByIndex) === null || _stepRef$current2$set === void 0 || _stepRef$current2$set.call(_stepRef$current2, x => x - 1);
|
|
460
460
|
};
|
|
461
461
|
const onGeneratePurchaseData = () => {
|
|
462
462
|
const {
|
|
@@ -646,11 +646,11 @@ function AddComponentCore(_ref3) {
|
|
|
646
646
|
hasEnvironmentsStep: false
|
|
647
647
|
});
|
|
648
648
|
} else {
|
|
649
|
-
var _component$current$me
|
|
649
|
+
var _component$current$me;
|
|
650
650
|
doc = _objectSpread(_objectSpread({}, doc), {}, {
|
|
651
651
|
pathPrefix: hasRootPath ? "/".concat((0, _urlPathFriendly.default)(title) || (0, _urlPathFriendly.default)(name)).toLowerCase() : '/',
|
|
652
652
|
componentName: '',
|
|
653
|
-
hasEnvironmentsStep: ((_component$current$me = component.current.meta) === null || _component$current$me === void 0
|
|
653
|
+
hasEnvironmentsStep: ((_component$current$me = component.current.meta) === null || _component$current$me === void 0 || (_component$current$me = _component$current$me.environments) === null || _component$current$me === void 0 ? void 0 : _component$current$me.length) > 0
|
|
654
654
|
});
|
|
655
655
|
}
|
|
656
656
|
|
|
@@ -866,7 +866,7 @@ function AddComponentCore(_ref3) {
|
|
|
866
866
|
style: {
|
|
867
867
|
flexDirection: 'column'
|
|
868
868
|
},
|
|
869
|
-
children: [!(((_purchaseRef$current = purchaseRef.current) === null || _purchaseRef$current === void 0
|
|
869
|
+
children: [!(((_purchaseRef$current = purchaseRef.current) === null || _purchaseRef$current === void 0 || (_purchaseRef$current$ = _purchaseRef$current.getCurrentStep) === null || _purchaseRef$current$ === void 0 ? void 0 : _purchaseRef$current$.call(_purchaseRef$current)) === 2 || isWaitingPurchase) && /*#__PURE__*/(0, _jsxRuntime.jsx)(PageHeaderWrapper, {
|
|
870
870
|
title: t('common.verifyNFT'),
|
|
871
871
|
subTitle: t('blocklet.component.addComponentTip.verifyNFT')
|
|
872
872
|
}), !(0, _isEmpty.default)(params.purchaseResultProps) ? /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
@@ -883,7 +883,7 @@ function AddComponentCore(_ref3) {
|
|
|
883
883
|
handlePaySuccess: onSuccessPurchase
|
|
884
884
|
})]
|
|
885
885
|
}),
|
|
886
|
-
disabled: ((_purchaseRef$current2 = purchaseRef.current) === null || _purchaseRef$current2 === void 0
|
|
886
|
+
disabled: ((_purchaseRef$current2 = purchaseRef.current) === null || _purchaseRef$current2 === void 0 || (_purchaseRef$current3 = _purchaseRef$current2.getCurrentStep) === null || _purchaseRef$current3 === void 0 ? void 0 : _purchaseRef$current3.call(_purchaseRef$current2)) === 2 || isWaitingPurchase,
|
|
887
887
|
cancel: t('common.pre'),
|
|
888
888
|
confirm: t('common.next'),
|
|
889
889
|
onConfirm: () => {
|