@buoy-gg/shared-ui 1.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +34 -0
- package/lib/commonjs/JsModal.js +1473 -0
- package/lib/commonjs/clipboard/autoDetectClipboard.js +67 -0
- package/lib/commonjs/clipboard/clipboard-impl.js +26 -0
- package/lib/commonjs/clipboard/copyToClipboard.js +66 -0
- package/lib/commonjs/clipboard/index.js +25 -0
- package/lib/commonjs/context/HintsContext.js +49 -0
- package/lib/commonjs/context/index.js +24 -0
- package/lib/commonjs/dataViewer/CyberpunkInput.js +382 -0
- package/lib/commonjs/dataViewer/DataViewer.js +142 -0
- package/lib/commonjs/dataViewer/DiffSummary.js +133 -0
- package/lib/commonjs/dataViewer/IndentGuides.js +128 -0
- package/lib/commonjs/dataViewer/IndentGuidesOverlay.js +104 -0
- package/lib/commonjs/dataViewer/SplitDiffViewer.js +420 -0
- package/lib/commonjs/dataViewer/TypeLegend.js +111 -0
- package/lib/commonjs/dataViewer/VirtualizedDataExplorer.js +1057 -0
- package/lib/commonjs/dataViewer/diffThemes.js +108 -0
- package/lib/commonjs/dataViewer/index.js +101 -0
- package/lib/commonjs/dataViewer/lineDiff.js +366 -0
- package/lib/commonjs/dataViewer/tree/TreeDiffViewer.js +887 -0
- package/lib/commonjs/env/EnvironmentIndicator.js +121 -0
- package/lib/commonjs/env/EnvironmentSelector.js +204 -0
- package/lib/commonjs/env/EnvironmentSelectorInline.js +298 -0
- package/lib/commonjs/hooks/index.js +44 -0
- package/lib/commonjs/hooks/safe-area-impl.js +28 -0
- package/lib/commonjs/hooks/useDeviceInfo.js +524 -0
- package/lib/commonjs/hooks/useFilterManager.js +136 -0
- package/lib/commonjs/hooks/useSafeAreaInsets.js +256 -0
- package/lib/commonjs/icons/BenchmarkIcon.js +109 -0
- package/lib/commonjs/icons/EnvLaptopIcon.js +204 -0
- package/lib/commonjs/icons/IconBackground.js +279 -0
- package/lib/commonjs/icons/ReactQueryIcon.js +169 -0
- package/lib/commonjs/icons/RenderCountIcon.js +147 -0
- package/lib/commonjs/icons/RouteMapIcon.js +250 -0
- package/lib/commonjs/icons/SentryBugIcon.js +181 -0
- package/lib/commonjs/icons/StackPulseIcon.js +158 -0
- package/lib/commonjs/icons/StorageStackIcon.js +156 -0
- package/lib/commonjs/icons/WifiCircuitIcon.js +169 -0
- package/lib/commonjs/icons/index.js +175 -0
- package/lib/commonjs/icons/lucide-icons-original-full.js +3244 -0
- package/lib/commonjs/icons/lucide-icons.js +2252 -0
- package/lib/commonjs/icons/primitives/GlobeIcon.js +66 -0
- package/lib/commonjs/icons/primitives/icon-primitives.js +169 -0
- package/lib/commonjs/icons/primitives/index.js +49 -0
- package/lib/commonjs/index.js +485 -0
- package/lib/commonjs/license/FeatureGate.js +764 -0
- package/lib/commonjs/license/LicenseEntryModal.js +950 -0
- package/lib/commonjs/license/ManageDevicesModal.js +545 -0
- package/lib/commonjs/license/index.js +62 -0
- package/lib/commonjs/logger/index-sentry.js +245 -0
- package/lib/commonjs/logger/index.js +62 -0
- package/lib/commonjs/logger/logDump.js +19 -0
- package/lib/commonjs/logger/types.js +38 -0
- package/lib/commonjs/package.json +1 -0
- package/lib/commonjs/settings/components/BubbleSettingsSection.js +382 -0
- package/lib/commonjs/settings/index.js +24 -0
- package/lib/commonjs/storage/devToolsStorageKeys.js +235 -0
- package/lib/commonjs/storage/index.js +18 -0
- package/lib/commonjs/types/index.js +16 -0
- package/lib/commonjs/types/types.d.js +1 -0
- package/lib/commonjs/types/types.js +12 -0
- package/lib/commonjs/ui/components/BackButton.js +47 -0
- package/lib/commonjs/ui/components/Badge.js +221 -0
- package/lib/commonjs/ui/components/ClipboardHintBanner.js +149 -0
- package/lib/commonjs/ui/components/CollapsibleSection.js +170 -0
- package/lib/commonjs/ui/components/CompactFilterChips.js +114 -0
- package/lib/commonjs/ui/components/CompactRow.js +230 -0
- package/lib/commonjs/ui/components/CopyButton.js +256 -0
- package/lib/commonjs/ui/components/DataInspector.js +322 -0
- package/lib/commonjs/ui/components/DetailView.js +357 -0
- package/lib/commonjs/ui/components/Divider.js +18 -0
- package/lib/commonjs/ui/components/DraggableHeader.js +144 -0
- package/lib/commonjs/ui/components/DynamicFilterView.js +725 -0
- package/lib/commonjs/ui/components/EmptyState.js +136 -0
- package/lib/commonjs/ui/components/ErrorBoundary.js +112 -0
- package/lib/commonjs/ui/components/EventHistoryViewer/CompareBar.js +210 -0
- package/lib/commonjs/ui/components/EventHistoryViewer/DiffModeTabs.js +90 -0
- package/lib/commonjs/ui/components/EventHistoryViewer/EventHistoryViewer.js +130 -0
- package/lib/commonjs/ui/components/EventHistoryViewer/EventPickerModal.js +206 -0
- package/lib/commonjs/ui/components/EventHistoryViewer/ViewToggleCards.js +137 -0
- package/lib/commonjs/ui/components/EventHistoryViewer/index.js +40 -0
- package/lib/commonjs/ui/components/EventHistoryViewer/types.js +5 -0
- package/lib/commonjs/ui/components/EventListItem.js +247 -0
- package/lib/commonjs/ui/components/EventStepperFooter.js +148 -0
- package/lib/commonjs/ui/components/ExpandablePopover.js +341 -0
- package/lib/commonjs/ui/components/ExpandableSection.js +71 -0
- package/lib/commonjs/ui/components/ExpandableSectionHeader.js +86 -0
- package/lib/commonjs/ui/components/ExpandableSectionWithModal.js +182 -0
- package/lib/commonjs/ui/components/FilterComponents.js +267 -0
- package/lib/commonjs/ui/components/FilterViewPattern.js +174 -0
- package/lib/commonjs/ui/components/HeaderSearchButton.js +32 -0
- package/lib/commonjs/ui/components/ListItem.js +171 -0
- package/lib/commonjs/ui/components/ModalHeader.js +173 -0
- package/lib/commonjs/ui/components/ModalHintBanner.js +147 -0
- package/lib/commonjs/ui/components/SearchBar.js +264 -0
- package/lib/commonjs/ui/components/SectionHeader.js +125 -0
- package/lib/commonjs/ui/components/StatsCard.js +198 -0
- package/lib/commonjs/ui/components/StatusIndicator.js +231 -0
- package/lib/commonjs/ui/components/StorageTypeBadge.js +96 -0
- package/lib/commonjs/ui/components/TabSelector.js +70 -0
- package/lib/commonjs/ui/components/TimeDisplay.js +142 -0
- package/lib/commonjs/ui/components/TypeBadge.js +100 -0
- package/lib/commonjs/ui/components/ValueTypeBadge.js +146 -0
- package/lib/commonjs/ui/components/WindowControls.js +118 -0
- package/lib/commonjs/ui/components/index.js +323 -0
- package/lib/commonjs/ui/components/types.js +5 -0
- package/lib/commonjs/ui/console/BubbleSettingsModal.js +50 -0
- package/lib/commonjs/ui/console/ConsoleSection.js +50 -0
- package/lib/commonjs/ui/console/CyberpunkButtonOutline.js +261 -0
- package/lib/commonjs/ui/console/CyberpunkConsoleSection.js +649 -0
- package/lib/commonjs/ui/console/CyberpunkIconContainer.js +186 -0
- package/lib/commonjs/ui/console/CyberpunkSectionButton.js +122 -0
- package/lib/commonjs/ui/console/GalaxyButton.js +99 -0
- package/lib/commonjs/ui/console/index.js +12 -0
- package/lib/commonjs/ui/gameUI/components/GameUICollapsibleSection.js +120 -0
- package/lib/commonjs/ui/gameUI/components/GameUICompactStats.js +335 -0
- package/lib/commonjs/ui/gameUI/components/GameUIIssuesList.js +283 -0
- package/lib/commonjs/ui/gameUI/components/GameUIStatusHeader.js +143 -0
- package/lib/commonjs/ui/gameUI/constants/gameUIColors.js +186 -0
- package/lib/commonjs/ui/gameUI/constants/macOSDesignSystemColors.js +206 -0
- package/lib/commonjs/ui/gameUI/hooks/useGameUIAlertState.js +110 -0
- package/lib/commonjs/ui/gameUI/index.js +72 -0
- package/lib/commonjs/ui/index.js +39 -0
- package/lib/commonjs/utils/displayValue.js +41 -0
- package/lib/commonjs/utils/formatting/dataFormatting.js +73 -0
- package/lib/commonjs/utils/formatting/httpFormatting.js +153 -0
- package/lib/commonjs/utils/formatting/index.js +27 -0
- package/lib/commonjs/utils/getSafeAreaInsets.js +40 -0
- package/lib/commonjs/utils/index.js +175 -0
- package/lib/commonjs/utils/loadOptionalModule.js +94 -0
- package/lib/commonjs/utils/minimalSuperJSON.js +337 -0
- package/lib/commonjs/utils/persistentStorage.js +594 -0
- package/lib/commonjs/utils/safeAsyncStorage.js +71 -0
- package/lib/commonjs/utils/safeStringify.js +229 -0
- package/lib/commonjs/utils/time/formatRelativeTime.js +34 -0
- package/lib/commonjs/utils/time/index.js +12 -0
- package/lib/commonjs/utils/typeHelpers.js +142 -0
- package/lib/commonjs/utils/valueFormatting.js +140 -0
- package/lib/module/JsModal.js +1469 -0
- package/lib/module/clipboard/autoDetectClipboard.js +45 -0
- package/lib/module/clipboard/clipboard-impl.js +20 -0
- package/lib/module/clipboard/copyToClipboard.js +62 -0
- package/lib/module/clipboard/index.js +5 -0
- package/lib/module/context/HintsContext.js +43 -0
- package/lib/module/context/index.js +3 -0
- package/lib/module/dataViewer/CyberpunkInput.js +378 -0
- package/lib/module/dataViewer/DataViewer.js +137 -0
- package/lib/module/dataViewer/DiffSummary.js +128 -0
- package/lib/module/dataViewer/IndentGuides.js +124 -0
- package/lib/module/dataViewer/IndentGuidesOverlay.js +99 -0
- package/lib/module/dataViewer/SplitDiffViewer.js +415 -0
- package/lib/module/dataViewer/TypeLegend.js +105 -0
- package/lib/module/dataViewer/VirtualizedDataExplorer.js +1053 -0
- package/lib/module/dataViewer/diffThemes.js +104 -0
- package/lib/module/dataViewer/index.js +17 -0
- package/lib/module/dataViewer/lineDiff.js +362 -0
- package/lib/module/dataViewer/tree/TreeDiffViewer.js +882 -0
- package/lib/module/env/EnvironmentIndicator.js +117 -0
- package/lib/module/env/EnvironmentSelector.js +199 -0
- package/lib/module/env/EnvironmentSelectorInline.js +293 -0
- package/lib/module/hooks/index.js +6 -0
- package/lib/module/hooks/safe-area-impl.js +23 -0
- package/lib/module/hooks/useDeviceInfo.js +519 -0
- package/lib/module/hooks/useFilterManager.js +132 -0
- package/lib/module/hooks/useSafeAreaInsets.js +250 -0
- package/lib/module/icons/BenchmarkIcon.js +104 -0
- package/lib/module/icons/EnvLaptopIcon.js +199 -0
- package/lib/module/icons/IconBackground.js +274 -0
- package/lib/module/icons/ReactQueryIcon.js +164 -0
- package/lib/module/icons/RenderCountIcon.js +142 -0
- package/lib/module/icons/RouteMapIcon.js +245 -0
- package/lib/module/icons/SentryBugIcon.js +176 -0
- package/lib/module/icons/StackPulseIcon.js +153 -0
- package/lib/module/icons/StorageStackIcon.js +151 -0
- package/lib/module/icons/WifiCircuitIcon.js +164 -0
- package/lib/module/icons/index.js +23 -0
- package/lib/module/icons/lucide-icons-original-full.js +3174 -0
- package/lib/module/icons/lucide-icons.js +2199 -0
- package/lib/module/icons/primitives/GlobeIcon.js +61 -0
- package/lib/module/icons/primitives/icon-primitives.js +161 -0
- package/lib/module/icons/primitives/index.js +15 -0
- package/lib/module/index.js +58 -0
- package/lib/module/license/FeatureGate.js +754 -0
- package/lib/module/license/LicenseEntryModal.js +944 -0
- package/lib/module/license/ManageDevicesModal.js +539 -0
- package/lib/module/license/index.js +5 -0
- package/lib/module/logger/index-sentry.js +230 -0
- package/lib/module/logger/index.js +13 -0
- package/lib/module/logger/logDump.js +13 -0
- package/lib/module/logger/types.js +37 -0
- package/lib/module/package.json +1 -0
- package/lib/module/settings/components/BubbleSettingsSection.js +376 -0
- package/lib/module/settings/index.js +3 -0
- package/lib/module/storage/devToolsStorageKeys.js +228 -0
- package/lib/module/storage/index.js +3 -0
- package/lib/module/types/index.js +3 -0
- package/lib/module/types/types.d.js +1 -0
- package/lib/module/types/types.js +8 -0
- package/lib/module/ui/components/BackButton.js +43 -0
- package/lib/module/ui/components/Badge.js +213 -0
- package/lib/module/ui/components/ClipboardHintBanner.js +145 -0
- package/lib/module/ui/components/CollapsibleSection.js +166 -0
- package/lib/module/ui/components/CompactFilterChips.js +110 -0
- package/lib/module/ui/components/CompactRow.js +226 -0
- package/lib/module/ui/components/CopyButton.js +253 -0
- package/lib/module/ui/components/DataInspector.js +318 -0
- package/lib/module/ui/components/DetailView.js +353 -0
- package/lib/module/ui/components/Divider.js +14 -0
- package/lib/module/ui/components/DraggableHeader.js +140 -0
- package/lib/module/ui/components/DynamicFilterView.js +721 -0
- package/lib/module/ui/components/EmptyState.js +129 -0
- package/lib/module/ui/components/ErrorBoundary.js +107 -0
- package/lib/module/ui/components/EventHistoryViewer/CompareBar.js +205 -0
- package/lib/module/ui/components/EventHistoryViewer/DiffModeTabs.js +85 -0
- package/lib/module/ui/components/EventHistoryViewer/EventHistoryViewer.js +125 -0
- package/lib/module/ui/components/EventHistoryViewer/EventPickerModal.js +201 -0
- package/lib/module/ui/components/EventHistoryViewer/ViewToggleCards.js +132 -0
- package/lib/module/ui/components/EventHistoryViewer/index.js +19 -0
- package/lib/module/ui/components/EventHistoryViewer/types.js +3 -0
- package/lib/module/ui/components/EventListItem.js +243 -0
- package/lib/module/ui/components/EventStepperFooter.js +143 -0
- package/lib/module/ui/components/ExpandablePopover.js +338 -0
- package/lib/module/ui/components/ExpandableSection.js +67 -0
- package/lib/module/ui/components/ExpandableSectionHeader.js +82 -0
- package/lib/module/ui/components/ExpandableSectionWithModal.js +178 -0
- package/lib/module/ui/components/FilterComponents.js +259 -0
- package/lib/module/ui/components/FilterViewPattern.js +170 -0
- package/lib/module/ui/components/HeaderSearchButton.js +28 -0
- package/lib/module/ui/components/ListItem.js +167 -0
- package/lib/module/ui/components/ModalHeader.js +166 -0
- package/lib/module/ui/components/ModalHintBanner.js +143 -0
- package/lib/module/ui/components/SearchBar.js +260 -0
- package/lib/module/ui/components/SectionHeader.js +121 -0
- package/lib/module/ui/components/StatsCard.js +194 -0
- package/lib/module/ui/components/StatusIndicator.js +227 -0
- package/lib/module/ui/components/StorageTypeBadge.js +92 -0
- package/lib/module/ui/components/TabSelector.js +66 -0
- package/lib/module/ui/components/TimeDisplay.js +138 -0
- package/lib/module/ui/components/TypeBadge.js +96 -0
- package/lib/module/ui/components/ValueTypeBadge.js +142 -0
- package/lib/module/ui/components/WindowControls.js +114 -0
- package/lib/module/ui/components/index.js +33 -0
- package/lib/module/ui/components/types.js +3 -0
- package/lib/module/ui/console/BubbleSettingsModal.js +46 -0
- package/lib/module/ui/console/ConsoleSection.js +46 -0
- package/lib/module/ui/console/CyberpunkButtonOutline.js +257 -0
- package/lib/module/ui/console/CyberpunkConsoleSection.js +646 -0
- package/lib/module/ui/console/CyberpunkIconContainer.js +182 -0
- package/lib/module/ui/console/CyberpunkSectionButton.js +118 -0
- package/lib/module/ui/console/GalaxyButton.js +95 -0
- package/lib/module/ui/console/index.js +5 -0
- package/lib/module/ui/gameUI/components/GameUICollapsibleSection.js +116 -0
- package/lib/module/ui/gameUI/components/GameUICompactStats.js +331 -0
- package/lib/module/ui/gameUI/components/GameUIIssuesList.js +279 -0
- package/lib/module/ui/gameUI/components/GameUIStatusHeader.js +139 -0
- package/lib/module/ui/gameUI/constants/gameUIColors.js +183 -0
- package/lib/module/ui/gameUI/constants/macOSDesignSystemColors.js +202 -0
- package/lib/module/ui/gameUI/hooks/useGameUIAlertState.js +105 -0
- package/lib/module/ui/gameUI/index.js +19 -0
- package/lib/module/ui/index.js +12 -0
- package/lib/module/utils/displayValue.js +36 -0
- package/lib/module/utils/formatting/dataFormatting.js +66 -0
- package/lib/module/utils/formatting/httpFormatting.js +148 -0
- package/lib/module/utils/formatting/index.js +8 -0
- package/lib/module/utils/getSafeAreaInsets.js +36 -0
- package/lib/module/utils/index.js +10 -0
- package/lib/module/utils/loadOptionalModule.js +89 -0
- package/lib/module/utils/minimalSuperJSON.js +332 -0
- package/lib/module/utils/persistentStorage.js +588 -0
- package/lib/module/utils/safeAsyncStorage.js +64 -0
- package/lib/module/utils/safeStringify.js +225 -0
- package/lib/module/utils/time/formatRelativeTime.js +30 -0
- package/lib/module/utils/time/index.js +3 -0
- package/lib/module/utils/typeHelpers.js +130 -0
- package/lib/module/utils/valueFormatting.js +131 -0
- package/lib/typescript/commonjs/JsModal.d.ts +78 -0
- package/lib/typescript/commonjs/JsModal.d.ts.map +1 -0
- package/lib/typescript/commonjs/clipboard/autoDetectClipboard.d.ts +31 -0
- package/lib/typescript/commonjs/clipboard/autoDetectClipboard.d.ts.map +1 -0
- package/lib/typescript/commonjs/clipboard/clipboard-impl.d.ts +16 -0
- package/lib/typescript/commonjs/clipboard/clipboard-impl.d.ts.map +1 -0
- package/lib/typescript/commonjs/clipboard/copyToClipboard.d.ts +11 -0
- package/lib/typescript/commonjs/clipboard/copyToClipboard.d.ts.map +1 -0
- package/lib/typescript/commonjs/clipboard/index.d.ts +4 -0
- package/lib/typescript/commonjs/clipboard/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/context/HintsContext.d.ts +30 -0
- package/lib/typescript/commonjs/context/HintsContext.d.ts.map +1 -0
- package/lib/typescript/commonjs/context/index.d.ts +2 -0
- package/lib/typescript/commonjs/context/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/dataViewer/CyberpunkInput.d.ts +13 -0
- package/lib/typescript/commonjs/dataViewer/CyberpunkInput.d.ts.map +1 -0
- package/lib/typescript/commonjs/dataViewer/DataViewer.d.ts +24 -0
- package/lib/typescript/commonjs/dataViewer/DataViewer.d.ts.map +1 -0
- package/lib/typescript/commonjs/dataViewer/DiffSummary.d.ts +26 -0
- package/lib/typescript/commonjs/dataViewer/DiffSummary.d.ts.map +1 -0
- package/lib/typescript/commonjs/dataViewer/IndentGuides.d.ts +16 -0
- package/lib/typescript/commonjs/dataViewer/IndentGuides.d.ts.map +1 -0
- package/lib/typescript/commonjs/dataViewer/IndentGuidesOverlay.d.ts +19 -0
- package/lib/typescript/commonjs/dataViewer/IndentGuidesOverlay.d.ts.map +1 -0
- package/lib/typescript/commonjs/dataViewer/SplitDiffViewer.d.ts +40 -0
- package/lib/typescript/commonjs/dataViewer/SplitDiffViewer.d.ts.map +1 -0
- package/lib/typescript/commonjs/dataViewer/TypeLegend.d.ts +18 -0
- package/lib/typescript/commonjs/dataViewer/TypeLegend.d.ts.map +1 -0
- package/lib/typescript/commonjs/dataViewer/VirtualizedDataExplorer.d.ts +14 -0
- package/lib/typescript/commonjs/dataViewer/VirtualizedDataExplorer.d.ts.map +1 -0
- package/lib/typescript/commonjs/dataViewer/diffThemes.d.ts +62 -0
- package/lib/typescript/commonjs/dataViewer/diffThemes.d.ts.map +1 -0
- package/lib/typescript/commonjs/dataViewer/index.d.ts +14 -0
- package/lib/typescript/commonjs/dataViewer/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/dataViewer/lineDiff.d.ts +36 -0
- package/lib/typescript/commonjs/dataViewer/lineDiff.d.ts.map +1 -0
- package/lib/typescript/commonjs/dataViewer/tree/TreeDiffViewer.d.ts +24 -0
- package/lib/typescript/commonjs/dataViewer/tree/TreeDiffViewer.d.ts.map +1 -0
- package/lib/typescript/commonjs/env/EnvironmentIndicator.d.ts +12 -0
- package/lib/typescript/commonjs/env/EnvironmentIndicator.d.ts.map +1 -0
- package/lib/typescript/commonjs/env/EnvironmentSelector.d.ts +18 -0
- package/lib/typescript/commonjs/env/EnvironmentSelector.d.ts.map +1 -0
- package/lib/typescript/commonjs/env/EnvironmentSelectorInline.d.ts +12 -0
- package/lib/typescript/commonjs/env/EnvironmentSelectorInline.d.ts.map +1 -0
- package/lib/typescript/commonjs/hooks/index.d.ts +5 -0
- package/lib/typescript/commonjs/hooks/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/hooks/safe-area-impl.d.ts +24 -0
- package/lib/typescript/commonjs/hooks/safe-area-impl.d.ts.map +1 -0
- package/lib/typescript/commonjs/hooks/useDeviceInfo.d.ts +125 -0
- package/lib/typescript/commonjs/hooks/useDeviceInfo.d.ts.map +1 -0
- package/lib/typescript/commonjs/hooks/useFilterManager.d.ts +59 -0
- package/lib/typescript/commonjs/hooks/useFilterManager.d.ts.map +1 -0
- package/lib/typescript/commonjs/hooks/useSafeAreaInsets.d.ts +113 -0
- package/lib/typescript/commonjs/hooks/useSafeAreaInsets.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/BenchmarkIcon.d.ts +14 -0
- package/lib/typescript/commonjs/icons/BenchmarkIcon.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/EnvLaptopIcon.d.ts +14 -0
- package/lib/typescript/commonjs/icons/EnvLaptopIcon.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/IconBackground.d.ts +10 -0
- package/lib/typescript/commonjs/icons/IconBackground.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/ReactQueryIcon.d.ts +12 -0
- package/lib/typescript/commonjs/icons/ReactQueryIcon.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/RenderCountIcon.d.ts +14 -0
- package/lib/typescript/commonjs/icons/RenderCountIcon.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/RouteMapIcon.d.ts +14 -0
- package/lib/typescript/commonjs/icons/RouteMapIcon.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/SentryBugIcon.d.ts +12 -0
- package/lib/typescript/commonjs/icons/SentryBugIcon.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/StackPulseIcon.d.ts +11 -0
- package/lib/typescript/commonjs/icons/StackPulseIcon.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/StorageStackIcon.d.ts +12 -0
- package/lib/typescript/commonjs/icons/StorageStackIcon.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/WifiCircuitIcon.d.ts +15 -0
- package/lib/typescript/commonjs/icons/WifiCircuitIcon.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/index.d.ts +15 -0
- package/lib/typescript/commonjs/icons/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/lucide-icons-original-full.d.ts +148 -0
- package/lib/typescript/commonjs/icons/lucide-icons-original-full.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/lucide-icons.d.ts +170 -0
- package/lib/typescript/commonjs/icons/lucide-icons.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/primitives/GlobeIcon.d.ts +15 -0
- package/lib/typescript/commonjs/icons/primitives/GlobeIcon.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/primitives/icon-primitives.d.ts +92 -0
- package/lib/typescript/commonjs/icons/primitives/icon-primitives.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/primitives/index.d.ts +9 -0
- package/lib/typescript/commonjs/icons/primitives/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/index.d.ts +28 -0
- package/lib/typescript/commonjs/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/license/FeatureGate.d.ts +123 -0
- package/lib/typescript/commonjs/license/FeatureGate.d.ts.map +1 -0
- package/lib/typescript/commonjs/license/LicenseEntryModal.d.ts +69 -0
- package/lib/typescript/commonjs/license/LicenseEntryModal.d.ts.map +1 -0
- package/lib/typescript/commonjs/license/ManageDevicesModal.d.ts +23 -0
- package/lib/typescript/commonjs/license/ManageDevicesModal.d.ts.map +1 -0
- package/lib/typescript/commonjs/license/index.d.ts +7 -0
- package/lib/typescript/commonjs/license/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/logger/index-sentry.d.ts +68 -0
- package/lib/typescript/commonjs/logger/index-sentry.d.ts.map +1 -0
- package/lib/typescript/commonjs/logger/index.d.ts +5 -0
- package/lib/typescript/commonjs/logger/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/logger/logDump.d.ts +5 -0
- package/lib/typescript/commonjs/logger/logDump.d.ts.map +1 -0
- package/lib/typescript/commonjs/logger/types.d.ts +100 -0
- package/lib/typescript/commonjs/logger/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/package.json +1 -0
- package/lib/typescript/commonjs/settings/components/BubbleSettingsSection.d.ts +19 -0
- package/lib/typescript/commonjs/settings/components/BubbleSettingsSection.d.ts.map +1 -0
- package/lib/typescript/commonjs/settings/index.d.ts +2 -0
- package/lib/typescript/commonjs/settings/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/storage/devToolsStorageKeys.d.ts +173 -0
- package/lib/typescript/commonjs/storage/devToolsStorageKeys.d.ts.map +1 -0
- package/lib/typescript/commonjs/storage/index.d.ts +2 -0
- package/lib/typescript/commonjs/storage/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/types/index.d.ts +2 -0
- package/lib/typescript/commonjs/types/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/types/types.d.ts +8 -0
- package/lib/typescript/commonjs/types/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/BackButton.d.ts +10 -0
- package/lib/typescript/commonjs/ui/components/BackButton.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/Badge.d.ts +41 -0
- package/lib/typescript/commonjs/ui/components/Badge.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/ClipboardHintBanner.d.ts +17 -0
- package/lib/typescript/commonjs/ui/components/ClipboardHintBanner.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/CollapsibleSection.d.ts +35 -0
- package/lib/typescript/commonjs/ui/components/CollapsibleSection.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/CompactFilterChips.d.ts +23 -0
- package/lib/typescript/commonjs/ui/components/CompactFilterChips.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/CompactRow.d.ts +21 -0
- package/lib/typescript/commonjs/ui/components/CompactRow.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/CopyButton.d.ts +41 -0
- package/lib/typescript/commonjs/ui/components/CopyButton.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/DataInspector.d.ts +35 -0
- package/lib/typescript/commonjs/ui/components/DataInspector.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/DetailView.d.ts +68 -0
- package/lib/typescript/commonjs/ui/components/DetailView.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/Divider.d.ts +2 -0
- package/lib/typescript/commonjs/ui/components/Divider.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/DraggableHeader.d.ts +35 -0
- package/lib/typescript/commonjs/ui/components/DraggableHeader.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/DynamicFilterView.d.ts +91 -0
- package/lib/typescript/commonjs/ui/components/DynamicFilterView.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/EmptyState.d.ts +43 -0
- package/lib/typescript/commonjs/ui/components/EmptyState.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/ErrorBoundary.d.ts +18 -0
- package/lib/typescript/commonjs/ui/components/ErrorBoundary.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/EventHistoryViewer/CompareBar.d.ts +15 -0
- package/lib/typescript/commonjs/ui/components/EventHistoryViewer/CompareBar.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/EventHistoryViewer/DiffModeTabs.d.ts +15 -0
- package/lib/typescript/commonjs/ui/components/EventHistoryViewer/DiffModeTabs.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/EventHistoryViewer/EventHistoryViewer.d.ts +15 -0
- package/lib/typescript/commonjs/ui/components/EventHistoryViewer/EventHistoryViewer.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/EventHistoryViewer/EventPickerModal.d.ts +15 -0
- package/lib/typescript/commonjs/ui/components/EventHistoryViewer/EventPickerModal.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/EventHistoryViewer/ViewToggleCards.d.ts +14 -0
- package/lib/typescript/commonjs/ui/components/EventHistoryViewer/ViewToggleCards.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/EventHistoryViewer/index.d.ts +13 -0
- package/lib/typescript/commonjs/ui/components/EventHistoryViewer/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/EventHistoryViewer/types.d.ts +216 -0
- package/lib/typescript/commonjs/ui/components/EventHistoryViewer/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/EventListItem.d.ts +65 -0
- package/lib/typescript/commonjs/ui/components/EventListItem.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/EventStepperFooter.d.ts +32 -0
- package/lib/typescript/commonjs/ui/components/EventStepperFooter.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/ExpandablePopover.d.ts +34 -0
- package/lib/typescript/commonjs/ui/components/ExpandablePopover.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/ExpandableSection.d.ts +15 -0
- package/lib/typescript/commonjs/ui/components/ExpandableSection.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/ExpandableSectionHeader.d.ts +13 -0
- package/lib/typescript/commonjs/ui/components/ExpandableSectionHeader.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/ExpandableSectionWithModal.d.ts +18 -0
- package/lib/typescript/commonjs/ui/components/ExpandableSectionWithModal.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/FilterComponents.d.ts +38 -0
- package/lib/typescript/commonjs/ui/components/FilterComponents.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/FilterViewPattern.d.ts +15 -0
- package/lib/typescript/commonjs/ui/components/FilterViewPattern.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/HeaderSearchButton.d.ts +9 -0
- package/lib/typescript/commonjs/ui/components/HeaderSearchButton.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/ListItem.d.ts +49 -0
- package/lib/typescript/commonjs/ui/components/ListItem.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/ModalHeader.d.ts +34 -0
- package/lib/typescript/commonjs/ui/components/ModalHeader.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/ModalHintBanner.d.ts +15 -0
- package/lib/typescript/commonjs/ui/components/ModalHintBanner.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/SearchBar.d.ts +32 -0
- package/lib/typescript/commonjs/ui/components/SearchBar.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/SectionHeader.d.ts +33 -0
- package/lib/typescript/commonjs/ui/components/SectionHeader.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/StatsCard.d.ts +45 -0
- package/lib/typescript/commonjs/ui/components/StatsCard.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/StatusIndicator.d.ts +40 -0
- package/lib/typescript/commonjs/ui/components/StatusIndicator.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/StorageTypeBadge.d.ts +9 -0
- package/lib/typescript/commonjs/ui/components/StorageTypeBadge.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/TabSelector.d.ts +12 -0
- package/lib/typescript/commonjs/ui/components/TabSelector.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/TimeDisplay.d.ts +30 -0
- package/lib/typescript/commonjs/ui/components/TimeDisplay.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/TypeBadge.d.ts +6 -0
- package/lib/typescript/commonjs/ui/components/TypeBadge.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/ValueTypeBadge.d.ts +10 -0
- package/lib/typescript/commonjs/ui/components/ValueTypeBadge.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/WindowControls.d.ts +19 -0
- package/lib/typescript/commonjs/ui/components/WindowControls.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/index.d.ts +36 -0
- package/lib/typescript/commonjs/ui/components/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/types.d.ts +3 -0
- package/lib/typescript/commonjs/ui/components/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/console/BubbleSettingsModal.d.ts +11 -0
- package/lib/typescript/commonjs/ui/console/BubbleSettingsModal.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/console/ConsoleSection.d.ts +19 -0
- package/lib/typescript/commonjs/ui/console/ConsoleSection.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/console/CyberpunkButtonOutline.d.ts +12 -0
- package/lib/typescript/commonjs/ui/console/CyberpunkButtonOutline.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/console/CyberpunkConsoleSection.d.ts +17 -0
- package/lib/typescript/commonjs/ui/console/CyberpunkConsoleSection.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/console/CyberpunkIconContainer.d.ts +9 -0
- package/lib/typescript/commonjs/ui/console/CyberpunkIconContainer.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/console/CyberpunkSectionButton.d.ts +14 -0
- package/lib/typescript/commonjs/ui/console/CyberpunkSectionButton.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/console/GalaxyButton.d.ts +10 -0
- package/lib/typescript/commonjs/ui/console/GalaxyButton.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/console/index.d.ts +2 -0
- package/lib/typescript/commonjs/ui/console/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/gameUI/components/GameUICollapsibleSection.d.ts +24 -0
- package/lib/typescript/commonjs/ui/gameUI/components/GameUICollapsibleSection.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/gameUI/components/GameUICompactStats.d.ts +40 -0
- package/lib/typescript/commonjs/ui/gameUI/components/GameUICompactStats.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/gameUI/components/GameUIIssuesList.d.ts +29 -0
- package/lib/typescript/commonjs/ui/gameUI/components/GameUIIssuesList.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/gameUI/components/GameUIStatusHeader.d.ts +16 -0
- package/lib/typescript/commonjs/ui/gameUI/components/GameUIStatusHeader.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/gameUI/constants/gameUIColors.d.ts +103 -0
- package/lib/typescript/commonjs/ui/gameUI/constants/gameUIColors.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/gameUI/constants/macOSDesignSystemColors.d.ts +157 -0
- package/lib/typescript/commonjs/ui/gameUI/constants/macOSDesignSystemColors.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/gameUI/hooks/useGameUIAlertState.d.ts +37 -0
- package/lib/typescript/commonjs/ui/gameUI/hooks/useGameUIAlertState.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/gameUI/index.d.ts +18 -0
- package/lib/typescript/commonjs/ui/gameUI/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/index.d.ts +4 -0
- package/lib/typescript/commonjs/ui/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/displayValue.d.ts +16 -0
- package/lib/typescript/commonjs/utils/displayValue.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/formatting/dataFormatting.d.ts +31 -0
- package/lib/typescript/commonjs/utils/formatting/dataFormatting.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/formatting/httpFormatting.d.ts +34 -0
- package/lib/typescript/commonjs/utils/formatting/httpFormatting.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/formatting/index.d.ts +6 -0
- package/lib/typescript/commonjs/utils/formatting/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/getSafeAreaInsets.d.ts +14 -0
- package/lib/typescript/commonjs/utils/getSafeAreaInsets.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/index.d.ts +9 -0
- package/lib/typescript/commonjs/utils/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/loadOptionalModule.d.ts +27 -0
- package/lib/typescript/commonjs/utils/loadOptionalModule.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/minimalSuperJSON.d.ts +18 -0
- package/lib/typescript/commonjs/utils/minimalSuperJSON.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/persistentStorage.d.ts +45 -0
- package/lib/typescript/commonjs/utils/persistentStorage.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/safeAsyncStorage.d.ts +35 -0
- package/lib/typescript/commonjs/utils/safeAsyncStorage.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/safeStringify.d.ts +49 -0
- package/lib/typescript/commonjs/utils/safeStringify.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/time/formatRelativeTime.d.ts +8 -0
- package/lib/typescript/commonjs/utils/time/formatRelativeTime.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/time/index.d.ts +2 -0
- package/lib/typescript/commonjs/utils/time/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/typeHelpers.d.ts +52 -0
- package/lib/typescript/commonjs/utils/typeHelpers.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/valueFormatting.d.ts +39 -0
- package/lib/typescript/commonjs/utils/valueFormatting.d.ts.map +1 -0
- package/lib/typescript/module/JsModal.d.ts +78 -0
- package/lib/typescript/module/JsModal.d.ts.map +1 -0
- package/lib/typescript/module/clipboard/autoDetectClipboard.d.ts +31 -0
- package/lib/typescript/module/clipboard/autoDetectClipboard.d.ts.map +1 -0
- package/lib/typescript/module/clipboard/clipboard-impl.d.ts +16 -0
- package/lib/typescript/module/clipboard/clipboard-impl.d.ts.map +1 -0
- package/lib/typescript/module/clipboard/copyToClipboard.d.ts +11 -0
- package/lib/typescript/module/clipboard/copyToClipboard.d.ts.map +1 -0
- package/lib/typescript/module/clipboard/index.d.ts +4 -0
- package/lib/typescript/module/clipboard/index.d.ts.map +1 -0
- package/lib/typescript/module/context/HintsContext.d.ts +30 -0
- package/lib/typescript/module/context/HintsContext.d.ts.map +1 -0
- package/lib/typescript/module/context/index.d.ts +2 -0
- package/lib/typescript/module/context/index.d.ts.map +1 -0
- package/lib/typescript/module/dataViewer/CyberpunkInput.d.ts +13 -0
- package/lib/typescript/module/dataViewer/CyberpunkInput.d.ts.map +1 -0
- package/lib/typescript/module/dataViewer/DataViewer.d.ts +24 -0
- package/lib/typescript/module/dataViewer/DataViewer.d.ts.map +1 -0
- package/lib/typescript/module/dataViewer/DiffSummary.d.ts +26 -0
- package/lib/typescript/module/dataViewer/DiffSummary.d.ts.map +1 -0
- package/lib/typescript/module/dataViewer/IndentGuides.d.ts +16 -0
- package/lib/typescript/module/dataViewer/IndentGuides.d.ts.map +1 -0
- package/lib/typescript/module/dataViewer/IndentGuidesOverlay.d.ts +19 -0
- package/lib/typescript/module/dataViewer/IndentGuidesOverlay.d.ts.map +1 -0
- package/lib/typescript/module/dataViewer/SplitDiffViewer.d.ts +40 -0
- package/lib/typescript/module/dataViewer/SplitDiffViewer.d.ts.map +1 -0
- package/lib/typescript/module/dataViewer/TypeLegend.d.ts +18 -0
- package/lib/typescript/module/dataViewer/TypeLegend.d.ts.map +1 -0
- package/lib/typescript/module/dataViewer/VirtualizedDataExplorer.d.ts +14 -0
- package/lib/typescript/module/dataViewer/VirtualizedDataExplorer.d.ts.map +1 -0
- package/lib/typescript/module/dataViewer/diffThemes.d.ts +62 -0
- package/lib/typescript/module/dataViewer/diffThemes.d.ts.map +1 -0
- package/lib/typescript/module/dataViewer/index.d.ts +14 -0
- package/lib/typescript/module/dataViewer/index.d.ts.map +1 -0
- package/lib/typescript/module/dataViewer/lineDiff.d.ts +36 -0
- package/lib/typescript/module/dataViewer/lineDiff.d.ts.map +1 -0
- package/lib/typescript/module/dataViewer/tree/TreeDiffViewer.d.ts +24 -0
- package/lib/typescript/module/dataViewer/tree/TreeDiffViewer.d.ts.map +1 -0
- package/lib/typescript/module/env/EnvironmentIndicator.d.ts +12 -0
- package/lib/typescript/module/env/EnvironmentIndicator.d.ts.map +1 -0
- package/lib/typescript/module/env/EnvironmentSelector.d.ts +18 -0
- package/lib/typescript/module/env/EnvironmentSelector.d.ts.map +1 -0
- package/lib/typescript/module/env/EnvironmentSelectorInline.d.ts +12 -0
- package/lib/typescript/module/env/EnvironmentSelectorInline.d.ts.map +1 -0
- package/lib/typescript/module/hooks/index.d.ts +5 -0
- package/lib/typescript/module/hooks/index.d.ts.map +1 -0
- package/lib/typescript/module/hooks/safe-area-impl.d.ts +24 -0
- package/lib/typescript/module/hooks/safe-area-impl.d.ts.map +1 -0
- package/lib/typescript/module/hooks/useDeviceInfo.d.ts +125 -0
- package/lib/typescript/module/hooks/useDeviceInfo.d.ts.map +1 -0
- package/lib/typescript/module/hooks/useFilterManager.d.ts +59 -0
- package/lib/typescript/module/hooks/useFilterManager.d.ts.map +1 -0
- package/lib/typescript/module/hooks/useSafeAreaInsets.d.ts +113 -0
- package/lib/typescript/module/hooks/useSafeAreaInsets.d.ts.map +1 -0
- package/lib/typescript/module/icons/BenchmarkIcon.d.ts +14 -0
- package/lib/typescript/module/icons/BenchmarkIcon.d.ts.map +1 -0
- package/lib/typescript/module/icons/EnvLaptopIcon.d.ts +14 -0
- package/lib/typescript/module/icons/EnvLaptopIcon.d.ts.map +1 -0
- package/lib/typescript/module/icons/IconBackground.d.ts +10 -0
- package/lib/typescript/module/icons/IconBackground.d.ts.map +1 -0
- package/lib/typescript/module/icons/ReactQueryIcon.d.ts +12 -0
- package/lib/typescript/module/icons/ReactQueryIcon.d.ts.map +1 -0
- package/lib/typescript/module/icons/RenderCountIcon.d.ts +14 -0
- package/lib/typescript/module/icons/RenderCountIcon.d.ts.map +1 -0
- package/lib/typescript/module/icons/RouteMapIcon.d.ts +14 -0
- package/lib/typescript/module/icons/RouteMapIcon.d.ts.map +1 -0
- package/lib/typescript/module/icons/SentryBugIcon.d.ts +12 -0
- package/lib/typescript/module/icons/SentryBugIcon.d.ts.map +1 -0
- package/lib/typescript/module/icons/StackPulseIcon.d.ts +11 -0
- package/lib/typescript/module/icons/StackPulseIcon.d.ts.map +1 -0
- package/lib/typescript/module/icons/StorageStackIcon.d.ts +12 -0
- package/lib/typescript/module/icons/StorageStackIcon.d.ts.map +1 -0
- package/lib/typescript/module/icons/WifiCircuitIcon.d.ts +15 -0
- package/lib/typescript/module/icons/WifiCircuitIcon.d.ts.map +1 -0
- package/lib/typescript/module/icons/index.d.ts +15 -0
- package/lib/typescript/module/icons/index.d.ts.map +1 -0
- package/lib/typescript/module/icons/lucide-icons-original-full.d.ts +148 -0
- package/lib/typescript/module/icons/lucide-icons-original-full.d.ts.map +1 -0
- package/lib/typescript/module/icons/lucide-icons.d.ts +170 -0
- package/lib/typescript/module/icons/lucide-icons.d.ts.map +1 -0
- package/lib/typescript/module/icons/primitives/GlobeIcon.d.ts +15 -0
- package/lib/typescript/module/icons/primitives/GlobeIcon.d.ts.map +1 -0
- package/lib/typescript/module/icons/primitives/icon-primitives.d.ts +92 -0
- package/lib/typescript/module/icons/primitives/icon-primitives.d.ts.map +1 -0
- package/lib/typescript/module/icons/primitives/index.d.ts +9 -0
- package/lib/typescript/module/icons/primitives/index.d.ts.map +1 -0
- package/lib/typescript/module/index.d.ts +28 -0
- package/lib/typescript/module/index.d.ts.map +1 -0
- package/lib/typescript/module/license/FeatureGate.d.ts +123 -0
- package/lib/typescript/module/license/FeatureGate.d.ts.map +1 -0
- package/lib/typescript/module/license/LicenseEntryModal.d.ts +69 -0
- package/lib/typescript/module/license/LicenseEntryModal.d.ts.map +1 -0
- package/lib/typescript/module/license/ManageDevicesModal.d.ts +23 -0
- package/lib/typescript/module/license/ManageDevicesModal.d.ts.map +1 -0
- package/lib/typescript/module/license/index.d.ts +7 -0
- package/lib/typescript/module/license/index.d.ts.map +1 -0
- package/lib/typescript/module/logger/index-sentry.d.ts +68 -0
- package/lib/typescript/module/logger/index-sentry.d.ts.map +1 -0
- package/lib/typescript/module/logger/index.d.ts +5 -0
- package/lib/typescript/module/logger/index.d.ts.map +1 -0
- package/lib/typescript/module/logger/logDump.d.ts +5 -0
- package/lib/typescript/module/logger/logDump.d.ts.map +1 -0
- package/lib/typescript/module/logger/types.d.ts +100 -0
- package/lib/typescript/module/logger/types.d.ts.map +1 -0
- package/lib/typescript/module/package.json +1 -0
- package/lib/typescript/module/settings/components/BubbleSettingsSection.d.ts +19 -0
- package/lib/typescript/module/settings/components/BubbleSettingsSection.d.ts.map +1 -0
- package/lib/typescript/module/settings/index.d.ts +2 -0
- package/lib/typescript/module/settings/index.d.ts.map +1 -0
- package/lib/typescript/module/storage/devToolsStorageKeys.d.ts +173 -0
- package/lib/typescript/module/storage/devToolsStorageKeys.d.ts.map +1 -0
- package/lib/typescript/module/storage/index.d.ts +2 -0
- package/lib/typescript/module/storage/index.d.ts.map +1 -0
- package/lib/typescript/module/types/index.d.ts +2 -0
- package/lib/typescript/module/types/index.d.ts.map +1 -0
- package/lib/typescript/module/types/types.d.ts +8 -0
- package/lib/typescript/module/types/types.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/BackButton.d.ts +10 -0
- package/lib/typescript/module/ui/components/BackButton.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/Badge.d.ts +41 -0
- package/lib/typescript/module/ui/components/Badge.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/ClipboardHintBanner.d.ts +17 -0
- package/lib/typescript/module/ui/components/ClipboardHintBanner.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/CollapsibleSection.d.ts +35 -0
- package/lib/typescript/module/ui/components/CollapsibleSection.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/CompactFilterChips.d.ts +23 -0
- package/lib/typescript/module/ui/components/CompactFilterChips.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/CompactRow.d.ts +21 -0
- package/lib/typescript/module/ui/components/CompactRow.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/CopyButton.d.ts +41 -0
- package/lib/typescript/module/ui/components/CopyButton.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/DataInspector.d.ts +35 -0
- package/lib/typescript/module/ui/components/DataInspector.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/DetailView.d.ts +68 -0
- package/lib/typescript/module/ui/components/DetailView.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/Divider.d.ts +2 -0
- package/lib/typescript/module/ui/components/Divider.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/DraggableHeader.d.ts +35 -0
- package/lib/typescript/module/ui/components/DraggableHeader.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/DynamicFilterView.d.ts +91 -0
- package/lib/typescript/module/ui/components/DynamicFilterView.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/EmptyState.d.ts +43 -0
- package/lib/typescript/module/ui/components/EmptyState.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/ErrorBoundary.d.ts +18 -0
- package/lib/typescript/module/ui/components/ErrorBoundary.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/EventHistoryViewer/CompareBar.d.ts +15 -0
- package/lib/typescript/module/ui/components/EventHistoryViewer/CompareBar.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/EventHistoryViewer/DiffModeTabs.d.ts +15 -0
- package/lib/typescript/module/ui/components/EventHistoryViewer/DiffModeTabs.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/EventHistoryViewer/EventHistoryViewer.d.ts +15 -0
- package/lib/typescript/module/ui/components/EventHistoryViewer/EventHistoryViewer.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/EventHistoryViewer/EventPickerModal.d.ts +15 -0
- package/lib/typescript/module/ui/components/EventHistoryViewer/EventPickerModal.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/EventHistoryViewer/ViewToggleCards.d.ts +14 -0
- package/lib/typescript/module/ui/components/EventHistoryViewer/ViewToggleCards.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/EventHistoryViewer/index.d.ts +13 -0
- package/lib/typescript/module/ui/components/EventHistoryViewer/index.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/EventHistoryViewer/types.d.ts +216 -0
- package/lib/typescript/module/ui/components/EventHistoryViewer/types.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/EventListItem.d.ts +65 -0
- package/lib/typescript/module/ui/components/EventListItem.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/EventStepperFooter.d.ts +32 -0
- package/lib/typescript/module/ui/components/EventStepperFooter.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/ExpandablePopover.d.ts +34 -0
- package/lib/typescript/module/ui/components/ExpandablePopover.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/ExpandableSection.d.ts +15 -0
- package/lib/typescript/module/ui/components/ExpandableSection.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/ExpandableSectionHeader.d.ts +13 -0
- package/lib/typescript/module/ui/components/ExpandableSectionHeader.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/ExpandableSectionWithModal.d.ts +18 -0
- package/lib/typescript/module/ui/components/ExpandableSectionWithModal.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/FilterComponents.d.ts +38 -0
- package/lib/typescript/module/ui/components/FilterComponents.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/FilterViewPattern.d.ts +15 -0
- package/lib/typescript/module/ui/components/FilterViewPattern.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/HeaderSearchButton.d.ts +9 -0
- package/lib/typescript/module/ui/components/HeaderSearchButton.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/ListItem.d.ts +49 -0
- package/lib/typescript/module/ui/components/ListItem.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/ModalHeader.d.ts +34 -0
- package/lib/typescript/module/ui/components/ModalHeader.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/ModalHintBanner.d.ts +15 -0
- package/lib/typescript/module/ui/components/ModalHintBanner.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/SearchBar.d.ts +32 -0
- package/lib/typescript/module/ui/components/SearchBar.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/SectionHeader.d.ts +33 -0
- package/lib/typescript/module/ui/components/SectionHeader.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/StatsCard.d.ts +45 -0
- package/lib/typescript/module/ui/components/StatsCard.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/StatusIndicator.d.ts +40 -0
- package/lib/typescript/module/ui/components/StatusIndicator.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/StorageTypeBadge.d.ts +9 -0
- package/lib/typescript/module/ui/components/StorageTypeBadge.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/TabSelector.d.ts +12 -0
- package/lib/typescript/module/ui/components/TabSelector.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/TimeDisplay.d.ts +30 -0
- package/lib/typescript/module/ui/components/TimeDisplay.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/TypeBadge.d.ts +6 -0
- package/lib/typescript/module/ui/components/TypeBadge.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/ValueTypeBadge.d.ts +10 -0
- package/lib/typescript/module/ui/components/ValueTypeBadge.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/WindowControls.d.ts +19 -0
- package/lib/typescript/module/ui/components/WindowControls.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/index.d.ts +36 -0
- package/lib/typescript/module/ui/components/index.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/types.d.ts +3 -0
- package/lib/typescript/module/ui/components/types.d.ts.map +1 -0
- package/lib/typescript/module/ui/console/BubbleSettingsModal.d.ts +11 -0
- package/lib/typescript/module/ui/console/BubbleSettingsModal.d.ts.map +1 -0
- package/lib/typescript/module/ui/console/ConsoleSection.d.ts +19 -0
- package/lib/typescript/module/ui/console/ConsoleSection.d.ts.map +1 -0
- package/lib/typescript/module/ui/console/CyberpunkButtonOutline.d.ts +12 -0
- package/lib/typescript/module/ui/console/CyberpunkButtonOutline.d.ts.map +1 -0
- package/lib/typescript/module/ui/console/CyberpunkConsoleSection.d.ts +17 -0
- package/lib/typescript/module/ui/console/CyberpunkConsoleSection.d.ts.map +1 -0
- package/lib/typescript/module/ui/console/CyberpunkIconContainer.d.ts +9 -0
- package/lib/typescript/module/ui/console/CyberpunkIconContainer.d.ts.map +1 -0
- package/lib/typescript/module/ui/console/CyberpunkSectionButton.d.ts +14 -0
- package/lib/typescript/module/ui/console/CyberpunkSectionButton.d.ts.map +1 -0
- package/lib/typescript/module/ui/console/GalaxyButton.d.ts +10 -0
- package/lib/typescript/module/ui/console/GalaxyButton.d.ts.map +1 -0
- package/lib/typescript/module/ui/console/index.d.ts +2 -0
- package/lib/typescript/module/ui/console/index.d.ts.map +1 -0
- package/lib/typescript/module/ui/gameUI/components/GameUICollapsibleSection.d.ts +24 -0
- package/lib/typescript/module/ui/gameUI/components/GameUICollapsibleSection.d.ts.map +1 -0
- package/lib/typescript/module/ui/gameUI/components/GameUICompactStats.d.ts +40 -0
- package/lib/typescript/module/ui/gameUI/components/GameUICompactStats.d.ts.map +1 -0
- package/lib/typescript/module/ui/gameUI/components/GameUIIssuesList.d.ts +29 -0
- package/lib/typescript/module/ui/gameUI/components/GameUIIssuesList.d.ts.map +1 -0
- package/lib/typescript/module/ui/gameUI/components/GameUIStatusHeader.d.ts +16 -0
- package/lib/typescript/module/ui/gameUI/components/GameUIStatusHeader.d.ts.map +1 -0
- package/lib/typescript/module/ui/gameUI/constants/gameUIColors.d.ts +103 -0
- package/lib/typescript/module/ui/gameUI/constants/gameUIColors.d.ts.map +1 -0
- package/lib/typescript/module/ui/gameUI/constants/macOSDesignSystemColors.d.ts +157 -0
- package/lib/typescript/module/ui/gameUI/constants/macOSDesignSystemColors.d.ts.map +1 -0
- package/lib/typescript/module/ui/gameUI/hooks/useGameUIAlertState.d.ts +37 -0
- package/lib/typescript/module/ui/gameUI/hooks/useGameUIAlertState.d.ts.map +1 -0
- package/lib/typescript/module/ui/gameUI/index.d.ts +18 -0
- package/lib/typescript/module/ui/gameUI/index.d.ts.map +1 -0
- package/lib/typescript/module/ui/index.d.ts +4 -0
- package/lib/typescript/module/ui/index.d.ts.map +1 -0
- package/lib/typescript/module/utils/displayValue.d.ts +16 -0
- package/lib/typescript/module/utils/displayValue.d.ts.map +1 -0
- package/lib/typescript/module/utils/formatting/dataFormatting.d.ts +31 -0
- package/lib/typescript/module/utils/formatting/dataFormatting.d.ts.map +1 -0
- package/lib/typescript/module/utils/formatting/httpFormatting.d.ts +34 -0
- package/lib/typescript/module/utils/formatting/httpFormatting.d.ts.map +1 -0
- package/lib/typescript/module/utils/formatting/index.d.ts +6 -0
- package/lib/typescript/module/utils/formatting/index.d.ts.map +1 -0
- package/lib/typescript/module/utils/getSafeAreaInsets.d.ts +14 -0
- package/lib/typescript/module/utils/getSafeAreaInsets.d.ts.map +1 -0
- package/lib/typescript/module/utils/index.d.ts +9 -0
- package/lib/typescript/module/utils/index.d.ts.map +1 -0
- package/lib/typescript/module/utils/loadOptionalModule.d.ts +27 -0
- package/lib/typescript/module/utils/loadOptionalModule.d.ts.map +1 -0
- package/lib/typescript/module/utils/minimalSuperJSON.d.ts +18 -0
- package/lib/typescript/module/utils/minimalSuperJSON.d.ts.map +1 -0
- package/lib/typescript/module/utils/persistentStorage.d.ts +45 -0
- package/lib/typescript/module/utils/persistentStorage.d.ts.map +1 -0
- package/lib/typescript/module/utils/safeAsyncStorage.d.ts +35 -0
- package/lib/typescript/module/utils/safeAsyncStorage.d.ts.map +1 -0
- package/lib/typescript/module/utils/safeStringify.d.ts +49 -0
- package/lib/typescript/module/utils/safeStringify.d.ts.map +1 -0
- package/lib/typescript/module/utils/time/formatRelativeTime.d.ts +8 -0
- package/lib/typescript/module/utils/time/formatRelativeTime.d.ts.map +1 -0
- package/lib/typescript/module/utils/time/index.d.ts +2 -0
- package/lib/typescript/module/utils/time/index.d.ts.map +1 -0
- package/lib/typescript/module/utils/typeHelpers.d.ts +52 -0
- package/lib/typescript/module/utils/typeHelpers.d.ts.map +1 -0
- package/lib/typescript/module/utils/valueFormatting.d.ts +39 -0
- package/lib/typescript/module/utils/valueFormatting.d.ts.map +1 -0
- package/package.json +172 -0
- package/scripts/detect-clipboard.js +137 -0
- package/scripts/detect-safe-area.js +130 -0
|
@@ -0,0 +1,524 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.getDeviceInfo = getDeviceInfo;
|
|
7
|
+
exports.logDeviceInfo = logDeviceInfo;
|
|
8
|
+
exports.useDeviceInfo = useDeviceInfo;
|
|
9
|
+
var _react = require("react");
|
|
10
|
+
var _reactNative = require("react-native");
|
|
11
|
+
/**
|
|
12
|
+
* Comprehensive device information hook
|
|
13
|
+
*
|
|
14
|
+
* Extracts every available piece of device information from React Native core APIs
|
|
15
|
+
* without requiring third-party native modules.
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
// ============================================================================
|
|
19
|
+
// TYPES
|
|
20
|
+
// ============================================================================
|
|
21
|
+
|
|
22
|
+
// ============================================================================
|
|
23
|
+
// HELPER FUNCTIONS
|
|
24
|
+
// ============================================================================
|
|
25
|
+
|
|
26
|
+
async function getAccessibilitySettings() {
|
|
27
|
+
const [isScreenReaderEnabled, isReduceMotionEnabled, isReduceTransparencyEnabled] = await Promise.all([_reactNative.AccessibilityInfo.isScreenReaderEnabled(), _reactNative.AccessibilityInfo.isReduceMotionEnabled(), _reactNative.AccessibilityInfo.isReduceTransparencyEnabled()]);
|
|
28
|
+
const settings = {
|
|
29
|
+
isScreenReaderEnabled,
|
|
30
|
+
isReduceMotionEnabled,
|
|
31
|
+
isReduceTransparencyEnabled
|
|
32
|
+
};
|
|
33
|
+
if (_reactNative.Platform.OS === "ios") {
|
|
34
|
+
const [isBoldTextEnabled, isGrayscaleEnabled, isInvertColorsEnabled, isDarkerSystemColorsEnabled, prefersCrossFadeTransitions] = await Promise.all([_reactNative.AccessibilityInfo.isBoldTextEnabled?.() ?? Promise.resolve(false), _reactNative.AccessibilityInfo.isGrayscaleEnabled?.() ?? Promise.resolve(false), _reactNative.AccessibilityInfo.isInvertColorsEnabled?.() ?? Promise.resolve(false),
|
|
35
|
+
// @ts-ignore - may not be typed
|
|
36
|
+
_reactNative.AccessibilityInfo.isDarkerSystemColorsEnabled?.() ?? Promise.resolve(false),
|
|
37
|
+
// @ts-ignore - may not be typed
|
|
38
|
+
_reactNative.AccessibilityInfo.prefersCrossFadeTransitions?.() ?? Promise.resolve(false)]);
|
|
39
|
+
settings.isBoldTextEnabled = isBoldTextEnabled;
|
|
40
|
+
settings.isGrayscaleEnabled = isGrayscaleEnabled;
|
|
41
|
+
settings.isInvertColorsEnabled = isInvertColorsEnabled;
|
|
42
|
+
settings.isDarkerSystemColorsEnabled = isDarkerSystemColorsEnabled;
|
|
43
|
+
settings.prefersCrossFadeTransitions = prefersCrossFadeTransitions;
|
|
44
|
+
}
|
|
45
|
+
if (_reactNative.Platform.OS === "android") {
|
|
46
|
+
// @ts-ignore - may not be typed
|
|
47
|
+
const isHighTextContrastEnabled = (await _reactNative.AccessibilityInfo.isHighTextContrastEnabled?.()) ?? false;
|
|
48
|
+
settings.isHighTextContrastEnabled = isHighTextContrastEnabled;
|
|
49
|
+
}
|
|
50
|
+
return settings;
|
|
51
|
+
}
|
|
52
|
+
function getPlatformInfo() {
|
|
53
|
+
const constants = _reactNative.Platform.constants;
|
|
54
|
+
const base = {
|
|
55
|
+
os: _reactNative.Platform.OS,
|
|
56
|
+
version: _reactNative.Platform.Version,
|
|
57
|
+
reactNativeVersion: constants.reactNativeVersion,
|
|
58
|
+
isTesting: _reactNative.Platform.isTesting ?? false,
|
|
59
|
+
isDisableAnimations: constants.isDisableAnimations ?? false
|
|
60
|
+
};
|
|
61
|
+
if (_reactNative.Platform.OS === "ios") {
|
|
62
|
+
return {
|
|
63
|
+
...base,
|
|
64
|
+
osVersion: constants.osVersion,
|
|
65
|
+
systemName: constants.systemName,
|
|
66
|
+
interfaceIdiom: constants.interfaceIdiom,
|
|
67
|
+
isPad: _reactNative.Platform.isPad,
|
|
68
|
+
isTV: _reactNative.Platform.isTV,
|
|
69
|
+
isVision: _reactNative.Platform.isVision ?? false,
|
|
70
|
+
isMacCatalyst: _reactNative.Platform.isMacCatalyst ?? false,
|
|
71
|
+
forceTouchAvailable: constants.forceTouchAvailable
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
if (_reactNative.Platform.OS === "android") {
|
|
75
|
+
return {
|
|
76
|
+
...base,
|
|
77
|
+
apiLevel: constants.Version,
|
|
78
|
+
release: constants.Release,
|
|
79
|
+
brand: constants.Brand,
|
|
80
|
+
manufacturer: constants.Manufacturer,
|
|
81
|
+
model: constants.Model,
|
|
82
|
+
fingerprint: constants.Fingerprint,
|
|
83
|
+
serial: constants.Serial,
|
|
84
|
+
uiMode: constants.uiMode
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
return base;
|
|
88
|
+
}
|
|
89
|
+
function getDisplayInfo() {
|
|
90
|
+
const window = _reactNative.Dimensions.get("window");
|
|
91
|
+
const screen = _reactNative.Dimensions.get("screen");
|
|
92
|
+
const info = {
|
|
93
|
+
window: {
|
|
94
|
+
width: window.width,
|
|
95
|
+
height: window.height,
|
|
96
|
+
scale: window.scale,
|
|
97
|
+
fontScale: window.fontScale
|
|
98
|
+
},
|
|
99
|
+
screen: {
|
|
100
|
+
width: screen.width,
|
|
101
|
+
height: screen.height,
|
|
102
|
+
scale: screen.scale,
|
|
103
|
+
fontScale: screen.fontScale
|
|
104
|
+
},
|
|
105
|
+
pixelRatio: _reactNative.PixelRatio.get(),
|
|
106
|
+
fontScale: _reactNative.PixelRatio.getFontScale(),
|
|
107
|
+
isLandscape: window.width > window.height,
|
|
108
|
+
isPortrait: window.height > window.width
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
// iOS specific
|
|
112
|
+
if (_reactNative.Platform.OS === "ios") {
|
|
113
|
+
try {
|
|
114
|
+
const deviceInfo = _reactNative.NativeModules.DeviceInfo?.getConstants?.();
|
|
115
|
+
info.isIPhoneNotched = deviceInfo?.isIPhoneX_deprecated ?? false;
|
|
116
|
+
} catch {
|
|
117
|
+
info.isIPhoneNotched = false;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
// Android specific
|
|
122
|
+
if (_reactNative.Platform.OS === "android") {
|
|
123
|
+
try {
|
|
124
|
+
const deviceInfo = _reactNative.NativeModules.DeviceInfo?.getConstants?.();
|
|
125
|
+
info.isEdgeToEdge = deviceInfo?.isEdgeToEdge ?? false;
|
|
126
|
+
// densityDpi can be derived from scale: scale * 160
|
|
127
|
+
info.densityDpi = Math.round(window.scale * 160);
|
|
128
|
+
} catch {
|
|
129
|
+
// Ignore
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
return info;
|
|
133
|
+
}
|
|
134
|
+
async function getStatusBarHeight() {
|
|
135
|
+
return new Promise(resolve => {
|
|
136
|
+
let resolved = false;
|
|
137
|
+
if (_reactNative.Platform.OS === "ios") {
|
|
138
|
+
_reactNative.NativeModules.StatusBarManager?.getHeight?.(result => {
|
|
139
|
+
if (!resolved) {
|
|
140
|
+
resolved = true;
|
|
141
|
+
resolve(result?.height ?? null);
|
|
142
|
+
}
|
|
143
|
+
}) ?? resolve(null);
|
|
144
|
+
} else if (_reactNative.Platform.OS === "android") {
|
|
145
|
+
// Android StatusBar.currentHeight is synchronous
|
|
146
|
+
resolved = true;
|
|
147
|
+
resolve(_reactNative.StatusBar.currentHeight ?? null);
|
|
148
|
+
} else {
|
|
149
|
+
resolved = true;
|
|
150
|
+
resolve(null);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
// Timeout fallback
|
|
154
|
+
setTimeout(() => {
|
|
155
|
+
if (!resolved) {
|
|
156
|
+
resolved = true;
|
|
157
|
+
resolve(null);
|
|
158
|
+
}
|
|
159
|
+
}, 100);
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
function getLocaleInfo() {
|
|
163
|
+
const info = {
|
|
164
|
+
isRTL: _reactNative.I18nManager.isRTL,
|
|
165
|
+
doLeftAndRightSwapInRTL: _reactNative.I18nManager.doLeftAndRightSwapInRTL
|
|
166
|
+
};
|
|
167
|
+
if (_reactNative.Platform.OS === "android") {
|
|
168
|
+
// @ts-ignore
|
|
169
|
+
info.localeIdentifier = _reactNative.I18nManager.localeIdentifier;
|
|
170
|
+
}
|
|
171
|
+
return info;
|
|
172
|
+
}
|
|
173
|
+
function getSettingsInfo() {
|
|
174
|
+
if (_reactNative.Platform.OS === "ios") {
|
|
175
|
+
try {
|
|
176
|
+
// This returns the entire NSUserDefaults dictionary
|
|
177
|
+
const constants = _reactNative.NativeModules.SettingsManager?.getConstants?.();
|
|
178
|
+
return {
|
|
179
|
+
userDefaults: constants?.settings ?? {}
|
|
180
|
+
};
|
|
181
|
+
} catch {
|
|
182
|
+
return {};
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
return {};
|
|
186
|
+
}
|
|
187
|
+
function getUniqueIdentifiers() {
|
|
188
|
+
const identifiers = {};
|
|
189
|
+
if (_reactNative.Platform.OS === "android") {
|
|
190
|
+
const constants = _reactNative.Platform.constants;
|
|
191
|
+
identifiers.serial = constants.Serial;
|
|
192
|
+
identifiers.fingerprint = constants.Fingerprint;
|
|
193
|
+
|
|
194
|
+
// Note: getAndroidID() requires calling native method
|
|
195
|
+
try {
|
|
196
|
+
const PlatformConstants = _reactNative.NativeModules.PlatformConstants;
|
|
197
|
+
if (PlatformConstants?.getAndroidID) {
|
|
198
|
+
identifiers.androidId = PlatformConstants.getAndroidID();
|
|
199
|
+
}
|
|
200
|
+
} catch {
|
|
201
|
+
// Ignore
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
return identifiers;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* Generate a device fingerprint hash from stable properties
|
|
209
|
+
*/
|
|
210
|
+
function generateFingerprint(info) {
|
|
211
|
+
const components = [
|
|
212
|
+
// Platform
|
|
213
|
+
info.platform.os, info.platform.version,
|
|
214
|
+
// Display (most stable - identifies device model)
|
|
215
|
+
info.display.window.width, info.display.window.height, info.display.pixelRatio,
|
|
216
|
+
// iOS specific
|
|
217
|
+
info.platform.interfaceIdiom ?? "", info.platform.forceTouchAvailable ?? false, info.display.isIPhoneNotched ?? false,
|
|
218
|
+
// Android specific
|
|
219
|
+
info.platform.model ?? "", info.platform.brand ?? "", info.platform.manufacturer ?? "", info.platform.uiMode ?? ""];
|
|
220
|
+
|
|
221
|
+
// Simple hash function
|
|
222
|
+
const str = components.join("|");
|
|
223
|
+
let hash = 0;
|
|
224
|
+
for (let i = 0; i < str.length; i++) {
|
|
225
|
+
const char = str.charCodeAt(i);
|
|
226
|
+
hash = (hash << 5) - hash + char;
|
|
227
|
+
hash = hash & hash; // Convert to 32-bit integer
|
|
228
|
+
}
|
|
229
|
+
return Math.abs(hash).toString(16).padStart(8, "0");
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
// ============================================================================
|
|
233
|
+
// THE HOOK
|
|
234
|
+
// ============================================================================
|
|
235
|
+
|
|
236
|
+
function useDeviceInfo() {
|
|
237
|
+
const [isLoading, setIsLoading] = (0, _react.useState)(true);
|
|
238
|
+
const [platform, setPlatform] = (0, _react.useState)(getPlatformInfo());
|
|
239
|
+
const [display, setDisplay] = (0, _react.useState)(getDisplayInfo());
|
|
240
|
+
const [accessibility, setAccessibility] = (0, _react.useState)({
|
|
241
|
+
isScreenReaderEnabled: false,
|
|
242
|
+
isReduceMotionEnabled: false,
|
|
243
|
+
isReduceTransparencyEnabled: false
|
|
244
|
+
});
|
|
245
|
+
const [appearance, setAppearance] = (0, _react.useState)(() => {
|
|
246
|
+
const colorScheme = _reactNative.Appearance.getColorScheme() ?? null;
|
|
247
|
+
return {
|
|
248
|
+
colorScheme,
|
|
249
|
+
prefersDarkMode: colorScheme === "dark"
|
|
250
|
+
};
|
|
251
|
+
});
|
|
252
|
+
const [locale, setLocale] = (0, _react.useState)(getLocaleInfo());
|
|
253
|
+
const [statusBar, setStatusBar] = (0, _react.useState)({
|
|
254
|
+
height: null,
|
|
255
|
+
isVisible: true
|
|
256
|
+
});
|
|
257
|
+
const [keyboard, setKeyboard] = (0, _react.useState)({
|
|
258
|
+
isVisible: false,
|
|
259
|
+
height: 0,
|
|
260
|
+
animationDuration: 0
|
|
261
|
+
});
|
|
262
|
+
const [appStateInfo, setAppStateInfo] = (0, _react.useState)({
|
|
263
|
+
currentState: _reactNative.AppState.currentState,
|
|
264
|
+
isActive: _reactNative.AppState.currentState === "active"
|
|
265
|
+
});
|
|
266
|
+
const [identifiers, setIdentifiers] = (0, _react.useState)(getUniqueIdentifiers());
|
|
267
|
+
const [settings, setSettings] = (0, _react.useState)(getSettingsInfo());
|
|
268
|
+
const [timestamp, setTimestamp] = (0, _react.useState)(Date.now());
|
|
269
|
+
|
|
270
|
+
// Refresh function
|
|
271
|
+
const refresh = (0, _react.useCallback)(async () => {
|
|
272
|
+
setIsLoading(true);
|
|
273
|
+
const [accessibilitySettings, statusBarHeight] = await Promise.all([getAccessibilitySettings(), getStatusBarHeight()]);
|
|
274
|
+
setPlatform(getPlatformInfo());
|
|
275
|
+
setDisplay(getDisplayInfo());
|
|
276
|
+
setAccessibility(accessibilitySettings);
|
|
277
|
+
const currentColorScheme = _reactNative.Appearance.getColorScheme() ?? null;
|
|
278
|
+
setAppearance({
|
|
279
|
+
colorScheme: currentColorScheme,
|
|
280
|
+
prefersDarkMode: currentColorScheme === "dark"
|
|
281
|
+
});
|
|
282
|
+
setLocale(getLocaleInfo());
|
|
283
|
+
setStatusBar(prev => ({
|
|
284
|
+
...prev,
|
|
285
|
+
height: statusBarHeight
|
|
286
|
+
}));
|
|
287
|
+
setIdentifiers(getUniqueIdentifiers());
|
|
288
|
+
setSettings(getSettingsInfo());
|
|
289
|
+
setTimestamp(Date.now());
|
|
290
|
+
setIsLoading(false);
|
|
291
|
+
}, []);
|
|
292
|
+
|
|
293
|
+
// Initial load
|
|
294
|
+
(0, _react.useEffect)(() => {
|
|
295
|
+
refresh();
|
|
296
|
+
}, [refresh]);
|
|
297
|
+
|
|
298
|
+
// Dimension changes
|
|
299
|
+
(0, _react.useEffect)(() => {
|
|
300
|
+
const subscription = _reactNative.Dimensions.addEventListener("change", ({
|
|
301
|
+
window,
|
|
302
|
+
screen
|
|
303
|
+
}) => {
|
|
304
|
+
setDisplay(prev => ({
|
|
305
|
+
...prev,
|
|
306
|
+
window: {
|
|
307
|
+
width: window.width,
|
|
308
|
+
height: window.height,
|
|
309
|
+
scale: window.scale,
|
|
310
|
+
fontScale: window.fontScale
|
|
311
|
+
},
|
|
312
|
+
screen: {
|
|
313
|
+
width: screen.width,
|
|
314
|
+
height: screen.height,
|
|
315
|
+
scale: screen.scale,
|
|
316
|
+
fontScale: screen.fontScale
|
|
317
|
+
},
|
|
318
|
+
isLandscape: window.width > window.height,
|
|
319
|
+
isPortrait: window.height > window.width
|
|
320
|
+
}));
|
|
321
|
+
});
|
|
322
|
+
return () => subscription.remove();
|
|
323
|
+
}, []);
|
|
324
|
+
|
|
325
|
+
// Appearance changes
|
|
326
|
+
(0, _react.useEffect)(() => {
|
|
327
|
+
const subscription = _reactNative.Appearance.addChangeListener(({
|
|
328
|
+
colorScheme
|
|
329
|
+
}) => {
|
|
330
|
+
const scheme = colorScheme ?? null;
|
|
331
|
+
setAppearance({
|
|
332
|
+
colorScheme: scheme,
|
|
333
|
+
prefersDarkMode: scheme === "dark"
|
|
334
|
+
});
|
|
335
|
+
});
|
|
336
|
+
return () => subscription.remove();
|
|
337
|
+
}, []);
|
|
338
|
+
|
|
339
|
+
// Keyboard changes
|
|
340
|
+
(0, _react.useEffect)(() => {
|
|
341
|
+
const showListener = _reactNative.Keyboard.addListener(_reactNative.Platform.OS === "ios" ? "keyboardWillShow" : "keyboardDidShow", event => {
|
|
342
|
+
setKeyboard({
|
|
343
|
+
isVisible: true,
|
|
344
|
+
height: event.endCoordinates.height,
|
|
345
|
+
animationDuration: event.duration ?? 0
|
|
346
|
+
});
|
|
347
|
+
});
|
|
348
|
+
const hideListener = _reactNative.Keyboard.addListener(_reactNative.Platform.OS === "ios" ? "keyboardWillHide" : "keyboardDidHide", event => {
|
|
349
|
+
setKeyboard({
|
|
350
|
+
isVisible: false,
|
|
351
|
+
height: 0,
|
|
352
|
+
animationDuration: event.duration ?? 0
|
|
353
|
+
});
|
|
354
|
+
});
|
|
355
|
+
return () => {
|
|
356
|
+
showListener.remove();
|
|
357
|
+
hideListener.remove();
|
|
358
|
+
};
|
|
359
|
+
}, []);
|
|
360
|
+
|
|
361
|
+
// App state changes
|
|
362
|
+
(0, _react.useEffect)(() => {
|
|
363
|
+
const subscription = _reactNative.AppState.addEventListener("change", nextState => {
|
|
364
|
+
setAppStateInfo({
|
|
365
|
+
currentState: nextState,
|
|
366
|
+
isActive: nextState === "active"
|
|
367
|
+
});
|
|
368
|
+
});
|
|
369
|
+
return () => subscription.remove();
|
|
370
|
+
}, []);
|
|
371
|
+
|
|
372
|
+
// Accessibility changes
|
|
373
|
+
(0, _react.useEffect)(() => {
|
|
374
|
+
const listeners = [_reactNative.AccessibilityInfo.addEventListener("screenReaderChanged", isEnabled => {
|
|
375
|
+
setAccessibility(prev => ({
|
|
376
|
+
...prev,
|
|
377
|
+
isScreenReaderEnabled: isEnabled
|
|
378
|
+
}));
|
|
379
|
+
}), _reactNative.AccessibilityInfo.addEventListener("reduceMotionChanged", isEnabled => {
|
|
380
|
+
setAccessibility(prev => ({
|
|
381
|
+
...prev,
|
|
382
|
+
isReduceMotionEnabled: isEnabled
|
|
383
|
+
}));
|
|
384
|
+
}), _reactNative.AccessibilityInfo.addEventListener("reduceTransparencyChanged", isEnabled => {
|
|
385
|
+
setAccessibility(prev => ({
|
|
386
|
+
...prev,
|
|
387
|
+
isReduceTransparencyEnabled: isEnabled
|
|
388
|
+
}));
|
|
389
|
+
})];
|
|
390
|
+
if (_reactNative.Platform.OS === "ios") {
|
|
391
|
+
// iOS-specific accessibility events - using type assertion for non-standard events
|
|
392
|
+
const addIOSListener = (eventName, handler) => {
|
|
393
|
+
return _reactNative.AccessibilityInfo.addEventListener(eventName, handler);
|
|
394
|
+
};
|
|
395
|
+
listeners.push(addIOSListener("boldTextChanged", isEnabled => {
|
|
396
|
+
setAccessibility(prev => ({
|
|
397
|
+
...prev,
|
|
398
|
+
isBoldTextEnabled: isEnabled
|
|
399
|
+
}));
|
|
400
|
+
}), addIOSListener("grayscaleChanged", isEnabled => {
|
|
401
|
+
setAccessibility(prev => ({
|
|
402
|
+
...prev,
|
|
403
|
+
isGrayscaleEnabled: isEnabled
|
|
404
|
+
}));
|
|
405
|
+
}), addIOSListener("invertColorsChanged", isEnabled => {
|
|
406
|
+
setAccessibility(prev => ({
|
|
407
|
+
...prev,
|
|
408
|
+
isInvertColorsEnabled: isEnabled
|
|
409
|
+
}));
|
|
410
|
+
}));
|
|
411
|
+
}
|
|
412
|
+
return () => {
|
|
413
|
+
listeners.forEach(listener => listener.remove());
|
|
414
|
+
};
|
|
415
|
+
}, []);
|
|
416
|
+
const deviceInfo = {
|
|
417
|
+
platform,
|
|
418
|
+
display,
|
|
419
|
+
accessibility,
|
|
420
|
+
appearance,
|
|
421
|
+
locale,
|
|
422
|
+
statusBar,
|
|
423
|
+
keyboard,
|
|
424
|
+
appState: appStateInfo,
|
|
425
|
+
identifiers,
|
|
426
|
+
settings,
|
|
427
|
+
timestamp,
|
|
428
|
+
isLoading,
|
|
429
|
+
refresh,
|
|
430
|
+
generateFingerprint: () => generateFingerprint({
|
|
431
|
+
platform,
|
|
432
|
+
display,
|
|
433
|
+
accessibility,
|
|
434
|
+
appearance,
|
|
435
|
+
locale,
|
|
436
|
+
statusBar,
|
|
437
|
+
keyboard,
|
|
438
|
+
appState: appStateInfo,
|
|
439
|
+
identifiers,
|
|
440
|
+
settings,
|
|
441
|
+
timestamp,
|
|
442
|
+
isLoading
|
|
443
|
+
})
|
|
444
|
+
};
|
|
445
|
+
return deviceInfo;
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
// ============================================================================
|
|
449
|
+
// STATIC HELPER (for one-time retrieval without hooks)
|
|
450
|
+
// ============================================================================
|
|
451
|
+
|
|
452
|
+
async function getDeviceInfo() {
|
|
453
|
+
const [accessibilitySettings, statusBarHeight] = await Promise.all([getAccessibilitySettings(), getStatusBarHeight()]);
|
|
454
|
+
const colorScheme = _reactNative.Appearance.getColorScheme() ?? null;
|
|
455
|
+
return {
|
|
456
|
+
platform: getPlatformInfo(),
|
|
457
|
+
display: getDisplayInfo(),
|
|
458
|
+
accessibility: accessibilitySettings,
|
|
459
|
+
appearance: {
|
|
460
|
+
colorScheme,
|
|
461
|
+
prefersDarkMode: colorScheme === "dark"
|
|
462
|
+
},
|
|
463
|
+
locale: getLocaleInfo(),
|
|
464
|
+
statusBar: {
|
|
465
|
+
height: statusBarHeight,
|
|
466
|
+
isVisible: true
|
|
467
|
+
},
|
|
468
|
+
keyboard: {
|
|
469
|
+
isVisible: false,
|
|
470
|
+
height: 0,
|
|
471
|
+
animationDuration: 0
|
|
472
|
+
},
|
|
473
|
+
appState: {
|
|
474
|
+
currentState: _reactNative.AppState.currentState,
|
|
475
|
+
isActive: _reactNative.AppState.currentState === "active"
|
|
476
|
+
},
|
|
477
|
+
identifiers: getUniqueIdentifiers(),
|
|
478
|
+
settings: getSettingsInfo(),
|
|
479
|
+
timestamp: Date.now(),
|
|
480
|
+
isLoading: false
|
|
481
|
+
};
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
// ============================================================================
|
|
485
|
+
// DEBUG COMPONENT
|
|
486
|
+
// ============================================================================
|
|
487
|
+
|
|
488
|
+
/**
|
|
489
|
+
* Log all device info to console
|
|
490
|
+
* Use this to validate all device info is being collected correctly
|
|
491
|
+
*/
|
|
492
|
+
function logDeviceInfo(info) {
|
|
493
|
+
console.log("\n========================================");
|
|
494
|
+
console.log(" DEVICE INFO REPORT");
|
|
495
|
+
console.log("========================================\n");
|
|
496
|
+
console.log("--- PLATFORM ---");
|
|
497
|
+
console.log(JSON.stringify(info.platform, null, 2));
|
|
498
|
+
console.log("\n--- DISPLAY ---");
|
|
499
|
+
console.log(JSON.stringify(info.display, null, 2));
|
|
500
|
+
console.log("\n--- ACCESSIBILITY ---");
|
|
501
|
+
console.log(JSON.stringify(info.accessibility, null, 2));
|
|
502
|
+
console.log("\n--- APPEARANCE ---");
|
|
503
|
+
console.log(JSON.stringify(info.appearance, null, 2));
|
|
504
|
+
console.log("\n--- LOCALE ---");
|
|
505
|
+
console.log(JSON.stringify(info.locale, null, 2));
|
|
506
|
+
console.log("\n--- STATUS BAR ---");
|
|
507
|
+
console.log(JSON.stringify(info.statusBar, null, 2));
|
|
508
|
+
console.log("\n--- KEYBOARD ---");
|
|
509
|
+
console.log(JSON.stringify(info.keyboard, null, 2));
|
|
510
|
+
console.log("\n--- APP STATE ---");
|
|
511
|
+
console.log(JSON.stringify(info.appState, null, 2));
|
|
512
|
+
console.log("\n--- IDENTIFIERS ---");
|
|
513
|
+
console.log(JSON.stringify(info.identifiers, null, 2));
|
|
514
|
+
console.log("\n--- SETTINGS ---");
|
|
515
|
+
const settingsKeys = Object.keys(info.settings.userDefaults ?? {});
|
|
516
|
+
console.log(`userDefaults: ${settingsKeys.length} keys`);
|
|
517
|
+
if (settingsKeys.length > 0 && settingsKeys.length <= 20) {
|
|
518
|
+
console.log(JSON.stringify(info.settings, null, 2));
|
|
519
|
+
}
|
|
520
|
+
console.log("\n--- METADATA ---");
|
|
521
|
+
console.log(`timestamp: ${info.timestamp}`);
|
|
522
|
+
console.log(`isLoading: ${info.isLoading}`);
|
|
523
|
+
console.log("\n========================================\n");
|
|
524
|
+
}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.useFilterManager = useFilterManager;
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
/**
|
|
9
|
+
* Custom hook for managing filter state and operations
|
|
10
|
+
*
|
|
11
|
+
* This hook provides a complete interface for managing a set of string filters
|
|
12
|
+
* with add, remove, toggle, and clear operations. It also manages UI state
|
|
13
|
+
* for adding new filters through an input field.
|
|
14
|
+
*
|
|
15
|
+
* @param initialFilters - Initial set of filters to start with
|
|
16
|
+
* @returns Object containing filter state and management functions
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```typescript
|
|
20
|
+
* function FilterComponent() {
|
|
21
|
+
* const {
|
|
22
|
+
* filters,
|
|
23
|
+
* showAddInput,
|
|
24
|
+
* newFilter,
|
|
25
|
+
* addFilter,
|
|
26
|
+
* removeFilter,
|
|
27
|
+
* toggleFilter,
|
|
28
|
+
* clearFilters,
|
|
29
|
+
* setNewFilter,
|
|
30
|
+
* setShowAddInput,
|
|
31
|
+
* hasFilter
|
|
32
|
+
* } = useFilterManager(new Set(['initial-filter']));
|
|
33
|
+
*
|
|
34
|
+
* return (
|
|
35
|
+
* <div>
|
|
36
|
+
* {Array.from(filters).map(filter => (
|
|
37
|
+
* <FilterTag key={filter} onRemove={() => removeFilter(filter)}>
|
|
38
|
+
* {filter}
|
|
39
|
+
* </FilterTag>
|
|
40
|
+
* ))}
|
|
41
|
+
* <button onClick={() => addFilter('new-filter')}>Add Filter</button>
|
|
42
|
+
* </div>
|
|
43
|
+
* );
|
|
44
|
+
* }
|
|
45
|
+
* ```
|
|
46
|
+
*
|
|
47
|
+
* @performance Uses Set for O(1) filter lookups and efficient deduplication
|
|
48
|
+
* @performance All operations are memoized with useCallback for stable references
|
|
49
|
+
*/
|
|
50
|
+
function useFilterManager(initialFilters = new Set()) {
|
|
51
|
+
const [filters, setFilters] = (0, _react.useState)(initialFilters);
|
|
52
|
+
const [showAddInput, setShowAddInput] = (0, _react.useState)(false);
|
|
53
|
+
const [newFilter, setNewFilter] = (0, _react.useState)("");
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Add a new filter to the set
|
|
57
|
+
*
|
|
58
|
+
* Trims whitespace and only adds non-empty strings. Automatically
|
|
59
|
+
* clears the new filter input and hides the add input UI.
|
|
60
|
+
*
|
|
61
|
+
* @param filter - The filter string to add
|
|
62
|
+
*/
|
|
63
|
+
const addFilter = (0, _react.useCallback)(filter => {
|
|
64
|
+
const trimmedFilter = filter.trim();
|
|
65
|
+
if (trimmedFilter) {
|
|
66
|
+
setFilters(prev => new Set([...prev, trimmedFilter]));
|
|
67
|
+
setNewFilter("");
|
|
68
|
+
setShowAddInput(false);
|
|
69
|
+
}
|
|
70
|
+
}, []);
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Remove a filter from the set
|
|
74
|
+
*
|
|
75
|
+
* @param filter - The filter string to remove
|
|
76
|
+
*/
|
|
77
|
+
const removeFilter = (0, _react.useCallback)(filter => {
|
|
78
|
+
setFilters(prev => {
|
|
79
|
+
const next = new Set(prev);
|
|
80
|
+
next.delete(filter);
|
|
81
|
+
return next;
|
|
82
|
+
});
|
|
83
|
+
}, []);
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Toggle a filter in the set (add if not present, remove if present)
|
|
87
|
+
*
|
|
88
|
+
* @param filter - The filter string to toggle
|
|
89
|
+
*/
|
|
90
|
+
const toggleFilter = (0, _react.useCallback)(filter => {
|
|
91
|
+
setFilters(prev => {
|
|
92
|
+
const next = new Set(prev);
|
|
93
|
+
if (next.has(filter)) {
|
|
94
|
+
next.delete(filter);
|
|
95
|
+
} else {
|
|
96
|
+
next.add(filter);
|
|
97
|
+
}
|
|
98
|
+
return next;
|
|
99
|
+
});
|
|
100
|
+
}, []);
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Clear all filters and reset UI state
|
|
104
|
+
*
|
|
105
|
+
* Removes all filters from the set and resets the input UI state.
|
|
106
|
+
*/
|
|
107
|
+
const clearFilters = (0, _react.useCallback)(() => {
|
|
108
|
+
setFilters(new Set());
|
|
109
|
+
setNewFilter("");
|
|
110
|
+
setShowAddInput(false);
|
|
111
|
+
}, []);
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Check if a filter exists in the set
|
|
115
|
+
*
|
|
116
|
+
* @param filter - The filter string to check
|
|
117
|
+
* @returns True if the filter exists in the set
|
|
118
|
+
*/
|
|
119
|
+
const hasFilter = (0, _react.useCallback)(filter => {
|
|
120
|
+
return filters.has(filter);
|
|
121
|
+
}, [filters]);
|
|
122
|
+
return {
|
|
123
|
+
// State
|
|
124
|
+
filters,
|
|
125
|
+
showAddInput,
|
|
126
|
+
newFilter,
|
|
127
|
+
// Actions
|
|
128
|
+
setNewFilter,
|
|
129
|
+
setShowAddInput,
|
|
130
|
+
addFilter,
|
|
131
|
+
removeFilter,
|
|
132
|
+
toggleFilter,
|
|
133
|
+
clearFilters,
|
|
134
|
+
hasFilter
|
|
135
|
+
};
|
|
136
|
+
}
|