@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,662 @@
|
|
|
1
|
+
import {jsxs,jsx}from'react/jsx-runtime';import React__default from'react';import {View,StyleSheet,Pressable,Text,ActivityIndicator,ScrollView,TextInput,Switch,Modal,KeyboardAvoidingView,Platform}from'react-native';import {useSafeAreaInsets}from'react-native-safe-area-context';import {Ionicons}from'@expo/vector-icons';import {usePalette}from'../app.js';var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
3
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
4
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
+
var __spreadValues = (a, b) => {
|
|
7
|
+
for (var prop in b || (b = {}))
|
|
8
|
+
if (__hasOwnProp.call(b, prop))
|
|
9
|
+
__defNormalProp(a, prop, b[prop]);
|
|
10
|
+
if (__getOwnPropSymbols)
|
|
11
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
12
|
+
if (__propIsEnum.call(b, prop))
|
|
13
|
+
__defNormalProp(a, prop, b[prop]);
|
|
14
|
+
}
|
|
15
|
+
return a;
|
|
16
|
+
};
|
|
17
|
+
var __objRest = (source, exclude) => {
|
|
18
|
+
var target = {};
|
|
19
|
+
for (var prop in source)
|
|
20
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
21
|
+
target[prop] = source[prop];
|
|
22
|
+
if (source != null && __getOwnPropSymbols)
|
|
23
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
24
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
25
|
+
target[prop] = source[prop];
|
|
26
|
+
}
|
|
27
|
+
return target;
|
|
28
|
+
};
|
|
29
|
+
function ChannelGlyph({
|
|
30
|
+
kind,
|
|
31
|
+
size = 16,
|
|
32
|
+
color
|
|
33
|
+
}) {
|
|
34
|
+
const p = usePalette();
|
|
35
|
+
const c = color != null ? color : p.mutedForeground;
|
|
36
|
+
if (kind === "private") return /* @__PURE__ */ jsx(Ionicons, { name: "lock-closed", size: size - 2, color: c });
|
|
37
|
+
if (kind === "group") return /* @__PURE__ */ jsx(Ionicons, { name: "people", size: size - 1, color: c });
|
|
38
|
+
return /* @__PURE__ */ jsx(Text, { style: {
|
|
39
|
+
color: c,
|
|
40
|
+
fontSize: size + 1,
|
|
41
|
+
fontWeight: "700",
|
|
42
|
+
lineHeight: size + 4,
|
|
43
|
+
width: size,
|
|
44
|
+
textAlign: "center"
|
|
45
|
+
}, children: "#" });
|
|
46
|
+
}
|
|
47
|
+
function Spinner({
|
|
48
|
+
size = "small",
|
|
49
|
+
color
|
|
50
|
+
}) {
|
|
51
|
+
const p = usePalette();
|
|
52
|
+
return /* @__PURE__ */ jsx(ActivityIndicator, { size, color: color != null ? color : p.mutedForeground });
|
|
53
|
+
}
|
|
54
|
+
function Centered({
|
|
55
|
+
children
|
|
56
|
+
}) {
|
|
57
|
+
return /* @__PURE__ */ jsx(View, { style: styles.centered, children: children != null ? children : /* @__PURE__ */ jsx(Spinner, {}) });
|
|
58
|
+
}
|
|
59
|
+
function Button({
|
|
60
|
+
label,
|
|
61
|
+
onPress,
|
|
62
|
+
variant = "secondary",
|
|
63
|
+
size = "md",
|
|
64
|
+
icon,
|
|
65
|
+
loading,
|
|
66
|
+
disabled,
|
|
67
|
+
style,
|
|
68
|
+
accessibilityLabel
|
|
69
|
+
}) {
|
|
70
|
+
const p = usePalette();
|
|
71
|
+
const bg = variant === "primary" ? p.primary : variant === "danger" ? p.destructive : variant === "ghost" ? "transparent" : p.background;
|
|
72
|
+
const fg = variant === "primary" ? p.primaryForeground : variant === "danger" ? "#ffffff" : p.foreground;
|
|
73
|
+
const border = variant === "secondary" ? p.border : "transparent";
|
|
74
|
+
const off = disabled || loading;
|
|
75
|
+
return /* @__PURE__ */ jsxs(Pressable, { onPress: off ? void 0 : onPress, accessibilityRole: "button", accessibilityLabel: accessibilityLabel != null ? accessibilityLabel : label, accessibilityState: {
|
|
76
|
+
disabled: Boolean(off),
|
|
77
|
+
busy: Boolean(loading)
|
|
78
|
+
}, style: ({
|
|
79
|
+
pressed
|
|
80
|
+
}) => [styles.button, size === "sm" ? styles.buttonSm : null, {
|
|
81
|
+
backgroundColor: bg,
|
|
82
|
+
borderColor: border,
|
|
83
|
+
opacity: off ? 0.55 : pressed ? 0.8 : 1
|
|
84
|
+
}, style], children: [
|
|
85
|
+
loading ? /* @__PURE__ */ jsx(ActivityIndicator, { size: "small", color: fg }) : icon ? /* @__PURE__ */ jsx(Ionicons, { name: icon, size: size === "sm" ? 15 : 17, color: fg }) : null,
|
|
86
|
+
/* @__PURE__ */ jsx(Text, { style: [styles.buttonText, size === "sm" ? styles.buttonTextSm : null, {
|
|
87
|
+
color: fg
|
|
88
|
+
}], numberOfLines: 1, children: label })
|
|
89
|
+
] });
|
|
90
|
+
}
|
|
91
|
+
function IconButton({
|
|
92
|
+
icon,
|
|
93
|
+
label,
|
|
94
|
+
onPress,
|
|
95
|
+
color,
|
|
96
|
+
size = 20,
|
|
97
|
+
badge,
|
|
98
|
+
style,
|
|
99
|
+
disabled
|
|
100
|
+
}) {
|
|
101
|
+
const p = usePalette();
|
|
102
|
+
return /* @__PURE__ */ jsxs(Pressable, { onPress: disabled ? void 0 : onPress, accessibilityRole: "button", accessibilityLabel: label, hitSlop: 6, style: ({
|
|
103
|
+
pressed
|
|
104
|
+
}) => [styles.iconButton, {
|
|
105
|
+
opacity: disabled ? 0.4 : pressed ? 0.6 : 1
|
|
106
|
+
}, style], children: [
|
|
107
|
+
/* @__PURE__ */ jsx(Ionicons, { name: icon, size, color: color != null ? color : p.mutedForeground }),
|
|
108
|
+
badge ? /* @__PURE__ */ jsx(Badge, { count: badge, style: styles.iconBadge }) : null
|
|
109
|
+
] });
|
|
110
|
+
}
|
|
111
|
+
function Badge({
|
|
112
|
+
count,
|
|
113
|
+
style
|
|
114
|
+
}) {
|
|
115
|
+
const p = usePalette();
|
|
116
|
+
return /* @__PURE__ */ jsx(View, { style: [styles.badge, {
|
|
117
|
+
backgroundColor: p.badge
|
|
118
|
+
}, style], children: /* @__PURE__ */ jsx(Text, { style: styles.badgeText, children: count > 99 ? "99+" : count }) });
|
|
119
|
+
}
|
|
120
|
+
function Header({
|
|
121
|
+
title,
|
|
122
|
+
subtitle,
|
|
123
|
+
icon,
|
|
124
|
+
onBack,
|
|
125
|
+
backIcon = "chevron-back",
|
|
126
|
+
onTitlePress,
|
|
127
|
+
right,
|
|
128
|
+
children,
|
|
129
|
+
tone = "plain"
|
|
130
|
+
}) {
|
|
131
|
+
const p = usePalette();
|
|
132
|
+
const insets = useSafeAreaInsets();
|
|
133
|
+
const side = tone === "sidebar";
|
|
134
|
+
const fg = side ? p.sidebarForeground : p.foreground;
|
|
135
|
+
return /* @__PURE__ */ jsxs(View, { style: [styles.header, {
|
|
136
|
+
paddingTop: insets.top + 6,
|
|
137
|
+
backgroundColor: side ? p.sidebar : p.background,
|
|
138
|
+
borderBottomColor: side ? p.sidebarBorder : p.border
|
|
139
|
+
}], children: [
|
|
140
|
+
/* @__PURE__ */ jsxs(View, { style: styles.headerRow, children: [
|
|
141
|
+
onBack ? /* @__PURE__ */ jsx(IconButton, { icon: backIcon, label: backIcon === "menu" ? "Open menu" : "Back", onPress: onBack, color: fg, size: 24 }) : null,
|
|
142
|
+
/* @__PURE__ */ jsxs(Pressable, { disabled: !onTitlePress, onPress: onTitlePress, accessibilityRole: onTitlePress ? "button" : "header", style: styles.headerTitleWrap, children: [
|
|
143
|
+
icon,
|
|
144
|
+
/* @__PURE__ */ jsxs(View, { style: styles.headerTitleText, children: [
|
|
145
|
+
typeof title === "string" ? /* @__PURE__ */ jsx(Text, { style: [styles.headerTitle, {
|
|
146
|
+
color: fg
|
|
147
|
+
}], numberOfLines: 1, children: title }) : title,
|
|
148
|
+
subtitle ? typeof subtitle === "string" ? /* @__PURE__ */ jsx(Text, { style: [styles.headerSubtitle, {
|
|
149
|
+
color: side ? p.sidebarMuted : p.mutedForeground
|
|
150
|
+
}], numberOfLines: 1, children: subtitle }) : subtitle : null
|
|
151
|
+
] }),
|
|
152
|
+
onTitlePress ? /* @__PURE__ */ jsx(Ionicons, { name: "chevron-down", size: 15, color: side ? p.sidebarMuted : p.mutedForeground }) : null
|
|
153
|
+
] }),
|
|
154
|
+
right ? /* @__PURE__ */ jsx(View, { style: styles.headerRight, children: right }) : null
|
|
155
|
+
] }),
|
|
156
|
+
children
|
|
157
|
+
] });
|
|
158
|
+
}
|
|
159
|
+
function Tabs({
|
|
160
|
+
value,
|
|
161
|
+
onChange,
|
|
162
|
+
tabs
|
|
163
|
+
}) {
|
|
164
|
+
const p = usePalette();
|
|
165
|
+
return /* @__PURE__ */ jsx(ScrollView, { horizontal: true, showsHorizontalScrollIndicator: false, contentContainerStyle: styles.tabs, accessibilityRole: "tablist", children: tabs.map((t) => {
|
|
166
|
+
const on = t.id === value;
|
|
167
|
+
return /* @__PURE__ */ jsxs(Pressable, { onPress: () => onChange(t.id), accessibilityRole: "tab", accessibilityState: {
|
|
168
|
+
selected: on
|
|
169
|
+
}, style: [styles.tab, {
|
|
170
|
+
borderBottomColor: on ? p.primary : "transparent"
|
|
171
|
+
}], children: [
|
|
172
|
+
/* @__PURE__ */ jsx(Text, { style: [styles.tabText, {
|
|
173
|
+
color: on ? p.foreground : p.mutedForeground
|
|
174
|
+
}], children: t.label }),
|
|
175
|
+
t.count ? /* @__PURE__ */ jsx(View, { style: [styles.tabCount, {
|
|
176
|
+
backgroundColor: p.muted
|
|
177
|
+
}], children: /* @__PURE__ */ jsx(Text, { style: [styles.tabCountText, {
|
|
178
|
+
color: p.mutedForeground
|
|
179
|
+
}], children: t.count }) }) : null
|
|
180
|
+
] }, t.id);
|
|
181
|
+
}) });
|
|
182
|
+
}
|
|
183
|
+
function EmptyState({
|
|
184
|
+
icon,
|
|
185
|
+
title,
|
|
186
|
+
body,
|
|
187
|
+
action
|
|
188
|
+
}) {
|
|
189
|
+
const p = usePalette();
|
|
190
|
+
return /* @__PURE__ */ jsxs(View, { style: styles.empty, children: [
|
|
191
|
+
/* @__PURE__ */ jsx(View, { style: [styles.emptyIcon, {
|
|
192
|
+
backgroundColor: p.accent
|
|
193
|
+
}], children: /* @__PURE__ */ jsx(Ionicons, { name: icon, size: 24, color: p.accentForeground }) }),
|
|
194
|
+
/* @__PURE__ */ jsx(Text, { style: [styles.emptyTitle, {
|
|
195
|
+
color: p.foreground
|
|
196
|
+
}], children: title }),
|
|
197
|
+
body ? /* @__PURE__ */ jsx(Text, { style: [styles.emptyBody, {
|
|
198
|
+
color: p.mutedForeground
|
|
199
|
+
}], children: body }) : null,
|
|
200
|
+
action ? /* @__PURE__ */ jsx(View, { style: styles.emptyAction, children: action }) : null
|
|
201
|
+
] });
|
|
202
|
+
}
|
|
203
|
+
function ErrorNotice({
|
|
204
|
+
error,
|
|
205
|
+
onRetry
|
|
206
|
+
}) {
|
|
207
|
+
const p = usePalette();
|
|
208
|
+
const text = error instanceof Error ? error.message : String(error != null ? error : "Something went wrong.");
|
|
209
|
+
return /* @__PURE__ */ jsxs(View, { style: [styles.error, {
|
|
210
|
+
borderColor: p.border,
|
|
211
|
+
backgroundColor: p.muted
|
|
212
|
+
}], accessibilityRole: "alert", children: [
|
|
213
|
+
/* @__PURE__ */ jsx(Ionicons, { name: "alert-circle-outline", size: 18, color: p.destructive }),
|
|
214
|
+
/* @__PURE__ */ jsx(Text, { style: [styles.errorText, {
|
|
215
|
+
color: p.foreground
|
|
216
|
+
}], children: text }),
|
|
217
|
+
onRetry ? /* @__PURE__ */ jsx(Button, { size: "sm", label: "Try again", onPress: onRetry }) : null
|
|
218
|
+
] });
|
|
219
|
+
}
|
|
220
|
+
function Field({
|
|
221
|
+
label,
|
|
222
|
+
hint,
|
|
223
|
+
error,
|
|
224
|
+
children
|
|
225
|
+
}) {
|
|
226
|
+
const p = usePalette();
|
|
227
|
+
return /* @__PURE__ */ jsxs(View, { style: styles.field, children: [
|
|
228
|
+
/* @__PURE__ */ jsx(Text, { style: [styles.fieldLabel, {
|
|
229
|
+
color: p.foreground
|
|
230
|
+
}], children: label }),
|
|
231
|
+
children,
|
|
232
|
+
error ? /* @__PURE__ */ jsx(Text, { style: [styles.fieldHint, {
|
|
233
|
+
color: p.destructive
|
|
234
|
+
}], children: error }) : hint ? /* @__PURE__ */ jsx(Text, { style: [styles.fieldHint, {
|
|
235
|
+
color: p.mutedForeground
|
|
236
|
+
}], children: hint }) : null
|
|
237
|
+
] });
|
|
238
|
+
}
|
|
239
|
+
const Input = React__default.forwardRef(function Input2(_a, ref) {
|
|
240
|
+
var _b = _a, {
|
|
241
|
+
style,
|
|
242
|
+
invalid
|
|
243
|
+
} = _b, rest = __objRest(_b, [
|
|
244
|
+
"style",
|
|
245
|
+
"invalid"
|
|
246
|
+
]);
|
|
247
|
+
const p = usePalette();
|
|
248
|
+
return /* @__PURE__ */ jsx(TextInput, __spreadValues({ ref, placeholderTextColor: p.mutedForeground, style: [styles.input, {
|
|
249
|
+
borderColor: invalid ? p.destructive : p.input,
|
|
250
|
+
color: p.foreground,
|
|
251
|
+
backgroundColor: p.background
|
|
252
|
+
}, style] }, rest));
|
|
253
|
+
});
|
|
254
|
+
function SearchBox({
|
|
255
|
+
value,
|
|
256
|
+
onChangeText,
|
|
257
|
+
placeholder,
|
|
258
|
+
autoFocus,
|
|
259
|
+
onSubmitEditing
|
|
260
|
+
}) {
|
|
261
|
+
const p = usePalette();
|
|
262
|
+
return /* @__PURE__ */ jsxs(View, { style: [styles.search, {
|
|
263
|
+
borderColor: p.input,
|
|
264
|
+
backgroundColor: p.background
|
|
265
|
+
}], children: [
|
|
266
|
+
/* @__PURE__ */ jsx(Ionicons, { name: "search", size: 16, color: p.mutedForeground }),
|
|
267
|
+
/* @__PURE__ */ jsx(TextInput, { value, onChangeText, placeholder, placeholderTextColor: p.mutedForeground, autoFocus, autoCapitalize: "none", autoCorrect: false, returnKeyType: "search", onSubmitEditing, style: [styles.searchInput, {
|
|
268
|
+
color: p.foreground
|
|
269
|
+
}], accessibilityLabel: placeholder }),
|
|
270
|
+
value ? /* @__PURE__ */ jsx(IconButton, { icon: "close-circle", label: "Clear", size: 16, onPress: () => onChangeText("") }) : null
|
|
271
|
+
] });
|
|
272
|
+
}
|
|
273
|
+
function Toggle({
|
|
274
|
+
value,
|
|
275
|
+
onChange,
|
|
276
|
+
label,
|
|
277
|
+
description,
|
|
278
|
+
disabled
|
|
279
|
+
}) {
|
|
280
|
+
const p = usePalette();
|
|
281
|
+
return /* @__PURE__ */ jsxs(View, { style: styles.toggle, children: [
|
|
282
|
+
/* @__PURE__ */ jsxs(View, { style: styles.toggleText, children: [
|
|
283
|
+
/* @__PURE__ */ jsx(Text, { style: [styles.toggleLabel, {
|
|
284
|
+
color: p.foreground
|
|
285
|
+
}], children: label }),
|
|
286
|
+
description ? /* @__PURE__ */ jsx(Text, { style: [styles.fieldHint, {
|
|
287
|
+
color: p.mutedForeground
|
|
288
|
+
}], children: description }) : null
|
|
289
|
+
] }),
|
|
290
|
+
/* @__PURE__ */ jsx(Switch, { value, onValueChange: onChange, disabled, trackColor: {
|
|
291
|
+
true: p.primary,
|
|
292
|
+
false: p.input
|
|
293
|
+
}, accessibilityLabel: label })
|
|
294
|
+
] });
|
|
295
|
+
}
|
|
296
|
+
function Sheet({
|
|
297
|
+
visible,
|
|
298
|
+
onClose,
|
|
299
|
+
title,
|
|
300
|
+
children,
|
|
301
|
+
footer,
|
|
302
|
+
tall,
|
|
303
|
+
scroll = true,
|
|
304
|
+
flush
|
|
305
|
+
}) {
|
|
306
|
+
const p = usePalette();
|
|
307
|
+
const insets = useSafeAreaInsets();
|
|
308
|
+
return /* @__PURE__ */ jsx(Modal, { visible, transparent: true, animationType: "slide", onRequestClose: onClose, statusBarTranslucent: true, children: /* @__PURE__ */ jsxs(KeyboardAvoidingView, { behavior: Platform.OS === "ios" ? "padding" : void 0, style: styles.sheetRoot, children: [
|
|
309
|
+
/* @__PURE__ */ jsx(Pressable, { style: [StyleSheet.absoluteFill, {
|
|
310
|
+
backgroundColor: p.overlay
|
|
311
|
+
}], onPress: onClose, accessibilityLabel: "Close" }),
|
|
312
|
+
/* @__PURE__ */ jsxs(View, { style: [styles.sheet, {
|
|
313
|
+
backgroundColor: p.popover,
|
|
314
|
+
paddingBottom: Math.max(insets.bottom, 12)
|
|
315
|
+
}, tall ? styles.sheetTall : null], accessibilityViewIsModal: true, children: [
|
|
316
|
+
/* @__PURE__ */ jsx(View, { style: [styles.grabber, {
|
|
317
|
+
backgroundColor: p.input
|
|
318
|
+
}] }),
|
|
319
|
+
title ? /* @__PURE__ */ jsxs(View, { style: styles.sheetHeader, children: [
|
|
320
|
+
/* @__PURE__ */ jsx(Text, { style: [styles.sheetTitle, {
|
|
321
|
+
color: p.foreground
|
|
322
|
+
}], numberOfLines: 1, children: title }),
|
|
323
|
+
/* @__PURE__ */ jsx(IconButton, { icon: "close", label: "Close", onPress: onClose })
|
|
324
|
+
] }) : null,
|
|
325
|
+
scroll ? /* @__PURE__ */ jsx(ScrollView, { keyboardShouldPersistTaps: "handled", style: tall ? styles.flex : void 0, contentContainerStyle: [styles.sheetBody, flush ? styles.sheetBodyFlat : null], children }) : /* @__PURE__ */ jsx(View, { style: [styles.flex, styles.sheetBodyFlat], children }),
|
|
326
|
+
footer ? /* @__PURE__ */ jsx(View, { style: [styles.sheetFooter, {
|
|
327
|
+
borderTopColor: p.border
|
|
328
|
+
}], children: footer }) : null
|
|
329
|
+
] })
|
|
330
|
+
] }) });
|
|
331
|
+
}
|
|
332
|
+
function MenuRow({
|
|
333
|
+
icon,
|
|
334
|
+
iconNode,
|
|
335
|
+
label,
|
|
336
|
+
onPress,
|
|
337
|
+
danger,
|
|
338
|
+
disabled,
|
|
339
|
+
trailing
|
|
340
|
+
}) {
|
|
341
|
+
const p = usePalette();
|
|
342
|
+
const color = danger ? p.destructive : p.foreground;
|
|
343
|
+
return /* @__PURE__ */ jsxs(Pressable, { onPress: disabled ? void 0 : onPress, accessibilityRole: "menuitem", accessibilityState: {
|
|
344
|
+
disabled: Boolean(disabled)
|
|
345
|
+
}, style: ({
|
|
346
|
+
pressed
|
|
347
|
+
}) => [styles.menuRow, {
|
|
348
|
+
backgroundColor: pressed ? p.muted : "transparent",
|
|
349
|
+
opacity: disabled ? 0.45 : 1
|
|
350
|
+
}], children: [
|
|
351
|
+
/* @__PURE__ */ jsx(View, { style: styles.menuIcon, children: iconNode != null ? iconNode : icon ? /* @__PURE__ */ jsx(Ionicons, { name: icon, size: 19, color: danger ? p.destructive : p.mutedForeground }) : null }),
|
|
352
|
+
/* @__PURE__ */ jsx(Text, { style: [styles.menuLabel, {
|
|
353
|
+
color
|
|
354
|
+
}], numberOfLines: 1, children: label }),
|
|
355
|
+
trailing
|
|
356
|
+
] });
|
|
357
|
+
}
|
|
358
|
+
function MenuDivider() {
|
|
359
|
+
const p = usePalette();
|
|
360
|
+
return /* @__PURE__ */ jsx(View, { style: [styles.divider, {
|
|
361
|
+
backgroundColor: p.border
|
|
362
|
+
}] });
|
|
363
|
+
}
|
|
364
|
+
function SectionLabel({
|
|
365
|
+
children
|
|
366
|
+
}) {
|
|
367
|
+
const p = usePalette();
|
|
368
|
+
return /* @__PURE__ */ jsx(Text, { style: [styles.sectionLabel, {
|
|
369
|
+
color: p.mutedForeground
|
|
370
|
+
}], children });
|
|
371
|
+
}
|
|
372
|
+
function LoadMore({
|
|
373
|
+
onPress,
|
|
374
|
+
loading
|
|
375
|
+
}) {
|
|
376
|
+
return /* @__PURE__ */ jsx(View, { style: styles.loadMore, children: /* @__PURE__ */ jsx(Button, { size: "sm", label: "Load more", onPress, loading }) });
|
|
377
|
+
}
|
|
378
|
+
const styles = StyleSheet.create({
|
|
379
|
+
flex: {
|
|
380
|
+
flex: 1
|
|
381
|
+
},
|
|
382
|
+
centered: {
|
|
383
|
+
flex: 1,
|
|
384
|
+
alignItems: "center",
|
|
385
|
+
justifyContent: "center",
|
|
386
|
+
padding: 24
|
|
387
|
+
},
|
|
388
|
+
button: {
|
|
389
|
+
height: 40,
|
|
390
|
+
paddingHorizontal: 14,
|
|
391
|
+
borderRadius: 10,
|
|
392
|
+
borderWidth: StyleSheet.hairlineWidth,
|
|
393
|
+
flexDirection: "row",
|
|
394
|
+
alignItems: "center",
|
|
395
|
+
justifyContent: "center",
|
|
396
|
+
gap: 6
|
|
397
|
+
},
|
|
398
|
+
buttonSm: {
|
|
399
|
+
height: 32,
|
|
400
|
+
paddingHorizontal: 10,
|
|
401
|
+
borderRadius: 8
|
|
402
|
+
},
|
|
403
|
+
buttonText: {
|
|
404
|
+
fontSize: 15,
|
|
405
|
+
fontWeight: "600"
|
|
406
|
+
},
|
|
407
|
+
buttonTextSm: {
|
|
408
|
+
fontSize: 13
|
|
409
|
+
},
|
|
410
|
+
iconButton: {
|
|
411
|
+
minWidth: 36,
|
|
412
|
+
height: 36,
|
|
413
|
+
alignItems: "center",
|
|
414
|
+
justifyContent: "center"
|
|
415
|
+
},
|
|
416
|
+
iconBadge: {
|
|
417
|
+
position: "absolute",
|
|
418
|
+
top: 0,
|
|
419
|
+
right: 0
|
|
420
|
+
},
|
|
421
|
+
badge: {
|
|
422
|
+
minWidth: 18,
|
|
423
|
+
height: 18,
|
|
424
|
+
borderRadius: 9,
|
|
425
|
+
paddingHorizontal: 5,
|
|
426
|
+
alignItems: "center",
|
|
427
|
+
justifyContent: "center"
|
|
428
|
+
},
|
|
429
|
+
badgeText: {
|
|
430
|
+
color: "#ffffff",
|
|
431
|
+
fontSize: 11,
|
|
432
|
+
fontWeight: "700",
|
|
433
|
+
fontVariant: ["tabular-nums"]
|
|
434
|
+
},
|
|
435
|
+
header: {
|
|
436
|
+
borderBottomWidth: StyleSheet.hairlineWidth,
|
|
437
|
+
paddingHorizontal: 8,
|
|
438
|
+
paddingBottom: 6
|
|
439
|
+
},
|
|
440
|
+
headerRow: {
|
|
441
|
+
flexDirection: "row",
|
|
442
|
+
alignItems: "center",
|
|
443
|
+
minHeight: 44,
|
|
444
|
+
gap: 2
|
|
445
|
+
},
|
|
446
|
+
headerTitleWrap: {
|
|
447
|
+
flex: 1,
|
|
448
|
+
flexDirection: "row",
|
|
449
|
+
alignItems: "center",
|
|
450
|
+
gap: 6,
|
|
451
|
+
paddingHorizontal: 4,
|
|
452
|
+
minWidth: 0
|
|
453
|
+
},
|
|
454
|
+
headerTitleText: {
|
|
455
|
+
flexShrink: 1,
|
|
456
|
+
minWidth: 0
|
|
457
|
+
},
|
|
458
|
+
headerTitle: {
|
|
459
|
+
fontSize: 18,
|
|
460
|
+
fontWeight: "800"
|
|
461
|
+
},
|
|
462
|
+
headerSubtitle: {
|
|
463
|
+
fontSize: 12,
|
|
464
|
+
marginTop: 1
|
|
465
|
+
},
|
|
466
|
+
headerRight: {
|
|
467
|
+
flexDirection: "row",
|
|
468
|
+
alignItems: "center"
|
|
469
|
+
},
|
|
470
|
+
tabs: {
|
|
471
|
+
paddingHorizontal: 8,
|
|
472
|
+
gap: 4
|
|
473
|
+
},
|
|
474
|
+
tab: {
|
|
475
|
+
height: 40,
|
|
476
|
+
paddingHorizontal: 10,
|
|
477
|
+
flexDirection: "row",
|
|
478
|
+
alignItems: "center",
|
|
479
|
+
gap: 6,
|
|
480
|
+
borderBottomWidth: 2
|
|
481
|
+
},
|
|
482
|
+
tabText: {
|
|
483
|
+
fontSize: 14,
|
|
484
|
+
fontWeight: "600"
|
|
485
|
+
},
|
|
486
|
+
tabCount: {
|
|
487
|
+
borderRadius: 9,
|
|
488
|
+
paddingHorizontal: 6,
|
|
489
|
+
paddingVertical: 1
|
|
490
|
+
},
|
|
491
|
+
tabCountText: {
|
|
492
|
+
fontSize: 11,
|
|
493
|
+
fontWeight: "700"
|
|
494
|
+
},
|
|
495
|
+
empty: {
|
|
496
|
+
alignItems: "center",
|
|
497
|
+
paddingHorizontal: 28,
|
|
498
|
+
paddingVertical: 40
|
|
499
|
+
},
|
|
500
|
+
emptyIcon: {
|
|
501
|
+
width: 48,
|
|
502
|
+
height: 48,
|
|
503
|
+
borderRadius: 14,
|
|
504
|
+
alignItems: "center",
|
|
505
|
+
justifyContent: "center",
|
|
506
|
+
marginBottom: 12
|
|
507
|
+
},
|
|
508
|
+
emptyTitle: {
|
|
509
|
+
fontSize: 17,
|
|
510
|
+
fontWeight: "700",
|
|
511
|
+
textAlign: "center"
|
|
512
|
+
},
|
|
513
|
+
emptyBody: {
|
|
514
|
+
fontSize: 14,
|
|
515
|
+
textAlign: "center",
|
|
516
|
+
marginTop: 6,
|
|
517
|
+
lineHeight: 20
|
|
518
|
+
},
|
|
519
|
+
emptyAction: {
|
|
520
|
+
marginTop: 16
|
|
521
|
+
},
|
|
522
|
+
error: {
|
|
523
|
+
flexDirection: "row",
|
|
524
|
+
alignItems: "center",
|
|
525
|
+
gap: 10,
|
|
526
|
+
borderWidth: StyleSheet.hairlineWidth,
|
|
527
|
+
borderRadius: 12,
|
|
528
|
+
padding: 12,
|
|
529
|
+
margin: 16
|
|
530
|
+
},
|
|
531
|
+
errorText: {
|
|
532
|
+
flex: 1,
|
|
533
|
+
fontSize: 14
|
|
534
|
+
},
|
|
535
|
+
field: {
|
|
536
|
+
gap: 6,
|
|
537
|
+
marginBottom: 14
|
|
538
|
+
},
|
|
539
|
+
fieldLabel: {
|
|
540
|
+
fontSize: 14,
|
|
541
|
+
fontWeight: "700"
|
|
542
|
+
},
|
|
543
|
+
fieldHint: {
|
|
544
|
+
fontSize: 12,
|
|
545
|
+
lineHeight: 17
|
|
546
|
+
},
|
|
547
|
+
input: {
|
|
548
|
+
minHeight: 44,
|
|
549
|
+
borderWidth: 1,
|
|
550
|
+
borderRadius: 10,
|
|
551
|
+
paddingHorizontal: 12,
|
|
552
|
+
paddingVertical: 10,
|
|
553
|
+
fontSize: 15
|
|
554
|
+
},
|
|
555
|
+
search: {
|
|
556
|
+
flexDirection: "row",
|
|
557
|
+
alignItems: "center",
|
|
558
|
+
gap: 8,
|
|
559
|
+
height: 40,
|
|
560
|
+
borderWidth: 1,
|
|
561
|
+
borderRadius: 10,
|
|
562
|
+
paddingLeft: 10
|
|
563
|
+
},
|
|
564
|
+
searchInput: {
|
|
565
|
+
flex: 1,
|
|
566
|
+
fontSize: 15,
|
|
567
|
+
paddingVertical: 0
|
|
568
|
+
},
|
|
569
|
+
toggle: {
|
|
570
|
+
flexDirection: "row",
|
|
571
|
+
alignItems: "center",
|
|
572
|
+
gap: 12,
|
|
573
|
+
paddingVertical: 6
|
|
574
|
+
},
|
|
575
|
+
toggleText: {
|
|
576
|
+
flex: 1,
|
|
577
|
+
gap: 2
|
|
578
|
+
},
|
|
579
|
+
toggleLabel: {
|
|
580
|
+
fontSize: 15,
|
|
581
|
+
fontWeight: "600"
|
|
582
|
+
},
|
|
583
|
+
sheetRoot: {
|
|
584
|
+
flex: 1,
|
|
585
|
+
justifyContent: "flex-end"
|
|
586
|
+
},
|
|
587
|
+
sheet: {
|
|
588
|
+
borderTopLeftRadius: 18,
|
|
589
|
+
borderTopRightRadius: 18,
|
|
590
|
+
maxHeight: "88%",
|
|
591
|
+
paddingTop: 6
|
|
592
|
+
},
|
|
593
|
+
sheetTall: {
|
|
594
|
+
height: "88%"
|
|
595
|
+
},
|
|
596
|
+
grabber: {
|
|
597
|
+
alignSelf: "center",
|
|
598
|
+
width: 36,
|
|
599
|
+
height: 4,
|
|
600
|
+
borderRadius: 2,
|
|
601
|
+
marginBottom: 6
|
|
602
|
+
},
|
|
603
|
+
sheetHeader: {
|
|
604
|
+
flexDirection: "row",
|
|
605
|
+
alignItems: "center",
|
|
606
|
+
paddingLeft: 18,
|
|
607
|
+
paddingRight: 8,
|
|
608
|
+
minHeight: 44
|
|
609
|
+
},
|
|
610
|
+
sheetTitle: {
|
|
611
|
+
flex: 1,
|
|
612
|
+
fontSize: 17,
|
|
613
|
+
fontWeight: "800"
|
|
614
|
+
},
|
|
615
|
+
sheetBody: {
|
|
616
|
+
paddingHorizontal: 18,
|
|
617
|
+
paddingBottom: 8
|
|
618
|
+
},
|
|
619
|
+
sheetBodyFlat: {
|
|
620
|
+
paddingHorizontal: 0
|
|
621
|
+
},
|
|
622
|
+
sheetFooter: {
|
|
623
|
+
flexDirection: "row",
|
|
624
|
+
justifyContent: "flex-end",
|
|
625
|
+
gap: 8,
|
|
626
|
+
paddingHorizontal: 18,
|
|
627
|
+
paddingTop: 10,
|
|
628
|
+
borderTopWidth: StyleSheet.hairlineWidth
|
|
629
|
+
},
|
|
630
|
+
menuRow: {
|
|
631
|
+
flexDirection: "row",
|
|
632
|
+
alignItems: "center",
|
|
633
|
+
minHeight: 48,
|
|
634
|
+
paddingHorizontal: 18,
|
|
635
|
+
gap: 12
|
|
636
|
+
},
|
|
637
|
+
menuIcon: {
|
|
638
|
+
width: 24,
|
|
639
|
+
alignItems: "center"
|
|
640
|
+
},
|
|
641
|
+
menuLabel: {
|
|
642
|
+
flex: 1,
|
|
643
|
+
fontSize: 16
|
|
644
|
+
},
|
|
645
|
+
divider: {
|
|
646
|
+
height: StyleSheet.hairlineWidth,
|
|
647
|
+
marginVertical: 4
|
|
648
|
+
},
|
|
649
|
+
sectionLabel: {
|
|
650
|
+
fontSize: 12,
|
|
651
|
+
fontWeight: "700",
|
|
652
|
+
textTransform: "uppercase",
|
|
653
|
+
letterSpacing: 0.4,
|
|
654
|
+
paddingHorizontal: 16,
|
|
655
|
+
paddingTop: 14,
|
|
656
|
+
paddingBottom: 6
|
|
657
|
+
},
|
|
658
|
+
loadMore: {
|
|
659
|
+
alignItems: "center",
|
|
660
|
+
paddingVertical: 14
|
|
661
|
+
}
|
|
662
|
+
});export{Badge,Button,Centered,ChannelGlyph,EmptyState,ErrorNotice,Field,Header,IconButton,Input,LoadMore,MenuDivider,MenuRow,SearchBox,SectionLabel,Sheet,Spinner,Tabs,Toggle};//# sourceMappingURL=ui.js.map
|