@botonic/react 0.56.0-alpha.0 → 0.57.0-rslib-esm.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/app.js +9 -0
- package/lib/app.js.map +1 -0
- package/lib/assets/types.d.ts +4 -0
- package/lib/botonic-tester.js +122 -0
- package/lib/botonic-tester.js.map +1 -0
- package/lib/components/audio.d.ts +9 -0
- package/lib/components/audio.js +59 -0
- package/lib/components/audio.js.map +1 -0
- package/lib/components/button/index.d.ts +17 -0
- package/lib/components/button/index.js +183 -0
- package/lib/components/button/index.js.map +1 -0
- package/lib/components/button/styles.js +42 -0
- package/lib/components/button/styles.js.map +1 -0
- package/lib/components/buttons-disabler.d.ts +21 -0
- package/lib/components/buttons-disabler.js +97 -0
- package/lib/components/buttons-disabler.js.map +1 -0
- package/lib/components/carousel.d.ts +10 -0
- package/lib/components/carousel.js +196 -0
- package/lib/components/carousel.js.map +1 -0
- package/lib/components/components.js +18 -0
- package/lib/components/components.js.map +1 -0
- package/lib/components/constants.js +15 -0
- package/lib/components/constants.js.map +1 -0
- package/lib/components/custom-message.d.ts +16 -0
- package/lib/components/custom-message.js +109 -0
- package/lib/components/custom-message.js.map +1 -0
- package/lib/components/document.d.ts +9 -0
- package/lib/components/document.js +82 -0
- package/lib/components/document.js.map +1 -0
- package/lib/components/element.js +68 -0
- package/lib/components/element.js.map +1 -0
- package/lib/components/handoff.d.ts +1 -0
- package/lib/components/handoff.js +76 -0
- package/lib/components/handoff.js.map +1 -0
- package/lib/components/image.d.ts +9 -0
- package/lib/components/image.js +81 -0
- package/lib/components/image.js.map +1 -0
- package/lib/components/index-types.d.ts +83 -0
- package/lib/components/index-types.js +4 -0
- package/lib/components/index-types.js.map +1 -0
- package/lib/components/index.d.ts +33 -0
- package/lib/components/index.js +99 -0
- package/lib/components/index.js.map +1 -0
- package/lib/components/location.js +68 -0
- package/lib/components/location.js.map +1 -0
- package/lib/components/markdown.js +165 -0
- package/lib/components/markdown.js.map +1 -0
- package/lib/components/message/index.js +277 -0
- package/lib/components/message/index.js.map +1 -0
- package/lib/components/message/message-footer.d.ts +8 -0
- package/lib/components/message/message-footer.js +38 -0
- package/lib/components/message/message-footer.js.map +1 -0
- package/lib/components/message/message-image.d.ts +7 -0
- package/lib/components/message/message-image.js +46 -0
- package/lib/components/message/message-image.js.map +1 -0
- package/lib/components/message/styles.js +123 -0
- package/lib/components/message/styles.js.map +1 -0
- package/lib/components/message/timestamps.d.ts +13 -0
- package/lib/components/message/timestamps.js +67 -0
- package/lib/components/message/timestamps.js.map +1 -0
- package/lib/components/message-template.js +26 -0
- package/lib/components/message-template.js.map +1 -0
- package/lib/components/multichannel/facebook/facebook.js +61 -0
- package/lib/components/multichannel/facebook/facebook.js.map +1 -0
- package/lib/components/multichannel/index-types.js +5 -0
- package/lib/components/multichannel/index-types.js.map +1 -0
- package/lib/components/multichannel/index.d.ts +11 -0
- package/lib/components/multichannel/index.js +25 -0
- package/lib/components/multichannel/index.js.map +1 -0
- package/lib/components/multichannel/multichannel-button.d.ts +4 -0
- package/lib/components/multichannel/multichannel-button.js +93 -0
- package/lib/components/multichannel/multichannel-button.js.map +1 -0
- package/lib/components/multichannel/multichannel-carousel.d.ts +1 -0
- package/lib/components/multichannel/multichannel-carousel.js +123 -0
- package/lib/components/multichannel/multichannel-carousel.js.map +1 -0
- package/lib/components/multichannel/multichannel-context.js +15 -0
- package/lib/components/multichannel/multichannel-context.js.map +1 -0
- package/lib/components/multichannel/multichannel-reply.d.ts +4 -0
- package/lib/components/multichannel/multichannel-reply.js +41 -0
- package/lib/components/multichannel/multichannel-reply.js.map +1 -0
- package/lib/components/multichannel/multichannel-text.d.ts +2 -0
- package/lib/components/multichannel/multichannel-text.js +286 -0
- package/lib/components/multichannel/multichannel-text.js.map +1 -0
- package/lib/components/multichannel/multichannel-utils.js +76 -0
- package/lib/components/multichannel/multichannel-utils.js.map +1 -0
- package/lib/components/multichannel/multichannel.js +111 -0
- package/lib/components/multichannel/multichannel.js.map +1 -0
- package/lib/components/multichannel/whatsapp/constants.js +16 -0
- package/lib/components/multichannel/whatsapp/constants.js.map +1 -0
- package/lib/components/multichannel/whatsapp/markdown-meta.js +41 -0
- package/lib/components/multichannel/whatsapp/markdown-meta.js.map +1 -0
- package/lib/components/pic.js +55 -0
- package/lib/components/pic.js.map +1 -0
- package/lib/components/raw.d.ts +9 -0
- package/lib/components/raw.js +86 -0
- package/lib/components/raw.js.map +1 -0
- package/lib/components/reply.d.ts +11 -0
- package/lib/components/reply.js +102 -0
- package/lib/components/reply.js.map +1 -0
- package/lib/components/share-button.js +26 -0
- package/lib/components/share-button.js.map +1 -0
- package/lib/components/subtitle.js +43 -0
- package/lib/components/subtitle.js.map +1 -0
- package/lib/components/system-debug-trace/debug-message.d.ts +8 -0
- package/lib/components/system-debug-trace/debug-message.js +132 -0
- package/lib/components/system-debug-trace/debug-message.js.map +1 -0
- package/lib/components/system-debug-trace/events/ai-agent/ai-agent.d.ts +4 -0
- package/lib/components/system-debug-trace/events/ai-agent/ai-agent.js +140 -0
- package/lib/components/system-debug-trace/events/ai-agent/ai-agent.js.map +1 -0
- package/lib/components/system-debug-trace/events/ai-agent/executed-tools.d.ts +7 -0
- package/lib/components/system-debug-trace/events/ai-agent/executed-tools.js +46 -0
- package/lib/components/system-debug-trace/events/ai-agent/executed-tools.js.map +1 -0
- package/lib/components/system-debug-trace/events/ai-agent/index.d.ts +2 -0
- package/lib/components/system-debug-trace/events/ai-agent/index.js +7 -0
- package/lib/components/system-debug-trace/events/ai-agent/index.js.map +1 -0
- package/lib/components/system-debug-trace/events/ai-agent/parse-tools.d.ts +9 -0
- package/lib/components/system-debug-trace/events/ai-agent/parse-tools.js +30 -0
- package/lib/components/system-debug-trace/events/ai-agent/parse-tools.js.map +1 -0
- package/lib/components/system-debug-trace/events/ai-agent/rehydrate-ai-agent-event.d.ts +6 -0
- package/lib/components/system-debug-trace/events/ai-agent/rehydrate-ai-agent-event.js +49 -0
- package/lib/components/system-debug-trace/events/ai-agent/rehydrate-ai-agent-event.js.map +1 -0
- package/lib/components/system-debug-trace/events/ai-agent/types.d.ts +23 -0
- package/lib/components/system-debug-trace/events/ai-agent/types.js +4 -0
- package/lib/components/system-debug-trace/events/ai-agent/types.js.map +1 -0
- package/lib/components/system-debug-trace/events/ai-agent/use-rehydrated-ai-agent-event.d.ts +8 -0
- package/lib/components/system-debug-trace/events/ai-agent/use-rehydrated-ai-agent-event.js +41 -0
- package/lib/components/system-debug-trace/events/ai-agent/use-rehydrated-ai-agent-event.js.map +1 -0
- package/lib/components/system-debug-trace/events/ai-agent-router/ai-agent-router.d.ts +4 -0
- package/lib/components/system-debug-trace/events/ai-agent-router/ai-agent-router.js +93 -0
- package/lib/components/system-debug-trace/events/ai-agent-router/ai-agent-router.js.map +1 -0
- package/lib/components/system-debug-trace/events/ai-agent-router/index.d.ts +2 -0
- package/lib/components/system-debug-trace/events/ai-agent-router/index.js +7 -0
- package/lib/components/system-debug-trace/events/ai-agent-router/index.js.map +1 -0
- package/lib/components/system-debug-trace/events/ai-agent-router/types.d.ts +23 -0
- package/lib/components/system-debug-trace/events/ai-agent-router/types.js +4 -0
- package/lib/components/system-debug-trace/events/ai-agent-router/types.js.map +1 -0
- package/lib/components/system-debug-trace/events/bot-action.d.ts +7 -0
- package/lib/components/system-debug-trace/events/bot-action.js +34 -0
- package/lib/components/system-debug-trace/events/bot-action.js.map +1 -0
- package/lib/components/system-debug-trace/events/components/guardrail-item.js +39 -0
- package/lib/components/system-debug-trace/events/components/guardrail-item.js.map +1 -0
- package/lib/components/system-debug-trace/events/components/index.d.ts +2 -0
- package/lib/components/system-debug-trace/events/components/index.js +7 -0
- package/lib/components/system-debug-trace/events/components/index.js.map +1 -0
- package/lib/components/system-debug-trace/events/components/sources-section.d.ts +11 -0
- package/lib/components/system-debug-trace/events/components/sources-section.js +56 -0
- package/lib/components/system-debug-trace/events/components/sources-section.js.map +1 -0
- package/lib/components/system-debug-trace/events/conditional-channel.d.ts +7 -0
- package/lib/components/system-debug-trace/events/conditional-channel.js +34 -0
- package/lib/components/system-debug-trace/events/conditional-channel.js.map +1 -0
- package/lib/components/system-debug-trace/events/conditional-country.d.ts +7 -0
- package/lib/components/system-debug-trace/events/conditional-country.js +34 -0
- package/lib/components/system-debug-trace/events/conditional-country.js.map +1 -0
- package/lib/components/system-debug-trace/events/conditional-custom.d.ts +10 -0
- package/lib/components/system-debug-trace/events/conditional-custom.js +66 -0
- package/lib/components/system-debug-trace/events/conditional-custom.js.map +1 -0
- package/lib/components/system-debug-trace/events/conditional-queue-status.d.ts +11 -0
- package/lib/components/system-debug-trace/events/conditional-queue-status.js +78 -0
- package/lib/components/system-debug-trace/events/conditional-queue-status.js.map +1 -0
- package/lib/components/system-debug-trace/events/constants.js +37 -0
- package/lib/components/system-debug-trace/events/constants.js.map +1 -0
- package/lib/components/system-debug-trace/events/fallback.d.ts +9 -0
- package/lib/components/system-debug-trace/events/fallback.js +36 -0
- package/lib/components/system-debug-trace/events/fallback.js.map +1 -0
- package/lib/components/system-debug-trace/events/handoff-success.d.ts +11 -0
- package/lib/components/system-debug-trace/events/handoff-success.js +99 -0
- package/lib/components/system-debug-trace/events/handoff-success.js.map +1 -0
- package/lib/components/system-debug-trace/events/index.d.ts +14 -0
- package/lib/components/system-debug-trace/events/index.js +31 -0
- package/lib/components/system-debug-trace/events/index.js.map +1 -0
- package/lib/components/system-debug-trace/events/keyword.d.ts +10 -0
- package/lib/components/system-debug-trace/events/keyword.js +35 -0
- package/lib/components/system-debug-trace/events/keyword.js.map +1 -0
- package/lib/components/system-debug-trace/events/knowledge-bases-types.js +4 -0
- package/lib/components/system-debug-trace/events/knowledge-bases-types.js.map +1 -0
- package/lib/components/system-debug-trace/events/redirect-flow.d.ts +10 -0
- package/lib/components/system-debug-trace/events/redirect-flow.js +34 -0
- package/lib/components/system-debug-trace/events/redirect-flow.js.map +1 -0
- package/lib/components/system-debug-trace/events/smart-intent.d.ts +7 -0
- package/lib/components/system-debug-trace/events/smart-intent.js +34 -0
- package/lib/components/system-debug-trace/events/smart-intent.js.map +1 -0
- package/lib/components/system-debug-trace/events/webview-action-triggered.d.ts +10 -0
- package/lib/components/system-debug-trace/events/webview-action-triggered.js +51 -0
- package/lib/components/system-debug-trace/events/webview-action-triggered.js.map +1 -0
- package/lib/components/system-debug-trace/hooks/use-knowledge-base-info.d.ts +16 -0
- package/lib/components/system-debug-trace/hooks/use-knowledge-base-info.js +118 -0
- package/lib/components/system-debug-trace/hooks/use-knowledge-base-info.js.map +1 -0
- package/lib/components/system-debug-trace/hooks/use-last-label-position.js +84 -0
- package/lib/components/system-debug-trace/hooks/use-last-label-position.js.map +1 -0
- package/lib/components/system-debug-trace/icons/ai-router.d.ts +1 -0
- package/lib/components/system-debug-trace/icons/ai-router.js +71 -0
- package/lib/components/system-debug-trace/icons/ai-router.js.map +1 -0
- package/lib/components/system-debug-trace/icons/ai-specialist.d.ts +1 -0
- package/lib/components/system-debug-trace/icons/ai-specialist.js +85 -0
- package/lib/components/system-debug-trace/icons/ai-specialist.js.map +1 -0
- package/lib/components/system-debug-trace/icons/arrow-progress.d.ts +2 -0
- package/lib/components/system-debug-trace/icons/arrow-progress.js +23 -0
- package/lib/components/system-debug-trace/icons/arrow-progress.js.map +1 -0
- package/lib/components/system-debug-trace/icons/brain.d.ts +2 -0
- package/lib/components/system-debug-trace/icons/brain.js +23 -0
- package/lib/components/system-debug-trace/icons/brain.js.map +1 -0
- package/lib/components/system-debug-trace/icons/caret-down.d.ts +2 -0
- package/lib/components/system-debug-trace/icons/caret-down.js +23 -0
- package/lib/components/system-debug-trace/icons/caret-down.js.map +1 -0
- package/lib/components/system-debug-trace/icons/caret-up.d.ts +2 -0
- package/lib/components/system-debug-trace/icons/caret-up.js +23 -0
- package/lib/components/system-debug-trace/icons/caret-up.js.map +1 -0
- package/lib/components/system-debug-trace/icons/circle-check.d.ts +2 -0
- package/lib/components/system-debug-trace/icons/circle-check.js +22 -0
- package/lib/components/system-debug-trace/icons/circle-check.js.map +1 -0
- package/lib/components/system-debug-trace/icons/code.d.ts +2 -0
- package/lib/components/system-debug-trace/icons/code.js +22 -0
- package/lib/components/system-debug-trace/icons/code.js.map +1 -0
- package/lib/components/system-debug-trace/icons/file-pdf.d.ts +2 -0
- package/lib/components/system-debug-trace/icons/file-pdf.js +23 -0
- package/lib/components/system-debug-trace/icons/file-pdf.js.map +1 -0
- package/lib/components/system-debug-trace/icons/file-word.d.ts +2 -0
- package/lib/components/system-debug-trace/icons/file-word.js +23 -0
- package/lib/components/system-debug-trace/icons/file-word.js.map +1 -0
- package/lib/components/system-debug-trace/icons/hand.d.ts +2 -0
- package/lib/components/system-debug-trace/icons/hand.js +23 -0
- package/lib/components/system-debug-trace/icons/hand.js.map +1 -0
- package/lib/components/system-debug-trace/icons/head-set.d.ts +2 -0
- package/lib/components/system-debug-trace/icons/head-set.js +23 -0
- package/lib/components/system-debug-trace/icons/head-set.js.map +1 -0
- package/lib/components/system-debug-trace/icons/index.d.ts +16 -0
- package/lib/components/system-debug-trace/icons/index.js +35 -0
- package/lib/components/system-debug-trace/icons/index.js.map +1 -0
- package/lib/components/system-debug-trace/icons/life-ring.d.ts +2 -0
- package/lib/components/system-debug-trace/icons/life-ring.js +23 -0
- package/lib/components/system-debug-trace/icons/life-ring.js.map +1 -0
- package/lib/components/system-debug-trace/icons/link.d.ts +2 -0
- package/lib/components/system-debug-trace/icons/link.js +23 -0
- package/lib/components/system-debug-trace/icons/link.js.map +1 -0
- package/lib/components/system-debug-trace/icons/quote-right.d.ts +2 -0
- package/lib/components/system-debug-trace/icons/quote-right.js +23 -0
- package/lib/components/system-debug-trace/icons/quote-right.js.map +1 -0
- package/lib/components/system-debug-trace/icons/screwdriver-wrench.d.ts +2 -0
- package/lib/components/system-debug-trace/icons/screwdriver-wrench.js +23 -0
- package/lib/components/system-debug-trace/icons/screwdriver-wrench.js.map +1 -0
- package/lib/components/system-debug-trace/icons/split.d.ts +2 -0
- package/lib/components/system-debug-trace/icons/split.js +23 -0
- package/lib/components/system-debug-trace/icons/split.js.map +1 -0
- package/lib/components/system-debug-trace/icons/wand.d.ts +2 -0
- package/lib/components/system-debug-trace/icons/wand.js +23 -0
- package/lib/components/system-debug-trace/icons/wand.js.map +1 -0
- package/lib/components/system-debug-trace/icons/window-restore.d.ts +2 -0
- package/lib/components/system-debug-trace/icons/window-restore.js +23 -0
- package/lib/components/system-debug-trace/icons/window-restore.js.map +1 -0
- package/lib/components/system-debug-trace/index.d.ts +10 -0
- package/lib/components/system-debug-trace/index.js +48 -0
- package/lib/components/system-debug-trace/index.js.map +1 -0
- package/lib/components/system-debug-trace/styles.js +290 -0
- package/lib/components/system-debug-trace/styles.js.map +1 -0
- package/lib/components/system-debug-trace/types.d.ts +13 -0
- package/lib/components/system-debug-trace/types.js +4 -0
- package/lib/components/system-debug-trace/types.js.map +1 -0
- package/lib/components/text.d.ts +8 -0
- package/lib/components/text.js +78 -0
- package/lib/components/text.js.map +1 -0
- package/lib/components/title.js +39 -0
- package/lib/components/title.js.map +1 -0
- package/lib/components/video.d.ts +9 -0
- package/lib/components/video.js +58 -0
- package/lib/components/video.js.map +1 -0
- package/lib/components/webchat-settings.d.ts +19 -0
- package/lib/components/webchat-settings.js +98 -0
- package/lib/components/webchat-settings.js.map +1 -0
- package/lib/components/whatsapp-button-list.js +78 -0
- package/lib/components/whatsapp-button-list.js.map +1 -0
- package/lib/components/whatsapp-catalog.js +48 -0
- package/lib/components/whatsapp-catalog.js.map +1 -0
- package/lib/components/whatsapp-cta-url-button.js +75 -0
- package/lib/components/whatsapp-cta-url-button.js.map +1 -0
- package/lib/components/whatsapp-interactive-media-carousel.d.ts +31 -0
- package/lib/components/whatsapp-interactive-media-carousel.js +59 -0
- package/lib/components/whatsapp-interactive-media-carousel.js.map +1 -0
- package/lib/components/whatsapp-media-carousel.js +67 -0
- package/lib/components/whatsapp-media-carousel.js.map +1 -0
- package/lib/components/whatsapp-product-carousel.js +60 -0
- package/lib/components/whatsapp-product-carousel.js.map +1 -0
- package/lib/components/whatsapp-product-list.js +53 -0
- package/lib/components/whatsapp-product-list.js.map +1 -0
- package/lib/components/whatsapp-product.js +49 -0
- package/lib/components/whatsapp-product.js.map +1 -0
- package/lib/components/whatsapp-request-contact-info.js +49 -0
- package/lib/components/whatsapp-request-contact-info.js.map +1 -0
- package/lib/components/whatsapp-template/index.d.ts +11 -0
- package/lib/components/whatsapp-template/index.js +52 -0
- package/lib/components/whatsapp-template/index.js.map +1 -0
- package/lib/components/whatsapp-template/types.js +30 -0
- package/lib/components/whatsapp-template/types.js.map +1 -0
- package/lib/constants.js +204 -0
- package/lib/constants.js.map +1 -0
- package/lib/contexts.d.ts +17 -0
- package/lib/contexts.js +33 -0
- package/lib/contexts.js.map +1 -0
- package/lib/debug-system-messages.d.ts +177 -0
- package/lib/debug-system-messages.js +234 -0
- package/lib/debug-system-messages.js.map +1 -0
- package/lib/dev-app.d.ts +213 -0
- package/lib/dev-app.js +135 -0
- package/lib/dev-app.js.map +1 -0
- package/lib/index-types.d.ts +187 -0
- package/lib/index-types.js +16 -0
- package/lib/index-types.js.map +1 -0
- package/lib/index.d.ts +12 -0
- package/lib/index.js +34 -0
- package/lib/index.js.map +1 -0
- package/lib/message-utils.js +49 -0
- package/lib/message-utils.js.map +1 -0
- package/lib/msg-to-botonic.js +232 -0
- package/lib/msg-to-botonic.js.map +1 -0
- package/lib/node-app.d.ts +7 -0
- package/lib/node-app.js +25 -0
- package/lib/node-app.js.map +1 -0
- package/lib/react-bot.d.ts +18 -0
- package/lib/react-bot.js +49 -0
- package/lib/react-bot.js.map +1 -0
- package/lib/shared/styles.js +34 -0
- package/lib/shared/styles.js.map +1 -0
- package/lib/util/dom.js +28 -0
- package/lib/util/dom.js.map +1 -0
- package/lib/util/environment.js +76 -0
- package/lib/util/environment.js.map +1 -0
- package/lib/util/error-boundary.d.ts +7 -0
- package/lib/util/error-boundary.js +43 -0
- package/lib/util/error-boundary.js.map +1 -0
- package/lib/util/functional.js +22 -0
- package/lib/util/functional.js.map +1 -0
- package/lib/util/i18n.js +156 -0
- package/lib/util/i18n.js.map +1 -0
- package/lib/util/index.d.ts +10 -0
- package/lib/util/index.js +23 -0
- package/lib/util/index.js.map +1 -0
- package/lib/util/logs.js +28 -0
- package/lib/util/logs.js.map +1 -0
- package/lib/util/objects.js +40 -0
- package/lib/util/objects.js.map +1 -0
- package/lib/util/react.js +51 -0
- package/lib/util/react.js.map +1 -0
- package/lib/util/regexs.js +21 -0
- package/lib/util/regexs.js.map +1 -0
- package/lib/util/strings.js +10 -0
- package/lib/util/strings.js.map +1 -0
- package/lib/util/webchat.d.ts +24 -0
- package/lib/util/webchat.js +101 -0
- package/lib/util/webchat.js.map +1 -0
- package/lib/util/webviews.d.ts +2 -0
- package/lib/util/webviews.js +8 -0
- package/lib/util/webviews.js.map +1 -0
- package/lib/webchat/chat-area/index.d.ts +1 -0
- package/lib/webchat/chat-area/index.js +46 -0
- package/lib/webchat/chat-area/index.js.map +1 -0
- package/lib/webchat/chat-area/styles.js +15 -0
- package/lib/webchat/chat-area/styles.js.map +1 -0
- package/lib/webchat/components/common.d.ts +1 -0
- package/lib/webchat/components/common.js +20 -0
- package/lib/webchat/components/common.js.map +1 -0
- package/lib/webchat/components/conditional-animation.d.ts +1 -0
- package/lib/webchat/components/conditional-animation.js +34 -0
- package/lib/webchat/components/conditional-animation.js.map +1 -0
- package/lib/webchat/components/opened-persistent-menu.d.ts +6 -0
- package/lib/webchat/components/opened-persistent-menu.js +72 -0
- package/lib/webchat/components/opened-persistent-menu.js.map +1 -0
- package/lib/webchat/constants.js +13 -0
- package/lib/webchat/constants.js.map +1 -0
- package/lib/webchat/context/actions.js +35 -0
- package/lib/webchat/context/actions.js.map +1 -0
- package/lib/webchat/context/index.d.ts +4 -0
- package/lib/webchat/context/index.js +118 -0
- package/lib/webchat/context/index.js.map +1 -0
- package/lib/webchat/context/messages-reducer.d.ts +6 -0
- package/lib/webchat/context/messages-reducer.js +187 -0
- package/lib/webchat/context/messages-reducer.js.map +1 -0
- package/lib/webchat/context/types.d.ts +84 -0
- package/lib/webchat/context/types.js +4 -0
- package/lib/webchat/context/types.js.map +1 -0
- package/lib/webchat/context/use-webchat.d.ts +46 -0
- package/lib/webchat/context/use-webchat.js +237 -0
- package/lib/webchat/context/use-webchat.js.map +1 -0
- package/lib/webchat/context/webchat-reducer.d.ts +6 -0
- package/lib/webchat/context/webchat-reducer.js +116 -0
- package/lib/webchat/context/webchat-reducer.js.map +1 -0
- package/lib/webchat/cover-component/index.d.ts +6 -0
- package/lib/webchat/cover-component/index.js +32 -0
- package/lib/webchat/cover-component/index.js.map +1 -0
- package/lib/webchat/custom-messages/index.d.ts +1 -0
- package/lib/webchat/custom-messages/index.js +6 -0
- package/lib/webchat/custom-messages/index.js.map +1 -0
- package/lib/webchat/custom-messages/rating/icons/face-angry.d.ts +3 -0
- package/lib/webchat/custom-messages/rating/icons/face-angry.js +27 -0
- package/lib/webchat/custom-messages/rating/icons/face-angry.js.map +1 -0
- package/lib/webchat/custom-messages/rating/icons/face-frown.d.ts +3 -0
- package/lib/webchat/custom-messages/rating/icons/face-frown.js +27 -0
- package/lib/webchat/custom-messages/rating/icons/face-frown.js.map +1 -0
- package/lib/webchat/custom-messages/rating/icons/face-grin-beam.d.ts +3 -0
- package/lib/webchat/custom-messages/rating/icons/face-grin-beam.js +27 -0
- package/lib/webchat/custom-messages/rating/icons/face-grin-beam.js.map +1 -0
- package/lib/webchat/custom-messages/rating/icons/face-meh.d.ts +3 -0
- package/lib/webchat/custom-messages/rating/icons/face-meh.js +27 -0
- package/lib/webchat/custom-messages/rating/icons/face-meh.js.map +1 -0
- package/lib/webchat/custom-messages/rating/icons/face-smile.d.ts +3 -0
- package/lib/webchat/custom-messages/rating/icons/face-smile.js +27 -0
- package/lib/webchat/custom-messages/rating/icons/face-smile.js.map +1 -0
- package/lib/webchat/custom-messages/rating/icons/index.d.ts +6 -0
- package/lib/webchat/custom-messages/rating/icons/index.js +15 -0
- package/lib/webchat/custom-messages/rating/icons/index.js.map +1 -0
- package/lib/webchat/custom-messages/rating/icons/star.d.ts +3 -0
- package/lib/webchat/custom-messages/rating/icons/star.js +27 -0
- package/lib/webchat/custom-messages/rating/icons/star.js.map +1 -0
- package/lib/webchat/custom-messages/rating/index.d.ts +2 -0
- package/lib/webchat/custom-messages/rating/index.js +105 -0
- package/lib/webchat/custom-messages/rating/index.js.map +1 -0
- package/lib/webchat/custom-messages/rating/rating-selector.d.ts +11 -0
- package/lib/webchat/custom-messages/rating/rating-selector.js +57 -0
- package/lib/webchat/custom-messages/rating/rating-selector.js.map +1 -0
- package/lib/webchat/custom-messages/rating/smileys.d.ts +2 -0
- package/lib/webchat/custom-messages/rating/smileys.js +26 -0
- package/lib/webchat/custom-messages/rating/smileys.js.map +1 -0
- package/lib/webchat/custom-messages/rating/stars.d.ts +2 -0
- package/lib/webchat/custom-messages/rating/stars.js +18 -0
- package/lib/webchat/custom-messages/rating/stars.js.map +1 -0
- package/lib/webchat/custom-messages/rating/styles.js +27 -0
- package/lib/webchat/custom-messages/rating/styles.js.map +1 -0
- package/lib/webchat/custom-messages/rating/types.js +9 -0
- package/lib/webchat/custom-messages/rating/types.js.map +1 -0
- package/lib/webchat/devices/index.js +20 -0
- package/lib/webchat/devices/index.js.map +1 -0
- package/lib/webchat/global.d.ts +3 -0
- package/lib/webchat/header/default-header.d.ts +1 -0
- package/lib/webchat/header/default-header.js +75 -0
- package/lib/webchat/header/default-header.js.map +1 -0
- package/lib/webchat/header/index.js +48 -0
- package/lib/webchat/header/index.js.map +1 -0
- package/lib/webchat/header/styles.js +67 -0
- package/lib/webchat/header/styles.js.map +1 -0
- package/lib/webchat/hooks/index.d.ts +10 -0
- package/lib/webchat/hooks/index.js +33 -0
- package/lib/webchat/hooks/index.js.map +1 -0
- package/lib/webchat/hooks/use-component-visible.js +30 -0
- package/lib/webchat/hooks/use-component-visible.js.map +1 -0
- package/lib/webchat/hooks/use-component-will-mount.js +11 -0
- package/lib/webchat/hooks/use-component-will-mount.js.map +1 -0
- package/lib/webchat/hooks/use-device-adapter.js +68 -0
- package/lib/webchat/hooks/use-device-adapter.js.map +1 -0
- package/lib/webchat/hooks/use-previous.js +15 -0
- package/lib/webchat/hooks/use-previous.js.map +1 -0
- package/lib/webchat/hooks/use-scroll-to-bottom.js +29 -0
- package/lib/webchat/hooks/use-scroll-to-bottom.js.map +1 -0
- package/lib/webchat/hooks/use-scrollbar-controller.js +148 -0
- package/lib/webchat/hooks/use-scrollbar-controller.js.map +1 -0
- package/lib/webchat/hooks/use-typing.d.ts +10 -0
- package/lib/webchat/hooks/use-typing.js +42 -0
- package/lib/webchat/hooks/use-typing.js.map +1 -0
- package/lib/webchat/hooks/use-virtual-keyboard-detection.js +32 -0
- package/lib/webchat/hooks/use-virtual-keyboard-detection.js.map +1 -0
- package/lib/webchat/hooks/use-webchat-dimensions.js +44 -0
- package/lib/webchat/hooks/use-webchat-dimensions.js.map +1 -0
- package/lib/webchat/hooks/use-webchat-resizer.js +34 -0
- package/lib/webchat/hooks/use-webchat-resizer.js.map +1 -0
- package/lib/webchat/index-types.d.ts +7 -0
- package/lib/webchat/index-types.js +4 -0
- package/lib/webchat/index-types.js.map +1 -0
- package/lib/webchat/index.d.ts +6 -0
- package/lib/webchat/index.js +23 -0
- package/lib/webchat/index.js.map +1 -0
- package/lib/webchat/input-panel/attachment.d.ts +6 -0
- package/lib/webchat/input-panel/attachment.js +71 -0
- package/lib/webchat/input-panel/attachment.js.map +1 -0
- package/lib/webchat/input-panel/emoji-picker.d.ts +5 -0
- package/lib/webchat/input-panel/emoji-picker.js +50 -0
- package/lib/webchat/input-panel/emoji-picker.js.map +1 -0
- package/lib/webchat/input-panel/index.d.ts +9 -0
- package/lib/webchat/input-panel/index.js +109 -0
- package/lib/webchat/input-panel/index.js.map +1 -0
- package/lib/webchat/input-panel/opened-emoji-picker.d.ts +6 -0
- package/lib/webchat/input-panel/opened-emoji-picker.js +39 -0
- package/lib/webchat/input-panel/opened-emoji-picker.js.map +1 -0
- package/lib/webchat/input-panel/persistent-menu.d.ts +5 -0
- package/lib/webchat/input-panel/persistent-menu.js +42 -0
- package/lib/webchat/input-panel/persistent-menu.js.map +1 -0
- package/lib/webchat/input-panel/send-button.d.ts +5 -0
- package/lib/webchat/input-panel/send-button.js +46 -0
- package/lib/webchat/input-panel/send-button.js.map +1 -0
- package/lib/webchat/input-panel/styles.js +35 -0
- package/lib/webchat/input-panel/styles.js.map +1 -0
- package/lib/webchat/input-panel/textarea.d.ts +10 -0
- package/lib/webchat/input-panel/textarea.js +82 -0
- package/lib/webchat/input-panel/textarea.js.map +1 -0
- package/lib/webchat/input-panel/typing-network-sender.d.ts +52 -0
- package/lib/webchat/input-panel/typing-network-sender.js +141 -0
- package/lib/webchat/input-panel/typing-network-sender.js.map +1 -0
- package/lib/webchat/input-panel/use-typing-chat-event-sender.d.ts +16 -0
- package/lib/webchat/input-panel/use-typing-chat-event-sender.js +56 -0
- package/lib/webchat/input-panel/use-typing-chat-event-sender.js.map +1 -0
- package/lib/webchat/input-panel/use-typing-session.d.ts +15 -0
- package/lib/webchat/input-panel/use-typing-session.js +109 -0
- package/lib/webchat/input-panel/use-typing-session.js.map +1 -0
- package/lib/webchat/message-list/index.d.ts +2 -0
- package/lib/webchat/message-list/index.js +176 -0
- package/lib/webchat/message-list/index.js.map +1 -0
- package/lib/webchat/message-list/intro-message.d.ts +1 -0
- package/lib/webchat/message-list/intro-message.js +49 -0
- package/lib/webchat/message-list/intro-message.js.map +1 -0
- package/lib/webchat/message-list/scroll-button.js +37 -0
- package/lib/webchat/message-list/scroll-button.js.map +1 -0
- package/lib/webchat/message-list/styles.js +63 -0
- package/lib/webchat/message-list/styles.js.map +1 -0
- package/lib/webchat/message-list/unread-messages-banner.js +45 -0
- package/lib/webchat/message-list/unread-messages-banner.js.map +1 -0
- package/lib/webchat/message-list/use-debounce.js +20 -0
- package/lib/webchat/message-list/use-debounce.js.map +1 -0
- package/lib/webchat/message-list/use-notifications.js +30 -0
- package/lib/webchat/message-list/use-notifications.js.map +1 -0
- package/lib/webchat/replies/index.d.ts +1 -0
- package/lib/webchat/replies/index.js +51 -0
- package/lib/webchat/replies/index.js.map +1 -0
- package/lib/webchat/replies/styles.js +27 -0
- package/lib/webchat/replies/styles.js.map +1 -0
- package/lib/webchat/session-view.d.ts +1 -0
- package/lib/webchat/session-view.js +168 -0
- package/lib/webchat/session-view.js.map +1 -0
- package/lib/webchat/styles.js +69 -0
- package/lib/webchat/styles.js.map +1 -0
- package/lib/webchat/theme/default-theme.d.ts +2 -0
- package/lib/webchat/theme/default-theme.js +119 -0
- package/lib/webchat/theme/default-theme.js.map +1 -0
- package/lib/webchat/theme/theme.d.ts +8 -0
- package/lib/webchat/theme/types.d.ts +213 -0
- package/lib/webchat/theme/types.js +4 -0
- package/lib/webchat/theme/types.js.map +1 -0
- package/lib/webchat/tracking.js +47 -0
- package/lib/webchat/tracking.js.map +1 -0
- package/lib/webchat/trigger-button/index.js +59 -0
- package/lib/webchat/trigger-button/index.js.map +1 -0
- package/lib/webchat/trigger-button/styles.js +44 -0
- package/lib/webchat/trigger-button/styles.js.map +1 -0
- package/lib/webchat/typing-indicator/index.js +32 -0
- package/lib/webchat/typing-indicator/index.js.map +1 -0
- package/lib/webchat/typing-indicator/styles.js +52 -0
- package/lib/webchat/typing-indicator/styles.js.map +1 -0
- package/lib/webchat/use-storage-state-hook.js +53 -0
- package/lib/webchat/use-storage-state-hook.js.map +1 -0
- package/lib/webchat/utils.js +15 -0
- package/lib/webchat/utils.js.map +1 -0
- package/lib/webchat/webchat-dev.js +98 -0
- package/lib/webchat/webchat-dev.js.map +1 -0
- package/lib/webchat/webchat.d.ts +3 -0
- package/lib/webchat/webchat.js +729 -0
- package/lib/webchat/webchat.js.map +1 -0
- package/lib/webchat/webview/header.d.ts +1 -0
- package/lib/webchat/webview/header.js +37 -0
- package/lib/webchat/webview/header.js.map +1 -0
- package/lib/webchat/webview/index.d.ts +6 -0
- package/lib/webchat/webview/index.js +116 -0
- package/lib/webchat/webview/index.js.map +1 -0
- package/lib/webchat/webview/styles.js +64 -0
- package/lib/webchat/webview/styles.js.map +1 -0
- package/lib/webchat-app.d.ts +114 -0
- package/lib/webchat-app.js +470 -0
- package/lib/webchat-app.js.map +1 -0
- package/lib/webview-app.js +215 -0
- package/lib/webview-app.js.map +1 -0
- package/package.json +12 -13
- package/src/components/index.ts +14 -14
- package/src/components/multichannel/index.ts +7 -6
- package/src/dev-app.jsx +1 -1
- package/src/index-types.ts +6 -6
- package/src/webchat/context/index.tsx +1 -1
- package/src/webchat/index.ts +1 -1
- package/src/webchat/webchat.tsx +1 -0
- package/lib/cjs/app.js +0 -10
- package/lib/cjs/app.js.map +0 -1
- package/lib/cjs/botonic-tester.js +0 -76
- package/lib/cjs/botonic-tester.js.map +0 -1
- package/lib/cjs/components/audio.d.ts +0 -9
- package/lib/cjs/components/audio.js +0 -27
- package/lib/cjs/components/audio.js.map +0 -1
- package/lib/cjs/components/button/index.d.ts +0 -17
- package/lib/cjs/components/button/index.js +0 -139
- package/lib/cjs/components/button/index.js.map +0 -1
- package/lib/cjs/components/button/styles.js +0 -40
- package/lib/cjs/components/button/styles.js.map +0 -1
- package/lib/cjs/components/buttons-disabler.d.ts +0 -21
- package/lib/cjs/components/buttons-disabler.js +0 -94
- package/lib/cjs/components/buttons-disabler.js.map +0 -1
- package/lib/cjs/components/carousel.d.ts +0 -10
- package/lib/cjs/components/carousel.js +0 -119
- package/lib/cjs/components/carousel.js.map +0 -1
- package/lib/cjs/components/components.js +0 -21
- package/lib/cjs/components/components.js.map +0 -1
- package/lib/cjs/components/constants.js +0 -15
- package/lib/cjs/components/constants.js.map +0 -1
- package/lib/cjs/components/custom-message.d.ts +0 -16
- package/lib/cjs/components/custom-message.js +0 -60
- package/lib/cjs/components/custom-message.js.map +0 -1
- package/lib/cjs/components/document.d.ts +0 -9
- package/lib/cjs/components/document.js +0 -50
- package/lib/cjs/components/document.js.map +0 -1
- package/lib/cjs/components/element.js +0 -56
- package/lib/cjs/components/element.js.map +0 -1
- package/lib/cjs/components/handoff.d.ts +0 -1
- package/lib/cjs/components/handoff.js +0 -54
- package/lib/cjs/components/handoff.js.map +0 -1
- package/lib/cjs/components/image.d.ts +0 -9
- package/lib/cjs/components/image.js +0 -40
- package/lib/cjs/components/image.js.map +0 -1
- package/lib/cjs/components/index-types.d.ts +0 -83
- package/lib/cjs/components/index-types.js +0 -3
- package/lib/cjs/components/index-types.js.map +0 -1
- package/lib/cjs/components/index.d.ts +0 -33
- package/lib/cjs/components/index.js +0 -71
- package/lib/cjs/components/index.js.map +0 -1
- package/lib/cjs/components/location.js +0 -31
- package/lib/cjs/components/location.js.map +0 -1
- package/lib/cjs/components/markdown.js +0 -172
- package/lib/cjs/components/markdown.js.map +0 -1
- package/lib/cjs/components/message/index.js +0 -174
- package/lib/cjs/components/message/index.js.map +0 -1
- package/lib/cjs/components/message/message-footer.d.ts +0 -8
- package/lib/cjs/components/message/message-footer.js +0 -20
- package/lib/cjs/components/message/message-footer.js.map +0 -1
- package/lib/cjs/components/message/message-image.d.ts +0 -7
- package/lib/cjs/components/message/message-image.js +0 -26
- package/lib/cjs/components/message/message-image.js.map +0 -1
- package/lib/cjs/components/message/styles.js +0 -123
- package/lib/cjs/components/message/styles.js.map +0 -1
- package/lib/cjs/components/message/timestamps.d.ts +0 -13
- package/lib/cjs/components/message/timestamps.js +0 -45
- package/lib/cjs/components/message/timestamps.js.map +0 -1
- package/lib/cjs/components/message-template.js +0 -13
- package/lib/cjs/components/message-template.js.map +0 -1
- package/lib/cjs/components/multichannel/facebook/facebook.js +0 -48
- package/lib/cjs/components/multichannel/facebook/facebook.js.map +0 -1
- package/lib/cjs/components/multichannel/index-types.js +0 -3
- package/lib/cjs/components/multichannel/index-types.js.map +0 -1
- package/lib/cjs/components/multichannel/index.d.ts +0 -11
- package/lib/cjs/components/multichannel/index.js +0 -16
- package/lib/cjs/components/multichannel/index.js.map +0 -1
- package/lib/cjs/components/multichannel/multichannel-button.d.ts +0 -4
- package/lib/cjs/components/multichannel/multichannel-button.js +0 -72
- package/lib/cjs/components/multichannel/multichannel-button.js.map +0 -1
- package/lib/cjs/components/multichannel/multichannel-carousel.d.ts +0 -1
- package/lib/cjs/components/multichannel/multichannel-carousel.js +0 -80
- package/lib/cjs/components/multichannel/multichannel-carousel.js.map +0 -1
- package/lib/cjs/components/multichannel/multichannel-context.js +0 -13
- package/lib/cjs/components/multichannel/multichannel-context.js.map +0 -1
- package/lib/cjs/components/multichannel/multichannel-reply.d.ts +0 -4
- package/lib/cjs/components/multichannel/multichannel-reply.js +0 -27
- package/lib/cjs/components/multichannel/multichannel-reply.js.map +0 -1
- package/lib/cjs/components/multichannel/multichannel-text.d.ts +0 -1
- package/lib/cjs/components/multichannel/multichannel-text.js +0 -184
- package/lib/cjs/components/multichannel/multichannel-text.js.map +0 -1
- package/lib/cjs/components/multichannel/multichannel-utils.js +0 -89
- package/lib/cjs/components/multichannel/multichannel-utils.js.map +0 -1
- package/lib/cjs/components/multichannel/multichannel.js +0 -63
- package/lib/cjs/components/multichannel/multichannel.js.map +0 -1
- package/lib/cjs/components/multichannel/whatsapp/constants.js +0 -14
- package/lib/cjs/components/multichannel/whatsapp/constants.js.map +0 -1
- package/lib/cjs/components/multichannel/whatsapp/markdown-meta.js +0 -41
- package/lib/cjs/components/multichannel/whatsapp/markdown-meta.js.map +0 -1
- package/lib/cjs/components/pic.js +0 -32
- package/lib/cjs/components/pic.js.map +0 -1
- package/lib/cjs/components/raw.d.ts +0 -9
- package/lib/cjs/components/raw.js +0 -45
- package/lib/cjs/components/raw.js.map +0 -1
- package/lib/cjs/components/reply.d.ts +0 -11
- package/lib/cjs/components/reply.js +0 -66
- package/lib/cjs/components/reply.js.map +0 -1
- package/lib/cjs/components/share-button.js +0 -13
- package/lib/cjs/components/share-button.js.map +0 -1
- package/lib/cjs/components/subtitle.js +0 -25
- package/lib/cjs/components/subtitle.js.map +0 -1
- package/lib/cjs/components/system-debug-trace/debug-message.d.ts +0 -7
- package/lib/cjs/components/system-debug-trace/debug-message.js +0 -82
- package/lib/cjs/components/system-debug-trace/debug-message.js.map +0 -1
- package/lib/cjs/components/system-debug-trace/events/ai-agent/ai-agent.d.ts +0 -4
- package/lib/cjs/components/system-debug-trace/events/ai-agent/ai-agent.js +0 -53
- package/lib/cjs/components/system-debug-trace/events/ai-agent/ai-agent.js.map +0 -1
- package/lib/cjs/components/system-debug-trace/events/ai-agent/executed-tools.d.ts +0 -7
- package/lib/cjs/components/system-debug-trace/events/ai-agent/executed-tools.js +0 -21
- package/lib/cjs/components/system-debug-trace/events/ai-agent/executed-tools.js.map +0 -1
- package/lib/cjs/components/system-debug-trace/events/ai-agent/index.d.ts +0 -2
- package/lib/cjs/components/system-debug-trace/events/ai-agent/index.js +0 -6
- package/lib/cjs/components/system-debug-trace/events/ai-agent/index.js.map +0 -1
- package/lib/cjs/components/system-debug-trace/events/ai-agent/parse-tools.d.ts +0 -9
- package/lib/cjs/components/system-debug-trace/events/ai-agent/parse-tools.js +0 -32
- package/lib/cjs/components/system-debug-trace/events/ai-agent/parse-tools.js.map +0 -1
- package/lib/cjs/components/system-debug-trace/events/ai-agent/rehydrate-ai-agent-event.d.ts +0 -6
- package/lib/cjs/components/system-debug-trace/events/ai-agent/rehydrate-ai-agent-event.js +0 -55
- package/lib/cjs/components/system-debug-trace/events/ai-agent/rehydrate-ai-agent-event.js.map +0 -1
- package/lib/cjs/components/system-debug-trace/events/ai-agent/types.d.ts +0 -23
- package/lib/cjs/components/system-debug-trace/events/ai-agent/types.js +0 -3
- package/lib/cjs/components/system-debug-trace/events/ai-agent/types.js.map +0 -1
- package/lib/cjs/components/system-debug-trace/events/ai-agent/use-rehydrated-ai-agent-event.d.ts +0 -8
- package/lib/cjs/components/system-debug-trace/events/ai-agent/use-rehydrated-ai-agent-event.js +0 -41
- package/lib/cjs/components/system-debug-trace/events/ai-agent/use-rehydrated-ai-agent-event.js.map +0 -1
- package/lib/cjs/components/system-debug-trace/events/ai-agent-router/ai-agent-router.d.ts +0 -4
- package/lib/cjs/components/system-debug-trace/events/ai-agent-router/ai-agent-router.js +0 -23
- package/lib/cjs/components/system-debug-trace/events/ai-agent-router/ai-agent-router.js.map +0 -1
- package/lib/cjs/components/system-debug-trace/events/ai-agent-router/index.d.ts +0 -2
- package/lib/cjs/components/system-debug-trace/events/ai-agent-router/index.js +0 -6
- package/lib/cjs/components/system-debug-trace/events/ai-agent-router/index.js.map +0 -1
- package/lib/cjs/components/system-debug-trace/events/ai-agent-router/types.d.ts +0 -23
- package/lib/cjs/components/system-debug-trace/events/ai-agent-router/types.js +0 -3
- package/lib/cjs/components/system-debug-trace/events/ai-agent-router/types.js.map +0 -1
- package/lib/cjs/components/system-debug-trace/events/bot-action.d.ts +0 -7
- package/lib/cjs/components/system-debug-trace/events/bot-action.js +0 -18
- package/lib/cjs/components/system-debug-trace/events/bot-action.js.map +0 -1
- package/lib/cjs/components/system-debug-trace/events/components/guardrail-item.js +0 -12
- package/lib/cjs/components/system-debug-trace/events/components/guardrail-item.js.map +0 -1
- package/lib/cjs/components/system-debug-trace/events/components/index.d.ts +0 -2
- package/lib/cjs/components/system-debug-trace/events/components/index.js +0 -6
- package/lib/cjs/components/system-debug-trace/events/components/index.js.map +0 -1
- package/lib/cjs/components/system-debug-trace/events/components/sources-section.d.ts +0 -11
- package/lib/cjs/components/system-debug-trace/events/components/sources-section.js +0 -27
- package/lib/cjs/components/system-debug-trace/events/components/sources-section.js.map +0 -1
- package/lib/cjs/components/system-debug-trace/events/conditional-channel.d.ts +0 -7
- package/lib/cjs/components/system-debug-trace/events/conditional-channel.js +0 -18
- package/lib/cjs/components/system-debug-trace/events/conditional-channel.js.map +0 -1
- package/lib/cjs/components/system-debug-trace/events/conditional-country.d.ts +0 -7
- package/lib/cjs/components/system-debug-trace/events/conditional-country.js +0 -18
- package/lib/cjs/components/system-debug-trace/events/conditional-country.js.map +0 -1
- package/lib/cjs/components/system-debug-trace/events/conditional-custom.d.ts +0 -10
- package/lib/cjs/components/system-debug-trace/events/conditional-custom.js +0 -24
- package/lib/cjs/components/system-debug-trace/events/conditional-custom.js.map +0 -1
- package/lib/cjs/components/system-debug-trace/events/conditional-queue-status.d.ts +0 -11
- package/lib/cjs/components/system-debug-trace/events/conditional-queue-status.js +0 -26
- package/lib/cjs/components/system-debug-trace/events/conditional-queue-status.js.map +0 -1
- package/lib/cjs/components/system-debug-trace/events/constants.js +0 -37
- package/lib/cjs/components/system-debug-trace/events/constants.js.map +0 -1
- package/lib/cjs/components/system-debug-trace/events/fallback.d.ts +0 -9
- package/lib/cjs/components/system-debug-trace/events/fallback.js +0 -19
- package/lib/cjs/components/system-debug-trace/events/fallback.js.map +0 -1
- package/lib/cjs/components/system-debug-trace/events/handoff-success.d.ts +0 -11
- package/lib/cjs/components/system-debug-trace/events/handoff-success.js +0 -42
- package/lib/cjs/components/system-debug-trace/events/handoff-success.js.map +0 -1
- package/lib/cjs/components/system-debug-trace/events/index.d.ts +0 -14
- package/lib/cjs/components/system-debug-trace/events/index.js +0 -18
- package/lib/cjs/components/system-debug-trace/events/index.js.map +0 -1
- package/lib/cjs/components/system-debug-trace/events/keyword.d.ts +0 -10
- package/lib/cjs/components/system-debug-trace/events/keyword.js +0 -18
- package/lib/cjs/components/system-debug-trace/events/keyword.js.map +0 -1
- package/lib/cjs/components/system-debug-trace/events/knowledge-bases-types.js +0 -3
- package/lib/cjs/components/system-debug-trace/events/knowledge-bases-types.js.map +0 -1
- package/lib/cjs/components/system-debug-trace/events/redirect-flow.d.ts +0 -10
- package/lib/cjs/components/system-debug-trace/events/redirect-flow.js +0 -18
- package/lib/cjs/components/system-debug-trace/events/redirect-flow.js.map +0 -1
- package/lib/cjs/components/system-debug-trace/events/smart-intent.d.ts +0 -7
- package/lib/cjs/components/system-debug-trace/events/smart-intent.js +0 -17
- package/lib/cjs/components/system-debug-trace/events/smart-intent.js.map +0 -1
- package/lib/cjs/components/system-debug-trace/events/webview-action-triggered.d.ts +0 -10
- package/lib/cjs/components/system-debug-trace/events/webview-action-triggered.js +0 -25
- package/lib/cjs/components/system-debug-trace/events/webview-action-triggered.js.map +0 -1
- package/lib/cjs/components/system-debug-trace/hooks/use-knowledge-base-info.d.ts +0 -16
- package/lib/cjs/components/system-debug-trace/hooks/use-knowledge-base-info.js +0 -111
- package/lib/cjs/components/system-debug-trace/hooks/use-knowledge-base-info.js.map +0 -1
- package/lib/cjs/components/system-debug-trace/hooks/use-last-label-position.js +0 -81
- package/lib/cjs/components/system-debug-trace/hooks/use-last-label-position.js.map +0 -1
- package/lib/cjs/components/system-debug-trace/icons/ai-router.d.ts +0 -1
- package/lib/cjs/components/system-debug-trace/icons/ai-router.js +0 -14
- package/lib/cjs/components/system-debug-trace/icons/ai-router.js.map +0 -1
- package/lib/cjs/components/system-debug-trace/icons/ai-specialist.d.ts +0 -1
- package/lib/cjs/components/system-debug-trace/icons/ai-specialist.js +0 -15
- package/lib/cjs/components/system-debug-trace/icons/ai-specialist.js.map +0 -1
- package/lib/cjs/components/system-debug-trace/icons/arrow-progress.d.ts +0 -2
- package/lib/cjs/components/system-debug-trace/icons/arrow-progress.js +0 -12
- package/lib/cjs/components/system-debug-trace/icons/arrow-progress.js.map +0 -1
- package/lib/cjs/components/system-debug-trace/icons/brain.d.ts +0 -2
- package/lib/cjs/components/system-debug-trace/icons/brain.js +0 -12
- package/lib/cjs/components/system-debug-trace/icons/brain.js.map +0 -1
- package/lib/cjs/components/system-debug-trace/icons/caret-down.d.ts +0 -2
- package/lib/cjs/components/system-debug-trace/icons/caret-down.js +0 -12
- package/lib/cjs/components/system-debug-trace/icons/caret-down.js.map +0 -1
- package/lib/cjs/components/system-debug-trace/icons/caret-up.d.ts +0 -2
- package/lib/cjs/components/system-debug-trace/icons/caret-up.js +0 -12
- package/lib/cjs/components/system-debug-trace/icons/caret-up.js.map +0 -1
- package/lib/cjs/components/system-debug-trace/icons/circle-check.d.ts +0 -2
- package/lib/cjs/components/system-debug-trace/icons/circle-check.js +0 -11
- package/lib/cjs/components/system-debug-trace/icons/circle-check.js.map +0 -1
- package/lib/cjs/components/system-debug-trace/icons/code.d.ts +0 -2
- package/lib/cjs/components/system-debug-trace/icons/code.js +0 -11
- package/lib/cjs/components/system-debug-trace/icons/code.js.map +0 -1
- package/lib/cjs/components/system-debug-trace/icons/file-pdf.d.ts +0 -2
- package/lib/cjs/components/system-debug-trace/icons/file-pdf.js +0 -12
- package/lib/cjs/components/system-debug-trace/icons/file-pdf.js.map +0 -1
- package/lib/cjs/components/system-debug-trace/icons/file-word.d.ts +0 -2
- package/lib/cjs/components/system-debug-trace/icons/file-word.js +0 -12
- package/lib/cjs/components/system-debug-trace/icons/file-word.js.map +0 -1
- package/lib/cjs/components/system-debug-trace/icons/hand.d.ts +0 -2
- package/lib/cjs/components/system-debug-trace/icons/hand.js +0 -12
- package/lib/cjs/components/system-debug-trace/icons/hand.js.map +0 -1
- package/lib/cjs/components/system-debug-trace/icons/head-set.d.ts +0 -2
- package/lib/cjs/components/system-debug-trace/icons/head-set.js +0 -12
- package/lib/cjs/components/system-debug-trace/icons/head-set.js.map +0 -1
- package/lib/cjs/components/system-debug-trace/icons/index.d.ts +0 -16
- package/lib/cjs/components/system-debug-trace/icons/index.js +0 -20
- package/lib/cjs/components/system-debug-trace/icons/index.js.map +0 -1
- package/lib/cjs/components/system-debug-trace/icons/life-ring.d.ts +0 -2
- package/lib/cjs/components/system-debug-trace/icons/life-ring.js +0 -12
- package/lib/cjs/components/system-debug-trace/icons/life-ring.js.map +0 -1
- package/lib/cjs/components/system-debug-trace/icons/link.d.ts +0 -2
- package/lib/cjs/components/system-debug-trace/icons/link.js +0 -12
- package/lib/cjs/components/system-debug-trace/icons/link.js.map +0 -1
- package/lib/cjs/components/system-debug-trace/icons/quote-right.d.ts +0 -2
- package/lib/cjs/components/system-debug-trace/icons/quote-right.js +0 -12
- package/lib/cjs/components/system-debug-trace/icons/quote-right.js.map +0 -1
- package/lib/cjs/components/system-debug-trace/icons/screwdriver-wrench.d.ts +0 -2
- package/lib/cjs/components/system-debug-trace/icons/screwdriver-wrench.js +0 -12
- package/lib/cjs/components/system-debug-trace/icons/screwdriver-wrench.js.map +0 -1
- package/lib/cjs/components/system-debug-trace/icons/split.d.ts +0 -2
- package/lib/cjs/components/system-debug-trace/icons/split.js +0 -12
- package/lib/cjs/components/system-debug-trace/icons/split.js.map +0 -1
- package/lib/cjs/components/system-debug-trace/icons/wand.d.ts +0 -2
- package/lib/cjs/components/system-debug-trace/icons/wand.js +0 -12
- package/lib/cjs/components/system-debug-trace/icons/wand.js.map +0 -1
- package/lib/cjs/components/system-debug-trace/icons/window-restore.d.ts +0 -2
- package/lib/cjs/components/system-debug-trace/icons/window-restore.js +0 -12
- package/lib/cjs/components/system-debug-trace/icons/window-restore.js.map +0 -1
- package/lib/cjs/components/system-debug-trace/index.d.ts +0 -10
- package/lib/cjs/components/system-debug-trace/index.js +0 -28
- package/lib/cjs/components/system-debug-trace/index.js.map +0 -1
- package/lib/cjs/components/system-debug-trace/styles.js +0 -286
- package/lib/cjs/components/system-debug-trace/styles.js.map +0 -1
- package/lib/cjs/components/system-debug-trace/types.d.ts +0 -13
- package/lib/cjs/components/system-debug-trace/types.js +0 -3
- package/lib/cjs/components/system-debug-trace/types.js.map +0 -1
- package/lib/cjs/components/text.d.ts +0 -8
- package/lib/cjs/components/text.js +0 -52
- package/lib/cjs/components/text.js.map +0 -1
- package/lib/cjs/components/title.js +0 -23
- package/lib/cjs/components/title.js.map +0 -1
- package/lib/cjs/components/video.d.ts +0 -9
- package/lib/cjs/components/video.js +0 -31
- package/lib/cjs/components/video.js.map +0 -1
- package/lib/cjs/components/webchat-settings.d.ts +0 -19
- package/lib/cjs/components/webchat-settings.js +0 -79
- package/lib/cjs/components/webchat-settings.js.map +0 -1
- package/lib/cjs/components/whatsapp-button-list.js +0 -51
- package/lib/cjs/components/whatsapp-button-list.js.map +0 -1
- package/lib/cjs/components/whatsapp-catalog.js +0 -25
- package/lib/cjs/components/whatsapp-catalog.js.map +0 -1
- package/lib/cjs/components/whatsapp-cta-url-button.js +0 -61
- package/lib/cjs/components/whatsapp-cta-url-button.js.map +0 -1
- package/lib/cjs/components/whatsapp-interactive-media-carousel.d.ts +0 -31
- package/lib/cjs/components/whatsapp-interactive-media-carousel.js +0 -25
- package/lib/cjs/components/whatsapp-interactive-media-carousel.js.map +0 -1
- package/lib/cjs/components/whatsapp-media-carousel.js +0 -42
- package/lib/cjs/components/whatsapp-media-carousel.js.map +0 -1
- package/lib/cjs/components/whatsapp-product-carousel.js +0 -34
- package/lib/cjs/components/whatsapp-product-carousel.js.map +0 -1
- package/lib/cjs/components/whatsapp-product-list.js +0 -26
- package/lib/cjs/components/whatsapp-product-list.js.map +0 -1
- package/lib/cjs/components/whatsapp-product.js +0 -25
- package/lib/cjs/components/whatsapp-product.js.map +0 -1
- package/lib/cjs/components/whatsapp-request-contact-info.js +0 -30
- package/lib/cjs/components/whatsapp-request-contact-info.js.map +0 -1
- package/lib/cjs/components/whatsapp-template/index.d.ts +0 -11
- package/lib/cjs/components/whatsapp-template/index.js +0 -25
- package/lib/cjs/components/whatsapp-template/index.js.map +0 -1
- package/lib/cjs/components/whatsapp-template/types.js +0 -30
- package/lib/cjs/components/whatsapp-template/types.js.map +0 -1
- package/lib/cjs/constants.js +0 -189
- package/lib/cjs/constants.js.map +0 -1
- package/lib/cjs/contexts.d.ts +0 -17
- package/lib/cjs/contexts.js +0 -30
- package/lib/cjs/contexts.js.map +0 -1
- package/lib/cjs/debug-system-messages.d.ts +0 -177
- package/lib/cjs/debug-system-messages.js +0 -219
- package/lib/cjs/debug-system-messages.js.map +0 -1
- package/lib/cjs/dev-app.d.ts +0 -213
- package/lib/cjs/dev-app.js +0 -98
- package/lib/cjs/dev-app.js.map +0 -1
- package/lib/cjs/index-types.d.ts +0 -187
- package/lib/cjs/index-types.js +0 -16
- package/lib/cjs/index-types.js.map +0 -1
- package/lib/cjs/index.d.ts +0 -12
- package/lib/cjs/index.js +0 -26
- package/lib/cjs/index.js.map +0 -1
- package/lib/cjs/message-utils.js +0 -64
- package/lib/cjs/message-utils.js.map +0 -1
- package/lib/cjs/msg-to-botonic.js +0 -142
- package/lib/cjs/msg-to-botonic.js.map +0 -1
- package/lib/cjs/node-app.d.ts +0 -7
- package/lib/cjs/node-app.js +0 -23
- package/lib/cjs/node-app.js.map +0 -1
- package/lib/cjs/react-bot.d.ts +0 -18
- package/lib/cjs/react-bot.js +0 -36
- package/lib/cjs/react-bot.js.map +0 -1
- package/lib/cjs/shared/styles.js +0 -32
- package/lib/cjs/shared/styles.js.map +0 -1
- package/lib/cjs/util/dom.js +0 -31
- package/lib/cjs/util/dom.js.map +0 -1
- package/lib/cjs/util/environment.js +0 -85
- package/lib/cjs/util/environment.js.map +0 -1
- package/lib/cjs/util/error-boundary.d.ts +0 -7
- package/lib/cjs/util/error-boundary.js +0 -32
- package/lib/cjs/util/error-boundary.js.map +0 -1
- package/lib/cjs/util/functional.js +0 -29
- package/lib/cjs/util/functional.js.map +0 -1
- package/lib/cjs/util/i18n.js +0 -165
- package/lib/cjs/util/i18n.js.map +0 -1
- package/lib/cjs/util/index.d.ts +0 -10
- package/lib/cjs/util/index.js +0 -14
- package/lib/cjs/util/index.js.map +0 -1
- package/lib/cjs/util/logs.js +0 -20
- package/lib/cjs/util/logs.js.map +0 -1
- package/lib/cjs/util/objects.js +0 -45
- package/lib/cjs/util/objects.js.map +0 -1
- package/lib/cjs/util/react.js +0 -45
- package/lib/cjs/util/react.js.map +0 -1
- package/lib/cjs/util/regexs.js +0 -24
- package/lib/cjs/util/regexs.js.map +0 -1
- package/lib/cjs/util/strings.js +0 -11
- package/lib/cjs/util/strings.js.map +0 -1
- package/lib/cjs/util/webchat.d.ts +0 -24
- package/lib/cjs/util/webchat.js +0 -100
- package/lib/cjs/util/webchat.js.map +0 -1
- package/lib/cjs/util/webviews.d.ts +0 -2
- package/lib/cjs/util/webviews.js +0 -8
- package/lib/cjs/util/webviews.js.map +0 -1
- package/lib/cjs/webchat/chat-area/index.d.ts +0 -1
- package/lib/cjs/webchat/chat-area/index.js +0 -22
- package/lib/cjs/webchat/chat-area/index.js.map +0 -1
- package/lib/cjs/webchat/chat-area/styles.js +0 -13
- package/lib/cjs/webchat/chat-area/styles.js.map +0 -1
- package/lib/cjs/webchat/components/common.d.ts +0 -1
- package/lib/cjs/webchat/components/common.js +0 -13
- package/lib/cjs/webchat/components/common.js.map +0 -1
- package/lib/cjs/webchat/components/conditional-animation.d.ts +0 -1
- package/lib/cjs/webchat/components/conditional-animation.js +0 -16
- package/lib/cjs/webchat/components/conditional-animation.js.map +0 -1
- package/lib/cjs/webchat/components/opened-persistent-menu.d.ts +0 -6
- package/lib/cjs/webchat/components/opened-persistent-menu.js +0 -37
- package/lib/cjs/webchat/components/opened-persistent-menu.js.map +0 -1
- package/lib/cjs/webchat/constants.js +0 -13
- package/lib/cjs/webchat/constants.js.map +0 -1
- package/lib/cjs/webchat/context/actions.js +0 -36
- package/lib/cjs/webchat/context/actions.js.map +0 -1
- package/lib/cjs/webchat/context/index.d.ts +0 -4
- package/lib/cjs/webchat/context/index.js +0 -102
- package/lib/cjs/webchat/context/index.js.map +0 -1
- package/lib/cjs/webchat/context/messages-reducer.d.ts +0 -6
- package/lib/cjs/webchat/context/messages-reducer.js +0 -175
- package/lib/cjs/webchat/context/messages-reducer.js.map +0 -1
- package/lib/cjs/webchat/context/types.d.ts +0 -84
- package/lib/cjs/webchat/context/types.js +0 -3
- package/lib/cjs/webchat/context/types.js.map +0 -1
- package/lib/cjs/webchat/context/use-webchat.d.ts +0 -46
- package/lib/cjs/webchat/context/use-webchat.js +0 -195
- package/lib/cjs/webchat/context/use-webchat.js.map +0 -1
- package/lib/cjs/webchat/context/webchat-reducer.d.ts +0 -6
- package/lib/cjs/webchat/context/webchat-reducer.js +0 -57
- package/lib/cjs/webchat/context/webchat-reducer.js.map +0 -1
- package/lib/cjs/webchat/cover-component/index.d.ts +0 -6
- package/lib/cjs/webchat/cover-component/index.js +0 -21
- package/lib/cjs/webchat/cover-component/index.js.map +0 -1
- package/lib/cjs/webchat/custom-messages/index.d.ts +0 -1
- package/lib/cjs/webchat/custom-messages/index.js +0 -7
- package/lib/cjs/webchat/custom-messages/index.js.map +0 -1
- package/lib/cjs/webchat/custom-messages/rating/icons/face-angry.d.ts +0 -3
- package/lib/cjs/webchat/custom-messages/rating/icons/face-angry.js +0 -9
- package/lib/cjs/webchat/custom-messages/rating/icons/face-angry.js.map +0 -1
- package/lib/cjs/webchat/custom-messages/rating/icons/face-frown.d.ts +0 -3
- package/lib/cjs/webchat/custom-messages/rating/icons/face-frown.js +0 -9
- package/lib/cjs/webchat/custom-messages/rating/icons/face-frown.js.map +0 -1
- package/lib/cjs/webchat/custom-messages/rating/icons/face-grin-beam.d.ts +0 -3
- package/lib/cjs/webchat/custom-messages/rating/icons/face-grin-beam.js +0 -9
- package/lib/cjs/webchat/custom-messages/rating/icons/face-grin-beam.js.map +0 -1
- package/lib/cjs/webchat/custom-messages/rating/icons/face-meh.d.ts +0 -3
- package/lib/cjs/webchat/custom-messages/rating/icons/face-meh.js +0 -9
- package/lib/cjs/webchat/custom-messages/rating/icons/face-meh.js.map +0 -1
- package/lib/cjs/webchat/custom-messages/rating/icons/face-smile.d.ts +0 -3
- package/lib/cjs/webchat/custom-messages/rating/icons/face-smile.js +0 -9
- package/lib/cjs/webchat/custom-messages/rating/icons/face-smile.js.map +0 -1
- package/lib/cjs/webchat/custom-messages/rating/icons/index.d.ts +0 -6
- package/lib/cjs/webchat/custom-messages/rating/icons/index.js +0 -10
- package/lib/cjs/webchat/custom-messages/rating/icons/index.js.map +0 -1
- package/lib/cjs/webchat/custom-messages/rating/icons/star.d.ts +0 -3
- package/lib/cjs/webchat/custom-messages/rating/icons/star.js +0 -9
- package/lib/cjs/webchat/custom-messages/rating/icons/star.js.map +0 -1
- package/lib/cjs/webchat/custom-messages/rating/index.d.ts +0 -2
- package/lib/cjs/webchat/custom-messages/rating/index.js +0 -56
- package/lib/cjs/webchat/custom-messages/rating/index.js.map +0 -1
- package/lib/cjs/webchat/custom-messages/rating/rating-selector.d.ts +0 -11
- package/lib/cjs/webchat/custom-messages/rating/rating-selector.js +0 -26
- package/lib/cjs/webchat/custom-messages/rating/rating-selector.js.map +0 -1
- package/lib/cjs/webchat/custom-messages/rating/smileys.d.ts +0 -2
- package/lib/cjs/webchat/custom-messages/rating/smileys.js +0 -19
- package/lib/cjs/webchat/custom-messages/rating/smileys.js.map +0 -1
- package/lib/cjs/webchat/custom-messages/rating/stars.d.ts +0 -2
- package/lib/cjs/webchat/custom-messages/rating/stars.js +0 -11
- package/lib/cjs/webchat/custom-messages/rating/stars.js.map +0 -1
- package/lib/cjs/webchat/custom-messages/rating/styles.js +0 -25
- package/lib/cjs/webchat/custom-messages/rating/styles.js.map +0 -1
- package/lib/cjs/webchat/custom-messages/rating/types.js +0 -9
- package/lib/cjs/webchat/custom-messages/rating/types.js.map +0 -1
- package/lib/cjs/webchat/devices/index.js +0 -23
- package/lib/cjs/webchat/devices/index.js.map +0 -1
- package/lib/cjs/webchat/header/default-header.d.ts +0 -1
- package/lib/cjs/webchat/header/default-header.js +0 -25
- package/lib/cjs/webchat/header/default-header.js.map +0 -1
- package/lib/cjs/webchat/header/index.js +0 -23
- package/lib/cjs/webchat/header/index.js.map +0 -1
- package/lib/cjs/webchat/header/styles.js +0 -63
- package/lib/cjs/webchat/header/styles.js.map +0 -1
- package/lib/cjs/webchat/hooks/index.d.ts +0 -10
- package/lib/cjs/webchat/hooks/index.js +0 -24
- package/lib/cjs/webchat/hooks/index.js.map +0 -1
- package/lib/cjs/webchat/hooks/use-component-visible.js +0 -23
- package/lib/cjs/webchat/hooks/use-component-visible.js.map +0 -1
- package/lib/cjs/webchat/hooks/use-component-will-mount.js +0 -9
- package/lib/cjs/webchat/hooks/use-component-will-mount.js.map +0 -1
- package/lib/cjs/webchat/hooks/use-device-adapter.js +0 -49
- package/lib/cjs/webchat/hooks/use-device-adapter.js.map +0 -1
- package/lib/cjs/webchat/hooks/use-previous.js +0 -12
- package/lib/cjs/webchat/hooks/use-previous.js.map +0 -1
- package/lib/cjs/webchat/hooks/use-scroll-to-bottom.js +0 -25
- package/lib/cjs/webchat/hooks/use-scroll-to-bottom.js.map +0 -1
- package/lib/cjs/webchat/hooks/use-scrollbar-controller.js +0 -143
- package/lib/cjs/webchat/hooks/use-scrollbar-controller.js.map +0 -1
- package/lib/cjs/webchat/hooks/use-typing.d.ts +0 -10
- package/lib/cjs/webchat/hooks/use-typing.js +0 -36
- package/lib/cjs/webchat/hooks/use-typing.js.map +0 -1
- package/lib/cjs/webchat/hooks/use-virtual-keyboard-detection.js +0 -26
- package/lib/cjs/webchat/hooks/use-virtual-keyboard-detection.js.map +0 -1
- package/lib/cjs/webchat/hooks/use-webchat-dimensions.js +0 -41
- package/lib/cjs/webchat/hooks/use-webchat-dimensions.js.map +0 -1
- package/lib/cjs/webchat/hooks/use-webchat-resizer.js +0 -34
- package/lib/cjs/webchat/hooks/use-webchat-resizer.js.map +0 -1
- package/lib/cjs/webchat/index-types.d.ts +0 -7
- package/lib/cjs/webchat/index-types.js +0 -3
- package/lib/cjs/webchat/index-types.js.map +0 -1
- package/lib/cjs/webchat/index.d.ts +0 -6
- package/lib/cjs/webchat/index.js +0 -20
- package/lib/cjs/webchat/index.js.map +0 -1
- package/lib/cjs/webchat/input-panel/attachment.d.ts +0 -6
- package/lib/cjs/webchat/input-panel/attachment.js +0 -30
- package/lib/cjs/webchat/input-panel/attachment.js.map +0 -1
- package/lib/cjs/webchat/input-panel/emoji-picker.d.ts +0 -5
- package/lib/cjs/webchat/input-panel/emoji-picker.js +0 -29
- package/lib/cjs/webchat/input-panel/emoji-picker.js.map +0 -1
- package/lib/cjs/webchat/input-panel/index.d.ts +0 -9
- package/lib/cjs/webchat/input-panel/index.js +0 -51
- package/lib/cjs/webchat/input-panel/index.js.map +0 -1
- package/lib/cjs/webchat/input-panel/opened-emoji-picker.d.ts +0 -6
- package/lib/cjs/webchat/input-panel/opened-emoji-picker.js +0 -15
- package/lib/cjs/webchat/input-panel/opened-emoji-picker.js.map +0 -1
- package/lib/cjs/webchat/input-panel/persistent-menu.d.ts +0 -5
- package/lib/cjs/webchat/input-panel/persistent-menu.js +0 -21
- package/lib/cjs/webchat/input-panel/persistent-menu.js.map +0 -1
- package/lib/cjs/webchat/input-panel/send-button.d.ts +0 -5
- package/lib/cjs/webchat/input-panel/send-button.js +0 -25
- package/lib/cjs/webchat/input-panel/send-button.js.map +0 -1
- package/lib/cjs/webchat/input-panel/styles.js +0 -31
- package/lib/cjs/webchat/input-panel/styles.js.map +0 -1
- package/lib/cjs/webchat/input-panel/textarea.d.ts +0 -10
- package/lib/cjs/webchat/input-panel/textarea.js +0 -52
- package/lib/cjs/webchat/input-panel/textarea.js.map +0 -1
- package/lib/cjs/webchat/input-panel/typing-network-sender.d.ts +0 -52
- package/lib/cjs/webchat/input-panel/typing-network-sender.js +0 -122
- package/lib/cjs/webchat/input-panel/typing-network-sender.js.map +0 -1
- package/lib/cjs/webchat/input-panel/use-typing-chat-event-sender.d.ts +0 -16
- package/lib/cjs/webchat/input-panel/use-typing-chat-event-sender.js +0 -45
- package/lib/cjs/webchat/input-panel/use-typing-chat-event-sender.js.map +0 -1
- package/lib/cjs/webchat/input-panel/use-typing-session.d.ts +0 -15
- package/lib/cjs/webchat/input-panel/use-typing-session.js +0 -98
- package/lib/cjs/webchat/input-panel/use-typing-session.js.map +0 -1
- package/lib/cjs/webchat/message-list/index.d.ts +0 -1
- package/lib/cjs/webchat/message-list/index.js +0 -116
- package/lib/cjs/webchat/message-list/index.js.map +0 -1
- package/lib/cjs/webchat/message-list/intro-message.d.ts +0 -1
- package/lib/cjs/webchat/message-list/intro-message.js +0 -24
- package/lib/cjs/webchat/message-list/intro-message.js.map +0 -1
- package/lib/cjs/webchat/message-list/scroll-button.js +0 -18
- package/lib/cjs/webchat/message-list/scroll-button.js.map +0 -1
- package/lib/cjs/webchat/message-list/styles.js +0 -61
- package/lib/cjs/webchat/message-list/styles.js.map +0 -1
- package/lib/cjs/webchat/message-list/unread-messages-banner.js +0 -18
- package/lib/cjs/webchat/message-list/unread-messages-banner.js.map +0 -1
- package/lib/cjs/webchat/message-list/use-debounce.js +0 -17
- package/lib/cjs/webchat/message-list/use-debounce.js.map +0 -1
- package/lib/cjs/webchat/message-list/use-notifications.js +0 -23
- package/lib/cjs/webchat/message-list/use-notifications.js.map +0 -1
- package/lib/cjs/webchat/replies/index.d.ts +0 -1
- package/lib/cjs/webchat/replies/index.js +0 -31
- package/lib/cjs/webchat/replies/index.js.map +0 -1
- package/lib/cjs/webchat/replies/styles.js +0 -25
- package/lib/cjs/webchat/replies/styles.js.map +0 -1
- package/lib/cjs/webchat/session-view.d.ts +0 -1
- package/lib/cjs/webchat/session-view.js +0 -103
- package/lib/cjs/webchat/session-view.js.map +0 -1
- package/lib/cjs/webchat/styles.js +0 -65
- package/lib/cjs/webchat/styles.js.map +0 -1
- package/lib/cjs/webchat/theme/default-theme.d.ts +0 -2
- package/lib/cjs/webchat/theme/default-theme.js +0 -104
- package/lib/cjs/webchat/theme/default-theme.js.map +0 -1
- package/lib/cjs/webchat/theme/types.d.ts +0 -213
- package/lib/cjs/webchat/theme/types.js +0 -3
- package/lib/cjs/webchat/theme/types.js.map +0 -1
- package/lib/cjs/webchat/tracking.js +0 -39
- package/lib/cjs/webchat/tracking.js.map +0 -1
- package/lib/cjs/webchat/trigger-button/index.js +0 -34
- package/lib/cjs/webchat/trigger-button/index.js.map +0 -1
- package/lib/cjs/webchat/trigger-button/styles.js +0 -40
- package/lib/cjs/webchat/trigger-button/styles.js.map +0 -1
- package/lib/cjs/webchat/typing-indicator/index.js +0 -10
- package/lib/cjs/webchat/typing-indicator/index.js.map +0 -1
- package/lib/cjs/webchat/typing-indicator/styles.js +0 -50
- package/lib/cjs/webchat/typing-indicator/styles.js.map +0 -1
- package/lib/cjs/webchat/use-storage-state-hook.js +0 -40
- package/lib/cjs/webchat/use-storage-state-hook.js.map +0 -1
- package/lib/cjs/webchat/utils.js +0 -13
- package/lib/cjs/webchat/utils.js.map +0 -1
- package/lib/cjs/webchat/webchat-dev.js +0 -56
- package/lib/cjs/webchat/webchat-dev.js.map +0 -1
- package/lib/cjs/webchat/webchat.d.ts +0 -3
- package/lib/cjs/webchat/webchat.js +0 -560
- package/lib/cjs/webchat/webchat.js.map +0 -1
- package/lib/cjs/webchat/webview/header.d.ts +0 -1
- package/lib/cjs/webchat/webview/header.js +0 -18
- package/lib/cjs/webchat/webview/header.js.map +0 -1
- package/lib/cjs/webchat/webview/index.d.ts +0 -6
- package/lib/cjs/webchat/webview/index.js +0 -82
- package/lib/cjs/webchat/webview/index.js.map +0 -1
- package/lib/cjs/webchat/webview/styles.js +0 -60
- package/lib/cjs/webchat/webview/styles.js.map +0 -1
- package/lib/cjs/webchat-app.d.ts +0 -114
- package/lib/cjs/webchat-app.js +0 -407
- package/lib/cjs/webchat-app.js.map +0 -1
- package/lib/cjs/webview-app.js +0 -192
- package/lib/cjs/webview-app.js.map +0 -1
- package/lib/esm/app.d.ts +0 -2
- package/lib/esm/app.js +0 -10
- package/lib/esm/app.js.map +0 -1
- package/lib/esm/assets/arrow-down.svg +0 -3
- package/lib/esm/assets/arrow-scroll-down.svg +0 -3
- package/lib/esm/assets/attachment-icon.svg +0 -7
- package/lib/esm/assets/audio.svg +0 -4
- package/lib/esm/assets/botonic_react_logo100x100.png +0 -0
- package/lib/esm/assets/document.svg +0 -3
- package/lib/esm/assets/emojiButton.svg +0 -6
- package/lib/esm/assets/image.svg +0 -4
- package/lib/esm/assets/leftArrow.svg +0 -3
- package/lib/esm/assets/menuButton.svg +0 -3
- package/lib/esm/assets/rightArrow.svg +0 -3
- package/lib/esm/assets/send-button.svg +0 -1
- package/lib/esm/assets/thumbs-down.svg +0 -3
- package/lib/esm/assets/thumbs-up.svg +0 -3
- package/lib/esm/assets/url-icon.png +0 -0
- package/lib/esm/assets/video.svg +0 -3
- package/lib/esm/botonic-tester.d.ts +0 -30
- package/lib/esm/botonic-tester.js +0 -76
- package/lib/esm/botonic-tester.js.map +0 -1
- package/lib/esm/components/audio.d.ts +0 -9
- package/lib/esm/components/audio.js +0 -27
- package/lib/esm/components/audio.js.map +0 -1
- package/lib/esm/components/button/index.d.ts +0 -17
- package/lib/esm/components/button/index.js +0 -139
- package/lib/esm/components/button/index.js.map +0 -1
- package/lib/esm/components/button/styles.d.ts +0 -2
- package/lib/esm/components/button/styles.js +0 -40
- package/lib/esm/components/button/styles.js.map +0 -1
- package/lib/esm/components/buttons-disabler.d.ts +0 -21
- package/lib/esm/components/buttons-disabler.js +0 -94
- package/lib/esm/components/buttons-disabler.js.map +0 -1
- package/lib/esm/components/carousel.d.ts +0 -10
- package/lib/esm/components/carousel.js +0 -119
- package/lib/esm/components/carousel.js.map +0 -1
- package/lib/esm/components/components.d.ts +0 -12
- package/lib/esm/components/components.js +0 -21
- package/lib/esm/components/components.js.map +0 -1
- package/lib/esm/components/constants.d.ts +0 -11
- package/lib/esm/components/constants.js +0 -15
- package/lib/esm/components/constants.js.map +0 -1
- package/lib/esm/components/custom-message.d.ts +0 -16
- package/lib/esm/components/custom-message.js +0 -60
- package/lib/esm/components/custom-message.js.map +0 -1
- package/lib/esm/components/document.d.ts +0 -9
- package/lib/esm/components/document.js +0 -50
- package/lib/esm/components/document.js.map +0 -1
- package/lib/esm/components/element.d.ts +0 -8
- package/lib/esm/components/element.js +0 -56
- package/lib/esm/components/element.js.map +0 -1
- package/lib/esm/components/handoff.d.ts +0 -1
- package/lib/esm/components/handoff.js +0 -54
- package/lib/esm/components/handoff.js.map +0 -1
- package/lib/esm/components/image.d.ts +0 -9
- package/lib/esm/components/image.js +0 -40
- package/lib/esm/components/image.js.map +0 -1
- package/lib/esm/components/index-types.d.ts +0 -83
- package/lib/esm/components/index-types.js +0 -3
- package/lib/esm/components/index-types.js.map +0 -1
- package/lib/esm/components/index.d.ts +0 -33
- package/lib/esm/components/index.js +0 -71
- package/lib/esm/components/index.js.map +0 -1
- package/lib/esm/components/location.d.ts +0 -11
- package/lib/esm/components/location.js +0 -31
- package/lib/esm/components/location.js.map +0 -1
- package/lib/esm/components/markdown.d.ts +0 -7
- package/lib/esm/components/markdown.js +0 -172
- package/lib/esm/components/markdown.js.map +0 -1
- package/lib/esm/components/message/index.d.ts +0 -1
- package/lib/esm/components/message/index.js +0 -174
- package/lib/esm/components/message/index.js.map +0 -1
- package/lib/esm/components/message/message-footer.d.ts +0 -8
- package/lib/esm/components/message/message-footer.js +0 -20
- package/lib/esm/components/message/message-footer.js.map +0 -1
- package/lib/esm/components/message/message-image.d.ts +0 -7
- package/lib/esm/components/message/message-image.js +0 -26
- package/lib/esm/components/message/message-image.js.map +0 -1
- package/lib/esm/components/message/styles.d.ts +0 -35
- package/lib/esm/components/message/styles.js +0 -123
- package/lib/esm/components/message/styles.js.map +0 -1
- package/lib/esm/components/message/timestamps.d.ts +0 -13
- package/lib/esm/components/message/timestamps.js +0 -45
- package/lib/esm/components/message/timestamps.js.map +0 -1
- package/lib/esm/components/message-template.d.ts +0 -1
- package/lib/esm/components/message-template.js +0 -13
- package/lib/esm/components/message-template.js.map +0 -1
- package/lib/esm/components/multichannel/facebook/facebook.d.ts +0 -17
- package/lib/esm/components/multichannel/facebook/facebook.js +0 -48
- package/lib/esm/components/multichannel/facebook/facebook.js.map +0 -1
- package/lib/esm/components/multichannel/index-types.d.ts +0 -42
- package/lib/esm/components/multichannel/index-types.js +0 -3
- package/lib/esm/components/multichannel/index-types.js.map +0 -1
- package/lib/esm/components/multichannel/index.d.ts +0 -11
- package/lib/esm/components/multichannel/index.js +0 -16
- package/lib/esm/components/multichannel/index.js.map +0 -1
- package/lib/esm/components/multichannel/multichannel-button.d.ts +0 -4
- package/lib/esm/components/multichannel/multichannel-button.js +0 -72
- package/lib/esm/components/multichannel/multichannel-button.js.map +0 -1
- package/lib/esm/components/multichannel/multichannel-carousel.d.ts +0 -1
- package/lib/esm/components/multichannel/multichannel-carousel.js +0 -80
- package/lib/esm/components/multichannel/multichannel-carousel.js.map +0 -1
- package/lib/esm/components/multichannel/multichannel-context.d.ts +0 -8
- package/lib/esm/components/multichannel/multichannel-context.js +0 -13
- package/lib/esm/components/multichannel/multichannel-context.js.map +0 -1
- package/lib/esm/components/multichannel/multichannel-reply.d.ts +0 -4
- package/lib/esm/components/multichannel/multichannel-reply.js +0 -27
- package/lib/esm/components/multichannel/multichannel-reply.js.map +0 -1
- package/lib/esm/components/multichannel/multichannel-text.d.ts +0 -1
- package/lib/esm/components/multichannel/multichannel-text.js +0 -184
- package/lib/esm/components/multichannel/multichannel-text.js.map +0 -1
- package/lib/esm/components/multichannel/multichannel-utils.d.ts +0 -36
- package/lib/esm/components/multichannel/multichannel-utils.js +0 -89
- package/lib/esm/components/multichannel/multichannel-utils.js.map +0 -1
- package/lib/esm/components/multichannel/multichannel.d.ts +0 -1
- package/lib/esm/components/multichannel/multichannel.js +0 -63
- package/lib/esm/components/multichannel/multichannel.js.map +0 -1
- package/lib/esm/components/multichannel/whatsapp/constants.d.ts +0 -12
- package/lib/esm/components/multichannel/whatsapp/constants.js +0 -14
- package/lib/esm/components/multichannel/whatsapp/constants.js.map +0 -1
- package/lib/esm/components/multichannel/whatsapp/markdown-meta.d.ts +0 -1
- package/lib/esm/components/multichannel/whatsapp/markdown-meta.js +0 -41
- package/lib/esm/components/multichannel/whatsapp/markdown-meta.js.map +0 -1
- package/lib/esm/components/pic.d.ts +0 -10
- package/lib/esm/components/pic.js +0 -32
- package/lib/esm/components/pic.js.map +0 -1
- package/lib/esm/components/raw.d.ts +0 -9
- package/lib/esm/components/raw.js +0 -45
- package/lib/esm/components/raw.js.map +0 -1
- package/lib/esm/components/reply.d.ts +0 -11
- package/lib/esm/components/reply.js +0 -66
- package/lib/esm/components/reply.js.map +0 -1
- package/lib/esm/components/share-button.d.ts +0 -1
- package/lib/esm/components/share-button.js +0 -13
- package/lib/esm/components/share-button.js.map +0 -1
- package/lib/esm/components/subtitle.d.ts +0 -11
- package/lib/esm/components/subtitle.js +0 -25
- package/lib/esm/components/subtitle.js.map +0 -1
- package/lib/esm/components/system-debug-trace/debug-message.d.ts +0 -7
- package/lib/esm/components/system-debug-trace/debug-message.js +0 -82
- package/lib/esm/components/system-debug-trace/debug-message.js.map +0 -1
- package/lib/esm/components/system-debug-trace/events/ai-agent/ai-agent.d.ts +0 -4
- package/lib/esm/components/system-debug-trace/events/ai-agent/ai-agent.js +0 -53
- package/lib/esm/components/system-debug-trace/events/ai-agent/ai-agent.js.map +0 -1
- package/lib/esm/components/system-debug-trace/events/ai-agent/executed-tools.d.ts +0 -7
- package/lib/esm/components/system-debug-trace/events/ai-agent/executed-tools.js +0 -21
- package/lib/esm/components/system-debug-trace/events/ai-agent/executed-tools.js.map +0 -1
- package/lib/esm/components/system-debug-trace/events/ai-agent/index.d.ts +0 -2
- package/lib/esm/components/system-debug-trace/events/ai-agent/index.js +0 -6
- package/lib/esm/components/system-debug-trace/events/ai-agent/index.js.map +0 -1
- package/lib/esm/components/system-debug-trace/events/ai-agent/parse-tools.d.ts +0 -9
- package/lib/esm/components/system-debug-trace/events/ai-agent/parse-tools.js +0 -32
- package/lib/esm/components/system-debug-trace/events/ai-agent/parse-tools.js.map +0 -1
- package/lib/esm/components/system-debug-trace/events/ai-agent/rehydrate-ai-agent-event.d.ts +0 -6
- package/lib/esm/components/system-debug-trace/events/ai-agent/rehydrate-ai-agent-event.js +0 -55
- package/lib/esm/components/system-debug-trace/events/ai-agent/rehydrate-ai-agent-event.js.map +0 -1
- package/lib/esm/components/system-debug-trace/events/ai-agent/types.d.ts +0 -23
- package/lib/esm/components/system-debug-trace/events/ai-agent/types.js +0 -3
- package/lib/esm/components/system-debug-trace/events/ai-agent/types.js.map +0 -1
- package/lib/esm/components/system-debug-trace/events/ai-agent/use-rehydrated-ai-agent-event.d.ts +0 -8
- package/lib/esm/components/system-debug-trace/events/ai-agent/use-rehydrated-ai-agent-event.js +0 -41
- package/lib/esm/components/system-debug-trace/events/ai-agent/use-rehydrated-ai-agent-event.js.map +0 -1
- package/lib/esm/components/system-debug-trace/events/ai-agent-router/ai-agent-router.d.ts +0 -4
- package/lib/esm/components/system-debug-trace/events/ai-agent-router/ai-agent-router.js +0 -23
- package/lib/esm/components/system-debug-trace/events/ai-agent-router/ai-agent-router.js.map +0 -1
- package/lib/esm/components/system-debug-trace/events/ai-agent-router/index.d.ts +0 -2
- package/lib/esm/components/system-debug-trace/events/ai-agent-router/index.js +0 -6
- package/lib/esm/components/system-debug-trace/events/ai-agent-router/index.js.map +0 -1
- package/lib/esm/components/system-debug-trace/events/ai-agent-router/types.d.ts +0 -23
- package/lib/esm/components/system-debug-trace/events/ai-agent-router/types.js +0 -3
- package/lib/esm/components/system-debug-trace/events/ai-agent-router/types.js.map +0 -1
- package/lib/esm/components/system-debug-trace/events/bot-action.d.ts +0 -7
- package/lib/esm/components/system-debug-trace/events/bot-action.js +0 -18
- package/lib/esm/components/system-debug-trace/events/bot-action.js.map +0 -1
- package/lib/esm/components/system-debug-trace/events/components/guardrail-item.d.ts +0 -14
- package/lib/esm/components/system-debug-trace/events/components/guardrail-item.js +0 -12
- package/lib/esm/components/system-debug-trace/events/components/guardrail-item.js.map +0 -1
- package/lib/esm/components/system-debug-trace/events/components/index.d.ts +0 -2
- package/lib/esm/components/system-debug-trace/events/components/index.js +0 -6
- package/lib/esm/components/system-debug-trace/events/components/index.js.map +0 -1
- package/lib/esm/components/system-debug-trace/events/components/sources-section.d.ts +0 -11
- package/lib/esm/components/system-debug-trace/events/components/sources-section.js +0 -27
- package/lib/esm/components/system-debug-trace/events/components/sources-section.js.map +0 -1
- package/lib/esm/components/system-debug-trace/events/conditional-channel.d.ts +0 -7
- package/lib/esm/components/system-debug-trace/events/conditional-channel.js +0 -18
- package/lib/esm/components/system-debug-trace/events/conditional-channel.js.map +0 -1
- package/lib/esm/components/system-debug-trace/events/conditional-country.d.ts +0 -7
- package/lib/esm/components/system-debug-trace/events/conditional-country.js +0 -18
- package/lib/esm/components/system-debug-trace/events/conditional-country.js.map +0 -1
- package/lib/esm/components/system-debug-trace/events/conditional-custom.d.ts +0 -10
- package/lib/esm/components/system-debug-trace/events/conditional-custom.js +0 -24
- package/lib/esm/components/system-debug-trace/events/conditional-custom.js.map +0 -1
- package/lib/esm/components/system-debug-trace/events/conditional-queue-status.d.ts +0 -11
- package/lib/esm/components/system-debug-trace/events/conditional-queue-status.js +0 -26
- package/lib/esm/components/system-debug-trace/events/conditional-queue-status.js.map +0 -1
- package/lib/esm/components/system-debug-trace/events/constants.d.ts +0 -33
- package/lib/esm/components/system-debug-trace/events/constants.js +0 -37
- package/lib/esm/components/system-debug-trace/events/constants.js.map +0 -1
- package/lib/esm/components/system-debug-trace/events/fallback.d.ts +0 -9
- package/lib/esm/components/system-debug-trace/events/fallback.js +0 -19
- package/lib/esm/components/system-debug-trace/events/fallback.js.map +0 -1
- package/lib/esm/components/system-debug-trace/events/handoff-success.d.ts +0 -11
- package/lib/esm/components/system-debug-trace/events/handoff-success.js +0 -42
- package/lib/esm/components/system-debug-trace/events/handoff-success.js.map +0 -1
- package/lib/esm/components/system-debug-trace/events/index.d.ts +0 -14
- package/lib/esm/components/system-debug-trace/events/index.js +0 -18
- package/lib/esm/components/system-debug-trace/events/index.js.map +0 -1
- package/lib/esm/components/system-debug-trace/events/keyword.d.ts +0 -10
- package/lib/esm/components/system-debug-trace/events/keyword.js +0 -18
- package/lib/esm/components/system-debug-trace/events/keyword.js.map +0 -1
- package/lib/esm/components/system-debug-trace/events/knowledge-bases-types.d.ts +0 -31
- package/lib/esm/components/system-debug-trace/events/knowledge-bases-types.js +0 -3
- package/lib/esm/components/system-debug-trace/events/knowledge-bases-types.js.map +0 -1
- package/lib/esm/components/system-debug-trace/events/redirect-flow.d.ts +0 -10
- package/lib/esm/components/system-debug-trace/events/redirect-flow.js +0 -18
- package/lib/esm/components/system-debug-trace/events/redirect-flow.js.map +0 -1
- package/lib/esm/components/system-debug-trace/events/smart-intent.d.ts +0 -7
- package/lib/esm/components/system-debug-trace/events/smart-intent.js +0 -17
- package/lib/esm/components/system-debug-trace/events/smart-intent.js.map +0 -1
- package/lib/esm/components/system-debug-trace/events/webview-action-triggered.d.ts +0 -10
- package/lib/esm/components/system-debug-trace/events/webview-action-triggered.js +0 -25
- package/lib/esm/components/system-debug-trace/events/webview-action-triggered.js.map +0 -1
- package/lib/esm/components/system-debug-trace/hooks/use-knowledge-base-info.d.ts +0 -16
- package/lib/esm/components/system-debug-trace/hooks/use-knowledge-base-info.js +0 -111
- package/lib/esm/components/system-debug-trace/hooks/use-knowledge-base-info.js.map +0 -1
- package/lib/esm/components/system-debug-trace/hooks/use-last-label-position.d.ts +0 -9
- package/lib/esm/components/system-debug-trace/hooks/use-last-label-position.js +0 -81
- package/lib/esm/components/system-debug-trace/hooks/use-last-label-position.js.map +0 -1
- package/lib/esm/components/system-debug-trace/icons/ai-router.d.ts +0 -1
- package/lib/esm/components/system-debug-trace/icons/ai-router.js +0 -14
- package/lib/esm/components/system-debug-trace/icons/ai-router.js.map +0 -1
- package/lib/esm/components/system-debug-trace/icons/ai-specialist.d.ts +0 -1
- package/lib/esm/components/system-debug-trace/icons/ai-specialist.js +0 -15
- package/lib/esm/components/system-debug-trace/icons/ai-specialist.js.map +0 -1
- package/lib/esm/components/system-debug-trace/icons/arrow-progress.d.ts +0 -2
- package/lib/esm/components/system-debug-trace/icons/arrow-progress.js +0 -12
- package/lib/esm/components/system-debug-trace/icons/arrow-progress.js.map +0 -1
- package/lib/esm/components/system-debug-trace/icons/brain.d.ts +0 -2
- package/lib/esm/components/system-debug-trace/icons/brain.js +0 -12
- package/lib/esm/components/system-debug-trace/icons/brain.js.map +0 -1
- package/lib/esm/components/system-debug-trace/icons/caret-down.d.ts +0 -2
- package/lib/esm/components/system-debug-trace/icons/caret-down.js +0 -12
- package/lib/esm/components/system-debug-trace/icons/caret-down.js.map +0 -1
- package/lib/esm/components/system-debug-trace/icons/caret-up.d.ts +0 -2
- package/lib/esm/components/system-debug-trace/icons/caret-up.js +0 -12
- package/lib/esm/components/system-debug-trace/icons/caret-up.js.map +0 -1
- package/lib/esm/components/system-debug-trace/icons/circle-check.d.ts +0 -2
- package/lib/esm/components/system-debug-trace/icons/circle-check.js +0 -11
- package/lib/esm/components/system-debug-trace/icons/circle-check.js.map +0 -1
- package/lib/esm/components/system-debug-trace/icons/code.d.ts +0 -2
- package/lib/esm/components/system-debug-trace/icons/code.js +0 -11
- package/lib/esm/components/system-debug-trace/icons/code.js.map +0 -1
- package/lib/esm/components/system-debug-trace/icons/file-pdf.d.ts +0 -2
- package/lib/esm/components/system-debug-trace/icons/file-pdf.js +0 -12
- package/lib/esm/components/system-debug-trace/icons/file-pdf.js.map +0 -1
- package/lib/esm/components/system-debug-trace/icons/file-word.d.ts +0 -2
- package/lib/esm/components/system-debug-trace/icons/file-word.js +0 -12
- package/lib/esm/components/system-debug-trace/icons/file-word.js.map +0 -1
- package/lib/esm/components/system-debug-trace/icons/hand.d.ts +0 -2
- package/lib/esm/components/system-debug-trace/icons/hand.js +0 -12
- package/lib/esm/components/system-debug-trace/icons/hand.js.map +0 -1
- package/lib/esm/components/system-debug-trace/icons/head-set.d.ts +0 -2
- package/lib/esm/components/system-debug-trace/icons/head-set.js +0 -12
- package/lib/esm/components/system-debug-trace/icons/head-set.js.map +0 -1
- package/lib/esm/components/system-debug-trace/icons/index.d.ts +0 -16
- package/lib/esm/components/system-debug-trace/icons/index.js +0 -20
- package/lib/esm/components/system-debug-trace/icons/index.js.map +0 -1
- package/lib/esm/components/system-debug-trace/icons/life-ring.d.ts +0 -2
- package/lib/esm/components/system-debug-trace/icons/life-ring.js +0 -12
- package/lib/esm/components/system-debug-trace/icons/life-ring.js.map +0 -1
- package/lib/esm/components/system-debug-trace/icons/link.d.ts +0 -2
- package/lib/esm/components/system-debug-trace/icons/link.js +0 -12
- package/lib/esm/components/system-debug-trace/icons/link.js.map +0 -1
- package/lib/esm/components/system-debug-trace/icons/quote-right.d.ts +0 -2
- package/lib/esm/components/system-debug-trace/icons/quote-right.js +0 -12
- package/lib/esm/components/system-debug-trace/icons/quote-right.js.map +0 -1
- package/lib/esm/components/system-debug-trace/icons/screwdriver-wrench.d.ts +0 -2
- package/lib/esm/components/system-debug-trace/icons/screwdriver-wrench.js +0 -12
- package/lib/esm/components/system-debug-trace/icons/screwdriver-wrench.js.map +0 -1
- package/lib/esm/components/system-debug-trace/icons/split.d.ts +0 -2
- package/lib/esm/components/system-debug-trace/icons/split.js +0 -12
- package/lib/esm/components/system-debug-trace/icons/split.js.map +0 -1
- package/lib/esm/components/system-debug-trace/icons/wand.d.ts +0 -2
- package/lib/esm/components/system-debug-trace/icons/wand.js +0 -12
- package/lib/esm/components/system-debug-trace/icons/wand.js.map +0 -1
- package/lib/esm/components/system-debug-trace/icons/window-restore.d.ts +0 -2
- package/lib/esm/components/system-debug-trace/icons/window-restore.js +0 -12
- package/lib/esm/components/system-debug-trace/icons/window-restore.js.map +0 -1
- package/lib/esm/components/system-debug-trace/index.d.ts +0 -10
- package/lib/esm/components/system-debug-trace/index.js +0 -28
- package/lib/esm/components/system-debug-trace/index.js.map +0 -1
- package/lib/esm/components/system-debug-trace/styles.d.ts +0 -23
- package/lib/esm/components/system-debug-trace/styles.js +0 -286
- package/lib/esm/components/system-debug-trace/styles.js.map +0 -1
- package/lib/esm/components/system-debug-trace/types.d.ts +0 -13
- package/lib/esm/components/system-debug-trace/types.js +0 -3
- package/lib/esm/components/system-debug-trace/types.js.map +0 -1
- package/lib/esm/components/text.d.ts +0 -8
- package/lib/esm/components/text.js +0 -52
- package/lib/esm/components/text.js.map +0 -1
- package/lib/esm/components/title.d.ts +0 -11
- package/lib/esm/components/title.js +0 -23
- package/lib/esm/components/title.js.map +0 -1
- package/lib/esm/components/video.d.ts +0 -9
- package/lib/esm/components/video.js +0 -31
- package/lib/esm/components/video.js.map +0 -1
- package/lib/esm/components/webchat-settings.d.ts +0 -19
- package/lib/esm/components/webchat-settings.js +0 -79
- package/lib/esm/components/webchat-settings.js.map +0 -1
- package/lib/esm/components/whatsapp-button-list.d.ts +0 -20
- package/lib/esm/components/whatsapp-button-list.js +0 -51
- package/lib/esm/components/whatsapp-button-list.js.map +0 -1
- package/lib/esm/components/whatsapp-catalog.d.ts +0 -6
- package/lib/esm/components/whatsapp-catalog.js +0 -25
- package/lib/esm/components/whatsapp-catalog.js.map +0 -1
- package/lib/esm/components/whatsapp-cta-url-button.d.ts +0 -40
- package/lib/esm/components/whatsapp-cta-url-button.js +0 -61
- package/lib/esm/components/whatsapp-cta-url-button.js.map +0 -1
- package/lib/esm/components/whatsapp-interactive-media-carousel.d.ts +0 -31
- package/lib/esm/components/whatsapp-interactive-media-carousel.js +0 -25
- package/lib/esm/components/whatsapp-interactive-media-carousel.js.map +0 -1
- package/lib/esm/components/whatsapp-media-carousel.d.ts +0 -46
- package/lib/esm/components/whatsapp-media-carousel.js +0 -42
- package/lib/esm/components/whatsapp-media-carousel.js.map +0 -1
- package/lib/esm/components/whatsapp-product-carousel.d.ts +0 -32
- package/lib/esm/components/whatsapp-product-carousel.js +0 -34
- package/lib/esm/components/whatsapp-product-carousel.js.map +0 -1
- package/lib/esm/components/whatsapp-product-list.d.ts +0 -15
- package/lib/esm/components/whatsapp-product-list.js +0 -26
- package/lib/esm/components/whatsapp-product-list.js.map +0 -1
- package/lib/esm/components/whatsapp-product.d.ts +0 -7
- package/lib/esm/components/whatsapp-product.js +0 -25
- package/lib/esm/components/whatsapp-product.js.map +0 -1
- package/lib/esm/components/whatsapp-request-contact-info.d.ts +0 -4
- package/lib/esm/components/whatsapp-request-contact-info.js +0 -30
- package/lib/esm/components/whatsapp-request-contact-info.js.map +0 -1
- package/lib/esm/components/whatsapp-template/index.d.ts +0 -11
- package/lib/esm/components/whatsapp-template/index.js +0 -25
- package/lib/esm/components/whatsapp-template/index.js.map +0 -1
- package/lib/esm/components/whatsapp-template/types.d.ts +0 -114
- package/lib/esm/components/whatsapp-template/types.js +0 -30
- package/lib/esm/components/whatsapp-template/types.js.map +0 -1
- package/lib/esm/constants.d.ts +0 -163
- package/lib/esm/constants.js +0 -189
- package/lib/esm/constants.js.map +0 -1
- package/lib/esm/contexts.d.ts +0 -17
- package/lib/esm/contexts.js +0 -30
- package/lib/esm/contexts.js.map +0 -1
- package/lib/esm/debug-system-messages.d.ts +0 -177
- package/lib/esm/debug-system-messages.js +0 -219
- package/lib/esm/debug-system-messages.js.map +0 -1
- package/lib/esm/dev-app.d.ts +0 -213
- package/lib/esm/dev-app.js +0 -98
- package/lib/esm/dev-app.js.map +0 -1
- package/lib/esm/index-types.d.ts +0 -187
- package/lib/esm/index-types.js +0 -16
- package/lib/esm/index-types.js.map +0 -1
- package/lib/esm/index.d.ts +0 -12
- package/lib/esm/index.js +0 -26
- package/lib/esm/index.js.map +0 -1
- package/lib/esm/message-utils.d.ts +0 -20
- package/lib/esm/message-utils.js +0 -64
- package/lib/esm/message-utils.js.map +0 -1
- package/lib/esm/msg-to-botonic.d.ts +0 -17
- package/lib/esm/msg-to-botonic.js +0 -142
- package/lib/esm/msg-to-botonic.js.map +0 -1
- package/lib/esm/node-app.d.ts +0 -7
- package/lib/esm/node-app.js +0 -23
- package/lib/esm/node-app.js.map +0 -1
- package/lib/esm/react-bot.d.ts +0 -18
- package/lib/esm/react-bot.js +0 -36
- package/lib/esm/react-bot.js.map +0 -1
- package/lib/esm/shared/styles.d.ts +0 -2
- package/lib/esm/shared/styles.js +0 -32
- package/lib/esm/shared/styles.js.map +0 -1
- package/lib/esm/util/dom.d.ts +0 -4
- package/lib/esm/util/dom.js +0 -31
- package/lib/esm/util/dom.js.map +0 -1
- package/lib/esm/util/environment.d.ts +0 -7
- package/lib/esm/util/environment.js +0 -85
- package/lib/esm/util/environment.js.map +0 -1
- package/lib/esm/util/error-boundary.d.ts +0 -7
- package/lib/esm/util/error-boundary.js +0 -32
- package/lib/esm/util/error-boundary.js.map +0 -1
- package/lib/esm/util/functional.d.ts +0 -3
- package/lib/esm/util/functional.js +0 -29
- package/lib/esm/util/functional.js.map +0 -1
- package/lib/esm/util/i18n.d.ts +0 -26
- package/lib/esm/util/i18n.js +0 -165
- package/lib/esm/util/i18n.js.map +0 -1
- package/lib/esm/util/index.d.ts +0 -10
- package/lib/esm/util/index.js +0 -14
- package/lib/esm/util/index.js.map +0 -1
- package/lib/esm/util/logs.d.ts +0 -2
- package/lib/esm/util/logs.js +0 -20
- package/lib/esm/util/logs.js.map +0 -1
- package/lib/esm/util/objects.d.ts +0 -3
- package/lib/esm/util/objects.js +0 -45
- package/lib/esm/util/objects.js.map +0 -1
- package/lib/esm/util/react.d.ts +0 -12
- package/lib/esm/util/react.js +0 -45
- package/lib/esm/util/react.js.map +0 -1
- package/lib/esm/util/regexs.d.ts +0 -2
- package/lib/esm/util/regexs.js +0 -24
- package/lib/esm/util/regexs.js.map +0 -1
- package/lib/esm/util/strings.d.ts +0 -1
- package/lib/esm/util/strings.js +0 -11
- package/lib/esm/util/strings.js.map +0 -1
- package/lib/esm/util/webchat.d.ts +0 -24
- package/lib/esm/util/webchat.js +0 -100
- package/lib/esm/util/webchat.js.map +0 -1
- package/lib/esm/util/webviews.d.ts +0 -2
- package/lib/esm/util/webviews.js +0 -8
- package/lib/esm/util/webviews.js.map +0 -1
- package/lib/esm/webchat/chat-area/index.d.ts +0 -1
- package/lib/esm/webchat/chat-area/index.js +0 -22
- package/lib/esm/webchat/chat-area/index.js.map +0 -1
- package/lib/esm/webchat/chat-area/styles.d.ts +0 -3
- package/lib/esm/webchat/chat-area/styles.js +0 -13
- package/lib/esm/webchat/chat-area/styles.js.map +0 -1
- package/lib/esm/webchat/components/common.d.ts +0 -1
- package/lib/esm/webchat/components/common.js +0 -13
- package/lib/esm/webchat/components/common.js.map +0 -1
- package/lib/esm/webchat/components/conditional-animation.d.ts +0 -1
- package/lib/esm/webchat/components/conditional-animation.js +0 -16
- package/lib/esm/webchat/components/conditional-animation.js.map +0 -1
- package/lib/esm/webchat/components/opened-persistent-menu.d.ts +0 -6
- package/lib/esm/webchat/components/opened-persistent-menu.js +0 -37
- package/lib/esm/webchat/components/opened-persistent-menu.js.map +0 -1
- package/lib/esm/webchat/constants.d.ts +0 -8
- package/lib/esm/webchat/constants.js +0 -13
- package/lib/esm/webchat/constants.js.map +0 -1
- package/lib/esm/webchat/context/actions.d.ts +0 -30
- package/lib/esm/webchat/context/actions.js +0 -36
- package/lib/esm/webchat/context/actions.js.map +0 -1
- package/lib/esm/webchat/context/index.d.ts +0 -4
- package/lib/esm/webchat/context/index.js +0 -102
- package/lib/esm/webchat/context/index.js.map +0 -1
- package/lib/esm/webchat/context/messages-reducer.d.ts +0 -6
- package/lib/esm/webchat/context/messages-reducer.js +0 -175
- package/lib/esm/webchat/context/messages-reducer.js.map +0 -1
- package/lib/esm/webchat/context/types.d.ts +0 -84
- package/lib/esm/webchat/context/types.js +0 -3
- package/lib/esm/webchat/context/types.js.map +0 -1
- package/lib/esm/webchat/context/use-webchat.d.ts +0 -46
- package/lib/esm/webchat/context/use-webchat.js +0 -195
- package/lib/esm/webchat/context/use-webchat.js.map +0 -1
- package/lib/esm/webchat/context/webchat-reducer.d.ts +0 -6
- package/lib/esm/webchat/context/webchat-reducer.js +0 -57
- package/lib/esm/webchat/context/webchat-reducer.js.map +0 -1
- package/lib/esm/webchat/cover-component/index.d.ts +0 -6
- package/lib/esm/webchat/cover-component/index.js +0 -21
- package/lib/esm/webchat/cover-component/index.js.map +0 -1
- package/lib/esm/webchat/custom-messages/index.d.ts +0 -1
- package/lib/esm/webchat/custom-messages/index.js +0 -7
- package/lib/esm/webchat/custom-messages/index.js.map +0 -1
- package/lib/esm/webchat/custom-messages/rating/icons/face-angry.d.ts +0 -3
- package/lib/esm/webchat/custom-messages/rating/icons/face-angry.js +0 -9
- package/lib/esm/webchat/custom-messages/rating/icons/face-angry.js.map +0 -1
- package/lib/esm/webchat/custom-messages/rating/icons/face-frown.d.ts +0 -3
- package/lib/esm/webchat/custom-messages/rating/icons/face-frown.js +0 -9
- package/lib/esm/webchat/custom-messages/rating/icons/face-frown.js.map +0 -1
- package/lib/esm/webchat/custom-messages/rating/icons/face-grin-beam.d.ts +0 -3
- package/lib/esm/webchat/custom-messages/rating/icons/face-grin-beam.js +0 -9
- package/lib/esm/webchat/custom-messages/rating/icons/face-grin-beam.js.map +0 -1
- package/lib/esm/webchat/custom-messages/rating/icons/face-meh.d.ts +0 -3
- package/lib/esm/webchat/custom-messages/rating/icons/face-meh.js +0 -9
- package/lib/esm/webchat/custom-messages/rating/icons/face-meh.js.map +0 -1
- package/lib/esm/webchat/custom-messages/rating/icons/face-smile.d.ts +0 -3
- package/lib/esm/webchat/custom-messages/rating/icons/face-smile.js +0 -9
- package/lib/esm/webchat/custom-messages/rating/icons/face-smile.js.map +0 -1
- package/lib/esm/webchat/custom-messages/rating/icons/index.d.ts +0 -6
- package/lib/esm/webchat/custom-messages/rating/icons/index.js +0 -10
- package/lib/esm/webchat/custom-messages/rating/icons/index.js.map +0 -1
- package/lib/esm/webchat/custom-messages/rating/icons/star.d.ts +0 -3
- package/lib/esm/webchat/custom-messages/rating/icons/star.js +0 -9
- package/lib/esm/webchat/custom-messages/rating/icons/star.js.map +0 -1
- package/lib/esm/webchat/custom-messages/rating/index.d.ts +0 -2
- package/lib/esm/webchat/custom-messages/rating/index.js +0 -56
- package/lib/esm/webchat/custom-messages/rating/index.js.map +0 -1
- package/lib/esm/webchat/custom-messages/rating/rating-selector.d.ts +0 -11
- package/lib/esm/webchat/custom-messages/rating/rating-selector.js +0 -26
- package/lib/esm/webchat/custom-messages/rating/rating-selector.js.map +0 -1
- package/lib/esm/webchat/custom-messages/rating/smileys.d.ts +0 -2
- package/lib/esm/webchat/custom-messages/rating/smileys.js +0 -19
- package/lib/esm/webchat/custom-messages/rating/smileys.js.map +0 -1
- package/lib/esm/webchat/custom-messages/rating/stars.d.ts +0 -2
- package/lib/esm/webchat/custom-messages/rating/stars.js +0 -11
- package/lib/esm/webchat/custom-messages/rating/stars.js.map +0 -1
- package/lib/esm/webchat/custom-messages/rating/styles.d.ts +0 -6
- package/lib/esm/webchat/custom-messages/rating/styles.js +0 -25
- package/lib/esm/webchat/custom-messages/rating/styles.js.map +0 -1
- package/lib/esm/webchat/custom-messages/rating/types.d.ts +0 -13
- package/lib/esm/webchat/custom-messages/rating/types.js +0 -9
- package/lib/esm/webchat/custom-messages/rating/types.js.map +0 -1
- package/lib/esm/webchat/devices/index.d.ts +0 -11
- package/lib/esm/webchat/devices/index.js +0 -23
- package/lib/esm/webchat/devices/index.js.map +0 -1
- package/lib/esm/webchat/header/default-header.d.ts +0 -1
- package/lib/esm/webchat/header/default-header.js +0 -25
- package/lib/esm/webchat/header/default-header.js.map +0 -1
- package/lib/esm/webchat/header/index.d.ts +0 -1
- package/lib/esm/webchat/header/index.js +0 -23
- package/lib/esm/webchat/header/index.js.map +0 -1
- package/lib/esm/webchat/header/styles.d.ts +0 -7
- package/lib/esm/webchat/header/styles.js +0 -63
- package/lib/esm/webchat/header/styles.js.map +0 -1
- package/lib/esm/webchat/hooks/index.d.ts +0 -10
- package/lib/esm/webchat/hooks/index.js +0 -24
- package/lib/esm/webchat/hooks/index.js.map +0 -1
- package/lib/esm/webchat/hooks/use-component-visible.d.ts +0 -7
- package/lib/esm/webchat/hooks/use-component-visible.js +0 -23
- package/lib/esm/webchat/hooks/use-component-visible.js.map +0 -1
- package/lib/esm/webchat/hooks/use-component-will-mount.d.ts +0 -1
- package/lib/esm/webchat/hooks/use-component-will-mount.js +0 -9
- package/lib/esm/webchat/hooks/use-component-will-mount.js.map +0 -1
- package/lib/esm/webchat/hooks/use-device-adapter.d.ts +0 -3
- package/lib/esm/webchat/hooks/use-device-adapter.js +0 -49
- package/lib/esm/webchat/hooks/use-device-adapter.js.map +0 -1
- package/lib/esm/webchat/hooks/use-previous.d.ts +0 -1
- package/lib/esm/webchat/hooks/use-previous.js +0 -12
- package/lib/esm/webchat/hooks/use-previous.js.map +0 -1
- package/lib/esm/webchat/hooks/use-scroll-to-bottom.d.ts +0 -9
- package/lib/esm/webchat/hooks/use-scroll-to-bottom.js +0 -25
- package/lib/esm/webchat/hooks/use-scroll-to-bottom.js.map +0 -1
- package/lib/esm/webchat/hooks/use-scrollbar-controller.d.ts +0 -6
- package/lib/esm/webchat/hooks/use-scrollbar-controller.js +0 -143
- package/lib/esm/webchat/hooks/use-scrollbar-controller.js.map +0 -1
- package/lib/esm/webchat/hooks/use-typing.d.ts +0 -10
- package/lib/esm/webchat/hooks/use-typing.js +0 -36
- package/lib/esm/webchat/hooks/use-typing.js.map +0 -1
- package/lib/esm/webchat/hooks/use-virtual-keyboard-detection.d.ts +0 -3
- package/lib/esm/webchat/hooks/use-virtual-keyboard-detection.js +0 -26
- package/lib/esm/webchat/hooks/use-virtual-keyboard-detection.js.map +0 -1
- package/lib/esm/webchat/hooks/use-webchat-dimensions.d.ts +0 -4
- package/lib/esm/webchat/hooks/use-webchat-dimensions.js +0 -41
- package/lib/esm/webchat/hooks/use-webchat-dimensions.js.map +0 -1
- package/lib/esm/webchat/hooks/use-webchat-resizer.d.ts +0 -4
- package/lib/esm/webchat/hooks/use-webchat-resizer.js +0 -34
- package/lib/esm/webchat/hooks/use-webchat-resizer.js.map +0 -1
- package/lib/esm/webchat/index-types.d.ts +0 -7
- package/lib/esm/webchat/index-types.js +0 -3
- package/lib/esm/webchat/index-types.js.map +0 -1
- package/lib/esm/webchat/index.d.ts +0 -6
- package/lib/esm/webchat/index.js +0 -20
- package/lib/esm/webchat/index.js.map +0 -1
- package/lib/esm/webchat/input-panel/attachment.d.ts +0 -6
- package/lib/esm/webchat/input-panel/attachment.js +0 -30
- package/lib/esm/webchat/input-panel/attachment.js.map +0 -1
- package/lib/esm/webchat/input-panel/emoji-picker.d.ts +0 -5
- package/lib/esm/webchat/input-panel/emoji-picker.js +0 -29
- package/lib/esm/webchat/input-panel/emoji-picker.js.map +0 -1
- package/lib/esm/webchat/input-panel/index.d.ts +0 -9
- package/lib/esm/webchat/input-panel/index.js +0 -51
- package/lib/esm/webchat/input-panel/index.js.map +0 -1
- package/lib/esm/webchat/input-panel/opened-emoji-picker.d.ts +0 -6
- package/lib/esm/webchat/input-panel/opened-emoji-picker.js +0 -15
- package/lib/esm/webchat/input-panel/opened-emoji-picker.js.map +0 -1
- package/lib/esm/webchat/input-panel/persistent-menu.d.ts +0 -5
- package/lib/esm/webchat/input-panel/persistent-menu.js +0 -21
- package/lib/esm/webchat/input-panel/persistent-menu.js.map +0 -1
- package/lib/esm/webchat/input-panel/send-button.d.ts +0 -5
- package/lib/esm/webchat/input-panel/send-button.js +0 -25
- package/lib/esm/webchat/input-panel/send-button.js.map +0 -1
- package/lib/esm/webchat/input-panel/styles.d.ts +0 -3
- package/lib/esm/webchat/input-panel/styles.js +0 -31
- package/lib/esm/webchat/input-panel/styles.js.map +0 -1
- package/lib/esm/webchat/input-panel/textarea.d.ts +0 -10
- package/lib/esm/webchat/input-panel/textarea.js +0 -52
- package/lib/esm/webchat/input-panel/textarea.js.map +0 -1
- package/lib/esm/webchat/input-panel/typing-network-sender.d.ts +0 -52
- package/lib/esm/webchat/input-panel/typing-network-sender.js +0 -122
- package/lib/esm/webchat/input-panel/typing-network-sender.js.map +0 -1
- package/lib/esm/webchat/input-panel/use-typing-chat-event-sender.d.ts +0 -16
- package/lib/esm/webchat/input-panel/use-typing-chat-event-sender.js +0 -45
- package/lib/esm/webchat/input-panel/use-typing-chat-event-sender.js.map +0 -1
- package/lib/esm/webchat/input-panel/use-typing-session.d.ts +0 -15
- package/lib/esm/webchat/input-panel/use-typing-session.js +0 -98
- package/lib/esm/webchat/input-panel/use-typing-session.js.map +0 -1
- package/lib/esm/webchat/message-list/index.d.ts +0 -1
- package/lib/esm/webchat/message-list/index.js +0 -116
- package/lib/esm/webchat/message-list/index.js.map +0 -1
- package/lib/esm/webchat/message-list/intro-message.d.ts +0 -1
- package/lib/esm/webchat/message-list/intro-message.js +0 -24
- package/lib/esm/webchat/message-list/intro-message.js.map +0 -1
- package/lib/esm/webchat/message-list/scroll-button.d.ts +0 -5
- package/lib/esm/webchat/message-list/scroll-button.js +0 -18
- package/lib/esm/webchat/message-list/scroll-button.js.map +0 -1
- package/lib/esm/webchat/message-list/styles.d.ts +0 -9
- package/lib/esm/webchat/message-list/styles.js +0 -61
- package/lib/esm/webchat/message-list/styles.js.map +0 -1
- package/lib/esm/webchat/message-list/unread-messages-banner.d.ts +0 -7
- package/lib/esm/webchat/message-list/unread-messages-banner.js +0 -18
- package/lib/esm/webchat/message-list/unread-messages-banner.js.map +0 -1
- package/lib/esm/webchat/message-list/use-debounce.d.ts +0 -1
- package/lib/esm/webchat/message-list/use-debounce.js +0 -17
- package/lib/esm/webchat/message-list/use-debounce.js.map +0 -1
- package/lib/esm/webchat/message-list/use-notifications.d.ts +0 -7
- package/lib/esm/webchat/message-list/use-notifications.js +0 -23
- package/lib/esm/webchat/message-list/use-notifications.js.map +0 -1
- package/lib/esm/webchat/replies/index.d.ts +0 -1
- package/lib/esm/webchat/replies/index.js +0 -31
- package/lib/esm/webchat/replies/index.js.map +0 -1
- package/lib/esm/webchat/replies/styles.d.ts +0 -8
- package/lib/esm/webchat/replies/styles.js +0 -25
- package/lib/esm/webchat/replies/styles.js.map +0 -1
- package/lib/esm/webchat/session-view.d.ts +0 -1
- package/lib/esm/webchat/session-view.js +0 -103
- package/lib/esm/webchat/session-view.js.map +0 -1
- package/lib/esm/webchat/styles.d.ts +0 -4
- package/lib/esm/webchat/styles.js +0 -65
- package/lib/esm/webchat/styles.js.map +0 -1
- package/lib/esm/webchat/theme/default-theme.d.ts +0 -2
- package/lib/esm/webchat/theme/default-theme.js +0 -104
- package/lib/esm/webchat/theme/default-theme.js.map +0 -1
- package/lib/esm/webchat/theme/types.d.ts +0 -213
- package/lib/esm/webchat/theme/types.js +0 -3
- package/lib/esm/webchat/theme/types.js.map +0 -1
- package/lib/esm/webchat/tracking.d.ts +0 -7
- package/lib/esm/webchat/tracking.js +0 -39
- package/lib/esm/webchat/tracking.js.map +0 -1
- package/lib/esm/webchat/trigger-button/index.d.ts +0 -1
- package/lib/esm/webchat/trigger-button/index.js +0 -34
- package/lib/esm/webchat/trigger-button/index.js.map +0 -1
- package/lib/esm/webchat/trigger-button/styles.d.ts +0 -3
- package/lib/esm/webchat/trigger-button/styles.js +0 -40
- package/lib/esm/webchat/trigger-button/styles.js.map +0 -1
- package/lib/esm/webchat/typing-indicator/index.d.ts +0 -2
- package/lib/esm/webchat/typing-indicator/index.js +0 -10
- package/lib/esm/webchat/typing-indicator/index.js.map +0 -1
- package/lib/esm/webchat/typing-indicator/styles.d.ts +0 -7
- package/lib/esm/webchat/typing-indicator/styles.js +0 -50
- package/lib/esm/webchat/typing-indicator/styles.js.map +0 -1
- package/lib/esm/webchat/use-storage-state-hook.d.ts +0 -1
- package/lib/esm/webchat/use-storage-state-hook.js +0 -40
- package/lib/esm/webchat/use-storage-state-hook.js.map +0 -1
- package/lib/esm/webchat/utils.d.ts +0 -2
- package/lib/esm/webchat/utils.js +0 -13
- package/lib/esm/webchat/utils.js.map +0 -1
- package/lib/esm/webchat/webchat-dev.d.ts +0 -6
- package/lib/esm/webchat/webchat-dev.js +0 -56
- package/lib/esm/webchat/webchat-dev.js.map +0 -1
- package/lib/esm/webchat/webchat.d.ts +0 -3
- package/lib/esm/webchat/webchat.js +0 -560
- package/lib/esm/webchat/webchat.js.map +0 -1
- package/lib/esm/webchat/webview/header.d.ts +0 -1
- package/lib/esm/webchat/webview/header.js +0 -18
- package/lib/esm/webchat/webview/header.js.map +0 -1
- package/lib/esm/webchat/webview/index.d.ts +0 -6
- package/lib/esm/webchat/webview/index.js +0 -82
- package/lib/esm/webchat/webview/index.js.map +0 -1
- package/lib/esm/webchat/webview/styles.d.ts +0 -7
- package/lib/esm/webchat/webview/styles.js +0 -60
- package/lib/esm/webchat/webview/styles.js.map +0 -1
- package/lib/esm/webchat-app.d.ts +0 -114
- package/lib/esm/webchat-app.js +0 -407
- package/lib/esm/webchat-app.js.map +0 -1
- package/lib/esm/webchat.template.html +0 -37
- package/lib/esm/webview-app.d.ts +0 -7
- package/lib/esm/webview-app.js +0 -192
- package/lib/esm/webview-app.js.map +0 -1
- package/lib/esm/webview.template.html +0 -39
- /package/lib/{cjs/app.d.ts → app.d.ts} +0 -0
- /package/lib/{cjs/assets → assets}/arrow-down.svg +0 -0
- /package/lib/{cjs/assets → assets}/arrow-scroll-down.svg +0 -0
- /package/lib/{cjs/assets → assets}/attachment-icon.svg +0 -0
- /package/lib/{cjs/assets → assets}/audio.svg +0 -0
- /package/lib/{cjs/assets → assets}/botonic_react_logo100x100.png +0 -0
- /package/lib/{cjs/assets → assets}/document.svg +0 -0
- /package/lib/{cjs/assets → assets}/emojiButton.svg +0 -0
- /package/lib/{cjs/assets → assets}/image.svg +0 -0
- /package/lib/{cjs/assets → assets}/leftArrow.svg +0 -0
- /package/lib/{cjs/assets → assets}/menuButton.svg +0 -0
- /package/lib/{cjs/assets → assets}/rightArrow.svg +0 -0
- /package/lib/{cjs/assets → assets}/send-button.svg +0 -0
- /package/lib/{cjs/assets → assets}/thumbs-down.svg +0 -0
- /package/lib/{cjs/assets → assets}/thumbs-up.svg +0 -0
- /package/lib/{cjs/assets → assets}/url-icon.png +0 -0
- /package/lib/{cjs/assets → assets}/video.svg +0 -0
- /package/lib/{cjs/botonic-tester.d.ts → botonic-tester.d.ts} +0 -0
- /package/lib/{cjs/components → components}/button/styles.d.ts +0 -0
- /package/lib/{cjs/components → components}/components.d.ts +0 -0
- /package/lib/{cjs/components → components}/constants.d.ts +0 -0
- /package/lib/{cjs/components → components}/element.d.ts +0 -0
- /package/lib/{cjs/components → components}/location.d.ts +0 -0
- /package/lib/{cjs/components → components}/markdown.d.ts +0 -0
- /package/lib/{cjs/components → components}/message/index.d.ts +0 -0
- /package/lib/{cjs/components → components}/message/styles.d.ts +0 -0
- /package/lib/{cjs/components → components}/message-template.d.ts +0 -0
- /package/lib/{cjs/components → components}/multichannel/facebook/facebook.d.ts +0 -0
- /package/lib/{cjs/components → components}/multichannel/index-types.d.ts +0 -0
- /package/lib/{cjs/components → components}/multichannel/multichannel-context.d.ts +0 -0
- /package/lib/{cjs/components → components}/multichannel/multichannel-utils.d.ts +0 -0
- /package/lib/{cjs/components → components}/multichannel/multichannel.d.ts +0 -0
- /package/lib/{cjs/components → components}/multichannel/whatsapp/constants.d.ts +0 -0
- /package/lib/{cjs/components → components}/multichannel/whatsapp/markdown-meta.d.ts +0 -0
- /package/lib/{cjs/components → components}/pic.d.ts +0 -0
- /package/lib/{cjs/components → components}/share-button.d.ts +0 -0
- /package/lib/{cjs/components → components}/subtitle.d.ts +0 -0
- /package/lib/{cjs/components → components}/system-debug-trace/events/components/guardrail-item.d.ts +0 -0
- /package/lib/{cjs/components → components}/system-debug-trace/events/constants.d.ts +0 -0
- /package/lib/{cjs/components → components}/system-debug-trace/events/knowledge-bases-types.d.ts +0 -0
- /package/lib/{cjs/components → components}/system-debug-trace/hooks/use-last-label-position.d.ts +0 -0
- /package/lib/{cjs/components → components}/system-debug-trace/styles.d.ts +0 -0
- /package/lib/{cjs/components → components}/title.d.ts +0 -0
- /package/lib/{cjs/components → components}/whatsapp-button-list.d.ts +0 -0
- /package/lib/{cjs/components → components}/whatsapp-catalog.d.ts +0 -0
- /package/lib/{cjs/components → components}/whatsapp-cta-url-button.d.ts +0 -0
- /package/lib/{cjs/components → components}/whatsapp-media-carousel.d.ts +0 -0
- /package/lib/{cjs/components → components}/whatsapp-product-carousel.d.ts +0 -0
- /package/lib/{cjs/components → components}/whatsapp-product-list.d.ts +0 -0
- /package/lib/{cjs/components → components}/whatsapp-product.d.ts +0 -0
- /package/lib/{cjs/components → components}/whatsapp-request-contact-info.d.ts +0 -0
- /package/lib/{cjs/components → components}/whatsapp-template/types.d.ts +0 -0
- /package/lib/{cjs/constants.d.ts → constants.d.ts} +0 -0
- /package/lib/{cjs/message-utils.d.ts → message-utils.d.ts} +0 -0
- /package/lib/{cjs/msg-to-botonic.d.ts → msg-to-botonic.d.ts} +0 -0
- /package/lib/{cjs/shared → shared}/styles.d.ts +0 -0
- /package/lib/{cjs/util → util}/dom.d.ts +0 -0
- /package/lib/{cjs/util → util}/environment.d.ts +0 -0
- /package/lib/{cjs/util → util}/functional.d.ts +0 -0
- /package/lib/{cjs/util → util}/i18n.d.ts +0 -0
- /package/lib/{cjs/util → util}/logs.d.ts +0 -0
- /package/lib/{cjs/util → util}/objects.d.ts +0 -0
- /package/lib/{cjs/util → util}/react.d.ts +0 -0
- /package/lib/{cjs/util → util}/regexs.d.ts +0 -0
- /package/lib/{cjs/util → util}/strings.d.ts +0 -0
- /package/lib/{cjs/webchat → webchat}/chat-area/styles.d.ts +0 -0
- /package/lib/{cjs/webchat → webchat}/constants.d.ts +0 -0
- /package/lib/{cjs/webchat → webchat}/context/actions.d.ts +0 -0
- /package/lib/{cjs/webchat → webchat}/custom-messages/rating/styles.d.ts +0 -0
- /package/lib/{cjs/webchat → webchat}/custom-messages/rating/types.d.ts +0 -0
- /package/lib/{cjs/webchat → webchat}/devices/index.d.ts +0 -0
- /package/lib/{cjs/webchat → webchat}/header/index.d.ts +0 -0
- /package/lib/{cjs/webchat → webchat}/header/styles.d.ts +0 -0
- /package/lib/{cjs/webchat → webchat}/hooks/use-component-visible.d.ts +0 -0
- /package/lib/{cjs/webchat → webchat}/hooks/use-component-will-mount.d.ts +0 -0
- /package/lib/{cjs/webchat → webchat}/hooks/use-device-adapter.d.ts +0 -0
- /package/lib/{cjs/webchat → webchat}/hooks/use-previous.d.ts +0 -0
- /package/lib/{cjs/webchat → webchat}/hooks/use-scroll-to-bottom.d.ts +0 -0
- /package/lib/{cjs/webchat → webchat}/hooks/use-scrollbar-controller.d.ts +0 -0
- /package/lib/{cjs/webchat → webchat}/hooks/use-virtual-keyboard-detection.d.ts +0 -0
- /package/lib/{cjs/webchat → webchat}/hooks/use-webchat-dimensions.d.ts +0 -0
- /package/lib/{cjs/webchat → webchat}/hooks/use-webchat-resizer.d.ts +0 -0
- /package/lib/{cjs/webchat → webchat}/input-panel/styles.d.ts +0 -0
- /package/lib/{cjs/webchat → webchat}/message-list/scroll-button.d.ts +0 -0
- /package/lib/{cjs/webchat → webchat}/message-list/styles.d.ts +0 -0
- /package/lib/{cjs/webchat → webchat}/message-list/unread-messages-banner.d.ts +0 -0
- /package/lib/{cjs/webchat → webchat}/message-list/use-debounce.d.ts +0 -0
- /package/lib/{cjs/webchat → webchat}/message-list/use-notifications.d.ts +0 -0
- /package/lib/{cjs/webchat → webchat}/replies/styles.d.ts +0 -0
- /package/lib/{cjs/webchat → webchat}/styles.d.ts +0 -0
- /package/lib/{cjs/webchat → webchat}/tracking.d.ts +0 -0
- /package/lib/{cjs/webchat → webchat}/trigger-button/index.d.ts +0 -0
- /package/lib/{cjs/webchat → webchat}/trigger-button/styles.d.ts +0 -0
- /package/lib/{cjs/webchat → webchat}/typing-indicator/index.d.ts +0 -0
- /package/lib/{cjs/webchat → webchat}/typing-indicator/styles.d.ts +0 -0
- /package/lib/{cjs/webchat → webchat}/use-storage-state-hook.d.ts +0 -0
- /package/lib/{cjs/webchat → webchat}/utils.d.ts +0 -0
- /package/lib/{cjs/webchat → webchat}/webchat-dev.d.ts +0 -0
- /package/lib/{cjs/webchat → webchat}/webview/styles.d.ts +0 -0
- /package/lib/{cjs/webchat.template.html → webchat.template.html} +0 -0
- /package/lib/{cjs/webview-app.d.ts → webview-app.d.ts} +0 -0
- /package/lib/{cjs/webview.template.html → webview.template.html} +0 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
/** biome-ignore-all lint/a11y/noSvgWithoutTitle: This is a SVG icon */
|
|
5
|
+
const FaceSmileSvg = ({ color, selected })=>{
|
|
6
|
+
return selected ? /*#__PURE__*/ jsx("svg", {
|
|
7
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
8
|
+
viewBox: "0 0 512 512",
|
|
9
|
+
color: color,
|
|
10
|
+
children: /*#__PURE__*/ jsx("path", {
|
|
11
|
+
d: "M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM164.1 325.5C182 346.2 212.6 368 256 368s74-21.8 91.9-42.5c5.8-6.7 15.9-7.4 22.6-1.6s7.4 15.9 1.6 22.6C349.8 372.1 311.1 400 256 400s-93.8-27.9-116.1-53.5c-5.8-6.7-5.1-16.8 1.6-22.6s16.8-5.1 22.6 1.6zM144.4 208a32 32 0 1 1 64 0 32 32 0 1 1 -64 0zm192-32a32 32 0 1 1 0 64 32 32 0 1 1 0-64z",
|
|
12
|
+
fill: "currentColor"
|
|
13
|
+
})
|
|
14
|
+
}) : /*#__PURE__*/ jsx("svg", {
|
|
15
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
16
|
+
viewBox: "0 0 512 512",
|
|
17
|
+
color: color,
|
|
18
|
+
children: /*#__PURE__*/ jsx("path", {
|
|
19
|
+
d: "M464 256A208 208 0 1 0 48 256a208 208 0 1 0 416 0zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zm177.6 62.1C192.8 334.5 218.8 352 256 352s63.2-17.5 78.4-33.9c9-9.7 24.2-10.4 33.9-1.4s10.4 24.2 1.4 33.9c-22 23.8-60 49.4-113.6 49.4s-91.7-25.5-113.6-49.4c-9-9.7-8.4-24.9 1.4-33.9s24.9-8.4 33.9 1.4zM144.4 208a32 32 0 1 1 64 0 32 32 0 1 1 -64 0zm192-32a32 32 0 1 1 0 64 32 32 0 1 1 0-64z",
|
|
20
|
+
fill: "currentColor"
|
|
21
|
+
})
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export { FaceSmileSvg };
|
|
26
|
+
|
|
27
|
+
//# sourceMappingURL=face-smile.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webchat/custom-messages/rating/icons/face-smile.js","sources":["../../../../../src/webchat/custom-messages/rating/icons/face-smile.tsx"],"sourcesContent":["/** biome-ignore-all lint/a11y/noSvgWithoutTitle: This is a SVG icon */\nimport type { RatingIconProps } from '../types'\n\nexport const FaceSmileSvg = ({ color, selected }: RatingIconProps) => {\n return selected ? (\n <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' color={color}>\n <path\n d='M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM164.1 325.5C182 346.2 212.6 368 256 368s74-21.8 91.9-42.5c5.8-6.7 15.9-7.4 22.6-1.6s7.4 15.9 1.6 22.6C349.8 372.1 311.1 400 256 400s-93.8-27.9-116.1-53.5c-5.8-6.7-5.1-16.8 1.6-22.6s16.8-5.1 22.6 1.6zM144.4 208a32 32 0 1 1 64 0 32 32 0 1 1 -64 0zm192-32a32 32 0 1 1 0 64 32 32 0 1 1 0-64z'\n fill='currentColor'\n />\n </svg>\n ) : (\n <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' color={color}>\n <path\n d='M464 256A208 208 0 1 0 48 256a208 208 0 1 0 416 0zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zm177.6 62.1C192.8 334.5 218.8 352 256 352s63.2-17.5 78.4-33.9c9-9.7 24.2-10.4 33.9-1.4s10.4 24.2 1.4 33.9c-22 23.8-60 49.4-113.6 49.4s-91.7-25.5-113.6-49.4c-9-9.7-8.4-24.9 1.4-33.9s24.9-8.4 33.9 1.4zM144.4 208a32 32 0 1 1 64 0 32 32 0 1 1 -64 0zm192-32a32 32 0 1 1 0 64 32 32 0 1 1 0-64z'\n fill='currentColor'\n />\n </svg>\n )\n}\n"],"names":["FaceSmileSvg","color","selected"],"mappings":";;;AAAA,qEAAqE;AAG9D,MAAMA,YAAYA,GAAG,CAAC,EAAEC,KAAK,EAAEC,QAAQ,EAAmB;IAC/D,OAAOA,yBACL,IAAC;QAAI,OAAM;QAA6B,SAAQ;QAAc,OAAOD;kBACnE,kBAAC;YACC,GAAE;YACF,MAAK;;uBAIT,IAAC;QAAI,OAAM;QAA6B,SAAQ;QAAc,OAAOA;kBACnE,kBAAC;YACC,GAAE;YACF,MAAK;;;AAIb,EAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export * from "./face-angry.js";
|
|
2
|
+
export * from "./face-frown.js";
|
|
3
|
+
export * from "./face-grin-beam.js";
|
|
4
|
+
export * from "./face-meh.js";
|
|
5
|
+
export * from "./face-smile.js";
|
|
6
|
+
export * from "./star.js";
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webchat/custom-messages/rating/icons/index.js","sources":["../../../../../src/webchat/custom-messages/rating/icons/index.ts"],"sourcesContent":["export * from './face-angry'\nexport * from './face-frown'\nexport * from './face-grin-beam'\nexport * from './face-meh'\nexport * from './face-smile'\nexport * from './star'\n"],"names":[],"mappings":";;;;;;AAA4B;AACA;AACI;AACN;AACE;AACN"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
/** biome-ignore-all lint/a11y/noSvgWithoutTitle: This is a SVG icon */
|
|
5
|
+
const StarSvg = ({ color, selected })=>{
|
|
6
|
+
return selected ? /*#__PURE__*/ jsx("svg", {
|
|
7
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
8
|
+
viewBox: "0 0 576 512",
|
|
9
|
+
color: color,
|
|
10
|
+
children: /*#__PURE__*/ jsx("path", {
|
|
11
|
+
d: "M316.9 18C311.6 7 300.4 0 288.1 0s-23.4 7-28.8 18L195 150.3 51.4 171.5c-12 1.8-22 10.2-25.7 21.7s-.7 24.2 7.9 32.7L137.8 329 113.2 474.7c-2 12 3 24.2 12.9 31.3s23 8 33.8 2.3l128.3-68.5 128.3 68.5c10.8 5.7 23.9 4.9 33.8-2.3s14.9-19.3 12.9-31.3L438.5 329 542.7 225.9c8.6-8.5 11.7-21.2 7.9-32.7s-13.7-19.9-25.7-21.7L381.2 150.3 316.9 18z",
|
|
12
|
+
fill: "currentColor"
|
|
13
|
+
})
|
|
14
|
+
}) : /*#__PURE__*/ jsx("svg", {
|
|
15
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
16
|
+
viewBox: "0 0 576 512",
|
|
17
|
+
color: color,
|
|
18
|
+
children: /*#__PURE__*/ jsx("path", {
|
|
19
|
+
d: "M287.9 0c9.2 0 17.6 5.2 21.6 13.5l68.6 141.3 153.2 22.6c9 1.3 16.5 7.6 19.3 16.3s.5 18.1-5.9 24.5L433.6 328.4l26.2 155.6c1.5 9-2.2 18.1-9.7 23.5s-17.3 6-25.3 1.7l-137-73.2L151 509.1c-8.1 4.3-17.9 3.7-25.3-1.7s-11.2-14.5-9.7-23.5l26.2-155.6L31.1 218.2c-6.5-6.4-8.7-15.9-5.9-24.5s10.3-14.9 19.3-16.3l153.2-22.6L266.3 13.5C270.4 5.2 278.7 0 287.9 0zm0 79L235.4 187.2c-3.5 7.1-10.2 12.1-18.1 13.3L99 217.9 184.9 303c5.5 5.5 8.1 13.3 6.8 21L171.4 443.7l105.2-56.2c7.1-3.8 15.6-3.8 22.6 0l105.2 56.2L384.2 324.1c-1.3-7.7 1.2-15.5 6.8-21l85.9-85.1L358.6 200.5c-7.8-1.2-14.6-6.1-18.1-13.3L287.9 79z",
|
|
20
|
+
fill: "currentColor"
|
|
21
|
+
})
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export { StarSvg };
|
|
26
|
+
|
|
27
|
+
//# sourceMappingURL=star.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webchat/custom-messages/rating/icons/star.js","sources":["../../../../../src/webchat/custom-messages/rating/icons/star.tsx"],"sourcesContent":["/** biome-ignore-all lint/a11y/noSvgWithoutTitle: This is a SVG icon */\nimport type { RatingIconProps } from '../types'\n\nexport const StarSvg = ({ color, selected }: RatingIconProps) => {\n return selected ? (\n <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 576 512' color={color}>\n <path\n d='M316.9 18C311.6 7 300.4 0 288.1 0s-23.4 7-28.8 18L195 150.3 51.4 171.5c-12 1.8-22 10.2-25.7 21.7s-.7 24.2 7.9 32.7L137.8 329 113.2 474.7c-2 12 3 24.2 12.9 31.3s23 8 33.8 2.3l128.3-68.5 128.3 68.5c10.8 5.7 23.9 4.9 33.8-2.3s14.9-19.3 12.9-31.3L438.5 329 542.7 225.9c8.6-8.5 11.7-21.2 7.9-32.7s-13.7-19.9-25.7-21.7L381.2 150.3 316.9 18z'\n fill='currentColor'\n />\n </svg>\n ) : (\n <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 576 512' color={color}>\n <path\n d='M287.9 0c9.2 0 17.6 5.2 21.6 13.5l68.6 141.3 153.2 22.6c9 1.3 16.5 7.6 19.3 16.3s.5 18.1-5.9 24.5L433.6 328.4l26.2 155.6c1.5 9-2.2 18.1-9.7 23.5s-17.3 6-25.3 1.7l-137-73.2L151 509.1c-8.1 4.3-17.9 3.7-25.3-1.7s-11.2-14.5-9.7-23.5l26.2-155.6L31.1 218.2c-6.5-6.4-8.7-15.9-5.9-24.5s10.3-14.9 19.3-16.3l153.2-22.6L266.3 13.5C270.4 5.2 278.7 0 287.9 0zm0 79L235.4 187.2c-3.5 7.1-10.2 12.1-18.1 13.3L99 217.9 184.9 303c5.5 5.5 8.1 13.3 6.8 21L171.4 443.7l105.2-56.2c7.1-3.8 15.6-3.8 22.6 0l105.2 56.2L384.2 324.1c-1.3-7.7 1.2-15.5 6.8-21l85.9-85.1L358.6 200.5c-7.8-1.2-14.6-6.1-18.1-13.3L287.9 79z'\n fill='currentColor'\n />\n </svg>\n )\n}\n"],"names":["StarSvg","color","selected"],"mappings":";;;AAAA,qEAAqE;AAG9D,MAAMA,OAAOA,GAAG,CAAC,EAAEC,KAAK,EAAEC,QAAQ,EAAmB;IAC1D,OAAOA,yBACL,IAAC;QAAI,OAAM;QAA6B,SAAQ;QAAc,OAAOD;kBACnE,kBAAC;YACC,GAAE;YACF,MAAK;;uBAIT,IAAC;QAAI,OAAM;QAA6B,SAAQ;QAAc,OAAOA;kBACnE,kBAAC;YACC,GAAE;YACF,MAAK;;;AAIb,EAAC"}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { INPUT } from "@botonic/core";
|
|
3
|
+
import { useContext, useState } from "react";
|
|
4
|
+
import { ThemeContext } from "styled-components";
|
|
5
|
+
import { Button, customMessage } from "../../../components/index.js";
|
|
6
|
+
import { WebchatContext } from "../../context/index.js";
|
|
7
|
+
import { RatingSelector } from "./rating-selector.js";
|
|
8
|
+
import { MessageBubble } from "./styles.js";
|
|
9
|
+
import { RatingType } from "./types.js";
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
const ratingValues = {
|
|
30
|
+
[RatingType.Stars]: [
|
|
31
|
+
'⭐'.repeat(1),
|
|
32
|
+
'⭐'.repeat(2),
|
|
33
|
+
'⭐'.repeat(3),
|
|
34
|
+
'⭐'.repeat(4),
|
|
35
|
+
'⭐'.repeat(5)
|
|
36
|
+
],
|
|
37
|
+
[RatingType.Smileys]: [
|
|
38
|
+
'😠',
|
|
39
|
+
'🙁',
|
|
40
|
+
'😐',
|
|
41
|
+
'🙂',
|
|
42
|
+
'😄'
|
|
43
|
+
]
|
|
44
|
+
};
|
|
45
|
+
const CustomRatingMessage = (props)=>{
|
|
46
|
+
const { payloads, messageText, buttonText, ratingType, id, valueSent } = props;
|
|
47
|
+
const { updateCustomMessageProps, sendInput } = useContext(WebchatContext);
|
|
48
|
+
const theme = useContext(ThemeContext);
|
|
49
|
+
const color = theme?.brand?.color ?? '';
|
|
50
|
+
const [ratingValue, setRatingValue] = useState(valueSent ? valueSent : -1);
|
|
51
|
+
const [showRating, setShowRating] = useState(true);
|
|
52
|
+
const ratingChanged = (newRating)=>{
|
|
53
|
+
setRatingValue(newRating);
|
|
54
|
+
};
|
|
55
|
+
const handleButtonSend = ()=>{
|
|
56
|
+
if (ratingValue === -1) {
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
const json = {
|
|
60
|
+
valueSent: ratingValue
|
|
61
|
+
};
|
|
62
|
+
updateCustomMessageProps(json, id);
|
|
63
|
+
setShowRating(false);
|
|
64
|
+
const payload = payloads[ratingValue - 1];
|
|
65
|
+
const input = {
|
|
66
|
+
type: INPUT.POSTBACK,
|
|
67
|
+
payload,
|
|
68
|
+
referral: ratingValues[ratingType][ratingValue - 1]
|
|
69
|
+
};
|
|
70
|
+
void sendInput(input);
|
|
71
|
+
};
|
|
72
|
+
const disabled = ratingValue === -1;
|
|
73
|
+
return /*#__PURE__*/ jsxs("div", {
|
|
74
|
+
className: "rating-message-container",
|
|
75
|
+
children: [
|
|
76
|
+
/*#__PURE__*/ jsxs(MessageBubble, {
|
|
77
|
+
className: "rating-message-bubble",
|
|
78
|
+
children: [
|
|
79
|
+
messageText,
|
|
80
|
+
/*#__PURE__*/ jsx(RatingSelector, {
|
|
81
|
+
color: color,
|
|
82
|
+
onRatingChange: ratingChanged,
|
|
83
|
+
ratingValue: ratingValue,
|
|
84
|
+
ratingType: ratingType,
|
|
85
|
+
valueSent: valueSent
|
|
86
|
+
})
|
|
87
|
+
]
|
|
88
|
+
}),
|
|
89
|
+
!props?.valueSent && showRating && /*#__PURE__*/ jsx(Button, {
|
|
90
|
+
autodisable: true,
|
|
91
|
+
disabled: disabled,
|
|
92
|
+
onClick: handleButtonSend,
|
|
93
|
+
children: buttonText
|
|
94
|
+
})
|
|
95
|
+
]
|
|
96
|
+
});
|
|
97
|
+
};
|
|
98
|
+
/* export default */ const rating = (customMessage({
|
|
99
|
+
name: 'custom-rating',
|
|
100
|
+
component: CustomRatingMessage
|
|
101
|
+
}));
|
|
102
|
+
|
|
103
|
+
export default rating;
|
|
104
|
+
|
|
105
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webchat/custom-messages/rating/index.js","sources":["../../../../src/webchat/custom-messages/rating/index.tsx"],"sourcesContent":["import { INPUT, type InputType } from '@botonic/core'\nimport type React from 'react'\nimport { useContext, useState } from 'react'\nimport { ThemeContext } from 'styled-components'\n\nimport { Button, customMessage } from '../../../components'\nimport { WebchatContext } from '../../context'\nimport { RatingSelector } from './rating-selector'\nimport { MessageBubble } from './styles'\nimport { RatingType } from './types'\n\ninterface CustomRatingMessageProps {\n payloads: string[]\n messageText: string\n buttonText: string\n ratingType: RatingType\n id?: string // This id not exist in local development\n valueSent?: number\n}\n\nconst ratingValues = {\n [RatingType.Stars]: [\n '⭐'.repeat(1),\n '⭐'.repeat(2),\n '⭐'.repeat(3),\n '⭐'.repeat(4),\n '⭐'.repeat(5),\n ],\n [RatingType.Smileys]: ['😠', '🙁', '😐', '🙂', '😄'],\n} as const\n\nconst CustomRatingMessage: React.FC<CustomRatingMessageProps> = props => {\n const { payloads, messageText, buttonText, ratingType, id, valueSent } = props\n const { updateCustomMessageProps, sendInput } = useContext(WebchatContext)\n\n const theme = useContext(ThemeContext)\n const color = theme?.brand?.color ?? ''\n\n const [ratingValue, setRatingValue] = useState(valueSent ? valueSent : -1)\n const [showRating, setShowRating] = useState(true)\n\n const ratingChanged = (newRating: number) => {\n setRatingValue(newRating)\n }\n\n const handleButtonSend = () => {\n if (ratingValue === -1) {\n return\n }\n\n const json = {\n valueSent: ratingValue,\n }\n updateCustomMessageProps(json, id)\n\n setShowRating(false)\n const payload = payloads[ratingValue - 1]\n\n const input = {\n type: INPUT.POSTBACK as InputType,\n payload,\n referral: ratingValues[ratingType][ratingValue - 1],\n }\n void sendInput(input)\n }\n\n const disabled = ratingValue === -1\n\n return (\n <div className='rating-message-container'>\n <MessageBubble className='rating-message-bubble'>\n {messageText}\n <RatingSelector\n color={color}\n onRatingChange={ratingChanged}\n ratingValue={ratingValue}\n ratingType={ratingType}\n valueSent={valueSent}\n />\n </MessageBubble>\n {!props?.valueSent && showRating && (\n <Button\n autodisable={true}\n disabled={disabled}\n onClick={handleButtonSend}\n >\n {buttonText}\n </Button>\n )}\n </div>\n )\n}\n\nexport default customMessage({\n name: 'custom-rating',\n component: CustomRatingMessage,\n})\n"],"names":["INPUT","useContext","useState","ThemeContext","Button","customMessage","WebchatContext","RatingSelector","MessageBubble","RatingType","ratingValues","CustomRatingMessage","props","payloads","messageText","buttonText","ratingType","id","valueSent","updateCustomMessageProps","sendInput","theme","color","ratingValue","setRatingValue","showRating","setShowRating","ratingChanged","newRating","handleButtonSend","json","payload","input","disabled"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAqD;AAET;AACI;AAEW;AACb;AACI;AACV;AACJ;AAWpC,MAAMU,YAAYA,GAAG;IACnB,CAACD,gBAAgB,CAAC,EAAE;QAClB,IAAI,MAAM,CAAC;QACX,IAAI,MAAM,CAAC;QACX,IAAI,MAAM,CAAC;QACX,IAAI,MAAM,CAAC;QACX,IAAI,MAAM,CAAC;KACZ;IACD,CAACA,kBAAkB,CAAC,EAAE;QAAC;QAAM;QAAM;QAAM;QAAM;KAAK;AACtD;AAEA,MAAME,mBAAmBA,GAAuCC,CAAAA;IAC9D,MAAM,EAAEC,QAAQ,EAAEC,WAAW,EAAEC,UAAU,EAAEC,UAAU,EAAEC,EAAE,EAAEC,SAAS,EAAE,GAAGN;IACzE,MAAM,EAAEO,wBAAwB,EAAEC,SAAS,EAAE,GAAGnB,UAAUA,CAACK,cAAcA;IAEzE,MAAMe,QAAQpB,UAAUA,CAACE,YAAYA;IACrC,MAAMmB,QAAQD,OAAO,OAAO,SAAS;IAErC,MAAM,CAACE,aAAaC,eAAe,GAAGtB,QAAQA,CAACgB,YAAYA,YAAY,CAAC;IACxE,MAAM,CAACO,YAAYC,cAAc,GAAGxB,QAAQA,CAAC;IAE7C,MAAMyB,gBAAgB,CAACC;QACrBJ,eAAeI;IACjB;IAEA,MAAMC,mBAAmB;QACvB,IAAIN,gBAAgB,CAAC,GAAG;YACtB;QACF;QAEA,MAAMO,OAAO;YACX,WAAWP;QACb;QACAJ,yBAAyBW,MAAMb;QAE/BS,cAAc;QACd,MAAMK,UAAUlB,QAAQ,CAACU,cAAc,EAAE;QAEzC,MAAMS,QAAQ;YACZ,MAAMhC,cAAc;YACpB+B;YACA,UAAUrB,YAAY,CAACM,WAAW,CAACO,cAAc,EAAE;QACrD;QACA,KAAKH,UAAUY;IACjB;IAEA,MAAMC,WAAWV,gBAAgB,CAAC;IAElC,qBACE,KAAC;QAAI,WAAU;;0BACb,KAACf,aAAaA;gBAAC,WAAU;;oBACtBM;kCACD,IAACP,cAAcA;wBACb,OAAOe;wBACP,gBAAgBK;wBAChB,aAAaJ;wBACb,YAAYP;wBACZ,WAAWE;;;;YAGd,CAACN,OAAO,aAAaa,4BACpB,IAACrB,MAAMA;gBACL,aAAa;gBACb,UAAU6B;gBACV,SAASJ;0BAERd;;;;AAKX;AAEA,qCAAeV,aAAaA,CAAC;IAC3B,MAAM;IACN,WAAWM,mBAAmBA;AAChC,EAAE"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { RatingType } from './types.js';
|
|
2
|
+
interface RatingSelectorProps {
|
|
3
|
+
color: string;
|
|
4
|
+
isSent?: boolean;
|
|
5
|
+
onRatingChange: (newRating: number) => void;
|
|
6
|
+
ratingValue: number;
|
|
7
|
+
ratingType: RatingType;
|
|
8
|
+
valueSent?: number;
|
|
9
|
+
}
|
|
10
|
+
export declare const RatingSelector: ({ color, isSent, onRatingChange, ratingValue, ratingType, valueSent, }: RatingSelectorProps) => import("react").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useState } from "react";
|
|
3
|
+
import { Smileys } from "./smileys.js";
|
|
4
|
+
import { Stars } from "./stars.js";
|
|
5
|
+
import { RatingSelectorContainer } from "./styles.js";
|
|
6
|
+
import { RatingType } from "./types.js";
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
/** biome-ignore-all lint/a11y/noStaticElementInteractions: we need to use static elements for the rating selector */ /** biome-ignore-all lint/a11y/useKeyWithClickEvents: we need to use key with click events for the rating selector */
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
const NUMBER_OF_RATING_BUTTONS = 5;
|
|
21
|
+
const RatingSelector = ({ color, isSent, onRatingChange, ratingValue, ratingType, valueSent })=>{
|
|
22
|
+
const [hover, setHover] = useState(valueSent ? valueSent : -1);
|
|
23
|
+
const onHover = (ratingNumber)=>{
|
|
24
|
+
if (!valueSent) {
|
|
25
|
+
setHover(ratingNumber);
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
return /*#__PURE__*/ jsx(RatingSelectorContainer, {
|
|
29
|
+
isSent: isSent,
|
|
30
|
+
children: Array.from({
|
|
31
|
+
length: NUMBER_OF_RATING_BUTTONS
|
|
32
|
+
}, (_star, i)=>{
|
|
33
|
+
const ratingNumber = i + 1;
|
|
34
|
+
return /*#__PURE__*/ jsxs("div", {
|
|
35
|
+
onMouseEnter: ()=>onHover(ratingNumber),
|
|
36
|
+
onMouseLeave: ()=>onHover(ratingValue),
|
|
37
|
+
onClick: ()=>onRatingChange(ratingNumber),
|
|
38
|
+
children: [
|
|
39
|
+
ratingType === RatingType.Stars && /*#__PURE__*/ jsx(Stars, {
|
|
40
|
+
color: color,
|
|
41
|
+
ratingNumber: ratingNumber,
|
|
42
|
+
hover: hover
|
|
43
|
+
}),
|
|
44
|
+
ratingType === RatingType.Smileys && /*#__PURE__*/ jsx(Smileys, {
|
|
45
|
+
color: color,
|
|
46
|
+
ratingNumber: ratingNumber,
|
|
47
|
+
hover: hover
|
|
48
|
+
})
|
|
49
|
+
]
|
|
50
|
+
}, ratingNumber);
|
|
51
|
+
})
|
|
52
|
+
});
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
export { RatingSelector };
|
|
56
|
+
|
|
57
|
+
//# sourceMappingURL=rating-selector.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webchat/custom-messages/rating/rating-selector.js","sources":["../../../../src/webchat/custom-messages/rating/rating-selector.tsx"],"sourcesContent":["/** biome-ignore-all lint/a11y/noStaticElementInteractions: we need to use static elements for the rating selector */\n/** biome-ignore-all lint/a11y/useKeyWithClickEvents: we need to use key with click events for the rating selector */\nimport { useState } from 'react'\n\nimport { Smileys } from './smileys'\nimport { Stars } from './stars'\nimport { RatingSelectorContainer } from './styles'\nimport { RatingType } from './types'\n\nconst NUMBER_OF_RATING_BUTTONS = 5\ninterface RatingSelectorProps {\n color: string\n isSent?: boolean\n onRatingChange: (newRating: number) => void\n ratingValue: number\n ratingType: RatingType\n valueSent?: number\n}\n\nexport const RatingSelector = ({\n color,\n isSent,\n onRatingChange,\n ratingValue,\n ratingType,\n valueSent,\n}: RatingSelectorProps) => {\n const [hover, setHover] = useState<number>(valueSent ? valueSent : -1)\n\n const onHover = (ratingNumber: number) => {\n if (!valueSent) {\n setHover(ratingNumber)\n }\n }\n\n return (\n <RatingSelectorContainer isSent={isSent}>\n {Array.from({ length: NUMBER_OF_RATING_BUTTONS }, (_star, i) => {\n const ratingNumber = i + 1\n\n return (\n <div\n key={ratingNumber}\n onMouseEnter={() => onHover(ratingNumber)}\n onMouseLeave={() => onHover(ratingValue)}\n onClick={() => onRatingChange(ratingNumber)}\n >\n {ratingType === RatingType.Stars && (\n <Stars color={color} ratingNumber={ratingNumber} hover={hover} />\n )}\n {ratingType === RatingType.Smileys && (\n <Smileys\n color={color}\n ratingNumber={ratingNumber}\n hover={hover}\n />\n )}\n </div>\n )\n })}\n </RatingSelectorContainer>\n )\n}\n"],"names":["useState","Smileys","Stars","RatingSelectorContainer","RatingType","NUMBER_OF_RATING_BUTTONS","RatingSelector","color","isSent","onRatingChange","ratingValue","ratingType","valueSent","hover","setHover","onHover","ratingNumber","Array","_star","i"],"mappings":";;;;;;;;;;;;;;AAAA,mHAAmH,GACnH,mHAAmH,GACnF;AAEG;AACJ;AACmB;AACd;AAEpC,MAAMK,wBAAwBA,GAAG;AAU1B,MAAMC,cAAcA,GAAG,CAAC,EAC7BC,KAAK,EACLC,MAAM,EACNC,cAAc,EACdC,WAAW,EACXC,UAAU,EACVC,SAAS,EACW;IACpB,MAAM,CAACC,OAAOC,SAAS,GAAGd,QAAQA,CAASY,YAAYA,YAAY,CAAC;IAEpE,MAAMG,UAAU,CAACC;QACf,IAAI,CAACJ,WAAW;YACdE,SAASE;QACX;IACF;IAEA,qBACE,IAACb,uBAAuBA;QAAC,QAAQK;kBAC9BS,MAAM,IAAI,CAAC;YAAE,QAAQZ,wBAAwBA;QAAC,GAAG,CAACa,OAAOC;YACxD,MAAMH,eAAeG,IAAI;YAEzB,qBACE,KAAC;gBAEC,cAAc,IAAMJ,QAAQC;gBAC5B,cAAc,IAAMD,QAAQL;gBAC5B,SAAS,IAAMD,eAAeO;;oBAE7BL,eAAeP,gBAAgB,kBAC9B,IAACF,KAAKA;wBAAC,OAAOK;wBAAO,cAAcS;wBAAc,OAAOH;;oBAEzDF,eAAeP,kBAAkB,kBAChC,IAACH,OAAOA;wBACN,OAAOM;wBACP,cAAcS;wBACd,OAAOH;;;eAZNG;QAiBX;;AAGN,EAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { FaceAngrySvg, FaceFrownSvg, FaceGrinBeamSvg, FaceMehSvg, FaceSmileSvg } from "./icons/index.js";
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
const SMILEY_MAP = {
|
|
9
|
+
1: FaceAngrySvg,
|
|
10
|
+
2: FaceFrownSvg,
|
|
11
|
+
3: FaceMehSvg,
|
|
12
|
+
4: FaceSmileSvg,
|
|
13
|
+
5: FaceGrinBeamSvg
|
|
14
|
+
};
|
|
15
|
+
const Smileys = ({ color, ratingNumber, hover })=>{
|
|
16
|
+
const isSelected = hover === ratingNumber;
|
|
17
|
+
const SmileyComponent = SMILEY_MAP[ratingNumber];
|
|
18
|
+
return SmileyComponent ? /*#__PURE__*/ jsx(SmileyComponent, {
|
|
19
|
+
color: color,
|
|
20
|
+
selected: isSelected
|
|
21
|
+
}) : null;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export { Smileys };
|
|
25
|
+
|
|
26
|
+
//# sourceMappingURL=smileys.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webchat/custom-messages/rating/smileys.js","sources":["../../../../src/webchat/custom-messages/rating/smileys.tsx"],"sourcesContent":["import {\n FaceAngrySvg,\n FaceFrownSvg,\n FaceGrinBeamSvg,\n FaceMehSvg,\n FaceSmileSvg,\n} from './icons'\nimport type { RatingItemProps } from './types'\n\nconst SMILEY_MAP = {\n 1: FaceAngrySvg,\n 2: FaceFrownSvg,\n 3: FaceMehSvg,\n 4: FaceSmileSvg,\n 5: FaceGrinBeamSvg,\n} as const\n\nexport const Smileys = ({ color, ratingNumber, hover }: RatingItemProps) => {\n const isSelected = hover === ratingNumber\n const SmileyComponent = SMILEY_MAP[ratingNumber as keyof typeof SMILEY_MAP]\n\n return SmileyComponent ? (\n <SmileyComponent color={color} selected={isSelected} />\n ) : null\n}\n"],"names":["FaceAngrySvg","FaceFrownSvg","FaceGrinBeamSvg","FaceMehSvg","FaceSmileSvg","SMILEY_MAP","Smileys","color","ratingNumber","hover","isSelected","SmileyComponent"],"mappings":";;;;;;AAMgB;AAGhB,MAAMK,UAAUA,GAAG;IACjB,GAAGL,YAAYA;IACf,GAAGC,YAAYA;IACf,GAAGE,UAAUA;IACb,GAAGC,YAAYA;IACf,GAAGF,eAAeA;AACpB;AAEO,MAAMI,OAAOA,GAAG,CAAC,EAAEC,KAAK,EAAEC,YAAY,EAAEC,KAAK,EAAmB;IACrE,MAAMC,aAAaD,UAAUD;IAC7B,MAAMG,kBAAkBN,UAAU,CAACG,aAAwC;IAE3E,OAAOG,gCACL,IAACA;QAAgB,OAAOJ;QAAO,UAAUG;SACvC;AACN,EAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { StarSvg } from "./icons/index.js";
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
const Stars = ({ color, ratingNumber, hover })=>{
|
|
9
|
+
const isSelected = hover >= ratingNumber;
|
|
10
|
+
return /*#__PURE__*/ jsx(StarSvg, {
|
|
11
|
+
color: color,
|
|
12
|
+
selected: isSelected
|
|
13
|
+
});
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export { Stars };
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=stars.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webchat/custom-messages/rating/stars.js","sources":["../../../../src/webchat/custom-messages/rating/stars.tsx"],"sourcesContent":["import { StarSvg } from './icons/index'\nimport type { RatingItemProps } from './types'\n\nexport const Stars = ({ color, ratingNumber, hover }: RatingItemProps) => {\n const isSelected = hover >= ratingNumber\n return <StarSvg color={color} selected={isSelected} />\n}\n"],"names":["StarSvg","Stars","color","ratingNumber","hover","isSelected"],"mappings":";;;;;;AAAuC;AAGhC,MAAMC,KAAKA,GAAG,CAAC,EAAEC,KAAK,EAAEC,YAAY,EAAEC,KAAK,EAAmB;IACnE,MAAMC,aAAaD,SAASD;IAC5B,qBAAO,IAACH,OAAOA;QAAC,OAAOE;QAAO,UAAUG;;AAC1C,EAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import styled_components from "styled-components";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
// TODO: Review how define all this styles
|
|
6
|
+
const MessageBubble = styled_components.div`
|
|
7
|
+
margin: 0px 0px 5px 0px;
|
|
8
|
+
`;
|
|
9
|
+
const RatingSelectorContainer = styled_components.div`
|
|
10
|
+
display: flex;
|
|
11
|
+
justify-content: center;
|
|
12
|
+
gap: 8px;
|
|
13
|
+
margin-top: 16px;
|
|
14
|
+
|
|
15
|
+
& > div {
|
|
16
|
+
cursor: ${(props)=>props.isSent ? 'default' : 'pointer'};
|
|
17
|
+
|
|
18
|
+
svg {
|
|
19
|
+
height: 27px;
|
|
20
|
+
width: 27px;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
`;
|
|
24
|
+
|
|
25
|
+
export { MessageBubble, RatingSelectorContainer };
|
|
26
|
+
|
|
27
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webchat/custom-messages/rating/styles.js","sources":["../../../../src/webchat/custom-messages/rating/styles.ts"],"sourcesContent":["import styled from 'styled-components'\n\n// TODO: Review how define all this styles\nexport const MessageBubble = styled.div`\n margin: 0px 0px 5px 0px;\n`\n\ninterface RatingSelectorContainerProps {\n isSent?: boolean\n}\n\nexport const RatingSelectorContainer = styled.div<RatingSelectorContainerProps>`\n display: flex;\n justify-content: center;\n gap: 8px;\n margin-top: 16px;\n\n & > div {\n cursor: ${props => (props.isSent ? 'default' : 'pointer')};\n\n svg {\n height: 27px;\n width: 27px;\n }\n }\n`\n"],"names":["styled","MessageBubble","RatingSelectorContainer","props"],"mappings":";;;AAAsC;AAEtC,0CAA0C;AACnC,MAAMC,aAAaA,GAAGD,qBAAU,CAAC;;AAExC,CAAC;AAMM,MAAME,uBAAuBA,GAAGF,qBAAwC,CAAC;;;;;;;YAOpE,EAAEG,CAAAA,QAAUA,MAAM,MAAM,GAAG,YAAY,UAAW;;;;;;;AAO9D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webchat/custom-messages/rating/types.js","sources":["../../../../src/webchat/custom-messages/rating/types.ts"],"sourcesContent":["export enum RatingType {\n Stars = 'stars',\n Smileys = 'smileys',\n}\n\nexport interface RatingItemProps {\n color: string\n ratingNumber: number\n hover: number\n}\n\nexport interface RatingIconProps {\n color: string\n selected?: boolean\n}\n"],"names":["RatingType"],"mappings":"AAAO,IAAKA,gBAAUA,0BAAVA;;;WAAAA;MAGX"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
const DEVICES = Object.freeze({
|
|
2
|
+
MOBILE: {
|
|
3
|
+
IPHONE: 'iPhone',
|
|
4
|
+
ANDROID: 'Android',
|
|
5
|
+
WEBOS: 'webOS',
|
|
6
|
+
BLACKBERRY: 'BlackBerry',
|
|
7
|
+
WINDOWS_PHONE: 'Windows Phone'
|
|
8
|
+
}
|
|
9
|
+
});
|
|
10
|
+
const isDevice = (deviceName)=>{
|
|
11
|
+
// https://stackoverflow.com/questions/19877924/what-is-the-list-of-possible-values-for-navigator-platform-as-of-today
|
|
12
|
+
return !!navigator.platform && navigator.platform.toLowerCase().includes(deviceName.toLowerCase());
|
|
13
|
+
};
|
|
14
|
+
const isMobileDevice = ()=>{
|
|
15
|
+
return Object.values(DEVICES.MOBILE).some((deviceName)=>isDevice(deviceName));
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export { DEVICES, isDevice, isMobileDevice };
|
|
19
|
+
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webchat/devices/index.js","sources":["../../../src/webchat/devices/index.js"],"sourcesContent":["export const DEVICES = Object.freeze({\n MOBILE: {\n IPHONE: 'iPhone',\n ANDROID: 'Android',\n WEBOS: 'webOS',\n BLACKBERRY: 'BlackBerry',\n WINDOWS_PHONE: 'Windows Phone',\n },\n})\n\nexport const isDevice = deviceName => {\n // https://stackoverflow.com/questions/19877924/what-is-the-list-of-possible-values-for-navigator-platform-as-of-today\n return (\n !!navigator.platform &&\n navigator.platform.toLowerCase().includes(deviceName.toLowerCase())\n )\n}\n\nexport const isMobileDevice = () => {\n return Object.values(DEVICES.MOBILE).some(deviceName => isDevice(deviceName))\n}\n"],"names":["DEVICES","Object","isDevice","deviceName","navigator","isMobileDevice"],"mappings":"AAAO,MAAMA,OAAOA,GAAGC,OAAO,MAAM,CAAC;IACnC,QAAQ;QACN,QAAQ;QACR,SAAS;QACT,OAAO;QACP,YAAY;QACZ,eAAe;IACjB;AACF,GAAE;AAEK,MAAMC,QAAQA,GAAGC,CAAAA;IACtB,sHAAsH;IACtH,OACE,CAAC,CAACC,UAAU,QAAQ,IACpBA,UAAU,QAAQ,CAAC,WAAW,GAAG,QAAQ,CAACD,WAAW,WAAW;AAEpE,EAAC;AAEM,MAAME,cAAcA,GAAG;IAC5B,OAAOJ,OAAO,MAAM,CAACD,OAAOA,CAAC,MAAM,EAAE,IAAI,CAACG,CAAAA,aAAcD,QAAQA,CAACC;AACnE,EAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const DefaultHeader: () => import("react").JSX.Element;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useContext } from "react";
|
|
3
|
+
import { ROLES, WEBCHAT } from "../../constants.js";
|
|
4
|
+
import { Scale } from "../../shared/styles.js";
|
|
5
|
+
import { resolveImage } from "../../util/environment.js";
|
|
6
|
+
import { ConditionalWrapper } from "../../util/react.js";
|
|
7
|
+
import { WebchatContext } from "../context/index.js";
|
|
8
|
+
import { CloseHeader, HeaderContainer, ImageContainer, Subtitle, TextContainer, Title } from "./styles.js";
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
const DefaultHeader = ()=>{
|
|
27
|
+
const { getThemeProperty, toggleWebchat } = useContext(WebchatContext);
|
|
28
|
+
const animationsEnabled = getThemeProperty(WEBCHAT.CUSTOM_PROPERTIES.enableAnimations);
|
|
29
|
+
const headerImage = getThemeProperty(WEBCHAT.CUSTOM_PROPERTIES.headerImage, getThemeProperty(WEBCHAT.CUSTOM_PROPERTIES.brandImage));
|
|
30
|
+
const headerTitle = getThemeProperty(WEBCHAT.CUSTOM_PROPERTIES.headerTitle);
|
|
31
|
+
const headerSubtitle = getThemeProperty(WEBCHAT.CUSTOM_PROPERTIES.headerSubtitle);
|
|
32
|
+
const handleCloseWebchat = ()=>{
|
|
33
|
+
toggleWebchat(false);
|
|
34
|
+
};
|
|
35
|
+
const color = getThemeProperty(WEBCHAT.CUSTOM_PROPERTIES.brandColor);
|
|
36
|
+
return /*#__PURE__*/ jsxs(HeaderContainer, {
|
|
37
|
+
role: ROLES.HEADER,
|
|
38
|
+
color: color,
|
|
39
|
+
style: {
|
|
40
|
+
...getThemeProperty(WEBCHAT.CUSTOM_PROPERTIES.headerStyle)
|
|
41
|
+
},
|
|
42
|
+
children: [
|
|
43
|
+
headerImage && /*#__PURE__*/ jsx(ImageContainer, {
|
|
44
|
+
children: /*#__PURE__*/ jsx("img", {
|
|
45
|
+
src: resolveImage(headerImage),
|
|
46
|
+
alt: "Header"
|
|
47
|
+
})
|
|
48
|
+
}),
|
|
49
|
+
/*#__PURE__*/ jsxs(TextContainer, {
|
|
50
|
+
children: [
|
|
51
|
+
/*#__PURE__*/ jsx(Title, {
|
|
52
|
+
children: headerTitle
|
|
53
|
+
}),
|
|
54
|
+
headerSubtitle ? /*#__PURE__*/ jsx(Subtitle, {
|
|
55
|
+
children: headerSubtitle
|
|
56
|
+
}) : null
|
|
57
|
+
]
|
|
58
|
+
}),
|
|
59
|
+
/*#__PURE__*/ jsx(ConditionalWrapper, {
|
|
60
|
+
condition: animationsEnabled,
|
|
61
|
+
wrapper: (children)=>/*#__PURE__*/ jsx(Scale, {
|
|
62
|
+
children: children
|
|
63
|
+
}),
|
|
64
|
+
children: /*#__PURE__*/ jsx(CloseHeader, {
|
|
65
|
+
onClick: handleCloseWebchat,
|
|
66
|
+
children: "⨯"
|
|
67
|
+
})
|
|
68
|
+
})
|
|
69
|
+
]
|
|
70
|
+
});
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
export { DefaultHeader };
|
|
74
|
+
|
|
75
|
+
//# sourceMappingURL=default-header.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webchat/header/default-header.js","sources":["../../../src/webchat/header/default-header.tsx"],"sourcesContent":["import { useContext } from 'react'\n\nimport { ROLES, WEBCHAT } from '../../constants'\nimport { Scale } from '../../shared/styles'\nimport { resolveImage } from '../../util/environment'\nimport { ConditionalWrapper } from '../../util/react'\nimport { WebchatContext } from '../../webchat/context'\nimport {\n CloseHeader,\n HeaderContainer,\n ImageContainer,\n Subtitle,\n TextContainer,\n Title,\n} from './styles'\n\nexport const DefaultHeader = () => {\n const { getThemeProperty, toggleWebchat } = useContext(WebchatContext)\n\n const animationsEnabled = getThemeProperty(\n WEBCHAT.CUSTOM_PROPERTIES.enableAnimations\n )\n\n const headerImage = getThemeProperty(\n WEBCHAT.CUSTOM_PROPERTIES.headerImage,\n getThemeProperty(WEBCHAT.CUSTOM_PROPERTIES.brandImage)\n )\n\n const headerTitle = getThemeProperty(WEBCHAT.CUSTOM_PROPERTIES.headerTitle)\n\n const headerSubtitle = getThemeProperty(\n WEBCHAT.CUSTOM_PROPERTIES.headerSubtitle\n )\n\n const handleCloseWebchat = () => {\n toggleWebchat(false)\n }\n\n const color = getThemeProperty(WEBCHAT.CUSTOM_PROPERTIES.brandColor)\n\n return (\n <HeaderContainer\n role={ROLES.HEADER}\n color={color}\n style={{ ...getThemeProperty(WEBCHAT.CUSTOM_PROPERTIES.headerStyle) }}\n >\n {headerImage && (\n <ImageContainer>\n <img src={resolveImage(headerImage)} alt='Header' />\n </ImageContainer>\n )}\n <TextContainer>\n <Title>{headerTitle}</Title>\n {headerSubtitle ? <Subtitle>{headerSubtitle}</Subtitle> : null}\n </TextContainer>\n <ConditionalWrapper\n condition={animationsEnabled}\n wrapper={children => <Scale>{children}</Scale>}\n >\n <CloseHeader onClick={handleCloseWebchat}>⨯</CloseHeader>\n </ConditionalWrapper>\n </HeaderContainer>\n )\n}\n"],"names":["useContext","ROLES","WEBCHAT","Scale","resolveImage","ConditionalWrapper","WebchatContext","CloseHeader","HeaderContainer","ImageContainer","Subtitle","TextContainer","Title","DefaultHeader","getThemeProperty","toggleWebchat","animationsEnabled","headerImage","headerTitle","headerSubtitle","handleCloseWebchat","color","children"],"mappings":";;;;;;;;;;;;;;;;;;AAAkC;AAEc;AACL;AACU;AACA;AACC;AAQrC;AAEV,MAAMa,aAAaA,GAAG;IAC3B,MAAM,EAAEC,gBAAgB,EAAEC,aAAa,EAAE,GAAGf,UAAUA,CAACM,cAAcA;IAErE,MAAMU,oBAAoBF,iBACxBZ,0CAA0C;IAG5C,MAAMe,cAAcH,iBAClBZ,qCAAqC,EACrCY,iBAAiBZ,oCAAoC;IAGvD,MAAMgB,cAAcJ,iBAAiBZ,qCAAqC;IAE1E,MAAMiB,iBAAiBL,iBACrBZ,wCAAwC;IAG1C,MAAMkB,qBAAqB;QACzBL,cAAc;IAChB;IAEA,MAAMM,QAAQP,iBAAiBZ,oCAAoC;IAEnE,qBACE,KAACM,eAAeA;QACd,MAAMP,YAAY;QAClB,OAAOoB;QACP,OAAO;YAAE,GAAGP,iBAAiBZ,qCAAqC,CAAC;QAAC;;YAEnEe,6BACC,IAACR,cAAcA;0BACb,kBAAC;oBAAI,KAAKL,YAAYA,CAACa;oBAAc,KAAI;;;0BAG7C,KAACN,aAAaA;;kCACZ,IAACC,KAAKA;kCAAEM;;oBACPC,+BAAiB,IAACT,QAAQA;kCAAES;yBAA6B;;;0BAE5D,IAACd,kBAAkBA;gBACjB,WAAWW;gBACX,SAASM,CAAAA,yBAAY,IAACnB,KAAKA;kCAAEmB;;0BAE7B,kBAACf,WAAWA;oBAAC,SAASa;8BAAoB;;;;;AAIlD,EAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef, useContext } from "react";
|
|
3
|
+
import { WEBCHAT } from "../../constants.js";
|
|
4
|
+
import { WebchatContext } from "../context/index.js";
|
|
5
|
+
import { BotonicContainerId } from "../constants.js";
|
|
6
|
+
import { DefaultHeader } from "./default-header.js";
|
|
7
|
+
import { StyledWebchatHeader } from "./styles.js";
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
const WebchatHeader = /*#__PURE__*/ forwardRef((_, ref)=>{
|
|
24
|
+
const { getThemeProperty, toggleWebchat } = useContext(WebchatContext);
|
|
25
|
+
const handleCloseWebchat = ()=>{
|
|
26
|
+
toggleWebchat(false);
|
|
27
|
+
};
|
|
28
|
+
const CustomHeader = getThemeProperty(WEBCHAT.CUSTOM_PROPERTIES.customHeader);
|
|
29
|
+
if (CustomHeader) {
|
|
30
|
+
return /*#__PURE__*/ jsx("div", {
|
|
31
|
+
id: BotonicContainerId.Header,
|
|
32
|
+
ref: ref,
|
|
33
|
+
children: /*#__PURE__*/ jsx(CustomHeader, {
|
|
34
|
+
onCloseClick: handleCloseWebchat
|
|
35
|
+
})
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
return /*#__PURE__*/ jsx(StyledWebchatHeader, {
|
|
39
|
+
id: BotonicContainerId.Header,
|
|
40
|
+
ref: ref,
|
|
41
|
+
children: /*#__PURE__*/ jsx(DefaultHeader, {})
|
|
42
|
+
});
|
|
43
|
+
});
|
|
44
|
+
WebchatHeader.displayName = 'WebchatHeader';
|
|
45
|
+
|
|
46
|
+
export { WebchatHeader };
|
|
47
|
+
|
|
48
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webchat/header/index.js","sources":["../../../src/webchat/header/index.tsx"],"sourcesContent":["import { type ForwardedRef, forwardRef, useContext } from 'react'\n\nimport { WEBCHAT } from '../../constants'\nimport { WebchatContext } from '../../webchat/context'\nimport { BotonicContainerId } from '../constants'\nimport { DefaultHeader } from './default-header'\nimport { StyledWebchatHeader } from './styles'\n\nexport const WebchatHeader = forwardRef(\n (_, ref: ForwardedRef<HTMLDivElement>) => {\n const { getThemeProperty, toggleWebchat } = useContext(WebchatContext)\n\n const handleCloseWebchat = () => {\n toggleWebchat(false)\n }\n\n const CustomHeader = getThemeProperty(\n WEBCHAT.CUSTOM_PROPERTIES.customHeader\n )\n\n if (CustomHeader) {\n return (\n <div id={BotonicContainerId.Header} ref={ref}>\n <CustomHeader onCloseClick={handleCloseWebchat} />\n </div>\n )\n }\n\n return (\n <StyledWebchatHeader id={BotonicContainerId.Header} ref={ref}>\n <DefaultHeader />\n </StyledWebchatHeader>\n )\n }\n)\n\nWebchatHeader.displayName = 'WebchatHeader'\n"],"names":["forwardRef","useContext","WEBCHAT","WebchatContext","BotonicContainerId","DefaultHeader","StyledWebchatHeader","WebchatHeader","_","ref","getThemeProperty","toggleWebchat","handleCloseWebchat","CustomHeader"],"mappings":";;;;;;;;;;;;;;;;AAAiE;AAExB;AACa;AACL;AACD;AACF;AAEvC,MAAMO,aAAaA,iBAAGP,UAAUA,CACrC,CAACQ,GAAGC;IACF,MAAM,EAAEC,gBAAgB,EAAEC,aAAa,EAAE,GAAGV,UAAUA,CAACE,cAAcA;IAErE,MAAMS,qBAAqB;QACzBD,cAAc;IAChB;IAEA,MAAME,eAAeH,iBACnBR,sCAAsC;IAGxC,IAAIW,cAAc;QAChB,qBACE,IAAC;YAAI,IAAIT,yBAAyB;YAAE,KAAKK;sBACvC,kBAACI;gBAAa,cAAcD;;;IAGlC;IAEA,qBACE,IAACN,mBAAmBA;QAAC,IAAIF,yBAAyB;QAAE,KAAKK;kBACvD,kBAACJ,aAAaA;;AAGpB,GACD;AAEDE,aAAaA,CAAC,WAAW,GAAG"}
|