@burdenoff/fe-libs 2026.525.2 → 2026.525.3
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/package.json +1 -1
- package/dist/button/Button.d.ts +0 -12
- package/dist/button/Button.d.ts.map +0 -1
- package/dist/button/index.d.ts +0 -3
- package/dist/button/index.d.ts.map +0 -1
- package/dist/button.d.ts +0 -2
- package/dist/chrome/AccountSwitcher.d.ts +0 -51
- package/dist/chrome/AccountSwitcher.d.ts.map +0 -1
- package/dist/chrome/AppShellLayout.d.ts +0 -67
- package/dist/chrome/AppShellLayout.d.ts.map +0 -1
- package/dist/chrome/AutoBreadcrumbs.d.ts +0 -22
- package/dist/chrome/AutoBreadcrumbs.d.ts.map +0 -1
- package/dist/chrome/Breadcrumb.d.ts +0 -47
- package/dist/chrome/Breadcrumb.d.ts.map +0 -1
- package/dist/chrome/Breadcrumbs.d.ts +0 -69
- package/dist/chrome/Breadcrumbs.d.ts.map +0 -1
- package/dist/chrome/CommandPalette.d.ts +0 -64
- package/dist/chrome/CommandPalette.d.ts.map +0 -1
- package/dist/chrome/ContextSwitcher.d.ts +0 -48
- package/dist/chrome/ContextSwitcher.d.ts.map +0 -1
- package/dist/chrome/DynamicFooter.d.ts +0 -21
- package/dist/chrome/DynamicFooter.d.ts.map +0 -1
- package/dist/chrome/Footer.d.ts +0 -128
- package/dist/chrome/Footer.d.ts.map +0 -1
- package/dist/chrome/FooterBar.d.ts +0 -79
- package/dist/chrome/FooterBar.d.ts.map +0 -1
- package/dist/chrome/GeographySwitcher.d.ts +0 -22
- package/dist/chrome/GeographySwitcher.d.ts.map +0 -1
- package/dist/chrome/GlobalSearch.d.ts +0 -49
- package/dist/chrome/GlobalSearch.d.ts.map +0 -1
- package/dist/chrome/HeaderBar.d.ts +0 -108
- package/dist/chrome/HeaderBar.d.ts.map +0 -1
- package/dist/chrome/LanguagePickerSheet.d.ts +0 -22
- package/dist/chrome/LanguagePickerSheet.d.ts.map +0 -1
- package/dist/chrome/LanguageSwitcher.d.ts +0 -23
- package/dist/chrome/LanguageSwitcher.d.ts.map +0 -1
- package/dist/chrome/NavLink.d.ts +0 -64
- package/dist/chrome/NavLink.d.ts.map +0 -1
- package/dist/chrome/NotificationCenter.d.ts +0 -16
- package/dist/chrome/NotificationCenter.d.ts.map +0 -1
- package/dist/chrome/PanelContainer.d.ts +0 -8
- package/dist/chrome/PanelContainer.d.ts.map +0 -1
- package/dist/chrome/PanelTabs.d.ts +0 -19
- package/dist/chrome/PanelTabs.d.ts.map +0 -1
- package/dist/chrome/PluginContextMenuTarget.d.ts +0 -8
- package/dist/chrome/PluginContextMenuTarget.d.ts.map +0 -1
- package/dist/chrome/PluginFooterStrip.d.ts +0 -3
- package/dist/chrome/PluginFooterStrip.d.ts.map +0 -1
- package/dist/chrome/PluginRoutes.d.ts +0 -9
- package/dist/chrome/PluginRoutes.d.ts.map +0 -1
- package/dist/chrome/PluginSettingsPage.d.ts +0 -3
- package/dist/chrome/PluginSettingsPage.d.ts.map +0 -1
- package/dist/chrome/PluginToolbar.d.ts +0 -9
- package/dist/chrome/PluginToolbar.d.ts.map +0 -1
- package/dist/chrome/PluginWidgetGrid.d.ts +0 -7
- package/dist/chrome/PluginWidgetGrid.d.ts.map +0 -1
- package/dist/chrome/ProductPickerSheet.d.ts +0 -24
- package/dist/chrome/ProductPickerSheet.d.ts.map +0 -1
- package/dist/chrome/ProductSideNav.d.ts +0 -22
- package/dist/chrome/ProductSideNav.d.ts.map +0 -1
- package/dist/chrome/ProductSwitcher.d.ts +0 -31
- package/dist/chrome/ProductSwitcher.d.ts.map +0 -1
- package/dist/chrome/ProfileSwitcher.d.ts +0 -49
- package/dist/chrome/ProfileSwitcher.d.ts.map +0 -1
- package/dist/chrome/ShortcutHelpDialog.d.ts +0 -33
- package/dist/chrome/ShortcutHelpDialog.d.ts.map +0 -1
- package/dist/chrome/SideNavigation.d.ts +0 -85
- package/dist/chrome/SideNavigation.d.ts.map +0 -1
- package/dist/chrome/Sidebar.d.ts +0 -108
- package/dist/chrome/Sidebar.d.ts.map +0 -1
- package/dist/chrome/StatusBar.d.ts +0 -3
- package/dist/chrome/StatusBar.d.ts.map +0 -1
- package/dist/chrome/Tabs.d.ts +0 -74
- package/dist/chrome/Tabs.d.ts.map +0 -1
- package/dist/chrome/index.d.ts +0 -108
- package/dist/chrome/index.d.ts.map +0 -1
- package/dist/chrome.d.ts +0 -2
- package/dist/config/eslint.config.d.ts +0 -12
- package/dist/config/eslint.config.d.ts.map +0 -1
- package/dist/config/index.d.ts +0 -19
- package/dist/config/index.d.ts.map +0 -1
- package/dist/config/prettier.config.d.ts +0 -7
- package/dist/config/prettier.config.d.ts.map +0 -1
- package/dist/form/Checkbox.d.ts +0 -60
- package/dist/form/Checkbox.d.ts.map +0 -1
- package/dist/form/Form.d.ts +0 -114
- package/dist/form/Form.d.ts.map +0 -1
- package/dist/form/FormDescription.d.ts +0 -33
- package/dist/form/FormDescription.d.ts.map +0 -1
- package/dist/form/FormField.d.ts +0 -96
- package/dist/form/FormField.d.ts.map +0 -1
- package/dist/form/FormLabel.d.ts +0 -41
- package/dist/form/FormLabel.d.ts.map +0 -1
- package/dist/form/FormMessage.d.ts +0 -35
- package/dist/form/FormMessage.d.ts.map +0 -1
- package/dist/form/Input.d.ts +0 -43
- package/dist/form/Input.d.ts.map +0 -1
- package/dist/form/Radio.d.ts +0 -99
- package/dist/form/Radio.d.ts.map +0 -1
- package/dist/form/Select.d.ts +0 -101
- package/dist/form/Select.d.ts.map +0 -1
- package/dist/form/Textarea.d.ts +0 -50
- package/dist/form/Textarea.d.ts.map +0 -1
- package/dist/form/index.d.ts +0 -24
- package/dist/form/index.d.ts.map +0 -1
- package/dist/form.d.ts +0 -2
- package/dist/index.d.ts +0 -2
- package/dist/index.d.ts.map +0 -1
- package/dist/lib/utils.d.ts +0 -3
- package/dist/lib/utils.d.ts.map +0 -1
- package/dist/shared/components/AccessDenied.d.ts +0 -117
- package/dist/shared/components/AccessDenied.d.ts.map +0 -1
- package/dist/shared/components/AppErrorBoundary.d.ts +0 -19
- package/dist/shared/components/AppErrorBoundary.d.ts.map +0 -1
- package/dist/shared/components/ConditionalShell.d.ts +0 -17
- package/dist/shared/components/ConditionalShell.d.ts.map +0 -1
- package/dist/shared/components/ContextConversationWidget.d.ts +0 -6
- package/dist/shared/components/ContextConversationWidget.d.ts.map +0 -1
- package/dist/shared/components/ErrorBoundary.d.ts +0 -19
- package/dist/shared/components/ErrorBoundary.d.ts.map +0 -1
- package/dist/shared/components/ErrorFallback.d.ts +0 -3
- package/dist/shared/components/ErrorFallback.d.ts.map +0 -1
- package/dist/shared/components/KeyboardHelpDialogWrapper.d.ts +0 -7
- package/dist/shared/components/KeyboardHelpDialogWrapper.d.ts.map +0 -1
- package/dist/shared/components/LegalPage.d.ts +0 -19
- package/dist/shared/components/LegalPage.d.ts.map +0 -1
- package/dist/shared/components/LoadingFallback.d.ts +0 -31
- package/dist/shared/components/LoadingFallback.d.ts.map +0 -1
- package/dist/shared/components/MicrofrontendErrorBoundary.d.ts +0 -20
- package/dist/shared/components/MicrofrontendErrorBoundary.d.ts.map +0 -1
- package/dist/shared/components/PWAInstallBanner.d.ts +0 -14
- package/dist/shared/components/PWAInstallBanner.d.ts.map +0 -1
- package/dist/shared/components/PermissionGate.d.ts +0 -202
- package/dist/shared/components/PermissionGate.d.ts.map +0 -1
- package/dist/shared/components/ProductAccessGuard.d.ts +0 -8
- package/dist/shared/components/ProductAccessGuard.d.ts.map +0 -1
- package/dist/shared/components/QuotaMeter.d.ts +0 -30
- package/dist/shared/components/QuotaMeter.d.ts.map +0 -1
- package/dist/shared/components/RequireAuth.d.ts +0 -76
- package/dist/shared/components/RequireAuth.d.ts.map +0 -1
- package/dist/shared/components/SSORedirectGuard.d.ts +0 -49
- package/dist/shared/components/SSORedirectGuard.d.ts.map +0 -1
- package/dist/shared/components/SearchPage.d.ts +0 -24
- package/dist/shared/components/SearchPage.d.ts.map +0 -1
- package/dist/shared/components/index.d.ts +0 -25
- package/dist/shared/components/index.d.ts.map +0 -1
- package/dist/shared/config/authBridgeUrls.d.ts +0 -27
- package/dist/shared/config/authBridgeUrls.d.ts.map +0 -1
- package/dist/shared/config/eslint.config.d.ts +0 -12
- package/dist/shared/config/eslint.config.d.ts.map +0 -1
- package/dist/shared/config/gatewayUrls.d.ts +0 -44
- package/dist/shared/config/gatewayUrls.d.ts.map +0 -1
- package/dist/shared/config/index.d.ts +0 -71
- package/dist/shared/config/index.d.ts.map +0 -1
- package/dist/shared/config/prettier.config.d.ts +0 -7
- package/dist/shared/config/prettier.config.d.ts.map +0 -1
- package/dist/shared/config/products.d.ts +0 -56
- package/dist/shared/config/products.d.ts.map +0 -1
- package/dist/shared/config/shellRoutes.d.ts +0 -52
- package/dist/shared/config/shellRoutes.d.ts.map +0 -1
- package/dist/shared/events/index.d.ts +0 -591
- package/dist/shared/events/index.d.ts.map +0 -1
- package/dist/shared/events/metadata.d.ts +0 -7
- package/dist/shared/events/metadata.d.ts.map +0 -1
- package/dist/shared/events/sinks/BackendAuditSink.d.ts +0 -18
- package/dist/shared/events/sinks/BackendAuditSink.d.ts.map +0 -1
- package/dist/shared/events/sinks/BroadcastChannelSink.d.ts +0 -10
- package/dist/shared/events/sinks/BroadcastChannelSink.d.ts.map +0 -1
- package/dist/shared/events/sinks/DevtoolsSink.d.ts +0 -10
- package/dist/shared/events/sinks/DevtoolsSink.d.ts.map +0 -1
- package/dist/shared/events/sinks/OtelBrowserSink.d.ts +0 -14
- package/dist/shared/events/sinks/OtelBrowserSink.d.ts.map +0 -1
- package/dist/shared/events/sinks/RybbitSink.d.ts +0 -19
- package/dist/shared/events/sinks/RybbitSink.d.ts.map +0 -1
- package/dist/shared/events/sinks/index.d.ts +0 -6
- package/dist/shared/events/sinks/index.d.ts.map +0 -1
- package/dist/shared/feature-flags/FeatureFlagProvider.d.ts +0 -47
- package/dist/shared/feature-flags/FeatureFlagProvider.d.ts.map +0 -1
- package/dist/shared/feature-flags/FeatureGate.d.ts +0 -27
- package/dist/shared/feature-flags/FeatureGate.d.ts.map +0 -1
- package/dist/shared/feature-flags/index.d.ts +0 -38
- package/dist/shared/feature-flags/index.d.ts.map +0 -1
- package/dist/shared/feature-flags/types.d.ts +0 -121
- package/dist/shared/feature-flags/types.d.ts.map +0 -1
- package/dist/shared/feature-flags/useFeatureFlag.d.ts +0 -41
- package/dist/shared/feature-flags/useFeatureFlag.d.ts.map +0 -1
- package/dist/shared/geography/GeographyProvider.d.ts +0 -40
- package/dist/shared/geography/GeographyProvider.d.ts.map +0 -1
- package/dist/shared/geography/countries.d.ts +0 -53
- package/dist/shared/geography/countries.d.ts.map +0 -1
- package/dist/shared/geography/index.d.ts +0 -5
- package/dist/shared/geography/index.d.ts.map +0 -1
- package/dist/shared/graphql/GatewayContext.d.ts +0 -55
- package/dist/shared/graphql/GatewayContext.d.ts.map +0 -1
- package/dist/shared/graphql/client.d.ts +0 -122
- package/dist/shared/graphql/client.d.ts.map +0 -1
- package/dist/shared/graphql/fetch.d.ts +0 -133
- package/dist/shared/graphql/fetch.d.ts.map +0 -1
- package/dist/shared/graphql/index.d.ts +0 -9
- package/dist/shared/graphql/index.d.ts.map +0 -1
- package/dist/shared/graphql/links/sse-link.d.ts +0 -48
- package/dist/shared/graphql/links/sse-link.d.ts.map +0 -1
- package/dist/shared/graphql/security.d.ts +0 -13
- package/dist/shared/graphql/security.d.ts.map +0 -1
- package/dist/shared/graphql/workspaceToken.d.ts +0 -13
- package/dist/shared/graphql/workspaceToken.d.ts.map +0 -1
- package/dist/shared/help/HelpButton.d.ts +0 -25
- package/dist/shared/help/HelpButton.d.ts.map +0 -1
- package/dist/shared/help/HelpPanel.d.ts +0 -10
- package/dist/shared/help/HelpPanel.d.ts.map +0 -1
- package/dist/shared/help/HelpProvider.d.ts +0 -40
- package/dist/shared/help/HelpProvider.d.ts.map +0 -1
- package/dist/shared/help/index.d.ts +0 -53
- package/dist/shared/help/index.d.ts.map +0 -1
- package/dist/shared/help/types.d.ts +0 -159
- package/dist/shared/help/types.d.ts.map +0 -1
- package/dist/shared/hooks/index.d.ts +0 -31
- package/dist/shared/hooks/index.d.ts.map +0 -1
- package/dist/shared/hooks/shell/index.d.ts +0 -22
- package/dist/shared/hooks/shell/index.d.ts.map +0 -1
- package/dist/shared/hooks/shell/useBreadcrumbs.d.ts +0 -50
- package/dist/shared/hooks/shell/useBreadcrumbs.d.ts.map +0 -1
- package/dist/shared/hooks/shell/useFooterRegistry.d.ts +0 -23
- package/dist/shared/hooks/shell/useFooterRegistry.d.ts.map +0 -1
- package/dist/shared/hooks/shell/useGlobalSearch.d.ts +0 -103
- package/dist/shared/hooks/shell/useGlobalSearch.d.ts.map +0 -1
- package/dist/shared/hooks/shell/useLanguages.d.ts +0 -43
- package/dist/shared/hooks/shell/useLanguages.d.ts.map +0 -1
- package/dist/shared/hooks/shell/useNavRegistry.d.ts +0 -25
- package/dist/shared/hooks/shell/useNavRegistry.d.ts.map +0 -1
- package/dist/shared/hooks/shell/useProductAccess.d.ts +0 -37
- package/dist/shared/hooks/shell/useProductAccess.d.ts.map +0 -1
- package/dist/shared/hooks/shell/useProducts.d.ts +0 -30
- package/dist/shared/hooks/shell/useProducts.d.ts.map +0 -1
- package/dist/shared/hooks/useAsync.d.ts +0 -151
- package/dist/shared/hooks/useAsync.d.ts.map +0 -1
- package/dist/shared/hooks/useBreakpoint.d.ts +0 -83
- package/dist/shared/hooks/useBreakpoint.d.ts.map +0 -1
- package/dist/shared/hooks/useCopyToClipboard.d.ts +0 -72
- package/dist/shared/hooks/useCopyToClipboard.d.ts.map +0 -1
- package/dist/shared/hooks/useDebounce.d.ts +0 -26
- package/dist/shared/hooks/useDebounce.d.ts.map +0 -1
- package/dist/shared/hooks/useHasAnimated.d.ts +0 -10
- package/dist/shared/hooks/useHasAnimated.d.ts.map +0 -1
- package/dist/shared/hooks/useKeyPress.d.ts +0 -116
- package/dist/shared/hooks/useKeyPress.d.ts.map +0 -1
- package/dist/shared/hooks/useLocalStorage.d.ts +0 -41
- package/dist/shared/hooks/useLocalStorage.d.ts.map +0 -1
- package/dist/shared/hooks/useMediaQuery.d.ts +0 -35
- package/dist/shared/hooks/useMediaQuery.d.ts.map +0 -1
- package/dist/shared/hooks/useOnClickOutside.d.ts +0 -76
- package/dist/shared/hooks/useOnClickOutside.d.ts.map +0 -1
- package/dist/shared/hooks/usePWA.d.ts +0 -57
- package/dist/shared/hooks/usePWA.d.ts.map +0 -1
- package/dist/shared/hooks/usePrevious.d.ts +0 -157
- package/dist/shared/hooks/usePrevious.d.ts.map +0 -1
- package/dist/shared/hooks/useQuotaErrorToast.d.ts +0 -50
- package/dist/shared/hooks/useQuotaErrorToast.d.ts.map +0 -1
- package/dist/shared/hooks/useRecordProductVisit.d.ts +0 -11
- package/dist/shared/hooks/useRecordProductVisit.d.ts.map +0 -1
- package/dist/shared/hooks/useReferralAttribution.d.ts +0 -2
- package/dist/shared/hooks/useReferralAttribution.d.ts.map +0 -1
- package/dist/shared/hooks/useSessionStorage.d.ts +0 -44
- package/dist/shared/hooks/useSessionStorage.d.ts.map +0 -1
- package/dist/shared/hooks/useThrottle.d.ts +0 -37
- package/dist/shared/hooks/useThrottle.d.ts.map +0 -1
- package/dist/shared/hooks/useToggle.d.ts +0 -152
- package/dist/shared/hooks/useToggle.d.ts.map +0 -1
- package/dist/shared/index.d.ts +0 -13
- package/dist/shared/index.d.ts.map +0 -1
- package/dist/shared/keyboard/globalShortcuts.d.ts +0 -58
- package/dist/shared/keyboard/globalShortcuts.d.ts.map +0 -1
- package/dist/shared/keyboard/index.d.ts +0 -40
- package/dist/shared/keyboard/index.d.ts.map +0 -1
- package/dist/shared/keyboard/types.d.ts +0 -85
- package/dist/shared/keyboard/types.d.ts.map +0 -1
- package/dist/shared/keyboard/useHotkeys.d.ts +0 -21
- package/dist/shared/keyboard/useHotkeys.d.ts.map +0 -1
- package/dist/shared/keyboard/useKeyboardShortcuts.d.ts +0 -94
- package/dist/shared/keyboard/useKeyboardShortcuts.d.ts.map +0 -1
- package/dist/shared/keyboard/useShortcutHelp.d.ts +0 -27
- package/dist/shared/keyboard/useShortcutHelp.d.ts.map +0 -1
- package/dist/shared/keyboard/utils.d.ts +0 -72
- package/dist/shared/keyboard/utils.d.ts.map +0 -1
- package/dist/shared/logger/ConsoleTransport.d.ts +0 -22
- package/dist/shared/logger/ConsoleTransport.d.ts.map +0 -1
- package/dist/shared/logger/LogManager.d.ts +0 -75
- package/dist/shared/logger/LogManager.d.ts.map +0 -1
- package/dist/shared/logger/Logger.d.ts +0 -86
- package/dist/shared/logger/Logger.d.ts.map +0 -1
- package/dist/shared/logger/index.d.ts +0 -42
- package/dist/shared/logger/index.d.ts.map +0 -1
- package/dist/shared/logger/types.d.ts +0 -70
- package/dist/shared/logger/types.d.ts.map +0 -1
- package/dist/shared/logger/useLogger.d.ts +0 -29
- package/dist/shared/logger/useLogger.d.ts.map +0 -1
- package/dist/shared/motion/AnimatedCounter.d.ts +0 -16
- package/dist/shared/motion/AnimatedCounter.d.ts.map +0 -1
- package/dist/shared/motion/MotionCard.d.ts +0 -18
- package/dist/shared/motion/MotionCard.d.ts.map +0 -1
- package/dist/shared/motion/MotionCollapse.d.ts +0 -14
- package/dist/shared/motion/MotionCollapse.d.ts.map +0 -1
- package/dist/shared/motion/MotionFade.d.ts +0 -16
- package/dist/shared/motion/MotionFade.d.ts.map +0 -1
- package/dist/shared/motion/MotionItem.d.ts +0 -25
- package/dist/shared/motion/MotionItem.d.ts.map +0 -1
- package/dist/shared/motion/MotionList.d.ts +0 -28
- package/dist/shared/motion/MotionList.d.ts.map +0 -1
- package/dist/shared/motion/MotionPage.d.ts +0 -18
- package/dist/shared/motion/MotionPage.d.ts.map +0 -1
- package/dist/shared/motion/index.d.ts +0 -9
- package/dist/shared/motion/index.d.ts.map +0 -1
- package/dist/shared/motion/variants.d.ts +0 -70
- package/dist/shared/motion/variants.d.ts.map +0 -1
- package/dist/shared/native/bridge.d.ts +0 -3
- package/dist/shared/native/bridge.d.ts.map +0 -1
- package/dist/shared/native/consumers.d.ts +0 -9
- package/dist/shared/native/consumers.d.ts.map +0 -1
- package/dist/shared/native/hooks/index.d.ts +0 -12
- package/dist/shared/native/hooks/index.d.ts.map +0 -1
- package/dist/shared/native/hooks/useAppState.d.ts +0 -3
- package/dist/shared/native/hooks/useAppState.d.ts.map +0 -1
- package/dist/shared/native/hooks/useDeviceInfo.d.ts +0 -3
- package/dist/shared/native/hooks/useDeviceInfo.d.ts.map +0 -1
- package/dist/shared/native/hooks/useHaptics.d.ts +0 -8
- package/dist/shared/native/hooks/useHaptics.d.ts.map +0 -1
- package/dist/shared/native/hooks/useNativeKeyboard.d.ts +0 -6
- package/dist/shared/native/hooks/useNativeKeyboard.d.ts.map +0 -1
- package/dist/shared/native/hooks/useNativePlatform.d.ts +0 -10
- package/dist/shared/native/hooks/useNativePlatform.d.ts.map +0 -1
- package/dist/shared/native/hooks/useSafeArea.d.ts +0 -3
- package/dist/shared/native/hooks/useSafeArea.d.ts.map +0 -1
- package/dist/shared/native/hooks/useStatusBar.d.ts +0 -6
- package/dist/shared/native/hooks/useStatusBar.d.ts.map +0 -1
- package/dist/shared/native/index.d.ts +0 -6
- package/dist/shared/native/index.d.ts.map +0 -1
- package/dist/shared/native/platform.d.ts +0 -7
- package/dist/shared/native/platform.d.ts.map +0 -1
- package/dist/shared/native/types.d.ts +0 -62
- package/dist/shared/native/types.d.ts.map +0 -1
- package/dist/shared/pages/AiPage.d.ts +0 -14
- package/dist/shared/pages/AiPage.d.ts.map +0 -1
- package/dist/shared/pages/LegalPage.d.ts +0 -19
- package/dist/shared/pages/LegalPage.d.ts.map +0 -1
- package/dist/shared/pages/SearchPage.d.ts +0 -28
- package/dist/shared/pages/SearchPage.d.ts.map +0 -1
- package/dist/shared/pages/index.d.ts +0 -7
- package/dist/shared/pages/index.d.ts.map +0 -1
- package/dist/shared/plugins/PluginRuntimeProvider.d.ts +0 -28
- package/dist/shared/plugins/PluginRuntimeProvider.d.ts.map +0 -1
- package/dist/shared/plugins/context.d.ts +0 -65
- package/dist/shared/plugins/context.d.ts.map +0 -1
- package/dist/shared/plugins/disposable.d.ts +0 -17
- package/dist/shared/plugins/disposable.d.ts.map +0 -1
- package/dist/shared/plugins/event-bus.d.ts +0 -112
- package/dist/shared/plugins/event-bus.d.ts.map +0 -1
- package/dist/shared/plugins/iframe-mount/PluginIframe.d.ts +0 -75
- package/dist/shared/plugins/iframe-mount/PluginIframe.d.ts.map +0 -1
- package/dist/shared/plugins/iframe-mount/PluginMount.d.ts +0 -59
- package/dist/shared/plugins/iframe-mount/PluginMount.d.ts.map +0 -1
- package/dist/shared/plugins/iframe-mount/client/index.d.ts +0 -3
- package/dist/shared/plugins/iframe-mount/client/index.d.ts.map +0 -1
- package/dist/shared/plugins/iframe-mount/client/message-bus.d.ts +0 -71
- package/dist/shared/plugins/iframe-mount/client/message-bus.d.ts.map +0 -1
- package/dist/shared/plugins/iframe-mount/client/rpc.d.ts +0 -25
- package/dist/shared/plugins/iframe-mount/client/rpc.d.ts.map +0 -1
- package/dist/shared/plugins/iframe-mount/index.d.ts +0 -6
- package/dist/shared/plugins/iframe-mount/index.d.ts.map +0 -1
- package/dist/shared/plugins/iframe-mount/protocol/contribution.d.ts +0 -83
- package/dist/shared/plugins/iframe-mount/protocol/contribution.d.ts.map +0 -1
- package/dist/shared/plugins/iframe-mount/protocol/envelope.d.ts +0 -136
- package/dist/shared/plugins/iframe-mount/protocol/envelope.d.ts.map +0 -1
- package/dist/shared/plugins/iframe-mount/protocol/index.d.ts +0 -3
- package/dist/shared/plugins/iframe-mount/protocol/index.d.ts.map +0 -1
- package/dist/shared/plugins/iframe-mount/sandbox.d.ts +0 -3
- package/dist/shared/plugins/iframe-mount/sandbox.d.ts.map +0 -1
- package/dist/shared/plugins/iframe-mount/types.d.ts +0 -64
- package/dist/shared/plugins/iframe-mount/types.d.ts.map +0 -1
- package/dist/shared/plugins/iframe-mount/useFetchContributions.d.ts +0 -31
- package/dist/shared/plugins/iframe-mount/useFetchContributions.d.ts.map +0 -1
- package/dist/shared/plugins/index.d.ts +0 -41
- package/dist/shared/plugins/index.d.ts.map +0 -1
- package/dist/shared/plugins/panels/usePanelManagerStore.d.ts +0 -68
- package/dist/shared/plugins/panels/usePanelManagerStore.d.ts.map +0 -1
- package/dist/shared/plugins/registries/createContributionRegistry.d.ts +0 -16
- package/dist/shared/plugins/registries/createContributionRegistry.d.ts.map +0 -1
- package/dist/shared/plugins/registries/index.d.ts +0 -15
- package/dist/shared/plugins/registries/index.d.ts.map +0 -1
- package/dist/shared/plugins/registries/useCommandRegistry.d.ts +0 -3
- package/dist/shared/plugins/registries/useCommandRegistry.d.ts.map +0 -1
- package/dist/shared/plugins/registries/useContextMenuRegistry.d.ts +0 -3
- package/dist/shared/plugins/registries/useContextMenuRegistry.d.ts.map +0 -1
- package/dist/shared/plugins/registries/usePanelRegistry.d.ts +0 -3
- package/dist/shared/plugins/registries/usePanelRegistry.d.ts.map +0 -1
- package/dist/shared/plugins/registries/useRouteRegistry.d.ts +0 -3
- package/dist/shared/plugins/registries/useRouteRegistry.d.ts.map +0 -1
- package/dist/shared/plugins/registries/useSettingsRegistry.d.ts +0 -3
- package/dist/shared/plugins/registries/useSettingsRegistry.d.ts.map +0 -1
- package/dist/shared/plugins/registries/useStatusBarRegistry.d.ts +0 -3
- package/dist/shared/plugins/registries/useStatusBarRegistry.d.ts.map +0 -1
- package/dist/shared/plugins/registries/useToolbarRegistry.d.ts +0 -3
- package/dist/shared/plugins/registries/useToolbarRegistry.d.ts.map +0 -1
- package/dist/shared/plugins/registries/useWidgetRegistry.d.ts +0 -3
- package/dist/shared/plugins/registries/useWidgetRegistry.d.ts.map +0 -1
- package/dist/shared/plugins/runtime.d.ts +0 -68
- package/dist/shared/plugins/runtime.d.ts.map +0 -1
- package/dist/shared/plugins/types.d.ts +0 -228
- package/dist/shared/plugins/types.d.ts.map +0 -1
- package/dist/shared/providers/AppShellProvider.d.ts +0 -96
- package/dist/shared/providers/AppShellProvider.d.ts.map +0 -1
- package/dist/shared/providers/MicrofrontendProvider.d.ts +0 -41
- package/dist/shared/providers/MicrofrontendProvider.d.ts.map +0 -1
- package/dist/shared/providers/index.d.ts +0 -12
- package/dist/shared/providers/index.d.ts.map +0 -1
- package/dist/shared/providers/shell/ActiveContextProvider.d.ts +0 -88
- package/dist/shared/providers/shell/ActiveContextProvider.d.ts.map +0 -1
- package/dist/shared/providers/shell/ActiveContextStorage.d.ts +0 -45
- package/dist/shared/providers/shell/ActiveContextStorage.d.ts.map +0 -1
- package/dist/shared/providers/shell/AppShellContext.d.ts +0 -19
- package/dist/shared/providers/shell/AppShellContext.d.ts.map +0 -1
- package/dist/shared/providers/shell/AuthBridgeClient.d.ts +0 -121
- package/dist/shared/providers/shell/AuthBridgeClient.d.ts.map +0 -1
- package/dist/shared/providers/shell/AuthProvider.d.ts +0 -58
- package/dist/shared/providers/shell/AuthProvider.d.ts.map +0 -1
- package/dist/shared/providers/shell/AuthTokenProvider.d.ts +0 -22
- package/dist/shared/providers/shell/AuthTokenProvider.d.ts.map +0 -1
- package/dist/shared/providers/shell/ContextManagerProvider.d.ts +0 -56
- package/dist/shared/providers/shell/ContextManagerProvider.d.ts.map +0 -1
- package/dist/shared/providers/shell/FeatureFlagsProvider.d.ts +0 -20
- package/dist/shared/providers/shell/FeatureFlagsProvider.d.ts.map +0 -1
- package/dist/shared/providers/shell/GatewayRouter.d.ts +0 -31
- package/dist/shared/providers/shell/GatewayRouter.d.ts.map +0 -1
- package/dist/shared/providers/shell/GlobalUiProvider.d.ts +0 -46
- package/dist/shared/providers/shell/GlobalUiProvider.d.ts.map +0 -1
- package/dist/shared/providers/shell/I18nProvider.d.ts +0 -65
- package/dist/shared/providers/shell/I18nProvider.d.ts.map +0 -1
- package/dist/shared/providers/shell/MultiGatewayProvider.d.ts +0 -25
- package/dist/shared/providers/shell/MultiGatewayProvider.d.ts.map +0 -1
- package/dist/shared/providers/shell/ObservabilityProvider.d.ts +0 -15
- package/dist/shared/providers/shell/ObservabilityProvider.d.ts.map +0 -1
- package/dist/shared/providers/shell/PageConversationContextProvider.d.ts +0 -22
- package/dist/shared/providers/shell/PageConversationContextProvider.d.ts.map +0 -1
- package/dist/shared/providers/shell/PermissionProvider.d.ts +0 -227
- package/dist/shared/providers/shell/PermissionProvider.d.ts.map +0 -1
- package/dist/shared/providers/shell/ProfileGeographyBridge.d.ts +0 -8
- package/dist/shared/providers/shell/ProfileGeographyBridge.d.ts.map +0 -1
- package/dist/shared/providers/shell/ProfileI18nBridge.d.ts +0 -15
- package/dist/shared/providers/shell/ProfileI18nBridge.d.ts.map +0 -1
- package/dist/shared/providers/shell/ProfileStorageManager.d.ts +0 -107
- package/dist/shared/providers/shell/ProfileStorageManager.d.ts.map +0 -1
- package/dist/shared/providers/shell/ShellUiProvider.d.ts +0 -47
- package/dist/shared/providers/shell/ShellUiProvider.d.ts.map +0 -1
- package/dist/shared/providers/shell/ThemeProvider.d.ts +0 -29
- package/dist/shared/providers/shell/ThemeProvider.d.ts.map +0 -1
- package/dist/shared/providers/shell/index.d.ts +0 -45
- package/dist/shared/providers/shell/index.d.ts.map +0 -1
- package/dist/shared/shims/assert.d.ts +0 -19
- package/dist/shared/shims/assert.d.ts.map +0 -1
- package/dist/shared/shims/index.d.ts +0 -25
- package/dist/shared/shims/index.d.ts.map +0 -1
- package/dist/shared/shims/process.d.ts +0 -20
- package/dist/shared/shims/process.d.ts.map +0 -1
- package/dist/shared/shims/use-sync-external-store-shim.d.ts +0 -7
- package/dist/shared/shims/use-sync-external-store-shim.d.ts.map +0 -1
- package/dist/shared/shims/use-sync-external-store-with-selector.d.ts +0 -17
- package/dist/shared/shims/use-sync-external-store-with-selector.d.ts.map +0 -1
- package/dist/shared/shims/util.d.ts +0 -135
- package/dist/shared/shims/util.d.ts.map +0 -1
- package/dist/shared/tours/TourInitializer.d.ts +0 -6
- package/dist/shared/tours/TourInitializer.d.ts.map +0 -1
- package/dist/shared/tours/TourPlayer.d.ts +0 -49
- package/dist/shared/tours/TourPlayer.d.ts.map +0 -1
- package/dist/shared/tours/TourPlayerProvider.d.ts +0 -26
- package/dist/shared/tours/TourPlayerProvider.d.ts.map +0 -1
- package/dist/shared/tours/TourSpotlight.d.ts +0 -8
- package/dist/shared/tours/TourSpotlight.d.ts.map +0 -1
- package/dist/shared/tours/TourTooltip.d.ts +0 -7
- package/dist/shared/tours/TourTooltip.d.ts.map +0 -1
- package/dist/shared/tours/TourTrigger.d.ts +0 -15
- package/dist/shared/tours/TourTrigger.d.ts.map +0 -1
- package/dist/shared/tours/ToursContext.d.ts +0 -42
- package/dist/shared/tours/ToursContext.d.ts.map +0 -1
- package/dist/shared/tours/index.d.ts +0 -53
- package/dist/shared/tours/index.d.ts.map +0 -1
- package/dist/shared/tours/progress.d.ts +0 -7
- package/dist/shared/tours/progress.d.ts.map +0 -1
- package/dist/shared/tours/routeCatalog.d.ts +0 -42
- package/dist/shared/tours/routeCatalog.d.ts.map +0 -1
- package/dist/shared/tours/types.d.ts +0 -215
- package/dist/shared/tours/types.d.ts.map +0 -1
- package/dist/shared/tours/useTourPlayer.d.ts +0 -38
- package/dist/shared/tours/useTourPlayer.d.ts.map +0 -1
- package/dist/shared/types/index.d.ts +0 -185
- package/dist/shared/types/index.d.ts.map +0 -1
- package/dist/shared/utils/apollo.d.ts +0 -26
- package/dist/shared/utils/apollo.d.ts.map +0 -1
- package/dist/shared/utils/appHelpers.d.ts +0 -34
- package/dist/shared/utils/appHelpers.d.ts.map +0 -1
- package/dist/shared/utils/authCookie.d.ts +0 -35
- package/dist/shared/utils/authCookie.d.ts.map +0 -1
- package/dist/shared/utils/authErrorHandling.d.ts +0 -65
- package/dist/shared/utils/authErrorHandling.d.ts.map +0 -1
- package/dist/shared/utils/cn.d.ts +0 -6
- package/dist/shared/utils/cn.d.ts.map +0 -1
- package/dist/shared/utils/format.d.ts +0 -98
- package/dist/shared/utils/format.d.ts.map +0 -1
- package/dist/shared/utils/gatewayFetchRewrite.d.ts +0 -53
- package/dist/shared/utils/gatewayFetchRewrite.d.ts.map +0 -1
- package/dist/shared/utils/index.d.ts +0 -26
- package/dist/shared/utils/index.d.ts.map +0 -1
- package/dist/shared/utils/lazyWithRetry.d.ts +0 -43
- package/dist/shared/utils/lazyWithRetry.d.ts.map +0 -1
- package/dist/shared/utils/loggerInit.d.ts +0 -15
- package/dist/shared/utils/loggerInit.d.ts.map +0 -1
- package/dist/shared/utils/mockData.d.ts +0 -40
- package/dist/shared/utils/mockData.d.ts.map +0 -1
- package/dist/shared/utils/profileScopedStorage.d.ts +0 -42
- package/dist/shared/utils/profileScopedStorage.d.ts.map +0 -1
- package/dist/shared/utils/quotaErrors.d.ts +0 -37
- package/dist/shared/utils/quotaErrors.d.ts.map +0 -1
- package/dist/shared/utils/tokens.d.ts +0 -166
- package/dist/shared/utils/tokens.d.ts.map +0 -1
- package/dist/shared-components.d.ts +0 -2
- package/dist/shared-config.d.ts +0 -2
- package/dist/shared-events.d.ts +0 -2
- package/dist/shared-feature-flags.d.ts +0 -2
- package/dist/shared-geography.d.ts +0 -2
- package/dist/shared-graphql.d.ts +0 -2
- package/dist/shared-hooks-shell.d.ts +0 -2
- package/dist/shared-hooks.d.ts +0 -2
- package/dist/shared-keyboard.d.ts +0 -2
- package/dist/shared-logger.d.ts +0 -2
- package/dist/shared-motion.d.ts +0 -2
- package/dist/shared-native.d.ts +0 -2
- package/dist/shared-pages.d.ts +0 -2
- package/dist/shared-plugins.d.ts +0 -2
- package/dist/shared-providers-shell.d.ts +0 -2
- package/dist/shared-providers.d.ts +0 -2
- package/dist/shared-shims.d.ts +0 -2
- package/dist/shared-tours.d.ts +0 -2
- package/dist/shared-types.d.ts +0 -1
- package/dist/shared-utils.d.ts +0 -2
- package/dist/shared.d.ts +0 -2
- package/dist/storage/SaveToFilesButton.d.ts +0 -55
- package/dist/storage/SaveToFilesButton.d.ts.map +0 -1
- package/dist/storage/SaveToFilesDialog.d.ts +0 -13
- package/dist/storage/SaveToFilesDialog.d.ts.map +0 -1
- package/dist/storage/StorageFolderPicker.d.ts +0 -23
- package/dist/storage/StorageFolderPicker.d.ts.map +0 -1
- package/dist/storage/index.d.ts +0 -10
- package/dist/storage/index.d.ts.map +0 -1
- package/dist/storage/uploadBlob.d.ts +0 -21
- package/dist/storage/uploadBlob.d.ts.map +0 -1
- package/dist/storage/useSaveToFiles.d.ts +0 -17
- package/dist/storage/useSaveToFiles.d.ts.map +0 -1
- package/dist/tag/TagBadge.d.ts +0 -17
- package/dist/tag/TagBadge.d.ts.map +0 -1
- package/dist/tag/TagsWidget.d.ts +0 -103
- package/dist/tag/TagsWidget.d.ts.map +0 -1
- package/dist/tag/index.d.ts +0 -3
- package/dist/tag/index.d.ts.map +0 -1
- package/dist/tag.d.ts +0 -2
- package/dist/ui/accordion.d.ts +0 -8
- package/dist/ui/accordion.d.ts.map +0 -1
- package/dist/ui/alert-dialog.d.ts +0 -15
- package/dist/ui/alert-dialog.d.ts.map +0 -1
- package/dist/ui/badge.d.ts +0 -10
- package/dist/ui/badge.d.ts.map +0 -1
- package/dist/ui/button.d.ts +0 -12
- package/dist/ui/button.d.ts.map +0 -1
- package/dist/ui/card.d.ts +0 -9
- package/dist/ui/card.d.ts.map +0 -1
- package/dist/ui/checkbox.d.ts +0 -5
- package/dist/ui/checkbox.d.ts.map +0 -1
- package/dist/ui/command.d.ts +0 -19
- package/dist/ui/command.d.ts.map +0 -1
- package/dist/ui/dialog.d.ts +0 -16
- package/dist/ui/dialog.d.ts.map +0 -1
- package/dist/ui/dropdown-menu.d.ts +0 -28
- package/dist/ui/dropdown-menu.d.ts.map +0 -1
- package/dist/ui/index.d.ts +0 -25
- package/dist/ui/index.d.ts.map +0 -1
- package/dist/ui/input.d.ts +0 -5
- package/dist/ui/input.d.ts.map +0 -1
- package/dist/ui/label.d.ts +0 -5
- package/dist/ui/label.d.ts.map +0 -1
- package/dist/ui/popover.d.ts +0 -8
- package/dist/ui/popover.d.ts.map +0 -1
- package/dist/ui/scroll-area.d.ts +0 -6
- package/dist/ui/scroll-area.d.ts.map +0 -1
- package/dist/ui/select.d.ts +0 -13
- package/dist/ui/select.d.ts.map +0 -1
- package/dist/ui/separator.d.ts +0 -5
- package/dist/ui/separator.d.ts.map +0 -1
- package/dist/ui/sheet.d.ts +0 -14
- package/dist/ui/sheet.d.ts.map +0 -1
- package/dist/ui/skeleton.d.ts +0 -4
- package/dist/ui/skeleton.d.ts.map +0 -1
- package/dist/ui/sonner.d.ts +0 -4
- package/dist/ui/sonner.d.ts.map +0 -1
- package/dist/ui/spinner.d.ts +0 -6
- package/dist/ui/spinner.d.ts.map +0 -1
- package/dist/ui/switch.d.ts +0 -5
- package/dist/ui/switch.d.ts.map +0 -1
- package/dist/ui/table.d.ts +0 -11
- package/dist/ui/table.d.ts.map +0 -1
- package/dist/ui/tabs.d.ts +0 -8
- package/dist/ui/tabs.d.ts.map +0 -1
- package/dist/ui/textarea.d.ts +0 -5
- package/dist/ui/textarea.d.ts.map +0 -1
- package/dist/ui/tooltip.d.ts +0 -7
- package/dist/ui/tooltip.d.ts.map +0 -1
- package/dist/ui.d.ts +0 -2
- package/dist/utils/cn.d.ts +0 -15
- package/dist/utils/cn.d.ts.map +0 -1
- package/dist/utils/index.d.ts +0 -3
- package/dist/utils/index.d.ts.map +0 -1
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
interface PWAState {
|
|
2
|
-
/** Whether the app can be installed */
|
|
3
|
-
canInstall: boolean;
|
|
4
|
-
/** Whether the app is already installed */
|
|
5
|
-
isInstalled: boolean;
|
|
6
|
-
/** Whether the app is running in standalone mode (installed PWA) */
|
|
7
|
-
isStandalone: boolean;
|
|
8
|
-
/** Whether the service worker is registered */
|
|
9
|
-
isServiceWorkerReady: boolean;
|
|
10
|
-
/** Whether there's a new version available */
|
|
11
|
-
hasUpdate: boolean;
|
|
12
|
-
}
|
|
13
|
-
interface UsePWAReturn extends PWAState {
|
|
14
|
-
/** Trigger the install prompt */
|
|
15
|
-
install: () => Promise<boolean>;
|
|
16
|
-
/** Update the service worker */
|
|
17
|
-
update: () => void;
|
|
18
|
-
/** Dismiss the install prompt */
|
|
19
|
-
dismissInstall: () => void;
|
|
20
|
-
}
|
|
21
|
-
interface UsePWAOptions {
|
|
22
|
-
/**
|
|
23
|
-
* Auto-activate a waiting service worker and reload the page so users
|
|
24
|
-
* always run the latest deployed code. Defaults to true.
|
|
25
|
-
*/
|
|
26
|
-
autoUpdate?: boolean;
|
|
27
|
-
/**
|
|
28
|
-
* How often (ms) to poll the SW registration for an updated worker.
|
|
29
|
-
* Defaults to 60_000 (1 minute). Set to 0 to disable polling.
|
|
30
|
-
*/
|
|
31
|
-
updateCheckIntervalMs?: number;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* usePWA Hook
|
|
35
|
-
*
|
|
36
|
-
* Manages PWA installation state and service worker updates.
|
|
37
|
-
*
|
|
38
|
-
* @example
|
|
39
|
-
* ```tsx
|
|
40
|
-
* function InstallBanner() {
|
|
41
|
-
* const { canInstall, isInstalled, install, dismissInstall } = usePWA();
|
|
42
|
-
*
|
|
43
|
-
* if (!canInstall || isInstalled) return null;
|
|
44
|
-
*
|
|
45
|
-
* return (
|
|
46
|
-
* <div className="install-banner">
|
|
47
|
-
* <p>Install for a better experience!</p>
|
|
48
|
-
* <button onClick={install}>Install</button>
|
|
49
|
-
* <button onClick={dismissInstall}>Not now</button>
|
|
50
|
-
* </div>
|
|
51
|
-
* );
|
|
52
|
-
* }
|
|
53
|
-
* ```
|
|
54
|
-
*/
|
|
55
|
-
export declare function usePWA(options?: UsePWAOptions): UsePWAReturn;
|
|
56
|
-
export {};
|
|
57
|
-
//# sourceMappingURL=usePWA.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"usePWA.d.ts","sourceRoot":"","sources":["../../../src/shared/hooks/usePWA.ts"],"names":[],"mappings":"AAWA,UAAU,QAAQ;IAChB,uCAAuC;IACvC,UAAU,EAAE,OAAO,CAAC;IACpB,2CAA2C;IAC3C,WAAW,EAAE,OAAO,CAAC;IACrB,oEAAoE;IACpE,YAAY,EAAE,OAAO,CAAC;IACtB,+CAA+C;IAC/C,oBAAoB,EAAE,OAAO,CAAC;IAC9B,8CAA8C;IAC9C,SAAS,EAAE,OAAO,CAAC;CACpB;AAED,UAAU,YAAa,SAAQ,QAAQ;IACrC,iCAAiC;IACjC,OAAO,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC;IAChC,gCAAgC;IAChC,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,iCAAiC;IACjC,cAAc,EAAE,MAAM,IAAI,CAAC;CAC5B;AAED,UAAU,aAAa;IACrB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,MAAM,CAAC,OAAO,GAAE,aAAkB,GAAG,YAAY,CAqLhE"}
|
|
@@ -1,157 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Tracks the previous value of a state or prop.
|
|
3
|
-
* Returns undefined on the first render, then returns the previous value on subsequent renders.
|
|
4
|
-
*
|
|
5
|
-
* @template T - The type of the value being tracked
|
|
6
|
-
* @param value - The current value to track
|
|
7
|
-
* @returns The previous value, or undefined on first render
|
|
8
|
-
*
|
|
9
|
-
* @example
|
|
10
|
-
* ```tsx
|
|
11
|
-
* function Counter() {
|
|
12
|
-
* const [count, setCount] = useState(0);
|
|
13
|
-
* const prevCount = usePrevious(count);
|
|
14
|
-
*
|
|
15
|
-
* return (
|
|
16
|
-
* <div>
|
|
17
|
-
* <p>Current count: {count}</p>
|
|
18
|
-
* <p>Previous count: {prevCount ?? 'N/A'}</p>
|
|
19
|
-
* <button onClick={() => setCount(count + 1)}>Increment</button>
|
|
20
|
-
* </div>
|
|
21
|
-
* );
|
|
22
|
-
* }
|
|
23
|
-
* ```
|
|
24
|
-
*
|
|
25
|
-
* @example
|
|
26
|
-
* ```tsx
|
|
27
|
-
* function SearchResults({ query }: { query: string }) {
|
|
28
|
-
* const prevQuery = usePrevious(query);
|
|
29
|
-
* const [results, setResults] = useState([]);
|
|
30
|
-
*
|
|
31
|
-
* useEffect(() => {
|
|
32
|
-
* if (query !== prevQuery) {
|
|
33
|
-
* console.log(`Query changed from "${prevQuery}" to "${query}"`);
|
|
34
|
-
* fetchResults(query).then(setResults);
|
|
35
|
-
* }
|
|
36
|
-
* }, [query, prevQuery]);
|
|
37
|
-
*
|
|
38
|
-
* return <ResultsList results={results} />;
|
|
39
|
-
* }
|
|
40
|
-
* ```
|
|
41
|
-
*
|
|
42
|
-
* @example
|
|
43
|
-
* ```tsx
|
|
44
|
-
* function Animation({ isVisible }: { isVisible: boolean }) {
|
|
45
|
-
* const wasVisible = usePrevious(isVisible);
|
|
46
|
-
*
|
|
47
|
-
* const animationClass = useMemo(() => {
|
|
48
|
-
* if (isVisible && !wasVisible) return 'fade-in';
|
|
49
|
-
* if (!isVisible && wasVisible) return 'fade-out';
|
|
50
|
-
* return '';
|
|
51
|
-
* }, [isVisible, wasVisible]);
|
|
52
|
-
*
|
|
53
|
-
* return <div className={animationClass}>Content</div>;
|
|
54
|
-
* }
|
|
55
|
-
* ```
|
|
56
|
-
*/
|
|
57
|
-
export declare function usePrevious<T>(value: T): T | undefined;
|
|
58
|
-
/**
|
|
59
|
-
* Tracks the previous value with a custom comparison function.
|
|
60
|
-
* Only updates the previous value when the comparison function returns false.
|
|
61
|
-
*
|
|
62
|
-
* @template T - The type of the value being tracked
|
|
63
|
-
* @param value - The current value to track
|
|
64
|
-
* @param compare - Function that returns true if values should be considered equal
|
|
65
|
-
* @returns The previous distinct value
|
|
66
|
-
*
|
|
67
|
-
* @example
|
|
68
|
-
* ```tsx
|
|
69
|
-
* function UserProfile({ user }: { user: User }) {
|
|
70
|
-
* // Only update previous user when the ID changes
|
|
71
|
-
* const prevUser = usePreviousDistinct(
|
|
72
|
-
* user,
|
|
73
|
-
* (prev, next) => prev?.id === next?.id
|
|
74
|
-
* );
|
|
75
|
-
*
|
|
76
|
-
* useEffect(() => {
|
|
77
|
-
* if (prevUser && prevUser.id !== user.id) {
|
|
78
|
-
* console.log(`User changed from ${prevUser.name} to ${user.name}`);
|
|
79
|
-
* }
|
|
80
|
-
* }, [user, prevUser]);
|
|
81
|
-
*
|
|
82
|
-
* return <div>{user.name}</div>;
|
|
83
|
-
* }
|
|
84
|
-
* ```
|
|
85
|
-
*
|
|
86
|
-
* @example
|
|
87
|
-
* ```tsx
|
|
88
|
-
* function ArrayComponent({ items }: { items: string[] }) {
|
|
89
|
-
* // Only track when array length changes
|
|
90
|
-
* const prevItems = usePreviousDistinct(
|
|
91
|
-
* items,
|
|
92
|
-
* (prev, next) => prev?.length === next?.length
|
|
93
|
-
* );
|
|
94
|
-
*
|
|
95
|
-
* if (prevItems && prevItems.length !== items.length) {
|
|
96
|
-
* console.log(`Array length changed from ${prevItems.length} to ${items.length}`);
|
|
97
|
-
* }
|
|
98
|
-
*
|
|
99
|
-
* return <ul>{items.map(item => <li key={item}>{item}</li>)}</ul>;
|
|
100
|
-
* }
|
|
101
|
-
* ```
|
|
102
|
-
*/
|
|
103
|
-
export declare function usePreviousDistinct<T>(value: T, compare: (prev: T | undefined, next: T) => boolean): T | undefined;
|
|
104
|
-
/**
|
|
105
|
-
* Tracks multiple previous values in a history array.
|
|
106
|
-
* Useful for implementing undo/redo or tracking value changes over time.
|
|
107
|
-
*
|
|
108
|
-
* @template T - The type of the value being tracked
|
|
109
|
-
* @param value - The current value to track
|
|
110
|
-
* @param maxHistory - Maximum number of previous values to keep (default: 10)
|
|
111
|
-
* @returns Array of previous values, most recent first
|
|
112
|
-
*
|
|
113
|
-
* @example
|
|
114
|
-
* ```tsx
|
|
115
|
-
* function DrawingCanvas() {
|
|
116
|
-
* const [drawing, setDrawing] = useState<Point[]>([]);
|
|
117
|
-
* const history = usePreviousHistory(drawing, 20);
|
|
118
|
-
*
|
|
119
|
-
* const undo = () => {
|
|
120
|
-
* if (history.length > 0) {
|
|
121
|
-
* setDrawing(history[0]);
|
|
122
|
-
* }
|
|
123
|
-
* };
|
|
124
|
-
*
|
|
125
|
-
* return (
|
|
126
|
-
* <div>
|
|
127
|
-
* <Canvas points={drawing} />
|
|
128
|
-
* <button onClick={undo} disabled={history.length === 0}>
|
|
129
|
-
* Undo ({history.length})
|
|
130
|
-
* </button>
|
|
131
|
-
* </div>
|
|
132
|
-
* );
|
|
133
|
-
* }
|
|
134
|
-
* ```
|
|
135
|
-
*
|
|
136
|
-
* @example
|
|
137
|
-
* ```tsx
|
|
138
|
-
* function TextEditor() {
|
|
139
|
-
* const [text, setText] = useState('');
|
|
140
|
-
* const history = usePreviousHistory(text, 50);
|
|
141
|
-
*
|
|
142
|
-
* const showHistory = () => {
|
|
143
|
-
* console.log('Recent changes:', history);
|
|
144
|
-
* };
|
|
145
|
-
*
|
|
146
|
-
* return (
|
|
147
|
-
* <div>
|
|
148
|
-
* <textarea value={text} onChange={(e) => setText(e.target.value)} />
|
|
149
|
-
* <button onClick={showHistory}>Show History</button>
|
|
150
|
-
* <p>History size: {history.length}</p>
|
|
151
|
-
* </div>
|
|
152
|
-
* );
|
|
153
|
-
* }
|
|
154
|
-
* ```
|
|
155
|
-
*/
|
|
156
|
-
export declare function usePreviousHistory<T>(value: T, maxHistory?: number): T[];
|
|
157
|
-
//# sourceMappingURL=usePrevious.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"usePrevious.d.ts","sourceRoot":"","sources":["../../../src/shared/hooks/usePrevious.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuDG;AACH,wBAAgB,WAAW,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,CAAC,GAAG,SAAS,CAWtD;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,EACnC,KAAK,EAAE,CAAC,EACR,OAAO,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,SAAS,EAAE,IAAI,EAAE,CAAC,KAAK,OAAO,GACjD,CAAC,GAAG,SAAS,CAWf;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmDG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,UAAU,GAAE,MAAW,GAAG,CAAC,EAAE,CAU5E"}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { QuotaExhaustedExtensions } from '../utils/quotaErrors';
|
|
2
|
-
/**
|
|
3
|
-
* Global error event the host shell can dispatch when any GraphQL response
|
|
4
|
-
* carries a QUOTA_EXHAUSTED error. The hook listens for it and surfaces a
|
|
5
|
-
* toast through the shell's GlobalUiProvider — this avoids every MFE having
|
|
6
|
-
* to wire its own error link/handler for a global concern.
|
|
7
|
-
*/
|
|
8
|
-
export declare const QUOTA_EXHAUSTED_EVENT = "burdenoff:quota-exhausted";
|
|
9
|
-
export interface QuotaExhaustedEventDetail {
|
|
10
|
-
/** The raw error object surfaced by Apollo (or any GraphQL client). */
|
|
11
|
-
error?: unknown;
|
|
12
|
-
/** Pre-extracted extensions, if the dispatcher already parsed the error. */
|
|
13
|
-
extensions?: QuotaExhaustedExtensions;
|
|
14
|
-
}
|
|
15
|
-
export interface UseQuotaErrorToastOptions {
|
|
16
|
-
/** Toast cooldown in ms — suppresses duplicate toasts inside this window. */
|
|
17
|
-
cooldownMs?: number;
|
|
18
|
-
/** Override the default toast message builder. */
|
|
19
|
-
buildMessage?: (ext: QuotaExhaustedExtensions | null) => string;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* `useQuotaErrorToast` — install a global listener that surfaces a toast
|
|
23
|
-
* whenever a `QUOTA_EXHAUSTED` GraphQL error is observed anywhere in the app.
|
|
24
|
-
*
|
|
25
|
-
* Mount once per shell (e.g. inside the AppShellProvider). Returns a manual
|
|
26
|
-
* `report(error)` callback that MFEs can call directly when their mutation
|
|
27
|
-
* fails so the toast shows immediately without waiting for the global event.
|
|
28
|
-
*
|
|
29
|
-
* @example
|
|
30
|
-
* ```tsx
|
|
31
|
-
* function AppShell() {
|
|
32
|
-
* useQuotaErrorToast();
|
|
33
|
-
* return <Routes>{/* ... *\/}</Routes>;
|
|
34
|
-
* }
|
|
35
|
-
*
|
|
36
|
-
* // From a mutation handler
|
|
37
|
-
* const { report } = useQuotaErrorToast();
|
|
38
|
-
* try { await mutate(); } catch (e) { if (!report(e)) throw e; }
|
|
39
|
-
* ```
|
|
40
|
-
*/
|
|
41
|
-
export declare function useQuotaErrorToast(options?: UseQuotaErrorToastOptions): {
|
|
42
|
-
report: (err: unknown) => boolean;
|
|
43
|
-
};
|
|
44
|
-
/**
|
|
45
|
-
* Dispatch the global `QUOTA_EXHAUSTED` event. Call from an Apollo error link
|
|
46
|
-
* (or any GraphQL client error handler) so a host shell that mounts
|
|
47
|
-
* `useQuotaErrorToast` will surface a toast.
|
|
48
|
-
*/
|
|
49
|
-
export declare function dispatchQuotaExhausted(detail: QuotaExhaustedEventDetail): void;
|
|
50
|
-
//# sourceMappingURL=useQuotaErrorToast.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useQuotaErrorToast.d.ts","sourceRoot":"","sources":["../../../src/shared/hooks/useQuotaErrorToast.ts"],"names":[],"mappings":"AAEA,OAAO,EAGL,KAAK,wBAAwB,EAC9B,MAAM,sBAAsB,CAAC;AAE9B;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,8BAA8B,CAAC;AAEjE,MAAM,WAAW,yBAAyB;IACxC,uEAAuE;IACvE,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,4EAA4E;IAC5E,UAAU,CAAC,EAAE,wBAAwB,CAAC;CACvC;AAED,MAAM,WAAW,yBAAyB;IACxC,6EAA6E;IAC7E,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kDAAkD;IAClD,YAAY,CAAC,EAAE,CAAC,GAAG,EAAE,wBAAwB,GAAG,IAAI,KAAK,MAAM,CAAC;CACjE;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,GAAE,yBAA8B,GAAG;IAC3E,MAAM,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,OAAO,CAAC;CACnC,CAsCA;AAED;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,yBAAyB,GAAG,IAAI,CAO9E"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
interface RecordProductVisitOptions {
|
|
2
|
-
/** Override the app-shell-provided product slug if needed. */
|
|
3
|
-
productSlug?: string;
|
|
4
|
-
/** Override the CTA URL the welcome email uses. Defaults to the current origin. */
|
|
5
|
-
appUrl?: string;
|
|
6
|
-
/** Set false to disable the side effect entirely (e.g. during E2E tests). */
|
|
7
|
-
enabled?: boolean;
|
|
8
|
-
}
|
|
9
|
-
export declare function useRecordProductVisit(options?: RecordProductVisitOptions): void;
|
|
10
|
-
export {};
|
|
11
|
-
//# sourceMappingURL=useRecordProductVisit.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useRecordProductVisit.d.ts","sourceRoot":"","sources":["../../../src/shared/hooks/useRecordProductVisit.ts"],"names":[],"mappings":"AAmDA,UAAU,yBAAyB;IACjC,8DAA8D;IAC9D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,mFAAmF;IACnF,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,6EAA6E;IAC7E,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAkCD,wBAAgB,qBAAqB,CAAC,OAAO,GAAE,yBAA8B,GAAG,IAAI,CAmEnF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useReferralAttribution.d.ts","sourceRoot":"","sources":["../../../src/shared/hooks/useReferralAttribution.ts"],"names":[],"mappings":"AAkDA,wBAAgB,sBAAsB,IAAI,IAAI,CA6I7C"}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Synchronizes state with sessionStorage, providing persistent storage for the current session.
|
|
3
|
-
* Data persists only for the duration of the page session (until the tab is closed).
|
|
4
|
-
* Automatically serializes/deserializes JSON values.
|
|
5
|
-
*
|
|
6
|
-
* @template T - The type of the stored value
|
|
7
|
-
* @param key - The sessionStorage key
|
|
8
|
-
* @param initialValue - The initial value if no stored value exists
|
|
9
|
-
* @returns A tuple containing [storedValue, setValue, removeValue]
|
|
10
|
-
*
|
|
11
|
-
* @example
|
|
12
|
-
* ```tsx
|
|
13
|
-
* function WizardForm() {
|
|
14
|
-
* const [formData, setFormData, clearFormData] = useSessionStorage('wizardForm', {
|
|
15
|
-
* step: 1,
|
|
16
|
-
* data: {}
|
|
17
|
-
* });
|
|
18
|
-
*
|
|
19
|
-
* const nextStep = () => {
|
|
20
|
-
* setFormData(prev => ({ ...prev, step: prev.step + 1 }));
|
|
21
|
-
* };
|
|
22
|
-
*
|
|
23
|
-
* return (
|
|
24
|
-
* <div>
|
|
25
|
-
* <p>Step {formData.step}</p>
|
|
26
|
-
* <button onClick={nextStep}>Next</button>
|
|
27
|
-
* <button onClick={clearFormData}>Reset</button>
|
|
28
|
-
* </div>
|
|
29
|
-
* );
|
|
30
|
-
* }
|
|
31
|
-
* ```
|
|
32
|
-
*
|
|
33
|
-
* @example
|
|
34
|
-
* ```tsx
|
|
35
|
-
* function TemporaryFilter() {
|
|
36
|
-
* const [filter, setFilter] = useSessionStorage('searchFilter', '');
|
|
37
|
-
*
|
|
38
|
-
* // Filter persists across page refreshes but not after closing the tab
|
|
39
|
-
* return <input value={filter} onChange={(e) => setFilter(e.target.value)} />;
|
|
40
|
-
* }
|
|
41
|
-
* ```
|
|
42
|
-
*/
|
|
43
|
-
export declare function useSessionStorage<T>(key: string, initialValue: T): [T, (value: T | ((prev: T) => T)) => void, () => void];
|
|
44
|
-
//# sourceMappingURL=useSessionStorage.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useSessionStorage.d.ts","sourceRoot":"","sources":["../../../src/shared/hooks/useSessionStorage.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,EACjC,GAAG,EAAE,MAAM,EACX,YAAY,EAAE,CAAC,GACd,CAAC,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,IAAI,EAAE,MAAM,IAAI,CAAC,CA0DxD"}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Throttles a function call, ensuring it's only called once within the specified delay period.
|
|
3
|
-
* Useful for rate-limiting event handlers like scroll, resize, or mousemove.
|
|
4
|
-
*
|
|
5
|
-
* @template T - The function type to be throttled
|
|
6
|
-
* @param callback - The function to throttle
|
|
7
|
-
* @param delay - The minimum time in milliseconds between function calls (default: 300ms)
|
|
8
|
-
* @returns A throttled version of the callback function
|
|
9
|
-
*
|
|
10
|
-
* @example
|
|
11
|
-
* ```tsx
|
|
12
|
-
* function ScrollComponent() {
|
|
13
|
-
* const handleScroll = useThrottle(() => {
|
|
14
|
-
* console.log('Scrolled');
|
|
15
|
-
* }, 100);
|
|
16
|
-
*
|
|
17
|
-
* return <div onScroll={handleScroll}>Content</div>;
|
|
18
|
-
* }
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* @example
|
|
22
|
-
* ```tsx
|
|
23
|
-
* function ResizeObserver() {
|
|
24
|
-
* const handleResize = useThrottle((width: number, height: number) => {
|
|
25
|
-
* console.log('Window resized:', width, height);
|
|
26
|
-
* }, 200);
|
|
27
|
-
*
|
|
28
|
-
* useEffect(() => {
|
|
29
|
-
* const listener = () => handleResize(window.innerWidth, window.innerHeight);
|
|
30
|
-
* window.addEventListener('resize', listener);
|
|
31
|
-
* return () => window.removeEventListener('resize', listener);
|
|
32
|
-
* }, [handleResize]);
|
|
33
|
-
* }
|
|
34
|
-
* ```
|
|
35
|
-
*/
|
|
36
|
-
export declare function useThrottle<TArgs extends unknown[]>(callback: (...args: TArgs) => void, delay?: number): (...args: TArgs) => void;
|
|
37
|
-
//# sourceMappingURL=useThrottle.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useThrottle.d.ts","sourceRoot":"","sources":["../../../src/shared/hooks/useThrottle.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,wBAAgB,WAAW,CAAC,KAAK,SAAS,OAAO,EAAE,EACjD,QAAQ,EAAE,CAAC,GAAG,IAAI,EAAE,KAAK,KAAK,IAAI,EAClC,KAAK,GAAE,MAAY,GAClB,CAAC,GAAG,IAAI,EAAE,KAAK,KAAK,IAAI,CAe1B"}
|
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Manages a boolean state with convenient toggle and set functions.
|
|
3
|
-
* Simplifies the common pattern of toggling boolean values.
|
|
4
|
-
*
|
|
5
|
-
* @param initialValue - The initial boolean value (default: false)
|
|
6
|
-
* @returns A tuple containing [value, toggle, setValue]
|
|
7
|
-
*
|
|
8
|
-
* @example
|
|
9
|
-
* ```tsx
|
|
10
|
-
* function Modal() {
|
|
11
|
-
* const [isOpen, toggle, setIsOpen] = useToggle(false);
|
|
12
|
-
*
|
|
13
|
-
* return (
|
|
14
|
-
* <div>
|
|
15
|
-
* <button onClick={toggle}>Toggle Modal</button>
|
|
16
|
-
* <button onClick={() => setIsOpen(true)}>Open Modal</button>
|
|
17
|
-
* <button onClick={() => setIsOpen(false)}>Close Modal</button>
|
|
18
|
-
* {isOpen && <ModalContent onClose={() => setIsOpen(false)} />}
|
|
19
|
-
* </div>
|
|
20
|
-
* );
|
|
21
|
-
* }
|
|
22
|
-
* ```
|
|
23
|
-
*
|
|
24
|
-
* @example
|
|
25
|
-
* ```tsx
|
|
26
|
-
* function Accordion({ title, children }: AccordionProps) {
|
|
27
|
-
* const [isExpanded, toggleExpanded] = useToggle(false);
|
|
28
|
-
*
|
|
29
|
-
* return (
|
|
30
|
-
* <div>
|
|
31
|
-
* <button onClick={toggleExpanded}>
|
|
32
|
-
* {title} {isExpanded ? '▼' : '▶'}
|
|
33
|
-
* </button>
|
|
34
|
-
* {isExpanded && <div>{children}</div>}
|
|
35
|
-
* </div>
|
|
36
|
-
* );
|
|
37
|
-
* }
|
|
38
|
-
* ```
|
|
39
|
-
*
|
|
40
|
-
* @example
|
|
41
|
-
* ```tsx
|
|
42
|
-
* function PasswordInput() {
|
|
43
|
-
* const [showPassword, toggleShowPassword, setShowPassword] = useToggle(false);
|
|
44
|
-
* const [password, setPassword] = useState('');
|
|
45
|
-
*
|
|
46
|
-
* return (
|
|
47
|
-
* <div>
|
|
48
|
-
* <input
|
|
49
|
-
* type={showPassword ? 'text' : 'password'}
|
|
50
|
-
* value={password}
|
|
51
|
-
* onChange={(e) => setPassword(e.target.value)}
|
|
52
|
-
* />
|
|
53
|
-
* <button onClick={toggleShowPassword}>
|
|
54
|
-
* {showPassword ? 'Hide' : 'Show'}
|
|
55
|
-
* </button>
|
|
56
|
-
* <button onClick={() => setShowPassword(false)}>Always Hide</button>
|
|
57
|
-
* </div>
|
|
58
|
-
* );
|
|
59
|
-
* }
|
|
60
|
-
* ```
|
|
61
|
-
*/
|
|
62
|
-
export declare function useToggle(initialValue?: boolean): [boolean, () => void, (value: boolean) => void];
|
|
63
|
-
/**
|
|
64
|
-
* Alternative version with more descriptive return object instead of tuple.
|
|
65
|
-
* Useful when you prefer named properties over array destructuring.
|
|
66
|
-
*
|
|
67
|
-
* @param initialValue - The initial boolean value (default: false)
|
|
68
|
-
* @returns Object with value, toggle, setTrue, setFalse, and setValue functions
|
|
69
|
-
*
|
|
70
|
-
* @example
|
|
71
|
-
* ```tsx
|
|
72
|
-
* function Sidebar() {
|
|
73
|
-
* const sidebar = useToggleObject(true);
|
|
74
|
-
*
|
|
75
|
-
* return (
|
|
76
|
-
* <div>
|
|
77
|
-
* <button onClick={sidebar.toggle}>Toggle Sidebar</button>
|
|
78
|
-
* <button onClick={sidebar.setTrue}>Open Sidebar</button>
|
|
79
|
-
* <button onClick={sidebar.setFalse}>Close Sidebar</button>
|
|
80
|
-
* {sidebar.value && <SidebarContent />}
|
|
81
|
-
* </div>
|
|
82
|
-
* );
|
|
83
|
-
* }
|
|
84
|
-
* ```
|
|
85
|
-
*
|
|
86
|
-
* @example
|
|
87
|
-
* ```tsx
|
|
88
|
-
* function LoadingButton() {
|
|
89
|
-
* const loading = useToggleObject(false);
|
|
90
|
-
*
|
|
91
|
-
* const handleClick = async () => {
|
|
92
|
-
* loading.setTrue();
|
|
93
|
-
* try {
|
|
94
|
-
* await performAction();
|
|
95
|
-
* } finally {
|
|
96
|
-
* loading.setFalse();
|
|
97
|
-
* }
|
|
98
|
-
* };
|
|
99
|
-
*
|
|
100
|
-
* return (
|
|
101
|
-
* <button onClick={handleClick} disabled={loading.value}>
|
|
102
|
-
* {loading.value ? 'Loading...' : 'Click Me'}
|
|
103
|
-
* </button>
|
|
104
|
-
* );
|
|
105
|
-
* }
|
|
106
|
-
* ```
|
|
107
|
-
*/
|
|
108
|
-
export declare function useToggleObject(initialValue?: boolean): {
|
|
109
|
-
value: boolean;
|
|
110
|
-
toggle: () => void;
|
|
111
|
-
setTrue: () => void;
|
|
112
|
-
setFalse: () => void;
|
|
113
|
-
setValue: (value: boolean) => void;
|
|
114
|
-
};
|
|
115
|
-
/**
|
|
116
|
-
* Advanced version with conditional toggle based on a predicate function.
|
|
117
|
-
* Only toggles if the predicate returns true.
|
|
118
|
-
*
|
|
119
|
-
* @param initialValue - The initial boolean value
|
|
120
|
-
* @param predicate - Function that determines if toggle should occur
|
|
121
|
-
* @returns Tuple with [value, conditionalToggle, setValue]
|
|
122
|
-
*
|
|
123
|
-
* @example
|
|
124
|
-
* ```tsx
|
|
125
|
-
* function ConditionalFeature() {
|
|
126
|
-
* const [hasPermission, setHasPermission] = useState(true);
|
|
127
|
-
* const [isEnabled, toggle, setEnabled] = useConditionalToggle(
|
|
128
|
-
* false,
|
|
129
|
-
* () => hasPermission
|
|
130
|
-
* );
|
|
131
|
-
*
|
|
132
|
-
* return (
|
|
133
|
-
* <div>
|
|
134
|
-
* <label>
|
|
135
|
-
* <input
|
|
136
|
-
* type="checkbox"
|
|
137
|
-
* checked={hasPermission}
|
|
138
|
-
* onChange={(e) => setHasPermission(e.target.checked)}
|
|
139
|
-
* />
|
|
140
|
-
* Has Permission
|
|
141
|
-
* </label>
|
|
142
|
-
* <button onClick={toggle}>
|
|
143
|
-
* Toggle Feature (only works with permission)
|
|
144
|
-
* </button>
|
|
145
|
-
* <p>Feature is {isEnabled ? 'enabled' : 'disabled'}</p>
|
|
146
|
-
* </div>
|
|
147
|
-
* );
|
|
148
|
-
* }
|
|
149
|
-
* ```
|
|
150
|
-
*/
|
|
151
|
-
export declare function useConditionalToggle(initialValue: boolean | undefined, predicate: () => boolean): [boolean, () => void, (value: boolean) => void];
|
|
152
|
-
//# sourceMappingURL=useToggle.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useToggle.d.ts","sourceRoot":"","sources":["../../../src/shared/hooks/useToggle.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4DG;AACH,wBAAgB,SAAS,CACvB,YAAY,GAAE,OAAe,GAC5B,CAAC,OAAO,EAAE,MAAM,IAAI,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC,CAcjD;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,wBAAgB,eAAe,CAAC,YAAY,GAAE,OAAe,GAAG;IAC9D,KAAK,EAAE,OAAO,CAAC;IACf,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;CACpC,CAaA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,wBAAgB,oBAAoB,CAClC,YAAY,EAAE,OAAO,YAAQ,EAC7B,SAAS,EAAE,MAAM,OAAO,GACvB,CAAC,OAAO,EAAE,MAAM,IAAI,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC,CAcjD"}
|
package/dist/shared/index.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export * from './components';
|
|
2
|
-
export * from './config';
|
|
3
|
-
export * from './events';
|
|
4
|
-
export * from './graphql';
|
|
5
|
-
export * from './hooks';
|
|
6
|
-
export * from './providers';
|
|
7
|
-
export * from './tours';
|
|
8
|
-
export * from './types';
|
|
9
|
-
export * from './utils';
|
|
10
|
-
export * from './feature-flags';
|
|
11
|
-
export * from './native';
|
|
12
|
-
export declare const FE_SHARED_VERSION = "1.0.0";
|
|
13
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/shared/index.ts"],"names":[],"mappings":"AAQA,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AAEzB,eAAO,MAAM,iBAAiB,UAAU,CAAC"}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { KeyboardShortcut } from './types';
|
|
2
|
-
/**
|
|
3
|
-
* Global shortcuts configuration structure
|
|
4
|
-
*/
|
|
5
|
-
export interface GlobalShortcutsConfig {
|
|
6
|
-
navigation: KeyboardShortcut[];
|
|
7
|
-
ui: KeyboardShortcut[];
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Handlers required for global shortcuts
|
|
11
|
-
*/
|
|
12
|
-
export interface GlobalShortcutHandlers {
|
|
13
|
-
/** Navigate to home/dashboard */
|
|
14
|
-
goHome: () => void;
|
|
15
|
-
/** Open global search */
|
|
16
|
-
openSearch: () => void;
|
|
17
|
-
/** Toggle sidebar collapse */
|
|
18
|
-
toggleSidebar: () => void;
|
|
19
|
-
/** Toggle dark/light theme */
|
|
20
|
-
toggleTheme: () => void;
|
|
21
|
-
/** Show keyboard shortcuts help */
|
|
22
|
-
showHelp: () => void;
|
|
23
|
-
/** Open settings (optional) */
|
|
24
|
-
openSettings?: () => void;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Create global shortcuts configuration with handlers
|
|
28
|
-
*
|
|
29
|
-
* @param handlers - Object containing action handlers
|
|
30
|
-
* @returns Array of keyboard shortcuts
|
|
31
|
-
*
|
|
32
|
-
* @example
|
|
33
|
-
* ```typescript
|
|
34
|
-
* const shortcuts = createGlobalShortcuts({
|
|
35
|
-
* goHome: () => navigate('/'),
|
|
36
|
-
* openSearch: () => setSearchOpen(true),
|
|
37
|
-
* toggleSidebar: () => setSidebarCollapsed(!collapsed),
|
|
38
|
-
* toggleTheme: () => setColorMode(mode === 'light' ? 'dark' : 'light'),
|
|
39
|
-
* showHelp: () => setHelpOpen(true),
|
|
40
|
-
* openSettings: () => navigate('/settings'),
|
|
41
|
-
* });
|
|
42
|
-
* ```
|
|
43
|
-
*/
|
|
44
|
-
export declare function createGlobalShortcuts(handlers: GlobalShortcutHandlers): KeyboardShortcut[];
|
|
45
|
-
/**
|
|
46
|
-
* Get global shortcuts grouped by category
|
|
47
|
-
*/
|
|
48
|
-
export declare function getGlobalShortcutsByCategory(shortcuts: KeyboardShortcut[]): Record<string, KeyboardShortcut[]>;
|
|
49
|
-
/**
|
|
50
|
-
* Merge global and product shortcuts
|
|
51
|
-
* Global shortcuts take precedence for duplicate IDs
|
|
52
|
-
*/
|
|
53
|
-
export declare function mergeShortcuts(globalShortcuts: KeyboardShortcut[], productShortcuts: KeyboardShortcut[]): KeyboardShortcut[];
|
|
54
|
-
/**
|
|
55
|
-
* Default global shortcut categories in display order
|
|
56
|
-
*/
|
|
57
|
-
export declare const GLOBAL_SHORTCUT_CATEGORIES: readonly ["Navigation", "Search", "UI", "Help"];
|
|
58
|
-
//# sourceMappingURL=globalShortcuts.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"globalShortcuts.d.ts","sourceRoot":"","sources":["../../../src/shared/keyboard/globalShortcuts.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAgB,MAAM,SAAS,CAAC;AAE9D;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,UAAU,EAAE,gBAAgB,EAAE,CAAC;IAC/B,EAAE,EAAE,gBAAgB,EAAE,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,iCAAiC;IACjC,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,yBAAyB;IACzB,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,8BAA8B;IAC9B,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,8BAA8B;IAC9B,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,mCAAmC;IACnC,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,+BAA+B;IAC/B,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;CAC3B;AAeD;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,sBAAsB,GAAG,gBAAgB,EAAE,CA2D1F;AAED;;GAEG;AACH,wBAAgB,4BAA4B,CAC1C,SAAS,EAAE,gBAAgB,EAAE,GAC5B,MAAM,CAAC,MAAM,EAAE,gBAAgB,EAAE,CAAC,CAYpC;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAC5B,eAAe,EAAE,gBAAgB,EAAE,EACnC,gBAAgB,EAAE,gBAAgB,EAAE,GACnC,gBAAgB,EAAE,CAOpB;AAED;;GAEG;AACH,eAAO,MAAM,0BAA0B,iDAAkD,CAAC"}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Keyboard Shortcuts Module
|
|
3
|
-
*
|
|
4
|
-
* Comprehensive keyboard shortcut management system
|
|
5
|
-
*
|
|
6
|
-
* Features:
|
|
7
|
-
* - Cross-platform key combination support
|
|
8
|
-
* - Dynamic shortcut registration
|
|
9
|
-
* - Shortcut help dialog support
|
|
10
|
-
* - Input field detection
|
|
11
|
-
* - Platform-specific key formatting
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* ```tsx
|
|
15
|
-
* import { useKeyboardShortcuts, useHotkeys, formatKeyCombo } from '@burdenoff/fe-libs/shared/keyboard';
|
|
16
|
-
*
|
|
17
|
-
* // Method 1: Static shortcuts
|
|
18
|
-
* const shortcuts = [
|
|
19
|
-
* { id: 'search', keys: ['ctrl+k', 'cmd+k'], description: 'Search', action: () => openSearch() },
|
|
20
|
-
* { id: 'help', keys: ['?'], description: 'Help', action: () => showHelp() },
|
|
21
|
-
* ];
|
|
22
|
-
* useKeyboardShortcuts(shortcuts);
|
|
23
|
-
*
|
|
24
|
-
* // Method 2: Dynamic hotkeys
|
|
25
|
-
* const { register, unregister } = useHotkeys();
|
|
26
|
-
* register('ctrl+s', () => save());
|
|
27
|
-
*
|
|
28
|
-
* // Method 3: Single shortcut
|
|
29
|
-
* useKeyboardShortcut('esc', () => closeDialog());
|
|
30
|
-
* ```
|
|
31
|
-
*/
|
|
32
|
-
export type { KeyboardShortcut, ShortcutConfig, ShortcutContext, ModifierKey, KeyCombination, UseKeyboardShortcutsReturn, UseHotkeysReturn, UseShortcutHelpReturn, PlatformType, ParsedKeyCombo, PlatformKeys, } from './types';
|
|
33
|
-
export { MODIFIER_KEYS, PLATFORM_TYPES } from './types';
|
|
34
|
-
export { useKeyboardShortcuts, useKeyboardShortcut, shouldEnableKeyboardShortcuts, } from './useKeyboardShortcuts';
|
|
35
|
-
export { useHotkeys } from './useHotkeys';
|
|
36
|
-
export { useShortcutHelp } from './useShortcutHelp';
|
|
37
|
-
export { detectPlatform, isMac, normalizeKey, parseKeyCombo, matchesKeyCombo, formatKeyCombo, normalizePlatformCombo, shouldIgnoreShortcut, getShortcutLabel, getDisplayKeysForPlatform, isMobileDevice, isTabletDevice, } from './utils';
|
|
38
|
-
export { createGlobalShortcuts, getGlobalShortcutsByCategory, mergeShortcuts, GLOBAL_SHORTCUT_CATEGORIES, } from './globalShortcuts';
|
|
39
|
-
export type { GlobalShortcutsConfig, GlobalShortcutHandlers } from './globalShortcuts';
|
|
40
|
-
//# sourceMappingURL=index.d.ts.map
|