@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,882 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
// @ts-nocheck
|
|
4
|
+
/**
|
|
5
|
+
* Tree Diff Viewer Component
|
|
6
|
+
*
|
|
7
|
+
* A React Native diff viewer that displays changes in a hierarchical tree structure
|
|
8
|
+
* Shows added (+), removed (−), and changed (≈) items with visual indicators
|
|
9
|
+
*
|
|
10
|
+
* Usage:
|
|
11
|
+
* <TreeDiffViewer
|
|
12
|
+
* oldValue={oldObject}
|
|
13
|
+
* newValue={newObject}
|
|
14
|
+
* theme="dark" // or "light"
|
|
15
|
+
* />
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
import React, { useMemo, useState, useEffect } from "react";
|
|
19
|
+
import { View, Text, ScrollView, StyleSheet, TouchableOpacity } from "react-native";
|
|
20
|
+
import { gameUIColors } from "@buoy-gg/shared-ui";
|
|
21
|
+
|
|
22
|
+
// ============================================
|
|
23
|
+
// TYPES & INTERFACES
|
|
24
|
+
// ============================================
|
|
25
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
26
|
+
// ============================================
|
|
27
|
+
// THEMES
|
|
28
|
+
// ============================================
|
|
29
|
+
|
|
30
|
+
const darkTheme = {
|
|
31
|
+
background: gameUIColors.diff.lineNumberBackground,
|
|
32
|
+
// Exact from gameUIColors
|
|
33
|
+
text: gameUIColors.diff.unchangedText,
|
|
34
|
+
// Exact from gameUIColors
|
|
35
|
+
// Line backgrounds - exact from gameUIColors
|
|
36
|
+
addedBg: gameUIColors.diff.addedBackground,
|
|
37
|
+
removedBg: gameUIColors.diff.removedBackground,
|
|
38
|
+
changedBg: gameUIColors.diff.modifiedBackground,
|
|
39
|
+
// Text colors - exact from gameUIColors
|
|
40
|
+
addedText: gameUIColors.diff.addedText,
|
|
41
|
+
removedText: gameUIColors.diff.removedText,
|
|
42
|
+
changedText: gameUIColors.diff.modifiedText,
|
|
43
|
+
// Word highlights - darker backgrounds for text
|
|
44
|
+
addedWordBg: gameUIColors.diff.addedWordHighlight,
|
|
45
|
+
removedWordBg: gameUIColors.diff.removedWordHighlight,
|
|
46
|
+
// UI elements
|
|
47
|
+
arrowText: gameUIColors.diff.modifiedText,
|
|
48
|
+
keyText: gameUIColors.diff.modifiedText,
|
|
49
|
+
expandIcon: gameUIColors.diff.lineNumberText,
|
|
50
|
+
bracketText: gameUIColors.diff.unchangedText,
|
|
51
|
+
nullText: gameUIColors.diff.modifiedText,
|
|
52
|
+
undefinedText: gameUIColors.diff.modifiedText,
|
|
53
|
+
stringText: gameUIColors.diff.unchangedText,
|
|
54
|
+
numberText: gameUIColors.diff.unchangedText,
|
|
55
|
+
booleanText: gameUIColors.diff.modifiedText
|
|
56
|
+
};
|
|
57
|
+
const lightTheme = {
|
|
58
|
+
background: "#ffffff",
|
|
59
|
+
text: "#333333",
|
|
60
|
+
addedBg: "rgba(40, 167, 69, 0.1)",
|
|
61
|
+
addedText: "#28A745",
|
|
62
|
+
removedBg: "rgba(220, 53, 69, 0.1)",
|
|
63
|
+
removedText: "#DC3545",
|
|
64
|
+
changedBg: "rgba(255, 193, 7, 0.1)",
|
|
65
|
+
changedText: "#FFC107",
|
|
66
|
+
arrowText: "#007BFF",
|
|
67
|
+
keyText: "#0451A5",
|
|
68
|
+
expandIcon: "#6A737D",
|
|
69
|
+
bracketText: "#6A737D",
|
|
70
|
+
nullText: "#0000FF",
|
|
71
|
+
undefinedText: "#0000FF",
|
|
72
|
+
stringText: "#A31515",
|
|
73
|
+
numberText: "#098658",
|
|
74
|
+
booleanText: "#0000FF"
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
// ============================================
|
|
78
|
+
// DIFF COMPUTATION
|
|
79
|
+
// ============================================
|
|
80
|
+
|
|
81
|
+
// Removed unused getType function
|
|
82
|
+
|
|
83
|
+
function isObject(obj) {
|
|
84
|
+
return obj !== null && typeof obj === "object" && !Array.isArray(obj);
|
|
85
|
+
}
|
|
86
|
+
function isEqual(a, b) {
|
|
87
|
+
if (a === b) return true;
|
|
88
|
+
if (a === null || b === null) return false;
|
|
89
|
+
if (a === undefined || b === undefined) return false;
|
|
90
|
+
if (typeof a !== typeof b) return false;
|
|
91
|
+
if (typeof a === "object") {
|
|
92
|
+
if (Array.isArray(a) && Array.isArray(b)) {
|
|
93
|
+
if (a.length !== b.length) return false;
|
|
94
|
+
return a.every((val, idx) => isEqual(val, b[idx]));
|
|
95
|
+
}
|
|
96
|
+
if (isObject(a) && isObject(b)) {
|
|
97
|
+
const aKeys = Object.keys(a);
|
|
98
|
+
const bKeys = Object.keys(b);
|
|
99
|
+
if (aKeys.length !== bKeys.length) return false;
|
|
100
|
+
return aKeys.every(key => isEqual(a[key], b[key]));
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
return false;
|
|
104
|
+
}
|
|
105
|
+
function computeDiff(oldValue, newValue, path = []) {
|
|
106
|
+
const result = [];
|
|
107
|
+
|
|
108
|
+
// Handle primitives and null/undefined
|
|
109
|
+
if (!isObject(oldValue) && !isObject(newValue) && !Array.isArray(oldValue) && !Array.isArray(newValue)) {
|
|
110
|
+
if (!isEqual(oldValue, newValue)) {
|
|
111
|
+
return [{
|
|
112
|
+
key: path.length > 0 ? path[path.length - 1] : "root",
|
|
113
|
+
path,
|
|
114
|
+
type: oldValue === undefined ? "added" : newValue === undefined ? "removed" : "changed",
|
|
115
|
+
oldValue,
|
|
116
|
+
newValue
|
|
117
|
+
}];
|
|
118
|
+
}
|
|
119
|
+
return [{
|
|
120
|
+
key: path.length > 0 ? path[path.length - 1] : "root",
|
|
121
|
+
path,
|
|
122
|
+
type: "unchanged",
|
|
123
|
+
oldValue,
|
|
124
|
+
newValue
|
|
125
|
+
}];
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
// Handle arrays
|
|
129
|
+
if (Array.isArray(oldValue) || Array.isArray(newValue)) {
|
|
130
|
+
const oldArray = Array.isArray(oldValue) ? oldValue : [];
|
|
131
|
+
const newArray = Array.isArray(newValue) ? newValue : [];
|
|
132
|
+
const maxLength = Math.max(oldArray.length, newArray.length);
|
|
133
|
+
for (let i = 0; i < maxLength; i++) {
|
|
134
|
+
const itemPath = [...path, `[${i}]`];
|
|
135
|
+
const oldItem = i < oldArray.length ? oldArray[i] : undefined;
|
|
136
|
+
const newItem = i < newArray.length ? newArray[i] : undefined;
|
|
137
|
+
if (oldItem === undefined) {
|
|
138
|
+
// Added array item: if complex, include children so it can expand
|
|
139
|
+
const isComplex = Array.isArray(newItem) || isObject(newItem);
|
|
140
|
+
result.push({
|
|
141
|
+
key: `[${i}]`,
|
|
142
|
+
path: itemPath,
|
|
143
|
+
type: "added",
|
|
144
|
+
newValue: newItem,
|
|
145
|
+
...(isComplex ? {
|
|
146
|
+
children: computeDiff(Array.isArray(newItem) ? [] : {}, newItem, itemPath),
|
|
147
|
+
expanded: false
|
|
148
|
+
} : {})
|
|
149
|
+
});
|
|
150
|
+
} else if (newItem === undefined) {
|
|
151
|
+
// Removed array item: if complex, include children so it can expand
|
|
152
|
+
const isComplex = Array.isArray(oldItem) || isObject(oldItem);
|
|
153
|
+
result.push({
|
|
154
|
+
key: `[${i}]`,
|
|
155
|
+
path: itemPath,
|
|
156
|
+
type: "removed",
|
|
157
|
+
oldValue: oldItem,
|
|
158
|
+
...(isComplex ? {
|
|
159
|
+
children: computeDiff(oldItem, Array.isArray(oldItem) ? [] : {}, itemPath),
|
|
160
|
+
expanded: false
|
|
161
|
+
} : {})
|
|
162
|
+
});
|
|
163
|
+
} else if (!isEqual(oldItem, newItem)) {
|
|
164
|
+
if (isObject(oldItem) || isObject(newItem) || Array.isArray(oldItem) || Array.isArray(newItem)) {
|
|
165
|
+
result.push({
|
|
166
|
+
key: `[${i}]`,
|
|
167
|
+
path: itemPath,
|
|
168
|
+
type: "changed",
|
|
169
|
+
oldValue: oldItem,
|
|
170
|
+
newValue: newItem,
|
|
171
|
+
children: computeDiff(oldItem, newItem, itemPath),
|
|
172
|
+
expanded: false
|
|
173
|
+
});
|
|
174
|
+
} else {
|
|
175
|
+
result.push({
|
|
176
|
+
key: `[${i}]`,
|
|
177
|
+
path: itemPath,
|
|
178
|
+
type: "changed",
|
|
179
|
+
oldValue: oldItem,
|
|
180
|
+
newValue: newItem
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
} else {
|
|
184
|
+
const isComplex = Array.isArray(oldItem) || isObject(oldItem);
|
|
185
|
+
result.push({
|
|
186
|
+
key: `[${i}]`,
|
|
187
|
+
path: itemPath,
|
|
188
|
+
type: "unchanged",
|
|
189
|
+
oldValue: oldItem,
|
|
190
|
+
newValue: newItem,
|
|
191
|
+
...(isComplex ? {
|
|
192
|
+
children: computeDiff(oldItem, newItem, itemPath),
|
|
193
|
+
expanded: false
|
|
194
|
+
} : {})
|
|
195
|
+
});
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
return result;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
// Handle objects
|
|
202
|
+
const oldObj = isObject(oldValue) ? oldValue : {};
|
|
203
|
+
const newObj = isObject(newValue) ? newValue : {};
|
|
204
|
+
const allKeys = new Set([...Object.keys(oldObj), ...Object.keys(newObj)]);
|
|
205
|
+
for (const key of allKeys) {
|
|
206
|
+
const keyPath = [...path, key];
|
|
207
|
+
const oldVal = oldObj[key];
|
|
208
|
+
const newVal = newObj[key];
|
|
209
|
+
if (!(key in oldObj)) {
|
|
210
|
+
// Added key: if complex, include children so it can expand
|
|
211
|
+
const isComplex = Array.isArray(newVal) || isObject(newVal);
|
|
212
|
+
result.push({
|
|
213
|
+
key,
|
|
214
|
+
path: keyPath,
|
|
215
|
+
type: "added",
|
|
216
|
+
newValue: newVal,
|
|
217
|
+
...(isComplex ? {
|
|
218
|
+
children: computeDiff(Array.isArray(newVal) ? [] : {}, newVal, keyPath),
|
|
219
|
+
expanded: false
|
|
220
|
+
} : {})
|
|
221
|
+
});
|
|
222
|
+
} else if (!(key in newObj)) {
|
|
223
|
+
// Removed key: if complex, include children so it can expand
|
|
224
|
+
const isComplex = Array.isArray(oldVal) || isObject(oldVal);
|
|
225
|
+
result.push({
|
|
226
|
+
key,
|
|
227
|
+
path: keyPath,
|
|
228
|
+
type: "removed",
|
|
229
|
+
oldValue: oldVal,
|
|
230
|
+
...(isComplex ? {
|
|
231
|
+
children: computeDiff(oldVal, Array.isArray(oldVal) ? [] : {}, keyPath),
|
|
232
|
+
expanded: false
|
|
233
|
+
} : {})
|
|
234
|
+
});
|
|
235
|
+
} else if (!isEqual(oldVal, newVal)) {
|
|
236
|
+
if (isObject(oldVal) || isObject(newVal) || Array.isArray(oldVal) || Array.isArray(newVal)) {
|
|
237
|
+
result.push({
|
|
238
|
+
key,
|
|
239
|
+
path: keyPath,
|
|
240
|
+
type: "changed",
|
|
241
|
+
oldValue: oldVal,
|
|
242
|
+
newValue: newVal,
|
|
243
|
+
children: computeDiff(oldVal, newVal, keyPath),
|
|
244
|
+
expanded: false
|
|
245
|
+
});
|
|
246
|
+
} else {
|
|
247
|
+
result.push({
|
|
248
|
+
key,
|
|
249
|
+
path: keyPath,
|
|
250
|
+
type: "changed",
|
|
251
|
+
oldValue: oldVal,
|
|
252
|
+
newValue: newVal
|
|
253
|
+
});
|
|
254
|
+
}
|
|
255
|
+
} else {
|
|
256
|
+
const isComplex = Array.isArray(oldVal) || isObject(oldVal);
|
|
257
|
+
result.push({
|
|
258
|
+
key,
|
|
259
|
+
path: keyPath,
|
|
260
|
+
type: "unchanged",
|
|
261
|
+
oldValue: oldVal,
|
|
262
|
+
newValue: newVal,
|
|
263
|
+
...(isComplex ? {
|
|
264
|
+
children: computeDiff(oldVal, newVal, keyPath),
|
|
265
|
+
expanded: false
|
|
266
|
+
} : {})
|
|
267
|
+
});
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
return result;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
// ============================================
|
|
274
|
+
// VALUE RENDERING
|
|
275
|
+
// ============================================
|
|
276
|
+
|
|
277
|
+
function stringifyValue(value, compact = true) {
|
|
278
|
+
if (value === null) return "null";
|
|
279
|
+
if (value === undefined) return "undefined";
|
|
280
|
+
if (typeof value === "string") {
|
|
281
|
+
// Truncate long strings for better readability
|
|
282
|
+
if (compact && value.length > 30) {
|
|
283
|
+
return `"${value.substring(0, 27)}..."`;
|
|
284
|
+
}
|
|
285
|
+
return `"${value}"`;
|
|
286
|
+
}
|
|
287
|
+
if (typeof value === "number") {
|
|
288
|
+
// Format large numbers with commas for readability
|
|
289
|
+
return value.toLocaleString();
|
|
290
|
+
}
|
|
291
|
+
if (typeof value === "boolean") {
|
|
292
|
+
return String(value);
|
|
293
|
+
}
|
|
294
|
+
if (Array.isArray(value)) {
|
|
295
|
+
if (compact) {
|
|
296
|
+
const count = value.length;
|
|
297
|
+
return count === 0 ? "[ ]" : `[ ${count} item${count !== 1 ? "s" : ""} ]`;
|
|
298
|
+
}
|
|
299
|
+
return JSON.stringify(value, null, 2);
|
|
300
|
+
}
|
|
301
|
+
if (isObject(value)) {
|
|
302
|
+
if (compact) {
|
|
303
|
+
const keys = Object.keys(value).length;
|
|
304
|
+
return keys === 0 ? "{ }" : `{ ${keys} key${keys !== 1 ? "s" : ""} }`;
|
|
305
|
+
}
|
|
306
|
+
return JSON.stringify(value, null, 2);
|
|
307
|
+
}
|
|
308
|
+
return String(value);
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
// ============================================
|
|
312
|
+
// MAIN COMPONENT
|
|
313
|
+
// ============================================
|
|
314
|
+
|
|
315
|
+
export default function TreeDiffViewer({
|
|
316
|
+
oldValue,
|
|
317
|
+
newValue,
|
|
318
|
+
theme: themeName = "dark",
|
|
319
|
+
expandAll = false,
|
|
320
|
+
showUnchanged = true
|
|
321
|
+
}) {
|
|
322
|
+
const theme = themeName === "dark" ? darkTheme : lightTheme;
|
|
323
|
+
|
|
324
|
+
// Initialize with first-level items expanded
|
|
325
|
+
const [expandedPaths, setExpandedPaths] = useState(() => {
|
|
326
|
+
const initialExpanded = new Set();
|
|
327
|
+
// Auto-expand first level items
|
|
328
|
+
const rootDiff = computeDiff(oldValue, newValue);
|
|
329
|
+
rootDiff.forEach(node => {
|
|
330
|
+
if (node.children && node.children.length > 0) {
|
|
331
|
+
initialExpanded.add(node.path.join("."));
|
|
332
|
+
}
|
|
333
|
+
});
|
|
334
|
+
return initialExpanded;
|
|
335
|
+
});
|
|
336
|
+
const diffTree = useMemo(() => {
|
|
337
|
+
const rootDiff = computeDiff(oldValue, newValue);
|
|
338
|
+
return rootDiff;
|
|
339
|
+
}, [oldValue, newValue]);
|
|
340
|
+
|
|
341
|
+
// Auto-expand all first-level nodes whenever the compared values change
|
|
342
|
+
useEffect(() => {
|
|
343
|
+
const initial = new Set();
|
|
344
|
+
diffTree.forEach(node => {
|
|
345
|
+
if (node.children && node.children.length > 0) {
|
|
346
|
+
initial.add(node.path.join("."));
|
|
347
|
+
}
|
|
348
|
+
});
|
|
349
|
+
setExpandedPaths(initial);
|
|
350
|
+
}, [diffTree]);
|
|
351
|
+
const toggleExpanded = path => {
|
|
352
|
+
const pathStr = path.join(".");
|
|
353
|
+
setExpandedPaths(prev => {
|
|
354
|
+
const next = new Set(prev);
|
|
355
|
+
if (next.has(pathStr)) {
|
|
356
|
+
next.delete(pathStr);
|
|
357
|
+
} else {
|
|
358
|
+
next.add(pathStr);
|
|
359
|
+
}
|
|
360
|
+
return next;
|
|
361
|
+
});
|
|
362
|
+
};
|
|
363
|
+
|
|
364
|
+
// Track line numbers globally for the entire tree
|
|
365
|
+
let globalLineNumber = 0;
|
|
366
|
+
const renderDiffNode = (node, depth = 0) => {
|
|
367
|
+
if (!showUnchanged && node.type === "unchanged") {
|
|
368
|
+
return null;
|
|
369
|
+
}
|
|
370
|
+
globalLineNumber++;
|
|
371
|
+
const currentLine = globalLineNumber;
|
|
372
|
+
const indent = depth * 20;
|
|
373
|
+
const isExpanded = expandAll || expandedPaths.has(node.path.join("."));
|
|
374
|
+
const hasChildren = node.children && node.children.length > 0;
|
|
375
|
+
|
|
376
|
+
// Row background matches DEFAULT viewer behavior
|
|
377
|
+
const getNodeStyle = () => {
|
|
378
|
+
switch (node.type) {
|
|
379
|
+
case "added":
|
|
380
|
+
return {
|
|
381
|
+
backgroundColor: theme.addedBg
|
|
382
|
+
};
|
|
383
|
+
case "removed":
|
|
384
|
+
return {
|
|
385
|
+
backgroundColor: theme.removedBg
|
|
386
|
+
};
|
|
387
|
+
case "changed":
|
|
388
|
+
return {
|
|
389
|
+
backgroundColor: theme.changedBg
|
|
390
|
+
};
|
|
391
|
+
default:
|
|
392
|
+
return {
|
|
393
|
+
backgroundColor: "transparent"
|
|
394
|
+
};
|
|
395
|
+
}
|
|
396
|
+
};
|
|
397
|
+
|
|
398
|
+
// Removed unused getTextColor function
|
|
399
|
+
|
|
400
|
+
// Get the marker (+, -, ~) for the diff type
|
|
401
|
+
const getMarker = () => {
|
|
402
|
+
switch (node.type) {
|
|
403
|
+
case "added":
|
|
404
|
+
return "+";
|
|
405
|
+
case "removed":
|
|
406
|
+
return "−";
|
|
407
|
+
// Use proper minus sign
|
|
408
|
+
case "changed":
|
|
409
|
+
return "≈";
|
|
410
|
+
// Use proper approximation sign
|
|
411
|
+
default:
|
|
412
|
+
return " ";
|
|
413
|
+
}
|
|
414
|
+
};
|
|
415
|
+
|
|
416
|
+
// Get marker colors
|
|
417
|
+
const getMarkerStyle = () => {
|
|
418
|
+
switch (node.type) {
|
|
419
|
+
case "added":
|
|
420
|
+
return {
|
|
421
|
+
backgroundColor: gameUIColors.diff.markerAddedBackground,
|
|
422
|
+
color: gameUIColors.diff.addedText
|
|
423
|
+
};
|
|
424
|
+
case "removed":
|
|
425
|
+
return {
|
|
426
|
+
backgroundColor: gameUIColors.diff.markerRemovedBackground,
|
|
427
|
+
color: gameUIColors.diff.removedText
|
|
428
|
+
};
|
|
429
|
+
case "changed":
|
|
430
|
+
return {
|
|
431
|
+
backgroundColor: gameUIColors.diff.markerModifiedBackground,
|
|
432
|
+
color: gameUIColors.diff.modifiedText
|
|
433
|
+
};
|
|
434
|
+
default:
|
|
435
|
+
return {
|
|
436
|
+
backgroundColor: "transparent",
|
|
437
|
+
color: gameUIColors.diff.markerText
|
|
438
|
+
};
|
|
439
|
+
}
|
|
440
|
+
};
|
|
441
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
442
|
+
children: [/*#__PURE__*/_jsxs(TouchableOpacity, {
|
|
443
|
+
activeOpacity: hasChildren ? 0.7 : 1,
|
|
444
|
+
onPress: hasChildren ? () => toggleExpanded(node.path) : undefined,
|
|
445
|
+
style: [styles.row, getNodeStyle()],
|
|
446
|
+
children: [/*#__PURE__*/_jsx(View, {
|
|
447
|
+
style: styles.lineNumber,
|
|
448
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
449
|
+
style: [styles.lineNumberText, {
|
|
450
|
+
color: gameUIColors.diff.lineNumberText
|
|
451
|
+
}],
|
|
452
|
+
children: String(currentLine).padStart(2, " ")
|
|
453
|
+
})
|
|
454
|
+
}), /*#__PURE__*/_jsx(View, {
|
|
455
|
+
style: [styles.marker, getMarkerStyle()],
|
|
456
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
457
|
+
style: [styles.markerText, {
|
|
458
|
+
color: getMarkerStyle().color
|
|
459
|
+
}],
|
|
460
|
+
children: getMarker()
|
|
461
|
+
})
|
|
462
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
463
|
+
style: [styles.content, {
|
|
464
|
+
paddingLeft: indent
|
|
465
|
+
}],
|
|
466
|
+
children: [hasChildren && /*#__PURE__*/_jsx(View, {
|
|
467
|
+
style: styles.expandIconContainer,
|
|
468
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
469
|
+
style: [styles.expandIcon, {
|
|
470
|
+
color: theme.expandIcon
|
|
471
|
+
}],
|
|
472
|
+
children: isExpanded ? "−" : "+"
|
|
473
|
+
})
|
|
474
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
475
|
+
style: [styles.key, {
|
|
476
|
+
color: theme.keyText
|
|
477
|
+
}],
|
|
478
|
+
children: node.key
|
|
479
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
480
|
+
style: [styles.colon, {
|
|
481
|
+
color: theme.expandIcon
|
|
482
|
+
}],
|
|
483
|
+
children: ":"
|
|
484
|
+
}), node.type === "changed" && !hasChildren && /*#__PURE__*/_jsxs(_Fragment, {
|
|
485
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
486
|
+
style: [styles.value, {
|
|
487
|
+
color: theme.removedText,
|
|
488
|
+
backgroundColor: theme.removedWordBg,
|
|
489
|
+
// Use word highlight for stronger effect
|
|
490
|
+
paddingHorizontal: 3,
|
|
491
|
+
paddingVertical: 2,
|
|
492
|
+
borderRadius: 3,
|
|
493
|
+
textDecorationLine: "line-through",
|
|
494
|
+
textDecorationColor: theme.removedText
|
|
495
|
+
}],
|
|
496
|
+
children: stringifyValue(node.oldValue)
|
|
497
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
498
|
+
style: [styles.arrow, {
|
|
499
|
+
color: theme.arrowText,
|
|
500
|
+
paddingHorizontal: 4
|
|
501
|
+
}],
|
|
502
|
+
children: " => "
|
|
503
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
504
|
+
style: [styles.value, {
|
|
505
|
+
color: theme.addedText,
|
|
506
|
+
backgroundColor: theme.addedWordBg,
|
|
507
|
+
// Use word highlight for stronger effect
|
|
508
|
+
paddingHorizontal: 3,
|
|
509
|
+
paddingVertical: 2,
|
|
510
|
+
borderRadius: 3
|
|
511
|
+
}],
|
|
512
|
+
children: stringifyValue(node.newValue)
|
|
513
|
+
})]
|
|
514
|
+
}), node.type === "added" && !hasChildren && /*#__PURE__*/_jsx(Text, {
|
|
515
|
+
style: [styles.value, {
|
|
516
|
+
color: theme.addedText,
|
|
517
|
+
backgroundColor: theme.addedWordBg,
|
|
518
|
+
// Use word highlight for stronger effect
|
|
519
|
+
paddingHorizontal: 3,
|
|
520
|
+
paddingVertical: 2,
|
|
521
|
+
borderRadius: 3
|
|
522
|
+
}],
|
|
523
|
+
children: stringifyValue(node.newValue)
|
|
524
|
+
}), node.type === "removed" && !hasChildren && /*#__PURE__*/_jsx(Text, {
|
|
525
|
+
style: [styles.value, {
|
|
526
|
+
color: theme.removedText,
|
|
527
|
+
backgroundColor: theme.removedWordBg,
|
|
528
|
+
// Use word highlight for stronger effect
|
|
529
|
+
paddingHorizontal: 3,
|
|
530
|
+
paddingVertical: 2,
|
|
531
|
+
borderRadius: 3,
|
|
532
|
+
textDecorationLine: "line-through",
|
|
533
|
+
textDecorationColor: theme.removedText
|
|
534
|
+
}],
|
|
535
|
+
children: stringifyValue(node.oldValue)
|
|
536
|
+
}), node.type === "unchanged" && !hasChildren && /*#__PURE__*/_jsx(Text, {
|
|
537
|
+
style: [styles.value, {
|
|
538
|
+
color: theme.text
|
|
539
|
+
}],
|
|
540
|
+
children: stringifyValue(node.oldValue)
|
|
541
|
+
}), hasChildren && !isExpanded && /*#__PURE__*/_jsxs(_Fragment, {
|
|
542
|
+
children: [node.type === "changed" && /*#__PURE__*/_jsxs(_Fragment, {
|
|
543
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
544
|
+
style: [styles.value, {
|
|
545
|
+
color: theme.removedText,
|
|
546
|
+
backgroundColor: theme.removedWordBg,
|
|
547
|
+
// Use word highlight for stronger effect
|
|
548
|
+
paddingHorizontal: 3,
|
|
549
|
+
paddingVertical: 2,
|
|
550
|
+
borderRadius: 3,
|
|
551
|
+
textDecorationLine: "line-through",
|
|
552
|
+
textDecorationColor: theme.removedText
|
|
553
|
+
}],
|
|
554
|
+
children: stringifyValue(node.oldValue, true)
|
|
555
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
556
|
+
style: [styles.arrow, {
|
|
557
|
+
color: theme.arrowText,
|
|
558
|
+
paddingHorizontal: 4
|
|
559
|
+
}],
|
|
560
|
+
children: " => "
|
|
561
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
562
|
+
style: [styles.value, {
|
|
563
|
+
color: theme.addedText,
|
|
564
|
+
backgroundColor: theme.addedWordBg,
|
|
565
|
+
// Use word highlight for stronger effect
|
|
566
|
+
paddingHorizontal: 3,
|
|
567
|
+
paddingVertical: 2,
|
|
568
|
+
borderRadius: 3
|
|
569
|
+
}],
|
|
570
|
+
children: stringifyValue(node.newValue, true)
|
|
571
|
+
})]
|
|
572
|
+
}), node.type === "added" && /*#__PURE__*/_jsx(Text, {
|
|
573
|
+
style: [styles.value, {
|
|
574
|
+
color: theme.addedText,
|
|
575
|
+
backgroundColor: theme.addedWordBg,
|
|
576
|
+
// Use word highlight for stronger effect
|
|
577
|
+
paddingHorizontal: 3,
|
|
578
|
+
paddingVertical: 2,
|
|
579
|
+
borderRadius: 3
|
|
580
|
+
}],
|
|
581
|
+
children: stringifyValue(node.newValue, true)
|
|
582
|
+
}), node.type === "removed" && /*#__PURE__*/_jsx(Text, {
|
|
583
|
+
style: [styles.value, {
|
|
584
|
+
color: theme.removedText,
|
|
585
|
+
backgroundColor: theme.removedWordBg,
|
|
586
|
+
// Use word highlight for stronger effect
|
|
587
|
+
paddingHorizontal: 3,
|
|
588
|
+
paddingVertical: 2,
|
|
589
|
+
borderRadius: 3,
|
|
590
|
+
textDecorationLine: "line-through",
|
|
591
|
+
textDecorationColor: theme.removedText
|
|
592
|
+
}],
|
|
593
|
+
children: stringifyValue(node.oldValue, true)
|
|
594
|
+
})]
|
|
595
|
+
})]
|
|
596
|
+
})]
|
|
597
|
+
}), hasChildren && isExpanded && /*#__PURE__*/_jsx(View, {
|
|
598
|
+
children: node.children.map(child => renderDiffNode(child, depth + 1))
|
|
599
|
+
})]
|
|
600
|
+
}, node.path.join("."));
|
|
601
|
+
};
|
|
602
|
+
const countChanges = nodes => {
|
|
603
|
+
let added = 0,
|
|
604
|
+
removed = 0,
|
|
605
|
+
changed = 0;
|
|
606
|
+
const count = nodeList => {
|
|
607
|
+
for (const node of nodeList) {
|
|
608
|
+
if (node.type === "added") added++;else if (node.type === "removed") removed++;else if (node.type === "changed") changed++;
|
|
609
|
+
if (node.children) {
|
|
610
|
+
count(node.children);
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
};
|
|
614
|
+
count(nodes);
|
|
615
|
+
return {
|
|
616
|
+
added,
|
|
617
|
+
removed,
|
|
618
|
+
changed
|
|
619
|
+
};
|
|
620
|
+
};
|
|
621
|
+
const stats = useMemo(() => countChanges(diffTree), [diffTree]);
|
|
622
|
+
|
|
623
|
+
// Show header only if there are changes
|
|
624
|
+
const hasChanges = stats.added > 0 || stats.removed > 0 || stats.changed > 0;
|
|
625
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
626
|
+
style: [styles.container, {
|
|
627
|
+
backgroundColor: theme.background
|
|
628
|
+
}],
|
|
629
|
+
children: [hasChanges && /*#__PURE__*/_jsx(View, {
|
|
630
|
+
style: [styles.header, {
|
|
631
|
+
backgroundColor: theme.background
|
|
632
|
+
}],
|
|
633
|
+
children: /*#__PURE__*/_jsxs(View, {
|
|
634
|
+
style: styles.summaryContainer,
|
|
635
|
+
children: [stats.added > 0 && /*#__PURE__*/_jsxs(View, {
|
|
636
|
+
style: [styles.summaryItem, styles.summaryAdded],
|
|
637
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
638
|
+
style: [styles.summaryIcon, {
|
|
639
|
+
color: theme.addedText
|
|
640
|
+
}],
|
|
641
|
+
children: "+"
|
|
642
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
643
|
+
style: [styles.summaryCount, {
|
|
644
|
+
color: theme.addedText
|
|
645
|
+
}],
|
|
646
|
+
children: stats.added
|
|
647
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
648
|
+
style: [styles.summaryLabel, {
|
|
649
|
+
color: theme.addedText
|
|
650
|
+
}],
|
|
651
|
+
children: "new"
|
|
652
|
+
})]
|
|
653
|
+
}), stats.removed > 0 && /*#__PURE__*/_jsxs(View, {
|
|
654
|
+
style: [styles.summaryItem, styles.summaryRemoved],
|
|
655
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
656
|
+
style: [styles.summaryIcon, {
|
|
657
|
+
color: theme.removedText
|
|
658
|
+
}],
|
|
659
|
+
children: "\u2212"
|
|
660
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
661
|
+
style: [styles.summaryCount, {
|
|
662
|
+
color: theme.removedText
|
|
663
|
+
}],
|
|
664
|
+
children: stats.removed
|
|
665
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
666
|
+
style: [styles.summaryLabel, {
|
|
667
|
+
color: theme.removedText
|
|
668
|
+
}],
|
|
669
|
+
children: "gone"
|
|
670
|
+
})]
|
|
671
|
+
}), stats.changed > 0 && /*#__PURE__*/_jsxs(View, {
|
|
672
|
+
style: [styles.summaryItem, styles.summaryChanged],
|
|
673
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
674
|
+
style: [styles.summaryIcon, {
|
|
675
|
+
color: theme.changedText
|
|
676
|
+
}],
|
|
677
|
+
children: "\u2248"
|
|
678
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
679
|
+
style: [styles.summaryCount, {
|
|
680
|
+
color: theme.changedText
|
|
681
|
+
}],
|
|
682
|
+
children: stats.changed
|
|
683
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
684
|
+
style: [styles.summaryLabel, {
|
|
685
|
+
color: theme.changedText
|
|
686
|
+
}],
|
|
687
|
+
children: "modified"
|
|
688
|
+
})]
|
|
689
|
+
})]
|
|
690
|
+
})
|
|
691
|
+
}), /*#__PURE__*/_jsx(ScrollView, {
|
|
692
|
+
style: styles.scrollView,
|
|
693
|
+
showsVerticalScrollIndicator: false,
|
|
694
|
+
children: diffTree.length === 0 ? /*#__PURE__*/_jsxs(View, {
|
|
695
|
+
style: styles.emptyState,
|
|
696
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
697
|
+
style: [styles.emptyIcon, {
|
|
698
|
+
color: theme.text
|
|
699
|
+
}],
|
|
700
|
+
children: "\u2261"
|
|
701
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
702
|
+
style: [styles.emptyTitle, {
|
|
703
|
+
color: theme.text
|
|
704
|
+
}],
|
|
705
|
+
children: "No changes detected"
|
|
706
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
707
|
+
style: [styles.emptySubtitle, {
|
|
708
|
+
color: theme.expandIcon
|
|
709
|
+
}],
|
|
710
|
+
children: "The data is identical"
|
|
711
|
+
})]
|
|
712
|
+
}) : /*#__PURE__*/_jsx(View, {
|
|
713
|
+
children: (() => {
|
|
714
|
+
globalLineNumber = 0; // Reset counter before rendering
|
|
715
|
+
return diffTree.map(node => renderDiffNode(node, 0));
|
|
716
|
+
})()
|
|
717
|
+
})
|
|
718
|
+
})]
|
|
719
|
+
});
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
// ============================================
|
|
723
|
+
// STYLES
|
|
724
|
+
// ============================================
|
|
725
|
+
|
|
726
|
+
const styles = StyleSheet.create({
|
|
727
|
+
container: {
|
|
728
|
+
flex: 1,
|
|
729
|
+
borderRadius: 8,
|
|
730
|
+
overflow: "hidden"
|
|
731
|
+
},
|
|
732
|
+
header: {
|
|
733
|
+
paddingHorizontal: 12,
|
|
734
|
+
paddingVertical: 8,
|
|
735
|
+
borderBottomWidth: 1,
|
|
736
|
+
borderBottomColor: gameUIColors.diff.lineNumberBorder
|
|
737
|
+
},
|
|
738
|
+
summaryContainer: {
|
|
739
|
+
flexDirection: "row",
|
|
740
|
+
gap: 16,
|
|
741
|
+
alignItems: "center"
|
|
742
|
+
},
|
|
743
|
+
summaryItem: {
|
|
744
|
+
flexDirection: "row",
|
|
745
|
+
alignItems: "center",
|
|
746
|
+
gap: 4,
|
|
747
|
+
paddingHorizontal: 8,
|
|
748
|
+
paddingVertical: 4,
|
|
749
|
+
borderRadius: 12
|
|
750
|
+
},
|
|
751
|
+
summaryAdded: {
|
|
752
|
+
backgroundColor: gameUIColors.diff.addedBackground
|
|
753
|
+
},
|
|
754
|
+
summaryRemoved: {
|
|
755
|
+
backgroundColor: gameUIColors.diff.removedBackground
|
|
756
|
+
},
|
|
757
|
+
summaryChanged: {
|
|
758
|
+
backgroundColor: gameUIColors.diff.modifiedBackground
|
|
759
|
+
},
|
|
760
|
+
summaryIcon: {
|
|
761
|
+
fontSize: 14,
|
|
762
|
+
fontWeight: "700",
|
|
763
|
+
fontFamily: "monospace"
|
|
764
|
+
},
|
|
765
|
+
summaryCount: {
|
|
766
|
+
fontSize: 13,
|
|
767
|
+
fontWeight: "600",
|
|
768
|
+
fontFamily: "monospace"
|
|
769
|
+
},
|
|
770
|
+
summaryLabel: {
|
|
771
|
+
fontSize: 11,
|
|
772
|
+
fontFamily: "monospace",
|
|
773
|
+
opacity: 0.9
|
|
774
|
+
},
|
|
775
|
+
scrollView: {
|
|
776
|
+
flex: 1
|
|
777
|
+
},
|
|
778
|
+
row: {
|
|
779
|
+
minHeight: 26,
|
|
780
|
+
justifyContent: "center",
|
|
781
|
+
flexDirection: "row",
|
|
782
|
+
borderBottomWidth: StyleSheet.hairlineWidth,
|
|
783
|
+
borderBottomColor: "rgba(255, 255, 255, 0.02)"
|
|
784
|
+
},
|
|
785
|
+
lineNumber: {
|
|
786
|
+
width: 32,
|
|
787
|
+
paddingHorizontal: 6,
|
|
788
|
+
paddingVertical: 4,
|
|
789
|
+
backgroundColor: gameUIColors.diff.lineNumberBackground,
|
|
790
|
+
justifyContent: "center",
|
|
791
|
+
borderRightWidth: 1,
|
|
792
|
+
borderRightColor: gameUIColors.diff.lineNumberBorder
|
|
793
|
+
},
|
|
794
|
+
lineNumberText: {
|
|
795
|
+
fontSize: 11,
|
|
796
|
+
fontFamily: "monospace",
|
|
797
|
+
textAlign: "right"
|
|
798
|
+
},
|
|
799
|
+
marker: {
|
|
800
|
+
width: 20,
|
|
801
|
+
paddingHorizontal: 2,
|
|
802
|
+
paddingVertical: 4,
|
|
803
|
+
justifyContent: "center",
|
|
804
|
+
alignItems: "center"
|
|
805
|
+
},
|
|
806
|
+
markerText: {
|
|
807
|
+
fontSize: 12,
|
|
808
|
+
fontFamily: "monospace",
|
|
809
|
+
fontWeight: "600"
|
|
810
|
+
},
|
|
811
|
+
content: {
|
|
812
|
+
flex: 1,
|
|
813
|
+
flexDirection: "row",
|
|
814
|
+
alignItems: "center",
|
|
815
|
+
paddingHorizontal: 12,
|
|
816
|
+
paddingVertical: 4
|
|
817
|
+
},
|
|
818
|
+
expandIconContainer: {
|
|
819
|
+
width: 16,
|
|
820
|
+
height: 16,
|
|
821
|
+
borderRadius: 3,
|
|
822
|
+
backgroundColor: gameUIColors.diff.lineNumberBorder,
|
|
823
|
+
alignItems: "center",
|
|
824
|
+
justifyContent: "center",
|
|
825
|
+
marginRight: 6
|
|
826
|
+
},
|
|
827
|
+
expandIcon: {
|
|
828
|
+
fontSize: 11,
|
|
829
|
+
fontFamily: "monospace",
|
|
830
|
+
fontWeight: "600"
|
|
831
|
+
},
|
|
832
|
+
colon: {
|
|
833
|
+
fontSize: 12,
|
|
834
|
+
fontFamily: "monospace",
|
|
835
|
+
marginHorizontal: 4
|
|
836
|
+
},
|
|
837
|
+
key: {
|
|
838
|
+
fontSize: 11,
|
|
839
|
+
fontFamily: "monospace",
|
|
840
|
+
fontWeight: "500",
|
|
841
|
+
opacity: 0.9
|
|
842
|
+
},
|
|
843
|
+
value: {
|
|
844
|
+
fontSize: 11,
|
|
845
|
+
fontFamily: "monospace",
|
|
846
|
+
maxWidth: "80%"
|
|
847
|
+
},
|
|
848
|
+
arrow: {
|
|
849
|
+
fontSize: 12,
|
|
850
|
+
fontFamily: "monospace",
|
|
851
|
+
fontWeight: "600"
|
|
852
|
+
},
|
|
853
|
+
badge: {
|
|
854
|
+
fontSize: 11,
|
|
855
|
+
fontFamily: "monospace",
|
|
856
|
+
fontWeight: "600",
|
|
857
|
+
marginLeft: 8
|
|
858
|
+
},
|
|
859
|
+
emptyState: {
|
|
860
|
+
flex: 1,
|
|
861
|
+
alignItems: "center",
|
|
862
|
+
justifyContent: "center",
|
|
863
|
+
paddingVertical: 60
|
|
864
|
+
},
|
|
865
|
+
emptyIcon: {
|
|
866
|
+
fontSize: 48,
|
|
867
|
+
fontFamily: "monospace",
|
|
868
|
+
opacity: 0.2,
|
|
869
|
+
marginBottom: 12
|
|
870
|
+
},
|
|
871
|
+
emptyTitle: {
|
|
872
|
+
fontSize: 14,
|
|
873
|
+
fontFamily: "monospace",
|
|
874
|
+
fontWeight: "600",
|
|
875
|
+
marginBottom: 4
|
|
876
|
+
},
|
|
877
|
+
emptySubtitle: {
|
|
878
|
+
fontSize: 12,
|
|
879
|
+
fontFamily: "monospace",
|
|
880
|
+
opacity: 0.6
|
|
881
|
+
}
|
|
882
|
+
});
|