@cucumber/react-components 21.1.1 → 22.1.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 -1
- package/dist/src/CucumberQueryContext.js +3 -8
- package/dist/src/CucumberQueryContext.js.map +1 -1
- package/dist/src/EnvelopesQueryContext.js +8 -20
- package/dist/src/EnvelopesQueryContext.js.map +1 -1
- package/dist/src/GherkinQueryContext.js +3 -8
- package/dist/src/GherkinQueryContext.js.map +1 -1
- package/dist/src/SearchQueryContext.js +24 -53
- package/dist/src/SearchQueryContext.js.map +1 -1
- package/dist/src/UriContext.js +2 -7
- package/dist/src/UriContext.js.map +1 -1
- package/dist/src/ciCommitLink.js +3 -9
- package/dist/src/ciCommitLink.js.map +1 -1
- package/dist/src/components/CucumberReact.d.ts +1 -1
- package/dist/src/components/CucumberReact.d.ts.map +1 -1
- package/dist/src/components/CucumberReact.js +7 -14
- package/dist/src/components/CucumberReact.js.map +1 -1
- package/dist/src/components/app/CICommitLink.js +14 -22
- package/dist/src/components/app/CICommitLink.js.map +1 -1
- package/dist/src/components/app/CIJobLink.js +8 -15
- package/dist/src/components/app/CIJobLink.js.map +1 -1
- package/dist/src/components/app/EnvelopesWrapper.js +11 -38
- package/dist/src/components/app/EnvelopesWrapper.js.map +1 -1
- package/dist/src/components/app/ExecutionSummary.js +54 -61
- package/dist/src/components/app/ExecutionSummary.js.map +1 -1
- package/dist/src/components/app/FilteredResults.d.ts.map +1 -1
- package/dist/src/components/app/FilteredResults.js +21 -39
- package/dist/src/components/app/FilteredResults.js.map +1 -1
- package/dist/src/components/app/GherkinDocumentList.js +27 -57
- package/dist/src/components/app/GherkinDocumentList.js.map +1 -1
- package/dist/src/components/app/HighLight.js +14 -21
- package/dist/src/components/app/HighLight.js.map +1 -1
- package/dist/src/components/app/NavigationButton.js +4 -23
- package/dist/src/components/app/NavigationButton.js.map +1 -1
- package/dist/src/components/app/NoMatchResult.js +8 -15
- package/dist/src/components/app/NoMatchResult.js.map +1 -1
- package/dist/src/components/app/OSIcon.js +10 -17
- package/dist/src/components/app/OSIcon.js.map +1 -1
- package/dist/src/components/app/QueriesWrapper.d.ts +1 -1
- package/dist/src/components/app/QueriesWrapper.d.ts.map +1 -1
- package/dist/src/components/app/QueriesWrapper.js +7 -14
- package/dist/src/components/app/QueriesWrapper.js.map +1 -1
- package/dist/src/components/app/RuntimeIcon.js +10 -17
- package/dist/src/components/app/RuntimeIcon.js.map +1 -1
- package/dist/src/components/app/SearchBar.d.ts.map +1 -1
- package/dist/src/components/app/SearchBar.js +25 -30
- package/dist/src/components/app/SearchBar.js.map +1 -1
- package/dist/src/components/app/SearchWrapper.d.ts +1 -1
- package/dist/src/components/app/SearchWrapper.d.ts.map +1 -1
- package/dist/src/components/app/SearchWrapper.js +4 -46
- package/dist/src/components/app/SearchWrapper.js.map +1 -1
- package/dist/src/components/app/StatusesSummary.js +8 -15
- package/dist/src/components/app/StatusesSummary.js.map +1 -1
- package/dist/src/components/app/icons/CucumberLogo.d.ts +1 -1
- package/dist/src/components/app/icons/CucumberLogo.js +7 -14
- 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.js +8 -15
- package/dist/src/components/app/icons/Jvm.js.map +1 -1
- package/dist/src/components/app/icons/Linux.js +18 -25
- 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.js +4 -11
- 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.js +34 -41
- 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.js +4 -11
- package/dist/src/components/app/icons/Ruby.js.map +1 -1
- package/dist/src/components/app/icons/Windows.js +4 -11
- package/dist/src/components/app/icons/Windows.js.map +1 -1
- package/dist/src/components/app/index.d.ts +11 -11
- package/dist/src/components/app/index.d.ts.map +1 -1
- package/dist/src/components/app/index.js +11 -27
- package/dist/src/components/app/index.js.map +1 -1
- package/dist/src/components/app/rehypePlugins.d.ts.map +1 -1
- package/dist/src/components/app/rehypePlugins.js +8 -13
- package/dist/src/components/app/rehypePlugins.js.map +1 -1
- package/dist/src/components/app/remarkPlugins.js +3 -8
- package/dist/src/components/app/remarkPlugins.js.map +1 -1
- package/dist/src/components/app/statuses.js +2 -27
- package/dist/src/components/app/statuses.js.map +1 -1
- package/dist/src/components/customise/customRendering.d.ts +2 -1
- package/dist/src/components/customise/customRendering.d.ts.map +1 -1
- package/dist/src/components/customise/customRendering.js +6 -33
- package/dist/src/components/customise/customRendering.js.map +1 -1
- package/dist/src/components/customise/index.d.ts +2 -2
- package/dist/src/components/customise/index.d.ts.map +1 -1
- package/dist/src/components/customise/index.js +2 -18
- package/dist/src/components/customise/index.js.map +1 -1
- package/dist/src/components/customise/theming.js +1 -2
- package/dist/src/components/gherkin/Anchor.d.ts +1 -1
- package/dist/src/components/gherkin/Anchor.d.ts.map +1 -1
- package/dist/src/components/gherkin/Anchor.js +11 -18
- package/dist/src/components/gherkin/Anchor.js.map +1 -1
- package/dist/src/components/gherkin/Attachment.d.ts +1 -1
- package/dist/src/components/gherkin/Attachment.d.ts.map +1 -1
- package/dist/src/components/gherkin/Attachment.js +43 -77
- package/dist/src/components/gherkin/Attachment.js.map +1 -1
- package/dist/src/components/gherkin/Background.d.ts +1 -1
- package/dist/src/components/gherkin/Background.d.ts.map +1 -1
- package/dist/src/components/gherkin/Background.js +17 -24
- package/dist/src/components/gherkin/Background.js.map +1 -1
- package/dist/src/components/gherkin/Children.d.ts +1 -1
- package/dist/src/components/gherkin/Children.d.ts.map +1 -1
- package/dist/src/components/gherkin/Children.js +7 -14
- package/dist/src/components/gherkin/Children.js.map +1 -1
- package/dist/src/components/gherkin/DataTable.d.ts +1 -1
- package/dist/src/components/gherkin/DataTable.d.ts.map +1 -1
- package/dist/src/components/gherkin/DataTable.js +12 -19
- package/dist/src/components/gherkin/DataTable.js.map +1 -1
- package/dist/src/components/gherkin/Description.d.ts +1 -1
- package/dist/src/components/gherkin/Description.d.ts.map +1 -1
- package/dist/src/components/gherkin/Description.js +9 -16
- package/dist/src/components/gherkin/Description.js.map +1 -1
- package/dist/src/components/gherkin/DocString.d.ts +1 -1
- package/dist/src/components/gherkin/DocString.d.ts.map +1 -1
- package/dist/src/components/gherkin/DocString.js +9 -16
- package/dist/src/components/gherkin/DocString.js.map +1 -1
- package/dist/src/components/gherkin/ErrorMessage.d.ts +3 -3
- package/dist/src/components/gherkin/ErrorMessage.d.ts.map +1 -1
- package/dist/src/components/gherkin/ErrorMessage.js +8 -15
- package/dist/src/components/gherkin/ErrorMessage.js.map +1 -1
- package/dist/src/components/gherkin/ExampleDetail.js +31 -61
- package/dist/src/components/gherkin/ExampleDetail.js.map +1 -1
- package/dist/src/components/gherkin/Examples.d.ts +1 -1
- package/dist/src/components/gherkin/Examples.d.ts.map +1 -1
- package/dist/src/components/gherkin/Examples.js +20 -27
- package/dist/src/components/gherkin/Examples.js.map +1 -1
- package/dist/src/components/gherkin/ExamplesContext.d.ts +1 -1
- package/dist/src/components/gherkin/ExamplesContext.js +2 -5
- package/dist/src/components/gherkin/ExamplesContext.js.map +1 -1
- package/dist/src/components/gherkin/ExamplesTable.d.ts +1 -1
- package/dist/src/components/gherkin/ExamplesTable.d.ts.map +1 -1
- package/dist/src/components/gherkin/ExamplesTable.js +29 -59
- package/dist/src/components/gherkin/ExamplesTable.js.map +1 -1
- package/dist/src/components/gherkin/Feature.d.ts +1 -1
- package/dist/src/components/gherkin/Feature.d.ts.map +1 -1
- package/dist/src/components/gherkin/Feature.js +24 -31
- package/dist/src/components/gherkin/Feature.js.map +1 -1
- package/dist/src/components/gherkin/GherkinDocument.d.ts +1 -1
- package/dist/src/components/gherkin/GherkinDocument.d.ts.map +1 -1
- package/dist/src/components/gherkin/GherkinDocument.js +7 -14
- package/dist/src/components/gherkin/GherkinDocument.js.map +1 -1
- package/dist/src/components/gherkin/GherkinStep.d.ts +1 -1
- package/dist/src/components/gherkin/GherkinStep.d.ts.map +1 -1
- package/dist/src/components/gherkin/GherkinStep.js +38 -46
- package/dist/src/components/gherkin/GherkinStep.js.map +1 -1
- package/dist/src/components/gherkin/GherkinSteps.d.ts +1 -1
- package/dist/src/components/gherkin/GherkinSteps.d.ts.map +1 -1
- package/dist/src/components/gherkin/GherkinSteps.js +10 -17
- package/dist/src/components/gherkin/GherkinSteps.js.map +1 -1
- package/dist/src/components/gherkin/HookStep.d.ts +1 -1
- package/dist/src/components/gherkin/HookStep.d.ts.map +1 -1
- package/dist/src/components/gherkin/HookStep.js +22 -52
- package/dist/src/components/gherkin/HookStep.js.map +1 -1
- package/dist/src/components/gherkin/HookSteps.js +5 -12
- package/dist/src/components/gherkin/HookSteps.js.map +1 -1
- package/dist/src/components/gherkin/Keyword.d.ts +1 -1
- package/dist/src/components/gherkin/Keyword.d.ts.map +1 -1
- package/dist/src/components/gherkin/Keyword.js +7 -14
- package/dist/src/components/gherkin/Keyword.js.map +1 -1
- package/dist/src/components/gherkin/MDG.js +25 -32
- package/dist/src/components/gherkin/MDG.js.map +1 -1
- package/dist/src/components/gherkin/Parameter.d.ts +1 -1
- package/dist/src/components/gherkin/Parameter.d.ts.map +1 -1
- package/dist/src/components/gherkin/Parameter.js +7 -14
- package/dist/src/components/gherkin/Parameter.js.map +1 -1
- package/dist/src/components/gherkin/Rule.d.ts +1 -1
- package/dist/src/components/gherkin/Rule.d.ts.map +1 -1
- package/dist/src/components/gherkin/Rule.js +22 -29
- package/dist/src/components/gherkin/Rule.js.map +1 -1
- package/dist/src/components/gherkin/Scenario.d.ts +1 -1
- package/dist/src/components/gherkin/Scenario.d.ts.map +1 -1
- package/dist/src/components/gherkin/Scenario.js +35 -65
- package/dist/src/components/gherkin/Scenario.js.map +1 -1
- package/dist/src/components/gherkin/StatusIcon.d.ts +1 -1
- package/dist/src/components/gherkin/StatusIcon.d.ts.map +1 -1
- package/dist/src/components/gherkin/StatusIcon.js +16 -23
- package/dist/src/components/gherkin/StatusIcon.js.map +1 -1
- package/dist/src/components/gherkin/StepItem.js +7 -14
- package/dist/src/components/gherkin/StepItem.js.map +1 -1
- package/dist/src/components/gherkin/StepsList.js +4 -11
- package/dist/src/components/gherkin/StepsList.js.map +1 -1
- package/dist/src/components/gherkin/Tags.d.ts +1 -1
- package/dist/src/components/gherkin/Tags.d.ts.map +1 -1
- package/dist/src/components/gherkin/Tags.js +9 -16
- package/dist/src/components/gherkin/Tags.js.map +1 -1
- package/dist/src/components/gherkin/Title.d.ts +1 -1
- package/dist/src/components/gherkin/Title.d.ts.map +1 -1
- package/dist/src/components/gherkin/Title.js +9 -16
- package/dist/src/components/gherkin/Title.js.map +1 -1
- package/dist/src/components/gherkin/attachmentFilename.js +3 -10
- package/dist/src/components/gherkin/attachmentFilename.js.map +1 -1
- package/dist/src/components/gherkin/index.d.ts +25 -25
- package/dist/src/components/gherkin/index.d.ts.map +1 -1
- package/dist/src/components/gherkin/index.js +25 -41
- package/dist/src/components/gherkin/index.js.map +1 -1
- package/dist/src/components/gherkin/isNumber.js +1 -4
- package/dist/src/components/gherkin/isNumber.js.map +1 -1
- package/dist/src/components/gherkin/statusName.js +1 -3
- package/dist/src/components/gherkin/statusName.js.map +1 -1
- package/dist/src/components/index.d.ts +4 -4
- package/dist/src/components/index.d.ts.map +1 -1
- package/dist/src/components/index.js +4 -33
- package/dist/src/components/index.js.map +1 -1
- package/dist/src/components/results/TestStepResultDetails.d.ts +4 -0
- package/dist/src/components/results/TestStepResultDetails.d.ts.map +1 -0
- package/dist/src/components/results/TestStepResultDetails.js +16 -0
- package/dist/src/components/results/TestStepResultDetails.js.map +1 -0
- package/dist/src/components/results/index.d.ts +2 -0
- package/dist/src/components/results/index.d.ts.map +1 -0
- package/dist/src/components/results/index.js +2 -0
- package/dist/src/components/results/index.js.map +1 -0
- package/dist/src/countScenariosByStatuses.d.ts +2 -1
- package/dist/src/countScenariosByStatuses.d.ts.map +1 -1
- package/dist/src/countScenariosByStatuses.js +26 -33
- package/dist/src/countScenariosByStatuses.js.map +1 -1
- package/dist/src/filter/filterByStatus.d.ts +2 -1
- package/dist/src/filter/filterByStatus.d.ts.map +1 -1
- package/dist/src/filter/filterByStatus.js +9 -9
- package/dist/src/filter/filterByStatus.js.map +1 -1
- package/dist/src/hooks/index.d.ts +2 -2
- package/dist/src/hooks/index.d.ts.map +1 -1
- package/dist/src/hooks/index.js +2 -18
- package/dist/src/hooks/index.js.map +1 -1
- package/dist/src/hooks/useFilteredDocuments.d.ts +3 -0
- package/dist/src/hooks/useFilteredDocuments.d.ts.map +1 -0
- package/dist/src/hooks/useFilteredDocuments.js +27 -0
- package/dist/src/hooks/useFilteredDocuments.js.map +1 -0
- package/dist/src/hooks/useQueries.d.ts +1 -1
- package/dist/src/hooks/useQueries.d.ts.map +1 -1
- package/dist/src/hooks/useQueries.js +8 -15
- package/dist/src/hooks/useQueries.js.map +1 -1
- package/dist/src/hooks/useResultStatistics.d.ts +6 -0
- package/dist/src/hooks/useResultStatistics.d.ts.map +1 -0
- package/dist/src/hooks/useResultStatistics.js +7 -0
- package/dist/src/hooks/useResultStatistics.js.map +1 -0
- 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 +4 -11
- package/dist/src/hooks/useSearch.js.map +1 -1
- package/dist/src/index.d.ts +7 -7
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +8 -43
- package/dist/src/index.js.map +1 -1
- package/dist/src/isTagExpression.js +1 -4
- package/dist/src/isTagExpression.js.map +1 -1
- package/dist/src/search/FeatureSearch.d.ts +3 -7
- package/dist/src/search/FeatureSearch.d.ts.map +1 -1
- package/dist/src/search/FeatureSearch.js +31 -31
- package/dist/src/search/FeatureSearch.js.map +1 -1
- package/dist/src/search/ScenarioLikeSearch.d.ts +25 -0
- package/dist/src/search/ScenarioLikeSearch.d.ts.map +1 -0
- package/dist/src/search/ScenarioLikeSearch.js +41 -0
- package/dist/src/search/ScenarioLikeSearch.js.map +1 -0
- package/dist/src/search/Search.d.ts +9 -9
- package/dist/src/search/Search.d.ts.map +1 -1
- package/dist/src/search/Search.js +34 -20
- package/dist/src/search/Search.js.map +1 -1
- package/dist/src/search/StepSearch.d.ts +16 -8
- package/dist/src/search/StepSearch.d.ts.map +1 -1
- package/dist/src/search/StepSearch.js +33 -44
- package/dist/src/search/StepSearch.js.map +1 -1
- package/dist/src/search/TagSearch.d.ts +2 -10
- package/dist/src/search/TagSearch.d.ts.map +1 -1
- package/dist/src/search/TagSearch.js +17 -18
- package/dist/src/search/TagSearch.js.map +1 -1
- package/dist/src/search/TextSearch.d.ts +2 -11
- package/dist/src/search/TextSearch.d.ts.map +1 -1
- package/dist/src/search/TextSearch.js +47 -36
- package/dist/src/search/TextSearch.js.map +1 -1
- package/dist/src/search/index.d.ts +3 -0
- package/dist/src/search/index.d.ts.map +1 -0
- package/dist/src/search/index.js +3 -0
- package/dist/src/search/index.js.map +1 -0
- package/dist/src/search/types.d.ts +14 -0
- package/dist/src/search/types.d.ts.map +1 -0
- package/dist/src/search/types.js +2 -0
- package/dist/src/search/types.js.map +1 -0
- package/dist/src/toRepositoryId.js +1 -4
- package/dist/src/toRepositoryId.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +35 -27
- package/dist/src/search/RuleSearch.d.ts +0 -9
- package/dist/src/search/RuleSearch.d.ts.map +0 -1
- package/dist/src/search/RuleSearch.js +0 -42
- package/dist/src/search/RuleSearch.js.map +0 -1
- package/dist/src/search/ScenarioSearch.d.ts +0 -9
- package/dist/src/search/ScenarioSearch.d.ts.map +0 -1
- package/dist/src/search/ScenarioSearch.js +0 -42
- package/dist/src/search/ScenarioSearch.js.map +0 -1
|
@@ -1,43 +1,36 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
const Children_1 = require("./Children");
|
|
12
|
-
const Description_1 = require("./Description");
|
|
13
|
-
const Keyword_1 = require("./Keyword");
|
|
14
|
-
const Scenario_1 = require("./Scenario");
|
|
15
|
-
const Tags_1 = require("./Tags");
|
|
16
|
-
const Title_1 = require("./Title");
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { HighLight } from '../app/HighLight.js';
|
|
3
|
+
import { useCustomRendering } from '../customise/index.js';
|
|
4
|
+
import { Background } from './Background.js';
|
|
5
|
+
import { Children } from './Children.js';
|
|
6
|
+
import { Description } from './Description.js';
|
|
7
|
+
import { Keyword } from './Keyword.js';
|
|
8
|
+
import { Scenario } from './Scenario.js';
|
|
9
|
+
import { Tags } from './Tags.js';
|
|
10
|
+
import { Title } from './Title.js';
|
|
17
11
|
const DefaultRenderer = ({ rule }) => {
|
|
18
|
-
return (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
12
|
+
return (React.createElement("section", null,
|
|
13
|
+
React.createElement(Tags, { tags: rule.tags }),
|
|
14
|
+
React.createElement(Title, { header: "h2", id: rule.id },
|
|
15
|
+
React.createElement(Keyword, null,
|
|
22
16
|
rule.keyword,
|
|
23
17
|
":"),
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
18
|
+
React.createElement(HighLight, { text: rule.name })),
|
|
19
|
+
React.createElement(Description, { description: rule.description }),
|
|
20
|
+
React.createElement(Children, null, (rule.children || []).map((child, index) => {
|
|
27
21
|
if (child.background) {
|
|
28
|
-
return
|
|
22
|
+
return React.createElement(Background, { key: index, background: child.background });
|
|
29
23
|
}
|
|
30
24
|
else if (child.scenario) {
|
|
31
|
-
return
|
|
25
|
+
return React.createElement(Scenario, { key: index, scenario: child.scenario });
|
|
32
26
|
}
|
|
33
27
|
else {
|
|
34
28
|
throw new Error('Expected background or scenario');
|
|
35
29
|
}
|
|
36
30
|
}))));
|
|
37
31
|
};
|
|
38
|
-
const Rule = (props) => {
|
|
39
|
-
const ResolvedRenderer =
|
|
40
|
-
return
|
|
32
|
+
export const Rule = (props) => {
|
|
33
|
+
const ResolvedRenderer = useCustomRendering('Rule', {}, DefaultRenderer);
|
|
34
|
+
return React.createElement(ResolvedRenderer, { ...props });
|
|
41
35
|
};
|
|
42
|
-
exports.Rule = Rule;
|
|
43
36
|
//# sourceMappingURL=Rule.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Rule.js","sourceRoot":"","sources":["../../../../src/components/gherkin/Rule.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Rule.js","sourceRoot":"","sources":["../../../../src/components/gherkin/Rule.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAC/C,OAAO,EAA+B,kBAAkB,EAAE,MAAM,uBAAuB,CAAA;AACvF,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AAElC,MAAM,eAAe,GAAgC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE;IAChE,OAAO,CACL;QACE,oBAAC,IAAI,IAAC,IAAI,EAAE,IAAI,CAAC,IAAI,GAAI;QACzB,oBAAC,KAAK,IAAC,MAAM,EAAC,IAAI,EAAC,EAAE,EAAE,IAAI,CAAC,EAAE;YAC5B,oBAAC,OAAO;gBAAE,IAAI,CAAC,OAAO;oBAAY;YAClC,oBAAC,SAAS,IAAC,IAAI,EAAE,IAAI,CAAC,IAAI,GAAI,CACxB;QACR,oBAAC,WAAW,IAAC,WAAW,EAAE,IAAI,CAAC,WAAW,GAAI;QAC9C,oBAAC,QAAQ,QACN,CAAC,IAAI,CAAC,QAAQ,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE;YAC1C,IAAI,KAAK,CAAC,UAAU,EAAE;gBACpB,OAAO,oBAAC,UAAU,IAAC,GAAG,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,CAAC,UAAU,GAAI,CAAA;aAChE;iBAAM,IAAI,KAAK,CAAC,QAAQ,EAAE;gBACzB,OAAO,oBAAC,QAAQ,IAAC,GAAG,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,CAAC,QAAQ,GAAI,CAAA;aAC1D;iBAAM;gBACL,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAA;aACnD;QACH,CAAC,CAAC,CACO,CACH,CACX,CAAA;AACH,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,IAAI,GAAuC,CAAC,KAAK,EAAE,EAAE;IAChE,MAAM,gBAAgB,GAAG,kBAAkB,CAAY,MAAM,EAAE,EAAE,EAAE,eAAe,CAAC,CAAA;IACnF,OAAO,oBAAC,gBAAgB,OAAK,KAAK,GAAI,CAAA;AACxC,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Scenario.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/Scenario.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAA;AAMvC,OAAO,EAAoB,aAAa,EAAsB,MAAM,
|
|
1
|
+
{"version":3,"file":"Scenario.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/Scenario.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAA;AAMvC,OAAO,EAAoB,aAAa,EAAsB,MAAM,uBAAuB,CAAA;AAwD3F,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,iBAAiB,CAAC,aAAa,CAG3D,CAAA"}
|
|
@@ -1,78 +1,48 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.Scenario = void 0;
|
|
30
|
-
const react_1 = __importStar(require("react"));
|
|
31
|
-
const CucumberQueryContext_1 = __importDefault(require("../../CucumberQueryContext"));
|
|
32
|
-
const GherkinQueryContext_1 = __importDefault(require("../../GherkinQueryContext"));
|
|
33
|
-
const UriContext_1 = __importDefault(require("../../UriContext"));
|
|
34
|
-
const HighLight_1 = require("../app/HighLight");
|
|
35
|
-
const customise_1 = require("../customise");
|
|
36
|
-
const Description_1 = require("./Description");
|
|
37
|
-
const ExampleDetail_1 = require("./ExampleDetail");
|
|
38
|
-
const Examples_1 = require("./Examples");
|
|
39
|
-
const ExamplesContext_1 = require("./ExamplesContext");
|
|
40
|
-
const GherkinSteps_1 = require("./GherkinSteps");
|
|
41
|
-
const HookSteps_1 = require("./HookSteps");
|
|
42
|
-
const Keyword_1 = require("./Keyword");
|
|
43
|
-
const StepsList_1 = require("./StepsList");
|
|
44
|
-
const Tags_1 = require("./Tags");
|
|
45
|
-
const Title_1 = require("./Title");
|
|
1
|
+
import React, { useState } from 'react';
|
|
2
|
+
import CucumberQueryContext from '../../CucumberQueryContext.js';
|
|
3
|
+
import GherkinQueryContext from '../../GherkinQueryContext.js';
|
|
4
|
+
import UriContext from '../../UriContext.js';
|
|
5
|
+
import { HighLight } from '../app/HighLight.js';
|
|
6
|
+
import { useCustomRendering } from '../customise/index.js';
|
|
7
|
+
import { Description } from './Description.js';
|
|
8
|
+
import { ExampleDetail } from './ExampleDetail.js';
|
|
9
|
+
import { Examples } from './Examples.js';
|
|
10
|
+
import { ExamplesContext } from './ExamplesContext.js';
|
|
11
|
+
import { GherkinSteps } from './GherkinSteps.js';
|
|
12
|
+
import { HookSteps } from './HookSteps.js';
|
|
13
|
+
import { Keyword } from './Keyword.js';
|
|
14
|
+
import { StepsList } from './StepsList.js';
|
|
15
|
+
import { Tags } from './Tags.js';
|
|
16
|
+
import { Title } from './Title.js';
|
|
46
17
|
const DefaultRenderer = ({ scenario }) => {
|
|
47
18
|
const examplesList = scenario.examples || [];
|
|
48
19
|
const hasExamples = examplesList.length > 0;
|
|
49
|
-
const cucumberQuery =
|
|
50
|
-
const gherkinQuery =
|
|
51
|
-
const uri =
|
|
52
|
-
const [selectedExample, setSelectedExample] =
|
|
20
|
+
const cucumberQuery = React.useContext(CucumberQueryContext);
|
|
21
|
+
const gherkinQuery = React.useContext(GherkinQueryContext);
|
|
22
|
+
const uri = React.useContext(UriContext);
|
|
23
|
+
const [selectedExample, setSelectedExample] = useState();
|
|
53
24
|
const pickleIds = uri ? gherkinQuery.getPickleIds(uri, scenario.id) : [];
|
|
54
25
|
const beforeHooks = cucumberQuery.getBeforeHookSteps(pickleIds[0]);
|
|
55
26
|
const afterHooks = cucumberQuery.getAfterHookSteps(pickleIds[0]);
|
|
56
27
|
if (selectedExample) {
|
|
57
|
-
return (
|
|
28
|
+
return (React.createElement(ExampleDetail, { scenario: scenario, pickleId: selectedExample, onBack: () => setSelectedExample(undefined) }));
|
|
58
29
|
}
|
|
59
|
-
return (
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
30
|
+
return (React.createElement("section", null,
|
|
31
|
+
React.createElement(Tags, { tags: scenario.tags }),
|
|
32
|
+
React.createElement(Title, { header: "h2", id: scenario.id },
|
|
33
|
+
React.createElement(Keyword, null,
|
|
63
34
|
scenario.keyword,
|
|
64
35
|
":"),
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
hasExamples && (
|
|
36
|
+
React.createElement(HighLight, { text: scenario.name })),
|
|
37
|
+
React.createElement(Description, { description: scenario.description }),
|
|
38
|
+
React.createElement(StepsList, null,
|
|
39
|
+
React.createElement(HookSteps, { hookSteps: beforeHooks }),
|
|
40
|
+
React.createElement(GherkinSteps, { steps: scenario.steps || [], hasExamples: hasExamples }),
|
|
41
|
+
React.createElement(HookSteps, { hookSteps: afterHooks })),
|
|
42
|
+
hasExamples && (React.createElement(ExamplesContext.Provider, { value: { setSelectedExample } }, examplesList.map((examples, index) => (React.createElement(Examples, { key: index, examples: examples })))))));
|
|
72
43
|
};
|
|
73
|
-
const Scenario = (props) => {
|
|
74
|
-
const ResolvedRenderer =
|
|
75
|
-
return
|
|
44
|
+
export const Scenario = (props) => {
|
|
45
|
+
const ResolvedRenderer = useCustomRendering('Scenario', {}, DefaultRenderer);
|
|
46
|
+
return React.createElement(ResolvedRenderer, { ...props });
|
|
76
47
|
};
|
|
77
|
-
exports.Scenario = Scenario;
|
|
78
48
|
//# sourceMappingURL=Scenario.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Scenario.js","sourceRoot":"","sources":["../../../../src/components/gherkin/Scenario.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Scenario.js","sourceRoot":"","sources":["../../../../src/components/gherkin/Scenario.tsx"],"names":[],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StatusIcon.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/StatusIcon.tsx"],"names":[],"mappings":"AAWA,OAAc,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAEhD,OAAO,EAGL,eAAe,EAEhB,MAAM,
|
|
1
|
+
{"version":3,"file":"StatusIcon.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/StatusIcon.tsx"],"names":[],"mappings":"AAWA,OAAc,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAEhD,OAAO,EAGL,eAAe,EAEhB,MAAM,uBAAuB,CAAA;AAiB9B,eAAO,MAAM,UAAU,EAAE,iBAAiB,CAAC,eAAe,CAOzD,CAAA"}
|
|
@@ -1,31 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
5
|
-
|
|
6
|
-
exports.StatusIcon = void 0;
|
|
7
|
-
const free_solid_svg_icons_1 = require("@fortawesome/free-solid-svg-icons");
|
|
8
|
-
const react_fontawesome_1 = require("@fortawesome/react-fontawesome");
|
|
9
|
-
const react_1 = __importDefault(require("react"));
|
|
10
|
-
const customise_1 = require("../customise");
|
|
11
|
-
const StatusIcon_module_scss_1 = __importDefault(require("./StatusIcon.module.scss"));
|
|
1
|
+
import { faCheckCircle, faInfoCircle, faPauseCircle, faQuestionCircle, faStopCircle, faTimesCircle, } from '@fortawesome/free-solid-svg-icons';
|
|
2
|
+
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { useCustomRendering, } from '../customise/index.js';
|
|
5
|
+
import defaultStyles from './StatusIcon.module.scss';
|
|
12
6
|
const DefaultRenderer = ({ status, styles, }) => {
|
|
13
|
-
return (
|
|
7
|
+
return (React.createElement(FontAwesomeIcon, { icon: statusIcon(status), size: "1x", className: styles.icon, "data-status": status }));
|
|
14
8
|
};
|
|
15
|
-
const StatusIcon = (props) => {
|
|
16
|
-
const Customised =
|
|
17
|
-
return
|
|
9
|
+
export const StatusIcon = (props) => {
|
|
10
|
+
const Customised = useCustomRendering('StatusIcon', defaultStyles, DefaultRenderer);
|
|
11
|
+
return React.createElement(Customised, { ...props });
|
|
18
12
|
};
|
|
19
|
-
exports.StatusIcon = StatusIcon;
|
|
20
13
|
const statusIcon = (status) => {
|
|
21
14
|
return {
|
|
22
|
-
['PASSED']:
|
|
23
|
-
['SKIPPED']:
|
|
24
|
-
['PENDING']:
|
|
25
|
-
['UNDEFINED']:
|
|
26
|
-
['AMBIGUOUS']:
|
|
27
|
-
['FAILED']:
|
|
28
|
-
['UNKNOWN']:
|
|
15
|
+
['PASSED']: faCheckCircle,
|
|
16
|
+
['SKIPPED']: faStopCircle,
|
|
17
|
+
['PENDING']: faPauseCircle,
|
|
18
|
+
['UNDEFINED']: faQuestionCircle,
|
|
19
|
+
['AMBIGUOUS']: faInfoCircle,
|
|
20
|
+
['FAILED']: faTimesCircle,
|
|
21
|
+
['UNKNOWN']: faQuestionCircle,
|
|
29
22
|
}[status];
|
|
30
23
|
};
|
|
31
24
|
//# sourceMappingURL=StatusIcon.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StatusIcon.js","sourceRoot":"","sources":["../../../../src/components/gherkin/StatusIcon.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"StatusIcon.js","sourceRoot":"","sources":["../../../../src/components/gherkin/StatusIcon.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,aAAa,EACb,YAAY,EACZ,aAAa,EACb,gBAAgB,EAChB,YAAY,EACZ,aAAa,GAEd,MAAM,mCAAmC,CAAA;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAA;AAChE,OAAO,KAA4B,MAAM,OAAO,CAAA;AAEhD,OAAO,EAIL,kBAAkB,GACnB,MAAM,uBAAuB,CAAA;AAC9B,OAAO,aAAa,MAAM,0BAA0B,CAAA;AAEpD,MAAM,eAAe,GAAyD,CAAC,EAC7E,MAAM,EACN,MAAM,GACP,EAAE,EAAE;IACH,OAAO,CACL,oBAAC,eAAe,IACd,IAAI,EAAE,UAAU,CAAC,MAAM,CAAC,EACxB,IAAI,EAAC,IAAI,EACT,SAAS,EAAE,MAAM,CAAC,IAAI,iBACT,MAAM,GACnB,CACH,CAAA;AACH,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,UAAU,GAAuC,CAAC,KAAK,EAAE,EAAE;IACtE,MAAM,UAAU,GAAG,kBAAkB,CACnC,YAAY,EACZ,aAAa,EACb,eAAe,CAChB,CAAA;IACD,OAAO,oBAAC,UAAU,OAAK,KAAK,GAAI,CAAA;AAClC,CAAC,CAAA;AAED,MAAM,UAAU,GAAG,CAAC,MAAqC,EAAkB,EAAE;IAC3E,OAAO;QACL,CAAC,QAAQ,CAAC,EAAE,aAAa;QACzB,CAAC,SAAS,CAAC,EAAE,YAAY;QACzB,CAAC,SAAS,CAAC,EAAE,aAAa;QAC1B,CAAC,WAAW,CAAC,EAAE,gBAAgB;QAC/B,CAAC,WAAW,CAAC,EAAE,YAAY;QAC3B,CAAC,QAAQ,CAAC,EAAE,aAAa;QACzB,CAAC,SAAS,CAAC,EAAE,gBAAgB;KAC9B,CAAC,MAAM,CAAC,CAAA;AACX,CAAC,CAAA"}
|
|
@@ -1,16 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { StatusIcon } from './StatusIcon.js';
|
|
3
|
+
import styles from './StepItem.module.scss';
|
|
4
|
+
export const StepItem = ({ status, children }) => {
|
|
5
|
+
return (React.createElement("div", { className: styles.container },
|
|
6
|
+
React.createElement("span", { className: styles.status }, status && React.createElement(StatusIcon, { status: status })),
|
|
7
|
+
React.createElement("div", { className: styles.content }, children)));
|
|
4
8
|
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.StepItem = void 0;
|
|
7
|
-
const react_1 = __importDefault(require("react"));
|
|
8
|
-
const StatusIcon_1 = require("./StatusIcon");
|
|
9
|
-
const StepItem_module_scss_1 = __importDefault(require("./StepItem.module.scss"));
|
|
10
|
-
const StepItem = ({ status, children }) => {
|
|
11
|
-
return (react_1.default.createElement("div", { className: StepItem_module_scss_1.default.container },
|
|
12
|
-
react_1.default.createElement("span", { className: StepItem_module_scss_1.default.status }, status && react_1.default.createElement(StatusIcon_1.StatusIcon, { status: status })),
|
|
13
|
-
react_1.default.createElement("div", { className: StepItem_module_scss_1.default.content }, children)));
|
|
14
|
-
};
|
|
15
|
-
exports.StepItem = StepItem;
|
|
16
9
|
//# sourceMappingURL=StepItem.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepItem.js","sourceRoot":"","sources":["../../../../src/components/gherkin/StepItem.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"StepItem.js","sourceRoot":"","sources":["../../../../src/components/gherkin/StepItem.tsx"],"names":[],"mappings":"AACA,OAAO,KAA+C,MAAM,OAAO,CAAA;AAEnE,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,MAAM,MAAM,wBAAwB,CAAA;AAE3C,MAAM,CAAC,MAAM,QAAQ,GAIjB,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC3B,OAAO,CACL,6BAAK,SAAS,EAAE,MAAM,CAAC,SAAS;QAC9B,8BAAM,SAAS,EAAE,MAAM,CAAC,MAAM,IAAG,MAAM,IAAI,oBAAC,UAAU,IAAC,MAAM,EAAE,MAAM,GAAI,CAAQ;QACjF,6BAAK,SAAS,EAAE,MAAM,CAAC,OAAO,IAAG,QAAQ,CAAO,CAC5C,CACP,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -1,13 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import styles from './StepsList.module.scss';
|
|
3
|
+
export const StepsList = ({ children }) => {
|
|
4
|
+
return (React.createElement("ol", { "aria-label": "Steps", className: styles.steps }, children));
|
|
4
5
|
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.StepsList = void 0;
|
|
7
|
-
const react_1 = __importDefault(require("react"));
|
|
8
|
-
const StepsList_module_scss_1 = __importDefault(require("./StepsList.module.scss"));
|
|
9
|
-
const StepsList = ({ children }) => {
|
|
10
|
-
return (react_1.default.createElement("ol", { "aria-label": "Steps", className: StepsList_module_scss_1.default.steps }, children));
|
|
11
|
-
};
|
|
12
|
-
exports.StepsList = StepsList;
|
|
13
6
|
//# sourceMappingURL=StepsList.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepsList.js","sourceRoot":"","sources":["../../../../src/components/gherkin/StepsList.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"StepsList.js","sourceRoot":"","sources":["../../../../src/components/gherkin/StepsList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAA;AAE3D,OAAO,MAAM,MAAM,yBAAyB,CAAA;AAE5C,MAAM,CAAC,MAAM,SAAS,GAA+C,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE;IACpF,OAAO,CACL,0CAAe,OAAO,EAAC,SAAS,EAAE,MAAM,CAAC,KAAK,IAC3C,QAAQ,CACN,CACN,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tags.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/Tags.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,EAAiC,SAAS,EAAsB,MAAM,
|
|
1
|
+
{"version":3,"file":"Tags.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/Tags.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,EAAiC,SAAS,EAAsB,MAAM,uBAAuB,CAAA;AAkBpG,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,iBAAiB,CAAC,SAAS,CAOnD,CAAA"}
|
|
@@ -1,23 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.Tags = void 0;
|
|
7
|
-
const react_1 = __importDefault(require("react"));
|
|
8
|
-
const HighLight_1 = require("../app/HighLight");
|
|
9
|
-
const customise_1 = require("../customise");
|
|
10
|
-
const Tags_module_scss_1 = __importDefault(require("./Tags.module.scss"));
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { HighLight } from '../app/HighLight.js';
|
|
3
|
+
import { useCustomRendering } from '../customise/index.js';
|
|
4
|
+
import defaultStyles from './Tags.module.scss';
|
|
11
5
|
const DefaultRenderer = ({ tags, styles }) => {
|
|
12
6
|
if (!tags.length) {
|
|
13
7
|
return null;
|
|
14
8
|
}
|
|
15
|
-
return (
|
|
16
|
-
|
|
9
|
+
return (React.createElement("ul", { "aria-label": "Tags", className: styles.tags }, tags.map((tag, index) => (React.createElement("li", { className: styles.tag, key: index },
|
|
10
|
+
React.createElement(HighLight, { text: tag.name }))))));
|
|
17
11
|
};
|
|
18
|
-
const Tags = (props) => {
|
|
19
|
-
const ResolvedRenderer =
|
|
20
|
-
return
|
|
12
|
+
export const Tags = (props) => {
|
|
13
|
+
const ResolvedRenderer = useCustomRendering('Tags', defaultStyles, DefaultRenderer);
|
|
14
|
+
return React.createElement(ResolvedRenderer, { ...props });
|
|
21
15
|
};
|
|
22
|
-
exports.Tags = Tags;
|
|
23
16
|
//# sourceMappingURL=Tags.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tags.js","sourceRoot":"","sources":["../../../../src/components/gherkin/Tags.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Tags.js","sourceRoot":"","sources":["../../../../src/components/gherkin/Tags.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAC/C,OAAO,EAA4C,kBAAkB,EAAE,MAAM,uBAAuB,CAAA;AACpG,OAAO,aAAa,MAAM,oBAAoB,CAAA;AAE9C,MAAM,eAAe,GAA6C,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE;IACrF,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE;QAChB,OAAO,IAAI,CAAA;KACZ;IACD,OAAO,CACL,0CAAe,MAAM,EAAC,SAAS,EAAE,MAAM,CAAC,IAAI,IACzC,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE,CAAC,CACxB,4BAAI,SAAS,EAAE,MAAM,CAAC,GAAG,EAAE,GAAG,EAAE,KAAK;QACnC,oBAAC,SAAS,IAAC,IAAI,EAAE,GAAG,CAAC,IAAI,GAAI,CAC1B,CACN,CAAC,CACC,CACN,CAAA;AACH,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,IAAI,GAAuC,CAAC,KAAK,EAAE,EAAE;IAChE,MAAM,gBAAgB,GAAG,kBAAkB,CACzC,MAAM,EACN,aAAa,EACb,eAAe,CAChB,CAAA;IACD,OAAO,oBAAC,gBAAgB,OAAK,KAAK,GAAI,CAAA;AACxC,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Title.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/Title.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,
|
|
1
|
+
{"version":3,"file":"Title.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/Title.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAGL,UAAU,EAEX,MAAM,uBAAuB,CAAA;AAmB9B,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,iBAAiB,CAAC,UAAU,CAOrD,CAAA"}
|
|
@@ -1,20 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.Title = void 0;
|
|
7
|
-
const react_1 = __importDefault(require("react"));
|
|
8
|
-
const customise_1 = require("../customise");
|
|
9
|
-
const Anchor_1 = require("./Anchor");
|
|
10
|
-
const Title_module_scss_1 = __importDefault(require("./Title.module.scss"));
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { useCustomRendering, } from '../customise/index.js';
|
|
3
|
+
import { Anchor } from './Anchor.js';
|
|
4
|
+
import defaultStyles from './Title.module.scss';
|
|
11
5
|
const DefaultRenderer = ({ header: Header, id, children, styles, }) => {
|
|
12
|
-
return (
|
|
13
|
-
|
|
6
|
+
return (React.createElement(Anchor, { id: id },
|
|
7
|
+
React.createElement(Header, { id: id, className: styles.title }, children)));
|
|
14
8
|
};
|
|
15
|
-
const Title = (props) => {
|
|
16
|
-
const ResolvedRenderer =
|
|
17
|
-
return
|
|
9
|
+
export const Title = (props) => {
|
|
10
|
+
const ResolvedRenderer = useCustomRendering('Title', defaultStyles, DefaultRenderer);
|
|
11
|
+
return React.createElement(ResolvedRenderer, { ...props });
|
|
18
12
|
};
|
|
19
|
-
exports.Title = Title;
|
|
20
13
|
//# sourceMappingURL=Title.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Title.js","sourceRoot":"","sources":["../../../../src/components/gherkin/Title.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Title.js","sourceRoot":"","sources":["../../../../src/components/gherkin/Title.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAIL,kBAAkB,GACnB,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AACpC,OAAO,aAAa,MAAM,qBAAqB,CAAA;AAE/C,MAAM,eAAe,GAA+C,CAAC,EACnE,MAAM,EAAE,MAAM,EACd,EAAE,EACF,QAAQ,EACR,MAAM,GACP,EAAE,EAAE;IACH,OAAO,CACL,oBAAC,MAAM,IAAC,EAAE,EAAE,EAAE;QACZ,oBAAC,MAAM,IAAC,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,CAAC,KAAK,IACpC,QAAQ,CACF,CACF,CACV,CAAA;AACH,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,KAAK,GAAwC,CAAC,KAAK,EAAE,EAAE;IAClE,MAAM,gBAAgB,GAAG,kBAAkB,CACzC,OAAO,EACP,aAAa,EACb,eAAe,CAChB,CAAA;IACD,OAAO,oBAAC,gBAAgB,OAAK,KAAK,GAAI,CAAA;AACxC,CAAC,CAAA"}
|
|
@@ -1,19 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.attachmentFilename = void 0;
|
|
7
|
-
const mime_1 = __importDefault(require("mime"));
|
|
8
|
-
function attachmentFilename(attachment) {
|
|
1
|
+
import mimeTypes from 'mime';
|
|
2
|
+
export function attachmentFilename(attachment) {
|
|
9
3
|
if (attachment.fileName) {
|
|
10
4
|
return attachment.fileName;
|
|
11
5
|
}
|
|
12
|
-
const extension =
|
|
6
|
+
const extension = mimeTypes.getExtension(attachment.mediaType);
|
|
13
7
|
if (extension) {
|
|
14
8
|
return `attachment.${extension}`;
|
|
15
9
|
}
|
|
16
10
|
return 'attachment';
|
|
17
11
|
}
|
|
18
|
-
exports.attachmentFilename = attachmentFilename;
|
|
19
12
|
//# sourceMappingURL=attachmentFilename.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attachmentFilename.js","sourceRoot":"","sources":["../../../../src/components/gherkin/attachmentFilename.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"attachmentFilename.js","sourceRoot":"","sources":["../../../../src/components/gherkin/attachmentFilename.ts"],"names":[],"mappings":"AACA,OAAO,SAAS,MAAM,MAAM,CAAA;AAE5B,MAAM,UAAU,kBAAkB,CAAC,UAAsB;IACvD,IAAI,UAAU,CAAC,QAAQ,EAAE;QACvB,OAAO,UAAU,CAAC,QAAQ,CAAA;KAC3B;IACD,MAAM,SAAS,GAAG,SAAS,CAAC,YAAY,CAAC,UAAU,CAAC,SAAS,CAAC,CAAA;IAC9D,IAAI,SAAS,EAAE;QACb,OAAO,cAAc,SAAS,EAAE,CAAA;KACjC;IACD,OAAO,YAAY,CAAA;AACrB,CAAC"}
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
export * from './Anchor';
|
|
2
|
-
export * from './Attachment';
|
|
3
|
-
export * from './Background';
|
|
4
|
-
export * from './Children';
|
|
5
|
-
export * from './DataTable';
|
|
6
|
-
export * from './Description';
|
|
7
|
-
export * from './DocString';
|
|
8
|
-
export * from './ErrorMessage';
|
|
9
|
-
export * from './Examples';
|
|
10
|
-
export * from './ExamplesTable';
|
|
11
|
-
export * from './Feature';
|
|
12
|
-
export * from './GherkinDocument';
|
|
13
|
-
export * from './GherkinStep';
|
|
14
|
-
export * from './GherkinSteps';
|
|
15
|
-
export * from './HookStep';
|
|
16
|
-
export * from './HookSteps';
|
|
17
|
-
export * from './Keyword';
|
|
18
|
-
export * from './MDG';
|
|
19
|
-
export * from './Parameter';
|
|
20
|
-
export * from './Rule';
|
|
21
|
-
export * from './Scenario';
|
|
22
|
-
export * from './StatusIcon';
|
|
23
|
-
export * from './StepItem';
|
|
24
|
-
export * from './Tags';
|
|
25
|
-
export * from './Title';
|
|
1
|
+
export * from './Anchor.js';
|
|
2
|
+
export * from './Attachment.js';
|
|
3
|
+
export * from './Background.js';
|
|
4
|
+
export * from './Children.js';
|
|
5
|
+
export * from './DataTable.js';
|
|
6
|
+
export * from './Description.js';
|
|
7
|
+
export * from './DocString.js';
|
|
8
|
+
export * from './ErrorMessage.js';
|
|
9
|
+
export * from './Examples.js';
|
|
10
|
+
export * from './ExamplesTable.js';
|
|
11
|
+
export * from './Feature.js';
|
|
12
|
+
export * from './GherkinDocument.js';
|
|
13
|
+
export * from './GherkinStep.js';
|
|
14
|
+
export * from './GherkinSteps.js';
|
|
15
|
+
export * from './HookStep.js';
|
|
16
|
+
export * from './HookSteps.js';
|
|
17
|
+
export * from './Keyword.js';
|
|
18
|
+
export * from './MDG.js';
|
|
19
|
+
export * from './Parameter.js';
|
|
20
|
+
export * from './Rule.js';
|
|
21
|
+
export * from './Scenario.js';
|
|
22
|
+
export * from './StatusIcon.js';
|
|
23
|
+
export * from './StepItem.js';
|
|
24
|
+
export * from './Tags.js';
|
|
25
|
+
export * from './Title.js';
|
|
26
26
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA;AAC7B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,kBAAkB,CAAA;AAChC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,mBAAmB,CAAA;AACjC,cAAc,eAAe,CAAA;AAC7B,cAAc,oBAAoB,CAAA;AAClC,cAAc,cAAc,CAAA;AAC5B,cAAc,sBAAsB,CAAA;AACpC,cAAc,kBAAkB,CAAA;AAChC,cAAc,mBAAmB,CAAA;AACjC,cAAc,eAAe,CAAA;AAC7B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,cAAc,CAAA;AAC5B,cAAc,UAAU,CAAA;AACxB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,WAAW,CAAA;AACzB,cAAc,eAAe,CAAA;AAC7B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA;AAC7B,cAAc,WAAW,CAAA;AACzB,cAAc,YAAY,CAAA"}
|