@cucumber/react-components 24.1.2 → 24.3.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/dist/src/CucumberQueryContext.d.ts +1 -2
- package/dist/src/CucumberQueryContext.d.ts.map +1 -1
- package/dist/src/CucumberQueryContext.js +2 -2
- package/dist/src/CucumberQueryContext.js.map +1 -1
- package/dist/src/GherkinQueryContext.d.ts +1 -2
- package/dist/src/GherkinQueryContext.d.ts.map +1 -1
- package/dist/src/GherkinQueryContext.js +2 -2
- package/dist/src/GherkinQueryContext.js.map +1 -1
- package/dist/src/SearchContext.d.ts +11 -5
- package/dist/src/SearchContext.d.ts.map +1 -1
- package/dist/src/SearchContext.js +4 -2
- package/dist/src/SearchContext.js.map +1 -1
- package/dist/src/ciCommitLink.d.ts +1 -1
- package/dist/src/ciCommitLink.d.ts.map +1 -1
- package/dist/src/ciCommitLink.js +1 -1
- package/dist/src/ciCommitLink.js.map +1 -1
- package/dist/src/components/app/CICommitLink.d.ts +2 -2
- package/dist/src/components/app/CICommitLink.d.ts.map +1 -1
- package/dist/src/components/app/CICommitLink.js +3 -8
- package/dist/src/components/app/CICommitLink.js.map +1 -1
- package/dist/src/components/app/CIJobLink.d.ts +2 -2
- package/dist/src/components/app/CIJobLink.d.ts.map +1 -1
- package/dist/src/components/app/CIJobLink.js +3 -7
- package/dist/src/components/app/CIJobLink.js.map +1 -1
- package/dist/src/components/app/ControlledSearchProvider.d.ts +2 -2
- package/dist/src/components/app/ControlledSearchProvider.d.ts.map +1 -1
- package/dist/src/components/app/ControlledSearchProvider.js +24 -2
- package/dist/src/components/app/ControlledSearchProvider.js.map +1 -1
- package/dist/src/components/app/CopyButton.d.ts +2 -1
- package/dist/src/components/app/CopyButton.d.ts.map +1 -1
- package/dist/src/components/app/CopyButton.js +4 -4
- package/dist/src/components/app/CopyButton.js.map +1 -1
- package/dist/src/components/app/DocumentAccordion.d.ts +3 -3
- package/dist/src/components/app/DocumentAccordion.d.ts.map +1 -1
- package/dist/src/components/app/DocumentAccordion.js +12 -20
- package/dist/src/components/app/DocumentAccordion.js.map +1 -1
- package/dist/src/components/app/DocumentAccordion.module.scss +15 -7
- package/dist/src/components/app/EnvelopesProvider.d.ts +2 -2
- package/dist/src/components/app/EnvelopesProvider.d.ts.map +1 -1
- package/dist/src/components/app/EnvelopesProvider.js +3 -2
- package/dist/src/components/app/EnvelopesProvider.js.map +1 -1
- package/dist/src/components/app/ExecutionSummary.d.ts +1 -1
- package/dist/src/components/app/ExecutionSummary.d.ts.map +1 -1
- package/dist/src/components/app/ExecutionSummary.js +3 -49
- package/dist/src/components/app/ExecutionSummary.js.map +1 -1
- package/dist/src/components/app/FilteredDocuments.d.ts +1 -1
- package/dist/src/components/app/FilteredDocuments.d.ts.map +1 -1
- package/dist/src/components/app/FilteredDocuments.js +4 -4
- package/dist/src/components/app/FilteredDocuments.js.map +1 -1
- package/dist/src/components/app/GherkinDocumentList.d.ts +3 -3
- package/dist/src/components/app/GherkinDocumentList.d.ts.map +1 -1
- package/dist/src/components/app/GherkinDocumentList.js +8 -9
- package/dist/src/components/app/GherkinDocumentList.js.map +1 -1
- package/dist/src/components/app/Header.d.ts +1 -1
- package/dist/src/components/app/Header.d.ts.map +1 -1
- package/dist/src/components/app/Header.js +4 -4
- package/dist/src/components/app/Header.js.map +1 -1
- package/dist/src/components/app/HealthChart.d.ts +1 -1
- package/dist/src/components/app/HealthChart.d.ts.map +1 -1
- package/dist/src/components/app/HealthChart.js +6 -7
- package/dist/src/components/app/HealthChart.js.map +1 -1
- package/dist/src/components/app/HighLight.d.ts +2 -2
- package/dist/src/components/app/HighLight.d.ts.map +1 -1
- package/dist/src/components/app/HighLight.js +15 -9
- package/dist/src/components/app/HighLight.js.map +1 -1
- package/dist/src/components/app/ImplementationIcon.d.ts +2 -2
- package/dist/src/components/app/ImplementationIcon.d.ts.map +1 -1
- package/dist/src/components/app/ImplementationIcon.js +2 -2
- package/dist/src/components/app/ImplementationIcon.js.map +1 -1
- package/dist/src/components/app/InMemorySearchProvider.d.ts +2 -2
- package/dist/src/components/app/InMemorySearchProvider.d.ts.map +1 -1
- package/dist/src/components/app/InMemorySearchProvider.js +3 -2
- package/dist/src/components/app/InMemorySearchProvider.js.map +1 -1
- package/dist/src/components/app/NavigationButton.d.ts +1 -1
- package/dist/src/components/app/NavigationButton.d.ts.map +1 -1
- package/dist/src/components/app/NavigationButton.js +2 -2
- package/dist/src/components/app/NavigationButton.js.map +1 -1
- package/dist/src/components/app/OSIcon.d.ts +2 -2
- package/dist/src/components/app/OSIcon.d.ts.map +1 -1
- package/dist/src/components/app/OSIcon.js +4 -4
- package/dist/src/components/app/OSIcon.js.map +1 -1
- package/dist/src/components/app/QueriesProvider.d.ts +3 -3
- package/dist/src/components/app/QueriesProvider.d.ts.map +1 -1
- package/dist/src/components/app/QueriesProvider.js +4 -3
- package/dist/src/components/app/QueriesProvider.js.map +1 -1
- package/dist/src/components/app/Report.d.ts +1 -1
- package/dist/src/components/app/Report.d.ts.map +1 -1
- package/dist/src/components/app/Report.js +2 -11
- package/dist/src/components/app/Report.js.map +1 -1
- package/dist/src/components/app/RuntimeIcon.d.ts +2 -2
- package/dist/src/components/app/RuntimeIcon.d.ts.map +1 -1
- package/dist/src/components/app/RuntimeIcon.js +4 -4
- package/dist/src/components/app/RuntimeIcon.js.map +1 -1
- package/dist/src/components/app/SearchBar.d.ts +1 -1
- package/dist/src/components/app/SearchBar.d.ts.map +1 -1
- package/dist/src/components/app/SearchBar.js +9 -24
- package/dist/src/components/app/SearchBar.js.map +1 -1
- package/dist/src/components/app/StatusesSummary.d.ts +1 -1
- package/dist/src/components/app/StatusesSummary.d.ts.map +1 -1
- package/dist/src/components/app/StatusesSummary.js +8 -11
- package/dist/src/components/app/StatusesSummary.js.map +1 -1
- package/dist/src/components/app/TestRunHooks.d.ts +1 -1
- package/dist/src/components/app/TestRunHooks.d.ts.map +1 -1
- package/dist/src/components/app/TestRunHooks.js +5 -5
- package/dist/src/components/app/TestRunHooks.js.map +1 -1
- package/dist/src/components/app/UrlSearchProvider.d.ts +1 -1
- package/dist/src/components/app/UrlSearchProvider.d.ts.map +1 -1
- package/dist/src/components/app/UrlSearchProvider.js +6 -3
- package/dist/src/components/app/UrlSearchProvider.js.map +1 -1
- package/dist/src/components/app/icons/CucumberLogo.d.ts +1 -1
- package/dist/src/components/app/icons/CucumberLogo.d.ts.map +1 -1
- package/dist/src/components/app/icons/CucumberLogo.js +2 -6
- package/dist/src/components/app/icons/CucumberLogo.js.map +1 -1
- package/dist/src/components/app/icons/Jvm.d.ts +1 -1
- package/dist/src/components/app/icons/Jvm.d.ts.map +1 -1
- package/dist/src/components/app/icons/Jvm.js +2 -7
- package/dist/src/components/app/icons/Jvm.js.map +1 -1
- package/dist/src/components/app/icons/Linux.d.ts +1 -1
- package/dist/src/components/app/icons/Linux.d.ts.map +1 -1
- package/dist/src/components/app/icons/Linux.js +2 -17
- package/dist/src/components/app/icons/Linux.js.map +1 -1
- package/dist/src/components/app/icons/MacOS.d.ts +1 -1
- package/dist/src/components/app/icons/MacOS.d.ts.map +1 -1
- package/dist/src/components/app/icons/MacOS.js +2 -3
- package/dist/src/components/app/icons/MacOS.js.map +1 -1
- package/dist/src/components/app/icons/NodeJs.d.ts +1 -1
- package/dist/src/components/app/icons/NodeJs.d.ts.map +1 -1
- package/dist/src/components/app/icons/NodeJs.js +2 -5
- package/dist/src/components/app/icons/NodeJs.js.map +1 -1
- package/dist/src/components/app/icons/Ruby.d.ts +1 -1
- package/dist/src/components/app/icons/Ruby.d.ts.map +1 -1
- package/dist/src/components/app/icons/Ruby.js +2 -3
- package/dist/src/components/app/icons/Ruby.js.map +1 -1
- package/dist/src/components/app/icons/Windows.d.ts +1 -1
- package/dist/src/components/app/icons/Windows.d.ts.map +1 -1
- package/dist/src/components/app/icons/Windows.js +2 -3
- package/dist/src/components/app/icons/Windows.js.map +1 -1
- package/dist/src/components/app/makeSetupString.d.ts +1 -1
- package/dist/src/components/app/makeSetupString.d.ts.map +1 -1
- package/dist/src/components/app/makeSetupString.js.map +1 -1
- package/dist/src/components/app/markdownComponents.d.ts +9 -0
- package/dist/src/components/app/markdownComponents.d.ts.map +1 -0
- package/dist/src/components/app/markdownComponents.js +6 -0
- package/dist/src/components/app/markdownComponents.js.map +1 -0
- package/dist/src/components/app/rehypePlugins.d.ts +2 -2
- package/dist/src/components/app/rehypePlugins.d.ts.map +1 -1
- package/dist/src/components/app/rehypePlugins.js.map +1 -1
- package/dist/src/components/app/remarkPlugins.d.ts +2 -2
- package/dist/src/components/app/remarkPlugins.d.ts.map +1 -1
- package/dist/src/components/app/remarkPlugins.js.map +1 -1
- package/dist/src/components/customise/CustomRendering.d.ts +18 -18
- package/dist/src/components/customise/CustomRendering.d.ts.map +1 -1
- package/dist/src/components/customise/CustomRendering.js +10 -9
- package/dist/src/components/customise/CustomRendering.js.map +1 -1
- package/dist/src/components/customise/CustomRendering.stories.scss +0 -17
- package/dist/src/components/gherkin/Anchor.d.ts +3 -3
- package/dist/src/components/gherkin/Anchor.d.ts.map +1 -1
- package/dist/src/components/gherkin/Anchor.js +3 -6
- package/dist/src/components/gherkin/Anchor.js.map +1 -1
- package/dist/src/components/gherkin/Background.d.ts +3 -3
- package/dist/src/components/gherkin/Background.d.ts.map +1 -1
- package/dist/src/components/gherkin/Background.js +4 -10
- package/dist/src/components/gherkin/Background.js.map +1 -1
- package/dist/src/components/gherkin/Children.d.ts +3 -3
- package/dist/src/components/gherkin/Children.d.ts.map +1 -1
- package/dist/src/components/gherkin/Children.js +3 -3
- package/dist/src/components/gherkin/Children.js.map +1 -1
- package/dist/src/components/gherkin/DataTable.d.ts +3 -3
- package/dist/src/components/gherkin/DataTable.d.ts.map +1 -1
- package/dist/src/components/gherkin/DataTable.js +4 -6
- package/dist/src/components/gherkin/DataTable.js.map +1 -1
- package/dist/src/components/gherkin/Description.d.ts +3 -3
- package/dist/src/components/gherkin/Description.d.ts.map +1 -1
- package/dist/src/components/gherkin/Description.js +3 -4
- package/dist/src/components/gherkin/Description.js.map +1 -1
- package/dist/src/components/gherkin/DocString.d.ts +3 -3
- package/dist/src/components/gherkin/DocString.d.ts.map +1 -1
- package/dist/src/components/gherkin/DocString.js +3 -4
- package/dist/src/components/gherkin/DocString.js.map +1 -1
- package/dist/src/components/gherkin/ErrorMessage.d.ts +2 -2
- package/dist/src/components/gherkin/ErrorMessage.d.ts.map +1 -1
- package/dist/src/components/gherkin/ErrorMessage.js +5 -3
- package/dist/src/components/gherkin/ErrorMessage.js.map +1 -1
- package/dist/src/components/gherkin/ErrorMessage.module.scss +17 -5
- package/dist/src/components/gherkin/Examples.d.ts +3 -3
- package/dist/src/components/gherkin/Examples.d.ts.map +1 -1
- package/dist/src/components/gherkin/Examples.js +7 -18
- package/dist/src/components/gherkin/Examples.js.map +1 -1
- package/dist/src/components/gherkin/Feature.d.ts +3 -3
- package/dist/src/components/gherkin/Feature.d.ts.map +1 -1
- package/dist/src/components/gherkin/Feature.js +14 -24
- package/dist/src/components/gherkin/Feature.js.map +1 -1
- package/dist/src/components/gherkin/GherkinDocument.d.ts +3 -3
- package/dist/src/components/gherkin/GherkinDocument.d.ts.map +1 -1
- package/dist/src/components/gherkin/GherkinDocument.js +3 -3
- package/dist/src/components/gherkin/GherkinDocument.js.map +1 -1
- package/dist/src/components/gherkin/Keyword.d.ts +2 -2
- package/dist/src/components/gherkin/Keyword.d.ts.map +1 -1
- package/dist/src/components/gherkin/Keyword.js +3 -3
- package/dist/src/components/gherkin/Keyword.js.map +1 -1
- package/dist/src/components/gherkin/Keyword.module.scss +0 -1
- package/dist/src/components/gherkin/Parameter.d.ts +3 -3
- package/dist/src/components/gherkin/Parameter.d.ts.map +1 -1
- package/dist/src/components/gherkin/Parameter.js +4 -4
- package/dist/src/components/gherkin/Parameter.js.map +1 -1
- package/dist/src/components/gherkin/Rule.d.ts +3 -3
- package/dist/src/components/gherkin/Rule.d.ts.map +1 -1
- package/dist/src/components/gherkin/Rule.js +11 -21
- package/dist/src/components/gherkin/Rule.js.map +1 -1
- package/dist/src/components/gherkin/Scenario.d.ts +3 -3
- package/dist/src/components/gherkin/Scenario.d.ts.map +1 -1
- package/dist/src/components/gherkin/Scenario.js +5 -14
- package/dist/src/components/gherkin/Scenario.js.map +1 -1
- package/dist/src/components/gherkin/StatusIcon.d.ts +2 -2
- package/dist/src/components/gherkin/StatusIcon.d.ts.map +1 -1
- package/dist/src/components/gherkin/StatusIcon.js +10 -10
- package/dist/src/components/gherkin/StatusIcon.js.map +1 -1
- package/dist/src/components/gherkin/StepsList.d.ts +1 -1
- package/dist/src/components/gherkin/StepsList.d.ts.map +1 -1
- package/dist/src/components/gherkin/StepsList.js +2 -2
- package/dist/src/components/gherkin/StepsList.js.map +1 -1
- package/dist/src/components/gherkin/Tags.d.ts +3 -3
- package/dist/src/components/gherkin/Tags.d.ts.map +1 -1
- package/dist/src/components/gherkin/Tags.js +4 -5
- package/dist/src/components/gherkin/Tags.js.map +1 -1
- package/dist/src/components/gherkin/Title.d.ts +3 -3
- package/dist/src/components/gherkin/Title.d.ts.map +1 -1
- package/dist/src/components/gherkin/Title.js +3 -4
- package/dist/src/components/gherkin/Title.js.map +1 -1
- package/dist/src/components/gherkin/attachment/Attachment.d.ts +3 -3
- package/dist/src/components/gherkin/attachment/Attachment.d.ts.map +1 -1
- package/dist/src/components/gherkin/attachment/Attachment.js +14 -17
- package/dist/src/components/gherkin/attachment/Attachment.js.map +1 -1
- package/dist/src/components/gherkin/attachment/Attachment.module.scss +15 -5
- package/dist/src/components/gherkin/attachment/Image.d.ts +4 -4
- package/dist/src/components/gherkin/attachment/Image.d.ts.map +1 -1
- package/dist/src/components/gherkin/attachment/Image.js +6 -8
- package/dist/src/components/gherkin/attachment/Image.js.map +1 -1
- package/dist/src/components/gherkin/attachment/Links.d.ts +3 -3
- package/dist/src/components/gherkin/attachment/Links.d.ts.map +1 -1
- package/dist/src/components/gherkin/attachment/Links.js +7 -10
- package/dist/src/components/gherkin/attachment/Links.js.map +1 -1
- package/dist/src/components/gherkin/attachment/Log.d.ts +3 -3
- package/dist/src/components/gherkin/attachment/Log.d.ts.map +1 -1
- package/dist/src/components/gherkin/attachment/Log.js +3 -3
- package/dist/src/components/gherkin/attachment/Log.js.map +1 -1
- package/dist/src/components/gherkin/attachment/Text.d.ts +3 -3
- package/dist/src/components/gherkin/attachment/Text.d.ts.map +1 -1
- package/dist/src/components/gherkin/attachment/Text.js +4 -6
- package/dist/src/components/gherkin/attachment/Text.js.map +1 -1
- package/dist/src/components/gherkin/attachment/Unknown.d.ts +2 -2
- package/dist/src/components/gherkin/attachment/Unknown.d.ts.map +1 -1
- package/dist/src/components/gherkin/attachment/Unknown.js +9 -17
- package/dist/src/components/gherkin/attachment/Unknown.js.map +1 -1
- package/dist/src/components/gherkin/attachment/Video.d.ts +3 -3
- package/dist/src/components/gherkin/attachment/Video.d.ts.map +1 -1
- package/dist/src/components/gherkin/attachment/Video.js +6 -10
- package/dist/src/components/gherkin/attachment/Video.js.map +1 -1
- package/dist/src/components/gherkin/attachment/attachmentFilename.d.ts +1 -1
- package/dist/src/components/gherkin/attachment/attachmentFilename.d.ts.map +1 -1
- package/dist/src/components/gherkin/attachment/attachmentFilename.js.map +1 -1
- package/dist/src/components/gherkin/attachment/base64Decode.d.ts +9 -1
- package/dist/src/components/gherkin/attachment/base64Decode.d.ts.map +1 -1
- package/dist/src/components/gherkin/attachment/base64Decode.js +17 -3
- package/dist/src/components/gherkin/attachment/base64Decode.js.map +1 -1
- package/dist/src/components/gherkin/attachment/useText.d.ts +1 -1
- package/dist/src/components/gherkin/attachment/useText.d.ts.map +1 -1
- package/dist/src/components/gherkin/attachment/useText.js +3 -3
- package/dist/src/components/gherkin/attachment/useText.js.map +1 -1
- package/dist/src/components/gherkin/composeHookStepTitle.d.ts +1 -1
- package/dist/src/components/gherkin/composeHookStepTitle.d.ts.map +1 -1
- package/dist/src/components/gherkin/composeHookStepTitle.js +1 -1
- package/dist/src/components/gherkin/composeHookStepTitle.js.map +1 -1
- package/dist/src/components/gherkin/composePickleStepTitle.d.ts +1 -1
- package/dist/src/components/gherkin/composePickleStepTitle.d.ts.map +1 -1
- package/dist/src/components/gherkin/composePickleStepTitle.js +2 -2
- package/dist/src/components/gherkin/composePickleStepTitle.js.map +1 -1
- package/dist/src/components/gherkin/statusName.d.ts +2 -2
- package/dist/src/components/gherkin/statusName.d.ts.map +1 -1
- package/dist/src/components/gherkin/statusName.js.map +1 -1
- package/dist/src/components/results/AmbiguousResult.d.ts +8 -0
- package/dist/src/components/results/AmbiguousResult.d.ts.map +1 -0
- package/dist/src/components/results/AmbiguousResult.js +11 -0
- package/dist/src/components/results/AmbiguousResult.js.map +1 -0
- package/dist/src/components/results/AmbiguousResult.module.scss +22 -0
- package/dist/src/components/results/FailedResult.d.ts +8 -0
- package/dist/src/components/results/FailedResult.d.ts.map +1 -0
- package/dist/src/components/results/FailedResult.js +15 -0
- package/dist/src/components/results/FailedResult.js.map +1 -0
- package/dist/src/components/results/PendingResult.d.ts +8 -0
- package/dist/src/components/results/PendingResult.d.ts.map +1 -0
- package/dist/src/components/results/PendingResult.js +12 -0
- package/dist/src/components/results/PendingResult.js.map +1 -0
- package/dist/src/components/results/ResultNote.d.ts +3 -0
- package/dist/src/components/results/ResultNote.d.ts.map +1 -0
- package/dist/src/components/results/ResultNote.js +6 -0
- package/dist/src/components/results/ResultNote.js.map +1 -0
- package/dist/src/components/results/ResultNote.module.scss +6 -0
- package/dist/src/components/results/SkippedResult.d.ts +8 -0
- package/dist/src/components/results/SkippedResult.d.ts.map +1 -0
- package/dist/src/components/results/SkippedResult.js +12 -0
- package/dist/src/components/results/SkippedResult.js.map +1 -0
- package/dist/src/components/results/SourceReference.d.ts +8 -0
- package/dist/src/components/results/SourceReference.d.ts.map +1 -0
- package/dist/src/components/results/SourceReference.js +13 -0
- package/dist/src/components/results/SourceReference.js.map +1 -0
- package/dist/src/components/results/SourceReference.module.scss +10 -0
- package/dist/src/components/results/TestCaseOutcome.d.ts +2 -2
- package/dist/src/components/results/TestCaseOutcome.d.ts.map +1 -1
- package/dist/src/components/results/TestCaseOutcome.js +5 -9
- package/dist/src/components/results/TestCaseOutcome.js.map +1 -1
- package/dist/src/components/results/TestRunHookOutcome.d.ts +2 -2
- package/dist/src/components/results/TestRunHookOutcome.d.ts.map +1 -1
- package/dist/src/components/results/TestRunHookOutcome.js +4 -13
- package/dist/src/components/results/TestRunHookOutcome.js.map +1 -1
- package/dist/src/components/results/TestStepAttachments.d.ts +2 -2
- package/dist/src/components/results/TestStepAttachments.d.ts.map +1 -1
- package/dist/src/components/results/TestStepAttachments.js +4 -5
- package/dist/src/components/results/TestStepAttachments.js.map +1 -1
- package/dist/src/components/results/TestStepDuration.d.ts +2 -2
- package/dist/src/components/results/TestStepDuration.d.ts.map +1 -1
- package/dist/src/components/results/TestStepDuration.js +4 -2
- package/dist/src/components/results/TestStepDuration.js.map +1 -1
- package/dist/src/components/results/TestStepOutcome.d.ts +2 -2
- package/dist/src/components/results/TestStepOutcome.d.ts.map +1 -1
- package/dist/src/components/results/TestStepOutcome.js +18 -27
- package/dist/src/components/results/TestStepOutcome.js.map +1 -1
- package/dist/src/components/results/TestStepOutcome.module.scss +1 -1
- package/dist/src/components/results/UndefinedResult.d.ts +8 -0
- package/dist/src/components/results/UndefinedResult.d.ts.map +1 -0
- package/dist/src/components/results/UndefinedResult.js +18 -0
- package/dist/src/components/results/UndefinedResult.js.map +1 -0
- package/dist/src/components/results/UndefinedResult.module.scss +14 -0
- package/dist/src/components/results/index.d.ts +1 -1
- package/dist/src/components/results/index.d.ts.map +1 -1
- package/dist/src/components/results/index.js +1 -1
- package/dist/src/components/results/index.js.map +1 -1
- package/dist/src/formatExecutionDuration.js.map +1 -1
- package/dist/src/hooks/helpers.js.map +1 -1
- package/dist/src/hooks/useFilteredDocuments.d.ts +2 -2
- package/dist/src/hooks/useFilteredDocuments.d.ts.map +1 -1
- package/dist/src/hooks/useFilteredDocuments.js +70 -18
- package/dist/src/hooks/useFilteredDocuments.js.map +1 -1
- package/dist/src/hooks/useMostSevereStatusByUri.js.map +1 -1
- package/dist/src/hooks/useQueries.d.ts +2 -2
- package/dist/src/hooks/useQueries.d.ts.map +1 -1
- package/dist/src/hooks/useQueries.js.map +1 -1
- package/dist/src/hooks/useResultStatistics.d.ts +3 -2
- package/dist/src/hooks/useResultStatistics.d.ts.map +1 -1
- package/dist/src/hooks/useResultStatistics.js +19 -2
- package/dist/src/hooks/useResultStatistics.js.map +1 -1
- package/dist/src/hooks/useSearch.d.ts +1 -1
- package/dist/src/hooks/useSearch.d.ts.map +1 -1
- package/dist/src/hooks/useSearch.js.map +1 -1
- package/dist/src/hooks/useTestCaseStarted.d.ts +6 -1
- package/dist/src/hooks/useTestCaseStarted.d.ts.map +1 -1
- package/dist/src/hooks/useTestCaseStarted.js +13 -10
- package/dist/src/hooks/useTestCaseStarted.js.map +1 -1
- package/dist/src/hooks/useTestRunHooks.d.ts +1 -1
- package/dist/src/hooks/useTestRunHooks.d.ts.map +1 -1
- package/dist/src/hooks/useTestRunHooks.js.map +1 -1
- package/dist/src/search/FeatureSearch.d.ts +12 -3
- package/dist/src/search/FeatureSearch.d.ts.map +1 -1
- package/dist/src/search/FeatureSearch.js +9 -17
- package/dist/src/search/FeatureSearch.js.map +1 -1
- package/dist/src/search/ScenarioLikeSearch.d.ts +8 -13
- package/dist/src/search/ScenarioLikeSearch.d.ts.map +1 -1
- package/dist/src/search/ScenarioLikeSearch.js +13 -17
- package/dist/src/search/ScenarioLikeSearch.js.map +1 -1
- package/dist/src/search/StepSearch.d.ts +9 -16
- package/dist/src/search/StepSearch.d.ts.map +1 -1
- package/dist/src/search/StepSearch.js +13 -17
- package/dist/src/search/StepSearch.js.map +1 -1
- package/dist/src/search/TextSearch.d.ts +11 -2
- package/dist/src/search/TextSearch.d.ts.map +1 -1
- package/dist/src/search/TextSearch.js +59 -52
- package/dist/src/search/TextSearch.js.map +1 -1
- package/dist/src/search/createSearchIndex.d.ts +7 -0
- package/dist/src/search/createSearchIndex.d.ts.map +1 -0
- package/dist/src/search/createSearchIndex.js +10 -0
- package/dist/src/search/createSearchIndex.js.map +1 -0
- package/dist/src/search/deriveLineageConstraints.d.ts +8 -0
- package/dist/src/search/deriveLineageConstraints.d.ts.map +1 -0
- package/dist/src/search/deriveLineageConstraints.js +38 -0
- package/dist/src/search/deriveLineageConstraints.js.map +1 -0
- package/dist/src/search/index.d.ts +3 -1
- package/dist/src/search/index.d.ts.map +1 -1
- package/dist/src/search/index.js +3 -1
- package/dist/src/search/index.js.map +1 -1
- package/dist/src/search/pruneGherkinDocuments.d.ts +24 -0
- package/dist/src/search/pruneGherkinDocuments.d.ts.map +1 -0
- package/dist/src/search/pruneGherkinDocuments.js +180 -0
- package/dist/src/search/pruneGherkinDocuments.js.map +1 -0
- package/dist/src/search/types.d.ts +39 -8
- package/dist/src/search/types.d.ts.map +1 -1
- package/dist/src/search/types.js +1 -1
- package/dist/src/search/types.js.map +1 -1
- package/dist/src/styles/statuses.scss +7 -13
- package/dist/src/toRepositoryId.d.ts +1 -1
- package/dist/src/toRepositoryId.d.ts.map +1 -1
- package/dist/src/toRepositoryId.js +7 -6
- package/dist/src/toRepositoryId.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +56 -71
- 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/countScenariosByStatuses.d.ts +0 -8
- package/dist/src/countScenariosByStatuses.d.ts.map +0 -1
- package/dist/src/countScenariosByStatuses.js +0 -22
- package/dist/src/countScenariosByStatuses.js.map +0 -1
- package/dist/src/filter/filterByStatus.d.ts +0 -5
- package/dist/src/filter/filterByStatus.d.ts.map +0 -1
- package/dist/src/filter/filterByStatus.js +0 -23
- package/dist/src/filter/filterByStatus.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 -46
- package/dist/src/search/Search.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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { HighLight } from '../app/HighLight.js';
|
|
3
3
|
import { useCustomRendering } from '../customise/index.js';
|
|
4
4
|
import { Background } from './Background.js';
|
|
@@ -10,31 +10,21 @@ import { Scenario } from './Scenario.js';
|
|
|
10
10
|
import { Tags } from './Tags.js';
|
|
11
11
|
import { Title } from './Title.js';
|
|
12
12
|
const DefaultRenderer = ({ feature }) => {
|
|
13
|
-
return (
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
else if (child.scenario) {
|
|
26
|
-
return React.createElement(Scenario, { key: index, scenario: child.scenario });
|
|
27
|
-
}
|
|
28
|
-
else if (child.rule) {
|
|
29
|
-
return React.createElement(Rule, { key: index, rule: child.rule });
|
|
30
|
-
}
|
|
31
|
-
else {
|
|
32
|
-
throw new Error('Expected background, scenario or rule');
|
|
33
|
-
}
|
|
34
|
-
}))));
|
|
13
|
+
return (_jsxs("section", { children: [_jsx(Tags, { tags: feature.tags }), _jsxs(Title, { header: "h1", id: feature.name, children: [_jsxs(Keyword, { children: [feature.keyword, ":"] }), _jsx(HighLight, { text: feature.name })] }), _jsx(Description, { description: feature.description }), _jsx(Children, { children: (feature.children || []).map((child, index) => {
|
|
14
|
+
if (child.background) {
|
|
15
|
+
return _jsx(Background, { background: child.background }, index);
|
|
16
|
+
}
|
|
17
|
+
if (child.scenario) {
|
|
18
|
+
return _jsx(Scenario, { scenario: child.scenario }, index);
|
|
19
|
+
}
|
|
20
|
+
if (child.rule) {
|
|
21
|
+
return _jsx(Rule, { rule: child.rule }, index);
|
|
22
|
+
}
|
|
23
|
+
throw new Error('Expected background, scenario or rule');
|
|
24
|
+
}) })] }));
|
|
35
25
|
};
|
|
36
26
|
export const Feature = (props) => {
|
|
37
27
|
const ResolvedRenderer = useCustomRendering('Feature', {}, DefaultRenderer);
|
|
38
|
-
return
|
|
28
|
+
return _jsx(ResolvedRenderer, { ...props });
|
|
39
29
|
};
|
|
40
30
|
//# sourceMappingURL=Feature.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Feature.js","sourceRoot":"","sources":["../../../../src/components/gherkin/Feature.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Feature.js","sourceRoot":"","sources":["../../../../src/components/gherkin/Feature.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAC/C,OAAO,EAA4C,kBAAkB,EAAE,MAAM,uBAAuB,CAAA;AACpG,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AACtC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAChC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AAElC,MAAM,eAAe,GAAmC,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE;IACtE,OAAO,CACL,8BACE,KAAC,IAAI,IAAC,IAAI,EAAE,OAAO,CAAC,IAAI,GAAI,EAC5B,MAAC,KAAK,IAAC,MAAM,EAAC,IAAI,EAAC,EAAE,EAAE,OAAO,CAAC,IAAI,aACjC,MAAC,OAAO,eAAE,OAAO,CAAC,OAAO,SAAY,EACrC,KAAC,SAAS,IAAC,IAAI,EAAE,OAAO,CAAC,IAAI,GAAI,IAC3B,EACR,KAAC,WAAW,IAAC,WAAW,EAAE,OAAO,CAAC,WAAW,GAAI,EACjD,KAAC,QAAQ,cACN,CAAC,OAAO,CAAC,QAAQ,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE;oBAC7C,IAAI,KAAK,CAAC,UAAU,EAAE,CAAC;wBACrB,OAAO,KAAC,UAAU,IAAa,UAAU,EAAE,KAAK,CAAC,UAAU,IAAnC,KAAK,CAAkC,CAAA;oBACjE,CAAC;oBACD,IAAI,KAAK,CAAC,QAAQ,EAAE,CAAC;wBACnB,OAAO,KAAC,QAAQ,IAAa,QAAQ,EAAE,KAAK,CAAC,QAAQ,IAA/B,KAAK,CAA8B,CAAA;oBAC3D,CAAC;oBACD,IAAI,KAAK,CAAC,IAAI,EAAE,CAAC;wBACf,OAAO,KAAC,IAAI,IAAa,IAAI,EAAE,KAAK,CAAC,IAAI,IAAvB,KAAK,CAAsB,CAAA;oBAC/C,CAAC;oBACD,MAAM,IAAI,KAAK,CAAC,uCAAuC,CAAC,CAAA;gBAC1D,CAAC,CAAC,GACO,IACH,CACX,CAAA;AACH,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,OAAO,GAAqB,CAAC,KAAK,EAAE,EAAE;IACjD,MAAM,gBAAgB,GAAG,kBAAkB,CAAe,SAAS,EAAE,EAAE,EAAE,eAAe,CAAC,CAAA;IACzF,OAAO,KAAC,gBAAgB,OAAK,KAAK,GAAI,CAAA;AACxC,CAAC,CAAA","sourcesContent":["import type { FC } from 'react'\n\nimport { HighLight } from '../app/HighLight.js'\nimport { type DefaultComponent, type FeatureProps, useCustomRendering } from '../customise/index.js'\nimport { Background } from './Background.js'\nimport { Children } from './Children.js'\nimport { Description } from './Description.js'\nimport { Keyword } from './Keyword.js'\nimport { Rule } from './Rule.js'\nimport { Scenario } from './Scenario.js'\nimport { Tags } from './Tags.js'\nimport { Title } from './Title.js'\n\nconst DefaultRenderer: DefaultComponent<FeatureProps> = ({ feature }) => {\n return (\n <section>\n <Tags tags={feature.tags} />\n <Title header=\"h1\" id={feature.name}>\n <Keyword>{feature.keyword}:</Keyword>\n <HighLight text={feature.name} />\n </Title>\n <Description description={feature.description} />\n <Children>\n {(feature.children || []).map((child, index) => {\n if (child.background) {\n return <Background key={index} background={child.background} />\n }\n if (child.scenario) {\n return <Scenario key={index} scenario={child.scenario} />\n }\n if (child.rule) {\n return <Rule key={index} rule={child.rule} />\n }\n throw new Error('Expected background, scenario or rule')\n })}\n </Children>\n </section>\n )\n}\n\nexport const Feature: FC<FeatureProps> = (props) => {\n const ResolvedRenderer = useCustomRendering<FeatureProps>('Feature', {}, DefaultRenderer)\n return <ResolvedRenderer {...props} />\n}\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { GherkinDocumentProps } from '../customise/index.js';
|
|
3
|
-
export declare const GherkinDocument:
|
|
1
|
+
import type { FC } from 'react';
|
|
2
|
+
import { type GherkinDocumentProps } from '../customise/index.js';
|
|
3
|
+
export declare const GherkinDocument: FC<GherkinDocumentProps>;
|
|
4
4
|
//# sourceMappingURL=GherkinDocument.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GherkinDocument.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/GherkinDocument.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"GherkinDocument.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/GherkinDocument.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAE/B,OAAO,EAAE,KAAK,oBAAoB,EAAsB,MAAM,uBAAuB,CAAA;AAOrF,eAAO,MAAM,eAAe,EAAE,EAAE,CAAC,oBAAoB,CAOpD,CAAA"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useCustomRendering } from '../customise/index.js';
|
|
3
3
|
import { Feature } from './Feature.js';
|
|
4
4
|
const DefaultRenderer = ({ gherkinDocument }) => {
|
|
5
|
-
return gherkinDocument.feature ?
|
|
5
|
+
return gherkinDocument.feature ? _jsx(Feature, { feature: gherkinDocument.feature }) : null;
|
|
6
6
|
};
|
|
7
7
|
export const GherkinDocument = (props) => {
|
|
8
8
|
const ResolvedRenderer = useCustomRendering('GherkinDocument', {}, DefaultRenderer);
|
|
9
|
-
return
|
|
9
|
+
return _jsx(ResolvedRenderer, { ...props });
|
|
10
10
|
};
|
|
11
11
|
//# sourceMappingURL=GherkinDocument.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GherkinDocument.js","sourceRoot":"","sources":["../../../../src/components/gherkin/GherkinDocument.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"GherkinDocument.js","sourceRoot":"","sources":["../../../../src/components/gherkin/GherkinDocument.tsx"],"names":[],"mappings":";AAEA,OAAO,EAA6B,kBAAkB,EAAE,MAAM,uBAAuB,CAAA;AACrF,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAEtC,MAAM,eAAe,GAA6B,CAAC,EAAE,eAAe,EAAE,EAAE,EAAE;IACxE,OAAO,eAAe,CAAC,OAAO,CAAC,CAAC,CAAC,KAAC,OAAO,IAAC,OAAO,EAAE,eAAe,CAAC,OAAO,GAAI,CAAC,CAAC,CAAC,IAAI,CAAA;AACvF,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,eAAe,GAA6B,CAAC,KAAK,EAAE,EAAE;IACjE,MAAM,gBAAgB,GAAG,kBAAkB,CACzC,iBAAiB,EACjB,EAAE,EACF,eAAe,CAChB,CAAA;IACD,OAAO,KAAC,gBAAgB,OAAK,KAAK,GAAI,CAAA;AACxC,CAAC,CAAA","sourcesContent":["import type { FC } from 'react'\n\nimport { type GherkinDocumentProps, useCustomRendering } from '../customise/index.js'\nimport { Feature } from './Feature.js'\n\nconst DefaultRenderer: FC<GherkinDocumentProps> = ({ gherkinDocument }) => {\n return gherkinDocument.feature ? <Feature feature={gherkinDocument.feature} /> : null\n}\n\nexport const GherkinDocument: FC<GherkinDocumentProps> = (props) => {\n const ResolvedRenderer = useCustomRendering<GherkinDocumentProps>(\n 'GherkinDocument',\n {},\n DefaultRenderer\n )\n return <ResolvedRenderer {...props} />\n}\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FunctionComponent } from 'react';
|
|
2
|
-
import { KeywordProps } from '../customise/index.js';
|
|
1
|
+
import type { FunctionComponent } from 'react';
|
|
2
|
+
import { type KeywordProps } from '../customise/index.js';
|
|
3
3
|
export declare const Keyword: FunctionComponent<KeywordProps>;
|
|
4
4
|
//# sourceMappingURL=Keyword.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Keyword.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/Keyword.tsx"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"Keyword.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/Keyword.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAE9C,OAAO,EAGL,KAAK,YAAY,EAElB,MAAM,uBAAuB,CAAA;AAO9B,eAAO,MAAM,OAAO,EAAE,iBAAiB,CAAC,YAAY,CAOnD,CAAA"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useCustomRendering, } from '../customise/index.js';
|
|
3
3
|
import defaultStyles from './Keyword.module.scss';
|
|
4
4
|
const DefaultRenderer = ({ children, styles }) => {
|
|
5
|
-
return
|
|
5
|
+
return _jsxs("span", { className: styles.keyword, children: [children, " "] });
|
|
6
6
|
};
|
|
7
7
|
export const Keyword = ({ children }) => {
|
|
8
8
|
const ResolvedRenderer = useCustomRendering('Keyword', defaultStyles, DefaultRenderer);
|
|
9
|
-
return
|
|
9
|
+
return _jsx(ResolvedRenderer, { children: children });
|
|
10
10
|
};
|
|
11
11
|
//# sourceMappingURL=Keyword.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Keyword.js","sourceRoot":"","sources":["../../../../src/components/gherkin/Keyword.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Keyword.js","sourceRoot":"","sources":["../../../../src/components/gherkin/Keyword.tsx"],"names":[],"mappings":";AAEA,OAAO,EAIL,kBAAkB,GACnB,MAAM,uBAAuB,CAAA;AAC9B,OAAO,aAAa,MAAM,uBAAuB,CAAA;AAEjD,MAAM,eAAe,GAAmD,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE;IAC/F,OAAO,gBAAM,SAAS,EAAE,MAAM,CAAC,OAAO,aAAG,QAAQ,SAAS,CAAA;AAC5D,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,OAAO,GAAoC,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE;IACvE,MAAM,gBAAgB,GAAG,kBAAkB,CACzC,SAAS,EACT,aAAa,EACb,eAAe,CAChB,CAAA;IACD,OAAO,KAAC,gBAAgB,cAAE,QAAQ,GAAoB,CAAA;AACxD,CAAC,CAAA","sourcesContent":["import type { FunctionComponent } from 'react'\n\nimport {\n type DefaultComponent,\n type KeywordClasses,\n type KeywordProps,\n useCustomRendering,\n} from '../customise/index.js'\nimport defaultStyles from './Keyword.module.scss'\n\nconst DefaultRenderer: DefaultComponent<KeywordProps, KeywordClasses> = ({ children, styles }) => {\n return <span className={styles.keyword}>{children} </span>\n}\n\nexport const Keyword: FunctionComponent<KeywordProps> = ({ children }) => {\n const ResolvedRenderer = useCustomRendering<KeywordProps, KeywordClasses>(\n 'Keyword',\n defaultStyles,\n DefaultRenderer\n )\n return <ResolvedRenderer>{children}</ResolvedRenderer>\n}\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { ParameterProps } from '../customise/index.js';
|
|
3
|
-
export declare const Parameter:
|
|
1
|
+
import type { FC } from 'react';
|
|
2
|
+
import { type ParameterProps } from '../customise/index.js';
|
|
3
|
+
export declare const Parameter: FC<ParameterProps>;
|
|
4
4
|
//# sourceMappingURL=Parameter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Parameter.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/Parameter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"Parameter.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/Parameter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAE/B,OAAO,EAGL,KAAK,cAAc,EAEpB,MAAM,uBAAuB,CAAA;AAU9B,eAAO,MAAM,SAAS,EAAE,EAAE,CAAC,cAAc,CAOxC,CAAA"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useCustomRendering, } from '../customise/index.js';
|
|
3
3
|
import defaultStyles from './Parameter.module.scss';
|
|
4
|
-
const DefaultRenderer = ({
|
|
5
|
-
return (
|
|
4
|
+
const DefaultRenderer = ({ children, styles, }) => {
|
|
5
|
+
return _jsx("span", { className: styles.parameter, children: children });
|
|
6
6
|
};
|
|
7
7
|
export const Parameter = (props) => {
|
|
8
8
|
const ResolvedRenderer = useCustomRendering('Parameter', defaultStyles, DefaultRenderer);
|
|
9
|
-
return
|
|
9
|
+
return _jsx(ResolvedRenderer, { ...props });
|
|
10
10
|
};
|
|
11
11
|
//# sourceMappingURL=Parameter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Parameter.js","sourceRoot":"","sources":["../../../../src/components/gherkin/Parameter.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Parameter.js","sourceRoot":"","sources":["../../../../src/components/gherkin/Parameter.tsx"],"names":[],"mappings":";AAEA,OAAO,EAIL,kBAAkB,GACnB,MAAM,uBAAuB,CAAA;AAC9B,OAAO,aAAa,MAAM,yBAAyB,CAAA;AAEnD,MAAM,eAAe,GAAuD,CAAC,EAC3E,QAAQ,EACR,MAAM,GACP,EAAE,EAAE;IACH,OAAO,eAAM,SAAS,EAAE,MAAM,CAAC,SAAS,YAAG,QAAQ,GAAQ,CAAA;AAC7D,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,SAAS,GAAuB,CAAC,KAAK,EAAE,EAAE;IACrD,MAAM,gBAAgB,GAAG,kBAAkB,CACzC,WAAW,EACX,aAAa,EACb,eAAe,CAChB,CAAA;IACD,OAAO,KAAC,gBAAgB,OAAK,KAAK,GAAI,CAAA;AACxC,CAAC,CAAA","sourcesContent":["import type { FC } from 'react'\n\nimport {\n type DefaultComponent,\n type ParameterClasses,\n type ParameterProps,\n useCustomRendering,\n} from '../customise/index.js'\nimport defaultStyles from './Parameter.module.scss'\n\nconst DefaultRenderer: DefaultComponent<ParameterProps, ParameterClasses> = ({\n children,\n styles,\n}) => {\n return <span className={styles.parameter}>{children}</span>\n}\n\nexport const Parameter: FC<ParameterProps> = (props) => {\n const ResolvedRenderer = useCustomRendering<ParameterProps, ParameterClasses>(\n 'Parameter',\n defaultStyles,\n DefaultRenderer\n )\n return <ResolvedRenderer {...props} />\n}\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { RuleProps } from '../customise/index.js';
|
|
3
|
-
export declare const Rule:
|
|
1
|
+
import type { FC } from 'react';
|
|
2
|
+
import { type RuleProps } from '../customise/index.js';
|
|
3
|
+
export declare const Rule: FC<RuleProps>;
|
|
4
4
|
//# sourceMappingURL=Rule.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Rule.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/Rule.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"Rule.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/Rule.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAG/B,OAAO,EAAyB,KAAK,SAAS,EAAsB,MAAM,uBAAuB,CAAA;AAiCjG,eAAO,MAAM,IAAI,EAAE,EAAE,CAAC,SAAS,CAG9B,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { HighLight } from '../app/HighLight.js';
|
|
3
3
|
import { useCustomRendering } from '../customise/index.js';
|
|
4
4
|
import { Background } from './Background.js';
|
|
@@ -9,28 +9,18 @@ import { Scenario } from './Scenario.js';
|
|
|
9
9
|
import { Tags } from './Tags.js';
|
|
10
10
|
import { Title } from './Title.js';
|
|
11
11
|
const DefaultRenderer = ({ rule }) => {
|
|
12
|
-
return (
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
if (child.background) {
|
|
22
|
-
return React.createElement(Background, { key: index, background: child.background });
|
|
23
|
-
}
|
|
24
|
-
else if (child.scenario) {
|
|
25
|
-
return React.createElement(Scenario, { key: index, scenario: child.scenario });
|
|
26
|
-
}
|
|
27
|
-
else {
|
|
28
|
-
throw new Error('Expected background or scenario');
|
|
29
|
-
}
|
|
30
|
-
}))));
|
|
12
|
+
return (_jsxs("section", { children: [_jsx(Tags, { tags: rule.tags }), _jsxs(Title, { header: "h2", id: rule.id, children: [_jsxs(Keyword, { children: [rule.keyword, ":"] }), _jsx(HighLight, { text: rule.name })] }), _jsx(Description, { description: rule.description }), _jsx(Children, { children: (rule.children || []).map((child, index) => {
|
|
13
|
+
if (child.background) {
|
|
14
|
+
return _jsx(Background, { background: child.background }, index);
|
|
15
|
+
}
|
|
16
|
+
if (child.scenario) {
|
|
17
|
+
return _jsx(Scenario, { scenario: child.scenario }, index);
|
|
18
|
+
}
|
|
19
|
+
throw new Error('Expected background or scenario');
|
|
20
|
+
}) })] }));
|
|
31
21
|
};
|
|
32
22
|
export const Rule = (props) => {
|
|
33
23
|
const ResolvedRenderer = useCustomRendering('Rule', {}, DefaultRenderer);
|
|
34
|
-
return
|
|
24
|
+
return _jsx(ResolvedRenderer, { ...props });
|
|
35
25
|
};
|
|
36
26
|
//# sourceMappingURL=Rule.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Rule.js","sourceRoot":"","sources":["../../../../src/components/gherkin/Rule.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Rule.js","sourceRoot":"","sources":["../../../../src/components/gherkin/Rule.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAC/C,OAAO,EAAyC,kBAAkB,EAAE,MAAM,uBAAuB,CAAA;AACjG,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AAElC,MAAM,eAAe,GAAgC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE;IAChE,OAAO,CACL,8BACE,KAAC,IAAI,IAAC,IAAI,EAAE,IAAI,CAAC,IAAI,GAAI,EACzB,MAAC,KAAK,IAAC,MAAM,EAAC,IAAI,EAAC,EAAE,EAAE,IAAI,CAAC,EAAE,aAC5B,MAAC,OAAO,eAAE,IAAI,CAAC,OAAO,SAAY,EAClC,KAAC,SAAS,IAAC,IAAI,EAAE,IAAI,CAAC,IAAI,GAAI,IACxB,EACR,KAAC,WAAW,IAAC,WAAW,EAAE,IAAI,CAAC,WAAW,GAAI,EAC9C,KAAC,QAAQ,cACN,CAAC,IAAI,CAAC,QAAQ,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE;oBAC1C,IAAI,KAAK,CAAC,UAAU,EAAE,CAAC;wBACrB,OAAO,KAAC,UAAU,IAAa,UAAU,EAAE,KAAK,CAAC,UAAU,IAAnC,KAAK,CAAkC,CAAA;oBACjE,CAAC;oBACD,IAAI,KAAK,CAAC,QAAQ,EAAE,CAAC;wBACnB,OAAO,KAAC,QAAQ,IAAa,QAAQ,EAAE,KAAK,CAAC,QAAQ,IAA/B,KAAK,CAA8B,CAAA;oBAC3D,CAAC;oBACD,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAA;gBACpD,CAAC,CAAC,GACO,IACH,CACX,CAAA;AACH,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,IAAI,GAAkB,CAAC,KAAK,EAAE,EAAE;IAC3C,MAAM,gBAAgB,GAAG,kBAAkB,CAAY,MAAM,EAAE,EAAE,EAAE,eAAe,CAAC,CAAA;IACnF,OAAO,KAAC,gBAAgB,OAAK,KAAK,GAAI,CAAA;AACxC,CAAC,CAAA","sourcesContent":["import type { FC } from 'react'\n\nimport { HighLight } from '../app/HighLight.js'\nimport { type DefaultComponent, type RuleProps, useCustomRendering } from '../customise/index.js'\nimport { Background } from './Background.js'\nimport { Children } from './Children.js'\nimport { Description } from './Description.js'\nimport { Keyword } from './Keyword.js'\nimport { Scenario } from './Scenario.js'\nimport { Tags } from './Tags.js'\nimport { Title } from './Title.js'\n\nconst DefaultRenderer: DefaultComponent<RuleProps> = ({ rule }) => {\n return (\n <section>\n <Tags tags={rule.tags} />\n <Title header=\"h2\" id={rule.id}>\n <Keyword>{rule.keyword}:</Keyword>\n <HighLight text={rule.name} />\n </Title>\n <Description description={rule.description} />\n <Children>\n {(rule.children || []).map((child, index) => {\n if (child.background) {\n return <Background key={index} background={child.background} />\n }\n if (child.scenario) {\n return <Scenario key={index} scenario={child.scenario} />\n }\n throw new Error('Expected background or scenario')\n })}\n </Children>\n </section>\n )\n}\n\nexport const Rule: FC<RuleProps> = (props) => {\n const ResolvedRenderer = useCustomRendering<RuleProps>('Rule', {}, DefaultRenderer)\n return <ResolvedRenderer {...props} />\n}\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { ScenarioProps } from '../customise/index.js';
|
|
3
|
-
export declare const Scenario:
|
|
1
|
+
import type { FC } from 'react';
|
|
2
|
+
import { type ScenarioProps } from '../customise/index.js';
|
|
3
|
+
export declare const Scenario: FC<ScenarioProps>;
|
|
4
4
|
//# sourceMappingURL=Scenario.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Scenario.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/Scenario.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"Scenario.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/Scenario.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAI/B,OAAO,EAEL,KAAK,aAAa,EAEnB,MAAM,uBAAuB,CAAA;AA8B9B,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAC,aAAa,CAGtC,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useTestCaseStarted } from '../../hooks/useTestCaseStarted.js';
|
|
3
3
|
import { HighLight } from '../app/HighLight.js';
|
|
4
|
-
import { useCustomRendering } from '../customise/index.js';
|
|
4
|
+
import { useCustomRendering, } from '../customise/index.js';
|
|
5
5
|
import { TestCaseOutcome } from '../results/index.js';
|
|
6
6
|
import { Children } from './Children.js';
|
|
7
7
|
import { Description } from './Description.js';
|
|
@@ -12,20 +12,11 @@ import { Title } from './Title.js';
|
|
|
12
12
|
const DefaultRenderer = ({ scenario }) => {
|
|
13
13
|
const examplesList = scenario.examples || [];
|
|
14
14
|
const testCaseStarted = useTestCaseStarted(scenario.id);
|
|
15
|
-
return (
|
|
16
|
-
|
|
17
|
-
React.createElement(Title, { header: "h2", id: scenario.id },
|
|
18
|
-
React.createElement(Keyword, null,
|
|
19
|
-
scenario.keyword,
|
|
20
|
-
":"),
|
|
21
|
-
React.createElement(HighLight, { text: scenario.name })),
|
|
22
|
-
React.createElement(Description, { description: scenario.description }),
|
|
23
|
-
React.createElement(Children, null,
|
|
24
|
-
testCaseStarted && React.createElement(TestCaseOutcome, { testCaseStarted: testCaseStarted }),
|
|
25
|
-
examplesList.length > 0 && (React.createElement(React.Fragment, null, examplesList.map((examples, index) => (React.createElement(Examples, { key: index, examples: examples }))))))));
|
|
15
|
+
return (_jsxs("section", { children: [_jsx(Tags, { tags: scenario.tags }), _jsxs(Title, { header: "h2", id: scenario.id, children: [_jsxs(Keyword, { children: [scenario.keyword, ":"] }), _jsx(HighLight, { text: scenario.name })] }), _jsx(Description, { description: scenario.description }), _jsxs(Children, { children: [testCaseStarted && _jsx(TestCaseOutcome, { testCaseStarted: testCaseStarted }), examplesList.length > 0 &&
|
|
16
|
+
examplesList.map((examples, index) => _jsx(Examples, { examples: examples }, index))] })] }));
|
|
26
17
|
};
|
|
27
18
|
export const Scenario = (props) => {
|
|
28
19
|
const ResolvedRenderer = useCustomRendering('Scenario', {}, DefaultRenderer);
|
|
29
|
-
return
|
|
20
|
+
return _jsx(ResolvedRenderer, { ...props });
|
|
30
21
|
};
|
|
31
22
|
//# sourceMappingURL=Scenario.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Scenario.js","sourceRoot":"","sources":["../../../../src/components/gherkin/Scenario.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Scenario.js","sourceRoot":"","sources":["../../../../src/components/gherkin/Scenario.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAA;AACtE,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAC/C,OAAO,EAGL,kBAAkB,GACnB,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AACtC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AAElC,MAAM,eAAe,GAAoC,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE;IACxE,MAAM,YAAY,GAAG,QAAQ,CAAC,QAAQ,IAAI,EAAE,CAAA;IAC5C,MAAM,eAAe,GAAG,kBAAkB,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAA;IAEvD,OAAO,CACL,8BACE,KAAC,IAAI,IAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,GAAI,EAC7B,MAAC,KAAK,IAAC,MAAM,EAAC,IAAI,EAAC,EAAE,EAAE,QAAQ,CAAC,EAAE,aAChC,MAAC,OAAO,eAAE,QAAQ,CAAC,OAAO,SAAY,EACtC,KAAC,SAAS,IAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,GAAI,IAC5B,EACR,KAAC,WAAW,IAAC,WAAW,EAAE,QAAQ,CAAC,WAAW,GAAI,EAClD,MAAC,QAAQ,eACN,eAAe,IAAI,KAAC,eAAe,IAAC,eAAe,EAAE,eAAe,GAAI,EACxE,YAAY,CAAC,MAAM,GAAG,CAAC;wBACtB,YAAY,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,KAAK,EAAE,EAAE,CAAC,KAAC,QAAQ,IAAa,QAAQ,EAAE,QAAQ,IAAzB,KAAK,CAAwB,CAAC,IAC5E,IACH,CACX,CAAA;AACH,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,QAAQ,GAAsB,CAAC,KAAK,EAAE,EAAE;IACnD,MAAM,gBAAgB,GAAG,kBAAkB,CAAgB,UAAU,EAAE,EAAE,EAAE,eAAe,CAAC,CAAA;IAC3F,OAAO,KAAC,gBAAgB,OAAK,KAAK,GAAI,CAAA;AACxC,CAAC,CAAA","sourcesContent":["import type { FC } from 'react'\n\nimport { useTestCaseStarted } from '../../hooks/useTestCaseStarted.js'\nimport { HighLight } from '../app/HighLight.js'\nimport {\n type DefaultComponent,\n type ScenarioProps,\n useCustomRendering,\n} from '../customise/index.js'\nimport { TestCaseOutcome } from '../results/index.js'\nimport { Children } from './Children.js'\nimport { Description } from './Description.js'\nimport { Examples } from './Examples.js'\nimport { Keyword } from './Keyword.js'\nimport { Tags } from './Tags.js'\nimport { Title } from './Title.js'\n\nconst DefaultRenderer: DefaultComponent<ScenarioProps> = ({ scenario }) => {\n const examplesList = scenario.examples || []\n const testCaseStarted = useTestCaseStarted(scenario.id)\n\n return (\n <section>\n <Tags tags={scenario.tags} />\n <Title header=\"h2\" id={scenario.id}>\n <Keyword>{scenario.keyword}:</Keyword>\n <HighLight text={scenario.name} />\n </Title>\n <Description description={scenario.description} />\n <Children>\n {testCaseStarted && <TestCaseOutcome testCaseStarted={testCaseStarted} />}\n {examplesList.length > 0 &&\n examplesList.map((examples, index) => <Examples key={index} examples={examples} />)}\n </Children>\n </section>\n )\n}\n\nexport const Scenario: FC<ScenarioProps> = (props) => {\n const ResolvedRenderer = useCustomRendering<ScenarioProps>('Scenario', {}, DefaultRenderer)\n return <ResolvedRenderer {...props} />\n}\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FunctionComponent } from 'react';
|
|
2
|
-
import { StatusIconProps } from '../customise/index.js';
|
|
1
|
+
import type { FunctionComponent } from 'react';
|
|
2
|
+
import { type StatusIconProps } from '../customise/index.js';
|
|
3
3
|
export declare const StatusIcon: FunctionComponent<StatusIconProps>;
|
|
4
4
|
//# sourceMappingURL=StatusIcon.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StatusIcon.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/StatusIcon.tsx"],"names":[],"mappings":"AAWA,
|
|
1
|
+
{"version":3,"file":"StatusIcon.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/StatusIcon.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAE9C,OAAO,EAGL,KAAK,eAAe,EAErB,MAAM,uBAAuB,CAAA;AAiB9B,eAAO,MAAM,UAAU,EAAE,iBAAiB,CAAC,eAAe,CAOzD,CAAA"}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
1
2
|
import { faCheckCircle, faInfoCircle, faPauseCircle, faQuestionCircle, faStopCircle, faTimesCircle, } from '@fortawesome/free-solid-svg-icons';
|
|
2
3
|
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|
3
|
-
import React from 'react';
|
|
4
4
|
import { useCustomRendering, } from '../customise/index.js';
|
|
5
5
|
import defaultStyles from './StatusIcon.module.scss';
|
|
6
6
|
const DefaultRenderer = ({ status, styles, }) => {
|
|
7
|
-
return (
|
|
7
|
+
return (_jsx(FontAwesomeIcon, { icon: statusIcon(status), size: "1x", className: styles.icon, "data-status": status }));
|
|
8
8
|
};
|
|
9
9
|
export const StatusIcon = (props) => {
|
|
10
10
|
const Customised = useCustomRendering('StatusIcon', defaultStyles, DefaultRenderer);
|
|
11
|
-
return
|
|
11
|
+
return _jsx(Customised, { ...props });
|
|
12
12
|
};
|
|
13
13
|
const statusIcon = (status) => {
|
|
14
14
|
return {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
15
|
+
PASSED: faCheckCircle,
|
|
16
|
+
SKIPPED: faStopCircle,
|
|
17
|
+
PENDING: faPauseCircle,
|
|
18
|
+
UNDEFINED: faQuestionCircle,
|
|
19
|
+
AMBIGUOUS: faInfoCircle,
|
|
20
|
+
FAILED: faTimesCircle,
|
|
21
|
+
UNKNOWN: faQuestionCircle,
|
|
22
22
|
}[status];
|
|
23
23
|
};
|
|
24
24
|
//# sourceMappingURL=StatusIcon.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StatusIcon.js","sourceRoot":"","sources":["../../../../src/components/gherkin/StatusIcon.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,aAAa,EACb,YAAY,EACZ,aAAa,EACb,gBAAgB,EAChB,YAAY,EACZ,aAAa,GAEd,MAAM,mCAAmC,CAAA;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAA;
|
|
1
|
+
{"version":3,"file":"StatusIcon.js","sourceRoot":"","sources":["../../../../src/components/gherkin/StatusIcon.tsx"],"names":[],"mappings":";AACA,OAAO,EACL,aAAa,EACb,YAAY,EACZ,aAAa,EACb,gBAAgB,EAChB,YAAY,EACZ,aAAa,GAEd,MAAM,mCAAmC,CAAA;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAA;AAGhE,OAAO,EAIL,kBAAkB,GACnB,MAAM,uBAAuB,CAAA;AAC9B,OAAO,aAAa,MAAM,0BAA0B,CAAA;AAEpD,MAAM,eAAe,GAAyD,CAAC,EAC7E,MAAM,EACN,MAAM,GACP,EAAE,EAAE;IACH,OAAO,CACL,KAAC,eAAe,IACd,IAAI,EAAE,UAAU,CAAC,MAAM,CAAC,EACxB,IAAI,EAAC,IAAI,EACT,SAAS,EAAE,MAAM,CAAC,IAAI,iBACT,MAAM,GACnB,CACH,CAAA;AACH,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,UAAU,GAAuC,CAAC,KAAK,EAAE,EAAE;IACtE,MAAM,UAAU,GAAG,kBAAkB,CACnC,YAAY,EACZ,aAAa,EACb,eAAe,CAChB,CAAA;IACD,OAAO,KAAC,UAAU,OAAK,KAAK,GAAI,CAAA;AAClC,CAAC,CAAA;AAED,MAAM,UAAU,GAAG,CAAC,MAA4B,EAAkB,EAAE;IAClE,OAAO;QACL,MAAM,EAAE,aAAa;QACrB,OAAO,EAAE,YAAY;QACrB,OAAO,EAAE,aAAa;QACtB,SAAS,EAAE,gBAAgB;QAC3B,SAAS,EAAE,YAAY;QACvB,MAAM,EAAE,aAAa;QACrB,OAAO,EAAE,gBAAgB;KAC1B,CAAC,MAAM,CAAC,CAAA;AACX,CAAC,CAAA","sourcesContent":["import type { TestStepResultStatus } from '@cucumber/messages'\nimport {\n faCheckCircle,\n faInfoCircle,\n faPauseCircle,\n faQuestionCircle,\n faStopCircle,\n faTimesCircle,\n type IconDefinition,\n} from '@fortawesome/free-solid-svg-icons'\nimport { FontAwesomeIcon } from '@fortawesome/react-fontawesome'\nimport type { FunctionComponent } from 'react'\n\nimport {\n type DefaultComponent,\n type StatusIconClasses,\n type StatusIconProps,\n useCustomRendering,\n} from '../customise/index.js'\nimport defaultStyles from './StatusIcon.module.scss'\n\nconst DefaultRenderer: DefaultComponent<StatusIconProps, StatusIconClasses> = ({\n status,\n styles,\n}) => {\n return (\n <FontAwesomeIcon\n icon={statusIcon(status)}\n size=\"1x\"\n className={styles.icon}\n data-status={status}\n />\n )\n}\n\nexport const StatusIcon: FunctionComponent<StatusIconProps> = (props) => {\n const Customised = useCustomRendering<StatusIconProps, StatusIconClasses>(\n 'StatusIcon',\n defaultStyles,\n DefaultRenderer\n )\n return <Customised {...props} />\n}\n\nconst statusIcon = (status: TestStepResultStatus): IconDefinition => {\n return {\n PASSED: faCheckCircle,\n SKIPPED: faStopCircle,\n PENDING: faPauseCircle,\n UNDEFINED: faQuestionCircle,\n AMBIGUOUS: faInfoCircle,\n FAILED: faTimesCircle,\n UNKNOWN: faQuestionCircle,\n }[status]\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepsList.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/StepsList.tsx"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"StepsList.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/StepsList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAIzD,eAAO,MAAM,SAAS,EAAE,iBAAiB,CAAC;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,CAMhE,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import styles from './StepsList.module.scss';
|
|
3
3
|
export const StepsList = ({ children }) => {
|
|
4
|
-
return (
|
|
4
|
+
return (_jsx("ol", { "aria-label": "Steps", className: styles.steps, children: children }));
|
|
5
5
|
};
|
|
6
6
|
//# sourceMappingURL=StepsList.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepsList.js","sourceRoot":"","sources":["../../../../src/components/gherkin/StepsList.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"StepsList.js","sourceRoot":"","sources":["../../../../src/components/gherkin/StepsList.tsx"],"names":[],"mappings":";AAEA,OAAO,MAAM,MAAM,yBAAyB,CAAA;AAE5C,MAAM,CAAC,MAAM,SAAS,GAA+C,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE;IACpF,OAAO,CACL,2BAAe,OAAO,EAAC,SAAS,EAAE,MAAM,CAAC,KAAK,YAC3C,QAAQ,GACN,CACN,CAAA;AACH,CAAC,CAAA","sourcesContent":["import type { FunctionComponent, ReactNode } from 'react'\n\nimport styles from './StepsList.module.scss'\n\nexport const StepsList: FunctionComponent<{ children: ReactNode }> = ({ children }) => {\n return (\n <ol aria-label=\"Steps\" className={styles.steps}>\n {children}\n </ol>\n )\n}\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { TagsProps } from '../customise/index.js';
|
|
3
|
-
export declare const Tags:
|
|
1
|
+
import type { FC } from 'react';
|
|
2
|
+
import { type TagsProps } from '../customise/index.js';
|
|
3
|
+
export declare const Tags: FC<TagsProps>;
|
|
4
4
|
//# sourceMappingURL=Tags.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tags.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/Tags.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"Tags.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/Tags.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAG/B,OAAO,EAGL,KAAK,SAAS,EAEf,MAAM,uBAAuB,CAAA;AAkB9B,eAAO,MAAM,IAAI,EAAE,EAAE,CAAC,SAAS,CAO9B,CAAA"}
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { HighLight } from '../app/HighLight.js';
|
|
3
|
-
import { useCustomRendering } from '../customise/index.js';
|
|
3
|
+
import { useCustomRendering, } from '../customise/index.js';
|
|
4
4
|
import defaultStyles from './Tags.module.scss';
|
|
5
5
|
const DefaultRenderer = ({ tags, styles }) => {
|
|
6
6
|
if (!tags.length) {
|
|
7
7
|
return null;
|
|
8
8
|
}
|
|
9
|
-
return (
|
|
10
|
-
React.createElement(HighLight, { text: tag.name }))))));
|
|
9
|
+
return (_jsx("ul", { "aria-label": "Tags", className: styles.tags, children: tags.map((tag, index) => (_jsx("li", { className: styles.tag, children: _jsx(HighLight, { text: tag.name }) }, index))) }));
|
|
11
10
|
};
|
|
12
11
|
export const Tags = (props) => {
|
|
13
12
|
const ResolvedRenderer = useCustomRendering('Tags', defaultStyles, DefaultRenderer);
|
|
14
|
-
return
|
|
13
|
+
return _jsx(ResolvedRenderer, { ...props });
|
|
15
14
|
};
|
|
16
15
|
//# sourceMappingURL=Tags.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tags.js","sourceRoot":"","sources":["../../../../src/components/gherkin/Tags.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Tags.js","sourceRoot":"","sources":["../../../../src/components/gherkin/Tags.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAC/C,OAAO,EAIL,kBAAkB,GACnB,MAAM,uBAAuB,CAAA;AAC9B,OAAO,aAAa,MAAM,oBAAoB,CAAA;AAE9C,MAAM,eAAe,GAA6C,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE;IACrF,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;QACjB,OAAO,IAAI,CAAA;IACb,CAAC;IACD,OAAO,CACL,2BAAe,MAAM,EAAC,SAAS,EAAE,MAAM,CAAC,IAAI,YACzC,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE,CAAC,CACxB,aAAI,SAAS,EAAE,MAAM,CAAC,GAAG,YACvB,KAAC,SAAS,IAAC,IAAI,EAAE,GAAG,CAAC,IAAI,GAAI,IADC,KAAK,CAEhC,CACN,CAAC,GACC,CACN,CAAA;AACH,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,IAAI,GAAkB,CAAC,KAAK,EAAE,EAAE;IAC3C,MAAM,gBAAgB,GAAG,kBAAkB,CACzC,MAAM,EACN,aAAa,EACb,eAAe,CAChB,CAAA;IACD,OAAO,KAAC,gBAAgB,OAAK,KAAK,GAAI,CAAA;AACxC,CAAC,CAAA","sourcesContent":["import type { FC } from 'react'\n\nimport { HighLight } from '../app/HighLight.js'\nimport {\n type DefaultComponent,\n type TagsClasses,\n type TagsProps,\n useCustomRendering,\n} from '../customise/index.js'\nimport defaultStyles from './Tags.module.scss'\n\nconst DefaultRenderer: DefaultComponent<TagsProps, TagsClasses> = ({ tags, styles }) => {\n if (!tags.length) {\n return null\n }\n return (\n <ul aria-label=\"Tags\" className={styles.tags}>\n {tags.map((tag, index) => (\n <li className={styles.tag} key={index}>\n <HighLight text={tag.name} />\n </li>\n ))}\n </ul>\n )\n}\n\nexport const Tags: FC<TagsProps> = (props) => {\n const ResolvedRenderer = useCustomRendering<TagsProps, TagsClasses>(\n 'Tags',\n defaultStyles,\n DefaultRenderer\n )\n return <ResolvedRenderer {...props} />\n}\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { TitleProps } from '../customise/index.js';
|
|
3
|
-
export declare const Title:
|
|
1
|
+
import type { FC } from 'react';
|
|
2
|
+
import { type TitleProps } from '../customise/index.js';
|
|
3
|
+
export declare const Title: FC<TitleProps>;
|
|
4
4
|
//# sourceMappingURL=Title.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Title.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/Title.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"Title.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/Title.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAE/B,OAAO,EAGL,KAAK,UAAU,EAEhB,MAAM,uBAAuB,CAAA;AAmB9B,eAAO,MAAM,KAAK,EAAE,EAAE,CAAC,UAAU,CAOhC,CAAA"}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useCustomRendering, } from '../customise/index.js';
|
|
3
3
|
import { Anchor } from './Anchor.js';
|
|
4
4
|
import defaultStyles from './Title.module.scss';
|
|
5
5
|
const DefaultRenderer = ({ header: Header, id, children, styles, }) => {
|
|
6
|
-
return (
|
|
7
|
-
React.createElement(Header, { id: id, className: styles.title }, children)));
|
|
6
|
+
return (_jsx(Anchor, { id: id, children: _jsx(Header, { id: id, className: styles.title, children: children }) }));
|
|
8
7
|
};
|
|
9
8
|
export const Title = (props) => {
|
|
10
9
|
const ResolvedRenderer = useCustomRendering('Title', defaultStyles, DefaultRenderer);
|
|
11
|
-
return
|
|
10
|
+
return _jsx(ResolvedRenderer, { ...props });
|
|
12
11
|
};
|
|
13
12
|
//# sourceMappingURL=Title.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Title.js","sourceRoot":"","sources":["../../../../src/components/gherkin/Title.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Title.js","sourceRoot":"","sources":["../../../../src/components/gherkin/Title.tsx"],"names":[],"mappings":";AAEA,OAAO,EAIL,kBAAkB,GACnB,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AACpC,OAAO,aAAa,MAAM,qBAAqB,CAAA;AAE/C,MAAM,eAAe,GAA+C,CAAC,EACnE,MAAM,EAAE,MAAM,EACd,EAAE,EACF,QAAQ,EACR,MAAM,GACP,EAAE,EAAE;IACH,OAAO,CACL,KAAC,MAAM,IAAC,EAAE,EAAE,EAAE,YACZ,KAAC,MAAM,IAAC,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,CAAC,KAAK,YACpC,QAAQ,GACF,GACF,CACV,CAAA;AACH,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,KAAK,GAAmB,CAAC,KAAK,EAAE,EAAE;IAC7C,MAAM,gBAAgB,GAAG,kBAAkB,CACzC,OAAO,EACP,aAAa,EACb,eAAe,CAChB,CAAA;IACD,OAAO,KAAC,gBAAgB,OAAK,KAAK,GAAI,CAAA;AACxC,CAAC,CAAA","sourcesContent":["import type { FC } from 'react'\n\nimport {\n type DefaultComponent,\n type TitleClasses,\n type TitleProps,\n useCustomRendering,\n} from '../customise/index.js'\nimport { Anchor } from './Anchor.js'\nimport defaultStyles from './Title.module.scss'\n\nconst DefaultRenderer: DefaultComponent<TitleProps, TitleClasses> = ({\n header: Header,\n id,\n children,\n styles,\n}) => {\n return (\n <Anchor id={id}>\n <Header id={id} className={styles.title}>\n {children}\n </Header>\n </Anchor>\n )\n}\n\nexport const Title: FC<TitleProps> = (props) => {\n const ResolvedRenderer = useCustomRendering<TitleProps, TitleClasses>(\n 'Title',\n defaultStyles,\n DefaultRenderer\n )\n return <ResolvedRenderer {...props} />\n}\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { AttachmentProps } from '../../customise/index.js';
|
|
3
|
-
export declare const Attachment:
|
|
1
|
+
import type { FC } from 'react';
|
|
2
|
+
import { type AttachmentProps } from '../../customise/index.js';
|
|
3
|
+
export declare const Attachment: FC<AttachmentProps>;
|
|
4
4
|
//# sourceMappingURL=Attachment.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Attachment.d.ts","sourceRoot":"","sources":["../../../../../src/components/gherkin/attachment/Attachment.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"Attachment.d.ts","sourceRoot":"","sources":["../../../../../src/components/gherkin/attachment/Attachment.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAG/B,OAAO,EAEL,KAAK,eAAe,EAGrB,MAAM,0BAA0B,CAAA;AAmCjC,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CAW1C,CAAA"}
|