-
-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
♻️ refactor: 将react 部分抽取到 /react 子级路径下
- Loading branch information
1 parent
26a4ad7
commit 80b24e8
Showing
48 changed files
with
83 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,19 @@ | |
"license": "MIT", | ||
"author": "LobeHub <[email protected]>", | ||
"sideEffects": false, | ||
"exports": { | ||
"./package.json": "./package.json", | ||
".": { | ||
"types": "./es/index.d.ts", | ||
"import": "./es/index.js", | ||
"module": "./es/index.js" | ||
}, | ||
"./react": { | ||
"types": "./es/react/index.d.ts", | ||
"import": "./es/react/index.js", | ||
"module": "./es/react/index.js" | ||
} | ||
}, | ||
"main": "es/index.js", | ||
"module": "es/index.js", | ||
"types": "es/index.d.ts", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
export { default as AudioPlayer, type AudioPlayerProps } from '@/react/AudioPlayer'; | ||
export { default as AudioVisualizer, type AudioVisualizerProps } from '@/react/AudioVisualizer'; | ||
export { useAudioPlayer } from '@/react/hooks/useAudioPlayer'; | ||
export { useAudioVisualizer } from '@/react/hooks/useAudioVisualizer'; | ||
export { useBlobUrl } from '@/react/hooks/useBlobUrl'; | ||
export { useStreamAudioPlayer } from '@/react/hooks/useStreamAudioPlayer'; | ||
export { useAudioRecorder } from '@/react/useAudioRecorder'; | ||
export { useEdgeSpeech } from '@/react/useEdgeSpeech'; | ||
export { useMicrosoftSpeech } from '@/react/useMicrosoftSpeech'; | ||
export { | ||
type OpenaiSpeechRecognitionOptions, | ||
type OpenaiSTTFetcher, | ||
useOpenaiSTT, | ||
useOpenaiSTTWithPSR, | ||
useOpenaiSTTWithRecord, | ||
useOpenaiSTTWithSR, | ||
} from '@/react/useOpenaiSTT'; | ||
export { useOpenaiTTS } from '@/react/useOpenaiTTS'; | ||
export { usePersistedSpeechRecognition } from '@/react/useSpeechRecognition/usePersistedSpeechRecognition'; | ||
export { | ||
type SpeechRecognitionOptions, | ||
useSpeechRecognition, | ||
} from '@/react/useSpeechRecognition/useSpeechRecognition'; | ||
export { useSpeechSynthes } from '@/react/useSpeechSynthes'; |
2 changes: 1 addition & 1 deletion
2
src/AudioPlayer/demos/index.tsx → src/react/AudioPlayer/demos/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
3 changes: 2 additions & 1 deletion
3
src/AudioVisualizer/Visualizer.tsx → src/react/AudioVisualizer/Visualizer.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/AudioVisualizer/demos/index.tsx → src/react/AudioVisualizer/demos/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/hooks/useAudioPlayer.ts → src/react/hooks/useAudioPlayer.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
src/hooks/useStreamAudioPlayer.ts → src/react/hooks/useStreamAudioPlayer.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/useAudioRecorder/demos/index.tsx → src/react/useAudioRecorder/demos/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
9 changes: 2 additions & 7 deletions
9
src/useEdgeSpeech/demos/index.tsx → src/react/useEdgeSpeech/demos/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 2 additions & 7 deletions
9
src/useMicrosoftSpeech/demos/index.tsx → src/react/useMicrosoftSpeech/demos/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
src/useMicrosoftSpeech/index.ts → src/react/useMicrosoftSpeech/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/useOpenaiSTT/demos/OpenaiSTTWithPSR.tsx → ...t/useOpenaiSTT/demos/OpenaiSTTWithPSR.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/useOpenaiSTT/demos/OpenaiSTTWithSR.tsx → ...ct/useOpenaiSTT/demos/OpenaiSTTWithSR.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
src/useOpenaiSTT/demos/index.tsx → src/react/useOpenaiSTT/demos/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
src/useOpenaiSTT/useOpenaiSTTWithPSR.ts → ...react/useOpenaiSTT/useOpenaiSTTWithPSR.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
src/useOpenaiSTT/useOpenaiSTTWithRecord.ts → ...ct/useOpenaiSTT/useOpenaiSTTWithRecord.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
src/useOpenaiSTT/useOpenaiSTTWithSR.ts → src/react/useOpenaiSTT/useOpenaiSTTWithSR.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
src/useOpenaiTTS/demos/index.tsx → src/react/useOpenaiTTS/demos/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...tion/demos/PersistedSpeechRecognition.tsx → ...tion/demos/PersistedSpeechRecognition.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/useSpeechRecognition/demos/index.tsx → ...eact/useSpeechRecognition/demos/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...ognition/usePersistedSpeechRecognition.ts → ...ognition/usePersistedSpeechRecognition.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
...SpeechRecognition/useSpeechRecognition.ts → ...SpeechRecognition/useSpeechRecognition.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
src/useSpeechSynthes/demos/index.tsx → src/react/useSpeechSynthes/demos/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.