@repzo/widget-react-native 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +482 -0
- package/lib/commonjs/agent-ui-blocks.js +159 -0
- package/lib/commonjs/agent-ui-blocks.js.map +1 -0
- package/lib/commonjs/api/client.js +267 -0
- package/lib/commonjs/api/client.js.map +1 -0
- package/lib/commonjs/api/realtime.js +193 -0
- package/lib/commonjs/api/realtime.js.map +1 -0
- package/lib/commonjs/api/sse-parser.js +58 -0
- package/lib/commonjs/api/sse-parser.js.map +1 -0
- package/lib/commonjs/controller.js +23 -0
- package/lib/commonjs/controller.js.map +1 -0
- package/lib/commonjs/device-id.js +75 -0
- package/lib/commonjs/device-id.js.map +1 -0
- package/lib/commonjs/events.js +49 -0
- package/lib/commonjs/events.js.map +1 -0
- package/lib/commonjs/i18n.js +106 -0
- package/lib/commonjs/i18n.js.map +1 -0
- package/lib/commonjs/index.js +98 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/locales.js +85 -0
- package/lib/commonjs/locales.js.map +1 -0
- package/lib/commonjs/package.json +1 -0
- package/lib/commonjs/push/push-notifications.js +208 -0
- package/lib/commonjs/push/push-notifications.js.map +1 -0
- package/lib/commonjs/state/use-widget-state.js +23 -0
- package/lib/commonjs/state/use-widget-state.js.map +1 -0
- package/lib/commonjs/state/widget-store.js +1682 -0
- package/lib/commonjs/state/widget-store.js.map +1 -0
- package/lib/commonjs/storage.js +147 -0
- package/lib/commonjs/storage.js.map +1 -0
- package/lib/commonjs/types.js +44 -0
- package/lib/commonjs/types.js.map +1 -0
- package/lib/commonjs/ui/WidgetProvider.js +404 -0
- package/lib/commonjs/ui/WidgetProvider.js.map +1 -0
- package/lib/commonjs/ui/components/AgentUiBlocks.js +864 -0
- package/lib/commonjs/ui/components/AgentUiBlocks.js.map +1 -0
- package/lib/commonjs/ui/components/Avatar.js +76 -0
- package/lib/commonjs/ui/components/Avatar.js.map +1 -0
- package/lib/commonjs/ui/components/ConversationRow.js +155 -0
- package/lib/commonjs/ui/components/ConversationRow.js.map +1 -0
- package/lib/commonjs/ui/components/ErrorBoundary.js +44 -0
- package/lib/commonjs/ui/components/ErrorBoundary.js.map +1 -0
- package/lib/commonjs/ui/components/Gradient.js +168 -0
- package/lib/commonjs/ui/components/Gradient.js.map +1 -0
- package/lib/commonjs/ui/components/Launcher.js +125 -0
- package/lib/commonjs/ui/components/Launcher.js.map +1 -0
- package/lib/commonjs/ui/components/Markdown.js +257 -0
- package/lib/commonjs/ui/components/Markdown.js.map +1 -0
- package/lib/commonjs/ui/components/OutboundMessageCard.js +157 -0
- package/lib/commonjs/ui/components/OutboundMessageCard.js.map +1 -0
- package/lib/commonjs/ui/components/WidgetPanel.js +131 -0
- package/lib/commonjs/ui/components/WidgetPanel.js.map +1 -0
- package/lib/commonjs/ui/components/icons.js +383 -0
- package/lib/commonjs/ui/components/icons.js.map +1 -0
- package/lib/commonjs/ui/hooks/use-keyboard-overlap.js +113 -0
- package/lib/commonjs/ui/hooks/use-keyboard-overlap.js.map +1 -0
- package/lib/commonjs/ui/hooks/use-reduce-motion.js +38 -0
- package/lib/commonjs/ui/hooks/use-reduce-motion.js.map +1 -0
- package/lib/commonjs/ui/hooks/use-widget-insets.js +41 -0
- package/lib/commonjs/ui/hooks/use-widget-insets.js.map +1 -0
- package/lib/commonjs/ui/screens/chat/ChatView.js +590 -0
- package/lib/commonjs/ui/screens/chat/ChatView.js.map +1 -0
- package/lib/commonjs/ui/screens/chat/ChatView.styles.js +362 -0
- package/lib/commonjs/ui/screens/chat/ChatView.styles.js.map +1 -0
- package/lib/commonjs/ui/screens/chat/ChatView.types.js +6 -0
- package/lib/commonjs/ui/screens/chat/ChatView.types.js.map +1 -0
- package/lib/commonjs/ui/screens/conversations/ConversationsList.js +150 -0
- package/lib/commonjs/ui/screens/conversations/ConversationsList.js.map +1 -0
- package/lib/commonjs/ui/screens/conversations/ConversationsList.styles.js +118 -0
- package/lib/commonjs/ui/screens/conversations/ConversationsList.styles.js.map +1 -0
- package/lib/commonjs/ui/screens/conversations/ConversationsList.types.js +6 -0
- package/lib/commonjs/ui/screens/conversations/ConversationsList.types.js.map +1 -0
- package/lib/commonjs/ui/screens/home/HomeView.js +336 -0
- package/lib/commonjs/ui/screens/home/HomeView.js.map +1 -0
- package/lib/commonjs/ui/screens/home/HomeView.styles.js +245 -0
- package/lib/commonjs/ui/screens/home/HomeView.styles.js.map +1 -0
- package/lib/commonjs/ui/screens/home/HomeView.types.js +6 -0
- package/lib/commonjs/ui/screens/home/HomeView.types.js.map +1 -0
- package/lib/commonjs/ui/screens/home/greeting.js +49 -0
- package/lib/commonjs/ui/screens/home/greeting.js.map +1 -0
- package/lib/commonjs/ui/screens/pre-chat/PreChatForm.js +229 -0
- package/lib/commonjs/ui/screens/pre-chat/PreChatForm.js.map +1 -0
- package/lib/commonjs/ui/screens/pre-chat/PreChatForm.styles.js +125 -0
- package/lib/commonjs/ui/screens/pre-chat/PreChatForm.styles.js.map +1 -0
- package/lib/commonjs/ui/screens/pre-chat/PreChatForm.types.js +6 -0
- package/lib/commonjs/ui/screens/pre-chat/PreChatForm.types.js.map +1 -0
- package/lib/commonjs/ui/styles/global.js +55 -0
- package/lib/commonjs/ui/styles/global.js.map +1 -0
- package/lib/commonjs/ui/styles/theme.js +148 -0
- package/lib/commonjs/ui/styles/theme.js.map +1 -0
- package/lib/commonjs/ui/utils/conversations.js +125 -0
- package/lib/commonjs/ui/utils/conversations.js.map +1 -0
- package/lib/commonjs/ui/utils/html.js +44 -0
- package/lib/commonjs/ui/utils/html.js.map +1 -0
- package/lib/commonjs/ui/utils/native-gradient.js +65 -0
- package/lib/commonjs/ui/utils/native-gradient.js.map +1 -0
- package/lib/commonjs/ui/utils/rtl.js +56 -0
- package/lib/commonjs/ui/utils/rtl.js.map +1 -0
- package/lib/commonjs/ui/utils/safe-url.js +67 -0
- package/lib/commonjs/ui/utils/safe-url.js.map +1 -0
- package/lib/module/agent-ui-blocks.js +152 -0
- package/lib/module/agent-ui-blocks.js.map +1 -0
- package/lib/module/api/client.js +261 -0
- package/lib/module/api/client.js.map +1 -0
- package/lib/module/api/realtime.js +189 -0
- package/lib/module/api/realtime.js.map +1 -0
- package/lib/module/api/sse-parser.js +53 -0
- package/lib/module/api/sse-parser.js.map +1 -0
- package/lib/module/controller.js +19 -0
- package/lib/module/controller.js.map +1 -0
- package/lib/module/device-id.js +69 -0
- package/lib/module/device-id.js.map +1 -0
- package/lib/module/events.js +44 -0
- package/lib/module/events.js.map +1 -0
- package/lib/module/i18n.js +99 -0
- package/lib/module/i18n.js.map +1 -0
- package/lib/module/index.js +55 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/locales.js +80 -0
- package/lib/module/locales.js.map +1 -0
- package/lib/module/package.json +1 -0
- package/lib/module/push/push-notifications.js +204 -0
- package/lib/module/push/push-notifications.js.map +1 -0
- package/lib/module/state/use-widget-state.js +18 -0
- package/lib/module/state/use-widget-state.js.map +1 -0
- package/lib/module/state/widget-store.js +1677 -0
- package/lib/module/state/widget-store.js.map +1 -0
- package/lib/module/storage.js +141 -0
- package/lib/module/storage.js.map +1 -0
- package/lib/module/types.js +40 -0
- package/lib/module/types.js.map +1 -0
- package/lib/module/ui/WidgetProvider.js +400 -0
- package/lib/module/ui/WidgetProvider.js.map +1 -0
- package/lib/module/ui/components/AgentUiBlocks.js +857 -0
- package/lib/module/ui/components/AgentUiBlocks.js.map +1 -0
- package/lib/module/ui/components/Avatar.js +71 -0
- package/lib/module/ui/components/Avatar.js.map +1 -0
- package/lib/module/ui/components/ConversationRow.js +150 -0
- package/lib/module/ui/components/ConversationRow.js.map +1 -0
- package/lib/module/ui/components/ErrorBoundary.js +39 -0
- package/lib/module/ui/components/ErrorBoundary.js.map +1 -0
- package/lib/module/ui/components/Gradient.js +165 -0
- package/lib/module/ui/components/Gradient.js.map +1 -0
- package/lib/module/ui/components/Launcher.js +121 -0
- package/lib/module/ui/components/Launcher.js.map +1 -0
- package/lib/module/ui/components/Markdown.js +253 -0
- package/lib/module/ui/components/Markdown.js.map +1 -0
- package/lib/module/ui/components/OutboundMessageCard.js +153 -0
- package/lib/module/ui/components/OutboundMessageCard.js.map +1 -0
- package/lib/module/ui/components/WidgetPanel.js +127 -0
- package/lib/module/ui/components/WidgetPanel.js.map +1 -0
- package/lib/module/ui/components/icons.js +370 -0
- package/lib/module/ui/components/icons.js.map +1 -0
- package/lib/module/ui/hooks/use-keyboard-overlap.js +109 -0
- package/lib/module/ui/hooks/use-keyboard-overlap.js.map +1 -0
- package/lib/module/ui/hooks/use-reduce-motion.js +34 -0
- package/lib/module/ui/hooks/use-reduce-motion.js.map +1 -0
- package/lib/module/ui/hooks/use-widget-insets.js +37 -0
- package/lib/module/ui/hooks/use-widget-insets.js.map +1 -0
- package/lib/module/ui/screens/chat/ChatView.js +586 -0
- package/lib/module/ui/screens/chat/ChatView.js.map +1 -0
- package/lib/module/ui/screens/chat/ChatView.styles.js +358 -0
- package/lib/module/ui/screens/chat/ChatView.styles.js.map +1 -0
- package/lib/module/ui/screens/chat/ChatView.types.js +4 -0
- package/lib/module/ui/screens/chat/ChatView.types.js.map +1 -0
- package/lib/module/ui/screens/conversations/ConversationsList.js +146 -0
- package/lib/module/ui/screens/conversations/ConversationsList.js.map +1 -0
- package/lib/module/ui/screens/conversations/ConversationsList.styles.js +114 -0
- package/lib/module/ui/screens/conversations/ConversationsList.styles.js.map +1 -0
- package/lib/module/ui/screens/conversations/ConversationsList.types.js +4 -0
- package/lib/module/ui/screens/conversations/ConversationsList.types.js.map +1 -0
- package/lib/module/ui/screens/home/HomeView.js +332 -0
- package/lib/module/ui/screens/home/HomeView.js.map +1 -0
- package/lib/module/ui/screens/home/HomeView.styles.js +242 -0
- package/lib/module/ui/screens/home/HomeView.styles.js.map +1 -0
- package/lib/module/ui/screens/home/HomeView.types.js +4 -0
- package/lib/module/ui/screens/home/HomeView.types.js.map +1 -0
- package/lib/module/ui/screens/home/greeting.js +44 -0
- package/lib/module/ui/screens/home/greeting.js.map +1 -0
- package/lib/module/ui/screens/pre-chat/PreChatForm.js +225 -0
- package/lib/module/ui/screens/pre-chat/PreChatForm.js.map +1 -0
- package/lib/module/ui/screens/pre-chat/PreChatForm.styles.js +121 -0
- package/lib/module/ui/screens/pre-chat/PreChatForm.styles.js.map +1 -0
- package/lib/module/ui/screens/pre-chat/PreChatForm.types.js +4 -0
- package/lib/module/ui/screens/pre-chat/PreChatForm.types.js.map +1 -0
- package/lib/module/ui/styles/global.js +51 -0
- package/lib/module/ui/styles/global.js.map +1 -0
- package/lib/module/ui/styles/theme.js +137 -0
- package/lib/module/ui/styles/theme.js.map +1 -0
- package/lib/module/ui/utils/conversations.js +115 -0
- package/lib/module/ui/utils/conversations.js.map +1 -0
- package/lib/module/ui/utils/html.js +39 -0
- package/lib/module/ui/utils/html.js.map +1 -0
- package/lib/module/ui/utils/native-gradient.js +60 -0
- package/lib/module/ui/utils/native-gradient.js.map +1 -0
- package/lib/module/ui/utils/rtl.js +49 -0
- package/lib/module/ui/utils/rtl.js.map +1 -0
- package/lib/module/ui/utils/safe-url.js +59 -0
- package/lib/module/ui/utils/safe-url.js.map +1 -0
- package/lib/typescript/commonjs/agent-ui-blocks.d.ts +20 -0
- package/lib/typescript/commonjs/agent-ui-blocks.d.ts.map +1 -0
- package/lib/typescript/commonjs/api/client.d.ts +115 -0
- package/lib/typescript/commonjs/api/client.d.ts.map +1 -0
- package/lib/typescript/commonjs/api/realtime.d.ts +39 -0
- package/lib/typescript/commonjs/api/realtime.d.ts.map +1 -0
- package/lib/typescript/commonjs/api/sse-parser.d.ts +13 -0
- package/lib/typescript/commonjs/api/sse-parser.d.ts.map +1 -0
- package/lib/typescript/commonjs/controller.d.ts +15 -0
- package/lib/typescript/commonjs/controller.d.ts.map +1 -0
- package/lib/typescript/commonjs/device-id.d.ts +15 -0
- package/lib/typescript/commonjs/device-id.d.ts.map +1 -0
- package/lib/typescript/commonjs/events.d.ts +41 -0
- package/lib/typescript/commonjs/events.d.ts.map +1 -0
- package/lib/typescript/commonjs/i18n.d.ts +78 -0
- package/lib/typescript/commonjs/i18n.d.ts.map +1 -0
- package/lib/typescript/commonjs/index.d.ts +103 -0
- package/lib/typescript/commonjs/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/locales.d.ts +18 -0
- package/lib/typescript/commonjs/locales.d.ts.map +1 -0
- package/lib/typescript/commonjs/package.json +1 -0
- package/lib/typescript/commonjs/push/push-notifications.d.ts +71 -0
- package/lib/typescript/commonjs/push/push-notifications.d.ts.map +1 -0
- package/lib/typescript/commonjs/state/use-widget-state.d.ts +10 -0
- package/lib/typescript/commonjs/state/use-widget-state.d.ts.map +1 -0
- package/lib/typescript/commonjs/state/widget-store.d.ts +227 -0
- package/lib/typescript/commonjs/state/widget-store.d.ts.map +1 -0
- package/lib/typescript/commonjs/storage.d.ts +42 -0
- package/lib/typescript/commonjs/storage.d.ts.map +1 -0
- package/lib/typescript/commonjs/types.d.ts +391 -0
- package/lib/typescript/commonjs/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/WidgetProvider.d.ts +15 -0
- package/lib/typescript/commonjs/ui/WidgetProvider.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/AgentUiBlocks.d.ts +27 -0
- package/lib/typescript/commonjs/ui/components/AgentUiBlocks.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/Avatar.d.ts +19 -0
- package/lib/typescript/commonjs/ui/components/Avatar.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/ConversationRow.d.ts +26 -0
- package/lib/typescript/commonjs/ui/components/ConversationRow.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/ErrorBoundary.d.ts +27 -0
- package/lib/typescript/commonjs/ui/components/ErrorBoundary.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/Gradient.d.ts +33 -0
- package/lib/typescript/commonjs/ui/components/Gradient.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/Launcher.d.ts +18 -0
- package/lib/typescript/commonjs/ui/components/Launcher.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/Markdown.d.ts +19 -0
- package/lib/typescript/commonjs/ui/components/Markdown.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/OutboundMessageCard.d.ts +20 -0
- package/lib/typescript/commonjs/ui/components/OutboundMessageCard.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/WidgetPanel.d.ts +26 -0
- package/lib/typescript/commonjs/ui/components/WidgetPanel.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/icons.d.ts +38 -0
- package/lib/typescript/commonjs/ui/components/icons.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/use-keyboard-overlap.d.ts +33 -0
- package/lib/typescript/commonjs/ui/hooks/use-keyboard-overlap.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/use-reduce-motion.d.ts +11 -0
- package/lib/typescript/commonjs/ui/hooks/use-reduce-motion.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/use-widget-insets.d.ts +16 -0
- package/lib/typescript/commonjs/ui/hooks/use-widget-insets.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/chat/ChatView.d.ts +11 -0
- package/lib/typescript/commonjs/ui/screens/chat/ChatView.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/chat/ChatView.styles.d.ts +349 -0
- package/lib/typescript/commonjs/ui/screens/chat/ChatView.styles.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/chat/ChatView.types.d.ts +48 -0
- package/lib/typescript/commonjs/ui/screens/chat/ChatView.types.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/conversations/ConversationsList.d.ts +10 -0
- package/lib/typescript/commonjs/ui/screens/conversations/ConversationsList.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/conversations/ConversationsList.styles.d.ts +113 -0
- package/lib/typescript/commonjs/ui/screens/conversations/ConversationsList.styles.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/conversations/ConversationsList.types.d.ts +31 -0
- package/lib/typescript/commonjs/ui/screens/conversations/ConversationsList.types.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/home/HomeView.d.ts +17 -0
- package/lib/typescript/commonjs/ui/screens/home/HomeView.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/home/HomeView.styles.d.ts +227 -0
- package/lib/typescript/commonjs/ui/screens/home/HomeView.styles.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/home/HomeView.types.d.ts +40 -0
- package/lib/typescript/commonjs/ui/screens/home/HomeView.types.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/home/greeting.d.ts +19 -0
- package/lib/typescript/commonjs/ui/screens/home/greeting.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/pre-chat/PreChatForm.d.ts +7 -0
- package/lib/typescript/commonjs/ui/screens/pre-chat/PreChatForm.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/pre-chat/PreChatForm.styles.d.ts +115 -0
- package/lib/typescript/commonjs/ui/screens/pre-chat/PreChatForm.styles.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/pre-chat/PreChatForm.types.d.ts +20 -0
- package/lib/typescript/commonjs/ui/screens/pre-chat/PreChatForm.types.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/styles/global.d.ts +46 -0
- package/lib/typescript/commonjs/ui/styles/global.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/styles/theme.d.ts +103 -0
- package/lib/typescript/commonjs/ui/styles/theme.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/utils/conversations.d.ts +41 -0
- package/lib/typescript/commonjs/ui/utils/conversations.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/utils/html.d.ts +10 -0
- package/lib/typescript/commonjs/ui/utils/html.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/utils/native-gradient.d.ts +61 -0
- package/lib/typescript/commonjs/ui/utils/native-gradient.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/utils/rtl.d.ts +33 -0
- package/lib/typescript/commonjs/ui/utils/rtl.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/utils/safe-url.d.ts +21 -0
- package/lib/typescript/commonjs/ui/utils/safe-url.d.ts.map +1 -0
- package/lib/typescript/module/agent-ui-blocks.d.ts +20 -0
- package/lib/typescript/module/agent-ui-blocks.d.ts.map +1 -0
- package/lib/typescript/module/api/client.d.ts +115 -0
- package/lib/typescript/module/api/client.d.ts.map +1 -0
- package/lib/typescript/module/api/realtime.d.ts +39 -0
- package/lib/typescript/module/api/realtime.d.ts.map +1 -0
- package/lib/typescript/module/api/sse-parser.d.ts +13 -0
- package/lib/typescript/module/api/sse-parser.d.ts.map +1 -0
- package/lib/typescript/module/controller.d.ts +15 -0
- package/lib/typescript/module/controller.d.ts.map +1 -0
- package/lib/typescript/module/device-id.d.ts +15 -0
- package/lib/typescript/module/device-id.d.ts.map +1 -0
- package/lib/typescript/module/events.d.ts +41 -0
- package/lib/typescript/module/events.d.ts.map +1 -0
- package/lib/typescript/module/i18n.d.ts +78 -0
- package/lib/typescript/module/i18n.d.ts.map +1 -0
- package/lib/typescript/module/index.d.ts +103 -0
- package/lib/typescript/module/index.d.ts.map +1 -0
- package/lib/typescript/module/locales.d.ts +18 -0
- package/lib/typescript/module/locales.d.ts.map +1 -0
- package/lib/typescript/module/package.json +1 -0
- package/lib/typescript/module/push/push-notifications.d.ts +71 -0
- package/lib/typescript/module/push/push-notifications.d.ts.map +1 -0
- package/lib/typescript/module/state/use-widget-state.d.ts +10 -0
- package/lib/typescript/module/state/use-widget-state.d.ts.map +1 -0
- package/lib/typescript/module/state/widget-store.d.ts +227 -0
- package/lib/typescript/module/state/widget-store.d.ts.map +1 -0
- package/lib/typescript/module/storage.d.ts +42 -0
- package/lib/typescript/module/storage.d.ts.map +1 -0
- package/lib/typescript/module/types.d.ts +391 -0
- package/lib/typescript/module/types.d.ts.map +1 -0
- package/lib/typescript/module/ui/WidgetProvider.d.ts +15 -0
- package/lib/typescript/module/ui/WidgetProvider.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/AgentUiBlocks.d.ts +27 -0
- package/lib/typescript/module/ui/components/AgentUiBlocks.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/Avatar.d.ts +19 -0
- package/lib/typescript/module/ui/components/Avatar.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/ConversationRow.d.ts +26 -0
- package/lib/typescript/module/ui/components/ConversationRow.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/ErrorBoundary.d.ts +27 -0
- package/lib/typescript/module/ui/components/ErrorBoundary.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/Gradient.d.ts +33 -0
- package/lib/typescript/module/ui/components/Gradient.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/Launcher.d.ts +18 -0
- package/lib/typescript/module/ui/components/Launcher.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/Markdown.d.ts +19 -0
- package/lib/typescript/module/ui/components/Markdown.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/OutboundMessageCard.d.ts +20 -0
- package/lib/typescript/module/ui/components/OutboundMessageCard.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/WidgetPanel.d.ts +26 -0
- package/lib/typescript/module/ui/components/WidgetPanel.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/icons.d.ts +38 -0
- package/lib/typescript/module/ui/components/icons.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/use-keyboard-overlap.d.ts +33 -0
- package/lib/typescript/module/ui/hooks/use-keyboard-overlap.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/use-reduce-motion.d.ts +11 -0
- package/lib/typescript/module/ui/hooks/use-reduce-motion.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/use-widget-insets.d.ts +16 -0
- package/lib/typescript/module/ui/hooks/use-widget-insets.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/chat/ChatView.d.ts +11 -0
- package/lib/typescript/module/ui/screens/chat/ChatView.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/chat/ChatView.styles.d.ts +349 -0
- package/lib/typescript/module/ui/screens/chat/ChatView.styles.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/chat/ChatView.types.d.ts +48 -0
- package/lib/typescript/module/ui/screens/chat/ChatView.types.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/conversations/ConversationsList.d.ts +10 -0
- package/lib/typescript/module/ui/screens/conversations/ConversationsList.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/conversations/ConversationsList.styles.d.ts +113 -0
- package/lib/typescript/module/ui/screens/conversations/ConversationsList.styles.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/conversations/ConversationsList.types.d.ts +31 -0
- package/lib/typescript/module/ui/screens/conversations/ConversationsList.types.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/home/HomeView.d.ts +17 -0
- package/lib/typescript/module/ui/screens/home/HomeView.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/home/HomeView.styles.d.ts +227 -0
- package/lib/typescript/module/ui/screens/home/HomeView.styles.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/home/HomeView.types.d.ts +40 -0
- package/lib/typescript/module/ui/screens/home/HomeView.types.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/home/greeting.d.ts +19 -0
- package/lib/typescript/module/ui/screens/home/greeting.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/pre-chat/PreChatForm.d.ts +7 -0
- package/lib/typescript/module/ui/screens/pre-chat/PreChatForm.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/pre-chat/PreChatForm.styles.d.ts +115 -0
- package/lib/typescript/module/ui/screens/pre-chat/PreChatForm.styles.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/pre-chat/PreChatForm.types.d.ts +20 -0
- package/lib/typescript/module/ui/screens/pre-chat/PreChatForm.types.d.ts.map +1 -0
- package/lib/typescript/module/ui/styles/global.d.ts +46 -0
- package/lib/typescript/module/ui/styles/global.d.ts.map +1 -0
- package/lib/typescript/module/ui/styles/theme.d.ts +103 -0
- package/lib/typescript/module/ui/styles/theme.d.ts.map +1 -0
- package/lib/typescript/module/ui/utils/conversations.d.ts +41 -0
- package/lib/typescript/module/ui/utils/conversations.d.ts.map +1 -0
- package/lib/typescript/module/ui/utils/html.d.ts +10 -0
- package/lib/typescript/module/ui/utils/html.d.ts.map +1 -0
- package/lib/typescript/module/ui/utils/native-gradient.d.ts +61 -0
- package/lib/typescript/module/ui/utils/native-gradient.d.ts.map +1 -0
- package/lib/typescript/module/ui/utils/rtl.d.ts +33 -0
- package/lib/typescript/module/ui/utils/rtl.d.ts.map +1 -0
- package/lib/typescript/module/ui/utils/safe-url.d.ts +21 -0
- package/lib/typescript/module/ui/utils/safe-url.d.ts.map +1 -0
- package/metro.js +40 -0
- package/package.json +116 -0
- package/src/agent-ui-blocks.ts +302 -0
- package/src/api/client.ts +332 -0
- package/src/api/realtime.ts +225 -0
- package/src/api/sse-parser.ts +51 -0
- package/src/controller.ts +20 -0
- package/src/device-id.ts +71 -0
- package/src/events.ts +74 -0
- package/src/i18n.ts +114 -0
- package/src/index.tsx +199 -0
- package/src/locales.ts +80 -0
- package/src/push/push-notifications.ts +254 -0
- package/src/state/use-widget-state.ts +20 -0
- package/src/state/widget-store.ts +1815 -0
- package/src/storage.ts +153 -0
- package/src/types.ts +445 -0
- package/src/ui/WidgetProvider.tsx +434 -0
- package/src/ui/components/AgentUiBlocks.tsx +912 -0
- package/src/ui/components/Avatar.tsx +86 -0
- package/src/ui/components/ConversationRow.tsx +163 -0
- package/src/ui/components/ErrorBoundary.tsx +49 -0
- package/src/ui/components/Gradient.tsx +165 -0
- package/src/ui/components/Launcher.tsx +128 -0
- package/src/ui/components/Markdown.tsx +291 -0
- package/src/ui/components/OutboundMessageCard.tsx +154 -0
- package/src/ui/components/WidgetPanel.tsx +133 -0
- package/src/ui/components/icons.tsx +315 -0
- package/src/ui/hooks/use-keyboard-overlap.ts +134 -0
- package/src/ui/hooks/use-reduce-motion.ts +39 -0
- package/src/ui/hooks/use-widget-insets.ts +44 -0
- package/src/ui/screens/chat/ChatView.styles.ts +357 -0
- package/src/ui/screens/chat/ChatView.tsx +690 -0
- package/src/ui/screens/chat/ChatView.types.ts +46 -0
- package/src/ui/screens/conversations/ConversationsList.styles.ts +111 -0
- package/src/ui/screens/conversations/ConversationsList.tsx +144 -0
- package/src/ui/screens/conversations/ConversationsList.types.ts +33 -0
- package/src/ui/screens/home/HomeView.styles.ts +246 -0
- package/src/ui/screens/home/HomeView.tsx +336 -0
- package/src/ui/screens/home/HomeView.types.ts +42 -0
- package/src/ui/screens/home/greeting.ts +50 -0
- package/src/ui/screens/pre-chat/PreChatForm.styles.ts +120 -0
- package/src/ui/screens/pre-chat/PreChatForm.tsx +221 -0
- package/src/ui/screens/pre-chat/PreChatForm.types.ts +22 -0
- package/src/ui/styles/global.ts +50 -0
- package/src/ui/styles/theme.ts +155 -0
- package/src/ui/utils/conversations.ts +122 -0
- package/src/ui/utils/html.ts +58 -0
- package/src/ui/utils/native-gradient.ts +60 -0
- package/src/ui/utils/rtl.ts +43 -0
- package/src/ui/utils/safe-url.ts +63 -0
|
@@ -0,0 +1,404 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.RepzoWidgetProvider = RepzoWidgetProvider;
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _client = require("../api/client.js");
|
|
10
|
+
var _controller = require("../controller.js");
|
|
11
|
+
var _i18n = require("../i18n.js");
|
|
12
|
+
var _useWidgetState = require("../state/use-widget-state.js");
|
|
13
|
+
var _ErrorBoundary = require("./components/ErrorBoundary.js");
|
|
14
|
+
var _icons = require("./components/icons.js");
|
|
15
|
+
var _OutboundMessageCard = require("./components/OutboundMessageCard.js");
|
|
16
|
+
var _WidgetPanel = require("./components/WidgetPanel.js");
|
|
17
|
+
var _useKeyboardOverlap = require("./hooks/use-keyboard-overlap.js");
|
|
18
|
+
var _useWidgetInsets = require("./hooks/use-widget-insets.js");
|
|
19
|
+
var _ChatView = require("./screens/chat/ChatView.js");
|
|
20
|
+
var _ConversationsList = require("./screens/conversations/ConversationsList.js");
|
|
21
|
+
var _HomeView = require("./screens/home/HomeView.js");
|
|
22
|
+
var _PreChatForm = require("./screens/pre-chat/PreChatForm.js");
|
|
23
|
+
var _global = require("./styles/global.js");
|
|
24
|
+
var _theme = require("./styles/theme.js");
|
|
25
|
+
var _conversations = require("./utils/conversations.js");
|
|
26
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
27
|
+
/**
|
|
28
|
+
* `<RepzoWidgetProvider>` — mount once at the app root.
|
|
29
|
+
*
|
|
30
|
+
* Hosts the chat modal and subscribes to the controller's store. It owns no
|
|
31
|
+
* session state: the SSE stream and unread count live in the store, so closing
|
|
32
|
+
* the modal (or never mounting it) never drops a conversation.
|
|
33
|
+
*/
|
|
34
|
+
|
|
35
|
+
function RepzoWidgetProvider({
|
|
36
|
+
children,
|
|
37
|
+
presentationStyle = 'pageSheet'
|
|
38
|
+
}) {
|
|
39
|
+
const state = (0, _useWidgetState.useWidgetState)();
|
|
40
|
+
const store = _controller.controller.store;
|
|
41
|
+
const insets = (0, _useWidgetInsets.useWidgetInsets)();
|
|
42
|
+
// Lifts the whole panel — header, thread and composer — clear of the
|
|
43
|
+
// keyboard. It only listens while the modal is on screen, and its padding
|
|
44
|
+
// sits inside the safe-area padding below, so the two add up to exactly the
|
|
45
|
+
// keyboard's height.
|
|
46
|
+
const keyboard = (0, _useKeyboardOverlap.useKeyboardOverlap)(state.isOpen, insets.bottom);
|
|
47
|
+
|
|
48
|
+
// An iOS pageSheet is already inset below the status bar by the system; a
|
|
49
|
+
// fullScreen iOS modal and any Android modal (edge-to-edge since API 35) are
|
|
50
|
+
// not, so they own the top inset.
|
|
51
|
+
const topInset = _reactNative.Platform.OS === 'ios' && presentationStyle === 'pageSheet' ? 0 : insets.top;
|
|
52
|
+
const theme = (0, _react.useMemo)(() => (0, _theme.buildTheme)(state.config), [state.config]);
|
|
53
|
+
const labels = (0, _react.useMemo)(() => (0, _i18n.buildLabels)((0, _i18n.createTranslator)(state.config, state.locale)), [state.config, state.locale]);
|
|
54
|
+
|
|
55
|
+
// Home previews the two newest threads and credits the agents behind them.
|
|
56
|
+
const recentConversations = (0, _react.useMemo)(() => (0, _conversations.pickRecentConversations)(state.conversations, 2), [state.conversations]);
|
|
57
|
+
const teamAgents = (0, _react.useMemo)(() => (0, _conversations.pickTeamAgents)(state.conversations, 3), [state.conversations]);
|
|
58
|
+
|
|
59
|
+
// Always the sum of the per-thread counts, so the tab badge tracks threads
|
|
60
|
+
// that are genuinely still unread.
|
|
61
|
+
const unreadThreadTotal = state.unreadCount;
|
|
62
|
+
|
|
63
|
+
// A cached theme is painted before init answers, so `config` alone says
|
|
64
|
+
// nothing about whether the chat works. Without a session (failed boot) or
|
|
65
|
+
// after a terminal 403, the UI must say so instead of looking usable.
|
|
66
|
+
const terminalError = !!state.error && (0, _client.isTerminalErrorCode)(state.errorCode);
|
|
67
|
+
const blockingError = !!state.error && (!state.booted || terminalError);
|
|
68
|
+
const timeLabels = (0, _react.useMemo)(() => ({
|
|
69
|
+
justNow: labels.timeJustNow,
|
|
70
|
+
minutes: labels.timeMinutes,
|
|
71
|
+
hours: labels.timeHours,
|
|
72
|
+
days: labels.timeDays,
|
|
73
|
+
months: labels.timeMonths,
|
|
74
|
+
years: labels.timeYears
|
|
75
|
+
}), [labels]);
|
|
76
|
+
const blockLabels = (0, _react.useMemo)(() => ({
|
|
77
|
+
service: labels.blockService,
|
|
78
|
+
product: labels.blockProduct,
|
|
79
|
+
chooseTime: labels.blockChooseTime,
|
|
80
|
+
professional: labels.blockProfessional,
|
|
81
|
+
priceOffer: labels.blockPriceOffer,
|
|
82
|
+
working: labels.working
|
|
83
|
+
}), [labels]);
|
|
84
|
+
const handleClose = (0, _react.useCallback)(() => store.hide(), [store]);
|
|
85
|
+
const handleTabChange = (0, _react.useCallback)(tab => store.setActiveTab(tab), [store]);
|
|
86
|
+
const handleSendMessage = (0, _react.useCallback)((body, attachments, action) => {
|
|
87
|
+
store.sendMessage(body, attachments ?? [], action).catch(() => {
|
|
88
|
+
// The failed bubble already surfaces this to the visitor.
|
|
89
|
+
});
|
|
90
|
+
}, [store]);
|
|
91
|
+
const handlePreChatSubmit = (0, _react.useCallback)(async data => {
|
|
92
|
+
try {
|
|
93
|
+
await store.identifyVisitor({
|
|
94
|
+
email: data.email,
|
|
95
|
+
name: data.name,
|
|
96
|
+
phone: data.phone
|
|
97
|
+
});
|
|
98
|
+
} catch {
|
|
99
|
+
// Identification is best-effort — never block the conversation.
|
|
100
|
+
}
|
|
101
|
+
store.setView('chat');
|
|
102
|
+
}, [store]);
|
|
103
|
+
const handleBack = (0, _react.useCallback)(() => {
|
|
104
|
+
store.setView(state.activeTab === 'messages' ? 'conversations' : 'home');
|
|
105
|
+
}, [state.activeTab, store]);
|
|
106
|
+
const handleStartConversation = (0, _react.useCallback)(() => {
|
|
107
|
+
if (!theme.allowNewConversations) return;
|
|
108
|
+
store.startNewConversation();
|
|
109
|
+
}, [store, theme.allowNewConversations]);
|
|
110
|
+
const activeConversation = state.activeConversationId ? state.conversations.find(conversation => conversation.id === state.activeConversationId) : null;
|
|
111
|
+
const isHomeSurface = state.view === 'home';
|
|
112
|
+
const renderContent = () => {
|
|
113
|
+
if (state.loading && !state.config) {
|
|
114
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
115
|
+
style: styles.centered,
|
|
116
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.ActivityIndicator, {
|
|
117
|
+
color: theme.primaryColor
|
|
118
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
119
|
+
style: styles.stateText,
|
|
120
|
+
children: labels.connecting
|
|
121
|
+
})]
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
if (blockingError) {
|
|
125
|
+
// Terminal codes need the host (or Workstation) to change something —
|
|
126
|
+
// a Retry button would only burn the rate-limited init.
|
|
127
|
+
const message = !terminalError ? labels.connectionError : state.errorCode === 'identity_verification_failed' ? labels.identityVerificationError : labels.chatUnavailable;
|
|
128
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
129
|
+
style: styles.centered,
|
|
130
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
131
|
+
style: [styles.stateIcon, {
|
|
132
|
+
backgroundColor: (0, _theme.withAlpha)(theme.primaryColor, 0.08)
|
|
133
|
+
}],
|
|
134
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.AlertIcon, {
|
|
135
|
+
size: 24
|
|
136
|
+
})
|
|
137
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
138
|
+
style: styles.errorText,
|
|
139
|
+
children: message
|
|
140
|
+
}), !terminalError ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Pressable, {
|
|
141
|
+
onPress: () => void store.retry(),
|
|
142
|
+
accessibilityRole: "button",
|
|
143
|
+
style: [styles.retryButton, {
|
|
144
|
+
backgroundColor: theme.primaryColor
|
|
145
|
+
}],
|
|
146
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
147
|
+
style: styles.retryLabel,
|
|
148
|
+
children: labels.retry
|
|
149
|
+
})
|
|
150
|
+
}) : null, /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Pressable, {
|
|
151
|
+
onPress: handleClose,
|
|
152
|
+
accessibilityRole: "button",
|
|
153
|
+
hitSlop: 8,
|
|
154
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
155
|
+
style: styles.closeLabel,
|
|
156
|
+
children: labels.close
|
|
157
|
+
})
|
|
158
|
+
})]
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
if (state.view === 'prechat' && state.config) {
|
|
162
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_PreChatForm.PreChatForm, {
|
|
163
|
+
fields: state.config.preChatFields,
|
|
164
|
+
color: theme.primaryColor,
|
|
165
|
+
labels: {
|
|
166
|
+
title: labels.preChatTitle,
|
|
167
|
+
subtitle: labels.preChatSubtitle,
|
|
168
|
+
skip: labels.preChatSkip,
|
|
169
|
+
submit: labels.preChatSubmit,
|
|
170
|
+
close: labels.close,
|
|
171
|
+
fieldRequired: labels.fieldRequired,
|
|
172
|
+
invalidEmail: labels.invalidEmail
|
|
173
|
+
},
|
|
174
|
+
onSubmit: handlePreChatSubmit,
|
|
175
|
+
onSkip: () => store.setView('chat'),
|
|
176
|
+
onClose: handleClose
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
if (state.view === 'chat') {
|
|
180
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChatView.ChatView, {
|
|
181
|
+
messages: state.messages,
|
|
182
|
+
loading: state.messagesLoading,
|
|
183
|
+
hasMoreMessages: state.hasMoreMessages,
|
|
184
|
+
agentTyping: state.agentTyping,
|
|
185
|
+
color: theme.primaryColor,
|
|
186
|
+
agentName: activeConversation?.agentName,
|
|
187
|
+
agentAvatar: activeConversation?.agentAvatar,
|
|
188
|
+
isOnline: theme.isOnline,
|
|
189
|
+
locale: state.locale,
|
|
190
|
+
prefillText: state.prefillText,
|
|
191
|
+
offlineMessage: theme.offlineMessage,
|
|
192
|
+
labels: {
|
|
193
|
+
back: labels.back,
|
|
194
|
+
loading: labels.loading,
|
|
195
|
+
loadEarlier: labels.loadEarlier,
|
|
196
|
+
emptyConversation: labels.emptyConversation,
|
|
197
|
+
messagePlaceholder: labels.messagePlaceholder,
|
|
198
|
+
failedToSend: labels.failedToSend,
|
|
199
|
+
thinking: labels.thinking,
|
|
200
|
+
team: labels.team,
|
|
201
|
+
statusOnline: labels.homeStatusOnline,
|
|
202
|
+
statusAway: labels.homeStatusAway,
|
|
203
|
+
close: labels.close,
|
|
204
|
+
today: labels.today,
|
|
205
|
+
yesterday: labels.yesterday,
|
|
206
|
+
conversationUpdated: labels.conversationUpdated,
|
|
207
|
+
procedureSend: labels.procedureSend,
|
|
208
|
+
procedureSent: labels.procedureSent,
|
|
209
|
+
blocks: blockLabels
|
|
210
|
+
},
|
|
211
|
+
onSendMessage: handleSendMessage,
|
|
212
|
+
onIdentifyVisitor: data => store.identifyVisitor(data),
|
|
213
|
+
onLoadMore: () => store.loadMoreMessages(),
|
|
214
|
+
onTyping: isTyping => store.notifyTyping(isTyping),
|
|
215
|
+
onBack: handleBack,
|
|
216
|
+
onClose: handleClose
|
|
217
|
+
});
|
|
218
|
+
}
|
|
219
|
+
if (isHomeSurface) {
|
|
220
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_HomeView.HomeView, {
|
|
221
|
+
config: state.config,
|
|
222
|
+
color: theme.primaryColor,
|
|
223
|
+
visitorName: state.visitorProfile.name,
|
|
224
|
+
conversationCount: state.conversations.length,
|
|
225
|
+
recentConversations: recentConversations,
|
|
226
|
+
unreadByConversation: state.unreadByConversation,
|
|
227
|
+
teamAgents: teamAgents,
|
|
228
|
+
isOnline: theme.isOnline,
|
|
229
|
+
offlineMessage: theme.offlineMessage,
|
|
230
|
+
startConversationLabel: theme.startConversationLabel,
|
|
231
|
+
replyTimeLabel: theme.replyTimeLabel,
|
|
232
|
+
allowNewConversations: theme.allowNewConversations,
|
|
233
|
+
showPreviousConversations: theme.showPreviousConversations,
|
|
234
|
+
labels: {
|
|
235
|
+
close: labels.close,
|
|
236
|
+
viewPrevious: labels.viewPreviousConversations,
|
|
237
|
+
viewAll: (0, _i18n.formatLabel)(labels.homeViewAllCount, {
|
|
238
|
+
count: state.conversations.length
|
|
239
|
+
}),
|
|
240
|
+
recentTitle: labels.homeRecentTitle,
|
|
241
|
+
noConversations: labels.homeNoConversations,
|
|
242
|
+
statusOnline: labels.homeStatusOnline,
|
|
243
|
+
statusAway: labels.homeStatusAway,
|
|
244
|
+
team: labels.team,
|
|
245
|
+
time: timeLabels,
|
|
246
|
+
unread: labels.unreadBadge
|
|
247
|
+
},
|
|
248
|
+
onClose: handleClose,
|
|
249
|
+
onStartConversation: handleStartConversation,
|
|
250
|
+
onViewConversations: () => handleTabChange('messages'),
|
|
251
|
+
onOpenConversation: conversationId => store.openConversation(conversationId)
|
|
252
|
+
});
|
|
253
|
+
}
|
|
254
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ConversationsList.ConversationsList, {
|
|
255
|
+
conversations: state.conversations,
|
|
256
|
+
unreadByConversation: state.unreadByConversation,
|
|
257
|
+
color: theme.primaryColor,
|
|
258
|
+
allowNewConversations: theme.allowNewConversations,
|
|
259
|
+
showPreviousConversations: theme.showPreviousConversations,
|
|
260
|
+
startConversationLabel: theme.startConversationLabel,
|
|
261
|
+
isOnline: theme.isOnline,
|
|
262
|
+
labels: {
|
|
263
|
+
messages: labels.messages,
|
|
264
|
+
noMessages: labels.noMessages,
|
|
265
|
+
historyHidden: labels.historyHidden,
|
|
266
|
+
startBelow: labels.startBelow,
|
|
267
|
+
close: labels.close,
|
|
268
|
+
team: labels.team,
|
|
269
|
+
statusOnline: labels.homeStatusOnline,
|
|
270
|
+
statusAway: labels.homeStatusAway,
|
|
271
|
+
time: timeLabels,
|
|
272
|
+
unread: labels.unreadBadge
|
|
273
|
+
},
|
|
274
|
+
onSelect: conversationId => store.openConversation(conversationId),
|
|
275
|
+
onNewConversation: handleStartConversation,
|
|
276
|
+
onRefresh: () => store.refreshConversations(),
|
|
277
|
+
onClose: handleClose
|
|
278
|
+
});
|
|
279
|
+
};
|
|
280
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
281
|
+
children: [children, /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Modal, {
|
|
282
|
+
visible: state.isOpen,
|
|
283
|
+
animationType: "slide",
|
|
284
|
+
presentationStyle: _reactNative.Platform.OS === 'ios' ? presentationStyle : undefined,
|
|
285
|
+
onRequestClose: handleClose,
|
|
286
|
+
statusBarTranslucent: false,
|
|
287
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
288
|
+
style: [_global.globalStyles.screen, {
|
|
289
|
+
paddingTop: topInset,
|
|
290
|
+
paddingBottom: insets.bottom
|
|
291
|
+
}],
|
|
292
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
293
|
+
onLayout: keyboard.onLayout,
|
|
294
|
+
style: [_global.globalStyles.fill, {
|
|
295
|
+
paddingBottom: keyboard.overlap
|
|
296
|
+
}],
|
|
297
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ErrorBoundary.WidgetErrorBoundary, {
|
|
298
|
+
resetKey: `${state.isOpen}:${state.view}:${state.activeConversationId ?? ''}`,
|
|
299
|
+
fallback: reset => /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
300
|
+
style: styles.centered,
|
|
301
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
302
|
+
style: styles.errorText,
|
|
303
|
+
children: labels.widgetCrashed
|
|
304
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Pressable, {
|
|
305
|
+
onPress: reset,
|
|
306
|
+
accessibilityRole: "button",
|
|
307
|
+
style: [styles.retryButton, {
|
|
308
|
+
backgroundColor: theme.primaryColor
|
|
309
|
+
}],
|
|
310
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
311
|
+
style: styles.retryLabel,
|
|
312
|
+
children: labels.retry
|
|
313
|
+
})
|
|
314
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Pressable, {
|
|
315
|
+
onPress: handleClose,
|
|
316
|
+
accessibilityRole: "button",
|
|
317
|
+
hitSlop: 8,
|
|
318
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
319
|
+
style: styles.closeLabel,
|
|
320
|
+
children: labels.close
|
|
321
|
+
})
|
|
322
|
+
})]
|
|
323
|
+
}),
|
|
324
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_WidgetPanel.WidgetPanel, {
|
|
325
|
+
color: theme.primaryColor,
|
|
326
|
+
activeTab: state.activeTab,
|
|
327
|
+
onTabChange: handleTabChange,
|
|
328
|
+
showTabs: !blockingError && state.view !== 'chat' && state.view !== 'prechat',
|
|
329
|
+
spaces: state.config?.spaces ?? [],
|
|
330
|
+
unreadCount: unreadThreadTotal,
|
|
331
|
+
labels: {
|
|
332
|
+
home: labels.home,
|
|
333
|
+
messages: labels.messages,
|
|
334
|
+
unread: (0, _i18n.formatLabel)(labels.unreadBadge, {
|
|
335
|
+
count: unreadThreadTotal
|
|
336
|
+
})
|
|
337
|
+
},
|
|
338
|
+
children: [state.outboundMessage && !blockingError && state.view !== 'chat' && state.view !== 'prechat' ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_OutboundMessageCard.OutboundMessageCard, {
|
|
339
|
+
message: state.outboundMessage,
|
|
340
|
+
color: theme.primaryColor,
|
|
341
|
+
labels: {
|
|
342
|
+
title: labels.outboundTitle,
|
|
343
|
+
cta: labels.outboundCta,
|
|
344
|
+
dismiss: labels.dismiss
|
|
345
|
+
},
|
|
346
|
+
onDismiss: () => store.dismissOutboundMessage(),
|
|
347
|
+
onStartChat: prefill => {
|
|
348
|
+
store.dismissOutboundMessage();
|
|
349
|
+
store.startNewConversation(prefill);
|
|
350
|
+
},
|
|
351
|
+
onTrack: (event, metadata) => store.track(event, metadata)
|
|
352
|
+
}) : null, renderContent()]
|
|
353
|
+
})
|
|
354
|
+
})
|
|
355
|
+
})
|
|
356
|
+
})
|
|
357
|
+
})]
|
|
358
|
+
});
|
|
359
|
+
}
|
|
360
|
+
const styles = _reactNative.StyleSheet.create({
|
|
361
|
+
centered: {
|
|
362
|
+
flex: 1,
|
|
363
|
+
alignItems: 'center',
|
|
364
|
+
justifyContent: 'center',
|
|
365
|
+
padding: _theme.spacing.xxl,
|
|
366
|
+
gap: _theme.spacing.lg
|
|
367
|
+
},
|
|
368
|
+
stateText: {
|
|
369
|
+
fontSize: _theme.fontSize.meta,
|
|
370
|
+
color: _theme.palette.textSubtle,
|
|
371
|
+
textAlign: 'center'
|
|
372
|
+
},
|
|
373
|
+
stateIcon: {
|
|
374
|
+
width: 64,
|
|
375
|
+
height: 64,
|
|
376
|
+
borderRadius: 32,
|
|
377
|
+
alignItems: 'center',
|
|
378
|
+
justifyContent: 'center'
|
|
379
|
+
},
|
|
380
|
+
errorText: {
|
|
381
|
+
fontSize: _theme.fontSize.body,
|
|
382
|
+
color: _theme.palette.textMuted,
|
|
383
|
+
textAlign: 'center'
|
|
384
|
+
},
|
|
385
|
+
retryButton: {
|
|
386
|
+
borderRadius: _theme.radius.pill,
|
|
387
|
+
paddingHorizontal: _theme.spacing.xl,
|
|
388
|
+
paddingVertical: _theme.spacing.md,
|
|
389
|
+
minHeight: 44,
|
|
390
|
+
justifyContent: 'center'
|
|
391
|
+
},
|
|
392
|
+
retryLabel: {
|
|
393
|
+
color: _theme.palette.white,
|
|
394
|
+
fontSize: _theme.fontSize.meta,
|
|
395
|
+
fontWeight: '600'
|
|
396
|
+
},
|
|
397
|
+
closeLabel: {
|
|
398
|
+
color: _theme.palette.textSubtle,
|
|
399
|
+
fontSize: _theme.fontSize.meta,
|
|
400
|
+
fontWeight: '600',
|
|
401
|
+
padding: _theme.spacing.xs
|
|
402
|
+
}
|
|
403
|
+
});
|
|
404
|
+
//# sourceMappingURL=WidgetProvider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_client","_controller","_i18n","_useWidgetState","_ErrorBoundary","_icons","_OutboundMessageCard","_WidgetPanel","_useKeyboardOverlap","_useWidgetInsets","_ChatView","_ConversationsList","_HomeView","_PreChatForm","_global","_theme","_conversations","_jsxRuntime","RepzoWidgetProvider","children","presentationStyle","state","useWidgetState","store","controller","insets","useWidgetInsets","keyboard","useKeyboardOverlap","isOpen","bottom","topInset","Platform","OS","top","theme","useMemo","buildTheme","config","labels","buildLabels","createTranslator","locale","recentConversations","pickRecentConversations","conversations","teamAgents","pickTeamAgents","unreadThreadTotal","unreadCount","terminalError","error","isTerminalErrorCode","errorCode","blockingError","booted","timeLabels","justNow","timeJustNow","minutes","timeMinutes","hours","timeHours","days","timeDays","months","timeMonths","years","timeYears","blockLabels","service","blockService","product","blockProduct","chooseTime","blockChooseTime","professional","blockProfessional","priceOffer","blockPriceOffer","working","handleClose","useCallback","hide","handleTabChange","tab","setActiveTab","handleSendMessage","body","attachments","action","sendMessage","catch","handlePreChatSubmit","data","identifyVisitor","email","name","phone","setView","handleBack","activeTab","handleStartConversation","allowNewConversations","startNewConversation","activeConversation","activeConversationId","find","conversation","id","isHomeSurface","view","renderContent","loading","jsxs","View","style","styles","centered","jsx","ActivityIndicator","color","primaryColor","Text","stateText","connecting","message","connectionError","identityVerificationError","chatUnavailable","stateIcon","backgroundColor","withAlpha","AlertIcon","size","errorText","Pressable","onPress","retry","accessibilityRole","retryButton","retryLabel","hitSlop","closeLabel","close","PreChatForm","fields","preChatFields","title","preChatTitle","subtitle","preChatSubtitle","skip","preChatSkip","submit","preChatSubmit","fieldRequired","invalidEmail","onSubmit","onSkip","onClose","ChatView","messages","messagesLoading","hasMoreMessages","agentTyping","agentName","agentAvatar","isOnline","prefillText","offlineMessage","back","loadEarlier","emptyConversation","messagePlaceholder","failedToSend","thinking","team","statusOnline","homeStatusOnline","statusAway","homeStatusAway","today","yesterday","conversationUpdated","procedureSend","procedureSent","blocks","onSendMessage","onIdentifyVisitor","onLoadMore","loadMoreMessages","onTyping","isTyping","notifyTyping","onBack","HomeView","visitorName","visitorProfile","conversationCount","length","unreadByConversation","startConversationLabel","replyTimeLabel","showPreviousConversations","viewPrevious","viewPreviousConversations","viewAll","formatLabel","homeViewAllCount","count","recentTitle","homeRecentTitle","noConversations","homeNoConversations","time","unread","unreadBadge","onStartConversation","onViewConversations","onOpenConversation","conversationId","openConversation","ConversationsList","noMessages","historyHidden","startBelow","onSelect","onNewConversation","onRefresh","refreshConversations","Fragment","Modal","visible","animationType","undefined","onRequestClose","statusBarTranslucent","globalStyles","screen","paddingTop","paddingBottom","onLayout","fill","overlap","WidgetErrorBoundary","resetKey","fallback","reset","widgetCrashed","WidgetPanel","onTabChange","showTabs","spaces","home","outboundMessage","OutboundMessageCard","outboundTitle","cta","outboundCta","dismiss","onDismiss","dismissOutboundMessage","onStartChat","prefill","onTrack","event","metadata","track","StyleSheet","create","flex","alignItems","justifyContent","padding","spacing","xxl","gap","lg","fontSize","meta","palette","textSubtle","textAlign","width","height","borderRadius","textMuted","radius","pill","paddingHorizontal","xl","paddingVertical","md","minHeight","white","fontWeight","xs"],"sourceRoot":"../../../src","sources":["ui/WidgetProvider.tsx"],"mappings":";;;;;;AAQA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAUA,IAAAE,OAAA,GAAAF,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA;AACA,IAAAI,KAAA,GAAAJ,OAAA;AACA,IAAAK,eAAA,GAAAL,OAAA;AAEA,IAAAM,cAAA,GAAAN,OAAA;AACA,IAAAO,MAAA,GAAAP,OAAA;AACA,IAAAQ,oBAAA,GAAAR,OAAA;AACA,IAAAS,YAAA,GAAAT,OAAA;AACA,IAAAU,mBAAA,GAAAV,OAAA;AACA,IAAAW,gBAAA,GAAAX,OAAA;AACA,IAAAY,SAAA,GAAAZ,OAAA;AACA,IAAAa,kBAAA,GAAAb,OAAA;AACA,IAAAc,SAAA,GAAAd,OAAA;AACA,IAAAe,YAAA,GAAAf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