@cucumber/react-components 23.2.0 → 24.0.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.
Files changed (183) hide show
  1. package/dist/src/SearchContext.d.ts +1 -0
  2. package/dist/src/SearchContext.d.ts.map +1 -1
  3. package/dist/src/SearchContext.js +1 -0
  4. package/dist/src/SearchContext.js.map +1 -1
  5. package/dist/src/components/app/ControlledSearchProvider.d.ts.map +1 -1
  6. package/dist/src/components/app/ControlledSearchProvider.js +2 -0
  7. package/dist/src/components/app/ControlledSearchProvider.js.map +1 -1
  8. package/dist/src/components/app/DocumentAccordion.d.ts +15 -0
  9. package/dist/src/components/app/DocumentAccordion.d.ts.map +1 -0
  10. package/dist/src/components/app/DocumentAccordion.js +30 -0
  11. package/dist/src/components/app/DocumentAccordion.js.map +1 -0
  12. package/dist/src/components/app/ExecutionSummary.d.ts.map +1 -1
  13. package/dist/src/components/app/ExecutionSummary.js +3 -0
  14. package/dist/src/components/app/ExecutionSummary.js.map +1 -1
  15. package/dist/src/components/app/FilteredDocuments.d.ts.map +1 -1
  16. package/dist/src/components/app/FilteredDocuments.js +6 -6
  17. package/dist/src/components/app/FilteredDocuments.js.map +1 -1
  18. package/dist/src/components/app/FilteredDocuments.module.scss +3 -0
  19. package/dist/src/components/app/GherkinDocumentList.d.ts.map +1 -1
  20. package/dist/src/components/app/GherkinDocumentList.js +15 -48
  21. package/dist/src/components/app/GherkinDocumentList.js.map +1 -1
  22. package/dist/src/components/app/Report.d.ts +3 -0
  23. package/dist/src/components/app/Report.d.ts.map +1 -0
  24. package/dist/src/components/app/Report.js +19 -0
  25. package/dist/src/components/app/Report.js.map +1 -0
  26. package/dist/src/components/app/Report.module.scss +10 -0
  27. package/dist/src/components/app/TestRunHooks.d.ts +3 -0
  28. package/dist/src/components/app/TestRunHooks.d.ts.map +1 -0
  29. package/dist/src/components/app/TestRunHooks.js +14 -0
  30. package/dist/src/components/app/TestRunHooks.js.map +1 -0
  31. package/dist/src/components/app/TestRunHooks.module.scss +16 -0
  32. package/dist/src/components/app/findMostSevereTestStepResultStatus.d.ts +3 -0
  33. package/dist/src/components/app/findMostSevereTestStepResultStatus.d.ts.map +1 -0
  34. package/dist/src/components/app/findMostSevereTestStepResultStatus.js +17 -0
  35. package/dist/src/components/app/findMostSevereTestStepResultStatus.js.map +1 -0
  36. package/dist/src/components/app/index.d.ts +2 -2
  37. package/dist/src/components/app/index.d.ts.map +1 -1
  38. package/dist/src/components/app/index.js +2 -2
  39. package/dist/src/components/app/index.js.map +1 -1
  40. package/dist/src/components/customise/CustomRendering.d.ts +1 -25
  41. package/dist/src/components/customise/CustomRendering.d.ts.map +1 -1
  42. package/dist/src/components/customise/CustomRendering.js.map +1 -1
  43. package/dist/src/components/gherkin/Anchor.module.scss +1 -1
  44. package/dist/src/components/gherkin/Background.d.ts.map +1 -1
  45. package/dist/src/components/gherkin/Background.js +6 -5
  46. package/dist/src/components/gherkin/Background.js.map +1 -1
  47. package/dist/src/components/gherkin/Children.module.scss +4 -0
  48. package/dist/src/components/gherkin/Examples.d.ts.map +1 -1
  49. package/dist/src/components/gherkin/Examples.js +22 -6
  50. package/dist/src/components/gherkin/Examples.js.map +1 -1
  51. package/dist/src/components/gherkin/Examples.module.scss +6 -0
  52. package/dist/src/components/gherkin/Scenario.d.ts.map +1 -1
  53. package/dist/src/components/gherkin/Scenario.js +8 -25
  54. package/dist/src/components/gherkin/Scenario.js.map +1 -1
  55. package/dist/src/components/gherkin/composeHookStepTitle.d.ts +3 -0
  56. package/dist/src/components/gherkin/composeHookStepTitle.d.ts.map +1 -0
  57. package/dist/src/components/gherkin/composeHookStepTitle.js +23 -0
  58. package/dist/src/components/gherkin/composeHookStepTitle.js.map +1 -0
  59. package/dist/src/components/gherkin/composePickleStepTitle.d.ts +8 -0
  60. package/dist/src/components/gherkin/composePickleStepTitle.d.ts.map +1 -0
  61. package/dist/src/components/gherkin/composePickleStepTitle.js +36 -0
  62. package/dist/src/components/gherkin/composePickleStepTitle.js.map +1 -0
  63. package/dist/src/components/gherkin/index.d.ts +0 -7
  64. package/dist/src/components/gherkin/index.d.ts.map +1 -1
  65. package/dist/src/components/gherkin/index.js +0 -7
  66. package/dist/src/components/gherkin/index.js.map +1 -1
  67. package/dist/src/components/gherkin/isNumber.d.ts.map +1 -1
  68. package/dist/src/components/gherkin/isNumber.js +2 -1
  69. package/dist/src/components/gherkin/isNumber.js.map +1 -1
  70. package/dist/src/components/results/TestCaseOutcome.d.ts +8 -0
  71. package/dist/src/components/results/TestCaseOutcome.d.ts.map +1 -0
  72. package/dist/src/components/results/TestCaseOutcome.js +13 -0
  73. package/dist/src/components/results/TestCaseOutcome.js.map +1 -0
  74. package/dist/src/components/results/TestCaseOutcome.module.scss +15 -0
  75. package/dist/src/components/results/TestRunHookOutcome.d.ts +9 -0
  76. package/dist/src/components/results/TestRunHookOutcome.d.ts.map +1 -0
  77. package/dist/src/components/results/TestRunHookOutcome.js +20 -0
  78. package/dist/src/components/results/TestRunHookOutcome.js.map +1 -0
  79. package/dist/src/components/results/TestRunHookOutcome.module.scss +36 -0
  80. package/dist/src/components/results/TestStepAttachments.d.ts +8 -0
  81. package/dist/src/components/results/TestStepAttachments.d.ts.map +1 -0
  82. package/dist/src/components/results/TestStepAttachments.js +13 -0
  83. package/dist/src/components/results/TestStepAttachments.js.map +1 -0
  84. package/dist/src/components/results/TestStepAttachments.module.scss +9 -0
  85. package/dist/src/components/results/TestStepDuration.d.ts +6 -0
  86. package/dist/src/components/results/TestStepDuration.d.ts.map +1 -0
  87. package/dist/src/components/results/TestStepDuration.js +17 -0
  88. package/dist/src/components/results/TestStepDuration.js.map +1 -0
  89. package/dist/src/components/results/TestStepDuration.module.scss +11 -0
  90. package/dist/src/components/results/TestStepOutcome.d.ts +9 -0
  91. package/dist/src/components/results/TestStepOutcome.d.ts.map +1 -0
  92. package/dist/src/components/results/TestStepOutcome.js +54 -0
  93. package/dist/src/components/results/TestStepOutcome.js.map +1 -0
  94. package/dist/src/components/results/TestStepOutcome.module.scss +36 -0
  95. package/dist/src/components/results/index.d.ts +1 -0
  96. package/dist/src/components/results/index.d.ts.map +1 -1
  97. package/dist/src/components/results/index.js +1 -0
  98. package/dist/src/components/results/index.js.map +1 -1
  99. package/dist/src/formatPassedQuantity.d.ts +2 -0
  100. package/dist/src/formatPassedQuantity.d.ts.map +1 -0
  101. package/dist/src/formatPassedQuantity.js +4 -0
  102. package/dist/src/formatPassedQuantity.js.map +1 -0
  103. package/dist/src/hooks/helpers.d.ts +2 -0
  104. package/dist/src/hooks/helpers.d.ts.map +1 -0
  105. package/dist/src/hooks/helpers.js +7 -0
  106. package/dist/src/hooks/helpers.js.map +1 -0
  107. package/dist/src/hooks/useFilteredDocuments.d.ts +4 -1
  108. package/dist/src/hooks/useFilteredDocuments.d.ts.map +1 -1
  109. package/dist/src/hooks/useFilteredDocuments.js +5 -2
  110. package/dist/src/hooks/useFilteredDocuments.js.map +1 -1
  111. package/dist/src/hooks/useMostSevereStatusByUri.d.ts +3 -0
  112. package/dist/src/hooks/useMostSevereStatusByUri.d.ts.map +1 -0
  113. package/dist/src/hooks/useMostSevereStatusByUri.js +25 -0
  114. package/dist/src/hooks/useMostSevereStatusByUri.js.map +1 -0
  115. package/dist/src/hooks/useTestCaseStarted.d.ts +3 -0
  116. package/dist/src/hooks/useTestCaseStarted.d.ts.map +1 -0
  117. package/dist/src/hooks/useTestCaseStarted.js +17 -0
  118. package/dist/src/hooks/useTestCaseStarted.js.map +1 -0
  119. package/dist/src/hooks/useTestRunHooks.d.ts +8 -0
  120. package/dist/src/hooks/useTestRunHooks.d.ts.map +1 -0
  121. package/dist/src/hooks/useTestRunHooks.js +14 -0
  122. package/dist/src/hooks/useTestRunHooks.js.map +1 -0
  123. package/dist/src/index.d.ts +0 -1
  124. package/dist/src/index.d.ts.map +1 -1
  125. package/dist/src/index.js +0 -1
  126. package/dist/src/index.js.map +1 -1
  127. package/dist/src/styles/theming.scss +1 -0
  128. package/dist/tsconfig.build.tsbuildinfo +1 -1
  129. package/package.json +16 -14
  130. package/dist/src/UriContext.d.ts +0 -4
  131. package/dist/src/UriContext.d.ts.map +0 -1
  132. package/dist/src/UriContext.js +0 -3
  133. package/dist/src/UriContext.js.map +0 -1
  134. package/dist/src/components/app/NoMatchResult.d.ts +0 -3
  135. package/dist/src/components/app/NoMatchResult.d.ts.map +0 -1
  136. package/dist/src/components/app/NoMatchResult.js +0 -10
  137. package/dist/src/components/app/NoMatchResult.js.map +0 -1
  138. package/dist/src/components/app/NoMatchResult.module.scss +0 -13
  139. package/dist/src/components/app/UriProvider.d.ts +0 -5
  140. package/dist/src/components/app/UriProvider.d.ts.map +0 -1
  141. package/dist/src/components/app/UriProvider.js +0 -6
  142. package/dist/src/components/app/UriProvider.js.map +0 -1
  143. package/dist/src/components/gherkin/ExampleDetail.d.ts +0 -8
  144. package/dist/src/components/gherkin/ExampleDetail.d.ts.map +0 -1
  145. package/dist/src/components/gherkin/ExampleDetail.js +0 -40
  146. package/dist/src/components/gherkin/ExampleDetail.js.map +0 -1
  147. package/dist/src/components/gherkin/ExampleDetail.module.scss +0 -5
  148. package/dist/src/components/gherkin/ExamplesContext.d.ts +0 -5
  149. package/dist/src/components/gherkin/ExamplesContext.d.ts.map +0 -1
  150. package/dist/src/components/gherkin/ExamplesContext.js +0 -5
  151. package/dist/src/components/gherkin/ExamplesContext.js.map +0 -1
  152. package/dist/src/components/gherkin/ExamplesTable.d.ts +0 -4
  153. package/dist/src/components/gherkin/ExamplesTable.d.ts.map +0 -1
  154. package/dist/src/components/gherkin/ExamplesTable.js +0 -36
  155. package/dist/src/components/gherkin/ExamplesTable.js.map +0 -1
  156. package/dist/src/components/gherkin/ExamplesTable.module.scss +0 -15
  157. package/dist/src/components/gherkin/GherkinStep.d.ts +0 -4
  158. package/dist/src/components/gherkin/GherkinStep.d.ts.map +0 -1
  159. package/dist/src/components/gherkin/GherkinStep.js +0 -92
  160. package/dist/src/components/gherkin/GherkinStep.js.map +0 -1
  161. package/dist/src/components/gherkin/GherkinSteps.d.ts +0 -4
  162. package/dist/src/components/gherkin/GherkinSteps.d.ts.map +0 -1
  163. package/dist/src/components/gherkin/GherkinSteps.js +0 -15
  164. package/dist/src/components/gherkin/GherkinSteps.js.map +0 -1
  165. package/dist/src/components/gherkin/HookStep.d.ts +0 -4
  166. package/dist/src/components/gherkin/HookStep.d.ts.map +0 -1
  167. package/dist/src/components/gherkin/HookStep.js +0 -42
  168. package/dist/src/components/gherkin/HookStep.js.map +0 -1
  169. package/dist/src/components/gherkin/HookSteps.d.ts +0 -8
  170. package/dist/src/components/gherkin/HookSteps.d.ts.map +0 -1
  171. package/dist/src/components/gherkin/HookSteps.js +0 -7
  172. package/dist/src/components/gherkin/HookSteps.js.map +0 -1
  173. package/dist/src/components/gherkin/MDG.d.ts +0 -8
  174. package/dist/src/components/gherkin/MDG.d.ts.map +0 -1
  175. package/dist/src/components/gherkin/MDG.js +0 -80
  176. package/dist/src/components/gherkin/MDG.js.map +0 -1
  177. package/dist/src/components/gherkin/MDG.module.scss +0 -12
  178. package/dist/src/components/gherkin/StepItem.d.ts +0 -6
  179. package/dist/src/components/gherkin/StepItem.d.ts.map +0 -1
  180. package/dist/src/components/gherkin/StepItem.js +0 -9
  181. package/dist/src/components/gherkin/StepItem.js.map +0 -1
  182. package/dist/src/components/gherkin/StepItem.module.scss +0 -21
  183. /package/dist/src/components/app/{GherkinDocumentList.module.scss → DocumentAccordion.module.scss} +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"file":"NoMatchResult.d.ts","sourceRoot":"","sources":["../../../../src/components/app/NoMatchResult.tsx"],"names":[],"mappings":"AAEA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAIjC,eAAO,MAAM,aAAa,EAAE,EAO3B,CAAA"}
@@ -1,10 +0,0 @@
1
- import { faGrimace } from '@fortawesome/free-solid-svg-icons';
2
- import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
3
- import React from 'react';
4
- import styles from './NoMatchResult.module.scss';
5
- export const NoMatchResult = () => {
6
- return (React.createElement("p", { className: styles.message },
7
- React.createElement(FontAwesomeIcon, { className: styles.icon, "aria-hidden": "true", icon: faGrimace }),
8
- React.createElement("span", null, "No matches found for your query and/or filters")));
9
- };
10
- //# sourceMappingURL=NoMatchResult.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"NoMatchResult.js","sourceRoot":"","sources":["../../../../src/components/app/NoMatchResult.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAA;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAA;AAChE,OAAO,KAAa,MAAM,OAAO,CAAA;AAEjC,OAAO,MAAM,MAAM,6BAA6B,CAAA;AAEhD,MAAM,CAAC,MAAM,aAAa,GAAO,GAAG,EAAE;IACpC,OAAO,CACL,2BAAG,SAAS,EAAE,MAAM,CAAC,OAAO;QAC1B,oBAAC,eAAe,IAAC,SAAS,EAAE,MAAM,CAAC,IAAI,iBAAc,MAAM,EAAC,IAAI,EAAE,SAAS,GAAI;QAC/E,mFAA2D,CACzD,CACL,CAAA;AACH,CAAC,CAAA"}
@@ -1,13 +0,0 @@
1
- .message {
2
- display: flex;
3
- flex-direction: column;
4
- align-items: center;
5
- gap: 0.5em;
6
- padding-bottom: 1.5em;
7
- text-align: center;
8
- }
9
-
10
- .icon {
11
- font-size: 3em;
12
- opacity: 0.125;
13
- }
@@ -1,5 +0,0 @@
1
- import { FC, PropsWithChildren } from 'react';
2
- export declare const UriProvider: FC<PropsWithChildren<{
3
- uri: string;
4
- }>>;
5
- //# sourceMappingURL=UriProvider.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"UriProvider.d.ts","sourceRoot":"","sources":["../../../../src/components/app/UriProvider.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAIpD,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,iBAAiB,CAAC;IAAE,GAAG,EAAE,MAAM,CAAA;CAAE,CAAC,CAE9D,CAAA"}
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- import UriContext from '../../UriContext.js';
3
- export const UriProvider = ({ uri, children }) => {
4
- return React.createElement(UriContext.Provider, { value: uri }, children);
5
- };
6
- //# sourceMappingURL=UriProvider.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"UriProvider.js","sourceRoot":"","sources":["../../../../src/components/app/UriProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgC,MAAM,OAAO,CAAA;AAEpD,OAAO,UAAU,MAAM,qBAAqB,CAAA;AAE5C,MAAM,CAAC,MAAM,WAAW,GAA2C,CAAC,EAAE,GAAG,EAAE,QAAQ,EAAE,EAAE,EAAE;IACvF,OAAO,oBAAC,UAAU,CAAC,QAAQ,IAAC,KAAK,EAAE,GAAG,IAAG,QAAQ,CAAuB,CAAA;AAC1E,CAAC,CAAA"}
@@ -1,8 +0,0 @@
1
- import { Scenario } from '@cucumber/messages';
2
- import { VoidFunctionComponent } from 'react';
3
- export declare const ExampleDetail: VoidFunctionComponent<{
4
- scenario: Scenario;
5
- pickleId: string;
6
- onBack: () => void;
7
- }>;
8
- //# sourceMappingURL=ExampleDetail.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ExampleDetail.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/ExampleDetail.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAU,QAAQ,EAAE,MAAM,oBAAoB,CAAA;AAGrD,OAAc,EAAc,qBAAqB,EAAE,MAAM,OAAO,CAAA;AAehE,eAAO,MAAM,aAAa,EAAE,qBAAqB,CAAC;IAChD,QAAQ,EAAE,QAAQ,CAAA;IAClB,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,EAAE,MAAM,IAAI,CAAA;CACnB,CA4BA,CAAA"}
@@ -1,40 +0,0 @@
1
- import { faArrowLeft } from '@fortawesome/free-solid-svg-icons';
2
- import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
3
- import React, { useContext } from 'react';
4
- import CucumberQueryContext from '../../CucumberQueryContext.js';
5
- import GherkinQueryContext from '../../GherkinQueryContext.js';
6
- import { HighLight } from '../app/HighLight.js';
7
- import { NavigationButton } from '../app/NavigationButton.js';
8
- import { Description } from './Description.js';
9
- import styles from './ExampleDetail.module.scss';
10
- import { GherkinSteps } from './GherkinSteps.js';
11
- import { HookSteps } from './HookSteps.js';
12
- import { Keyword } from './Keyword.js';
13
- import { StepsList } from './StepsList.js';
14
- import { Tags } from './Tags.js';
15
- import { Title } from './Title.js';
16
- export const ExampleDetail = ({ scenario, pickleId, onBack }) => {
17
- const gherkinQuery = useContext(GherkinQueryContext);
18
- const cucumberQuery = useContext(CucumberQueryContext);
19
- const pickle = gherkinQuery.getPickles().find((item) => item.id === pickleId);
20
- const beforeHooks = cucumberQuery.getBeforeHookSteps(pickleId);
21
- const afterHooks = cucumberQuery.getAfterHookSteps(pickleId);
22
- const examplesCount = scenario.examples.flatMap((examples) => examples.tableBody).length;
23
- return (React.createElement(React.Fragment, null,
24
- React.createElement(NavigationButton, { onClick: onBack },
25
- React.createElement(FontAwesomeIcon, { icon: faArrowLeft, className: styles.backIcon }),
26
- "Back to outline and all ",
27
- examplesCount,
28
- " examples"),
29
- React.createElement("section", null,
30
- React.createElement(Tags, { tags: pickle.tags }),
31
- React.createElement(Title, { header: "h2", id: scenario.id },
32
- React.createElement(Keyword, null, "Example:"),
33
- React.createElement(HighLight, { text: pickle.name })),
34
- React.createElement(Description, { description: scenario.description }),
35
- React.createElement(StepsList, null,
36
- React.createElement(HookSteps, { hookSteps: beforeHooks }),
37
- React.createElement(GherkinSteps, { steps: scenario.steps || [], pickle: pickle, hasExamples: false }),
38
- React.createElement(HookSteps, { hookSteps: afterHooks })))));
39
- };
40
- //# sourceMappingURL=ExampleDetail.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ExampleDetail.js","sourceRoot":"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U,GAAG,aAAa,CAAC,iBAAiB,CAAC,QAAQ,CAAC,CAAA;IAC5D,MAAM,aAAa,GAAG,QAAQ,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,MAAM,CAAA;IACxF,OAAO,CACL;QACE,oBAAC,gBAAgB,IAAC,OAAO,EAAE,MAAM;YAC/B,oBAAC,eAAe,IAAC,IAAI,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,CAAC,QAAQ,GAAI;;YACzC,aAAa;wBACrB;QACnB;YACE,oBAAC,IAAI,IAAC,IAAI,EAAE,MAAM,CAAC,IAAI,GAAI;YAC3B,oBAAC,KAAK,IAAC,MAAM,EAAC,IAAI,EAAC,EAAE,EAAE,QAAQ,CAAC,EAAE;gBAChC,oBAAC,OAAO,mBAAmB;gBAC3B,oBAAC,SAAS,IAAC,IAAI,EAAE,MAAM,CAAC,IAAI,GAAI,CAC1B;YACR,oBAAC,WAAW,IAAC,WAAW,EAAE,QAAQ,CAAC,WAAW,GAAI;YAClD,oBAAC,SAAS;gBACR,oBAAC,SAAS,IAAC,SAAS,EAAE,WAAW,GAAI;gBACrC,oBAAC,YAAY,IAAC,KAAK,EAAE,QAAQ,CAAC,KAAK,IAAI,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,KAAK,GAAI;gBACjF,oBAAC,SAAS,IAAC,SAAS,EAAE,UAAU,GAAI,CAC1B,CACJ,CACT,CACJ,CAAA;AACH,CAAC,CAAA"}
@@ -1,5 +0,0 @@
1
- @use '../../styles/theming';
2
-
3
- .backIcon {
4
- transform: rotate(45deg);
5
- }
@@ -1,5 +0,0 @@
1
- /// <reference types="react" resolution-mode="require"/>
2
- export declare const ExamplesContext: import("react").Context<{
3
- setSelectedExample: (pickleId?: string) => void;
4
- }>;
5
- //# sourceMappingURL=ExamplesContext.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ExamplesContext.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/ExamplesContext.ts"],"names":[],"mappings":";AAEA,eAAO,MAAM,eAAe;oCACM,MAAM,KAAK,IAAI;EAG/C,CAAA"}
@@ -1,5 +0,0 @@
1
- import { createContext } from 'react';
2
- export const ExamplesContext = createContext({
3
- setSelectedExample: () => undefined,
4
- });
5
- //# sourceMappingURL=ExamplesContext.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ExamplesContext.js","sourceRoot":"","sources":["../../../../src/components/gherkin/ExamplesContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAErC,MAAM,CAAC,MAAM,eAAe,GAAG,aAAa,CAEzC;IACD,kBAAkB,EAAE,GAAG,EAAE,CAAC,SAAS;CACpC,CAAC,CAAA"}
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import { ExamplesTableProps } from '../customise/index.js';
3
- export declare const ExamplesTable: React.FunctionComponent<ExamplesTableProps>;
4
- //# sourceMappingURL=ExamplesTable.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ExamplesTable.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/ExamplesTable.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAqB,MAAM,OAAO,CAAA;AAKzC,OAAO,EAGL,kBAAkB,EAEnB,MAAM,uBAAuB,CAAA;AA8B9B,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,iBAAiB,CAAC,kBAAkB,CAOrE,CAAA"}
@@ -1,36 +0,0 @@
1
- import { getWorstTestStepResult } from '@cucumber/messages';
2
- import React, { useContext } from 'react';
3
- import CucumberQueryContext from '../../CucumberQueryContext.js';
4
- import GherkinQueryContext from '../../GherkinQueryContext.js';
5
- import UriContext from '../../UriContext.js';
6
- import { useCustomRendering, } from '../customise/index.js';
7
- import { ExamplesContext } from './ExamplesContext.js';
8
- import defaultStyles from './ExamplesTable.module.scss';
9
- import isNumber from './isNumber.js';
10
- import { StatusIcon } from './StatusIcon.js';
11
- const DefaultRenderer = ({ tableHeader, tableBody, styles, }) => {
12
- return (React.createElement("table", { className: styles.examplesTable },
13
- React.createElement("thead", null,
14
- React.createElement("tr", null,
15
- React.createElement("th", null, "\u00A0"),
16
- tableHeader.cells.map((cell, j) => (React.createElement("th", { key: j }, cell.value))))),
17
- React.createElement("tbody", null, tableBody.map((row, i) => (React.createElement(ExampleRow, { row: row, key: i }))))));
18
- };
19
- export const ExamplesTable = (props) => {
20
- const ResolvedRenderer = useCustomRendering('ExamplesTable', defaultStyles, DefaultRenderer);
21
- return React.createElement(ResolvedRenderer, { ...props });
22
- };
23
- const ExampleRow = ({ row }) => {
24
- const gherkinQuery = useContext(GherkinQueryContext);
25
- const cucumberQuery = useContext(CucumberQueryContext);
26
- const uri = useContext(UriContext);
27
- const { setSelectedExample } = useContext(ExamplesContext);
28
- const pickleIds = uri ? gherkinQuery.getPickleIds(uri, row.id) : [];
29
- const testStepResult = getWorstTestStepResult(cucumberQuery.getPickleTestStepResults(pickleIds));
30
- return (React.createElement(React.Fragment, null,
31
- React.createElement("tr", { onClick: () => setSelectedExample(pickleIds[0]) },
32
- React.createElement("td", null,
33
- React.createElement(StatusIcon, { status: testStepResult.status })),
34
- row.cells.map((cell, j) => (React.createElement("td", { key: j, style: { textAlign: isNumber(cell.value) ? 'right' : 'left' } }, cell.value))))));
35
- };
36
- //# sourceMappingURL=ExamplesTable.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ExamplesTable.js","sourceRoot":"","sources":["../../../../src/components/gherkin/ExamplesTable.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAA;AAC3D,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAEzC,OAAO,oBAAoB,MAAM,+BAA+B,CAAA;AAChE,OAAO,mBAAmB,MAAM,8BAA8B,CAAA;AAC9D,OAAO,UAAU,MAAM,qBAAqB,CAAA;AAC5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U,CAAC,eAAe,CAAC,CAAA;IAC1D,MAAM,SAAS,GAAG,GAAG,CAAC,CAAC,CAAC,YAAY,CAAC,YAAY,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAA;IACnE,MAAM,cAAc,GAAG,sBAAsB,CAAC,aAAa,CAAC,wBAAwB,CAAC,SAAS,CAAC,CAAC,CAAA;IAEhG,OAAO,CACL;QACE,4BAAI,OAAO,EAAE,GAAG,EAAE,CAAC,kBAAkB,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;YACjD;gBACE,oBAAC,UAAU,IAAC,MAAM,EAAE,cAAc,CAAC,MAAM,GAAI,CAC1C;YACJ,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAC1B,4BAAI,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,EAAE,IACtE,IAAI,CAAC,KAAK,CACR,CACN,CAAC,CACC,CACJ,CACJ,CAAA;AACH,CAAC,CAAA"}
@@ -1,15 +0,0 @@
1
- @use '../../styles/theming';
2
- @use '../../styles/tables';
3
-
4
- .examplesTable {
5
- @include tables.cucumber-table-style;
6
-
7
- th:first-child,
8
- td:first-child {
9
- border-left: none;
10
- }
11
-
12
- tbody tr {
13
- cursor: pointer;
14
- }
15
- }
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import { GherkinStepProps } from '../customise/index.js';
3
- export declare const GherkinStep: React.FunctionComponent<GherkinStepProps>;
4
- //# sourceMappingURL=GherkinStep.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"GherkinStep.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/GherkinStep.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,MAAM,OAAO,CAAA;AAKzB,OAAO,EAAoB,gBAAgB,EAAsB,MAAM,uBAAuB,CAAA;AA+G9F,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,iBAAiB,CAAC,gBAAgB,CAGjE,CAAA"}
@@ -1,92 +0,0 @@
1
- import { getWorstTestStepResult, } from '@cucumber/messages';
2
- import React from 'react';
3
- import CucumberQueryContext from '../../CucumberQueryContext.js';
4
- import GherkinQueryContext from '../../GherkinQueryContext.js';
5
- import { HighLight } from '../app/HighLight.js';
6
- import { useCustomRendering } from '../customise/index.js';
7
- import { TestStepResultDetails } from '../results/index.js';
8
- import { Attachment } from './attachment/index.js';
9
- import { DataTable as DataTableComponent } from './DataTable.js';
10
- import { DocString as DocStringComponent } from './DocString.js';
11
- import { Keyword } from './Keyword.js';
12
- import { Parameter } from './Parameter.js';
13
- import { StepItem } from './StepItem.js';
14
- import { Title } from './Title.js';
15
- function resolveStep(gherkinStep, pickleStep) {
16
- const step = { ...gherkinStep };
17
- if (pickleStep) {
18
- step.text = pickleStep.text;
19
- step.dataTable = pickleStep.argument?.dataTable;
20
- step.docString = pickleStep.argument?.docString;
21
- }
22
- return step;
23
- }
24
- const DefaultRenderer = ({ step: gherkinStep, pickleStep, hasExamples, }) => {
25
- const step = resolveStep(gherkinStep, pickleStep);
26
- const gherkinQuery = React.useContext(GherkinQueryContext);
27
- const cucumberQuery = React.useContext(CucumberQueryContext);
28
- const pickleStepIds = pickleStep ? [pickleStep.id] : gherkinQuery.getPickleStepIds(step.id);
29
- const pickleStepTestStepResults = cucumberQuery.getPickleStepTestStepResults(pickleStepIds);
30
- const testStepResult = getWorstTestStepResult(pickleStepTestStepResults);
31
- const attachments = cucumberQuery.getPickleStepAttachments(pickleStepIds);
32
- const stepTextElements = [];
33
- if (!hasExamples) {
34
- const stepMatchArgumentsLists = pickleStepIds.length === 0
35
- ? // This can happen in rare cases for background steps in a document that only has step-less scenarios,
36
- // because background steps are not added to the pickle when the scenario has no steps. In this case
37
- // the background step will be rendered as undefined (even if there are matching step definitions). This
38
- // is not ideal, but it is rare enough that we don't care about it for now.
39
- []
40
- : cucumberQuery.getStepMatchArgumentsLists(pickleStepIds[0]) || [];
41
- if (stepMatchArgumentsLists.length === 1) {
42
- // Step is defined
43
- const stepMatchArguments = stepMatchArgumentsLists[0].stepMatchArguments;
44
- let offset = 0;
45
- let plain;
46
- stepMatchArguments.forEach((argument, index) => {
47
- plain = step.text.slice(offset, argument.group.start);
48
- if (plain.length > 0) {
49
- stepTextElements.push(React.createElement(HighLight, { key: `plain-${index}`, text: plain }));
50
- }
51
- const arg = argument.group.value;
52
- if (arg !== undefined && arg !== null) {
53
- if (arg.length > 0) {
54
- stepTextElements.push(React.createElement(Parameter, { parameterTypeName: argument.parameterTypeName || 'anonymous', value: arg, key: `param-${index}` },
55
- React.createElement(HighLight, { text: arg })));
56
- }
57
- offset += plain.length + arg.length;
58
- }
59
- });
60
- plain = step.text.slice(offset);
61
- if (plain.length > 0) {
62
- stepTextElements.push(React.createElement(HighLight, { key: `plain-rest`, text: plain }));
63
- }
64
- }
65
- else if (stepMatchArgumentsLists.length >= 2) {
66
- // Step is ambiguous
67
- stepTextElements.push(React.createElement(HighLight, { key: `plain-ambiguous`, text: step.text }));
68
- }
69
- else {
70
- // Step is undefined
71
- stepTextElements.push(React.createElement(HighLight, { key: `plain-undefined`, text: step.text }));
72
- }
73
- }
74
- else {
75
- // Step is from scenario with examples, and has <> placeholders.
76
- stepTextElements.push(React.createElement(HighLight, { key: `plain-placeholders`, text: step.text }));
77
- }
78
- return (React.createElement(StepItem, { status: testStepResult.status },
79
- React.createElement(Title, { header: "h3", id: step.id },
80
- React.createElement(Keyword, null, step.keyword.trim()),
81
- React.createElement("span", null, stepTextElements)),
82
- step.dataTable && React.createElement(DataTableComponent, { dataTable: step.dataTable }),
83
- step.docString && React.createElement(DocStringComponent, { docString: step.docString }),
84
- !hasExamples && React.createElement(TestStepResultDetails, { ...testStepResult }),
85
- !hasExamples &&
86
- attachments.map((attachment, i) => React.createElement(Attachment, { key: i, attachment: attachment }))));
87
- };
88
- export const GherkinStep = (props) => {
89
- const ResolvedRenderer = useCustomRendering('GherkinStep', {}, DefaultRenderer);
90
- return React.createElement(ResolvedRenderer, { ...props });
91
- };
92
- //# sourceMappingURL=GherkinStep.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"GherkinStep.js","sourceRoot":"","sources":["../../../../src/components/gherkin/GherkinStep.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,sBAAsB,GAKvB,MAAM,oBAAoB,CAAA;AAC3B,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,oBAAoB,MAAM,+BAA+B,CAAA;AAChE,OAAO,mBAAmB,MAAM,8BAA8B,CAAA;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAC/C,OAAO,EAAsC,kBAAkB,EAAE,MAAM,uBAAuB,CAAA;AAC9F,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAA;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAA;AAClD,OAAO,EAAE,SAAS,IAAI,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AAChE,OAAO,EAAE,SAAS,IAAI,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AAChE,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AAUlC,SAAS,WAAW,CAAC,WAAiB,EAAE,UAAuB;IAC7D,MAAM,IAAI,GAAmB,EAAE,GAAG,WAAW,EAAE,CAAA;IAC/C,IAAI,UAAU,EAAE;QACd,IAAI,CAAC,IAAI,GAAG,UAAU,CAAC,IAAI,CAAA;QAC3B,IAAI,CAAC,SAAS,GAAG,UAAU,CAAC,QAAQ,EAAE,SAAS,CAA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AE,eAAe,CAAC,CAAA;IACjG,OAAO,oBAAC,gBAAgB,OAAK,KAAK,GAAI,CAAA;AACxC,CAAC,CAAA"}
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import { GherkinStepsProps } from '../customise/index.js';
3
- export declare const GherkinSteps: React.FunctionComponent<GherkinStepsProps>;
4
- //# sourceMappingURL=GherkinSteps.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"GherkinSteps.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/GherkinSteps.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAoB,iBAAiB,EAAsB,MAAM,uBAAuB,CAAA;AAuB/F,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAOnE,CAAA"}
@@ -1,15 +0,0 @@
1
- import React from 'react';
2
- import { useCustomRendering } from '../customise/index.js';
3
- import { GherkinStep } from './GherkinStep.js';
4
- const DefaultRenderer = ({ steps, pickle, hasExamples }) => {
5
- return (React.createElement(React.Fragment, null, steps.map((step, index) => {
6
- const pickleStep = pickle?.steps.find((item) => item.astNodeIds.includes(step.id));
7
- return (React.createElement("li", { key: index },
8
- React.createElement(GherkinStep, { key: index, step: step, pickleStep: pickleStep, hasExamples: hasExamples })));
9
- })));
10
- };
11
- export const GherkinSteps = (props) => {
12
- const ResolvedRenderer = useCustomRendering('GherkinSteps', {}, DefaultRenderer);
13
- return React.createElement(ResolvedRenderer, { ...props });
14
- };
15
- //# sourceMappingURL=GherkinSteps.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"GherkinSteps.js","sourceRoot":"","sources":["../../../../src/components/gherkin/GherkinSteps.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAuC,kBAAkB,EAAE,MAAM,uBAAuB,CAAA;AAC/F,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAE9C,MAAM,eAAe,GAAwC,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,EAAE,EAAE;IAC9F,OAAO,CACL,0CACG,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE;QACzB,MAAM,UAAU,GAAG,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAA;QAClF,OAAO,CACL,4BAAI,GAAG,EAAE,KAAK;YACZ,oBAAC,WAAW,IACV,GAAG,EAAE,KAAK,EACV,IAAI,EAAE,IAAI,EACV,UAAU,EAAE,UAAU,EACtB,WAAW,EAAE,WAAW,GACxB,CACC,CACN,CAAA;IACH,CAAC,CAAC,CACD,CACJ,CAAA;AACH,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,YAAY,GAA+C,CAAC,KAAK,EAAE,EAAE;IAChF,MAAM,gBAAgB,GAAG,kBAAkB,CACzC,cAAc,EACd,EAAE,EACF,eAAe,CAChB,CAAA;IACD,OAAO,oBAAC,gBAAgB,OAAK,KAAK,GAAI,CAAA;AACxC,CAAC,CAAA"}
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import { HookStepProps } from '../customise/index.js';
3
- export declare const HookStep: React.FunctionComponent<HookStepProps>;
4
- //# sourceMappingURL=HookStep.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"HookStep.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/HookStep.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,EAAE,aAAa,EAAsB,MAAM,uBAAuB,CAAA;AAgDzE,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,iBAAiB,CAAC,aAAa,CAG3D,CAAA"}
@@ -1,42 +0,0 @@
1
- import * as messages from '@cucumber/messages';
2
- import { getWorstTestStepResult } from '@cucumber/messages';
3
- import React from 'react';
4
- import CucumberQueryContext from '../../CucumberQueryContext.js';
5
- import { useCustomRendering } from '../customise/index.js';
6
- import { TestStepResultDetails } from '../results/index.js';
7
- import { Attachment } from './attachment/index.js';
8
- import { StepItem } from './StepItem.js';
9
- import { Title } from './Title.js';
10
- const DefaultRenderer = ({ step }) => {
11
- if (!step.hookId)
12
- throw new Error('Expected step to have a hookId');
13
- const cucumberQuery = React.useContext(CucumberQueryContext);
14
- const stepResult = getWorstTestStepResult(cucumberQuery.getTestStepResults(step.id));
15
- const hook = cucumberQuery.getHook(step.hookId);
16
- const attachments = cucumberQuery.getTestStepsAttachments([step.id]);
17
- if (stepResult.status === messages.TestStepResultStatus.FAILED) {
18
- let location = 'Unknown location';
19
- if (hook?.sourceReference.location) {
20
- location = `${hook.sourceReference.uri}:${hook.sourceReference.location.line}`;
21
- }
22
- else if (hook?.sourceReference.javaMethod) {
23
- location = `${hook.sourceReference.javaMethod.className}.${hook.sourceReference.javaMethod.methodName}`;
24
- }
25
- return (React.createElement(StepItem, { status: stepResult.status },
26
- React.createElement(Title, { header: "h3", id: step.id },
27
- hook?.name ? `Hook "${hook.name}"` : 'Hook',
28
- " failed: ",
29
- location),
30
- React.createElement(TestStepResultDetails, { ...stepResult }),
31
- attachments.map((attachment, i) => (React.createElement(Attachment, { key: i, attachment: attachment })))));
32
- }
33
- if (attachments?.length) {
34
- return (React.createElement(StepItem, null, attachments.map((attachment, i) => (React.createElement(Attachment, { key: i, attachment: attachment })))));
35
- }
36
- return null;
37
- };
38
- export const HookStep = (props) => {
39
- const ResolvedRenderer = useCustomRendering('HookStep', {}, DefaultRenderer);
40
- return React.createElement(ResolvedRenderer, { ...props });
41
- };
42
- //# sourceMappingURL=HookStep.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"HookStep.js","sourceRoot":"","sources":["../../../../src/components/gherkin/HookStep.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,oBAAoB,CAAA;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AQ,GAAG,GAAG,IAAI,CAAC,eAAe,CAAC,UAAU,CAAC,SAAS,IAAI,IAAI,CAAC,eAAe,CAAC,UAAU,CAAC,UAAU,EAAE,CAAA;SACxG;QAED,OAAO,CACL,oBAAC,QAAQ,IAAC,MAAM,EAAE,UAAU,CAAC,MAAM;YACjC,oBAAC,KAAK,IAAC,MAAM,EAAC,IAAI,EAAC,EAAE,EAAE,IAAI,CAAC,EAAE;gBAC3B,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,SAAS,IAAI,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC,MAAM;;gBAAW,QAAQ,CACzD;YACR,oBAAC,qBAAqB,OAAK,UAAU,GAAI;YACxC,WAAW,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,CAAC,EAAE,EAAE,CAAC,CAClC,oBAAC,UAAU,IAAC,GAAG,EAAE,CAAC,EAAE,UAAU,EAAE,UAAU,GAAI,CAC/C,CAAC,CACO,CACZ,CAAA;KACF;IAED,IAAI,WAAW,EAAE,MAAM,EAAE;QACvB,OAAO,CACL,oBAAC,QAAQ,QACN,WAAW,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,CAAC,EAAE,EAAE,CAAC,CAClC,oBAAC,UAAU,IAAC,GAAG,EAAE,CAAC,EAAE,UAAU,EAAE,UAAU,GAAI,CAC/C,CAAC,CACO,CACZ,CAAA;KACF;IACD,OAAO,IAAI,CAAA;AACb,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,QAAQ,GAA2C,CAAC,KAAK,EAAE,EAAE;IACxE,MAAM,gBAAgB,GAAG,kBAAkB,CAAgB,UAAU,EAAE,EAAE,EAAE,eAAe,CAAC,CAAA;IAC3F,OAAO,oBAAC,gBAAgB,OAAK,KAAK,GAAI,CAAA;AACxC,CAAC,CAAA"}
@@ -1,8 +0,0 @@
1
- import * as messages from '@cucumber/messages';
2
- import React from 'react';
3
- interface IProps {
4
- hookSteps: readonly messages.TestStep[];
5
- }
6
- export declare const HookSteps: React.FunctionComponent<IProps>;
7
- export {};
8
- //# sourceMappingURL=HookSteps.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"HookSteps.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/HookSteps.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,oBAAoB,CAAA;AAC9C,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,UAAU,MAAM;IACd,SAAS,EAAE,SAAS,QAAQ,CAAC,QAAQ,EAAE,CAAA;CACxC;AAED,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,iBAAiB,CAAC,MAAM,CAUrD,CAAA"}
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import { HookStep } from './HookStep.js';
3
- export const HookSteps = ({ hookSteps }) => {
4
- return (React.createElement(React.Fragment, null, hookSteps.map((step, index) => (React.createElement("li", { key: index },
5
- React.createElement(HookStep, { key: index, step: step }))))));
6
- };
7
- //# sourceMappingURL=HookSteps.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"HookSteps.js","sourceRoot":"","sources":["../../../../src/components/gherkin/HookSteps.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAMxC,MAAM,CAAC,MAAM,SAAS,GAAoC,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE;IAC1E,OAAO,CACL,0CACG,SAAS,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,CAC9B,4BAAI,GAAG,EAAE,KAAK;QACZ,oBAAC,QAAQ,IAAC,GAAG,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,GAAI,CACjC,CACN,CAAC,CACD,CACJ,CAAA;AACH,CAAC,CAAA"}
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- interface IProps {
3
- uri: string;
4
- children: string;
5
- }
6
- export declare const MDG: React.FunctionComponent<IProps>;
7
- export {};
8
- //# sourceMappingURL=MDG.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MDG.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/MDG.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AAezB,UAAU,MAAM;IACd,GAAG,EAAE,MAAM,CAAA;IACX,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED,eAAO,MAAM,GAAG,EAAE,KAAK,CAAC,iBAAiB,CAAC,MAAM,CAgF/C,CAAA"}
@@ -1,80 +0,0 @@
1
- import React from 'react';
2
- import ReactMarkdown from 'react-markdown';
3
- import GherkinQueryContext from '../../GherkinQueryContext.js';
4
- import { HighLight } from '../app/HighLight.js';
5
- import rehypePlugins from '../app/rehypePlugins.js';
6
- import dataTableStyles from './DataTable.module.scss';
7
- import { ExamplesTable } from './ExamplesTable.js';
8
- import { GherkinStep } from './GherkinStep.js';
9
- import { Keyword } from './Keyword.js';
10
- import styles from './MDG.module.scss';
11
- import { Title } from './Title.js';
12
- export const MDG = ({ uri, children }) => {
13
- const gherkinQuery = React.useContext(GherkinQueryContext);
14
- let hasExamples = false;
15
- let examples = undefined;
16
- function header(line, level, children) {
17
- const scenario = gherkinQuery.getScenario(uri, line);
18
- hasExamples = !!scenario && scenario.examples.length > 0;
19
- examples = gherkinQuery.getExamples(uri, line);
20
- const titleAstNode = scenario ||
21
- gherkinQuery.getBackground(uri, line) ||
22
- gherkinQuery.getRule(uri, line) ||
23
- examples;
24
- if (titleAstNode) {
25
- const header = `h${level}`;
26
- return (React.createElement(Title, { header: header, id: titleAstNode.id },
27
- React.createElement(Keyword, null,
28
- titleAstNode.keyword,
29
- ":"),
30
- React.createElement(HighLight, { text: titleAstNode.name })));
31
- }
32
- return React.createElement("h3", null, children);
33
- }
34
- return (React.createElement(ReactMarkdown, { rehypePlugins: rehypePlugins, components: {
35
- h1({ node, level, children }) {
36
- return header(line(node), level, children);
37
- },
38
- h2({ node, level, children }) {
39
- return header(line(node), level, children);
40
- },
41
- h3({ node, level, children }) {
42
- return header(line(node), level, children);
43
- },
44
- h4({ node, level, children }) {
45
- return header(line(node), level, children);
46
- },
47
- h5({ node, level, children }) {
48
- return header(line(node), level, children);
49
- },
50
- table({ node, children }) {
51
- if (examples && examples.tableHeader && line(node) >= 3) {
52
- return (React.createElement(ExamplesTable, { tableHeader: examples.tableHeader, tableBody: examples.tableBody }));
53
- }
54
- return React.createElement("table", { className: dataTableStyles.table }, children);
55
- },
56
- ul({ node, children }) {
57
- const step = gherkinQuery.getStep(uri, line(node));
58
- if (!step) {
59
- // Non-Gherkin list
60
- return React.createElement("ul", null, children);
61
- }
62
- return React.createElement("ul", { className: styles.steps }, children);
63
- },
64
- li({ node, children }) {
65
- const step = gherkinQuery.getStep(uri, line(node));
66
- if (!step) {
67
- // Non-Gherkin list item
68
- return React.createElement("li", null, children);
69
- }
70
- return (React.createElement("li", null,
71
- React.createElement(GherkinStep, { step: step, hasExamples: hasExamples })));
72
- },
73
- } }, children));
74
- };
75
- function line(node) {
76
- if (node.position === undefined)
77
- throw new Error(`undefined position in ${JSON.stringify(node)}`);
78
- return node.position.start.line;
79
- }
80
- //# sourceMappingURL=MDG.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MDG.js","sourceRoot":"","sources":["../../../../src/components/gherkin/MDG.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,aAAa,MAAM,gBAAgB,CAAA;AAG1C,OAAO,mBAAmB,MAAM,8BAA8B,CAAA;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAC/C,OAAO,aAAa,MAAM,yBAAyB,CAAA;AAEnD,OAAO,eAAe,MAAM,yBAAyB,CAAA;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc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AAC,GAAG,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAA;gBAClD,IAAI,CAAC,IAAI,EAAE;oBACT,mBAAmB;oBACnB,OAAO,gCAAK,QAAQ,CAAM,CAAA;iBAC3B;gBACD,OAAO,4BAAI,SAAS,EAAE,MAAM,CAAC,KAAK,IAAG,QAAQ,CAAM,CAAA;YACrD,CAAC;YACD,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE;gBACnB,MAAM,IAAI,GAAG,YAAY,CAAC,OAAO,CAAC,GAAG,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAA;gBAClD,IAAI,CAAC,IAAI,EAAE;oBACT,wBAAwB;oBACxB,OAAO,gCAAK,QAAQ,CAAM,CAAA;iBAC3B;gBACD,OAAO,CACL;oBACE,oBAAC,WAAW,IAAC,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,WAAW,GAAI,CAClD,CACN,CAAA;YACH,CAAC;SACF,IAEA,QAAQ,CACK,CACjB,CAAA;AACH,CAAC,CAAA;AAED,SAAS,IAAI,CAAC,IAAa;IACzB,IAAI,IAAI,CAAC,QAAQ,KAAK,SAAS;QAAE,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;IACjG,OAAO,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAA;AACjC,CAAC"}
@@ -1,12 +0,0 @@
1
- .steps {
2
- padding: 0;
3
- margin: 1em;
4
-
5
- > li {
6
- list-style: none;
7
- }
8
-
9
- > li + li {
10
- margin-top: 0.25em;
11
- }
12
- }
@@ -1,6 +0,0 @@
1
- import * as messages from '@cucumber/messages';
2
- import { FunctionComponent, PropsWithChildren } from 'react';
3
- export declare const StepItem: FunctionComponent<PropsWithChildren<{
4
- status?: messages.TestStepResultStatus;
5
- }>>;
6
- //# sourceMappingURL=StepItem.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"StepItem.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/StepItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,oBAAoB,CAAA;AAC9C,OAAc,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAKnE,eAAO,MAAM,QAAQ,EAAE,iBAAiB,CACtC,iBAAiB,CAAC;IAChB,MAAM,CAAC,EAAE,QAAQ,CAAC,oBAAoB,CAAA;CACvC,CAAC,CAQH,CAAA"}
@@ -1,9 +0,0 @@
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)));
8
- };
9
- //# sourceMappingURL=StepItem.js.map
@@ -1 +0,0 @@
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,21 +0,0 @@
1
- $statusWidth: 1.5em;
2
-
3
- .container {
4
- display: flex;
5
- --cucumber-anchor-offset: -3.25em;
6
- }
7
-
8
- .status {
9
- width: $statusWidth;
10
- }
11
-
12
- .content {
13
- flex-grow: 1;
14
- // don't grow wider than container (less status) width
15
- max-width: calc(100% - #{$statusWidth});
16
-
17
- // bit of detail (doc string, data table, error, attachment) get consistent spacing between them
18
- > * + * {
19
- margin-top: 0.25em !important;
20
- }
21
- }