@cucumber/react-components 20.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 (338) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +215 -0
  3. package/dist/src/CucumberQueryContext.d.ts +5 -0
  4. package/dist/src/CucumberQueryContext.d.ts.map +1 -0
  5. package/dist/src/CucumberQueryContext.js +9 -0
  6. package/dist/src/CucumberQueryContext.js.map +1 -0
  7. package/dist/src/EnvelopesQueryContext.d.ts +14 -0
  8. package/dist/src/EnvelopesQueryContext.d.ts.map +1 -0
  9. package/dist/src/EnvelopesQueryContext.js +36 -0
  10. package/dist/src/EnvelopesQueryContext.js.map +1 -0
  11. package/dist/src/GherkinQueryContext.d.ts +5 -0
  12. package/dist/src/GherkinQueryContext.d.ts.map +1 -0
  13. package/dist/src/GherkinQueryContext.js +9 -0
  14. package/dist/src/GherkinQueryContext.js.map +1 -0
  15. package/dist/src/SearchQueryContext.d.ts +34 -0
  16. package/dist/src/SearchQueryContext.d.ts.map +1 -0
  17. package/dist/src/SearchQueryContext.js +102 -0
  18. package/dist/src/SearchQueryContext.js.map +1 -0
  19. package/dist/src/UriContext.d.ts +4 -0
  20. package/dist/src/UriContext.d.ts.map +1 -0
  21. package/dist/src/UriContext.js +8 -0
  22. package/dist/src/UriContext.js.map +1 -0
  23. package/dist/src/ciCommitLink.d.ts +3 -0
  24. package/dist/src/ciCommitLink.d.ts.map +1 -0
  25. package/dist/src/ciCommitLink.js +18 -0
  26. package/dist/src/ciCommitLink.js.map +1 -0
  27. package/dist/src/components/CucumberReact.d.ts +10 -0
  28. package/dist/src/components/CucumberReact.d.ts.map +1 -0
  29. package/dist/src/components/CucumberReact.js +16 -0
  30. package/dist/src/components/CucumberReact.js.map +1 -0
  31. package/dist/src/components/CucumberReact.module.scss +35 -0
  32. package/dist/src/components/app/CICommitLink.d.ts +8 -0
  33. package/dist/src/components/app/CICommitLink.d.ts.map +1 -0
  34. package/dist/src/components/app/CICommitLink.js +25 -0
  35. package/dist/src/components/app/CICommitLink.js.map +1 -0
  36. package/dist/src/components/app/EnvelopesWrapper.d.ts +8 -0
  37. package/dist/src/components/app/EnvelopesWrapper.d.ts.map +1 -0
  38. package/dist/src/components/app/EnvelopesWrapper.js +47 -0
  39. package/dist/src/components/app/EnvelopesWrapper.js.map +1 -0
  40. package/dist/src/components/app/ExecutionSummary.d.ts +13 -0
  41. package/dist/src/components/app/ExecutionSummary.d.ts.map +1 -0
  42. package/dist/src/components/app/ExecutionSummary.js +82 -0
  43. package/dist/src/components/app/ExecutionSummary.js.map +1 -0
  44. package/dist/src/components/app/ExecutionSummary.module.scss +59 -0
  45. package/dist/src/components/app/FilteredResults.d.ts +7 -0
  46. package/dist/src/components/app/FilteredResults.d.ts.map +1 -0
  47. package/dist/src/components/app/FilteredResults.js +42 -0
  48. package/dist/src/components/app/FilteredResults.js.map +1 -0
  49. package/dist/src/components/app/FilteredResults.module.scss +7 -0
  50. package/dist/src/components/app/GherkinDocumentList.d.ts +9 -0
  51. package/dist/src/components/app/GherkinDocumentList.d.ts.map +1 -0
  52. package/dist/src/components/app/GherkinDocumentList.js +84 -0
  53. package/dist/src/components/app/GherkinDocumentList.js.map +1 -0
  54. package/dist/src/components/app/GherkinDocumentList.module.scss +45 -0
  55. package/dist/src/components/app/HighLight.d.ts +9 -0
  56. package/dist/src/components/app/HighLight.d.ts.map +1 -0
  57. package/dist/src/components/app/HighLight.js +38 -0
  58. package/dist/src/components/app/HighLight.js.map +1 -0
  59. package/dist/src/components/app/NoMatchResult.d.ts +7 -0
  60. package/dist/src/components/app/NoMatchResult.d.ts.map +1 -0
  61. package/dist/src/components/app/NoMatchResult.js +19 -0
  62. package/dist/src/components/app/NoMatchResult.js.map +1 -0
  63. package/dist/src/components/app/NoMatchResult.module.scss +13 -0
  64. package/dist/src/components/app/OSIcon.d.ts +5 -0
  65. package/dist/src/components/app/OSIcon.d.ts.map +1 -0
  66. package/dist/src/components/app/OSIcon.js +27 -0
  67. package/dist/src/components/app/OSIcon.js.map +1 -0
  68. package/dist/src/components/app/QueriesWrapper.d.ts +12 -0
  69. package/dist/src/components/app/QueriesWrapper.d.ts.map +1 -0
  70. package/dist/src/components/app/QueriesWrapper.js +15 -0
  71. package/dist/src/components/app/QueriesWrapper.js.map +1 -0
  72. package/dist/src/components/app/RuntimeIcon.d.ts +5 -0
  73. package/dist/src/components/app/RuntimeIcon.d.ts.map +1 -0
  74. package/dist/src/components/app/RuntimeIcon.js +27 -0
  75. package/dist/src/components/app/RuntimeIcon.js.map +1 -0
  76. package/dist/src/components/app/SearchBar.d.ts +12 -0
  77. package/dist/src/components/app/SearchBar.d.ts.map +1 -0
  78. package/dist/src/components/app/SearchBar.js +48 -0
  79. package/dist/src/components/app/SearchBar.js.map +1 -0
  80. package/dist/src/components/app/SearchBar.module.scss +74 -0
  81. package/dist/src/components/app/SearchWrapper.d.ts +4 -0
  82. package/dist/src/components/app/SearchWrapper.d.ts.map +1 -0
  83. package/dist/src/components/app/SearchWrapper.js +48 -0
  84. package/dist/src/components/app/SearchWrapper.js.map +1 -0
  85. package/dist/src/components/app/StatusesSummary.d.ts +8 -0
  86. package/dist/src/components/app/StatusesSummary.d.ts.map +1 -0
  87. package/dist/src/components/app/StatusesSummary.js +24 -0
  88. package/dist/src/components/app/StatusesSummary.js.map +1 -0
  89. package/dist/src/components/app/StatusesSummary.module.scss +34 -0
  90. package/dist/src/components/app/icons/CucumberLogo.d.ts +3 -0
  91. package/dist/src/components/app/icons/CucumberLogo.d.ts.map +1 -0
  92. package/dist/src/components/app/icons/CucumberLogo.js +16 -0
  93. package/dist/src/components/app/icons/CucumberLogo.js.map +1 -0
  94. package/dist/src/components/app/icons/Jvm.d.ts +3 -0
  95. package/dist/src/components/app/icons/Jvm.d.ts.map +1 -0
  96. package/dist/src/components/app/icons/Jvm.js +17 -0
  97. package/dist/src/components/app/icons/Jvm.js.map +1 -0
  98. package/dist/src/components/app/icons/Linux.d.ts +3 -0
  99. package/dist/src/components/app/icons/Linux.d.ts.map +1 -0
  100. package/dist/src/components/app/icons/Linux.js +27 -0
  101. package/dist/src/components/app/icons/Linux.js.map +1 -0
  102. package/dist/src/components/app/icons/MacOS.d.ts +3 -0
  103. package/dist/src/components/app/icons/MacOS.d.ts.map +1 -0
  104. package/dist/src/components/app/icons/MacOS.js +13 -0
  105. package/dist/src/components/app/icons/MacOS.js.map +1 -0
  106. package/dist/src/components/app/icons/NodeJs.d.ts +3 -0
  107. package/dist/src/components/app/icons/NodeJs.d.ts.map +1 -0
  108. package/dist/src/components/app/icons/NodeJs.js +43 -0
  109. package/dist/src/components/app/icons/NodeJs.js.map +1 -0
  110. package/dist/src/components/app/icons/Ruby.d.ts +3 -0
  111. package/dist/src/components/app/icons/Ruby.d.ts.map +1 -0
  112. package/dist/src/components/app/icons/Ruby.js +13 -0
  113. package/dist/src/components/app/icons/Ruby.js.map +1 -0
  114. package/dist/src/components/app/icons/Windows.d.ts +3 -0
  115. package/dist/src/components/app/icons/Windows.d.ts.map +1 -0
  116. package/dist/src/components/app/icons/Windows.js +13 -0
  117. package/dist/src/components/app/icons/Windows.js.map +1 -0
  118. package/dist/src/components/app/index.d.ts +12 -0
  119. package/dist/src/components/app/index.d.ts.map +1 -0
  120. package/dist/src/components/app/index.js +28 -0
  121. package/dist/src/components/app/index.js.map +1 -0
  122. package/dist/src/components/app/rehypePlugins.d.ts +4 -0
  123. package/dist/src/components/app/rehypePlugins.d.ts.map +1 -0
  124. package/dist/src/components/app/rehypePlugins.js +14 -0
  125. package/dist/src/components/app/rehypePlugins.js.map +1 -0
  126. package/dist/src/components/app/statuses.d.ts +4 -0
  127. package/dist/src/components/app/statuses.d.ts.map +1 -0
  128. package/dist/src/components/app/statuses.js +37 -0
  129. package/dist/src/components/app/statuses.js.map +1 -0
  130. package/dist/src/components/customise/customRendering.d.ts +122 -0
  131. package/dist/src/components/customise/customRendering.d.ts.map +1 -0
  132. package/dist/src/components/customise/customRendering.js +58 -0
  133. package/dist/src/components/customise/customRendering.js.map +1 -0
  134. package/dist/src/components/customise/index.d.ts +3 -0
  135. package/dist/src/components/customise/index.d.ts.map +1 -0
  136. package/dist/src/components/customise/index.js +19 -0
  137. package/dist/src/components/customise/index.js.map +1 -0
  138. package/dist/src/components/customise/theming.d.ts +2 -0
  139. package/dist/src/components/customise/theming.d.ts.map +1 -0
  140. package/dist/src/components/customise/theming.js +3 -0
  141. package/dist/src/components/customise/theming.js.map +1 -0
  142. package/dist/src/components/gherkin/Anchor.d.ts +4 -0
  143. package/dist/src/components/gherkin/Anchor.d.ts.map +1 -0
  144. package/dist/src/components/gherkin/Anchor.js +23 -0
  145. package/dist/src/components/gherkin/Anchor.js.map +1 -0
  146. package/dist/src/components/gherkin/Anchor.module.scss +20 -0
  147. package/dist/src/components/gherkin/Attachment.d.ts +5 -0
  148. package/dist/src/components/gherkin/Attachment.d.ts.map +1 -0
  149. package/dist/src/components/gherkin/Attachment.js +100 -0
  150. package/dist/src/components/gherkin/Attachment.js.map +1 -0
  151. package/dist/src/components/gherkin/Attachment.module.scss +23 -0
  152. package/dist/src/components/gherkin/Background.d.ts +4 -0
  153. package/dist/src/components/gherkin/Background.d.ts.map +1 -0
  154. package/dist/src/components/gherkin/Background.js +30 -0
  155. package/dist/src/components/gherkin/Background.js.map +1 -0
  156. package/dist/src/components/gherkin/Background.module.scss +12 -0
  157. package/dist/src/components/gherkin/Children.d.ts +4 -0
  158. package/dist/src/components/gherkin/Children.d.ts.map +1 -0
  159. package/dist/src/components/gherkin/Children.js +18 -0
  160. package/dist/src/components/gherkin/Children.js.map +1 -0
  161. package/dist/src/components/gherkin/Children.module.scss +6 -0
  162. package/dist/src/components/gherkin/DataTable.d.ts +4 -0
  163. package/dist/src/components/gherkin/DataTable.d.ts.map +1 -0
  164. package/dist/src/components/gherkin/DataTable.js +25 -0
  165. package/dist/src/components/gherkin/DataTable.js.map +1 -0
  166. package/dist/src/components/gherkin/DataTable.module.scss +41 -0
  167. package/dist/src/components/gherkin/Description.d.ts +4 -0
  168. package/dist/src/components/gherkin/Description.d.ts.map +1 -0
  169. package/dist/src/components/gherkin/Description.js +23 -0
  170. package/dist/src/components/gherkin/Description.js.map +1 -0
  171. package/dist/src/components/gherkin/Description.module.scss +10 -0
  172. package/dist/src/components/gherkin/DocString.d.ts +4 -0
  173. package/dist/src/components/gherkin/DocString.d.ts.map +1 -0
  174. package/dist/src/components/gherkin/DocString.js +20 -0
  175. package/dist/src/components/gherkin/DocString.js.map +1 -0
  176. package/dist/src/components/gherkin/DocString.module.scss +25 -0
  177. package/dist/src/components/gherkin/ErrorMessage.d.ts +4 -0
  178. package/dist/src/components/gherkin/ErrorMessage.d.ts.map +1 -0
  179. package/dist/src/components/gherkin/ErrorMessage.js +18 -0
  180. package/dist/src/components/gherkin/ErrorMessage.js.map +1 -0
  181. package/dist/src/components/gherkin/ErrorMessage.module.scss +13 -0
  182. package/dist/src/components/gherkin/Examples.d.ts +4 -0
  183. package/dist/src/components/gherkin/Examples.d.ts.map +1 -0
  184. package/dist/src/components/gherkin/Examples.js +33 -0
  185. package/dist/src/components/gherkin/Examples.js.map +1 -0
  186. package/dist/src/components/gherkin/Examples.module.scss +3 -0
  187. package/dist/src/components/gherkin/ExamplesTable.d.ts +4 -0
  188. package/dist/src/components/gherkin/ExamplesTable.d.ts.map +1 -0
  189. package/dist/src/components/gherkin/ExamplesTable.js +58 -0
  190. package/dist/src/components/gherkin/ExamplesTable.js.map +1 -0
  191. package/dist/src/components/gherkin/Feature.d.ts +4 -0
  192. package/dist/src/components/gherkin/Feature.d.ts.map +1 -0
  193. package/dist/src/components/gherkin/Feature.js +47 -0
  194. package/dist/src/components/gherkin/Feature.js.map +1 -0
  195. package/dist/src/components/gherkin/GherkinDocument.d.ts +4 -0
  196. package/dist/src/components/gherkin/GherkinDocument.d.ts.map +1 -0
  197. package/dist/src/components/gherkin/GherkinDocument.js +18 -0
  198. package/dist/src/components/gherkin/GherkinDocument.js.map +1 -0
  199. package/dist/src/components/gherkin/GherkinStep.d.ts +4 -0
  200. package/dist/src/components/gherkin/GherkinStep.d.ts.map +1 -0
  201. package/dist/src/components/gherkin/GherkinStep.js +89 -0
  202. package/dist/src/components/gherkin/GherkinStep.js.map +1 -0
  203. package/dist/src/components/gherkin/HookList.d.ts +8 -0
  204. package/dist/src/components/gherkin/HookList.d.ts.map +1 -0
  205. package/dist/src/components/gherkin/HookList.js +14 -0
  206. package/dist/src/components/gherkin/HookList.js.map +1 -0
  207. package/dist/src/components/gherkin/HookStep.d.ts +4 -0
  208. package/dist/src/components/gherkin/HookStep.d.ts.map +1 -0
  209. package/dist/src/components/gherkin/HookStep.js +72 -0
  210. package/dist/src/components/gherkin/HookStep.js.map +1 -0
  211. package/dist/src/components/gherkin/Keyword.d.ts +3 -0
  212. package/dist/src/components/gherkin/Keyword.d.ts.map +1 -0
  213. package/dist/src/components/gherkin/Keyword.js +18 -0
  214. package/dist/src/components/gherkin/Keyword.js.map +1 -0
  215. package/dist/src/components/gherkin/Keyword.module.scss +7 -0
  216. package/dist/src/components/gherkin/MDG.d.ts +8 -0
  217. package/dist/src/components/gherkin/MDG.d.ts.map +1 -0
  218. package/dist/src/components/gherkin/MDG.js +87 -0
  219. package/dist/src/components/gherkin/MDG.js.map +1 -0
  220. package/dist/src/components/gherkin/MDG.module.scss +12 -0
  221. package/dist/src/components/gherkin/Parameter.d.ts +4 -0
  222. package/dist/src/components/gherkin/Parameter.d.ts.map +1 -0
  223. package/dist/src/components/gherkin/Parameter.js +18 -0
  224. package/dist/src/components/gherkin/Parameter.js.map +1 -0
  225. package/dist/src/components/gherkin/Parameter.module.scss +6 -0
  226. package/dist/src/components/gherkin/Rule.d.ts +4 -0
  227. package/dist/src/components/gherkin/Rule.d.ts.map +1 -0
  228. package/dist/src/components/gherkin/Rule.js +43 -0
  229. package/dist/src/components/gherkin/Rule.js.map +1 -0
  230. package/dist/src/components/gherkin/Scenario.d.ts +4 -0
  231. package/dist/src/components/gherkin/Scenario.d.ts.map +1 -0
  232. package/dist/src/components/gherkin/Scenario.js +51 -0
  233. package/dist/src/components/gherkin/Scenario.js.map +1 -0
  234. package/dist/src/components/gherkin/Scenario.module.scss +12 -0
  235. package/dist/src/components/gherkin/StatusIcon.d.ts +4 -0
  236. package/dist/src/components/gherkin/StatusIcon.d.ts.map +1 -0
  237. package/dist/src/components/gherkin/StatusIcon.js +31 -0
  238. package/dist/src/components/gherkin/StatusIcon.js.map +1 -0
  239. package/dist/src/components/gherkin/StatusIcon.module.scss +16 -0
  240. package/dist/src/components/gherkin/StepItem.d.ts +7 -0
  241. package/dist/src/components/gherkin/StepItem.d.ts.map +1 -0
  242. package/dist/src/components/gherkin/StepItem.js +17 -0
  243. package/dist/src/components/gherkin/StepItem.js.map +1 -0
  244. package/dist/src/components/gherkin/StepItem.module.scss +22 -0
  245. package/dist/src/components/gherkin/StepList.d.ts +4 -0
  246. package/dist/src/components/gherkin/StepList.d.ts.map +1 -0
  247. package/dist/src/components/gherkin/StepList.js +19 -0
  248. package/dist/src/components/gherkin/StepList.js.map +1 -0
  249. package/dist/src/components/gherkin/Tags.d.ts +4 -0
  250. package/dist/src/components/gherkin/Tags.d.ts.map +1 -0
  251. package/dist/src/components/gherkin/Tags.js +23 -0
  252. package/dist/src/components/gherkin/Tags.js.map +1 -0
  253. package/dist/src/components/gherkin/Tags.module.scss +17 -0
  254. package/dist/src/components/gherkin/Title.d.ts +4 -0
  255. package/dist/src/components/gherkin/Title.d.ts.map +1 -0
  256. package/dist/src/components/gherkin/Title.js +20 -0
  257. package/dist/src/components/gherkin/Title.js.map +1 -0
  258. package/dist/src/components/gherkin/Title.module.scss +6 -0
  259. package/dist/src/components/gherkin/index.d.ts +26 -0
  260. package/dist/src/components/gherkin/index.d.ts.map +1 -0
  261. package/dist/src/components/gherkin/index.js +42 -0
  262. package/dist/src/components/gherkin/index.js.map +1 -0
  263. package/dist/src/components/gherkin/isNumber.d.ts +2 -0
  264. package/dist/src/components/gherkin/isNumber.d.ts.map +1 -0
  265. package/dist/src/components/gherkin/isNumber.js +9 -0
  266. package/dist/src/components/gherkin/isNumber.js.map +1 -0
  267. package/dist/src/components/gherkin/statusName.d.ts +4 -0
  268. package/dist/src/components/gherkin/statusName.d.ts.map +1 -0
  269. package/dist/src/components/gherkin/statusName.js +6 -0
  270. package/dist/src/components/gherkin/statusName.js.map +1 -0
  271. package/dist/src/components/index.d.ts +5 -0
  272. package/dist/src/components/index.d.ts.map +1 -0
  273. package/dist/src/components/index.js +34 -0
  274. package/dist/src/components/index.js.map +1 -0
  275. package/dist/src/countScenariosByStatuses.d.ts +10 -0
  276. package/dist/src/countScenariosByStatuses.d.ts.map +1 -0
  277. package/dist/src/countScenariosByStatuses.js +43 -0
  278. package/dist/src/countScenariosByStatuses.js.map +1 -0
  279. package/dist/src/filter/filterByStatus.d.ts +5 -0
  280. package/dist/src/filter/filterByStatus.d.ts.map +1 -0
  281. package/dist/src/filter/filterByStatus.js +20 -0
  282. package/dist/src/filter/filterByStatus.js.map +1 -0
  283. package/dist/src/hooks/index.d.ts +3 -0
  284. package/dist/src/hooks/index.d.ts.map +1 -0
  285. package/dist/src/hooks/index.js +19 -0
  286. package/dist/src/hooks/index.js.map +1 -0
  287. package/dist/src/hooks/useQueries.d.ts +11 -0
  288. package/dist/src/hooks/useQueries.d.ts.map +1 -0
  289. package/dist/src/hooks/useQueries.js +18 -0
  290. package/dist/src/hooks/useQueries.js.map +1 -0
  291. package/dist/src/hooks/useSearch.d.ts +3 -0
  292. package/dist/src/hooks/useSearch.d.ts.map +1 -0
  293. package/dist/src/hooks/useSearch.js +13 -0
  294. package/dist/src/hooks/useSearch.js.map +1 -0
  295. package/dist/src/index.d.ts +9 -0
  296. package/dist/src/index.d.ts.map +1 -0
  297. package/dist/src/index.js +44 -0
  298. package/dist/src/index.js.map +1 -0
  299. package/dist/src/isTagExpression.d.ts +2 -0
  300. package/dist/src/isTagExpression.d.ts.map +1 -0
  301. package/dist/src/isTagExpression.js +8 -0
  302. package/dist/src/isTagExpression.js.map +1 -0
  303. package/dist/src/search/FeatureSearch.d.ts +8 -0
  304. package/dist/src/search/FeatureSearch.d.ts.map +1 -0
  305. package/dist/src/search/FeatureSearch.js +45 -0
  306. package/dist/src/search/FeatureSearch.js.map +1 -0
  307. package/dist/src/search/RuleSearch.d.ts +9 -0
  308. package/dist/src/search/RuleSearch.d.ts.map +1 -0
  309. package/dist/src/search/RuleSearch.js +42 -0
  310. package/dist/src/search/RuleSearch.js.map +1 -0
  311. package/dist/src/search/ScenarioSearch.d.ts +9 -0
  312. package/dist/src/search/ScenarioSearch.d.ts.map +1 -0
  313. package/dist/src/search/ScenarioSearch.js +42 -0
  314. package/dist/src/search/ScenarioSearch.js.map +1 -0
  315. package/dist/src/search/Search.d.ts +11 -0
  316. package/dist/src/search/Search.d.ts.map +1 -0
  317. package/dist/src/search/Search.js +32 -0
  318. package/dist/src/search/Search.js.map +1 -0
  319. package/dist/src/search/StepSearch.d.ts +11 -0
  320. package/dist/src/search/StepSearch.d.ts.map +1 -0
  321. package/dist/src/search/StepSearch.js +55 -0
  322. package/dist/src/search/StepSearch.js.map +1 -0
  323. package/dist/src/search/TagSearch.d.ts +12 -0
  324. package/dist/src/search/TagSearch.d.ts.map +1 -0
  325. package/dist/src/search/TagSearch.js +58 -0
  326. package/dist/src/search/TagSearch.js.map +1 -0
  327. package/dist/src/search/TextSearch.d.ts +12 -0
  328. package/dist/src/search/TextSearch.d.ts.map +1 -0
  329. package/dist/src/search/TextSearch.js +52 -0
  330. package/dist/src/search/TextSearch.js.map +1 -0
  331. package/dist/src/stories/custom-classes.scss +8 -0
  332. package/dist/src/styles/theming.scss +16 -0
  333. package/dist/src/toRepositoryId.d.ts +2 -0
  334. package/dist/src/toRepositoryId.d.ts.map +1 -0
  335. package/dist/src/toRepositoryId.js +14 -0
  336. package/dist/src/toRepositoryId.js.map +1 -0
  337. package/dist/tsconfig.build.tsbuildinfo +1 -0
  338. package/package.json +118 -0
@@ -0,0 +1,100 @@
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.Attachment = exports.DefaultRenderer = void 0;
7
+ // @ts-ignore
8
+ const ansi_to_html_1 = __importDefault(require("ansi-to-html"));
9
+ const react_1 = __importDefault(require("react"));
10
+ const customise_1 = require("../customise");
11
+ const Attachment_module_scss_1 = __importDefault(require("./Attachment.module.scss"));
12
+ const ErrorMessage_1 = require("./ErrorMessage");
13
+ const DefaultRenderer = ({ attachment, styles, }) => {
14
+ if (attachment.mediaType.match(/^image\//)) {
15
+ return image(attachment, styles);
16
+ }
17
+ else if (attachment.mediaType.match(/^video\//)) {
18
+ return video(attachment);
19
+ }
20
+ else if (attachment.mediaType == 'text/x.cucumber.log+plain') {
21
+ return text(attachment, prettyANSI, true, styles);
22
+ }
23
+ else if (attachment.mediaType.match(/^text\//)) {
24
+ return text(attachment, (s) => s, false, styles);
25
+ }
26
+ else if (attachment.mediaType.match(/^application\/json/)) {
27
+ return text(attachment, prettyJSON, false, styles);
28
+ }
29
+ else {
30
+ return (react_1.default.createElement(ErrorMessage_1.ErrorMessage, { message: `Couldn't display ${attachment.mediaType} attachment because the media type is unsupported. Please submit a feature request at https://github.com/cucumber/cucumber/issues` }));
31
+ }
32
+ };
33
+ exports.DefaultRenderer = DefaultRenderer;
34
+ const Attachment = (props) => {
35
+ const ResolvedRenderer = (0, customise_1.useCustomRendering)('Attachment', Attachment_module_scss_1.default, exports.DefaultRenderer);
36
+ return react_1.default.createElement(ResolvedRenderer, Object.assign({}, props));
37
+ };
38
+ exports.Attachment = Attachment;
39
+ function image(attachment, classes) {
40
+ var _a;
41
+ if (attachment.contentEncoding !== 'BASE64') {
42
+ return (react_1.default.createElement(ErrorMessage_1.ErrorMessage, { message: `Couldn't display ${attachment.mediaType} image because it wasn't base64 encoded` }));
43
+ }
44
+ const attachmentTitle = (_a = attachment.fileName) !== null && _a !== void 0 ? _a : 'Attached Image (' + attachment.mediaType + ')';
45
+ return (react_1.default.createElement("details", null,
46
+ react_1.default.createElement("summary", null, attachmentTitle),
47
+ react_1.default.createElement("img", { alt: "Embedded Image", src: `data:${attachment.mediaType};base64,${attachment.body}`, className: classes.image })));
48
+ }
49
+ function video(attachment) {
50
+ var _a;
51
+ const attachmentTitle = (_a = attachment.fileName) !== null && _a !== void 0 ? _a : 'Attached Video (' + attachment.mediaType + ')';
52
+ if (attachment.contentEncoding !== 'BASE64') {
53
+ return (react_1.default.createElement(ErrorMessage_1.ErrorMessage, { message: `Couldn't display ${attachment.mediaType} video because it wasn't base64 encoded` }));
54
+ }
55
+ return (react_1.default.createElement("details", null,
56
+ react_1.default.createElement("summary", null, attachmentTitle),
57
+ react_1.default.createElement("video", { controls: true },
58
+ react_1.default.createElement("source", { src: `data:${attachment.mediaType};base64,${attachment.body}` }),
59
+ "Your browser is unable to display video")));
60
+ }
61
+ function base64Decode(body) {
62
+ // @ts-ignore
63
+ if (typeof global.atob === 'function') {
64
+ // @ts-ignore
65
+ return global.atob(body);
66
+ }
67
+ else if (typeof global.Buffer === 'function') {
68
+ return global.Buffer.from(body, 'base64').toString('utf8');
69
+ }
70
+ else {
71
+ throw new Error();
72
+ }
73
+ }
74
+ function text(attachment, prettify, dangerouslySetInnerHTML, classes) {
75
+ var _a;
76
+ const body = attachment.contentEncoding === 'IDENTITY' ? attachment.body : base64Decode(attachment.body);
77
+ const attachmentTitle = (_a = attachment.fileName) !== null && _a !== void 0 ? _a : 'Attached Text (' + attachment.mediaType + ')';
78
+ if (dangerouslySetInnerHTML) {
79
+ return (react_1.default.createElement("details", null,
80
+ react_1.default.createElement("summary", null, attachmentTitle),
81
+ react_1.default.createElement("pre", { className: classes.text },
82
+ react_1.default.createElement("span", { dangerouslySetInnerHTML: { __html: prettify(body) } }))));
83
+ }
84
+ return (react_1.default.createElement("details", null,
85
+ react_1.default.createElement("summary", null, attachmentTitle),
86
+ react_1.default.createElement("pre", { className: classes.text },
87
+ react_1.default.createElement("span", null, prettify(body)))));
88
+ }
89
+ function prettyJSON(s) {
90
+ try {
91
+ return JSON.stringify(JSON.parse(s), null, 2);
92
+ }
93
+ catch (ignore) {
94
+ return s;
95
+ }
96
+ }
97
+ function prettyANSI(s) {
98
+ return new ansi_to_html_1.default().toHtml(s);
99
+ }
100
+ //# sourceMappingURL=Attachment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Attachment.js","sourceRoot":"","sources":["../../../../src/components/gherkin/Attachment.tsx"],"names":[],"mappings":";;;;;;AACA,aAAa;AACb,gEAAkC;AAClC,kDAAyB;AAEzB,4CAKqB;AACrB,sFAAoD;AACpD,iDAA6C;AAEtC,MAAM,eAAe,GAAyD,CAAC,EACpF,UAAU,EACV,MAAM,GACP,EAAE,EAAE;IACH,IAAI,UAAU,CAAC,SAAS,CAAC,KAAK,CAAC,UAAU,CAAC,EAAE;QAC1C,OAAO,KAAK,CAAC,UAAU,EAAE,MAAM,CAAC,CAAA;KACjC;SAAM,IAAI,UAAU,CAAC,SAAS,CAAC,KAAK,CAAC,UAAU,CAAC,EAAE;QACjD,OAAO,KAAK,CAAC,UAAU,CAAC,CAAA;KACzB;SAAM,IAAI,UAAU,CAAC,SAAS,IAAI,2BAA2B,EAAE;QAC9D,OAAO,IAAI,CAAC,UAAU,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,CAAC,CAAA;KAClD;SAAM,IAAI,UAAU,CAAC,SAAS,CAAC,KAAK,CAAC,SAAS,CAAC,EAAE;QAChD,OAAO,IAAI,CAAC,UAAU,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC,CAAA;KACjD;SAAM,IAAI,UAAU,CAAC,SAAS,CAAC,KAAK,CAAC,oBAAoB,CAAC,EAAE;QAC3D,OAAO,IAAI,CAAC,UAAU,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,CAAC,CAAA;KACnD;SAAM;Q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Q,CACzB,CACE,CACX,CAAA;AACH,CAAC;AAED,SAAS,UAAU,CAAC,CAAS;IAC3B,IAAI;QACF,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,CAAA;KAC9C;IAAC,OAAO,MAAM,EAAE;QACf,OAAO,CAAC,CAAA;KACT;AACH,CAAC;AAED,SAAS,UAAU,CAAC,CAAS;IAC3B,OAAO,IAAI,sBAAO,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,CAAA;AAChC,CAAC"}
@@ -0,0 +1,23 @@
1
+ @import '../../styles/theming';
2
+
3
+ .text {
4
+ white-space: pre-wrap;
5
+ font-family: $monoFamily;
6
+ font-size: 0.875em;
7
+ padding: 0.666em 0.75em;
8
+ border-radius: 0.25em;
9
+ margin: 0;
10
+ overflow-x: auto;
11
+ background-color: $codeBackgroundColor;
12
+ color: $codeTextColor;
13
+ }
14
+
15
+ .icon {
16
+ margin-right: 0.75em;
17
+ opacity: 0.333;
18
+ }
19
+
20
+ .image {
21
+ max-width: 100%;
22
+ margin-top: 0.5em;
23
+ }
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { BackgroundProps } from '../customise';
3
+ export declare const Background: React.FunctionComponent<BackgroundProps>;
4
+ //# sourceMappingURL=Background.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Background.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/Background.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAEL,eAAe,EAGhB,MAAM,cAAc,CAAA;AAyBrB,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,iBAAiB,CAAC,eAAe,CAO/D,CAAA"}
@@ -0,0 +1,30 @@
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.Background = void 0;
7
+ const react_1 = __importDefault(require("react"));
8
+ const customise_1 = require("../customise");
9
+ const Background_module_scss_1 = __importDefault(require("./Background.module.scss"));
10
+ const Description_1 = require("./Description");
11
+ const Keyword_1 = require("./Keyword");
12
+ const StepList_1 = require("./StepList");
13
+ const Title_1 = require("./Title");
14
+ const DefaultRenderer = ({ background, styles, }) => {
15
+ return (react_1.default.createElement("section", null,
16
+ react_1.default.createElement(Title_1.Title, { header: "h2", id: background.id },
17
+ react_1.default.createElement(Keyword_1.Keyword, null,
18
+ background.keyword,
19
+ ":"),
20
+ react_1.default.createElement("span", null, background.name)),
21
+ react_1.default.createElement(Description_1.Description, { description: background.description }),
22
+ react_1.default.createElement("ol", { className: styles.steps },
23
+ react_1.default.createElement(StepList_1.StepList, { steps: background.steps || [], hasExamples: false }))));
24
+ };
25
+ const Background = (props) => {
26
+ const ResolvedRenderer = (0, customise_1.useCustomRendering)('Background', Background_module_scss_1.default, DefaultRenderer);
27
+ return react_1.default.createElement(ResolvedRenderer, Object.assign({}, props));
28
+ };
29
+ exports.Background = Background;
30
+ //# sourceMappingURL=Background.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Background.js","sourceRoot":"","sources":["../../../../src/components/gherkin/Background.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAAyB;AAEzB,4CAKqB;AACrB,sFAAoD;AACpD,+CAA2C;AAC3C,uCAAmC;AACnC,yCAAqC;AACrC,mCAA+B;AAE/B,MAAM,eAAe,GAAyD,CAAC,EAC7E,UAAU,EACV,MAAM,GACP,EAAE,EAAE;IACH,OAAO,CACL;QACE,8BAAC,aAAK,IAAC,MAAM,EAAC,IAAI,EAAC,EAAE,EAAE,UAAU,CAAC,EAAE;YAClC,8BAAC,iBAAO;gBAAE,UAAU,CAAC,OAAO;oBAAY;YACxC,4CAAO,UAAU,CAAC,IAAI,CAAQ,CACxB;QACR,8BAAC,yBAAW,IAAC,WAAW,EAAE,UAAU,CAAC,WAAW,GAAI;QACpD,sCAAI,SAAS,EAAE,MAAM,CAAC,KAAK;YACzB,8BAAC,mBAAQ,IAAC,KAAK,EAAE,UAAU,CAAC,KAAK,IAAI,EAAE,EAAE,WAAW,EAAE,KAAK,GAAI,CAC5D,CACG,CACX,CAAA;AACH,CAAC,CAAA;AAEM,MAAM,UAAU,GAA6C,CAAC,KAAK,EAAE,EAAE;IAC5E,MAAM,gBAAgB,GAAG,IAAA,8BAAkB,EACzC,YAAY,EACZ,gCAAa,EACb,eAAe,CAChB,CAAA;IACD,OAAO,8BAAC,gBAAgB,oBAAK,KAAK,EAAI,CAAA;AACxC,CAAC,CAAA;AAPY,QAAA,UAAU,cAOtB"}
@@ -0,0 +1,12 @@
1
+ .steps {
2
+ padding: 0;
3
+ margin: 1em;
4
+
5
+ > li {
6
+ list-style: none;
7
+ }
8
+
9
+ > li + li {
10
+ margin-top: 0.25em;
11
+ }
12
+ }
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { ChildrenProps } from '../customise';
3
+ export declare const Children: React.FunctionComponent<ChildrenProps>;
4
+ //# sourceMappingURL=Children.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Children.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/Children.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAmB,aAAa,EAAwC,MAAM,cAAc,CAAA;AAUnG,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,iBAAiB,CAAC,aAAa,CAO3D,CAAA"}
@@ -0,0 +1,18 @@
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.Children = void 0;
7
+ const react_1 = __importDefault(require("react"));
8
+ const customise_1 = require("../customise");
9
+ const Children_module_scss_1 = __importDefault(require("./Children.module.scss"));
10
+ const DefaultRenderer = ({ styles, children, }) => {
11
+ return react_1.default.createElement("div", { className: styles.children }, children);
12
+ };
13
+ const Children = (props) => {
14
+ const ResolvedRenderer = (0, customise_1.useCustomRendering)('Children', Children_module_scss_1.default, DefaultRenderer);
15
+ return react_1.default.createElement(ResolvedRenderer, Object.assign({}, props));
16
+ };
17
+ exports.Children = Children;
18
+ //# sourceMappingURL=Children.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Children.js","sourceRoot":"","sources":["../../../../src/components/gherkin/Children.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAAyB;AAEzB,4CAAmG;AACnG,kFAAkD;AAElD,MAAM,eAAe,GAAqD,CAAC,EACzE,MAAM,EACN,QAAQ,GACT,EAAE,EAAE;IACH,OAAO,uCAAK,SAAS,EAAE,MAAM,CAAC,QAAQ,IAAG,QAAQ,CAAO,CAAA;AAC1D,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"}
@@ -0,0 +1,6 @@
1
+ @import '../../styles/theming';
2
+
3
+ .children {
4
+ padding: 0;
5
+ margin: 1em;
6
+ }
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { DataTableProps } from '../customise';
3
+ export declare const DataTable: React.FunctionComponent<DataTableProps>;
4
+ //# sourceMappingURL=DataTable.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataTable.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/DataTable.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,EAEL,cAAc,EAGf,MAAM,cAAc,CAAA;AAiCrB,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,iBAAiB,CAAC,cAAc,CAO7D,CAAA"}
@@ -0,0 +1,25 @@
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.DataTable = void 0;
7
+ const react_1 = __importDefault(require("react"));
8
+ const HighLight_1 = require("../app/HighLight");
9
+ const customise_1 = require("../customise");
10
+ const DataTable_module_scss_1 = __importDefault(require("./DataTable.module.scss"));
11
+ const isNumber_1 = __importDefault(require("./isNumber"));
12
+ const TableBody = ({ rows }) => {
13
+ return (react_1.default.createElement("tbody", null, rows.map((row, i) => (react_1.default.createElement("tr", { key: i }, (row.cells || []).map((cell, j) => (react_1.default.createElement("td", { key: j, style: { textAlign: (0, isNumber_1.default)(cell.value) ? 'right' : 'left' } },
14
+ react_1.default.createElement(HighLight_1.HighLight, { text: cell.value })))))))));
15
+ };
16
+ const DefaultRenderer = ({ dataTable, styles, }) => {
17
+ return (react_1.default.createElement("table", { className: styles.table },
18
+ react_1.default.createElement(TableBody, { rows: dataTable.rows || [] })));
19
+ };
20
+ const DataTable = (props) => {
21
+ const ResolvedRenderer = (0, customise_1.useCustomRendering)('DataTable', DataTable_module_scss_1.default, DefaultRenderer);
22
+ return react_1.default.createElement(ResolvedRenderer, Object.assign({}, props));
23
+ };
24
+ exports.DataTable = DataTable;
25
+ //# sourceMappingURL=DataTable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataTable.js","sourceRoot":"","sources":["../../../../src/components/gherkin/DataTable.tsx"],"names":[],"mappings":";;;;;;AACA,kDAAyB;AAEzB,gDAA4C;AAC5C,4CAKqB;AACrB,oFAAmD;AACnD,0DAAiC;AAEjC,MAAM,SAAS,GAEV,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE;IAChB,OAAO,CACL,6CACG,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC,CACpB,sCAAI,GAAG,EAAE,CAAC,IACP,CAAC,GAAG,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAClC,sCAAI,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,SAAS,EAAE,IAAA,kBAAQ,EAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,EAAE;QACvE,8BAAC,qBAAS,IAAC,IAAI,EAAE,IAAI,CAAC,KAAK,GAAI,CAC5B,CACN,CAAC,CACC,CACN,CAAC,CACI,CACT,CAAA;AACH,CAAC,CAAA;AAED,MAAM,eAAe,GAAuD,CAAC,EAC3E,SAAS,EACT,MAAM,GACP,EAAE,EAAE;IACH,OAAO,CACL,yCAAO,SAAS,EAAE,MAAM,CAAC,KAAK;QAC5B,8BAAC,SAAS,IAAC,IAAI,EAAE,SAAS,CAAC,IAAI,IAAI,EAAE,GAAI,CACnC,CACT,CAAA;AACH,CAAC,CAAA;AAEM,MAAM,SAAS,GAA4C,CAAC,KAAK,EAAE,EAAE;IAC1E,MAAM,gBAAgB,GAAG,IAAA,8BAAkB,EACzC,WAAW,EACX,+BAAa,EACb,eAAe,CAChB,CAAA;IACD,OAAO,8BAAC,gBAAgB,oBAAK,KAAK,EAAI,CAAA;AACxC,CAAC,CAAA;AAPY,QAAA,SAAS,aAOrB"}
@@ -0,0 +1,41 @@
1
+ @import '../../styles/theming';
2
+
3
+ @mixin cucumber-table-style {
4
+ border-collapse: collapse;
5
+ margin: 0;
6
+
7
+ thead tr {
8
+ border-bottom: 6px solid transparent;
9
+ }
10
+
11
+ tr + tr {
12
+ border-top: 6px solid transparent;
13
+ }
14
+
15
+ th, td {
16
+ padding: 0.4em 0.6em;
17
+ border-width: 2px;
18
+ border-style: solid;
19
+ border-top: none;
20
+ border-bottom: none;
21
+ border-color: $keywordColor;
22
+ color: $parameterColor;
23
+ }
24
+ }
25
+
26
+ .table {
27
+ @include cucumber-table-style;
28
+ }
29
+
30
+ .examplesTable {
31
+ @include cucumber-table-style;
32
+
33
+ th:first-child, td:first-child {
34
+ border-left: none;
35
+ }
36
+ }
37
+
38
+ .detailRow.detailRow {
39
+ border-top: none;
40
+ }
41
+
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { DescriptionProps } from '../customise';
3
+ export declare const Description: React.FunctionComponent<DescriptionProps>;
4
+ //# sourceMappingURL=Description.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Description.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/Description.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,EAGL,gBAAgB,EAEjB,MAAM,cAAc,CAAA;AAiBrB,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,iBAAiB,CAAC,gBAAgB,CAOjE,CAAA"}
@@ -0,0 +1,23 @@
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.Description = void 0;
7
+ const react_1 = __importDefault(require("react"));
8
+ const HighLight_1 = require("../app/HighLight");
9
+ const customise_1 = require("../customise");
10
+ const Description_module_scss_1 = __importDefault(require("./Description.module.scss"));
11
+ const DefaultRenderer = ({ description, styles, }) => {
12
+ if (!description || description.trim() === '') {
13
+ return null;
14
+ }
15
+ return (react_1.default.createElement("div", { className: styles.content },
16
+ react_1.default.createElement(HighLight_1.HighLight, { text: description, markdown: true })));
17
+ };
18
+ const Description = (props) => {
19
+ const ResolvedRenderer = (0, customise_1.useCustomRendering)('Description', Description_module_scss_1.default, DefaultRenderer);
20
+ return react_1.default.createElement(ResolvedRenderer, Object.assign({}, props));
21
+ };
22
+ exports.Description = Description;
23
+ //# sourceMappingURL=Description.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Description.js","sourceRoot":"","sources":["../../../../src/components/gherkin/Description.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAAyB;AAEzB,gDAA4C;AAC5C,4CAKqB;AACrB,wFAAqD;AAErD,MAAM,eAAe,GAA2D,CAAC,EAC/E,WAAW,EACX,MAAM,GACP,EAAE,EAAE;IACH,IAAI,CAAC,WAAW,IAAI,WAAW,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE;QAC7C,OAAO,IAAI,CAAA;KACZ;IACD,OAAO,CACL,uCAAK,SAAS,EAAE,MAAM,CAAC,OAAO;QAC5B,8BAAC,qBAAS,IAAC,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,GAAI,CAC5C,CACP,CAAA;AACH,CAAC,CAAA;AAEM,MAAM,WAAW,GAA8C,CAAC,KAAK,EAAE,EAAE;IAC9E,MAAM,gBAAgB,GAAG,IAAA,8BAAkB,EACzC,aAAa,EACb,iCAAa,EACb,eAAe,CAChB,CAAA;IACD,OAAO,8BAAC,gBAAgB,oBAAK,KAAK,EAAI,CAAA;AACxC,CAAC,CAAA;AAPY,QAAA,WAAW,eAOvB"}
@@ -0,0 +1,10 @@
1
+ @import '../../styles/theming';
2
+
3
+ .content {
4
+ padding: 0;
5
+ margin: 1em;
6
+
7
+ a {
8
+ color: $anchorColor;
9
+ }
10
+ }
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { DocStringProps } from '../customise';
3
+ export declare const DocString: React.FunctionComponent<DocStringProps>;
4
+ //# sourceMappingURL=DocString.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DocString.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/DocString.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,EAGL,cAAc,EAEf,MAAM,cAAc,CAAA;AAcrB,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,iBAAiB,CAAC,cAAc,CAO7D,CAAA"}
@@ -0,0 +1,20 @@
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.DocString = void 0;
7
+ const react_1 = __importDefault(require("react"));
8
+ const HighLight_1 = require("../app/HighLight");
9
+ const customise_1 = require("../customise");
10
+ const DocString_module_scss_1 = __importDefault(require("./DocString.module.scss"));
11
+ const DefaultRenderer = ({ docString, styles, }) => {
12
+ return (react_1.default.createElement("pre", { className: styles.docString },
13
+ react_1.default.createElement(HighLight_1.HighLight, { text: docString.content })));
14
+ };
15
+ const DocString = (props) => {
16
+ const ResolvedRenderer = (0, customise_1.useCustomRendering)('DocString', DocString_module_scss_1.default, DefaultRenderer);
17
+ return react_1.default.createElement(ResolvedRenderer, Object.assign({}, props));
18
+ };
19
+ exports.DocString = DocString;
20
+ //# sourceMappingURL=DocString.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DocString.js","sourceRoot":"","sources":["../../../../src/components/gherkin/DocString.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAAyB;AAEzB,gDAA4C;AAC5C,4CAKqB;AACrB,oFAAmD;AAEnD,MAAM,eAAe,GAAuD,CAAC,EAC3E,SAAS,EACT,MAAM,GACP,EAAE,EAAE;IACH,OAAO,CACL,uCAAK,SAAS,EAAE,MAAM,CAAC,SAAS;QAC9B,8BAAC,qBAAS,IAAC,IAAI,EAAE,SAAS,CAAC,OAAO,GAAI,CAClC,CACP,CAAA;AACH,CAAC,CAAA;AAEM,MAAM,SAAS,GAA4C,CAAC,KAAK,EAAE,EAAE;IAC1E,MAAM,gBAAgB,GAAG,IAAA,8BAAkB,EACzC,WAAW,EACX,+BAAa,EACb,eAAe,CAChB,CAAA;IACD,OAAO,8BAAC,gBAAgB,oBAAK,KAAK,EAAI,CAAA;AACxC,CAAC,CAAA;AAPY,QAAA,SAAS,aAOrB"}
@@ -0,0 +1,25 @@
1
+ @import '../../styles/theming';
2
+
3
+ .docString {
4
+ font-family: $monoFamily;
5
+ color: $docstringColor;
6
+ padding-bottom: 0.25em;
7
+ margin: 0;
8
+ overflow-x: auto;
9
+
10
+ &::before,
11
+ &::after {
12
+ content: '"""';
13
+ display: block;
14
+ // adjust so quote marks sit consistent distance from content at both ends
15
+ transform: translateY(0.25em);
16
+ }
17
+
18
+ &::before {
19
+ padding-bottom: 0.25em;
20
+ }
21
+
22
+ &::after {
23
+ padding-top: 0.25em;
24
+ }
25
+ }
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { ErrorMessageProps } from '../customise';
3
+ export declare const ErrorMessage: React.FunctionComponent<ErrorMessageProps>;
4
+ //# sourceMappingURL=ErrorMessage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ErrorMessage.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/ErrorMessage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAGL,iBAAiB,EAElB,MAAM,cAAc,CAAA;AAUrB,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAOnE,CAAA"}
@@ -0,0 +1,18 @@
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.ErrorMessage = void 0;
7
+ const react_1 = __importDefault(require("react"));
8
+ const customise_1 = require("../customise");
9
+ const ErrorMessage_module_scss_1 = __importDefault(require("./ErrorMessage.module.scss"));
10
+ const DefaultRenderer = ({ message, styles, }) => {
11
+ return react_1.default.createElement("pre", { className: styles.message }, message);
12
+ };
13
+ const ErrorMessage = (props) => {
14
+ const ResolvedRenderer = (0, customise_1.useCustomRendering)('ErrorMessage', ErrorMessage_module_scss_1.default, DefaultRenderer);
15
+ return react_1.default.createElement(ResolvedRenderer, Object.assign({}, props));
16
+ };
17
+ exports.ErrorMessage = ErrorMessage;
18
+ //# sourceMappingURL=ErrorMessage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ErrorMessage.js","sourceRoot":"","sources":["../../../../src/components/gherkin/ErrorMessage.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAAyB;AAEzB,4CAKqB;AACrB,0FAAsD;AAEtD,MAAM,eAAe,GAA6D,CAAC,EACjF,OAAO,EACP,MAAM,GACP,EAAE,EAAE;IACH,OAAO,uCAAK,SAAS,EAAE,MAAM,CAAC,OAAO,IAAG,OAAO,CAAO,CAAA;AACxD,CAAC,CAAA;AAEM,MAAM,YAAY,GAA+C,CAAC,KAAK,EAAE,EAAE;IAChF,MAAM,gBAAgB,GAAG,IAAA,8BAAkB,EACzC,cAAc,EACd,kCAAa,EACb,eAAe,CAChB,CAAA;IACD,OAAO,8BAAC,gBAAgB,oBAAK,KAAK,EAAI,CAAA;AACxC,CAAC,CAAA;AAPY,QAAA,YAAY,gBAOxB"}
@@ -0,0 +1,13 @@
1
+ @import '../../styles/theming';
2
+
3
+ .message {
4
+ white-space: pre-wrap;
5
+ font-family: $monoFamily;
6
+ font-size: 0.875em;
7
+ padding: 0.666em 0.75em;
8
+ border-radius: 0.25em;
9
+ margin: 0;
10
+ overflow-x: auto;
11
+ background-color: $errorBackgroundColor;
12
+ color: $errorTextColor;
13
+ }
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { ExamplesProps } from '../customise';
3
+ export declare const Examples: React.FunctionComponent<ExamplesProps>;
4
+ //# sourceMappingURL=Examples.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,33 @@
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");
16
+ 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,
21
+ examples.keyword,
22
+ ":"),
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 })))));
27
+ };
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));
31
+ };
32
+ exports.Examples = Examples;
33
+ //# sourceMappingURL=Examples.js.map
@@ -0,0 +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"}
@@ -0,0 +1,3 @@
1
+ .example {
2
+ margin-left: 1rem;
3
+ }
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { ExamplesTableProps } from '../customise';
3
+ export declare const ExamplesTable: React.FunctionComponent<ExamplesTableProps>;
4
+ //# sourceMappingURL=ExamplesTable.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExamplesTable.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/ExamplesTable.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAA;AAKzB,OAAO,EAGL,kBAAkB,EAEnB,MAAM,cAAc,CAAA;AA2BrB,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,iBAAiB,CAAC,kBAAkB,CAOrE,CAAA"}
@@ -0,0 +1,58 @@
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.ExamplesTable = void 0;
7
+ const messages_1 = require("@cucumber/messages");
8
+ const react_1 = __importDefault(require("react"));
9
+ const CucumberQueryContext_1 = __importDefault(require("../../CucumberQueryContext"));
10
+ const GherkinQueryContext_1 = __importDefault(require("../../GherkinQueryContext"));
11
+ const UriContext_1 = __importDefault(require("../../UriContext"));
12
+ const customise_1 = require("../customise");
13
+ const Attachment_1 = require("./Attachment");
14
+ const DataTable_module_scss_1 = __importDefault(require("./DataTable.module.scss"));
15
+ const ErrorMessage_1 = require("./ErrorMessage");
16
+ const isNumber_1 = __importDefault(require("./isNumber"));
17
+ const StatusIcon_1 = require("./StatusIcon");
18
+ const DefaultRenderer = ({ tableHeader, tableBody, styles, }) => {
19
+ return (react_1.default.createElement("table", { className: styles.examplesTable },
20
+ react_1.default.createElement("thead", null,
21
+ react_1.default.createElement("tr", null,
22
+ react_1.default.createElement("th", null, "\u00A0"),
23
+ tableHeader.cells.map((cell, j) => (react_1.default.createElement("th", { key: j }, cell.value))))),
24
+ react_1.default.createElement(ExamplesTableBody, { rows: tableBody || [], detailClass: styles.detailRow })));
25
+ };
26
+ const ExamplesTable = (props) => {
27
+ const ResolvedRenderer = (0, customise_1.useCustomRendering)('ExamplesTable', DataTable_module_scss_1.default, DefaultRenderer);
28
+ return react_1.default.createElement(ResolvedRenderer, Object.assign({}, props));
29
+ };
30
+ exports.ExamplesTable = ExamplesTable;
31
+ const ExamplesTableBody = ({ rows, detailClass }) => {
32
+ return (react_1.default.createElement("tbody", null, rows.map((row, i) => (react_1.default.createElement(RowOrRows, { row: row, key: i, detailClass: detailClass })))));
33
+ };
34
+ const RowOrRows = ({ row, detailClass }) => {
35
+ const gherkinQuery = react_1.default.useContext(GherkinQueryContext_1.default);
36
+ const cucumberQuery = react_1.default.useContext(CucumberQueryContext_1.default);
37
+ const uri = react_1.default.useContext(UriContext_1.default);
38
+ const pickleIds = uri ? gherkinQuery.getPickleIds(uri, row.id) : [];
39
+ const testStepResult = (0, messages_1.getWorstTestStepResult)(cucumberQuery.getPickleTestStepResults(pickleIds));
40
+ const pickleStepIds = gherkinQuery.getPickleStepIds(row.id);
41
+ const attachments = cucumberQuery.getPickleStepAttachments(pickleStepIds);
42
+ return (react_1.default.createElement(react_1.default.Fragment, null,
43
+ react_1.default.createElement("tr", null,
44
+ react_1.default.createElement("td", null,
45
+ react_1.default.createElement(StatusIcon_1.StatusIcon, { status: testStepResult.status })),
46
+ row.cells.map((cell, j) => (react_1.default.createElement("td", { key: j, style: { textAlign: (0, isNumber_1.default)(cell.value) ? 'right' : 'left' } }, cell.value)))),
47
+ react_1.default.createElement(AttachmentAndErrorRow, { key: "row-error", className: detailClass, attachments: attachments, errorMessage: testStepResult.message, colSpan: row.cells.length })));
48
+ };
49
+ const AttachmentAndErrorRow = ({ attachments, errorMessage, colSpan, className, }) => {
50
+ if (!errorMessage && attachments.length === 0)
51
+ return null;
52
+ return (react_1.default.createElement("tr", { className: className },
53
+ react_1.default.createElement("td", null, "\u00A0"),
54
+ react_1.default.createElement("td", { colSpan: colSpan },
55
+ errorMessage && react_1.default.createElement(ErrorMessage_1.ErrorMessage, { message: errorMessage }),
56
+ attachments.map((attachment, i) => (react_1.default.createElement(Attachment_1.Attachment, { key: i, attachment: attachment }))))));
57
+ };
58
+ //# sourceMappingURL=ExamplesTable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExamplesTable.js","sourceRoot":"","sources":["../../../../src/components/gherkin/ExamplesTable.tsx"],"names":[],"mappings":";;;;;;A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CAAC,EACnF,WAAW,EACX,YAAY,EACZ,OAAO,EACP,SAAS,GACV,EAAE,EAAE;IACH,IAAI,CAAC,YAAY,IAAI,WAAW,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,IAAI,CAAA;IAC1D,OAAO,CACL,sCAAI,SAAS,EAAE,SAAS;QACtB,mDAAe;QACf,sCAAI,OAAO,EAAE,OAAO;YACjB,YAAY,IAAI,8BAAC,2BAAY,IAAC,OAAO,EAAE,YAAY,GAAI;YACvD,WAAW,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,CAAC,EAAE,EAAE,CAAC,CAClC,8BAAC,uBAAU,IAAC,GAAG,EAAE,CAAC,EAAE,UAAU,EAAE,UAAU,GAAI,CAC/C,CAAC,CACC,CACF,CACN,CAAA;AACH,CAAC,CAAA"}
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { FeatureProps } from '../customise';
3
+ export declare const Feature: React.FunctionComponent<FeatureProps>;
4
+ //# sourceMappingURL=Feature.d.ts.map
@@ -0,0 +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"}