@cucumber/react-components 20.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (338) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +215 -0
  3. package/dist/src/CucumberQueryContext.d.ts +5 -0
  4. package/dist/src/CucumberQueryContext.d.ts.map +1 -0
  5. package/dist/src/CucumberQueryContext.js +9 -0
  6. package/dist/src/CucumberQueryContext.js.map +1 -0
  7. package/dist/src/EnvelopesQueryContext.d.ts +14 -0
  8. package/dist/src/EnvelopesQueryContext.d.ts.map +1 -0
  9. package/dist/src/EnvelopesQueryContext.js +36 -0
  10. package/dist/src/EnvelopesQueryContext.js.map +1 -0
  11. package/dist/src/GherkinQueryContext.d.ts +5 -0
  12. package/dist/src/GherkinQueryContext.d.ts.map +1 -0
  13. package/dist/src/GherkinQueryContext.js +9 -0
  14. package/dist/src/GherkinQueryContext.js.map +1 -0
  15. package/dist/src/SearchQueryContext.d.ts +34 -0
  16. package/dist/src/SearchQueryContext.d.ts.map +1 -0
  17. package/dist/src/SearchQueryContext.js +102 -0
  18. package/dist/src/SearchQueryContext.js.map +1 -0
  19. package/dist/src/UriContext.d.ts +4 -0
  20. package/dist/src/UriContext.d.ts.map +1 -0
  21. package/dist/src/UriContext.js +8 -0
  22. package/dist/src/UriContext.js.map +1 -0
  23. package/dist/src/ciCommitLink.d.ts +3 -0
  24. package/dist/src/ciCommitLink.d.ts.map +1 -0
  25. package/dist/src/ciCommitLink.js +18 -0
  26. package/dist/src/ciCommitLink.js.map +1 -0
  27. package/dist/src/components/CucumberReact.d.ts +10 -0
  28. package/dist/src/components/CucumberReact.d.ts.map +1 -0
  29. package/dist/src/components/CucumberReact.js +16 -0
  30. package/dist/src/components/CucumberReact.js.map +1 -0
  31. package/dist/src/components/CucumberReact.module.scss +35 -0
  32. package/dist/src/components/app/CICommitLink.d.ts +8 -0
  33. package/dist/src/components/app/CICommitLink.d.ts.map +1 -0
  34. package/dist/src/components/app/CICommitLink.js +25 -0
  35. package/dist/src/components/app/CICommitLink.js.map +1 -0
  36. package/dist/src/components/app/EnvelopesWrapper.d.ts +8 -0
  37. package/dist/src/components/app/EnvelopesWrapper.d.ts.map +1 -0
  38. package/dist/src/components/app/EnvelopesWrapper.js +47 -0
  39. package/dist/src/components/app/EnvelopesWrapper.js.map +1 -0
  40. package/dist/src/components/app/ExecutionSummary.d.ts +13 -0
  41. package/dist/src/components/app/ExecutionSummary.d.ts.map +1 -0
  42. package/dist/src/components/app/ExecutionSummary.js +82 -0
  43. package/dist/src/components/app/ExecutionSummary.js.map +1 -0
  44. package/dist/src/components/app/ExecutionSummary.module.scss +59 -0
  45. package/dist/src/components/app/FilteredResults.d.ts +7 -0
  46. package/dist/src/components/app/FilteredResults.d.ts.map +1 -0
  47. package/dist/src/components/app/FilteredResults.js +42 -0
  48. package/dist/src/components/app/FilteredResults.js.map +1 -0
  49. package/dist/src/components/app/FilteredResults.module.scss +7 -0
  50. package/dist/src/components/app/GherkinDocumentList.d.ts +9 -0
  51. package/dist/src/components/app/GherkinDocumentList.d.ts.map +1 -0
  52. package/dist/src/components/app/GherkinDocumentList.js +84 -0
  53. package/dist/src/components/app/GherkinDocumentList.js.map +1 -0
  54. package/dist/src/components/app/GherkinDocumentList.module.scss +45 -0
  55. package/dist/src/components/app/HighLight.d.ts +9 -0
  56. package/dist/src/components/app/HighLight.d.ts.map +1 -0
  57. package/dist/src/components/app/HighLight.js +38 -0
  58. package/dist/src/components/app/HighLight.js.map +1 -0
  59. package/dist/src/components/app/NoMatchResult.d.ts +7 -0
  60. package/dist/src/components/app/NoMatchResult.d.ts.map +1 -0
  61. package/dist/src/components/app/NoMatchResult.js +19 -0
  62. package/dist/src/components/app/NoMatchResult.js.map +1 -0
  63. package/dist/src/components/app/NoMatchResult.module.scss +13 -0
  64. package/dist/src/components/app/OSIcon.d.ts +5 -0
  65. package/dist/src/components/app/OSIcon.d.ts.map +1 -0
  66. package/dist/src/components/app/OSIcon.js +27 -0
  67. package/dist/src/components/app/OSIcon.js.map +1 -0
  68. package/dist/src/components/app/QueriesWrapper.d.ts +12 -0
  69. package/dist/src/components/app/QueriesWrapper.d.ts.map +1 -0
  70. package/dist/src/components/app/QueriesWrapper.js +15 -0
  71. package/dist/src/components/app/QueriesWrapper.js.map +1 -0
  72. package/dist/src/components/app/RuntimeIcon.d.ts +5 -0
  73. package/dist/src/components/app/RuntimeIcon.d.ts.map +1 -0
  74. package/dist/src/components/app/RuntimeIcon.js +27 -0
  75. package/dist/src/components/app/RuntimeIcon.js.map +1 -0
  76. package/dist/src/components/app/SearchBar.d.ts +12 -0
  77. package/dist/src/components/app/SearchBar.d.ts.map +1 -0
  78. package/dist/src/components/app/SearchBar.js +48 -0
  79. package/dist/src/components/app/SearchBar.js.map +1 -0
  80. package/dist/src/components/app/SearchBar.module.scss +74 -0
  81. package/dist/src/components/app/SearchWrapper.d.ts +4 -0
  82. package/dist/src/components/app/SearchWrapper.d.ts.map +1 -0
  83. package/dist/src/components/app/SearchWrapper.js +48 -0
  84. package/dist/src/components/app/SearchWrapper.js.map +1 -0
  85. package/dist/src/components/app/StatusesSummary.d.ts +8 -0
  86. package/dist/src/components/app/StatusesSummary.d.ts.map +1 -0
  87. package/dist/src/components/app/StatusesSummary.js +24 -0
  88. package/dist/src/components/app/StatusesSummary.js.map +1 -0
  89. package/dist/src/components/app/StatusesSummary.module.scss +34 -0
  90. package/dist/src/components/app/icons/CucumberLogo.d.ts +3 -0
  91. package/dist/src/components/app/icons/CucumberLogo.d.ts.map +1 -0
  92. package/dist/src/components/app/icons/CucumberLogo.js +16 -0
  93. package/dist/src/components/app/icons/CucumberLogo.js.map +1 -0
  94. package/dist/src/components/app/icons/Jvm.d.ts +3 -0
  95. package/dist/src/components/app/icons/Jvm.d.ts.map +1 -0
  96. package/dist/src/components/app/icons/Jvm.js +17 -0
  97. package/dist/src/components/app/icons/Jvm.js.map +1 -0
  98. package/dist/src/components/app/icons/Linux.d.ts +3 -0
  99. package/dist/src/components/app/icons/Linux.d.ts.map +1 -0
  100. package/dist/src/components/app/icons/Linux.js +27 -0
  101. package/dist/src/components/app/icons/Linux.js.map +1 -0
  102. package/dist/src/components/app/icons/MacOS.d.ts +3 -0
  103. package/dist/src/components/app/icons/MacOS.d.ts.map +1 -0
  104. package/dist/src/components/app/icons/MacOS.js +13 -0
  105. package/dist/src/components/app/icons/MacOS.js.map +1 -0
  106. package/dist/src/components/app/icons/NodeJs.d.ts +3 -0
  107. package/dist/src/components/app/icons/NodeJs.d.ts.map +1 -0
  108. package/dist/src/components/app/icons/NodeJs.js +43 -0
  109. package/dist/src/components/app/icons/NodeJs.js.map +1 -0
  110. package/dist/src/components/app/icons/Ruby.d.ts +3 -0
  111. package/dist/src/components/app/icons/Ruby.d.ts.map +1 -0
  112. package/dist/src/components/app/icons/Ruby.js +13 -0
  113. package/dist/src/components/app/icons/Ruby.js.map +1 -0
  114. package/dist/src/components/app/icons/Windows.d.ts +3 -0
  115. package/dist/src/components/app/icons/Windows.d.ts.map +1 -0
  116. package/dist/src/components/app/icons/Windows.js +13 -0
  117. package/dist/src/components/app/icons/Windows.js.map +1 -0
  118. package/dist/src/components/app/index.d.ts +12 -0
  119. package/dist/src/components/app/index.d.ts.map +1 -0
  120. package/dist/src/components/app/index.js +28 -0
  121. package/dist/src/components/app/index.js.map +1 -0
  122. package/dist/src/components/app/rehypePlugins.d.ts +4 -0
  123. package/dist/src/components/app/rehypePlugins.d.ts.map +1 -0
  124. package/dist/src/components/app/rehypePlugins.js +14 -0
  125. package/dist/src/components/app/rehypePlugins.js.map +1 -0
  126. package/dist/src/components/app/statuses.d.ts +4 -0
  127. package/dist/src/components/app/statuses.d.ts.map +1 -0
  128. package/dist/src/components/app/statuses.js +37 -0
  129. package/dist/src/components/app/statuses.js.map +1 -0
  130. package/dist/src/components/customise/customRendering.d.ts +122 -0
  131. package/dist/src/components/customise/customRendering.d.ts.map +1 -0
  132. package/dist/src/components/customise/customRendering.js +58 -0
  133. package/dist/src/components/customise/customRendering.js.map +1 -0
  134. package/dist/src/components/customise/index.d.ts +3 -0
  135. package/dist/src/components/customise/index.d.ts.map +1 -0
  136. package/dist/src/components/customise/index.js +19 -0
  137. package/dist/src/components/customise/index.js.map +1 -0
  138. package/dist/src/components/customise/theming.d.ts +2 -0
  139. package/dist/src/components/customise/theming.d.ts.map +1 -0
  140. package/dist/src/components/customise/theming.js +3 -0
  141. package/dist/src/components/customise/theming.js.map +1 -0
  142. package/dist/src/components/gherkin/Anchor.d.ts +4 -0
  143. package/dist/src/components/gherkin/Anchor.d.ts.map +1 -0
  144. package/dist/src/components/gherkin/Anchor.js +23 -0
  145. package/dist/src/components/gherkin/Anchor.js.map +1 -0
  146. package/dist/src/components/gherkin/Anchor.module.scss +20 -0
  147. package/dist/src/components/gherkin/Attachment.d.ts +5 -0
  148. package/dist/src/components/gherkin/Attachment.d.ts.map +1 -0
  149. package/dist/src/components/gherkin/Attachment.js +100 -0
  150. package/dist/src/components/gherkin/Attachment.js.map +1 -0
  151. package/dist/src/components/gherkin/Attachment.module.scss +23 -0
  152. package/dist/src/components/gherkin/Background.d.ts +4 -0
  153. package/dist/src/components/gherkin/Background.d.ts.map +1 -0
  154. package/dist/src/components/gherkin/Background.js +30 -0
  155. package/dist/src/components/gherkin/Background.js.map +1 -0
  156. package/dist/src/components/gherkin/Background.module.scss +12 -0
  157. package/dist/src/components/gherkin/Children.d.ts +4 -0
  158. package/dist/src/components/gherkin/Children.d.ts.map +1 -0
  159. package/dist/src/components/gherkin/Children.js +18 -0
  160. package/dist/src/components/gherkin/Children.js.map +1 -0
  161. package/dist/src/components/gherkin/Children.module.scss +6 -0
  162. package/dist/src/components/gherkin/DataTable.d.ts +4 -0
  163. package/dist/src/components/gherkin/DataTable.d.ts.map +1 -0
  164. package/dist/src/components/gherkin/DataTable.js +25 -0
  165. package/dist/src/components/gherkin/DataTable.js.map +1 -0
  166. package/dist/src/components/gherkin/DataTable.module.scss +41 -0
  167. package/dist/src/components/gherkin/Description.d.ts +4 -0
  168. package/dist/src/components/gherkin/Description.d.ts.map +1 -0
  169. package/dist/src/components/gherkin/Description.js +23 -0
  170. package/dist/src/components/gherkin/Description.js.map +1 -0
  171. package/dist/src/components/gherkin/Description.module.scss +10 -0
  172. package/dist/src/components/gherkin/DocString.d.ts +4 -0
  173. package/dist/src/components/gherkin/DocString.d.ts.map +1 -0
  174. package/dist/src/components/gherkin/DocString.js +20 -0
  175. package/dist/src/components/gherkin/DocString.js.map +1 -0
  176. package/dist/src/components/gherkin/DocString.module.scss +25 -0
  177. package/dist/src/components/gherkin/ErrorMessage.d.ts +4 -0
  178. package/dist/src/components/gherkin/ErrorMessage.d.ts.map +1 -0
  179. package/dist/src/components/gherkin/ErrorMessage.js +18 -0
  180. package/dist/src/components/gherkin/ErrorMessage.js.map +1 -0
  181. package/dist/src/components/gherkin/ErrorMessage.module.scss +13 -0
  182. package/dist/src/components/gherkin/Examples.d.ts +4 -0
  183. package/dist/src/components/gherkin/Examples.d.ts.map +1 -0
  184. package/dist/src/components/gherkin/Examples.js +33 -0
  185. package/dist/src/components/gherkin/Examples.js.map +1 -0
  186. package/dist/src/components/gherkin/Examples.module.scss +3 -0
  187. package/dist/src/components/gherkin/ExamplesTable.d.ts +4 -0
  188. package/dist/src/components/gherkin/ExamplesTable.d.ts.map +1 -0
  189. package/dist/src/components/gherkin/ExamplesTable.js +58 -0
  190. package/dist/src/components/gherkin/ExamplesTable.js.map +1 -0
  191. package/dist/src/components/gherkin/Feature.d.ts +4 -0
  192. package/dist/src/components/gherkin/Feature.d.ts.map +1 -0
  193. package/dist/src/components/gherkin/Feature.js +47 -0
  194. package/dist/src/components/gherkin/Feature.js.map +1 -0
  195. package/dist/src/components/gherkin/GherkinDocument.d.ts +4 -0
  196. package/dist/src/components/gherkin/GherkinDocument.d.ts.map +1 -0
  197. package/dist/src/components/gherkin/GherkinDocument.js +18 -0
  198. package/dist/src/components/gherkin/GherkinDocument.js.map +1 -0
  199. package/dist/src/components/gherkin/GherkinStep.d.ts +4 -0
  200. package/dist/src/components/gherkin/GherkinStep.d.ts.map +1 -0
  201. package/dist/src/components/gherkin/GherkinStep.js +89 -0
  202. package/dist/src/components/gherkin/GherkinStep.js.map +1 -0
  203. package/dist/src/components/gherkin/HookList.d.ts +8 -0
  204. package/dist/src/components/gherkin/HookList.d.ts.map +1 -0
  205. package/dist/src/components/gherkin/HookList.js +14 -0
  206. package/dist/src/components/gherkin/HookList.js.map +1 -0
  207. package/dist/src/components/gherkin/HookStep.d.ts +4 -0
  208. package/dist/src/components/gherkin/HookStep.d.ts.map +1 -0
  209. package/dist/src/components/gherkin/HookStep.js +72 -0
  210. package/dist/src/components/gherkin/HookStep.js.map +1 -0
  211. package/dist/src/components/gherkin/Keyword.d.ts +3 -0
  212. package/dist/src/components/gherkin/Keyword.d.ts.map +1 -0
  213. package/dist/src/components/gherkin/Keyword.js +18 -0
  214. package/dist/src/components/gherkin/Keyword.js.map +1 -0
  215. package/dist/src/components/gherkin/Keyword.module.scss +7 -0
  216. package/dist/src/components/gherkin/MDG.d.ts +8 -0
  217. package/dist/src/components/gherkin/MDG.d.ts.map +1 -0
  218. package/dist/src/components/gherkin/MDG.js +87 -0
  219. package/dist/src/components/gherkin/MDG.js.map +1 -0
  220. package/dist/src/components/gherkin/MDG.module.scss +12 -0
  221. package/dist/src/components/gherkin/Parameter.d.ts +4 -0
  222. package/dist/src/components/gherkin/Parameter.d.ts.map +1 -0
  223. package/dist/src/components/gherkin/Parameter.js +18 -0
  224. package/dist/src/components/gherkin/Parameter.js.map +1 -0
  225. package/dist/src/components/gherkin/Parameter.module.scss +6 -0
  226. package/dist/src/components/gherkin/Rule.d.ts +4 -0
  227. package/dist/src/components/gherkin/Rule.d.ts.map +1 -0
  228. package/dist/src/components/gherkin/Rule.js +43 -0
  229. package/dist/src/components/gherkin/Rule.js.map +1 -0
  230. package/dist/src/components/gherkin/Scenario.d.ts +4 -0
  231. package/dist/src/components/gherkin/Scenario.d.ts.map +1 -0
  232. package/dist/src/components/gherkin/Scenario.js +51 -0
  233. package/dist/src/components/gherkin/Scenario.js.map +1 -0
  234. package/dist/src/components/gherkin/Scenario.module.scss +12 -0
  235. package/dist/src/components/gherkin/StatusIcon.d.ts +4 -0
  236. package/dist/src/components/gherkin/StatusIcon.d.ts.map +1 -0
  237. package/dist/src/components/gherkin/StatusIcon.js +31 -0
  238. package/dist/src/components/gherkin/StatusIcon.js.map +1 -0
  239. package/dist/src/components/gherkin/StatusIcon.module.scss +16 -0
  240. package/dist/src/components/gherkin/StepItem.d.ts +7 -0
  241. package/dist/src/components/gherkin/StepItem.d.ts.map +1 -0
  242. package/dist/src/components/gherkin/StepItem.js +17 -0
  243. package/dist/src/components/gherkin/StepItem.js.map +1 -0
  244. package/dist/src/components/gherkin/StepItem.module.scss +22 -0
  245. package/dist/src/components/gherkin/StepList.d.ts +4 -0
  246. package/dist/src/components/gherkin/StepList.d.ts.map +1 -0
  247. package/dist/src/components/gherkin/StepList.js +19 -0
  248. package/dist/src/components/gherkin/StepList.js.map +1 -0
  249. package/dist/src/components/gherkin/Tags.d.ts +4 -0
  250. package/dist/src/components/gherkin/Tags.d.ts.map +1 -0
  251. package/dist/src/components/gherkin/Tags.js +23 -0
  252. package/dist/src/components/gherkin/Tags.js.map +1 -0
  253. package/dist/src/components/gherkin/Tags.module.scss +17 -0
  254. package/dist/src/components/gherkin/Title.d.ts +4 -0
  255. package/dist/src/components/gherkin/Title.d.ts.map +1 -0
  256. package/dist/src/components/gherkin/Title.js +20 -0
  257. package/dist/src/components/gherkin/Title.js.map +1 -0
  258. package/dist/src/components/gherkin/Title.module.scss +6 -0
  259. package/dist/src/components/gherkin/index.d.ts +26 -0
  260. package/dist/src/components/gherkin/index.d.ts.map +1 -0
  261. package/dist/src/components/gherkin/index.js +42 -0
  262. package/dist/src/components/gherkin/index.js.map +1 -0
  263. package/dist/src/components/gherkin/isNumber.d.ts +2 -0
  264. package/dist/src/components/gherkin/isNumber.d.ts.map +1 -0
  265. package/dist/src/components/gherkin/isNumber.js +9 -0
  266. package/dist/src/components/gherkin/isNumber.js.map +1 -0
  267. package/dist/src/components/gherkin/statusName.d.ts +4 -0
  268. package/dist/src/components/gherkin/statusName.d.ts.map +1 -0
  269. package/dist/src/components/gherkin/statusName.js +6 -0
  270. package/dist/src/components/gherkin/statusName.js.map +1 -0
  271. package/dist/src/components/index.d.ts +5 -0
  272. package/dist/src/components/index.d.ts.map +1 -0
  273. package/dist/src/components/index.js +34 -0
  274. package/dist/src/components/index.js.map +1 -0
  275. package/dist/src/countScenariosByStatuses.d.ts +10 -0
  276. package/dist/src/countScenariosByStatuses.d.ts.map +1 -0
  277. package/dist/src/countScenariosByStatuses.js +43 -0
  278. package/dist/src/countScenariosByStatuses.js.map +1 -0
  279. package/dist/src/filter/filterByStatus.d.ts +5 -0
  280. package/dist/src/filter/filterByStatus.d.ts.map +1 -0
  281. package/dist/src/filter/filterByStatus.js +20 -0
  282. package/dist/src/filter/filterByStatus.js.map +1 -0
  283. package/dist/src/hooks/index.d.ts +3 -0
  284. package/dist/src/hooks/index.d.ts.map +1 -0
  285. package/dist/src/hooks/index.js +19 -0
  286. package/dist/src/hooks/index.js.map +1 -0
  287. package/dist/src/hooks/useQueries.d.ts +11 -0
  288. package/dist/src/hooks/useQueries.d.ts.map +1 -0
  289. package/dist/src/hooks/useQueries.js +18 -0
  290. package/dist/src/hooks/useQueries.js.map +1 -0
  291. package/dist/src/hooks/useSearch.d.ts +3 -0
  292. package/dist/src/hooks/useSearch.d.ts.map +1 -0
  293. package/dist/src/hooks/useSearch.js +13 -0
  294. package/dist/src/hooks/useSearch.js.map +1 -0
  295. package/dist/src/index.d.ts +9 -0
  296. package/dist/src/index.d.ts.map +1 -0
  297. package/dist/src/index.js +44 -0
  298. package/dist/src/index.js.map +1 -0
  299. package/dist/src/isTagExpression.d.ts +2 -0
  300. package/dist/src/isTagExpression.d.ts.map +1 -0
  301. package/dist/src/isTagExpression.js +8 -0
  302. package/dist/src/isTagExpression.js.map +1 -0
  303. package/dist/src/search/FeatureSearch.d.ts +8 -0
  304. package/dist/src/search/FeatureSearch.d.ts.map +1 -0
  305. package/dist/src/search/FeatureSearch.js +45 -0
  306. package/dist/src/search/FeatureSearch.js.map +1 -0
  307. package/dist/src/search/RuleSearch.d.ts +9 -0
  308. package/dist/src/search/RuleSearch.d.ts.map +1 -0
  309. package/dist/src/search/RuleSearch.js +42 -0
  310. package/dist/src/search/RuleSearch.js.map +1 -0
  311. package/dist/src/search/ScenarioSearch.d.ts +9 -0
  312. package/dist/src/search/ScenarioSearch.d.ts.map +1 -0
  313. package/dist/src/search/ScenarioSearch.js +42 -0
  314. package/dist/src/search/ScenarioSearch.js.map +1 -0
  315. package/dist/src/search/Search.d.ts +11 -0
  316. package/dist/src/search/Search.d.ts.map +1 -0
  317. package/dist/src/search/Search.js +32 -0
  318. package/dist/src/search/Search.js.map +1 -0
  319. package/dist/src/search/StepSearch.d.ts +11 -0
  320. package/dist/src/search/StepSearch.d.ts.map +1 -0
  321. package/dist/src/search/StepSearch.js +55 -0
  322. package/dist/src/search/StepSearch.js.map +1 -0
  323. package/dist/src/search/TagSearch.d.ts +12 -0
  324. package/dist/src/search/TagSearch.d.ts.map +1 -0
  325. package/dist/src/search/TagSearch.js +58 -0
  326. package/dist/src/search/TagSearch.js.map +1 -0
  327. package/dist/src/search/TextSearch.d.ts +12 -0
  328. package/dist/src/search/TextSearch.d.ts.map +1 -0
  329. package/dist/src/search/TextSearch.js +52 -0
  330. package/dist/src/search/TextSearch.js.map +1 -0
  331. package/dist/src/stories/custom-classes.scss +8 -0
  332. package/dist/src/styles/theming.scss +16 -0
  333. package/dist/src/toRepositoryId.d.ts +2 -0
  334. package/dist/src/toRepositoryId.d.ts.map +1 -0
  335. package/dist/src/toRepositoryId.js +14 -0
  336. package/dist/src/toRepositoryId.js.map +1 -0
  337. package/dist/tsconfig.build.tsbuildinfo +1 -0
  338. package/package.json +118 -0
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./useQueries"), exports);
18
+ __exportStar(require("./useSearch"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/hooks/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA4B;AAC5B,8CAA2B"}
@@ -0,0 +1,11 @@
1
+ import { Query as GherkinQuery } from '@cucumber/gherkin-utils';
2
+ import { Query as CucumberQuery } from '@cucumber/query';
3
+ import { EnvelopesQuery } from '../EnvelopesQueryContext';
4
+ interface IQueries {
5
+ cucumberQuery: CucumberQuery;
6
+ gherkinQuery: GherkinQuery;
7
+ envelopesQuery: EnvelopesQuery;
8
+ }
9
+ export declare function useQueries(): IQueries;
10
+ export {};
11
+ //# sourceMappingURL=useQueries.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useQueries.d.ts","sourceRoot":"","sources":["../../../src/hooks/useQueries.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,YAAY,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAAE,KAAK,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAIxD,OAA8B,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAGhF,UAAU,QAAQ;IAChB,aAAa,EAAE,aAAa,CAAA;IAC5B,YAAY,EAAE,YAAY,CAAA;IAC1B,cAAc,EAAE,cAAc,CAAA;CAC/B;AAED,wBAAgB,UAAU,IAAI,QAAQ,CAKrC"}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.useQueries = void 0;
7
+ const react_1 = require("react");
8
+ const CucumberQueryContext_1 = __importDefault(require("../CucumberQueryContext"));
9
+ const EnvelopesQueryContext_1 = __importDefault(require("../EnvelopesQueryContext"));
10
+ const GherkinQueryContext_1 = __importDefault(require("../GherkinQueryContext"));
11
+ function useQueries() {
12
+ const envelopesQuery = (0, react_1.useContext)(EnvelopesQueryContext_1.default);
13
+ const gherkinQuery = (0, react_1.useContext)(GherkinQueryContext_1.default);
14
+ const cucumberQuery = (0, react_1.useContext)(CucumberQueryContext_1.default);
15
+ return { cucumberQuery, gherkinQuery, envelopesQuery };
16
+ }
17
+ exports.useQueries = useQueries;
18
+ //# sourceMappingURL=useQueries.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useQueries.js","sourceRoot":"","sources":["../../../src/hooks/useQueries.ts"],"names":[],"mappings":";;;;;;AAEA,iCAAkC;AAElC,mFAA0D;AAC1D,qFAAgF;AAChF,iFAAwD;AAQxD,SAAgB,UAAU;IACxB,MAAM,cAAc,GAAG,IAAA,kBAAU,EAAC,+BAAqB,CAAC,CAAA;IACxD,MAAM,YAAY,GAAG,IAAA,kBAAU,EAAC,6BAAmB,CAAC,CAAA;IACpD,MAAM,aAAa,GAAG,IAAA,kBAAU,EAAC,8BAAoB,CAAC,CAAA;IACtD,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,cAAc,EAAE,CAAA;AACxD,CAAC;AALD,gCAKC"}
@@ -0,0 +1,3 @@
1
+ import { SearchQueryCtx } from '../SearchQueryContext';
2
+ export declare function useSearch(): SearchQueryCtx;
3
+ //# sourceMappingURL=useSearch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSearch.d.ts","sourceRoot":"","sources":["../../../src/hooks/useSearch.ts"],"names":[],"mappings":"AAEA,OAA2B,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAE1E,wBAAgB,SAAS,IAAI,cAAc,CAE1C"}
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.useSearch = void 0;
7
+ const react_1 = require("react");
8
+ const SearchQueryContext_1 = __importDefault(require("../SearchQueryContext"));
9
+ function useSearch() {
10
+ return (0, react_1.useContext)(SearchQueryContext_1.default);
11
+ }
12
+ exports.useSearch = useSearch;
13
+ //# sourceMappingURL=useSearch.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSearch.js","sourceRoot":"","sources":["../../../src/hooks/useSearch.ts"],"names":[],"mappings":";;;;;;AAAA,iCAAkC;AAElC,+EAA0E;AAE1E,SAAgB,SAAS;IACvB,OAAO,IAAA,kBAAU,EAAC,4BAAkB,CAAC,CAAA;AACvC,CAAC;AAFD,8BAEC"}
@@ -0,0 +1,9 @@
1
+ import CucumberQueryContext from './CucumberQueryContext';
2
+ import EnvelopesQueryContext, { EnvelopesQuery } from './EnvelopesQueryContext';
3
+ import filterByStatus from './filter/filterByStatus';
4
+ import GherkinQueryContext from './GherkinQueryContext';
5
+ import SearchQueryContext, { searchFromURLParams, SearchQueryProps, SearchQueryUpdateFn, WindowUrlApi } from './SearchQueryContext';
6
+ export * as components from './components/index';
7
+ export * as hooks from './hooks/index';
8
+ export { CucumberQueryContext, EnvelopesQuery, EnvelopesQueryContext, filterByStatus, GherkinQueryContext, searchFromURLParams, SearchQueryContext, SearchQueryProps, SearchQueryUpdateFn, WindowUrlApi, };
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,MAAM,wBAAwB,CAAA;AACzD,OAAO,qBAAqB,EAAE,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AAC/E,OAAO,cAAc,MAAM,yBAAyB,CAAA;AACpD,OAAO,mBAAmB,MAAM,uBAAuB,CAAA;AACvD,OAAO,kBAAkB,EAAE,EACzB,mBAAmB,EACnB,gBAAgB,EAChB,mBAAmB,EACnB,YAAY,EACb,MAAM,sBAAsB,CAAA;AAE7B,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAA;AAChD,OAAO,KAAK,KAAK,MAAM,eAAe,CAAA;AACtC,OAAO,EACL,oBAAoB,EACpB,cAAc,EACd,qBAAqB,EACrB,cAAc,EACd,mBAAmB,EACnB,mBAAmB,EACnB,kBAAkB,EAClB,gBAAgB,EAChB,mBAAmB,EACnB,YAAY,GACb,CAAA"}
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ var __importDefault = (this && this.__importDefault) || function (mod) {
26
+ return (mod && mod.__esModule) ? mod : { "default": mod };
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.SearchQueryContext = exports.searchFromURLParams = exports.GherkinQueryContext = exports.filterByStatus = exports.EnvelopesQueryContext = exports.EnvelopesQuery = exports.CucumberQueryContext = exports.hooks = exports.components = void 0;
30
+ const CucumberQueryContext_1 = __importDefault(require("./CucumberQueryContext"));
31
+ exports.CucumberQueryContext = CucumberQueryContext_1.default;
32
+ const EnvelopesQueryContext_1 = __importStar(require("./EnvelopesQueryContext"));
33
+ exports.EnvelopesQueryContext = EnvelopesQueryContext_1.default;
34
+ Object.defineProperty(exports, "EnvelopesQuery", { enumerable: true, get: function () { return EnvelopesQueryContext_1.EnvelopesQuery; } });
35
+ const filterByStatus_1 = __importDefault(require("./filter/filterByStatus"));
36
+ exports.filterByStatus = filterByStatus_1.default;
37
+ const GherkinQueryContext_1 = __importDefault(require("./GherkinQueryContext"));
38
+ exports.GherkinQueryContext = GherkinQueryContext_1.default;
39
+ const SearchQueryContext_1 = __importStar(require("./SearchQueryContext"));
40
+ exports.SearchQueryContext = SearchQueryContext_1.default;
41
+ Object.defineProperty(exports, "searchFromURLParams", { enumerable: true, get: function () { return SearchQueryContext_1.searchFromURLParams; } });
42
+ exports.components = __importStar(require("./components/index"));
43
+ exports.hooks = __importStar(require("./hooks/index"));
44
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kFAAyD;AAcvD,+BAdK,8BAAoB,CAcL;AAbtB,iFAA+E;AAe7E,gCAfK,+BAAqB,CAeL;AADrB,+FAd8B,sCAAc,OAc9B;AAbhB,6EAAoD;AAelD,yBAfK,wBAAc,CAeL;AAdhB,gFAAuD;AAerD,8BAfK,6BAAmB,CAeL;AAdrB,2EAK6B;AAW3B,6BAhBK,4BAAkB,CAgBL;AADlB,oGAdA,wCAAmB,OAcA;AARrB,iEAAgD;AAChD,uDAAsC"}
@@ -0,0 +1,2 @@
1
+ export default function isTagExpression(expression: string): boolean;
2
+ //# sourceMappingURL=isTagExpression.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isTagExpression.d.ts","sourceRoot":"","sources":["../../src/isTagExpression.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAGnE"}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ function isTagExpression(expression) {
4
+ const tagExpression = /^\s*((@[^\s]+\s*)|(and\s+)|(or\s+)|(not\s+)|\(|\))+\s*$/;
5
+ return !!tagExpression.exec(expression);
6
+ }
7
+ exports.default = isTagExpression;
8
+ //# sourceMappingURL=isTagExpression.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isTagExpression.js","sourceRoot":"","sources":["../../src/isTagExpression.ts"],"names":[],"mappings":";;AAAA,SAAwB,eAAe,CAAC,UAAkB;IACxD,MAAM,aAAa,GAAG,yDAAyD,CAAA;IAC/E,OAAO,CAAC,CAAC,aAAa,CAAC,IAAI,CAAC,UAAU,CAAC,CAAA;AACzC,CAAC;AAHD,kCAGC"}
@@ -0,0 +1,8 @@
1
+ import * as messages from '@cucumber/messages';
2
+ export default class FeatureSearch {
3
+ private readonly featuresByUri;
4
+ private readonly index;
5
+ add(gherkinDocument: messages.GherkinDocument): void;
6
+ search(query: string): messages.Feature[];
7
+ }
8
+ //# sourceMappingURL=FeatureSearch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FeatureSearch.d.ts","sourceRoot":"","sources":["../../../src/search/FeatureSearch.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,oBAAoB,CAAA;AAS9C,MAAM,CAAC,OAAO,OAAO,aAAa;IAChC,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAsC;IACpE,OAAO,CAAC,QAAQ,CAAC,KAAK,CAKpB;IAEK,GAAG,CAAC,eAAe,EAAE,QAAQ,CAAC,eAAe;IAc7C,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,QAAQ,CAAC,OAAO,EAAE;CAcjD"}
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const elasticlunr_1 = __importDefault(require("elasticlunr"));
7
+ class FeatureSearch {
8
+ constructor() {
9
+ this.featuresByUri = new Map();
10
+ this.index = (0, elasticlunr_1.default)((ctx) => {
11
+ ctx.setRef('uri');
12
+ ctx.addField('name');
13
+ ctx.addField('description');
14
+ ctx.saveDocument(true);
15
+ });
16
+ }
17
+ add(gherkinDocument) {
18
+ if (!gherkinDocument.feature)
19
+ return;
20
+ if (!gherkinDocument.uri)
21
+ throw new Error('Missing uri on gherkinDocument');
22
+ this.featuresByUri.set(gherkinDocument.uri, gherkinDocument.feature);
23
+ this.index.addDoc({
24
+ uri: gherkinDocument.uri,
25
+ name: gherkinDocument.feature.name,
26
+ description: gherkinDocument.feature.description,
27
+ });
28
+ }
29
+ search(query) {
30
+ const searchResultsList = this.index.search(query, {
31
+ fields: {
32
+ name: { bool: 'OR', boost: 1 },
33
+ description: { bool: 'OR', boost: 1 },
34
+ },
35
+ });
36
+ return searchResultsList.map((searchResults) => {
37
+ const feature = this.featuresByUri.get(searchResults.ref);
38
+ if (!feature)
39
+ throw new Error(`No feature for ref ${searchResults.ref}`);
40
+ return feature;
41
+ });
42
+ }
43
+ }
44
+ exports.default = FeatureSearch;
45
+ //# sourceMappingURL=FeatureSearch.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FeatureSearch.js","sourceRoot":"","sources":["../../../src/search/FeatureSearch.ts"],"names":[],"mappings":";;;;;AACA,8DAAqC;AAQrC,MAAqB,aAAa;IAAlC;QACmB,kBAAa,GAAG,IAAI,GAAG,EAA4B,CAAA;QACnD,UAAK,GAAG,IAAA,qBAAW,EAAoB,CAAC,GAAG,EAAE,EAAE;YAC9D,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA;YACjB,GAAG,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAA;YACpB,GAAG,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAA;YAC3B,GAAG,CAAC,YAAY,CAAC,IAAI,CAAC,CAAA;QACxB,CAAC,CAAC,CAAA;IA8BJ,CAAC;IA5BQ,GAAG,CAAC,eAAyC;QAClD,IAAI,CAAC,eAAe,CAAC,OAAO;YAAE,OAAM;QAEpC,IAAI,CAAC,eAAe,CAAC,GAAG;YAAE,MAAM,IAAI,KAAK,CAAC,gCAAgC,CAAC,CAAA;QAE3E,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,eAAe,CAAC,GAAG,EAAE,eAAe,CAAC,OAAO,CAAC,CAAA;QAEpE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC;YAChB,GAAG,EAAE,eAAe,CAAC,GAAG;YACxB,IAAI,EAAE,eAAe,CAAC,OAAO,CAAC,IAAI;YAClC,WAAW,EAAE,eAAe,CAAC,OAAO,CAAC,WAAW;SACjD,CAAC,CAAA;IACJ,CAAC;IAEM,MAAM,CAAC,KAAa;QACzB,MAAM,iBAAiB,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,EAAE;YACjD,MAAM,EAAE;gBACN,IAAI,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,EAAE;gBAC9B,WAAW,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,EAAE;aACtC;SACF,CAAC,CAAA;QAEF,OAAO,iBAAiB,CAAC,GAAG,CAAC,CAAC,aAAa,EAAE,EAAE;YAC7C,MAAM,OAAO,GAAG,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,aAAa,CAAC,GAAG,CAAC,CAAA;YACzD,IAAI,CAAC,OAAO;gBAAE,MAAM,IAAI,KAAK,CAAC,sBAAsB,aAAa,CAAC,GAAG,EAAE,CAAC,CAAA;YACxE,OAAO,OAAO,CAAA;QAChB,CAAC,CAAC,CAAA;IACJ,CAAC;CACF;AArCD,gCAqCC"}
@@ -0,0 +1,9 @@
1
+ import * as messages from '@cucumber/messages';
2
+ export default class RuleSearch {
3
+ private readonly index;
4
+ private ruleById;
5
+ add(rule: messages.Rule): void;
6
+ search(query: string): messages.Rule[];
7
+ private get;
8
+ }
9
+ //# sourceMappingURL=RuleSearch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RuleSearch.d.ts","sourceRoot":"","sources":["../../../src/search/RuleSearch.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,oBAAoB,CAAA;AAS9C,MAAM,CAAC,OAAO,OAAO,UAAU;IAC7B,OAAO,CAAC,QAAQ,CAAC,KAAK,CAKpB;IACF,OAAO,CAAC,QAAQ,CAAmC;IAE5C,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,GAAG,IAAI;IAS9B,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,QAAQ,CAAC,IAAI,EAAE;IAW7C,OAAO,CAAC,GAAG;CAKZ"}
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const elasticlunr_1 = __importDefault(require("elasticlunr"));
7
+ class RuleSearch {
8
+ constructor() {
9
+ this.index = (0, elasticlunr_1.default)((ctx) => {
10
+ ctx.setRef('id');
11
+ ctx.addField('name');
12
+ ctx.addField('description');
13
+ ctx.saveDocument(true);
14
+ });
15
+ this.ruleById = new Map();
16
+ }
17
+ add(rule) {
18
+ this.index.addDoc({
19
+ id: rule.id,
20
+ name: rule.name,
21
+ description: rule.description,
22
+ });
23
+ this.ruleById.set(rule.id, rule);
24
+ }
25
+ search(query) {
26
+ const results = this.index.search(query, {
27
+ fields: {
28
+ name: { bool: 'OR', boost: 1 },
29
+ description: { bool: 'OR', boost: 1 },
30
+ },
31
+ });
32
+ return results.map((result) => this.get(result.ref));
33
+ }
34
+ get(ref) {
35
+ const rule = this.ruleById.get(ref);
36
+ if (!rule)
37
+ throw new Error(`No rule for ref ${ref}`);
38
+ return rule;
39
+ }
40
+ }
41
+ exports.default = RuleSearch;
42
+ //# sourceMappingURL=RuleSearch.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RuleSearch.js","sourceRoot":"","sources":["../../../src/search/RuleSearch.ts"],"names":[],"mappings":";;;;;AACA,8DAAqC;AAQrC,MAAqB,UAAU;IAA/B;QACmB,UAAK,GAAG,IAAA,qBAAW,EAAiB,CAAC,GAAG,EAAE,EAAE;YAC3D,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;YAChB,GAAG,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAA;YACpB,GAAG,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAA;YAC3B,GAAG,CAAC,YAAY,CAAC,IAAI,CAAC,CAAA;QACxB,CAAC,CAAC,CAAA;QACM,aAAQ,GAAG,IAAI,GAAG,EAAyB,CAAA;IA2BrD,CAAC;IAzBQ,GAAG,CAAC,IAAmB;QAC5B,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC;YAChB,EAAE,EAAE,IAAI,CAAC,EAAE;YACX,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,WAAW,EAAE,IAAI,CAAC,WAAW;SAC9B,CAAC,CAAA;QACF,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,CAAA;IAClC,CAAC;IAEM,MAAM,CAAC,KAAa;QACzB,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,EAAE;YACvC,MAAM,EAAE;gBACN,IAAI,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,EAAE;gBAC9B,WAAW,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,EAAE;aACtC;SACF,CAAC,CAAA;QAEF,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAA;IACtD,CAAC;IAEO,GAAG,CAAC,GAAW;QACrB,MAAM,IAAI,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;QACnC,IAAI,CAAC,IAAI;YAAE,MAAM,IAAI,KAAK,CAAC,mBAAmB,GAAG,EAAE,CAAC,CAAA;QACpD,OAAO,IAAI,CAAA;IACb,CAAC;CACF;AAlCD,6BAkCC"}
@@ -0,0 +1,9 @@
1
+ import * as messages from '@cucumber/messages';
2
+ export default class ScenarioSearch {
3
+ private readonly index;
4
+ private scenarioById;
5
+ add(scenario: messages.Scenario): void;
6
+ search(query: string): messages.Scenario[];
7
+ private get;
8
+ }
9
+ //# sourceMappingURL=ScenarioSearch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScenarioSearch.d.ts","sourceRoot":"","sources":["../../../src/search/ScenarioSearch.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,oBAAoB,CAAA;AAS9C,MAAM,CAAC,OAAO,OAAO,cAAc;IACjC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAKpB;IACF,OAAO,CAAC,YAAY,CAAuC;IAEpD,GAAG,CAAC,QAAQ,EAAE,QAAQ,CAAC,QAAQ,GAAG,IAAI;IAStC,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,QAAQ,CAAC,QAAQ,EAAE;IAWjD,OAAO,CAAC,GAAG;CAKZ"}
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const elasticlunr_1 = __importDefault(require("elasticlunr"));
7
+ class ScenarioSearch {
8
+ constructor() {
9
+ this.index = (0, elasticlunr_1.default)((ctx) => {
10
+ ctx.setRef('id');
11
+ ctx.addField('name');
12
+ ctx.addField('description');
13
+ ctx.saveDocument(true);
14
+ });
15
+ this.scenarioById = new Map();
16
+ }
17
+ add(scenario) {
18
+ this.index.addDoc({
19
+ id: scenario.id,
20
+ name: scenario.name,
21
+ description: scenario.description,
22
+ });
23
+ this.scenarioById.set(scenario.id, scenario);
24
+ }
25
+ search(query) {
26
+ const results = this.index.search(query, {
27
+ fields: {
28
+ name: { bool: 'OR', boost: 1 },
29
+ description: { bool: 'OR', boost: 1 },
30
+ },
31
+ });
32
+ return results.map((result) => this.get(result.ref));
33
+ }
34
+ get(ref) {
35
+ const rule = this.scenarioById.get(ref);
36
+ if (!rule)
37
+ throw new Error(`No scenario for ref ${ref}`);
38
+ return rule;
39
+ }
40
+ }
41
+ exports.default = ScenarioSearch;
42
+ //# sourceMappingURL=ScenarioSearch.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScenarioSearch.js","sourceRoot":"","sources":["../../../src/search/ScenarioSearch.ts"],"names":[],"mappings":";;;;;AACA,8DAAqC;AAQrC,MAAqB,cAAc;IAAnC;QACmB,UAAK,GAAG,IAAA,qBAAW,EAAqB,CAAC,GAAG,EAAE,EAAE;YAC/D,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;YAChB,GAAG,CAAC,QAAQ,C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+ import * as messages from '@cucumber/messages';
3
+ export default class Search {
4
+ private readonly gherkinQuery;
5
+ private readonly tagSearch;
6
+ private readonly textSearch;
7
+ constructor(gherkinQuery: GherkinQuery);
8
+ search(query: string): messages.GherkinDocument[];
9
+ add(gherkinDocument: messages.GherkinDocument): void;
10
+ }
11
+ //# sourceMappingURL=Search.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Search.d.ts","sourceRoot":"","sources":["../../../src/search/Search.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,YAAY,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,KAAK,QAAQ,MAAM,oBAAoB,CAAA;AAM9C,MAAM,CAAC,OAAO,OAAO,MAAM;IAIb,OAAO,CAAC,QAAQ,CAAC,YAAY;IAHzC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAW;IACrC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAmB;gBAEjB,YAAY,EAAE,YAAY;IAIhD,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,QAAQ,CAAC,eAAe,EAAE;IAYjD,GAAG,CAAC,eAAe,EAAE,QAAQ,CAAC,eAAe;CAIrD"}
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const isTagExpression_1 = __importDefault(require("../../src/isTagExpression"));
7
+ const TagSearch_1 = __importDefault(require("../../src/search/TagSearch"));
8
+ const TextSearch_1 = __importDefault(require("../../src/search/TextSearch"));
9
+ class Search {
10
+ constructor(gherkinQuery) {
11
+ this.gherkinQuery = gherkinQuery;
12
+ this.textSearch = new TextSearch_1.default();
13
+ this.tagSearch = new TagSearch_1.default(gherkinQuery);
14
+ }
15
+ search(query) {
16
+ if ((0, isTagExpression_1.default)(query)) {
17
+ try {
18
+ return this.tagSearch.search(query);
19
+ }
20
+ catch (_a) {
21
+ // No-op, we fall back to text search.
22
+ }
23
+ }
24
+ return this.textSearch.search(query);
25
+ }
26
+ add(gherkinDocument) {
27
+ this.tagSearch.add(gherkinDocument);
28
+ this.textSearch.add(gherkinDocument);
29
+ }
30
+ }
31
+ exports.default = Search;
32
+ //# sourceMappingURL=Search.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Search.js","sourceRoot":"","sources":["../../../src/search/Search.ts"],"names":[],"mappings":";;;;;AAGA,gFAAuD;AACvD,2EAAkD;AAClD,6EAAoD;AAEpD,MAAqB,MAAM;IAIzB,YAA6B,YAA0B;QAA1B,iBAAY,GAAZ,YAAY,CAAc;QAFtC,eAAU,GAAG,IAAI,oBAAU,EAAE,CAAA;QAG5C,IAAI,CAAC,SAAS,GAAG,IAAI,mBAAS,CAAC,YAAY,CAAC,CAAA;IAC9C,CAAC;IAEM,MAAM,CAAC,KAAa;QACzB,IAAI,IAAA,yBAAe,EAAC,KAAK,CAAC,EAAE;YAC1B,IAAI;gBACF,OAAO,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA;aACpC;YAAC,WAAM;gBACN,sCAAsC;aACvC;SACF;QAED,OAAO,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA;IACtC,CAAC;IAEM,GAAG,CAAC,eAAyC;QAClD,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,eAAe,CAAC,CAAA;QACnC,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,eAAe,CAAC,CAAA;IACtC,CAAC;CACF;AAxBD,yBAwBC"}
@@ -0,0 +1,11 @@
1
+ import * as messages from '@cucumber/messages';
2
+ export default class StepSearch {
3
+ private readonly index;
4
+ private stepById;
5
+ add(step: messages.Step): void;
6
+ search(query: string): messages.Step[];
7
+ private get;
8
+ private static docStringToString;
9
+ private static dataTableToString;
10
+ }
11
+ //# sourceMappingURL=StepSearch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StepSearch.d.ts","sourceRoot":"","sources":["../../../src/search/StepSearch.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,oBAAoB,CAAA;AAW9C,MAAM,CAAC,OAAO,OAAO,UAAU;IAC7B,OAAO,CAAC,QAAQ,CAAC,KAAK,CAOpB;IACF,OAAO,CAAC,QAAQ,CAAmC;IAE5C,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,GAAG,IAAI;IAa9B,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,QAAQ,CAAC,IAAI,EAAE;IAa7C,OAAO,CAAC,GAAG;IAMX,OAAO,CAAC,MAAM,CAAC,iBAAiB;IAIhC,OAAO,CAAC,MAAM,CAAC,iBAAiB;CAGjC"}
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const elasticlunr_1 = __importDefault(require("elasticlunr"));
7
+ class StepSearch {
8
+ constructor() {
9
+ this.index = (0, elasticlunr_1.default)((ctx) => {
10
+ ctx.addField('keyword');
11
+ ctx.addField('text');
12
+ ctx.addField('docString');
13
+ ctx.addField('dataTable');
14
+ ctx.setRef('id');
15
+ ctx.saveDocument(true);
16
+ });
17
+ this.stepById = new Map();
18
+ }
19
+ add(step) {
20
+ const doc = {
21
+ id: step.id,
22
+ keyword: step.keyword,
23
+ text: step.text,
24
+ docString: step.docString && StepSearch.docStringToString(step.docString),
25
+ dataTable: step.dataTable && StepSearch.dataTableToString(step.dataTable),
26
+ };
27
+ this.index.addDoc(doc);
28
+ this.stepById.set(step.id, step);
29
+ }
30
+ search(query) {
31
+ const results = this.index.search(query, {
32
+ fields: {
33
+ keyword: { bool: 'OR', boost: 1 },
34
+ text: { bool: 'OR', boost: 2 },
35
+ docString: { bool: 'OR', boost: 1 },
36
+ dataTable: { bool: 'OR', boost: 1 },
37
+ },
38
+ });
39
+ return results.map((result) => this.get(result.ref));
40
+ }
41
+ get(ref) {
42
+ const rule = this.stepById.get(ref);
43
+ if (!rule)
44
+ throw new Error(`No step for ref ${ref}`);
45
+ return rule;
46
+ }
47
+ static docStringToString(docString) {
48
+ return docString.content;
49
+ }
50
+ static dataTableToString(dataTable) {
51
+ return dataTable.rows.map((row) => row.cells.map((cell) => cell.value).join(' ')).join(' ');
52
+ }
53
+ }
54
+ exports.default = StepSearch;
55
+ //# sourceMappingURL=StepSearch.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StepSearch.js","sourceRoot":"","sources":["../../../src/search/StepSearch.ts"],"names":[],"mappings":";;;;;AACA,8DAAqC;AAUrC,MAAqB,UAAU;IAA/B;QACmB,UAAK,GAAG,IAAA,qBAAW,EAAiB,CAAC,GAAG,EAAE,EAAE;YAC3D,GAAG,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAA;YACvB,GAAG,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAA;YACpB,GAAG,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAA;YACzB,GAAG,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAA;YACzB,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;YAChB,GAAG,CAAC,YAAY,CAAC,IAAI,CAAC,CAAA;QACxB,CAAC,CAAC,CAAA;QACM,aAAQ,GAAG,IAAI,GAAG,EAAyB,CAAA;IAyCrD,CAAC;IAvCQ,GAAG,CAAC,IAAmB;QAC5B,MAAM,GAAG,GAAG;YACV,EAAE,EAAE,IAAI,CAAC,EAAE;YACX,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,SAAS,EAAE,IAAI,CAAC,SAAS,IAAI,UAAU,CAAC,iBAAiB,CAAC,IAAI,CAAC,SAAS,CAAC;YACzE,SAAS,EAAE,IAAI,CAAC,SAAS,IAAI,UAAU,CAAC,iBAAiB,CAAC,IAAI,CAA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AI,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;IAC7F,CAAC;CACF;AAlDD,6BAkDC"}
@@ -0,0 +1,12 @@
1
+ import { Query as GherkinQuery } from '@cucumber/gherkin-utils';
2
+ import * as messages from '@cucumber/messages';
3
+ export default class TagSearch {
4
+ private readonly gherkinQuery;
5
+ private readonly pickleById;
6
+ private readonly picklesByScenarioId;
7
+ private gherkinDocuments;
8
+ constructor(gherkinQuery: GherkinQuery);
9
+ search(query: string): messages.GherkinDocument[];
10
+ add(gherkinDocument: messages.GherkinDocument): void;
11
+ }
12
+ //# sourceMappingURL=TagSearch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TagSearch.d.ts","sourceRoot":"","sources":["../../../src/search/TagSearch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,YAAY,EAAE,MAAM,yBAAyB,CAAA;AAE/D,OAAO,KAAK,QAAQ,MAAM,oBAAoB,CAAA;AAK9C,MAAM,CAAC,OAAO,OAAO,SAAS;IAKhB,OAAO,CAAC,QAAQ,CAAC,YAAY;IAJzC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAqC;IAChE,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAA+C;IACnF,OAAO,CAAC,gBAAgB,CAAiC;gBAE5B,YAAY,EAAE,YAAY;IAIhD,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,QAAQ,CAAC,eAAe,EAAE;IAwBjD,GAAG,CAAC,eAAe,EAAE,QAAQ,CAAC,eAAe;CAsBrD"}
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const gherkin_utils_1 = require("@cucumber/gherkin-utils");
7
+ const tag_expressions_1 = __importDefault(require("@cucumber/tag-expressions"));
8
+ const multimaps_1 = require("@teppeis/multimaps");
9
+ class TagSearch {
10
+ constructor(gherkinQuery) {
11
+ this.gherkinQuery = gherkinQuery;
12
+ this.pickleById = new Map();
13
+ this.picklesByScenarioId = new multimaps_1.ArrayMultimap();
14
+ this.gherkinDocuments = [];
15
+ this.gherkinQuery = gherkinQuery;
16
+ }
17
+ search(query) {
18
+ const expressionNode = (0, tag_expressions_1.default)(query);
19
+ const tagFilters = {
20
+ acceptScenario: (scenario) => {
21
+ const pickles = this.picklesByScenarioId.get(scenario.id);
22
+ for (const pickle of pickles) {
23
+ const tags = pickle.tags.map((tag) => tag.name);
24
+ if (expressionNode.evaluate(tags)) {
25
+ return true;
26
+ }
27
+ }
28
+ return false;
29
+ },
30
+ };
31
+ const filters = Object.assign(Object.assign({}, gherkin_utils_1.rejectAllFilters), tagFilters);
32
+ const astWalker = new gherkin_utils_1.GherkinDocumentWalker(filters);
33
+ return this.gherkinDocuments
34
+ .map((gherkinDocument) => astWalker.walkGherkinDocument(gherkinDocument))
35
+ .filter((gherkinDocument) => gherkinDocument !== null);
36
+ }
37
+ add(gherkinDocument) {
38
+ this.gherkinDocuments.push(gherkinDocument);
39
+ const pickles = this.gherkinQuery.getPickles();
40
+ pickles.forEach((pickle) => this.pickleById.set(pickle.id, pickle));
41
+ const astWalker = new gherkin_utils_1.GherkinDocumentWalker({}, {
42
+ handleScenario: (scenario) => {
43
+ if (!gherkinDocument.uri)
44
+ throw new Error('No uri for gherkinDocument');
45
+ const pickleIds = this.gherkinQuery.getPickleIds(gherkinDocument.uri, scenario.id);
46
+ pickleIds.map((pickleId) => {
47
+ const pickle = this.pickleById.get(pickleId);
48
+ if (!pickle)
49
+ throw new Error(`No pickle for id=${pickleId}`);
50
+ this.picklesByScenarioId.put(scenario.id, pickle);
51
+ });
52
+ },
53
+ });
54
+ astWalker.walkGherkinDocument(gherkinDocument);
55
+ }
56
+ }
57
+ exports.default = TagSearch;
58
+ //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
+ private readonly backgroundSearch;
5
+ private readonly scenarioSearch;
6
+ private readonly stepSearch;
7
+ private readonly ruleSearch;
8
+ private readonly gherkinDocuments;
9
+ search(query: string): messages.GherkinDocument[];
10
+ add(gherkinDocument: messages.GherkinDocument): void;
11
+ }
12
+ //# sourceMappingURL=TextSearch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextSearch.d.ts","sourceRoot":"","sources":["../../../src/search/TextSearch.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,QAAQ,MAAM,oBAAoB,CAAA;AAQ9C,MAAM,CAAC,OAAO,OAAO,UAAU;IAC7B,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAsB;IACpD,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAuB;IACxD,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAuB;IACtD,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAmB;IAC9C,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAmB;IAE9C,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAiC;IAE3D,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,QAAQ,CAAC,eAAe,EAAE;IAuBjD,GAAG,CAAC,eAAe,EAAE,QAAQ,CAAC,eAAe;CAerD"}