@cratis/showrunner.usher.react 0.0.0-bootstrap.0 → 0.0.0-stage

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 (507) hide show
  1. package/README.md +2 -71
  2. package/package.json +4 -83
  3. package/Buttons/MyIssuesButton.tsx +0 -78
  4. package/Buttons/ReportButton.tsx +0 -51
  5. package/Buttons/buttonModels.ts +0 -55
  6. package/Buttons/index.ts +0 -6
  7. package/Correlation/CorrelationTracker.ts +0 -51
  8. package/Correlation/index.ts +0 -5
  9. package/Correlation/withCorrelationIdHeader.ts +0 -44
  10. package/Icons.tsx +0 -29
  11. package/Issues/IssueView/AccessPanel.tsx +0 -85
  12. package/Issues/IssueView/GrantAccessDialog.tsx +0 -56
  13. package/Issues/IssueView/IdentityPanel.tsx +0 -38
  14. package/Issues/IssueView/IssueActions.tsx +0 -52
  15. package/Issues/IssueView/IssueConversationPanel.tsx +0 -89
  16. package/Issues/IssueView/IssueHeader.tsx +0 -69
  17. package/Issues/IssueView/IssueView.tsx +0 -74
  18. package/Issues/IssueView/QuestionBanner.tsx +0 -27
  19. package/Issues/IssueView/ReopenIssueDialog.tsx +0 -37
  20. package/Issues/IssueView/ShareIdentityDialog.tsx +0 -37
  21. package/Issues/IssueView/StatusStrip.tsx +0 -42
  22. package/Issues/IssueView/SupportSessions.tsx +0 -59
  23. package/Issues/IssueView/index.ts +0 -15
  24. package/Issues/MyIssues/IssueList.tsx +0 -78
  25. package/Issues/MyIssues/MyIssuesDialog.tsx +0 -64
  26. package/Issues/MyIssues/MyIssuesNavigation.ts +0 -61
  27. package/Issues/MyIssues/index.ts +0 -6
  28. package/Issues/MyIssuesList.ts +0 -33
  29. package/Issues/accessStatus.ts +0 -68
  30. package/Issues/conversationMessages.ts +0 -136
  31. package/Issues/index.ts +0 -12
  32. package/Issues/issueStates.ts +0 -69
  33. package/Issues/sessionActivity.ts +0 -43
  34. package/Issues/useAccessStatus.ts +0 -24
  35. package/Issues/webAddress.ts +0 -22
  36. package/Labels/UsherLabels.ts +0 -365
  37. package/Labels/defaultUsherLabels.ts +0 -178
  38. package/Labels/format.ts +0 -13
  39. package/Labels/index.ts +0 -7
  40. package/Labels/resolveLabels.ts +0 -36
  41. package/Provider/UsherBoundary.tsx +0 -30
  42. package/Provider/UsherContext.ts +0 -109
  43. package/Provider/UsherProvider.tsx +0 -134
  44. package/Provider/index.ts +0 -7
  45. package/Provider/useUsher.ts +0 -72
  46. package/Reporting/AccessChoice.ts +0 -107
  47. package/Reporting/AccessFields.tsx +0 -74
  48. package/Reporting/AccessNotice.tsx +0 -33
  49. package/Reporting/ReportErrorDialog.tsx +0 -94
  50. package/Reporting/ReportIssueDialog.tsx +0 -80
  51. package/Reporting/ReportLimits.ts +0 -24
  52. package/Reporting/ReportSent.ts +0 -12
  53. package/Reporting/SentWithReport.tsx +0 -37
  54. package/Reporting/TechnicalDetails.tsx +0 -60
  55. package/Reporting/durationOptions.ts +0 -31
  56. package/Reporting/formatLocation.ts +0 -27
  57. package/Reporting/index.ts +0 -16
  58. package/Reporting/reportValues.ts +0 -150
  59. package/Reporting/useAccessChoice.ts +0 -53
  60. package/dist/cjs/Buttons/MyIssuesButton.d.ts +0 -14
  61. package/dist/cjs/Buttons/MyIssuesButton.d.ts.map +0 -1
  62. package/dist/cjs/Buttons/MyIssuesButton.js +0 -76
  63. package/dist/cjs/Buttons/MyIssuesButton.js.map +0 -1
  64. package/dist/cjs/Buttons/ReportButton.d.ts +0 -8
  65. package/dist/cjs/Buttons/ReportButton.d.ts.map +0 -1
  66. package/dist/cjs/Buttons/ReportButton.js +0 -34
  67. package/dist/cjs/Buttons/ReportButton.js.map +0 -1
  68. package/dist/cjs/Buttons/buttonModels.d.ts +0 -10
  69. package/dist/cjs/Buttons/buttonModels.d.ts.map +0 -1
  70. package/dist/cjs/Buttons/buttonModels.js +0 -44
  71. package/dist/cjs/Buttons/buttonModels.js.map +0 -1
  72. package/dist/cjs/Buttons/index.d.ts +0 -4
  73. package/dist/cjs/Buttons/index.d.ts.map +0 -1
  74. package/dist/cjs/Correlation/CorrelationTracker.d.ts +0 -10
  75. package/dist/cjs/Correlation/CorrelationTracker.d.ts.map +0 -1
  76. package/dist/cjs/Correlation/CorrelationTracker.js +0 -50
  77. package/dist/cjs/Correlation/CorrelationTracker.js.map +0 -1
  78. package/dist/cjs/Correlation/index.d.ts +0 -3
  79. package/dist/cjs/Correlation/index.d.ts.map +0 -1
  80. package/dist/cjs/Correlation/withCorrelationIdHeader.d.ts +0 -6
  81. package/dist/cjs/Correlation/withCorrelationIdHeader.d.ts.map +0 -1
  82. package/dist/cjs/Correlation/withCorrelationIdHeader.js +0 -39
  83. package/dist/cjs/Correlation/withCorrelationIdHeader.js.map +0 -1
  84. package/dist/cjs/Icons.d.ts +0 -4
  85. package/dist/cjs/Icons.d.ts.map +0 -1
  86. package/dist/cjs/Icons.js +0 -53
  87. package/dist/cjs/Icons.js.map +0 -1
  88. package/dist/cjs/Issues/IssueView/AccessPanel.d.ts +0 -6
  89. package/dist/cjs/Issues/IssueView/AccessPanel.d.ts.map +0 -1
  90. package/dist/cjs/Issues/IssueView/AccessPanel.js +0 -124
  91. package/dist/cjs/Issues/IssueView/AccessPanel.js.map +0 -1
  92. package/dist/cjs/Issues/IssueView/GrantAccessDialog.d.ts +0 -6
  93. package/dist/cjs/Issues/IssueView/GrantAccessDialog.d.ts.map +0 -1
  94. package/dist/cjs/Issues/IssueView/GrantAccessDialog.js +0 -56
  95. package/dist/cjs/Issues/IssueView/GrantAccessDialog.js.map +0 -1
  96. package/dist/cjs/Issues/IssueView/IdentityPanel.d.ts +0 -6
  97. package/dist/cjs/Issues/IssueView/IdentityPanel.d.ts.map +0 -1
  98. package/dist/cjs/Issues/IssueView/IdentityPanel.js +0 -45
  99. package/dist/cjs/Issues/IssueView/IdentityPanel.js.map +0 -1
  100. package/dist/cjs/Issues/IssueView/IssueActions.d.ts +0 -6
  101. package/dist/cjs/Issues/IssueView/IssueActions.d.ts.map +0 -1
  102. package/dist/cjs/Issues/IssueView/IssueActions.js +0 -58
  103. package/dist/cjs/Issues/IssueView/IssueActions.js.map +0 -1
  104. package/dist/cjs/Issues/IssueView/IssueConversationPanel.d.ts +0 -6
  105. package/dist/cjs/Issues/IssueView/IssueConversationPanel.d.ts.map +0 -1
  106. package/dist/cjs/Issues/IssueView/IssueConversationPanel.js +0 -97
  107. package/dist/cjs/Issues/IssueView/IssueConversationPanel.js.map +0 -1
  108. package/dist/cjs/Issues/IssueView/IssueHeader.d.ts +0 -7
  109. package/dist/cjs/Issues/IssueView/IssueHeader.d.ts.map +0 -1
  110. package/dist/cjs/Issues/IssueView/IssueHeader.js +0 -94
  111. package/dist/cjs/Issues/IssueView/IssueHeader.js.map +0 -1
  112. package/dist/cjs/Issues/IssueView/IssueView.d.ts +0 -7
  113. package/dist/cjs/Issues/IssueView/IssueView.d.ts.map +0 -1
  114. package/dist/cjs/Issues/IssueView/IssueView.js +0 -85
  115. package/dist/cjs/Issues/IssueView/IssueView.js.map +0 -1
  116. package/dist/cjs/Issues/IssueView/QuestionBanner.d.ts +0 -5
  117. package/dist/cjs/Issues/IssueView/QuestionBanner.d.ts.map +0 -1
  118. package/dist/cjs/Issues/IssueView/QuestionBanner.js +0 -24
  119. package/dist/cjs/Issues/IssueView/QuestionBanner.js.map +0 -1
  120. package/dist/cjs/Issues/IssueView/ReopenIssueDialog.d.ts +0 -6
  121. package/dist/cjs/Issues/IssueView/ReopenIssueDialog.d.ts.map +0 -1
  122. package/dist/cjs/Issues/IssueView/ReopenIssueDialog.js +0 -34
  123. package/dist/cjs/Issues/IssueView/ReopenIssueDialog.js.map +0 -1
  124. package/dist/cjs/Issues/IssueView/ShareIdentityDialog.d.ts +0 -6
  125. package/dist/cjs/Issues/IssueView/ShareIdentityDialog.d.ts.map +0 -1
  126. package/dist/cjs/Issues/IssueView/ShareIdentityDialog.js +0 -32
  127. package/dist/cjs/Issues/IssueView/ShareIdentityDialog.js.map +0 -1
  128. package/dist/cjs/Issues/IssueView/StatusStrip.d.ts +0 -6
  129. package/dist/cjs/Issues/IssueView/StatusStrip.d.ts.map +0 -1
  130. package/dist/cjs/Issues/IssueView/StatusStrip.js +0 -31
  131. package/dist/cjs/Issues/IssueView/StatusStrip.js.map +0 -1
  132. package/dist/cjs/Issues/IssueView/SupportSessions.d.ts +0 -7
  133. package/dist/cjs/Issues/IssueView/SupportSessions.d.ts.map +0 -1
  134. package/dist/cjs/Issues/IssueView/SupportSessions.js +0 -62
  135. package/dist/cjs/Issues/IssueView/SupportSessions.js.map +0 -1
  136. package/dist/cjs/Issues/IssueView/index.d.ts +0 -13
  137. package/dist/cjs/Issues/IssueView/index.d.ts.map +0 -1
  138. package/dist/cjs/Issues/MyIssues/IssueList.d.ts +0 -7
  139. package/dist/cjs/Issues/MyIssues/IssueList.d.ts.map +0 -1
  140. package/dist/cjs/Issues/MyIssues/IssueList.js +0 -92
  141. package/dist/cjs/Issues/MyIssues/IssueList.js.map +0 -1
  142. package/dist/cjs/Issues/MyIssues/MyIssuesDialog.d.ts +0 -7
  143. package/dist/cjs/Issues/MyIssues/MyIssuesDialog.d.ts.map +0 -1
  144. package/dist/cjs/Issues/MyIssues/MyIssuesDialog.js +0 -79
  145. package/dist/cjs/Issues/MyIssues/MyIssuesDialog.js.map +0 -1
  146. package/dist/cjs/Issues/MyIssues/MyIssuesNavigation.d.ts +0 -21
  147. package/dist/cjs/Issues/MyIssues/MyIssuesNavigation.d.ts.map +0 -1
  148. package/dist/cjs/Issues/MyIssues/MyIssuesNavigation.js +0 -52
  149. package/dist/cjs/Issues/MyIssues/MyIssuesNavigation.js.map +0 -1
  150. package/dist/cjs/Issues/MyIssues/index.d.ts +0 -4
  151. package/dist/cjs/Issues/MyIssues/index.d.ts.map +0 -1
  152. package/dist/cjs/Issues/MyIssuesList.d.ts +0 -7
  153. package/dist/cjs/Issues/MyIssuesList.d.ts.map +0 -1
  154. package/dist/cjs/Issues/MyIssuesList.js +0 -33
  155. package/dist/cjs/Issues/MyIssuesList.js.map +0 -1
  156. package/dist/cjs/Issues/accessStatus.d.ts +0 -13
  157. package/dist/cjs/Issues/accessStatus.d.ts.map +0 -1
  158. package/dist/cjs/Issues/accessStatus.js +0 -60
  159. package/dist/cjs/Issues/accessStatus.js.map +0 -1
  160. package/dist/cjs/Issues/conversationMessages.d.ts +0 -14
  161. package/dist/cjs/Issues/conversationMessages.d.ts.map +0 -1
  162. package/dist/cjs/Issues/conversationMessages.js +0 -131
  163. package/dist/cjs/Issues/conversationMessages.js.map +0 -1
  164. package/dist/cjs/Issues/index.d.ts +0 -10
  165. package/dist/cjs/Issues/index.d.ts.map +0 -1
  166. package/dist/cjs/Issues/issueStates.d.ts +0 -12
  167. package/dist/cjs/Issues/issueStates.d.ts.map +0 -1
  168. package/dist/cjs/Issues/issueStates.js +0 -86
  169. package/dist/cjs/Issues/issueStates.js.map +0 -1
  170. package/dist/cjs/Issues/sessionActivity.d.ts +0 -8
  171. package/dist/cjs/Issues/sessionActivity.d.ts.map +0 -1
  172. package/dist/cjs/Issues/sessionActivity.js +0 -39
  173. package/dist/cjs/Issues/sessionActivity.js.map +0 -1
  174. package/dist/cjs/Issues/useAccessStatus.d.ts +0 -4
  175. package/dist/cjs/Issues/useAccessStatus.d.ts.map +0 -1
  176. package/dist/cjs/Issues/useAccessStatus.js +0 -30
  177. package/dist/cjs/Issues/useAccessStatus.js.map +0 -1
  178. package/dist/cjs/Issues/webAddress.d.ts +0 -2
  179. package/dist/cjs/Issues/webAddress.d.ts.map +0 -1
  180. package/dist/cjs/Issues/webAddress.js +0 -24
  181. package/dist/cjs/Issues/webAddress.js.map +0 -1
  182. package/dist/cjs/Labels/UsherLabels.d.ts +0 -177
  183. package/dist/cjs/Labels/UsherLabels.d.ts.map +0 -1
  184. package/dist/cjs/Labels/defaultUsherLabels.d.ts +0 -3
  185. package/dist/cjs/Labels/defaultUsherLabels.d.ts.map +0 -1
  186. package/dist/cjs/Labels/defaultUsherLabels.js +0 -179
  187. package/dist/cjs/Labels/defaultUsherLabels.js.map +0 -1
  188. package/dist/cjs/Labels/format.d.ts +0 -2
  189. package/dist/cjs/Labels/format.d.ts.map +0 -1
  190. package/dist/cjs/Labels/format.js +0 -15
  191. package/dist/cjs/Labels/format.js.map +0 -1
  192. package/dist/cjs/Labels/index.d.ts +0 -5
  193. package/dist/cjs/Labels/index.d.ts.map +0 -1
  194. package/dist/cjs/Labels/resolveLabels.d.ts +0 -3
  195. package/dist/cjs/Labels/resolveLabels.d.ts.map +0 -1
  196. package/dist/cjs/Labels/resolveLabels.js +0 -35
  197. package/dist/cjs/Labels/resolveLabels.js.map +0 -1
  198. package/dist/cjs/Provider/UsherBoundary.d.ts +0 -6
  199. package/dist/cjs/Provider/UsherBoundary.d.ts.map +0 -1
  200. package/dist/cjs/Provider/UsherBoundary.js +0 -24
  201. package/dist/cjs/Provider/UsherBoundary.js.map +0 -1
  202. package/dist/cjs/Provider/UsherContext.d.ts +0 -24
  203. package/dist/cjs/Provider/UsherContext.d.ts.map +0 -1
  204. package/dist/cjs/Provider/UsherContext.js +0 -41
  205. package/dist/cjs/Provider/UsherContext.js.map +0 -1
  206. package/dist/cjs/Provider/UsherProvider.d.ts +0 -14
  207. package/dist/cjs/Provider/UsherProvider.d.ts.map +0 -1
  208. package/dist/cjs/Provider/UsherProvider.js +0 -122
  209. package/dist/cjs/Provider/UsherProvider.js.map +0 -1
  210. package/dist/cjs/Provider/index.d.ts +0 -5
  211. package/dist/cjs/Provider/index.d.ts.map +0 -1
  212. package/dist/cjs/Provider/useUsher.d.ts +0 -13
  213. package/dist/cjs/Provider/useUsher.d.ts.map +0 -1
  214. package/dist/cjs/Provider/useUsher.js +0 -31
  215. package/dist/cjs/Provider/useUsher.js.map +0 -1
  216. package/dist/cjs/Reporting/AccessChoice.d.ts +0 -13
  217. package/dist/cjs/Reporting/AccessChoice.d.ts.map +0 -1
  218. package/dist/cjs/Reporting/AccessChoice.js +0 -113
  219. package/dist/cjs/Reporting/AccessChoice.js.map +0 -1
  220. package/dist/cjs/Reporting/AccessFields.d.ts +0 -12
  221. package/dist/cjs/Reporting/AccessFields.d.ts.map +0 -1
  222. package/dist/cjs/Reporting/AccessFields.js +0 -79
  223. package/dist/cjs/Reporting/AccessFields.js.map +0 -1
  224. package/dist/cjs/Reporting/AccessNotice.d.ts +0 -7
  225. package/dist/cjs/Reporting/AccessNotice.d.ts.map +0 -1
  226. package/dist/cjs/Reporting/AccessNotice.js +0 -28
  227. package/dist/cjs/Reporting/AccessNotice.js.map +0 -1
  228. package/dist/cjs/Reporting/ReportErrorDialog.d.ts +0 -9
  229. package/dist/cjs/Reporting/ReportErrorDialog.d.ts.map +0 -1
  230. package/dist/cjs/Reporting/ReportErrorDialog.js +0 -87
  231. package/dist/cjs/Reporting/ReportErrorDialog.js.map +0 -1
  232. package/dist/cjs/Reporting/ReportIssueDialog.d.ts +0 -8
  233. package/dist/cjs/Reporting/ReportIssueDialog.d.ts.map +0 -1
  234. package/dist/cjs/Reporting/ReportIssueDialog.js +0 -81
  235. package/dist/cjs/Reporting/ReportIssueDialog.js.map +0 -1
  236. package/dist/cjs/Reporting/ReportLimits.d.ts +0 -8
  237. package/dist/cjs/Reporting/ReportLimits.d.ts.map +0 -1
  238. package/dist/cjs/Reporting/ReportLimits.js +0 -19
  239. package/dist/cjs/Reporting/ReportLimits.js.map +0 -1
  240. package/dist/cjs/Reporting/ReportSent.d.ts +0 -5
  241. package/dist/cjs/Reporting/ReportSent.d.ts.map +0 -1
  242. package/dist/cjs/Reporting/SentWithReport.d.ts +0 -7
  243. package/dist/cjs/Reporting/SentWithReport.d.ts.map +0 -1
  244. package/dist/cjs/Reporting/SentWithReport.js +0 -40
  245. package/dist/cjs/Reporting/SentWithReport.js.map +0 -1
  246. package/dist/cjs/Reporting/TechnicalDetails.d.ts +0 -9
  247. package/dist/cjs/Reporting/TechnicalDetails.d.ts.map +0 -1
  248. package/dist/cjs/Reporting/TechnicalDetails.js +0 -75
  249. package/dist/cjs/Reporting/TechnicalDetails.js.map +0 -1
  250. package/dist/cjs/Reporting/durationOptions.d.ts +0 -9
  251. package/dist/cjs/Reporting/durationOptions.d.ts.map +0 -1
  252. package/dist/cjs/Reporting/durationOptions.js +0 -29
  253. package/dist/cjs/Reporting/durationOptions.js.map +0 -1
  254. package/dist/cjs/Reporting/formatLocation.d.ts +0 -7
  255. package/dist/cjs/Reporting/formatLocation.d.ts.map +0 -1
  256. package/dist/cjs/Reporting/formatLocation.js +0 -23
  257. package/dist/cjs/Reporting/formatLocation.js.map +0 -1
  258. package/dist/cjs/Reporting/index.d.ts +0 -14
  259. package/dist/cjs/Reporting/index.d.ts.map +0 -1
  260. package/dist/cjs/Reporting/reportValues.d.ts +0 -22
  261. package/dist/cjs/Reporting/reportValues.d.ts.map +0 -1
  262. package/dist/cjs/Reporting/reportValues.js +0 -124
  263. package/dist/cjs/Reporting/reportValues.js.map +0 -1
  264. package/dist/cjs/Reporting/useAccessChoice.d.ts +0 -13
  265. package/dist/cjs/Reporting/useAccessChoice.d.ts.map +0 -1
  266. package/dist/cjs/Reporting/useAccessChoice.js +0 -41
  267. package/dist/cjs/Reporting/useAccessChoice.js.map +0 -1
  268. package/dist/cjs/index.d.ts +0 -8
  269. package/dist/cjs/index.d.ts.map +0 -1
  270. package/dist/cjs/index.js +0 -133
  271. package/dist/cjs/index.js.map +0 -1
  272. package/dist/cjs/package.json +0 -3
  273. package/dist/esm/Buttons/MyIssuesButton.d.ts +0 -14
  274. package/dist/esm/Buttons/MyIssuesButton.d.ts.map +0 -1
  275. package/dist/esm/Buttons/MyIssuesButton.js +0 -73
  276. package/dist/esm/Buttons/MyIssuesButton.js.map +0 -1
  277. package/dist/esm/Buttons/ReportButton.d.ts +0 -8
  278. package/dist/esm/Buttons/ReportButton.d.ts.map +0 -1
  279. package/dist/esm/Buttons/ReportButton.js +0 -32
  280. package/dist/esm/Buttons/ReportButton.js.map +0 -1
  281. package/dist/esm/Buttons/buttonModels.d.ts +0 -10
  282. package/dist/esm/Buttons/buttonModels.d.ts.map +0 -1
  283. package/dist/esm/Buttons/buttonModels.js +0 -41
  284. package/dist/esm/Buttons/buttonModels.js.map +0 -1
  285. package/dist/esm/Buttons/index.d.ts +0 -4
  286. package/dist/esm/Buttons/index.d.ts.map +0 -1
  287. package/dist/esm/Buttons/index.js +0 -4
  288. package/dist/esm/Buttons/index.js.map +0 -1
  289. package/dist/esm/Correlation/CorrelationTracker.d.ts +0 -10
  290. package/dist/esm/Correlation/CorrelationTracker.d.ts.map +0 -1
  291. package/dist/esm/Correlation/CorrelationTracker.js +0 -48
  292. package/dist/esm/Correlation/CorrelationTracker.js.map +0 -1
  293. package/dist/esm/Correlation/index.d.ts +0 -3
  294. package/dist/esm/Correlation/index.d.ts.map +0 -1
  295. package/dist/esm/Correlation/index.js +0 -3
  296. package/dist/esm/Correlation/index.js.map +0 -1
  297. package/dist/esm/Correlation/withCorrelationIdHeader.d.ts +0 -6
  298. package/dist/esm/Correlation/withCorrelationIdHeader.d.ts.map +0 -1
  299. package/dist/esm/Correlation/withCorrelationIdHeader.js +0 -36
  300. package/dist/esm/Correlation/withCorrelationIdHeader.js.map +0 -1
  301. package/dist/esm/Icons.d.ts +0 -4
  302. package/dist/esm/Icons.d.ts.map +0 -1
  303. package/dist/esm/Icons.js +0 -49
  304. package/dist/esm/Icons.js.map +0 -1
  305. package/dist/esm/Issues/IssueView/AccessPanel.d.ts +0 -6
  306. package/dist/esm/Issues/IssueView/AccessPanel.d.ts.map +0 -1
  307. package/dist/esm/Issues/IssueView/AccessPanel.js +0 -122
  308. package/dist/esm/Issues/IssueView/AccessPanel.js.map +0 -1
  309. package/dist/esm/Issues/IssueView/GrantAccessDialog.d.ts +0 -6
  310. package/dist/esm/Issues/IssueView/GrantAccessDialog.d.ts.map +0 -1
  311. package/dist/esm/Issues/IssueView/GrantAccessDialog.js +0 -54
  312. package/dist/esm/Issues/IssueView/GrantAccessDialog.js.map +0 -1
  313. package/dist/esm/Issues/IssueView/IdentityPanel.d.ts +0 -6
  314. package/dist/esm/Issues/IssueView/IdentityPanel.d.ts.map +0 -1
  315. package/dist/esm/Issues/IssueView/IdentityPanel.js +0 -43
  316. package/dist/esm/Issues/IssueView/IdentityPanel.js.map +0 -1
  317. package/dist/esm/Issues/IssueView/IssueActions.d.ts +0 -6
  318. package/dist/esm/Issues/IssueView/IssueActions.d.ts.map +0 -1
  319. package/dist/esm/Issues/IssueView/IssueActions.js +0 -56
  320. package/dist/esm/Issues/IssueView/IssueActions.js.map +0 -1
  321. package/dist/esm/Issues/IssueView/IssueConversationPanel.d.ts +0 -6
  322. package/dist/esm/Issues/IssueView/IssueConversationPanel.d.ts.map +0 -1
  323. package/dist/esm/Issues/IssueView/IssueConversationPanel.js +0 -95
  324. package/dist/esm/Issues/IssueView/IssueConversationPanel.js.map +0 -1
  325. package/dist/esm/Issues/IssueView/IssueHeader.d.ts +0 -7
  326. package/dist/esm/Issues/IssueView/IssueHeader.d.ts.map +0 -1
  327. package/dist/esm/Issues/IssueView/IssueHeader.js +0 -92
  328. package/dist/esm/Issues/IssueView/IssueHeader.js.map +0 -1
  329. package/dist/esm/Issues/IssueView/IssueView.d.ts +0 -7
  330. package/dist/esm/Issues/IssueView/IssueView.d.ts.map +0 -1
  331. package/dist/esm/Issues/IssueView/IssueView.js +0 -83
  332. package/dist/esm/Issues/IssueView/IssueView.js.map +0 -1
  333. package/dist/esm/Issues/IssueView/QuestionBanner.d.ts +0 -5
  334. package/dist/esm/Issues/IssueView/QuestionBanner.d.ts.map +0 -1
  335. package/dist/esm/Issues/IssueView/QuestionBanner.js +0 -22
  336. package/dist/esm/Issues/IssueView/QuestionBanner.js.map +0 -1
  337. package/dist/esm/Issues/IssueView/ReopenIssueDialog.d.ts +0 -6
  338. package/dist/esm/Issues/IssueView/ReopenIssueDialog.d.ts.map +0 -1
  339. package/dist/esm/Issues/IssueView/ReopenIssueDialog.js +0 -32
  340. package/dist/esm/Issues/IssueView/ReopenIssueDialog.js.map +0 -1
  341. package/dist/esm/Issues/IssueView/ShareIdentityDialog.d.ts +0 -6
  342. package/dist/esm/Issues/IssueView/ShareIdentityDialog.d.ts.map +0 -1
  343. package/dist/esm/Issues/IssueView/ShareIdentityDialog.js +0 -30
  344. package/dist/esm/Issues/IssueView/ShareIdentityDialog.js.map +0 -1
  345. package/dist/esm/Issues/IssueView/StatusStrip.d.ts +0 -6
  346. package/dist/esm/Issues/IssueView/StatusStrip.d.ts.map +0 -1
  347. package/dist/esm/Issues/IssueView/StatusStrip.js +0 -29
  348. package/dist/esm/Issues/IssueView/StatusStrip.js.map +0 -1
  349. package/dist/esm/Issues/IssueView/SupportSessions.d.ts +0 -7
  350. package/dist/esm/Issues/IssueView/SupportSessions.d.ts.map +0 -1
  351. package/dist/esm/Issues/IssueView/SupportSessions.js +0 -60
  352. package/dist/esm/Issues/IssueView/SupportSessions.js.map +0 -1
  353. package/dist/esm/Issues/IssueView/index.d.ts +0 -13
  354. package/dist/esm/Issues/IssueView/index.d.ts.map +0 -1
  355. package/dist/esm/Issues/IssueView/index.js +0 -13
  356. package/dist/esm/Issues/IssueView/index.js.map +0 -1
  357. package/dist/esm/Issues/MyIssues/IssueList.d.ts +0 -7
  358. package/dist/esm/Issues/MyIssues/IssueList.d.ts.map +0 -1
  359. package/dist/esm/Issues/MyIssues/IssueList.js +0 -90
  360. package/dist/esm/Issues/MyIssues/IssueList.js.map +0 -1
  361. package/dist/esm/Issues/MyIssues/MyIssuesDialog.d.ts +0 -7
  362. package/dist/esm/Issues/MyIssues/MyIssuesDialog.d.ts.map +0 -1
  363. package/dist/esm/Issues/MyIssues/MyIssuesDialog.js +0 -77
  364. package/dist/esm/Issues/MyIssues/MyIssuesDialog.js.map +0 -1
  365. package/dist/esm/Issues/MyIssues/MyIssuesNavigation.d.ts +0 -21
  366. package/dist/esm/Issues/MyIssues/MyIssuesNavigation.d.ts.map +0 -1
  367. package/dist/esm/Issues/MyIssues/MyIssuesNavigation.js +0 -49
  368. package/dist/esm/Issues/MyIssues/MyIssuesNavigation.js.map +0 -1
  369. package/dist/esm/Issues/MyIssues/index.d.ts +0 -4
  370. package/dist/esm/Issues/MyIssues/index.d.ts.map +0 -1
  371. package/dist/esm/Issues/MyIssues/index.js +0 -4
  372. package/dist/esm/Issues/MyIssues/index.js.map +0 -1
  373. package/dist/esm/Issues/MyIssuesList.d.ts +0 -7
  374. package/dist/esm/Issues/MyIssuesList.d.ts.map +0 -1
  375. package/dist/esm/Issues/MyIssuesList.js +0 -29
  376. package/dist/esm/Issues/MyIssuesList.js.map +0 -1
  377. package/dist/esm/Issues/accessStatus.d.ts +0 -13
  378. package/dist/esm/Issues/accessStatus.d.ts.map +0 -1
  379. package/dist/esm/Issues/accessStatus.js +0 -54
  380. package/dist/esm/Issues/accessStatus.js.map +0 -1
  381. package/dist/esm/Issues/conversationMessages.d.ts +0 -14
  382. package/dist/esm/Issues/conversationMessages.d.ts.map +0 -1
  383. package/dist/esm/Issues/conversationMessages.js +0 -125
  384. package/dist/esm/Issues/conversationMessages.js.map +0 -1
  385. package/dist/esm/Issues/index.d.ts +0 -10
  386. package/dist/esm/Issues/index.d.ts.map +0 -1
  387. package/dist/esm/Issues/index.js +0 -10
  388. package/dist/esm/Issues/index.js.map +0 -1
  389. package/dist/esm/Issues/issueStates.d.ts +0 -12
  390. package/dist/esm/Issues/issueStates.d.ts.map +0 -1
  391. package/dist/esm/Issues/issueStates.js +0 -81
  392. package/dist/esm/Issues/issueStates.js.map +0 -1
  393. package/dist/esm/Issues/sessionActivity.d.ts +0 -8
  394. package/dist/esm/Issues/sessionActivity.d.ts.map +0 -1
  395. package/dist/esm/Issues/sessionActivity.js +0 -37
  396. package/dist/esm/Issues/sessionActivity.js.map +0 -1
  397. package/dist/esm/Issues/useAccessStatus.d.ts +0 -4
  398. package/dist/esm/Issues/useAccessStatus.d.ts.map +0 -1
  399. package/dist/esm/Issues/useAccessStatus.js +0 -28
  400. package/dist/esm/Issues/useAccessStatus.js.map +0 -1
  401. package/dist/esm/Issues/webAddress.d.ts +0 -2
  402. package/dist/esm/Issues/webAddress.d.ts.map +0 -1
  403. package/dist/esm/Issues/webAddress.js +0 -22
  404. package/dist/esm/Issues/webAddress.js.map +0 -1
  405. package/dist/esm/Labels/UsherLabels.d.ts +0 -177
  406. package/dist/esm/Labels/UsherLabels.d.ts.map +0 -1
  407. package/dist/esm/Labels/UsherLabels.js +0 -2
  408. package/dist/esm/Labels/UsherLabels.js.map +0 -1
  409. package/dist/esm/Labels/defaultUsherLabels.d.ts +0 -3
  410. package/dist/esm/Labels/defaultUsherLabels.d.ts.map +0 -1
  411. package/dist/esm/Labels/defaultUsherLabels.js +0 -177
  412. package/dist/esm/Labels/defaultUsherLabels.js.map +0 -1
  413. package/dist/esm/Labels/format.d.ts +0 -2
  414. package/dist/esm/Labels/format.d.ts.map +0 -1
  415. package/dist/esm/Labels/format.js +0 -13
  416. package/dist/esm/Labels/format.js.map +0 -1
  417. package/dist/esm/Labels/index.d.ts +0 -5
  418. package/dist/esm/Labels/index.d.ts.map +0 -1
  419. package/dist/esm/Labels/index.js +0 -5
  420. package/dist/esm/Labels/index.js.map +0 -1
  421. package/dist/esm/Labels/resolveLabels.d.ts +0 -3
  422. package/dist/esm/Labels/resolveLabels.d.ts.map +0 -1
  423. package/dist/esm/Labels/resolveLabels.js +0 -33
  424. package/dist/esm/Labels/resolveLabels.js.map +0 -1
  425. package/dist/esm/Provider/UsherBoundary.d.ts +0 -6
  426. package/dist/esm/Provider/UsherBoundary.d.ts.map +0 -1
  427. package/dist/esm/Provider/UsherBoundary.js +0 -22
  428. package/dist/esm/Provider/UsherBoundary.js.map +0 -1
  429. package/dist/esm/Provider/UsherContext.d.ts +0 -24
  430. package/dist/esm/Provider/UsherContext.d.ts.map +0 -1
  431. package/dist/esm/Provider/UsherContext.js +0 -36
  432. package/dist/esm/Provider/UsherContext.js.map +0 -1
  433. package/dist/esm/Provider/UsherProvider.d.ts +0 -14
  434. package/dist/esm/Provider/UsherProvider.d.ts.map +0 -1
  435. package/dist/esm/Provider/UsherProvider.js +0 -120
  436. package/dist/esm/Provider/UsherProvider.js.map +0 -1
  437. package/dist/esm/Provider/index.d.ts +0 -5
  438. package/dist/esm/Provider/index.d.ts.map +0 -1
  439. package/dist/esm/Provider/index.js +0 -5
  440. package/dist/esm/Provider/index.js.map +0 -1
  441. package/dist/esm/Provider/useUsher.d.ts +0 -13
  442. package/dist/esm/Provider/useUsher.d.ts.map +0 -1
  443. package/dist/esm/Provider/useUsher.js +0 -29
  444. package/dist/esm/Provider/useUsher.js.map +0 -1
  445. package/dist/esm/Reporting/AccessChoice.d.ts +0 -13
  446. package/dist/esm/Reporting/AccessChoice.d.ts.map +0 -1
  447. package/dist/esm/Reporting/AccessChoice.js +0 -106
  448. package/dist/esm/Reporting/AccessChoice.js.map +0 -1
  449. package/dist/esm/Reporting/AccessFields.d.ts +0 -12
  450. package/dist/esm/Reporting/AccessFields.d.ts.map +0 -1
  451. package/dist/esm/Reporting/AccessFields.js +0 -77
  452. package/dist/esm/Reporting/AccessFields.js.map +0 -1
  453. package/dist/esm/Reporting/AccessNotice.d.ts +0 -7
  454. package/dist/esm/Reporting/AccessNotice.d.ts.map +0 -1
  455. package/dist/esm/Reporting/AccessNotice.js +0 -26
  456. package/dist/esm/Reporting/AccessNotice.js.map +0 -1
  457. package/dist/esm/Reporting/ReportErrorDialog.d.ts +0 -9
  458. package/dist/esm/Reporting/ReportErrorDialog.d.ts.map +0 -1
  459. package/dist/esm/Reporting/ReportErrorDialog.js +0 -85
  460. package/dist/esm/Reporting/ReportErrorDialog.js.map +0 -1
  461. package/dist/esm/Reporting/ReportIssueDialog.d.ts +0 -8
  462. package/dist/esm/Reporting/ReportIssueDialog.d.ts.map +0 -1
  463. package/dist/esm/Reporting/ReportIssueDialog.js +0 -79
  464. package/dist/esm/Reporting/ReportIssueDialog.js.map +0 -1
  465. package/dist/esm/Reporting/ReportLimits.d.ts +0 -8
  466. package/dist/esm/Reporting/ReportLimits.d.ts.map +0 -1
  467. package/dist/esm/Reporting/ReportLimits.js +0 -17
  468. package/dist/esm/Reporting/ReportLimits.js.map +0 -1
  469. package/dist/esm/Reporting/ReportSent.d.ts +0 -5
  470. package/dist/esm/Reporting/ReportSent.d.ts.map +0 -1
  471. package/dist/esm/Reporting/ReportSent.js +0 -2
  472. package/dist/esm/Reporting/ReportSent.js.map +0 -1
  473. package/dist/esm/Reporting/SentWithReport.d.ts +0 -7
  474. package/dist/esm/Reporting/SentWithReport.d.ts.map +0 -1
  475. package/dist/esm/Reporting/SentWithReport.js +0 -38
  476. package/dist/esm/Reporting/SentWithReport.js.map +0 -1
  477. package/dist/esm/Reporting/TechnicalDetails.d.ts +0 -9
  478. package/dist/esm/Reporting/TechnicalDetails.d.ts.map +0 -1
  479. package/dist/esm/Reporting/TechnicalDetails.js +0 -73
  480. package/dist/esm/Reporting/TechnicalDetails.js.map +0 -1
  481. package/dist/esm/Reporting/durationOptions.d.ts +0 -9
  482. package/dist/esm/Reporting/durationOptions.d.ts.map +0 -1
  483. package/dist/esm/Reporting/durationOptions.js +0 -27
  484. package/dist/esm/Reporting/durationOptions.js.map +0 -1
  485. package/dist/esm/Reporting/formatLocation.d.ts +0 -7
  486. package/dist/esm/Reporting/formatLocation.d.ts.map +0 -1
  487. package/dist/esm/Reporting/formatLocation.js +0 -21
  488. package/dist/esm/Reporting/formatLocation.js.map +0 -1
  489. package/dist/esm/Reporting/index.d.ts +0 -14
  490. package/dist/esm/Reporting/index.d.ts.map +0 -1
  491. package/dist/esm/Reporting/index.js +0 -14
  492. package/dist/esm/Reporting/index.js.map +0 -1
  493. package/dist/esm/Reporting/reportValues.d.ts +0 -22
  494. package/dist/esm/Reporting/reportValues.d.ts.map +0 -1
  495. package/dist/esm/Reporting/reportValues.js +0 -116
  496. package/dist/esm/Reporting/reportValues.js.map +0 -1
  497. package/dist/esm/Reporting/useAccessChoice.d.ts +0 -13
  498. package/dist/esm/Reporting/useAccessChoice.d.ts.map +0 -1
  499. package/dist/esm/Reporting/useAccessChoice.js +0 -39
  500. package/dist/esm/Reporting/useAccessChoice.js.map +0 -1
  501. package/dist/esm/index.d.ts +0 -8
  502. package/dist/esm/index.d.ts.map +0 -1
  503. package/dist/esm/index.js +0 -48
  504. package/dist/esm/index.js.map +0 -1
  505. package/dist/esm/package.json +0 -3
  506. package/index.ts +0 -10
  507. package/styles.css +0 -320
@@ -1,12 +0,0 @@
1
- import { AccessDuration } from '@cratis/showrunner.usher';
2
- import { AccessChoice } from './AccessChoice.js';
3
- export interface IdentityAndAccess {
4
- shareIdentity: boolean;
5
- grantAccess: boolean;
6
- accessDuration: AccessDuration;
7
- }
8
- export interface AccessFieldsProps {
9
- choice: AccessChoice;
10
- }
11
- export declare const AccessFields: <TCommand extends IdentityAndAccess>({ choice }: AccessFieldsProps) => import("react").JSX.Element;
12
- //# sourceMappingURL=AccessFields.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AccessFields.d.ts","sourceRoot":"","sources":["../../../Reporting/AccessFields.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAG1D,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAOjD,MAAM,WAAW,iBAAiB;IAE9B,aAAa,EAAE,OAAO,CAAC;IAEvB,WAAW,EAAE,OAAO,CAAC;IAErB,cAAc,EAAE,cAAc,CAAC;CAClC;AAKD,MAAM,WAAW,iBAAiB;IAE9B,MAAM,EAAE,YAAY,CAAC;CACxB;AAOD,eAAO,MAAM,YAAY,GAAI,QAAQ,SAAS,iBAAiB,EAAE,YAAY,iBAAiB,gCAqC7F,CAAC"}
@@ -1,77 +0,0 @@
1
- import { jsxs, jsx } from 'react/jsx-runtime';
2
- import { CheckboxField, ToggleSwitchField, DropdownField } from '@cratis/components/CommandForm';
3
- import { useId } from 'react';
4
- import { useUsherLabels } from '../Provider/UsherContext.js';
5
- import { AccessNotice } from './AccessNotice.js';
6
- import { durationOptions } from './durationOptions.js';
7
-
8
- /**
9
- * The identity and access choices of a report: let support know who the reporter is, and let support sign in as
10
- * them for a while. Granting access always shares who the reporter is, so the checkbox is checked and disabled while
11
- * access is granted, and the notice says until when support can act as the reporter.
12
- */ const AccessFields = ({ choice })=>{
13
- const labels = useUsherLabels();
14
- const shareDescriptionId = useId();
15
- const grantDescriptionId = useId();
16
- const noticeId = useId();
17
- return /*#__PURE__*/ jsxs("div", {
18
- className: "usher-access-fields",
19
- children: [
20
- /*#__PURE__*/ jsxs("div", {
21
- className: "usher-access-fields__choice",
22
- children: [
23
- /*#__PURE__*/ jsx(CheckboxField, {
24
- value: (command)=>command.shareIdentity,
25
- label: labels.access.shareIdentity,
26
- "aria-describedby": choice.grantAccess ? `${shareDescriptionId} ${noticeId}` : shareDescriptionId,
27
- pt: {
28
- input: {
29
- disabled: choice.grantAccess
30
- }
31
- }
32
- }),
33
- /*#__PURE__*/ jsx("p", {
34
- id: shareDescriptionId,
35
- className: "usher-access-fields__description",
36
- children: labels.access.shareIdentityDescription
37
- })
38
- ]
39
- }),
40
- /*#__PURE__*/ jsxs("div", {
41
- className: "usher-access-fields__choice",
42
- children: [
43
- /*#__PURE__*/ jsx(ToggleSwitchField, {
44
- value: (command)=>command.grantAccess,
45
- label: labels.access.grantAccess,
46
- "aria-describedby": grantDescriptionId
47
- }),
48
- /*#__PURE__*/ jsx("p", {
49
- id: grantDescriptionId,
50
- className: "usher-access-fields__description",
51
- children: labels.access.grantAccessDescription
52
- })
53
- ]
54
- }),
55
- choice.grantAccess && /*#__PURE__*/ jsxs("div", {
56
- className: "usher-access-fields__duration",
57
- children: [
58
- /*#__PURE__*/ jsx(DropdownField, {
59
- value: (command)=>command.accessDuration,
60
- title: labels.access.duration,
61
- "aria-describedby": noticeId,
62
- options: durationOptions(labels),
63
- optionValue: "value",
64
- optionLabel: "label"
65
- }),
66
- /*#__PURE__*/ jsx(AccessNotice, {
67
- id: noticeId,
68
- duration: choice.accessDuration
69
- })
70
- ]
71
- })
72
- ]
73
- });
74
- };
75
-
76
- export { AccessFields };
77
- //# sourceMappingURL=AccessFields.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AccessFields.js","sources":["../../../Reporting/AccessFields.tsx"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { CheckboxField, DropdownField, ToggleSwitchField } from '@cratis/components/CommandForm';\nimport { AccessDuration } from '@cratis/showrunner.usher';\nimport { useId } from 'react';\nimport { useUsherLabels } from '../Provider/UsherContext.js';\nimport { AccessChoice } from './AccessChoice.js';\nimport { AccessNotice } from './AccessNotice.js';\nimport { durationOptions } from './durationOptions.js';\n\n/**\n * The command values {@link AccessFields} bind to.\n */\nexport interface IdentityAndAccess {\n /** Whether to let support know who the reporter is. */\n shareIdentity: boolean;\n /** Whether to let support sign in as the reporter. */\n grantAccess: boolean;\n /** For how long. */\n accessDuration: AccessDuration;\n}\n\n/**\n * Props for {@link AccessFields}.\n */\nexport interface AccessFieldsProps {\n /** The reporter's {@link AccessChoice}, as the form follows it. */\n choice: AccessChoice;\n}\n\n/**\n * The identity and access choices of a report: let support know who the reporter is, and let support sign in as\n * them for a while. Granting access always shares who the reporter is, so the checkbox is checked and disabled while\n * access is granted, and the notice says until when support can act as the reporter.\n */\nexport const AccessFields = <TCommand extends IdentityAndAccess>({ choice }: AccessFieldsProps) => {\n const labels = useUsherLabels();\n const shareDescriptionId = useId();\n const grantDescriptionId = useId();\n const noticeId = useId();\n\n return (\n <div className='usher-access-fields'>\n <div className='usher-access-fields__choice'>\n <CheckboxField<TCommand>\n value={command => command.shareIdentity}\n label={labels.access.shareIdentity}\n aria-describedby={choice.grantAccess ? `${shareDescriptionId} ${noticeId}` : shareDescriptionId}\n pt={{ input: { disabled: choice.grantAccess } }} />\n <p id={shareDescriptionId} className='usher-access-fields__description'>{labels.access.shareIdentityDescription}</p>\n </div>\n <div className='usher-access-fields__choice'>\n <ToggleSwitchField<TCommand>\n value={command => command.grantAccess}\n label={labels.access.grantAccess}\n aria-describedby={grantDescriptionId} />\n <p id={grantDescriptionId} className='usher-access-fields__description'>{labels.access.grantAccessDescription}</p>\n </div>\n {choice.grantAccess && (\n <div className='usher-access-fields__duration'>\n <DropdownField<TCommand>\n value={command => command.accessDuration}\n title={labels.access.duration}\n aria-describedby={noticeId}\n options={durationOptions(labels)}\n optionValue='value'\n optionLabel='label' />\n <AccessNotice id={noticeId} duration={choice.accessDuration} />\n </div>\n )}\n </div>\n );\n};\n"],"names":["AccessFields","choice","labels","useUsherLabels","shareDescriptionId","useId","grantDescriptionId","noticeId","_jsxs","div","className","_jsx","CheckboxField","value","command","shareIdentity","label","access","aria-describedby","grantAccess","pt","input","disabled","p","id","shareIdentityDescription","ToggleSwitchField","grantAccessDescription","DropdownField","accessDuration","title","duration","options","durationOptions","optionValue","optionLabel","AccessNotice"],"mappings":";;;;;;;AA+BA;;;;AAIC,IACM,MAAMA,YAAAA,GAAe,CAAqC,EAAEC,MAAM,EAAqB,GAAA;AAC1F,IAAA,MAAMC,MAAAA,GAASC,cAAAA,EAAAA;AACf,IAAA,MAAMC,kBAAAA,GAAqBC,KAAAA,EAAAA;AAC3B,IAAA,MAAMC,kBAAAA,GAAqBD,KAAAA,EAAAA;AAC3B,IAAA,MAAME,QAAAA,GAAWF,KAAAA,EAAAA;AAEjB,IAAA,qBACIG,IAAA,CAACC,KAAAA,EAAAA;QAAIC,SAAAA,EAAU,qBAAA;;0BACXF,IAAA,CAACC,KAAAA,EAAAA;gBAAIC,SAAAA,EAAU,6BAAA;;kCACXC,GAAA,CAACC,aAAAA,EAAAA;wBACGC,KAAAA,EAAOC,CAAAA,OAAAA,GAAWA,OAAAA,CAAQC,aAAa;wBACvCC,KAAAA,EAAOd,MAAAA,CAAOe,MAAM,CAACF,aAAa;wBAClCG,kBAAAA,EAAkBjB,MAAAA,CAAOkB,WAAW,GAAG,CAAA,EAAGf,mBAAmB,CAAC,EAAEG,UAAU,GAAGH,kBAAAA;wBAC7EgB,EAAAA,EAAI;4BAAEC,KAAAA,EAAO;AAAEC,gCAAAA,QAAAA,EAAUrB,OAAOkB;AAAY;AAAE;;kCAClDR,GAAA,CAACY,GAAAA,EAAAA;wBAAEC,EAAAA,EAAIpB,kBAAAA;wBAAoBM,SAAAA,EAAU,kCAAA;kCAAoCR,MAAAA,CAAOe,MAAM,CAACQ;;;;0BAE3FjB,IAAA,CAACC,KAAAA,EAAAA;gBAAIC,SAAAA,EAAU,6BAAA;;kCACXC,GAAA,CAACe,iBAAAA,EAAAA;wBACGb,KAAAA,EAAOC,CAAAA,OAAAA,GAAWA,OAAAA,CAAQK,WAAW;wBACrCH,KAAAA,EAAOd,MAAAA,CAAOe,MAAM,CAACE,WAAW;wBAChCD,kBAAAA,EAAkBZ;;kCACtBK,GAAA,CAACY,GAAAA,EAAAA;wBAAEC,EAAAA,EAAIlB,kBAAAA;wBAAoBI,SAAAA,EAAU,kCAAA;kCAAoCR,MAAAA,CAAOe,MAAM,CAACU;;;;YAE1F1B,MAAAA,CAAOkB,WAAW,kBACfX,IAAA,CAACC,KAAAA,EAAAA;gBAAIC,SAAAA,EAAU,+BAAA;;kCACXC,GAAA,CAACiB,aAAAA,EAAAA;wBACGf,KAAAA,EAAOC,CAAAA,OAAAA,GAAWA,OAAAA,CAAQe,cAAc;wBACxCC,KAAAA,EAAO5B,MAAAA,CAAOe,MAAM,CAACc,QAAQ;wBAC7Bb,kBAAAA,EAAkBX,QAAAA;AAClByB,wBAAAA,OAAAA,EAASC,eAAAA,CAAgB/B,MAAAA,CAAAA;wBACzBgC,WAAAA,EAAY,OAAA;wBACZC,WAAAA,EAAY;;kCAChBxB,GAAA,CAACyB,YAAAA,EAAAA;wBAAaZ,EAAAA,EAAIjB,QAAAA;AAAUwB,wBAAAA,QAAAA,EAAU9B,OAAO4B;;;;;;AAKjE;;"}
@@ -1,7 +0,0 @@
1
- import { AccessDuration } from '@cratis/showrunner.usher';
2
- export interface AccessNoticeProps {
3
- id: string;
4
- duration: AccessDuration;
5
- }
6
- export declare const AccessNotice: ({ id, duration }: AccessNoticeProps) => import("react").JSX.Element;
7
- //# sourceMappingURL=AccessNotice.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AccessNotice.d.ts","sourceRoot":"","sources":["../../../Reporting/AccessNotice.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAQ1D,MAAM,WAAW,iBAAiB;IAE9B,EAAE,EAAE,MAAM,CAAC;IAGX,QAAQ,EAAE,cAAc,CAAC;CAC5B;AAKD,eAAO,MAAM,YAAY,GAAI,kBAAkB,iBAAiB,gCAS/D,CAAC"}
@@ -1,26 +0,0 @@
1
- import { jsx } from 'react/jsx-runtime';
2
- import { Message } from '@cratis/components/Display';
3
- import { format } from '../Labels/format.js';
4
- import { useUsherContext } from '../Provider/UsherContext.js';
5
- import { formatTime, validUntilFor } from './AccessChoice.js';
6
-
7
- /**
8
- * States plainly what granting access means: support sees who the reporter is and can act as them until a given time.
9
- */ const AccessNotice = ({ id, duration })=>{
10
- const { labels, locale } = useUsherContext();
11
- const time = formatTime(validUntilFor(duration, new Date()), locale);
12
- return /*#__PURE__*/ jsx("div", {
13
- id: id,
14
- className: "usher-access-notice",
15
- children: /*#__PURE__*/ jsx(Message, {
16
- severity: "info",
17
- live: false,
18
- text: format(labels.access.notice, {
19
- time
20
- })
21
- })
22
- });
23
- };
24
-
25
- export { AccessNotice };
26
- //# sourceMappingURL=AccessNotice.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AccessNotice.js","sources":["../../../Reporting/AccessNotice.tsx"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { Message } from '@cratis/components/Display';\nimport { AccessDuration } from '@cratis/showrunner.usher';\nimport { format } from '../Labels/index.js';\nimport { useUsherContext } from '../Provider/UsherContext.js';\nimport { formatTime, validUntilFor } from './AccessChoice.js';\n\n/**\n * Props for {@link AccessNotice}.\n */\nexport interface AccessNoticeProps {\n /** The id of the notice, for the controls it describes. */\n id: string;\n\n /** For how long access would be granted. */\n duration: AccessDuration;\n}\n\n/**\n * States plainly what granting access means: support sees who the reporter is and can act as them until a given time.\n */\nexport const AccessNotice = ({ id, duration }: AccessNoticeProps) => {\n const { labels, locale } = useUsherContext();\n const time = formatTime(validUntilFor(duration, new Date()), locale);\n\n return (\n <div id={id} className='usher-access-notice'>\n <Message severity='info' live={false} text={format(labels.access.notice, { time })} />\n </div>\n );\n};\n"],"names":["AccessNotice","id","duration","labels","locale","useUsherContext","time","formatTime","validUntilFor","Date","_jsx","div","className","Message","severity","live","text","format","access","notice"],"mappings":";;;;;;AAoBA;;UAGaA,YAAAA,GAAe,CAAC,EAAEC,EAAE,EAAEC,QAAQ,EAAqB,GAAA;AAC5D,IAAA,MAAM,EAAEC,MAAM,EAAEC,MAAM,EAAE,GAAGC,eAAAA,EAAAA;AAC3B,IAAA,MAAMC,IAAAA,GAAOC,UAAAA,CAAWC,aAAAA,CAAcN,QAAAA,EAAU,IAAIO,IAAAA,EAAAA,CAAAA,EAASL,MAAAA,CAAAA;AAE7D,IAAA,qBACIM,GAAA,CAACC,KAAAA,EAAAA;QAAIV,EAAAA,EAAIA,EAAAA;QAAIW,SAAAA,EAAU,qBAAA;AACnB,QAAA,QAAA,gBAAAF,GAAA,CAACG,OAAAA,EAAAA;YAAQC,QAAAA,EAAS,MAAA;YAAOC,IAAAA,EAAM,KAAA;AAAOC,YAAAA,IAAAA,EAAMC,MAAAA,CAAOd,MAAAA,CAAOe,MAAM,CAACC,MAAM,EAAE;AAAEb,gBAAAA;AAAK,aAAA;;;AAG5F;;"}
@@ -1,9 +0,0 @@
1
- import { SliceLocation as ArcSliceLocation } from '@cratis/arc/reflection';
2
- import { Guid } from '@cratis/fundamentals';
3
- export interface ReportErrorDialogProps {
4
- error?: unknown;
5
- location?: ArcSliceLocation;
6
- correlationIds?: Guid[];
7
- }
8
- export declare const ReportErrorDialog: ({ error, location, correlationIds }: ReportErrorDialogProps) => import("react").JSX.Element;
9
- //# sourceMappingURL=ReportErrorDialog.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ReportErrorDialog.d.ts","sourceRoot":"","sources":["../../../Reporting/ReportErrorDialog.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,IAAI,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAI3E,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAe5C,MAAM,WAAW,sBAAsB;IAEnC,KAAK,CAAC,EAAE,OAAO,CAAC;IAGhB,QAAQ,CAAC,EAAE,gBAAgB,CAAC;IAG5B,cAAc,CAAC,EAAE,IAAI,EAAE,CAAC;CAC3B;AAOD,eAAO,MAAM,iBAAiB,GAAI,qCAAqC,sBAAsB,gCAgB5F,CAAC"}
@@ -1,85 +0,0 @@
1
- import { jsx, jsxs } from 'react/jsx-runtime';
2
- import { useDialogContext, DialogResult } from '@cratis/arc.react/dialogs';
3
- import { useSliceContext } from '@cratis/arc.react/slices';
4
- import { CommandDialog } from '@cratis/components/CommandDialog';
5
- import { TextAreaField } from '@cratis/components/CommandForm';
6
- import { DialogInitialFocus } from '@cratis/components/Dialogs';
7
- import { Guid } from '@cratis/fundamentals';
8
- import { ReportError } from '@cratis/showrunner.usher';
9
- import { useState } from 'react';
10
- import { UsherBoundary } from '../Provider/UsherBoundary.js';
11
- import { useUsherContext } from '../Provider/UsherContext.js';
12
- import { AccessFields } from './AccessFields.js';
13
- import { reportErrorValues, toErrorDetails } from './reportValues.js';
14
- import { SentWithReport } from './SentWithReport.js';
15
- import { TechnicalDetails } from './TechnicalDetails.js';
16
- import { useAccessChoice } from './useAccessChoice.js';
17
-
18
- /**
19
- * The report this error dialog: the error is captured already, and the reporter may say what they were doing and
20
- * choose whether support may know who they are and sign in as them. The technical details are collapsed. Open it
21
- * with `useDialog`; it closes with {@link ReportSent} once the report is sent.
22
- */ const ReportErrorDialog = ({ error, location, correlationIds })=>{
23
- const usher = useUsherContext();
24
- const sliceLocation = useSliceContext();
25
- const [values] = useState(()=>reportErrorValues(toErrorDetails(error, location ?? sliceLocation), {
26
- issueId: Guid.create(),
27
- location: location ?? sliceLocation,
28
- correlationIds: correlationIds ?? usher.recentCorrelationIds(),
29
- applicationVersion: usher.applicationVersion,
30
- shareIdentity: usher.shareIdentityByDefault
31
- }));
32
- return /*#__PURE__*/ jsx(UsherBoundary, {
33
- children: /*#__PURE__*/ jsx(ReportErrorForm, {
34
- values: values
35
- })
36
- });
37
- };
38
- const ReportErrorForm = ({ values })=>{
39
- const { labels, shareIdentityByDefault } = useUsherContext();
40
- const { closeDialog } = useDialogContext();
41
- const access = useAccessChoice(shareIdentityByDefault);
42
- return /*#__PURE__*/ jsx(CommandDialog, {
43
- command: ReportError,
44
- title: labels.reportError.title,
45
- subtitle: values.errorMessage,
46
- okLabel: labels.reportError.send,
47
- cancelLabel: labels.common.cancel,
48
- closeAriaLabel: labels.common.close,
49
- width: "560px",
50
- initialFocus: DialogInitialFocus.Content,
51
- initialValues: access.initialValues(values),
52
- currentValues: access.currentValues,
53
- onFieldChange: access.onFieldChange,
54
- onSuccess: ()=>closeDialog(DialogResult.Ok, {
55
- issueId: values.issueId
56
- }),
57
- children: /*#__PURE__*/ jsxs("div", {
58
- className: "usher-report-form",
59
- children: [
60
- /*#__PURE__*/ jsx(SentWithReport, {
61
- location: values.location,
62
- correlationIdCount: values.correlationIds.length
63
- }),
64
- /*#__PURE__*/ jsx(TechnicalDetails, {
65
- errorType: values.errorType,
66
- correlationIds: values.correlationIds,
67
- stackFrames: values.stackFrames
68
- }),
69
- /*#__PURE__*/ jsx(TextAreaField, {
70
- value: (command)=>command.details,
71
- title: labels.reportError.details,
72
- placeholder: labels.reportError.detailsPlaceholder,
73
- required: false,
74
- rows: 3
75
- }),
76
- /*#__PURE__*/ jsx(AccessFields, {
77
- choice: access.choice
78
- })
79
- ]
80
- })
81
- });
82
- };
83
-
84
- export { ReportErrorDialog };
85
- //# sourceMappingURL=ReportErrorDialog.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ReportErrorDialog.js","sources":["../../../Reporting/ReportErrorDialog.tsx"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { DialogResult, useDialogContext } from '@cratis/arc.react/dialogs';\nimport { useSliceContext } from '@cratis/arc.react/slices';\nimport { SliceLocation as ArcSliceLocation } from '@cratis/arc/reflection';\nimport { CommandDialog } from '@cratis/components/CommandDialog';\nimport { TextAreaField } from '@cratis/components/CommandForm';\nimport { DialogInitialFocus } from '@cratis/components/Dialogs';\nimport { Guid } from '@cratis/fundamentals';\nimport { IReportError, ReportError } from '@cratis/showrunner.usher';\nimport { useState } from 'react';\nimport { UsherBoundary } from '../Provider/UsherBoundary.js';\nimport { useUsherContext } from '../Provider/UsherContext.js';\nimport { AccessFields } from './AccessFields.js';\nimport { ReportSent } from './ReportSent.js';\nimport { reportErrorValues, toErrorDetails } from './reportValues.js';\nimport { SentWithReport } from './SentWithReport.js';\nimport { TechnicalDetails } from './TechnicalDetails.js';\nimport { useAccessChoice } from './useAccessChoice.js';\n\n/**\n * Props for {@link ReportErrorDialog}.\n */\nexport interface ReportErrorDialogProps {\n /** The error: `ErrorDetails` from `@cratis/showrunner.usher`, or anything thrown. */\n error?: unknown;\n\n /** Where in the application the reporter is, when the error does not say; the slice context the dialog is rendered in when not given. */\n location?: ArcSliceLocation;\n\n /** The correlation ids to send besides the error's own; the recent ones {@link UsherProvider} tracked when not given. */\n correlationIds?: Guid[];\n}\n\n/**\n * The report this error dialog: the error is captured already, and the reporter may say what they were doing and\n * choose whether support may know who they are and sign in as them. The technical details are collapsed. Open it\n * with `useDialog`; it closes with {@link ReportSent} once the report is sent.\n */\nexport const ReportErrorDialog = ({ error, location, correlationIds }: ReportErrorDialogProps) => {\n const usher = useUsherContext();\n const sliceLocation = useSliceContext();\n const [values] = useState(() => reportErrorValues(toErrorDetails(error, location ?? sliceLocation), {\n issueId: Guid.create(),\n location: location ?? sliceLocation,\n correlationIds: correlationIds ?? usher.recentCorrelationIds(),\n applicationVersion: usher.applicationVersion,\n shareIdentity: usher.shareIdentityByDefault\n }));\n\n return (\n <UsherBoundary>\n <ReportErrorForm values={values} />\n </UsherBoundary>\n );\n};\n\nconst ReportErrorForm = ({ values }: { values: IReportError }) => {\n const { labels, shareIdentityByDefault } = useUsherContext();\n const { closeDialog } = useDialogContext<ReportErrorDialogProps, ReportSent>();\n const access = useAccessChoice(shareIdentityByDefault);\n\n return (\n <CommandDialog<ReportError>\n command={ReportError}\n title={labels.reportError.title}\n subtitle={values.errorMessage}\n okLabel={labels.reportError.send}\n cancelLabel={labels.common.cancel}\n closeAriaLabel={labels.common.close}\n width='560px'\n initialFocus={DialogInitialFocus.Content}\n initialValues={access.initialValues(values)}\n currentValues={access.currentValues}\n onFieldChange={access.onFieldChange}\n onSuccess={() => closeDialog(DialogResult.Ok, { issueId: values.issueId! })}>\n <div className='usher-report-form'>\n <SentWithReport location={values.location!} correlationIdCount={values.correlationIds!.length} />\n <TechnicalDetails\n errorType={values.errorType!}\n correlationIds={values.correlationIds!}\n stackFrames={values.stackFrames!} />\n <TextAreaField<ReportError>\n value={command => command.details}\n title={labels.reportError.details}\n placeholder={labels.reportError.detailsPlaceholder}\n required={false}\n rows={3} />\n <AccessFields<ReportError> choice={access.choice} />\n </div>\n </CommandDialog>\n );\n};\n"],"names":["ReportErrorDialog","error","location","correlationIds","usher","useUsherContext","sliceLocation","useSliceContext","values","useState","reportErrorValues","toErrorDetails","issueId","Guid","create","recentCorrelationIds","applicationVersion","shareIdentity","shareIdentityByDefault","_jsx","UsherBoundary","ReportErrorForm","labels","closeDialog","useDialogContext","access","useAccessChoice","CommandDialog","command","ReportError","title","reportError","subtitle","errorMessage","okLabel","send","cancelLabel","common","cancel","closeAriaLabel","close","width","initialFocus","DialogInitialFocus","Content","initialValues","currentValues","onFieldChange","onSuccess","DialogResult","Ok","_jsxs","div","className","SentWithReport","correlationIdCount","length","TechnicalDetails","errorType","stackFrames","TextAreaField","value","details","placeholder","detailsPlaceholder","required","rows","AccessFields","choice"],"mappings":";;;;;;;;;;;;;;;;;AAmCA;;;;IAKO,MAAMA,iBAAAA,GAAoB,CAAC,EAAEC,KAAK,EAAEC,QAAQ,EAAEC,cAAc,EAA0B,GAAA;AACzF,IAAA,MAAMC,KAAAA,GAAQC,eAAAA,EAAAA;AACd,IAAA,MAAMC,aAAAA,GAAgBC,eAAAA,EAAAA;IACtB,MAAM,CAACC,OAAO,GAAGC,QAAAA,CAAS,IAAMC,iBAAAA,CAAkBC,cAAAA,CAAeV,KAAAA,EAAOC,QAAAA,IAAYI,aAAAA,CAAAA,EAAgB;AAChGM,YAAAA,OAAAA,EAASC,KAAKC,MAAM,EAAA;AACpBZ,YAAAA,QAAAA,EAAUA,QAAAA,IAAYI,aAAAA;YACtBH,cAAAA,EAAgBA,cAAAA,IAAkBC,MAAMW,oBAAoB,EAAA;AAC5DC,YAAAA,kBAAAA,EAAoBZ,MAAMY,kBAAkB;AAC5CC,YAAAA,aAAAA,EAAeb,MAAMc;AACzB,SAAA,CAAA,CAAA;AAEA,IAAA,qBACIC,GAAA,CAACC,aAAAA,EAAAA;AACG,QAAA,QAAA,gBAAAD,GAAA,CAACE,eAAAA,EAAAA;YAAgBb,MAAAA,EAAQA;;;AAGrC;AAEA,MAAMa,eAAAA,GAAkB,CAAC,EAAEb,MAAM,EAA4B,GAAA;AACzD,IAAA,MAAM,EAAEc,MAAM,EAAEJ,sBAAsB,EAAE,GAAGb,eAAAA,EAAAA;IAC3C,MAAM,EAAEkB,WAAW,EAAE,GAAGC,gBAAAA,EAAAA;AACxB,IAAA,MAAMC,SAASC,eAAAA,CAAgBR,sBAAAA,CAAAA;AAE/B,IAAA,qBACIC,GAAA,CAACQ,aAAAA,EAAAA;QACGC,OAAAA,EAASC,WAAAA;QACTC,KAAAA,EAAOR,MAAAA,CAAOS,WAAW,CAACD,KAAK;AAC/BE,QAAAA,QAAAA,EAAUxB,OAAOyB,YAAY;QAC7BC,OAAAA,EAASZ,MAAAA,CAAOS,WAAW,CAACI,IAAI;QAChCC,WAAAA,EAAad,MAAAA,CAAOe,MAAM,CAACC,MAAM;QACjCC,cAAAA,EAAgBjB,MAAAA,CAAOe,MAAM,CAACG,KAAK;QACnCC,KAAAA,EAAM,OAAA;AACNC,QAAAA,YAAAA,EAAcC,mBAAmBC,OAAO;QACxCC,aAAAA,EAAepB,MAAAA,CAAOoB,aAAa,CAACrC,MAAAA,CAAAA;AACpCsC,QAAAA,aAAAA,EAAerB,OAAOqB,aAAa;AACnCC,QAAAA,aAAAA,EAAetB,OAAOsB,aAAa;AACnCC,QAAAA,SAAAA,EAAW,IAAMzB,WAAAA,CAAY0B,YAAAA,CAAaC,EAAE,EAAE;AAAEtC,gBAAAA,OAAAA,EAASJ,OAAOI;AAAS,aAAA,CAAA;AACzE,QAAA,QAAA,gBAAAuC,IAAA,CAACC,KAAAA,EAAAA;YAAIC,SAAAA,EAAU,mBAAA;;8BACXlC,GAAA,CAACmC,cAAAA,EAAAA;AAAepD,oBAAAA,QAAAA,EAAUM,OAAON,QAAQ;oBAAGqD,kBAAAA,EAAoB/C,MAAAA,CAAOL,cAAc,CAAEqD;;8BACvFrC,GAAA,CAACsC,gBAAAA,EAAAA;AACGC,oBAAAA,SAAAA,EAAWlD,OAAOkD,SAAS;AAC3BvD,oBAAAA,cAAAA,EAAgBK,OAAOL,cAAc;AACrCwD,oBAAAA,WAAAA,EAAanD,OAAOmD;;8BACxBxC,GAAA,CAACyC,aAAAA,EAAAA;oBACGC,KAAAA,EAAOjC,CAAAA,OAAAA,GAAWA,OAAAA,CAAQkC,OAAO;oBACjChC,KAAAA,EAAOR,MAAAA,CAAOS,WAAW,CAAC+B,OAAO;oBACjCC,WAAAA,EAAazC,MAAAA,CAAOS,WAAW,CAACiC,kBAAkB;oBAClDC,QAAAA,EAAU,KAAA;oBACVC,IAAAA,EAAM;;8BACV/C,GAAA,CAACgD,YAAAA,EAAAA;AAA0BC,oBAAAA,MAAAA,EAAQ3C,OAAO2C;;;;;AAI1D,CAAA;;"}
@@ -1,8 +0,0 @@
1
- import { SliceLocation as ArcSliceLocation } from '@cratis/arc/reflection';
2
- import { Guid } from '@cratis/fundamentals';
3
- export interface ReportIssueDialogProps {
4
- location?: ArcSliceLocation;
5
- correlationIds?: Guid[];
6
- }
7
- export declare const ReportIssueDialog: ({ location, correlationIds }: ReportIssueDialogProps) => import("react").JSX.Element;
8
- //# sourceMappingURL=ReportIssueDialog.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ReportIssueDialog.d.ts","sourceRoot":"","sources":["../../../Reporting/ReportIssueDialog.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,IAAI,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAI3E,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAc5C,MAAM,WAAW,sBAAsB;IAEnC,QAAQ,CAAC,EAAE,gBAAgB,CAAC;IAG5B,cAAc,CAAC,EAAE,IAAI,EAAE,CAAC;CAC3B;AAMD,eAAO,MAAM,iBAAiB,GAAI,8BAA8B,sBAAsB,gCAgBrF,CAAC"}
@@ -1,79 +0,0 @@
1
- import { jsx, jsxs } from 'react/jsx-runtime';
2
- import { useDialogContext, DialogResult } from '@cratis/arc.react/dialogs';
3
- import { useSliceContext } from '@cratis/arc.react/slices';
4
- import { CommandDialog } from '@cratis/components/CommandDialog';
5
- import { InputTextField, TextAreaField } from '@cratis/components/CommandForm';
6
- import { DialogInitialFocus } from '@cratis/components/Dialogs';
7
- import { Guid } from '@cratis/fundamentals';
8
- import { ReportIssue } from '@cratis/showrunner.usher';
9
- import { useState } from 'react';
10
- import { UsherBoundary } from '../Provider/UsherBoundary.js';
11
- import { useUsherContext } from '../Provider/UsherContext.js';
12
- import { AccessFields } from './AccessFields.js';
13
- import { reportIssueValues } from './reportValues.js';
14
- import { SentWithReport } from './SentWithReport.js';
15
- import { useAccessChoice } from './useAccessChoice.js';
16
-
17
- /**
18
- * The report a problem dialog: the reporter describes a problem by hand, and chooses whether support may know who
19
- * they are and sign in as them. Open it with `useDialog`; it closes with {@link ReportSent} once the report is sent.
20
- */ const ReportIssueDialog = ({ location, correlationIds })=>{
21
- const usher = useUsherContext();
22
- const sliceLocation = useSliceContext();
23
- const [values] = useState(()=>reportIssueValues({
24
- issueId: Guid.create(),
25
- location: location ?? sliceLocation,
26
- correlationIds: correlationIds ?? usher.recentCorrelationIds(),
27
- applicationVersion: usher.applicationVersion,
28
- shareIdentity: usher.shareIdentityByDefault
29
- }));
30
- return /*#__PURE__*/ jsx(UsherBoundary, {
31
- children: /*#__PURE__*/ jsx(ReportIssueForm, {
32
- values: values
33
- })
34
- });
35
- };
36
- const ReportIssueForm = ({ values })=>{
37
- const { labels, shareIdentityByDefault } = useUsherContext();
38
- const { closeDialog } = useDialogContext();
39
- const access = useAccessChoice(shareIdentityByDefault);
40
- return /*#__PURE__*/ jsx(CommandDialog, {
41
- command: ReportIssue,
42
- title: labels.reportIssue.title,
43
- okLabel: labels.reportIssue.send,
44
- cancelLabel: labels.common.cancel,
45
- closeAriaLabel: labels.common.close,
46
- width: "560px",
47
- initialFocus: DialogInitialFocus.Content,
48
- initialValues: access.initialValues(values),
49
- currentValues: access.currentValues,
50
- onFieldChange: access.onFieldChange,
51
- onSuccess: ()=>closeDialog(DialogResult.Ok, {
52
- issueId: values.issueId
53
- }),
54
- children: /*#__PURE__*/ jsxs("div", {
55
- className: "usher-report-form",
56
- children: [
57
- /*#__PURE__*/ jsx(SentWithReport, {
58
- location: values.location,
59
- correlationIdCount: values.correlationIds.length
60
- }),
61
- /*#__PURE__*/ jsx(InputTextField, {
62
- value: (command)=>command.summary,
63
- title: labels.reportIssue.summary
64
- }),
65
- /*#__PURE__*/ jsx(TextAreaField, {
66
- value: (command)=>command.description,
67
- title: labels.reportIssue.description,
68
- rows: 5
69
- }),
70
- /*#__PURE__*/ jsx(AccessFields, {
71
- choice: access.choice
72
- })
73
- ]
74
- })
75
- });
76
- };
77
-
78
- export { ReportIssueDialog };
79
- //# sourceMappingURL=ReportIssueDialog.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ReportIssueDialog.js","sources":["../../../Reporting/ReportIssueDialog.tsx"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { DialogResult, useDialogContext } from '@cratis/arc.react/dialogs';\nimport { useSliceContext } from '@cratis/arc.react/slices';\nimport { SliceLocation as ArcSliceLocation } from '@cratis/arc/reflection';\nimport { CommandDialog } from '@cratis/components/CommandDialog';\nimport { InputTextField, TextAreaField } from '@cratis/components/CommandForm';\nimport { DialogInitialFocus } from '@cratis/components/Dialogs';\nimport { Guid } from '@cratis/fundamentals';\nimport { ReportIssue } from '@cratis/showrunner.usher';\nimport { useState } from 'react';\nimport { UsherBoundary } from '../Provider/UsherBoundary.js';\nimport { useUsherContext } from '../Provider/UsherContext.js';\nimport { AccessFields } from './AccessFields.js';\nimport { ReportSent } from './ReportSent.js';\nimport { reportIssueValues } from './reportValues.js';\nimport { SentWithReport } from './SentWithReport.js';\nimport { useAccessChoice } from './useAccessChoice.js';\n\n/**\n * Props for {@link ReportIssueDialog}.\n */\nexport interface ReportIssueDialogProps {\n /** Where in the application the reporter is; the slice context the dialog is rendered in when not given. */\n location?: ArcSliceLocation;\n\n /** The correlation ids to send; the recent ones {@link UsherProvider} tracked when not given. */\n correlationIds?: Guid[];\n}\n\n/**\n * The report a problem dialog: the reporter describes a problem by hand, and chooses whether support may know who\n * they are and sign in as them. Open it with `useDialog`; it closes with {@link ReportSent} once the report is sent.\n */\nexport const ReportIssueDialog = ({ location, correlationIds }: ReportIssueDialogProps) => {\n const usher = useUsherContext();\n const sliceLocation = useSliceContext();\n const [values] = useState(() => reportIssueValues({\n issueId: Guid.create(),\n location: location ?? sliceLocation,\n correlationIds: correlationIds ?? usher.recentCorrelationIds(),\n applicationVersion: usher.applicationVersion,\n shareIdentity: usher.shareIdentityByDefault\n }));\n\n return (\n <UsherBoundary>\n <ReportIssueForm values={values} />\n </UsherBoundary>\n );\n};\n\nconst ReportIssueForm = ({ values }: { values: ReturnType<typeof reportIssueValues> }) => {\n const { labels, shareIdentityByDefault } = useUsherContext();\n const { closeDialog } = useDialogContext<ReportIssueDialogProps, ReportSent>();\n const access = useAccessChoice(shareIdentityByDefault);\n\n return (\n <CommandDialog<ReportIssue>\n command={ReportIssue}\n title={labels.reportIssue.title}\n okLabel={labels.reportIssue.send}\n cancelLabel={labels.common.cancel}\n closeAriaLabel={labels.common.close}\n width='560px'\n initialFocus={DialogInitialFocus.Content}\n initialValues={access.initialValues(values)}\n currentValues={access.currentValues}\n onFieldChange={access.onFieldChange}\n onSuccess={() => closeDialog(DialogResult.Ok, { issueId: values.issueId! })}>\n <div className='usher-report-form'>\n <SentWithReport location={values.location!} correlationIdCount={values.correlationIds!.length} />\n <InputTextField<ReportIssue> value={command => command.summary} title={labels.reportIssue.summary} />\n <TextAreaField<ReportIssue> value={command => command.description} title={labels.reportIssue.description} rows={5} />\n <AccessFields<ReportIssue> choice={access.choice} />\n </div>\n </CommandDialog>\n );\n};\n"],"names":["ReportIssueDialog","location","correlationIds","usher","useUsherContext","sliceLocation","useSliceContext","values","useState","reportIssueValues","issueId","Guid","create","recentCorrelationIds","applicationVersion","shareIdentity","shareIdentityByDefault","_jsx","UsherBoundary","ReportIssueForm","labels","closeDialog","useDialogContext","access","useAccessChoice","CommandDialog","command","ReportIssue","title","reportIssue","okLabel","send","cancelLabel","common","cancel","closeAriaLabel","close","width","initialFocus","DialogInitialFocus","Content","initialValues","currentValues","onFieldChange","onSuccess","DialogResult","Ok","_jsxs","div","className","SentWithReport","correlationIdCount","length","InputTextField","value","summary","TextAreaField","description","rows","AccessFields","choice"],"mappings":";;;;;;;;;;;;;;;;AA+BA;;;UAIaA,iBAAAA,GAAoB,CAAC,EAAEC,QAAQ,EAAEC,cAAc,EAA0B,GAAA;AAClF,IAAA,MAAMC,KAAAA,GAAQC,eAAAA,EAAAA;AACd,IAAA,MAAMC,aAAAA,GAAgBC,eAAAA,EAAAA;AACtB,IAAA,MAAM,CAACC,MAAAA,CAAO,GAAGC,QAAAA,CAAS,IAAMC,iBAAAA,CAAkB;AAC9CC,YAAAA,OAAAA,EAASC,KAAKC,MAAM,EAAA;AACpBX,YAAAA,QAAAA,EAAUA,QAAAA,IAAYI,aAAAA;YACtBH,cAAAA,EAAgBA,cAAAA,IAAkBC,MAAMU,oBAAoB,EAAA;AAC5DC,YAAAA,kBAAAA,EAAoBX,MAAMW,kBAAkB;AAC5CC,YAAAA,aAAAA,EAAeZ,MAAMa;AACzB,SAAA,CAAA,CAAA;AAEA,IAAA,qBACIC,GAAA,CAACC,aAAAA,EAAAA;AACG,QAAA,QAAA,gBAAAD,GAAA,CAACE,eAAAA,EAAAA;YAAgBZ,MAAAA,EAAQA;;;AAGrC;AAEA,MAAMY,eAAAA,GAAkB,CAAC,EAAEZ,MAAM,EAAoD,GAAA;AACjF,IAAA,MAAM,EAAEa,MAAM,EAAEJ,sBAAsB,EAAE,GAAGZ,eAAAA,EAAAA;IAC3C,MAAM,EAAEiB,WAAW,EAAE,GAAGC,gBAAAA,EAAAA;AACxB,IAAA,MAAMC,SAASC,eAAAA,CAAgBR,sBAAAA,CAAAA;AAE/B,IAAA,qBACIC,GAAA,CAACQ,aAAAA,EAAAA;QACGC,OAAAA,EAASC,WAAAA;QACTC,KAAAA,EAAOR,MAAAA,CAAOS,WAAW,CAACD,KAAK;QAC/BE,OAAAA,EAASV,MAAAA,CAAOS,WAAW,CAACE,IAAI;QAChCC,WAAAA,EAAaZ,MAAAA,CAAOa,MAAM,CAACC,MAAM;QACjCC,cAAAA,EAAgBf,MAAAA,CAAOa,MAAM,CAACG,KAAK;QACnCC,KAAAA,EAAM,OAAA;AACNC,QAAAA,YAAAA,EAAcC,mBAAmBC,OAAO;QACxCC,aAAAA,EAAelB,MAAAA,CAAOkB,aAAa,CAAClC,MAAAA,CAAAA;AACpCmC,QAAAA,aAAAA,EAAenB,OAAOmB,aAAa;AACnCC,QAAAA,aAAAA,EAAepB,OAAOoB,aAAa;AACnCC,QAAAA,SAAAA,EAAW,IAAMvB,WAAAA,CAAYwB,YAAAA,CAAaC,EAAE,EAAE;AAAEpC,gBAAAA,OAAAA,EAASH,OAAOG;AAAS,aAAA,CAAA;AACzE,QAAA,QAAA,gBAAAqC,IAAA,CAACC,KAAAA,EAAAA;YAAIC,SAAAA,EAAU,mBAAA;;8BACXhC,GAAA,CAACiC,cAAAA,EAAAA;AAAejD,oBAAAA,QAAAA,EAAUM,OAAON,QAAQ;oBAAGkD,kBAAAA,EAAoB5C,MAAAA,CAAOL,cAAc,CAAEkD;;8BACvFnC,GAAA,CAACoC,cAAAA,EAAAA;oBAA4BC,KAAAA,EAAO5B,CAAAA,OAAAA,GAAWA,OAAAA,CAAQ6B,OAAO;oBAAE3B,KAAAA,EAAOR,MAAAA,CAAOS,WAAW,CAAC0B;;8BAC1FtC,GAAA,CAACuC,aAAAA,EAAAA;oBAA2BF,KAAAA,EAAO5B,CAAAA,OAAAA,GAAWA,OAAAA,CAAQ+B,WAAW;oBAAE7B,KAAAA,EAAOR,MAAAA,CAAOS,WAAW,CAAC4B,WAAW;oBAAEC,IAAAA,EAAM;;8BAChHzC,GAAA,CAAC0C,YAAAA,EAAAA;AAA0BC,oBAAAA,MAAAA,EAAQrC,OAAOqC;;;;;AAI1D,CAAA;;"}
@@ -1,8 +0,0 @@
1
- export declare enum ReportLimits {
2
- errorMessageLength = 2000,
3
- errorTypeLength = 500,
4
- stackFrames = 50,
5
- stackFrameTextLength = 1000,
6
- correlationIds = 20
7
- }
8
- //# sourceMappingURL=ReportLimits.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ReportLimits.d.ts","sourceRoot":"","sources":["../../../Reporting/ReportLimits.ts"],"names":[],"mappings":"AAQA,oBAAY,YAAY;IAEpB,kBAAkB,OAAO;IAGzB,eAAe,MAAM;IAGrB,WAAW,KAAK;IAGhB,oBAAoB,OAAO;IAG3B,cAAc,KAAK;CACtB"}
@@ -1,17 +0,0 @@
1
- // Copyright (c) Cratis. All rights reserved.
2
- // Licensed under the MIT license. See LICENSE file in the project root for full license information.
3
- /**
4
- * The most the backend accepts in one report, as `ReportLimits` in the Usher backend states it. What the application
5
- * itself gathers - stack frames, correlation ids and the error's own texts - is cut to these before a report is sent,
6
- * so a long stack trace never makes a report fail; what the reporter writes is checked by the generated validators.
7
- */ var ReportLimits = /*#__PURE__*/ function(ReportLimits) {
8
- /** The longest error message a report carries. */ ReportLimits[ReportLimits["errorMessageLength"] = 2000] = "errorMessageLength";
9
- /** The longest error type a report carries. */ ReportLimits[ReportLimits["errorTypeLength"] = 500] = "errorTypeLength";
10
- /** The most stack frames a report carries. */ ReportLimits[ReportLimits["stackFrames"] = 50] = "stackFrames";
11
- /** The longest method or file of a stack frame. */ ReportLimits[ReportLimits["stackFrameTextLength"] = 1000] = "stackFrameTextLength";
12
- /** The most correlation ids a report carries. */ ReportLimits[ReportLimits["correlationIds"] = 20] = "correlationIds";
13
- return ReportLimits;
14
- }({});
15
-
16
- export { ReportLimits };
17
- //# sourceMappingURL=ReportLimits.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ReportLimits.js","sources":["../../../Reporting/ReportLimits.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\n/**\n * The most the backend accepts in one report, as `ReportLimits` in the Usher backend states it. What the application\n * itself gathers - stack frames, correlation ids and the error's own texts - is cut to these before a report is sent,\n * so a long stack trace never makes a report fail; what the reporter writes is checked by the generated validators.\n */\nexport enum ReportLimits {\n /** The longest error message a report carries. */\n errorMessageLength = 2000,\n\n /** The longest error type a report carries. */\n errorTypeLength = 500,\n\n /** The most stack frames a report carries. */\n stackFrames = 50,\n\n /** The longest method or file of a stack frame. */\n stackFrameTextLength = 1000,\n\n /** The most correlation ids a report carries. */\n correlationIds = 20\n}\n"],"names":["ReportLimits"],"mappings":"AAAA;AACA;AAEA;;;;IAKO,IAAKA,YAAAA,iBAAAA,SAAAA,YAAAA,EAAAA;AACR,uDAAgD,YAAA,CAAA,YAAA,CAAA,oBAAA,CAAA,GAC3B,IAAA,CAAA,GAAA,oBAAA;AAErB,oDAA6C,YAAA,CAAA,YAAA,CAAA,iBAAA,CAAA,GAC3B,GAAA,CAAA,GAAA,iBAAA;AAElB,mDAA4C,YAAA,CAAA,YAAA,CAAA,aAAA,CAAA,GAC9B,EAAA,CAAA,GAAA,aAAA;AAEd,wDAAiD,YAAA,CAAA,YAAA,CAAA,sBAAA,CAAA,GAC1B,IAAA,CAAA,GAAA,sBAAA;AAEvB,sDAA+C,YAAA,CAAA,YAAA,CAAA,gBAAA,CAAA,GAC9B,EAAA,CAAA,GAAA,gBAAA;AAdTA,IAAAA,OAAAA,YAAAA;AAeX,CAAA,CAAA,EAAA;;"}
@@ -1,5 +0,0 @@
1
- import { Guid } from '@cratis/fundamentals';
2
- export interface ReportSent {
3
- readonly issueId: Guid;
4
- }
5
- //# sourceMappingURL=ReportSent.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ReportSent.d.ts","sourceRoot":"","sources":["../../../Reporting/ReportSent.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAK5C,MAAM,WAAW,UAAU;IAEvB,QAAQ,CAAC,OAAO,EAAE,IAAI,CAAC;CAC1B"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=ReportSent.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ReportSent.js","sourceRoot":"","sources":["../../../Reporting/ReportSent.ts"],"names":[],"mappings":""}
@@ -1,7 +0,0 @@
1
- import { LocationParts } from './formatLocation.js';
2
- export interface SentWithReportProps {
3
- location: LocationParts;
4
- correlationIdCount: number;
5
- }
6
- export declare const SentWithReport: ({ location, correlationIdCount }: SentWithReportProps) => import("react").JSX.Element;
7
- //# sourceMappingURL=SentWithReport.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SentWithReport.d.ts","sourceRoot":"","sources":["../../../Reporting/SentWithReport.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAkB,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAKpE,MAAM,WAAW,mBAAmB;IAEhC,QAAQ,EAAE,aAAa,CAAC;IAGxB,kBAAkB,EAAE,MAAM,CAAC;CAC9B;AAMD,eAAO,MAAM,cAAc,GAAI,kCAAkC,mBAAmB,gCAcnF,CAAC"}
@@ -1,38 +0,0 @@
1
- import { jsxs, jsx } from 'react/jsx-runtime';
2
- import { format } from '../Labels/format.js';
3
- import { useUsherContext } from '../Provider/UsherContext.js';
4
- import { formatLocation } from './formatLocation.js';
5
-
6
- /**
7
- * Shows the reporter what is sent along with their report: where they were, the application version and how many
8
- * recent requests.
9
- */ const SentWithReport = ({ location, correlationIdCount })=>{
10
- const { labels, applicationName, applicationVersion } = useUsherContext();
11
- const parts = [
12
- formatLocation(location, labels.common.locationSeparator, labels.common.unknownLocation),
13
- [
14
- applicationName,
15
- applicationVersion
16
- ].filter((part)=>part.length > 0).join(' '),
17
- correlationIdCount === 1 ? labels.common.oneRecentRequest : format(labels.common.recentRequests, {
18
- count: correlationIdCount
19
- })
20
- ].filter((part)=>part.length > 0);
21
- return /*#__PURE__*/ jsxs("section", {
22
- className: "usher-sent-with-report",
23
- "aria-label": labels.common.sentWithYourReport,
24
- children: [
25
- /*#__PURE__*/ jsx("span", {
26
- className: "usher-sent-with-report__heading",
27
- children: labels.common.sentWithYourReport
28
- }),
29
- /*#__PURE__*/ jsx("span", {
30
- className: "usher-sent-with-report__parts",
31
- children: parts.join(' · ')
32
- })
33
- ]
34
- });
35
- };
36
-
37
- export { SentWithReport };
38
- //# sourceMappingURL=SentWithReport.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SentWithReport.js","sources":["../../../Reporting/SentWithReport.tsx"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { format } from '../Labels/index.js';\nimport { useUsherContext } from '../Provider/UsherContext.js';\nimport { formatLocation, LocationParts } from './formatLocation.js';\n\n/**\n * Props for {@link SentWithReport}.\n */\nexport interface SentWithReportProps {\n /** Where in the application the reporter was. */\n location: LocationParts;\n\n /** How many recent requests the report carries. */\n correlationIdCount: number;\n}\n\n/**\n * Shows the reporter what is sent along with their report: where they were, the application version and how many\n * recent requests.\n */\nexport const SentWithReport = ({ location, correlationIdCount }: SentWithReportProps) => {\n const { labels, applicationName, applicationVersion } = useUsherContext();\n const parts = [\n formatLocation(location, labels.common.locationSeparator, labels.common.unknownLocation),\n [applicationName, applicationVersion].filter(part => part.length > 0).join(' '),\n correlationIdCount === 1 ? labels.common.oneRecentRequest : format(labels.common.recentRequests, { count: correlationIdCount })\n ].filter(part => part.length > 0);\n\n return (\n <section className='usher-sent-with-report' aria-label={labels.common.sentWithYourReport}>\n <span className='usher-sent-with-report__heading'>{labels.common.sentWithYourReport}</span>\n <span className='usher-sent-with-report__parts'>{parts.join(' · ')}</span>\n </section>\n );\n};\n"],"names":["SentWithReport","location","correlationIdCount","labels","applicationName","applicationVersion","useUsherContext","parts","formatLocation","common","locationSeparator","unknownLocation","filter","part","length","join","oneRecentRequest","format","recentRequests","count","_jsxs","section","className","aria-label","sentWithYourReport","_jsx","span"],"mappings":";;;;;AAkBA;;;UAIaA,cAAAA,GAAiB,CAAC,EAAEC,QAAQ,EAAEC,kBAAkB,EAAuB,GAAA;AAChF,IAAA,MAAM,EAAEC,MAAM,EAAEC,eAAe,EAAEC,kBAAkB,EAAE,GAAGC,eAAAA,EAAAA;AACxD,IAAA,MAAMC,KAAAA,GAAQ;QACVC,cAAAA,CAAeP,QAAAA,EAAUE,OAAOM,MAAM,CAACC,iBAAiB,EAAEP,MAAAA,CAAOM,MAAM,CAACE,eAAe,CAAA;AACvF,QAAA;AAACP,YAAAA,eAAAA;AAAiBC,YAAAA;SAAmB,CAACO,MAAM,CAACC,CAAAA,IAAAA,GAAQA,KAAKC,MAAM,GAAG,CAAA,CAAA,CAAGC,IAAI,CAAC,GAAA,CAAA;QAC3Eb,kBAAAA,KAAuB,CAAA,GAAIC,MAAAA,CAAOM,MAAM,CAACO,gBAAgB,GAAGC,MAAAA,CAAOd,MAAAA,CAAOM,MAAM,CAACS,cAAc,EAAE;YAAEC,KAAAA,EAAOjB;AAAmB,SAAA;AAChI,KAAA,CAACU,MAAM,CAACC,CAAAA,IAAAA,GAAQA,IAAAA,CAAKC,MAAM,GAAG,CAAA,CAAA;AAE/B,IAAA,qBACIM,IAAA,CAACC,SAAAA,EAAAA;QAAQC,SAAAA,EAAU,wBAAA;QAAyBC,YAAAA,EAAYpB,MAAAA,CAAOM,MAAM,CAACe,kBAAkB;;0BACpFC,GAAA,CAACC,MAAAA,EAAAA;gBAAKJ,SAAAA,EAAU,iCAAA;0BAAmCnB,MAAAA,CAAOM,MAAM,CAACe;;0BACjEC,GAAA,CAACC,MAAAA,EAAAA;gBAAKJ,SAAAA,EAAU,+BAAA;AAAiCf,gBAAAA,QAAAA,EAAAA,KAAAA,CAAMQ,IAAI,CAAC,KAAA;;;;AAGxE;;"}
@@ -1,9 +0,0 @@
1
- import { Guid } from '@cratis/fundamentals';
2
- import { StackFrame } from '@cratis/showrunner.usher';
3
- export interface TechnicalDetailsProps {
4
- errorType: string;
5
- correlationIds: Guid[];
6
- stackFrames: StackFrame[];
7
- }
8
- export declare const TechnicalDetails: ({ errorType, correlationIds, stackFrames }: TechnicalDetailsProps) => import("react").JSX.Element;
9
- //# sourceMappingURL=TechnicalDetails.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TechnicalDetails.d.ts","sourceRoot":"","sources":["../../../Reporting/TechnicalDetails.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAOtD,MAAM,WAAW,qBAAqB;IAElC,SAAS,EAAE,MAAM,CAAC;IAGlB,cAAc,EAAE,IAAI,EAAE,CAAC;IAGvB,WAAW,EAAE,UAAU,EAAE,CAAC;CAC7B;AAKD,eAAO,MAAM,gBAAgB,GAAI,4CAA4C,qBAAqB,gCAkCjG,CAAC"}
@@ -1,73 +0,0 @@
1
- import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
2
- import { format } from '../Labels/format.js';
3
- import { useUsherLabels } from '../Provider/UsherContext.js';
4
-
5
- // Copyright (c) Cratis. All rights reserved.
6
- // Licensed under the MIT license. See LICENSE file in the project root for full license information.
7
- /**
8
- * The technical details of an error, collapsed until the reporter opens them.
9
- */ const TechnicalDetails = ({ errorType, correlationIds, stackFrames })=>{
10
- const labels = useUsherLabels();
11
- return /*#__PURE__*/ jsxs("details", {
12
- className: "usher-technical-details",
13
- children: [
14
- /*#__PURE__*/ jsx("summary", {
15
- className: "usher-technical-details__summary",
16
- children: labels.reportError.technicalDetails
17
- }),
18
- /*#__PURE__*/ jsxs("dl", {
19
- className: "usher-technical-details__list",
20
- children: [
21
- errorType.length > 0 && /*#__PURE__*/ jsxs(Fragment, {
22
- children: [
23
- /*#__PURE__*/ jsx("dt", {
24
- children: labels.reportError.errorType
25
- }),
26
- /*#__PURE__*/ jsx("dd", {
27
- children: /*#__PURE__*/ jsx("code", {
28
- children: errorType
29
- })
30
- })
31
- ]
32
- }),
33
- correlationIds.length > 0 && /*#__PURE__*/ jsxs(Fragment, {
34
- children: [
35
- /*#__PURE__*/ jsx("dt", {
36
- children: labels.reportError.correlationId
37
- }),
38
- /*#__PURE__*/ jsx("dd", {
39
- children: /*#__PURE__*/ jsx("code", {
40
- children: correlationIds[0].toString()
41
- })
42
- })
43
- ]
44
- }),
45
- stackFrames.length > 0 && /*#__PURE__*/ jsxs(Fragment, {
46
- children: [
47
- /*#__PURE__*/ jsx("dt", {
48
- children: labels.reportError.stackFrames
49
- }),
50
- /*#__PURE__*/ jsx("dd", {
51
- children: /*#__PURE__*/ jsx("ol", {
52
- className: "usher-technical-details__frames",
53
- children: stackFrames.map((frame, index)=>/*#__PURE__*/ jsx("li", {
54
- children: /*#__PURE__*/ jsx("code", {
55
- children: format(labels.reportError.stackFrame, {
56
- method: frame.method,
57
- file: frame.file,
58
- line: frame.line
59
- })
60
- })
61
- }, index))
62
- })
63
- })
64
- ]
65
- })
66
- ]
67
- })
68
- ]
69
- });
70
- };
71
-
72
- export { TechnicalDetails };
73
- //# sourceMappingURL=TechnicalDetails.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TechnicalDetails.js","sources":["../../../Reporting/TechnicalDetails.tsx"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { Guid } from '@cratis/fundamentals';\nimport { StackFrame } from '@cratis/showrunner.usher';\nimport { format } from '../Labels/index.js';\nimport { useUsherLabels } from '../Provider/UsherContext.js';\n\n/**\n * Props for {@link TechnicalDetails}.\n */\nexport interface TechnicalDetailsProps {\n /** The type of the error; empty when not known. */\n errorType: string;\n\n /** The correlation ids sent with the report. */\n correlationIds: Guid[];\n\n /** The stack frames of the error, top frame first. */\n stackFrames: StackFrame[];\n}\n\n/**\n * The technical details of an error, collapsed until the reporter opens them.\n */\nexport const TechnicalDetails = ({ errorType, correlationIds, stackFrames }: TechnicalDetailsProps) => {\n const labels = useUsherLabels();\n\n return (\n <details className='usher-technical-details'>\n <summary className='usher-technical-details__summary'>{labels.reportError.technicalDetails}</summary>\n <dl className='usher-technical-details__list'>\n {errorType.length > 0 && (\n <>\n <dt>{labels.reportError.errorType}</dt>\n <dd><code>{errorType}</code></dd>\n </>\n )}\n {correlationIds.length > 0 && (\n <>\n <dt>{labels.reportError.correlationId}</dt>\n <dd><code>{correlationIds[0].toString()}</code></dd>\n </>\n )}\n {stackFrames.length > 0 && (\n <>\n <dt>{labels.reportError.stackFrames}</dt>\n <dd>\n <ol className='usher-technical-details__frames'>\n {stackFrames.map((frame, index) => (\n <li key={index}><code>{format(labels.reportError.stackFrame, { method: frame.method, file: frame.file, line: frame.line })}</code></li>\n ))}\n </ol>\n </dd>\n </>\n )}\n </dl>\n </details>\n );\n};\n"],"names":["TechnicalDetails","errorType","correlationIds","stackFrames","labels","useUsherLabels","_jsxs","details","className","_jsx","summary","reportError","technicalDetails","dl","length","_Fragment","dt","dd","code","correlationId","toString","ol","map","frame","index","li","format","stackFrame","method","file","line"],"mappings":";;;;AAAA;AACA;AAqBA;;IAGO,MAAMA,gBAAAA,GAAmB,CAAC,EAAEC,SAAS,EAAEC,cAAc,EAAEC,WAAW,EAAyB,GAAA;AAC9F,IAAA,MAAMC,MAAAA,GAASC,cAAAA,EAAAA;AAEf,IAAA,qBACIC,IAAA,CAACC,SAAAA,EAAAA;QAAQC,SAAAA,EAAU,yBAAA;;0BACfC,GAAA,CAACC,SAAAA,EAAAA;gBAAQF,SAAAA,EAAU,kCAAA;0BAAoCJ,MAAAA,CAAOO,WAAW,CAACC;;0BAC1EN,IAAA,CAACO,IAAAA,EAAAA;gBAAGL,SAAAA,EAAU,+BAAA;;oBACTP,SAAAA,CAAUa,MAAM,GAAG,CAAA,kBAChBR,IAAA,CAAAS,QAAA,EAAA;;0CACIN,GAAA,CAACO,IAAAA,EAAAA;0CAAIZ,MAAAA,CAAOO,WAAW,CAACV;;0CACxBQ,GAAA,CAACQ,IAAAA,EAAAA;AAAG,gCAAA,QAAA,gBAAAR,GAAA,CAACS,MAAAA,EAAAA;AAAMjB,oCAAAA,QAAAA,EAAAA;;;;;oBAGlBC,cAAAA,CAAeY,MAAM,GAAG,CAAA,kBACrBR,IAAA,CAAAS,QAAA,EAAA;;0CACIN,GAAA,CAACO,IAAAA,EAAAA;0CAAIZ,MAAAA,CAAOO,WAAW,CAACQ;;0CACxBV,GAAA,CAACQ,IAAAA,EAAAA;AAAG,gCAAA,QAAA,gBAAAR,GAAA,CAACS,MAAAA,EAAAA;8CAAMhB,cAAc,CAAC,CAAA,CAAE,CAACkB,QAAQ;;;;;oBAG5CjB,WAAAA,CAAYW,MAAM,GAAG,CAAA,kBAClBR,IAAA,CAAAS,QAAA,EAAA;;0CACIN,GAAA,CAACO,IAAAA,EAAAA;0CAAIZ,MAAAA,CAAOO,WAAW,CAACR;;0CACxBM,GAAA,CAACQ,IAAAA,EAAAA;AACG,gCAAA,QAAA,gBAAAR,GAAA,CAACY,IAAAA,EAAAA;oCAAGb,SAAAA,EAAU,iCAAA;AACTL,oCAAAA,QAAAA,EAAAA,WAAAA,CAAYmB,GAAG,CAAC,CAACC,KAAAA,EAAOC,sBACrBf,GAAA,CAACgB,IAAAA,EAAAA;AAAe,4CAAA,QAAA,gBAAAhB,GAAA,CAACS,MAAAA,EAAAA;AAAMQ,gDAAAA,QAAAA,EAAAA,MAAAA,CAAOtB,MAAAA,CAAOO,WAAW,CAACgB,UAAU,EAAE;AAAEC,oDAAAA,MAAAA,EAAQL,MAAMK,MAAM;AAAEC,oDAAAA,IAAAA,EAAMN,MAAMM,IAAI;AAAEC,oDAAAA,IAAAA,EAAMP,MAAMO;AAAK,iDAAA;;AAA/GN,yCAAAA,EAAAA,KAAAA,CAAAA;;;;;;;;;AAS7C;;"}
@@ -1,9 +0,0 @@
1
- import { AccessDuration } from '@cratis/showrunner.usher';
2
- import { UsherLabels } from '../Labels/index.js';
3
- export interface DurationOption {
4
- [key: string]: unknown;
5
- value: AccessDuration;
6
- label: string;
7
- }
8
- export declare function durationOptions(labels: UsherLabels): DurationOption[];
9
- //# sourceMappingURL=durationOptions.d.ts.map