@lobehub/ui 1.157.1 → 1.158.0

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 (157) hide show
  1. package/es/A/index.js +2 -2
  2. package/es/ActionIcon/index.js +11 -15
  3. package/es/ActionIconGroup/index.js +45 -47
  4. package/es/Alert/index.js +43 -50
  5. package/es/Avatar/index.js +10 -12
  6. package/es/Burger/index.js +30 -35
  7. package/es/CodeEditor/index.js +38 -41
  8. package/es/Collapse/index.js +3 -3
  9. package/es/ColorScales/ScaleRow.js +39 -43
  10. package/es/ColorScales/index.js +57 -59
  11. package/es/ConfigProvider/index.js +3 -5
  12. package/es/ContextMenu/index.js +2 -3
  13. package/es/CopyButton/index.js +3 -4
  14. package/es/DraggablePanel/components/DraggablePanelBody.js +2 -3
  15. package/es/DraggablePanel/components/DraggablePanelContainer.js +2 -3
  16. package/es/DraggablePanel/components/DraggablePanelFooter.js +2 -3
  17. package/es/DraggablePanel/components/DraggablePanelHeader.js +5 -9
  18. package/es/DraggablePanel/index.js +28 -35
  19. package/es/EditableText/index.js +13 -16
  20. package/es/EmojiPicker/AvatarUploader.js +60 -71
  21. package/es/EmojiPicker/index.js +101 -110
  22. package/es/EmptyCard/index.js +23 -31
  23. package/es/FileTypeIcon/index.js +44 -55
  24. package/es/FluentEmoji/index.js +4 -6
  25. package/es/Footer/index.js +8 -10
  26. package/es/Form/components/FormDivider.js +2 -2
  27. package/es/Form/components/FormFlatGroup.js +4 -9
  28. package/es/Form/components/FormFooter.js +3 -6
  29. package/es/Form/components/FormGroup.js +15 -21
  30. package/es/Form/components/FormItem.js +10 -17
  31. package/es/Form/components/FormTitle.js +15 -23
  32. package/es/Form/index.js +26 -30
  33. package/es/FormModal/index.js +30 -34
  34. package/es/Grid/index.js +3 -6
  35. package/es/Header/index.js +49 -65
  36. package/es/Highlighter/FullFeatured.js +41 -51
  37. package/es/Highlighter/SyntaxHighlighter/index.js +19 -30
  38. package/es/Highlighter/index.js +19 -29
  39. package/es/Icon/icons/DiscordIcon.js +2 -3
  40. package/es/Icon/index.js +13 -16
  41. package/es/Image/ImageGallery.js +3 -5
  42. package/es/Image/Preview.js +5 -6
  43. package/es/Image/index.js +34 -38
  44. package/es/Image/usePreview.js +33 -37
  45. package/es/Img/index.js +2 -2
  46. package/es/Input/index.js +3 -3
  47. package/es/Layout/index.js +35 -63
  48. package/es/List/ListItem/index.js +53 -67
  49. package/es/Markdown/CodeBlock.js +10 -16
  50. package/es/Markdown/Typography.js +3 -6
  51. package/es/Markdown/index.js +18 -22
  52. package/es/MaterialFileTypeIcon/index.js +17 -20
  53. package/es/MaterialFileTypeIcon/utils.d.ts +2 -2
  54. package/es/Mermaid/FullFeatured.js +35 -45
  55. package/es/Mermaid/index.js +17 -26
  56. package/es/Mermaid/useMermaid.d.ts +2 -1
  57. package/es/Mermaid/useMermaid.js +3 -5
  58. package/es/Modal/index.js +48 -60
  59. package/es/SearchBar/index.js +48 -52
  60. package/es/SelectWithImg/index.js +34 -40
  61. package/es/SideNav/index.js +15 -22
  62. package/es/SliderWithInput/index.js +35 -38
  63. package/es/Snippet/index.js +10 -15
  64. package/es/SortableList/DragHandle.js +3 -3
  65. package/es/SortableList/SortableItem.js +16 -19
  66. package/es/SortableList/SortableOverlay.js +3 -5
  67. package/es/SortableList/index.js +15 -23
  68. package/es/Swatches/index.js +18 -20
  69. package/es/TabsNav/index.js +2 -3
  70. package/es/Tag/index.js +7 -12
  71. package/es/ThemeProvider/Meta.js +53 -58
  72. package/es/ThemeProvider/index.js +17 -23
  73. package/es/ThemeSwitch/index.js +15 -19
  74. package/es/Toc/TocMobile.js +47 -52
  75. package/es/Toc/index.js +8 -13
  76. package/es/Tooltip/index.js +2 -3
  77. package/es/Video/index.js +41 -47
  78. package/es/awesome/AuroraBackground/index.js +11 -18
  79. package/es/awesome/Features/Item.js +37 -45
  80. package/es/awesome/Features/index.js +5 -4
  81. package/es/awesome/GaussianBackground/index.js +8 -13
  82. package/es/awesome/GaussianBackground/useGaussianBackground.d.ts +1 -1
  83. package/es/awesome/GaussianBackground/useGaussianBackground.js +1 -1
  84. package/es/awesome/Giscus/index.js +13 -15
  85. package/es/awesome/GradientButton/index.js +5 -9
  86. package/es/awesome/GridBackground/Grid.js +49 -61
  87. package/es/awesome/GridBackground/GridShowcase.js +24 -28
  88. package/es/awesome/GridBackground/index.js +27 -33
  89. package/es/awesome/Hero/index.js +63 -74
  90. package/es/awesome/Spline/ParentSize.js +7 -8
  91. package/es/awesome/Spline/index.js +10 -13
  92. package/es/awesome/Spotlight/index.js +3 -4
  93. package/es/awesome/SpotlightCard/SpotlightCardItem.js +5 -8
  94. package/es/awesome/SpotlightCard/index.js +9 -12
  95. package/es/brand/BrandLoading/index.js +2 -3
  96. package/es/brand/LobeChat/index.js +29 -38
  97. package/es/brand/LobeChatText/index.js +8 -13
  98. package/es/brand/LobeHub/index.js +29 -38
  99. package/es/brand/LobeHubText/index.js +4 -9
  100. package/es/brand/Logo3d/index.js +2 -3
  101. package/es/brand/LogoFlat/index.js +44 -49
  102. package/es/brand/LogoMono/index.js +48 -53
  103. package/es/brand/LogoThree/Loading.js +9 -11
  104. package/es/brand/LogoThree/LogoSpline.js +10 -12
  105. package/es/brand/LogoThree/index.js +23 -25
  106. package/es/brand/components/Divider.js +4 -6
  107. package/es/chat/BackBottom/index.js +4 -6
  108. package/es/chat/ChatHeader/ChatHeaderTitle.js +22 -31
  109. package/es/chat/ChatHeader/index.js +35 -42
  110. package/es/chat/ChatInputArea/ChatInputActionBar.js +16 -21
  111. package/es/chat/ChatInputArea/ChatInputArea.d.ts +1 -1
  112. package/es/chat/ChatInputArea/ChatInputArea.js +19 -23
  113. package/es/chat/ChatInputArea/ChatInputAreaInner.d.ts +1 -1
  114. package/es/chat/ChatInputArea/ChatInputAreaInner.js +2 -3
  115. package/es/chat/ChatInputArea/SendButton.js +36 -51
  116. package/es/chat/ChatItem/components/Actions.js +3 -5
  117. package/es/chat/ChatItem/components/Avatar.js +17 -21
  118. package/es/chat/ChatItem/components/BorderSpacing.js +1 -2
  119. package/es/chat/ChatItem/components/ErrorContent.js +9 -11
  120. package/es/chat/ChatItem/components/Loading.js +10 -12
  121. package/es/chat/ChatItem/components/MessageContent.js +6 -10
  122. package/es/chat/ChatItem/components/Title.js +3 -8
  123. package/es/chat/ChatItem/index.js +47 -53
  124. package/es/chat/ChatList/ActionsBar.js +2 -3
  125. package/es/chat/ChatList/HistoryDivider.js +6 -11
  126. package/es/chat/ChatList/Item.js +14 -12
  127. package/es/chat/ChatList/index.js +25 -29
  128. package/es/chat/EditableMessage/index.js +26 -32
  129. package/es/chat/EditableMessageList/index.js +72 -76
  130. package/es/chat/MessageInput/index.js +35 -43
  131. package/es/chat/MessageModal/index.js +41 -51
  132. package/es/chat/TokenTag/index.js +7 -11
  133. package/es/components/ControlInput.js +18 -22
  134. package/es/hooks/useHighlight.d.ts +1 -1
  135. package/es/mdx/Callout/index.js +13 -19
  136. package/es/mdx/Cards/Card.js +46 -59
  137. package/es/mdx/Cards/index.js +3 -6
  138. package/es/mdx/FileTree/File.js +5 -11
  139. package/es/mdx/FileTree/Folder.js +13 -22
  140. package/es/mdx/FileTree/index.js +3 -6
  141. package/es/mdx/Mdx/index.js +7 -9
  142. package/es/mdx/Steps/index.js +3 -6
  143. package/es/mdx/Tabs/Tab.js +3 -8
  144. package/es/mdx/Tabs/index.js +17 -21
  145. package/es/mdx/mdxComponents/CodeBlock.js +9 -14
  146. package/es/mdx/mdxComponents/Image.js +2 -2
  147. package/es/mdx/mdxComponents/Link.js +2 -3
  148. package/es/mdx/mdxComponents/Pre.js +7 -14
  149. package/es/mdx/mdxComponents/Video.js +2 -2
  150. package/es/mobile/MobileChatInputArea/SendButton.js +3 -4
  151. package/es/mobile/MobileChatInputArea/index.js +69 -79
  152. package/es/mobile/MobileNavBar/MobileNavBarTitle.js +26 -37
  153. package/es/mobile/MobileNavBar/index.js +41 -48
  154. package/es/mobile/MobileSafeArea/index.js +2 -3
  155. package/es/mobile/MobileTabBar/index.js +29 -35
  156. package/es/storybook/StoryBook/index.js +19 -26
  157. package/package.json +41 -45
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/ui",
3
- "version": "1.157.1",
3
+ "version": "1.158.0",
4
4
  "description": "Lobe UI is an open-source UI component library for building AIGC web apps",
5
5
  "keywords": [
6
6
  "lobehub",
@@ -64,7 +64,7 @@
64
64
  "test": "vitest --passWithNoTests",
65
65
  "test:coverage": "vitest run --coverage --passWithNoTests",
66
66
  "test:update": "vitest -u",
67
- "type-check": "tsc -p tsconfig-check.json"
67
+ "type-check": "tsc --noEmit"
68
68
  },
69
69
  "lint-staged": {
70
70
  "*.md": [
@@ -86,7 +86,6 @@
86
86
  ]
87
87
  },
88
88
  "dependencies": {
89
- "@ant-design/cssinjs": "^1.22.1",
90
89
  "@babel/runtime": "^7.26.0",
91
90
  "@dnd-kit/core": "^6.3.1",
92
91
  "@dnd-kit/modifiers": "^8.0.0",
@@ -95,82 +94,61 @@
95
94
  "@emoji-mart/data": "^1.2.1",
96
95
  "@emoji-mart/react": "^1.1.1",
97
96
  "@floating-ui/react": "^0.26.28",
98
- "@giscus/react": "^3.0.0",
99
- "@lobehub/fluent-emoji": "^1.0.1",
97
+ "@giscus/react": "^3.1.0",
100
98
  "@mdx-js/mdx": "^2.3.0",
101
99
  "@mdx-js/react": "^2.3.0",
102
- "@radix-ui/react-slot": "^1.1.0",
103
- "@react-spring/web": "^9.7.5",
104
- "@shikijs/transformers": "^1.24.0",
105
- "@splinetool/runtime": "^0.9.526",
106
- "ahooks": "^3.8.4",
107
- "chroma-js": "^3.1.2",
108
- "class-variance-authority": "^0.7.1",
109
- "dayjs": "^1.11.13",
100
+ "@radix-ui/react-slot": "^1.1.1",
101
+ "@shikijs/transformers": "^1.26.1",
110
102
  "emoji-mart": "^5.6.0",
111
- "fast-deep-equal": "^3.1.3",
112
103
  "immer": "^10.1.1",
113
104
  "leva": "^0.9.35",
114
- "lodash-es": "^4.17.21",
115
105
  "mermaid": "^11.4.1",
116
106
  "numeral": "^2.0.6",
117
- "polished": "^4.3.1",
118
- "prism-react-renderer": "^2.4.0",
119
- "query-string": "^9.1.1",
120
107
  "rc-footer": "^0.6.8",
121
- "re-resizable": "^6.10.1",
108
+ "re-resizable": "^6.10.3",
122
109
  "react-avatar-editor": "^13.0.2",
123
110
  "react-error-boundary": "^4.1.2",
124
- "react-layout-kit": "^1.9.1",
125
111
  "react-markdown": "^8.0.7",
126
112
  "react-merge-refs": "^2.1.1",
127
- "react-rnd": "^10.4.13",
128
- "react-simple-code-editor": "^0.13.1",
113
+ "react-rnd": "^10.4.14",
129
114
  "rehype-katex": "^6.0.3",
130
115
  "rehype-raw": "^7.0.0",
131
116
  "remark-breaks": "^4.0.0",
132
117
  "remark-gfm": "^3.0.1",
133
118
  "remark-math": "^5.1.1",
134
- "shiki": "^1.24.0",
135
- "swr": "^2.2.5",
136
- "ts-md5": "^1.3.1",
137
- "unified": "^10.1.2",
138
- "url-join": "^5.0.0",
139
- "use-merge-value": "^1.2.0",
140
- "uuid": "^11.0.3"
119
+ "shiki": "^1.26.1",
120
+ "unified": "^10.1.2"
141
121
  },
142
122
  "devDependencies": {
143
123
  "@ant-design/icons": "^5.5.2",
144
- "@commitlint/cli": "^19.6.0",
124
+ "@commitlint/cli": "^19.6.1",
145
125
  "@lobehub/lint": "^1.24.4",
146
126
  "@testing-library/react": "^14.3.1",
147
- "@types/chroma-js": "^2.4.4",
127
+ "@types/chroma-js": "^2.4.5",
148
128
  "@types/lodash-es": "^4.17.12",
149
129
  "@types/mdx": "^2.0.13",
150
130
  "@types/numeral": "^2.0.5",
151
131
  "@types/pangu": "^4.0.2",
152
132
  "@types/query-string": "^6.3.0",
153
- "@types/react": "^18.3.14",
133
+ "@types/react": "^19.0.2",
154
134
  "@types/react-avatar-editor": "^13.0.3",
155
- "@types/react-dom": "^18.3.2",
135
+ "@types/react-dom": "^19.0.2",
156
136
  "@types/unist": "^3.0.3",
157
137
  "@types/uuid": "^10.0.0",
158
138
  "@vitest/coverage-v8": "~1.2.2",
159
139
  "babel-plugin-antd-style": "^1.0.4",
160
- "commitlint": "^19.6.0",
161
- "concurrently": "^9.1.0",
140
+ "commitlint": "^19.6.1",
141
+ "concurrently": "^9.1.2",
162
142
  "cross-env": "^7.0.3",
163
143
  "dpdm": "^3.14.0",
164
- "dumi": "^2.4.14",
165
- "dumi-theme-lobehub": "^1.10.9",
144
+ "dumi": "^2.4.17",
145
+ "dumi-theme-lobehub": "^1.10.10",
166
146
  "eslint": "^8.57.1",
167
147
  "father": "^4.5.1",
168
148
  "husky": "^9.1.7",
169
149
  "jsdom": "^25.0.1",
170
- "lint-staged": "^15.2.10",
150
+ "lint-staged": "^15.3.0",
171
151
  "prettier": "^3.4.2",
172
- "react": "^18.3.1",
173
- "react-dom": "^18.3.1",
174
152
  "remark": "^14.0.3",
175
153
  "remark-cli": "^11.0.0",
176
154
  "semantic-release": "^21.1.2",
@@ -181,11 +159,29 @@
181
159
  "vitest": "~1.2.2"
182
160
  },
183
161
  "peerDependencies": {
184
- "antd": ">=5.13.0",
185
- "antd-style": ">=3",
186
- "lucide-react": ">=0.396.0",
187
- "react": ">=18",
188
- "react-dom": ">=18"
162
+ "@ant-design/cssinjs": "^1.22.0",
163
+ "@babel/runtime": "^7.0.0",
164
+ "@lobehub/fluent-emoji": "^1.0.0",
165
+ "@splinetool/runtime": "^0.9.0",
166
+ "ahooks": "^3.8.0",
167
+ "antd": "^5.22.0",
168
+ "antd-style": "^3.7.0",
169
+ "chroma-js": "^3.0.0",
170
+ "class-variance-authority": "^0.7.0",
171
+ "dayjs": "^1.11.0",
172
+ "fast-deep-equal": "^3.0.0",
173
+ "lodash-es": "^4.0.0",
174
+ "lucide-react": "^0.400.0",
175
+ "polished": "^4.0.0",
176
+ "query-string": "^9.0.0",
177
+ "react": "^18.0.0 || ^19.0.0",
178
+ "react-dom": "^18.0.0 || ^19.0.0",
179
+ "react-layout-kit": "^1.0.0",
180
+ "swr": "^2.3.0",
181
+ "ts-md5": "^1.0.0",
182
+ "url-join": "^5.0.0",
183
+ "use-merge-value": "^1.2.0",
184
+ "uuid": "^11.0.0"
189
185
  },
190
186
  "publishConfig": {
191
187
  "access": "public",