@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,34 +1,35 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { createContext, useContext, } from 'react';
|
|
2
3
|
function mixinStyles(builtIn, custom) {
|
|
3
4
|
const mixed = {};
|
|
4
|
-
Object.keys(builtIn)
|
|
5
|
+
for (const key of Object.keys(builtIn)) {
|
|
5
6
|
if (builtIn[key]) {
|
|
6
7
|
mixed[key] = builtIn[key];
|
|
7
8
|
}
|
|
8
9
|
if (custom && typeof custom !== 'function' && custom[key]) {
|
|
9
10
|
mixed[key] = custom[key];
|
|
10
11
|
}
|
|
11
|
-
}
|
|
12
|
+
}
|
|
12
13
|
return mixed;
|
|
13
14
|
}
|
|
14
|
-
export const CustomRenderingContext =
|
|
15
|
+
export const CustomRenderingContext = createContext({});
|
|
15
16
|
export function useCustomRendering(component, defaultStyles, DefaultRenderer) {
|
|
16
17
|
const { [component]: Custom } = useContext(CustomRenderingContext);
|
|
17
|
-
// @ts-
|
|
18
|
+
// @ts-expect-error
|
|
18
19
|
const composedStyles = mixinStyles(defaultStyles, Custom);
|
|
19
20
|
const StyledDefaultRenderer = (props) => {
|
|
20
|
-
return
|
|
21
|
+
return _jsx(DefaultRenderer, { ...props, styles: composedStyles });
|
|
21
22
|
};
|
|
22
23
|
if (typeof Custom === 'function') {
|
|
23
24
|
const StyledCustomRenderer = (props) => {
|
|
24
|
-
// @ts-
|
|
25
|
-
return
|
|
25
|
+
// @ts-expect-error
|
|
26
|
+
return _jsx(Custom, { ...props, styles: composedStyles, DefaultRenderer: StyledDefaultRenderer });
|
|
26
27
|
};
|
|
27
28
|
return StyledCustomRenderer;
|
|
28
29
|
}
|
|
29
30
|
return StyledDefaultRenderer;
|
|
30
31
|
}
|
|
31
32
|
export const CustomRendering = ({ overrides, children, }) => {
|
|
32
|
-
return (
|
|
33
|
+
return (_jsx(CustomRenderingContext.Provider, { value: overrides, children: children }));
|
|
33
34
|
};
|
|
34
35
|
//# sourceMappingURL=CustomRendering.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomRendering.js","sourceRoot":"","sources":["../../../../src/components/customise/CustomRendering.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CustomRendering.js","sourceRoot":"","sources":["../../../../src/components/customise/CustomRendering.tsx"],"names":[],"mappings":";AAgBA,OAAO,EACL,aAAa,EAKb,UAAU,GACX,MAAM,OAAO,CAAA;AAEd,SAAS,WAAW,CAClB,OAA+B,EAC/B,MAAmD;IAEnD,MAAM,KAAK,GAA4B,EAAE,CAAA;IACzC,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC;QACvC,IAAI,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC;YACjB,KAAK,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,GAAG,CAAC,CAAA;QAC3B,CAAC;QACD,IAAI,MAAM,IAAI,OAAO,MAAM,KAAK,UAAU,IAAI,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC;YAC1D,KAAK,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAA;QAC1B,CAAC;IACH,CAAC;IACD,OAAO,KAAgB,CAAA;AACzB,CAAC;AAsJD,MAAM,CAAC,MAAM,sBAAsB,GAAG,aAAa,CAAyB,EAAE,CAAC,CAAA;AAE/E,MAAM,UAAU,kBAAkB,CAChC,SAA2B,EAC3B,aAAqC,EACrC,eAAiD;IAEjD,MAAM,EAAE,CAAC,SAAS,CAAC,EAAE,MAAM,EAAE,GAAG,UAAU,CAAC,sBAAsB,CAAC,CAAA;IAClE,mBAAmB;IACnB,MAAM,cAAc,GAAG,WAAW,CAAU,aAAa,EAAE,MAAM,CAAC,CAAA;IAClE,MAAM,qBAAqB,GAA6B,CAAC,KAAK,EAAE,EAAE;QAChE,OAAO,KAAC,eAAe,OAAK,KAAK,EAAE,MAAM,EAAE,cAAc,GAAI,CAAA;IAC/D,CAAC,CAAA;IACD,IAAI,OAAO,MAAM,KAAK,UAAU,EAAE,CAAC;QACjC,MAAM,oBAAoB,GAA6B,CAAC,KAAK,EAAE,EAAE;YAC/D,mBAAmB;YACnB,OAAO,KAAC,MAAM,OAAK,KAAK,EAAE,MAAM,EAAE,cAAc,EAAE,eAAe,EAAE,qBAAqB,GAAI,CAAA;QAC9F,CAAC,CAAA;QACD,OAAO,oBAAoB,CAAA;IAC7B,CAAC;IACD,OAAO,qBAAqB,CAAA;AAC9B,CAAC;AAED,MAAM,CAAC,MAAM,eAAe,GAAiE,CAAC,EAC5F,SAAS,EACT,QAAQ,GACT,EAAE,EAAE;IACH,OAAO,CACL,KAAC,sBAAsB,CAAC,QAAQ,IAAC,KAAK,EAAE,SAAS,YAAG,QAAQ,GAAmC,CAChG,CAAA;AACH,CAAC,CAAA","sourcesContent":["import type {\n Attachment,\n Background,\n DataTable,\n DocString,\n Examples,\n Feature,\n GherkinDocument,\n PickleDocString,\n PickleTable,\n PickleTag,\n Rule,\n Scenario,\n Tag,\n TestStepResultStatus,\n} from '@cucumber/messages'\nimport {\n createContext,\n type FC,\n type FunctionComponent,\n type PropsWithChildren,\n type ReactNode,\n useContext,\n} from 'react'\n\nfunction mixinStyles<Classes>(\n builtIn: Record<string, string>,\n custom?: Record<string, string> | FunctionComponent\n): Classes {\n const mixed: Record<string, unknown> = {}\n for (const key of Object.keys(builtIn)) {\n if (builtIn[key]) {\n mixed[key] = builtIn[key]\n }\n if (custom && typeof custom !== 'function' && custom[key]) {\n mixed[key] = custom[key]\n }\n }\n return mixed as Classes\n}\n\ntype Styles<C extends string> = Record<C, string>\n\nexport interface AnchorProps {\n id: string\n children: ReactNode\n}\n\nexport type AnchorClasses = Styles<'wrapper' | 'anchor'>\n\nexport interface AttachmentProps {\n attachment: Attachment\n}\n\nexport type AttachmentClasses = Styles<'text' | 'copyButton' | 'log' | 'icon' | 'image' | 'links'>\n\nexport interface BackgroundProps {\n background: Background\n}\n\nexport interface ChildrenProps {\n children: ReactNode\n}\n\nexport type ChildrenClasses = Styles<'children'>\n\nexport interface DataTableProps {\n dataTable: DataTable | PickleTable\n}\n\nexport type DataTableClasses = Styles<'table'>\n\nexport interface DescriptionProps {\n description?: string\n}\n\nexport type DescriptionClasses = Styles<'content'>\n\nexport interface DocStringProps {\n docString: DocString | PickleDocString\n}\n\nexport type DocStringClasses = Styles<'docString'>\n\nexport interface ErrorMessageProps {\n message?: string\n children?: ReactNode\n}\n\nexport type ErrorMessageClasses = Styles<'message' | 'copyButton'>\n\nexport interface ExamplesProps {\n examples: Examples\n}\n\nexport interface FeatureProps {\n feature: Feature\n}\n\nexport interface GherkinDocumentProps {\n gherkinDocument: GherkinDocument\n}\n\nexport type Header = 'h1' | 'h2' | 'h3' | 'h4' | 'h5'\n\nexport interface KeywordProps {\n children: ReactNode\n}\n\nexport type KeywordClasses = Styles<'keyword'>\n\nexport interface ParameterProps {\n parameterTypeName: string\n value: string\n children: ReactNode\n}\n\nexport type ParameterClasses = Styles<'parameter'>\n\nexport interface StatusIconProps {\n status: TestStepResultStatus\n}\n\nexport interface RuleProps {\n rule: Rule\n}\n\nexport interface ScenarioProps {\n scenario: Scenario\n}\n\nexport type StatusIconClasses = Styles<'icon'>\n\nexport interface TagsProps {\n tags: readonly Tag[] | readonly PickleTag[]\n}\n\nexport type TagsClasses = Styles<'tags' | 'tag'>\n\nexport interface TitleProps {\n header: Header\n id: string\n children: ReactNode\n}\n\nexport type TitleClasses = Styles<'title'>\n\nexport declare type DefaultComponent<\n Props,\n Classes extends Styles<string> = Record<string, string>,\n> = FunctionComponent<Props & { styles: Classes }>\n\nexport declare type CustomisedComponent<\n Props,\n Classes = Record<string, string>,\n> = FunctionComponent<\n Props & {\n styles: Classes\n DefaultRenderer: FunctionComponent<Props>\n }\n>\n\nexport declare type Customised<Props, Classes = Record<string, string>> =\n | CustomisedComponent<Props, Classes>\n | Partial<Classes>\n\nexport interface CustomRenderingSupport {\n Anchor?: Customised<AnchorProps, AnchorClasses>\n Attachment?: Customised<AttachmentProps, AttachmentClasses>\n Background?: Customised<BackgroundProps>\n Children?: Customised<ChildrenProps, ChildrenClasses>\n DataTable?: Customised<DataTableProps, DataTableClasses>\n Description?: Customised<DescriptionProps, DescriptionClasses>\n DocString?: Customised<DocStringProps, DocStringClasses>\n ErrorMessage?: Customised<ErrorMessageProps, ErrorMessageClasses>\n Examples?: Customised<ExamplesProps>\n Feature?: Customised<FeatureProps>\n GherkinDocument?: Customised<GherkinDocumentProps>\n Keyword?: Customised<KeywordProps, KeywordClasses>\n Parameter?: Customised<ParameterProps, ParameterClasses>\n Rule?: Customised<RuleProps>\n Scenario?: Customised<ScenarioProps>\n StatusIcon?: Customised<StatusIconProps, StatusIconClasses>\n Tags?: Customised<TagsProps, TagsClasses>\n Title?: Customised<TitleProps, TitleClasses>\n}\n\nexport declare type CustomRenderable = keyof CustomRenderingSupport\n\nexport const CustomRenderingContext = createContext<CustomRenderingSupport>({})\n\nexport function useCustomRendering<Props, Classes extends Styles<string> = Record<string, string>>(\n component: CustomRenderable,\n defaultStyles: Record<string, string>,\n DefaultRenderer: DefaultComponent<Props, Classes>\n): FunctionComponent<Props> {\n const { [component]: Custom } = useContext(CustomRenderingContext)\n // @ts-expect-error\n const composedStyles = mixinStyles<Classes>(defaultStyles, Custom)\n const StyledDefaultRenderer: FunctionComponent<Props> = (props) => {\n return <DefaultRenderer {...props} styles={composedStyles} />\n }\n if (typeof Custom === 'function') {\n const StyledCustomRenderer: FunctionComponent<Props> = (props) => {\n // @ts-expect-error\n return <Custom {...props} styles={composedStyles} DefaultRenderer={StyledDefaultRenderer} />\n }\n return StyledCustomRenderer\n }\n return StyledDefaultRenderer\n}\n\nexport const CustomRendering: FC<PropsWithChildren<{ overrides: CustomRenderingSupport }>> = ({\n overrides,\n children,\n}) => {\n return (\n <CustomRenderingContext.Provider value={overrides}>{children}</CustomRenderingContext.Provider>\n )\n}\n"]}
|
|
@@ -6,20 +6,3 @@
|
|
|
6
6
|
text-shadow: 1px 1px 2px white;
|
|
7
7
|
padding: 10px;
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
.dark-theme {
|
|
11
|
-
background-color: #1d1d26;
|
|
12
|
-
color: #c9c9d1;
|
|
13
|
-
--cucumber-anchor-color: #4caaee;
|
|
14
|
-
--cucumber-keyword-color: #d89077;
|
|
15
|
-
--cucumber-parameter-color: #4caaee;
|
|
16
|
-
--cucumber-tag-color: #85a658;
|
|
17
|
-
--cucumber-docstring-color: #66a565;
|
|
18
|
-
--cucumber-error-background-color: #cf6679;
|
|
19
|
-
--cucumber-error-text-color: #222;
|
|
20
|
-
--cucumber-code-background-color: #282a36;
|
|
21
|
-
--cucumber-code-text-color: #f8f8f2;
|
|
22
|
-
--cucumber-panel-background-color: #282a36;
|
|
23
|
-
--cucumber-panel-accent-color: #313442;
|
|
24
|
-
--cucumber-panel-text-color: #f8f8f2;
|
|
25
|
-
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { AnchorProps } from '../customise/index.js';
|
|
3
|
-
export declare const Anchor:
|
|
1
|
+
import type { FC } from 'react';
|
|
2
|
+
import { type AnchorProps } from '../customise/index.js';
|
|
3
|
+
export declare const Anchor: FC<AnchorProps>;
|
|
4
4
|
//# sourceMappingURL=Anchor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Anchor.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/Anchor.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"Anchor.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/Anchor.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAE/B,OAAO,EAEL,KAAK,WAAW,EAGjB,MAAM,uBAAuB,CAAA;AAkB9B,eAAO,MAAM,MAAM,EAAE,EAAE,CAAC,WAAW,CAOlC,CAAA"}
|
|
@@ -1,16 +1,13 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
1
2
|
import { faLink } 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 './Anchor.module.scss';
|
|
6
6
|
const DefaultRenderer = ({ id, styles, children, }) => {
|
|
7
|
-
return (
|
|
8
|
-
React.createElement("a", { href: '#' + id, className: defaultStyles.anchor },
|
|
9
|
-
React.createElement(FontAwesomeIcon, { icon: faLink })),
|
|
10
|
-
children));
|
|
7
|
+
return (_jsxs("div", { className: styles.wrapper, children: [_jsx("a", { href: `#${id}`, className: defaultStyles.anchor, children: _jsx(FontAwesomeIcon, { icon: faLink }) }), children] }));
|
|
11
8
|
};
|
|
12
9
|
export const Anchor = (props) => {
|
|
13
10
|
const ResolvedRenderer = useCustomRendering('Anchor', defaultStyles, DefaultRenderer);
|
|
14
|
-
return
|
|
11
|
+
return _jsx(ResolvedRenderer, { ...props });
|
|
15
12
|
};
|
|
16
13
|
//# sourceMappingURL=Anchor.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Anchor.js","sourceRoot":"","sources":["../../../../src/components/gherkin/Anchor.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mCAAmC,CAAA;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAA;
|
|
1
|
+
{"version":3,"file":"Anchor.js","sourceRoot":"","sources":["../../../../src/components/gherkin/Anchor.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mCAAmC,CAAA;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAA;AAGhE,OAAO,EAIL,kBAAkB,GACnB,MAAM,uBAAuB,CAAA;AAC9B,OAAO,aAAa,MAAM,sBAAsB,CAAA;AAEhD,MAAM,eAAe,GAAiD,CAAC,EACrE,EAAE,EACF,MAAM,EACN,QAAQ,GACT,EAAE,EAAE;IACH,OAAO,CACL,eAAK,SAAS,EAAE,MAAM,CAAC,OAAO,aAC5B,YAAG,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,SAAS,EAAE,aAAa,CAAC,MAAM,YAChD,KAAC,eAAe,IAAC,IAAI,EAAE,MAAM,GAAI,GAC/B,EACH,QAAQ,IACL,CACP,CAAA;AACH,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,MAAM,GAAoB,CAAC,KAAK,EAAE,EAAE;IAC/C,MAAM,gBAAgB,GAAG,kBAAkB,CACzC,QAAQ,EACR,aAAa,EACb,eAAe,CAChB,CAAA;IACD,OAAO,KAAC,gBAAgB,OAAK,KAAK,GAAI,CAAA;AACxC,CAAC,CAAA","sourcesContent":["import { faLink } from '@fortawesome/free-solid-svg-icons'\nimport { FontAwesomeIcon } from '@fortawesome/react-fontawesome'\nimport type { FC } from 'react'\n\nimport {\n type AnchorClasses,\n type AnchorProps,\n type DefaultComponent,\n useCustomRendering,\n} from '../customise/index.js'\nimport defaultStyles from './Anchor.module.scss'\n\nconst DefaultRenderer: DefaultComponent<AnchorProps, AnchorClasses> = ({\n id,\n styles,\n children,\n}) => {\n return (\n <div className={styles.wrapper}>\n <a href={`#${id}`} className={defaultStyles.anchor}>\n <FontAwesomeIcon icon={faLink} />\n </a>\n {children}\n </div>\n )\n}\n\nexport const Anchor: FC<AnchorProps> = (props) => {\n const ResolvedRenderer = useCustomRendering<AnchorProps, AnchorClasses>(\n 'Anchor',\n defaultStyles,\n DefaultRenderer\n )\n return <ResolvedRenderer {...props} />\n}\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { BackgroundProps } from '../customise/index.js';
|
|
3
|
-
export declare const Background:
|
|
1
|
+
import type { FC } from 'react';
|
|
2
|
+
import { type BackgroundProps } from '../customise/index.js';
|
|
3
|
+
export declare const Background: FC<BackgroundProps>;
|
|
4
4
|
//# sourceMappingURL=Background.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Background.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/Background.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"Background.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/Background.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAE/B,OAAO,EACL,KAAK,eAAe,EAGrB,MAAM,uBAAuB,CAAA;AAwB9B,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CAG1C,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { useCustomRendering } from '../customise/index.js';
|
|
1
|
+
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useCustomRendering, } from '../customise/index.js';
|
|
3
3
|
import { Description } from './Description.js';
|
|
4
4
|
import { Keyword } from './Keyword.js';
|
|
5
5
|
import { Title } from './Title.js';
|
|
@@ -9,16 +9,10 @@ const DefaultRenderer = ({ background }) => {
|
|
|
9
9
|
if (!hasName && !hasDescription) {
|
|
10
10
|
return null;
|
|
11
11
|
}
|
|
12
|
-
return (
|
|
13
|
-
React.createElement(Title, { header: "h2", id: background.id },
|
|
14
|
-
React.createElement(Keyword, null,
|
|
15
|
-
background.keyword,
|
|
16
|
-
":"),
|
|
17
|
-
React.createElement("span", null, background.name)),
|
|
18
|
-
React.createElement(Description, { description: background.description })));
|
|
12
|
+
return (_jsxs("section", { children: [_jsxs(Title, { header: "h2", id: background.id, children: [_jsxs(Keyword, { children: [background.keyword, ":"] }), _jsx("span", { children: background.name })] }), _jsx(Description, { description: background.description })] }));
|
|
19
13
|
};
|
|
20
14
|
export const Background = (props) => {
|
|
21
15
|
const ResolvedRenderer = useCustomRendering('Background', {}, DefaultRenderer);
|
|
22
|
-
return
|
|
16
|
+
return _jsx(ResolvedRenderer, { ...props });
|
|
23
17
|
};
|
|
24
18
|
//# sourceMappingURL=Background.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Background.js","sourceRoot":"","sources":["../../../../src/components/gherkin/Background.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Background.js","sourceRoot":"","sources":["../../../../src/components/gherkin/Background.tsx"],"names":[],"mappings":";AAEA,OAAO,EAGL,kBAAkB,GACnB,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AACtC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AAElC,MAAM,eAAe,GAAsC,CAAC,EAAE,UAAU,EAAE,EAAE,EAAE;IAC5E,MAAM,OAAO,GAAG,UAAU,CAAC,IAAI,IAAI,UAAU,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,CAAA;IAChE,MAAM,cAAc,GAAG,UAAU,CAAC,WAAW,IAAI,UAAU,CAAC,WAAW,CAAC,IAAI,EAAE,KAAK,EAAE,CAAA;IAErF,IAAI,CAAC,OAAO,IAAI,CAAC,cAAc,EAAE,CAAC;QAChC,OAAO,IAAI,CAAA;IACb,CAAC;IAED,OAAO,CACL,8BACE,MAAC,KAAK,IAAC,MAAM,EAAC,IAAI,EAAC,EAAE,EAAE,UAAU,CAAC,EAAE,aAClC,MAAC,OAAO,eAAE,UAAU,CAAC,OAAO,SAAY,EACxC,yBAAO,UAAU,CAAC,IAAI,GAAQ,IACxB,EACR,KAAC,WAAW,IAAC,WAAW,EAAE,UAAU,CAAC,WAAW,GAAI,IAC5C,CACX,CAAA;AACH,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,UAAU,GAAwB,CAAC,KAAK,EAAE,EAAE;IACvD,MAAM,gBAAgB,GAAG,kBAAkB,CAAkB,YAAY,EAAE,EAAE,EAAE,eAAe,CAAC,CAAA;IAC/F,OAAO,KAAC,gBAAgB,OAAK,KAAK,GAAI,CAAA;AACxC,CAAC,CAAA","sourcesContent":["import type { FC } from 'react'\n\nimport {\n type BackgroundProps,\n type DefaultComponent,\n useCustomRendering,\n} from '../customise/index.js'\nimport { Description } from './Description.js'\nimport { Keyword } from './Keyword.js'\nimport { Title } from './Title.js'\n\nconst DefaultRenderer: DefaultComponent<BackgroundProps> = ({ background }) => {\n const hasName = background.name && background.name.trim() !== ''\n const hasDescription = background.description && background.description.trim() !== ''\n\n if (!hasName && !hasDescription) {\n return null\n }\n\n return (\n <section>\n <Title header=\"h2\" id={background.id}>\n <Keyword>{background.keyword}:</Keyword>\n <span>{background.name}</span>\n </Title>\n <Description description={background.description} />\n </section>\n )\n}\n\nexport const Background: FC<BackgroundProps> = (props) => {\n const ResolvedRenderer = useCustomRendering<BackgroundProps>('Background', {}, DefaultRenderer)\n return <ResolvedRenderer {...props} />\n}\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { ChildrenProps } from '../customise/index.js';
|
|
3
|
-
export declare const Children:
|
|
1
|
+
import type { FC } from 'react';
|
|
2
|
+
import { type ChildrenProps } from '../customise/index.js';
|
|
3
|
+
export declare const Children: FC<ChildrenProps>;
|
|
4
4
|
//# sourceMappingURL=Children.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Children.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/Children.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"Children.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/Children.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAE/B,OAAO,EAEL,KAAK,aAAa,EAGnB,MAAM,uBAAuB,CAAA;AAU9B,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAC,aAAa,CAOtC,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 './Children.module.scss';
|
|
4
4
|
const DefaultRenderer = ({ styles, children, }) => {
|
|
5
|
-
return
|
|
5
|
+
return _jsx("div", { className: styles.children, children: children });
|
|
6
6
|
};
|
|
7
7
|
export const Children = (props) => {
|
|
8
8
|
const ResolvedRenderer = useCustomRendering('Children', defaultStyles, DefaultRenderer);
|
|
9
|
-
return
|
|
9
|
+
return _jsx(ResolvedRenderer, { ...props });
|
|
10
10
|
};
|
|
11
11
|
//# sourceMappingURL=Children.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Children.js","sourceRoot":"","sources":["../../../../src/components/gherkin/Children.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Children.js","sourceRoot":"","sources":["../../../../src/components/gherkin/Children.tsx"],"names":[],"mappings":";AAEA,OAAO,EAIL,kBAAkB,GACnB,MAAM,uBAAuB,CAAA;AAC9B,OAAO,aAAa,MAAM,wBAAwB,CAAA;AAElD,MAAM,eAAe,GAAqD,CAAC,EACzE,MAAM,EACN,QAAQ,GACT,EAAE,EAAE;IACH,OAAO,cAAK,SAAS,EAAE,MAAM,CAAC,QAAQ,YAAG,QAAQ,GAAO,CAAA;AAC1D,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,QAAQ,GAAsB,CAAC,KAAK,EAAE,EAAE;IACnD,MAAM,gBAAgB,GAAG,kBAAkB,CACzC,UAAU,EACV,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 ChildrenClasses,\n type ChildrenProps,\n type DefaultComponent,\n useCustomRendering,\n} from '../customise/index.js'\nimport defaultStyles from './Children.module.scss'\n\nconst DefaultRenderer: DefaultComponent<ChildrenProps, ChildrenClasses> = ({\n styles,\n children,\n}) => {\n return <div className={styles.children}>{children}</div>\n}\n\nexport const Children: FC<ChildrenProps> = (props) => {\n const ResolvedRenderer = useCustomRendering<ChildrenProps, ChildrenClasses>(\n 'Children',\n defaultStyles,\n DefaultRenderer\n )\n return <ResolvedRenderer {...props} />\n}\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { DataTableProps } from '../customise/index.js';
|
|
3
|
-
export declare const DataTable:
|
|
1
|
+
import type { FC } from 'react';
|
|
2
|
+
import { type DataTableProps } from '../customise/index.js';
|
|
3
|
+
export declare const DataTable: FC<DataTableProps>;
|
|
4
4
|
//# sourceMappingURL=DataTable.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataTable.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/DataTable.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"DataTable.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/DataTable.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAG/B,OAAO,EAEL,KAAK,cAAc,EAGpB,MAAM,uBAAuB,CAAA;AAiC9B,eAAO,MAAM,SAAS,EAAE,EAAE,CAAC,cAAc,CAOxC,CAAA"}
|
|
@@ -1,18 +1,16 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { HighLight } from '../app/HighLight.js';
|
|
3
3
|
import { useCustomRendering, } from '../customise/index.js';
|
|
4
4
|
import defaultStyles from './DataTable.module.scss';
|
|
5
5
|
import isNumber from './isNumber.js';
|
|
6
6
|
const TableBody = ({ rows }) => {
|
|
7
|
-
return (
|
|
8
|
-
React.createElement(HighLight, { text: cell.value })))))))));
|
|
7
|
+
return (_jsx("tbody", { children: rows.map((row, i) => (_jsx("tr", { children: (row.cells || []).map((cell, j) => (_jsx("td", { style: { textAlign: isNumber(cell.value) ? 'right' : 'left' }, children: _jsx(HighLight, { text: cell.value }) }, j))) }, i))) }));
|
|
9
8
|
};
|
|
10
9
|
const DefaultRenderer = ({ dataTable, styles, }) => {
|
|
11
|
-
return (
|
|
12
|
-
React.createElement(TableBody, { rows: dataTable.rows || [] })));
|
|
10
|
+
return (_jsx("table", { className: styles.table, children: _jsx(TableBody, { rows: dataTable.rows || [] }) }));
|
|
13
11
|
};
|
|
14
12
|
export const DataTable = (props) => {
|
|
15
13
|
const ResolvedRenderer = useCustomRendering('DataTable', defaultStyles, DefaultRenderer);
|
|
16
|
-
return
|
|
14
|
+
return _jsx(ResolvedRenderer, { ...props });
|
|
17
15
|
};
|
|
18
16
|
//# sourceMappingURL=DataTable.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataTable.js","sourceRoot":"","sources":["../../../../src/components/gherkin/DataTable.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DataTable.js","sourceRoot":"","sources":["../../../../src/components/gherkin/DataTable.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAC/C,OAAO,EAIL,kBAAkB,GACnB,MAAM,uBAAuB,CAAA;AAC9B,OAAO,aAAa,MAAM,yBAAyB,CAAA;AACnD,OAAO,QAAQ,MAAM,eAAe,CAAA;AAEpC,MAAM,SAAS,GAEV,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE;IAChB,OAAO,CACL,0BACG,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC,CACpB,uBACG,CAAC,GAAG,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAClC,aAAY,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,EAAE,YACvE,KAAC,SAAS,IAAC,IAAI,EAAE,IAAI,CAAC,KAAK,GAAI,IADxB,CAAC,CAEL,CACN,CAAC,IALK,CAAC,CAML,CACN,CAAC,GACI,CACT,CAAA;AACH,CAAC,CAAA;AAED,MAAM,eAAe,GAAuD,CAAC,EAC3E,SAAS,EACT,MAAM,GACP,EAAE,EAAE;IACH,OAAO,CACL,gBAAO,SAAS,EAAE,MAAM,CAAC,KAAK,YAC5B,KAAC,SAAS,IAAC,IAAI,EAAE,SAAS,CAAC,IAAI,IAAI,EAAE,GAAI,GACnC,CACT,CAAA;AACH,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 { PickleTableRow, TableRow } from '@cucumber/messages'\nimport type { FC } from 'react'\n\nimport { HighLight } from '../app/HighLight.js'\nimport {\n type DataTableClasses,\n type DataTableProps,\n type DefaultComponent,\n useCustomRendering,\n} from '../customise/index.js'\nimport defaultStyles from './DataTable.module.scss'\nimport isNumber from './isNumber.js'\n\nconst TableBody: FC<{\n rows: readonly TableRow[] | readonly PickleTableRow[]\n}> = ({ rows }) => {\n return (\n <tbody>\n {rows.map((row, i) => (\n <tr key={i}>\n {(row.cells || []).map((cell, j) => (\n <td key={j} style={{ textAlign: isNumber(cell.value) ? 'right' : 'left' }}>\n <HighLight text={cell.value} />\n </td>\n ))}\n </tr>\n ))}\n </tbody>\n )\n}\n\nconst DefaultRenderer: DefaultComponent<DataTableProps, DataTableClasses> = ({\n dataTable,\n styles,\n}) => {\n return (\n <table className={styles.table}>\n <TableBody rows={dataTable.rows || []} />\n </table>\n )\n}\n\nexport const DataTable: FC<DataTableProps> = (props) => {\n const ResolvedRenderer = useCustomRendering<DataTableProps, DataTableClasses>(\n 'DataTable',\n defaultStyles,\n DefaultRenderer\n )\n return <ResolvedRenderer {...props} />\n}\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { DescriptionProps } from '../customise/index.js';
|
|
3
|
-
export declare const Description:
|
|
1
|
+
import type { FC } from 'react';
|
|
2
|
+
import { type DescriptionProps } from '../customise/index.js';
|
|
3
|
+
export declare const Description: FC<DescriptionProps>;
|
|
4
4
|
//# sourceMappingURL=Description.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Description.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/Description.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"Description.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/Description.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAG/B,OAAO,EAGL,KAAK,gBAAgB,EAEtB,MAAM,uBAAuB,CAAA;AAiB9B,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CAO5C,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { HighLight } from '../app/HighLight.js';
|
|
3
3
|
import { useCustomRendering, } from '../customise/index.js';
|
|
4
4
|
import defaultStyles from './Description.module.scss';
|
|
@@ -6,11 +6,10 @@ const DefaultRenderer = ({ description, styles, }) => {
|
|
|
6
6
|
if (!description || description.trim() === '') {
|
|
7
7
|
return null;
|
|
8
8
|
}
|
|
9
|
-
return (
|
|
10
|
-
React.createElement(HighLight, { text: description, markdown: true })));
|
|
9
|
+
return (_jsx("div", { className: styles.content, children: _jsx(HighLight, { text: description, markdown: true }) }));
|
|
11
10
|
};
|
|
12
11
|
export const Description = (props) => {
|
|
13
12
|
const ResolvedRenderer = useCustomRendering('Description', defaultStyles, DefaultRenderer);
|
|
14
|
-
return
|
|
13
|
+
return _jsx(ResolvedRenderer, { ...props });
|
|
15
14
|
};
|
|
16
15
|
//# sourceMappingURL=Description.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Description.js","sourceRoot":"","sources":["../../../../src/components/gherkin/Description.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Description.js","sourceRoot":"","sources":["../../../../src/components/gherkin/Description.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAC/C,OAAO,EAIL,kBAAkB,GACnB,MAAM,uBAAuB,CAAA;AAC9B,OAAO,aAAa,MAAM,2BAA2B,CAAA;AAErD,MAAM,eAAe,GAA2D,CAAC,EAC/E,WAAW,EACX,MAAM,GACP,EAAE,EAAE;IACH,IAAI,CAAC,WAAW,IAAI,WAAW,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC;QAC9C,OAAO,IAAI,CAAA;IACb,CAAC;IACD,OAAO,CACL,cAAK,SAAS,EAAE,MAAM,CAAC,OAAO,YAC5B,KAAC,SAAS,IAAC,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,GAAI,GAC5C,CACP,CAAA;AACH,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,WAAW,GAAyB,CAAC,KAAK,EAAE,EAAE;IACzD,MAAM,gBAAgB,GAAG,kBAAkB,CACzC,aAAa,EACb,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 DescriptionClasses,\n type DescriptionProps,\n useCustomRendering,\n} from '../customise/index.js'\nimport defaultStyles from './Description.module.scss'\n\nconst DefaultRenderer: DefaultComponent<DescriptionProps, DescriptionClasses> = ({\n description,\n styles,\n}) => {\n if (!description || description.trim() === '') {\n return null\n }\n return (\n <div className={styles.content}>\n <HighLight text={description} markdown={true} />\n </div>\n )\n}\n\nexport const Description: FC<DescriptionProps> = (props) => {\n const ResolvedRenderer = useCustomRendering<DescriptionProps, DescriptionClasses>(\n 'Description',\n defaultStyles,\n DefaultRenderer\n )\n return <ResolvedRenderer {...props} />\n}\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { DocStringProps } from '../customise/index.js';
|
|
3
|
-
export declare const DocString:
|
|
1
|
+
import type { FC } from 'react';
|
|
2
|
+
import { type DocStringProps } from '../customise/index.js';
|
|
3
|
+
export declare const DocString: FC<DocStringProps>;
|
|
4
4
|
//# sourceMappingURL=DocString.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DocString.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/DocString.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"DocString.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/DocString.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAG/B,OAAO,EAGL,KAAK,cAAc,EAEpB,MAAM,uBAAuB,CAAA;AAc9B,eAAO,MAAM,SAAS,EAAE,EAAE,CAAC,cAAc,CAOxC,CAAA"}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { HighLight } from '../app/HighLight.js';
|
|
3
3
|
import { useCustomRendering, } from '../customise/index.js';
|
|
4
4
|
import defaultStyles from './DocString.module.scss';
|
|
5
5
|
const DefaultRenderer = ({ docString, styles, }) => {
|
|
6
|
-
return (
|
|
7
|
-
React.createElement(HighLight, { text: docString.content })));
|
|
6
|
+
return (_jsx("pre", { className: styles.docString, children: _jsx(HighLight, { text: docString.content }) }));
|
|
8
7
|
};
|
|
9
8
|
export const DocString = (props) => {
|
|
10
9
|
const ResolvedRenderer = useCustomRendering('DocString', defaultStyles, DefaultRenderer);
|
|
11
|
-
return
|
|
10
|
+
return _jsx(ResolvedRenderer, { ...props });
|
|
12
11
|
};
|
|
13
12
|
//# sourceMappingURL=DocString.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DocString.js","sourceRoot":"","sources":["../../../../src/components/gherkin/DocString.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DocString.js","sourceRoot":"","sources":["../../../../src/components/gherkin/DocString.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAC/C,OAAO,EAIL,kBAAkB,GACnB,MAAM,uBAAuB,CAAA;AAC9B,OAAO,aAAa,MAAM,yBAAyB,CAAA;AAEnD,MAAM,eAAe,GAAuD,CAAC,EAC3E,SAAS,EACT,MAAM,GACP,EAAE,EAAE;IACH,OAAO,CACL,cAAK,SAAS,EAAE,MAAM,CAAC,SAAS,YAC9B,KAAC,SAAS,IAAC,IAAI,EAAE,SAAS,CAAC,OAAO,GAAI,GAClC,CACP,CAAA;AACH,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 { HighLight } from '../app/HighLight.js'\nimport {\n type DefaultComponent,\n type DocStringClasses,\n type DocStringProps,\n useCustomRendering,\n} from '../customise/index.js'\nimport defaultStyles from './DocString.module.scss'\n\nconst DefaultRenderer: DefaultComponent<DocStringProps, DocStringClasses> = ({\n docString,\n styles,\n}) => {\n return (\n <pre className={styles.docString}>\n <HighLight text={docString.content} />\n </pre>\n )\n}\n\nexport const DocString: FC<DocStringProps> = (props) => {\n const ResolvedRenderer = useCustomRendering<DocStringProps, DocStringClasses>(\n 'DocString',\n defaultStyles,\n DefaultRenderer\n )\n return <ResolvedRenderer {...props} />\n}\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { ErrorMessageProps } from '../customise/index.js';
|
|
1
|
+
import type { FC } from 'react';
|
|
2
|
+
import { type ErrorMessageProps } from '../customise/index.js';
|
|
3
3
|
export declare const ErrorMessage: FC<ErrorMessageProps>;
|
|
4
4
|
//# sourceMappingURL=ErrorMessage.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ErrorMessage.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/ErrorMessage.tsx"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"ErrorMessage.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/ErrorMessage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAG/B,OAAO,EAGL,KAAK,iBAAiB,EAEvB,MAAM,uBAAuB,CAAA;AAiB9B,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,iBAAiB,CAO9C,CAAA"}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { CopyButton } from '../app/CopyButton.js';
|
|
2
3
|
import { useCustomRendering, } from '../customise/index.js';
|
|
3
4
|
import defaultStyles from './ErrorMessage.module.scss';
|
|
4
5
|
const DefaultRenderer = ({ message, children, styles, }) => {
|
|
5
|
-
|
|
6
|
+
const text = message ?? (typeof children === 'string' ? children : '');
|
|
7
|
+
return (_jsxs("div", { className: styles.message, children: [_jsx("pre", { children: message ?? children }), _jsx(CopyButton, { className: styles.copyButton, text: text })] }));
|
|
6
8
|
};
|
|
7
9
|
export const ErrorMessage = ({ children, ...props }) => {
|
|
8
10
|
const ResolvedRenderer = useCustomRendering('ErrorMessage', defaultStyles, DefaultRenderer);
|
|
9
|
-
return
|
|
11
|
+
return _jsx(ResolvedRenderer, { ...props, children: children });
|
|
10
12
|
};
|
|
11
13
|
//# sourceMappingURL=ErrorMessage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ErrorMessage.js","sourceRoot":"","sources":["../../../../src/components/gherkin/ErrorMessage.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ErrorMessage.js","sourceRoot":"","sources":["../../../../src/components/gherkin/ErrorMessage.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACjD,OAAO,EAIL,kBAAkB,GACnB,MAAM,uBAAuB,CAAA;AAC9B,OAAO,aAAa,MAAM,4BAA4B,CAAA;AAEtD,MAAM,eAAe,GAA6D,CAAC,EACjF,OAAO,EACP,QAAQ,EACR,MAAM,GACP,EAAE,EAAE;IACH,MAAM,IAAI,GAAG,OAAO,IAAI,CAAC,OAAO,QAAQ,KAAK,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAA;IACtE,OAAO,CACL,eAAK,SAAS,EAAE,MAAM,CAAC,OAAO,aAC5B,wBAAM,OAAO,IAAI,QAAQ,GAAO,EAChC,KAAC,UAAU,IAAC,SAAS,EAAE,MAAM,CAAC,UAAU,EAAE,IAAI,EAAE,IAAI,GAAI,IACpD,CACP,CAAA;AACH,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,YAAY,GAA0B,CAAC,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE;IAC5E,MAAM,gBAAgB,GAAG,kBAAkB,CACzC,cAAc,EACd,aAAa,EACb,eAAe,CAChB,CAAA;IACD,OAAO,KAAC,gBAAgB,OAAK,KAAK,YAAG,QAAQ,GAAoB,CAAA;AACnE,CAAC,CAAA","sourcesContent":["import type { FC } from 'react'\n\nimport { CopyButton } from '../app/CopyButton.js'\nimport {\n type DefaultComponent,\n type ErrorMessageClasses,\n type ErrorMessageProps,\n useCustomRendering,\n} from '../customise/index.js'\nimport defaultStyles from './ErrorMessage.module.scss'\n\nconst DefaultRenderer: DefaultComponent<ErrorMessageProps, ErrorMessageClasses> = ({\n message,\n children,\n styles,\n}) => {\n const text = message ?? (typeof children === 'string' ? children : '')\n return (\n <div className={styles.message}>\n <pre>{message ?? children}</pre>\n <CopyButton className={styles.copyButton} text={text} />\n </div>\n )\n}\n\nexport const ErrorMessage: FC<ErrorMessageProps> = ({ children, ...props }) => {\n const ResolvedRenderer = useCustomRendering<ErrorMessageProps, ErrorMessageClasses>(\n 'ErrorMessage',\n defaultStyles,\n DefaultRenderer\n )\n return <ResolvedRenderer {...props}>{children}</ResolvedRenderer>\n}\n"]}
|
|
@@ -1,12 +1,24 @@
|
|
|
1
1
|
@use '../../styles/theming';
|
|
2
2
|
|
|
3
|
+
.copyButton {
|
|
4
|
+
position: absolute;
|
|
5
|
+
top: 0.5em;
|
|
6
|
+
right: 0.5em;
|
|
7
|
+
color: theming.$errorTextColor;
|
|
8
|
+
}
|
|
9
|
+
|
|
3
10
|
.message {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
padding: 0.666em 0.75em;
|
|
7
|
-
border-radius: 0.25em;
|
|
8
|
-
margin: 0;
|
|
11
|
+
position: relative;
|
|
12
|
+
width: fit-content;
|
|
9
13
|
overflow-x: auto;
|
|
10
14
|
background-color: theming.$errorBackgroundColor;
|
|
11
15
|
color: theming.$errorTextColor;
|
|
16
|
+
|
|
17
|
+
pre {
|
|
18
|
+
white-space: pre-wrap;
|
|
19
|
+
font-size: 0.875em;
|
|
20
|
+
padding: 0.666em 2.25em 0.666em 0.75em;
|
|
21
|
+
border-radius: 0.25em;
|
|
22
|
+
margin: 0;
|
|
23
|
+
}
|
|
12
24
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { ExamplesProps } from '../customise/index.js';
|
|
3
|
-
export declare const Examples:
|
|
1
|
+
import type { FC } from 'react';
|
|
2
|
+
import { type ExamplesProps } from '../customise/index.js';
|
|
3
|
+
export declare const Examples: FC<ExamplesProps>;
|
|
4
4
|
//# sourceMappingURL=Examples.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Examples.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/Examples.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Examples.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/Examples.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAI/B,OAAO,EAEL,KAAK,aAAa,EAEnB,MAAM,uBAAuB,CAAA;AA2B9B,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAC,aAAa,CAOtC,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useQueries } from '../../hooks/index.js';
|
|
3
3
|
import { useTestCaseStarted } from '../../hooks/useTestCaseStarted.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';
|
|
@@ -10,21 +10,13 @@ import { Keyword } from './Keyword.js';
|
|
|
10
10
|
import { Tags } from './Tags.js';
|
|
11
11
|
import { Title } from './Title.js';
|
|
12
12
|
const DefaultRenderer = ({ examples }) => {
|
|
13
|
-
return (
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
React.createElement(Keyword, null,
|
|
17
|
-
examples.keyword,
|
|
18
|
-
":"),
|
|
19
|
-
React.createElement("span", null, examples.name)),
|
|
20
|
-
React.createElement(Description, { description: examples.description }),
|
|
21
|
-
React.createElement(Children, null, examples.tableBody.map((tableRow) => {
|
|
22
|
-
return React.createElement(Example, { key: tableRow.id, tableRow: tableRow });
|
|
23
|
-
}))));
|
|
13
|
+
return (_jsxs("section", { children: [_jsx(Tags, { tags: examples.tags }), _jsxs(Title, { header: "h2", id: examples.id, children: [_jsxs(Keyword, { children: [examples.keyword, ":"] }), _jsx("span", { children: examples.name })] }), _jsx(Description, { description: examples.description }), _jsx(Children, { children: examples.tableBody.map((tableRow) => {
|
|
14
|
+
return _jsx(Example, { tableRow: tableRow }, tableRow.id);
|
|
15
|
+
}) })] }));
|
|
24
16
|
};
|
|
25
17
|
export const Examples = (props) => {
|
|
26
18
|
const ResolvedRenderer = useCustomRendering('Examples', defaultStyles, DefaultRenderer);
|
|
27
|
-
return
|
|
19
|
+
return _jsx(ResolvedRenderer, { ...props });
|
|
28
20
|
};
|
|
29
21
|
const Example = ({ tableRow }) => {
|
|
30
22
|
const { cucumberQuery } = useQueries();
|
|
@@ -32,10 +24,7 @@ const Example = ({ tableRow }) => {
|
|
|
32
24
|
if (testCaseStarted) {
|
|
33
25
|
const lineage = cucumberQuery.findLineageBy(testCaseStarted);
|
|
34
26
|
const name = `#${(lineage.examplesIndex ?? 0) + 1}.${(lineage.exampleIndex ?? 0) + 1}`;
|
|
35
|
-
return (
|
|
36
|
-
React.createElement(Title, { header: "h3", id: tableRow.id },
|
|
37
|
-
React.createElement("span", { className: defaultStyles.exampleNumber }, name)),
|
|
38
|
-
React.createElement(TestCaseOutcome, { testCaseStarted: testCaseStarted })));
|
|
27
|
+
return (_jsxs("section", { children: [_jsx(Title, { header: "h3", id: tableRow.id, children: _jsx("span", { className: defaultStyles.exampleNumber, children: name }) }), _jsx(TestCaseOutcome, { testCaseStarted: testCaseStarted })] }));
|
|
39
28
|
}
|
|
40
29
|
return null;
|
|
41
30
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Examples.js","sourceRoot":"","sources":["../../../../src/components/gherkin/Examples.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Examples.js","sourceRoot":"","sources":["../../../../src/components/gherkin/Examples.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAA;AACtE,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,aAAa,MAAM,wBAAwB,CAAA;AAClD,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,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,yBAAO,QAAQ,CAAC,IAAI,GAAQ,IACtB,EACR,KAAC,WAAW,IAAC,WAAW,EAAE,QAAQ,CAAC,WAAW,GAAI,EAClD,KAAC,QAAQ,cACN,QAAQ,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE;oBACnC,OAAO,KAAC,OAAO,IAAmB,QAAQ,EAAE,QAAQ,IAA/B,QAAQ,CAAC,EAAE,CAAwB,CAAA;gBAC1D,CAAC,CAAC,GACO,IACH,CACX,CAAA;AACH,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,QAAQ,GAAsB,CAAC,KAAK,EAAE,EAAE;IACnD,MAAM,gBAAgB,GAAG,kBAAkB,CACzC,UAAU,EACV,aAAa,EACb,eAAe,CAChB,CAAA;IACD,OAAO,KAAC,gBAAgB,OAAK,KAAK,GAAI,CAAA;AACxC,CAAC,CAAA;AAED,MAAM,OAAO,GAA+B,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC3D,MAAM,EAAE,aAAa,EAAE,GAAG,UAAU,EAAE,CAAA;IACtC,MAAM,eAAe,GAAG,kBAAkB,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAA;IACvD,IAAI,eAAe,EAAE,CAAC;QACpB,MAAM,OAAO,GAAG,aAAa,CAAC,aAAa,CAAC,eAAe,CAAY,CAAA;QACvE,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,IAAI,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,YAAY,IAAI,CAAC,CAAC,GAAG,CAAC,EAAE,CAAA;QACtF,OAAO,CACL,8BACE,KAAC,KAAK,IAAC,MAAM,EAAC,IAAI,EAAC,EAAE,EAAE,QAAQ,CAAC,EAAE,YAChC,eAAM,SAAS,EAAE,aAAa,CAAC,aAAa,YAAG,IAAI,GAAQ,GACrD,EACR,KAAC,eAAe,IAAC,eAAe,EAAE,eAAe,GAAI,IAC7C,CACX,CAAA;IACH,CAAC;IACD,OAAO,IAAI,CAAA;AACb,CAAC,CAAA","sourcesContent":["import type { TableRow } from '@cucumber/messages'\nimport type { Lineage } from '@cucumber/query'\n\nimport type { FC } from 'react'\n\nimport { useQueries } from '../../hooks/index.js'\nimport { useTestCaseStarted } from '../../hooks/useTestCaseStarted.js'\nimport {\n type DefaultComponent,\n type ExamplesProps,\n useCustomRendering,\n} from '../customise/index.js'\nimport { TestCaseOutcome } from '../results/index.js'\nimport { Children } from './Children.js'\nimport { Description } from './Description.js'\nimport defaultStyles from './Examples.module.scss'\nimport { Keyword } from './Keyword.js'\nimport { Tags } from './Tags.js'\nimport { Title } from './Title.js'\n\nconst DefaultRenderer: DefaultComponent<ExamplesProps> = ({ examples }) => {\n return (\n <section>\n <Tags tags={examples.tags} />\n <Title header=\"h2\" id={examples.id}>\n <Keyword>{examples.keyword}:</Keyword>\n <span>{examples.name}</span>\n </Title>\n <Description description={examples.description} />\n <Children>\n {examples.tableBody.map((tableRow) => {\n return <Example key={tableRow.id} tableRow={tableRow} />\n })}\n </Children>\n </section>\n )\n}\n\nexport const Examples: FC<ExamplesProps> = (props) => {\n const ResolvedRenderer = useCustomRendering<ExamplesProps>(\n 'Examples',\n defaultStyles,\n DefaultRenderer\n )\n return <ResolvedRenderer {...props} />\n}\n\nconst Example: FC<{ tableRow: TableRow }> = ({ tableRow }) => {\n const { cucumberQuery } = useQueries()\n const testCaseStarted = useTestCaseStarted(tableRow.id)\n if (testCaseStarted) {\n const lineage = cucumberQuery.findLineageBy(testCaseStarted) as Lineage\n const name = `#${(lineage.examplesIndex ?? 0) + 1}.${(lineage.exampleIndex ?? 0) + 1}`\n return (\n <section>\n <Title header=\"h3\" id={tableRow.id}>\n <span className={defaultStyles.exampleNumber}>{name}</span>\n </Title>\n <TestCaseOutcome testCaseStarted={testCaseStarted} />\n </section>\n )\n }\n return null\n}\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { FeatureProps } from '../customise/index.js';
|
|
3
|
-
export declare const Feature:
|
|
1
|
+
import type { FC } from 'react';
|
|
2
|
+
import { type FeatureProps } from '../customise/index.js';
|
|
3
|
+
export declare const Feature: FC<FeatureProps>;
|
|
4
4
|
//# sourceMappingURL=Feature.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Feature.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/Feature.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"Feature.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/Feature.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAG/B,OAAO,EAAyB,KAAK,YAAY,EAAsB,MAAM,uBAAuB,CAAA;AAqCpG,eAAO,MAAM,OAAO,EAAE,EAAE,CAAC,YAAY,CAGpC,CAAA"}
|