@blocklet/ui-react 3.0.3 → 3.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/@types/index.d.ts +3 -0
- package/lib/BlockletStudio/index.d.ts +26 -0
- package/lib/ComponentInstaller/index.d.ts +18 -0
- package/lib/ComponentInstaller/installer-item.d.ts +18 -0
- package/lib/{types/ComponentInstaller → ComponentInstaller}/locales.d.ts +2 -2
- package/lib/{types/ComponentInstaller → ComponentInstaller}/use-component-installed.d.ts +2 -2
- package/lib/ComponentManager/components/add-component.d.ts +13 -0
- package/lib/ComponentManager/components/check-component.d.ts +2 -0
- package/lib/ComponentManager/components/publish-component.d.ts +7 -0
- package/lib/ComponentManager/components/resource-dialog.d.ts +11 -0
- package/lib/ComponentManager/index.d.ts +4 -0
- package/lib/ComponentManager/libs/locales.d.ts +19 -0
- package/lib/Dashboard/index.d.ts +27 -0
- package/lib/Footer/brand.d.ts +15 -0
- package/lib/Footer/copyright.d.ts +13 -0
- package/lib/{types/Footer → Footer}/index.d.ts +2 -2
- package/lib/Footer/internal-footer.d.ts +29 -0
- package/lib/Footer/layout/plain.d.ts +19 -0
- package/lib/Footer/layout/row.d.ts +13 -0
- package/lib/Footer/layout/standard.d.ts +21 -0
- package/lib/Footer/links.d.ts +20 -0
- package/lib/Footer/social-media.d.ts +14 -0
- package/lib/Header/index.d.ts +13 -0
- package/lib/Icon/index.d.ts +7 -0
- package/lib/Notifications/Snackbar.d.ts +8 -0
- package/lib/Notifications/hooks/use-title.d.ts +9 -0
- package/lib/Notifications/hooks/use-width.d.ts +2 -0
- package/lib/Notifications/utils.d.ts +10 -0
- package/lib/UserCenter/components/config-inviter.d.ts +4 -0
- package/lib/UserCenter/components/config-profile.d.ts +5 -0
- package/lib/UserCenter/components/danger-zone.d.ts +2 -0
- package/lib/UserCenter/components/editable-field.d.ts +50 -0
- package/lib/UserCenter/components/nft.d.ts +4 -0
- package/lib/UserCenter/components/notification.d.ts +5 -0
- package/lib/UserCenter/components/passport.d.ts +5 -0
- package/lib/UserCenter/components/privacy.d.ts +5 -0
- package/lib/UserCenter/components/settings.d.ts +8 -0
- package/lib/UserCenter/components/status-dialog/date-picker.d.ts +9 -0
- package/lib/UserCenter/components/status-dialog/index.d.ts +9 -0
- package/lib/UserCenter/components/status-selector/duration-menu.d.ts +7 -0
- package/lib/UserCenter/components/status-selector/index.d.ts +8 -0
- package/lib/UserCenter/components/status-selector/menu-item.d.ts +9 -0
- package/lib/UserCenter/components/storage/action.d.ts +7 -0
- package/lib/UserCenter/components/storage/connected.d.ts +4 -0
- package/lib/UserCenter/components/storage/delete.d.ts +5 -0
- package/lib/UserCenter/components/storage/disconnect.d.ts +2 -0
- package/lib/UserCenter/components/storage/icons/empty-spaces-nft.svg.d.ts +3 -0
- package/lib/UserCenter/components/storage/index.d.ts +2 -0
- package/lib/UserCenter/components/storage/preview-nft.d.ts +5 -0
- package/lib/UserCenter/components/third-party-login/index.d.ts +4 -0
- package/lib/UserCenter/components/third-party-login/third-party-item.d.ts +4 -0
- package/lib/UserCenter/components/user-center.d.ts +15 -0
- package/lib/UserCenter/components/user-info/address.d.ts +7 -0
- package/lib/UserCenter/components/user-info/index.d.ts +5 -0
- package/lib/UserCenter/components/user-info/link-preview-input.d.ts +6 -0
- package/lib/UserCenter/components/user-info/metadata.d.ts +7 -0
- package/lib/UserCenter/components/user-info/switch-role.d.ts +6 -0
- package/lib/UserCenter/components/user-info/timezone-select.d.ts +7 -0
- package/lib/UserCenter/components/user-info/user-basic-info.d.ts +12 -0
- package/lib/UserCenter/components/user-info/user-info-item.d.ts +6 -0
- package/lib/UserCenter/components/user-info/user-info.d.ts +6 -0
- package/lib/UserCenter/components/user-info/user-status.d.ts +9 -0
- package/lib/UserCenter/components/user-info/utils.d.ts +33 -0
- package/lib/UserCenter/components/webhook-item.d.ts +10 -0
- package/lib/UserCenter/index.d.ts +2 -0
- package/lib/UserCenter/libs/locales.d.ts +513 -0
- package/lib/UserCenter/libs/utils.d.ts +3 -0
- package/lib/UserSessions/components/user-session-info.d.ts +5 -0
- package/lib/UserSessions/components/user-sessions.d.ts +8 -0
- package/lib/UserSessions/index.d.ts +2 -0
- package/lib/UserSessions/libs/locales.d.ts +88 -0
- package/lib/UserSessions/libs/utils.d.ts +3 -0
- package/lib/blocklets.d.ts +18 -0
- package/lib/common/domain-warning.d.ts +12 -0
- package/lib/common/header-addons.d.ts +19 -0
- package/lib/common/link-blocker.d.ts +4 -0
- package/lib/common/notification-addon.d.ts +10 -0
- package/lib/common/overridable-theme-provider.d.ts +12 -0
- package/lib/common/wallet-hidden-topbar.d.ts +2 -0
- package/lib/common/ws.d.ts +4 -0
- package/lib/contexts/config-user-space.d.ts +7 -0
- package/lib/hooks/use-mobile.d.ts +4 -0
- package/lib/index.d.ts +12 -0
- package/lib/libs/client.d.ts +3 -0
- package/lib/libs/constant.d.ts +2 -0
- package/lib/libs/spaces.d.ts +3 -0
- package/lib/libs/with-hide-when-embed.d.ts +5 -0
- package/lib/types.d.ts +37 -0
- package/lib/utils.d.ts +11 -0
- package/package.json +7 -7
- package/vite.config.mjs +1 -1
- package/lib/types/@types/index.d.ts +0 -204
- package/lib/types/BlockletStudio/index.d.ts +0 -27
- package/lib/types/ComponentInstaller/ComponentInstaller.stories.d.ts +0 -9
- package/lib/types/ComponentInstaller/demo/basic.d.ts +0 -29
- package/lib/types/ComponentInstaller/demo/mock-optional-components.d.ts +0 -2
- package/lib/types/ComponentInstaller/index.d.ts +0 -18
- package/lib/types/ComponentInstaller/installer-item.d.ts +0 -18
- package/lib/types/ComponentManager/components/add-component.d.ts +0 -16
- package/lib/types/ComponentManager/components/check-component.d.ts +0 -2
- package/lib/types/ComponentManager/components/publish-component.d.ts +0 -10
- package/lib/types/ComponentManager/components/resource-dialog.d.ts +0 -13
- package/lib/types/ComponentManager/index.d.ts +0 -3
- package/lib/types/ComponentManager/libs/locales.d.ts +0 -14
- package/lib/types/Dashboard/Dashboard.stories.d.ts +0 -13
- package/lib/types/Dashboard/demo/basic.d.ts +0 -29
- package/lib/types/Dashboard/index.d.ts +0 -30
- package/lib/types/Footer/Footer.stories.d.ts +0 -19
- package/lib/types/Footer/brand.d.ts +0 -15
- package/lib/types/Footer/copyright.d.ts +0 -13
- package/lib/types/Footer/demo/arcblock-site.d.ts +0 -31
- package/lib/types/Footer/demo/brand.d.ts +0 -1
- package/lib/types/Footer/demo/copyright.d.ts +0 -1
- package/lib/types/Footer/demo/footer.d.ts +0 -10
- package/lib/types/Footer/demo/links.d.ts +0 -1
- package/lib/types/Footer/demo/social-media-icons.d.ts +0 -1
- package/lib/types/Footer/internal-footer.d.ts +0 -32
- package/lib/types/Footer/layout/plain.d.ts +0 -22
- package/lib/types/Footer/layout/row.d.ts +0 -13
- package/lib/types/Footer/layout/standard.d.ts +0 -24
- package/lib/types/Footer/links.d.ts +0 -23
- package/lib/types/Footer/social-media.d.ts +0 -14
- package/lib/types/Header/Header.stories.d.ts +0 -26
- package/lib/types/Header/demo/addons-customization.d.ts +0 -11
- package/lib/types/Header/demo/basic.d.ts +0 -1
- package/lib/types/Header/demo/fixtures/index.d.ts +0 -49
- package/lib/types/Header/demo/with-enable-connect-enable-locale.d.ts +0 -1
- package/lib/types/Header/index.d.ts +0 -23
- package/lib/types/Icon/Icon.stories.d.ts +0 -12
- package/lib/types/Icon/demo/basic.d.ts +0 -1
- package/lib/types/Icon/index.d.ts +0 -9
- package/lib/types/Notifications/Snackbar.d.ts +0 -16
- package/lib/types/Notifications/hooks/use-title.d.ts +0 -48
- package/lib/types/Notifications/hooks/use-width.d.ts +0 -2
- package/lib/types/Notifications/utils.d.ts +0 -70
- package/lib/types/UserCenter/components/config-inviter.d.ts +0 -4
- package/lib/types/UserCenter/components/config-profile.d.ts +0 -5
- package/lib/types/UserCenter/components/danger-zone.d.ts +0 -1
- package/lib/types/UserCenter/components/editable-field.d.ts +0 -54
- package/lib/types/UserCenter/components/nft.d.ts +0 -4
- package/lib/types/UserCenter/components/notification.d.ts +0 -5
- package/lib/types/UserCenter/components/passport.d.ts +0 -5
- package/lib/types/UserCenter/components/privacy.d.ts +0 -11
- package/lib/types/UserCenter/components/settings.d.ts +0 -10
- package/lib/types/UserCenter/components/status-dialog/date-picker.d.ts +0 -10
- package/lib/types/UserCenter/components/status-dialog/index.d.ts +0 -12
- package/lib/types/UserCenter/components/status-selector/duration-menu.d.ts +0 -7
- package/lib/types/UserCenter/components/status-selector/index.d.ts +0 -9
- package/lib/types/UserCenter/components/status-selector/menu-item.d.ts +0 -24
- package/lib/types/UserCenter/components/storage/action.d.ts +0 -9
- package/lib/types/UserCenter/components/storage/connected.d.ts +0 -5
- package/lib/types/UserCenter/components/storage/delete.d.ts +0 -6
- package/lib/types/UserCenter/components/storage/disconnect.d.ts +0 -2
- package/lib/types/UserCenter/components/storage/index.d.ts +0 -2
- package/lib/types/UserCenter/components/storage/preview-nft.d.ts +0 -5
- package/lib/types/UserCenter/components/third-party-login/index.d.ts +0 -4
- package/lib/types/UserCenter/components/third-party-login/third-party-item.d.ts +0 -13
- package/lib/types/UserCenter/components/user-center.d.ts +0 -16
- package/lib/types/UserCenter/components/user-info/address.d.ts +0 -16
- package/lib/types/UserCenter/components/user-info/index.d.ts +0 -4
- package/lib/types/UserCenter/components/user-info/link-preview-input.d.ts +0 -5
- package/lib/types/UserCenter/components/user-info/metadata.d.ts +0 -10
- package/lib/types/UserCenter/components/user-info/switch-role.d.ts +0 -7
- package/lib/types/UserCenter/components/user-info/timezone-select.d.ts +0 -8
- package/lib/types/UserCenter/components/user-info/user-basic-info.d.ts +0 -13
- package/lib/types/UserCenter/components/user-info/user-info-item.d.ts +0 -11
- package/lib/types/UserCenter/components/user-info/user-info.d.ts +0 -6
- package/lib/types/UserCenter/components/user-info/user-status.d.ts +0 -9
- package/lib/types/UserCenter/components/user-info/utils.d.ts +0 -51
- package/lib/types/UserCenter/components/webhook-item.d.ts +0 -2
- package/lib/types/UserCenter/index.d.ts +0 -1
- package/lib/types/UserCenter/libs/locales.d.ts +0 -345
- package/lib/types/UserCenter/libs/utils.d.ts +0 -4
- package/lib/types/UserSessions/components/user-session-info.d.ts +0 -5
- package/lib/types/UserSessions/components/user-sessions.d.ts +0 -20
- package/lib/types/UserSessions/index.d.ts +0 -1
- package/lib/types/UserSessions/libs/locales.d.ts +0 -60
- package/lib/types/UserSessions/libs/utils.d.ts +0 -2
- package/lib/types/blocklets.d.ts +0 -17
- package/lib/types/common/domain-warning.d.ts +0 -12
- package/lib/types/common/header-addons.d.ts +0 -19
- package/lib/types/common/link-blocker.d.ts +0 -7
- package/lib/types/common/notification-addon.d.ts +0 -10
- package/lib/types/common/overridable-theme-provider.d.ts +0 -15
- package/lib/types/common/wallet-hidden-topbar.d.ts +0 -1
- package/lib/types/common/ws.d.ts +0 -3
- package/lib/types/contexts/config-user-space.d.ts +0 -27
- package/lib/types/hooks/use-mobile.d.ts +0 -4
- package/lib/types/index.d.ts +0 -10
- package/lib/types/libs/client.d.ts +0 -2
- package/lib/types/libs/constant.d.ts +0 -1
- package/lib/types/libs/spaces.d.ts +0 -2
- package/lib/types/libs/with-hide-when-embed.d.ts +0 -4
- package/lib/types/types.d.ts +0 -36
- package/lib/types/utils.d.ts +0 -10
|
@@ -1,345 +0,0 @@
|
|
|
1
|
-
export declare const translations: {
|
|
2
|
-
zh: {
|
|
3
|
-
settings: string;
|
|
4
|
-
noPassport: string;
|
|
5
|
-
passport: string;
|
|
6
|
-
notification: string;
|
|
7
|
-
email: string;
|
|
8
|
-
phone: string;
|
|
9
|
-
lastLogin: string;
|
|
10
|
-
lastLoginAt: string;
|
|
11
|
-
lastLoginIp: string;
|
|
12
|
-
createdAt: string;
|
|
13
|
-
registerFrom: string;
|
|
14
|
-
invitedBy: string;
|
|
15
|
-
unknown: string;
|
|
16
|
-
walletNotification: string;
|
|
17
|
-
emailNotification: string;
|
|
18
|
-
phoneNotification: string;
|
|
19
|
-
pushNotification: string;
|
|
20
|
-
addWebhook: string;
|
|
21
|
-
saveSuccess: string;
|
|
22
|
-
saveFailed: string;
|
|
23
|
-
webhookTested: string;
|
|
24
|
-
done: string;
|
|
25
|
-
emptyField: string;
|
|
26
|
-
emptyContent: string;
|
|
27
|
-
underProtected: string;
|
|
28
|
-
noUserFound: string;
|
|
29
|
-
notificationManagement: string;
|
|
30
|
-
privacyManagement: string;
|
|
31
|
-
storageManagement: string;
|
|
32
|
-
webhook: {
|
|
33
|
-
url: string;
|
|
34
|
-
slack: string;
|
|
35
|
-
};
|
|
36
|
-
common: {
|
|
37
|
-
confirm: string;
|
|
38
|
-
cancel: string;
|
|
39
|
-
required: string;
|
|
40
|
-
invalid: string;
|
|
41
|
-
setting: string;
|
|
42
|
-
save: string;
|
|
43
|
-
profile: string;
|
|
44
|
-
nft: string;
|
|
45
|
-
noNFT: string;
|
|
46
|
-
};
|
|
47
|
-
toPublic: string;
|
|
48
|
-
currentPassport: string;
|
|
49
|
-
refreshProfile: {
|
|
50
|
-
title: string;
|
|
51
|
-
successfully: string;
|
|
52
|
-
};
|
|
53
|
-
switchProfile: string;
|
|
54
|
-
userInfo: string;
|
|
55
|
-
myInfo: string;
|
|
56
|
-
hisInfo: string;
|
|
57
|
-
loginNow: string;
|
|
58
|
-
viewAfterLogin: string;
|
|
59
|
-
sessionManagement: string;
|
|
60
|
-
storage: {
|
|
61
|
-
spaces: {
|
|
62
|
-
tips: string;
|
|
63
|
-
label: string;
|
|
64
|
-
connectedWithName: string;
|
|
65
|
-
gateway: {
|
|
66
|
-
delete: {
|
|
67
|
-
failed: string;
|
|
68
|
-
};
|
|
69
|
-
};
|
|
70
|
-
provideNFT: {
|
|
71
|
-
title: string;
|
|
72
|
-
scan: string;
|
|
73
|
-
success: string;
|
|
74
|
-
};
|
|
75
|
-
connect: {
|
|
76
|
-
useWallet: string;
|
|
77
|
-
useWalletReconnect: string;
|
|
78
|
-
providerForStorage: string;
|
|
79
|
-
};
|
|
80
|
-
connected: {
|
|
81
|
-
title: string;
|
|
82
|
-
tag: string;
|
|
83
|
-
};
|
|
84
|
-
};
|
|
85
|
-
};
|
|
86
|
-
thirdPartyLogin: {
|
|
87
|
-
title: string;
|
|
88
|
-
connect: string;
|
|
89
|
-
disconnect: string;
|
|
90
|
-
mainProviderCantRemove: string;
|
|
91
|
-
confirmUnbind: string;
|
|
92
|
-
confirmUnbindDescription: string;
|
|
93
|
-
disconnectPasskey: string;
|
|
94
|
-
disconnectPasskeyDescription: string;
|
|
95
|
-
};
|
|
96
|
-
commonSetting: {
|
|
97
|
-
title: string;
|
|
98
|
-
locale: string;
|
|
99
|
-
};
|
|
100
|
-
dangerZone: {
|
|
101
|
-
title: string;
|
|
102
|
-
deleteAccount: string;
|
|
103
|
-
deleteAccountDescription: string;
|
|
104
|
-
delete: string;
|
|
105
|
-
};
|
|
106
|
-
userStatus: {
|
|
107
|
-
Online: string;
|
|
108
|
-
Meeting: string;
|
|
109
|
-
Community: string;
|
|
110
|
-
Holiday: string;
|
|
111
|
-
OffSick: string;
|
|
112
|
-
WorkingRemotely: string;
|
|
113
|
-
duration: {
|
|
114
|
-
NoClear: string;
|
|
115
|
-
ThirtyMinutes: string;
|
|
116
|
-
OneHour: string;
|
|
117
|
-
FourHours: string;
|
|
118
|
-
Today: string;
|
|
119
|
-
ThisWeek: string;
|
|
120
|
-
Custom: string;
|
|
121
|
-
};
|
|
122
|
-
};
|
|
123
|
-
profile: {
|
|
124
|
-
addLink: string;
|
|
125
|
-
location: string;
|
|
126
|
-
timezone: string;
|
|
127
|
-
bio: string;
|
|
128
|
-
setStatus: string;
|
|
129
|
-
localTime: string;
|
|
130
|
-
email: string;
|
|
131
|
-
emailInvalid: string;
|
|
132
|
-
emailSourceProviderNotAllowEdit: string;
|
|
133
|
-
phone: string;
|
|
134
|
-
phoneInvalid: string;
|
|
135
|
-
editProfile: string;
|
|
136
|
-
removeStatusAfter: string;
|
|
137
|
-
justForYou: string;
|
|
138
|
-
cleanStatus: string;
|
|
139
|
-
quickSettings: string;
|
|
140
|
-
selectEndTime: string;
|
|
141
|
-
pleaseSelectTime: string;
|
|
142
|
-
invalidURL: string;
|
|
143
|
-
socialMedia: string;
|
|
144
|
-
timezonePhase: {
|
|
145
|
-
dawn: string;
|
|
146
|
-
morning: string;
|
|
147
|
-
afternoon: string;
|
|
148
|
-
night: string;
|
|
149
|
-
};
|
|
150
|
-
address: {
|
|
151
|
-
title: string;
|
|
152
|
-
country: string;
|
|
153
|
-
province: string;
|
|
154
|
-
city: string;
|
|
155
|
-
line1: string;
|
|
156
|
-
line2: string;
|
|
157
|
-
detailedAddress: string;
|
|
158
|
-
postalCode: string;
|
|
159
|
-
invalidPostalCode: string;
|
|
160
|
-
};
|
|
161
|
-
};
|
|
162
|
-
destroyMyself: {
|
|
163
|
-
title: string;
|
|
164
|
-
scan: string;
|
|
165
|
-
confirm: string;
|
|
166
|
-
cancel: string;
|
|
167
|
-
success: string;
|
|
168
|
-
abort: string;
|
|
169
|
-
error: string;
|
|
170
|
-
};
|
|
171
|
-
notImplemented: string;
|
|
172
|
-
};
|
|
173
|
-
en: {
|
|
174
|
-
settings: string;
|
|
175
|
-
noPassport: string;
|
|
176
|
-
passport: string;
|
|
177
|
-
notification: string;
|
|
178
|
-
email: string;
|
|
179
|
-
phone: string;
|
|
180
|
-
lastLogin: string;
|
|
181
|
-
lastLoginAt: string;
|
|
182
|
-
lastLoginIp: string;
|
|
183
|
-
createdAt: string;
|
|
184
|
-
registerFrom: string;
|
|
185
|
-
invitedBy: string;
|
|
186
|
-
unknown: string;
|
|
187
|
-
walletNotification: string;
|
|
188
|
-
emailNotification: string;
|
|
189
|
-
phoneNotification: string;
|
|
190
|
-
pushNotification: string;
|
|
191
|
-
addWebhook: string;
|
|
192
|
-
saveSuccess: string;
|
|
193
|
-
saveFailed: string;
|
|
194
|
-
webhookTested: string;
|
|
195
|
-
done: string;
|
|
196
|
-
emptyField: string;
|
|
197
|
-
notificationManagement: string;
|
|
198
|
-
privacyManagement: string;
|
|
199
|
-
storageManagement: string;
|
|
200
|
-
emptyContent: string;
|
|
201
|
-
underProtected: string;
|
|
202
|
-
noUserFound: string;
|
|
203
|
-
webhook: {
|
|
204
|
-
url: string;
|
|
205
|
-
slack: string;
|
|
206
|
-
};
|
|
207
|
-
common: {
|
|
208
|
-
confirm: string;
|
|
209
|
-
cancel: string;
|
|
210
|
-
required: string;
|
|
211
|
-
invalid: string;
|
|
212
|
-
setting: string;
|
|
213
|
-
save: string;
|
|
214
|
-
profile: string;
|
|
215
|
-
nft: string;
|
|
216
|
-
noNFT: string;
|
|
217
|
-
};
|
|
218
|
-
toPublic: string;
|
|
219
|
-
currentPassport: string;
|
|
220
|
-
refreshProfile: {
|
|
221
|
-
title: string;
|
|
222
|
-
successfully: string;
|
|
223
|
-
};
|
|
224
|
-
switchProfile: string;
|
|
225
|
-
userInfo: string;
|
|
226
|
-
myInfo: string;
|
|
227
|
-
hisInfo: string;
|
|
228
|
-
loginNow: string;
|
|
229
|
-
viewAfterLogin: string;
|
|
230
|
-
sessionManagement: string;
|
|
231
|
-
storage: {
|
|
232
|
-
spaces: {
|
|
233
|
-
tips: string;
|
|
234
|
-
label: string;
|
|
235
|
-
connectedWithName: string;
|
|
236
|
-
gateway: {
|
|
237
|
-
delete: {
|
|
238
|
-
failed: string;
|
|
239
|
-
};
|
|
240
|
-
};
|
|
241
|
-
provideNFT: {
|
|
242
|
-
title: string;
|
|
243
|
-
scan: string;
|
|
244
|
-
success: string;
|
|
245
|
-
};
|
|
246
|
-
connect: {
|
|
247
|
-
useWallet: string;
|
|
248
|
-
useWalletReconnect: string;
|
|
249
|
-
providerForStorage: string;
|
|
250
|
-
};
|
|
251
|
-
connected: {
|
|
252
|
-
title: string;
|
|
253
|
-
tag: string;
|
|
254
|
-
};
|
|
255
|
-
};
|
|
256
|
-
};
|
|
257
|
-
thirdPartyLogin: {
|
|
258
|
-
title: string;
|
|
259
|
-
connect: string;
|
|
260
|
-
disconnect: string;
|
|
261
|
-
mainProviderCantRemove: string;
|
|
262
|
-
confirmUnbind: string;
|
|
263
|
-
confirmUnbindDescription: string;
|
|
264
|
-
disconnectPasskey: string;
|
|
265
|
-
disconnectPasskeyDescription: string;
|
|
266
|
-
};
|
|
267
|
-
commonSetting: {
|
|
268
|
-
title: string;
|
|
269
|
-
locale: string;
|
|
270
|
-
};
|
|
271
|
-
dangerZone: {
|
|
272
|
-
title: string;
|
|
273
|
-
deleteAccount: string;
|
|
274
|
-
deleteAccountDescription: string;
|
|
275
|
-
delete: string;
|
|
276
|
-
};
|
|
277
|
-
userStatus: {
|
|
278
|
-
Online: string;
|
|
279
|
-
Meeting: string;
|
|
280
|
-
Community: string;
|
|
281
|
-
Holiday: string;
|
|
282
|
-
OffSick: string;
|
|
283
|
-
WorkingRemotely: string;
|
|
284
|
-
duration: {
|
|
285
|
-
NoClear: string;
|
|
286
|
-
ThirtyMinutes: string;
|
|
287
|
-
OneHour: string;
|
|
288
|
-
FourHours: string;
|
|
289
|
-
Today: string;
|
|
290
|
-
ThisWeek: string;
|
|
291
|
-
Custom: string;
|
|
292
|
-
};
|
|
293
|
-
};
|
|
294
|
-
profile: {
|
|
295
|
-
addLink: string;
|
|
296
|
-
location: string;
|
|
297
|
-
timezone: string;
|
|
298
|
-
bio: string;
|
|
299
|
-
setStatus: string;
|
|
300
|
-
localTime: string;
|
|
301
|
-
email: string;
|
|
302
|
-
emailInvalid: string;
|
|
303
|
-
emailSourceProviderNotAllowEdit: string;
|
|
304
|
-
phone: string;
|
|
305
|
-
phoneInvalid: string;
|
|
306
|
-
editProfile: string;
|
|
307
|
-
removeStatusAfter: string;
|
|
308
|
-
justForYou: string;
|
|
309
|
-
maxInputLength: string;
|
|
310
|
-
selectEndTime: string;
|
|
311
|
-
pleaseSelectTime: string;
|
|
312
|
-
cleanStatus: string;
|
|
313
|
-
quickSettings: string;
|
|
314
|
-
invalidURL: string;
|
|
315
|
-
socialMedia: string;
|
|
316
|
-
timezonePhase: {
|
|
317
|
-
dawn: string;
|
|
318
|
-
morning: string;
|
|
319
|
-
afternoon: string;
|
|
320
|
-
night: string;
|
|
321
|
-
};
|
|
322
|
-
address: {
|
|
323
|
-
title: string;
|
|
324
|
-
country: string;
|
|
325
|
-
province: string;
|
|
326
|
-
city: string;
|
|
327
|
-
line1: string;
|
|
328
|
-
line2: string;
|
|
329
|
-
detailedAddress: string;
|
|
330
|
-
postalCode: string;
|
|
331
|
-
invalidPostalCode: string;
|
|
332
|
-
};
|
|
333
|
-
};
|
|
334
|
-
destroyMyself: {
|
|
335
|
-
title: string;
|
|
336
|
-
scan: string;
|
|
337
|
-
confirm: string;
|
|
338
|
-
cancel: string;
|
|
339
|
-
success: string;
|
|
340
|
-
abort: string;
|
|
341
|
-
error: string;
|
|
342
|
-
};
|
|
343
|
-
notImplemented: string;
|
|
344
|
-
};
|
|
345
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { UserSession } from '@blocklet/js-sdk';
|
|
2
|
-
import { User } from '../../@types';
|
|
3
|
-
export default function UserSessions({ user, showAction, showUser, getUserSessions, showOffline, }: {
|
|
4
|
-
readonly user: User & {
|
|
5
|
-
userSessions?: any[];
|
|
6
|
-
};
|
|
7
|
-
readonly showAction?: boolean;
|
|
8
|
-
readonly showUser?: boolean;
|
|
9
|
-
readonly showOffline?: boolean;
|
|
10
|
-
readonly getUserSessions: (params: {
|
|
11
|
-
page: number;
|
|
12
|
-
pageSize: number;
|
|
13
|
-
status?: 'online' | 'expired' | 'offline';
|
|
14
|
-
}) => Promise<{
|
|
15
|
-
paging: {
|
|
16
|
-
total: number;
|
|
17
|
-
};
|
|
18
|
-
list: UserSession[];
|
|
19
|
-
}>;
|
|
20
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as UserSessions } from './components/user-sessions';
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
export declare const translations: {
|
|
2
|
-
zh: {
|
|
3
|
-
confirm: string;
|
|
4
|
-
cancel: string;
|
|
5
|
-
visitorId: string;
|
|
6
|
-
deviceType: string;
|
|
7
|
-
platform: string;
|
|
8
|
-
walletOS: string;
|
|
9
|
-
role: string;
|
|
10
|
-
fullname: string;
|
|
11
|
-
email: string;
|
|
12
|
-
avatar: string;
|
|
13
|
-
user: string;
|
|
14
|
-
createdAt: string;
|
|
15
|
-
updatedAt: string;
|
|
16
|
-
lastLoginIp: string;
|
|
17
|
-
actions: string;
|
|
18
|
-
logoutAll: string;
|
|
19
|
-
logoutAllTips: string;
|
|
20
|
-
logout: string;
|
|
21
|
-
currentSession: string;
|
|
22
|
-
unknown: string;
|
|
23
|
-
expired: string;
|
|
24
|
-
remove: string;
|
|
25
|
-
logoutThisSession: string;
|
|
26
|
-
logoutThisSessionConfirm: string;
|
|
27
|
-
logoutAllSession: string;
|
|
28
|
-
logoutAllSessionConfirm: string;
|
|
29
|
-
online: string;
|
|
30
|
-
};
|
|
31
|
-
en: {
|
|
32
|
-
confirm: string;
|
|
33
|
-
cancel: string;
|
|
34
|
-
visitorId: string;
|
|
35
|
-
deviceType: string;
|
|
36
|
-
platform: string;
|
|
37
|
-
walletOS: string;
|
|
38
|
-
role: string;
|
|
39
|
-
fullname: string;
|
|
40
|
-
email: string;
|
|
41
|
-
avatar: string;
|
|
42
|
-
user: string;
|
|
43
|
-
createdAt: string;
|
|
44
|
-
updatedAt: string;
|
|
45
|
-
actions: string;
|
|
46
|
-
lastLoginIp: string;
|
|
47
|
-
logoutAll: string;
|
|
48
|
-
logoutAllTips: string;
|
|
49
|
-
logout: string;
|
|
50
|
-
currentSession: string;
|
|
51
|
-
unknown: string;
|
|
52
|
-
expired: string;
|
|
53
|
-
remove: string;
|
|
54
|
-
logoutThisSession: string;
|
|
55
|
-
logoutThisSessionConfirm: string;
|
|
56
|
-
logoutAllSession: string;
|
|
57
|
-
logoutAllSessionConfirm: string;
|
|
58
|
-
online: string;
|
|
59
|
-
};
|
|
60
|
-
};
|
package/lib/types/blocklets.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export const publicPath: any;
|
|
2
|
-
export function formatTheme(theme: any): any;
|
|
3
|
-
export function getLink(link: any, locale?: string): any;
|
|
4
|
-
export function getLocalizedNavigation(navigation: any, locale?: string): any;
|
|
5
|
-
export function formatNavigation(navigation: any): any;
|
|
6
|
-
export function parseNavigation(navigation: any): {
|
|
7
|
-
header: never[];
|
|
8
|
-
footer: never[];
|
|
9
|
-
social: never[];
|
|
10
|
-
bottom: never[];
|
|
11
|
-
dashboard: never[];
|
|
12
|
-
sessionManager: never[];
|
|
13
|
-
userCenter: never[];
|
|
14
|
-
} | null;
|
|
15
|
-
export function formatBlockletInfo(blockletInfo: any): any;
|
|
16
|
-
export function filterValidNavItems(navigation?: any[]): any;
|
|
17
|
-
export function filterNavByRole(nav: object[], userRole: string): any;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { default as PropTypes } from 'prop-types';
|
|
2
|
-
declare function DomainWarning({ locale, session }: {
|
|
3
|
-
locale?: string | undefined;
|
|
4
|
-
session?: {} | undefined;
|
|
5
|
-
}): import("react/jsx-runtime").JSX.Element | null;
|
|
6
|
-
declare namespace DomainWarning {
|
|
7
|
-
namespace propTypes {
|
|
8
|
-
let locale: PropTypes.Requireable<string>;
|
|
9
|
-
let session: PropTypes.Requireable<object>;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
export default DomainWarning;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { default as PropTypes } from 'prop-types';
|
|
2
|
-
import { SessionManagerProps } from '../types';
|
|
3
|
-
declare function HeaderAddons({ formattedBlocklet, addons, showDomainWarningDialog, sessionManagerProps, }: {
|
|
4
|
-
formattedBlocklet: any;
|
|
5
|
-
addons?: null | undefined;
|
|
6
|
-
showDomainWarningDialog?: boolean | undefined;
|
|
7
|
-
sessionManagerProps?: {
|
|
8
|
-
showRole: boolean;
|
|
9
|
-
} | undefined;
|
|
10
|
-
}): import('react').FunctionComponentElement<import('react').FragmentProps>;
|
|
11
|
-
declare namespace HeaderAddons {
|
|
12
|
-
namespace propTypes {
|
|
13
|
-
export let formattedBlocklet: PropTypes.Validator<object>;
|
|
14
|
-
export let addons: PropTypes.Requireable<NonNullable<((...args: any[]) => any) | PropTypes.ReactNodeLike>>;
|
|
15
|
-
export { SessionManagerProps as sessionManagerProps };
|
|
16
|
-
export let showDomainWarningDialog: PropTypes.Requireable<boolean>;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
export default HeaderAddons;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { default as PropTypes } from 'prop-types';
|
|
2
|
-
declare function NotificationAddon({ session }: {
|
|
3
|
-
session?: {} | undefined;
|
|
4
|
-
}): import("react/jsx-runtime").JSX.Element | null;
|
|
5
|
-
declare namespace NotificationAddon {
|
|
6
|
-
namespace propTypes {
|
|
7
|
-
let session: PropTypes.Requireable<object>;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
export default NotificationAddon;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { default as PropTypes } from 'prop-types';
|
|
2
|
-
/**
|
|
3
|
-
* 允许 theme 被覆盖的 ThemeProvider 组件, 默认使用 ux default theme, 可以传入 theme 进行覆盖
|
|
4
|
-
*/
|
|
5
|
-
declare function OverridableThemeProvider({ theme: themeOverrides, children }: {
|
|
6
|
-
theme?: null | undefined;
|
|
7
|
-
children: any;
|
|
8
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
declare namespace OverridableThemeProvider {
|
|
10
|
-
namespace propTypes {
|
|
11
|
-
let children: PropTypes.Validator<any>;
|
|
12
|
-
let theme: PropTypes.Requireable<object>;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
export default OverridableThemeProvider;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export function useWalletHiddenTopbar(): void;
|
package/lib/types/common/ws.d.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { Session } from '../@types';
|
|
2
|
-
export interface SpaceGateway {
|
|
3
|
-
did: string;
|
|
4
|
-
name: string;
|
|
5
|
-
url: string;
|
|
6
|
-
endpoint: string;
|
|
7
|
-
}
|
|
8
|
-
export interface SettingStorageEndpoint {
|
|
9
|
-
(endpoint: string | undefined): void | Promise<void>;
|
|
10
|
-
}
|
|
11
|
-
interface ConfigUserSpaceContextType {
|
|
12
|
-
loading: boolean;
|
|
13
|
-
spaceGateway: SpaceGateway | undefined;
|
|
14
|
-
session: Session;
|
|
15
|
-
deleteSpaceGateway: (spaceGateway: SpaceGateway) => Promise<void>;
|
|
16
|
-
updateSpaceGateway: (updateSpaceGateway: SpaceGateway) => Promise<void>;
|
|
17
|
-
storageEndpoint: string;
|
|
18
|
-
settingStorageEndpoint: SettingStorageEndpoint;
|
|
19
|
-
hasStorageEndpoint: boolean;
|
|
20
|
-
}
|
|
21
|
-
declare const ConfigUserSpaceContext: import('react').Context<ConfigUserSpaceContextType>;
|
|
22
|
-
declare const Consumer: import('react').Consumer<ConfigUserSpaceContextType>;
|
|
23
|
-
declare function ConfigUserSpaceProvider({ children }: {
|
|
24
|
-
children: React.ReactNode;
|
|
25
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
26
|
-
declare function useConfigUserSpaceContext(): ConfigUserSpaceContextType;
|
|
27
|
-
export { ConfigUserSpaceContext, ConfigUserSpaceProvider, Consumer as ConfigUserSpaceConsumer, useConfigUserSpaceContext, };
|
package/lib/types/index.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export { default as Header } from './Header';
|
|
2
|
-
export { default as Footer } from './Footer';
|
|
3
|
-
export { default as Dashboard } from './Dashboard';
|
|
4
|
-
export { default as Icon } from './Icon';
|
|
5
|
-
export { default as ComponentInstaller } from './ComponentInstaller';
|
|
6
|
-
export { default as BlockletStudio } from './BlockletStudio';
|
|
7
|
-
export { default as useComponentInstaller } from './ComponentInstaller/use-component-installed';
|
|
8
|
-
export * from './UserCenter';
|
|
9
|
-
export * from './UserSessions';
|
|
10
|
-
export * from './ComponentManager';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const EMBED_MODE_KEY = "blocklet-ui-react-embed-mode";
|
package/lib/types/types.d.ts
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { default as PropTypes } from 'prop-types';
|
|
2
|
-
export const BlockletMetaProps: PropTypes.Requireable<PropTypes.InferProps<{
|
|
3
|
-
appLogo: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
4
|
-
appName: PropTypes.Requireable<string>;
|
|
5
|
-
theme: PropTypes.Requireable<PropTypes.InferProps<{
|
|
6
|
-
background: PropTypes.Requireable<string>;
|
|
7
|
-
}>>;
|
|
8
|
-
enableConnect: PropTypes.Requireable<boolean>;
|
|
9
|
-
enableLocale: PropTypes.Requireable<boolean>;
|
|
10
|
-
navigation: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
11
|
-
title: PropTypes.Requireable<NonNullable<string | object | null | undefined>>;
|
|
12
|
-
link: PropTypes.Requireable<NonNullable<string | object | null | undefined>>;
|
|
13
|
-
icon: PropTypes.Requireable<string>;
|
|
14
|
-
items: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
15
|
-
title: PropTypes.Requireable<NonNullable<string | object | null | undefined>>;
|
|
16
|
-
link: PropTypes.Requireable<NonNullable<string | object | null | undefined>>;
|
|
17
|
-
}> | null | undefined)[]>;
|
|
18
|
-
}> | null | undefined)[]>;
|
|
19
|
-
}>>;
|
|
20
|
-
export const SessionManagerProps: PropTypes.Requireable<PropTypes.InferProps<{
|
|
21
|
-
showText: PropTypes.Requireable<boolean>;
|
|
22
|
-
showRole: PropTypes.Requireable<boolean>;
|
|
23
|
-
switchDid: PropTypes.Requireable<boolean>;
|
|
24
|
-
switchProfile: PropTypes.Requireable<boolean>;
|
|
25
|
-
switchPassport: PropTypes.Requireable<boolean>;
|
|
26
|
-
disableLogout: PropTypes.Requireable<boolean>;
|
|
27
|
-
onLogin: PropTypes.Requireable<(...args: any[]) => any>;
|
|
28
|
-
onLogout: PropTypes.Requireable<(...args: any[]) => any>;
|
|
29
|
-
onSwitchDid: PropTypes.Requireable<(...args: any[]) => any>;
|
|
30
|
-
onSwitchProfile: PropTypes.Requireable<(...args: any[]) => any>;
|
|
31
|
-
onSwitchPassport: PropTypes.Requireable<(...args: any[]) => any>;
|
|
32
|
-
menu: PropTypes.Requireable<any[]>;
|
|
33
|
-
menuRender: PropTypes.Requireable<(...args: any[]) => any>;
|
|
34
|
-
dark: PropTypes.Requireable<boolean>;
|
|
35
|
-
size: PropTypes.Requireable<number>;
|
|
36
|
-
}>>;
|
package/lib/types/utils.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export function mapRecursive(array: any, fn: any, childrenKey?: string): any;
|
|
2
|
-
export function flatRecursive(array: any, childrenKey?: string): any[];
|
|
3
|
-
export function countRecursive(array: any, childrenKey?: string): number;
|
|
4
|
-
export function filterRecursive(array: any, predicate: any, childrenKey?: string): any;
|
|
5
|
-
export function isUrl(str: any): boolean;
|
|
6
|
-
export function isIconifyString(str: any): boolean;
|
|
7
|
-
export function matchPath(path: any): any;
|
|
8
|
-
export function matchPaths(paths?: any[]): number;
|
|
9
|
-
export function splitNavColumns(items: any, options?: {}): never[][];
|
|
10
|
-
export function compareVersions(version1: any, version2: any): any;
|