@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,816 @@
|
|
|
1
|
+
import {jsxs,jsx,Fragment}from'react/jsx-runtime';import {useState,useEffect,useMemo}from'react';import {View,StyleSheet,Text,ScrollView,Pressable,ActivityIndicator}from'react-native';import {Ionicons}from'@expo/vector-icons';import {fetchMembers,fetchPins,fetchFiles,api}from'../api/ops.js';import {useApp,usePalette,useChat}from'../app.js';import {Avatar}from'../components/Avatar.js';import {personRank,PeoplePicker,normalizeChannelName}from'../components/Dialogs.js';import {MessageItem}from'../components/MessageItem.js';import {Mrkdwn}from'../components/Mrkdwn.js';import {Header,Tabs,ChannelGlyph,Centered,Button,SearchBox,ErrorNotice,EmptyState,Field,Input,Toggle,IconButton}from'../components/ui.js';import {useList,qk}from'../state/lists.js';import {channelLabel,nameOf,fileSize,shortWhen}from'../utils/format.js';var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
+
const MAX_TOPIC = 250;
|
|
21
|
+
const MAX_PURPOSE = 250;
|
|
22
|
+
const NOTIFY = [{
|
|
23
|
+
id: "default",
|
|
24
|
+
label: "Default",
|
|
25
|
+
hint: "Mentions, and replies in threads you follow"
|
|
26
|
+
}, {
|
|
27
|
+
id: "all",
|
|
28
|
+
label: "All new messages",
|
|
29
|
+
hint: "Every message posted here"
|
|
30
|
+
}, {
|
|
31
|
+
id: "mentions",
|
|
32
|
+
label: "Mentions",
|
|
33
|
+
hint: "When someone mentions you, @channel or @here"
|
|
34
|
+
}, {
|
|
35
|
+
id: "nothing",
|
|
36
|
+
label: "Nothing",
|
|
37
|
+
hint: "No notifications from this channel"
|
|
38
|
+
}];
|
|
39
|
+
const isConversation = (c) => c.kind === "dm" || c.kind === "group";
|
|
40
|
+
function DetailsPane({
|
|
41
|
+
channelId,
|
|
42
|
+
tab: requested
|
|
43
|
+
}) {
|
|
44
|
+
var _a;
|
|
45
|
+
const app = useApp();
|
|
46
|
+
const p = usePalette();
|
|
47
|
+
const {
|
|
48
|
+
actions
|
|
49
|
+
} = app.store;
|
|
50
|
+
const channel = useChat((s) => s.channels[channelId]);
|
|
51
|
+
const people = useChat((s) => s.people);
|
|
52
|
+
const meId = useChat((s) => {
|
|
53
|
+
var _a2;
|
|
54
|
+
return (_a2 = s.me) == null ? void 0 : _a2.user.id;
|
|
55
|
+
});
|
|
56
|
+
const [tab, setTab] = useState(requested != null ? requested : "about");
|
|
57
|
+
const [missing, setMissing] = useState(false);
|
|
58
|
+
useEffect(() => {
|
|
59
|
+
if (requested) setTab(requested);
|
|
60
|
+
}, [requested]);
|
|
61
|
+
useEffect(() => {
|
|
62
|
+
let live = true;
|
|
63
|
+
actions.ensureChannel(channelId).then((c) => live && !c && setMissing(true), () => live && setMissing(true));
|
|
64
|
+
return () => {
|
|
65
|
+
live = false;
|
|
66
|
+
};
|
|
67
|
+
}, [channelId, actions]);
|
|
68
|
+
const isChannel = channel ? !isConversation(channel) : false;
|
|
69
|
+
const current = tab === "settings" && !isChannel ? "about" : tab;
|
|
70
|
+
const tabs = channel ? [{
|
|
71
|
+
id: "about",
|
|
72
|
+
label: "About"
|
|
73
|
+
}, {
|
|
74
|
+
id: "members",
|
|
75
|
+
label: "Members",
|
|
76
|
+
count: channel.memberCount
|
|
77
|
+
}, {
|
|
78
|
+
id: "pins",
|
|
79
|
+
label: "Pins",
|
|
80
|
+
count: channel.pinCount
|
|
81
|
+
}, {
|
|
82
|
+
id: "files",
|
|
83
|
+
label: "Files"
|
|
84
|
+
}, ...isChannel ? [{
|
|
85
|
+
id: "settings",
|
|
86
|
+
label: "Settings"
|
|
87
|
+
}] : []] : [];
|
|
88
|
+
return /* @__PURE__ */ jsxs(View, { style: [styles.fill, {
|
|
89
|
+
backgroundColor: p.background
|
|
90
|
+
}], children: [
|
|
91
|
+
/* @__PURE__ */ jsx(Header, { title: !channel ? "Details" : channel.kind === "private" ? (_a = channel.name) != null ? _a : "" : channelLabel(channel, people, meId), icon: (channel == null ? void 0 : channel.kind) === "private" ? /* @__PURE__ */ jsx(ChannelGlyph, { kind: "private", color: p.foreground }) : void 0, onBack: () => app.openPane(null), children: channel ? /* @__PURE__ */ jsx(Tabs, { value: current, onChange: setTab, tabs }) : null }),
|
|
92
|
+
!channel ? missing ? /* @__PURE__ */ jsx(Text, { style: [styles.note, {
|
|
93
|
+
color: p.mutedForeground
|
|
94
|
+
}], children: "This conversation isn\u2019t available. It may be private, or it no longer exists." }) : /* @__PURE__ */ jsx(Centered, {}) : current === "about" ? /* @__PURE__ */ jsx(AboutTab, { channel }) : current === "members" ? /* @__PURE__ */ jsx(MembersTab, { channel }) : current === "pins" ? /* @__PURE__ */ jsx(PinsTab, { channel }) : current === "files" ? /* @__PURE__ */ jsx(FilesTab, { channel }) : /* @__PURE__ */ jsx(SettingsTab, { channel })
|
|
95
|
+
] });
|
|
96
|
+
}
|
|
97
|
+
function AboutTab({
|
|
98
|
+
channel
|
|
99
|
+
}) {
|
|
100
|
+
const app = useApp();
|
|
101
|
+
const p = usePalette();
|
|
102
|
+
const {
|
|
103
|
+
actions
|
|
104
|
+
} = app.store;
|
|
105
|
+
const people = useChat((s) => s.people);
|
|
106
|
+
const meId = useChat((s) => {
|
|
107
|
+
var _a;
|
|
108
|
+
return (_a = s.me) == null ? void 0 : _a.user.id;
|
|
109
|
+
});
|
|
110
|
+
const creator = channel.createdBy ? people[channel.createdBy.id] : void 0;
|
|
111
|
+
const when = new Date(channel.createdAt).toLocaleDateString([], {
|
|
112
|
+
month: "long",
|
|
113
|
+
day: "numeric",
|
|
114
|
+
year: "numeric"
|
|
115
|
+
});
|
|
116
|
+
if (isConversation(channel)) {
|
|
117
|
+
const ids = channel.participants.map((x) => x.id).sort((a, b) => Number(a === meId) - Number(b === meId) || nameOf(people[a]).localeCompare(nameOf(people[b])));
|
|
118
|
+
return /* @__PURE__ */ jsxs(ScrollView, { contentContainerStyle: styles.pad, children: [
|
|
119
|
+
/* @__PURE__ */ jsx(Text, { style: [styles.h3, {
|
|
120
|
+
color: p.foreground
|
|
121
|
+
}], children: ids.length === 1 ? "Just you" : `${ids.length} people in this conversation` }),
|
|
122
|
+
ids.map((id) => /* @__PURE__ */ jsx(PersonButton, { user: people[id], self: id === meId, onPress: () => app.openProfile(id) }, id)),
|
|
123
|
+
/* @__PURE__ */ jsxs(Text, { style: [styles.note, {
|
|
124
|
+
color: p.mutedForeground
|
|
125
|
+
}], children: [
|
|
126
|
+
"Started on ",
|
|
127
|
+
when,
|
|
128
|
+
"."
|
|
129
|
+
] })
|
|
130
|
+
] });
|
|
131
|
+
}
|
|
132
|
+
const canEdit = Boolean(channel.membership) && !channel.archivedAt;
|
|
133
|
+
const save = async (input, done) => {
|
|
134
|
+
try {
|
|
135
|
+
actions.putChannel(await api.updateChannel(channel.id, input));
|
|
136
|
+
actions.refreshChannel(channel.id);
|
|
137
|
+
app.toast(done);
|
|
138
|
+
} catch (e) {
|
|
139
|
+
app.toast(e.message, "error");
|
|
140
|
+
throw e;
|
|
141
|
+
}
|
|
142
|
+
};
|
|
143
|
+
return /* @__PURE__ */ jsxs(ScrollView, { contentContainerStyle: styles.pad, keyboardShouldPersistTaps: "handled", children: [
|
|
144
|
+
channel.archivedAt ? /* @__PURE__ */ jsxs(View, { style: [styles.banner, {
|
|
145
|
+
backgroundColor: p.muted
|
|
146
|
+
}], children: [
|
|
147
|
+
/* @__PURE__ */ jsx(Ionicons, { name: "archive-outline", size: 16, color: p.mutedForeground }),
|
|
148
|
+
/* @__PURE__ */ jsx(Text, { style: [styles.bannerText, {
|
|
149
|
+
color: p.foreground
|
|
150
|
+
}], children: "This channel is archived. It can be read, but not changed." })
|
|
151
|
+
] }) : !channel.membership ? /* @__PURE__ */ jsx(Text, { style: [styles.note, {
|
|
152
|
+
color: p.mutedForeground
|
|
153
|
+
}], children: "Join the channel to change its topic or description." }) : null,
|
|
154
|
+
/* @__PURE__ */ jsxs(View, { style: [styles.card, {
|
|
155
|
+
borderColor: p.border
|
|
156
|
+
}], children: [
|
|
157
|
+
/* @__PURE__ */ jsx(EditableField, { label: "Topic", value: channel.topic, addLabel: "Add a topic", canEdit, maxLength: MAX_TOPIC, onSave: (topic) => save({
|
|
158
|
+
topic
|
|
159
|
+
}, topic ? "Topic updated." : "Topic cleared.") }),
|
|
160
|
+
/* @__PURE__ */ jsx(View, { style: [styles.rule, {
|
|
161
|
+
backgroundColor: p.border
|
|
162
|
+
}] }),
|
|
163
|
+
/* @__PURE__ */ jsx(EditableField, { label: "Description", value: channel.purpose, addLabel: "Add a description", canEdit, maxLength: MAX_PURPOSE, onSave: (purpose) => save({
|
|
164
|
+
purpose
|
|
165
|
+
}, purpose ? "Description updated." : "Description cleared.") }),
|
|
166
|
+
/* @__PURE__ */ jsx(View, { style: [styles.rule, {
|
|
167
|
+
backgroundColor: p.border
|
|
168
|
+
}] }),
|
|
169
|
+
/* @__PURE__ */ jsxs(View, { style: styles.section, children: [
|
|
170
|
+
/* @__PURE__ */ jsx(Text, { style: [styles.h4, {
|
|
171
|
+
color: p.foreground
|
|
172
|
+
}], children: "Created by" }),
|
|
173
|
+
/* @__PURE__ */ jsxs(Text, { style: [styles.body, {
|
|
174
|
+
color: p.foreground
|
|
175
|
+
}], children: [
|
|
176
|
+
creator ? /* @__PURE__ */ jsx(Text, { style: {
|
|
177
|
+
color: p.link,
|
|
178
|
+
fontWeight: "600"
|
|
179
|
+
}, onPress: () => app.openProfile(creator.id), children: nameOf(creator) }) : "Someone",
|
|
180
|
+
" ",
|
|
181
|
+
"on ",
|
|
182
|
+
when
|
|
183
|
+
] })
|
|
184
|
+
] })
|
|
185
|
+
] })
|
|
186
|
+
] });
|
|
187
|
+
}
|
|
188
|
+
function EditableField({
|
|
189
|
+
label,
|
|
190
|
+
value,
|
|
191
|
+
addLabel,
|
|
192
|
+
canEdit,
|
|
193
|
+
maxLength,
|
|
194
|
+
onSave
|
|
195
|
+
}) {
|
|
196
|
+
const p = usePalette();
|
|
197
|
+
const [editing, setEditing] = useState(false);
|
|
198
|
+
const [draft, setDraft] = useState(value);
|
|
199
|
+
const [saving, setSaving] = useState(false);
|
|
200
|
+
const start = () => {
|
|
201
|
+
setDraft(value);
|
|
202
|
+
setEditing(true);
|
|
203
|
+
};
|
|
204
|
+
const save = async () => {
|
|
205
|
+
if (saving) return;
|
|
206
|
+
if (draft.trim() === value) return setEditing(false);
|
|
207
|
+
setSaving(true);
|
|
208
|
+
try {
|
|
209
|
+
await onSave(draft.trim());
|
|
210
|
+
setEditing(false);
|
|
211
|
+
} catch (e) {
|
|
212
|
+
} finally {
|
|
213
|
+
setSaving(false);
|
|
214
|
+
}
|
|
215
|
+
};
|
|
216
|
+
return /* @__PURE__ */ jsxs(View, { style: styles.section, children: [
|
|
217
|
+
/* @__PURE__ */ jsxs(View, { style: styles.sectionHead, children: [
|
|
218
|
+
/* @__PURE__ */ jsx(Text, { style: [styles.h4, {
|
|
219
|
+
color: p.foreground
|
|
220
|
+
}], children: label }),
|
|
221
|
+
canEdit && !editing ? /* @__PURE__ */ jsx(IconButton, { icon: "create-outline", label: `Edit ${label.toLowerCase()}`, size: 17, onPress: start }) : null
|
|
222
|
+
] }),
|
|
223
|
+
editing ? /* @__PURE__ */ jsxs(View, { style: styles.editing, children: [
|
|
224
|
+
/* @__PURE__ */ jsx(Input, { value: draft, onChangeText: setDraft, maxLength, multiline: true, autoFocus: true, editable: !saving, style: styles.multiline, accessibilityLabel: label }),
|
|
225
|
+
/* @__PURE__ */ jsxs(View, { style: styles.editActions, children: [
|
|
226
|
+
/* @__PURE__ */ jsxs(Text, { style: [styles.left, {
|
|
227
|
+
color: p.mutedForeground
|
|
228
|
+
}], children: [
|
|
229
|
+
maxLength - draft.length,
|
|
230
|
+
" left"
|
|
231
|
+
] }),
|
|
232
|
+
/* @__PURE__ */ jsx(Button, { size: "sm", label: "Cancel", onPress: () => setEditing(false) }),
|
|
233
|
+
/* @__PURE__ */ jsx(Button, { size: "sm", variant: "primary", label: "Save", loading: saving, onPress: () => void save() })
|
|
234
|
+
] })
|
|
235
|
+
] }) : value ? /* @__PURE__ */ jsx(Mrkdwn, { body: value }) : canEdit ? /* @__PURE__ */ jsx(Text, { style: [styles.body, {
|
|
236
|
+
color: p.link
|
|
237
|
+
}], onPress: start, children: addLabel }) : /* @__PURE__ */ jsx(Text, { style: [styles.body, {
|
|
238
|
+
color: p.mutedForeground
|
|
239
|
+
}], children: "None yet" })
|
|
240
|
+
] });
|
|
241
|
+
}
|
|
242
|
+
function PersonButton({
|
|
243
|
+
user,
|
|
244
|
+
self,
|
|
245
|
+
onPress,
|
|
246
|
+
badge,
|
|
247
|
+
trailing
|
|
248
|
+
}) {
|
|
249
|
+
const p = usePalette();
|
|
250
|
+
return /* @__PURE__ */ jsxs(Pressable, { onPress, style: ({
|
|
251
|
+
pressed
|
|
252
|
+
}) => [styles.person, pressed && {
|
|
253
|
+
backgroundColor: p.muted
|
|
254
|
+
}], accessibilityRole: "button", children: [
|
|
255
|
+
/* @__PURE__ */ jsx(Avatar, { user, size: "md", presence: true }),
|
|
256
|
+
/* @__PURE__ */ jsxs(View, { style: styles.personText, children: [
|
|
257
|
+
/* @__PURE__ */ jsxs(Text, { style: [styles.personName, {
|
|
258
|
+
color: p.foreground
|
|
259
|
+
}], numberOfLines: 1, children: [
|
|
260
|
+
nameOf(user),
|
|
261
|
+
self ? /* @__PURE__ */ jsx(Text, { style: {
|
|
262
|
+
color: p.mutedForeground,
|
|
263
|
+
fontWeight: "400"
|
|
264
|
+
}, children: " (you)" }) : null,
|
|
265
|
+
(user == null ? void 0 : user.statusEmoji) ? ` ${user.statusEmoji}` : ""
|
|
266
|
+
] }),
|
|
267
|
+
(user == null ? void 0 : user.realName) && user.realName !== nameOf(user) ? /* @__PURE__ */ jsx(Text, { style: [styles.personSub, {
|
|
268
|
+
color: p.mutedForeground
|
|
269
|
+
}], numberOfLines: 1, children: user.realName }) : null
|
|
270
|
+
] }),
|
|
271
|
+
badge ? /* @__PURE__ */ jsx(Text, { style: [styles.badge, {
|
|
272
|
+
color: p.mutedForeground,
|
|
273
|
+
borderColor: p.border
|
|
274
|
+
}], children: badge }) : null,
|
|
275
|
+
trailing
|
|
276
|
+
] });
|
|
277
|
+
}
|
|
278
|
+
function MembersTab({
|
|
279
|
+
channel
|
|
280
|
+
}) {
|
|
281
|
+
const app = useApp();
|
|
282
|
+
const p = usePalette();
|
|
283
|
+
const {
|
|
284
|
+
actions
|
|
285
|
+
} = app.store;
|
|
286
|
+
const people = useChat((s) => s.people);
|
|
287
|
+
const meId = useChat((s) => {
|
|
288
|
+
var _a;
|
|
289
|
+
return (_a = s.me) == null ? void 0 : _a.user.id;
|
|
290
|
+
});
|
|
291
|
+
const {
|
|
292
|
+
data,
|
|
293
|
+
error,
|
|
294
|
+
reload
|
|
295
|
+
} = useList(qk.members(channel.id, channel.memberCount), () => fetchMembers(channel.id));
|
|
296
|
+
const [adding, setAdding] = useState(false);
|
|
297
|
+
const [picked, setPicked] = useState([]);
|
|
298
|
+
const [saving, setSaving] = useState(false);
|
|
299
|
+
const [filter, setFilter] = useState("");
|
|
300
|
+
const canAdd = Boolean(channel.membership) && !isConversation(channel) && !channel.archivedAt;
|
|
301
|
+
const canRemove = channel.canManage && !isConversation(channel) && !channel.isGeneral;
|
|
302
|
+
const memberIds = useMemo(() => new Set((data != null ? data : []).map((m) => m.user.id)), [data]);
|
|
303
|
+
const fail = (e) => app.toast(e.message, "error");
|
|
304
|
+
const rows = useMemo(() => (data != null ? data : []).map((m) => {
|
|
305
|
+
var _a;
|
|
306
|
+
return {
|
|
307
|
+
role: m.role,
|
|
308
|
+
user: (_a = people[m.user.id]) != null ? _a : m.user
|
|
309
|
+
};
|
|
310
|
+
}).filter((m) => personRank(m.user, filter) != null).sort((a, b) => Number(b.user.id === meId) - Number(a.user.id === meId) || nameOf(a.user).localeCompare(nameOf(b.user))), [data, people, filter, meId]);
|
|
311
|
+
const add = async () => {
|
|
312
|
+
if (!picked.length || saving) return;
|
|
313
|
+
setSaving(true);
|
|
314
|
+
try {
|
|
315
|
+
actions.putChannel(await api.addMembers(channel.id, picked));
|
|
316
|
+
actions.refreshChannel(channel.id);
|
|
317
|
+
app.toast(picked.length === 1 ? `Added ${nameOf(people[picked[0]])} to #${channel.name}.` : `Added ${picked.length} people to #${channel.name}.`);
|
|
318
|
+
setPicked([]);
|
|
319
|
+
setAdding(false);
|
|
320
|
+
reload();
|
|
321
|
+
} catch (e) {
|
|
322
|
+
fail(e);
|
|
323
|
+
} finally {
|
|
324
|
+
setSaving(false);
|
|
325
|
+
}
|
|
326
|
+
};
|
|
327
|
+
const remove = async (u) => {
|
|
328
|
+
const consequence = channel.kind === "private" ? " They won\u2019t be able to see its messages anymore." : "";
|
|
329
|
+
if (!await app.confirm({
|
|
330
|
+
title: "Remove from channel",
|
|
331
|
+
body: `Remove ${nameOf(u)} from #${channel.name}?${consequence}`,
|
|
332
|
+
action: "Remove",
|
|
333
|
+
danger: true
|
|
334
|
+
})) return;
|
|
335
|
+
try {
|
|
336
|
+
actions.putChannel(await api.removeMember(channel.id, u.id));
|
|
337
|
+
actions.refreshChannel(channel.id);
|
|
338
|
+
app.toast(`Removed ${nameOf(u)} from #${channel.name}.`);
|
|
339
|
+
reload();
|
|
340
|
+
} catch (e) {
|
|
341
|
+
fail(e);
|
|
342
|
+
}
|
|
343
|
+
};
|
|
344
|
+
return /* @__PURE__ */ jsxs(ScrollView, { contentContainerStyle: styles.pad, keyboardShouldPersistTaps: "handled", children: [
|
|
345
|
+
canAdd ? adding ? /* @__PURE__ */ jsxs(View, { style: [styles.card, styles.addCard, {
|
|
346
|
+
borderColor: p.border
|
|
347
|
+
}], children: [
|
|
348
|
+
/* @__PURE__ */ jsx(PeoplePicker, { label: `Add people to #${channel.name}`, selected: picked, onChange: setPicked, exclude: memberIds, autoFocus: true }),
|
|
349
|
+
/* @__PURE__ */ jsxs(View, { style: styles.editActions, children: [
|
|
350
|
+
/* @__PURE__ */ jsx(Button, { size: "sm", label: "Cancel", onPress: () => {
|
|
351
|
+
setAdding(false);
|
|
352
|
+
setPicked([]);
|
|
353
|
+
} }),
|
|
354
|
+
/* @__PURE__ */ jsx(Button, { size: "sm", variant: "primary", label: "Add", loading: saving, disabled: !picked.length, onPress: () => void add() })
|
|
355
|
+
] })
|
|
356
|
+
] }) : /* @__PURE__ */ jsx(Button, { size: "sm", icon: "person-add-outline", label: "Add people", onPress: () => setAdding(true), style: styles.addButton }) : null,
|
|
357
|
+
data && data.length > 8 ? /* @__PURE__ */ jsx(View, { style: styles.filter, children: /* @__PURE__ */ jsx(SearchBox, { value: filter, onChangeText: setFilter, placeholder: "Find members" }) }) : null,
|
|
358
|
+
error ? /* @__PURE__ */ jsx(ErrorNotice, { error, onRetry: reload }) : !data ? /* @__PURE__ */ jsx(Centered, {}) : !rows.length ? /* @__PURE__ */ jsx(Text, { style: [styles.note, {
|
|
359
|
+
color: p.mutedForeground
|
|
360
|
+
}], children: filter.trim() ? `No members match \u201C${filter.trim()}\u201D.` : "No one is here yet." }) : rows.map((m) => /* @__PURE__ */ jsx(PersonButton, { user: m.user, self: m.user.id === meId, onPress: () => app.openProfile(m.user.id), badge: m.role === "admin" && !isConversation(channel) ? "Channel Manager" : void 0, trailing: canRemove && m.user.id !== meId ? /* @__PURE__ */ jsx(Text, { style: [styles.remove, {
|
|
361
|
+
color: p.destructive
|
|
362
|
+
}], onPress: () => void remove(m.user), accessibilityRole: "button", accessibilityLabel: `Remove ${nameOf(m.user)} from the channel`, children: "Remove" }) : null }, m.user.id))
|
|
363
|
+
] });
|
|
364
|
+
}
|
|
365
|
+
function PinsTab({
|
|
366
|
+
channel
|
|
367
|
+
}) {
|
|
368
|
+
const app = useApp();
|
|
369
|
+
const p = usePalette();
|
|
370
|
+
const people = useChat((s) => s.people);
|
|
371
|
+
const {
|
|
372
|
+
data,
|
|
373
|
+
error,
|
|
374
|
+
reload
|
|
375
|
+
} = useList(qk.pins(channel.id, channel.pinCount), () => fetchPins(channel.id));
|
|
376
|
+
const canPost = Boolean(channel.membership) && !channel.archivedAt;
|
|
377
|
+
const unpin = async (m) => {
|
|
378
|
+
try {
|
|
379
|
+
await app.store.actions.pin(m, false);
|
|
380
|
+
app.toast("Unpinned.");
|
|
381
|
+
reload();
|
|
382
|
+
} catch (e) {
|
|
383
|
+
app.toast(e.message, "error");
|
|
384
|
+
}
|
|
385
|
+
};
|
|
386
|
+
const jump = (seq) => {
|
|
387
|
+
app.openPane(null);
|
|
388
|
+
app.openChannel(channel.id, seq);
|
|
389
|
+
};
|
|
390
|
+
if (error) return /* @__PURE__ */ jsx(ErrorNotice, { error, onRetry: reload });
|
|
391
|
+
if (!data) return /* @__PURE__ */ jsx(Centered, {});
|
|
392
|
+
if (!data.length) return /* @__PURE__ */ jsx(EmptyState, { icon: "pin-outline", title: "No pinned messages yet", body: "Pin a message from its menu to keep it handy here for everyone in the conversation." });
|
|
393
|
+
return /* @__PURE__ */ jsx(ScrollView, { contentContainerStyle: styles.list, children: data.map((m) => /* @__PURE__ */ jsxs(View, { style: [styles.pinned, {
|
|
394
|
+
borderColor: p.border
|
|
395
|
+
}], children: [
|
|
396
|
+
/* @__PURE__ */ jsx(MessageItem, { message: m, mode: "context", canPost, onOpen: () => jump(m.seq), context: /* @__PURE__ */ jsx(Text, { style: [styles.ctx, {
|
|
397
|
+
color: p.mutedForeground
|
|
398
|
+
}], children: m.pinnedBy ? `Pinned by ${nameOf(people[m.pinnedBy.id])}` : "Pinned" }) }),
|
|
399
|
+
/* @__PURE__ */ jsxs(View, { style: styles.pinActions, children: [
|
|
400
|
+
/* @__PURE__ */ jsx(Text, { style: [styles.action, {
|
|
401
|
+
color: p.link
|
|
402
|
+
}], onPress: () => jump(m.seq), children: "View in channel" }),
|
|
403
|
+
canPost ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
404
|
+
/* @__PURE__ */ jsx(Text, { style: {
|
|
405
|
+
color: p.mutedForeground
|
|
406
|
+
}, children: "\xB7" }),
|
|
407
|
+
/* @__PURE__ */ jsx(Text, { style: [styles.action, {
|
|
408
|
+
color: p.link
|
|
409
|
+
}], onPress: () => void unpin(m), children: "Unpin" })
|
|
410
|
+
] }) : null
|
|
411
|
+
] })
|
|
412
|
+
] }, m.id)) });
|
|
413
|
+
}
|
|
414
|
+
function FilesTab({
|
|
415
|
+
channel
|
|
416
|
+
}) {
|
|
417
|
+
const app = useApp();
|
|
418
|
+
const p = usePalette();
|
|
419
|
+
const people = useChat((s) => s.people);
|
|
420
|
+
const {
|
|
421
|
+
data,
|
|
422
|
+
error,
|
|
423
|
+
reload
|
|
424
|
+
} = useList(qk.files(channel.id), () => fetchFiles(channel.id), {
|
|
425
|
+
staleTime: 0
|
|
426
|
+
});
|
|
427
|
+
if (error) return /* @__PURE__ */ jsx(ErrorNotice, { error, onRetry: reload });
|
|
428
|
+
if (!data) return /* @__PURE__ */ jsx(Centered, {});
|
|
429
|
+
if (!data.length) return /* @__PURE__ */ jsx(EmptyState, { icon: "document-text-outline", title: "No files yet", body: "Files shared in this conversation show up here." });
|
|
430
|
+
return /* @__PURE__ */ jsx(ScrollView, { contentContainerStyle: styles.pad, children: data.map((f) => {
|
|
431
|
+
const meta = [fileSize(f.size), f.uploader ? nameOf(people[f.uploader.id]) : null, shortWhen(f.createdAt)].filter(Boolean).join(" \xB7 ");
|
|
432
|
+
return /* @__PURE__ */ jsxs(Pressable, { onPress: () => f.url ? app.openUrl(f.url) : void 0, disabled: !f.url, accessibilityLabel: `Open ${f.name}`, style: ({
|
|
433
|
+
pressed
|
|
434
|
+
}) => [styles.file, {
|
|
435
|
+
borderColor: p.border,
|
|
436
|
+
backgroundColor: pressed ? p.muted : p.background
|
|
437
|
+
}], children: [
|
|
438
|
+
/* @__PURE__ */ jsx(View, { style: [styles.fileIcon, {
|
|
439
|
+
backgroundColor: p.accent
|
|
440
|
+
}], children: /* @__PURE__ */ jsx(Ionicons, { name: f.contentType.startsWith("image/") ? "image-outline" : "document-text-outline", size: 20, color: p.accentForeground }) }),
|
|
441
|
+
/* @__PURE__ */ jsxs(View, { style: styles.personText, children: [
|
|
442
|
+
/* @__PURE__ */ jsx(Text, { style: [styles.personName, {
|
|
443
|
+
color: p.foreground
|
|
444
|
+
}], numberOfLines: 1, children: f.name }),
|
|
445
|
+
/* @__PURE__ */ jsx(Text, { style: [styles.personSub, {
|
|
446
|
+
color: p.mutedForeground
|
|
447
|
+
}], numberOfLines: 1, children: meta })
|
|
448
|
+
] }),
|
|
449
|
+
f.url ? /* @__PURE__ */ jsx(Ionicons, { name: "download-outline", size: 18, color: p.mutedForeground }) : /* @__PURE__ */ jsx(Text, { style: [styles.personSub, {
|
|
450
|
+
color: p.mutedForeground
|
|
451
|
+
}], children: "Unavailable" })
|
|
452
|
+
] }, f.id);
|
|
453
|
+
}) });
|
|
454
|
+
}
|
|
455
|
+
function SettingsTab({
|
|
456
|
+
channel
|
|
457
|
+
}) {
|
|
458
|
+
var _a;
|
|
459
|
+
const app = useApp();
|
|
460
|
+
const p = usePalette();
|
|
461
|
+
const {
|
|
462
|
+
actions
|
|
463
|
+
} = app.store;
|
|
464
|
+
const m = channel.membership;
|
|
465
|
+
const [name, setName] = useState((_a = channel.name) != null ? _a : "");
|
|
466
|
+
const [nameError, setNameError] = useState(null);
|
|
467
|
+
const [busy, setBusy] = useState(null);
|
|
468
|
+
const normalized = normalizeChannelName(name);
|
|
469
|
+
const fail = (e) => app.toast(e.message, "error");
|
|
470
|
+
useEffect(() => {
|
|
471
|
+
var _a2;
|
|
472
|
+
return setName((_a2 = channel.name) != null ? _a2 : "");
|
|
473
|
+
}, [channel.name]);
|
|
474
|
+
const rename = async () => {
|
|
475
|
+
if (!normalized || normalized === channel.name || busy) return;
|
|
476
|
+
setBusy("rename");
|
|
477
|
+
setNameError(null);
|
|
478
|
+
try {
|
|
479
|
+
actions.putChannel(await api.updateChannel(channel.id, {
|
|
480
|
+
name: normalized
|
|
481
|
+
}));
|
|
482
|
+
actions.refreshChannel(channel.id);
|
|
483
|
+
app.toast(`Renamed to #${normalized}.`);
|
|
484
|
+
} catch (err) {
|
|
485
|
+
setNameError(err.message);
|
|
486
|
+
} finally {
|
|
487
|
+
setBusy(null);
|
|
488
|
+
}
|
|
489
|
+
};
|
|
490
|
+
const prefs = async (pr) => {
|
|
491
|
+
const before = channel;
|
|
492
|
+
if (m) actions.putChannel(__spreadProps(__spreadValues({}, channel), {
|
|
493
|
+
membership: __spreadValues(__spreadValues({}, m), pr)
|
|
494
|
+
}));
|
|
495
|
+
try {
|
|
496
|
+
actions.putChannel(await api.setPrefs(channel.id, pr));
|
|
497
|
+
} catch (e) {
|
|
498
|
+
actions.putChannel(before);
|
|
499
|
+
fail(e);
|
|
500
|
+
}
|
|
501
|
+
};
|
|
502
|
+
const leave = async () => {
|
|
503
|
+
setBusy("leave");
|
|
504
|
+
try {
|
|
505
|
+
await api.leaveChannel(channel.id);
|
|
506
|
+
await actions.refreshSidebar();
|
|
507
|
+
actions.refreshChannel(channel.id);
|
|
508
|
+
app.toast(`You left #${channel.name}.`);
|
|
509
|
+
if (channel.kind === "private") {
|
|
510
|
+
app.openPane(null);
|
|
511
|
+
app.navigate({
|
|
512
|
+
view: "home"
|
|
513
|
+
});
|
|
514
|
+
}
|
|
515
|
+
} catch (e) {
|
|
516
|
+
fail(e);
|
|
517
|
+
} finally {
|
|
518
|
+
setBusy(null);
|
|
519
|
+
}
|
|
520
|
+
};
|
|
521
|
+
const archive = async () => {
|
|
522
|
+
const archiving = !channel.archivedAt;
|
|
523
|
+
const question = archiving ? `Archive #${channel.name}? No one will be able to post in it, and it leaves everyone\u2019s sidebar. You can unarchive it later.` : `Unarchive #${channel.name}? Members can post in it again.`;
|
|
524
|
+
if (!await app.confirm({
|
|
525
|
+
title: archiving ? "Archive channel" : "Unarchive channel",
|
|
526
|
+
body: question,
|
|
527
|
+
action: archiving ? "Archive" : "Unarchive",
|
|
528
|
+
danger: archiving
|
|
529
|
+
})) return;
|
|
530
|
+
setBusy("archive");
|
|
531
|
+
try {
|
|
532
|
+
actions.putChannel(await api.archive(channel.id, archiving));
|
|
533
|
+
actions.refreshChannel(channel.id);
|
|
534
|
+
app.toast(archiving ? `Archived #${channel.name}.` : `Unarchived #${channel.name}.`);
|
|
535
|
+
} catch (e) {
|
|
536
|
+
fail(e);
|
|
537
|
+
} finally {
|
|
538
|
+
setBusy(null);
|
|
539
|
+
}
|
|
540
|
+
};
|
|
541
|
+
const canRename = channel.canManage && !channel.archivedAt;
|
|
542
|
+
const canArchive = channel.canManage && !channel.isGeneral;
|
|
543
|
+
const nameHint = !normalized ? "Use at least one letter or number." : normalized !== name.trim() ? `It will be saved as #${normalized}.` : "Lowercase letters, numbers, hyphens and underscores.";
|
|
544
|
+
return /* @__PURE__ */ jsxs(ScrollView, { contentContainerStyle: styles.pad, keyboardShouldPersistTaps: "handled", children: [
|
|
545
|
+
canRename ? /* @__PURE__ */ jsx(Field, { label: "Channel name", error: nameError, hint: nameHint, children: /* @__PURE__ */ jsxs(View, { style: styles.renameRow, children: [
|
|
546
|
+
/* @__PURE__ */ jsx(Input, { value: name, onChangeText: (t) => {
|
|
547
|
+
setName(t);
|
|
548
|
+
setNameError(null);
|
|
549
|
+
}, maxLength: 100, autoCapitalize: "none", autoCorrect: false, invalid: Boolean(nameError), style: styles.flex, accessibilityLabel: "Channel name" }),
|
|
550
|
+
/* @__PURE__ */ jsx(Button, { label: "Save", variant: "primary", loading: busy === "rename", disabled: !normalized || normalized === channel.name || Boolean(busy), onPress: () => void rename() })
|
|
551
|
+
] }) }) : null,
|
|
552
|
+
m ? /* @__PURE__ */ jsxs(View, { style: styles.block, children: [
|
|
553
|
+
/* @__PURE__ */ jsx(Text, { style: [styles.h4, {
|
|
554
|
+
color: p.foreground
|
|
555
|
+
}], children: "Notifications" }),
|
|
556
|
+
NOTIFY.map((n) => {
|
|
557
|
+
const on = m.notify === n.id;
|
|
558
|
+
return /* @__PURE__ */ jsxs(Pressable, { onPress: () => void prefs({
|
|
559
|
+
notify: n.id
|
|
560
|
+
}), accessibilityRole: "radio", accessibilityState: {
|
|
561
|
+
checked: on
|
|
562
|
+
}, style: styles.radio, children: [
|
|
563
|
+
/* @__PURE__ */ jsx(Ionicons, { name: on ? "radio-button-on" : "radio-button-off", size: 20, color: on ? p.primary : p.mutedForeground }),
|
|
564
|
+
/* @__PURE__ */ jsxs(View, { style: styles.flex, children: [
|
|
565
|
+
/* @__PURE__ */ jsx(Text, { style: [styles.radioLabel, {
|
|
566
|
+
color: p.foreground
|
|
567
|
+
}], children: n.label }),
|
|
568
|
+
/* @__PURE__ */ jsx(Text, { style: [styles.personSub, {
|
|
569
|
+
color: p.mutedForeground
|
|
570
|
+
}], children: n.hint })
|
|
571
|
+
] })
|
|
572
|
+
] }, n.id);
|
|
573
|
+
}),
|
|
574
|
+
/* @__PURE__ */ jsx(View, { style: [styles.rule, {
|
|
575
|
+
backgroundColor: p.border
|
|
576
|
+
}] }),
|
|
577
|
+
/* @__PURE__ */ jsx(Toggle, { value: m.muted, onChange: (muted) => void prefs({
|
|
578
|
+
muted
|
|
579
|
+
}), label: "Mute channel", description: "No unread badge and no notifications, except when someone mentions you by name." })
|
|
580
|
+
] }) : /* @__PURE__ */ jsx(Text, { style: [styles.note, {
|
|
581
|
+
color: p.mutedForeground
|
|
582
|
+
}], children: "Join the channel to choose its notifications." }),
|
|
583
|
+
m && !channel.isGeneral || canArchive ? /* @__PURE__ */ jsxs(View, { style: [styles.card, {
|
|
584
|
+
borderColor: p.border
|
|
585
|
+
}], children: [
|
|
586
|
+
m && !channel.isGeneral ? /* @__PURE__ */ jsx(ActionRow, { icon: "log-out-outline", label: "Leave channel", busy: busy === "leave", disabled: Boolean(busy), onPress: () => void leave() }) : null,
|
|
587
|
+
canArchive ? /* @__PURE__ */ jsx(ActionRow, { danger: !channel.archivedAt, icon: channel.archivedAt ? "refresh-outline" : "archive-outline", label: channel.archivedAt ? "Unarchive channel" : "Archive channel for everyone", busy: busy === "archive", disabled: Boolean(busy), onPress: () => void archive() }) : null
|
|
588
|
+
] }) : null,
|
|
589
|
+
channel.isGeneral ? /* @__PURE__ */ jsxs(View, { style: [styles.banner, {
|
|
590
|
+
backgroundColor: p.muted
|
|
591
|
+
}], children: [
|
|
592
|
+
/* @__PURE__ */ jsx(Ionicons, { name: "people-outline", size: 16, color: p.mutedForeground }),
|
|
593
|
+
/* @__PURE__ */ jsxs(Text, { style: [styles.bannerText, {
|
|
594
|
+
color: p.foreground
|
|
595
|
+
}], children: [
|
|
596
|
+
"Everyone in the workspace is in #",
|
|
597
|
+
channel.name,
|
|
598
|
+
", so it can\u2019t be left or archived."
|
|
599
|
+
] })
|
|
600
|
+
] }) : null
|
|
601
|
+
] });
|
|
602
|
+
}
|
|
603
|
+
function ActionRow({
|
|
604
|
+
icon,
|
|
605
|
+
label,
|
|
606
|
+
onPress,
|
|
607
|
+
danger,
|
|
608
|
+
busy,
|
|
609
|
+
disabled
|
|
610
|
+
}) {
|
|
611
|
+
const p = usePalette();
|
|
612
|
+
const color = danger ? p.destructive : p.foreground;
|
|
613
|
+
return /* @__PURE__ */ jsxs(Pressable, { onPress: disabled ? void 0 : onPress, style: ({
|
|
614
|
+
pressed
|
|
615
|
+
}) => [styles.actionRow, pressed && {
|
|
616
|
+
backgroundColor: p.muted
|
|
617
|
+
}, disabled && styles.dim], accessibilityRole: "button", children: [
|
|
618
|
+
busy ? /* @__PURE__ */ jsx(ActivityIndicator, { size: "small", color }) : /* @__PURE__ */ jsx(Ionicons, { name: icon, size: 19, color }),
|
|
619
|
+
/* @__PURE__ */ jsx(Text, { style: [styles.actionText, {
|
|
620
|
+
color
|
|
621
|
+
}], children: label })
|
|
622
|
+
] });
|
|
623
|
+
}
|
|
624
|
+
const styles = StyleSheet.create({
|
|
625
|
+
fill: {
|
|
626
|
+
flex: 1
|
|
627
|
+
},
|
|
628
|
+
flex: {
|
|
629
|
+
flex: 1
|
|
630
|
+
},
|
|
631
|
+
dim: {
|
|
632
|
+
opacity: 0.5
|
|
633
|
+
},
|
|
634
|
+
pad: {
|
|
635
|
+
padding: 16,
|
|
636
|
+
paddingBottom: 40
|
|
637
|
+
},
|
|
638
|
+
list: {
|
|
639
|
+
paddingVertical: 8,
|
|
640
|
+
paddingBottom: 40
|
|
641
|
+
},
|
|
642
|
+
note: {
|
|
643
|
+
fontSize: 14,
|
|
644
|
+
padding: 16,
|
|
645
|
+
lineHeight: 20
|
|
646
|
+
},
|
|
647
|
+
h3: {
|
|
648
|
+
fontSize: 15,
|
|
649
|
+
fontWeight: "800",
|
|
650
|
+
marginBottom: 6
|
|
651
|
+
},
|
|
652
|
+
h4: {
|
|
653
|
+
fontSize: 14,
|
|
654
|
+
fontWeight: "800"
|
|
655
|
+
},
|
|
656
|
+
body: {
|
|
657
|
+
fontSize: 15,
|
|
658
|
+
lineHeight: 21
|
|
659
|
+
},
|
|
660
|
+
card: {
|
|
661
|
+
borderWidth: StyleSheet.hairlineWidth,
|
|
662
|
+
borderRadius: 14,
|
|
663
|
+
marginTop: 8,
|
|
664
|
+
overflow: "hidden"
|
|
665
|
+
},
|
|
666
|
+
addCard: {
|
|
667
|
+
padding: 12,
|
|
668
|
+
gap: 10
|
|
669
|
+
},
|
|
670
|
+
addButton: {
|
|
671
|
+
alignSelf: "flex-start",
|
|
672
|
+
marginBottom: 8
|
|
673
|
+
},
|
|
674
|
+
filter: {
|
|
675
|
+
marginVertical: 8
|
|
676
|
+
},
|
|
677
|
+
section: {
|
|
678
|
+
padding: 14,
|
|
679
|
+
gap: 6
|
|
680
|
+
},
|
|
681
|
+
sectionHead: {
|
|
682
|
+
flexDirection: "row",
|
|
683
|
+
alignItems: "center",
|
|
684
|
+
justifyContent: "space-between",
|
|
685
|
+
minHeight: 28
|
|
686
|
+
},
|
|
687
|
+
rule: {
|
|
688
|
+
height: StyleSheet.hairlineWidth
|
|
689
|
+
},
|
|
690
|
+
editing: {
|
|
691
|
+
gap: 8
|
|
692
|
+
},
|
|
693
|
+
multiline: {
|
|
694
|
+
minHeight: 80,
|
|
695
|
+
textAlignVertical: "top"
|
|
696
|
+
},
|
|
697
|
+
editActions: {
|
|
698
|
+
flexDirection: "row",
|
|
699
|
+
alignItems: "center",
|
|
700
|
+
justifyContent: "flex-end",
|
|
701
|
+
gap: 8
|
|
702
|
+
},
|
|
703
|
+
left: {
|
|
704
|
+
marginRight: "auto",
|
|
705
|
+
fontSize: 12
|
|
706
|
+
},
|
|
707
|
+
banner: {
|
|
708
|
+
flexDirection: "row",
|
|
709
|
+
alignItems: "center",
|
|
710
|
+
gap: 8,
|
|
711
|
+
padding: 12,
|
|
712
|
+
borderRadius: 10,
|
|
713
|
+
marginVertical: 8
|
|
714
|
+
},
|
|
715
|
+
bannerText: {
|
|
716
|
+
flex: 1,
|
|
717
|
+
fontSize: 13,
|
|
718
|
+
lineHeight: 18
|
|
719
|
+
},
|
|
720
|
+
person: {
|
|
721
|
+
flexDirection: "row",
|
|
722
|
+
alignItems: "center",
|
|
723
|
+
gap: 12,
|
|
724
|
+
paddingVertical: 8,
|
|
725
|
+
paddingHorizontal: 4,
|
|
726
|
+
borderRadius: 10
|
|
727
|
+
},
|
|
728
|
+
personText: {
|
|
729
|
+
flex: 1,
|
|
730
|
+
minWidth: 0
|
|
731
|
+
},
|
|
732
|
+
personName: {
|
|
733
|
+
fontSize: 15,
|
|
734
|
+
fontWeight: "700"
|
|
735
|
+
},
|
|
736
|
+
personSub: {
|
|
737
|
+
fontSize: 13,
|
|
738
|
+
marginTop: 1
|
|
739
|
+
},
|
|
740
|
+
badge: {
|
|
741
|
+
fontSize: 11,
|
|
742
|
+
fontWeight: "700",
|
|
743
|
+
borderWidth: StyleSheet.hairlineWidth,
|
|
744
|
+
borderRadius: 6,
|
|
745
|
+
paddingHorizontal: 6,
|
|
746
|
+
paddingVertical: 2
|
|
747
|
+
},
|
|
748
|
+
remove: {
|
|
749
|
+
fontSize: 13,
|
|
750
|
+
fontWeight: "700",
|
|
751
|
+
paddingHorizontal: 6
|
|
752
|
+
},
|
|
753
|
+
pinned: {
|
|
754
|
+
borderBottomWidth: StyleSheet.hairlineWidth,
|
|
755
|
+
paddingBottom: 8
|
|
756
|
+
},
|
|
757
|
+
ctx: {
|
|
758
|
+
fontSize: 12,
|
|
759
|
+
fontWeight: "600"
|
|
760
|
+
},
|
|
761
|
+
pinActions: {
|
|
762
|
+
flexDirection: "row",
|
|
763
|
+
gap: 8,
|
|
764
|
+
paddingLeft: 62
|
|
765
|
+
},
|
|
766
|
+
action: {
|
|
767
|
+
fontSize: 13,
|
|
768
|
+
fontWeight: "700"
|
|
769
|
+
},
|
|
770
|
+
file: {
|
|
771
|
+
flexDirection: "row",
|
|
772
|
+
alignItems: "center",
|
|
773
|
+
gap: 10,
|
|
774
|
+
borderWidth: StyleSheet.hairlineWidth,
|
|
775
|
+
borderRadius: 12,
|
|
776
|
+
padding: 10,
|
|
777
|
+
marginBottom: 8
|
|
778
|
+
},
|
|
779
|
+
fileIcon: {
|
|
780
|
+
width: 40,
|
|
781
|
+
height: 40,
|
|
782
|
+
borderRadius: 8,
|
|
783
|
+
alignItems: "center",
|
|
784
|
+
justifyContent: "center"
|
|
785
|
+
},
|
|
786
|
+
renameRow: {
|
|
787
|
+
flexDirection: "row",
|
|
788
|
+
alignItems: "center",
|
|
789
|
+
gap: 8
|
|
790
|
+
},
|
|
791
|
+
block: {
|
|
792
|
+
gap: 6,
|
|
793
|
+
marginTop: 4
|
|
794
|
+
},
|
|
795
|
+
radio: {
|
|
796
|
+
flexDirection: "row",
|
|
797
|
+
alignItems: "flex-start",
|
|
798
|
+
gap: 10,
|
|
799
|
+
paddingVertical: 8
|
|
800
|
+
},
|
|
801
|
+
radioLabel: {
|
|
802
|
+
fontSize: 15,
|
|
803
|
+
fontWeight: "600"
|
|
804
|
+
},
|
|
805
|
+
actionRow: {
|
|
806
|
+
flexDirection: "row",
|
|
807
|
+
alignItems: "center",
|
|
808
|
+
gap: 12,
|
|
809
|
+
height: 50,
|
|
810
|
+
paddingHorizontal: 14
|
|
811
|
+
},
|
|
812
|
+
actionText: {
|
|
813
|
+
fontSize: 15,
|
|
814
|
+
fontWeight: "600"
|
|
815
|
+
}
|
|
816
|
+
});export{DetailsPane};//# sourceMappingURL=DetailsPane.js.map
|