@blocklet/ui-react 3.0.2 → 3.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/{packages/blocklet-ui-react/src/Footer → Footer}/index.d.ts +2 -2
- package/lib/Header/index.d.ts +13 -0
- package/lib/UserCenter/components/third-party-login/index.js +29 -23
- package/package.json +5 -5
- package/src/Header/index.tsx +2 -0
- package/src/UserCenter/components/third-party-login/index.tsx +2 -0
- package/src/UserCenter/components/user-info/timezone-select.tsx +1 -0
- package/src/contexts/config-user-space.tsx +1 -2
- package/vite.config.mjs +4 -1
- package/lib/packages/blocklet-ui-react/build.config.d.ts +0 -2
- package/lib/packages/blocklet-ui-react/jest.config.d.ts +0 -8
- package/lib/packages/blocklet-ui-react/lib/Footer/index.d.ts +0 -2
- package/lib/packages/blocklet-ui-react/lib/Header/index.d.ts +0 -2
- package/lib/packages/blocklet-ui-react/src/@types/index.d.ts +0 -204
- package/lib/packages/blocklet-ui-react/src/BlockletStudio/index.d.ts +0 -27
- package/lib/packages/blocklet-ui-react/src/ComponentInstaller/ComponentInstaller.stories.d.ts +0 -9
- package/lib/packages/blocklet-ui-react/src/ComponentInstaller/demo/basic.d.ts +0 -29
- package/lib/packages/blocklet-ui-react/src/ComponentInstaller/demo/mock-optional-components.d.ts +0 -2
- package/lib/packages/blocklet-ui-react/src/ComponentInstaller/index.d.ts +0 -18
- package/lib/packages/blocklet-ui-react/src/ComponentInstaller/installer-item.d.ts +0 -18
- package/lib/packages/blocklet-ui-react/src/ComponentInstaller/locales.d.ts +0 -28
- package/lib/packages/blocklet-ui-react/src/ComponentInstaller/use-component-installed.d.ts +0 -12
- package/lib/packages/blocklet-ui-react/src/ComponentManager/components/add-component.d.ts +0 -16
- package/lib/packages/blocklet-ui-react/src/ComponentManager/components/check-component.d.ts +0 -2
- package/lib/packages/blocklet-ui-react/src/ComponentManager/components/publish-component.d.ts +0 -10
- package/lib/packages/blocklet-ui-react/src/ComponentManager/components/resource-dialog.d.ts +0 -13
- package/lib/packages/blocklet-ui-react/src/ComponentManager/index.d.ts +0 -3
- package/lib/packages/blocklet-ui-react/src/ComponentManager/libs/locales.d.ts +0 -14
- package/lib/packages/blocklet-ui-react/src/Dashboard/Dashboard.stories.d.ts +0 -13
- package/lib/packages/blocklet-ui-react/src/Dashboard/demo/basic.d.ts +0 -29
- package/lib/packages/blocklet-ui-react/src/Dashboard/index.d.ts +0 -30
- package/lib/packages/blocklet-ui-react/src/Footer/Footer.stories.d.ts +0 -19
- package/lib/packages/blocklet-ui-react/src/Footer/brand.d.ts +0 -15
- package/lib/packages/blocklet-ui-react/src/Footer/copyright.d.ts +0 -13
- package/lib/packages/blocklet-ui-react/src/Footer/demo/arcblock-site.d.ts +0 -31
- package/lib/packages/blocklet-ui-react/src/Footer/demo/brand.d.ts +0 -1
- package/lib/packages/blocklet-ui-react/src/Footer/demo/copyright.d.ts +0 -1
- package/lib/packages/blocklet-ui-react/src/Footer/demo/footer.d.ts +0 -10
- package/lib/packages/blocklet-ui-react/src/Footer/demo/links.d.ts +0 -1
- package/lib/packages/blocklet-ui-react/src/Footer/demo/social-media-icons.d.ts +0 -1
- package/lib/packages/blocklet-ui-react/src/Footer/internal-footer.d.ts +0 -32
- package/lib/packages/blocklet-ui-react/src/Footer/layout/plain.d.ts +0 -22
- package/lib/packages/blocklet-ui-react/src/Footer/layout/row.d.ts +0 -13
- package/lib/packages/blocklet-ui-react/src/Footer/layout/standard.d.ts +0 -24
- package/lib/packages/blocklet-ui-react/src/Footer/links.d.ts +0 -23
- package/lib/packages/blocklet-ui-react/src/Footer/social-media.d.ts +0 -14
- package/lib/packages/blocklet-ui-react/src/Header/Header.stories.d.ts +0 -26
- package/lib/packages/blocklet-ui-react/src/Header/demo/addons-customization.d.ts +0 -11
- package/lib/packages/blocklet-ui-react/src/Header/demo/basic.d.ts +0 -1
- package/lib/packages/blocklet-ui-react/src/Header/demo/fixtures/index.d.ts +0 -49
- package/lib/packages/blocklet-ui-react/src/Header/demo/with-enable-connect-enable-locale.d.ts +0 -1
- package/lib/packages/blocklet-ui-react/src/Header/index.d.ts +0 -23
- package/lib/packages/blocklet-ui-react/src/Icon/Icon.stories.d.ts +0 -12
- package/lib/packages/blocklet-ui-react/src/Icon/demo/basic.d.ts +0 -1
- package/lib/packages/blocklet-ui-react/src/Icon/index.d.ts +0 -9
- package/lib/packages/blocklet-ui-react/src/Notifications/Snackbar.d.ts +0 -16
- package/lib/packages/blocklet-ui-react/src/Notifications/hooks/use-title.d.ts +0 -48
- package/lib/packages/blocklet-ui-react/src/Notifications/hooks/use-width.d.ts +0 -2
- package/lib/packages/blocklet-ui-react/src/Notifications/utils.d.ts +0 -70
- package/lib/packages/blocklet-ui-react/src/UserCenter/components/config-inviter.d.ts +0 -4
- package/lib/packages/blocklet-ui-react/src/UserCenter/components/config-profile.d.ts +0 -5
- package/lib/packages/blocklet-ui-react/src/UserCenter/components/danger-zone.d.ts +0 -1
- package/lib/packages/blocklet-ui-react/src/UserCenter/components/editable-field.d.ts +0 -54
- package/lib/packages/blocklet-ui-react/src/UserCenter/components/nft.d.ts +0 -4
- package/lib/packages/blocklet-ui-react/src/UserCenter/components/notification.d.ts +0 -5
- package/lib/packages/blocklet-ui-react/src/UserCenter/components/passport.d.ts +0 -5
- package/lib/packages/blocklet-ui-react/src/UserCenter/components/privacy.d.ts +0 -11
- package/lib/packages/blocklet-ui-react/src/UserCenter/components/settings.d.ts +0 -10
- package/lib/packages/blocklet-ui-react/src/UserCenter/components/status-dialog/date-picker.d.ts +0 -10
- package/lib/packages/blocklet-ui-react/src/UserCenter/components/status-dialog/index.d.ts +0 -12
- package/lib/packages/blocklet-ui-react/src/UserCenter/components/status-selector/duration-menu.d.ts +0 -7
- package/lib/packages/blocklet-ui-react/src/UserCenter/components/status-selector/index.d.ts +0 -9
- package/lib/packages/blocklet-ui-react/src/UserCenter/components/status-selector/menu-item.d.ts +0 -24
- package/lib/packages/blocklet-ui-react/src/UserCenter/components/storage/action.d.ts +0 -9
- package/lib/packages/blocklet-ui-react/src/UserCenter/components/storage/connected.d.ts +0 -5
- package/lib/packages/blocklet-ui-react/src/UserCenter/components/storage/delete.d.ts +0 -6
- package/lib/packages/blocklet-ui-react/src/UserCenter/components/storage/disconnect.d.ts +0 -2
- package/lib/packages/blocklet-ui-react/src/UserCenter/components/storage/index.d.ts +0 -2
- package/lib/packages/blocklet-ui-react/src/UserCenter/components/storage/preview-nft.d.ts +0 -5
- package/lib/packages/blocklet-ui-react/src/UserCenter/components/third-party-login/index.d.ts +0 -4
- package/lib/packages/blocklet-ui-react/src/UserCenter/components/third-party-login/third-party-item.d.ts +0 -13
- package/lib/packages/blocklet-ui-react/src/UserCenter/components/user-center.d.ts +0 -16
- package/lib/packages/blocklet-ui-react/src/UserCenter/components/user-info/address.d.ts +0 -16
- package/lib/packages/blocklet-ui-react/src/UserCenter/components/user-info/index.d.ts +0 -4
- package/lib/packages/blocklet-ui-react/src/UserCenter/components/user-info/link-preview-input.d.ts +0 -5
- package/lib/packages/blocklet-ui-react/src/UserCenter/components/user-info/metadata.d.ts +0 -10
- package/lib/packages/blocklet-ui-react/src/UserCenter/components/user-info/switch-role.d.ts +0 -7
- package/lib/packages/blocklet-ui-react/src/UserCenter/components/user-info/timezone-select.d.ts +0 -8
- package/lib/packages/blocklet-ui-react/src/UserCenter/components/user-info/user-basic-info.d.ts +0 -13
- package/lib/packages/blocklet-ui-react/src/UserCenter/components/user-info/user-info-item.d.ts +0 -11
- package/lib/packages/blocklet-ui-react/src/UserCenter/components/user-info/user-info.d.ts +0 -6
- package/lib/packages/blocklet-ui-react/src/UserCenter/components/user-info/user-status.d.ts +0 -9
- package/lib/packages/blocklet-ui-react/src/UserCenter/components/user-info/utils.d.ts +0 -51
- package/lib/packages/blocklet-ui-react/src/UserCenter/components/webhook-item.d.ts +0 -2
- package/lib/packages/blocklet-ui-react/src/UserCenter/index.d.ts +0 -1
- package/lib/packages/blocklet-ui-react/src/UserCenter/libs/locales.d.ts +0 -345
- package/lib/packages/blocklet-ui-react/src/UserCenter/libs/utils.d.ts +0 -4
- package/lib/packages/blocklet-ui-react/src/UserSessions/components/user-session-info.d.ts +0 -5
- package/lib/packages/blocklet-ui-react/src/UserSessions/components/user-sessions.d.ts +0 -20
- package/lib/packages/blocklet-ui-react/src/UserSessions/index.d.ts +0 -1
- package/lib/packages/blocklet-ui-react/src/UserSessions/libs/locales.d.ts +0 -60
- package/lib/packages/blocklet-ui-react/src/UserSessions/libs/utils.d.ts +0 -2
- package/lib/packages/blocklet-ui-react/src/blocklets.d.ts +0 -17
- package/lib/packages/blocklet-ui-react/src/common/domain-warning.d.ts +0 -12
- package/lib/packages/blocklet-ui-react/src/common/header-addons.d.ts +0 -19
- package/lib/packages/blocklet-ui-react/src/common/link-blocker.d.ts +0 -7
- package/lib/packages/blocklet-ui-react/src/common/notification-addon.d.ts +0 -10
- package/lib/packages/blocklet-ui-react/src/common/overridable-theme-provider.d.ts +0 -15
- package/lib/packages/blocklet-ui-react/src/common/wallet-hidden-topbar.d.ts +0 -1
- package/lib/packages/blocklet-ui-react/src/common/ws.d.ts +0 -3
- package/lib/packages/blocklet-ui-react/src/contexts/config-user-space.d.ts +0 -27
- package/lib/packages/blocklet-ui-react/src/hooks/use-mobile.d.ts +0 -4
- package/lib/packages/blocklet-ui-react/src/index.d.ts +0 -10
- package/lib/packages/blocklet-ui-react/src/libs/client.d.ts +0 -2
- package/lib/packages/blocklet-ui-react/src/libs/constant.d.ts +0 -1
- package/lib/packages/blocklet-ui-react/src/libs/spaces.d.ts +0 -2
- package/lib/packages/blocklet-ui-react/src/libs/with-hide-when-embed.d.ts +0 -4
- package/lib/packages/blocklet-ui-react/src/types.d.ts +0 -36
- package/lib/packages/blocklet-ui-react/src/utils.d.ts +0 -10
- package/lib/packages/blocklet-ui-react/tools/auto-exports.d.ts +0 -1
- package/lib/packages/blocklet-ui-react/tools/jest.d.ts +0 -1
- package/lib/packages/blocklet-ui-react/vite.config.d.mts +0 -2
- /package/lib/{packages/blocklet-ui-react/lib/@types → @types}/index.d.ts +0 -0
- /package/lib/{packages/blocklet-ui-react/lib/BlockletStudio → BlockletStudio}/index.d.ts +0 -0
- /package/lib/{packages/blocklet-ui-react/lib/ComponentInstaller → ComponentInstaller}/index.d.ts +0 -0
- /package/lib/{packages/blocklet-ui-react/lib/ComponentInstaller → ComponentInstaller}/installer-item.d.ts +0 -0
- /package/lib/{packages/blocklet-ui-react/lib/ComponentInstaller → ComponentInstaller}/locales.d.ts +0 -0
- /package/lib/{packages/blocklet-ui-react/lib/ComponentInstaller → ComponentInstaller}/use-component-installed.d.ts +0 -0
- /package/lib/{packages/blocklet-ui-react/lib/ComponentManager → ComponentManager}/components/add-component.d.ts +0 -0
- /package/lib/{packages/blocklet-ui-react/lib/ComponentManager → ComponentManager}/components/check-component.d.ts +0 -0
- /package/lib/{packages/blocklet-ui-react/lib/ComponentManager → ComponentManager}/components/publish-component.d.ts +0 -0
- /package/lib/{packages/blocklet-ui-react/lib/ComponentManager → ComponentManager}/components/resource-dialog.d.ts +0 -0
- /package/lib/{packages/blocklet-ui-react/lib/ComponentManager → ComponentManager}/index.d.ts +0 -0
- /package/lib/{packages/blocklet-ui-react/lib/ComponentManager → ComponentManager}/libs/locales.d.ts +0 -0
- /package/lib/{packages/blocklet-ui-react/lib/Dashboard → Dashboard}/index.d.ts +0 -0
- /package/lib/{packages/blocklet-ui-react/lib/Footer → Footer}/brand.d.ts +0 -0
- /package/lib/{packages/blocklet-ui-react/lib/Footer → Footer}/copyright.d.ts +0 -0
- /package/lib/{packages/blocklet-ui-react/lib/Footer → Footer}/internal-footer.d.ts +0 -0
- /package/lib/{packages/blocklet-ui-react/lib/Footer → Footer}/layout/plain.d.ts +0 -0
- /package/lib/{packages/blocklet-ui-react/lib/Footer → Footer}/layout/row.d.ts +0 -0
- /package/lib/{packages/blocklet-ui-react/lib/Footer → Footer}/layout/standard.d.ts +0 -0
- /package/lib/{packages/blocklet-ui-react/lib/Footer → Footer}/links.d.ts +0 -0
- /package/lib/{packages/blocklet-ui-react/lib/Footer → Footer}/social-media.d.ts +0 -0
- /package/lib/{packages/blocklet-ui-react/lib/Icon → Icon}/index.d.ts +0 -0
- /package/lib/{packages/blocklet-ui-react/lib/Notifications → Notifications}/Snackbar.d.ts +0 -0
- /package/lib/{packages/blocklet-ui-react/lib/Notifications → Notifications}/hooks/use-title.d.ts +0 -0
- /package/lib/{packages/blocklet-ui-react/lib/Notifications → Notifications}/hooks/use-width.d.ts +0 -0
- /package/lib/{packages/blocklet-ui-react/lib/Notifications → Notifications}/utils.d.ts +0 -0
- /package/lib/{packages/blocklet-ui-react/lib/UserCenter → UserCenter}/components/config-inviter.d.ts +0 -0
- /package/lib/{packages/blocklet-ui-react/lib/UserCenter → UserCenter}/components/config-profile.d.ts +0 -0
- /package/lib/{packages/blocklet-ui-react/lib/UserCenter → UserCenter}/components/danger-zone.d.ts +0 -0
- /package/lib/{packages/blocklet-ui-react/lib/UserCenter → UserCenter}/components/editable-field.d.ts +0 -0
- /package/lib/{packages/blocklet-ui-react/lib/UserCenter → UserCenter}/components/nft.d.ts +0 -0
- /package/lib/{packages/blocklet-ui-react/lib/UserCenter → UserCenter}/components/notification.d.ts +0 -0
- /package/lib/{packages/blocklet-ui-react/lib/UserCenter → UserCenter}/components/passport.d.ts +0 -0
- /package/lib/{packages/blocklet-ui-react/lib/UserCenter → UserCenter}/components/privacy.d.ts +0 -0
- /package/lib/{packages/blocklet-ui-react/lib/UserCenter → UserCenter}/components/settings.d.ts +0 -0
- /package/lib/{packages/blocklet-ui-react/lib/UserCenter → UserCenter}/components/status-dialog/date-picker.d.ts +0 -0
- /package/lib/{packages/blocklet-ui-react/lib/UserCenter → UserCenter}/components/status-dialog/index.d.ts +0 -0
- /package/lib/{packages/blocklet-ui-react/lib/UserCenter → UserCenter}/components/status-selector/duration-menu.d.ts +0 -0
- /package/lib/{packages/blocklet-ui-react/lib/UserCenter → UserCenter}/components/status-selector/index.d.ts +0 -0
- /package/lib/{packages/blocklet-ui-react/lib/UserCenter → UserCenter}/components/status-selector/menu-item.d.ts +0 -0
- /package/lib/{packages/blocklet-ui-react/lib/UserCenter → UserCenter}/components/storage/action.d.ts +0 -0
- /package/lib/{packages/blocklet-ui-react/lib/UserCenter → UserCenter}/components/storage/connected.d.ts +0 -0
- /package/lib/{packages/blocklet-ui-react/lib/UserCenter → UserCenter}/components/storage/delete.d.ts +0 -0
- /package/lib/{packages/blocklet-ui-react/lib/UserCenter → UserCenter}/components/storage/disconnect.d.ts +0 -0
- /package/lib/{packages/blocklet-ui-react/lib/UserCenter → UserCenter}/components/storage/icons/empty-spaces-nft.svg.d.ts +0 -0
- /package/lib/{packages/blocklet-ui-react/lib/UserCenter → UserCenter}/components/storage/index.d.ts +0 -0
- /package/lib/{packages/blocklet-ui-react/lib/UserCenter → UserCenter}/components/storage/preview-nft.d.ts +0 -0
- /package/lib/{packages/blocklet-ui-react/lib/UserCenter → UserCenter}/components/third-party-login/index.d.ts +0 -0
- /package/lib/{packages/blocklet-ui-react/lib/UserCenter → UserCenter}/components/third-party-login/third-party-item.d.ts +0 -0
- /package/lib/{packages/blocklet-ui-react/lib/UserCenter → UserCenter}/components/user-center.d.ts +0 -0
- /package/lib/{packages/blocklet-ui-react/lib/UserCenter → UserCenter}/components/user-info/address.d.ts +0 -0
- /package/lib/{packages/blocklet-ui-react/lib/UserCenter → UserCenter}/components/user-info/index.d.ts +0 -0
- /package/lib/{packages/blocklet-ui-react/lib/UserCenter → UserCenter}/components/user-info/link-preview-input.d.ts +0 -0
- /package/lib/{packages/blocklet-ui-react/lib/UserCenter → UserCenter}/components/user-info/metadata.d.ts +0 -0
- /package/lib/{packages/blocklet-ui-react/lib/UserCenter → UserCenter}/components/user-info/switch-role.d.ts +0 -0
- /package/lib/{packages/blocklet-ui-react/lib/UserCenter → UserCenter}/components/user-info/timezone-select.d.ts +0 -0
- /package/lib/{packages/blocklet-ui-react/lib/UserCenter → UserCenter}/components/user-info/user-basic-info.d.ts +0 -0
- /package/lib/{packages/blocklet-ui-react/lib/UserCenter → UserCenter}/components/user-info/user-info-item.d.ts +0 -0
- /package/lib/{packages/blocklet-ui-react/lib/UserCenter → UserCenter}/components/user-info/user-info.d.ts +0 -0
- /package/lib/{packages/blocklet-ui-react/lib/UserCenter → UserCenter}/components/user-info/user-status.d.ts +0 -0
- /package/lib/{packages/blocklet-ui-react/lib/UserCenter → UserCenter}/components/user-info/utils.d.ts +0 -0
- /package/lib/{packages/blocklet-ui-react/lib/UserCenter → UserCenter}/components/webhook-item.d.ts +0 -0
- /package/lib/{packages/blocklet-ui-react/lib/UserCenter → UserCenter}/index.d.ts +0 -0
- /package/lib/{packages/blocklet-ui-react/lib/UserCenter → UserCenter}/libs/locales.d.ts +0 -0
- /package/lib/{packages/blocklet-ui-react/lib/UserCenter → UserCenter}/libs/utils.d.ts +0 -0
- /package/lib/{packages/blocklet-ui-react/lib/UserSessions → UserSessions}/components/user-session-info.d.ts +0 -0
- /package/lib/{packages/blocklet-ui-react/lib/UserSessions → UserSessions}/components/user-sessions.d.ts +0 -0
- /package/lib/{packages/blocklet-ui-react/lib/UserSessions → UserSessions}/index.d.ts +0 -0
- /package/lib/{packages/blocklet-ui-react/lib/UserSessions → UserSessions}/libs/locales.d.ts +0 -0
- /package/lib/{packages/blocklet-ui-react/lib/UserSessions → UserSessions}/libs/utils.d.ts +0 -0
- /package/lib/{packages/blocklet-ui-react/lib/blocklets.d.ts → blocklets.d.ts} +0 -0
- /package/lib/{packages/blocklet-ui-react/lib/common → common}/domain-warning.d.ts +0 -0
- /package/lib/{packages/blocklet-ui-react/lib/common → common}/header-addons.d.ts +0 -0
- /package/lib/{packages/blocklet-ui-react/lib/common → common}/link-blocker.d.ts +0 -0
- /package/lib/{packages/blocklet-ui-react/lib/common → common}/notification-addon.d.ts +0 -0
- /package/lib/{packages/blocklet-ui-react/lib/common → common}/overridable-theme-provider.d.ts +0 -0
- /package/lib/{packages/blocklet-ui-react/lib/common → common}/wallet-hidden-topbar.d.ts +0 -0
- /package/lib/{packages/blocklet-ui-react/lib/common → common}/ws.d.ts +0 -0
- /package/lib/{packages/blocklet-ui-react/lib/contexts → contexts}/config-user-space.d.ts +0 -0
- /package/lib/{packages/blocklet-ui-react/lib/hooks → hooks}/use-mobile.d.ts +0 -0
- /package/lib/{packages/blocklet-ui-react/lib/index.d.ts → index.d.ts} +0 -0
- /package/lib/{packages/blocklet-ui-react/lib/libs → libs}/client.d.ts +0 -0
- /package/lib/{packages/blocklet-ui-react/lib/libs → libs}/constant.d.ts +0 -0
- /package/lib/{packages/blocklet-ui-react/lib/libs → libs}/spaces.d.ts +0 -0
- /package/lib/{packages/blocklet-ui-react/lib/libs → libs}/with-hide-when-embed.d.ts +0 -0
- /package/lib/{packages/blocklet-ui-react/lib/types.d.ts → types.d.ts} +0 -0
- /package/lib/{packages/blocklet-ui-react/lib/utils.d.ts → utils.d.ts} +0 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export { No as default };
|
|
2
|
+
declare const No: import('react').ComponentType<{
|
|
3
|
+
[x: string]: any;
|
|
4
|
+
meta?: {} | undefined;
|
|
5
|
+
addons: any;
|
|
6
|
+
sessionManagerProps?: {
|
|
7
|
+
showRole: boolean;
|
|
8
|
+
} | undefined;
|
|
9
|
+
homeLink?: any;
|
|
10
|
+
theme: any;
|
|
11
|
+
hideNavMenu?: boolean | undefined;
|
|
12
|
+
showDomainWarningDialog?: boolean | undefined;
|
|
13
|
+
}>;
|
|
@@ -63,38 +63,44 @@ function q({ user: r }) {
|
|
|
63
63
|
display: "grid",
|
|
64
64
|
gridTemplateColumns: "1fr min-content"
|
|
65
65
|
},
|
|
66
|
-
children: !h.length && !g.length && !y.length ?
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
behavior: "only-new",
|
|
70
|
-
action: "connect",
|
|
71
|
-
createMode: "connect",
|
|
72
|
-
createButtonText: "Add Passkey",
|
|
73
|
-
onSuccess: a,
|
|
74
|
-
onError: a,
|
|
75
|
-
dense: !0
|
|
76
|
-
}
|
|
77
|
-
) : /* @__PURE__ */ L(O, { children: [
|
|
78
|
-
h.map((e) => /* @__PURE__ */ s(u, { item: e }, e == null ? void 0 : e.provider)),
|
|
79
|
-
g.map((e) => /* @__PURE__ */ s(u, { item: e }, e.id)),
|
|
80
|
-
y.map((e) => /* @__PURE__ */ s(u, { item: e }, e.id)),
|
|
81
|
-
A.wallet || A.arcSphere ? null : /* @__PURE__ */ s(
|
|
66
|
+
children: !h.length && !g.length && !y.length ? (
|
|
67
|
+
// @ts-expect-error 忽略 ref 类型
|
|
68
|
+
/* @__PURE__ */ s(
|
|
82
69
|
T,
|
|
83
70
|
{
|
|
84
71
|
behavior: "only-new",
|
|
85
72
|
action: "connect",
|
|
86
73
|
createMode: "connect",
|
|
87
|
-
createButtonText: "Add
|
|
74
|
+
createButtonText: "Add Passkey",
|
|
88
75
|
onSuccess: a,
|
|
89
76
|
onError: a,
|
|
90
|
-
dense: !0
|
|
91
|
-
sx: {
|
|
92
|
-
px: 1.5,
|
|
93
|
-
py: 1,
|
|
94
|
-
gap: 0.75
|
|
95
|
-
}
|
|
77
|
+
dense: !0
|
|
96
78
|
}
|
|
97
79
|
)
|
|
80
|
+
) : /* @__PURE__ */ L(O, { children: [
|
|
81
|
+
h.map((e) => /* @__PURE__ */ s(u, { item: e }, e == null ? void 0 : e.provider)),
|
|
82
|
+
g.map((e) => /* @__PURE__ */ s(u, { item: e }, e.id)),
|
|
83
|
+
y.map((e) => /* @__PURE__ */ s(u, { item: e }, e.id)),
|
|
84
|
+
A.wallet || A.arcSphere ? null : (
|
|
85
|
+
// @ts-expect-error 忽略 ref 类型
|
|
86
|
+
/* @__PURE__ */ s(
|
|
87
|
+
T,
|
|
88
|
+
{
|
|
89
|
+
behavior: "only-new",
|
|
90
|
+
action: "connect",
|
|
91
|
+
createMode: "connect",
|
|
92
|
+
createButtonText: "Add New Passkey",
|
|
93
|
+
onSuccess: a,
|
|
94
|
+
onError: a,
|
|
95
|
+
dense: !0,
|
|
96
|
+
sx: {
|
|
97
|
+
px: 1.5,
|
|
98
|
+
py: 1,
|
|
99
|
+
gap: 0.75
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
)
|
|
103
|
+
)
|
|
98
104
|
] })
|
|
99
105
|
}
|
|
100
106
|
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/ui-react",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.4",
|
|
4
4
|
"description": "Some useful front-end web components that can be used in Blocklets.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@abtnode/constant": "^1.16.44",
|
|
36
36
|
"@abtnode/util": "^1.16.44",
|
|
37
|
-
"@arcblock/bridge": "3.0.
|
|
38
|
-
"@arcblock/icons": "3.0.
|
|
39
|
-
"@arcblock/react-hooks": "3.0.
|
|
37
|
+
"@arcblock/bridge": "3.0.4",
|
|
38
|
+
"@arcblock/icons": "3.0.4",
|
|
39
|
+
"@arcblock/react-hooks": "3.0.4",
|
|
40
40
|
"@arcblock/ws": "^1.20.14",
|
|
41
41
|
"@blocklet/constant": "^1.16.44",
|
|
42
42
|
"@blocklet/did-space-react": "^1.0.62",
|
|
@@ -88,5 +88,5 @@
|
|
|
88
88
|
"jest": "^29.7.0",
|
|
89
89
|
"unbuild": "^2.0.0"
|
|
90
90
|
},
|
|
91
|
-
"gitHead": "
|
|
91
|
+
"gitHead": "8078514c9bfa121870fa03bc9b9a0cd0bb026739"
|
|
92
92
|
}
|
package/src/Header/index.tsx
CHANGED
|
@@ -159,7 +159,9 @@ function Header({
|
|
|
159
159
|
// @ts-ignore
|
|
160
160
|
<HeaderAddons
|
|
161
161
|
formattedBlocklet={formattedBlocklet}
|
|
162
|
+
// @ts-ignore
|
|
162
163
|
addons={_addons}
|
|
164
|
+
// @ts-ignore
|
|
163
165
|
sessionManagerProps={sessionManagerProps}
|
|
164
166
|
showDomainWarningDialog={showDomainWarningDialog}
|
|
165
167
|
/>
|
|
@@ -156,6 +156,7 @@ export default function ThirdPartyLogin({ user }: { user: User }) {
|
|
|
156
156
|
gridTemplateColumns: '1fr min-content',
|
|
157
157
|
}}>
|
|
158
158
|
{!oauthAccounts.length && !passkeyAccounts.length && !walletAccounts.length ? (
|
|
159
|
+
// @ts-expect-error 忽略 ref 类型
|
|
159
160
|
<PasskeyActions
|
|
160
161
|
behavior="only-new"
|
|
161
162
|
action="connect"
|
|
@@ -177,6 +178,7 @@ export default function ThirdPartyLogin({ user }: { user: User }) {
|
|
|
177
178
|
return <ThirdPartyItem key={account.id} item={account as OAuthAccount} />;
|
|
178
179
|
})}
|
|
179
180
|
{browser.wallet || browser.arcSphere ? null : (
|
|
181
|
+
// @ts-expect-error 忽略 ref 类型
|
|
180
182
|
<PasskeyActions
|
|
181
183
|
behavior="only-new"
|
|
182
184
|
action="connect"
|
|
@@ -44,6 +44,7 @@ export function TimezoneSelect({ value, onChange, disabled = false, mode = 'self
|
|
|
44
44
|
disabled={disabled}
|
|
45
45
|
displayEmpty
|
|
46
46
|
variant="outlined"
|
|
47
|
+
// @ts-expect-error
|
|
47
48
|
placeholder="Timezone"
|
|
48
49
|
// eslint-disable-next-line react/no-unstable-nested-components
|
|
49
50
|
IconComponent={(props) => (
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { createContext, use, useMemo, useState, useEffect } from 'react';
|
|
2
2
|
import { SessionContext } from '@arcblock/did-connect/lib/Session';
|
|
3
3
|
|
|
4
|
-
import { SessionContext as TSessionContext } from '../@types';
|
|
5
|
-
import { Session } from '../../lib/@types';
|
|
4
|
+
import type { SessionContext as TSessionContext, Session } from '../@types';
|
|
6
5
|
|
|
7
6
|
export interface SpaceGateway {
|
|
8
7
|
did: string;
|
package/vite.config.mjs
CHANGED
|
@@ -11,11 +11,14 @@ export default defineConfig({
|
|
|
11
11
|
svgr({
|
|
12
12
|
include: ['**/*.svg', '**/*.svg?react'],
|
|
13
13
|
}),
|
|
14
|
+
dts({
|
|
15
|
+
entryRoot: 'src',
|
|
16
|
+
exclude: ['**/*.stories.*', '**/*.test.*', '**/demo/**'],
|
|
17
|
+
}),
|
|
14
18
|
noBundlePlugin({
|
|
15
19
|
root: 'src',
|
|
16
20
|
copy: ['**/*.png', '**/*.gif', '**/*.jpg', '**/*.jpeg'],
|
|
17
21
|
}),
|
|
18
|
-
dts(),
|
|
19
22
|
],
|
|
20
23
|
build: {
|
|
21
24
|
lib: {
|
|
@@ -1,204 +0,0 @@
|
|
|
1
|
-
import { Axios } from 'axios';
|
|
2
|
-
import { UserPublicInfo } from '@blocklet/js-sdk';
|
|
3
|
-
import { OAUTH_PROVIDER } from '@arcblock/ux/lib/Util/constant';
|
|
4
|
-
import { CloseConnect, OpenConnect } from '@arcblock/did-connect/lib/types';
|
|
5
|
-
export type SessionContext = {
|
|
6
|
-
session: Session;
|
|
7
|
-
api: Axios;
|
|
8
|
-
connectApi: {
|
|
9
|
-
open: OpenConnect;
|
|
10
|
-
close: CloseConnect;
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
export type OAuthAccount = {
|
|
14
|
-
provider: keyof typeof OAUTH_PROVIDER;
|
|
15
|
-
id: string;
|
|
16
|
-
did: string;
|
|
17
|
-
pk: string;
|
|
18
|
-
lastLoginAt: string;
|
|
19
|
-
firstLoginAt: string;
|
|
20
|
-
order?: number;
|
|
21
|
-
userInfo?: {
|
|
22
|
-
email: string;
|
|
23
|
-
emailVerified: boolean;
|
|
24
|
-
name: string;
|
|
25
|
-
picture: string;
|
|
26
|
-
sub: string;
|
|
27
|
-
extraData: Object;
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
export type WalletAccount = {
|
|
31
|
-
provider: 'wallet';
|
|
32
|
-
did: string;
|
|
33
|
-
pk: string;
|
|
34
|
-
lastLoginAt: string;
|
|
35
|
-
firstLoginAt: string;
|
|
36
|
-
};
|
|
37
|
-
export type NFTAccount = {
|
|
38
|
-
provider: 'nft';
|
|
39
|
-
did: string;
|
|
40
|
-
pk: string;
|
|
41
|
-
owner: string;
|
|
42
|
-
lastLoginAt: string;
|
|
43
|
-
firstLoginAt: string;
|
|
44
|
-
};
|
|
45
|
-
export type ConnectedAccount = OAuthAccount | WalletAccount | NFTAccount;
|
|
46
|
-
export type UserMetadataLink = {
|
|
47
|
-
url: string;
|
|
48
|
-
favicon?: string;
|
|
49
|
-
};
|
|
50
|
-
export declare enum DurationEnum {
|
|
51
|
-
NoClear = "no_clear",
|
|
52
|
-
ThirtyMinutes = "30_minutes",
|
|
53
|
-
OneHour = "1_hour",
|
|
54
|
-
FourHours = "4_hours",
|
|
55
|
-
Today = "today",
|
|
56
|
-
ThisWeek = "this_week",
|
|
57
|
-
Custom = "custom"
|
|
58
|
-
}
|
|
59
|
-
export declare enum StatusEnum {
|
|
60
|
-
Meeting = "meeting",
|
|
61
|
-
Community = "community",
|
|
62
|
-
Holiday = "holiday",
|
|
63
|
-
OffSick = "off_sick",
|
|
64
|
-
WorkingRemotely = "working_remotely"
|
|
65
|
-
}
|
|
66
|
-
export type UserPhoneProps = {
|
|
67
|
-
country: string;
|
|
68
|
-
phoneNumber?: string;
|
|
69
|
-
};
|
|
70
|
-
export type UserMetadata = {
|
|
71
|
-
bio?: string;
|
|
72
|
-
location?: string;
|
|
73
|
-
timezone?: string;
|
|
74
|
-
joinedAt?: string;
|
|
75
|
-
status?: {
|
|
76
|
-
value: string;
|
|
77
|
-
duration?: DurationEnum;
|
|
78
|
-
dateRange?: Date[];
|
|
79
|
-
};
|
|
80
|
-
links?: UserMetadataLink[];
|
|
81
|
-
cover?: string;
|
|
82
|
-
email?: string;
|
|
83
|
-
phone?: UserPhoneProps;
|
|
84
|
-
};
|
|
85
|
-
export type UserAddress = {
|
|
86
|
-
country?: string;
|
|
87
|
-
province?: string;
|
|
88
|
-
city?: string;
|
|
89
|
-
line1?: string;
|
|
90
|
-
line2?: string;
|
|
91
|
-
postalCode?: string;
|
|
92
|
-
};
|
|
93
|
-
export type User = UserPublicInfo & {
|
|
94
|
-
role: string;
|
|
95
|
-
email?: string;
|
|
96
|
-
phone?: string;
|
|
97
|
-
sourceProvider?: string;
|
|
98
|
-
sourceAppPid?: string;
|
|
99
|
-
lastLoginAt?: string;
|
|
100
|
-
lastLoginIp?: string;
|
|
101
|
-
createdAt?: string;
|
|
102
|
-
passports?: any[];
|
|
103
|
-
didSpace?: Record<string, any>;
|
|
104
|
-
connectedAccounts?: any[];
|
|
105
|
-
locale?: string;
|
|
106
|
-
url: string;
|
|
107
|
-
inviter?: string;
|
|
108
|
-
emailVerified?: boolean;
|
|
109
|
-
phoneVerified?: boolean;
|
|
110
|
-
metadata?: UserMetadata;
|
|
111
|
-
address?: UserAddress;
|
|
112
|
-
};
|
|
113
|
-
export type UserCenterTab = {
|
|
114
|
-
value: string;
|
|
115
|
-
label: string;
|
|
116
|
-
url: string;
|
|
117
|
-
protected: boolean;
|
|
118
|
-
icon?: string;
|
|
119
|
-
isPrivate?: boolean;
|
|
120
|
-
};
|
|
121
|
-
export type Session = {
|
|
122
|
-
loading: boolean;
|
|
123
|
-
initialized: boolean;
|
|
124
|
-
user?: User;
|
|
125
|
-
login: any;
|
|
126
|
-
logout: any;
|
|
127
|
-
switch: any;
|
|
128
|
-
switchDid: any;
|
|
129
|
-
refreshProfile: () => Promise<void>;
|
|
130
|
-
switchProfile: any;
|
|
131
|
-
switchPassport: any;
|
|
132
|
-
refresh: Function;
|
|
133
|
-
useOAuth: Function;
|
|
134
|
-
usePasskey: Function;
|
|
135
|
-
};
|
|
136
|
-
export type WebhookType = 'slack' | 'api';
|
|
137
|
-
export type WebhookItemData = {
|
|
138
|
-
type: WebhookType;
|
|
139
|
-
url: string;
|
|
140
|
-
};
|
|
141
|
-
export type WebhookItemProps = {
|
|
142
|
-
onTest: (params: WebhookItemData) => void;
|
|
143
|
-
onSave: (params: WebhookItemData) => void;
|
|
144
|
-
onDelete?: (params: WebhookItemData) => void;
|
|
145
|
-
onCancel?: () => void;
|
|
146
|
-
edit: boolean;
|
|
147
|
-
type?: WebhookType;
|
|
148
|
-
url?: string;
|
|
149
|
-
};
|
|
150
|
-
export type CreatePassportProps = {
|
|
151
|
-
issuer: string;
|
|
152
|
-
title: string;
|
|
153
|
-
issuerDid: string;
|
|
154
|
-
issuerAvatarUrl: string;
|
|
155
|
-
ownerDid: string;
|
|
156
|
-
ownerName?: string;
|
|
157
|
-
ownerAvatarUrl: string;
|
|
158
|
-
preferredColor?: string;
|
|
159
|
-
revoked?: boolean;
|
|
160
|
-
isDataUrl?: boolean;
|
|
161
|
-
width?: string;
|
|
162
|
-
height?: string;
|
|
163
|
-
scope?: string;
|
|
164
|
-
role?: string;
|
|
165
|
-
display?: {
|
|
166
|
-
type: string;
|
|
167
|
-
content: string;
|
|
168
|
-
};
|
|
169
|
-
};
|
|
170
|
-
export type BlockletMetaProps = {
|
|
171
|
-
appLogo?: React.ReactNode;
|
|
172
|
-
appName?: string;
|
|
173
|
-
theme?: {
|
|
174
|
-
background?: string;
|
|
175
|
-
};
|
|
176
|
-
enableConnect?: boolean;
|
|
177
|
-
enableLocale?: boolean;
|
|
178
|
-
navigation?: Array<{
|
|
179
|
-
title?: string | object;
|
|
180
|
-
link?: string | object;
|
|
181
|
-
icon?: string;
|
|
182
|
-
items?: Array<{
|
|
183
|
-
title?: string | object;
|
|
184
|
-
link?: string | object;
|
|
185
|
-
}>;
|
|
186
|
-
}>;
|
|
187
|
-
};
|
|
188
|
-
export type SessionManagerProps = {
|
|
189
|
-
showText?: boolean;
|
|
190
|
-
showRole?: boolean;
|
|
191
|
-
switchDid?: boolean;
|
|
192
|
-
switchProfile?: boolean;
|
|
193
|
-
switchPassport?: boolean;
|
|
194
|
-
disableLogout?: boolean;
|
|
195
|
-
onLogin?: () => void;
|
|
196
|
-
onLogout?: () => void;
|
|
197
|
-
onSwitchDid?: () => void;
|
|
198
|
-
onSwitchProfile?: () => void;
|
|
199
|
-
onSwitchPassport?: () => void;
|
|
200
|
-
menu?: any[];
|
|
201
|
-
menuRender?: () => void;
|
|
202
|
-
dark?: boolean;
|
|
203
|
-
size?: number;
|
|
204
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
interface BlockletStudioProps {
|
|
2
|
-
open: boolean;
|
|
3
|
-
setOpen: (open: boolean) => void;
|
|
4
|
-
onOpened?: () => void;
|
|
5
|
-
componentDid: string;
|
|
6
|
-
tenantScope?: string;
|
|
7
|
-
resourcesParams?: Record<string, any>;
|
|
8
|
-
mode?: string;
|
|
9
|
-
title?: string;
|
|
10
|
-
logo?: string;
|
|
11
|
-
description?: string;
|
|
12
|
-
introduction?: string;
|
|
13
|
-
note?: string;
|
|
14
|
-
onUploaded?: (data: unknown) => void;
|
|
15
|
-
onReleased?: (data: unknown) => void;
|
|
16
|
-
onConnected?: (data: unknown) => void;
|
|
17
|
-
components?: Record<string, unknown>[];
|
|
18
|
-
resources?: Record<string, unknown>;
|
|
19
|
-
componentsTitle?: string;
|
|
20
|
-
resourcesTitle?: string;
|
|
21
|
-
style?: React.CSSProperties;
|
|
22
|
-
zIndex?: number;
|
|
23
|
-
dependentComponentsMode?: 'auto' | 'readonly';
|
|
24
|
-
[key: string]: any;
|
|
25
|
-
}
|
|
26
|
-
declare function BlockletStudio({ open, setOpen, onOpened, componentDid, tenantScope, resourcesParams, mode, title, logo, description, introduction, note, componentsTitle, resourcesTitle, onUploaded, onReleased, onConnected, components, resources, style, zIndex, dependentComponentsMode, ...rest }: BlockletStudioProps): import("react/jsx-runtime").JSX.Element | null;
|
|
27
|
-
export default BlockletStudio;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { default as PropTypes } from 'prop-types';
|
|
2
|
-
import { default as noop } from 'lodash/noop';
|
|
3
|
-
declare function Demo({ userRole }: {
|
|
4
|
-
userRole: any;
|
|
5
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
declare namespace Demo {
|
|
7
|
-
namespace propTypes {
|
|
8
|
-
let userRole: PropTypes.Validator<string>;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
export default Demo;
|
|
12
|
-
export namespace mockSession {
|
|
13
|
-
export { noop as login };
|
|
14
|
-
export { noop as logout };
|
|
15
|
-
export { noop as switch };
|
|
16
|
-
export { noop as switchDid };
|
|
17
|
-
export { noop as switchProfile };
|
|
18
|
-
export { noop as switchPassport };
|
|
19
|
-
export function useDid(): {
|
|
20
|
-
walletDid: string;
|
|
21
|
-
};
|
|
22
|
-
export function useOAuth(): {
|
|
23
|
-
logoutOAuth: (...args: any[]) => void;
|
|
24
|
-
bindOAuth: (...args: any[]) => void;
|
|
25
|
-
configs: {};
|
|
26
|
-
switchOAuthPassport: (...args: any[]) => void;
|
|
27
|
-
};
|
|
28
|
-
export function getUserSessions(): never[];
|
|
29
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { default as PropTypes } from 'prop-types';
|
|
2
|
-
declare function WrapComponentInstaller(props: any): any;
|
|
3
|
-
declare namespace WrapComponentInstaller {
|
|
4
|
-
namespace propTypes {
|
|
5
|
-
let children: PropTypes.Validator<any>;
|
|
6
|
-
let disabled: PropTypes.Requireable<boolean>;
|
|
7
|
-
let warnIcon: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
8
|
-
let did: PropTypes.Validator<NonNullable<NonNullable<string | (string | null | undefined)[] | null | undefined>>>;
|
|
9
|
-
let noPermissionMute: PropTypes.Requireable<boolean>;
|
|
10
|
-
let onInstalled: PropTypes.Requireable<(...args: any[]) => any>;
|
|
11
|
-
let onError: PropTypes.Requireable<(...args: any[]) => any>;
|
|
12
|
-
let closeByOutSize: PropTypes.Requireable<boolean>;
|
|
13
|
-
let onClose: PropTypes.Requireable<(...args: any[]) => any>;
|
|
14
|
-
let fallback: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
15
|
-
let roles: PropTypes.Requireable<any[]>;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
export default WrapComponentInstaller;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { default as PropTypes } from 'prop-types';
|
|
2
|
-
declare function InstallerItem({ optionalComponent, index, installStatus, hasPermission, t }: {
|
|
3
|
-
optionalComponent: any;
|
|
4
|
-
index: any;
|
|
5
|
-
installStatus?: string | undefined;
|
|
6
|
-
hasPermission: any;
|
|
7
|
-
t: any;
|
|
8
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
declare namespace InstallerItem {
|
|
10
|
-
namespace propTypes {
|
|
11
|
-
let t: PropTypes.Validator<(...args: any[]) => any>;
|
|
12
|
-
let optionalComponent: PropTypes.Validator<object>;
|
|
13
|
-
let index: PropTypes.Validator<number>;
|
|
14
|
-
let installStatus: PropTypes.Requireable<string>;
|
|
15
|
-
let hasPermission: PropTypes.Validator<boolean>;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
export default InstallerItem;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
export default translations;
|
|
2
|
-
declare namespace translations {
|
|
3
|
-
namespace zh {
|
|
4
|
-
let componentInstallerTitle: string;
|
|
5
|
-
let componentInstallerInstall: string;
|
|
6
|
-
let componentInstallerClose: string;
|
|
7
|
-
let componentInstallerRefresh: string;
|
|
8
|
-
let componentInstallerSuccessInstalled: string;
|
|
9
|
-
let componentInstallerSuggestions: string;
|
|
10
|
-
let componentInstallerNoDefinedInBlockletYML: string;
|
|
11
|
-
}
|
|
12
|
-
namespace en {
|
|
13
|
-
let componentInstallerTitle_1: string;
|
|
14
|
-
export { componentInstallerTitle_1 as componentInstallerTitle };
|
|
15
|
-
let componentInstallerInstall_1: string;
|
|
16
|
-
export { componentInstallerInstall_1 as componentInstallerInstall };
|
|
17
|
-
let componentInstallerClose_1: string;
|
|
18
|
-
export { componentInstallerClose_1 as componentInstallerClose };
|
|
19
|
-
let componentInstallerRefresh_1: string;
|
|
20
|
-
export { componentInstallerRefresh_1 as componentInstallerRefresh };
|
|
21
|
-
let componentInstallerSuccessInstalled_1: string;
|
|
22
|
-
export { componentInstallerSuccessInstalled_1 as componentInstallerSuccessInstalled };
|
|
23
|
-
let componentInstallerSuggestions_1: string;
|
|
24
|
-
export { componentInstallerSuggestions_1 as componentInstallerSuggestions };
|
|
25
|
-
let componentInstallerNoDefinedInBlockletYML_1: string;
|
|
26
|
-
export { componentInstallerNoDefinedInBlockletYML_1 as componentInstallerNoDefinedInBlockletYML };
|
|
27
|
-
}
|
|
28
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export default useComponentInstalled;
|
|
2
|
-
declare function useComponentInstalled({ did, onInstalled, onError }: {
|
|
3
|
-
did: any;
|
|
4
|
-
onInstalled: any;
|
|
5
|
-
onError: any;
|
|
6
|
-
}): {
|
|
7
|
-
optComponents: any;
|
|
8
|
-
installed: any;
|
|
9
|
-
installStatus: {};
|
|
10
|
-
setInstallStatus: import('react').Dispatch<import('react').SetStateAction<{}>>;
|
|
11
|
-
definedInBlockletYML: any;
|
|
12
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { ReactElement } from 'react';
|
|
2
|
-
export default function AddComponent({ componentDid, resourceType, resourceDid, grantedRoles, autoClose, selectedMeta, storeUrl, onComplete, onClose, render, }: {
|
|
3
|
-
componentDid: string;
|
|
4
|
-
resourceType?: string;
|
|
5
|
-
resourceDid?: string;
|
|
6
|
-
autoClose: boolean;
|
|
7
|
-
selectedMeta?: any;
|
|
8
|
-
storeUrl?: string;
|
|
9
|
-
grantedRoles?: string[];
|
|
10
|
-
onComplete: () => void;
|
|
11
|
-
onClose: () => void;
|
|
12
|
-
render?: ({ onClick, loading }: {
|
|
13
|
-
onClick: () => void;
|
|
14
|
-
loading: boolean;
|
|
15
|
-
}) => ReactElement<any>;
|
|
16
|
-
}): import("react/jsx-runtime").JSX.Element;
|
package/lib/packages/blocklet-ui-react/src/ComponentManager/components/publish-component.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ReactElement } from 'react';
|
|
2
|
-
export default function PublishComponent({ componentDid, grantedRoles, onClose, render, }: {
|
|
3
|
-
componentDid: string;
|
|
4
|
-
grantedRoles?: string[];
|
|
5
|
-
onClose: () => void;
|
|
6
|
-
render?: ({ onClick, loading }: {
|
|
7
|
-
onClick: () => void;
|
|
8
|
-
loading: boolean;
|
|
9
|
-
}) => ReactElement<any>;
|
|
10
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
declare const _default: import('react').ForwardRefExoticComponent<{
|
|
2
|
-
src: string;
|
|
3
|
-
componentDid: string;
|
|
4
|
-
open?: boolean;
|
|
5
|
-
loading?: boolean;
|
|
6
|
-
storeUrl?: string;
|
|
7
|
-
onLoad?: () => void;
|
|
8
|
-
onClose?: () => void;
|
|
9
|
-
onComplete?: () => void;
|
|
10
|
-
} & import('react').RefAttributes<{
|
|
11
|
-
selectBlocklet: (blockletMeta: any) => void;
|
|
12
|
-
}>>;
|
|
13
|
-
export default _default;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export declare const translations: {
|
|
2
|
-
zh: {
|
|
3
|
-
importResource: string;
|
|
4
|
-
exportResource: string;
|
|
5
|
-
noPermission: string;
|
|
6
|
-
needLogin: string;
|
|
7
|
-
};
|
|
8
|
-
en: {
|
|
9
|
-
importResource: string;
|
|
10
|
-
exportResource: string;
|
|
11
|
-
noPermission: string;
|
|
12
|
-
needLogin: string;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { default as Basic } from './demo/basic';
|
|
2
|
-
declare namespace _default {
|
|
3
|
-
let title: string;
|
|
4
|
-
namespace parameters {
|
|
5
|
-
let layout: string;
|
|
6
|
-
namespace design {
|
|
7
|
-
let type: string;
|
|
8
|
-
let url: string;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
export default _default;
|
|
13
|
-
export { Basic };
|