@cucumber/react-components 24.3.0 → 24.5.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/README.md +2 -2
- package/dist/{src/CucumberQueryContext.d.ts → CucumberQueryContext.d.ts} +0 -1
- package/dist/CucumberQueryContext.js +4 -0
- package/dist/{src/GherkinQueryContext.d.ts → GherkinQueryContext.d.ts} +0 -1
- package/dist/GherkinQueryContext.js +4 -0
- package/dist/{src/SearchContext.d.ts → SearchContext.d.ts} +0 -1
- package/dist/SearchContext.js +10 -0
- package/dist/{src/ciCommitLink.d.ts → ciCommitLink.d.ts} +0 -1
- package/dist/ciCommitLink.js +12 -0
- package/dist/{src/components → components}/app/CICommitLink.d.ts +0 -1
- package/dist/components/app/CICommitLink.js +16 -0
- package/dist/{src/components → components}/app/CIJobLink.d.ts +0 -1
- package/dist/components/app/CIJobLink.js +10 -0
- package/dist/{src/components → components}/app/ControlledSearchProvider.d.ts +0 -1
- package/dist/components/app/ControlledSearchProvider.js +39 -0
- package/dist/{src/components → components}/app/CopyButton.d.ts +0 -1
- package/dist/components/app/CopyButton.js +23 -0
- package/dist/{src/components → components}/app/DocumentAccordion.d.ts +0 -1
- package/dist/components/app/DocumentAccordion.js +22 -0
- package/dist/{src/components → components}/app/EnvelopesProvider.d.ts +0 -1
- package/dist/components/app/EnvelopesProvider.js +18 -0
- package/dist/{src/components → components}/app/ExecutionSummary.d.ts +0 -1
- package/dist/components/app/ExecutionSummary.js +38 -0
- package/dist/{src/components → components}/app/FilteredDocuments.d.ts +0 -1
- package/dist/components/app/FilteredDocuments.js +15 -0
- package/dist/{src/components → components}/app/GherkinDocumentList.d.ts +0 -1
- package/dist/components/app/GherkinDocumentList.js +23 -0
- package/dist/{src/components → components}/app/Header.d.ts +0 -1
- package/dist/components/app/Header.js +12 -0
- package/dist/{src/components → components}/app/HealthChart.d.ts +0 -1
- package/dist/components/app/HealthChart.js +14 -0
- package/dist/{src/components → components}/app/HighLight.d.ts +0 -1
- package/dist/components/app/HighLight.js +38 -0
- package/dist/{src/components → components}/app/ImplementationIcon.d.ts +0 -1
- package/dist/components/app/ImplementationIcon.js +10 -0
- package/dist/{src/components → components}/app/InMemorySearchProvider.d.ts +0 -1
- package/dist/components/app/InMemorySearchProvider.js +11 -0
- package/dist/{src/components → components}/app/NavigationButton.d.ts +0 -1
- package/dist/components/app/NavigationButton.js +6 -0
- package/dist/{src/components → components}/app/OSIcon.d.ts +0 -1
- package/dist/components/app/OSIcon.js +18 -0
- package/dist/{src/components → components}/app/QueriesProvider.d.ts +0 -1
- package/dist/components/app/QueriesProvider.js +7 -0
- package/dist/{src/components → components}/app/Report.d.ts +0 -1
- package/dist/components/app/Report.js +10 -0
- package/dist/{src/components → components}/app/RuntimeIcon.d.ts +0 -1
- package/dist/components/app/RuntimeIcon.js +18 -0
- package/dist/{src/components → components}/app/SearchBar.d.ts +0 -1
- package/dist/components/app/SearchBar.js +33 -0
- package/dist/{src/components → components}/app/StatusesSummary.d.ts +0 -1
- package/dist/components/app/StatusesSummary.js +16 -0
- package/dist/{src/components → components}/app/TestRunHooks.d.ts +0 -1
- package/dist/components/app/TestRunHooks.js +14 -0
- package/dist/{src/components → components}/app/UrlSearchProvider.d.ts +0 -1
- package/dist/components/app/UrlSearchProvider.js +29 -0
- package/dist/{src/components → components}/app/findMostSevereTestStepResultStatus.d.ts +0 -1
- package/dist/components/app/findMostSevereTestStepResultStatus.js +17 -0
- package/dist/{src/components → components}/app/icons/CucumberLogo.d.ts +0 -1
- package/dist/components/app/icons/CucumberLogo.js +5 -0
- package/dist/{src/components → components}/app/icons/Jvm.d.ts +0 -1
- package/dist/components/app/icons/Jvm.js +5 -0
- package/dist/{src/components → components}/app/icons/Linux.d.ts +0 -1
- package/dist/components/app/icons/Linux.js +5 -0
- package/dist/{src/components → components}/app/icons/MacOS.d.ts +0 -1
- package/dist/components/app/icons/MacOS.js +5 -0
- package/dist/{src/components → components}/app/icons/NodeJs.d.ts +0 -1
- package/dist/components/app/icons/NodeJs.js +5 -0
- package/dist/{src/components → components}/app/icons/Ruby.d.ts +0 -1
- package/dist/components/app/icons/Ruby.js +5 -0
- package/dist/{src/components → components}/app/icons/Windows.d.ts +0 -1
- package/dist/components/app/icons/Windows.js +5 -0
- package/dist/{src/components/app/index.js → components/app/index.d.ts} +0 -1
- package/dist/components/app/index.js +15 -0
- package/dist/{src/components → components}/app/makeSetupString.d.ts +0 -1
- package/dist/components/app/makeSetupString.js +21 -0
- package/dist/{src/components → components}/app/markdownComponents.d.ts +1 -2
- package/dist/components/app/markdownComponents.js +6 -0
- package/dist/{src/components → components}/app/rehypePlugins.d.ts +0 -1
- package/dist/components/app/rehypePlugins.js +9 -0
- package/dist/{src/components → components}/app/remarkPlugins.d.ts +0 -1
- package/dist/components/app/remarkPlugins.js +4 -0
- package/dist/{src/components → components}/customise/CustomRendering.d.ts +0 -1
- package/dist/components/customise/CustomRendering.js +35 -0
- package/dist/{src/components/customise/index.js → components/customise/index.d.ts} +0 -1
- package/dist/components/customise/index.js +3 -0
- package/dist/{src/components → components}/customise/theming.d.ts +0 -1
- package/dist/components/customise/theming.js +2 -0
- package/dist/{src/components → components}/gherkin/Anchor.d.ts +0 -1
- package/dist/components/gherkin/Anchor.js +13 -0
- package/dist/{src/components → components}/gherkin/Background.d.ts +0 -1
- package/dist/components/gherkin/Background.js +18 -0
- package/dist/{src/components → components}/gherkin/Children.d.ts +0 -1
- package/dist/components/gherkin/Children.js +11 -0
- package/dist/{src/components → components}/gherkin/DataTable.d.ts +0 -1
- package/dist/components/gherkin/DataTable.js +16 -0
- package/dist/{src/components → components}/gherkin/Description.d.ts +0 -1
- package/dist/components/gherkin/Description.js +15 -0
- package/dist/{src/components → components}/gherkin/DocString.d.ts +0 -1
- package/dist/components/gherkin/DocString.js +12 -0
- package/dist/{src/components → components}/gherkin/ErrorMessage.d.ts +0 -1
- package/dist/components/gherkin/ErrorMessage.js +13 -0
- package/dist/{src/components → components}/gherkin/Examples.d.ts +0 -1
- package/dist/components/gherkin/Examples.js +31 -0
- package/dist/{src/components → components}/gherkin/Feature.d.ts +0 -1
- package/dist/components/gherkin/Feature.js +30 -0
- package/dist/{src/components → components}/gherkin/GherkinDocument.d.ts +0 -1
- package/dist/components/gherkin/GherkinDocument.js +11 -0
- package/dist/{src/components → components}/gherkin/Keyword.d.ts +0 -1
- package/dist/components/gherkin/Keyword.js +11 -0
- package/dist/{src/components → components}/gherkin/Parameter.d.ts +0 -1
- package/dist/components/gherkin/Parameter.js +11 -0
- package/dist/{src/components → components}/gherkin/Rule.d.ts +0 -1
- package/dist/components/gherkin/Rule.js +26 -0
- package/dist/{src/components → components}/gherkin/Scenario.d.ts +0 -1
- package/dist/components/gherkin/Scenario.js +22 -0
- package/dist/{src/components → components}/gherkin/StatusIcon.d.ts +0 -1
- package/dist/components/gherkin/StatusIcon.js +24 -0
- package/dist/{src/components → components}/gherkin/StepsList.d.ts +0 -1
- package/dist/components/gherkin/StepsList.js +6 -0
- package/dist/{src/components → components}/gherkin/Tags.d.ts +0 -1
- package/dist/components/gherkin/Tags.js +15 -0
- package/dist/{src/components → components}/gherkin/Title.d.ts +0 -1
- package/dist/components/gherkin/Title.js +12 -0
- package/dist/{src/components → components}/gherkin/attachment/Attachment.d.ts +0 -1
- package/dist/components/gherkin/attachment/Attachment.js +45 -0
- package/dist/{src/components → components}/gherkin/attachment/Image.d.ts +0 -1
- package/dist/components/gherkin/attachment/Image.js +16 -0
- package/dist/{src/components → components}/gherkin/attachment/Links.d.ts +0 -1
- package/dist/components/gherkin/attachment/Links.js +14 -0
- package/dist/{src/components → components}/gherkin/attachment/Log.d.ts +0 -1
- package/dist/components/gherkin/attachment/Log.js +12 -0
- package/dist/{src/components → components}/gherkin/attachment/Text.d.ts +0 -1
- package/dist/components/gherkin/attachment/Text.js +16 -0
- package/dist/{src/components → components}/gherkin/attachment/Unknown.d.ts +0 -1
- package/dist/components/gherkin/attachment/Unknown.js +61 -0
- package/dist/{src/components → components}/gherkin/attachment/Video.d.ts +0 -1
- package/dist/components/gherkin/attachment/Video.js +16 -0
- package/dist/{src/components → components}/gherkin/attachment/attachmentFilename.d.ts +0 -1
- package/dist/components/gherkin/attachment/attachmentFilename.js +12 -0
- package/dist/{src/components → components}/gherkin/attachment/base64Decode.d.ts +0 -1
- package/dist/components/gherkin/attachment/base64Decode.js +19 -0
- package/dist/{src/components/gherkin/attachment/index.js → components/gherkin/attachment/index.d.ts} +0 -1
- package/dist/components/gherkin/attachment/index.js +2 -0
- package/dist/{src/components → components}/gherkin/attachment/useText.d.ts +0 -1
- package/dist/components/gherkin/attachment/useText.js +28 -0
- package/dist/{src/components → components}/gherkin/composeHookStepTitle.d.ts +0 -1
- package/dist/components/gherkin/composeHookStepTitle.js +23 -0
- package/dist/{src/components → components}/gherkin/composePickleStepTitle.d.ts +0 -1
- package/dist/components/gherkin/composePickleStepTitle.js +36 -0
- package/dist/{src/components/gherkin/index.js → components/gherkin/index.d.ts} +0 -1
- package/dist/components/gherkin/index.js +19 -0
- package/dist/{src/components → components}/gherkin/isNumber.d.ts +0 -1
- package/dist/components/gherkin/isNumber.js +7 -0
- package/dist/components/gherkin/statusName.d.ts +3 -0
- package/dist/components/gherkin/statusName.js +4 -0
- package/dist/{src/components/index.js → components/index.d.ts} +0 -1
- package/dist/components/index.js +4 -0
- package/dist/{src/components → components}/results/AmbiguousResult.d.ts +0 -1
- package/dist/components/results/AmbiguousResult.js +11 -0
- package/dist/{src/components → components}/results/FailedResult.d.ts +0 -1
- package/dist/components/results/FailedResult.js +15 -0
- package/dist/{src/components → components}/results/PendingResult.d.ts +0 -1
- package/dist/components/results/PendingResult.js +12 -0
- package/dist/{src/components → components}/results/ResultNote.d.ts +0 -1
- package/dist/components/results/ResultNote.js +6 -0
- package/dist/{src/components → components}/results/SkippedResult.d.ts +0 -1
- package/dist/components/results/SkippedResult.js +12 -0
- package/dist/{src/components → components}/results/SourceReference.d.ts +0 -1
- package/dist/components/results/SourceReference.js +13 -0
- package/dist/{src/components → components}/results/TestCaseOutcome.d.ts +0 -1
- package/dist/components/results/TestCaseOutcome.js +32 -0
- package/dist/{src/components → components}/results/TestRunHookOutcome.d.ts +0 -1
- package/dist/components/results/TestRunHookOutcome.js +11 -0
- package/dist/{src/components → components}/results/TestStepAttachments.d.ts +0 -1
- package/dist/components/results/TestStepAttachments.js +12 -0
- package/dist/{src/components → components}/results/TestStepDuration.d.ts +0 -1
- package/dist/components/results/TestStepDuration.js +19 -0
- package/dist/{src/components → components}/results/TestStepOutcome.d.ts +0 -1
- package/dist/components/results/TestStepOutcome.js +43 -0
- package/dist/{src/components → components}/results/UndefinedResult.d.ts +0 -1
- package/dist/components/results/UndefinedResult.js +18 -0
- package/dist/{src/components/results/index.js → components/results/index.d.ts} +0 -1
- package/dist/components/results/index.js +3 -0
- package/dist/{src/hooks/helpers.d.ts → ensure.d.ts} +0 -1
- package/dist/ensure.js +7 -0
- package/dist/{src/formatExecutionDistance.d.ts → formatExecutionDistance.d.ts} +0 -1
- package/dist/formatExecutionDistance.js +7 -0
- package/dist/{src/formatExecutionDuration.d.ts → formatExecutionDuration.d.ts} +0 -1
- package/dist/formatExecutionDuration.js +12 -0
- package/dist/{src/formatPassedQuantity.d.ts → formatPassedQuantity.d.ts} +0 -1
- package/dist/formatPassedQuantity.js +4 -0
- package/dist/{src/formatStatusRate.d.ts → formatStatusRate.d.ts} +0 -1
- package/dist/formatStatusRate.js +9 -0
- package/dist/{src/hooks/index.js → hooks/index.d.ts} +0 -1
- package/dist/hooks/index.js +3 -0
- package/dist/{src/hooks → hooks}/useFilteredDocuments.d.ts +1 -2
- package/dist/hooks/useFilteredDocuments.js +67 -0
- package/dist/hooks/useFilteredTestCases.d.ts +6 -0
- package/dist/hooks/useFilteredTestCases.js +36 -0
- package/dist/{src/hooks → hooks}/useMostSevereStatusByUri.d.ts +0 -1
- package/dist/hooks/useMostSevereStatusByUri.js +25 -0
- package/dist/{src/hooks → hooks}/useQueries.d.ts +0 -1
- package/dist/hooks/useQueries.js +9 -0
- package/dist/{src/hooks → hooks}/useResultStatistics.d.ts +0 -1
- package/dist/hooks/useResultStatistics.js +24 -0
- package/dist/{src/hooks → hooks}/useSearch.d.ts +0 -1
- package/dist/hooks/useSearch.js +6 -0
- package/dist/hooks/useSearchResult.d.ts +26 -0
- package/dist/hooks/useSearchResult.js +58 -0
- package/dist/{src/hooks → hooks}/useTestCaseStarted.d.ts +0 -1
- package/dist/hooks/useTestCaseStarted.js +20 -0
- package/dist/{src/hooks → hooks}/useTestRunHooks.d.ts +0 -1
- package/dist/hooks/useTestRunHooks.js +14 -0
- package/dist/{src/index.js → index.d.ts} +0 -1
- package/dist/index.js +3 -0
- package/dist/{src/isTagExpression.d.ts → isTagExpression.d.ts} +0 -1
- package/dist/isTagExpression.js +5 -0
- package/dist/{src/search → search}/FeatureSearch.d.ts +0 -1
- package/dist/search/FeatureSearch.js +39 -0
- package/dist/{src/search → search}/ScenarioLikeSearch.d.ts +0 -1
- package/dist/search/ScenarioLikeSearch.js +37 -0
- package/dist/{src/search → search}/StepSearch.d.ts +0 -1
- package/dist/search/StepSearch.js +40 -0
- package/dist/{src/search → search}/TextSearch.d.ts +1 -2
- package/dist/search/TextSearch.js +67 -0
- package/dist/{src/search → search}/createSearchIndex.d.ts +0 -1
- package/dist/search/createSearchIndex.js +10 -0
- package/dist/{src/search → search}/deriveLineageConstraints.d.ts +0 -1
- package/dist/search/deriveLineageConstraints.js +38 -0
- package/dist/search/filterAndExpandTestCaseEvents.d.ts +20 -0
- package/dist/search/filterAndExpandTestCaseEvents.js +32 -0
- package/dist/{src/search → search}/index.d.ts +2 -1
- package/dist/search/index.js +7 -0
- package/dist/{src/search → search}/pruneGherkinDocuments.d.ts +3 -4
- package/dist/search/pruneGherkinDocuments.js +179 -0
- package/dist/search/pruneTestCaseEvents.d.ts +16 -0
- package/dist/search/pruneTestCaseEvents.js +41 -0
- package/dist/{src/search → search}/types.d.ts +5 -6
- package/dist/search/types.js +2 -0
- package/dist/{src/statuses.d.ts → statuses.d.ts} +0 -1
- package/dist/statuses.js +12 -0
- package/dist/{src/toRepositoryId.d.ts → toRepositoryId.d.ts} +0 -1
- package/dist/toRepositoryId.js +12 -0
- package/package.json +30 -32
- package/dist/src/CucumberQueryContext.d.ts.map +0 -1
- package/dist/src/CucumberQueryContext.js +0 -4
- package/dist/src/CucumberQueryContext.js.map +0 -1
- package/dist/src/GherkinQueryContext.d.ts.map +0 -1
- package/dist/src/GherkinQueryContext.js +0 -4
- package/dist/src/GherkinQueryContext.js.map +0 -1
- package/dist/src/SearchContext.d.ts.map +0 -1
- package/dist/src/SearchContext.js +0 -10
- package/dist/src/SearchContext.js.map +0 -1
- package/dist/src/ciCommitLink.d.ts.map +0 -1
- package/dist/src/ciCommitLink.js +0 -12
- package/dist/src/ciCommitLink.js.map +0 -1
- package/dist/src/components/app/CICommitLink.d.ts.map +0 -1
- package/dist/src/components/app/CICommitLink.js +0 -16
- package/dist/src/components/app/CICommitLink.js.map +0 -1
- package/dist/src/components/app/CIJobLink.d.ts.map +0 -1
- package/dist/src/components/app/CIJobLink.js +0 -10
- package/dist/src/components/app/CIJobLink.js.map +0 -1
- package/dist/src/components/app/ControlledSearchProvider.d.ts.map +0 -1
- package/dist/src/components/app/ControlledSearchProvider.js +0 -39
- package/dist/src/components/app/ControlledSearchProvider.js.map +0 -1
- package/dist/src/components/app/CopyButton.d.ts.map +0 -1
- package/dist/src/components/app/CopyButton.js +0 -23
- package/dist/src/components/app/CopyButton.js.map +0 -1
- package/dist/src/components/app/DocumentAccordion.d.ts.map +0 -1
- package/dist/src/components/app/DocumentAccordion.js +0 -22
- package/dist/src/components/app/DocumentAccordion.js.map +0 -1
- package/dist/src/components/app/EnvelopesProvider.d.ts.map +0 -1
- package/dist/src/components/app/EnvelopesProvider.js +0 -18
- package/dist/src/components/app/EnvelopesProvider.js.map +0 -1
- package/dist/src/components/app/ExecutionSummary.d.ts.map +0 -1
- package/dist/src/components/app/ExecutionSummary.js +0 -38
- package/dist/src/components/app/ExecutionSummary.js.map +0 -1
- package/dist/src/components/app/FilteredDocuments.d.ts.map +0 -1
- package/dist/src/components/app/FilteredDocuments.js +0 -15
- package/dist/src/components/app/FilteredDocuments.js.map +0 -1
- package/dist/src/components/app/GherkinDocumentList.d.ts.map +0 -1
- package/dist/src/components/app/GherkinDocumentList.js +0 -23
- package/dist/src/components/app/GherkinDocumentList.js.map +0 -1
- package/dist/src/components/app/Header.d.ts.map +0 -1
- package/dist/src/components/app/Header.js +0 -12
- package/dist/src/components/app/Header.js.map +0 -1
- package/dist/src/components/app/HealthChart.d.ts.map +0 -1
- package/dist/src/components/app/HealthChart.js +0 -14
- package/dist/src/components/app/HealthChart.js.map +0 -1
- package/dist/src/components/app/HighLight.d.ts.map +0 -1
- package/dist/src/components/app/HighLight.js +0 -38
- package/dist/src/components/app/HighLight.js.map +0 -1
- package/dist/src/components/app/ImplementationIcon.d.ts.map +0 -1
- package/dist/src/components/app/ImplementationIcon.js +0 -10
- package/dist/src/components/app/ImplementationIcon.js.map +0 -1
- package/dist/src/components/app/InMemorySearchProvider.d.ts.map +0 -1
- package/dist/src/components/app/InMemorySearchProvider.js +0 -11
- package/dist/src/components/app/InMemorySearchProvider.js.map +0 -1
- package/dist/src/components/app/NavigationButton.d.ts.map +0 -1
- package/dist/src/components/app/NavigationButton.js +0 -6
- package/dist/src/components/app/NavigationButton.js.map +0 -1
- package/dist/src/components/app/OSIcon.d.ts.map +0 -1
- package/dist/src/components/app/OSIcon.js +0 -18
- package/dist/src/components/app/OSIcon.js.map +0 -1
- package/dist/src/components/app/QueriesProvider.d.ts.map +0 -1
- package/dist/src/components/app/QueriesProvider.js +0 -7
- package/dist/src/components/app/QueriesProvider.js.map +0 -1
- package/dist/src/components/app/Report.d.ts.map +0 -1
- package/dist/src/components/app/Report.js +0 -10
- package/dist/src/components/app/Report.js.map +0 -1
- package/dist/src/components/app/RuntimeIcon.d.ts.map +0 -1
- package/dist/src/components/app/RuntimeIcon.js +0 -18
- package/dist/src/components/app/RuntimeIcon.js.map +0 -1
- package/dist/src/components/app/SearchBar.d.ts.map +0 -1
- package/dist/src/components/app/SearchBar.js +0 -33
- package/dist/src/components/app/SearchBar.js.map +0 -1
- package/dist/src/components/app/StatusesSummary.d.ts.map +0 -1
- package/dist/src/components/app/StatusesSummary.js +0 -16
- package/dist/src/components/app/StatusesSummary.js.map +0 -1
- package/dist/src/components/app/TestRunHooks.d.ts.map +0 -1
- package/dist/src/components/app/TestRunHooks.js +0 -14
- package/dist/src/components/app/TestRunHooks.js.map +0 -1
- package/dist/src/components/app/UrlSearchProvider.d.ts.map +0 -1
- package/dist/src/components/app/UrlSearchProvider.js +0 -29
- package/dist/src/components/app/UrlSearchProvider.js.map +0 -1
- package/dist/src/components/app/findMostSevereTestStepResultStatus.d.ts.map +0 -1
- package/dist/src/components/app/findMostSevereTestStepResultStatus.js +0 -17
- package/dist/src/components/app/findMostSevereTestStepResultStatus.js.map +0 -1
- package/dist/src/components/app/icons/CucumberLogo.d.ts.map +0 -1
- package/dist/src/components/app/icons/CucumberLogo.js +0 -5
- package/dist/src/components/app/icons/CucumberLogo.js.map +0 -1
- package/dist/src/components/app/icons/Jvm.d.ts.map +0 -1
- package/dist/src/components/app/icons/Jvm.js +0 -5
- package/dist/src/components/app/icons/Jvm.js.map +0 -1
- package/dist/src/components/app/icons/Linux.d.ts.map +0 -1
- package/dist/src/components/app/icons/Linux.js +0 -5
- package/dist/src/components/app/icons/Linux.js.map +0 -1
- package/dist/src/components/app/icons/MacOS.d.ts.map +0 -1
- package/dist/src/components/app/icons/MacOS.js +0 -5
- package/dist/src/components/app/icons/MacOS.js.map +0 -1
- package/dist/src/components/app/icons/NodeJs.d.ts.map +0 -1
- package/dist/src/components/app/icons/NodeJs.js +0 -5
- package/dist/src/components/app/icons/NodeJs.js.map +0 -1
- package/dist/src/components/app/icons/Ruby.d.ts.map +0 -1
- package/dist/src/components/app/icons/Ruby.js +0 -5
- package/dist/src/components/app/icons/Ruby.js.map +0 -1
- package/dist/src/components/app/icons/Windows.d.ts.map +0 -1
- package/dist/src/components/app/icons/Windows.js +0 -5
- package/dist/src/components/app/icons/Windows.js.map +0 -1
- package/dist/src/components/app/index.d.ts +0 -15
- package/dist/src/components/app/index.d.ts.map +0 -1
- package/dist/src/components/app/index.js.map +0 -1
- package/dist/src/components/app/makeSetupString.d.ts.map +0 -1
- package/dist/src/components/app/makeSetupString.js +0 -21
- package/dist/src/components/app/makeSetupString.js.map +0 -1
- package/dist/src/components/app/markdownComponents.d.ts.map +0 -1
- package/dist/src/components/app/markdownComponents.js +0 -6
- package/dist/src/components/app/markdownComponents.js.map +0 -1
- package/dist/src/components/app/rehypePlugins.d.ts.map +0 -1
- package/dist/src/components/app/rehypePlugins.js +0 -9
- package/dist/src/components/app/rehypePlugins.js.map +0 -1
- package/dist/src/components/app/remarkPlugins.d.ts.map +0 -1
- package/dist/src/components/app/remarkPlugins.js +0 -4
- package/dist/src/components/app/remarkPlugins.js.map +0 -1
- package/dist/src/components/customise/CustomRendering.d.ts.map +0 -1
- package/dist/src/components/customise/CustomRendering.js +0 -35
- package/dist/src/components/customise/CustomRendering.js.map +0 -1
- package/dist/src/components/customise/index.d.ts +0 -3
- package/dist/src/components/customise/index.d.ts.map +0 -1
- package/dist/src/components/customise/index.js.map +0 -1
- package/dist/src/components/customise/theming.d.ts.map +0 -1
- package/dist/src/components/customise/theming.js +0 -2
- package/dist/src/components/customise/theming.js.map +0 -1
- package/dist/src/components/gherkin/Anchor.d.ts.map +0 -1
- package/dist/src/components/gherkin/Anchor.js +0 -13
- package/dist/src/components/gherkin/Anchor.js.map +0 -1
- package/dist/src/components/gherkin/Background.d.ts.map +0 -1
- package/dist/src/components/gherkin/Background.js +0 -18
- package/dist/src/components/gherkin/Background.js.map +0 -1
- package/dist/src/components/gherkin/Children.d.ts.map +0 -1
- package/dist/src/components/gherkin/Children.js +0 -11
- package/dist/src/components/gherkin/Children.js.map +0 -1
- package/dist/src/components/gherkin/DataTable.d.ts.map +0 -1
- package/dist/src/components/gherkin/DataTable.js +0 -16
- package/dist/src/components/gherkin/DataTable.js.map +0 -1
- package/dist/src/components/gherkin/Description.d.ts.map +0 -1
- package/dist/src/components/gherkin/Description.js +0 -15
- package/dist/src/components/gherkin/Description.js.map +0 -1
- package/dist/src/components/gherkin/DocString.d.ts.map +0 -1
- package/dist/src/components/gherkin/DocString.js +0 -12
- package/dist/src/components/gherkin/DocString.js.map +0 -1
- package/dist/src/components/gherkin/ErrorMessage.d.ts.map +0 -1
- package/dist/src/components/gherkin/ErrorMessage.js +0 -13
- package/dist/src/components/gherkin/ErrorMessage.js.map +0 -1
- package/dist/src/components/gherkin/Examples.d.ts.map +0 -1
- package/dist/src/components/gherkin/Examples.js +0 -31
- package/dist/src/components/gherkin/Examples.js.map +0 -1
- package/dist/src/components/gherkin/Feature.d.ts.map +0 -1
- package/dist/src/components/gherkin/Feature.js +0 -30
- package/dist/src/components/gherkin/Feature.js.map +0 -1
- package/dist/src/components/gherkin/GherkinDocument.d.ts.map +0 -1
- package/dist/src/components/gherkin/GherkinDocument.js +0 -11
- package/dist/src/components/gherkin/GherkinDocument.js.map +0 -1
- package/dist/src/components/gherkin/Keyword.d.ts.map +0 -1
- package/dist/src/components/gherkin/Keyword.js +0 -11
- package/dist/src/components/gherkin/Keyword.js.map +0 -1
- package/dist/src/components/gherkin/Parameter.d.ts.map +0 -1
- package/dist/src/components/gherkin/Parameter.js +0 -11
- package/dist/src/components/gherkin/Parameter.js.map +0 -1
- package/dist/src/components/gherkin/Rule.d.ts.map +0 -1
- package/dist/src/components/gherkin/Rule.js +0 -26
- package/dist/src/components/gherkin/Rule.js.map +0 -1
- package/dist/src/components/gherkin/Scenario.d.ts.map +0 -1
- package/dist/src/components/gherkin/Scenario.js +0 -22
- package/dist/src/components/gherkin/Scenario.js.map +0 -1
- package/dist/src/components/gherkin/StatusIcon.d.ts.map +0 -1
- package/dist/src/components/gherkin/StatusIcon.js +0 -24
- package/dist/src/components/gherkin/StatusIcon.js.map +0 -1
- package/dist/src/components/gherkin/StepsList.d.ts.map +0 -1
- package/dist/src/components/gherkin/StepsList.js +0 -6
- package/dist/src/components/gherkin/StepsList.js.map +0 -1
- package/dist/src/components/gherkin/Tags.d.ts.map +0 -1
- package/dist/src/components/gherkin/Tags.js +0 -15
- package/dist/src/components/gherkin/Tags.js.map +0 -1
- package/dist/src/components/gherkin/Title.d.ts.map +0 -1
- package/dist/src/components/gherkin/Title.js +0 -12
- package/dist/src/components/gherkin/Title.js.map +0 -1
- package/dist/src/components/gherkin/attachment/Attachment.d.ts.map +0 -1
- package/dist/src/components/gherkin/attachment/Attachment.js +0 -45
- package/dist/src/components/gherkin/attachment/Attachment.js.map +0 -1
- package/dist/src/components/gherkin/attachment/Image.d.ts.map +0 -1
- package/dist/src/components/gherkin/attachment/Image.js +0 -16
- package/dist/src/components/gherkin/attachment/Image.js.map +0 -1
- package/dist/src/components/gherkin/attachment/Links.d.ts.map +0 -1
- package/dist/src/components/gherkin/attachment/Links.js +0 -14
- package/dist/src/components/gherkin/attachment/Links.js.map +0 -1
- package/dist/src/components/gherkin/attachment/Log.d.ts.map +0 -1
- package/dist/src/components/gherkin/attachment/Log.js +0 -12
- package/dist/src/components/gherkin/attachment/Log.js.map +0 -1
- package/dist/src/components/gherkin/attachment/Text.d.ts.map +0 -1
- package/dist/src/components/gherkin/attachment/Text.js +0 -16
- package/dist/src/components/gherkin/attachment/Text.js.map +0 -1
- package/dist/src/components/gherkin/attachment/Unknown.d.ts.map +0 -1
- package/dist/src/components/gherkin/attachment/Unknown.js +0 -61
- package/dist/src/components/gherkin/attachment/Unknown.js.map +0 -1
- package/dist/src/components/gherkin/attachment/Video.d.ts.map +0 -1
- package/dist/src/components/gherkin/attachment/Video.js +0 -16
- package/dist/src/components/gherkin/attachment/Video.js.map +0 -1
- package/dist/src/components/gherkin/attachment/attachmentFilename.d.ts.map +0 -1
- package/dist/src/components/gherkin/attachment/attachmentFilename.js +0 -12
- package/dist/src/components/gherkin/attachment/attachmentFilename.js.map +0 -1
- package/dist/src/components/gherkin/attachment/base64Decode.d.ts.map +0 -1
- package/dist/src/components/gherkin/attachment/base64Decode.js +0 -19
- package/dist/src/components/gherkin/attachment/base64Decode.js.map +0 -1
- package/dist/src/components/gherkin/attachment/index.d.ts +0 -2
- package/dist/src/components/gherkin/attachment/index.d.ts.map +0 -1
- package/dist/src/components/gherkin/attachment/index.js.map +0 -1
- package/dist/src/components/gherkin/attachment/useText.d.ts.map +0 -1
- package/dist/src/components/gherkin/attachment/useText.js +0 -28
- package/dist/src/components/gherkin/attachment/useText.js.map +0 -1
- package/dist/src/components/gherkin/composeHookStepTitle.d.ts.map +0 -1
- package/dist/src/components/gherkin/composeHookStepTitle.js +0 -23
- package/dist/src/components/gherkin/composeHookStepTitle.js.map +0 -1
- package/dist/src/components/gherkin/composePickleStepTitle.d.ts.map +0 -1
- package/dist/src/components/gherkin/composePickleStepTitle.js +0 -36
- package/dist/src/components/gherkin/composePickleStepTitle.js.map +0 -1
- package/dist/src/components/gherkin/index.d.ts +0 -19
- package/dist/src/components/gherkin/index.d.ts.map +0 -1
- package/dist/src/components/gherkin/index.js.map +0 -1
- package/dist/src/components/gherkin/isNumber.d.ts.map +0 -1
- package/dist/src/components/gherkin/isNumber.js +0 -7
- package/dist/src/components/gherkin/isNumber.js.map +0 -1
- package/dist/src/components/gherkin/statusName.d.ts +0 -4
- package/dist/src/components/gherkin/statusName.d.ts.map +0 -1
- package/dist/src/components/gherkin/statusName.js +0 -4
- package/dist/src/components/gherkin/statusName.js.map +0 -1
- package/dist/src/components/index.d.ts +0 -4
- package/dist/src/components/index.d.ts.map +0 -1
- package/dist/src/components/index.js.map +0 -1
- package/dist/src/components/results/AmbiguousResult.d.ts.map +0 -1
- package/dist/src/components/results/AmbiguousResult.js +0 -11
- package/dist/src/components/results/AmbiguousResult.js.map +0 -1
- package/dist/src/components/results/FailedResult.d.ts.map +0 -1
- package/dist/src/components/results/FailedResult.js +0 -15
- package/dist/src/components/results/FailedResult.js.map +0 -1
- package/dist/src/components/results/PendingResult.d.ts.map +0 -1
- package/dist/src/components/results/PendingResult.js +0 -12
- package/dist/src/components/results/PendingResult.js.map +0 -1
- package/dist/src/components/results/ResultNote.d.ts.map +0 -1
- package/dist/src/components/results/ResultNote.js +0 -6
- package/dist/src/components/results/ResultNote.js.map +0 -1
- package/dist/src/components/results/SkippedResult.d.ts.map +0 -1
- package/dist/src/components/results/SkippedResult.js +0 -12
- package/dist/src/components/results/SkippedResult.js.map +0 -1
- package/dist/src/components/results/SourceReference.d.ts.map +0 -1
- package/dist/src/components/results/SourceReference.js +0 -13
- package/dist/src/components/results/SourceReference.js.map +0 -1
- package/dist/src/components/results/TestCaseOutcome.d.ts.map +0 -1
- package/dist/src/components/results/TestCaseOutcome.js +0 -32
- package/dist/src/components/results/TestCaseOutcome.js.map +0 -1
- package/dist/src/components/results/TestRunHookOutcome.d.ts.map +0 -1
- package/dist/src/components/results/TestRunHookOutcome.js +0 -11
- package/dist/src/components/results/TestRunHookOutcome.js.map +0 -1
- package/dist/src/components/results/TestStepAttachments.d.ts.map +0 -1
- package/dist/src/components/results/TestStepAttachments.js +0 -12
- package/dist/src/components/results/TestStepAttachments.js.map +0 -1
- package/dist/src/components/results/TestStepDuration.d.ts.map +0 -1
- package/dist/src/components/results/TestStepDuration.js +0 -19
- package/dist/src/components/results/TestStepDuration.js.map +0 -1
- package/dist/src/components/results/TestStepOutcome.d.ts.map +0 -1
- package/dist/src/components/results/TestStepOutcome.js +0 -45
- package/dist/src/components/results/TestStepOutcome.js.map +0 -1
- package/dist/src/components/results/UndefinedResult.d.ts.map +0 -1
- package/dist/src/components/results/UndefinedResult.js +0 -18
- package/dist/src/components/results/UndefinedResult.js.map +0 -1
- package/dist/src/components/results/index.d.ts +0 -3
- package/dist/src/components/results/index.d.ts.map +0 -1
- package/dist/src/components/results/index.js.map +0 -1
- package/dist/src/formatExecutionDistance.d.ts.map +0 -1
- package/dist/src/formatExecutionDistance.js +0 -7
- package/dist/src/formatExecutionDistance.js.map +0 -1
- package/dist/src/formatExecutionDuration.d.ts.map +0 -1
- package/dist/src/formatExecutionDuration.js +0 -12
- package/dist/src/formatExecutionDuration.js.map +0 -1
- package/dist/src/formatPassedQuantity.d.ts.map +0 -1
- package/dist/src/formatPassedQuantity.js +0 -4
- package/dist/src/formatPassedQuantity.js.map +0 -1
- package/dist/src/formatStatusRate.d.ts.map +0 -1
- package/dist/src/formatStatusRate.js +0 -9
- package/dist/src/formatStatusRate.js.map +0 -1
- package/dist/src/hooks/helpers.d.ts.map +0 -1
- package/dist/src/hooks/helpers.js +0 -7
- package/dist/src/hooks/helpers.js.map +0 -1
- package/dist/src/hooks/index.d.ts +0 -3
- package/dist/src/hooks/index.d.ts.map +0 -1
- package/dist/src/hooks/index.js.map +0 -1
- package/dist/src/hooks/useFilteredDocuments.d.ts.map +0 -1
- package/dist/src/hooks/useFilteredDocuments.js +0 -85
- package/dist/src/hooks/useFilteredDocuments.js.map +0 -1
- package/dist/src/hooks/useMostSevereStatusByUri.d.ts.map +0 -1
- package/dist/src/hooks/useMostSevereStatusByUri.js +0 -25
- package/dist/src/hooks/useMostSevereStatusByUri.js.map +0 -1
- package/dist/src/hooks/useQueries.d.ts.map +0 -1
- package/dist/src/hooks/useQueries.js +0 -9
- package/dist/src/hooks/useQueries.js.map +0 -1
- package/dist/src/hooks/useResultStatistics.d.ts.map +0 -1
- package/dist/src/hooks/useResultStatistics.js +0 -24
- package/dist/src/hooks/useResultStatistics.js.map +0 -1
- package/dist/src/hooks/useSearch.d.ts.map +0 -1
- package/dist/src/hooks/useSearch.js +0 -6
- package/dist/src/hooks/useSearch.js.map +0 -1
- package/dist/src/hooks/useTestCaseStarted.d.ts.map +0 -1
- package/dist/src/hooks/useTestCaseStarted.js +0 -20
- package/dist/src/hooks/useTestCaseStarted.js.map +0 -1
- package/dist/src/hooks/useTestRunHooks.d.ts.map +0 -1
- package/dist/src/hooks/useTestRunHooks.js +0 -14
- package/dist/src/hooks/useTestRunHooks.js.map +0 -1
- package/dist/src/index.d.ts +0 -3
- package/dist/src/index.d.ts.map +0 -1
- package/dist/src/index.js.map +0 -1
- package/dist/src/isTagExpression.d.ts.map +0 -1
- package/dist/src/isTagExpression.js +0 -5
- package/dist/src/isTagExpression.js.map +0 -1
- package/dist/src/search/FeatureSearch.d.ts.map +0 -1
- package/dist/src/search/FeatureSearch.js +0 -37
- package/dist/src/search/FeatureSearch.js.map +0 -1
- package/dist/src/search/ScenarioLikeSearch.d.ts.map +0 -1
- package/dist/src/search/ScenarioLikeSearch.js +0 -37
- package/dist/src/search/ScenarioLikeSearch.js.map +0 -1
- package/dist/src/search/StepSearch.d.ts.map +0 -1
- package/dist/src/search/StepSearch.js +0 -40
- package/dist/src/search/StepSearch.js.map +0 -1
- package/dist/src/search/TextSearch.d.ts.map +0 -1
- package/dist/src/search/TextSearch.js +0 -70
- package/dist/src/search/TextSearch.js.map +0 -1
- package/dist/src/search/createSearchIndex.d.ts.map +0 -1
- package/dist/src/search/createSearchIndex.js +0 -10
- package/dist/src/search/createSearchIndex.js.map +0 -1
- package/dist/src/search/deriveLineageConstraints.d.ts.map +0 -1
- package/dist/src/search/deriveLineageConstraints.js +0 -38
- package/dist/src/search/deriveLineageConstraints.js.map +0 -1
- package/dist/src/search/index.d.ts.map +0 -1
- package/dist/src/search/index.js +0 -5
- package/dist/src/search/index.js.map +0 -1
- package/dist/src/search/pruneGherkinDocuments.d.ts.map +0 -1
- package/dist/src/search/pruneGherkinDocuments.js +0 -180
- package/dist/src/search/pruneGherkinDocuments.js.map +0 -1
- package/dist/src/search/types.d.ts.map +0 -1
- package/dist/src/search/types.js +0 -2
- package/dist/src/search/types.js.map +0 -1
- package/dist/src/statuses.d.ts.map +0 -1
- package/dist/src/statuses.js +0 -12
- package/dist/src/statuses.js.map +0 -1
- package/dist/src/toRepositoryId.d.ts.map +0 -1
- package/dist/src/toRepositoryId.js +0 -12
- package/dist/src/toRepositoryId.js.map +0 -1
- package/dist/tsconfig.build.tsbuildinfo +0 -1
- /package/dist/{src/components → components}/app/CopyButton.module.scss +0 -0
- /package/dist/{src/components → components}/app/DocumentAccordion.module.scss +0 -0
- /package/dist/{src/components → components}/app/ExecutionSummary.module.scss +0 -0
- /package/dist/{src/components → components}/app/FilteredDocuments.module.scss +0 -0
- /package/dist/{src/components → components}/app/Header.module.scss +0 -0
- /package/dist/{src/components → components}/app/HealthChart.module.scss +0 -0
- /package/dist/{src/components → components}/app/NavigationButton.module.scss +0 -0
- /package/dist/{src/components → components}/app/Report.module.scss +0 -0
- /package/dist/{src/components → components}/app/SearchBar.module.scss +0 -0
- /package/dist/{src/components → components}/app/StatusesSummary.module.scss +0 -0
- /package/dist/{src/components → components}/app/TestRunHooks.module.scss +0 -0
- /package/dist/{src/components → components}/customise/CustomRendering.stories.scss +0 -0
- /package/dist/{src/components → components}/gherkin/Anchor.module.scss +0 -0
- /package/dist/{src/components → components}/gherkin/Children.module.scss +0 -0
- /package/dist/{src/components → components}/gherkin/DataTable.module.scss +0 -0
- /package/dist/{src/components → components}/gherkin/Description.module.scss +0 -0
- /package/dist/{src/components → components}/gherkin/DocString.module.scss +0 -0
- /package/dist/{src/components → components}/gherkin/ErrorMessage.module.scss +0 -0
- /package/dist/{src/components → components}/gherkin/Examples.module.scss +0 -0
- /package/dist/{src/components → components}/gherkin/Keyword.module.scss +0 -0
- /package/dist/{src/components → components}/gherkin/Parameter.module.scss +0 -0
- /package/dist/{src/components → components}/gherkin/StatusIcon.module.scss +0 -0
- /package/dist/{src/components → components}/gherkin/StepsList.module.scss +0 -0
- /package/dist/{src/components → components}/gherkin/Tags.module.scss +0 -0
- /package/dist/{src/components → components}/gherkin/Title.module.scss +0 -0
- /package/dist/{src/components → components}/gherkin/attachment/Attachment.module.scss +0 -0
- /package/dist/{src/components → components}/results/AmbiguousResult.module.scss +0 -0
- /package/dist/{src/components → components}/results/ResultNote.module.scss +0 -0
- /package/dist/{src/components → components}/results/SourceReference.module.scss +0 -0
- /package/dist/{src/components → components}/results/TestCaseOutcome.module.scss +0 -0
- /package/dist/{src/components → components}/results/TestRunHookOutcome.module.scss +0 -0
- /package/dist/{src/components → components}/results/TestStepAttachments.module.scss +0 -0
- /package/dist/{src/components → components}/results/TestStepDuration.module.scss +0 -0
- /package/dist/{src/components → components}/results/TestStepOutcome.module.scss +0 -0
- /package/dist/{src/components → components}/results/UndefinedResult.module.scss +0 -0
- /package/dist/{src/styles → styles}/statuses.scss +0 -0
- /package/dist/{src/styles → styles}/tables.scss +0 -0
- /package/dist/{src/styles → styles}/theming.scss +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useFilteredDocuments.js","sourceRoot":"","sources":["../../../src/hooks/useFilteredDocuments.ts"],"names":[],"mappings":"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","sourcesContent":["import { type GherkinDocument, type Pickle, TestStepResultStatus } from '@cucumber/messages'\nimport type { Lineage } from '@cucumber/query'\nimport { type Dispatch, useCallback, useEffect, useMemo, useState } from 'react'\nimport {\n createSearchIndex,\n deriveLineageConstraints,\n pruneGherkinDocuments,\n type SearchIndex,\n} from '../search/index.js'\nimport { ensure } from './helpers.js'\nimport { useQueries } from './useQueries.js'\nimport { useSearch } from './useSearch.js'\n\nexport function useFilteredDocuments(): {\n results?: ReadonlyArray<GherkinDocument>\n filtered: boolean\n} {\n const { cucumberQuery, gherkinQuery } = useQueries()\n const allTestCasesStarted = useMemo(() => cucumberQuery.findAllTestCaseStarted(), [cucumberQuery])\n const gherkinDocuments = useMemo(() => gherkinQuery.getGherkinDocuments(), [gherkinQuery])\n const { hideStatuses, tagExpression, searchTerm, unchanged } = useSearch()\n const lineageConstraints = useMemo(() => {\n const candidates: Array<{ pickle: Pickle; lineage: Lineage }> = []\n for (const testCaseStarted of allTestCasesStarted) {\n if (hideStatuses.length) {\n const status =\n cucumberQuery.findMostSevereTestStepResultBy(testCaseStarted)?.status ??\n TestStepResultStatus.UNKNOWN\n if (hideStatuses.includes(status)) {\n continue\n }\n }\n const pickle = ensure(\n cucumberQuery.findPickleBy(testCaseStarted),\n `No Pickle found for TestCaseStarted ${testCaseStarted.id}`\n )\n if (tagExpression) {\n const tags = pickle.tags.map((tag) => tag.name)\n if (!tagExpression.evaluate(tags)) {\n continue\n }\n }\n const lineage = ensure(\n cucumberQuery.findLineageBy(pickle),\n `No Lineage found for Pickle ${pickle.uri}`\n )\n candidates.push({ pickle, lineage })\n }\n return deriveLineageConstraints(candidates)\n }, [allTestCasesStarted, cucumberQuery, hideStatuses, tagExpression])\n const [searchIndex, setSearchIndex] = useState<SearchIndex | false>()\n const [results, setResults] = useState<ReadonlyArray<GherkinDocument>>()\n const setResultsSorting: Dispatch<ReadonlyArray<GherkinDocument>> = useCallback((unsorted) => {\n const sorted = [...unsorted]\n sorted.sort((a, b) => (a.uri || '').localeCompare(b.uri || ''))\n setResults(sorted)\n }, [])\n\n useEffect(() => {\n createSearchIndex(gherkinDocuments)\n .then((created) => setSearchIndex(created))\n .catch((error) => {\n console.error('Failed to create search index:', error)\n setSearchIndex(false)\n })\n }, [gherkinDocuments])\n useEffect(() => {\n if (searchTerm) {\n // we only deal with the non-search path in this effect\n return\n }\n setResultsSorting(pruneGherkinDocuments(gherkinDocuments, lineageConstraints))\n }, [gherkinDocuments, lineageConstraints, searchTerm, setResultsSorting])\n useEffect(() => {\n if (!searchTerm) {\n // we only deal with the search path in this effect\n return\n }\n if (searchIndex === undefined) {\n // search index is not ready yet\n return\n }\n if (searchIndex === false) {\n // search index failed to create - fallback\n setResultsSorting(pruneGherkinDocuments(gherkinDocuments, lineageConstraints))\n return\n }\n searchIndex\n .search(searchTerm)\n .then((searchHits) => {\n setResultsSorting(pruneGherkinDocuments(gherkinDocuments, lineageConstraints, searchHits))\n })\n .catch((error) => {\n console.error('Search failed:', error)\n setResultsSorting(pruneGherkinDocuments(gherkinDocuments, lineageConstraints))\n })\n }, [gherkinDocuments, lineageConstraints, searchIndex, searchTerm, setResultsSorting])\n\n return {\n results,\n filtered: !unchanged,\n }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useMostSevereStatusByUri.d.ts","sourceRoot":"","sources":["../../../src/hooks/useMostSevereStatusByUri.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAA;AAOzD,wBAAgB,wBAAwB,IAAI,GAAG,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAkB5E"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { TestStepResultStatus } from '@cucumber/messages';
|
|
2
|
-
import { SetMultimap } from '@teppeis/multimaps';
|
|
3
|
-
import { useMemo } from 'react';
|
|
4
|
-
import { findMostSevereTestStepResultStatus } from '../components/app/findMostSevereTestStepResultStatus.js';
|
|
5
|
-
import { useQueries } from './useQueries.js';
|
|
6
|
-
export function useMostSevereStatusByUri() {
|
|
7
|
-
const { cucumberQuery } = useQueries();
|
|
8
|
-
return useMemo(() => {
|
|
9
|
-
const allByUri = new SetMultimap();
|
|
10
|
-
for (const testCaseStarted of cucumberQuery.findAllTestCaseStarted()) {
|
|
11
|
-
const result = cucumberQuery.findMostSevereTestStepResultBy(testCaseStarted);
|
|
12
|
-
const status = result ? result.status : TestStepResultStatus.UNKNOWN;
|
|
13
|
-
const pickle = cucumberQuery.findPickleBy(testCaseStarted);
|
|
14
|
-
if (pickle?.uri) {
|
|
15
|
-
allByUri.put(pickle.uri, status);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
const mostSevereByUri = new Map();
|
|
19
|
-
for (const key of allByUri.keys()) {
|
|
20
|
-
mostSevereByUri.set(key, findMostSevereTestStepResultStatus(allByUri.get(key)));
|
|
21
|
-
}
|
|
22
|
-
return mostSevereByUri;
|
|
23
|
-
}, [cucumberQuery]);
|
|
24
|
-
}
|
|
25
|
-
//# sourceMappingURL=useMostSevereStatusByUri.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useMostSevereStatusByUri.js","sourceRoot":"","sources":["../../../src/hooks/useMostSevereStatusByUri.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAA;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAA;AAE/B,OAAO,EAAE,kCAAkC,EAAE,MAAM,yDAAyD,CAAA;AAC5G,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAE5C,MAAM,UAAU,wBAAwB;IACtC,MAAM,EAAE,aAAa,EAAE,GAAG,UAAU,EAAE,CAAA;IACtC,OAAO,OAAO,CAAC,GAAG,EAAE;QAClB,MAAM,QAAQ,GAAG,IAAI,WAAW,EAAgC,CAAA;QAChE,KAAK,MAAM,eAAe,IAAI,aAAa,CAAC,sBAAsB,EAAE,EAAE,CAAC;YACrE,MAAM,MAAM,GAAG,aAAa,CAAC,8BAA8B,CAAC,eAAe,CAAC,CAAA;YAC5E,MAAM,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,oBAAoB,CAAC,OAAO,CAAA;YACpE,MAAM,MAAM,GAAG,aAAa,CAAC,YAAY,CAAC,eAAe,CAAC,CAAA;YAC1D,IAAI,MAAM,EAAE,GAAG,EAAE,CAAC;gBAChB,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,CAAA;YAClC,CAAC;QACH,CAAC;QACD,MAAM,eAAe,GAAG,IAAI,GAAG,EAAgC,CAAA;QAC/D,KAAK,MAAM,GAAG,IAAI,QAAQ,CAAC,IAAI,EAAE,EAAE,CAAC;YAClC,eAAe,CAAC,GAAG,CAAC,GAAG,EAAE,kCAAkC,CAAC,QAAQ,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAA;QACjF,CAAC;QACD,OAAO,eAAe,CAAA;IACxB,CAAC,EAAE,CAAC,aAAa,CAAC,CAAC,CAAA;AACrB,CAAC","sourcesContent":["import { TestStepResultStatus } from '@cucumber/messages'\nimport { SetMultimap } from '@teppeis/multimaps'\nimport { useMemo } from 'react'\n\nimport { findMostSevereTestStepResultStatus } from '../components/app/findMostSevereTestStepResultStatus.js'\nimport { useQueries } from './useQueries.js'\n\nexport function useMostSevereStatusByUri(): Map<string, TestStepResultStatus> {\n const { cucumberQuery } = useQueries()\n return useMemo(() => {\n const allByUri = new SetMultimap<string, TestStepResultStatus>()\n for (const testCaseStarted of cucumberQuery.findAllTestCaseStarted()) {\n const result = cucumberQuery.findMostSevereTestStepResultBy(testCaseStarted)\n const status = result ? result.status : TestStepResultStatus.UNKNOWN\n const pickle = cucumberQuery.findPickleBy(testCaseStarted)\n if (pickle?.uri) {\n allByUri.put(pickle.uri, status)\n }\n }\n const mostSevereByUri = new Map<string, TestStepResultStatus>()\n for (const key of allByUri.keys()) {\n mostSevereByUri.set(key, findMostSevereTestStepResultStatus(allByUri.get(key)))\n }\n return mostSevereByUri\n }, [cucumberQuery])\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useQueries.d.ts","sourceRoot":"","sources":["../../../src/hooks/useQueries.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,IAAI,YAAY,EAAE,MAAM,yBAAyB,CAAA;AACpE,OAAO,KAAK,EAAE,KAAK,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAM7D,wBAAgB,UAAU,IAAI;IAC5B,aAAa,EAAE,aAAa,CAAA;IAC5B,YAAY,EAAE,YAAY,CAAA;CAC3B,CAIA"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { useContext } from 'react';
|
|
2
|
-
import CucumberQueryContext from '../CucumberQueryContext.js';
|
|
3
|
-
import GherkinQueryContext from '../GherkinQueryContext.js';
|
|
4
|
-
export function useQueries() {
|
|
5
|
-
const gherkinQuery = useContext(GherkinQueryContext);
|
|
6
|
-
const cucumberQuery = useContext(CucumberQueryContext);
|
|
7
|
-
return { cucumberQuery, gherkinQuery };
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=useQueries.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useQueries.js","sourceRoot":"","sources":["../../../src/hooks/useQueries.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAElC,OAAO,oBAAoB,MAAM,4BAA4B,CAAA;AAC7D,OAAO,mBAAmB,MAAM,2BAA2B,CAAA;AAE3D,MAAM,UAAU,UAAU;IAIxB,MAAM,YAAY,GAAG,UAAU,CAAC,mBAAmB,CAAC,CAAA;IACpD,MAAM,aAAa,GAAG,UAAU,CAAC,oBAAoB,CAAC,CAAA;IACtD,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,CAAA;AACxC,CAAC","sourcesContent":["import type { Query as GherkinQuery } from '@cucumber/gherkin-utils'\nimport type { Query as CucumberQuery } from '@cucumber/query'\nimport { useContext } from 'react'\n\nimport CucumberQueryContext from '../CucumberQueryContext.js'\nimport GherkinQueryContext from '../GherkinQueryContext.js'\n\nexport function useQueries(): {\n cucumberQuery: CucumberQuery\n gherkinQuery: GherkinQuery\n} {\n const gherkinQuery = useContext(GherkinQueryContext)\n const cucumberQuery = useContext(CucumberQueryContext)\n return { cucumberQuery, gherkinQuery }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useResultStatistics.d.ts","sourceRoot":"","sources":["../../../src/hooks/useResultStatistics.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAA;AAK9D,wBAAgB,mBAAmB,IAAI;IACrC,qBAAqB,EAAE,MAAM,CAAC,oBAAoB,EAAE,MAAM,CAAC,CAAA;IAC3D,qBAAqB,EAAE,SAAS,oBAAoB,EAAE,CAAA;IACtD,kBAAkB,EAAE,MAAM,CAAA;CAC3B,CAiBA"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import statuses from '../statuses.js';
|
|
2
|
-
import { useQueries } from './useQueries.js';
|
|
3
|
-
export function useResultStatistics() {
|
|
4
|
-
const { cucumberQuery } = useQueries();
|
|
5
|
-
const scenarioCountByStatus = cucumberQuery.countMostSevereTestStepResultStatus();
|
|
6
|
-
const statusesWithScenarios = Object.entries(scenarioCountByStatus)
|
|
7
|
-
.filter(([, value]) => {
|
|
8
|
-
return value > 0;
|
|
9
|
-
})
|
|
10
|
-
.map(([key]) => key)
|
|
11
|
-
.sort(statusComparator);
|
|
12
|
-
const totalScenarioCount = [...Object.values(scenarioCountByStatus)].reduce((prev, curr) => prev + curr, 0);
|
|
13
|
-
return { scenarioCountByStatus, statusesWithScenarios, totalScenarioCount };
|
|
14
|
-
}
|
|
15
|
-
function statusComparator(a, b) {
|
|
16
|
-
if (statuses.indexOf(a) < statuses.indexOf(b)) {
|
|
17
|
-
return -1;
|
|
18
|
-
}
|
|
19
|
-
if (statuses.indexOf(a) > statuses.indexOf(b)) {
|
|
20
|
-
return 1;
|
|
21
|
-
}
|
|
22
|
-
return 0;
|
|
23
|
-
}
|
|
24
|
-
//# sourceMappingURL=useResultStatistics.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useResultStatistics.js","sourceRoot":"","sources":["../../../src/hooks/useResultStatistics.ts"],"names":[],"mappings":"AAEA,OAAO,QAAQ,MAAM,gBAAgB,CAAA;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAE5C,MAAM,UAAU,mBAAmB;IAKjC,MAAM,EAAE,aAAa,EAAE,GAAG,UAAU,EAAE,CAAA;IACtC,MAAM,qBAAqB,GAAG,aAAa,CAAC,mCAAmC,EAAE,CAAA;IAEjF,MAAM,qBAAqB,GAAG,MAAM,CAAC,OAAO,CAAC,qBAAqB,CAAC;SAChE,MAAM,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,EAAE;QACpB,OAAO,KAAK,GAAG,CAAC,CAAA;IAClB,CAAC,CAAC;SACD,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC;SACnB,IAAI,CAAC,gBAAgB,CAA2B,CAAA;IAEnD,MAAM,kBAAkB,GAAG,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,qBAAqB,CAAC,CAAC,CAAC,MAAM,CACzE,CAAC,IAAI,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,GAAG,IAAI,EAC3B,CAAC,CACF,CAAA;IAED,OAAO,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,CAAA;AAC7E,CAAC;AAED,SAAS,gBAAgB,CAAC,CAAuB,EAAE,CAAuB;IACxE,IAAI,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC;QAC9C,OAAO,CAAC,CAAC,CAAA;IACX,CAAC;IACD,IAAI,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC;QAC9C,OAAO,CAAC,CAAA;IACV,CAAC;IACD,OAAO,CAAC,CAAA;AACV,CAAC","sourcesContent":["import type { TestStepResultStatus } from '@cucumber/messages'\n\nimport statuses from '../statuses.js'\nimport { useQueries } from './useQueries.js'\n\nexport function useResultStatistics(): {\n scenarioCountByStatus: Record<TestStepResultStatus, number>\n statusesWithScenarios: readonly TestStepResultStatus[]\n totalScenarioCount: number\n} {\n const { cucumberQuery } = useQueries()\n const scenarioCountByStatus = cucumberQuery.countMostSevereTestStepResultStatus()\n\n const statusesWithScenarios = Object.entries(scenarioCountByStatus)\n .filter(([, value]) => {\n return value > 0\n })\n .map(([key]) => key)\n .sort(statusComparator) as TestStepResultStatus[]\n\n const totalScenarioCount = [...Object.values(scenarioCountByStatus)].reduce(\n (prev, curr) => prev + curr,\n 0\n )\n\n return { scenarioCountByStatus, statusesWithScenarios, totalScenarioCount }\n}\n\nfunction statusComparator(a: TestStepResultStatus, b: TestStepResultStatus) {\n if (statuses.indexOf(a) < statuses.indexOf(b)) {\n return -1\n }\n if (statuses.indexOf(a) > statuses.indexOf(b)) {\n return 1\n }\n return 0\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useSearch.d.ts","sourceRoot":"","sources":["../../../src/hooks/useSearch.ts"],"names":[],"mappings":"AAEA,OAA2B,EAAE,KAAK,kBAAkB,EAAE,MAAM,qBAAqB,CAAA;AAEjF,wBAAgB,SAAS,IAAI,kBAAkB,CAE9C"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useSearch.js","sourceRoot":"","sources":["../../../src/hooks/useSearch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAElC,OAAO,kBAA+C,MAAM,qBAAqB,CAAA;AAEjF,MAAM,UAAU,SAAS;IACvB,OAAO,UAAU,CAAC,kBAAkB,CAAC,CAAA;AACvC,CAAC","sourcesContent":["import { useContext } from 'react'\n\nimport SearchQueryContext, { type SearchContextValue } from '../SearchContext.js'\n\nexport function useSearch(): SearchContextValue {\n return useContext(SearchQueryContext)\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useTestCaseStarted.d.ts","sourceRoot":"","sources":["../../../src/hooks/useTestCaseStarted.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AAKzD;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,eAAe,GAAG,SAAS,CAW9E"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { useMemo } from 'react';
|
|
2
|
-
import { useQueries } from './useQueries.js';
|
|
3
|
-
/**
|
|
4
|
-
* Finds the corresponding TestCaseStarted for an Example or Scenario node from a Gherkin
|
|
5
|
-
* document
|
|
6
|
-
* @param nodeId the Gherkin node id
|
|
7
|
-
*/
|
|
8
|
-
export function useTestCaseStarted(nodeId) {
|
|
9
|
-
const { cucumberQuery } = useQueries();
|
|
10
|
-
return useMemo(() => {
|
|
11
|
-
for (const testCaseStarted of cucumberQuery.findAllTestCaseStarted()) {
|
|
12
|
-
const pickle = cucumberQuery.findPickleBy(testCaseStarted);
|
|
13
|
-
const closestNodeId = pickle?.astNodeIds.at(-1);
|
|
14
|
-
if (closestNodeId === nodeId) {
|
|
15
|
-
return testCaseStarted;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
}, [cucumberQuery, nodeId]);
|
|
19
|
-
}
|
|
20
|
-
//# sourceMappingURL=useTestCaseStarted.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useTestCaseStarted.js","sourceRoot":"","sources":["../../../src/hooks/useTestCaseStarted.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAA;AAE/B,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAE5C;;;;GAIG;AACH,MAAM,UAAU,kBAAkB,CAAC,MAAc;IAC/C,MAAM,EAAE,aAAa,EAAE,GAAG,UAAU,EAAE,CAAA;IACtC,OAAO,OAAO,CAAC,GAAG,EAAE;QAClB,KAAK,MAAM,eAAe,IAAI,aAAa,CAAC,sBAAsB,EAAE,EAAE,CAAC;YACrE,MAAM,MAAM,GAAG,aAAa,CAAC,YAAY,CAAC,eAAe,CAAC,CAAA;YAC1D,MAAM,aAAa,GAAG,MAAM,EAAE,UAAU,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;YAC/C,IAAI,aAAa,KAAK,MAAM,EAAE,CAAC;gBAC7B,OAAO,eAAe,CAAA;YACxB,CAAC;QACH,CAAC;IACH,CAAC,EAAE,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC,CAAA;AAC7B,CAAC","sourcesContent":["import type { TestCaseStarted } from '@cucumber/messages'\nimport { useMemo } from 'react'\n\nimport { useQueries } from './useQueries.js'\n\n/**\n * Finds the corresponding TestCaseStarted for an Example or Scenario node from a Gherkin\n * document\n * @param nodeId the Gherkin node id\n */\nexport function useTestCaseStarted(nodeId: string): TestCaseStarted | undefined {\n const { cucumberQuery } = useQueries()\n return useMemo(() => {\n for (const testCaseStarted of cucumberQuery.findAllTestCaseStarted()) {\n const pickle = cucumberQuery.findPickleBy(testCaseStarted)\n const closestNodeId = pickle?.astNodeIds.at(-1)\n if (closestNodeId === nodeId) {\n return testCaseStarted\n }\n }\n }, [cucumberQuery, nodeId])\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useTestRunHooks.d.ts","sourceRoot":"","sources":["../../../src/hooks/useTestRunHooks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AAKnE,KAAK,YAAY,GAAG;IAAE,mBAAmB,EAAE,mBAAmB,CAAC;IAAC,IAAI,EAAE,IAAI,CAAA;CAAE,EAAE,CAAA;AAE9E,wBAAgB,eAAe,IAAI,YAAY,CAgB9C"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ensure } from './helpers.js';
|
|
2
|
-
import { useQueries } from './useQueries.js';
|
|
3
|
-
export function useTestRunHooks() {
|
|
4
|
-
const { cucumberQuery } = useQueries();
|
|
5
|
-
const testRunHooksFinished = cucumberQuery.findAllTestRunHookFinished();
|
|
6
|
-
return testRunHooksFinished.map((testRunHookFinished) => {
|
|
7
|
-
const hook = ensure(cucumberQuery.findHookBy(testRunHookFinished), 'Expected testRunHookFinished to resolve with a hook');
|
|
8
|
-
return {
|
|
9
|
-
testRunHookFinished,
|
|
10
|
-
hook,
|
|
11
|
-
};
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=useTestRunHooks.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useTestRunHooks.js","sourceRoot":"","sources":["../../../src/hooks/useTestRunHooks.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAI5C,MAAM,UAAU,eAAe;IAC7B,MAAM,EAAE,aAAa,EAAE,GAAG,UAAU,EAAE,CAAA;IACtC,MAAM,oBAAoB,GACxB,aAAa,CAAC,0BAA0B,EAAE,CAAA;IAE5C,OAAO,oBAAoB,CAAC,GAAG,CAAC,CAAC,mBAAmB,EAAE,EAAE;QACtD,MAAM,IAAI,GAAG,MAAM,CACjB,aAAa,CAAC,UAAU,CAAC,mBAAmB,CAAC,EAC7C,qDAAqD,CACtD,CAAA;QAED,OAAO;YACL,mBAAmB;YACnB,IAAI;SACL,CAAA;IACH,CAAC,CAAC,CAAA;AACJ,CAAC","sourcesContent":["import type { Hook, TestRunHookFinished } from '@cucumber/messages'\n\nimport { ensure } from './helpers.js'\nimport { useQueries } from './useQueries.js'\n\ntype RunHooksList = { testRunHookFinished: TestRunHookFinished; hook: Hook }[]\n\nexport function useTestRunHooks(): RunHooksList {\n const { cucumberQuery } = useQueries()\n const testRunHooksFinished: ReadonlyArray<TestRunHookFinished> =\n cucumberQuery.findAllTestRunHookFinished()\n\n return testRunHooksFinished.map((testRunHookFinished) => {\n const hook = ensure(\n cucumberQuery.findHookBy(testRunHookFinished),\n 'Expected testRunHookFinished to resolve with a hook'\n )\n\n return {\n testRunHookFinished,\n hook,\n }\n })\n}\n"]}
|
package/dist/src/index.d.ts
DELETED
package/dist/src/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA;AACrC,cAAc,kBAAkB,CAAA"}
|
package/dist/src/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA;AACrC,cAAc,kBAAkB,CAAA","sourcesContent":["export * from './components/index.js'\nexport * from './hooks/index.js'\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"isTagExpression.d.ts","sourceRoot":"","sources":["../../src/isTagExpression.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAGnE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"isTagExpression.js","sourceRoot":"","sources":["../../src/isTagExpression.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,UAAkB;IACxD,MAAM,aAAa,GAAG,yDAAyD,CAAA;IAC/E,OAAO,CAAC,CAAC,aAAa,CAAC,IAAI,CAAC,UAAU,CAAC,CAAA;AACzC,CAAC","sourcesContent":["export default function isTagExpression(expression: string): boolean {\n const tagExpression = /^\\s*((@[^\\s]+\\s*)|(and\\s+)|(or\\s+)|(not\\s+)|\\(|\\))+\\s*$/\n return !!tagExpression.exec(expression)\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FeatureSearch.d.ts","sourceRoot":"","sources":["../../../src/search/FeatureSearch.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AAGzD,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AAOtD;;;GAGG;AACH,qBAAa,aAAc,YAAW,UAAU,CAAC,eAAe,CAAC;IAC/D,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAsB;;IAStC,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;IAOtD,GAAG,CAAC,eAAe,EAAE,eAAe,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAUzE"}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { create, insert, search } from '@orama/orama';
|
|
2
|
-
const schema = {
|
|
3
|
-
name: 'string',
|
|
4
|
-
description: 'string',
|
|
5
|
-
};
|
|
6
|
-
/**
|
|
7
|
-
* A little different to the other indexes - a Feature doesn't have its own id,
|
|
8
|
-
* so we use the uri of the GherkinDocument as a pointer
|
|
9
|
-
*/
|
|
10
|
-
export class FeatureSearch {
|
|
11
|
-
index;
|
|
12
|
-
constructor() {
|
|
13
|
-
this.index = create({
|
|
14
|
-
schema,
|
|
15
|
-
sort: { enabled: false },
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
async search(term) {
|
|
19
|
-
const { hits } = await search(this.index, {
|
|
20
|
-
term,
|
|
21
|
-
});
|
|
22
|
-
return hits.map((hit) => ({ uri: hit.id, id: hit.id }));
|
|
23
|
-
}
|
|
24
|
-
async add(gherkinDocument, _uri) {
|
|
25
|
-
if (!gherkinDocument.feature)
|
|
26
|
-
return this;
|
|
27
|
-
if (!gherkinDocument.uri)
|
|
28
|
-
throw new Error('Missing uri on gherkinDocument');
|
|
29
|
-
await insert(this.index, {
|
|
30
|
-
id: gherkinDocument.uri,
|
|
31
|
-
name: gherkinDocument.feature.name,
|
|
32
|
-
description: gherkinDocument.feature.description,
|
|
33
|
-
});
|
|
34
|
-
return this;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
//# sourceMappingURL=FeatureSearch.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FeatureSearch.js","sourceRoot":"","sources":["../../../src/search/FeatureSearch.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAc,MAAM,EAAE,MAAM,cAAc,CAAA;AAIjE,MAAM,MAAM,GAAG;IACb,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,QAAQ;CACb,CAAA;AAEV;;;GAGG;AACH,MAAM,OAAO,aAAa;IACP,KAAK,CAAsB;IAE5C;QACE,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC;YAClB,MAAM;YACN,IAAI,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE;SACzB,CAAC,CAAA;IACJ,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,IAAY;QACvB,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE;YACxC,IAAI;SACL,CAAC,CAAA;QACF,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,EAAE,EAAE,EAAE,GAAG,CAAC,EAAE,EAAE,CAAC,CAAC,CAAA;IACzD,CAAC;IAED,KAAK,CAAC,GAAG,CAAC,eAAgC,EAAE,IAAY;QACtD,IAAI,CAAC,eAAe,CAAC,OAAO;YAAE,OAAO,IAAI,CAAA;QACzC,IAAI,CAAC,eAAe,CAAC,GAAG;YAAE,MAAM,IAAI,KAAK,CAAC,gCAAgC,CAAC,CAAA;QAC3E,MAAM,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE;YACvB,EAAE,EAAE,eAAe,CAAC,GAAG;YACvB,IAAI,EAAE,eAAe,CAAC,OAAO,CAAC,IAAI;YAClC,WAAW,EAAE,eAAe,CAAC,OAAO,CAAC,WAAW;SACjD,CAAC,CAAA;QACF,OAAO,IAAI,CAAA;IACb,CAAC;CACF","sourcesContent":["import type { GherkinDocument } from '@cucumber/messages'\nimport { create, insert, type Orama, search } from '@orama/orama'\n\nimport type { IndexHit, TypedIndex } from './types.js'\n\nconst schema = {\n name: 'string',\n description: 'string',\n} as const\n\n/**\n * A little different to the other indexes - a Feature doesn't have its own id,\n * so we use the uri of the GherkinDocument as a pointer\n */\nexport class FeatureSearch implements TypedIndex<GherkinDocument> {\n private readonly index: Orama<typeof schema>\n\n constructor() {\n this.index = create({\n schema,\n sort: { enabled: false },\n })\n }\n\n async search(term: string): Promise<ReadonlyArray<IndexHit>> {\n const { hits } = await search(this.index, {\n term,\n })\n return hits.map((hit) => ({ uri: hit.id, id: hit.id }))\n }\n\n async add(gherkinDocument: GherkinDocument, _uri: string): Promise<this> {\n if (!gherkinDocument.feature) return this\n if (!gherkinDocument.uri) throw new Error('Missing uri on gherkinDocument')\n await insert(this.index, {\n id: gherkinDocument.uri,\n name: gherkinDocument.feature.name,\n description: gherkinDocument.feature.description,\n })\n return this\n }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ScenarioLikeSearch.d.ts","sourceRoot":"","sources":["../../../src/search/ScenarioLikeSearch.ts"],"names":[],"mappings":"AAEA,OAAO,EAAgB,KAAK,UAAU,EAAE,MAAM,YAAY,CAAA;AAO1D,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,CAAA;CACpB;AAED;;;GAGG;AACH,qBAAa,kBAAkB,CAAC,CAAC,SAAS,YAAY,CAAE,YAAW,UAAU,CAAC,CAAC,CAAC;IAC9E,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAsB;;IAStC,MAAM,CAAC,IAAI,EAAE,MAAM;;;;IAUnB,GAAG,CAAC,IAAI,EAAE,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAQ/C"}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { create, insert, search } from '@orama/orama';
|
|
2
|
-
import { ID_SEPARATOR } from './types.js';
|
|
3
|
-
const schema = {
|
|
4
|
-
name: 'string',
|
|
5
|
-
description: 'string',
|
|
6
|
-
};
|
|
7
|
-
/**
|
|
8
|
-
* Can be used for Backgrounds, Scenarios and Rules, searching against the
|
|
9
|
-
* name and description
|
|
10
|
-
*/
|
|
11
|
-
export class ScenarioLikeSearch {
|
|
12
|
-
index;
|
|
13
|
-
constructor() {
|
|
14
|
-
this.index = create({
|
|
15
|
-
schema,
|
|
16
|
-
sort: { enabled: false },
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
async search(term) {
|
|
20
|
-
const { hits } = await search(this.index, {
|
|
21
|
-
term,
|
|
22
|
-
});
|
|
23
|
-
return hits.map((hit) => {
|
|
24
|
-
const [uri, id] = hit.id.split(ID_SEPARATOR);
|
|
25
|
-
return { uri, id };
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
async add(item, uri) {
|
|
29
|
-
await insert(this.index, {
|
|
30
|
-
id: uri + ID_SEPARATOR + item.id,
|
|
31
|
-
name: item.name,
|
|
32
|
-
description: item.description,
|
|
33
|
-
});
|
|
34
|
-
return this;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
//# sourceMappingURL=ScenarioLikeSearch.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ScenarioLikeSearch.js","sourceRoot":"","sources":["../../../src/search/ScenarioLikeSearch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAc,MAAM,EAAE,MAAM,cAAc,CAAA;AAEjE,OAAO,EAAE,YAAY,EAAmB,MAAM,YAAY,CAAA;AAE1D,MAAM,MAAM,GAAG;IACb,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,QAAQ;CACb,CAAA;AAQV;;;GAGG;AACH,MAAM,OAAO,kBAAkB;IACZ,KAAK,CAAsB;IAE5C;QACE,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC;YAClB,MAAM;YACN,IAAI,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE;SACzB,CAAC,CAAA;IACJ,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,IAAY;QACvB,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE;YACxC,IAAI;SACL,CAAC,CAAA;QACF,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE;YACtB,MAAM,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,GAAG,CAAC,EAAE,CAAC,KAAK,CAAC,YAAY,CAAC,CAAA;YAC5C,OAAO,EAAE,GAAG,EAAE,EAAE,EAAE,CAAA;QACpB,CAAC,CAAC,CAAA;IACJ,CAAC;IAED,KAAK,CAAC,GAAG,CAAC,IAAO,EAAE,GAAW;QAC5B,MAAM,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE;YACvB,EAAE,EAAE,GAAG,GAAG,YAAY,GAAG,IAAI,CAAC,EAAE;YAChC,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,WAAW,EAAE,IAAI,CAAC,WAAW;SAC9B,CAAC,CAAA;QACF,OAAO,IAAI,CAAA;IACb,CAAC;CACF","sourcesContent":["import { create, insert, type Orama, search } from '@orama/orama'\n\nimport { ID_SEPARATOR, type TypedIndex } from './types.js'\n\nconst schema = {\n name: 'string',\n description: 'string',\n} as const\n\nexport interface ScenarioLike {\n id: string\n name: string\n description: string\n}\n\n/**\n * Can be used for Backgrounds, Scenarios and Rules, searching against the\n * name and description\n */\nexport class ScenarioLikeSearch<T extends ScenarioLike> implements TypedIndex<T> {\n private readonly index: Orama<typeof schema>\n\n constructor() {\n this.index = create({\n schema,\n sort: { enabled: false },\n })\n }\n\n async search(term: string) {\n const { hits } = await search(this.index, {\n term,\n })\n return hits.map((hit) => {\n const [uri, id] = hit.id.split(ID_SEPARATOR)\n return { uri, id }\n })\n }\n\n async add(item: T, uri: string): Promise<this> {\n await insert(this.index, {\n id: uri + ID_SEPARATOR + item.id,\n name: item.name,\n description: item.description,\n })\n return this\n }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StepSearch.d.ts","sourceRoot":"","sources":["../../../src/search/StepSearch.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAA;AAG9C,OAAO,EAAgB,KAAK,UAAU,EAAE,MAAM,YAAY,CAAA;AAS1D,qBAAa,UAAW,YAAW,UAAU,CAAC,IAAI,CAAC;IACjD,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAsB;;IAStC,MAAM,CAAC,IAAI,EAAE,MAAM;;;;IAanB,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAUlD"}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { create, insert, search } from '@orama/orama';
|
|
2
|
-
import { ID_SEPARATOR } from './types.js';
|
|
3
|
-
const schema = {
|
|
4
|
-
keyword: 'string',
|
|
5
|
-
text: 'string',
|
|
6
|
-
docString: 'string',
|
|
7
|
-
dataTable: 'string[]',
|
|
8
|
-
};
|
|
9
|
-
export class StepSearch {
|
|
10
|
-
index;
|
|
11
|
-
constructor() {
|
|
12
|
-
this.index = create({
|
|
13
|
-
schema,
|
|
14
|
-
sort: { enabled: false },
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
async search(term) {
|
|
18
|
-
const { hits } = await search(this.index, {
|
|
19
|
-
term,
|
|
20
|
-
boost: {
|
|
21
|
-
text: 2,
|
|
22
|
-
},
|
|
23
|
-
});
|
|
24
|
-
return hits.map((hit) => {
|
|
25
|
-
const [uri, id] = hit.id.split(ID_SEPARATOR);
|
|
26
|
-
return { uri, id };
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
async add(step, uri) {
|
|
30
|
-
await insert(this.index, {
|
|
31
|
-
id: uri + ID_SEPARATOR + step.id,
|
|
32
|
-
keyword: step.keyword,
|
|
33
|
-
text: step.text,
|
|
34
|
-
docString: step.docString?.content,
|
|
35
|
-
dataTable: step.dataTable?.rows.flatMap((row) => row.cells).map((cell) => cell.value),
|
|
36
|
-
});
|
|
37
|
-
return this;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
//# sourceMappingURL=StepSearch.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StepSearch.js","sourceRoot":"","sources":["../../../src/search/StepSearch.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAc,MAAM,EAAE,MAAM,cAAc,CAAA;AAEjE,OAAO,EAAE,YAAY,EAAmB,MAAM,YAAY,CAAA;AAE1D,MAAM,MAAM,GAAG;IACb,OAAO,EAAE,QAAQ;IACjB,IAAI,EAAE,QAAQ;IACd,SAAS,EAAE,QAAQ;IACnB,SAAS,EAAE,UAAU;CACb,CAAA;AAEV,MAAM,OAAO,UAAU;IACJ,KAAK,CAAsB;IAE5C;QACE,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC;YAClB,MAAM;YACN,IAAI,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE;SACzB,CAAC,CAAA;IACJ,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,IAAY;QACvB,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE;YACxC,IAAI;YACJ,KAAK,EAAE;gBACL,IAAI,EAAE,CAAC;aACR;SACF,CAAC,CAAA;QACF,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE;YACtB,MAAM,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,GAAG,CAAC,EAAE,CAAC,KAAK,CAAC,YAAY,CAAC,CAAA;YAC5C,OAAO,EAAE,GAAG,EAAE,EAAE,EAAE,CAAA;QACpB,CAAC,CAAC,CAAA;IACJ,CAAC;IAED,KAAK,CAAC,GAAG,CAAC,IAAU,EAAE,GAAW;QAC/B,MAAM,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE;YACvB,EAAE,EAAE,GAAG,GAAG,YAAY,GAAG,IAAI,CAAC,EAAE;YAChC,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,OAAO;YAClC,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC;SACtF,CAAC,CAAA;QACF,OAAO,IAAI,CAAA;IACb,CAAC;CACF","sourcesContent":["import type { Step } from '@cucumber/messages'\nimport { create, insert, type Orama, search } from '@orama/orama'\n\nimport { ID_SEPARATOR, type TypedIndex } from './types.js'\n\nconst schema = {\n keyword: 'string',\n text: 'string',\n docString: 'string',\n dataTable: 'string[]',\n} as const\n\nexport class StepSearch implements TypedIndex<Step> {\n private readonly index: Orama<typeof schema>\n\n constructor() {\n this.index = create({\n schema,\n sort: { enabled: false },\n })\n }\n\n async search(term: string) {\n const { hits } = await search(this.index, {\n term,\n boost: {\n text: 2,\n },\n })\n return hits.map((hit) => {\n const [uri, id] = hit.id.split(ID_SEPARATOR)\n return { uri, id }\n })\n }\n\n async add(step: Step, uri: string): Promise<this> {\n await insert(this.index, {\n id: uri + ID_SEPARATOR + step.id,\n keyword: step.keyword,\n text: step.text,\n docString: step.docString?.content,\n dataTable: step.dataTable?.rows.flatMap((row) => row.cells).map((cell) => cell.value),\n })\n return this\n }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TextSearch.d.ts","sourceRoot":"","sources":["../../../src/search/TextSearch.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAc,eAAe,EAAkB,MAAM,oBAAoB,CAAA;AAIrF,OAAO,KAAK,EAAgC,UAAU,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAEvF,qBAAa,UAAW,YAAW,WAAW;IAC5C,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAsB;IACpD,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAuC;IACxE,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAiC;IAC5D,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAqC;IACpE,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAmB;IAEjC,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,GAAG,KAAK,CAAC;IA6ClD,GAAG,CAAC,eAAe,EAAE,eAAe;CAclD"}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { walkGherkinDocument } from '@cucumber/gherkin-utils';
|
|
2
|
-
import { FeatureSearch } from './FeatureSearch.js';
|
|
3
|
-
import { ScenarioLikeSearch } from './ScenarioLikeSearch.js';
|
|
4
|
-
import { StepSearch } from './StepSearch.js';
|
|
5
|
-
export class TextSearch {
|
|
6
|
-
featureSearch = new FeatureSearch();
|
|
7
|
-
backgroundSearch = new ScenarioLikeSearch();
|
|
8
|
-
ruleSearch = new ScenarioLikeSearch();
|
|
9
|
-
scenarioSearch = new ScenarioLikeSearch();
|
|
10
|
-
stepSearch = new StepSearch();
|
|
11
|
-
async search(query) {
|
|
12
|
-
const [featureHits, backgroundHits, ruleHits, scenarioHits, stepHits] = await Promise.all([
|
|
13
|
-
this.featureSearch.search(query),
|
|
14
|
-
this.backgroundSearch.search(query),
|
|
15
|
-
this.ruleSearch.search(query),
|
|
16
|
-
this.scenarioSearch.search(query),
|
|
17
|
-
this.stepSearch.search(query),
|
|
18
|
-
]);
|
|
19
|
-
const allHits = [
|
|
20
|
-
...featureHits,
|
|
21
|
-
...backgroundHits,
|
|
22
|
-
...ruleHits,
|
|
23
|
-
...scenarioHits,
|
|
24
|
-
...stepHits,
|
|
25
|
-
];
|
|
26
|
-
if (allHits.length === 0) {
|
|
27
|
-
return false;
|
|
28
|
-
}
|
|
29
|
-
const map = new Map();
|
|
30
|
-
const getOrDefault = (uri) => {
|
|
31
|
-
let entry = map.get(uri);
|
|
32
|
-
if (!entry) {
|
|
33
|
-
entry = { feature: false, background: [], rule: [], scenario: [], step: [] };
|
|
34
|
-
map.set(uri, entry);
|
|
35
|
-
}
|
|
36
|
-
return entry;
|
|
37
|
-
};
|
|
38
|
-
for (const hit of featureHits) {
|
|
39
|
-
getOrDefault(hit.uri).feature = true;
|
|
40
|
-
}
|
|
41
|
-
for (const hit of backgroundHits) {
|
|
42
|
-
getOrDefault(hit.uri).background.push(hit.id);
|
|
43
|
-
}
|
|
44
|
-
for (const hit of ruleHits) {
|
|
45
|
-
getOrDefault(hit.uri).rule.push(hit.id);
|
|
46
|
-
}
|
|
47
|
-
for (const hit of scenarioHits) {
|
|
48
|
-
getOrDefault(hit.uri).scenario.push(hit.id);
|
|
49
|
-
}
|
|
50
|
-
for (const hit of stepHits) {
|
|
51
|
-
getOrDefault(hit.uri).step.push(hit.id);
|
|
52
|
-
}
|
|
53
|
-
return map;
|
|
54
|
-
}
|
|
55
|
-
async add(gherkinDocument) {
|
|
56
|
-
const uri = gherkinDocument.uri;
|
|
57
|
-
if (!uri) {
|
|
58
|
-
return;
|
|
59
|
-
}
|
|
60
|
-
const promises = walkGherkinDocument(gherkinDocument, [], {
|
|
61
|
-
feature: (_feature, acc) => [...acc, this.featureSearch.add(gherkinDocument, uri)],
|
|
62
|
-
background: (background, acc) => [...acc, this.backgroundSearch.add(background, uri)],
|
|
63
|
-
rule: (rule, acc) => [...acc, this.ruleSearch.add(rule, uri)],
|
|
64
|
-
scenario: (scenario, acc) => [...acc, this.scenarioSearch.add(scenario, uri)],
|
|
65
|
-
step: (step, acc) => [...acc, this.stepSearch.add(step, uri)],
|
|
66
|
-
});
|
|
67
|
-
await Promise.all(promises);
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
//# sourceMappingURL=TextSearch.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TextSearch.js","sourceRoot":"","sources":["../../../src/search/TextSearch.ts"],"names":[],"mappings":"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","sourcesContent":["import { walkGherkinDocument } from '@cucumber/gherkin-utils'\nimport type { Background, GherkinDocument, Rule, Scenario } from '@cucumber/messages'\nimport { FeatureSearch } from './FeatureSearch.js'\nimport { ScenarioLikeSearch } from './ScenarioLikeSearch.js'\nimport { StepSearch } from './StepSearch.js'\nimport type { DocumentSearchHits, IndexHit, SearchHits, SearchIndex } from './types.js'\n\nexport class TextSearch implements SearchIndex {\n private readonly featureSearch = new FeatureSearch()\n private readonly backgroundSearch = new ScenarioLikeSearch<Background>()\n private readonly ruleSearch = new ScenarioLikeSearch<Rule>()\n private readonly scenarioSearch = new ScenarioLikeSearch<Scenario>()\n private readonly stepSearch = new StepSearch()\n\n public async search(query: string): Promise<SearchHits | false> {\n const [featureHits, backgroundHits, ruleHits, scenarioHits, stepHits] = await Promise.all([\n this.featureSearch.search(query),\n this.backgroundSearch.search(query),\n this.ruleSearch.search(query),\n this.scenarioSearch.search(query),\n this.stepSearch.search(query),\n ])\n const allHits: ReadonlyArray<IndexHit> = [\n ...featureHits,\n ...backgroundHits,\n ...ruleHits,\n ...scenarioHits,\n ...stepHits,\n ]\n if (allHits.length === 0) {\n return false\n }\n const map = new Map<string, DocumentSearchHits>()\n const getOrDefault = (uri: string) => {\n let entry = map.get(uri)\n if (!entry) {\n entry = { feature: false, background: [], rule: [], scenario: [], step: [] }\n map.set(uri, entry)\n }\n return entry\n }\n for (const hit of featureHits) {\n getOrDefault(hit.uri).feature = true\n }\n for (const hit of backgroundHits) {\n getOrDefault(hit.uri).background.push(hit.id)\n }\n for (const hit of ruleHits) {\n getOrDefault(hit.uri).rule.push(hit.id)\n }\n for (const hit of scenarioHits) {\n getOrDefault(hit.uri).scenario.push(hit.id)\n }\n for (const hit of stepHits) {\n getOrDefault(hit.uri).step.push(hit.id)\n }\n return map\n }\n\n public async add(gherkinDocument: GherkinDocument) {\n const uri = gherkinDocument.uri\n if (!uri) {\n return\n }\n const promises = walkGherkinDocument<Array<Promise<unknown>>>(gherkinDocument, [], {\n feature: (_feature, acc) => [...acc, this.featureSearch.add(gherkinDocument, uri)],\n background: (background, acc) => [...acc, this.backgroundSearch.add(background, uri)],\n rule: (rule, acc) => [...acc, this.ruleSearch.add(rule, uri)],\n scenario: (scenario, acc) => [...acc, this.scenarioSearch.add(scenario, uri)],\n step: (step, acc) => [...acc, this.stepSearch.add(step, uri)],\n })\n await Promise.all(promises)\n }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createSearchIndex.d.ts","sourceRoot":"","sources":["../../../src/search/createSearchIndex.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AAGzD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAE7C;;GAEG;AACH,wBAAsB,iBAAiB,CACrC,gBAAgB,EAAE,aAAa,CAAC,eAAe,CAAC,GAC/C,OAAO,CAAC,WAAW,CAAC,CAItB"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { TextSearch } from './TextSearch.js';
|
|
2
|
-
/**
|
|
3
|
-
* Creates a search index that supports querying by term
|
|
4
|
-
*/
|
|
5
|
-
export async function createSearchIndex(gherkinDocuments) {
|
|
6
|
-
const textSearch = new TextSearch();
|
|
7
|
-
await Promise.all(gherkinDocuments.map((gherkinDocument) => textSearch.add(gherkinDocument)));
|
|
8
|
-
return textSearch;
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=createSearchIndex.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createSearchIndex.js","sourceRoot":"","sources":["../../../src/search/createSearchIndex.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAG5C;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,iBAAiB,CACrC,gBAAgD;IAEhD,MAAM,UAAU,GAAG,IAAI,UAAU,EAAE,CAAA;IACnC,MAAM,OAAO,CAAC,GAAG,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC,eAAe,EAAE,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC,CAAC,CAAA;IAC7F,OAAO,UAAU,CAAA;AACnB,CAAC","sourcesContent":["import type { GherkinDocument } from '@cucumber/messages'\n\nimport { TextSearch } from './TextSearch.js'\nimport type { SearchIndex } from './types.js'\n\n/**\n * Creates a search index that supports querying by term\n */\nexport async function createSearchIndex(\n gherkinDocuments: ReadonlyArray<GherkinDocument>\n): Promise<SearchIndex> {\n const textSearch = new TextSearch()\n await Promise.all(gherkinDocuments.map((gherkinDocument) => textSearch.add(gherkinDocument)))\n return textSearch\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deriveLineageConstraints.d.ts","sourceRoot":"","sources":["../../../src/search/deriveLineageConstraints.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAChD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAA;AAC9C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAEpD,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,aAAa,CAAC;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC,GACzD,kBAAkB,CAoCpB"}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
export function deriveLineageConstraints(items) {
|
|
2
|
-
const gherkinDocument = new Set();
|
|
3
|
-
const background = new Set();
|
|
4
|
-
const rule = new Set();
|
|
5
|
-
const scenario = new Set();
|
|
6
|
-
const examples = new Set();
|
|
7
|
-
const example = new Set();
|
|
8
|
-
for (const { pickle, lineage } of items) {
|
|
9
|
-
gherkinDocument.add(pickle.uri);
|
|
10
|
-
if (lineage.background) {
|
|
11
|
-
background.add(lineage.background.id);
|
|
12
|
-
}
|
|
13
|
-
if (lineage.ruleBackground) {
|
|
14
|
-
background.add(lineage.ruleBackground.id);
|
|
15
|
-
}
|
|
16
|
-
if (lineage.rule) {
|
|
17
|
-
rule.add(lineage.rule.id);
|
|
18
|
-
}
|
|
19
|
-
if (lineage.scenario) {
|
|
20
|
-
scenario.add(lineage.scenario.id);
|
|
21
|
-
}
|
|
22
|
-
if (lineage.examples) {
|
|
23
|
-
examples.add(lineage.examples.id);
|
|
24
|
-
}
|
|
25
|
-
if (lineage.example) {
|
|
26
|
-
example.add(lineage.example.id);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
return {
|
|
30
|
-
gherkinDocument,
|
|
31
|
-
background,
|
|
32
|
-
rule,
|
|
33
|
-
scenario,
|
|
34
|
-
examples,
|
|
35
|
-
example,
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
//# sourceMappingURL=deriveLineageConstraints.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deriveLineageConstraints.js","sourceRoot":"","sources":["../../../src/search/deriveLineageConstraints.ts"],"names":[],"mappings":"AAIA,MAAM,UAAU,wBAAwB,CACtC,KAA0D;IAE1D,MAAM,eAAe,GAAG,IAAI,GAAG,EAAU,CAAA;IACzC,MAAM,UAAU,GAAG,IAAI,GAAG,EAAU,CAAA;IACpC,MAAM,IAAI,GAAG,IAAI,GAAG,EAAU,CAAA;IAC9B,MAAM,QAAQ,GAAG,IAAI,GAAG,EAAU,CAAA;IAClC,MAAM,QAAQ,GAAG,IAAI,GAAG,EAAU,CAAA;IAClC,MAAM,OAAO,GAAG,IAAI,GAAG,EAAU,CAAA;IACjC,KAAK,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,KAAK,EAAE,CAAC;QACxC,eAAe,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAA;QAC/B,IAAI,OAAO,CAAC,UAAU,EAAE,CAAC;YACvB,UAAU,CAAC,GAAG,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC,CAAA;QACvC,CAAC;QACD,IAAI,OAAO,CAAC,cAAc,EAAE,CAAC;YAC3B,UAAU,CAAC,GAAG,CAAC,OAAO,CAAC,cAAc,CAAC,EAAE,CAAC,CAAA;QAC3C,CAAC;QACD,IAAI,OAAO,CAAC,IAAI,EAAE,CAAC;YACjB,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;QAC3B,CAAC;QACD,IAAI,OAAO,CAAC,QAAQ,EAAE,CAAC;YACrB,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAA;QACnC,CAAC;QACD,IAAI,OAAO,CAAC,QAAQ,EAAE,CAAC;YACrB,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAA;QACnC,CAAC;QACD,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;YACpB,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,CAAA;QACjC,CAAC;IACH,CAAC;IACD,OAAO;QACL,eAAe;QACf,UAAU;QACV,IAAI;QACJ,QAAQ;QACR,QAAQ;QACR,OAAO;KACR,CAAA;AACH,CAAC","sourcesContent":["import type { Pickle } from '@cucumber/messages'\nimport type { Lineage } from '@cucumber/query'\nimport type { LineageConstraints } from './types.js'\n\nexport function deriveLineageConstraints(\n items: ReadonlyArray<{ pickle: Pickle; lineage: Lineage }>\n): LineageConstraints {\n const gherkinDocument = new Set<string>()\n const background = new Set<string>()\n const rule = new Set<string>()\n const scenario = new Set<string>()\n const examples = new Set<string>()\n const example = new Set<string>()\n for (const { pickle, lineage } of items) {\n gherkinDocument.add(pickle.uri)\n if (lineage.background) {\n background.add(lineage.background.id)\n }\n if (lineage.ruleBackground) {\n background.add(lineage.ruleBackground.id)\n }\n if (lineage.rule) {\n rule.add(lineage.rule.id)\n }\n if (lineage.scenario) {\n scenario.add(lineage.scenario.id)\n }\n if (lineage.examples) {\n examples.add(lineage.examples.id)\n }\n if (lineage.example) {\n example.add(lineage.example.id)\n }\n }\n return {\n gherkinDocument,\n background,\n rule,\n scenario,\n examples,\n example,\n }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/search/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAA;AACtC,cAAc,+BAA+B,CAAA;AAC7C,cAAc,4BAA4B,CAAA;AAC1C,cAAc,YAAY,CAAA"}
|
package/dist/src/search/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/search/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAA;AACtC,cAAc,+BAA+B,CAAA;AAC7C,cAAc,4BAA4B,CAAA;AAC1C,cAAc,YAAY,CAAA","sourcesContent":["export * from './createSearchIndex.js'\nexport * from './deriveLineageConstraints.js'\nexport * from './pruneGherkinDocuments.js'\nexport * from './types.js'\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pruneGherkinDocuments.d.ts","sourceRoot":"","sources":["../../../src/search/pruneGherkinDocuments.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAKV,eAAe,EAMhB,MAAM,oBAAoB,CAAA;AAC3B,OAAO,KAAK,EAAsB,kBAAkB,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AAEpF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,qBAAqB,CACnC,gBAAgB,EAAE,aAAa,CAAC,eAAe,CAAC,EAChD,WAAW,EAAE,kBAAkB,EAC/B,UAAU,CAAC,EAAE,UAAU,GAAG,KAAK,GAC9B,aAAa,CAAC,eAAe,CAAC,CAsBhC"}
|