@cucumber/react-components 24.2.0 → 24.4.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/LICENSE +1 -1
- package/README.md +2 -2
- package/dist/CucumberQueryContext.d.ts +3 -0
- package/dist/CucumberQueryContext.js +4 -0
- package/dist/GherkinQueryContext.d.ts +3 -0
- package/dist/GherkinQueryContext.js +4 -0
- package/dist/SearchContext.d.ts +18 -0
- package/dist/SearchContext.js +10 -0
- package/dist/ciCommitLink.d.ts +2 -0
- package/dist/ciCommitLink.js +12 -0
- package/dist/components/app/CICommitLink.d.ts +5 -0
- package/dist/components/app/CICommitLink.js +16 -0
- package/dist/components/app/CIJobLink.d.ts +5 -0
- package/dist/components/app/CIJobLink.js +10 -0
- package/dist/{src/components → components}/app/ControlledSearchProvider.d.ts +2 -3
- package/dist/components/app/ControlledSearchProvider.js +39 -0
- package/dist/components/app/CopyButton.d.ts +5 -0
- package/dist/components/app/CopyButton.js +23 -0
- package/dist/{src/components → components}/app/DocumentAccordion.d.ts +3 -4
- package/dist/components/app/DocumentAccordion.js +22 -0
- package/dist/{src/components → components}/app/DocumentAccordion.module.scss +15 -7
- package/dist/components/app/EnvelopesProvider.d.ts +7 -0
- package/dist/components/app/EnvelopesProvider.js +18 -0
- package/dist/components/app/ExecutionSummary.d.ts +2 -0
- package/dist/components/app/ExecutionSummary.js +38 -0
- package/dist/components/app/FilteredDocuments.d.ts +2 -0
- package/dist/components/app/FilteredDocuments.js +15 -0
- package/dist/components/app/GherkinDocumentList.d.ts +8 -0
- package/dist/components/app/GherkinDocumentList.js +23 -0
- package/dist/{src/components → components}/app/Header.d.ts +1 -2
- package/dist/components/app/Header.js +12 -0
- package/dist/components/app/HealthChart.d.ts +2 -0
- package/dist/components/app/HealthChart.js +14 -0
- package/dist/components/app/HighLight.d.ts +8 -0
- package/dist/components/app/HighLight.js +38 -0
- package/dist/components/app/ImplementationIcon.d.ts +5 -0
- package/dist/components/app/ImplementationIcon.js +10 -0
- package/dist/{src/components → components}/app/InMemorySearchProvider.d.ts +2 -3
- package/dist/components/app/InMemorySearchProvider.js +11 -0
- package/dist/components/app/NavigationButton.d.ts +2 -0
- package/dist/components/app/NavigationButton.js +6 -0
- package/dist/components/app/OSIcon.d.ts +5 -0
- package/dist/components/app/OSIcon.js +18 -0
- package/dist/components/app/QueriesProvider.d.ts +9 -0
- package/dist/components/app/QueriesProvider.js +7 -0
- package/dist/components/app/Report.d.ts +2 -0
- package/dist/components/app/Report.js +10 -0
- package/dist/components/app/RuntimeIcon.d.ts +5 -0
- package/dist/components/app/RuntimeIcon.js +18 -0
- package/dist/components/app/SearchBar.d.ts +2 -0
- package/dist/components/app/SearchBar.js +33 -0
- package/dist/components/app/StatusesSummary.d.ts +2 -0
- package/dist/components/app/StatusesSummary.js +16 -0
- package/dist/components/app/TestRunHooks.d.ts +2 -0
- package/dist/components/app/TestRunHooks.js +14 -0
- package/dist/{src/components → components}/app/UrlSearchProvider.d.ts +1 -2
- package/dist/components/app/UrlSearchProvider.js +29 -0
- package/dist/{src/components → components}/app/findMostSevereTestStepResultStatus.d.ts +0 -1
- package/dist/components/app/findMostSevereTestStepResultStatus.js +17 -0
- package/dist/components/app/icons/CucumberLogo.d.ts +2 -0
- package/dist/components/app/icons/CucumberLogo.js +5 -0
- package/dist/components/app/icons/Jvm.d.ts +2 -0
- package/dist/components/app/icons/Jvm.js +5 -0
- package/dist/components/app/icons/Linux.d.ts +2 -0
- package/dist/components/app/icons/Linux.js +5 -0
- package/dist/components/app/icons/MacOS.d.ts +2 -0
- package/dist/components/app/icons/MacOS.js +5 -0
- package/dist/components/app/icons/NodeJs.d.ts +2 -0
- package/dist/components/app/icons/NodeJs.js +5 -0
- package/dist/components/app/icons/Ruby.d.ts +2 -0
- package/dist/components/app/icons/Ruby.js +5 -0
- package/dist/components/app/icons/Windows.d.ts +2 -0
- package/dist/components/app/icons/Windows.js +5 -0
- package/dist/{src/components/app/index.js → components/app/index.d.ts} +0 -1
- package/dist/components/app/index.js +15 -0
- package/dist/components/app/makeSetupString.d.ts +2 -0
- package/dist/components/app/makeSetupString.js +21 -0
- package/dist/components/app/markdownComponents.d.ts +8 -0
- package/dist/components/app/markdownComponents.js +6 -0
- package/dist/components/app/rehypePlugins.d.ts +3 -0
- package/dist/components/app/rehypePlugins.js +9 -0
- package/dist/components/app/remarkPlugins.d.ts +3 -0
- package/dist/components/app/remarkPlugins.js +4 -0
- package/dist/{src/components → components}/customise/CustomRendering.d.ts +18 -19
- package/dist/components/customise/CustomRendering.js +35 -0
- package/dist/components/customise/CustomRendering.stories.scss +8 -0
- package/dist/{src/components/customise/index.js → components/customise/index.d.ts} +0 -1
- package/dist/components/customise/index.js +3 -0
- package/dist/{src/components → components}/customise/theming.d.ts +0 -1
- package/dist/components/customise/theming.js +2 -0
- package/dist/components/gherkin/Anchor.d.ts +3 -0
- package/dist/components/gherkin/Anchor.js +13 -0
- package/dist/components/gherkin/Background.d.ts +3 -0
- package/dist/components/gherkin/Background.js +18 -0
- package/dist/components/gherkin/Children.d.ts +3 -0
- package/dist/components/gherkin/Children.js +11 -0
- package/dist/components/gherkin/DataTable.d.ts +3 -0
- package/dist/components/gherkin/DataTable.js +16 -0
- package/dist/components/gherkin/Description.d.ts +3 -0
- package/dist/components/gherkin/Description.js +15 -0
- package/dist/components/gherkin/DocString.d.ts +3 -0
- package/dist/components/gherkin/DocString.js +12 -0
- package/dist/components/gherkin/ErrorMessage.d.ts +3 -0
- package/dist/components/gherkin/ErrorMessage.js +13 -0
- package/dist/components/gherkin/ErrorMessage.module.scss +24 -0
- package/dist/components/gherkin/Examples.d.ts +3 -0
- package/dist/components/gherkin/Examples.js +31 -0
- package/dist/components/gherkin/Feature.d.ts +3 -0
- package/dist/components/gherkin/Feature.js +30 -0
- package/dist/components/gherkin/GherkinDocument.d.ts +3 -0
- package/dist/components/gherkin/GherkinDocument.js +11 -0
- package/dist/components/gherkin/Keyword.d.ts +3 -0
- package/dist/components/gherkin/Keyword.js +11 -0
- package/dist/{src/components → components}/gherkin/Keyword.module.scss +0 -1
- package/dist/components/gherkin/Parameter.d.ts +3 -0
- package/dist/components/gherkin/Parameter.js +11 -0
- package/dist/components/gherkin/Rule.d.ts +3 -0
- package/dist/components/gherkin/Rule.js +26 -0
- package/dist/components/gherkin/Scenario.d.ts +3 -0
- package/dist/components/gherkin/Scenario.js +22 -0
- package/dist/components/gherkin/StatusIcon.d.ts +3 -0
- package/dist/components/gherkin/StatusIcon.js +24 -0
- package/dist/components/gherkin/StepsList.d.ts +4 -0
- package/dist/components/gherkin/StepsList.js +6 -0
- package/dist/components/gherkin/Tags.d.ts +3 -0
- package/dist/components/gherkin/Tags.js +15 -0
- package/dist/components/gherkin/Title.d.ts +3 -0
- package/dist/components/gherkin/Title.js +12 -0
- package/dist/components/gherkin/attachment/Attachment.d.ts +3 -0
- package/dist/components/gherkin/attachment/Attachment.js +45 -0
- package/dist/{src/components → components}/gherkin/attachment/Attachment.module.scss +15 -5
- package/dist/components/gherkin/attachment/Image.d.ts +7 -0
- package/dist/components/gherkin/attachment/Image.js +16 -0
- package/dist/components/gherkin/attachment/Links.d.ts +7 -0
- package/dist/components/gherkin/attachment/Links.js +14 -0
- package/dist/components/gherkin/attachment/Log.d.ts +7 -0
- package/dist/components/gherkin/attachment/Log.js +12 -0
- package/dist/components/gherkin/attachment/Text.d.ts +8 -0
- package/dist/components/gherkin/attachment/Text.js +16 -0
- package/dist/components/gherkin/attachment/Unknown.d.ts +3 -0
- package/dist/components/gherkin/attachment/Unknown.js +61 -0
- package/dist/components/gherkin/attachment/Video.d.ts +5 -0
- package/dist/components/gherkin/attachment/Video.js +16 -0
- package/dist/components/gherkin/attachment/attachmentFilename.d.ts +2 -0
- package/dist/components/gherkin/attachment/attachmentFilename.js +12 -0
- package/dist/components/gherkin/attachment/base64Decode.d.ts +9 -0
- package/dist/components/gherkin/attachment/base64Decode.js +19 -0
- package/dist/{src/components/gherkin/attachment/index.js → components/gherkin/attachment/index.d.ts} +0 -1
- package/dist/components/gherkin/attachment/index.js +2 -0
- package/dist/{src/components → components}/gherkin/attachment/useText.d.ts +1 -2
- package/dist/components/gherkin/attachment/useText.js +28 -0
- package/dist/components/gherkin/composeHookStepTitle.d.ts +2 -0
- package/dist/components/gherkin/composeHookStepTitle.js +23 -0
- package/dist/{src/components → components}/gherkin/composePickleStepTitle.d.ts +1 -2
- package/dist/components/gherkin/composePickleStepTitle.js +36 -0
- package/dist/{src/components/gherkin/index.js → components/gherkin/index.d.ts} +0 -1
- package/dist/components/gherkin/index.js +19 -0
- package/dist/{src/components → components}/gherkin/isNumber.d.ts +0 -1
- package/dist/components/gherkin/isNumber.js +7 -0
- package/dist/components/gherkin/statusName.d.ts +3 -0
- package/dist/components/gherkin/statusName.js +4 -0
- package/dist/{src/components/index.js → components/index.d.ts} +0 -1
- package/dist/components/index.js +4 -0
- package/dist/components/results/AmbiguousResult.d.ts +7 -0
- package/dist/components/results/AmbiguousResult.js +11 -0
- package/dist/components/results/AmbiguousResult.module.scss +22 -0
- package/dist/components/results/FailedResult.d.ts +7 -0
- package/dist/components/results/FailedResult.js +15 -0
- package/dist/components/results/PendingResult.d.ts +7 -0
- package/dist/components/results/PendingResult.js +12 -0
- package/dist/components/results/ResultNote.d.ts +2 -0
- package/dist/components/results/ResultNote.js +6 -0
- package/dist/components/results/ResultNote.module.scss +6 -0
- package/dist/components/results/SkippedResult.d.ts +7 -0
- package/dist/components/results/SkippedResult.js +12 -0
- package/dist/components/results/SourceReference.d.ts +7 -0
- package/dist/components/results/SourceReference.js +13 -0
- package/dist/components/results/SourceReference.module.scss +10 -0
- package/dist/components/results/TestCaseOutcome.d.ts +7 -0
- package/dist/components/results/TestCaseOutcome.js +32 -0
- package/dist/{src/components → components}/results/TestRunHookOutcome.d.ts +2 -3
- package/dist/components/results/TestRunHookOutcome.js +11 -0
- package/dist/components/results/TestStepAttachments.d.ts +7 -0
- package/dist/components/results/TestStepAttachments.js +12 -0
- package/dist/components/results/TestStepDuration.d.ts +5 -0
- package/dist/components/results/TestStepDuration.js +19 -0
- package/dist/{src/components → components}/results/TestStepOutcome.d.ts +2 -3
- package/dist/components/results/TestStepOutcome.js +45 -0
- package/dist/{src/components → components}/results/TestStepOutcome.module.scss +1 -1
- package/dist/components/results/UndefinedResult.d.ts +7 -0
- package/dist/components/results/UndefinedResult.js +18 -0
- package/dist/{src/components/gherkin/ErrorMessage.module.scss → components/results/UndefinedResult.module.scss} +5 -3
- package/dist/components/results/index.d.ts +2 -0
- package/dist/components/results/index.js +3 -0
- package/dist/{src/hooks/helpers.d.ts → ensure.d.ts} +0 -1
- package/dist/ensure.js +7 -0
- package/dist/{src/formatExecutionDistance.d.ts → formatExecutionDistance.d.ts} +0 -1
- package/dist/formatExecutionDistance.js +7 -0
- package/dist/{src/formatExecutionDuration.d.ts → formatExecutionDuration.d.ts} +0 -1
- package/dist/formatExecutionDuration.js +12 -0
- package/dist/{src/formatPassedQuantity.d.ts → formatPassedQuantity.d.ts} +0 -1
- package/dist/formatPassedQuantity.js +4 -0
- package/dist/{src/formatStatusRate.d.ts → formatStatusRate.d.ts} +0 -1
- package/dist/formatStatusRate.js +9 -0
- package/dist/{src/hooks/index.js → hooks/index.d.ts} +0 -1
- package/dist/hooks/index.js +3 -0
- package/dist/hooks/useFilteredDocuments.d.ts +5 -0
- package/dist/hooks/useFilteredDocuments.js +67 -0
- package/dist/hooks/useFilteredTestCases.d.ts +6 -0
- package/dist/hooks/useFilteredTestCases.js +36 -0
- package/dist/{src/hooks → hooks}/useMostSevereStatusByUri.d.ts +0 -1
- package/dist/hooks/useMostSevereStatusByUri.js +25 -0
- package/dist/hooks/useQueries.d.ts +6 -0
- package/dist/hooks/useQueries.js +9 -0
- package/dist/{src/hooks → hooks}/useResultStatistics.d.ts +1 -2
- package/dist/hooks/useResultStatistics.js +24 -0
- package/dist/hooks/useSearch.d.ts +2 -0
- package/dist/hooks/useSearch.js +6 -0
- package/dist/hooks/useSearchResult.d.ts +26 -0
- package/dist/hooks/useSearchResult.js +58 -0
- package/dist/hooks/useTestCaseStarted.d.ts +7 -0
- package/dist/hooks/useTestCaseStarted.js +20 -0
- package/dist/{src/hooks → hooks}/useTestRunHooks.d.ts +1 -2
- package/dist/hooks/useTestRunHooks.js +14 -0
- package/dist/{src/index.js → index.d.ts} +0 -1
- package/dist/index.js +3 -0
- package/dist/{src/isTagExpression.d.ts → isTagExpression.d.ts} +0 -1
- package/dist/isTagExpression.js +5 -0
- package/dist/search/FeatureSearch.d.ts +12 -0
- package/dist/search/FeatureSearch.js +39 -0
- package/dist/search/ScenarioLikeSearch.d.ts +19 -0
- package/dist/search/ScenarioLikeSearch.js +37 -0
- package/dist/search/StepSearch.d.ts +11 -0
- package/dist/search/StepSearch.js +40 -0
- package/dist/search/TextSearch.d.ts +11 -0
- package/dist/search/TextSearch.js +67 -0
- package/dist/search/createSearchIndex.d.ts +6 -0
- package/dist/search/createSearchIndex.js +10 -0
- package/dist/search/deriveLineageConstraints.d.ts +7 -0
- package/dist/search/deriveLineageConstraints.js +38 -0
- package/dist/search/filterAndExpandTestCaseEvents.d.ts +20 -0
- package/dist/search/filterAndExpandTestCaseEvents.js +32 -0
- package/dist/search/index.d.ts +6 -0
- package/dist/search/index.js +7 -0
- package/dist/search/pruneGherkinDocuments.d.ts +23 -0
- package/dist/search/pruneGherkinDocuments.js +179 -0
- package/dist/search/pruneTestCaseEvents.d.ts +16 -0
- package/dist/search/pruneTestCaseEvents.js +41 -0
- package/dist/search/types.d.ts +44 -0
- package/dist/search/types.js +2 -0
- package/dist/{src/statuses.d.ts → statuses.d.ts} +0 -1
- package/dist/statuses.js +12 -0
- package/dist/toRepositoryId.d.ts +1 -0
- package/dist/toRepositoryId.js +12 -0
- package/package.json +65 -75
- package/dist/src/CucumberQueryContext.d.ts +0 -5
- package/dist/src/CucumberQueryContext.d.ts.map +0 -1
- package/dist/src/CucumberQueryContext.js +0 -4
- package/dist/src/CucumberQueryContext.js.map +0 -1
- package/dist/src/GherkinQueryContext.d.ts +0 -5
- package/dist/src/GherkinQueryContext.d.ts.map +0 -1
- package/dist/src/GherkinQueryContext.js +0 -4
- package/dist/src/GherkinQueryContext.js.map +0 -1
- package/dist/src/SearchContext.d.ts +0 -13
- package/dist/src/SearchContext.d.ts.map +0 -1
- package/dist/src/SearchContext.js +0 -8
- package/dist/src/SearchContext.js.map +0 -1
- package/dist/src/ciCommitLink.d.ts +0 -3
- package/dist/src/ciCommitLink.d.ts.map +0 -1
- package/dist/src/ciCommitLink.js +0 -12
- package/dist/src/ciCommitLink.js.map +0 -1
- package/dist/src/components/app/CICommitLink.d.ts +0 -6
- package/dist/src/components/app/CICommitLink.d.ts.map +0 -1
- package/dist/src/components/app/CICommitLink.js +0 -21
- package/dist/src/components/app/CICommitLink.js.map +0 -1
- package/dist/src/components/app/CIJobLink.d.ts +0 -6
- package/dist/src/components/app/CIJobLink.d.ts.map +0 -1
- package/dist/src/components/app/CIJobLink.js +0 -14
- package/dist/src/components/app/CIJobLink.js.map +0 -1
- package/dist/src/components/app/ControlledSearchProvider.d.ts.map +0 -1
- package/dist/src/components/app/ControlledSearchProvider.js +0 -17
- package/dist/src/components/app/ControlledSearchProvider.js.map +0 -1
- package/dist/src/components/app/CopyButton.d.ts +0 -5
- package/dist/src/components/app/CopyButton.d.ts.map +0 -1
- package/dist/src/components/app/CopyButton.js +0 -23
- package/dist/src/components/app/CopyButton.js.map +0 -1
- package/dist/src/components/app/DocumentAccordion.d.ts.map +0 -1
- package/dist/src/components/app/DocumentAccordion.js +0 -30
- package/dist/src/components/app/DocumentAccordion.js.map +0 -1
- package/dist/src/components/app/EnvelopesProvider.d.ts +0 -8
- package/dist/src/components/app/EnvelopesProvider.d.ts.map +0 -1
- package/dist/src/components/app/EnvelopesProvider.js +0 -17
- package/dist/src/components/app/EnvelopesProvider.js.map +0 -1
- package/dist/src/components/app/ExecutionSummary.d.ts +0 -3
- package/dist/src/components/app/ExecutionSummary.d.ts.map +0 -1
- package/dist/src/components/app/ExecutionSummary.js +0 -84
- package/dist/src/components/app/ExecutionSummary.js.map +0 -1
- package/dist/src/components/app/FilteredDocuments.d.ts +0 -3
- package/dist/src/components/app/FilteredDocuments.d.ts.map +0 -1
- package/dist/src/components/app/FilteredDocuments.js +0 -15
- package/dist/src/components/app/FilteredDocuments.js.map +0 -1
- package/dist/src/components/app/GherkinDocumentList.d.ts +0 -9
- package/dist/src/components/app/GherkinDocumentList.d.ts.map +0 -1
- package/dist/src/components/app/GherkinDocumentList.js +0 -24
- package/dist/src/components/app/GherkinDocumentList.js.map +0 -1
- package/dist/src/components/app/Header.d.ts.map +0 -1
- package/dist/src/components/app/Header.js +0 -12
- package/dist/src/components/app/Header.js.map +0 -1
- package/dist/src/components/app/HealthChart.d.ts +0 -3
- package/dist/src/components/app/HealthChart.d.ts.map +0 -1
- package/dist/src/components/app/HealthChart.js +0 -15
- package/dist/src/components/app/HealthChart.js.map +0 -1
- package/dist/src/components/app/HighLight.d.ts +0 -9
- package/dist/src/components/app/HighLight.d.ts.map +0 -1
- package/dist/src/components/app/HighLight.js +0 -32
- package/dist/src/components/app/HighLight.js.map +0 -1
- package/dist/src/components/app/ImplementationIcon.d.ts +0 -6
- package/dist/src/components/app/ImplementationIcon.d.ts.map +0 -1
- package/dist/src/components/app/ImplementationIcon.js +0 -10
- package/dist/src/components/app/ImplementationIcon.js.map +0 -1
- package/dist/src/components/app/InMemorySearchProvider.d.ts.map +0 -1
- package/dist/src/components/app/InMemorySearchProvider.js +0 -10
- package/dist/src/components/app/InMemorySearchProvider.js.map +0 -1
- package/dist/src/components/app/NavigationButton.d.ts +0 -3
- package/dist/src/components/app/NavigationButton.d.ts.map +0 -1
- package/dist/src/components/app/NavigationButton.js +0 -6
- package/dist/src/components/app/NavigationButton.js.map +0 -1
- package/dist/src/components/app/OSIcon.d.ts +0 -6
- package/dist/src/components/app/OSIcon.d.ts.map +0 -1
- package/dist/src/components/app/OSIcon.js +0 -18
- package/dist/src/components/app/OSIcon.js.map +0 -1
- package/dist/src/components/app/QueriesProvider.d.ts +0 -10
- package/dist/src/components/app/QueriesProvider.d.ts.map +0 -1
- package/dist/src/components/app/QueriesProvider.js +0 -6
- package/dist/src/components/app/QueriesProvider.js.map +0 -1
- package/dist/src/components/app/Report.d.ts +0 -3
- package/dist/src/components/app/Report.d.ts.map +0 -1
- package/dist/src/components/app/Report.js +0 -19
- package/dist/src/components/app/Report.js.map +0 -1
- package/dist/src/components/app/RuntimeIcon.d.ts +0 -6
- package/dist/src/components/app/RuntimeIcon.d.ts.map +0 -1
- package/dist/src/components/app/RuntimeIcon.js +0 -18
- package/dist/src/components/app/RuntimeIcon.js.map +0 -1
- package/dist/src/components/app/SearchBar.d.ts +0 -3
- package/dist/src/components/app/SearchBar.d.ts.map +0 -1
- package/dist/src/components/app/SearchBar.js +0 -48
- package/dist/src/components/app/SearchBar.js.map +0 -1
- package/dist/src/components/app/StatusesSummary.d.ts +0 -3
- package/dist/src/components/app/StatusesSummary.d.ts.map +0 -1
- package/dist/src/components/app/StatusesSummary.js +0 -19
- package/dist/src/components/app/StatusesSummary.js.map +0 -1
- package/dist/src/components/app/TestRunHooks.d.ts +0 -3
- package/dist/src/components/app/TestRunHooks.d.ts.map +0 -1
- package/dist/src/components/app/TestRunHooks.js +0 -14
- package/dist/src/components/app/TestRunHooks.js.map +0 -1
- package/dist/src/components/app/UrlSearchProvider.d.ts.map +0 -1
- package/dist/src/components/app/UrlSearchProvider.js +0 -26
- package/dist/src/components/app/UrlSearchProvider.js.map +0 -1
- package/dist/src/components/app/findMostSevereTestStepResultStatus.d.ts.map +0 -1
- package/dist/src/components/app/findMostSevereTestStepResultStatus.js +0 -17
- package/dist/src/components/app/findMostSevereTestStepResultStatus.js.map +0 -1
- package/dist/src/components/app/icons/CucumberLogo.d.ts +0 -3
- package/dist/src/components/app/icons/CucumberLogo.d.ts.map +0 -1
- package/dist/src/components/app/icons/CucumberLogo.js +0 -9
- package/dist/src/components/app/icons/CucumberLogo.js.map +0 -1
- package/dist/src/components/app/icons/Jvm.d.ts +0 -3
- package/dist/src/components/app/icons/Jvm.d.ts.map +0 -1
- package/dist/src/components/app/icons/Jvm.js +0 -10
- package/dist/src/components/app/icons/Jvm.js.map +0 -1
- package/dist/src/components/app/icons/Linux.d.ts +0 -3
- package/dist/src/components/app/icons/Linux.d.ts.map +0 -1
- package/dist/src/components/app/icons/Linux.js +0 -20
- package/dist/src/components/app/icons/Linux.js.map +0 -1
- package/dist/src/components/app/icons/MacOS.d.ts +0 -3
- package/dist/src/components/app/icons/MacOS.d.ts.map +0 -1
- package/dist/src/components/app/icons/MacOS.js +0 -6
- package/dist/src/components/app/icons/MacOS.js.map +0 -1
- package/dist/src/components/app/icons/NodeJs.d.ts +0 -3
- package/dist/src/components/app/icons/NodeJs.d.ts.map +0 -1
- package/dist/src/components/app/icons/NodeJs.js +0 -8
- package/dist/src/components/app/icons/NodeJs.js.map +0 -1
- package/dist/src/components/app/icons/Ruby.d.ts +0 -3
- package/dist/src/components/app/icons/Ruby.d.ts.map +0 -1
- package/dist/src/components/app/icons/Ruby.js +0 -6
- package/dist/src/components/app/icons/Ruby.js.map +0 -1
- package/dist/src/components/app/icons/Windows.d.ts +0 -3
- package/dist/src/components/app/icons/Windows.d.ts.map +0 -1
- package/dist/src/components/app/icons/Windows.js +0 -6
- package/dist/src/components/app/icons/Windows.js.map +0 -1
- package/dist/src/components/app/index.d.ts +0 -15
- package/dist/src/components/app/index.d.ts.map +0 -1
- package/dist/src/components/app/index.js.map +0 -1
- package/dist/src/components/app/makeSetupString.d.ts +0 -3
- package/dist/src/components/app/makeSetupString.d.ts.map +0 -1
- package/dist/src/components/app/makeSetupString.js +0 -21
- package/dist/src/components/app/makeSetupString.js.map +0 -1
- package/dist/src/components/app/rehypePlugins.d.ts +0 -4
- package/dist/src/components/app/rehypePlugins.d.ts.map +0 -1
- package/dist/src/components/app/rehypePlugins.js +0 -9
- package/dist/src/components/app/rehypePlugins.js.map +0 -1
- package/dist/src/components/app/remarkPlugins.d.ts +0 -4
- package/dist/src/components/app/remarkPlugins.d.ts.map +0 -1
- package/dist/src/components/app/remarkPlugins.js +0 -4
- package/dist/src/components/app/remarkPlugins.js.map +0 -1
- package/dist/src/components/customise/CustomRendering.d.ts.map +0 -1
- package/dist/src/components/customise/CustomRendering.js +0 -34
- package/dist/src/components/customise/CustomRendering.js.map +0 -1
- package/dist/src/components/customise/CustomRendering.stories.scss +0 -25
- package/dist/src/components/customise/index.d.ts +0 -3
- package/dist/src/components/customise/index.d.ts.map +0 -1
- package/dist/src/components/customise/index.js.map +0 -1
- package/dist/src/components/customise/theming.d.ts.map +0 -1
- package/dist/src/components/customise/theming.js +0 -2
- package/dist/src/components/customise/theming.js.map +0 -1
- package/dist/src/components/gherkin/Anchor.d.ts +0 -4
- package/dist/src/components/gherkin/Anchor.d.ts.map +0 -1
- package/dist/src/components/gherkin/Anchor.js +0 -16
- package/dist/src/components/gherkin/Anchor.js.map +0 -1
- package/dist/src/components/gherkin/Background.d.ts +0 -4
- package/dist/src/components/gherkin/Background.d.ts.map +0 -1
- package/dist/src/components/gherkin/Background.js +0 -24
- package/dist/src/components/gherkin/Background.js.map +0 -1
- package/dist/src/components/gherkin/Children.d.ts +0 -4
- package/dist/src/components/gherkin/Children.d.ts.map +0 -1
- package/dist/src/components/gherkin/Children.js +0 -11
- package/dist/src/components/gherkin/Children.js.map +0 -1
- package/dist/src/components/gherkin/DataTable.d.ts +0 -4
- package/dist/src/components/gherkin/DataTable.d.ts.map +0 -1
- package/dist/src/components/gherkin/DataTable.js +0 -18
- package/dist/src/components/gherkin/DataTable.js.map +0 -1
- package/dist/src/components/gherkin/Description.d.ts +0 -4
- package/dist/src/components/gherkin/Description.d.ts.map +0 -1
- package/dist/src/components/gherkin/Description.js +0 -16
- package/dist/src/components/gherkin/Description.js.map +0 -1
- package/dist/src/components/gherkin/DocString.d.ts +0 -4
- package/dist/src/components/gherkin/DocString.d.ts.map +0 -1
- package/dist/src/components/gherkin/DocString.js +0 -13
- package/dist/src/components/gherkin/DocString.js.map +0 -1
- package/dist/src/components/gherkin/ErrorMessage.d.ts +0 -4
- package/dist/src/components/gherkin/ErrorMessage.d.ts.map +0 -1
- package/dist/src/components/gherkin/ErrorMessage.js +0 -11
- package/dist/src/components/gherkin/ErrorMessage.js.map +0 -1
- package/dist/src/components/gherkin/Examples.d.ts +0 -4
- package/dist/src/components/gherkin/Examples.d.ts.map +0 -1
- package/dist/src/components/gherkin/Examples.js +0 -42
- package/dist/src/components/gherkin/Examples.js.map +0 -1
- package/dist/src/components/gherkin/Feature.d.ts +0 -4
- package/dist/src/components/gherkin/Feature.d.ts.map +0 -1
- package/dist/src/components/gherkin/Feature.js +0 -40
- package/dist/src/components/gherkin/Feature.js.map +0 -1
- package/dist/src/components/gherkin/GherkinDocument.d.ts +0 -4
- package/dist/src/components/gherkin/GherkinDocument.d.ts.map +0 -1
- package/dist/src/components/gherkin/GherkinDocument.js +0 -11
- package/dist/src/components/gherkin/GherkinDocument.js.map +0 -1
- package/dist/src/components/gherkin/Keyword.d.ts +0 -4
- package/dist/src/components/gherkin/Keyword.d.ts.map +0 -1
- package/dist/src/components/gherkin/Keyword.js +0 -11
- package/dist/src/components/gherkin/Keyword.js.map +0 -1
- package/dist/src/components/gherkin/Parameter.d.ts +0 -4
- package/dist/src/components/gherkin/Parameter.d.ts.map +0 -1
- package/dist/src/components/gherkin/Parameter.js +0 -11
- package/dist/src/components/gherkin/Parameter.js.map +0 -1
- package/dist/src/components/gherkin/Rule.d.ts +0 -4
- package/dist/src/components/gherkin/Rule.d.ts.map +0 -1
- package/dist/src/components/gherkin/Rule.js +0 -36
- package/dist/src/components/gherkin/Rule.js.map +0 -1
- package/dist/src/components/gherkin/Scenario.d.ts +0 -4
- package/dist/src/components/gherkin/Scenario.d.ts.map +0 -1
- package/dist/src/components/gherkin/Scenario.js +0 -31
- package/dist/src/components/gherkin/Scenario.js.map +0 -1
- package/dist/src/components/gherkin/StatusIcon.d.ts +0 -4
- package/dist/src/components/gherkin/StatusIcon.d.ts.map +0 -1
- package/dist/src/components/gherkin/StatusIcon.js +0 -24
- package/dist/src/components/gherkin/StatusIcon.js.map +0 -1
- package/dist/src/components/gherkin/StepsList.d.ts +0 -5
- package/dist/src/components/gherkin/StepsList.d.ts.map +0 -1
- package/dist/src/components/gherkin/StepsList.js +0 -6
- package/dist/src/components/gherkin/StepsList.js.map +0 -1
- package/dist/src/components/gherkin/Tags.d.ts +0 -4
- package/dist/src/components/gherkin/Tags.d.ts.map +0 -1
- package/dist/src/components/gherkin/Tags.js +0 -16
- package/dist/src/components/gherkin/Tags.js.map +0 -1
- package/dist/src/components/gherkin/Title.d.ts +0 -4
- package/dist/src/components/gherkin/Title.d.ts.map +0 -1
- package/dist/src/components/gherkin/Title.js +0 -13
- package/dist/src/components/gherkin/Title.js.map +0 -1
- package/dist/src/components/gherkin/attachment/Attachment.d.ts +0 -4
- package/dist/src/components/gherkin/attachment/Attachment.d.ts.map +0 -1
- package/dist/src/components/gherkin/attachment/Attachment.js +0 -48
- package/dist/src/components/gherkin/attachment/Attachment.js.map +0 -1
- package/dist/src/components/gherkin/attachment/Image.d.ts +0 -8
- package/dist/src/components/gherkin/attachment/Image.d.ts.map +0 -1
- package/dist/src/components/gherkin/attachment/Image.js +0 -18
- package/dist/src/components/gherkin/attachment/Image.js.map +0 -1
- package/dist/src/components/gherkin/attachment/Links.d.ts +0 -8
- package/dist/src/components/gherkin/attachment/Links.d.ts.map +0 -1
- package/dist/src/components/gherkin/attachment/Links.js +0 -17
- package/dist/src/components/gherkin/attachment/Links.js.map +0 -1
- package/dist/src/components/gherkin/attachment/Log.d.ts +0 -8
- package/dist/src/components/gherkin/attachment/Log.d.ts.map +0 -1
- package/dist/src/components/gherkin/attachment/Log.js +0 -12
- package/dist/src/components/gherkin/attachment/Log.js.map +0 -1
- package/dist/src/components/gherkin/attachment/Text.d.ts +0 -9
- package/dist/src/components/gherkin/attachment/Text.d.ts.map +0 -1
- package/dist/src/components/gherkin/attachment/Text.js +0 -18
- package/dist/src/components/gherkin/attachment/Text.js.map +0 -1
- package/dist/src/components/gherkin/attachment/Unknown.d.ts +0 -4
- package/dist/src/components/gherkin/attachment/Unknown.d.ts.map +0 -1
- package/dist/src/components/gherkin/attachment/Unknown.js +0 -69
- package/dist/src/components/gherkin/attachment/Unknown.js.map +0 -1
- package/dist/src/components/gherkin/attachment/Video.d.ts +0 -6
- package/dist/src/components/gherkin/attachment/Video.d.ts.map +0 -1
- package/dist/src/components/gherkin/attachment/Video.js +0 -20
- package/dist/src/components/gherkin/attachment/Video.js.map +0 -1
- package/dist/src/components/gherkin/attachment/attachmentFilename.d.ts +0 -3
- package/dist/src/components/gherkin/attachment/attachmentFilename.d.ts.map +0 -1
- package/dist/src/components/gherkin/attachment/attachmentFilename.js +0 -12
- package/dist/src/components/gherkin/attachment/attachmentFilename.js.map +0 -1
- package/dist/src/components/gherkin/attachment/base64Decode.d.ts +0 -2
- package/dist/src/components/gherkin/attachment/base64Decode.d.ts.map +0 -1
- package/dist/src/components/gherkin/attachment/base64Decode.js +0 -5
- package/dist/src/components/gherkin/attachment/base64Decode.js.map +0 -1
- package/dist/src/components/gherkin/attachment/index.d.ts +0 -2
- package/dist/src/components/gherkin/attachment/index.d.ts.map +0 -1
- package/dist/src/components/gherkin/attachment/index.js.map +0 -1
- package/dist/src/components/gherkin/attachment/useText.d.ts.map +0 -1
- package/dist/src/components/gherkin/attachment/useText.js +0 -28
- package/dist/src/components/gherkin/attachment/useText.js.map +0 -1
- package/dist/src/components/gherkin/composeHookStepTitle.d.ts +0 -3
- package/dist/src/components/gherkin/composeHookStepTitle.d.ts.map +0 -1
- package/dist/src/components/gherkin/composeHookStepTitle.js +0 -23
- package/dist/src/components/gherkin/composeHookStepTitle.js.map +0 -1
- package/dist/src/components/gherkin/composePickleStepTitle.d.ts.map +0 -1
- package/dist/src/components/gherkin/composePickleStepTitle.js +0 -36
- package/dist/src/components/gherkin/composePickleStepTitle.js.map +0 -1
- package/dist/src/components/gherkin/index.d.ts +0 -19
- package/dist/src/components/gherkin/index.d.ts.map +0 -1
- package/dist/src/components/gherkin/index.js.map +0 -1
- package/dist/src/components/gherkin/isNumber.d.ts.map +0 -1
- package/dist/src/components/gherkin/isNumber.js +0 -7
- package/dist/src/components/gherkin/isNumber.js.map +0 -1
- package/dist/src/components/gherkin/statusName.d.ts +0 -4
- package/dist/src/components/gherkin/statusName.d.ts.map +0 -1
- package/dist/src/components/gherkin/statusName.js +0 -4
- package/dist/src/components/gherkin/statusName.js.map +0 -1
- package/dist/src/components/index.d.ts +0 -4
- package/dist/src/components/index.d.ts.map +0 -1
- package/dist/src/components/index.js.map +0 -1
- package/dist/src/components/results/TestCaseOutcome.d.ts +0 -8
- package/dist/src/components/results/TestCaseOutcome.d.ts.map +0 -1
- package/dist/src/components/results/TestCaseOutcome.js +0 -36
- package/dist/src/components/results/TestCaseOutcome.js.map +0 -1
- package/dist/src/components/results/TestRunHookOutcome.d.ts.map +0 -1
- package/dist/src/components/results/TestRunHookOutcome.js +0 -20
- package/dist/src/components/results/TestRunHookOutcome.js.map +0 -1
- package/dist/src/components/results/TestStepAttachments.d.ts +0 -8
- package/dist/src/components/results/TestStepAttachments.d.ts.map +0 -1
- package/dist/src/components/results/TestStepAttachments.js +0 -13
- package/dist/src/components/results/TestStepAttachments.js.map +0 -1
- package/dist/src/components/results/TestStepDuration.d.ts +0 -6
- package/dist/src/components/results/TestStepDuration.d.ts.map +0 -1
- package/dist/src/components/results/TestStepDuration.js +0 -17
- package/dist/src/components/results/TestStepDuration.js.map +0 -1
- package/dist/src/components/results/TestStepOutcome.d.ts.map +0 -1
- package/dist/src/components/results/TestStepOutcome.js +0 -54
- package/dist/src/components/results/TestStepOutcome.js.map +0 -1
- package/dist/src/components/results/TestStepResultDetails.d.ts +0 -4
- package/dist/src/components/results/TestStepResultDetails.d.ts.map +0 -1
- package/dist/src/components/results/TestStepResultDetails.js +0 -16
- package/dist/src/components/results/TestStepResultDetails.js.map +0 -1
- package/dist/src/components/results/index.d.ts +0 -3
- package/dist/src/components/results/index.d.ts.map +0 -1
- package/dist/src/components/results/index.js +0 -3
- package/dist/src/components/results/index.js.map +0 -1
- package/dist/src/formatExecutionDistance.d.ts.map +0 -1
- package/dist/src/formatExecutionDistance.js +0 -7
- package/dist/src/formatExecutionDistance.js.map +0 -1
- package/dist/src/formatExecutionDuration.d.ts.map +0 -1
- package/dist/src/formatExecutionDuration.js +0 -12
- package/dist/src/formatExecutionDuration.js.map +0 -1
- package/dist/src/formatPassedQuantity.d.ts.map +0 -1
- package/dist/src/formatPassedQuantity.js +0 -4
- package/dist/src/formatPassedQuantity.js.map +0 -1
- package/dist/src/formatStatusRate.d.ts.map +0 -1
- package/dist/src/formatStatusRate.js +0 -9
- package/dist/src/formatStatusRate.js.map +0 -1
- package/dist/src/hooks/helpers.d.ts.map +0 -1
- package/dist/src/hooks/helpers.js +0 -7
- package/dist/src/hooks/helpers.js.map +0 -1
- package/dist/src/hooks/index.d.ts +0 -3
- package/dist/src/hooks/index.d.ts.map +0 -1
- package/dist/src/hooks/index.js.map +0 -1
- package/dist/src/hooks/useFilteredDocuments.d.ts +0 -6
- package/dist/src/hooks/useFilteredDocuments.d.ts.map +0 -1
- package/dist/src/hooks/useFilteredDocuments.js +0 -49
- package/dist/src/hooks/useFilteredDocuments.js.map +0 -1
- package/dist/src/hooks/useMostSevereStatusByUri.d.ts.map +0 -1
- package/dist/src/hooks/useMostSevereStatusByUri.js +0 -25
- package/dist/src/hooks/useMostSevereStatusByUri.js.map +0 -1
- package/dist/src/hooks/useQueries.d.ts +0 -7
- package/dist/src/hooks/useQueries.d.ts.map +0 -1
- package/dist/src/hooks/useQueries.js +0 -9
- package/dist/src/hooks/useQueries.js.map +0 -1
- package/dist/src/hooks/useResultStatistics.d.ts.map +0 -1
- package/dist/src/hooks/useResultStatistics.js +0 -24
- package/dist/src/hooks/useResultStatistics.js.map +0 -1
- package/dist/src/hooks/useSearch.d.ts +0 -3
- package/dist/src/hooks/useSearch.d.ts.map +0 -1
- package/dist/src/hooks/useSearch.js +0 -6
- package/dist/src/hooks/useSearch.js.map +0 -1
- package/dist/src/hooks/useTestCaseStarted.d.ts +0 -3
- package/dist/src/hooks/useTestCaseStarted.d.ts.map +0 -1
- package/dist/src/hooks/useTestCaseStarted.js +0 -17
- package/dist/src/hooks/useTestCaseStarted.js.map +0 -1
- package/dist/src/hooks/useTestRunHooks.d.ts.map +0 -1
- package/dist/src/hooks/useTestRunHooks.js +0 -14
- package/dist/src/hooks/useTestRunHooks.js.map +0 -1
- package/dist/src/index.d.ts +0 -3
- package/dist/src/index.d.ts.map +0 -1
- package/dist/src/index.js.map +0 -1
- package/dist/src/isTagExpression.d.ts.map +0 -1
- package/dist/src/isTagExpression.js +0 -5
- package/dist/src/isTagExpression.js.map +0 -1
- package/dist/src/search/FeatureSearch.d.ts +0 -4
- package/dist/src/search/FeatureSearch.d.ts.map +0 -1
- package/dist/src/search/FeatureSearch.js +0 -45
- package/dist/src/search/FeatureSearch.js.map +0 -1
- package/dist/src/search/ScenarioLikeSearch.d.ts +0 -25
- package/dist/src/search/ScenarioLikeSearch.d.ts.map +0 -1
- package/dist/src/search/ScenarioLikeSearch.js +0 -41
- package/dist/src/search/ScenarioLikeSearch.js.map +0 -1
- package/dist/src/search/Search.d.ts +0 -11
- package/dist/src/search/Search.d.ts.map +0 -1
- package/dist/src/search/Search.js +0 -51
- package/dist/src/search/Search.js.map +0 -1
- package/dist/src/search/StepSearch.d.ts +0 -19
- package/dist/src/search/StepSearch.d.ts.map +0 -1
- package/dist/src/search/StepSearch.js +0 -44
- package/dist/src/search/StepSearch.js.map +0 -1
- package/dist/src/search/TagSearch.d.ts +0 -4
- package/dist/src/search/TagSearch.d.ts.map +0 -1
- package/dist/src/search/TagSearch.js +0 -57
- package/dist/src/search/TagSearch.js.map +0 -1
- package/dist/src/search/TextSearch.d.ts +0 -3
- package/dist/src/search/TextSearch.d.ts.map +0 -1
- package/dist/src/search/TextSearch.js +0 -63
- package/dist/src/search/TextSearch.js.map +0 -1
- package/dist/src/search/index.d.ts +0 -3
- package/dist/src/search/index.d.ts.map +0 -1
- package/dist/src/search/index.js +0 -3
- package/dist/src/search/index.js.map +0 -1
- package/dist/src/search/types.d.ts +0 -14
- package/dist/src/search/types.d.ts.map +0 -1
- package/dist/src/search/types.js +0 -2
- package/dist/src/search/types.js.map +0 -1
- package/dist/src/statuses.d.ts.map +0 -1
- package/dist/src/statuses.js +0 -12
- package/dist/src/statuses.js.map +0 -1
- package/dist/src/toRepositoryId.d.ts +0 -2
- package/dist/src/toRepositoryId.d.ts.map +0 -1
- package/dist/src/toRepositoryId.js +0 -11
- package/dist/src/toRepositoryId.js.map +0 -1
- package/dist/tsconfig.build.tsbuildinfo +0 -1
- /package/dist/{src/components → components}/app/CopyButton.module.scss +0 -0
- /package/dist/{src/components → components}/app/ExecutionSummary.module.scss +0 -0
- /package/dist/{src/components → components}/app/FilteredDocuments.module.scss +0 -0
- /package/dist/{src/components → components}/app/Header.module.scss +0 -0
- /package/dist/{src/components → components}/app/HealthChart.module.scss +0 -0
- /package/dist/{src/components → components}/app/NavigationButton.module.scss +0 -0
- /package/dist/{src/components → components}/app/Report.module.scss +0 -0
- /package/dist/{src/components → components}/app/SearchBar.module.scss +0 -0
- /package/dist/{src/components → components}/app/StatusesSummary.module.scss +0 -0
- /package/dist/{src/components → components}/app/TestRunHooks.module.scss +0 -0
- /package/dist/{src/components → components}/gherkin/Anchor.module.scss +0 -0
- /package/dist/{src/components → components}/gherkin/Children.module.scss +0 -0
- /package/dist/{src/components → components}/gherkin/DataTable.module.scss +0 -0
- /package/dist/{src/components → components}/gherkin/Description.module.scss +0 -0
- /package/dist/{src/components → components}/gherkin/DocString.module.scss +0 -0
- /package/dist/{src/components → components}/gherkin/Examples.module.scss +0 -0
- /package/dist/{src/components → components}/gherkin/Parameter.module.scss +0 -0
- /package/dist/{src/components → components}/gherkin/StatusIcon.module.scss +0 -0
- /package/dist/{src/components → components}/gherkin/StepsList.module.scss +0 -0
- /package/dist/{src/components → components}/gherkin/Tags.module.scss +0 -0
- /package/dist/{src/components → components}/gherkin/Title.module.scss +0 -0
- /package/dist/{src/components → components}/results/TestCaseOutcome.module.scss +0 -0
- /package/dist/{src/components → components}/results/TestRunHookOutcome.module.scss +0 -0
- /package/dist/{src/components → components}/results/TestStepAttachments.module.scss +0 -0
- /package/dist/{src/components → components}/results/TestStepDuration.module.scss +0 -0
- /package/dist/{src/styles → styles}/statuses.scss +0 -0
- /package/dist/{src/styles → styles}/tables.scss +0 -0
- /package/dist/{src/styles → styles}/theming.scss +0 -0
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Attachment } from '@cucumber/messages';
|
|
2
|
-
import { FC } from 'react';
|
|
3
|
-
import { AttachmentClasses } from '../../customise/index.js';
|
|
4
|
-
export declare const Log: FC<{
|
|
5
|
-
attachment: Attachment;
|
|
6
|
-
classes: AttachmentClasses;
|
|
7
|
-
}>;
|
|
8
|
-
//# sourceMappingURL=Log.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Log.d.ts","sourceRoot":"","sources":["../../../../../src/components/gherkin/attachment/Log.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAE/C,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAEjC,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAA;AAG5D,eAAO,MAAM,GAAG,EAAE,EAAE,CAAC;IACnB,UAAU,EAAE,UAAU,CAAA;IACtB,OAAO,EAAE,iBAAiB,CAAA;CAC3B,CAOA,CAAA"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import Convert from 'ansi-to-html';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { useText } from './useText.js';
|
|
4
|
-
export const Log = ({ attachment, classes }) => {
|
|
5
|
-
const { content } = useText(attachment);
|
|
6
|
-
return (React.createElement("pre", { className: `${classes.text} ${classes.log}` },
|
|
7
|
-
React.createElement("span", { dangerouslySetInnerHTML: { __html: prettyANSI(content) } })));
|
|
8
|
-
};
|
|
9
|
-
function prettyANSI(s) {
|
|
10
|
-
return new Convert().toHtml(s);
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=Log.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Log.js","sourceRoot":"","sources":["../../../../../src/components/gherkin/attachment/Log.tsx"],"names":[],"mappings":"AACA,OAAO,OAAO,MAAM,cAAc,CAAA;AAClC,OAAO,KAAa,MAAM,OAAO,CAAA;AAGjC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAEtC,MAAM,CAAC,MAAM,GAAG,GAGX,CAAC,EAAE,UAAU,EAAE,OAAO,EAAE,EAAE,EAAE;IAC/B,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC,CAAA;IACvC,OAAO,CACL,6BAAK,SAAS,EAAE,GAAG,OAAO,CAAC,IAAI,IAAI,OAAO,CAAC,GAAG,EAAE;QAC9C,8BAAM,uBAAuB,EAAE,EAAE,MAAM,EAAE,UAAU,CAAC,OAAO,CAAC,EAAE,GAAI,CAC9D,CACP,CAAA;AACH,CAAC,CAAA;AAED,SAAS,UAAU,CAAC,CAAS;IAC3B,OAAO,IAAI,OAAO,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,CAAA;AAChC,CAAC","sourcesContent":["import { Attachment } from '@cucumber/messages'\nimport Convert from 'ansi-to-html'\nimport React, { FC } from 'react'\n\nimport { AttachmentClasses } from '../../customise/index.js'\nimport { useText } from './useText.js'\n\nexport const Log: FC<{\n attachment: Attachment\n classes: AttachmentClasses\n}> = ({ attachment, classes }) => {\n const { content } = useText(attachment)\n return (\n <pre className={`${classes.text} ${classes.log}`}>\n <span dangerouslySetInnerHTML={{ __html: prettyANSI(content) }} />\n </pre>\n )\n}\n\nfunction prettyANSI(s: string) {\n return new Convert().toHtml(s)\n}\n"]}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Attachment } from '@cucumber/messages';
|
|
2
|
-
import { FC } from 'react';
|
|
3
|
-
import { AttachmentClasses } from '../../customise/index.js';
|
|
4
|
-
export declare const Text: FC<{
|
|
5
|
-
attachment: Attachment;
|
|
6
|
-
prettify?: (body: string) => string;
|
|
7
|
-
classes: AttachmentClasses;
|
|
8
|
-
}>;
|
|
9
|
-
//# sourceMappingURL=Text.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../../../src/components/gherkin/attachment/Text.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAC/C,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAEjC,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAA;AAM5D,eAAO,MAAM,IAAI,EAAE,EAAE,CAAC;IACpB,UAAU,EAAE,UAAU,CAAA;IACtB,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAA;IACnC,OAAO,EAAE,iBAAiB,CAAA;CAC3B,CAqBA,CAAA"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ErrorMessage } from '../ErrorMessage.js';
|
|
3
|
-
import { useText } from './useText.js';
|
|
4
|
-
const identity = (s) => s;
|
|
5
|
-
export const Text = ({ attachment, prettify = identity, classes }) => {
|
|
6
|
-
const { title, loading, content, error } = useText(attachment);
|
|
7
|
-
if (loading) {
|
|
8
|
-
return null;
|
|
9
|
-
}
|
|
10
|
-
if (error) {
|
|
11
|
-
return (React.createElement(ErrorMessage, null, "There was an error when trying to fetch the content for this attachment. Check your browser console for more information on what went wrong."));
|
|
12
|
-
}
|
|
13
|
-
return (React.createElement("details", null,
|
|
14
|
-
React.createElement("summary", null, title),
|
|
15
|
-
React.createElement("pre", { className: classes.text },
|
|
16
|
-
React.createElement("span", null, prettify(content)))));
|
|
17
|
-
};
|
|
18
|
-
//# sourceMappingURL=Text.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Text.js","sourceRoot":"","sources":["../../../../../src/components/gherkin/attachment/Text.tsx"],"names":[],"mappings":"AACA,OAAO,KAAa,MAAM,OAAO,CAAA;AAGjC,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAEtC,MAAM,QAAQ,GAAG,CAAC,CAAS,EAAE,EAAE,CAAC,CAAC,CAAA;AAEjC,MAAM,CAAC,MAAM,IAAI,GAIZ,CAAC,EAAE,UAAU,EAAE,QAAQ,GAAG,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE;IACpD,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC,CAAA;IAC9D,IAAI,OAAO,EAAE;QACX,OAAO,IAAI,CAAA;KACZ;IACD,IAAI,KAAK,EAAE;QACT,OAAO,CACL,oBAAC,YAAY,uJAGE,CAChB,CAAA;KACF;IACD,OAAO,CACL;QACE,qCAAU,KAAK,CAAW;QAC1B,6BAAK,SAAS,EAAE,OAAO,CAAC,IAAI;YAC1B,kCAAO,QAAQ,CAAC,OAAO,CAAC,CAAQ,CAC5B,CACE,CACX,CAAA;AACH,CAAC,CAAA","sourcesContent":["import { Attachment } from '@cucumber/messages'\nimport React, { FC } from 'react'\n\nimport { AttachmentClasses } from '../../customise/index.js'\nimport { ErrorMessage } from '../ErrorMessage.js'\nimport { useText } from './useText.js'\n\nconst identity = (s: string) => s\n\nexport const Text: FC<{\n attachment: Attachment\n prettify?: (body: string) => string\n classes: AttachmentClasses\n}> = ({ attachment, prettify = identity, classes }) => {\n const { title, loading, content, error } = useText(attachment)\n if (loading) {\n return null\n }\n if (error) {\n return (\n <ErrorMessage>\n There was an error when trying to fetch the content for this attachment. Check your browser\n console for more information on what went wrong.\n </ErrorMessage>\n )\n }\n return (\n <details>\n <summary>{title}</summary>\n <pre className={classes.text}>\n <span>{prettify(content)}</span>\n </pre>\n </details>\n )\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Unknown.d.ts","sourceRoot":"","sources":["../../../../../src/components/gherkin/attachment/Unknown.tsx"],"names":[],"mappings":"AAIA,OAAc,EAAE,EAAE,EAAoC,MAAM,OAAO,CAAA;AAGnE,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAA;AAI1D,eAAO,MAAM,OAAO,EAAE,EAAE,CAAC,eAAe,CAKvC,CAAA"}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { AttachmentContentEncoding } from '@cucumber/messages';
|
|
2
|
-
import { faPaperclip } from '@fortawesome/free-solid-svg-icons';
|
|
3
|
-
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|
4
|
-
import React, { useCallback, useEffect, useState } from 'react';
|
|
5
|
-
import { NavigationButton } from '../../app/NavigationButton.js';
|
|
6
|
-
import { attachmentFilename } from './attachmentFilename.js';
|
|
7
|
-
import { base64Decode } from './base64Decode.js';
|
|
8
|
-
export const Unknown = ({ attachment }) => {
|
|
9
|
-
if (attachment.url) {
|
|
10
|
-
return React.createElement(UnknownExternalised, { attachment: attachment });
|
|
11
|
-
}
|
|
12
|
-
return React.createElement(UnknownEmbedded, { attachment: attachment });
|
|
13
|
-
};
|
|
14
|
-
const UnknownExternalised = ({ attachment }) => {
|
|
15
|
-
const filename = attachmentFilename(attachment);
|
|
16
|
-
const onClick = () => {
|
|
17
|
-
const anchor = document.createElement('a');
|
|
18
|
-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
19
|
-
anchor.href = attachment.url;
|
|
20
|
-
anchor.download = filename;
|
|
21
|
-
anchor.click();
|
|
22
|
-
};
|
|
23
|
-
return (React.createElement(NavigationButton, { onClick: onClick },
|
|
24
|
-
React.createElement(FontAwesomeIcon, { icon: faPaperclip }),
|
|
25
|
-
"Download ",
|
|
26
|
-
filename));
|
|
27
|
-
};
|
|
28
|
-
const UnknownEmbedded = ({ attachment }) => {
|
|
29
|
-
const [downloadUrl, setDownloadUrl] = useState();
|
|
30
|
-
useEffect(() => () => cleanupDownloadUrl(downloadUrl), [downloadUrl]);
|
|
31
|
-
const filename = attachmentFilename(attachment);
|
|
32
|
-
const onClick = useCallback(() => {
|
|
33
|
-
let href;
|
|
34
|
-
if (downloadUrl) {
|
|
35
|
-
href = downloadUrl;
|
|
36
|
-
}
|
|
37
|
-
else {
|
|
38
|
-
const createdUrl = createDownloadUrl(attachment);
|
|
39
|
-
setDownloadUrl(createdUrl);
|
|
40
|
-
href = createdUrl;
|
|
41
|
-
}
|
|
42
|
-
const anchor = document.createElement('a');
|
|
43
|
-
anchor.href = href;
|
|
44
|
-
anchor.download = filename;
|
|
45
|
-
anchor.click();
|
|
46
|
-
}, [attachment, filename, downloadUrl]);
|
|
47
|
-
return (React.createElement(NavigationButton, { onClick: onClick },
|
|
48
|
-
React.createElement(FontAwesomeIcon, { icon: faPaperclip }),
|
|
49
|
-
"Download ",
|
|
50
|
-
filename));
|
|
51
|
-
};
|
|
52
|
-
function createDownloadUrl(attachment) {
|
|
53
|
-
console.debug('Creating download url');
|
|
54
|
-
const body = attachment.contentEncoding === AttachmentContentEncoding.BASE64
|
|
55
|
-
? base64Decode(attachment.body)
|
|
56
|
-
: attachment.body;
|
|
57
|
-
const bytes = Uint8Array.from(body, (m) => m.codePointAt(0));
|
|
58
|
-
const file = new File([bytes], 'attachment', {
|
|
59
|
-
type: attachment.mediaType,
|
|
60
|
-
});
|
|
61
|
-
return URL.createObjectURL(file);
|
|
62
|
-
}
|
|
63
|
-
function cleanupDownloadUrl(url) {
|
|
64
|
-
if (url) {
|
|
65
|
-
console.debug('Revoking download url');
|
|
66
|
-
URL.revokeObjectURL(url);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
//# sourceMappingURL=Unknown.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Unknown.js","sourceRoot":"","sources":["../../../../../src/components/gherkin/attachment/Unknown.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAA;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAA;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAA;AAChE,OAAO,KAAK,EAAE,EAAM,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAEnE,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAA;AAEhE,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAEhD,MAAM,CAAC,MAAM,OAAO,GAAwB,CAAC,EAAE,UAAU,EAAE,EAAE,EAAE;IAC7D,IAAI,UAAU,CAAC,GAAG,EAAE;QAClB,OAAO,oBAAC,mBAAmB,IAAC,UAAU,EAAE,UAAU,GAAI,CAAA;KACvD;IACD,OAAO,oBAAC,eAAe,IAAC,UAAU,EAAE,UAAU,GAAI,CAAA;AACpD,CAAC,CAAA;AAED,MAAM,mBAAmB,GAAwB,CAAC,EAAE,UAAU,EAAE,EAAE,EAAE;IAClE,MAAM,QAAQ,GAAG,kBAAkB,CAAC,UAAU,CAAC,CAAA;IAC/C,MAAM,OAAO,GAAG,GAAG,EAAE;QACnB,MAAM,MAAM,GAAG,QAAQ,CAAC,aAAa,CAAC,GAAG,CAAC,CAAA;QAC1C,oEAAoE;QACpE,MAAM,CAAC,IAAI,GAAG,UAAU,CAAC,GAAI,CAAA;QAC7B,MAAM,CAAC,QAAQ,GAAG,QAAQ,CAAA;QAC1B,MAAM,CAAC,KAAK,EAAE,CAAA;IAChB,CAAC,CAAA;IACD,OAAO,CACL,oBAAC,gBAAgB,IAAC,OAAO,EAAE,OAAO;QAChC,oBAAC,eAAe,IAAC,IAAI,EAAE,WAAW,GAAI;;QAC5B,QAAQ,CACD,CACpB,CAAA;AACH,CAAC,CAAA;AAED,MAAM,eAAe,GAAwB,CAAC,EAAE,UAAU,EAAE,EAAE,EAAE;IAC9D,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,EAAU,CAAA;IACxD,SAAS,CAAC,GAAG,EAAE,CAAC,GAAG,EAAE,CAAC,kBAAkB,CAAC,WAAW,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC,CAAA;IACrE,MAAM,QAAQ,GAAG,kBAAkB,CAAC,UAAU,CAAC,CAAA;IAC/C,MAAM,OAAO,GAAG,WAAW,CAAC,GAAG,EAAE;QAC/B,IAAI,IAAI,CAAA;QACR,IAAI,WAAW,EAAE;YACf,IAAI,GAAG,WAAW,CAAA;SACnB;aAAM;YACL,MAAM,UAAU,GAAG,iBAAiB,CAAC,UAAU,CAAC,CAAA;YAChD,cAAc,CAAC,UAAU,CAAC,CAAA;YAC1B,IAAI,GAAG,UAAU,CAAA;SAClB;QAED,MAAM,MAAM,GAAG,QAAQ,CAAC,aAAa,CAAC,GAAG,CAAC,CAAA;QAC1C,MAAM,CAAC,IAAI,GAAG,IAAI,CAAA;QAClB,MAAM,CAAC,QAAQ,GAAG,QAAQ,CAAA;QAC1B,MAAM,CAAC,KAAK,EAAE,CAAA;IAChB,CAAC,EAAE,CAAC,UAAU,EAAE,QAAQ,EAAE,WAAW,CAAC,CAAC,CAAA;IACvC,OAAO,CACL,oBAAC,gBAAgB,IAAC,OAAO,EAAE,OAAO;QAChC,oBAAC,eAAe,IAAC,IAAI,EAAE,WAAW,GAAI;;QAC5B,QAAQ,CACD,CACpB,CAAA;AACH,CAAC,CAAA;AAED,SAAS,iBAAiB,CAAC,UAA+B;IACxD,OAAO,CAAC,KAAK,CAAC,uBAAuB,CAAC,CAAA;IACtC,MAAM,IAAI,GACR,UAAU,CAAC,eAAe,KAAK,yBAAyB,CAAC,MAAM;QAC7D,CAAC,CAAC,YAAY,CAAC,UAAU,CAAC,IAAI,CAAC;QAC/B,CAAC,CAAC,UAAU,CAAC,IAAI,CAAA;IACrB,MAAM,KAAK,GAAG,UAAU,CAAC,IAAI,CAAS,IAAI,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAW,CAAC,CAAA;IAC9E,MAAM,IAAI,GAAG,IAAI,IAAI,CAAC,CAAC,KAAK,CAAC,EAAE,YAAY,EAAE;QAC3C,IAAI,EAAE,UAAU,CAAC,SAAS;KAC3B,CAAC,CAAA;IACF,OAAO,GAAG,CAAC,eAAe,CAAC,IAAI,CAAC,CAAA;AAClC,CAAC;AAED,SAAS,kBAAkB,CAAC,GAAY;IACtC,IAAI,GAAG,EAAE;QACP,OAAO,CAAC,KAAK,CAAC,uBAAuB,CAAC,CAAA;QACtC,GAAG,CAAC,eAAe,CAAC,GAAG,CAAC,CAAA;KACzB;AACH,CAAC","sourcesContent":["import * as messages from '@cucumber/messages'\nimport { AttachmentContentEncoding } from '@cucumber/messages'\nimport { faPaperclip } from '@fortawesome/free-solid-svg-icons'\nimport { FontAwesomeIcon } from '@fortawesome/react-fontawesome'\nimport React, { FC, useCallback, useEffect, useState } from 'react'\n\nimport { NavigationButton } from '../../app/NavigationButton.js'\nimport { AttachmentProps } from '../../customise/index.js'\nimport { attachmentFilename } from './attachmentFilename.js'\nimport { base64Decode } from './base64Decode.js'\n\nexport const Unknown: FC<AttachmentProps> = ({ attachment }) => {\n if (attachment.url) {\n return <UnknownExternalised attachment={attachment} />\n }\n return <UnknownEmbedded attachment={attachment} />\n}\n\nconst UnknownExternalised: FC<AttachmentProps> = ({ attachment }) => {\n const filename = attachmentFilename(attachment)\n const onClick = () => {\n const anchor = document.createElement('a')\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n anchor.href = attachment.url!\n anchor.download = filename\n anchor.click()\n }\n return (\n <NavigationButton onClick={onClick}>\n <FontAwesomeIcon icon={faPaperclip} />\n Download {filename}\n </NavigationButton>\n )\n}\n\nconst UnknownEmbedded: FC<AttachmentProps> = ({ attachment }) => {\n const [downloadUrl, setDownloadUrl] = useState<string>()\n useEffect(() => () => cleanupDownloadUrl(downloadUrl), [downloadUrl])\n const filename = attachmentFilename(attachment)\n const onClick = useCallback(() => {\n let href\n if (downloadUrl) {\n href = downloadUrl\n } else {\n const createdUrl = createDownloadUrl(attachment)\n setDownloadUrl(createdUrl)\n href = createdUrl\n }\n\n const anchor = document.createElement('a')\n anchor.href = href\n anchor.download = filename\n anchor.click()\n }, [attachment, filename, downloadUrl])\n return (\n <NavigationButton onClick={onClick}>\n <FontAwesomeIcon icon={faPaperclip} />\n Download {filename}\n </NavigationButton>\n )\n}\n\nfunction createDownloadUrl(attachment: messages.Attachment) {\n console.debug('Creating download url')\n const body =\n attachment.contentEncoding === AttachmentContentEncoding.BASE64\n ? base64Decode(attachment.body)\n : attachment.body\n const bytes = Uint8Array.from<string>(body, (m) => m.codePointAt(0) as number)\n const file = new File([bytes], 'attachment', {\n type: attachment.mediaType,\n })\n return URL.createObjectURL(file)\n}\n\nfunction cleanupDownloadUrl(url?: string) {\n if (url) {\n console.debug('Revoking download url')\n URL.revokeObjectURL(url)\n }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Video.d.ts","sourceRoot":"","sources":["../../../../../src/components/gherkin/attachment/Video.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,oBAAoB,CAAA;AAC9C,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAIjC,eAAO,MAAM,KAAK,EAAE,EAAE,CAAC;IAAE,UAAU,EAAE,QAAQ,CAAC,UAAU,CAAA;CAAE,CAezD,CAAA"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ErrorMessage } from '../ErrorMessage.js';
|
|
3
|
-
export const Video = ({ attachment }) => {
|
|
4
|
-
const title = attachment.fileName ?? 'Attached Video (' + attachment.mediaType + ')';
|
|
5
|
-
if (attachment.url) {
|
|
6
|
-
return React.createElement(VideoInternal, { src: attachment.url, title: title });
|
|
7
|
-
}
|
|
8
|
-
if (attachment.contentEncoding === 'BASE64') {
|
|
9
|
-
return (React.createElement(VideoInternal, { src: `data:${attachment.mediaType};base64,${attachment.body}`, title: title }));
|
|
10
|
-
}
|
|
11
|
-
return (React.createElement(ErrorMessage, { message: `Couldn't display ${attachment.mediaType} video because it wasn't base64 encoded or externalised` }));
|
|
12
|
-
};
|
|
13
|
-
const VideoInternal = ({ src, title }) => {
|
|
14
|
-
return (React.createElement("details", null,
|
|
15
|
-
React.createElement("summary", null, title),
|
|
16
|
-
React.createElement("video", { controls: true },
|
|
17
|
-
React.createElement("source", { src: src }),
|
|
18
|
-
"Your browser is unable to display video")));
|
|
19
|
-
};
|
|
20
|
-
//# sourceMappingURL=Video.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Video.js","sourceRoot":"","sources":["../../../../../src/components/gherkin/attachment/Video.tsx"],"names":[],"mappings":"AACA,OAAO,KAAa,MAAM,OAAO,CAAA;AAEjC,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAEjD,MAAM,CAAC,MAAM,KAAK,GAA4C,CAAC,EAAE,UAAU,EAAE,EAAE,EAAE;IAC/E,MAAM,KAAK,GAAG,UAAU,CAAC,QAAQ,IAAI,kBAAkB,GAAG,UAAU,CAAC,SAAS,GAAG,GAAG,CAAA;IACpF,IAAI,UAAU,CAAC,GAAG,EAAE;QAClB,OAAO,oBAAC,aAAa,IAAC,GAAG,EAAE,UAAU,CAAC,GAAG,EAAE,KAAK,EAAE,KAAK,GAAI,CAAA;KAC5D;IACD,IAAI,UAAU,CAAC,eAAe,KAAK,QAAQ,EAAE;QAC3C,OAAO,CACL,oBAAC,aAAa,IAAC,GAAG,EAAE,QAAQ,UAAU,CAAC,SAAS,WAAW,UAAU,CAAC,IAAI,EAAE,EAAE,KAAK,EAAE,KAAK,GAAI,CAC/F,CAAA;KACF;IACD,OAAO,CACL,oBAAC,YAAY,IACX,OAAO,EAAE,oBAAoB,UAAU,CAAC,SAAS,yDAAyD,GAC1G,CACH,CAAA;AACH,CAAC,CAAA;AAED,MAAM,aAAa,GAAuC,CAAC,EAAE,GAAG,EAAE,KAAK,EAAE,EAAE,EAAE;IAC3E,OAAO,CACL;QACE,qCAAU,KAAK,CAAW;QAC1B,+BAAO,QAAQ;YACb,gCAAQ,GAAG,EAAE,GAAG,GAAI;sDAEd,CACA,CACX,CAAA;AACH,CAAC,CAAA","sourcesContent":["import * as messages from '@cucumber/messages'\nimport React, { FC } from 'react'\n\nimport { ErrorMessage } from '../ErrorMessage.js'\n\nexport const Video: FC<{ attachment: messages.Attachment }> = ({ attachment }) => {\n const title = attachment.fileName ?? 'Attached Video (' + attachment.mediaType + ')'\n if (attachment.url) {\n return <VideoInternal src={attachment.url} title={title} />\n }\n if (attachment.contentEncoding === 'BASE64') {\n return (\n <VideoInternal src={`data:${attachment.mediaType};base64,${attachment.body}`} title={title} />\n )\n }\n return (\n <ErrorMessage\n message={`Couldn't display ${attachment.mediaType} video because it wasn't base64 encoded or externalised`}\n />\n )\n}\n\nconst VideoInternal: FC<{ src: string; title: string }> = ({ src, title }) => {\n return (\n <details>\n <summary>{title}</summary>\n <video controls>\n <source src={src} />\n Your browser is unable to display video\n </video>\n </details>\n )\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"attachmentFilename.d.ts","sourceRoot":"","sources":["../../../../../src/components/gherkin/attachment/attachmentFilename.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAG/C,wBAAgB,kBAAkB,CAAC,UAAU,EAAE,UAAU,GAAG,MAAM,CASjE"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import mimeTypes from 'mime';
|
|
2
|
-
export function attachmentFilename(attachment) {
|
|
3
|
-
if (attachment.fileName) {
|
|
4
|
-
return attachment.fileName;
|
|
5
|
-
}
|
|
6
|
-
const extension = mimeTypes.getExtension(attachment.mediaType);
|
|
7
|
-
if (extension) {
|
|
8
|
-
return `attachment.${extension}`;
|
|
9
|
-
}
|
|
10
|
-
return 'attachment';
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=attachmentFilename.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"attachmentFilename.js","sourceRoot":"","sources":["../../../../../src/components/gherkin/attachment/attachmentFilename.ts"],"names":[],"mappings":"AACA,OAAO,SAAS,MAAM,MAAM,CAAA;AAE5B,MAAM,UAAU,kBAAkB,CAAC,UAAsB;IACvD,IAAI,UAAU,CAAC,QAAQ,EAAE;QACvB,OAAO,UAAU,CAAC,QAAQ,CAAA;KAC3B;IACD,MAAM,SAAS,GAAG,SAAS,CAAC,YAAY,CAAC,UAAU,CAAC,SAAS,CAAC,CAAA;IAC9D,IAAI,SAAS,EAAE;QACb,OAAO,cAAc,SAAS,EAAE,CAAA;KACjC;IACD,OAAO,YAAY,CAAA;AACrB,CAAC","sourcesContent":["import { Attachment } from '@cucumber/messages'\nimport mimeTypes from 'mime'\n\nexport function attachmentFilename(attachment: Attachment): string {\n if (attachment.fileName) {\n return attachment.fileName\n }\n const extension = mimeTypes.getExtension(attachment.mediaType)\n if (extension) {\n return `attachment.${extension}`\n }\n return 'attachment'\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"base64Decode.d.ts","sourceRoot":"","sources":["../../../../../src/components/gherkin/attachment/base64Decode.ts"],"names":[],"mappings":"AAAA,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,UAGxC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"base64Decode.js","sourceRoot":"","sources":["../../../../../src/components/gherkin/attachment/base64Decode.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,YAAY,CAAC,IAAY;IACvC,sBAAsB;IACtB,OAAO,IAAI,CAAC,IAAI,CAAC,CAAA;AACnB,CAAC","sourcesContent":["export function base64Decode(body: string) {\n // TODO handle unicode\n return atob(body)\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/gherkin/attachment/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/gherkin/attachment/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA","sourcesContent":["export * from './Attachment.js'\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useText.d.ts","sourceRoot":"","sources":["../../../../../src/components/gherkin/attachment/useText.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAK/C,wBAAgB,OAAO,CAAC,UAAU,EAAE,UAAU;;;;;EA0B7C"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { useEffect, useState } from 'react';
|
|
2
|
-
import { base64Decode } from './base64Decode.js';
|
|
3
|
-
export function useText(attachment) {
|
|
4
|
-
const [loading, setLoading] = useState(false);
|
|
5
|
-
const [content, setContent] = useState(attachment.contentEncoding === 'BASE64' ? base64Decode(attachment.body) : attachment.body);
|
|
6
|
-
const [error, setError] = useState();
|
|
7
|
-
useEffect(() => {
|
|
8
|
-
if (attachment.url) {
|
|
9
|
-
setLoading(true);
|
|
10
|
-
fetch(attachment.url)
|
|
11
|
-
.then((response) => {
|
|
12
|
-
if (response.status !== 200) {
|
|
13
|
-
throw new Error('HTTP error when fetching attachment content');
|
|
14
|
-
}
|
|
15
|
-
return response.text().then((text) => setContent(text));
|
|
16
|
-
})
|
|
17
|
-
.catch((e) => setError(e))
|
|
18
|
-
.finally(() => setLoading(false));
|
|
19
|
-
}
|
|
20
|
-
}, [attachment]);
|
|
21
|
-
return {
|
|
22
|
-
title: attachment.fileName ?? 'Attached Text (' + attachment.mediaType + ')',
|
|
23
|
-
loading,
|
|
24
|
-
content,
|
|
25
|
-
error,
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
//# sourceMappingURL=useText.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useText.js","sourceRoot":"","sources":["../../../../../src/components/gherkin/attachment/useText.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAE3C,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAEhD,MAAM,UAAU,OAAO,CAAC,UAAsB;IAC5C,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAA;IAC7C,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CACpC,UAAU,CAAC,eAAe,KAAK,QAAQ,CAAC,CAAC,CAAC,YAAY,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,IAAI,CAC1F,CAAA;IACD,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,EAAkB,CAAA;IACpD,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,UAAU,CAAC,GAAG,EAAE;YAClB,UAAU,CAAC,IAAI,CAAC,CAAA;YAChB,KAAK,CAAC,UAAU,CAAC,GAAG,CAAC;iBAClB,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE;gBACjB,IAAI,QAAQ,CAAC,MAAM,KAAK,GAAG,EAAE;oBAC3B,MAAM,IAAI,KAAK,CAAC,6CAA6C,CAAC,CAAA;iBAC/D;gBACD,OAAO,QAAQ,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAA;YACzD,CAAC,CAAC;iBACD,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;iBACzB,OAAO,CAAC,GAAG,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAA;SACpC;IACH,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC,CAAA;IAChB,OAAO;QACL,KAAK,EAAE,UAAU,CAAC,QAAQ,IAAI,iBAAiB,GAAG,UAAU,CAAC,SAAS,GAAG,GAAG;QAC5E,OAAO;QACP,OAAO;QACP,KAAK;KACN,CAAA;AACH,CAAC","sourcesContent":["import { Attachment } from '@cucumber/messages'\nimport { useEffect, useState } from 'react'\n\nimport { base64Decode } from './base64Decode.js'\n\nexport function useText(attachment: Attachment) {\n const [loading, setLoading] = useState(false)\n const [content, setContent] = useState(\n attachment.contentEncoding === 'BASE64' ? base64Decode(attachment.body) : attachment.body\n )\n const [error, setError] = useState<Error | string>()\n useEffect(() => {\n if (attachment.url) {\n setLoading(true)\n fetch(attachment.url)\n .then((response) => {\n if (response.status !== 200) {\n throw new Error('HTTP error when fetching attachment content')\n }\n return response.text().then((text) => setContent(text))\n })\n .catch((e) => setError(e))\n .finally(() => setLoading(false))\n }\n }, [attachment])\n return {\n title: attachment.fileName ?? 'Attached Text (' + attachment.mediaType + ')',\n loading,\n content,\n error,\n }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"composeHookStepTitle.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/composeHookStepTitle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAY,MAAM,oBAAoB,CAAA;AAWnD,wBAAgB,oBAAoB,CAAC,IAAI,CAAC,EAAE,IAAI,GAAG,MAAM,CAcxD"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { HookType } from '@cucumber/messages';
|
|
2
|
-
const labels = {
|
|
3
|
-
[HookType.BEFORE_TEST_RUN]: 'BeforeAll',
|
|
4
|
-
[HookType.BEFORE_TEST_CASE]: 'Before',
|
|
5
|
-
[HookType.BEFORE_TEST_STEP]: 'BeforeStep',
|
|
6
|
-
[HookType.AFTER_TEST_STEP]: 'AfterStep',
|
|
7
|
-
[HookType.AFTER_TEST_CASE]: 'After',
|
|
8
|
-
[HookType.AFTER_TEST_RUN]: 'AfterAll',
|
|
9
|
-
};
|
|
10
|
-
export function composeHookStepTitle(hook) {
|
|
11
|
-
let result = '';
|
|
12
|
-
if (hook?.type) {
|
|
13
|
-
result = labels[hook.type];
|
|
14
|
-
}
|
|
15
|
-
else {
|
|
16
|
-
result += 'Hook';
|
|
17
|
-
}
|
|
18
|
-
if (hook?.name) {
|
|
19
|
-
result += ': ' + hook.name;
|
|
20
|
-
}
|
|
21
|
-
return result;
|
|
22
|
-
}
|
|
23
|
-
//# sourceMappingURL=composeHookStepTitle.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"composeHookStepTitle.js","sourceRoot":"","sources":["../../../../src/components/gherkin/composeHookStepTitle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,QAAQ,EAAE,MAAM,oBAAoB,CAAA;AAEnD,MAAM,MAAM,GAA6B;IACvC,CAAC,QAAQ,CAAC,eAAe,CAAC,EAAE,WAAW;IACvC,CAAC,QAAQ,CAAC,gBAAgB,CAAC,EAAE,QAAQ;IACrC,CAAC,QAAQ,CAAC,gBAAgB,CAAC,EAAE,YAAY;IACzC,CAAC,QAAQ,CAAC,eAAe,CAAC,EAAE,WAAW;IACvC,CAAC,QAAQ,CAAC,eAAe,CAAC,EAAE,OAAO;IACnC,CAAC,QAAQ,CAAC,cAAc,CAAC,EAAE,UAAU;CACtC,CAAA;AAED,MAAM,UAAU,oBAAoB,CAAC,IAAW;IAC9C,IAAI,MAAM,GAAG,EAAE,CAAA;IAEf,IAAI,IAAI,EAAE,IAAI,EAAE;QACd,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;KAC3B;SAAM;QACL,MAAM,IAAI,MAAM,CAAA;KACjB;IAED,IAAI,IAAI,EAAE,IAAI,EAAE;QACd,MAAM,IAAI,IAAI,GAAG,IAAI,CAAC,IAAI,CAAA;KAC3B;IAED,OAAO,MAAM,CAAA;AACf,CAAC","sourcesContent":["import { Hook, HookType } from '@cucumber/messages'\n\nconst labels: Record<HookType, string> = {\n [HookType.BEFORE_TEST_RUN]: 'BeforeAll',\n [HookType.BEFORE_TEST_CASE]: 'Before',\n [HookType.BEFORE_TEST_STEP]: 'BeforeStep',\n [HookType.AFTER_TEST_STEP]: 'AfterStep',\n [HookType.AFTER_TEST_CASE]: 'After',\n [HookType.AFTER_TEST_RUN]: 'AfterAll',\n}\n\nexport function composeHookStepTitle(hook?: Hook): string {\n let result = ''\n\n if (hook?.type) {\n result = labels[hook.type]\n } else {\n result += 'Hook'\n }\n\n if (hook?.name) {\n result += ': ' + hook.name\n }\n\n return result\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"composePickleStepTitle.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/composePickleStepTitle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAA;AAE3D,UAAU,aAAa;IACrB,KAAK,EAAE,MAAM,CAAA;IACb,iBAAiB,CAAC,EAAE,MAAM,CAAA;CAC3B;AAED,wBAAgB,sBAAsB,CACpC,IAAI,EAAE,MAAM,EACZ,uBAAuB,CAAC,EAAE,aAAa,CAAC,sBAAsB,CAAC,GAC9D,aAAa,CAAC,aAAa,CAAC,CAkC9B"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
export function composePickleStepTitle(text, stepMatchArgumentsLists) {
|
|
2
|
-
if (stepMatchArgumentsLists?.length === 1) {
|
|
3
|
-
const stepMatchArguments = stepMatchArgumentsLists[0].stepMatchArguments;
|
|
4
|
-
let offset = 0;
|
|
5
|
-
let plain;
|
|
6
|
-
const fragments = [];
|
|
7
|
-
stepMatchArguments.forEach((argument) => {
|
|
8
|
-
plain = text.slice(offset, argument.group.start);
|
|
9
|
-
if (plain.length > 0) {
|
|
10
|
-
fragments.push({ value: plain });
|
|
11
|
-
}
|
|
12
|
-
const arg = argument.group.value;
|
|
13
|
-
if (arg) {
|
|
14
|
-
if (arg.length > 0) {
|
|
15
|
-
fragments.push({
|
|
16
|
-
value: arg,
|
|
17
|
-
parameterTypeName: argument.parameterTypeName || 'anonymous',
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
offset += plain.length + arg.length;
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
plain = text.slice(offset);
|
|
24
|
-
if (plain.length > 0) {
|
|
25
|
-
fragments.push({ value: plain });
|
|
26
|
-
}
|
|
27
|
-
return fragments;
|
|
28
|
-
}
|
|
29
|
-
// no argument matching, just a single text value
|
|
30
|
-
return [
|
|
31
|
-
{
|
|
32
|
-
value: text,
|
|
33
|
-
},
|
|
34
|
-
];
|
|
35
|
-
}
|
|
36
|
-
//# sourceMappingURL=composePickleStepTitle.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"composePickleStepTitle.js","sourceRoot":"","sources":["../../../../src/components/gherkin/composePickleStepTitle.ts"],"names":[],"mappings":"AAOA,MAAM,UAAU,sBAAsB,CACpC,IAAY,EACZ,uBAA+D;IAE/D,IAAI,uBAAuB,EAAE,MAAM,KAAK,CAAC,EAAE;QACzC,MAAM,kBAAkB,GAAG,uBAAuB,CAAC,CAAC,CAAC,CAAC,kBAAkB,CAAA;QACxE,IAAI,MAAM,GAAG,CAAC,CAAA;QACd,IAAI,KAAa,CAAA;QACjB,MAAM,SAAS,GAAoB,EAAE,CAAA;QACrC,kBAAkB,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,EAAE;YACtC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,CAAA;YAChD,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE;gBACpB,SAAS,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAA;aACjC;YACD,MAAM,GAAG,GAAG,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAA;YAChC,IAAI,GAAG,EAAE;gBACP,IAAI,GAAG,CAAC,MAAM,GAAG,CAAC,EAAE;oBAClB,SAAS,CAAC,IAAI,CAAC;wBACb,KAAK,EAAE,GAAG;wBACV,iBAAiB,EAAE,QAAQ,CAAC,iBAAiB,IAAI,WAAW;qBAC7D,CAAC,CAAA;iBACH;gBACD,MAAM,IAAI,KAAK,CAAC,MAAM,GAAG,GAAG,CAAC,MAAM,CAAA;aACpC;QACH,CAAC,CAAC,CAAA;QACF,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;QAC1B,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE;YACpB,SAAS,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAA;SACjC;QACD,OAAO,SAAS,CAAA;KACjB;IACD,iDAAiD;IACjD,OAAO;QACL;YACE,KAAK,EAAE,IAAI;SACZ;KACF,CAAA;AACH,CAAC","sourcesContent":["import { StepMatchArgumentsList } from '@cucumber/messages'\n\ninterface TitleFragment {\n value: string\n parameterTypeName?: string\n}\n\nexport function composePickleStepTitle(\n text: string,\n stepMatchArgumentsLists?: ReadonlyArray<StepMatchArgumentsList>\n): ReadonlyArray<TitleFragment> {\n if (stepMatchArgumentsLists?.length === 1) {\n const stepMatchArguments = stepMatchArgumentsLists[0].stepMatchArguments\n let offset = 0\n let plain: string\n const fragments: TitleFragment[] = []\n stepMatchArguments.forEach((argument) => {\n plain = text.slice(offset, argument.group.start)\n if (plain.length > 0) {\n fragments.push({ value: plain })\n }\n const arg = argument.group.value\n if (arg) {\n if (arg.length > 0) {\n fragments.push({\n value: arg,\n parameterTypeName: argument.parameterTypeName || 'anonymous',\n })\n }\n offset += plain.length + arg.length\n }\n })\n plain = text.slice(offset)\n if (plain.length > 0) {\n fragments.push({ value: plain })\n }\n return fragments\n }\n // no argument matching, just a single text value\n return [\n {\n value: text,\n },\n ]\n}\n"]}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export * from './Anchor.js';
|
|
2
|
-
export * from './attachment/Attachment.js';
|
|
3
|
-
export * from './Background.js';
|
|
4
|
-
export * from './Children.js';
|
|
5
|
-
export * from './DataTable.js';
|
|
6
|
-
export * from './Description.js';
|
|
7
|
-
export * from './DocString.js';
|
|
8
|
-
export * from './ErrorMessage.js';
|
|
9
|
-
export * from './Examples.js';
|
|
10
|
-
export * from './Feature.js';
|
|
11
|
-
export * from './GherkinDocument.js';
|
|
12
|
-
export * from './Keyword.js';
|
|
13
|
-
export * from './Parameter.js';
|
|
14
|
-
export * from './Rule.js';
|
|
15
|
-
export * from './Scenario.js';
|
|
16
|
-
export * from './StatusIcon.js';
|
|
17
|
-
export * from './Tags.js';
|
|
18
|
-
export * from './Title.js';
|
|
19
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,4BAA4B,CAAA;AAC1C,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA;AAC7B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,kBAAkB,CAAA;AAChC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,mBAAmB,CAAA;AACjC,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA;AAC5B,cAAc,sBAAsB,CAAA;AACpC,cAAc,cAAc,CAAA;AAC5B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,WAAW,CAAA;AACzB,cAAc,eAAe,CAAA;AAC7B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,WAAW,CAAA;AACzB,cAAc,YAAY,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/gherkin/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,4BAA4B,CAAA;AAC1C,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA;AAC7B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,kBAAkB,CAAA;AAChC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,mBAAmB,CAAA;AACjC,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA;AAC5B,cAAc,sBAAsB,CAAA;AACpC,cAAc,cAAc,CAAA;AAC5B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,WAAW,CAAA;AACzB,cAAc,eAAe,CAAA;AAC7B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,WAAW,CAAA;AACzB,cAAc,YAAY,CAAA","sourcesContent":["export * from './Anchor.js'\nexport * from './attachment/Attachment.js'\nexport * from './Background.js'\nexport * from './Children.js'\nexport * from './DataTable.js'\nexport * from './Description.js'\nexport * from './DocString.js'\nexport * from './ErrorMessage.js'\nexport * from './Examples.js'\nexport * from './Feature.js'\nexport * from './GherkinDocument.js'\nexport * from './Keyword.js'\nexport * from './Parameter.js'\nexport * from './Rule.js'\nexport * from './Scenario.js'\nexport * from './StatusIcon.js'\nexport * from './Tags.js'\nexport * from './Title.js'\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"isNumber.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/isNumber.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAEnD"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
// Lifted from cucumber-expressions/javascript/src/ParameterTypeRegistry#FLOAT_REGEXP
|
|
2
|
-
// Modified to allow spaces, commas and periods as decimal- and/or as thousand-separators
|
|
3
|
-
const numberPattern = /^(?=.*\d.*)[-+]?\d*(?:[., ](?=\d.*)\d*)*(?:\d+E[+-]?\d+)?$/;
|
|
4
|
-
export default function isNumber(s) {
|
|
5
|
-
return !!s.match(numberPattern);
|
|
6
|
-
}
|
|
7
|
-
//# sourceMappingURL=isNumber.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"isNumber.js","sourceRoot":"","sources":["../../../../src/components/gherkin/isNumber.ts"],"names":[],"mappings":"AAAA,qFAAqF;AACrF,yFAAyF;AACzF,MAAM,aAAa,GAAG,4DAA4D,CAAA;AAElF,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,CAAS;IACxC,OAAO,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAA;AACjC,CAAC","sourcesContent":["// Lifted from cucumber-expressions/javascript/src/ParameterTypeRegistry#FLOAT_REGEXP\n// Modified to allow spaces, commas and periods as decimal- and/or as thousand-separators\nconst numberPattern = /^(?=.*\\d.*)[-+]?\\d*(?:[., ](?=\\d.*)\\d*)*(?:\\d+E[+-]?\\d+)?$/\n\nexport default function isNumber(s: string): boolean {\n return !!s.match(numberPattern)\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"statusName.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/statusName.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,oBAAoB,CAAA;iCAEtB,SAAS,oBAAoB,KAAG,MAAM;AAA9D,wBAEC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"statusName.js","sourceRoot":"","sources":["../../../../src/components/gherkin/statusName.ts"],"names":[],"mappings":"AAEA,eAAe,CAAC,MAAqC,EAAU,EAAE;IAC/D,OAAO,MAAM,CAAC,WAAW,EAAE,CAAA;AAC7B,CAAC,CAAA","sourcesContent":["import * as messages from '@cucumber/messages'\n\nexport default (status: messages.TestStepResultStatus): string => {\n return status.toLowerCase()\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA;AAC9B,cAAc,sBAAsB,CAAA;AACpC,cAAc,oBAAoB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA;AAC9B,cAAc,sBAAsB,CAAA;AACpC,cAAc,oBAAoB,CAAA","sourcesContent":["export * from './app/index.js'\nexport * from './customise/index.js'\nexport * from './gherkin/index.js'\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TestCaseOutcome.d.ts","sourceRoot":"","sources":["../../../../src/components/results/TestCaseOutcome.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EAIhB,MAAM,oBAAoB,CAAA;AAG3B,OAAc,EAAE,EAAE,EAAY,MAAM,OAAO,CAAA;AAM3C,UAAU,KAAK;IACb,eAAe,EAAE,eAAe,CAAA;CACjC;AAED,eAAO,MAAM,eAAe,EAAE,EAAE,CAAC,KAAK,CA2BrC,CAAA"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { TestStepResultStatus, } from '@cucumber/messages';
|
|
2
|
-
import { faCirclePlus } from '@fortawesome/free-solid-svg-icons';
|
|
3
|
-
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|
4
|
-
import React, { useState } from 'react';
|
|
5
|
-
import { useQueries } from '../../hooks/index.js';
|
|
6
|
-
import styles from './TestCaseOutcome.module.scss';
|
|
7
|
-
import { TestStepOutcome } from './TestStepOutcome.js';
|
|
8
|
-
export const TestCaseOutcome = ({ testCaseStarted }) => {
|
|
9
|
-
const [showAllSteps, setShowAllSteps] = useState(false);
|
|
10
|
-
const { cucumberQuery } = useQueries();
|
|
11
|
-
const allSteps = cucumberQuery.findTestStepFinishedAndTestStepBy(testCaseStarted);
|
|
12
|
-
const filteredSteps = showAllSteps ? allSteps : filterSteps(allSteps);
|
|
13
|
-
const hiddenSteps = allSteps.length - filteredSteps.length;
|
|
14
|
-
return (React.createElement("article", { className: styles.container },
|
|
15
|
-
React.createElement("ol", { className: styles.steps }, filteredSteps.map(([testStepFinished, testStep]) => {
|
|
16
|
-
return (React.createElement(TestStepOutcome, { key: testStep.id, testStep: testStep, testStepFinished: testStepFinished }));
|
|
17
|
-
})),
|
|
18
|
-
hiddenSteps > 0 && (React.createElement("button", { className: styles.expandButton, onClick: () => setShowAllSteps(true) },
|
|
19
|
-
React.createElement(FontAwesomeIcon, { "aria-hidden": "true", icon: faCirclePlus }),
|
|
20
|
-
hiddenSteps,
|
|
21
|
-
" hooks"))));
|
|
22
|
-
};
|
|
23
|
-
function filterSteps(allSteps) {
|
|
24
|
-
const statuses = allSteps.map(([testStepFinished]) => testStepFinished.testStepResult.status);
|
|
25
|
-
return allSteps.filter(([testStepFinished, testStep], index) => {
|
|
26
|
-
if (!testStep.hookId) {
|
|
27
|
-
return true;
|
|
28
|
-
}
|
|
29
|
-
if (testStepFinished.testStepResult.status === TestStepResultStatus.SKIPPED) {
|
|
30
|
-
const previousStatus = statuses[index - 1] ?? TestStepResultStatus.PASSED;
|
|
31
|
-
return previousStatus === TestStepResultStatus.PASSED;
|
|
32
|
-
}
|
|
33
|
-
return testStepFinished.testStepResult.status !== TestStepResultStatus.PASSED;
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
//# sourceMappingURL=TestCaseOutcome.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TestCaseOutcome.js","sourceRoot":"","sources":["../../../../src/components/results/TestCaseOutcome.tsx"],"names":[],"mappings":"AAAA,OAAO,EAIL,oBAAoB,GACrB,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAA;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAA;AAChE,OAAO,KAAK,EAAE,EAAM,QAAQ,EAAE,MAAM,OAAO,CAAA;AAE3C,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACjD,OAAO,MAAM,MAAM,+BAA+B,CAAA;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAMtD,MAAM,CAAC,MAAM,eAAe,GAAc,CAAC,EAAE,eAAe,EAAE,EAAE,EAAE;IAChE,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAA;IACvD,MAAM,EAAE,aAAa,EAAE,GAAG,UAAU,EAAE,CAAA;IACtC,MAAM,QAAQ,GAAG,aAAa,CAAC,iCAAiC,CAAC,eAAe,CAAC,CAAA;IACjF,MAAM,aAAa,GAAG,YAAY,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAA;IACrE,MAAM,WAAW,GAAG,QAAQ,CAAC,MAAM,GAAG,aAAa,CAAC,MAAM,CAAA;IAC1D,OAAO,CACL,iCAAS,SAAS,EAAE,MAAM,CAAC,SAAS;QAClC,4BAAI,SAAS,EAAE,MAAM,CAAC,KAAK,IACxB,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC,gBAAgB,EAAE,QAAQ,CAAC,EAAE,EAAE;YAClD,OAAO,CACL,oBAAC,eAAe,IACd,GAAG,EAAE,QAAQ,CAAC,EAAE,EAChB,QAAQ,EAAE,QAAQ,EAClB,gBAAgB,EAAE,gBAAgB,GAClC,CACH,CAAA;QACH,CAAC,CAAC,CACC;QACJ,WAAW,GAAG,CAAC,IAAI,CAClB,gCAAQ,SAAS,EAAE,MAAM,CAAC,YAAY,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC;YAC1E,oBAAC,eAAe,mBAAa,MAAM,EAAC,IAAI,EAAE,YAAY,GAAI;YACzD,WAAW;qBACL,CACV,CACO,CACX,CAAA;AACH,CAAC,CAAA;AAED,SAAS,WAAW,CAAC,QAAqD;IACxE,MAAM,QAAQ,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,gBAAgB,CAAC,EAAE,EAAE,CAAC,gBAAgB,CAAC,cAAc,CAAC,MAAM,CAAC,CAAA;IAC7F,OAAO,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,gBAAgB,EAAE,QAAQ,CAAC,EAAE,KAAK,EAAE,EAAE;QAC7D,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE;YACpB,OAAO,IAAI,CAAA;SACZ;QACD,IAAI,gBAAgB,CAAC,cAAc,CAAC,MAAM,KAAK,oBAAoB,CAAC,OAAO,EAAE;YAC3E,MAAM,cAAc,GAAG,QAAQ,CAAC,KAAK,GAAG,CAAC,CAAC,IAAI,oBAAoB,CAAC,MAAM,CAAA;YACzE,OAAO,cAAc,KAAK,oBAAoB,CAAC,MAAM,CAAA;SACtD;QACD,OAAO,gBAAgB,CAAC,cAAc,CAAC,MAAM,KAAK,oBAAoB,CAAC,MAAM,CAAA;IAC/E,CAAC,CAAC,CAAA;AACJ,CAAC","sourcesContent":["import {\n TestCaseStarted,\n TestStep,\n TestStepFinished,\n TestStepResultStatus,\n} from '@cucumber/messages'\nimport { faCirclePlus } from '@fortawesome/free-solid-svg-icons'\nimport { FontAwesomeIcon } from '@fortawesome/react-fontawesome'\nimport React, { FC, useState } from 'react'\n\nimport { useQueries } from '../../hooks/index.js'\nimport styles from './TestCaseOutcome.module.scss'\nimport { TestStepOutcome } from './TestStepOutcome.js'\n\ninterface Props {\n testCaseStarted: TestCaseStarted\n}\n\nexport const TestCaseOutcome: FC<Props> = ({ testCaseStarted }) => {\n const [showAllSteps, setShowAllSteps] = useState(false)\n const { cucumberQuery } = useQueries()\n const allSteps = cucumberQuery.findTestStepFinishedAndTestStepBy(testCaseStarted)\n const filteredSteps = showAllSteps ? allSteps : filterSteps(allSteps)\n const hiddenSteps = allSteps.length - filteredSteps.length\n return (\n <article className={styles.container}>\n <ol className={styles.steps}>\n {filteredSteps.map(([testStepFinished, testStep]) => {\n return (\n <TestStepOutcome\n key={testStep.id}\n testStep={testStep}\n testStepFinished={testStepFinished}\n />\n )\n })}\n </ol>\n {hiddenSteps > 0 && (\n <button className={styles.expandButton} onClick={() => setShowAllSteps(true)}>\n <FontAwesomeIcon aria-hidden=\"true\" icon={faCirclePlus} />\n {hiddenSteps} hooks\n </button>\n )}\n </article>\n )\n}\n\nfunction filterSteps(allSteps: ReadonlyArray<[TestStepFinished, TestStep]>) {\n const statuses = allSteps.map(([testStepFinished]) => testStepFinished.testStepResult.status)\n return allSteps.filter(([testStepFinished, testStep], index) => {\n if (!testStep.hookId) {\n return true\n }\n if (testStepFinished.testStepResult.status === TestStepResultStatus.SKIPPED) {\n const previousStatus = statuses[index - 1] ?? TestStepResultStatus.PASSED\n return previousStatus === TestStepResultStatus.PASSED\n }\n return testStepFinished.testStepResult.status !== TestStepResultStatus.PASSED\n })\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TestRunHookOutcome.d.ts","sourceRoot":"","sources":["../../../../src/components/results/TestRunHookOutcome.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAY,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AACxE,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAQjC,UAAU,KAAK;IACb,IAAI,EAAE,IAAI,CAAA;IACV,mBAAmB,EAAE,mBAAmB,CAAA;CACzC;AAED,eAAO,MAAM,kBAAkB,EAAE,EAAE,CAAC,KAAK,CAoBxC,CAAA"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { HookType } from '@cucumber/messages';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { StatusIcon } from '../gherkin/index.js';
|
|
4
|
-
import styles from './TestRunHookOutcome.module.scss';
|
|
5
|
-
import { TestStepAttachments } from './TestStepAttachments.js';
|
|
6
|
-
import { TestStepDuration } from './TestStepDuration.js';
|
|
7
|
-
import { TestStepResultDetails } from './TestStepResultDetails.js';
|
|
8
|
-
export const TestRunHookOutcome = ({ hook, testRunHookFinished }) => {
|
|
9
|
-
return (React.createElement("li", { "data-status": testRunHookFinished.result.status },
|
|
10
|
-
React.createElement("div", { className: styles.header },
|
|
11
|
-
React.createElement("div", { className: styles.status },
|
|
12
|
-
React.createElement(StatusIcon, { status: testRunHookFinished.result.status })),
|
|
13
|
-
React.createElement("div", { className: styles.title },
|
|
14
|
-
React.createElement("h3", { className: styles.name }, hook.name ?? (hook.type === HookType.BEFORE_TEST_RUN ? 'BeforeAll' : 'AfterAll')),
|
|
15
|
-
React.createElement(TestStepDuration, { duration: testRunHookFinished.result.duration }))),
|
|
16
|
-
React.createElement("div", { className: styles.content },
|
|
17
|
-
React.createElement(TestStepResultDetails, { ...testRunHookFinished.result }),
|
|
18
|
-
React.createElement(TestStepAttachments, { testStepOrHookFinished: testRunHookFinished }))));
|
|
19
|
-
};
|
|
20
|
-
//# sourceMappingURL=TestRunHookOutcome.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TestRunHookOutcome.js","sourceRoot":"","sources":["../../../../src/components/results/TestRunHookOutcome.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,QAAQ,EAAuB,MAAM,oBAAoB,CAAA;AACxE,OAAO,KAAa,MAAM,OAAO,CAAA;AAEjC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAChD,OAAO,MAAM,MAAM,kCAAkC,CAAA;AACrD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAA;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAA;AAOlE,MAAM,CAAC,MAAM,kBAAkB,GAAc,CAAC,EAAE,IAAI,EAAE,mBAAmB,EAAE,EAAE,EAAE;IAC7E,OAAO,CACL,2CAAiB,mBAAmB,CAAC,MAAM,CAAC,MAAM;QAChD,6BAAK,SAAS,EAAE,MAAM,CAAC,MAAM;YAC3B,6BAAK,SAAS,EAAE,MAAM,CAAC,MAAM;gBAC3B,oBAAC,UAAU,IAAC,MAAM,EAAE,mBAAmB,CAAC,MAAM,CAAC,MAAM,GAAI,CACrD;YACN,6BAAK,SAAS,EAAE,MAAM,CAAC,KAAK;gBAC1B,4BAAI,SAAS,EAAE,MAAM,CAAC,IAAI,IACvB,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,KAAK,QAAQ,CAAC,eAAe,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,UAAU,CAAC,CAC9E;gBACL,oBAAC,gBAAgB,IAAC,QAAQ,EAAE,mBAAmB,CAAC,MAAM,CAAC,QAAQ,GAAI,CAC/D,CACF;QACN,6BAAK,SAAS,EAAE,MAAM,CAAC,OAAO;YAC5B,oBAAC,qBAAqB,OAAK,mBAAmB,CAAC,MAAM,GAAI;YACzD,oBAAC,mBAAmB,IAAC,sBAAsB,EAAE,mBAAmB,GAAI,CAChE,CACH,CACN,CAAA;AACH,CAAC,CAAA","sourcesContent":["import { Hook, HookType, TestRunHookFinished } from '@cucumber/messages'\nimport React, { FC } from 'react'\n\nimport { StatusIcon } from '../gherkin/index.js'\nimport styles from './TestRunHookOutcome.module.scss'\nimport { TestStepAttachments } from './TestStepAttachments.js'\nimport { TestStepDuration } from './TestStepDuration.js'\nimport { TestStepResultDetails } from './TestStepResultDetails.js'\n\ninterface Props {\n hook: Hook\n testRunHookFinished: TestRunHookFinished\n}\n\nexport const TestRunHookOutcome: FC<Props> = ({ hook, testRunHookFinished }) => {\n return (\n <li data-status={testRunHookFinished.result.status}>\n <div className={styles.header}>\n <div className={styles.status}>\n <StatusIcon status={testRunHookFinished.result.status} />\n </div>\n <div className={styles.title}>\n <h3 className={styles.name}>\n {hook.name ?? (hook.type === HookType.BEFORE_TEST_RUN ? 'BeforeAll' : 'AfterAll')}\n </h3>\n <TestStepDuration duration={testRunHookFinished.result.duration} />\n </div>\n </div>\n <div className={styles.content}>\n <TestStepResultDetails {...testRunHookFinished.result} />\n <TestStepAttachments testStepOrHookFinished={testRunHookFinished} />\n </div>\n </li>\n )\n}\n"]}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { TestRunHookFinished, TestStepFinished } from '@cucumber/messages';
|
|
2
|
-
import { FC } from 'react';
|
|
3
|
-
interface Props {
|
|
4
|
-
testStepOrHookFinished: TestStepFinished | TestRunHookFinished;
|
|
5
|
-
}
|
|
6
|
-
export declare const TestStepAttachments: FC<Props>;
|
|
7
|
-
export {};
|
|
8
|
-
//# sourceMappingURL=TestStepAttachments.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TestStepAttachments.d.ts","sourceRoot":"","sources":["../../../../src/components/results/TestStepAttachments.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAE1E,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAM1B,UAAU,KAAK;IACb,sBAAsB,EAAE,gBAAgB,GAAG,mBAAmB,CAAA;CAC/D;AAED,eAAO,MAAM,mBAAmB,EAAE,EAAE,CAAC,KAAK,CAczC,CAAA"}
|