@adminide-stack/yantra-mobile 12.0.195 → 12.0.196-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/components/CustomDrawer.js +17 -1
- package/lib/components/CustomDrawer.js.map +1 -1
- package/lib/compute.js +57 -1
- package/lib/compute.js.map +1 -1
- package/lib/config/env-config.js +11 -1
- package/lib/config/env-config.js.map +1 -1
- package/lib/features/agent-chat/NativeAgentChat.js +7 -0
- package/lib/features/agent-chat/NativeAgentChat.js.map +1 -1
- package/lib/features/canvas/extendVideo.js +5 -1
- package/lib/features/canvas/extendVideo.js.map +1 -1
- package/lib/features/canvas/workflow/StepSheet.js +18 -1
- package/lib/features/canvas/workflow/StepSheet.js.map +1 -1
- package/lib/features/canvas/workflow/workflowSteps.js +102 -31
- package/lib/features/canvas/workflow/workflowSteps.js.map +1 -1
- package/lib/features/chat/ComposerMicSend.js +35 -0
- package/lib/features/chat/ComposerMicSend.js.map +1 -0
- package/lib/features/chat/ComposerModeSwitch.js +64 -1
- package/lib/features/chat/ComposerModeSwitch.js.map +1 -1
- package/lib/features/chat/askUser.js +6 -1
- package/lib/features/chat/askUser.js.map +1 -1
- package/lib/features/connectors/ConnectorSheet.js +443 -0
- package/lib/features/connectors/ConnectorSheet.js.map +1 -0
- package/lib/features/connectors/ConnectorsPage.js +320 -0
- package/lib/features/connectors/ConnectorsPage.js.map +1 -0
- package/lib/features/connectors/connectConnector.js +278 -0
- package/lib/features/connectors/connectConnector.js.map +1 -0
- package/lib/features/connectors/connectorCatalog.js +222 -0
- package/lib/features/connectors/connectorCatalog.js.map +1 -0
- package/lib/features/connectors/useConnectorCatalog.js +153 -0
- package/lib/features/connectors/useConnectorCatalog.js.map +1 -0
- package/lib/features/home/needsYou/HomeNeedsYou.js +618 -0
- package/lib/features/home/needsYou/HomeNeedsYou.js.map +1 -0
- package/lib/features/home/needsYou/chatFollowUps.js +333 -0
- package/lib/features/home/needsYou/chatFollowUps.js.map +1 -0
- package/lib/features/home/needsYou/format.js +47 -0
- package/lib/features/home/needsYou/format.js.map +1 -0
- package/lib/features/home/needsYou/historyText.js +40 -0
- package/lib/features/home/needsYou/historyText.js.map +1 -0
- package/lib/features/home/needsYou/inboxHighlights.js +152 -0
- package/lib/features/home/needsYou/inboxHighlights.js.map +1 -0
- package/lib/features/home/needsYou/panelsSettings.js +71 -0
- package/lib/features/home/needsYou/panelsSettings.js.map +1 -0
- package/lib/features/home/needsYou/ported/commandConfirmProtocol.js +13 -0
- package/lib/features/home/needsYou/ported/commandConfirmProtocol.js.map +1 -0
- package/lib/features/home/needsYou/ported/paymentApprovalProtocol.js +91 -0
- package/lib/features/home/needsYou/ported/paymentApprovalProtocol.js.map +1 -0
- package/lib/features/home/needsYou/ported/resultCardModels.js +659 -0
- package/lib/features/home/needsYou/ported/resultCardModels.js.map +1 -0
- package/lib/features/home/needsYou/types.js +1 -0
- package/lib/features/home/needsYou/types.js.map +1 -0
- package/lib/features/home/needsYou/useChatFollowUps.js +149 -0
- package/lib/features/home/needsYou/useChatFollowUps.js.map +1 -0
- package/lib/features/home/needsYou/useHomeBriefing.js +68 -0
- package/lib/features/home/needsYou/useHomeBriefing.js.map +1 -0
- package/lib/features/home/needsYou/useInboxHighlights.js +173 -0
- package/lib/features/home/needsYou/useInboxHighlights.js.map +1 -0
- package/lib/features/home/needsYou/usePanelsSettings.js +105 -0
- package/lib/features/home/needsYou/usePanelsSettings.js.map +1 -0
- package/lib/features/shopping/DealCard.js +8 -1
- package/lib/features/shopping/DealCard.js.map +1 -1
- package/lib/features/shopping/DealRails.js +24 -7
- package/lib/features/shopping/DealRails.js.map +1 -1
- package/lib/features/shopping/DealsPanel.js +1 -1
- package/lib/features/shopping/DealsPanel.js.map +1 -1
- package/lib/features/shopping/HolidayDealsPanel.js +529 -0
- package/lib/features/shopping/HolidayDealsPanel.js.map +1 -0
- package/lib/features/shopping/HolidayDealsParts.js +954 -0
- package/lib/features/shopping/HolidayDealsParts.js.map +1 -0
- package/lib/features/shopping/HolidayOffers.js +351 -0
- package/lib/features/shopping/HolidayOffers.js.map +1 -0
- package/lib/features/shopping/ProductCard.js +80 -14
- package/lib/features/shopping/ProductCard.js.map +1 -1
- package/lib/features/shopping/ProductDetailSheet.js +22 -3
- package/lib/features/shopping/ProductDetailSheet.js.map +1 -1
- package/lib/features/shopping/SavedPanel.js +341 -5
- package/lib/features/shopping/SavedPanel.js.map +1 -1
- package/lib/features/shopping/SearchResults.js +8 -2
- package/lib/features/shopping/SearchResults.js.map +1 -1
- package/lib/features/shopping/ShoppingAgentChatPane.js +12 -0
- package/lib/features/shopping/ShoppingAgentChatPane.js.map +1 -1
- package/lib/features/shopping/ShoppingExperience.js +56 -19
- package/lib/features/shopping/ShoppingExperience.js.map +1 -1
- package/lib/features/shopping/TrendingSections.js +13 -4
- package/lib/features/shopping/TrendingSections.js.map +1 -1
- package/lib/features/shopping/WatchlistPanel.js +61 -5
- package/lib/features/shopping/WatchlistPanel.js.map +1 -1
- package/lib/features/shopping/catalog.js +41 -2
- package/lib/features/shopping/catalog.js.map +1 -1
- package/lib/features/shopping/chat/brainRouter.js +14 -0
- package/lib/features/shopping/chat/brainRouter.js.map +1 -1
- package/lib/features/shopping/chat/shoppingTurn.js +88 -16
- package/lib/features/shopping/chat/shoppingTurn.js.map +1 -1
- package/lib/features/shopping/hooks/useHolidayDeals.js +388 -0
- package/lib/features/shopping/hooks/useHolidayDeals.js.map +1 -0
- package/lib/features/shopping/hooks/useProductMedia.js +33 -6
- package/lib/features/shopping/hooks/useProductMedia.js.map +1 -1
- package/lib/features/shopping/hooks/useShoppingHistorySync.js +8 -4
- package/lib/features/shopping/hooks/useShoppingHistorySync.js.map +1 -1
- package/lib/features/shopping/hooks/useTrendingProducts.js +11 -3
- package/lib/features/shopping/hooks/useTrendingProducts.js.map +1 -1
- package/lib/features/shopping/savedProducts.js +76 -6
- package/lib/features/shopping/savedProducts.js.map +1 -1
- package/lib/features/shopping/services/aiRelevance.js +212 -0
- package/lib/features/shopping/services/aiRelevance.js.map +1 -0
- package/lib/features/shopping/services/blackFriday.js +301 -0
- package/lib/features/shopping/services/blackFriday.js.map +1 -0
- package/lib/features/shopping/services/blackFridayBrowserSites.js +137 -0
- package/lib/features/shopping/services/blackFridayBrowserSites.js.map +1 -0
- package/lib/features/shopping/services/catalogProductSearch.js +21 -3
- package/lib/features/shopping/services/catalogProductSearch.js.map +1 -1
- package/lib/features/shopping/services/holidayDeals.js +143 -0
- package/lib/features/shopping/services/holidayDeals.js.map +1 -0
- package/lib/features/shopping/services/mediaShape.js +7 -0
- package/lib/features/shopping/services/mediaShape.js.map +1 -0
- package/lib/features/shopping/services/modelStep.js +95 -0
- package/lib/features/shopping/services/modelStep.js.map +1 -0
- package/lib/features/shopping/services/modelWords.js +14 -0
- package/lib/features/shopping/services/modelWords.js.map +1 -0
- package/lib/features/shopping/services/productAvailability.js +5 -1
- package/lib/features/shopping/services/productAvailability.js.map +1 -1
- package/lib/features/shopping/services/productFilters.js +2 -2
- package/lib/features/shopping/services/productFilters.js.map +1 -1
- package/lib/features/shopping/services/productMedia.js +103 -18
- package/lib/features/shopping/services/productMedia.js.map +1 -1
- package/lib/features/shopping/services/retailerUrl.js +11 -8
- package/lib/features/shopping/services/retailerUrl.js.map +1 -1
- package/lib/features/shopping/services/salesDealsStore.js +3 -2
- package/lib/features/shopping/services/salesDealsStore.js.map +1 -1
- package/lib/features/shopping/services/savedReads.js +82 -0
- package/lib/features/shopping/services/savedReads.js.map +1 -0
- package/lib/features/shopping/services/searchCardFields.js +2 -0
- package/lib/features/shopping/services/searchCardFields.js.map +1 -1
- package/lib/features/shopping/services/searchRelevance.js +154 -24
- package/lib/features/shopping/services/searchRelevance.js.map +1 -1
- package/lib/features/shopping/services/secondHand.js +12 -0
- package/lib/features/shopping/services/secondHand.js.map +1 -0
- package/lib/features/shopping/services/shoppingProductSearch.js +82 -10
- package/lib/features/shopping/services/shoppingProductSearch.js.map +1 -1
- package/lib/features/shopping/services/shoppingSearchConnectorClient.js +14 -1
- package/lib/features/shopping/services/shoppingSearchConnectorClient.js.map +1 -1
- package/lib/features/shopping/services/shoppingSubgraph.js +2 -1
- package/lib/features/shopping/services/shoppingSubgraph.js.map +1 -1
- package/lib/features/shopping/services/storedGalleries.js +130 -0
- package/lib/features/shopping/services/storedGalleries.js.map +1 -0
- package/lib/features/shopping/services/usedSites.js +263 -0
- package/lib/features/shopping/services/usedSites.js.map +1 -0
- package/lib/features/shopping/services/verifyProducts.js +3 -3
- package/lib/features/shopping/services/verifyProducts.js.map +1 -1
- package/lib/features/shopping/services/watchDeal.js +61 -0
- package/lib/features/shopping/services/watchDeal.js.map +1 -0
- package/lib/features/shopping/shoppingRuntime.js +7 -2
- package/lib/features/shopping/shoppingRuntime.js.map +1 -1
- package/lib/features/shopping/state/accountCaches.js +20 -0
- package/lib/features/shopping/state/accountCaches.js.map +1 -0
- package/lib/features/shopping/state/holidayDealsRequest.js +22 -0
- package/lib/features/shopping/state/holidayDealsRequest.js.map +1 -0
- package/lib/features/shopping/tutorials/ShoppingTutorialDock.js +1 -1
- package/lib/features/shopping/tutorials/ShoppingTutorialDock.js.map +1 -1
- package/lib/features/shopping/tutorials/shoppingTutorials.js +2 -0
- package/lib/features/shopping/tutorials/shoppingTutorials.js.map +1 -1
- package/lib/features/shopping/useShoppingSearch.js +74 -18
- package/lib/features/shopping/useShoppingSearch.js.map +1 -1
- package/lib/features/team-chat/TeamChatExperience.js +474 -0
- package/lib/features/team-chat/TeamChatExperience.js.map +1 -0
- package/lib/features/team-chat/api/client.js +198 -0
- package/lib/features/team-chat/api/client.js.map +1 -0
- package/lib/features/team-chat/api/live.js +160 -0
- package/lib/features/team-chat/api/live.js.map +1 -0
- package/lib/features/team-chat/api/ops.js +241 -0
- package/lib/features/team-chat/api/ops.js.map +1 -0
- package/lib/features/team-chat/app.js +12 -0
- package/lib/features/team-chat/app.js.map +1 -0
- package/lib/features/team-chat/components/Avatar.js +107 -0
- package/lib/features/team-chat/components/Avatar.js.map +1 -0
- package/lib/features/team-chat/components/Composer.js +641 -0
- package/lib/features/team-chat/components/Composer.js.map +1 -0
- package/lib/features/team-chat/components/Dialogs.js +598 -0
- package/lib/features/team-chat/components/Dialogs.js.map +1 -0
- package/lib/features/team-chat/components/EmojiPicker.js +165 -0
- package/lib/features/team-chat/components/EmojiPicker.js.map +1 -0
- package/lib/features/team-chat/components/MessageItem.js +658 -0
- package/lib/features/team-chat/components/MessageItem.js.map +1 -0
- package/lib/features/team-chat/components/MessageList.js +248 -0
- package/lib/features/team-chat/components/MessageList.js.map +1 -0
- package/lib/features/team-chat/components/Mrkdwn.js +228 -0
- package/lib/features/team-chat/components/Mrkdwn.js.map +1 -0
- package/lib/features/team-chat/components/QuickSwitcher.js +215 -0
- package/lib/features/team-chat/components/QuickSwitcher.js.map +1 -0
- package/lib/features/team-chat/components/ui.js +662 -0
- package/lib/features/team-chat/components/ui.js.map +1 -0
- package/lib/features/team-chat/nativeTeamChatRegistry.js +15 -0
- package/lib/features/team-chat/nativeTeamChatRegistry.js.map +1 -0
- package/lib/features/team-chat/state/fetched.js +39 -0
- package/lib/features/team-chat/state/fetched.js.map +1 -0
- package/lib/features/team-chat/state/lists.js +230 -0
- package/lib/features/team-chat/state/lists.js.map +1 -0
- package/lib/features/team-chat/state/store.js +1108 -0
- package/lib/features/team-chat/state/store.js.map +1 -0
- package/lib/features/team-chat/state/useChannelDirectory.js +21 -0
- package/lib/features/team-chat/state/useChannelDirectory.js.map +1 -0
- package/lib/features/team-chat/theme.js +77 -0
- package/lib/features/team-chat/theme.js.map +1 -0
- package/lib/features/team-chat/utils/composeText.js +72 -0
- package/lib/features/team-chat/utils/composeText.js.map +1 -0
- package/lib/features/team-chat/utils/emoji.js +369 -0
- package/lib/features/team-chat/utils/emoji.js.map +1 -0
- package/lib/features/team-chat/utils/format.js +109 -0
- package/lib/features/team-chat/utils/format.js.map +1 -0
- package/lib/features/team-chat/utils/messageRows.js +24 -0
- package/lib/features/team-chat/utils/messageRows.js.map +1 -0
- package/lib/features/team-chat/utils/mrkdwn.js +222 -0
- package/lib/features/team-chat/utils/mrkdwn.js.map +1 -0
- package/lib/features/team-chat/utils/notify.js +47 -0
- package/lib/features/team-chat/utils/notify.js.map +1 -0
- package/lib/features/team-chat/utils/pickFiles.js +81 -0
- package/lib/features/team-chat/utils/pickFiles.js.map +1 -0
- package/lib/features/team-chat/views/ActivityView.js +235 -0
- package/lib/features/team-chat/views/ActivityView.js.map +1 -0
- package/lib/features/team-chat/views/BrowseView.js +179 -0
- package/lib/features/team-chat/views/BrowseView.js.map +1 -0
- package/lib/features/team-chat/views/ChannelView.js +475 -0
- package/lib/features/team-chat/views/ChannelView.js.map +1 -0
- package/lib/features/team-chat/views/DetailsPane.js +816 -0
- package/lib/features/team-chat/views/DetailsPane.js.map +1 -0
- package/lib/features/team-chat/views/DraftsView.js +212 -0
- package/lib/features/team-chat/views/DraftsView.js.map +1 -0
- package/lib/features/team-chat/views/FilesView.js +152 -0
- package/lib/features/team-chat/views/FilesView.js.map +1 -0
- package/lib/features/team-chat/views/NewMessageView.js +286 -0
- package/lib/features/team-chat/views/NewMessageView.js.map +1 -0
- package/lib/features/team-chat/views/PeopleView.js +118 -0
- package/lib/features/team-chat/views/PeopleView.js.map +1 -0
- package/lib/features/team-chat/views/ProfilePane.js +220 -0
- package/lib/features/team-chat/views/ProfilePane.js.map +1 -0
- package/lib/features/team-chat/views/SavedView.js +113 -0
- package/lib/features/team-chat/views/SavedView.js.map +1 -0
- package/lib/features/team-chat/views/SearchView.js +307 -0
- package/lib/features/team-chat/views/SearchView.js.map +1 -0
- package/lib/features/team-chat/views/Sidebar.js +368 -0
- package/lib/features/team-chat/views/Sidebar.js.map +1 -0
- package/lib/features/team-chat/views/ThreadPane.js +139 -0
- package/lib/features/team-chat/views/ThreadPane.js.map +1 -0
- package/lib/features/team-chat/views/ThreadsView.js +157 -0
- package/lib/features/team-chat/views/ThreadsView.js.map +1 -0
- package/lib/features/webbuilder/WebBuilderExperience.js +276 -42
- package/lib/features/webbuilder/WebBuilderExperience.js.map +1 -1
- package/lib/features/webbuilder/buildFragments.js +10 -4
- package/lib/features/webbuilder/buildFragments.js.map +1 -1
- package/lib/features/webbuilder/components/AssetChips.js +61 -0
- package/lib/features/webbuilder/components/AssetChips.js.map +1 -0
- package/lib/features/webbuilder/components/AssetSiteChooser.js +100 -0
- package/lib/features/webbuilder/components/AssetSiteChooser.js.map +1 -0
- package/lib/features/webbuilder/components/CommentsLayer.js +485 -0
- package/lib/features/webbuilder/components/CommentsLayer.js.map +1 -0
- package/lib/features/webbuilder/components/Composer.js +16 -2
- package/lib/features/webbuilder/components/Composer.js.map +1 -1
- package/lib/features/webbuilder/components/ComposerModeSwitch.js +71 -0
- package/lib/features/webbuilder/components/ComposerModeSwitch.js.map +1 -0
- package/lib/features/webbuilder/components/MyAssetsPicker.js +500 -0
- package/lib/features/webbuilder/components/MyAssetsPicker.js.map +1 -0
- package/lib/features/webbuilder/components/PlanDocument.js +165 -0
- package/lib/features/webbuilder/components/PlanDocument.js.map +1 -0
- package/lib/features/webbuilder/components/PlanDraftCard.js +205 -0
- package/lib/features/webbuilder/components/PlanDraftCard.js.map +1 -0
- package/lib/features/webbuilder/components/PlanView.js +788 -0
- package/lib/features/webbuilder/components/PlanView.js.map +1 -0
- package/lib/features/webbuilder/components/PreviewConsoleSheet.js +334 -0
- package/lib/features/webbuilder/components/PreviewConsoleSheet.js.map +1 -0
- package/lib/features/webbuilder/components/PreviewFrame.js +45 -3
- package/lib/features/webbuilder/components/PreviewFrame.js.map +1 -1
- package/lib/features/webbuilder/components/PreviewScreen.js +94 -10
- package/lib/features/webbuilder/components/PreviewScreen.js.map +1 -1
- package/lib/features/webbuilder/components/ProjectChat.js +84 -14
- package/lib/features/webbuilder/components/ProjectChat.js.map +1 -1
- package/lib/features/webbuilder/components/StudioHome.js +69 -6
- package/lib/features/webbuilder/components/StudioHome.js.map +1 -1
- package/lib/features/webbuilder/components/StyleDirectionsSheet.js +291 -0
- package/lib/features/webbuilder/components/StyleDirectionsSheet.js.map +1 -0
- package/lib/features/webbuilder/components/VersionChangesView.js +574 -0
- package/lib/features/webbuilder/components/VersionChangesView.js.map +1 -0
- package/lib/features/webbuilder/components/VersionPreviewView.js +186 -0
- package/lib/features/webbuilder/components/VersionPreviewView.js.map +1 -0
- package/lib/features/webbuilder/components/VersionsSheet.js +673 -16
- package/lib/features/webbuilder/components/VersionsSheet.js.map +1 -1
- package/lib/features/webbuilder/connectorTemplates.js +6 -1
- package/lib/features/webbuilder/connectorTemplates.js.map +1 -1
- package/lib/features/webbuilder/myAssets.js +101 -0
- package/lib/features/webbuilder/myAssets.js.map +1 -0
- package/lib/features/webbuilder/planChat.js +146 -0
- package/lib/features/webbuilder/planChat.js.map +1 -0
- package/lib/features/webbuilder/planDocument.js +89 -0
- package/lib/features/webbuilder/planDocument.js.map +1 -0
- package/lib/features/webbuilder/planStore.js +55 -0
- package/lib/features/webbuilder/planStore.js.map +1 -0
- package/lib/features/webbuilder/previewCommentsScript.js +218 -0
- package/lib/features/webbuilder/previewCommentsScript.js.map +1 -0
- package/lib/features/webbuilder/previewConsoleScript.js +39 -0
- package/lib/features/webbuilder/previewConsoleScript.js.map +1 -0
- package/lib/features/webbuilder/styleDirections.js +85 -0
- package/lib/features/webbuilder/styleDirections.js.map +1 -0
- package/lib/features/webbuilder/useCanvasComments.js +335 -0
- package/lib/features/webbuilder/useCanvasComments.js.map +1 -0
- package/lib/features/webbuilder/useCatalogTemplates.js +37 -0
- package/lib/features/webbuilder/useCatalogTemplates.js.map +1 -0
- package/lib/features/webbuilder/usePlanMode.js +145 -0
- package/lib/features/webbuilder/usePlanMode.js.map +1 -0
- package/lib/features/webbuilder/useStyleDirections.js +112 -0
- package/lib/features/webbuilder/useStyleDirections.js.map +1 -0
- package/lib/features/webbuilder/web/assets/assetsApi.js +174 -0
- package/lib/features/webbuilder/web/assets/assetsApi.js.map +1 -0
- package/lib/features/webbuilder/web/assets/assetsApi.ts +173 -0
- package/lib/features/webbuilder/web/assets/myAssets.js +341 -0
- package/lib/features/webbuilder/web/assets/myAssets.js.map +1 -0
- package/lib/features/webbuilder/web/assets/myAssets.ts +396 -0
- package/lib/features/webbuilder/web/canvas/elementName.js +46 -0
- package/lib/features/webbuilder/web/canvas/elementName.js.map +1 -0
- package/lib/features/webbuilder/web/canvas/visualEditorBridge.js +95 -0
- package/lib/features/webbuilder/web/canvas/visualEditorBridge.js.map +1 -0
- package/lib/features/webbuilder/web/chat/agentTurn.js +24 -0
- package/lib/features/webbuilder/web/chat/agentTurn.js.map +1 -0
- package/lib/features/webbuilder/web/chat/planMode.js +164 -0
- package/lib/features/webbuilder/web/chat/planMode.js.map +1 -0
- package/lib/features/webbuilder/web/chat/realPlans.js +66 -0
- package/lib/features/webbuilder/web/chat/realPlans.js.map +1 -0
- package/lib/features/webbuilder/web/comments/comments.js +336 -0
- package/lib/features/webbuilder/web/comments/comments.js.map +1 -0
- package/lib/features/webbuilder/web/comments/commentsApi.js +59 -0
- package/lib/features/webbuilder/web/comments/commentsApi.js.map +1 -0
- package/lib/features/webbuilder/web/components/planView.js +21 -0
- package/lib/features/webbuilder/web/components/planView.js.map +1 -0
- package/lib/features/webbuilder/web/console/consolePanel.js +43 -0
- package/lib/features/webbuilder/web/console/consolePanel.js.map +1 -0
- package/lib/features/webbuilder/web/console/previewConsole.js +256 -0
- package/lib/features/webbuilder/web/console/previewConsole.js.map +1 -0
- package/lib/features/webbuilder/web/console/usePreviewConsole.js +147 -0
- package/lib/features/webbuilder/web/console/usePreviewConsole.js.map +1 -0
- package/lib/features/webbuilder/web/design/directions.js +419 -1
- package/lib/features/webbuilder/web/design/directions.js.map +1 -1
- package/lib/features/webbuilder/web/history/diffActions.js +222 -0
- package/lib/features/webbuilder/web/history/diffActions.js.map +1 -0
- package/lib/features/webbuilder/web/history/diffHighlight.js +18 -0
- package/lib/features/webbuilder/web/history/diffHighlight.js.map +1 -0
- package/lib/features/webbuilder/web/history/versionActions.js +272 -0
- package/lib/features/webbuilder/web/history/versionActions.js.map +1 -0
- package/lib/features/webbuilder/web/history/versionDiff.js +338 -0
- package/lib/features/webbuilder/web/history/versionDiff.js.map +1 -0
- package/lib/features/webbuilder/web/history/versionPreview.js +83 -0
- package/lib/features/webbuilder/web/history/versionPreview.js.map +1 -0
- package/lib/features/webbuilder/web/history/versionPreviewMachine.js +150 -0
- package/lib/features/webbuilder/web/history/versionPreviewMachine.js.map +1 -0
- package/lib/features/webbuilder/web/history/versions.js +326 -1
- package/lib/features/webbuilder/web/history/versions.js.map +1 -1
- package/lib/features/webbuilder/web/hosted/hostedTurn.js +36 -0
- package/lib/features/webbuilder/web/hosted/hostedTurn.js.map +1 -0
- package/lib/features/webbuilder/web/studio/brandKit.js +25 -0
- package/lib/features/webbuilder/web/studio/brandKit.js.map +1 -0
- package/lib/features/webbuilder/web/utils/promptSafe.js +15 -0
- package/lib/features/webbuilder/web/utils/promptSafe.js.map +1 -0
- package/lib/features/webbuilder/web/webServices.js +3 -1
- package/lib/features/webbuilder/web/webServices.js.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/routes.json +55 -0
- package/lib/screens/Account/index.js +13 -5
- package/lib/screens/Account/index.js.map +1 -1
- package/lib/screens/Chat/index.js +16 -0
- package/lib/screens/Chat/index.js.map +1 -1
- package/lib/screens/Home/HomeScreen.js +202 -39
- package/lib/screens/Home/HomeScreen.js.map +1 -1
- package/lib/screens/Home/components/HomeHero.js +52 -38
- package/lib/screens/Home/components/HomeHero.js.map +1 -1
- package/lib/screens/Home/components/homeCatalog.js +8 -1
- package/lib/screens/Home/components/homeCatalog.js.map +1 -1
- package/lib/screens/TeamChat/index.js +41 -0
- package/lib/screens/TeamChat/index.js.map +1 -0
- package/lib/screens/WebBuilder/nativeWebBuilderRedirect.js +9 -2
- package/lib/screens/WebBuilder/nativeWebBuilderRedirect.js.map +1 -1
- package/lib/screens/WebBuilderNative/index.js +13 -3
- package/lib/screens/WebBuilderNative/index.js.map +1 -1
- package/lib/screens/WebBuilderNative/useConnectorTemplates.js +2 -2
- package/lib/screens/WebBuilderNative/useConnectorTemplates.js.map +1 -1
- package/package.json +4 -4
|
@@ -0,0 +1,618 @@
|
|
|
1
|
+
import {jsxs,jsx}from'react/jsx-runtime';import {useState,useCallback,useEffect}from'react';import {StyleSheet,View,ScrollView,Pressable,ActivityIndicator,Modal,Image}from'react-native';import {useSafeAreaInsets}from'react-native-safe-area-context';import {MaterialCommunityIcons}from'@expo/vector-icons';import {Text}from'@admin-layout/gluestack-ui-mobile';import {relativeTime,faviconUrl}from'./format.js';const CARD_WIDTH = 272;
|
|
2
|
+
const SOURCE_ICON = {
|
|
3
|
+
chat: "message-outline",
|
|
4
|
+
gmail: "email-outline",
|
|
5
|
+
calendar: "calendar-clock"
|
|
6
|
+
};
|
|
7
|
+
const SOURCE_LABEL = {
|
|
8
|
+
chat: "From your chat",
|
|
9
|
+
gmail: "Gmail",
|
|
10
|
+
calendar: "Calendar"
|
|
11
|
+
};
|
|
12
|
+
function cardTitle(card) {
|
|
13
|
+
const text = card.text.trim();
|
|
14
|
+
if (/^[“"]/.test(text)) return text.slice(1).replace(/[”"]$/, "").trim();
|
|
15
|
+
return `${card.verb} ${text}`;
|
|
16
|
+
}
|
|
17
|
+
function splitAside(title) {
|
|
18
|
+
const match = /^(.*\S)\s*\(([^()]+)\)$/.exec(title);
|
|
19
|
+
return match && match[1].length >= 12 ? {
|
|
20
|
+
head: match[1],
|
|
21
|
+
aside: match[2].trim()
|
|
22
|
+
} : {
|
|
23
|
+
head: title
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
function sourceLine(card) {
|
|
27
|
+
var _a;
|
|
28
|
+
const context = (_a = card.context) == null ? void 0 : _a.trim();
|
|
29
|
+
if (!context || context === "Gmail") return SOURCE_LABEL[card.source];
|
|
30
|
+
if (card.source === "chat") return `In \u201C${context}\u201D`;
|
|
31
|
+
return card.source === "gmail" ? `From ${context}` : context;
|
|
32
|
+
}
|
|
33
|
+
function opensChatOnly(card) {
|
|
34
|
+
return card.action.kind === "open-chat" && !card.action.reply;
|
|
35
|
+
}
|
|
36
|
+
function primaryLabel(card) {
|
|
37
|
+
return opensChatOnly(card) ? "Open chat" : card.verb;
|
|
38
|
+
}
|
|
39
|
+
function capitalize(text) {
|
|
40
|
+
return text ? text.charAt(0).toLocaleUpperCase() + text.slice(1) : text;
|
|
41
|
+
}
|
|
42
|
+
function checkedAgo(at, now) {
|
|
43
|
+
const label = relativeTime(at, now);
|
|
44
|
+
return label === "now" ? "just now" : /^\d/.test(label) ? `${label} ago` : label;
|
|
45
|
+
}
|
|
46
|
+
function useNow(everyMs) {
|
|
47
|
+
const [now, setNow] = useState(() => Date.now());
|
|
48
|
+
useEffect(() => {
|
|
49
|
+
const timer = setInterval(() => setNow(Date.now()), everyMs);
|
|
50
|
+
return () => clearInterval(timer);
|
|
51
|
+
}, [everyMs]);
|
|
52
|
+
return now;
|
|
53
|
+
}
|
|
54
|
+
function paletteFor(isDark) {
|
|
55
|
+
return isDark ? {
|
|
56
|
+
card: "#111827",
|
|
57
|
+
border: "rgba(148,163,184,0.22)",
|
|
58
|
+
ink: "#e5e7eb",
|
|
59
|
+
muted: "#94a3b8",
|
|
60
|
+
chip: "rgba(229,231,235,0.08)",
|
|
61
|
+
chipPressed: "rgba(229,231,235,0.16)",
|
|
62
|
+
accent: "#F6B24A",
|
|
63
|
+
ok: "#4ade80",
|
|
64
|
+
banner: "rgba(148,163,184,0.12)",
|
|
65
|
+
pressed: "rgba(148,163,184,0.10)",
|
|
66
|
+
backdrop: "rgba(0,0,0,0.55)"
|
|
67
|
+
} : {
|
|
68
|
+
card: "#FFFFFF",
|
|
69
|
+
border: "#ECE7DF",
|
|
70
|
+
ink: "#1f2937",
|
|
71
|
+
muted: "#6b7280",
|
|
72
|
+
chip: "rgba(15,23,42,0.06)",
|
|
73
|
+
chipPressed: "rgba(15,23,42,0.11)",
|
|
74
|
+
accent: "#A84E09",
|
|
75
|
+
ok: "#16a34a",
|
|
76
|
+
banner: "rgba(15,23,42,0.05)",
|
|
77
|
+
pressed: "rgba(15,23,42,0.04)",
|
|
78
|
+
backdrop: "rgba(15,23,42,0.35)"
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
function Sentence({
|
|
82
|
+
text,
|
|
83
|
+
app,
|
|
84
|
+
style
|
|
85
|
+
}) {
|
|
86
|
+
const at = app ? text.toLowerCase().indexOf(app.name.toLowerCase()) : -1;
|
|
87
|
+
if (!app || at < 0) return /* @__PURE__ */ jsx(Text, { style, children: text });
|
|
88
|
+
return /* @__PURE__ */ jsxs(Text, { style, children: [
|
|
89
|
+
text.slice(0, at),
|
|
90
|
+
app.domain ? /* @__PURE__ */ jsx(Image, { source: {
|
|
91
|
+
uri: faviconUrl(app.domain)
|
|
92
|
+
}, style: styles.appMark, accessibilityIgnoresInvertColors: true }) : null,
|
|
93
|
+
app.domain ? " " : "",
|
|
94
|
+
text.slice(at)
|
|
95
|
+
] });
|
|
96
|
+
}
|
|
97
|
+
function NeedsCard({
|
|
98
|
+
card,
|
|
99
|
+
now,
|
|
100
|
+
pal,
|
|
101
|
+
onAct,
|
|
102
|
+
onDismiss,
|
|
103
|
+
onOpen
|
|
104
|
+
}) {
|
|
105
|
+
const when = card.at ? capitalize(relativeTime(card.at, now)) : null;
|
|
106
|
+
const title = cardTitle(card);
|
|
107
|
+
return /* @__PURE__ */ jsxs(Pressable, { onPress: () => onOpen(card), accessibilityRole: "button", accessibilityLabel: `Details: ${title}`, style: ({
|
|
108
|
+
pressed
|
|
109
|
+
}) => [styles.card, {
|
|
110
|
+
backgroundColor: pal.card,
|
|
111
|
+
borderColor: pal.border
|
|
112
|
+
}, pressed && {
|
|
113
|
+
opacity: 0.92
|
|
114
|
+
}], children: [
|
|
115
|
+
/* @__PURE__ */ jsxs(View, { style: styles.cardTop, children: [
|
|
116
|
+
/* @__PURE__ */ jsx(MaterialCommunityIcons, { name: SOURCE_ICON[card.source], size: 14, color: pal.muted }),
|
|
117
|
+
/* @__PURE__ */ jsx(Text, { numberOfLines: 1, style: [styles.source, {
|
|
118
|
+
color: pal.muted
|
|
119
|
+
}], children: sourceLine(card) }),
|
|
120
|
+
card.urgent ? /* @__PURE__ */ jsx(Text, { style: [styles.soon, {
|
|
121
|
+
color: pal.accent
|
|
122
|
+
}], children: "Soon" }) : null,
|
|
123
|
+
when ? /* @__PURE__ */ jsx(Text, { style: [styles.when, {
|
|
124
|
+
color: pal.muted
|
|
125
|
+
}], children: when }) : null
|
|
126
|
+
] }),
|
|
127
|
+
/* @__PURE__ */ jsx(Sentence, { text: splitAside(title).head, app: card.app, style: [styles.cardTitle, {
|
|
128
|
+
color: pal.ink
|
|
129
|
+
}] }),
|
|
130
|
+
/* @__PURE__ */ jsxs(View, { style: styles.cardActions, children: [
|
|
131
|
+
/* @__PURE__ */ jsxs(Pressable, { onPress: () => onAct(card), accessibilityRole: "button", style: ({
|
|
132
|
+
pressed
|
|
133
|
+
}) => [styles.go, {
|
|
134
|
+
backgroundColor: pressed ? pal.chipPressed : pal.chip
|
|
135
|
+
}], children: [
|
|
136
|
+
/* @__PURE__ */ jsx(Text, { style: [styles.goLabel, {
|
|
137
|
+
color: pal.ink
|
|
138
|
+
}], children: primaryLabel(card) }),
|
|
139
|
+
opensChatOnly(card) ? /* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "arrow-top-right", size: 14, color: pal.ink }) : null
|
|
140
|
+
] }),
|
|
141
|
+
/* @__PURE__ */ jsx(Pressable, { onPress: () => onDismiss(card), accessibilityRole: "button", hitSlop: 6, style: ({
|
|
142
|
+
pressed
|
|
143
|
+
}) => [styles.ghost, pressed && {
|
|
144
|
+
backgroundColor: pal.pressed
|
|
145
|
+
}], children: /* @__PURE__ */ jsx(Text, { style: [styles.ghostLabel, {
|
|
146
|
+
color: pal.muted
|
|
147
|
+
}], children: "Dismiss" }) })
|
|
148
|
+
] })
|
|
149
|
+
] });
|
|
150
|
+
}
|
|
151
|
+
function NeedsFocus({
|
|
152
|
+
card,
|
|
153
|
+
now,
|
|
154
|
+
pal,
|
|
155
|
+
onAct,
|
|
156
|
+
onReply,
|
|
157
|
+
onDismiss,
|
|
158
|
+
onClose
|
|
159
|
+
}) {
|
|
160
|
+
const insets = useSafeAreaInsets();
|
|
161
|
+
const when = card.at ? capitalize(relativeTime(card.at, now)) : null;
|
|
162
|
+
const {
|
|
163
|
+
head,
|
|
164
|
+
aside
|
|
165
|
+
} = splitAside(cardTitle(card));
|
|
166
|
+
const run = (handler) => () => {
|
|
167
|
+
onClose();
|
|
168
|
+
handler(card);
|
|
169
|
+
};
|
|
170
|
+
return /* @__PURE__ */ jsx(Modal, { visible: true, transparent: true, animationType: "fade", onRequestClose: onClose, children: /* @__PURE__ */ jsx(Pressable, { style: [styles.backdrop, {
|
|
171
|
+
backgroundColor: pal.backdrop
|
|
172
|
+
}], onPress: onClose, accessibilityLabel: "Close", children: /* @__PURE__ */ jsxs(Pressable, { onPress: () => void 0, style: [styles.focus, {
|
|
173
|
+
backgroundColor: pal.card,
|
|
174
|
+
borderColor: pal.border,
|
|
175
|
+
marginBottom: Math.max(16, insets.bottom)
|
|
176
|
+
}], children: [
|
|
177
|
+
/* @__PURE__ */ jsxs(View, { style: styles.focusBody, children: [
|
|
178
|
+
/* @__PURE__ */ jsxs(View, { style: styles.cardTop, children: [
|
|
179
|
+
/* @__PURE__ */ jsx(MaterialCommunityIcons, { name: SOURCE_ICON[card.source], size: 14, color: pal.muted }),
|
|
180
|
+
/* @__PURE__ */ jsx(Text, { numberOfLines: 1, style: [styles.source, {
|
|
181
|
+
color: pal.muted
|
|
182
|
+
}], children: sourceLine(card) }),
|
|
183
|
+
card.urgent ? /* @__PURE__ */ jsx(Text, { style: [styles.soon, {
|
|
184
|
+
color: pal.accent
|
|
185
|
+
}], children: "Soon" }) : null,
|
|
186
|
+
when ? /* @__PURE__ */ jsx(Text, { style: [styles.when, {
|
|
187
|
+
color: pal.muted
|
|
188
|
+
}], children: when }) : null
|
|
189
|
+
] }),
|
|
190
|
+
/* @__PURE__ */ jsx(Sentence, { text: head, app: card.app, style: [styles.focusTitle, {
|
|
191
|
+
color: pal.ink
|
|
192
|
+
}] }),
|
|
193
|
+
aside ? /* @__PURE__ */ jsx(Text, { style: [styles.aside, {
|
|
194
|
+
color: pal.muted
|
|
195
|
+
}], children: aside }) : null,
|
|
196
|
+
card.detail ? /* @__PURE__ */ jsx(Text, { style: [styles.detail, {
|
|
197
|
+
color: pal.ink,
|
|
198
|
+
backgroundColor: pal.banner
|
|
199
|
+
}], children: card.detail }) : null
|
|
200
|
+
] }),
|
|
201
|
+
/* @__PURE__ */ jsxs(View, { style: [styles.focusActions, {
|
|
202
|
+
borderTopColor: pal.border
|
|
203
|
+
}], children: [
|
|
204
|
+
/* @__PURE__ */ jsxs(Pressable, { onPress: run(onAct), accessibilityRole: "button", style: ({
|
|
205
|
+
pressed
|
|
206
|
+
}) => [styles.go, {
|
|
207
|
+
backgroundColor: pressed ? pal.chipPressed : pal.chip
|
|
208
|
+
}], children: [
|
|
209
|
+
/* @__PURE__ */ jsx(Text, { style: [styles.goLabel, {
|
|
210
|
+
color: pal.ink
|
|
211
|
+
}], children: primaryLabel(card) }),
|
|
212
|
+
opensChatOnly(card) ? /* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "arrow-top-right", size: 14, color: pal.ink }) : null
|
|
213
|
+
] }),
|
|
214
|
+
/* @__PURE__ */ jsxs(Pressable, { onPress: run(onReply), accessibilityRole: "button", style: ({
|
|
215
|
+
pressed
|
|
216
|
+
}) => [styles.ghost, pressed && {
|
|
217
|
+
backgroundColor: pal.pressed
|
|
218
|
+
}], children: [
|
|
219
|
+
/* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "reply-outline", size: 15, color: pal.muted }),
|
|
220
|
+
/* @__PURE__ */ jsx(Text, { style: [styles.ghostLabel, {
|
|
221
|
+
color: pal.muted
|
|
222
|
+
}], children: "Reply" })
|
|
223
|
+
] }),
|
|
224
|
+
/* @__PURE__ */ jsxs(Pressable, { onPress: run(onDismiss), accessibilityRole: "button", style: ({
|
|
225
|
+
pressed
|
|
226
|
+
}) => [styles.ghost, styles.pushRight, pressed && {
|
|
227
|
+
backgroundColor: pal.pressed
|
|
228
|
+
}], children: [
|
|
229
|
+
/* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "trash-can-outline", size: 15, color: pal.muted }),
|
|
230
|
+
/* @__PURE__ */ jsx(Text, { style: [styles.ghostLabel, {
|
|
231
|
+
color: pal.muted
|
|
232
|
+
}], children: "Dismiss" })
|
|
233
|
+
] })
|
|
234
|
+
] })
|
|
235
|
+
] }) }) });
|
|
236
|
+
}
|
|
237
|
+
function InboxBanner({
|
|
238
|
+
status,
|
|
239
|
+
pal,
|
|
240
|
+
onConnect,
|
|
241
|
+
onTurnOn,
|
|
242
|
+
onNotNow,
|
|
243
|
+
onRetry
|
|
244
|
+
}) {
|
|
245
|
+
if (status === "loading") {
|
|
246
|
+
return /* @__PURE__ */ jsxs(View, { style: [styles.bannerQuiet, {
|
|
247
|
+
backgroundColor: pal.banner
|
|
248
|
+
}], accessibilityState: {
|
|
249
|
+
busy: true
|
|
250
|
+
}, children: [
|
|
251
|
+
/* @__PURE__ */ jsx(ActivityIndicator, { size: "small", color: pal.muted }),
|
|
252
|
+
/* @__PURE__ */ jsx(Text, { style: [styles.bannerQuietText, {
|
|
253
|
+
color: pal.muted
|
|
254
|
+
}], children: "Reading your inbox\u2026" })
|
|
255
|
+
] });
|
|
256
|
+
}
|
|
257
|
+
if (status === "error") {
|
|
258
|
+
return /* @__PURE__ */ jsxs(View, { style: [styles.bannerQuiet, styles.spread, {
|
|
259
|
+
backgroundColor: pal.banner
|
|
260
|
+
}], children: [
|
|
261
|
+
/* @__PURE__ */ jsx(Text, { style: [styles.bannerQuietText, {
|
|
262
|
+
color: pal.ink
|
|
263
|
+
}], children: "Couldn\u2019t read your inbox." }),
|
|
264
|
+
/* @__PURE__ */ jsxs(Pressable, { onPress: onRetry, accessibilityRole: "button", style: styles.ghost, children: [
|
|
265
|
+
/* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "refresh", size: 15, color: pal.ink }),
|
|
266
|
+
/* @__PURE__ */ jsx(Text, { style: [styles.ghostLabel, {
|
|
267
|
+
color: pal.ink
|
|
268
|
+
}], children: "Try again" })
|
|
269
|
+
] })
|
|
270
|
+
] });
|
|
271
|
+
}
|
|
272
|
+
const copy = status === "disconnected" ? {
|
|
273
|
+
title: "Bring in your inbox",
|
|
274
|
+
body: "Connect Gmail and Yantra flags the emails that need you: replies, bills, deadlines.",
|
|
275
|
+
action: "Connect Gmail",
|
|
276
|
+
onAction: onConnect
|
|
277
|
+
} : status === "needs-consent" ? {
|
|
278
|
+
title: "Inbox highlights",
|
|
279
|
+
body: "Yantra reads the subjects and previews of recent mail to flag what needs you. It never sends, deletes or changes anything on its own.",
|
|
280
|
+
action: "Turn on",
|
|
281
|
+
onAction: onTurnOn
|
|
282
|
+
} : null;
|
|
283
|
+
if (!copy) return null;
|
|
284
|
+
return /* @__PURE__ */ jsxs(View, { style: [styles.banner, {
|
|
285
|
+
backgroundColor: pal.card,
|
|
286
|
+
borderColor: pal.border
|
|
287
|
+
}], children: [
|
|
288
|
+
/* @__PURE__ */ jsxs(View, { style: styles.bannerHead, children: [
|
|
289
|
+
/* @__PURE__ */ jsx(View, { style: [styles.bannerIcon, {
|
|
290
|
+
backgroundColor: pal.banner
|
|
291
|
+
}], children: /* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "email-outline", size: 18, color: pal.ink }) }),
|
|
292
|
+
/* @__PURE__ */ jsxs(View, { style: styles.bannerText, children: [
|
|
293
|
+
/* @__PURE__ */ jsx(Text, { style: [styles.bannerTitle, {
|
|
294
|
+
color: pal.ink
|
|
295
|
+
}], children: copy.title }),
|
|
296
|
+
/* @__PURE__ */ jsx(Text, { style: [styles.bannerBody, {
|
|
297
|
+
color: pal.muted
|
|
298
|
+
}], children: copy.body })
|
|
299
|
+
] })
|
|
300
|
+
] }),
|
|
301
|
+
/* @__PURE__ */ jsxs(View, { style: styles.bannerActions, children: [
|
|
302
|
+
/* @__PURE__ */ jsx(Pressable, { onPress: copy.onAction, accessibilityRole: "button", style: ({
|
|
303
|
+
pressed
|
|
304
|
+
}) => [styles.accentBtn, {
|
|
305
|
+
backgroundColor: pal.accent,
|
|
306
|
+
opacity: pressed ? 0.85 : 1
|
|
307
|
+
}], children: /* @__PURE__ */ jsx(Text, { style: styles.accentLabel, children: copy.action }) }),
|
|
308
|
+
/* @__PURE__ */ jsx(Pressable, { onPress: onNotNow, accessibilityRole: "button", style: ({
|
|
309
|
+
pressed
|
|
310
|
+
}) => [styles.ghost, pressed && {
|
|
311
|
+
backgroundColor: pal.pressed
|
|
312
|
+
}], children: /* @__PURE__ */ jsx(Text, { style: [styles.ghostLabel, {
|
|
313
|
+
color: pal.muted
|
|
314
|
+
}], children: "Not now" }) })
|
|
315
|
+
] })
|
|
316
|
+
] });
|
|
317
|
+
}
|
|
318
|
+
function HomeNeedsYou({
|
|
319
|
+
briefing,
|
|
320
|
+
isDark,
|
|
321
|
+
headingColor,
|
|
322
|
+
headingMutedColor,
|
|
323
|
+
onConnectGmail
|
|
324
|
+
}) {
|
|
325
|
+
const now = useNow(6e4);
|
|
326
|
+
const pal = paletteFor(isDark);
|
|
327
|
+
const [opened, setOpened] = useState(null);
|
|
328
|
+
const closeCard = useCallback(() => setOpened(null), []);
|
|
329
|
+
const {
|
|
330
|
+
cards,
|
|
331
|
+
inbox,
|
|
332
|
+
loaded
|
|
333
|
+
} = briefing;
|
|
334
|
+
const inboxNotice = inbox.shown && inbox.status !== "ready" && inbox.status !== "unknown";
|
|
335
|
+
const connectGmail = onConnectGmail;
|
|
336
|
+
if (!loaded) return null;
|
|
337
|
+
const hasCards = cards.length > 0;
|
|
338
|
+
if (!hasCards && !inboxNotice && !(inbox.shown && inbox.status === "ready" && inbox.updatedAt)) return null;
|
|
339
|
+
return /* @__PURE__ */ jsxs(View, { style: styles.wrap, accessibilityLabel: "Needs you", children: [
|
|
340
|
+
/* @__PURE__ */ jsxs(View, { style: styles.headingRow, children: [
|
|
341
|
+
/* @__PURE__ */ jsx(Text, { accessibilityRole: "header", style: [styles.heading, {
|
|
342
|
+
color: headingColor
|
|
343
|
+
}], children: "Needs you" }),
|
|
344
|
+
hasCards ? /* @__PURE__ */ jsx(Text, { style: [styles.count, {
|
|
345
|
+
color: headingMutedColor
|
|
346
|
+
}], children: cards.length }) : null
|
|
347
|
+
] }),
|
|
348
|
+
hasCards ? /* @__PURE__ */ jsx(ScrollView, { horizontal: true, showsHorizontalScrollIndicator: false, snapToInterval: CARD_WIDTH + 10, decelerationRate: "fast", contentContainerStyle: styles.strip, style: styles.stripOuter, children: cards.map((card) => /* @__PURE__ */ jsx(NeedsCard, { card, now, pal, onAct: briefing.act, onDismiss: briefing.dismiss, onOpen: setOpened }, card.id)) }) : /* @__PURE__ */ jsxs(View, { style: styles.empty, children: [
|
|
349
|
+
/* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "check", size: 16, color: pal.ok, style: styles.emptyIcon }),
|
|
350
|
+
/* @__PURE__ */ jsx(Text, { style: [styles.emptyText, {
|
|
351
|
+
color: headingMutedColor
|
|
352
|
+
}], children: "When Yantra needs a decision or a reply from you, it shows up here." })
|
|
353
|
+
] }),
|
|
354
|
+
inboxNotice ? /* @__PURE__ */ jsx(InboxBanner, { status: inbox.status, pal, onConnect: connectGmail, onTurnOn: () => briefing.setInboxHighlights(true), onNotNow: () => briefing.hideSection("inbox"), onRetry: inbox.refresh }) : null,
|
|
355
|
+
inbox.shown && inbox.status === "ready" && inbox.updatedAt ? /* @__PURE__ */ jsxs(View, { style: styles.checkedRow, children: [
|
|
356
|
+
/* @__PURE__ */ jsxs(Text, { style: [styles.checked, {
|
|
357
|
+
color: headingMutedColor
|
|
358
|
+
}], children: [
|
|
359
|
+
"Inbox checked ",
|
|
360
|
+
checkedAgo(inbox.updatedAt, now)
|
|
361
|
+
] }),
|
|
362
|
+
/* @__PURE__ */ jsx(Text, { style: [styles.checked, {
|
|
363
|
+
color: headingMutedColor
|
|
364
|
+
}], children: "\xB7" }),
|
|
365
|
+
/* @__PURE__ */ jsx(Pressable, { onPress: inbox.refresh, accessibilityRole: "button", hitSlop: 6, children: /* @__PURE__ */ jsx(Text, { style: [styles.checked, styles.checkedLink, {
|
|
366
|
+
color: headingMutedColor
|
|
367
|
+
}], children: "Refresh" }) }),
|
|
368
|
+
/* @__PURE__ */ jsx(Text, { style: [styles.checked, {
|
|
369
|
+
color: headingMutedColor
|
|
370
|
+
}], children: "\xB7" }),
|
|
371
|
+
/* @__PURE__ */ jsx(Pressable, { onPress: () => briefing.setInboxHighlights(false), accessibilityRole: "button", hitSlop: 6, children: /* @__PURE__ */ jsx(Text, { style: [styles.checked, styles.checkedLink, {
|
|
372
|
+
color: headingMutedColor
|
|
373
|
+
}], children: "Turn off" }) })
|
|
374
|
+
] }) : null,
|
|
375
|
+
opened ? /* @__PURE__ */ jsx(NeedsFocus, { card: opened, now, pal, onAct: briefing.act, onReply: briefing.reply, onDismiss: briefing.dismiss, onClose: closeCard }) : null
|
|
376
|
+
] });
|
|
377
|
+
}
|
|
378
|
+
const styles = StyleSheet.create({
|
|
379
|
+
wrap: {
|
|
380
|
+
width: "100%",
|
|
381
|
+
marginTop: 24
|
|
382
|
+
},
|
|
383
|
+
headingRow: {
|
|
384
|
+
flexDirection: "row",
|
|
385
|
+
alignItems: "center",
|
|
386
|
+
gap: 8,
|
|
387
|
+
marginBottom: 8
|
|
388
|
+
},
|
|
389
|
+
heading: {
|
|
390
|
+
fontSize: 17,
|
|
391
|
+
fontWeight: "600",
|
|
392
|
+
letterSpacing: -0.2
|
|
393
|
+
},
|
|
394
|
+
count: {
|
|
395
|
+
fontSize: 17,
|
|
396
|
+
fontVariant: ["tabular-nums"]
|
|
397
|
+
},
|
|
398
|
+
// The strip runs to the screen's edges, past the home's 28px gutter, as the web's -mx-4 strip does.
|
|
399
|
+
stripOuter: {
|
|
400
|
+
marginHorizontal: -28
|
|
401
|
+
},
|
|
402
|
+
strip: {
|
|
403
|
+
paddingHorizontal: 28,
|
|
404
|
+
gap: 10,
|
|
405
|
+
paddingBottom: 4
|
|
406
|
+
},
|
|
407
|
+
card: {
|
|
408
|
+
width: CARD_WIDTH,
|
|
409
|
+
minHeight: 112,
|
|
410
|
+
borderRadius: 14,
|
|
411
|
+
borderWidth: StyleSheet.hairlineWidth,
|
|
412
|
+
padding: 12,
|
|
413
|
+
shadowColor: "#3C280A",
|
|
414
|
+
shadowOpacity: 0.06,
|
|
415
|
+
shadowRadius: 12,
|
|
416
|
+
shadowOffset: {
|
|
417
|
+
width: 0,
|
|
418
|
+
height: 4
|
|
419
|
+
},
|
|
420
|
+
elevation: 1
|
|
421
|
+
},
|
|
422
|
+
cardTop: {
|
|
423
|
+
flexDirection: "row",
|
|
424
|
+
alignItems: "center",
|
|
425
|
+
gap: 6
|
|
426
|
+
},
|
|
427
|
+
source: {
|
|
428
|
+
flexShrink: 1,
|
|
429
|
+
fontSize: 12,
|
|
430
|
+
lineHeight: 16
|
|
431
|
+
},
|
|
432
|
+
soon: {
|
|
433
|
+
fontSize: 12,
|
|
434
|
+
fontWeight: "500"
|
|
435
|
+
},
|
|
436
|
+
when: {
|
|
437
|
+
marginLeft: "auto",
|
|
438
|
+
fontSize: 12,
|
|
439
|
+
fontVariant: ["tabular-nums"]
|
|
440
|
+
},
|
|
441
|
+
cardTitle: {
|
|
442
|
+
marginTop: 8,
|
|
443
|
+
fontSize: 14,
|
|
444
|
+
lineHeight: 20,
|
|
445
|
+
fontWeight: "600"
|
|
446
|
+
},
|
|
447
|
+
appMark: {
|
|
448
|
+
width: 14,
|
|
449
|
+
height: 14,
|
|
450
|
+
borderRadius: 3
|
|
451
|
+
},
|
|
452
|
+
cardActions: {
|
|
453
|
+
marginTop: "auto",
|
|
454
|
+
paddingTop: 8,
|
|
455
|
+
flexDirection: "row",
|
|
456
|
+
alignItems: "center",
|
|
457
|
+
gap: 4
|
|
458
|
+
},
|
|
459
|
+
go: {
|
|
460
|
+
flexDirection: "row",
|
|
461
|
+
alignItems: "center",
|
|
462
|
+
justifyContent: "center",
|
|
463
|
+
gap: 6,
|
|
464
|
+
height: 32,
|
|
465
|
+
paddingHorizontal: 13,
|
|
466
|
+
borderRadius: 999
|
|
467
|
+
},
|
|
468
|
+
goLabel: {
|
|
469
|
+
fontSize: 14,
|
|
470
|
+
fontWeight: "500"
|
|
471
|
+
},
|
|
472
|
+
ghost: {
|
|
473
|
+
flexDirection: "row",
|
|
474
|
+
alignItems: "center",
|
|
475
|
+
gap: 6,
|
|
476
|
+
height: 36,
|
|
477
|
+
paddingHorizontal: 10,
|
|
478
|
+
borderRadius: 999
|
|
479
|
+
},
|
|
480
|
+
ghostLabel: {
|
|
481
|
+
fontSize: 14,
|
|
482
|
+
fontWeight: "500"
|
|
483
|
+
},
|
|
484
|
+
pushRight: {
|
|
485
|
+
marginLeft: "auto"
|
|
486
|
+
},
|
|
487
|
+
bannerText: {
|
|
488
|
+
flex: 1
|
|
489
|
+
},
|
|
490
|
+
bannerTitle: {
|
|
491
|
+
fontSize: 14,
|
|
492
|
+
fontWeight: "600"
|
|
493
|
+
},
|
|
494
|
+
empty: {
|
|
495
|
+
flexDirection: "row",
|
|
496
|
+
alignItems: "flex-start",
|
|
497
|
+
gap: 8
|
|
498
|
+
},
|
|
499
|
+
emptyIcon: {
|
|
500
|
+
marginTop: 2
|
|
501
|
+
},
|
|
502
|
+
emptyText: {
|
|
503
|
+
flex: 1,
|
|
504
|
+
fontSize: 14,
|
|
505
|
+
lineHeight: 20
|
|
506
|
+
},
|
|
507
|
+
banner: {
|
|
508
|
+
marginTop: 12,
|
|
509
|
+
borderRadius: 16,
|
|
510
|
+
borderWidth: StyleSheet.hairlineWidth,
|
|
511
|
+
padding: 16,
|
|
512
|
+
gap: 14
|
|
513
|
+
},
|
|
514
|
+
bannerHead: {
|
|
515
|
+
flexDirection: "row",
|
|
516
|
+
gap: 12
|
|
517
|
+
},
|
|
518
|
+
bannerIcon: {
|
|
519
|
+
width: 40,
|
|
520
|
+
height: 40,
|
|
521
|
+
borderRadius: 12,
|
|
522
|
+
alignItems: "center",
|
|
523
|
+
justifyContent: "center"
|
|
524
|
+
},
|
|
525
|
+
bannerBody: {
|
|
526
|
+
marginTop: 3,
|
|
527
|
+
fontSize: 14,
|
|
528
|
+
lineHeight: 20
|
|
529
|
+
},
|
|
530
|
+
bannerActions: {
|
|
531
|
+
flexDirection: "row",
|
|
532
|
+
alignItems: "center",
|
|
533
|
+
gap: 6,
|
|
534
|
+
paddingLeft: 52
|
|
535
|
+
},
|
|
536
|
+
accentBtn: {
|
|
537
|
+
height: 36,
|
|
538
|
+
paddingHorizontal: 16,
|
|
539
|
+
borderRadius: 10,
|
|
540
|
+
alignItems: "center",
|
|
541
|
+
justifyContent: "center"
|
|
542
|
+
},
|
|
543
|
+
accentLabel: {
|
|
544
|
+
color: "#FFFFFF",
|
|
545
|
+
fontSize: 14,
|
|
546
|
+
fontWeight: "600"
|
|
547
|
+
},
|
|
548
|
+
bannerQuiet: {
|
|
549
|
+
marginTop: 12,
|
|
550
|
+
flexDirection: "row",
|
|
551
|
+
alignItems: "center",
|
|
552
|
+
gap: 8,
|
|
553
|
+
borderRadius: 16,
|
|
554
|
+
paddingHorizontal: 16,
|
|
555
|
+
paddingVertical: 12
|
|
556
|
+
},
|
|
557
|
+
spread: {
|
|
558
|
+
justifyContent: "space-between"
|
|
559
|
+
},
|
|
560
|
+
bannerQuietText: {
|
|
561
|
+
fontSize: 14
|
|
562
|
+
},
|
|
563
|
+
checkedRow: {
|
|
564
|
+
marginTop: 10,
|
|
565
|
+
flexDirection: "row",
|
|
566
|
+
alignItems: "center",
|
|
567
|
+
gap: 6
|
|
568
|
+
},
|
|
569
|
+
checked: {
|
|
570
|
+
fontSize: 12
|
|
571
|
+
},
|
|
572
|
+
checkedLink: {
|
|
573
|
+
fontWeight: "500"
|
|
574
|
+
},
|
|
575
|
+
backdrop: {
|
|
576
|
+
flex: 1,
|
|
577
|
+
justifyContent: "flex-end",
|
|
578
|
+
paddingHorizontal: 12
|
|
579
|
+
},
|
|
580
|
+
focus: {
|
|
581
|
+
borderRadius: 18,
|
|
582
|
+
borderWidth: StyleSheet.hairlineWidth,
|
|
583
|
+
overflow: "hidden"
|
|
584
|
+
},
|
|
585
|
+
focusBody: {
|
|
586
|
+
paddingHorizontal: 16,
|
|
587
|
+
paddingTop: 16,
|
|
588
|
+
paddingBottom: 14
|
|
589
|
+
},
|
|
590
|
+
focusTitle: {
|
|
591
|
+
marginTop: 12,
|
|
592
|
+
fontSize: 16,
|
|
593
|
+
lineHeight: 23,
|
|
594
|
+
fontWeight: "600"
|
|
595
|
+
},
|
|
596
|
+
aside: {
|
|
597
|
+
marginTop: 4,
|
|
598
|
+
fontSize: 14,
|
|
599
|
+
lineHeight: 20
|
|
600
|
+
},
|
|
601
|
+
detail: {
|
|
602
|
+
marginTop: 12,
|
|
603
|
+
fontSize: 14,
|
|
604
|
+
lineHeight: 20,
|
|
605
|
+
borderRadius: 12,
|
|
606
|
+
paddingHorizontal: 12,
|
|
607
|
+
paddingVertical: 10,
|
|
608
|
+
overflow: "hidden"
|
|
609
|
+
},
|
|
610
|
+
focusActions: {
|
|
611
|
+
flexDirection: "row",
|
|
612
|
+
alignItems: "center",
|
|
613
|
+
gap: 4,
|
|
614
|
+
borderTopWidth: StyleSheet.hairlineWidth,
|
|
615
|
+
paddingHorizontal: 12,
|
|
616
|
+
paddingVertical: 10
|
|
617
|
+
}
|
|
618
|
+
});export{HomeNeedsYou,HomeNeedsYou as default};//# sourceMappingURL=HomeNeedsYou.js.map
|