@cratis/showrunner.usher.react 0.0.0-bootstrap.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 (507) hide show
  1. package/Buttons/MyIssuesButton.tsx +78 -0
  2. package/Buttons/ReportButton.tsx +51 -0
  3. package/Buttons/buttonModels.ts +55 -0
  4. package/Buttons/index.ts +6 -0
  5. package/Correlation/CorrelationTracker.ts +51 -0
  6. package/Correlation/index.ts +5 -0
  7. package/Correlation/withCorrelationIdHeader.ts +44 -0
  8. package/Icons.tsx +29 -0
  9. package/Issues/IssueView/AccessPanel.tsx +85 -0
  10. package/Issues/IssueView/GrantAccessDialog.tsx +56 -0
  11. package/Issues/IssueView/IdentityPanel.tsx +38 -0
  12. package/Issues/IssueView/IssueActions.tsx +52 -0
  13. package/Issues/IssueView/IssueConversationPanel.tsx +89 -0
  14. package/Issues/IssueView/IssueHeader.tsx +69 -0
  15. package/Issues/IssueView/IssueView.tsx +74 -0
  16. package/Issues/IssueView/QuestionBanner.tsx +27 -0
  17. package/Issues/IssueView/ReopenIssueDialog.tsx +37 -0
  18. package/Issues/IssueView/ShareIdentityDialog.tsx +37 -0
  19. package/Issues/IssueView/StatusStrip.tsx +42 -0
  20. package/Issues/IssueView/SupportSessions.tsx +59 -0
  21. package/Issues/IssueView/index.ts +15 -0
  22. package/Issues/MyIssues/IssueList.tsx +78 -0
  23. package/Issues/MyIssues/MyIssuesDialog.tsx +64 -0
  24. package/Issues/MyIssues/MyIssuesNavigation.ts +61 -0
  25. package/Issues/MyIssues/index.ts +6 -0
  26. package/Issues/MyIssuesList.ts +33 -0
  27. package/Issues/accessStatus.ts +68 -0
  28. package/Issues/conversationMessages.ts +136 -0
  29. package/Issues/index.ts +12 -0
  30. package/Issues/issueStates.ts +69 -0
  31. package/Issues/sessionActivity.ts +43 -0
  32. package/Issues/useAccessStatus.ts +24 -0
  33. package/Issues/webAddress.ts +22 -0
  34. package/Labels/UsherLabels.ts +365 -0
  35. package/Labels/defaultUsherLabels.ts +178 -0
  36. package/Labels/format.ts +13 -0
  37. package/Labels/index.ts +7 -0
  38. package/Labels/resolveLabels.ts +36 -0
  39. package/Provider/UsherBoundary.tsx +30 -0
  40. package/Provider/UsherContext.ts +109 -0
  41. package/Provider/UsherProvider.tsx +134 -0
  42. package/Provider/index.ts +7 -0
  43. package/Provider/useUsher.ts +72 -0
  44. package/README.md +72 -0
  45. package/Reporting/AccessChoice.ts +107 -0
  46. package/Reporting/AccessFields.tsx +74 -0
  47. package/Reporting/AccessNotice.tsx +33 -0
  48. package/Reporting/ReportErrorDialog.tsx +94 -0
  49. package/Reporting/ReportIssueDialog.tsx +80 -0
  50. package/Reporting/ReportLimits.ts +24 -0
  51. package/Reporting/ReportSent.ts +12 -0
  52. package/Reporting/SentWithReport.tsx +37 -0
  53. package/Reporting/TechnicalDetails.tsx +60 -0
  54. package/Reporting/durationOptions.ts +31 -0
  55. package/Reporting/formatLocation.ts +27 -0
  56. package/Reporting/index.ts +16 -0
  57. package/Reporting/reportValues.ts +150 -0
  58. package/Reporting/useAccessChoice.ts +53 -0
  59. package/dist/cjs/Buttons/MyIssuesButton.d.ts +14 -0
  60. package/dist/cjs/Buttons/MyIssuesButton.d.ts.map +1 -0
  61. package/dist/cjs/Buttons/MyIssuesButton.js +76 -0
  62. package/dist/cjs/Buttons/MyIssuesButton.js.map +1 -0
  63. package/dist/cjs/Buttons/ReportButton.d.ts +8 -0
  64. package/dist/cjs/Buttons/ReportButton.d.ts.map +1 -0
  65. package/dist/cjs/Buttons/ReportButton.js +34 -0
  66. package/dist/cjs/Buttons/ReportButton.js.map +1 -0
  67. package/dist/cjs/Buttons/buttonModels.d.ts +10 -0
  68. package/dist/cjs/Buttons/buttonModels.d.ts.map +1 -0
  69. package/dist/cjs/Buttons/buttonModels.js +44 -0
  70. package/dist/cjs/Buttons/buttonModels.js.map +1 -0
  71. package/dist/cjs/Buttons/index.d.ts +4 -0
  72. package/dist/cjs/Buttons/index.d.ts.map +1 -0
  73. package/dist/cjs/Correlation/CorrelationTracker.d.ts +10 -0
  74. package/dist/cjs/Correlation/CorrelationTracker.d.ts.map +1 -0
  75. package/dist/cjs/Correlation/CorrelationTracker.js +50 -0
  76. package/dist/cjs/Correlation/CorrelationTracker.js.map +1 -0
  77. package/dist/cjs/Correlation/index.d.ts +3 -0
  78. package/dist/cjs/Correlation/index.d.ts.map +1 -0
  79. package/dist/cjs/Correlation/withCorrelationIdHeader.d.ts +6 -0
  80. package/dist/cjs/Correlation/withCorrelationIdHeader.d.ts.map +1 -0
  81. package/dist/cjs/Correlation/withCorrelationIdHeader.js +39 -0
  82. package/dist/cjs/Correlation/withCorrelationIdHeader.js.map +1 -0
  83. package/dist/cjs/Icons.d.ts +4 -0
  84. package/dist/cjs/Icons.d.ts.map +1 -0
  85. package/dist/cjs/Icons.js +53 -0
  86. package/dist/cjs/Icons.js.map +1 -0
  87. package/dist/cjs/Issues/IssueView/AccessPanel.d.ts +6 -0
  88. package/dist/cjs/Issues/IssueView/AccessPanel.d.ts.map +1 -0
  89. package/dist/cjs/Issues/IssueView/AccessPanel.js +124 -0
  90. package/dist/cjs/Issues/IssueView/AccessPanel.js.map +1 -0
  91. package/dist/cjs/Issues/IssueView/GrantAccessDialog.d.ts +6 -0
  92. package/dist/cjs/Issues/IssueView/GrantAccessDialog.d.ts.map +1 -0
  93. package/dist/cjs/Issues/IssueView/GrantAccessDialog.js +56 -0
  94. package/dist/cjs/Issues/IssueView/GrantAccessDialog.js.map +1 -0
  95. package/dist/cjs/Issues/IssueView/IdentityPanel.d.ts +6 -0
  96. package/dist/cjs/Issues/IssueView/IdentityPanel.d.ts.map +1 -0
  97. package/dist/cjs/Issues/IssueView/IdentityPanel.js +45 -0
  98. package/dist/cjs/Issues/IssueView/IdentityPanel.js.map +1 -0
  99. package/dist/cjs/Issues/IssueView/IssueActions.d.ts +6 -0
  100. package/dist/cjs/Issues/IssueView/IssueActions.d.ts.map +1 -0
  101. package/dist/cjs/Issues/IssueView/IssueActions.js +58 -0
  102. package/dist/cjs/Issues/IssueView/IssueActions.js.map +1 -0
  103. package/dist/cjs/Issues/IssueView/IssueConversationPanel.d.ts +6 -0
  104. package/dist/cjs/Issues/IssueView/IssueConversationPanel.d.ts.map +1 -0
  105. package/dist/cjs/Issues/IssueView/IssueConversationPanel.js +97 -0
  106. package/dist/cjs/Issues/IssueView/IssueConversationPanel.js.map +1 -0
  107. package/dist/cjs/Issues/IssueView/IssueHeader.d.ts +7 -0
  108. package/dist/cjs/Issues/IssueView/IssueHeader.d.ts.map +1 -0
  109. package/dist/cjs/Issues/IssueView/IssueHeader.js +94 -0
  110. package/dist/cjs/Issues/IssueView/IssueHeader.js.map +1 -0
  111. package/dist/cjs/Issues/IssueView/IssueView.d.ts +7 -0
  112. package/dist/cjs/Issues/IssueView/IssueView.d.ts.map +1 -0
  113. package/dist/cjs/Issues/IssueView/IssueView.js +85 -0
  114. package/dist/cjs/Issues/IssueView/IssueView.js.map +1 -0
  115. package/dist/cjs/Issues/IssueView/QuestionBanner.d.ts +5 -0
  116. package/dist/cjs/Issues/IssueView/QuestionBanner.d.ts.map +1 -0
  117. package/dist/cjs/Issues/IssueView/QuestionBanner.js +24 -0
  118. package/dist/cjs/Issues/IssueView/QuestionBanner.js.map +1 -0
  119. package/dist/cjs/Issues/IssueView/ReopenIssueDialog.d.ts +6 -0
  120. package/dist/cjs/Issues/IssueView/ReopenIssueDialog.d.ts.map +1 -0
  121. package/dist/cjs/Issues/IssueView/ReopenIssueDialog.js +34 -0
  122. package/dist/cjs/Issues/IssueView/ReopenIssueDialog.js.map +1 -0
  123. package/dist/cjs/Issues/IssueView/ShareIdentityDialog.d.ts +6 -0
  124. package/dist/cjs/Issues/IssueView/ShareIdentityDialog.d.ts.map +1 -0
  125. package/dist/cjs/Issues/IssueView/ShareIdentityDialog.js +32 -0
  126. package/dist/cjs/Issues/IssueView/ShareIdentityDialog.js.map +1 -0
  127. package/dist/cjs/Issues/IssueView/StatusStrip.d.ts +6 -0
  128. package/dist/cjs/Issues/IssueView/StatusStrip.d.ts.map +1 -0
  129. package/dist/cjs/Issues/IssueView/StatusStrip.js +31 -0
  130. package/dist/cjs/Issues/IssueView/StatusStrip.js.map +1 -0
  131. package/dist/cjs/Issues/IssueView/SupportSessions.d.ts +7 -0
  132. package/dist/cjs/Issues/IssueView/SupportSessions.d.ts.map +1 -0
  133. package/dist/cjs/Issues/IssueView/SupportSessions.js +62 -0
  134. package/dist/cjs/Issues/IssueView/SupportSessions.js.map +1 -0
  135. package/dist/cjs/Issues/IssueView/index.d.ts +13 -0
  136. package/dist/cjs/Issues/IssueView/index.d.ts.map +1 -0
  137. package/dist/cjs/Issues/MyIssues/IssueList.d.ts +7 -0
  138. package/dist/cjs/Issues/MyIssues/IssueList.d.ts.map +1 -0
  139. package/dist/cjs/Issues/MyIssues/IssueList.js +92 -0
  140. package/dist/cjs/Issues/MyIssues/IssueList.js.map +1 -0
  141. package/dist/cjs/Issues/MyIssues/MyIssuesDialog.d.ts +7 -0
  142. package/dist/cjs/Issues/MyIssues/MyIssuesDialog.d.ts.map +1 -0
  143. package/dist/cjs/Issues/MyIssues/MyIssuesDialog.js +79 -0
  144. package/dist/cjs/Issues/MyIssues/MyIssuesDialog.js.map +1 -0
  145. package/dist/cjs/Issues/MyIssues/MyIssuesNavigation.d.ts +21 -0
  146. package/dist/cjs/Issues/MyIssues/MyIssuesNavigation.d.ts.map +1 -0
  147. package/dist/cjs/Issues/MyIssues/MyIssuesNavigation.js +52 -0
  148. package/dist/cjs/Issues/MyIssues/MyIssuesNavigation.js.map +1 -0
  149. package/dist/cjs/Issues/MyIssues/index.d.ts +4 -0
  150. package/dist/cjs/Issues/MyIssues/index.d.ts.map +1 -0
  151. package/dist/cjs/Issues/MyIssuesList.d.ts +7 -0
  152. package/dist/cjs/Issues/MyIssuesList.d.ts.map +1 -0
  153. package/dist/cjs/Issues/MyIssuesList.js +33 -0
  154. package/dist/cjs/Issues/MyIssuesList.js.map +1 -0
  155. package/dist/cjs/Issues/accessStatus.d.ts +13 -0
  156. package/dist/cjs/Issues/accessStatus.d.ts.map +1 -0
  157. package/dist/cjs/Issues/accessStatus.js +60 -0
  158. package/dist/cjs/Issues/accessStatus.js.map +1 -0
  159. package/dist/cjs/Issues/conversationMessages.d.ts +14 -0
  160. package/dist/cjs/Issues/conversationMessages.d.ts.map +1 -0
  161. package/dist/cjs/Issues/conversationMessages.js +131 -0
  162. package/dist/cjs/Issues/conversationMessages.js.map +1 -0
  163. package/dist/cjs/Issues/index.d.ts +10 -0
  164. package/dist/cjs/Issues/index.d.ts.map +1 -0
  165. package/dist/cjs/Issues/issueStates.d.ts +12 -0
  166. package/dist/cjs/Issues/issueStates.d.ts.map +1 -0
  167. package/dist/cjs/Issues/issueStates.js +86 -0
  168. package/dist/cjs/Issues/issueStates.js.map +1 -0
  169. package/dist/cjs/Issues/sessionActivity.d.ts +8 -0
  170. package/dist/cjs/Issues/sessionActivity.d.ts.map +1 -0
  171. package/dist/cjs/Issues/sessionActivity.js +39 -0
  172. package/dist/cjs/Issues/sessionActivity.js.map +1 -0
  173. package/dist/cjs/Issues/useAccessStatus.d.ts +4 -0
  174. package/dist/cjs/Issues/useAccessStatus.d.ts.map +1 -0
  175. package/dist/cjs/Issues/useAccessStatus.js +30 -0
  176. package/dist/cjs/Issues/useAccessStatus.js.map +1 -0
  177. package/dist/cjs/Issues/webAddress.d.ts +2 -0
  178. package/dist/cjs/Issues/webAddress.d.ts.map +1 -0
  179. package/dist/cjs/Issues/webAddress.js +24 -0
  180. package/dist/cjs/Issues/webAddress.js.map +1 -0
  181. package/dist/cjs/Labels/UsherLabels.d.ts +177 -0
  182. package/dist/cjs/Labels/UsherLabels.d.ts.map +1 -0
  183. package/dist/cjs/Labels/defaultUsherLabels.d.ts +3 -0
  184. package/dist/cjs/Labels/defaultUsherLabels.d.ts.map +1 -0
  185. package/dist/cjs/Labels/defaultUsherLabels.js +179 -0
  186. package/dist/cjs/Labels/defaultUsherLabels.js.map +1 -0
  187. package/dist/cjs/Labels/format.d.ts +2 -0
  188. package/dist/cjs/Labels/format.d.ts.map +1 -0
  189. package/dist/cjs/Labels/format.js +15 -0
  190. package/dist/cjs/Labels/format.js.map +1 -0
  191. package/dist/cjs/Labels/index.d.ts +5 -0
  192. package/dist/cjs/Labels/index.d.ts.map +1 -0
  193. package/dist/cjs/Labels/resolveLabels.d.ts +3 -0
  194. package/dist/cjs/Labels/resolveLabels.d.ts.map +1 -0
  195. package/dist/cjs/Labels/resolveLabels.js +35 -0
  196. package/dist/cjs/Labels/resolveLabels.js.map +1 -0
  197. package/dist/cjs/Provider/UsherBoundary.d.ts +6 -0
  198. package/dist/cjs/Provider/UsherBoundary.d.ts.map +1 -0
  199. package/dist/cjs/Provider/UsherBoundary.js +24 -0
  200. package/dist/cjs/Provider/UsherBoundary.js.map +1 -0
  201. package/dist/cjs/Provider/UsherContext.d.ts +24 -0
  202. package/dist/cjs/Provider/UsherContext.d.ts.map +1 -0
  203. package/dist/cjs/Provider/UsherContext.js +41 -0
  204. package/dist/cjs/Provider/UsherContext.js.map +1 -0
  205. package/dist/cjs/Provider/UsherProvider.d.ts +14 -0
  206. package/dist/cjs/Provider/UsherProvider.d.ts.map +1 -0
  207. package/dist/cjs/Provider/UsherProvider.js +122 -0
  208. package/dist/cjs/Provider/UsherProvider.js.map +1 -0
  209. package/dist/cjs/Provider/index.d.ts +5 -0
  210. package/dist/cjs/Provider/index.d.ts.map +1 -0
  211. package/dist/cjs/Provider/useUsher.d.ts +13 -0
  212. package/dist/cjs/Provider/useUsher.d.ts.map +1 -0
  213. package/dist/cjs/Provider/useUsher.js +31 -0
  214. package/dist/cjs/Provider/useUsher.js.map +1 -0
  215. package/dist/cjs/Reporting/AccessChoice.d.ts +13 -0
  216. package/dist/cjs/Reporting/AccessChoice.d.ts.map +1 -0
  217. package/dist/cjs/Reporting/AccessChoice.js +113 -0
  218. package/dist/cjs/Reporting/AccessChoice.js.map +1 -0
  219. package/dist/cjs/Reporting/AccessFields.d.ts +12 -0
  220. package/dist/cjs/Reporting/AccessFields.d.ts.map +1 -0
  221. package/dist/cjs/Reporting/AccessFields.js +79 -0
  222. package/dist/cjs/Reporting/AccessFields.js.map +1 -0
  223. package/dist/cjs/Reporting/AccessNotice.d.ts +7 -0
  224. package/dist/cjs/Reporting/AccessNotice.d.ts.map +1 -0
  225. package/dist/cjs/Reporting/AccessNotice.js +28 -0
  226. package/dist/cjs/Reporting/AccessNotice.js.map +1 -0
  227. package/dist/cjs/Reporting/ReportErrorDialog.d.ts +9 -0
  228. package/dist/cjs/Reporting/ReportErrorDialog.d.ts.map +1 -0
  229. package/dist/cjs/Reporting/ReportErrorDialog.js +87 -0
  230. package/dist/cjs/Reporting/ReportErrorDialog.js.map +1 -0
  231. package/dist/cjs/Reporting/ReportIssueDialog.d.ts +8 -0
  232. package/dist/cjs/Reporting/ReportIssueDialog.d.ts.map +1 -0
  233. package/dist/cjs/Reporting/ReportIssueDialog.js +81 -0
  234. package/dist/cjs/Reporting/ReportIssueDialog.js.map +1 -0
  235. package/dist/cjs/Reporting/ReportLimits.d.ts +8 -0
  236. package/dist/cjs/Reporting/ReportLimits.d.ts.map +1 -0
  237. package/dist/cjs/Reporting/ReportLimits.js +19 -0
  238. package/dist/cjs/Reporting/ReportLimits.js.map +1 -0
  239. package/dist/cjs/Reporting/ReportSent.d.ts +5 -0
  240. package/dist/cjs/Reporting/ReportSent.d.ts.map +1 -0
  241. package/dist/cjs/Reporting/SentWithReport.d.ts +7 -0
  242. package/dist/cjs/Reporting/SentWithReport.d.ts.map +1 -0
  243. package/dist/cjs/Reporting/SentWithReport.js +40 -0
  244. package/dist/cjs/Reporting/SentWithReport.js.map +1 -0
  245. package/dist/cjs/Reporting/TechnicalDetails.d.ts +9 -0
  246. package/dist/cjs/Reporting/TechnicalDetails.d.ts.map +1 -0
  247. package/dist/cjs/Reporting/TechnicalDetails.js +75 -0
  248. package/dist/cjs/Reporting/TechnicalDetails.js.map +1 -0
  249. package/dist/cjs/Reporting/durationOptions.d.ts +9 -0
  250. package/dist/cjs/Reporting/durationOptions.d.ts.map +1 -0
  251. package/dist/cjs/Reporting/durationOptions.js +29 -0
  252. package/dist/cjs/Reporting/durationOptions.js.map +1 -0
  253. package/dist/cjs/Reporting/formatLocation.d.ts +7 -0
  254. package/dist/cjs/Reporting/formatLocation.d.ts.map +1 -0
  255. package/dist/cjs/Reporting/formatLocation.js +23 -0
  256. package/dist/cjs/Reporting/formatLocation.js.map +1 -0
  257. package/dist/cjs/Reporting/index.d.ts +14 -0
  258. package/dist/cjs/Reporting/index.d.ts.map +1 -0
  259. package/dist/cjs/Reporting/reportValues.d.ts +22 -0
  260. package/dist/cjs/Reporting/reportValues.d.ts.map +1 -0
  261. package/dist/cjs/Reporting/reportValues.js +124 -0
  262. package/dist/cjs/Reporting/reportValues.js.map +1 -0
  263. package/dist/cjs/Reporting/useAccessChoice.d.ts +13 -0
  264. package/dist/cjs/Reporting/useAccessChoice.d.ts.map +1 -0
  265. package/dist/cjs/Reporting/useAccessChoice.js +41 -0
  266. package/dist/cjs/Reporting/useAccessChoice.js.map +1 -0
  267. package/dist/cjs/index.d.ts +8 -0
  268. package/dist/cjs/index.d.ts.map +1 -0
  269. package/dist/cjs/index.js +133 -0
  270. package/dist/cjs/index.js.map +1 -0
  271. package/dist/cjs/package.json +3 -0
  272. package/dist/esm/Buttons/MyIssuesButton.d.ts +14 -0
  273. package/dist/esm/Buttons/MyIssuesButton.d.ts.map +1 -0
  274. package/dist/esm/Buttons/MyIssuesButton.js +73 -0
  275. package/dist/esm/Buttons/MyIssuesButton.js.map +1 -0
  276. package/dist/esm/Buttons/ReportButton.d.ts +8 -0
  277. package/dist/esm/Buttons/ReportButton.d.ts.map +1 -0
  278. package/dist/esm/Buttons/ReportButton.js +32 -0
  279. package/dist/esm/Buttons/ReportButton.js.map +1 -0
  280. package/dist/esm/Buttons/buttonModels.d.ts +10 -0
  281. package/dist/esm/Buttons/buttonModels.d.ts.map +1 -0
  282. package/dist/esm/Buttons/buttonModels.js +41 -0
  283. package/dist/esm/Buttons/buttonModels.js.map +1 -0
  284. package/dist/esm/Buttons/index.d.ts +4 -0
  285. package/dist/esm/Buttons/index.d.ts.map +1 -0
  286. package/dist/esm/Buttons/index.js +4 -0
  287. package/dist/esm/Buttons/index.js.map +1 -0
  288. package/dist/esm/Correlation/CorrelationTracker.d.ts +10 -0
  289. package/dist/esm/Correlation/CorrelationTracker.d.ts.map +1 -0
  290. package/dist/esm/Correlation/CorrelationTracker.js +48 -0
  291. package/dist/esm/Correlation/CorrelationTracker.js.map +1 -0
  292. package/dist/esm/Correlation/index.d.ts +3 -0
  293. package/dist/esm/Correlation/index.d.ts.map +1 -0
  294. package/dist/esm/Correlation/index.js +3 -0
  295. package/dist/esm/Correlation/index.js.map +1 -0
  296. package/dist/esm/Correlation/withCorrelationIdHeader.d.ts +6 -0
  297. package/dist/esm/Correlation/withCorrelationIdHeader.d.ts.map +1 -0
  298. package/dist/esm/Correlation/withCorrelationIdHeader.js +36 -0
  299. package/dist/esm/Correlation/withCorrelationIdHeader.js.map +1 -0
  300. package/dist/esm/Icons.d.ts +4 -0
  301. package/dist/esm/Icons.d.ts.map +1 -0
  302. package/dist/esm/Icons.js +49 -0
  303. package/dist/esm/Icons.js.map +1 -0
  304. package/dist/esm/Issues/IssueView/AccessPanel.d.ts +6 -0
  305. package/dist/esm/Issues/IssueView/AccessPanel.d.ts.map +1 -0
  306. package/dist/esm/Issues/IssueView/AccessPanel.js +122 -0
  307. package/dist/esm/Issues/IssueView/AccessPanel.js.map +1 -0
  308. package/dist/esm/Issues/IssueView/GrantAccessDialog.d.ts +6 -0
  309. package/dist/esm/Issues/IssueView/GrantAccessDialog.d.ts.map +1 -0
  310. package/dist/esm/Issues/IssueView/GrantAccessDialog.js +54 -0
  311. package/dist/esm/Issues/IssueView/GrantAccessDialog.js.map +1 -0
  312. package/dist/esm/Issues/IssueView/IdentityPanel.d.ts +6 -0
  313. package/dist/esm/Issues/IssueView/IdentityPanel.d.ts.map +1 -0
  314. package/dist/esm/Issues/IssueView/IdentityPanel.js +43 -0
  315. package/dist/esm/Issues/IssueView/IdentityPanel.js.map +1 -0
  316. package/dist/esm/Issues/IssueView/IssueActions.d.ts +6 -0
  317. package/dist/esm/Issues/IssueView/IssueActions.d.ts.map +1 -0
  318. package/dist/esm/Issues/IssueView/IssueActions.js +56 -0
  319. package/dist/esm/Issues/IssueView/IssueActions.js.map +1 -0
  320. package/dist/esm/Issues/IssueView/IssueConversationPanel.d.ts +6 -0
  321. package/dist/esm/Issues/IssueView/IssueConversationPanel.d.ts.map +1 -0
  322. package/dist/esm/Issues/IssueView/IssueConversationPanel.js +95 -0
  323. package/dist/esm/Issues/IssueView/IssueConversationPanel.js.map +1 -0
  324. package/dist/esm/Issues/IssueView/IssueHeader.d.ts +7 -0
  325. package/dist/esm/Issues/IssueView/IssueHeader.d.ts.map +1 -0
  326. package/dist/esm/Issues/IssueView/IssueHeader.js +92 -0
  327. package/dist/esm/Issues/IssueView/IssueHeader.js.map +1 -0
  328. package/dist/esm/Issues/IssueView/IssueView.d.ts +7 -0
  329. package/dist/esm/Issues/IssueView/IssueView.d.ts.map +1 -0
  330. package/dist/esm/Issues/IssueView/IssueView.js +83 -0
  331. package/dist/esm/Issues/IssueView/IssueView.js.map +1 -0
  332. package/dist/esm/Issues/IssueView/QuestionBanner.d.ts +5 -0
  333. package/dist/esm/Issues/IssueView/QuestionBanner.d.ts.map +1 -0
  334. package/dist/esm/Issues/IssueView/QuestionBanner.js +22 -0
  335. package/dist/esm/Issues/IssueView/QuestionBanner.js.map +1 -0
  336. package/dist/esm/Issues/IssueView/ReopenIssueDialog.d.ts +6 -0
  337. package/dist/esm/Issues/IssueView/ReopenIssueDialog.d.ts.map +1 -0
  338. package/dist/esm/Issues/IssueView/ReopenIssueDialog.js +32 -0
  339. package/dist/esm/Issues/IssueView/ReopenIssueDialog.js.map +1 -0
  340. package/dist/esm/Issues/IssueView/ShareIdentityDialog.d.ts +6 -0
  341. package/dist/esm/Issues/IssueView/ShareIdentityDialog.d.ts.map +1 -0
  342. package/dist/esm/Issues/IssueView/ShareIdentityDialog.js +30 -0
  343. package/dist/esm/Issues/IssueView/ShareIdentityDialog.js.map +1 -0
  344. package/dist/esm/Issues/IssueView/StatusStrip.d.ts +6 -0
  345. package/dist/esm/Issues/IssueView/StatusStrip.d.ts.map +1 -0
  346. package/dist/esm/Issues/IssueView/StatusStrip.js +29 -0
  347. package/dist/esm/Issues/IssueView/StatusStrip.js.map +1 -0
  348. package/dist/esm/Issues/IssueView/SupportSessions.d.ts +7 -0
  349. package/dist/esm/Issues/IssueView/SupportSessions.d.ts.map +1 -0
  350. package/dist/esm/Issues/IssueView/SupportSessions.js +60 -0
  351. package/dist/esm/Issues/IssueView/SupportSessions.js.map +1 -0
  352. package/dist/esm/Issues/IssueView/index.d.ts +13 -0
  353. package/dist/esm/Issues/IssueView/index.d.ts.map +1 -0
  354. package/dist/esm/Issues/IssueView/index.js +13 -0
  355. package/dist/esm/Issues/IssueView/index.js.map +1 -0
  356. package/dist/esm/Issues/MyIssues/IssueList.d.ts +7 -0
  357. package/dist/esm/Issues/MyIssues/IssueList.d.ts.map +1 -0
  358. package/dist/esm/Issues/MyIssues/IssueList.js +90 -0
  359. package/dist/esm/Issues/MyIssues/IssueList.js.map +1 -0
  360. package/dist/esm/Issues/MyIssues/MyIssuesDialog.d.ts +7 -0
  361. package/dist/esm/Issues/MyIssues/MyIssuesDialog.d.ts.map +1 -0
  362. package/dist/esm/Issues/MyIssues/MyIssuesDialog.js +77 -0
  363. package/dist/esm/Issues/MyIssues/MyIssuesDialog.js.map +1 -0
  364. package/dist/esm/Issues/MyIssues/MyIssuesNavigation.d.ts +21 -0
  365. package/dist/esm/Issues/MyIssues/MyIssuesNavigation.d.ts.map +1 -0
  366. package/dist/esm/Issues/MyIssues/MyIssuesNavigation.js +49 -0
  367. package/dist/esm/Issues/MyIssues/MyIssuesNavigation.js.map +1 -0
  368. package/dist/esm/Issues/MyIssues/index.d.ts +4 -0
  369. package/dist/esm/Issues/MyIssues/index.d.ts.map +1 -0
  370. package/dist/esm/Issues/MyIssues/index.js +4 -0
  371. package/dist/esm/Issues/MyIssues/index.js.map +1 -0
  372. package/dist/esm/Issues/MyIssuesList.d.ts +7 -0
  373. package/dist/esm/Issues/MyIssuesList.d.ts.map +1 -0
  374. package/dist/esm/Issues/MyIssuesList.js +29 -0
  375. package/dist/esm/Issues/MyIssuesList.js.map +1 -0
  376. package/dist/esm/Issues/accessStatus.d.ts +13 -0
  377. package/dist/esm/Issues/accessStatus.d.ts.map +1 -0
  378. package/dist/esm/Issues/accessStatus.js +54 -0
  379. package/dist/esm/Issues/accessStatus.js.map +1 -0
  380. package/dist/esm/Issues/conversationMessages.d.ts +14 -0
  381. package/dist/esm/Issues/conversationMessages.d.ts.map +1 -0
  382. package/dist/esm/Issues/conversationMessages.js +125 -0
  383. package/dist/esm/Issues/conversationMessages.js.map +1 -0
  384. package/dist/esm/Issues/index.d.ts +10 -0
  385. package/dist/esm/Issues/index.d.ts.map +1 -0
  386. package/dist/esm/Issues/index.js +10 -0
  387. package/dist/esm/Issues/index.js.map +1 -0
  388. package/dist/esm/Issues/issueStates.d.ts +12 -0
  389. package/dist/esm/Issues/issueStates.d.ts.map +1 -0
  390. package/dist/esm/Issues/issueStates.js +81 -0
  391. package/dist/esm/Issues/issueStates.js.map +1 -0
  392. package/dist/esm/Issues/sessionActivity.d.ts +8 -0
  393. package/dist/esm/Issues/sessionActivity.d.ts.map +1 -0
  394. package/dist/esm/Issues/sessionActivity.js +37 -0
  395. package/dist/esm/Issues/sessionActivity.js.map +1 -0
  396. package/dist/esm/Issues/useAccessStatus.d.ts +4 -0
  397. package/dist/esm/Issues/useAccessStatus.d.ts.map +1 -0
  398. package/dist/esm/Issues/useAccessStatus.js +28 -0
  399. package/dist/esm/Issues/useAccessStatus.js.map +1 -0
  400. package/dist/esm/Issues/webAddress.d.ts +2 -0
  401. package/dist/esm/Issues/webAddress.d.ts.map +1 -0
  402. package/dist/esm/Issues/webAddress.js +22 -0
  403. package/dist/esm/Issues/webAddress.js.map +1 -0
  404. package/dist/esm/Labels/UsherLabels.d.ts +177 -0
  405. package/dist/esm/Labels/UsherLabels.d.ts.map +1 -0
  406. package/dist/esm/Labels/UsherLabels.js +2 -0
  407. package/dist/esm/Labels/UsherLabels.js.map +1 -0
  408. package/dist/esm/Labels/defaultUsherLabels.d.ts +3 -0
  409. package/dist/esm/Labels/defaultUsherLabels.d.ts.map +1 -0
  410. package/dist/esm/Labels/defaultUsherLabels.js +177 -0
  411. package/dist/esm/Labels/defaultUsherLabels.js.map +1 -0
  412. package/dist/esm/Labels/format.d.ts +2 -0
  413. package/dist/esm/Labels/format.d.ts.map +1 -0
  414. package/dist/esm/Labels/format.js +13 -0
  415. package/dist/esm/Labels/format.js.map +1 -0
  416. package/dist/esm/Labels/index.d.ts +5 -0
  417. package/dist/esm/Labels/index.d.ts.map +1 -0
  418. package/dist/esm/Labels/index.js +5 -0
  419. package/dist/esm/Labels/index.js.map +1 -0
  420. package/dist/esm/Labels/resolveLabels.d.ts +3 -0
  421. package/dist/esm/Labels/resolveLabels.d.ts.map +1 -0
  422. package/dist/esm/Labels/resolveLabels.js +33 -0
  423. package/dist/esm/Labels/resolveLabels.js.map +1 -0
  424. package/dist/esm/Provider/UsherBoundary.d.ts +6 -0
  425. package/dist/esm/Provider/UsherBoundary.d.ts.map +1 -0
  426. package/dist/esm/Provider/UsherBoundary.js +22 -0
  427. package/dist/esm/Provider/UsherBoundary.js.map +1 -0
  428. package/dist/esm/Provider/UsherContext.d.ts +24 -0
  429. package/dist/esm/Provider/UsherContext.d.ts.map +1 -0
  430. package/dist/esm/Provider/UsherContext.js +36 -0
  431. package/dist/esm/Provider/UsherContext.js.map +1 -0
  432. package/dist/esm/Provider/UsherProvider.d.ts +14 -0
  433. package/dist/esm/Provider/UsherProvider.d.ts.map +1 -0
  434. package/dist/esm/Provider/UsherProvider.js +120 -0
  435. package/dist/esm/Provider/UsherProvider.js.map +1 -0
  436. package/dist/esm/Provider/index.d.ts +5 -0
  437. package/dist/esm/Provider/index.d.ts.map +1 -0
  438. package/dist/esm/Provider/index.js +5 -0
  439. package/dist/esm/Provider/index.js.map +1 -0
  440. package/dist/esm/Provider/useUsher.d.ts +13 -0
  441. package/dist/esm/Provider/useUsher.d.ts.map +1 -0
  442. package/dist/esm/Provider/useUsher.js +29 -0
  443. package/dist/esm/Provider/useUsher.js.map +1 -0
  444. package/dist/esm/Reporting/AccessChoice.d.ts +13 -0
  445. package/dist/esm/Reporting/AccessChoice.d.ts.map +1 -0
  446. package/dist/esm/Reporting/AccessChoice.js +106 -0
  447. package/dist/esm/Reporting/AccessChoice.js.map +1 -0
  448. package/dist/esm/Reporting/AccessFields.d.ts +12 -0
  449. package/dist/esm/Reporting/AccessFields.d.ts.map +1 -0
  450. package/dist/esm/Reporting/AccessFields.js +77 -0
  451. package/dist/esm/Reporting/AccessFields.js.map +1 -0
  452. package/dist/esm/Reporting/AccessNotice.d.ts +7 -0
  453. package/dist/esm/Reporting/AccessNotice.d.ts.map +1 -0
  454. package/dist/esm/Reporting/AccessNotice.js +26 -0
  455. package/dist/esm/Reporting/AccessNotice.js.map +1 -0
  456. package/dist/esm/Reporting/ReportErrorDialog.d.ts +9 -0
  457. package/dist/esm/Reporting/ReportErrorDialog.d.ts.map +1 -0
  458. package/dist/esm/Reporting/ReportErrorDialog.js +85 -0
  459. package/dist/esm/Reporting/ReportErrorDialog.js.map +1 -0
  460. package/dist/esm/Reporting/ReportIssueDialog.d.ts +8 -0
  461. package/dist/esm/Reporting/ReportIssueDialog.d.ts.map +1 -0
  462. package/dist/esm/Reporting/ReportIssueDialog.js +79 -0
  463. package/dist/esm/Reporting/ReportIssueDialog.js.map +1 -0
  464. package/dist/esm/Reporting/ReportLimits.d.ts +8 -0
  465. package/dist/esm/Reporting/ReportLimits.d.ts.map +1 -0
  466. package/dist/esm/Reporting/ReportLimits.js +17 -0
  467. package/dist/esm/Reporting/ReportLimits.js.map +1 -0
  468. package/dist/esm/Reporting/ReportSent.d.ts +5 -0
  469. package/dist/esm/Reporting/ReportSent.d.ts.map +1 -0
  470. package/dist/esm/Reporting/ReportSent.js +2 -0
  471. package/dist/esm/Reporting/ReportSent.js.map +1 -0
  472. package/dist/esm/Reporting/SentWithReport.d.ts +7 -0
  473. package/dist/esm/Reporting/SentWithReport.d.ts.map +1 -0
  474. package/dist/esm/Reporting/SentWithReport.js +38 -0
  475. package/dist/esm/Reporting/SentWithReport.js.map +1 -0
  476. package/dist/esm/Reporting/TechnicalDetails.d.ts +9 -0
  477. package/dist/esm/Reporting/TechnicalDetails.d.ts.map +1 -0
  478. package/dist/esm/Reporting/TechnicalDetails.js +73 -0
  479. package/dist/esm/Reporting/TechnicalDetails.js.map +1 -0
  480. package/dist/esm/Reporting/durationOptions.d.ts +9 -0
  481. package/dist/esm/Reporting/durationOptions.d.ts.map +1 -0
  482. package/dist/esm/Reporting/durationOptions.js +27 -0
  483. package/dist/esm/Reporting/durationOptions.js.map +1 -0
  484. package/dist/esm/Reporting/formatLocation.d.ts +7 -0
  485. package/dist/esm/Reporting/formatLocation.d.ts.map +1 -0
  486. package/dist/esm/Reporting/formatLocation.js +21 -0
  487. package/dist/esm/Reporting/formatLocation.js.map +1 -0
  488. package/dist/esm/Reporting/index.d.ts +14 -0
  489. package/dist/esm/Reporting/index.d.ts.map +1 -0
  490. package/dist/esm/Reporting/index.js +14 -0
  491. package/dist/esm/Reporting/index.js.map +1 -0
  492. package/dist/esm/Reporting/reportValues.d.ts +22 -0
  493. package/dist/esm/Reporting/reportValues.d.ts.map +1 -0
  494. package/dist/esm/Reporting/reportValues.js +116 -0
  495. package/dist/esm/Reporting/reportValues.js.map +1 -0
  496. package/dist/esm/Reporting/useAccessChoice.d.ts +13 -0
  497. package/dist/esm/Reporting/useAccessChoice.d.ts.map +1 -0
  498. package/dist/esm/Reporting/useAccessChoice.js +39 -0
  499. package/dist/esm/Reporting/useAccessChoice.js.map +1 -0
  500. package/dist/esm/index.d.ts +8 -0
  501. package/dist/esm/index.d.ts.map +1 -0
  502. package/dist/esm/index.js +48 -0
  503. package/dist/esm/index.js.map +1 -0
  504. package/dist/esm/package.json +3 -0
  505. package/index.ts +10 -0
  506. package/package.json +85 -0
  507. package/styles.css +320 -0
@@ -0,0 +1,365 @@
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
+ /**
5
+ * Every text the Usher components show or announce. Placeholders in braces, such as `{time}`, are filled in by the
6
+ * components.
7
+ */
8
+ export interface UsherLabels {
9
+ /** Texts shared by several components. */
10
+ common: {
11
+ /** The cancel button. */
12
+ cancel: string;
13
+ /** The accessible name of a dialog's close button. */
14
+ close: string;
15
+ /** Introduces what is sent with a report. */
16
+ sentWithYourReport: string;
17
+ /** How many recent requests are sent with a report. `{count}` is the number. */
18
+ recentRequests: string;
19
+ /** Shown for one recent request sent with a report. */
20
+ oneRecentRequest: string;
21
+ /** Shown when nothing is known about where the user is. */
22
+ unknownLocation: string;
23
+ /** Separates the module, feature and slice of a location. */
24
+ locationSeparator: string;
25
+ };
26
+
27
+ /** The report button. */
28
+ reportButton: {
29
+ /** The text, tooltip and accessible name of the button that reports a problem. */
30
+ reportProblem: string;
31
+ /** The text, tooltip and accessible name of the button that reports an error. */
32
+ reportError: string;
33
+ };
34
+
35
+ /** The my issues button. */
36
+ myIssuesButton: {
37
+ /** The text, tooltip and accessible name of the button. */
38
+ label: string;
39
+ /** Added to the accessible name when support waits for the user. `{count}` is the number of issues. */
40
+ waiting: string;
41
+ };
42
+
43
+ /** The identity and access choices of the report dialogs and the grant access dialog. */
44
+ access: {
45
+ /** The checkbox that shares who the reporter is. */
46
+ shareIdentity: string;
47
+ /** Explains what sharing who the reporter is means. */
48
+ shareIdentityDescription: string;
49
+ /** The switch that lets support sign in as the reporter. */
50
+ grantAccess: string;
51
+ /** Explains what letting support sign in means. */
52
+ grantAccessDescription: string;
53
+ /** The duration dropdown. */
54
+ duration: string;
55
+ /** One hour of access. */
56
+ oneHour: string;
57
+ /** One day of access. */
58
+ oneDay: string;
59
+ /** Seven days of access. */
60
+ sevenDays: string;
61
+ /** States what granting access means. `{time}` is when it ends. */
62
+ notice: string;
63
+ };
64
+
65
+ /** The report a problem dialog. */
66
+ reportIssue: {
67
+ /** The title. */
68
+ title: string;
69
+ /** The button that sends the report. */
70
+ send: string;
71
+ /** The summary field. */
72
+ summary: string;
73
+ /** The description field. */
74
+ description: string;
75
+ };
76
+
77
+ /** The report this error dialog. */
78
+ reportError: {
79
+ /** The title. */
80
+ title: string;
81
+ /** The button that sends the report. */
82
+ send: string;
83
+ /** The collapsed section with the technical details. */
84
+ technicalDetails: string;
85
+ /** The type of the error. */
86
+ errorType: string;
87
+ /** The correlation id of the error. */
88
+ correlationId: string;
89
+ /** The stack frames of the error. */
90
+ stackFrames: string;
91
+ /** One stack frame. `{method}`, `{file}` and `{line}` are the frame's parts. */
92
+ stackFrame: string;
93
+ /** The details field. */
94
+ details: string;
95
+ /** The placeholder of the details field. */
96
+ detailsPlaceholder: string;
97
+ };
98
+
99
+ /** The notification shown when a report is sent. */
100
+ reportSent: {
101
+ /** The title. */
102
+ title: string;
103
+ /** The action that opens the issue. */
104
+ view: string;
105
+ };
106
+
107
+ /** The my issues side sheet. */
108
+ myIssues: {
109
+ /** The title. */
110
+ title: string;
111
+ /** The subtitle. */
112
+ description: string;
113
+ /** The button that reports a problem. */
114
+ reportProblem: string;
115
+ /** The switch that shows closed issues. */
116
+ showClosed: string;
117
+ /** The issue column. */
118
+ issueColumn: string;
119
+ /** The state column. */
120
+ stateColumn: string;
121
+ /** The last activity column. */
122
+ lastActivityColumn: string;
123
+ /** Marks an issue support waits for the user on. */
124
+ waitingForYou: string;
125
+ /** Marks an issue a release fixed. `{version}` is the version. */
126
+ fixedIn: string;
127
+ /** Shown when the user has reported nothing. */
128
+ empty: string;
129
+ /** Shown when only closed issues exist and they are hidden. */
130
+ noOpenIssues: string;
131
+ /** Shown while the issues load. */
132
+ loading: string;
133
+ /** Shown when the issues could not load. */
134
+ failed: string;
135
+ /** Shown when the user may not see issues. */
136
+ unauthorized: string;
137
+ /** An issue reported from an error. */
138
+ errorKind: string;
139
+ /** An issue described by hand. */
140
+ manualKind: string;
141
+ };
142
+
143
+ /** The states of an issue. */
144
+ states: {
145
+ /** Reported. */
146
+ reported: string;
147
+ /** Triaged. */
148
+ triaged: string;
149
+ /** Accepted. */
150
+ accepted: string;
151
+ /** In progress. */
152
+ inProgress: string;
153
+ /** Resolved. */
154
+ resolved: string;
155
+ /** Won't fix. */
156
+ wontFix: string;
157
+ /** Withdrawn. */
158
+ withdrawn: string;
159
+ };
160
+
161
+ /** The issue view. */
162
+ issue: {
163
+ /** The back button. */
164
+ back: string;
165
+ /** When the issue was reported. `{date}` is the date. */
166
+ reported: string;
167
+ /** Introduces the known issue. */
168
+ knownIssue: string;
169
+ /** Introduces the work item. */
170
+ trackedIn: string;
171
+ /** Shown while no release has the fix. */
172
+ notReleased: string;
173
+ /** Shown once a release has the fix. `{version}` is the version. */
174
+ fixedIn: string;
175
+ /** Quotes the question support waits for an answer to. `{question}` is the question. */
176
+ questionBanner: string;
177
+ /** Marks the question support waits for an answer to. */
178
+ waitingForAnswer: string;
179
+ /** Marks an answered question. */
180
+ answered: string;
181
+ /** The placeholder of the composer. */
182
+ composerPlaceholder: string;
183
+ /** The placeholder of the composer once the issue is withdrawn. */
184
+ withdrawnPlaceholder: string;
185
+ /** Shown when a message is sent on a withdrawn issue. */
186
+ withdrawnNotice: string;
187
+ /** Shown when the issue cannot be found. */
188
+ notFound: string;
189
+ /** Shown while the issue loads. */
190
+ loading: string;
191
+ };
192
+
193
+ /** The identity panel of the issue view. */
194
+ identity: {
195
+ /** The heading. */
196
+ heading: string;
197
+ /** Shown when support does not know who the reporter is. */
198
+ unknown: string;
199
+ /** Shown when support knows who the reporter is. */
200
+ known: string;
201
+ /** The button that shares who the reporter is. */
202
+ share: string;
203
+ /** The title of the share dialog. */
204
+ shareTitle: string;
205
+ /** Explains what is shared. */
206
+ shareDescription: string;
207
+ /** The confirm button of the share dialog. */
208
+ shareConfirm: string;
209
+ };
210
+
211
+ /** The access panel of the issue view. */
212
+ accessPanel: {
213
+ /** The heading while support may sign in. */
214
+ grantedHeading: string;
215
+ /** The heading while support may not sign in. */
216
+ notGrantedHeading: string;
217
+ /** The heading while support asks to sign in. */
218
+ requestedHeading: string;
219
+ /** Until when support may sign in. `{time}` is when it ends. */
220
+ grantedUntil: string;
221
+ /** Shown when support may not sign in. */
222
+ notGranted: string;
223
+ /** Quotes support's reason for asking. `{reason}` is the reason. */
224
+ requestReason: string;
225
+ /** The button that grants access. */
226
+ grant: string;
227
+ /** The button that dismisses support's request for now. */
228
+ notNow: string;
229
+ /** The button that revokes access. */
230
+ revoke: string;
231
+ /** The title of the revoke confirmation. */
232
+ revokeTitle: string;
233
+ /** The message of the revoke confirmation. */
234
+ revokeMessage: string;
235
+ /** The title of the grant dialog. */
236
+ grantTitle: string;
237
+ /** The confirm button of the grant dialog. */
238
+ grantConfirm: string;
239
+ /** Shown when support has not signed in. */
240
+ noSessions: string;
241
+ /** One session. `{name}`, `{start}` and `{end}` are filled in. */
242
+ session: string;
243
+ /** The end of a session still running. */
244
+ sessionRunning: string;
245
+ /** The heading of the sessions list. */
246
+ sessionsHeading: string;
247
+ /** Shown under a session in which support did nothing as the reporter. */
248
+ sessionDidNothing: string;
249
+ /** What support did as the reporter in a session, by entry kind. `{text}` is the entry's text. */
250
+ sessionActions: SessionActionLabels;
251
+ };
252
+
253
+ /** The actions of the issue view. */
254
+ actions: {
255
+ /** The button that reopens a resolved issue. */
256
+ reopen: string;
257
+ /** The title of the reopen dialog. */
258
+ reopenTitle: string;
259
+ /** The reason field of the reopen dialog. */
260
+ reopenReason: string;
261
+ /** The button that withdraws the issue. */
262
+ withdraw: string;
263
+ /** The title of the withdraw confirmation. */
264
+ withdrawTitle: string;
265
+ /** The message of the withdraw confirmation. */
266
+ withdrawMessage: string;
267
+ };
268
+
269
+ /** The conversation of the issue view. */
270
+ conversation: {
271
+ /** The reporter. */
272
+ you: string;
273
+ /** Support, when the desk hides the name. */
274
+ support: string;
275
+ /** The author of state changes. */
276
+ update: string;
277
+ /** Shown when there is nothing in the conversation. */
278
+ empty: string;
279
+ /** The accessible name of the send button. */
280
+ send: string;
281
+ /** Under a minute ago. */
282
+ justNow: string;
283
+ /** Minutes ago. `{minutes}` is the number. */
284
+ minutesAgo: string;
285
+ /** Hours ago. `{hours}` is the number. */
286
+ hoursAgo: string;
287
+ /** What a state change shows, by entry kind. `{text}` is the entry's text. */
288
+ events: ConversationEventLabels;
289
+ };
290
+ }
291
+
292
+ /**
293
+ * What support did while signed in as the reporter, as the sessions list shows it. `{text}` is the text of the entry.
294
+ */
295
+ export interface SessionActionLabels {
296
+ /** Support added details. */
297
+ detailsAdded: string;
298
+ /** Support answered a question. */
299
+ questionAnswered: string;
300
+ /** Support shared who the reporter is. */
301
+ identityShared: string;
302
+ /** Support reopened the issue. */
303
+ reopened: string;
304
+ /** Support withdrew the issue. */
305
+ withdrawn: string;
306
+ /** Support revoked its own access. */
307
+ accessRevoked: string;
308
+ }
309
+
310
+ /**
311
+ * What the state changes in a conversation show. `{text}` is the text of the entry, such as a reason or a version.
312
+ */
313
+ export interface ConversationEventLabels {
314
+ /** The reporter shared who they are. */
315
+ identityShared: string;
316
+ /** The reporter let support sign in. */
317
+ accessGranted: string;
318
+ /** The reporter revoked access. */
319
+ accessRevoked: string;
320
+ /** Access ended. */
321
+ accessLapsed: string;
322
+ /** Support asked to sign in. */
323
+ accessRequested: string;
324
+ /** Support signed in. */
325
+ supportSignedIn: string;
326
+ /** A support session ended. */
327
+ supportSessionEnded: string;
328
+ /** Support triaged the issue. */
329
+ triaged: string;
330
+ /** Support accepted the issue. */
331
+ accepted: string;
332
+ /** Support declined to fix the issue. */
333
+ declinedToFix: string;
334
+ /** Support started work. */
335
+ workStarted: string;
336
+ /** Support resolved the issue. */
337
+ resolved: string;
338
+ /** The reporter reopened the issue. */
339
+ reopened: string;
340
+ /** The reporter withdrew the issue. */
341
+ withdrawn: string;
342
+ /** The issue was linked to a known issue. */
343
+ linkedToKnownIssue: string;
344
+ /** The issue was unlinked from its known issue. */
345
+ unlinkedFromKnownIssue: string;
346
+ /** The issue was linked to a work item. */
347
+ linkedToWorkItem: string;
348
+ /** The issue was unlinked from its work item. */
349
+ unlinkedFromWorkItem: string;
350
+ /** A release with the fix shipped. */
351
+ fixReleased: string;
352
+ }
353
+
354
+ /**
355
+ * Makes every property of a type optional, all the way down.
356
+ */
357
+ export type DeepPartial<T> = {
358
+ [TKey in keyof T]?: T[TKey] extends object ? DeepPartial<T[TKey]> : T[TKey];
359
+ };
360
+
361
+ /**
362
+ * The labels of the Usher components that a solution replaces, for instance to localize them. Labels left out keep
363
+ * their English defaults.
364
+ */
365
+ export type UsherLabelOverrides = DeepPartial<UsherLabels>;
@@ -0,0 +1,178 @@
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
+ import { UsherLabels } from './UsherLabels.js';
5
+
6
+ /**
7
+ * The English labels of the Usher components.
8
+ */
9
+ export const defaultUsherLabels: UsherLabels = {
10
+ common: {
11
+ cancel: 'Cancel',
12
+ close: 'Close',
13
+ sentWithYourReport: 'Sent with your report',
14
+ recentRequests: '{count} recent requests',
15
+ oneRecentRequest: '1 recent request',
16
+ unknownLocation: 'Unknown location',
17
+ locationSeparator: ' › '
18
+ },
19
+ reportButton: {
20
+ reportProblem: 'Report a bug',
21
+ reportError: 'Report this error'
22
+ },
23
+ myIssuesButton: {
24
+ label: 'My issues',
25
+ waiting: '{count} waiting for you'
26
+ },
27
+ access: {
28
+ shareIdentity: 'Let support know who I am',
29
+ shareIdentityDescription: 'Support sees your name and email. Without this, they only see where the report came from.',
30
+ grantAccess: 'Let support sign in as me to look into this',
31
+ grantAccessDescription: 'Only for this report, and only for the time you choose.',
32
+ duration: 'For how long',
33
+ oneHour: '1 hour',
34
+ oneDay: '1 day',
35
+ sevenDays: '7 days',
36
+ notice: 'Support will see who you are and can act as you until {time}. You can revoke this at any time.'
37
+ },
38
+ reportIssue: {
39
+ title: 'Report a problem',
40
+ send: 'Send report',
41
+ summary: 'Summary',
42
+ description: 'What happened?'
43
+ },
44
+ reportError: {
45
+ title: 'Report this error',
46
+ send: 'Send report',
47
+ technicalDetails: 'Technical details',
48
+ errorType: 'Error type',
49
+ correlationId: 'Correlation id',
50
+ stackFrames: 'Stack frames',
51
+ stackFrame: '{method} line {line}',
52
+ details: 'What were you doing? (optional)',
53
+ detailsPlaceholder: 'For example: I selected three invoices and pressed Pay selected.'
54
+ },
55
+ reportSent: {
56
+ title: 'Report sent',
57
+ view: 'View'
58
+ },
59
+ myIssues: {
60
+ title: 'My issues',
61
+ description: 'What you have reported. Updates appear here as support works on them.',
62
+ reportProblem: 'Report a problem',
63
+ showClosed: 'Show closed',
64
+ issueColumn: 'Issue',
65
+ stateColumn: 'State',
66
+ lastActivityColumn: 'Last activity',
67
+ waitingForYou: 'Waiting for you',
68
+ fixedIn: 'Fixed in {version}',
69
+ empty: 'You haven\'t reported anything yet.',
70
+ noOpenIssues: 'You have no open issues.',
71
+ loading: 'Loading your issues…',
72
+ failed: 'Your issues could not be loaded.',
73
+ unauthorized: 'You are not allowed to see issues.',
74
+ errorKind: 'Error',
75
+ manualKind: 'Problem'
76
+ },
77
+ states: {
78
+ reported: 'Reported',
79
+ triaged: 'Triaged',
80
+ accepted: 'Accepted',
81
+ inProgress: 'In progress',
82
+ resolved: 'Resolved',
83
+ wontFix: 'Won\'t fix',
84
+ withdrawn: 'Withdrawn'
85
+ },
86
+ issue: {
87
+ back: 'Back to my issues',
88
+ reported: 'Reported {date}',
89
+ knownIssue: 'Known issue:',
90
+ trackedIn: 'Tracked in',
91
+ notReleased: 'Not released yet',
92
+ fixedIn: 'Fixed in {version}',
93
+ questionBanner: 'Your reply answers support\'s question: “{question}”',
94
+ waitingForAnswer: 'Waiting for your answer',
95
+ answered: 'Answered',
96
+ composerPlaceholder: 'Write to support',
97
+ withdrawnPlaceholder: 'You withdrew this issue',
98
+ withdrawnNotice: 'You withdrew this issue, so nothing more can be added to it.',
99
+ notFound: 'This issue could not be found.',
100
+ loading: 'Loading the issue…'
101
+ },
102
+ identity: {
103
+ heading: 'Who you are',
104
+ unknown: 'Support doesn\'t know who you are. They only see where the report came from.',
105
+ known: 'Support knows who you are.',
106
+ share: 'Share who I am',
107
+ shareTitle: 'Share who you are',
108
+ shareDescription: 'Support will see your name and email on this issue. This cannot be undone.',
109
+ shareConfirm: 'Share'
110
+ },
111
+ accessPanel: {
112
+ grantedHeading: 'Support can sign in as you',
113
+ notGrantedHeading: 'Support access',
114
+ requestedHeading: 'Support asks to sign in as you',
115
+ grantedUntil: 'Until {time}.',
116
+ notGranted: 'Support cannot sign in as you.',
117
+ requestReason: '“{reason}” Granting also shares who you are.',
118
+ grant: 'Grant access',
119
+ notNow: 'Not now',
120
+ revoke: 'Revoke access',
121
+ revokeTitle: 'Revoke access?',
122
+ revokeMessage: 'Support will no longer be able to sign in as you on this issue.',
123
+ grantTitle: 'Let support sign in as you',
124
+ grantConfirm: 'Grant access',
125
+ noSessions: 'No support sessions yet.',
126
+ session: '{name} signed in as you · {start}–{end}',
127
+ sessionRunning: 'now',
128
+ sessionsHeading: 'Support sessions',
129
+ sessionDidNothing: 'Did nothing as you.',
130
+ sessionActions: {
131
+ detailsAdded: 'Added details: {text}',
132
+ questionAnswered: 'Answered a question: {text}',
133
+ identityShared: 'Shared who you are',
134
+ reopened: 'Reopened the issue: {text}',
135
+ withdrawn: 'Withdrew the issue',
136
+ accessRevoked: 'Revoked its access'
137
+ }
138
+ },
139
+ actions: {
140
+ reopen: 'Reopen issue',
141
+ reopenTitle: 'Reopen issue',
142
+ reopenReason: 'Why is it not fixed?',
143
+ withdraw: 'Withdraw issue',
144
+ withdrawTitle: 'Withdraw this issue?',
145
+ withdrawMessage: 'Support stops working on it, and you cannot add to it afterwards.'
146
+ },
147
+ conversation: {
148
+ you: 'You',
149
+ support: 'Support',
150
+ update: 'Update',
151
+ empty: 'Nothing has happened on this issue yet.',
152
+ send: 'Send',
153
+ justNow: 'just now',
154
+ minutesAgo: '{minutes} min ago',
155
+ hoursAgo: '{hours} h ago',
156
+ events: {
157
+ identityShared: 'You shared who you are',
158
+ accessGranted: 'You let support sign in as you',
159
+ accessRevoked: 'You revoked support access',
160
+ accessLapsed: 'Support access ended',
161
+ accessRequested: 'Support asked to sign in as you: {text}',
162
+ supportSignedIn: 'Support signed in as you',
163
+ supportSessionEnded: 'Support signed out',
164
+ triaged: 'Triaged by support',
165
+ accepted: 'Accepted',
166
+ declinedToFix: 'Won\'t fix: {text}',
167
+ workStarted: 'Work started',
168
+ resolved: 'Resolved: {text}',
169
+ reopened: 'You reopened the issue: {text}',
170
+ withdrawn: 'You withdrew the issue',
171
+ linkedToKnownIssue: 'Linked to known issue “{text}”',
172
+ unlinkedFromKnownIssue: 'No longer linked to a known issue',
173
+ linkedToWorkItem: 'Tracked as “{text}”',
174
+ unlinkedFromWorkItem: 'No longer tracked',
175
+ fixReleased: 'Fixed in {text}'
176
+ }
177
+ }
178
+ };
@@ -0,0 +1,13 @@
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
+ /**
5
+ * Fills the placeholders of a label, such as `{count}`, with values. A placeholder without a value is left as it is.
6
+ * @param template The label.
7
+ * @param values The values by placeholder name.
8
+ * @returns The label with its placeholders filled in.
9
+ */
10
+ export function format(template: string, values: Record<string, string | number>): string {
11
+ return template.replace(/\{(\w+)\}/g, (placeholder, name: string) =>
12
+ Object.hasOwn(values, name) ? String(values[name]) : placeholder);
13
+ }
@@ -0,0 +1,7 @@
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
+ export * from './UsherLabels.js';
5
+ export * from './defaultUsherLabels.js';
6
+ export * from './resolveLabels.js';
7
+ export * from './format.js';
@@ -0,0 +1,36 @@
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
+ import { defaultUsherLabels } from './defaultUsherLabels.js';
5
+ import { UsherLabelOverrides, UsherLabels } from './UsherLabels.js';
6
+
7
+ /**
8
+ * Resolves the labels to show: the overrides given, and the English default for every label left out.
9
+ * @param overrides The labels a solution replaces.
10
+ * @returns The {@link UsherLabels}.
11
+ */
12
+ export function resolveLabels(overrides?: UsherLabelOverrides): UsherLabels {
13
+ return merge(defaultUsherLabels, overrides) as UsherLabels;
14
+ }
15
+
16
+ function merge(defaults: object, overrides?: object): object {
17
+ if (!overrides) {
18
+ return defaults;
19
+ }
20
+
21
+ const merged: Record<string, unknown> = { ...defaults };
22
+ for (const [key, value] of Object.entries(overrides)) {
23
+ if (value === undefined) {
24
+ continue;
25
+ }
26
+
27
+ const defaultValue = (defaults as Record<string, unknown>)[key];
28
+ merged[key] = isObject(defaultValue) && isObject(value) ? merge(defaultValue, value) : value;
29
+ }
30
+
31
+ return merged;
32
+ }
33
+
34
+ function isObject(value: unknown): value is object {
35
+ return typeof value === 'object' && value !== null && !Array.isArray(value);
36
+ }
@@ -0,0 +1,30 @@
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
+ import { ArcContext } from '@cratis/arc.react';
5
+ import { Slice } from '@cratis/arc.react/slices';
6
+ import { ReactNode, useContext } from 'react';
7
+ import { UsherContext } from './UsherContext.js';
8
+
9
+ /**
10
+ * Props for {@link UsherBoundary}.
11
+ */
12
+ export interface UsherBoundaryProps {
13
+ /** What Usher renders. */
14
+ children?: ReactNode;
15
+ }
16
+
17
+ /**
18
+ * Keeps Usher's own commands and queries out of what a report carries: they run without correlation tracking, and
19
+ * do not change the slice location of the solution's components around them.
20
+ */
21
+ export const UsherBoundary = ({ children }: UsherBoundaryProps) => {
22
+ const usher = useContext(UsherContext);
23
+ const arc = useContext(ArcContext);
24
+
25
+ return (
26
+ <ArcContext.Provider value={usher.untrackedArc ?? arc}>
27
+ <Slice>{children}</Slice>
28
+ </ArcContext.Provider>
29
+ );
30
+ };