@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,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Auto-detect Clipboard Implementation
|
|
5
|
+
*
|
|
6
|
+
* This module re-exports clipboard functionality that was configured
|
|
7
|
+
* at install time by the postinstall script (scripts/detect-clipboard.js).
|
|
8
|
+
*
|
|
9
|
+
* The postinstall script detects which clipboard library is installed:
|
|
10
|
+
* 1. expo-clipboard (preferred for Expo projects)
|
|
11
|
+
* 2. @react-native-clipboard/clipboard (for RN CLI projects)
|
|
12
|
+
* 3. none (graceful degradation)
|
|
13
|
+
*
|
|
14
|
+
* This is a TRUE zero-config solution because:
|
|
15
|
+
* - No metro.config.js changes needed
|
|
16
|
+
* - Detection happens at install time (not bundle time)
|
|
17
|
+
* - Metro sees static imports only
|
|
18
|
+
* - Works with any Metro version
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
// Re-export everything from the generated implementation
|
|
22
|
+
export { clipboardFunction, clipboardType, isClipboardAvailable } from "./clipboard-impl.js";
|
|
23
|
+
|
|
24
|
+
// For backwards compatibility, also export these wrapper functions
|
|
25
|
+
import { clipboardFunction, isClipboardAvailable as _isClipboardAvailable } from "./clipboard-impl.js";
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Attempts to auto-detect and return a clipboard implementation.
|
|
29
|
+
* Returns null if no clipboard library is available.
|
|
30
|
+
*/
|
|
31
|
+
export function createAutoDetectedClipboard() {
|
|
32
|
+
if (_isClipboardAvailable()) {
|
|
33
|
+
return clipboardFunction;
|
|
34
|
+
}
|
|
35
|
+
return null;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Gets the auto-detected clipboard function.
|
|
40
|
+
* Returns a function that will attempt to copy text and return success/failure.
|
|
41
|
+
* If no clipboard library is available, it logs an error and returns false.
|
|
42
|
+
*/
|
|
43
|
+
export function getAutoDetectedClipboard() {
|
|
44
|
+
return clipboardFunction;
|
|
45
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Auto-generated clipboard implementation
|
|
5
|
+
* Detected: none
|
|
6
|
+
* Generated at: 2026-01-03T16:08:00.605Z
|
|
7
|
+
*
|
|
8
|
+
* DO NOT EDIT - This file is generated by scripts/detect-clipboard.js
|
|
9
|
+
*
|
|
10
|
+
* No clipboard library found. Install one of:
|
|
11
|
+
* - expo-clipboard (for Expo projects)
|
|
12
|
+
* - @react-native-clipboard/clipboard (for RN CLI projects)
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
export const clipboardType = null;
|
|
16
|
+
export const isClipboardAvailable = () => false;
|
|
17
|
+
export const clipboardFunction = async text => {
|
|
18
|
+
console.error("[RnBetterDevTools] Copy failed: No clipboard library found.\n" + `Attempted to copy: ${text.substring(0, 50)}${text.length > 50 ? "..." : ""}\n` + "Install expo-clipboard or @react-native-clipboard/clipboard, or provide a custom onCopy function.");
|
|
19
|
+
return false;
|
|
20
|
+
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { getAutoDetectedClipboard } from "./autoDetectClipboard.js";
|
|
4
|
+
import { safeStringify } from "../utils/safeStringify.js";
|
|
5
|
+
import { displayValue } from "../utils/displayValue.js";
|
|
6
|
+
|
|
7
|
+
// Get the clipboard function once
|
|
8
|
+
const clipboardFunction = getAutoDetectedClipboard();
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Copy a value to clipboard, handling stringification automatically
|
|
12
|
+
* @param value - The value to copy (can be any type)
|
|
13
|
+
* @returns Promise<boolean> - true if successful, false otherwise
|
|
14
|
+
*/
|
|
15
|
+
export async function copyToClipboard(value) {
|
|
16
|
+
try {
|
|
17
|
+
// If it's already a string, use it directly
|
|
18
|
+
const textToCopy = typeof value === "string" ? value :
|
|
19
|
+
// Use displayValue for simple values, safeStringify for complex ones
|
|
20
|
+
typeof value === "object" && value !== null ? (() => {
|
|
21
|
+
// Create a defensive copy to prevent any modifications to the original object
|
|
22
|
+
// This is important when used with virtualized lists or React state
|
|
23
|
+
try {
|
|
24
|
+
// For simple objects, use structured clone if available
|
|
25
|
+
// @ts-expect-error structuredClone is not defined in the browser
|
|
26
|
+
if (typeof structuredClone === "function") {
|
|
27
|
+
// @ts-expect-error tructuredClone is not defined in the browser
|
|
28
|
+
const cloned = structuredClone(value);
|
|
29
|
+
return safeStringify(cloned, 2, {
|
|
30
|
+
depthLimit: 100,
|
|
31
|
+
edgesLimit: 1000
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
} catch {
|
|
35
|
+
// structuredClone might fail for certain objects
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// Fall back to safeStringify with the original value
|
|
39
|
+
// The safeStringify function should handle this safely
|
|
40
|
+
return safeStringify(value, 2, {
|
|
41
|
+
depthLimit: 100,
|
|
42
|
+
edgesLimit: 1000
|
|
43
|
+
});
|
|
44
|
+
})() : displayValue(value);
|
|
45
|
+
return await clipboardFunction(textToCopy);
|
|
46
|
+
} catch (error) {
|
|
47
|
+
console.error("[RnBetterDevTools] Copy failed:", error);
|
|
48
|
+
console.error("Value type:", typeof value);
|
|
49
|
+
console.error("Value constructor:", value?.constructor?.name);
|
|
50
|
+
return false;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if clipboard functionality is available
|
|
56
|
+
*/
|
|
57
|
+
export function isClipboardAvailable() {
|
|
58
|
+
// The auto-detected clipboard always returns a function,
|
|
59
|
+
// but it might be a fallback that always returns false
|
|
60
|
+
// We can check by seeing if it has warned about missing libraries
|
|
61
|
+
return true; // Always return true since we have a fallback
|
|
62
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* HintsContext - Context for controlling hint/tooltip visibility across all dev tools
|
|
5
|
+
*
|
|
6
|
+
* This context allows users to disable all onboarding hints with a single prop.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { createContext, useContext } from "react";
|
|
10
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
+
const HintsContext = /*#__PURE__*/createContext({
|
|
12
|
+
hintsDisabled: false
|
|
13
|
+
});
|
|
14
|
+
/**
|
|
15
|
+
* Provider component for controlling hint visibility
|
|
16
|
+
*/
|
|
17
|
+
export function HintsProvider({
|
|
18
|
+
disableHints = false,
|
|
19
|
+
children
|
|
20
|
+
}) {
|
|
21
|
+
return /*#__PURE__*/_jsx(HintsContext.Provider, {
|
|
22
|
+
value: {
|
|
23
|
+
hintsDisabled: disableHints
|
|
24
|
+
},
|
|
25
|
+
children: children
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Hook to check if hints are disabled
|
|
31
|
+
* @returns true if hints should be hidden
|
|
32
|
+
*/
|
|
33
|
+
export function useHintsDisabled() {
|
|
34
|
+
const context = useContext(HintsContext);
|
|
35
|
+
return context.hintsDisabled;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Hook to get the full hints context
|
|
40
|
+
*/
|
|
41
|
+
export function useHintsContext() {
|
|
42
|
+
return useContext(HintsContext);
|
|
43
|
+
}
|
|
@@ -0,0 +1,378 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { useState, useEffect, useRef } from "react";
|
|
4
|
+
import { View, TextInput, StyleSheet, TouchableOpacity, Text, Animated } from "react-native";
|
|
5
|
+
import { ChevronUp, ChevronDown, Trash } from "../icons/index.js";
|
|
6
|
+
import { buoyColors } from "../ui/gameUI/constants/gameUIColors.js";
|
|
7
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
|
+
export function CyberpunkInput({
|
|
9
|
+
label,
|
|
10
|
+
containerStyle,
|
|
11
|
+
showNumberControls = false,
|
|
12
|
+
onIncrement,
|
|
13
|
+
onDecrement,
|
|
14
|
+
showDeleteButton = false,
|
|
15
|
+
onDelete,
|
|
16
|
+
...props
|
|
17
|
+
}) {
|
|
18
|
+
const [isFocused, setIsFocused] = useState(false);
|
|
19
|
+
|
|
20
|
+
// Animated values for glitch effect
|
|
21
|
+
const glitchOpacity = useRef(new Animated.Value(0)).current;
|
|
22
|
+
const glitchX = useRef(new Animated.Value(0)).current;
|
|
23
|
+
const glitchY = useRef(new Animated.Value(0)).current;
|
|
24
|
+
const glitchScale = useRef(new Animated.Value(1)).current;
|
|
25
|
+
const borderGlow = useRef(new Animated.Value(0.6)).current;
|
|
26
|
+
useEffect(() => {
|
|
27
|
+
if (isFocused) {
|
|
28
|
+
// Border glow animation
|
|
29
|
+
Animated.timing(borderGlow, {
|
|
30
|
+
toValue: 1,
|
|
31
|
+
duration: 200,
|
|
32
|
+
useNativeDriver: true
|
|
33
|
+
}).start();
|
|
34
|
+
|
|
35
|
+
// Glitch opacity animation
|
|
36
|
+
Animated.loop(Animated.sequence([Animated.timing(glitchOpacity, {
|
|
37
|
+
toValue: 0,
|
|
38
|
+
duration: 2000,
|
|
39
|
+
useNativeDriver: true
|
|
40
|
+
}), Animated.timing(glitchOpacity, {
|
|
41
|
+
toValue: 0.8,
|
|
42
|
+
duration: 30,
|
|
43
|
+
useNativeDriver: true
|
|
44
|
+
}), Animated.timing(glitchOpacity, {
|
|
45
|
+
toValue: 0,
|
|
46
|
+
duration: 20,
|
|
47
|
+
useNativeDriver: true
|
|
48
|
+
}), Animated.timing(glitchOpacity, {
|
|
49
|
+
toValue: 0.6,
|
|
50
|
+
duration: 40,
|
|
51
|
+
useNativeDriver: true
|
|
52
|
+
}), Animated.timing(glitchOpacity, {
|
|
53
|
+
toValue: 0,
|
|
54
|
+
duration: 30,
|
|
55
|
+
useNativeDriver: true
|
|
56
|
+
}), Animated.timing(glitchOpacity, {
|
|
57
|
+
toValue: 0.4,
|
|
58
|
+
duration: 20,
|
|
59
|
+
useNativeDriver: true
|
|
60
|
+
}), Animated.timing(glitchOpacity, {
|
|
61
|
+
toValue: 0,
|
|
62
|
+
duration: 50,
|
|
63
|
+
useNativeDriver: true
|
|
64
|
+
})])).start();
|
|
65
|
+
|
|
66
|
+
// Glitch X displacement
|
|
67
|
+
Animated.loop(Animated.sequence([Animated.timing(glitchX, {
|
|
68
|
+
toValue: 0,
|
|
69
|
+
duration: 2500,
|
|
70
|
+
useNativeDriver: true
|
|
71
|
+
}), Animated.timing(glitchX, {
|
|
72
|
+
toValue: 3,
|
|
73
|
+
duration: 20,
|
|
74
|
+
useNativeDriver: true
|
|
75
|
+
}), Animated.timing(glitchX, {
|
|
76
|
+
toValue: -3,
|
|
77
|
+
duration: 20,
|
|
78
|
+
useNativeDriver: true
|
|
79
|
+
}), Animated.timing(glitchX, {
|
|
80
|
+
toValue: 2,
|
|
81
|
+
duration: 20,
|
|
82
|
+
useNativeDriver: true
|
|
83
|
+
}), Animated.timing(glitchX, {
|
|
84
|
+
toValue: 0,
|
|
85
|
+
duration: 20,
|
|
86
|
+
useNativeDriver: true
|
|
87
|
+
})])).start();
|
|
88
|
+
|
|
89
|
+
// Glitch Y displacement
|
|
90
|
+
Animated.loop(Animated.sequence([Animated.timing(glitchY, {
|
|
91
|
+
toValue: 0,
|
|
92
|
+
duration: 2200,
|
|
93
|
+
useNativeDriver: true
|
|
94
|
+
}), Animated.timing(glitchY, {
|
|
95
|
+
toValue: -2,
|
|
96
|
+
duration: 30,
|
|
97
|
+
useNativeDriver: true
|
|
98
|
+
}), Animated.timing(glitchY, {
|
|
99
|
+
toValue: 1,
|
|
100
|
+
duration: 20,
|
|
101
|
+
useNativeDriver: true
|
|
102
|
+
}), Animated.timing(glitchY, {
|
|
103
|
+
toValue: 0,
|
|
104
|
+
duration: 30,
|
|
105
|
+
useNativeDriver: true
|
|
106
|
+
})])).start();
|
|
107
|
+
|
|
108
|
+
// Glitch scale effect
|
|
109
|
+
Animated.loop(Animated.sequence([Animated.timing(glitchScale, {
|
|
110
|
+
toValue: 1,
|
|
111
|
+
duration: 3000,
|
|
112
|
+
useNativeDriver: true
|
|
113
|
+
}), Animated.timing(glitchScale, {
|
|
114
|
+
toValue: 1.01,
|
|
115
|
+
duration: 20,
|
|
116
|
+
useNativeDriver: true
|
|
117
|
+
}), Animated.timing(glitchScale, {
|
|
118
|
+
toValue: 0.99,
|
|
119
|
+
duration: 20,
|
|
120
|
+
useNativeDriver: true
|
|
121
|
+
}), Animated.timing(glitchScale, {
|
|
122
|
+
toValue: 1,
|
|
123
|
+
duration: 20,
|
|
124
|
+
useNativeDriver: true
|
|
125
|
+
})])).start();
|
|
126
|
+
} else {
|
|
127
|
+
// Reset animations when not focused
|
|
128
|
+
Animated.timing(borderGlow, {
|
|
129
|
+
toValue: 0.6,
|
|
130
|
+
duration: 200,
|
|
131
|
+
useNativeDriver: true
|
|
132
|
+
}).start();
|
|
133
|
+
Animated.timing(glitchOpacity, {
|
|
134
|
+
toValue: 0,
|
|
135
|
+
duration: 100,
|
|
136
|
+
useNativeDriver: true
|
|
137
|
+
}).start();
|
|
138
|
+
Animated.timing(glitchX, {
|
|
139
|
+
toValue: 0,
|
|
140
|
+
duration: 100,
|
|
141
|
+
useNativeDriver: true
|
|
142
|
+
}).start();
|
|
143
|
+
Animated.timing(glitchY, {
|
|
144
|
+
toValue: 0,
|
|
145
|
+
duration: 100,
|
|
146
|
+
useNativeDriver: true
|
|
147
|
+
}).start();
|
|
148
|
+
Animated.timing(glitchScale, {
|
|
149
|
+
toValue: 1,
|
|
150
|
+
duration: 100,
|
|
151
|
+
useNativeDriver: true
|
|
152
|
+
}).start();
|
|
153
|
+
}
|
|
154
|
+
}, [isFocused, borderGlow, glitchOpacity, glitchX, glitchY, glitchScale]);
|
|
155
|
+
const handleFocus = e => {
|
|
156
|
+
setIsFocused(true);
|
|
157
|
+
props.onFocus?.(e);
|
|
158
|
+
};
|
|
159
|
+
const handleBlur = e => {
|
|
160
|
+
setIsFocused(false);
|
|
161
|
+
props.onBlur?.(e);
|
|
162
|
+
};
|
|
163
|
+
const containerAnimatedStyle = {
|
|
164
|
+
opacity: borderGlow,
|
|
165
|
+
borderColor: isFocused ? buoyColors.primary : buoyColors.textMuted + "4D"
|
|
166
|
+
};
|
|
167
|
+
const glitchAnimatedStyle = {
|
|
168
|
+
opacity: glitchOpacity,
|
|
169
|
+
transform: [{
|
|
170
|
+
translateX: glitchX
|
|
171
|
+
}, {
|
|
172
|
+
translateY: glitchY
|
|
173
|
+
}, {
|
|
174
|
+
scale: glitchScale
|
|
175
|
+
}]
|
|
176
|
+
};
|
|
177
|
+
return /*#__PURE__*/_jsx(View, {
|
|
178
|
+
style: [styles.container, containerStyle],
|
|
179
|
+
children: /*#__PURE__*/_jsxs(View, {
|
|
180
|
+
style: styles.rowContainer,
|
|
181
|
+
children: [label && /*#__PURE__*/_jsx(Text, {
|
|
182
|
+
style: [styles.label, isFocused && styles.labelFocused],
|
|
183
|
+
children: label.toUpperCase()
|
|
184
|
+
}), /*#__PURE__*/_jsxs(Animated.View, {
|
|
185
|
+
style: [styles.inputContainer, containerAnimatedStyle],
|
|
186
|
+
children: [/*#__PURE__*/_jsx(Animated.View, {
|
|
187
|
+
// @ts-ignore - glitchAnimatedStyle is not typed
|
|
188
|
+
style: [styles.glitchOverlay, glitchAnimatedStyle],
|
|
189
|
+
pointerEvents: "none"
|
|
190
|
+
}), /*#__PURE__*/_jsx(TextInput, {
|
|
191
|
+
...props,
|
|
192
|
+
style: [styles.input, props.style, showNumberControls && styles.inputWithControls, showDeleteButton && styles.inputWithDelete],
|
|
193
|
+
onFocus: handleFocus,
|
|
194
|
+
onBlur: handleBlur,
|
|
195
|
+
placeholderTextColor: buoyColors.textMuted + "99",
|
|
196
|
+
autoComplete: "off",
|
|
197
|
+
autoCorrect: false,
|
|
198
|
+
autoCapitalize: "none",
|
|
199
|
+
spellCheck: false
|
|
200
|
+
}), showNumberControls && /*#__PURE__*/_jsxs(View, {
|
|
201
|
+
style: styles.numberControls,
|
|
202
|
+
children: [/*#__PURE__*/_jsx(TouchableOpacity, {
|
|
203
|
+
style: [styles.controlButton, isFocused && styles.controlButtonFocused],
|
|
204
|
+
onPress: onIncrement,
|
|
205
|
+
activeOpacity: 0.7,
|
|
206
|
+
children: /*#__PURE__*/_jsx(ChevronUp, {
|
|
207
|
+
size: 14,
|
|
208
|
+
strokeWidth: 2.5,
|
|
209
|
+
color: isFocused ? buoyColors.primary : buoyColors.textMuted
|
|
210
|
+
})
|
|
211
|
+
}), /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
212
|
+
style: [styles.controlButton, isFocused && styles.controlButtonFocused],
|
|
213
|
+
onPress: onDecrement,
|
|
214
|
+
activeOpacity: 0.7,
|
|
215
|
+
children: /*#__PURE__*/_jsx(ChevronDown, {
|
|
216
|
+
size: 14,
|
|
217
|
+
strokeWidth: 2.5,
|
|
218
|
+
color: isFocused ? buoyColors.primary : buoyColors.textMuted
|
|
219
|
+
})
|
|
220
|
+
})]
|
|
221
|
+
}), showDeleteButton && /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
222
|
+
style: [styles.deleteButton, isFocused && styles.deleteButtonFocused],
|
|
223
|
+
onPress: onDelete,
|
|
224
|
+
activeOpacity: 0.7,
|
|
225
|
+
children: /*#__PURE__*/_jsx(Trash, {
|
|
226
|
+
size: 14,
|
|
227
|
+
strokeWidth: 2,
|
|
228
|
+
color: isFocused ? buoyColors.error : buoyColors.error + "CC"
|
|
229
|
+
})
|
|
230
|
+
}), /*#__PURE__*/_jsx(View, {
|
|
231
|
+
style: [styles.cornerAccent, styles.cornerTL, isFocused && styles.cornerAccentFocused]
|
|
232
|
+
}), /*#__PURE__*/_jsx(View, {
|
|
233
|
+
style: [styles.cornerAccent, styles.cornerTR, isFocused && styles.cornerAccentFocused]
|
|
234
|
+
}), /*#__PURE__*/_jsx(View, {
|
|
235
|
+
style: [styles.cornerAccent, styles.cornerBL, isFocused && styles.cornerAccentFocused]
|
|
236
|
+
}), /*#__PURE__*/_jsx(View, {
|
|
237
|
+
style: [styles.cornerAccent, styles.cornerBR, isFocused && styles.cornerAccentFocused]
|
|
238
|
+
})]
|
|
239
|
+
})]
|
|
240
|
+
})
|
|
241
|
+
});
|
|
242
|
+
}
|
|
243
|
+
const styles = StyleSheet.create({
|
|
244
|
+
container: {
|
|
245
|
+
width: "100%",
|
|
246
|
+
marginVertical: 3
|
|
247
|
+
},
|
|
248
|
+
rowContainer: {
|
|
249
|
+
flexDirection: "row",
|
|
250
|
+
alignItems: "center",
|
|
251
|
+
gap: 8
|
|
252
|
+
},
|
|
253
|
+
label: {
|
|
254
|
+
fontSize: 10,
|
|
255
|
+
fontWeight: "600",
|
|
256
|
+
fontFamily: "monospace",
|
|
257
|
+
color: buoyColors.textMuted,
|
|
258
|
+
letterSpacing: 0.5,
|
|
259
|
+
minWidth: 60
|
|
260
|
+
},
|
|
261
|
+
labelFocused: {
|
|
262
|
+
color: buoyColors.primary
|
|
263
|
+
},
|
|
264
|
+
inputContainer: {
|
|
265
|
+
flex: 1,
|
|
266
|
+
borderWidth: 1,
|
|
267
|
+
borderRadius: 6,
|
|
268
|
+
position: "relative",
|
|
269
|
+
minHeight: 34,
|
|
270
|
+
justifyContent: "center",
|
|
271
|
+
flexDirection: "row",
|
|
272
|
+
alignItems: "center"
|
|
273
|
+
},
|
|
274
|
+
glitchOverlay: {
|
|
275
|
+
position: "absolute",
|
|
276
|
+
top: -1,
|
|
277
|
+
left: -1,
|
|
278
|
+
right: -1,
|
|
279
|
+
bottom: -1,
|
|
280
|
+
borderRadius: 6,
|
|
281
|
+
borderWidth: 1,
|
|
282
|
+
borderColor: buoyColors.primary,
|
|
283
|
+
zIndex: 10
|
|
284
|
+
},
|
|
285
|
+
input: {
|
|
286
|
+
flex: 1,
|
|
287
|
+
paddingHorizontal: 10,
|
|
288
|
+
paddingVertical: 6,
|
|
289
|
+
color: buoyColors.text,
|
|
290
|
+
fontSize: 12,
|
|
291
|
+
fontFamily: "monospace",
|
|
292
|
+
backgroundColor: "transparent",
|
|
293
|
+
zIndex: 1
|
|
294
|
+
},
|
|
295
|
+
inputWithControls: {
|
|
296
|
+
paddingRight: 4
|
|
297
|
+
},
|
|
298
|
+
inputWithDelete: {
|
|
299
|
+
paddingRight: 4
|
|
300
|
+
},
|
|
301
|
+
numberControls: {
|
|
302
|
+
flexDirection: "row",
|
|
303
|
+
gap: 2,
|
|
304
|
+
paddingRight: 4,
|
|
305
|
+
zIndex: 2
|
|
306
|
+
},
|
|
307
|
+
controlButton: {
|
|
308
|
+
width: 28,
|
|
309
|
+
height: 28,
|
|
310
|
+
borderRadius: 6,
|
|
311
|
+
borderWidth: 1,
|
|
312
|
+
borderColor: buoyColors.textMuted + "33",
|
|
313
|
+
alignItems: "center",
|
|
314
|
+
justifyContent: "center",
|
|
315
|
+
shadowColor: "#000",
|
|
316
|
+
shadowOffset: {
|
|
317
|
+
width: 0,
|
|
318
|
+
height: 1
|
|
319
|
+
},
|
|
320
|
+
shadowOpacity: 0.2,
|
|
321
|
+
shadowRadius: 2
|
|
322
|
+
},
|
|
323
|
+
controlButtonFocused: {
|
|
324
|
+
borderColor: buoyColors.primary + "CC",
|
|
325
|
+
shadowColor: buoyColors.primary,
|
|
326
|
+
shadowOpacity: 0.3,
|
|
327
|
+
shadowRadius: 4
|
|
328
|
+
},
|
|
329
|
+
deleteButton: {
|
|
330
|
+
width: 28,
|
|
331
|
+
height: 28,
|
|
332
|
+
borderRadius: 6,
|
|
333
|
+
borderWidth: 1,
|
|
334
|
+
borderColor: buoyColors.error + "4D",
|
|
335
|
+
alignItems: "center",
|
|
336
|
+
justifyContent: "center",
|
|
337
|
+
shadowColor: buoyColors.error,
|
|
338
|
+
shadowOffset: {
|
|
339
|
+
width: 0,
|
|
340
|
+
height: 0
|
|
341
|
+
},
|
|
342
|
+
shadowOpacity: 0.15,
|
|
343
|
+
shadowRadius: 3,
|
|
344
|
+
marginRight: 4,
|
|
345
|
+
zIndex: 2
|
|
346
|
+
},
|
|
347
|
+
deleteButtonFocused: {
|
|
348
|
+
borderColor: buoyColors.error + "CC",
|
|
349
|
+
shadowOpacity: 0.3,
|
|
350
|
+
shadowRadius: 5
|
|
351
|
+
},
|
|
352
|
+
cornerAccent: {
|
|
353
|
+
position: "absolute",
|
|
354
|
+
width: 6,
|
|
355
|
+
height: 1.2,
|
|
356
|
+
backgroundColor: buoyColors.textMuted + "CC",
|
|
357
|
+
zIndex: 0
|
|
358
|
+
},
|
|
359
|
+
cornerAccentFocused: {
|
|
360
|
+
backgroundColor: buoyColors.primary
|
|
361
|
+
},
|
|
362
|
+
cornerTL: {
|
|
363
|
+
top: -1,
|
|
364
|
+
left: 5
|
|
365
|
+
},
|
|
366
|
+
cornerTR: {
|
|
367
|
+
top: -1,
|
|
368
|
+
right: 5
|
|
369
|
+
},
|
|
370
|
+
cornerBL: {
|
|
371
|
+
bottom: -1,
|
|
372
|
+
left: 5
|
|
373
|
+
},
|
|
374
|
+
cornerBR: {
|
|
375
|
+
bottom: -1,
|
|
376
|
+
right: 5
|
|
377
|
+
}
|
|
378
|
+
});
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { useState, useMemo } from "react";
|
|
4
|
+
import { View, StyleSheet } from "react-native";
|
|
5
|
+
import { VirtualizedDataExplorer } from "./VirtualizedDataExplorer.js";
|
|
6
|
+
import { isPlainObject } from "../types/types.js";
|
|
7
|
+
import { TypeLegend } from "./TypeLegend.js";
|
|
8
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
|
+
/**
|
|
10
|
+
* DataViewer component that combines VirtualizedDataExplorer with TypeLegend
|
|
11
|
+
* Provides type filtering functionality like in Sentry event details
|
|
12
|
+
*
|
|
13
|
+
* Applied principles [[rule3]]:
|
|
14
|
+
* - Decompose by Responsibility: Combines data viewing with type filtering
|
|
15
|
+
* - Prefer Composition over Configuration: Uses existing components
|
|
16
|
+
* - Extract Reusable Logic: Shared between storage and Sentry views
|
|
17
|
+
*/
|
|
18
|
+
export const DataViewer = ({
|
|
19
|
+
title,
|
|
20
|
+
data,
|
|
21
|
+
maxDepth = 10,
|
|
22
|
+
rawMode = true,
|
|
23
|
+
showTypeFilter = true,
|
|
24
|
+
initialExpanded = false,
|
|
25
|
+
disableCopy = false
|
|
26
|
+
}) => {
|
|
27
|
+
const [activeFilter, setActiveFilter] = useState(null);
|
|
28
|
+
|
|
29
|
+
// Calculate visible types in the data
|
|
30
|
+
const visibleTypes = useMemo(() => {
|
|
31
|
+
if (!data || !showTypeFilter) return [];
|
|
32
|
+
const types = [];
|
|
33
|
+
const processValue = (value, depth = 0) => {
|
|
34
|
+
if (depth > 3) return; // Limit depth for performance
|
|
35
|
+
|
|
36
|
+
const type = Array.isArray(value) ? "array" : value === null ? "null" : typeof value;
|
|
37
|
+
types.push(type);
|
|
38
|
+
if (type === "object" && isPlainObject(value)) {
|
|
39
|
+
Object.values(value).forEach(v => processValue(v, depth + 1));
|
|
40
|
+
} else if (Array.isArray(value)) {
|
|
41
|
+
value.forEach(v => processValue(v, depth + 1));
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
processValue(data);
|
|
45
|
+
return Array.from(new Set(types)).slice(0, 8); // Unique types, limit to 8
|
|
46
|
+
}, [data, showTypeFilter]);
|
|
47
|
+
|
|
48
|
+
// Get filtered data based on active filter
|
|
49
|
+
const getFilteredData = useMemo(() => {
|
|
50
|
+
if (!activeFilter || !data) return null;
|
|
51
|
+
const filteredObject = {};
|
|
52
|
+
let itemCount = 0;
|
|
53
|
+
const flattenByType = (obj, targetType, path = "", depth = 0) => {
|
|
54
|
+
if (depth > 10 || itemCount > 100) return;
|
|
55
|
+
if (Array.isArray(obj)) {
|
|
56
|
+
obj.forEach((item, index) => {
|
|
57
|
+
const currentPath = path ? `${path}[${index}]` : `[${index}]`;
|
|
58
|
+
const itemType = item === null ? "null" : typeof item;
|
|
59
|
+
if (itemType === targetType) {
|
|
60
|
+
filteredObject[currentPath] = item;
|
|
61
|
+
itemCount++;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
// Recurse into nested structures
|
|
65
|
+
if (itemType === "object" && item !== null || Array.isArray(item)) {
|
|
66
|
+
flattenByType(item, targetType, currentPath, depth + 1);
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
} else if (obj && typeof obj === "object") {
|
|
70
|
+
Object.entries(obj).forEach(([key, value]) => {
|
|
71
|
+
const currentPath = path ? `${path}.${key}` : key;
|
|
72
|
+
const valueType = Array.isArray(value) ? "array" : value === null ? "null" : typeof value;
|
|
73
|
+
if (valueType === targetType) {
|
|
74
|
+
filteredObject[currentPath] = value;
|
|
75
|
+
itemCount++;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
// Recurse into nested structures
|
|
79
|
+
if (valueType === "object" && value !== null || valueType === "array") {
|
|
80
|
+
flattenByType(value, targetType, currentPath, depth + 1);
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
flattenByType(data, activeFilter);
|
|
86
|
+
return {
|
|
87
|
+
filteredObject,
|
|
88
|
+
itemCount
|
|
89
|
+
};
|
|
90
|
+
}, [activeFilter, data]);
|
|
91
|
+
|
|
92
|
+
// Render content based on filter state
|
|
93
|
+
const renderContent = () => {
|
|
94
|
+
// Show filtered results if filter is active
|
|
95
|
+
if (activeFilter && getFilteredData) {
|
|
96
|
+
return /*#__PURE__*/_jsx(VirtualizedDataExplorer, {
|
|
97
|
+
title: `${activeFilter} values`,
|
|
98
|
+
data: getFilteredData.filteredObject,
|
|
99
|
+
maxDepth: maxDepth,
|
|
100
|
+
rawMode: rawMode,
|
|
101
|
+
initialExpanded: initialExpanded,
|
|
102
|
+
disableCopy: disableCopy
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
// Default: show all data
|
|
107
|
+
return /*#__PURE__*/_jsx(VirtualizedDataExplorer, {
|
|
108
|
+
title: title,
|
|
109
|
+
data: data,
|
|
110
|
+
maxDepth: maxDepth,
|
|
111
|
+
rawMode: rawMode,
|
|
112
|
+
initialExpanded: initialExpanded,
|
|
113
|
+
disableCopy: disableCopy
|
|
114
|
+
});
|
|
115
|
+
};
|
|
116
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
117
|
+
style: styles.container,
|
|
118
|
+
children: [showTypeFilter && /*#__PURE__*/_jsx(View, {
|
|
119
|
+
style: styles.header,
|
|
120
|
+
children: /*#__PURE__*/_jsx(TypeLegend, {
|
|
121
|
+
types: visibleTypes,
|
|
122
|
+
activeFilter: activeFilter,
|
|
123
|
+
onFilterChange: setActiveFilter
|
|
124
|
+
})
|
|
125
|
+
}), renderContent()]
|
|
126
|
+
});
|
|
127
|
+
};
|
|
128
|
+
const styles = StyleSheet.create({
|
|
129
|
+
container: {
|
|
130
|
+
flex: 1
|
|
131
|
+
},
|
|
132
|
+
header: {
|
|
133
|
+
flexDirection: "row",
|
|
134
|
+
justifyContent: "space-between",
|
|
135
|
+
alignItems: "center"
|
|
136
|
+
}
|
|
137
|
+
});
|