@blocklet/ui-react 3.1.48 → 3.1.50

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 (98) hide show
  1. package/.aigne/doc-smith/config.yaml +76 -0
  2. package/.aigne/doc-smith/history.yaml +9 -0
  3. package/.aigne/doc-smith/output/structure-plan.json +249 -0
  4. package/.aigne/doc-smith/upload-cache.yaml +528 -0
  5. package/docs/_sidebar.md +19 -0
  6. package/docs/components-component-management-blocklet-studio.ja.md +194 -0
  7. package/docs/components-component-management-blocklet-studio.md +194 -0
  8. package/docs/components-component-management-blocklet-studio.zh-TW.md +194 -0
  9. package/docs/components-component-management-blocklet-studio.zh.md +194 -0
  10. package/docs/components-component-management-component-installer.ja.md +256 -0
  11. package/docs/components-component-management-component-installer.md +256 -0
  12. package/docs/components-component-management-component-installer.zh-TW.md +256 -0
  13. package/docs/components-component-management-component-installer.zh.md +256 -0
  14. package/docs/components-component-management.ja.md +59 -0
  15. package/docs/components-component-management.md +59 -0
  16. package/docs/components-component-management.zh-TW.md +59 -0
  17. package/docs/components-component-management.zh.md +59 -0
  18. package/docs/components-layout-dashboard.ja.md +231 -0
  19. package/docs/components-layout-dashboard.md +231 -0
  20. package/docs/components-layout-dashboard.zh-TW.md +231 -0
  21. package/docs/components-layout-dashboard.zh.md +231 -0
  22. package/docs/components-layout-footer.ja.md +165 -0
  23. package/docs/components-layout-footer.md +165 -0
  24. package/docs/components-layout-footer.zh-TW.md +165 -0
  25. package/docs/components-layout-footer.zh.md +165 -0
  26. package/docs/components-layout-header.ja.md +233 -0
  27. package/docs/components-layout-header.md +233 -0
  28. package/docs/components-layout-header.zh-TW.md +233 -0
  29. package/docs/components-layout-header.zh.md +233 -0
  30. package/docs/components-layout.ja.md +50 -0
  31. package/docs/components-layout.md +50 -0
  32. package/docs/components-layout.zh-TW.md +50 -0
  33. package/docs/components-layout.zh.md +50 -0
  34. package/docs/components-notifications.ja.md +173 -0
  35. package/docs/components-notifications.md +173 -0
  36. package/docs/components-notifications.zh-TW.md +174 -0
  37. package/docs/components-notifications.zh.md +173 -0
  38. package/docs/components-user-management-user-center.ja.md +183 -0
  39. package/docs/components-user-management-user-center.md +183 -0
  40. package/docs/components-user-management-user-center.zh-TW.md +183 -0
  41. package/docs/components-user-management-user-center.zh.md +183 -0
  42. package/docs/components-user-management-user-sessions.ja.md +164 -0
  43. package/docs/components-user-management-user-sessions.md +164 -0
  44. package/docs/components-user-management-user-sessions.zh-TW.md +164 -0
  45. package/docs/components-user-management-user-sessions.zh.md +164 -0
  46. package/docs/components-user-management.ja.md +76 -0
  47. package/docs/components-user-management.md +76 -0
  48. package/docs/components-user-management.zh-TW.md +76 -0
  49. package/docs/components-user-management.zh.md +76 -0
  50. package/docs/components-utilities-icon.ja.md +106 -0
  51. package/docs/components-utilities-icon.md +106 -0
  52. package/docs/components-utilities-icon.zh-TW.md +106 -0
  53. package/docs/components-utilities-icon.zh.md +106 -0
  54. package/docs/components-utilities.ja.md +136 -0
  55. package/docs/components-utilities.md +136 -0
  56. package/docs/components-utilities.zh-TW.md +136 -0
  57. package/docs/components-utilities.zh.md +136 -0
  58. package/docs/components.ja.md +27 -0
  59. package/docs/components.md +27 -0
  60. package/docs/components.zh-TW.md +27 -0
  61. package/docs/components.zh.md +27 -0
  62. package/docs/core-concepts.ja.md +164 -0
  63. package/docs/core-concepts.md +164 -0
  64. package/docs/core-concepts.zh-TW.md +164 -0
  65. package/docs/core-concepts.zh.md +164 -0
  66. package/docs/getting-started.ja.md +132 -0
  67. package/docs/getting-started.md +132 -0
  68. package/docs/getting-started.zh-TW.md +132 -0
  69. package/docs/getting-started.zh.md +132 -0
  70. package/docs/hooks-api.ja.md +214 -0
  71. package/docs/hooks-api.md +214 -0
  72. package/docs/hooks-api.zh-TW.md +214 -0
  73. package/docs/hooks-api.zh.md +214 -0
  74. package/docs/how-to-guides.ja.md +413 -0
  75. package/docs/how-to-guides.md +413 -0
  76. package/docs/how-to-guides.zh-TW.md +413 -0
  77. package/docs/how-to-guides.zh.md +413 -0
  78. package/docs/overview.ja.md +91 -0
  79. package/docs/overview.md +91 -0
  80. package/docs/overview.zh-TW.md +91 -0
  81. package/docs/overview.zh.md +91 -0
  82. package/glossary.md +12 -0
  83. package/lib/Dashboard/index.js +46 -42
  84. package/lib/Footer/index.js +51 -36
  85. package/lib/Header/index.js +48 -44
  86. package/lib/UserCenter/components/settings.js +1 -0
  87. package/lib/UserCenter/components/user-center.js +133 -133
  88. package/lib/blocklets.d.ts +13 -2
  89. package/lib/blocklets.js +40 -40
  90. package/lib/common/header-addons.js +37 -33
  91. package/package.json +7 -7
  92. package/src/Dashboard/index.jsx +8 -3
  93. package/src/Footer/index.jsx +22 -4
  94. package/src/Header/index.tsx +7 -2
  95. package/src/UserCenter/components/settings.tsx +1 -0
  96. package/src/UserCenter/components/user-center.tsx +6 -6
  97. package/src/blocklets.js +18 -9
  98. package/src/common/header-addons.jsx +7 -2
@@ -0,0 +1,76 @@
1
+ # Project information for documentation publishing
2
+ projectName: Blocklet UI (React)
3
+ projectDesc: '@blocklet/ui-react offers components for Blocklet dev to speed up development.'
4
+ projectLogo: 'https://www.arcblock.io/.well-known/service/blocklet/logo'
5
+
6
+ # =============================================================================
7
+ # Documentation Configuration
8
+ # =============================================================================
9
+
10
+ # Purpose: What's the main outcome you want readers to achieve?
11
+ # Available options (uncomment and modify as needed):
12
+ # getStarted - Get started quickly: Help new users go from zero to working in <30 minutes
13
+ # completeTasks - Complete specific tasks: Guide users through common workflows and use cases
14
+ # findAnswers - Find answers fast: Provide searchable reference for all features and APIs
15
+ # understandSystem - Understand the system: Explain how it works, why design decisions were made
16
+ # solveProblems - Troubleshoot common issues: Help users troubleshoot and fix issues
17
+ # mixedPurpose - Serve multiple purposes: Comprehensive documentation covering multiple needs
18
+ documentPurpose:
19
+ - getStarted
20
+ - completeTasks
21
+
22
+ # Target Audience: Who will be reading this most often?
23
+ # Available options (uncomment and modify as needed):
24
+ # endUsers - End users (non-technical): People who use the product but don't code
25
+ # developers - Developers integrating your product/API: Engineers adding this to their projects
26
+ # devops - DevOps / SRE / Infrastructure teams: Teams deploying, monitoring, maintaining systems
27
+ # decisionMakers - Technical decision makers: Architects, leads evaluating or planning implementation
28
+ # supportTeams - Support teams: People helping others use the product
29
+ # mixedTechnical - Mixed technical audience: Developers, DevOps, and technical users
30
+ targetAudienceTypes:
31
+ - developers
32
+
33
+ # Reader Knowledge Level: What do readers typically know when they arrive?
34
+ # Available options (uncomment and modify as needed):
35
+ # completeBeginners - Is a total beginner, starting from scratch: New to this domain/technology entirely
36
+ # domainFamiliar - Has used similar tools before: Know the problem space, new to this specific solution
37
+ # experiencedUsers - Is an expert trying to do something specific: Regular users needing reference/advanced topics
38
+ # emergencyTroubleshooting - Emergency/troubleshooting: Something's broken, need to fix it quickly
39
+ # exploringEvaluating - Is evaluating this tool against others: Trying to understand if this fits their needs
40
+ readerKnowledgeLevel: completeBeginners
41
+
42
+ # Documentation Depth: How comprehensive should the documentation be?
43
+ # Available options (uncomment and modify as needed):
44
+ # essentialOnly - Essential only: Cover the 80% use cases, keep it concise
45
+ # balancedCoverage - Balanced coverage: Good depth with practical examples [RECOMMENDED]
46
+ # comprehensive - Comprehensive: Cover all features, edge cases, and advanced scenarios
47
+ # aiDecide - Let AI decide: Analyze code complexity and suggest appropriate depth
48
+ documentationDepth: balancedCoverage
49
+
50
+ # Custom Rules: Define specific documentation generation rules and requirements
51
+ rules: ''
52
+
53
+ # Target Audience: Describe your specific target audience and their characteristics
54
+ targetAudience: ''
55
+
56
+ # Glossary: Define project-specific terms and definitions
57
+ glossary: '@glossary.md' # Path to markdown file containing glossary definitions
58
+
59
+ locale: en
60
+ # translateLanguages: # List of languages to translate the documentation to
61
+ # - zh # Example: Chinese translation
62
+ # - en # Example: English translation
63
+ docsDir: docs # Directory to save generated documentation
64
+ sourcesPath: # Source code paths to analyze
65
+ - src
66
+ - ./tests
67
+ - ./README.md
68
+ lastGitHead: 49a6dabae8a06667e517c6811f5f7939ff907ce1
69
+ appUrl: https://docsmith.aigne.io
70
+ boardId: blocklet-ui-react
71
+ # Checkout ID for document deployment service
72
+ checkoutId: ""
73
+ translateLanguages:
74
+ - zh
75
+ - zh-TW
76
+ - ja
@@ -0,0 +1,9 @@
1
+ entries:
2
+ - timestamp: 2025-10-10T07:34:02.876Z
3
+ operation: document_update
4
+ feedback: d2 图表的效果不好,请重新生成
5
+ documentPath: /components/user-management/user-center
6
+ - timestamp: 2025-10-10T07:30:02.608Z
7
+ operation: document_update
8
+ feedback: d2 图表的效果不好,请重新生成
9
+ documentPath: /components/notifications
@@ -0,0 +1,249 @@
1
+ [
2
+ {
3
+ "title": "Overview",
4
+ "description": "Provides a high-level introduction to the Blocklet UI React library, outlining the problems it solves, its core components, and the overall architecture.",
5
+ "path": "/overview",
6
+ "sourceIds": [
7
+ "src/index.ts",
8
+ "README.md",
9
+ "src/Header/index.tsx",
10
+ "src/Footer/index.jsx",
11
+ "src/Dashboard/index.jsx",
12
+ "src/UserCenter/index.tsx",
13
+ "src/ComponentInstaller/index.jsx",
14
+ "src/blocklets.js",
15
+ "src/utils.js"
16
+ ],
17
+ "parentId": ""
18
+ },
19
+ {
20
+ "title": "Getting Started",
21
+ "description": "A concise guide to quickly install the library and render your first components, such as a Header and Footer, in under 30 minutes.",
22
+ "path": "/getting-started",
23
+ "sourceIds": [
24
+ "README.md",
25
+ "src/index.ts",
26
+ "src/Header/index.tsx",
27
+ "src/Footer/index.jsx",
28
+ "src/common/overridable-theme-provider.jsx"
29
+ ],
30
+ "parentId": ""
31
+ },
32
+ {
33
+ "title": "Core Concepts",
34
+ "description": "Explains the fundamental principles of the library, focusing on how it uses the blocklet's metadata to automatically configure and render components.",
35
+ "path": "/core-concepts",
36
+ "sourceIds": [
37
+ "src/blocklets.js",
38
+ "src/types.js",
39
+ "src/@types/index.ts",
40
+ "src/utils.js"
41
+ ],
42
+ "parentId": ""
43
+ },
44
+ {
45
+ "title": "Components",
46
+ "description": "A detailed reference for all available UI components, complete with props, usage examples, and best practices for integration.",
47
+ "path": "/components",
48
+ "sourceIds": [
49
+ "src/index.ts",
50
+ "src/Header/index.tsx",
51
+ "src/Footer/index.jsx",
52
+ "src/Dashboard/index.jsx",
53
+ "src/Icon/index.tsx",
54
+ "src/ComponentInstaller/index.jsx",
55
+ "src/BlockletStudio/index.tsx",
56
+ "src/UserCenter/index.tsx",
57
+ "src/UserSessions/index.tsx",
58
+ "src/ComponentManager/index.tsx",
59
+ "src/common/notification-addon.jsx"
60
+ ],
61
+ "parentId": ""
62
+ },
63
+ {
64
+ "title": "Layout",
65
+ "description": "Documentation for primary layout components like Header, Footer, and Dashboard that form the main structure of a blocklet application.",
66
+ "path": "/components/layout",
67
+ "sourceIds": [
68
+ "src/Header/index.tsx",
69
+ "src/Footer/index.jsx",
70
+ "src/Dashboard/index.jsx"
71
+ ],
72
+ "parentId": "/components"
73
+ },
74
+ {
75
+ "title": "Header",
76
+ "description": "Provides a responsive and customizable header, automatically populated with navigation links and user session controls from the blocklet's metadata.",
77
+ "path": "/components/layout/header",
78
+ "sourceIds": [
79
+ "src/Header/index.tsx",
80
+ "src/common/header-addons.jsx",
81
+ "src/common/domain-warning.jsx",
82
+ "src/common/org-switch/index.jsx",
83
+ "src/libs/with-hide-when-embed.tsx",
84
+ "src/blocklets.js",
85
+ "src/utils.js"
86
+ ],
87
+ "parentId": "/components/layout"
88
+ },
89
+ {
90
+ "title": "Footer",
91
+ "description": "Renders a consistent footer for your application, including branding, copyright information, social media links, and additional navigation.",
92
+ "path": "/components/layout/footer",
93
+ "sourceIds": [
94
+ "src/Footer/index.jsx",
95
+ "src/Footer/internal-footer.jsx",
96
+ "src/Footer/brand.jsx",
97
+ "src/Footer/links.jsx",
98
+ "src/Footer/social-media.jsx",
99
+ "src/Footer/copyright.jsx",
100
+ "src/Footer/layout/standard.jsx",
101
+ "src/Footer/layout/plain.jsx",
102
+ "src/libs/with-hide-when-embed.tsx"
103
+ ],
104
+ "parentId": "/components/layout"
105
+ },
106
+ {
107
+ "title": "Dashboard",
108
+ "description": "A pre-built dashboard layout with a sidebar, header, and content area, designed for admin interfaces and user-centric views.",
109
+ "path": "/components/layout/dashboard",
110
+ "sourceIds": [
111
+ "src/Dashboard/index.jsx",
112
+ "src/common/header-addons.jsx",
113
+ "src/blocklets.js"
114
+ ],
115
+ "parentId": "/components/layout"
116
+ },
117
+ {
118
+ "title": "User Management",
119
+ "description": "A suite of components for handling user profiles, session management, and organization switching.",
120
+ "path": "/components/user-management",
121
+ "sourceIds": [
122
+ "src/UserCenter/index.tsx",
123
+ "src/UserSessions/index.tsx",
124
+ "src/common/org-switch/index.jsx",
125
+ "src/hooks/use-follow.tsx",
126
+ "src/contexts/user-followers.tsx"
127
+ ],
128
+ "parentId": "/components"
129
+ },
130
+ {
131
+ "title": "UserCenter",
132
+ "description": "A comprehensive user profile and settings component that includes passport management, privacy controls, and notification settings.",
133
+ "path": "/components/user-management/user-center",
134
+ "sourceIds": [
135
+ "src/UserCenter/index.tsx",
136
+ "src/UserCenter/components/user-center.tsx",
137
+ "src/UserCenter/components/user-info/index.tsx",
138
+ "src/UserCenter/components/user-info/user-basic-info.tsx",
139
+ "src/UserCenter/components/passport.tsx",
140
+ "src/UserCenter/components/settings.tsx",
141
+ "src/UserCenter/components/privacy.tsx",
142
+ "src/UserCenter/components/notification.tsx",
143
+ "src/UserCenter/components/storage/index.tsx",
144
+ "src/UserCenter/components/third-party-login/index.tsx",
145
+ "src/contexts/config-user-space.tsx",
146
+ "src/contexts/user-followers.tsx"
147
+ ],
148
+ "parentId": "/components/user-management"
149
+ },
150
+ {
151
+ "title": "UserSessions",
152
+ "description": "Displays and manages a user's active and expired login sessions across different devices and platforms.",
153
+ "path": "/components/user-management/user-sessions",
154
+ "sourceIds": [
155
+ "src/UserSessions/index.tsx",
156
+ "src/UserSessions/components/user-sessions.tsx",
157
+ "src/UserSessions/libs/utils.ts"
158
+ ],
159
+ "parentId": "/components/user-management"
160
+ },
161
+ {
162
+ "title": "Component Management",
163
+ "description": "Tools for dynamically installing, publishing, and managing blocklet components within an application.",
164
+ "path": "/components/component-management",
165
+ "sourceIds": [
166
+ "src/ComponentInstaller/index.jsx",
167
+ "src/ComponentManager/index.tsx",
168
+ "src/BlockletStudio/index.tsx"
169
+ ],
170
+ "parentId": "/components"
171
+ },
172
+ {
173
+ "title": "ComponentInstaller",
174
+ "description": "A component that checks for missing blocklet dependencies and provides an interface for administrators to install them.",
175
+ "path": "/components/component-management/component-installer",
176
+ "sourceIds": [
177
+ "src/ComponentInstaller/index.jsx",
178
+ "src/ComponentInstaller/use-component-installed.js",
179
+ "src/ComponentInstaller/installer-item.jsx"
180
+ ],
181
+ "parentId": "/components/component-management"
182
+ },
183
+ {
184
+ "title": "BlockletStudio",
185
+ "description": "An embeddable interface for publishing and managing resources and components within the Blocklet ecosystem.",
186
+ "path": "/components/component-management/blocklet-studio",
187
+ "sourceIds": [
188
+ "src/BlockletStudio/index.tsx",
189
+ "src/BlockletStudio/README.md"
190
+ ],
191
+ "parentId": "/components/component-management"
192
+ },
193
+ {
194
+ "title": "Notifications",
195
+ "description": "Provides components and utilities for implementing a real-time user notification system.",
196
+ "path": "/components/notifications",
197
+ "sourceIds": [
198
+ "src/common/notification-addon.jsx",
199
+ "src/Notifications/Snackbar.tsx",
200
+ "src/Notifications/utils.ts",
201
+ "src/common/ws.js"
202
+ ],
203
+ "parentId": "/components"
204
+ },
205
+ {
206
+ "title": "Utilities",
207
+ "description": "A collection of helper components and utilities, such as a versatile Icon component and theme providers.",
208
+ "path": "/components/utilities",
209
+ "sourceIds": [
210
+ "src/Icon/index.tsx",
211
+ "src/common/overridable-theme-provider.jsx",
212
+ "src/libs/with-hide-when-embed.tsx",
213
+ "src/utils.js"
214
+ ],
215
+ "parentId": "/components"
216
+ },
217
+ {
218
+ "title": "Icon",
219
+ "description": "A flexible icon component that supports Iconify strings, image URLs, and letter avatars, built on top of Material-UI's Avatar.",
220
+ "path": "/components/utilities/icon",
221
+ "sourceIds": [
222
+ "src/Icon/index.tsx"
223
+ ],
224
+ "parentId": "/components/utilities"
225
+ },
226
+ {
227
+ "title": "Hooks API",
228
+ "description": "Reference for the custom React Hooks provided by the library to encapsulate and reuse stateful logic.",
229
+ "path": "/hooks-api",
230
+ "sourceIds": [
231
+ "src/ComponentInstaller/use-component-installed.js",
232
+ "src/hooks/use-follow.tsx",
233
+ "src/hooks/use-mobile.tsx"
234
+ ],
235
+ "parentId": ""
236
+ },
237
+ {
238
+ "title": "How-to Guides",
239
+ "description": "Practical, step-by-step guides for completing common tasks and implementing specific workflows using the library's components.",
240
+ "path": "/how-to-guides",
241
+ "sourceIds": [
242
+ "src/Header/demo/addons-customization.jsx",
243
+ "src/ComponentInstaller/index.jsx",
244
+ "src/common/notification-addon.jsx",
245
+ "src/BlockletStudio/README.md"
246
+ ],
247
+ "parentId": ""
248
+ }
249
+ ]