@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.
- package/lib/cjs/components/system-debug-trace/debug-message.js +22 -0
- package/lib/cjs/components/system-debug-trace/debug-message.js.map +1 -1
- package/lib/cjs/components/system-debug-trace/events/bot-action.d.ts +7 -0
- package/lib/cjs/components/system-debug-trace/events/bot-action.js +18 -0
- package/lib/cjs/components/system-debug-trace/events/bot-action.js.map +1 -0
- package/lib/cjs/components/system-debug-trace/events/conditional-channel.d.ts +7 -0
- package/lib/cjs/components/system-debug-trace/events/conditional-channel.js +18 -0
- package/lib/cjs/components/system-debug-trace/events/conditional-channel.js.map +1 -0
- package/lib/cjs/components/system-debug-trace/events/conditional-country.d.ts +7 -0
- package/lib/cjs/components/system-debug-trace/events/conditional-country.js +18 -0
- package/lib/cjs/components/system-debug-trace/events/conditional-country.js.map +1 -0
- package/lib/cjs/components/system-debug-trace/events/conditional-custom.d.ts +8 -0
- package/lib/cjs/components/system-debug-trace/events/conditional-custom.js +18 -0
- package/lib/cjs/components/system-debug-trace/events/conditional-custom.js.map +1 -0
- package/lib/cjs/components/system-debug-trace/events/conditional-queue-status.d.ts +10 -0
- package/lib/cjs/components/system-debug-trace/events/conditional-queue-status.js +20 -0
- package/lib/cjs/components/system-debug-trace/events/conditional-queue-status.js.map +1 -0
- package/lib/cjs/components/system-debug-trace/events/constants.d.ts +4 -0
- package/lib/cjs/components/system-debug-trace/events/constants.js +4 -0
- package/lib/cjs/components/system-debug-trace/events/constants.js.map +1 -1
- package/lib/cjs/components/system-debug-trace/events/handoff-success.d.ts +2 -0
- package/lib/cjs/components/system-debug-trace/events/handoff-success.js +23 -4
- package/lib/cjs/components/system-debug-trace/events/handoff-success.js.map +1 -1
- package/lib/cjs/components/system-debug-trace/events/index.d.ts +7 -0
- package/lib/cjs/components/system-debug-trace/events/index.js +7 -0
- package/lib/cjs/components/system-debug-trace/events/index.js.map +1 -1
- package/lib/cjs/components/system-debug-trace/events/redirect-flow.d.ts +10 -0
- package/lib/cjs/components/system-debug-trace/events/redirect-flow.js +18 -0
- package/lib/cjs/components/system-debug-trace/events/redirect-flow.js.map +1 -0
- package/lib/cjs/components/system-debug-trace/events/webview-action-triggered.d.ts +8 -0
- package/lib/cjs/components/system-debug-trace/events/webview-action-triggered.js +18 -0
- package/lib/cjs/components/system-debug-trace/events/webview-action-triggered.js.map +1 -0
- package/lib/cjs/components/system-debug-trace/icons/arrow-progress.d.ts +2 -0
- package/lib/cjs/components/system-debug-trace/icons/arrow-progress.js +10 -0
- package/lib/cjs/components/system-debug-trace/icons/arrow-progress.js.map +1 -0
- package/lib/cjs/components/system-debug-trace/icons/code.d.ts +2 -0
- package/lib/cjs/components/system-debug-trace/icons/code.js +10 -0
- package/lib/cjs/components/system-debug-trace/icons/code.js.map +1 -0
- package/lib/cjs/components/system-debug-trace/icons/split.d.ts +2 -0
- package/lib/cjs/components/system-debug-trace/icons/split.js +10 -0
- package/lib/cjs/components/system-debug-trace/icons/split.js.map +1 -0
- package/lib/cjs/components/system-debug-trace/icons/window-restore.d.ts +2 -0
- package/lib/cjs/components/system-debug-trace/icons/window-restore.js +10 -0
- package/lib/cjs/components/system-debug-trace/icons/window-restore.js.map +1 -0
- package/lib/cjs/components/system-debug-trace/styles.js +7 -4
- package/lib/cjs/components/system-debug-trace/styles.js.map +1 -1
- package/lib/cjs/components/system-debug-trace/types.d.ts +2 -2
- package/lib/cjs/index-types.d.ts +8 -0
- package/lib/cjs/index-types.js.map +1 -1
- package/lib/cjs/webchat/context/index.js +14 -0
- package/lib/cjs/webchat/context/index.js.map +1 -1
- package/lib/esm/components/system-debug-trace/debug-message.js +24 -2
- package/lib/esm/components/system-debug-trace/debug-message.js.map +1 -1
- package/lib/esm/components/system-debug-trace/events/bot-action.d.ts +7 -0
- package/lib/esm/components/system-debug-trace/events/bot-action.js +14 -0
- package/lib/esm/components/system-debug-trace/events/bot-action.js.map +1 -0
- package/lib/esm/components/system-debug-trace/events/conditional-channel.d.ts +7 -0
- package/lib/esm/components/system-debug-trace/events/conditional-channel.js +14 -0
- package/lib/esm/components/system-debug-trace/events/conditional-channel.js.map +1 -0
- package/lib/esm/components/system-debug-trace/events/conditional-country.d.ts +7 -0
- package/lib/esm/components/system-debug-trace/events/conditional-country.js +14 -0
- package/lib/esm/components/system-debug-trace/events/conditional-country.js.map +1 -0
- package/lib/esm/components/system-debug-trace/events/conditional-custom.d.ts +8 -0
- package/lib/esm/components/system-debug-trace/events/conditional-custom.js +14 -0
- package/lib/esm/components/system-debug-trace/events/conditional-custom.js.map +1 -0
- package/lib/esm/components/system-debug-trace/events/conditional-queue-status.d.ts +10 -0
- package/lib/esm/components/system-debug-trace/events/conditional-queue-status.js +16 -0
- package/lib/esm/components/system-debug-trace/events/conditional-queue-status.js.map +1 -0
- package/lib/esm/components/system-debug-trace/events/constants.d.ts +4 -0
- package/lib/esm/components/system-debug-trace/events/constants.js +4 -0
- package/lib/esm/components/system-debug-trace/events/constants.js.map +1 -1
- package/lib/esm/components/system-debug-trace/events/handoff-success.d.ts +2 -0
- package/lib/esm/components/system-debug-trace/events/handoff-success.js +23 -4
- package/lib/esm/components/system-debug-trace/events/handoff-success.js.map +1 -1
- package/lib/esm/components/system-debug-trace/events/index.d.ts +7 -0
- package/lib/esm/components/system-debug-trace/events/index.js +7 -0
- package/lib/esm/components/system-debug-trace/events/index.js.map +1 -1
- package/lib/esm/components/system-debug-trace/events/redirect-flow.d.ts +10 -0
- package/lib/esm/components/system-debug-trace/events/redirect-flow.js +14 -0
- package/lib/esm/components/system-debug-trace/events/redirect-flow.js.map +1 -0
- package/lib/esm/components/system-debug-trace/events/webview-action-triggered.d.ts +8 -0
- package/lib/esm/components/system-debug-trace/events/webview-action-triggered.js +14 -0
- package/lib/esm/components/system-debug-trace/events/webview-action-triggered.js.map +1 -0
- package/lib/esm/components/system-debug-trace/icons/arrow-progress.d.ts +2 -0
- package/lib/esm/components/system-debug-trace/icons/arrow-progress.js +6 -0
- package/lib/esm/components/system-debug-trace/icons/arrow-progress.js.map +1 -0
- package/lib/esm/components/system-debug-trace/icons/code.d.ts +2 -0
- package/lib/esm/components/system-debug-trace/icons/code.js +6 -0
- package/lib/esm/components/system-debug-trace/icons/code.js.map +1 -0
- package/lib/esm/components/system-debug-trace/icons/split.d.ts +2 -0
- package/lib/esm/components/system-debug-trace/icons/split.js +6 -0
- package/lib/esm/components/system-debug-trace/icons/split.js.map +1 -0
- package/lib/esm/components/system-debug-trace/icons/window-restore.d.ts +2 -0
- package/lib/esm/components/system-debug-trace/icons/window-restore.js +6 -0
- package/lib/esm/components/system-debug-trace/icons/window-restore.js.map +1 -0
- package/lib/esm/components/system-debug-trace/styles.js +7 -4
- package/lib/esm/components/system-debug-trace/styles.js.map +1 -1
- package/lib/esm/components/system-debug-trace/types.d.ts +2 -2
- package/lib/esm/index-types.d.ts +8 -0
- package/lib/esm/index-types.js.map +1 -1
- package/lib/esm/webchat/context/index.js +14 -0
- package/lib/esm/webchat/context/index.js.map +1 -1
- package/package.json +2 -2
- package/src/components/system-debug-trace/debug-message.tsx +30 -2
- package/src/components/system-debug-trace/events/bot-action.tsx +28 -0
- package/src/components/system-debug-trace/events/conditional-channel.tsx +28 -0
- package/src/components/system-debug-trace/events/conditional-country.tsx +28 -0
- package/src/components/system-debug-trace/events/conditional-custom.tsx +29 -0
- package/src/components/system-debug-trace/events/conditional-queue-status.tsx +37 -0
- package/src/components/system-debug-trace/events/constants.ts +4 -0
- package/src/components/system-debug-trace/events/handoff-success.tsx +45 -8
- package/src/components/system-debug-trace/events/index.ts +7 -0
- package/src/components/system-debug-trace/events/redirect-flow.tsx +31 -0
- package/src/components/system-debug-trace/events/webview-action-triggered.tsx +29 -0
- package/src/components/system-debug-trace/icons/arrow-progress.tsx +15 -0
- package/src/components/system-debug-trace/icons/code.tsx +15 -0
- package/src/components/system-debug-trace/icons/split.tsx +15 -0
- package/src/components/system-debug-trace/icons/window-restore.tsx +15 -0
- package/src/components/system-debug-trace/styles.ts +7 -4
- package/src/components/system-debug-trace/types.ts +14 -0
- package/src/index-types.ts +9 -0
- package/src/webchat/context/index.tsx +17 -0
|
@@ -4,6 +4,7 @@ exports.DebugMessage = void 0;
|
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const core_1 = require("@botonic/core");
|
|
6
6
|
const react_1 = require("react");
|
|
7
|
+
const context_1 = require("../../webchat/context");
|
|
7
8
|
const events_1 = require("./events");
|
|
8
9
|
const use_last_label_position_1 = require("./hooks/use-last-label-position");
|
|
9
10
|
const icons_1 = require("./icons");
|
|
@@ -22,6 +23,20 @@ const getEventConfig = (debugEvent) => {
|
|
|
22
23
|
return (0, events_1.getKnowledgeBaseEventConfig)(debugEvent);
|
|
23
24
|
case core_1.EventAction.Fallback:
|
|
24
25
|
return (0, events_1.getFallbackEventConfig)(debugEvent);
|
|
26
|
+
case core_1.EventAction.BotAction:
|
|
27
|
+
return (0, events_1.getBotActionEventConfig)(debugEvent);
|
|
28
|
+
case core_1.EventAction.ConditionalChannel:
|
|
29
|
+
return (0, events_1.getConditionalChannelEventConfig)(debugEvent);
|
|
30
|
+
case core_1.EventAction.ConditionalCountry:
|
|
31
|
+
return (0, events_1.getConditionalCountryEventConfig)(debugEvent);
|
|
32
|
+
case core_1.EventAction.ConditionalCustom:
|
|
33
|
+
return (0, events_1.getConditionalCustomEventConfig)(debugEvent);
|
|
34
|
+
case core_1.EventAction.ConditionalQueueStatus:
|
|
35
|
+
return (0, events_1.getConditionalQueueStatusEventConfig)(debugEvent);
|
|
36
|
+
case core_1.EventAction.RedirectFlow:
|
|
37
|
+
return (0, events_1.getRedirectFlowEventConfig)(debugEvent);
|
|
38
|
+
case core_1.EventAction.WebviewActionTriggered:
|
|
39
|
+
return (0, events_1.getWebviewActionTriggeredEventConfig)(debugEvent);
|
|
25
40
|
default:
|
|
26
41
|
return undefined;
|
|
27
42
|
}
|
|
@@ -30,6 +45,7 @@ const DebugMessage = ({ debugEvent, messageId }) => {
|
|
|
30
45
|
var _a;
|
|
31
46
|
const [isExpanded, setIsExpanded] = (0, react_1.useState)(false);
|
|
32
47
|
const wrapperRef = (0, react_1.useRef)(null);
|
|
48
|
+
const { previewUtils } = (0, react_1.useContext)(context_1.WebchatContext);
|
|
33
49
|
const eventConfig = getEventConfig(debugEvent);
|
|
34
50
|
(0, use_last_label_position_1.useLastLabelPosition)({
|
|
35
51
|
wrapperRef,
|
|
@@ -37,6 +53,12 @@ const DebugMessage = ({ debugEvent, messageId }) => {
|
|
|
37
53
|
debugEvent,
|
|
38
54
|
isCollapsible: (_a = eventConfig === null || eventConfig === void 0 ? void 0 : eventConfig.collapsible) !== null && _a !== void 0 ? _a : false,
|
|
39
55
|
});
|
|
56
|
+
(0, react_1.useEffect)(() => {
|
|
57
|
+
var _a;
|
|
58
|
+
if (isExpanded) {
|
|
59
|
+
(_a = previewUtils === null || previewUtils === void 0 ? void 0 : previewUtils.trackPreviewEventOpened) === null || _a === void 0 ? void 0 : _a.call(previewUtils, { action: debugEvent.action });
|
|
60
|
+
}
|
|
61
|
+
}, [previewUtils, isExpanded, debugEvent]);
|
|
40
62
|
if (!eventConfig) {
|
|
41
63
|
return null;
|
|
42
64
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"debug-message.js","sourceRoot":"","sources":["../../../../src/components/system-debug-trace/debug-message.tsx"],"names":[],"mappings":";;;;AAAA,wCAA2C;AAC3C,
|
|
1
|
+
{"version":3,"file":"debug-message.js","sourceRoot":"","sources":["../../../../src/components/system-debug-trace/debug-message.tsx"],"names":[],"mappings":";;;;AAAA,wCAA2C;AAC3C,iCAAsE;AAEtE,mDAAsD;AACtD,qCAciB;AACjB,6EAAsE;AACtE,mCAAkD;AAClD,qCAQiB;AAGjB,MAAM,cAAc,GAAG,CACrB,UAAsB,EACQ,EAAE;IAChC,QAAQ,UAAU,CAAC,MAAM,EAAE;QACzB,KAAK,kBAAW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AC,CAAC,cAAc,UAAU,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,EAAE;QAC/C,CAAC,CAAC,EAAE,CAAA;IAEN,OAAO,CACL,wBAAC,6BAAoB,kBACnB,SAAS,EAAE,kBAAkB,EAC7B,OAAO,EAAE,WAAW,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,iBAE9C,wBAAC,0BAAiB,eAChB,uBAAC,wBAAe,cAAE,IAAI,GAAmB,EACzC,uBAAC,yBAAgB,cAAE,KAAK,GAAoB,EAC3C,WAAW,IAAI,CACd,uBAAC,yBAAgB,cACd,UAAU,CAAC,CAAC,CAAC,uBAAC,kBAAU,KAAG,CAAC,CAAC,CAAC,uBAAC,oBAAY,KAAG,GAC9B,CACpB,IACiB,EACnB,SAAS,IAAI,CACZ,uBAAC,2BAAkB,kBAAC,KAAK,EAAE,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,EAAE,gBACnE,uBAAC,kCAAyB,kBAAC,GAAG,EAAE,UAAU,gBACxC,uBAAC,SAAS,oBAAK,UAAU,IAAE,SAAS,EAAE,SAAS,IAAI,IACzB,IACT,CACtB,KACoB,CACxB,CAAA;AACH,CAAC,CAAA;AAlEY,QAAA,YAAY,gBAkExB"}
|
|
@@ -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,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getBotActionEventConfig = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const core_1 = require("@botonic/core");
|
|
6
|
+
const code_1 = require("../icons/code");
|
|
7
|
+
const getBotActionEventConfig = (data) => {
|
|
8
|
+
const title = ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["Bot action triggered ", (0, jsx_runtime_1.jsxs)("span", { children: ["- ", data.payload] })] }));
|
|
9
|
+
return {
|
|
10
|
+
action: core_1.EventAction.BotAction,
|
|
11
|
+
title,
|
|
12
|
+
component: null,
|
|
13
|
+
icon: (0, jsx_runtime_1.jsx)(code_1.CodeSvg, {}),
|
|
14
|
+
collapsible: false,
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
exports.getBotActionEventConfig = getBotActionEventConfig;
|
|
18
|
+
//# 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,wCAA2C;AAG3C,wCAAuC;AAQhC,MAAM,uBAAuB,GAAG,CACrC,IAAyB,EACP,EAAE;IACpB,MAAM,KAAK,GAAG,CACZ,sFACuB,mDAAS,IAAI,CAAC,OAAO,IAAQ,IACjD,CACJ,CAAA;IAED,OAAO;QACL,MAAM,EAAE,kBAAW,CAAC,SAAS;QAC7B,KAAK;QACL,SAAS,EAAE,IAAI;QACf,IAAI,EAAE,uBAAC,cAAO,KAAG;QACjB,WAAW,EAAE,KAAK;KACnB,CAAA;AACH,CAAC,CAAA;AAhBY,QAAA,uBAAuB,2BAgBnC"}
|
|
@@ -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,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getConditionalChannelEventConfig = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const core_1 = require("@botonic/core");
|
|
6
|
+
const split_1 = require("../icons/split");
|
|
7
|
+
const getConditionalChannelEventConfig = (data) => {
|
|
8
|
+
const title = ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["Channel checked ", (0, jsx_runtime_1.jsxs)("span", { children: ["- ", data.channel] })] }));
|
|
9
|
+
return {
|
|
10
|
+
action: core_1.EventAction.ConditionalChannel,
|
|
11
|
+
title,
|
|
12
|
+
component: null,
|
|
13
|
+
icon: (0, jsx_runtime_1.jsx)(split_1.SplitSvg, {}),
|
|
14
|
+
collapsible: false,
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
exports.getConditionalChannelEventConfig = getConditionalChannelEventConfig;
|
|
18
|
+
//# 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,wCAA2C;AAG3C,0CAAyC;AAQlC,MAAM,gCAAgC,GAAG,CAC9C,IAAkC,EAChB,EAAE;IACpB,MAAM,KAAK,GAAG,CACZ,iFACkB,mDAAS,IAAI,CAAC,OAAO,IAAQ,IAC5C,CACJ,CAAA;IAED,OAAO;QACL,MAAM,EAAE,kBAAW,CAAC,kBAAkB;QACtC,KAAK;QACL,SAAS,EAAE,IAAI;QACf,IAAI,EAAE,uBAAC,gBAAQ,KAAG;QAClB,WAAW,EAAE,KAAK;KACnB,CAAA;AACH,CAAC,CAAA;AAhBY,QAAA,gCAAgC,oCAgB5C"}
|
|
@@ -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,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getConditionalCountryEventConfig = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const core_1 = require("@botonic/core");
|
|
6
|
+
const split_1 = require("../icons/split");
|
|
7
|
+
const getConditionalCountryEventConfig = (data) => {
|
|
8
|
+
const title = ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["Country checked ", (0, jsx_runtime_1.jsxs)("span", { children: ["- ", data.country] })] }));
|
|
9
|
+
return {
|
|
10
|
+
action: core_1.EventAction.ConditionalCountry,
|
|
11
|
+
title,
|
|
12
|
+
component: null,
|
|
13
|
+
icon: (0, jsx_runtime_1.jsx)(split_1.SplitSvg, {}),
|
|
14
|
+
collapsible: false,
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
exports.getConditionalCountryEventConfig = getConditionalCountryEventConfig;
|
|
18
|
+
//# 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,wCAA2C;AAG3C,0CAAyC;AAQlC,MAAM,gCAAgC,GAAG,CAC9C,IAAkC,EAChB,EAAE;IACpB,MAAM,KAAK,GAAG,CACZ,iFACkB,mDAAS,IAAI,CAAC,OAAO,IAAQ,IAC5C,CACJ,CAAA;IAED,OAAO;QACL,MAAM,EAAE,kBAAW,CAAC,kBAAkB;QACtC,KAAK;QACL,SAAS,EAAE,IAAI;QACf,IAAI,EAAE,uBAAC,gBAAQ,KAAG;QAClB,WAAW,EAAE,KAAK;KACnB,CAAA;AACH,CAAC,CAAA;AAhBY,QAAA,gCAAgC,oCAgB5C"}
|
|
@@ -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,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getConditionalCustomEventConfig = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const core_1 = require("@botonic/core");
|
|
6
|
+
const split_1 = require("../icons/split");
|
|
7
|
+
const getConditionalCustomEventConfig = (data) => {
|
|
8
|
+
const title = ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["Custom condition checked ", (0, jsx_runtime_1.jsxs)("span", { children: ["- ", data.conditional_variable] })] }));
|
|
9
|
+
return {
|
|
10
|
+
action: core_1.EventAction.ConditionalCustom,
|
|
11
|
+
title,
|
|
12
|
+
component: null,
|
|
13
|
+
icon: (0, jsx_runtime_1.jsx)(split_1.SplitSvg, {}),
|
|
14
|
+
collapsible: false,
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
exports.getConditionalCustomEventConfig = getConditionalCustomEventConfig;
|
|
18
|
+
//# 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,wCAA2C;AAG3C,0CAAyC;AASlC,MAAM,+BAA+B,GAAG,CAC7C,IAAiC,EACf,EAAE;IACpB,MAAM,KAAK,GAAG,CACZ,0FAC2B,mDAAS,IAAI,CAAC,oBAAoB,IAAQ,IAClE,CACJ,CAAA;IAED,OAAO;QACL,MAAM,EAAE,kBAAW,CAAC,iBAAiB;QACrC,KAAK;QACL,SAAS,EAAE,IAAI;QACf,IAAI,EAAE,uBAAC,gBAAQ,KAAG;QAClB,WAAW,EAAE,KAAK;KACnB,CAAA;AACH,CAAC,CAAA;AAhBY,QAAA,+BAA+B,mCAgB3C"}
|
|
@@ -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,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getConditionalQueueStatusEventConfig = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const core_1 = require("@botonic/core");
|
|
6
|
+
const split_1 = require("../icons/split");
|
|
7
|
+
const getConditionalQueueStatusEventConfig = (data) => {
|
|
8
|
+
const queueStatus = data.is_queue_open ? 'Open' : 'Closed';
|
|
9
|
+
const agentStatus = data.is_available_agent ? 'Available' : 'Unavailable';
|
|
10
|
+
const title = ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["Queue status checked", ' ', (0, jsx_runtime_1.jsxs)("span", { children: ["- ", queueStatus, " (Agent ", agentStatus, ")"] })] }));
|
|
11
|
+
return {
|
|
12
|
+
action: core_1.EventAction.ConditionalQueueStatus,
|
|
13
|
+
title,
|
|
14
|
+
component: null,
|
|
15
|
+
icon: (0, jsx_runtime_1.jsx)(split_1.SplitSvg, {}),
|
|
16
|
+
collapsible: false,
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
exports.getConditionalQueueStatusEventConfig = getConditionalQueueStatusEventConfig;
|
|
20
|
+
//# 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,wCAA2C;AAG3C,0CAAyC;AAWlC,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,qFACuB,GAAG,EACxB,mDACK,WAAW,cAAU,WAAW,SAC9B,IACN,CACJ,CAAA;IAED,OAAO;QACL,MAAM,EAAE,kBAAW,CAAC,sBAAsB;QAC1C,KAAK;QACL,SAAS,EAAE,IAAI;QACf,IAAI,EAAE,uBAAC,gBAAQ,KAAG;QAClB,WAAW,EAAE,KAAK;KACnB,CAAA;AACH,CAAC,CAAA;AAtBY,QAAA,oCAAoC,wCAsBhD"}
|
|
@@ -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
|
};
|
|
@@ -10,9 +10,13 @@ exports.LABELS = {
|
|
|
10
10
|
KNOWLEDGE_GATHERED: 'Knowledge gathered',
|
|
11
11
|
EXECUTED_TOOLS: 'Executed tools',
|
|
12
12
|
NO_TOOLS_EXECUTED: 'No tools executed',
|
|
13
|
+
AUTO_ASSIGN_ON: 'ON',
|
|
14
|
+
AUTO_ASSIGN_OFF: 'OFF',
|
|
13
15
|
EXIT: 'Exit',
|
|
14
16
|
ERROR: 'Error',
|
|
15
17
|
QUEUE: 'Queue',
|
|
18
|
+
AUTO_ASSIGN: 'Auto-assign',
|
|
19
|
+
NOTE: 'Note',
|
|
16
20
|
KNOWLEDGE_BASE_FAIL_REASON: 'Knowledge Base Fail Reason',
|
|
17
21
|
SEE_CHUNKS_BUTTON: 'See chunks',
|
|
18
22
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../src/components/system-debug-trace/events/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,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,QAAA,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,13 +1,33 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getHandoffSuccessEventConfig = exports.HandoffSuccess = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
4
5
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
6
|
const core_1 = require("@botonic/core");
|
|
7
|
+
const react_1 = require("react");
|
|
8
|
+
const context_1 = require("../../../webchat/context");
|
|
6
9
|
const icons_1 = require("../icons");
|
|
7
10
|
const styles_1 = require("../styles");
|
|
8
11
|
const constants_1 = require("./constants");
|
|
9
12
|
const HandoffSuccess = (props) => {
|
|
10
|
-
|
|
13
|
+
const { previewUtils } = (0, react_1.useContext)(context_1.WebchatContext);
|
|
14
|
+
const [noteMessage, setNoteMessage] = (0, react_1.useState)();
|
|
15
|
+
(0, react_1.useEffect)(() => {
|
|
16
|
+
const fetchNoteMessage = () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
17
|
+
if (!previewUtils || !props.handoff_note_id) {
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
const noteMessage = yield previewUtils.getMessageById(props.handoff_note_id);
|
|
21
|
+
if (!noteMessage) {
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
setNoteMessage(noteMessage.text);
|
|
25
|
+
});
|
|
26
|
+
fetchNoteMessage();
|
|
27
|
+
}, [previewUtils, props.handoff_note_id]);
|
|
28
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(styles_1.StyledDebugDetail, { children: [(0, jsx_runtime_1.jsx)(styles_1.StyledDebugLabel, { children: constants_1.LABELS.QUEUE }), (0, jsx_runtime_1.jsx)(styles_1.StyledDebugValue, { children: props.handoff_queue_name })] }), (0, jsx_runtime_1.jsxs)(styles_1.StyledDebugDetail, { children: [(0, jsx_runtime_1.jsx)(styles_1.StyledDebugLabel, { children: constants_1.LABELS.AUTO_ASSIGN }), (0, jsx_runtime_1.jsx)(styles_1.StyledDebugValue, { children: props.handoff_has_auto_assign
|
|
29
|
+
? constants_1.LABELS.AUTO_ASSIGN_ON
|
|
30
|
+
: constants_1.LABELS.AUTO_ASSIGN_OFF })] }), Boolean(noteMessage) && ((0, jsx_runtime_1.jsxs)(styles_1.StyledDebugDetail, { children: [(0, jsx_runtime_1.jsx)(styles_1.StyledDebugLabel, { children: constants_1.LABELS.NOTE }), (0, jsx_runtime_1.jsx)(styles_1.StyledDebugValue, { children: noteMessage })] }))] }));
|
|
11
31
|
};
|
|
12
32
|
exports.HandoffSuccess = HandoffSuccess;
|
|
13
33
|
const getHandoffSuccessEventConfig = (data) => {
|
|
@@ -15,9 +35,8 @@ const getHandoffSuccessEventConfig = (data) => {
|
|
|
15
35
|
action: core_1.EventAction.HandoffSuccess,
|
|
16
36
|
title: ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["Handoff to agent ", (0, jsx_runtime_1.jsxs)("span", { children: ["- ", data.handoff_queue_name] })] })),
|
|
17
37
|
icon: (0, jsx_runtime_1.jsx)(icons_1.HeadSetSvg, {}),
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
collapsible: false,
|
|
38
|
+
component: exports.HandoffSuccess,
|
|
39
|
+
collapsible: true,
|
|
21
40
|
};
|
|
22
41
|
};
|
|
23
42
|
exports.getHandoffSuccessEventConfig = getHandoffSuccessEventConfig;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handoff-success.js","sourceRoot":"","sources":["../../../../../src/components/system-debug-trace/events/handoff-success.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"handoff-success.js","sourceRoot":"","sources":["../../../../../src/components/system-debug-trace/events/handoff-success.tsx"],"names":[],"mappings":";;;;;AAAA,wCAA2C;AAC3C,iCAA8D;AAE9D,sDAAyD;AACzD,oCAAqC;AACrC,sCAIkB;AAElB,2CAAoC;AAU7B,MAAM,cAAc,GAAG,CAAC,KAA+B,EAAE,EAAE;IAChE,MAAM,EAAE,YAAY,EAAE,GAAG,IAAA,kBAAU,EAAC,wBAAc,CAAC,CAAA;IACnD,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,IAAA,gBAAQ,GAAU,CAAA;IAExD,IAA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uBAAC,kBAAU,KAAG;QACpB,SAAS,EAAE,sBAAc;QACzB,WAAW,EAAE,IAAI;KAClB,CAAA;AACH,CAAC,CAAA;AAdY,QAAA,4BAA4B,gCAcxC"}
|
|
@@ -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';
|
|
@@ -2,10 +2,17 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
tslib_1.__exportStar(require("./ai-agent"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./bot-action"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./conditional-channel"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./conditional-country"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./conditional-custom"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./conditional-queue-status"), exports);
|
|
5
10
|
tslib_1.__exportStar(require("./fallback"), exports);
|
|
6
11
|
tslib_1.__exportStar(require("./handoff-success"), exports);
|
|
7
12
|
tslib_1.__exportStar(require("./keyword"), exports);
|
|
8
13
|
tslib_1.__exportStar(require("./knowledge-base"), exports);
|
|
9
14
|
tslib_1.__exportStar(require("./knowledge-bases-types"), exports);
|
|
15
|
+
tslib_1.__exportStar(require("./redirect-flow"), exports);
|
|
10
16
|
tslib_1.__exportStar(require("./smart-intent"), exports);
|
|
17
|
+
tslib_1.__exportStar(require("./webview-action-triggered"), exports);
|
|
11
18
|
//# 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,qDAA0B;AAC1B,qDAA0B;AAC1B,4DAAiC;AACjC,oDAAyB;AACzB,2DAAgC;AAChC,kEAAuC;AACvC,yDAA8B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/system-debug-trace/events/index.ts"],"names":[],"mappings":";;;AAAA,qDAA0B;AAC1B,uDAA4B;AAC5B,gEAAqC;AACrC,gEAAqC;AACrC,+DAAoC;AACpC,qEAA0C;AAC1C,qDAA0B;AAC1B,4DAAiC;AACjC,oDAAyB;AACzB,2DAAgC;AAChC,kEAAuC;AACvC,0DAA+B;AAC/B,yDAA8B;AAC9B,qEAA0C"}
|
|
@@ -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,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getRedirectFlowEventConfig = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const core_1 = require("@botonic/core");
|
|
6
|
+
const arrow_progress_1 = require("../icons/arrow-progress");
|
|
7
|
+
const getRedirectFlowEventConfig = (data) => {
|
|
8
|
+
const title = ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["Redirected to flow ", (0, jsx_runtime_1.jsxs)("span", { children: ["- ", data.flow_target_name] })] }));
|
|
9
|
+
return {
|
|
10
|
+
action: core_1.EventAction.RedirectFlow,
|
|
11
|
+
title,
|
|
12
|
+
component: null,
|
|
13
|
+
icon: (0, jsx_runtime_1.jsx)(arrow_progress_1.ArrowProgressSvg, {}),
|
|
14
|
+
collapsible: false,
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
exports.getRedirectFlowEventConfig = getRedirectFlowEventConfig;
|
|
18
|
+
//# 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,wCAA2C;AAG3C,4DAA0D;AAWnD,MAAM,0BAA0B,GAAG,CACxC,IAA4B,EACV,EAAE;IACpB,MAAM,KAAK,GAAG,CACZ,oFACqB,mDAAS,IAAI,CAAC,gBAAgB,IAAQ,IACxD,CACJ,CAAA;IAED,OAAO;QACL,MAAM,EAAE,kBAAW,CAAC,YAAY;QAChC,KAAK;QACL,SAAS,EAAE,IAAI;QACf,IAAI,EAAE,uBAAC,iCAAgB,KAAG;QAC1B,WAAW,EAAE,KAAK;KACnB,CAAA;AACH,CAAC,CAAA;AAhBY,QAAA,0BAA0B,8BAgBtC"}
|
|
@@ -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,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getWebviewActionTriggeredEventConfig = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const core_1 = require("@botonic/core");
|
|
6
|
+
const window_restore_1 = require("../icons/window-restore");
|
|
7
|
+
const getWebviewActionTriggeredEventConfig = (data) => {
|
|
8
|
+
const title = ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["Webview action triggered ", (0, jsx_runtime_1.jsxs)("span", { children: ["- ", data.webview_name] })] }));
|
|
9
|
+
return {
|
|
10
|
+
action: core_1.EventAction.WebviewActionTriggered,
|
|
11
|
+
title,
|
|
12
|
+
component: null,
|
|
13
|
+
icon: (0, jsx_runtime_1.jsx)(window_restore_1.WindowRestoreSvg, {}),
|
|
14
|
+
collapsible: false,
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
exports.getWebviewActionTriggeredEventConfig = getWebviewActionTriggeredEventConfig;
|
|
18
|
+
//# 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,wCAA2C;AAG3C,4DAA0D;AASnD,MAAM,oCAAoC,GAAG,CAClD,IAAsC,EACpB,EAAE;IACpB,MAAM,KAAK,GAAG,CACZ,0FAC2B,mDAAS,IAAI,CAAC,YAAY,IAAQ,IAC1D,CACJ,CAAA;IAED,OAAO;QACL,MAAM,EAAE,kBAAW,CAAC,sBAAsB;QAC1C,KAAK;QACL,SAAS,EAAE,IAAI;QACf,IAAI,EAAE,uBAAC,iCAAgB,KAAG;QAC1B,WAAW,EAAE,KAAK;KACnB,CAAA;AACH,CAAC,CAAA;AAhBY,QAAA,oCAAoC,wCAgBhD"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ArrowProgressSvg = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const constants_1 = require("../../../constants");
|
|
6
|
+
const ArrowProgressSvg = ({ color = constants_1.COLORS.N500 }) => {
|
|
7
|
+
return ((0, jsx_runtime_1.jsx)("svg", Object.assign({ xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 640 640', fill: color }, { children: (0, jsx_runtime_1.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' }) })));
|
|
8
|
+
};
|
|
9
|
+
exports.ArrowProgressSvg = ArrowProgressSvg;
|
|
10
|
+
//# 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,kDAA2C;AAGpC,MAAM,gBAAgB,GAAG,CAAC,EAAE,KAAK,GAAG,kBAAM,CAAC,IAAI,EAAa,EAAE,EAAE;IACrE,OAAO,CACL,8CAAK,KAAK,EAAC,4BAA4B,EAAC,OAAO,EAAC,aAAa,EAAC,IAAI,EAAE,KAAK,gBACvE,iCACE,CAAC,EAAC,2hCAA2hC,EAC7hC,IAAI,EAAC,cAAc,GACnB,IACE,CACP,CAAA;AACH,CAAC,CAAA;AATY,QAAA,gBAAgB,oBAS5B"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CodeSvg = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const constants_1 = require("../../../constants");
|
|
6
|
+
const CodeSvg = ({ color = constants_1.COLORS.N500 }) => {
|
|
7
|
+
return ((0, jsx_runtime_1.jsx)("svg", Object.assign({ xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 640 640', fill: color }, { children: (0, jsx_runtime_1.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' }) })));
|
|
8
|
+
};
|
|
9
|
+
exports.CodeSvg = CodeSvg;
|
|
10
|
+
//# 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,kDAA2C;AAGpC,MAAM,OAAO,GAAG,CAAC,EAAE,KAAK,GAAG,kBAAM,CAAC,IAAI,EAAa,EAAE,EAAE;IAC5D,OAAO,CACL,8CAAK,KAAK,EAAC,4BAA4B,EAAC,OAAO,EAAC,aAAa,EAAC,IAAI,EAAE,KAAK,gBACvE,iCACE,CAAC,EAAC,0oBAA0oB,EAC5oB,IAAI,EAAC,cAAc,GACnB,IACE,CACP,CAAA;AACH,CAAC,CAAA;AATY,QAAA,OAAO,WASnB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SplitSvg = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const constants_1 = require("../../../constants");
|
|
6
|
+
const SplitSvg = ({ color = constants_1.COLORS.N500 }) => {
|
|
7
|
+
return ((0, jsx_runtime_1.jsx)("svg", Object.assign({ xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 640 640', fill: color }, { children: (0, jsx_runtime_1.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' }) })));
|
|
8
|
+
};
|
|
9
|
+
exports.SplitSvg = SplitSvg;
|
|
10
|
+
//# 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,kDAA2C;AAGpC,MAAM,QAAQ,GAAG,CAAC,EAAE,KAAK,GAAG,kBAAM,CAAC,IAAI,EAAa,EAAE,EAAE;IAC7D,OAAO,CACL,8CAAK,KAAK,EAAC,4BAA4B,EAAC,OAAO,EAAC,aAAa,EAAC,IAAI,EAAE,KAAK,gBACvE,iCACE,CAAC,EAAC,swBAAswB,EACxwB,IAAI,EAAC,cAAc,GACnB,IACE,CACP,CAAA;AACH,CAAC,CAAA;AATY,QAAA,QAAQ,YASpB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WindowRestoreSvg = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const constants_1 = require("../../../constants");
|
|
6
|
+
const WindowRestoreSvg = ({ color = constants_1.COLORS.N500 }) => {
|
|
7
|
+
return ((0, jsx_runtime_1.jsx)("svg", Object.assign({ xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 640 640', fill: color }, { children: (0, jsx_runtime_1.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' }) })));
|
|
8
|
+
};
|
|
9
|
+
exports.WindowRestoreSvg = WindowRestoreSvg;
|
|
10
|
+
//# 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,kDAA2C;AAGpC,MAAM,gBAAgB,GAAG,CAAC,EAAE,KAAK,GAAG,kBAAM,CAAC,IAAI,EAAa,EAAE,EAAE;IACrE,OAAO,CACL,8CAAK,KAAK,EAAC,4BAA4B,EAAC,OAAO,EAAC,aAAa,EAAC,IAAI,EAAE,KAAK,gBACvE,iCACE,CAAC,EAAC,waAAwa,EAC1a,IAAI,EAAC,cAAc,GACnB,IACE,CACP,CAAA;AACH,CAAC,CAAA;AATY,QAAA,gBAAgB,oBAS5B"}
|
|
@@ -112,13 +112,14 @@ exports.StyledDebugLabel = styled_components_1.default.strong `
|
|
|
112
112
|
line-height: 1.5;
|
|
113
113
|
`;
|
|
114
114
|
exports.StyledDebugValue = styled_components_1.default.div `
|
|
115
|
-
display: flex;
|
|
116
|
-
align-items: center;
|
|
117
|
-
gap: 8px;
|
|
118
115
|
font-weight: 600;
|
|
119
116
|
font-size: 12px;
|
|
120
117
|
color: ${constants_1.COLORS.N700};
|
|
121
118
|
line-height: 1.5;
|
|
119
|
+
width: 100%;
|
|
120
|
+
overflow-wrap: break-word;
|
|
121
|
+
word-break: break-word;
|
|
122
|
+
white-space: pre-wrap;
|
|
122
123
|
|
|
123
124
|
> svg {
|
|
124
125
|
width: 14px;
|
|
@@ -126,7 +127,9 @@ exports.StyledDebugValue = styled_components_1.default.div `
|
|
|
126
127
|
min-width: 14px;
|
|
127
128
|
min-height: 14px;
|
|
128
129
|
flex-shrink: 0;
|
|
129
|
-
display: block;
|
|
130
|
+
display: inline-block;
|
|
131
|
+
vertical-align: middle;
|
|
132
|
+
margin-right: 8px;
|
|
130
133
|
}
|
|
131
134
|
`;
|
|
132
135
|
exports.StyledDebugItemWithIcon = styled_components_1.default.div `
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../src/components/system-debug-trace/styles.ts"],"names":[],"mappings":";;;;AAAA,kFAAsC;AAEtC,+CAAwC;AAE3B,QAAA,oBAAoB,GAAG,2BAAM,CAAC,GAAG,CAAA;;;;;;;sBAOxB,kBAAM,CAAC,WAAW;;;;;;;;;;;;;0BAad,kBAAM,CAAC,GAAG;;;CAGnC,CAAA;AAEY,QAAA,iBAAiB,GAAG,2BAAM,CAAC,GAAG,CAAA;;;;;;;;;CAS1C,CAAA;AAEY,QAAA,gBAAgB,GAAG,2BAAM,CAAC,IAAI,CAAA;;;;;;;;;;;;CAY1C,CAAA;AAEY,QAAA,eAAe,GAAG,2BAAM,CAAC,IAAI,CAAA;;;;;;;;;;;;;CAazC,CAAA;AAEY,QAAA,gBAAgB,GAAG,2BAAM,CAAC,IAAI,CAAA;;;;;;;WAOhC,kBAAM,CAAC,IAAI;;;;;;;;CAQrB,CAAA;AAEY,QAAA,kBAAkB,GAAG,2BAAM,CAAC,GAAG,CAAA;;;;;;;;;;WAUjC,kBAAM,CAAC,IAAI;CACrB,CAAA;AAIY,QAAA,iBAAiB,GAAG,2BAAM,CAAC,GAAG,CAAwB;;;;;mBAKhD,CAAC,EAAE,WAAW,EAAE,EAAE,EAAE,CAAC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,2BAAM,CAAC,CAAC,CAAA;;;;WAIjC,kBAAM,CAAC,IAAI;;;;;;;;;;;aAWT,kBAAM,CAAC,YAAY;;;;aAInB,kBAAM,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;
|
package/lib/cjs/index-types.d.ts
CHANGED
|
@@ -52,9 +52,17 @@ interface AddBotResponseArgs {
|
|
|
52
52
|
interface AddSystemResponseArgs {
|
|
53
53
|
response: any;
|
|
54
54
|
}
|
|
55
|
+
export interface MinimalHubtypeMessage {
|
|
56
|
+
id: string;
|
|
57
|
+
type: string;
|
|
58
|
+
action: string;
|
|
59
|
+
text: string;
|
|
60
|
+
}
|
|
55
61
|
export interface PreviewUtils {
|
|
56
62
|
getChunkIdsGroupedBySource: (chunkIds: string[]) => Promise<ChunkIdsGroupedBySourceData[]>;
|
|
57
63
|
onClickOpenChunks: (chunkIdsGroupedBySource: ChunkIdsGroupedBySourceData[]) => void;
|
|
64
|
+
getMessageById: (messageId: string) => Promise<MinimalHubtypeMessage>;
|
|
65
|
+
trackPreviewEventOpened: (eventProperties: Record<string, unknown>) => void;
|
|
58
66
|
}
|
|
59
67
|
export interface WebchatArgs {
|
|
60
68
|
theme?: Partial<WebchatTheme>;
|