@botonic/react 0.41.0 → 0.42.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (122) hide show
  1. package/lib/cjs/components/system-debug-trace/debug-message.js +22 -0
  2. package/lib/cjs/components/system-debug-trace/debug-message.js.map +1 -1
  3. package/lib/cjs/components/system-debug-trace/events/bot-action.d.ts +7 -0
  4. package/lib/cjs/components/system-debug-trace/events/bot-action.js +18 -0
  5. package/lib/cjs/components/system-debug-trace/events/bot-action.js.map +1 -0
  6. package/lib/cjs/components/system-debug-trace/events/conditional-channel.d.ts +7 -0
  7. package/lib/cjs/components/system-debug-trace/events/conditional-channel.js +18 -0
  8. package/lib/cjs/components/system-debug-trace/events/conditional-channel.js.map +1 -0
  9. package/lib/cjs/components/system-debug-trace/events/conditional-country.d.ts +7 -0
  10. package/lib/cjs/components/system-debug-trace/events/conditional-country.js +18 -0
  11. package/lib/cjs/components/system-debug-trace/events/conditional-country.js.map +1 -0
  12. package/lib/cjs/components/system-debug-trace/events/conditional-custom.d.ts +8 -0
  13. package/lib/cjs/components/system-debug-trace/events/conditional-custom.js +18 -0
  14. package/lib/cjs/components/system-debug-trace/events/conditional-custom.js.map +1 -0
  15. package/lib/cjs/components/system-debug-trace/events/conditional-queue-status.d.ts +10 -0
  16. package/lib/cjs/components/system-debug-trace/events/conditional-queue-status.js +20 -0
  17. package/lib/cjs/components/system-debug-trace/events/conditional-queue-status.js.map +1 -0
  18. package/lib/cjs/components/system-debug-trace/events/constants.d.ts +4 -0
  19. package/lib/cjs/components/system-debug-trace/events/constants.js +4 -0
  20. package/lib/cjs/components/system-debug-trace/events/constants.js.map +1 -1
  21. package/lib/cjs/components/system-debug-trace/events/handoff-success.d.ts +2 -0
  22. package/lib/cjs/components/system-debug-trace/events/handoff-success.js +23 -4
  23. package/lib/cjs/components/system-debug-trace/events/handoff-success.js.map +1 -1
  24. package/lib/cjs/components/system-debug-trace/events/index.d.ts +7 -0
  25. package/lib/cjs/components/system-debug-trace/events/index.js +7 -0
  26. package/lib/cjs/components/system-debug-trace/events/index.js.map +1 -1
  27. package/lib/cjs/components/system-debug-trace/events/redirect-flow.d.ts +10 -0
  28. package/lib/cjs/components/system-debug-trace/events/redirect-flow.js +18 -0
  29. package/lib/cjs/components/system-debug-trace/events/redirect-flow.js.map +1 -0
  30. package/lib/cjs/components/system-debug-trace/events/webview-action-triggered.d.ts +8 -0
  31. package/lib/cjs/components/system-debug-trace/events/webview-action-triggered.js +18 -0
  32. package/lib/cjs/components/system-debug-trace/events/webview-action-triggered.js.map +1 -0
  33. package/lib/cjs/components/system-debug-trace/icons/arrow-progress.d.ts +2 -0
  34. package/lib/cjs/components/system-debug-trace/icons/arrow-progress.js +10 -0
  35. package/lib/cjs/components/system-debug-trace/icons/arrow-progress.js.map +1 -0
  36. package/lib/cjs/components/system-debug-trace/icons/code.d.ts +2 -0
  37. package/lib/cjs/components/system-debug-trace/icons/code.js +10 -0
  38. package/lib/cjs/components/system-debug-trace/icons/code.js.map +1 -0
  39. package/lib/cjs/components/system-debug-trace/icons/split.d.ts +2 -0
  40. package/lib/cjs/components/system-debug-trace/icons/split.js +10 -0
  41. package/lib/cjs/components/system-debug-trace/icons/split.js.map +1 -0
  42. package/lib/cjs/components/system-debug-trace/icons/window-restore.d.ts +2 -0
  43. package/lib/cjs/components/system-debug-trace/icons/window-restore.js +10 -0
  44. package/lib/cjs/components/system-debug-trace/icons/window-restore.js.map +1 -0
  45. package/lib/cjs/components/system-debug-trace/styles.js +7 -4
  46. package/lib/cjs/components/system-debug-trace/styles.js.map +1 -1
  47. package/lib/cjs/components/system-debug-trace/types.d.ts +2 -2
  48. package/lib/cjs/index-types.d.ts +8 -0
  49. package/lib/cjs/index-types.js.map +1 -1
  50. package/lib/cjs/webchat/context/index.js +14 -0
  51. package/lib/cjs/webchat/context/index.js.map +1 -1
  52. package/lib/esm/components/system-debug-trace/debug-message.js +24 -2
  53. package/lib/esm/components/system-debug-trace/debug-message.js.map +1 -1
  54. package/lib/esm/components/system-debug-trace/events/bot-action.d.ts +7 -0
  55. package/lib/esm/components/system-debug-trace/events/bot-action.js +14 -0
  56. package/lib/esm/components/system-debug-trace/events/bot-action.js.map +1 -0
  57. package/lib/esm/components/system-debug-trace/events/conditional-channel.d.ts +7 -0
  58. package/lib/esm/components/system-debug-trace/events/conditional-channel.js +14 -0
  59. package/lib/esm/components/system-debug-trace/events/conditional-channel.js.map +1 -0
  60. package/lib/esm/components/system-debug-trace/events/conditional-country.d.ts +7 -0
  61. package/lib/esm/components/system-debug-trace/events/conditional-country.js +14 -0
  62. package/lib/esm/components/system-debug-trace/events/conditional-country.js.map +1 -0
  63. package/lib/esm/components/system-debug-trace/events/conditional-custom.d.ts +8 -0
  64. package/lib/esm/components/system-debug-trace/events/conditional-custom.js +14 -0
  65. package/lib/esm/components/system-debug-trace/events/conditional-custom.js.map +1 -0
  66. package/lib/esm/components/system-debug-trace/events/conditional-queue-status.d.ts +10 -0
  67. package/lib/esm/components/system-debug-trace/events/conditional-queue-status.js +16 -0
  68. package/lib/esm/components/system-debug-trace/events/conditional-queue-status.js.map +1 -0
  69. package/lib/esm/components/system-debug-trace/events/constants.d.ts +4 -0
  70. package/lib/esm/components/system-debug-trace/events/constants.js +4 -0
  71. package/lib/esm/components/system-debug-trace/events/constants.js.map +1 -1
  72. package/lib/esm/components/system-debug-trace/events/handoff-success.d.ts +2 -0
  73. package/lib/esm/components/system-debug-trace/events/handoff-success.js +23 -4
  74. package/lib/esm/components/system-debug-trace/events/handoff-success.js.map +1 -1
  75. package/lib/esm/components/system-debug-trace/events/index.d.ts +7 -0
  76. package/lib/esm/components/system-debug-trace/events/index.js +7 -0
  77. package/lib/esm/components/system-debug-trace/events/index.js.map +1 -1
  78. package/lib/esm/components/system-debug-trace/events/redirect-flow.d.ts +10 -0
  79. package/lib/esm/components/system-debug-trace/events/redirect-flow.js +14 -0
  80. package/lib/esm/components/system-debug-trace/events/redirect-flow.js.map +1 -0
  81. package/lib/esm/components/system-debug-trace/events/webview-action-triggered.d.ts +8 -0
  82. package/lib/esm/components/system-debug-trace/events/webview-action-triggered.js +14 -0
  83. package/lib/esm/components/system-debug-trace/events/webview-action-triggered.js.map +1 -0
  84. package/lib/esm/components/system-debug-trace/icons/arrow-progress.d.ts +2 -0
  85. package/lib/esm/components/system-debug-trace/icons/arrow-progress.js +6 -0
  86. package/lib/esm/components/system-debug-trace/icons/arrow-progress.js.map +1 -0
  87. package/lib/esm/components/system-debug-trace/icons/code.d.ts +2 -0
  88. package/lib/esm/components/system-debug-trace/icons/code.js +6 -0
  89. package/lib/esm/components/system-debug-trace/icons/code.js.map +1 -0
  90. package/lib/esm/components/system-debug-trace/icons/split.d.ts +2 -0
  91. package/lib/esm/components/system-debug-trace/icons/split.js +6 -0
  92. package/lib/esm/components/system-debug-trace/icons/split.js.map +1 -0
  93. package/lib/esm/components/system-debug-trace/icons/window-restore.d.ts +2 -0
  94. package/lib/esm/components/system-debug-trace/icons/window-restore.js +6 -0
  95. package/lib/esm/components/system-debug-trace/icons/window-restore.js.map +1 -0
  96. package/lib/esm/components/system-debug-trace/styles.js +7 -4
  97. package/lib/esm/components/system-debug-trace/styles.js.map +1 -1
  98. package/lib/esm/components/system-debug-trace/types.d.ts +2 -2
  99. package/lib/esm/index-types.d.ts +8 -0
  100. package/lib/esm/index-types.js.map +1 -1
  101. package/lib/esm/webchat/context/index.js +14 -0
  102. package/lib/esm/webchat/context/index.js.map +1 -1
  103. package/package.json +2 -2
  104. package/src/components/system-debug-trace/debug-message.tsx +30 -2
  105. package/src/components/system-debug-trace/events/bot-action.tsx +28 -0
  106. package/src/components/system-debug-trace/events/conditional-channel.tsx +28 -0
  107. package/src/components/system-debug-trace/events/conditional-country.tsx +28 -0
  108. package/src/components/system-debug-trace/events/conditional-custom.tsx +29 -0
  109. package/src/components/system-debug-trace/events/conditional-queue-status.tsx +37 -0
  110. package/src/components/system-debug-trace/events/constants.ts +4 -0
  111. package/src/components/system-debug-trace/events/handoff-success.tsx +45 -8
  112. package/src/components/system-debug-trace/events/index.ts +7 -0
  113. package/src/components/system-debug-trace/events/redirect-flow.tsx +31 -0
  114. package/src/components/system-debug-trace/events/webview-action-triggered.tsx +29 -0
  115. package/src/components/system-debug-trace/icons/arrow-progress.tsx +15 -0
  116. package/src/components/system-debug-trace/icons/code.tsx +15 -0
  117. package/src/components/system-debug-trace/icons/split.tsx +15 -0
  118. package/src/components/system-debug-trace/icons/window-restore.tsx +15 -0
  119. package/src/components/system-debug-trace/styles.ts +7 -4
  120. package/src/components/system-debug-trace/types.ts +14 -0
  121. package/src/index-types.ts +9 -0
  122. package/src/webchat/context/index.tsx +17 -0
@@ -1 +1 @@
1
- {"version":3,"file":"index-types.js","sourceRoot":"","sources":["../../src/index-types.ts"],"names":[],"mappings":";;;AAqJA,IAAY,OAKX;AALD,WAAY,OAAO;IACjB,sBAAW,CAAA;IACX,wBAAa,CAAA;IACb,0BAAe,CAAA;IACf,4BAAiB,CAAA;AACnB,CAAC,EALW,OAAO,GAAP,eAAO,KAAP,eAAO,QAKlB;AAED,IAAY,MAGX;AAHD,WAAY,MAAM;IAChB,0BAAgB,CAAA;IAChB,4BAAkB,CAAA;AACpB,CAAC,EAHW,MAAM,GAAN,cAAM,KAAN,cAAM,QAGjB"}
1
+ {"version":3,"file":"index-types.js","sourceRoot":"","sources":["../../src/index-types.ts"],"names":[],"mappings":";;;AA8JA,IAAY,OAKX;AALD,WAAY,OAAO;IACjB,sBAAW,CAAA;IACX,wBAAa,CAAA;IACb,0BAAe,CAAA;IACf,4BAAiB,CAAA;AACnB,CAAC,EALW,OAAO,GAAP,eAAO,KAAP,eAAO,QAKlB;AAED,IAAY,MAGX;AAHD,WAAY,MAAM;IAChB,0BAAgB,CAAA;IAChB,4BAAkB,CAAA;AACpB,CAAC,EAHW,MAAM,GAAN,cAAM,KAAN,cAAM,QAGjB"}
@@ -73,6 +73,20 @@ exports.WebchatContext = (0, react_1.createContext)({
73
73
  return;
74
74
  },
75
75
  webchatState: {},
76
+ previewUtils: {
77
+ trackPreviewEventOpened: () => {
78
+ return;
79
+ },
80
+ getChunkIdsGroupedBySource: () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
81
+ return [];
82
+ }),
83
+ onClickOpenChunks: () => {
84
+ return;
85
+ },
86
+ getMessageById: () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
87
+ return {};
88
+ }),
89
+ },
76
90
  trackEvent: () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
77
91
  return;
78
92
  }),
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/webchat/context/index.tsx"],"names":[],"mappings":";;;;AAAA,iCAAqC;AAKrC,6CAA0C;AAAjC,yGAAA,UAAU,OAAA;AAEN,QAAA,cAAc,GAAG,IAAA,qBAAa,EAAsB;IAC/D,UAAU,EAAE,GAAG,EAAE;QACf,OAAM;IACR,CAAC;IACD,gBAAgB,EAAE,GAAG,EAAE;QACrB,OAAM;IACR,CAAC;IACD,YAAY,EAAE,GAAS,EAAE;QACvB,OAAM;IACR,CAAC,CAAA;IACD,WAAW,EAAE,GAAG,EAAE;QAChB,OAAM;IACR,CAAC;IACD,WAAW,EAAE,GAAG,EAAE;QAChB,OAAM;IACR,CAAC;IACD,mBAAmB,EAAE,GAAG,EAAE;QACxB,OAAM;IACR,CAAC;IACD,iBAAiB,EAAE,GAAG,EAAE;QACtB,OAAM;IACR,CAAC;IACD,qBAAqB,EAAE,GAAG,EAAE;QAC1B,OAAM;IACR,CAAC;IACD,cAAc,EAAE,GAAS,EAAE;QACzB,OAAM;IACR,CAAC,CAAA;IACD,SAAS,EAAE,GAAS,EAAE;QACpB,OAAM;IACR,CAAC,CAAA;IACD,WAAW,EAAE,GAAS,EAAE;QACtB,OAAM;IACR,CAAC,CAAA;IACD,QAAQ,EAAE,GAAS,EAAE;QACnB,OAAM;IACR,CAAC,CAAA;IACD,oBAAoB,EAAE,GAAG,EAAE;QACzB,OAAM;IACR,CAAC;IACD,aAAa,EAAE,GAAG,EAAE;QAClB,OAAM;IACR,CAAC;IACD,iBAAiB,EAAE,GAAG,EAAE;QACtB,OAAM;IACR,CAAC;IACD,oBAAoB,EAAE,GAAG,EAAE;QACzB,OAAM;IACR,CAAC;IACD,wBAAwB,EAAE,GAAG,EAAE;QAC7B,OAAM;IACR,CAAC;IACD,iBAAiB,EAAE,GAAG,EAAE;QACtB,OAAM;IACR,CAAC;IACD,aAAa,EAAE,GAAG,EAAE;QAClB,OAAM;IACR,CAAC;IACD,aAAa,EAAE,GAAG,EAAE;QAClB,OAAM;IACR,CAAC;IACD,UAAU,EAAE,GAAG,EAAE;QACf,OAAM;IACR,CAAC;IACD,wBAAwB,EAAE,GAAG,EAAE;QAC7B,OAAM;IACR,CAAC;IACD,YAAY,EAAE,EAAkB;IAChC,UAAU,EAAE,GAAS,EAAE;QACrB,OAAM;IACR,CAAC,CAAA;IACD,mBAAmB,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;IACtC,WAAW,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;IAC9B,aAAa,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;IAChC,SAAS,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;IAC5B,yBAAyB,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;IAC5C,UAAU,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;CAC9B,CAAC,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/webchat/context/index.tsx"],"names":[],"mappings":";;;;AAAA,iCAAqC;AAOrC,6CAA0C;AAAjC,yGAAA,UAAU,OAAA;AAEN,QAAA,cAAc,GAAG,IAAA,qBAAa,EAAsB;IAC/D,UAAU,EAAE,GAAG,EAAE;QACf,OAAM;IACR,CAAC;IACD,gBAAgB,EAAE,GAAG,EAAE;QACrB,OAAM;IACR,CAAC;IACD,YAAY,EAAE,GAAS,EAAE;QACvB,OAAM;IACR,C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AAE,GAAG,EAAE;YACtB,OAAM;QACR,CAAC;QACD,cAAc,EAAE,GAAS,EAAE;YACzB,OAAO,EAA2B,CAAA;QACpC,CAAC,CAAA;KACF;IAED,UAAU,EAAE,GAAS,EAAE;QACrB,OAAM;IACR,CAAC,CAAA;IACD,mBAAmB,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;IACtC,WAAW,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;IAC9B,aAAa,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;IAChC,SAAS,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;IAC5B,yBAAyB,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;IAC5C,UAAU,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;CAC9B,CAAC,CAAA"}
@@ -1,7 +1,8 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { EventAction } from '@botonic/core';
3
- import { useRef, useState } from 'react';
4
- import { getAiAgentEventConfig, getFallbackEventConfig, getHandoffSuccessEventConfig, getKeywordEventConfig, getKnowledgeBaseEventConfig, getSmartIntentEventConfig, } from './events';
3
+ import { useContext, useEffect, useRef, useState } from 'react';
4
+ import { WebchatContext } from '../../webchat/context';
5
+ import { getAiAgentEventConfig, getBotActionEventConfig, getConditionalChannelEventConfig, getConditionalCountryEventConfig, getConditionalCustomEventConfig, getConditionalQueueStatusEventConfig, getFallbackEventConfig, getHandoffSuccessEventConfig, getKeywordEventConfig, getKnowledgeBaseEventConfig, getRedirectFlowEventConfig, getSmartIntentEventConfig, getWebviewActionTriggeredEventConfig, } from './events';
5
6
  import { useLastLabelPosition } from './hooks/use-last-label-position';
6
7
  import { CaretDownSvg, CaretUpSvg } from './icons';
7
8
  import { StyledDebugArrow, StyledDebugContainer, StyledDebugContent, StyledDebugContentWrapper, StyledDebugHeader, StyledDebugIcon, StyledDebugTitle, } from './styles';
@@ -19,6 +20,20 @@ const getEventConfig = (debugEvent) => {
19
20
  return getKnowledgeBaseEventConfig(debugEvent);
20
21
  case EventAction.Fallback:
21
22
  return getFallbackEventConfig(debugEvent);
23
+ case EventAction.BotAction:
24
+ return getBotActionEventConfig(debugEvent);
25
+ case EventAction.ConditionalChannel:
26
+ return getConditionalChannelEventConfig(debugEvent);
27
+ case EventAction.ConditionalCountry:
28
+ return getConditionalCountryEventConfig(debugEvent);
29
+ case EventAction.ConditionalCustom:
30
+ return getConditionalCustomEventConfig(debugEvent);
31
+ case EventAction.ConditionalQueueStatus:
32
+ return getConditionalQueueStatusEventConfig(debugEvent);
33
+ case EventAction.RedirectFlow:
34
+ return getRedirectFlowEventConfig(debugEvent);
35
+ case EventAction.WebviewActionTriggered:
36
+ return getWebviewActionTriggeredEventConfig(debugEvent);
22
37
  default:
23
38
  return undefined;
24
39
  }
@@ -27,6 +42,7 @@ export const DebugMessage = ({ debugEvent, messageId }) => {
27
42
  var _a;
28
43
  const [isExpanded, setIsExpanded] = useState(false);
29
44
  const wrapperRef = useRef(null);
45
+ const { previewUtils } = useContext(WebchatContext);
30
46
  const eventConfig = getEventConfig(debugEvent);
31
47
  useLastLabelPosition({
32
48
  wrapperRef,
@@ -34,6 +50,12 @@ export const DebugMessage = ({ debugEvent, messageId }) => {
34
50
  debugEvent,
35
51
  isCollapsible: (_a = eventConfig === null || eventConfig === void 0 ? void 0 : eventConfig.collapsible) !== null && _a !== void 0 ? _a : false,
36
52
  });
53
+ useEffect(() => {
54
+ var _a;
55
+ if (isExpanded) {
56
+ (_a = previewUtils === null || previewUtils === void 0 ? void 0 : previewUtils.trackPreviewEventOpened) === null || _a === void 0 ? void 0 : _a.call(previewUtils, { action: debugEvent.action });
57
+ }
58
+ }, [previewUtils, isExpanded, debugEvent]);
37
59
  if (!eventConfig) {
38
60
  return null;
39
61
  }
@@ -1 +1 @@
1
- {"version":3,"file":"debug-message.js","sourceRoot":"","sources":["../../../../src/components/system-debug-trace/debug-message.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAA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KAAC,UAAU,KAAG,CAAC,CAAC,CAAC,KAAC,YAAY,KAAG,GAC9B,CACpB,IACiB,EACnB,SAAS,IAAI,CACZ,KAAC,kBAAkB,kBAAC,KAAK,EAAE,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,EAAE,gBACnE,KAAC,yBAAyB,kBAAC,GAAG,EAAE,UAAU,gBACxC,KAAC,SAAS,oBAAK,UAAU,IAAE,SAAS,EAAE,SAAS,IAAI,IACzB,IACT,CACtB,KACoB,CACxB,CAAA;AACH,CAAC,CAAA"}
1
+ {"version":3,"file":"debug-message.js","sourceRoot":"","sources":["../../../../src/components/system-debug-trace/debug-message.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAc,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAEtE,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AACtD,OAAO,EACL,qBAAqB,EACrB,uBAAuB,EACvB,gCAAgC,EAChC,gCAAgC,EAChC,+BAA+B,EAC/B,oCAAoC,EACpC,sBAAsB,EACtB,4BAA4B,EAC5B,qBAAqB,EACrB,2BAA2B,EAC3B,0BAA0B,EAC1B,yBAAyB,EACzB,oCAAoC,GACrC,MAAM,UAAU,CAAA;AACjB,OAAO,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAA;AACtE,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAClD,OAAO,EACL,gBAAgB,EAChB,oBAAoB,EACpB,kBAAkB,EAClB,yBAAyB,EACzB,iBAAiB,EACjB,eAAe,EACf,gBAAgB,GACjB,MAAM,UAAU,CAAA;AAGjB,MAAM,cAAc,GAAG,CACrB,UAAsB,EACQ,EAAE;IAChC,QAAQ,UAAU,CAAC,MAAM,EAAE;QACzB,KAAK,WAAW,CAAC,OA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AAC,oBAAoB,kBACnB,SAAS,EAAE,kBAAkB,EAC7B,OAAO,EAAE,WAAW,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,iBAE9C,MAAC,iBAAiB,eAChB,KAAC,eAAe,cAAE,IAAI,GAAmB,EACzC,KAAC,gBAAgB,cAAE,KAAK,GAAoB,EAC3C,WAAW,IAAI,CACd,KAAC,gBAAgB,cACd,UAAU,CAAC,CAAC,CAAC,KAAC,UAAU,KAAG,CAAC,CAAC,CAAC,KAAC,YAAY,KAAG,GAC9B,CACpB,IACiB,EACnB,SAAS,IAAI,CACZ,KAAC,kBAAkB,kBAAC,KAAK,EAAE,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,EAAE,gBACnE,KAAC,yBAAyB,kBAAC,GAAG,EAAE,UAAU,gBACxC,KAAC,SAAS,oBAAK,UAAU,IAAE,SAAS,EAAE,SAAS,IAAI,IACzB,IACT,CACtB,KACoB,CACxB,CAAA;AACH,CAAC,CAAA"}
@@ -0,0 +1,7 @@
1
+ import { EventAction } from '@botonic/core';
2
+ import { DebugEventConfig } from '../types';
3
+ export interface BotActionDebugEvent {
4
+ action: EventAction.BotAction;
5
+ payload: string;
6
+ }
7
+ export declare const getBotActionEventConfig: (data: BotActionDebugEvent) => DebugEventConfig;
@@ -0,0 +1,14 @@
1
+ import { jsxs as _jsxs, Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
2
+ import { EventAction } from '@botonic/core';
3
+ import { CodeSvg } from '../icons/code';
4
+ export const getBotActionEventConfig = (data) => {
5
+ const title = (_jsxs(_Fragment, { children: ["Bot action triggered ", _jsxs("span", { children: ["- ", data.payload] })] }));
6
+ return {
7
+ action: EventAction.BotAction,
8
+ title,
9
+ component: null,
10
+ icon: _jsx(CodeSvg, {}),
11
+ collapsible: false,
12
+ };
13
+ };
14
+ //# sourceMappingURL=bot-action.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bot-action.js","sourceRoot":"","sources":["../../../../../src/components/system-debug-trace/events/bot-action.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAG3C,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AAQvC,MAAM,CAAC,MAAM,uBAAuB,GAAG,CACrC,IAAyB,EACP,EAAE;IACpB,MAAM,KAAK,GAAG,CACZ,uDACuB,iCAAS,IAAI,CAAC,OAAO,IAAQ,IACjD,CACJ,CAAA;IAED,OAAO;QACL,MAAM,EAAE,WAAW,CAAC,SAAS;QAC7B,KAAK;QACL,SAAS,EAAE,IAAI;QACf,IAAI,EAAE,KAAC,OAAO,KAAG;QACjB,WAAW,EAAE,KAAK;KACnB,CAAA;AACH,CAAC,CAAA"}
@@ -0,0 +1,7 @@
1
+ import { EventAction } from '@botonic/core';
2
+ import { DebugEventConfig } from '../types';
3
+ export interface ConditionalChannelDebugEvent {
4
+ action: EventAction.ConditionalChannel;
5
+ channel: string;
6
+ }
7
+ export declare const getConditionalChannelEventConfig: (data: ConditionalChannelDebugEvent) => DebugEventConfig;
@@ -0,0 +1,14 @@
1
+ import { jsxs as _jsxs, Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
2
+ import { EventAction } from '@botonic/core';
3
+ import { SplitSvg } from '../icons/split';
4
+ export const getConditionalChannelEventConfig = (data) => {
5
+ const title = (_jsxs(_Fragment, { children: ["Channel checked ", _jsxs("span", { children: ["- ", data.channel] })] }));
6
+ return {
7
+ action: EventAction.ConditionalChannel,
8
+ title,
9
+ component: null,
10
+ icon: _jsx(SplitSvg, {}),
11
+ collapsible: false,
12
+ };
13
+ };
14
+ //# sourceMappingURL=conditional-channel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conditional-channel.js","sourceRoot":"","sources":["../../../../../src/components/system-debug-trace/events/conditional-channel.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAG3C,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAQzC,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAC9C,IAAkC,EAChB,EAAE;IACpB,MAAM,KAAK,GAAG,CACZ,kDACkB,iCAAS,IAAI,CAAC,OAAO,IAAQ,IAC5C,CACJ,CAAA;IAED,OAAO;QACL,MAAM,EAAE,WAAW,CAAC,kBAAkB;QACtC,KAAK;QACL,SAAS,EAAE,IAAI;QACf,IAAI,EAAE,KAAC,QAAQ,KAAG;QAClB,WAAW,EAAE,KAAK;KACnB,CAAA;AACH,CAAC,CAAA"}
@@ -0,0 +1,7 @@
1
+ import { EventAction } from '@botonic/core';
2
+ import { DebugEventConfig } from '../types';
3
+ export interface ConditionalCountryDebugEvent {
4
+ action: EventAction.ConditionalCountry;
5
+ country: string;
6
+ }
7
+ export declare const getConditionalCountryEventConfig: (data: ConditionalCountryDebugEvent) => DebugEventConfig;
@@ -0,0 +1,14 @@
1
+ import { jsxs as _jsxs, Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
2
+ import { EventAction } from '@botonic/core';
3
+ import { SplitSvg } from '../icons/split';
4
+ export const getConditionalCountryEventConfig = (data) => {
5
+ const title = (_jsxs(_Fragment, { children: ["Country checked ", _jsxs("span", { children: ["- ", data.country] })] }));
6
+ return {
7
+ action: EventAction.ConditionalCountry,
8
+ title,
9
+ component: null,
10
+ icon: _jsx(SplitSvg, {}),
11
+ collapsible: false,
12
+ };
13
+ };
14
+ //# sourceMappingURL=conditional-country.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conditional-country.js","sourceRoot":"","sources":["../../../../../src/components/system-debug-trace/events/conditional-country.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAG3C,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAQzC,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAC9C,IAAkC,EAChB,EAAE;IACpB,MAAM,KAAK,GAAG,CACZ,kDACkB,iCAAS,IAAI,CAAC,OAAO,IAAQ,IAC5C,CACJ,CAAA;IAED,OAAO;QACL,MAAM,EAAE,WAAW,CAAC,kBAAkB;QACtC,KAAK;QACL,SAAS,EAAE,IAAI;QACf,IAAI,EAAE,KAAC,QAAQ,KAAG;QAClB,WAAW,EAAE,KAAK;KACnB,CAAA;AACH,CAAC,CAAA"}
@@ -0,0 +1,8 @@
1
+ import { EventAction } from '@botonic/core';
2
+ import { DebugEventConfig } from '../types';
3
+ export interface ConditionalCustomDebugEvent {
4
+ action: EventAction.ConditionalCustom;
5
+ conditional_variable: string;
6
+ variable_format: string;
7
+ }
8
+ export declare const getConditionalCustomEventConfig: (data: ConditionalCustomDebugEvent) => DebugEventConfig;
@@ -0,0 +1,14 @@
1
+ import { jsxs as _jsxs, Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
2
+ import { EventAction } from '@botonic/core';
3
+ import { SplitSvg } from '../icons/split';
4
+ export const getConditionalCustomEventConfig = (data) => {
5
+ const title = (_jsxs(_Fragment, { children: ["Custom condition checked ", _jsxs("span", { children: ["- ", data.conditional_variable] })] }));
6
+ return {
7
+ action: EventAction.ConditionalCustom,
8
+ title,
9
+ component: null,
10
+ icon: _jsx(SplitSvg, {}),
11
+ collapsible: false,
12
+ };
13
+ };
14
+ //# sourceMappingURL=conditional-custom.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conditional-custom.js","sourceRoot":"","sources":["../../../../../src/components/system-debug-trace/events/conditional-custom.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAG3C,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AASzC,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAC7C,IAAiC,EACf,EAAE;IACpB,MAAM,KAAK,GAAG,CACZ,2DAC2B,iCAAS,IAAI,CAAC,oBAAoB,IAAQ,IAClE,CACJ,CAAA;IAED,OAAO;QACL,MAAM,EAAE,WAAW,CAAC,iBAAiB;QACrC,KAAK;QACL,SAAS,EAAE,IAAI;QACf,IAAI,EAAE,KAAC,QAAQ,KAAG;QAClB,WAAW,EAAE,KAAK;KACnB,CAAA;AACH,CAAC,CAAA"}
@@ -0,0 +1,10 @@
1
+ import { EventAction } from '@botonic/core';
2
+ import { DebugEventConfig } from '../types';
3
+ export interface ConditionalQueueStatusDebugEvent {
4
+ action: EventAction.ConditionalQueueStatus;
5
+ queue_id: string;
6
+ queue_name: string;
7
+ is_queue_open: boolean;
8
+ is_available_agent: boolean;
9
+ }
10
+ export declare const getConditionalQueueStatusEventConfig: (data: ConditionalQueueStatusDebugEvent) => DebugEventConfig;
@@ -0,0 +1,16 @@
1
+ import { jsxs as _jsxs, Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
2
+ import { EventAction } from '@botonic/core';
3
+ import { SplitSvg } from '../icons/split';
4
+ export const getConditionalQueueStatusEventConfig = (data) => {
5
+ const queueStatus = data.is_queue_open ? 'Open' : 'Closed';
6
+ const agentStatus = data.is_available_agent ? 'Available' : 'Unavailable';
7
+ const title = (_jsxs(_Fragment, { children: ["Queue status checked", ' ', _jsxs("span", { children: ["- ", queueStatus, " (Agent ", agentStatus, ")"] })] }));
8
+ return {
9
+ action: EventAction.ConditionalQueueStatus,
10
+ title,
11
+ component: null,
12
+ icon: _jsx(SplitSvg, {}),
13
+ collapsible: false,
14
+ };
15
+ };
16
+ //# sourceMappingURL=conditional-queue-status.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conditional-queue-status.js","sourceRoot":"","sources":["../../../../../src/components/system-debug-trace/events/conditional-queue-status.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAG3C,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAWzC,MAAM,CAAC,MAAM,oCAAoC,GAAG,CAClD,IAAsC,EACpB,EAAE;IACpB,MAAM,WAAW,GAAG,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAA;IAC1D,MAAM,WAAW,GAAG,IAAI,CAAC,kBAAkB,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,aAAa,CAAA;IAEzE,MAAM,KAAK,GAAG,CACZ,sDACuB,GAAG,EACxB,iCACK,WAAW,cAAU,WAAW,SAC9B,IACN,CACJ,CAAA;IAED,OAAO;QACL,MAAM,EAAE,WAAW,CAAC,sBAAsB;QAC1C,KAAK;QACL,SAAS,EAAE,IAAI;QACf,IAAI,EAAE,KAAC,QAAQ,KAAG;QAClB,WAAW,EAAE,KAAK;KACnB,CAAA;AACH,CAAC,CAAA"}
@@ -7,9 +7,13 @@ export declare const LABELS: {
7
7
  readonly KNOWLEDGE_GATHERED: "Knowledge gathered";
8
8
  readonly EXECUTED_TOOLS: "Executed tools";
9
9
  readonly NO_TOOLS_EXECUTED: "No tools executed";
10
+ readonly AUTO_ASSIGN_ON: "ON";
11
+ readonly AUTO_ASSIGN_OFF: "OFF";
10
12
  readonly EXIT: "Exit";
11
13
  readonly ERROR: "Error";
12
14
  readonly QUEUE: "Queue";
15
+ readonly AUTO_ASSIGN: "Auto-assign";
16
+ readonly NOTE: "Note";
13
17
  readonly KNOWLEDGE_BASE_FAIL_REASON: "Knowledge Base Fail Reason";
14
18
  readonly SEE_CHUNKS_BUTTON: "See chunks";
15
19
  };
@@ -7,9 +7,13 @@ export const LABELS = {
7
7
  KNOWLEDGE_GATHERED: 'Knowledge gathered',
8
8
  EXECUTED_TOOLS: 'Executed tools',
9
9
  NO_TOOLS_EXECUTED: 'No tools executed',
10
+ AUTO_ASSIGN_ON: 'ON',
11
+ AUTO_ASSIGN_OFF: 'OFF',
10
12
  EXIT: 'Exit',
11
13
  ERROR: 'Error',
12
14
  QUEUE: 'Queue',
15
+ AUTO_ASSIGN: 'Auto-assign',
16
+ NOTE: 'Note',
13
17
  KNOWLEDGE_BASE_FAIL_REASON: 'Knowledge Base Fail Reason',
14
18
  SEE_CHUNKS_BUTTON: 'See chunks',
15
19
  };
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../src/components/system-debug-trace/events/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,mBAAmB,EAAE,qBAAqB;IAC1C,eAAe,EAAE,iBAAiB;IAClC,eAAe,EAAE,iBAAiB;IAClC,KAAK,EAAE,OAAO;IACd,OAAO,EAAE,SAAS;IAClB,kBAAkB,EAAE,oBAAoB;IACxC,cAAc,EAAE,gBAAgB;IAChC,iBAAiB,EAAE,mBAAmB;IACtC,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,OAAO;IACd,0BAA0B,EAAE,4BAA4B;IACxD,iBAAiB,EAAE,YAAY;CACvB,CAAA"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../src/components/system-debug-trace/events/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,mBAAmB,EAAE,qBAAqB;IAC1C,eAAe,EAAE,iBAAiB;IAClC,eAAe,EAAE,iBAAiB;IAClC,KAAK,EAAE,OAAO;IACd,OAAO,EAAE,SAAS;IAClB,kBAAkB,EAAE,oBAAoB;IACxC,cAAc,EAAE,gBAAgB;IAChC,iBAAiB,EAAE,mBAAmB;IACtC,cAAc,EAAE,IAAI;IACpB,eAAe,EAAE,KAAK;IACtB,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,OAAO;IACd,WAAW,EAAE,aAAa;IAC1B,IAAI,EAAE,MAAM;IACZ,0BAA0B,EAAE,4BAA4B;IACxD,iBAAiB,EAAE,YAAY;CACvB,CAAA"}
@@ -4,6 +4,8 @@ export interface HandoffSuccessDebugEvent {
4
4
  action: EventAction.HandoffSuccess;
5
5
  handoff_queue_name: string;
6
6
  handoff_is_queue_open: boolean;
7
+ handoff_has_auto_assign: boolean;
8
+ handoff_note_id: string;
7
9
  }
8
10
  export declare const HandoffSuccess: (props: HandoffSuccessDebugEvent) => import("react/jsx-runtime").JSX.Element;
9
11
  export declare const getHandoffSuccessEventConfig: (data: HandoffSuccessDebugEvent) => DebugEventConfig;
@@ -1,19 +1,38 @@
1
+ import { __awaiter } from "tslib";
1
2
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
3
  import { EventAction } from '@botonic/core';
4
+ import { useContext, useEffect, useState } from 'react';
5
+ import { WebchatContext } from '../../../webchat/context';
3
6
  import { HeadSetSvg } from '../icons';
4
7
  import { StyledDebugDetail, StyledDebugLabel, StyledDebugValue, } from '../styles';
5
8
  import { LABELS } from './constants';
6
9
  export const HandoffSuccess = (props) => {
7
- return (_jsxs(StyledDebugDetail, { children: [_jsx(StyledDebugLabel, { children: LABELS.QUEUE }), _jsx(StyledDebugValue, { children: props.handoff_queue_name })] }));
10
+ const { previewUtils } = useContext(WebchatContext);
11
+ const [noteMessage, setNoteMessage] = useState();
12
+ useEffect(() => {
13
+ const fetchNoteMessage = () => __awaiter(void 0, void 0, void 0, function* () {
14
+ if (!previewUtils || !props.handoff_note_id) {
15
+ return;
16
+ }
17
+ const noteMessage = yield previewUtils.getMessageById(props.handoff_note_id);
18
+ if (!noteMessage) {
19
+ return;
20
+ }
21
+ setNoteMessage(noteMessage.text);
22
+ });
23
+ fetchNoteMessage();
24
+ }, [previewUtils, props.handoff_note_id]);
25
+ return (_jsxs(_Fragment, { children: [_jsxs(StyledDebugDetail, { children: [_jsx(StyledDebugLabel, { children: LABELS.QUEUE }), _jsx(StyledDebugValue, { children: props.handoff_queue_name })] }), _jsxs(StyledDebugDetail, { children: [_jsx(StyledDebugLabel, { children: LABELS.AUTO_ASSIGN }), _jsx(StyledDebugValue, { children: props.handoff_has_auto_assign
26
+ ? LABELS.AUTO_ASSIGN_ON
27
+ : LABELS.AUTO_ASSIGN_OFF })] }), Boolean(noteMessage) && (_jsxs(StyledDebugDetail, { children: [_jsx(StyledDebugLabel, { children: LABELS.NOTE }), _jsx(StyledDebugValue, { children: noteMessage })] }))] }));
8
28
  };
9
29
  export const getHandoffSuccessEventConfig = (data) => {
10
30
  return {
11
31
  action: EventAction.HandoffSuccess,
12
32
  title: (_jsxs(_Fragment, { children: ["Handoff to agent ", _jsxs("span", { children: ["- ", data.handoff_queue_name] })] })),
13
33
  icon: _jsx(HeadSetSvg, {}),
14
- // TODO: Disable component and collapsible for now because we are only showing the queue name
15
- component: null,
16
- collapsible: false,
34
+ component: HandoffSuccess,
35
+ collapsible: true,
17
36
  };
18
37
  };
19
38
  //# sourceMappingURL=handoff-success.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"handoff-success.js","sourceRoot":"","sources":["../../../../../src/components/system-debug-trace/events/handoff-success.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAG3C,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AACrC,OAAO,EACL,iBAAiB,EACjB,gBAAgB,EAChB,gBAAgB,GACjB,MAAM,WAAW,CAAA;AAElB,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AAQpC,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,KAA+B,EAAE,EAAE;IAChE,OAAO,CACL,MAAC,iBAAiB,eAChB,KAAC,gBAAgB,cAAE,MAAM,CAAC,KAAK,GAAoB,EACnD,KAAC,gBAAgB,cAAE,KAAK,CAAC,kBAAkB,GAAoB,IAC7C,CACrB,CAAA;AACH,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAC1C,IAA8B,EACZ,EAAE;IACpB,OAAO;QACL,MAAM,EAAE,WAAW,CAAC,cAAc;QAClC,KAAK,EAAE,CACL,mDACmB,iCAAS,IAAI,CAAC,kBAAkB,IAAQ,IACxD,CACJ;QACD,IAAI,EAAE,KAAC,UAAU,KAAG;QACpB,6FAA6F;QAC7F,SAAS,EAAE,IAAI;QACf,WAAW,EAAE,KAAK;KACnB,CAAA;AACH,CAAC,CAAA"}
1
+ {"version":3,"file":"handoff-success.js","sourceRoot":"","sources":["../../../../../src/components/system-debug-trace/events/handoff-success.tsx"],"names":[],"mappings":";;AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAc,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAE9D,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AACrC,OAAO,EACL,iBAAiB,EACjB,gBAAgB,EAChB,gBAAgB,GACjB,MAAM,WAAW,CAAA;AAElB,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AAUpC,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,KAA+B,EAAE,EAAE;IAChE,MAAM,EAAE,YAAY,EAAE,GAAG,UAAU,CAAC,cAAc,CAAC,CAAA;IACnD,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,EAAU,CAAA;IAExD,SAAS,CAAC,GAAG,EAAE;QACb,MAAM,gBAAgB,GAAG,GAAS,EAAE;YAClC,IAAI,CAAC,YAAY,IAAI,CAAC,KAAK,CAAC,eAAe,EAAE;gBAC3C,OAAM;aACP;YACD,MAAM,WAAW,GAAG,MAAM,YAAY,CAAC,cAAc,CACnD,KAAK,CAAC,eAAe,CACtB,CAAA;YACD,IAAI,CAAC,WAAW,EAAE;gBAChB,OAAM;aACP;YACD,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,CAAA;QAClC,CAAC,CAAA,CAAA;QACD,gBAAgB,EAAE,CAAA;IACpB,CAAC,EAAE,CAAC,YAAY,EAAE,KAAK,CAAC,eAAe,CAAC,CAAC,CAAA;IAEzC,OAAO,CACL,8BACE,MAAC,iBAAiB,eAChB,KAAC,gBAAgB,cAAE,MAAM,CAAC,KAAK,GAAoB,EACnD,KAAC,gBAAgB,cAAE,KAAK,CAAC,kBAAkB,GAAoB,IAC7C,EACpB,MAAC,iBAAiB,eAChB,KAAC,gBAAgB,cAAE,MAAM,CAAC,WAAW,GAAoB,EACzD,KAAC,gBAAgB,cACd,KAAK,CAAC,uBAAuB;4BAC5B,CAAC,CAAC,MAAM,CAAC,cAAc;4BACvB,CAAC,CAAC,MAAM,CAAC,eAAe,GACT,IACD,EACnB,OAAO,CAAC,WAAW,CAAC,IAAI,CACvB,MAAC,iBAAiB,eAChB,KAAC,gBAAgB,cAAE,MAAM,CAAC,IAAI,GAAoB,EAClD,KAAC,gBAAgB,cAAE,WAAW,GAAoB,IAChC,CACrB,IACA,CACJ,CAAA;AACH,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAC1C,IAA8B,EACZ,EAAE;IACpB,OAAO;QACL,MAAM,EAAE,WAAW,CAAC,cAAc;QAClC,KAAK,EAAE,CACL,mDACmB,iCAAS,IAAI,CAAC,kBAAkB,IAAQ,IACxD,CACJ;QACD,IAAI,EAAE,KAAC,UAAU,KAAG;QACpB,SAAS,EAAE,cAAc;QACzB,WAAW,EAAE,IAAI;KAClB,CAAA;AACH,CAAC,CAAA"}
@@ -1,7 +1,14 @@
1
1
  export * from './ai-agent';
2
+ export * from './bot-action';
3
+ export * from './conditional-channel';
4
+ export * from './conditional-country';
5
+ export * from './conditional-custom';
6
+ export * from './conditional-queue-status';
2
7
  export * from './fallback';
3
8
  export * from './handoff-success';
4
9
  export * from './keyword';
5
10
  export * from './knowledge-base';
6
11
  export * from './knowledge-bases-types';
12
+ export * from './redirect-flow';
7
13
  export * from './smart-intent';
14
+ export * from './webview-action-triggered';
@@ -1,8 +1,15 @@
1
1
  export * from './ai-agent';
2
+ export * from './bot-action';
3
+ export * from './conditional-channel';
4
+ export * from './conditional-country';
5
+ export * from './conditional-custom';
6
+ export * from './conditional-queue-status';
2
7
  export * from './fallback';
3
8
  export * from './handoff-success';
4
9
  export * from './keyword';
5
10
  export * from './knowledge-base';
6
11
  export * from './knowledge-bases-types';
12
+ export * from './redirect-flow';
7
13
  export * from './smart-intent';
14
+ export * from './webview-action-triggered';
8
15
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/system-debug-trace/events/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,cAAc,mBAAmB,CAAA;AACjC,cAAc,WAAW,CAAA;AACzB,cAAc,kBAAkB,CAAA;AAChC,cAAc,yBAAyB,CAAA;AACvC,cAAc,gBAAgB,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/system-debug-trace/events/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,cAAc,CAAA;AAC5B,cAAc,uBAAuB,CAAA;AACrC,cAAc,uBAAuB,CAAA;AACrC,cAAc,sBAAsB,CAAA;AACpC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,YAAY,CAAA;AAC1B,cAAc,mBAAmB,CAAA;AACjC,cAAc,WAAW,CAAA;AACzB,cAAc,kBAAkB,CAAA;AAChC,cAAc,yBAAyB,CAAA;AACvC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,4BAA4B,CAAA"}
@@ -0,0 +1,10 @@
1
+ import { EventAction } from '@botonic/core';
2
+ import { DebugEventConfig } from '../types';
3
+ export interface RedirectFlowDebugEvent {
4
+ action: EventAction.RedirectFlow;
5
+ flow_id: string;
6
+ flow_name: string;
7
+ flow_target_id: string;
8
+ flow_target_name: string;
9
+ }
10
+ export declare const getRedirectFlowEventConfig: (data: RedirectFlowDebugEvent) => DebugEventConfig;
@@ -0,0 +1,14 @@
1
+ import { jsxs as _jsxs, Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
2
+ import { EventAction } from '@botonic/core';
3
+ import { ArrowProgressSvg } from '../icons/arrow-progress';
4
+ export const getRedirectFlowEventConfig = (data) => {
5
+ const title = (_jsxs(_Fragment, { children: ["Redirected to flow ", _jsxs("span", { children: ["- ", data.flow_target_name] })] }));
6
+ return {
7
+ action: EventAction.RedirectFlow,
8
+ title,
9
+ component: null,
10
+ icon: _jsx(ArrowProgressSvg, {}),
11
+ collapsible: false,
12
+ };
13
+ };
14
+ //# sourceMappingURL=redirect-flow.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"redirect-flow.js","sourceRoot":"","sources":["../../../../../src/components/system-debug-trace/events/redirect-flow.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAG3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAW1D,MAAM,CAAC,MAAM,0BAA0B,GAAG,CACxC,IAA4B,EACV,EAAE;IACpB,MAAM,KAAK,GAAG,CACZ,qDACqB,iCAAS,IAAI,CAAC,gBAAgB,IAAQ,IACxD,CACJ,CAAA;IAED,OAAO;QACL,MAAM,EAAE,WAAW,CAAC,YAAY;QAChC,KAAK;QACL,SAAS,EAAE,IAAI;QACf,IAAI,EAAE,KAAC,gBAAgB,KAAG;QAC1B,WAAW,EAAE,KAAK;KACnB,CAAA;AACH,CAAC,CAAA"}
@@ -0,0 +1,8 @@
1
+ import { EventAction } from '@botonic/core';
2
+ import { DebugEventConfig } from '../types';
3
+ export interface WebviewActionTriggeredDebugEvent {
4
+ action: EventAction.WebviewActionTriggered;
5
+ webview_target_id: string;
6
+ webview_name: string;
7
+ }
8
+ export declare const getWebviewActionTriggeredEventConfig: (data: WebviewActionTriggeredDebugEvent) => DebugEventConfig;
@@ -0,0 +1,14 @@
1
+ import { jsxs as _jsxs, Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
2
+ import { EventAction } from '@botonic/core';
3
+ import { WindowRestoreSvg } from '../icons/window-restore';
4
+ export const getWebviewActionTriggeredEventConfig = (data) => {
5
+ const title = (_jsxs(_Fragment, { children: ["Webview action triggered ", _jsxs("span", { children: ["- ", data.webview_name] })] }));
6
+ return {
7
+ action: EventAction.WebviewActionTriggered,
8
+ title,
9
+ component: null,
10
+ icon: _jsx(WindowRestoreSvg, {}),
11
+ collapsible: false,
12
+ };
13
+ };
14
+ //# sourceMappingURL=webview-action-triggered.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"webview-action-triggered.js","sourceRoot":"","sources":["../../../../../src/components/system-debug-trace/events/webview-action-triggered.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAG3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAS1D,MAAM,CAAC,MAAM,oCAAoC,GAAG,CAClD,IAAsC,EACpB,EAAE;IACpB,MAAM,KAAK,GAAG,CACZ,2DAC2B,iCAAS,IAAI,CAAC,YAAY,IAAQ,IAC1D,CACJ,CAAA;IAED,OAAO;QACL,MAAM,EAAE,WAAW,CAAC,sBAAsB;QAC1C,KAAK;QACL,SAAS,EAAE,IAAI;QACf,IAAI,EAAE,KAAC,gBAAgB,KAAG;QAC1B,WAAW,EAAE,KAAK;KACnB,CAAA;AACH,CAAC,CAAA"}
@@ -0,0 +1,2 @@
1
+ import { IconProps } from '../types';
2
+ export declare const ArrowProgressSvg: ({ color }: IconProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { COLORS } from '../../../constants';
3
+ export const ArrowProgressSvg = ({ color = COLORS.N500 }) => {
4
+ return (_jsx("svg", Object.assign({ xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 640 640', fill: color }, { children: _jsx("path", { d: 'M294.8 97.8C303.8 94.1 314.1 96.1 321 103L361 143C370.4 152.4 370.4 167.6 361 176.9L321 216.9C314.1 223.8 303.8 225.8 294.8 222.1C285.8 218.4 280 209.7 280 200L280 192L176 192C149.5 192 128 213.5 128 240C128 266.5 149.5 288 176 288L464 288C525.9 288 576 338.1 576 400C576 446.4 547.8 486.1 507.7 503.2C498.4 527.1 475.2 544 448 544C412.7 544 384 515.3 384 480C384 444.7 412.7 416 448 416C466.6 416 483.4 423.9 495 436.6C505.4 427.8 512 414.7 512 400C512 373.5 490.5 352 464 352L176 352C114.1 352 64 301.9 64 240C64 178.1 114.1 128 176 128L280 128L280 120C280 110.3 285.8 101.5 294.8 97.8zM480 96C515.3 96 544 124.7 544 160C544 195.3 515.3 224 480 224C444.7 224 416 195.3 416 160C416 124.7 444.7 96 480 96zM215.4 512C204.3 531.1 183.7 544 160 544C124.7 544 96 515.3 96 480C96 444.7 124.7 416 160 416C183.7 416 204.4 428.9 215.4 448L248 448L248 440C248 430.3 253.8 421.5 262.8 417.8C271.8 414.1 282.1 416.1 289 423L329 463C338.4 472.4 338.4 487.6 329 496.9L289 536.9C282.1 543.8 271.8 545.8 262.8 542.1C253.8 538.4 248 529.7 248 520L248 512L215.4 512z', fill: 'currentColor' }) })));
5
+ };
6
+ //# sourceMappingURL=arrow-progress.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"arrow-progress.js","sourceRoot":"","sources":["../../../../../src/components/system-debug-trace/icons/arrow-progress.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAG3C,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC,IAAI,EAAa,EAAE,EAAE;IACrE,OAAO,CACL,4BAAK,KAAK,EAAC,4BAA4B,EAAC,OAAO,EAAC,aAAa,EAAC,IAAI,EAAE,KAAK,gBACvE,eACE,CAAC,EAAC,2hCAA2hC,EAC7hC,IAAI,EAAC,cAAc,GACnB,IACE,CACP,CAAA;AACH,CAAC,CAAA"}
@@ -0,0 +1,2 @@
1
+ import { IconProps } from '../types';
2
+ export declare const CodeSvg: ({ color }: IconProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { COLORS } from '../../../constants';
3
+ export const CodeSvg = ({ color = COLORS.N500 }) => {
4
+ return (_jsx("svg", Object.assign({ xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 640 640', fill: color }, { children: _jsx("path", { d: 'M392.8 65.2C375.8 60.3 358.1 70.2 353.2 87.2L225.2 535.2C220.3 552.2 230.2 569.9 247.2 574.8C264.2 579.7 281.9 569.8 286.8 552.8L414.8 104.8C419.7 87.8 409.8 70.1 392.8 65.2zM457.4 201.3C444.9 213.8 444.9 234.1 457.4 246.6L530.8 320L457.4 393.4C444.9 405.9 444.9 426.2 457.4 438.7C469.9 451.2 490.2 451.2 502.7 438.7L598.7 342.7C611.2 330.2 611.2 309.9 598.7 297.4L502.7 201.4C490.2 188.9 469.9 188.9 457.4 201.4zM182.7 201.3C170.2 188.8 149.9 188.8 137.4 201.3L41.4 297.3C28.9 309.8 28.9 330.1 41.4 342.6L137.4 438.6C149.9 451.1 170.2 451.1 182.7 438.6C195.2 426.1 195.2 405.8 182.7 393.3L109.3 320L182.6 246.6C195.1 234.1 195.1 213.8 182.6 201.3z', fill: 'currentColor' }) })));
5
+ };
6
+ //# sourceMappingURL=code.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"code.js","sourceRoot":"","sources":["../../../../../src/components/system-debug-trace/icons/code.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAG3C,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC,IAAI,EAAa,EAAE,EAAE;IAC5D,OAAO,CACL,4BAAK,KAAK,EAAC,4BAA4B,EAAC,OAAO,EAAC,aAAa,EAAC,IAAI,EAAE,KAAK,gBACvE,eACE,CAAC,EAAC,0oBAA0oB,EAC5oB,IAAI,EAAC,cAAc,GACnB,IACE,CACP,CAAA;AACH,CAAC,CAAA"}
@@ -0,0 +1,2 @@
1
+ import { IconProps } from '../types';
2
+ export declare const SplitSvg: ({ color }: IconProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { COLORS } from '../../../constants';
3
+ export const SplitSvg = ({ color = COLORS.N500 }) => {
4
+ return (_jsx("svg", Object.assign({ xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 640 640', fill: color }, { children: _jsx("path", { d: 'M467.8 66.4C479.8 61.4 493.5 64.2 502.7 73.3L566.7 137.3C572.7 143.3 576.1 151.4 576.1 159.9C576.1 168.4 572.7 176.5 566.7 182.5L502.7 246.5C493.5 255.7 479.8 258.4 467.8 253.4C455.8 248.4 448 236.9 448 224L448 192L410.5 192C402 192 393.9 195.4 387.9 201.4L269.3 320L387.9 438.6C393.9 444.6 402 448 410.5 448L448 448L448 416C448 403.1 455.8 391.4 467.8 386.4C479.8 381.4 493.5 384.2 502.7 393.3L566.7 457.3C572.7 463.3 576.1 471.4 576.1 479.9C576.1 488.4 572.7 496.5 566.7 502.5L502.7 566.5C493.5 575.7 479.8 578.4 467.8 573.4C455.8 568.4 448 556.9 448 544L448 512L410.5 512C385 512 360.6 501.9 342.6 483.9L210.7 352L96 352C78.3 352 64 337.7 64 320C64 302.3 78.3 288 96 288L210.7 288L342.6 156.1C360.6 138.1 385 128 410.5 128L448 128L448 96C448 83.1 455.8 71.4 467.8 66.4z', fill: 'currentColor' }) })));
5
+ };
6
+ //# sourceMappingURL=split.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"split.js","sourceRoot":"","sources":["../../../../../src/components/system-debug-trace/icons/split.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAG3C,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC,IAAI,EAAa,EAAE,EAAE;IAC7D,OAAO,CACL,4BAAK,KAAK,EAAC,4BAA4B,EAAC,OAAO,EAAC,aAAa,EAAC,IAAI,EAAE,KAAK,gBACvE,eACE,CAAC,EAAC,swBAAswB,EACxwB,IAAI,EAAC,cAAc,GACnB,IACE,CACP,CAAA;AACH,CAAC,CAAA"}
@@ -0,0 +1,2 @@
1
+ import { IconProps } from '../types';
2
+ export declare const WindowRestoreSvg: ({ color }: IconProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { COLORS } from '../../../constants';
3
+ export const WindowRestoreSvg = ({ color = COLORS.N500 }) => {
4
+ return (_jsx("svg", Object.assign({ xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 640 640', fill: color }, { children: _jsx("path", { d: 'M544 160L192 160C192 124.7 220.7 96 256 96L544 96C579.3 96 608 124.7 608 160L608 352C608 387.3 579.3 416 544 416L496 416L496 352L544 352L544 160zM32 288C32 252.7 60.7 224 96 224L384 224C419.3 224 448 252.7 448 288L448 480C448 515.3 419.3 544 384 544L96 544C60.7 544 32 515.3 32 480L32 288zM96 328C96 341.3 106.7 352 120 352L360 352C373.3 352 384 341.3 384 328C384 314.7 373.3 304 360 304L120 304C106.7 304 96 314.7 96 328z', fill: 'currentColor' }) })));
5
+ };
6
+ //# sourceMappingURL=window-restore.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"window-restore.js","sourceRoot":"","sources":["../../../../../src/components/system-debug-trace/icons/window-restore.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAG3C,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC,IAAI,EAAa,EAAE,EAAE;IACrE,OAAO,CACL,4BAAK,KAAK,EAAC,4BAA4B,EAAC,OAAO,EAAC,aAAa,EAAC,IAAI,EAAE,KAAK,gBACvE,eACE,CAAC,EAAC,waAAwa,EAC1a,IAAI,EAAC,cAAc,GACnB,IACE,CACP,CAAA;AACH,CAAC,CAAA"}
@@ -108,13 +108,14 @@ export const StyledDebugLabel = styled.strong `
108
108
  line-height: 1.5;
109
109
  `;
110
110
  export const StyledDebugValue = styled.div `
111
- display: flex;
112
- align-items: center;
113
- gap: 8px;
114
111
  font-weight: 600;
115
112
  font-size: 12px;
116
113
  color: ${COLORS.N700};
117
114
  line-height: 1.5;
115
+ width: 100%;
116
+ overflow-wrap: break-word;
117
+ word-break: break-word;
118
+ white-space: pre-wrap;
118
119
 
119
120
  > svg {
120
121
  width: 14px;
@@ -122,7 +123,9 @@ export const StyledDebugValue = styled.div `
122
123
  min-width: 14px;
123
124
  min-height: 14px;
124
125
  flex-shrink: 0;
125
- display: block;
126
+ display: inline-block;
127
+ vertical-align: middle;
128
+ margin-right: 8px;
126
129
  }
127
130
  `;
128
131
  export const StyledDebugItemWithIcon = styled.div `
@@ -1 +1 @@
1
- {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../src/components/system-debug-trace/styles.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,mBAAmB,CAAA;AAEtC,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AAExC,MAAM,CAAC,MAAM,oBAAoB,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;sBAOxB,MAAM,CAAC,WAAW;;;;;;;;;;;;;0BAad,MAAM,CAAC,GAAG;;;CAGnC,CAAA;AAED,MAAM,CAAC,MAAM,iBAAiB,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;;;CAS1C,CAAA;AAED,MAAM,CAAC,MAAM,gBAAgB,GAAG,MAAM,CAAC,IAAI,CAAA;;;;;;;;;;;;CAY1C,CAAA;AAED,MAAM,CAAC,MAAM,eAAe,GAAG,MAAM,CAAC,IAAI,CAAA;;;;;;;;;;;;;CAazC,CAAA;AAED,MAAM,CAAC,MAAM,gBAAgB,GAAG,MAAM,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AW,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC;;;WAGxD,MAAM,CAAC,IAAI;;;;;;;CAOrB,CAAA;AAED,MAAM,CAAC,MAAM,yBAAyB,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;;;;;;;;;wBAe3B,MAAM,CAAC,IAAI;;;;;;;;;0BAST,MAAM,CAAC,IAAI;;;CAGpC,CAAA;AAED,MAAM,CAAC,MAAM,oBAAoB,GAAG,MAAM,CAAC,IAAI,CAAA;;;;WAIpC,MAAM,CAAC,IAAI;CACrB,CAAA;AAED,MAAM,CAAC,MAAM,oBAAoB,GAAG,MAAM,CAAC,IAAI,CAAA;;;;WAIpC,MAAM,CAAC,IAAI;CACrB,CAAA;AAED,MAAM,CAAC,MAAM,iBAAiB,GAAG,MAAM,CAAC,IAAI,CAAA;;;;WAIjC,MAAM,CAAC,IAAI;CACrB,CAAA;AAED,MAAM,CAAC,MAAM,qBAAqB,GAAG,MAAM,CAAC,iBAAiB,CAAC,CAAA;;;;;;;CAO7D,CAAA;AAED,MAAM,CAAC,MAAM,oBAAoB,GAAG,MAAM,CAAC,CAAC,CAAA;;;;WAIjC,MAAM,CAAC,IAAI;;;;;;;;;;;aAWT,MAAM,CAAC,YAAY;;;;aAInB,MAAM,CAAC,IAAI;;CAEvB,CAAA"}
@@ -1,9 +1,9 @@
1
1
  import React from 'react';
2
- import { AiAgentDebugEvent, FallbackDebugEvent, HandoffSuccessDebugEvent, KeywordDebugEvent, KnowledgeBaseDebugEvent, SmartIntentDebugEvent } from './events';
2
+ import { AiAgentDebugEvent, BotActionDebugEvent, ConditionalChannelDebugEvent, ConditionalCountryDebugEvent, ConditionalCustomDebugEvent, ConditionalQueueStatusDebugEvent, FallbackDebugEvent, HandoffSuccessDebugEvent, KeywordDebugEvent, KnowledgeBaseDebugEvent, RedirectFlowDebugEvent, SmartIntentDebugEvent, WebviewActionTriggeredDebugEvent } from './events';
3
3
  export interface IconProps {
4
4
  color?: string;
5
5
  }
6
- export type DebugEvent = KeywordDebugEvent | AiAgentDebugEvent | KnowledgeBaseDebugEvent | FallbackDebugEvent | SmartIntentDebugEvent | HandoffSuccessDebugEvent;
6
+ export type DebugEvent = KeywordDebugEvent | AiAgentDebugEvent | KnowledgeBaseDebugEvent | FallbackDebugEvent | SmartIntentDebugEvent | HandoffSuccessDebugEvent | BotActionDebugEvent | ConditionalChannelDebugEvent | ConditionalCountryDebugEvent | ConditionalCustomDebugEvent | ConditionalQueueStatusDebugEvent | RedirectFlowDebugEvent | WebviewActionTriggeredDebugEvent;
7
7
  export interface DebugEventConfig {
8
8
  action: string;
9
9
  title: React.ReactNode;