@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.
Files changed (195) hide show
  1. package/lib/@types/index.d.ts +3 -0
  2. package/lib/BlockletStudio/index.d.ts +26 -0
  3. package/lib/ComponentInstaller/index.d.ts +18 -0
  4. package/lib/ComponentInstaller/installer-item.d.ts +18 -0
  5. package/lib/{types/ComponentInstaller → ComponentInstaller}/locales.d.ts +2 -2
  6. package/lib/{types/ComponentInstaller → ComponentInstaller}/use-component-installed.d.ts +2 -2
  7. package/lib/ComponentManager/components/add-component.d.ts +13 -0
  8. package/lib/ComponentManager/components/check-component.d.ts +2 -0
  9. package/lib/ComponentManager/components/publish-component.d.ts +7 -0
  10. package/lib/ComponentManager/components/resource-dialog.d.ts +11 -0
  11. package/lib/ComponentManager/index.d.ts +4 -0
  12. package/lib/ComponentManager/libs/locales.d.ts +19 -0
  13. package/lib/Dashboard/index.d.ts +27 -0
  14. package/lib/Footer/brand.d.ts +15 -0
  15. package/lib/Footer/copyright.d.ts +13 -0
  16. package/lib/{types/Footer → Footer}/index.d.ts +2 -2
  17. package/lib/Footer/internal-footer.d.ts +29 -0
  18. package/lib/Footer/layout/plain.d.ts +19 -0
  19. package/lib/Footer/layout/row.d.ts +13 -0
  20. package/lib/Footer/layout/standard.d.ts +21 -0
  21. package/lib/Footer/links.d.ts +20 -0
  22. package/lib/Footer/social-media.d.ts +14 -0
  23. package/lib/Header/index.d.ts +13 -0
  24. package/lib/Icon/index.d.ts +7 -0
  25. package/lib/Notifications/Snackbar.d.ts +8 -0
  26. package/lib/Notifications/hooks/use-title.d.ts +9 -0
  27. package/lib/Notifications/hooks/use-width.d.ts +2 -0
  28. package/lib/Notifications/utils.d.ts +10 -0
  29. package/lib/UserCenter/components/config-inviter.d.ts +4 -0
  30. package/lib/UserCenter/components/config-profile.d.ts +5 -0
  31. package/lib/UserCenter/components/danger-zone.d.ts +2 -0
  32. package/lib/UserCenter/components/editable-field.d.ts +50 -0
  33. package/lib/UserCenter/components/nft.d.ts +4 -0
  34. package/lib/UserCenter/components/notification.d.ts +5 -0
  35. package/lib/UserCenter/components/passport.d.ts +5 -0
  36. package/lib/UserCenter/components/privacy.d.ts +5 -0
  37. package/lib/UserCenter/components/settings.d.ts +8 -0
  38. package/lib/UserCenter/components/status-dialog/date-picker.d.ts +9 -0
  39. package/lib/UserCenter/components/status-dialog/index.d.ts +9 -0
  40. package/lib/UserCenter/components/status-selector/duration-menu.d.ts +7 -0
  41. package/lib/UserCenter/components/status-selector/index.d.ts +8 -0
  42. package/lib/UserCenter/components/status-selector/menu-item.d.ts +9 -0
  43. package/lib/UserCenter/components/storage/action.d.ts +7 -0
  44. package/lib/UserCenter/components/storage/connected.d.ts +4 -0
  45. package/lib/UserCenter/components/storage/delete.d.ts +5 -0
  46. package/lib/UserCenter/components/storage/disconnect.d.ts +2 -0
  47. package/lib/UserCenter/components/storage/icons/empty-spaces-nft.svg.d.ts +3 -0
  48. package/lib/UserCenter/components/storage/index.d.ts +2 -0
  49. package/lib/UserCenter/components/storage/preview-nft.d.ts +5 -0
  50. package/lib/UserCenter/components/third-party-login/index.d.ts +4 -0
  51. package/lib/UserCenter/components/third-party-login/third-party-item.d.ts +4 -0
  52. package/lib/UserCenter/components/user-center.d.ts +15 -0
  53. package/lib/UserCenter/components/user-info/address.d.ts +7 -0
  54. package/lib/UserCenter/components/user-info/index.d.ts +5 -0
  55. package/lib/UserCenter/components/user-info/link-preview-input.d.ts +6 -0
  56. package/lib/UserCenter/components/user-info/metadata.d.ts +7 -0
  57. package/lib/UserCenter/components/user-info/switch-role.d.ts +6 -0
  58. package/lib/UserCenter/components/user-info/timezone-select.d.ts +7 -0
  59. package/lib/UserCenter/components/user-info/user-basic-info.d.ts +12 -0
  60. package/lib/UserCenter/components/user-info/user-info-item.d.ts +6 -0
  61. package/lib/UserCenter/components/user-info/user-info.d.ts +6 -0
  62. package/lib/UserCenter/components/user-info/user-status.d.ts +9 -0
  63. package/lib/UserCenter/components/user-info/utils.d.ts +33 -0
  64. package/lib/UserCenter/components/webhook-item.d.ts +10 -0
  65. package/lib/UserCenter/index.d.ts +2 -0
  66. package/lib/UserCenter/libs/locales.d.ts +513 -0
  67. package/lib/UserCenter/libs/utils.d.ts +3 -0
  68. package/lib/UserSessions/components/user-session-info.d.ts +5 -0
  69. package/lib/UserSessions/components/user-sessions.d.ts +8 -0
  70. package/lib/UserSessions/index.d.ts +2 -0
  71. package/lib/UserSessions/libs/locales.d.ts +88 -0
  72. package/lib/UserSessions/libs/utils.d.ts +3 -0
  73. package/lib/blocklets.d.ts +18 -0
  74. package/lib/common/domain-warning.d.ts +12 -0
  75. package/lib/common/header-addons.d.ts +19 -0
  76. package/lib/common/link-blocker.d.ts +4 -0
  77. package/lib/common/notification-addon.d.ts +10 -0
  78. package/lib/common/overridable-theme-provider.d.ts +12 -0
  79. package/lib/common/wallet-hidden-topbar.d.ts +2 -0
  80. package/lib/common/ws.d.ts +4 -0
  81. package/lib/contexts/config-user-space.d.ts +7 -0
  82. package/lib/hooks/use-mobile.d.ts +4 -0
  83. package/lib/index.d.ts +12 -0
  84. package/lib/libs/client.d.ts +3 -0
  85. package/lib/libs/constant.d.ts +2 -0
  86. package/lib/libs/spaces.d.ts +3 -0
  87. package/lib/libs/with-hide-when-embed.d.ts +5 -0
  88. package/lib/types.d.ts +37 -0
  89. package/lib/utils.d.ts +11 -0
  90. package/package.json +7 -7
  91. package/vite.config.mjs +1 -1
  92. package/lib/types/@types/index.d.ts +0 -204
  93. package/lib/types/BlockletStudio/index.d.ts +0 -27
  94. package/lib/types/ComponentInstaller/ComponentInstaller.stories.d.ts +0 -9
  95. package/lib/types/ComponentInstaller/demo/basic.d.ts +0 -29
  96. package/lib/types/ComponentInstaller/demo/mock-optional-components.d.ts +0 -2
  97. package/lib/types/ComponentInstaller/index.d.ts +0 -18
  98. package/lib/types/ComponentInstaller/installer-item.d.ts +0 -18
  99. package/lib/types/ComponentManager/components/add-component.d.ts +0 -16
  100. package/lib/types/ComponentManager/components/check-component.d.ts +0 -2
  101. package/lib/types/ComponentManager/components/publish-component.d.ts +0 -10
  102. package/lib/types/ComponentManager/components/resource-dialog.d.ts +0 -13
  103. package/lib/types/ComponentManager/index.d.ts +0 -3
  104. package/lib/types/ComponentManager/libs/locales.d.ts +0 -14
  105. package/lib/types/Dashboard/Dashboard.stories.d.ts +0 -13
  106. package/lib/types/Dashboard/demo/basic.d.ts +0 -29
  107. package/lib/types/Dashboard/index.d.ts +0 -30
  108. package/lib/types/Footer/Footer.stories.d.ts +0 -19
  109. package/lib/types/Footer/brand.d.ts +0 -15
  110. package/lib/types/Footer/copyright.d.ts +0 -13
  111. package/lib/types/Footer/demo/arcblock-site.d.ts +0 -31
  112. package/lib/types/Footer/demo/brand.d.ts +0 -1
  113. package/lib/types/Footer/demo/copyright.d.ts +0 -1
  114. package/lib/types/Footer/demo/footer.d.ts +0 -10
  115. package/lib/types/Footer/demo/links.d.ts +0 -1
  116. package/lib/types/Footer/demo/social-media-icons.d.ts +0 -1
  117. package/lib/types/Footer/internal-footer.d.ts +0 -32
  118. package/lib/types/Footer/layout/plain.d.ts +0 -22
  119. package/lib/types/Footer/layout/row.d.ts +0 -13
  120. package/lib/types/Footer/layout/standard.d.ts +0 -24
  121. package/lib/types/Footer/links.d.ts +0 -23
  122. package/lib/types/Footer/social-media.d.ts +0 -14
  123. package/lib/types/Header/Header.stories.d.ts +0 -26
  124. package/lib/types/Header/demo/addons-customization.d.ts +0 -11
  125. package/lib/types/Header/demo/basic.d.ts +0 -1
  126. package/lib/types/Header/demo/fixtures/index.d.ts +0 -49
  127. package/lib/types/Header/demo/with-enable-connect-enable-locale.d.ts +0 -1
  128. package/lib/types/Header/index.d.ts +0 -23
  129. package/lib/types/Icon/Icon.stories.d.ts +0 -12
  130. package/lib/types/Icon/demo/basic.d.ts +0 -1
  131. package/lib/types/Icon/index.d.ts +0 -9
  132. package/lib/types/Notifications/Snackbar.d.ts +0 -16
  133. package/lib/types/Notifications/hooks/use-title.d.ts +0 -48
  134. package/lib/types/Notifications/hooks/use-width.d.ts +0 -2
  135. package/lib/types/Notifications/utils.d.ts +0 -70
  136. package/lib/types/UserCenter/components/config-inviter.d.ts +0 -4
  137. package/lib/types/UserCenter/components/config-profile.d.ts +0 -5
  138. package/lib/types/UserCenter/components/danger-zone.d.ts +0 -1
  139. package/lib/types/UserCenter/components/editable-field.d.ts +0 -54
  140. package/lib/types/UserCenter/components/nft.d.ts +0 -4
  141. package/lib/types/UserCenter/components/notification.d.ts +0 -5
  142. package/lib/types/UserCenter/components/passport.d.ts +0 -5
  143. package/lib/types/UserCenter/components/privacy.d.ts +0 -11
  144. package/lib/types/UserCenter/components/settings.d.ts +0 -10
  145. package/lib/types/UserCenter/components/status-dialog/date-picker.d.ts +0 -10
  146. package/lib/types/UserCenter/components/status-dialog/index.d.ts +0 -12
  147. package/lib/types/UserCenter/components/status-selector/duration-menu.d.ts +0 -7
  148. package/lib/types/UserCenter/components/status-selector/index.d.ts +0 -9
  149. package/lib/types/UserCenter/components/status-selector/menu-item.d.ts +0 -24
  150. package/lib/types/UserCenter/components/storage/action.d.ts +0 -9
  151. package/lib/types/UserCenter/components/storage/connected.d.ts +0 -5
  152. package/lib/types/UserCenter/components/storage/delete.d.ts +0 -6
  153. package/lib/types/UserCenter/components/storage/disconnect.d.ts +0 -2
  154. package/lib/types/UserCenter/components/storage/index.d.ts +0 -2
  155. package/lib/types/UserCenter/components/storage/preview-nft.d.ts +0 -5
  156. package/lib/types/UserCenter/components/third-party-login/index.d.ts +0 -4
  157. package/lib/types/UserCenter/components/third-party-login/third-party-item.d.ts +0 -13
  158. package/lib/types/UserCenter/components/user-center.d.ts +0 -16
  159. package/lib/types/UserCenter/components/user-info/address.d.ts +0 -16
  160. package/lib/types/UserCenter/components/user-info/index.d.ts +0 -4
  161. package/lib/types/UserCenter/components/user-info/link-preview-input.d.ts +0 -5
  162. package/lib/types/UserCenter/components/user-info/metadata.d.ts +0 -10
  163. package/lib/types/UserCenter/components/user-info/switch-role.d.ts +0 -7
  164. package/lib/types/UserCenter/components/user-info/timezone-select.d.ts +0 -8
  165. package/lib/types/UserCenter/components/user-info/user-basic-info.d.ts +0 -13
  166. package/lib/types/UserCenter/components/user-info/user-info-item.d.ts +0 -11
  167. package/lib/types/UserCenter/components/user-info/user-info.d.ts +0 -6
  168. package/lib/types/UserCenter/components/user-info/user-status.d.ts +0 -9
  169. package/lib/types/UserCenter/components/user-info/utils.d.ts +0 -51
  170. package/lib/types/UserCenter/components/webhook-item.d.ts +0 -2
  171. package/lib/types/UserCenter/index.d.ts +0 -1
  172. package/lib/types/UserCenter/libs/locales.d.ts +0 -345
  173. package/lib/types/UserCenter/libs/utils.d.ts +0 -4
  174. package/lib/types/UserSessions/components/user-session-info.d.ts +0 -5
  175. package/lib/types/UserSessions/components/user-sessions.d.ts +0 -20
  176. package/lib/types/UserSessions/index.d.ts +0 -1
  177. package/lib/types/UserSessions/libs/locales.d.ts +0 -60
  178. package/lib/types/UserSessions/libs/utils.d.ts +0 -2
  179. package/lib/types/blocklets.d.ts +0 -17
  180. package/lib/types/common/domain-warning.d.ts +0 -12
  181. package/lib/types/common/header-addons.d.ts +0 -19
  182. package/lib/types/common/link-blocker.d.ts +0 -7
  183. package/lib/types/common/notification-addon.d.ts +0 -10
  184. package/lib/types/common/overridable-theme-provider.d.ts +0 -15
  185. package/lib/types/common/wallet-hidden-topbar.d.ts +0 -1
  186. package/lib/types/common/ws.d.ts +0 -3
  187. package/lib/types/contexts/config-user-space.d.ts +0 -27
  188. package/lib/types/hooks/use-mobile.d.ts +0 -4
  189. package/lib/types/index.d.ts +0 -10
  190. package/lib/types/libs/client.d.ts +0 -2
  191. package/lib/types/libs/constant.d.ts +0 -1
  192. package/lib/types/libs/spaces.d.ts +0 -2
  193. package/lib/types/libs/with-hide-when-embed.d.ts +0 -4
  194. package/lib/types/types.d.ts +0 -36
  195. 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,4 +0,0 @@
1
- import { AxiosError } from 'axios';
2
- import { CreatePassportProps } from '../../@types';
3
- export declare const formatAxiosError: (err: AxiosError) => string;
4
- export declare const createPassportSvg: (props: CreatePassportProps) => string;
@@ -1,5 +0,0 @@
1
- import { User } from '../../@types';
2
- export default function UserSessionInfo({ user, sessionUser }: {
3
- readonly user: User;
4
- readonly sessionUser: any;
5
- }): import("react/jsx-runtime").JSX.Element;
@@ -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
- };
@@ -1,2 +0,0 @@
1
- export declare function ip2Region(ip: string): Promise<string>;
2
- export declare function batchIp2Region(ips: string[]): Promise<string[]>;
@@ -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,7 +0,0 @@
1
- export default LinkBlocker;
2
- /**
3
- * 适用于 header/footer/dashboard "preview mode", 阻止内部组件中所有 link 的默认点击行为
4
- */
5
- declare function LinkBlocker({ ...rest }: {
6
- [x: string]: any;
7
- }): import("react/jsx-runtime").JSX.Element;
@@ -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;
@@ -1,3 +0,0 @@
1
- export function create(endpoint?: string): any;
2
- export default function getWsClient(endpoint?: string): any;
3
- export function useListenWsClient(endpoint?: string): any;
@@ -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, };
@@ -1,4 +0,0 @@
1
- import { Breakpoint } from '@mui/material';
2
- export default function useMobile({ key }?: {
3
- key?: number | Breakpoint;
4
- }): boolean;
@@ -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,2 +0,0 @@
1
- import { BlockletSDK } from '@blocklet/js-sdk';
2
- export declare const client: BlockletSDK;
@@ -1 +0,0 @@
1
- export declare const EMBED_MODE_KEY = "blocklet-ui-react-embed-mode";
@@ -1,2 +0,0 @@
1
- export declare function getSpaceNftDisplayUrlFromEndpoint(endpoint: string): string;
2
- export declare function getSpaceHomeUrl(endpoint: string): string;
@@ -1,4 +0,0 @@
1
- export default function withHideWhenEmbed<T extends object>(Component: React.ComponentType<T>): {
2
- (props: T): import("react/jsx-runtime").JSX.Element | null;
3
- displayName: string;
4
- };
@@ -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
- }>>;
@@ -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;