@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,594 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.getStorageBackendType = getStorageBackendType;
|
|
7
|
+
exports.isUsingPersistentStorage = isUsingPersistentStorage;
|
|
8
|
+
exports.persistentStorage = void 0;
|
|
9
|
+
exports.resetStorageInit = resetStorageInit;
|
|
10
|
+
var _devToolsStorageKeys = require("../storage/devToolsStorageKeys.js");
|
|
11
|
+
/**
|
|
12
|
+
* Persistent Storage for React Buoy DevTools
|
|
13
|
+
*
|
|
14
|
+
* This module provides a storage abstraction that persists independently of AsyncStorage.
|
|
15
|
+
* When expo-file-system is available, it uses file-based storage that survives
|
|
16
|
+
* AsyncStorage.clear() calls (e.g., during logout flows).
|
|
17
|
+
*
|
|
18
|
+
* Fallback hierarchy:
|
|
19
|
+
* 1. FileSystem (expo-file-system) - persistent, survives AsyncStorage.clear()
|
|
20
|
+
* 2. AsyncStorage - standard React Native storage
|
|
21
|
+
* 3. Memory - in-memory fallback when nothing else works
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
// Web globals type declarations (for cross-platform compatibility)
|
|
25
|
+
// These allow TypeScript to compile in React Native where window/localStorage don't exist
|
|
26
|
+
|
|
27
|
+
// Types
|
|
28
|
+
|
|
29
|
+
// Storage backend state
|
|
30
|
+
|
|
31
|
+
let storageBackend = null;
|
|
32
|
+
let initPromise = null;
|
|
33
|
+
let initWarningShown = false;
|
|
34
|
+
|
|
35
|
+
// Cached modules
|
|
36
|
+
let FileSystem = null;
|
|
37
|
+
let AsyncStorage = null;
|
|
38
|
+
|
|
39
|
+
// Memory fallback
|
|
40
|
+
const memoryStore = new Map();
|
|
41
|
+
|
|
42
|
+
// Check if we're in a web environment with localStorage
|
|
43
|
+
function isWebEnvironment() {
|
|
44
|
+
return typeof window !== "undefined" && window?.localStorage !== undefined;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
// Constants
|
|
48
|
+
const STORAGE_DIR_NAME = "react-buoy";
|
|
49
|
+
const HEALTH_CHECK_FILE_NAME = ".health-check";
|
|
50
|
+
function getStorageDir() {
|
|
51
|
+
if (!FileSystem?.documentDirectory) return null;
|
|
52
|
+
return `${FileSystem.documentDirectory}${STORAGE_DIR_NAME}/`;
|
|
53
|
+
}
|
|
54
|
+
function getFilePath(key) {
|
|
55
|
+
const dir = getStorageDir();
|
|
56
|
+
if (!dir) return null;
|
|
57
|
+
return `${dir}${encodeURIComponent(key)}.json`;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Try to load expo-file-system
|
|
62
|
+
*
|
|
63
|
+
* Note: We try the legacy import first (expo-file-system/legacy) for v19+ compatibility,
|
|
64
|
+
* then fall back to the main import for older versions.
|
|
65
|
+
*/
|
|
66
|
+
function loadFileSystem() {
|
|
67
|
+
if (FileSystem) return FileSystem;
|
|
68
|
+
|
|
69
|
+
// Try legacy import first (v19+ moved legacy functions here)
|
|
70
|
+
try {
|
|
71
|
+
const mod = require("expo-file-system/legacy");
|
|
72
|
+
FileSystem = mod?.default || mod;
|
|
73
|
+
if (FileSystem && FileSystem.documentDirectory) {
|
|
74
|
+
return FileSystem;
|
|
75
|
+
}
|
|
76
|
+
FileSystem = null;
|
|
77
|
+
} catch {
|
|
78
|
+
// Not available, try main import
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
// Fall back to main import (older versions or if legacy path doesn't exist)
|
|
82
|
+
try {
|
|
83
|
+
const mod = require("expo-file-system");
|
|
84
|
+
FileSystem = mod?.default || mod;
|
|
85
|
+
if (FileSystem && FileSystem.documentDirectory) {
|
|
86
|
+
return FileSystem;
|
|
87
|
+
}
|
|
88
|
+
FileSystem = null;
|
|
89
|
+
} catch {
|
|
90
|
+
// Not installed or not available
|
|
91
|
+
}
|
|
92
|
+
return null;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Try to load AsyncStorage
|
|
97
|
+
*/
|
|
98
|
+
function loadAsyncStorage() {
|
|
99
|
+
if (AsyncStorage) return AsyncStorage;
|
|
100
|
+
try {
|
|
101
|
+
const mod = require("@react-native-async-storage/async-storage");
|
|
102
|
+
AsyncStorage = mod?.default || mod;
|
|
103
|
+
if (AsyncStorage && typeof AsyncStorage.getItem === "function") {
|
|
104
|
+
return AsyncStorage;
|
|
105
|
+
}
|
|
106
|
+
AsyncStorage = null;
|
|
107
|
+
} catch {
|
|
108
|
+
// Not installed or not available
|
|
109
|
+
}
|
|
110
|
+
return null;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Test if FileSystem works with CRUD operations
|
|
115
|
+
*/
|
|
116
|
+
async function testFileSystem() {
|
|
117
|
+
const fs = loadFileSystem();
|
|
118
|
+
if (!fs || !fs.documentDirectory) {
|
|
119
|
+
return false;
|
|
120
|
+
}
|
|
121
|
+
const storageDir = getStorageDir();
|
|
122
|
+
if (!storageDir) return false;
|
|
123
|
+
const healthCheckFile = `${storageDir}${HEALTH_CHECK_FILE_NAME}`;
|
|
124
|
+
try {
|
|
125
|
+
// Ensure directory exists
|
|
126
|
+
const dirInfo = await fs.getInfoAsync(storageDir);
|
|
127
|
+
if (!dirInfo.exists) {
|
|
128
|
+
await fs.makeDirectoryAsync(storageDir, {
|
|
129
|
+
intermediates: true
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
// Test write
|
|
134
|
+
const testData = `health-check-${Date.now()}`;
|
|
135
|
+
await fs.writeAsStringAsync(healthCheckFile, testData);
|
|
136
|
+
|
|
137
|
+
// Test read
|
|
138
|
+
const readBack = await fs.readAsStringAsync(healthCheckFile);
|
|
139
|
+
if (readBack !== testData) {
|
|
140
|
+
return false;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
// Test delete
|
|
144
|
+
await fs.deleteAsync(healthCheckFile, {
|
|
145
|
+
idempotent: true
|
|
146
|
+
});
|
|
147
|
+
return true;
|
|
148
|
+
} catch (error) {
|
|
149
|
+
console.warn("[React Buoy] FileSystem health check failed:", error);
|
|
150
|
+
return false;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* Migrate existing AsyncStorage keys to FileSystem
|
|
156
|
+
*/
|
|
157
|
+
async function migrateFromAsyncStorage() {
|
|
158
|
+
const asyncStorage = loadAsyncStorage();
|
|
159
|
+
if (!asyncStorage) return;
|
|
160
|
+
try {
|
|
161
|
+
const allKeys = await asyncStorage.getAllKeys();
|
|
162
|
+
const buoyKeys = allKeys.filter(k => k.startsWith(_devToolsStorageKeys.devToolsStorageKeys.base));
|
|
163
|
+
if (buoyKeys.length === 0) {
|
|
164
|
+
return; // Nothing to migrate
|
|
165
|
+
}
|
|
166
|
+
const pairs = await asyncStorage.multiGet(buoyKeys);
|
|
167
|
+
let migratedCount = 0;
|
|
168
|
+
for (const [fullKey, value] of pairs) {
|
|
169
|
+
if (value !== null) {
|
|
170
|
+
// Store in file system (key already has the prefix)
|
|
171
|
+
await fileSystemStorage.setItem(fullKey, value);
|
|
172
|
+
migratedCount++;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
// Migration complete - count is ${migratedCount} items
|
|
177
|
+
void migratedCount;
|
|
178
|
+
|
|
179
|
+
// Optionally: clean up old AsyncStorage keys after successful migration
|
|
180
|
+
// await asyncStorage.multiRemove(buoyKeys);
|
|
181
|
+
} catch (error) {
|
|
182
|
+
console.warn("[React Buoy] Migration failed:", error);
|
|
183
|
+
// Continue anyway - not critical
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
// File system storage implementation
|
|
188
|
+
const fileSystemStorage = {
|
|
189
|
+
async getItem(key) {
|
|
190
|
+
const fs = loadFileSystem();
|
|
191
|
+
if (!fs) return null;
|
|
192
|
+
const filePath = getFilePath(key);
|
|
193
|
+
if (!filePath) return null;
|
|
194
|
+
try {
|
|
195
|
+
// Check if file exists before reading (best practice from Expo docs)
|
|
196
|
+
const fileInfo = await fs.getInfoAsync(filePath);
|
|
197
|
+
if (!fileInfo.exists) {
|
|
198
|
+
return null;
|
|
199
|
+
}
|
|
200
|
+
const content = await fs.readAsStringAsync(filePath);
|
|
201
|
+
return content;
|
|
202
|
+
} catch {
|
|
203
|
+
return null; // File doesn't exist or read failed
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
async setItem(key, value) {
|
|
207
|
+
const fs = loadFileSystem();
|
|
208
|
+
if (!fs) return;
|
|
209
|
+
const storageDir = getStorageDir();
|
|
210
|
+
const filePath = getFilePath(key);
|
|
211
|
+
if (!storageDir || !filePath) return;
|
|
212
|
+
try {
|
|
213
|
+
// Ensure directory exists
|
|
214
|
+
const dirInfo = await fs.getInfoAsync(storageDir);
|
|
215
|
+
if (!dirInfo.exists) {
|
|
216
|
+
await fs.makeDirectoryAsync(storageDir, {
|
|
217
|
+
intermediates: true
|
|
218
|
+
});
|
|
219
|
+
}
|
|
220
|
+
await fs.writeAsStringAsync(filePath, value);
|
|
221
|
+
} catch (error) {
|
|
222
|
+
console.warn("[React Buoy] FileSystem write failed:", error);
|
|
223
|
+
}
|
|
224
|
+
},
|
|
225
|
+
async removeItem(key) {
|
|
226
|
+
const fs = loadFileSystem();
|
|
227
|
+
if (!fs) return;
|
|
228
|
+
const filePath = getFilePath(key);
|
|
229
|
+
if (!filePath) return;
|
|
230
|
+
try {
|
|
231
|
+
await fs.deleteAsync(filePath, {
|
|
232
|
+
idempotent: true
|
|
233
|
+
});
|
|
234
|
+
} catch {
|
|
235
|
+
// Ignore if doesn't exist
|
|
236
|
+
}
|
|
237
|
+
},
|
|
238
|
+
async getAllKeys() {
|
|
239
|
+
const fs = loadFileSystem();
|
|
240
|
+
if (!fs) return [];
|
|
241
|
+
const storageDir = getStorageDir();
|
|
242
|
+
if (!storageDir) return [];
|
|
243
|
+
try {
|
|
244
|
+
const dirInfo = await fs.getInfoAsync(storageDir);
|
|
245
|
+
if (!dirInfo.exists) return [];
|
|
246
|
+
const files = await fs.readDirectoryAsync(storageDir);
|
|
247
|
+
return files.filter(f => f.endsWith(".json")).map(f => decodeURIComponent(f.replace(".json", "")));
|
|
248
|
+
} catch {
|
|
249
|
+
return [];
|
|
250
|
+
}
|
|
251
|
+
},
|
|
252
|
+
async multiGet(keys) {
|
|
253
|
+
const results = [];
|
|
254
|
+
for (const key of keys) {
|
|
255
|
+
const value = await this.getItem(key);
|
|
256
|
+
results.push([key, value]);
|
|
257
|
+
}
|
|
258
|
+
return results;
|
|
259
|
+
},
|
|
260
|
+
async multiRemove(keys) {
|
|
261
|
+
for (const key of keys) {
|
|
262
|
+
await this.removeItem(key);
|
|
263
|
+
}
|
|
264
|
+
},
|
|
265
|
+
async clear() {
|
|
266
|
+
const fs = loadFileSystem();
|
|
267
|
+
if (!fs) return;
|
|
268
|
+
const storageDir = getStorageDir();
|
|
269
|
+
if (!storageDir) return;
|
|
270
|
+
try {
|
|
271
|
+
await fs.deleteAsync(storageDir, {
|
|
272
|
+
idempotent: true
|
|
273
|
+
});
|
|
274
|
+
} catch {
|
|
275
|
+
// Ignore
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
};
|
|
279
|
+
|
|
280
|
+
// AsyncStorage adapter
|
|
281
|
+
const asyncStorageAdapter = {
|
|
282
|
+
async getItem(key) {
|
|
283
|
+
const storage = loadAsyncStorage();
|
|
284
|
+
if (!storage) return memoryStore.get(key) ?? null;
|
|
285
|
+
try {
|
|
286
|
+
return await storage.getItem(key);
|
|
287
|
+
} catch {
|
|
288
|
+
return memoryStore.get(key) ?? null;
|
|
289
|
+
}
|
|
290
|
+
},
|
|
291
|
+
async setItem(key, value) {
|
|
292
|
+
const storage = loadAsyncStorage();
|
|
293
|
+
if (!storage) {
|
|
294
|
+
memoryStore.set(key, value);
|
|
295
|
+
return;
|
|
296
|
+
}
|
|
297
|
+
try {
|
|
298
|
+
await storage.setItem(key, value);
|
|
299
|
+
} catch {
|
|
300
|
+
memoryStore.set(key, value);
|
|
301
|
+
}
|
|
302
|
+
},
|
|
303
|
+
async removeItem(key) {
|
|
304
|
+
const storage = loadAsyncStorage();
|
|
305
|
+
memoryStore.delete(key);
|
|
306
|
+
if (!storage) return;
|
|
307
|
+
try {
|
|
308
|
+
await storage.removeItem(key);
|
|
309
|
+
} catch {
|
|
310
|
+
// Ignore
|
|
311
|
+
}
|
|
312
|
+
},
|
|
313
|
+
async getAllKeys() {
|
|
314
|
+
const storage = loadAsyncStorage();
|
|
315
|
+
if (!storage) return Array.from(memoryStore.keys());
|
|
316
|
+
try {
|
|
317
|
+
const keys = await storage.getAllKeys();
|
|
318
|
+
return keys.filter(k => k.startsWith(_devToolsStorageKeys.devToolsStorageKeys.base));
|
|
319
|
+
} catch {
|
|
320
|
+
return Array.from(memoryStore.keys());
|
|
321
|
+
}
|
|
322
|
+
},
|
|
323
|
+
async multiGet(keys) {
|
|
324
|
+
const storage = loadAsyncStorage();
|
|
325
|
+
if (!storage) {
|
|
326
|
+
return keys.map(k => [k, memoryStore.get(k) ?? null]);
|
|
327
|
+
}
|
|
328
|
+
try {
|
|
329
|
+
const results = await storage.multiGet(keys);
|
|
330
|
+
return results;
|
|
331
|
+
} catch {
|
|
332
|
+
return keys.map(k => [k, memoryStore.get(k) ?? null]);
|
|
333
|
+
}
|
|
334
|
+
},
|
|
335
|
+
async multiRemove(keys) {
|
|
336
|
+
keys.forEach(k => memoryStore.delete(k));
|
|
337
|
+
const storage = loadAsyncStorage();
|
|
338
|
+
if (!storage) return;
|
|
339
|
+
try {
|
|
340
|
+
await storage.multiRemove(keys);
|
|
341
|
+
} catch {
|
|
342
|
+
// Ignore
|
|
343
|
+
}
|
|
344
|
+
},
|
|
345
|
+
async clear() {
|
|
346
|
+
memoryStore.clear();
|
|
347
|
+
const storage = loadAsyncStorage();
|
|
348
|
+
if (!storage) return;
|
|
349
|
+
try {
|
|
350
|
+
const allKeys = await storage.getAllKeys();
|
|
351
|
+
const buoyKeys = allKeys.filter(k => k.startsWith(_devToolsStorageKeys.devToolsStorageKeys.base));
|
|
352
|
+
if (buoyKeys.length > 0) {
|
|
353
|
+
await storage.multiRemove(buoyKeys);
|
|
354
|
+
}
|
|
355
|
+
} catch {
|
|
356
|
+
// Ignore
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
};
|
|
360
|
+
|
|
361
|
+
// localStorage adapter (for web environments)
|
|
362
|
+
const localStorageAdapter = {
|
|
363
|
+
async getItem(key) {
|
|
364
|
+
if (!isWebEnvironment()) return memoryStore.get(key) ?? null;
|
|
365
|
+
try {
|
|
366
|
+
return window.localStorage.getItem(key);
|
|
367
|
+
} catch {
|
|
368
|
+
return memoryStore.get(key) ?? null;
|
|
369
|
+
}
|
|
370
|
+
},
|
|
371
|
+
async setItem(key, value) {
|
|
372
|
+
if (!isWebEnvironment()) {
|
|
373
|
+
memoryStore.set(key, value);
|
|
374
|
+
return;
|
|
375
|
+
}
|
|
376
|
+
try {
|
|
377
|
+
window.localStorage.setItem(key, value);
|
|
378
|
+
} catch {
|
|
379
|
+
memoryStore.set(key, value);
|
|
380
|
+
}
|
|
381
|
+
},
|
|
382
|
+
async removeItem(key) {
|
|
383
|
+
memoryStore.delete(key);
|
|
384
|
+
if (!isWebEnvironment()) return;
|
|
385
|
+
try {
|
|
386
|
+
window.localStorage.removeItem(key);
|
|
387
|
+
} catch {
|
|
388
|
+
// Ignore
|
|
389
|
+
}
|
|
390
|
+
},
|
|
391
|
+
async getAllKeys() {
|
|
392
|
+
if (!isWebEnvironment()) return Array.from(memoryStore.keys());
|
|
393
|
+
try {
|
|
394
|
+
const keys = [];
|
|
395
|
+
const storage = window.localStorage;
|
|
396
|
+
for (let i = 0; i < storage.length; i++) {
|
|
397
|
+
const key = storage.key(i);
|
|
398
|
+
if (key && key.startsWith(_devToolsStorageKeys.devToolsStorageKeys.base)) {
|
|
399
|
+
keys.push(key);
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
return keys;
|
|
403
|
+
} catch {
|
|
404
|
+
return Array.from(memoryStore.keys());
|
|
405
|
+
}
|
|
406
|
+
},
|
|
407
|
+
async multiGet(keys) {
|
|
408
|
+
const results = [];
|
|
409
|
+
for (const key of keys) {
|
|
410
|
+
const value = await this.getItem(key);
|
|
411
|
+
results.push([key, value]);
|
|
412
|
+
}
|
|
413
|
+
return results;
|
|
414
|
+
},
|
|
415
|
+
async multiRemove(keys) {
|
|
416
|
+
for (const key of keys) {
|
|
417
|
+
await this.removeItem(key);
|
|
418
|
+
}
|
|
419
|
+
},
|
|
420
|
+
async clear() {
|
|
421
|
+
memoryStore.clear();
|
|
422
|
+
if (!isWebEnvironment()) return;
|
|
423
|
+
try {
|
|
424
|
+
const keys = await this.getAllKeys();
|
|
425
|
+
const storage = window.localStorage;
|
|
426
|
+
for (const key of keys) {
|
|
427
|
+
storage.removeItem(key);
|
|
428
|
+
}
|
|
429
|
+
} catch {
|
|
430
|
+
// Ignore
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
};
|
|
434
|
+
|
|
435
|
+
// Memory-only storage
|
|
436
|
+
const memoryStorage = {
|
|
437
|
+
async getItem(key) {
|
|
438
|
+
return memoryStore.get(key) ?? null;
|
|
439
|
+
},
|
|
440
|
+
async setItem(key, value) {
|
|
441
|
+
memoryStore.set(key, value);
|
|
442
|
+
},
|
|
443
|
+
async removeItem(key) {
|
|
444
|
+
memoryStore.delete(key);
|
|
445
|
+
},
|
|
446
|
+
async getAllKeys() {
|
|
447
|
+
return Array.from(memoryStore.keys());
|
|
448
|
+
},
|
|
449
|
+
async multiGet(keys) {
|
|
450
|
+
return keys.map(k => [k, memoryStore.get(k) ?? null]);
|
|
451
|
+
},
|
|
452
|
+
async multiRemove(keys) {
|
|
453
|
+
keys.forEach(k => memoryStore.delete(k));
|
|
454
|
+
},
|
|
455
|
+
async clear() {
|
|
456
|
+
memoryStore.clear();
|
|
457
|
+
}
|
|
458
|
+
};
|
|
459
|
+
|
|
460
|
+
/**
|
|
461
|
+
* Initialize storage - determines which backend to use
|
|
462
|
+
*
|
|
463
|
+
* Fallback hierarchy:
|
|
464
|
+
* 1. FileSystem (expo-file-system) - persistent, survives AsyncStorage.clear()
|
|
465
|
+
* 2. AsyncStorage - standard React Native storage
|
|
466
|
+
* 3. localStorage - web browser storage
|
|
467
|
+
* 4. Memory - in-memory fallback when nothing else works
|
|
468
|
+
*/
|
|
469
|
+
async function initStorage() {
|
|
470
|
+
// Only run once
|
|
471
|
+
if (storageBackend !== null) return;
|
|
472
|
+
|
|
473
|
+
// Test FileSystem first (React Native with expo-file-system)
|
|
474
|
+
const fileSystemWorks = await testFileSystem();
|
|
475
|
+
if (fileSystemWorks) {
|
|
476
|
+
// Check if we need to migrate from AsyncStorage
|
|
477
|
+
const existingFiles = await fileSystemStorage.getAllKeys();
|
|
478
|
+
if (existingFiles.length === 0) {
|
|
479
|
+
// Empty file storage - check for AsyncStorage data to migrate
|
|
480
|
+
await migrateFromAsyncStorage();
|
|
481
|
+
}
|
|
482
|
+
storageBackend = "filesystem";
|
|
483
|
+
} else {
|
|
484
|
+
// Try AsyncStorage (React Native)
|
|
485
|
+
const asyncStorage = loadAsyncStorage();
|
|
486
|
+
if (asyncStorage) {
|
|
487
|
+
storageBackend = "asyncstorage";
|
|
488
|
+
if (!initWarningShown) {
|
|
489
|
+
initWarningShown = true;
|
|
490
|
+
console.warn("[React Buoy] Using AsyncStorage fallback. " + "Settings may be lost if AsyncStorage is cleared. " + "Install expo-file-system for persistent storage.");
|
|
491
|
+
}
|
|
492
|
+
} else if (isWebEnvironment()) {
|
|
493
|
+
// Try localStorage (Web)
|
|
494
|
+
storageBackend = "localstorage";
|
|
495
|
+
} else {
|
|
496
|
+
storageBackend = "memory";
|
|
497
|
+
if (!initWarningShown) {
|
|
498
|
+
initWarningShown = true;
|
|
499
|
+
console.warn("[React Buoy] Using in-memory storage. " + "Settings will be lost on app restart.");
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
/**
|
|
506
|
+
* Ensure init runs before any storage operation
|
|
507
|
+
*/
|
|
508
|
+
function ensureInit() {
|
|
509
|
+
if (!initPromise) {
|
|
510
|
+
initPromise = initStorage();
|
|
511
|
+
}
|
|
512
|
+
return initPromise;
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
/**
|
|
516
|
+
* Get the current storage implementation based on detected backend
|
|
517
|
+
*/
|
|
518
|
+
function getStorage() {
|
|
519
|
+
switch (storageBackend) {
|
|
520
|
+
case "filesystem":
|
|
521
|
+
return fileSystemStorage;
|
|
522
|
+
case "asyncstorage":
|
|
523
|
+
return asyncStorageAdapter;
|
|
524
|
+
case "localstorage":
|
|
525
|
+
return localStorageAdapter;
|
|
526
|
+
case "memory":
|
|
527
|
+
default:
|
|
528
|
+
return memoryStorage;
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
/**
|
|
533
|
+
* Persistent storage for React Buoy DevTools
|
|
534
|
+
*
|
|
535
|
+
* Uses FileSystem when available (survives AsyncStorage.clear()),
|
|
536
|
+
* falls back to AsyncStorage, then localStorage (web), then memory.
|
|
537
|
+
*
|
|
538
|
+
* Same API as AsyncStorage for easy migration.
|
|
539
|
+
*/
|
|
540
|
+
const persistentStorage = exports.persistentStorage = {
|
|
541
|
+
async getItem(key) {
|
|
542
|
+
await ensureInit();
|
|
543
|
+
return getStorage().getItem(key);
|
|
544
|
+
},
|
|
545
|
+
async setItem(key, value) {
|
|
546
|
+
await ensureInit();
|
|
547
|
+
return getStorage().setItem(key, value);
|
|
548
|
+
},
|
|
549
|
+
async removeItem(key) {
|
|
550
|
+
await ensureInit();
|
|
551
|
+
return getStorage().removeItem(key);
|
|
552
|
+
},
|
|
553
|
+
async getAllKeys() {
|
|
554
|
+
await ensureInit();
|
|
555
|
+
return getStorage().getAllKeys();
|
|
556
|
+
},
|
|
557
|
+
async multiGet(keys) {
|
|
558
|
+
await ensureInit();
|
|
559
|
+
return getStorage().multiGet(keys);
|
|
560
|
+
},
|
|
561
|
+
async multiRemove(keys) {
|
|
562
|
+
await ensureInit();
|
|
563
|
+
return getStorage().multiRemove(keys);
|
|
564
|
+
},
|
|
565
|
+
async clear() {
|
|
566
|
+
await ensureInit();
|
|
567
|
+
return getStorage().clear();
|
|
568
|
+
}
|
|
569
|
+
};
|
|
570
|
+
|
|
571
|
+
/**
|
|
572
|
+
* Check if persistent storage (FileSystem) is being used
|
|
573
|
+
*/
|
|
574
|
+
async function isUsingPersistentStorage() {
|
|
575
|
+
await ensureInit();
|
|
576
|
+
return storageBackend === "filesystem";
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
/**
|
|
580
|
+
* Get the current storage backend type
|
|
581
|
+
*/
|
|
582
|
+
async function getStorageBackendType() {
|
|
583
|
+
await ensureInit();
|
|
584
|
+
return storageBackend ?? "memory";
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
/**
|
|
588
|
+
* Force re-initialization of storage (useful for testing)
|
|
589
|
+
*/
|
|
590
|
+
function resetStorageInit() {
|
|
591
|
+
storageBackend = null;
|
|
592
|
+
initPromise = null;
|
|
593
|
+
initWarningShown = false;
|
|
594
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.isPersistentStorageAvailable = isPersistentStorageAvailable;
|
|
7
|
+
exports.safeGetItem = safeGetItem;
|
|
8
|
+
exports.safeRemoveItem = safeRemoveItem;
|
|
9
|
+
exports.safeSetItem = safeSetItem;
|
|
10
|
+
exports.useSafeAsyncStorage = useSafeAsyncStorage;
|
|
11
|
+
var _react = require("react");
|
|
12
|
+
var _persistentStorage = require("./persistentStorage.js");
|
|
13
|
+
// Safe storage wrapper that uses persistent file storage when available,
|
|
14
|
+
// falling back to AsyncStorage, then in-memory store.
|
|
15
|
+
//
|
|
16
|
+
// This module re-exports the persistentStorage API with the legacy function names
|
|
17
|
+
// (safeGetItem, safeSetItem, safeRemoveItem) for backwards compatibility.
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Read a value from persistent storage (FileSystem > AsyncStorage > Memory)
|
|
21
|
+
*
|
|
22
|
+
* @deprecated Use `persistentStorage.getItem()` directly for new code
|
|
23
|
+
*/
|
|
24
|
+
async function safeGetItem(key) {
|
|
25
|
+
return _persistentStorage.persistentStorage.getItem(key);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Persist a value to storage (FileSystem > AsyncStorage > Memory)
|
|
30
|
+
*
|
|
31
|
+
* @deprecated Use `persistentStorage.setItem()` directly for new code
|
|
32
|
+
*/
|
|
33
|
+
async function safeSetItem(key, value) {
|
|
34
|
+
return _persistentStorage.persistentStorage.setItem(key, value);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Remove an item from storage
|
|
39
|
+
*
|
|
40
|
+
* @deprecated Use `persistentStorage.removeItem()` directly for new code
|
|
41
|
+
*/
|
|
42
|
+
async function safeRemoveItem(key) {
|
|
43
|
+
return _persistentStorage.persistentStorage.removeItem(key);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Check if persistent storage (FileSystem) is being used
|
|
48
|
+
* Returns true if FileSystem storage is available and working
|
|
49
|
+
*/
|
|
50
|
+
async function isPersistentStorageAvailable() {
|
|
51
|
+
return (0, _persistentStorage.isUsingPersistentStorage)();
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* React hook exposing storage APIs backed by persistent storage
|
|
56
|
+
*
|
|
57
|
+
* @deprecated Use `persistentStorage` directly for new code
|
|
58
|
+
*/
|
|
59
|
+
function useSafeAsyncStorage() {
|
|
60
|
+
const [isPersistent, setIsPersistent] = (0, _react.useState)(false);
|
|
61
|
+
(0, _react.useEffect)(() => {
|
|
62
|
+
// Check if persistent storage is available
|
|
63
|
+
(0, _persistentStorage.isUsingPersistentStorage)().then(setIsPersistent);
|
|
64
|
+
}, []);
|
|
65
|
+
return (0, _react.useMemo)(() => ({
|
|
66
|
+
getItem: safeGetItem,
|
|
67
|
+
setItem: safeSetItem,
|
|
68
|
+
removeItem: safeRemoveItem,
|
|
69
|
+
isPersistent
|
|
70
|
+
}), [isPersistent]);
|
|
71
|
+
}
|