@cucumber/react-components 24.1.2 → 24.3.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 (425) hide show
  1. package/LICENSE +1 -1
  2. package/dist/src/CucumberQueryContext.d.ts +1 -2
  3. package/dist/src/CucumberQueryContext.d.ts.map +1 -1
  4. package/dist/src/CucumberQueryContext.js +2 -2
  5. package/dist/src/CucumberQueryContext.js.map +1 -1
  6. package/dist/src/GherkinQueryContext.d.ts +1 -2
  7. package/dist/src/GherkinQueryContext.d.ts.map +1 -1
  8. package/dist/src/GherkinQueryContext.js +2 -2
  9. package/dist/src/GherkinQueryContext.js.map +1 -1
  10. package/dist/src/SearchContext.d.ts +11 -5
  11. package/dist/src/SearchContext.d.ts.map +1 -1
  12. package/dist/src/SearchContext.js +4 -2
  13. package/dist/src/SearchContext.js.map +1 -1
  14. package/dist/src/ciCommitLink.d.ts +1 -1
  15. package/dist/src/ciCommitLink.d.ts.map +1 -1
  16. package/dist/src/ciCommitLink.js +1 -1
  17. package/dist/src/ciCommitLink.js.map +1 -1
  18. package/dist/src/components/app/CICommitLink.d.ts +2 -2
  19. package/dist/src/components/app/CICommitLink.d.ts.map +1 -1
  20. package/dist/src/components/app/CICommitLink.js +3 -8
  21. package/dist/src/components/app/CICommitLink.js.map +1 -1
  22. package/dist/src/components/app/CIJobLink.d.ts +2 -2
  23. package/dist/src/components/app/CIJobLink.d.ts.map +1 -1
  24. package/dist/src/components/app/CIJobLink.js +3 -7
  25. package/dist/src/components/app/CIJobLink.js.map +1 -1
  26. package/dist/src/components/app/ControlledSearchProvider.d.ts +2 -2
  27. package/dist/src/components/app/ControlledSearchProvider.d.ts.map +1 -1
  28. package/dist/src/components/app/ControlledSearchProvider.js +24 -2
  29. package/dist/src/components/app/ControlledSearchProvider.js.map +1 -1
  30. package/dist/src/components/app/CopyButton.d.ts +2 -1
  31. package/dist/src/components/app/CopyButton.d.ts.map +1 -1
  32. package/dist/src/components/app/CopyButton.js +4 -4
  33. package/dist/src/components/app/CopyButton.js.map +1 -1
  34. package/dist/src/components/app/DocumentAccordion.d.ts +3 -3
  35. package/dist/src/components/app/DocumentAccordion.d.ts.map +1 -1
  36. package/dist/src/components/app/DocumentAccordion.js +12 -20
  37. package/dist/src/components/app/DocumentAccordion.js.map +1 -1
  38. package/dist/src/components/app/DocumentAccordion.module.scss +15 -7
  39. package/dist/src/components/app/EnvelopesProvider.d.ts +2 -2
  40. package/dist/src/components/app/EnvelopesProvider.d.ts.map +1 -1
  41. package/dist/src/components/app/EnvelopesProvider.js +3 -2
  42. package/dist/src/components/app/EnvelopesProvider.js.map +1 -1
  43. package/dist/src/components/app/ExecutionSummary.d.ts +1 -1
  44. package/dist/src/components/app/ExecutionSummary.d.ts.map +1 -1
  45. package/dist/src/components/app/ExecutionSummary.js +3 -49
  46. package/dist/src/components/app/ExecutionSummary.js.map +1 -1
  47. package/dist/src/components/app/FilteredDocuments.d.ts +1 -1
  48. package/dist/src/components/app/FilteredDocuments.d.ts.map +1 -1
  49. package/dist/src/components/app/FilteredDocuments.js +4 -4
  50. package/dist/src/components/app/FilteredDocuments.js.map +1 -1
  51. package/dist/src/components/app/GherkinDocumentList.d.ts +3 -3
  52. package/dist/src/components/app/GherkinDocumentList.d.ts.map +1 -1
  53. package/dist/src/components/app/GherkinDocumentList.js +8 -9
  54. package/dist/src/components/app/GherkinDocumentList.js.map +1 -1
  55. package/dist/src/components/app/Header.d.ts +1 -1
  56. package/dist/src/components/app/Header.d.ts.map +1 -1
  57. package/dist/src/components/app/Header.js +4 -4
  58. package/dist/src/components/app/Header.js.map +1 -1
  59. package/dist/src/components/app/HealthChart.d.ts +1 -1
  60. package/dist/src/components/app/HealthChart.d.ts.map +1 -1
  61. package/dist/src/components/app/HealthChart.js +6 -7
  62. package/dist/src/components/app/HealthChart.js.map +1 -1
  63. package/dist/src/components/app/HighLight.d.ts +2 -2
  64. package/dist/src/components/app/HighLight.d.ts.map +1 -1
  65. package/dist/src/components/app/HighLight.js +15 -9
  66. package/dist/src/components/app/HighLight.js.map +1 -1
  67. package/dist/src/components/app/ImplementationIcon.d.ts +2 -2
  68. package/dist/src/components/app/ImplementationIcon.d.ts.map +1 -1
  69. package/dist/src/components/app/ImplementationIcon.js +2 -2
  70. package/dist/src/components/app/ImplementationIcon.js.map +1 -1
  71. package/dist/src/components/app/InMemorySearchProvider.d.ts +2 -2
  72. package/dist/src/components/app/InMemorySearchProvider.d.ts.map +1 -1
  73. package/dist/src/components/app/InMemorySearchProvider.js +3 -2
  74. package/dist/src/components/app/InMemorySearchProvider.js.map +1 -1
  75. package/dist/src/components/app/NavigationButton.d.ts +1 -1
  76. package/dist/src/components/app/NavigationButton.d.ts.map +1 -1
  77. package/dist/src/components/app/NavigationButton.js +2 -2
  78. package/dist/src/components/app/NavigationButton.js.map +1 -1
  79. package/dist/src/components/app/OSIcon.d.ts +2 -2
  80. package/dist/src/components/app/OSIcon.d.ts.map +1 -1
  81. package/dist/src/components/app/OSIcon.js +4 -4
  82. package/dist/src/components/app/OSIcon.js.map +1 -1
  83. package/dist/src/components/app/QueriesProvider.d.ts +3 -3
  84. package/dist/src/components/app/QueriesProvider.d.ts.map +1 -1
  85. package/dist/src/components/app/QueriesProvider.js +4 -3
  86. package/dist/src/components/app/QueriesProvider.js.map +1 -1
  87. package/dist/src/components/app/Report.d.ts +1 -1
  88. package/dist/src/components/app/Report.d.ts.map +1 -1
  89. package/dist/src/components/app/Report.js +2 -11
  90. package/dist/src/components/app/Report.js.map +1 -1
  91. package/dist/src/components/app/RuntimeIcon.d.ts +2 -2
  92. package/dist/src/components/app/RuntimeIcon.d.ts.map +1 -1
  93. package/dist/src/components/app/RuntimeIcon.js +4 -4
  94. package/dist/src/components/app/RuntimeIcon.js.map +1 -1
  95. package/dist/src/components/app/SearchBar.d.ts +1 -1
  96. package/dist/src/components/app/SearchBar.d.ts.map +1 -1
  97. package/dist/src/components/app/SearchBar.js +9 -24
  98. package/dist/src/components/app/SearchBar.js.map +1 -1
  99. package/dist/src/components/app/StatusesSummary.d.ts +1 -1
  100. package/dist/src/components/app/StatusesSummary.d.ts.map +1 -1
  101. package/dist/src/components/app/StatusesSummary.js +8 -11
  102. package/dist/src/components/app/StatusesSummary.js.map +1 -1
  103. package/dist/src/components/app/TestRunHooks.d.ts +1 -1
  104. package/dist/src/components/app/TestRunHooks.d.ts.map +1 -1
  105. package/dist/src/components/app/TestRunHooks.js +5 -5
  106. package/dist/src/components/app/TestRunHooks.js.map +1 -1
  107. package/dist/src/components/app/UrlSearchProvider.d.ts +1 -1
  108. package/dist/src/components/app/UrlSearchProvider.d.ts.map +1 -1
  109. package/dist/src/components/app/UrlSearchProvider.js +6 -3
  110. package/dist/src/components/app/UrlSearchProvider.js.map +1 -1
  111. package/dist/src/components/app/icons/CucumberLogo.d.ts +1 -1
  112. package/dist/src/components/app/icons/CucumberLogo.d.ts.map +1 -1
  113. package/dist/src/components/app/icons/CucumberLogo.js +2 -6
  114. package/dist/src/components/app/icons/CucumberLogo.js.map +1 -1
  115. package/dist/src/components/app/icons/Jvm.d.ts +1 -1
  116. package/dist/src/components/app/icons/Jvm.d.ts.map +1 -1
  117. package/dist/src/components/app/icons/Jvm.js +2 -7
  118. package/dist/src/components/app/icons/Jvm.js.map +1 -1
  119. package/dist/src/components/app/icons/Linux.d.ts +1 -1
  120. package/dist/src/components/app/icons/Linux.d.ts.map +1 -1
  121. package/dist/src/components/app/icons/Linux.js +2 -17
  122. package/dist/src/components/app/icons/Linux.js.map +1 -1
  123. package/dist/src/components/app/icons/MacOS.d.ts +1 -1
  124. package/dist/src/components/app/icons/MacOS.d.ts.map +1 -1
  125. package/dist/src/components/app/icons/MacOS.js +2 -3
  126. package/dist/src/components/app/icons/MacOS.js.map +1 -1
  127. package/dist/src/components/app/icons/NodeJs.d.ts +1 -1
  128. package/dist/src/components/app/icons/NodeJs.d.ts.map +1 -1
  129. package/dist/src/components/app/icons/NodeJs.js +2 -5
  130. package/dist/src/components/app/icons/NodeJs.js.map +1 -1
  131. package/dist/src/components/app/icons/Ruby.d.ts +1 -1
  132. package/dist/src/components/app/icons/Ruby.d.ts.map +1 -1
  133. package/dist/src/components/app/icons/Ruby.js +2 -3
  134. package/dist/src/components/app/icons/Ruby.js.map +1 -1
  135. package/dist/src/components/app/icons/Windows.d.ts +1 -1
  136. package/dist/src/components/app/icons/Windows.d.ts.map +1 -1
  137. package/dist/src/components/app/icons/Windows.js +2 -3
  138. package/dist/src/components/app/icons/Windows.js.map +1 -1
  139. package/dist/src/components/app/makeSetupString.d.ts +1 -1
  140. package/dist/src/components/app/makeSetupString.d.ts.map +1 -1
  141. package/dist/src/components/app/makeSetupString.js.map +1 -1
  142. package/dist/src/components/app/markdownComponents.d.ts +9 -0
  143. package/dist/src/components/app/markdownComponents.d.ts.map +1 -0
  144. package/dist/src/components/app/markdownComponents.js +6 -0
  145. package/dist/src/components/app/markdownComponents.js.map +1 -0
  146. package/dist/src/components/app/rehypePlugins.d.ts +2 -2
  147. package/dist/src/components/app/rehypePlugins.d.ts.map +1 -1
  148. package/dist/src/components/app/rehypePlugins.js.map +1 -1
  149. package/dist/src/components/app/remarkPlugins.d.ts +2 -2
  150. package/dist/src/components/app/remarkPlugins.d.ts.map +1 -1
  151. package/dist/src/components/app/remarkPlugins.js.map +1 -1
  152. package/dist/src/components/customise/CustomRendering.d.ts +18 -18
  153. package/dist/src/components/customise/CustomRendering.d.ts.map +1 -1
  154. package/dist/src/components/customise/CustomRendering.js +10 -9
  155. package/dist/src/components/customise/CustomRendering.js.map +1 -1
  156. package/dist/src/components/customise/CustomRendering.stories.scss +0 -17
  157. package/dist/src/components/gherkin/Anchor.d.ts +3 -3
  158. package/dist/src/components/gherkin/Anchor.d.ts.map +1 -1
  159. package/dist/src/components/gherkin/Anchor.js +3 -6
  160. package/dist/src/components/gherkin/Anchor.js.map +1 -1
  161. package/dist/src/components/gherkin/Background.d.ts +3 -3
  162. package/dist/src/components/gherkin/Background.d.ts.map +1 -1
  163. package/dist/src/components/gherkin/Background.js +4 -10
  164. package/dist/src/components/gherkin/Background.js.map +1 -1
  165. package/dist/src/components/gherkin/Children.d.ts +3 -3
  166. package/dist/src/components/gherkin/Children.d.ts.map +1 -1
  167. package/dist/src/components/gherkin/Children.js +3 -3
  168. package/dist/src/components/gherkin/Children.js.map +1 -1
  169. package/dist/src/components/gherkin/DataTable.d.ts +3 -3
  170. package/dist/src/components/gherkin/DataTable.d.ts.map +1 -1
  171. package/dist/src/components/gherkin/DataTable.js +4 -6
  172. package/dist/src/components/gherkin/DataTable.js.map +1 -1
  173. package/dist/src/components/gherkin/Description.d.ts +3 -3
  174. package/dist/src/components/gherkin/Description.d.ts.map +1 -1
  175. package/dist/src/components/gherkin/Description.js +3 -4
  176. package/dist/src/components/gherkin/Description.js.map +1 -1
  177. package/dist/src/components/gherkin/DocString.d.ts +3 -3
  178. package/dist/src/components/gherkin/DocString.d.ts.map +1 -1
  179. package/dist/src/components/gherkin/DocString.js +3 -4
  180. package/dist/src/components/gherkin/DocString.js.map +1 -1
  181. package/dist/src/components/gherkin/ErrorMessage.d.ts +2 -2
  182. package/dist/src/components/gherkin/ErrorMessage.d.ts.map +1 -1
  183. package/dist/src/components/gherkin/ErrorMessage.js +5 -3
  184. package/dist/src/components/gherkin/ErrorMessage.js.map +1 -1
  185. package/dist/src/components/gherkin/ErrorMessage.module.scss +17 -5
  186. package/dist/src/components/gherkin/Examples.d.ts +3 -3
  187. package/dist/src/components/gherkin/Examples.d.ts.map +1 -1
  188. package/dist/src/components/gherkin/Examples.js +7 -18
  189. package/dist/src/components/gherkin/Examples.js.map +1 -1
  190. package/dist/src/components/gherkin/Feature.d.ts +3 -3
  191. package/dist/src/components/gherkin/Feature.d.ts.map +1 -1
  192. package/dist/src/components/gherkin/Feature.js +14 -24
  193. package/dist/src/components/gherkin/Feature.js.map +1 -1
  194. package/dist/src/components/gherkin/GherkinDocument.d.ts +3 -3
  195. package/dist/src/components/gherkin/GherkinDocument.d.ts.map +1 -1
  196. package/dist/src/components/gherkin/GherkinDocument.js +3 -3
  197. package/dist/src/components/gherkin/GherkinDocument.js.map +1 -1
  198. package/dist/src/components/gherkin/Keyword.d.ts +2 -2
  199. package/dist/src/components/gherkin/Keyword.d.ts.map +1 -1
  200. package/dist/src/components/gherkin/Keyword.js +3 -3
  201. package/dist/src/components/gherkin/Keyword.js.map +1 -1
  202. package/dist/src/components/gherkin/Keyword.module.scss +0 -1
  203. package/dist/src/components/gherkin/Parameter.d.ts +3 -3
  204. package/dist/src/components/gherkin/Parameter.d.ts.map +1 -1
  205. package/dist/src/components/gherkin/Parameter.js +4 -4
  206. package/dist/src/components/gherkin/Parameter.js.map +1 -1
  207. package/dist/src/components/gherkin/Rule.d.ts +3 -3
  208. package/dist/src/components/gherkin/Rule.d.ts.map +1 -1
  209. package/dist/src/components/gherkin/Rule.js +11 -21
  210. package/dist/src/components/gherkin/Rule.js.map +1 -1
  211. package/dist/src/components/gherkin/Scenario.d.ts +3 -3
  212. package/dist/src/components/gherkin/Scenario.d.ts.map +1 -1
  213. package/dist/src/components/gherkin/Scenario.js +5 -14
  214. package/dist/src/components/gherkin/Scenario.js.map +1 -1
  215. package/dist/src/components/gherkin/StatusIcon.d.ts +2 -2
  216. package/dist/src/components/gherkin/StatusIcon.d.ts.map +1 -1
  217. package/dist/src/components/gherkin/StatusIcon.js +10 -10
  218. package/dist/src/components/gherkin/StatusIcon.js.map +1 -1
  219. package/dist/src/components/gherkin/StepsList.d.ts +1 -1
  220. package/dist/src/components/gherkin/StepsList.d.ts.map +1 -1
  221. package/dist/src/components/gherkin/StepsList.js +2 -2
  222. package/dist/src/components/gherkin/StepsList.js.map +1 -1
  223. package/dist/src/components/gherkin/Tags.d.ts +3 -3
  224. package/dist/src/components/gherkin/Tags.d.ts.map +1 -1
  225. package/dist/src/components/gherkin/Tags.js +4 -5
  226. package/dist/src/components/gherkin/Tags.js.map +1 -1
  227. package/dist/src/components/gherkin/Title.d.ts +3 -3
  228. package/dist/src/components/gherkin/Title.d.ts.map +1 -1
  229. package/dist/src/components/gherkin/Title.js +3 -4
  230. package/dist/src/components/gherkin/Title.js.map +1 -1
  231. package/dist/src/components/gherkin/attachment/Attachment.d.ts +3 -3
  232. package/dist/src/components/gherkin/attachment/Attachment.d.ts.map +1 -1
  233. package/dist/src/components/gherkin/attachment/Attachment.js +14 -17
  234. package/dist/src/components/gherkin/attachment/Attachment.js.map +1 -1
  235. package/dist/src/components/gherkin/attachment/Attachment.module.scss +15 -5
  236. package/dist/src/components/gherkin/attachment/Image.d.ts +4 -4
  237. package/dist/src/components/gherkin/attachment/Image.d.ts.map +1 -1
  238. package/dist/src/components/gherkin/attachment/Image.js +6 -8
  239. package/dist/src/components/gherkin/attachment/Image.js.map +1 -1
  240. package/dist/src/components/gherkin/attachment/Links.d.ts +3 -3
  241. package/dist/src/components/gherkin/attachment/Links.d.ts.map +1 -1
  242. package/dist/src/components/gherkin/attachment/Links.js +7 -10
  243. package/dist/src/components/gherkin/attachment/Links.js.map +1 -1
  244. package/dist/src/components/gherkin/attachment/Log.d.ts +3 -3
  245. package/dist/src/components/gherkin/attachment/Log.d.ts.map +1 -1
  246. package/dist/src/components/gherkin/attachment/Log.js +3 -3
  247. package/dist/src/components/gherkin/attachment/Log.js.map +1 -1
  248. package/dist/src/components/gherkin/attachment/Text.d.ts +3 -3
  249. package/dist/src/components/gherkin/attachment/Text.d.ts.map +1 -1
  250. package/dist/src/components/gherkin/attachment/Text.js +4 -6
  251. package/dist/src/components/gherkin/attachment/Text.js.map +1 -1
  252. package/dist/src/components/gherkin/attachment/Unknown.d.ts +2 -2
  253. package/dist/src/components/gherkin/attachment/Unknown.d.ts.map +1 -1
  254. package/dist/src/components/gherkin/attachment/Unknown.js +9 -17
  255. package/dist/src/components/gherkin/attachment/Unknown.js.map +1 -1
  256. package/dist/src/components/gherkin/attachment/Video.d.ts +3 -3
  257. package/dist/src/components/gherkin/attachment/Video.d.ts.map +1 -1
  258. package/dist/src/components/gherkin/attachment/Video.js +6 -10
  259. package/dist/src/components/gherkin/attachment/Video.js.map +1 -1
  260. package/dist/src/components/gherkin/attachment/attachmentFilename.d.ts +1 -1
  261. package/dist/src/components/gherkin/attachment/attachmentFilename.d.ts.map +1 -1
  262. package/dist/src/components/gherkin/attachment/attachmentFilename.js.map +1 -1
  263. package/dist/src/components/gherkin/attachment/base64Decode.d.ts +9 -1
  264. package/dist/src/components/gherkin/attachment/base64Decode.d.ts.map +1 -1
  265. package/dist/src/components/gherkin/attachment/base64Decode.js +17 -3
  266. package/dist/src/components/gherkin/attachment/base64Decode.js.map +1 -1
  267. package/dist/src/components/gherkin/attachment/useText.d.ts +1 -1
  268. package/dist/src/components/gherkin/attachment/useText.d.ts.map +1 -1
  269. package/dist/src/components/gherkin/attachment/useText.js +3 -3
  270. package/dist/src/components/gherkin/attachment/useText.js.map +1 -1
  271. package/dist/src/components/gherkin/composeHookStepTitle.d.ts +1 -1
  272. package/dist/src/components/gherkin/composeHookStepTitle.d.ts.map +1 -1
  273. package/dist/src/components/gherkin/composeHookStepTitle.js +1 -1
  274. package/dist/src/components/gherkin/composeHookStepTitle.js.map +1 -1
  275. package/dist/src/components/gherkin/composePickleStepTitle.d.ts +1 -1
  276. package/dist/src/components/gherkin/composePickleStepTitle.d.ts.map +1 -1
  277. package/dist/src/components/gherkin/composePickleStepTitle.js +2 -2
  278. package/dist/src/components/gherkin/composePickleStepTitle.js.map +1 -1
  279. package/dist/src/components/gherkin/statusName.d.ts +2 -2
  280. package/dist/src/components/gherkin/statusName.d.ts.map +1 -1
  281. package/dist/src/components/gherkin/statusName.js.map +1 -1
  282. package/dist/src/components/results/AmbiguousResult.d.ts +8 -0
  283. package/dist/src/components/results/AmbiguousResult.d.ts.map +1 -0
  284. package/dist/src/components/results/AmbiguousResult.js +11 -0
  285. package/dist/src/components/results/AmbiguousResult.js.map +1 -0
  286. package/dist/src/components/results/AmbiguousResult.module.scss +22 -0
  287. package/dist/src/components/results/FailedResult.d.ts +8 -0
  288. package/dist/src/components/results/FailedResult.d.ts.map +1 -0
  289. package/dist/src/components/results/FailedResult.js +15 -0
  290. package/dist/src/components/results/FailedResult.js.map +1 -0
  291. package/dist/src/components/results/PendingResult.d.ts +8 -0
  292. package/dist/src/components/results/PendingResult.d.ts.map +1 -0
  293. package/dist/src/components/results/PendingResult.js +12 -0
  294. package/dist/src/components/results/PendingResult.js.map +1 -0
  295. package/dist/src/components/results/ResultNote.d.ts +3 -0
  296. package/dist/src/components/results/ResultNote.d.ts.map +1 -0
  297. package/dist/src/components/results/ResultNote.js +6 -0
  298. package/dist/src/components/results/ResultNote.js.map +1 -0
  299. package/dist/src/components/results/ResultNote.module.scss +6 -0
  300. package/dist/src/components/results/SkippedResult.d.ts +8 -0
  301. package/dist/src/components/results/SkippedResult.d.ts.map +1 -0
  302. package/dist/src/components/results/SkippedResult.js +12 -0
  303. package/dist/src/components/results/SkippedResult.js.map +1 -0
  304. package/dist/src/components/results/SourceReference.d.ts +8 -0
  305. package/dist/src/components/results/SourceReference.d.ts.map +1 -0
  306. package/dist/src/components/results/SourceReference.js +13 -0
  307. package/dist/src/components/results/SourceReference.js.map +1 -0
  308. package/dist/src/components/results/SourceReference.module.scss +10 -0
  309. package/dist/src/components/results/TestCaseOutcome.d.ts +2 -2
  310. package/dist/src/components/results/TestCaseOutcome.d.ts.map +1 -1
  311. package/dist/src/components/results/TestCaseOutcome.js +5 -9
  312. package/dist/src/components/results/TestCaseOutcome.js.map +1 -1
  313. package/dist/src/components/results/TestRunHookOutcome.d.ts +2 -2
  314. package/dist/src/components/results/TestRunHookOutcome.d.ts.map +1 -1
  315. package/dist/src/components/results/TestRunHookOutcome.js +4 -13
  316. package/dist/src/components/results/TestRunHookOutcome.js.map +1 -1
  317. package/dist/src/components/results/TestStepAttachments.d.ts +2 -2
  318. package/dist/src/components/results/TestStepAttachments.d.ts.map +1 -1
  319. package/dist/src/components/results/TestStepAttachments.js +4 -5
  320. package/dist/src/components/results/TestStepAttachments.js.map +1 -1
  321. package/dist/src/components/results/TestStepDuration.d.ts +2 -2
  322. package/dist/src/components/results/TestStepDuration.d.ts.map +1 -1
  323. package/dist/src/components/results/TestStepDuration.js +4 -2
  324. package/dist/src/components/results/TestStepDuration.js.map +1 -1
  325. package/dist/src/components/results/TestStepOutcome.d.ts +2 -2
  326. package/dist/src/components/results/TestStepOutcome.d.ts.map +1 -1
  327. package/dist/src/components/results/TestStepOutcome.js +18 -27
  328. package/dist/src/components/results/TestStepOutcome.js.map +1 -1
  329. package/dist/src/components/results/TestStepOutcome.module.scss +1 -1
  330. package/dist/src/components/results/UndefinedResult.d.ts +8 -0
  331. package/dist/src/components/results/UndefinedResult.d.ts.map +1 -0
  332. package/dist/src/components/results/UndefinedResult.js +18 -0
  333. package/dist/src/components/results/UndefinedResult.js.map +1 -0
  334. package/dist/src/components/results/UndefinedResult.module.scss +14 -0
  335. package/dist/src/components/results/index.d.ts +1 -1
  336. package/dist/src/components/results/index.d.ts.map +1 -1
  337. package/dist/src/components/results/index.js +1 -1
  338. package/dist/src/components/results/index.js.map +1 -1
  339. package/dist/src/formatExecutionDuration.js.map +1 -1
  340. package/dist/src/hooks/helpers.js.map +1 -1
  341. package/dist/src/hooks/useFilteredDocuments.d.ts +2 -2
  342. package/dist/src/hooks/useFilteredDocuments.d.ts.map +1 -1
  343. package/dist/src/hooks/useFilteredDocuments.js +70 -18
  344. package/dist/src/hooks/useFilteredDocuments.js.map +1 -1
  345. package/dist/src/hooks/useMostSevereStatusByUri.js.map +1 -1
  346. package/dist/src/hooks/useQueries.d.ts +2 -2
  347. package/dist/src/hooks/useQueries.d.ts.map +1 -1
  348. package/dist/src/hooks/useQueries.js.map +1 -1
  349. package/dist/src/hooks/useResultStatistics.d.ts +3 -2
  350. package/dist/src/hooks/useResultStatistics.d.ts.map +1 -1
  351. package/dist/src/hooks/useResultStatistics.js +19 -2
  352. package/dist/src/hooks/useResultStatistics.js.map +1 -1
  353. package/dist/src/hooks/useSearch.d.ts +1 -1
  354. package/dist/src/hooks/useSearch.d.ts.map +1 -1
  355. package/dist/src/hooks/useSearch.js.map +1 -1
  356. package/dist/src/hooks/useTestCaseStarted.d.ts +6 -1
  357. package/dist/src/hooks/useTestCaseStarted.d.ts.map +1 -1
  358. package/dist/src/hooks/useTestCaseStarted.js +13 -10
  359. package/dist/src/hooks/useTestCaseStarted.js.map +1 -1
  360. package/dist/src/hooks/useTestRunHooks.d.ts +1 -1
  361. package/dist/src/hooks/useTestRunHooks.d.ts.map +1 -1
  362. package/dist/src/hooks/useTestRunHooks.js.map +1 -1
  363. package/dist/src/search/FeatureSearch.d.ts +12 -3
  364. package/dist/src/search/FeatureSearch.d.ts.map +1 -1
  365. package/dist/src/search/FeatureSearch.js +9 -17
  366. package/dist/src/search/FeatureSearch.js.map +1 -1
  367. package/dist/src/search/ScenarioLikeSearch.d.ts +8 -13
  368. package/dist/src/search/ScenarioLikeSearch.d.ts.map +1 -1
  369. package/dist/src/search/ScenarioLikeSearch.js +13 -17
  370. package/dist/src/search/ScenarioLikeSearch.js.map +1 -1
  371. package/dist/src/search/StepSearch.d.ts +9 -16
  372. package/dist/src/search/StepSearch.d.ts.map +1 -1
  373. package/dist/src/search/StepSearch.js +13 -17
  374. package/dist/src/search/StepSearch.js.map +1 -1
  375. package/dist/src/search/TextSearch.d.ts +11 -2
  376. package/dist/src/search/TextSearch.d.ts.map +1 -1
  377. package/dist/src/search/TextSearch.js +59 -52
  378. package/dist/src/search/TextSearch.js.map +1 -1
  379. package/dist/src/search/createSearchIndex.d.ts +7 -0
  380. package/dist/src/search/createSearchIndex.d.ts.map +1 -0
  381. package/dist/src/search/createSearchIndex.js +10 -0
  382. package/dist/src/search/createSearchIndex.js.map +1 -0
  383. package/dist/src/search/deriveLineageConstraints.d.ts +8 -0
  384. package/dist/src/search/deriveLineageConstraints.d.ts.map +1 -0
  385. package/dist/src/search/deriveLineageConstraints.js +38 -0
  386. package/dist/src/search/deriveLineageConstraints.js.map +1 -0
  387. package/dist/src/search/index.d.ts +3 -1
  388. package/dist/src/search/index.d.ts.map +1 -1
  389. package/dist/src/search/index.js +3 -1
  390. package/dist/src/search/index.js.map +1 -1
  391. package/dist/src/search/pruneGherkinDocuments.d.ts +24 -0
  392. package/dist/src/search/pruneGherkinDocuments.d.ts.map +1 -0
  393. package/dist/src/search/pruneGherkinDocuments.js +180 -0
  394. package/dist/src/search/pruneGherkinDocuments.js.map +1 -0
  395. package/dist/src/search/types.d.ts +39 -8
  396. package/dist/src/search/types.d.ts.map +1 -1
  397. package/dist/src/search/types.js +1 -1
  398. package/dist/src/search/types.js.map +1 -1
  399. package/dist/src/styles/statuses.scss +7 -13
  400. package/dist/src/toRepositoryId.d.ts +1 -1
  401. package/dist/src/toRepositoryId.d.ts.map +1 -1
  402. package/dist/src/toRepositoryId.js +7 -6
  403. package/dist/src/toRepositoryId.js.map +1 -1
  404. package/dist/tsconfig.build.tsbuildinfo +1 -1
  405. package/package.json +56 -71
  406. package/dist/src/components/results/TestStepResultDetails.d.ts +0 -4
  407. package/dist/src/components/results/TestStepResultDetails.d.ts.map +0 -1
  408. package/dist/src/components/results/TestStepResultDetails.js +0 -16
  409. package/dist/src/components/results/TestStepResultDetails.js.map +0 -1
  410. package/dist/src/countScenariosByStatuses.d.ts +0 -8
  411. package/dist/src/countScenariosByStatuses.d.ts.map +0 -1
  412. package/dist/src/countScenariosByStatuses.js +0 -22
  413. package/dist/src/countScenariosByStatuses.js.map +0 -1
  414. package/dist/src/filter/filterByStatus.d.ts +0 -5
  415. package/dist/src/filter/filterByStatus.d.ts.map +0 -1
  416. package/dist/src/filter/filterByStatus.js +0 -23
  417. package/dist/src/filter/filterByStatus.js.map +0 -1
  418. package/dist/src/search/Search.d.ts +0 -11
  419. package/dist/src/search/Search.d.ts.map +0 -1
  420. package/dist/src/search/Search.js +0 -46
  421. package/dist/src/search/Search.js.map +0 -1
  422. package/dist/src/search/TagSearch.d.ts +0 -4
  423. package/dist/src/search/TagSearch.d.ts.map +0 -1
  424. package/dist/src/search/TagSearch.js +0 -57
  425. package/dist/src/search/TagSearch.js.map +0 -1
@@ -1,34 +1,35 @@
1
- import React, { useContext } from 'react';
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { createContext, useContext, } from 'react';
2
3
  function mixinStyles(builtIn, custom) {
3
4
  const mixed = {};
4
- Object.keys(builtIn).forEach((key) => {
5
+ for (const key of Object.keys(builtIn)) {
5
6
  if (builtIn[key]) {
6
7
  mixed[key] = builtIn[key];
7
8
  }
8
9
  if (custom && typeof custom !== 'function' && custom[key]) {
9
10
  mixed[key] = custom[key];
10
11
  }
11
- });
12
+ }
12
13
  return mixed;
13
14
  }
14
- export const CustomRenderingContext = React.createContext({});
15
+ export const CustomRenderingContext = createContext({});
15
16
  export function useCustomRendering(component, defaultStyles, DefaultRenderer) {
16
17
  const { [component]: Custom } = useContext(CustomRenderingContext);
17
- // @ts-ignore
18
+ // @ts-expect-error
18
19
  const composedStyles = mixinStyles(defaultStyles, Custom);
19
20
  const StyledDefaultRenderer = (props) => {
20
- return React.createElement(DefaultRenderer, { ...props, styles: composedStyles });
21
+ return _jsx(DefaultRenderer, { ...props, styles: composedStyles });
21
22
  };
22
23
  if (typeof Custom === 'function') {
23
24
  const StyledCustomRenderer = (props) => {
24
- // @ts-ignore
25
- return React.createElement(Custom, { ...props, styles: composedStyles, DefaultRenderer: StyledDefaultRenderer });
25
+ // @ts-expect-error
26
+ return _jsx(Custom, { ...props, styles: composedStyles, DefaultRenderer: StyledDefaultRenderer });
26
27
  };
27
28
  return StyledCustomRenderer;
28
29
  }
29
30
  return StyledDefaultRenderer;
30
31
  }
31
32
  export const CustomRendering = ({ overrides, children, }) => {
32
- return (React.createElement(CustomRenderingContext.Provider, { value: overrides }, children));
33
+ return (_jsx(CustomRenderingContext.Provider, { value: overrides, children: children }));
33
34
  };
34
35
  //# sourceMappingURL=CustomRendering.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CustomRendering.js","sourceRoot":"","sources":["../../../../src/components/customise/CustomRendering.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAuD,UAAU,EAAE,MAAM,OAAO,CAAA;AAE9F,SAAS,WAAW,CAClB,OAA+B,EAC/B,MAAyD;IAEzD,MAAM,KAAK,GAA4B,EAAE,CAAA;IACzC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;QACnC,IAAI,OAAO,CAAC,GAAG,CAAC,EAAE;YAChB,KAAK,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,GAAG,CAAC,CAAA;SAC1B;QACD,IAAI,MAAM,IAAI,OAAO,MAAM,KAAK,UAAU,IAAI,MAAM,CAAC,GAAG,CAAC,EAAE;YACzD,KAAK,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAA;SACzB;IACH,CAAC,CAAC,CAAA;IACF,OAAO,KAAgB,CAAA;AACzB,CAAC;AAsJD,MAAM,CAAC,MAAM,sBAAsB,GAAG,KAAK,CAAC,aAAa,CAAyB,EAAE,CAAC,CAAA;AAErF,MAAM,UAAU,kBAAkB,CAChC,SAA2B,EAC3B,aAAqC,EACrC,eAAiD;IAEjD,MAAM,EAAE,CAAC,SAAS,CAAC,EAAE,MAAM,EAAE,GAAG,UAAU,CAAC,sBAAsB,CAAC,CAAA;IAClE,aAAa;IACb,MAAM,cAAc,GAAG,WAAW,CAAU,aAAa,EAAE,MAAM,CAAC,CAAA;IAClE,MAAM,qBAAqB,GAAmC,CAAC,KAAK,EAAE,EAAE;QACtE,OAAO,oBAAC,eAAe,OAAK,KAAK,EAAE,MAAM,EAAE,cAAc,GAAI,CAAA;IAC/D,CAAC,CAAA;IACD,IAAI,OAAO,MAAM,KAAK,UAAU,EAAE;QAChC,MAAM,oBAAoB,GAAmC,CAAC,KAAK,EAAE,EAAE;YACrE,aAAa;YACb,OAAO,oBAAC,MAAM,OAAK,KAAK,EAAE,MAAM,EAAE,cAAc,EAAE,eAAe,EAAE,qBAAqB,GAAI,CAAA;QAC9F,CAAC,CAAA;QACD,OAAO,oBAAoB,CAAA;KAC5B;IACD,OAAO,qBAAqB,CAAA;AAC9B,CAAC;AAED,MAAM,CAAC,MAAM,eAAe,GAAiE,CAAC,EAC5F,SAAS,EACT,QAAQ,GACT,EAAE,EAAE;IACH,OAAO,CACL,oBAAC,sBAAsB,CAAC,QAAQ,IAAC,KAAK,EAAE,SAAS,IAAG,QAAQ,CAAmC,CAChG,CAAA;AACH,CAAC,CAAA","sourcesContent":["import * as messages from '@cucumber/messages'\nimport React, { FC, FunctionComponent, PropsWithChildren, ReactNode, useContext } from 'react'\n\nfunction mixinStyles<Classes>(\n builtIn: Record<string, string>,\n custom?: Record<string, string> | React.FunctionComponent\n): Classes {\n const mixed: Record<string, unknown> = {}\n Object.keys(builtIn).forEach((key) => {\n if (builtIn[key]) {\n mixed[key] = builtIn[key]\n }\n if (custom && typeof custom !== 'function' && custom[key]) {\n mixed[key] = custom[key]\n }\n })\n return mixed as Classes\n}\n\ntype Styles<C extends string> = Record<C, string>\n\nexport interface AnchorProps {\n id: string\n children: ReactNode\n}\n\nexport type AnchorClasses = Styles<'wrapper' | 'anchor'>\n\nexport interface AttachmentProps {\n attachment: messages.Attachment\n}\n\nexport type AttachmentClasses = Styles<'text' | 'log' | 'icon' | 'image' | 'links'>\n\nexport interface BackgroundProps {\n background: messages.Background\n}\n\nexport interface ChildrenProps {\n children: ReactNode\n}\n\nexport type ChildrenClasses = Styles<'children'>\n\nexport interface DataTableProps {\n dataTable: messages.DataTable | messages.PickleTable\n}\n\nexport type DataTableClasses = Styles<'table'>\n\nexport interface DescriptionProps {\n description?: string\n}\n\nexport type DescriptionClasses = Styles<'content'>\n\nexport interface DocStringProps {\n docString: messages.DocString | messages.PickleDocString\n}\n\nexport type DocStringClasses = Styles<'docString'>\n\nexport interface ErrorMessageProps {\n message?: string\n children?: ReactNode\n}\n\nexport type ErrorMessageClasses = Styles<'message'>\n\nexport interface ExamplesProps {\n examples: messages.Examples\n}\n\nexport interface FeatureProps {\n feature: messages.Feature\n}\n\nexport interface GherkinDocumentProps {\n gherkinDocument: messages.GherkinDocument\n}\n\nexport type Header = 'h1' | 'h2' | 'h3' | 'h4' | 'h5'\n\nexport interface KeywordProps {\n children: ReactNode\n}\n\nexport type KeywordClasses = Styles<'keyword'>\n\nexport interface ParameterProps {\n parameterTypeName: string\n value: string\n children: ReactNode\n}\n\nexport type ParameterClasses = Styles<'parameter'>\n\nexport interface StatusIconProps {\n status: messages.TestStepResultStatus\n}\n\nexport interface RuleProps {\n rule: messages.Rule\n}\n\nexport interface ScenarioProps {\n scenario: messages.Scenario\n}\n\nexport type StatusIconClasses = Styles<'icon'>\n\nexport interface TagsProps {\n tags: readonly messages.Tag[] | readonly messages.PickleTag[]\n}\n\nexport type TagsClasses = Styles<'tags' | 'tag'>\n\nexport interface TitleProps {\n header: Header\n id: string\n children: ReactNode\n}\n\nexport type TitleClasses = Styles<'title'>\n\nexport declare type DefaultComponent<\n Props,\n Classes extends Styles<string> = Record<string, string>,\n> = FunctionComponent<Props & { styles: Classes }>\n\nexport declare type CustomisedComponent<\n Props,\n Classes = Record<string, string>,\n> = React.FunctionComponent<\n Props & {\n styles: Classes\n DefaultRenderer: React.FunctionComponent<Props>\n }\n>\n\nexport declare type Customised<Props, Classes = Record<string, string>> =\n | CustomisedComponent<Props, Classes>\n | Partial<Classes>\n\nexport interface CustomRenderingSupport {\n Anchor?: Customised<AnchorProps, AnchorClasses>\n Attachment?: Customised<AttachmentProps, AttachmentClasses>\n Background?: Customised<BackgroundProps>\n Children?: Customised<ChildrenProps, ChildrenClasses>\n DataTable?: Customised<DataTableProps, DataTableClasses>\n Description?: Customised<DescriptionProps, DescriptionClasses>\n DocString?: Customised<DocStringProps, DocStringClasses>\n ErrorMessage?: Customised<ErrorMessageProps, ErrorMessageClasses>\n Examples?: Customised<ExamplesProps>\n Feature?: Customised<FeatureProps>\n GherkinDocument?: Customised<GherkinDocumentProps>\n Keyword?: Customised<KeywordProps, KeywordClasses>\n Parameter?: Customised<ParameterProps, ParameterClasses>\n Rule?: Customised<RuleProps>\n Scenario?: Customised<ScenarioProps>\n StatusIcon?: Customised<StatusIconProps, StatusIconClasses>\n Tags?: Customised<TagsProps, TagsClasses>\n Title?: Customised<TitleProps, TitleClasses>\n}\n\nexport declare type CustomRenderable = keyof CustomRenderingSupport\n\nexport const CustomRenderingContext = React.createContext<CustomRenderingSupport>({})\n\nexport function useCustomRendering<Props, Classes extends Styles<string> = Record<string, string>>(\n component: CustomRenderable,\n defaultStyles: Record<string, string>,\n DefaultRenderer: DefaultComponent<Props, Classes>\n): FunctionComponent<Props> {\n const { [component]: Custom } = useContext(CustomRenderingContext)\n // @ts-ignore\n const composedStyles = mixinStyles<Classes>(defaultStyles, Custom)\n const StyledDefaultRenderer: React.FunctionComponent<Props> = (props) => {\n return <DefaultRenderer {...props} styles={composedStyles} />\n }\n if (typeof Custom === 'function') {\n const StyledCustomRenderer: React.FunctionComponent<Props> = (props) => {\n // @ts-ignore\n return <Custom {...props} styles={composedStyles} DefaultRenderer={StyledDefaultRenderer} />\n }\n return StyledCustomRenderer\n }\n return StyledDefaultRenderer\n}\n\nexport const CustomRendering: FC<PropsWithChildren<{ overrides: CustomRenderingSupport }>> = ({\n overrides,\n children,\n}) => {\n return (\n <CustomRenderingContext.Provider value={overrides}>{children}</CustomRenderingContext.Provider>\n )\n}\n"]}
1
+ {"version":3,"file":"CustomRendering.js","sourceRoot":"","sources":["../../../../src/components/customise/CustomRendering.tsx"],"names":[],"mappings":";AAgBA,OAAO,EACL,aAAa,EAKb,UAAU,GACX,MAAM,OAAO,CAAA;AAEd,SAAS,WAAW,CAClB,OAA+B,EAC/B,MAAmD;IAEnD,MAAM,KAAK,GAA4B,EAAE,CAAA;IACzC,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC;QACvC,IAAI,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC;YACjB,KAAK,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,GAAG,CAAC,CAAA;QAC3B,CAAC;QACD,IAAI,MAAM,IAAI,OAAO,MAAM,KAAK,UAAU,IAAI,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC;YAC1D,KAAK,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAA;QAC1B,CAAC;IACH,CAAC;IACD,OAAO,KAAgB,CAAA;AACzB,CAAC;AAsJD,MAAM,CAAC,MAAM,sBAAsB,GAAG,aAAa,CAAyB,EAAE,CAAC,CAAA;AAE/E,MAAM,UAAU,kBAAkB,CAChC,SAA2B,EAC3B,aAAqC,EACrC,eAAiD;IAEjD,MAAM,EAAE,CAAC,SAAS,CAAC,EAAE,MAAM,EAAE,GAAG,UAAU,CAAC,sBAAsB,CAAC,CAAA;IAClE,mBAAmB;IACnB,MAAM,cAAc,GAAG,WAAW,CAAU,aAAa,EAAE,MAAM,CAAC,CAAA;IAClE,MAAM,qBAAqB,GAA6B,CAAC,KAAK,EAAE,EAAE;QAChE,OAAO,KAAC,eAAe,OAAK,KAAK,EAAE,MAAM,EAAE,cAAc,GAAI,CAAA;IAC/D,CAAC,CAAA;IACD,IAAI,OAAO,MAAM,KAAK,UAAU,EAAE,CAAC;QACjC,MAAM,oBAAoB,GAA6B,CAAC,KAAK,EAAE,EAAE;YAC/D,mBAAmB;YACnB,OAAO,KAAC,MAAM,OAAK,KAAK,EAAE,MAAM,EAAE,cAAc,EAAE,eAAe,EAAE,qBAAqB,GAAI,CAAA;QAC9F,CAAC,CAAA;QACD,OAAO,oBAAoB,CAAA;IAC7B,CAAC;IACD,OAAO,qBAAqB,CAAA;AAC9B,CAAC;AAED,MAAM,CAAC,MAAM,eAAe,GAAiE,CAAC,EAC5F,SAAS,EACT,QAAQ,GACT,EAAE,EAAE;IACH,OAAO,CACL,KAAC,sBAAsB,CAAC,QAAQ,IAAC,KAAK,EAAE,SAAS,YAAG,QAAQ,GAAmC,CAChG,CAAA;AACH,CAAC,CAAA","sourcesContent":["import type {\n Attachment,\n Background,\n DataTable,\n DocString,\n Examples,\n Feature,\n GherkinDocument,\n PickleDocString,\n PickleTable,\n PickleTag,\n Rule,\n Scenario,\n Tag,\n TestStepResultStatus,\n} from '@cucumber/messages'\nimport {\n createContext,\n type FC,\n type FunctionComponent,\n type PropsWithChildren,\n type ReactNode,\n useContext,\n} from 'react'\n\nfunction mixinStyles<Classes>(\n builtIn: Record<string, string>,\n custom?: Record<string, string> | FunctionComponent\n): Classes {\n const mixed: Record<string, unknown> = {}\n for (const key of Object.keys(builtIn)) {\n if (builtIn[key]) {\n mixed[key] = builtIn[key]\n }\n if (custom && typeof custom !== 'function' && custom[key]) {\n mixed[key] = custom[key]\n }\n }\n return mixed as Classes\n}\n\ntype Styles<C extends string> = Record<C, string>\n\nexport interface AnchorProps {\n id: string\n children: ReactNode\n}\n\nexport type AnchorClasses = Styles<'wrapper' | 'anchor'>\n\nexport interface AttachmentProps {\n attachment: Attachment\n}\n\nexport type AttachmentClasses = Styles<'text' | 'copyButton' | 'log' | 'icon' | 'image' | 'links'>\n\nexport interface BackgroundProps {\n background: Background\n}\n\nexport interface ChildrenProps {\n children: ReactNode\n}\n\nexport type ChildrenClasses = Styles<'children'>\n\nexport interface DataTableProps {\n dataTable: DataTable | PickleTable\n}\n\nexport type DataTableClasses = Styles<'table'>\n\nexport interface DescriptionProps {\n description?: string\n}\n\nexport type DescriptionClasses = Styles<'content'>\n\nexport interface DocStringProps {\n docString: DocString | PickleDocString\n}\n\nexport type DocStringClasses = Styles<'docString'>\n\nexport interface ErrorMessageProps {\n message?: string\n children?: ReactNode\n}\n\nexport type ErrorMessageClasses = Styles<'message' | 'copyButton'>\n\nexport interface ExamplesProps {\n examples: Examples\n}\n\nexport interface FeatureProps {\n feature: Feature\n}\n\nexport interface GherkinDocumentProps {\n gherkinDocument: GherkinDocument\n}\n\nexport type Header = 'h1' | 'h2' | 'h3' | 'h4' | 'h5'\n\nexport interface KeywordProps {\n children: ReactNode\n}\n\nexport type KeywordClasses = Styles<'keyword'>\n\nexport interface ParameterProps {\n parameterTypeName: string\n value: string\n children: ReactNode\n}\n\nexport type ParameterClasses = Styles<'parameter'>\n\nexport interface StatusIconProps {\n status: TestStepResultStatus\n}\n\nexport interface RuleProps {\n rule: Rule\n}\n\nexport interface ScenarioProps {\n scenario: Scenario\n}\n\nexport type StatusIconClasses = Styles<'icon'>\n\nexport interface TagsProps {\n tags: readonly Tag[] | readonly PickleTag[]\n}\n\nexport type TagsClasses = Styles<'tags' | 'tag'>\n\nexport interface TitleProps {\n header: Header\n id: string\n children: ReactNode\n}\n\nexport type TitleClasses = Styles<'title'>\n\nexport declare type DefaultComponent<\n Props,\n Classes extends Styles<string> = Record<string, string>,\n> = FunctionComponent<Props & { styles: Classes }>\n\nexport declare type CustomisedComponent<\n Props,\n Classes = Record<string, string>,\n> = FunctionComponent<\n Props & {\n styles: Classes\n DefaultRenderer: FunctionComponent<Props>\n }\n>\n\nexport declare type Customised<Props, Classes = Record<string, string>> =\n | CustomisedComponent<Props, Classes>\n | Partial<Classes>\n\nexport interface CustomRenderingSupport {\n Anchor?: Customised<AnchorProps, AnchorClasses>\n Attachment?: Customised<AttachmentProps, AttachmentClasses>\n Background?: Customised<BackgroundProps>\n Children?: Customised<ChildrenProps, ChildrenClasses>\n DataTable?: Customised<DataTableProps, DataTableClasses>\n Description?: Customised<DescriptionProps, DescriptionClasses>\n DocString?: Customised<DocStringProps, DocStringClasses>\n ErrorMessage?: Customised<ErrorMessageProps, ErrorMessageClasses>\n Examples?: Customised<ExamplesProps>\n Feature?: Customised<FeatureProps>\n GherkinDocument?: Customised<GherkinDocumentProps>\n Keyword?: Customised<KeywordProps, KeywordClasses>\n Parameter?: Customised<ParameterProps, ParameterClasses>\n Rule?: Customised<RuleProps>\n Scenario?: Customised<ScenarioProps>\n StatusIcon?: Customised<StatusIconProps, StatusIconClasses>\n Tags?: Customised<TagsProps, TagsClasses>\n Title?: Customised<TitleProps, TitleClasses>\n}\n\nexport declare type CustomRenderable = keyof CustomRenderingSupport\n\nexport const CustomRenderingContext = createContext<CustomRenderingSupport>({})\n\nexport function useCustomRendering<Props, Classes extends Styles<string> = Record<string, string>>(\n component: CustomRenderable,\n defaultStyles: Record<string, string>,\n DefaultRenderer: DefaultComponent<Props, Classes>\n): FunctionComponent<Props> {\n const { [component]: Custom } = useContext(CustomRenderingContext)\n // @ts-expect-error\n const composedStyles = mixinStyles<Classes>(defaultStyles, Custom)\n const StyledDefaultRenderer: FunctionComponent<Props> = (props) => {\n return <DefaultRenderer {...props} styles={composedStyles} />\n }\n if (typeof Custom === 'function') {\n const StyledCustomRenderer: FunctionComponent<Props> = (props) => {\n // @ts-expect-error\n return <Custom {...props} styles={composedStyles} DefaultRenderer={StyledDefaultRenderer} />\n }\n return StyledCustomRenderer\n }\n return StyledDefaultRenderer\n}\n\nexport const CustomRendering: FC<PropsWithChildren<{ overrides: CustomRenderingSupport }>> = ({\n overrides,\n children,\n}) => {\n return (\n <CustomRenderingContext.Provider value={overrides}>{children}</CustomRenderingContext.Provider>\n )\n}\n"]}
@@ -6,20 +6,3 @@
6
6
  text-shadow: 1px 1px 2px white;
7
7
  padding: 10px;
8
8
  }
9
-
10
- .dark-theme {
11
- background-color: #1d1d26;
12
- color: #c9c9d1;
13
- --cucumber-anchor-color: #4caaee;
14
- --cucumber-keyword-color: #d89077;
15
- --cucumber-parameter-color: #4caaee;
16
- --cucumber-tag-color: #85a658;
17
- --cucumber-docstring-color: #66a565;
18
- --cucumber-error-background-color: #cf6679;
19
- --cucumber-error-text-color: #222;
20
- --cucumber-code-background-color: #282a36;
21
- --cucumber-code-text-color: #f8f8f2;
22
- --cucumber-panel-background-color: #282a36;
23
- --cucumber-panel-accent-color: #313442;
24
- --cucumber-panel-text-color: #f8f8f2;
25
- }
@@ -1,4 +1,4 @@
1
- import React from 'react';
2
- import { AnchorProps } from '../customise/index.js';
3
- export declare const Anchor: React.FunctionComponent<AnchorProps>;
1
+ import type { FC } from 'react';
2
+ import { type AnchorProps } from '../customise/index.js';
3
+ export declare const Anchor: FC<AnchorProps>;
4
4
  //# sourceMappingURL=Anchor.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Anchor.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/Anchor.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAEL,WAAW,EAGZ,MAAM,uBAAuB,CAAA;AAkB9B,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,iBAAiB,CAAC,WAAW,CAOvD,CAAA"}
1
+ {"version":3,"file":"Anchor.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/Anchor.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAE/B,OAAO,EAEL,KAAK,WAAW,EAGjB,MAAM,uBAAuB,CAAA;AAkB9B,eAAO,MAAM,MAAM,EAAE,EAAE,CAAC,WAAW,CAOlC,CAAA"}
@@ -1,16 +1,13 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
1
2
  import { faLink } from '@fortawesome/free-solid-svg-icons';
2
3
  import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
3
- import React from 'react';
4
4
  import { useCustomRendering, } from '../customise/index.js';
5
5
  import defaultStyles from './Anchor.module.scss';
6
6
  const DefaultRenderer = ({ id, styles, children, }) => {
7
- return (React.createElement("div", { className: styles.wrapper },
8
- React.createElement("a", { href: '#' + id, className: defaultStyles.anchor },
9
- React.createElement(FontAwesomeIcon, { icon: faLink })),
10
- children));
7
+ return (_jsxs("div", { className: styles.wrapper, children: [_jsx("a", { href: `#${id}`, className: defaultStyles.anchor, children: _jsx(FontAwesomeIcon, { icon: faLink }) }), children] }));
11
8
  };
12
9
  export const Anchor = (props) => {
13
10
  const ResolvedRenderer = useCustomRendering('Anchor', defaultStyles, DefaultRenderer);
14
- return React.createElement(ResolvedRenderer, { ...props });
11
+ return _jsx(ResolvedRenderer, { ...props });
15
12
  };
16
13
  //# sourceMappingURL=Anchor.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Anchor.js","sourceRoot":"","sources":["../../../../src/components/gherkin/Anchor.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mCAAmC,CAAA;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAA;AAChE,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAIL,kBAAkB,GACnB,MAAM,uBAAuB,CAAA;AAC9B,OAAO,aAAa,MAAM,sBAAsB,CAAA;AAEhD,MAAM,eAAe,GAAiD,CAAC,EACrE,EAAE,EACF,MAAM,EACN,QAAQ,GACT,EAAE,EAAE;IACH,OAAO,CACL,6BAAK,SAAS,EAAE,MAAM,CAAC,OAAO;QAC5B,2BAAG,IAAI,EAAE,GAAG,GAAG,EAAE,EAAE,SAAS,EAAE,aAAa,CAAC,MAAM;YAChD,oBAAC,eAAe,IAAC,IAAI,EAAE,MAAM,GAAI,CAC/B;QACH,QAAQ,CACL,CACP,CAAA;AACH,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,MAAM,GAAyC,CAAC,KAAK,EAAE,EAAE;IACpE,MAAM,gBAAgB,GAAG,kBAAkB,CACzC,QAAQ,EACR,aAAa,EACb,eAAe,CAChB,CAAA;IACD,OAAO,oBAAC,gBAAgB,OAAK,KAAK,GAAI,CAAA;AACxC,CAAC,CAAA","sourcesContent":["import { faLink } from '@fortawesome/free-solid-svg-icons'\nimport { FontAwesomeIcon } from '@fortawesome/react-fontawesome'\nimport React from 'react'\n\nimport {\n AnchorClasses,\n AnchorProps,\n DefaultComponent,\n useCustomRendering,\n} from '../customise/index.js'\nimport defaultStyles from './Anchor.module.scss'\n\nconst DefaultRenderer: DefaultComponent<AnchorProps, AnchorClasses> = ({\n id,\n styles,\n children,\n}) => {\n return (\n <div className={styles.wrapper}>\n <a href={'#' + id} className={defaultStyles.anchor}>\n <FontAwesomeIcon icon={faLink} />\n </a>\n {children}\n </div>\n )\n}\n\nexport const Anchor: React.FunctionComponent<AnchorProps> = (props) => {\n const ResolvedRenderer = useCustomRendering<AnchorProps, AnchorClasses>(\n 'Anchor',\n defaultStyles,\n DefaultRenderer\n )\n return <ResolvedRenderer {...props} />\n}\n"]}
1
+ {"version":3,"file":"Anchor.js","sourceRoot":"","sources":["../../../../src/components/gherkin/Anchor.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mCAAmC,CAAA;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAA;AAGhE,OAAO,EAIL,kBAAkB,GACnB,MAAM,uBAAuB,CAAA;AAC9B,OAAO,aAAa,MAAM,sBAAsB,CAAA;AAEhD,MAAM,eAAe,GAAiD,CAAC,EACrE,EAAE,EACF,MAAM,EACN,QAAQ,GACT,EAAE,EAAE;IACH,OAAO,CACL,eAAK,SAAS,EAAE,MAAM,CAAC,OAAO,aAC5B,YAAG,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,SAAS,EAAE,aAAa,CAAC,MAAM,YAChD,KAAC,eAAe,IAAC,IAAI,EAAE,MAAM,GAAI,GAC/B,EACH,QAAQ,IACL,CACP,CAAA;AACH,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,MAAM,GAAoB,CAAC,KAAK,EAAE,EAAE;IAC/C,MAAM,gBAAgB,GAAG,kBAAkB,CACzC,QAAQ,EACR,aAAa,EACb,eAAe,CAChB,CAAA;IACD,OAAO,KAAC,gBAAgB,OAAK,KAAK,GAAI,CAAA;AACxC,CAAC,CAAA","sourcesContent":["import { faLink } from '@fortawesome/free-solid-svg-icons'\nimport { FontAwesomeIcon } from '@fortawesome/react-fontawesome'\nimport type { FC } from 'react'\n\nimport {\n type AnchorClasses,\n type AnchorProps,\n type DefaultComponent,\n useCustomRendering,\n} from '../customise/index.js'\nimport defaultStyles from './Anchor.module.scss'\n\nconst DefaultRenderer: DefaultComponent<AnchorProps, AnchorClasses> = ({\n id,\n styles,\n children,\n}) => {\n return (\n <div className={styles.wrapper}>\n <a href={`#${id}`} className={defaultStyles.anchor}>\n <FontAwesomeIcon icon={faLink} />\n </a>\n {children}\n </div>\n )\n}\n\nexport const Anchor: FC<AnchorProps> = (props) => {\n const ResolvedRenderer = useCustomRendering<AnchorProps, AnchorClasses>(\n 'Anchor',\n defaultStyles,\n DefaultRenderer\n )\n return <ResolvedRenderer {...props} />\n}\n"]}
@@ -1,4 +1,4 @@
1
- import React from 'react';
2
- import { BackgroundProps } from '../customise/index.js';
3
- export declare const Background: React.FunctionComponent<BackgroundProps>;
1
+ import type { FC } from 'react';
2
+ import { type BackgroundProps } from '../customise/index.js';
3
+ export declare const Background: FC<BackgroundProps>;
4
4
  //# sourceMappingURL=Background.d.ts.map
@@ -1 +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,EAAE,eAAe,EAAwC,MAAM,uBAAuB,CAAA;AAwB7F,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,iBAAiB,CAAC,eAAe,CAG/D,CAAA"}
1
+ {"version":3,"file":"Background.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/Background.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAE/B,OAAO,EACL,KAAK,eAAe,EAGrB,MAAM,uBAAuB,CAAA;AAwB9B,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CAG1C,CAAA"}
@@ -1,5 +1,5 @@
1
- import React from 'react';
2
- import { useCustomRendering } from '../customise/index.js';
1
+ import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
2
+ import { useCustomRendering, } from '../customise/index.js';
3
3
  import { Description } from './Description.js';
4
4
  import { Keyword } from './Keyword.js';
5
5
  import { Title } from './Title.js';
@@ -9,16 +9,10 @@ const DefaultRenderer = ({ background }) => {
9
9
  if (!hasName && !hasDescription) {
10
10
  return null;
11
11
  }
12
- return (React.createElement("section", null,
13
- React.createElement(Title, { header: "h2", id: background.id },
14
- React.createElement(Keyword, null,
15
- background.keyword,
16
- ":"),
17
- React.createElement("span", null, background.name)),
18
- React.createElement(Description, { description: background.description })));
12
+ return (_jsxs("section", { children: [_jsxs(Title, { header: "h2", id: background.id, children: [_jsxs(Keyword, { children: [background.keyword, ":"] }), _jsx("span", { children: background.name })] }), _jsx(Description, { description: background.description })] }));
19
13
  };
20
14
  export const Background = (props) => {
21
15
  const ResolvedRenderer = useCustomRendering('Background', {}, DefaultRenderer);
22
- return React.createElement(ResolvedRenderer, { ...props });
16
+ return _jsx(ResolvedRenderer, { ...props });
23
17
  };
24
18
  //# sourceMappingURL=Background.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Background.js","sourceRoot":"","sources":["../../../../src/components/gherkin/Background.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAqC,kBAAkB,EAAE,MAAM,uBAAuB,CAAA;AAC7F,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AACtC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AAElC,MAAM,eAAe,GAAsC,CAAC,EAAE,UAAU,EAAE,EAAE,EAAE;IAC5E,MAAM,OAAO,GAAG,UAAU,CAAC,IAAI,IAAI,UAAU,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,CAAA;IAChE,MAAM,cAAc,GAAG,UAAU,CAAC,WAAW,IAAI,UAAU,CAAC,WAAW,CAAC,IAAI,EAAE,KAAK,EAAE,CAAA;IAErF,IAAI,CAAC,OAAO,IAAI,CAAC,cAAc,EAAE;QAC/B,OAAO,IAAI,CAAA;KACZ;IAED,OAAO,CACL;QACE,oBAAC,KAAK,IAAC,MAAM,EAAC,IAAI,EAAC,EAAE,EAAE,UAAU,CAAC,EAAE;YAClC,oBAAC,OAAO;gBAAE,UAAU,CAAC,OAAO;oBAAY;YACxC,kCAAO,UAAU,CAAC,IAAI,CAAQ,CACxB;QACR,oBAAC,WAAW,IAAC,WAAW,EAAE,UAAU,CAAC,WAAW,GAAI,CAC5C,CACX,CAAA;AACH,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,UAAU,GAA6C,CAAC,KAAK,EAAE,EAAE;IAC5E,MAAM,gBAAgB,GAAG,kBAAkB,CAAkB,YAAY,EAAE,EAAE,EAAE,eAAe,CAAC,CAAA;IAC/F,OAAO,oBAAC,gBAAgB,OAAK,KAAK,GAAI,CAAA;AACxC,CAAC,CAAA","sourcesContent":["import React from 'react'\n\nimport { BackgroundProps, DefaultComponent, useCustomRendering } from '../customise/index.js'\nimport { Description } from './Description.js'\nimport { Keyword } from './Keyword.js'\nimport { Title } from './Title.js'\n\nconst DefaultRenderer: DefaultComponent<BackgroundProps> = ({ background }) => {\n const hasName = background.name && background.name.trim() !== ''\n const hasDescription = background.description && background.description.trim() !== ''\n\n if (!hasName && !hasDescription) {\n return null\n }\n\n return (\n <section>\n <Title header=\"h2\" id={background.id}>\n <Keyword>{background.keyword}:</Keyword>\n <span>{background.name}</span>\n </Title>\n <Description description={background.description} />\n </section>\n )\n}\n\nexport const Background: React.FunctionComponent<BackgroundProps> = (props) => {\n const ResolvedRenderer = useCustomRendering<BackgroundProps>('Background', {}, DefaultRenderer)\n return <ResolvedRenderer {...props} />\n}\n"]}
1
+ {"version":3,"file":"Background.js","sourceRoot":"","sources":["../../../../src/components/gherkin/Background.tsx"],"names":[],"mappings":";AAEA,OAAO,EAGL,kBAAkB,GACnB,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AACtC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AAElC,MAAM,eAAe,GAAsC,CAAC,EAAE,UAAU,EAAE,EAAE,EAAE;IAC5E,MAAM,OAAO,GAAG,UAAU,CAAC,IAAI,IAAI,UAAU,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,CAAA;IAChE,MAAM,cAAc,GAAG,UAAU,CAAC,WAAW,IAAI,UAAU,CAAC,WAAW,CAAC,IAAI,EAAE,KAAK,EAAE,CAAA;IAErF,IAAI,CAAC,OAAO,IAAI,CAAC,cAAc,EAAE,CAAC;QAChC,OAAO,IAAI,CAAA;IACb,CAAC;IAED,OAAO,CACL,8BACE,MAAC,KAAK,IAAC,MAAM,EAAC,IAAI,EAAC,EAAE,EAAE,UAAU,CAAC,EAAE,aAClC,MAAC,OAAO,eAAE,UAAU,CAAC,OAAO,SAAY,EACxC,yBAAO,UAAU,CAAC,IAAI,GAAQ,IACxB,EACR,KAAC,WAAW,IAAC,WAAW,EAAE,UAAU,CAAC,WAAW,GAAI,IAC5C,CACX,CAAA;AACH,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,UAAU,GAAwB,CAAC,KAAK,EAAE,EAAE;IACvD,MAAM,gBAAgB,GAAG,kBAAkB,CAAkB,YAAY,EAAE,EAAE,EAAE,eAAe,CAAC,CAAA;IAC/F,OAAO,KAAC,gBAAgB,OAAK,KAAK,GAAI,CAAA;AACxC,CAAC,CAAA","sourcesContent":["import type { FC } from 'react'\n\nimport {\n type BackgroundProps,\n type DefaultComponent,\n useCustomRendering,\n} from '../customise/index.js'\nimport { Description } from './Description.js'\nimport { Keyword } from './Keyword.js'\nimport { Title } from './Title.js'\n\nconst DefaultRenderer: DefaultComponent<BackgroundProps> = ({ background }) => {\n const hasName = background.name && background.name.trim() !== ''\n const hasDescription = background.description && background.description.trim() !== ''\n\n if (!hasName && !hasDescription) {\n return null\n }\n\n return (\n <section>\n <Title header=\"h2\" id={background.id}>\n <Keyword>{background.keyword}:</Keyword>\n <span>{background.name}</span>\n </Title>\n <Description description={background.description} />\n </section>\n )\n}\n\nexport const Background: FC<BackgroundProps> = (props) => {\n const ResolvedRenderer = useCustomRendering<BackgroundProps>('Background', {}, DefaultRenderer)\n return <ResolvedRenderer {...props} />\n}\n"]}
@@ -1,4 +1,4 @@
1
- import React from 'react';
2
- import { ChildrenProps } from '../customise/index.js';
3
- export declare const Children: React.FunctionComponent<ChildrenProps>;
1
+ import type { FC } from 'react';
2
+ import { type ChildrenProps } from '../customise/index.js';
3
+ export declare const Children: FC<ChildrenProps>;
4
4
  //# sourceMappingURL=Children.d.ts.map
@@ -1 +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,EAEL,aAAa,EAGd,MAAM,uBAAuB,CAAA;AAU9B,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,iBAAiB,CAAC,aAAa,CAO3D,CAAA"}
1
+ {"version":3,"file":"Children.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/Children.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAE/B,OAAO,EAEL,KAAK,aAAa,EAGnB,MAAM,uBAAuB,CAAA;AAU9B,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAC,aAAa,CAOtC,CAAA"}
@@ -1,11 +1,11 @@
1
- import React from 'react';
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { useCustomRendering, } from '../customise/index.js';
3
3
  import defaultStyles from './Children.module.scss';
4
4
  const DefaultRenderer = ({ styles, children, }) => {
5
- return React.createElement("div", { className: styles.children }, children);
5
+ return _jsx("div", { className: styles.children, children: children });
6
6
  };
7
7
  export const Children = (props) => {
8
8
  const ResolvedRenderer = useCustomRendering('Children', defaultStyles, DefaultRenderer);
9
- return React.createElement(ResolvedRenderer, { ...props });
9
+ return _jsx(ResolvedRenderer, { ...props });
10
10
  };
11
11
  //# sourceMappingURL=Children.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Children.js","sourceRoot":"","sources":["../../../../src/components/gherkin/Children.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAIL,kBAAkB,GACnB,MAAM,uBAAuB,CAAA;AAC9B,OAAO,aAAa,MAAM,wBAAwB,CAAA;AAElD,MAAM,eAAe,GAAqD,CAAC,EACzE,MAAM,EACN,QAAQ,GACT,EAAE,EAAE;IACH,OAAO,6BAAK,SAAS,EAAE,MAAM,CAAC,QAAQ,IAAG,QAAQ,CAAO,CAAA;AAC1D,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,QAAQ,GAA2C,CAAC,KAAK,EAAE,EAAE;IACxE,MAAM,gBAAgB,GAAG,kBAAkB,CACzC,UAAU,EACV,aAAa,EACb,eAAe,CAChB,CAAA;IACD,OAAO,oBAAC,gBAAgB,OAAK,KAAK,GAAI,CAAA;AACxC,CAAC,CAAA","sourcesContent":["import React from 'react'\n\nimport {\n ChildrenClasses,\n ChildrenProps,\n DefaultComponent,\n useCustomRendering,\n} from '../customise/index.js'\nimport defaultStyles from './Children.module.scss'\n\nconst DefaultRenderer: DefaultComponent<ChildrenProps, ChildrenClasses> = ({\n styles,\n children,\n}) => {\n return <div className={styles.children}>{children}</div>\n}\n\nexport const Children: React.FunctionComponent<ChildrenProps> = (props) => {\n const ResolvedRenderer = useCustomRendering<ChildrenProps, ChildrenClasses>(\n 'Children',\n defaultStyles,\n DefaultRenderer\n )\n return <ResolvedRenderer {...props} />\n}\n"]}
1
+ {"version":3,"file":"Children.js","sourceRoot":"","sources":["../../../../src/components/gherkin/Children.tsx"],"names":[],"mappings":";AAEA,OAAO,EAIL,kBAAkB,GACnB,MAAM,uBAAuB,CAAA;AAC9B,OAAO,aAAa,MAAM,wBAAwB,CAAA;AAElD,MAAM,eAAe,GAAqD,CAAC,EACzE,MAAM,EACN,QAAQ,GACT,EAAE,EAAE;IACH,OAAO,cAAK,SAAS,EAAE,MAAM,CAAC,QAAQ,YAAG,QAAQ,GAAO,CAAA;AAC1D,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,QAAQ,GAAsB,CAAC,KAAK,EAAE,EAAE;IACnD,MAAM,gBAAgB,GAAG,kBAAkB,CACzC,UAAU,EACV,aAAa,EACb,eAAe,CAChB,CAAA;IACD,OAAO,KAAC,gBAAgB,OAAK,KAAK,GAAI,CAAA;AACxC,CAAC,CAAA","sourcesContent":["import type { FC } from 'react'\n\nimport {\n type ChildrenClasses,\n type ChildrenProps,\n type DefaultComponent,\n useCustomRendering,\n} from '../customise/index.js'\nimport defaultStyles from './Children.module.scss'\n\nconst DefaultRenderer: DefaultComponent<ChildrenProps, ChildrenClasses> = ({\n styles,\n children,\n}) => {\n return <div className={styles.children}>{children}</div>\n}\n\nexport const Children: FC<ChildrenProps> = (props) => {\n const ResolvedRenderer = useCustomRendering<ChildrenProps, ChildrenClasses>(\n 'Children',\n defaultStyles,\n DefaultRenderer\n )\n return <ResolvedRenderer {...props} />\n}\n"]}
@@ -1,4 +1,4 @@
1
- import React from 'react';
2
- import { DataTableProps } from '../customise/index.js';
3
- export declare const DataTable: React.FunctionComponent<DataTableProps>;
1
+ import type { FC } from 'react';
2
+ import { type DataTableProps } from '../customise/index.js';
3
+ export declare const DataTable: FC<DataTableProps>;
4
4
  //# sourceMappingURL=DataTable.d.ts.map
@@ -1 +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,uBAAuB,CAAA;AAiC9B,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,iBAAiB,CAAC,cAAc,CAO7D,CAAA"}
1
+ {"version":3,"file":"DataTable.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/DataTable.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAG/B,OAAO,EAEL,KAAK,cAAc,EAGpB,MAAM,uBAAuB,CAAA;AAiC9B,eAAO,MAAM,SAAS,EAAE,EAAE,CAAC,cAAc,CAOxC,CAAA"}
@@ -1,18 +1,16 @@
1
- import React from 'react';
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { HighLight } from '../app/HighLight.js';
3
3
  import { useCustomRendering, } from '../customise/index.js';
4
4
  import defaultStyles from './DataTable.module.scss';
5
5
  import isNumber from './isNumber.js';
6
6
  const TableBody = ({ rows }) => {
7
- return (React.createElement("tbody", null, rows.map((row, i) => (React.createElement("tr", { key: i }, (row.cells || []).map((cell, j) => (React.createElement("td", { key: j, style: { textAlign: isNumber(cell.value) ? 'right' : 'left' } },
8
- React.createElement(HighLight, { text: cell.value })))))))));
7
+ return (_jsx("tbody", { children: rows.map((row, i) => (_jsx("tr", { children: (row.cells || []).map((cell, j) => (_jsx("td", { style: { textAlign: isNumber(cell.value) ? 'right' : 'left' }, children: _jsx(HighLight, { text: cell.value }) }, j))) }, i))) }));
9
8
  };
10
9
  const DefaultRenderer = ({ dataTable, styles, }) => {
11
- return (React.createElement("table", { className: styles.table },
12
- React.createElement(TableBody, { rows: dataTable.rows || [] })));
10
+ return (_jsx("table", { className: styles.table, children: _jsx(TableBody, { rows: dataTable.rows || [] }) }));
13
11
  };
14
12
  export const DataTable = (props) => {
15
13
  const ResolvedRenderer = useCustomRendering('DataTable', defaultStyles, DefaultRenderer);
16
- return React.createElement(ResolvedRenderer, { ...props });
14
+ return _jsx(ResolvedRenderer, { ...props });
17
15
  };
18
16
  //# sourceMappingURL=DataTable.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DataTable.js","sourceRoot":"","sources":["../../../../src/components/gherkin/DataTable.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAC/C,OAAO,EAIL,kBAAkB,GACnB,MAAM,uBAAuB,CAAA;AAC9B,OAAO,aAAa,MAAM,yBAAyB,CAAA;AACnD,OAAO,QAAQ,MAAM,eAAe,CAAA;AAEpC,MAAM,SAAS,GAEV,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE;IAChB,OAAO,CACL,mCACG,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC,CACpB,4BAAI,GAAG,EAAE,CAAC,IACP,CAAC,GAAG,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAClC,4BAAI,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,EAAE;QACvE,oBAAC,SAAS,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,+BAAO,SAAS,EAAE,MAAM,CAAC,KAAK;QAC5B,oBAAC,SAAS,IAAC,IAAI,EAAE,SAAS,CAAC,IAAI,IAAI,EAAE,GAAI,CACnC,CACT,CAAA;AACH,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,SAAS,GAA4C,CAAC,KAAK,EAAE,EAAE;IAC1E,MAAM,gBAAgB,GAAG,kBAAkB,CACzC,WAAW,EACX,aAAa,EACb,eAAe,CAChB,CAAA;IACD,OAAO,oBAAC,gBAAgB,OAAK,KAAK,GAAI,CAAA;AACxC,CAAC,CAAA","sourcesContent":["import * as messages from '@cucumber/messages'\nimport React from 'react'\n\nimport { HighLight } from '../app/HighLight.js'\nimport {\n DataTableClasses,\n DataTableProps,\n DefaultComponent,\n useCustomRendering,\n} from '../customise/index.js'\nimport defaultStyles from './DataTable.module.scss'\nimport isNumber from './isNumber.js'\n\nconst TableBody: React.FunctionComponent<{\n rows: readonly messages.TableRow[] | readonly messages.PickleTableRow[]\n}> = ({ rows }) => {\n return (\n <tbody>\n {rows.map((row, i) => (\n <tr key={i}>\n {(row.cells || []).map((cell, j) => (\n <td key={j} style={{ textAlign: isNumber(cell.value) ? 'right' : 'left' }}>\n <HighLight text={cell.value} />\n </td>\n ))}\n </tr>\n ))}\n </tbody>\n )\n}\n\nconst DefaultRenderer: DefaultComponent<DataTableProps, DataTableClasses> = ({\n dataTable,\n styles,\n}) => {\n return (\n <table className={styles.table}>\n <TableBody rows={dataTable.rows || []} />\n </table>\n )\n}\n\nexport const DataTable: React.FunctionComponent<DataTableProps> = (props) => {\n const ResolvedRenderer = useCustomRendering<DataTableProps, DataTableClasses>(\n 'DataTable',\n defaultStyles,\n DefaultRenderer\n )\n return <ResolvedRenderer {...props} />\n}\n"]}
1
+ {"version":3,"file":"DataTable.js","sourceRoot":"","sources":["../../../../src/components/gherkin/DataTable.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAC/C,OAAO,EAIL,kBAAkB,GACnB,MAAM,uBAAuB,CAAA;AAC9B,OAAO,aAAa,MAAM,yBAAyB,CAAA;AACnD,OAAO,QAAQ,MAAM,eAAe,CAAA;AAEpC,MAAM,SAAS,GAEV,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE;IAChB,OAAO,CACL,0BACG,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC,CACpB,uBACG,CAAC,GAAG,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAClC,aAAY,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,EAAE,YACvE,KAAC,SAAS,IAAC,IAAI,EAAE,IAAI,CAAC,KAAK,GAAI,IADxB,CAAC,CAEL,CACN,CAAC,IALK,CAAC,CAML,CACN,CAAC,GACI,CACT,CAAA;AACH,CAAC,CAAA;AAED,MAAM,eAAe,GAAuD,CAAC,EAC3E,SAAS,EACT,MAAM,GACP,EAAE,EAAE;IACH,OAAO,CACL,gBAAO,SAAS,EAAE,MAAM,CAAC,KAAK,YAC5B,KAAC,SAAS,IAAC,IAAI,EAAE,SAAS,CAAC,IAAI,IAAI,EAAE,GAAI,GACnC,CACT,CAAA;AACH,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,SAAS,GAAuB,CAAC,KAAK,EAAE,EAAE;IACrD,MAAM,gBAAgB,GAAG,kBAAkB,CACzC,WAAW,EACX,aAAa,EACb,eAAe,CAChB,CAAA;IACD,OAAO,KAAC,gBAAgB,OAAK,KAAK,GAAI,CAAA;AACxC,CAAC,CAAA","sourcesContent":["import type { PickleTableRow, TableRow } from '@cucumber/messages'\nimport type { FC } from 'react'\n\nimport { HighLight } from '../app/HighLight.js'\nimport {\n type DataTableClasses,\n type DataTableProps,\n type DefaultComponent,\n useCustomRendering,\n} from '../customise/index.js'\nimport defaultStyles from './DataTable.module.scss'\nimport isNumber from './isNumber.js'\n\nconst TableBody: FC<{\n rows: readonly TableRow[] | readonly PickleTableRow[]\n}> = ({ rows }) => {\n return (\n <tbody>\n {rows.map((row, i) => (\n <tr key={i}>\n {(row.cells || []).map((cell, j) => (\n <td key={j} style={{ textAlign: isNumber(cell.value) ? 'right' : 'left' }}>\n <HighLight text={cell.value} />\n </td>\n ))}\n </tr>\n ))}\n </tbody>\n )\n}\n\nconst DefaultRenderer: DefaultComponent<DataTableProps, DataTableClasses> = ({\n dataTable,\n styles,\n}) => {\n return (\n <table className={styles.table}>\n <TableBody rows={dataTable.rows || []} />\n </table>\n )\n}\n\nexport const DataTable: FC<DataTableProps> = (props) => {\n const ResolvedRenderer = useCustomRendering<DataTableProps, DataTableClasses>(\n 'DataTable',\n defaultStyles,\n DefaultRenderer\n )\n return <ResolvedRenderer {...props} />\n}\n"]}
@@ -1,4 +1,4 @@
1
- import React from 'react';
2
- import { DescriptionProps } from '../customise/index.js';
3
- export declare const Description: React.FunctionComponent<DescriptionProps>;
1
+ import type { FC } from 'react';
2
+ import { type DescriptionProps } from '../customise/index.js';
3
+ export declare const Description: FC<DescriptionProps>;
4
4
  //# sourceMappingURL=Description.d.ts.map
@@ -1 +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,uBAAuB,CAAA;AAiB9B,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,iBAAiB,CAAC,gBAAgB,CAOjE,CAAA"}
1
+ {"version":3,"file":"Description.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/Description.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAG/B,OAAO,EAGL,KAAK,gBAAgB,EAEtB,MAAM,uBAAuB,CAAA;AAiB9B,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CAO5C,CAAA"}
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { HighLight } from '../app/HighLight.js';
3
3
  import { useCustomRendering, } from '../customise/index.js';
4
4
  import defaultStyles from './Description.module.scss';
@@ -6,11 +6,10 @@ const DefaultRenderer = ({ description, styles, }) => {
6
6
  if (!description || description.trim() === '') {
7
7
  return null;
8
8
  }
9
- return (React.createElement("div", { className: styles.content },
10
- React.createElement(HighLight, { text: description, markdown: true })));
9
+ return (_jsx("div", { className: styles.content, children: _jsx(HighLight, { text: description, markdown: true }) }));
11
10
  };
12
11
  export const Description = (props) => {
13
12
  const ResolvedRenderer = useCustomRendering('Description', defaultStyles, DefaultRenderer);
14
- return React.createElement(ResolvedRenderer, { ...props });
13
+ return _jsx(ResolvedRenderer, { ...props });
15
14
  };
16
15
  //# sourceMappingURL=Description.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Description.js","sourceRoot":"","sources":["../../../../src/components/gherkin/Description.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAC/C,OAAO,EAIL,kBAAkB,GACnB,MAAM,uBAAuB,CAAA;AAC9B,OAAO,aAAa,MAAM,2BAA2B,CAAA;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,6BAAK,SAAS,EAAE,MAAM,CAAC,OAAO;QAC5B,oBAAC,SAAS,IAAC,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,GAAI,CAC5C,CACP,CAAA;AACH,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,WAAW,GAA8C,CAAC,KAAK,EAAE,EAAE;IAC9E,MAAM,gBAAgB,GAAG,kBAAkB,CACzC,aAAa,EACb,aAAa,EACb,eAAe,CAChB,CAAA;IACD,OAAO,oBAAC,gBAAgB,OAAK,KAAK,GAAI,CAAA;AACxC,CAAC,CAAA","sourcesContent":["import React from 'react'\n\nimport { HighLight } from '../app/HighLight.js'\nimport {\n DefaultComponent,\n DescriptionClasses,\n DescriptionProps,\n useCustomRendering,\n} from '../customise/index.js'\nimport defaultStyles from './Description.module.scss'\n\nconst DefaultRenderer: DefaultComponent<DescriptionProps, DescriptionClasses> = ({\n description,\n styles,\n}) => {\n if (!description || description.trim() === '') {\n return null\n }\n return (\n <div className={styles.content}>\n <HighLight text={description} markdown={true} />\n </div>\n )\n}\n\nexport const Description: React.FunctionComponent<DescriptionProps> = (props) => {\n const ResolvedRenderer = useCustomRendering<DescriptionProps, DescriptionClasses>(\n 'Description',\n defaultStyles,\n DefaultRenderer\n )\n return <ResolvedRenderer {...props} />\n}\n"]}
1
+ {"version":3,"file":"Description.js","sourceRoot":"","sources":["../../../../src/components/gherkin/Description.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAC/C,OAAO,EAIL,kBAAkB,GACnB,MAAM,uBAAuB,CAAA;AAC9B,OAAO,aAAa,MAAM,2BAA2B,CAAA;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,CAAC;QAC9C,OAAO,IAAI,CAAA;IACb,CAAC;IACD,OAAO,CACL,cAAK,SAAS,EAAE,MAAM,CAAC,OAAO,YAC5B,KAAC,SAAS,IAAC,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,GAAI,GAC5C,CACP,CAAA;AACH,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,WAAW,GAAyB,CAAC,KAAK,EAAE,EAAE;IACzD,MAAM,gBAAgB,GAAG,kBAAkB,CACzC,aAAa,EACb,aAAa,EACb,eAAe,CAChB,CAAA;IACD,OAAO,KAAC,gBAAgB,OAAK,KAAK,GAAI,CAAA;AACxC,CAAC,CAAA","sourcesContent":["import type { FC } from 'react'\n\nimport { HighLight } from '../app/HighLight.js'\nimport {\n type DefaultComponent,\n type DescriptionClasses,\n type DescriptionProps,\n useCustomRendering,\n} from '../customise/index.js'\nimport defaultStyles from './Description.module.scss'\n\nconst DefaultRenderer: DefaultComponent<DescriptionProps, DescriptionClasses> = ({\n description,\n styles,\n}) => {\n if (!description || description.trim() === '') {\n return null\n }\n return (\n <div className={styles.content}>\n <HighLight text={description} markdown={true} />\n </div>\n )\n}\n\nexport const Description: FC<DescriptionProps> = (props) => {\n const ResolvedRenderer = useCustomRendering<DescriptionProps, DescriptionClasses>(\n 'Description',\n defaultStyles,\n DefaultRenderer\n )\n return <ResolvedRenderer {...props} />\n}\n"]}
@@ -1,4 +1,4 @@
1
- import React from 'react';
2
- import { DocStringProps } from '../customise/index.js';
3
- export declare const DocString: React.FunctionComponent<DocStringProps>;
1
+ import type { FC } from 'react';
2
+ import { type DocStringProps } from '../customise/index.js';
3
+ export declare const DocString: FC<DocStringProps>;
4
4
  //# sourceMappingURL=DocString.d.ts.map
@@ -1 +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,uBAAuB,CAAA;AAc9B,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,iBAAiB,CAAC,cAAc,CAO7D,CAAA"}
1
+ {"version":3,"file":"DocString.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/DocString.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAG/B,OAAO,EAGL,KAAK,cAAc,EAEpB,MAAM,uBAAuB,CAAA;AAc9B,eAAO,MAAM,SAAS,EAAE,EAAE,CAAC,cAAc,CAOxC,CAAA"}
@@ -1,13 +1,12 @@
1
- import React from 'react';
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { HighLight } from '../app/HighLight.js';
3
3
  import { useCustomRendering, } from '../customise/index.js';
4
4
  import defaultStyles from './DocString.module.scss';
5
5
  const DefaultRenderer = ({ docString, styles, }) => {
6
- return (React.createElement("pre", { className: styles.docString },
7
- React.createElement(HighLight, { text: docString.content })));
6
+ return (_jsx("pre", { className: styles.docString, children: _jsx(HighLight, { text: docString.content }) }));
8
7
  };
9
8
  export const DocString = (props) => {
10
9
  const ResolvedRenderer = useCustomRendering('DocString', defaultStyles, DefaultRenderer);
11
- return React.createElement(ResolvedRenderer, { ...props });
10
+ return _jsx(ResolvedRenderer, { ...props });
12
11
  };
13
12
  //# sourceMappingURL=DocString.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DocString.js","sourceRoot":"","sources":["../../../../src/components/gherkin/DocString.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAC/C,OAAO,EAIL,kBAAkB,GACnB,MAAM,uBAAuB,CAAA;AAC9B,OAAO,aAAa,MAAM,yBAAyB,CAAA;AAEnD,MAAM,eAAe,GAAuD,CAAC,EAC3E,SAAS,EACT,MAAM,GACP,EAAE,EAAE;IACH,OAAO,CACL,6BAAK,SAAS,EAAE,MAAM,CAAC,SAAS;QAC9B,oBAAC,SAAS,IAAC,IAAI,EAAE,SAAS,CAAC,OAAO,GAAI,CAClC,CACP,CAAA;AACH,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,SAAS,GAA4C,CAAC,KAAK,EAAE,EAAE;IAC1E,MAAM,gBAAgB,GAAG,kBAAkB,CACzC,WAAW,EACX,aAAa,EACb,eAAe,CAChB,CAAA;IACD,OAAO,oBAAC,gBAAgB,OAAK,KAAK,GAAI,CAAA;AACxC,CAAC,CAAA","sourcesContent":["import React from 'react'\n\nimport { HighLight } from '../app/HighLight.js'\nimport {\n DefaultComponent,\n DocStringClasses,\n DocStringProps,\n useCustomRendering,\n} from '../customise/index.js'\nimport defaultStyles from './DocString.module.scss'\n\nconst DefaultRenderer: DefaultComponent<DocStringProps, DocStringClasses> = ({\n docString,\n styles,\n}) => {\n return (\n <pre className={styles.docString}>\n <HighLight text={docString.content} />\n </pre>\n )\n}\n\nexport const DocString: React.FunctionComponent<DocStringProps> = (props) => {\n const ResolvedRenderer = useCustomRendering<DocStringProps, DocStringClasses>(\n 'DocString',\n defaultStyles,\n DefaultRenderer\n )\n return <ResolvedRenderer {...props} />\n}\n"]}
1
+ {"version":3,"file":"DocString.js","sourceRoot":"","sources":["../../../../src/components/gherkin/DocString.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAC/C,OAAO,EAIL,kBAAkB,GACnB,MAAM,uBAAuB,CAAA;AAC9B,OAAO,aAAa,MAAM,yBAAyB,CAAA;AAEnD,MAAM,eAAe,GAAuD,CAAC,EAC3E,SAAS,EACT,MAAM,GACP,EAAE,EAAE;IACH,OAAO,CACL,cAAK,SAAS,EAAE,MAAM,CAAC,SAAS,YAC9B,KAAC,SAAS,IAAC,IAAI,EAAE,SAAS,CAAC,OAAO,GAAI,GAClC,CACP,CAAA;AACH,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,SAAS,GAAuB,CAAC,KAAK,EAAE,EAAE;IACrD,MAAM,gBAAgB,GAAG,kBAAkB,CACzC,WAAW,EACX,aAAa,EACb,eAAe,CAChB,CAAA;IACD,OAAO,KAAC,gBAAgB,OAAK,KAAK,GAAI,CAAA;AACxC,CAAC,CAAA","sourcesContent":["import type { FC } from 'react'\n\nimport { HighLight } from '../app/HighLight.js'\nimport {\n type DefaultComponent,\n type DocStringClasses,\n type DocStringProps,\n useCustomRendering,\n} from '../customise/index.js'\nimport defaultStyles from './DocString.module.scss'\n\nconst DefaultRenderer: DefaultComponent<DocStringProps, DocStringClasses> = ({\n docString,\n styles,\n}) => {\n return (\n <pre className={styles.docString}>\n <HighLight text={docString.content} />\n </pre>\n )\n}\n\nexport const DocString: FC<DocStringProps> = (props) => {\n const ResolvedRenderer = useCustomRendering<DocStringProps, DocStringClasses>(\n 'DocString',\n defaultStyles,\n DefaultRenderer\n )\n return <ResolvedRenderer {...props} />\n}\n"]}
@@ -1,4 +1,4 @@
1
- import { FC } from 'react';
2
- import { ErrorMessageProps } from '../customise/index.js';
1
+ import type { FC } from 'react';
2
+ import { type ErrorMessageProps } from '../customise/index.js';
3
3
  export declare const ErrorMessage: FC<ErrorMessageProps>;
4
4
  //# sourceMappingURL=ErrorMessage.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ErrorMessage.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/ErrorMessage.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAEjC,OAAO,EAGL,iBAAiB,EAElB,MAAM,uBAAuB,CAAA;AAW9B,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,iBAAiB,CAO9C,CAAA"}
1
+ {"version":3,"file":"ErrorMessage.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/ErrorMessage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAG/B,OAAO,EAGL,KAAK,iBAAiB,EAEvB,MAAM,uBAAuB,CAAA;AAiB9B,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,iBAAiB,CAO9C,CAAA"}
@@ -1,11 +1,13 @@
1
- import React from 'react';
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { CopyButton } from '../app/CopyButton.js';
2
3
  import { useCustomRendering, } from '../customise/index.js';
3
4
  import defaultStyles from './ErrorMessage.module.scss';
4
5
  const DefaultRenderer = ({ message, children, styles, }) => {
5
- return React.createElement("pre", { className: styles.message }, message ?? children);
6
+ const text = message ?? (typeof children === 'string' ? children : '');
7
+ return (_jsxs("div", { className: styles.message, children: [_jsx("pre", { children: message ?? children }), _jsx(CopyButton, { className: styles.copyButton, text: text })] }));
6
8
  };
7
9
  export const ErrorMessage = ({ children, ...props }) => {
8
10
  const ResolvedRenderer = useCustomRendering('ErrorMessage', defaultStyles, DefaultRenderer);
9
- return React.createElement(ResolvedRenderer, { ...props }, children);
11
+ return _jsx(ResolvedRenderer, { ...props, children: children });
10
12
  };
11
13
  //# sourceMappingURL=ErrorMessage.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ErrorMessage.js","sourceRoot":"","sources":["../../../../src/components/gherkin/ErrorMessage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAa,MAAM,OAAO,CAAA;AAEjC,OAAO,EAIL,kBAAkB,GACnB,MAAM,uBAAuB,CAAA;AAC9B,OAAO,aAAa,MAAM,4BAA4B,CAAA;AAEtD,MAAM,eAAe,GAA6D,CAAC,EACjF,OAAO,EACP,QAAQ,EACR,MAAM,GACP,EAAE,EAAE;IACH,OAAO,6BAAK,SAAS,EAAE,MAAM,CAAC,OAAO,IAAG,OAAO,IAAI,QAAQ,CAAO,CAAA;AACpE,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,YAAY,GAA0B,CAAC,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE;IAC5E,MAAM,gBAAgB,GAAG,kBAAkB,CACzC,cAAc,EACd,aAAa,EACb,eAAe,CAChB,CAAA;IACD,OAAO,oBAAC,gBAAgB,OAAK,KAAK,IAAG,QAAQ,CAAoB,CAAA;AACnE,CAAC,CAAA","sourcesContent":["import React, { FC } from 'react'\n\nimport {\n DefaultComponent,\n ErrorMessageClasses,\n ErrorMessageProps,\n useCustomRendering,\n} from '../customise/index.js'\nimport defaultStyles from './ErrorMessage.module.scss'\n\nconst DefaultRenderer: DefaultComponent<ErrorMessageProps, ErrorMessageClasses> = ({\n message,\n children,\n styles,\n}) => {\n return <pre className={styles.message}>{message ?? children}</pre>\n}\n\nexport const ErrorMessage: FC<ErrorMessageProps> = ({ children, ...props }) => {\n const ResolvedRenderer = useCustomRendering<ErrorMessageProps, ErrorMessageClasses>(\n 'ErrorMessage',\n defaultStyles,\n DefaultRenderer\n )\n return <ResolvedRenderer {...props}>{children}</ResolvedRenderer>\n}\n"]}
1
+ {"version":3,"file":"ErrorMessage.js","sourceRoot":"","sources":["../../../../src/components/gherkin/ErrorMessage.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACjD,OAAO,EAIL,kBAAkB,GACnB,MAAM,uBAAuB,CAAA;AAC9B,OAAO,aAAa,MAAM,4BAA4B,CAAA;AAEtD,MAAM,eAAe,GAA6D,CAAC,EACjF,OAAO,EACP,QAAQ,EACR,MAAM,GACP,EAAE,EAAE;IACH,MAAM,IAAI,GAAG,OAAO,IAAI,CAAC,OAAO,QAAQ,KAAK,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAA;IACtE,OAAO,CACL,eAAK,SAAS,EAAE,MAAM,CAAC,OAAO,aAC5B,wBAAM,OAAO,IAAI,QAAQ,GAAO,EAChC,KAAC,UAAU,IAAC,SAAS,EAAE,MAAM,CAAC,UAAU,EAAE,IAAI,EAAE,IAAI,GAAI,IACpD,CACP,CAAA;AACH,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,YAAY,GAA0B,CAAC,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE;IAC5E,MAAM,gBAAgB,GAAG,kBAAkB,CACzC,cAAc,EACd,aAAa,EACb,eAAe,CAChB,CAAA;IACD,OAAO,KAAC,gBAAgB,OAAK,KAAK,YAAG,QAAQ,GAAoB,CAAA;AACnE,CAAC,CAAA","sourcesContent":["import type { FC } from 'react'\n\nimport { CopyButton } from '../app/CopyButton.js'\nimport {\n type DefaultComponent,\n type ErrorMessageClasses,\n type ErrorMessageProps,\n useCustomRendering,\n} from '../customise/index.js'\nimport defaultStyles from './ErrorMessage.module.scss'\n\nconst DefaultRenderer: DefaultComponent<ErrorMessageProps, ErrorMessageClasses> = ({\n message,\n children,\n styles,\n}) => {\n const text = message ?? (typeof children === 'string' ? children : '')\n return (\n <div className={styles.message}>\n <pre>{message ?? children}</pre>\n <CopyButton className={styles.copyButton} text={text} />\n </div>\n )\n}\n\nexport const ErrorMessage: FC<ErrorMessageProps> = ({ children, ...props }) => {\n const ResolvedRenderer = useCustomRendering<ErrorMessageProps, ErrorMessageClasses>(\n 'ErrorMessage',\n defaultStyles,\n DefaultRenderer\n )\n return <ResolvedRenderer {...props}>{children}</ResolvedRenderer>\n}\n"]}
@@ -1,12 +1,24 @@
1
1
  @use '../../styles/theming';
2
2
 
3
+ .copyButton {
4
+ position: absolute;
5
+ top: 0.5em;
6
+ right: 0.5em;
7
+ color: theming.$errorTextColor;
8
+ }
9
+
3
10
  .message {
4
- white-space: pre-wrap;
5
- font-size: 0.875em;
6
- padding: 0.666em 0.75em;
7
- border-radius: 0.25em;
8
- margin: 0;
11
+ position: relative;
12
+ width: fit-content;
9
13
  overflow-x: auto;
10
14
  background-color: theming.$errorBackgroundColor;
11
15
  color: theming.$errorTextColor;
16
+
17
+ pre {
18
+ white-space: pre-wrap;
19
+ font-size: 0.875em;
20
+ padding: 0.666em 2.25em 0.666em 0.75em;
21
+ border-radius: 0.25em;
22
+ margin: 0;
23
+ }
12
24
  }
@@ -1,4 +1,4 @@
1
- import React from 'react';
2
- import { ExamplesProps } from '../customise/index.js';
3
- export declare const Examples: React.FunctionComponent<ExamplesProps>;
1
+ import type { FC } from 'react';
2
+ import { type ExamplesProps } from '../customise/index.js';
3
+ export declare const Examples: FC<ExamplesProps>;
4
4
  //# sourceMappingURL=Examples.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Examples.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/Examples.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAa,MAAM,OAAO,CAAA;AAIjC,OAAO,EAAoB,aAAa,EAAsB,MAAM,uBAAuB,CAAA;AA2B3F,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,iBAAiB,CAAC,aAAa,CAO3D,CAAA"}
1
+ {"version":3,"file":"Examples.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/Examples.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAI/B,OAAO,EAEL,KAAK,aAAa,EAEnB,MAAM,uBAAuB,CAAA;AA2B9B,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAC,aAAa,CAOtC,CAAA"}
@@ -1,7 +1,7 @@
1
- import React from 'react';
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { useQueries } from '../../hooks/index.js';
3
3
  import { useTestCaseStarted } from '../../hooks/useTestCaseStarted.js';
4
- import { useCustomRendering } from '../customise/index.js';
4
+ import { useCustomRendering, } from '../customise/index.js';
5
5
  import { TestCaseOutcome } from '../results/index.js';
6
6
  import { Children } from './Children.js';
7
7
  import { Description } from './Description.js';
@@ -10,21 +10,13 @@ import { Keyword } from './Keyword.js';
10
10
  import { Tags } from './Tags.js';
11
11
  import { Title } from './Title.js';
12
12
  const DefaultRenderer = ({ examples }) => {
13
- return (React.createElement("section", null,
14
- React.createElement(Tags, { tags: examples.tags }),
15
- React.createElement(Title, { header: "h2", id: examples.id },
16
- React.createElement(Keyword, null,
17
- examples.keyword,
18
- ":"),
19
- React.createElement("span", null, examples.name)),
20
- React.createElement(Description, { description: examples.description }),
21
- React.createElement(Children, null, examples.tableBody.map((tableRow) => {
22
- return React.createElement(Example, { key: tableRow.id, tableRow: tableRow });
23
- }))));
13
+ return (_jsxs("section", { children: [_jsx(Tags, { tags: examples.tags }), _jsxs(Title, { header: "h2", id: examples.id, children: [_jsxs(Keyword, { children: [examples.keyword, ":"] }), _jsx("span", { children: examples.name })] }), _jsx(Description, { description: examples.description }), _jsx(Children, { children: examples.tableBody.map((tableRow) => {
14
+ return _jsx(Example, { tableRow: tableRow }, tableRow.id);
15
+ }) })] }));
24
16
  };
25
17
  export const Examples = (props) => {
26
18
  const ResolvedRenderer = useCustomRendering('Examples', defaultStyles, DefaultRenderer);
27
- return React.createElement(ResolvedRenderer, { ...props });
19
+ return _jsx(ResolvedRenderer, { ...props });
28
20
  };
29
21
  const Example = ({ tableRow }) => {
30
22
  const { cucumberQuery } = useQueries();
@@ -32,10 +24,7 @@ const Example = ({ tableRow }) => {
32
24
  if (testCaseStarted) {
33
25
  const lineage = cucumberQuery.findLineageBy(testCaseStarted);
34
26
  const name = `#${(lineage.examplesIndex ?? 0) + 1}.${(lineage.exampleIndex ?? 0) + 1}`;
35
- return (React.createElement("section", null,
36
- React.createElement(Title, { header: "h3", id: tableRow.id },
37
- React.createElement("span", { className: defaultStyles.exampleNumber }, name)),
38
- React.createElement(TestCaseOutcome, { testCaseStarted: testCaseStarted })));
27
+ return (_jsxs("section", { children: [_jsx(Title, { header: "h3", id: tableRow.id, children: _jsx("span", { className: defaultStyles.exampleNumber, children: name }) }), _jsx(TestCaseOutcome, { testCaseStarted: testCaseStarted })] }));
39
28
  }
40
29
  return null;
41
30
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Examples.js","sourceRoot":"","sources":["../../../../src/components/gherkin/Examples.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAa,MAAM,OAAO,CAAA;AAEjC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAA;AACtE,OAAO,EAAmC,kBAAkB,EAAE,MAAM,uBAAuB,CAAA;AAC3F,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAC9C,OAAO,aAAa,MAAM,wBAAwB,CAAA;AAClD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AACtC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AAElC,MAAM,eAAe,GAAoC,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE;IACxE,OAAO,CACL;QACE,oBAAC,IAAI,IAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,GAAI;QAC7B,oBAAC,KAAK,IAAC,MAAM,EAAC,IAAI,EAAC,EAAE,EAAE,QAAQ,CAAC,EAAE;YAChC,oBAAC,OAAO;gBAAE,QAAQ,CAAC,OAAO;oBAAY;YACtC,kCAAO,QAAQ,CAAC,IAAI,CAAQ,CACtB;QACR,oBAAC,WAAW,IAAC,WAAW,EAAE,QAAQ,CAAC,WAAW,GAAI;QAClD,oBAAC,QAAQ,QACN,QAAQ,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE;YACnC,OAAO,oBAAC,OAAO,IAAC,GAAG,EAAE,QAAQ,CAAC,EAAE,EAAE,QAAQ,EAAE,QAAQ,GAAI,CAAA;QAC1D,CAAC,CAAC,CACO,CACH,CACX,CAAA;AACH,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,QAAQ,GAA2C,CAAC,KAAK,EAAE,EAAE;IACxE,MAAM,gBAAgB,GAAG,kBAAkB,CACzC,UAAU,EACV,aAAa,EACb,eAAe,CAChB,CAAA;IACD,OAAO,oBAAC,gBAAgB,OAAK,KAAK,GAAI,CAAA;AACxC,CAAC,CAAA;AAED,MAAM,OAAO,GAA+B,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC3D,MAAM,EAAE,aAAa,EAAE,GAAG,UAAU,EAAE,CAAA;IACtC,MAAM,eAAe,GAAG,kBAAkB,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAA;IACvD,IAAI,eAAe,EAAE;QACnB,MAAM,OAAO,GAAG,aAAa,CAAC,aAAa,CAAC,eAAe,CAAY,CAAA;QACvE,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,IAAI,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,YAAY,IAAI,CAAC,CAAC,GAAG,CAAC,EAAE,CAAA;QACtF,OAAO,CACL;YACE,oBAAC,KAAK,IAAC,MAAM,EAAC,IAAI,EAAC,EAAE,EAAE,QAAQ,CAAC,EAAE;gBAChC,8BAAM,SAAS,EAAE,aAAa,CAAC,aAAa,IAAG,IAAI,CAAQ,CACrD;YACR,oBAAC,eAAe,IAAC,eAAe,EAAE,eAAe,GAAI,CAC7C,CACX,CAAA;KACF;IACD,OAAO,IAAI,CAAA;AACb,CAAC,CAAA","sourcesContent":["import { TableRow } from '@cucumber/messages'\nimport { Lineage } from '@cucumber/query'\nimport React, { FC } from 'react'\n\nimport { useQueries } from '../../hooks/index.js'\nimport { useTestCaseStarted } from '../../hooks/useTestCaseStarted.js'\nimport { DefaultComponent, ExamplesProps, useCustomRendering } from '../customise/index.js'\nimport { TestCaseOutcome } from '../results/index.js'\nimport { Children } from './Children.js'\nimport { Description } from './Description.js'\nimport defaultStyles from './Examples.module.scss'\nimport { Keyword } from './Keyword.js'\nimport { Tags } from './Tags.js'\nimport { Title } from './Title.js'\n\nconst DefaultRenderer: DefaultComponent<ExamplesProps> = ({ examples }) => {\n return (\n <section>\n <Tags tags={examples.tags} />\n <Title header=\"h2\" id={examples.id}>\n <Keyword>{examples.keyword}:</Keyword>\n <span>{examples.name}</span>\n </Title>\n <Description description={examples.description} />\n <Children>\n {examples.tableBody.map((tableRow) => {\n return <Example key={tableRow.id} tableRow={tableRow} />\n })}\n </Children>\n </section>\n )\n}\n\nexport const Examples: React.FunctionComponent<ExamplesProps> = (props) => {\n const ResolvedRenderer = useCustomRendering<ExamplesProps>(\n 'Examples',\n defaultStyles,\n DefaultRenderer\n )\n return <ResolvedRenderer {...props} />\n}\n\nconst Example: FC<{ tableRow: TableRow }> = ({ tableRow }) => {\n const { cucumberQuery } = useQueries()\n const testCaseStarted = useTestCaseStarted(tableRow.id)\n if (testCaseStarted) {\n const lineage = cucumberQuery.findLineageBy(testCaseStarted) as Lineage\n const name = `#${(lineage.examplesIndex ?? 0) + 1}.${(lineage.exampleIndex ?? 0) + 1}`\n return (\n <section>\n <Title header=\"h3\" id={tableRow.id}>\n <span className={defaultStyles.exampleNumber}>{name}</span>\n </Title>\n <TestCaseOutcome testCaseStarted={testCaseStarted} />\n </section>\n )\n }\n return null\n}\n"]}
1
+ {"version":3,"file":"Examples.js","sourceRoot":"","sources":["../../../../src/components/gherkin/Examples.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAA;AACtE,OAAO,EAGL,kBAAkB,GACnB,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAC9C,OAAO,aAAa,MAAM,wBAAwB,CAAA;AAClD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AACtC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AAElC,MAAM,eAAe,GAAoC,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE;IACxE,OAAO,CACL,8BACE,KAAC,IAAI,IAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,GAAI,EAC7B,MAAC,KAAK,IAAC,MAAM,EAAC,IAAI,EAAC,EAAE,EAAE,QAAQ,CAAC,EAAE,aAChC,MAAC,OAAO,eAAE,QAAQ,CAAC,OAAO,SAAY,EACtC,yBAAO,QAAQ,CAAC,IAAI,GAAQ,IACtB,EACR,KAAC,WAAW,IAAC,WAAW,EAAE,QAAQ,CAAC,WAAW,GAAI,EAClD,KAAC,QAAQ,cACN,QAAQ,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE;oBACnC,OAAO,KAAC,OAAO,IAAmB,QAAQ,EAAE,QAAQ,IAA/B,QAAQ,CAAC,EAAE,CAAwB,CAAA;gBAC1D,CAAC,CAAC,GACO,IACH,CACX,CAAA;AACH,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,QAAQ,GAAsB,CAAC,KAAK,EAAE,EAAE;IACnD,MAAM,gBAAgB,GAAG,kBAAkB,CACzC,UAAU,EACV,aAAa,EACb,eAAe,CAChB,CAAA;IACD,OAAO,KAAC,gBAAgB,OAAK,KAAK,GAAI,CAAA;AACxC,CAAC,CAAA;AAED,MAAM,OAAO,GAA+B,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC3D,MAAM,EAAE,aAAa,EAAE,GAAG,UAAU,EAAE,CAAA;IACtC,MAAM,eAAe,GAAG,kBAAkB,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAA;IACvD,IAAI,eAAe,EAAE,CAAC;QACpB,MAAM,OAAO,GAAG,aAAa,CAAC,aAAa,CAAC,eAAe,CAAY,CAAA;QACvE,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,IAAI,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,YAAY,IAAI,CAAC,CAAC,GAAG,CAAC,EAAE,CAAA;QACtF,OAAO,CACL,8BACE,KAAC,KAAK,IAAC,MAAM,EAAC,IAAI,EAAC,EAAE,EAAE,QAAQ,CAAC,EAAE,YAChC,eAAM,SAAS,EAAE,aAAa,CAAC,aAAa,YAAG,IAAI,GAAQ,GACrD,EACR,KAAC,eAAe,IAAC,eAAe,EAAE,eAAe,GAAI,IAC7C,CACX,CAAA;IACH,CAAC;IACD,OAAO,IAAI,CAAA;AACb,CAAC,CAAA","sourcesContent":["import type { TableRow } from '@cucumber/messages'\nimport type { Lineage } from '@cucumber/query'\n\nimport type { FC } from 'react'\n\nimport { useQueries } from '../../hooks/index.js'\nimport { useTestCaseStarted } from '../../hooks/useTestCaseStarted.js'\nimport {\n type DefaultComponent,\n type ExamplesProps,\n useCustomRendering,\n} from '../customise/index.js'\nimport { TestCaseOutcome } from '../results/index.js'\nimport { Children } from './Children.js'\nimport { Description } from './Description.js'\nimport defaultStyles from './Examples.module.scss'\nimport { Keyword } from './Keyword.js'\nimport { Tags } from './Tags.js'\nimport { Title } from './Title.js'\n\nconst DefaultRenderer: DefaultComponent<ExamplesProps> = ({ examples }) => {\n return (\n <section>\n <Tags tags={examples.tags} />\n <Title header=\"h2\" id={examples.id}>\n <Keyword>{examples.keyword}:</Keyword>\n <span>{examples.name}</span>\n </Title>\n <Description description={examples.description} />\n <Children>\n {examples.tableBody.map((tableRow) => {\n return <Example key={tableRow.id} tableRow={tableRow} />\n })}\n </Children>\n </section>\n )\n}\n\nexport const Examples: FC<ExamplesProps> = (props) => {\n const ResolvedRenderer = useCustomRendering<ExamplesProps>(\n 'Examples',\n defaultStyles,\n DefaultRenderer\n )\n return <ResolvedRenderer {...props} />\n}\n\nconst Example: FC<{ tableRow: TableRow }> = ({ tableRow }) => {\n const { cucumberQuery } = useQueries()\n const testCaseStarted = useTestCaseStarted(tableRow.id)\n if (testCaseStarted) {\n const lineage = cucumberQuery.findLineageBy(testCaseStarted) as Lineage\n const name = `#${(lineage.examplesIndex ?? 0) + 1}.${(lineage.exampleIndex ?? 0) + 1}`\n return (\n <section>\n <Title header=\"h3\" id={tableRow.id}>\n <span className={defaultStyles.exampleNumber}>{name}</span>\n </Title>\n <TestCaseOutcome testCaseStarted={testCaseStarted} />\n </section>\n )\n }\n return null\n}\n"]}
@@ -1,4 +1,4 @@
1
- import React from 'react';
2
- import { FeatureProps } from '../customise/index.js';
3
- export declare const Feature: React.FunctionComponent<FeatureProps>;
1
+ import type { FC } from 'react';
2
+ import { type FeatureProps } from '../customise/index.js';
3
+ export declare const Feature: FC<FeatureProps>;
4
4
  //# sourceMappingURL=Feature.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Feature.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/Feature.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,EAAoB,YAAY,EAAsB,MAAM,uBAAuB,CAAA;AAoC1F,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,iBAAiB,CAAC,YAAY,CAGzD,CAAA"}
1
+ {"version":3,"file":"Feature.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/Feature.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAG/B,OAAO,EAAyB,KAAK,YAAY,EAAsB,MAAM,uBAAuB,CAAA;AAqCpG,eAAO,MAAM,OAAO,EAAE,EAAE,CAAC,YAAY,CAGpC,CAAA"}