@botonic/react 0.40.1 → 0.41.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/components/message/index.js +5 -1
- package/lib/cjs/components/message/index.js.map +1 -1
- package/lib/cjs/components/message/styles.d.ts +4 -2
- package/lib/cjs/components/message/styles.js +1 -0
- package/lib/cjs/components/message/styles.js.map +1 -1
- package/lib/cjs/components/system-debug-trace/debug-message.d.ts +7 -0
- package/lib/cjs/components/system-debug-trace/debug-message.js +62 -0
- package/lib/cjs/components/system-debug-trace/debug-message.js.map +1 -0
- package/lib/cjs/components/system-debug-trace/events/ai-agent.d.ts +24 -0
- package/lib/cjs/components/system-debug-trace/events/ai-agent.js +60 -0
- package/lib/cjs/components/system-debug-trace/events/ai-agent.js.map +1 -0
- package/lib/cjs/components/system-debug-trace/events/components/guardrail-item.d.ts +14 -0
- package/lib/cjs/components/system-debug-trace/events/components/guardrail-item.js +12 -0
- package/lib/cjs/components/system-debug-trace/events/components/guardrail-item.js.map +1 -0
- package/lib/cjs/components/system-debug-trace/events/components/index.d.ts +2 -0
- package/lib/cjs/components/system-debug-trace/events/components/index.js +6 -0
- package/lib/cjs/components/system-debug-trace/events/components/index.js.map +1 -0
- package/lib/cjs/components/system-debug-trace/events/components/sources-section.d.ts +11 -0
- package/lib/cjs/components/system-debug-trace/events/components/sources-section.js +21 -0
- package/lib/cjs/components/system-debug-trace/events/components/sources-section.js.map +1 -0
- package/lib/cjs/components/system-debug-trace/events/constants.d.ts +15 -0
- package/lib/cjs/components/system-debug-trace/events/constants.js +19 -0
- package/lib/cjs/components/system-debug-trace/events/constants.js.map +1 -0
- package/lib/cjs/components/system-debug-trace/events/fallback.d.ts +9 -0
- package/lib/cjs/components/system-debug-trace/events/fallback.js +19 -0
- package/lib/cjs/components/system-debug-trace/events/fallback.js.map +1 -0
- package/lib/cjs/components/system-debug-trace/events/handoff-success.d.ts +9 -0
- package/lib/cjs/components/system-debug-trace/events/handoff-success.js +24 -0
- package/lib/cjs/components/system-debug-trace/events/handoff-success.js.map +1 -0
- package/lib/cjs/components/system-debug-trace/events/index.d.ts +7 -0
- package/lib/cjs/components/system-debug-trace/events/index.js +11 -0
- package/lib/cjs/components/system-debug-trace/events/index.js.map +1 -0
- package/lib/cjs/components/system-debug-trace/events/keyword.d.ts +10 -0
- package/lib/cjs/components/system-debug-trace/events/keyword.js +18 -0
- package/lib/cjs/components/system-debug-trace/events/keyword.js.map +1 -0
- package/lib/cjs/components/system-debug-trace/events/knowledge-base.d.ts +17 -0
- package/lib/cjs/components/system-debug-trace/events/knowledge-base.js +42 -0
- package/lib/cjs/components/system-debug-trace/events/knowledge-base.js.map +1 -0
- package/lib/cjs/components/system-debug-trace/events/knowledge-bases-types.d.ts +31 -0
- package/lib/cjs/components/system-debug-trace/events/knowledge-bases-types.js +3 -0
- package/lib/cjs/components/system-debug-trace/events/knowledge-bases-types.js.map +1 -0
- package/lib/cjs/components/system-debug-trace/events/smart-intent.d.ts +7 -0
- package/lib/cjs/components/system-debug-trace/events/smart-intent.js +17 -0
- package/lib/cjs/components/system-debug-trace/events/smart-intent.js.map +1 -0
- package/lib/cjs/components/system-debug-trace/hooks/use-knowledge-base-info.d.ts +19 -0
- package/lib/cjs/components/system-debug-trace/hooks/use-knowledge-base-info.js +129 -0
- package/lib/cjs/components/system-debug-trace/hooks/use-knowledge-base-info.js.map +1 -0
- package/lib/cjs/components/system-debug-trace/hooks/use-last-label-position.d.ts +9 -0
- package/lib/cjs/components/system-debug-trace/hooks/use-last-label-position.js +72 -0
- package/lib/cjs/components/system-debug-trace/hooks/use-last-label-position.js.map +1 -0
- package/lib/cjs/components/system-debug-trace/icons/brain.d.ts +2 -0
- package/lib/cjs/components/system-debug-trace/icons/brain.js +10 -0
- package/lib/cjs/components/system-debug-trace/icons/brain.js.map +1 -0
- package/lib/cjs/components/system-debug-trace/icons/caret-down.d.ts +2 -0
- package/lib/cjs/components/system-debug-trace/icons/caret-down.js +10 -0
- package/lib/cjs/components/system-debug-trace/icons/caret-down.js.map +1 -0
- package/lib/cjs/components/system-debug-trace/icons/caret-up.d.ts +2 -0
- package/lib/cjs/components/system-debug-trace/icons/caret-up.js +10 -0
- package/lib/cjs/components/system-debug-trace/icons/caret-up.js.map +1 -0
- package/lib/cjs/components/system-debug-trace/icons/circle-check.d.ts +2 -0
- package/lib/cjs/components/system-debug-trace/icons/circle-check.js +10 -0
- package/lib/cjs/components/system-debug-trace/icons/circle-check.js.map +1 -0
- package/lib/cjs/components/system-debug-trace/icons/file-pdf.d.ts +2 -0
- package/lib/cjs/components/system-debug-trace/icons/file-pdf.js +10 -0
- package/lib/cjs/components/system-debug-trace/icons/file-pdf.js.map +1 -0
- package/lib/cjs/components/system-debug-trace/icons/file-word.d.ts +2 -0
- package/lib/cjs/components/system-debug-trace/icons/file-word.js +10 -0
- package/lib/cjs/components/system-debug-trace/icons/file-word.js.map +1 -0
- package/lib/cjs/components/system-debug-trace/icons/hand.d.ts +2 -0
- package/lib/cjs/components/system-debug-trace/icons/hand.js +10 -0
- package/lib/cjs/components/system-debug-trace/icons/hand.js.map +1 -0
- package/lib/cjs/components/system-debug-trace/icons/head-set.d.ts +2 -0
- package/lib/cjs/components/system-debug-trace/icons/head-set.js +10 -0
- package/lib/cjs/components/system-debug-trace/icons/head-set.js.map +1 -0
- package/lib/cjs/components/system-debug-trace/icons/index.d.ts +13 -0
- package/lib/cjs/components/system-debug-trace/icons/index.js +17 -0
- package/lib/cjs/components/system-debug-trace/icons/index.js.map +1 -0
- package/lib/cjs/components/system-debug-trace/icons/life-ring.d.ts +2 -0
- package/lib/cjs/components/system-debug-trace/icons/life-ring.js +10 -0
- package/lib/cjs/components/system-debug-trace/icons/life-ring.js.map +1 -0
- package/lib/cjs/components/system-debug-trace/icons/link.d.ts +2 -0
- package/lib/cjs/components/system-debug-trace/icons/link.js +10 -0
- package/lib/cjs/components/system-debug-trace/icons/link.js.map +1 -0
- package/lib/cjs/components/system-debug-trace/icons/quote-right.d.ts +2 -0
- package/lib/cjs/components/system-debug-trace/icons/quote-right.js +10 -0
- package/lib/cjs/components/system-debug-trace/icons/quote-right.js.map +1 -0
- package/lib/cjs/components/system-debug-trace/icons/screwdriver-wrench.d.ts +2 -0
- package/lib/cjs/components/system-debug-trace/icons/screwdriver-wrench.js +10 -0
- package/lib/cjs/components/system-debug-trace/icons/screwdriver-wrench.js.map +1 -0
- package/lib/cjs/components/system-debug-trace/icons/wand.d.ts +2 -0
- package/lib/cjs/components/system-debug-trace/icons/wand.js +10 -0
- package/lib/cjs/components/system-debug-trace/icons/wand.js.map +1 -0
- package/lib/cjs/components/system-debug-trace/index.d.ts +10 -0
- package/lib/cjs/components/system-debug-trace/index.js +29 -0
- package/lib/cjs/components/system-debug-trace/index.js.map +1 -0
- package/lib/cjs/components/system-debug-trace/styles.d.ts +26 -0
- package/lib/cjs/components/system-debug-trace/styles.js +285 -0
- package/lib/cjs/components/system-debug-trace/styles.js.map +1 -0
- package/lib/cjs/components/system-debug-trace/types.d.ts +13 -0
- package/lib/cjs/components/system-debug-trace/types.js +3 -0
- package/lib/cjs/components/system-debug-trace/types.js.map +1 -0
- package/lib/cjs/constants.d.ts +7 -0
- package/lib/cjs/constants.js +27 -20
- package/lib/cjs/constants.js.map +1 -1
- package/lib/cjs/index-types.d.ts +14 -2
- package/lib/cjs/index-types.js +1 -0
- package/lib/cjs/index-types.js.map +1 -1
- package/lib/cjs/message-utils.d.ts +1 -0
- package/lib/cjs/message-utils.js +3 -1
- package/lib/cjs/message-utils.js.map +1 -1
- package/lib/cjs/msg-to-botonic.js +5 -0
- package/lib/cjs/msg-to-botonic.js.map +1 -1
- package/lib/cjs/webchat/context/messages-reducer.js +9 -3
- package/lib/cjs/webchat/context/messages-reducer.js.map +1 -1
- package/lib/cjs/webchat/context/types.d.ts +2 -1
- package/lib/cjs/webchat/message-list/index.js +11 -2
- package/lib/cjs/webchat/message-list/index.js.map +1 -1
- package/lib/cjs/webchat/message-list/styles.d.ts +5 -1
- package/lib/cjs/webchat/message-list/styles.js +3 -2
- package/lib/cjs/webchat/message-list/styles.js.map +1 -1
- package/lib/cjs/webchat/webchat.js +12 -0
- package/lib/cjs/webchat/webchat.js.map +1 -1
- package/lib/cjs/webchat-app.d.ts +4 -2
- package/lib/cjs/webchat-app.js +25 -10
- package/lib/cjs/webchat-app.js.map +1 -1
- package/lib/esm/components/message/index.js +5 -1
- package/lib/esm/components/message/index.js.map +1 -1
- package/lib/esm/components/message/styles.d.ts +4 -2
- package/lib/esm/components/message/styles.js +1 -0
- package/lib/esm/components/message/styles.js.map +1 -1
- package/lib/esm/components/system-debug-trace/debug-message.d.ts +7 -0
- package/lib/esm/components/system-debug-trace/debug-message.js +58 -0
- package/lib/esm/components/system-debug-trace/debug-message.js.map +1 -0
- package/lib/esm/components/system-debug-trace/events/ai-agent.d.ts +24 -0
- package/lib/esm/components/system-debug-trace/events/ai-agent.js +55 -0
- package/lib/esm/components/system-debug-trace/events/ai-agent.js.map +1 -0
- package/lib/esm/components/system-debug-trace/events/components/guardrail-item.d.ts +14 -0
- package/lib/esm/components/system-debug-trace/events/components/guardrail-item.js +7 -0
- package/lib/esm/components/system-debug-trace/events/components/guardrail-item.js.map +1 -0
- package/lib/esm/components/system-debug-trace/events/components/index.d.ts +2 -0
- package/lib/esm/components/system-debug-trace/events/components/index.js +3 -0
- package/lib/esm/components/system-debug-trace/events/components/index.js.map +1 -0
- package/lib/esm/components/system-debug-trace/events/components/sources-section.d.ts +11 -0
- package/lib/esm/components/system-debug-trace/events/components/sources-section.js +17 -0
- package/lib/esm/components/system-debug-trace/events/components/sources-section.js.map +1 -0
- package/lib/esm/components/system-debug-trace/events/constants.d.ts +15 -0
- package/lib/esm/components/system-debug-trace/events/constants.js +16 -0
- package/lib/esm/components/system-debug-trace/events/constants.js.map +1 -0
- package/lib/esm/components/system-debug-trace/events/fallback.d.ts +9 -0
- package/lib/esm/components/system-debug-trace/events/fallback.js +15 -0
- package/lib/esm/components/system-debug-trace/events/fallback.js.map +1 -0
- package/lib/esm/components/system-debug-trace/events/handoff-success.d.ts +9 -0
- package/lib/esm/components/system-debug-trace/events/handoff-success.js +19 -0
- package/lib/esm/components/system-debug-trace/events/handoff-success.js.map +1 -0
- package/lib/esm/components/system-debug-trace/events/index.d.ts +7 -0
- package/lib/esm/components/system-debug-trace/events/index.js +8 -0
- package/lib/esm/components/system-debug-trace/events/index.js.map +1 -0
- package/lib/esm/components/system-debug-trace/events/keyword.d.ts +10 -0
- package/lib/esm/components/system-debug-trace/events/keyword.js +14 -0
- package/lib/esm/components/system-debug-trace/events/keyword.js.map +1 -0
- package/lib/esm/components/system-debug-trace/events/knowledge-base.d.ts +17 -0
- package/lib/esm/components/system-debug-trace/events/knowledge-base.js +37 -0
- package/lib/esm/components/system-debug-trace/events/knowledge-base.js.map +1 -0
- package/lib/esm/components/system-debug-trace/events/knowledge-bases-types.d.ts +31 -0
- package/lib/esm/components/system-debug-trace/events/knowledge-bases-types.js +2 -0
- package/lib/esm/components/system-debug-trace/events/knowledge-bases-types.js.map +1 -0
- package/lib/esm/components/system-debug-trace/events/smart-intent.d.ts +7 -0
- package/lib/esm/components/system-debug-trace/events/smart-intent.js +13 -0
- package/lib/esm/components/system-debug-trace/events/smart-intent.js.map +1 -0
- package/lib/esm/components/system-debug-trace/hooks/use-knowledge-base-info.d.ts +19 -0
- package/lib/esm/components/system-debug-trace/hooks/use-knowledge-base-info.js +125 -0
- package/lib/esm/components/system-debug-trace/hooks/use-knowledge-base-info.js.map +1 -0
- package/lib/esm/components/system-debug-trace/hooks/use-last-label-position.d.ts +9 -0
- package/lib/esm/components/system-debug-trace/hooks/use-last-label-position.js +68 -0
- package/lib/esm/components/system-debug-trace/hooks/use-last-label-position.js.map +1 -0
- package/lib/esm/components/system-debug-trace/icons/brain.d.ts +2 -0
- package/lib/esm/components/system-debug-trace/icons/brain.js +6 -0
- package/lib/esm/components/system-debug-trace/icons/brain.js.map +1 -0
- package/lib/esm/components/system-debug-trace/icons/caret-down.d.ts +2 -0
- package/lib/esm/components/system-debug-trace/icons/caret-down.js +6 -0
- package/lib/esm/components/system-debug-trace/icons/caret-down.js.map +1 -0
- package/lib/esm/components/system-debug-trace/icons/caret-up.d.ts +2 -0
- package/lib/esm/components/system-debug-trace/icons/caret-up.js +6 -0
- package/lib/esm/components/system-debug-trace/icons/caret-up.js.map +1 -0
- package/lib/esm/components/system-debug-trace/icons/circle-check.d.ts +2 -0
- package/lib/esm/components/system-debug-trace/icons/circle-check.js +6 -0
- package/lib/esm/components/system-debug-trace/icons/circle-check.js.map +1 -0
- package/lib/esm/components/system-debug-trace/icons/file-pdf.d.ts +2 -0
- package/lib/esm/components/system-debug-trace/icons/file-pdf.js +6 -0
- package/lib/esm/components/system-debug-trace/icons/file-pdf.js.map +1 -0
- package/lib/esm/components/system-debug-trace/icons/file-word.d.ts +2 -0
- package/lib/esm/components/system-debug-trace/icons/file-word.js +6 -0
- package/lib/esm/components/system-debug-trace/icons/file-word.js.map +1 -0
- package/lib/esm/components/system-debug-trace/icons/hand.d.ts +2 -0
- package/lib/esm/components/system-debug-trace/icons/hand.js +6 -0
- package/lib/esm/components/system-debug-trace/icons/hand.js.map +1 -0
- package/lib/esm/components/system-debug-trace/icons/head-set.d.ts +2 -0
- package/lib/esm/components/system-debug-trace/icons/head-set.js +6 -0
- package/lib/esm/components/system-debug-trace/icons/head-set.js.map +1 -0
- package/lib/esm/components/system-debug-trace/icons/index.d.ts +13 -0
- package/lib/esm/components/system-debug-trace/icons/index.js +14 -0
- package/lib/esm/components/system-debug-trace/icons/index.js.map +1 -0
- package/lib/esm/components/system-debug-trace/icons/life-ring.d.ts +2 -0
- package/lib/esm/components/system-debug-trace/icons/life-ring.js +6 -0
- package/lib/esm/components/system-debug-trace/icons/life-ring.js.map +1 -0
- package/lib/esm/components/system-debug-trace/icons/link.d.ts +2 -0
- package/lib/esm/components/system-debug-trace/icons/link.js +6 -0
- package/lib/esm/components/system-debug-trace/icons/link.js.map +1 -0
- package/lib/esm/components/system-debug-trace/icons/quote-right.d.ts +2 -0
- package/lib/esm/components/system-debug-trace/icons/quote-right.js +6 -0
- package/lib/esm/components/system-debug-trace/icons/quote-right.js.map +1 -0
- package/lib/esm/components/system-debug-trace/icons/screwdriver-wrench.d.ts +2 -0
- package/lib/esm/components/system-debug-trace/icons/screwdriver-wrench.js +6 -0
- package/lib/esm/components/system-debug-trace/icons/screwdriver-wrench.js.map +1 -0
- package/lib/esm/components/system-debug-trace/icons/wand.d.ts +2 -0
- package/lib/esm/components/system-debug-trace/icons/wand.js +6 -0
- package/lib/esm/components/system-debug-trace/icons/wand.js.map +1 -0
- package/lib/esm/components/system-debug-trace/index.d.ts +10 -0
- package/lib/esm/components/system-debug-trace/index.js +25 -0
- package/lib/esm/components/system-debug-trace/index.js.map +1 -0
- package/lib/esm/components/system-debug-trace/styles.d.ts +26 -0
- package/lib/esm/components/system-debug-trace/styles.js +281 -0
- package/lib/esm/components/system-debug-trace/styles.js.map +1 -0
- package/lib/esm/components/system-debug-trace/types.d.ts +13 -0
- package/lib/esm/components/system-debug-trace/types.js +2 -0
- package/lib/esm/components/system-debug-trace/types.js.map +1 -0
- package/lib/esm/constants.d.ts +7 -0
- package/lib/esm/constants.js +27 -20
- package/lib/esm/constants.js.map +1 -1
- package/lib/esm/index-types.d.ts +14 -2
- package/lib/esm/index-types.js +1 -0
- package/lib/esm/index-types.js.map +1 -1
- package/lib/esm/message-utils.d.ts +1 -0
- package/lib/esm/message-utils.js +1 -0
- package/lib/esm/message-utils.js.map +1 -1
- package/lib/esm/msg-to-botonic.js +6 -1
- package/lib/esm/msg-to-botonic.js.map +1 -1
- package/lib/esm/webchat/context/messages-reducer.js +9 -3
- package/lib/esm/webchat/context/messages-reducer.js.map +1 -1
- package/lib/esm/webchat/context/types.d.ts +2 -1
- package/lib/esm/webchat/message-list/index.js +12 -3
- package/lib/esm/webchat/message-list/index.js.map +1 -1
- package/lib/esm/webchat/message-list/styles.d.ts +5 -1
- package/lib/esm/webchat/message-list/styles.js +2 -1
- package/lib/esm/webchat/message-list/styles.js.map +1 -1
- package/lib/esm/webchat/webchat.js +12 -0
- package/lib/esm/webchat/webchat.js.map +1 -1
- package/lib/esm/webchat-app.d.ts +4 -2
- package/lib/esm/webchat-app.js +25 -10
- package/lib/esm/webchat-app.js.map +1 -1
- package/package.json +2 -2
- package/src/components/message/index.jsx +6 -0
- package/src/components/message/styles.ts +6 -2
- package/src/components/system-debug-trace/debug-message.tsx +111 -0
- package/src/components/system-debug-trace/events/ai-agent.tsx +158 -0
- package/src/components/system-debug-trace/events/components/guardrail-item.tsx +53 -0
- package/src/components/system-debug-trace/events/components/index.ts +2 -0
- package/src/components/system-debug-trace/events/components/sources-section.tsx +66 -0
- package/src/components/system-debug-trace/events/constants.ts +15 -0
- package/src/components/system-debug-trace/events/fallback.tsx +31 -0
- package/src/components/system-debug-trace/events/handoff-success.tsx +43 -0
- package/src/components/system-debug-trace/events/index.ts +7 -0
- package/src/components/system-debug-trace/events/keyword.tsx +31 -0
- package/src/components/system-debug-trace/events/knowledge-base.tsx +115 -0
- package/src/components/system-debug-trace/events/knowledge-bases-types.ts +33 -0
- package/src/components/system-debug-trace/events/smart-intent.tsx +26 -0
- package/src/components/system-debug-trace/hooks/use-knowledge-base-info.tsx +170 -0
- package/src/components/system-debug-trace/hooks/use-last-label-position.ts +94 -0
- package/src/components/system-debug-trace/icons/brain.tsx +15 -0
- package/src/components/system-debug-trace/icons/caret-down.tsx +15 -0
- package/src/components/system-debug-trace/icons/caret-up.tsx +15 -0
- package/src/components/system-debug-trace/icons/circle-check.tsx +15 -0
- package/src/components/system-debug-trace/icons/file-pdf.tsx +15 -0
- package/src/components/system-debug-trace/icons/file-word.tsx +15 -0
- package/src/components/system-debug-trace/icons/hand.tsx +15 -0
- package/src/components/system-debug-trace/icons/head-set.tsx +15 -0
- package/src/components/system-debug-trace/icons/index.ts +13 -0
- package/src/components/system-debug-trace/icons/life-ring.tsx +15 -0
- package/src/components/system-debug-trace/icons/link.tsx +15 -0
- package/src/components/system-debug-trace/icons/quote-right.tsx +15 -0
- package/src/components/system-debug-trace/icons/screwdriver-wrench.tsx +15 -0
- package/src/components/system-debug-trace/icons/wand.tsx +15 -0
- package/src/components/system-debug-trace/index.tsx +46 -0
- package/src/components/system-debug-trace/styles.ts +304 -0
- package/src/components/system-debug-trace/types.ts +31 -0
- package/src/constants.js +27 -20
- package/src/index-types.ts +19 -1
- package/src/message-utils.js +2 -0
- package/src/msg-to-botonic.jsx +5 -0
- package/src/webchat/context/messages-reducer.ts +7 -3
- package/src/webchat/context/types.ts +6 -1
- package/src/webchat/message-list/index.tsx +20 -6
- package/src/webchat/message-list/styles.ts +7 -1
- package/src/webchat/webchat.tsx +14 -0
- package/src/webchat-app.tsx +27 -6
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LinkSvg = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const constants_1 = require("../../../constants");
|
|
6
|
+
const LinkSvg = ({ 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: 'M451.5 160C434.9 160 418.8 164.5 404.7 172.7C388.9 156.7 370.5 143.3 350.2 133.2C378.4 109.2 414.3 96 451.5 96C537.9 96 608 166 608 252.5C608 294 591.5 333.8 562.2 363.1L491.1 434.2C461.8 463.5 422 480 380.5 480C294.1 480 224 410 224 323.5C224 322 224 320.5 224.1 319C224.6 301.3 239.3 287.4 257 287.9C274.7 288.4 288.6 303.1 288.1 320.8C288.1 321.7 288.1 322.6 288.1 323.4C288.1 374.5 329.5 415.9 380.6 415.9C405.1 415.9 428.6 406.2 446 388.8L517.1 317.7C534.4 300.4 544.2 276.8 544.2 252.3C544.2 201.2 502.8 159.8 451.7 159.8zM307.2 237.3C305.3 236.5 303.4 235.4 301.7 234.2C289.1 227.7 274.7 224 259.6 224C235.1 224 211.6 233.7 194.2 251.1L123.1 322.2C105.8 339.5 96 363.1 96 387.6C96 438.7 137.4 480.1 188.5 480.1C205 480.1 221.1 475.7 235.2 467.5C251 483.5 269.4 496.9 289.8 507C261.6 530.9 225.8 544.2 188.5 544.2C102.1 544.2 32 474.2 32 387.7C32 346.2 48.5 306.4 77.8 277.1L148.9 206C178.2 176.7 218 160.2 259.5 160.2C346.1 160.2 416 230.8 416 317.1C416 318.4 416 319.7 416 321C415.6 338.7 400.9 352.6 383.2 352.2C365.5 351.8 351.6 337.1 352 319.4C352 318.6 352 317.9 352 317.1C352 283.4 334 253.8 307.2 237.5z', fill: 'currentColor' }) })));
|
|
8
|
+
};
|
|
9
|
+
exports.LinkSvg = LinkSvg;
|
|
10
|
+
//# sourceMappingURL=link.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"link.js","sourceRoot":"","sources":["../../../../../src/components/system-debug-trace/icons/link.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,+lCAA+lC,EACjmC,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.QuoteRightSvg = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const constants_1 = require("../../../constants");
|
|
6
|
+
const QuoteRightSvg = ({ 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', color: color }, { children: (0, jsx_runtime_1.jsx)("path", { d: 'M544 360C544 426.3 490.3 480 424 480L416 480C398.3 480 384 465.7 384 448C384 430.3 398.3 416 416 416L424 416C454.9 416 480 390.9 480 360L480 352L416 352C380.7 352 352 323.3 352 288L352 224C352 188.7 380.7 160 416 160L480 160C515.3 160 544 188.7 544 224L544 360zM288 360C288 426.3 234.3 480 168 480L160 480C142.3 480 128 465.7 128 448C128 430.3 142.3 416 160 416L168 416C198.9 416 224 390.9 224 360L224 352L160 352C124.7 352 96 323.3 96 288L96 224C96 188.7 124.7 160 160 160L224 160C259.3 160 288 188.7 288 224L288 360z', fill: 'currentColor' }) })));
|
|
8
|
+
};
|
|
9
|
+
exports.QuoteRightSvg = QuoteRightSvg;
|
|
10
|
+
//# sourceMappingURL=quote-right.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"quote-right.js","sourceRoot":"","sources":["../../../../../src/components/system-debug-trace/icons/quote-right.tsx"],"names":[],"mappings":";;;;AAEA,kDAA2C;AAGpC,MAAM,aAAa,GAAG,CAAC,EAAE,KAAK,GAAG,kBAAM,CAAC,IAAI,EAAa,EAAE,EAAE;IAClE,OAAO,CACL,8CAAK,KAAK,EAAC,4BAA4B,EAAC,OAAO,EAAC,aAAa,EAAC,KAAK,EAAE,KAAK,gBACxE,iCACE,CAAC,EAAC,wgBAAwgB,EAC1gB,IAAI,EAAC,cAAc,GACnB,IACE,CACP,CAAA;AACH,CAAC,CAAA;AATY,QAAA,aAAa,iBASzB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ScrewdriverWrenchSvg = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const constants_1 = require("../../../constants");
|
|
6
|
+
const ScrewdriverWrenchSvg = ({ 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: 'M102.8 57.3C108.2 51.9 116.6 51.1 123 55.3L241.9 134.5C250.8 140.4 256.1 150.4 256.1 161.1L256.1 210.7L346.9 301.5C380.2 286.5 420.8 292.6 448.1 320L574.2 446.1C592.9 464.8 592.9 495.2 574.2 514L514.1 574.1C495.4 592.8 465 592.8 446.2 574.1L320.1 448C292.7 420.6 286.6 380.1 301.6 346.8L210.8 256L161.2 256C150.5 256 140.5 250.7 134.6 241.8L55.4 122.9C51.2 116.6 52 108.1 57.4 102.7L102.8 57.3zM247.8 360.8C241.5 397.7 250.1 436.7 274 468L179.1 563C151 591.1 105.4 591.1 77.3 563C49.2 534.9 49.2 489.3 77.3 461.2L212.7 325.7L247.9 360.8zM416.1 64C436.2 64 455.5 67.7 473.2 74.5C483.2 78.3 485 91 477.5 98.6L420.8 155.3C417.8 158.3 416.1 162.4 416.1 166.6L416.1 208C416.1 216.8 423.3 224 432.1 224L473.5 224C477.7 224 481.8 222.3 484.8 219.3L541.5 162.6C549.1 155.1 561.8 156.9 565.6 166.9C572.4 184.6 576.1 203.9 576.1 224C576.1 267.2 558.9 306.3 531.1 335.1L482 286C448.9 253 403.5 240.3 360.9 247.6L304.1 190.8L304.1 161.1L303.9 156.1C303.1 143.7 299.5 131.8 293.4 121.2C322.8 86.2 366.8 64 416.1 63.9z', fill: 'currentColor' }) })));
|
|
8
|
+
};
|
|
9
|
+
exports.ScrewdriverWrenchSvg = ScrewdriverWrenchSvg;
|
|
10
|
+
//# sourceMappingURL=screwdriver-wrench.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"screwdriver-wrench.js","sourceRoot":"","sources":["../../../../../src/components/system-debug-trace/icons/screwdriver-wrench.tsx"],"names":[],"mappings":";;;;AAEA,kDAA2C;AAGpC,MAAM,oBAAoB,GAAG,CAAC,EAAE,KAAK,GAAG,kBAAM,CAAC,IAAI,EAAa,EAAE,EAAE;IACzE,OAAO,CACL,8CAAK,KAAK,EAAC,4BAA4B,EAAC,OAAO,EAAC,aAAa,EAAC,IAAI,EAAE,KAAK,gBACvE,iCACE,CAAC,EAAC,8+BAA8+B,EACh/B,IAAI,EAAC,cAAc,GACnB,IACE,CACP,CAAA;AACH,CAAC,CAAA;AATY,QAAA,oBAAoB,wBAShC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WandSvg = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const constants_1 = require("../../../constants");
|
|
6
|
+
const WandSvg = ({ 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 576 512', fill: color }, { children: (0, jsx_runtime_1.jsx)("path", { d: 'M234.7 42.7L197 56.8c-3 1.1-5 4-5 7.2s2 6.1 5 7.2l37.7 14.1L248.8 123c1.1 3 4 5 7.2 5s6.1-2 7.2-5l14.1-37.7L315 71.2c3-1.1 5-4 5-7.2s-2-6.1-5-7.2L277.3 42.7 263.2 5c-1.1-3-4-5-7.2-5s-6.1 2-7.2 5L234.7 42.7zM46.1 395.4c-18.7 18.7-18.7 49.1 0 67.9l34.6 34.6c18.7 18.7 49.1 18.7 67.9 0L529.9 116.5c18.7-18.7 18.7-49.1 0-67.9L495.3 14.1c-18.7-18.7-49.1-18.7-67.9 0L46.1 395.4zM484.6 82.6l-105 105-23.3-23.3 105-105 23.3 23.3zM7.5 117.2C3 118.9 0 123.2 0 128s3 9.1 7.5 10.8L64 160l21.2 56.5c1.7 4.5 6 7.5 10.8 7.5s9.1-3 10.8-7.5L128 160l56.5-21.2c4.5-1.7 7.5-6 7.5-10.8s-3-9.1-7.5-10.8L128 96 106.8 39.5C105.1 35 100.8 32 96 32s-9.1 3-10.8 7.5L64 96 7.5 117.2zm352 256c-4.5 1.7-7.5 6-7.5 10.8s3 9.1 7.5 10.8L416 416l21.2 56.5c1.7 4.5 6 7.5 10.8 7.5s9.1-3 10.8-7.5L480 416l56.5-21.2c4.5-1.7 7.5-6 7.5-10.8s-3-9.1-7.5-10.8L480 352l-21.2-56.5c-1.7-4.5-6-7.5-10.8-7.5s-9.1 3-10.8 7.5L416 352l-56.5 21.2z', fill: 'currentColor' }) })));
|
|
8
|
+
};
|
|
9
|
+
exports.WandSvg = WandSvg;
|
|
10
|
+
//# sourceMappingURL=wand.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wand.js","sourceRoot":"","sources":["../../../../../src/components/system-debug-trace/icons/wand.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,g4BAAg4B,EACl4B,IAAI,EAAC,cAAc,GACnB,IACE,CACP,CAAA;AACH,CAAC,CAAA;AATY,QAAA,OAAO,WASnB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
interface SystemDebugTraceProps {
|
|
2
|
+
type: string;
|
|
3
|
+
data: Record<string, any> | string;
|
|
4
|
+
id?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const SystemDebugTrace: {
|
|
7
|
+
(props: SystemDebugTraceProps): import("react/jsx-runtime").JSX.Element | null;
|
|
8
|
+
serialize: (props: SystemDebugTraceProps) => any;
|
|
9
|
+
};
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SystemDebugTrace = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
6
|
+
const core_1 = require("@botonic/core");
|
|
7
|
+
const constants_1 = require("../../constants");
|
|
8
|
+
const message_1 = require("../message");
|
|
9
|
+
const debug_message_1 = require("./debug-message");
|
|
10
|
+
const serialize = (props) => {
|
|
11
|
+
const { data } = props;
|
|
12
|
+
// Return the event data as an object, ensuring it's not stringified
|
|
13
|
+
return typeof data === 'string' ? JSON.parse(data) : data;
|
|
14
|
+
};
|
|
15
|
+
const SystemDebugTrace = (props) => {
|
|
16
|
+
const { data, id } = props, otherProps = tslib_1.__rest(props
|
|
17
|
+
// Parse data if it's a string
|
|
18
|
+
, ["data", "id"]);
|
|
19
|
+
// Parse data if it's a string
|
|
20
|
+
const parsedData = typeof data === 'string' ? JSON.parse(data) : data;
|
|
21
|
+
if ((0, core_1.isBrowser)()) {
|
|
22
|
+
const eventData = Object.assign({}, parsedData);
|
|
23
|
+
return ((0, jsx_runtime_1.jsx)(message_1.Message, Object.assign({ role: constants_1.ROLES.SYSTEM_DEBUG_TRACE_MESSAGE, json: serialize(props) }, otherProps, { type: core_1.INPUT.SYSTEM_DEBUG_TRACE, id: id }, { children: (0, jsx_runtime_1.jsx)(debug_message_1.DebugMessage, { debugEvent: eventData, messageId: id }) })));
|
|
24
|
+
}
|
|
25
|
+
return null;
|
|
26
|
+
};
|
|
27
|
+
exports.SystemDebugTrace = SystemDebugTrace;
|
|
28
|
+
exports.SystemDebugTrace.serialize = serialize;
|
|
29
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/system-debug-trace/index.tsx"],"names":[],"mappings":";;;;;AAAA,wCAAgD;AAGhD,+CAAuC;AACvC,wCAAoC;AACpC,mDAA8C;AAQ9C,MAAM,SAAS,GAAG,CAAC,KAA4B,EAAE,EAAE;IACjD,MAAM,EAAE,IAAI,EAAE,GAAG,KAAK,CAAA;IACtB,oEAAoE;IACpE,OAAO,OAAO,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAA;AAC3D,CAAC,CAAA;AAEM,MAAM,gBAAgB,GAAG,CAAC,KAA4B,EAAE,EAAE;IAC/D,MAAM,EAAE,IAAI,EAAE,EAAE,KAAoB,KAAK,EAApB,UAAU,kBAAK,KAAK;IAEzC,8BAA8B;MAFxB,cAA2B,CAAQ,CAAA;IAEzC,8BAA8B;IAC9B,MAAM,UAAU,GAAG,OAAO,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAA;IAErE,IAAI,IAAA,gBAAS,GAAE,EAAE;QACf,MAAM,SAAS,qBACV,UAAU,CACd,CAAA;QAED,OAAO,CACL,uBAAC,iBAAO,kBACN,IAAI,EAAE,iBAAK,CAAC,0BAA0B,EACtC,IAAI,EAAE,SAAS,CAAC,KAAK,CAAC,IAClB,UAAU,IACd,IAAI,EAAE,YAAK,CAAC,kBAAkB,EAC9B,EAAE,EAAE,EAAE,gBAEN,uBAAC,4BAAY,IAAC,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,EAAE,GAAI,IAC9C,CACX,CAAA;KACF;IACD,OAAO,IAAI,CAAA;AACb,CAAC,CAAA;AAxBY,QAAA,gBAAgB,oBAwB5B;AAED,wBAAgB,CAAC,SAAS,GAAG,SAAS,CAAA"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export declare const StyledDebugContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
2
|
+
export declare const StyledDebugHeader: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
3
|
+
export declare const StyledDebugArrow: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
|
|
4
|
+
export declare const StyledDebugIcon: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
|
|
5
|
+
export declare const StyledDebugTitle: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
|
|
6
|
+
export declare const StyledDebugContent: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
7
|
+
interface StyledDebugDetailProps {
|
|
8
|
+
$isLastItem?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const StyledDebugDetail: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, StyledDebugDetailProps, never>;
|
|
11
|
+
export declare const StyledDebugLabel: import("styled-components").StyledComponent<"strong", import("styled-components").DefaultTheme, {}, never>;
|
|
12
|
+
export declare const StyledDebugValue: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
13
|
+
export declare const StyledDebugItemWithIcon: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
14
|
+
export declare const StyledDebugMetadata: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
15
|
+
export declare const StyledSeeChunksButton: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {}, never>;
|
|
16
|
+
interface StyledGuardrailItemProps {
|
|
17
|
+
$isLastItem?: boolean;
|
|
18
|
+
}
|
|
19
|
+
export declare const StyledGuardrailItem: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, StyledGuardrailItemProps, never>;
|
|
20
|
+
export declare const StyledDebugContentWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
21
|
+
export declare const StyledGuardrailLabel: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
|
|
22
|
+
export declare const StyledGuardrailValue: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
|
|
23
|
+
export declare const StyledSourceValue: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
|
|
24
|
+
export declare const StyledFileSourceValue: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
|
|
25
|
+
export declare const StyledUrlSourceValue: import("styled-components").StyledComponent<"a", import("styled-components").DefaultTheme, {}, never>;
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StyledUrlSourceValue = exports.StyledFileSourceValue = exports.StyledSourceValue = exports.StyledGuardrailValue = exports.StyledGuardrailLabel = exports.StyledDebugContentWrapper = exports.StyledGuardrailItem = exports.StyledSeeChunksButton = exports.StyledDebugMetadata = exports.StyledDebugItemWithIcon = exports.StyledDebugValue = exports.StyledDebugLabel = exports.StyledDebugDetail = exports.StyledDebugContent = exports.StyledDebugTitle = exports.StyledDebugIcon = exports.StyledDebugArrow = exports.StyledDebugHeader = exports.StyledDebugContainer = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const styled_components_1 = tslib_1.__importDefault(require("styled-components"));
|
|
6
|
+
const constants_1 = require("../../constants");
|
|
7
|
+
exports.StyledDebugContainer = styled_components_1.default.div `
|
|
8
|
+
display: flex;
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
align-items: start;
|
|
11
|
+
justify-content: space-between;
|
|
12
|
+
gap: 12px;
|
|
13
|
+
|
|
14
|
+
background-color: ${constants_1.COLORS.SOLID_WHITE};
|
|
15
|
+
border-radius: 6px;
|
|
16
|
+
font-family: 'Inter', sans-serif;
|
|
17
|
+
box-sizing: border-box;
|
|
18
|
+
margin: 0px 8px;
|
|
19
|
+
max-width: calc(100% - 16px);
|
|
20
|
+
width: 100%;
|
|
21
|
+
|
|
22
|
+
/* When collapsible (expanded or collapsed), entire container is hoverable and clickable */
|
|
23
|
+
&.collapsible {
|
|
24
|
+
cursor: pointer;
|
|
25
|
+
|
|
26
|
+
&:hover {
|
|
27
|
+
background-color: ${constants_1.COLORS.N50};
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
`;
|
|
31
|
+
exports.StyledDebugHeader = styled_components_1.default.div `
|
|
32
|
+
display: flex;
|
|
33
|
+
align-items: center;
|
|
34
|
+
justify-content: space-between;
|
|
35
|
+
box-sizing: border-box;
|
|
36
|
+
user-select: none;
|
|
37
|
+
border-radius: 6px;
|
|
38
|
+
padding: 8px 12px;
|
|
39
|
+
width: 100%;
|
|
40
|
+
`;
|
|
41
|
+
exports.StyledDebugArrow = styled_components_1.default.span `
|
|
42
|
+
display: inline-flex;
|
|
43
|
+
align-items: center;
|
|
44
|
+
justify-content: center;
|
|
45
|
+
width: 16px;
|
|
46
|
+
height: 16px;
|
|
47
|
+
flex-shrink: 0;
|
|
48
|
+
|
|
49
|
+
svg {
|
|
50
|
+
width: 100%;
|
|
51
|
+
height: 100%;
|
|
52
|
+
}
|
|
53
|
+
`;
|
|
54
|
+
exports.StyledDebugIcon = styled_components_1.default.span `
|
|
55
|
+
display: inline-flex;
|
|
56
|
+
align-items: center;
|
|
57
|
+
justify-content: center;
|
|
58
|
+
width: 14px;
|
|
59
|
+
height: 14px;
|
|
60
|
+
margin-right: 8px;
|
|
61
|
+
flex-shrink: 0;
|
|
62
|
+
|
|
63
|
+
svg {
|
|
64
|
+
width: 100%;
|
|
65
|
+
height: 100%;
|
|
66
|
+
}
|
|
67
|
+
`;
|
|
68
|
+
exports.StyledDebugTitle = styled_components_1.default.span `
|
|
69
|
+
flex: 1;
|
|
70
|
+
display: flex;
|
|
71
|
+
align-items: center;
|
|
72
|
+
|
|
73
|
+
font-weight: 600;
|
|
74
|
+
font-size: 12px;
|
|
75
|
+
color: ${constants_1.COLORS.N700};
|
|
76
|
+
line-height: 1.5;
|
|
77
|
+
white-space: nowrap;
|
|
78
|
+
gap: 4px;
|
|
79
|
+
|
|
80
|
+
span {
|
|
81
|
+
font-weight: 400;
|
|
82
|
+
}
|
|
83
|
+
`;
|
|
84
|
+
exports.StyledDebugContent = styled_components_1.default.div `
|
|
85
|
+
display: flex;
|
|
86
|
+
flex-direction: column;
|
|
87
|
+
position: relative;
|
|
88
|
+
width: 100%;
|
|
89
|
+
min-width: 0;
|
|
90
|
+
overflow: hidden;
|
|
91
|
+
|
|
92
|
+
font-size: 12px;
|
|
93
|
+
line-height: 1.5;
|
|
94
|
+
color: ${constants_1.COLORS.N700};
|
|
95
|
+
`;
|
|
96
|
+
exports.StyledDebugDetail = styled_components_1.default.div `
|
|
97
|
+
display: flex;
|
|
98
|
+
flex-direction: column;
|
|
99
|
+
gap: 4px;
|
|
100
|
+
padding: 0 28px;
|
|
101
|
+
margin-bottom: ${({ $isLastItem }) => ($isLastItem ? '0' : '8px')};
|
|
102
|
+
line-height: 1.5;
|
|
103
|
+
width: 100%;
|
|
104
|
+
min-width: 0;
|
|
105
|
+
overflow: hidden;
|
|
106
|
+
box-sizing: border-box;
|
|
107
|
+
`;
|
|
108
|
+
exports.StyledDebugLabel = styled_components_1.default.strong `
|
|
109
|
+
color: ${constants_1.COLORS.N700};
|
|
110
|
+
font-weight: 400;
|
|
111
|
+
font-size: 12px;
|
|
112
|
+
line-height: 1.5;
|
|
113
|
+
`;
|
|
114
|
+
exports.StyledDebugValue = styled_components_1.default.div `
|
|
115
|
+
display: flex;
|
|
116
|
+
align-items: center;
|
|
117
|
+
gap: 8px;
|
|
118
|
+
font-weight: 600;
|
|
119
|
+
font-size: 12px;
|
|
120
|
+
color: ${constants_1.COLORS.N700};
|
|
121
|
+
line-height: 1.5;
|
|
122
|
+
|
|
123
|
+
> svg {
|
|
124
|
+
width: 14px;
|
|
125
|
+
height: 14px;
|
|
126
|
+
min-width: 14px;
|
|
127
|
+
min-height: 14px;
|
|
128
|
+
flex-shrink: 0;
|
|
129
|
+
display: block;
|
|
130
|
+
}
|
|
131
|
+
`;
|
|
132
|
+
exports.StyledDebugItemWithIcon = styled_components_1.default.div `
|
|
133
|
+
display: flex;
|
|
134
|
+
align-items: center;
|
|
135
|
+
gap: 8px;
|
|
136
|
+
padding: 0;
|
|
137
|
+
font-weight: 600;
|
|
138
|
+
font-size: 12px;
|
|
139
|
+
color: ${constants_1.COLORS.N700};
|
|
140
|
+
line-height: 1.5;
|
|
141
|
+
min-width: 0;
|
|
142
|
+
width: 100%;
|
|
143
|
+
|
|
144
|
+
&:not(:last-child) {
|
|
145
|
+
margin-bottom: 4px;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
> svg {
|
|
149
|
+
width: 14px;
|
|
150
|
+
height: 14px;
|
|
151
|
+
min-width: 14px;
|
|
152
|
+
min-height: 14px;
|
|
153
|
+
flex-shrink: 0;
|
|
154
|
+
display: block;
|
|
155
|
+
}
|
|
156
|
+
`;
|
|
157
|
+
exports.StyledDebugMetadata = styled_components_1.default.div `
|
|
158
|
+
margin-top: 8px;
|
|
159
|
+
padding-top: 12px;
|
|
160
|
+
border-top: 1px solid ${constants_1.COLORS.N100};
|
|
161
|
+
color: ${constants_1.COLORS.N700};
|
|
162
|
+
font-size: 12px;
|
|
163
|
+
padding-left: 28px;
|
|
164
|
+
|
|
165
|
+
> div {
|
|
166
|
+
margin-top: 6px;
|
|
167
|
+
font-weight: 400;
|
|
168
|
+
}
|
|
169
|
+
`;
|
|
170
|
+
exports.StyledSeeChunksButton = styled_components_1.default.button `
|
|
171
|
+
border: 1px solid #c4c6d0;
|
|
172
|
+
border-radius: 6px;
|
|
173
|
+
padding: 8px;
|
|
174
|
+
height: 28px;
|
|
175
|
+
background-color: transparent;
|
|
176
|
+
color: #413f48;
|
|
177
|
+
font-family: 'Inter', sans-serif;
|
|
178
|
+
font-size: 12px;
|
|
179
|
+
font-weight: 500;
|
|
180
|
+
line-height: 1.5;
|
|
181
|
+
cursor: pointer;
|
|
182
|
+
margin-left: 0;
|
|
183
|
+
margin-top: 4px;
|
|
184
|
+
display: flex;
|
|
185
|
+
align-items: center;
|
|
186
|
+
justify-content: center;
|
|
187
|
+
width: fit-content;
|
|
188
|
+
|
|
189
|
+
&:hover {
|
|
190
|
+
background-color: ${constants_1.COLORS.N200};
|
|
191
|
+
}
|
|
192
|
+
`;
|
|
193
|
+
exports.StyledGuardrailItem = styled_components_1.default.div `
|
|
194
|
+
display: flex;
|
|
195
|
+
align-items: center;
|
|
196
|
+
gap: 8px;
|
|
197
|
+
padding-left: 28px;
|
|
198
|
+
margin-bottom: ${({ $isLastItem }) => ($isLastItem ? '0' : '8px')};
|
|
199
|
+
font-size: 12px;
|
|
200
|
+
line-height: 1.5;
|
|
201
|
+
color: ${constants_1.COLORS.N700};
|
|
202
|
+
|
|
203
|
+
svg {
|
|
204
|
+
width: 14px;
|
|
205
|
+
height: 14px;
|
|
206
|
+
flex-shrink: 0;
|
|
207
|
+
}
|
|
208
|
+
`;
|
|
209
|
+
exports.StyledDebugContentWrapper = styled_components_1.default.div `
|
|
210
|
+
display: flex;
|
|
211
|
+
flex-direction: column;
|
|
212
|
+
gap: 8px;
|
|
213
|
+
position: relative;
|
|
214
|
+
width: 100%;
|
|
215
|
+
min-width: 0;
|
|
216
|
+
overflow: hidden;
|
|
217
|
+
|
|
218
|
+
/* Create line from first label to last label */
|
|
219
|
+
&::before {
|
|
220
|
+
content: '';
|
|
221
|
+
position: absolute;
|
|
222
|
+
left: 13px;
|
|
223
|
+
width: 1px;
|
|
224
|
+
background-color: ${constants_1.COLORS.N100};
|
|
225
|
+
top: 0;
|
|
226
|
+
/* Height ends at last label's bottom position */
|
|
227
|
+
height: var(--last-label-bottom, 100%);
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
/* Change line color to N200 when collapsible event is hovered */
|
|
231
|
+
.collapsible:hover & {
|
|
232
|
+
&::before {
|
|
233
|
+
background-color: ${constants_1.COLORS.N200};
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
`;
|
|
237
|
+
exports.StyledGuardrailLabel = styled_components_1.default.span `
|
|
238
|
+
font-weight: 600;
|
|
239
|
+
font-size: 12px;
|
|
240
|
+
line-height: 1.5;
|
|
241
|
+
color: ${constants_1.COLORS.N700};
|
|
242
|
+
`;
|
|
243
|
+
exports.StyledGuardrailValue = styled_components_1.default.span `
|
|
244
|
+
font-weight: 400;
|
|
245
|
+
font-size: 12px;
|
|
246
|
+
line-height: 1.5;
|
|
247
|
+
color: ${constants_1.COLORS.N700};
|
|
248
|
+
`;
|
|
249
|
+
exports.StyledSourceValue = styled_components_1.default.span `
|
|
250
|
+
font-weight: 600;
|
|
251
|
+
font-size: 12px;
|
|
252
|
+
line-height: 1.5;
|
|
253
|
+
color: ${constants_1.COLORS.N700};
|
|
254
|
+
`;
|
|
255
|
+
exports.StyledFileSourceValue = (0, styled_components_1.default)(exports.StyledSourceValue) `
|
|
256
|
+
display: block;
|
|
257
|
+
overflow: hidden;
|
|
258
|
+
text-overflow: ellipsis;
|
|
259
|
+
white-space: nowrap;
|
|
260
|
+
min-width: 0;
|
|
261
|
+
flex: 1;
|
|
262
|
+
`;
|
|
263
|
+
exports.StyledUrlSourceValue = styled_components_1.default.a `
|
|
264
|
+
font-weight: 600;
|
|
265
|
+
font-size: 12px;
|
|
266
|
+
line-height: 1.5;
|
|
267
|
+
color: ${constants_1.COLORS.N700};
|
|
268
|
+
text-decoration: none;
|
|
269
|
+
overflow: hidden;
|
|
270
|
+
text-overflow: ellipsis;
|
|
271
|
+
white-space: nowrap;
|
|
272
|
+
min-width: 0;
|
|
273
|
+
width: 0;
|
|
274
|
+
flex: 1 1 0%;
|
|
275
|
+
|
|
276
|
+
&:hover {
|
|
277
|
+
text-decoration: underline;
|
|
278
|
+
color: ${constants_1.COLORS.BOTONIC_BLUE};
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
&:visited {
|
|
282
|
+
color: ${constants_1.COLORS.N700};
|
|
283
|
+
}
|
|
284
|
+
`;
|
|
285
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +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,CAAC,WAAW,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC;;;;;;CAMlE,CAAA;AAEY,QAAA,gBAAgB,GAAG,2BAAM,CAAC,MAAM,CAAA;WAClC,kBAAM,CAAC,IAAI;;;;CAIrB,CAAA;AAEY,QAAA,gBAAgB,GAAG,2BAAM,CAAC,GAAG,CAAA;;;;;;WAM/B,kBAAM,CAAC,IAAI;;;;;;;;;;;CAWrB,CAAA;AAEY,QAAA,uBAAuB,GAAG,2BAAM,CAAC,GAAG,CAAA;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+1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { AiAgentDebugEvent, FallbackDebugEvent, HandoffSuccessDebugEvent, KeywordDebugEvent, KnowledgeBaseDebugEvent, SmartIntentDebugEvent } from './events';
|
|
3
|
+
export interface IconProps {
|
|
4
|
+
color?: string;
|
|
5
|
+
}
|
|
6
|
+
export type DebugEvent = KeywordDebugEvent | AiAgentDebugEvent | KnowledgeBaseDebugEvent | FallbackDebugEvent | SmartIntentDebugEvent | HandoffSuccessDebugEvent;
|
|
7
|
+
export interface DebugEventConfig {
|
|
8
|
+
action: string;
|
|
9
|
+
title: React.ReactNode;
|
|
10
|
+
component: React.ComponentType<any> | null;
|
|
11
|
+
icon?: React.ReactNode;
|
|
12
|
+
collapsible?: boolean;
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/components/system-debug-trace/types.ts"],"names":[],"mappings":""}
|
package/lib/cjs/constants.d.ts
CHANGED
|
@@ -25,6 +25,11 @@ export namespace COLORS {
|
|
|
25
25
|
const TASMAN_GRAY: string;
|
|
26
26
|
const TRANSPARENT: string;
|
|
27
27
|
const WILD_SAND_WHITE: string;
|
|
28
|
+
const N50: string;
|
|
29
|
+
const N100: string;
|
|
30
|
+
const N200: string;
|
|
31
|
+
const N500: string;
|
|
32
|
+
const N700: string;
|
|
28
33
|
}
|
|
29
34
|
export namespace WEBCHAT {
|
|
30
35
|
namespace DEFAULTS {
|
|
@@ -145,9 +150,11 @@ export namespace ROLES {
|
|
|
145
150
|
const WEBVIEW: string;
|
|
146
151
|
const WEBVIEW_HEADER: string;
|
|
147
152
|
const MESSAGE: string;
|
|
153
|
+
const SYSTEM_MESSAGE: string;
|
|
148
154
|
const IMAGE_MESSAGE: string;
|
|
149
155
|
const AUDIO_MESSAGE: string;
|
|
150
156
|
const VIDEO_MESSAGE: string;
|
|
151
157
|
const DOCUMENT_MESSAGE: string;
|
|
152
158
|
const RAW_MESSAGE: string;
|
|
159
|
+
const SYSTEM_DEBUG_TRACE_MESSAGE: string;
|
|
153
160
|
}
|
package/lib/cjs/constants.js
CHANGED
|
@@ -6,32 +6,37 @@ const botonic_react_logo100x100_png_1 = tslib_1.__importDefault(require("./asset
|
|
|
6
6
|
const url_icon_png_1 = tslib_1.__importDefault(require("./assets/url-icon.png"));
|
|
7
7
|
exports.COLORS = {
|
|
8
8
|
// http://chir.ag/projects/name-that-color
|
|
9
|
-
APPLE_GREEN: '
|
|
10
|
-
BLEACHED_CEDAR_PURPLE: '
|
|
11
|
-
BOTONIC_BLUE: '
|
|
12
|
-
CACTUS_GREEN: '
|
|
13
|
-
CONCRETE_WHITE: '
|
|
14
|
-
CURIOUS_BLUE: '
|
|
15
|
-
DAINTREE_BLUE: '
|
|
16
|
-
ERROR_RED: '
|
|
17
|
-
FRINGY_FLOWER_GREEN: '
|
|
18
|
-
GRAY: '
|
|
19
|
-
LIGHT_GRAY: '
|
|
20
|
-
MID_GRAY: '
|
|
9
|
+
APPLE_GREEN: '#3A9C35',
|
|
10
|
+
BLEACHED_CEDAR_PURPLE: '#2E203B',
|
|
11
|
+
BOTONIC_BLUE: '#0099FF',
|
|
12
|
+
CACTUS_GREEN: '#60735E',
|
|
13
|
+
CONCRETE_WHITE: '#F3F3F3',
|
|
14
|
+
CURIOUS_BLUE: '#268BD2',
|
|
15
|
+
DAINTREE_BLUE: '#002B35',
|
|
16
|
+
ERROR_RED: '#FF2B5E',
|
|
17
|
+
FRINGY_FLOWER_GREEN: '#C6E7C0',
|
|
18
|
+
GRAY: '#818181',
|
|
19
|
+
LIGHT_GRAY: '#D1D1D1',
|
|
20
|
+
MID_GRAY: '#696973',
|
|
21
21
|
PIGEON_POST_BLUE_ALPHA_0_5: 'rgba(176, 196, 222, 0.5)',
|
|
22
|
-
RED_NOTIFICATIONS: '
|
|
23
|
-
SCORPION_GRAY: '
|
|
24
|
-
SEASHELL_WHITE: '
|
|
25
|
-
SILVER: '
|
|
22
|
+
RED_NOTIFICATIONS: '#FF426F',
|
|
23
|
+
SCORPION_GRAY: '#575757',
|
|
24
|
+
SEASHELL_WHITE: '#F1F0F0',
|
|
25
|
+
SILVER: '#C8C8C8',
|
|
26
26
|
SOLID_BLACK_ALPHA_0_2: 'rgba(0, 0, 0, 0.2)',
|
|
27
27
|
SOLID_BLACK_ALPHA_0_5: 'rgba(0, 0, 0, 0.5)',
|
|
28
|
-
SOLID_BLACK: '
|
|
28
|
+
SOLID_BLACK: '#000000',
|
|
29
29
|
SOLID_WHITE_ALPHA_0_2: 'rgba(255, 255, 255, 0.2)',
|
|
30
30
|
SOLID_WHITE_ALPHA_0_8: 'rgba(255, 255, 255, 0.8)',
|
|
31
|
-
SOLID_WHITE: '
|
|
32
|
-
TASMAN_GRAY: '
|
|
31
|
+
SOLID_WHITE: '#FFFFFF',
|
|
32
|
+
TASMAN_GRAY: '#D1D8CF',
|
|
33
33
|
TRANSPARENT: 'rgba(0, 0, 0, 0)',
|
|
34
|
-
WILD_SAND_WHITE: '
|
|
34
|
+
WILD_SAND_WHITE: '#F4F4F4',
|
|
35
|
+
N50: '#F0F0F3',
|
|
36
|
+
N100: '#E8E8EA',
|
|
37
|
+
N200: '#CAC9CE',
|
|
38
|
+
N500: '#6D6A78',
|
|
39
|
+
N700: '#393B45',
|
|
35
40
|
};
|
|
36
41
|
exports.WEBCHAT = {
|
|
37
42
|
DEFAULTS: {
|
|
@@ -170,10 +175,12 @@ exports.ROLES = {
|
|
|
170
175
|
WEBVIEW: 'webview',
|
|
171
176
|
WEBVIEW_HEADER: 'webview-header',
|
|
172
177
|
MESSAGE: 'message',
|
|
178
|
+
SYSTEM_MESSAGE: 'system-message',
|
|
173
179
|
IMAGE_MESSAGE: 'image-message',
|
|
174
180
|
AUDIO_MESSAGE: 'audio-message',
|
|
175
181
|
VIDEO_MESSAGE: 'video-message',
|
|
176
182
|
DOCUMENT_MESSAGE: 'document-message',
|
|
177
183
|
RAW_MESSAGE: 'raw-message',
|
|
184
|
+
SYSTEM_DEBUG_TRACE_MESSAGE: 'system-debug-trace-message',
|
|
178
185
|
};
|
|
179
186
|
//# sourceMappingURL=constants.js.map
|
package/lib/cjs/constants.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/constants.js"],"names":[],"mappings":";;;;AAAA,mHAAgE;AAChE,iFAA2C;AAE9B,QAAA,MAAM,GAAG;IACpB,0CAA0C;IAC1C,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/constants.js"],"names":[],"mappings":";;;;AAAA,mHAAgE;AAChE,iFAA2C;AAE9B,QAAA,MAAM,GAAG;IACpB,0CAA0C;IAC1C,WAAW,EAAE,SAAS;IACtB,qBAAqB,EAAE,SAAS;IAChC,YAAY,EAAE,SAAS;IACvB,YAAY,EAAE,SAAS;IACvB,cAAc,EAAE,SAAS;IACzB,YAAY,EAAE,SAAS;IACvB,aAAa,EAAE,SAAS;IACxB,SAAS,EAAE,SAAS;IACpB,mBAAmB,EAAE,SAAS;IAC9B,IAAI,EAAE,SAAS;IACf,UAAU,EAAE,SAAS;IACrB,QAAQ,EAAE,SAAS;IACnB,0BAA0B,EAAE,0BAA0B;IACtD,iBAAiB,EAAE,SAAS;IAC5B,aAAa,EAAE,SAAS;IACxB,cAAc,EAAE,SAAS;IACzB,MAAM,EAAE,SAAS;IACjB,qBAAqB,EAAE,oBAAoB;IAC3C,qBAAqB,EAAE,oBAAoB;IAC3C,WAAW,EAAE,SAAS;IACtB,qBAAqB,EAAE,0BAA0B;IACjD,qBAAqB,EAAE,0BAA0B;IACjD,WAAW,EAAE,SAAS;IACtB,WAAW,EAAE,SAAS;IACtB,WAAW,EAAE,kBAAkB;IAC/B,eAAe,EAAE,SAAS;IAC1B,GAAG,EAAE,SAAS;IACd,IAAI,EAAE,SAAS;IACf,IAAI,EAAE,SAAS;IACf,IAAI,EAAE,SAAS;IACf,IAAI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A"}
|
package/lib/cjs/index-types.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { BotContext, BotRequest as CoreBotRequest, Input as CoreInput, InputType as CoreInputType, Route as CoreRoute, Routes as CoreRoutes, ServerConfig, Session as CoreSession, SessionUser as CoreSessionUser } from '@botonic/core';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { BlockInputOption, ButtonProps, ReplyProps, WebchatSettingsProps } from './components';
|
|
4
|
+
import { ChunkIdsGroupedBySourceData } from './components/system-debug-trace/events/knowledge-bases-types';
|
|
4
5
|
import { CloseWebviewOptions } from './contexts';
|
|
5
6
|
import { UseWebchat } from './webchat/context/use-webchat';
|
|
6
7
|
import { CoverComponentOptions, PersistentMenuOptionsTheme, WebchatTheme } from './webchat/theme/types';
|
|
@@ -18,6 +19,7 @@ export type Routes = CoreRoutes<Route>;
|
|
|
18
19
|
export type ActionRequest = BotContext;
|
|
19
20
|
export interface WebchatRef {
|
|
20
21
|
addBotResponse: ({ response, session, lastRoutePath, }: AddBotResponseArgs) => void;
|
|
22
|
+
addSystemResponse: ({ response }: AddSystemResponseArgs) => void;
|
|
21
23
|
setTyping: (typing: boolean) => void;
|
|
22
24
|
addUserMessage: (message: any) => Promise<void>;
|
|
23
25
|
updateUser: (userToUpdate: any) => void;
|
|
@@ -47,6 +49,13 @@ interface AddBotResponseArgs {
|
|
|
47
49
|
session?: any;
|
|
48
50
|
lastRoutePath?: any;
|
|
49
51
|
}
|
|
52
|
+
interface AddSystemResponseArgs {
|
|
53
|
+
response: any;
|
|
54
|
+
}
|
|
55
|
+
export interface PreviewUtils {
|
|
56
|
+
getChunkIdsGroupedBySource: (chunkIds: string[]) => Promise<ChunkIdsGroupedBySourceData[]>;
|
|
57
|
+
onClickOpenChunks: (chunkIdsGroupedBySource: ChunkIdsGroupedBySourceData[]) => void;
|
|
58
|
+
}
|
|
50
59
|
export interface WebchatArgs {
|
|
51
60
|
theme?: Partial<WebchatTheme>;
|
|
52
61
|
persistentMenu?: PersistentMenuOptionsTheme;
|
|
@@ -71,6 +80,7 @@ export interface WebchatArgs {
|
|
|
71
80
|
appId?: string;
|
|
72
81
|
visibility?: boolean | (() => boolean) | 'dynamic';
|
|
73
82
|
server?: ServerConfig;
|
|
83
|
+
previewUtils?: PreviewUtils;
|
|
74
84
|
}
|
|
75
85
|
export interface WebchatProps {
|
|
76
86
|
webchatHooks?: UseWebchat;
|
|
@@ -91,6 +101,7 @@ export interface WebchatProps {
|
|
|
91
101
|
host?: any;
|
|
92
102
|
server?: ServerConfig;
|
|
93
103
|
localWebviews?: React.ComponentType[];
|
|
104
|
+
previewUtils?: PreviewUtils;
|
|
94
105
|
}
|
|
95
106
|
export type EventArgs = {
|
|
96
107
|
[key: string]: any;
|
|
@@ -99,7 +110,8 @@ export type TrackEventFunction = (request: ActionRequest, eventName: string, arg
|
|
|
99
110
|
export declare enum SENDERS {
|
|
100
111
|
bot = "bot",
|
|
101
112
|
user = "user",
|
|
102
|
-
agent = "agent"
|
|
113
|
+
agent = "agent",
|
|
114
|
+
system = "system"
|
|
103
115
|
}
|
|
104
116
|
export declare enum Typing {
|
|
105
117
|
On = "typing_on",
|
|
@@ -154,4 +166,4 @@ interface UpdateMessageInfoEvent {
|
|
|
154
166
|
isError?: boolean;
|
|
155
167
|
}
|
|
156
168
|
export { CaseEventQueuePositionChangedInput } from '@botonic/core';
|
|
157
|
-
export { WebchatTheme };
|
|
169
|
+
export { ChunkIdsGroupedBySourceData, WebchatTheme };
|