l-min-components 1.7.1318 → 1.7.1319
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.
package/package.json
CHANGED
package/src/components/index.js
CHANGED
|
@@ -58,7 +58,7 @@ export { default as useAudioPlayer } from "./useAudioPlayer";
|
|
|
58
58
|
export { default as AudioWaveComponent } from "./useAudioPlayer/audioWave";
|
|
59
59
|
export { default as InputEmoji } from "./InputEmoji";
|
|
60
60
|
export { default as AIAnalysis } from "./AIAnalysis";
|
|
61
|
-
export { default as
|
|
61
|
+
export { default as useAiUtils } from "../utils/useAiUtils";
|
|
62
62
|
export { default as useAudioRecorder } from "../hooks/recorder-kit";
|
|
63
63
|
export { default as useCookiePolling } from "../hooks/utils/cookiePolling";
|
|
64
64
|
export { default as convertBlobToWav } from "../utils/webm2wav";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
function getResponse(model) {
|
|
2
2
|
const referenceText = model?.Reference;
|
|
3
3
|
|
|
4
4
|
if (referenceText) {
|
|
@@ -44,4 +44,8 @@ const setupAnalysis = (data, otherValues = {}) => {
|
|
|
44
44
|
return null;
|
|
45
45
|
};
|
|
46
46
|
|
|
47
|
-
|
|
47
|
+
const useAiUtils = () => {
|
|
48
|
+
return { setupAnalysis, getResponse };
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
export default useAiUtils;
|