@memori.ai/memori-react 2.6.5 → 2.7.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.
package/src/index.tsx CHANGED
@@ -39,6 +39,7 @@ export interface Props {
39
39
  authToken?: string;
40
40
  AZURE_COGNITIVE_SERVICES_TTS_KEY?: string;
41
41
  onStateChange?: (state?: DialogState) => void;
42
+ additionalInfo?: WidgetProps['additionalInfo'];
42
43
  }
43
44
 
44
45
  const getPreferredLanguages = () => {
@@ -85,6 +86,7 @@ const Memori: React.FC<Props> = ({
85
86
  authToken,
86
87
  AZURE_COGNITIVE_SERVICES_TTS_KEY,
87
88
  onStateChange,
89
+ additionalInfo,
88
90
  }) => {
89
91
  const [memori, setMemori] = useState<IMemori>();
90
92
  const [speechKey, setSpeechKey] = useState<string | undefined>(
@@ -210,6 +212,7 @@ const Memori: React.FC<Props> = ({
210
212
  speechKey || AZURE_COGNITIVE_SERVICES_TTS_KEY
211
213
  }
212
214
  onStateChange={onStateChange}
215
+ additionalInfo={additionalInfo}
213
216
  {...(tag && pin ? { personification: { tag, pin } } : {})}
214
217
  />
215
218
  ) : (
@@ -39,6 +39,7 @@
39
39
  "ageVerificationText": "To interact with this Twin, you must be at least {{minAge}} years old.",
40
40
  "nsfw": "NSFW: This Twin contains adult contents",
41
41
  "auth": {
42
+ "title": "Authentication",
42
43
  "useRecoveryTokens": "Use recovery tokens",
43
44
  "tokens": "Tokens",
44
45
  "addToken": "Add token",
@@ -39,6 +39,7 @@
39
39
  "ageVerificationText": "Per interagire con questo Twin, devi aver almeno {{minAge}} anni.",
40
40
  "nsfw": "NSFW: Questo Twin contiene contenuti per adulti",
41
41
  "auth": {
42
+ "title": "Autenticazione",
42
43
  "useRecoveryTokens": "Utilizza i token di recupero",
43
44
  "tokens": "Token",
44
45
  "addToken": "Aggiungi token",