@servicetitan/titan-chatbot-ui-anvil2 3.1.1
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/CHANGELOG.md +166 -0
- package/README.md +15 -0
- package/dist/components/chatbot/__tests-cy__/chatbot-help-center.test.d.ts +2 -0
- package/dist/components/chatbot/__tests-cy__/chatbot-help-center.test.d.ts.map +1 -0
- package/dist/components/chatbot/__tests-cy__/chatbot-help-center.test.js +8 -0
- package/dist/components/chatbot/__tests-cy__/chatbot-help-center.test.js.map +1 -0
- package/dist/components/chatbot/__tests-cy__/chatbot-live.test.d.ts +2 -0
- package/dist/components/chatbot/__tests-cy__/chatbot-live.test.d.ts.map +1 -0
- package/dist/components/chatbot/__tests-cy__/chatbot-live.test.js +8 -0
- package/dist/components/chatbot/__tests-cy__/chatbot-live.test.js.map +1 -0
- package/dist/components/chatbot/__tests-cy__/chatbot-titan-chatbot.test.d.ts +2 -0
- package/dist/components/chatbot/__tests-cy__/chatbot-titan-chatbot.test.d.ts.map +1 -0
- package/dist/components/chatbot/__tests-cy__/chatbot-titan-chatbot.test.js +8 -0
- package/dist/components/chatbot/__tests-cy__/chatbot-titan-chatbot.test.js.map +1 -0
- package/dist/components/chatbot/__tests-cy__/chatbot.test.d.ts +2 -0
- package/dist/components/chatbot/__tests-cy__/chatbot.test.d.ts.map +1 -0
- package/dist/components/chatbot/__tests-cy__/chatbot.test.js +8 -0
- package/dist/components/chatbot/__tests-cy__/chatbot.test.js.map +1 -0
- package/dist/components/chatbot/chatbot-to-chat-provider-adapter.d.ts +6 -0
- package/dist/components/chatbot/chatbot-to-chat-provider-adapter.d.ts.map +1 -0
- package/dist/components/chatbot/chatbot-to-chat-provider-adapter.js +21 -0
- package/dist/components/chatbot/chatbot-to-chat-provider-adapter.js.map +1 -0
- package/dist/components/chatbot/chatbot.d.ts +10 -0
- package/dist/components/chatbot/chatbot.d.ts.map +1 -0
- package/dist/components/chatbot/chatbot.js +69 -0
- package/dist/components/chatbot/chatbot.js.map +1 -0
- package/dist/components/chatbot/chatbot.module.less +4 -0
- package/dist/components/chatbot/dialog/__tests-cy__/chatbot-restart-dialog.test.d.ts +2 -0
- package/dist/components/chatbot/dialog/__tests-cy__/chatbot-restart-dialog.test.d.ts.map +1 -0
- package/dist/components/chatbot/dialog/__tests-cy__/chatbot-restart-dialog.test.js +8 -0
- package/dist/components/chatbot/dialog/__tests-cy__/chatbot-restart-dialog.test.js.map +1 -0
- package/dist/components/chatbot/dialog/__tests-cy__/chatbot-restart-link.test.d.ts +2 -0
- package/dist/components/chatbot/dialog/__tests-cy__/chatbot-restart-link.test.d.ts.map +1 -0
- package/dist/components/chatbot/dialog/__tests-cy__/chatbot-restart-link.test.js +8 -0
- package/dist/components/chatbot/dialog/__tests-cy__/chatbot-restart-link.test.js.map +1 -0
- package/dist/components/chatbot/dialog/chatbot-restart-dialog.d.ts +6 -0
- package/dist/components/chatbot/dialog/chatbot-restart-dialog.d.ts.map +1 -0
- package/dist/components/chatbot/dialog/chatbot-restart-dialog.js +20 -0
- package/dist/components/chatbot/dialog/chatbot-restart-dialog.js.map +1 -0
- package/dist/components/chatbot/dialog/chatbot-restart-link.d.ts +4 -0
- package/dist/components/chatbot/dialog/chatbot-restart-link.d.ts.map +1 -0
- package/dist/components/chatbot/dialog/chatbot-restart-link.js +13 -0
- package/dist/components/chatbot/dialog/chatbot-restart-link.js.map +1 -0
- package/dist/components/chatbot/feedback/__tests-cy__/chatbot-message-feedback-form-guardrail.test.d.ts +2 -0
- package/dist/components/chatbot/feedback/__tests-cy__/chatbot-message-feedback-form-guardrail.test.d.ts.map +1 -0
- package/dist/components/chatbot/feedback/__tests-cy__/chatbot-message-feedback-form-guardrail.test.js +8 -0
- package/dist/components/chatbot/feedback/__tests-cy__/chatbot-message-feedback-form-guardrail.test.js.map +1 -0
- package/dist/components/chatbot/feedback/__tests-cy__/chatbot-message-feedback-form.test.d.ts +2 -0
- package/dist/components/chatbot/feedback/__tests-cy__/chatbot-message-feedback-form.test.d.ts.map +1 -0
- package/dist/components/chatbot/feedback/__tests-cy__/chatbot-message-feedback-form.test.js +8 -0
- package/dist/components/chatbot/feedback/__tests-cy__/chatbot-message-feedback-form.test.js.map +1 -0
- package/dist/components/chatbot/feedback/__tests-cy__/chatbot-message-feedback-popover.test.d.ts +2 -0
- package/dist/components/chatbot/feedback/__tests-cy__/chatbot-message-feedback-popover.test.d.ts.map +1 -0
- package/dist/components/chatbot/feedback/__tests-cy__/chatbot-message-feedback-popover.test.js +8 -0
- package/dist/components/chatbot/feedback/__tests-cy__/chatbot-message-feedback-popover.test.js.map +1 -0
- package/dist/components/chatbot/feedback/__tests-cy__/chatbot-session-feedback-modal.test.d.ts +2 -0
- package/dist/components/chatbot/feedback/__tests-cy__/chatbot-session-feedback-modal.test.d.ts.map +1 -0
- package/dist/components/chatbot/feedback/__tests-cy__/chatbot-session-feedback-modal.test.js +8 -0
- package/dist/components/chatbot/feedback/__tests-cy__/chatbot-session-feedback-modal.test.js.map +1 -0
- package/dist/components/chatbot/feedback/chatbot-message-feedback-form-guardrail.d.ts +3 -0
- package/dist/components/chatbot/feedback/chatbot-message-feedback-form-guardrail.d.ts.map +1 -0
- package/dist/components/chatbot/feedback/chatbot-message-feedback-form-guardrail.js +16 -0
- package/dist/components/chatbot/feedback/chatbot-message-feedback-form-guardrail.js.map +1 -0
- package/dist/components/chatbot/feedback/chatbot-message-feedback-form.d.ts +3 -0
- package/dist/components/chatbot/feedback/chatbot-message-feedback-form.d.ts.map +1 -0
- package/dist/components/chatbot/feedback/chatbot-message-feedback-form.js +18 -0
- package/dist/components/chatbot/feedback/chatbot-message-feedback-form.js.map +1 -0
- package/dist/components/chatbot/feedback/chatbot-message-feedback-form.module.less +15 -0
- package/dist/components/chatbot/feedback/chatbot-message-feedback-popover.d.ts +9 -0
- package/dist/components/chatbot/feedback/chatbot-message-feedback-popover.d.ts.map +1 -0
- package/dist/components/chatbot/feedback/chatbot-message-feedback-popover.js +61 -0
- package/dist/components/chatbot/feedback/chatbot-message-feedback-popover.js.map +1 -0
- package/dist/components/chatbot/feedback/chatbot-message-feedback-popover.module.less +14 -0
- package/dist/components/chatbot/feedback/chatbot-message-feedback.d.ts +9 -0
- package/dist/components/chatbot/feedback/chatbot-message-feedback.d.ts.map +1 -0
- package/dist/components/chatbot/feedback/chatbot-message-feedback.js +17 -0
- package/dist/components/chatbot/feedback/chatbot-message-feedback.js.map +1 -0
- package/dist/components/chatbot/feedback/chatbot-session-feedback-link.d.ts +4 -0
- package/dist/components/chatbot/feedback/chatbot-session-feedback-link.d.ts.map +1 -0
- package/dist/components/chatbot/feedback/chatbot-session-feedback-link.js +15 -0
- package/dist/components/chatbot/feedback/chatbot-session-feedback-link.js.map +1 -0
- package/dist/components/chatbot/feedback/chatbot-session-feedback-modal.d.ts +5 -0
- package/dist/components/chatbot/feedback/chatbot-session-feedback-modal.d.ts.map +1 -0
- package/dist/components/chatbot/feedback/chatbot-session-feedback-modal.js +25 -0
- package/dist/components/chatbot/feedback/chatbot-session-feedback-modal.js.map +1 -0
- package/dist/components/chatbot/filters/__tests-cy__/chatbot-filters.test.d.ts +2 -0
- package/dist/components/chatbot/filters/__tests-cy__/chatbot-filters.test.d.ts.map +1 -0
- package/dist/components/chatbot/filters/__tests-cy__/chatbot-filters.test.js +8 -0
- package/dist/components/chatbot/filters/__tests-cy__/chatbot-filters.test.js.map +1 -0
- package/dist/components/chatbot/filters/chatbot-filter-button.d.ts +7 -0
- package/dist/components/chatbot/filters/chatbot-filter-button.d.ts.map +1 -0
- package/dist/components/chatbot/filters/chatbot-filter-button.js +39 -0
- package/dist/components/chatbot/filters/chatbot-filter-button.js.map +1 -0
- package/dist/components/chatbot/filters/chatbot-filter.d.ts +8 -0
- package/dist/components/chatbot/filters/chatbot-filter.d.ts.map +1 -0
- package/dist/components/chatbot/filters/chatbot-filter.js +71 -0
- package/dist/components/chatbot/filters/chatbot-filter.js.map +1 -0
- package/dist/components/chatbot/filters/chatbot-filter.module.css +43 -0
- package/dist/components/chatbot/filters/chatbot-filters.d.ts +5 -0
- package/dist/components/chatbot/filters/chatbot-filters.d.ts.map +1 -0
- package/dist/components/chatbot/filters/chatbot-filters.js +11 -0
- package/dist/components/chatbot/filters/chatbot-filters.js.map +1 -0
- package/dist/components/chatbot/messages/__tests-cy__/chatbot-links.test.d.ts +2 -0
- package/dist/components/chatbot/messages/__tests-cy__/chatbot-links.test.d.ts.map +1 -0
- package/dist/components/chatbot/messages/__tests-cy__/chatbot-links.test.js +8 -0
- package/dist/components/chatbot/messages/__tests-cy__/chatbot-links.test.js.map +1 -0
- package/dist/components/chatbot/messages/__tests-cy__/chatbot-message-answer-readonly.test.d.ts +2 -0
- package/dist/components/chatbot/messages/__tests-cy__/chatbot-message-answer-readonly.test.d.ts.map +1 -0
- package/dist/components/chatbot/messages/__tests-cy__/chatbot-message-answer-readonly.test.js +8 -0
- package/dist/components/chatbot/messages/__tests-cy__/chatbot-message-answer-readonly.test.js.map +1 -0
- package/dist/components/chatbot/messages/__tests-cy__/chatbot-message-answer.test.d.ts +2 -0
- package/dist/components/chatbot/messages/__tests-cy__/chatbot-message-answer.test.d.ts.map +1 -0
- package/dist/components/chatbot/messages/__tests-cy__/chatbot-message-answer.test.js +8 -0
- package/dist/components/chatbot/messages/__tests-cy__/chatbot-message-answer.test.js.map +1 -0
- package/dist/components/chatbot/messages/__tests-cy__/chatbot-message-typing.test.d.ts +2 -0
- package/dist/components/chatbot/messages/__tests-cy__/chatbot-message-typing.test.d.ts.map +1 -0
- package/dist/components/chatbot/messages/__tests-cy__/chatbot-message-typing.test.js +8 -0
- package/dist/components/chatbot/messages/__tests-cy__/chatbot-message-typing.test.js.map +1 -0
- package/dist/components/chatbot/messages/chatbot-links.d.ts +15 -0
- package/dist/components/chatbot/messages/chatbot-links.d.ts.map +1 -0
- package/dist/components/chatbot/messages/chatbot-links.js +21 -0
- package/dist/components/chatbot/messages/chatbot-links.js.map +1 -0
- package/dist/components/chatbot/messages/chatbot-links.module.less +24 -0
- package/dist/components/chatbot/messages/chatbot-message-agent-footer.d.ts +8 -0
- package/dist/components/chatbot/messages/chatbot-message-agent-footer.d.ts.map +1 -0
- package/dist/components/chatbot/messages/chatbot-message-agent-footer.js +13 -0
- package/dist/components/chatbot/messages/chatbot-message-agent-footer.js.map +1 -0
- package/dist/components/chatbot/messages/chatbot-message-answer-readonly.d.ts +6 -0
- package/dist/components/chatbot/messages/chatbot-message-answer-readonly.d.ts.map +1 -0
- package/dist/components/chatbot/messages/chatbot-message-answer-readonly.js +17 -0
- package/dist/components/chatbot/messages/chatbot-message-answer-readonly.js.map +1 -0
- package/dist/components/chatbot/messages/chatbot-message-answer.d.ts +6 -0
- package/dist/components/chatbot/messages/chatbot-message-answer.d.ts.map +1 -0
- package/dist/components/chatbot/messages/chatbot-message-answer.js +29 -0
- package/dist/components/chatbot/messages/chatbot-message-answer.js.map +1 -0
- package/dist/components/chatbot/messages/chatbot-message-answer.module.less +3 -0
- package/dist/components/chatbot/messages/chatbot-message-timeout.d.ts +6 -0
- package/dist/components/chatbot/messages/chatbot-message-timeout.d.ts.map +1 -0
- package/dist/components/chatbot/messages/chatbot-message-timeout.js +17 -0
- package/dist/components/chatbot/messages/chatbot-message-timeout.js.map +1 -0
- package/dist/components/chatbot/messages/chatbot-message-typing.d.ts +8 -0
- package/dist/components/chatbot/messages/chatbot-message-typing.d.ts.map +1 -0
- package/dist/components/chatbot/messages/chatbot-message-typing.js +27 -0
- package/dist/components/chatbot/messages/chatbot-message-typing.js.map +1 -0
- package/dist/components/chatbot/messages/chatbot-message-welcome.d.ts +3 -0
- package/dist/components/chatbot/messages/chatbot-message-welcome.d.ts.map +1 -0
- package/dist/components/chatbot/messages/chatbot-message-welcome.js +4 -0
- package/dist/components/chatbot/messages/chatbot-message-welcome.js.map +1 -0
- package/dist/components/chatbot/templates/chatbot-message-template-agent-readonly.d.ts +6 -0
- package/dist/components/chatbot/templates/chatbot-message-template-agent-readonly.d.ts.map +1 -0
- package/dist/components/chatbot/templates/chatbot-message-template-agent-readonly.js +12 -0
- package/dist/components/chatbot/templates/chatbot-message-template-agent-readonly.js.map +1 -0
- package/dist/components/chatbot/templates/chatbot-message-template-agent.d.ts +6 -0
- package/dist/components/chatbot/templates/chatbot-message-template-agent.d.ts.map +1 -0
- package/dist/components/chatbot/templates/chatbot-message-template-agent.js +10 -0
- package/dist/components/chatbot/templates/chatbot-message-template-agent.js.map +1 -0
- package/dist/components/chatbot/templates/chatbot-message-template-user-readonly.d.ts +6 -0
- package/dist/components/chatbot/templates/chatbot-message-template-user-readonly.d.ts.map +1 -0
- package/dist/components/chatbot/templates/chatbot-message-template-user-readonly.js +7 -0
- package/dist/components/chatbot/templates/chatbot-message-template-user-readonly.js.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -0
- package/package.json +59 -0
- package/src/components/chatbot/__tests-cy__/chatbot-help-center.test.tsx +9 -0
- package/src/components/chatbot/__tests-cy__/chatbot-live.test.tsx +7 -0
- package/src/components/chatbot/__tests-cy__/chatbot-titan-chatbot.test.tsx +9 -0
- package/src/components/chatbot/__tests-cy__/chatbot.test.tsx +7 -0
- package/src/components/chatbot/chatbot-to-chat-provider-adapter.tsx +36 -0
- package/src/components/chatbot/chatbot.module.less +4 -0
- package/src/components/chatbot/chatbot.module.less.d.ts +3 -0
- package/src/components/chatbot/chatbot.tsx +99 -0
- package/src/components/chatbot/dialog/__tests-cy__/chatbot-restart-dialog.test.tsx +9 -0
- package/src/components/chatbot/dialog/__tests-cy__/chatbot-restart-link.test.tsx +9 -0
- package/src/components/chatbot/dialog/chatbot-restart-dialog.tsx +41 -0
- package/src/components/chatbot/dialog/chatbot-restart-link.tsx +29 -0
- package/src/components/chatbot/feedback/__tests-cy__/chatbot-message-feedback-form-guardrail.test.tsx +10 -0
- package/src/components/chatbot/feedback/__tests-cy__/chatbot-message-feedback-form.test.tsx +9 -0
- package/src/components/chatbot/feedback/__tests-cy__/chatbot-message-feedback-popover.test.tsx +9 -0
- package/src/components/chatbot/feedback/__tests-cy__/chatbot-session-feedback-modal.test.tsx +9 -0
- package/src/components/chatbot/feedback/chatbot-message-feedback-form-guardrail.tsx +40 -0
- package/src/components/chatbot/feedback/chatbot-message-feedback-form.module.less +15 -0
- package/src/components/chatbot/feedback/chatbot-message-feedback-form.module.less.d.ts +4 -0
- package/src/components/chatbot/feedback/chatbot-message-feedback-form.tsx +76 -0
- package/src/components/chatbot/feedback/chatbot-message-feedback-popover.module.less +14 -0
- package/src/components/chatbot/feedback/chatbot-message-feedback-popover.module.less.d.ts +5 -0
- package/src/components/chatbot/feedback/chatbot-message-feedback-popover.tsx +207 -0
- package/src/components/chatbot/feedback/chatbot-message-feedback.tsx +27 -0
- package/src/components/chatbot/feedback/chatbot-session-feedback-link.tsx +27 -0
- package/src/components/chatbot/feedback/chatbot-session-feedback-modal.tsx +95 -0
- package/src/components/chatbot/filters/__tests-cy__/chatbot-filters.test.tsx +9 -0
- package/src/components/chatbot/filters/chatbot-filter-button.tsx +58 -0
- package/src/components/chatbot/filters/chatbot-filter.module.css +43 -0
- package/src/components/chatbot/filters/chatbot-filter.module.css.d.ts +5 -0
- package/src/components/chatbot/filters/chatbot-filter.tsx +166 -0
- package/src/components/chatbot/filters/chatbot-filters.tsx +17 -0
- package/src/components/chatbot/messages/__tests-cy__/chatbot-links.test.tsx +9 -0
- package/src/components/chatbot/messages/__tests-cy__/chatbot-message-answer-readonly.test.tsx +9 -0
- package/src/components/chatbot/messages/__tests-cy__/chatbot-message-answer.test.tsx +9 -0
- package/src/components/chatbot/messages/__tests-cy__/chatbot-message-typing.test.tsx +9 -0
- package/src/components/chatbot/messages/chatbot-links.module.less +24 -0
- package/src/components/chatbot/messages/chatbot-links.module.less.d.ts +5 -0
- package/src/components/chatbot/messages/chatbot-links.tsx +73 -0
- package/src/components/chatbot/messages/chatbot-message-agent-footer.tsx +35 -0
- package/src/components/chatbot/messages/chatbot-message-answer-readonly.tsx +39 -0
- package/src/components/chatbot/messages/chatbot-message-answer.module.less +3 -0
- package/src/components/chatbot/messages/chatbot-message-answer.module.less.d.ts +3 -0
- package/src/components/chatbot/messages/chatbot-message-answer.tsx +55 -0
- package/src/components/chatbot/messages/chatbot-message-timeout.tsx +20 -0
- package/src/components/chatbot/messages/chatbot-message-typing.tsx +43 -0
- package/src/components/chatbot/messages/chatbot-message-welcome.tsx +16 -0
- package/src/components/chatbot/templates/chatbot-message-template-agent-readonly.tsx +25 -0
- package/src/components/chatbot/templates/chatbot-message-template-agent.tsx +25 -0
- package/src/components/chatbot/templates/chatbot-message-template-user-readonly.tsx +16 -0
- package/src/cypress.d.ts +10 -0
- package/src/index.ts +5 -0
- package/tsconfig.json +25 -0
- package/tsconfig.tsbuildinfo +1 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
# v3.1.1 (Thu Aug 14 2025)
|
|
2
|
+
|
|
3
|
+
#### 🐛 Bug Fix
|
|
4
|
+
|
|
5
|
+
- SPA-7016: [Chatbot] Add Anvil2 support for chatbot NPM packages [#41](https://github.com/servicetitan/titan-chatbot-client/pull/41) ([@AlexYarmolchuk](https://github.com/AlexYarmolchuk))
|
|
6
|
+
|
|
7
|
+
#### Authors: 1
|
|
8
|
+
|
|
9
|
+
- Alexandr Yarmolchuk ([@AlexYarmolchuk](https://github.com/AlexYarmolchuk))
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# v3.0.1 (Tue Jul 15 2025)
|
|
14
|
+
|
|
15
|
+
#### 🐛 Bug Fix
|
|
16
|
+
|
|
17
|
+
- SPA-6889: Minor feedback fix. [#34](https://github.com/servicetitan/titan-chatbot-client/pull/34) ([@AlexYarmolchuk](https://github.com/AlexYarmolchuk))
|
|
18
|
+
|
|
19
|
+
#### Authors: 1
|
|
20
|
+
|
|
21
|
+
- Alexandr Yarmolchuk ([@AlexYarmolchuk](https://github.com/AlexYarmolchuk))
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
# v3.0.0 (Tue Jul 15 2025)
|
|
26
|
+
|
|
27
|
+
#### 💥 Breaking Change
|
|
28
|
+
|
|
29
|
+
- SPA-6889: Common client interface for HC Chatbot and Titan Chatbot [#28](https://github.com/servicetitan/titan-chatbot-client/pull/28) ([@AlexYarmolchuk](https://github.com/AlexYarmolchuk))
|
|
30
|
+
|
|
31
|
+
#### Authors: 1
|
|
32
|
+
|
|
33
|
+
- Alexandr Yarmolchuk ([@AlexYarmolchuk](https://github.com/AlexYarmolchuk))
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
# v2.1.2 (Mon Jul 07 2025)
|
|
38
|
+
|
|
39
|
+
#### 🐛 Bug Fix
|
|
40
|
+
|
|
41
|
+
- SPA-6554: Display the "Last Updated" date for Internal Chatbots [#33](https://github.com/servicetitan/titan-chatbot-client/pull/33) ([@AlexYarmolchuk](https://github.com/AlexYarmolchuk))
|
|
42
|
+
|
|
43
|
+
#### Authors: 1
|
|
44
|
+
|
|
45
|
+
- Alexandr Yarmolchuk ([@AlexYarmolchuk](https://github.com/AlexYarmolchuk))
|
|
46
|
+
|
|
47
|
+
---
|
|
48
|
+
|
|
49
|
+
# v2.1.1 (Thu Jul 03 2025)
|
|
50
|
+
|
|
51
|
+
#### 🐛 Bug Fix
|
|
52
|
+
|
|
53
|
+
- SPA-6554: Display the "Last Updated" date for Internal Chatbots [#31](https://github.com/servicetitan/titan-chatbot-client/pull/31) ([@sevakekizyanst](https://github.com/sevakekizyanst))
|
|
54
|
+
|
|
55
|
+
#### Authors: 1
|
|
56
|
+
|
|
57
|
+
- Sevak Ekizyan ([@sevakekizyanst](https://github.com/sevakekizyanst))
|
|
58
|
+
|
|
59
|
+
---
|
|
60
|
+
|
|
61
|
+
# v2.1.0 (Tue Jun 10 2025)
|
|
62
|
+
|
|
63
|
+
#### 🚀 Enhancement
|
|
64
|
+
|
|
65
|
+
- SPA-6766: Extended cypress helpers [#23](https://github.com/servicetitan/titan-chatbot-client/pull/23) ([@AlexYarmolchuk](https://github.com/AlexYarmolchuk))
|
|
66
|
+
|
|
67
|
+
#### Authors: 1
|
|
68
|
+
|
|
69
|
+
- Alexandr Yarmolchuk ([@AlexYarmolchuk](https://github.com/AlexYarmolchuk))
|
|
70
|
+
|
|
71
|
+
---
|
|
72
|
+
|
|
73
|
+
# v2.0.3 (Mon Jun 09 2025)
|
|
74
|
+
|
|
75
|
+
#### 🐛 Bug Fix
|
|
76
|
+
|
|
77
|
+
- SPA-6766: Reorganized packages [#21](https://github.com/servicetitan/titan-chatbot-client/pull/21) ([@AlexYarmolchuk](https://github.com/AlexYarmolchuk))
|
|
78
|
+
|
|
79
|
+
#### Authors: 1
|
|
80
|
+
|
|
81
|
+
- Alexandr Yarmolchuk ([@AlexYarmolchuk](https://github.com/AlexYarmolchuk))
|
|
82
|
+
|
|
83
|
+
---
|
|
84
|
+
|
|
85
|
+
# v2.0.2 (Mon Jun 09 2025)
|
|
86
|
+
|
|
87
|
+
#### 🐛 Bug Fix
|
|
88
|
+
|
|
89
|
+
- SPA-6766: Changed local import [#18](https://github.com/servicetitan/titan-chatbot-client/pull/18) ([@AlexYarmolchuk](https://github.com/AlexYarmolchuk))
|
|
90
|
+
- SPA-6766: [Chat/Chatbot package] Create missing unit and cypress comp… [#17](https://github.com/servicetitan/titan-chatbot-client/pull/17) ([@AlexYarmolchuk](https://github.com/AlexYarmolchuk))
|
|
91
|
+
|
|
92
|
+
#### Authors: 1
|
|
93
|
+
|
|
94
|
+
- Alexandr Yarmolchuk ([@AlexYarmolchuk](https://github.com/AlexYarmolchuk))
|
|
95
|
+
|
|
96
|
+
---
|
|
97
|
+
|
|
98
|
+
# v2.0.1 (Tue Jun 03 2025)
|
|
99
|
+
|
|
100
|
+
#### 🐛 Bug Fix
|
|
101
|
+
|
|
102
|
+
- SPA-6767: [Help Center] Utilize chat/chatbot UI packages in the HC [#14](https://github.com/servicetitan/titan-chatbot-client/pull/14) ([@AlexYarmolchuk](https://github.com/AlexYarmolchuk))
|
|
103
|
+
|
|
104
|
+
#### Authors: 1
|
|
105
|
+
|
|
106
|
+
- Alexandr Yarmolchuk ([@AlexYarmolchuk](https://github.com/AlexYarmolchuk))
|
|
107
|
+
|
|
108
|
+
---
|
|
109
|
+
|
|
110
|
+
# v2.0.0 (Mon Jun 02 2025)
|
|
111
|
+
|
|
112
|
+
#### 💥 Breaking Change
|
|
113
|
+
|
|
114
|
+
- SPA-6767: [Help Center] Utilize chat/chatbot UI packages in the HC [#13](https://github.com/servicetitan/titan-chatbot-client/pull/13) ([@AlexYarmolchuk](https://github.com/AlexYarmolchuk))
|
|
115
|
+
|
|
116
|
+
#### Authors: 1
|
|
117
|
+
|
|
118
|
+
- Alexandr Yarmolchuk ([@AlexYarmolchuk](https://github.com/AlexYarmolchuk))
|
|
119
|
+
|
|
120
|
+
---
|
|
121
|
+
|
|
122
|
+
# v1.1.2 (Wed May 21 2025)
|
|
123
|
+
|
|
124
|
+
#### 🐛 Bug Fix
|
|
125
|
+
|
|
126
|
+
- SPA-5484 [#10](https://github.com/servicetitan/titan-chatbot-client/pull/10) ([@AlexYarmolchuk](https://github.com/AlexYarmolchuk))
|
|
127
|
+
|
|
128
|
+
#### Authors: 1
|
|
129
|
+
|
|
130
|
+
- Alexandr Yarmolchuk ([@AlexYarmolchuk](https://github.com/AlexYarmolchuk))
|
|
131
|
+
|
|
132
|
+
---
|
|
133
|
+
|
|
134
|
+
# v1.1.1 (Tue May 13 2025)
|
|
135
|
+
|
|
136
|
+
#### 🐛 Bug Fix
|
|
137
|
+
|
|
138
|
+
- SPA-5484: Move chatbot stores into the package [#8](https://github.com/servicetitan/titan-chatbot-client/pull/8) ([@AlexYarmolchuk](https://github.com/AlexYarmolchuk))
|
|
139
|
+
|
|
140
|
+
#### Authors: 1
|
|
141
|
+
|
|
142
|
+
- Alexandr Yarmolchuk ([@AlexYarmolchuk](https://github.com/AlexYarmolchuk))
|
|
143
|
+
|
|
144
|
+
---
|
|
145
|
+
|
|
146
|
+
# v1.1.0 (Tue May 13 2025)
|
|
147
|
+
|
|
148
|
+
#### 🚀 Enhancement
|
|
149
|
+
|
|
150
|
+
- SPA-5484: Improved error handling [#7](https://github.com/servicetitan/titan-chatbot-client/pull/7) ([@AlexYarmolchuk](https://github.com/AlexYarmolchuk))
|
|
151
|
+
|
|
152
|
+
#### Authors: 1
|
|
153
|
+
|
|
154
|
+
- Alexandr Yarmolchuk ([@AlexYarmolchuk](https://github.com/AlexYarmolchuk))
|
|
155
|
+
|
|
156
|
+
---
|
|
157
|
+
|
|
158
|
+
# v0.0.0 (Mon May 12 2025)
|
|
159
|
+
|
|
160
|
+
#### ⚠️ Pushed to `master`
|
|
161
|
+
|
|
162
|
+
Initial commit!
|
|
163
|
+
|
|
164
|
+
#### Authors: 1
|
|
165
|
+
|
|
166
|
+
- Alexandr Yarmolchuk ([@AlexYarmolchuk](https://github.com/AlexYarmolchuk))
|
package/README.md
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# ServiceTitan Chatbot Client UI
|
|
2
|
+
|
|
3
|
+
This package contains the React components and hooks for the ServiceTitan Chatbot UI. Also, it contains the API client for the ServiceTitan Chatbot API.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @servicetitan/titan-chatbot-client
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Description
|
|
12
|
+
|
|
13
|
+
This package provides a set of React components and hooks for building chatbot interfaces in ServiceTitan applications. It is designed to be used with the ServiceTitan Chatbot API and provides a consistent look and feel across different chatbot interfaces.
|
|
14
|
+
|
|
15
|
+
The components are based on the ServiceTitan design system and are built to be easily customizable and extensible.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chatbot-help-center.test.d.ts","sourceRoot":"","sources":["../../../../src/components/chatbot/__tests-cy__/chatbot-help-center.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { AnvilProvider } from '@servicetitan/anvil2';
|
|
3
|
+
import { runChatbotHelpCenterSharedTests } from '@servicetitan/titan-chatbot-ui-cypress';
|
|
4
|
+
import { Chatbot } from '../chatbot';
|
|
5
|
+
describe('[Chatbot with Help Center API]', () => {
|
|
6
|
+
runChatbotHelpCenterSharedTests(Chatbot, component => (_jsx(AnvilProvider, { children: component })));
|
|
7
|
+
});
|
|
8
|
+
//# sourceMappingURL=chatbot-help-center.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chatbot-help-center.test.js","sourceRoot":"","sources":["../../../../src/components/chatbot/__tests-cy__/chatbot-help-center.test.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,+BAA+B,EAAE,MAAM,wCAAwC,CAAC;AACzF,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,QAAQ,CAAC,gCAAgC,EAAE,GAAG,EAAE;IAC5C,+BAA+B,CAAC,OAAO,EAAE,SAAS,CAAC,EAAE,CAAC,CAClD,KAAC,aAAa,cAAE,SAAS,GAAiB,CAC7C,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chatbot-live.test.d.ts","sourceRoot":"","sources":["../../../../src/components/chatbot/__tests-cy__/chatbot-live.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { AnvilProvider } from '@servicetitan/anvil2';
|
|
3
|
+
import { runChatbotLiveSharedTests } from '@servicetitan/titan-chatbot-ui-cypress';
|
|
4
|
+
import { Chatbot } from '../chatbot';
|
|
5
|
+
describe('[Chatbot]', () => {
|
|
6
|
+
runChatbotLiveSharedTests(Chatbot, component => _jsx(AnvilProvider, { children: component }));
|
|
7
|
+
});
|
|
8
|
+
//# sourceMappingURL=chatbot-live.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chatbot-live.test.js","sourceRoot":"","sources":["../../../../src/components/chatbot/__tests-cy__/chatbot-live.test.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,yBAAyB,EAAE,MAAM,wCAAwC,CAAC;AACnF,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,QAAQ,CAAC,WAAW,EAAE,GAAG,EAAE;IACvB,yBAAyB,CAAC,OAAO,EAAE,SAAS,CAAC,EAAE,CAAC,KAAC,aAAa,cAAE,SAAS,GAAiB,CAAC,CAAC;AAChG,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chatbot-titan-chatbot.test.d.ts","sourceRoot":"","sources":["../../../../src/components/chatbot/__tests-cy__/chatbot-titan-chatbot.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { AnvilProvider } from '@servicetitan/anvil2';
|
|
3
|
+
import { runChatbotTitanChatbotSharedTests } from '@servicetitan/titan-chatbot-ui-cypress';
|
|
4
|
+
import { Chatbot } from '../chatbot';
|
|
5
|
+
describe('[Chatbot with Titan Chat API]', () => {
|
|
6
|
+
runChatbotTitanChatbotSharedTests(Chatbot, component => (_jsx(AnvilProvider, { children: component })));
|
|
7
|
+
});
|
|
8
|
+
//# sourceMappingURL=chatbot-titan-chatbot.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chatbot-titan-chatbot.test.js","sourceRoot":"","sources":["../../../../src/components/chatbot/__tests-cy__/chatbot-titan-chatbot.test.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,iCAAiC,EAAE,MAAM,wCAAwC,CAAC;AAC3F,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,QAAQ,CAAC,+BAA+B,EAAE,GAAG,EAAE;IAC3C,iCAAiC,CAAC,OAAO,EAAE,SAAS,CAAC,EAAE,CAAC,CACpD,KAAC,aAAa,cAAE,SAAS,GAAiB,CAC7C,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chatbot.test.d.ts","sourceRoot":"","sources":["../../../../src/components/chatbot/__tests-cy__/chatbot.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { AnvilProvider } from '@servicetitan/anvil2';
|
|
3
|
+
import { runChatbotSharedTests } from '@servicetitan/titan-chatbot-ui-cypress';
|
|
4
|
+
import { Chatbot } from '../chatbot';
|
|
5
|
+
describe('[Chatbot]', () => {
|
|
6
|
+
runChatbotSharedTests(Chatbot, component => _jsx(AnvilProvider, { children: component }));
|
|
7
|
+
});
|
|
8
|
+
//# sourceMappingURL=chatbot.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chatbot.test.js","sourceRoot":"","sources":["../../../../src/components/chatbot/__tests-cy__/chatbot.test.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AAC/E,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,QAAQ,CAAC,WAAW,EAAE,GAAG,EAAE;IACvB,qBAAqB,CAAC,OAAO,EAAE,SAAS,CAAC,EAAE,CAAC,KAAC,aAAa,cAAE,SAAS,GAAiB,CAAC,CAAC;AAC5F,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { FC, PropsWithChildren } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Passes the Chatbot UI store and backend store to the Chat UI providers.
|
|
4
|
+
*/
|
|
5
|
+
export declare const ChatbotToChatProviderAdapter: FC<PropsWithChildren>;
|
|
6
|
+
//# sourceMappingURL=chatbot-to-chat-provider-adapter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chatbot-to-chat-provider-adapter.d.ts","sourceRoot":"","sources":["../../../src/components/chatbot/chatbot-to-chat-provider-adapter.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAE9C;;GAEG;AACH,eAAO,MAAM,4BAA4B,EAAE,EAAE,CAAC,iBAAiB,CAqB9D,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Provider, useDependencies } from '@servicetitan/react-ioc';
|
|
3
|
+
import { CHAT_UI_BACKEND_STORE_TOKEN, CHAT_UI_STORE_TOKEN, } from '@servicetitan/titan-chat-ui-common';
|
|
4
|
+
import { CHATBOT_UI_BACKEND_STORE_TOKEN, CHATBOT_UI_STORE_TOKEN, } from '@servicetitan/titan-chatbot-api';
|
|
5
|
+
/**
|
|
6
|
+
* Passes the Chatbot UI store and backend store to the Chat UI providers.
|
|
7
|
+
*/
|
|
8
|
+
export const ChatbotToChatProviderAdapter = ({ children }) => {
|
|
9
|
+
const [chatbotUiStore, chatbotUiBackendStore] = useDependencies(CHATBOT_UI_STORE_TOKEN, CHATBOT_UI_BACKEND_STORE_TOKEN);
|
|
10
|
+
return (_jsx(Provider, { singletons: [
|
|
11
|
+
{
|
|
12
|
+
provide: CHAT_UI_STORE_TOKEN,
|
|
13
|
+
useValue: chatbotUiStore,
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
provide: CHAT_UI_BACKEND_STORE_TOKEN,
|
|
17
|
+
useValue: chatbotUiBackendStore,
|
|
18
|
+
},
|
|
19
|
+
], children: children }));
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=chatbot-to-chat-provider-adapter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chatbot-to-chat-provider-adapter.js","sourceRoot":"","sources":["../../../src/components/chatbot/chatbot-to-chat-provider-adapter.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AACpE,OAAO,EACH,2BAA2B,EAC3B,mBAAmB,GACtB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACH,8BAA8B,EAC9B,sBAAsB,GACzB,MAAM,iCAAiC,CAAC;AAGzC;;GAEG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAA0B,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE;IAChF,MAAM,CAAC,cAAc,EAAE,qBAAqB,CAAC,GAAG,eAAe,CAC3D,sBAAsB,EACtB,8BAA8B,CACjC,CAAC;IACF,OAAO,CACH,KAAC,QAAQ,IACL,UAAU,EAAE;YACR;gBACI,OAAO,EAAE,mBAAmB;gBAC5B,QAAQ,EAAE,cAAc;aAC3B;YACD;gBACI,OAAO,EAAE,2BAA2B;gBACpC,QAAQ,EAAE,qBAAqB;aAClC;SACJ,YAEA,QAAQ,GACF,CACd,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ChatbotCustomizations } from '@servicetitan/titan-chatbot-api';
|
|
2
|
+
import { CSSProperties, FC } from 'react';
|
|
3
|
+
export interface IChatbotProps {
|
|
4
|
+
className?: string;
|
|
5
|
+
style?: CSSProperties;
|
|
6
|
+
customizations?: ChatbotCustomizations;
|
|
7
|
+
onReady?: () => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const Chatbot: FC<IChatbotProps>;
|
|
10
|
+
//# sourceMappingURL=chatbot.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chatbot.d.ts","sourceRoot":"","sources":["../../../src/components/chatbot/chatbot.tsx"],"names":[],"mappings":"AASA,OAAO,EAGH,qBAAqB,EACxB,MAAM,iCAAiC,CAAC;AAEzC,OAAO,EAAE,aAAa,EAAE,EAAE,EAAsB,MAAM,OAAO,CAAC;AAU9D,MAAM,WAAW,aAAa;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,cAAc,CAAC,EAAE,qBAAqB,CAAC;IACvC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB;AAED,eAAO,MAAM,OAAO,EAAE,EAAE,CAAC,aAAa,CAkErC,CAAC"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Flex } from '@servicetitan/anvil2';
|
|
3
|
+
import { useDependencies } from '@servicetitan/react-ioc';
|
|
4
|
+
import { Chat } from '@servicetitan/titan-chat-ui-anvil2';
|
|
5
|
+
import { ChatParticipantIcon, } from '@servicetitan/titan-chat-ui-common';
|
|
6
|
+
import { CHATBOT_UI_BACKEND_STORE_TOKEN, CHATBOT_UI_STORE_TOKEN, } from '@servicetitan/titan-chatbot-api';
|
|
7
|
+
import { observer } from 'mobx-react';
|
|
8
|
+
import { useEffect, useMemo } from 'react';
|
|
9
|
+
import { ChatbotToChatProviderAdapter } from './chatbot-to-chat-provider-adapter';
|
|
10
|
+
import * as Styles from './chatbot.module.less';
|
|
11
|
+
import { ChatFilters } from './filters/chatbot-filters';
|
|
12
|
+
import { ChatbotMessageAnswer } from './messages/chatbot-message-answer';
|
|
13
|
+
import { ChatbotMessageTimeout } from './messages/chatbot-message-timeout';
|
|
14
|
+
import { ChatbotMessageTyping } from './messages/chatbot-message-typing';
|
|
15
|
+
import { ChatbotMessageWelcome } from './messages/chatbot-message-welcome';
|
|
16
|
+
import { ChatbotMessageTemplateAgent } from './templates/chatbot-message-template-agent';
|
|
17
|
+
export const Chatbot = observer(({ className, customizations, onReady, style }) => {
|
|
18
|
+
var _a;
|
|
19
|
+
const [chatUiStore, chatUiBackendStore] = useDependencies(CHATBOT_UI_STORE_TOKEN, CHATBOT_UI_BACKEND_STORE_TOKEN);
|
|
20
|
+
useEffect(() => {
|
|
21
|
+
const init = async () => {
|
|
22
|
+
chatUiBackendStore.subscribe();
|
|
23
|
+
await chatUiStore.run({
|
|
24
|
+
agentName: 'Titan',
|
|
25
|
+
agentIcon: ChatParticipantIcon.Bot,
|
|
26
|
+
});
|
|
27
|
+
onReady === null || onReady === void 0 ? void 0 : onReady();
|
|
28
|
+
};
|
|
29
|
+
init().then(() => { });
|
|
30
|
+
return () => chatUiBackendStore.unsubscribe();
|
|
31
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
32
|
+
}, []);
|
|
33
|
+
const customizationsMerged = useMemo(() => {
|
|
34
|
+
var _a, _b, _c, _d;
|
|
35
|
+
const templateCustomizations = (_a = customizations === null || customizations === void 0 ? void 0 : customizations.messageTemplates) !== null && _a !== void 0 ? _a : {};
|
|
36
|
+
templateCustomizations.agent = (_b = templateCustomizations.agent) !== null && _b !== void 0 ? _b : {
|
|
37
|
+
predicate: message => message.participant.isAgent,
|
|
38
|
+
component: ChatbotMessageTemplateAgent,
|
|
39
|
+
};
|
|
40
|
+
return {
|
|
41
|
+
error: customizations === null || customizations === void 0 ? void 0 : customizations.error,
|
|
42
|
+
filters: customizations === null || customizations === void 0 ? void 0 : customizations.filters,
|
|
43
|
+
feedback: customizations === null || customizations === void 0 ? void 0 : customizations.feedback,
|
|
44
|
+
footerComponent: customizations === null || customizations === void 0 ? void 0 : customizations.footerComponent,
|
|
45
|
+
messageTyping: (_c = customizations === null || customizations === void 0 ? void 0 : customizations.messageTyping) !== null && _c !== void 0 ? _c : {
|
|
46
|
+
component: ChatbotMessageTyping,
|
|
47
|
+
},
|
|
48
|
+
messages: [
|
|
49
|
+
...((_d = customizations === null || customizations === void 0 ? void 0 : customizations.messages) !== null && _d !== void 0 ? _d : []),
|
|
50
|
+
{
|
|
51
|
+
predicate: (message) => message.type === 'welcome',
|
|
52
|
+
component: ChatbotMessageWelcome,
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
predicate: (message) => message.participant.isAgent && message.type === 'message',
|
|
56
|
+
component: ChatbotMessageAnswer,
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
predicate: (message) => message.type === 'timeout',
|
|
60
|
+
component: ChatbotMessageTimeout,
|
|
61
|
+
isSystem: true,
|
|
62
|
+
},
|
|
63
|
+
],
|
|
64
|
+
messageTemplates: templateCustomizations,
|
|
65
|
+
};
|
|
66
|
+
}, [customizations]);
|
|
67
|
+
return (_jsx(ChatbotToChatProviderAdapter, { children: _jsxs(Flex, { direction: "column", className: className, style: style, children: [_jsx(Chat, { className: Styles.chat, customizations: customizationsMerged }), Boolean((_a = customizationsMerged.filters) === null || _a === void 0 ? void 0 : _a.enabled) && (_jsx(ChatFilters, { className: "p-inline-6 p-block-end-4" }))] }) }));
|
|
68
|
+
});
|
|
69
|
+
//# sourceMappingURL=chatbot.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chatbot.js","sourceRoot":"","sources":["../../../src/components/chatbot/chatbot.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,IAAI,EAAE,MAAM,oCAAoC,CAAC;AAC1D,OAAO,EAIH,mBAAmB,GACtB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACH,8BAA8B,EAC9B,sBAAsB,GAEzB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAqB,SAAS,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAC9D,OAAO,EAAE,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;AAClF,OAAO,KAAK,MAAM,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACzE,OAAO,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAC3E,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACzE,OAAO,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAC3E,OAAO,EAAE,2BAA2B,EAAE,MAAM,4CAA4C,CAAC;AASzF,MAAM,CAAC,MAAM,OAAO,GAAsB,QAAQ,CAC9C,CAAC,EAAE,SAAS,EAAE,cAAc,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE;;IAC9C,MAAM,CAAC,WAAW,EAAE,kBAAkB,CAAC,GAAG,eAAe,CACrD,sBAAsB,EACtB,8BAA8B,CACjC,CAAC;IACF,SAAS,CAAC,GAAG,EAAE;QACX,MAAM,IAAI,GAAG,KAAK,IAAI,EAAE;YACpB,kBAAkB,CAAC,SAAS,EAAE,CAAC;YAC/B,MAAM,WAAW,CAAC,GAAG,CAAC;gBAClB,SAAS,EAAE,OAAO;gBAClB,SAAS,EAAE,mBAAmB,CAAC,GAAG;aACrC,CAAC,CAAC;YACH,OAAO,aAAP,OAAO,uBAAP,OAAO,EAAI,CAAC;QAChB,CAAC,CAAC;QACF,IAAI,EAAE,CAAC,IAAI,CAAC,GAAG,EAAE,GAAE,CAAC,CAAC,CAAC;QACtB,OAAO,GAAG,EAAE,CAAC,kBAAkB,CAAC,WAAW,EAAE,CAAC;QAC9C,uDAAuD;IAC3D,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,MAAM,oBAAoB,GAAG,OAAO,CAAwB,GAAG,EAAE;;QAC7D,MAAM,sBAAsB,GAAG,MAAA,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,gBAAgB,mCAAI,EAAE,CAAC;QACtE,sBAAsB,CAAC,KAAK,GAAG,MAAA,sBAAsB,CAAC,KAAK,mCAAI;YAC3D,SAAS,EAAE,OAAO,CAAC,EAAE,CAAC,OAAO,CAAC,WAAW,CAAC,OAAO;YACjD,SAAS,EAAE,2BAA2B;SACzC,CAAC;QACF,OAAO;YACH,KAAK,EAAE,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,KAAK;YAC5B,OAAO,EAAE,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,OAAO;YAChC,QAAQ,EAAE,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,QAAQ;YAClC,eAAe,EAAE,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,eAAe;YAChD,aAAa,EAAE,MAAA,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,aAAa,mCAAI;gBAC5C,SAAS,EAAE,oBAAoB;aAClC;YACD,QAAQ,EAAE;gBACN,GAAG,CAAC,MAAA,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,QAAQ,mCAAI,EAAE,CAAC;gBACnC;oBACI,SAAS,EAAE,CAAC,OAAgC,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,KAAK,SAAS;oBAC3E,SAAS,EAAE,qBAAqB;iBACnC;gBACD;oBACI,SAAS,EAAE,CAAC,OAA6B,EAAE,EAAE,CACzC,OAAO,CAAC,WAAW,CAAC,OAAO,IAAI,OAAO,CAAC,IAAI,KAAK,SAAS;oBAC7D,SAAS,EAAE,oBAAoB;iBAClC;gBACD;oBACI,SAAS,EAAE,CAAC,OAAgC,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,KAAK,SAAS;oBAC3E,SAAS,EAAE,qBAAqB;oBAChC,QAAQ,EAAE,IAAI;iBACjB;aACJ;YACD,gBAAgB,EAAE,sBAAsB;SAC3C,CAAC;IACN,CAAC,EAAE,CAAC,cAAc,CAAC,CAAC,CAAC;IAErB,OAAO,CACH,KAAC,4BAA4B,cACzB,MAAC,IAAI,IAAC,SAAS,EAAC,QAAQ,EAAC,SAAS,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,aACvD,KAAC,IAAI,IAAC,SAAS,EAAE,MAAM,CAAC,IAAI,EAAE,cAAc,EAAE,oBAAoB,GAAI,EACrE,OAAO,CAAC,MAAA,oBAAoB,CAAC,OAAO,0CAAE,OAAO,CAAC,IAAI,CAC/C,KAAC,WAAW,IAAC,SAAS,EAAC,0BAA0B,GAAG,CACvD,IACE,GACoB,CAClC,CAAC;AACN,CAAC,CACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chatbot-restart-dialog.test.d.ts","sourceRoot":"","sources":["../../../../../src/components/chatbot/dialog/__tests-cy__/chatbot-restart-dialog.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { AnvilProvider } from '@servicetitan/anvil2';
|
|
3
|
+
import { runChatbotRestartDialogSharedTests } from '@servicetitan/titan-chatbot-ui-cypress';
|
|
4
|
+
import { ChatbotRestartDialog } from '../chatbot-restart-dialog';
|
|
5
|
+
describe('[ChatbotRestartDialog]', () => {
|
|
6
|
+
runChatbotRestartDialogSharedTests(ChatbotRestartDialog, component => (_jsx(AnvilProvider, { children: component })));
|
|
7
|
+
});
|
|
8
|
+
//# sourceMappingURL=chatbot-restart-dialog.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chatbot-restart-dialog.test.js","sourceRoot":"","sources":["../../../../../src/components/chatbot/dialog/__tests-cy__/chatbot-restart-dialog.test.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,kCAAkC,EAAE,MAAM,wCAAwC,CAAC;AAC5F,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEjE,QAAQ,CAAC,wBAAwB,EAAE,GAAG,EAAE;IACpC,kCAAkC,CAAC,oBAAoB,EAAE,SAAS,CAAC,EAAE,CAAC,CAClE,KAAC,aAAa,cAAE,SAAS,GAAiB,CAC7C,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chatbot-restart-link.test.d.ts","sourceRoot":"","sources":["../../../../../src/components/chatbot/dialog/__tests-cy__/chatbot-restart-link.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { AnvilProvider } from '@servicetitan/anvil2';
|
|
3
|
+
import { runChatbotRestartLinkSharedTests } from '@servicetitan/titan-chatbot-ui-cypress';
|
|
4
|
+
import { ChatbotRestartLink } from '../chatbot-restart-link';
|
|
5
|
+
describe('[ChatbotRestartLink]', () => {
|
|
6
|
+
runChatbotRestartLinkSharedTests(ChatbotRestartLink, component => (_jsx(AnvilProvider, { children: component })));
|
|
7
|
+
});
|
|
8
|
+
//# sourceMappingURL=chatbot-restart-link.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chatbot-restart-link.test.js","sourceRoot":"","sources":["../../../../../src/components/chatbot/dialog/__tests-cy__/chatbot-restart-link.test.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,gCAAgC,EAAE,MAAM,wCAAwC,CAAC;AAC1F,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAE7D,QAAQ,CAAC,sBAAsB,EAAE,GAAG,EAAE;IAClC,gCAAgC,CAAC,kBAAkB,EAAE,SAAS,CAAC,EAAE,CAAC,CAC9D,KAAC,aAAa,cAAE,SAAS,GAAiB,CAC7C,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chatbot-restart-dialog.d.ts","sourceRoot":"","sources":["../../../../src/components/chatbot/dialog/chatbot-restart-dialog.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,EAAE,EAAyB,MAAM,OAAO,CAAC;AAElD,eAAO,MAAM,oBAAoB,EAAE,EAAE,CAAC;IAAE,WAAW,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,IAAI,CAAA;CAAE,CAmCjF,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Button, Dialog, Flex } from '@servicetitan/anvil2';
|
|
3
|
+
import { useDependencies } from '@servicetitan/react-ioc';
|
|
4
|
+
import { CHATBOT_UI_STORE_TOKEN } from '@servicetitan/titan-chatbot-api';
|
|
5
|
+
import { useCallback, useState } from 'react';
|
|
6
|
+
export const ChatbotRestartDialog = ({ confirmText, onClose, }) => {
|
|
7
|
+
const [isRestartDialogOpen, setIsRestartDialogOpen] = useState(true);
|
|
8
|
+
const [chatbotUiStore] = useDependencies(CHATBOT_UI_STORE_TOKEN);
|
|
9
|
+
const handleCloseDialog = useCallback(() => {
|
|
10
|
+
setIsRestartDialogOpen(false);
|
|
11
|
+
onClose();
|
|
12
|
+
}, [onClose]);
|
|
13
|
+
const handleRestart = useCallback(() => {
|
|
14
|
+
setIsRestartDialogOpen(false);
|
|
15
|
+
onClose();
|
|
16
|
+
chatbotUiStore.restart();
|
|
17
|
+
}, [onClose, chatbotUiStore]);
|
|
18
|
+
return (_jsxs(Dialog, { open: isRestartDialogOpen, "data-cy": "titan-chatbot-restart-dialog", children: [_jsx(Dialog.Content, { children: _jsx(Flex, { className: "m-block-start-4", children: confirmText }) }), _jsx(Dialog.Footer, { children: _jsx(Flex, { justifyContent: "flex-end", children: _jsxs(Flex, { gap: "3", children: [_jsx(Button, { onClick: handleCloseDialog, children: "Cancel" }), _jsx(Button, { appearance: "primary", onClick: handleRestart, children: "Restart" })] }) }) })] }));
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=chatbot-restart-dialog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chatbot-restart-dialog.js","sourceRoot":"","sources":["../../../../src/components/chatbot/dialog/chatbot-restart-dialog.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AACzE,OAAO,EAAM,WAAW,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAElD,MAAM,CAAC,MAAM,oBAAoB,GAAqD,CAAC,EACnF,WAAW,EACX,OAAO,GACV,EAAE,EAAE;IACD,MAAM,CAAC,mBAAmB,EAAE,sBAAsB,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IACrE,MAAM,CAAC,cAAc,CAAC,GAAG,eAAe,CAAC,sBAAsB,CAAC,CAAC;IAEjE,MAAM,iBAAiB,GAAG,WAAW,CAAC,GAAG,EAAE;QACvC,sBAAsB,CAAC,KAAK,CAAC,CAAC;QAC9B,OAAO,EAAE,CAAC;IACd,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;IAEd,MAAM,aAAa,GAAG,WAAW,CAAC,GAAG,EAAE;QACnC,sBAAsB,CAAC,KAAK,CAAC,CAAC;QAC9B,OAAO,EAAE,CAAC;QACV,cAAc,CAAC,OAAO,EAAE,CAAC;IAC7B,CAAC,EAAE,CAAC,OAAO,EAAE,cAAc,CAAC,CAAC,CAAC;IAE9B,OAAO,CACH,MAAC,MAAM,IAAC,IAAI,EAAE,mBAAmB,aAAU,8BAA8B,aACrE,KAAC,MAAM,CAAC,OAAO,cACX,KAAC,IAAI,IAAC,SAAS,EAAC,iBAAiB,YAAE,WAAW,GAAQ,GACzC,EACjB,KAAC,MAAM,CAAC,MAAM,cACV,KAAC,IAAI,IAAC,cAAc,EAAC,UAAU,YAC3B,MAAC,IAAI,IAAC,GAAG,EAAC,GAAG,aACT,KAAC,MAAM,IAAC,OAAO,EAAE,iBAAiB,uBAAiB,EACnD,KAAC,MAAM,IAAC,UAAU,EAAC,SAAS,EAAC,OAAO,EAAE,aAAa,wBAE1C,IACN,GACJ,GACK,IACX,CACZ,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chatbot-restart-link.d.ts","sourceRoot":"","sources":["../../../../src/components/chatbot/dialog/chatbot-restart-link.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,EAAE,EAA+C,MAAM,OAAO,CAAC;AAGxE,eAAO,MAAM,kBAAkB,EAAE,EAAE,CAAC,SAAS,CAwB5C,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Link } from '@servicetitan/anvil2';
|
|
3
|
+
import { Fragment, useCallback, useState } from 'react';
|
|
4
|
+
import { ChatbotRestartDialog } from './chatbot-restart-dialog';
|
|
5
|
+
export const ChatbotRestartLink = ({ children, onClick, ...rest }) => {
|
|
6
|
+
const [isRestartDialogOpen, setIsRestartDialogOpen] = useState(false);
|
|
7
|
+
const handleRestartOpen = useCallback((event) => {
|
|
8
|
+
setIsRestartDialogOpen(true);
|
|
9
|
+
onClick === null || onClick === void 0 ? void 0 : onClick(event);
|
|
10
|
+
}, [onClick]);
|
|
11
|
+
return (_jsxs(Fragment, { children: [_jsx(Link, { ...rest, onClick: handleRestartOpen, "data-cy": "titan-chatbot-restart-session", children: children }), isRestartDialogOpen && (_jsx(ChatbotRestartDialog, { confirmText: "Restart Titan session?", onClose: () => setIsRestartDialogOpen(false) }))] }));
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=chatbot-restart-link.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chatbot-restart-link.js","sourceRoot":"","sources":["../../../../src/components/chatbot/dialog/chatbot-restart-link.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAa,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAM,QAAQ,EAAc,WAAW,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxE,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAEhE,MAAM,CAAC,MAAM,kBAAkB,GAAkB,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IAChF,MAAM,CAAC,mBAAmB,EAAE,sBAAsB,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAEtE,MAAM,iBAAiB,GAAG,WAAW,CACjC,CAAC,KAAoC,EAAE,EAAE;QACrC,sBAAsB,CAAC,IAAI,CAAC,CAAC;QAC7B,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAG,KAAK,CAAC,CAAC;IACrB,CAAC,EACD,CAAC,OAAO,CAAC,CACZ,CAAC;IAEF,OAAO,CACH,MAAC,QAAQ,eACL,KAAC,IAAI,OAAK,IAAI,EAAE,OAAO,EAAE,iBAAiB,aAAU,+BAA+B,YAC9E,QAAQ,GACN,EACN,mBAAmB,IAAI,CACpB,KAAC,oBAAoB,IACjB,WAAW,EAAC,wBAAwB,EACpC,OAAO,EAAE,GAAG,EAAE,CAAC,sBAAsB,CAAC,KAAK,CAAC,GAC9C,CACL,IACM,CACd,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chatbot-message-feedback-form-guardrail.test.d.ts","sourceRoot":"","sources":["../../../../../src/components/chatbot/feedback/__tests-cy__/chatbot-message-feedback-form-guardrail.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { AnvilProvider } from '@servicetitan/anvil2';
|
|
3
|
+
import { runChatbotMessageFeedbackFormGuardrailSharedTests } from '@servicetitan/titan-chatbot-ui-cypress';
|
|
4
|
+
import { ChatbotMessageFeedbackFormGuardrail } from '../chatbot-message-feedback-form-guardrail';
|
|
5
|
+
describe('[ChatbotMessageFeedbackFormGuardrail]', () => {
|
|
6
|
+
runChatbotMessageFeedbackFormGuardrailSharedTests(ChatbotMessageFeedbackFormGuardrail, component => _jsx(AnvilProvider, { children: component }));
|
|
7
|
+
});
|
|
8
|
+
//# sourceMappingURL=chatbot-message-feedback-form-guardrail.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chatbot-message-feedback-form-guardrail.test.js","sourceRoot":"","sources":["../../../../../src/components/chatbot/feedback/__tests-cy__/chatbot-message-feedback-form-guardrail.test.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,iDAAiD,EAAE,MAAM,wCAAwC,CAAC;AAC3G,OAAO,EAAE,mCAAmC,EAAE,MAAM,4CAA4C,CAAC;AAEjG,QAAQ,CAAC,uCAAuC,EAAE,GAAG,EAAE;IACnD,iDAAiD,CAC7C,mCAAmC,EACnC,SAAS,CAAC,EAAE,CAAC,KAAC,aAAa,cAAE,SAAS,GAAiB,CAC1D,CAAC;AACN,CAAC,CAAC,CAAC"}
|
package/dist/components/chatbot/feedback/__tests-cy__/chatbot-message-feedback-form.test.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chatbot-message-feedback-form.test.d.ts","sourceRoot":"","sources":["../../../../../src/components/chatbot/feedback/__tests-cy__/chatbot-message-feedback-form.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { AnvilProvider } from '@servicetitan/anvil2';
|
|
3
|
+
import { runChatbotMessageFeedbackFormSharedTests } from '@servicetitan/titan-chatbot-ui-cypress';
|
|
4
|
+
import { ChatbotMessageFeedbackForm } from '../chatbot-message-feedback-form';
|
|
5
|
+
describe('[ChatbotMessageFeedbackForm]', () => {
|
|
6
|
+
runChatbotMessageFeedbackFormSharedTests(ChatbotMessageFeedbackForm, component => (_jsx(AnvilProvider, { children: component })));
|
|
7
|
+
});
|
|
8
|
+
//# sourceMappingURL=chatbot-message-feedback-form.test.js.map
|
package/dist/components/chatbot/feedback/__tests-cy__/chatbot-message-feedback-form.test.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chatbot-message-feedback-form.test.js","sourceRoot":"","sources":["../../../../../src/components/chatbot/feedback/__tests-cy__/chatbot-message-feedback-form.test.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,wCAAwC,EAAE,MAAM,wCAAwC,CAAC;AAClG,OAAO,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAE9E,QAAQ,CAAC,8BAA8B,EAAE,GAAG,EAAE;IAC1C,wCAAwC,CAAC,0BAA0B,EAAE,SAAS,CAAC,EAAE,CAAC,CAC9E,KAAC,aAAa,cAAE,SAAS,GAAiB,CAC7C,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
|
package/dist/components/chatbot/feedback/__tests-cy__/chatbot-message-feedback-popover.test.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chatbot-message-feedback-popover.test.d.ts","sourceRoot":"","sources":["../../../../../src/components/chatbot/feedback/__tests-cy__/chatbot-message-feedback-popover.test.tsx"],"names":[],"mappings":""}
|
package/dist/components/chatbot/feedback/__tests-cy__/chatbot-message-feedback-popover.test.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { AnvilProvider } from '@servicetitan/anvil2';
|
|
3
|
+
import { runChatbotMessageFeedbackPopoverSharedTests } from '@servicetitan/titan-chatbot-ui-cypress';
|
|
4
|
+
import { ChatbotMessageFeedbackPopover } from '../chatbot-message-feedback-popover';
|
|
5
|
+
describe('[ChatbotMessageFeedbackPopover]', () => {
|
|
6
|
+
runChatbotMessageFeedbackPopoverSharedTests(ChatbotMessageFeedbackPopover, component => (_jsx(AnvilProvider, { children: component })));
|
|
7
|
+
});
|
|
8
|
+
//# sourceMappingURL=chatbot-message-feedback-popover.test.js.map
|
package/dist/components/chatbot/feedback/__tests-cy__/chatbot-message-feedback-popover.test.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chatbot-message-feedback-popover.test.js","sourceRoot":"","sources":["../../../../../src/components/chatbot/feedback/__tests-cy__/chatbot-message-feedback-popover.test.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,2CAA2C,EAAE,MAAM,wCAAwC,CAAC;AACrG,OAAO,EAAE,6BAA6B,EAAE,MAAM,qCAAqC,CAAC;AAEpF,QAAQ,CAAC,iCAAiC,EAAE,GAAG,EAAE;IAC7C,2CAA2C,CAAC,6BAA6B,EAAE,SAAS,CAAC,EAAE,CAAC,CACpF,KAAC,aAAa,cAAE,SAAS,GAAiB,CAC7C,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
|
package/dist/components/chatbot/feedback/__tests-cy__/chatbot-session-feedback-modal.test.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chatbot-session-feedback-modal.test.d.ts","sourceRoot":"","sources":["../../../../../src/components/chatbot/feedback/__tests-cy__/chatbot-session-feedback-modal.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { AnvilProvider } from '@servicetitan/anvil2';
|
|
3
|
+
import { runChatbotSessionFeedbackModalSharedTests } from '@servicetitan/titan-chatbot-ui-cypress';
|
|
4
|
+
import { ChatbotSessionFeedbackModal } from '../chatbot-session-feedback-modal';
|
|
5
|
+
describe('[ChatbotSessionFeedbackModal]', () => {
|
|
6
|
+
runChatbotSessionFeedbackModalSharedTests(ChatbotSessionFeedbackModal, component => (_jsx(AnvilProvider, { children: component })));
|
|
7
|
+
});
|
|
8
|
+
//# sourceMappingURL=chatbot-session-feedback-modal.test.js.map
|
package/dist/components/chatbot/feedback/__tests-cy__/chatbot-session-feedback-modal.test.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chatbot-session-feedback-modal.test.js","sourceRoot":"","sources":["../../../../../src/components/chatbot/feedback/__tests-cy__/chatbot-session-feedback-modal.test.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,yCAAyC,EAAE,MAAM,wCAAwC,CAAC;AACnG,OAAO,EAAE,2BAA2B,EAAE,MAAM,mCAAmC,CAAC;AAEhF,QAAQ,CAAC,+BAA+B,EAAE,GAAG,EAAE;IAC3C,yCAAyC,CAAC,2BAA2B,EAAE,SAAS,CAAC,EAAE,CAAC,CAChF,KAAC,aAAa,cAAE,SAAS,GAAiB,CAC7C,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
|