@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,43 +1,36 @@
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.Rule = 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 Scenario_1 = require("./Scenario");
15
- const Tags_1 = require("./Tags");
16
- const Title_1 = require("./Title");
1
+ import React from 'react';
2
+ import { HighLight } from '../app/HighLight.js';
3
+ import { useCustomRendering } from '../customise/index.js';
4
+ import { Background } from './Background.js';
5
+ import { Children } from './Children.js';
6
+ import { Description } from './Description.js';
7
+ import { Keyword } from './Keyword.js';
8
+ import { Scenario } from './Scenario.js';
9
+ import { Tags } from './Tags.js';
10
+ import { Title } from './Title.js';
17
11
  const DefaultRenderer = ({ rule }) => {
18
- return (react_1.default.createElement("section", null,
19
- react_1.default.createElement(Tags_1.Tags, { tags: rule.tags }),
20
- react_1.default.createElement(Title_1.Title, { header: "h2", id: rule.id },
21
- react_1.default.createElement(Keyword_1.Keyword, null,
12
+ return (React.createElement("section", null,
13
+ React.createElement(Tags, { tags: rule.tags }),
14
+ React.createElement(Title, { header: "h2", id: rule.id },
15
+ React.createElement(Keyword, null,
22
16
  rule.keyword,
23
17
  ":"),
24
- react_1.default.createElement(HighLight_1.HighLight, { text: rule.name })),
25
- react_1.default.createElement(Description_1.Description, { description: rule.description }),
26
- react_1.default.createElement(Children_1.Children, null, (rule.children || []).map((child, index) => {
18
+ React.createElement(HighLight, { text: rule.name })),
19
+ React.createElement(Description, { description: rule.description }),
20
+ React.createElement(Children, null, (rule.children || []).map((child, index) => {
27
21
  if (child.background) {
28
- return react_1.default.createElement(Background_1.Background, { key: index, background: child.background });
22
+ return React.createElement(Background, { key: index, background: child.background });
29
23
  }
30
24
  else if (child.scenario) {
31
- return react_1.default.createElement(Scenario_1.Scenario, { key: index, scenario: child.scenario });
25
+ return React.createElement(Scenario, { key: index, scenario: child.scenario });
32
26
  }
33
27
  else {
34
28
  throw new Error('Expected background or scenario');
35
29
  }
36
30
  }))));
37
31
  };
38
- const Rule = (props) => {
39
- const ResolvedRenderer = (0, customise_1.useCustomRendering)('Rule', {}, DefaultRenderer);
40
- return react_1.default.createElement(ResolvedRenderer, Object.assign({}, props));
32
+ export const Rule = (props) => {
33
+ const ResolvedRenderer = useCustomRendering('Rule', {}, DefaultRenderer);
34
+ return React.createElement(ResolvedRenderer, { ...props });
41
35
  };
42
- exports.Rule = Rule;
43
36
  //# sourceMappingURL=Rule.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Rule.js","sourceRoot":"","sources":["../../../../src/components/gherkin/Rule.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAAyB;AAEzB,gDAA4C;AAC5C,4CAA8E;AAC9E,6CAAyC;AACzC,yCAAqC;AACrC,+CAA2C;AAC3C,uCAAmC;AACnC,yCAAqC;AACrC,iCAA6B;AAC7B,mCAA+B;AAE/B,MAAM,eAAe,GAAgC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE;IAChE,OAAO,CACL;QACE,8BAAC,WAAI,IAAC,IAAI,EAAE,IAAI,CAAC,IAAI,GAAI;QACzB,8BAAC,aAAK,IAAC,MAAM,EAA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ACO,CACH,CACX,CAAA;AACH,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,IAAI,GAAuC,CAAC,KAAK,EAAE,EAAE;IAChE,MAAM,gBAAgB,GAAG,kBAAkB,CAAY,MAAM,EAAE,EAAE,EAAE,eAAe,CAAC,CAAA;IACnF,OAAO,oBAAC,gBAAgB,OAAK,KAAK,GAAI,CAAA;AACxC,CAAC,CAAA"}
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- import { ScenarioProps } from '../customise';
2
+ import { ScenarioProps } from '../customise/index.js';
3
3
  export declare const Scenario: React.FunctionComponent<ScenarioProps>;
4
4
  //# sourceMappingURL=Scenario.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Scenario.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/Scenario.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAA;AAMvC,OAAO,EAAoB,aAAa,EAAsB,MAAM,cAAc,CAAA;AAwDlF,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,iBAAiB,CAAC,aAAa,CAG3D,CAAA"}
1
+ {"version":3,"file":"Scenario.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/Scenario.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAA;AAMvC,OAAO,EAAoB,aAAa,EAAsB,MAAM,uBAAuB,CAAA;AAwD3F,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,iBAAiB,CAAC,aAAa,CAG3D,CAAA"}
@@ -1,78 +1,48 @@
1
- "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.Scenario = void 0;
30
- const react_1 = __importStar(require("react"));
31
- const CucumberQueryContext_1 = __importDefault(require("../../CucumberQueryContext"));
32
- const GherkinQueryContext_1 = __importDefault(require("../../GherkinQueryContext"));
33
- const UriContext_1 = __importDefault(require("../../UriContext"));
34
- const HighLight_1 = require("../app/HighLight");
35
- const customise_1 = require("../customise");
36
- const Description_1 = require("./Description");
37
- const ExampleDetail_1 = require("./ExampleDetail");
38
- const Examples_1 = require("./Examples");
39
- const ExamplesContext_1 = require("./ExamplesContext");
40
- const GherkinSteps_1 = require("./GherkinSteps");
41
- const HookSteps_1 = require("./HookSteps");
42
- const Keyword_1 = require("./Keyword");
43
- const StepsList_1 = require("./StepsList");
44
- const Tags_1 = require("./Tags");
45
- const Title_1 = require("./Title");
1
+ import React, { useState } from 'react';
2
+ import CucumberQueryContext from '../../CucumberQueryContext.js';
3
+ import GherkinQueryContext from '../../GherkinQueryContext.js';
4
+ import UriContext from '../../UriContext.js';
5
+ import { HighLight } from '../app/HighLight.js';
6
+ import { useCustomRendering } from '../customise/index.js';
7
+ import { Description } from './Description.js';
8
+ import { ExampleDetail } from './ExampleDetail.js';
9
+ import { Examples } from './Examples.js';
10
+ import { ExamplesContext } from './ExamplesContext.js';
11
+ import { GherkinSteps } from './GherkinSteps.js';
12
+ import { HookSteps } from './HookSteps.js';
13
+ import { Keyword } from './Keyword.js';
14
+ import { StepsList } from './StepsList.js';
15
+ import { Tags } from './Tags.js';
16
+ import { Title } from './Title.js';
46
17
  const DefaultRenderer = ({ scenario }) => {
47
18
  const examplesList = scenario.examples || [];
48
19
  const hasExamples = examplesList.length > 0;
49
- const cucumberQuery = react_1.default.useContext(CucumberQueryContext_1.default);
50
- const gherkinQuery = react_1.default.useContext(GherkinQueryContext_1.default);
51
- const uri = react_1.default.useContext(UriContext_1.default);
52
- const [selectedExample, setSelectedExample] = (0, react_1.useState)();
20
+ const cucumberQuery = React.useContext(CucumberQueryContext);
21
+ const gherkinQuery = React.useContext(GherkinQueryContext);
22
+ const uri = React.useContext(UriContext);
23
+ const [selectedExample, setSelectedExample] = useState();
53
24
  const pickleIds = uri ? gherkinQuery.getPickleIds(uri, scenario.id) : [];
54
25
  const beforeHooks = cucumberQuery.getBeforeHookSteps(pickleIds[0]);
55
26
  const afterHooks = cucumberQuery.getAfterHookSteps(pickleIds[0]);
56
27
  if (selectedExample) {
57
- return (react_1.default.createElement(ExampleDetail_1.ExampleDetail, { scenario: scenario, pickleId: selectedExample, onBack: () => setSelectedExample(undefined) }));
28
+ return (React.createElement(ExampleDetail, { scenario: scenario, pickleId: selectedExample, onBack: () => setSelectedExample(undefined) }));
58
29
  }
59
- return (react_1.default.createElement("section", null,
60
- react_1.default.createElement(Tags_1.Tags, { tags: scenario.tags }),
61
- react_1.default.createElement(Title_1.Title, { header: "h2", id: scenario.id },
62
- react_1.default.createElement(Keyword_1.Keyword, null,
30
+ return (React.createElement("section", null,
31
+ React.createElement(Tags, { tags: scenario.tags }),
32
+ React.createElement(Title, { header: "h2", id: scenario.id },
33
+ React.createElement(Keyword, null,
63
34
  scenario.keyword,
64
35
  ":"),
65
- react_1.default.createElement(HighLight_1.HighLight, { text: scenario.name })),
66
- react_1.default.createElement(Description_1.Description, { description: scenario.description }),
67
- react_1.default.createElement(StepsList_1.StepsList, null,
68
- react_1.default.createElement(HookSteps_1.HookSteps, { hookSteps: beforeHooks }),
69
- react_1.default.createElement(GherkinSteps_1.GherkinSteps, { steps: scenario.steps || [], hasExamples: hasExamples }),
70
- react_1.default.createElement(HookSteps_1.HookSteps, { hookSteps: afterHooks })),
71
- hasExamples && (react_1.default.createElement(ExamplesContext_1.ExamplesContext.Provider, { value: { setSelectedExample } }, examplesList.map((examples, index) => (react_1.default.createElement(Examples_1.Examples, { key: index, examples: examples })))))));
36
+ React.createElement(HighLight, { text: scenario.name })),
37
+ React.createElement(Description, { description: scenario.description }),
38
+ React.createElement(StepsList, null,
39
+ React.createElement(HookSteps, { hookSteps: beforeHooks }),
40
+ React.createElement(GherkinSteps, { steps: scenario.steps || [], hasExamples: hasExamples }),
41
+ React.createElement(HookSteps, { hookSteps: afterHooks })),
42
+ hasExamples && (React.createElement(ExamplesContext.Provider, { value: { setSelectedExample } }, examplesList.map((examples, index) => (React.createElement(Examples, { key: index, examples: examples })))))));
72
43
  };
73
- const Scenario = (props) => {
74
- const ResolvedRenderer = (0, customise_1.useCustomRendering)('Scenario', {}, DefaultRenderer);
75
- return react_1.default.createElement(ResolvedRenderer, Object.assign({}, props));
44
+ export const Scenario = (props) => {
45
+ const ResolvedRenderer = useCustomRendering('Scenario', {}, DefaultRenderer);
46
+ return React.createElement(ResolvedRenderer, { ...props });
76
47
  };
77
- exports.Scenario = Scenario;
78
48
  //# sourceMappingURL=Scenario.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Scenario.js","sourceRoot":"","sources":["../../../../src/components/gherkin/Scenario.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAuC;AAEvC,sFAA6D;AAC7D,oFAA2D;AAC3D,kEAAyC;AACzC,gDAA4C;AAC5C,4CAAkF;AAClF,+CAA2C;AAC3C,mDAA+C;AAC/C,yCAAqC;AACrC,uDAAmD;AACnD,iDAA6C;AAC7C,2CAA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MAAM,gBAAgB,GAAG,kBAAkB,CAAgB,UAAU,EAAE,EAAE,EAAE,eAAe,CAAC,CAAA;IAC3F,OAAO,oBAAC,gBAAgB,OAAK,KAAK,GAAI,CAAA;AACxC,CAAC,CAAA"}
@@ -1,4 +1,4 @@
1
1
  import { FunctionComponent } from 'react';
2
- import { StatusIconProps } from '../customise';
2
+ import { StatusIconProps } from '../customise/index.js';
3
3
  export declare const StatusIcon: FunctionComponent<StatusIconProps>;
4
4
  //# sourceMappingURL=StatusIcon.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"StatusIcon.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/StatusIcon.tsx"],"names":[],"mappings":"AAWA,OAAc,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAEhD,OAAO,EAGL,eAAe,EAEhB,MAAM,cAAc,CAAA;AAiBrB,eAAO,MAAM,UAAU,EAAE,iBAAiB,CAAC,eAAe,CAOzD,CAAA"}
1
+ {"version":3,"file":"StatusIcon.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/StatusIcon.tsx"],"names":[],"mappings":"AAWA,OAAc,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAEhD,OAAO,EAGL,eAAe,EAEhB,MAAM,uBAAuB,CAAA;AAiB9B,eAAO,MAAM,UAAU,EAAE,iBAAiB,CAAC,eAAe,CAOzD,CAAA"}
@@ -1,31 +1,24 @@
1
- "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.StatusIcon = void 0;
7
- const free_solid_svg_icons_1 = require("@fortawesome/free-solid-svg-icons");
8
- const react_fontawesome_1 = require("@fortawesome/react-fontawesome");
9
- const react_1 = __importDefault(require("react"));
10
- const customise_1 = require("../customise");
11
- const StatusIcon_module_scss_1 = __importDefault(require("./StatusIcon.module.scss"));
1
+ import { faCheckCircle, faInfoCircle, faPauseCircle, faQuestionCircle, faStopCircle, faTimesCircle, } from '@fortawesome/free-solid-svg-icons';
2
+ import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
3
+ import React from 'react';
4
+ import { useCustomRendering, } from '../customise/index.js';
5
+ import defaultStyles from './StatusIcon.module.scss';
12
6
  const DefaultRenderer = ({ status, styles, }) => {
13
- return (react_1.default.createElement(react_fontawesome_1.FontAwesomeIcon, { icon: statusIcon(status), size: "1x", className: styles.icon, "data-status": status }));
7
+ return (React.createElement(FontAwesomeIcon, { icon: statusIcon(status), size: "1x", className: styles.icon, "data-status": status }));
14
8
  };
15
- const StatusIcon = (props) => {
16
- const Customised = (0, customise_1.useCustomRendering)('StatusIcon', StatusIcon_module_scss_1.default, DefaultRenderer);
17
- return react_1.default.createElement(Customised, Object.assign({}, props));
9
+ export const StatusIcon = (props) => {
10
+ const Customised = useCustomRendering('StatusIcon', defaultStyles, DefaultRenderer);
11
+ return React.createElement(Customised, { ...props });
18
12
  };
19
- exports.StatusIcon = StatusIcon;
20
13
  const statusIcon = (status) => {
21
14
  return {
22
- ['PASSED']: free_solid_svg_icons_1.faCheckCircle,
23
- ['SKIPPED']: free_solid_svg_icons_1.faStopCircle,
24
- ['PENDING']: free_solid_svg_icons_1.faPauseCircle,
25
- ['UNDEFINED']: free_solid_svg_icons_1.faQuestionCircle,
26
- ['AMBIGUOUS']: free_solid_svg_icons_1.faInfoCircle,
27
- ['FAILED']: free_solid_svg_icons_1.faTimesCircle,
28
- ['UNKNOWN']: free_solid_svg_icons_1.faQuestionCircle,
15
+ ['PASSED']: faCheckCircle,
16
+ ['SKIPPED']: faStopCircle,
17
+ ['PENDING']: faPauseCircle,
18
+ ['UNDEFINED']: faQuestionCircle,
19
+ ['AMBIGUOUS']: faInfoCircle,
20
+ ['FAILED']: faTimesCircle,
21
+ ['UNKNOWN']: faQuestionCircle,
29
22
  }[status];
30
23
  };
31
24
  //# sourceMappingURL=StatusIcon.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"StatusIcon.js","sourceRoot":"","sources":["../../../../src/components/gherkin/StatusIcon.tsx"],"names":[],"mappings":";;;;;;AACA,4EAQ0C;AAC1C,sEAAgE;AAChE,kDAAgD;AAEhD,4CAKqB;AACrB,sFAAoD;AAEpD,MAAM,eAAe,GAAyD,CAAC,EAC7E,MAAM,EACN,MAAM,GACP,EAAE,EAAE;IACH,OAAO,CACL,8BAAC,mCAAe,IACd,IAAI,EAAE,UAAU,CAAC,MAAM,CAAC,EACxB,IAAI,EAAC,IAAI,EACT,SAAS,EAAE,MAAM,CAAC,IAAI,iBACT,MAAM,GACnB,CACH,CAAA;AACH,CAAC,CAAA;AAEM,MAAM,UAAU,GAAuC,CAAC,KAAK,EAAE,EAAE;IACtE,MAAM,UAAU,GAAG,IAAA,8BAAkB,EACnC,YAAY,EACZ,gCAAa,EACb,eAAe,CAChB,CAAA;IACD,OAAO,8BAAC,UAAU,oBAAK,KAAK,EAAI,CAAA;AAClC,CAAC,CAAA;AAPY,QAAA,UAAU,cAOtB;AAED,MAAM,UAAU,GAAG,CAAC,MAAqC,EAAkB,EAAE;IAC3E,OAAO;QACL,CAAC,QAAQ,CAAC,EAAE,oCAAa;QACzB,CAAC,SAAS,CAAC,EAAE,mCAAY;QACzB,CAAC,SAAS,CAAC,EAAE,oCAAa;QAC1B,CAAC,WAAW,CAAC,EAAE,uCAAgB;QAC/B,CAAC,WAAW,CAAC,EAAE,mCAAY;QAC3B,CAAC,QAAQ,CAAC,EAAE,oCAAa;QACzB,CAAC,SAAS,CAAC,EAAE,uCAAgB;KAC9B,CAAC,MAAM,CAAC,CAAA;AACX,CAAC,CAAA"}
1
+ {"version":3,"file":"StatusIcon.js","sourceRoot":"","sources":["../../../../src/components/gherkin/StatusIcon.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,aAAa,EACb,YAAY,EACZ,aAAa,EACb,gBAAgB,EAChB,YAAY,EACZ,aAAa,GAEd,MAAM,mCAAmC,CAAA;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAA;AAChE,OAAO,KAA4B,MAAM,OAAO,CAAA;AAEhD,OAAO,EAIL,kBAAkB,GACnB,MAAM,uBAAuB,CAAA;AAC9B,OAAO,aAAa,MAAM,0BAA0B,CAAA;AAEpD,MAAM,eAAe,GAAyD,CAAC,EAC7E,MAAM,EACN,MAAM,GACP,EAAE,EAAE;IACH,OAAO,CACL,oBAAC,eAAe,IACd,IAAI,EAAE,UAAU,CAAC,MAAM,CAAC,EACxB,IAAI,EAAC,IAAI,EACT,SAAS,EAAE,MAAM,CAAC,IAAI,iBACT,MAAM,GACnB,CACH,CAAA;AACH,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,UAAU,GAAuC,CAAC,KAAK,EAAE,EAAE;IACtE,MAAM,UAAU,GAAG,kBAAkB,CACnC,YAAY,EACZ,aAAa,EACb,eAAe,CAChB,CAAA;IACD,OAAO,oBAAC,UAAU,OAAK,KAAK,GAAI,CAAA;AAClC,CAAC,CAAA;AAED,MAAM,UAAU,GAAG,CAAC,MAAqC,EAAkB,EAAE;IAC3E,OAAO;QACL,CAAC,QAAQ,CAAC,EAAE,aAAa;QACzB,CAAC,SAAS,CAAC,EAAE,YAAY;QACzB,CAAC,SAAS,CAAC,EAAE,aAAa;QAC1B,CAAC,WAAW,CAAC,EAAE,gBAAgB;QAC/B,CAAC,WAAW,CAAC,EAAE,YAAY;QAC3B,CAAC,QAAQ,CAAC,EAAE,aAAa;QACzB,CAAC,SAAS,CAAC,EAAE,gBAAgB;KAC9B,CAAC,MAAM,CAAC,CAAA;AACX,CAAC,CAAA"}
@@ -1,16 +1,9 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
1
+ import React from 'react';
2
+ import { StatusIcon } from './StatusIcon.js';
3
+ import styles from './StepItem.module.scss';
4
+ export const StepItem = ({ status, children }) => {
5
+ return (React.createElement("div", { className: styles.container },
6
+ React.createElement("span", { className: styles.status }, status && React.createElement(StatusIcon, { status: status })),
7
+ React.createElement("div", { className: styles.content }, children)));
4
8
  };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.StepItem = void 0;
7
- const react_1 = __importDefault(require("react"));
8
- const StatusIcon_1 = require("./StatusIcon");
9
- const StepItem_module_scss_1 = __importDefault(require("./StepItem.module.scss"));
10
- const StepItem = ({ status, children }) => {
11
- return (react_1.default.createElement("div", { className: StepItem_module_scss_1.default.container },
12
- react_1.default.createElement("span", { className: StepItem_module_scss_1.default.status }, status && react_1.default.createElement(StatusIcon_1.StatusIcon, { status: status })),
13
- react_1.default.createElement("div", { className: StepItem_module_scss_1.default.content }, children)));
14
- };
15
- exports.StepItem = StepItem;
16
9
  //# sourceMappingURL=StepItem.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"StepItem.js","sourceRoot":"","sources":["../../../../src/components/gherkin/StepItem.tsx"],"names":[],"mappings":";;;;;;AACA,kDAAmE;AAEnE,6CAAyC;AACzC,kFAA2C;AAEpC,MAAM,QAAQ,GAIjB,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC3B,OAAO,CACL,uCAAK,SAAS,EAAE,8BAAM,CAAC,SAAS;QAC9B,wCAAM,SAAS,EAAE,8BAAM,CAAC,MAAM,IAAG,MAAM,IAAI,8BAAC,uBAAU,IAAC,MAAM,EAAE,MAAM,GAAI,CAAQ;QACjF,uCAAK,SAAS,EAAE,8BAAM,CAAC,OAAO,IAAG,QAAQ,CAAO,CAC5C,CACP,CAAA;AACH,CAAC,CAAA;AAXY,QAAA,QAAQ,YAWpB"}
1
+ {"version":3,"file":"StepItem.js","sourceRoot":"","sources":["../../../../src/components/gherkin/StepItem.tsx"],"names":[],"mappings":"AACA,OAAO,KAA+C,MAAM,OAAO,CAAA;AAEnE,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,MAAM,MAAM,wBAAwB,CAAA;AAE3C,MAAM,CAAC,MAAM,QAAQ,GAIjB,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC3B,OAAO,CACL,6BAAK,SAAS,EAAE,MAAM,CAAC,SAAS;QAC9B,8BAAM,SAAS,EAAE,MAAM,CAAC,MAAM,IAAG,MAAM,IAAI,oBAAC,UAAU,IAAC,MAAM,EAAE,MAAM,GAAI,CAAQ;QACjF,6BAAK,SAAS,EAAE,MAAM,CAAC,OAAO,IAAG,QAAQ,CAAO,CAC5C,CACP,CAAA;AACH,CAAC,CAAA"}
@@ -1,13 +1,6 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
1
+ import React from 'react';
2
+ import styles from './StepsList.module.scss';
3
+ export const StepsList = ({ children }) => {
4
+ return (React.createElement("ol", { "aria-label": "Steps", className: styles.steps }, children));
4
5
  };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.StepsList = void 0;
7
- const react_1 = __importDefault(require("react"));
8
- const StepsList_module_scss_1 = __importDefault(require("./StepsList.module.scss"));
9
- const StepsList = ({ children }) => {
10
- return (react_1.default.createElement("ol", { "aria-label": "Steps", className: StepsList_module_scss_1.default.steps }, children));
11
- };
12
- exports.StepsList = StepsList;
13
6
  //# sourceMappingURL=StepsList.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"StepsList.js","sourceRoot":"","sources":["../../../../src/components/gherkin/StepsList.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA2D;AAE3D,oFAA4C;AAErC,MAAM,SAAS,GAA+C,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE;IACpF,OAAO,CACL,oDAAe,OAAO,EAAC,SAAS,EAAE,+BAAM,CAAC,KAAK,IAC3C,QAAQ,CACN,CACN,CAAA;AACH,CAAC,CAAA;AANY,QAAA,SAAS,aAMrB"}
1
+ {"version":3,"file":"StepsList.js","sourceRoot":"","sources":["../../../../src/components/gherkin/StepsList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAA;AAE3D,OAAO,MAAM,MAAM,yBAAyB,CAAA;AAE5C,MAAM,CAAC,MAAM,SAAS,GAA+C,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE;IACpF,OAAO,CACL,0CAAe,OAAO,EAAC,SAAS,EAAE,MAAM,CAAC,KAAK,IAC3C,QAAQ,CACN,CACN,CAAA;AACH,CAAC,CAAA"}
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- import { TagsProps } from '../customise';
2
+ import { TagsProps } from '../customise/index.js';
3
3
  export declare const Tags: React.FunctionComponent<TagsProps>;
4
4
  //# sourceMappingURL=Tags.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Tags.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/Tags.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,EAAiC,SAAS,EAAsB,MAAM,cAAc,CAAA;AAkB3F,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,iBAAiB,CAAC,SAAS,CAOnD,CAAA"}
1
+ {"version":3,"file":"Tags.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/Tags.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,EAAiC,SAAS,EAAsB,MAAM,uBAAuB,CAAA;AAkBpG,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,iBAAiB,CAAC,SAAS,CAOnD,CAAA"}
@@ -1,23 +1,16 @@
1
- "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.Tags = void 0;
7
- const react_1 = __importDefault(require("react"));
8
- const HighLight_1 = require("../app/HighLight");
9
- const customise_1 = require("../customise");
10
- const Tags_module_scss_1 = __importDefault(require("./Tags.module.scss"));
1
+ import React from 'react';
2
+ import { HighLight } from '../app/HighLight.js';
3
+ import { useCustomRendering } from '../customise/index.js';
4
+ import defaultStyles from './Tags.module.scss';
11
5
  const DefaultRenderer = ({ tags, styles }) => {
12
6
  if (!tags.length) {
13
7
  return null;
14
8
  }
15
- return (react_1.default.createElement("ul", { "aria-label": "Tags", className: styles.tags }, tags.map((tag, index) => (react_1.default.createElement("li", { className: styles.tag, key: index },
16
- react_1.default.createElement(HighLight_1.HighLight, { text: tag.name }))))));
9
+ return (React.createElement("ul", { "aria-label": "Tags", className: styles.tags }, tags.map((tag, index) => (React.createElement("li", { className: styles.tag, key: index },
10
+ React.createElement(HighLight, { text: tag.name }))))));
17
11
  };
18
- const Tags = (props) => {
19
- const ResolvedRenderer = (0, customise_1.useCustomRendering)('Tags', Tags_module_scss_1.default, DefaultRenderer);
20
- return react_1.default.createElement(ResolvedRenderer, Object.assign({}, props));
12
+ export const Tags = (props) => {
13
+ const ResolvedRenderer = useCustomRendering('Tags', defaultStyles, DefaultRenderer);
14
+ return React.createElement(ResolvedRenderer, { ...props });
21
15
  };
22
- exports.Tags = Tags;
23
16
  //# sourceMappingURL=Tags.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Tags.js","sourceRoot":"","sources":["../../../../src/components/gherkin/Tags.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAAyB;AAEzB,gDAA4C;AAC5C,4CAA2F;AAC3F,0EAA8C;AAE9C,MAAM,eAAe,GAA6C,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE;IACrF,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE;QAChB,OAAO,IAAI,CAAA;KACZ;IACD,OAAO,CACL,oDAAe,MAAM,EAAC,SAAS,EAAE,MAAM,CAAC,IAAI,IACzC,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE,CAAC,CACxB,sCAAI,SAAS,EAAE,MAAM,CAAC,GAAG,EAAE,GAAG,EAAE,KAAK;QACnC,8BAA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K,KAAK,GAAI,CAAA;AACxC,CAAC,CAAA"}
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- import { TitleProps } from '../customise';
2
+ import { TitleProps } from '../customise/index.js';
3
3
  export declare const Title: React.FunctionComponent<TitleProps>;
4
4
  //# sourceMappingURL=Title.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Title.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/Title.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAkC,UAAU,EAAsB,MAAM,cAAc,CAAA;AAmB7F,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,iBAAiB,CAAC,UAAU,CAOrD,CAAA"}
1
+ {"version":3,"file":"Title.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/Title.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAGL,UAAU,EAEX,MAAM,uBAAuB,CAAA;AAmB9B,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,iBAAiB,CAAC,UAAU,CAOrD,CAAA"}
@@ -1,20 +1,13 @@
1
- "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.Title = void 0;
7
- const react_1 = __importDefault(require("react"));
8
- const customise_1 = require("../customise");
9
- const Anchor_1 = require("./Anchor");
10
- const Title_module_scss_1 = __importDefault(require("./Title.module.scss"));
1
+ import React from 'react';
2
+ import { useCustomRendering, } from '../customise/index.js';
3
+ import { Anchor } from './Anchor.js';
4
+ import defaultStyles from './Title.module.scss';
11
5
  const DefaultRenderer = ({ header: Header, id, children, styles, }) => {
12
- return (react_1.default.createElement(Anchor_1.Anchor, { id: id },
13
- react_1.default.createElement(Header, { id: id, className: styles.title }, children)));
6
+ return (React.createElement(Anchor, { id: id },
7
+ React.createElement(Header, { id: id, className: styles.title }, children)));
14
8
  };
15
- const Title = (props) => {
16
- const ResolvedRenderer = (0, customise_1.useCustomRendering)('Title', Title_module_scss_1.default, DefaultRenderer);
17
- return react_1.default.createElement(ResolvedRenderer, Object.assign({}, props));
9
+ export const Title = (props) => {
10
+ const ResolvedRenderer = useCustomRendering('Title', defaultStyles, DefaultRenderer);
11
+ return React.createElement(ResolvedRenderer, { ...props });
18
12
  };
19
- exports.Title = Title;
20
13
  //# sourceMappingURL=Title.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Title.js","sourceRoot":"","sources":["../../../../src/components/gherkin/Title.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAAyB;AAEzB,4CAA6F;AAC7F,qCAAiC;AACjC,4EAA+C;AAE/C,MAAM,eAAe,GAA+C,CAAC,EACnE,MAAM,EAAE,MAAM,EACd,EAAE,EACF,QAAQ,EACR,MAAM,GACP,EAAE,EAAE;IACH,OAAO,CACL,8BAAC,eAAM,IAAC,EAAE,EAAE,EAAE;QACZ,8BAAC,MAAM,IAAC,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,CAAC,KAAK,IACpC,QAAQ,CACF,CACF,CACV,CAAA;AACH,CAAC,CAAA;AAEM,MAAM,KAAK,GAAwC,CAAC,KAAK,EAAE,EAAE;IAClE,MAAM,gBAAgB,GAAG,IAAA,8BAAkB,EACzC,OAAO,EACP,2BAAa,EACb,eAAe,CAChB,CAAA;IACD,OAAO,8BAAC,gBAAgB,oBAAK,KAAK,EAAI,CAAA;AACxC,CAAC,CAAA;AAPY,QAAA,KAAK,SAOjB"}
1
+ {"version":3,"file":"Title.js","sourceRoot":"","sources":["../../../../src/components/gherkin/Title.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAIL,kBAAkB,GACnB,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AACpC,OAAO,aAAa,MAAM,qBAAqB,CAAA;AAE/C,MAAM,eAAe,GAA+C,CAAC,EACnE,MAAM,EAAE,MAAM,EACd,EAAE,EACF,QAAQ,EACR,MAAM,GACP,EAAE,EAAE;IACH,OAAO,CACL,oBAAC,MAAM,IAAC,EAAE,EAAE,EAAE;QACZ,oBAAC,MAAM,IAAC,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,CAAC,KAAK,IACpC,QAAQ,CACF,CACF,CACV,CAAA;AACH,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,KAAK,GAAwC,CAAC,KAAK,EAAE,EAAE;IAClE,MAAM,gBAAgB,GAAG,kBAAkB,CACzC,OAAO,EACP,aAAa,EACb,eAAe,CAChB,CAAA;IACD,OAAO,oBAAC,gBAAgB,OAAK,KAAK,GAAI,CAAA;AACxC,CAAC,CAAA"}
@@ -1,19 +1,12 @@
1
- "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.attachmentFilename = void 0;
7
- const mime_1 = __importDefault(require("mime"));
8
- function attachmentFilename(attachment) {
1
+ import mimeTypes from 'mime';
2
+ export function attachmentFilename(attachment) {
9
3
  if (attachment.fileName) {
10
4
  return attachment.fileName;
11
5
  }
12
- const extension = mime_1.default.getExtension(attachment.mediaType);
6
+ const extension = mimeTypes.getExtension(attachment.mediaType);
13
7
  if (extension) {
14
8
  return `attachment.${extension}`;
15
9
  }
16
10
  return 'attachment';
17
11
  }
18
- exports.attachmentFilename = attachmentFilename;
19
12
  //# sourceMappingURL=attachmentFilename.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"attachmentFilename.js","sourceRoot":"","sources":["../../../../src/components/gherkin/attachmentFilename.ts"],"names":[],"mappings":";;;;;;AACA,gDAA4B;AAE5B,SAAgB,kBAAkB,CAAC,UAAsB;IACvD,IAAI,UAAU,CAAC,QAAQ,EAAE;QACvB,OAAO,UAAU,CAAC,QAAQ,CAAA;KAC3B;IACD,MAAM,SAAS,GAAG,cAAS,CAAC,YAAY,CAAC,UAAU,CAAC,SAAS,CAAC,CAAA;IAC9D,IAAI,SAAS,EAAE;QACb,OAAO,cAAc,SAAS,EAAE,CAAA;KACjC;IACD,OAAO,YAAY,CAAA;AACrB,CAAC;AATD,gDASC"}
1
+ {"version":3,"file":"attachmentFilename.js","sourceRoot":"","sources":["../../../../src/components/gherkin/attachmentFilename.ts"],"names":[],"mappings":"AACA,OAAO,SAAS,MAAM,MAAM,CAAA;AAE5B,MAAM,UAAU,kBAAkB,CAAC,UAAsB;IACvD,IAAI,UAAU,CAAC,QAAQ,EAAE;QACvB,OAAO,UAAU,CAAC,QAAQ,CAAA;KAC3B;IACD,MAAM,SAAS,GAAG,SAAS,CAAC,YAAY,CAAC,UAAU,CAAC,SAAS,CAAC,CAAA;IAC9D,IAAI,SAAS,EAAE;QACb,OAAO,cAAc,SAAS,EAAE,CAAA;KACjC;IACD,OAAO,YAAY,CAAA;AACrB,CAAC"}
@@ -1,26 +1,26 @@
1
- export * from './Anchor';
2
- export * from './Attachment';
3
- export * from './Background';
4
- export * from './Children';
5
- export * from './DataTable';
6
- export * from './Description';
7
- export * from './DocString';
8
- export * from './ErrorMessage';
9
- export * from './Examples';
10
- export * from './ExamplesTable';
11
- export * from './Feature';
12
- export * from './GherkinDocument';
13
- export * from './GherkinStep';
14
- export * from './GherkinSteps';
15
- export * from './HookStep';
16
- export * from './HookSteps';
17
- export * from './Keyword';
18
- export * from './MDG';
19
- export * from './Parameter';
20
- export * from './Rule';
21
- export * from './Scenario';
22
- export * from './StatusIcon';
23
- export * from './StepItem';
24
- export * from './Tags';
25
- export * from './Title';
1
+ export * from './Anchor.js';
2
+ export * from './Attachment.js';
3
+ export * from './Background.js';
4
+ export * from './Children.js';
5
+ export * from './DataTable.js';
6
+ export * from './Description.js';
7
+ export * from './DocString.js';
8
+ export * from './ErrorMessage.js';
9
+ export * from './Examples.js';
10
+ export * from './ExamplesTable.js';
11
+ export * from './Feature.js';
12
+ export * from './GherkinDocument.js';
13
+ export * from './GherkinStep.js';
14
+ export * from './GherkinSteps.js';
15
+ export * from './HookStep.js';
16
+ export * from './HookSteps.js';
17
+ export * from './Keyword.js';
18
+ export * from './MDG.js';
19
+ export * from './Parameter.js';
20
+ export * from './Rule.js';
21
+ export * from './Scenario.js';
22
+ export * from './StatusIcon.js';
23
+ export * from './StepItem.js';
24
+ export * from './Tags.js';
25
+ export * from './Title.js';
26
26
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,cAAc,CAAA;AAC5B,cAAc,cAAc,CAAA;AAC5B,cAAc,YAAY,CAAA;AAC1B,cAAc,aAAa,CAAA;AAC3B,cAAc,eAAe,CAAA;AAC7B,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,WAAW,CAAA;AACzB,cAAc,mBAAmB,CAAA;AACjC,cAAc,eAAe,CAAA;AAC7B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,aAAa,CAAA;AAC3B,cAAc,WAAW,CAAA;AACzB,cAAc,OAAO,CAAA;AACrB,cAAc,aAAa,CAAA;AAC3B,cAAc,QAAQ,CAAA;AACtB,cAAc,YAAY,CAAA;AAC1B,cAAc,cAAc,CAAA;AAC5B,cAAc,YAAY,CAAA;AAC1B,cAAc,QAAQ,CAAA;AACtB,cAAc,SAAS,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,iBAAiB,CAAA;AAC/B,cA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