@fivepixels-js/react 0.1.6 → 0.2.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.
Files changed (667) hide show
  1. package/README.md +56 -3
  2. package/dist/components/icons/Icons.d.ts +34 -0
  3. package/dist/components/icons/Icons.d.ts.map +1 -1
  4. package/dist/components/icons/Icons.js +67 -13
  5. package/dist/components/icons/Icons.js.map +1 -1
  6. package/dist/components/icons/ProbeLayoutIcons.d.ts +16 -0
  7. package/dist/components/icons/ProbeLayoutIcons.d.ts.map +1 -0
  8. package/dist/components/icons/ProbeLayoutIcons.js +62 -0
  9. package/dist/components/icons/ProbeLayoutIcons.js.map +1 -0
  10. package/dist/components/overlay/PickTargetCompareChip.d.ts +7 -0
  11. package/dist/components/overlay/PickTargetCompareChip.d.ts.map +1 -0
  12. package/dist/components/overlay/PickTargetCompareChip.js +35 -0
  13. package/dist/components/overlay/PickTargetCompareChip.js.map +1 -0
  14. package/dist/components/overlay/PickTargetCompareSegment.d.ts +12 -0
  15. package/dist/components/overlay/PickTargetCompareSegment.d.ts.map +1 -0
  16. package/dist/components/overlay/PickTargetCompareSegment.js +17 -0
  17. package/dist/components/overlay/PickTargetCompareSegment.js.map +1 -0
  18. package/dist/components/overlay/PickTargetContextMenu.d.ts +8 -0
  19. package/dist/components/overlay/PickTargetContextMenu.d.ts.map +1 -0
  20. package/dist/components/overlay/PickTargetContextMenu.js +30 -0
  21. package/dist/components/overlay/PickTargetContextMenu.js.map +1 -0
  22. package/dist/components/overlay/PickTargetHoverTooltip.d.ts +7 -0
  23. package/dist/components/overlay/PickTargetHoverTooltip.d.ts.map +1 -0
  24. package/dist/components/overlay/PickTargetHoverTooltip.js +69 -0
  25. package/dist/components/overlay/PickTargetHoverTooltip.js.map +1 -0
  26. package/dist/components/overlay/PickTargetProbePanel.d.ts +2 -0
  27. package/dist/components/overlay/PickTargetProbePanel.d.ts.map +1 -0
  28. package/dist/components/overlay/PickTargetProbePanel.js +106 -0
  29. package/dist/components/overlay/PickTargetProbePanel.js.map +1 -0
  30. package/dist/components/overlay/PickTargetSavedBadges.d.ts +2 -0
  31. package/dist/components/overlay/PickTargetSavedBadges.d.ts.map +1 -0
  32. package/dist/components/overlay/PickTargetSavedBadges.js +63 -0
  33. package/dist/components/overlay/PickTargetSavedBadges.js.map +1 -0
  34. package/dist/components/overlay/ProbeLayoutControls.d.ts +11 -0
  35. package/dist/components/overlay/ProbeLayoutControls.d.ts.map +1 -0
  36. package/dist/components/overlay/ProbeLayoutControls.js +82 -0
  37. package/dist/components/overlay/ProbeLayoutControls.js.map +1 -0
  38. package/dist/components/overlay/ReportOverlayLayer.d.ts.map +1 -1
  39. package/dist/components/overlay/ReportOverlayLayer.js +16 -2
  40. package/dist/components/overlay/ReportOverlayLayer.js.map +1 -1
  41. package/dist/components/overlay/TargetHighlights.d.ts +7 -2
  42. package/dist/components/overlay/TargetHighlights.d.ts.map +1 -1
  43. package/dist/components/overlay/TargetHighlights.js +18 -14
  44. package/dist/components/overlay/TargetHighlights.js.map +1 -1
  45. package/dist/components/panel/AppearanceThemePicker.d.ts +15 -0
  46. package/dist/components/panel/AppearanceThemePicker.d.ts.map +1 -0
  47. package/dist/components/panel/AppearanceThemePicker.js +30 -0
  48. package/dist/components/panel/AppearanceThemePicker.js.map +1 -0
  49. package/dist/components/panel/DiscreteScaleDial.d.ts +10 -0
  50. package/dist/components/panel/DiscreteScaleDial.d.ts.map +1 -0
  51. package/dist/components/panel/DiscreteScaleDial.js +14 -0
  52. package/dist/components/panel/DiscreteScaleDial.js.map +1 -0
  53. package/dist/components/panel/DraftProbeSummaryBanner.d.ts +2 -0
  54. package/dist/components/panel/DraftProbeSummaryBanner.d.ts.map +1 -0
  55. package/dist/components/panel/DraftProbeSummaryBanner.js +10 -0
  56. package/dist/components/panel/DraftProbeSummaryBanner.js.map +1 -0
  57. package/dist/components/panel/FeedbackActivityHeatmap.d.ts +2 -0
  58. package/dist/components/panel/FeedbackActivityHeatmap.d.ts.map +1 -0
  59. package/dist/components/panel/FeedbackActivityHeatmap.js +172 -0
  60. package/dist/components/panel/FeedbackActivityHeatmap.js.map +1 -0
  61. package/dist/components/panel/HexColorField.d.ts +9 -0
  62. package/dist/components/panel/HexColorField.d.ts.map +1 -0
  63. package/dist/components/panel/HexColorField.js +23 -0
  64. package/dist/components/panel/HexColorField.js.map +1 -0
  65. package/dist/components/panel/MarkerShapePicker.d.ts +10 -0
  66. package/dist/components/panel/MarkerShapePicker.d.ts.map +1 -0
  67. package/dist/components/panel/MarkerShapePicker.js +26 -0
  68. package/dist/components/panel/MarkerShapePicker.js.map +1 -0
  69. package/dist/components/panel/PanelDropdownMenu.d.ts.map +1 -1
  70. package/dist/components/panel/PanelDropdownMenu.js +25 -14
  71. package/dist/components/panel/PanelDropdownMenu.js.map +1 -1
  72. package/dist/components/panel/PanelKeyGate.d.ts +7 -0
  73. package/dist/components/panel/PanelKeyGate.d.ts.map +1 -0
  74. package/dist/components/panel/PanelKeyGate.js +38 -0
  75. package/dist/components/panel/PanelKeyGate.js.map +1 -0
  76. package/dist/components/panel/PanelOnboarding.d.ts +2 -0
  77. package/dist/components/panel/PanelOnboarding.d.ts.map +1 -0
  78. package/dist/components/panel/PanelOnboarding.js +115 -0
  79. package/dist/components/panel/PanelOnboarding.js.map +1 -0
  80. package/dist/components/panel/PanelPresentationSwitch.d.ts +2 -0
  81. package/dist/components/panel/PanelPresentationSwitch.d.ts.map +1 -0
  82. package/dist/components/panel/PanelPresentationSwitch.js +40 -0
  83. package/dist/components/panel/PanelPresentationSwitch.js.map +1 -0
  84. package/dist/components/panel/PanelProjectFooter.d.ts +2 -0
  85. package/dist/components/panel/PanelProjectFooter.d.ts.map +1 -0
  86. package/dist/components/panel/PanelProjectFooter.js +7 -0
  87. package/dist/components/panel/PanelProjectFooter.js.map +1 -0
  88. package/dist/components/panel/PanelRoleSwitch.d.ts +2 -0
  89. package/dist/components/panel/PanelRoleSwitch.d.ts.map +1 -0
  90. package/dist/components/panel/PanelRoleSwitch.js +21 -0
  91. package/dist/components/panel/PanelRoleSwitch.js.map +1 -0
  92. package/dist/components/panel/PanelSettings.d.ts +21 -0
  93. package/dist/components/panel/PanelSettings.d.ts.map +1 -0
  94. package/dist/components/panel/PanelSettings.js +103 -0
  95. package/dist/components/panel/PanelSettings.js.map +1 -0
  96. package/dist/components/panel/PanelTabSelector.d.ts +13 -0
  97. package/dist/components/panel/PanelTabSelector.d.ts.map +1 -0
  98. package/dist/components/panel/PanelTabSelector.js +44 -0
  99. package/dist/components/panel/PanelTabSelector.js.map +1 -0
  100. package/dist/components/panel/ProbeEditModeBanner.d.ts +2 -0
  101. package/dist/components/panel/ProbeEditModeBanner.d.ts.map +1 -0
  102. package/dist/components/panel/ProbeEditModeBanner.js +22 -0
  103. package/dist/components/panel/ProbeEditModeBanner.js.map +1 -0
  104. package/dist/components/panel/ReportAuthDiagnostics.d.ts +2 -0
  105. package/dist/components/panel/ReportAuthDiagnostics.d.ts.map +1 -0
  106. package/dist/components/panel/ReportAuthDiagnostics.js +67 -0
  107. package/dist/components/panel/ReportAuthDiagnostics.js.map +1 -0
  108. package/dist/components/panel/ReportCommandPanel.js +1 -1
  109. package/dist/components/panel/ReportCommandPanel.js.map +1 -1
  110. package/dist/components/panel/ReportCommandReplaceConfirmDialog.d.ts.map +1 -1
  111. package/dist/components/panel/ReportCommandReplaceConfirmDialog.js +2 -1
  112. package/dist/components/panel/ReportCommandReplaceConfirmDialog.js.map +1 -1
  113. package/dist/components/panel/ReportControlPanel.d.ts.map +1 -1
  114. package/dist/components/panel/ReportControlPanel.js +62 -46
  115. package/dist/components/panel/ReportControlPanel.js.map +1 -1
  116. package/dist/components/panel/ReportDraftForm.d.ts.map +1 -1
  117. package/dist/components/panel/ReportDraftForm.js +41 -16
  118. package/dist/components/panel/ReportDraftForm.js.map +1 -1
  119. package/dist/components/panel/ReportFeedbackList.d.ts.map +1 -1
  120. package/dist/components/panel/ReportFeedbackList.js +46 -98
  121. package/dist/components/panel/ReportFeedbackList.js.map +1 -1
  122. package/dist/components/panel/ReportOverview.d.ts +2 -0
  123. package/dist/components/panel/ReportOverview.d.ts.map +1 -0
  124. package/dist/components/panel/ReportOverview.js +6 -0
  125. package/dist/components/panel/ReportOverview.js.map +1 -0
  126. package/dist/components/panel/ReportPersonalKeyDialog.js +2 -2
  127. package/dist/components/panel/ReportPersonalKeyDialog.js.map +1 -1
  128. package/dist/components/panel/ReportRouteDetails.d.ts.map +1 -1
  129. package/dist/components/panel/ReportRouteDetails.js +23 -11
  130. package/dist/components/panel/ReportRouteDetails.js.map +1 -1
  131. package/dist/components/panel/RouteDetailsTimeline.d.ts +13 -0
  132. package/dist/components/panel/RouteDetailsTimeline.d.ts.map +1 -0
  133. package/dist/components/panel/RouteDetailsTimeline.js +53 -0
  134. package/dist/components/panel/RouteDetailsTimeline.js.map +1 -0
  135. package/dist/components/panel/ThemePreviewSkeleton.d.ts +7 -0
  136. package/dist/components/panel/ThemePreviewSkeleton.d.ts.map +1 -0
  137. package/dist/components/panel/ThemePreviewSkeleton.js +25 -0
  138. package/dist/components/panel/ThemePreviewSkeleton.js.map +1 -0
  139. package/dist/components/panel/experimental/ExperimentalFeedbackRow.d.ts +8 -0
  140. package/dist/components/panel/experimental/ExperimentalFeedbackRow.d.ts.map +1 -0
  141. package/dist/components/panel/experimental/ExperimentalFeedbackRow.js +13 -0
  142. package/dist/components/panel/experimental/ExperimentalFeedbackRow.js.map +1 -0
  143. package/dist/components/panel/experimental/ReportMyTasksPanel.d.ts +2 -0
  144. package/dist/components/panel/experimental/ReportMyTasksPanel.d.ts.map +1 -0
  145. package/dist/components/panel/experimental/ReportMyTasksPanel.js +16 -0
  146. package/dist/components/panel/experimental/ReportMyTasksPanel.js.map +1 -0
  147. package/dist/components/panel/experimental/ReportNeedsAttentionPanel.d.ts +2 -0
  148. package/dist/components/panel/experimental/ReportNeedsAttentionPanel.d.ts.map +1 -0
  149. package/dist/components/panel/experimental/ReportNeedsAttentionPanel.js +16 -0
  150. package/dist/components/panel/experimental/ReportNeedsAttentionPanel.js.map +1 -0
  151. package/dist/components/panel/experimental/ReportPageBriefPanel.d.ts +2 -0
  152. package/dist/components/panel/experimental/ReportPageBriefPanel.d.ts.map +1 -0
  153. package/dist/components/panel/experimental/ReportPageBriefPanel.js +15 -0
  154. package/dist/components/panel/experimental/ReportPageBriefPanel.js.map +1 -0
  155. package/dist/components/panel/experimental/ReportProjectHealthPanel.d.ts +2 -0
  156. package/dist/components/panel/experimental/ReportProjectHealthPanel.d.ts.map +1 -0
  157. package/dist/components/panel/experimental/ReportProjectHealthPanel.js +22 -0
  158. package/dist/components/panel/experimental/ReportProjectHealthPanel.js.map +1 -0
  159. package/dist/components/panel/experimental/ReportTodayDigestPanel.d.ts +2 -0
  160. package/dist/components/panel/experimental/ReportTodayDigestPanel.d.ts.map +1 -0
  161. package/dist/components/panel/experimental/ReportTodayDigestPanel.js +16 -0
  162. package/dist/components/panel/experimental/ReportTodayDigestPanel.js.map +1 -0
  163. package/dist/components/panel/feedback/AssigneeThreadEntry.d.ts +20 -0
  164. package/dist/components/panel/feedback/AssigneeThreadEntry.d.ts.map +1 -0
  165. package/dist/components/panel/feedback/AssigneeThreadEntry.js +23 -0
  166. package/dist/components/panel/feedback/AssigneeThreadEntry.js.map +1 -0
  167. package/dist/components/panel/feedback/CaseAssigneeInfo.d.ts +8 -0
  168. package/dist/components/panel/feedback/CaseAssigneeInfo.d.ts.map +1 -0
  169. package/dist/components/panel/feedback/CaseAssigneeInfo.js +20 -0
  170. package/dist/components/panel/feedback/CaseAssigneeInfo.js.map +1 -0
  171. package/dist/components/panel/feedback/ComposerFooterWarning.d.ts +6 -0
  172. package/dist/components/panel/feedback/ComposerFooterWarning.d.ts.map +1 -0
  173. package/dist/components/panel/feedback/ComposerFooterWarning.js +6 -0
  174. package/dist/components/panel/feedback/ComposerFooterWarning.js.map +1 -0
  175. package/dist/components/panel/feedback/FeedbackCaseEditor.d.ts +15 -0
  176. package/dist/components/panel/feedback/FeedbackCaseEditor.d.ts.map +1 -0
  177. package/dist/components/panel/feedback/FeedbackCaseEditor.js +111 -0
  178. package/dist/components/panel/feedback/FeedbackCaseEditor.js.map +1 -0
  179. package/dist/components/panel/feedback/FeedbackCaseList.d.ts +21 -0
  180. package/dist/components/panel/feedback/FeedbackCaseList.d.ts.map +1 -0
  181. package/dist/components/panel/feedback/FeedbackCaseList.js +48 -0
  182. package/dist/components/panel/feedback/FeedbackCaseList.js.map +1 -0
  183. package/dist/components/panel/feedback/FeedbackCaseTabBar.d.ts +34 -0
  184. package/dist/components/panel/feedback/FeedbackCaseTabBar.d.ts.map +1 -0
  185. package/dist/components/panel/feedback/FeedbackCaseTabBar.js +37 -0
  186. package/dist/components/panel/feedback/FeedbackCaseTabBar.js.map +1 -0
  187. package/dist/components/panel/feedback/FeedbackCategorySelector.d.ts +12 -0
  188. package/dist/components/panel/feedback/FeedbackCategorySelector.d.ts.map +1 -0
  189. package/dist/components/panel/feedback/FeedbackCategorySelector.js +25 -0
  190. package/dist/components/panel/feedback/FeedbackCategorySelector.js.map +1 -0
  191. package/dist/components/panel/feedback/FeedbackComposer.d.ts +20 -4
  192. package/dist/components/panel/feedback/FeedbackComposer.d.ts.map +1 -1
  193. package/dist/components/panel/feedback/FeedbackComposer.js +78 -11
  194. package/dist/components/panel/feedback/FeedbackComposer.js.map +1 -1
  195. package/dist/components/panel/feedback/FeedbackHoverCard.d.ts +4 -5
  196. package/dist/components/panel/feedback/FeedbackHoverCard.d.ts.map +1 -1
  197. package/dist/components/panel/feedback/FeedbackHoverCard.js +22 -11
  198. package/dist/components/panel/feedback/FeedbackHoverCard.js.map +1 -1
  199. package/dist/components/panel/feedback/FeedbackListItem.d.ts +17 -0
  200. package/dist/components/panel/feedback/FeedbackListItem.d.ts.map +1 -0
  201. package/dist/components/panel/feedback/FeedbackListItem.js +70 -0
  202. package/dist/components/panel/feedback/FeedbackListItem.js.map +1 -0
  203. package/dist/components/panel/feedback/FeedbackStatusBadge.d.ts +2 -1
  204. package/dist/components/panel/feedback/FeedbackStatusBadge.d.ts.map +1 -1
  205. package/dist/components/panel/feedback/FeedbackStatusBadge.js +2 -2
  206. package/dist/components/panel/feedback/FeedbackStatusBadge.js.map +1 -1
  207. package/dist/components/panel/feedback/FeedbackThread.d.ts +9 -3
  208. package/dist/components/panel/feedback/FeedbackThread.d.ts.map +1 -1
  209. package/dist/components/panel/feedback/FeedbackThread.js +155 -39
  210. package/dist/components/panel/feedback/FeedbackThread.js.map +1 -1
  211. package/dist/components/panel/feedback/PickTargetSnippet.d.ts +7 -0
  212. package/dist/components/panel/feedback/PickTargetSnippet.d.ts.map +1 -0
  213. package/dist/components/panel/feedback/PickTargetSnippet.js +30 -0
  214. package/dist/components/panel/feedback/PickTargetSnippet.js.map +1 -0
  215. package/dist/components/panel/feedback/QuestionThreadGroup.d.ts +9 -0
  216. package/dist/components/panel/feedback/QuestionThreadGroup.d.ts.map +1 -0
  217. package/dist/components/panel/feedback/QuestionThreadGroup.js +30 -0
  218. package/dist/components/panel/feedback/QuestionThreadGroup.js.map +1 -0
  219. package/dist/components/panel/feedback/ReplyHistoryControls.d.ts +8 -0
  220. package/dist/components/panel/feedback/ReplyHistoryControls.d.ts.map +1 -0
  221. package/dist/components/panel/feedback/ReplyHistoryControls.js +26 -0
  222. package/dist/components/panel/feedback/ReplyHistoryControls.js.map +1 -0
  223. package/dist/components/panel/feedback/ThreadAuthorMeta.d.ts +10 -0
  224. package/dist/components/panel/feedback/ThreadAuthorMeta.d.ts.map +1 -0
  225. package/dist/components/panel/feedback/ThreadAuthorMeta.js +9 -0
  226. package/dist/components/panel/feedback/ThreadAuthorMeta.js.map +1 -0
  227. package/dist/components/panel/feedback/ThreadChildReply.d.ts +8 -0
  228. package/dist/components/panel/feedback/ThreadChildReply.d.ts.map +1 -0
  229. package/dist/components/panel/feedback/ThreadChildReply.js +7 -0
  230. package/dist/components/panel/feedback/ThreadChildReply.js.map +1 -0
  231. package/dist/components/panel/feedback/ThreadTimelineRow.d.ts +11 -0
  232. package/dist/components/panel/feedback/ThreadTimelineRow.d.ts.map +1 -0
  233. package/dist/components/panel/feedback/ThreadTimelineRow.js +7 -0
  234. package/dist/components/panel/feedback/ThreadTimelineRow.js.map +1 -0
  235. package/dist/components/point/MarkerCaseSidebar.d.ts +9 -0
  236. package/dist/components/point/MarkerCaseSidebar.d.ts.map +1 -0
  237. package/dist/components/point/MarkerCaseSidebar.js +27 -0
  238. package/dist/components/point/MarkerCaseSidebar.js.map +1 -0
  239. package/dist/components/point/MarkerFeedbackWindow.d.ts +9 -0
  240. package/dist/components/point/MarkerFeedbackWindow.d.ts.map +1 -0
  241. package/dist/components/point/MarkerFeedbackWindow.js +257 -0
  242. package/dist/components/point/MarkerFeedbackWindow.js.map +1 -0
  243. package/dist/components/point/ReportDraftMarker.d.ts.map +1 -1
  244. package/dist/components/point/ReportDraftMarker.js +8 -17
  245. package/dist/components/point/ReportDraftMarker.js.map +1 -1
  246. package/dist/components/point/ReportMarkersLayer.d.ts.map +1 -1
  247. package/dist/components/point/ReportMarkersLayer.js +74 -87
  248. package/dist/components/point/ReportMarkersLayer.js.map +1 -1
  249. package/dist/components/report/FivePixels.d.ts +7 -28
  250. package/dist/components/report/FivePixels.d.ts.map +1 -1
  251. package/dist/components/report/FivePixels.js +3 -3
  252. package/dist/components/report/FivePixels.js.map +1 -1
  253. package/dist/components/report/ReportView.d.ts.map +1 -1
  254. package/dist/components/report/ReportView.js +5 -3
  255. package/dist/components/report/ReportView.js.map +1 -1
  256. package/dist/components/report/ShadowReportRoot.d.ts +2 -2
  257. package/dist/components/report/ShadowReportRoot.d.ts.map +1 -1
  258. package/dist/components/report/ShadowReportRoot.js +4 -7
  259. package/dist/components/report/ShadowReportRoot.js.map +1 -1
  260. package/dist/components/report/ThemeScope.d.ts +10 -0
  261. package/dist/components/report/ThemeScope.d.ts.map +1 -0
  262. package/dist/components/report/ThemeScope.js +5 -0
  263. package/dist/components/report/ThemeScope.js.map +1 -0
  264. package/dist/components/report/index.d.ts +4 -1
  265. package/dist/components/report/index.d.ts.map +1 -1
  266. package/dist/components/report/index.js +3 -0
  267. package/dist/components/report/index.js.map +1 -1
  268. package/dist/components/ui/CornerResizeGhost.d.ts +8 -0
  269. package/dist/components/ui/CornerResizeGhost.d.ts.map +1 -0
  270. package/dist/components/ui/CornerResizeGhost.js +5 -0
  271. package/dist/components/ui/CornerResizeGhost.js.map +1 -0
  272. package/dist/components/ui/CornerResizeHandle.d.ts +11 -0
  273. package/dist/components/ui/CornerResizeHandle.d.ts.map +1 -0
  274. package/dist/components/ui/CornerResizeHandle.js +32 -0
  275. package/dist/components/ui/CornerResizeHandle.js.map +1 -0
  276. package/dist/components/ui/HoverTooltip.d.ts +4 -2
  277. package/dist/components/ui/HoverTooltip.d.ts.map +1 -1
  278. package/dist/components/ui/HoverTooltip.js +28 -17
  279. package/dist/components/ui/HoverTooltip.js.map +1 -1
  280. package/dist/components/ui/IconTooltipButton.d.ts.map +1 -1
  281. package/dist/components/ui/IconTooltipButton.js +5 -2
  282. package/dist/components/ui/IconTooltipButton.js.map +1 -1
  283. package/dist/components/ui/PointerFollowTooltip.d.ts +14 -0
  284. package/dist/components/ui/PointerFollowTooltip.d.ts.map +1 -0
  285. package/dist/components/ui/PointerFollowTooltip.js +58 -0
  286. package/dist/components/ui/PointerFollowTooltip.js.map +1 -0
  287. package/dist/components/ui/ProcessingDots.d.ts +6 -0
  288. package/dist/components/ui/ProcessingDots.d.ts.map +1 -0
  289. package/dist/components/ui/ProcessingDots.js +19 -0
  290. package/dist/components/ui/ProcessingDots.js.map +1 -0
  291. package/dist/components/ui/Text/index.d.ts +6 -0
  292. package/dist/components/ui/Text/index.d.ts.map +1 -0
  293. package/dist/components/ui/Text/index.js +5 -0
  294. package/dist/components/ui/Text/index.js.map +1 -0
  295. package/dist/components/ui/Text/ui/Shimmer.d.ts +14 -0
  296. package/dist/components/ui/Text/ui/Shimmer.d.ts.map +1 -0
  297. package/dist/components/ui/Text/ui/Shimmer.js +41 -0
  298. package/dist/components/ui/Text/ui/Shimmer.js.map +1 -0
  299. package/dist/constants/appearance.d.ts +10 -0
  300. package/dist/constants/appearance.d.ts.map +1 -0
  301. package/dist/constants/appearance.js +10 -0
  302. package/dist/constants/appearance.js.map +1 -0
  303. package/dist/constants/feedbackCategory.d.ts +5 -0
  304. package/dist/constants/feedbackCategory.d.ts.map +1 -0
  305. package/dist/constants/feedbackCategory.js +5 -0
  306. package/dist/constants/feedbackCategory.js.map +1 -0
  307. package/dist/constants/feedbackStatus.d.ts +1 -1
  308. package/dist/constants/feedbackStatus.d.ts.map +1 -1
  309. package/dist/constants/feedbackStatus.js +20 -8
  310. package/dist/constants/feedbackStatus.js.map +1 -1
  311. package/dist/constants/feedbackStorageEvents.d.ts +3 -0
  312. package/dist/constants/feedbackStorageEvents.d.ts.map +1 -0
  313. package/dist/constants/feedbackStorageEvents.js +8 -0
  314. package/dist/constants/feedbackStorageEvents.js.map +1 -0
  315. package/dist/constants/markerAppearance.d.ts +35 -0
  316. package/dist/constants/markerAppearance.d.ts.map +1 -0
  317. package/dist/constants/markerAppearance.js +57 -0
  318. package/dist/constants/markerAppearance.js.map +1 -0
  319. package/dist/constants/panelRole.d.ts +5 -0
  320. package/dist/constants/panelRole.d.ts.map +1 -0
  321. package/dist/constants/panelRole.js +6 -0
  322. package/dist/constants/panelRole.js.map +1 -0
  323. package/dist/constants/panelTabPresets.d.ts +14 -0
  324. package/dist/constants/panelTabPresets.d.ts.map +1 -0
  325. package/dist/constants/panelTabPresets.js +48 -0
  326. package/dist/constants/panelTabPresets.js.map +1 -0
  327. package/dist/constants/panelTabRegistry.d.ts +23 -0
  328. package/dist/constants/panelTabRegistry.d.ts.map +1 -0
  329. package/dist/constants/panelTabRegistry.js +95 -0
  330. package/dist/constants/panelTabRegistry.js.map +1 -0
  331. package/dist/constants/replyHistory.d.ts +8 -0
  332. package/dist/constants/replyHistory.d.ts.map +1 -0
  333. package/dist/constants/replyHistory.js +15 -0
  334. package/dist/constants/replyHistory.js.map +1 -0
  335. package/dist/constants/report.d.ts +5 -0
  336. package/dist/constants/report.d.ts.map +1 -1
  337. package/dist/constants/report.js +5 -0
  338. package/dist/constants/report.js.map +1 -1
  339. package/dist/constants/storageKeys.d.ts +2 -0
  340. package/dist/constants/storageKeys.d.ts.map +1 -1
  341. package/dist/constants/storageKeys.js +4 -0
  342. package/dist/constants/storageKeys.js.map +1 -1
  343. package/dist/hooks/replyHistoryActions.d.ts +30 -0
  344. package/dist/hooks/replyHistoryActions.d.ts.map +1 -0
  345. package/dist/hooks/replyHistoryActions.js +278 -0
  346. package/dist/hooks/replyHistoryActions.js.map +1 -0
  347. package/dist/hooks/report.api.d.ts +3 -1
  348. package/dist/hooks/report.api.d.ts.map +1 -1
  349. package/dist/hooks/report.api.js +27 -4
  350. package/dist/hooks/report.api.js.map +1 -1
  351. package/dist/hooks/report.query.d.ts +1 -1
  352. package/dist/hooks/report.query.d.ts.map +1 -1
  353. package/dist/hooks/report.query.js +3 -2
  354. package/dist/hooks/report.query.js.map +1 -1
  355. package/dist/hooks/useActivitySummary.d.ts +13 -0
  356. package/dist/hooks/useActivitySummary.d.ts.map +1 -0
  357. package/dist/hooks/useActivitySummary.js +41 -0
  358. package/dist/hooks/useActivitySummary.js.map +1 -0
  359. package/dist/hooks/useAppearancePreference.d.ts +1 -1
  360. package/dist/hooks/useAppearancePreference.d.ts.map +1 -1
  361. package/dist/hooks/useAppearancePreference.js +14 -11
  362. package/dist/hooks/useAppearancePreference.js.map +1 -1
  363. package/dist/hooks/useDraggableWindow.d.ts +17 -0
  364. package/dist/hooks/useDraggableWindow.d.ts.map +1 -0
  365. package/dist/hooks/useDraggableWindow.js +104 -0
  366. package/dist/hooks/useDraggableWindow.js.map +1 -0
  367. package/dist/hooks/useGhostCornerResize.d.ts +36 -0
  368. package/dist/hooks/useGhostCornerResize.d.ts.map +1 -0
  369. package/dist/hooks/useGhostCornerResize.js +161 -0
  370. package/dist/hooks/useGhostCornerResize.js.map +1 -0
  371. package/dist/hooks/useMarkerAppearancePreference.d.ts +10 -0
  372. package/dist/hooks/useMarkerAppearancePreference.d.ts.map +1 -0
  373. package/dist/hooks/useMarkerAppearancePreference.js +94 -0
  374. package/dist/hooks/useMarkerAppearancePreference.js.map +1 -0
  375. package/dist/hooks/useMarkerTargetPreviewPreference.d.ts +6 -0
  376. package/dist/hooks/useMarkerTargetPreviewPreference.d.ts.map +1 -0
  377. package/dist/hooks/useMarkerTargetPreviewPreference.js +41 -0
  378. package/dist/hooks/useMarkerTargetPreviewPreference.js.map +1 -0
  379. package/dist/hooks/usePanelBootstrap.d.ts +16 -0
  380. package/dist/hooks/usePanelBootstrap.d.ts.map +1 -0
  381. package/dist/hooks/usePanelBootstrap.js +46 -0
  382. package/dist/hooks/usePanelBootstrap.js.map +1 -0
  383. package/dist/hooks/usePanelDock.d.ts.map +1 -1
  384. package/dist/hooks/usePanelDock.js +40 -31
  385. package/dist/hooks/usePanelDock.js.map +1 -1
  386. package/dist/hooks/usePanelFeedbackTransfer.d.ts +3 -3
  387. package/dist/hooks/usePanelFeedbackTransfer.d.ts.map +1 -1
  388. package/dist/hooks/usePanelFeedbackTransfer.js +13 -13
  389. package/dist/hooks/usePanelFeedbackTransfer.js.map +1 -1
  390. package/dist/hooks/usePanelResize.d.ts +44 -0
  391. package/dist/hooks/usePanelResize.d.ts.map +1 -0
  392. package/dist/hooks/usePanelResize.js +234 -0
  393. package/dist/hooks/usePanelResize.js.map +1 -0
  394. package/dist/hooks/usePanelRolePreference.d.ts +6 -0
  395. package/dist/hooks/usePanelRolePreference.d.ts.map +1 -0
  396. package/dist/hooks/usePanelRolePreference.js +38 -0
  397. package/dist/hooks/usePanelRolePreference.js.map +1 -0
  398. package/dist/hooks/usePanelTabPreference.d.ts +13 -0
  399. package/dist/hooks/usePanelTabPreference.d.ts.map +1 -0
  400. package/dist/hooks/usePanelTabPreference.js +66 -0
  401. package/dist/hooks/usePanelTabPreference.js.map +1 -0
  402. package/dist/hooks/usePersonalKey.d.ts +18 -2
  403. package/dist/hooks/usePersonalKey.d.ts.map +1 -1
  404. package/dist/hooks/usePersonalKey.js +43 -16
  405. package/dist/hooks/usePersonalKey.js.map +1 -1
  406. package/dist/hooks/useQuestionThreadPreference.d.ts +6 -0
  407. package/dist/hooks/useQuestionThreadPreference.d.ts.map +1 -0
  408. package/dist/hooks/useQuestionThreadPreference.js +40 -0
  409. package/dist/hooks/useQuestionThreadPreference.js.map +1 -0
  410. package/dist/hooks/useReportPersistence.d.ts +26 -16
  411. package/dist/hooks/useReportPersistence.d.ts.map +1 -1
  412. package/dist/hooks/useReportPersistence.js +158 -58
  413. package/dist/hooks/useReportPersistence.js.map +1 -1
  414. package/dist/hooks/useReportShortcuts.d.ts +1 -1
  415. package/dist/hooks/useReportShortcuts.d.ts.map +1 -1
  416. package/dist/hooks/useReportShortcuts.js +8 -1
  417. package/dist/hooks/useReportShortcuts.js.map +1 -1
  418. package/dist/hooks/useReportState.d.ts +184 -31
  419. package/dist/hooks/useReportState.d.ts.map +1 -1
  420. package/dist/hooks/useReportState.js +1555 -162
  421. package/dist/hooks/useReportState.js.map +1 -1
  422. package/dist/hooks/useSelfProfile.d.ts +12 -0
  423. package/dist/hooks/useSelfProfile.d.ts.map +1 -0
  424. package/dist/hooks/useSelfProfile.js +65 -0
  425. package/dist/hooks/useSelfProfile.js.map +1 -0
  426. package/dist/hooks/useTooltipLayout.d.ts +5 -1
  427. package/dist/hooks/useTooltipLayout.d.ts.map +1 -1
  428. package/dist/hooks/useTooltipLayout.js +9 -4
  429. package/dist/hooks/useTooltipLayout.js.map +1 -1
  430. package/dist/hooks/useTooltipResize.d.ts +16 -0
  431. package/dist/hooks/useTooltipResize.d.ts.map +1 -0
  432. package/dist/hooks/useTooltipResize.js +27 -0
  433. package/dist/hooks/useTooltipResize.js.map +1 -0
  434. package/dist/hooks/useTypographyPreference.d.ts +8 -0
  435. package/dist/hooks/useTypographyPreference.d.ts.map +1 -0
  436. package/dist/hooks/useTypographyPreference.js +59 -0
  437. package/dist/hooks/useTypographyPreference.js.map +1 -0
  438. package/dist/i18n/en.d.ts.map +1 -1
  439. package/dist/i18n/en.js +406 -14
  440. package/dist/i18n/en.js.map +1 -1
  441. package/dist/i18n/ko.d.ts.map +1 -1
  442. package/dist/i18n/ko.js +407 -15
  443. package/dist/i18n/ko.js.map +1 -1
  444. package/dist/i18n/types.d.ts +386 -10
  445. package/dist/i18n/types.d.ts.map +1 -1
  446. package/dist/index.d.ts +0 -2
  447. package/dist/index.d.ts.map +1 -1
  448. package/dist/index.js +0 -1
  449. package/dist/index.js.map +1 -1
  450. package/dist/providers/ReportProvider.d.ts +7 -28
  451. package/dist/providers/ReportProvider.d.ts.map +1 -1
  452. package/dist/providers/ReportProvider.js +16 -8
  453. package/dist/providers/ReportProvider.js.map +1 -1
  454. package/dist/providers/reportContext.d.ts +324 -54
  455. package/dist/providers/reportContext.d.ts.map +1 -1
  456. package/dist/storage/local/localStorageAdapter.d.ts.map +1 -1
  457. package/dist/storage/local/localStorageAdapter.js +78 -9
  458. package/dist/storage/local/localStorageAdapter.js.map +1 -1
  459. package/dist/styles/reportStylesheet.d.ts +1 -1
  460. package/dist/styles/reportStylesheet.d.ts.map +1 -1
  461. package/dist/styles/reportStylesheet.js +1 -1
  462. package/dist/styles/reportStylesheet.js.map +1 -1
  463. package/dist/types/report-ui.d.ts +89 -5
  464. package/dist/types/report-ui.d.ts.map +1 -1
  465. package/dist/types/report.d.ts +147 -20
  466. package/dist/types/report.d.ts.map +1 -1
  467. package/dist/types/report.js.map +1 -1
  468. package/dist/utils/coordinates.d.ts +16 -1
  469. package/dist/utils/coordinates.d.ts.map +1 -1
  470. package/dist/utils/coordinates.js +69 -37
  471. package/dist/utils/coordinates.js.map +1 -1
  472. package/dist/utils/cssStepper.d.ts +6 -0
  473. package/dist/utils/cssStepper.d.ts.map +1 -0
  474. package/dist/utils/cssStepper.js +40 -0
  475. package/dist/utils/cssStepper.js.map +1 -0
  476. package/dist/utils/dom.d.ts +6 -0
  477. package/dist/utils/dom.d.ts.map +1 -1
  478. package/dist/utils/dom.js +196 -3
  479. package/dist/utils/dom.js.map +1 -1
  480. package/dist/utils/experimentalPanelTabs.d.ts +29 -0
  481. package/dist/utils/experimentalPanelTabs.d.ts.map +1 -0
  482. package/dist/utils/experimentalPanelTabs.js +113 -0
  483. package/dist/utils/experimentalPanelTabs.js.map +1 -0
  484. package/dist/utils/feedbackCaseId.d.ts +7 -0
  485. package/dist/utils/feedbackCaseId.d.ts.map +1 -0
  486. package/dist/utils/feedbackCaseId.js +44 -0
  487. package/dist/utils/feedbackCaseId.js.map +1 -0
  488. package/dist/utils/feedbackDataTransfer.d.ts +4 -0
  489. package/dist/utils/feedbackDataTransfer.d.ts.map +1 -1
  490. package/dist/utils/feedbackDataTransfer.js +70 -0
  491. package/dist/utils/feedbackDataTransfer.js.map +1 -1
  492. package/dist/utils/feedbackDeepLink.d.ts +11 -0
  493. package/dist/utils/feedbackDeepLink.d.ts.map +1 -0
  494. package/dist/utils/feedbackDeepLink.js +35 -0
  495. package/dist/utils/feedbackDeepLink.js.map +1 -0
  496. package/dist/utils/feedbackListStatus.d.ts +4 -0
  497. package/dist/utils/feedbackListStatus.d.ts.map +1 -0
  498. package/dist/utils/feedbackListStatus.js +19 -0
  499. package/dist/utils/feedbackListStatus.js.map +1 -0
  500. package/dist/utils/feedbackThread.d.ts +61 -2
  501. package/dist/utils/feedbackThread.d.ts.map +1 -1
  502. package/dist/utils/feedbackThread.js +325 -10
  503. package/dist/utils/feedbackThread.js.map +1 -1
  504. package/dist/utils/fields.d.ts +3 -2
  505. package/dist/utils/fields.d.ts.map +1 -1
  506. package/dist/utils/fields.js +9 -4
  507. package/dist/utils/fields.js.map +1 -1
  508. package/dist/utils/format.d.ts +1 -0
  509. package/dist/utils/format.d.ts.map +1 -1
  510. package/dist/utils/format.js +6 -0
  511. package/dist/utils/format.js.map +1 -1
  512. package/dist/utils/githubIntegration.d.ts +1 -0
  513. package/dist/utils/githubIntegration.d.ts.map +1 -1
  514. package/dist/utils/githubIntegration.js +8 -2
  515. package/dist/utils/githubIntegration.js.map +1 -1
  516. package/dist/utils/heatmapActivity.d.ts +68 -0
  517. package/dist/utils/heatmapActivity.d.ts.map +1 -0
  518. package/dist/utils/heatmapActivity.js +280 -0
  519. package/dist/utils/heatmapActivity.js.map +1 -0
  520. package/dist/utils/hexColor.d.ts +7 -0
  521. package/dist/utils/hexColor.d.ts.map +1 -0
  522. package/dist/utils/hexColor.js +25 -0
  523. package/dist/utils/hexColor.js.map +1 -0
  524. package/dist/utils/hourlyCompareSparkline.d.ts +19 -0
  525. package/dist/utils/hourlyCompareSparkline.d.ts.map +1 -0
  526. package/dist/utils/hourlyCompareSparkline.js +65 -0
  527. package/dist/utils/hourlyCompareSparkline.js.map +1 -0
  528. package/dist/utils/locateFeedback.d.ts +3 -3
  529. package/dist/utils/locateFeedback.d.ts.map +1 -1
  530. package/dist/utils/locateFeedback.js +11 -3
  531. package/dist/utils/locateFeedback.js.map +1 -1
  532. package/dist/utils/markerContext.d.ts +30 -0
  533. package/dist/utils/markerContext.d.ts.map +1 -0
  534. package/dist/utils/markerContext.js +78 -0
  535. package/dist/utils/markerContext.js.map +1 -0
  536. package/dist/utils/markerRuntime.d.ts +5 -0
  537. package/dist/utils/markerRuntime.d.ts.map +1 -0
  538. package/dist/utils/markerRuntime.js +13 -0
  539. package/dist/utils/markerRuntime.js.map +1 -0
  540. package/dist/utils/markerShape.d.ts +13 -0
  541. package/dist/utils/markerShape.d.ts.map +1 -0
  542. package/dist/utils/markerShape.js +52 -0
  543. package/dist/utils/markerShape.js.map +1 -0
  544. package/dist/utils/markerTarget.d.ts +3 -0
  545. package/dist/utils/markerTarget.d.ts.map +1 -0
  546. package/dist/utils/markerTarget.js +16 -0
  547. package/dist/utils/markerTarget.js.map +1 -0
  548. package/dist/utils/panelBootstrap.d.ts +27 -0
  549. package/dist/utils/panelBootstrap.d.ts.map +1 -0
  550. package/dist/utils/panelBootstrap.js +95 -0
  551. package/dist/utils/panelBootstrap.js.map +1 -0
  552. package/dist/utils/panelRoleStats.d.ts +18 -0
  553. package/dist/utils/panelRoleStats.d.ts.map +1 -0
  554. package/dist/utils/panelRoleStats.js +77 -0
  555. package/dist/utils/panelRoleStats.js.map +1 -0
  556. package/dist/utils/panelTabPreference.d.ts +19 -0
  557. package/dist/utils/panelTabPreference.d.ts.map +1 -0
  558. package/dist/utils/panelTabPreference.js +76 -0
  559. package/dist/utils/panelTabPreference.js.map +1 -0
  560. package/dist/utils/pathname.d.ts +2 -0
  561. package/dist/utils/pathname.d.ts.map +1 -1
  562. package/dist/utils/pathname.js +10 -0
  563. package/dist/utils/pathname.js.map +1 -1
  564. package/dist/utils/personalKey.d.ts +7 -1
  565. package/dist/utils/personalKey.d.ts.map +1 -1
  566. package/dist/utils/personalKey.js +50 -2
  567. package/dist/utils/personalKey.js.map +1 -1
  568. package/dist/utils/pickProbe.d.ts +21 -0
  569. package/dist/utils/pickProbe.d.ts.map +1 -0
  570. package/dist/utils/pickProbe.js +285 -0
  571. package/dist/utils/pickProbe.js.map +1 -0
  572. package/dist/utils/pickProbeLayout.d.ts +16 -0
  573. package/dist/utils/pickProbeLayout.d.ts.map +1 -0
  574. package/dist/utils/pickProbeLayout.js +52 -0
  575. package/dist/utils/pickProbeLayout.js.map +1 -0
  576. package/dist/utils/pickProbeSession.d.ts +14 -0
  577. package/dist/utils/pickProbeSession.d.ts.map +1 -0
  578. package/dist/utils/pickProbeSession.js +134 -0
  579. package/dist/utils/pickProbeSession.js.map +1 -0
  580. package/dist/utils/pickTargetDeleteAnimation.d.ts +3 -0
  581. package/dist/utils/pickTargetDeleteAnimation.d.ts.map +1 -0
  582. package/dist/utils/pickTargetDeleteAnimation.js +29 -0
  583. package/dist/utils/pickTargetDeleteAnimation.js.map +1 -0
  584. package/dist/utils/pickTargetInspect.d.ts +12 -0
  585. package/dist/utils/pickTargetInspect.d.ts.map +1 -0
  586. package/dist/utils/pickTargetInspect.js +75 -0
  587. package/dist/utils/pickTargetInspect.js.map +1 -0
  588. package/dist/utils/probeColor.d.ts +6 -0
  589. package/dist/utils/probeColor.d.ts.map +1 -0
  590. package/dist/utils/probeColor.js +49 -0
  591. package/dist/utils/probeColor.js.map +1 -0
  592. package/dist/utils/probeLayout.d.ts +27 -0
  593. package/dist/utils/probeLayout.d.ts.map +1 -0
  594. package/dist/utils/probeLayout.js +86 -0
  595. package/dist/utils/probeLayout.js.map +1 -0
  596. package/dist/utils/probeSessionHistory.d.ts +8 -0
  597. package/dist/utils/probeSessionHistory.d.ts.map +1 -0
  598. package/dist/utils/probeSessionHistory.js +102 -0
  599. package/dist/utils/probeSessionHistory.js.map +1 -0
  600. package/dist/utils/replyHistory.d.ts +20 -0
  601. package/dist/utils/replyHistory.d.ts.map +1 -0
  602. package/dist/utils/replyHistory.js +82 -0
  603. package/dist/utils/replyHistory.js.map +1 -0
  604. package/dist/utils/reportCases.d.ts +54 -0
  605. package/dist/utils/reportCases.d.ts.map +1 -0
  606. package/dist/utils/reportCases.js +297 -0
  607. package/dist/utils/reportCases.js.map +1 -0
  608. package/dist/utils/reportPosition.d.ts +9 -0
  609. package/dist/utils/reportPosition.d.ts.map +1 -0
  610. package/dist/utils/reportPosition.js +18 -0
  611. package/dist/utils/reportPosition.js.map +1 -0
  612. package/dist/utils/reportProject.d.ts +1 -7
  613. package/dist/utils/reportProject.d.ts.map +1 -1
  614. package/dist/utils/reportProject.js +4 -4
  615. package/dist/utils/reportProject.js.map +1 -1
  616. package/dist/utils/reportSummary.d.ts +7 -0
  617. package/dist/utils/reportSummary.d.ts.map +1 -0
  618. package/dist/utils/reportSummary.js +49 -0
  619. package/dist/utils/reportSummary.js.map +1 -0
  620. package/dist/utils/reportTeam.d.ts +20 -5
  621. package/dist/utils/reportTeam.d.ts.map +1 -1
  622. package/dist/utils/reportTeam.js +60 -3
  623. package/dist/utils/reportTeam.js.map +1 -1
  624. package/dist/utils/reportUi.d.ts +10 -11
  625. package/dist/utils/reportUi.d.ts.map +1 -1
  626. package/dist/utils/reportUi.js +21 -6
  627. package/dist/utils/reportUi.js.map +1 -1
  628. package/dist/utils/reportVisibility.d.ts +1 -9
  629. package/dist/utils/reportVisibility.d.ts.map +1 -1
  630. package/dist/utils/reportVisibility.js +4 -4
  631. package/dist/utils/reportVisibility.js.map +1 -1
  632. package/dist/utils/reportVisual.d.ts +3 -1
  633. package/dist/utils/reportVisual.d.ts.map +1 -1
  634. package/dist/utils/reportVisual.js +17 -6
  635. package/dist/utils/reportVisual.js.map +1 -1
  636. package/dist/utils/routeDetailStatus.d.ts.map +1 -1
  637. package/dist/utils/routeDetailStatus.js +4 -1
  638. package/dist/utils/routeDetailStatus.js.map +1 -1
  639. package/dist/utils/storage.d.ts +3 -1
  640. package/dist/utils/storage.d.ts.map +1 -1
  641. package/dist/utils/storage.js +6 -2
  642. package/dist/utils/storage.js.map +1 -1
  643. package/dist/utils/targetSelector.d.ts +20 -0
  644. package/dist/utils/targetSelector.d.ts.map +1 -0
  645. package/dist/utils/targetSelector.js +123 -0
  646. package/dist/utils/targetSelector.js.map +1 -0
  647. package/dist/utils/validateFeedbackImport.d.ts +2 -1
  648. package/dist/utils/validateFeedbackImport.d.ts.map +1 -1
  649. package/dist/utils/validateFeedbackImport.js +114 -45
  650. package/dist/utils/validateFeedbackImport.js.map +1 -1
  651. package/package.json +78 -78
  652. package/dist/components/motion/index.d.ts +0 -48
  653. package/dist/components/motion/index.d.ts.map +0 -1
  654. package/dist/components/motion/index.js +0 -910
  655. package/dist/components/motion/index.js.map +0 -1
  656. package/dist/components/panel/PanelMoreMenu.d.ts +0 -20
  657. package/dist/components/panel/PanelMoreMenu.d.ts.map +0 -1
  658. package/dist/components/panel/PanelMoreMenu.js +0 -20
  659. package/dist/components/panel/PanelMoreMenu.js.map +0 -1
  660. package/dist/components/panel/feedback/FeedbackIssueHeader.d.ts +0 -12
  661. package/dist/components/panel/feedback/FeedbackIssueHeader.d.ts.map +0 -1
  662. package/dist/components/panel/feedback/FeedbackIssueHeader.js +0 -10
  663. package/dist/components/panel/feedback/FeedbackIssueHeader.js.map +0 -1
  664. package/dist/components/panel/feedback/FieldTagSelector.d.ts +0 -9
  665. package/dist/components/panel/feedback/FieldTagSelector.d.ts.map +0 -1
  666. package/dist/components/panel/feedback/FieldTagSelector.js +0 -15
  667. package/dist/components/panel/feedback/FieldTagSelector.js.map +0 -1
@@ -0,0 +1,280 @@
1
+ const DAY_MS = 24 * 60 * 60 * 1000;
2
+ const MONTH_KEY_PATTERN = /^(\d{4})-(\d{2})$/;
3
+ export function toDateKey(date) {
4
+ const year = date.getFullYear();
5
+ const month = String(date.getMonth() + 1).padStart(2, "0");
6
+ const day = String(date.getDate()).padStart(2, "0");
7
+ return `${year}-${month}-${day}`;
8
+ }
9
+ export function toMonthKey(date) {
10
+ const year = date.getFullYear();
11
+ const month = String(date.getMonth() + 1).padStart(2, "0");
12
+ return `${year}-${month}`;
13
+ }
14
+ export function parseMonthKey(monthKey) {
15
+ const match = MONTH_KEY_PATTERN.exec(monthKey);
16
+ if (!match) {
17
+ throw new Error(`Invalid month key: ${monthKey}`);
18
+ }
19
+ return {
20
+ year: Number(match[1]),
21
+ month: Number(match[2]),
22
+ };
23
+ }
24
+ export function shiftMonthKey(monthKey, delta) {
25
+ const { year, month } = parseMonthKey(monthKey);
26
+ const date = new Date(year, month - 1 + delta, 1);
27
+ return toMonthKey(date);
28
+ }
29
+ export function compareMonthKeys(left, right) {
30
+ return left.localeCompare(right);
31
+ }
32
+ export function formatHeatmapMonthLabel(monthKey, locale) {
33
+ const { year, month } = parseMonthKey(monthKey);
34
+ if (locale === "ko") {
35
+ return `${year}년 ${month}월`;
36
+ }
37
+ return new Intl.DateTimeFormat("en-US", {
38
+ year: "numeric",
39
+ month: "long",
40
+ }).format(new Date(year, month - 1, 1));
41
+ }
42
+ export function startOfLocalDay(date) {
43
+ return new Date(date.getFullYear(), date.getMonth(), date.getDate());
44
+ }
45
+ function addDays(date, days) {
46
+ const next = new Date(date);
47
+ next.setDate(next.getDate() + days);
48
+ return next;
49
+ }
50
+ function alignToSunday(date) {
51
+ const aligned = startOfLocalDay(date);
52
+ aligned.setDate(aligned.getDate() - aligned.getDay());
53
+ return aligned;
54
+ }
55
+ function isDateKeyInMonth(dateKey, monthKey) {
56
+ return dateKey.startsWith(`${monthKey}-`);
57
+ }
58
+ function getMonthGridBounds(monthKey) {
59
+ const { year, month } = parseMonthKey(monthKey);
60
+ const rangeStart = startOfLocalDay(new Date(year, month - 1, 1));
61
+ const rangeEnd = startOfLocalDay(new Date(year, month, 0));
62
+ const gridStart = alignToSunday(rangeStart);
63
+ const gridEnd = addDays(alignToSunday(rangeEnd), 6);
64
+ return {
65
+ rangeStart,
66
+ rangeEnd,
67
+ gridStart,
68
+ gridEnd,
69
+ };
70
+ }
71
+ export function getHeatmapCellDelay(weekIndex, dayOfWeek, _totalWeeks, staggerMs = 16) {
72
+ return (weekIndex + dayOfWeek) * staggerMs;
73
+ }
74
+ export function getHeatmapCellMaxDelay(totalWeeks, staggerMs = 16) {
75
+ if (totalWeeks <= 0) {
76
+ return 0;
77
+ }
78
+ return (totalWeeks - 1 + 6) * staggerMs;
79
+ }
80
+ export function getHeatmapEntranceDuration(totalWeeks, staggerMs = 16, cellDurationMs = 420) {
81
+ return getHeatmapCellMaxDelay(totalWeeks, staggerMs) + cellDurationMs;
82
+ }
83
+ export function countHeatmapActivity(reports, options) {
84
+ const counts = new Map();
85
+ const actor = options.actorName?.trim() ?? "";
86
+ for (const report of reports) {
87
+ if (options.metric === "created" || options.metric === "activity") {
88
+ const matchesCreatedActor = options.actorScope === "team" || (report.author_name?.trim() === actor && actor.length > 0);
89
+ if (matchesCreatedActor) {
90
+ const createdAt = new Date(report.created_at);
91
+ if (!Number.isNaN(createdAt.getTime())) {
92
+ const key = toDateKey(createdAt);
93
+ counts.set(key, (counts.get(key) ?? 0) + 1);
94
+ }
95
+ }
96
+ }
97
+ if (options.metric !== "activity" || !report.replies) {
98
+ continue;
99
+ }
100
+ for (const reply of report.replies) {
101
+ if (reply.author_type === "system") {
102
+ continue;
103
+ }
104
+ const replyActor = reply.author_name?.trim() ?? "";
105
+ const matchesReplyActor = options.actorScope === "team" || (replyActor === actor && actor.length > 0);
106
+ if (!matchesReplyActor) {
107
+ continue;
108
+ }
109
+ const repliedAt = new Date(reply.created_at);
110
+ if (Number.isNaN(repliedAt.getTime())) {
111
+ continue;
112
+ }
113
+ const key = toDateKey(repliedAt);
114
+ counts.set(key, (counts.get(key) ?? 0) + 1);
115
+ }
116
+ }
117
+ return counts;
118
+ }
119
+ function applyViewMode(dailyCounts, viewMode, rangeStart, rangeEnd, gridStart) {
120
+ if (viewMode === "daily") {
121
+ return dailyCounts;
122
+ }
123
+ const next = new Map();
124
+ const cursor = startOfLocalDay(rangeStart);
125
+ if (viewMode === "cumulative") {
126
+ let runningTotal = 0;
127
+ while (cursor.getTime() <= rangeEnd.getTime()) {
128
+ const key = toDateKey(cursor);
129
+ runningTotal += dailyCounts.get(key) ?? 0;
130
+ next.set(key, runningTotal);
131
+ cursor.setDate(cursor.getDate() + 1);
132
+ }
133
+ return next;
134
+ }
135
+ const weekTotals = new Map();
136
+ while (cursor.getTime() <= rangeEnd.getTime()) {
137
+ const key = toDateKey(cursor);
138
+ const weekIndex = Math.floor((cursor.getTime() - gridStart.getTime()) / (7 * DAY_MS));
139
+ weekTotals.set(weekIndex, (weekTotals.get(weekIndex) ?? 0) + (dailyCounts.get(key) ?? 0));
140
+ cursor.setDate(cursor.getDate() + 1);
141
+ }
142
+ const weeklyCursor = startOfLocalDay(rangeStart);
143
+ while (weeklyCursor.getTime() <= rangeEnd.getTime()) {
144
+ const key = toDateKey(weeklyCursor);
145
+ const weekIndex = Math.floor((weeklyCursor.getTime() - gridStart.getTime()) / (7 * DAY_MS));
146
+ next.set(key, weekTotals.get(weekIndex) ?? 0);
147
+ weeklyCursor.setDate(weeklyCursor.getDate() + 1);
148
+ }
149
+ return next;
150
+ }
151
+ export function buildHeatmapGrid(reports, options) {
152
+ const { rangeStart, rangeEnd, gridStart, gridEnd } = getMonthGridBounds(options.monthKey);
153
+ const dailyCounts = countHeatmapActivity(reports, options);
154
+ const counts = applyViewMode(dailyCounts, options.viewMode, rangeStart, rangeEnd, gridStart);
155
+ const cells = [];
156
+ let maxCount = 0;
157
+ let totalCount = 0;
158
+ const cursor = new Date(gridStart);
159
+ while (cursor.getTime() <= gridEnd.getTime()) {
160
+ const dateKey = toDateKey(cursor);
161
+ const inRange = isDateKeyInMonth(dateKey, options.monthKey);
162
+ const weekIndex = Math.floor((cursor.getTime() - gridStart.getTime()) / (7 * DAY_MS));
163
+ const count = inRange ? (counts.get(dateKey) ?? 0) : 0;
164
+ cells.push({
165
+ dateKey,
166
+ weekIndex,
167
+ dayOfWeek: cursor.getDay(),
168
+ count,
169
+ inRange,
170
+ });
171
+ if (inRange) {
172
+ maxCount = Math.max(maxCount, count);
173
+ if (options.viewMode !== "cumulative") {
174
+ totalCount += dailyCounts.get(dateKey) ?? 0;
175
+ }
176
+ }
177
+ cursor.setDate(cursor.getDate() + 1);
178
+ }
179
+ if (options.viewMode === "cumulative" && cells.length > 0) {
180
+ const lastInRange = [...cells].reverse().find((cell) => cell.inRange);
181
+ totalCount = lastInRange?.count ?? 0;
182
+ maxCount = Math.max(maxCount, totalCount);
183
+ }
184
+ const totalWeeks = cells.length > 0 ? Math.max(...cells.map((cell) => cell.weekIndex)) + 1 : 0;
185
+ return {
186
+ cells,
187
+ weekLabels: [],
188
+ totalWeeks,
189
+ maxCount,
190
+ totalCount,
191
+ };
192
+ }
193
+ export function formatShortMonthLabel(monthIndex, locale) {
194
+ if (locale === "ko") {
195
+ return `${monthIndex + 1}월`;
196
+ }
197
+ return new Intl.DateTimeFormat("en-US", { month: "short" }).format(new Date(2000, monthIndex, 1));
198
+ }
199
+ export function buildYearMonthSummary(reports, options) {
200
+ const dailyCounts = countHeatmapActivity(reports, options);
201
+ const buckets = [];
202
+ let maxCount = 0;
203
+ let totalCount = 0;
204
+ for (let monthIndex = 0; monthIndex < 12; monthIndex += 1) {
205
+ const monthKey = `${options.year}-${String(monthIndex + 1).padStart(2, "0")}`;
206
+ let count = 0;
207
+ for (const [dateKey, dayCount] of dailyCounts) {
208
+ if (dateKey.startsWith(`${monthKey}-`)) {
209
+ count += dayCount;
210
+ }
211
+ }
212
+ buckets.push({ monthKey, monthIndex, count });
213
+ maxCount = Math.max(maxCount, count);
214
+ totalCount += count;
215
+ }
216
+ return { buckets, maxCount, totalCount };
217
+ }
218
+ export function buildActivitySummaryFromReports(reports, params) {
219
+ const actorScope = params.actorScope ?? "team";
220
+ const metric = params.metric ?? "created";
221
+ if (params.month) {
222
+ const monthKey = `${params.year}-${String(params.month).padStart(2, "0")}`;
223
+ const grid = buildHeatmapGrid(reports, {
224
+ monthKey,
225
+ actorScope,
226
+ metric,
227
+ viewMode: "daily",
228
+ actorName: params.actorName ?? null,
229
+ });
230
+ const buckets = grid.cells
231
+ .filter((cell) => cell.inRange && cell.dateKey)
232
+ .map((cell) => ({
233
+ dateKey: cell.dateKey,
234
+ count: cell.count,
235
+ }));
236
+ return {
237
+ year: params.year,
238
+ month: params.month,
239
+ buckets,
240
+ totalCount: grid.totalCount,
241
+ };
242
+ }
243
+ const yearSummary = buildYearMonthSummary(reports, {
244
+ year: params.year,
245
+ actorScope,
246
+ metric,
247
+ actorName: params.actorName ?? null,
248
+ });
249
+ return {
250
+ year: params.year,
251
+ buckets: yearSummary.buckets.map((bucket) => ({
252
+ dateKey: bucket.monthKey,
253
+ count: bucket.count,
254
+ })),
255
+ totalCount: yearSummary.totalCount,
256
+ };
257
+ }
258
+ export function getYearMonthCellDelay(monthIndex, staggerMs = 24) {
259
+ return monthIndex * staggerMs;
260
+ }
261
+ export function getYearEntranceDuration(staggerMs = 24, cellDurationMs = 320) {
262
+ return 11 * staggerMs + cellDurationMs;
263
+ }
264
+ export function resolveHeatmapLevel(count, maxCount) {
265
+ if (count <= 0 || maxCount <= 0) {
266
+ return 0;
267
+ }
268
+ const ratio = count / maxCount;
269
+ if (ratio <= 0.25) {
270
+ return 1;
271
+ }
272
+ if (ratio <= 0.5) {
273
+ return 2;
274
+ }
275
+ if (ratio <= 0.75) {
276
+ return 3;
277
+ }
278
+ return 4;
279
+ }
280
+ //# sourceMappingURL=heatmapActivity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"heatmapActivity.js","sourceRoot":"","sources":["../../src/utils/heatmapActivity.ts"],"names":[],"mappings":"AAqCA,MAAM,MAAM,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;AACnC,MAAM,iBAAiB,GAAG,mBAAmB,CAAC;AAE9C,MAAM,UAAU,SAAS,CAAC,IAAU;IAChC,MAAM,IAAI,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC;IAChC,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;IAC3D,MAAM,GAAG,GAAG,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;IAEpD,OAAO,GAAG,IAAI,IAAI,KAAK,IAAI,GAAG,EAAE,CAAC;AACrC,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,IAAU;IACjC,MAAM,IAAI,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC;IAChC,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;IAE3D,OAAO,GAAG,IAAI,IAAI,KAAK,EAAE,CAAC;AAC9B,CAAC;AAED,MAAM,UAAU,aAAa,CAAC,QAAgB;IAC1C,MAAM,KAAK,GAAG,iBAAiB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;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O,CAAC,CAAC;IACb,CAAC;IAED,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,CAAC,CAAC;IACb,CAAC;IAED,OAAO,CAAC,CAAC;AACb,CAAC"}
@@ -0,0 +1,7 @@
1
+ export declare function isValidHexColor(value: string): boolean;
2
+ export declare function hexToDisplay(value: string): string;
3
+ export declare function displayToHex(raw: string): string | null;
4
+ export declare function sanitizeHexDisplayInput(raw: string): string;
5
+ export declare function getHexColorPreview(value: string): string | null;
6
+ export declare function hexToColorInputValue(value: string): string;
7
+ //# sourceMappingURL=hexColor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hexColor.d.ts","sourceRoot":"","sources":["../../src/utils/hexColor.ts"],"names":[],"mappings":"AAEA,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,WAE5C;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,UAEzC;AAED,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,iBAQvC;AAED,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,MAAM,UAElD;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,iBAI/C;AAED,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,UAEjD"}
@@ -0,0 +1,25 @@
1
+ const HEX_COLOR_PATTERN = /^#([0-9a-fA-F]{6})$/;
2
+ export function isValidHexColor(value) {
3
+ return HEX_COLOR_PATTERN.test(value.trim());
4
+ }
5
+ export function hexToDisplay(value) {
6
+ return value.trim().replace(/^#/, "").slice(0, 6);
7
+ }
8
+ export function displayToHex(raw) {
9
+ const digits = raw.replace(/[^0-9a-fA-F]/g, "").slice(0, 6);
10
+ if (digits.length !== 6) {
11
+ return null;
12
+ }
13
+ return `#${digits.toLowerCase()}`;
14
+ }
15
+ export function sanitizeHexDisplayInput(raw) {
16
+ return raw.replace(/[^0-9a-fA-F]/g, "").slice(0, 6);
17
+ }
18
+ export function getHexColorPreview(value) {
19
+ const normalized = value.startsWith("#") ? value : displayToHex(value);
20
+ return normalized && isValidHexColor(normalized) ? normalized : null;
21
+ }
22
+ export function hexToColorInputValue(value) {
23
+ return getHexColorPreview(value) ?? "#000000";
24
+ }
25
+ //# sourceMappingURL=hexColor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hexColor.js","sourceRoot":"","sources":["../../src/utils/hexColor.ts"],"names":[],"mappings":"AAAA,MAAM,iBAAiB,GAAG,qBAAqB,CAAC;AAEhD,MAAM,UAAU,eAAe,CAAC,KAAa;IACzC,OAAO,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC;AAChD,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,KAAa;IACtC,OAAO,KAAK,CAAC,IAAI,EAAE,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AACtD,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,GAAW;IACpC,MAAM,MAAM,GAAG,GAAG,CAAC,OAAO,CAAC,eAAe,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAE5D,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACtB,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,OAAO,IAAI,MAAM,CAAC,WAAW,EAAE,EAAE,CAAC;AACtC,CAAC;AAED,MAAM,UAAU,uBAAuB,CAAC,GAAW;IAC/C,OAAO,GAAG,CAAC,OAAO,CAAC,eAAe,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AACxD,CAAC;AAED,MAAM,UAAU,kBAAkB,CAAC,KAAa;IAC5C,MAAM,UAAU,GAAG,KAAK,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;IAEvE,OAAO,UAAU,IAAI,eAAe,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,CAAC;AACzE,CAAC;AAED,MAAM,UAAU,oBAAoB,CAAC,KAAa;IAC9C,OAAO,kBAAkB,CAAC,KAAK,CAAC,IAAI,SAAS,CAAC;AAClD,CAAC"}
@@ -0,0 +1,19 @@
1
+ import type { ReportFeedback } from "../types/report.js";
2
+ export type HourlyCompareBucket = {
3
+ hour: number;
4
+ todayCount: number;
5
+ yesterdayCount: number;
6
+ };
7
+ export type HourlyCompareSparkline = {
8
+ todayDateKey: string;
9
+ yesterdayDateKey: string;
10
+ currentHour: number;
11
+ buckets: HourlyCompareBucket[];
12
+ maxCount: number;
13
+ todayTotal: number;
14
+ yesterdayTotal: number;
15
+ };
16
+ export declare function resolveHourlyBarHeightPx(count: number, maxCount: number, maxHeightPx?: number, minHeightPx?: number): number;
17
+ export declare function formatHourLabel(hour: number): string;
18
+ export declare function buildHourlyCompareSparkline(reports: ReportFeedback[], referenceDate?: Date): HourlyCompareSparkline;
19
+ //# sourceMappingURL=hourlyCompareSparkline.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hourlyCompareSparkline.d.ts","sourceRoot":"","sources":["../../src/utils/hourlyCompareSparkline.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAGxD,MAAM,MAAM,mBAAmB,GAAG;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACjC,YAAY,EAAE,MAAM,CAAC;IACrB,gBAAgB,EAAE,MAAM,CAAC;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,mBAAmB,EAAE,CAAC;IAC/B,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;CAC1B,CAAC;AAqBF,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,SAAK,EAAE,WAAW,SAAI,UAE1G;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,UAE3C;AAED,wBAAgB,2BAA2B,CAAC,OAAO,EAAE,cAAc,EAAE,EAAE,aAAa,OAAa,GAAG,sBAAsB,CA+CzH"}
@@ -0,0 +1,65 @@
1
+ import { toDateKey } from "../utils/heatmapActivity.js";
2
+ function shiftDateKey(dateKey, deltaDays) {
3
+ const [year, month, day] = dateKey.split("-").map(Number);
4
+ const date = new Date(year, month - 1, day);
5
+ date.setDate(date.getDate() + deltaDays);
6
+ return toDateKey(date);
7
+ }
8
+ function createEmptyHourCounts() {
9
+ return Array.from({ length: 24 }, () => 0);
10
+ }
11
+ function resolveBarHeightPx(count, maxCount, maxHeightPx, minHeightPx) {
12
+ if (count <= 0 || maxCount <= 0) {
13
+ return 0;
14
+ }
15
+ return Math.max(minHeightPx, Math.round((count / maxCount) * maxHeightPx));
16
+ }
17
+ export function resolveHourlyBarHeightPx(count, maxCount, maxHeightPx = 36, minHeightPx = 3) {
18
+ return resolveBarHeightPx(count, maxCount, maxHeightPx, minHeightPx);
19
+ }
20
+ export function formatHourLabel(hour) {
21
+ return `${String(hour).padStart(2, "0")}:00`;
22
+ }
23
+ export function buildHourlyCompareSparkline(reports, referenceDate = new Date()) {
24
+ const todayDateKey = toDateKey(referenceDate);
25
+ const yesterdayDateKey = shiftDateKey(todayDateKey, -1);
26
+ const currentHour = referenceDate.getHours();
27
+ const todayCounts = createEmptyHourCounts();
28
+ const yesterdayCounts = createEmptyHourCounts();
29
+ for (const report of reports) {
30
+ const createdAt = new Date(report.created_at);
31
+ if (Number.isNaN(createdAt.getTime())) {
32
+ continue;
33
+ }
34
+ const createdKey = toDateKey(createdAt);
35
+ const hour = createdAt.getHours();
36
+ if (createdKey === todayDateKey) {
37
+ todayCounts[hour] += 1;
38
+ }
39
+ else if (createdKey === yesterdayDateKey) {
40
+ yesterdayCounts[hour] += 1;
41
+ }
42
+ }
43
+ let maxCount = 0;
44
+ let todayTotal = 0;
45
+ let yesterdayTotal = 0;
46
+ const buckets = [];
47
+ for (let hour = 0; hour < 24; hour += 1) {
48
+ const todayCount = todayCounts[hour] ?? 0;
49
+ const yesterdayCount = yesterdayCounts[hour] ?? 0;
50
+ todayTotal += todayCount;
51
+ yesterdayTotal += yesterdayCount;
52
+ maxCount = Math.max(maxCount, todayCount, yesterdayCount);
53
+ buckets.push({ hour, todayCount, yesterdayCount });
54
+ }
55
+ return {
56
+ todayDateKey,
57
+ yesterdayDateKey,
58
+ currentHour,
59
+ buckets,
60
+ maxCount,
61
+ todayTotal,
62
+ yesterdayTotal,
63
+ };
64
+ }
65
+ //# sourceMappingURL=hourlyCompareSparkline.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hourlyCompareSparkline.js","sourceRoot":"","sources":["../../src/utils/hourlyCompareSparkline.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAkBvD,SAAS,YAAY,CAAC,OAAe,EAAE,SAAiB;IACpD,MAAM,CAAC,IAAI,EAAE,KAAK,EAAE,GAAG,CAAC,GAAG,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IAC1D,MAAM,IAAI,GAAG,IAAI,IAAI,CAAC,IAAI,EAAE,KAAK,GAAG,CAAC,EAAE,GAAG,CAAC,CAAC;IAC5C,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,GAAG,SAAS,CAAC,CAAC;IACzC,OAAO,SAAS,CAAC,IAAI,CAAC,CAAC;AAC3B,CAAC;AAED,SAAS,qBAAqB;IAC1B,OAAO,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,EAAE,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AAS,CAAC,OAAO,EAAE,CAAC,EAAE,CAAC;YACpC,SAAS;QACb,CAAC;QAED,MAAM,UAAU,GAAG,SAAS,CAAC,SAAS,CAAC,CAAC;QACxC,MAAM,IAAI,GAAG,SAAS,CAAC,QAAQ,EAAE,CAAC;QAElC,IAAI,UAAU,KAAK,YAAY,EAAE,CAAC;YAC9B,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC3B,CAAC;aAAM,IAAI,UAAU,KAAK,gBAAgB,EAAE,CAAC;YACzC,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC/B,CAAC;IACL,CAAC;IAED,IAAI,QAAQ,GAAG,CAAC,CAAC;IACjB,IAAI,UAAU,GAAG,CAAC,CAAC;IACnB,IAAI,cAAc,GAAG,CAAC,CAAC;IACvB,MAAM,OAAO,GAA0B,EAAE,CAAC;IAE1C,KAAK,IAAI,IAAI,GAAG,CAAC,EAAE,IAAI,GAAG,EAAE,EAAE,IAAI,IAAI,CAAC,EAAE,CAAC;QACtC,MAAM,UAAU,GAAG,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC1C,MAAM,cAAc,GAAG,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAClD,UAAU,IAAI,UAAU,CAAC;QACzB,cAAc,IAAI,cAAc,CAAC;QACjC,QAAQ,GAAG,IAAI,CAAC,GAAG,CAAC,QAAQ,EAAE,UAAU,EAAE,cAAc,CAAC,CAAC;QAC1D,OAAO,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,cAAc,EAAE,CAAC,CAAC;IACvD,CAAC;IAED,OAAO;QACH,YAAY;QACZ,gBAAgB;QAChB,WAAW;QACX,OAAO;QACP,QAAQ;QACR,UAAU;QACV,cAAc;KACjB,CAAC;AACN,CAAC"}
@@ -2,11 +2,11 @@ import type { ReportFeedback } from "../types/report.js";
2
2
  export { isFeedbackTargetVisible } from "./dom.js";
3
3
  export declare const LOCATE_PULSE_DURATION_MS = 2400;
4
4
  export declare const TARGET_REVEAL_RESYNC_DELAY_MS = 50;
5
- export declare function getFeedbackTargetElement(report: Pick<ReportFeedback, "report_id" | "report_type">): HTMLElement | null;
6
- export declare function getFeedbackAnchorElement(report: Pick<ReportFeedback, "anchor_report_id" | "anchor_report_type">): HTMLElement | null;
5
+ export declare function getFeedbackTargetElement(report: Pick<ReportFeedback, "report_id" | "report_type" | "target_selector">): HTMLElement | null;
6
+ export declare function getFeedbackAnchorElement(report: Pick<ReportFeedback, "position">): HTMLElement | null;
7
7
  export declare function isFeedbackTargetDetached(report: Pick<ReportFeedback, "report_id" | "report_type">): boolean;
8
8
  export declare function waitForTargetRevealResync(): Promise<void>;
9
- export declare function scrollToFeedbackTarget(report: Pick<ReportFeedback, "report_id" | "report_type" | "scroll_y" | "anchor_report_id" | "anchor_report_type">): {
9
+ export declare function scrollToFeedbackTarget(report: Pick<ReportFeedback, "report_id" | "report_type" | "position">): {
10
10
  foundElement: true;
11
11
  targetElement: HTMLElement;
12
12
  } | {
@@ -1 +1 @@
1
- {"version":3,"file":"locateFeedback.d.ts","sourceRoot":"","sources":["../../src/utils/locateFeedback.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAGxD,OAAO,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAEnD,eAAO,MAAM,wBAAwB,OAAO,CAAC;AAC7C,eAAO,MAAM,6BAA6B,KAAK,CAAC;AAEhD,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,IAAI,CAAC,cAAc,EAAE,WAAW,GAAG,aAAa,CAAC,sBAIjG;AAED,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,IAAI,CAAC,cAAc,EAAE,kBAAkB,GAAG,oBAAoB,CAAC,sBAQ/G;AAED,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,IAAI,CAAC,cAAc,EAAE,WAAW,GAAG,aAAa,CAAC,WAQjG;AAED,wBAAgB,yBAAyB,kBAQxC;AAED,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,IAAI,CAAC,cAAc,EAAE,WAAW,GAAG,aAAa,GAAG,UAAU,GAAG,kBAAkB,GAAG,oBAAoB,CAAC;;;;;;EAiBxJ"}
1
+ {"version":3,"file":"locateFeedback.d.ts","sourceRoot":"","sources":["../../src/utils/locateFeedback.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAIxD,OAAO,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAEnD,eAAO,MAAM,wBAAwB,OAAO,CAAC;AAC7C,eAAO,MAAM,6BAA6B,KAAK,CAAC;AAEhD,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,IAAI,CAAC,cAAc,EAAE,WAAW,GAAG,aAAa,GAAG,iBAAiB,CAAC,sBAYrH;AAED,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,IAAI,CAAC,cAAc,EAAE,UAAU,CAAC,sBAUhF;AAED,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,IAAI,CAAC,cAAc,EAAE,WAAW,GAAG,aAAa,CAAC,WAQjG;AAED,wBAAgB,yBAAyB,kBAQxC;AAED,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,IAAI,CAAC,cAAc,EAAE,WAAW,GAAG,aAAa,GAAG,UAAU,CAAC;;;;;;EAiB5G"}
@@ -1,16 +1,24 @@
1
1
  import { getFeedbackTargetSelector, isFeedbackTargetVisible } from "./dom.js";
2
+ import { findElementByTargetSelector } from "./targetSelector.js";
2
3
  export { isFeedbackTargetVisible } from "./dom.js";
3
4
  export const LOCATE_PULSE_DURATION_MS = 2400;
4
5
  export const TARGET_REVEAL_RESYNC_DELAY_MS = 50;
5
6
  export function getFeedbackTargetElement(report) {
7
+ if (report.target_selector) {
8
+ const bySelector = findElementByTargetSelector(report.target_selector);
9
+ if (bySelector) {
10
+ return bySelector;
11
+ }
12
+ }
6
13
  const selector = getFeedbackTargetSelector(report.report_id, report.report_type);
7
14
  return document.querySelector(selector);
8
15
  }
9
16
  export function getFeedbackAnchorElement(report) {
10
- if (!report.anchor_report_id || !report.anchor_report_type) {
17
+ const anchor = report.position.anchor;
18
+ if (!anchor) {
11
19
  return null;
12
20
  }
13
- const selector = getFeedbackTargetSelector(report.anchor_report_id, report.anchor_report_type);
21
+ const selector = getFeedbackTargetSelector(anchor.reportId, anchor.reportType);
14
22
  return document.querySelector(selector);
15
23
  }
16
24
  export function isFeedbackTargetDetached(report) {
@@ -40,7 +48,7 @@ export function scrollToFeedbackTarget(report) {
40
48
  anchorElement.scrollIntoView({ block: "center", inline: "nearest", behavior: "smooth" });
41
49
  return { foundElement: true, targetElement: anchorElement };
42
50
  }
43
- window.scrollTo({ top: report.scroll_y, behavior: "smooth" });
51
+ window.scrollTo({ top: report.position.scrollY, behavior: "smooth" });
44
52
  return { foundElement: false, targetElement: null };
45
53
  }
46
54
  //# sourceMappingURL=locateFeedback.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"locateFeedback.js","sourceRoot":"","sources":["../../src/utils/locateFeedback.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,yBAAyB,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAE9E,OAAO,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAEnD,MAAM,CAAC,MAAM,wBAAwB,GAAG,IAAI,CAAC;AAC7C,MAAM,CAAC,MAAM,6BAA6B,GAAG,EAAE,CAAC;AAEhD,MAAM,UAAU,wBAAwB,CAAC,MAAyD;IAC9F,MAAM,QAAQ,GAAG,yBAAyB,CAAC,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,WAAW,CAAC,CAAC;IAEjF,OAAO,QAAQ,CAAC,aAAa,CAAc,QAAQ,CAAC,CAAC;AACzD,CAAC;AAED,MAAM,UAAU,wBAAwB,CAAC,MAAuE;IAC5G,IAAI,CAAC,MAAM,CAAC,gBAAgB,IAAI,CAAC,MAAM,C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,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC,CAAC;QACzF,OAAO,EAAE,YAAY,EAAE,IAAa,EAAE,aAAa,EAAE,aAAa,EAAE,CAAC;IACzE,CAAC;IAED,MAAM,CAAC,QAAQ,CAAC,EAAE,GAAG,EAAE,MAAM,CAAC,QAAQ,CAAC,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC,CAAC;IACtE,OAAO,EAAE,YAAY,EAAE,KAAc,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC;AACjE,CAAC"}
@@ -0,0 +1,30 @@
1
+ import type { ReportFeedback } from "../types/report.js";
2
+ import type { MarkerDetachedKind } from "../types/report-ui.js";
3
+ export type ModalGhostFrame = {
4
+ backdrop: {
5
+ left: number;
6
+ top: number;
7
+ width: number;
8
+ height: number;
9
+ };
10
+ dialog: {
11
+ left: number;
12
+ top: number;
13
+ width: number;
14
+ height: number;
15
+ };
16
+ };
17
+ export declare function isModalReportId(reportId: string): boolean;
18
+ export declare function usesViewportDetachedCoords(report: Pick<ReportFeedback, "position">): boolean;
19
+ export declare function resolveDetachedKind(report: Pick<ReportFeedback, "report_id" | "position">, targetElement: HTMLElement | null, detached: boolean): MarkerDetachedKind;
20
+ export declare function formatModalReportLabel(reportId: string): string;
21
+ export declare function getModalGhostFrame(report: Pick<ReportFeedback, "position">): ModalGhostFrame;
22
+ export declare function getDetachedMarkerHint(detachedKind: MarkerDetachedKind, messages: {
23
+ detachedHint: string;
24
+ detachedModalHint: string;
25
+ }): string | null;
26
+ export declare function getDetachedMarkerAriaLabel(detachedKind: MarkerDetachedKind, messages: {
27
+ detachedAriaLabel: string;
28
+ detachedModalAriaLabel: string;
29
+ }): string;
30
+ //# sourceMappingURL=markerContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"markerContext.d.ts","sourceRoot":"","sources":["../../src/utils/markerContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAA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PATTERN = /(?:^|-)(modal|overlay|dialog)(?:-|$)/i;
3
+ const MODAL_GHOST_DIALOG_WIDTH = 480;
4
+ const MODAL_GHOST_DIALOG_HEIGHT = 280;
5
+ const MODAL_GHOST_DIALOG_MAX_WIDTH_RATIO = 0.92;
6
+ export function isModalReportId(reportId) {
7
+ return MODAL_REPORT_ID_PATTERN.test(reportId);
8
+ }
9
+ export function usesViewportDetachedCoords(report) {
10
+ return !report.position.anchor && report.position.viewport.width > 0;
11
+ }
12
+ export function resolveDetachedKind(report, targetElement, detached) {
13
+ if (!detached) {
14
+ return null;
15
+ }
16
+ if (isModalReportId(report.report_id)) {
17
+ return "modal";
18
+ }
19
+ if (usesViewportDetachedCoords(report)) {
20
+ return "modal";
21
+ }
22
+ if (targetElement && hasFixedPositionAncestor(targetElement)) {
23
+ return "modal";
24
+ }
25
+ return "hidden";
26
+ }
27
+ export function formatModalReportLabel(reportId) {
28
+ const withoutPrefix = reportId.replace(/^modal-/, "");
29
+ const name = withoutPrefix
30
+ .replace(/-(overlay|target|open|demo)$/, "")
31
+ .split("-")
32
+ .filter(Boolean)
33
+ .map((word) => word.charAt(0).toUpperCase() + word.slice(1))
34
+ .join(" ");
35
+ return name ? `${name} modal` : "Modal";
36
+ }
37
+ export function getModalGhostFrame(report) {
38
+ const { viewport } = report.position;
39
+ const widthScale = viewport.width > 0 ? window.innerWidth / viewport.width : 1;
40
+ const heightScale = viewport.height > 0 ? window.innerHeight / viewport.height : 1;
41
+ const centerX = viewport.width * viewport.x * widthScale;
42
+ const centerY = viewport.height * viewport.y * heightScale;
43
+ const dialogWidth = Math.min(MODAL_GHOST_DIALOG_WIDTH * widthScale, window.innerWidth * MODAL_GHOST_DIALOG_MAX_WIDTH_RATIO);
44
+ const dialogHeight = MODAL_GHOST_DIALOG_HEIGHT * heightScale;
45
+ return {
46
+ backdrop: {
47
+ left: 0,
48
+ top: 0,
49
+ width: window.innerWidth,
50
+ height: window.innerHeight,
51
+ },
52
+ dialog: {
53
+ left: centerX - dialogWidth / 2,
54
+ top: centerY - dialogHeight / 2,
55
+ width: dialogWidth,
56
+ height: dialogHeight,
57
+ },
58
+ };
59
+ }
60
+ export function getDetachedMarkerHint(detachedKind, messages) {
61
+ if (detachedKind === "modal") {
62
+ return messages.detachedModalHint;
63
+ }
64
+ if (detachedKind === "hidden") {
65
+ return messages.detachedHint;
66
+ }
67
+ return null;
68
+ }
69
+ export function getDetachedMarkerAriaLabel(detachedKind, messages) {
70
+ if (detachedKind === "modal") {
71
+ return messages.detachedModalAriaLabel;
72
+ }
73
+ if (detachedKind === "hidden") {
74
+ return messages.detachedAriaLabel;
75
+ }
76
+ return messages.detachedAriaLabel;
77
+ }
78
+ //# sourceMappingURL=markerContext.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"markerContext.js","sourceRoot":"","sources":["../../src/utils/markerContext.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAEpD,MAAM,uBAAuB,GAAG,uCAAuC,CAAC;AAiBxE,MAAM,wBAAwB,GAAG,GAAG,CAAC;AACrC,MAAM,yBAAyB,GAAG,GAAG,CAAC;AACtC,MAAM,kCAAkC,GAAG,IAAI,CAAC;AAEhD,MAAM,UAAU,eAAe,CAAC,QAAgB;IAC5C,OAAO,uBAAuB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;AAClD,CAAC;AAED,MAAM,UAAU,0BAA0B,CAAC,MAAwC;IAC/E,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,IAAI,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,KAAK,GAAG,CAAC,CAAC;AACzE,CAAC;AAED,MAAM,UAAU,mBAAmB,CAC/B,MAAsD,EACtD,aAAiC,EACjC,QAAiB;IAEjB,IAAI,CAAC,QAAQ,EAAE,CAAC;QACZ,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,IAAI,eAAe,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE,C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1,5 @@
1
+ import { type AppearanceScale } from "../constants/markerAppearance.js";
2
+ export declare function setMarkerDotSizeFromScale(scale: AppearanceScale): void;
3
+ export declare function getMarkerDotSize(): number;
4
+ export declare function resetMarkerDotSize(): void;
5
+ //# sourceMappingURL=markerRuntime.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"markerRuntime.d.ts","sourceRoot":"","sources":["../../src/utils/markerRuntime.ts"],"names":[],"mappings":"AACA,OAAO,EAAsB,KAAK,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAI3F,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,eAAe,QAE/D;AAED,wBAAgB,gBAAgB,WAE/B;AAED,wBAAgB,kBAAkB,SAEjC"}