パッケージの詳細

@memori.ai/memori-react

memori-ai894Apache-2.07.30.6

npm version Tests ![TypeScript Support](https

memori, memori-ai, react, nlp

readme

Memori React

npm version Tests TypeScript Support

Library to integrate an Agent from Memori in a React app.

Web Platform: AIsuru

Installation

yarn add @memori.ai/memori-react
npm install @memori.ai/memori-react

Usage

Import the component:

import Memori from '@memori.ai/memori-react';

Import the CSS:

import '@memori.ai/memori-react/dist/styles.css';

Then use it in your app:

const App = () => (
  <Memori
    memoriName="Memori"
    ownerUserName="memoridev"
    tenantID="www.aisuru.com"
    apiURL="https://backend.memori.ai"
    engineURL="https://engine.memori.ai"
    baseURL="https://www.aisuru.com"
    uiLang="it"
    multilingual
    showShare
    height="100vh"
  />
);

Props

Prop Required Type Default Description
memoriName * (see below) string Name of the Memori
ownerUserName * (see below) string Username of the Memori owner
memoriID * (see below) string ID of the Memori (agent)
ownerUserID * (see below) string ID of the Memori owner
tenantID ✔️ string Tenant ID, example: "aisuru.com" or "app.memorytwin.com"
sessionID string Initial Session ID, UUID which refers to the session to the Memori and identifies a conversation and its permissions (giver, receiver, anonymous). A session would be started autonomously with the params set, but if you have an existing and valid sessionID you can pass it as already opened one. Use this at your risk, as session recovery might break or start session as anon user. In most cases, you shoudn't use this prop.
authToken string Authentication token from user login, needed for giver sessions to upload assets
integrationID string Integration ID, UUID which refers to the public page layout
integration Integration Integration object
secretToken string Secret token, the password of a private or secret Memori
height string "100%" Height of the Memori
showShare bool true Show the share button
showCopyButton bool true Show the copy button on messages
showTranslationOriginal bool false Show button to see original text when translated
showSettings bool true Show the settings panel button
showTypingText bool false Show default sentences while loading text (see: Typing stories)
showLogin bool true Show the login button
showClear bool false Show clear chat history button
showOnlyLastMessages bool true or false * Show only last 2 messages. (*) Defaults to true for TOTEM and WEBSITE_ASSISTANT layouts, false otherwise
showUpload bool true Show the upload button within the chat
baseURL string Base URL of the Memori, example: "https://aisuru.com"
apiURL string "https://backend.memori.ai" URL of the Memori Backend API
engineURL string "https://engine.memori.ai" URL of the Memori Engine API
tag string Tag of the person opening the session to the Memori, could be the giver or a receiver
pin string PIN of the person opening the session to the Memori, could be the giver or a receiver
context string Initial context of the conversation, dictionary with "key: value" pairs as context variables
initialQuestion string Initial question to ask to the Memori, starts the conversation as this would be sent to the Memori
uiLang `'en' \ 'it' \ 'es' \ 'fr' \ 'de'` "en" Language of the UI, es: "en" or "it"
multilingual bool false Enable multilingual mode, if enabled the user can switch between spoken languages
spokenLang string Language of the spoken text, as defaults to user selection. Example: "en" or "it"
onStateChange function Callback function called when the state of the Memori changes
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.
layout string Layout of the Memori, can be "FULLPAGE" (default), "CHAT", "WEBSITE_ASSISTANT", "TOTEM", "HIDDEN_CHAT" or "ZOOMED_FULL_BODY". see below
customLayout React.FC<LayoutProps> Custom layout component, see below
customMediaRenderer `(mimeType: string) => JSX.Element \ null` Custom media renderer, see below
additionalSettings JSX.Element Custom JSX or component to render within the settings drawer
userAvatar string Custom URL or React element to use as user avatar
autoStart boolean false Automatically start the conversation when the component is mounted.

*: one of these pairs is required: memoriName + ownerUserName, memoriID + ownerUserID

Layouts

The Memori can be displayed in five different layouts: FULLPAGE, CHAT, WEBSITE_ASSISTANT,TOTEM, HIDDEN_CHAT and ZOOMED_FULL_BODY. If you don't specify a layout, the default one is FULLPAGE.

FULLPAGE

Full page layout

TOTEM

Totem layout

CHAT

Chat only layout

WEBSITE_ASSISTANT

Website assistant layout

HIDDEN_CHAT

Hidden Chat

ZOOMED_FULL_BODY

Zoomed Full Body

Custom layout

You can override the default layout by passing a custom layout component to the customLayout prop.

The custom layout component must be a React functional component that accepts a LayoutProps object as props.

import { LayoutProps } from '@memori.ai/memori-react/dist/components/MemoriWidget/MemoriWidget';

const MyCustomLayout: React.FC<LayoutProps> = ({
  Header,
  headerProps,
  Avatar,
  avatarProps,
  Chat,
  chatProps,
  StartPanel,
  startPanelProps,
  integrationStyle,
  integrationBackground,
  ChangeMode,
  changeModeProps,
  sessionId,
  hasUserActivatedSpeak,
  loading = false,
  poweredBy,
}) => (
  <>
    {integrationStyle}
    {integrationBackground}

    <Spin spinning={loading} className="memori-mycustom-layout">
      {poweredBy}

      <div className="memori-mycustom-layout--controls">
        {sessionId && hasUserActivatedSpeak && Chat && chatProps ? (
          <Chat {...chatProps} />
        ) : startPanelProps ? (
          <StartPanel {...startPanelProps} />
        ) : null}
      </div>
    </Spin>
  </>
);

And then pass it to the customLayout prop:

  <Memori
    ...
    customLayout={MyCustomLayout}
  />

Styling

You can override the default styles of the Memori by customizing the following CSS custom properties:

memori-client,
#headlessui-portal-root,
.memori-widget {
  --memori-primary: rgb(102, 103, 171);
  --memori-primary-text: #fff;
  --memori-inner-content-pad: 1rem;
  --memori-inner-bg: transparent;
  --memori-chat-bubble-bg: #ffffff60;
  --memori-text-color: #000;
  --memori-button-bg: #fff;
  --memori-button-text: #000;
  --memori-button-padding: 0.5rem 1.5rem;
  --memori-button-border-color: #d9d9d9;
  --memori-button-radius: 5px;
  --memori-button-box-shadow: 0 2px 0 rgba(0, 0, 0, 0.02);
  --memori-blur-background: 0px;
  --memori-drawer--width: 100%;
  --memori-drawer--width--md: 80%;
  --memori-drawer--width--lg: 60%;
  --memori-modal--width: 100%;
  --memori-modal--width--md: 80%;
  --memori-error-color: #ff4d4f;
  --memori-button-disabled-bg: #f9f9f9;
}

You can review the default styles in the styles.css file.

Component overrides

When using the customLayout prop, you can also override the default components used by the client.

const MyCustomChat: LayoutProps['Chat'] = ({ history, sendMessage }) => {
  const [message, setMessage] = React.useState('');

  ...
}

const MyCustomAvatar: LayoutProps['Avatar'] = (props) => {
  ...
}

const CustomLayout: React.FC<LayoutProps> = ({
  avatarProps,
  chatProps,
  StartPanel,
  startPanelProps,
  sessionId,
  hasUserActivatedSpeak,
  loading = false,
  poweredBy,
}) => (
  <>
    <Spin spinning={loading} className="memori-mycustom-layout">
      {poweredBy}

      <div className="memori-mycustom-layout--avatar">
        <MyCustomAvatar {...avatarProps} />
      </div>

      <div className="memori-mycustom-layout--controls">
        {sessionId && hasUserActivatedSpeak && Chat && chatProps ? (
          <MyCustomChat {...chatProps} />
        ) : startPanelProps ? (
          <StartPanel {...startPanelProps} />
        ) : null}
      </div>
    </Spin>
  </>
);

Custom media renderer

You can override the default media renderer by passing a custom function to the customMediaRenderer prop. This can override the default media renderer for all media types or just for a specific one.

You can also use this to extend the default media renderer with additional media types.

<Memori
  ...
  customMediaRenderer={(mimeType: string) => {
    if (mimeType === 'custom/content-type') {
      return <MyCustomImageRenderer />;
    }

    return null;
  }}
/>

Global utilities

When rendered, the Memori widget exposes some global functions that can be used to interact with the Agent.

Get the state of the conversation

let dialogState = getMemoriState();
let sessionID = getMemoriState().sessionID;
let dialogState = getMemoriState(myWidgetIntegrationId); // in case you have multiple widgets on the same page

Otherwise, you can achieve the same result manually by reading from the HTML code of the widget the attribute data-memori-engine-state.

let dialogState = JSON.parse(
  document.querySelector('div[data-memori-engine-state]')?.dataset
    ?.memoriEngineState ?? '{}'
);

Write and send a message to the Agent

Write and send a message to the agent. You can use this method to send a message, such as to continue a conversation with a specific message or following an action.

typeMessage('Hello World!');

Additional parameters:

const waitForPrevious = true; // waits for previous message to be read, default: true
const hidden = true; // message is not visible to the user, only the response is, default: false
const typingText = "Asking the unicorns' opinion..."; // text to show in the loader while the Agent is answering, defaults to none
typeMessage('Hello World!', waitForPrevious, hidden, typingText);

There is also an alias function that does not show the message sent to the user, but only the Agent's response:

const waitForPrevious = true; // waits for previous message to be read, default: true
typeMessageHidden('Hello World!', waitForPrevious);

// alias to
typeMessage('Hello World!', waitForPrevious, true);

Conversation state change event

The onStateChange prop allows you to listen to state changes in the Memori widget.

<Memori
  ...
  onStateChange={(state) => {
    console.log('Memori state changed:', state);
  }}
/>

Or, you can listen to the MemoriNewDialogState event on the document:

document.addEventListener('MemoriNewDialogState', e => {
  console.log('Memori state changed:', e.detail);
});

where e.details is the new state of the Memori. This is useful to use when working with memori-webcomponent.

See also

更新履歴

7.30.6 (2025-06-24)

Features

  • enhance avatar detection logic for custom avatars with dynamic morph target checks (ad8d6b8)

7.30.5 (2025-06-18)

Bug Fixes

  • shared url parameters and baseURL (5c8eb2d)

7.30.4 (2025-06-18)

Bug Fixes

  • shared chat url with usernames as fallback or skip if none available (549a95f)

7.30.3 (2025-06-18)

Changes

  • improve title calculation logic in ChatHistory component with significance scoring (89a5c55)

7.30.2 (2025-06-17)

Features

  • add download chat button and localization support in ChatHistoryDrawer (2b5cb43)

7.30.1 (2025-06-17)

Features

  • add download chat button and localization support in ChatHistoryDrawer (130524c)

Changes

  • enhance ChatHistoryDrawer with export functionality and new title handling (5b1b5f4)
  • removed Export Chat Button form the Header component (7ccd463)
  • removed unused .scss file for ChatHistory component and improved UX (cc1910b)

7.30.0 (2025-06-17)

Bug Fixes

  • hidden chat opens session on click, delete session on nav away (f95c804)

7.29.1 (2025-06-16)

Bug Fixes

  • locales and style for Chat History (604a438)

7.29.0 (2025-06-16)

Features

  • add ChatHistoryDrawer component with API integration and styling (3d3529f)
  • add ChatHistoryDrawer component with storybook stories and tests (ff68960)
  • add ChatRound icon component and enhance History icon with disabled state styling (5c97dda)
  • add isHistoryView prop to Chat component (05f2730)
  • add onClick prop to Card component and update styles for pointer cursor (88cf6bb)
  • add privacy explanation section to StartPanel with localized text and styling (48e5b30)
  • add showChatHistory prop to Memori component for chat history visibility (9fd1f95)
  • add WithChatHistory story to showcase chat history functionality (335a3db)
  • enhance chat history search functionality and improve chat log display in ChatHistoryDrawer (939bc5d)
  • enhance chat history search functionality and improve chat log display in ChatHistoryDrawer (c871926)
  • enhance Header component with chat history button and tooltip integration (f6cdfe1)
  • implement chat history pagination and enhance chat log display in ChatHistoryDrawer (6bfdcc1)
  • implement resume chat functionality in ChatHistoryDrawer with updated UI elements (200c456)
  • improved UI of Chat History component (210ef22)
  • integrate chat history functionality into Header and MemoriWidget components (830a4c7)
  • integrate ChatHistoryDrawer styles and implement pagination for chat logs (4975190)
  • pass memori prop to MemoriWidget for enhanced functionality (ff64219)
  • reopening chat session with new flag 'continueFromChatLogID' (26029ec)
  • update chat resume functionality in ChatHistoryDrawer and adjust initial state in MemoriWidget (cbc78b6)

Bug Fixes

  • center align loading and no results messages in VenueWidget and removed kated props (9f84fae)
  • correct text formatting in chat resume messages and update button label in ChatHistoryDrawer (564e40d)
  • spinner loading chat style (addc05b)
  • update color variables and improve loading spinner in ChatHistoryDrawer (86b5126)

Maintenance

  • update @memori.ai/memori-api-client to version 6.0.3 in package.json and yarn.lock (a6e80e4)
  • update dependencies in package.json and yarn.lock for improved stability and performance (e6f3023)

Changes

  • comment out chat log reference retrieval in ChatHistory component (e3f68fa)
  • fix session chat log retrieval in ChatHistory component (8a55462)
  • simplify resumeSession parameters in ChatHistoryDrawer (4e6de0a)

7.28.1 (2025-06-13)

Bug Fixes

7.28.0 (2025-06-11)

Features

  • added unlogged images upload (0697bfe)

Bug Fixes

  • autoStart default for hidden chat layout (c0e2f8c)
  • for Hidden Chat layout removed session init (c81de97)

Maintenance

7.27.1 (2025-06-11)

Features

  • add onClickStart prop to MemoriWidget and trigger on sidebar open in HiddenChat (05df27d)
  • added new lines before and after the content of the <document_attachment /> (ad5bf12)

Bug Fixes

  • reasoning tag <think> regex (f7f0c22)

7.27.0 (2025-06-10)

Features

  • add reasoning tag <think> formatted display (20d61c7)
  • share chat link in share button (53d33f5)

Bug Fixes

  • remove double fullscreen buttons in hidden chat layout (a60e811)

Maintenance

  • prevent errors server side (de5203e)

7.26.2 (2025-05-26)

Features

  • add autoStart prop to HiddenChat component (f0381ec)

Changes

  • removed initChat function from HiddenChatLayout (c52c492)

7.26.1 (2025-05-23)

Bug Fixes

  • add RTL support to MediaWidget link items (afea49c)
  • aligned user media items to the right (790031d)
  • enabled upload documents for unauthenticated users (88c7cc8)
  • for MediaItemWidget with modal preview for document content (f6e5d3b)
  • prevent scrolling while rendering MathJax (cec210a)
  • prevent user to upload multiple images and fix style button Cancel (d084675)

Changes

  • improve XML formatting and readability in UploadButton component (1842018)

7.26.0 (2025-05-21)

Features

  • add function cache modal and debug button in ChatBubble component (64d65d0)
  • add multi-language support for upload functionality in locales (a0dddc5)
  • add new Document, Image, Preview, and Upload icons components (0a93941)
  • add showFunctionCache prop to Chat, ChatBubble, and MemoriWidget components (6dc9107)
  • add WithFunctionCache story to ChatBubble (5b638a0)
  • added images deselection functionality integrated with API (f03cda6)
  • enhance FilePreview component to support image and document previews (0d1dffc)
  • enhance UploadButton with image count indicator and improved upload menu styling (c141517)
  • implement fullscreen functionality for hidden chat layout and fixed reopening chat (1158775)
  • implement image title input and preview modal in upload functionality (a1358c1)
  • integrate preview file management in Chat components (6349fed)

Bug Fixes

  • localization strings (d98f091)
  • preview medium file for documents and images (7b28cd0)
  • add modal import (8d9bd4a)
  • ensure preview files are set before sending messages (f03b834)
  • lint (6891c1f)
  • only one document can be uploaded per message (4102f2f)
  • update document upload button to correctly limit non-image file uploads (210a258)
  • update engineURL to production and refactor boolean properties in story configurations (14c2622)

Changes

  • improve UploadButton component structure and error handling (d51e1fe)
  • update UploadButton component to support document and image uploads (2809dfc)

7.25.1 (2025-05-13)

Bug Fixes

  • show login if requiredLoginToken enabled (174722d)

7.25.0 (2025-05-07)

Features

  • support for login-required sessions (631388a)

7.24.0 (2025-04-28)

Features

  • add WithExpandable story to Chat component and update snapshots for expandable chat bubbles (ec0e37f)
  • enhance Expandable component with character and word limit options (31b7e07)
  • enhance XLSX file parsing and formatting in UploadButton component (419d866)
  • integrate Expandable component in ChatBubble and WhyThisAnswer for improved text display (0509d65)

Bug Fixes

  • update default provider from OpenAI to Anthropic in CompletionProviderStatus component (7a1847c)

Changes

  • add loginToken in getMemoriState (f12f67c)
  • allow markdown as text upload (546ba42)
  • expandable fix overflow + add stories (9332bb5)
  • remove unnecessary concatenation in truncateMessage function (7e1aacf)
  • truncate user messages (a181614)

Maintenance

  • expandable remove debug text, fix colors and css (91175e1)
  • switch state media to emittedMedia, with fallback (f1d78ab)
  • update api client (46ed9d9)

7.23.1 (2025-04-08)

Bug Fixes

  • baseurl from tenant protocol parsing accepts local http (d1d595a)
  • drawer z-index (e28ec3f)

Maintenance

  • add new error code from backend/assets (e43e834)

7.23.0 (2025-03-25)

Features

  • add ConfirmDialog component with styling and stories (fcd51da)
  • add confirmDialogTitle and confirmDialogMessage props (0869a65)
  • add localized messages for completion provider outages and degraded performance (e712b31)
  • add new Alert and Info icons, update Warning icon for improved accessibility and styling (5af4ee8)
  • enhance CompletionProviderStatus component, improved status handling and visual feedback (a0da536)
  • refactored Drawer component with advanced features and improved UX (729d188)
  • show typing text after 30s (4b53e75)
  • standardize confirm dialog translations across locales (60f380d)

Bug Fixes

  • correct CSS variable naming in Drawer component for consistent styling (a5cf788)
  • lint (85e2466)
  • remove deprecated API component names from CompletionProviderStatus (68ff1ae)

Changes

  • enhance Drawer component with improved footer structure and content handling (4b22245)
  • i18n and styles import (c3ee4b3)
  • improve ConfirmDialog and Drawer components with enhanced z-index management and state handling (4b6554f)
  • optimize Drawer stories and translations for confirmation dialog (26b303c)
  • remove ConfirmDialog from Drawer component (95a1036)
  • remove console logs and simplify Drawer component logic (39f8a78)
  • simplify translation namespace in Drawer confirmation dialog (981df76)

Maintenance

  • replace default typing sentences (fe50410)
  • typing text timeout timespans (8e3e3cf)

7.22.0 (2025-03-21)

Features

  • add privacy explanation section to StartPanel with tooltip and translations (1f214b7)
  • enhance UploadButton to support XLSX and CSV file uploads with improved error handling (574a47c)

Maintenance

  • align text privacy tooltip startpanel (1f539eb)

Changes

7.21.1 (2025-03-20)

Bug Fixes

  • chat bubble headings color inherit (4b342df)

7.21.0 (2025-03-17)

Features

  • added AnimationLoader for flexible avatar animation management (d0837a1)
  • added AnimationParser for advanced avatar animation parsing (f66daf2)
  • create AnimationRegistry for centralized avatar animation management (0c735ef)
  • enhance WhyThisAnswer component with receiver details and context variables (5251cb1)
  • implement AnimationStateMachine for advanced avatar animation control (1aefb00)
  • implement AvatarAnimator as comprehensive animation management system (3049ef7)
  • improve RPM avatar detection and animation merging logic (1e86edb)

Bug Fixes

  • improve AvatarAnimator idle and animation transition logic (ee797aa)
  • improve receiver display logic and ensure context variables are handled correctly (6ce1227)
  • improve speech-to-text processing state management (cfe9f4a)

Changes

  • adjust emotion amplification and remove debug logging in MorphTargetController (4af0a70)
  • enhance AvatarAnimator with advanced animation management (3cda44c)
  • enhance AvatarAnimator with advanced emotion and sequence handling (f1e8f63)
  • enhance MorphTargetController with dynamic emotion processing (2fd8c2e)
  • enhance speech processing with robust message handling (1a1370f)
  • improve emotion mapping and processing in MorphTargetController (4a49461)
  • improve speech recognition (c6d1a1c)
  • optimize AvatarAnimator with advanced transition and sequence handling (1f67479)
  • simplify AvatarView component and remove unused animation-related props (d84dbc0)
  • simplify DynamicShadow component with AvatarAnimator integration (71c0991)
  • streamline HalfBodyAvatar component with simplified morph target and chat handling (8d68795)
  • upload button accepts pdf, txt and json (36d8c65)
  • why this answer i18n, ui and styles (18292dc)

Maintenance

  • generated by ai label in chat with fallback (f28199b)
  • update api client (8ab1bfd)
  • update Storybook stories with new avatar configurations and layouts (749c57a)
  • update Storybook stories with test scenarios for RPM avatar animations and layouts (b61a063)

7.19.2 (2025-03-07)

Bug Fixes

  • handle position requirement before auto-starting memori (1b1948d)

Changes

  • tenant types from backend, remove customizations from dashboard (9aa6deb)

7.19.1 (2025-03-06)

Bug Fixes

  • prevent set instruct on pending sessions (fcbc7c0)

7.19.0 (2025-03-05)

Features

  • optimize Avatar Canvas rendering performance (7147cb2)

Bug Fixes

  • make showShare and showSettings optional props with default values (ca33292)

7.18.0 (2025-02-26)

Features

  • enhance MathJax rendering and initialization in ChatBubble (3fe76f5)

Bug Fixes

  • add showSettings prop from integrationConfig (d6fe636)
  • ja zh lang labels (cb16897)
  • revert ChatTextArea CSS for better responsiveness and styling (69a3199)

Changes

  • expand textarea more (c1e09ce)
  • use useLayoutEffect for MathJax rendering (e75676d)

7.17.2 (2025-02-25)

Bug Fixes

  • double backslashes for LaTeX parsing (b81a2a8)
  • improve fullscreen handling (5d0f350)
  • prevent start session loops on error (13032a9)

Changes

  • improve markdown rendering and math formatting in ChatBubble (df93671)

Maintenance

7.17.1 (2025-02-20)

Bug Fixes

7.17.0 (2025-02-17)

Features

  • add customizable lighting component for avatar rendering (e362cb4)
  • disable continuous speech when speaker is muted (663fd94)
  • enhance PDF text extraction with PDF.js fallback and dynamic file type support (25964c7)

Bug Fixes

  • improve continuous speech and listening conditions (ee74480)
  • speak on autostart (b0d9917)

Maintenance

  • remove ConvertAPI dependency and simplify file processing (ff55006)

Changes

  • enhance Slider and PositionControls UI styling and responsiveness (adc3ff7)
  • enhance speech recognition and audio handling logic (c616547)
  • fine-tune avatar lighting parameters for improved visual quality (7642549)
  • fine-tune viseme timing parameters for smoother lip movements (1797582)
  • improve ChatTextArea CSS for better responsiveness and styling (ec70a5e)
  • improve speech recognition error handling and processing logic (a33f7d8)
  • initial muteSpeaker value with autoStart + birth date fallbacks (4a8e3a6)
  • optimize speech recognition and audio handling (653d503)
  • show typing while sending initial question with previous session (6186353)

7.16.2 (2025-02-10)

Bug Fixes

  • improve speech key fetching and audio enabling logic (f6ea5e2)

Changes

  • send initial question with previous session with empty history (1a6ff68)

Maintenance

  • remove AZURE_COGNITIVE_SERVICES_TTS_KEY as prop (06ee821)
  • update api client (a97c44e)

7.16.1 (2025-01-31)

Bug Fixes

  • opening session current tag check + history (adc90f9)

7.16.0 (2025-01-31)

Features

  • add Alert component with multiple variants and customization options (8ddc456)
  • add dynamic shadow rendering for avatar with emotion-based shadow properties (78030e2)
  • add maxLength attribute to textarea inputs in Chat and ChatTextArea components (46c1d6e)
  • improve file upload with robust error handling and validation (1851d5e)

7.15.2 (2025-01-29)

Bug Fixes

  • better parsing initial context and question (52a0bef)

7.15.1 (2025-01-29)

Bug Fixes

  • better parsing initial context and question (9972821)

7.15.0 (2025-01-29)

Features

  • enhance avatar animations and add new story example (a02564d)

Bug Fixes

  • improve avatar mesh detection for different avatar types (442a6c5)

7.14.2 (2025-01-22)

Features

  • style: updated opacity for website assistant layout (ee89183)

Bug Fixes

  • double translation of last message when reopening session (4f356bc)

7.14.1 (2025-01-20)

Bug Fixes

  • update Avatar component props in TotemLayout to include chatProps (04c9737)

7.14.0 (2025-01-16)

Features

  • add AnimationSequenceTest story (2be61d9)
  • added sequence animation handling system (e2d6518)

Changes

  • moved AnimationController to controllers directory (bef5e76)
  • rename AnimationSequenceTest to MoodChefAssistant and simplify args (438dc8c)
  • replaced AvatarPositionController and MorphTargetController directory position (12fd311)

7.13.4 (2025-01-15)

Maintenance

  • refactor showOnlyLastMessages and default props, prevents issues (3e72aff)

7.13.3 (2025-01-15)

Bug Fixes

Maintenance

7.13.2 (2025-01-07)

Maintenance

  • unused chat props as optional (6e90a9f)

Changes

  • clean up audio handling (bb08519)

7.13.1 (2025-01-03)

Bug Fixes

  • move css import in tsx to main css file (29714ac)

Maintenance

  • remove giver/instruct flows (8dbef44)

7.13.0 (2025-01-03)

Features

  • auto start prop, starts chat on load (773feae)
  • internal: allow integration object as prop (63b3f0f)

Bug Fixes

  • scrollIntoView optional chaining (7c0a290)

Changes

  • new prop to apply css properties to :root (055a189)

7.12.2 (2024-12-24)

Changes

  • new scroll logic by last user msg (bc469d3)

Maintenance

  • rename memori/twin in agents (179868d)

7.12.1 (2024-12-24)

Bug Fixes

  • improve condition for media handling in ChatBubble component (89506e7)
  • showUpload from integration bool checking and fallbacks (c87f5d8)

7.12.0 (2024-12-20)

Features

  • add new story for GiovannaProvaWithPreviousSession with session details (cade750)
  • add new story variants for Giovanna and enhance MorphTargetController with detailed comments (ee944c8)
  • added comments to separeted handling for GLB and RPM (893ad9f)
  • added sperated blend shape emotions handling for RPM and custom GLB (511e716)
  • ChatBubble: integrate file upload and preview features (7651640)
  • Chat: enhance chat inputs with file upload functionality and media handling (2bdd9bb)
  • consolidate avatar animation constants into a single file with the emotions mapping constants (98d6085)
  • enhance organization of avatar animation configuration (312f3a2)
  • FilePreview: add FilePreview component with styles, stories, and tests (0bb6262)
  • updated snapshots (9a04d6d)
  • UploadButton: add file upload component with styling and stories (bd9d526)

Bug Fixes

  • AgeVerificationModal: update z-index for improved modal visibility (39043c7)
  • boe avatar url (7e32f25)
  • for CompletionProviderStatus improved react renders and api calls (911ee87)

Changes

  • remove ConvertAPI token and fetch token dynamically in UploadButton component (568da4f)
  • replaced old blenshapes name with updated ones (3fffd62)
  • update comments for RPM and GLB emotion handling in AvatarComponent (533bd93)
  • update import paths for avatar components (1ee58c9)
  • UploadButton: remove convertapiToken prop and streamline token fetching logic (1bbc761)

Maintenance

  • cleanup + add global prop for showUpload (fa29eb6)
  • downgrade convertapi-js version and update dependencies in package.json and yarn.lock (ce33a34)
  • update configuration and add convertapi-js mock (d961e72)
  • update dependencies and package versions in package.json and yarn.lock (fcc0220)

7.11.4 (2024-12-10)

Bug Fixes

  • links color in user chat bubbles (813e557)

7.11.3 (2024-12-06)

Bug Fixes

7.11.2 (2024-12-06)

Changes

  • install mathjax only if useMathFormatting is enabled (8648ed0)

7.11.1 (2024-12-06)

Bug Fixes

  • markdown formatting lists and newlines (ff42a33)
  • resume session will create new session if expired (a85ea67)

7.11.0 (2024-12-05)

Features

  • math markdown parsing by flag (config or props) (31c272f)
  • resume previous session with sessionID set (8524d85)

Bug Fixes

  • AgeVerificationModal: update z-index for improved modal visibility (ddbe6e3)
  • improved error handling for fetchSession and reopenSession functions (b9b092a)
  • linting ChatBubble (cf5fb09)
  • recover birthdate from localstorage or login (fc7c54d)
  • test: reverted linting modifies on ChatBubble (3e26519)

Changes

Maintenance

7.10.0 (2024-11-26)

Features

  • markdown parsing for user messages too (34f991d)

Bug Fixes

  • avoid issues with square brackets in text with markdown and math parsing (a87569f)

Maintenance

Changes

  • removed unused or dangerous mathjax selectors (0faf89f)
  • update marked (08bd938)

7.9.1 (2024-11-21)

Bug Fixes

  • refactor api client vs url usage, fix engine url in client init (ff4958e)

7.9.0 (2024-11-20)

Features

  • added isactive flag for reusable button component (ec80372)
  • added isAvatar3D flag for making the Avatar Controls visible (779b9ad)
  • added isTotem prop in Avatar Component for managing default avatar size for different layouts (d704f9b)
  • added new slider component (d1bb0be)
  • added position controller to handle height and camera depth of the 3d avatar (c54ca4b)
  • added position controls for height and depth (be348fd)
  • added script that make local web server working on emulator (c62de47)
  • adjusted fixed positions for totem (45edd05)
  • for slider component improved compatibility for mobile and animations (e32d511)
  • for TOTEM layout get the position values from the local storage otherwise are fixed (85624a3)
  • half body and full body dynamic position update (3b2f1a6)
  • lang: updated lang (388de3f)
  • lang: updated translations (b7cea50)
  • passed enablePositionControl to avatar component (1177358)
  • settings drawer added enable controls checkbox (792cae0)
  • updated slider component, now the label can be a ReactNode (f213711)

Bug Fixes

  • lint css (2f40128)
  • on mount disabled textarea focus only for TOTEM layout (a8b0ab4)
  • reintroduced head movement for half body avatar and removed unused speaking prop (997f6f5)
  • removed hands for half body avatar (c0bd4a0)
  • removed important from reusable button css (c8774d4)
  • removed keyboard automatic focus on mobile after audio recording (ae8d737)
  • removed negative range values for depth slider and asjusted default layout values position for the avatar (5c197d8)
  • removed style that was cropping the half body avatar (cab622c)
  • removed unused prop and fixed reset textarea focus logic (b5ff368)
  • removed unused prop for PositionControls Component (fff69d1)
  • removed unused props for FullbodyAvatar component (b28ff76)
  • removed wrong state update and logs (7570aa4)
  • replaced undefined type with null for avatarType prop (d4cd4fb)
  • update slider state and fixed depth buttons (4192537)
  • updated avatar test (4bcd669)
  • updated flag isChatAlreadyStarted as soon as the avatar isLoading (9b13b55)

Maintenance

Changes

  • add timezoneOffset in session opening (4e4a4cb)
  • enhanced UI of Position Controls for totem layout (99a2008)
  • replaced constants and morp target controller to the parent directory for better organization (c1097ce)

7.8.8 (2024-11-14)

Bug Fixes

  • replace regex lookbehind to support old safari versions (4aea110)

7.8.7 (2024-11-11)

Changes

  • prisma as external dep from cdn (f93abb8)

7.8.6 (2024-11-11)

Maintenance

  • update female fullbody animation glb url (afb11f7)

7.8.5 (2024-11-07)

Features

  • added idle random after every animation except for Loading (18264fa)

Bug Fixes

  • condition to avoid repeating the same idle animation twice (6137575)

Changes

  • fine tuned lip sync constant values (2756914)
  • handle full body avatar animation and morph target in separated classes (f8c20d1)
  • removed logs and set max idle count (12d06b7)

7.8.4 (2024-10-31)

Maintenance

  • change speech services region (d851f29)

7.8.3 (2024-10-28)

Bug Fixes

  • restored working speak function (4981353)

Changes

  • speak function and viseme handling (237f20d)

Maintenance

  • refactor lip sync process, calculate time relative to when processing started (0d33986)
  • the visemeContext begin visemes process when AudioContext starts (11c78ab)

7.8.2 (2024-10-21)

Bug Fixes

  • correctly reset emotion morph targets (e0c3828)
  • removed unused prop into AvatarComponent (57774d4)

7.8.1 (2024-10-21)

Features

  • added new female animations (8f26840)

7.8.0 (2024-10-18)

7.8.0-rc.1 (2024-10-18)

Features

  • fine tuned lip sync params (25f6d53)
  • improved fullbody avatar state management (ddac623)
  • removed scroll beahviour for ZOOMED FULL BODY (2c9e1ae)

Bug Fixes

  • adjusted ZOOMED FULL BODY layout style (cefab1e)
  • fixed starting twice audio (d108ea8)

7.8.0-rc.0 (2024-10-17)

Features

  • fine tuned lip sync (f8557ee)
  • reintroduced old lip sync system (3626b55)
  • reintroduced old lip sync system (0678e46)

Bug Fixes

  • adjusted half body avatar component woth lip sync and blink (5c8f8cd)
  • half body avatar (c70ca97)
  • zoomed full body styles (47cfc0d)

Maintenance

  • adapt showFullHistory for hidden chat layout (872b28d)
  • reduce VISEME_OVERLAP (474e3ea)

7.7.1 (2024-10-15)

Features

Bug Fixes

  • fine tuned lip sync and base animations (6905874)

7.7.0 (2024-10-15)

Features

Bug Fixes

  • avatar 3d animations, fine tuned lip sync values and removed useless function to useEffect (1a51c26)

Changes

7.6.1 (2024-10-11)

Bug Fixes

  • added 'memori-' to all of hidden chat classes (adebe23)
  • added DateSelector inside the Jest ignore patterns (92787c6)

7.6.0 (2024-10-11)

Features

  • added context for handling visemes and lips animation (82d68e4)
  • added emotion to XML audio tag (c188673)
  • added face mesh when animation is triggered and eye blink (76c9374)
  • added loading animations (2c53776)
  • added mistral and anthropic to completion provider status (70f05ec)
  • added mouth movement using visemes based on the text provided (af55d34)
  • added new animations for Male and Female avatar (0d63458)
  • added new hidden chat layout (a83800d)
  • added new zoomed avatar layout (b031488)
  • made avatar mesh transitions smoother and added emotion animation based on chat tag (82a1fae)
  • removed unused hooks and linked context function for lips animation (dea3740)
  • temp: modified default prop show animations controls to true (a3b2adc)
  • updated skinned mesh name for the latest glb released (278ccb8)

Bug Fixes

  • a11y: add aria label on hidden chat controls (c858262)
  • added padding to HIDDEN_CHAT layout (5856be7)
  • auto translate ui if not multilingual (754f6a8)
  • fixed name of new layout ZOOMED_FULL_BODY (353bf32)
  • hidden chat layout doesn't overlapse with the content (055cbe5)
  • import style (543157d)
  • reinserted inside half body the blink and speak animation (80e4889)
  • removed chat visibility on mobile (3aa1fa8)
  • removed tag <output> from speech text and adjusted viseme smoothing value (fe5b4dd)
  • style: fixed hidden chat layout style (b95eb60)

Maintenance

  • get visemes data from azure and processed the visemes data when speak (14c76a8)
  • update api client (034eb38)

Changes

  • strip html in msg parsing for TTS, fix plaintext to copy (4d95f39)

7.5.1 (2024-09-24)

Bug Fixes

  • avatar view add suspense (b3d21ca)
  • output tag parsing for tts (a641461)

7.5.0 (2024-09-23)

Features

  • add new ui langs es, fr, de (a15341c)
  • added additive action weights change (0fe809e)
  • added showControls prop to Storybook (fdb1f42)
  • added smooth animation transition (c6abba8)
  • added talking and loading animations triggered by corresponding props (601f81d)
  • change ui lang updating spoken lang (d30b921)

Changes

  • added new gui for animations control (428cb6f)
  • refactored directories RPM 3D Avatar (1a1b9fa)

Maintenance

7.4.6 (2024-09-19)

Bug Fixes

  • icons jsx attr camelcase (97362da)
  • katex parsing with special characters, refactor kiss, cover other edge cases with spaces (89c15dd)
  • prevent mathjax to throw and explode (cec112e)

7.4.5 (2024-09-16)

Bug Fixes

  • default audio value for mute speaker (09022bc)
  • knownfacts header icon disabled color (34225bd)

7.4.4 (2024-09-11)

Bug Fixes

  • readability and a11y about disabled buttons (452559e)

7.4.3 (2024-09-11)

Changes

  • hide output tags in chat, strip them for TTS (02e2e42)

7.4.2 (2024-09-10)

Maintenance

  • update api client + remove gamification (e159713)

7.4.1 (2024-09-09)

Changes

  • adapt changes from new completions config (ce5343a)

7.4.0 (2024-08-29)

Features

  • add enableAudio prop, read also from config (240c03c)

Bug Fixes

  • ui: made the disabled buttons visible (e848145)

Changes

7.3.1 (2024-08-20)

Bug Fixes

  • fixed multi language prop bug (de66171)

7.3.0 (2024-08-02)

Features

  • add showTranslationOriginal, keep emission as from engine and use translatedEmission in msg and state (38a4302)

Bug Fixes

  • prevent <output> tags from translations, use correct default endpoint to skip redirections (8107c00)

Changes

  • make message and state handling resilient on translations failures (919e126)

7.2.0 (2024-07-31)

Features

Changes

7.1.3 (2024-07-30)

Maintenance

  • turn console error in warn/debug for non essential/handled errors (8693910)

7.1.2 (2024-07-24)

Bug Fixes

  • dont include media wrapper if no media is shown (b492706)

Maintenance

  • enhancements for new lines parsing (c30cde5)

7.1.1 (2024-07-22)

Bug Fixes

  • chat layout responsiveness width (adfc95a)
  • remove microphone button mouse leave event, caused conflicts sending on hover (625626f)

7.1.0 (2024-07-18)

Features

  • new event MemoriNewDialogState emitted when receiving new state from engine (9da9690)

7.0.8 (2024-07-16)

Changes

  • chat layout progressive max-width (80c8ab8)

7.0.7 (2024-07-12)

Bug Fixes

7.0.6 (2024-07-12)

Maintenance

  • add new prop disableTextEnteredEvents to disable listeners (b4ab8b7)
  • add try catch on message sending, stopping loading on error (079bd15)

7.0.5 (2024-07-11)

Changes

  • fix mathjax selector overlap on parenthesis, refactor mathjax config (faf91e7)

7.0.4 (2024-07-09)

Bug Fixes

Changes

  • dont store preference and remove selector for send on enter, different defaults for desktop and mobile (e6af1ba)

7.0.3 (2024-07-05)

Maintenance

  • change dompurify sanitize import (4279ac0)

Changes

  • fix media item rgb color sizes (1be970c)
  • rgb media items without link (656517b)
  • table compact styles (56556db)

7.0.2 (2024-07-04)

Changes

  • better parse markdown avoiding nested markdown code (41910a3)

7.0.1 (2024-07-03)

Bug Fixes

7.0.0 (2024-06-26)

⚠ BREAKING CHANGES

  • split engine and backend endpoints

Changes

  • split engine and backend endpoints (6bcb56d)

Maintenance

6.8.2 (2024-06-21)

Changes

  • completion provider status from openai selecting only API component (36f37f0)
  • mobile chat text content size (5146d85)

6.8.1 (2024-06-21)

Bug Fixes

  • import katex styles from cdn (f4cd80d)
  • mathjax loading and parsing, moved to effect (cbd1274)

6.8.0 (2024-06-19)

Features

  • add arabic, chinese and japanese langs, add dir auto to emissions (e7dafd2)

Changes

  • add selectors for MathJax elements in parsing (f0e6724)
  • enable markdown parsing for emissions, not user messages (1e34242)
  • enhance markdown + mathjax parsing for links, strip markdown and syntax symbols for TTS (e76c8ea)

6.7.2 (2024-06-18)

Maintenance

  • update error codes and translations (c065d68)

6.7.1 (2024-06-13)

Changes

  • handle credit check with deep thought enabled + update error codes (69f4bab)

6.7.0 (2024-06-13)

Features

  • add credits check, handle not enough credits to open session (bac77ed)

Bug Fixes

  • media item caption size and word break (c2f865a)

Maintenance

  • change other references to twincreator to aisuru (2780e01)
  • update api client and typings (8cfe352)

6.6.2 (2024-06-11)

Maintenance

Changes

  • add video/quicktime to media widget (d89ea9a)
  • dont show hints while loading answer (8a777c6)
  • media items grid smaller size (349547e)
  • media items grid smaller size (d60b752)

6.6.1 (2024-06-07)

Bug Fixes

  • run mathjax only for chat bubbles content (d51d1ef)

6.6.0 (2024-06-06)

Features

  • extended markdown parsing with tables, links, mathml + mathjax (072ebae)

6.5.3 (2024-06-03)

Bug Fixes

  • show consecutive br in msg (38ac194)

6.5.2 (2024-05-17)

Bug Fixes

  • position widget has to be the first in header (b1e9062)
  • totem layout dont show position place name (9a2a5d1)

6.5.1 (2024-05-13)

Bug Fixes

  • account form validation (37eb892)

6.5.0 (2024-05-09)

⚠ BREAKING CHANGES

  • use new aisuru color as default primary

Features

  • add account management in login drawer (1d03455)
  • add change pwd to login (cbe4ca5)
  • add signup from login drawer (95c3510)

Bug Fixes

  • venue widget mobile buttons (3f07570)

Changes

  • use new aisuru color as default primary (57066cf)

Maintenance

  • update error codes and translations, fix error translation (bd8484d)

6.4.6 (2024-05-07)

Maintenance

Changes

  • show why this answer from integration config, defaults to true (41e7369)

6.4.5 (2024-05-06)

Maintenance

Changes

  • add memorytags in message history + why this answer (1f7e074)

6.4.4 (2024-05-03)

Bug Fixes

  • first emission timeout triggering (fecc207)
  • force https for extracted images in links (2c7f408)
  • timeout events triggering (a001e27)

Maintenance

6.4.3 (2024-05-02)

Bug Fixes

  • totem layout header button size and spacings (f79ed7d)

Changes

  • add forced timeout from integration config (8fdf5c1)

6.4.2 (2024-04-30)

Maintenance

Changes

  • add current tag to message history + whyThisAnswer search (29c3676)

6.4.1 (2024-04-30)

Bug Fixes

  • why this answer loading spin with skeleton (45ecf68)

Maintenance

  • show max 3 contents in why this answer (29c9114)

Changes

  • why this answer links + multiline source with expand (10ff06d)

6.4.0 (2024-04-29)

Features

Bug Fixes

  • header position place name mobile (69fe42f)

Maintenance

Changes

  • parse questions in why this answers (98eda36)

6.3.1 (2024-04-22)

Changes

  • allow rgb bg in media images (6800a61)

6.3.0 (2024-04-17)

Features

  • allow null position as negation, dont display that as venue (17cd359)
  • save position to localStorage (4dd10dc)

Bug Fixes

  • position drawer rendering (02766ac)
  • sending position event, cleanup (79be3bf)

Maintenance

  • transform default context vars uppercase (7627eb1)

Changes

  • add helper description for position request (f08c2a7)
  • cleanup (77f2e2b)
  • position drawer + start icons, styles, formatting and overflow in header (db5993d)

6.2.0 (2024-04-16)

Features

  • add position drawer + dates and position events in widget (da48175)
  • add venue widget (843c96e)

Bug Fixes

  • async events for dates, updating and hints conflicts (9d81255)

Maintenance

  • add newline handling in messages after marked parsing (2031fd6)
  • add newline handling in messages after marked parsing (4e49005)
  • update api client (562610c)

6.1.7 (2024-04-09)

Bug Fixes

  • chat bubble content text size (b781eb4)

6.1.6 (2024-04-02)

Bug Fixes

  • disabled signup margins (6abe01d)

6.1.5 (2024-03-29)

Bug Fixes

  • mobile layout fixes + chat layout enhancements (1bdb6c3)

Maintenance

6.1.4 (2024-03-28)

Bug Fixes

6.1.3 (2024-03-25)

Bug Fixes

  • apply integration css vars customizations to modals and drawers (3ce73b2)
  • settings drawer css enhancements (dc95406)

Maintenance

6.1.2 (2024-03-19)

Changes

  • use adminEmail to request access if signup disabled (22f7e47)

6.1.1 (2024-03-19)

Bug Fixes

  • ensure login token in opening session (9da5fd0)

Changes

  • show login default if deep thought enabled (0580201)

Maintenance

  • update error codes and translations (c408242)

6.1.0 (2024-03-15)

Changes

  • change theme font following new brand book (31677bc)

Maintenance

  • add configuration entry for login token (2891c5e)
  • wrap localstorage access in try/catch to prevent errors in storybook (b676cac)

6.0.0 (2024-03-15)

6.0.0-rc.3 (2024-03-15)

Maintenance

  • add removeLocalConfig helper, fix undefined error (5ed27f9)

6.0.0-rc.2 (2024-03-15)

Changes

  • start panel deep thought disclaimer selector + login button padding (c6e7e5c)

6.0.0-rc.1 (2024-03-14)

Bug Fixes

6.0.0-rc.0 (2024-03-14)

Features

5.1.0 (2024-03-11)

Features

  • new prop default speaker active (f854573)

5.0.2 (2024-03-06)

Maintenance

  • powered by memori.ai with analytics params (dda9e57)

5.0.1 (2024-03-06)

Maintenance

5.0.0 (2024-02-16)

⚠ BREAKING CHANGES

  • rename usage of twincreator in aisuru

Features

  • add deep thought disclaimers with new flags (42d6f12)

Bug Fixes

  • remove hide emissions handling from website assistant (95b1c36)

Maintenance

  • rename usage of twincreator in aisuru (6a7778d)
  • rename usage of twincreator in aisuru, update powered by (20094db)
  • update api client (b606f45)
  • update api client (ab6eb01)
  • update mocks (13dd147)

4.4.1 (2024-02-06)

Bug Fixes

  • deep tought disclaimer title color (d3fb917)

Changes

  • boe loading indicator with initial delay, smaller font (94929a4)

Maintenance

  • enhance uilang typings (7b94bcf)
  • prepare for dynamic voice for boe (bf04616)

4.4.0 (2024-01-30)

Features

  • add typing sentences list, add BoE loading sentences (aa7e743)

4.3.1 (2024-01-26)

Bug Fixes

4.3.0 (2024-01-15)

Features

  • add experts drawer in widget for board of experts (2725e13)

4.2.0 (2024-01-05)

Features

  • add known facts drawer ui (02180ea)
  • checkbox indeterminate state (e60a9c1)
  • use known facts ui, add action in header, add deep thought disclaimer (b516184)

Changes

  • fix button danger, minor ui improvements (e924b47)

Maintenance

4.1.1 (2023-12-22)

Changes

  • add loading state while submitting birth date (8c082ee)

4.1.0 (2023-12-18)

Features

  • add deep thought disclaimer and indicators (551ad43)

Bug Fixes

  • fix get tenant origin url (a44a470)

Maintenance

4.0.1 (2023-12-14)

Bug Fixes

  • markdown parsing with translated text if present (c1006da)

4.0.0 (2023-12-14)

⚠ BREAKING CHANGES

  • remove antd and related, momentjs + cleanup to make pkg lighter

Features

  • add markdown parsing in messages (f1064aa)

Changes

  • remove antd and related packages (d8d85c6)
  • remove antd and related, momentjs + cleanup to make pkg lighter (4ab5093)
  • switch to luxon instead of moment (3f7da0c)

Maintenance

3.0.2 (2023-12-11)

Bug Fixes

3.0.1 (2023-12-11)

Bug Fixes

  • board of expert twin avatar fallback (32ca5f3)

Maintenance

  • update memori-api-client (8472d3f)

3.0.0 (2023-12-11)

3.0.0-rc.0 (2023-12-11)

⚠ BREAKING CHANGES

  • use i18next with local provider as lib

Changes

  • use i18next with local provider as lib (d7a192c)

2.23.0 (2023-12-08)

Features

  • add boe indicators, chat avatar with emitters (9c1f162)

2.22.0 (2023-12-06)

Features

  • fix loading animations, united in one glb (e56fbd3)

2.21.0 (2023-12-05)

Features

  • share qr code with tenant logo, retrieve tenant data and config from api (42cf28f)

2.20.2 (2023-12-05)

Bug Fixes

  • temporarily disable fullbody avatar loading anim, update anim assets url (56e5dbb)

Maintenance

  • update stories and example tenants (bae67a0)

2.20.1 (2023-11-24)

Bug Fixes

  • cleanup ui on mobile textarea focus (778934d)

2.20.0 (2023-11-22)

Features

  • show completion provider status if down (d5f31fb)

Changes

  • provide any way to pass login token to session (c7adf7c)

2.19.2 (2023-11-15)

Bug Fixes

  • language selector bg and color on windows (94598f7)

2.19.1 (2023-11-15)

Bug Fixes

  • personification in open session from pwd required state (dc47a6a)

2.19.0 (2023-11-13)

Features

2.18.9 (2023-10-19)

Bug Fixes

  • ios safari speech bug (c9bf892)
  • ios safari typeMessage events, cleanup (f7d4d4d)

Maintenance

  • enhance minAge check with fallback (c03cef3)

2.18.8 (2023-10-04)

Bug Fixes

  • update proptypes and widget props to pass down (b47323b)

2.18.7 (2023-10-04)

Maintenance

2.18.6 (2023-09-28)

Changes

  • stop audio closing webassistant panel (5943302)

2.18.5 (2023-09-28)

Bug Fixes

Changes

  • enhancements for website assistant layout (b8de59b)
  • ui enhancements for website assistant layout (585920e)

2.18.4 (2023-09-26)

Features

  • add default context vars with pathname and route (4c6ae03)

Maintenance

2.18.3 (2023-09-26)

Changes

  • remove old scroll method (aadc51d)

Maintenance

2.18.2 (2023-09-25)

Bug Fixes

  • animate mouth speaking if speaking and not speaker not muted (565a543)

2.18.1 (2023-09-22)

Changes

  • do not apply global styles for website assistant layout (a7274db)

2.18.0 (2023-09-21)

Features

  • add showClear button + showOnlyLastMessages props (6bd2b18)

Bug Fixes

  • lint css order issue (e98faf2)
  • website assistant trigger button touch action (5101bbb)

Changes

  • adapt website assistant layout avatar css (5236a55)
  • adapt website assistant layout avatar css (f8b824d)
  • add avatar type classes + adapt website assistant layout avatar css (730dd16)
  • webassistant layout chat bubbles opacity on hover (03c7bb4)
  • website assistant layout show only 2 messages as totem (efdb8a8)

2.17.1 (2023-09-21)

Bug Fixes

  • website assistant layout css (4088a8a)

Changes

  • disable outer scroll on website assistant layout (939d46b)

2.17.0 (2023-09-20)

Features

  • add new layout WEBSITE_ASSISTANT (298a52a)

Bug Fixes

  • mobile styles for webassistant layout (587d222)
  • mobile styles for webassistant layout (cfd2086)

Changes

  • add avatar pic in website-assistant blob (19fea88)

2.16.1 (2023-09-15)

Bug Fixes

  • bug was causing session errors loops for 403 (ec8ff79)

2.16.0 (2023-09-11)

Features

  • add MemoriResetUIEffects event listener, reset ui timeout + speech (ce55826)

2.15.1 (2023-09-03)

Bug Fixes

  • stop audio and ui timeout when unmounting (e53df8e)

2.15.0 (2023-09-01)

Features

  • add new param to typeMessage, add typeBatchMessages (1e7960b)

Bug Fixes

  • typing updates and fixes (79f9d1f)

Maintenance

2.14.0 (2023-08-31)

Features

  • add MemoriEndSpeak event emission (f659e13)

Changes

  • change textarea disabled states (0a64fd7)
  • mobile msg text smaller (7618026)

2.13.1 (2023-08-29)

Bug Fixes

  • automatically send msg only if listening (c7fb638)

Maintenance

2.13.0 (2023-08-28)

Features

  • change typing with custom sentence, defaults with none, adds params to typeMessage (4e18989)

Maintenance

Changes

  • replace additionalInfo email + userID with loginToken (b323f04)
  • typing as separate component, add text anim (02e027e)

2.12.0 (2023-08-21)

⚠ BREAKING CHANGES

  • memoize container components, move snippet exec to main running once on state change

Changes

  • memoize container components, move snippet exec to main running once on state change (869f058)

2.11.0 (2023-08-14)

Features

  • add active session css class (f161d23)

Changes

  • mic button larger on any layout (baff50e)

2.10.2 (2023-08-14)

Bug Fixes

  • speech async handling, avoids double voice (ee6e45a)

Maintenance

  • restore new session mark (883567d)

2.10.1 (2023-08-10)

Bug Fixes

  • remove emojis from spoken text (92e2cb6)

Changes

  • add waitForPrevious param to typeMessage (6aae935)

2.10.0 (2023-08-10)

Features

  • add typeMessage and typeMessageHidden as event-based functions (f717fb7)
  • typeMessage(hidden) awaits previous emission to be read before submitting (85ac7ae)

Changes

  • cleanup typeMessage and typeMessageHidden (0eff5fc)
  • start button test speakers on try catch (9337764)

2.9.2 (2023-08-03)

Changes

  • add specific css classes to header buttons (c57f123)

2.9.1 (2023-08-03)

Bug Fixes

  • pass settings drawer additionalSettings in widget (67ec2de)

2.9.0 (2023-08-02)

Features

Bug Fixes

  • enforce loading text alignment (2b513fd)

2.8.3 (2023-07-31)

Bug Fixes

  • do not send timeout event if waiting for memori response (c6ad751)

2.8.2 (2023-07-28)

Changes

  • re-add polish voices, fix additionalInfo lang codes (3151f3d)

2.8.1 (2023-07-28)

Bug Fixes

  • enhancements to speak func, add polish voices (8356152)

2.8.0 (2023-07-21)

Features

  • add customMediaRenderer prop (ae66ae9)

2.7.2 (2023-07-20)

Bug Fixes

  • use native select for lang selector in start panel (24f567d)

2.7.1 (2023-07-19)

Bug Fixes

  • userlang initial message translation (7f79906)

2.7.0 (2023-07-17)

Features

  • new additionalInfo on OpenSession params (93f7e0e)

Bug Fixes

Maintenance

2.6.6 (2023-07-14)

Bug Fixes

  • age verification modal zindex (3ce6ec7)
  • muted speaker on welcome message coherently (43129c6)

2.6.5 (2023-07-14)

Bug Fixes

  • init session state between auth and age verification flows (2acab69)

2.6.4 (2023-07-12)

Bug Fixes

  • media url with external links, add tests for helpers (1e4244b)

Maintenance

2.6.3 (2023-07-07)

Bug Fixes

  • use spotlight for ios environment light (4191975)

2.6.2 (2023-06-30)

Features

2.6.1 (2023-06-23)

Bug Fixes

  • defaults for multilanguage prop (33c956a)

2.6.0 (2023-06-20)

Features

  • load azure token from api (9dc0116)

2.5.1 (2023-06-20)

Bug Fixes

2.5.0 (2023-06-20)

Features

  • add multilingual as prop, showShare from config as fallback (61c07ac)

Bug Fixes

  • show more hints button bg and color (74a451c)

2.4.2 (2023-06-20)

Features

  • add extension div in layouts (cd9486a)

Bug Fixes

2.4.1 (2023-06-19)

Bug Fixes

  • default spoken lang order, first is prop (eadac28)

2.4.0 (2023-06-07)

Changes

  • chat layout with layout props (eee4cf5)
  • move everything as layout prop (1c42027)

2.3.1 (2023-06-07)

Bug Fixes

  • environment url from drei cdn (773e0fe)

2.3.0 (2023-06-06)

Features

Changes

  • share button enforce normal font weight (37c645c)

2.2.2 (2023-05-31)

Bug Fixes

  • aggregate whole trascript in usermessage after pause (ddc800f)
  • close audio context only if not closed (c1cd222)
  • css vars declaration entrypoints (1215ccb)
  • share qr button colors (ae44e26)

2.2.1 (2023-05-29)

Bug Fixes

  • add webkit prefix for backdrop filter (5c57636)
  • prevent vars not being loaded for portal roots with lt (d11f9bc)
  • show blob on mobile totem (558aba3)

Maintenance

  • run prettier formatting (416ad37)

Changes

  • defaults for mobile totem dont show settings button (619e773)
  • defaults for mobile totem with controls on bottom + dont show send on enter menu (a5a887c)

2.2.0 (2023-05-26)

Features

  • add hold to talk mic mode, set as default; improvements to tooltip (2ed0949)

Bug Fixes

  • default spoken lang from integration config (8078736)

Changes

  • add 60s timeout if completions enabled (97c770f)

2.1.0 (2023-05-09)

Features

  • add custom layout override as prop (a6e0de7)

Bug Fixes

  • do not add sessino id to external media urls (78e368a)

2.0.11 (2023-05-08)

Bug Fixes

  • start + end avatar speaking events (8b8bdf5)

Changes

  • show settings hide emissions without conditions (40d87bf)

Maintenance

2.0.10 (2023-05-05)

Bug Fixes

  • remove loading avatar margins (f0898b6)

Maintenance

  • check device width and orientation for controls position default value (79dda42)

Changes

  • add parameter to lexicon to check case (in)sensitive, fix separate word match (0233cc6)

2.0.9 (2023-05-03)

Changes

  • hide emissions as separate checkbox not control positions value (943f06a)

2.0.8 (2023-04-27)

Bug Fixes

2.0.7 (2023-04-27)

Bug Fixes

  • dont make avatar smiling while talking (910d866)

2.0.6 (2023-04-27)

Bug Fixes

  • loading animation from separate glb, add smiling + loading anim morph targets influences (754a711)

2.0.5 (2023-04-24)

Bug Fixes

  • totem layout blob z-index (5808bdf)

2.0.4 (2023-04-24)

Features

  • add layout config hidden (aa0855b)

2.0.3 (2023-04-24)

Maintenance

  • add layout to propTypes (2693869)

2.0.2 (2023-04-24)

Bug Fixes

2.0.1 (2023-04-24)

Bug Fixes

2.0.0 (2023-04-24)

⚠ BREAKING CHANGES

  • add totem layout, add prop to select layout, refactor defualt to fullpage
  • add age verification, settings panel, ui components

Features

  • add age verification, settings panel, ui components (92f390c)
  • add controls position in settings, place controls on that config on totem layout (fcfb23e)
  • add fullscreen button, fix styles for totem layout, fix fullbody camera/obj rotation (ad694a4)
  • add modal in media item for images and videos (348018a)
  • add modal in media item for images and videos (99cc6e2)
  • add refresh button in header (5029462)
  • add totem layout, add prop to select layout, refactor defualt to fullpage (4717cb2)
  • open links in another window (a7825f7)

Bug Fixes

  • audio first message (773307f)
  • avatar fullbody animations male vs female (c5366a5)
  • chat typing wave animation (77597c4)
  • continuous speech issues (4e99871)
  • female avatars mouth moving speaking (246d054)
  • import css order (8d23656)
  • max width totem controls (8e0378e)
  • media modal styles (e08c946)
  • minor fixes, add base background (5dbb196)
  • minor style fixes (cd7a5b4)
  • minor style fixes, fix avatar loader, stop audio on hints click or type textarea (235ad81)
  • minor styles fixes (940b066)
  • missing session id on img link (3a3b48e)
  • share menu overlay zindex in totem layout (55f9b8a)
  • totem controls width (e6df8db)
  • totem height (46e3e90)
  • totem height (46cfb4f)
  • typo translation bottom (239e7c4)

Maintenance

Changes

  • change defaults, use reload in header if totem (74d1bd7)
  • cleanup (a972fde)
  • defaults + fix styles (f3852dd)
  • start panel stories args (b0cd83c)
  • use new ui select for lang selector in start panel (5f3feef)

1.2.1 (2023-04-13)

Maintenance

1.2.0 (2023-04-03)

Features

  • refactor styles, add powered by (3605c04)

1.1.0 (2023-03-25)

Features

  • add animations + fullbody avatar (6e2d83a)

Bug Fixes

  • keep hints on G1 on timeout (4c62ecd)
  • transform media url with session id (2a30ef2)

Maintenance

1.0.2 (2023-03-03)

Bug Fixes

  • dont disable mic btn while speaking (4baba70)
  • reopen audio context if closed before audio termination (dec1f12)

1.0.1 (2023-03-02)

Maintenance

1.0.0 (2023-03-02)

1.0.0-rc.6 (2023-03-02)

Bug Fixes

1.0.0-rc.5 (2023-03-02)

Bug Fixes

  • import fonts from cdn for webcomponent compatibility (16b15df)

1.0.0-rc.4 (2023-02-27)

Features

Bug Fixes

Maintenance

  • add sb script + viewport for sb preview (38a963b)

Changes

  • dont show 3d avatar on mobile by default (636dae4)
  • minor css fixes, backdrop blur + padding (a0138dc)

1.0.0-rc.3 (2023-02-16)

Bug Fixes

  • encapsulate css properties in memori-widget (03221bd)

1.0.0-rc.2 (2023-02-16)

Maintenance

1.0.0-rc.1 (2023-02-16)

Bug Fixes

Maintenance

  • fix relative imports (ef269da)
  • upgrade api-client to v1.1.0 (b2254e1)

1.0.0-rc.0 (2023-02-16)

⚠ BREAKING CHANGES

  • remove css imports, add single style.css file with imports

Changes

  • pass apiURL through for asset helper (0dd9a69)
  • remove css imports, add single style.css file with imports (1887357)

1.0.0-alpha.24 (2023-02-02)

Features

  • add feedback buttons on acceptsFeedback (8be4ca4)
  • add icon to show if a msg is generated by AI (c0a5ab7)
  • import new feedback + completions disclaimer (8fe3170)

Bug Fixes

Changes

  • add show AI icon in integration config (36575c9)
  • pick completion flag for generated by ai icon (4ae8658)
  • show feedback buttons + ai icon on chat bubble floating addon (3dbd011)

Maintenance

  • i18n: add translation for generated by ai (a7694bc)
  • upgrade api client (c65fb57)

1.0.0-alpha.23 (2023-01-19)

Changes

  • fixes for listening events (76bc5f6)

1.0.0-alpha.22 (2023-01-17)

Bug Fixes

  • audio issues, refactor tts (e66c83a)

Maintenance

1.0.0-alpha.21 (2023-01-14)

Bug Fixes

Maintenance

  • pin azure sdk to 1.20.0 (a615436)

1.0.0-alpha.20 (2023-01-13)

Features

  • add mutationObserver to detect if authToken attr from wc is changed, show upload media button only if authToken present (33fef98)

Bug Fixes

  • link item preview img fallback (1d739d6)
  • send on enter menu btn sizes (6ca6887)

1.0.0-alpha.19 (2023-01-11)

Bug Fixes

1.0.0-alpha.18 (2023-01-11)

Features

  • add link attachment modal with preview (e20c8ca)
  • add media upload + media attachment modal (6066f06)

Maintenance

  • add general usage story (309de4b)

1.0.0-alpha.17 (2023-01-11)

Bug Fixes

  • button selector to click in typeMessage (493c7a0)
  • pass baseURL to all img handlers (8083c12)
  • update dialog state on timeout only with emission, prevent hints to hide (6132140)

Changes

  • show media upload if dialogState givers acceptMedia (01701d1)

Maintenance

  • pick stories in whole src dir for sb (9675109)

1.0.0-alpha.16 (2023-01-06)

Changes

1.0.0-alpha.15 (2023-01-05)

Bug Fixes

1.0.0-alpha.14 (2023-01-05)

Bug Fixes

  • reopen session on z0 only if textentered gave 404 response (d6f48a8)

1.0.0-alpha.13 (2023-01-05)

Features

  • add chat message feedback button (e74b391)

Maintenance

1.0.0-alpha.12 (2022-12-28)

Features

  • add microphone button + listening (b2b3a3b)

1.0.0-alpha.11 (2022-12-23)

Bug Fixes

1.0.0-alpha.10 (2022-12-21)

Features

  • set user interaction timeout from engine state if set, calc random otherwise (6d4bace)

Bug Fixes

  • timeout from engine already has read time (59eddf9)

Maintenance

  • update memori-api-client (1b8771c)
  • update memori-api-client (ccc404f)

1.0.0-alpha.9 (2022-12-19)

⚠ BREAKING CHANGES

  • open session on clicking start button

Features

  • add auth for private memori (c1bef59)

Bug Fixes

  • chat bubble with initial msg (cea6fe7)
  • set height from props (a65e0b4)
  • use secret while opening session if present (726e131)
  • vertical scrolling consintency (c01c952)

Changes

Maintenance

  • pass secret to widget (a13e29e)
  • storybook: set stories order (568d3d4)
  • widget storybook layout options + rename (d48863f)

1.0.0-alpha.8 (2022-12-07)

Bug Fixes

  • allow global methods within webcomponent (afa5133)

1.0.0-alpha.7 (2022-12-07)

Bug Fixes

  • root for css properties compatible with webcomponent (f06ff64)

1.0.0-alpha.6 (2022-12-07)

Bug Fixes

1.0.0-alpha.5 (2022-12-07)

Features

  • apply integration config css properties, fix styles (91d495d)

Maintenance

1.0.0-alpha.4 (2022-12-06)

Maintenance

  • cleanup package.json (e482423)
  • i18n: add title to snippet copy button (aa56073)

1.0.0-alpha.3 (2022-12-06)

Features

1.0.0-alpha.2 (2022-12-06)

Features

  • add onStateChange callback (e4f55bd)

Maintenance

  • add details in package.json + upgrade api client (f0ce68a)
  • cleanup (94fb8b0)
  • cleanup deps and lockfile (3044342)

1.0.0-alpha.1 (2022-12-06)

Maintenance

1.0.0-alpha.0 (2022-12-06)

Features

Bug Fixes

Changes

  • cleanup helpers (2213be8)
  • move widget ui to default layout (4eacf30)
  • remove splitted code from widget, refactor start method, widget params (1eebbe3)
  • tenantID as fallback for baseURL (2276529)

Maintenance

  • add commitlint, husky, release-it (159098d)
  • add formatting config + run prettier (fbba151)
  • add husky pre-commit test + lint run (aa709e4)
  • add license (622da6b)
  • add linting tools (9622e7d)
  • add mock data (d03f361)
  • add showSettings in header, default to false, add i18n (cb91eeb)
  • add storybook url in package.json, set node >= 16 (10f5b85)
  • add storybook-static to gitignore (294a9e3)
  • add typecheck script (5228a43)
  • add typecheck script in husky pre-commit (9754349)
  • cleanup (8d0cd0b)
  • cleanup moved css from widget to change mode (92be8eb)
  • fix export history button align (97afcc6)
  • fix icons story imports (d3d7bf4)
  • fix lint issues (243c50d)
  • fix lint issues (4a28e22)
  • fix lint issues (2215492)
  • fix text area expand button styles (49df632)
  • fix windows issue on end of line (f1b99b0)
  • i18n: add i18n + translations files (6790724)
  • i18n: add translations for blocked memori badge (50d6af9)
  • i18n: add translations for send on enter menu + fix width (4917b1f)
  • i18n: add translations for share button + fix width (39af177)
  • i18n: add translations to auth, add tests (cc16d64)
  • mock position drawer for now (27fd297)
  • prepare for release (99c839c)
  • prepare for release (a553186)
  • remove tsup, go without bundler (eb2e5b8)
  • set pkg non-version (abd5e9e)
  • storybook compatibility with react 17 (4ed785b)
  • switch to tsup (54d1436)
  • update gitignore (7305a24)
  • update lockfile (eed8d8b)
  • update tsconfig (f008b7d)
  • upgrade api client lib (8f11101)
  • upgrade cognitive-services-speech-sdk-js (e1f9ed5)