@cucumber/react-components 21.1.1 → 22.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 (283) hide show
  1. package/README.md +2 -1
  2. package/dist/src/CucumberQueryContext.js +3 -8
  3. package/dist/src/CucumberQueryContext.js.map +1 -1
  4. package/dist/src/EnvelopesQueryContext.js +8 -20
  5. package/dist/src/EnvelopesQueryContext.js.map +1 -1
  6. package/dist/src/GherkinQueryContext.js +3 -8
  7. package/dist/src/GherkinQueryContext.js.map +1 -1
  8. package/dist/src/SearchQueryContext.js +24 -53
  9. package/dist/src/SearchQueryContext.js.map +1 -1
  10. package/dist/src/UriContext.js +2 -7
  11. package/dist/src/UriContext.js.map +1 -1
  12. package/dist/src/ciCommitLink.js +3 -9
  13. package/dist/src/ciCommitLink.js.map +1 -1
  14. package/dist/src/components/CucumberReact.d.ts +1 -1
  15. package/dist/src/components/CucumberReact.d.ts.map +1 -1
  16. package/dist/src/components/CucumberReact.js +7 -14
  17. package/dist/src/components/CucumberReact.js.map +1 -1
  18. package/dist/src/components/app/CICommitLink.js +14 -22
  19. package/dist/src/components/app/CICommitLink.js.map +1 -1
  20. package/dist/src/components/app/CIJobLink.js +8 -15
  21. package/dist/src/components/app/CIJobLink.js.map +1 -1
  22. package/dist/src/components/app/EnvelopesWrapper.js +11 -38
  23. package/dist/src/components/app/EnvelopesWrapper.js.map +1 -1
  24. package/dist/src/components/app/ExecutionSummary.js +54 -61
  25. package/dist/src/components/app/ExecutionSummary.js.map +1 -1
  26. package/dist/src/components/app/FilteredResults.d.ts.map +1 -1
  27. package/dist/src/components/app/FilteredResults.js +21 -39
  28. package/dist/src/components/app/FilteredResults.js.map +1 -1
  29. package/dist/src/components/app/GherkinDocumentList.js +27 -57
  30. package/dist/src/components/app/GherkinDocumentList.js.map +1 -1
  31. package/dist/src/components/app/HighLight.js +14 -21
  32. package/dist/src/components/app/HighLight.js.map +1 -1
  33. package/dist/src/components/app/NavigationButton.js +4 -23
  34. package/dist/src/components/app/NavigationButton.js.map +1 -1
  35. package/dist/src/components/app/NoMatchResult.js +8 -15
  36. package/dist/src/components/app/NoMatchResult.js.map +1 -1
  37. package/dist/src/components/app/OSIcon.js +10 -17
  38. package/dist/src/components/app/OSIcon.js.map +1 -1
  39. package/dist/src/components/app/QueriesWrapper.d.ts +1 -1
  40. package/dist/src/components/app/QueriesWrapper.d.ts.map +1 -1
  41. package/dist/src/components/app/QueriesWrapper.js +7 -14
  42. package/dist/src/components/app/QueriesWrapper.js.map +1 -1
  43. package/dist/src/components/app/RuntimeIcon.js +10 -17
  44. package/dist/src/components/app/RuntimeIcon.js.map +1 -1
  45. package/dist/src/components/app/SearchBar.d.ts.map +1 -1
  46. package/dist/src/components/app/SearchBar.js +25 -30
  47. package/dist/src/components/app/SearchBar.js.map +1 -1
  48. package/dist/src/components/app/SearchWrapper.d.ts +1 -1
  49. package/dist/src/components/app/SearchWrapper.d.ts.map +1 -1
  50. package/dist/src/components/app/SearchWrapper.js +4 -46
  51. package/dist/src/components/app/SearchWrapper.js.map +1 -1
  52. package/dist/src/components/app/StatusesSummary.js +8 -15
  53. package/dist/src/components/app/StatusesSummary.js.map +1 -1
  54. package/dist/src/components/app/icons/CucumberLogo.d.ts +1 -1
  55. package/dist/src/components/app/icons/CucumberLogo.js +7 -14
  56. package/dist/src/components/app/icons/CucumberLogo.js.map +1 -1
  57. package/dist/src/components/app/icons/Jvm.d.ts +1 -1
  58. package/dist/src/components/app/icons/Jvm.js +8 -15
  59. package/dist/src/components/app/icons/Jvm.js.map +1 -1
  60. package/dist/src/components/app/icons/Linux.js +18 -25
  61. package/dist/src/components/app/icons/Linux.js.map +1 -1
  62. package/dist/src/components/app/icons/MacOS.d.ts +1 -1
  63. package/dist/src/components/app/icons/MacOS.js +4 -11
  64. package/dist/src/components/app/icons/MacOS.js.map +1 -1
  65. package/dist/src/components/app/icons/NodeJs.d.ts +1 -1
  66. package/dist/src/components/app/icons/NodeJs.js +34 -41
  67. package/dist/src/components/app/icons/NodeJs.js.map +1 -1
  68. package/dist/src/components/app/icons/Ruby.d.ts +1 -1
  69. package/dist/src/components/app/icons/Ruby.js +4 -11
  70. package/dist/src/components/app/icons/Ruby.js.map +1 -1
  71. package/dist/src/components/app/icons/Windows.js +4 -11
  72. package/dist/src/components/app/icons/Windows.js.map +1 -1
  73. package/dist/src/components/app/index.d.ts +11 -11
  74. package/dist/src/components/app/index.d.ts.map +1 -1
  75. package/dist/src/components/app/index.js +11 -27
  76. package/dist/src/components/app/index.js.map +1 -1
  77. package/dist/src/components/app/rehypePlugins.d.ts.map +1 -1
  78. package/dist/src/components/app/rehypePlugins.js +8 -13
  79. package/dist/src/components/app/rehypePlugins.js.map +1 -1
  80. package/dist/src/components/app/remarkPlugins.js +3 -8
  81. package/dist/src/components/app/remarkPlugins.js.map +1 -1
  82. package/dist/src/components/app/statuses.js +2 -27
  83. package/dist/src/components/app/statuses.js.map +1 -1
  84. package/dist/src/components/customise/customRendering.js +6 -33
  85. package/dist/src/components/customise/customRendering.js.map +1 -1
  86. package/dist/src/components/customise/index.d.ts +2 -2
  87. package/dist/src/components/customise/index.d.ts.map +1 -1
  88. package/dist/src/components/customise/index.js +2 -18
  89. package/dist/src/components/customise/index.js.map +1 -1
  90. package/dist/src/components/customise/theming.js +1 -2
  91. package/dist/src/components/gherkin/Anchor.d.ts +1 -1
  92. package/dist/src/components/gherkin/Anchor.d.ts.map +1 -1
  93. package/dist/src/components/gherkin/Anchor.js +11 -18
  94. package/dist/src/components/gherkin/Anchor.js.map +1 -1
  95. package/dist/src/components/gherkin/Attachment.d.ts +1 -1
  96. package/dist/src/components/gherkin/Attachment.d.ts.map +1 -1
  97. package/dist/src/components/gherkin/Attachment.js +43 -77
  98. package/dist/src/components/gherkin/Attachment.js.map +1 -1
  99. package/dist/src/components/gherkin/Background.d.ts +1 -1
  100. package/dist/src/components/gherkin/Background.d.ts.map +1 -1
  101. package/dist/src/components/gherkin/Background.js +17 -24
  102. package/dist/src/components/gherkin/Background.js.map +1 -1
  103. package/dist/src/components/gherkin/Children.d.ts +1 -1
  104. package/dist/src/components/gherkin/Children.d.ts.map +1 -1
  105. package/dist/src/components/gherkin/Children.js +7 -14
  106. package/dist/src/components/gherkin/Children.js.map +1 -1
  107. package/dist/src/components/gherkin/DataTable.d.ts +1 -1
  108. package/dist/src/components/gherkin/DataTable.d.ts.map +1 -1
  109. package/dist/src/components/gherkin/DataTable.js +12 -19
  110. package/dist/src/components/gherkin/DataTable.js.map +1 -1
  111. package/dist/src/components/gherkin/Description.d.ts +1 -1
  112. package/dist/src/components/gherkin/Description.d.ts.map +1 -1
  113. package/dist/src/components/gherkin/Description.js +9 -16
  114. package/dist/src/components/gherkin/Description.js.map +1 -1
  115. package/dist/src/components/gherkin/DocString.d.ts +1 -1
  116. package/dist/src/components/gherkin/DocString.d.ts.map +1 -1
  117. package/dist/src/components/gherkin/DocString.js +9 -16
  118. package/dist/src/components/gherkin/DocString.js.map +1 -1
  119. package/dist/src/components/gherkin/ErrorMessage.d.ts +1 -1
  120. package/dist/src/components/gherkin/ErrorMessage.d.ts.map +1 -1
  121. package/dist/src/components/gherkin/ErrorMessage.js +7 -14
  122. package/dist/src/components/gherkin/ErrorMessage.js.map +1 -1
  123. package/dist/src/components/gherkin/ExampleDetail.js +31 -61
  124. package/dist/src/components/gherkin/ExampleDetail.js.map +1 -1
  125. package/dist/src/components/gherkin/Examples.d.ts +1 -1
  126. package/dist/src/components/gherkin/Examples.d.ts.map +1 -1
  127. package/dist/src/components/gherkin/Examples.js +20 -27
  128. package/dist/src/components/gherkin/Examples.js.map +1 -1
  129. package/dist/src/components/gherkin/ExamplesContext.d.ts +1 -1
  130. package/dist/src/components/gherkin/ExamplesContext.js +2 -5
  131. package/dist/src/components/gherkin/ExamplesContext.js.map +1 -1
  132. package/dist/src/components/gherkin/ExamplesTable.d.ts +1 -1
  133. package/dist/src/components/gherkin/ExamplesTable.d.ts.map +1 -1
  134. package/dist/src/components/gherkin/ExamplesTable.js +29 -59
  135. package/dist/src/components/gherkin/ExamplesTable.js.map +1 -1
  136. package/dist/src/components/gherkin/Feature.d.ts +1 -1
  137. package/dist/src/components/gherkin/Feature.d.ts.map +1 -1
  138. package/dist/src/components/gherkin/Feature.js +24 -31
  139. package/dist/src/components/gherkin/Feature.js.map +1 -1
  140. package/dist/src/components/gherkin/GherkinDocument.d.ts +1 -1
  141. package/dist/src/components/gherkin/GherkinDocument.d.ts.map +1 -1
  142. package/dist/src/components/gherkin/GherkinDocument.js +7 -14
  143. package/dist/src/components/gherkin/GherkinDocument.js.map +1 -1
  144. package/dist/src/components/gherkin/GherkinStep.d.ts +1 -1
  145. package/dist/src/components/gherkin/GherkinStep.d.ts.map +1 -1
  146. package/dist/src/components/gherkin/GherkinStep.js +38 -46
  147. package/dist/src/components/gherkin/GherkinStep.js.map +1 -1
  148. package/dist/src/components/gherkin/GherkinSteps.d.ts +1 -1
  149. package/dist/src/components/gherkin/GherkinSteps.d.ts.map +1 -1
  150. package/dist/src/components/gherkin/GherkinSteps.js +10 -17
  151. package/dist/src/components/gherkin/GherkinSteps.js.map +1 -1
  152. package/dist/src/components/gherkin/HookStep.d.ts +1 -1
  153. package/dist/src/components/gherkin/HookStep.d.ts.map +1 -1
  154. package/dist/src/components/gherkin/HookStep.js +22 -52
  155. package/dist/src/components/gherkin/HookStep.js.map +1 -1
  156. package/dist/src/components/gherkin/HookSteps.js +5 -12
  157. package/dist/src/components/gherkin/HookSteps.js.map +1 -1
  158. package/dist/src/components/gherkin/Keyword.d.ts +1 -1
  159. package/dist/src/components/gherkin/Keyword.d.ts.map +1 -1
  160. package/dist/src/components/gherkin/Keyword.js +7 -14
  161. package/dist/src/components/gherkin/Keyword.js.map +1 -1
  162. package/dist/src/components/gherkin/MDG.js +25 -32
  163. package/dist/src/components/gherkin/MDG.js.map +1 -1
  164. package/dist/src/components/gherkin/Parameter.d.ts +1 -1
  165. package/dist/src/components/gherkin/Parameter.d.ts.map +1 -1
  166. package/dist/src/components/gherkin/Parameter.js +7 -14
  167. package/dist/src/components/gherkin/Parameter.js.map +1 -1
  168. package/dist/src/components/gherkin/Rule.d.ts +1 -1
  169. package/dist/src/components/gherkin/Rule.d.ts.map +1 -1
  170. package/dist/src/components/gherkin/Rule.js +22 -29
  171. package/dist/src/components/gherkin/Rule.js.map +1 -1
  172. package/dist/src/components/gherkin/Scenario.d.ts +1 -1
  173. package/dist/src/components/gherkin/Scenario.d.ts.map +1 -1
  174. package/dist/src/components/gherkin/Scenario.js +35 -65
  175. package/dist/src/components/gherkin/Scenario.js.map +1 -1
  176. package/dist/src/components/gherkin/StatusIcon.d.ts +1 -1
  177. package/dist/src/components/gherkin/StatusIcon.d.ts.map +1 -1
  178. package/dist/src/components/gherkin/StatusIcon.js +16 -23
  179. package/dist/src/components/gherkin/StatusIcon.js.map +1 -1
  180. package/dist/src/components/gherkin/StepItem.js +7 -14
  181. package/dist/src/components/gherkin/StepItem.js.map +1 -1
  182. package/dist/src/components/gherkin/StepsList.js +4 -11
  183. package/dist/src/components/gherkin/StepsList.js.map +1 -1
  184. package/dist/src/components/gherkin/Tags.d.ts +1 -1
  185. package/dist/src/components/gherkin/Tags.d.ts.map +1 -1
  186. package/dist/src/components/gherkin/Tags.js +9 -16
  187. package/dist/src/components/gherkin/Tags.js.map +1 -1
  188. package/dist/src/components/gherkin/Title.d.ts +1 -1
  189. package/dist/src/components/gherkin/Title.d.ts.map +1 -1
  190. package/dist/src/components/gherkin/Title.js +9 -16
  191. package/dist/src/components/gherkin/Title.js.map +1 -1
  192. package/dist/src/components/gherkin/attachmentFilename.js +3 -10
  193. package/dist/src/components/gherkin/attachmentFilename.js.map +1 -1
  194. package/dist/src/components/gherkin/index.d.ts +25 -25
  195. package/dist/src/components/gherkin/index.d.ts.map +1 -1
  196. package/dist/src/components/gherkin/index.js +25 -41
  197. package/dist/src/components/gherkin/index.js.map +1 -1
  198. package/dist/src/components/gherkin/isNumber.js +1 -4
  199. package/dist/src/components/gherkin/isNumber.js.map +1 -1
  200. package/dist/src/components/gherkin/statusName.js +1 -3
  201. package/dist/src/components/gherkin/statusName.js.map +1 -1
  202. package/dist/src/components/index.d.ts +4 -4
  203. package/dist/src/components/index.d.ts.map +1 -1
  204. package/dist/src/components/index.js +4 -33
  205. package/dist/src/components/index.js.map +1 -1
  206. package/dist/src/countScenariosByStatuses.d.ts +2 -1
  207. package/dist/src/countScenariosByStatuses.d.ts.map +1 -1
  208. package/dist/src/countScenariosByStatuses.js +26 -33
  209. package/dist/src/countScenariosByStatuses.js.map +1 -1
  210. package/dist/src/filter/filterByStatus.d.ts +2 -1
  211. package/dist/src/filter/filterByStatus.d.ts.map +1 -1
  212. package/dist/src/filter/filterByStatus.js +9 -9
  213. package/dist/src/filter/filterByStatus.js.map +1 -1
  214. package/dist/src/hooks/index.d.ts +2 -2
  215. package/dist/src/hooks/index.d.ts.map +1 -1
  216. package/dist/src/hooks/index.js +2 -18
  217. package/dist/src/hooks/index.js.map +1 -1
  218. package/dist/src/hooks/useFilteredDocuments.d.ts +3 -0
  219. package/dist/src/hooks/useFilteredDocuments.d.ts.map +1 -0
  220. package/dist/src/hooks/useFilteredDocuments.js +27 -0
  221. package/dist/src/hooks/useFilteredDocuments.js.map +1 -0
  222. package/dist/src/hooks/useQueries.d.ts +1 -1
  223. package/dist/src/hooks/useQueries.d.ts.map +1 -1
  224. package/dist/src/hooks/useQueries.js +8 -15
  225. package/dist/src/hooks/useQueries.js.map +1 -1
  226. package/dist/src/hooks/useResultStatistics.d.ts +6 -0
  227. package/dist/src/hooks/useResultStatistics.d.ts.map +1 -0
  228. package/dist/src/hooks/useResultStatistics.js +7 -0
  229. package/dist/src/hooks/useResultStatistics.js.map +1 -0
  230. package/dist/src/hooks/useSearch.d.ts +1 -1
  231. package/dist/src/hooks/useSearch.d.ts.map +1 -1
  232. package/dist/src/hooks/useSearch.js +4 -11
  233. package/dist/src/hooks/useSearch.js.map +1 -1
  234. package/dist/src/index.d.ts +7 -7
  235. package/dist/src/index.d.ts.map +1 -1
  236. package/dist/src/index.js +8 -43
  237. package/dist/src/index.js.map +1 -1
  238. package/dist/src/isTagExpression.js +1 -4
  239. package/dist/src/isTagExpression.js.map +1 -1
  240. package/dist/src/search/FeatureSearch.d.ts +3 -7
  241. package/dist/src/search/FeatureSearch.d.ts.map +1 -1
  242. package/dist/src/search/FeatureSearch.js +31 -31
  243. package/dist/src/search/FeatureSearch.js.map +1 -1
  244. package/dist/src/search/ScenarioLikeSearch.d.ts +25 -0
  245. package/dist/src/search/ScenarioLikeSearch.d.ts.map +1 -0
  246. package/dist/src/search/ScenarioLikeSearch.js +41 -0
  247. package/dist/src/search/ScenarioLikeSearch.js.map +1 -0
  248. package/dist/src/search/Search.d.ts +9 -9
  249. package/dist/src/search/Search.d.ts.map +1 -1
  250. package/dist/src/search/Search.js +34 -20
  251. package/dist/src/search/Search.js.map +1 -1
  252. package/dist/src/search/StepSearch.d.ts +16 -8
  253. package/dist/src/search/StepSearch.d.ts.map +1 -1
  254. package/dist/src/search/StepSearch.js +33 -44
  255. package/dist/src/search/StepSearch.js.map +1 -1
  256. package/dist/src/search/TagSearch.d.ts +2 -10
  257. package/dist/src/search/TagSearch.d.ts.map +1 -1
  258. package/dist/src/search/TagSearch.js +17 -18
  259. package/dist/src/search/TagSearch.js.map +1 -1
  260. package/dist/src/search/TextSearch.d.ts +2 -11
  261. package/dist/src/search/TextSearch.d.ts.map +1 -1
  262. package/dist/src/search/TextSearch.js +47 -36
  263. package/dist/src/search/TextSearch.js.map +1 -1
  264. package/dist/src/search/index.d.ts +3 -0
  265. package/dist/src/search/index.d.ts.map +1 -0
  266. package/dist/src/search/index.js +3 -0
  267. package/dist/src/search/index.js.map +1 -0
  268. package/dist/src/search/types.d.ts +14 -0
  269. package/dist/src/search/types.d.ts.map +1 -0
  270. package/dist/src/search/types.js +2 -0
  271. package/dist/src/search/types.js.map +1 -0
  272. package/dist/src/toRepositoryId.js +1 -4
  273. package/dist/src/toRepositoryId.js.map +1 -1
  274. package/dist/tsconfig.build.tsbuildinfo +1 -1
  275. package/package.json +26 -17
  276. package/dist/src/search/RuleSearch.d.ts +0 -9
  277. package/dist/src/search/RuleSearch.d.ts.map +0 -1
  278. package/dist/src/search/RuleSearch.js +0 -42
  279. package/dist/src/search/RuleSearch.js.map +0 -1
  280. package/dist/src/search/ScenarioSearch.d.ts +0 -9
  281. package/dist/src/search/ScenarioSearch.d.ts.map +0 -1
  282. package/dist/src/search/ScenarioSearch.js +0 -42
  283. package/dist/src/search/ScenarioSearch.js.map +0 -1
@@ -1,70 +1,40 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
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.ExampleDetail = void 0;
30
- const free_solid_svg_icons_1 = require("@fortawesome/free-solid-svg-icons");
31
- const react_fontawesome_1 = require("@fortawesome/react-fontawesome");
32
- const react_1 = __importStar(require("react"));
33
- const CucumberQueryContext_1 = __importDefault(require("../../CucumberQueryContext"));
34
- const GherkinQueryContext_1 = __importDefault(require("../../GherkinQueryContext"));
35
- const HighLight_1 = require("../app/HighLight");
36
- const NavigationButton_1 = require("../app/NavigationButton");
37
- const Description_1 = require("./Description");
38
- const ExampleDetail_module_scss_1 = __importDefault(require("./ExampleDetail.module.scss"));
39
- const GherkinSteps_1 = require("./GherkinSteps");
40
- const HookSteps_1 = require("./HookSteps");
41
- const Keyword_1 = require("./Keyword");
42
- const StepsList_1 = require("./StepsList");
43
- const Tags_1 = require("./Tags");
44
- const Title_1 = require("./Title");
45
- const ExampleDetail = ({ scenario, pickleId, onBack }) => {
46
- const gherkinQuery = (0, react_1.useContext)(GherkinQueryContext_1.default);
47
- const cucumberQuery = (0, react_1.useContext)(CucumberQueryContext_1.default);
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);
48
19
  const pickle = gherkinQuery.getPickles().find((item) => item.id === pickleId);
49
20
  const beforeHooks = cucumberQuery.getBeforeHookSteps(pickleId);
50
21
  const afterHooks = cucumberQuery.getAfterHookSteps(pickleId);
51
22
  const examplesCount = scenario.examples.flatMap((examples) => examples.tableBody).length;
52
- return (react_1.default.createElement(react_1.default.Fragment, null,
53
- react_1.default.createElement(NavigationButton_1.NavigationButton, { onClick: onBack },
54
- react_1.default.createElement(react_fontawesome_1.FontAwesomeIcon, { icon: free_solid_svg_icons_1.faArrowLeft, className: ExampleDetail_module_scss_1.default.backIcon }),
23
+ return (React.createElement(React.Fragment, null,
24
+ React.createElement(NavigationButton, { onClick: onBack },
25
+ React.createElement(FontAwesomeIcon, { icon: faArrowLeft, className: styles.backIcon }),
55
26
  "Back to outline and all ",
56
27
  examplesCount,
57
28
  " examples"),
58
- react_1.default.createElement("section", null,
59
- react_1.default.createElement(Tags_1.Tags, { tags: pickle.tags }),
60
- react_1.default.createElement(Title_1.Title, { header: "h2", id: scenario.id },
61
- react_1.default.createElement(Keyword_1.Keyword, null, "Example:"),
62
- react_1.default.createElement(HighLight_1.HighLight, { text: pickle.name })),
63
- react_1.default.createElement(Description_1.Description, { description: scenario.description }),
64
- react_1.default.createElement(StepsList_1.StepsList, null,
65
- react_1.default.createElement(HookSteps_1.HookSteps, { hookSteps: beforeHooks }),
66
- react_1.default.createElement(GherkinSteps_1.GherkinSteps, { steps: scenario.steps || [], pickle: pickle, hasExamples: false }),
67
- react_1.default.createElement(HookSteps_1.HookSteps, { hookSteps: afterHooks })))));
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 })))));
68
39
  };
69
- exports.ExampleDetail = ExampleDetail;
70
40
  //# sourceMappingURL=ExampleDetail.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"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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,4 +1,4 @@
1
1
  import React from 'react';
2
- import { ExamplesProps } from '../customise';
2
+ import { ExamplesProps } from '../customise/index.js';
3
3
  export declare const Examples: React.FunctionComponent<ExamplesProps>;
4
4
  //# sourceMappingURL=Examples.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Examples.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/Examples.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAoB,aAAa,EAAsB,MAAM,cAAc,CAAA;AA2BlF,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,iBAAiB,CAAC,aAAa,CAO3D,CAAA"}
1
+ {"version":3,"file":"Examples.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/Examples.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAoB,aAAa,EAAsB,MAAM,uBAAuB,CAAA;AA2B3F,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,iBAAiB,CAAC,aAAa,CAO3D,CAAA"}
@@ -1,33 +1,26 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.Examples = void 0;
7
- const react_1 = __importDefault(require("react"));
8
- const customise_1 = require("../customise");
9
- const Children_1 = require("./Children");
10
- const Description_1 = require("./Description");
11
- const Examples_module_scss_1 = __importDefault(require("./Examples.module.scss"));
12
- const ExamplesTable_1 = require("./ExamplesTable");
13
- const Keyword_1 = require("./Keyword");
14
- const Tags_1 = require("./Tags");
15
- const Title_1 = require("./Title");
1
+ import React from 'react';
2
+ import { useCustomRendering } from '../customise/index.js';
3
+ import { Children } from './Children.js';
4
+ import { Description } from './Description.js';
5
+ import defaultStyles from './Examples.module.scss';
6
+ import { ExamplesTable } from './ExamplesTable.js';
7
+ import { Keyword } from './Keyword.js';
8
+ import { Tags } from './Tags.js';
9
+ import { Title } from './Title.js';
16
10
  const DefaultRenderer = ({ examples, styles }) => {
17
- return (react_1.default.createElement("section", { className: styles.example },
18
- react_1.default.createElement(Tags_1.Tags, { tags: examples.tags }),
19
- react_1.default.createElement(Title_1.Title, { header: "h3", id: examples.id },
20
- react_1.default.createElement(Keyword_1.Keyword, null,
11
+ return (React.createElement("section", { className: styles.example },
12
+ React.createElement(Tags, { tags: examples.tags }),
13
+ React.createElement(Title, { header: "h3", id: examples.id },
14
+ React.createElement(Keyword, null,
21
15
  examples.keyword,
22
16
  ":"),
23
- react_1.default.createElement("span", null, examples.name)),
24
- react_1.default.createElement(Description_1.Description, { description: examples.description }),
25
- examples.tableHeader && (react_1.default.createElement(Children_1.Children, null,
26
- react_1.default.createElement(ExamplesTable_1.ExamplesTable, { tableHeader: examples.tableHeader, tableBody: examples.tableBody })))));
17
+ React.createElement("span", null, examples.name)),
18
+ React.createElement(Description, { description: examples.description }),
19
+ examples.tableHeader && (React.createElement(Children, null,
20
+ React.createElement(ExamplesTable, { tableHeader: examples.tableHeader, tableBody: examples.tableBody })))));
27
21
  };
28
- const Examples = (props) => {
29
- const ResolvedRenderer = (0, customise_1.useCustomRendering)('Examples', Examples_module_scss_1.default, DefaultRenderer);
30
- return react_1.default.createElement(ResolvedRenderer, Object.assign({}, props));
22
+ export const Examples = (props) => {
23
+ const ResolvedRenderer = useCustomRendering('Examples', defaultStyles, DefaultRenderer);
24
+ return React.createElement(ResolvedRenderer, { ...props });
31
25
  };
32
- exports.Examples = Examples;
33
26
  //# sourceMappingURL=Examples.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Examples.js","sourceRoot":"","sources":["../../../../src/components/gherkin/Examples.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAAyB;AAEzB,4CAAkF;AAClF,yCAAqC;AACrC,+CAA2C;AAC3C,kFAAkD;AAClD,mDAA+C;AAC/C,uCAAmC;AACnC,iCAA6B;AAC7B,mCAA+B;AAE/B,MAAM,eAAe,GAAoC,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE;IAChF,OAAO,CACL,2CAAS,SAAS,EAAE,MAAM,CAAC,OAAO;QAChC,8BAAC,WAAI,IAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,GAAI;QAC7B,8BAAC,aAAK,IAAC,MAAM,EAAC,IAAI,EAAC,EAAE,EAAE,QAAQ,CAAC,EAAE;YAChC,8BAAC,iBAAO;gBAAE,QAAQ,CAAC,OAAO;oBAAY;YACtC,4CAAO,QAAQ,CAAC,IAAI,CAAQ,CACtB;QACR,8BAAC,yBAAW,IAAC,WAAW,EAAE,QAAQ,CAAC,WAAW,GAAI;QACjD,QAAQ,CAAC,WAAW,IAAI,CACvB,8BAAC,mBAAQ;YACP,8BAAC,6BAAa,IAAC,WAAW,EAAE,QAAQ,CAAC,WAAW,EAAE,SAAS,EAAE,QAAQ,CAAC,SAAS,GAAI,CAC1E,CACZ,CACO,CACX,CAAA;AACH,CAAC,CAAA;AAEM,MAAM,QAAQ,GAA2C,CAAC,KAAK,EAAE,EAAE;IACxE,MAAM,gBAAgB,GAAG,IAAA,8BAAkB,EACzC,UAAU,EACV,8BAAa,EACb,eAAe,CAChB,CAAA;IACD,OAAO,8BAAC,gBAAgB,oBAAK,KAAK,EAAI,CAAA;AACxC,CAAC,CAAA;AAPY,QAAA,QAAQ,YAOpB"}
1
+ {"version":3,"file":"Examples.js","sourceRoot":"","sources":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,CAAA;IACD,OAAO,oBAAC,gBAAgB,OAAK,KAAK,GAAI,CAAA;AACxC,CAAC,CAAA"}
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ /// <reference types="react" resolution-mode="require"/>
2
2
  export declare const ExamplesContext: import("react").Context<{
3
3
  setSelectedExample: (pickleId?: string) => void;
4
4
  }>;
@@ -1,8 +1,5 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ExamplesContext = void 0;
4
- const react_1 = require("react");
5
- exports.ExamplesContext = (0, react_1.createContext)({
1
+ import { createContext } from 'react';
2
+ export const ExamplesContext = createContext({
6
3
  setSelectedExample: () => undefined,
7
4
  });
8
5
  //# sourceMappingURL=ExamplesContext.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ExamplesContext.js","sourceRoot":"","sources":["../../../../src/components/gherkin/ExamplesContext.ts"],"names":[],"mappings":";;;AAAA,iCAAqC;AAExB,QAAA,eAAe,GAAG,IAAA,qBAAa,EAEzC;IACD,kBAAkB,EAAE,GAAG,EAAE,CAAC,SAAS;CACpC,CAAC,CAAA"}
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 +1,4 @@
1
1
  import React from 'react';
2
- import { ExamplesTableProps } from '../customise';
2
+ import { ExamplesTableProps } from '../customise/index.js';
3
3
  export declare const ExamplesTable: React.FunctionComponent<ExamplesTableProps>;
4
4
  //# sourceMappingURL=ExamplesTable.d.ts.map
@@ -1 +1 @@
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,cAAc,CAAA;AA8BrB,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,iBAAiB,CAAC,kBAAkB,CAOrE,CAAA"}
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,66 +1,36 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
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.ExamplesTable = void 0;
30
- const messages_1 = require("@cucumber/messages");
31
- const react_1 = __importStar(require("react"));
32
- const CucumberQueryContext_1 = __importDefault(require("../../CucumberQueryContext"));
33
- const GherkinQueryContext_1 = __importDefault(require("../../GherkinQueryContext"));
34
- const UriContext_1 = __importDefault(require("../../UriContext"));
35
- const customise_1 = require("../customise");
36
- const ExamplesContext_1 = require("./ExamplesContext");
37
- const ExamplesTable_module_scss_1 = __importDefault(require("./ExamplesTable.module.scss"));
38
- const isNumber_1 = __importDefault(require("./isNumber"));
39
- const StatusIcon_1 = require("./StatusIcon");
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';
40
11
  const DefaultRenderer = ({ tableHeader, tableBody, styles, }) => {
41
- return (react_1.default.createElement("table", { className: styles.examplesTable },
42
- react_1.default.createElement("thead", null,
43
- react_1.default.createElement("tr", null,
44
- react_1.default.createElement("th", null, "\u00A0"),
45
- tableHeader.cells.map((cell, j) => (react_1.default.createElement("th", { key: j }, cell.value))))),
46
- react_1.default.createElement("tbody", null, tableBody.map((row, i) => (react_1.default.createElement(ExampleRow, { row: row, key: i }))))));
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 }))))));
47
18
  };
48
- const ExamplesTable = (props) => {
49
- const ResolvedRenderer = (0, customise_1.useCustomRendering)('ExamplesTable', ExamplesTable_module_scss_1.default, DefaultRenderer);
50
- return react_1.default.createElement(ResolvedRenderer, Object.assign({}, props));
19
+ export const ExamplesTable = (props) => {
20
+ const ResolvedRenderer = useCustomRendering('ExamplesTable', defaultStyles, DefaultRenderer);
21
+ return React.createElement(ResolvedRenderer, { ...props });
51
22
  };
52
- exports.ExamplesTable = ExamplesTable;
53
23
  const ExampleRow = ({ row }) => {
54
- const gherkinQuery = (0, react_1.useContext)(GherkinQueryContext_1.default);
55
- const cucumberQuery = (0, react_1.useContext)(CucumberQueryContext_1.default);
56
- const uri = (0, react_1.useContext)(UriContext_1.default);
57
- const { setSelectedExample } = (0, react_1.useContext)(ExamplesContext_1.ExamplesContext);
24
+ const gherkinQuery = useContext(GherkinQueryContext);
25
+ const cucumberQuery = useContext(CucumberQueryContext);
26
+ const uri = useContext(UriContext);
27
+ const { setSelectedExample } = useContext(ExamplesContext);
58
28
  const pickleIds = uri ? gherkinQuery.getPickleIds(uri, row.id) : [];
59
- const testStepResult = (0, messages_1.getWorstTestStepResult)(cucumberQuery.getPickleTestStepResults(pickleIds));
60
- return (react_1.default.createElement(react_1.default.Fragment, null,
61
- react_1.default.createElement("tr", { onClick: () => setSelectedExample(pickleIds[0]) },
62
- react_1.default.createElement("td", null,
63
- react_1.default.createElement(StatusIcon_1.StatusIcon, { status: testStepResult.status })),
64
- row.cells.map((cell, j) => (react_1.default.createElement("td", { key: j, style: { textAlign: (0, isNumber_1.default)(cell.value) ? 'right' : 'left' } }, cell.value))))));
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))))));
65
35
  };
66
36
  //# sourceMappingURL=ExamplesTable.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ExamplesTable.js","sourceRoot":"","sources":["../../../../src/components/gherkin/ExamplesTable.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,iDAA2D;AAC3D,+CAAyC;AAEzC,sFAA6D;AAC7D,oFAA2D;AAC3D,kEAAyC;AACzC,4CAKqB;AACrB,uDAAmD;AACnD,4FAAuD;AACvD,0DAAiC;AACjC,6CAAyC;AAEzC,MAAM,eAAe,GAA+D,CAAC,EACnF,WAAW,EACX,SAAS,EACT,MAAM,GACP,EAAE,EAAE;IACH,OAAO,CACL,yCAAO,SAAS,EAAE,MAAM,CAAC,aAAa;QACpC;YACE;gBACE,mDAAe;gBACd,WAAW,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAClC,sCAAI,GAAG,EAAE,CAAC,IAAG,IAAI,CAAC,KAAK,CAAM,CAC9B,CAAC,CACC,CACC;QACR,6CACG,SAAS,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC,CACzB,8BAAC,UAAU,IAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,GAAI,CACjC,CAAC,CACI,CACF,CACT,CAAA;AACH,CAAC,CAAA;AAEM,MAAM,aAAa,GAAgD,CAAC,KAAK,EAAE,EAAE;IAClF,MAAM,gBAAgB,GAAG,IAAA,8BAAkB,EACzC,eAAe,EACf,mCAAa,EACb,eAAe,CAChB,CAAA;IACD,OAAO,8BAAC,gBAAgB,oBAAK,KAAK,EAAI,CAAA;AACxC,CAAC,CAAA;AAPY,QAAA,aAAa,iBAOzB;AAED,MAAM,UAAU,GAEX,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE;IACf,MAAM,YAAY,GAAG,IAAA,kBAAU,EAAC,6BAAmB,CAAC,CAAA;IACpD,MAAM,aAAa,GAAG,IAAA,kBAAU,EAAC,8BAAoB,CAAC,CAAA;IACtD,MAAM,GAAG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D,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,4 +1,4 @@
1
1
  import React from 'react';
2
- import { FeatureProps } from '../customise';
2
+ import { FeatureProps } from '../customise/index.js';
3
3
  export declare const Feature: React.FunctionComponent<FeatureProps>;
4
4
  //# sourceMappingURL=Feature.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Feature.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/Feature.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,EAAoB,YAAY,EAAsB,MAAM,cAAc,CAAA;AAoCjF,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,iBAAiB,CAAC,YAAY,CAGzD,CAAA"}
1
+ {"version":3,"file":"Feature.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/Feature.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,EAAoB,YAAY,EAAsB,MAAM,uBAAuB,CAAA;AAoC1F,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,iBAAiB,CAAC,YAAY,CAGzD,CAAA"}
@@ -1,47 +1,40 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.Feature = void 0;
7
- const react_1 = __importDefault(require("react"));
8
- const HighLight_1 = require("../app/HighLight");
9
- const customise_1 = require("../customise");
10
- const Background_1 = require("./Background");
11
- const Children_1 = require("./Children");
12
- const Description_1 = require("./Description");
13
- const Keyword_1 = require("./Keyword");
14
- const Rule_1 = require("./Rule");
15
- const Scenario_1 = require("./Scenario");
16
- const Tags_1 = require("./Tags");
17
- 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 { Rule } from './Rule.js';
9
+ import { Scenario } from './Scenario.js';
10
+ import { Tags } from './Tags.js';
11
+ import { Title } from './Title.js';
18
12
  const DefaultRenderer = ({ feature }) => {
19
- return (react_1.default.createElement("section", null,
20
- react_1.default.createElement(Tags_1.Tags, { tags: feature.tags }),
21
- react_1.default.createElement(Title_1.Title, { header: "h1", id: feature.name },
22
- react_1.default.createElement(Keyword_1.Keyword, null,
13
+ return (React.createElement("section", null,
14
+ React.createElement(Tags, { tags: feature.tags }),
15
+ React.createElement(Title, { header: "h1", id: feature.name },
16
+ React.createElement(Keyword, null,
23
17
  feature.keyword,
24
18
  ":"),
25
- react_1.default.createElement(HighLight_1.HighLight, { text: feature.name })),
26
- react_1.default.createElement(Description_1.Description, { description: feature.description }),
27
- react_1.default.createElement(Children_1.Children, null, (feature.children || []).map((child, index) => {
19
+ React.createElement(HighLight, { text: feature.name })),
20
+ React.createElement(Description, { description: feature.description }),
21
+ React.createElement(Children, null, (feature.children || []).map((child, index) => {
28
22
  if (child.background) {
29
- return react_1.default.createElement(Background_1.Background, { key: index, background: child.background });
23
+ return React.createElement(Background, { key: index, background: child.background });
30
24
  }
31
25
  else if (child.scenario) {
32
- return react_1.default.createElement(Scenario_1.Scenario, { key: index, scenario: child.scenario });
26
+ return React.createElement(Scenario, { key: index, scenario: child.scenario });
33
27
  }
34
28
  else if (child.rule) {
35
- return react_1.default.createElement(Rule_1.Rule, { key: index, rule: child.rule });
29
+ return React.createElement(Rule, { key: index, rule: child.rule });
36
30
  }
37
31
  else {
38
32
  throw new Error('Expected background, scenario or rule');
39
33
  }
40
34
  }))));
41
35
  };
42
- const Feature = (props) => {
43
- const ResolvedRenderer = (0, customise_1.useCustomRendering)('Feature', {}, DefaultRenderer);
44
- return react_1.default.createElement(ResolvedRenderer, Object.assign({}, props));
36
+ export const Feature = (props) => {
37
+ const ResolvedRenderer = useCustomRendering('Feature', {}, DefaultRenderer);
38
+ return React.createElement(ResolvedRenderer, { ...props });
45
39
  };
46
- exports.Feature = Feature;
47
40
  //# sourceMappingURL=Feature.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Feature.js","sourceRoot":"","sources":["../../../../src/components/gherkin/Feature.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAAyB;AAEzB,gDAA4C;AAC5C,4CAAiF;AACjF,6CAAyC;AACzC,yCAAqC;AACrC,+CAA2C;AAC3C,uCAAmC;AACnC,iCAA6B;AAC7B,yCAAqC;AACrC,iCAA6B;AAC7B,mCAA+B;AAE/B,MAAM,eAAe,GAAmC,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE;IACtE,OAAO,CACL;QACE,8BAAC,WAAI,IAAC,IAAI,EAAE,OAAO,CAAC,IAAI,GAAI;QAC5B,8BAAC,aAAK,IAAC,MAAM,EAAC,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ACzB,OAAO,oBAAC,QAAQ,IAAC,GAAG,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,CAAC,QAAQ,GAAI,CAAA;aAC1D;iBAAM,IAAI,KAAK,CAAC,IAAI,EAAE;gBACrB,OAAO,oBAAC,IAAI,IAAC,GAAG,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,GAAI,CAAA;aAC9C;iBAAM;gBACL,MAAM,IAAI,KAAK,CAAC,uCAAuC,CAAC,CAAA;aACzD;QACH,CAAC,CAAC,CACO,CACH,CACX,CAAA;AACH,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,OAAO,GAA0C,CAAC,KAAK,EAAE,EAAE;IACtE,MAAM,gBAAgB,GAAG,kBAAkB,CAAe,SAAS,EAAE,EAAE,EAAE,eAAe,CAAC,CAAA;IACzF,OAAO,oBAAC,gBAAgB,OAAK,KAAK,GAAI,CAAA;AACxC,CAAC,CAAA"}
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- import { GherkinDocumentProps } from '../customise';
2
+ import { GherkinDocumentProps } from '../customise/index.js';
3
3
  export declare const GherkinDocument: React.FunctionComponent<GherkinDocumentProps>;
4
4
  //# sourceMappingURL=GherkinDocument.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"GherkinDocument.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/GherkinDocument.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,oBAAoB,EAAsB,MAAM,cAAc,CAAA;AAOvE,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,iBAAiB,CAAC,oBAAoB,CAOzE,CAAA"}
1
+ {"version":3,"file":"GherkinDocument.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/GherkinDocument.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,oBAAoB,EAAsB,MAAM,uBAAuB,CAAA;AAOhF,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,iBAAiB,CAAC,oBAAoB,CAOzE,CAAA"}
@@ -1,18 +1,11 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.GherkinDocument = void 0;
7
- const react_1 = __importDefault(require("react"));
8
- const customise_1 = require("../customise");
9
- const Feature_1 = require("./Feature");
1
+ import React from 'react';
2
+ import { useCustomRendering } from '../customise/index.js';
3
+ import { Feature } from './Feature.js';
10
4
  const DefaultRenderer = ({ gherkinDocument }) => {
11
- return gherkinDocument.feature ? react_1.default.createElement(Feature_1.Feature, { feature: gherkinDocument.feature }) : null;
5
+ return gherkinDocument.feature ? React.createElement(Feature, { feature: gherkinDocument.feature }) : null;
12
6
  };
13
- const GherkinDocument = (props) => {
14
- const ResolvedRenderer = (0, customise_1.useCustomRendering)('GherkinDocument', {}, DefaultRenderer);
15
- return react_1.default.createElement(ResolvedRenderer, Object.assign({}, props));
7
+ export const GherkinDocument = (props) => {
8
+ const ResolvedRenderer = useCustomRendering('GherkinDocument', {}, DefaultRenderer);
9
+ return React.createElement(ResolvedRenderer, { ...props });
16
10
  };
17
- exports.GherkinDocument = GherkinDocument;
18
11
  //# sourceMappingURL=GherkinDocument.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"GherkinDocument.js","sourceRoot":"","sources":["../../../../src/components/gherkin/GherkinDocument.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAAyB;AAEzB,4CAAuE;AACvE,uCAAmC;AAEnC,MAAM,eAAe,GAAkD,CAAC,EAAE,eAAe,EAAE,EAAE,EAAE;IAC7F,OAAO,eAAe,CAAC,OAAO,CAAC,CAAC,CAAC,8BAAC,iBAAO,IAAC,OAAO,EAAE,eAAe,CAAC,OAAO,GAAI,CAAC,CAAC,CAAC,IAAI,CAAA;AACvF,CAAC,CAAA;AAEM,MAAM,eAAe,GAAkD,CAAC,KAAK,EAAE,EAAE;IACtF,MAAM,gBAAgB,GAAG,IAAA,8BAAkB,EACzC,iBAAiB,EACjB,EAAE,EACF,eAAe,CAChB,CAAA;IACD,OAAO,8BAAC,gBAAgB,oBAAK,KAAK,EAAI,CAAA;AACxC,CAAC,CAAA;AAPY,QAAA,eAAe,mBAO3B"}
1
+ {"version":3,"file":"GherkinDocument.js","sourceRoot":"","sources":["../../../../src/components/gherkin/GherkinDocument.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAwB,kBAAkB,EAAE,MAAM,uBAAuB,CAAA;AAChF,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAEtC,MAAM,eAAe,GAAkD,CAAC,EAAE,eAAe,EAAE,EAAE,EAAE;IAC7F,OAAO,eAAe,CAAC,OAAO,CAAC,CAAC,CAAC,oBAAC,OAAO,IAAC,OAAO,EAAE,eAAe,CAAC,OAAO,GAAI,CAAC,CAAC,CAAC,IAAI,CAAA;AACvF,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,eAAe,GAAkD,CAAC,KAAK,EAAE,EAAE;IACtF,MAAM,gBAAgB,GAAG,kBAAkB,CACzC,iBAAiB,EACjB,EAAE,EACF,eAAe,CAChB,CAAA;IACD,OAAO,oBAAC,gBAAgB,OAAK,KAAK,GAAI,CAAA;AACxC,CAAC,CAAA"}
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- import { GherkinStepProps } from '../customise';
2
+ import { GherkinStepProps } from '../customise/index.js';
3
3
  export declare const GherkinStep: React.FunctionComponent<GherkinStepProps>;
4
4
  //# sourceMappingURL=GherkinStep.d.ts.map
@@ -1 +1 @@
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,cAAc,CAAA;AA+GrF,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,iBAAiB,CAAC,gBAAgB,CAGjE,CAAA"}
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"}