lr-chatbot 0.10.0 → 0.12.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/chatbot-D3q5WC8J.js +20 -0
- package/chatbot-D3q5WC8J.js.map +1 -0
- package/components/chatbot/Chatbot.js +2118 -2047
- package/components/chatbot/Chatbot.js.map +1 -1
- package/custom-elements.json +1 -1
- package/package.json +1 -1
- package/chatbot-CHIu9ZwR.js +0 -16
- package/chatbot-CHIu9ZwR.js.map +0 -1
package/custom-elements.json
CHANGED
|
@@ -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/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":"false","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":"country","type":{"text":"AppCountry"},"attribute":"country"},{"kind":"field","name":"language","type":{"text":"AppLanguage"},"attribute":"language"},{"kind":"method","name":"getVersion","static":true},{"kind":"method","name":"initChat","return":{"type":{"text":"void"}}},{"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":"close"},{"kind":"method","name":"minimize"},{"kind":"method","name":"open"}],"attributes":[{"name":"apiUrl","type":{"text":"string"},"default":"''","fieldName":"apiUrl"},{"name":"opened","type":{"text":"boolean"},"default":"false","fieldName":"opened"},{"name":"minimized","type":{"text":"boolean"},"default":"false","fieldName":"minimized"},{"name":"sticky","type":{"text":"boolean"},"default":"false","fieldName":"sticky"},{"name":"country","type":{"text":"AppCountry"},"fieldName":"country"},{"name":"language","type":{"text":"AppLanguage"},"fieldName":"language"}],"superclass":{"name":"SuperElement","module":"//builds/laredoute/digital/apps/uxeng/components/uxeng-gui-front/libs/shared/client/features/chatbot/src/components/super/SuperElement"},"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/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/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/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":"false","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":"country","type":{"text":"AppCountry"},"attribute":"country"},{"kind":"field","name":"language","type":{"text":"AppLanguage"},"attribute":"language"},{"kind":"field","name":"overlay","type":{"text":"boolean"},"default":"false","attribute":"overlay"},{"kind":"method","name":"getVersion","static":true},{"kind":"method","name":"getChatHistory","return":{"type":{"text":"Promise<void>"}},"parameters":[{"name":"conversationId","type":{"text":"string | null"}}]},{"kind":"method","name":"initChat","return":{"type":{"text":"void"}}},{"kind":"method","name":"initTranslations","privacy":"private"},{"kind":"method","name":"setChatTranslations","privacy":"private"},{"kind":"method","name":"postUserMessage","parameters":[{"name":"event","type":{"text":"any"}}]},{"kind":"method","name":"setChatStyle","privacy":"private"},{"kind":"method","name":"setChatInitialMessages","privacy":"private"},{"kind":"method","name":"setChatConnection","privacy":"private","parameters":[{"name":"conversationId","optional":true,"type":{"text":"string | null"}}]},{"kind":"method","name":"close"},{"kind":"method","name":"minimize"},{"kind":"method","name":"open"}],"attributes":[{"name":"apiUrl","type":{"text":"string"},"default":"''","fieldName":"apiUrl"},{"name":"opened","type":{"text":"boolean"},"default":"false","fieldName":"opened"},{"name":"minimized","type":{"text":"boolean"},"default":"false","fieldName":"minimized"},{"name":"sticky","type":{"text":"boolean"},"default":"false","fieldName":"sticky"},{"name":"country","type":{"text":"AppCountry"},"fieldName":"country"},{"name":"language","type":{"text":"AppLanguage"},"fieldName":"language"},{"name":"overlay","type":{"text":"boolean"},"default":"false","fieldName":"overlay"}],"superclass":{"name":"SuperElement","module":"//builds/laredoute/digital/apps/uxeng/components/uxeng-gui-front/libs/shared/client/features/chatbot/src/components/super/SuperElement"},"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/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/Chatbot.ts"}}]}]}
|
package/package.json
CHANGED
package/chatbot-CHIu9ZwR.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
const e = "<p>👋 Bienvenue ! Je suis R’, votre conseiller virtuel La Redoute, je suis là pour vous aider ! Je débute, soyez indulgent ;) Sélectionnez une question récurrente/un sujet ou posez-moi votre question.</p> <div class='chatbot-button-container'> <lr-pill variant='suggestion' class='test' label='Whatsapp' ariaLabel='Ouvrir Whatsapp' ><img slot='icon' src={{iconWhatsapp}}></img></lr-pill> <lr-pill variant='suggestion' class='test' ariaLabel='Suivre mon colis' label='Où est mon colis ?'></lr-pill> <lr-pill variant='suggestion' class='test' ariaLabel='Poser une troisième question' label='Question numéro trois'></lr-pill> <lr-pill variant='suggestion' ariaLabel='Accéder à la FAQ' class='test' label='Je veux être redirigé vers la FAQ'></lr-pill> </div>", l = "Entrez votre question", s = "Chatbot La Redoute", t = "Bonjour, afin de vous offrir la meilleure aide possible, nous utilisons l'intelligence artificielle. Ne partagez pas de données personnelles ou sensibles telles que vos données de paiement, pour en savoir plus, consultez <a href='https://www.laredoute.fr/'>notre politique de confidentialité</a>.", i = "<p>Oups, notre Chatbot n’est pas disponible pour le moment. Nous vous conseillons de contacter un conseiller pour plus de renseignements. </p> <div class='chatbot-button-container'> <lr-pill variant='suggestion' class='test' label='Whatsapp'><img slot='icon' src='{{iconWhatsapp}}'></img></lr-pill> <lr-pill variant='suggestion' class='test' label='FAQ'></lr-pill> <lr-pill variant='suggestion' class='test' label='0320557645'></lr-pill> </div>", o = {
|
|
2
|
-
introMessage: e,
|
|
3
|
-
inputPlaceholder: l,
|
|
4
|
-
title: s,
|
|
5
|
-
legalInformation: t,
|
|
6
|
-
errorMessage: i
|
|
7
|
-
};
|
|
8
|
-
export {
|
|
9
|
-
o as default,
|
|
10
|
-
i as errorMessage,
|
|
11
|
-
l as inputPlaceholder,
|
|
12
|
-
e as introMessage,
|
|
13
|
-
t as legalInformation,
|
|
14
|
-
s as title
|
|
15
|
-
};
|
|
16
|
-
//# sourceMappingURL=chatbot-CHIu9ZwR.js.map
|
package/chatbot-CHIu9ZwR.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chatbot-CHIu9ZwR.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
|