@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.
- package/Buttons/MyIssuesButton.tsx +78 -0
- package/Buttons/ReportButton.tsx +51 -0
- package/Buttons/buttonModels.ts +55 -0
- package/Buttons/index.ts +6 -0
- package/Correlation/CorrelationTracker.ts +51 -0
- package/Correlation/index.ts +5 -0
- package/Correlation/withCorrelationIdHeader.ts +44 -0
- package/Icons.tsx +29 -0
- package/Issues/IssueView/AccessPanel.tsx +85 -0
- package/Issues/IssueView/GrantAccessDialog.tsx +56 -0
- package/Issues/IssueView/IdentityPanel.tsx +38 -0
- package/Issues/IssueView/IssueActions.tsx +52 -0
- package/Issues/IssueView/IssueConversationPanel.tsx +89 -0
- package/Issues/IssueView/IssueHeader.tsx +69 -0
- package/Issues/IssueView/IssueView.tsx +74 -0
- package/Issues/IssueView/QuestionBanner.tsx +27 -0
- package/Issues/IssueView/ReopenIssueDialog.tsx +37 -0
- package/Issues/IssueView/ShareIdentityDialog.tsx +37 -0
- package/Issues/IssueView/StatusStrip.tsx +42 -0
- package/Issues/IssueView/SupportSessions.tsx +59 -0
- package/Issues/IssueView/index.ts +15 -0
- package/Issues/MyIssues/IssueList.tsx +78 -0
- package/Issues/MyIssues/MyIssuesDialog.tsx +64 -0
- package/Issues/MyIssues/MyIssuesNavigation.ts +61 -0
- package/Issues/MyIssues/index.ts +6 -0
- package/Issues/MyIssuesList.ts +33 -0
- package/Issues/accessStatus.ts +68 -0
- package/Issues/conversationMessages.ts +136 -0
- package/Issues/index.ts +12 -0
- package/Issues/issueStates.ts +69 -0
- package/Issues/sessionActivity.ts +43 -0
- package/Issues/useAccessStatus.ts +24 -0
- package/Issues/webAddress.ts +22 -0
- package/Labels/UsherLabels.ts +365 -0
- package/Labels/defaultUsherLabels.ts +178 -0
- package/Labels/format.ts +13 -0
- package/Labels/index.ts +7 -0
- package/Labels/resolveLabels.ts +36 -0
- package/Provider/UsherBoundary.tsx +30 -0
- package/Provider/UsherContext.ts +109 -0
- package/Provider/UsherProvider.tsx +134 -0
- package/Provider/index.ts +7 -0
- package/Provider/useUsher.ts +72 -0
- package/README.md +72 -0
- package/Reporting/AccessChoice.ts +107 -0
- package/Reporting/AccessFields.tsx +74 -0
- package/Reporting/AccessNotice.tsx +33 -0
- package/Reporting/ReportErrorDialog.tsx +94 -0
- package/Reporting/ReportIssueDialog.tsx +80 -0
- package/Reporting/ReportLimits.ts +24 -0
- package/Reporting/ReportSent.ts +12 -0
- package/Reporting/SentWithReport.tsx +37 -0
- package/Reporting/TechnicalDetails.tsx +60 -0
- package/Reporting/durationOptions.ts +31 -0
- package/Reporting/formatLocation.ts +27 -0
- package/Reporting/index.ts +16 -0
- package/Reporting/reportValues.ts +150 -0
- package/Reporting/useAccessChoice.ts +53 -0
- package/dist/cjs/Buttons/MyIssuesButton.d.ts +14 -0
- package/dist/cjs/Buttons/MyIssuesButton.d.ts.map +1 -0
- package/dist/cjs/Buttons/MyIssuesButton.js +76 -0
- package/dist/cjs/Buttons/MyIssuesButton.js.map +1 -0
- package/dist/cjs/Buttons/ReportButton.d.ts +8 -0
- package/dist/cjs/Buttons/ReportButton.d.ts.map +1 -0
- package/dist/cjs/Buttons/ReportButton.js +34 -0
- package/dist/cjs/Buttons/ReportButton.js.map +1 -0
- package/dist/cjs/Buttons/buttonModels.d.ts +10 -0
- package/dist/cjs/Buttons/buttonModels.d.ts.map +1 -0
- package/dist/cjs/Buttons/buttonModels.js +44 -0
- package/dist/cjs/Buttons/buttonModels.js.map +1 -0
- package/dist/cjs/Buttons/index.d.ts +4 -0
- package/dist/cjs/Buttons/index.d.ts.map +1 -0
- package/dist/cjs/Correlation/CorrelationTracker.d.ts +10 -0
- package/dist/cjs/Correlation/CorrelationTracker.d.ts.map +1 -0
- package/dist/cjs/Correlation/CorrelationTracker.js +50 -0
- package/dist/cjs/Correlation/CorrelationTracker.js.map +1 -0
- package/dist/cjs/Correlation/index.d.ts +3 -0
- package/dist/cjs/Correlation/index.d.ts.map +1 -0
- package/dist/cjs/Correlation/withCorrelationIdHeader.d.ts +6 -0
- package/dist/cjs/Correlation/withCorrelationIdHeader.d.ts.map +1 -0
- package/dist/cjs/Correlation/withCorrelationIdHeader.js +39 -0
- package/dist/cjs/Correlation/withCorrelationIdHeader.js.map +1 -0
- package/dist/cjs/Icons.d.ts +4 -0
- package/dist/cjs/Icons.d.ts.map +1 -0
- package/dist/cjs/Icons.js +53 -0
- package/dist/cjs/Icons.js.map +1 -0
- package/dist/cjs/Issues/IssueView/AccessPanel.d.ts +6 -0
- package/dist/cjs/Issues/IssueView/AccessPanel.d.ts.map +1 -0
- package/dist/cjs/Issues/IssueView/AccessPanel.js +124 -0
- package/dist/cjs/Issues/IssueView/AccessPanel.js.map +1 -0
- package/dist/cjs/Issues/IssueView/GrantAccessDialog.d.ts +6 -0
- package/dist/cjs/Issues/IssueView/GrantAccessDialog.d.ts.map +1 -0
- package/dist/cjs/Issues/IssueView/GrantAccessDialog.js +56 -0
- package/dist/cjs/Issues/IssueView/GrantAccessDialog.js.map +1 -0
- package/dist/cjs/Issues/IssueView/IdentityPanel.d.ts +6 -0
- package/dist/cjs/Issues/IssueView/IdentityPanel.d.ts.map +1 -0
- package/dist/cjs/Issues/IssueView/IdentityPanel.js +45 -0
- package/dist/cjs/Issues/IssueView/IdentityPanel.js.map +1 -0
- package/dist/cjs/Issues/IssueView/IssueActions.d.ts +6 -0
- package/dist/cjs/Issues/IssueView/IssueActions.d.ts.map +1 -0
- package/dist/cjs/Issues/IssueView/IssueActions.js +58 -0
- package/dist/cjs/Issues/IssueView/IssueActions.js.map +1 -0
- package/dist/cjs/Issues/IssueView/IssueConversationPanel.d.ts +6 -0
- package/dist/cjs/Issues/IssueView/IssueConversationPanel.d.ts.map +1 -0
- package/dist/cjs/Issues/IssueView/IssueConversationPanel.js +97 -0
- package/dist/cjs/Issues/IssueView/IssueConversationPanel.js.map +1 -0
- package/dist/cjs/Issues/IssueView/IssueHeader.d.ts +7 -0
- package/dist/cjs/Issues/IssueView/IssueHeader.d.ts.map +1 -0
- package/dist/cjs/Issues/IssueView/IssueHeader.js +94 -0
- package/dist/cjs/Issues/IssueView/IssueHeader.js.map +1 -0
- package/dist/cjs/Issues/IssueView/IssueView.d.ts +7 -0
- package/dist/cjs/Issues/IssueView/IssueView.d.ts.map +1 -0
- package/dist/cjs/Issues/IssueView/IssueView.js +85 -0
- package/dist/cjs/Issues/IssueView/IssueView.js.map +1 -0
- package/dist/cjs/Issues/IssueView/QuestionBanner.d.ts +5 -0
- package/dist/cjs/Issues/IssueView/QuestionBanner.d.ts.map +1 -0
- package/dist/cjs/Issues/IssueView/QuestionBanner.js +24 -0
- package/dist/cjs/Issues/IssueView/QuestionBanner.js.map +1 -0
- package/dist/cjs/Issues/IssueView/ReopenIssueDialog.d.ts +6 -0
- package/dist/cjs/Issues/IssueView/ReopenIssueDialog.d.ts.map +1 -0
- package/dist/cjs/Issues/IssueView/ReopenIssueDialog.js +34 -0
- package/dist/cjs/Issues/IssueView/ReopenIssueDialog.js.map +1 -0
- package/dist/cjs/Issues/IssueView/ShareIdentityDialog.d.ts +6 -0
- package/dist/cjs/Issues/IssueView/ShareIdentityDialog.d.ts.map +1 -0
- package/dist/cjs/Issues/IssueView/ShareIdentityDialog.js +32 -0
- package/dist/cjs/Issues/IssueView/ShareIdentityDialog.js.map +1 -0
- package/dist/cjs/Issues/IssueView/StatusStrip.d.ts +6 -0
- package/dist/cjs/Issues/IssueView/StatusStrip.d.ts.map +1 -0
- package/dist/cjs/Issues/IssueView/StatusStrip.js +31 -0
- package/dist/cjs/Issues/IssueView/StatusStrip.js.map +1 -0
- package/dist/cjs/Issues/IssueView/SupportSessions.d.ts +7 -0
- package/dist/cjs/Issues/IssueView/SupportSessions.d.ts.map +1 -0
- package/dist/cjs/Issues/IssueView/SupportSessions.js +62 -0
- package/dist/cjs/Issues/IssueView/SupportSessions.js.map +1 -0
- package/dist/cjs/Issues/IssueView/index.d.ts +13 -0
- package/dist/cjs/Issues/IssueView/index.d.ts.map +1 -0
- package/dist/cjs/Issues/MyIssues/IssueList.d.ts +7 -0
- package/dist/cjs/Issues/MyIssues/IssueList.d.ts.map +1 -0
- package/dist/cjs/Issues/MyIssues/IssueList.js +92 -0
- package/dist/cjs/Issues/MyIssues/IssueList.js.map +1 -0
- package/dist/cjs/Issues/MyIssues/MyIssuesDialog.d.ts +7 -0
- package/dist/cjs/Issues/MyIssues/MyIssuesDialog.d.ts.map +1 -0
- package/dist/cjs/Issues/MyIssues/MyIssuesDialog.js +79 -0
- package/dist/cjs/Issues/MyIssues/MyIssuesDialog.js.map +1 -0
- package/dist/cjs/Issues/MyIssues/MyIssuesNavigation.d.ts +21 -0
- package/dist/cjs/Issues/MyIssues/MyIssuesNavigation.d.ts.map +1 -0
- package/dist/cjs/Issues/MyIssues/MyIssuesNavigation.js +52 -0
- package/dist/cjs/Issues/MyIssues/MyIssuesNavigation.js.map +1 -0
- package/dist/cjs/Issues/MyIssues/index.d.ts +4 -0
- package/dist/cjs/Issues/MyIssues/index.d.ts.map +1 -0
- package/dist/cjs/Issues/MyIssuesList.d.ts +7 -0
- package/dist/cjs/Issues/MyIssuesList.d.ts.map +1 -0
- package/dist/cjs/Issues/MyIssuesList.js +33 -0
- package/dist/cjs/Issues/MyIssuesList.js.map +1 -0
- package/dist/cjs/Issues/accessStatus.d.ts +13 -0
- package/dist/cjs/Issues/accessStatus.d.ts.map +1 -0
- package/dist/cjs/Issues/accessStatus.js +60 -0
- package/dist/cjs/Issues/accessStatus.js.map +1 -0
- package/dist/cjs/Issues/conversationMessages.d.ts +14 -0
- package/dist/cjs/Issues/conversationMessages.d.ts.map +1 -0
- package/dist/cjs/Issues/conversationMessages.js +131 -0
- package/dist/cjs/Issues/conversationMessages.js.map +1 -0
- package/dist/cjs/Issues/index.d.ts +10 -0
- package/dist/cjs/Issues/index.d.ts.map +1 -0
- package/dist/cjs/Issues/issueStates.d.ts +12 -0
- package/dist/cjs/Issues/issueStates.d.ts.map +1 -0
- package/dist/cjs/Issues/issueStates.js +86 -0
- package/dist/cjs/Issues/issueStates.js.map +1 -0
- package/dist/cjs/Issues/sessionActivity.d.ts +8 -0
- package/dist/cjs/Issues/sessionActivity.d.ts.map +1 -0
- package/dist/cjs/Issues/sessionActivity.js +39 -0
- package/dist/cjs/Issues/sessionActivity.js.map +1 -0
- package/dist/cjs/Issues/useAccessStatus.d.ts +4 -0
- package/dist/cjs/Issues/useAccessStatus.d.ts.map +1 -0
- package/dist/cjs/Issues/useAccessStatus.js +30 -0
- package/dist/cjs/Issues/useAccessStatus.js.map +1 -0
- package/dist/cjs/Issues/webAddress.d.ts +2 -0
- package/dist/cjs/Issues/webAddress.d.ts.map +1 -0
- package/dist/cjs/Issues/webAddress.js +24 -0
- package/dist/cjs/Issues/webAddress.js.map +1 -0
- package/dist/cjs/Labels/UsherLabels.d.ts +177 -0
- package/dist/cjs/Labels/UsherLabels.d.ts.map +1 -0
- package/dist/cjs/Labels/defaultUsherLabels.d.ts +3 -0
- package/dist/cjs/Labels/defaultUsherLabels.d.ts.map +1 -0
- package/dist/cjs/Labels/defaultUsherLabels.js +179 -0
- package/dist/cjs/Labels/defaultUsherLabels.js.map +1 -0
- package/dist/cjs/Labels/format.d.ts +2 -0
- package/dist/cjs/Labels/format.d.ts.map +1 -0
- package/dist/cjs/Labels/format.js +15 -0
- package/dist/cjs/Labels/format.js.map +1 -0
- package/dist/cjs/Labels/index.d.ts +5 -0
- package/dist/cjs/Labels/index.d.ts.map +1 -0
- package/dist/cjs/Labels/resolveLabels.d.ts +3 -0
- package/dist/cjs/Labels/resolveLabels.d.ts.map +1 -0
- package/dist/cjs/Labels/resolveLabels.js +35 -0
- package/dist/cjs/Labels/resolveLabels.js.map +1 -0
- package/dist/cjs/Provider/UsherBoundary.d.ts +6 -0
- package/dist/cjs/Provider/UsherBoundary.d.ts.map +1 -0
- package/dist/cjs/Provider/UsherBoundary.js +24 -0
- package/dist/cjs/Provider/UsherBoundary.js.map +1 -0
- package/dist/cjs/Provider/UsherContext.d.ts +24 -0
- package/dist/cjs/Provider/UsherContext.d.ts.map +1 -0
- package/dist/cjs/Provider/UsherContext.js +41 -0
- package/dist/cjs/Provider/UsherContext.js.map +1 -0
- package/dist/cjs/Provider/UsherProvider.d.ts +14 -0
- package/dist/cjs/Provider/UsherProvider.d.ts.map +1 -0
- package/dist/cjs/Provider/UsherProvider.js +122 -0
- package/dist/cjs/Provider/UsherProvider.js.map +1 -0
- package/dist/cjs/Provider/index.d.ts +5 -0
- package/dist/cjs/Provider/index.d.ts.map +1 -0
- package/dist/cjs/Provider/useUsher.d.ts +13 -0
- package/dist/cjs/Provider/useUsher.d.ts.map +1 -0
- package/dist/cjs/Provider/useUsher.js +31 -0
- package/dist/cjs/Provider/useUsher.js.map +1 -0
- package/dist/cjs/Reporting/AccessChoice.d.ts +13 -0
- package/dist/cjs/Reporting/AccessChoice.d.ts.map +1 -0
- package/dist/cjs/Reporting/AccessChoice.js +113 -0
- package/dist/cjs/Reporting/AccessChoice.js.map +1 -0
- package/dist/cjs/Reporting/AccessFields.d.ts +12 -0
- package/dist/cjs/Reporting/AccessFields.d.ts.map +1 -0
- package/dist/cjs/Reporting/AccessFields.js +79 -0
- package/dist/cjs/Reporting/AccessFields.js.map +1 -0
- package/dist/cjs/Reporting/AccessNotice.d.ts +7 -0
- package/dist/cjs/Reporting/AccessNotice.d.ts.map +1 -0
- package/dist/cjs/Reporting/AccessNotice.js +28 -0
- package/dist/cjs/Reporting/AccessNotice.js.map +1 -0
- package/dist/cjs/Reporting/ReportErrorDialog.d.ts +9 -0
- package/dist/cjs/Reporting/ReportErrorDialog.d.ts.map +1 -0
- package/dist/cjs/Reporting/ReportErrorDialog.js +87 -0
- package/dist/cjs/Reporting/ReportErrorDialog.js.map +1 -0
- package/dist/cjs/Reporting/ReportIssueDialog.d.ts +8 -0
- package/dist/cjs/Reporting/ReportIssueDialog.d.ts.map +1 -0
- package/dist/cjs/Reporting/ReportIssueDialog.js +81 -0
- package/dist/cjs/Reporting/ReportIssueDialog.js.map +1 -0
- package/dist/cjs/Reporting/ReportLimits.d.ts +8 -0
- package/dist/cjs/Reporting/ReportLimits.d.ts.map +1 -0
- package/dist/cjs/Reporting/ReportLimits.js +19 -0
- package/dist/cjs/Reporting/ReportLimits.js.map +1 -0
- package/dist/cjs/Reporting/ReportSent.d.ts +5 -0
- package/dist/cjs/Reporting/ReportSent.d.ts.map +1 -0
- package/dist/cjs/Reporting/SentWithReport.d.ts +7 -0
- package/dist/cjs/Reporting/SentWithReport.d.ts.map +1 -0
- package/dist/cjs/Reporting/SentWithReport.js +40 -0
- package/dist/cjs/Reporting/SentWithReport.js.map +1 -0
- package/dist/cjs/Reporting/TechnicalDetails.d.ts +9 -0
- package/dist/cjs/Reporting/TechnicalDetails.d.ts.map +1 -0
- package/dist/cjs/Reporting/TechnicalDetails.js +75 -0
- package/dist/cjs/Reporting/TechnicalDetails.js.map +1 -0
- package/dist/cjs/Reporting/durationOptions.d.ts +9 -0
- package/dist/cjs/Reporting/durationOptions.d.ts.map +1 -0
- package/dist/cjs/Reporting/durationOptions.js +29 -0
- package/dist/cjs/Reporting/durationOptions.js.map +1 -0
- package/dist/cjs/Reporting/formatLocation.d.ts +7 -0
- package/dist/cjs/Reporting/formatLocation.d.ts.map +1 -0
- package/dist/cjs/Reporting/formatLocation.js +23 -0
- package/dist/cjs/Reporting/formatLocation.js.map +1 -0
- package/dist/cjs/Reporting/index.d.ts +14 -0
- package/dist/cjs/Reporting/index.d.ts.map +1 -0
- package/dist/cjs/Reporting/reportValues.d.ts +22 -0
- package/dist/cjs/Reporting/reportValues.d.ts.map +1 -0
- package/dist/cjs/Reporting/reportValues.js +124 -0
- package/dist/cjs/Reporting/reportValues.js.map +1 -0
- package/dist/cjs/Reporting/useAccessChoice.d.ts +13 -0
- package/dist/cjs/Reporting/useAccessChoice.d.ts.map +1 -0
- package/dist/cjs/Reporting/useAccessChoice.js +41 -0
- package/dist/cjs/Reporting/useAccessChoice.js.map +1 -0
- package/dist/cjs/index.d.ts +8 -0
- package/dist/cjs/index.d.ts.map +1 -0
- package/dist/cjs/index.js +133 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/package.json +3 -0
- package/dist/esm/Buttons/MyIssuesButton.d.ts +14 -0
- package/dist/esm/Buttons/MyIssuesButton.d.ts.map +1 -0
- package/dist/esm/Buttons/MyIssuesButton.js +73 -0
- package/dist/esm/Buttons/MyIssuesButton.js.map +1 -0
- package/dist/esm/Buttons/ReportButton.d.ts +8 -0
- package/dist/esm/Buttons/ReportButton.d.ts.map +1 -0
- package/dist/esm/Buttons/ReportButton.js +32 -0
- package/dist/esm/Buttons/ReportButton.js.map +1 -0
- package/dist/esm/Buttons/buttonModels.d.ts +10 -0
- package/dist/esm/Buttons/buttonModels.d.ts.map +1 -0
- package/dist/esm/Buttons/buttonModels.js +41 -0
- package/dist/esm/Buttons/buttonModels.js.map +1 -0
- package/dist/esm/Buttons/index.d.ts +4 -0
- package/dist/esm/Buttons/index.d.ts.map +1 -0
- package/dist/esm/Buttons/index.js +4 -0
- package/dist/esm/Buttons/index.js.map +1 -0
- package/dist/esm/Correlation/CorrelationTracker.d.ts +10 -0
- package/dist/esm/Correlation/CorrelationTracker.d.ts.map +1 -0
- package/dist/esm/Correlation/CorrelationTracker.js +48 -0
- package/dist/esm/Correlation/CorrelationTracker.js.map +1 -0
- package/dist/esm/Correlation/index.d.ts +3 -0
- package/dist/esm/Correlation/index.d.ts.map +1 -0
- package/dist/esm/Correlation/index.js +3 -0
- package/dist/esm/Correlation/index.js.map +1 -0
- package/dist/esm/Correlation/withCorrelationIdHeader.d.ts +6 -0
- package/dist/esm/Correlation/withCorrelationIdHeader.d.ts.map +1 -0
- package/dist/esm/Correlation/withCorrelationIdHeader.js +36 -0
- package/dist/esm/Correlation/withCorrelationIdHeader.js.map +1 -0
- package/dist/esm/Icons.d.ts +4 -0
- package/dist/esm/Icons.d.ts.map +1 -0
- package/dist/esm/Icons.js +49 -0
- package/dist/esm/Icons.js.map +1 -0
- package/dist/esm/Issues/IssueView/AccessPanel.d.ts +6 -0
- package/dist/esm/Issues/IssueView/AccessPanel.d.ts.map +1 -0
- package/dist/esm/Issues/IssueView/AccessPanel.js +122 -0
- package/dist/esm/Issues/IssueView/AccessPanel.js.map +1 -0
- package/dist/esm/Issues/IssueView/GrantAccessDialog.d.ts +6 -0
- package/dist/esm/Issues/IssueView/GrantAccessDialog.d.ts.map +1 -0
- package/dist/esm/Issues/IssueView/GrantAccessDialog.js +54 -0
- package/dist/esm/Issues/IssueView/GrantAccessDialog.js.map +1 -0
- package/dist/esm/Issues/IssueView/IdentityPanel.d.ts +6 -0
- package/dist/esm/Issues/IssueView/IdentityPanel.d.ts.map +1 -0
- package/dist/esm/Issues/IssueView/IdentityPanel.js +43 -0
- package/dist/esm/Issues/IssueView/IdentityPanel.js.map +1 -0
- package/dist/esm/Issues/IssueView/IssueActions.d.ts +6 -0
- package/dist/esm/Issues/IssueView/IssueActions.d.ts.map +1 -0
- package/dist/esm/Issues/IssueView/IssueActions.js +56 -0
- package/dist/esm/Issues/IssueView/IssueActions.js.map +1 -0
- package/dist/esm/Issues/IssueView/IssueConversationPanel.d.ts +6 -0
- package/dist/esm/Issues/IssueView/IssueConversationPanel.d.ts.map +1 -0
- package/dist/esm/Issues/IssueView/IssueConversationPanel.js +95 -0
- package/dist/esm/Issues/IssueView/IssueConversationPanel.js.map +1 -0
- package/dist/esm/Issues/IssueView/IssueHeader.d.ts +7 -0
- package/dist/esm/Issues/IssueView/IssueHeader.d.ts.map +1 -0
- package/dist/esm/Issues/IssueView/IssueHeader.js +92 -0
- package/dist/esm/Issues/IssueView/IssueHeader.js.map +1 -0
- package/dist/esm/Issues/IssueView/IssueView.d.ts +7 -0
- package/dist/esm/Issues/IssueView/IssueView.d.ts.map +1 -0
- package/dist/esm/Issues/IssueView/IssueView.js +83 -0
- package/dist/esm/Issues/IssueView/IssueView.js.map +1 -0
- package/dist/esm/Issues/IssueView/QuestionBanner.d.ts +5 -0
- package/dist/esm/Issues/IssueView/QuestionBanner.d.ts.map +1 -0
- package/dist/esm/Issues/IssueView/QuestionBanner.js +22 -0
- package/dist/esm/Issues/IssueView/QuestionBanner.js.map +1 -0
- package/dist/esm/Issues/IssueView/ReopenIssueDialog.d.ts +6 -0
- package/dist/esm/Issues/IssueView/ReopenIssueDialog.d.ts.map +1 -0
- package/dist/esm/Issues/IssueView/ReopenIssueDialog.js +32 -0
- package/dist/esm/Issues/IssueView/ReopenIssueDialog.js.map +1 -0
- package/dist/esm/Issues/IssueView/ShareIdentityDialog.d.ts +6 -0
- package/dist/esm/Issues/IssueView/ShareIdentityDialog.d.ts.map +1 -0
- package/dist/esm/Issues/IssueView/ShareIdentityDialog.js +30 -0
- package/dist/esm/Issues/IssueView/ShareIdentityDialog.js.map +1 -0
- package/dist/esm/Issues/IssueView/StatusStrip.d.ts +6 -0
- package/dist/esm/Issues/IssueView/StatusStrip.d.ts.map +1 -0
- package/dist/esm/Issues/IssueView/StatusStrip.js +29 -0
- package/dist/esm/Issues/IssueView/StatusStrip.js.map +1 -0
- package/dist/esm/Issues/IssueView/SupportSessions.d.ts +7 -0
- package/dist/esm/Issues/IssueView/SupportSessions.d.ts.map +1 -0
- package/dist/esm/Issues/IssueView/SupportSessions.js +60 -0
- package/dist/esm/Issues/IssueView/SupportSessions.js.map +1 -0
- package/dist/esm/Issues/IssueView/index.d.ts +13 -0
- package/dist/esm/Issues/IssueView/index.d.ts.map +1 -0
- package/dist/esm/Issues/IssueView/index.js +13 -0
- package/dist/esm/Issues/IssueView/index.js.map +1 -0
- package/dist/esm/Issues/MyIssues/IssueList.d.ts +7 -0
- package/dist/esm/Issues/MyIssues/IssueList.d.ts.map +1 -0
- package/dist/esm/Issues/MyIssues/IssueList.js +90 -0
- package/dist/esm/Issues/MyIssues/IssueList.js.map +1 -0
- package/dist/esm/Issues/MyIssues/MyIssuesDialog.d.ts +7 -0
- package/dist/esm/Issues/MyIssues/MyIssuesDialog.d.ts.map +1 -0
- package/dist/esm/Issues/MyIssues/MyIssuesDialog.js +77 -0
- package/dist/esm/Issues/MyIssues/MyIssuesDialog.js.map +1 -0
- package/dist/esm/Issues/MyIssues/MyIssuesNavigation.d.ts +21 -0
- package/dist/esm/Issues/MyIssues/MyIssuesNavigation.d.ts.map +1 -0
- package/dist/esm/Issues/MyIssues/MyIssuesNavigation.js +49 -0
- package/dist/esm/Issues/MyIssues/MyIssuesNavigation.js.map +1 -0
- package/dist/esm/Issues/MyIssues/index.d.ts +4 -0
- package/dist/esm/Issues/MyIssues/index.d.ts.map +1 -0
- package/dist/esm/Issues/MyIssues/index.js +4 -0
- package/dist/esm/Issues/MyIssues/index.js.map +1 -0
- package/dist/esm/Issues/MyIssuesList.d.ts +7 -0
- package/dist/esm/Issues/MyIssuesList.d.ts.map +1 -0
- package/dist/esm/Issues/MyIssuesList.js +29 -0
- package/dist/esm/Issues/MyIssuesList.js.map +1 -0
- package/dist/esm/Issues/accessStatus.d.ts +13 -0
- package/dist/esm/Issues/accessStatus.d.ts.map +1 -0
- package/dist/esm/Issues/accessStatus.js +54 -0
- package/dist/esm/Issues/accessStatus.js.map +1 -0
- package/dist/esm/Issues/conversationMessages.d.ts +14 -0
- package/dist/esm/Issues/conversationMessages.d.ts.map +1 -0
- package/dist/esm/Issues/conversationMessages.js +125 -0
- package/dist/esm/Issues/conversationMessages.js.map +1 -0
- package/dist/esm/Issues/index.d.ts +10 -0
- package/dist/esm/Issues/index.d.ts.map +1 -0
- package/dist/esm/Issues/index.js +10 -0
- package/dist/esm/Issues/index.js.map +1 -0
- package/dist/esm/Issues/issueStates.d.ts +12 -0
- package/dist/esm/Issues/issueStates.d.ts.map +1 -0
- package/dist/esm/Issues/issueStates.js +81 -0
- package/dist/esm/Issues/issueStates.js.map +1 -0
- package/dist/esm/Issues/sessionActivity.d.ts +8 -0
- package/dist/esm/Issues/sessionActivity.d.ts.map +1 -0
- package/dist/esm/Issues/sessionActivity.js +37 -0
- package/dist/esm/Issues/sessionActivity.js.map +1 -0
- package/dist/esm/Issues/useAccessStatus.d.ts +4 -0
- package/dist/esm/Issues/useAccessStatus.d.ts.map +1 -0
- package/dist/esm/Issues/useAccessStatus.js +28 -0
- package/dist/esm/Issues/useAccessStatus.js.map +1 -0
- package/dist/esm/Issues/webAddress.d.ts +2 -0
- package/dist/esm/Issues/webAddress.d.ts.map +1 -0
- package/dist/esm/Issues/webAddress.js +22 -0
- package/dist/esm/Issues/webAddress.js.map +1 -0
- package/dist/esm/Labels/UsherLabels.d.ts +177 -0
- package/dist/esm/Labels/UsherLabels.d.ts.map +1 -0
- package/dist/esm/Labels/UsherLabels.js +2 -0
- package/dist/esm/Labels/UsherLabels.js.map +1 -0
- package/dist/esm/Labels/defaultUsherLabels.d.ts +3 -0
- package/dist/esm/Labels/defaultUsherLabels.d.ts.map +1 -0
- package/dist/esm/Labels/defaultUsherLabels.js +177 -0
- package/dist/esm/Labels/defaultUsherLabels.js.map +1 -0
- package/dist/esm/Labels/format.d.ts +2 -0
- package/dist/esm/Labels/format.d.ts.map +1 -0
- package/dist/esm/Labels/format.js +13 -0
- package/dist/esm/Labels/format.js.map +1 -0
- package/dist/esm/Labels/index.d.ts +5 -0
- package/dist/esm/Labels/index.d.ts.map +1 -0
- package/dist/esm/Labels/index.js +5 -0
- package/dist/esm/Labels/index.js.map +1 -0
- package/dist/esm/Labels/resolveLabels.d.ts +3 -0
- package/dist/esm/Labels/resolveLabels.d.ts.map +1 -0
- package/dist/esm/Labels/resolveLabels.js +33 -0
- package/dist/esm/Labels/resolveLabels.js.map +1 -0
- package/dist/esm/Provider/UsherBoundary.d.ts +6 -0
- package/dist/esm/Provider/UsherBoundary.d.ts.map +1 -0
- package/dist/esm/Provider/UsherBoundary.js +22 -0
- package/dist/esm/Provider/UsherBoundary.js.map +1 -0
- package/dist/esm/Provider/UsherContext.d.ts +24 -0
- package/dist/esm/Provider/UsherContext.d.ts.map +1 -0
- package/dist/esm/Provider/UsherContext.js +36 -0
- package/dist/esm/Provider/UsherContext.js.map +1 -0
- package/dist/esm/Provider/UsherProvider.d.ts +14 -0
- package/dist/esm/Provider/UsherProvider.d.ts.map +1 -0
- package/dist/esm/Provider/UsherProvider.js +120 -0
- package/dist/esm/Provider/UsherProvider.js.map +1 -0
- package/dist/esm/Provider/index.d.ts +5 -0
- package/dist/esm/Provider/index.d.ts.map +1 -0
- package/dist/esm/Provider/index.js +5 -0
- package/dist/esm/Provider/index.js.map +1 -0
- package/dist/esm/Provider/useUsher.d.ts +13 -0
- package/dist/esm/Provider/useUsher.d.ts.map +1 -0
- package/dist/esm/Provider/useUsher.js +29 -0
- package/dist/esm/Provider/useUsher.js.map +1 -0
- package/dist/esm/Reporting/AccessChoice.d.ts +13 -0
- package/dist/esm/Reporting/AccessChoice.d.ts.map +1 -0
- package/dist/esm/Reporting/AccessChoice.js +106 -0
- package/dist/esm/Reporting/AccessChoice.js.map +1 -0
- package/dist/esm/Reporting/AccessFields.d.ts +12 -0
- package/dist/esm/Reporting/AccessFields.d.ts.map +1 -0
- package/dist/esm/Reporting/AccessFields.js +77 -0
- package/dist/esm/Reporting/AccessFields.js.map +1 -0
- package/dist/esm/Reporting/AccessNotice.d.ts +7 -0
- package/dist/esm/Reporting/AccessNotice.d.ts.map +1 -0
- package/dist/esm/Reporting/AccessNotice.js +26 -0
- package/dist/esm/Reporting/AccessNotice.js.map +1 -0
- package/dist/esm/Reporting/ReportErrorDialog.d.ts +9 -0
- package/dist/esm/Reporting/ReportErrorDialog.d.ts.map +1 -0
- package/dist/esm/Reporting/ReportErrorDialog.js +85 -0
- package/dist/esm/Reporting/ReportErrorDialog.js.map +1 -0
- package/dist/esm/Reporting/ReportIssueDialog.d.ts +8 -0
- package/dist/esm/Reporting/ReportIssueDialog.d.ts.map +1 -0
- package/dist/esm/Reporting/ReportIssueDialog.js +79 -0
- package/dist/esm/Reporting/ReportIssueDialog.js.map +1 -0
- package/dist/esm/Reporting/ReportLimits.d.ts +8 -0
- package/dist/esm/Reporting/ReportLimits.d.ts.map +1 -0
- package/dist/esm/Reporting/ReportLimits.js +17 -0
- package/dist/esm/Reporting/ReportLimits.js.map +1 -0
- package/dist/esm/Reporting/ReportSent.d.ts +5 -0
- package/dist/esm/Reporting/ReportSent.d.ts.map +1 -0
- package/dist/esm/Reporting/ReportSent.js +2 -0
- package/dist/esm/Reporting/ReportSent.js.map +1 -0
- package/dist/esm/Reporting/SentWithReport.d.ts +7 -0
- package/dist/esm/Reporting/SentWithReport.d.ts.map +1 -0
- package/dist/esm/Reporting/SentWithReport.js +38 -0
- package/dist/esm/Reporting/SentWithReport.js.map +1 -0
- package/dist/esm/Reporting/TechnicalDetails.d.ts +9 -0
- package/dist/esm/Reporting/TechnicalDetails.d.ts.map +1 -0
- package/dist/esm/Reporting/TechnicalDetails.js +73 -0
- package/dist/esm/Reporting/TechnicalDetails.js.map +1 -0
- package/dist/esm/Reporting/durationOptions.d.ts +9 -0
- package/dist/esm/Reporting/durationOptions.d.ts.map +1 -0
- package/dist/esm/Reporting/durationOptions.js +27 -0
- package/dist/esm/Reporting/durationOptions.js.map +1 -0
- package/dist/esm/Reporting/formatLocation.d.ts +7 -0
- package/dist/esm/Reporting/formatLocation.d.ts.map +1 -0
- package/dist/esm/Reporting/formatLocation.js +21 -0
- package/dist/esm/Reporting/formatLocation.js.map +1 -0
- package/dist/esm/Reporting/index.d.ts +14 -0
- package/dist/esm/Reporting/index.d.ts.map +1 -0
- package/dist/esm/Reporting/index.js +14 -0
- package/dist/esm/Reporting/index.js.map +1 -0
- package/dist/esm/Reporting/reportValues.d.ts +22 -0
- package/dist/esm/Reporting/reportValues.d.ts.map +1 -0
- package/dist/esm/Reporting/reportValues.js +116 -0
- package/dist/esm/Reporting/reportValues.js.map +1 -0
- package/dist/esm/Reporting/useAccessChoice.d.ts +13 -0
- package/dist/esm/Reporting/useAccessChoice.d.ts.map +1 -0
- package/dist/esm/Reporting/useAccessChoice.js +39 -0
- package/dist/esm/Reporting/useAccessChoice.js.map +1 -0
- package/dist/esm/index.d.ts +8 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +48 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/index.ts +10 -0
- package/package.json +85 -0
- package/styles.css +320 -0
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
+
var dialogs = require('@cratis/arc.react/dialogs');
|
|
5
|
+
var slices = require('@cratis/arc.react/slices');
|
|
6
|
+
var CommandDialog = require('@cratis/components/CommandDialog');
|
|
7
|
+
var CommandForm = require('@cratis/components/CommandForm');
|
|
8
|
+
var Dialogs = require('@cratis/components/Dialogs');
|
|
9
|
+
var fundamentals = require('@cratis/fundamentals');
|
|
10
|
+
var showrunner_usher = require('@cratis/showrunner.usher');
|
|
11
|
+
var react = require('react');
|
|
12
|
+
var UsherBoundary = require('../Provider/UsherBoundary.js');
|
|
13
|
+
var UsherContext = require('../Provider/UsherContext.js');
|
|
14
|
+
var AccessFields = require('./AccessFields.js');
|
|
15
|
+
var reportValues = require('./reportValues.js');
|
|
16
|
+
var SentWithReport = require('./SentWithReport.js');
|
|
17
|
+
var TechnicalDetails = require('./TechnicalDetails.js');
|
|
18
|
+
var useAccessChoice = require('./useAccessChoice.js');
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* The report this error dialog: the error is captured already, and the reporter may say what they were doing and
|
|
22
|
+
* choose whether support may know who they are and sign in as them. The technical details are collapsed. Open it
|
|
23
|
+
* with `useDialog`; it closes with {@link ReportSent} once the report is sent.
|
|
24
|
+
*/ const ReportErrorDialog = ({ error, location, correlationIds })=>{
|
|
25
|
+
const usher = UsherContext.useUsherContext();
|
|
26
|
+
const sliceLocation = slices.useSliceContext();
|
|
27
|
+
const [values] = react.useState(()=>reportValues.reportErrorValues(reportValues.toErrorDetails(error, location ?? sliceLocation), {
|
|
28
|
+
issueId: fundamentals.Guid.create(),
|
|
29
|
+
location: location ?? sliceLocation,
|
|
30
|
+
correlationIds: correlationIds ?? usher.recentCorrelationIds(),
|
|
31
|
+
applicationVersion: usher.applicationVersion,
|
|
32
|
+
shareIdentity: usher.shareIdentityByDefault
|
|
33
|
+
}));
|
|
34
|
+
return /*#__PURE__*/ jsxRuntime.jsx(UsherBoundary.UsherBoundary, {
|
|
35
|
+
children: /*#__PURE__*/ jsxRuntime.jsx(ReportErrorForm, {
|
|
36
|
+
values: values
|
|
37
|
+
})
|
|
38
|
+
});
|
|
39
|
+
};
|
|
40
|
+
const ReportErrorForm = ({ values })=>{
|
|
41
|
+
const { labels, shareIdentityByDefault } = UsherContext.useUsherContext();
|
|
42
|
+
const { closeDialog } = dialogs.useDialogContext();
|
|
43
|
+
const access = useAccessChoice.useAccessChoice(shareIdentityByDefault);
|
|
44
|
+
return /*#__PURE__*/ jsxRuntime.jsx(CommandDialog.CommandDialog, {
|
|
45
|
+
command: showrunner_usher.ReportError,
|
|
46
|
+
title: labels.reportError.title,
|
|
47
|
+
subtitle: values.errorMessage,
|
|
48
|
+
okLabel: labels.reportError.send,
|
|
49
|
+
cancelLabel: labels.common.cancel,
|
|
50
|
+
closeAriaLabel: labels.common.close,
|
|
51
|
+
width: "560px",
|
|
52
|
+
initialFocus: Dialogs.DialogInitialFocus.Content,
|
|
53
|
+
initialValues: access.initialValues(values),
|
|
54
|
+
currentValues: access.currentValues,
|
|
55
|
+
onFieldChange: access.onFieldChange,
|
|
56
|
+
onSuccess: ()=>closeDialog(dialogs.DialogResult.Ok, {
|
|
57
|
+
issueId: values.issueId
|
|
58
|
+
}),
|
|
59
|
+
children: /*#__PURE__*/ jsxRuntime.jsxs("div", {
|
|
60
|
+
className: "usher-report-form",
|
|
61
|
+
children: [
|
|
62
|
+
/*#__PURE__*/ jsxRuntime.jsx(SentWithReport.SentWithReport, {
|
|
63
|
+
location: values.location,
|
|
64
|
+
correlationIdCount: values.correlationIds.length
|
|
65
|
+
}),
|
|
66
|
+
/*#__PURE__*/ jsxRuntime.jsx(TechnicalDetails.TechnicalDetails, {
|
|
67
|
+
errorType: values.errorType,
|
|
68
|
+
correlationIds: values.correlationIds,
|
|
69
|
+
stackFrames: values.stackFrames
|
|
70
|
+
}),
|
|
71
|
+
/*#__PURE__*/ jsxRuntime.jsx(CommandForm.TextAreaField, {
|
|
72
|
+
value: (command)=>command.details,
|
|
73
|
+
title: labels.reportError.details,
|
|
74
|
+
placeholder: labels.reportError.detailsPlaceholder,
|
|
75
|
+
required: false,
|
|
76
|
+
rows: 3
|
|
77
|
+
}),
|
|
78
|
+
/*#__PURE__*/ jsxRuntime.jsx(AccessFields.AccessFields, {
|
|
79
|
+
choice: access.choice
|
|
80
|
+
})
|
|
81
|
+
]
|
|
82
|
+
})
|
|
83
|
+
});
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
exports.ReportErrorDialog = ReportErrorDialog;
|
|
87
|
+
//# sourceMappingURL=ReportErrorDialog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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,4BAAAA,EAAAA;AACd,IAAA,MAAMC,aAAAA,GAAgBC,sBAAAA,EAAAA;IACtB,MAAM,CAACC,OAAO,GAAGC,cAAAA,CAAS,IAAMC,8BAAAA,CAAkBC,2BAAAA,CAAeV,KAAAA,EAAOC,QAAAA,IAAYI,aAAAA,CAAAA,EAAgB;AAChGM,YAAAA,OAAAA,EAASC,kBAAKC,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,cAAA,CAACC,2BAAAA,EAAAA;AACG,QAAA,QAAA,gBAAAD,cAAA,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,4BAAAA,EAAAA;IAC3C,MAAM,EAAEkB,WAAW,EAAE,GAAGC,wBAAAA,EAAAA;AACxB,IAAA,MAAMC,SAASC,+BAAAA,CAAgBR,sBAAAA,CAAAA;AAE/B,IAAA,qBACIC,cAAA,CAACQ,2BAAAA,EAAAA;QACGC,OAAAA,EAASC,4BAAAA;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,2BAAmBC,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,oBAAAA,CAAaC,EAAE,EAAE;AAAEtC,gBAAAA,OAAAA,EAASJ,OAAOI;AAAS,aAAA,CAAA;AACzE,QAAA,QAAA,gBAAAuC,eAAA,CAACC,KAAAA,EAAAA;YAAIC,SAAAA,EAAU,mBAAA;;8BACXlC,cAAA,CAACmC,6BAAAA,EAAAA;AAAepD,oBAAAA,QAAAA,EAAUM,OAAON,QAAQ;oBAAGqD,kBAAAA,EAAoB/C,MAAAA,CAAOL,cAAc,CAAEqD;;8BACvFrC,cAAA,CAACsC,iCAAAA,EAAAA;AACGC,oBAAAA,SAAAA,EAAWlD,OAAOkD,SAAS;AAC3BvD,oBAAAA,cAAAA,EAAgBK,OAAOL,cAAc;AACrCwD,oBAAAA,WAAAA,EAAanD,OAAOmD;;8BACxBxC,cAAA,CAACyC,yBAAAA,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,cAAA,CAACgD,yBAAAA,EAAAA;AAA0BC,oBAAAA,MAAAA,EAAQ3C,OAAO2C;;;;;AAI1D,CAAA;;"}
|
|
@@ -0,0 +1,8 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
+
var dialogs = require('@cratis/arc.react/dialogs');
|
|
5
|
+
var slices = require('@cratis/arc.react/slices');
|
|
6
|
+
var CommandDialog = require('@cratis/components/CommandDialog');
|
|
7
|
+
var CommandForm = require('@cratis/components/CommandForm');
|
|
8
|
+
var Dialogs = require('@cratis/components/Dialogs');
|
|
9
|
+
var fundamentals = require('@cratis/fundamentals');
|
|
10
|
+
var showrunner_usher = require('@cratis/showrunner.usher');
|
|
11
|
+
var react = require('react');
|
|
12
|
+
var UsherBoundary = require('../Provider/UsherBoundary.js');
|
|
13
|
+
var UsherContext = require('../Provider/UsherContext.js');
|
|
14
|
+
var AccessFields = require('./AccessFields.js');
|
|
15
|
+
var reportValues = require('./reportValues.js');
|
|
16
|
+
var SentWithReport = require('./SentWithReport.js');
|
|
17
|
+
var useAccessChoice = require('./useAccessChoice.js');
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* The report a problem dialog: the reporter describes a problem by hand, and chooses whether support may know who
|
|
21
|
+
* they are and sign in as them. Open it with `useDialog`; it closes with {@link ReportSent} once the report is sent.
|
|
22
|
+
*/ const ReportIssueDialog = ({ location, correlationIds })=>{
|
|
23
|
+
const usher = UsherContext.useUsherContext();
|
|
24
|
+
const sliceLocation = slices.useSliceContext();
|
|
25
|
+
const [values] = react.useState(()=>reportValues.reportIssueValues({
|
|
26
|
+
issueId: fundamentals.Guid.create(),
|
|
27
|
+
location: location ?? sliceLocation,
|
|
28
|
+
correlationIds: correlationIds ?? usher.recentCorrelationIds(),
|
|
29
|
+
applicationVersion: usher.applicationVersion,
|
|
30
|
+
shareIdentity: usher.shareIdentityByDefault
|
|
31
|
+
}));
|
|
32
|
+
return /*#__PURE__*/ jsxRuntime.jsx(UsherBoundary.UsherBoundary, {
|
|
33
|
+
children: /*#__PURE__*/ jsxRuntime.jsx(ReportIssueForm, {
|
|
34
|
+
values: values
|
|
35
|
+
})
|
|
36
|
+
});
|
|
37
|
+
};
|
|
38
|
+
const ReportIssueForm = ({ values })=>{
|
|
39
|
+
const { labels, shareIdentityByDefault } = UsherContext.useUsherContext();
|
|
40
|
+
const { closeDialog } = dialogs.useDialogContext();
|
|
41
|
+
const access = useAccessChoice.useAccessChoice(shareIdentityByDefault);
|
|
42
|
+
return /*#__PURE__*/ jsxRuntime.jsx(CommandDialog.CommandDialog, {
|
|
43
|
+
command: showrunner_usher.ReportIssue,
|
|
44
|
+
title: labels.reportIssue.title,
|
|
45
|
+
okLabel: labels.reportIssue.send,
|
|
46
|
+
cancelLabel: labels.common.cancel,
|
|
47
|
+
closeAriaLabel: labels.common.close,
|
|
48
|
+
width: "560px",
|
|
49
|
+
initialFocus: Dialogs.DialogInitialFocus.Content,
|
|
50
|
+
initialValues: access.initialValues(values),
|
|
51
|
+
currentValues: access.currentValues,
|
|
52
|
+
onFieldChange: access.onFieldChange,
|
|
53
|
+
onSuccess: ()=>closeDialog(dialogs.DialogResult.Ok, {
|
|
54
|
+
issueId: values.issueId
|
|
55
|
+
}),
|
|
56
|
+
children: /*#__PURE__*/ jsxRuntime.jsxs("div", {
|
|
57
|
+
className: "usher-report-form",
|
|
58
|
+
children: [
|
|
59
|
+
/*#__PURE__*/ jsxRuntime.jsx(SentWithReport.SentWithReport, {
|
|
60
|
+
location: values.location,
|
|
61
|
+
correlationIdCount: values.correlationIds.length
|
|
62
|
+
}),
|
|
63
|
+
/*#__PURE__*/ jsxRuntime.jsx(CommandForm.InputTextField, {
|
|
64
|
+
value: (command)=>command.summary,
|
|
65
|
+
title: labels.reportIssue.summary
|
|
66
|
+
}),
|
|
67
|
+
/*#__PURE__*/ jsxRuntime.jsx(CommandForm.TextAreaField, {
|
|
68
|
+
value: (command)=>command.description,
|
|
69
|
+
title: labels.reportIssue.description,
|
|
70
|
+
rows: 5
|
|
71
|
+
}),
|
|
72
|
+
/*#__PURE__*/ jsxRuntime.jsx(AccessFields.AccessFields, {
|
|
73
|
+
choice: access.choice
|
|
74
|
+
})
|
|
75
|
+
]
|
|
76
|
+
})
|
|
77
|
+
});
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
exports.ReportIssueDialog = ReportIssueDialog;
|
|
81
|
+
//# sourceMappingURL=ReportIssueDialog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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,4BAAAA,EAAAA;AACd,IAAA,MAAMC,aAAAA,GAAgBC,sBAAAA,EAAAA;AACtB,IAAA,MAAM,CAACC,MAAAA,CAAO,GAAGC,cAAAA,CAAS,IAAMC,8BAAAA,CAAkB;AAC9CC,YAAAA,OAAAA,EAASC,kBAAKC,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,cAAA,CAACC,2BAAAA,EAAAA;AACG,QAAA,QAAA,gBAAAD,cAAA,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,4BAAAA,EAAAA;IAC3C,MAAM,EAAEiB,WAAW,EAAE,GAAGC,wBAAAA,EAAAA;AACxB,IAAA,MAAMC,SAASC,+BAAAA,CAAgBR,sBAAAA,CAAAA;AAE/B,IAAA,qBACIC,cAAA,CAACQ,2BAAAA,EAAAA;QACGC,OAAAA,EAASC,4BAAAA;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,2BAAmBC,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,oBAAAA,CAAaC,EAAE,EAAE;AAAEpC,gBAAAA,OAAAA,EAASH,OAAOG;AAAS,aAAA,CAAA;AACzE,QAAA,QAAA,gBAAAqC,eAAA,CAACC,KAAAA,EAAAA;YAAIC,SAAAA,EAAU,mBAAA;;8BACXhC,cAAA,CAACiC,6BAAAA,EAAAA;AAAejD,oBAAAA,QAAAA,EAAUM,OAAON,QAAQ;oBAAGkD,kBAAAA,EAAoB5C,MAAAA,CAAOL,cAAc,CAAEkD;;8BACvFnC,cAAA,CAACoC,0BAAAA,EAAAA;oBAA4BC,KAAAA,EAAO5B,CAAAA,OAAAA,GAAWA,OAAAA,CAAQ6B,OAAO;oBAAE3B,KAAAA,EAAOR,MAAAA,CAAOS,WAAW,CAAC0B;;8BAC1FtC,cAAA,CAACuC,yBAAAA,EAAAA;oBAA2BF,KAAAA,EAAO5B,CAAAA,OAAAA,GAAWA,OAAAA,CAAQ+B,WAAW;oBAAE7B,KAAAA,EAAOR,MAAAA,CAAOS,WAAW,CAAC4B,WAAW;oBAAEC,IAAAA,EAAM;;8BAChHzC,cAAA,CAAC0C,yBAAAA,EAAAA;AAA0BC,oBAAAA,MAAAA,EAAQrC,OAAOqC;;;;;AAI1D,CAAA;;"}
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
4
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
5
|
+
/**
|
|
6
|
+
* The most the backend accepts in one report, as `ReportLimits` in the Usher backend states it. What the application
|
|
7
|
+
* itself gathers - stack frames, correlation ids and the error's own texts - is cut to these before a report is sent,
|
|
8
|
+
* so a long stack trace never makes a report fail; what the reporter writes is checked by the generated validators.
|
|
9
|
+
*/ var ReportLimits = /*#__PURE__*/ function(ReportLimits) {
|
|
10
|
+
/** The longest error message a report carries. */ ReportLimits[ReportLimits["errorMessageLength"] = 2000] = "errorMessageLength";
|
|
11
|
+
/** The longest error type a report carries. */ ReportLimits[ReportLimits["errorTypeLength"] = 500] = "errorTypeLength";
|
|
12
|
+
/** The most stack frames a report carries. */ ReportLimits[ReportLimits["stackFrames"] = 50] = "stackFrames";
|
|
13
|
+
/** The longest method or file of a stack frame. */ ReportLimits[ReportLimits["stackFrameTextLength"] = 1000] = "stackFrameTextLength";
|
|
14
|
+
/** The most correlation ids a report carries. */ ReportLimits[ReportLimits["correlationIds"] = 20] = "correlationIds";
|
|
15
|
+
return ReportLimits;
|
|
16
|
+
}({});
|
|
17
|
+
|
|
18
|
+
exports.ReportLimits = ReportLimits;
|
|
19
|
+
//# sourceMappingURL=ReportLimits.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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;;"}
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,7 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
+
var format = require('../Labels/format.js');
|
|
5
|
+
var UsherContext = require('../Provider/UsherContext.js');
|
|
6
|
+
var formatLocation = require('./formatLocation.js');
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Shows the reporter what is sent along with their report: where they were, the application version and how many
|
|
10
|
+
* recent requests.
|
|
11
|
+
*/ const SentWithReport = ({ location, correlationIdCount })=>{
|
|
12
|
+
const { labels, applicationName, applicationVersion } = UsherContext.useUsherContext();
|
|
13
|
+
const parts = [
|
|
14
|
+
formatLocation.formatLocation(location, labels.common.locationSeparator, labels.common.unknownLocation),
|
|
15
|
+
[
|
|
16
|
+
applicationName,
|
|
17
|
+
applicationVersion
|
|
18
|
+
].filter((part)=>part.length > 0).join(' '),
|
|
19
|
+
correlationIdCount === 1 ? labels.common.oneRecentRequest : format.format(labels.common.recentRequests, {
|
|
20
|
+
count: correlationIdCount
|
|
21
|
+
})
|
|
22
|
+
].filter((part)=>part.length > 0);
|
|
23
|
+
return /*#__PURE__*/ jsxRuntime.jsxs("section", {
|
|
24
|
+
className: "usher-sent-with-report",
|
|
25
|
+
"aria-label": labels.common.sentWithYourReport,
|
|
26
|
+
children: [
|
|
27
|
+
/*#__PURE__*/ jsxRuntime.jsx("span", {
|
|
28
|
+
className: "usher-sent-with-report__heading",
|
|
29
|
+
children: labels.common.sentWithYourReport
|
|
30
|
+
}),
|
|
31
|
+
/*#__PURE__*/ jsxRuntime.jsx("span", {
|
|
32
|
+
className: "usher-sent-with-report__parts",
|
|
33
|
+
children: parts.join(' · ')
|
|
34
|
+
})
|
|
35
|
+
]
|
|
36
|
+
});
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
exports.SentWithReport = SentWithReport;
|
|
40
|
+
//# sourceMappingURL=SentWithReport.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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,4BAAAA,EAAAA;AACxD,IAAA,MAAMC,KAAAA,GAAQ;QACVC,6BAAAA,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,aAAAA,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,eAAA,CAACC,SAAAA,EAAAA;QAAQC,SAAAA,EAAU,wBAAA;QAAyBC,YAAAA,EAAYpB,MAAAA,CAAOM,MAAM,CAACe,kBAAkB;;0BACpFC,cAAA,CAACC,MAAAA,EAAAA;gBAAKJ,SAAAA,EAAU,iCAAA;0BAAmCnB,MAAAA,CAAOM,MAAM,CAACe;;0BACjEC,cAAA,CAACC,MAAAA,EAAAA;gBAAKJ,SAAAA,EAAU,+BAAA;AAAiCf,gBAAAA,QAAAA,EAAAA,KAAAA,CAAMQ,IAAI,CAAC,KAAA;;;;AAGxE;;"}
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
+
var format = require('../Labels/format.js');
|
|
5
|
+
var UsherContext = require('../Provider/UsherContext.js');
|
|
6
|
+
|
|
7
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
8
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
9
|
+
/**
|
|
10
|
+
* The technical details of an error, collapsed until the reporter opens them.
|
|
11
|
+
*/ const TechnicalDetails = ({ errorType, correlationIds, stackFrames })=>{
|
|
12
|
+
const labels = UsherContext.useUsherLabels();
|
|
13
|
+
return /*#__PURE__*/ jsxRuntime.jsxs("details", {
|
|
14
|
+
className: "usher-technical-details",
|
|
15
|
+
children: [
|
|
16
|
+
/*#__PURE__*/ jsxRuntime.jsx("summary", {
|
|
17
|
+
className: "usher-technical-details__summary",
|
|
18
|
+
children: labels.reportError.technicalDetails
|
|
19
|
+
}),
|
|
20
|
+
/*#__PURE__*/ jsxRuntime.jsxs("dl", {
|
|
21
|
+
className: "usher-technical-details__list",
|
|
22
|
+
children: [
|
|
23
|
+
errorType.length > 0 && /*#__PURE__*/ jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
24
|
+
children: [
|
|
25
|
+
/*#__PURE__*/ jsxRuntime.jsx("dt", {
|
|
26
|
+
children: labels.reportError.errorType
|
|
27
|
+
}),
|
|
28
|
+
/*#__PURE__*/ jsxRuntime.jsx("dd", {
|
|
29
|
+
children: /*#__PURE__*/ jsxRuntime.jsx("code", {
|
|
30
|
+
children: errorType
|
|
31
|
+
})
|
|
32
|
+
})
|
|
33
|
+
]
|
|
34
|
+
}),
|
|
35
|
+
correlationIds.length > 0 && /*#__PURE__*/ jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
36
|
+
children: [
|
|
37
|
+
/*#__PURE__*/ jsxRuntime.jsx("dt", {
|
|
38
|
+
children: labels.reportError.correlationId
|
|
39
|
+
}),
|
|
40
|
+
/*#__PURE__*/ jsxRuntime.jsx("dd", {
|
|
41
|
+
children: /*#__PURE__*/ jsxRuntime.jsx("code", {
|
|
42
|
+
children: correlationIds[0].toString()
|
|
43
|
+
})
|
|
44
|
+
})
|
|
45
|
+
]
|
|
46
|
+
}),
|
|
47
|
+
stackFrames.length > 0 && /*#__PURE__*/ jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
48
|
+
children: [
|
|
49
|
+
/*#__PURE__*/ jsxRuntime.jsx("dt", {
|
|
50
|
+
children: labels.reportError.stackFrames
|
|
51
|
+
}),
|
|
52
|
+
/*#__PURE__*/ jsxRuntime.jsx("dd", {
|
|
53
|
+
children: /*#__PURE__*/ jsxRuntime.jsx("ol", {
|
|
54
|
+
className: "usher-technical-details__frames",
|
|
55
|
+
children: stackFrames.map((frame, index)=>/*#__PURE__*/ jsxRuntime.jsx("li", {
|
|
56
|
+
children: /*#__PURE__*/ jsxRuntime.jsx("code", {
|
|
57
|
+
children: format.format(labels.reportError.stackFrame, {
|
|
58
|
+
method: frame.method,
|
|
59
|
+
file: frame.file,
|
|
60
|
+
line: frame.line
|
|
61
|
+
})
|
|
62
|
+
})
|
|
63
|
+
}, index))
|
|
64
|
+
})
|
|
65
|
+
})
|
|
66
|
+
]
|
|
67
|
+
})
|
|
68
|
+
]
|
|
69
|
+
})
|
|
70
|
+
]
|
|
71
|
+
});
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
exports.TechnicalDetails = TechnicalDetails;
|
|
75
|
+
//# sourceMappingURL=TechnicalDetails.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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,2BAAAA,EAAAA;AAEf,IAAA,qBACIC,eAAA,CAACC,SAAAA,EAAAA;QAAQC,SAAAA,EAAU,yBAAA;;0BACfC,cAAA,CAACC,SAAAA,EAAAA;gBAAQF,SAAAA,EAAU,kCAAA;0BAAoCJ,MAAAA,CAAOO,WAAW,CAACC;;0BAC1EN,eAAA,CAACO,IAAAA,EAAAA;gBAAGL,SAAAA,EAAU,+BAAA;;oBACTP,SAAAA,CAAUa,MAAM,GAAG,CAAA,kBAChBR,eAAA,CAAAS,mBAAA,EAAA;;0CACIN,cAAA,CAACO,IAAAA,EAAAA;0CAAIZ,MAAAA,CAAOO,WAAW,CAACV;;0CACxBQ,cAAA,CAACQ,IAAAA,EAAAA;AAAG,gCAAA,QAAA,gBAAAR,cAAA,CAACS,MAAAA,EAAAA;AAAMjB,oCAAAA,QAAAA,EAAAA;;;;;oBAGlBC,cAAAA,CAAeY,MAAM,GAAG,CAAA,kBACrBR,eAAA,CAAAS,mBAAA,EAAA;;0CACIN,cAAA,CAACO,IAAAA,EAAAA;0CAAIZ,MAAAA,CAAOO,WAAW,CAACQ;;0CACxBV,cAAA,CAACQ,IAAAA,EAAAA;AAAG,gCAAA,QAAA,gBAAAR,cAAA,CAACS,MAAAA,EAAAA;8CAAMhB,cAAc,CAAC,CAAA,CAAE,CAACkB,QAAQ;;;;;oBAG5CjB,WAAAA,CAAYW,MAAM,GAAG,CAAA,kBAClBR,eAAA,CAAAS,mBAAA,EAAA;;0CACIN,cAAA,CAACO,IAAAA,EAAAA;0CAAIZ,MAAAA,CAAOO,WAAW,CAACR;;0CACxBM,cAAA,CAACQ,IAAAA,EAAAA;AACG,gCAAA,QAAA,gBAAAR,cAAA,CAACY,IAAAA,EAAAA;oCAAGb,SAAAA,EAAU,iCAAA;AACTL,oCAAAA,QAAAA,EAAAA,WAAAA,CAAYmB,GAAG,CAAC,CAACC,KAAAA,EAAOC,sBACrBf,cAAA,CAACgB,IAAAA,EAAAA;AAAe,4CAAA,QAAA,gBAAAhB,cAAA,CAACS,MAAAA,EAAAA;AAAMQ,gDAAAA,QAAAA,EAAAA,aAAAA,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;;"}
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"durationOptions.d.ts","sourceRoot":"","sources":["../../../Reporting/durationOptions.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAKjD,MAAM,WAAW,cAAc;IAC3B,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IAGvB,KAAK,EAAE,cAAc,CAAC;IAGtB,KAAK,EAAE,MAAM,CAAC;CACjB;AAOD,wBAAgB,eAAe,CAAC,MAAM,EAAE,WAAW,GAAG,cAAc,EAAE,CAMrE"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var showrunner_usher = require('@cratis/showrunner.usher');
|
|
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
|
+
* Gets the choices of how long support may sign in as the reporter.
|
|
9
|
+
* @param labels The labels to show.
|
|
10
|
+
* @returns The {@link DurationOption} for every {@link AccessDuration}, shortest first.
|
|
11
|
+
*/ function durationOptions(labels) {
|
|
12
|
+
return [
|
|
13
|
+
{
|
|
14
|
+
value: showrunner_usher.AccessDuration.oneHour,
|
|
15
|
+
label: labels.access.oneHour
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
value: showrunner_usher.AccessDuration.oneDay,
|
|
19
|
+
label: labels.access.oneDay
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
value: showrunner_usher.AccessDuration.sevenDays,
|
|
23
|
+
label: labels.access.sevenDays
|
|
24
|
+
}
|
|
25
|
+
];
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
exports.durationOptions = durationOptions;
|
|
29
|
+
//# sourceMappingURL=durationOptions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"durationOptions.js","sources":["../../../Reporting/durationOptions.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\nimport { AccessDuration } from '@cratis/showrunner.usher';\nimport { UsherLabels } from '../Labels/index.js';\n\n/**\n * One choice of how long support may sign in as the reporter.\n */\nexport interface DurationOption {\n [key: string]: unknown;\n\n /** The {@link AccessDuration}. */\n value: AccessDuration;\n\n /** What the reporter sees. */\n label: string;\n}\n\n/**\n * Gets the choices of how long support may sign in as the reporter.\n * @param labels The labels to show.\n * @returns The {@link DurationOption} for every {@link AccessDuration}, shortest first.\n */\nexport function durationOptions(labels: UsherLabels): DurationOption[] {\n return [\n { value: AccessDuration.oneHour, label: labels.access.oneHour },\n { value: AccessDuration.oneDay, label: labels.access.oneDay },\n { value: AccessDuration.sevenDays, label: labels.access.sevenDays }\n ];\n}\n"],"names":["durationOptions","labels","value","AccessDuration","oneHour","label","access","oneDay","sevenDays"],"mappings":";;;;AAAA;AACA;AAkBA;;;;IAKO,SAASA,eAAAA,CAAgBC,MAAmB,EAAA;IAC/C,OAAO;AACH,QAAA;AAAEC,YAAAA,KAAAA,EAAOC,gCAAeC,OAAO;YAAEC,KAAAA,EAAOJ,MAAAA,CAAOK,MAAM,CAACF;AAAQ,SAAA;AAC9D,QAAA;AAAEF,YAAAA,KAAAA,EAAOC,gCAAeI,MAAM;YAAEF,KAAAA,EAAOJ,MAAAA,CAAOK,MAAM,CAACC;AAAO,SAAA;AAC5D,QAAA;AAAEL,YAAAA,KAAAA,EAAOC,gCAAeK,SAAS;YAAEH,KAAAA,EAAOJ,MAAAA,CAAOK,MAAM,CAACE;AAAU;AACrE,KAAA;AACL;;"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export interface LocationParts {
|
|
2
|
+
readonly module: string;
|
|
3
|
+
readonly feature: string;
|
|
4
|
+
readonly slice: string;
|
|
5
|
+
}
|
|
6
|
+
export declare function formatLocation(location: LocationParts | undefined, separator: string, unknown: string): string;
|
|
7
|
+
//# sourceMappingURL=formatLocation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formatLocation.d.ts","sourceRoot":"","sources":["../../../Reporting/formatLocation.ts"],"names":[],"mappings":"AAMA,MAAM,WAAW,aAAa;IAE1B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IAExB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IAEzB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CAC1B;AASD,wBAAgB,cAAc,CAAC,QAAQ,EAAE,aAAa,GAAG,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAI9G"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
4
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
5
|
+
/**
|
|
6
|
+
* The parts of where in the application something happened.
|
|
7
|
+
*/ /**
|
|
8
|
+
* Formats where in the application something happened for people, such as `Billing › Invoices › Pay`.
|
|
9
|
+
* @param location The location; parts that are empty are left out.
|
|
10
|
+
* @param separator What separates the parts.
|
|
11
|
+
* @param unknown What to show when no part is known.
|
|
12
|
+
* @returns The formatted location.
|
|
13
|
+
*/ function formatLocation(location, separator, unknown) {
|
|
14
|
+
const parts = [
|
|
15
|
+
location?.module,
|
|
16
|
+
location?.feature,
|
|
17
|
+
location?.slice
|
|
18
|
+
].filter((part)=>typeof part === 'string' && part.length > 0);
|
|
19
|
+
return parts.length > 0 ? parts.join(separator) : unknown;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
exports.formatLocation = formatLocation;
|
|
23
|
+
//# sourceMappingURL=formatLocation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formatLocation.js","sources":["../../../Reporting/formatLocation.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 parts of where in the application something happened.\n */\nexport interface LocationParts {\n /** The module. */\n readonly module: string;\n /** The feature within the module. */\n readonly feature: string;\n /** The slice within the feature. */\n readonly slice: string;\n}\n\n/**\n * Formats where in the application something happened for people, such as `Billing › Invoices › Pay`.\n * @param location The location; parts that are empty are left out.\n * @param separator What separates the parts.\n * @param unknown What to show when no part is known.\n * @returns The formatted location.\n */\nexport function formatLocation(location: LocationParts | undefined, separator: string, unknown: string): string {\n const parts = [location?.module, location?.feature, location?.slice]\n .filter((part): part is string => typeof part === 'string' && part.length > 0);\n return parts.length > 0 ? parts.join(separator) : unknown;\n}\n"],"names":["formatLocation","location","separator","unknown","parts","module","feature","slice","filter","part","length","join"],"mappings":";;AAAA;AACA;AAEA;;;;;;;;AAkBC,IACM,SAASA,cAAAA,CAAeC,QAAmC,EAAEC,SAAiB,EAAEC,OAAe,EAAA;AAClG,IAAA,MAAMC,KAAAA,GAAQ;QAACH,QAAAA,EAAUI,MAAAA;QAAQJ,QAAAA,EAAUK,OAAAA;QAASL,QAAAA,EAAUM;KAAM,CAC/DC,MAAM,CAAC,CAACC,IAAAA,GAAyB,OAAOA,IAAAA,KAAS,QAAA,IAAYA,IAAAA,CAAKC,MAAM,GAAG,CAAA,CAAA;AAChF,IAAA,OAAON,MAAMM,MAAM,GAAG,IAAIN,KAAAA,CAAMO,IAAI,CAACT,SAAAA,CAAAA,GAAaC,OAAAA;AACtD;;"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export * from './AccessChoice.js';
|
|
2
|
+
export * from './AccessFields.js';
|
|
3
|
+
export * from './AccessNotice.js';
|
|
4
|
+
export * from './durationOptions.js';
|
|
5
|
+
export * from './formatLocation.js';
|
|
6
|
+
export * from './ReportErrorDialog.js';
|
|
7
|
+
export * from './ReportIssueDialog.js';
|
|
8
|
+
export * from './ReportLimits.js';
|
|
9
|
+
export * from './ReportSent.js';
|
|
10
|
+
export * from './reportValues.js';
|
|
11
|
+
export * from './SentWithReport.js';
|
|
12
|
+
export * from './TechnicalDetails.js';
|
|
13
|
+
export * from './useAccessChoice.js';
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../Reporting/index.ts"],"names":[],"mappings":"AAGA,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { SliceLocation as ArcSliceLocation } from '@cratis/arc/reflection';
|
|
2
|
+
import { Guid } from '@cratis/fundamentals';
|
|
3
|
+
import { ErrorDetails, IReportError, IReportIssue, SliceLocation } from '@cratis/showrunner.usher';
|
|
4
|
+
export interface ReportContext {
|
|
5
|
+
readonly issueId: Guid;
|
|
6
|
+
readonly location: ArcSliceLocation;
|
|
7
|
+
readonly correlationIds: Guid[];
|
|
8
|
+
readonly applicationVersion: string;
|
|
9
|
+
readonly shareIdentity: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare function toReportLocation(location: ArcSliceLocation): SliceLocation;
|
|
12
|
+
export declare function reportIssueValues(context: ReportContext): IReportIssue;
|
|
13
|
+
export declare function reportErrorValues(error: ErrorDetails, context: ReportContext): IReportError;
|
|
14
|
+
export declare function mergeCorrelationIds(first: Guid[], second: Guid[]): Guid[];
|
|
15
|
+
export declare function toErrorDetails(error: unknown, location?: ArcSliceLocation): ErrorDetails;
|
|
16
|
+
export declare function isErrorDetails(value: unknown): value is ErrorDetails;
|
|
17
|
+
export declare function isEmptyLocation(location: {
|
|
18
|
+
module: string;
|
|
19
|
+
feature: string;
|
|
20
|
+
slice: string;
|
|
21
|
+
} | undefined): boolean;
|
|
22
|
+
//# sourceMappingURL=reportValues.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reportValues.d.ts","sourceRoot":"","sources":["../../../Reporting/reportValues.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,IAAI,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC3E,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAAkB,YAAY,EAAyB,YAAY,EAAE,YAAY,EAAE,aAAa,EAAc,MAAM,0BAA0B,CAAC;AAMtJ,MAAM,WAAW,aAAa;IAE1B,QAAQ,CAAC,OAAO,EAAE,IAAI,CAAC;IAGvB,QAAQ,CAAC,QAAQ,EAAE,gBAAgB,CAAC;IAGpC,QAAQ,CAAC,cAAc,EAAE,IAAI,EAAE,CAAC;IAGhC,QAAQ,CAAC,kBAAkB,EAAE,MAAM,CAAC;IAGpC,QAAQ,CAAC,aAAa,EAAE,OAAO,CAAC;CACnC;AAOD,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,gBAAgB,GAAG,aAAa,CAM1E;AAOD,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,aAAa,GAAG,YAAY,CAYtE;AASD,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,YAAY,EAAE,OAAO,EAAE,aAAa,GAAG,YAAY,CAc3F;AAQD,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,EAAE,CAQzE;AASD,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,EAAE,QAAQ,CAAC,EAAE,gBAAgB,GAAG,YAAY,CAExF;AAOD,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,YAAY,CAYpE;AAOD,wBAAgB,eAAe,CAAC,QAAQ,EAAE;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,GAAG,OAAO,CAEjH"}
|