Skip to content

Commit

Permalink
Merge branch 'main' into feat_upload_documents
Browse files Browse the repository at this point in the history
  • Loading branch information
nzambello committed Dec 20, 2024
2 parents fa29eb6 + 7e32f25 commit 513653f
Show file tree
Hide file tree
Showing 41 changed files with 2,123 additions and 824 deletions.
56 changes: 56 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,61 @@


## [7.11.4](https://github.com/memori-ai/memori-react/compare/v7.11.3...v7.11.4) (2024-12-10)


### Bug Fixes

* links color in user chat bubbles ([813e557](https://github.com/memori-ai/memori-react/commit/813e5574bb32467f52f397a9ff3da1bfeb5b6b4c))

## [7.11.3](https://github.com/memori-ai/memori-react/compare/v7.11.2...v7.11.3) (2024-12-06)


### Bug Fixes

* errors opening session ([ba33f73](https://github.com/memori-ai/memori-react/commit/ba33f73c5733f9417fd5b6e17b4e2d5ab950d701))

## [7.11.2](https://github.com/memori-ai/memori-react/compare/v7.11.1...v7.11.2) (2024-12-06)


### Changes

* install mathjax only if useMathFormatting is enabled ([8648ed0](https://github.com/memori-ai/memori-react/commit/8648ed00627801b8904bc77bd41fc15448756bf1))

## [7.11.1](https://github.com/memori-ai/memori-react/compare/v7.11.0...v7.11.1) (2024-12-06)


### Bug Fixes

* markdown formatting lists and newlines ([ff42a33](https://github.com/memori-ai/memori-react/commit/ff42a33df9b45c32e503859c49147bc2b9c8ea39))
* resume session will create new session if expired ([a85ea67](https://github.com/memori-ai/memori-react/commit/a85ea6794a729c7a9fd01bf1c966e01abf877cd2))

## [7.11.0](https://github.com/memori-ai/memori-react/compare/v7.10.0...v7.11.0) (2024-12-05)


### Features

* math markdown parsing by flag (config or props) ([31c272f](https://github.com/memori-ai/memori-react/commit/31c272fc47825a2292e3a620df55c9a3c615c855))
* resume previous session with sessionID set ([8524d85](https://github.com/memori-ai/memori-react/commit/8524d85f41f5a4cc17f9c876d220f0e36c02dab0))


### Bug Fixes

* **AgeVerificationModal:** update z-index for improved modal visibility ([ddbe6e3](https://github.com/memori-ai/memori-react/commit/ddbe6e39812b0070df06c8d05d19fde3da900232))
* improved error handling for fetchSession and reopenSession functions ([b9b092a](https://github.com/memori-ai/memori-react/commit/b9b092aef1d427afd7d845ae0dc0d65c0ed95326))
* linting ChatBubble ([cf5fb09](https://github.com/memori-ai/memori-react/commit/cf5fb09200499880fb4fb8ec23468529e2b0d0c2))
* recover birthdate from localstorage or login ([fc7c54d](https://github.com/memori-ai/memori-react/commit/fc7c54d887c1184f31fcb258bd7a29cf00168324))
* **test:** reverted linting modifies on ChatBubble ([3e26519](https://github.com/memori-ai/memori-react/commit/3e26519d531934211f0201f1bec9530aae393a10))


### Changes

* chat layout width ([2aa5d23](https://github.com/memori-ai/memori-react/commit/2aa5d23d79896a9651973f7db940b55e4dc0a782))


### Maintenance

* fix typo in stories ([1b71ac9](https://github.com/memori-ai/memori-react/commit/1b71ac9666c9160b650b6f37801184af75de1aec))

## [7.10.0](https://github.com/memori-ai/memori-react/compare/v7.9.1...v7.10.0) (2024-11-26)


Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ const App = () => (
| `enableAudio` | | `boolean` | `true` | Enable audio output. Defaults to true if otherwise indicated by props or integration config. |
| `defaultSpeakerActive` | | `boolean` | `true` | Default value for the speaker activation |
| `disableTextEnteredEvents` | | `boolean` | `false` | Disable MemoriTextEntered events listeners for `typeMessage` functions, useful to avoid issues with multiple widgets in page. |
| `useMathFormatting` | | `boolean` | `false` | Apply math formatting to the messages, defaults to false if otherwise indicated by props or integration config. |
| `AZURE_COGNITIVE_SERVICES_TTS_KEY` | | `string` | | Azure Cognitive Services TTS key, used to generate the audio of the Memori and for STT recognition |
| `layout` | | `string` | | Layout of the Memori, can be "FULLPAGE" (default), "CHAT", "WEBSITE_ASSISTANT", "TOTEM", "HIDDEN_CHAT" or "ZOOMED_FULL_BODY". see [below](#layouts) |
| `customLayout` | | `React.FC<LayoutProps>` | | Custom layout component, see [below](#custom-layout) |
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "7.10.0",
"version": "7.11.4",
"name": "@memori.ai/memori-react",
"author": "Memori Srl",
"main": "dist/index.js",
Expand Down
20 changes: 2 additions & 18 deletions src/I18nWrapper.tsx
Original file line number Diff line number Diff line change
@@ -1,29 +1,13 @@
import React, { useEffect } from 'react';
import React from 'react';
import { I18nextProvider } from 'react-i18next';
import i18n from './i18n';
import { mathJaxConfig } from './helpers/utils';

export interface Props {
children: React.ReactNode;
}

const I18nWrapper = ({ children }: Props) => {
useEffect(() => {
// @ts-ignore
if (!window.MathJax) window.MathJax = mathJaxConfig;
}, []);

return (
<I18nextProvider i18n={i18n}>
{children}

<script
id="MathJax-script"
async
src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"
></script>
</I18nextProvider>
);
return <I18nextProvider i18n={i18n}>{children}</I18nextProvider>;
};

export default I18nWrapper;
Loading

0 comments on commit 513653f

Please sign in to comment.