@cucumber/react-components 24.3.0 → 24.5.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 (635) hide show
  1. package/README.md +2 -2
  2. package/dist/{src/CucumberQueryContext.d.ts → CucumberQueryContext.d.ts} +0 -1
  3. package/dist/CucumberQueryContext.js +4 -0
  4. package/dist/{src/GherkinQueryContext.d.ts → GherkinQueryContext.d.ts} +0 -1
  5. package/dist/GherkinQueryContext.js +4 -0
  6. package/dist/{src/SearchContext.d.ts → SearchContext.d.ts} +0 -1
  7. package/dist/SearchContext.js +10 -0
  8. package/dist/{src/ciCommitLink.d.ts → ciCommitLink.d.ts} +0 -1
  9. package/dist/ciCommitLink.js +12 -0
  10. package/dist/{src/components → components}/app/CICommitLink.d.ts +0 -1
  11. package/dist/components/app/CICommitLink.js +16 -0
  12. package/dist/{src/components → components}/app/CIJobLink.d.ts +0 -1
  13. package/dist/components/app/CIJobLink.js +10 -0
  14. package/dist/{src/components → components}/app/ControlledSearchProvider.d.ts +0 -1
  15. package/dist/components/app/ControlledSearchProvider.js +39 -0
  16. package/dist/{src/components → components}/app/CopyButton.d.ts +0 -1
  17. package/dist/components/app/CopyButton.js +23 -0
  18. package/dist/{src/components → components}/app/DocumentAccordion.d.ts +0 -1
  19. package/dist/components/app/DocumentAccordion.js +22 -0
  20. package/dist/{src/components → components}/app/EnvelopesProvider.d.ts +0 -1
  21. package/dist/components/app/EnvelopesProvider.js +18 -0
  22. package/dist/{src/components → components}/app/ExecutionSummary.d.ts +0 -1
  23. package/dist/components/app/ExecutionSummary.js +38 -0
  24. package/dist/{src/components → components}/app/FilteredDocuments.d.ts +0 -1
  25. package/dist/components/app/FilteredDocuments.js +15 -0
  26. package/dist/{src/components → components}/app/GherkinDocumentList.d.ts +0 -1
  27. package/dist/components/app/GherkinDocumentList.js +23 -0
  28. package/dist/{src/components → components}/app/Header.d.ts +0 -1
  29. package/dist/components/app/Header.js +12 -0
  30. package/dist/{src/components → components}/app/HealthChart.d.ts +0 -1
  31. package/dist/components/app/HealthChart.js +14 -0
  32. package/dist/{src/components → components}/app/HighLight.d.ts +0 -1
  33. package/dist/components/app/HighLight.js +38 -0
  34. package/dist/{src/components → components}/app/ImplementationIcon.d.ts +0 -1
  35. package/dist/components/app/ImplementationIcon.js +10 -0
  36. package/dist/{src/components → components}/app/InMemorySearchProvider.d.ts +0 -1
  37. package/dist/components/app/InMemorySearchProvider.js +11 -0
  38. package/dist/{src/components → components}/app/NavigationButton.d.ts +0 -1
  39. package/dist/components/app/NavigationButton.js +6 -0
  40. package/dist/{src/components → components}/app/OSIcon.d.ts +0 -1
  41. package/dist/components/app/OSIcon.js +18 -0
  42. package/dist/{src/components → components}/app/QueriesProvider.d.ts +0 -1
  43. package/dist/components/app/QueriesProvider.js +7 -0
  44. package/dist/{src/components → components}/app/Report.d.ts +0 -1
  45. package/dist/components/app/Report.js +10 -0
  46. package/dist/{src/components → components}/app/RuntimeIcon.d.ts +0 -1
  47. package/dist/components/app/RuntimeIcon.js +18 -0
  48. package/dist/{src/components → components}/app/SearchBar.d.ts +0 -1
  49. package/dist/components/app/SearchBar.js +33 -0
  50. package/dist/{src/components → components}/app/StatusesSummary.d.ts +0 -1
  51. package/dist/components/app/StatusesSummary.js +16 -0
  52. package/dist/{src/components → components}/app/TestRunHooks.d.ts +0 -1
  53. package/dist/components/app/TestRunHooks.js +14 -0
  54. package/dist/{src/components → components}/app/UrlSearchProvider.d.ts +0 -1
  55. package/dist/components/app/UrlSearchProvider.js +29 -0
  56. package/dist/{src/components → components}/app/findMostSevereTestStepResultStatus.d.ts +0 -1
  57. package/dist/components/app/findMostSevereTestStepResultStatus.js +17 -0
  58. package/dist/{src/components → components}/app/icons/CucumberLogo.d.ts +0 -1
  59. package/dist/components/app/icons/CucumberLogo.js +5 -0
  60. package/dist/{src/components → components}/app/icons/Jvm.d.ts +0 -1
  61. package/dist/components/app/icons/Jvm.js +5 -0
  62. package/dist/{src/components → components}/app/icons/Linux.d.ts +0 -1
  63. package/dist/components/app/icons/Linux.js +5 -0
  64. package/dist/{src/components → components}/app/icons/MacOS.d.ts +0 -1
  65. package/dist/components/app/icons/MacOS.js +5 -0
  66. package/dist/{src/components → components}/app/icons/NodeJs.d.ts +0 -1
  67. package/dist/components/app/icons/NodeJs.js +5 -0
  68. package/dist/{src/components → components}/app/icons/Ruby.d.ts +0 -1
  69. package/dist/components/app/icons/Ruby.js +5 -0
  70. package/dist/{src/components → components}/app/icons/Windows.d.ts +0 -1
  71. package/dist/components/app/icons/Windows.js +5 -0
  72. package/dist/{src/components/app/index.js → components/app/index.d.ts} +0 -1
  73. package/dist/components/app/index.js +15 -0
  74. package/dist/{src/components → components}/app/makeSetupString.d.ts +0 -1
  75. package/dist/components/app/makeSetupString.js +21 -0
  76. package/dist/{src/components → components}/app/markdownComponents.d.ts +1 -2
  77. package/dist/components/app/markdownComponents.js +6 -0
  78. package/dist/{src/components → components}/app/rehypePlugins.d.ts +0 -1
  79. package/dist/components/app/rehypePlugins.js +9 -0
  80. package/dist/{src/components → components}/app/remarkPlugins.d.ts +0 -1
  81. package/dist/components/app/remarkPlugins.js +4 -0
  82. package/dist/{src/components → components}/customise/CustomRendering.d.ts +0 -1
  83. package/dist/components/customise/CustomRendering.js +35 -0
  84. package/dist/{src/components/customise/index.js → components/customise/index.d.ts} +0 -1
  85. package/dist/components/customise/index.js +3 -0
  86. package/dist/{src/components → components}/customise/theming.d.ts +0 -1
  87. package/dist/components/customise/theming.js +2 -0
  88. package/dist/{src/components → components}/gherkin/Anchor.d.ts +0 -1
  89. package/dist/components/gherkin/Anchor.js +13 -0
  90. package/dist/{src/components → components}/gherkin/Background.d.ts +0 -1
  91. package/dist/components/gherkin/Background.js +18 -0
  92. package/dist/{src/components → components}/gherkin/Children.d.ts +0 -1
  93. package/dist/components/gherkin/Children.js +11 -0
  94. package/dist/{src/components → components}/gherkin/DataTable.d.ts +0 -1
  95. package/dist/components/gherkin/DataTable.js +16 -0
  96. package/dist/{src/components → components}/gherkin/Description.d.ts +0 -1
  97. package/dist/components/gherkin/Description.js +15 -0
  98. package/dist/{src/components → components}/gherkin/DocString.d.ts +0 -1
  99. package/dist/components/gherkin/DocString.js +12 -0
  100. package/dist/{src/components → components}/gherkin/ErrorMessage.d.ts +0 -1
  101. package/dist/components/gherkin/ErrorMessage.js +13 -0
  102. package/dist/{src/components → components}/gherkin/Examples.d.ts +0 -1
  103. package/dist/components/gherkin/Examples.js +31 -0
  104. package/dist/{src/components → components}/gherkin/Feature.d.ts +0 -1
  105. package/dist/components/gherkin/Feature.js +30 -0
  106. package/dist/{src/components → components}/gherkin/GherkinDocument.d.ts +0 -1
  107. package/dist/components/gherkin/GherkinDocument.js +11 -0
  108. package/dist/{src/components → components}/gherkin/Keyword.d.ts +0 -1
  109. package/dist/components/gherkin/Keyword.js +11 -0
  110. package/dist/{src/components → components}/gherkin/Parameter.d.ts +0 -1
  111. package/dist/components/gherkin/Parameter.js +11 -0
  112. package/dist/{src/components → components}/gherkin/Rule.d.ts +0 -1
  113. package/dist/components/gherkin/Rule.js +26 -0
  114. package/dist/{src/components → components}/gherkin/Scenario.d.ts +0 -1
  115. package/dist/components/gherkin/Scenario.js +22 -0
  116. package/dist/{src/components → components}/gherkin/StatusIcon.d.ts +0 -1
  117. package/dist/components/gherkin/StatusIcon.js +24 -0
  118. package/dist/{src/components → components}/gherkin/StepsList.d.ts +0 -1
  119. package/dist/components/gherkin/StepsList.js +6 -0
  120. package/dist/{src/components → components}/gherkin/Tags.d.ts +0 -1
  121. package/dist/components/gherkin/Tags.js +15 -0
  122. package/dist/{src/components → components}/gherkin/Title.d.ts +0 -1
  123. package/dist/components/gherkin/Title.js +12 -0
  124. package/dist/{src/components → components}/gherkin/attachment/Attachment.d.ts +0 -1
  125. package/dist/components/gherkin/attachment/Attachment.js +45 -0
  126. package/dist/{src/components → components}/gherkin/attachment/Image.d.ts +0 -1
  127. package/dist/components/gherkin/attachment/Image.js +16 -0
  128. package/dist/{src/components → components}/gherkin/attachment/Links.d.ts +0 -1
  129. package/dist/components/gherkin/attachment/Links.js +14 -0
  130. package/dist/{src/components → components}/gherkin/attachment/Log.d.ts +0 -1
  131. package/dist/components/gherkin/attachment/Log.js +12 -0
  132. package/dist/{src/components → components}/gherkin/attachment/Text.d.ts +0 -1
  133. package/dist/components/gherkin/attachment/Text.js +16 -0
  134. package/dist/{src/components → components}/gherkin/attachment/Unknown.d.ts +0 -1
  135. package/dist/components/gherkin/attachment/Unknown.js +61 -0
  136. package/dist/{src/components → components}/gherkin/attachment/Video.d.ts +0 -1
  137. package/dist/components/gherkin/attachment/Video.js +16 -0
  138. package/dist/{src/components → components}/gherkin/attachment/attachmentFilename.d.ts +0 -1
  139. package/dist/components/gherkin/attachment/attachmentFilename.js +12 -0
  140. package/dist/{src/components → components}/gherkin/attachment/base64Decode.d.ts +0 -1
  141. package/dist/components/gherkin/attachment/base64Decode.js +19 -0
  142. package/dist/{src/components/gherkin/attachment/index.js → components/gherkin/attachment/index.d.ts} +0 -1
  143. package/dist/components/gherkin/attachment/index.js +2 -0
  144. package/dist/{src/components → components}/gherkin/attachment/useText.d.ts +0 -1
  145. package/dist/components/gherkin/attachment/useText.js +28 -0
  146. package/dist/{src/components → components}/gherkin/composeHookStepTitle.d.ts +0 -1
  147. package/dist/components/gherkin/composeHookStepTitle.js +23 -0
  148. package/dist/{src/components → components}/gherkin/composePickleStepTitle.d.ts +0 -1
  149. package/dist/components/gherkin/composePickleStepTitle.js +36 -0
  150. package/dist/{src/components/gherkin/index.js → components/gherkin/index.d.ts} +0 -1
  151. package/dist/components/gherkin/index.js +19 -0
  152. package/dist/{src/components → components}/gherkin/isNumber.d.ts +0 -1
  153. package/dist/components/gherkin/isNumber.js +7 -0
  154. package/dist/components/gherkin/statusName.d.ts +3 -0
  155. package/dist/components/gherkin/statusName.js +4 -0
  156. package/dist/{src/components/index.js → components/index.d.ts} +0 -1
  157. package/dist/components/index.js +4 -0
  158. package/dist/{src/components → components}/results/AmbiguousResult.d.ts +0 -1
  159. package/dist/components/results/AmbiguousResult.js +11 -0
  160. package/dist/{src/components → components}/results/FailedResult.d.ts +0 -1
  161. package/dist/components/results/FailedResult.js +15 -0
  162. package/dist/{src/components → components}/results/PendingResult.d.ts +0 -1
  163. package/dist/components/results/PendingResult.js +12 -0
  164. package/dist/{src/components → components}/results/ResultNote.d.ts +0 -1
  165. package/dist/components/results/ResultNote.js +6 -0
  166. package/dist/{src/components → components}/results/SkippedResult.d.ts +0 -1
  167. package/dist/components/results/SkippedResult.js +12 -0
  168. package/dist/{src/components → components}/results/SourceReference.d.ts +0 -1
  169. package/dist/components/results/SourceReference.js +13 -0
  170. package/dist/{src/components → components}/results/TestCaseOutcome.d.ts +0 -1
  171. package/dist/components/results/TestCaseOutcome.js +32 -0
  172. package/dist/{src/components → components}/results/TestRunHookOutcome.d.ts +0 -1
  173. package/dist/components/results/TestRunHookOutcome.js +11 -0
  174. package/dist/{src/components → components}/results/TestStepAttachments.d.ts +0 -1
  175. package/dist/components/results/TestStepAttachments.js +12 -0
  176. package/dist/{src/components → components}/results/TestStepDuration.d.ts +0 -1
  177. package/dist/components/results/TestStepDuration.js +19 -0
  178. package/dist/{src/components → components}/results/TestStepOutcome.d.ts +0 -1
  179. package/dist/components/results/TestStepOutcome.js +43 -0
  180. package/dist/{src/components → components}/results/UndefinedResult.d.ts +0 -1
  181. package/dist/components/results/UndefinedResult.js +18 -0
  182. package/dist/{src/components/results/index.js → components/results/index.d.ts} +0 -1
  183. package/dist/components/results/index.js +3 -0
  184. package/dist/{src/hooks/helpers.d.ts → ensure.d.ts} +0 -1
  185. package/dist/ensure.js +7 -0
  186. package/dist/{src/formatExecutionDistance.d.ts → formatExecutionDistance.d.ts} +0 -1
  187. package/dist/formatExecutionDistance.js +7 -0
  188. package/dist/{src/formatExecutionDuration.d.ts → formatExecutionDuration.d.ts} +0 -1
  189. package/dist/formatExecutionDuration.js +12 -0
  190. package/dist/{src/formatPassedQuantity.d.ts → formatPassedQuantity.d.ts} +0 -1
  191. package/dist/formatPassedQuantity.js +4 -0
  192. package/dist/{src/formatStatusRate.d.ts → formatStatusRate.d.ts} +0 -1
  193. package/dist/formatStatusRate.js +9 -0
  194. package/dist/{src/hooks/index.js → hooks/index.d.ts} +0 -1
  195. package/dist/hooks/index.js +3 -0
  196. package/dist/{src/hooks → hooks}/useFilteredDocuments.d.ts +1 -2
  197. package/dist/hooks/useFilteredDocuments.js +67 -0
  198. package/dist/hooks/useFilteredTestCases.d.ts +6 -0
  199. package/dist/hooks/useFilteredTestCases.js +36 -0
  200. package/dist/{src/hooks → hooks}/useMostSevereStatusByUri.d.ts +0 -1
  201. package/dist/hooks/useMostSevereStatusByUri.js +25 -0
  202. package/dist/{src/hooks → hooks}/useQueries.d.ts +0 -1
  203. package/dist/hooks/useQueries.js +9 -0
  204. package/dist/{src/hooks → hooks}/useResultStatistics.d.ts +0 -1
  205. package/dist/hooks/useResultStatistics.js +24 -0
  206. package/dist/{src/hooks → hooks}/useSearch.d.ts +0 -1
  207. package/dist/hooks/useSearch.js +6 -0
  208. package/dist/hooks/useSearchResult.d.ts +26 -0
  209. package/dist/hooks/useSearchResult.js +58 -0
  210. package/dist/{src/hooks → hooks}/useTestCaseStarted.d.ts +0 -1
  211. package/dist/hooks/useTestCaseStarted.js +20 -0
  212. package/dist/{src/hooks → hooks}/useTestRunHooks.d.ts +0 -1
  213. package/dist/hooks/useTestRunHooks.js +14 -0
  214. package/dist/{src/index.js → index.d.ts} +0 -1
  215. package/dist/index.js +3 -0
  216. package/dist/{src/isTagExpression.d.ts → isTagExpression.d.ts} +0 -1
  217. package/dist/isTagExpression.js +5 -0
  218. package/dist/{src/search → search}/FeatureSearch.d.ts +0 -1
  219. package/dist/search/FeatureSearch.js +39 -0
  220. package/dist/{src/search → search}/ScenarioLikeSearch.d.ts +0 -1
  221. package/dist/search/ScenarioLikeSearch.js +37 -0
  222. package/dist/{src/search → search}/StepSearch.d.ts +0 -1
  223. package/dist/search/StepSearch.js +40 -0
  224. package/dist/{src/search → search}/TextSearch.d.ts +1 -2
  225. package/dist/search/TextSearch.js +67 -0
  226. package/dist/{src/search → search}/createSearchIndex.d.ts +0 -1
  227. package/dist/search/createSearchIndex.js +10 -0
  228. package/dist/{src/search → search}/deriveLineageConstraints.d.ts +0 -1
  229. package/dist/search/deriveLineageConstraints.js +38 -0
  230. package/dist/search/filterAndExpandTestCaseEvents.d.ts +20 -0
  231. package/dist/search/filterAndExpandTestCaseEvents.js +32 -0
  232. package/dist/{src/search → search}/index.d.ts +2 -1
  233. package/dist/search/index.js +7 -0
  234. package/dist/{src/search → search}/pruneGherkinDocuments.d.ts +3 -4
  235. package/dist/search/pruneGherkinDocuments.js +179 -0
  236. package/dist/search/pruneTestCaseEvents.d.ts +16 -0
  237. package/dist/search/pruneTestCaseEvents.js +41 -0
  238. package/dist/{src/search → search}/types.d.ts +5 -6
  239. package/dist/search/types.js +2 -0
  240. package/dist/{src/statuses.d.ts → statuses.d.ts} +0 -1
  241. package/dist/statuses.js +12 -0
  242. package/dist/{src/toRepositoryId.d.ts → toRepositoryId.d.ts} +0 -1
  243. package/dist/toRepositoryId.js +12 -0
  244. package/package.json +30 -32
  245. package/dist/src/CucumberQueryContext.d.ts.map +0 -1
  246. package/dist/src/CucumberQueryContext.js +0 -4
  247. package/dist/src/CucumberQueryContext.js.map +0 -1
  248. package/dist/src/GherkinQueryContext.d.ts.map +0 -1
  249. package/dist/src/GherkinQueryContext.js +0 -4
  250. package/dist/src/GherkinQueryContext.js.map +0 -1
  251. package/dist/src/SearchContext.d.ts.map +0 -1
  252. package/dist/src/SearchContext.js +0 -10
  253. package/dist/src/SearchContext.js.map +0 -1
  254. package/dist/src/ciCommitLink.d.ts.map +0 -1
  255. package/dist/src/ciCommitLink.js +0 -12
  256. package/dist/src/ciCommitLink.js.map +0 -1
  257. package/dist/src/components/app/CICommitLink.d.ts.map +0 -1
  258. package/dist/src/components/app/CICommitLink.js +0 -16
  259. package/dist/src/components/app/CICommitLink.js.map +0 -1
  260. package/dist/src/components/app/CIJobLink.d.ts.map +0 -1
  261. package/dist/src/components/app/CIJobLink.js +0 -10
  262. package/dist/src/components/app/CIJobLink.js.map +0 -1
  263. package/dist/src/components/app/ControlledSearchProvider.d.ts.map +0 -1
  264. package/dist/src/components/app/ControlledSearchProvider.js +0 -39
  265. package/dist/src/components/app/ControlledSearchProvider.js.map +0 -1
  266. package/dist/src/components/app/CopyButton.d.ts.map +0 -1
  267. package/dist/src/components/app/CopyButton.js +0 -23
  268. package/dist/src/components/app/CopyButton.js.map +0 -1
  269. package/dist/src/components/app/DocumentAccordion.d.ts.map +0 -1
  270. package/dist/src/components/app/DocumentAccordion.js +0 -22
  271. package/dist/src/components/app/DocumentAccordion.js.map +0 -1
  272. package/dist/src/components/app/EnvelopesProvider.d.ts.map +0 -1
  273. package/dist/src/components/app/EnvelopesProvider.js +0 -18
  274. package/dist/src/components/app/EnvelopesProvider.js.map +0 -1
  275. package/dist/src/components/app/ExecutionSummary.d.ts.map +0 -1
  276. package/dist/src/components/app/ExecutionSummary.js +0 -38
  277. package/dist/src/components/app/ExecutionSummary.js.map +0 -1
  278. package/dist/src/components/app/FilteredDocuments.d.ts.map +0 -1
  279. package/dist/src/components/app/FilteredDocuments.js +0 -15
  280. package/dist/src/components/app/FilteredDocuments.js.map +0 -1
  281. package/dist/src/components/app/GherkinDocumentList.d.ts.map +0 -1
  282. package/dist/src/components/app/GherkinDocumentList.js +0 -23
  283. package/dist/src/components/app/GherkinDocumentList.js.map +0 -1
  284. package/dist/src/components/app/Header.d.ts.map +0 -1
  285. package/dist/src/components/app/Header.js +0 -12
  286. package/dist/src/components/app/Header.js.map +0 -1
  287. package/dist/src/components/app/HealthChart.d.ts.map +0 -1
  288. package/dist/src/components/app/HealthChart.js +0 -14
  289. package/dist/src/components/app/HealthChart.js.map +0 -1
  290. package/dist/src/components/app/HighLight.d.ts.map +0 -1
  291. package/dist/src/components/app/HighLight.js +0 -38
  292. package/dist/src/components/app/HighLight.js.map +0 -1
  293. package/dist/src/components/app/ImplementationIcon.d.ts.map +0 -1
  294. package/dist/src/components/app/ImplementationIcon.js +0 -10
  295. package/dist/src/components/app/ImplementationIcon.js.map +0 -1
  296. package/dist/src/components/app/InMemorySearchProvider.d.ts.map +0 -1
  297. package/dist/src/components/app/InMemorySearchProvider.js +0 -11
  298. package/dist/src/components/app/InMemorySearchProvider.js.map +0 -1
  299. package/dist/src/components/app/NavigationButton.d.ts.map +0 -1
  300. package/dist/src/components/app/NavigationButton.js +0 -6
  301. package/dist/src/components/app/NavigationButton.js.map +0 -1
  302. package/dist/src/components/app/OSIcon.d.ts.map +0 -1
  303. package/dist/src/components/app/OSIcon.js +0 -18
  304. package/dist/src/components/app/OSIcon.js.map +0 -1
  305. package/dist/src/components/app/QueriesProvider.d.ts.map +0 -1
  306. package/dist/src/components/app/QueriesProvider.js +0 -7
  307. package/dist/src/components/app/QueriesProvider.js.map +0 -1
  308. package/dist/src/components/app/Report.d.ts.map +0 -1
  309. package/dist/src/components/app/Report.js +0 -10
  310. package/dist/src/components/app/Report.js.map +0 -1
  311. package/dist/src/components/app/RuntimeIcon.d.ts.map +0 -1
  312. package/dist/src/components/app/RuntimeIcon.js +0 -18
  313. package/dist/src/components/app/RuntimeIcon.js.map +0 -1
  314. package/dist/src/components/app/SearchBar.d.ts.map +0 -1
  315. package/dist/src/components/app/SearchBar.js +0 -33
  316. package/dist/src/components/app/SearchBar.js.map +0 -1
  317. package/dist/src/components/app/StatusesSummary.d.ts.map +0 -1
  318. package/dist/src/components/app/StatusesSummary.js +0 -16
  319. package/dist/src/components/app/StatusesSummary.js.map +0 -1
  320. package/dist/src/components/app/TestRunHooks.d.ts.map +0 -1
  321. package/dist/src/components/app/TestRunHooks.js +0 -14
  322. package/dist/src/components/app/TestRunHooks.js.map +0 -1
  323. package/dist/src/components/app/UrlSearchProvider.d.ts.map +0 -1
  324. package/dist/src/components/app/UrlSearchProvider.js +0 -29
  325. package/dist/src/components/app/UrlSearchProvider.js.map +0 -1
  326. package/dist/src/components/app/findMostSevereTestStepResultStatus.d.ts.map +0 -1
  327. package/dist/src/components/app/findMostSevereTestStepResultStatus.js +0 -17
  328. package/dist/src/components/app/findMostSevereTestStepResultStatus.js.map +0 -1
  329. package/dist/src/components/app/icons/CucumberLogo.d.ts.map +0 -1
  330. package/dist/src/components/app/icons/CucumberLogo.js +0 -5
  331. package/dist/src/components/app/icons/CucumberLogo.js.map +0 -1
  332. package/dist/src/components/app/icons/Jvm.d.ts.map +0 -1
  333. package/dist/src/components/app/icons/Jvm.js +0 -5
  334. package/dist/src/components/app/icons/Jvm.js.map +0 -1
  335. package/dist/src/components/app/icons/Linux.d.ts.map +0 -1
  336. package/dist/src/components/app/icons/Linux.js +0 -5
  337. package/dist/src/components/app/icons/Linux.js.map +0 -1
  338. package/dist/src/components/app/icons/MacOS.d.ts.map +0 -1
  339. package/dist/src/components/app/icons/MacOS.js +0 -5
  340. package/dist/src/components/app/icons/MacOS.js.map +0 -1
  341. package/dist/src/components/app/icons/NodeJs.d.ts.map +0 -1
  342. package/dist/src/components/app/icons/NodeJs.js +0 -5
  343. package/dist/src/components/app/icons/NodeJs.js.map +0 -1
  344. package/dist/src/components/app/icons/Ruby.d.ts.map +0 -1
  345. package/dist/src/components/app/icons/Ruby.js +0 -5
  346. package/dist/src/components/app/icons/Ruby.js.map +0 -1
  347. package/dist/src/components/app/icons/Windows.d.ts.map +0 -1
  348. package/dist/src/components/app/icons/Windows.js +0 -5
  349. package/dist/src/components/app/icons/Windows.js.map +0 -1
  350. package/dist/src/components/app/index.d.ts +0 -15
  351. package/dist/src/components/app/index.d.ts.map +0 -1
  352. package/dist/src/components/app/index.js.map +0 -1
  353. package/dist/src/components/app/makeSetupString.d.ts.map +0 -1
  354. package/dist/src/components/app/makeSetupString.js +0 -21
  355. package/dist/src/components/app/makeSetupString.js.map +0 -1
  356. package/dist/src/components/app/markdownComponents.d.ts.map +0 -1
  357. package/dist/src/components/app/markdownComponents.js +0 -6
  358. package/dist/src/components/app/markdownComponents.js.map +0 -1
  359. package/dist/src/components/app/rehypePlugins.d.ts.map +0 -1
  360. package/dist/src/components/app/rehypePlugins.js +0 -9
  361. package/dist/src/components/app/rehypePlugins.js.map +0 -1
  362. package/dist/src/components/app/remarkPlugins.d.ts.map +0 -1
  363. package/dist/src/components/app/remarkPlugins.js +0 -4
  364. package/dist/src/components/app/remarkPlugins.js.map +0 -1
  365. package/dist/src/components/customise/CustomRendering.d.ts.map +0 -1
  366. package/dist/src/components/customise/CustomRendering.js +0 -35
  367. package/dist/src/components/customise/CustomRendering.js.map +0 -1
  368. package/dist/src/components/customise/index.d.ts +0 -3
  369. package/dist/src/components/customise/index.d.ts.map +0 -1
  370. package/dist/src/components/customise/index.js.map +0 -1
  371. package/dist/src/components/customise/theming.d.ts.map +0 -1
  372. package/dist/src/components/customise/theming.js +0 -2
  373. package/dist/src/components/customise/theming.js.map +0 -1
  374. package/dist/src/components/gherkin/Anchor.d.ts.map +0 -1
  375. package/dist/src/components/gherkin/Anchor.js +0 -13
  376. package/dist/src/components/gherkin/Anchor.js.map +0 -1
  377. package/dist/src/components/gherkin/Background.d.ts.map +0 -1
  378. package/dist/src/components/gherkin/Background.js +0 -18
  379. package/dist/src/components/gherkin/Background.js.map +0 -1
  380. package/dist/src/components/gherkin/Children.d.ts.map +0 -1
  381. package/dist/src/components/gherkin/Children.js +0 -11
  382. package/dist/src/components/gherkin/Children.js.map +0 -1
  383. package/dist/src/components/gherkin/DataTable.d.ts.map +0 -1
  384. package/dist/src/components/gherkin/DataTable.js +0 -16
  385. package/dist/src/components/gherkin/DataTable.js.map +0 -1
  386. package/dist/src/components/gherkin/Description.d.ts.map +0 -1
  387. package/dist/src/components/gherkin/Description.js +0 -15
  388. package/dist/src/components/gherkin/Description.js.map +0 -1
  389. package/dist/src/components/gherkin/DocString.d.ts.map +0 -1
  390. package/dist/src/components/gherkin/DocString.js +0 -12
  391. package/dist/src/components/gherkin/DocString.js.map +0 -1
  392. package/dist/src/components/gherkin/ErrorMessage.d.ts.map +0 -1
  393. package/dist/src/components/gherkin/ErrorMessage.js +0 -13
  394. package/dist/src/components/gherkin/ErrorMessage.js.map +0 -1
  395. package/dist/src/components/gherkin/Examples.d.ts.map +0 -1
  396. package/dist/src/components/gherkin/Examples.js +0 -31
  397. package/dist/src/components/gherkin/Examples.js.map +0 -1
  398. package/dist/src/components/gherkin/Feature.d.ts.map +0 -1
  399. package/dist/src/components/gherkin/Feature.js +0 -30
  400. package/dist/src/components/gherkin/Feature.js.map +0 -1
  401. package/dist/src/components/gherkin/GherkinDocument.d.ts.map +0 -1
  402. package/dist/src/components/gherkin/GherkinDocument.js +0 -11
  403. package/dist/src/components/gherkin/GherkinDocument.js.map +0 -1
  404. package/dist/src/components/gherkin/Keyword.d.ts.map +0 -1
  405. package/dist/src/components/gherkin/Keyword.js +0 -11
  406. package/dist/src/components/gherkin/Keyword.js.map +0 -1
  407. package/dist/src/components/gherkin/Parameter.d.ts.map +0 -1
  408. package/dist/src/components/gherkin/Parameter.js +0 -11
  409. package/dist/src/components/gherkin/Parameter.js.map +0 -1
  410. package/dist/src/components/gherkin/Rule.d.ts.map +0 -1
  411. package/dist/src/components/gherkin/Rule.js +0 -26
  412. package/dist/src/components/gherkin/Rule.js.map +0 -1
  413. package/dist/src/components/gherkin/Scenario.d.ts.map +0 -1
  414. package/dist/src/components/gherkin/Scenario.js +0 -22
  415. package/dist/src/components/gherkin/Scenario.js.map +0 -1
  416. package/dist/src/components/gherkin/StatusIcon.d.ts.map +0 -1
  417. package/dist/src/components/gherkin/StatusIcon.js +0 -24
  418. package/dist/src/components/gherkin/StatusIcon.js.map +0 -1
  419. package/dist/src/components/gherkin/StepsList.d.ts.map +0 -1
  420. package/dist/src/components/gherkin/StepsList.js +0 -6
  421. package/dist/src/components/gherkin/StepsList.js.map +0 -1
  422. package/dist/src/components/gherkin/Tags.d.ts.map +0 -1
  423. package/dist/src/components/gherkin/Tags.js +0 -15
  424. package/dist/src/components/gherkin/Tags.js.map +0 -1
  425. package/dist/src/components/gherkin/Title.d.ts.map +0 -1
  426. package/dist/src/components/gherkin/Title.js +0 -12
  427. package/dist/src/components/gherkin/Title.js.map +0 -1
  428. package/dist/src/components/gherkin/attachment/Attachment.d.ts.map +0 -1
  429. package/dist/src/components/gherkin/attachment/Attachment.js +0 -45
  430. package/dist/src/components/gherkin/attachment/Attachment.js.map +0 -1
  431. package/dist/src/components/gherkin/attachment/Image.d.ts.map +0 -1
  432. package/dist/src/components/gherkin/attachment/Image.js +0 -16
  433. package/dist/src/components/gherkin/attachment/Image.js.map +0 -1
  434. package/dist/src/components/gherkin/attachment/Links.d.ts.map +0 -1
  435. package/dist/src/components/gherkin/attachment/Links.js +0 -14
  436. package/dist/src/components/gherkin/attachment/Links.js.map +0 -1
  437. package/dist/src/components/gherkin/attachment/Log.d.ts.map +0 -1
  438. package/dist/src/components/gherkin/attachment/Log.js +0 -12
  439. package/dist/src/components/gherkin/attachment/Log.js.map +0 -1
  440. package/dist/src/components/gherkin/attachment/Text.d.ts.map +0 -1
  441. package/dist/src/components/gherkin/attachment/Text.js +0 -16
  442. package/dist/src/components/gherkin/attachment/Text.js.map +0 -1
  443. package/dist/src/components/gherkin/attachment/Unknown.d.ts.map +0 -1
  444. package/dist/src/components/gherkin/attachment/Unknown.js +0 -61
  445. package/dist/src/components/gherkin/attachment/Unknown.js.map +0 -1
  446. package/dist/src/components/gherkin/attachment/Video.d.ts.map +0 -1
  447. package/dist/src/components/gherkin/attachment/Video.js +0 -16
  448. package/dist/src/components/gherkin/attachment/Video.js.map +0 -1
  449. package/dist/src/components/gherkin/attachment/attachmentFilename.d.ts.map +0 -1
  450. package/dist/src/components/gherkin/attachment/attachmentFilename.js +0 -12
  451. package/dist/src/components/gherkin/attachment/attachmentFilename.js.map +0 -1
  452. package/dist/src/components/gherkin/attachment/base64Decode.d.ts.map +0 -1
  453. package/dist/src/components/gherkin/attachment/base64Decode.js +0 -19
  454. package/dist/src/components/gherkin/attachment/base64Decode.js.map +0 -1
  455. package/dist/src/components/gherkin/attachment/index.d.ts +0 -2
  456. package/dist/src/components/gherkin/attachment/index.d.ts.map +0 -1
  457. package/dist/src/components/gherkin/attachment/index.js.map +0 -1
  458. package/dist/src/components/gherkin/attachment/useText.d.ts.map +0 -1
  459. package/dist/src/components/gherkin/attachment/useText.js +0 -28
  460. package/dist/src/components/gherkin/attachment/useText.js.map +0 -1
  461. package/dist/src/components/gherkin/composeHookStepTitle.d.ts.map +0 -1
  462. package/dist/src/components/gherkin/composeHookStepTitle.js +0 -23
  463. package/dist/src/components/gherkin/composeHookStepTitle.js.map +0 -1
  464. package/dist/src/components/gherkin/composePickleStepTitle.d.ts.map +0 -1
  465. package/dist/src/components/gherkin/composePickleStepTitle.js +0 -36
  466. package/dist/src/components/gherkin/composePickleStepTitle.js.map +0 -1
  467. package/dist/src/components/gherkin/index.d.ts +0 -19
  468. package/dist/src/components/gherkin/index.d.ts.map +0 -1
  469. package/dist/src/components/gherkin/index.js.map +0 -1
  470. package/dist/src/components/gherkin/isNumber.d.ts.map +0 -1
  471. package/dist/src/components/gherkin/isNumber.js +0 -7
  472. package/dist/src/components/gherkin/isNumber.js.map +0 -1
  473. package/dist/src/components/gherkin/statusName.d.ts +0 -4
  474. package/dist/src/components/gherkin/statusName.d.ts.map +0 -1
  475. package/dist/src/components/gherkin/statusName.js +0 -4
  476. package/dist/src/components/gherkin/statusName.js.map +0 -1
  477. package/dist/src/components/index.d.ts +0 -4
  478. package/dist/src/components/index.d.ts.map +0 -1
  479. package/dist/src/components/index.js.map +0 -1
  480. package/dist/src/components/results/AmbiguousResult.d.ts.map +0 -1
  481. package/dist/src/components/results/AmbiguousResult.js +0 -11
  482. package/dist/src/components/results/AmbiguousResult.js.map +0 -1
  483. package/dist/src/components/results/FailedResult.d.ts.map +0 -1
  484. package/dist/src/components/results/FailedResult.js +0 -15
  485. package/dist/src/components/results/FailedResult.js.map +0 -1
  486. package/dist/src/components/results/PendingResult.d.ts.map +0 -1
  487. package/dist/src/components/results/PendingResult.js +0 -12
  488. package/dist/src/components/results/PendingResult.js.map +0 -1
  489. package/dist/src/components/results/ResultNote.d.ts.map +0 -1
  490. package/dist/src/components/results/ResultNote.js +0 -6
  491. package/dist/src/components/results/ResultNote.js.map +0 -1
  492. package/dist/src/components/results/SkippedResult.d.ts.map +0 -1
  493. package/dist/src/components/results/SkippedResult.js +0 -12
  494. package/dist/src/components/results/SkippedResult.js.map +0 -1
  495. package/dist/src/components/results/SourceReference.d.ts.map +0 -1
  496. package/dist/src/components/results/SourceReference.js +0 -13
  497. package/dist/src/components/results/SourceReference.js.map +0 -1
  498. package/dist/src/components/results/TestCaseOutcome.d.ts.map +0 -1
  499. package/dist/src/components/results/TestCaseOutcome.js +0 -32
  500. package/dist/src/components/results/TestCaseOutcome.js.map +0 -1
  501. package/dist/src/components/results/TestRunHookOutcome.d.ts.map +0 -1
  502. package/dist/src/components/results/TestRunHookOutcome.js +0 -11
  503. package/dist/src/components/results/TestRunHookOutcome.js.map +0 -1
  504. package/dist/src/components/results/TestStepAttachments.d.ts.map +0 -1
  505. package/dist/src/components/results/TestStepAttachments.js +0 -12
  506. package/dist/src/components/results/TestStepAttachments.js.map +0 -1
  507. package/dist/src/components/results/TestStepDuration.d.ts.map +0 -1
  508. package/dist/src/components/results/TestStepDuration.js +0 -19
  509. package/dist/src/components/results/TestStepDuration.js.map +0 -1
  510. package/dist/src/components/results/TestStepOutcome.d.ts.map +0 -1
  511. package/dist/src/components/results/TestStepOutcome.js +0 -45
  512. package/dist/src/components/results/TestStepOutcome.js.map +0 -1
  513. package/dist/src/components/results/UndefinedResult.d.ts.map +0 -1
  514. package/dist/src/components/results/UndefinedResult.js +0 -18
  515. package/dist/src/components/results/UndefinedResult.js.map +0 -1
  516. package/dist/src/components/results/index.d.ts +0 -3
  517. package/dist/src/components/results/index.d.ts.map +0 -1
  518. package/dist/src/components/results/index.js.map +0 -1
  519. package/dist/src/formatExecutionDistance.d.ts.map +0 -1
  520. package/dist/src/formatExecutionDistance.js +0 -7
  521. package/dist/src/formatExecutionDistance.js.map +0 -1
  522. package/dist/src/formatExecutionDuration.d.ts.map +0 -1
  523. package/dist/src/formatExecutionDuration.js +0 -12
  524. package/dist/src/formatExecutionDuration.js.map +0 -1
  525. package/dist/src/formatPassedQuantity.d.ts.map +0 -1
  526. package/dist/src/formatPassedQuantity.js +0 -4
  527. package/dist/src/formatPassedQuantity.js.map +0 -1
  528. package/dist/src/formatStatusRate.d.ts.map +0 -1
  529. package/dist/src/formatStatusRate.js +0 -9
  530. package/dist/src/formatStatusRate.js.map +0 -1
  531. package/dist/src/hooks/helpers.d.ts.map +0 -1
  532. package/dist/src/hooks/helpers.js +0 -7
  533. package/dist/src/hooks/helpers.js.map +0 -1
  534. package/dist/src/hooks/index.d.ts +0 -3
  535. package/dist/src/hooks/index.d.ts.map +0 -1
  536. package/dist/src/hooks/index.js.map +0 -1
  537. package/dist/src/hooks/useFilteredDocuments.d.ts.map +0 -1
  538. package/dist/src/hooks/useFilteredDocuments.js +0 -85
  539. package/dist/src/hooks/useFilteredDocuments.js.map +0 -1
  540. package/dist/src/hooks/useMostSevereStatusByUri.d.ts.map +0 -1
  541. package/dist/src/hooks/useMostSevereStatusByUri.js +0 -25
  542. package/dist/src/hooks/useMostSevereStatusByUri.js.map +0 -1
  543. package/dist/src/hooks/useQueries.d.ts.map +0 -1
  544. package/dist/src/hooks/useQueries.js +0 -9
  545. package/dist/src/hooks/useQueries.js.map +0 -1
  546. package/dist/src/hooks/useResultStatistics.d.ts.map +0 -1
  547. package/dist/src/hooks/useResultStatistics.js +0 -24
  548. package/dist/src/hooks/useResultStatistics.js.map +0 -1
  549. package/dist/src/hooks/useSearch.d.ts.map +0 -1
  550. package/dist/src/hooks/useSearch.js +0 -6
  551. package/dist/src/hooks/useSearch.js.map +0 -1
  552. package/dist/src/hooks/useTestCaseStarted.d.ts.map +0 -1
  553. package/dist/src/hooks/useTestCaseStarted.js +0 -20
  554. package/dist/src/hooks/useTestCaseStarted.js.map +0 -1
  555. package/dist/src/hooks/useTestRunHooks.d.ts.map +0 -1
  556. package/dist/src/hooks/useTestRunHooks.js +0 -14
  557. package/dist/src/hooks/useTestRunHooks.js.map +0 -1
  558. package/dist/src/index.d.ts +0 -3
  559. package/dist/src/index.d.ts.map +0 -1
  560. package/dist/src/index.js.map +0 -1
  561. package/dist/src/isTagExpression.d.ts.map +0 -1
  562. package/dist/src/isTagExpression.js +0 -5
  563. package/dist/src/isTagExpression.js.map +0 -1
  564. package/dist/src/search/FeatureSearch.d.ts.map +0 -1
  565. package/dist/src/search/FeatureSearch.js +0 -37
  566. package/dist/src/search/FeatureSearch.js.map +0 -1
  567. package/dist/src/search/ScenarioLikeSearch.d.ts.map +0 -1
  568. package/dist/src/search/ScenarioLikeSearch.js +0 -37
  569. package/dist/src/search/ScenarioLikeSearch.js.map +0 -1
  570. package/dist/src/search/StepSearch.d.ts.map +0 -1
  571. package/dist/src/search/StepSearch.js +0 -40
  572. package/dist/src/search/StepSearch.js.map +0 -1
  573. package/dist/src/search/TextSearch.d.ts.map +0 -1
  574. package/dist/src/search/TextSearch.js +0 -70
  575. package/dist/src/search/TextSearch.js.map +0 -1
  576. package/dist/src/search/createSearchIndex.d.ts.map +0 -1
  577. package/dist/src/search/createSearchIndex.js +0 -10
  578. package/dist/src/search/createSearchIndex.js.map +0 -1
  579. package/dist/src/search/deriveLineageConstraints.d.ts.map +0 -1
  580. package/dist/src/search/deriveLineageConstraints.js +0 -38
  581. package/dist/src/search/deriveLineageConstraints.js.map +0 -1
  582. package/dist/src/search/index.d.ts.map +0 -1
  583. package/dist/src/search/index.js +0 -5
  584. package/dist/src/search/index.js.map +0 -1
  585. package/dist/src/search/pruneGherkinDocuments.d.ts.map +0 -1
  586. package/dist/src/search/pruneGherkinDocuments.js +0 -180
  587. package/dist/src/search/pruneGherkinDocuments.js.map +0 -1
  588. package/dist/src/search/types.d.ts.map +0 -1
  589. package/dist/src/search/types.js +0 -2
  590. package/dist/src/search/types.js.map +0 -1
  591. package/dist/src/statuses.d.ts.map +0 -1
  592. package/dist/src/statuses.js +0 -12
  593. package/dist/src/statuses.js.map +0 -1
  594. package/dist/src/toRepositoryId.d.ts.map +0 -1
  595. package/dist/src/toRepositoryId.js +0 -12
  596. package/dist/src/toRepositoryId.js.map +0 -1
  597. package/dist/tsconfig.build.tsbuildinfo +0 -1
  598. /package/dist/{src/components → components}/app/CopyButton.module.scss +0 -0
  599. /package/dist/{src/components → components}/app/DocumentAccordion.module.scss +0 -0
  600. /package/dist/{src/components → components}/app/ExecutionSummary.module.scss +0 -0
  601. /package/dist/{src/components → components}/app/FilteredDocuments.module.scss +0 -0
  602. /package/dist/{src/components → components}/app/Header.module.scss +0 -0
  603. /package/dist/{src/components → components}/app/HealthChart.module.scss +0 -0
  604. /package/dist/{src/components → components}/app/NavigationButton.module.scss +0 -0
  605. /package/dist/{src/components → components}/app/Report.module.scss +0 -0
  606. /package/dist/{src/components → components}/app/SearchBar.module.scss +0 -0
  607. /package/dist/{src/components → components}/app/StatusesSummary.module.scss +0 -0
  608. /package/dist/{src/components → components}/app/TestRunHooks.module.scss +0 -0
  609. /package/dist/{src/components → components}/customise/CustomRendering.stories.scss +0 -0
  610. /package/dist/{src/components → components}/gherkin/Anchor.module.scss +0 -0
  611. /package/dist/{src/components → components}/gherkin/Children.module.scss +0 -0
  612. /package/dist/{src/components → components}/gherkin/DataTable.module.scss +0 -0
  613. /package/dist/{src/components → components}/gherkin/Description.module.scss +0 -0
  614. /package/dist/{src/components → components}/gherkin/DocString.module.scss +0 -0
  615. /package/dist/{src/components → components}/gherkin/ErrorMessage.module.scss +0 -0
  616. /package/dist/{src/components → components}/gherkin/Examples.module.scss +0 -0
  617. /package/dist/{src/components → components}/gherkin/Keyword.module.scss +0 -0
  618. /package/dist/{src/components → components}/gherkin/Parameter.module.scss +0 -0
  619. /package/dist/{src/components → components}/gherkin/StatusIcon.module.scss +0 -0
  620. /package/dist/{src/components → components}/gherkin/StepsList.module.scss +0 -0
  621. /package/dist/{src/components → components}/gherkin/Tags.module.scss +0 -0
  622. /package/dist/{src/components → components}/gherkin/Title.module.scss +0 -0
  623. /package/dist/{src/components → components}/gherkin/attachment/Attachment.module.scss +0 -0
  624. /package/dist/{src/components → components}/results/AmbiguousResult.module.scss +0 -0
  625. /package/dist/{src/components → components}/results/ResultNote.module.scss +0 -0
  626. /package/dist/{src/components → components}/results/SourceReference.module.scss +0 -0
  627. /package/dist/{src/components → components}/results/TestCaseOutcome.module.scss +0 -0
  628. /package/dist/{src/components → components}/results/TestRunHookOutcome.module.scss +0 -0
  629. /package/dist/{src/components → components}/results/TestStepAttachments.module.scss +0 -0
  630. /package/dist/{src/components → components}/results/TestStepDuration.module.scss +0 -0
  631. /package/dist/{src/components → components}/results/TestStepOutcome.module.scss +0 -0
  632. /package/dist/{src/components → components}/results/UndefinedResult.module.scss +0 -0
  633. /package/dist/{src/styles → styles}/statuses.scss +0 -0
  634. /package/dist/{src/styles → styles}/tables.scss +0 -0
  635. /package/dist/{src/styles → styles}/theming.scss +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"file":"Tags.js","sourceRoot":"","sources":["../../../../src/components/gherkin/Tags.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAC/C,OAAO,EAIL,kBAAkB,GACnB,MAAM,uBAAuB,CAAA;AAC9B,OAAO,aAAa,MAAM,oBAAoB,CAAA;AAE9C,MAAM,eAAe,GAA6C,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE;IACrF,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;QACjB,OAAO,IAAI,CAAA;IACb,CAAC;IACD,OAAO,CACL,2BAAe,MAAM,EAAC,SAAS,EAAE,MAAM,CAAC,IAAI,YACzC,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE,CAAC,CACxB,aAAI,SAAS,EAAE,MAAM,CAAC,GAAG,YACvB,KAAC,SAAS,IAAC,IAAI,EAAE,GAAG,CAAC,IAAI,GAAI,IADC,KAAK,CAEhC,CACN,CAAC,GACC,CACN,CAAA;AACH,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,IAAI,GAAkB,CAAC,KAAK,EAAE,EAAE;IAC3C,MAAM,gBAAgB,GAAG,kBAAkB,CACzC,MAAM,EACN,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 TagsClasses,\n type TagsProps,\n useCustomRendering,\n} from '../customise/index.js'\nimport defaultStyles from './Tags.module.scss'\n\nconst DefaultRenderer: DefaultComponent<TagsProps, TagsClasses> = ({ tags, styles }) => {\n if (!tags.length) {\n return null\n }\n return (\n <ul aria-label=\"Tags\" className={styles.tags}>\n {tags.map((tag, index) => (\n <li className={styles.tag} key={index}>\n <HighLight text={tag.name} />\n </li>\n ))}\n </ul>\n )\n}\n\nexport const Tags: FC<TagsProps> = (props) => {\n const ResolvedRenderer = useCustomRendering<TagsProps, TagsClasses>(\n 'Tags',\n defaultStyles,\n DefaultRenderer\n )\n return <ResolvedRenderer {...props} />\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Title.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/Title.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAE/B,OAAO,EAGL,KAAK,UAAU,EAEhB,MAAM,uBAAuB,CAAA;AAmB9B,eAAO,MAAM,KAAK,EAAE,EAAE,CAAC,UAAU,CAOhC,CAAA"}
@@ -1,12 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { useCustomRendering, } from '../customise/index.js';
3
- import { Anchor } from './Anchor.js';
4
- import defaultStyles from './Title.module.scss';
5
- const DefaultRenderer = ({ header: Header, id, children, styles, }) => {
6
- return (_jsx(Anchor, { id: id, children: _jsx(Header, { id: id, className: styles.title, children: children }) }));
7
- };
8
- export const Title = (props) => {
9
- const ResolvedRenderer = useCustomRendering('Title', defaultStyles, DefaultRenderer);
10
- return _jsx(ResolvedRenderer, { ...props });
11
- };
12
- //# sourceMappingURL=Title.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Title.js","sourceRoot":"","sources":["../../../../src/components/gherkin/Title.tsx"],"names":[],"mappings":";AAEA,OAAO,EAIL,kBAAkB,GACnB,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AACpC,OAAO,aAAa,MAAM,qBAAqB,CAAA;AAE/C,MAAM,eAAe,GAA+C,CAAC,EACnE,MAAM,EAAE,MAAM,EACd,EAAE,EACF,QAAQ,EACR,MAAM,GACP,EAAE,EAAE;IACH,OAAO,CACL,KAAC,MAAM,IAAC,EAAE,EAAE,EAAE,YACZ,KAAC,MAAM,IAAC,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,CAAC,KAAK,YACpC,QAAQ,GACF,GACF,CACV,CAAA;AACH,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,KAAK,GAAmB,CAAC,KAAK,EAAE,EAAE;IAC7C,MAAM,gBAAgB,GAAG,kBAAkB,CACzC,OAAO,EACP,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 DefaultComponent,\n type TitleClasses,\n type TitleProps,\n useCustomRendering,\n} from '../customise/index.js'\nimport { Anchor } from './Anchor.js'\nimport defaultStyles from './Title.module.scss'\n\nconst DefaultRenderer: DefaultComponent<TitleProps, TitleClasses> = ({\n header: Header,\n id,\n children,\n styles,\n}) => {\n return (\n <Anchor id={id}>\n <Header id={id} className={styles.title}>\n {children}\n </Header>\n </Anchor>\n )\n}\n\nexport const Title: FC<TitleProps> = (props) => {\n const ResolvedRenderer = useCustomRendering<TitleProps, TitleClasses>(\n 'Title',\n defaultStyles,\n DefaultRenderer\n )\n return <ResolvedRenderer {...props} />\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Attachment.d.ts","sourceRoot":"","sources":["../../../../../src/components/gherkin/attachment/Attachment.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAG/B,OAAO,EAEL,KAAK,eAAe,EAGrB,MAAM,0BAA0B,CAAA;AAmCjC,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CAW1C,CAAA"}
@@ -1,45 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { ErrorBoundary } from 'react-error-boundary';
3
- import { useCustomRendering, } from '../../customise/index.js';
4
- import { ErrorMessage } from '../ErrorMessage.js';
5
- import defaultStyles from './Attachment.module.scss';
6
- import { Image } from './Image.js';
7
- import { Links } from './Links.js';
8
- import { Log } from './Log.js';
9
- import { Text } from './Text.js';
10
- import { Unknown } from './Unknown.js';
11
- import { Video } from './Video.js';
12
- const DefaultRenderer = ({ attachment, styles, }) => {
13
- if (attachment.mediaType.match(/^image\//)) {
14
- return _jsx(Image, { attachment: attachment, classes: styles });
15
- }
16
- if (attachment.mediaType.match(/^video\//)) {
17
- return _jsx(Video, { attachment: attachment });
18
- }
19
- if (attachment.mediaType === 'text/x.cucumber.log+plain') {
20
- return _jsx(Log, { attachment: attachment, classes: styles });
21
- }
22
- if (attachment.mediaType === 'text/uri-list') {
23
- return _jsx(Links, { attachment: attachment, classes: styles });
24
- }
25
- if (attachment.mediaType.match(/^text\//)) {
26
- return _jsx(Text, { attachment: attachment, classes: styles });
27
- }
28
- if (attachment.mediaType.match(/^application\/json/)) {
29
- return _jsx(Text, { attachment: attachment, prettify: prettyJSON, classes: styles });
30
- }
31
- return _jsx(Unknown, { attachment: attachment });
32
- };
33
- export const Attachment = (props) => {
34
- const ResolvedRenderer = useCustomRendering('Attachment', defaultStyles, DefaultRenderer);
35
- return (_jsx(ErrorBoundary, { fallback: _jsx(ErrorMessage, { message: `Attachment couldn't be rendered` }), children: _jsx(ResolvedRenderer, { ...props }) }));
36
- };
37
- function prettyJSON(s) {
38
- try {
39
- return JSON.stringify(JSON.parse(s), null, 2);
40
- }
41
- catch (_) {
42
- return s;
43
- }
44
- }
45
- //# sourceMappingURL=Attachment.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Attachment.js","sourceRoot":"","sources":["../../../../../src/components/gherkin/attachment/Attachment.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAEpD,OAAO,EAIL,kBAAkB,GACnB,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AACjD,OAAO,aAAa,MAAM,0BAA0B,CAAA;AACpD,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AAClC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AAClC,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAA;AAC9B,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AACtC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AAElC,MAAM,eAAe,GAAyD,CAAC,EAC7E,UAAU,EACV,MAAM,GACP,EAAE,EAAE;IACH,IAAI,UAAU,CAAC,SAAS,CAAC,KAAK,CAAC,UAAU,CAAC,EAAE,CAAC;QAC3C,OAAO,KAAC,KAAK,IAAC,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,GAAI,CAAA;IAC3D,CAAC;IACD,IAAI,UAAU,CAAC,SAAS,CAAC,KAAK,CAAC,UAAU,CAAC,EAAE,CAAC;QAC3C,OAAO,KAAC,KAAK,IAAC,UAAU,EAAE,UAAU,GAAI,CAAA;IAC1C,CAAC;IACD,IAAI,UAAU,CAAC,SAAS,KAAK,2BAA2B,EAAE,CAAC;QACzD,OAAO,KAAC,GAAG,IAAC,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,GAAI,CAAA;IACzD,CAAC;IACD,IAAI,UAAU,CAAC,SAAS,KAAK,eAAe,EAAE,CAAC;QAC7C,OAAO,KAAC,KAAK,IAAC,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,GAAI,CAAA;IAC3D,CAAC;IACD,IAAI,UAAU,CAAC,SAAS,CAAC,KAAK,CAAC,SAAS,CAAC,EAAE,CAAC;QAC1C,OAAO,KAAC,IAAI,IAAC,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,GAAI,CAAA;IAC1D,CAAC;IACD,IAAI,UAAU,CAAC,SAAS,CAAC,KAAK,CAAC,oBAAoB,CAAC,EAAE,CAAC;QACrD,OAAO,KAAC,IAAI,IAAC,UAAU,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,GAAI,CAAA;IAChF,CAAC;IACD,OAAO,KAAC,OAAO,IAAC,UAAU,EAAE,UAAU,GAAI,CAAA;AAC5C,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,UAAU,GAAwB,CAAC,KAAK,EAAE,EAAE;IACvD,MAAM,gBAAgB,GAAG,kBAAkB,CACzC,YAAY,EACZ,aAAa,EACb,eAAe,CAChB,CAAA;IACD,OAAO,CACL,KAAC,aAAa,IAAC,QAAQ,EAAE,KAAC,YAAY,IAAC,OAAO,EAAE,iCAAiC,GAAI,YACnF,KAAC,gBAAgB,OAAK,KAAK,GAAI,GACjB,CACjB,CAAA;AACH,CAAC,CAAA;AAED,SAAS,UAAU,CAAC,CAAS;IAC3B,IAAI,CAAC;QACH,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,CAAA;IAC/C,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,OAAO,CAAC,CAAA;IACV,CAAC;AACH,CAAC","sourcesContent":["import type { FC } from 'react'\nimport { ErrorBoundary } from 'react-error-boundary'\n\nimport {\n type AttachmentClasses,\n type AttachmentProps,\n type DefaultComponent,\n useCustomRendering,\n} from '../../customise/index.js'\nimport { ErrorMessage } from '../ErrorMessage.js'\nimport defaultStyles from './Attachment.module.scss'\nimport { Image } from './Image.js'\nimport { Links } from './Links.js'\nimport { Log } from './Log.js'\nimport { Text } from './Text.js'\nimport { Unknown } from './Unknown.js'\nimport { Video } from './Video.js'\n\nconst DefaultRenderer: DefaultComponent<AttachmentProps, AttachmentClasses> = ({\n attachment,\n styles,\n}) => {\n if (attachment.mediaType.match(/^image\\//)) {\n return <Image attachment={attachment} classes={styles} />\n }\n if (attachment.mediaType.match(/^video\\//)) {\n return <Video attachment={attachment} />\n }\n if (attachment.mediaType === 'text/x.cucumber.log+plain') {\n return <Log attachment={attachment} classes={styles} />\n }\n if (attachment.mediaType === 'text/uri-list') {\n return <Links attachment={attachment} classes={styles} />\n }\n if (attachment.mediaType.match(/^text\\//)) {\n return <Text attachment={attachment} classes={styles} />\n }\n if (attachment.mediaType.match(/^application\\/json/)) {\n return <Text attachment={attachment} prettify={prettyJSON} classes={styles} />\n }\n return <Unknown attachment={attachment} />\n}\n\nexport const Attachment: FC<AttachmentProps> = (props) => {\n const ResolvedRenderer = useCustomRendering<AttachmentProps, AttachmentClasses>(\n 'Attachment',\n defaultStyles,\n DefaultRenderer\n )\n return (\n <ErrorBoundary fallback={<ErrorMessage message={`Attachment couldn't be rendered`} />}>\n <ResolvedRenderer {...props} />\n </ErrorBoundary>\n )\n}\n\nfunction prettyJSON(s: string) {\n try {\n return JSON.stringify(JSON.parse(s), null, 2)\n } catch (_) {\n return s\n }\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Image.d.ts","sourceRoot":"","sources":["../../../../../src/components/gherkin/attachment/Image.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AACpD,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAE/B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAA;AAGjE,eAAO,MAAM,KAAK,EAAE,EAAE,CAAC;IAAE,UAAU,EAAE,UAAU,CAAC;IAAC,OAAO,EAAE,iBAAiB,CAAA;CAAE,CAsB5E,CAAA"}
@@ -1,16 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { ErrorMessage } from '../ErrorMessage.js';
3
- export const Image = ({ attachment, classes, }) => {
4
- const title = attachment.fileName ?? `Attached Image (${attachment.mediaType})`;
5
- if (attachment.url) {
6
- return _jsx(ImageInternal, { src: attachment.url, title: title, className: classes.image });
7
- }
8
- if (attachment.contentEncoding === 'BASE64') {
9
- return (_jsx(ImageInternal, { src: `data:${attachment.mediaType};base64,${attachment.body}`, title: title, className: classes.image }));
10
- }
11
- return (_jsx(ErrorMessage, { message: `Couldn't display ${attachment.mediaType} image because it wasn't base64 encoded or externalised` }));
12
- };
13
- const ImageInternal = ({ src, title, className }) => {
14
- return (_jsxs("details", { children: [_jsx("summary", { children: title }), _jsx("img", { alt: "", src: src, className: className })] }));
15
- };
16
- //# sourceMappingURL=Image.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Image.js","sourceRoot":"","sources":["../../../../../src/components/gherkin/attachment/Image.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAEjD,MAAM,CAAC,MAAM,KAAK,GAA+D,CAAC,EAChF,UAAU,EACV,OAAO,GACR,EAAE,EAAE;IACH,MAAM,KAAK,GAAG,UAAU,CAAC,QAAQ,IAAI,mBAAmB,UAAU,CAAC,SAAS,GAAG,CAAA;IAC/E,IAAI,UAAU,CAAC,GAAG,EAAE,CAAC;QACnB,OAAO,KAAC,aAAa,IAAC,GAAG,EAAE,UAAU,CAAC,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,CAAC,KAAK,GAAI,CAAA;IACvF,CAAC;IACD,IAAI,UAAU,CAAC,eAAe,KAAK,QAAQ,EAAE,CAAC;QAC5C,OAAO,CACL,KAAC,aAAa,IACZ,GAAG,EAAE,QAAQ,UAAU,CAAC,SAAS,WAAW,UAAU,CAAC,IAAI,EAAE,EAC7D,KAAK,EAAE,KAAK,EACZ,SAAS,EAAE,OAAO,CAAC,KAAK,GACxB,CACH,CAAA;IACH,CAAC;IACD,OAAO,CACL,KAAC,YAAY,IACX,OAAO,EAAE,oBAAoB,UAAU,CAAC,SAAS,yDAAyD,GAC1G,CACH,CAAA;AACH,CAAC,CAAA;AAED,MAAM,aAAa,GAId,CAAC,EAAE,GAAG,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE;IACjC,OAAO,CACL,8BACE,4BAAU,KAAK,GAAW,EAC1B,cAAK,GAAG,EAAC,EAAE,EAAC,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,SAAS,GAAI,IACtC,CACX,CAAA;AACH,CAAC,CAAA","sourcesContent":["import type { Attachment } from '@cucumber/messages'\nimport type { FC } from 'react'\n\nimport type { AttachmentClasses } from '../../customise/index.js'\nimport { ErrorMessage } from '../ErrorMessage.js'\n\nexport const Image: FC<{ attachment: Attachment; classes: AttachmentClasses }> = ({\n attachment,\n classes,\n}) => {\n const title = attachment.fileName ?? `Attached Image (${attachment.mediaType})`\n if (attachment.url) {\n return <ImageInternal src={attachment.url} title={title} className={classes.image} />\n }\n if (attachment.contentEncoding === 'BASE64') {\n return (\n <ImageInternal\n src={`data:${attachment.mediaType};base64,${attachment.body}`}\n title={title}\n className={classes.image}\n />\n )\n }\n return (\n <ErrorMessage\n message={`Couldn't display ${attachment.mediaType} image because it wasn't base64 encoded or externalised`}\n />\n )\n}\n\nconst ImageInternal: FC<{\n src: string\n title: string\n className: string\n}> = ({ src, title, className }) => {\n return (\n <details>\n <summary>{title}</summary>\n <img alt=\"\" src={src} className={className} />\n </details>\n )\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Links.d.ts","sourceRoot":"","sources":["../../../../../src/components/gherkin/attachment/Links.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAGpD,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAE/B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAA;AAGjE,eAAO,MAAM,KAAK,EAAE,EAAE,CAAC;IACrB,UAAU,EAAE,UAAU,CAAA;IACtB,OAAO,EAAE,iBAAiB,CAAA;CAC3B,CAmBA,CAAA"}
@@ -1,14 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { faLink } from '@fortawesome/free-solid-svg-icons';
3
- import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
4
- import { useText } from './useText.js';
5
- export const Links = ({ attachment, classes }) => {
6
- const { content } = useText(attachment);
7
- return (_jsx("ul", { className: classes.links, children: content
8
- .split('\n')
9
- .filter((line) => !!line)
10
- .map((line, index) => {
11
- return (_jsx("li", { children: _jsxs("a", { href: line, target: "_blank", rel: "noopener nofollow noreferrer", children: [_jsx(FontAwesomeIcon, { icon: faLink }), line] }) }, index));
12
- }) }));
13
- };
14
- //# sourceMappingURL=Links.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Links.js","sourceRoot":"","sources":["../../../../../src/components/gherkin/attachment/Links.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,MAAM,mCAAmC,CAAA;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAA;AAIhE,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAEtC,MAAM,CAAC,MAAM,KAAK,GAGb,CAAC,EAAE,UAAU,EAAE,OAAO,EAAE,EAAE,EAAE;IAC/B,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC,CAAA;IACvC,OAAO,CACL,aAAI,SAAS,EAAE,OAAO,CAAC,KAAK,YACzB,OAAO;aACL,KAAK,CAAC,IAAI,CAAC;aACX,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;aACxB,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE;YACnB,OAAO,CACL,uBACE,aAAG,IAAI,EAAE,IAAI,EAAE,MAAM,EAAC,QAAQ,EAAC,GAAG,EAAC,8BAA8B,aAC/D,KAAC,eAAe,IAAC,IAAI,EAAE,MAAM,GAAI,EAChC,IAAI,IACH,IAJG,KAAK,CAKT,CACN,CAAA;QACH,CAAC,CAAC,GACD,CACN,CAAA;AACH,CAAC,CAAA","sourcesContent":["import type { Attachment } from '@cucumber/messages'\nimport { faLink } from '@fortawesome/free-solid-svg-icons'\nimport { FontAwesomeIcon } from '@fortawesome/react-fontawesome'\nimport type { FC } from 'react'\n\nimport type { AttachmentClasses } from '../../customise/index.js'\nimport { useText } from './useText.js'\n\nexport const Links: FC<{\n attachment: Attachment\n classes: AttachmentClasses\n}> = ({ attachment, classes }) => {\n const { content } = useText(attachment)\n return (\n <ul className={classes.links}>\n {content\n .split('\\n')\n .filter((line) => !!line)\n .map((line, index) => {\n return (\n <li key={index}>\n <a href={line} target=\"_blank\" rel=\"noopener nofollow noreferrer\">\n <FontAwesomeIcon icon={faLink} />\n {line}\n </a>\n </li>\n )\n })}\n </ul>\n )\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Log.d.ts","sourceRoot":"","sources":["../../../../../src/components/gherkin/attachment/Log.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAEpD,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAG/B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAA;AAGjE,eAAO,MAAM,GAAG,EAAE,EAAE,CAAC;IACnB,UAAU,EAAE,UAAU,CAAA;IACtB,OAAO,EAAE,iBAAiB,CAAA;CAC3B,CAUA,CAAA"}
@@ -1,12 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import Convert from 'ansi-to-html';
3
- import { CopyButton } from '../../app/CopyButton.js';
4
- import { useText } from './useText.js';
5
- export const Log = ({ attachment, classes }) => {
6
- const { content } = useText(attachment);
7
- return (_jsxs("div", { className: `${classes.text} ${classes.log}`, children: [_jsx("pre", { children: _jsx("span", { dangerouslySetInnerHTML: { __html: prettyANSI(content) } }) }), _jsx(CopyButton, { className: classes.copyButton, text: content })] }));
8
- };
9
- function prettyANSI(s) {
10
- return new Convert().toHtml(s);
11
- }
12
- //# sourceMappingURL=Log.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Log.js","sourceRoot":"","sources":["../../../../../src/components/gherkin/attachment/Log.tsx"],"names":[],"mappings":";AAGA,OAAO,OAAO,MAAM,cAAc,CAAA;AAGlC,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;AAEpD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAEtC,MAAM,CAAC,MAAM,GAAG,GAGX,CAAC,EAAE,UAAU,EAAE,OAAO,EAAE,EAAE,EAAE;IAC/B,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC,CAAA;IACvC,OAAO,CACL,eAAK,SAAS,EAAE,GAAG,OAAO,CAAC,IAAI,IAAI,OAAO,CAAC,GAAG,EAAE,aAC9C,wBACE,eAAM,uBAAuB,EAAE,EAAE,MAAM,EAAE,UAAU,CAAC,OAAO,CAAC,EAAE,GAAI,GAC9D,EACN,KAAC,UAAU,IAAC,SAAS,EAAE,OAAO,CAAC,UAAU,EAAE,IAAI,EAAE,OAAO,GAAI,IACxD,CACP,CAAA;AACH,CAAC,CAAA;AAED,SAAS,UAAU,CAAC,CAAS;IAC3B,OAAO,IAAI,OAAO,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,CAAA;AAChC,CAAC","sourcesContent":["// biome-ignore-all lint/security/noDangerouslySetInnerHtml: pre-sanitised\n\nimport type { Attachment } from '@cucumber/messages'\nimport Convert from 'ansi-to-html'\nimport type { FC } from 'react'\n\nimport { CopyButton } from '../../app/CopyButton.js'\nimport type { AttachmentClasses } from '../../customise/index.js'\nimport { useText } from './useText.js'\n\nexport const Log: FC<{\n attachment: Attachment\n classes: AttachmentClasses\n}> = ({ attachment, classes }) => {\n const { content } = useText(attachment)\n return (\n <div className={`${classes.text} ${classes.log}`}>\n <pre>\n <span dangerouslySetInnerHTML={{ __html: prettyANSI(content) }} />\n </pre>\n <CopyButton className={classes.copyButton} text={content} />\n </div>\n )\n}\n\nfunction prettyANSI(s: string) {\n return new Convert().toHtml(s)\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../../../src/components/gherkin/attachment/Text.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AACpD,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAG/B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAA;AAMjE,eAAO,MAAM,IAAI,EAAE,EAAE,CAAC;IACpB,UAAU,EAAE,UAAU,CAAA;IACtB,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAA;IACnC,OAAO,EAAE,iBAAiB,CAAA;CAC3B,CAwBA,CAAA"}
@@ -1,16 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { CopyButton } from '../../app/CopyButton.js';
3
- import { ErrorMessage } from '../ErrorMessage.js';
4
- import { useText } from './useText.js';
5
- const identity = (s) => s;
6
- export const Text = ({ attachment, prettify = identity, classes }) => {
7
- const { title, loading, content, error } = useText(attachment);
8
- if (loading) {
9
- return null;
10
- }
11
- if (error) {
12
- return (_jsx(ErrorMessage, { children: "There was an error when trying to fetch the content for this attachment. Check your browser console for more information on what went wrong." }));
13
- }
14
- return (_jsxs("details", { children: [_jsx("summary", { children: title }), _jsxs("div", { className: classes.text, children: [_jsx("pre", { children: _jsx("span", { children: prettify(content) }) }), _jsx(CopyButton, { className: classes.copyButton, text: content })] })] }));
15
- };
16
- //# sourceMappingURL=Text.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Text.js","sourceRoot":"","sources":["../../../../../src/components/gherkin/attachment/Text.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;AAEpD,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAEtC,MAAM,QAAQ,GAAG,CAAC,CAAS,EAAE,EAAE,CAAC,CAAC,CAAA;AAEjC,MAAM,CAAC,MAAM,IAAI,GAIZ,CAAC,EAAE,UAAU,EAAE,QAAQ,GAAG,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE;IACpD,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC,CAAA;IAC9D,IAAI,OAAO,EAAE,CAAC;QACZ,OAAO,IAAI,CAAA;IACb,CAAC;IACD,IAAI,KAAK,EAAE,CAAC;QACV,OAAO,CACL,KAAC,YAAY,+JAGE,CAChB,CAAA;IACH,CAAC;IACD,OAAO,CACL,8BACE,4BAAU,KAAK,GAAW,EAC1B,eAAK,SAAS,EAAE,OAAO,CAAC,IAAI,aAC1B,wBACE,yBAAO,QAAQ,CAAC,OAAO,CAAC,GAAQ,GAC5B,EACN,KAAC,UAAU,IAAC,SAAS,EAAE,OAAO,CAAC,UAAU,EAAE,IAAI,EAAE,OAAO,GAAI,IACxD,IACE,CACX,CAAA;AACH,CAAC,CAAA","sourcesContent":["import type { Attachment } from '@cucumber/messages'\nimport type { FC } from 'react'\n\nimport { CopyButton } from '../../app/CopyButton.js'\nimport type { AttachmentClasses } from '../../customise/index.js'\nimport { ErrorMessage } from '../ErrorMessage.js'\nimport { useText } from './useText.js'\n\nconst identity = (s: string) => s\n\nexport const Text: FC<{\n attachment: Attachment\n prettify?: (body: string) => string\n classes: AttachmentClasses\n}> = ({ attachment, prettify = identity, classes }) => {\n const { title, loading, content, error } = useText(attachment)\n if (loading) {\n return null\n }\n if (error) {\n return (\n <ErrorMessage>\n There was an error when trying to fetch the content for this attachment. Check your browser\n console for more information on what went wrong.\n </ErrorMessage>\n )\n }\n return (\n <details>\n <summary>{title}</summary>\n <div className={classes.text}>\n <pre>\n <span>{prettify(content)}</span>\n </pre>\n <CopyButton className={classes.copyButton} text={content} />\n </div>\n </details>\n )\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Unknown.d.ts","sourceRoot":"","sources":["../../../../../src/components/gherkin/attachment/Unknown.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,EAAE,EAAoC,MAAM,OAAO,CAAA;AAGjE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAA;AAI/D,eAAO,MAAM,OAAO,EAAE,EAAE,CAAC,eAAe,CAKvC,CAAA"}
@@ -1,61 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { AttachmentContentEncoding } from '@cucumber/messages';
3
- import { faPaperclip } from '@fortawesome/free-solid-svg-icons';
4
- import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
5
- import { useCallback, useEffect, useState } from 'react';
6
- import { NavigationButton } from '../../app/NavigationButton.js';
7
- import { attachmentFilename } from './attachmentFilename.js';
8
- import { base64DecodeBytes } from './base64Decode.js';
9
- export const Unknown = ({ attachment }) => {
10
- if (attachment.url) {
11
- return _jsx(UnknownExternalised, { attachment: attachment });
12
- }
13
- return _jsx(UnknownEmbedded, { attachment: attachment });
14
- };
15
- const UnknownExternalised = ({ attachment }) => {
16
- const filename = attachmentFilename(attachment);
17
- const onClick = () => {
18
- const anchor = document.createElement('a');
19
- anchor.href = attachment.url;
20
- anchor.download = filename;
21
- anchor.click();
22
- };
23
- return (_jsxs(NavigationButton, { onClick: onClick, children: [_jsx(FontAwesomeIcon, { icon: faPaperclip }), "Download ", filename] }));
24
- };
25
- const UnknownEmbedded = ({ attachment }) => {
26
- const [downloadUrl, setDownloadUrl] = useState();
27
- useEffect(() => () => cleanupDownloadUrl(downloadUrl), [downloadUrl]);
28
- const filename = attachmentFilename(attachment);
29
- const onClick = useCallback(() => {
30
- let href;
31
- if (downloadUrl) {
32
- href = downloadUrl;
33
- }
34
- else {
35
- const createdUrl = createDownloadUrl(attachment);
36
- setDownloadUrl(createdUrl);
37
- href = createdUrl;
38
- }
39
- const anchor = document.createElement('a');
40
- anchor.href = href;
41
- anchor.download = filename;
42
- anchor.click();
43
- }, [attachment, filename, downloadUrl]);
44
- return (_jsxs(NavigationButton, { onClick: onClick, children: [_jsx(FontAwesomeIcon, { icon: faPaperclip }), "Download ", filename] }));
45
- };
46
- function createDownloadUrl(attachment) {
47
- const body = attachment.contentEncoding === AttachmentContentEncoding.BASE64
48
- ? base64DecodeBytes(attachment.body)
49
- : attachment.body;
50
- const file = new File([body], 'attachment', {
51
- type: attachment.mediaType,
52
- });
53
- return URL.createObjectURL(file);
54
- }
55
- function cleanupDownloadUrl(url) {
56
- if (url) {
57
- console.debug('Revoking download url');
58
- URL.revokeObjectURL(url);
59
- }
60
- }
61
- //# sourceMappingURL=Unknown.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Unknown.js","sourceRoot":"","sources":["../../../../../src/components/gherkin/attachment/Unknown.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAmB,yBAAyB,EAAE,MAAM,oBAAoB,CAAA;AAC/E,OAAO,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAA;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAA;AAChE,OAAO,EAAW,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAEjE,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAA;AAEhE,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAA;AAErD,MAAM,CAAC,MAAM,OAAO,GAAwB,CAAC,EAAE,UAAU,EAAE,EAAE,EAAE;IAC7D,IAAI,UAAU,CAAC,GAAG,EAAE,CAAC;QACnB,OAAO,KAAC,mBAAmB,IAAC,UAAU,EAAE,UAAU,GAAI,CAAA;IACxD,CAAC;IACD,OAAO,KAAC,eAAe,IAAC,UAAU,EAAE,UAAU,GAAI,CAAA;AACpD,CAAC,CAAA;AAED,MAAM,mBAAmB,GAAwB,CAAC,EAAE,UAAU,EAAE,EAAE,EAAE;IAClE,MAAM,QAAQ,GAAG,kBAAkB,CAAC,UAAU,CAAC,CAAA;IAC/C,MAAM,OAAO,GAAG,GAAG,EAAE;QACnB,MAAM,MAAM,GAAG,QAAQ,CAAC,aAAa,CAAC,GAAG,CAAC,CAAA;QAC1C,MAAM,CAAC,IAAI,GAAG,UAAU,CAAC,GAAa,CAAA;QACtC,MAAM,CAAC,QAAQ,GAAG,QAAQ,CAAA;QAC1B,MAAM,CAAC,KAAK,EAAE,CAAA;IAChB,CAAC,CAAA;IACD,OAAO,CACL,MAAC,gBAAgB,IAAC,OAAO,EAAE,OAAO,aAChC,KAAC,eAAe,IAAC,IAAI,EAAE,WAAW,GAAI,eAC5B,QAAQ,IACD,CACpB,CAAA;AACH,CAAC,CAAA;AAED,MAAM,eAAe,GAAwB,CAAC,EAAE,UAAU,EAAE,EAAE,EAAE;IAC9D,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,EAAU,CAAA;IACxD,SAAS,CAAC,GAAG,EAAE,CAAC,GAAG,EAAE,CAAC,kBAAkB,CAAC,WAAW,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC,CAAA;IACrE,MAAM,QAAQ,GAAG,kBAAkB,CAAC,UAAU,CAAC,CAAA;IAC/C,MAAM,OAAO,GAAG,WAAW,CAAC,GAAG,EAAE;QAC/B,IAAI,IAAY,CAAA;QAChB,IAAI,WAAW,EAAE,CAAC;YAChB,IAAI,GAAG,WAAW,CAAA;QACpB,CAAC;aAAM,CAAC;YACN,MAAM,UAAU,GAAG,iBAAiB,CAAC,UAAU,CAAC,CAAA;YAChD,cAAc,CAAC,UAAU,CAAC,CAAA;YAC1B,IAAI,GAAG,UAAU,CAAA;QACnB,CAAC;QAED,MAAM,MAAM,GAAG,QAAQ,CAAC,aAAa,CAAC,GAAG,CAAC,CAAA;QAC1C,MAAM,CAAC,IAAI,GAAG,IAAI,CAAA;QAClB,MAAM,CAAC,QAAQ,GAAG,QAAQ,CAAA;QAC1B,MAAM,CAAC,KAAK,EAAE,CAAA;IAChB,CAAC,EAAE,CAAC,UAAU,EAAE,QAAQ,EAAE,WAAW,CAAC,CAAC,CAAA;IACvC,OAAO,CACL,MAAC,gBAAgB,IAAC,OAAO,EAAE,OAAO,aAChC,KAAC,eAAe,IAAC,IAAI,EAAE,WAAW,GAAI,eAC5B,QAAQ,IACD,CACpB,CAAA;AACH,CAAC,CAAA;AAED,SAAS,iBAAiB,CAAC,UAAsB;IAC/C,MAAM,IAAI,GACR,UAAU,CAAC,eAAe,KAAK,yBAAyB,CAAC,MAAM;QAC7D,CAAC,CAAC,iBAAiB,CAAC,UAAU,CAAC,IAAI,CAAC;QACpC,CAAC,CAAC,UAAU,CAAC,IAAI,CAAA;IACrB,MAAM,IAAI,GAAG,IAAI,IAAI,CAAC,CAAC,IAAI,CAAC,EAAE,YAAY,EAAE;QAC1C,IAAI,EAAE,UAAU,CAAC,SAAS;KAC3B,CAAC,CAAA;IACF,OAAO,GAAG,CAAC,eAAe,CAAC,IAAI,CAAC,CAAA;AAClC,CAAC;AAED,SAAS,kBAAkB,CAAC,GAAY;IACtC,IAAI,GAAG,EAAE,CAAC;QACR,OAAO,CAAC,KAAK,CAAC,uBAAuB,CAAC,CAAA;QACtC,GAAG,CAAC,eAAe,CAAC,GAAG,CAAC,CAAA;IAC1B,CAAC;AACH,CAAC","sourcesContent":["import { type Attachment, AttachmentContentEncoding } from '@cucumber/messages'\nimport { faPaperclip } from '@fortawesome/free-solid-svg-icons'\nimport { FontAwesomeIcon } from '@fortawesome/react-fontawesome'\nimport { type FC, useCallback, useEffect, useState } from 'react'\n\nimport { NavigationButton } from '../../app/NavigationButton.js'\nimport type { AttachmentProps } from '../../customise/index.js'\nimport { attachmentFilename } from './attachmentFilename.js'\nimport { base64DecodeBytes } from './base64Decode.js'\n\nexport const Unknown: FC<AttachmentProps> = ({ attachment }) => {\n if (attachment.url) {\n return <UnknownExternalised attachment={attachment} />\n }\n return <UnknownEmbedded attachment={attachment} />\n}\n\nconst UnknownExternalised: FC<AttachmentProps> = ({ attachment }) => {\n const filename = attachmentFilename(attachment)\n const onClick = () => {\n const anchor = document.createElement('a')\n anchor.href = attachment.url as string\n anchor.download = filename\n anchor.click()\n }\n return (\n <NavigationButton onClick={onClick}>\n <FontAwesomeIcon icon={faPaperclip} />\n Download {filename}\n </NavigationButton>\n )\n}\n\nconst UnknownEmbedded: FC<AttachmentProps> = ({ attachment }) => {\n const [downloadUrl, setDownloadUrl] = useState<string>()\n useEffect(() => () => cleanupDownloadUrl(downloadUrl), [downloadUrl])\n const filename = attachmentFilename(attachment)\n const onClick = useCallback(() => {\n let href: string\n if (downloadUrl) {\n href = downloadUrl\n } else {\n const createdUrl = createDownloadUrl(attachment)\n setDownloadUrl(createdUrl)\n href = createdUrl\n }\n\n const anchor = document.createElement('a')\n anchor.href = href\n anchor.download = filename\n anchor.click()\n }, [attachment, filename, downloadUrl])\n return (\n <NavigationButton onClick={onClick}>\n <FontAwesomeIcon icon={faPaperclip} />\n Download {filename}\n </NavigationButton>\n )\n}\n\nfunction createDownloadUrl(attachment: Attachment): string {\n const body =\n attachment.contentEncoding === AttachmentContentEncoding.BASE64\n ? base64DecodeBytes(attachment.body)\n : attachment.body\n const file = new File([body], 'attachment', {\n type: attachment.mediaType,\n })\n return URL.createObjectURL(file)\n}\n\nfunction cleanupDownloadUrl(url?: string) {\n if (url) {\n console.debug('Revoking download url')\n URL.revokeObjectURL(url)\n }\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Video.d.ts","sourceRoot":"","sources":["../../../../../src/components/gherkin/attachment/Video.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AACpD,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAI/B,eAAO,MAAM,KAAK,EAAE,EAAE,CAAC;IAAE,UAAU,EAAE,UAAU,CAAA;CAAE,CAehD,CAAA"}
@@ -1,16 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { ErrorMessage } from '../ErrorMessage.js';
3
- export const Video = ({ attachment }) => {
4
- const title = attachment.fileName ?? `Attached Video (${attachment.mediaType})`;
5
- if (attachment.url) {
6
- return _jsx(VideoInternal, { src: attachment.url, title: title });
7
- }
8
- if (attachment.contentEncoding === 'BASE64') {
9
- return (_jsx(VideoInternal, { src: `data:${attachment.mediaType};base64,${attachment.body}`, title: title }));
10
- }
11
- return (_jsx(ErrorMessage, { message: `Couldn't display ${attachment.mediaType} video because it wasn't base64 encoded or externalised` }));
12
- };
13
- const VideoInternal = ({ src, title }) => {
14
- return (_jsxs("details", { children: [_jsx("summary", { children: title }), _jsxs("video", { controls: true, children: [_jsx("source", { src: src }), "Your browser is unable to display video"] })] }));
15
- };
16
- //# sourceMappingURL=Video.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Video.js","sourceRoot":"","sources":["../../../../../src/components/gherkin/attachment/Video.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAEjD,MAAM,CAAC,MAAM,KAAK,GAAmC,CAAC,EAAE,UAAU,EAAE,EAAE,EAAE;IACtE,MAAM,KAAK,GAAG,UAAU,CAAC,QAAQ,IAAI,mBAAmB,UAAU,CAAC,SAAS,GAAG,CAAA;IAC/E,IAAI,UAAU,CAAC,GAAG,EAAE,CAAC;QACnB,OAAO,KAAC,aAAa,IAAC,GAAG,EAAE,UAAU,CAAC,GAAG,EAAE,KAAK,EAAE,KAAK,GAAI,CAAA;IAC7D,CAAC;IACD,IAAI,UAAU,CAAC,eAAe,KAAK,QAAQ,EAAE,CAAC;QAC5C,OAAO,CACL,KAAC,aAAa,IAAC,GAAG,EAAE,QAAQ,UAAU,CAAC,SAAS,WAAW,UAAU,CAAC,IAAI,EAAE,EAAE,KAAK,EAAE,KAAK,GAAI,CAC/F,CAAA;IACH,CAAC;IACD,OAAO,CACL,KAAC,YAAY,IACX,OAAO,EAAE,oBAAoB,UAAU,CAAC,SAAS,yDAAyD,GAC1G,CACH,CAAA;AACH,CAAC,CAAA;AAED,MAAM,aAAa,GAAuC,CAAC,EAAE,GAAG,EAAE,KAAK,EAAE,EAAE,EAAE;IAC3E,OAAO,CACL,8BACE,4BAAU,KAAK,GAAW,EAC1B,iBAAO,QAAQ,mBACb,iBAAQ,GAAG,EAAE,GAAG,GAAI,+CAEd,IACA,CACX,CAAA;AACH,CAAC,CAAA","sourcesContent":["// biome-ignore-all lint/a11y/useMediaCaption: user-generated content\n\nimport type { Attachment } from '@cucumber/messages'\nimport type { FC } from 'react'\n\nimport { ErrorMessage } from '../ErrorMessage.js'\n\nexport const Video: FC<{ attachment: Attachment }> = ({ attachment }) => {\n const title = attachment.fileName ?? `Attached Video (${attachment.mediaType})`\n if (attachment.url) {\n return <VideoInternal src={attachment.url} title={title} />\n }\n if (attachment.contentEncoding === 'BASE64') {\n return (\n <VideoInternal src={`data:${attachment.mediaType};base64,${attachment.body}`} title={title} />\n )\n }\n return (\n <ErrorMessage\n message={`Couldn't display ${attachment.mediaType} video because it wasn't base64 encoded or externalised`}\n />\n )\n}\n\nconst VideoInternal: FC<{ src: string; title: string }> = ({ src, title }) => {\n return (\n <details>\n <summary>{title}</summary>\n <video controls>\n <source src={src} />\n Your browser is unable to display video\n </video>\n </details>\n )\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"attachmentFilename.d.ts","sourceRoot":"","sources":["../../../../../src/components/gherkin/attachment/attachmentFilename.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAGpD,wBAAgB,kBAAkB,CAAC,UAAU,EAAE,UAAU,GAAG,MAAM,CASjE"}
@@ -1,12 +0,0 @@
1
- import mimeTypes from 'mime';
2
- export function attachmentFilename(attachment) {
3
- if (attachment.fileName) {
4
- return attachment.fileName;
5
- }
6
- const extension = mimeTypes.getExtension(attachment.mediaType);
7
- if (extension) {
8
- return `attachment.${extension}`;
9
- }
10
- return 'attachment';
11
- }
12
- //# sourceMappingURL=attachmentFilename.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"attachmentFilename.js","sourceRoot":"","sources":["../../../../../src/components/gherkin/attachment/attachmentFilename.ts"],"names":[],"mappings":"AACA,OAAO,SAAS,MAAM,MAAM,CAAA;AAE5B,MAAM,UAAU,kBAAkB,CAAC,UAAsB;IACvD,IAAI,UAAU,CAAC,QAAQ,EAAE,CAAC;QACxB,OAAO,UAAU,CAAC,QAAQ,CAAA;IAC5B,CAAC;IACD,MAAM,SAAS,GAAG,SAAS,CAAC,YAAY,CAAC,UAAU,CAAC,SAAS,CAAC,CAAA;IAC9D,IAAI,SAAS,EAAE,CAAC;QACd,OAAO,cAAc,SAAS,EAAE,CAAA;IAClC,CAAC;IACD,OAAO,YAAY,CAAA;AACrB,CAAC","sourcesContent":["import type { Attachment } from '@cucumber/messages'\nimport mimeTypes from 'mime'\n\nexport function attachmentFilename(attachment: Attachment): string {\n if (attachment.fileName) {\n return attachment.fileName\n }\n const extension = mimeTypes.getExtension(attachment.mediaType)\n if (extension) {\n return `attachment.${extension}`\n }\n return 'attachment'\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"base64Decode.d.ts","sourceRoot":"","sources":["../../../../../src/components/gherkin/attachment/base64Decode.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAErD;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,UAAU,CAAC,WAAW,CAAC,CAOvE"}
@@ -1,19 +0,0 @@
1
- /**
2
- * Decode base64 to UTF-8 string.
3
- */
4
- export function base64DecodeText(body) {
5
- return new TextDecoder('utf-8').decode(Uint8Array.from(atob(body), (c) => c.charCodeAt(0)));
6
- }
7
- /**
8
- * Decode base64 to raw bytes without any text encoding conversion,
9
- * preserving byte-for-byte accuracy needed for binary content.
10
- */
11
- export function base64DecodeBytes(body) {
12
- const binary = atob(body);
13
- const bytes = new Uint8Array(binary.length);
14
- for (let i = 0; i < binary.length; i++) {
15
- bytes[i] = binary.charCodeAt(i);
16
- }
17
- return bytes;
18
- }
19
- //# sourceMappingURL=base64Decode.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"base64Decode.js","sourceRoot":"","sources":["../../../../../src/components/gherkin/attachment/base64Decode.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,UAAU,gBAAgB,CAAC,IAAY;IAC3C,OAAO,IAAI,WAAW,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;AAC7F,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,iBAAiB,CAAC,IAAY;IAC5C,MAAM,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,CAAA;IACzB,MAAM,KAAK,GAAG,IAAI,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,CAAA;IAC3C,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QACvC,KAAK,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,CAAA;IACjC,CAAC;IACD,OAAO,KAAK,CAAA;AACd,CAAC","sourcesContent":["/**\n * Decode base64 to UTF-8 string.\n */\nexport function base64DecodeText(body: string): string {\n return new TextDecoder('utf-8').decode(Uint8Array.from(atob(body), (c) => c.charCodeAt(0)))\n}\n\n/**\n * Decode base64 to raw bytes without any text encoding conversion,\n * preserving byte-for-byte accuracy needed for binary content.\n */\nexport function base64DecodeBytes(body: string): Uint8Array<ArrayBuffer> {\n const binary = atob(body)\n const bytes = new Uint8Array(binary.length)\n for (let i = 0; i < binary.length; i++) {\n bytes[i] = binary.charCodeAt(i)\n }\n return bytes\n}\n"]}
@@ -1,2 +0,0 @@
1
- export * from './Attachment.js';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/gherkin/attachment/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/gherkin/attachment/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA","sourcesContent":["export * from './Attachment.js'\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"useText.d.ts","sourceRoot":"","sources":["../../../../../src/components/gherkin/attachment/useText.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAKpD,wBAAgB,OAAO,CAAC,UAAU,EAAE,UAAU;;;;;EA0B7C"}
@@ -1,28 +0,0 @@
1
- import { useEffect, useState } from 'react';
2
- import { base64DecodeText } from './base64Decode.js';
3
- export function useText(attachment) {
4
- const [loading, setLoading] = useState(false);
5
- const [content, setContent] = useState(attachment.contentEncoding === 'BASE64' ? base64DecodeText(attachment.body) : attachment.body);
6
- const [error, setError] = useState();
7
- useEffect(() => {
8
- if (attachment.url) {
9
- setLoading(true);
10
- fetch(attachment.url)
11
- .then((response) => {
12
- if (response.status !== 200) {
13
- throw new Error('HTTP error when fetching attachment content');
14
- }
15
- return response.text().then((text) => setContent(text));
16
- })
17
- .catch((e) => setError(e))
18
- .finally(() => setLoading(false));
19
- }
20
- }, [attachment]);
21
- return {
22
- title: attachment.fileName ?? `Attached Text (${attachment.mediaType})`,
23
- loading,
24
- content,
25
- error,
26
- };
27
- }
28
- //# sourceMappingURL=useText.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useText.js","sourceRoot":"","sources":["../../../../../src/components/gherkin/attachment/useText.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAE3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;AAEpD,MAAM,UAAU,OAAO,CAAC,UAAsB;IAC5C,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAA;IAC7C,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CACpC,UAAU,CAAC,eAAe,KAAK,QAAQ,CAAC,CAAC,CAAC,gBAAgB,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,IAAI,CAC9F,CAAA;IACD,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,EAAkB,CAAA;IACpD,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,UAAU,CAAC,GAAG,EAAE,CAAC;YACnB,UAAU,CAAC,IAAI,CAAC,CAAA;YAChB,KAAK,CAAC,UAAU,CAAC,GAAG,CAAC;iBAClB,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE;gBACjB,IAAI,QAAQ,CAAC,MAAM,KAAK,GAAG,EAAE,CAAC;oBAC5B,MAAM,IAAI,KAAK,CAAC,6CAA6C,CAAC,CAAA;gBAChE,CAAC;gBACD,OAAO,QAAQ,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAA;YACzD,CAAC,CAAC;iBACD,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;iBACzB,OAAO,CAAC,GAAG,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAA;QACrC,CAAC;IACH,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC,CAAA;IAChB,OAAO;QACL,KAAK,EAAE,UAAU,CAAC,QAAQ,IAAI,kBAAkB,UAAU,CAAC,SAAS,GAAG;QACvE,OAAO;QACP,OAAO;QACP,KAAK;KACN,CAAA;AACH,CAAC","sourcesContent":["import type { Attachment } from '@cucumber/messages'\nimport { useEffect, useState } from 'react'\n\nimport { base64DecodeText } from './base64Decode.js'\n\nexport function useText(attachment: Attachment) {\n const [loading, setLoading] = useState(false)\n const [content, setContent] = useState(\n attachment.contentEncoding === 'BASE64' ? base64DecodeText(attachment.body) : attachment.body\n )\n const [error, setError] = useState<Error | string>()\n useEffect(() => {\n if (attachment.url) {\n setLoading(true)\n fetch(attachment.url)\n .then((response) => {\n if (response.status !== 200) {\n throw new Error('HTTP error when fetching attachment content')\n }\n return response.text().then((text) => setContent(text))\n })\n .catch((e) => setError(e))\n .finally(() => setLoading(false))\n }\n }, [attachment])\n return {\n title: attachment.fileName ?? `Attached Text (${attachment.mediaType})`,\n loading,\n content,\n error,\n }\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"composeHookStepTitle.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/composeHookStepTitle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,EAAY,MAAM,oBAAoB,CAAA;AAWxD,wBAAgB,oBAAoB,CAAC,IAAI,CAAC,EAAE,IAAI,GAAG,MAAM,CAcxD"}
@@ -1,23 +0,0 @@
1
- import { HookType } from '@cucumber/messages';
2
- const labels = {
3
- [HookType.BEFORE_TEST_RUN]: 'BeforeAll',
4
- [HookType.BEFORE_TEST_CASE]: 'Before',
5
- [HookType.BEFORE_TEST_STEP]: 'BeforeStep',
6
- [HookType.AFTER_TEST_STEP]: 'AfterStep',
7
- [HookType.AFTER_TEST_CASE]: 'After',
8
- [HookType.AFTER_TEST_RUN]: 'AfterAll',
9
- };
10
- export function composeHookStepTitle(hook) {
11
- let result = '';
12
- if (hook?.type) {
13
- result = labels[hook.type];
14
- }
15
- else {
16
- result += 'Hook';
17
- }
18
- if (hook?.name) {
19
- result += `: ${hook.name}`;
20
- }
21
- return result;
22
- }
23
- //# sourceMappingURL=composeHookStepTitle.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"composeHookStepTitle.js","sourceRoot":"","sources":["../../../../src/components/gherkin/composeHookStepTitle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,QAAQ,EAAE,MAAM,oBAAoB,CAAA;AAExD,MAAM,MAAM,GAA6B;IACvC,CAAC,QAAQ,CAAC,eAAe,CAAC,EAAE,WAAW;IACvC,CAAC,QAAQ,CAAC,gBAAgB,CAAC,EAAE,QAAQ;IACrC,CAAC,QAAQ,CAAC,gBAAgB,CAAC,EAAE,YAAY;IACzC,CAAC,QAAQ,CAAC,eAAe,CAAC,EAAE,WAAW;IACvC,CAAC,QAAQ,CAAC,eAAe,CAAC,EAAE,OAAO;IACnC,CAAC,QAAQ,CAAC,cAAc,CAAC,EAAE,UAAU;CACtC,CAAA;AAED,MAAM,UAAU,oBAAoB,CAAC,IAAW;IAC9C,IAAI,MAAM,GAAG,EAAE,CAAA;IAEf,IAAI,IAAI,EAAE,IAAI,EAAE,CAAC;QACf,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;IAC5B,CAAC;SAAM,CAAC;QACN,MAAM,IAAI,MAAM,CAAA;IAClB,CAAC;IAED,IAAI,IAAI,EAAE,IAAI,EAAE,CAAC;QACf,MAAM,IAAI,KAAK,IAAI,CAAC,IAAI,EAAE,CAAA;IAC5B,CAAC;IAED,OAAO,MAAM,CAAA;AACf,CAAC","sourcesContent":["import { type Hook, HookType } from '@cucumber/messages'\n\nconst labels: Record<HookType, string> = {\n [HookType.BEFORE_TEST_RUN]: 'BeforeAll',\n [HookType.BEFORE_TEST_CASE]: 'Before',\n [HookType.BEFORE_TEST_STEP]: 'BeforeStep',\n [HookType.AFTER_TEST_STEP]: 'AfterStep',\n [HookType.AFTER_TEST_CASE]: 'After',\n [HookType.AFTER_TEST_RUN]: 'AfterAll',\n}\n\nexport function composeHookStepTitle(hook?: Hook): string {\n let result = ''\n\n if (hook?.type) {\n result = labels[hook.type]\n } else {\n result += 'Hook'\n }\n\n if (hook?.name) {\n result += `: ${hook.name}`\n }\n\n return result\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"composePickleStepTitle.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/composePickleStepTitle.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAA;AAEhE,UAAU,aAAa;IACrB,KAAK,EAAE,MAAM,CAAA;IACb,iBAAiB,CAAC,EAAE,MAAM,CAAA;CAC3B;AAED,wBAAgB,sBAAsB,CACpC,IAAI,EAAE,MAAM,EACZ,uBAAuB,CAAC,EAAE,aAAa,CAAC,sBAAsB,CAAC,GAC9D,aAAa,CAAC,aAAa,CAAC,CAkC9B"}
@@ -1,36 +0,0 @@
1
- export function composePickleStepTitle(text, stepMatchArgumentsLists) {
2
- if (stepMatchArgumentsLists?.length === 1) {
3
- const stepMatchArguments = stepMatchArgumentsLists[0].stepMatchArguments;
4
- let offset = 0;
5
- let plain;
6
- const fragments = [];
7
- for (const argument of stepMatchArguments) {
8
- plain = text.slice(offset, argument.group.start);
9
- if (plain.length > 0) {
10
- fragments.push({ value: plain });
11
- }
12
- const arg = argument.group.value;
13
- if (arg) {
14
- if (arg.length > 0) {
15
- fragments.push({
16
- value: arg,
17
- parameterTypeName: argument.parameterTypeName || 'anonymous',
18
- });
19
- }
20
- offset += plain.length + arg.length;
21
- }
22
- }
23
- plain = text.slice(offset);
24
- if (plain.length > 0) {
25
- fragments.push({ value: plain });
26
- }
27
- return fragments;
28
- }
29
- // no argument matching, just a single text value
30
- return [
31
- {
32
- value: text,
33
- },
34
- ];
35
- }
36
- //# sourceMappingURL=composePickleStepTitle.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"composePickleStepTitle.js","sourceRoot":"","sources":["../../../../src/components/gherkin/composePickleStepTitle.ts"],"names":[],"mappings":"AAOA,MAAM,UAAU,sBAAsB,CACpC,IAAY,EACZ,uBAA+D;IAE/D,IAAI,uBAAuB,EAAE,MAAM,KAAK,CAAC,EAAE,CAAC;QAC1C,MAAM,kBAAkB,GAAG,uBAAuB,CAAC,CAAC,CAAC,CAAC,kBAAkB,CAAA;QACxE,IAAI,MAAM,GAAG,CAAC,CAAA;QACd,IAAI,KAAa,CAAA;QACjB,MAAM,SAAS,GAAoB,EAAE,CAAA;QACrC,KAAK,MAAM,QAAQ,IAAI,kBAAkB,EAAE,CAAC;YAC1C,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,CAAA;YAChD,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;gBACrB,SAAS,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAA;YAClC,CAAC;YACD,MAAM,GAAG,GAAG,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAA;YAChC,IAAI,GAAG,EAAE,CAAC;gBACR,IAAI,GAAG,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;oBACnB,SAAS,CAAC,IAAI,CAAC;wBACb,KAAK,EAAE,GAAG;wBACV,iBAAiB,EAAE,QAAQ,CAAC,iBAAiB,IAAI,WAAW;qBAC7D,CAAC,CAAA;gBACJ,CAAC;gBACD,MAAM,IAAI,KAAK,CAAC,MAAM,GAAG,GAAG,CAAC,MAAM,CAAA;YACrC,CAAC;QACH,CAAC;QACD,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;QAC1B,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACrB,SAAS,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAA;QAClC,CAAC;QACD,OAAO,SAAS,CAAA;IAClB,CAAC;IACD,iDAAiD;IACjD,OAAO;QACL;YACE,KAAK,EAAE,IAAI;SACZ;KACF,CAAA;AACH,CAAC","sourcesContent":["import type { StepMatchArgumentsList } from '@cucumber/messages'\n\ninterface TitleFragment {\n value: string\n parameterTypeName?: string\n}\n\nexport function composePickleStepTitle(\n text: string,\n stepMatchArgumentsLists?: ReadonlyArray<StepMatchArgumentsList>\n): ReadonlyArray<TitleFragment> {\n if (stepMatchArgumentsLists?.length === 1) {\n const stepMatchArguments = stepMatchArgumentsLists[0].stepMatchArguments\n let offset = 0\n let plain: string\n const fragments: TitleFragment[] = []\n for (const argument of stepMatchArguments) {\n plain = text.slice(offset, argument.group.start)\n if (plain.length > 0) {\n fragments.push({ value: plain })\n }\n const arg = argument.group.value\n if (arg) {\n if (arg.length > 0) {\n fragments.push({\n value: arg,\n parameterTypeName: argument.parameterTypeName || 'anonymous',\n })\n }\n offset += plain.length + arg.length\n }\n }\n plain = text.slice(offset)\n if (plain.length > 0) {\n fragments.push({ value: plain })\n }\n return fragments\n }\n // no argument matching, just a single text value\n return [\n {\n value: text,\n },\n ]\n}\n"]}
@@ -1,19 +0,0 @@
1
- export * from './Anchor.js';
2
- export * from './attachment/Attachment.js';
3
- export * from './Background.js';
4
- export * from './Children.js';
5
- export * from './DataTable.js';
6
- export * from './Description.js';
7
- export * from './DocString.js';
8
- export * from './ErrorMessage.js';
9
- export * from './Examples.js';
10
- export * from './Feature.js';
11
- export * from './GherkinDocument.js';
12
- export * from './Keyword.js';
13
- export * from './Parameter.js';
14
- export * from './Rule.js';
15
- export * from './Scenario.js';
16
- export * from './StatusIcon.js';
17
- export * from './Tags.js';
18
- export * from './Title.js';
19
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,4BAA4B,CAAA;AAC1C,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA;AAC7B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,kBAAkB,CAAA;AAChC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,mBAAmB,CAAA;AACjC,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA;AAC5B,cAAc,sBAAsB,CAAA;AACpC,cAAc,cAAc,CAAA;AAC5B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,WAAW,CAAA;AACzB,cAAc,eAAe,CAAA;AAC7B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,WAAW,CAAA;AACzB,cAAc,YAAY,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/gherkin/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,4BAA4B,CAAA;AAC1C,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA;AAC7B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,kBAAkB,CAAA;AAChC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,mBAAmB,CAAA;AACjC,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA;AAC5B,cAAc,sBAAsB,CAAA;AACpC,cAAc,cAAc,CAAA;AAC5B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,WAAW,CAAA;AACzB,cAAc,eAAe,CAAA;AAC7B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,WAAW,CAAA;AACzB,cAAc,YAAY,CAAA","sourcesContent":["export * from './Anchor.js'\nexport * from './attachment/Attachment.js'\nexport * from './Background.js'\nexport * from './Children.js'\nexport * from './DataTable.js'\nexport * from './Description.js'\nexport * from './DocString.js'\nexport * from './ErrorMessage.js'\nexport * from './Examples.js'\nexport * from './Feature.js'\nexport * from './GherkinDocument.js'\nexport * from './Keyword.js'\nexport * from './Parameter.js'\nexport * from './Rule.js'\nexport * from './Scenario.js'\nexport * from './StatusIcon.js'\nexport * from './Tags.js'\nexport * from './Title.js'\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"isNumber.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/isNumber.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAEnD"}
@@ -1,7 +0,0 @@
1
- // Lifted from cucumber-expressions/javascript/src/ParameterTypeRegistry#FLOAT_REGEXP
2
- // Modified to allow spaces, commas and periods as decimal- and/or as thousand-separators
3
- const numberPattern = /^(?=.*\d.*)[-+]?\d*(?:[., ](?=\d.*)\d*)*(?:\d+E[+-]?\d+)?$/;
4
- export default function isNumber(s) {
5
- return !!s.match(numberPattern);
6
- }
7
- //# sourceMappingURL=isNumber.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"isNumber.js","sourceRoot":"","sources":["../../../../src/components/gherkin/isNumber.ts"],"names":[],"mappings":"AAAA,qFAAqF;AACrF,yFAAyF;AACzF,MAAM,aAAa,GAAG,4DAA4D,CAAA;AAElF,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,CAAS;IACxC,OAAO,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAA;AACjC,CAAC","sourcesContent":["// Lifted from cucumber-expressions/javascript/src/ParameterTypeRegistry#FLOAT_REGEXP\n// Modified to allow spaces, commas and periods as decimal- and/or as thousand-separators\nconst numberPattern = /^(?=.*\\d.*)[-+]?\\d*(?:[., ](?=\\d.*)\\d*)*(?:\\d+E[+-]?\\d+)?$/\n\nexport default function isNumber(s: string): boolean {\n return !!s.match(numberPattern)\n}\n"]}
@@ -1,4 +0,0 @@
1
- import type { TestStepResultStatus } from '@cucumber/messages';
2
- declare const _default: (status: TestStepResultStatus) => string;
3
- export default _default;
4
- //# sourceMappingURL=statusName.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"statusName.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/statusName.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAA;yBAE9C,QAAQ,oBAAoB,KAAG,MAAM;AAArD,wBAEC"}
@@ -1,4 +0,0 @@
1
- export default (status) => {
2
- return status.toLowerCase();
3
- };
4
- //# sourceMappingURL=statusName.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"statusName.js","sourceRoot":"","sources":["../../../../src/components/gherkin/statusName.ts"],"names":[],"mappings":"AAEA,eAAe,CAAC,MAA4B,EAAU,EAAE;IACtD,OAAO,MAAM,CAAC,WAAW,EAAE,CAAA;AAC7B,CAAC,CAAA","sourcesContent":["import type { TestStepResultStatus } from '@cucumber/messages'\n\nexport default (status: TestStepResultStatus): string => {\n return status.toLowerCase()\n}\n"]}
@@ -1,4 +0,0 @@
1
- export * from './app/index.js';
2
- export * from './customise/index.js';
3
- export * from './gherkin/index.js';
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA;AAC9B,cAAc,sBAAsB,CAAA;AACpC,cAAc,oBAAoB,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA;AAC9B,cAAc,sBAAsB,CAAA;AACpC,cAAc,oBAAoB,CAAA","sourcesContent":["export * from './app/index.js'\nexport * from './customise/index.js'\nexport * from './gherkin/index.js'\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"AmbiguousResult.d.ts","sourceRoot":"","sources":["../../../../src/components/results/AmbiguousResult.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAA;AAClD,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAO/B,UAAU,KAAK;IACb,QAAQ,EAAE,QAAQ,CAAA;CACnB;AAED,eAAO,MAAM,eAAe,EAAE,EAAE,CAAC,KAAK,CAgBrC,CAAA"}