@servicetitan/titan-chatbot-ui-anvil2 3.1.1 → 3.1.3

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.
Files changed (61) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist/components/chatbot/__tests-cy__/chatbot-help-center.test.js +1 -1
  3. package/dist/components/chatbot/__tests-cy__/chatbot-help-center.test.js.map +1 -1
  4. package/dist/components/chatbot/__tests-cy__/chatbot-live.test.js +1 -1
  5. package/dist/components/chatbot/__tests-cy__/chatbot-live.test.js.map +1 -1
  6. package/dist/components/chatbot/__tests-cy__/chatbot-titan-chatbot.test.js +1 -1
  7. package/dist/components/chatbot/__tests-cy__/chatbot-titan-chatbot.test.js.map +1 -1
  8. package/dist/components/chatbot/__tests-cy__/chatbot.test.js +1 -1
  9. package/dist/components/chatbot/__tests-cy__/chatbot.test.js.map +1 -1
  10. package/dist/components/chatbot/dialog/__tests-cy__/chatbot-restart-dialog.test.js +1 -1
  11. package/dist/components/chatbot/dialog/__tests-cy__/chatbot-restart-dialog.test.js.map +1 -1
  12. package/dist/components/chatbot/dialog/__tests-cy__/chatbot-restart-link.test.js +1 -1
  13. package/dist/components/chatbot/dialog/__tests-cy__/chatbot-restart-link.test.js.map +1 -1
  14. package/dist/components/chatbot/feedback/__tests-cy__/chatbot-message-feedback-form-guardrail.test.js +1 -1
  15. package/dist/components/chatbot/feedback/__tests-cy__/chatbot-message-feedback-form-guardrail.test.js.map +1 -1
  16. package/dist/components/chatbot/feedback/__tests-cy__/chatbot-message-feedback-form.test.js +1 -1
  17. package/dist/components/chatbot/feedback/__tests-cy__/chatbot-message-feedback-form.test.js.map +1 -1
  18. package/dist/components/chatbot/feedback/__tests-cy__/chatbot-message-feedback-popover.test.js +1 -1
  19. package/dist/components/chatbot/feedback/__tests-cy__/chatbot-message-feedback-popover.test.js.map +1 -1
  20. package/dist/components/chatbot/feedback/__tests-cy__/chatbot-session-feedback-modal.test.js +1 -1
  21. package/dist/components/chatbot/feedback/__tests-cy__/chatbot-session-feedback-modal.test.js.map +1 -1
  22. package/dist/components/chatbot/feedback/chatbot-message-feedback-form-guardrail.d.ts.map +1 -1
  23. package/dist/components/chatbot/feedback/chatbot-message-feedback-form-guardrail.js +8 -3
  24. package/dist/components/chatbot/feedback/chatbot-message-feedback-form-guardrail.js.map +1 -1
  25. package/dist/components/chatbot/feedback/chatbot-message-feedback-form.d.ts.map +1 -1
  26. package/dist/components/chatbot/feedback/chatbot-message-feedback-form.js +3 -1
  27. package/dist/components/chatbot/feedback/chatbot-message-feedback-form.js.map +1 -1
  28. package/dist/components/chatbot/feedback/chatbot-session-feedback-modal.d.ts.map +1 -1
  29. package/dist/components/chatbot/feedback/chatbot-session-feedback-modal.js +3 -1
  30. package/dist/components/chatbot/feedback/chatbot-session-feedback-modal.js.map +1 -1
  31. package/dist/components/chatbot/filters/__tests-cy__/chatbot-filters.test.js +1 -1
  32. package/dist/components/chatbot/filters/__tests-cy__/chatbot-filters.test.js.map +1 -1
  33. package/dist/components/chatbot/messages/__tests-cy__/chatbot-links.test.js +1 -1
  34. package/dist/components/chatbot/messages/__tests-cy__/chatbot-links.test.js.map +1 -1
  35. package/dist/components/chatbot/messages/__tests-cy__/chatbot-message-answer-readonly.test.js +1 -1
  36. package/dist/components/chatbot/messages/__tests-cy__/chatbot-message-answer-readonly.test.js.map +1 -1
  37. package/dist/components/chatbot/messages/__tests-cy__/chatbot-message-answer.test.js +1 -1
  38. package/dist/components/chatbot/messages/__tests-cy__/chatbot-message-answer.test.js.map +1 -1
  39. package/dist/components/chatbot/messages/__tests-cy__/chatbot-message-typing.test.js +1 -1
  40. package/dist/components/chatbot/messages/__tests-cy__/chatbot-message-typing.test.js.map +1 -1
  41. package/package.json +8 -14
  42. package/src/components/chatbot/__tests-cy__/chatbot-help-center.test.tsx +1 -1
  43. package/src/components/chatbot/__tests-cy__/chatbot-live.test.tsx +1 -1
  44. package/src/components/chatbot/__tests-cy__/chatbot-titan-chatbot.test.tsx +1 -1
  45. package/src/components/chatbot/__tests-cy__/chatbot.test.tsx +1 -1
  46. package/src/components/chatbot/dialog/__tests-cy__/chatbot-restart-dialog.test.tsx +1 -1
  47. package/src/components/chatbot/dialog/__tests-cy__/chatbot-restart-link.test.tsx +1 -1
  48. package/src/components/chatbot/feedback/__tests-cy__/chatbot-message-feedback-form-guardrail.test.tsx +1 -1
  49. package/src/components/chatbot/feedback/__tests-cy__/chatbot-message-feedback-form.test.tsx +1 -1
  50. package/src/components/chatbot/feedback/__tests-cy__/chatbot-message-feedback-popover.test.tsx +1 -1
  51. package/src/components/chatbot/feedback/__tests-cy__/chatbot-session-feedback-modal.test.tsx +1 -1
  52. package/src/components/chatbot/feedback/chatbot-message-feedback-form-guardrail.tsx +20 -4
  53. package/src/components/chatbot/feedback/chatbot-message-feedback-form.tsx +6 -4
  54. package/src/components/chatbot/feedback/chatbot-session-feedback-modal.tsx +6 -2
  55. package/src/components/chatbot/filters/__tests-cy__/chatbot-filters.test.tsx +1 -1
  56. package/src/components/chatbot/messages/__tests-cy__/chatbot-links.test.tsx +1 -1
  57. package/src/components/chatbot/messages/__tests-cy__/chatbot-message-answer-readonly.test.tsx +1 -1
  58. package/src/components/chatbot/messages/__tests-cy__/chatbot-message-answer.test.tsx +1 -1
  59. package/src/components/chatbot/messages/__tests-cy__/chatbot-message-typing.test.tsx +1 -1
  60. package/tsconfig.json +1 -1
  61. package/tsconfig.tsbuildinfo +1 -1
package/CHANGELOG.md CHANGED
@@ -1,3 +1,27 @@
1
+ # v3.1.3 (Fri Aug 22 2025)
2
+
3
+ #### 🐛 Bug Fix
4
+
5
+ - SPA-7126: Removed non-compatible with Anvil2 dependencies [#45](https://github.com/servicetitan/titan-chatbot-client/pull/45) ([@AlexYarmolchuk](https://github.com/AlexYarmolchuk))
6
+
7
+ #### Authors: 1
8
+
9
+ - Alexandr Yarmolchuk ([@AlexYarmolchuk](https://github.com/AlexYarmolchuk))
10
+
11
+ ---
12
+
13
+ # v3.1.2 (Fri Aug 15 2025)
14
+
15
+ #### 🐛 Bug Fix
16
+
17
+ - SPA-7016: Removed local shared tests from public cypress package [#43](https://github.com/servicetitan/titan-chatbot-client/pull/43) ([@AlexYarmolchuk](https://github.com/AlexYarmolchuk))
18
+
19
+ #### Authors: 1
20
+
21
+ - Alexandr Yarmolchuk ([@AlexYarmolchuk](https://github.com/AlexYarmolchuk))
22
+
23
+ ---
24
+
1
25
  # v3.1.1 (Thu Aug 14 2025)
2
26
 
3
27
  #### 🐛 Bug Fix
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { AnvilProvider } from '@servicetitan/anvil2';
3
- import { runChatbotHelpCenterSharedTests } from '@servicetitan/titan-chatbot-ui-cypress';
3
+ import { runChatbotHelpCenterSharedTests } from '@servicetitan/cypress-shared';
4
4
  import { Chatbot } from '../chatbot';
5
5
  describe('[Chatbot with Help Center API]', () => {
6
6
  runChatbotHelpCenterSharedTests(Chatbot, component => (_jsx(AnvilProvider, { children: component })));
@@ -1 +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"}
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,8BAA8B,CAAC;AAC/E,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"}
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { AnvilProvider } from '@servicetitan/anvil2';
3
- import { runChatbotLiveSharedTests } from '@servicetitan/titan-chatbot-ui-cypress';
3
+ import { runChatbotLiveSharedTests } from '@servicetitan/cypress-shared';
4
4
  import { Chatbot } from '../chatbot';
5
5
  describe('[Chatbot]', () => {
6
6
  runChatbotLiveSharedTests(Chatbot, component => _jsx(AnvilProvider, { children: component }));
@@ -1 +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"}
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,8BAA8B,CAAC;AACzE,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"}
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { AnvilProvider } from '@servicetitan/anvil2';
3
- import { runChatbotTitanChatbotSharedTests } from '@servicetitan/titan-chatbot-ui-cypress';
3
+ import { runChatbotTitanChatbotSharedTests } from '@servicetitan/cypress-shared';
4
4
  import { Chatbot } from '../chatbot';
5
5
  describe('[Chatbot with Titan Chat API]', () => {
6
6
  runChatbotTitanChatbotSharedTests(Chatbot, component => (_jsx(AnvilProvider, { children: component })));
@@ -1 +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"}
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,8BAA8B,CAAC;AACjF,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"}
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { AnvilProvider } from '@servicetitan/anvil2';
3
- import { runChatbotSharedTests } from '@servicetitan/titan-chatbot-ui-cypress';
3
+ import { runChatbotSharedTests } from '@servicetitan/cypress-shared';
4
4
  import { Chatbot } from '../chatbot';
5
5
  describe('[Chatbot]', () => {
6
6
  runChatbotSharedTests(Chatbot, component => _jsx(AnvilProvider, { children: component }));
@@ -1 +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"}
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,8BAA8B,CAAC;AACrE,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"}
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { AnvilProvider } from '@servicetitan/anvil2';
3
- import { runChatbotRestartDialogSharedTests } from '@servicetitan/titan-chatbot-ui-cypress';
3
+ import { runChatbotRestartDialogSharedTests } from '@servicetitan/cypress-shared';
4
4
  import { ChatbotRestartDialog } from '../chatbot-restart-dialog';
5
5
  describe('[ChatbotRestartDialog]', () => {
6
6
  runChatbotRestartDialogSharedTests(ChatbotRestartDialog, component => (_jsx(AnvilProvider, { children: component })));
@@ -1 +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"}
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,8BAA8B,CAAC;AAClF,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"}
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { AnvilProvider } from '@servicetitan/anvil2';
3
- import { runChatbotRestartLinkSharedTests } from '@servicetitan/titan-chatbot-ui-cypress';
3
+ import { runChatbotRestartLinkSharedTests } from '@servicetitan/cypress-shared';
4
4
  import { ChatbotRestartLink } from '../chatbot-restart-link';
5
5
  describe('[ChatbotRestartLink]', () => {
6
6
  runChatbotRestartLinkSharedTests(ChatbotRestartLink, component => (_jsx(AnvilProvider, { children: component })));
@@ -1 +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"}
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,8BAA8B,CAAC;AAChF,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"}
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { AnvilProvider } from '@servicetitan/anvil2';
3
- import { runChatbotMessageFeedbackFormGuardrailSharedTests } from '@servicetitan/titan-chatbot-ui-cypress';
3
+ import { runChatbotMessageFeedbackFormGuardrailSharedTests } from '@servicetitan/cypress-shared';
4
4
  import { ChatbotMessageFeedbackFormGuardrail } from '../chatbot-message-feedback-form-guardrail';
5
5
  describe('[ChatbotMessageFeedbackFormGuardrail]', () => {
6
6
  runChatbotMessageFeedbackFormGuardrailSharedTests(ChatbotMessageFeedbackFormGuardrail, component => _jsx(AnvilProvider, { children: component }));
@@ -1 +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"}
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,8BAA8B,CAAC;AACjG,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"}
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { AnvilProvider } from '@servicetitan/anvil2';
3
- import { runChatbotMessageFeedbackFormSharedTests } from '@servicetitan/titan-chatbot-ui-cypress';
3
+ import { runChatbotMessageFeedbackFormSharedTests } from '@servicetitan/cypress-shared';
4
4
  import { ChatbotMessageFeedbackForm } from '../chatbot-message-feedback-form';
5
5
  describe('[ChatbotMessageFeedbackForm]', () => {
6
6
  runChatbotMessageFeedbackFormSharedTests(ChatbotMessageFeedbackForm, component => (_jsx(AnvilProvider, { children: component })));
@@ -1 +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"}
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,8BAA8B,CAAC;AACxF,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"}
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { AnvilProvider } from '@servicetitan/anvil2';
3
- import { runChatbotMessageFeedbackPopoverSharedTests } from '@servicetitan/titan-chatbot-ui-cypress';
3
+ import { runChatbotMessageFeedbackPopoverSharedTests } from '@servicetitan/cypress-shared';
4
4
  import { ChatbotMessageFeedbackPopover } from '../chatbot-message-feedback-popover';
5
5
  describe('[ChatbotMessageFeedbackPopover]', () => {
6
6
  runChatbotMessageFeedbackPopoverSharedTests(ChatbotMessageFeedbackPopover, component => (_jsx(AnvilProvider, { children: component })));
@@ -1 +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"}
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,8BAA8B,CAAC;AAC3F,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"}
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { AnvilProvider } from '@servicetitan/anvil2';
3
- import { runChatbotSessionFeedbackModalSharedTests } from '@servicetitan/titan-chatbot-ui-cypress';
3
+ import { runChatbotSessionFeedbackModalSharedTests } from '@servicetitan/cypress-shared';
4
4
  import { ChatbotSessionFeedbackModal } from '../chatbot-session-feedback-modal';
5
5
  describe('[ChatbotSessionFeedbackModal]', () => {
6
6
  runChatbotSessionFeedbackModalSharedTests(ChatbotSessionFeedbackModal, component => (_jsx(AnvilProvider, { children: component })));
@@ -1 +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"}
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,8BAA8B,CAAC;AACzF,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"}
@@ -1 +1 @@
1
- {"version":3,"file":"chatbot-message-feedback-form-guardrail.d.ts","sourceRoot":"","sources":["../../../../src/components/chatbot/feedback/chatbot-message-feedback-form-guardrail.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAe,EAAE,EAAE,MAAM,OAAO,CAAC;AAGxC,eAAO,MAAM,mCAAmC,EAAE,EA8BhD,CAAC"}
1
+ {"version":3,"file":"chatbot-message-feedback-form-guardrail.d.ts","sourceRoot":"","sources":["../../../../src/components/chatbot/feedback/chatbot-message-feedback-form-guardrail.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAe,EAAE,EAAE,MAAM,OAAO,CAAC;AAGxC,eAAO,MAAM,mCAAmC,EAAE,EA+ChD,CAAC"}
@@ -1,6 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { Flex, TextField, Textarea } from '@servicetitan/anvil2';
3
- import { FormStateErrorBanner } from '@servicetitan/form';
2
+ import { Alert, Flex, TextField, Textarea } from '@servicetitan/anvil2';
4
3
  import { useDependencies } from '@servicetitan/react-ioc';
5
4
  import { MessageFeedbackGuardrailStore } from '@servicetitan/titan-chatbot-api';
6
5
  import classNames from 'classnames';
@@ -8,9 +7,15 @@ import { observer } from 'mobx-react';
8
7
  import * as Styles from './chatbot-message-feedback-form.module.less';
9
8
  export const ChatbotMessageFeedbackFormGuardrail = observer(() => {
10
9
  const [store] = useDependencies(MessageFeedbackGuardrailStore);
10
+ const errors = store.getFormErrors();
11
+ const status = errors.length === 0 ? 'success' : 'danger';
11
12
  const onLinkUrlChange = (event) => {
12
13
  store.formState.$.linkUrl.onChange(event.target.value);
13
14
  };
14
- return (_jsxs(Flex, { direction: "column", gap: "4", children: [store.formState.error && _jsx(FormStateErrorBanner, { form: store.formState }), _jsxs("form", { "data-cy": "titan-chatbot-message-feedback-form", children: [_jsx(TextField, { label: "Link to correct article", className: classNames(Styles.formItem), error: store.formState.$.linkUrl.error, value: store.formState.$.linkUrl.value, onChange: onLinkUrlChange, "data-cy": "titan-chatbot-message-feedback-form-link-url" }), _jsx(Textarea, { label: "Notes", className: classNames(Styles.formItem, Styles.textArea), value: store.formState.$.comment.value, onChange: store.formState.$.comment.onChangeHandler, onBlur: store.formState.$.comment.enableAutoValidationAndValidate, "data-cy": "titan-chatbot-message-feedback-form-other-comment" })] })] }));
15
+ return (_jsxs(Flex, { direction: "column", gap: "4", children: [store.formState.error && (_jsx(Alert, { status: status, title: "Form Incomplete", "data-cy": "titan-chatbot-message-feedback-form-error", children: _jsx("ul", { children: errors.map((e, index) => (
16
+ // eslint-disable-next-line react/no-array-index-key
17
+ _jsx("li", { children: e }, index))) }) })), _jsxs("form", { "data-cy": "titan-chatbot-message-feedback-form", children: [_jsx(TextField, { label: "Link to correct article", className: classNames(Styles.formItem), error: store.formState.$.linkUrl.error, value: store.formState.$.linkUrl.value, onChange: onLinkUrlChange, "data-cy": "titan-chatbot-message-feedback-form-link-url" }), _jsx(Textarea, { label: "Notes", className: classNames(Styles.formItem, Styles.textArea), value: store.formState.$.comment.value, onChange: (e) => {
18
+ store.formState.$.comment.onChange(e.currentTarget.value);
19
+ }, onBlur: store.formState.$.comment.enableAutoValidationAndValidate, "data-cy": "titan-chatbot-message-feedback-form-other-comment" })] })] }));
15
20
  });
16
21
  //# sourceMappingURL=chatbot-message-feedback-form-guardrail.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"chatbot-message-feedback-form-guardrail.js","sourceRoot":"","sources":["../../../../src/components/chatbot/feedback/chatbot-message-feedback-form-guardrail.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AACjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAChF,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,OAAO,KAAK,MAAM,MAAM,6CAA6C,CAAC;AAEtE,MAAM,CAAC,MAAM,mCAAmC,GAAO,QAAQ,CAAC,GAAG,EAAE;IACjE,MAAM,CAAC,KAAK,CAAC,GAAG,eAAe,CAAC,6BAA6B,CAAC,CAAC;IAE/D,MAAM,eAAe,GAAG,CAAC,KAAoC,EAAE,EAAE;QAC7D,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAC3D,CAAC,CAAC;IAEF,OAAO,CACH,MAAC,IAAI,IAAC,SAAS,EAAC,QAAQ,EAAC,GAAG,EAAC,GAAG,aAC3B,KAAK,CAAC,SAAS,CAAC,KAAK,IAAI,KAAC,oBAAoB,IAAC,IAAI,EAAE,KAAK,CAAC,SAAS,GAAI,EACzE,2BAAc,qCAAqC,aAC/C,KAAC,SAAS,IACN,KAAK,EAAC,yBAAyB,EAC/B,SAAS,EAAE,UAAU,CAAC,MAAM,CAAC,QAAQ,CAAC,EACtC,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,EACtC,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,EACtC,QAAQ,EAAE,eAAe,aACjB,8CAA8C,GACxD,EACF,KAAC,QAAQ,IACL,KAAK,EAAC,OAAO,EACb,SAAS,EAAE,UAAU,CAAC,MAAM,CAAC,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,EACvD,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,EACtC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,eAAe,EACnD,MAAM,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,+BAA+B,aACzD,mDAAmD,GAC7D,IACC,IACJ,CACV,CAAC;AACN,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"chatbot-message-feedback-form-guardrail.js","sourceRoot":"","sources":["../../../../src/components/chatbot/feedback/chatbot-message-feedback-form-guardrail.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AACxE,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAChF,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,OAAO,KAAK,MAAM,MAAM,6CAA6C,CAAC;AAEtE,MAAM,CAAC,MAAM,mCAAmC,GAAO,QAAQ,CAAC,GAAG,EAAE;IACjE,MAAM,CAAC,K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CAAC,CAAC,OAAO,CAAC,KAAK,EACtC,QAAQ,EAAE,CAAC,CAAmC,EAAE,EAAE;4BAC9C,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;wBAC9D,CAAC,EACD,MAAM,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,+BAA+B,aACzD,mDAAmD,GAC7D,IACC,IACJ,CACV,CAAC;AACN,CAAC,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"chatbot-message-feedback-form.d.ts","sourceRoot":"","sources":["../../../../src/components/chatbot/feedback/chatbot-message-feedback-form.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAG3B,eAAO,MAAM,0BAA0B,EAAE,EAkEvC,CAAC"}
1
+ {"version":3,"file":"chatbot-message-feedback-form.d.ts","sourceRoot":"","sources":["../../../../src/components/chatbot/feedback/chatbot-message-feedback-form.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAe,EAAE,EAAE,MAAM,OAAO,CAAC;AAGxC,eAAO,MAAM,0BAA0B,EAAE,EAoEvC,CAAC"}
@@ -13,6 +13,8 @@ export const ChatbotMessageFeedbackForm = observer(() => {
13
13
  fieldState.onChange(!state.checked);
14
14
  };
15
15
  };
16
- return (_jsx("form", { "data-cy": "titan-chatbot-message-feedback-form", children: _jsxs(Flex, { direction: "column", children: [_jsx(Checkbox, { label: "Answer is unrelated to my question", className: Styles.formItem, checked: store.formState.$.unrelated.value, onChange: onCheckboxChange('unrelated'), "data-cy": "titan-chatbot-message-feedback-form-unrelated" }), _jsx(Checkbox, { label: "Answer is unclear, not sure what it means", className: Styles.formItem, checked: store.formState.$.unclear.value, onChange: onCheckboxChange('unclear'), "data-cy": "titan-chatbot-message-feedback-form-unclear" }), _jsx(Checkbox, { label: "Answer doesn\u2019t fully address the question", className: Styles.formItem, checked: store.formState.$.notFull.value, onChange: onCheckboxChange('notFull'), "data-cy": "titan-chatbot-message-feedback-form-not-full" }), _jsx(Checkbox, { label: "Answer is incorrect or doesn\u2019t work", className: Styles.formItem, checked: store.formState.$.incorrect.value, onChange: onCheckboxChange('incorrect'), "data-cy": "titan-chatbot-message-feedback-form-incorrect" }), _jsx(Checkbox, { label: "Other", className: Styles.formItem, checked: store.formState.$.other.value, onChange: onCheckboxChange('other'), "data-cy": "titan-chatbot-message-feedback-form-other" }), store.isTextAreaVisible && (_jsxs("div", { className: "m-inline-start-8", children: [_jsx(Textarea, { className: classNames(Styles.formItem, Styles.textArea), error: store.formState.$.otherComment.error, value: store.formState.$.otherComment.value, onChange: store.formState.$.otherComment.onChangeHandler, onBlur: store.formState.$.otherComment.enableAutoValidationAndValidate, "data-cy": "titan-chatbot-message-feedback-form-other-comment" }), _jsx(Text, { size: "small", subdued: true, className: "m-block-end-2", children: "Tell us more about what can be improved." })] }))] }) }));
16
+ return (_jsx("form", { "data-cy": "titan-chatbot-message-feedback-form", children: _jsxs(Flex, { direction: "column", children: [_jsx(Checkbox, { label: "Answer is unrelated to my question", className: Styles.formItem, checked: store.formState.$.unrelated.value, onChange: onCheckboxChange('unrelated'), "data-cy": "titan-chatbot-message-feedback-form-unrelated" }), _jsx(Checkbox, { label: "Answer is unclear, not sure what it means", className: Styles.formItem, checked: store.formState.$.unclear.value, onChange: onCheckboxChange('unclear'), "data-cy": "titan-chatbot-message-feedback-form-unclear" }), _jsx(Checkbox, { label: "Answer doesn\u2019t fully address the question", className: Styles.formItem, checked: store.formState.$.notFull.value, onChange: onCheckboxChange('notFull'), "data-cy": "titan-chatbot-message-feedback-form-not-full" }), _jsx(Checkbox, { label: "Answer is incorrect or doesn\u2019t work", className: Styles.formItem, checked: store.formState.$.incorrect.value, onChange: onCheckboxChange('incorrect'), "data-cy": "titan-chatbot-message-feedback-form-incorrect" }), _jsx(Checkbox, { label: "Other", className: Styles.formItem, checked: store.formState.$.other.value, onChange: onCheckboxChange('other'), "data-cy": "titan-chatbot-message-feedback-form-other" }), store.isTextAreaVisible && (_jsxs("div", { className: "m-inline-start-8", children: [_jsx(Textarea, { className: classNames(Styles.formItem, Styles.textArea), error: store.formState.$.otherComment.error, value: store.formState.$.otherComment.value, onChange: (e) => {
17
+ store.formState.$.otherComment.onChange(e.currentTarget.value);
18
+ }, onBlur: store.formState.$.otherComment.enableAutoValidationAndValidate, "data-cy": "titan-chatbot-message-feedback-form-other-comment" }), _jsx(Text, { size: "small", subdued: true, className: "m-block-end-2", children: "Tell us more about what can be improved." })] }))] }) }));
17
19
  });
18
20
  //# sourceMappingURL=chatbot-message-feedback-form.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"chatbot-message-feedback-form.js","sourceRoot":"","sources":["../../../../src/components/chatbot/feedback/chatbot-message-feedback-form.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEtE,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AACvE,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,OAAO,KAAK,MAAM,MAAM,6CAA6C,CAAC;AAEtE,MAAM,CAAC,MAAM,0BAA0B,GAAO,QAAQ,CAAC,GAAG,EAAE;IACxD,MAAM,CAAC,KAAK,CAAC,GAAG,eAAe,CAAC,oBAAoB,CAAC,CAAC;IAEtD,MAAM,gBAAgB,GAAG,CAAC,QAAsD,EAAE,EAAE;QAChF,OAAO,CAAC,CAAM,EAAE,KAAU,EAAE,EAAE;YAC1B,MAAM,UAAU,GAAG,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAuB,CAAC;YACrE,UAAU,CAAC,QAAQ,CAAC,CAAC,KAAK,CAAC,OA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ACrD,EACD,KAAK,CAAC,iBAAiB,IAAI,CACxB,eAAK,SAAS,EAAC,kBAAkB,aAC7B,KAAC,QAAQ,IACL,SAAS,EAAE,UAAU,CAAC,MAAM,CAAC,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,EACvD,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,YAAY,CAAC,KAAK,EAC3C,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,YAAY,CAAC,KAAK,EAC3C,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,YAAY,CAAC,eAAe,EACxD,MAAM,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,YAAY,CAAC,+BAA+B,aAC9D,mDAAmD,GAC7D,EACF,KAAC,IAAI,IAAC,IAAI,EAAC,OAAO,EAAC,OAAO,QAAC,SAAS,EAAC,eAAe,yDAE7C,IACL,CACT,IACE,GACJ,CACV,CAAC;AACN,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"chatbot-message-feedback-form.js","sourceRoot":"","sources":["../../../../src/components/chatbot/feedback/chatbot-message-feedback-form.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AACvE,OAAO,UAAU,MAAM,YAAY,CAAC;AAEpC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,OAAO,KAAK,MAAM,MAAM,6CAA6C,CAAC;AAEtE,MAAM,CAAC,MAAM,0BAA0B,GAAO,QAAQ,CAAC,GAAG,EAAE;IACxD,MAAM,CAAC,KAAK,CAAC,GAAG,eAAe,CAAC,oBAAoB,CAAC,CAAC;IAEtD,MAAM,gBAAgB,GAAG,CAAC,QAAs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,IACL,KAAK,EAAC,OAAO,EACb,SAAS,EAAE,MAAM,CAAC,QAAQ,EAC1B,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,EACtC,QAAQ,EAAE,gBAAgB,CAAC,OAAO,CAAC,aAC3B,2CAA2C,GACrD,EACD,KAAK,CAAC,iBAAiB,IAAI,CACxB,eAAK,SAAS,EAAC,kBAAkB,aAC7B,KAAC,QAAQ,IACL,SAAS,EAAE,UAAU,CAAC,MAAM,CAAC,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,EACvD,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,YAAY,CAAC,KAAK,EAC3C,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,YAAY,CAAC,KAAK,EAC3C,QAAQ,EAAE,CAAC,CAAmC,EAAE,EAAE;gCAC9C,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;4BACnE,CAAC,EACD,MAAM,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,YAAY,CAAC,+BAA+B,aAC9D,mDAAmD,GAC7D,EACF,KAAC,IAAI,IAAC,IAAI,EAAC,OAAO,EAAC,OAAO,QAAC,SAAS,EAAC,eAAe,yDAE7C,IACL,CACT,IACE,GACJ,CACV,CAAC;AACN,CAAC,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"chatbot-session-feedback-modal.d.ts","sourceRoot":"","sources":["../../../../src/components/chatbot/feedback/chatbot-session-feedback-modal.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,EAAE,EAAe,MAAM,OAAO,CAAC;AAExC,eAAO,MAAM,2BAA2B,EAAE,EAAE,CAAC;IAAE,OAAO,EAAE,MAAM,IAAI,CAAA;CAAE,CAsFnE,CAAC"}
1
+ {"version":3,"file":"chatbot-session-feedback-modal.d.ts","sourceRoot":"","sources":["../../../../src/components/chatbot/feedback/chatbot-session-feedback-modal.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAe,EAAE,EAAe,MAAM,OAAO,CAAC;AAErD,eAAO,MAAM,2BAA2B,EAAE,EAAE,CAAC;IAAE,OAAO,EAAE,MAAM,IAAI,CAAA;CAAE,CA0FnE,CAAC"}
@@ -20,6 +20,8 @@ export const ChatbotSessionFeedbackModal = provide({
20
20
  const handleThumbs = useCallback((isThumbsUp) => {
21
21
  chatbotFeedbackStore.formState.$.thumbs.onChange(isThumbsUp ? 1 : -1);
22
22
  }, [chatbotFeedbackStore]);
23
- return (_jsxs(Dialog, { onClose: handleClose, open: true, title: "Give Feedback on Titan", "data-cy": "titan-chatbot-session-feedback-modal", children: [_jsx(Dialog.Content, { children: _jsxs(Flex, { direction: "column", gap: "2", className: "m-block-start-6", children: [_jsx(Text, { children: "Was Titan able to help solve your problem?" }), _jsxs(Flex, { direction: "row", gap: "4", alignItems: "center", children: [_jsx(ButtonToggle, { size: "small", "aria-label": "Thumbs Up", title: "Thumbs Up", icon: IconThumbUp, checked: chatbotFeedbackStore.isThumbsUp, onClick: () => handleThumbs(true), "data-cy": "titan-chatbot-session-feedback-thumbs-up" }), _jsx(ButtonToggle, { size: "small", "aria-label": "Thumbs Down", title: "Thumbs Down", icon: IconThumbDown, checked: chatbotFeedbackStore.isThumbsDown, onClick: () => handleThumbs(false), "data-cy": "titan-chatbot-session-feedback-thumbs-down" })] }), _jsx(Textarea, { className: "m-block-start-4", label: "Tell us more", rows: 3, value: chatbotFeedbackStore.formState.$.comment.value, onChange: chatbotFeedbackStore.formState.$.comment.onChangeHandler, "data-cy": "titan-chatbot-session-feedback-comment" })] }) }), _jsx(Dialog.Footer, { children: _jsxs(Flex, { direction: "row", justifyContent: "flex-end", gap: "3", children: [_jsx(Button, { onClick: handleClose, "data-cy": "titan-chatbot-session-feedback-cancel", children: "Cancel" }), _jsx(Button, { onClick: handleSubmit, appearance: "primary", disabled: !chatbotFeedbackStore.isValid, "data-cy": "titan-chatbot-session-feedback-submit", children: "Submit Feedback" })] }) })] }));
23
+ return (_jsxs(Dialog, { onClose: handleClose, open: true, title: "Give Feedback on Titan", "data-cy": "titan-chatbot-session-feedback-modal", children: [_jsx(Dialog.Content, { children: _jsxs(Flex, { direction: "column", gap: "2", className: "m-block-start-6", children: [_jsx(Text, { children: "Was Titan able to help solve your problem?" }), _jsxs(Flex, { direction: "row", gap: "4", alignItems: "center", children: [_jsx(ButtonToggle, { size: "small", "aria-label": "Thumbs Up", title: "Thumbs Up", icon: IconThumbUp, checked: chatbotFeedbackStore.isThumbsUp, onClick: () => handleThumbs(true), "data-cy": "titan-chatbot-session-feedback-thumbs-up" }), _jsx(ButtonToggle, { size: "small", "aria-label": "Thumbs Down", title: "Thumbs Down", icon: IconThumbDown, checked: chatbotFeedbackStore.isThumbsDown, onClick: () => handleThumbs(false), "data-cy": "titan-chatbot-session-feedback-thumbs-down" })] }), _jsx(Textarea, { className: "m-block-start-4", label: "Tell us more", rows: 3, value: chatbotFeedbackStore.formState.$.comment.value, onChange: (e) => {
24
+ chatbotFeedbackStore.formState.$.comment.onChange(e.currentTarget.value);
25
+ }, "data-cy": "titan-chatbot-session-feedback-comment" })] }) }), _jsx(Dialog.Footer, { children: _jsxs(Flex, { direction: "row", justifyContent: "flex-end", gap: "3", children: [_jsx(Button, { onClick: handleClose, "data-cy": "titan-chatbot-session-feedback-cancel", children: "Cancel" }), _jsx(Button, { onClick: handleSubmit, appearance: "primary", disabled: !chatbotFeedbackStore.isValid, "data-cy": "titan-chatbot-session-feedback-submit", children: "Submit Feedback" })] }) })] }));
24
26
  }));
25
27
  //# sourceMappingURL=chatbot-session-feedback-modal.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"chatbot-session-feedback-modal.js","sourceRoot":"","sources":["../../../../src/components/chatbot/feedback/chatbot-session-feedback-modal.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,YAAY,EAA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,uBAG1C,EACT,KAAC,MAAM,IACH,OAAO,EAAE,YAAY,EACrB,UAAU,EAAC,SAAS,EACpB,QAAQ,EAAE,CAAC,oBAAoB,CAAC,OAAO,aAC/B,uCAAuC,gCAG1C,IACN,GACK,IACX,CACZ,CAAC;AACN,CAAC,CAAC,CACL,CAAC"}
1
+ {"version":3,"file":"chatbot-session-feedback-modal.js","sourceRoot":"","sources":["../../../../src/components/chatbot/feedback/chatbot-session-feedback-modal.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAC1F,OAAO,aAAa,MAAM,iEAAiE,CAAC;AAC5F,OAAO,WAAW,MAAM,+DAA+D,CAAC;AACxF,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AAC/F,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAmB,WAAW,EAAE,MAAM,OAAO,CAAC;AAErD,MAAM,CAAC,MAAM,2BAA2B,GAAgC,OAAO,CAAC;IAC5E,UAAU,EAAE,CAAC,oBAAoB,CAAC;CACrC,CAAC,CACE,QAAQ,CAAC,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE;IACrB,MAAM,CAAC,oBAAoB,EAAE,cAAc,CAAC,GAAG,eAAe,CAC1D,oBAAoB,EACpB,sBAAsB,CACzB,CAAC;IAEF,MAAM,WAAW,GAAG,WAAW,CAAC,GAAG,EAAE;QACjC,OAAO,EAAE,CAAC;IACd,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;IAEd,MAAM,YAAY,GAAG,WAAW,CAAC,GAAG,EAAE;QAClC,cAAc,CAAC,mBAAmB,CAAC,oBAAoB,CAAC,QAAQ,CAAC,CAAC;QAClE,OAAO,E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KAAK,EAAE,oBAAoB,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,EACrD,QAAQ,EAAE,CAAC,CAAmC,EAAE,EAAE;gCAC9C,oBAAoB,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,QAAQ,CAC7C,CAAC,CAAC,aAAa,CAAC,KAAK,CACxB,CAAC;4BACN,CAAC,aACO,wCAAwC,GAClD,IACC,GACM,EACjB,KAAC,MAAM,CAAC,MAAM,cACV,MAAC,IAAI,IAAC,SAAS,EAAC,KAAK,EAAC,cAAc,EAAC,UAAU,EAAC,GAAG,EAAC,GAAG,aACnD,KAAC,MAAM,IACH,OAAO,EAAE,WAAW,aACZ,uCAAuC,uBAG1C,EACT,KAAC,MAAM,IACH,OAAO,EAAE,YAAY,EACrB,UAAU,EAAC,SAAS,EACpB,QAAQ,EAAE,CAAC,oBAAoB,CAAC,OAAO,aAC/B,uCAAuC,gCAG1C,IACN,GACK,IACX,CACZ,CAAC;AACN,CAAC,CAAC,CACL,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { AnvilProvider } from '@servicetitan/anvil2';
3
- import { runChatbotFiltersSharedTests } from '@servicetitan/titan-chatbot-ui-cypress';
3
+ import { runChatbotFiltersSharedTests } from '@servicetitan/cypress-shared';
4
4
  import { ChatFilters } from '../chatbot-filters';
5
5
  describe('[ChatFilters]', () => {
6
6
  runChatbotFiltersSharedTests(ChatFilters, component => (_jsx(AnvilProvider, { children: component })));
@@ -1 +1 @@
1
- {"version":3,"file":"chatbot-filters.test.js","sourceRoot":"","sources":["../../../../../src/components/chatbot/filters/__tests-cy__/chatbot-filters.test.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,4BAA4B,EAAE,MAAM,wCAAwC,CAAC;AACtF,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,QAAQ,CAAC,eAAe,EAAE,GAAG,EAAE;IAC3B,4BAA4B,CAAC,WAAW,EAAE,SAAS,CAAC,EAAE,CAAC,CACnD,KAAC,aAAa,cAAE,SAAS,GAAiB,CAC7C,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"chatbot-filters.test.js","sourceRoot":"","sources":["../../../../../src/components/chatbot/filters/__tests-cy__/chatbot-filters.test.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,4BAA4B,EAAE,MAAM,8BAA8B,CAAC;AAC5E,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,QAAQ,CAAC,eAAe,EAAE,GAAG,EAAE;IAC3B,4BAA4B,CAAC,WAAW,EAAE,SAAS,CAAC,EAAE,CAAC,CACnD,KAAC,aAAa,cAAE,SAAS,GAAiB,CAC7C,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { AnvilProvider } from '@servicetitan/anvil2';
3
- import { runChatbotLinksSharedTests } from '@servicetitan/titan-chatbot-ui-cypress';
3
+ import { runChatbotLinksSharedTests } from '@servicetitan/cypress-shared';
4
4
  import { ChatbotLinks } from '../chatbot-links';
5
5
  describe('[ChatbotLinks]', () => {
6
6
  runChatbotLinksSharedTests(ChatbotLinks, component => (_jsx(AnvilProvider, { children: component })));
@@ -1 +1 @@
1
- {"version":3,"file":"chatbot-links.test.js","sourceRoot":"","sources":["../../../../../src/components/chatbot/messages/__tests-cy__/chatbot-links.test.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,0BAA0B,EAAE,MAAM,wCAAwC,CAAC;AACpF,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEhD,QAAQ,CAAC,gBAAgB,EAAE,GAAG,EAAE;IAC5B,0BAA0B,CAAC,YAAY,EAAE,SAAS,CAAC,EAAE,CAAC,CAClD,KAAC,aAAa,cAAE,SAAS,GAAiB,CAC7C,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"chatbot-links.test.js","sourceRoot":"","sources":["../../../../../src/components/chatbot/messages/__tests-cy__/chatbot-links.test.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEhD,QAAQ,CAAC,gBAAgB,EAAE,GAAG,EAAE;IAC5B,0BAA0B,CAAC,YAAY,EAAE,SAAS,CAAC,EAAE,CAAC,CAClD,KAAC,aAAa,cAAE,SAAS,GAAiB,CAC7C,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { AnvilProvider } from '@servicetitan/anvil2';
3
- import { runChatbotMessageAnswerReadonlySharedTests } from '@servicetitan/titan-chatbot-ui-cypress';
3
+ import { runChatbotMessageAnswerReadonlySharedTests } from '@servicetitan/cypress-shared';
4
4
  import { ChatbotMessageAnswerReadonly } from '../chatbot-message-answer-readonly';
5
5
  describe('[ChatbotMessageAnswerReadonly]', () => {
6
6
  runChatbotMessageAnswerReadonlySharedTests(ChatbotMessageAnswerReadonly, component => (_jsx(AnvilProvider, { children: component })));
@@ -1 +1 @@
1
- {"version":3,"file":"chatbot-message-answer-readonly.test.js","sourceRoot":"","sources":["../../../../../src/components/chatbot/messages/__tests-cy__/chatbot-message-answer-readonly.test.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,0CAA0C,EAAE,MAAM,wCAAwC,CAAC;AACpG,OAAO,EAAE,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;AAElF,QAAQ,CAAC,gCAAgC,EAAE,GAAG,EAAE;IAC5C,0CAA0C,CAAC,4BAA4B,EAAE,SAAS,CAAC,EAAE,CAAC,CAClF,KAAC,aAAa,cAAE,SAAS,GAAiB,CAC7C,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"chatbot-message-answer-readonly.test.js","sourceRoot":"","sources":["../../../../../src/components/chatbot/messages/__tests-cy__/chatbot-message-answer-readonly.test.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,0CAA0C,EAAE,MAAM,8BAA8B,CAAC;AAC1F,OAAO,EAAE,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;AAElF,QAAQ,CAAC,gCAAgC,EAAE,GAAG,EAAE;IAC5C,0CAA0C,CAAC,4BAA4B,EAAE,SAAS,CAAC,EAAE,CAAC,CAClF,KAAC,aAAa,cAAE,SAAS,GAAiB,CAC7C,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { AnvilProvider } from '@servicetitan/anvil2';
3
- import { runChatbotMessageAnswerSharedTests } from '@servicetitan/titan-chatbot-ui-cypress';
3
+ import { runChatbotMessageAnswerSharedTests } from '@servicetitan/cypress-shared';
4
4
  import { ChatbotMessageAnswer } from '../chatbot-message-answer';
5
5
  describe('[ChatbotMessageAnswer]', () => {
6
6
  runChatbotMessageAnswerSharedTests(ChatbotMessageAnswer, component => (_jsx(AnvilProvider, { children: component })));
@@ -1 +1 @@
1
- {"version":3,"file":"chatbot-message-answer.test.js","sourceRoot":"","sources":["../../../../../src/components/chatbot/messages/__tests-cy__/chatbot-message-answer.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"}
1
+ {"version":3,"file":"chatbot-message-answer.test.js","sourceRoot":"","sources":["../../../../../src/components/chatbot/messages/__tests-cy__/chatbot-message-answer.test.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,kCAAkC,EAAE,MAAM,8BAA8B,CAAC;AAClF,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"}
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { AnvilProvider } from '@servicetitan/anvil2';
3
- import { runChatbotMessageTypingSharedTests } from '@servicetitan/titan-chatbot-ui-cypress';
3
+ import { runChatbotMessageTypingSharedTests } from '@servicetitan/cypress-shared';
4
4
  import { ChatbotMessageTyping } from '../chatbot-message-typing';
5
5
  describe('[ChatbotMessageTyping]', () => {
6
6
  runChatbotMessageTypingSharedTests(ChatbotMessageTyping, component => (_jsx(AnvilProvider, { children: component })));
@@ -1 +1 @@
1
- {"version":3,"file":"chatbot-message-typing.test.js","sourceRoot":"","sources":["../../../../../src/components/chatbot/messages/__tests-cy__/chatbot-message-typing.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"}
1
+ {"version":3,"file":"chatbot-message-typing.test.js","sourceRoot":"","sources":["../../../../../src/components/chatbot/messages/__tests-cy__/chatbot-message-typing.test.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,kCAAkC,EAAE,MAAM,8BAA8B,CAAC;AAClF,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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@servicetitan/titan-chatbot-ui-anvil2",
3
- "version": "3.1.1",
3
+ "version": "3.1.3",
4
4
  "description": "Chatbot experience UI package (Anvil2 version)",
5
5
  "repository": {
6
6
  "type": "git",
@@ -17,32 +17,26 @@
17
17
  "push:local": "yalc push"
18
18
  },
19
19
  "dependencies": {
20
- "@servicetitan/titan-chat-ui-anvil2": "^3.1.1",
21
- "@servicetitan/titan-chat-ui-common": "^3.1.1",
22
- "@servicetitan/titan-chatbot-api": "^3.1.1",
20
+ "@servicetitan/titan-chat-ui-anvil2": "^3.1.3",
21
+ "@servicetitan/titan-chat-ui-common": "^3.1.3",
22
+ "@servicetitan/titan-chatbot-api": "^3.1.3",
23
23
  "nanoid": "^5.1.5"
24
24
  },
25
25
  "peerDependencies": {
26
26
  "@servicetitan/anvil2": ">=1.16.0",
27
- "@servicetitan/confirm": ">=27",
28
- "@servicetitan/culture": ">=27",
29
- "@servicetitan/form": ">=27",
30
- "@servicetitan/form-state": ">=27",
31
27
  "@servicetitan/log-service": ">=27",
32
28
  "@servicetitan/react-ioc": ">=24",
33
- "@servicetitan/skeleton": ">=8",
34
- "@servicetitan/tokens": ">=12.9.0",
35
29
  "axios": ">=0.28.0",
36
30
  "classnames": ">=2.3.0",
37
31
  "formstate": ">=2.0.0",
38
32
  "mobx": ">=6",
39
33
  "mobx-react": ">=9",
40
34
  "mobx-utils": ">=6",
41
- "react": "^18",
42
- "react-dom": "^18"
35
+ "react": ">=18",
36
+ "react-dom": ">=18"
43
37
  },
44
38
  "devDependencies": {
45
- "@servicetitan/titan-chatbot-ui-cypress": "^3.1.1",
39
+ "@servicetitan/cypress-shared": "^3.1.3",
46
40
  "cypress": "^14.3.2"
47
41
  },
48
42
  "keywords": [
@@ -55,5 +49,5 @@
55
49
  "cli": {
56
50
  "webpack": false
57
51
  },
58
- "gitHead": "83c89de5b42d24ce5d7fcd034810bf596a673a08"
52
+ "gitHead": "55f94919492c182aa6272eb38006c1e064ae04ba"
59
53
  }
@@ -1,5 +1,5 @@
1
1
  import { AnvilProvider } from '@servicetitan/anvil2';
2
- import { runChatbotHelpCenterSharedTests } from '@servicetitan/titan-chatbot-ui-cypress';
2
+ import { runChatbotHelpCenterSharedTests } from '@servicetitan/cypress-shared';
3
3
  import { Chatbot } from '../chatbot';
4
4
 
5
5
  describe('[Chatbot with Help Center API]', () => {
@@ -1,5 +1,5 @@
1
1
  import { AnvilProvider } from '@servicetitan/anvil2';
2
- import { runChatbotLiveSharedTests } from '@servicetitan/titan-chatbot-ui-cypress';
2
+ import { runChatbotLiveSharedTests } from '@servicetitan/cypress-shared';
3
3
  import { Chatbot } from '../chatbot';
4
4
 
5
5
  describe('[Chatbot]', () => {
@@ -1,5 +1,5 @@
1
1
  import { AnvilProvider } from '@servicetitan/anvil2';
2
- import { runChatbotTitanChatbotSharedTests } from '@servicetitan/titan-chatbot-ui-cypress';
2
+ import { runChatbotTitanChatbotSharedTests } from '@servicetitan/cypress-shared';
3
3
  import { Chatbot } from '../chatbot';
4
4
 
5
5
  describe('[Chatbot with Titan Chat API]', () => {
@@ -1,5 +1,5 @@
1
1
  import { AnvilProvider } from '@servicetitan/anvil2';
2
- import { runChatbotSharedTests } from '@servicetitan/titan-chatbot-ui-cypress';
2
+ import { runChatbotSharedTests } from '@servicetitan/cypress-shared';
3
3
  import { Chatbot } from '../chatbot';
4
4
 
5
5
  describe('[Chatbot]', () => {
@@ -1,5 +1,5 @@
1
1
  import { AnvilProvider } from '@servicetitan/anvil2';
2
- import { runChatbotRestartDialogSharedTests } from '@servicetitan/titan-chatbot-ui-cypress';
2
+ import { runChatbotRestartDialogSharedTests } from '@servicetitan/cypress-shared';
3
3
  import { ChatbotRestartDialog } from '../chatbot-restart-dialog';
4
4
 
5
5
  describe('[ChatbotRestartDialog]', () => {
@@ -1,5 +1,5 @@
1
1
  import { AnvilProvider } from '@servicetitan/anvil2';
2
- import { runChatbotRestartLinkSharedTests } from '@servicetitan/titan-chatbot-ui-cypress';
2
+ import { runChatbotRestartLinkSharedTests } from '@servicetitan/cypress-shared';
3
3
  import { ChatbotRestartLink } from '../chatbot-restart-link';
4
4
 
5
5
  describe('[ChatbotRestartLink]', () => {
@@ -1,5 +1,5 @@
1
1
  import { AnvilProvider } from '@servicetitan/anvil2';
2
- import { runChatbotMessageFeedbackFormGuardrailSharedTests } from '@servicetitan/titan-chatbot-ui-cypress';
2
+ import { runChatbotMessageFeedbackFormGuardrailSharedTests } from '@servicetitan/cypress-shared';
3
3
  import { ChatbotMessageFeedbackFormGuardrail } from '../chatbot-message-feedback-form-guardrail';
4
4
 
5
5
  describe('[ChatbotMessageFeedbackFormGuardrail]', () => {
@@ -1,5 +1,5 @@
1
1
  import { AnvilProvider } from '@servicetitan/anvil2';
2
- import { runChatbotMessageFeedbackFormSharedTests } from '@servicetitan/titan-chatbot-ui-cypress';
2
+ import { runChatbotMessageFeedbackFormSharedTests } from '@servicetitan/cypress-shared';
3
3
  import { ChatbotMessageFeedbackForm } from '../chatbot-message-feedback-form';
4
4
 
5
5
  describe('[ChatbotMessageFeedbackForm]', () => {
@@ -1,5 +1,5 @@
1
1
  import { AnvilProvider } from '@servicetitan/anvil2';
2
- import { runChatbotMessageFeedbackPopoverSharedTests } from '@servicetitan/titan-chatbot-ui-cypress';
2
+ import { runChatbotMessageFeedbackPopoverSharedTests } from '@servicetitan/cypress-shared';
3
3
  import { ChatbotMessageFeedbackPopover } from '../chatbot-message-feedback-popover';
4
4
 
5
5
  describe('[ChatbotMessageFeedbackPopover]', () => {
@@ -1,5 +1,5 @@
1
1
  import { AnvilProvider } from '@servicetitan/anvil2';
2
- import { runChatbotSessionFeedbackModalSharedTests } from '@servicetitan/titan-chatbot-ui-cypress';
2
+ import { runChatbotSessionFeedbackModalSharedTests } from '@servicetitan/cypress-shared';
3
3
  import { ChatbotSessionFeedbackModal } from '../chatbot-session-feedback-modal';
4
4
 
5
5
  describe('[ChatbotSessionFeedbackModal]', () => {
@@ -1,5 +1,4 @@
1
- import { Flex, TextField, Textarea } from '@servicetitan/anvil2';
2
- import { FormStateErrorBanner } from '@servicetitan/form';
1
+ import { Alert, Flex, TextField, Textarea } from '@servicetitan/anvil2';
3
2
  import { useDependencies } from '@servicetitan/react-ioc';
4
3
  import { MessageFeedbackGuardrailStore } from '@servicetitan/titan-chatbot-api';
5
4
  import classNames from 'classnames';
@@ -9,6 +8,8 @@ import * as Styles from './chatbot-message-feedback-form.module.less';
9
8
 
10
9
  export const ChatbotMessageFeedbackFormGuardrail: FC = observer(() => {
11
10
  const [store] = useDependencies(MessageFeedbackGuardrailStore);
11
+ const errors = store.getFormErrors();
12
+ const status = errors.length === 0 ? 'success' : 'danger';
12
13
 
13
14
  const onLinkUrlChange = (event: ChangeEvent<HTMLInputElement>) => {
14
15
  store.formState.$.linkUrl.onChange(event.target.value);
@@ -16,7 +17,20 @@ export const ChatbotMessageFeedbackFormGuardrail: FC = observer(() => {
16
17
 
17
18
  return (
18
19
  <Flex direction="column" gap="4">
19
- {store.formState.error && <FormStateErrorBanner form={store.formState} />}
20
+ {store.formState.error && (
21
+ <Alert
22
+ status={status}
23
+ title="Form Incomplete"
24
+ data-cy="titan-chatbot-message-feedback-form-error"
25
+ >
26
+ <ul>
27
+ {errors.map((e, index) => (
28
+ // eslint-disable-next-line react/no-array-index-key
29
+ <li key={index}>{e}</li>
30
+ ))}
31
+ </ul>
32
+ </Alert>
33
+ )}
20
34
  <form data-cy="titan-chatbot-message-feedback-form">
21
35
  <TextField
22
36
  label="Link to correct article"
@@ -30,7 +44,9 @@ export const ChatbotMessageFeedbackFormGuardrail: FC = observer(() => {
30
44
  label="Notes"
31
45
  className={classNames(Styles.formItem, Styles.textArea)}
32
46
  value={store.formState.$.comment.value}
33
- onChange={store.formState.$.comment.onChangeHandler}
47
+ onChange={(e: ChangeEvent<HTMLTextAreaElement>) => {
48
+ store.formState.$.comment.onChange(e.currentTarget.value);
49
+ }}
34
50
  onBlur={store.formState.$.comment.enableAutoValidationAndValidate}
35
51
  data-cy="titan-chatbot-message-feedback-form-other-comment"
36
52
  />