@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
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MultichannelButton = void 0;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const core_1 = require("@botonic/core");
|
|
6
|
-
const react_1 = require("react");
|
|
7
|
-
const contexts_1 = require("../../contexts");
|
|
8
|
-
const util_1 = require("../../util");
|
|
9
|
-
const index_1 = require("../button/index");
|
|
10
|
-
const constants_1 = require("../constants");
|
|
11
|
-
const multichannel_context_1 = require("./multichannel-context");
|
|
12
|
-
const constants_2 = require("./whatsapp/constants");
|
|
13
|
-
const MultichannelButton = props => {
|
|
14
|
-
const requestContext = (0, react_1.useContext)(contexts_1.RequestContext);
|
|
15
|
-
const multichannelContext = (0, react_1.useContext)(multichannel_context_1.MultichannelContext);
|
|
16
|
-
const hasUrl = () => Boolean(props.url);
|
|
17
|
-
const hasPath = () => Boolean(props.path);
|
|
18
|
-
const hasPayload = () => Boolean(props.payload);
|
|
19
|
-
const hasPostback = () => hasPath() || hasPayload();
|
|
20
|
-
const hasWebview = () => Boolean(props.webview);
|
|
21
|
-
const getUrl = () => props.url;
|
|
22
|
-
const _getWebview = () => props.webview;
|
|
23
|
-
const increaseCurrentIndex = () => {
|
|
24
|
-
if (typeof multichannelContext.currentIndex === 'number') {
|
|
25
|
-
multichannelContext.currentIndex += 1;
|
|
26
|
-
}
|
|
27
|
-
else if (typeof multichannelContext.currentIndex === 'string') {
|
|
28
|
-
const lastChar = multichannelContext.currentIndex.charCodeAt(multichannelContext.currentIndex.length - 1);
|
|
29
|
-
multichannelContext.currentIndex = String.fromCharCode(lastChar + 1);
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
const formatIndex = index => {
|
|
33
|
-
const boldIndex = multichannelContext.boldIndex ?? false;
|
|
34
|
-
return boldIndex ? `*${index}*` : index;
|
|
35
|
-
};
|
|
36
|
-
const getText = () => {
|
|
37
|
-
let text = props.children;
|
|
38
|
-
const newline = props.newline || '';
|
|
39
|
-
const separator = multichannelContext.indexSeparator || ' ';
|
|
40
|
-
const index = multichannelContext.currentIndex
|
|
41
|
-
? `${formatIndex(multichannelContext.currentIndex + separator)} `
|
|
42
|
-
: '';
|
|
43
|
-
if (hasPostback()) {
|
|
44
|
-
text = `${newline}${index}${text}`;
|
|
45
|
-
}
|
|
46
|
-
else if (hasUrl()) {
|
|
47
|
-
text = `${newline}- ${text}`;
|
|
48
|
-
}
|
|
49
|
-
return text;
|
|
50
|
-
};
|
|
51
|
-
if ((0, core_1.isWhatsapp)(requestContext.session)) {
|
|
52
|
-
const asText = props.asText ?? true;
|
|
53
|
-
if (asText) {
|
|
54
|
-
if (hasUrl()) {
|
|
55
|
-
return `${getText()}: ${getUrl()}`;
|
|
56
|
-
}
|
|
57
|
-
else if (hasPath() || hasPayload()) {
|
|
58
|
-
const text = getText();
|
|
59
|
-
increaseCurrentIndex();
|
|
60
|
-
return `${text}`;
|
|
61
|
-
}
|
|
62
|
-
else if (hasWebview()) {
|
|
63
|
-
return (0, jsx_runtime_1.jsx)(index_1.Button, { ...props, children: getText() });
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
return ((0, jsx_runtime_1.jsx)(index_1.Button, { ...props, children: (0, util_1.truncateText)(props.children, constants_2.WHATSAPP_MAX_BUTTON_CHARS) }));
|
|
67
|
-
}
|
|
68
|
-
return (0, jsx_runtime_1.jsx)(index_1.Button, { ...props, children: props.children });
|
|
69
|
-
};
|
|
70
|
-
exports.MultichannelButton = MultichannelButton;
|
|
71
|
-
exports.MultichannelButton.displayName = constants_1.COMPONENT_DISPLAY_NAMES.MultichannelButton;
|
|
72
|
-
//# sourceMappingURL=multichannel-button.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"multichannel-button.js","sourceRoot":"","sources":["../../../../src/components/multichannel/multichannel-button.jsx"],"names":[],"mappings":";;;;AAAA,wCAA0C;AAC1C,iCAAkC;AAElC,6CAA+C;AAC/C,qCAAyC;AACzC,2CAAwC;AACxC,4CAAsD;AACtD,iEAA4D;AAC5D,oDAAgE;AAEzD,MAAM,kBAAkB,GAAG,KAAK,CAAC,EAAE;IACxC,MAAM,cAAc,GAAG,IAAA,kBAAU,EAAC,yBAAc,CAAC,CAAA;IACjD,MAAM,mBAAmB,GAAG,IAAA,kBAAU,EAAC,0CAAmB,CAAC,CAAA;IAE3D,MAAM,MAAM,GAAG,GAAG,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC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AC;IACD,OAAO,uBAAC,cAAM,OAAK,KAAK,YAAG,KAAK,CAAC,QAAQ,GAAU,CAAA;AACrD,CAAC,CAAA;AApEY,QAAA,kBAAkB,sBAoE9B;AAED,0BAAkB,CAAC,WAAW,GAAG,mCAAuB,CAAC,kBAAkB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export function MultichannelCarousel(props: any): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MultichannelCarousel = void 0;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const core_1 = require("@botonic/core");
|
|
6
|
-
const react_1 = require("react");
|
|
7
|
-
const contexts_1 = require("../../contexts");
|
|
8
|
-
const index_1 = require("../button/index");
|
|
9
|
-
const carousel_1 = require("../carousel");
|
|
10
|
-
const image_1 = require("../image");
|
|
11
|
-
const text_1 = require("../text");
|
|
12
|
-
const whatsapp_cta_url_button_1 = require("../whatsapp-cta-url-button");
|
|
13
|
-
const multichannel_utils_1 = require("./multichannel-utils");
|
|
14
|
-
const markdown_meta_1 = require("./whatsapp/markdown-meta");
|
|
15
|
-
const MultichannelCarousel = props => {
|
|
16
|
-
const requestContext = (0, react_1.useContext)(contexts_1.RequestContext);
|
|
17
|
-
if ((0, core_1.isDev)(requestContext.session) || (0, core_1.isWebchat)(requestContext.session)) {
|
|
18
|
-
return (0, jsx_runtime_1.jsx)(carousel_1.Carousel, { ...props, children: props.children });
|
|
19
|
-
}
|
|
20
|
-
const messages = [];
|
|
21
|
-
const childrenElements = props.children.map(e => e.props.children);
|
|
22
|
-
childrenElements.forEach((element, i) => {
|
|
23
|
-
const { imageProps, title, subtitle, buttons } = parseCarouselElement(element);
|
|
24
|
-
const textMessage = getTextMessage(requestContext.session, title, subtitle);
|
|
25
|
-
if (imageProps?.src) {
|
|
26
|
-
const messageWithImage = (0, jsx_runtime_1.jsx)(image_1.Image, { src: imageProps.src });
|
|
27
|
-
messages.push(messageWithImage);
|
|
28
|
-
}
|
|
29
|
-
if ((0, core_1.isWhatsapp)(requestContext.session) &&
|
|
30
|
-
buttons.some(button => button.url)) {
|
|
31
|
-
const messageWithButtonUrl = ((0, jsx_runtime_1.jsx)(whatsapp_cta_url_button_1.WhatsappCTAUrlButton, { body: title, footer: `_${subtitle}_`, displayText: buttons[0].text, url: buttons[0].url }, `carousel-element-${i}-cta-url`));
|
|
32
|
-
messages.push(messageWithButtonUrl);
|
|
33
|
-
}
|
|
34
|
-
const messageWithButtons = buttons.some(button => button.payload) ? ((0, jsx_runtime_1.jsxs)(text_1.Text, { children: [textMessage, buttons
|
|
35
|
-
.filter(button => (0, core_1.isWhatsapp)(requestContext.session) && !button.url)
|
|
36
|
-
.map(button => ((0, jsx_runtime_1.jsx)(index_1.Button, { payload: button.payload, url: button.url, children: button.text }, `carousel-element-${i}-button`)))] }, `carousel-element-${i}-text`)) : ([]);
|
|
37
|
-
messages.push(messageWithButtons);
|
|
38
|
-
});
|
|
39
|
-
return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: messages });
|
|
40
|
-
};
|
|
41
|
-
exports.MultichannelCarousel = MultichannelCarousel;
|
|
42
|
-
function getButtons(node) {
|
|
43
|
-
return [].concat((0, multichannel_utils_1.getFilteredElements)(node, multichannel_utils_1.isMultichannelButton));
|
|
44
|
-
}
|
|
45
|
-
function parseCarouselElement(element) {
|
|
46
|
-
let imageProps, title, subtitle;
|
|
47
|
-
const buttonsChildren = [];
|
|
48
|
-
for (const node of element) {
|
|
49
|
-
if ((0, multichannel_utils_1.isNodePic)(node)) {
|
|
50
|
-
imageProps = node.props;
|
|
51
|
-
}
|
|
52
|
-
if ((0, multichannel_utils_1.isNodeTitle)(node)) {
|
|
53
|
-
title = node.props.children;
|
|
54
|
-
}
|
|
55
|
-
if ((0, multichannel_utils_1.isNodeSubtitle)(node)) {
|
|
56
|
-
subtitle = node.props.children;
|
|
57
|
-
}
|
|
58
|
-
if ((0, multichannel_utils_1.isMultichannelButton)(node)) {
|
|
59
|
-
buttonsChildren.push(node);
|
|
60
|
-
}
|
|
61
|
-
if (Array.isArray(node)) {
|
|
62
|
-
buttonsChildren.push(...getButtons(node));
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
const buttons = buttonsChildren.map(button => {
|
|
66
|
-
return {
|
|
67
|
-
text: button.props.children,
|
|
68
|
-
payload: button.props.payload,
|
|
69
|
-
url: button.props.url,
|
|
70
|
-
};
|
|
71
|
-
});
|
|
72
|
-
return { imageProps, title, subtitle, buttons };
|
|
73
|
-
}
|
|
74
|
-
function getTextMessage(session, title, subtitle) {
|
|
75
|
-
const formattedTextMessage = `**${title}**${subtitle ? ` _${subtitle}_` : ''}`;
|
|
76
|
-
return (0, core_1.isWhatsapp)(session) || (0, core_1.isFacebook)(session) || (0, core_1.isInstagram)(session)
|
|
77
|
-
? (0, markdown_meta_1.convertToMarkdownMeta)(formattedTextMessage)
|
|
78
|
-
: formattedTextMessage;
|
|
79
|
-
}
|
|
80
|
-
//# sourceMappingURL=multichannel-carousel.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"multichannel-carousel.js","sourceRoot":"","sources":["../../../../src/components/multichannel/multichannel-carousel.jsx"],"names":[],"mappings":";;;;AAAA,wCAMsB;AACtB,iCAAkC;AAElC,6CAA+C;AAC/C,2CAAwC;AACxC,0CAAsC;AACtC,oCAAgC;AAChC,kCAA8B;AAC9B,wEAAiE;AACjE,6DAM6B;AAC7B,4DAAgE;AAEzD,MAAM,oBAAoB,GAAG,KAAK,CAAC,EAAE;IAC1C,MAAM,cAAc,GAAG,IAAA,kBAAU,EAAC,yBAAc,CAAC,CAAA;IAEjD,IAAI,IAAA,YAAK,EAAC,cAAc,CAAC,OAAO,CAAC,IAAI,IAAA,gBAAS,EAAC,cAAc,CAAC,OAAO,CAAC,EAAE,CAAC;QACvE,OA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
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
|
-
exports.MultichannelContext = react_1.default.createContext({
|
|
7
|
-
boldIndex: true,
|
|
8
|
-
text: {
|
|
9
|
-
indexMode: 'letter',
|
|
10
|
-
},
|
|
11
|
-
indexSeparator: '.',
|
|
12
|
-
});
|
|
13
|
-
//# sourceMappingURL=multichannel-context.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"multichannel-context.js","sourceRoot":"","sources":["../../../../src/components/multichannel/multichannel-context.jsx"],"names":[],"mappings":";;;;AAAA,0DAAyB;AAEZ,QAAA,mBAAmB,GAAG,eAAK,CAAC,aAAa,CAAC;IACrD,SAAS,EAAE,IAAI;IACf,IAAI,EAAE;QACJ,SAAS,EAAE,QAAQ;KACpB;IACD,cAAc,EAAE,GAAG;CACpB,CAAC,CAAA"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MultichannelReply = void 0;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const core_1 = require("@botonic/core");
|
|
6
|
-
const react_1 = require("react");
|
|
7
|
-
const contexts_1 = require("../../contexts");
|
|
8
|
-
const constants_1 = require("../constants");
|
|
9
|
-
const reply_1 = require("../reply");
|
|
10
|
-
const MultichannelReply = props => {
|
|
11
|
-
const requestContext = (0, react_1.useContext)(contexts_1.RequestContext);
|
|
12
|
-
const hasPath = () => Boolean(props.path);
|
|
13
|
-
const hasPayload = () => Boolean(props.payload);
|
|
14
|
-
const getText = () => `${props.children}`;
|
|
15
|
-
if ((0, core_1.isWhatsapp)(requestContext.session)) {
|
|
16
|
-
if (hasPath() || hasPayload()) {
|
|
17
|
-
return `${getText()}`;
|
|
18
|
-
}
|
|
19
|
-
return null;
|
|
20
|
-
}
|
|
21
|
-
else {
|
|
22
|
-
return (0, jsx_runtime_1.jsx)(reply_1.Reply, { ...props, children: props.children });
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
exports.MultichannelReply = MultichannelReply;
|
|
26
|
-
exports.MultichannelReply.displayName = constants_1.COMPONENT_DISPLAY_NAMES.MultichannelReply;
|
|
27
|
-
//# sourceMappingURL=multichannel-reply.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"multichannel-reply.js","sourceRoot":"","sources":["../../../../src/components/multichannel/multichannel-reply.jsx"],"names":[],"mappings":";;;;AAAA,wCAA0C;AAC1C,iCAAkC;AAElC,6CAA+C;AAC/C,4CAAsD;AACtD,oCAAgC;AAEzB,MAAM,iBAAiB,GAAG,KAAK,CAAC,EAAE;IACvC,MAAM,cAAc,GAAG,IAAA,kBAAU,EAAC,yBAAc,CAAC,CAAA;IACjD,MAAM,OAAO,GAAG,GAAG,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;IACzC,MAAM,UAAU,GAAG,GAAG,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,CAAA;IAC/C,MAAM,OAAO,GAAG,GAAG,EAAE,CAAC,GAAG,KAAK,CAAC,QAAQ,EAAE,CAAA;IAEzC,IAAI,IAAA,iBAAU,EAAC,cAAc,CAAC,OAAO,CAAC,EAAE,CAAC;QACvC,IAAI,OAAO,EAAE,IAAI,UAAU,EAAE,EAAE,CAAC;YAC9B,OAAO,GAAG,OAAO,EAAE,EAAE,CAAA;QACvB,CAAC;QACD,OAAO,IAAI,CAAA;IACb,CAAC;SAAM,CAAC;QACN,OAAO,uBAAC,aAAK,OAAK,KAAK,YAAG,KAAK,CAAC,QAAQ,GAAS,CAAA;IACnD,CAAC;AACH,CAAC,CAAA;AAdY,QAAA,iBAAiB,qBAc7B;AAED,yBAAiB,CAAC,WAAW,GAAG,mCAAuB,CAAC,iBAAiB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export function MultichannelText(props: any): never[] | import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,184 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MultichannelText = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
6
|
-
/* eslint-disable complexity */
|
|
7
|
-
const core_1 = require("@botonic/core");
|
|
8
|
-
const react_1 = tslib_1.__importStar(require("react"));
|
|
9
|
-
const contexts_1 = require("../../contexts");
|
|
10
|
-
const __1 = require("..");
|
|
11
|
-
const reply_1 = require("../reply");
|
|
12
|
-
const text_1 = require("../text");
|
|
13
|
-
const facebook_1 = require("./facebook/facebook");
|
|
14
|
-
const multichannel_button_1 = require("./multichannel-button");
|
|
15
|
-
const multichannel_context_1 = require("./multichannel-context");
|
|
16
|
-
const multichannel_utils_1 = require("./multichannel-utils");
|
|
17
|
-
const constants_1 = require("./whatsapp/constants");
|
|
18
|
-
const markdown_meta_1 = require("./whatsapp/markdown-meta");
|
|
19
|
-
const MultichannelText = props => {
|
|
20
|
-
const requestContext = (0, react_1.useContext)(contexts_1.RequestContext);
|
|
21
|
-
const multichannelContext = (0, react_1.useContext)(multichannel_context_1.MultichannelContext);
|
|
22
|
-
const postbackButtonsAsText = props.buttonsAsText ?? true;
|
|
23
|
-
let elements = [];
|
|
24
|
-
const getText = children => {
|
|
25
|
-
children = Array.isArray(children) ? children : [children];
|
|
26
|
-
const text = children
|
|
27
|
-
.filter(e => e && !e.type)
|
|
28
|
-
.map(e => {
|
|
29
|
-
if (Array.isArray(e)) {
|
|
30
|
-
return getText(e);
|
|
31
|
-
}
|
|
32
|
-
else {
|
|
33
|
-
return String(e);
|
|
34
|
-
}
|
|
35
|
-
})
|
|
36
|
-
.join('');
|
|
37
|
-
if (text === undefined) {
|
|
38
|
-
return [];
|
|
39
|
-
}
|
|
40
|
-
return [text].filter(t => t !== ''); // to avoid line breaks when the carousel doesn't have title or subtitle
|
|
41
|
-
};
|
|
42
|
-
const getButtonsAndReplies = () => [].concat((0, multichannel_utils_1.getMultichannelButtons)(react_1.default.Children.toArray(props.children)), (0, multichannel_utils_1.getMultichannelReplies)(react_1.default.Children.toArray(props.children)));
|
|
43
|
-
const getWhatsappButtons = () => {
|
|
44
|
-
const postbackButtons = [];
|
|
45
|
-
const urlButtons = [];
|
|
46
|
-
const webviewButtons = [];
|
|
47
|
-
for (const button of getButtonsAndReplies()) {
|
|
48
|
-
if ((0, multichannel_utils_1.elementHasUrl)(button)) {
|
|
49
|
-
urlButtons.push(button);
|
|
50
|
-
}
|
|
51
|
-
else if ((0, multichannel_utils_1.elementHasWebview)(button)) {
|
|
52
|
-
webviewButtons.push(button);
|
|
53
|
-
}
|
|
54
|
-
else if ((0, multichannel_utils_1.elementHasPostback)(button)) {
|
|
55
|
-
postbackButtons.push(button);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
return { postbackButtons, urlButtons, webviewButtons };
|
|
59
|
-
};
|
|
60
|
-
const getDefaultIndex = () => {
|
|
61
|
-
if (props.indexMode === undefined) {
|
|
62
|
-
return undefined;
|
|
63
|
-
}
|
|
64
|
-
if (multichannelContext.currentIndex != null) {
|
|
65
|
-
return multichannelContext.currentIndex;
|
|
66
|
-
}
|
|
67
|
-
return props.indexMode === 'letter' ? 'a' : 1;
|
|
68
|
-
};
|
|
69
|
-
const regenerateMultichannelButtons = (newLineFirstButton = true) => {
|
|
70
|
-
const generator = (multichannelButton, i) => {
|
|
71
|
-
const type = (0, multichannel_utils_1.getButtonType)(multichannelButton);
|
|
72
|
-
const asText = type === multichannel_utils_1.buttonTypes.POSTBACK ? postbackButtonsAsText : true;
|
|
73
|
-
const newline = multichannelContext.messageSeparator == null &&
|
|
74
|
-
!newLineFirstButton &&
|
|
75
|
-
i === 0
|
|
76
|
-
? ''
|
|
77
|
-
: '\n';
|
|
78
|
-
return ((0, jsx_runtime_1.jsx)(multichannel_button_1.MultichannelButton, { newline: newline, asText: asText, ...multichannelButton.props, children: multichannelButton.props.children }, `${type}${i}`));
|
|
79
|
-
};
|
|
80
|
-
return generator;
|
|
81
|
-
};
|
|
82
|
-
const splitInWhatsappListButtons = postbackButtons => {
|
|
83
|
-
const messages = [];
|
|
84
|
-
for (let i = 0; i < postbackButtons.length; i += constants_1.WHATSAPP_LIST_MAX_BUTTONS) {
|
|
85
|
-
messages.push(postbackButtons.slice(i, i + constants_1.WHATSAPP_LIST_MAX_BUTTONS));
|
|
86
|
-
}
|
|
87
|
-
return messages;
|
|
88
|
-
};
|
|
89
|
-
if ((0, core_1.isWhatsapp)(requestContext.session)) {
|
|
90
|
-
const texts = getText(props.children);
|
|
91
|
-
const { postbackButtons, urlButtons, webviewButtons } = getWhatsappButtons();
|
|
92
|
-
const textElements = texts.map(text => {
|
|
93
|
-
const textWithMarkdown = (0, markdown_meta_1.convertToMarkdownMeta)(text);
|
|
94
|
-
return (props.newline || '') + textWithMarkdown;
|
|
95
|
-
});
|
|
96
|
-
const webviewButtonElements = webviewButtons.map(regenerateMultichannelButtons(false));
|
|
97
|
-
const buttonsTextSeparator = props.buttonsTextSeparator || constants_1.DEFAULT_WHATSAPP_MAX_BUTTON_SEPARATOR;
|
|
98
|
-
const exceedWhatsAppMaxButtonNumber = !postbackButtonsAsText && postbackButtons.length > constants_1.WHATSAPP_MAX_BUTTONS;
|
|
99
|
-
if (exceedWhatsAppMaxButtonNumber) {
|
|
100
|
-
const menuButtonTextWhatsappList = props.menuButtonTextWhatsappList || constants_1.MENU_BUTTON_WHATSAPP_BUTTON_LIST;
|
|
101
|
-
const urlButtonElements = urlButtons.map(regenerateMultichannelButtons(!!texts.length));
|
|
102
|
-
const postbackButtonElements = postbackButtons.map(regenerateMultichannelButtons(!!texts.length || !!urlButtons.length));
|
|
103
|
-
const messagesPostbackButtonList = splitInWhatsappListButtons(postbackButtonElements);
|
|
104
|
-
const messages = messagesPostbackButtonList.map((postbackButtons, index) => {
|
|
105
|
-
if (postbackButtons.length <= constants_1.WHATSAPP_MAX_BUTTONS) {
|
|
106
|
-
return {
|
|
107
|
-
type: core_1.INPUT.TEXT,
|
|
108
|
-
children: [...buttonsTextSeparator, ...postbackButtons],
|
|
109
|
-
};
|
|
110
|
-
}
|
|
111
|
-
const rows = postbackButtons.map(postbackButton => {
|
|
112
|
-
const row = {
|
|
113
|
-
id: postbackButton.props.path
|
|
114
|
-
? `__PATH_PAYLOAD__${postbackButton.props.path}`
|
|
115
|
-
: postbackButton.props.payload,
|
|
116
|
-
title: postbackButton.props.children,
|
|
117
|
-
};
|
|
118
|
-
return row;
|
|
119
|
-
});
|
|
120
|
-
const whatsAppButtonListProps = {
|
|
121
|
-
body: index === 0 ? texts.join('') : buttonsTextSeparator,
|
|
122
|
-
button: menuButtonTextWhatsappList,
|
|
123
|
-
sections: [{ rows }],
|
|
124
|
-
};
|
|
125
|
-
return {
|
|
126
|
-
type: core_1.INPUT.WHATSAPP_BUTTON_LIST,
|
|
127
|
-
props: whatsAppButtonListProps,
|
|
128
|
-
};
|
|
129
|
-
});
|
|
130
|
-
const messageWithUrlButtonElements = ((0, jsx_runtime_1.jsx)(text_1.Text, { ...constants_1.MULTICHANNEL_WHATSAPP_PROPS, ...props, children: urlButtonElements }, `msg-with-url-button`));
|
|
131
|
-
const messageWithWebviewButtonElements = ((0, jsx_runtime_1.jsxs)(text_1.Text, { ...constants_1.MULTICHANNEL_WHATSAPP_PROPS, ...props, children: [buttonsTextSeparator, webviewButtonElements] }, `msg-with-webview-button`));
|
|
132
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [messages.map((message, i) => {
|
|
133
|
-
if (message.type === core_1.INPUT.WHATSAPP_BUTTON_LIST) {
|
|
134
|
-
return ((0, jsx_runtime_1.jsx)(__1.WhatsappButtonList, { ...message.props }, `msg-${i}-whatsapp-list`));
|
|
135
|
-
}
|
|
136
|
-
return ((0, jsx_runtime_1.jsx)(text_1.Text, { ...constants_1.MULTICHANNEL_WHATSAPP_PROPS, ...props, children: message.children }, `msg-${i}-with-postback-buttons`));
|
|
137
|
-
}), urlButtonElements.length > 0 && messageWithUrlButtonElements, webviewButtonElements.length > 0 && messageWithWebviewButtonElements] }));
|
|
138
|
-
}
|
|
139
|
-
multichannelContext.currentIndex = getDefaultIndex();
|
|
140
|
-
const postbackButtonElements = postbackButtons.map(regenerateMultichannelButtons(!!texts.length));
|
|
141
|
-
const urlButtonElements = urlButtons.map(regenerateMultichannelButtons(!!texts.length || !!postbackButtons.length));
|
|
142
|
-
elements = [].concat([...textElements], [...postbackButtonElements], [...urlButtonElements]);
|
|
143
|
-
if (postbackButtonElements.length === 0) {
|
|
144
|
-
// Use texts[0] instead of textElements[0] as a body to avoid apply the markdownMeta function twice.
|
|
145
|
-
// If the markdownMeta function is applied twice, bold is replaced by italics.
|
|
146
|
-
const body = texts[0] || '';
|
|
147
|
-
if (urlButtonElements.length === 1) {
|
|
148
|
-
return ((0, jsx_runtime_1.jsx)(__1.WhatsappCTAUrlButton, { body: body, displayText: urlButtonElements[0].props.children, url: urlButtonElements[0].props.url }));
|
|
149
|
-
}
|
|
150
|
-
if (webviewButtonElements.length === 1) {
|
|
151
|
-
return ((0, jsx_runtime_1.jsx)(__1.WhatsappCTAUrlButton, { body: body, displayText: webviewButtonElements[0].props.children, webview: webviewButtonElements[0].props.webview, params: webviewButtonElements[0].props.params }));
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
if (multichannelContext.messageSeparator != null) {
|
|
155
|
-
return elements;
|
|
156
|
-
}
|
|
157
|
-
const messages = [
|
|
158
|
-
(0, jsx_runtime_1.jsx)(text_1.Text, { ...constants_1.MULTICHANNEL_WHATSAPP_PROPS, ...props, children: elements }, 0),
|
|
159
|
-
];
|
|
160
|
-
if (webviewButtonElements.length) {
|
|
161
|
-
messages.push((0, jsx_runtime_1.jsxs)(text_1.Text, { ...constants_1.MULTICHANNEL_WHATSAPP_PROPS, ...props, children: [buttonsTextSeparator, webviewButtonElements] }, 1));
|
|
162
|
-
}
|
|
163
|
-
return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: messages });
|
|
164
|
-
}
|
|
165
|
-
if ((0, core_1.isFacebook)(requestContext.session) ||
|
|
166
|
-
(0, core_1.isInstagram)(requestContext.session)) {
|
|
167
|
-
const text = getText(props.children);
|
|
168
|
-
const multichannelFacebook = new facebook_1.MultichannelFacebook();
|
|
169
|
-
const { texts, propsLastText, propsWithoutChildren } = multichannelFacebook.convertText(props, text[0]);
|
|
170
|
-
const [lastText, ...buttonsAndReplies] = propsLastText.children;
|
|
171
|
-
const replies = [];
|
|
172
|
-
if (buttonsAndReplies.length > 3) {
|
|
173
|
-
buttonsAndReplies.forEach(button => {
|
|
174
|
-
if ((0, multichannel_utils_1.isNodeButton)(button)) {
|
|
175
|
-
replies.push((0, jsx_runtime_1.jsx)(reply_1.Reply, { ...button.props }));
|
|
176
|
-
}
|
|
177
|
-
});
|
|
178
|
-
}
|
|
179
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [texts?.map((message, i) => ((0, jsx_runtime_1.jsx)(text_1.Text, { ...propsWithoutChildren, children: (0, markdown_meta_1.convertToMarkdownMeta)(message) }, `msg-${i}-text`))), (0, jsx_runtime_1.jsxs)(text_1.Text, { ...propsLastText, children: [(0, markdown_meta_1.convertToMarkdownMeta)(lastText), replies.length > 0 ? replies : buttonsAndReplies] })] }));
|
|
180
|
-
}
|
|
181
|
-
return (0, jsx_runtime_1.jsx)(text_1.Text, { ...props, children: props.children });
|
|
182
|
-
};
|
|
183
|
-
exports.MultichannelText = MultichannelText;
|
|
184
|
-
//# sourceMappingURL=multichannel-text.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"multichannel-text.js","sourceRoot":"","sources":["../../../../src/components/multichannel/multichannel-text.jsx"],"names":[],"mappings":";;;;;AAAA,+BAA+B;AAC/B,wCAA0E;AAC1E,uDAA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G,EAAE,CAAA;QAElB,IAAI,iBAAiB,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACjC,iBAAiB,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE;gBACjC,IAAI,IAAA,iCAAY,EAAC,MAAM,CAAC,EAAE,CAAC;oBACzB,OAAO,CAAC,IAAI,CAAC,uBAAC,aAAK,OAAK,MAAM,CAAC,KAAK,GAAI,CAAC,CAAA;gBAC3C,CAAC;YACH,CAAC,CAAC,CAAA;QACJ,CAAC;QAED,OAAO,CACL,6DACG,KAAK,EAAE,GAAG,CAAC,CAAC,OAAO,EAAE,CAAC,EAAE,EAAE,CAAC,CAC1B,uBAAC,WAAI,OAA2B,oBAAoB,YACjD,IAAA,qCAAqB,EAAC,OAAO,CAAC,IADtB,OAAO,CAAC,OAAO,CAEnB,CACR,CAAC,EACF,wBAAC,WAAI,OAAK,aAAa,aACpB,IAAA,qCAAqB,EAAC,QAAQ,CAAC,EAC/B,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,iBAAiB,IAC5C,IACN,CACJ,CAAA;IACH,CAAC;IAED,OAAO,uBAAC,WAAI,OAAK,KAAK,YAAG,KAAK,CAAC,QAAQ,GAAQ,CAAA;AACjD,CAAC,CAAA;AAhTY,QAAA,gBAAgB,oBAgT5B"}
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.buttonTypes = void 0;
|
|
4
|
-
exports.isMultichannelButton = isMultichannelButton;
|
|
5
|
-
exports.isMultichannelReply = isMultichannelReply;
|
|
6
|
-
exports.isNodeText = isNodeText;
|
|
7
|
-
exports.isNodeButton = isNodeButton;
|
|
8
|
-
exports.isNodeCarousel = isNodeCarousel;
|
|
9
|
-
exports.isNodeReply = isNodeReply;
|
|
10
|
-
exports.isNodePic = isNodePic;
|
|
11
|
-
exports.isNodeTitle = isNodeTitle;
|
|
12
|
-
exports.isNodeSubtitle = isNodeSubtitle;
|
|
13
|
-
exports.elementHasUrl = elementHasUrl;
|
|
14
|
-
exports.elementHasPostback = elementHasPostback;
|
|
15
|
-
exports.elementHasWebview = elementHasWebview;
|
|
16
|
-
exports.getButtonType = getButtonType;
|
|
17
|
-
exports.getFilteredElements = getFilteredElements;
|
|
18
|
-
exports.getMultichannelButtons = getMultichannelButtons;
|
|
19
|
-
exports.getMultichannelReplies = getMultichannelReplies;
|
|
20
|
-
const constants_1 = require("../constants");
|
|
21
|
-
function isMultichannelButton(node) {
|
|
22
|
-
return node?.type?.displayName === constants_1.COMPONENT_DISPLAY_NAMES.MultichannelButton;
|
|
23
|
-
}
|
|
24
|
-
function isMultichannelReply(node) {
|
|
25
|
-
return node?.type?.displayName === constants_1.COMPONENT_DISPLAY_NAMES.MultichannelReply;
|
|
26
|
-
}
|
|
27
|
-
function isNodeText(node) {
|
|
28
|
-
return node?.type?.displayName === constants_1.COMPONENT_DISPLAY_NAMES.Text;
|
|
29
|
-
}
|
|
30
|
-
function isNodeButton(node) {
|
|
31
|
-
return node?.type?.displayName === constants_1.COMPONENT_DISPLAY_NAMES.Button;
|
|
32
|
-
}
|
|
33
|
-
function isNodeCarousel(node) {
|
|
34
|
-
return node?.type?.displayName === constants_1.COMPONENT_DISPLAY_NAMES.Carousel;
|
|
35
|
-
}
|
|
36
|
-
function isNodeReply(node) {
|
|
37
|
-
return node?.type?.displayName === constants_1.COMPONENT_DISPLAY_NAMES.Reply;
|
|
38
|
-
}
|
|
39
|
-
function isNodePic(node) {
|
|
40
|
-
return node?.type?.displayName === constants_1.COMPONENT_DISPLAY_NAMES.Pic;
|
|
41
|
-
}
|
|
42
|
-
function isNodeTitle(node) {
|
|
43
|
-
return node?.type?.displayName === constants_1.COMPONENT_DISPLAY_NAMES.Title;
|
|
44
|
-
}
|
|
45
|
-
function isNodeSubtitle(node) {
|
|
46
|
-
return node?.type?.displayName === constants_1.COMPONENT_DISPLAY_NAMES.Subtitle;
|
|
47
|
-
}
|
|
48
|
-
function elementHasUrl(element) {
|
|
49
|
-
return element?.props?.url;
|
|
50
|
-
}
|
|
51
|
-
function elementHasPostback(element) {
|
|
52
|
-
return element?.props?.payload || element?.props?.path;
|
|
53
|
-
}
|
|
54
|
-
function elementHasWebview(element) {
|
|
55
|
-
return element?.props?.webview;
|
|
56
|
-
}
|
|
57
|
-
exports.buttonTypes = {
|
|
58
|
-
POSTBACK: 'postback',
|
|
59
|
-
URL: 'url',
|
|
60
|
-
WEBVIEW: 'webview',
|
|
61
|
-
};
|
|
62
|
-
function getButtonType(multichannelButton) {
|
|
63
|
-
if (elementHasUrl(multichannelButton)) {
|
|
64
|
-
return exports.buttonTypes.URL;
|
|
65
|
-
}
|
|
66
|
-
if (elementHasPostback(multichannelButton)) {
|
|
67
|
-
return exports.buttonTypes.POSTBACK;
|
|
68
|
-
}
|
|
69
|
-
if (elementHasWebview(multichannelButton)) {
|
|
70
|
-
return exports.buttonTypes.WEBVIEW;
|
|
71
|
-
}
|
|
72
|
-
return undefined;
|
|
73
|
-
}
|
|
74
|
-
function getFilteredElements(node, filter) {
|
|
75
|
-
const elements = [];
|
|
76
|
-
for (const n of node) {
|
|
77
|
-
if (filter(n)) {
|
|
78
|
-
elements.push(n);
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
return elements;
|
|
82
|
-
}
|
|
83
|
-
function getMultichannelButtons(node) {
|
|
84
|
-
return getFilteredElements(node, isMultichannelButton);
|
|
85
|
-
}
|
|
86
|
-
function getMultichannelReplies(node) {
|
|
87
|
-
return getFilteredElements(node, isMultichannelReply);
|
|
88
|
-
}
|
|
89
|
-
//# sourceMappingURL=multichannel-utils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"multichannel-utils.js","sourceRoot":"","sources":["../../../../src/components/multichannel/multichannel-utils.ts"],"names":[],"mappings":";;;AAiBA,oDAIC;AAED,kDAIC;AAED,gCAEC;AAED,oCAEC;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AsB,CACpC,IAA2C;IAE3C,OAAO,mBAAmB,CAAC,IAAI,EAAE,mBAAmB,CAAC,CAAA;AACvD,CAAC"}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Multichannel = void 0;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const react_1 = require("react");
|
|
6
|
-
const core_1 = require("@botonic/core");
|
|
7
|
-
const react_2 = require("react");
|
|
8
|
-
const contexts_1 = require("../../contexts");
|
|
9
|
-
const react_3 = require("../../util/react");
|
|
10
|
-
const text_1 = require("../text");
|
|
11
|
-
const multichannel_button_1 = require("./multichannel-button");
|
|
12
|
-
const multichannel_carousel_1 = require("./multichannel-carousel");
|
|
13
|
-
const multichannel_context_1 = require("./multichannel-context");
|
|
14
|
-
const multichannel_reply_1 = require("./multichannel-reply");
|
|
15
|
-
const multichannel_text_1 = require("./multichannel-text");
|
|
16
|
-
const multichannel_utils_1 = require("./multichannel-utils");
|
|
17
|
-
const constants_1 = require("./whatsapp/constants");
|
|
18
|
-
const Multichannel = props => {
|
|
19
|
-
const requestContext = (0, react_2.useContext)(contexts_1.RequestContext);
|
|
20
|
-
if (!(0, core_1.isWhatsapp)(requestContext.session) &&
|
|
21
|
-
!(0, core_1.isFacebook)(requestContext.session) &&
|
|
22
|
-
!(0, core_1.isInstagram)(requestContext.session)) {
|
|
23
|
-
return props.children;
|
|
24
|
-
}
|
|
25
|
-
if ((0, core_1.isFacebook)(requestContext.session) ||
|
|
26
|
-
(0, core_1.isInstagram)(requestContext.session)) {
|
|
27
|
-
const newChildren = (0, react_3.deepMapWithIndex)(props.children, child => {
|
|
28
|
-
if ((0, multichannel_utils_1.isNodeText)(child)) {
|
|
29
|
-
return ((0, react_1.createElement)(multichannel_text_1.MultichannelText, { ...child.props, key: child.key }, child.props.children));
|
|
30
|
-
}
|
|
31
|
-
return child;
|
|
32
|
-
});
|
|
33
|
-
return newChildren;
|
|
34
|
-
}
|
|
35
|
-
let newChildren = (0, react_3.deepMapWithIndex)(props.children, (child, index) => {
|
|
36
|
-
if ((0, multichannel_utils_1.isNodeButton)(child)) {
|
|
37
|
-
return ((0, react_1.createElement)(multichannel_button_1.MultichannelButton, { ...child.props, key: child.key }, child.props.children));
|
|
38
|
-
}
|
|
39
|
-
if ((0, multichannel_utils_1.isNodeReply)(child)) {
|
|
40
|
-
return ((0, react_1.createElement)(multichannel_reply_1.MultichannelReply, { ...child.props, key: child.key }, child.props.children));
|
|
41
|
-
}
|
|
42
|
-
if ((0, multichannel_utils_1.isNodeText)(child)) {
|
|
43
|
-
return ((0, react_1.createElement)(multichannel_text_1.MultichannelText, { ...child.props, ...props.text, key: child.key, ...(props.messageSeparator &&
|
|
44
|
-
index > 0 && { newline: props.messageSeparator }) }, child.props.children));
|
|
45
|
-
}
|
|
46
|
-
if ((0, multichannel_utils_1.isNodeCarousel)(child)) {
|
|
47
|
-
return ((0, react_1.createElement)(multichannel_carousel_1.MultichannelCarousel, { ...child.props, ...props.carousel, key: child.key }, child.props.children));
|
|
48
|
-
}
|
|
49
|
-
return child;
|
|
50
|
-
});
|
|
51
|
-
if (props.messageSeparator != null) {
|
|
52
|
-
newChildren = newChildren.map((c, index) => index > 0 && typeof c === 'string' ? props.messageSeparator + c : c);
|
|
53
|
-
newChildren = ((0, jsx_runtime_1.jsx)(text_1.Text, { ...constants_1.MULTICHANNEL_WHATSAPP_PROPS, children: newChildren }, props.key));
|
|
54
|
-
}
|
|
55
|
-
return ((0, jsx_runtime_1.jsx)(multichannel_context_1.MultichannelContext.Provider, { value: {
|
|
56
|
-
currentIndex: props.firstIndex,
|
|
57
|
-
boldIndex: props.boldIndex,
|
|
58
|
-
indexSeparator: props.indexSeparator,
|
|
59
|
-
messageSeparator: props.messageSeparator,
|
|
60
|
-
}, children: newChildren }));
|
|
61
|
-
};
|
|
62
|
-
exports.Multichannel = Multichannel;
|
|
63
|
-
//# sourceMappingURL=multichannel.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"multichannel.js","sourceRoot":"","sources":["../../../../src/components/multichannel/multichannel.jsx"],"names":[],"mappings":";;;;;AAAA,wCAAmE;AACnE,iCAAkC;AAElC,6CAA+C;AAC/C,4CAAmD;AACnD,kCAA8B;AAC9B,+DAA0D;AAC1D,mEAA8D;AAC9D,iEAA4D;AAC5D,6DAAwD;AACxD,2DAAsD;AACtD,6DAK6B;AAC7B,oDAAkE;AAE3D,MAAM,YAAY,GAAG,KAAK,CAAC,EAAE;IAClC,MAAM,cAAc,GAAG,IAAA,kBAAU,EAAC,yBAAc,CAAC,CAAA;IACjD,IACE,CAAC,IAAA,iBAAU,EAAC,cAAc,CAAC,OAAO,CAAC;QACnC,CAAC,IAAA,iBAAU,EAAC,cAAc,CAAC,OAAO,CAAC;QACnC,CAAC,IAAA,kBAAW,EAAC,cAAc,CAAC,OAAO,CAAC,EACpC,CAAC;QACD,OAAO,KAAK,CAAC,QAAQ,CAAA;IACvB,CAAC;IACD,IACE,IAAA,iBAAU,EAAC,cAAc,CAAC,OAAO,CAAC;QAClC,IAAA,kBAAW,EAAC,cAAc,CAAC,OAAO,CAAC,EACnC,CAAC;QACD,MAAM,WAAW,GAAG,IAAA,wBAAgB,EAAC,KAAK,CAAC,QAAQ,EAAE,KAAK,CAAC,EAAE;YAC3D,IAAI,IAAA,+BAAU,EAAC,KAAK,CAAC,EAAE,CAAC;gBACtB,OAAO,CACL,2BAAC,oCAAgB,OAAK,KAAK,CAAC,KAAK,EAAE,GAAG,EAAE,KAAK,CAAC,GAAG,IAC9C,KAAK,CAAC,KAAK,CAAC,QAAQ,CACJ,CACpB,CAAA;YACH,CAAC;YACD,OAAO,KAAK,CAAA;QACd,CAAC,CAAC,CAAA;QACF,OAAO,WAAW,CAAA;IACpB,CAAC;IAED,IAAI,WAAW,GAAG,IAAA,wBAAgB,EAAC,KAAK,CAAC,QAAQ,EAAE,CAA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GAAG,CAAC,IAAI,OAAO,CAAC,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,gBAAgB,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CACpE,CAAA;QACD,WAAW,GAAG,CACZ,uBAAC,WAAI,OAAqB,uCAA2B,YAClD,WAAW,IADH,KAAK,CAAC,GAAG,CAEb,CACR,CAAA;IACH,CAAC;IACD,OAAO,CACL,uBAAC,0CAAmB,CAAC,QAAQ,IAC3B,KAAK,EAAE;YACL,YAAY,EAAE,KAAK,CAAC,UAAU;YAC9B,SAAS,EAAE,KAAK,CAAC,SAAS;YAC1B,cAAc,EAAE,KAAK,CAAC,cAAc;YACpC,gBAAgB,EAAE,KAAK,CAAC,gBAAgB;SACzC,YAEA,WAAW,GACiB,CAChC,CAAA;AACH,CAAC,CAAA;AAzFY,QAAA,YAAY,gBAyFxB"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MENU_BUTTON_WHATSAPP_BUTTON_LIST = exports.DEFAULT_WHATSAPP_MAX_BUTTON_SEPARATOR = exports.WHATSAPP_MAX_FOOTER_CHARS = exports.WHATSAPP_MAX_CAROUSEL_CARD_TEXT_CHARS = exports.WHATSAPP_MAX_BODY_CHARS = exports.WHATSAPP_MAX_HEADER_CHARS = exports.WHATSAPP_MAX_BUTTON_CHARS = exports.WHATSAPP_LIST_MAX_BUTTONS = exports.WHATSAPP_MAX_BUTTONS = exports.MULTICHANNEL_WHATSAPP_PROPS = void 0;
|
|
4
|
-
exports.MULTICHANNEL_WHATSAPP_PROPS = { markdown: false };
|
|
5
|
-
exports.WHATSAPP_MAX_BUTTONS = 3;
|
|
6
|
-
exports.WHATSAPP_LIST_MAX_BUTTONS = 10;
|
|
7
|
-
exports.WHATSAPP_MAX_BUTTON_CHARS = 20;
|
|
8
|
-
exports.WHATSAPP_MAX_HEADER_CHARS = 60;
|
|
9
|
-
exports.WHATSAPP_MAX_BODY_CHARS = 1024;
|
|
10
|
-
exports.WHATSAPP_MAX_CAROUSEL_CARD_TEXT_CHARS = 160;
|
|
11
|
-
exports.WHATSAPP_MAX_FOOTER_CHARS = 60;
|
|
12
|
-
exports.DEFAULT_WHATSAPP_MAX_BUTTON_SEPARATOR = 'More options:';
|
|
13
|
-
exports.MENU_BUTTON_WHATSAPP_BUTTON_LIST = 'Show options';
|
|
14
|
-
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../src/components/multichannel/whatsapp/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,2BAA2B,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAA;AAEjD,QAAA,oBAAoB,GAAG,CAAC,CAAA;AACxB,QAAA,yBAAyB,GAAG,EAAE,CAAA;AAC9B,QAAA,yBAAyB,GAAG,EAAE,CAAA;AAC9B,QAAA,yBAAyB,GAAG,EAAE,CAAA;AAC9B,QAAA,uBAAuB,GAAG,IAAI,CAAA;AAC9B,QAAA,qCAAqC,GAAG,GAAG,CAAA;AAC3C,QAAA,yBAAyB,GAAG,EAAE,CAAA;AAC9B,QAAA,qCAAqC,GAAG,eAAe,CAAA;AACvD,QAAA,gCAAgC,GAAG,cAAc,CAAA"}
|