@fivepixels-js/react 0.2.0 → 0.2.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 +46 -11
- package/dist/components/ShortcutHint.d.ts +2 -2
- package/dist/components/ShortcutHint.d.ts.map +1 -1
- package/dist/components/ShortcutHint.js +1 -1
- package/dist/components/ShortcutHint.js.map +1 -1
- package/dist/components/icons/Icons.d.ts +43 -39
- package/dist/components/icons/Icons.d.ts.map +1 -1
- package/dist/components/icons/Icons.js +3 -0
- package/dist/components/icons/Icons.js.map +1 -1
- package/dist/components/icons/MaterialIcon.d.ts +1 -1
- package/dist/components/icons/MaterialIcon.d.ts.map +1 -1
- package/dist/components/icons/ProbeLayoutIcons.d.ts +14 -14
- package/dist/components/icons/ProbeLayoutIcons.d.ts.map +1 -1
- package/dist/components/overlay/DotWaveOverlay.d.ts +21 -0
- package/dist/components/overlay/DotWaveOverlay.d.ts.map +1 -0
- package/dist/components/overlay/DotWaveOverlay.js +226 -0
- package/dist/components/overlay/DotWaveOverlay.js.map +1 -0
- package/dist/components/overlay/FloatingPinRail.d.ts +2 -0
- package/dist/components/overlay/FloatingPinRail.d.ts.map +1 -0
- package/dist/components/overlay/FloatingPinRail.js +112 -0
- package/dist/components/overlay/FloatingPinRail.js.map +1 -0
- package/dist/components/overlay/PickTargetCompareChip.d.ts +1 -1
- package/dist/components/overlay/PickTargetCompareChip.d.ts.map +1 -1
- package/dist/components/overlay/PickTargetCompareChip.js +4 -3
- package/dist/components/overlay/PickTargetCompareChip.js.map +1 -1
- package/dist/components/overlay/PickTargetCompareSegment.d.ts +1 -1
- package/dist/components/overlay/PickTargetCompareSegment.d.ts.map +1 -1
- package/dist/components/overlay/PickTargetContextMenu.d.ts +1 -1
- package/dist/components/overlay/PickTargetContextMenu.d.ts.map +1 -1
- package/dist/components/overlay/PickTargetContextMenu.js +3 -2
- package/dist/components/overlay/PickTargetContextMenu.js.map +1 -1
- package/dist/components/overlay/PickTargetHoverTooltip.d.ts +1 -1
- package/dist/components/overlay/PickTargetHoverTooltip.d.ts.map +1 -1
- package/dist/components/overlay/PickTargetHoverTooltip.js +7 -5
- package/dist/components/overlay/PickTargetHoverTooltip.js.map +1 -1
- package/dist/components/overlay/PickTargetProbePanel.d.ts +1 -1
- package/dist/components/overlay/PickTargetProbePanel.d.ts.map +1 -1
- package/dist/components/overlay/PickTargetProbePanel.js +8 -7
- package/dist/components/overlay/PickTargetProbePanel.js.map +1 -1
- package/dist/components/overlay/PickTargetSavedBadges.d.ts +1 -1
- package/dist/components/overlay/PickTargetSavedBadges.d.ts.map +1 -1
- package/dist/components/overlay/PickTargetSavedBadges.js +5 -4
- package/dist/components/overlay/PickTargetSavedBadges.js.map +1 -1
- package/dist/components/overlay/ProbeLayoutControls.d.ts +1 -1
- package/dist/components/overlay/ProbeLayoutControls.d.ts.map +1 -1
- package/dist/components/overlay/ProbeLayoutControls.js +1 -1
- package/dist/components/overlay/ProbeLayoutControls.js.map +1 -1
- package/dist/components/overlay/ReportOverlayLayer.d.ts +1 -1
- package/dist/components/overlay/ReportOverlayLayer.d.ts.map +1 -1
- package/dist/components/overlay/ReportOverlayLayer.js +4 -3
- package/dist/components/overlay/ReportOverlayLayer.js.map +1 -1
- package/dist/components/overlay/TargetHighlights.d.ts +2 -1
- package/dist/components/overlay/TargetHighlights.d.ts.map +1 -1
- package/dist/components/overlay/TargetHighlights.js +2 -2
- package/dist/components/overlay/TargetHighlights.js.map +1 -1
- package/dist/components/panel/AppearanceThemePicker.d.ts +1 -1
- package/dist/components/panel/AppearanceThemePicker.d.ts.map +1 -1
- package/dist/components/panel/DiscreteScaleDial.d.ts +1 -1
- package/dist/components/panel/DiscreteScaleDial.d.ts.map +1 -1
- package/dist/components/panel/DraftProbeSummaryBanner.d.ts +1 -1
- package/dist/components/panel/DraftProbeSummaryBanner.d.ts.map +1 -1
- package/dist/components/panel/DraftProbeSummaryBanner.js +3 -2
- package/dist/components/panel/DraftProbeSummaryBanner.js.map +1 -1
- package/dist/components/panel/FeedbackActivityHeatmap.d.ts +1 -1
- package/dist/components/panel/FeedbackActivityHeatmap.d.ts.map +1 -1
- package/dist/components/panel/FeedbackActivityHeatmap.js +2 -2
- package/dist/components/panel/FeedbackActivityHeatmap.js.map +1 -1
- package/dist/components/panel/HexColorField.d.ts +1 -1
- package/dist/components/panel/HexColorField.d.ts.map +1 -1
- package/dist/components/panel/HexColorField.js +1 -1
- package/dist/components/panel/HexColorField.js.map +1 -1
- package/dist/components/panel/MarkerShapePicker.d.ts +1 -1
- package/dist/components/panel/MarkerShapePicker.d.ts.map +1 -1
- package/dist/components/panel/MarkerSizePreview.d.ts +13 -0
- package/dist/components/panel/MarkerSizePreview.d.ts.map +1 -0
- package/dist/components/panel/MarkerSizePreview.js +24 -0
- package/dist/components/panel/MarkerSizePreview.js.map +1 -0
- package/dist/components/panel/PanelDockGuides.d.ts +1 -1
- package/dist/components/panel/PanelDockGuides.d.ts.map +1 -1
- package/dist/components/panel/PanelDropdownMenu.d.ts +2 -2
- package/dist/components/panel/PanelDropdownMenu.d.ts.map +1 -1
- package/dist/components/panel/PanelDropdownMenu.js +2 -1
- package/dist/components/panel/PanelDropdownMenu.js.map +1 -1
- package/dist/components/panel/PanelGateShell.d.ts +20 -0
- package/dist/components/panel/PanelGateShell.d.ts.map +1 -0
- package/dist/components/panel/PanelGateShell.js +15 -0
- package/dist/components/panel/PanelGateShell.js.map +1 -0
- package/dist/components/panel/PanelKeyGate.d.ts +2 -2
- package/dist/components/panel/PanelKeyGate.d.ts.map +1 -1
- package/dist/components/panel/PanelKeyGate.js +5 -3
- package/dist/components/panel/PanelKeyGate.js.map +1 -1
- package/dist/components/panel/PanelMarkerDisplayControls.d.ts +17 -0
- package/dist/components/panel/PanelMarkerDisplayControls.d.ts.map +1 -0
- package/dist/components/panel/PanelMarkerDisplayControls.js +8 -0
- package/dist/components/panel/PanelMarkerDisplayControls.js.map +1 -0
- package/dist/components/panel/PanelOnboarding.d.ts +1 -1
- package/dist/components/panel/PanelOnboarding.d.ts.map +1 -1
- package/dist/components/panel/PanelOnboarding.js +33 -7
- package/dist/components/panel/PanelOnboarding.js.map +1 -1
- package/dist/components/panel/PanelOptionSwitch.d.ts +1 -1
- package/dist/components/panel/PanelOptionSwitch.d.ts.map +1 -1
- package/dist/components/panel/PanelPresentationSwitch.d.ts +1 -1
- package/dist/components/panel/PanelPresentationSwitch.d.ts.map +1 -1
- package/dist/components/panel/PanelPresentationSwitch.js +4 -3
- package/dist/components/panel/PanelPresentationSwitch.js.map +1 -1
- package/dist/components/panel/PanelProjectFooter.d.ts +1 -1
- package/dist/components/panel/PanelProjectFooter.d.ts.map +1 -1
- package/dist/components/panel/PanelProjectFooter.js +7 -3
- package/dist/components/panel/PanelProjectFooter.js.map +1 -1
- package/dist/components/panel/PanelRoleSwitch.d.ts +1 -1
- package/dist/components/panel/PanelRoleSwitch.d.ts.map +1 -1
- package/dist/components/panel/PanelRoleSwitch.js +2 -2
- package/dist/components/panel/PanelRoleSwitch.js.map +1 -1
- package/dist/components/panel/PanelSettings.d.ts +1 -1
- package/dist/components/panel/PanelSettings.d.ts.map +1 -1
- package/dist/components/panel/PanelSettings.js +7 -6
- package/dist/components/panel/PanelSettings.js.map +1 -1
- package/dist/components/panel/PanelTabSelector.d.ts +1 -1
- package/dist/components/panel/PanelTabSelector.d.ts.map +1 -1
- package/dist/components/panel/PanelTabSelector.js +1 -1
- package/dist/components/panel/PanelTabSelector.js.map +1 -1
- package/dist/components/panel/ProbeEditModeBanner.d.ts +1 -1
- package/dist/components/panel/ProbeEditModeBanner.d.ts.map +1 -1
- package/dist/components/panel/ProbeEditModeBanner.js +3 -2
- package/dist/components/panel/ProbeEditModeBanner.js.map +1 -1
- package/dist/components/panel/ReportAuthDiagnostics.d.ts +1 -1
- package/dist/components/panel/ReportAuthDiagnostics.d.ts.map +1 -1
- package/dist/components/panel/ReportAuthDiagnostics.js +3 -2
- package/dist/components/panel/ReportAuthDiagnostics.js.map +1 -1
- package/dist/components/panel/ReportCommandPanel.d.ts +1 -1
- package/dist/components/panel/ReportCommandPanel.d.ts.map +1 -1
- package/dist/components/panel/ReportCommandPanel.js +2 -2
- package/dist/components/panel/ReportCommandPanel.js.map +1 -1
- package/dist/components/panel/ReportCommandReplaceConfirmDialog.d.ts +2 -2
- package/dist/components/panel/ReportCommandReplaceConfirmDialog.d.ts.map +1 -1
- package/dist/components/panel/ReportCommandReplaceConfirmDialog.js +5 -4
- package/dist/components/panel/ReportCommandReplaceConfirmDialog.js.map +1 -1
- package/dist/components/panel/ReportControlPanel.d.ts +1 -1
- package/dist/components/panel/ReportControlPanel.d.ts.map +1 -1
- package/dist/components/panel/ReportControlPanel.js +66 -15
- package/dist/components/panel/ReportControlPanel.js.map +1 -1
- package/dist/components/panel/ReportDraftForm.d.ts +1 -1
- package/dist/components/panel/ReportDraftForm.d.ts.map +1 -1
- package/dist/components/panel/ReportDraftForm.js +32 -11
- package/dist/components/panel/ReportDraftForm.js.map +1 -1
- package/dist/components/panel/ReportFeedbackList.d.ts +1 -1
- package/dist/components/panel/ReportFeedbackList.d.ts.map +1 -1
- package/dist/components/panel/ReportFeedbackList.js +1 -1
- package/dist/components/panel/ReportFeedbackList.js.map +1 -1
- package/dist/components/panel/ReportImportConfirmDialog.d.ts +1 -1
- package/dist/components/panel/ReportImportConfirmDialog.d.ts.map +1 -1
- package/dist/components/panel/ReportImportConfirmDialog.js +4 -3
- package/dist/components/panel/ReportImportConfirmDialog.js.map +1 -1
- package/dist/components/panel/ReportImportProjectMismatchDialog.d.ts +2 -2
- package/dist/components/panel/ReportImportProjectMismatchDialog.d.ts.map +1 -1
- package/dist/components/panel/ReportImportProjectMismatchDialog.js +5 -4
- package/dist/components/panel/ReportImportProjectMismatchDialog.js.map +1 -1
- package/dist/components/panel/ReportOverview.d.ts +1 -1
- package/dist/components/panel/ReportOverview.d.ts.map +1 -1
- package/dist/components/panel/ReportPersonalKeyDialog.d.ts +1 -1
- package/dist/components/panel/ReportPersonalKeyDialog.d.ts.map +1 -1
- package/dist/components/panel/ReportPersonalKeyDialog.js +4 -3
- package/dist/components/panel/ReportPersonalKeyDialog.js.map +1 -1
- package/dist/components/panel/ReportRouteDetails.d.ts +1 -1
- package/dist/components/panel/ReportRouteDetails.d.ts.map +1 -1
- package/dist/components/panel/ReportRouteDetails.js +9 -7
- package/dist/components/panel/ReportRouteDetails.js.map +1 -1
- package/dist/components/panel/RouteDetailsTimeline.d.ts +2 -2
- package/dist/components/panel/RouteDetailsTimeline.d.ts.map +1 -1
- package/dist/components/panel/RouteDetailsTimeline.js +2 -2
- package/dist/components/panel/RouteDetailsTimeline.js.map +1 -1
- package/dist/components/panel/ThemePreviewSkeleton.d.ts +1 -1
- package/dist/components/panel/ThemePreviewSkeleton.d.ts.map +1 -1
- package/dist/components/panel/experimental/ExperimentalFeedbackRow.d.ts +1 -1
- package/dist/components/panel/experimental/ExperimentalFeedbackRow.d.ts.map +1 -1
- package/dist/components/panel/experimental/ExperimentalFeedbackRow.js +4 -4
- package/dist/components/panel/experimental/ExperimentalFeedbackRow.js.map +1 -1
- package/dist/components/panel/experimental/ExperimentalFilteredListPanel.d.ts +8 -0
- package/dist/components/panel/experimental/ExperimentalFilteredListPanel.d.ts.map +1 -0
- package/dist/components/panel/experimental/ExperimentalFilteredListPanel.js +19 -0
- package/dist/components/panel/experimental/ExperimentalFilteredListPanel.js.map +1 -0
- package/dist/components/panel/experimental/ReportMyTasksPanel.d.ts +1 -1
- package/dist/components/panel/experimental/ReportMyTasksPanel.d.ts.map +1 -1
- package/dist/components/panel/experimental/ReportMyTasksPanel.js +39 -10
- package/dist/components/panel/experimental/ReportMyTasksPanel.js.map +1 -1
- package/dist/components/panel/experimental/ReportNeedsAttentionPanel.d.ts +1 -1
- package/dist/components/panel/experimental/ReportNeedsAttentionPanel.d.ts.map +1 -1
- package/dist/components/panel/experimental/ReportNeedsAttentionPanel.js +8 -13
- package/dist/components/panel/experimental/ReportNeedsAttentionPanel.js.map +1 -1
- package/dist/components/panel/experimental/ReportPageBriefPanel.d.ts +1 -1
- package/dist/components/panel/experimental/ReportPageBriefPanel.d.ts.map +1 -1
- package/dist/components/panel/experimental/ReportPageBriefPanel.js +7 -5
- package/dist/components/panel/experimental/ReportPageBriefPanel.js.map +1 -1
- package/dist/components/panel/experimental/ReportProjectHealthPanel.d.ts +1 -1
- package/dist/components/panel/experimental/ReportProjectHealthPanel.d.ts.map +1 -1
- package/dist/components/panel/experimental/ReportProjectHealthPanel.js +7 -6
- package/dist/components/panel/experimental/ReportProjectHealthPanel.js.map +1 -1
- package/dist/components/panel/experimental/ReportTodayDigestPanel.d.ts +1 -1
- package/dist/components/panel/experimental/ReportTodayDigestPanel.d.ts.map +1 -1
- package/dist/components/panel/experimental/ReportTodayDigestPanel.js +8 -13
- package/dist/components/panel/experimental/ReportTodayDigestPanel.js.map +1 -1
- package/dist/components/panel/feedback/AssigneeThreadEntry.d.ts +1 -1
- package/dist/components/panel/feedback/AssigneeThreadEntry.d.ts.map +1 -1
- package/dist/components/panel/feedback/AssigneeThreadEntry.js +5 -5
- package/dist/components/panel/feedback/AssigneeThreadEntry.js.map +1 -1
- package/dist/components/panel/feedback/AuthorSelector.d.ts +1 -1
- package/dist/components/panel/feedback/AuthorSelector.d.ts.map +1 -1
- package/dist/components/panel/feedback/AuthorSelector.js +2 -2
- package/dist/components/panel/feedback/AuthorSelector.js.map +1 -1
- package/dist/components/panel/feedback/CaseAssigneeInfo.d.ts +1 -1
- package/dist/components/panel/feedback/CaseAssigneeInfo.d.ts.map +1 -1
- package/dist/components/panel/feedback/CaseAssigneeInfo.js +3 -3
- package/dist/components/panel/feedback/CaseAssigneeInfo.js.map +1 -1
- package/dist/components/panel/feedback/ComposerFooterWarning.d.ts +1 -1
- package/dist/components/panel/feedback/ComposerFooterWarning.d.ts.map +1 -1
- package/dist/components/panel/feedback/FeedbackCaseEditor.d.ts +1 -1
- package/dist/components/panel/feedback/FeedbackCaseEditor.d.ts.map +1 -1
- package/dist/components/panel/feedback/FeedbackCaseEditor.js +2 -2
- package/dist/components/panel/feedback/FeedbackCaseEditor.js.map +1 -1
- package/dist/components/panel/feedback/FeedbackCaseList.d.ts +1 -1
- package/dist/components/panel/feedback/FeedbackCaseList.d.ts.map +1 -1
- package/dist/components/panel/feedback/FeedbackCaseList.js +4 -4
- package/dist/components/panel/feedback/FeedbackCaseList.js.map +1 -1
- package/dist/components/panel/feedback/FeedbackCaseTabBar.d.ts +2 -2
- package/dist/components/panel/feedback/FeedbackCaseTabBar.d.ts.map +1 -1
- package/dist/components/panel/feedback/FeedbackCaseTabBar.js +2 -2
- package/dist/components/panel/feedback/FeedbackCaseTabBar.js.map +1 -1
- package/dist/components/panel/feedback/FeedbackCategorySelector.d.ts +1 -1
- package/dist/components/panel/feedback/FeedbackCategorySelector.d.ts.map +1 -1
- package/dist/components/panel/feedback/FeedbackComposer.d.ts +5 -1
- package/dist/components/panel/feedback/FeedbackComposer.d.ts.map +1 -1
- package/dist/components/panel/feedback/FeedbackComposer.js +11 -15
- package/dist/components/panel/feedback/FeedbackComposer.js.map +1 -1
- package/dist/components/panel/feedback/FeedbackCreatorBadge.d.ts +1 -1
- package/dist/components/panel/feedback/FeedbackCreatorBadge.d.ts.map +1 -1
- package/dist/components/panel/feedback/FeedbackCreatorBadge.js +2 -2
- package/dist/components/panel/feedback/FeedbackCreatorBadge.js.map +1 -1
- package/dist/components/panel/feedback/FeedbackFieldTags.d.ts +1 -1
- package/dist/components/panel/feedback/FeedbackFieldTags.d.ts.map +1 -1
- package/dist/components/panel/feedback/FeedbackHoverCard.d.ts +1 -1
- package/dist/components/panel/feedback/FeedbackHoverCard.d.ts.map +1 -1
- package/dist/components/panel/feedback/FeedbackHoverCard.js +6 -6
- package/dist/components/panel/feedback/FeedbackHoverCard.js.map +1 -1
- package/dist/components/panel/feedback/FeedbackListItem.d.ts +1 -1
- package/dist/components/panel/feedback/FeedbackListItem.d.ts.map +1 -1
- package/dist/components/panel/feedback/FeedbackListItem.js +8 -8
- package/dist/components/panel/feedback/FeedbackListItem.js.map +1 -1
- package/dist/components/panel/feedback/FeedbackPinToggleButton.d.ts +10 -0
- package/dist/components/panel/feedback/FeedbackPinToggleButton.d.ts.map +1 -0
- package/dist/components/panel/feedback/FeedbackPinToggleButton.js +25 -0
- package/dist/components/panel/feedback/FeedbackPinToggleButton.js.map +1 -0
- package/dist/components/panel/feedback/FeedbackStatusBadge.d.ts +1 -1
- package/dist/components/panel/feedback/FeedbackStatusBadge.d.ts.map +1 -1
- package/dist/components/panel/feedback/FeedbackStatusBadge.js +2 -2
- package/dist/components/panel/feedback/FeedbackStatusBadge.js.map +1 -1
- package/dist/components/panel/feedback/FeedbackThread.d.ts +1 -1
- package/dist/components/panel/feedback/FeedbackThread.d.ts.map +1 -1
- package/dist/components/panel/feedback/FeedbackThread.js +9 -59
- package/dist/components/panel/feedback/FeedbackThread.js.map +1 -1
- package/dist/components/panel/feedback/GitIssueButton.d.ts +1 -1
- package/dist/components/panel/feedback/GitIssueButton.d.ts.map +1 -1
- package/dist/components/panel/feedback/GitIssueButton.js +1 -1
- package/dist/components/panel/feedback/GitIssueButton.js.map +1 -1
- package/dist/components/panel/feedback/GitIssuedThreadEntry.d.ts +1 -1
- package/dist/components/panel/feedback/GitIssuedThreadEntry.d.ts.map +1 -1
- package/dist/components/panel/feedback/GitIssuedThreadEntry.js +4 -4
- package/dist/components/panel/feedback/GitIssuedThreadEntry.js.map +1 -1
- package/dist/components/panel/feedback/PickTargetSnippet.d.ts +1 -1
- package/dist/components/panel/feedback/PickTargetSnippet.d.ts.map +1 -1
- package/dist/components/panel/feedback/PickTargetSnippet.js +4 -3
- package/dist/components/panel/feedback/PickTargetSnippet.js.map +1 -1
- package/dist/components/panel/feedback/QuestionThreadGroup.d.ts +1 -1
- package/dist/components/panel/feedback/QuestionThreadGroup.d.ts.map +1 -1
- package/dist/components/panel/feedback/QuestionThreadGroup.js +2 -2
- package/dist/components/panel/feedback/QuestionThreadGroup.js.map +1 -1
- package/dist/components/panel/feedback/ReplyHistoryControls.d.ts +1 -1
- package/dist/components/panel/feedback/ReplyHistoryControls.d.ts.map +1 -1
- package/dist/components/panel/feedback/ReplyHistoryControls.js +3 -2
- package/dist/components/panel/feedback/ReplyHistoryControls.js.map +1 -1
- package/dist/components/panel/feedback/ThreadAuthorMeta.d.ts +1 -1
- package/dist/components/panel/feedback/ThreadAuthorMeta.d.ts.map +1 -1
- package/dist/components/panel/feedback/ThreadChildReply.d.ts +1 -1
- package/dist/components/panel/feedback/ThreadChildReply.d.ts.map +1 -1
- package/dist/components/panel/feedback/ThreadEntryActions.d.ts +37 -0
- package/dist/components/panel/feedback/ThreadEntryActions.d.ts.map +1 -0
- package/dist/components/panel/feedback/ThreadEntryActions.js +57 -0
- package/dist/components/panel/feedback/ThreadEntryActions.js.map +1 -0
- package/dist/components/panel/feedback/ThreadTimelineRow.d.ts +1 -1
- package/dist/components/panel/feedback/ThreadTimelineRow.d.ts.map +1 -1
- package/dist/components/point/MarkerCaseSidebar.d.ts +1 -1
- package/dist/components/point/MarkerCaseSidebar.d.ts.map +1 -1
- package/dist/components/point/MarkerCaseSidebar.js +5 -5
- package/dist/components/point/MarkerCaseSidebar.js.map +1 -1
- package/dist/components/point/MarkerFeedbackWindow.d.ts +1 -1
- package/dist/components/point/MarkerFeedbackWindow.d.ts.map +1 -1
- package/dist/components/point/MarkerFeedbackWindow.js +11 -8
- package/dist/components/point/MarkerFeedbackWindow.js.map +1 -1
- package/dist/components/point/ReportDraftMarker.d.ts +1 -1
- package/dist/components/point/ReportDraftMarker.d.ts.map +1 -1
- package/dist/components/point/ReportDraftMarker.js +3 -3
- package/dist/components/point/ReportDraftMarker.js.map +1 -1
- package/dist/components/point/ReportMarkersLayer.d.ts +1 -1
- package/dist/components/point/ReportMarkersLayer.d.ts.map +1 -1
- package/dist/components/point/ReportMarkersLayer.js +52 -20
- package/dist/components/point/ReportMarkersLayer.js.map +1 -1
- package/dist/components/report/FivePixels.d.ts +3 -29
- package/dist/components/report/FivePixels.d.ts.map +1 -1
- package/dist/components/report/FivePixels.js +2 -2
- package/dist/components/report/FivePixels.js.map +1 -1
- package/dist/components/report/ReportView.d.ts +1 -1
- package/dist/components/report/ReportView.d.ts.map +1 -1
- package/dist/components/report/ReportView.js +14 -4
- package/dist/components/report/ReportView.js.map +1 -1
- package/dist/components/report/ShadowReportRoot.js +1 -1
- package/dist/components/report/ShadowReportRoot.js.map +1 -1
- package/dist/components/report/ThemeScope.d.ts +1 -1
- package/dist/components/report/ThemeScope.d.ts.map +1 -1
- package/dist/components/report/index.d.ts +9 -8
- package/dist/components/report/index.d.ts.map +1 -1
- package/dist/components/report/index.js +7 -6
- package/dist/components/report/index.js.map +1 -1
- package/dist/components/ui/CornerResizeGhost.d.ts +1 -1
- package/dist/components/ui/CornerResizeGhost.d.ts.map +1 -1
- package/dist/components/ui/CornerResizeGhost.js +2 -1
- package/dist/components/ui/CornerResizeGhost.js.map +1 -1
- package/dist/components/ui/CornerResizeHandle.d.ts +1 -1
- package/dist/components/ui/CornerResizeHandle.d.ts.map +1 -1
- package/dist/components/ui/HoverTooltip.d.ts +1 -1
- package/dist/components/ui/HoverTooltip.d.ts.map +1 -1
- package/dist/components/ui/HoverTooltip.js +5 -4
- package/dist/components/ui/HoverTooltip.js.map +1 -1
- package/dist/components/ui/IconTooltipButton.d.ts +1 -1
- package/dist/components/ui/IconTooltipButton.d.ts.map +1 -1
- package/dist/components/ui/PointerFollowTooltip.d.ts.map +1 -1
- package/dist/components/ui/PointerFollowTooltip.js +5 -4
- package/dist/components/ui/PointerFollowTooltip.js.map +1 -1
- package/dist/components/ui/ProcessingDots.d.ts +1 -1
- package/dist/components/ui/ProcessingDots.d.ts.map +1 -1
- package/dist/components/ui/Text/ui/Shimmer.d.ts +1 -1
- package/dist/components/ui/Text/ui/Shimmer.d.ts.map +1 -1
- package/dist/components/ui/Text/ui/Shimmer.js +1 -1
- package/dist/components/ui/Text/ui/Shimmer.js.map +1 -1
- package/dist/constants/markerAppearance.d.ts +6 -0
- package/dist/constants/markerAppearance.d.ts.map +1 -1
- package/dist/constants/markerAppearance.js +5 -0
- package/dist/constants/markerAppearance.js.map +1 -1
- package/dist/constants/motionClasses.d.ts +52 -0
- package/dist/constants/motionClasses.d.ts.map +1 -0
- package/dist/constants/motionClasses.js +69 -0
- package/dist/constants/motionClasses.js.map +1 -0
- package/dist/constants/panelTabPresets.js +8 -8
- package/dist/constants/panelTabPresets.js.map +1 -1
- package/dist/constants/panelTabRegistry.d.ts +12 -0
- package/dist/constants/panelTabRegistry.d.ts.map +1 -1
- package/dist/constants/panelTabRegistry.js +12 -0
- package/dist/constants/panelTabRegistry.js.map +1 -1
- package/dist/constants/replyHistory.d.ts +1 -1
- package/dist/constants/replyHistory.d.ts.map +1 -1
- package/dist/constants/replyHistory.js +1 -1
- package/dist/constants/replyHistory.js.map +1 -1
- package/dist/hooks/replyHistoryActions.d.ts +1 -1
- package/dist/hooks/replyHistoryActions.d.ts.map +1 -1
- package/dist/hooks/replyHistoryActions.js +1 -1
- package/dist/hooks/replyHistoryActions.js.map +1 -1
- package/dist/hooks/report/assembleReportContextValue.d.ts +316 -0
- package/dist/hooks/report/assembleReportContextValue.d.ts.map +1 -0
- package/dist/hooks/report/assembleReportContextValue.js +241 -0
- package/dist/hooks/report/assembleReportContextValue.js.map +1 -0
- package/dist/hooks/report/usePickProbeSessionHistory.d.ts +18 -0
- package/dist/hooks/report/usePickProbeSessionHistory.d.ts.map +1 -0
- package/dist/hooks/report/usePickProbeSessionHistory.js +93 -0
- package/dist/hooks/report/usePickProbeSessionHistory.js.map +1 -0
- package/dist/hooks/report/useReplyCaseEdit.d.ts +27 -0
- package/dist/hooks/report/useReplyCaseEdit.d.ts.map +1 -0
- package/dist/hooks/report/useReplyCaseEdit.js +91 -0
- package/dist/hooks/report/useReplyCaseEdit.js.map +1 -0
- package/dist/hooks/report/useReportAuthSession.d.ts +107 -0
- package/dist/hooks/report/useReportAuthSession.d.ts.map +1 -0
- package/dist/hooks/report/useReportAuthSession.js +240 -0
- package/dist/hooks/report/useReportAuthSession.js.map +1 -0
- package/dist/hooks/report/useReportDraftSession.d.ts +88 -0
- package/dist/hooks/report/useReportDraftSession.d.ts.map +1 -0
- package/dist/hooks/report/useReportDraftSession.js +416 -0
- package/dist/hooks/report/useReportDraftSession.js.map +1 -0
- package/dist/hooks/report/useReportMarkers.d.ts +61 -0
- package/dist/hooks/report/useReportMarkers.d.ts.map +1 -0
- package/dist/hooks/report/useReportMarkers.js +371 -0
- package/dist/hooks/report/useReportMarkers.js.map +1 -0
- package/dist/hooks/report/useReportMutations.d.ts +46 -0
- package/dist/hooks/report/useReportMutations.d.ts.map +1 -0
- package/dist/hooks/report/useReportMutations.js +177 -0
- package/dist/hooks/report/useReportMutations.js.map +1 -0
- package/dist/hooks/report/useReportPanelShell.d.ts +146 -0
- package/dist/hooks/report/useReportPanelShell.d.ts.map +1 -0
- package/dist/hooks/report/useReportPanelShell.js +340 -0
- package/dist/hooks/report/useReportPanelShell.js.map +1 -0
- package/dist/hooks/report/useReportPickProbe.d.ts +51 -0
- package/dist/hooks/report/useReportPickProbe.d.ts.map +1 -0
- package/dist/hooks/report/useReportPickProbe.js +400 -0
- package/dist/hooks/report/useReportPickProbe.js.map +1 -0
- package/dist/hooks/report/useReportReplyReview.d.ts +71 -0
- package/dist/hooks/report/useReportReplyReview.d.ts.map +1 -0
- package/dist/hooks/report/useReportReplyReview.js +437 -0
- package/dist/hooks/report/useReportReplyReview.js.map +1 -0
- package/dist/hooks/{useReportState.d.ts → report/useReportState.d.ts} +91 -95
- package/dist/hooks/report/useReportState.d.ts.map +1 -0
- package/dist/hooks/report/useReportState.js +255 -0
- package/dist/hooks/report/useReportState.js.map +1 -0
- package/dist/hooks/report.api.js +2 -2
- package/dist/hooks/report.api.js.map +1 -1
- package/dist/hooks/useActivitySummary.js +1 -1
- package/dist/hooks/useActivitySummary.js.map +1 -1
- package/dist/hooks/useCurrentPathname.js +2 -2
- package/dist/hooks/useCurrentPathname.js.map +1 -1
- package/dist/hooks/useMarkerAppearancePreference.d.ts +3 -1
- package/dist/hooks/useMarkerAppearancePreference.d.ts.map +1 -1
- package/dist/hooks/useMarkerAppearancePreference.js +31 -3
- package/dist/hooks/useMarkerAppearancePreference.js.map +1 -1
- package/dist/hooks/usePanelBootstrap.js +1 -1
- package/dist/hooks/usePanelBootstrap.js.map +1 -1
- package/dist/hooks/usePanelDock.d.ts +0 -2
- package/dist/hooks/usePanelDock.d.ts.map +1 -1
- package/dist/hooks/usePanelDock.js.map +1 -1
- package/dist/hooks/usePanelFeedbackTransfer.d.ts +1 -1
- package/dist/hooks/usePanelFeedbackTransfer.d.ts.map +1 -1
- package/dist/hooks/usePanelFeedbackTransfer.js +1 -1
- package/dist/hooks/usePanelFeedbackTransfer.js.map +1 -1
- package/dist/hooks/usePanelResize.d.ts +0 -8
- package/dist/hooks/usePanelResize.d.ts.map +1 -1
- package/dist/hooks/usePanelResize.js +1 -16
- package/dist/hooks/usePanelResize.js.map +1 -1
- package/dist/hooks/usePanelTabPreference.d.ts +1 -1
- package/dist/hooks/usePanelTabPreference.d.ts.map +1 -1
- package/dist/hooks/usePanelTabPreference.js +1 -1
- package/dist/hooks/usePanelTabPreference.js.map +1 -1
- package/dist/hooks/usePersonalKey.js +1 -1
- package/dist/hooks/usePersonalKey.js.map +1 -1
- package/dist/hooks/usePinnedFeedbackPreference.d.ts +11 -0
- package/dist/hooks/usePinnedFeedbackPreference.d.ts.map +1 -0
- package/dist/hooks/usePinnedFeedbackPreference.js +109 -0
- package/dist/hooks/usePinnedFeedbackPreference.js.map +1 -0
- package/dist/hooks/useReportPersistence.d.ts +3 -2
- package/dist/hooks/useReportPersistence.d.ts.map +1 -1
- package/dist/hooks/useReportPersistence.js +28 -42
- package/dist/hooks/useReportPersistence.js.map +1 -1
- package/dist/hooks/useReportShortcuts.d.ts +1 -1
- package/dist/hooks/useReportShortcuts.d.ts.map +1 -1
- package/dist/hooks/useReportShortcuts.js +1 -1
- package/dist/hooks/useReportShortcuts.js.map +1 -1
- package/dist/hooks/useTooltipLayout.d.ts +1 -1
- package/dist/hooks/useTooltipLayout.js +1 -1
- package/dist/hooks/useTooltipLayout.js.map +1 -1
- package/dist/hooks/useTooltipResize.js +1 -1
- package/dist/hooks/useTooltipResize.js.map +1 -1
- package/dist/i18n/en.d.ts.map +1 -1
- package/dist/i18n/en.js +38 -0
- package/dist/i18n/en.js.map +1 -1
- package/dist/i18n/ko.d.ts.map +1 -1
- package/dist/i18n/ko.js +38 -0
- package/dist/i18n/ko.js.map +1 -1
- package/dist/i18n/types.d.ts +38 -0
- package/dist/i18n/types.d.ts.map +1 -1
- package/dist/providers/ReportProvider.d.ts +3 -31
- package/dist/providers/ReportProvider.d.ts.map +1 -1
- package/dist/providers/ReportProvider.js +9 -8
- package/dist/providers/ReportProvider.js.map +1 -1
- package/dist/providers/reportContext.d.ts +1083 -207
- package/dist/providers/reportContext.d.ts.map +1 -1
- package/dist/providers/reportContext.js +43 -7
- package/dist/providers/reportContext.js.map +1 -1
- package/dist/providers/reportContextPartitions.d.ts +5 -0
- package/dist/providers/reportContextPartitions.d.ts.map +1 -0
- package/dist/providers/reportContextPartitions.js +246 -0
- package/dist/providers/reportContextPartitions.js.map +1 -0
- package/dist/storage/local/localStorageAdapter.d.ts +0 -2
- package/dist/storage/local/localStorageAdapter.d.ts.map +1 -1
- package/dist/storage/local/localStorageAdapter.js +6 -7
- package/dist/storage/local/localStorageAdapter.js.map +1 -1
- package/dist/styles/reportStylesheet.d.ts +1 -1
- package/dist/styles/reportStylesheet.d.ts.map +1 -1
- package/dist/styles/reportStylesheet.js +1 -1
- package/dist/styles/reportStylesheet.js.map +1 -1
- package/dist/types/pinnedFeedback.d.ts +20 -0
- package/dist/types/pinnedFeedback.d.ts.map +1 -0
- package/dist/types/pinnedFeedback.js +2 -0
- package/dist/types/pinnedFeedback.js.map +1 -0
- package/dist/types/publicApi.d.ts +27 -0
- package/dist/types/publicApi.d.ts.map +1 -0
- package/dist/types/publicApi.js +2 -0
- package/dist/types/publicApi.js.map +1 -0
- package/dist/types/report-ui.d.ts +1 -1
- package/dist/types/report-ui.d.ts.map +1 -1
- package/dist/types/report.d.ts +7 -3
- package/dist/types/report.d.ts.map +1 -1
- package/dist/utils/{personalKey.d.ts → auth/personalKey.d.ts} +1 -1
- package/dist/utils/auth/personalKey.d.ts.map +1 -0
- package/dist/utils/{personalKey.js → auth/personalKey.js} +23 -7
- package/dist/utils/auth/personalKey.js.map +1 -0
- package/dist/utils/{feedbackCaseId.d.ts → feedback/feedbackCaseId.d.ts} +1 -1
- package/dist/utils/feedback/feedbackCaseId.d.ts.map +1 -0
- package/dist/utils/feedback/feedbackCaseId.js.map +1 -0
- package/dist/utils/{feedbackDataTransfer.d.ts → feedback/feedbackDataTransfer.d.ts} +1 -1
- package/dist/utils/feedback/feedbackDataTransfer.d.ts.map +1 -0
- package/dist/utils/{feedbackDataTransfer.js → feedback/feedbackDataTransfer.js} +3 -3
- package/dist/utils/feedback/feedbackDataTransfer.js.map +1 -0
- package/dist/utils/{feedbackDeepLink.d.ts → feedback/feedbackDeepLink.d.ts} +1 -1
- package/dist/utils/feedback/feedbackDeepLink.d.ts.map +1 -0
- package/dist/utils/feedback/feedbackDeepLink.js.map +1 -0
- package/dist/utils/feedback/feedbackListStatus.d.ts +4 -0
- package/dist/utils/feedback/feedbackListStatus.d.ts.map +1 -0
- package/dist/utils/{feedbackListStatus.js → feedback/feedbackListStatus.js} +2 -2
- package/dist/utils/feedback/feedbackListStatus.js.map +1 -0
- package/dist/utils/{feedbackThread.d.ts → feedback/feedbackThread.d.ts} +2 -4
- package/dist/utils/feedback/feedbackThread.d.ts.map +1 -0
- package/dist/utils/{feedbackThread.js → feedback/feedbackThread.js} +2 -6
- package/dist/utils/feedback/feedbackThread.js.map +1 -0
- package/dist/utils/{feedbackTransferSchema.d.ts → feedback/feedbackTransferSchema.d.ts} +2 -2
- package/dist/utils/feedback/feedbackTransferSchema.d.ts.map +1 -0
- package/dist/utils/{feedbackTransferSchema.js → feedback/feedbackTransferSchema.js} +1 -1
- package/dist/utils/feedback/feedbackTransferSchema.js.map +1 -0
- package/dist/utils/{replyHistory.d.ts → feedback/replyHistory.d.ts} +1 -1
- package/dist/utils/feedback/replyHistory.d.ts.map +1 -0
- package/dist/utils/{replyHistory.js → feedback/replyHistory.js} +1 -1
- package/dist/utils/feedback/replyHistory.js.map +1 -0
- package/dist/utils/{validateFeedbackImport.d.ts → feedback/validateFeedbackImport.d.ts} +1 -1
- package/dist/utils/feedback/validateFeedbackImport.d.ts.map +1 -0
- package/dist/utils/{validateFeedbackImport.js → feedback/validateFeedbackImport.js} +3 -3
- package/dist/utils/feedback/validateFeedbackImport.js.map +1 -0
- package/dist/utils/{githubIntegration.d.ts → github/githubIntegration.d.ts} +1 -1
- package/dist/utils/github/githubIntegration.d.ts.map +1 -0
- package/dist/utils/{githubIntegration.js → github/githubIntegration.js} +1 -1
- package/dist/utils/github/githubIntegration.js.map +1 -0
- package/dist/utils/{coordinates.d.ts → marker/coordinates.d.ts} +2 -2
- package/dist/utils/marker/coordinates.d.ts.map +1 -0
- package/dist/utils/{coordinates.js → marker/coordinates.js} +30 -24
- package/dist/utils/marker/coordinates.js.map +1 -0
- package/dist/utils/marker/hoverTooltipLayout.d.ts.map +1 -0
- package/dist/utils/marker/hoverTooltipLayout.js.map +1 -0
- package/dist/utils/{locateFeedback.d.ts → marker/locateFeedback.d.ts} +2 -2
- package/dist/utils/marker/locateFeedback.d.ts.map +1 -0
- package/dist/utils/{locateFeedback.js → marker/locateFeedback.js} +5 -4
- package/dist/utils/marker/locateFeedback.js.map +1 -0
- package/dist/utils/{markerContext.d.ts → marker/markerContext.d.ts} +2 -2
- package/dist/utils/marker/markerContext.d.ts.map +1 -0
- package/dist/utils/{markerContext.js → marker/markerContext.js} +5 -3
- package/dist/utils/marker/markerContext.js.map +1 -0
- package/dist/utils/{markerRuntime.d.ts → marker/markerRuntime.d.ts} +1 -1
- package/dist/utils/marker/markerRuntime.d.ts.map +1 -0
- package/dist/utils/{markerRuntime.js → marker/markerRuntime.js} +2 -2
- package/dist/utils/marker/markerRuntime.js.map +1 -0
- package/dist/utils/{markerShape.d.ts → marker/markerShape.d.ts} +1 -1
- package/dist/utils/marker/markerShape.d.ts.map +1 -0
- package/dist/utils/marker/markerShape.js.map +1 -0
- package/dist/utils/marker/markerTarget.d.ts +3 -0
- package/dist/utils/marker/markerTarget.d.ts.map +1 -0
- package/dist/utils/{markerTarget.js → marker/markerTarget.js} +6 -0
- package/dist/utils/marker/markerTarget.js.map +1 -0
- package/dist/utils/{targetSelector.d.ts → marker/targetSelector.d.ts} +1 -1
- package/dist/utils/marker/targetSelector.d.ts.map +1 -0
- package/dist/utils/{targetSelector.js → marker/targetSelector.js} +1 -1
- package/dist/utils/marker/targetSelector.js.map +1 -0
- package/dist/utils/{experimentalPanelTabs.d.ts → panel/experimentalPanelTabs.d.ts} +4 -2
- package/dist/utils/panel/experimentalPanelTabs.d.ts.map +1 -0
- package/dist/utils/{experimentalPanelTabs.js → panel/experimentalPanelTabs.js} +10 -3
- package/dist/utils/panel/experimentalPanelTabs.js.map +1 -0
- package/dist/utils/panel/formatStatCount.d.ts.map +1 -0
- package/dist/utils/panel/formatStatCount.js.map +1 -0
- package/dist/utils/{heatmapActivity.d.ts → panel/heatmapActivity.d.ts} +3 -3
- package/dist/utils/panel/heatmapActivity.d.ts.map +1 -0
- package/dist/utils/panel/heatmapActivity.js.map +1 -0
- package/dist/utils/{hourlyCompareSparkline.d.ts → panel/hourlyCompareSparkline.d.ts} +1 -1
- package/dist/utils/panel/hourlyCompareSparkline.d.ts.map +1 -0
- package/dist/utils/{hourlyCompareSparkline.js → panel/hourlyCompareSparkline.js} +1 -1
- package/dist/utils/panel/hourlyCompareSparkline.js.map +1 -0
- package/dist/utils/{panelBootstrap.d.ts → panel/panelBootstrap.d.ts} +2 -2
- package/dist/utils/panel/panelBootstrap.d.ts.map +1 -0
- package/dist/utils/{panelBootstrap.js → panel/panelBootstrap.js} +3 -3
- package/dist/utils/panel/panelBootstrap.js.map +1 -0
- package/dist/utils/{panelRoleStats.d.ts → panel/panelRoleStats.d.ts} +3 -3
- package/dist/utils/panel/panelRoleStats.d.ts.map +1 -0
- package/dist/utils/{panelRoleStats.js → panel/panelRoleStats.js} +4 -4
- package/dist/utils/panel/panelRoleStats.js.map +1 -0
- package/dist/utils/{panelTabPreference.d.ts → panel/panelTabPreference.d.ts} +2 -2
- package/dist/utils/panel/panelTabPreference.d.ts.map +1 -0
- package/dist/utils/{panelTabPreference.js → panel/panelTabPreference.js} +2 -2
- package/dist/utils/panel/panelTabPreference.js.map +1 -0
- package/dist/utils/panel/panelTypography.d.ts.map +1 -0
- package/dist/utils/panel/panelTypography.js.map +1 -0
- package/dist/utils/{routeDetailStatus.d.ts → panel/routeDetailStatus.d.ts} +1 -1
- package/dist/utils/panel/routeDetailStatus.d.ts.map +1 -0
- package/dist/utils/{routeDetailStatus.js → panel/routeDetailStatus.js} +1 -1
- package/dist/utils/panel/routeDetailStatus.js.map +1 -0
- package/dist/utils/pinned/pinnedFeedback.d.ts +18 -0
- package/dist/utils/pinned/pinnedFeedback.d.ts.map +1 -0
- package/dist/utils/pinned/pinnedFeedback.js +86 -0
- package/dist/utils/pinned/pinnedFeedback.js.map +1 -0
- package/dist/utils/probe/cssStepper.d.ts.map +1 -0
- package/dist/utils/probe/cssStepper.js.map +1 -0
- package/dist/utils/{pickProbe.d.ts → probe/pickProbe.d.ts} +2 -2
- package/dist/utils/probe/pickProbe.d.ts.map +1 -0
- package/dist/utils/probe/pickProbe.js.map +1 -0
- package/dist/utils/probe/pickProbeLayout.d.ts.map +1 -0
- package/dist/utils/probe/pickProbeLayout.js.map +1 -0
- package/dist/utils/{pickProbeSession.d.ts → probe/pickProbeSession.d.ts} +1 -1
- package/dist/utils/probe/pickProbeSession.d.ts.map +1 -0
- package/dist/utils/{pickProbeSession.js → probe/pickProbeSession.js} +2 -2
- package/dist/utils/probe/pickProbeSession.js.map +1 -0
- package/dist/utils/probe/pickTargetDeleteAnimation.d.ts.map +1 -0
- package/dist/utils/{pickTargetDeleteAnimation.js → probe/pickTargetDeleteAnimation.js} +1 -1
- package/dist/utils/probe/pickTargetDeleteAnimation.js.map +1 -0
- package/dist/utils/{pickTargetInspect.d.ts → probe/pickTargetInspect.d.ts} +1 -1
- package/dist/utils/probe/pickTargetInspect.d.ts.map +1 -0
- package/dist/utils/probe/pickTargetInspect.js.map +1 -0
- package/dist/utils/probe/probeColor.d.ts.map +1 -0
- package/dist/utils/probe/probeColor.js.map +1 -0
- package/dist/utils/{probeLayout.d.ts → probe/probeLayout.d.ts} +1 -1
- package/dist/utils/probe/probeLayout.d.ts.map +1 -0
- package/dist/utils/probe/probeLayout.js.map +1 -0
- package/dist/utils/{probeSessionHistory.d.ts → probe/probeSessionHistory.d.ts} +1 -1
- package/dist/utils/probe/probeSessionHistory.d.ts.map +1 -0
- package/dist/utils/probe/probeSessionHistory.js.map +1 -0
- package/dist/utils/{fields.d.ts → report/fields.d.ts} +3 -3
- package/dist/utils/report/fields.d.ts.map +1 -0
- package/dist/utils/{fields.js → report/fields.js} +1 -1
- package/dist/utils/report/fields.js.map +1 -0
- package/dist/utils/report/projectId.d.ts.map +1 -0
- package/dist/utils/{projectId.js → report/projectId.js} +2 -2
- package/dist/utils/report/projectId.js.map +1 -0
- package/dist/utils/{reportCallbacks.d.ts → report/reportCallbacks.d.ts} +1 -1
- package/dist/utils/report/reportCallbacks.d.ts.map +1 -0
- package/dist/utils/report/reportCallbacks.js.map +1 -0
- package/dist/utils/{reportCases.d.ts → report/reportCases.d.ts} +1 -1
- package/dist/utils/report/reportCases.d.ts.map +1 -0
- package/dist/utils/report/reportCases.js.map +1 -0
- package/dist/utils/{reportPosition.d.ts → report/reportPosition.d.ts} +3 -1
- package/dist/utils/report/reportPosition.d.ts.map +1 -0
- package/dist/utils/report/reportPosition.js +112 -0
- package/dist/utils/report/reportPosition.js.map +1 -0
- package/dist/utils/{reportProject.d.ts → report/reportProject.d.ts} +1 -1
- package/dist/utils/report/reportProject.d.ts.map +1 -0
- package/dist/utils/report/reportProject.js.map +1 -0
- package/dist/utils/{reportSummary.d.ts → report/reportSummary.d.ts} +1 -1
- package/dist/utils/report/reportSummary.d.ts.map +1 -0
- package/dist/utils/{reportSummary.js → report/reportSummary.js} +2 -0
- package/dist/utils/report/reportSummary.js.map +1 -0
- package/dist/utils/{reportTeam.d.ts → report/reportTeam.d.ts} +1 -1
- package/dist/utils/report/reportTeam.d.ts.map +1 -0
- package/dist/utils/{reportTeam.js → report/reportTeam.js} +1 -1
- package/dist/utils/report/reportTeam.js.map +1 -0
- package/dist/utils/{reportUi.d.ts → report/reportUi.d.ts} +2 -2
- package/dist/utils/report/reportUi.d.ts.map +1 -0
- package/dist/utils/{reportUi.js → report/reportUi.js} +6 -10
- package/dist/utils/report/reportUi.js.map +1 -0
- package/dist/utils/{reportVisibility.d.ts → report/reportVisibility.d.ts} +1 -1
- package/dist/utils/report/reportVisibility.d.ts.map +1 -0
- package/dist/utils/report/reportVisibility.js.map +1 -0
- package/dist/utils/{reportVisual.d.ts → report/reportVisual.d.ts} +2 -2
- package/dist/utils/report/reportVisual.d.ts.map +1 -0
- package/dist/utils/{reportVisual.js → report/reportVisual.js} +3 -3
- package/dist/utils/report/reportVisual.js.map +1 -0
- package/dist/utils/report/resolveDefaultAuthorName.d.ts +3 -0
- package/dist/utils/report/resolveDefaultAuthorName.d.ts.map +1 -0
- package/dist/utils/report/resolveDefaultAuthorName.js +7 -0
- package/dist/utils/report/resolveDefaultAuthorName.js.map +1 -0
- package/dist/utils/{dom.d.ts → shared/dom.d.ts} +2 -2
- package/dist/utils/shared/dom.d.ts.map +1 -0
- package/dist/utils/{dom.js → shared/dom.js} +3 -3
- package/dist/utils/shared/dom.js.map +1 -0
- package/dist/utils/shared/env.d.ts.map +1 -0
- package/dist/utils/shared/env.js.map +1 -0
- package/dist/utils/{format.d.ts → shared/format.d.ts} +1 -1
- package/dist/utils/shared/format.d.ts.map +1 -0
- package/dist/utils/shared/format.js.map +1 -0
- package/dist/utils/shared/hexColor.d.ts.map +1 -0
- package/dist/utils/shared/hexColor.js.map +1 -0
- package/dist/utils/shared/pathname.d.ts.map +1 -0
- package/dist/utils/shared/pathname.js.map +1 -0
- package/dist/utils/shared/pathnameNavigation.d.ts.map +1 -0
- package/dist/utils/shared/pathnameNavigation.js.map +1 -0
- package/dist/utils/shared/shortcuts.d.ts.map +1 -0
- package/dist/utils/shared/shortcuts.js.map +1 -0
- package/dist/utils/{storage.d.ts → shared/storage.d.ts} +21 -1
- package/dist/utils/shared/storage.d.ts.map +1 -0
- package/dist/utils/{storage.js → shared/storage.js} +38 -3
- package/dist/utils/shared/storage.js.map +1 -0
- package/package.json +7 -3
- package/dist/hooks/useReportState.d.ts.map +0 -1
- package/dist/hooks/useReportState.js +0 -2377
- package/dist/hooks/useReportState.js.map +0 -1
- package/dist/utils/coordinates.d.ts.map +0 -1
- package/dist/utils/coordinates.js.map +0 -1
- package/dist/utils/cssStepper.d.ts.map +0 -1
- package/dist/utils/cssStepper.js.map +0 -1
- package/dist/utils/dom.d.ts.map +0 -1
- package/dist/utils/dom.js.map +0 -1
- package/dist/utils/env.d.ts.map +0 -1
- package/dist/utils/env.js.map +0 -1
- package/dist/utils/experimentalPanelTabs.d.ts.map +0 -1
- package/dist/utils/experimentalPanelTabs.js.map +0 -1
- package/dist/utils/feedbackCaseId.d.ts.map +0 -1
- package/dist/utils/feedbackCaseId.js.map +0 -1
- package/dist/utils/feedbackDataTransfer.d.ts.map +0 -1
- package/dist/utils/feedbackDataTransfer.js.map +0 -1
- package/dist/utils/feedbackDeepLink.d.ts.map +0 -1
- package/dist/utils/feedbackDeepLink.js.map +0 -1
- package/dist/utils/feedbackListStatus.d.ts +0 -4
- package/dist/utils/feedbackListStatus.d.ts.map +0 -1
- package/dist/utils/feedbackListStatus.js.map +0 -1
- package/dist/utils/feedbackThread.d.ts.map +0 -1
- package/dist/utils/feedbackThread.js.map +0 -1
- package/dist/utils/feedbackTransferSchema.d.ts.map +0 -1
- package/dist/utils/feedbackTransferSchema.js.map +0 -1
- package/dist/utils/fields.d.ts.map +0 -1
- package/dist/utils/fields.js.map +0 -1
- package/dist/utils/format.d.ts.map +0 -1
- package/dist/utils/format.js.map +0 -1
- package/dist/utils/formatStatCount.d.ts.map +0 -1
- package/dist/utils/formatStatCount.js.map +0 -1
- package/dist/utils/githubIntegration.d.ts.map +0 -1
- package/dist/utils/githubIntegration.js.map +0 -1
- package/dist/utils/heatmapActivity.d.ts.map +0 -1
- package/dist/utils/heatmapActivity.js.map +0 -1
- package/dist/utils/hexColor.d.ts.map +0 -1
- package/dist/utils/hexColor.js.map +0 -1
- package/dist/utils/hourlyCompareSparkline.d.ts.map +0 -1
- package/dist/utils/hourlyCompareSparkline.js.map +0 -1
- package/dist/utils/hoverTooltipLayout.d.ts.map +0 -1
- package/dist/utils/hoverTooltipLayout.js.map +0 -1
- package/dist/utils/locateFeedback.d.ts.map +0 -1
- package/dist/utils/locateFeedback.js.map +0 -1
- package/dist/utils/markerContext.d.ts.map +0 -1
- package/dist/utils/markerContext.js.map +0 -1
- package/dist/utils/markerRuntime.d.ts.map +0 -1
- package/dist/utils/markerRuntime.js.map +0 -1
- package/dist/utils/markerShape.d.ts.map +0 -1
- package/dist/utils/markerShape.js.map +0 -1
- package/dist/utils/markerTarget.d.ts +0 -3
- package/dist/utils/markerTarget.d.ts.map +0 -1
- package/dist/utils/markerTarget.js.map +0 -1
- package/dist/utils/panelBootstrap.d.ts.map +0 -1
- package/dist/utils/panelBootstrap.js.map +0 -1
- package/dist/utils/panelRoleStats.d.ts.map +0 -1
- package/dist/utils/panelRoleStats.js.map +0 -1
- package/dist/utils/panelTabPreference.d.ts.map +0 -1
- package/dist/utils/panelTabPreference.js.map +0 -1
- package/dist/utils/panelTypography.d.ts.map +0 -1
- package/dist/utils/panelTypography.js.map +0 -1
- package/dist/utils/pathname.d.ts.map +0 -1
- package/dist/utils/pathname.js.map +0 -1
- package/dist/utils/pathnameNavigation.d.ts.map +0 -1
- package/dist/utils/pathnameNavigation.js.map +0 -1
- package/dist/utils/personalKey.d.ts.map +0 -1
- package/dist/utils/personalKey.js.map +0 -1
- package/dist/utils/pickProbe.d.ts.map +0 -1
- package/dist/utils/pickProbe.js.map +0 -1
- package/dist/utils/pickProbeLayout.d.ts.map +0 -1
- package/dist/utils/pickProbeLayout.js.map +0 -1
- package/dist/utils/pickProbeSession.d.ts.map +0 -1
- package/dist/utils/pickProbeSession.js.map +0 -1
- package/dist/utils/pickTargetDeleteAnimation.d.ts.map +0 -1
- package/dist/utils/pickTargetDeleteAnimation.js.map +0 -1
- package/dist/utils/pickTargetInspect.d.ts.map +0 -1
- package/dist/utils/pickTargetInspect.js.map +0 -1
- package/dist/utils/probeColor.d.ts.map +0 -1
- package/dist/utils/probeColor.js.map +0 -1
- package/dist/utils/probeLayout.d.ts.map +0 -1
- package/dist/utils/probeLayout.js.map +0 -1
- package/dist/utils/probeSessionHistory.d.ts.map +0 -1
- package/dist/utils/probeSessionHistory.js.map +0 -1
- package/dist/utils/projectId.d.ts.map +0 -1
- package/dist/utils/projectId.js.map +0 -1
- package/dist/utils/replyHistory.d.ts.map +0 -1
- package/dist/utils/replyHistory.js.map +0 -1
- package/dist/utils/reportCallbacks.d.ts.map +0 -1
- package/dist/utils/reportCallbacks.js.map +0 -1
- package/dist/utils/reportCases.d.ts.map +0 -1
- package/dist/utils/reportCases.js.map +0 -1
- package/dist/utils/reportPosition.d.ts.map +0 -1
- package/dist/utils/reportPosition.js +0 -18
- package/dist/utils/reportPosition.js.map +0 -1
- package/dist/utils/reportProject.d.ts.map +0 -1
- package/dist/utils/reportProject.js.map +0 -1
- package/dist/utils/reportSummary.d.ts.map +0 -1
- package/dist/utils/reportSummary.js.map +0 -1
- package/dist/utils/reportTeam.d.ts.map +0 -1
- package/dist/utils/reportTeam.js.map +0 -1
- package/dist/utils/reportUi.d.ts.map +0 -1
- package/dist/utils/reportUi.js.map +0 -1
- package/dist/utils/reportVisibility.d.ts.map +0 -1
- package/dist/utils/reportVisibility.js.map +0 -1
- package/dist/utils/reportVisual.d.ts.map +0 -1
- package/dist/utils/reportVisual.js.map +0 -1
- package/dist/utils/routeDetailStatus.d.ts.map +0 -1
- package/dist/utils/routeDetailStatus.js.map +0 -1
- package/dist/utils/shortcuts.d.ts.map +0 -1
- package/dist/utils/shortcuts.js.map +0 -1
- package/dist/utils/storage.d.ts.map +0 -1
- package/dist/utils/storage.js.map +0 -1
- package/dist/utils/targetSelector.d.ts.map +0 -1
- package/dist/utils/targetSelector.js.map +0 -1
- package/dist/utils/validateFeedbackImport.d.ts.map +0 -1
- package/dist/utils/validateFeedbackImport.js.map +0 -1
- /package/dist/utils/{feedbackCaseId.js → feedback/feedbackCaseId.js} +0 -0
- /package/dist/utils/{feedbackDeepLink.js → feedback/feedbackDeepLink.js} +0 -0
- /package/dist/utils/{hoverTooltipLayout.d.ts → marker/hoverTooltipLayout.d.ts} +0 -0
- /package/dist/utils/{hoverTooltipLayout.js → marker/hoverTooltipLayout.js} +0 -0
- /package/dist/utils/{markerShape.js → marker/markerShape.js} +0 -0
- /package/dist/utils/{formatStatCount.d.ts → panel/formatStatCount.d.ts} +0 -0
- /package/dist/utils/{formatStatCount.js → panel/formatStatCount.js} +0 -0
- /package/dist/utils/{heatmapActivity.js → panel/heatmapActivity.js} +0 -0
- /package/dist/utils/{panelTypography.d.ts → panel/panelTypography.d.ts} +0 -0
- /package/dist/utils/{panelTypography.js → panel/panelTypography.js} +0 -0
- /package/dist/utils/{cssStepper.d.ts → probe/cssStepper.d.ts} +0 -0
- /package/dist/utils/{cssStepper.js → probe/cssStepper.js} +0 -0
- /package/dist/utils/{pickProbe.js → probe/pickProbe.js} +0 -0
- /package/dist/utils/{pickProbeLayout.d.ts → probe/pickProbeLayout.d.ts} +0 -0
- /package/dist/utils/{pickProbeLayout.js → probe/pickProbeLayout.js} +0 -0
- /package/dist/utils/{pickTargetDeleteAnimation.d.ts → probe/pickTargetDeleteAnimation.d.ts} +0 -0
- /package/dist/utils/{pickTargetInspect.js → probe/pickTargetInspect.js} +0 -0
- /package/dist/utils/{probeColor.d.ts → probe/probeColor.d.ts} +0 -0
- /package/dist/utils/{probeColor.js → probe/probeColor.js} +0 -0
- /package/dist/utils/{probeLayout.js → probe/probeLayout.js} +0 -0
- /package/dist/utils/{probeSessionHistory.js → probe/probeSessionHistory.js} +0 -0
- /package/dist/utils/{projectId.d.ts → report/projectId.d.ts} +0 -0
- /package/dist/utils/{reportCallbacks.js → report/reportCallbacks.js} +0 -0
- /package/dist/utils/{reportCases.js → report/reportCases.js} +0 -0
- /package/dist/utils/{reportProject.js → report/reportProject.js} +0 -0
- /package/dist/utils/{reportVisibility.js → report/reportVisibility.js} +0 -0
- /package/dist/utils/{env.d.ts → shared/env.d.ts} +0 -0
- /package/dist/utils/{env.js → shared/env.js} +0 -0
- /package/dist/utils/{format.js → shared/format.js} +0 -0
- /package/dist/utils/{hexColor.d.ts → shared/hexColor.d.ts} +0 -0
- /package/dist/utils/{hexColor.js → shared/hexColor.js} +0 -0
- /package/dist/utils/{pathname.d.ts → shared/pathname.d.ts} +0 -0
- /package/dist/utils/{pathname.js → shared/pathname.js} +0 -0
- /package/dist/utils/{pathnameNavigation.d.ts → shared/pathnameNavigation.d.ts} +0 -0
- /package/dist/utils/{pathnameNavigation.js → shared/pathnameNavigation.js} +0 -0
- /package/dist/utils/{shortcuts.d.ts → shared/shortcuts.d.ts} +0 -0
- /package/dist/utils/{shortcuts.js → shared/shortcuts.js} +0 -0
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { useCallback, useMemo, useRef, useState } from "react";
|
|
2
|
+
import { findElementByProbeKey, restoreProbeElementOriginal, restoreSavedProbeDeletion, } from "../../utils/probe/pickProbeSession.js";
|
|
3
|
+
import { applyProbeSessionActionBackward, applyProbeSessionActionForward } from "../../utils/probe/probeSessionHistory.js";
|
|
4
|
+
export function usePickProbeSessionHistory({ setSavedProbeEdits, setSavedProbeCompareModeState, }) {
|
|
5
|
+
const [savedProbeDeletions, setSavedProbeDeletions] = useState([]);
|
|
6
|
+
const savedProbeDeletionsRef = useRef(savedProbeDeletions);
|
|
7
|
+
savedProbeDeletionsRef.current = savedProbeDeletions;
|
|
8
|
+
const [probeSessionHistoryState, setProbeSessionHistoryState] = useState({ actions: [], index: -1 });
|
|
9
|
+
const pushProbeSessionAction = useCallback((action) => {
|
|
10
|
+
setProbeSessionHistoryState((current) => {
|
|
11
|
+
const actions = current.actions.slice(0, current.index + 1);
|
|
12
|
+
actions.push(action);
|
|
13
|
+
return {
|
|
14
|
+
actions,
|
|
15
|
+
index: actions.length - 1,
|
|
16
|
+
};
|
|
17
|
+
});
|
|
18
|
+
}, []);
|
|
19
|
+
const undoProbeSessionAction = useCallback(() => {
|
|
20
|
+
setProbeSessionHistoryState((current) => {
|
|
21
|
+
if (current.index < 0) {
|
|
22
|
+
return current;
|
|
23
|
+
}
|
|
24
|
+
const action = current.actions[current.index];
|
|
25
|
+
setSavedProbeEdits((edits) => {
|
|
26
|
+
const next = applyProbeSessionActionBackward(action, {
|
|
27
|
+
edits,
|
|
28
|
+
deletions: savedProbeDeletionsRef.current,
|
|
29
|
+
});
|
|
30
|
+
setSavedProbeDeletions(next.deletions);
|
|
31
|
+
return next.edits;
|
|
32
|
+
});
|
|
33
|
+
return {
|
|
34
|
+
actions: current.actions,
|
|
35
|
+
index: current.index - 1,
|
|
36
|
+
};
|
|
37
|
+
});
|
|
38
|
+
}, [setSavedProbeEdits]);
|
|
39
|
+
const redoProbeSessionAction = useCallback(() => {
|
|
40
|
+
setProbeSessionHistoryState((current) => {
|
|
41
|
+
if (current.index >= current.actions.length - 1) {
|
|
42
|
+
return current;
|
|
43
|
+
}
|
|
44
|
+
const action = current.actions[current.index + 1];
|
|
45
|
+
setSavedProbeEdits((edits) => {
|
|
46
|
+
const next = applyProbeSessionActionForward(action, {
|
|
47
|
+
edits,
|
|
48
|
+
deletions: savedProbeDeletionsRef.current,
|
|
49
|
+
});
|
|
50
|
+
setSavedProbeDeletions(next.deletions);
|
|
51
|
+
return next.edits;
|
|
52
|
+
});
|
|
53
|
+
return {
|
|
54
|
+
actions: current.actions,
|
|
55
|
+
index: current.index + 1,
|
|
56
|
+
};
|
|
57
|
+
});
|
|
58
|
+
}, [setSavedProbeEdits]);
|
|
59
|
+
const revertAllSavedProbeEdits = useCallback(() => {
|
|
60
|
+
setProbeSessionHistoryState({ actions: [], index: -1 });
|
|
61
|
+
setSavedProbeDeletions((deletions) => {
|
|
62
|
+
for (const entry of [...deletions].reverse()) {
|
|
63
|
+
restoreSavedProbeDeletion(entry);
|
|
64
|
+
}
|
|
65
|
+
return [];
|
|
66
|
+
});
|
|
67
|
+
setSavedProbeEdits((current) => {
|
|
68
|
+
for (const entry of Object.values(current)) {
|
|
69
|
+
const element = findElementByProbeKey(entry.elementKey);
|
|
70
|
+
if (element) {
|
|
71
|
+
restoreProbeElementOriginal(element, entry);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
return {};
|
|
75
|
+
});
|
|
76
|
+
setSavedProbeCompareModeState("after");
|
|
77
|
+
}, [setSavedProbeCompareModeState, setSavedProbeEdits]);
|
|
78
|
+
const canUndoProbeSession = probeSessionHistoryState.index >= 0;
|
|
79
|
+
const canRedoProbeSession = probeSessionHistoryState.index < probeSessionHistoryState.actions.length - 1;
|
|
80
|
+
const hasProbeSessionChanges = useMemo(() => probeSessionHistoryState.index >= 0, [probeSessionHistoryState.index]);
|
|
81
|
+
return {
|
|
82
|
+
savedProbeDeletions,
|
|
83
|
+
setSavedProbeDeletions,
|
|
84
|
+
pushProbeSessionAction,
|
|
85
|
+
undoProbeSessionAction,
|
|
86
|
+
redoProbeSessionAction,
|
|
87
|
+
revertAllSavedProbeEdits,
|
|
88
|
+
canUndoProbeSession,
|
|
89
|
+
canRedoProbeSession,
|
|
90
|
+
hasProbeSessionChanges,
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
//# sourceMappingURL=usePickProbeSessionHistory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usePickProbeSessionHistory.js","sourceRoot":"","sources":["../../../src/hooks/report/usePickProbeSessionHistory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAsC,MAAM,OAAO,CAAC;AAEnG,OAAO,EACH,qBAAqB,EACrB,2BAA2B,EAC3B,yBAAyB,GAC5B,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,+BAA+B,EAAE,8BAA8B,EAAE,MAAM,sCAAsC,CAAC;AAOvH,MAAM,UAAU,0BAA0B,CAAC,EACvC,kBAAkB,EAClB,6BAA6B,GACE;IAC/B,MAAM,CAAC,mBAAmB,EAAE,sBAAsB,CAAC,GAAG,QAAQ,CAAuB,EAAE,CAAC,CAAC;IACzF,MAAM,sBAAsB,GAAG,MAAM,CAAC,mBAAmB,CAAC,CAAC;IAC3D,sBAAsB,CAAC,OAAO,GAAG,mBAAmB,CAAC;IACrD,MAAM,CAAC,wBAAwB,EAAE,2BAA2B,CAAC,GAAG,QAAQ,CAGrE,EAAE,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;IAE/B,MAAM,sBAAsB,GAAG,WAAW,CAAC,CAAC,MAA0B,EAAE,EAAE;QACtE,2BAA2B,CAAC,CAAC,OAAO,EAAE,EAAE;YACpC,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,OAAO,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC;YAC5D,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YAErB,OAAO;gBACH,OAAO;gBACP,KAAK,EAAE,OAAO,CAAC,MAAM,GAAG,CAAC;aAC5B,CAAC;QACN,CAAC,CAAC,CAAC;IACP,CAAC,E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K,GAAG,wBAAwB,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC;IAEzG,MAAM,sBAAsB,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,wBAAwB,CAAC,KAAK,IAAI,CAAC,EAAE,CAAC,wBAAwB,CAAC,KAAK,CAAC,CAAC,CAAC;IAEpH,OAAO;QACH,mBAAmB;QACnB,sBAAsB;QACtB,sBAAsB;QACtB,sBAAsB;QACtB,sBAAsB;QACtB,wBAAwB;QACxB,mBAAmB;QACnB,mBAAmB;QACnB,sBAAsB;KACzB,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { type Dispatch, type SetStateAction } from "react";
|
|
2
|
+
import type { ReportMessages } from "../../i18n/types.js";
|
|
3
|
+
import type { ReportFeedback, ReportField, UpdateReportFeedbackPayload } from "../../types/report.js";
|
|
4
|
+
import { type ReportSideEffectCallbacks } from "../../utils/report/reportCallbacks.js";
|
|
5
|
+
export type UseReplyCaseEditParams = {
|
|
6
|
+
reports: ReportFeedback[];
|
|
7
|
+
activeReplyReport: ReportFeedback | null;
|
|
8
|
+
activeReplyReportId: string | null;
|
|
9
|
+
fields: ReportField[];
|
|
10
|
+
messages: ReportMessages;
|
|
11
|
+
updateFeedback: (id: string, payload: UpdateReportFeedbackPayload) => Promise<ReportFeedback>;
|
|
12
|
+
signUpdatePayload: (payload: UpdateReportFeedbackPayload) => Promise<UpdateReportFeedbackPayload>;
|
|
13
|
+
eventCallbacks: ReportSideEffectCallbacks;
|
|
14
|
+
setErrorMessage: Dispatch<SetStateAction<string>>;
|
|
15
|
+
};
|
|
16
|
+
export declare function useReplyCaseEdit({ reports, activeReplyReport, activeReplyReportId, fields, messages, updateFeedback, signUpdatePayload, eventCallbacks, setErrorMessage, }: UseReplyCaseEditParams): {
|
|
17
|
+
beginCaseEdit: (report: ReportFeedback) => void;
|
|
18
|
+
cancelCaseEdit: () => void;
|
|
19
|
+
handleCaseEditSave: () => Promise<void>;
|
|
20
|
+
updateCaseEditDraftCase: (caseId: string, text: string) => void;
|
|
21
|
+
addCaseEditDraftCase: () => void;
|
|
22
|
+
removeCaseEditDraftCase: (caseId: string) => void;
|
|
23
|
+
isCaseEditing: boolean;
|
|
24
|
+
caseEditReportId: string | null;
|
|
25
|
+
caseEditCases: import("../../types/report.js").ReportCase[] | null;
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=useReplyCaseEdit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useReplyCaseEdit.d.ts","sourceRoot":"","sources":["../../../src/hooks/report/useReplyCaseEdit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoC,KAAK,QAAQ,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAC7F,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAC;AAGlG,OAAO,EAAwB,KAAK,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAEzG,MAAM,MAAM,sBAAsB,GAAG;IACjC,OAAO,EAAE,cAAc,EAAE,CAAC;IAC1B,iBAAiB,EAAE,cAAc,GAAG,IAAI,CAAC;IACzC,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,MAAM,EAAE,WAAW,EAAE,CAAC;IACtB,QAAQ,EAAE,cAAc,CAAC;IACzB,cAAc,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,2BAA2B,KAAK,OAAO,CAAC,cAAc,CAAC,CAAC;IAC9F,iBAAiB,EAAE,CAAC,OAAO,EAAE,2BAA2B,KAAK,OAAO,CAAC,2BAA2B,CAAC,CAAC;IAClG,cAAc,EAAE,yBAAyB,CAAC;IAC1C,eAAe,EAAE,QAAQ,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;CACrD,CAAC;AAEF,wBAAgB,gBAAgB,CAAC,EAC7B,OAAO,EACP,iBAAiB,EACjB,mBAAmB,EACnB,MAAM,EACN,QAAQ,EACR,cAAc,EACd,iBAAiB,EACjB,cAAc,EACd,eAAe,GAClB,EAAE,sBAAsB;4BAUR,cAAc;;;sCAa0B,MAAM,QAAQ,MAAM;;sCAcpB,MAAM;;;;EAqE9D"}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { useCallback, useEffect, useState } from "react";
|
|
2
|
+
import { getFieldError } from "../../utils/report/fields.js";
|
|
3
|
+
import { canEditReportCases, createReportCase } from "../../utils/report/reportCases.js";
|
|
4
|
+
import { notifyFeedbackUpdate } from "../../utils/report/reportCallbacks.js";
|
|
5
|
+
export function useReplyCaseEdit({ reports, activeReplyReport, activeReplyReportId, fields, messages, updateFeedback, signUpdatePayload, eventCallbacks, setErrorMessage, }) {
|
|
6
|
+
const [caseEditReportId, setCaseEditReportId] = useState(null);
|
|
7
|
+
const [caseEditDraft, setCaseEditDraft] = useState(null);
|
|
8
|
+
const cancelCaseEdit = useCallback(() => {
|
|
9
|
+
setCaseEditReportId(null);
|
|
10
|
+
setCaseEditDraft(null);
|
|
11
|
+
}, []);
|
|
12
|
+
const beginCaseEdit = useCallback((report) => {
|
|
13
|
+
if (!canEditReportCases(report)) {
|
|
14
|
+
setErrorMessage(messages.errors.archivedReadOnly);
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
setCaseEditReportId(report.id);
|
|
18
|
+
setCaseEditDraft(report.cases.map((item) => ({ ...item })));
|
|
19
|
+
setErrorMessage("");
|
|
20
|
+
}, [messages.errors.archivedReadOnly, setErrorMessage]);
|
|
21
|
+
const updateCaseEditDraftCase = useCallback((caseId, text) => {
|
|
22
|
+
setCaseEditDraft((current) => {
|
|
23
|
+
if (!current) {
|
|
24
|
+
return current;
|
|
25
|
+
}
|
|
26
|
+
return current.map((item) => (item.id === caseId ? { ...item, text } : item));
|
|
27
|
+
});
|
|
28
|
+
}, []);
|
|
29
|
+
const addCaseEditDraftCase = useCallback(() => {
|
|
30
|
+
setCaseEditDraft((current) => (current ? [...current, createReportCase("")] : current));
|
|
31
|
+
}, []);
|
|
32
|
+
const removeCaseEditDraftCase = useCallback((caseId) => {
|
|
33
|
+
setCaseEditDraft((current) => {
|
|
34
|
+
if (!current || current.length <= 1) {
|
|
35
|
+
return current;
|
|
36
|
+
}
|
|
37
|
+
return current.filter((item) => item.id !== caseId);
|
|
38
|
+
});
|
|
39
|
+
}, []);
|
|
40
|
+
const handleCaseEditSave = async () => {
|
|
41
|
+
if (!caseEditReportId || !caseEditDraft) {
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
const report = reports.find((item) => item.id === caseEditReportId) ?? activeReplyReport;
|
|
45
|
+
if (!report) {
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
if (!canEditReportCases(report)) {
|
|
49
|
+
setErrorMessage(messages.errors.archivedNotEditable);
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
const nextError = getFieldError(caseEditDraft, report.field_values, fields, messages.errors);
|
|
53
|
+
if (nextError) {
|
|
54
|
+
setErrorMessage(nextError);
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
try {
|
|
58
|
+
const cases = caseEditDraft.map((item) => ({
|
|
59
|
+
...item,
|
|
60
|
+
text: item.text.trim(),
|
|
61
|
+
updated_at: new Date().toISOString(),
|
|
62
|
+
}));
|
|
63
|
+
const updatedFeedback = await updateFeedback(report.id, await signUpdatePayload({ cases }));
|
|
64
|
+
await notifyFeedbackUpdate(eventCallbacks, updatedFeedback);
|
|
65
|
+
cancelCaseEdit();
|
|
66
|
+
setErrorMessage("");
|
|
67
|
+
}
|
|
68
|
+
catch (nextError) {
|
|
69
|
+
setErrorMessage(nextError instanceof Error ? nextError.message : messages.errors.updateFeedbackFailed);
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
const isCaseEditing = Boolean(caseEditReportId && caseEditDraft);
|
|
73
|
+
const caseEditCases = caseEditReportId === activeReplyReport?.id ? caseEditDraft : null;
|
|
74
|
+
useEffect(() => {
|
|
75
|
+
if (caseEditReportId && activeReplyReportId && caseEditReportId !== activeReplyReportId) {
|
|
76
|
+
cancelCaseEdit();
|
|
77
|
+
}
|
|
78
|
+
}, [activeReplyReportId, cancelCaseEdit, caseEditReportId]);
|
|
79
|
+
return {
|
|
80
|
+
beginCaseEdit,
|
|
81
|
+
cancelCaseEdit,
|
|
82
|
+
handleCaseEditSave,
|
|
83
|
+
updateCaseEditDraftCase,
|
|
84
|
+
addCaseEditDraftCase,
|
|
85
|
+
removeCaseEditDraftCase,
|
|
86
|
+
isCaseEditing,
|
|
87
|
+
caseEditReportId,
|
|
88
|
+
caseEditCases,
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
//# sourceMappingURL=useReplyCaseEdit.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useReplyCaseEdit.js","sourceRoot":"","sources":["../../../src/hooks/report/useReplyCaseEdit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAsC,MAAM,OAAO,CAAC;AAG7F,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACrF,OAAO,EAAE,oBAAoB,EAAkC,MAAM,mCAAmC,CAAC;AAczG,MAAM,UAAU,gBAAgB,CAAC,EAC7B,OAAO,EACP,iBAAiB,EACjB,mBAAmB,EACnB,MAAM,EACN,QAAQ,EACR,cAAc,EACd,iBAAiB,EACjB,cAAc,EACd,eAAe,GACM;IACrB,MAAM,CAAC,gBAAgB,EAAE,mBAAmB,CAAC,GAAG,QAAQ,CAAgB,IAAI,CAAC,CAAC;IAC9E,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,GAAG,QAAQ,CAAiC,IAAI,CAAC,CAAC;IAEzF,MAAM,c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
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import type { CreateReplyPayload, CreateReportFeedbackPayload, FivePixelsMode, ReportAuthor, ReportIdentify, UpdateReportFeedbackPayload } from "../../types/report.js";
|
|
2
|
+
export type PanelView = "onboarding" | "setup-complete" | "key-issue" | "ready";
|
|
3
|
+
type AuthDiagnosticsField = "projectId" | "environment" | "authorId" | "authorName" | "publicKey";
|
|
4
|
+
type AuthDiagnosticsStatus = "matched" | "failed" | "disabled";
|
|
5
|
+
type AuthDiagnosticsReason = "reviewer-key-not-enforced" | "missing-personal-key" | "invalid-personal-key-format" | "project-mismatch" | "environment-mismatch" | "missing-team-author" | "author-id-mismatch" | "author-name-mismatch" | "missing-team-public-key" | "public-key-mismatch" | "matched";
|
|
6
|
+
type AuthDiagnosticsItem = {
|
|
7
|
+
field: AuthDiagnosticsField;
|
|
8
|
+
expected: string | null;
|
|
9
|
+
actual: string | null;
|
|
10
|
+
matched: boolean;
|
|
11
|
+
};
|
|
12
|
+
export type AuthDiagnostics = {
|
|
13
|
+
status: AuthDiagnosticsStatus;
|
|
14
|
+
reason: AuthDiagnosticsReason;
|
|
15
|
+
items: AuthDiagnosticsItem[];
|
|
16
|
+
expected: Record<AuthDiagnosticsField, string | null>;
|
|
17
|
+
actual: Record<AuthDiagnosticsField, string | null>;
|
|
18
|
+
};
|
|
19
|
+
export type UseReportAuthSessionParams = {
|
|
20
|
+
projectId: string;
|
|
21
|
+
environment?: string;
|
|
22
|
+
authors: ReportAuthor[];
|
|
23
|
+
identify?: ReportIdentify;
|
|
24
|
+
requireReviewerKey: boolean;
|
|
25
|
+
pixelsMode: FivePixelsMode;
|
|
26
|
+
};
|
|
27
|
+
export declare function useReportAuthSession({ projectId, environment, authors, identify, requireReviewerKey, pixelsMode, }: UseReportAuthSessionParams): {
|
|
28
|
+
selfProfile: import("../useSelfProfile.js").SelfProfile | null;
|
|
29
|
+
saveSelfProfile: (profile: import("../useSelfProfile.js").SelfProfile) => void;
|
|
30
|
+
markOnboardingComplete: () => void;
|
|
31
|
+
requiresReviewerKey: boolean;
|
|
32
|
+
isPresentationMode: boolean;
|
|
33
|
+
personalKey: string | null;
|
|
34
|
+
publicKey: string | null;
|
|
35
|
+
personalKeyRequired: boolean;
|
|
36
|
+
personalKeyPendingRegistration: boolean;
|
|
37
|
+
personalKeyCandidates: ReportAuthor[];
|
|
38
|
+
authorizedAuthors: ReportIdentify[];
|
|
39
|
+
issuePersonalKey: (authorId?: string) => Promise<{
|
|
40
|
+
privateKey: string;
|
|
41
|
+
publicKey: string;
|
|
42
|
+
} | null>;
|
|
43
|
+
issueSelfKey: (authorId: string, authorName?: string) => Promise<{
|
|
44
|
+
privateKey: string;
|
|
45
|
+
publicKey: string;
|
|
46
|
+
}>;
|
|
47
|
+
rotatePersonalKey: () => Promise<{
|
|
48
|
+
privateKey: string;
|
|
49
|
+
publicKey: string;
|
|
50
|
+
} | null>;
|
|
51
|
+
insertPersonalKey: (key: string) => Promise<{
|
|
52
|
+
saved: false;
|
|
53
|
+
reason: "invalid";
|
|
54
|
+
authorized?: undefined;
|
|
55
|
+
} | {
|
|
56
|
+
saved: false;
|
|
57
|
+
reason: "project-mismatch";
|
|
58
|
+
authorized?: undefined;
|
|
59
|
+
} | {
|
|
60
|
+
saved: true;
|
|
61
|
+
authorized: boolean;
|
|
62
|
+
reason?: undefined;
|
|
63
|
+
}>;
|
|
64
|
+
clearPersonalKey: () => void;
|
|
65
|
+
signPayload: (action: import("../../types/report.js").ReportAuthAction, payload: unknown) => Promise<import("../../types/report.js").ReportAuthProof | null>;
|
|
66
|
+
activeIdentify: ReportIdentify;
|
|
67
|
+
presentationViewers: import("../../utils/report/reportTeam.js").PresentationViewer[];
|
|
68
|
+
presentationViewerId: string | null;
|
|
69
|
+
setPresentationViewerId: import("react").Dispatch<import("react").SetStateAction<string | null>>;
|
|
70
|
+
resolvedPresentationViewerId: string | null;
|
|
71
|
+
applyPresentationViewer: (viewerId: string | null) => Promise<void>;
|
|
72
|
+
authorSelectionLocked: boolean;
|
|
73
|
+
hasPersistedPersonalKey: boolean;
|
|
74
|
+
isSelfAuthenticated: boolean;
|
|
75
|
+
authDiagnostics: AuthDiagnostics;
|
|
76
|
+
panelView: PanelView;
|
|
77
|
+
completeOnboarding: ({ name }: {
|
|
78
|
+
name: string;
|
|
79
|
+
}) => Promise<{
|
|
80
|
+
authorId: string;
|
|
81
|
+
privateKey: string;
|
|
82
|
+
publicKey: string;
|
|
83
|
+
}>;
|
|
84
|
+
restoreFromBackup: (backupKey: string) => Promise<{
|
|
85
|
+
restored: false;
|
|
86
|
+
reason: "project-mismatch" | "invalid";
|
|
87
|
+
name?: undefined;
|
|
88
|
+
authorized?: undefined;
|
|
89
|
+
} | {
|
|
90
|
+
restored: false;
|
|
91
|
+
reason: "unauthorized";
|
|
92
|
+
name?: undefined;
|
|
93
|
+
authorized?: undefined;
|
|
94
|
+
} | {
|
|
95
|
+
restored: true;
|
|
96
|
+
name: string | null;
|
|
97
|
+
authorized: boolean;
|
|
98
|
+
reason?: undefined;
|
|
99
|
+
}>;
|
|
100
|
+
skipOnboarding: () => void;
|
|
101
|
+
sessionActor: import("../../utils/report/reportTeam.js").SessionActor | null;
|
|
102
|
+
signCreatePayload: (payload: CreateReportFeedbackPayload) => Promise<CreateReportFeedbackPayload>;
|
|
103
|
+
signUpdatePayload: (payload: UpdateReportFeedbackPayload) => Promise<Partial<Pick<import("../../types/report.js").ReportFeedback, "cases" | "status" | "auth" | "replies" | "report_id" | "report_type" | "category" | "field_values" | "integrations">>>;
|
|
104
|
+
signReplyPayload: (payload: CreateReplyPayload) => Promise<CreateReplyPayload>;
|
|
105
|
+
};
|
|
106
|
+
export {};
|
|
107
|
+
//# sourceMappingURL=useReportAuthSession.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useReportAuthSession.d.ts","sourceRoot":"","sources":["../../../src/hooks/report/useReportAuthSession.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EACR,kB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cAAc,CAAC;CAC9B,CAAC;AAEF,wBAAgB,oBAAoB,CAAC,EACjC,SAAS,EACT,WAAW,EACX,OAAO,EACP,QAAQ,EACR,kBAAkB,EAClB,UAAU,GACb,EAAE,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAwOJ,MAAM,GAAG,IAAI;;;;;;mCA9Eb;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE;;;;;mCAcf,MAAM;;;;;;;;;;;;;;;;;;iCAwCR,2BAA2B;iCAQ3B,2BAA2B;gCAQ3B,kBAAkB;EAiFzC"}
|
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
import { useCallback, useEffect, useMemo, useState } from "react";
|
|
2
|
+
import { usePersonalKey } from "../usePersonalKey.js";
|
|
3
|
+
import { useSelfProfile } from "../useSelfProfile.js";
|
|
4
|
+
import { getAuthorIdFromPrivateKey, getAuthorNameFromPrivateKey, hasStoredPersonalKey, parsePrivateKeyBundle, publicKeysMatch, serializePublicKey, } from "../../utils/auth/personalKey.js";
|
|
5
|
+
import { buildPresentationViewers, resolveSessionActor } from "../../utils/report/reportTeam.js";
|
|
6
|
+
export function useReportAuthSession({ projectId, environment, authors, identify, requireReviewerKey, pixelsMode, }) {
|
|
7
|
+
const { selfProfile, saveSelfProfile, markOnboardingComplete } = useSelfProfile(projectId, environment);
|
|
8
|
+
const requiresReviewerKey = requireReviewerKey || authors.some((author) => Boolean(author.publicKey));
|
|
9
|
+
const isPresentationMode = pixelsMode === "presentation";
|
|
10
|
+
const { personalKey, publicKey, personalKeyRequired, personalKeyPendingRegistration, personalKeyCandidates, authorizedAuthors, issuePersonalKey, issueSelfKey, rotatePersonalKey, insertPersonalKey, clearPersonalKey, signPayload, } = usePersonalKey({
|
|
11
|
+
enabled: isPresentationMode || !requiresReviewerKey || hasStoredPersonalKey(projectId, environment),
|
|
12
|
+
requireKey: requiresReviewerKey,
|
|
13
|
+
projectId,
|
|
14
|
+
environment,
|
|
15
|
+
identify,
|
|
16
|
+
authors,
|
|
17
|
+
});
|
|
18
|
+
const activeIdentify = authorizedAuthors[0] ??
|
|
19
|
+
(selfProfile?.authorId && selfProfile.name ? { id: selfProfile.authorId, name: selfProfile.name } : undefined) ??
|
|
20
|
+
(personalKeyRequired ? undefined : identify);
|
|
21
|
+
const presentationViewers = useMemo(() => buildPresentationViewers(identify, authors), [authors, identify]);
|
|
22
|
+
const [presentationViewerId, setPresentationViewerId] = useState(null);
|
|
23
|
+
const resolvedPresentationViewerId = useMemo(() => {
|
|
24
|
+
if (!isPresentationMode || presentationViewers.length === 0) {
|
|
25
|
+
return null;
|
|
26
|
+
}
|
|
27
|
+
if (presentationViewerId && presentationViewers.some((viewer) => viewer.id === presentationViewerId)) {
|
|
28
|
+
return presentationViewerId;
|
|
29
|
+
}
|
|
30
|
+
return presentationViewers[0]?.id ?? null;
|
|
31
|
+
}, [isPresentationMode, presentationViewerId, presentationViewers]);
|
|
32
|
+
const authorSelectionLocked = Boolean(personalKey);
|
|
33
|
+
const hasPersistedPersonalKey = hasStoredPersonalKey(projectId, environment);
|
|
34
|
+
const isSelfAuthenticated = hasPersistedPersonalKey;
|
|
35
|
+
const authDiagnostics = useMemo(() => {
|
|
36
|
+
const parsedBundle = personalKey ? parsePrivateKeyBundle(personalKey) : null;
|
|
37
|
+
const teamReviewer = parsedBundle ? authors.find((author) => author.id === parsedBundle.authorId) : null;
|
|
38
|
+
const localAuthorName = (parsedBundle?.authorName ?? selfProfile?.name ?? "").trim();
|
|
39
|
+
const expected = {
|
|
40
|
+
projectId,
|
|
41
|
+
environment: environment ?? "",
|
|
42
|
+
authorId: teamReviewer?.id ?? null,
|
|
43
|
+
authorName: teamReviewer?.name?.trim() || null,
|
|
44
|
+
publicKey: teamReviewer?.publicKey?.trim() || null,
|
|
45
|
+
};
|
|
46
|
+
const actual = {
|
|
47
|
+
projectId: parsedBundle?.projectId ?? null,
|
|
48
|
+
environment: parsedBundle?.environment ?? "",
|
|
49
|
+
authorId: parsedBundle?.authorId ?? null,
|
|
50
|
+
authorName: localAuthorName || null,
|
|
51
|
+
publicKey: parsedBundle ? serializePublicKey(parsedBundle.publicKey) : null,
|
|
52
|
+
};
|
|
53
|
+
const items = [
|
|
54
|
+
{ field: "projectId", expected: expected.projectId, actual: actual.projectId, matched: expected.projectId === actual.projectId },
|
|
55
|
+
{
|
|
56
|
+
field: "environment",
|
|
57
|
+
expected: expected.environment,
|
|
58
|
+
actual: actual.environment,
|
|
59
|
+
matched: (expected.environment ?? "") === (actual.environment ?? ""),
|
|
60
|
+
},
|
|
61
|
+
{ field: "authorId", expected: expected.authorId, actual: actual.authorId, matched: expected.authorId === actual.authorId },
|
|
62
|
+
{
|
|
63
|
+
field: "authorName",
|
|
64
|
+
expected: expected.authorName,
|
|
65
|
+
actual: actual.authorName,
|
|
66
|
+
matched: Boolean(expected.authorName && actual.authorName && expected.authorName === actual.authorName),
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
field: "publicKey",
|
|
70
|
+
expected: expected.publicKey,
|
|
71
|
+
actual: actual.publicKey,
|
|
72
|
+
matched: Boolean(expected.publicKey && actual.publicKey && publicKeysMatch(expected.publicKey, actual.publicKey)),
|
|
73
|
+
},
|
|
74
|
+
];
|
|
75
|
+
if (!requiresReviewerKey) {
|
|
76
|
+
return { status: "disabled", reason: "reviewer-key-not-enforced", items, expected, actual };
|
|
77
|
+
}
|
|
78
|
+
if (!personalKey) {
|
|
79
|
+
return { status: "failed", reason: "missing-personal-key", items, expected, actual };
|
|
80
|
+
}
|
|
81
|
+
if (!parsedBundle) {
|
|
82
|
+
return { status: "failed", reason: "invalid-personal-key-format", items, expected, actual };
|
|
83
|
+
}
|
|
84
|
+
if (parsedBundle.projectId !== projectId) {
|
|
85
|
+
return { status: "failed", reason: "project-mismatch", items, expected, actual };
|
|
86
|
+
}
|
|
87
|
+
if ((parsedBundle.environment ?? "") !== (environment ?? "")) {
|
|
88
|
+
return { status: "failed", reason: "environment-mismatch", items, expected, actual };
|
|
89
|
+
}
|
|
90
|
+
if (!teamReviewer) {
|
|
91
|
+
return { status: "failed", reason: "missing-team-author", items, expected, actual };
|
|
92
|
+
}
|
|
93
|
+
if (expected.authorName && actual.authorName && expected.authorName !== actual.authorName) {
|
|
94
|
+
return { status: "failed", reason: "author-name-mismatch", items, expected, actual };
|
|
95
|
+
}
|
|
96
|
+
if (!teamReviewer.publicKey?.trim()) {
|
|
97
|
+
return { status: "failed", reason: "missing-team-public-key", items, expected, actual };
|
|
98
|
+
}
|
|
99
|
+
if (!actual.publicKey || !publicKeysMatch(teamReviewer.publicKey, actual.publicKey)) {
|
|
100
|
+
return { status: "failed", reason: "public-key-mismatch", items, expected, actual };
|
|
101
|
+
}
|
|
102
|
+
return { status: "matched", reason: "matched", items, expected, actual };
|
|
103
|
+
}, [authors, environment, personalKey, projectId, requiresReviewerKey, selfProfile?.name]);
|
|
104
|
+
const panelView = useMemo(() => {
|
|
105
|
+
if (isPresentationMode || !requiresReviewerKey) {
|
|
106
|
+
return "ready";
|
|
107
|
+
}
|
|
108
|
+
if (!hasPersistedPersonalKey) {
|
|
109
|
+
return "onboarding";
|
|
110
|
+
}
|
|
111
|
+
if (selfProfile && !selfProfile.completed) {
|
|
112
|
+
return "setup-complete";
|
|
113
|
+
}
|
|
114
|
+
const parsedBundle = personalKey ? parsePrivateKeyBundle(personalKey) : null;
|
|
115
|
+
const teamReviewer = parsedBundle ? authors.find((author) => author.id === parsedBundle.authorId) : null;
|
|
116
|
+
if (!teamReviewer) {
|
|
117
|
+
return "setup-complete";
|
|
118
|
+
}
|
|
119
|
+
if (authDiagnostics.status === "matched") {
|
|
120
|
+
return "ready";
|
|
121
|
+
}
|
|
122
|
+
return "key-issue";
|
|
123
|
+
}, [authDiagnostics.status, authors, hasPersistedPersonalKey, isPresentationMode, personalKey, requiresReviewerKey, selfProfile]);
|
|
124
|
+
useEffect(() => {
|
|
125
|
+
if (selfProfile && !selfProfile.completed && hasPersistedPersonalKey && authorizedAuthors.length > 0) {
|
|
126
|
+
markOnboardingComplete();
|
|
127
|
+
}
|
|
128
|
+
}, [authorizedAuthors.length, hasPersistedPersonalKey, markOnboardingComplete, selfProfile]);
|
|
129
|
+
const completeOnboarding = useCallback(async ({ name }) => {
|
|
130
|
+
const trimmedName = name.trim();
|
|
131
|
+
const authorId = typeof crypto !== "undefined" && typeof crypto.randomUUID === "function"
|
|
132
|
+
? crypto.randomUUID()
|
|
133
|
+
: `self-${Date.now()}-${Math.random().toString(16).slice(2)}`;
|
|
134
|
+
const issued = await issueSelfKey(authorId, trimmedName);
|
|
135
|
+
saveSelfProfile({ name: trimmedName, authorId, completed: false });
|
|
136
|
+
return { ...issued, authorId };
|
|
137
|
+
}, [issueSelfKey, saveSelfProfile]);
|
|
138
|
+
const restoreFromBackup = useCallback(async (backupKey) => {
|
|
139
|
+
const result = await insertPersonalKey(backupKey);
|
|
140
|
+
if (!result.saved) {
|
|
141
|
+
return { restored: false, reason: result.reason };
|
|
142
|
+
}
|
|
143
|
+
if (!requiresReviewerKey && !result.authorized) {
|
|
144
|
+
return { restored: false, reason: "unauthorized" };
|
|
145
|
+
}
|
|
146
|
+
const authorId = getAuthorIdFromPrivateKey(backupKey);
|
|
147
|
+
const restoredName = getAuthorNameFromPrivateKey(backupKey);
|
|
148
|
+
saveSelfProfile({
|
|
149
|
+
name: restoredName ?? "",
|
|
150
|
+
authorId: authorId ?? "",
|
|
151
|
+
completed: result.authorized || !requiresReviewerKey,
|
|
152
|
+
});
|
|
153
|
+
return { restored: true, name: restoredName, authorized: result.authorized };
|
|
154
|
+
}, [insertPersonalKey, requiresReviewerKey, saveSelfProfile]);
|
|
155
|
+
const skipOnboarding = useCallback(() => {
|
|
156
|
+
markOnboardingComplete();
|
|
157
|
+
}, [markOnboardingComplete]);
|
|
158
|
+
const sessionActor = useMemo(() => resolveSessionActor({
|
|
159
|
+
isPresentationMode,
|
|
160
|
+
presentationViewers,
|
|
161
|
+
presentationViewerId: resolvedPresentationViewerId,
|
|
162
|
+
activeIdentify,
|
|
163
|
+
}), [activeIdentify, isPresentationMode, presentationViewers, resolvedPresentationViewerId]);
|
|
164
|
+
const signCreatePayload = useCallback(async (payload) => {
|
|
165
|
+
const auth = await signPayload("feedback:create", payload);
|
|
166
|
+
return auth ? { ...payload, auth } : payload;
|
|
167
|
+
}, [signPayload]);
|
|
168
|
+
const signUpdatePayload = useCallback(async (payload) => {
|
|
169
|
+
const auth = await signPayload("feedback:update", payload);
|
|
170
|
+
return auth ? { ...payload, auth } : payload;
|
|
171
|
+
}, [signPayload]);
|
|
172
|
+
const signReplyPayload = useCallback(async (payload) => {
|
|
173
|
+
const auth = await signPayload("reply:create", payload);
|
|
174
|
+
return auth ? { ...payload, auth } : payload;
|
|
175
|
+
}, [signPayload]);
|
|
176
|
+
const applyPresentationViewer = useCallback(async (viewerId) => {
|
|
177
|
+
if (!isPresentationMode) {
|
|
178
|
+
return;
|
|
179
|
+
}
|
|
180
|
+
const viewer = presentationViewers.find((item) => item.id === viewerId) ?? presentationViewers[0];
|
|
181
|
+
if (!viewer) {
|
|
182
|
+
return;
|
|
183
|
+
}
|
|
184
|
+
setPresentationViewerId(viewer.id);
|
|
185
|
+
saveSelfProfile({
|
|
186
|
+
name: viewer.name,
|
|
187
|
+
authorId: viewer.id,
|
|
188
|
+
completed: true,
|
|
189
|
+
});
|
|
190
|
+
if (viewer.privateKey) {
|
|
191
|
+
await insertPersonalKey(viewer.privateKey);
|
|
192
|
+
return;
|
|
193
|
+
}
|
|
194
|
+
clearPersonalKey();
|
|
195
|
+
}, [clearPersonalKey, insertPersonalKey, isPresentationMode, presentationViewers, saveSelfProfile]);
|
|
196
|
+
useEffect(() => {
|
|
197
|
+
if (!isPresentationMode || presentationViewers.length === 0 || !resolvedPresentationViewerId) {
|
|
198
|
+
return;
|
|
199
|
+
}
|
|
200
|
+
void applyPresentationViewer(resolvedPresentationViewerId);
|
|
201
|
+
}, [applyPresentationViewer, isPresentationMode, presentationViewers.length, resolvedPresentationViewerId]);
|
|
202
|
+
return {
|
|
203
|
+
selfProfile,
|
|
204
|
+
saveSelfProfile,
|
|
205
|
+
markOnboardingComplete,
|
|
206
|
+
requiresReviewerKey,
|
|
207
|
+
isPresentationMode,
|
|
208
|
+
personalKey,
|
|
209
|
+
publicKey,
|
|
210
|
+
personalKeyRequired,
|
|
211
|
+
personalKeyPendingRegistration,
|
|
212
|
+
personalKeyCandidates,
|
|
213
|
+
authorizedAuthors,
|
|
214
|
+
issuePersonalKey,
|
|
215
|
+
issueSelfKey,
|
|
216
|
+
rotatePersonalKey,
|
|
217
|
+
insertPersonalKey,
|
|
218
|
+
clearPersonalKey,
|
|
219
|
+
signPayload,
|
|
220
|
+
activeIdentify,
|
|
221
|
+
presentationViewers,
|
|
222
|
+
presentationViewerId,
|
|
223
|
+
setPresentationViewerId,
|
|
224
|
+
resolvedPresentationViewerId,
|
|
225
|
+
applyPresentationViewer,
|
|
226
|
+
authorSelectionLocked,
|
|
227
|
+
hasPersistedPersonalKey,
|
|
228
|
+
isSelfAuthenticated,
|
|
229
|
+
authDiagnostics,
|
|
230
|
+
panelView,
|
|
231
|
+
completeOnboarding,
|
|
232
|
+
restoreFromBackup,
|
|
233
|
+
skipOnboarding,
|
|
234
|
+
sessionActor,
|
|
235
|
+
signCreatePayload,
|
|
236
|
+
signUpdatePayload,
|
|
237
|
+
signReplyPayload,
|
|
238
|
+
};
|
|
239
|
+
}
|
|
240
|
+
//# sourceMappingURL=useReportAuthSession.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useReportAuthSession.js","sourceRoot":"","sources":["../../../src/hooks/report/useReportAuthSession.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,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