@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,225 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Safely stringifies objects with circular references by:
|
|
5
|
+
* 1. Pre-processing to detect and temporarily replace circular references
|
|
6
|
+
* 2. Handling special JS types that JSON.stringify can't serialize
|
|
7
|
+
* 3. Restoring original object structure after stringification
|
|
8
|
+
* 4. Inspired by fast-safe-stringify with additional type handling
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
const CIRCULAR_REPLACE_NODE = "[Circular]";
|
|
12
|
+
const LIMIT_REPLACE_NODE = "[...]";
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Safely stringifies objects with circular references and special JavaScript types
|
|
16
|
+
*
|
|
17
|
+
* This function provides comprehensive JSON serialization that handles:
|
|
18
|
+
* - Circular references (replaced with "[Circular]")
|
|
19
|
+
* - Special JavaScript types (Date, RegExp, Error, Map, Set, etc.)
|
|
20
|
+
* - Non-serializable values (undefined, functions, symbols, BigInt)
|
|
21
|
+
* - Depth and edge limits to prevent infinite recursion
|
|
22
|
+
* - Restoration of original object structure after processing
|
|
23
|
+
*
|
|
24
|
+
* @param obj - The object/value to stringify
|
|
25
|
+
* @param space - Number of spaces for pretty-printing (optional)
|
|
26
|
+
* @param options - Configuration options for limits
|
|
27
|
+
* @param options.depthLimit - Maximum depth to traverse (default: unlimited)
|
|
28
|
+
* @param options.edgesLimit - Maximum edges per object (default: unlimited)
|
|
29
|
+
*
|
|
30
|
+
* @returns JSON string representation of the object
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* ```typescript
|
|
34
|
+
* const obj = { name: "test" };
|
|
35
|
+
* obj.self = obj; // circular reference
|
|
36
|
+
*
|
|
37
|
+
* const result = safeStringify(obj, 2);
|
|
38
|
+
* // Returns: '{\n "name": "test",\n "self": "[Circular]"\n}'
|
|
39
|
+
*
|
|
40
|
+
* // With limits
|
|
41
|
+
* const limited = safeStringify(deepObject, 2, { depthLimit: 5 });
|
|
42
|
+
* ```
|
|
43
|
+
*
|
|
44
|
+
* @performance Uses pre-processing approach to handle circular references efficiently
|
|
45
|
+
* @performance Includes object restoration to maintain original structure integrity
|
|
46
|
+
* @performance Optimized for arrays and objects with separate handling paths
|
|
47
|
+
*/
|
|
48
|
+
export function safeStringify(obj, space, options = {}) {
|
|
49
|
+
const {
|
|
50
|
+
depthLimit = Number.MAX_SAFE_INTEGER,
|
|
51
|
+
edgesLimit = Number.MAX_SAFE_INTEGER
|
|
52
|
+
} = options;
|
|
53
|
+
const arr = []; // Store original values to restore after stringification
|
|
54
|
+
|
|
55
|
+
// Pre-process the object to handle circular references and depth limits
|
|
56
|
+
function decirc(val, k, edgeIndex, stack, parent, depth) {
|
|
57
|
+
depth += 1;
|
|
58
|
+
if (typeof val === "object" && val !== null) {
|
|
59
|
+
// Check for circular references
|
|
60
|
+
for (let i = 0; i < stack.length; i++) {
|
|
61
|
+
if (stack[i] === val) {
|
|
62
|
+
setReplace(CIRCULAR_REPLACE_NODE, val, k, parent);
|
|
63
|
+
return;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
// Check depth limit
|
|
68
|
+
if (depth > depthLimit) {
|
|
69
|
+
setReplace(LIMIT_REPLACE_NODE, val, k, parent);
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
// Check edges limit
|
|
74
|
+
if (edgeIndex + 1 > edgesLimit) {
|
|
75
|
+
setReplace(LIMIT_REPLACE_NODE, val, k, parent);
|
|
76
|
+
return;
|
|
77
|
+
}
|
|
78
|
+
stack.push(val);
|
|
79
|
+
|
|
80
|
+
// Optimize for Arrays
|
|
81
|
+
if (Array.isArray(val)) {
|
|
82
|
+
const arrayParent = val;
|
|
83
|
+
for (let i = 0; i < val.length; i++) {
|
|
84
|
+
decirc(val[i], i, i, stack, arrayParent, depth);
|
|
85
|
+
}
|
|
86
|
+
} else if (val instanceof Map || val instanceof Set || val instanceof RegExp || val instanceof Date || val instanceof Error) {
|
|
87
|
+
// Skip special objects
|
|
88
|
+
stack.pop();
|
|
89
|
+
return;
|
|
90
|
+
} else {
|
|
91
|
+
const objParent = val;
|
|
92
|
+
const keys = Object.keys(objParent);
|
|
93
|
+
for (let i = 0; i < keys.length; i++) {
|
|
94
|
+
const key = keys[i];
|
|
95
|
+
decirc(objParent[key], key, i, stack, objParent, depth);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
stack.pop();
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
function setReplace(replace, val, k, parent) {
|
|
102
|
+
if (!parent) return;
|
|
103
|
+
const propertyDescriptor = Object.getOwnPropertyDescriptor(parent, k);
|
|
104
|
+
if (propertyDescriptor?.get !== undefined) {
|
|
105
|
+
if (propertyDescriptor.configurable) {
|
|
106
|
+
Object.defineProperty(parent, k, {
|
|
107
|
+
value: replace
|
|
108
|
+
});
|
|
109
|
+
arr.push([parent, k, val, propertyDescriptor]);
|
|
110
|
+
} else {
|
|
111
|
+
// Handle non-configurable getters - skip for now
|
|
112
|
+
return;
|
|
113
|
+
}
|
|
114
|
+
} else {
|
|
115
|
+
parent[k] = replace;
|
|
116
|
+
arr.push([parent, k, val]);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
// Custom replacer for special types
|
|
121
|
+
const replacer = (key, value) => {
|
|
122
|
+
// Handle primitives that JSON.stringify can't handle
|
|
123
|
+
if (typeof value === "bigint") return `${value.toString()}n`;
|
|
124
|
+
if (typeof value === "symbol") return value.toString();
|
|
125
|
+
if (typeof value === "undefined") return "undefined";
|
|
126
|
+
if (typeof value === "function") {
|
|
127
|
+
return `[Function: ${value.name || "anonymous"}]`;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
// Handle special number values
|
|
131
|
+
if (typeof value === "number") {
|
|
132
|
+
if (value === Infinity) return "Infinity";
|
|
133
|
+
if (value === -Infinity) return "-Infinity";
|
|
134
|
+
if (Number.isNaN(value)) return "NaN";
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
// Handle special objects
|
|
138
|
+
if (value instanceof Error) {
|
|
139
|
+
const errorObj = {
|
|
140
|
+
name: value.name,
|
|
141
|
+
message: value.message,
|
|
142
|
+
stack: value.stack
|
|
143
|
+
};
|
|
144
|
+
// Include custom properties
|
|
145
|
+
Object.getOwnPropertyNames(value).forEach(prop => {
|
|
146
|
+
if (!["name", "message", "stack"].includes(prop)) {
|
|
147
|
+
try {
|
|
148
|
+
const propValue = value[prop];
|
|
149
|
+
if (propValue !== undefined) {
|
|
150
|
+
errorObj[prop] = propValue;
|
|
151
|
+
}
|
|
152
|
+
} catch {
|
|
153
|
+
// Skip properties that can't be accessed
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
});
|
|
157
|
+
return errorObj;
|
|
158
|
+
}
|
|
159
|
+
if (value instanceof Date) return value.toISOString();
|
|
160
|
+
if (value instanceof RegExp) return value.toString();
|
|
161
|
+
|
|
162
|
+
// Handle Map objects
|
|
163
|
+
if (value instanceof Map) {
|
|
164
|
+
try {
|
|
165
|
+
const entries = Array.from(value.entries()).map(([mapKey, val]) => [String(mapKey), val]);
|
|
166
|
+
return {
|
|
167
|
+
__type: "Map",
|
|
168
|
+
entries: entries
|
|
169
|
+
};
|
|
170
|
+
} catch {
|
|
171
|
+
// Handle cases where Map iteration fails
|
|
172
|
+
return {
|
|
173
|
+
__type: "Map",
|
|
174
|
+
entries: "[Map iteration failed]"
|
|
175
|
+
};
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
// Handle Set objects
|
|
180
|
+
if (value instanceof Set) {
|
|
181
|
+
try {
|
|
182
|
+
return {
|
|
183
|
+
__type: "Set",
|
|
184
|
+
values: Array.from(value)
|
|
185
|
+
};
|
|
186
|
+
} catch {
|
|
187
|
+
return {
|
|
188
|
+
__type: "Set",
|
|
189
|
+
values: "[Set iteration failed]"
|
|
190
|
+
};
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
return value;
|
|
194
|
+
};
|
|
195
|
+
|
|
196
|
+
// Pre-process to handle circular references
|
|
197
|
+
try {
|
|
198
|
+
decirc(obj, "", 0, [], null, 0);
|
|
199
|
+
|
|
200
|
+
// Stringify with custom replacer
|
|
201
|
+
const result = JSON.stringify(obj, replacer, space);
|
|
202
|
+
return result;
|
|
203
|
+
} catch {
|
|
204
|
+
// Fallback for complex circular references
|
|
205
|
+
return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]");
|
|
206
|
+
} finally {
|
|
207
|
+
// Restore original object structure
|
|
208
|
+
while (arr.length !== 0) {
|
|
209
|
+
const part = arr.pop();
|
|
210
|
+
if (part && part.length === 4) {
|
|
211
|
+
// Restore property descriptor
|
|
212
|
+
const [targetObj, key,, descriptor] = part;
|
|
213
|
+
if (targetObj && typeof targetObj === "object" && descriptor) {
|
|
214
|
+
Object.defineProperty(targetObj, key, descriptor);
|
|
215
|
+
}
|
|
216
|
+
} else if (part) {
|
|
217
|
+
// Restore simple property
|
|
218
|
+
const [targetObj, key, value] = part;
|
|
219
|
+
if (targetObj && typeof targetObj === "object" && (typeof key === "string" || typeof key === "number")) {
|
|
220
|
+
targetObj[key] = value;
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Formats a timestamp as relative time (e.g., "1s ago", "5m ago", "2h ago")
|
|
5
|
+
* @param timestamp - The timestamp to format (Date object or number in milliseconds)
|
|
6
|
+
* @param currentTime - Current time in milliseconds (defaults to Date.now())
|
|
7
|
+
* @returns Formatted relative time string
|
|
8
|
+
*/
|
|
9
|
+
export function formatRelativeTime(timestamp, currentTime = Date.now()) {
|
|
10
|
+
const timestampMs = timestamp instanceof Date ? timestamp.getTime() : timestamp;
|
|
11
|
+
const seconds = Math.floor((currentTime - timestampMs) / 1000);
|
|
12
|
+
|
|
13
|
+
// Handle edge cases
|
|
14
|
+
if (seconds < 0) {
|
|
15
|
+
return "just now";
|
|
16
|
+
}
|
|
17
|
+
if (seconds < 60) {
|
|
18
|
+
return seconds === 0 ? "just now" : `${seconds}s ago`;
|
|
19
|
+
}
|
|
20
|
+
const minutes = Math.floor(seconds / 60);
|
|
21
|
+
if (minutes < 60) {
|
|
22
|
+
return `${minutes}m ago`;
|
|
23
|
+
}
|
|
24
|
+
const hours = Math.floor(minutes / 60);
|
|
25
|
+
if (hours < 24) {
|
|
26
|
+
return `${hours}h ago`;
|
|
27
|
+
}
|
|
28
|
+
const days = Math.floor(hours / 24);
|
|
29
|
+
return `${days}d ago`;
|
|
30
|
+
}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Type detection and validation utilities
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Detects the type of a value with more granular type checking
|
|
9
|
+
* @param value - The value to check
|
|
10
|
+
* @returns A string representing the specific type
|
|
11
|
+
*/
|
|
12
|
+
export const getValueType = value => {
|
|
13
|
+
if (value === null) return "null";
|
|
14
|
+
if (value === undefined) return "undefined";
|
|
15
|
+
if (Array.isArray(value)) return "array";
|
|
16
|
+
const type = typeof value;
|
|
17
|
+
if (type === "object") {
|
|
18
|
+
// Check for specific object types
|
|
19
|
+
if (value instanceof Date) return "date";
|
|
20
|
+
if (value instanceof RegExp) return "regexp";
|
|
21
|
+
if (value instanceof Map) return "map";
|
|
22
|
+
if (value instanceof Set) return "set";
|
|
23
|
+
if (value instanceof Error) return "error";
|
|
24
|
+
return "object";
|
|
25
|
+
}
|
|
26
|
+
return type;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Checks if a value is a primitive type
|
|
31
|
+
* @param value - The value to check
|
|
32
|
+
* @returns True if the value is primitive
|
|
33
|
+
*/
|
|
34
|
+
export const isPrimitive = value => {
|
|
35
|
+
const type = typeof value;
|
|
36
|
+
return value === null || value === undefined || type === "string" || type === "number" || type === "boolean" || type === "bigint" || type === "symbol";
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Checks if a value is a valid JSON serializable value
|
|
41
|
+
* @param value - The value to check
|
|
42
|
+
* @returns True if the value can be JSON serialized
|
|
43
|
+
*/
|
|
44
|
+
export const isJsonSerializable = value => {
|
|
45
|
+
try {
|
|
46
|
+
JSON.stringify(value);
|
|
47
|
+
return true;
|
|
48
|
+
} catch {
|
|
49
|
+
return false;
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Checks if a string represents a valid JSON value
|
|
55
|
+
* @param str - The string to test
|
|
56
|
+
* @returns True if the string is valid JSON
|
|
57
|
+
*/
|
|
58
|
+
export const isValidJson = str => {
|
|
59
|
+
try {
|
|
60
|
+
JSON.parse(str);
|
|
61
|
+
return true;
|
|
62
|
+
} catch {
|
|
63
|
+
return false;
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Safely gets the constructor name of a value
|
|
69
|
+
* @param value - The value to check
|
|
70
|
+
* @returns The constructor name or type string
|
|
71
|
+
*/
|
|
72
|
+
export const getConstructorName = value => {
|
|
73
|
+
if (value === null) return "null";
|
|
74
|
+
if (value === undefined) return "undefined";
|
|
75
|
+
try {
|
|
76
|
+
return value.constructor?.name || typeof value;
|
|
77
|
+
} catch {
|
|
78
|
+
return typeof value;
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Checks if a value is an empty object or array
|
|
84
|
+
* @param value - The value to check
|
|
85
|
+
* @returns True if the value is empty
|
|
86
|
+
*/
|
|
87
|
+
export const isEmpty = value => {
|
|
88
|
+
if (value === null || value === undefined) return true;
|
|
89
|
+
if (typeof value === "string") return value.length === 0;
|
|
90
|
+
if (Array.isArray(value)) return value.length === 0;
|
|
91
|
+
if (typeof value === "object") return Object.keys(value).length === 0;
|
|
92
|
+
return false;
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Gets a human-readable size description for objects and arrays
|
|
97
|
+
* @param value - The value to get size for
|
|
98
|
+
* @returns A human-readable size string
|
|
99
|
+
*/
|
|
100
|
+
export const getValueSize = value => {
|
|
101
|
+
if (Array.isArray(value)) {
|
|
102
|
+
const count = value.length;
|
|
103
|
+
if (count === 0) return "empty array";
|
|
104
|
+
if (count === 1) return "1 item";
|
|
105
|
+
return `${count} items`;
|
|
106
|
+
}
|
|
107
|
+
if (value && typeof value === "object") {
|
|
108
|
+
const keys = Object.keys(value);
|
|
109
|
+
const count = keys.length;
|
|
110
|
+
if (count === 0) return "empty object";
|
|
111
|
+
if (count === 1) return "1 key";
|
|
112
|
+
return `${count} keys`;
|
|
113
|
+
}
|
|
114
|
+
if (typeof value === "string") {
|
|
115
|
+
const length = value.length;
|
|
116
|
+
if (length === 0) return "empty string";
|
|
117
|
+
if (length === 1) return "1 character";
|
|
118
|
+
return `${length} characters`;
|
|
119
|
+
}
|
|
120
|
+
return "";
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Type guard to check if a value is an object (not null, not array)
|
|
125
|
+
* @param value - The value to check
|
|
126
|
+
* @returns True if value is a plain object
|
|
127
|
+
*/
|
|
128
|
+
export const isPlainObject = value => {
|
|
129
|
+
return typeof value === "object" && value !== null && !Array.isArray(value) && value.constructor === Object;
|
|
130
|
+
};
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { gameUIColors } from "../ui/gameUI/index.js";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Safely parses a value that might be a JSON string
|
|
7
|
+
* @param value - The value to parse
|
|
8
|
+
* @returns The parsed value or original value if parsing fails
|
|
9
|
+
*/
|
|
10
|
+
export const parseValue = value => {
|
|
11
|
+
if (value === null || value === undefined) return value;
|
|
12
|
+
if (typeof value === "string") {
|
|
13
|
+
try {
|
|
14
|
+
return JSON.parse(value);
|
|
15
|
+
} catch {
|
|
16
|
+
return value;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
return value;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Formats a value for display with appropriate type representation
|
|
24
|
+
* @param value - The value to format
|
|
25
|
+
* @returns A string representation of the value
|
|
26
|
+
*/
|
|
27
|
+
export const formatValue = value => {
|
|
28
|
+
if (value === null) return "null";
|
|
29
|
+
if (value === undefined) return "undefined";
|
|
30
|
+
if (typeof value === "string") return `"${value}"`;
|
|
31
|
+
if (typeof value === "boolean") return value ? "true" : "false";
|
|
32
|
+
if (typeof value === "number") return String(value);
|
|
33
|
+
if (typeof value === "function") return `[Function: ${value.name || "anonymous"}]`;
|
|
34
|
+
if (typeof value === "object") {
|
|
35
|
+
if (Array.isArray(value)) {
|
|
36
|
+
return `[Array: ${value.length} items]`;
|
|
37
|
+
}
|
|
38
|
+
return `{Object: ${Object.keys(value).length} keys}`;
|
|
39
|
+
}
|
|
40
|
+
return String(value);
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Gets the color for a value based on its type
|
|
45
|
+
* @param value - The value to get color for
|
|
46
|
+
* @returns The color string for the value type
|
|
47
|
+
*/
|
|
48
|
+
export const getTypeColor = value => {
|
|
49
|
+
if (value === null) return gameUIColors.dataTypes.null;
|
|
50
|
+
if (value === undefined) return gameUIColors.dataTypes.undefined;
|
|
51
|
+
const type = typeof value;
|
|
52
|
+
switch (type) {
|
|
53
|
+
case "string":
|
|
54
|
+
return gameUIColors.dataTypes.string;
|
|
55
|
+
case "number":
|
|
56
|
+
return gameUIColors.dataTypes.number;
|
|
57
|
+
case "boolean":
|
|
58
|
+
return gameUIColors.dataTypes.boolean;
|
|
59
|
+
case "function":
|
|
60
|
+
return gameUIColors.dataTypes.function;
|
|
61
|
+
case "object":
|
|
62
|
+
return Array.isArray(value) ? gameUIColors.dataTypes.array : gameUIColors.dataTypes.object;
|
|
63
|
+
default:
|
|
64
|
+
return gameUIColors.primary;
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Truncates text to a specified length with ellipsis
|
|
70
|
+
* @param text - The text to truncate
|
|
71
|
+
* @param maxLength - Maximum length before truncation
|
|
72
|
+
* @returns Truncated text with ellipsis if needed
|
|
73
|
+
*/
|
|
74
|
+
export const truncateText = (text, maxLength) => {
|
|
75
|
+
if (text.length <= maxLength) return text;
|
|
76
|
+
return text.slice(0, maxLength - 3) + "...";
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Flattens a nested object into a flat structure with dot notation paths
|
|
81
|
+
* @param obj - The object to flatten
|
|
82
|
+
* @param prefix - The prefix for the current level
|
|
83
|
+
* @returns A flat object with dot notation keys
|
|
84
|
+
*/
|
|
85
|
+
export const flattenObject = (obj, prefix = "") => {
|
|
86
|
+
const flattened = {};
|
|
87
|
+
if (obj === null || obj === undefined) {
|
|
88
|
+
return flattened;
|
|
89
|
+
}
|
|
90
|
+
if (typeof obj !== "object") {
|
|
91
|
+
flattened[prefix || "root"] = obj;
|
|
92
|
+
return flattened;
|
|
93
|
+
}
|
|
94
|
+
if (Array.isArray(obj)) {
|
|
95
|
+
obj.forEach((item, index) => {
|
|
96
|
+
const path = prefix ? `${prefix}[${index}]` : `[${index}]`;
|
|
97
|
+
if (typeof item === "object" && item !== null) {
|
|
98
|
+
Object.assign(flattened, flattenObject(item, path));
|
|
99
|
+
} else {
|
|
100
|
+
flattened[path] = item;
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
} else {
|
|
104
|
+
Object.keys(obj).forEach(key => {
|
|
105
|
+
const path = prefix ? `${prefix}.${key}` : key;
|
|
106
|
+
const objValue = obj[key];
|
|
107
|
+
if (typeof objValue === "object" && objValue !== null) {
|
|
108
|
+
Object.assign(flattened, flattenObject(objValue, path));
|
|
109
|
+
} else {
|
|
110
|
+
flattened[path] = objValue;
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
return flattened;
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* Creates a readable path from an array of segments (for diff viewers)
|
|
119
|
+
* @param pathSegments - Array of path segments
|
|
120
|
+
* @returns A readable path string
|
|
121
|
+
*/
|
|
122
|
+
export const formatPath = pathSegments => {
|
|
123
|
+
if (pathSegments.length === 0) return "root";
|
|
124
|
+
return pathSegments.map((segment, index) => {
|
|
125
|
+
if (typeof segment === "number") {
|
|
126
|
+
return `[${segment}]`;
|
|
127
|
+
}
|
|
128
|
+
// First segment doesn't need a dot
|
|
129
|
+
return index === 0 ? segment : `.${segment}`;
|
|
130
|
+
}).join("");
|
|
131
|
+
};
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* JsModal - Ultra-optimized for true 60FPS performance
|
|
3
|
+
*
|
|
4
|
+
* Achieves 60FPS by following the principles from the dial menu:
|
|
5
|
+
* 1. ALWAYS use native driver (useNativeDriver: true)
|
|
6
|
+
* 2. Use transforms instead of layout properties (translateY instead of height)
|
|
7
|
+
* 3. Use interpolation for all calculations (no JS thread math)
|
|
8
|
+
* 4. Minimize PanResponder JS work (direct setValue, no state updates)
|
|
9
|
+
*
|
|
10
|
+
* Structure follows SRP with each function doing ONE thing only.
|
|
11
|
+
*/
|
|
12
|
+
import { ReactNode } from "react";
|
|
13
|
+
import { Animated, ViewStyle } from "react-native";
|
|
14
|
+
export type ModalMode = "bottomSheet" | "floating";
|
|
15
|
+
interface HeaderConfig {
|
|
16
|
+
title?: string;
|
|
17
|
+
subtitle?: string;
|
|
18
|
+
showToggleButton?: boolean;
|
|
19
|
+
customContent?: ReactNode;
|
|
20
|
+
hideCloseButton?: boolean;
|
|
21
|
+
hideMinimizeButton?: boolean;
|
|
22
|
+
}
|
|
23
|
+
interface CustomStyles {
|
|
24
|
+
container?: ViewStyle;
|
|
25
|
+
content?: ViewStyle;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Modal state that can be saved and restored when minimizing/restoring
|
|
29
|
+
*/
|
|
30
|
+
export interface ModalState {
|
|
31
|
+
mode: ModalMode;
|
|
32
|
+
panelHeight?: number;
|
|
33
|
+
floatingPosition?: {
|
|
34
|
+
x: number;
|
|
35
|
+
y: number;
|
|
36
|
+
};
|
|
37
|
+
floatingDimensions?: {
|
|
38
|
+
width: number;
|
|
39
|
+
height: number;
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
interface JsModalProps {
|
|
43
|
+
visible: boolean;
|
|
44
|
+
onClose: () => void;
|
|
45
|
+
children: ReactNode;
|
|
46
|
+
header?: HeaderConfig;
|
|
47
|
+
styles?: CustomStyles;
|
|
48
|
+
minHeight?: number;
|
|
49
|
+
maxHeight?: number;
|
|
50
|
+
initialHeight?: number;
|
|
51
|
+
animatedHeight?: Animated.Value;
|
|
52
|
+
initialMode?: ModalMode;
|
|
53
|
+
onModeChange?: (mode: ModalMode) => void;
|
|
54
|
+
persistenceKey?: string;
|
|
55
|
+
enablePersistence?: boolean;
|
|
56
|
+
enableGlitchEffects?: boolean;
|
|
57
|
+
initialFloatingPosition?: {
|
|
58
|
+
x?: number;
|
|
59
|
+
y?: number;
|
|
60
|
+
};
|
|
61
|
+
footer?: ReactNode;
|
|
62
|
+
footerHeight?: number;
|
|
63
|
+
onBack?: () => void;
|
|
64
|
+
/** Callback when minimize is requested - receives current modal state for restoration */
|
|
65
|
+
onMinimize?: (modalState: ModalState) => void;
|
|
66
|
+
/** Target position for minimize animation (where the icon will appear) */
|
|
67
|
+
minimizeTargetPosition?: {
|
|
68
|
+
x: number;
|
|
69
|
+
y: number;
|
|
70
|
+
};
|
|
71
|
+
/** Initial modal state to restore from (when restoring from minimized) */
|
|
72
|
+
initialModalState?: ModalState;
|
|
73
|
+
/** z-index for stacking multiple modals (higher = on top) */
|
|
74
|
+
zIndex?: number;
|
|
75
|
+
}
|
|
76
|
+
export declare const JsModal: import("react").NamedExoticComponent<JsModalProps>;
|
|
77
|
+
export {};
|
|
78
|
+
//# sourceMappingURL=JsModal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"JsModal.d.ts","sourceRoot":"","sources":["../../../src/JsModal.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAUL,SAAS,EAEV,MAAM,OAAO,CAAC;AACf,OAAO,EAML,QAAQ,EAGR,SAAS,EAEV,MAAM,cAAc,CAAC;AA4FtB,MAAM,MAAM,SAAS,GAAG,aAAa,GAAG,UAAU,CAAC;AAEnD,UAAU,YAAY;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,aAAa,CAAC,EAAE,SAAS,CAAC;IAC1B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B;AAED,UAAU,YAAY;IACpB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,OAAO,CAAC,EAAE,SAAS,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,SAAS,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,CAAC,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC5C,kBAAkB,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;CACxD;AAED,UAAU,YAAY;IACpB,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,EAAE,SAAS,CAAC;IACpB,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,QAAQ,CAAC,KAAK,CAAC;IAChC,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC;IACzC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,uBAAuB,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAErD,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,yFAAyF;IACzF,UAAU,CAAC,EAAE,CAAC,UAAU,EAAE,UAAU,KAAK,IAAI,CAAC;IAC9C,0EAA0E;IAC1E,sBAAsB,CAAC,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAClD,0EAA0E;IAC1E,iBAAiB,CAAC,EAAE,UAAU,CAAC;IAC/B,6DAA6D;IAC7D,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AA8gDD,eAAO,MAAM,OAAO,oDAAyB,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Auto-detect Clipboard Implementation
|
|
3
|
+
*
|
|
4
|
+
* This module re-exports clipboard functionality that was configured
|
|
5
|
+
* at install time by the postinstall script (scripts/detect-clipboard.js).
|
|
6
|
+
*
|
|
7
|
+
* The postinstall script detects which clipboard library is installed:
|
|
8
|
+
* 1. expo-clipboard (preferred for Expo projects)
|
|
9
|
+
* 2. @react-native-clipboard/clipboard (for RN CLI projects)
|
|
10
|
+
* 3. none (graceful degradation)
|
|
11
|
+
*
|
|
12
|
+
* This is a TRUE zero-config solution because:
|
|
13
|
+
* - No metro.config.js changes needed
|
|
14
|
+
* - Detection happens at install time (not bundle time)
|
|
15
|
+
* - Metro sees static imports only
|
|
16
|
+
* - Works with any Metro version
|
|
17
|
+
*/
|
|
18
|
+
export { clipboardFunction, clipboardType, isClipboardAvailable, type ClipboardFunction, } from "./clipboard-impl";
|
|
19
|
+
import { clipboardFunction } from "./clipboard-impl";
|
|
20
|
+
/**
|
|
21
|
+
* Attempts to auto-detect and return a clipboard implementation.
|
|
22
|
+
* Returns null if no clipboard library is available.
|
|
23
|
+
*/
|
|
24
|
+
export declare function createAutoDetectedClipboard(): typeof clipboardFunction | null;
|
|
25
|
+
/**
|
|
26
|
+
* Gets the auto-detected clipboard function.
|
|
27
|
+
* Returns a function that will attempt to copy text and return success/failure.
|
|
28
|
+
* If no clipboard library is available, it logs an error and returns false.
|
|
29
|
+
*/
|
|
30
|
+
export declare function getAutoDetectedClipboard(): typeof clipboardFunction;
|
|
31
|
+
//# sourceMappingURL=autoDetectClipboard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"autoDetectClipboard.d.ts","sourceRoot":"","sources":["../../../../src/clipboard/autoDetectClipboard.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,EACL,iBAAiB,EACjB,aAAa,EACb,oBAAoB,EACpB,KAAK,iBAAiB,GACvB,MAAM,kBAAkB,CAAC;AAG1B,OAAO,EACL,iBAAiB,EAElB,MAAM,kBAAkB,CAAC;AAE1B;;;GAGG;AACH,wBAAgB,2BAA2B,IAAI,OAAO,iBAAiB,GAAG,IAAI,CAK7E;AAED;;;;GAIG;AACH,wBAAgB,wBAAwB,IAAI,OAAO,iBAAiB,CAEnE"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Auto-generated clipboard implementation
|
|
3
|
+
* Detected: none
|
|
4
|
+
* Generated at: 2026-01-03T16:08:00.605Z
|
|
5
|
+
*
|
|
6
|
+
* DO NOT EDIT - This file is generated by scripts/detect-clipboard.js
|
|
7
|
+
*
|
|
8
|
+
* No clipboard library found. Install one of:
|
|
9
|
+
* - expo-clipboard (for Expo projects)
|
|
10
|
+
* - @react-native-clipboard/clipboard (for RN CLI projects)
|
|
11
|
+
*/
|
|
12
|
+
export type ClipboardFunction = (text: string) => Promise<boolean>;
|
|
13
|
+
export declare const clipboardType: "expo" | "react-native" | null;
|
|
14
|
+
export declare const isClipboardAvailable: () => boolean;
|
|
15
|
+
export declare const clipboardFunction: ClipboardFunction;
|
|
16
|
+
//# sourceMappingURL=clipboard-impl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clipboard-impl.d.ts","sourceRoot":"","sources":["../../../../src/clipboard/clipboard-impl.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;AAEnE,eAAO,MAAM,aAAa,EAAE,MAAM,GAAG,cAAc,GAAG,IAAW,CAAC;AAElE,eAAO,MAAM,oBAAoB,QAAO,OAAgB,CAAC;AAEzD,eAAO,MAAM,iBAAiB,EAAE,iBAO/B,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copy a value to clipboard, handling stringification automatically
|
|
3
|
+
* @param value - The value to copy (can be any type)
|
|
4
|
+
* @returns Promise<boolean> - true if successful, false otherwise
|
|
5
|
+
*/
|
|
6
|
+
export declare function copyToClipboard(value: unknown): Promise<boolean>;
|
|
7
|
+
/**
|
|
8
|
+
* Check if clipboard functionality is available
|
|
9
|
+
*/
|
|
10
|
+
export declare function isClipboardAvailable(): boolean;
|
|
11
|
+
//# sourceMappingURL=copyToClipboard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"copyToClipboard.d.ts","sourceRoot":"","sources":["../../../../src/clipboard/copyToClipboard.ts"],"names":[],"mappings":"AAOA;;;;GAIG;AACH,wBAAsB,eAAe,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CA0CtE;AAED;;GAEG;AACH,wBAAgB,oBAAoB,IAAI,OAAO,CAK9C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/clipboard/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EACL,2BAA2B,EAC3B,wBAAwB,GACzB,MAAM,uBAAuB,CAAC;AAC/B,YAAY,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC"}
|