codicent-app-sdk 0.3.77 → 0.3.79
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/README.md +0 -1
- package/dist/cjs/components/AiInput.js +1 -1
- package/dist/cjs/components/AudioIcon.js +1 -1
- package/dist/cjs/components/ChatInput.js +1 -1
- package/dist/cjs/components/ChatMessage.d.ts.map +1 -1
- package/dist/cjs/components/ChatMessage.js +1 -1
- package/dist/cjs/components/CombinedPlaceholderDialog.js +1 -1
- package/dist/cjs/components/Footer.js +1 -1
- package/dist/cjs/components/Header.js +1 -1
- package/dist/cjs/components/HtmlView.js +1 -1
- package/dist/cjs/components/MessageInput.js +1 -1
- package/dist/cjs/components/MessageItem.js +1 -1
- package/dist/cjs/components/Profile.js +1 -1
- package/dist/cjs/components/Prompt.d.ts.map +1 -1
- package/dist/cjs/components/Prompt.js +1 -1
- package/dist/cjs/components/SnapFooter.js +1 -1
- package/dist/cjs/components/TextHeader.js +1 -1
- package/dist/cjs/components/TypingIndicator.js +1 -1
- package/dist/cjs/components/UploadFile.js +1 -1
- package/dist/cjs/components/UrlProcessor.js +1 -1
- package/dist/cjs/components/VoiceIcon.js +1 -1
- package/dist/cjs/config/index.d.ts +0 -1
- package/dist/cjs/config/index.d.ts.map +1 -1
- package/dist/cjs/config/index.js +1 -1
- package/dist/cjs/hooks/index.d.ts +1 -1
- package/dist/cjs/hooks/index.d.ts.map +1 -1
- package/dist/cjs/hooks/useAudioRecorder.d.ts.map +1 -1
- package/dist/cjs/hooks/useAudioRecorder.js +1 -1
- package/dist/cjs/hooks/useAuthState.d.ts.map +1 -1
- package/dist/cjs/hooks/useAuthState.js +1 -1
- package/dist/cjs/hooks/useCodicentApp.d.ts.map +1 -1
- package/dist/cjs/hooks/useCodicentApp.js +1 -1
- package/dist/cjs/hooks/useCodicentState.js +1 -1
- package/dist/cjs/hooks/useLocalization.d.ts +1 -6
- package/dist/cjs/hooks/useLocalization.d.ts.map +1 -1
- package/dist/cjs/hooks/useLocalization.js +1 -1
- package/dist/cjs/hooks/useRealtimeVoiceAI.d.ts +2 -2
- package/dist/cjs/hooks/useRealtimeVoiceAI.d.ts.map +1 -1
- package/dist/cjs/hooks/useRealtimeVoiceAI.js +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/node_modules/i18next/dist/esm/i18next.js +1 -1
- package/dist/cjs/node_modules/react-i18next/dist/es/context.js +1 -1
- package/dist/cjs/node_modules/react-i18next/dist/es/defaults.js +1 -1
- package/dist/cjs/node_modules/react-i18next/dist/es/i18nInstance.js +1 -1
- package/dist/cjs/node_modules/react-i18next/dist/es/initReactI18next.js +1 -1
- package/dist/cjs/node_modules/react-i18next/dist/es/unescape.js +1 -1
- package/dist/cjs/node_modules/react-i18next/dist/es/useTranslation.js +1 -1
- package/dist/cjs/node_modules/react-i18next/dist/es/utils.js +1 -1
- package/dist/cjs/pages/AppFrame.js +1 -1
- package/dist/cjs/pages/CrmPage.js +1 -1
- package/dist/cjs/pages/FormAccept.js +1 -1
- package/dist/cjs/pages/FormInvite.js +1 -1
- package/dist/cjs/pages/Login.js +1 -1
- package/dist/cjs/pages/Sales.js +1 -1
- package/dist/cjs/pages/Search.js +1 -1
- package/dist/cjs/pages/Snap.js +1 -1
- package/dist/cjs/services/index.d.ts +0 -1
- package/dist/cjs/services/index.d.ts.map +1 -1
- package/dist/esm/components/AiInput.js +1 -1
- package/dist/esm/components/AudioIcon.js +1 -1
- package/dist/esm/components/ChatInput.js +1 -1
- package/dist/esm/components/ChatMessage.d.ts.map +1 -1
- package/dist/esm/components/ChatMessage.js +1 -1
- package/dist/esm/components/CombinedPlaceholderDialog.js +1 -1
- package/dist/esm/components/Footer.js +1 -1
- package/dist/esm/components/Header.js +1 -1
- package/dist/esm/components/HtmlView.js +1 -1
- package/dist/esm/components/MessageInput.js +1 -1
- package/dist/esm/components/MessageItem.js +1 -1
- package/dist/esm/components/Profile.js +1 -1
- package/dist/esm/components/Prompt.d.ts.map +1 -1
- package/dist/esm/components/Prompt.js +1 -1
- package/dist/esm/components/SnapFooter.js +1 -1
- package/dist/esm/components/TextHeader.js +1 -1
- package/dist/esm/components/TypingIndicator.js +1 -1
- package/dist/esm/components/UploadFile.js +1 -1
- package/dist/esm/components/UrlProcessor.js +1 -1
- package/dist/esm/components/VoiceIcon.js +1 -1
- package/dist/esm/config/index.d.ts +0 -1
- package/dist/esm/config/index.d.ts.map +1 -1
- package/dist/esm/config/index.js +1 -1
- package/dist/esm/hooks/index.d.ts +1 -1
- package/dist/esm/hooks/index.d.ts.map +1 -1
- package/dist/esm/hooks/useAudioRecorder.d.ts.map +1 -1
- package/dist/esm/hooks/useAudioRecorder.js +1 -1
- package/dist/esm/hooks/useAuthState.d.ts.map +1 -1
- package/dist/esm/hooks/useAuthState.js +1 -1
- package/dist/esm/hooks/useCodicentApp.d.ts.map +1 -1
- package/dist/esm/hooks/useCodicentApp.js +1 -1
- package/dist/esm/hooks/useCodicentState.js +1 -1
- package/dist/esm/hooks/useLocalization.d.ts +1 -6
- package/dist/esm/hooks/useLocalization.d.ts.map +1 -1
- package/dist/esm/hooks/useLocalization.js +1 -1
- package/dist/esm/hooks/useRealtimeVoiceAI.d.ts +2 -2
- package/dist/esm/hooks/useRealtimeVoiceAI.d.ts.map +1 -1
- package/dist/esm/hooks/useRealtimeVoiceAI.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/node_modules/i18next/dist/esm/i18next.js +1 -1
- package/dist/esm/node_modules/react-i18next/dist/es/context.js +1 -1
- package/dist/esm/node_modules/react-i18next/dist/es/defaults.js +1 -1
- package/dist/esm/node_modules/react-i18next/dist/es/i18nInstance.js +1 -1
- package/dist/esm/node_modules/react-i18next/dist/es/initReactI18next.js +1 -1
- package/dist/esm/node_modules/react-i18next/dist/es/unescape.js +1 -1
- package/dist/esm/node_modules/react-i18next/dist/es/useTranslation.js +1 -1
- package/dist/esm/node_modules/react-i18next/dist/es/utils.js +1 -1
- package/dist/esm/pages/AppFrame.js +1 -1
- package/dist/esm/pages/CrmPage.js +1 -1
- package/dist/esm/pages/FormAccept.js +1 -1
- package/dist/esm/pages/FormInvite.js +1 -1
- package/dist/esm/pages/Login.js +1 -1
- package/dist/esm/pages/Sales.js +1 -1
- package/dist/esm/pages/Search.js +1 -1
- package/dist/esm/pages/Snap.js +1 -1
- package/dist/esm/services/index.d.ts +0 -1
- package/dist/esm/services/index.d.ts.map +1 -1
- package/dist/index.d.ts +15 -57
- package/package.json +3 -1
package/dist/esm/pages/Snap.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
import{jsxs as o,jsx as e}from"react/jsx-runtime";import{useState as t,useRef as i,useMemo as n,useCallback as r,useEffect as s}from"react";import{useSearchParams as a,useNavigate as p}from"react-router-dom";import"../components/Markdown.js";import"../components/Textarea.js";import"../components/Button.js";import{Text as l}from"../components/Text.js";import"../components/Spinner.js";import"../components/TextHeader.js";import"../components/TypingIndicator.js";import"../services/codicent.js";import"../utils/MessageContent.js";import"../node_modules/tinycolor2/esm/tinycolor.js";import"../_virtual/index.js";import"../config/index.js";import"../lib/wavtools/lib/wav_packer.js";import"../lib/wavtools/lib/analysis/audio_analysis.js";import"../lib/wavtools/lib/wav_stream_player.js";import"../lib/wavtools/lib/wav_recorder.js";import"./AppFrame.js";import"./Search.js";import"./Login.js";import"./CrmPage.js";import"./ImageView.js";import"./FormInvite.js";import"./FormAccept.js";import"./Sales.js";import"../stores/chatStore.js";import
|
1
|
+
import{jsxs as o,jsx as e}from"react/jsx-runtime";import{useState as t,useRef as i,useMemo as n,useCallback as r,useEffect as s}from"react";import{useSearchParams as a,useNavigate as p}from"react-router-dom";import"../components/Markdown.js";import"../components/Textarea.js";import"../components/Button.js";import{Text as l}from"../components/Text.js";import"../components/Spinner.js";import"../components/TextHeader.js";import"../components/TypingIndicator.js";import"../components/Dialog.js";import"../components/ChatInput.js";import{CombinedPlaceholderDialog as m}from"../components/CombinedPlaceholderDialog.js";import"../components/ChatMessage.js";import"../components/Header.js";import"../services/codicent.js";import"../utils/MessageContent.js";import"../node_modules/tinycolor2/esm/tinycolor.js";import"../_virtual/index.js";import"../config/index.js";import"../lib/wavtools/lib/wav_packer.js";import"../lib/wavtools/lib/analysis/audio_analysis.js";import"../lib/wavtools/lib/wav_stream_player.js";import"../lib/wavtools/lib/wav_recorder.js";import"./AppFrame.js";import"./Search.js";import"./Login.js";import"./CrmPage.js";import"./ImageView.js";import"./FormInvite.js";import"./FormAccept.js";import"./Sales.js";import"../stores/chatStore.js";import c from"../hooks/useLocalization.js";import{useTemplateVariables as d}from"../hooks/useTemplateVariables.js";import"../hooks/useAppStyles.js";import"../components/FileThumbnail.js";import h from"../components/MessageInput.js";import"../components/UploadFile.js";import u from"../components/SnapFooter.js";import"../components/Profile.js";import"../components/MessageItem.js";import"../components/Content.js";import"../components/AiInput.js";import"../components/SearchBox.js";import"../components/HtmlView.js";import"../components/Footer.js";import"../components/Page.js";import{makeStyles as g}from"../node_modules/@griffel/react/makeStyles.esm.js";const f=g({container:{position:"relative",height:"100vh",width:"100vw",overflow:"auto"},flashOverlay:{position:"fixed",top:0,left:0,width:"100%",height:"100%",backgroundColor:"transparent",transition:"background-color 0.2s ease-out",pointerEvents:"none",zIndex:3},video:{position:"absolute",top:0,left:0,width:"100%",height:"100%",objectFit:"cover",zIndex:1},canvas:{display:"none"},bottomControls:{position:"fixed",bottom:"100px",width:"100%",display:"flex",justifyContent:"center",alignItems:"center",zIndex:2,boxSizing:"border-box"},controlContainer:{width:"100%",maxWidth:"600px",position:"relative"},sendButton:{position:"absolute",right:"10px",bottom:"10px",width:"50px",height:"50px",borderRadius:"50%",backgroundColor:"#0078d4",color:"white",border:"none",cursor:"pointer",display:"flex",justifyContent:"center",alignItems:"center"},topControls:{position:"fixed",top:"20px",width:"100%",display:"flex",justifyContent:"space-between",alignItems:"center",zIndex:2,padding:"0 10px",boxSizing:"border-box"},backButton:{width:"60px",height:"60px",borderRadius:"50%",backgroundColor:"transparent",color:"white",border:"none",cursor:"pointer"},input:{padding:"5px",width:"200px",fontSize:"larger",backgroundColor:"#fff8"},bottomButtons:{position:"fixed",bottom:"0px",width:"100%",display:"flex",justifyContent:"space-around",alignItems:"center",zIndex:2,boxSizing:"border-box"},iconButton:{width:"60px",height:"60px",borderRadius:"50%",backgroundColor:"transparent",color:"white",border:"none",cursor:"pointer"},centerText:{position:"fixed",top:"30%",left:"50%",transform:"translate(-50%, -50%)",zIndex:2,textAlign:"center"}}),w=({state:g,audio:w})=>{const j=f(),{service:b}=g,[x,v]=t(null),[y,C]=t(!0),k=i(null),I=i(null),[F]=a(),S=F.get("extra"),T=F.get("template"),[z,V]=t(""),[$]=t("log"),B=n((()=>new Audio("/audio/camera.mp3")),[]),[E,M]=t(!1),N=p(),{t:P}=c(),{extractTemplateVariables:_}=d(b.uploadFile),[A,H]=t(_(T||"")),[D,L]=t(A.length>0),[O,R]=t(""),[U,W]=t(100),K=r((()=>A.map((o=>`#${o.value}`)).join(" ")),[A]);s((()=>{const o=K();R(`${S?" #"+S:""}${o.length>0?" "+o:""}`.trim())}),[A,S,K]),s((()=>{if(window.visualViewport){const o=()=>{const o=window.visualViewport?window.innerHeight-window.visualViewport.height:0;W(o>150?o+20:100)};return window.visualViewport.addEventListener("resize",o),o(),()=>{window.visualViewport&&window.visualViewport.removeEventListener("resize",o)}}}),[]);const q=async o=>{try{const e=new FormData;e.append("file",o);const t=await b.uploadFile(o.name,e),i=K(),n=`${$?" #"+$:""}${S?" #"+S:""}${i.length>0?" "+i:""} #photo #file:${t}`;await b.sendMessage(n)}catch(o){alert(P("Failed to send image:")+" "+o)}};return s((()=>()=>{x&&x.getTracks().forEach((o=>o.stop()))}),[x]),o("div",{className:j.container,children:[e("div",{className:j.flashOverlay,style:{backgroundColor:E?"#ffffff":"transparent"}}),e("video",{ref:k,autoPlay:!0,playsInline:!0,className:j.video}),e("canvas",{ref:I,width:"640",height:"480",className:j.canvas}),!x&&e(l,{weight:"semibold",size:400,className:j.centerText,children:P("Klicka på Byt kamera för att starta!")}),e("div",{className:j.bottomControls,style:{bottom:`${U}px`},children:e("div",{className:j.controlContainer,children:e(h,{defaultText:z,onSend:async()=>{if(""===z.trim())return;const o=K(),e=`${$?" #"+$:""}${S?" #"+S:""}${o.length>0?" "+o:""} ${z}`;try{await b.sendMessage(e),V("")}catch(o){alert(P("Failed to send message: ")+o)}},rows:4,onChange:V,disableSend:!0})})}),e("div",{className:j.bottomButtons,children:e(u,{audio:w,onHome:()=>N("/"),onTakePhoto:()=>{const o=I.current,e=k.current;if(o&&e){o.width=e.videoWidth,o.height=e.videoHeight;const t=o.getContext("2d");t&&(B.play(),M(!0),setTimeout((()=>M(!1)),100),t.drawImage(e,0,0,o.width,o.height),o.toBlob((o=>{if(o){const e=new File([o],"snapshot.png",{type:"image/png"});q(e)}})))}},onSwichCamera:()=>{C((o=>!o)),(async()=>{x&&x.getTracks().forEach((o=>o.stop()));const o={video:{facingMode:y?"user":"environment"},audio:!1};try{const e=await navigator.mediaDevices.getUserMedia(o);v(e),k.current&&(k.current.srcObject=e,k.current.play())}catch(o){console.error("Error accessing the camera: ",o),o instanceof Error?alert(P("Error accessing the camera:")+" "+o.message):alert(P("Error accessing the camera"))}})()},tag:O})}),e(m,{open:D,templateVariables:A,filePlaceholders:[],onTemplateVariablesChange:H,onFilePlaceholdersChange:()=>{},onConfirm:()=>L(!1),onCancel:()=>{L(!1),N(-1)},uploadFile:b.uploadFile})]})};export{w as default};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/services/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,cAAc,YAAY,CAAC
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/services/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,cAAc,YAAY,CAAC"}
|
package/dist/index.d.ts
CHANGED
@@ -128,42 +128,6 @@ declare class CodicentService {
|
|
128
128
|
updateTodoStatus: (messageId: string, status: "done" | "undone") => Promise<boolean>;
|
129
129
|
}
|
130
130
|
|
131
|
-
interface TranslationService {
|
132
|
-
/**
|
133
|
-
* Auto-translate text using AI service
|
134
|
-
*/
|
135
|
-
translateText: (text: string, targetLanguage: string, service?: CodicentService) => Promise<string>;
|
136
|
-
/**
|
137
|
-
* Save translation to localStorage
|
138
|
-
*/
|
139
|
-
saveTranslation: (key: string, value: string, language: string) => void;
|
140
|
-
/**
|
141
|
-
* Get stored translations from localStorage
|
142
|
-
*/
|
143
|
-
getStoredTranslations: (language?: string) => Record<string, any>;
|
144
|
-
/**
|
145
|
-
* Clear stored translations
|
146
|
-
*/
|
147
|
-
clearStoredTranslations: (language?: string) => void;
|
148
|
-
}
|
149
|
-
/**
|
150
|
-
* Auto-translate text using Codicent AI service
|
151
|
-
*/
|
152
|
-
declare const translateText: (text: string, targetLanguage: string, service?: CodicentService) => Promise<string>;
|
153
|
-
/**
|
154
|
-
* Save translation to localStorage
|
155
|
-
*/
|
156
|
-
declare const saveTranslation: (key: string, value: string, language: string) => void;
|
157
|
-
/**
|
158
|
-
* Get stored translations from localStorage
|
159
|
-
*/
|
160
|
-
declare const getStoredTranslations: (language?: string) => Record<string, any>;
|
161
|
-
/**
|
162
|
-
* Clear stored translations
|
163
|
-
*/
|
164
|
-
declare const clearStoredTranslations: (language?: string) => void;
|
165
|
-
declare const translationService: TranslationService;
|
166
|
-
|
167
131
|
declare const Markdown: ({ content }: {
|
168
132
|
content: string;
|
169
133
|
}) => react_jsx_runtime.JSX.Element;
|
@@ -492,8 +456,8 @@ interface RealtimeVoice {
|
|
492
456
|
startRecording: () => Promise<void>;
|
493
457
|
stopRecording: () => Promise<void>;
|
494
458
|
changeTurnEndType: (value: string) => Promise<void>;
|
495
|
-
|
496
|
-
|
459
|
+
getRecorderLevel: () => number;
|
460
|
+
getStreamLevel: () => number;
|
497
461
|
setUsername: (username: string) => void;
|
498
462
|
updateInstructions: (instructions: string) => void;
|
499
463
|
setLanguage: (language: string) => void;
|
@@ -503,6 +467,18 @@ declare const useRealtimeVoiceAI: (apiKey: string, tools: {
|
|
503
467
|
handler: Function;
|
504
468
|
}[]) => RealtimeVoice | undefined;
|
505
469
|
|
470
|
+
interface LanguageSource {
|
471
|
+
source: "force_config" | "url_param" | "browser" | "default";
|
472
|
+
language: string;
|
473
|
+
}
|
474
|
+
declare const useLocalization: () => {
|
475
|
+
t: (key: string) => string;
|
476
|
+
currentLanguage: string;
|
477
|
+
setCurrentLanguage: (lang: string) => void;
|
478
|
+
getLanguageInfo: () => LanguageSource;
|
479
|
+
isForced: boolean;
|
480
|
+
};
|
481
|
+
|
506
482
|
interface TemplateVariable {
|
507
483
|
name: string;
|
508
484
|
value: string;
|
@@ -552,23 +528,6 @@ declare const useToaster: () => {
|
|
552
528
|
ToasterComponent: () => react_jsx_runtime.JSX.Element;
|
553
529
|
};
|
554
530
|
|
555
|
-
interface LanguageSource {
|
556
|
-
source: "force_config" | "url_param" | "browser" | "default";
|
557
|
-
language: string;
|
558
|
-
}
|
559
|
-
/**
|
560
|
-
* Enhanced translation hook that supports both static translations and auto-translation
|
561
|
-
*/
|
562
|
-
declare function useLocalization(): {
|
563
|
-
t: (key: string) => string;
|
564
|
-
translateAsync: (text: string) => Promise<string>;
|
565
|
-
currentLanguage: string;
|
566
|
-
setCurrentLanguage: (lang: string) => void;
|
567
|
-
getLanguageInfo: () => LanguageSource;
|
568
|
-
isForced: boolean;
|
569
|
-
translationVersion: number;
|
570
|
-
};
|
571
|
-
|
572
531
|
interface CombinedPlaceholderDialogProps {
|
573
532
|
open: boolean;
|
574
533
|
templateVariables: TemplateVariable[];
|
@@ -778,7 +737,6 @@ interface AppConfigOptions {
|
|
778
737
|
APP_CHAT_TITLE: undefined | string;
|
779
738
|
APP_CONFIG: AppConfig;
|
780
739
|
APP_FOOTER_COLOR: undefined | string;
|
781
|
-
TRANSLATIONS: Record<string, Record<string, string>> | undefined;
|
782
740
|
APP_FOOTER_SELECTED_COLOR: undefined | string;
|
783
741
|
APP_FOOTER_TEXT_COLOR: undefined | string;
|
784
742
|
APP_HEADER_COLOR: undefined | string;
|
@@ -917,4 +875,4 @@ declare const Sales: React__default.FC<{
|
|
917
875
|
state: CodicentAppState;
|
918
876
|
}>;
|
919
877
|
|
920
|
-
export { AiInput, AppConfig, AppConfigOptions, AppFrame, AppInfo, AppStateDefinition, AppStateMachine, AudioIcon, AudioRecorder, AudioRecorderState, Button, ChatInput, ChatMessage, CodicentAppState, CodicentService, CodicentServiceOptions, ColorPicker, CombinedPlaceholderDialog, Content, CrmPage, DatePicker, FilePlaceholder, FileThumbnail, Footer, FormAccept, FormInvite, Header, HtmlView, ImageViewer as ImageView, Input, Label, Login, Logout, Markdown, Message$1 as Message, Content$1 as MessageContent, MessageInput, MessageItem, Page, Profile, Prompt, RealtimeVoice, Sales, Search, SearchBox, Snap, SnapFooter, Spinner, StateContext, TemplateVariable, Text, TextHeader, Textarea, TimePicker, Title,
|
878
|
+
export { AiInput, AppConfig, AppConfigOptions, AppFrame, AppInfo, AppStateDefinition, AppStateMachine, AudioIcon, AudioRecorder, AudioRecorderState, Button, ChatInput, ChatMessage, CodicentAppState, CodicentService, CodicentServiceOptions, ColorPicker, CombinedPlaceholderDialog, Content, CrmPage, DatePicker, FilePlaceholder, FileThumbnail, Footer, FormAccept, FormInvite, Header, HtmlView, ImageViewer as ImageView, Input, Label, Login, Logout, Markdown, Message$1 as Message, Content$1 as MessageContent, MessageInput, MessageItem, Page, Profile, Prompt, RealtimeVoice, Sales, Search, SearchBox, Snap, SnapFooter, Spinner, StateContext, TemplateVariable, Text, TextHeader, Textarea, TimePicker, Title, TypingIndicator, UploadFile, UploadFileProps, UploadFileRef, UrlProcessor, UseAuthState, UserInfo, VoiceIcon, WavRecorder, WavStreamPlayer, createAppStateMachine, generateBrandVariants, getConfigValue, getGpsLocation, getTimeString, initCodicentApp, isMobileDevice, log, useAppStyles, useAudioRecorder, useAuthState, useChat, useCodicentApp, useCodicentState, useLocalization, useRealtimeVoiceAI, useStateWithLocalStorage, useTemplateVariables, useToaster, useTools, withWakeLock };
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "codicent-app-sdk",
|
3
|
-
"version": "0.3.
|
3
|
+
"version": "0.3.79",
|
4
4
|
"description": "SDK for building AI-powered applications with Codicent",
|
5
5
|
"type": "module",
|
6
6
|
"main": "dist/cjs/index.js",
|
@@ -77,9 +77,11 @@
|
|
77
77
|
"@types/react-dom": "^18.0.11",
|
78
78
|
"@types/react-json-editor-ajrm": "^2.5.6",
|
79
79
|
"gh-pages": "^5.0.0",
|
80
|
+
"i18next": "^23.0.0",
|
80
81
|
"jest": "^29.4.3",
|
81
82
|
"jest-environment-jsdom": "^29.4.3",
|
82
83
|
"mermaid": "^11.3.0",
|
84
|
+
"react-i18next": "^12.0.0",
|
83
85
|
"react-markdown": "^9.0.1",
|
84
86
|
"rehype-raw": "^7.0.0",
|
85
87
|
"rehype-sanitize": "^6.0.0",
|