6.5.0 • Published 11 hours ago

@memori.ai/memori-webcomponent v6.5.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
11 hours ago

Memori WebComponent

WebComponent to integrate a Memori in a web page or web app.

Platforms:

Uses memori-react under the hood. See demo.

Installation from npm

npm i --save @memori.ai/memori-webcomponent

Embed or usage from CDN (suggested)

<script
  type="module"
  src="https://cdn.jsdelivr.net/npm/@memori.ai/memori-webcomponent/dist/memori-webcomponent.js"
></script>
<link
  rel="stylesheet"
  href="https://cdn.jsdelivr.net/npm/@memori.ai/memori-react/dist/styles.min.css"
/>

Usage

<memori-client
  memoriName="Memori"
  ownerUserName="nunziofiore"
  tenantID="app.memorytwin.com"
  showShare
  apiURL="https://backend.memori.ai"
  baseURL="https://app.memorytwin.com"
  uiLang="it"
/>

For more details on attributes, see memori-react component props.

Special note for height: defaults to 100% and can be set to a fixed value (e.g. 500px). For the best experience, it is recommended to set it to '100vh' (full height of the viewport) or '100svh'.

Initial context

As for memori-react component, it is possible to pass an initial context to the Memori session. With this WebComponent that is slightly different, as the context is not passed as a JSON but as a string in the context attribute as comma-separated KEY:VALUE pairs:

<memori-client ... context="VAR1:VALUE1,VAR2:VALUE2" />

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;
}

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

See also

6.5.0

11 hours ago

6.4.5

3 days ago

6.4.6

3 days ago

6.4.3

7 days ago

6.4.4

6 days ago

6.4.2

10 days ago

6.4.1

10 days ago

6.4.0

10 days ago

6.3.1

17 days ago

6.3.0

22 days ago

6.2.0

24 days ago

6.1.7

1 month ago

6.1.6

1 month ago

6.1.5

1 month ago

6.1.4

1 month ago

6.1.3

2 months ago

6.1.2

2 months ago

6.1.1

2 months ago

6.1.0

2 months ago

6.0.0-rc.3

2 months ago

6.0.0

2 months ago

6.0.0-rc.1

2 months ago

6.0.0-rc.0

2 months ago

6.0.0-rc.2

2 months ago

5.1.0

2 months ago

5.0.2

2 months ago

5.0.1

2 months ago

5.0.0

3 months ago

4.4.1

3 months ago

4.4.0

3 months ago

4.3.1

3 months ago

4.3.0

4 months ago

4.2.0

4 months ago

4.1.1

5 months ago

4.1.0

5 months ago

4.0.1

5 months ago

4.0.0

5 months ago

3.0.2

5 months ago

3.0.1

5 months ago

3.0.0

5 months ago

2.22.0

5 months ago

2.23.0

5 months ago

2.21.0

5 months ago

2.20.3

5 months ago

2.20.2

5 months ago

2.11.0

9 months ago

2.8.1

10 months ago

2.6.3

10 months ago

2.8.0

10 months ago

2.6.2

10 months ago

2.19.2

6 months ago

2.19.0

6 months ago

2.9.2

9 months ago

2.19.1

6 months ago

2.9.1

9 months ago

2.7.3

10 months ago

2.17.0

8 months ago

2.17.1

8 months ago

2.15.0

8 months ago

2.15.1

8 months ago

2.13.0

9 months ago

2.13.1

8 months ago

2.20.0

6 months ago

2.20.1

6 months ago

2.10.1

9 months ago

2.12.0

9 months ago

2.10.2

9 months ago

2.10.0

9 months ago

2.7.0

10 months ago

2.9.0

9 months ago

2.7.2

10 months ago

2.7.1

10 months ago

2.18.9

7 months ago

2.18.7

7 months ago

2.18.8

7 months ago

2.18.5

7 months ago

2.18.6

7 months ago

2.18.3

8 months ago

2.18.4

8 months ago

2.18.1

8 months ago

2.8.3

9 months ago

2.6.5

10 months ago

2.18.2

8 months ago

2.8.2

10 months ago

2.6.4

10 months ago

2.16.1

8 months ago

2.18.0

8 months ago

2.6.6

10 months ago

2.16.0

8 months ago

2.14.0

8 months ago

2.3.0

11 months ago

2.2.1

12 months ago

2.2.0

12 months ago

2.5.0

11 months ago

2.4.1

11 months ago

2.4.0

11 months ago

2.3.1

11 months ago

2.2.2

11 months ago

2.6.1

11 months ago

2.0.11

1 year ago

2.6.0

11 months ago

2.5.1

11 months ago

2.4.2

11 months ago

2.0.9

1 year ago

2.0.10

1 year ago

2.1.0

1 year ago

2.0.3

1 year ago

2.0.2

1 year ago

2.0.5

1 year ago

2.0.4

1 year ago

2.0.7

1 year ago

2.0.6

1 year ago

2.0.8

1 year ago

2.0.1

1 year ago

2.0.0

1 year ago

1.3.0

1 year ago

1.2.1

1 year ago

1.2.0

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago

0.1.6

1 year ago

0.1.5

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago