@botonic/react 0.25.0-alpha.0 → 0.25.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/app.js.map +1 -0
- package/lib/cjs/botonic-tester.js +68 -0
- package/lib/cjs/botonic-tester.js.map +1 -0
- package/lib/cjs/components/audio.d.ts +8 -0
- package/lib/cjs/components/audio.js +23 -0
- package/lib/cjs/components/audio.js.map +1 -0
- package/lib/cjs/components/button.js +157 -0
- package/lib/cjs/components/button.js.map +1 -0
- package/lib/cjs/components/buttons-disabler.js.map +1 -0
- package/lib/cjs/components/carousel.js +113 -0
- package/lib/cjs/components/carousel.js.map +1 -0
- package/lib/cjs/components/components.js.map +1 -0
- package/lib/cjs/components/custom-message.d.ts +12 -0
- package/lib/cjs/components/custom-message.js +64 -0
- package/lib/cjs/components/custom-message.js.map +1 -0
- package/lib/cjs/components/document.d.ts +8 -0
- package/lib/cjs/components/document.js +49 -0
- package/lib/cjs/components/document.js.map +1 -0
- package/lib/cjs/components/element.js +56 -0
- package/lib/cjs/components/element.js.map +1 -0
- package/lib/cjs/components/handoff.d.ts +1 -0
- package/lib/cjs/components/handoff.js +54 -0
- package/lib/cjs/components/handoff.js.map +1 -0
- package/lib/cjs/components/image.d.ts +8 -0
- package/lib/cjs/components/image.js +40 -0
- package/lib/cjs/components/image.js.map +1 -0
- package/lib/cjs/components/index-types.js.map +1 -0
- package/lib/cjs/components/index.js.map +1 -0
- package/lib/cjs/components/location.js +32 -0
- package/lib/cjs/components/location.js.map +1 -0
- package/lib/cjs/components/markdown.js.map +1 -0
- package/lib/cjs/components/message/index.js +163 -0
- package/lib/cjs/components/message/index.js.map +1 -0
- package/lib/cjs/components/message/message-image.js +26 -0
- package/lib/cjs/components/message/message-image.js.map +1 -0
- package/lib/cjs/components/message/styles.js.map +1 -0
- package/lib/cjs/components/message/timestamps.d.ts +13 -0
- package/lib/cjs/components/message/timestamps.js +45 -0
- package/lib/cjs/components/message/timestamps.js.map +1 -0
- package/lib/cjs/components/message-template.js +14 -0
- package/lib/cjs/components/message-template.js.map +1 -0
- package/lib/cjs/components/multichannel/facebook/facebook.js.map +1 -0
- package/lib/cjs/components/multichannel/index-types.js.map +1 -0
- package/lib/cjs/components/multichannel/index.js.map +1 -0
- package/lib/cjs/components/multichannel/multichannel-button.d.ts +1 -0
- package/lib/cjs/components/multichannel/multichannel-button.js +74 -0
- package/lib/cjs/components/multichannel/multichannel-button.js.map +1 -0
- package/lib/cjs/components/multichannel/multichannel-carousel.js +78 -0
- package/lib/cjs/components/multichannel/multichannel-carousel.js.map +1 -0
- package/lib/cjs/components/multichannel/multichannel-context.js.map +1 -0
- package/lib/cjs/components/multichannel/multichannel-reply.d.ts +1 -0
- package/lib/cjs/components/multichannel/multichannel-reply.js +25 -0
- package/lib/cjs/components/multichannel/multichannel-reply.js.map +1 -0
- package/lib/cjs/components/multichannel/multichannel-text.d.ts +1 -0
- package/lib/cjs/components/multichannel/multichannel-text.js +157 -0
- package/lib/cjs/components/multichannel/multichannel-text.js.map +1 -0
- package/lib/cjs/components/multichannel/multichannel-utils.js.map +1 -0
- package/lib/cjs/components/multichannel/multichannel.js +60 -0
- package/lib/cjs/components/multichannel/multichannel.js.map +1 -0
- package/lib/cjs/components/multichannel/whatsapp/markdown.js.map +1 -0
- package/lib/cjs/components/pic.js +30 -0
- package/lib/cjs/components/pic.js.map +1 -0
- package/lib/cjs/components/raw.d.ts +9 -0
- package/lib/cjs/components/raw.js +44 -0
- package/lib/cjs/components/raw.js.map +1 -0
- package/lib/cjs/components/reply.js +58 -0
- package/lib/cjs/components/reply.js.map +1 -0
- package/lib/cjs/components/share-button.js +14 -0
- package/lib/cjs/components/share-button.js.map +1 -0
- package/lib/cjs/components/subtitle.js +26 -0
- package/lib/cjs/components/subtitle.js.map +1 -0
- package/lib/cjs/components/text.js +51 -0
- package/lib/cjs/components/text.js.map +1 -0
- package/lib/cjs/components/title.js +22 -0
- package/lib/cjs/components/title.js.map +1 -0
- package/lib/cjs/components/video.d.ts +8 -0
- package/lib/cjs/components/video.js +31 -0
- package/lib/cjs/components/video.js.map +1 -0
- package/lib/cjs/components/webchat-settings.js +74 -0
- package/lib/cjs/components/webchat-settings.js.map +1 -0
- package/lib/cjs/components/whatsapp-button-list.js +26 -0
- package/lib/cjs/components/whatsapp-button-list.js.map +1 -0
- package/lib/cjs/components/whatsapp-template.js +25 -0
- package/lib/cjs/components/whatsapp-template.js.map +1 -0
- package/lib/cjs/constants.js.map +1 -0
- package/lib/cjs/contexts.js.map +1 -0
- package/lib/cjs/dev-app.js +79 -0
- package/lib/cjs/dev-app.js.map +1 -0
- package/lib/cjs/index-types.js.map +1 -0
- package/lib/cjs/index.js.map +1 -0
- package/lib/cjs/message-utils.js.map +1 -0
- package/lib/cjs/msg-to-botonic.js +140 -0
- package/lib/cjs/msg-to-botonic.js.map +1 -0
- package/lib/cjs/node-app.js.map +1 -0
- package/lib/cjs/react-bot.d.ts +8 -0
- package/lib/cjs/react-bot.js +38 -0
- package/lib/cjs/react-bot.js.map +1 -0
- package/lib/cjs/util/dom.js.map +1 -0
- package/lib/cjs/util/environment.js.map +1 -0
- package/lib/cjs/util/error-boundary.d.ts +7 -0
- package/lib/cjs/util/error-boundary.js +33 -0
- package/lib/cjs/util/error-boundary.js.map +1 -0
- package/lib/cjs/util/index.js.map +1 -0
- package/lib/cjs/util/logs.js.map +1 -0
- package/lib/cjs/util/objects.js.map +1 -0
- package/lib/cjs/util/react.js.map +1 -0
- package/lib/cjs/util/regexs.js.map +1 -0
- package/lib/cjs/util/webchat.js.map +1 -0
- package/lib/cjs/webchat/actions.js.map +1 -0
- package/lib/cjs/webchat/components/attachment.d.ts +5 -0
- package/lib/cjs/webchat/components/attachment.js +28 -0
- package/lib/cjs/webchat/components/attachment.js.map +1 -0
- package/lib/cjs/webchat/components/common.d.ts +1 -0
- package/lib/cjs/webchat/components/common.js +14 -0
- package/lib/cjs/webchat/components/common.js.map +1 -0
- package/lib/cjs/webchat/components/conditional-animation.d.ts +1 -0
- package/lib/cjs/webchat/components/conditional-animation.js +17 -0
- package/lib/cjs/webchat/components/conditional-animation.js.map +1 -0
- package/lib/cjs/webchat/components/emoji-picker.d.ts +5 -0
- package/lib/cjs/webchat/components/emoji-picker.js +42 -0
- package/lib/cjs/webchat/components/emoji-picker.js.map +1 -0
- package/lib/cjs/webchat/components/persistent-menu.d.ts +10 -0
- package/lib/cjs/webchat/components/persistent-menu.js +45 -0
- package/lib/cjs/webchat/components/persistent-menu.js.map +1 -0
- package/lib/cjs/webchat/components/send-button.d.ts +3 -0
- package/lib/cjs/webchat/components/send-button.js +19 -0
- package/lib/cjs/webchat/components/send-button.js.map +1 -0
- package/lib/cjs/webchat/components/styled-scrollbar.js.map +1 -0
- package/lib/cjs/webchat/components/typing-indicator.d.ts +1 -0
- package/lib/cjs/webchat/components/typing-indicator.js +11 -0
- package/lib/cjs/webchat/components/typing-indicator.js.map +1 -0
- package/lib/cjs/webchat/devices/device-adapter.js.map +1 -0
- package/lib/cjs/webchat/devices/index.js.map +1 -0
- package/lib/cjs/webchat/devices/scrollbar-controller.js.map +1 -0
- package/lib/cjs/webchat/devices/webchat-resizer.js.map +1 -0
- package/lib/cjs/webchat/header.d.ts +3 -0
- package/lib/cjs/webchat/header.js +85 -0
- package/lib/cjs/webchat/header.js.map +1 -0
- package/lib/cjs/webchat/hooks/index.js.map +1 -0
- package/lib/cjs/webchat/hooks/use-component-visible.js.map +1 -0
- package/lib/cjs/webchat/hooks/use-component-will-mount.js.map +1 -0
- package/lib/cjs/webchat/hooks/use-previous.js.map +1 -0
- package/lib/cjs/webchat/hooks/use-typing.js.map +1 -0
- package/lib/cjs/webchat/hooks/use-webchat.js.map +1 -0
- package/lib/cjs/webchat/index-types.js.map +1 -0
- package/lib/cjs/webchat/index.js.map +1 -0
- package/lib/cjs/webchat/message-list/index.d.ts +1 -0
- package/lib/cjs/webchat/message-list/index.js +81 -0
- package/lib/cjs/webchat/message-list/index.js.map +1 -0
- package/lib/cjs/webchat/message-list/intro-message.d.ts +1 -0
- package/lib/cjs/webchat/message-list/intro-message.js +25 -0
- package/lib/cjs/webchat/message-list/intro-message.js.map +1 -0
- package/lib/cjs/webchat/message-list/scroll-button.js +21 -0
- package/lib/cjs/webchat/message-list/scroll-button.js.map +1 -0
- package/lib/cjs/webchat/message-list/styles.js.map +1 -0
- package/lib/cjs/webchat/message-list/unread-messages-banner.js +29 -0
- package/lib/cjs/webchat/message-list/unread-messages-banner.js.map +1 -0
- package/lib/cjs/webchat/message-list/use-debounce.js.map +1 -0
- package/lib/cjs/webchat/messages-reducer.js.map +1 -0
- package/lib/cjs/webchat/replies.d.ts +1 -0
- package/lib/cjs/webchat/replies.js +46 -0
- package/lib/cjs/webchat/replies.js.map +1 -0
- package/lib/cjs/webchat/session-view.d.ts +1 -0
- package/lib/cjs/webchat/session-view.js +107 -0
- package/lib/cjs/webchat/session-view.js.map +1 -0
- package/lib/cjs/webchat/trigger-button/index.js +32 -0
- package/lib/cjs/webchat/trigger-button/index.js.map +1 -0
- package/lib/cjs/webchat/trigger-button/styles.js.map +1 -0
- package/lib/cjs/webchat/use-storage-state-hook.js.map +1 -0
- package/lib/cjs/webchat/webchat-dev.js +57 -0
- package/lib/cjs/webchat/webchat-dev.js.map +1 -0
- package/lib/cjs/webchat/webchat-reducer.js.map +1 -0
- package/lib/cjs/webchat/webchat.js +668 -0
- package/lib/cjs/webchat/webchat.js.map +1 -0
- package/lib/cjs/webchat/webview.d.ts +2 -0
- package/lib/cjs/webchat/webview.js +88 -0
- package/lib/cjs/webchat/webview.js.map +1 -0
- package/lib/cjs/webchat-app.d.ts +99 -0
- package/lib/cjs/webchat-app.js +282 -0
- package/lib/cjs/webchat-app.js.map +1 -0
- package/lib/cjs/webview-app.js +100 -0
- package/lib/cjs/webview-app.js.map +1 -0
- package/lib/esm/app.js +10 -0
- package/lib/esm/app.js.map +1 -0
- package/lib/esm/botonic-tester.js +68 -0
- package/lib/esm/botonic-tester.js.map +1 -0
- package/lib/esm/components/audio.d.ts +8 -0
- package/lib/esm/components/audio.js +23 -0
- package/lib/esm/components/audio.js.map +1 -0
- package/lib/esm/components/button.js +157 -0
- package/lib/esm/components/button.js.map +1 -0
- package/lib/esm/components/buttons-disabler.js +106 -0
- package/lib/esm/components/buttons-disabler.js.map +1 -0
- package/lib/esm/components/carousel.js +113 -0
- package/lib/esm/components/carousel.js.map +1 -0
- package/lib/esm/components/components.js +22 -0
- package/lib/esm/components/components.js.map +1 -0
- package/lib/esm/components/custom-message.d.ts +12 -0
- package/lib/esm/components/custom-message.js +64 -0
- package/lib/esm/components/custom-message.js.map +1 -0
- package/lib/esm/components/document.d.ts +8 -0
- package/lib/esm/components/document.js +49 -0
- package/lib/esm/components/document.js.map +1 -0
- package/lib/esm/components/element.js +56 -0
- package/lib/esm/components/element.js.map +1 -0
- package/lib/esm/components/handoff.d.ts +1 -0
- package/lib/esm/components/handoff.js +54 -0
- package/lib/esm/components/handoff.js.map +1 -0
- package/lib/esm/components/image.d.ts +8 -0
- package/lib/esm/components/image.js +40 -0
- package/lib/esm/components/image.js.map +1 -0
- package/lib/esm/components/index-types.js +17 -0
- package/lib/esm/components/index-types.js.map +1 -0
- package/lib/esm/components/index.js +49 -0
- package/lib/esm/components/index.js.map +1 -0
- package/lib/esm/components/location.js +32 -0
- package/lib/esm/components/location.js.map +1 -0
- package/lib/esm/components/markdown.js +162 -0
- package/lib/esm/components/markdown.js.map +1 -0
- package/lib/esm/components/message/index.js +163 -0
- package/lib/esm/components/message/index.js.map +1 -0
- package/lib/esm/components/message/message-image.js +26 -0
- package/lib/esm/components/message/message-image.js.map +1 -0
- package/lib/esm/components/message/styles.js +77 -0
- package/lib/esm/components/message/styles.js.map +1 -0
- package/lib/esm/components/message/timestamps.d.ts +13 -0
- package/lib/esm/components/message/timestamps.js +45 -0
- package/lib/esm/components/message/timestamps.js.map +1 -0
- package/lib/esm/components/message-template.js +14 -0
- package/lib/esm/components/message-template.js.map +1 -0
- package/lib/esm/components/multichannel/facebook/facebook.js +47 -0
- package/lib/esm/components/multichannel/facebook/facebook.js.map +1 -0
- package/lib/esm/components/multichannel/index-types.js +3 -0
- package/lib/esm/components/multichannel/index-types.js.map +1 -0
- package/lib/esm/components/multichannel/index.js +16 -0
- package/lib/esm/components/multichannel/index.js.map +1 -0
- package/lib/esm/components/multichannel/multichannel-button.d.ts +1 -0
- package/lib/esm/components/multichannel/multichannel-button.js +74 -0
- package/lib/esm/components/multichannel/multichannel-button.js.map +1 -0
- package/lib/esm/components/multichannel/multichannel-carousel.js +78 -0
- package/lib/esm/components/multichannel/multichannel-carousel.js.map +1 -0
- package/lib/esm/components/multichannel/multichannel-context.js +16 -0
- package/lib/esm/components/multichannel/multichannel-context.js.map +1 -0
- package/lib/esm/components/multichannel/multichannel-reply.d.ts +1 -0
- package/lib/esm/components/multichannel/multichannel-reply.js +25 -0
- package/lib/esm/components/multichannel/multichannel-reply.js.map +1 -0
- package/lib/esm/components/multichannel/multichannel-text.d.ts +1 -0
- package/lib/esm/components/multichannel/multichannel-text.js +157 -0
- package/lib/esm/components/multichannel/multichannel-text.js.map +1 -0
- package/lib/esm/components/multichannel/multichannel-utils.js +85 -0
- package/lib/esm/components/multichannel/multichannel-utils.js.map +1 -0
- package/lib/esm/components/multichannel/multichannel.js +60 -0
- package/lib/esm/components/multichannel/multichannel.js.map +1 -0
- package/lib/esm/components/multichannel/whatsapp/markdown.js +57 -0
- package/lib/esm/components/multichannel/whatsapp/markdown.js.map +1 -0
- package/lib/esm/components/pic.js +30 -0
- package/lib/esm/components/pic.js.map +1 -0
- package/lib/esm/components/raw.d.ts +9 -0
- package/lib/esm/components/raw.js +44 -0
- package/lib/esm/components/raw.js.map +1 -0
- package/lib/esm/components/reply.js +58 -0
- package/lib/esm/components/reply.js.map +1 -0
- package/lib/esm/components/share-button.js +14 -0
- package/lib/esm/components/share-button.js.map +1 -0
- package/lib/esm/components/subtitle.js +26 -0
- package/lib/esm/components/subtitle.js.map +1 -0
- package/lib/esm/components/text.js +51 -0
- package/lib/esm/components/text.js.map +1 -0
- package/lib/esm/components/title.js +22 -0
- package/lib/esm/components/title.js.map +1 -0
- package/lib/esm/components/video.d.ts +8 -0
- package/lib/esm/components/video.js +31 -0
- package/lib/esm/components/video.js.map +1 -0
- package/lib/esm/components/webchat-settings.js +74 -0
- package/lib/esm/components/webchat-settings.js.map +1 -0
- package/lib/esm/components/whatsapp-button-list.js +26 -0
- package/lib/esm/components/whatsapp-button-list.js.map +1 -0
- package/lib/esm/components/whatsapp-template.js +25 -0
- package/lib/esm/components/whatsapp-template.js.map +1 -0
- package/lib/esm/constants.js +199 -0
- package/lib/esm/constants.js.map +1 -0
- package/lib/esm/contexts.js +70 -0
- package/lib/esm/contexts.js.map +1 -0
- package/lib/esm/dev-app.js +79 -0
- package/lib/esm/dev-app.js.map +1 -0
- package/lib/esm/index-types.js +15 -0
- package/lib/esm/index-types.js.map +1 -0
- package/lib/esm/index.js +26 -0
- package/lib/esm/index.js.map +1 -0
- package/lib/esm/message-utils.js +61 -0
- package/lib/esm/message-utils.js.map +1 -0
- package/lib/esm/msg-to-botonic.js +140 -0
- package/lib/esm/msg-to-botonic.js.map +1 -0
- package/lib/esm/node-app.js +28 -0
- package/lib/esm/node-app.js.map +1 -0
- package/lib/esm/react-bot.d.ts +8 -0
- package/lib/esm/react-bot.js +38 -0
- package/lib/esm/react-bot.js.map +1 -0
- package/lib/esm/util/dom.js +55 -0
- package/lib/esm/util/dom.js.map +1 -0
- package/lib/esm/util/environment.js +68 -0
- package/lib/esm/util/environment.js.map +1 -0
- package/lib/esm/util/error-boundary.d.ts +7 -0
- package/lib/esm/util/error-boundary.js +33 -0
- package/lib/esm/util/error-boundary.js.map +1 -0
- package/lib/esm/util/index.js +12 -0
- package/lib/esm/util/index.js.map +1 -0
- package/lib/esm/util/logs.js +20 -0
- package/lib/esm/util/logs.js.map +1 -0
- package/lib/esm/util/objects.js +44 -0
- package/lib/esm/util/objects.js.map +1 -0
- package/lib/esm/util/react.js +42 -0
- package/lib/esm/util/react.js.map +1 -0
- package/lib/esm/util/regexs.js +23 -0
- package/lib/esm/util/regexs.js.map +1 -0
- package/lib/esm/util/webchat.js +62 -0
- package/lib/esm/util/webchat.js.map +1 -0
- package/lib/esm/webchat/actions.js +32 -0
- package/lib/esm/webchat/actions.js.map +1 -0
- package/lib/esm/webchat/components/attachment.d.ts +5 -0
- package/lib/esm/webchat/components/attachment.js +28 -0
- package/lib/esm/webchat/components/attachment.js.map +1 -0
- package/lib/esm/webchat/components/common.d.ts +1 -0
- package/lib/esm/webchat/components/common.js +14 -0
- package/lib/esm/webchat/components/common.js.map +1 -0
- package/lib/esm/webchat/components/conditional-animation.d.ts +1 -0
- package/lib/esm/webchat/components/conditional-animation.js +17 -0
- package/lib/esm/webchat/components/conditional-animation.js.map +1 -0
- package/lib/esm/webchat/components/emoji-picker.d.ts +5 -0
- package/lib/esm/webchat/components/emoji-picker.js +42 -0
- package/lib/esm/webchat/components/emoji-picker.js.map +1 -0
- package/lib/esm/webchat/components/persistent-menu.d.ts +10 -0
- package/lib/esm/webchat/components/persistent-menu.js +45 -0
- package/lib/esm/webchat/components/persistent-menu.js.map +1 -0
- package/lib/esm/webchat/components/send-button.d.ts +3 -0
- package/lib/esm/webchat/components/send-button.js +19 -0
- package/lib/esm/webchat/components/send-button.js.map +1 -0
- package/lib/esm/webchat/components/styled-scrollbar.js +54 -0
- package/lib/esm/webchat/components/styled-scrollbar.js.map +1 -0
- package/lib/esm/webchat/components/typing-indicator.d.ts +1 -0
- package/lib/esm/webchat/components/typing-indicator.js +11 -0
- package/lib/esm/webchat/components/typing-indicator.js.map +1 -0
- package/lib/esm/webchat/devices/device-adapter.js +43 -0
- package/lib/esm/webchat/devices/device-adapter.js.map +1 -0
- package/lib/esm/webchat/devices/index.js +23 -0
- package/lib/esm/webchat/devices/index.js.map +1 -0
- package/lib/esm/webchat/devices/scrollbar-controller.js +103 -0
- package/lib/esm/webchat/devices/scrollbar-controller.js.map +1 -0
- package/lib/esm/webchat/devices/webchat-resizer.js +47 -0
- package/lib/esm/webchat/devices/webchat-resizer.js.map +1 -0
- package/lib/esm/webchat/header.d.ts +3 -0
- package/lib/esm/webchat/header.js +85 -0
- package/lib/esm/webchat/header.js.map +1 -0
- package/lib/esm/webchat/hooks/index.js +15 -0
- package/lib/esm/webchat/hooks/index.js.map +1 -0
- package/lib/esm/webchat/hooks/use-component-visible.js +24 -0
- package/lib/esm/webchat/hooks/use-component-visible.js.map +1 -0
- package/lib/esm/webchat/hooks/use-component-will-mount.js +9 -0
- package/lib/esm/webchat/hooks/use-component-will-mount.js.map +1 -0
- package/lib/esm/webchat/hooks/use-previous.js +13 -0
- package/lib/esm/webchat/hooks/use-previous.js.map +1 -0
- package/lib/esm/webchat/hooks/use-typing.js +32 -0
- package/lib/esm/webchat/hooks/use-typing.js.map +1 -0
- package/lib/esm/webchat/hooks/use-webchat.js +181 -0
- package/lib/esm/webchat/hooks/use-webchat.js.map +1 -0
- package/lib/esm/webchat/index-types.js +3 -0
- package/lib/esm/webchat/index-types.js.map +1 -0
- package/lib/esm/webchat/index.js +17 -0
- package/lib/esm/webchat/index.js.map +1 -0
- package/lib/esm/webchat/message-list/index.d.ts +1 -0
- package/lib/esm/webchat/message-list/index.js +81 -0
- package/lib/esm/webchat/message-list/index.js.map +1 -0
- package/lib/esm/webchat/message-list/intro-message.d.ts +1 -0
- package/lib/esm/webchat/message-list/intro-message.js +25 -0
- package/lib/esm/webchat/message-list/intro-message.js.map +1 -0
- package/lib/esm/webchat/message-list/scroll-button.js +21 -0
- package/lib/esm/webchat/message-list/scroll-button.js.map +1 -0
- package/lib/esm/webchat/message-list/styles.js +50 -0
- package/lib/esm/webchat/message-list/styles.js.map +1 -0
- package/lib/esm/webchat/message-list/unread-messages-banner.js +29 -0
- package/lib/esm/webchat/message-list/unread-messages-banner.js.map +1 -0
- package/lib/esm/webchat/message-list/use-debounce.js +18 -0
- package/lib/esm/webchat/message-list/use-debounce.js.map +1 -0
- package/lib/esm/webchat/messages-reducer.js +118 -0
- package/lib/esm/webchat/messages-reducer.js.map +1 -0
- package/lib/esm/webchat/replies.d.ts +1 -0
- package/lib/esm/webchat/replies.js +46 -0
- package/lib/esm/webchat/replies.js.map +1 -0
- package/lib/esm/webchat/session-view.d.ts +1 -0
- package/lib/esm/webchat/session-view.js +107 -0
- package/lib/esm/webchat/session-view.js.map +1 -0
- package/lib/esm/webchat/trigger-button/index.js +32 -0
- package/lib/esm/webchat/trigger-button/index.js.map +1 -0
- package/lib/esm/webchat/trigger-button/styles.js +40 -0
- package/lib/esm/webchat/trigger-button/styles.js.map +1 -0
- package/lib/esm/webchat/use-storage-state-hook.js +41 -0
- package/lib/esm/webchat/use-storage-state-hook.js.map +1 -0
- package/lib/esm/webchat/webchat-dev.js +57 -0
- package/lib/esm/webchat/webchat-dev.js.map +1 -0
- package/lib/esm/webchat/webchat-reducer.js +56 -0
- package/lib/esm/webchat/webchat-reducer.js.map +1 -0
- package/lib/esm/webchat/webchat.js +668 -0
- package/lib/esm/webchat/webchat.js.map +1 -0
- package/lib/esm/webchat/webview.d.ts +2 -0
- package/lib/esm/webchat/webview.js +88 -0
- package/lib/esm/webchat/webview.js.map +1 -0
- package/lib/esm/webchat-app.d.ts +99 -0
- package/lib/esm/webchat-app.js +282 -0
- package/lib/esm/webchat-app.js.map +1 -0
- package/lib/esm/webview-app.js +100 -0
- package/lib/esm/webview-app.js.map +1 -0
- package/package.json +3 -2
- package/lib/cjs/src/app.js.map +0 -1
- package/lib/cjs/src/botonic-tester.js +0 -69
- package/lib/cjs/src/botonic-tester.js.map +0 -1
- package/lib/cjs/src/components/audio.d.ts +0 -9
- package/lib/cjs/src/components/audio.js +0 -24
- package/lib/cjs/src/components/audio.js.map +0 -1
- package/lib/cjs/src/components/button.js +0 -157
- package/lib/cjs/src/components/button.js.map +0 -1
- package/lib/cjs/src/components/buttons-disabler.js.map +0 -1
- package/lib/cjs/src/components/carousel.js +0 -119
- package/lib/cjs/src/components/carousel.js.map +0 -1
- package/lib/cjs/src/components/components.js.map +0 -1
- package/lib/cjs/src/components/custom-message.d.ts +0 -13
- package/lib/cjs/src/components/custom-message.js +0 -66
- package/lib/cjs/src/components/custom-message.js.map +0 -1
- package/lib/cjs/src/components/document.d.ts +0 -9
- package/lib/cjs/src/components/document.js +0 -48
- package/lib/cjs/src/components/document.js.map +0 -1
- package/lib/cjs/src/components/element.js +0 -55
- package/lib/cjs/src/components/element.js.map +0 -1
- package/lib/cjs/src/components/handoff.d.ts +0 -2
- package/lib/cjs/src/components/handoff.js +0 -55
- package/lib/cjs/src/components/handoff.js.map +0 -1
- package/lib/cjs/src/components/image.d.ts +0 -9
- package/lib/cjs/src/components/image.js +0 -41
- package/lib/cjs/src/components/image.js.map +0 -1
- package/lib/cjs/src/components/index-types.js.map +0 -1
- package/lib/cjs/src/components/index.js.map +0 -1
- package/lib/cjs/src/components/location.js +0 -34
- package/lib/cjs/src/components/location.js.map +0 -1
- package/lib/cjs/src/components/markdown.js.map +0 -1
- package/lib/cjs/src/components/message/index.js +0 -172
- package/lib/cjs/src/components/message/index.js.map +0 -1
- package/lib/cjs/src/components/message/message-image.js +0 -27
- package/lib/cjs/src/components/message/message-image.js.map +0 -1
- package/lib/cjs/src/components/message/styles.js.map +0 -1
- package/lib/cjs/src/components/message/timestamps.d.ts +0 -14
- package/lib/cjs/src/components/message/timestamps.js +0 -47
- package/lib/cjs/src/components/message/timestamps.js.map +0 -1
- package/lib/cjs/src/components/message-template.js +0 -14
- package/lib/cjs/src/components/message-template.js.map +0 -1
- package/lib/cjs/src/components/multichannel/facebook/facebook.js.map +0 -1
- package/lib/cjs/src/components/multichannel/index-types.js.map +0 -1
- package/lib/cjs/src/components/multichannel/index.js.map +0 -1
- package/lib/cjs/src/components/multichannel/multichannel-button.d.ts +0 -2
- package/lib/cjs/src/components/multichannel/multichannel-button.js +0 -73
- package/lib/cjs/src/components/multichannel/multichannel-button.js.map +0 -1
- package/lib/cjs/src/components/multichannel/multichannel-carousel.js +0 -94
- package/lib/cjs/src/components/multichannel/multichannel-carousel.js.map +0 -1
- package/lib/cjs/src/components/multichannel/multichannel-context.js.map +0 -1
- package/lib/cjs/src/components/multichannel/multichannel-reply.d.ts +0 -2
- package/lib/cjs/src/components/multichannel/multichannel-reply.js +0 -24
- package/lib/cjs/src/components/multichannel/multichannel-reply.js.map +0 -1
- package/lib/cjs/src/components/multichannel/multichannel-text.d.ts +0 -2
- package/lib/cjs/src/components/multichannel/multichannel-text.js +0 -165
- package/lib/cjs/src/components/multichannel/multichannel-text.js.map +0 -1
- package/lib/cjs/src/components/multichannel/multichannel-utils.js.map +0 -1
- package/lib/cjs/src/components/multichannel/multichannel.js +0 -58
- package/lib/cjs/src/components/multichannel/multichannel.js.map +0 -1
- package/lib/cjs/src/components/multichannel/whatsapp/markdown.js.map +0 -1
- package/lib/cjs/src/components/pic.js +0 -29
- package/lib/cjs/src/components/pic.js.map +0 -1
- package/lib/cjs/src/components/raw.d.ts +0 -10
- package/lib/cjs/src/components/raw.js +0 -49
- package/lib/cjs/src/components/raw.js.map +0 -1
- package/lib/cjs/src/components/reply.js +0 -58
- package/lib/cjs/src/components/reply.js.map +0 -1
- package/lib/cjs/src/components/share-button.js +0 -14
- package/lib/cjs/src/components/share-button.js.map +0 -1
- package/lib/cjs/src/components/subtitle.js +0 -25
- package/lib/cjs/src/components/subtitle.js.map +0 -1
- package/lib/cjs/src/components/text.js +0 -50
- package/lib/cjs/src/components/text.js.map +0 -1
- package/lib/cjs/src/components/title.js +0 -21
- package/lib/cjs/src/components/title.js.map +0 -1
- package/lib/cjs/src/components/video.d.ts +0 -9
- package/lib/cjs/src/components/video.js +0 -31
- package/lib/cjs/src/components/video.js.map +0 -1
- package/lib/cjs/src/components/webchat-settings.js +0 -74
- package/lib/cjs/src/components/webchat-settings.js.map +0 -1
- package/lib/cjs/src/components/whatsapp-button-list.js +0 -27
- package/lib/cjs/src/components/whatsapp-button-list.js.map +0 -1
- package/lib/cjs/src/components/whatsapp-template.js +0 -24
- package/lib/cjs/src/components/whatsapp-template.js.map +0 -1
- package/lib/cjs/src/constants.js.map +0 -1
- package/lib/cjs/src/contexts.js.map +0 -1
- package/lib/cjs/src/dev-app.js +0 -78
- package/lib/cjs/src/dev-app.js.map +0 -1
- package/lib/cjs/src/index-types.js.map +0 -1
- package/lib/cjs/src/index.js.map +0 -1
- package/lib/cjs/src/message-utils.js.map +0 -1
- package/lib/cjs/src/msg-to-botonic.js +0 -143
- package/lib/cjs/src/msg-to-botonic.js.map +0 -1
- package/lib/cjs/src/node-app.js.map +0 -1
- package/lib/cjs/src/react-bot.d.ts +0 -9
- package/lib/cjs/src/react-bot.js +0 -38
- package/lib/cjs/src/react-bot.js.map +0 -1
- package/lib/cjs/src/util/dom.js.map +0 -1
- package/lib/cjs/src/util/environment.js.map +0 -1
- package/lib/cjs/src/util/error-boundary.d.ts +0 -8
- package/lib/cjs/src/util/error-boundary.js +0 -32
- package/lib/cjs/src/util/error-boundary.js.map +0 -1
- package/lib/cjs/src/util/index.js.map +0 -1
- package/lib/cjs/src/util/logs.js.map +0 -1
- package/lib/cjs/src/util/objects.js.map +0 -1
- package/lib/cjs/src/util/react.js.map +0 -1
- package/lib/cjs/src/util/regexs.js.map +0 -1
- package/lib/cjs/src/util/webchat.js.map +0 -1
- package/lib/cjs/src/webchat/actions.js.map +0 -1
- package/lib/cjs/src/webchat/components/attachment.d.ts +0 -6
- package/lib/cjs/src/webchat/components/attachment.js +0 -30
- package/lib/cjs/src/webchat/components/attachment.js.map +0 -1
- package/lib/cjs/src/webchat/components/common.d.ts +0 -2
- package/lib/cjs/src/webchat/components/common.js +0 -13
- package/lib/cjs/src/webchat/components/common.js.map +0 -1
- package/lib/cjs/src/webchat/components/conditional-animation.d.ts +0 -2
- package/lib/cjs/src/webchat/components/conditional-animation.js +0 -16
- package/lib/cjs/src/webchat/components/conditional-animation.js.map +0 -1
- package/lib/cjs/src/webchat/components/emoji-picker.d.ts +0 -6
- package/lib/cjs/src/webchat/components/emoji-picker.js +0 -43
- package/lib/cjs/src/webchat/components/emoji-picker.js.map +0 -1
- package/lib/cjs/src/webchat/components/persistent-menu.d.ts +0 -11
- package/lib/cjs/src/webchat/components/persistent-menu.js +0 -47
- package/lib/cjs/src/webchat/components/persistent-menu.js.map +0 -1
- package/lib/cjs/src/webchat/components/send-button.d.ts +0 -4
- package/lib/cjs/src/webchat/components/send-button.js +0 -19
- package/lib/cjs/src/webchat/components/send-button.js.map +0 -1
- package/lib/cjs/src/webchat/components/styled-scrollbar.js.map +0 -1
- package/lib/cjs/src/webchat/components/typing-indicator.d.ts +0 -2
- package/lib/cjs/src/webchat/components/typing-indicator.js +0 -13
- package/lib/cjs/src/webchat/components/typing-indicator.js.map +0 -1
- package/lib/cjs/src/webchat/devices/device-adapter.js.map +0 -1
- package/lib/cjs/src/webchat/devices/index.js.map +0 -1
- package/lib/cjs/src/webchat/devices/scrollbar-controller.js.map +0 -1
- package/lib/cjs/src/webchat/devices/webchat-resizer.js.map +0 -1
- package/lib/cjs/src/webchat/header.d.ts +0 -4
- package/lib/cjs/src/webchat/header.js +0 -91
- package/lib/cjs/src/webchat/header.js.map +0 -1
- package/lib/cjs/src/webchat/hooks/index.js.map +0 -1
- package/lib/cjs/src/webchat/hooks/use-component-visible.js.map +0 -1
- package/lib/cjs/src/webchat/hooks/use-component-will-mount.js.map +0 -1
- package/lib/cjs/src/webchat/hooks/use-previous.js.map +0 -1
- package/lib/cjs/src/webchat/hooks/use-typing.js.map +0 -1
- package/lib/cjs/src/webchat/hooks/use-webchat.js.map +0 -1
- package/lib/cjs/src/webchat/index-types.js.map +0 -1
- package/lib/cjs/src/webchat/index.js.map +0 -1
- package/lib/cjs/src/webchat/message-list/index.d.ts +0 -2
- package/lib/cjs/src/webchat/message-list/index.js +0 -89
- package/lib/cjs/src/webchat/message-list/index.js.map +0 -1
- package/lib/cjs/src/webchat/message-list/intro-message.d.ts +0 -2
- package/lib/cjs/src/webchat/message-list/intro-message.js +0 -24
- package/lib/cjs/src/webchat/message-list/intro-message.js.map +0 -1
- package/lib/cjs/src/webchat/message-list/scroll-button.js +0 -21
- package/lib/cjs/src/webchat/message-list/scroll-button.js.map +0 -1
- package/lib/cjs/src/webchat/message-list/styles.js.map +0 -1
- package/lib/cjs/src/webchat/message-list/unread-messages-banner.js +0 -32
- package/lib/cjs/src/webchat/message-list/unread-messages-banner.js.map +0 -1
- package/lib/cjs/src/webchat/message-list/use-debounce.js.map +0 -1
- package/lib/cjs/src/webchat/messages-reducer.js.map +0 -1
- package/lib/cjs/src/webchat/replies.d.ts +0 -2
- package/lib/cjs/src/webchat/replies.js +0 -46
- package/lib/cjs/src/webchat/replies.js.map +0 -1
- package/lib/cjs/src/webchat/session-view.d.ts +0 -2
- package/lib/cjs/src/webchat/session-view.js +0 -122
- package/lib/cjs/src/webchat/session-view.js.map +0 -1
- package/lib/cjs/src/webchat/trigger-button/index.js +0 -34
- package/lib/cjs/src/webchat/trigger-button/index.js.map +0 -1
- package/lib/cjs/src/webchat/trigger-button/styles.js.map +0 -1
- package/lib/cjs/src/webchat/use-storage-state-hook.js.map +0 -1
- package/lib/cjs/src/webchat/webchat-dev.js +0 -59
- package/lib/cjs/src/webchat/webchat-dev.js.map +0 -1
- package/lib/cjs/src/webchat/webchat-reducer.js.map +0 -1
- package/lib/cjs/src/webchat/webchat.js +0 -689
- package/lib/cjs/src/webchat/webchat.js.map +0 -1
- package/lib/cjs/src/webchat/webview.d.ts +0 -3
- package/lib/cjs/src/webchat/webview.js +0 -91
- package/lib/cjs/src/webchat/webview.js.map +0 -1
- package/lib/cjs/src/webchat-app.d.ts +0 -99
- package/lib/cjs/src/webchat-app.js +0 -281
- package/lib/cjs/src/webchat-app.js.map +0 -1
- package/lib/cjs/src/webview-app.js +0 -100
- package/lib/cjs/src/webview-app.js.map +0 -1
- package/lib/cjs/tests/__mocks__/file-mock.d.ts +0 -2
- package/lib/cjs/tests/__mocks__/file-mock.js +0 -4
- package/lib/cjs/tests/__mocks__/file-mock.js.map +0 -1
- package/lib/cjs/tests/components/components.test.d.ts +0 -1
- package/lib/cjs/tests/components/components.test.js +0 -23
- package/lib/cjs/tests/components/components.test.js.map +0 -1
- package/lib/cjs/tests/components/custom-message.test.d.ts +0 -1
- package/lib/cjs/tests/components/custom-message.test.js +0 -92
- package/lib/cjs/tests/components/custom-message.test.js.map +0 -1
- package/lib/cjs/tests/components/multichannel/facebook/facebook.test.d.ts +0 -1
- package/lib/cjs/tests/components/multichannel/facebook/facebook.test.js +0 -73
- package/lib/cjs/tests/components/multichannel/facebook/facebook.test.js.map +0 -1
- package/lib/cjs/tests/components/multichannel/multichannel-button.test.d.ts +0 -1
- package/lib/cjs/tests/components/multichannel/multichannel-button.test.js +0 -34
- package/lib/cjs/tests/components/multichannel/multichannel-button.test.js.map +0 -1
- package/lib/cjs/tests/components/multichannel/multichannel-carousel-multibutton.test.d.ts +0 -9
- package/lib/cjs/tests/components/multichannel/multichannel-carousel-multibutton.test.js +0 -138
- package/lib/cjs/tests/components/multichannel/multichannel-carousel-multibutton.test.js.map +0 -1
- package/lib/cjs/tests/components/multichannel/multichannel-carousel.test.d.ts +0 -9
- package/lib/cjs/tests/components/multichannel/multichannel-carousel.test.js +0 -128
- package/lib/cjs/tests/components/multichannel/multichannel-carousel.test.js.map +0 -1
- package/lib/cjs/tests/components/multichannel/multichannel-reply.test.d.ts +0 -1
- package/lib/cjs/tests/components/multichannel/multichannel-reply.test.js +0 -23
- package/lib/cjs/tests/components/multichannel/multichannel-reply.test.js.map +0 -1
- package/lib/cjs/tests/components/multichannel/multichannel-text.test.d.ts +0 -1
- package/lib/cjs/tests/components/multichannel/multichannel-text.test.js +0 -155
- package/lib/cjs/tests/components/multichannel/multichannel-text.test.js.map +0 -1
- package/lib/cjs/tests/components/multichannel/multichannel-wrapper.test.d.ts +0 -1
- package/lib/cjs/tests/components/multichannel/multichannel-wrapper.test.js +0 -162
- package/lib/cjs/tests/components/multichannel/multichannel-wrapper.test.js.map +0 -1
- package/lib/cjs/tests/components/render-markdown.test.d.ts +0 -1
- package/lib/cjs/tests/components/render-markdown.test.js +0 -165
- package/lib/cjs/tests/components/render-markdown.test.js.map +0 -1
- package/lib/cjs/tests/components/text-serialization.test.d.ts +0 -1
- package/lib/cjs/tests/components/text-serialization.test.js +0 -49
- package/lib/cjs/tests/components/text-serialization.test.js.map +0 -1
- package/lib/cjs/tests/components/text.test.d.ts +0 -1
- package/lib/cjs/tests/components/text.test.js +0 -91
- package/lib/cjs/tests/components/text.test.js.map +0 -1
- package/lib/cjs/tests/helpers/in-memory-storage.d.ts +0 -8
- package/lib/cjs/tests/helpers/in-memory-storage.js +0 -26
- package/lib/cjs/tests/helpers/in-memory-storage.js.map +0 -1
- package/lib/cjs/tests/helpers/test-utils.d.ts +0 -19
- package/lib/cjs/tests/helpers/test-utils.js +0 -53
- package/lib/cjs/tests/helpers/test-utils.js.map +0 -1
- package/lib/cjs/tests/msg-to-botonic.test.d.ts +0 -1
- package/lib/cjs/tests/msg-to-botonic.test.js +0 -98
- package/lib/cjs/tests/msg-to-botonic.test.js.map +0 -1
- package/lib/cjs/tests/utils.test.d.ts +0 -1
- package/lib/cjs/tests/utils.test.js +0 -30
- package/lib/cjs/tests/utils.test.js.map +0 -1
- package/lib/cjs/tests/webchat/attachments.test.d.ts +0 -1
- package/lib/cjs/tests/webchat/attachments.test.js +0 -26
- package/lib/cjs/tests/webchat/attachments.test.js.map +0 -1
- package/lib/cjs/tests/webchat/buttons-disabler.test.d.ts +0 -1
- package/lib/cjs/tests/webchat/buttons-disabler.test.js +0 -218
- package/lib/cjs/tests/webchat/buttons-disabler.test.js.map +0 -1
- package/lib/cjs/tests/webchat/dev-app.test.d.ts +0 -1
- package/lib/cjs/tests/webchat/dev-app.test.js +0 -28
- package/lib/cjs/tests/webchat/dev-app.test.js.map +0 -1
- package/lib/cjs/tests/webchat/storage.test.d.ts +0 -1
- package/lib/cjs/tests/webchat/storage.test.js +0 -94
- package/lib/cjs/tests/webchat/storage.test.js.map +0 -1
- package/lib/cjs/tests/webchat/usewebchat.test.d.ts +0 -1
- package/lib/cjs/tests/webchat/usewebchat.test.js +0 -204
- package/lib/cjs/tests/webchat/usewebchat.test.js.map +0 -1
- package/lib/cjs/tests/webchat/webchat-app.test.d.ts +0 -1
- package/lib/cjs/tests/webchat/webchat-app.test.js +0 -51
- package/lib/cjs/tests/webchat/webchat-app.test.js.map +0 -1
- package/lib/cjs/tests/webchat/webchat-util.test.d.ts +0 -1
- package/lib/cjs/tests/webchat/webchat-util.test.js +0 -72
- package/lib/cjs/tests/webchat/webchat-util.test.js.map +0 -1
- package/lib/cjs/tests/webchat/webchat.addmessages.test.d.ts +0 -1
- package/lib/cjs/tests/webchat/webchat.addmessages.test.js +0 -74
- package/lib/cjs/tests/webchat/webchat.addmessages.test.js.map +0 -1
- package/lib/cjs/tests/webchat/webchat.component.test.d.ts +0 -1
- package/lib/cjs/tests/webchat/webchat.component.test.js +0 -186
- package/lib/cjs/tests/webchat/webchat.component.test.js.map +0 -1
- package/lib/cjs/tests/webchat.theme.test.d.ts +0 -1
- package/lib/cjs/tests/webchat.theme.test.js +0 -126
- package/lib/cjs/tests/webchat.theme.test.js.map +0 -1
- package/lib/esm/src/app.js +0 -6
- package/lib/esm/src/app.js.map +0 -1
- package/lib/esm/src/botonic-tester.js +0 -63
- package/lib/esm/src/botonic-tester.js.map +0 -1
- package/lib/esm/src/components/audio.d.ts +0 -9
- package/lib/esm/src/components/audio.js +0 -19
- package/lib/esm/src/components/audio.js.map +0 -1
- package/lib/esm/src/components/button.js +0 -140
- package/lib/esm/src/components/button.js.map +0 -1
- package/lib/esm/src/components/buttons-disabler.js +0 -84
- package/lib/esm/src/components/buttons-disabler.js.map +0 -1
- package/lib/esm/src/components/carousel.js +0 -108
- package/lib/esm/src/components/carousel.js.map +0 -1
- package/lib/esm/src/components/components.js +0 -17
- package/lib/esm/src/components/components.js.map +0 -1
- package/lib/esm/src/components/custom-message.d.ts +0 -13
- package/lib/esm/src/components/custom-message.js +0 -57
- package/lib/esm/src/components/custom-message.js.map +0 -1
- package/lib/esm/src/components/document.d.ts +0 -9
- package/lib/esm/src/components/document.js +0 -41
- package/lib/esm/src/components/document.js.map +0 -1
- package/lib/esm/src/components/element.js +0 -50
- package/lib/esm/src/components/element.js.map +0 -1
- package/lib/esm/src/components/handoff.d.ts +0 -2
- package/lib/esm/src/components/handoff.js +0 -50
- package/lib/esm/src/components/handoff.js.map +0 -1
- package/lib/esm/src/components/image.d.ts +0 -9
- package/lib/esm/src/components/image.js +0 -36
- package/lib/esm/src/components/image.js.map +0 -1
- package/lib/esm/src/components/index-types.js +0 -16
- package/lib/esm/src/components/index-types.js.map +0 -1
- package/lib/esm/src/components/index.js +0 -24
- package/lib/esm/src/components/index.js.map +0 -1
- package/lib/esm/src/components/location.js +0 -29
- package/lib/esm/src/components/location.js.map +0 -1
- package/lib/esm/src/components/markdown.js +0 -152
- package/lib/esm/src/components/markdown.js.map +0 -1
- package/lib/esm/src/components/message/index.js +0 -151
- package/lib/esm/src/components/message/index.js.map +0 -1
- package/lib/esm/src/components/message/message-image.js +0 -19
- package/lib/esm/src/components/message/message-image.js.map +0 -1
- package/lib/esm/src/components/message/styles.js +0 -73
- package/lib/esm/src/components/message/styles.js.map +0 -1
- package/lib/esm/src/components/message/timestamps.d.ts +0 -14
- package/lib/esm/src/components/message/timestamps.js +0 -41
- package/lib/esm/src/components/message/timestamps.js.map +0 -1
- package/lib/esm/src/components/message-template.js +0 -9
- package/lib/esm/src/components/message-template.js.map +0 -1
- package/lib/esm/src/components/multichannel/facebook/facebook.js +0 -43
- package/lib/esm/src/components/multichannel/facebook/facebook.js.map +0 -1
- package/lib/esm/src/components/multichannel/index-types.js +0 -2
- package/lib/esm/src/components/multichannel/index-types.js.map +0 -1
- package/lib/esm/src/components/multichannel/index.js +0 -12
- package/lib/esm/src/components/multichannel/index.js.map +0 -1
- package/lib/esm/src/components/multichannel/multichannel-button.d.ts +0 -2
- package/lib/esm/src/components/multichannel/multichannel-button.js +0 -70
- package/lib/esm/src/components/multichannel/multichannel-button.js.map +0 -1
- package/lib/esm/src/components/multichannel/multichannel-carousel.js +0 -89
- package/lib/esm/src/components/multichannel/multichannel-carousel.js.map +0 -1
- package/lib/esm/src/components/multichannel/multichannel-context.js +0 -12
- package/lib/esm/src/components/multichannel/multichannel-context.js.map +0 -1
- package/lib/esm/src/components/multichannel/multichannel-reply.d.ts +0 -2
- package/lib/esm/src/components/multichannel/multichannel-reply.js +0 -19
- package/lib/esm/src/components/multichannel/multichannel-reply.js.map +0 -1
- package/lib/esm/src/components/multichannel/multichannel-text.d.ts +0 -2
- package/lib/esm/src/components/multichannel/multichannel-text.js +0 -161
- package/lib/esm/src/components/multichannel/multichannel-text.js.map +0 -1
- package/lib/esm/src/components/multichannel/multichannel-utils.js +0 -69
- package/lib/esm/src/components/multichannel/multichannel-utils.js.map +0 -1
- package/lib/esm/src/components/multichannel/multichannel.js +0 -53
- package/lib/esm/src/components/multichannel/multichannel.js.map +0 -1
- package/lib/esm/src/components/multichannel/whatsapp/markdown.js +0 -53
- package/lib/esm/src/components/multichannel/whatsapp/markdown.js.map +0 -1
- package/lib/esm/src/components/pic.js +0 -24
- package/lib/esm/src/components/pic.js.map +0 -1
- package/lib/esm/src/components/raw.d.ts +0 -10
- package/lib/esm/src/components/raw.js +0 -44
- package/lib/esm/src/components/raw.js.map +0 -1
- package/lib/esm/src/components/reply.js +0 -49
- package/lib/esm/src/components/reply.js.map +0 -1
- package/lib/esm/src/components/share-button.js +0 -9
- package/lib/esm/src/components/share-button.js.map +0 -1
- package/lib/esm/src/components/subtitle.js +0 -18
- package/lib/esm/src/components/subtitle.js.map +0 -1
- package/lib/esm/src/components/text.js +0 -41
- package/lib/esm/src/components/text.js.map +0 -1
- package/lib/esm/src/components/title.js +0 -16
- package/lib/esm/src/components/title.js.map +0 -1
- package/lib/esm/src/components/video.d.ts +0 -9
- package/lib/esm/src/components/video.js +0 -26
- package/lib/esm/src/components/video.js.map +0 -1
- package/lib/esm/src/components/webchat-settings.js +0 -68
- package/lib/esm/src/components/webchat-settings.js.map +0 -1
- package/lib/esm/src/components/whatsapp-button-list.js +0 -22
- package/lib/esm/src/components/whatsapp-button-list.js.map +0 -1
- package/lib/esm/src/components/whatsapp-template.js +0 -19
- package/lib/esm/src/components/whatsapp-template.js.map +0 -1
- package/lib/esm/src/constants.js +0 -195
- package/lib/esm/src/constants.js.map +0 -1
- package/lib/esm/src/contexts.js +0 -67
- package/lib/esm/src/contexts.js.map +0 -1
- package/lib/esm/src/dev-app.js +0 -73
- package/lib/esm/src/dev-app.js.map +0 -1
- package/lib/esm/src/index-types.js +0 -12
- package/lib/esm/src/index-types.js.map +0 -1
- package/lib/esm/src/index.js +0 -12
- package/lib/esm/src/index.js.map +0 -1
- package/lib/esm/src/message-utils.js +0 -41
- package/lib/esm/src/message-utils.js.map +0 -1
- package/lib/esm/src/msg-to-botonic.js +0 -138
- package/lib/esm/src/msg-to-botonic.js.map +0 -1
- package/lib/esm/src/node-app.js +0 -21
- package/lib/esm/src/node-app.js.map +0 -1
- package/lib/esm/src/react-bot.d.ts +0 -9
- package/lib/esm/src/react-bot.js +0 -29
- package/lib/esm/src/react-bot.js.map +0 -1
- package/lib/esm/src/util/dom.js +0 -46
- package/lib/esm/src/util/dom.js.map +0 -1
- package/lib/esm/src/util/environment.js +0 -61
- package/lib/esm/src/util/environment.js.map +0 -1
- package/lib/esm/src/util/error-boundary.d.ts +0 -8
- package/lib/esm/src/util/error-boundary.js +0 -27
- package/lib/esm/src/util/error-boundary.js.map +0 -1
- package/lib/esm/src/util/index.js +0 -9
- package/lib/esm/src/util/index.js.map +0 -1
- package/lib/esm/src/util/logs.js +0 -15
- package/lib/esm/src/util/logs.js.map +0 -1
- package/lib/esm/src/util/objects.js +0 -38
- package/lib/esm/src/util/objects.js.map +0 -1
- package/lib/esm/src/util/react.js +0 -34
- package/lib/esm/src/util/react.js.map +0 -1
- package/lib/esm/src/util/regexs.js +0 -18
- package/lib/esm/src/util/regexs.js.map +0 -1
- package/lib/esm/src/util/webchat.js +0 -53
- package/lib/esm/src/util/webchat.js.map +0 -1
- package/lib/esm/src/webchat/actions.js +0 -29
- package/lib/esm/src/webchat/actions.js.map +0 -1
- package/lib/esm/src/webchat/components/attachment.d.ts +0 -6
- package/lib/esm/src/webchat/components/attachment.js +0 -26
- package/lib/esm/src/webchat/components/attachment.js.map +0 -1
- package/lib/esm/src/webchat/components/common.d.ts +0 -2
- package/lib/esm/src/webchat/components/common.js +0 -8
- package/lib/esm/src/webchat/components/common.js.map +0 -1
- package/lib/esm/src/webchat/components/conditional-animation.d.ts +0 -2
- package/lib/esm/src/webchat/components/conditional-animation.js +0 -11
- package/lib/esm/src/webchat/components/conditional-animation.js.map +0 -1
- package/lib/esm/src/webchat/components/emoji-picker.d.ts +0 -6
- package/lib/esm/src/webchat/components/emoji-picker.js +0 -38
- package/lib/esm/src/webchat/components/emoji-picker.js.map +0 -1
- package/lib/esm/src/webchat/components/persistent-menu.d.ts +0 -11
- package/lib/esm/src/webchat/components/persistent-menu.js +0 -41
- package/lib/esm/src/webchat/components/persistent-menu.js.map +0 -1
- package/lib/esm/src/webchat/components/send-button.d.ts +0 -4
- package/lib/esm/src/webchat/components/send-button.js +0 -14
- package/lib/esm/src/webchat/components/send-button.js.map +0 -1
- package/lib/esm/src/webchat/components/styled-scrollbar.js +0 -50
- package/lib/esm/src/webchat/components/styled-scrollbar.js.map +0 -1
- package/lib/esm/src/webchat/components/typing-indicator.d.ts +0 -2
- package/lib/esm/src/webchat/components/typing-indicator.js +0 -8
- package/lib/esm/src/webchat/components/typing-indicator.js.map +0 -1
- package/lib/esm/src/webchat/devices/device-adapter.js +0 -39
- package/lib/esm/src/webchat/devices/device-adapter.js.map +0 -1
- package/lib/esm/src/webchat/devices/index.js +0 -18
- package/lib/esm/src/webchat/devices/index.js.map +0 -1
- package/lib/esm/src/webchat/devices/scrollbar-controller.js +0 -99
- package/lib/esm/src/webchat/devices/scrollbar-controller.js.map +0 -1
- package/lib/esm/src/webchat/devices/webchat-resizer.js +0 -43
- package/lib/esm/src/webchat/devices/webchat-resizer.js.map +0 -1
- package/lib/esm/src/webchat/header.d.ts +0 -4
- package/lib/esm/src/webchat/header.js +0 -85
- package/lib/esm/src/webchat/header.js.map +0 -1
- package/lib/esm/src/webchat/hooks/index.js +0 -6
- package/lib/esm/src/webchat/hooks/index.js.map +0 -1
- package/lib/esm/src/webchat/hooks/use-component-visible.js +0 -20
- package/lib/esm/src/webchat/hooks/use-component-visible.js.map +0 -1
- package/lib/esm/src/webchat/hooks/use-component-will-mount.js +0 -5
- package/lib/esm/src/webchat/hooks/use-component-will-mount.js.map +0 -1
- package/lib/esm/src/webchat/hooks/use-previous.js +0 -9
- package/lib/esm/src/webchat/hooks/use-previous.js.map +0 -1
- package/lib/esm/src/webchat/hooks/use-typing.js +0 -28
- package/lib/esm/src/webchat/hooks/use-typing.js.map +0 -1
- package/lib/esm/src/webchat/hooks/use-webchat.js +0 -177
- package/lib/esm/src/webchat/hooks/use-webchat.js.map +0 -1
- package/lib/esm/src/webchat/index-types.js +0 -2
- package/lib/esm/src/webchat/index-types.js.map +0 -1
- package/lib/esm/src/webchat/index.js +0 -10
- package/lib/esm/src/webchat/index.js.map +0 -1
- package/lib/esm/src/webchat/message-list/index.d.ts +0 -2
- package/lib/esm/src/webchat/message-list/index.js +0 -80
- package/lib/esm/src/webchat/message-list/index.js.map +0 -1
- package/lib/esm/src/webchat/message-list/intro-message.d.ts +0 -2
- package/lib/esm/src/webchat/message-list/intro-message.js +0 -17
- package/lib/esm/src/webchat/message-list/intro-message.js.map +0 -1
- package/lib/esm/src/webchat/message-list/scroll-button.js +0 -16
- package/lib/esm/src/webchat/message-list/scroll-button.js.map +0 -1
- package/lib/esm/src/webchat/message-list/styles.js +0 -46
- package/lib/esm/src/webchat/message-list/styles.js.map +0 -1
- package/lib/esm/src/webchat/message-list/unread-messages-banner.js +0 -27
- package/lib/esm/src/webchat/message-list/unread-messages-banner.js.map +0 -1
- package/lib/esm/src/webchat/message-list/use-debounce.js +0 -14
- package/lib/esm/src/webchat/message-list/use-debounce.js.map +0 -1
- package/lib/esm/src/webchat/messages-reducer.js +0 -82
- package/lib/esm/src/webchat/messages-reducer.js.map +0 -1
- package/lib/esm/src/webchat/replies.d.ts +0 -2
- package/lib/esm/src/webchat/replies.js +0 -38
- package/lib/esm/src/webchat/replies.js.map +0 -1
- package/lib/esm/src/webchat/session-view.d.ts +0 -2
- package/lib/esm/src/webchat/session-view.js +0 -111
- package/lib/esm/src/webchat/session-view.js.map +0 -1
- package/lib/esm/src/webchat/trigger-button/index.js +0 -29
- package/lib/esm/src/webchat/trigger-button/index.js.map +0 -1
- package/lib/esm/src/webchat/trigger-button/styles.js +0 -36
- package/lib/esm/src/webchat/trigger-button/styles.js.map +0 -1
- package/lib/esm/src/webchat/use-storage-state-hook.js +0 -38
- package/lib/esm/src/webchat/use-storage-state-hook.js.map +0 -1
- package/lib/esm/src/webchat/webchat-dev.js +0 -58
- package/lib/esm/src/webchat/webchat-dev.js.map +0 -1
- package/lib/esm/src/webchat/webchat-reducer.js +0 -46
- package/lib/esm/src/webchat/webchat-reducer.js.map +0 -1
- package/lib/esm/src/webchat/webchat.js +0 -660
- package/lib/esm/src/webchat/webchat.js.map +0 -1
- package/lib/esm/src/webchat/webview.d.ts +0 -3
- package/lib/esm/src/webchat/webview.js +0 -81
- package/lib/esm/src/webchat/webview.js.map +0 -1
- package/lib/esm/src/webchat-app.d.ts +0 -99
- package/lib/esm/src/webchat-app.js +0 -279
- package/lib/esm/src/webchat-app.js.map +0 -1
- package/lib/esm/src/webview-app.js +0 -95
- package/lib/esm/src/webview-app.js.map +0 -1
- package/lib/esm/tests/__mocks__/file-mock.d.ts +0 -2
- package/lib/esm/tests/__mocks__/file-mock.js +0 -3
- package/lib/esm/tests/__mocks__/file-mock.js.map +0 -1
- package/lib/esm/tests/components/components.test.d.ts +0 -1
- package/lib/esm/tests/components/components.test.js +0 -20
- package/lib/esm/tests/components/components.test.js.map +0 -1
- package/lib/esm/tests/components/custom-message.test.d.ts +0 -1
- package/lib/esm/tests/components/custom-message.test.js +0 -89
- package/lib/esm/tests/components/custom-message.test.js.map +0 -1
- package/lib/esm/tests/components/multichannel/facebook/facebook.test.d.ts +0 -1
- package/lib/esm/tests/components/multichannel/facebook/facebook.test.js +0 -71
- package/lib/esm/tests/components/multichannel/facebook/facebook.test.js.map +0 -1
- package/lib/esm/tests/components/multichannel/multichannel-button.test.d.ts +0 -1
- package/lib/esm/tests/components/multichannel/multichannel-button.test.js +0 -31
- package/lib/esm/tests/components/multichannel/multichannel-button.test.js.map +0 -1
- package/lib/esm/tests/components/multichannel/multichannel-carousel-multibutton.test.d.ts +0 -9
- package/lib/esm/tests/components/multichannel/multichannel-carousel-multibutton.test.js +0 -134
- package/lib/esm/tests/components/multichannel/multichannel-carousel-multibutton.test.js.map +0 -1
- package/lib/esm/tests/components/multichannel/multichannel-carousel.test.d.ts +0 -9
- package/lib/esm/tests/components/multichannel/multichannel-carousel.test.js +0 -124
- package/lib/esm/tests/components/multichannel/multichannel-carousel.test.js.map +0 -1
- package/lib/esm/tests/components/multichannel/multichannel-reply.test.d.ts +0 -1
- package/lib/esm/tests/components/multichannel/multichannel-reply.test.js +0 -20
- package/lib/esm/tests/components/multichannel/multichannel-reply.test.js.map +0 -1
- package/lib/esm/tests/components/multichannel/multichannel-text.test.d.ts +0 -1
- package/lib/esm/tests/components/multichannel/multichannel-text.test.js +0 -152
- package/lib/esm/tests/components/multichannel/multichannel-text.test.js.map +0 -1
- package/lib/esm/tests/components/multichannel/multichannel-wrapper.test.d.ts +0 -1
- package/lib/esm/tests/components/multichannel/multichannel-wrapper.test.js +0 -159
- package/lib/esm/tests/components/multichannel/multichannel-wrapper.test.js.map +0 -1
- package/lib/esm/tests/components/render-markdown.test.d.ts +0 -1
- package/lib/esm/tests/components/render-markdown.test.js +0 -163
- package/lib/esm/tests/components/render-markdown.test.js.map +0 -1
- package/lib/esm/tests/components/text-serialization.test.d.ts +0 -1
- package/lib/esm/tests/components/text-serialization.test.js +0 -46
- package/lib/esm/tests/components/text-serialization.test.js.map +0 -1
- package/lib/esm/tests/components/text.test.d.ts +0 -1
- package/lib/esm/tests/components/text.test.js +0 -88
- package/lib/esm/tests/components/text.test.js.map +0 -1
- package/lib/esm/tests/helpers/in-memory-storage.d.ts +0 -8
- package/lib/esm/tests/helpers/in-memory-storage.js +0 -23
- package/lib/esm/tests/helpers/in-memory-storage.js.map +0 -1
- package/lib/esm/tests/helpers/test-utils.d.ts +0 -19
- package/lib/esm/tests/helpers/test-utils.js +0 -41
- package/lib/esm/tests/helpers/test-utils.js.map +0 -1
- package/lib/esm/tests/msg-to-botonic.test.d.ts +0 -1
- package/lib/esm/tests/msg-to-botonic.test.js +0 -95
- package/lib/esm/tests/msg-to-botonic.test.js.map +0 -1
- package/lib/esm/tests/utils.test.d.ts +0 -1
- package/lib/esm/tests/utils.test.js +0 -28
- package/lib/esm/tests/utils.test.js.map +0 -1
- package/lib/esm/tests/webchat/attachments.test.d.ts +0 -1
- package/lib/esm/tests/webchat/attachments.test.js +0 -24
- package/lib/esm/tests/webchat/attachments.test.js.map +0 -1
- package/lib/esm/tests/webchat/buttons-disabler.test.d.ts +0 -1
- package/lib/esm/tests/webchat/buttons-disabler.test.js +0 -212
- package/lib/esm/tests/webchat/buttons-disabler.test.js.map +0 -1
- package/lib/esm/tests/webchat/dev-app.test.d.ts +0 -1
- package/lib/esm/tests/webchat/dev-app.test.js +0 -26
- package/lib/esm/tests/webchat/dev-app.test.js.map +0 -1
- package/lib/esm/tests/webchat/storage.test.d.ts +0 -1
- package/lib/esm/tests/webchat/storage.test.js +0 -91
- package/lib/esm/tests/webchat/storage.test.js.map +0 -1
- package/lib/esm/tests/webchat/usewebchat.test.d.ts +0 -1
- package/lib/esm/tests/webchat/usewebchat.test.js +0 -201
- package/lib/esm/tests/webchat/usewebchat.test.js.map +0 -1
- package/lib/esm/tests/webchat/webchat-app.test.d.ts +0 -1
- package/lib/esm/tests/webchat/webchat-app.test.js +0 -49
- package/lib/esm/tests/webchat/webchat-app.test.js.map +0 -1
- package/lib/esm/tests/webchat/webchat-util.test.d.ts +0 -1
- package/lib/esm/tests/webchat/webchat-util.test.js +0 -70
- package/lib/esm/tests/webchat/webchat-util.test.js.map +0 -1
- package/lib/esm/tests/webchat/webchat.addmessages.test.d.ts +0 -1
- package/lib/esm/tests/webchat/webchat.addmessages.test.js +0 -71
- package/lib/esm/tests/webchat/webchat.addmessages.test.js.map +0 -1
- package/lib/esm/tests/webchat/webchat.component.test.d.ts +0 -1
- package/lib/esm/tests/webchat/webchat.component.test.js +0 -183
- package/lib/esm/tests/webchat/webchat.component.test.js.map +0 -1
- package/lib/esm/tests/webchat.theme.test.d.ts +0 -1
- package/lib/esm/tests/webchat.theme.test.js +0 -123
- package/lib/esm/tests/webchat.theme.test.js.map +0 -1
- /package/lib/cjs/{src/app.d.ts → app.d.ts} +0 -0
- /package/lib/cjs/{src/app.js → app.js} +0 -0
- /package/lib/cjs/{src/botonic-tester.d.ts → botonic-tester.d.ts} +0 -0
- /package/lib/cjs/{src/components → components}/button.d.ts +0 -0
- /package/lib/cjs/{src/components → components}/buttons-disabler.d.ts +0 -0
- /package/lib/cjs/{src/components → components}/buttons-disabler.js +0 -0
- /package/lib/cjs/{src/components → components}/carousel.d.ts +0 -0
- /package/lib/cjs/{src/components → components}/components.d.ts +0 -0
- /package/lib/cjs/{src/components → components}/components.js +0 -0
- /package/lib/cjs/{src/components → components}/element.d.ts +0 -0
- /package/lib/cjs/{src/components → components}/index-types.d.ts +0 -0
- /package/lib/cjs/{src/components → components}/index-types.js +0 -0
- /package/lib/cjs/{src/components → components}/index.d.ts +0 -0
- /package/lib/cjs/{src/components → components}/index.js +0 -0
- /package/lib/cjs/{src/components → components}/location.d.ts +0 -0
- /package/lib/cjs/{src/components → components}/markdown.d.ts +0 -0
- /package/lib/cjs/{src/components → components}/markdown.js +0 -0
- /package/lib/cjs/{src/components → components}/message/index.d.ts +0 -0
- /package/lib/cjs/{src/components → components}/message/message-image.d.ts +0 -0
- /package/lib/cjs/{src/components → components}/message/styles.d.ts +0 -0
- /package/lib/cjs/{src/components → components}/message/styles.js +0 -0
- /package/lib/cjs/{src/components → components}/message-template.d.ts +0 -0
- /package/lib/cjs/{src/components → components}/multichannel/facebook/facebook.d.ts +0 -0
- /package/lib/cjs/{src/components → components}/multichannel/facebook/facebook.js +0 -0
- /package/lib/cjs/{src/components → components}/multichannel/index-types.d.ts +0 -0
- /package/lib/cjs/{src/components → components}/multichannel/index-types.js +0 -0
- /package/lib/cjs/{src/components → components}/multichannel/index.d.ts +0 -0
- /package/lib/cjs/{src/components → components}/multichannel/index.js +0 -0
- /package/lib/cjs/{src/components → components}/multichannel/multichannel-carousel.d.ts +0 -0
- /package/lib/cjs/{src/components → components}/multichannel/multichannel-context.d.ts +0 -0
- /package/lib/cjs/{src/components → components}/multichannel/multichannel-context.js +0 -0
- /package/lib/cjs/{src/components → components}/multichannel/multichannel-utils.d.ts +0 -0
- /package/lib/cjs/{src/components → components}/multichannel/multichannel-utils.js +0 -0
- /package/lib/cjs/{src/components → components}/multichannel/multichannel.d.ts +0 -0
- /package/lib/cjs/{src/components → components}/multichannel/whatsapp/markdown.d.ts +0 -0
- /package/lib/cjs/{src/components → components}/multichannel/whatsapp/markdown.js +0 -0
- /package/lib/cjs/{src/components → components}/pic.d.ts +0 -0
- /package/lib/cjs/{src/components → components}/reply.d.ts +0 -0
- /package/lib/cjs/{src/components → components}/share-button.d.ts +0 -0
- /package/lib/cjs/{src/components → components}/subtitle.d.ts +0 -0
- /package/lib/cjs/{src/components → components}/text.d.ts +0 -0
- /package/lib/cjs/{src/components → components}/title.d.ts +0 -0
- /package/lib/cjs/{src/components → components}/webchat-settings.d.ts +0 -0
- /package/lib/cjs/{src/components → components}/whatsapp-button-list.d.ts +0 -0
- /package/lib/cjs/{src/components → components}/whatsapp-template.d.ts +0 -0
- /package/lib/cjs/{src/constants.d.ts → constants.d.ts} +0 -0
- /package/lib/cjs/{src/constants.js → constants.js} +0 -0
- /package/lib/cjs/{src/contexts.d.ts → contexts.d.ts} +0 -0
- /package/lib/cjs/{src/contexts.js → contexts.js} +0 -0
- /package/lib/cjs/{src/dev-app.d.ts → dev-app.d.ts} +0 -0
- /package/lib/cjs/{src/index-types.d.ts → index-types.d.ts} +0 -0
- /package/lib/cjs/{src/index-types.js → index-types.js} +0 -0
- /package/lib/cjs/{src/index.d.ts → index.d.ts} +0 -0
- /package/lib/cjs/{src/index.js → index.js} +0 -0
- /package/lib/cjs/{src/message-utils.d.ts → message-utils.d.ts} +0 -0
- /package/lib/cjs/{src/message-utils.js → message-utils.js} +0 -0
- /package/lib/cjs/{src/msg-to-botonic.d.ts → msg-to-botonic.d.ts} +0 -0
- /package/lib/cjs/{src/node-app.d.ts → node-app.d.ts} +0 -0
- /package/lib/cjs/{src/node-app.js → node-app.js} +0 -0
- /package/lib/cjs/{src/util → util}/dom.d.ts +0 -0
- /package/lib/cjs/{src/util → util}/dom.js +0 -0
- /package/lib/cjs/{src/util → util}/environment.d.ts +0 -0
- /package/lib/cjs/{src/util → util}/environment.js +0 -0
- /package/lib/cjs/{src/util → util}/index.d.ts +0 -0
- /package/lib/cjs/{src/util → util}/index.js +0 -0
- /package/lib/cjs/{src/util → util}/logs.d.ts +0 -0
- /package/lib/cjs/{src/util → util}/logs.js +0 -0
- /package/lib/cjs/{src/util → util}/objects.d.ts +0 -0
- /package/lib/cjs/{src/util → util}/objects.js +0 -0
- /package/lib/cjs/{src/util → util}/react.d.ts +0 -0
- /package/lib/cjs/{src/util → util}/react.js +0 -0
- /package/lib/cjs/{src/util → util}/regexs.d.ts +0 -0
- /package/lib/cjs/{src/util → util}/regexs.js +0 -0
- /package/lib/cjs/{src/util → util}/webchat.d.ts +0 -0
- /package/lib/cjs/{src/util → util}/webchat.js +0 -0
- /package/lib/cjs/{src/webchat → webchat}/actions.d.ts +0 -0
- /package/lib/cjs/{src/webchat → webchat}/actions.js +0 -0
- /package/lib/cjs/{src/webchat → webchat}/components/styled-scrollbar.d.ts +0 -0
- /package/lib/cjs/{src/webchat → webchat}/components/styled-scrollbar.js +0 -0
- /package/lib/cjs/{src/webchat → webchat}/devices/device-adapter.d.ts +0 -0
- /package/lib/cjs/{src/webchat → webchat}/devices/device-adapter.js +0 -0
- /package/lib/cjs/{src/webchat → webchat}/devices/index.d.ts +0 -0
- /package/lib/cjs/{src/webchat → webchat}/devices/index.js +0 -0
- /package/lib/cjs/{src/webchat → webchat}/devices/scrollbar-controller.d.ts +0 -0
- /package/lib/cjs/{src/webchat → webchat}/devices/scrollbar-controller.js +0 -0
- /package/lib/cjs/{src/webchat → webchat}/devices/webchat-resizer.d.ts +0 -0
- /package/lib/cjs/{src/webchat → webchat}/devices/webchat-resizer.js +0 -0
- /package/lib/cjs/{src/webchat → webchat}/hooks/index.d.ts +0 -0
- /package/lib/cjs/{src/webchat → webchat}/hooks/index.js +0 -0
- /package/lib/cjs/{src/webchat → webchat}/hooks/use-component-visible.d.ts +0 -0
- /package/lib/cjs/{src/webchat → webchat}/hooks/use-component-visible.js +0 -0
- /package/lib/cjs/{src/webchat → webchat}/hooks/use-component-will-mount.d.ts +0 -0
- /package/lib/cjs/{src/webchat → webchat}/hooks/use-component-will-mount.js +0 -0
- /package/lib/cjs/{src/webchat → webchat}/hooks/use-previous.d.ts +0 -0
- /package/lib/cjs/{src/webchat → webchat}/hooks/use-previous.js +0 -0
- /package/lib/cjs/{src/webchat → webchat}/hooks/use-typing.d.ts +0 -0
- /package/lib/cjs/{src/webchat → webchat}/hooks/use-typing.js +0 -0
- /package/lib/cjs/{src/webchat → webchat}/hooks/use-webchat.d.ts +0 -0
- /package/lib/cjs/{src/webchat → webchat}/hooks/use-webchat.js +0 -0
- /package/lib/cjs/{src/webchat → webchat}/index-types.d.ts +0 -0
- /package/lib/cjs/{src/webchat → webchat}/index-types.js +0 -0
- /package/lib/cjs/{src/webchat → webchat}/index.d.ts +0 -0
- /package/lib/cjs/{src/webchat → webchat}/index.js +0 -0
- /package/lib/cjs/{src/webchat → webchat}/message-list/scroll-button.d.ts +0 -0
- /package/lib/cjs/{src/webchat → webchat}/message-list/styles.d.ts +0 -0
- /package/lib/cjs/{src/webchat → webchat}/message-list/styles.js +0 -0
- /package/lib/cjs/{src/webchat → webchat}/message-list/unread-messages-banner.d.ts +0 -0
- /package/lib/cjs/{src/webchat → webchat}/message-list/use-debounce.d.ts +0 -0
- /package/lib/cjs/{src/webchat → webchat}/message-list/use-debounce.js +0 -0
- /package/lib/cjs/{src/webchat → webchat}/messages-reducer.d.ts +0 -0
- /package/lib/cjs/{src/webchat → webchat}/messages-reducer.js +0 -0
- /package/lib/cjs/{src/webchat → webchat}/trigger-button/index.d.ts +0 -0
- /package/lib/cjs/{src/webchat → webchat}/trigger-button/styles.d.ts +0 -0
- /package/lib/cjs/{src/webchat → webchat}/trigger-button/styles.js +0 -0
- /package/lib/cjs/{src/webchat → webchat}/use-storage-state-hook.d.ts +0 -0
- /package/lib/cjs/{src/webchat → webchat}/use-storage-state-hook.js +0 -0
- /package/lib/cjs/{src/webchat → webchat}/webchat-dev.d.ts +0 -0
- /package/lib/cjs/{src/webchat → webchat}/webchat-reducer.d.ts +0 -0
- /package/lib/cjs/{src/webchat → webchat}/webchat-reducer.js +0 -0
- /package/lib/cjs/{src/webchat → webchat}/webchat.d.ts +0 -0
- /package/lib/cjs/{src/webview-app.d.ts → webview-app.d.ts} +0 -0
- /package/lib/esm/{src/app.d.ts → app.d.ts} +0 -0
- /package/lib/esm/{src/botonic-tester.d.ts → botonic-tester.d.ts} +0 -0
- /package/lib/esm/{src/components → components}/button.d.ts +0 -0
- /package/lib/esm/{src/components → components}/buttons-disabler.d.ts +0 -0
- /package/lib/esm/{src/components → components}/carousel.d.ts +0 -0
- /package/lib/esm/{src/components → components}/components.d.ts +0 -0
- /package/lib/esm/{src/components → components}/element.d.ts +0 -0
- /package/lib/esm/{src/components → components}/index-types.d.ts +0 -0
- /package/lib/esm/{src/components → components}/index.d.ts +0 -0
- /package/lib/esm/{src/components → components}/location.d.ts +0 -0
- /package/lib/esm/{src/components → components}/markdown.d.ts +0 -0
- /package/lib/esm/{src/components → components}/message/index.d.ts +0 -0
- /package/lib/esm/{src/components → components}/message/message-image.d.ts +0 -0
- /package/lib/esm/{src/components → components}/message/styles.d.ts +0 -0
- /package/lib/esm/{src/components → components}/message-template.d.ts +0 -0
- /package/lib/esm/{src/components → components}/multichannel/facebook/facebook.d.ts +0 -0
- /package/lib/esm/{src/components → components}/multichannel/index-types.d.ts +0 -0
- /package/lib/esm/{src/components → components}/multichannel/index.d.ts +0 -0
- /package/lib/esm/{src/components → components}/multichannel/multichannel-carousel.d.ts +0 -0
- /package/lib/esm/{src/components → components}/multichannel/multichannel-context.d.ts +0 -0
- /package/lib/esm/{src/components → components}/multichannel/multichannel-utils.d.ts +0 -0
- /package/lib/esm/{src/components → components}/multichannel/multichannel.d.ts +0 -0
- /package/lib/esm/{src/components → components}/multichannel/whatsapp/markdown.d.ts +0 -0
- /package/lib/esm/{src/components → components}/pic.d.ts +0 -0
- /package/lib/esm/{src/components → components}/reply.d.ts +0 -0
- /package/lib/esm/{src/components → components}/share-button.d.ts +0 -0
- /package/lib/esm/{src/components → components}/subtitle.d.ts +0 -0
- /package/lib/esm/{src/components → components}/text.d.ts +0 -0
- /package/lib/esm/{src/components → components}/title.d.ts +0 -0
- /package/lib/esm/{src/components → components}/webchat-settings.d.ts +0 -0
- /package/lib/esm/{src/components → components}/whatsapp-button-list.d.ts +0 -0
- /package/lib/esm/{src/components → components}/whatsapp-template.d.ts +0 -0
- /package/lib/esm/{src/constants.d.ts → constants.d.ts} +0 -0
- /package/lib/esm/{src/contexts.d.ts → contexts.d.ts} +0 -0
- /package/lib/esm/{src/dev-app.d.ts → dev-app.d.ts} +0 -0
- /package/lib/esm/{src/index-types.d.ts → index-types.d.ts} +0 -0
- /package/lib/esm/{src/index.d.ts → index.d.ts} +0 -0
- /package/lib/esm/{src/message-utils.d.ts → message-utils.d.ts} +0 -0
- /package/lib/esm/{src/msg-to-botonic.d.ts → msg-to-botonic.d.ts} +0 -0
- /package/lib/esm/{src/node-app.d.ts → node-app.d.ts} +0 -0
- /package/lib/esm/{src/util → util}/dom.d.ts +0 -0
- /package/lib/esm/{src/util → util}/environment.d.ts +0 -0
- /package/lib/esm/{src/util → util}/index.d.ts +0 -0
- /package/lib/esm/{src/util → util}/logs.d.ts +0 -0
- /package/lib/esm/{src/util → util}/objects.d.ts +0 -0
- /package/lib/esm/{src/util → util}/react.d.ts +0 -0
- /package/lib/esm/{src/util → util}/regexs.d.ts +0 -0
- /package/lib/esm/{src/util → util}/webchat.d.ts +0 -0
- /package/lib/esm/{src/webchat → webchat}/actions.d.ts +0 -0
- /package/lib/esm/{src/webchat → webchat}/components/styled-scrollbar.d.ts +0 -0
- /package/lib/esm/{src/webchat → webchat}/devices/device-adapter.d.ts +0 -0
- /package/lib/esm/{src/webchat → webchat}/devices/index.d.ts +0 -0
- /package/lib/esm/{src/webchat → webchat}/devices/scrollbar-controller.d.ts +0 -0
- /package/lib/esm/{src/webchat → webchat}/devices/webchat-resizer.d.ts +0 -0
- /package/lib/esm/{src/webchat → webchat}/hooks/index.d.ts +0 -0
- /package/lib/esm/{src/webchat → webchat}/hooks/use-component-visible.d.ts +0 -0
- /package/lib/esm/{src/webchat → webchat}/hooks/use-component-will-mount.d.ts +0 -0
- /package/lib/esm/{src/webchat → webchat}/hooks/use-previous.d.ts +0 -0
- /package/lib/esm/{src/webchat → webchat}/hooks/use-typing.d.ts +0 -0
- /package/lib/esm/{src/webchat → webchat}/hooks/use-webchat.d.ts +0 -0
- /package/lib/esm/{src/webchat → webchat}/index-types.d.ts +0 -0
- /package/lib/esm/{src/webchat → webchat}/index.d.ts +0 -0
- /package/lib/esm/{src/webchat → webchat}/message-list/scroll-button.d.ts +0 -0
- /package/lib/esm/{src/webchat → webchat}/message-list/styles.d.ts +0 -0
- /package/lib/esm/{src/webchat → webchat}/message-list/unread-messages-banner.d.ts +0 -0
- /package/lib/esm/{src/webchat → webchat}/message-list/use-debounce.d.ts +0 -0
- /package/lib/esm/{src/webchat → webchat}/messages-reducer.d.ts +0 -0
- /package/lib/esm/{src/webchat → webchat}/trigger-button/index.d.ts +0 -0
- /package/lib/esm/{src/webchat → webchat}/trigger-button/styles.d.ts +0 -0
- /package/lib/esm/{src/webchat → webchat}/use-storage-state-hook.d.ts +0 -0
- /package/lib/esm/{src/webchat → webchat}/webchat-dev.d.ts +0 -0
- /package/lib/esm/{src/webchat → webchat}/webchat-reducer.d.ts +0 -0
- /package/lib/esm/{src/webchat → webchat}/webchat.d.ts +0 -0
- /package/lib/esm/{src/webview-app.d.ts → webview-app.d.ts} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"custom-message.js","sourceRoot":"","sources":["../../../src/components/custom-message.jsx"],"names":[],"mappings":";;;;;AAAA,wCAAqC;AACrC,wEAAgC;AAChC,0DAAyB;AAEzB,gDAAwC;AACxC,2DAA4D;AAC5D,uCAAkD;AAClD,yCAAyD;AACzD,uCAAmC;AACnC,mCAA+B;AAE/B;;;;;;GAMG;AACI,MAAM,aAAa,GAAG,CAAC,EAC5B,IAAI,EACJ,SAAS,EAAE,sBAAsB,EACjC,YAAY,GAAG,EAAE,EACjB,aAAa,EAAE,aAAa,GAAG,IAAA,oCAAmB,GAAE,GACrD,EAAE,EAAE;IACH,MAAM,aAAa,GAAG,KAAK,CAAC,EAAE;QAC5B,IAAA,0BAAmB,EAAC,YAAY,EAAE,gBAAgB,CAAC,CAAA;QACnD,IAAI,YAAY,CAAC,MAAM,KAAK,qBAAO,CAAC,IAAI;YAAE,YAAY,CAAC,GAAG,GAAG,CAAC,CAAA;QAC9D,OAAO,CACL,uBAAC,iBAAO,OACF,IAAA,sBAAK,EAAC,IAAA,iCAAyB,EAAC,YAAY,CAAC,EAAE,KAAK,CAAC,E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B;gBAChC,cAAc,EAAE,IAAI;aACrB,EACD,MAAM,EAAE,KAAK,CAAC,MAAM,EACpB,QAAQ,EAAE,KAAK,CAAC,QAAQ,aAExB,uBAAC,aAAa,OAA2B,kBAAkB,YACzD,uBAAC,sBAAsB,OAAK,kBAAkB,YAC3C,sBAAsB,GACA,IAHP,eAAe,CAInB,EACf,OAAO,IACM,CACjB,CAAA;IACH,CAAC,CAAA;IACD,gBAAgB,CAAC,cAAc,GAAG,IAAI,CAAA;IACtC,8CAA8C;IAC9C,gBAAgB,CAAC,WAAW,GAAG,GAAG,CAAC,EAAE,CAAC,CACpC,uBAAC,gBAAgB,IACf,EAAE,EAAE,GAAG,CAAC,EAAE,EAEV,IAAI,EAAE,GAAG,CAAC,IAAI,KACV,GAAG,CAAC,IAAI,EACZ,MAAM,EAAE,GAAG,CAAC,MAAM,EAClB,QAAQ,EAAE,GAAG,CAAC,QAAQ,IAJjB,GAAG,CAAC,GAAG,CAKZ,CACH,CAAA;IACD,OAAO,gBAAgB,CAAA;AACzB,CAAC,CAAA;AAzEY,QAAA,aAAa,iBAyEzB"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Document = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
6
|
+
const core_1 = require("@botonic/core");
|
|
7
|
+
const react_1 = tslib_1.__importStar(require("react"));
|
|
8
|
+
const styled_components_1 = tslib_1.__importDefault(require("styled-components"));
|
|
9
|
+
const constants_1 = require("../constants");
|
|
10
|
+
const contexts_1 = require("../contexts");
|
|
11
|
+
const environment_1 = require("../util/environment");
|
|
12
|
+
const message_1 = require("./message");
|
|
13
|
+
const StyledButton = styled_components_1.default.a `
|
|
14
|
+
display: block;
|
|
15
|
+
height: 25px;
|
|
16
|
+
background-color: #f0f0f0;
|
|
17
|
+
padding: 10px;
|
|
18
|
+
text-align: center;
|
|
19
|
+
border-radius: 5px;
|
|
20
|
+
color: black;
|
|
21
|
+
font-weight: bold;
|
|
22
|
+
line-height: 25px;
|
|
23
|
+
text-decoration: none;
|
|
24
|
+
border: 1px solid black;
|
|
25
|
+
opacity: 0.9;
|
|
26
|
+
&:hover {
|
|
27
|
+
opacity: 1;
|
|
28
|
+
}
|
|
29
|
+
`;
|
|
30
|
+
const serialize = documentProps => {
|
|
31
|
+
return { document: documentProps.src };
|
|
32
|
+
};
|
|
33
|
+
const Document = props => {
|
|
34
|
+
props = { ...props, src: (0, environment_1.staticAsset)(props.src) };
|
|
35
|
+
let content = props.children;
|
|
36
|
+
const { getThemeProperty } = (0, react_1.useContext)(contexts_1.WebchatContext);
|
|
37
|
+
let documentDownload = getThemeProperty(constants_1.WEBCHAT.CUSTOM_PROPERTIES.documentDownload, {});
|
|
38
|
+
if (typeof documentDownload === 'function')
|
|
39
|
+
documentDownload = documentDownload(props.from);
|
|
40
|
+
if ((0, core_1.isBrowser)()) {
|
|
41
|
+
content = ((0, jsx_runtime_1.jsx)(StyledButton, { href: props.src, target: '_blank', rel: 'noreferrer', style: {
|
|
42
|
+
...documentDownload.style,
|
|
43
|
+
}, children: documentDownload.text || 'Download' }));
|
|
44
|
+
}
|
|
45
|
+
return ((0, jsx_runtime_1.jsx)(message_1.Message, { role: constants_1.ROLES.DOCUMENT_MESSAGE, json: serialize(props), ...props, type: core_1.INPUT.DOCUMENT, children: content }));
|
|
46
|
+
};
|
|
47
|
+
exports.Document = Document;
|
|
48
|
+
exports.Document.serialize = serialize;
|
|
49
|
+
//# sourceMappingURL=document.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"document.js","sourceRoot":"","sources":["../../../src/components/document.jsx"],"names":[],"mappings":";;;;;AAAA,wCAAgD;AAChD,uDAAyC;AACzC,kFAAsC;AAEtC,4CAA6C;AAC7C,0CAA4C;AAC5C,qDAAiD;AACjD,uCAAmC;AAEnC,MAA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
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Element = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
6
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
7
|
+
const styled_components_1 = tslib_1.__importDefault(require("styled-components"));
|
|
8
|
+
const constants_1 = require("../constants");
|
|
9
|
+
const react_2 = require("../util/react");
|
|
10
|
+
const ElementContainer = styled_components_1.default.div `
|
|
11
|
+
display: flex;
|
|
12
|
+
flex-direction: column;
|
|
13
|
+
width: ${constants_1.WEBCHAT.DEFAULTS.ELEMENT_WIDTH}px;
|
|
14
|
+
margin-right: ${constants_1.WEBCHAT.DEFAULTS.ELEMENT_MARGIN_RIGHT}px;
|
|
15
|
+
border-radius: 6px;
|
|
16
|
+
border: 1px solid ${constants_1.COLORS.SEASHELL_WHITE};
|
|
17
|
+
overflow: hidden;
|
|
18
|
+
justify-content: space-between;
|
|
19
|
+
`;
|
|
20
|
+
const Element = props => {
|
|
21
|
+
const renderBrowser = () => ((0, jsx_runtime_1.jsx)(ElementContainer, { children: props.children }));
|
|
22
|
+
const renderNode = () => (0, jsx_runtime_1.jsx)("element", { children: props.children });
|
|
23
|
+
return (0, react_2.renderComponent)({ renderBrowser, renderNode });
|
|
24
|
+
};
|
|
25
|
+
exports.Element = Element;
|
|
26
|
+
exports.Element.serialize = elementProps => {
|
|
27
|
+
const element = Object.assign({}, ...elementProps.children
|
|
28
|
+
.filter(c => c && c.type && c.type.name != 'Button')
|
|
29
|
+
.map(c => c.type.serialize && c.type.serialize(c.props)));
|
|
30
|
+
// When we are serializer buttons from backend, we are receiving the data
|
|
31
|
+
// as an array of buttons, so we have to keep robust with serve and deal with arrays
|
|
32
|
+
element.buttons = [
|
|
33
|
+
...elementProps.children
|
|
34
|
+
.filter(c => {
|
|
35
|
+
if (c instanceof Array)
|
|
36
|
+
return true;
|
|
37
|
+
return c && c.type && c.type.name == 'Button';
|
|
38
|
+
})
|
|
39
|
+
.map(b => {
|
|
40
|
+
if (b instanceof Array) {
|
|
41
|
+
return b.map(bb => bb &&
|
|
42
|
+
bb.type &&
|
|
43
|
+
bb.type.serialize &&
|
|
44
|
+
bb.type.serialize(bb.props).button);
|
|
45
|
+
}
|
|
46
|
+
return (b && b.type && b.type.serialize && b.type.serialize(b.props).button);
|
|
47
|
+
}),
|
|
48
|
+
];
|
|
49
|
+
// When we have the buttons from backend, we have all buttons inside an array on the first position
|
|
50
|
+
// of another array in element['buttons'] we want that element['buttons'] to be an array of buttons,
|
|
51
|
+
// not an array of another array of buttons
|
|
52
|
+
if (element.buttons[0] instanceof Array)
|
|
53
|
+
element.buttons = element.buttons[0];
|
|
54
|
+
return element;
|
|
55
|
+
};
|
|
56
|
+
//# sourceMappingURL=element.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"element.js","sourceRoot":"","sources":["../../../src/components/element.jsx"],"names":[],"mappings":";;;;;AAAA,0DAAyB;AACzB,kFAAsC;AAEtC,4CAA8C;AAC9C,yCAA+C;AAE/C,MAAM,gBAAgB,GAAG,2BAAM,CAAC,GAAG,CAAA;;;WAGxB,mBAAO,CAAC,QAAQ,CAAC,aAAa;kBACvB,mBAAO,CAAC,QAAQ,CAAC,oBAAoB;;sBAEjC,kBAAM,CAAC,cAAc;;;CAG1C,CAAA;AAEM,MAAM,OAAO,GAAG,KAAK,CAAC,EAAE;IAC7B,MAAM,aAAa,GAAG,GAAG,EAAE,CAAC,CAC1B,uBAAC,gBAAgB,cAAE,KAAK,CAAC,QAAQ,GAAoB,CACtD,CAAA;IAED,MAAM,UAAU,GAAG,GAAG,EAAE,CAAC,8CAAU,KAAK,CAAC,QAAQ,GAAW,CAAA;IAE5D,OAAO,IAAA,uBAAe,EAAC,EAAE,aAAa,EAAE,UAAU,EAAE,CAAC,CAAA;AACvD,CAAC,CA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IACD,mGAAmG;IACnG,oGAAoG;IACpG,2CAA2C;IAC3C,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,YAAY,KAAK;QAAE,OAAO,CAAC,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAA;IAC7E,OAAO,OAAO,CAAA;AAChB,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function Handoff(props: any): JSX.Element;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Handoff = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
6
|
+
const react_1 = tslib_1.__importStar(require("react"));
|
|
7
|
+
const styled_components_1 = tslib_1.__importDefault(require("styled-components"));
|
|
8
|
+
const constants_1 = require("../constants");
|
|
9
|
+
const contexts_1 = require("../contexts");
|
|
10
|
+
const Container = styled_components_1.default.div `
|
|
11
|
+
display: flex;
|
|
12
|
+
font-family: inherit;
|
|
13
|
+
flex-direction: column;
|
|
14
|
+
justify-content: center;
|
|
15
|
+
align-items: center;
|
|
16
|
+
padding: 24px;
|
|
17
|
+
`;
|
|
18
|
+
const TransferredContainer = styled_components_1.default.div `
|
|
19
|
+
text-align: center;
|
|
20
|
+
white-space: normal;
|
|
21
|
+
`;
|
|
22
|
+
const EndedContainer = styled_components_1.default.div `
|
|
23
|
+
text-align: center;
|
|
24
|
+
white-space: normal;
|
|
25
|
+
`;
|
|
26
|
+
const StyledButton = styled_components_1.default.button `
|
|
27
|
+
max-width: 60%;
|
|
28
|
+
padding: 12px 24px;
|
|
29
|
+
background-color: ${constants_1.COLORS.SOLID_WHITE};
|
|
30
|
+
border: none;
|
|
31
|
+
border-radius: 4px;
|
|
32
|
+
margin-top: 8px;
|
|
33
|
+
cursor: pointer;
|
|
34
|
+
`;
|
|
35
|
+
const Handoff = props => {
|
|
36
|
+
const { resolveCase } = (0, react_1.useContext)(contexts_1.WebchatContext);
|
|
37
|
+
const [state, setState] = (0, react_1.useState)({ showContinue: true });
|
|
38
|
+
const continueClick = () => {
|
|
39
|
+
setState({ showContinue: false });
|
|
40
|
+
resolveCase();
|
|
41
|
+
};
|
|
42
|
+
const bgColor = state.showContinue
|
|
43
|
+
? constants_1.COLORS.FRINGY_FLOWER_GREEN
|
|
44
|
+
: constants_1.COLORS.TASMAN_GRAY;
|
|
45
|
+
const fontColor = state.showContinue
|
|
46
|
+
? constants_1.COLORS.APPLE_GREEN
|
|
47
|
+
: constants_1.COLORS.CACTUS_GREEN;
|
|
48
|
+
return ((0, jsx_runtime_1.jsxs)(Container, { style: {
|
|
49
|
+
color: fontColor,
|
|
50
|
+
backgroundColor: bgColor,
|
|
51
|
+
}, children: [state.showContinue ? ((0, jsx_runtime_1.jsx)(TransferredContainer, { children: "Conversation transferred to a human agent..." })) : ((0, jsx_runtime_1.jsx)(EndedContainer, { children: "Human handoff ended" })), state.showContinue && ((0, jsx_runtime_1.jsx)(StyledButton, { onClick: continueClick, children: "Continue" }))] }));
|
|
52
|
+
};
|
|
53
|
+
exports.Handoff = Handoff;
|
|
54
|
+
//# sourceMappingURL=handoff.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handoff.js","sourceRoot":"","sources":["../../../src/components/handoff.jsx"],"names":[],"mappings":";;;;;AAAA,uDAAmD;AACnD,kFAAsC;AAEtC,4CAAqC;AACrC,0CAA4C;AAE5C,MAAM,SAAS,GAAG,2BAAM,CAAC,GAAG,CAAA;;;;;;;CAO3B,CAAA;AAED,MAAM,oBAAoB,GAAG,2BAAM,CAAC,GAAG,CAAA;;;CAGtC,CAAA;AAED,MAAM,cAAc,GAAG,2BAAM,CAAC,GAAG,CAAA;;;CAGhC,CAAA;AAED,MAAM,YAAY,GAAG,2BAAM,CAAC,MAAM,CAAA;;;sBAGZ,kBAAM,CAAC,WAAW;;;;;CAKvC,CAAA;AAEM,MAAM,OAAO,GAAG,KAAK,CAAC,EAAE;IAC7B,MAAM,EAAE,WAAW,EAAE,GAAG,IAAA,kBAAU,EAAC,yBAAc,CAAC,CAAA;IAClD,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,IAAA,gBAAQ,EAAC,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC,CAAA;IAE1D,MAAM,aAAa,GAAG,GAAG,EAAE;QACzB,QAAQ,CAAC,EAAE,YAAY,EAAE,KAAK,EAAE,CAAC,CAAA;QACjC,WAAW,EAAE,CAAA;IACf,CAAC,CAAA;IAED,MAAM,OAAO,GAAG,KAAK,CAAC,YAAY;QAChC,CAAC,CAAC,kBAAM,CAAC,mBAAmB;QAC5B,CAAC,CAAC,kBAAM,CAAC,WAAW,CAAA;IACtB,MAAM,SAAS,GAAG,KAAK,CAAC,YAAY;QAClC,CAAC,CAAC,kBAAM,CAAC,WAAW;QACpB,CAAC,CAAC,kBAAM,CAAC,YAAY,CAAA;IACvB,OAAO,CACL,wBAAC,SAAS,IACR,KAAK,EAAE;YACL,KAAK,EAAE,SAAS;YAChB,eAAe,EAAE,OAAO;SACzB,aAEA,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,CACpB,uBAAC,oBAAoB,+DAEE,CACxB,CAAC,CAAC,CAAC,CACF,uBAAC,cAAc,sCAAqC,CACrD,EACA,KAAK,CAAC,YAAY,IAAI,CACrB,uBAAC,YAAY,IAAC,OAAO,EAAE,aAAa,yBAAyB,CAC9D,IACS,CACb,CAAA;AACH,CAAC,CAAA;AAlCY,QAAA,OAAO,WAkCnB"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Image = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
6
|
+
const core_1 = require("@botonic/core");
|
|
7
|
+
const react_1 = tslib_1.__importStar(require("react"));
|
|
8
|
+
const styled_components_1 = tslib_1.__importDefault(require("styled-components"));
|
|
9
|
+
const constants_1 = require("../constants");
|
|
10
|
+
const contexts_1 = require("../contexts");
|
|
11
|
+
const environment_1 = require("../util/environment");
|
|
12
|
+
const message_1 = require("./message");
|
|
13
|
+
const StyledImage = styled_components_1.default.img `
|
|
14
|
+
border-radius: 8px;
|
|
15
|
+
max-width: 150px;
|
|
16
|
+
max-height: 150px;
|
|
17
|
+
margin: -3px -6px;
|
|
18
|
+
cursor: ${({ hasPreviewer }) => (hasPreviewer ? 'pointer' : 'auto')};
|
|
19
|
+
`;
|
|
20
|
+
const serialize = imageProps => {
|
|
21
|
+
return { image: imageProps.src };
|
|
22
|
+
};
|
|
23
|
+
const Image = props => {
|
|
24
|
+
props = props.input?.data
|
|
25
|
+
? { ...props, src: props.input.data }
|
|
26
|
+
: { ...props, src: (0, environment_1.staticAsset)(props.src) };
|
|
27
|
+
let content = props.children;
|
|
28
|
+
const [isPreviewerOpened, setIsPreviewerOpened] = (0, react_1.useState)(false);
|
|
29
|
+
const openPreviewer = () => setIsPreviewerOpened(true);
|
|
30
|
+
const closePreviewer = () => setIsPreviewerOpened(false);
|
|
31
|
+
const { getThemeProperty } = (0, react_1.useContext)(contexts_1.WebchatContext);
|
|
32
|
+
const ImagePreviewer = getThemeProperty(constants_1.WEBCHAT.CUSTOM_PROPERTIES.imagePreviewer, null);
|
|
33
|
+
if ((0, core_1.isBrowser)()) {
|
|
34
|
+
content = ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(StyledImage, { src: props.src, onClick: openPreviewer, hasPreviewer: Boolean(ImagePreviewer) }), ImagePreviewer && ((0, jsx_runtime_1.jsx)(ImagePreviewer, { src: props.src, isPreviewerOpened: isPreviewerOpened, openPreviewer: openPreviewer, closePreviewer: closePreviewer }))] }));
|
|
35
|
+
}
|
|
36
|
+
return ((0, jsx_runtime_1.jsx)(message_1.Message, { role: constants_1.ROLES.IMAGE_MESSAGE, json: serialize(props), ...props, type: core_1.INPUT.IMAGE, children: content }));
|
|
37
|
+
};
|
|
38
|
+
exports.Image = Image;
|
|
39
|
+
exports.Image.serialize = serialize;
|
|
40
|
+
//# sourceMappingURL=image.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"image.js","sourceRoot":"","sources":["../../../src/components/image.jsx"],"names":[],"mappings":";;;;;AAAA,wCAAgD;AAChD,uDAAmD;AACnD,kFAAsC;AAEtC,4CAA6C;AAC7C,0CAA4C;AAC5C,qDAAiD;AACjD,uCAAmC;AAEnC,MAAM,WAAW,GAAG,2BAAM,CAAC,GAAG,CAAA;;;;;YAKlB,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC;CACpE,CAAA;AAED,MAAM,SAAS,GAAG,UAAU,CAAC,EAAE;IAC7B,OAAO,EAAE,KAAK,EAAE,UAAU,CAAC,GAAG,EAAE,CAAA;AAClC,CAAC,CAAA;AAEM,MAAM,KAAK,GAAG,KAAK,CAAC,EAAE;IAC3B,KAAK,GAAG,KAAK,CAAC,KAAK,EAAE,IAAI;QACvB,CAAC,CAAC,EAAE,GAAG,KAAK,EAAE,GAAG,EAAE,KAAK,CAAC,KAAK,CAAC,IAAI,EAAE;QACrC,CAAC,CAAC,EAAE,GAAG,KAAK,EAAE,GAAG,EAAE,IAAA,yBAAW,EAAC,KAAK,CAAC,GAAG,CAAC,EAAE,CAAA;IAC7C,IAAI,OAAO,GAAG,KAAK,CAAC,QAAQ,CAAA;IAE5B,MAAM,CAAC,iBAAiB,EAAE,oBAAoB,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAA;IACjE,MAAM,aAAa,GAAG,GAAG,EAAE,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAA;IACtD,MAAM,cAAc,GAAG,GAAG,EAAE,CAAC,oBAAoB,CAAC,KAAK,CAAC,CAAA;IAExD,MAAM,EAAE,gBAAgB,EAAE,GAAG,IAAA,kBAAU,EAAC,yBAAc,CAAC,CAAA;IACvD,MAAM,cAAc,GAAG,gBAAgB,CACrC,mBAAO,CAAC,iBAAiB,CAAC,cAAc,EACxC,IAAI,CACL,CAAA;IACD,IAAI,IAAA,gBAAS,GAAE,EAAE;QACf,OAAO,GAAG,CACR,6DACE,uBAAC,WAAW,IACV,GAAG,EAAE,KAAK,CAAC,GAAG,EACd,OAAO,EAAE,aAAa,EACtB,YAAY,EAAE,OAAO,CAAC,cAAc,CAAC,GACrC,EACD,cAAc,IAAI,CACjB,uBAAC,cAAc,IACb,GAAG,EAAE,KAAK,CAAC,GAAG,EACd,iBAAiB,EAAE,iBAAiB,EACpC,aAAa,EAAE,aAAa,EAC5B,cAAc,EAAE,cAAc,GAC9B,CACH,IACA,CACJ,CAAA;KACF;IACD,OAAO,CACL,uBAAC,iBAAO,IACN,IAAI,EAAE,iBAAK,CAAC,aAAa,EACzB,IAAI,EAAE,SAAS,CAAC,KAAK,CAAC,KAClB,KAAK,EACT,IAAI,EAAE,YAAK,CAAC,KAAK,YAEhB,OAAO,GACA,CACX,CAAA;AACH,CAAC,CAAA;AA5CY,QAAA,KAAK,SA4CjB;AAED,aAAK,CAAC,SAAS,GAAG,SAAS,CAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
// TODO: Reuse types to be typed in respective functions
|
|
4
|
+
// export class ErrorBoundary<Props> extends React.Component<Props> {
|
|
5
|
+
// componentDidCatch(error: Error, errorInfo: ErrorInfo): void
|
|
6
|
+
// }
|
|
7
|
+
// export function createErrorBoundary<Props>(_?: {
|
|
8
|
+
// errorComponent: React.ComponentType
|
|
9
|
+
// }): ErrorBoundary<Props>
|
|
10
|
+
// export function customMessage<Props>(_: {
|
|
11
|
+
// name: string
|
|
12
|
+
// component: React.ComponentType<Props>
|
|
13
|
+
// defaultProps?: Record<string, unknown>
|
|
14
|
+
// errorBoundary?: ErrorBoundary<Props>
|
|
15
|
+
// }): WrappedComponent<Props>
|
|
16
|
+
// export function getDisplayName(component: React.ComponentType): string
|
|
17
|
+
//# sourceMappingURL=index-types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-types.js","sourceRoot":"","sources":["../../../src/components/index-types.ts"],"names":[],"mappings":";;AA8MA,wDAAwD;AACxD,qEAAqE;AACrE,gEAAgE;AAChE,IAAI;AAEJ,mDAAmD;AACnD,wCAAwC;AACxC,2BAA2B;AAE3B,4CAA4C;AAC5C,iBAAiB;AACjB,0CAA0C;AAC1C,2CAA2C;AAC3C,yCAAyC;AACzC,8BAA8B;AAE9B,yEAAyE"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WhatsappTemplate = exports.WhatsappButtonList = exports.WebchatSettings = exports.Video = exports.Title = exports.Text = exports.Subtitle = exports.ShareButton = exports.Reply = exports.Raw = exports.Pic = exports.MessageTemplate = exports.Message = exports.Location = exports.Image = exports.Element = exports.Document = exports.customMessage = exports.Carousel = exports.Button = exports.Audio = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
var audio_1 = require("./audio");
|
|
6
|
+
Object.defineProperty(exports, "Audio", { enumerable: true, get: function () { return audio_1.Audio; } });
|
|
7
|
+
var button_1 = require("./button");
|
|
8
|
+
Object.defineProperty(exports, "Button", { enumerable: true, get: function () { return button_1.Button; } });
|
|
9
|
+
var carousel_1 = require("./carousel");
|
|
10
|
+
Object.defineProperty(exports, "Carousel", { enumerable: true, get: function () { return carousel_1.Carousel; } });
|
|
11
|
+
var custom_message_1 = require("./custom-message");
|
|
12
|
+
Object.defineProperty(exports, "customMessage", { enumerable: true, get: function () { return custom_message_1.customMessage; } });
|
|
13
|
+
var document_1 = require("./document");
|
|
14
|
+
Object.defineProperty(exports, "Document", { enumerable: true, get: function () { return document_1.Document; } });
|
|
15
|
+
var element_1 = require("./element");
|
|
16
|
+
Object.defineProperty(exports, "Element", { enumerable: true, get: function () { return element_1.Element; } });
|
|
17
|
+
var image_1 = require("./image");
|
|
18
|
+
Object.defineProperty(exports, "Image", { enumerable: true, get: function () { return image_1.Image; } });
|
|
19
|
+
tslib_1.__exportStar(require("./index-types"), exports);
|
|
20
|
+
var location_1 = require("./location");
|
|
21
|
+
Object.defineProperty(exports, "Location", { enumerable: true, get: function () { return location_1.Location; } });
|
|
22
|
+
var message_1 = require("./message");
|
|
23
|
+
Object.defineProperty(exports, "Message", { enumerable: true, get: function () { return message_1.Message; } });
|
|
24
|
+
var message_template_1 = require("./message-template");
|
|
25
|
+
Object.defineProperty(exports, "MessageTemplate", { enumerable: true, get: function () { return message_template_1.MessageTemplate; } });
|
|
26
|
+
tslib_1.__exportStar(require("./multichannel"), exports);
|
|
27
|
+
var pic_1 = require("./pic");
|
|
28
|
+
Object.defineProperty(exports, "Pic", { enumerable: true, get: function () { return pic_1.Pic; } });
|
|
29
|
+
var raw_1 = require("./raw");
|
|
30
|
+
Object.defineProperty(exports, "Raw", { enumerable: true, get: function () { return raw_1.Raw; } });
|
|
31
|
+
var reply_1 = require("./reply");
|
|
32
|
+
Object.defineProperty(exports, "Reply", { enumerable: true, get: function () { return reply_1.Reply; } });
|
|
33
|
+
var share_button_1 = require("./share-button");
|
|
34
|
+
Object.defineProperty(exports, "ShareButton", { enumerable: true, get: function () { return share_button_1.ShareButton; } });
|
|
35
|
+
var subtitle_1 = require("./subtitle");
|
|
36
|
+
Object.defineProperty(exports, "Subtitle", { enumerable: true, get: function () { return subtitle_1.Subtitle; } });
|
|
37
|
+
var text_1 = require("./text");
|
|
38
|
+
Object.defineProperty(exports, "Text", { enumerable: true, get: function () { return text_1.Text; } });
|
|
39
|
+
var title_1 = require("./title");
|
|
40
|
+
Object.defineProperty(exports, "Title", { enumerable: true, get: function () { return title_1.Title; } });
|
|
41
|
+
var video_1 = require("./video");
|
|
42
|
+
Object.defineProperty(exports, "Video", { enumerable: true, get: function () { return video_1.Video; } });
|
|
43
|
+
var webchat_settings_1 = require("./webchat-settings");
|
|
44
|
+
Object.defineProperty(exports, "WebchatSettings", { enumerable: true, get: function () { return webchat_settings_1.WebchatSettings; } });
|
|
45
|
+
var whatsapp_button_list_1 = require("./whatsapp-button-list");
|
|
46
|
+
Object.defineProperty(exports, "WhatsappButtonList", { enumerable: true, get: function () { return whatsapp_button_list_1.WhatsappButtonList; } });
|
|
47
|
+
var whatsapp_template_1 = require("./whatsapp-template");
|
|
48
|
+
Object.defineProperty(exports, "WhatsappTemplate", { enumerable: true, get: function () { return whatsapp_template_1.WhatsappTemplate; } });
|
|
49
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":";;;;AAAA,iCAA+B;AAAtB,8FAAA,KAAK,OAAA;AACd,mCAAiC;AAAxB,gGAAA,MAAM,OAAA;AACf,uCAAqC;AAA5B,oGAAA,QAAQ,OAAA;AACjB,mDAAgD;AAAvC,+GAAA,aAAa,OAAA;AACtB,uCAAqC;AAA5B,oGAAA,QAAQ,OAAA;AACjB,qCAAmC;AAA1B,kGAAA,OAAO,OAAA;AAChB,iCAA+B;AAAtB,8FAAA,KAAK,OAAA;AACd,wDAA6B;AAC7B,uCAAqC;AAA5B,oGAAA,QAAQ,OAAA;AACjB,qCAAmC;AAA1B,kGAAA,OAAO,OAAA;AAChB,uDAAoD;AAA3C,mHAAA,eAAe,OAAA;AACxB,yDAA8B;AAC9B,6BAA2B;AAAlB,0FAAA,GAAG,OAAA;AACZ,6BAA2B;AAAlB,0FAAA,GAAG,OAAA;AACZ,iCAA+B;AAAtB,8FAAA,KAAK,OAAA;AACd,+CAA4C;AAAnC,2GAAA,WAAW,OAAA;AACpB,uCAAqC;AAA5B,oGAAA,QAAQ,OAAA;AACjB,+BAA6B;AAApB,4FAAA,IAAI,OAAA;AACb,iCAA+B;AAAtB,8FAAA,KAAK,OAAA;AACd,iCAA+B;AAAtB,8FAAA,KAAK,OAAA;AACd,uDAAoD;AAA3C,mHAAA,eAAe,OAAA;AACxB,+DAK+B;AAJ7B,0HAAA,kBAAkB,OAAA;AAKpB,yDAAsD;AAA7C,qHAAA,gBAAgB,OAAA"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Location = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
6
|
+
const core_1 = require("@botonic/core");
|
|
7
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
8
|
+
const styled_components_1 = tslib_1.__importDefault(require("styled-components"));
|
|
9
|
+
const react_2 = require("../util/react");
|
|
10
|
+
const message_1 = require("./message");
|
|
11
|
+
const Link = styled_components_1.default.a `
|
|
12
|
+
text-decoration: none;
|
|
13
|
+
font-weight: bold;
|
|
14
|
+
target: blank;
|
|
15
|
+
`;
|
|
16
|
+
const serialize = locationProps => {
|
|
17
|
+
return { location: { lat: locationProps.lat, long: locationProps.long } };
|
|
18
|
+
};
|
|
19
|
+
const Location = props => {
|
|
20
|
+
const { lat, long } = props;
|
|
21
|
+
const renderBrowser = () => {
|
|
22
|
+
const locationUrl = `https://www.google.com/maps/search/?api=1&query=${lat},${long}`;
|
|
23
|
+
return ((0, jsx_runtime_1.jsx)(message_1.Message, { json: serialize(props), ...props, type: core_1.INPUT.LOCATION, children: (0, jsx_runtime_1.jsx)(Link, { href: locationUrl, target: '_blank', rel: 'noopener noreferrer', children: props.text || 'Open Location' }) }));
|
|
24
|
+
};
|
|
25
|
+
const renderNode = () => {
|
|
26
|
+
return ((0, jsx_runtime_1.jsxs)("message", { type: core_1.INPUT.LOCATION, children: [(0, jsx_runtime_1.jsx)("lat", { children: lat }), (0, jsx_runtime_1.jsx)("long", { children: long })] }));
|
|
27
|
+
};
|
|
28
|
+
return (0, react_2.renderComponent)({ renderBrowser, renderNode });
|
|
29
|
+
};
|
|
30
|
+
exports.Location = Location;
|
|
31
|
+
exports.Location.serialize = serialize;
|
|
32
|
+
//# sourceMappingURL=location.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"location.js","sourceRoot":"","sources":["../../../src/components/location.jsx"],"names":[],"mappings":";;;;;AAAA,wCAAqC;AACrC,0DAAyB;AACzB,kFAAsC;AAEtC,yCAA+C;AAC/C,uCAAmC;AAEnC,MAAM,IAAI,GAAG,2BAAM,CAAC,CAAC,CAAA;;;;CAIpB,CAAA;AAED,MAAM,SAAS,GAAG,aAAa,CAAC,EAAE;IAChC,OAAO,EAAE,QAAQ,EAAE,EAAE,GAAG,EAAE,aAAa,CAAC,GAAG,EAAE,IAAI,EAAE,aAAa,CAAC,IAAI,EAAE,EAAE,CAAA;AAC3E,CAAC,CAAA;AAEM,MAAM,QAAQ,GAAG,KAAK,CAAC,EAAE;IAC9B,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,KAAK,CAAA;IAE3B,MAAM,aAAa,GAAG,GAAG,EAAE;QACzB,MAAM,WAAW,GAAG,mDAAmD,GAAG,IAAI,IAAI,EAAE,CAAA;QACpF,OAAO,CACL,uBAAC,iBAAO,IAAC,IAAI,EAAE,SAAS,CAAC,KAAK,CAAC,KAAM,KAAK,EAAE,IAAI,EAAE,YAAK,CAAC,QAAQ,YAC9D,uBAAC,IAAI,IAAC,IAAI,EAAE,WAAW,EAAE,MAAM,EAAC,QAAQ,EAAC,GAAG,EAAC,qBAAqB,YAC/D,KAAK,CAAC,IAAI,IAAI,eAAe,GACzB,GACC,CACX,CAAA;IACH,CAAC,CAAA;IAED,MAAM,UAAU,GAAG,GAAG,EAAE;QACtB,OAAO,CACL,qCAAS,IAAI,EAAE,YAAK,CAAC,QAAQ,aAC3B,0CAAM,GAAG,GAAO,EAChB,2CAAO,IAAI,GAAQ,IACX,CACX,CAAA;IACH,CAAC,CAAA;IAED,OAAO,IAAA,uBAAe,EAAC,EAAE,aAAa,EAAE,UAAU,EAAE,CAAC,CAAA;AACvD,CAAC,CAAA;AAxBY,QAAA,QAAQ,YAwBpB;AAED,gBAAQ,CAAC,SAAS,GAAG,SAAS,CAAA"}
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getDefaultMarkdownStyle = exports.getMarkdownStyle = exports.toMarkdownChildren = exports.serializeMarkdown = exports.renderLinks = exports.renderMarkdown = exports.ESCAPED_LINE_BREAK = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const markdown_it_1 = tslib_1.__importDefault(require("markdown-it"));
|
|
6
|
+
const BR_STRING_TAG = '<br/>';
|
|
7
|
+
const BR_STRING_TAG_REGEX = new RegExp('<br\\s*/?>', 'g');
|
|
8
|
+
exports.ESCAPED_LINE_BREAK = '<br>';
|
|
9
|
+
const ESCAPED_LINE_BREAK_REGEX = new RegExp(exports.ESCAPED_LINE_BREAK, 'g');
|
|
10
|
+
const isLineBreakElement = element => element.type === 'br';
|
|
11
|
+
const withLinksTarget = (renderer, target = '_blank') => {
|
|
12
|
+
// Support opening links in new tabs: https://github.com/markdown-it/markdown-it/blob/master/docs/architecture.md#renderer
|
|
13
|
+
const newRenderer = renderer.renderer.rules.link_open ||
|
|
14
|
+
function (tokens, idx, options, env, self) {
|
|
15
|
+
return self.renderToken(tokens, idx, options);
|
|
16
|
+
};
|
|
17
|
+
renderer.renderer.rules.link_open = function (tokens, idx, options, env, self) {
|
|
18
|
+
const aIndex = tokens[idx].attrIndex('target');
|
|
19
|
+
if (aIndex < 0)
|
|
20
|
+
tokens[idx].attrPush(['target', target]);
|
|
21
|
+
else
|
|
22
|
+
tokens[idx].attrs[aIndex][1] = target;
|
|
23
|
+
return newRenderer(tokens, idx, options, env, self);
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
const configureLinksRenderer = () => {
|
|
27
|
+
// zero preset comes with all options disabled, only enabling links
|
|
28
|
+
const linksRenderer = new markdown_it_1.default('zero', { linkify: true }).enable([
|
|
29
|
+
'linkify',
|
|
30
|
+
]);
|
|
31
|
+
withLinksTarget(linksRenderer);
|
|
32
|
+
return linksRenderer;
|
|
33
|
+
};
|
|
34
|
+
const configureMarkdownRenderer = () => {
|
|
35
|
+
const markdownRenderer = new markdown_it_1.default({
|
|
36
|
+
html: true,
|
|
37
|
+
linkify: true,
|
|
38
|
+
typographer: true,
|
|
39
|
+
});
|
|
40
|
+
withLinksTarget(markdownRenderer);
|
|
41
|
+
return markdownRenderer;
|
|
42
|
+
};
|
|
43
|
+
const markdownRenderer = configureMarkdownRenderer();
|
|
44
|
+
const renderMarkdown = text => {
|
|
45
|
+
// markdown-it renderer expects '<br/>' strings to render correctly line breaks
|
|
46
|
+
// Supporting multiline: https://stackoverflow.com/a/20543835
|
|
47
|
+
text = text
|
|
48
|
+
.map(e => {
|
|
49
|
+
if (isLineBreakElement(e))
|
|
50
|
+
return BR_STRING_TAG;
|
|
51
|
+
else if (typeof e === 'string')
|
|
52
|
+
return e
|
|
53
|
+
.replace(BR_STRING_TAG_REGEX, BR_STRING_TAG)
|
|
54
|
+
.replace(ESCAPED_LINE_BREAK_REGEX, BR_STRING_TAG);
|
|
55
|
+
else
|
|
56
|
+
return String(e);
|
|
57
|
+
})
|
|
58
|
+
.join('');
|
|
59
|
+
return markdownRenderer.render(text);
|
|
60
|
+
};
|
|
61
|
+
exports.renderMarkdown = renderMarkdown;
|
|
62
|
+
const linksRenderer = configureLinksRenderer();
|
|
63
|
+
const renderLinks = text => {
|
|
64
|
+
return linksRenderer.render(text);
|
|
65
|
+
};
|
|
66
|
+
exports.renderLinks = renderLinks;
|
|
67
|
+
const serializeMarkdown = children => {
|
|
68
|
+
children = Array.isArray(children) ? children : [children];
|
|
69
|
+
const text = children
|
|
70
|
+
.filter(e => isLineBreakElement(e) || !e.type)
|
|
71
|
+
.map(e => {
|
|
72
|
+
if (Array.isArray(e))
|
|
73
|
+
return (0, exports.serializeMarkdown)(e);
|
|
74
|
+
if (isLineBreakElement(e))
|
|
75
|
+
return exports.ESCAPED_LINE_BREAK;
|
|
76
|
+
else
|
|
77
|
+
return String(e).replace(BR_STRING_TAG_REGEX, exports.ESCAPED_LINE_BREAK);
|
|
78
|
+
})
|
|
79
|
+
.join('');
|
|
80
|
+
return text;
|
|
81
|
+
};
|
|
82
|
+
exports.serializeMarkdown = serializeMarkdown;
|
|
83
|
+
const toMarkdownChildren = children => children.map(e => (isLineBreakElement(e) ? exports.ESCAPED_LINE_BREAK : e));
|
|
84
|
+
exports.toMarkdownChildren = toMarkdownChildren;
|
|
85
|
+
const getMarkdownStyle = (getThemeFn, defaultColor) => getThemeFn('markdownStyle', (0, exports.getDefaultMarkdownStyle)(defaultColor));
|
|
86
|
+
exports.getMarkdownStyle = getMarkdownStyle;
|
|
87
|
+
const getDefaultMarkdownStyle = color => `
|
|
88
|
+
*{
|
|
89
|
+
margin: 0px;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
a {
|
|
93
|
+
text-decoration:none;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
a:link{
|
|
97
|
+
color:${color};
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
a:visited {
|
|
101
|
+
color:${color};
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
a:hover {
|
|
105
|
+
text-shadow: 0px 1px black;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
blockquote {
|
|
109
|
+
margin: 0;
|
|
110
|
+
padding-left: 1.4rem;
|
|
111
|
+
border-left: 4px solid #dadada;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
pre code {
|
|
115
|
+
margin: 0;
|
|
116
|
+
padding: 0;
|
|
117
|
+
white-space: pre;
|
|
118
|
+
border: none;
|
|
119
|
+
background: transparent;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
pre {
|
|
123
|
+
background-color: #f8f8f8;
|
|
124
|
+
border: 1px solid #cccccc;
|
|
125
|
+
font-size: 13px;
|
|
126
|
+
line-height: 19px;
|
|
127
|
+
overflow: auto;
|
|
128
|
+
padding: 6px 10px;
|
|
129
|
+
border-radius: 3px;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
code, tt {
|
|
133
|
+
margin: 0 2px;
|
|
134
|
+
padding: 0 5px;
|
|
135
|
+
white-space: nowrap;
|
|
136
|
+
border: 1px solid #eaeaea;
|
|
137
|
+
background-color: #f8f8f8;
|
|
138
|
+
border-radius: 3px;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
pre {
|
|
142
|
+
background-color: #f8f8f8;
|
|
143
|
+
border: 1px solid #cccccc;
|
|
144
|
+
font-size: 13px;
|
|
145
|
+
line-height: 19px;
|
|
146
|
+
overflow: auto;
|
|
147
|
+
padding: 6px 10px;
|
|
148
|
+
border-radius: 3px;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
pre code, pre tt {
|
|
152
|
+
background-color: transparent;
|
|
153
|
+
border: none;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
table, td, th {
|
|
157
|
+
border: 1px solid black;
|
|
158
|
+
padding:10px;
|
|
159
|
+
}
|
|
160
|
+
`;
|
|
161
|
+
exports.getDefaultMarkdownStyle = getDefaultMarkdownStyle;
|
|
162
|
+
//# sourceMappingURL=markdown.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"markdown.js","sourceRoot":"","sources":["../../../src/components/markdown.js"],"names":[],"mappings":";;;;AAAA,sEAAoC;AAEpC,MAAM,aAAa,GAAG,OAAO,CAAA;AAC7B,MAAM,mBAAmB,GAAG,IAAI,MAAM,CAAC,YAAY,EAA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