Skip to content

Commit 38c3c86

Browse files
✨ feat: Migrate to @lobehub/ui v2 [force major]
BREAKING CHANGES: lobehub/lobe-ui#322
1 parent 47964c1 commit 38c3c86

File tree

13 files changed

+47
-39
lines changed

13 files changed

+47
-39
lines changed

.dumirc.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ const isWin = process.platform === 'win32';
1010
const themeConfig: SiteThemeConfig = {
1111
actions: [
1212
{
13-
icon: 'Github',
13+
github: true,
1414
link: homepage,
1515
openExternal: true,
16-
text: 'Github',
16+
text: 'GitHub',
1717
},
1818
{
1919
link: '/components/use-speech-recognition',

package.json

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@lobehub/tts",
3-
"version": "1.28.4",
3+
"version": "2.0.0",
44
"description": "A high-quality & reliable TTS React Hooks library",
55
"homepage": "https://github.com/lobehub/lobe-tts",
66
"bugs": {
@@ -72,61 +72,61 @@
7272
]
7373
},
7474
"dependencies": {
75-
"@lobehub/ui": "^1.162.0",
75+
"@lobehub/ui": "v2.0.0",
7676
"antd-style": "^3.7.1",
7777
"lodash-es": "^4.17.21",
7878
"lucide-react": "^0.469.0",
7979
"markdown-to-txt": "^2.0.1",
80-
"openai": "^4.77.3",
80+
"openai": "^4.93.0",
8181
"query-string": "^9.1.1",
8282
"react-layout-kit": "^1.9.1",
83-
"remark-gfm": "^4.0.0",
83+
"remark-gfm": "^4.0.1",
8484
"remark-parse": "^11.0.0",
85-
"swr": "^2.3.0",
85+
"swr": "^2.3.3",
8686
"unified": "^11.0.5",
8787
"unist-util-visit": "^5.0.0",
8888
"url-join": "^5.0.0",
89-
"uuid": "^11.0.4"
89+
"uuid": "^11.1.0"
9090
},
9191
"devDependencies": {
92-
"@commitlint/cli": "^19.6.1",
92+
"@commitlint/cli": "^19.8.0",
9393
"@lobehub/i18n-cli": "^1.20.3",
94-
"@lobehub/lint": "^1.25.3",
94+
"@lobehub/lint": "^1.26.1",
9595
"@types/lodash-es": "^4.17.12",
96-
"@types/node": "^22.10.5",
97-
"@types/react": "^19.0.3",
98-
"@types/react-dom": "^19.0.2",
96+
"@types/node": "^22.14.0",
97+
"@types/react": "^19.1.0",
98+
"@types/react-dom": "^19.1.2",
9999
"@types/uuid": "^10.0.0",
100-
"@vercel/node": "^5.0.2",
100+
"@vercel/node": "^5.1.14",
101101
"@vitest/coverage-v8": "~1.2.2",
102102
"babel-plugin-antd-style": "^1.0.4",
103103
"clean-package": "^2.2.0",
104-
"commitlint": "^19.6.1",
104+
"commitlint": "^19.8.0",
105105
"concurrently": "^9.1.2",
106106
"dpdm": "^3.14.0",
107-
"dumi": "^2.4.17",
108-
"dumi-theme-lobehub": "^1.12.0",
107+
"dumi": "^2.4.20",
108+
"dumi-theme-lobehub": "v2.0.0",
109109
"eslint": "^8.57.1",
110-
"father": "^4.5.1",
110+
"father": "^4.5.2",
111111
"husky": "^9.1.7",
112112
"jsdom": "^25.0.1",
113-
"lint-staged": "^15.3.0",
114-
"prettier": "^3.4.2",
115-
"react": "^19.0.0",
116-
"react-dom": "^19.0.0",
113+
"lint-staged": "^15.5.0",
114+
"prettier": "^3.5.3",
115+
"react": "^19.1.0",
116+
"react-dom": "^19.1.0",
117117
"remark": "^15.0.1",
118118
"remark-cli": "^12.0.1",
119119
"semantic-release": "^21.1.2",
120120
"stylelint": "^15.11.0",
121-
"tsx": "^4.19.2",
122-
"typescript": "^5.7.2",
123-
"vercel": "^39.2.6",
121+
"tsx": "^4.19.3",
122+
"typescript": "^5.8.3",
123+
"vercel": "^41.5.0",
124124
"vitest": "~1.2.2"
125125
},
126126
"peerDependencies": {
127127
"antd": "^5.23.0",
128-
"react": "^18.0.0 || ^19.0.0",
129-
"react-dom": "^18.0.0 || ^19.0.0"
128+
"react": "^19.0.0",
129+
"react-dom": "^19.0.0"
130130
},
131131
"publishConfig": {
132132
"access": "public",

src/react/AudioPlayer/demos/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { AudioPlayer, useAudioPlayer } from '@lobehub/tts/react';
2-
import { StoryBook, useControls, useCreateStore } from '@lobehub/ui';
2+
import { StoryBook, useControls, useCreateStore } from '@lobehub/ui/storybook';
33

44
export default () => {
55
const store = useCreateStore();

src/react/AudioPlayer/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ const AudioPlayer = memo<AudioPlayerProps>(
125125
icon={isPlaying ? (allowPause ? PauseCircle : StopCircle) : Play}
126126
loading={isLoading}
127127
onClick={isPlaying ? (allowPause ? handlePause : handleStop) : handlePlay}
128-
size={buttonSize || { blockSize: 32, fontSize: 16 }}
128+
size={buttonSize || { blockSize: 32, size: 16 }}
129129
style={buttonStyle}
130130
title={title}
131131
/>
@@ -158,7 +158,7 @@ const AudioPlayer = memo<AudioPlayerProps>(
158158
<ActionIcon
159159
icon={Download}
160160
onClick={download}
161-
size={buttonSize || { blockSize: 32, fontSize: 16 }}
161+
size={buttonSize || { blockSize: 32, size: 16 }}
162162
style={buttonStyle}
163163
/>
164164
)}

src/react/AudioVisualizer/demos/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { AudioPlayer, AudioVisualizer, useAudioPlayer } from '@lobehub/tts/react';
2-
import { StoryBook, useControls, useCreateStore } from '@lobehub/ui';
2+
import { StoryBook, useControls, useCreateStore } from '@lobehub/ui/storybook';
33
import { Flexbox } from 'react-layout-kit';
44

55
export default () => {

src/react/useEdgeSpeech/demos/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { EdgeSpeechTTS } from '@lobehub/tts';
22
import { AudioPlayer, useEdgeSpeech } from '@lobehub/tts/react';
3-
import { Icon, StoryBook, useControls, useCreateStore } from '@lobehub/ui';
3+
import { Icon } from '@lobehub/ui';
4+
import { StoryBook, useControls, useCreateStore } from '@lobehub/ui/storybook';
45
import { Button, Input } from 'antd';
56
import { Volume2 } from 'lucide-react';
67
import { Flexbox } from 'react-layout-kit';

src/react/useMicrosoftSpeech/demos/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { MicrosoftSpeechTTS } from '@lobehub/tts';
22
import { AudioPlayer, useMicrosoftSpeech } from '@lobehub/tts/react';
3-
import { Icon, StoryBook, useControls, useCreateStore } from '@lobehub/ui';
3+
import { Icon } from '@lobehub/ui';
4+
import { StoryBook, useControls, useCreateStore } from '@lobehub/ui/storybook';
45
import { Button, Input } from 'antd';
56
import { Volume2 } from 'lucide-react';
67
import { Flexbox } from 'react-layout-kit';

src/react/useOpenAISTT/demos/AutoStop.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { useOpenAISTT } from '@lobehub/tts/react';
2-
import { Icon, StoryBook, useControls, useCreateStore } from '@lobehub/ui';
2+
import { Icon } from '@lobehub/ui';
3+
import { StoryBook, useControls, useCreateStore } from '@lobehub/ui/storybook';
34
import { Button, Input } from 'antd';
45
import { Mic, StopCircle } from 'lucide-react';
56
import { Flexbox } from 'react-layout-kit';

src/react/useOpenAISTT/demos/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { useOpenAISTT } from '@lobehub/tts/react';
2-
import { Icon, StoryBook, useControls, useCreateStore } from '@lobehub/ui';
2+
import { Icon } from '@lobehub/ui';
3+
import { StoryBook, useControls, useCreateStore } from '@lobehub/ui/storybook';
34
import { Button, Input } from 'antd';
45
import { Mic, StopCircle } from 'lucide-react';
56
import { Flexbox } from 'react-layout-kit';

src/react/useOpenAITTS/demos/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { OpenAITTS } from '@lobehub/tts';
22
import { AudioPlayer, useOpenAITTS } from '@lobehub/tts/react';
3-
import { Icon, StoryBook, useControls, useCreateStore } from '@lobehub/ui';
3+
import { Icon } from '@lobehub/ui';
4+
import { StoryBook, useControls, useCreateStore } from '@lobehub/ui/storybook';
45
import { Button, Input } from 'antd';
56
import { Volume2 } from 'lucide-react';
67
import { Flexbox } from 'react-layout-kit';

0 commit comments

Comments
 (0)