lr-chatbot 0.5.4 → 0.5.6

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.
@@ -1 +1 @@
1
- {"schemaVersion":"1.0.0","readme":"","modules":[{"kind":"javascript-module","path":"/builds/laredoute/digital/apps/uxeng/components/uxeng-gui-front/libs/shared/client/features/chatbot/src/components/Chatbot.ts","declarations":[{"kind":"class","description":"","name":"Chatbot","members":[{"kind":"field","name":"_chatElementRef","type":{"text":"DeepChat | null | undefined"},"privacy":"private","default":"null"},{"kind":"field","name":"apiUrl","type":{"text":"string"},"default":"''","attribute":"apiUrl"},{"kind":"field","name":"opened","type":{"text":"boolean"},"default":"true","attribute":"opened"},{"kind":"field","name":"minimized","type":{"text":"boolean"},"default":"false","attribute":"minimized"},{"kind":"field","name":"sticky","type":{"text":"boolean"},"default":"false","attribute":"sticky"},{"kind":"method","name":"getVersion","static":true},{"kind":"method","name":"setChatTranslations","privacy":"private"},{"kind":"method","name":"setChatStyle","privacy":"private"},{"kind":"method","name":"setChatInitialMessages","privacy":"private"},{"kind":"method","name":"setChatConnection","privacy":"private"},{"kind":"method","name":"handleClose"}],"attributes":[{"name":"apiUrl","type":{"text":"string"},"default":"''","fieldName":"apiUrl"},{"name":"opened","type":{"text":"boolean"},"default":"true","fieldName":"opened"},{"name":"minimized","type":{"text":"boolean"},"default":"false","fieldName":"minimized"},{"name":"sticky","type":{"text":"boolean"},"default":"false","fieldName":"sticky"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"lr-chatbot","customElement":true}],"exports":[{"kind":"js","name":"Chatbot","declaration":{"name":"Chatbot","module":"/builds/laredoute/digital/apps/uxeng/components/uxeng-gui-front/libs/shared/client/features/chatbot/src/components/Chatbot.ts"}},{"kind":"custom-element-definition","name":"lr-chatbot","declaration":{"name":"Chatbot","module":"/builds/laredoute/digital/apps/uxeng/components/uxeng-gui-front/libs/shared/client/features/chatbot/src/components/Chatbot.ts"}}]}]}
1
+ {"schemaVersion":"1.0.0","readme":"","modules":[{"kind":"javascript-module","path":"/builds/laredoute/digital/apps/uxeng/components/uxeng-gui-front/libs/shared/client/features/chatbot/src/components/Chatbot.ts","declarations":[{"kind":"class","description":"","name":"Chatbot","members":[{"kind":"field","name":"_chatElementRef","type":{"text":"DeepChat | null | undefined"},"privacy":"private","default":"null"},{"kind":"field","name":"apiUrl","type":{"text":"string"},"default":"''","attribute":"apiUrl"},{"kind":"field","name":"opened","type":{"text":"boolean"},"default":"true","attribute":"opened"},{"kind":"field","name":"minimized","type":{"text":"boolean"},"default":"false","attribute":"minimized"},{"kind":"field","name":"sticky","type":{"text":"boolean"},"default":"false","attribute":"sticky"},{"kind":"field","name":"language","type":{"text":"AppLanguage"},"default":"'fr-FR'","attribute":"language"},{"kind":"field","name":"country","type":{"text":"AppCountry"},"default":"'fr'","attribute":"country"},{"kind":"method","name":"getVersion","static":true},{"kind":"method","name":"initTranslations","privacy":"private"},{"kind":"method","name":"setChatTranslations","privacy":"private"},{"kind":"method","name":"setChatStyle","privacy":"private"},{"kind":"method","name":"setChatInitialMessages","privacy":"private"},{"kind":"method","name":"setChatConnection","privacy":"private"},{"kind":"method","name":"handleClose"}],"attributes":[{"name":"apiUrl","type":{"text":"string"},"default":"''","fieldName":"apiUrl"},{"name":"opened","type":{"text":"boolean"},"default":"true","fieldName":"opened"},{"name":"minimized","type":{"text":"boolean"},"default":"false","fieldName":"minimized"},{"name":"sticky","type":{"text":"boolean"},"default":"false","fieldName":"sticky"},{"name":"language","type":{"text":"AppLanguage"},"default":"'fr-FR'","fieldName":"language"},{"name":"country","type":{"text":"AppCountry"},"default":"'fr'","fieldName":"country"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"lr-chatbot","customElement":true}],"exports":[{"kind":"js","name":"Chatbot","declaration":{"name":"Chatbot","module":"/builds/laredoute/digital/apps/uxeng/components/uxeng-gui-front/libs/shared/client/features/chatbot/src/components/Chatbot.ts"}},{"kind":"custom-element-definition","name":"lr-chatbot","declaration":{"name":"Chatbot","module":"/builds/laredoute/digital/apps/uxeng/components/uxeng-gui-front/libs/shared/client/features/chatbot/src/components/Chatbot.ts"}}]}]}
@@ -1,4 +1,5 @@
1
1
  import { LitElement } from 'lit';
2
+ import { AppCountry, AppLanguage } from '../../../../../universal/i18n/src/index.ts';
2
3
 
3
4
  export declare class Chatbot extends LitElement {
4
5
  private _chatElementRef?;
@@ -6,10 +7,13 @@ export declare class Chatbot extends LitElement {
6
7
  accessor opened: boolean;
7
8
  accessor minimized: boolean;
8
9
  accessor sticky: boolean;
10
+ accessor language: AppLanguage;
11
+ accessor country: AppCountry;
9
12
  static styles: import('lit').CSSResult;
10
13
  static getVersion(): string;
14
+ protected performUpdate(): Promise<unknown>;
11
15
  firstUpdated(): void;
12
- disconnectedCallback(): void;
16
+ private initTranslations;
13
17
  private setChatTranslations;
14
18
  private setChatStyle;
15
19
  private setChatInitialMessages;
@@ -0,0 +1,7 @@
1
+ import { AppLanguage, FallbacksSchema, BaseFallbacksLoader } from '../../../../../universal/i18n/src/index.ts';
2
+
3
+ import * as fr_FR from '@atlas/shared/universal/i18n/fallbacks/fr/fr-FR/chatbot.json';
4
+ export type ChatbotTranslationsKeys = typeof fr_FR;
5
+ export declare class ChatbotFallbacksLoader extends BaseFallbacksLoader<AppLanguage, FallbacksSchema<ChatbotTranslationsKeys>> {
6
+ getTranslationsMaps(): Record<AppLanguage, () => Promise<FallbacksSchema<ChatbotTranslationsKeys>>>;
7
+ }
package/package.json CHANGED
@@ -1,13 +1,12 @@
1
1
  {
2
2
  "name": "lr-chatbot",
3
- "version": "0.5.4",
3
+ "version": "0.5.6",
4
4
  "main": "./index.cjs",
5
5
  "module": "./index.js",
6
6
  "type": "module",
7
7
  "dependencies": {
8
8
  "deep-chat": "1.4.11",
9
- "lit": "3.1.4",
10
- "lit-i18n": "4.1.0"
9
+ "lit": "3.1.4"
11
10
  },
12
11
  "devDependencies": {
13
12
  "@storybook/web-components-vite": "8.1.11",