@osdk/react-devtools 0.5.0
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/CHANGELOG.md +79 -0
- package/build/esm/DevToolsContext.js +19 -0
- package/build/esm/DevToolsContext.js.map +1 -0
- package/build/esm/components/ActionMetrics.js +89 -0
- package/build/esm/components/ActionMetrics.js.map +1 -0
- package/build/esm/components/BubbleChart.js +175 -0
- package/build/esm/components/BubbleChart.js.map +1 -0
- package/build/esm/components/BubbleChart.module.scss.js +6 -0
- package/build/esm/components/CacheInspectorTab.js +291 -0
- package/build/esm/components/CacheInspectorTab.js.map +1 -0
- package/build/esm/components/CacheInspectorTab.module.scss.js +39 -0
- package/build/esm/components/CacheMetrics.js +55 -0
- package/build/esm/components/CacheMetrics.js.map +1 -0
- package/build/esm/components/ComponentCard.js +124 -0
- package/build/esm/components/ComponentCard.js.map +1 -0
- package/build/esm/components/ComponentCard.module.scss.js +31 -0
- package/build/esm/components/ComputeTab.js +175 -0
- package/build/esm/components/ComputeTab.js.map +1 -0
- package/build/esm/components/CopyableCodeBlock.js +49 -0
- package/build/esm/components/CopyableCodeBlock.js.map +1 -0
- package/build/esm/components/CopyableCodeBlock.module.scss.js +10 -0
- package/build/esm/components/DebuggingTab.js +342 -0
- package/build/esm/components/DebuggingTab.js.map +1 -0
- package/build/esm/components/DebuggingTab.module.scss.js +18 -0
- package/build/esm/components/HookRow.js +180 -0
- package/build/esm/components/HookRow.js.map +1 -0
- package/build/esm/components/HookRow.module.scss.js +16 -0
- package/build/esm/components/ImprovementsTab.js +138 -0
- package/build/esm/components/ImprovementsTab.js.map +1 -0
- package/build/esm/components/ImprovementsTab.module.scss.js +30 -0
- package/build/esm/components/InspectorSelectionHeader.js +65 -0
- package/build/esm/components/InspectorSelectionHeader.js.map +1 -0
- package/build/esm/components/InterceptTab.js +862 -0
- package/build/esm/components/InterceptTab.js.map +1 -0
- package/build/esm/components/InterceptTab.module.scss.js +49 -0
- package/build/esm/components/IssueCard.js +115 -0
- package/build/esm/components/IssueCard.js.map +1 -0
- package/build/esm/components/IssueCard.module.scss.js +24 -0
- package/build/esm/components/LogEntryCard.js +94 -0
- package/build/esm/components/LogEntryCard.js.map +1 -0
- package/build/esm/components/LogEntryCard.module.scss.js +19 -0
- package/build/esm/components/MockEditor.js +316 -0
- package/build/esm/components/MockEditor.js.map +1 -0
- package/build/esm/components/MonitorErrorBoundary.js +64 -0
- package/build/esm/components/MonitorErrorBoundary.js.map +1 -0
- package/build/esm/components/MonitorErrorBoundary.module.scss.js +9 -0
- package/build/esm/components/MonitoringPanel.js +434 -0
- package/build/esm/components/MonitoringPanel.js.map +1 -0
- package/build/esm/components/MonitoringPanel.module.scss.js +81 -0
- package/build/esm/components/ObjectLoadingMetrics.js +60 -0
- package/build/esm/components/ObjectLoadingMetrics.js.map +1 -0
- package/build/esm/components/OsdkAppErrorBoundary.js +68 -0
- package/build/esm/components/OsdkAppErrorBoundary.js.map +1 -0
- package/build/esm/components/OsdkDevTools.js +40 -0
- package/build/esm/components/OsdkDevTools.js.map +1 -0
- package/build/esm/components/OverrideEditor.js +197 -0
- package/build/esm/components/OverrideEditor.js.map +1 -0
- package/build/esm/components/PerformanceTab.js +297 -0
- package/build/esm/components/PerformanceTab.js.map +1 -0
- package/build/esm/components/PrimitiveSelectionPanel.js +220 -0
- package/build/esm/components/PrimitiveSelectionPanel.js.map +1 -0
- package/build/esm/components/PrimitiveSelectionPanel.module.scss.js +26 -0
- package/build/esm/components/issueTypes.js +2 -0
- package/build/esm/components/issueTypes.js.map +1 -0
- package/build/esm/components/resolveComponentName.js +57 -0
- package/build/esm/components/resolveComponentName.js.map +1 -0
- package/build/esm/components/testHelpers.js +312 -0
- package/build/esm/components/testHelpers.js.map +1 -0
- package/build/esm/css.d.ts +20 -0
- package/build/esm/fiber/DegradationNotice.js +193 -0
- package/build/esm/fiber/DegradationNotice.js.map +1 -0
- package/build/esm/fiber/DevtoolsHook.js +252 -0
- package/build/esm/fiber/DevtoolsHook.js.map +1 -0
- package/build/esm/fiber/FiberAccess.js +65 -0
- package/build/esm/fiber/FiberAccess.js.map +1 -0
- package/build/esm/fiber/FiberInspection.js +140 -0
- package/build/esm/fiber/FiberInspection.js.map +1 -0
- package/build/esm/fiber/FiberTags.js +52 -0
- package/build/esm/fiber/FiberTags.js.map +1 -0
- package/build/esm/fiber/HookStateInspector.js +254 -0
- package/build/esm/fiber/HookStateInspector.js.map +1 -0
- package/build/esm/fiber/SafeFiberOperation.js +35 -0
- package/build/esm/fiber/SafeFiberOperation.js.map +1 -0
- package/build/esm/fiber/capabilities.js +180 -0
- package/build/esm/fiber/capabilities.js.map +1 -0
- package/build/esm/fiber/traverseFiber.js +129 -0
- package/build/esm/fiber/traverseFiber.js.map +1 -0
- package/build/esm/fiber/types.js +2 -0
- package/build/esm/fiber/types.js.map +1 -0
- package/build/esm/fiber/validation.js +155 -0
- package/build/esm/fiber/validation.js.map +1 -0
- package/build/esm/hooks/createPollingStore.js +81 -0
- package/build/esm/hooks/createPollingStore.js.map +1 -0
- package/build/esm/hooks/useActiveComponents.js +27 -0
- package/build/esm/hooks/useActiveComponents.js.map +1 -0
- package/build/esm/hooks/useComponentRegistry.js +25 -0
- package/build/esm/hooks/useComponentRegistry.js.map +1 -0
- package/build/esm/hooks/useComputeSelectors.js +43 -0
- package/build/esm/hooks/useComputeSelectors.js.map +1 -0
- package/build/esm/hooks/useConsoleLogs.js +46 -0
- package/build/esm/hooks/useConsoleLogs.js.map +1 -0
- package/build/esm/hooks/useInspectorSelection.js +93 -0
- package/build/esm/hooks/useInspectorSelection.js.map +1 -0
- package/build/esm/hooks/useMetrics.js +23 -0
- package/build/esm/hooks/useMetrics.js.map +1 -0
- package/build/esm/hooks/usePersistedState.js +89 -0
- package/build/esm/hooks/usePersistedState.js.map +1 -0
- package/build/esm/hooks/useRecommendations.js +123 -0
- package/build/esm/hooks/useRecommendations.js.map +1 -0
- package/build/esm/hooks/useSharedTick.js +49 -0
- package/build/esm/hooks/useSharedTick.js.map +1 -0
- package/build/esm/hooks/useTimeElapsed.js +51 -0
- package/build/esm/hooks/useTimeElapsed.js.map +1 -0
- package/build/esm/hooks/useTrackerSubscription.js +97 -0
- package/build/esm/hooks/useTrackerSubscription.js.map +1 -0
- package/build/esm/hooks/useUnusedFieldAnalysis.js +99 -0
- package/build/esm/hooks/useUnusedFieldAnalysis.js.map +1 -0
- package/build/esm/index.js +31 -0
- package/build/esm/index.js.map +1 -0
- package/build/esm/inspector/ClickToInspectSystem.js +228 -0
- package/build/esm/inspector/ClickToInspectSystem.js.map +1 -0
- package/build/esm/inspector/components/ComponentLabel.js +175 -0
- package/build/esm/inspector/components/ComponentLabel.js.map +1 -0
- package/build/esm/inspector/components/ComponentLabel.module.scss.js +12 -0
- package/build/esm/inspector/components/InspectorBanner.js +79 -0
- package/build/esm/inspector/components/InspectorBanner.js.map +1 -0
- package/build/esm/inspector/components/InspectorOverlay.js +149 -0
- package/build/esm/inspector/components/InspectorOverlay.js.map +1 -0
- package/build/esm/inspector/components/SelectionHighlight.js +74 -0
- package/build/esm/inspector/components/SelectionHighlight.js.map +1 -0
- package/build/esm/inspector/createClickToInspect.js +21 -0
- package/build/esm/inspector/createClickToInspect.js.map +1 -0
- package/build/esm/inspector/hooks/useAnimatedBounds.js +167 -0
- package/build/esm/inspector/hooks/useAnimatedBounds.js.map +1 -0
- package/build/esm/inspector/index.js +40 -0
- package/build/esm/inspector/index.js.map +1 -0
- package/build/esm/inspector/inspectorController.js +328 -0
- package/build/esm/inspector/inspectorController.js.map +1 -0
- package/build/esm/inspector/types.js +2 -0
- package/build/esm/inspector/types.js.map +1 -0
- package/build/esm/inspector/utils/elementBounds.js +72 -0
- package/build/esm/inspector/utils/elementBounds.js.map +1 -0
- package/build/esm/inspector/utils/interpolation.js +26 -0
- package/build/esm/inspector/utils/interpolation.js.map +1 -0
- package/build/esm/inspector/utils/labelPositioning.js +62 -0
- package/build/esm/inspector/utils/labelPositioning.js.map +1 -0
- package/build/esm/mocking/MockCacheKeyGenerator.js +109 -0
- package/build/esm/mocking/MockCacheKeyGenerator.js.map +1 -0
- package/build/esm/mocking/MockManager.js +281 -0
- package/build/esm/mocking/MockManager.js.map +1 -0
- package/build/esm/prototyping/PrototypeOverrideStore.js +66 -0
- package/build/esm/prototyping/PrototypeOverrideStore.js.map +1 -0
- package/build/esm/prototyping/index.js +18 -0
- package/build/esm/prototyping/index.js.map +1 -0
- package/build/esm/public/vite.js +19 -0
- package/build/esm/public/vite.js.map +1 -0
- package/build/esm/register.js +41 -0
- package/build/esm/register.js.map +1 -0
- package/build/esm/scss.d.ts +20 -0
- package/build/esm/store/ComputeStore.js +269 -0
- package/build/esm/store/ComputeStore.js.map +1 -0
- package/build/esm/store/ConsoleLogStore.js +289 -0
- package/build/esm/store/ConsoleLogStore.js.map +1 -0
- package/build/esm/store/MetricsStore.js +428 -0
- package/build/esm/store/MetricsStore.js.map +1 -0
- package/build/esm/store/MonitorStore.js +288 -0
- package/build/esm/store/MonitorStore.js.map +1 -0
- package/build/esm/store/SubscribableStore.js +38 -0
- package/build/esm/store/SubscribableStore.js.map +1 -0
- package/build/esm/store/WindowErrorStore.js +195 -0
- package/build/esm/store/WindowErrorStore.js.map +1 -0
- package/build/esm/styles.css +19441 -0
- package/build/esm/styles.js +31 -0
- package/build/esm/styles.js.map +1 -0
- package/build/esm/types/compute.js +2 -0
- package/build/esm/types/compute.js.map +1 -0
- package/build/esm/types/emissions.js +2 -0
- package/build/esm/types/emissions.js.map +1 -0
- package/build/esm/types/index.js +23 -0
- package/build/esm/types/index.js.map +1 -0
- package/build/esm/utils/ActionLifecycleTracker.js +178 -0
- package/build/esm/utils/ActionLifecycleTracker.js.map +1 -0
- package/build/esm/utils/CacheEfficiencyAnalyzer.js +198 -0
- package/build/esm/utils/CacheEfficiencyAnalyzer.js.map +1 -0
- package/build/esm/utils/CircularBuffer.js +96 -0
- package/build/esm/utils/CircularBuffer.js.map +1 -0
- package/build/esm/utils/ComponentContextCapture.js +215 -0
- package/build/esm/utils/ComponentContextCapture.js.map +1 -0
- package/build/esm/utils/ComponentPrimitiveDiscovery.js +173 -0
- package/build/esm/utils/ComponentPrimitiveDiscovery.js.map +1 -0
- package/build/esm/utils/ComponentQueryRegistry.js +340 -0
- package/build/esm/utils/ComponentQueryRegistry.js.map +1 -0
- package/build/esm/utils/ComputeMonitor.js +199 -0
- package/build/esm/utils/ComputeMonitor.js.map +1 -0
- package/build/esm/utils/EventTimeline.js +130 -0
- package/build/esm/utils/EventTimeline.js.map +1 -0
- package/build/esm/utils/LinkTraversalTracker.js +116 -0
- package/build/esm/utils/LinkTraversalTracker.js.map +1 -0
- package/build/esm/utils/MockDataGenerator.js +473 -0
- package/build/esm/utils/MockDataGenerator.js.map +1 -0
- package/build/esm/utils/ObservableClientMonitor.js +768 -0
- package/build/esm/utils/ObservableClientMonitor.js.map +1 -0
- package/build/esm/utils/PerformanceRecommendationEngine.js +185 -0
- package/build/esm/utils/PerformanceRecommendationEngine.js.map +1 -0
- package/build/esm/utils/PropertyAccessTracker.js +238 -0
- package/build/esm/utils/PropertyAccessTracker.js.map +1 -0
- package/build/esm/utils/RecommendationMatcher.js +53 -0
- package/build/esm/utils/RecommendationMatcher.js.map +1 -0
- package/build/esm/utils/SubscriptionTracker.js +132 -0
- package/build/esm/utils/SubscriptionTracker.js.map +1 -0
- package/build/esm/utils/UnusedFieldAnalyzer.js +186 -0
- package/build/esm/utils/UnusedFieldAnalyzer.js.map +1 -0
- package/build/esm/utils/WaterfallDetector.js +200 -0
- package/build/esm/utils/WaterfallDetector.js.map +1 -0
- package/build/esm/utils/computePayload.js +37 -0
- package/build/esm/utils/computePayload.js.map +1 -0
- package/build/esm/utils/computeRequest.js +29 -0
- package/build/esm/utils/computeRequest.js.map +1 -0
- package/build/esm/utils/format.js +69 -0
- package/build/esm/utils/format.js.map +1 -0
- package/build/esm/utils/logger.js +31 -0
- package/build/esm/utils/logger.js.map +1 -0
- package/build/esm/vite/constants.js +18 -0
- package/build/esm/vite/constants.js.map +1 -0
- package/build/esm/vite/hookInstaller.js +99 -0
- package/build/esm/vite/hookInstaller.js.map +1 -0
- package/build/esm/vite/index.js +77 -0
- package/build/esm/vite/index.js.map +1 -0
- package/build/types/DevToolsContext.d.ts +3 -0
- package/build/types/DevToolsContext.d.ts.map +1 -0
- package/build/types/components/ActionMetrics.d.ts +6 -0
- package/build/types/components/ActionMetrics.d.ts.map +1 -0
- package/build/types/components/BubbleChart.d.ts +10 -0
- package/build/types/components/BubbleChart.d.ts.map +1 -0
- package/build/types/components/CacheInspectorTab.d.ts +6 -0
- package/build/types/components/CacheInspectorTab.d.ts.map +1 -0
- package/build/types/components/CacheMetrics.d.ts +6 -0
- package/build/types/components/CacheMetrics.d.ts.map +1 -0
- package/build/types/components/ComponentCard.d.ts +13 -0
- package/build/types/components/ComponentCard.d.ts.map +1 -0
- package/build/types/components/ComputeTab.d.ts +6 -0
- package/build/types/components/ComputeTab.d.ts.map +1 -0
- package/build/types/components/CopyableCodeBlock.d.ts +7 -0
- package/build/types/components/CopyableCodeBlock.d.ts.map +1 -0
- package/build/types/components/DebuggingTab.d.ts +6 -0
- package/build/types/components/DebuggingTab.d.ts.map +1 -0
- package/build/types/components/HookRow.d.ts +9 -0
- package/build/types/components/HookRow.d.ts.map +1 -0
- package/build/types/components/ImprovementsTab.d.ts +7 -0
- package/build/types/components/ImprovementsTab.d.ts.map +1 -0
- package/build/types/components/InspectorSelectionHeader.d.ts +12 -0
- package/build/types/components/InspectorSelectionHeader.d.ts.map +1 -0
- package/build/types/components/InterceptTab.d.ts +126 -0
- package/build/types/components/InterceptTab.d.ts.map +1 -0
- package/build/types/components/IssueCard.d.ts +8 -0
- package/build/types/components/IssueCard.d.ts.map +1 -0
- package/build/types/components/LogEntryCard.d.ts +7 -0
- package/build/types/components/LogEntryCard.d.ts.map +1 -0
- package/build/types/components/MockEditor.d.ts +58 -0
- package/build/types/components/MockEditor.d.ts.map +1 -0
- package/build/types/components/MonitorErrorBoundary.d.ts +16 -0
- package/build/types/components/MonitorErrorBoundary.d.ts.map +1 -0
- package/build/types/components/MonitoringPanel.d.ts +8 -0
- package/build/types/components/MonitoringPanel.d.ts.map +1 -0
- package/build/types/components/ObjectLoadingMetrics.d.ts +7 -0
- package/build/types/components/ObjectLoadingMetrics.d.ts.map +1 -0
- package/build/types/components/OsdkAppErrorBoundary.d.ts +18 -0
- package/build/types/components/OsdkAppErrorBoundary.d.ts.map +1 -0
- package/build/types/components/OsdkDevTools.d.ts +2 -0
- package/build/types/components/OsdkDevTools.d.ts.map +1 -0
- package/build/types/components/OverrideEditor.d.ts +26 -0
- package/build/types/components/OverrideEditor.d.ts.map +1 -0
- package/build/types/components/PerformanceTab.d.ts +8 -0
- package/build/types/components/PerformanceTab.d.ts.map +1 -0
- package/build/types/components/PrimitiveSelectionPanel.d.ts +28 -0
- package/build/types/components/PrimitiveSelectionPanel.d.ts.map +1 -0
- package/build/types/components/issueTypes.d.ts +16 -0
- package/build/types/components/issueTypes.d.ts.map +1 -0
- package/build/types/components/resolveComponentName.d.ts +3 -0
- package/build/types/components/resolveComponentName.d.ts.map +1 -0
- package/build/types/components/testHelpers.d.ts +2 -0
- package/build/types/components/testHelpers.d.ts.map +1 -0
- package/build/types/css.d.d.ts +4 -0
- package/build/types/css.d.d.ts.map +1 -0
- package/build/types/fiber/DegradationNotice.d.ts +8 -0
- package/build/types/fiber/DegradationNotice.d.ts.map +1 -0
- package/build/types/fiber/DevtoolsHook.d.ts +7 -0
- package/build/types/fiber/DevtoolsHook.d.ts.map +1 -0
- package/build/types/fiber/FiberAccess.d.ts +2 -0
- package/build/types/fiber/FiberAccess.d.ts.map +1 -0
- package/build/types/fiber/FiberInspection.d.ts +6 -0
- package/build/types/fiber/FiberInspection.d.ts.map +1 -0
- package/build/types/fiber/FiberTags.d.ts +33 -0
- package/build/types/fiber/FiberTags.d.ts.map +1 -0
- package/build/types/fiber/HookStateInspector.d.ts +45 -0
- package/build/types/fiber/HookStateInspector.d.ts.map +1 -0
- package/build/types/fiber/SafeFiberOperation.d.ts +7 -0
- package/build/types/fiber/SafeFiberOperation.d.ts.map +1 -0
- package/build/types/fiber/capabilities.d.ts +38 -0
- package/build/types/fiber/capabilities.d.ts.map +1 -0
- package/build/types/fiber/traverseFiber.d.ts +5 -0
- package/build/types/fiber/traverseFiber.d.ts.map +1 -0
- package/build/types/fiber/types.d.ts +87 -0
- package/build/types/fiber/types.d.ts.map +1 -0
- package/build/types/fiber/validation.d.ts +10 -0
- package/build/types/fiber/validation.d.ts.map +1 -0
- package/build/types/hooks/createPollingStore.d.ts +5 -0
- package/build/types/hooks/createPollingStore.d.ts.map +1 -0
- package/build/types/hooks/useActiveComponents.d.ts +3 -0
- package/build/types/hooks/useActiveComponents.d.ts.map +1 -0
- package/build/types/hooks/useComponentRegistry.d.ts +3 -0
- package/build/types/hooks/useComponentRegistry.d.ts.map +1 -0
- package/build/types/hooks/useComputeSelectors.d.ts +7 -0
- package/build/types/hooks/useComputeSelectors.d.ts.map +1 -0
- package/build/types/hooks/useConsoleLogs.d.ts +7 -0
- package/build/types/hooks/useConsoleLogs.d.ts.map +1 -0
- package/build/types/hooks/useInspectorSelection.d.ts +9 -0
- package/build/types/hooks/useInspectorSelection.d.ts.map +1 -0
- package/build/types/hooks/useMetrics.d.ts +3 -0
- package/build/types/hooks/useMetrics.d.ts.map +1 -0
- package/build/types/hooks/usePersistedState.d.ts +1 -0
- package/build/types/hooks/usePersistedState.d.ts.map +1 -0
- package/build/types/hooks/useRecommendations.d.ts +10 -0
- package/build/types/hooks/useRecommendations.d.ts.map +1 -0
- package/build/types/hooks/useSharedTick.d.ts +1 -0
- package/build/types/hooks/useSharedTick.d.ts.map +1 -0
- package/build/types/hooks/useTimeElapsed.d.ts +1 -0
- package/build/types/hooks/useTimeElapsed.d.ts.map +1 -0
- package/build/types/hooks/useTrackerSubscription.d.ts +16 -0
- package/build/types/hooks/useTrackerSubscription.d.ts.map +1 -0
- package/build/types/hooks/useUnusedFieldAnalysis.d.ts +8 -0
- package/build/types/hooks/useUnusedFieldAnalysis.d.ts.map +1 -0
- package/build/types/index.d.ts +21 -0
- package/build/types/index.d.ts.map +1 -0
- package/build/types/inspector/ClickToInspectSystem.d.ts +40 -0
- package/build/types/inspector/ClickToInspectSystem.d.ts.map +1 -0
- package/build/types/inspector/components/ComponentLabel.d.ts +3 -0
- package/build/types/inspector/components/ComponentLabel.d.ts.map +1 -0
- package/build/types/inspector/components/InspectorBanner.d.ts +5 -0
- package/build/types/inspector/components/InspectorBanner.d.ts.map +1 -0
- package/build/types/inspector/components/InspectorOverlay.d.ts +3 -0
- package/build/types/inspector/components/InspectorOverlay.d.ts.map +1 -0
- package/build/types/inspector/components/SelectionHighlight.d.ts +3 -0
- package/build/types/inspector/components/SelectionHighlight.d.ts.map +1 -0
- package/build/types/inspector/createClickToInspect.d.ts +3 -0
- package/build/types/inspector/createClickToInspect.d.ts.map +1 -0
- package/build/types/inspector/hooks/useAnimatedBounds.d.ts +2 -0
- package/build/types/inspector/hooks/useAnimatedBounds.d.ts.map +1 -0
- package/build/types/inspector/index.d.ts +13 -0
- package/build/types/inspector/index.d.ts.map +1 -0
- package/build/types/inspector/inspectorController.d.ts +2 -0
- package/build/types/inspector/inspectorController.d.ts.map +1 -0
- package/build/types/inspector/types.d.ts +94 -0
- package/build/types/inspector/types.d.ts.map +1 -0
- package/build/types/inspector/utils/elementBounds.d.ts +3 -0
- package/build/types/inspector/utils/elementBounds.d.ts.map +1 -0
- package/build/types/inspector/utils/interpolation.d.ts +7 -0
- package/build/types/inspector/utils/interpolation.d.ts.map +1 -0
- package/build/types/inspector/utils/labelPositioning.d.ts +3 -0
- package/build/types/inspector/utils/labelPositioning.d.ts.map +1 -0
- package/build/types/mocking/MockCacheKeyGenerator.d.ts +41 -0
- package/build/types/mocking/MockCacheKeyGenerator.d.ts.map +1 -0
- package/build/types/mocking/MockManager.d.ts +103 -0
- package/build/types/mocking/MockManager.d.ts.map +1 -0
- package/build/types/prototyping/PrototypeOverrideStore.d.ts +33 -0
- package/build/types/prototyping/PrototypeOverrideStore.d.ts.map +1 -0
- package/build/types/prototyping/index.d.ts +1 -0
- package/build/types/prototyping/index.d.ts.map +1 -0
- package/build/types/public/vite.d.ts +2 -0
- package/build/types/public/vite.d.ts.map +1 -0
- package/build/types/register.d.ts +1 -0
- package/build/types/register.d.ts.map +1 -0
- package/build/types/scss.d.d.ts +6 -0
- package/build/types/scss.d.d.ts.map +1 -0
- package/build/types/store/ComputeStore.d.ts +47 -0
- package/build/types/store/ComputeStore.d.ts.map +1 -0
- package/build/types/store/ConsoleLogStore.d.ts +29 -0
- package/build/types/store/ConsoleLogStore.d.ts.map +1 -0
- package/build/types/store/MetricsStore.d.ts +42 -0
- package/build/types/store/MetricsStore.d.ts.map +1 -0
- package/build/types/store/MonitorStore.d.ts +86 -0
- package/build/types/store/MonitorStore.d.ts.map +1 -0
- package/build/types/store/SubscribableStore.d.ts +6 -0
- package/build/types/store/SubscribableStore.d.ts.map +1 -0
- package/build/types/store/WindowErrorStore.d.ts +32 -0
- package/build/types/store/WindowErrorStore.d.ts.map +1 -0
- package/build/types/styles.d.ts +1 -0
- package/build/types/styles.d.ts.map +1 -0
- package/build/types/types/compute.d.ts +73 -0
- package/build/types/types/compute.d.ts.map +1 -0
- package/build/types/types/emissions.d.ts +24 -0
- package/build/types/types/emissions.d.ts.map +1 -0
- package/build/types/types/index.d.ts +143 -0
- package/build/types/types/index.d.ts.map +1 -0
- package/build/types/utils/ActionLifecycleTracker.d.ts +39 -0
- package/build/types/utils/ActionLifecycleTracker.d.ts.map +1 -0
- package/build/types/utils/CacheEfficiencyAnalyzer.d.ts +45 -0
- package/build/types/utils/CacheEfficiencyAnalyzer.d.ts.map +1 -0
- package/build/types/utils/CircularBuffer.d.ts +18 -0
- package/build/types/utils/CircularBuffer.d.ts.map +1 -0
- package/build/types/utils/ComponentContextCapture.d.ts +29 -0
- package/build/types/utils/ComponentContextCapture.d.ts.map +1 -0
- package/build/types/utils/ComponentPrimitiveDiscovery.d.ts +62 -0
- package/build/types/utils/ComponentPrimitiveDiscovery.d.ts.map +1 -0
- package/build/types/utils/ComponentQueryRegistry.d.ts +91 -0
- package/build/types/utils/ComponentQueryRegistry.d.ts.map +1 -0
- package/build/types/utils/ComputeMonitor.d.ts +14 -0
- package/build/types/utils/ComputeMonitor.d.ts.map +1 -0
- package/build/types/utils/EventTimeline.d.ts +102 -0
- package/build/types/utils/EventTimeline.d.ts.map +1 -0
- package/build/types/utils/LinkTraversalTracker.d.ts +43 -0
- package/build/types/utils/LinkTraversalTracker.d.ts.map +1 -0
- package/build/types/utils/MockDataGenerator.d.ts +23 -0
- package/build/types/utils/MockDataGenerator.d.ts.map +1 -0
- package/build/types/utils/ObservableClientMonitor.d.ts +62 -0
- package/build/types/utils/ObservableClientMonitor.d.ts.map +1 -0
- package/build/types/utils/PerformanceRecommendationEngine.d.ts +67 -0
- package/build/types/utils/PerformanceRecommendationEngine.d.ts.map +1 -0
- package/build/types/utils/PropertyAccessTracker.d.ts +50 -0
- package/build/types/utils/PropertyAccessTracker.d.ts.map +1 -0
- package/build/types/utils/RecommendationMatcher.d.ts +5 -0
- package/build/types/utils/RecommendationMatcher.d.ts.map +1 -0
- package/build/types/utils/SubscriptionTracker.d.ts +17 -0
- package/build/types/utils/SubscriptionTracker.d.ts.map +1 -0
- package/build/types/utils/UnusedFieldAnalyzer.d.ts +46 -0
- package/build/types/utils/UnusedFieldAnalyzer.d.ts.map +1 -0
- package/build/types/utils/WaterfallDetector.d.ts +28 -0
- package/build/types/utils/WaterfallDetector.d.ts.map +1 -0
- package/build/types/utils/computePayload.d.ts +3 -0
- package/build/types/utils/computePayload.d.ts.map +1 -0
- package/build/types/utils/computeRequest.d.ts +20 -0
- package/build/types/utils/computeRequest.d.ts.map +1 -0
- package/build/types/utils/format.d.ts +5 -0
- package/build/types/utils/format.d.ts.map +1 -0
- package/build/types/utils/logger.d.ts +2 -0
- package/build/types/utils/logger.d.ts.map +1 -0
- package/build/types/vite/constants.d.ts +1 -0
- package/build/types/vite/constants.d.ts.map +1 -0
- package/build/types/vite/hookInstaller.d.ts +1 -0
- package/build/types/vite/hookInstaller.d.ts.map +1 -0
- package/build/types/vite/index.d.ts +20 -0
- package/build/types/vite/index.d.ts.map +1 -0
- package/package.json +114 -0
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2025 Palantir Technologies, Inc. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import classNames from "classnames";
|
|
18
|
+
import React from "react";
|
|
19
|
+
import { formatNumber } from "../utils/format.js";
|
|
20
|
+
import styles from "./MonitoringPanel.module.scss.js";
|
|
21
|
+
export const ObjectLoadingMetrics = ({
|
|
22
|
+
analysisLoading,
|
|
23
|
+
unusedFieldReport
|
|
24
|
+
}) => {
|
|
25
|
+
if (analysisLoading || !unusedFieldReport) {
|
|
26
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
27
|
+
className: styles.metric
|
|
28
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
29
|
+
className: styles.metricLabel
|
|
30
|
+
}, "Analyzing..."));
|
|
31
|
+
}
|
|
32
|
+
const efficiencyPercent = ((unusedFieldReport.averageEfficiency ?? 0) * 100).toFixed(0);
|
|
33
|
+
const wasteKb = ((unusedFieldReport.totalWastedBytes ?? 0) / 1024).toFixed(1);
|
|
34
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
35
|
+
className: styles.metric
|
|
36
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
37
|
+
className: styles.metricLabel
|
|
38
|
+
}, "Inefficient Components"), /*#__PURE__*/React.createElement("span", {
|
|
39
|
+
className: classNames(styles.metricValue, unusedFieldReport.inefficientComponents === 0 ? styles.success : unusedFieldReport.inefficientComponents < 5 ? styles.warning : styles.danger)
|
|
40
|
+
}, formatNumber(unusedFieldReport.inefficientComponents), " of", " ", formatNumber(unusedFieldReport.totalComponents)), /*#__PURE__*/React.createElement("span", {
|
|
41
|
+
className: styles.metricSubtext
|
|
42
|
+
}, efficiencyPercent, "% efficient")), /*#__PURE__*/React.createElement("div", {
|
|
43
|
+
className: styles.metric
|
|
44
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
45
|
+
className: styles.metricLabel
|
|
46
|
+
}, "Wasted Bandwidth"), /*#__PURE__*/React.createElement("span", {
|
|
47
|
+
className: styles.metricValue
|
|
48
|
+
}, wasteKb, "KB"), /*#__PURE__*/React.createElement("span", {
|
|
49
|
+
className: styles.metricSubtext
|
|
50
|
+
}, "unused fields loaded")), /*#__PURE__*/React.createElement("div", {
|
|
51
|
+
className: styles.metric
|
|
52
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
53
|
+
className: styles.metricLabel
|
|
54
|
+
}, "Common Unused"), /*#__PURE__*/React.createElement("span", {
|
|
55
|
+
className: styles.metricValue
|
|
56
|
+
}, formatNumber(unusedFieldReport.commonUnused.length)), /*#__PURE__*/React.createElement("span", {
|
|
57
|
+
className: styles.metricSubtext
|
|
58
|
+
}, "fields unused across queries")));
|
|
59
|
+
};
|
|
60
|
+
//# sourceMappingURL=ObjectLoadingMetrics.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ObjectLoadingMetrics.js","names":["classNames","React","formatNumber","styles","ObjectLoadingMetrics","analysisLoading","unusedFieldReport","createElement","className","metric","metricLabel","efficiencyPercent","averageEfficiency","toFixed","wasteKb","totalWastedBytes","Fragment","metricValue","inefficientComponents","success","warning","danger","totalComponents","metricSubtext","commonUnused","length"],"sources":["ObjectLoadingMetrics.tsx"],"sourcesContent":["/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport classNames from \"classnames\";\nimport React from \"react\";\nimport { formatNumber } from \"../utils/format.js\";\nimport type { UnusedFieldReport } from \"../utils/UnusedFieldAnalyzer.js\";\nimport styles from \"./MonitoringPanel.module.scss\";\n\nexport interface ObjectLoadingMetricsProps {\n analysisLoading: boolean;\n unusedFieldReport: UnusedFieldReport | null;\n}\n\nexport const ObjectLoadingMetrics: React.FC<ObjectLoadingMetricsProps> = ({\n analysisLoading,\n unusedFieldReport,\n}) => {\n if (analysisLoading || !unusedFieldReport) {\n return (\n <div className={styles.metric}>\n <span className={styles.metricLabel}>Analyzing...</span>\n </div>\n );\n }\n\n const efficiencyPercent = ((unusedFieldReport.averageEfficiency ?? 0) * 100)\n .toFixed(0);\n const wasteKb = ((unusedFieldReport.totalWastedBytes ?? 0) / 1024).toFixed(\n 1,\n );\n\n return (\n <>\n <div className={styles.metric}>\n <span className={styles.metricLabel}>Inefficient Components</span>\n <span\n className={classNames(\n styles.metricValue,\n unusedFieldReport.inefficientComponents === 0\n ? styles.success\n : unusedFieldReport.inefficientComponents < 5\n ? styles.warning\n : styles.danger,\n )}\n >\n {formatNumber(unusedFieldReport.inefficientComponents)} of{\" \"}\n {formatNumber(unusedFieldReport.totalComponents)}\n </span>\n <span className={styles.metricSubtext}>\n {efficiencyPercent}% efficient\n </span>\n </div>\n\n <div className={styles.metric}>\n <span className={styles.metricLabel}>Wasted Bandwidth</span>\n <span className={styles.metricValue}>\n {wasteKb}KB\n </span>\n <span className={styles.metricSubtext}>\n unused fields loaded\n </span>\n </div>\n\n <div className={styles.metric}>\n <span className={styles.metricLabel}>Common Unused</span>\n <span className={styles.metricValue}>\n {formatNumber(unusedFieldReport.commonUnused.length)}\n </span>\n <span className={styles.metricSubtext}>\n fields unused across queries\n </span>\n </div>\n </>\n );\n};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAOA,UAAU,MAAM,YAAY;AACnC,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,YAAY,QAAQ,oBAAoB;AAEjD,OAAOC,MAAM,MAAM,+BAA+B;AAOlD,OAAO,MAAMC,oBAAyD,GAAGA,CAAC;EACxEC,eAAe;EACfC;AACF,CAAC,KAAK;EACJ,IAAID,eAAe,IAAI,CAACC,iBAAiB,EAAE;IACzC,oBACEL,KAAA,CAAAM,aAAA;MAAKC,SAAS,EAAEL,MAAM,CAACM;IAAO,gBAC5BR,KAAA,CAAAM,aAAA;MAAMC,SAAS,EAAEL,MAAM,CAACO;IAAY,GAAC,cAAkB,CACpD,CAAC;EAEV;EAEA,MAAMC,iBAAiB,GAAG,CAAC,CAACL,iBAAiB,CAACM,iBAAiB,IAAI,CAAC,IAAI,GAAG,EACxEC,OAAO,CAAC,CAAC,CAAC;EACb,MAAMC,OAAO,GAAG,CAAC,CAACR,iBAAiB,CAACS,gBAAgB,IAAI,CAAC,IAAI,IAAI,EAAEF,OAAO,CACxE,CACF,CAAC;EAED,oBACEZ,KAAA,CAAAM,aAAA,CAAAN,KAAA,CAAAe,QAAA,qBACEf,KAAA,CAAAM,aAAA;IAAKC,SAAS,EAAEL,MAAM,CAACM;EAA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AEL,MAAM,CAACoB;EAAc,GAAC,8BAEjC,CACH,CACL,CAAC;AAEP,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2025 Palantir Technologies, Inc. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
// Boundary for *host app* code. Wraps a subtree so that render errors
|
|
18
|
+
// surface in the devtools Errors panel via WindowErrorStore.recordError.
|
|
19
|
+
// Production-safe: production React doesn't route render errors through
|
|
20
|
+
// console.error, so the Errors panel relies on this boundary for those.
|
|
21
|
+
|
|
22
|
+
import React from "react";
|
|
23
|
+
export class OsdkAppErrorBoundary extends React.Component {
|
|
24
|
+
constructor(props) {
|
|
25
|
+
super(props);
|
|
26
|
+
this.state = {
|
|
27
|
+
error: null
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
static getDerivedStateFromError(error) {
|
|
31
|
+
return {
|
|
32
|
+
error
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
componentDidCatch(error, errorInfo) {
|
|
36
|
+
const source = errorInfo.componentStack ? errorInfo.componentStack.split("\n")[1]?.trim() : undefined;
|
|
37
|
+
this.props.monitorStore.getWindowErrorStore().recordError(error, source);
|
|
38
|
+
}
|
|
39
|
+
reset = () => {
|
|
40
|
+
this.setState({
|
|
41
|
+
error: null
|
|
42
|
+
});
|
|
43
|
+
};
|
|
44
|
+
render() {
|
|
45
|
+
const {
|
|
46
|
+
error
|
|
47
|
+
} = this.state;
|
|
48
|
+
if (error == null) {
|
|
49
|
+
return this.props.children;
|
|
50
|
+
}
|
|
51
|
+
const {
|
|
52
|
+
fallback
|
|
53
|
+
} = this.props;
|
|
54
|
+
if (typeof fallback === "function") {
|
|
55
|
+
return fallback(error, this.reset);
|
|
56
|
+
}
|
|
57
|
+
if (fallback !== undefined) {
|
|
58
|
+
return fallback;
|
|
59
|
+
}
|
|
60
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
61
|
+
role: "alert"
|
|
62
|
+
}, /*#__PURE__*/React.createElement("p", null, "Something went wrong."), /*#__PURE__*/React.createElement("pre", null, error.message), /*#__PURE__*/React.createElement("button", {
|
|
63
|
+
type: "button",
|
|
64
|
+
onClick: this.reset
|
|
65
|
+
}, "Reset"));
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
//# sourceMappingURL=OsdkAppErrorBoundary.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OsdkAppErrorBoundary.js","names":["React","OsdkAppErrorBoundary","Component","constructor","props","state","error","getDerivedStateFromError","componentDidCatch","errorInfo","source","componentStack","split","trim","undefined","monitorStore","getWindowErrorStore","recordError","reset","setState","render","children","fallback","createElement","role","message","type","onClick"],"sources":["OsdkAppErrorBoundary.tsx"],"sourcesContent":["/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n// Boundary for *host app* code. Wraps a subtree so that render errors\n// surface in the devtools Errors panel via WindowErrorStore.recordError.\n// Production-safe: production React doesn't route render errors through\n// console.error, so the Errors panel relies on this boundary for those.\n\nimport React from \"react\";\nimport type { MonitorStore } from \"../store/MonitorStore.js\";\n\nexport interface OsdkAppErrorBoundaryProps {\n monitorStore: MonitorStore;\n children: React.ReactNode;\n fallback?:\n | React.ReactNode\n | ((error: Error, reset: () => void) => React.ReactNode);\n}\n\ninterface OsdkAppErrorBoundaryState {\n error: Error | null;\n}\n\nexport class OsdkAppErrorBoundary extends React.Component<\n OsdkAppErrorBoundaryProps,\n OsdkAppErrorBoundaryState\n> {\n constructor(props: OsdkAppErrorBoundaryProps) {\n super(props);\n this.state = { error: null };\n }\n\n static getDerivedStateFromError(error: Error): OsdkAppErrorBoundaryState {\n return { error };\n }\n\n componentDidCatch(error: Error, errorInfo: React.ErrorInfo): void {\n const source = errorInfo.componentStack\n ? errorInfo.componentStack.split(\"\\n\")[1]?.trim()\n : undefined;\n this.props.monitorStore.getWindowErrorStore().recordError(error, source);\n }\n\n reset = (): void => {\n this.setState({ error: null });\n };\n\n render(): React.ReactNode {\n const { error } = this.state;\n if (error == null) {\n return this.props.children;\n }\n\n const { fallback } = this.props;\n if (typeof fallback === \"function\") {\n return fallback(error, this.reset);\n }\n if (fallback !== undefined) {\n return fallback;\n }\n\n return (\n <div role=\"alert\">\n <p>Something went wrong.</p>\n <pre>{error.message}</pre>\n <button type=\"button\" onClick={this.reset}>Reset</button>\n </div>\n );\n }\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,OAAOA,KAAK,MAAM,OAAO;AAezB,OAAO,MAAMC,oBAAoB,SAASD,KAAK,CAACE,SAAS,CAGvD;EACAC,WAAWA,CAACC,KAAgC,EAAE;IAC5C,KAAK,CAACA,KAAK,CAAC;IACZ,IAAI,CAACC,KAAK,GAAG;MAAEC,KAAK,EAAE;IAAK,CAAC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ACF","ignoreList":[]}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2025 Palantir Technologies, Inc. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import React, { useContext } from "react";
|
|
18
|
+
import { DevToolsContext } from "../DevToolsContext.js";
|
|
19
|
+
import { MonitoringPanel } from "./MonitoringPanel.js";
|
|
20
|
+
const GLOBAL_STORE_KEY = "__OSDK_DEVTOOLS_MONITOR_STORE__";
|
|
21
|
+
function getGlobalMonitorStore() {
|
|
22
|
+
if (typeof globalThis !== "undefined" && GLOBAL_STORE_KEY in globalThis) {
|
|
23
|
+
const candidate = globalThis[GLOBAL_STORE_KEY];
|
|
24
|
+
if (typeof candidate === "object" && candidate != null && "getMetricsStore" in candidate && "getComputeStore" in candidate) {
|
|
25
|
+
return candidate;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
return undefined;
|
|
29
|
+
}
|
|
30
|
+
export function OsdkDevTools() {
|
|
31
|
+
const contextStore = useContext(DevToolsContext);
|
|
32
|
+
const monitorStore = contextStore ?? getGlobalMonitorStore() ?? null;
|
|
33
|
+
if (!monitorStore) {
|
|
34
|
+
return null;
|
|
35
|
+
}
|
|
36
|
+
return /*#__PURE__*/React.createElement(MonitoringPanel, {
|
|
37
|
+
monitorStore: monitorStore
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=OsdkDevTools.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OsdkDevTools.js","names":["React","useContext","DevToolsContext","MonitoringPanel","GLOBAL_STORE_KEY","getGlobalMonitorStore","globalThis","candidate","undefined","OsdkDevTools","contextStore","monitorStore","createElement"],"sources":["OsdkDevTools.tsx"],"sourcesContent":["/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React, { useContext } from \"react\";\nimport { DevToolsContext } from \"../DevToolsContext.js\";\nimport type { MonitorStore } from \"../store/MonitorStore.js\";\nimport { MonitoringPanel } from \"./MonitoringPanel.js\";\n\nconst GLOBAL_STORE_KEY = \"__OSDK_DEVTOOLS_MONITOR_STORE__\";\n\nfunction getGlobalMonitorStore(): MonitorStore | undefined {\n if (\n typeof globalThis !== \"undefined\"\n && GLOBAL_STORE_KEY in globalThis\n ) {\n const candidate = (globalThis as Record<string, unknown>)[GLOBAL_STORE_KEY];\n if (\n typeof candidate === \"object\"\n && candidate != null\n && \"getMetricsStore\" in candidate\n && \"getComputeStore\" in candidate\n ) {\n return candidate as MonitorStore;\n }\n }\n return undefined;\n}\n\nexport function OsdkDevTools(): React.ReactElement | null {\n const contextStore = useContext(DevToolsContext);\n const monitorStore = contextStore\n ?? getGlobalMonitorStore()\n ?? null;\n\n if (!monitorStore) {\n return null;\n }\n return <MonitoringPanel monitorStore={monitorStore} />;\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAOA,KAAK,IAAIC,UAAU,QAAQ,OAAO;AACzC,SAASC,eAAe,QAAQ,uBAAuB;AAEvD,SAASC,eAAe,QAAQ,sBAAsB;AAEtD,MAAMC,gBAAgB,GAAG,iCAAiC;AAE1D,SAASC,qBAAqBA,CAAA,EAA6B;EACzD,IACE,OAAOC,UAAU,KAAK,WAAW,IAC9BF,gBAAgB,IAAIE,UAAU,EACjC;IACA,MAAMC,SAAS,GAAID,UAAU,CAA6BF,gBAAgB,CAAC;IAC3E,IACE,OAAOG,SAAS,KAAK,QAAQ,IAC1BA,SAAS,IAAI,IAAI,IACjB,iBAAiB,IAAIA,SAAS,IAC9B,iBAAiB,IAAIA,SAAS,EACjC;MACA,OAAOA,SAAS;IAClB;EACF;EACA,OAAOC,SAAS;AAClB;AAEA,OAAO,SAASC,YAAYA,CAAA,EAA8B;EACxD,MAAMC,YAAY,GAAGT,UAAU,CAACC,eAAe,CAAC;EAChD,MAAMS,YAAY,GAAGD,YAAY,IAC5BL,qBAAqB,CAAC,CAAC,IACvB,IAAI;EAET,IAAI,CAACM,YAAY,EAAE;IACjB,OAAO,IAAI;EACb;EACA,oBAAOX,KAAA,CAAAY,aAAA,CAACT,eAAe;IAACQ,YAAY,EAAEA;EAAa,CAAE,CAAC;AACxD","ignoreList":[]}
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2025 Palantir Technologies, Inc. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import { Button, FormGroup, Icon, NumericInput } from "@blueprintjs/core";
|
|
18
|
+
import React, { Suspense } from "react";
|
|
19
|
+
import styles from "./InterceptTab.module.scss.js";
|
|
20
|
+
const LazyCodeMirror = /*#__PURE__*/React.lazy(() => import("@uiw/react-codemirror"));
|
|
21
|
+
function CodeMirrorPlaceholder() {
|
|
22
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
23
|
+
className: styles.editorPlaceholder
|
|
24
|
+
}, "Loading editor...");
|
|
25
|
+
}
|
|
26
|
+
export const OverrideEditor = ({
|
|
27
|
+
selectedQuery,
|
|
28
|
+
whereClauseText,
|
|
29
|
+
orderByText,
|
|
30
|
+
pageSize,
|
|
31
|
+
groupByText,
|
|
32
|
+
selectText,
|
|
33
|
+
jsonExtensions,
|
|
34
|
+
theme,
|
|
35
|
+
dispatch,
|
|
36
|
+
onApplyOverride,
|
|
37
|
+
onClearSelection
|
|
38
|
+
}) => {
|
|
39
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
40
|
+
className: styles.editorPanel
|
|
41
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
42
|
+
className: styles.panelHeader
|
|
43
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
44
|
+
icon: "edit"
|
|
45
|
+
}), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
46
|
+
className: styles.panelTitle
|
|
47
|
+
}, selectedQuery.objectType), /*#__PURE__*/React.createElement("div", {
|
|
48
|
+
className: styles.panelSubtitle
|
|
49
|
+
}, selectedQuery.componentName)), /*#__PURE__*/React.createElement(Button, {
|
|
50
|
+
variant: "minimal",
|
|
51
|
+
size: "small",
|
|
52
|
+
icon: "cross",
|
|
53
|
+
"aria-label": "Close editor",
|
|
54
|
+
onClick: onClearSelection
|
|
55
|
+
})), /*#__PURE__*/React.createElement(Suspense, {
|
|
56
|
+
fallback: /*#__PURE__*/React.createElement(CodeMirrorPlaceholder, null)
|
|
57
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
58
|
+
className: styles.editorContent
|
|
59
|
+
}, /*#__PURE__*/React.createElement(FormGroup, {
|
|
60
|
+
label: "Where Clause (JSON)",
|
|
61
|
+
labelFor: "where-clause"
|
|
62
|
+
}, /*#__PURE__*/React.createElement(LazyCodeMirror, {
|
|
63
|
+
value: whereClauseText,
|
|
64
|
+
onChange: val => dispatch({
|
|
65
|
+
type: "SET_WHERE_CLAUSE_TEXT",
|
|
66
|
+
text: val
|
|
67
|
+
}),
|
|
68
|
+
extensions: jsonExtensions,
|
|
69
|
+
theme: theme,
|
|
70
|
+
height: "120px",
|
|
71
|
+
placeholder: "{ \"status\": \"active\" }",
|
|
72
|
+
basicSetup: {
|
|
73
|
+
lineNumbers: false,
|
|
74
|
+
foldGutter: false
|
|
75
|
+
}
|
|
76
|
+
})), selectedQuery.isAggregation ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(FormGroup, {
|
|
77
|
+
label: "Group By (JSON)",
|
|
78
|
+
labelFor: "group-by"
|
|
79
|
+
}, /*#__PURE__*/React.createElement(LazyCodeMirror, {
|
|
80
|
+
value: groupByText,
|
|
81
|
+
onChange: val => dispatch({
|
|
82
|
+
type: "SET_GROUP_BY_TEXT",
|
|
83
|
+
text: val
|
|
84
|
+
}),
|
|
85
|
+
extensions: jsonExtensions,
|
|
86
|
+
theme: theme,
|
|
87
|
+
height: "80px",
|
|
88
|
+
placeholder: "{ \"status\": \"exact\", \"department\": \"exact\" }",
|
|
89
|
+
basicSetup: {
|
|
90
|
+
lineNumbers: false,
|
|
91
|
+
foldGutter: false
|
|
92
|
+
}
|
|
93
|
+
})), /*#__PURE__*/React.createElement(FormGroup, {
|
|
94
|
+
label: "Select (JSON)",
|
|
95
|
+
labelFor: "select"
|
|
96
|
+
}, /*#__PURE__*/React.createElement(LazyCodeMirror, {
|
|
97
|
+
value: selectText,
|
|
98
|
+
onChange: val => dispatch({
|
|
99
|
+
type: "SET_SELECT_TEXT",
|
|
100
|
+
text: val
|
|
101
|
+
}),
|
|
102
|
+
extensions: jsonExtensions,
|
|
103
|
+
theme: theme,
|
|
104
|
+
height: "80px",
|
|
105
|
+
placeholder: "{ \"count\": { \"$count\": {} } }",
|
|
106
|
+
basicSetup: {
|
|
107
|
+
lineNumbers: false,
|
|
108
|
+
foldGutter: false
|
|
109
|
+
}
|
|
110
|
+
}))) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(FormGroup, {
|
|
111
|
+
label: "Order By (JSON)",
|
|
112
|
+
labelFor: "order-by"
|
|
113
|
+
}, /*#__PURE__*/React.createElement(LazyCodeMirror, {
|
|
114
|
+
value: orderByText,
|
|
115
|
+
onChange: val => dispatch({
|
|
116
|
+
type: "SET_ORDER_BY_TEXT",
|
|
117
|
+
text: val
|
|
118
|
+
}),
|
|
119
|
+
extensions: jsonExtensions,
|
|
120
|
+
theme: theme,
|
|
121
|
+
height: "80px",
|
|
122
|
+
placeholder: "{ \"createdAt\": \"desc\" }",
|
|
123
|
+
basicSetup: {
|
|
124
|
+
lineNumbers: false,
|
|
125
|
+
foldGutter: false
|
|
126
|
+
}
|
|
127
|
+
})), /*#__PURE__*/React.createElement(FormGroup, {
|
|
128
|
+
label: "Page Size",
|
|
129
|
+
labelFor: "page-size"
|
|
130
|
+
}, /*#__PURE__*/React.createElement(NumericInput, {
|
|
131
|
+
id: "page-size",
|
|
132
|
+
value: pageSize ?? "",
|
|
133
|
+
onValueChange: value => dispatch({
|
|
134
|
+
type: "SET_PAGE_SIZE",
|
|
135
|
+
pageSize: value > 0 ? value : undefined
|
|
136
|
+
}),
|
|
137
|
+
placeholder: "Default",
|
|
138
|
+
min: 1,
|
|
139
|
+
fill: true
|
|
140
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
|
141
|
+
className: styles.editorActions
|
|
142
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
143
|
+
intent: "primary",
|
|
144
|
+
icon: "tick",
|
|
145
|
+
onClick: onApplyOverride
|
|
146
|
+
}, "Apply Override"), /*#__PURE__*/React.createElement(Button, {
|
|
147
|
+
variant: "minimal",
|
|
148
|
+
onClick: onClearSelection
|
|
149
|
+
}, "Cancel")))));
|
|
150
|
+
};
|
|
151
|
+
export const OverrideItem = /*#__PURE__*/React.memo(({
|
|
152
|
+
override,
|
|
153
|
+
onToggle,
|
|
154
|
+
onRemove,
|
|
155
|
+
onEdit
|
|
156
|
+
}) => {
|
|
157
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
158
|
+
className: styles.interceptItem
|
|
159
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
160
|
+
className: `${styles.interceptItemContent} ${styles.clickable}`,
|
|
161
|
+
onClick: onEdit
|
|
162
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
163
|
+
className: styles.interceptItemHeader
|
|
164
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
165
|
+
icon: override.hookType === "useOsdkAggregation" ? "grouped-bar-chart" : "th-list"
|
|
166
|
+
}), /*#__PURE__*/React.createElement("span", {
|
|
167
|
+
className: styles.interceptItemTitle
|
|
168
|
+
}, override.objectType), /*#__PURE__*/React.createElement("span", {
|
|
169
|
+
className: `${styles.interceptBadge} ${styles.interceptBadgeOverride}`
|
|
170
|
+
}, "override"), /*#__PURE__*/React.createElement("span", {
|
|
171
|
+
className: `${styles.overrideItemStatus} ${override.enabled ? styles.statusEnabled : styles.statusDisabled}`
|
|
172
|
+
}, override.enabled ? "active" : "paused")), /*#__PURE__*/React.createElement("div", {
|
|
173
|
+
className: styles.interceptItemDetails
|
|
174
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
175
|
+
className: styles.detail
|
|
176
|
+
}, override.componentName))), /*#__PURE__*/React.createElement("div", {
|
|
177
|
+
className: styles.interceptItemActions
|
|
178
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
179
|
+
variant: "minimal",
|
|
180
|
+
size: "small",
|
|
181
|
+
intent: override.enabled ? "success" : "warning",
|
|
182
|
+
icon: override.enabled ? "pause" : "play",
|
|
183
|
+
onClick: onToggle,
|
|
184
|
+
title: override.enabled ? "Pause override" : "Resume override",
|
|
185
|
+
"aria-label": override.enabled ? "Pause override" : "Resume override"
|
|
186
|
+
}), /*#__PURE__*/React.createElement(Button, {
|
|
187
|
+
variant: "minimal",
|
|
188
|
+
size: "small",
|
|
189
|
+
intent: "danger",
|
|
190
|
+
icon: "trash",
|
|
191
|
+
onClick: onRemove,
|
|
192
|
+
title: "Remove override",
|
|
193
|
+
"aria-label": "Remove override"
|
|
194
|
+
})));
|
|
195
|
+
});
|
|
196
|
+
OverrideItem.displayName = "OverrideItem";
|
|
197
|
+
//# sourceMappingURL=OverrideEditor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OverrideEditor.js","names":["Button","FormGroup","Icon","NumericInput","React","Suspense","styles","LazyCodeMirror","lazy","CodeMirrorPlaceholder","createElement","className","editorPlaceholder","OverrideEditor","selectedQuery","whereClauseText","orderByText","pageSize","groupByText","selectText","jsonExtensions","theme","dispatch","onApplyOverride","onClearSelection","editorPanel","panelHeader","icon","panelTitle","objectType","panelSubtitle","componentName","variant","size","onClick","fallback","editorContent","label","labelFor","value","onChange","val","type","text","extensions","height","placeholder","basicSetup","lineNumbers","foldGutter","isAggregation","Fragment","id","onValueChange","undefined","min","fill","editorActions","intent","OverrideItem","memo","override","onToggle","onRemove","onEdit","interceptItem","interceptItemContent","clickable","interceptItemHeader","hookType","interceptItemTitle","interceptBadge","interceptBadgeOverride","overrideItemStatus","enabled","statusEnabled","statusDisabled","interceptItemDetails","detail","interceptItemActions","title","displayName"],"sources":["OverrideEditor.tsx"],"sourcesContent":["/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Button, FormGroup, Icon, NumericInput } from \"@blueprintjs/core\";\nimport type { ReactCodeMirrorProps } from \"@uiw/react-codemirror\";\nimport React, { Suspense } from \"react\";\nimport type { PrototypeOverride } from \"../prototyping/PrototypeOverrideStore.js\";\nimport type { InterceptAction, SelectedQuery } from \"./InterceptTab.js\";\nimport styles from \"./InterceptTab.module.scss\";\n\nconst LazyCodeMirror = React.lazy(() => import(\"@uiw/react-codemirror\"));\n\nfunction CodeMirrorPlaceholder() {\n return <div className={styles.editorPlaceholder}>Loading editor...</div>;\n}\n\ninterface OverrideEditorProps {\n selectedQuery: SelectedQuery;\n whereClauseText: string;\n orderByText: string;\n pageSize: number | undefined;\n groupByText: string;\n selectText: string;\n jsonExtensions: ReactCodeMirrorProps[\"extensions\"];\n theme: \"light\" | \"dark\";\n dispatch: React.Dispatch<InterceptAction>;\n onApplyOverride: () => void;\n onClearSelection: () => void;\n}\n\nexport const OverrideEditor: React.FC<OverrideEditorProps> = ({\n selectedQuery,\n whereClauseText,\n orderByText,\n pageSize,\n groupByText,\n selectText,\n jsonExtensions,\n theme,\n dispatch,\n onApplyOverride,\n onClearSelection,\n}) => {\n return (\n <div className={styles.editorPanel}>\n <div className={styles.panelHeader}>\n <Icon icon=\"edit\" />\n <div>\n <div className={styles.panelTitle}>\n {selectedQuery.objectType}\n </div>\n <div className={styles.panelSubtitle}>\n {selectedQuery.componentName}\n </div>\n </div>\n <Button\n variant=\"minimal\"\n size=\"small\"\n icon=\"cross\"\n aria-label=\"Close editor\"\n onClick={onClearSelection}\n />\n </div>\n\n <Suspense fallback={<CodeMirrorPlaceholder />}>\n <div className={styles.editorContent}>\n <FormGroup\n label=\"Where Clause (JSON)\"\n labelFor=\"where-clause\"\n >\n <LazyCodeMirror\n value={whereClauseText}\n onChange={(val) =>\n dispatch({ type: \"SET_WHERE_CLAUSE_TEXT\", text: val })}\n extensions={jsonExtensions}\n theme={theme}\n height=\"120px\"\n placeholder='{ \"status\": \"active\" }'\n basicSetup={{\n lineNumbers: false,\n foldGutter: false,\n }}\n />\n </FormGroup>\n\n {selectedQuery.isAggregation\n ? (\n <>\n <FormGroup label=\"Group By (JSON)\" labelFor=\"group-by\">\n <LazyCodeMirror\n value={groupByText}\n onChange={(val) =>\n dispatch({ type: \"SET_GROUP_BY_TEXT\", text: val })}\n extensions={jsonExtensions}\n theme={theme}\n height=\"80px\"\n placeholder='{ \"status\": \"exact\", \"department\": \"exact\" }'\n basicSetup={{ lineNumbers: false, foldGutter: false }}\n />\n </FormGroup>\n\n <FormGroup label=\"Select (JSON)\" labelFor=\"select\">\n <LazyCodeMirror\n value={selectText}\n onChange={(val) =>\n dispatch({ type: \"SET_SELECT_TEXT\", text: val })}\n extensions={jsonExtensions}\n theme={theme}\n height=\"80px\"\n placeholder='{ \"count\": { \"$count\": {} } }'\n basicSetup={{ lineNumbers: false, foldGutter: false }}\n />\n </FormGroup>\n </>\n )\n : (\n <>\n <FormGroup label=\"Order By (JSON)\" labelFor=\"order-by\">\n <LazyCodeMirror\n value={orderByText}\n onChange={(val) =>\n dispatch({ type: \"SET_ORDER_BY_TEXT\", text: val })}\n extensions={jsonExtensions}\n theme={theme}\n height=\"80px\"\n placeholder='{ \"createdAt\": \"desc\" }'\n basicSetup={{ lineNumbers: false, foldGutter: false }}\n />\n </FormGroup>\n\n <FormGroup label=\"Page Size\" labelFor=\"page-size\">\n <NumericInput\n id=\"page-size\"\n value={pageSize ?? \"\"}\n onValueChange={(value) =>\n dispatch({\n type: \"SET_PAGE_SIZE\",\n pageSize: value > 0 ? value : undefined,\n })}\n placeholder=\"Default\"\n min={1}\n fill={true}\n />\n </FormGroup>\n </>\n )}\n\n <div className={styles.editorActions}>\n <Button\n intent=\"primary\"\n icon=\"tick\"\n onClick={onApplyOverride}\n >\n Apply Override\n </Button>\n <Button variant=\"minimal\" onClick={onClearSelection}>\n Cancel\n </Button>\n </div>\n </div>\n </Suspense>\n </div>\n );\n};\n\nexport interface OverrideItemProps {\n override: PrototypeOverride;\n onToggle: () => void;\n onRemove: () => void;\n onEdit: () => void;\n}\n\nexport const OverrideItem: React.FC<OverrideItemProps> = React.memo(\n ({ override, onToggle, onRemove, onEdit }) => {\n return (\n <div className={styles.interceptItem}>\n <div\n className={`${styles.interceptItemContent} ${styles.clickable}`}\n onClick={onEdit}\n >\n <div className={styles.interceptItemHeader}>\n <Icon\n icon={override.hookType === \"useOsdkAggregation\"\n ? \"grouped-bar-chart\"\n : \"th-list\"}\n />\n <span className={styles.interceptItemTitle}>\n {override.objectType}\n </span>\n <span\n className={`${styles.interceptBadge} ${styles.interceptBadgeOverride}`}\n >\n override\n </span>\n <span\n className={`${styles.overrideItemStatus} ${\n override.enabled\n ? styles.statusEnabled\n : styles.statusDisabled\n }`}\n >\n {override.enabled ? \"active\" : \"paused\"}\n </span>\n </div>\n <div className={styles.interceptItemDetails}>\n <span className={styles.detail}>\n {override.componentName}\n </span>\n </div>\n </div>\n\n <div className={styles.interceptItemActions}>\n <Button\n variant=\"minimal\"\n size=\"small\"\n intent={override.enabled ? \"success\" : \"warning\"}\n icon={override.enabled ? \"pause\" : \"play\"}\n onClick={onToggle}\n title={override.enabled ? \"Pause override\" : \"Resume override\"}\n aria-label={override.enabled ? \"Pause override\" : \"Resume override\"}\n />\n <Button\n variant=\"minimal\"\n size=\"small\"\n intent=\"danger\"\n icon=\"trash\"\n onClick={onRemove}\n title=\"Remove override\"\n aria-label=\"Remove override\"\n />\n </div>\n </div>\n );\n },\n);\n\nOverrideItem.displayName = \"OverrideItem\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA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