@looker/api-explorer 0.9.19 → 0.9.25

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 (699) hide show
  1. package/CHANGELOG.md +135 -1
  2. package/e2e/e2e.spec.ts +6 -5
  3. package/lib/ApiExplorer.d.ts +7 -38
  4. package/lib/ApiExplorer.js +90 -71
  5. package/lib/ApiExplorer.js.map +1 -1
  6. package/lib/App.d.ts +1 -0
  7. package/lib/App.js +29 -0
  8. package/lib/App.js.map +1 -0
  9. package/lib/StandaloneApiExplorer.d.ts +1 -1
  10. package/lib/StandaloneApiExplorer.js +10 -21
  11. package/lib/StandaloneApiExplorer.js.map +1 -1
  12. package/lib/components/DocActivityType/DocActivityType.d.ts +2 -2
  13. package/lib/components/DocActivityType/DocActivityType.js.map +1 -1
  14. package/lib/components/DocCode/DocCode.d.ts +1 -1
  15. package/lib/components/DocCode/DocCode.js +6 -10
  16. package/lib/components/DocCode/DocCode.js.map +1 -1
  17. package/lib/components/DocMarkdown/DocMarkdown.d.ts +1 -1
  18. package/lib/components/DocMarkdown/DocMarkdown.js +13 -15
  19. package/lib/components/DocMarkdown/DocMarkdown.js.map +1 -1
  20. package/lib/components/DocMethodSummary/DocMethodSummary.d.ts +2 -2
  21. package/lib/components/DocMethodSummary/DocMethodSummary.js +1 -1
  22. package/lib/components/DocMethodSummary/DocMethodSummary.js.map +1 -1
  23. package/lib/components/DocMethodSummary/DocSummaryStatus.d.ts +2 -3
  24. package/lib/components/DocMethodSummary/DocSummaryStatus.js +3 -3
  25. package/lib/components/DocMethodSummary/DocSummaryStatus.js.map +1 -1
  26. package/lib/components/DocMethodSummary/index.d.ts +1 -0
  27. package/lib/components/DocMethodSummary/index.js +8 -0
  28. package/lib/components/DocMethodSummary/index.js.map +1 -1
  29. package/lib/components/DocMethodSummary/utils.d.ts +2 -1
  30. package/lib/components/DocMethodSummary/utils.js +24 -15
  31. package/lib/components/DocMethodSummary/utils.js.map +1 -1
  32. package/lib/components/DocPseudo/DocParam.d.ts +2 -2
  33. package/lib/components/DocPseudo/DocParam.js.map +1 -1
  34. package/lib/components/DocPseudo/DocParams.d.ts +2 -2
  35. package/lib/components/DocPseudo/DocParams.js.map +1 -1
  36. package/lib/components/DocPseudo/DocPrimaryResponse.d.ts +2 -2
  37. package/lib/components/DocPseudo/DocPrimaryResponse.js.map +1 -1
  38. package/lib/components/DocPseudo/DocPseudo.d.ts +2 -2
  39. package/lib/components/DocPseudo/DocPseudo.js.map +1 -1
  40. package/lib/components/DocRateLimited/DocRateLimited.d.ts +2 -2
  41. package/lib/components/DocRateLimited/DocRateLimited.js.map +1 -1
  42. package/lib/components/DocReferences/DocReferences.d.ts +2 -2
  43. package/lib/components/DocReferences/DocReferences.js +7 -11
  44. package/lib/components/DocReferences/DocReferences.js.map +1 -1
  45. package/lib/components/DocReferences/utils.d.ts +2 -2
  46. package/lib/components/DocReferences/utils.js +2 -28
  47. package/lib/components/DocReferences/utils.js.map +1 -1
  48. package/lib/components/DocResponses/DocResponseTypes.d.ts +3 -2
  49. package/lib/components/DocResponses/DocResponseTypes.js +3 -1
  50. package/lib/components/DocResponses/DocResponseTypes.js.map +1 -1
  51. package/lib/components/DocResponses/DocResponses.d.ts +3 -2
  52. package/lib/components/DocResponses/DocResponses.js +2 -0
  53. package/lib/components/DocResponses/DocResponses.js.map +1 -1
  54. package/lib/components/DocResponses/utils.d.ts +1 -1
  55. package/lib/components/DocResponses/utils.js.map +1 -1
  56. package/lib/components/DocSDKs/DocDeclarations.d.ts +2 -2
  57. package/lib/components/DocSDKs/DocDeclarations.js.map +1 -1
  58. package/lib/components/DocSDKs/DocSDKs.d.ts +2 -2
  59. package/lib/components/DocSDKs/DocSDKs.js +1 -1
  60. package/lib/components/DocSDKs/DocSDKs.js.map +1 -1
  61. package/lib/components/DocSDKs/utils.d.ts +1 -1
  62. package/lib/components/DocSDKs/utils.js.map +1 -1
  63. package/lib/components/DocSchema/DocSchema.d.ts +1 -1
  64. package/lib/components/DocSchema/DocSchema.js.map +1 -1
  65. package/lib/components/DocSdkUsage/DocSdkExampleCell.d.ts +1 -1
  66. package/lib/components/DocSdkUsage/DocSdkExampleCell.js.map +1 -1
  67. package/lib/components/DocSdkUsage/DocSdkUsage.d.ts +2 -2
  68. package/lib/components/DocSdkUsage/DocSdkUsage.js +4 -7
  69. package/lib/components/DocSdkUsage/DocSdkUsage.js.map +1 -1
  70. package/lib/components/DocSdkUsage/utils.d.ts +2 -2
  71. package/lib/components/DocSdkUsage/utils.js.map +1 -1
  72. package/lib/components/DocSource/DocSource.d.ts +2 -2
  73. package/lib/components/DocSource/DocSource.js +5 -7
  74. package/lib/components/DocSource/DocSource.js.map +1 -1
  75. package/lib/components/DocStatus/DocStatus.d.ts +2 -2
  76. package/lib/components/DocStatus/DocStatus.js.map +1 -1
  77. package/lib/components/DocTitle/DocTitle.d.ts +1 -1
  78. package/lib/components/DocTitle/DocTitle.js.map +1 -1
  79. package/lib/components/DocTypeSummary/DocTypeSummary.d.ts +7 -0
  80. package/lib/components/DocTypeSummary/DocTypeSummary.js +52 -0
  81. package/lib/components/DocTypeSummary/DocTypeSummary.js.map +1 -0
  82. package/lib/components/DocTypeSummary/index.d.ts +1 -0
  83. package/lib/components/DocTypeSummary/index.js +14 -0
  84. package/lib/components/DocTypeSummary/index.js.map +1 -0
  85. package/lib/components/ErrorBoundary/ErrorBoundary.js +1 -1
  86. package/lib/components/ErrorBoundary/ErrorBoundary.js.map +1 -1
  87. package/lib/components/ErrorBoundary/components/SomethingWentWrong/components/SomethingWentWrongGraphic/SomethingWentWrongGraphic.d.ts +1 -1
  88. package/lib/components/ErrorBoundary/components/SomethingWentWrong/components/SomethingWentWrongGraphic/SomethingWentWrongGraphic.js +152 -8
  89. package/lib/components/ErrorBoundary/components/SomethingWentWrong/components/SomethingWentWrongGraphic/SomethingWentWrongGraphic.js.map +1 -1
  90. package/lib/components/ExploreType/ExploreProperty.d.ts +10 -7
  91. package/lib/components/ExploreType/ExploreProperty.js +14 -3
  92. package/lib/components/ExploreType/ExploreProperty.js.map +1 -1
  93. package/lib/components/ExploreType/ExploreType.d.ts +4 -2
  94. package/lib/components/ExploreType/ExploreType.js +9 -5
  95. package/lib/components/ExploreType/ExploreType.js.map +1 -1
  96. package/lib/components/ExploreType/exploreUtils.d.ts +2 -2
  97. package/lib/components/ExploreType/exploreUtils.js.map +1 -1
  98. package/lib/components/Header/Header.d.ts +5 -4
  99. package/lib/components/Header/Header.js +4 -2
  100. package/lib/components/Header/Header.js.map +1 -1
  101. package/lib/components/Header/index.d.ts +1 -1
  102. package/lib/components/Header/index.js +6 -0
  103. package/lib/components/Header/index.js.map +1 -1
  104. package/lib/components/SelectorContainer/ApiSpecSelector.d.ts +3 -3
  105. package/lib/components/SelectorContainer/ApiSpecSelector.js +3 -1
  106. package/lib/components/SelectorContainer/ApiSpecSelector.js.map +1 -1
  107. package/lib/components/SelectorContainer/SdkLanguageSelector.d.ts +1 -1
  108. package/lib/components/SelectorContainer/SdkLanguageSelector.js +7 -17
  109. package/lib/components/SelectorContainer/SdkLanguageSelector.js.map +1 -1
  110. package/lib/components/SelectorContainer/SelectorContainer.d.ts +5 -4
  111. package/lib/components/SelectorContainer/SelectorContainer.js +11 -3
  112. package/lib/components/SelectorContainer/SelectorContainer.js.map +1 -1
  113. package/lib/components/SideNav/SearchMessage.d.ts +2 -2
  114. package/lib/components/SideNav/SearchMessage.js.map +1 -1
  115. package/lib/components/SideNav/SideNav.d.ts +3 -3
  116. package/lib/components/SideNav/SideNav.js +93 -56
  117. package/lib/components/SideNav/SideNav.js.map +1 -1
  118. package/lib/components/SideNav/SideNavMethodTags.d.ts +10 -0
  119. package/lib/components/SideNav/{SideNavTags.js → SideNavMethodTags.js} +6 -6
  120. package/lib/components/SideNav/SideNavMethodTags.js.map +1 -0
  121. package/lib/components/SideNav/SideNavMethods.d.ts +5 -4
  122. package/lib/components/SideNav/SideNavMethods.js +9 -11
  123. package/lib/components/SideNav/SideNavMethods.js.map +1 -1
  124. package/lib/components/SideNav/SideNavTypeTags.d.ts +10 -0
  125. package/lib/components/SideNav/SideNavTypeTags.js +42 -0
  126. package/lib/components/SideNav/SideNavTypeTags.js.map +1 -0
  127. package/lib/components/SideNav/SideNavTypes.d.ts +8 -5
  128. package/lib/components/SideNav/SideNavTypes.js +83 -32
  129. package/lib/components/SideNav/SideNavTypes.js.map +1 -1
  130. package/lib/components/SideNav/searchUtils.d.ts +2 -2
  131. package/lib/components/SideNav/searchUtils.js +1 -1
  132. package/lib/components/SideNav/searchUtils.js.map +1 -1
  133. package/lib/components/common/Loader.d.ts +2 -2
  134. package/lib/components/common/Loader.js.map +1 -1
  135. package/lib/components/common/common.d.ts +2 -2
  136. package/lib/components/common/common.js +2 -1
  137. package/lib/components/common/common.js.map +1 -1
  138. package/lib/components/index.d.ts +4 -2
  139. package/lib/components/index.js +28 -0
  140. package/lib/components/index.js.map +1 -1
  141. package/lib/esm/ApiExplorer.js +94 -77
  142. package/lib/esm/ApiExplorer.js.map +1 -1
  143. package/lib/esm/App.js +19 -0
  144. package/lib/esm/App.js.map +1 -0
  145. package/lib/esm/StandaloneApiExplorer.js +9 -18
  146. package/lib/esm/StandaloneApiExplorer.js.map +1 -1
  147. package/lib/esm/components/DocActivityType/DocActivityType.js.map +1 -1
  148. package/lib/esm/components/DocCode/DocCode.js +5 -8
  149. package/lib/esm/components/DocCode/DocCode.js.map +1 -1
  150. package/lib/esm/components/DocMarkdown/DocMarkdown.js +10 -12
  151. package/lib/esm/components/DocMarkdown/DocMarkdown.js.map +1 -1
  152. package/lib/esm/components/DocMethodSummary/DocMethodSummary.js +1 -1
  153. package/lib/esm/components/DocMethodSummary/DocMethodSummary.js.map +1 -1
  154. package/lib/esm/components/DocMethodSummary/DocSummaryStatus.js +3 -3
  155. package/lib/esm/components/DocMethodSummary/DocSummaryStatus.js.map +1 -1
  156. package/lib/esm/components/DocMethodSummary/index.js +1 -0
  157. package/lib/esm/components/DocMethodSummary/index.js.map +1 -1
  158. package/lib/esm/components/DocMethodSummary/utils.js +24 -15
  159. package/lib/esm/components/DocMethodSummary/utils.js.map +1 -1
  160. package/lib/esm/components/DocPseudo/DocParam.js.map +1 -1
  161. package/lib/esm/components/DocPseudo/DocParams.js.map +1 -1
  162. package/lib/esm/components/DocPseudo/DocPrimaryResponse.js.map +1 -1
  163. package/lib/esm/components/DocPseudo/DocPseudo.js.map +1 -1
  164. package/lib/esm/components/DocRateLimited/DocRateLimited.js.map +1 -1
  165. package/lib/esm/components/DocReferences/DocReferences.js +5 -8
  166. package/lib/esm/components/DocReferences/DocReferences.js.map +1 -1
  167. package/lib/esm/components/DocReferences/utils.js +1 -24
  168. package/lib/esm/components/DocReferences/utils.js.map +1 -1
  169. package/lib/esm/components/DocResponses/DocResponseTypes.js +3 -1
  170. package/lib/esm/components/DocResponses/DocResponseTypes.js.map +1 -1
  171. package/lib/esm/components/DocResponses/DocResponses.js +2 -0
  172. package/lib/esm/components/DocResponses/DocResponses.js.map +1 -1
  173. package/lib/esm/components/DocResponses/utils.js.map +1 -1
  174. package/lib/esm/components/DocSDKs/DocDeclarations.js.map +1 -1
  175. package/lib/esm/components/DocSDKs/DocSDKs.js +2 -2
  176. package/lib/esm/components/DocSDKs/DocSDKs.js.map +1 -1
  177. package/lib/esm/components/DocSDKs/utils.js.map +1 -1
  178. package/lib/esm/components/DocSchema/DocSchema.js.map +1 -1
  179. package/lib/esm/components/DocSdkUsage/DocSdkExampleCell.js.map +1 -1
  180. package/lib/esm/components/DocSdkUsage/DocSdkUsage.js +6 -8
  181. package/lib/esm/components/DocSdkUsage/DocSdkUsage.js.map +1 -1
  182. package/lib/esm/components/DocSdkUsage/utils.js.map +1 -1
  183. package/lib/esm/components/DocSource/DocSource.js +4 -5
  184. package/lib/esm/components/DocSource/DocSource.js.map +1 -1
  185. package/lib/esm/components/DocStatus/DocStatus.js.map +1 -1
  186. package/lib/esm/components/DocTitle/DocTitle.js.map +1 -1
  187. package/lib/esm/components/DocTypeSummary/DocTypeSummary.js +38 -0
  188. package/lib/esm/components/DocTypeSummary/DocTypeSummary.js.map +1 -0
  189. package/lib/esm/components/DocTypeSummary/index.js +2 -0
  190. package/lib/{state/action_creators.js.map → esm/components/DocTypeSummary/index.js.map} +1 -1
  191. package/lib/esm/components/ErrorBoundary/ErrorBoundary.js +1 -1
  192. package/lib/esm/components/ErrorBoundary/ErrorBoundary.js.map +1 -1
  193. package/lib/esm/components/ErrorBoundary/components/SomethingWentWrong/components/SomethingWentWrongGraphic/SomethingWentWrongGraphic.js +153 -6
  194. package/lib/esm/components/ErrorBoundary/components/SomethingWentWrong/components/SomethingWentWrongGraphic/SomethingWentWrongGraphic.js.map +1 -1
  195. package/lib/esm/components/ExploreType/ExploreProperty.js +14 -3
  196. package/lib/esm/components/ExploreType/ExploreProperty.js.map +1 -1
  197. package/lib/esm/components/ExploreType/ExploreType.js +8 -4
  198. package/lib/esm/components/ExploreType/ExploreType.js.map +1 -1
  199. package/lib/esm/components/ExploreType/exploreUtils.js.map +1 -1
  200. package/lib/esm/components/Header/Header.js +2 -1
  201. package/lib/esm/components/Header/Header.js.map +1 -1
  202. package/lib/esm/components/Header/index.js +1 -1
  203. package/lib/esm/components/Header/index.js.map +1 -1
  204. package/lib/esm/components/SelectorContainer/ApiSpecSelector.js +4 -2
  205. package/lib/esm/components/SelectorContainer/ApiSpecSelector.js.map +1 -1
  206. package/lib/esm/components/SelectorContainer/SdkLanguageSelector.js +7 -12
  207. package/lib/esm/components/SelectorContainer/SdkLanguageSelector.js.map +1 -1
  208. package/lib/esm/components/SelectorContainer/SelectorContainer.js +11 -3
  209. package/lib/esm/components/SelectorContainer/SelectorContainer.js.map +1 -1
  210. package/lib/esm/components/SideNav/SearchMessage.js.map +1 -1
  211. package/lib/esm/components/SideNav/SideNav.js +95 -57
  212. package/lib/esm/components/SideNav/SideNav.js.map +1 -1
  213. package/lib/esm/components/SideNav/{SideNavTags.js → SideNavMethodTags.js} +4 -4
  214. package/lib/esm/components/SideNav/SideNavMethodTags.js.map +1 -0
  215. package/lib/esm/components/SideNav/SideNavMethods.js +9 -12
  216. package/lib/esm/components/SideNav/SideNavMethods.js.map +1 -1
  217. package/lib/esm/components/SideNav/SideNavTypeTags.js +29 -0
  218. package/lib/esm/components/SideNav/SideNavTypeTags.js.map +1 -0
  219. package/lib/esm/components/SideNav/SideNavTypes.js +84 -33
  220. package/lib/esm/components/SideNav/SideNavTypes.js.map +1 -1
  221. package/lib/esm/components/SideNav/searchUtils.js +1 -1
  222. package/lib/esm/components/SideNav/searchUtils.js.map +1 -1
  223. package/lib/esm/components/common/Loader.js.map +1 -1
  224. package/lib/esm/components/common/common.js +2 -1
  225. package/lib/esm/components/common/common.js.map +1 -1
  226. package/lib/esm/components/index.js +4 -2
  227. package/lib/esm/components/index.js.map +1 -1
  228. package/lib/esm/index.js +4 -18
  229. package/lib/esm/index.js.map +1 -1
  230. package/lib/esm/reducers/index.js +0 -1
  231. package/lib/esm/reducers/index.js.map +1 -1
  232. package/lib/esm/reducers/spec/actions.js.map +1 -1
  233. package/lib/esm/reducers/spec/reducer.js.map +1 -1
  234. package/lib/esm/reducers/spec/utils.js +7 -1
  235. package/lib/esm/reducers/spec/utils.js.map +1 -1
  236. package/lib/esm/routes/AppRouter.js +13 -15
  237. package/lib/esm/routes/AppRouter.js.map +1 -1
  238. package/lib/esm/scenes/DiffScene/DiffScene.js +65 -11
  239. package/lib/esm/scenes/DiffScene/DiffScene.js.map +1 -1
  240. package/lib/esm/scenes/DiffScene/DocDiff/DiffBanner.js.map +1 -1
  241. package/lib/esm/scenes/DiffScene/DocDiff/DiffItem.js +2 -2
  242. package/lib/esm/scenes/DiffScene/DocDiff/DiffItem.js.map +1 -1
  243. package/lib/esm/scenes/DiffScene/DocDiff/DiffLegend.js.map +1 -1
  244. package/lib/esm/scenes/DiffScene/DocDiff/DocDiff.js.map +1 -1
  245. package/lib/esm/scenes/DiffScene/DocDiff/docDiffUtils.js.map +1 -1
  246. package/lib/esm/scenes/DiffScene/diffUtils.js.map +1 -1
  247. package/lib/esm/scenes/HomeScene/HomeScene.js.map +1 -1
  248. package/lib/esm/scenes/MethodScene/MethodScene.js +41 -23
  249. package/lib/esm/scenes/MethodScene/MethodScene.js.map +1 -1
  250. package/lib/esm/scenes/MethodScene/components/DocOperation.js.map +1 -1
  251. package/lib/esm/scenes/MethodScene/components/DocRequestBody.js +3 -1
  252. package/lib/esm/scenes/MethodScene/components/DocRequestBody.js.map +1 -1
  253. package/lib/esm/scenes/{TagScene/TagScene.js → MethodTagScene/MethodTagScene.js} +16 -11
  254. package/lib/esm/scenes/MethodTagScene/MethodTagScene.js.map +1 -0
  255. package/lib/esm/scenes/MethodTagScene/index.js +2 -0
  256. package/lib/{state/reducers.js.map → esm/scenes/MethodTagScene/index.js.map} +1 -1
  257. package/lib/esm/scenes/{TagScene → MethodTagScene}/utils.js +0 -0
  258. package/lib/esm/scenes/MethodTagScene/utils.js.map +1 -0
  259. package/lib/esm/scenes/TypeScene/TypeScene.js +14 -7
  260. package/lib/esm/scenes/TypeScene/TypeScene.js.map +1 -1
  261. package/lib/esm/scenes/TypeTagScene/TypeTagScene.js +57 -0
  262. package/lib/esm/scenes/TypeTagScene/TypeTagScene.js.map +1 -0
  263. package/lib/esm/scenes/TypeTagScene/index.js +2 -0
  264. package/lib/esm/scenes/TypeTagScene/index.js.map +1 -0
  265. package/lib/esm/scenes/TypeTagScene/utils.js +8 -0
  266. package/lib/esm/scenes/TypeTagScene/utils.js.map +1 -0
  267. package/lib/esm/scenes/index.js +2 -1
  268. package/lib/esm/scenes/index.js.map +1 -1
  269. package/lib/esm/state/index.js +2 -3
  270. package/lib/esm/state/index.js.map +1 -1
  271. package/lib/esm/state/lodes/index.js +3 -0
  272. package/lib/esm/state/lodes/index.js.map +1 -0
  273. package/lib/esm/state/lodes/sagas.js +25 -0
  274. package/lib/esm/state/lodes/sagas.js.map +1 -0
  275. package/lib/esm/state/lodes/selectors.js +5 -0
  276. package/lib/esm/state/lodes/selectors.js.map +1 -0
  277. package/lib/esm/state/lodes/slice.js +30 -0
  278. package/lib/esm/state/lodes/slice.js.map +1 -0
  279. package/lib/esm/state/settings/index.js +1 -1
  280. package/lib/esm/state/settings/index.js.map +1 -1
  281. package/lib/esm/state/settings/sagas.js +59 -0
  282. package/lib/esm/state/settings/sagas.js.map +1 -0
  283. package/lib/esm/state/settings/selectors.js +6 -1
  284. package/lib/esm/state/settings/selectors.js.map +1 -1
  285. package/lib/esm/state/settings/slice.js +50 -0
  286. package/lib/esm/state/settings/slice.js.map +1 -0
  287. package/lib/esm/state/store.js +13 -3
  288. package/lib/esm/state/store.js.map +1 -1
  289. package/lib/esm/test-utils/index.js +3 -4
  290. package/lib/esm/test-utils/index.js.map +1 -1
  291. package/lib/esm/test-utils/lodes.js +12 -0
  292. package/lib/esm/test-utils/lodes.js.map +1 -0
  293. package/lib/esm/test-utils/redux.js +30 -15
  294. package/lib/esm/test-utils/redux.js.map +1 -1
  295. package/lib/esm/test-utils/router.js.map +1 -1
  296. package/lib/esm/utils/index.js +1 -2
  297. package/lib/esm/utils/index.js.map +1 -1
  298. package/lib/esm/utils/lodeUtils.js +3 -7
  299. package/lib/esm/utils/lodeUtils.js.map +1 -1
  300. package/lib/esm/utils/path.js +32 -1
  301. package/lib/esm/utils/path.js.map +1 -1
  302. package/lib/index.d.ts +4 -1
  303. package/lib/index.js +52 -23
  304. package/lib/index.js.map +1 -1
  305. package/lib/reducers/index.d.ts +0 -1
  306. package/lib/reducers/index.js +0 -13
  307. package/lib/reducers/index.js.map +1 -1
  308. package/lib/reducers/spec/actions.d.ts +1 -1
  309. package/lib/reducers/spec/actions.js.map +1 -1
  310. package/lib/reducers/spec/reducer.d.ts +2 -2
  311. package/lib/reducers/spec/reducer.js.map +1 -1
  312. package/lib/reducers/spec/utils.d.ts +3 -3
  313. package/lib/reducers/spec/utils.js +7 -1
  314. package/lib/reducers/spec/utils.js.map +1 -1
  315. package/lib/routes/AppRouter.d.ts +5 -5
  316. package/lib/routes/AppRouter.js +12 -17
  317. package/lib/routes/AppRouter.js.map +1 -1
  318. package/lib/scenes/DiffScene/DiffScene.d.ts +2 -2
  319. package/lib/scenes/DiffScene/DiffScene.js +65 -11
  320. package/lib/scenes/DiffScene/DiffScene.js.map +1 -1
  321. package/lib/scenes/DiffScene/DocDiff/DiffBanner.d.ts +2 -2
  322. package/lib/scenes/DiffScene/DocDiff/DiffBanner.js.map +1 -1
  323. package/lib/scenes/DiffScene/DocDiff/DiffItem.d.ts +3 -3
  324. package/lib/scenes/DiffScene/DocDiff/DiffItem.js +1 -1
  325. package/lib/scenes/DiffScene/DocDiff/DiffItem.js.map +1 -1
  326. package/lib/scenes/DiffScene/DocDiff/DiffLegend.d.ts +2 -2
  327. package/lib/scenes/DiffScene/DocDiff/DiffLegend.js.map +1 -1
  328. package/lib/scenes/DiffScene/DocDiff/DocDiff.d.ts +2 -2
  329. package/lib/scenes/DiffScene/DocDiff/DocDiff.js.map +1 -1
  330. package/lib/scenes/DiffScene/DocDiff/docDiffUtils.d.ts +1 -1
  331. package/lib/scenes/DiffScene/DocDiff/docDiffUtils.js.map +1 -1
  332. package/lib/scenes/DiffScene/diffUtils.d.ts +1 -1
  333. package/lib/scenes/DiffScene/diffUtils.js.map +1 -1
  334. package/lib/scenes/HomeScene/HomeScene.d.ts +2 -2
  335. package/lib/scenes/HomeScene/HomeScene.js.map +1 -1
  336. package/lib/scenes/MethodScene/MethodScene.d.ts +5 -5
  337. package/lib/scenes/MethodScene/MethodScene.js +37 -20
  338. package/lib/scenes/MethodScene/MethodScene.js.map +1 -1
  339. package/lib/scenes/MethodScene/components/DocOperation.d.ts +2 -2
  340. package/lib/scenes/MethodScene/components/DocOperation.js.map +1 -1
  341. package/lib/scenes/MethodScene/components/DocRequestBody.d.ts +3 -2
  342. package/lib/scenes/MethodScene/components/DocRequestBody.js +3 -1
  343. package/lib/scenes/MethodScene/components/DocRequestBody.js.map +1 -1
  344. package/lib/scenes/MethodTagScene/MethodTagScene.d.ts +7 -0
  345. package/lib/scenes/{TagScene/TagScene.js → MethodTagScene/MethodTagScene.js} +19 -14
  346. package/lib/scenes/MethodTagScene/MethodTagScene.js.map +1 -0
  347. package/lib/scenes/MethodTagScene/index.d.ts +1 -0
  348. package/lib/scenes/MethodTagScene/index.js +14 -0
  349. package/lib/{context/search/SearchContext.js.map → scenes/MethodTagScene/index.js.map} +1 -1
  350. package/lib/scenes/{TagScene → MethodTagScene}/utils.d.ts +1 -1
  351. package/lib/scenes/{TagScene → MethodTagScene}/utils.js +0 -0
  352. package/lib/{context/lode/index.js.map → scenes/MethodTagScene/utils.js.map} +1 -1
  353. package/lib/scenes/TypeScene/TypeScene.d.ts +2 -2
  354. package/lib/scenes/TypeScene/TypeScene.js +16 -7
  355. package/lib/scenes/TypeScene/TypeScene.js.map +1 -1
  356. package/lib/scenes/TypeTagScene/TypeTagScene.d.ts +7 -0
  357. package/lib/scenes/TypeTagScene/TypeTagScene.js +76 -0
  358. package/lib/scenes/TypeTagScene/TypeTagScene.js.map +1 -0
  359. package/lib/scenes/TypeTagScene/index.d.ts +1 -0
  360. package/lib/scenes/TypeTagScene/index.js +14 -0
  361. package/lib/{esm/state/settings/actions.js.map → scenes/TypeTagScene/index.js.map} +1 -1
  362. package/lib/scenes/TypeTagScene/utils.d.ts +2 -0
  363. package/lib/scenes/TypeTagScene/utils.js +17 -0
  364. package/lib/scenes/TypeTagScene/utils.js.map +1 -0
  365. package/lib/scenes/index.d.ts +2 -1
  366. package/lib/scenes/index.js +11 -3
  367. package/lib/scenes/index.js.map +1 -1
  368. package/lib/state/index.d.ts +2 -2
  369. package/lib/state/index.js +15 -16
  370. package/lib/state/index.js.map +1 -1
  371. package/lib/state/lodes/index.d.ts +2 -0
  372. package/lib/{reducers/search → state/lodes}/index.js +8 -8
  373. package/lib/state/lodes/index.js.map +1 -0
  374. package/lib/state/lodes/sagas.d.ts +1 -0
  375. package/lib/state/lodes/sagas.js +34 -0
  376. package/lib/state/lodes/sagas.js.map +1 -0
  377. package/lib/state/lodes/selectors.d.ts +3 -0
  378. package/lib/state/lodes/selectors.js +17 -0
  379. package/lib/state/lodes/selectors.js.map +1 -0
  380. package/lib/state/lodes/slice.d.ts +29 -0
  381. package/lib/state/lodes/slice.js +45 -0
  382. package/lib/state/lodes/slice.js.map +1 -0
  383. package/lib/state/settings/index.d.ts +1 -1
  384. package/lib/state/settings/index.js +8 -8
  385. package/lib/state/settings/index.js.map +1 -1
  386. package/lib/state/settings/sagas.d.ts +1 -0
  387. package/lib/state/settings/sagas.js +69 -0
  388. package/lib/state/settings/sagas.js.map +1 -0
  389. package/lib/state/settings/selectors.d.ts +5 -2
  390. package/lib/state/settings/selectors.js +17 -3
  391. package/lib/state/settings/selectors.js.map +1 -1
  392. package/lib/state/settings/slice.d.ts +42 -0
  393. package/lib/state/settings/slice.js +69 -0
  394. package/lib/state/settings/slice.js.map +1 -0
  395. package/lib/state/store.d.ts +10 -6
  396. package/lib/state/store.js +15 -5
  397. package/lib/state/store.js.map +1 -1
  398. package/lib/test-data/declarations.js +24 -0
  399. package/lib/test-data/declarations.js.map +1 -0
  400. package/lib/test-data/examples.js.map +1 -1
  401. package/lib/test-data/index.js +23 -0
  402. package/lib/test-data/index.js.map +1 -1
  403. package/lib/test-data/specs.js.map +1 -1
  404. package/lib/test-utils/index.d.ts +3 -4
  405. package/lib/test-utils/index.js +33 -56
  406. package/lib/test-utils/index.js.map +1 -1
  407. package/lib/test-utils/lodes.d.ts +4 -0
  408. package/lib/test-utils/lodes.js +23 -0
  409. package/lib/test-utils/lodes.js.map +1 -0
  410. package/lib/test-utils/redux.d.ts +16 -12
  411. package/lib/test-utils/redux.js +36 -17
  412. package/lib/test-utils/redux.js.map +1 -1
  413. package/lib/test-utils/router.d.ts +2 -2
  414. package/lib/test-utils/router.js.map +1 -1
  415. package/lib/utils/highlight.d.ts +1 -0
  416. package/lib/utils/index.d.ts +1 -2
  417. package/lib/utils/index.js +6 -23
  418. package/lib/utils/index.js.map +1 -1
  419. package/lib/utils/lodeUtils.d.ts +3 -3
  420. package/lib/utils/lodeUtils.js +3 -7
  421. package/lib/utils/lodeUtils.js.map +1 -1
  422. package/lib/utils/path.d.ts +3 -1
  423. package/lib/utils/path.js +36 -2
  424. package/lib/utils/path.js.map +1 -1
  425. package/package.json +22 -16
  426. package/public/Looker.3.1.json +1343 -412
  427. package/public/Looker.4.0.json +3305 -661
  428. package/src/ApiExplorer.tsx +158 -99
  429. package/src/{index.tsx → App.tsx} +1 -1
  430. package/src/StandaloneApiExplorer.tsx +13 -25
  431. package/src/components/DocActivityType/DocActivityType.tsx +3 -2
  432. package/src/components/DocCode/DocCode.tsx +7 -6
  433. package/src/components/DocMarkdown/DocMarkdown.spec.tsx +16 -11
  434. package/src/components/DocMarkdown/DocMarkdown.tsx +11 -9
  435. package/src/components/DocMethodSummary/DocMethodSummary.spec.tsx +2 -2
  436. package/src/components/DocMethodSummary/DocMethodSummary.tsx +4 -3
  437. package/src/components/DocMethodSummary/DocSummaryStatus.spec.tsx +5 -5
  438. package/src/components/DocMethodSummary/DocSummaryStatus.tsx +5 -7
  439. package/src/components/DocMethodSummary/index.tsx +1 -0
  440. package/src/components/DocMethodSummary/utils.spec.tsx +7 -7
  441. package/src/components/DocMethodSummary/utils.tsx +17 -23
  442. package/src/components/DocPseudo/DocParam.tsx +3 -2
  443. package/src/components/DocPseudo/DocParams.tsx +3 -2
  444. package/src/components/DocPseudo/DocPrimaryResponse.tsx +3 -2
  445. package/src/components/DocPseudo/DocPseudo.tsx +3 -2
  446. package/src/components/DocRateLimited/DocRateLimited.tsx +3 -2
  447. package/src/components/DocReferences/DocReferences.spec.tsx +19 -8
  448. package/src/components/DocReferences/DocReferences.tsx +10 -10
  449. package/src/components/DocReferences/utils.spec.tsx +1 -13
  450. package/src/components/DocReferences/utils.tsx +2 -36
  451. package/src/components/DocResponses/DocResponseTypes.tsx +15 -4
  452. package/src/components/DocResponses/DocResponses.spec.tsx +1 -1
  453. package/src/components/DocResponses/DocResponses.tsx +6 -4
  454. package/src/components/DocResponses/utils.ts +1 -1
  455. package/src/components/DocSDKs/DocDeclarations.tsx +3 -2
  456. package/src/components/DocSDKs/DocSDKs.spec.tsx +12 -5
  457. package/src/components/DocSDKs/DocSDKs.tsx +6 -5
  458. package/src/components/DocSDKs/utils.ts +1 -1
  459. package/src/components/DocSchema/DocSchema.tsx +2 -1
  460. package/src/components/DocSdkUsage/DocSdkExampleCell.tsx +2 -1
  461. package/src/components/DocSdkUsage/DocSdkUsage.spec.tsx +2 -2
  462. package/src/components/DocSdkUsage/DocSdkUsage.tsx +9 -7
  463. package/src/components/DocSdkUsage/utils.ts +4 -2
  464. package/src/components/DocSource/DocSource.spec.tsx +2 -1
  465. package/src/components/DocSource/DocSource.tsx +7 -4
  466. package/src/components/DocStatus/DocStatus.spec.tsx +1 -1
  467. package/src/components/DocStatus/DocStatus.tsx +3 -2
  468. package/src/components/DocTitle/DocTitle.tsx +2 -1
  469. package/src/{state/settings/reducer.spec.ts → components/DocTypeSummary/DocTypeSummary.spec.tsx} +15 -14
  470. package/src/components/DocTypeSummary/DocTypeSummary.tsx +64 -0
  471. package/src/{state/action_creators.ts → components/DocTypeSummary/index.tsx} +1 -1
  472. package/src/components/ErrorBoundary/ErrorBoundary.spec.tsx +11 -9
  473. package/src/components/ErrorBoundary/ErrorBoundary.tsx +1 -1
  474. package/src/components/ErrorBoundary/components/SomethingWentWrong/SomethingWentWrong.spec.tsx +6 -5
  475. package/src/components/ErrorBoundary/components/SomethingWentWrong/components/SomethingWentWrongGraphic/SomethingWentWrongGraphic.tsx +170 -6
  476. package/src/components/ExploreType/ExploreProperty.spec.tsx +15 -6
  477. package/src/components/ExploreType/ExploreProperty.tsx +26 -12
  478. package/src/components/ExploreType/ExploreType.spec.tsx +15 -31
  479. package/src/components/ExploreType/ExploreType.tsx +13 -6
  480. package/src/components/ExploreType/exploreUtils.tsx +3 -2
  481. package/src/components/Header/Header.spec.tsx +29 -37
  482. package/src/components/Header/Header.tsx +7 -4
  483. package/src/components/Header/index.ts +1 -1
  484. package/src/components/SelectorContainer/ApiSpecSelector.spec.tsx +12 -2
  485. package/src/components/SelectorContainer/ApiSpecSelector.tsx +9 -5
  486. package/src/components/SelectorContainer/SdkLanguageSelector.spec.tsx +13 -7
  487. package/src/components/SelectorContainer/SdkLanguageSelector.tsx +7 -14
  488. package/src/components/SelectorContainer/SelectorContainer.spec.tsx +19 -25
  489. package/src/components/SelectorContainer/SelectorContainer.tsx +8 -5
  490. package/src/components/SideNav/SearchMessage.tsx +3 -2
  491. package/src/components/SideNav/SideNav.spec.tsx +28 -39
  492. package/src/components/SideNav/SideNav.tsx +102 -68
  493. package/src/components/SideNav/{SideNavTags.spec.tsx → SideNavMethodTags.spec.tsx} +10 -8
  494. package/src/components/SideNav/{SideNavTags.tsx → SideNavMethodTags.tsx} +2 -2
  495. package/src/components/SideNav/SideNavMethods.spec.tsx +9 -5
  496. package/src/components/SideNav/SideNavMethods.tsx +12 -12
  497. package/src/components/SideNav/SideNavTypeTags.spec.tsx +79 -0
  498. package/src/{context/lode/LodeContext.ts → components/SideNav/SideNavTypeTags.tsx} +26 -11
  499. package/src/components/SideNav/SideNavTypes.spec.tsx +13 -6
  500. package/src/components/SideNav/SideNavTypes.tsx +94 -43
  501. package/src/components/SideNav/{searchUtils.tsx → searchUtils.ts} +3 -3
  502. package/src/components/common/Loader.tsx +3 -2
  503. package/src/components/common/common.tsx +5 -3
  504. package/src/components/index.ts +4 -2
  505. package/src/{context/envAdaptor/index.ts → index.ts} +4 -4
  506. package/src/reducers/index.ts +0 -1
  507. package/src/reducers/spec/actions.ts +1 -1
  508. package/src/reducers/spec/reducer.spec.ts +2 -1
  509. package/src/reducers/spec/reducer.ts +5 -3
  510. package/src/reducers/spec/utils.spec.ts +1 -1
  511. package/src/reducers/spec/utils.ts +9 -4
  512. package/src/routes/AppRouter.tsx +22 -17
  513. package/src/scenes/DiffScene/DiffScene.tsx +44 -13
  514. package/src/scenes/DiffScene/DocDiff/DiffBanner.tsx +3 -2
  515. package/src/scenes/DiffScene/DocDiff/DiffItem.spec.tsx +2 -1
  516. package/src/scenes/DiffScene/DocDiff/DiffItem.tsx +6 -5
  517. package/src/scenes/DiffScene/DocDiff/DiffLegend.tsx +3 -2
  518. package/src/scenes/DiffScene/DocDiff/DocDiff.tsx +3 -2
  519. package/src/scenes/DiffScene/DocDiff/docDiffUtils.tsx +2 -7
  520. package/src/scenes/DiffScene/diffUtils.spec.ts +2 -1
  521. package/src/scenes/DiffScene/diffUtils.ts +2 -2
  522. package/src/scenes/HomeScene/HomeScene.tsx +3 -2
  523. package/src/scenes/MethodScene/MethodScene.tsx +66 -43
  524. package/src/scenes/MethodScene/components/DocOperation.tsx +3 -2
  525. package/src/scenes/MethodScene/components/DocRequestBody.spec.tsx +2 -2
  526. package/src/scenes/MethodScene/components/DocRequestBody.tsx +6 -3
  527. package/src/scenes/{TagScene/TagScene.spec.tsx → MethodTagScene/MethodTagScene.spec.tsx} +5 -5
  528. package/src/scenes/{TagScene/TagScene.tsx → MethodTagScene/MethodTagScene.tsx} +23 -16
  529. package/src/{hooks → scenes/MethodTagScene}/index.ts +1 -1
  530. package/src/scenes/{TagScene → MethodTagScene}/utils.spec.ts +1 -1
  531. package/src/scenes/{TagScene → MethodTagScene}/utils.ts +1 -1
  532. package/src/scenes/TypeScene/TypeScene.tsx +36 -24
  533. package/src/scenes/TypeTagScene/TypeTagScene.spec.tsx +103 -0
  534. package/src/scenes/TypeTagScene/TypeTagScene.tsx +93 -0
  535. package/src/scenes/{TagScene → TypeTagScene}/index.ts +1 -1
  536. package/src/{state/reducers.ts → scenes/TypeTagScene/utils.spec.ts} +8 -7
  537. package/src/{hooks/use_actions_hook.ts → scenes/TypeTagScene/utils.ts} +13 -10
  538. package/src/scenes/index.ts +2 -1
  539. package/src/state/index.ts +2 -2
  540. package/src/{reducers/search → state/lodes}/index.ts +2 -2
  541. package/src/state/lodes/sagas.spec.ts +92 -0
  542. package/src/state/{settings/reducer.ts → lodes/sagas.ts} +23 -21
  543. package/src/state/{settings/action_creators.spec.ts → lodes/selectors.spec.ts} +15 -10
  544. package/src/state/{settings/actions.ts → lodes/selectors.ts} +7 -9
  545. package/src/state/lodes/slice.ts +69 -0
  546. package/src/state/settings/index.ts +1 -1
  547. package/src/state/settings/sagas.spec.ts +121 -0
  548. package/src/state/settings/sagas.ts +79 -0
  549. package/src/state/settings/selectors.spec.ts +16 -9
  550. package/src/state/settings/selectors.ts +14 -3
  551. package/src/state/settings/slice.ts +94 -0
  552. package/src/state/store.ts +22 -8
  553. package/src/{reducers/search/actions.ts → test-data/declarations.ts} +16 -15
  554. package/src/test-data/examples.ts +1 -1
  555. package/src/test-data/index.ts +1 -0
  556. package/src/test-data/specs.ts +2 -1
  557. package/src/test-utils/index.ts +3 -14
  558. package/src/{context/search/SearchContext.ts → test-utils/lodes.tsx} +15 -16
  559. package/src/test-utils/redux.tsx +46 -26
  560. package/src/test-utils/router.tsx +3 -2
  561. package/src/utils/index.ts +7 -2
  562. package/src/utils/lodeUtils.ts +5 -7
  563. package/src/utils/path.spec.ts +17 -3
  564. package/src/utils/path.ts +54 -4
  565. package/webpack.dev.config.js +3 -0
  566. package/webpack.prod.config.js +4 -0
  567. package/lib/components/SideNav/SearchCriteriaSelector.d.ts +0 -2
  568. package/lib/components/SideNav/SearchCriteriaSelector.js +0 -57
  569. package/lib/components/SideNav/SearchCriteriaSelector.js.map +0 -1
  570. package/lib/components/SideNav/SideNavTags.d.ts +0 -9
  571. package/lib/components/SideNav/SideNavTags.js.map +0 -1
  572. package/lib/context/envAdaptor/EnvAdaptorContext.d.ts +0 -7
  573. package/lib/context/envAdaptor/EnvAdaptorContext.js +0 -18
  574. package/lib/context/envAdaptor/EnvAdaptorContext.js.map +0 -1
  575. package/lib/context/envAdaptor/index.d.ts +0 -1
  576. package/lib/context/envAdaptor/index.js +0 -20
  577. package/lib/context/envAdaptor/index.js.map +0 -1
  578. package/lib/context/index.d.ts +0 -3
  579. package/lib/context/index.js +0 -48
  580. package/lib/context/index.js.map +0 -1
  581. package/lib/context/lode/LodeContext.d.ts +0 -9
  582. package/lib/context/lode/LodeContext.js +0 -21
  583. package/lib/context/lode/LodeContext.js.map +0 -1
  584. package/lib/context/lode/index.d.ts +0 -1
  585. package/lib/context/lode/index.js +0 -20
  586. package/lib/context/search/SearchContext.d.ts +0 -9
  587. package/lib/context/search/SearchContext.js +0 -19
  588. package/lib/context/search/index.d.ts +0 -1
  589. package/lib/context/search/index.js +0 -20
  590. package/lib/context/search/index.js.map +0 -1
  591. package/lib/esm/components/SideNav/SearchCriteriaSelector.js +0 -38
  592. package/lib/esm/components/SideNav/SearchCriteriaSelector.js.map +0 -1
  593. package/lib/esm/components/SideNav/SideNavTags.js.map +0 -1
  594. package/lib/esm/context/envAdaptor/EnvAdaptorContext.js +0 -7
  595. package/lib/esm/context/envAdaptor/EnvAdaptorContext.js.map +0 -1
  596. package/lib/esm/context/envAdaptor/index.js +0 -2
  597. package/lib/esm/context/envAdaptor/index.js.map +0 -1
  598. package/lib/esm/context/index.js +0 -4
  599. package/lib/esm/context/index.js.map +0 -1
  600. package/lib/esm/context/lode/LodeContext.js +0 -11
  601. package/lib/esm/context/lode/LodeContext.js.map +0 -1
  602. package/lib/esm/context/lode/index.js +0 -2
  603. package/lib/esm/context/lode/index.js.map +0 -1
  604. package/lib/esm/context/search/SearchContext.js +0 -8
  605. package/lib/esm/context/search/SearchContext.js.map +0 -1
  606. package/lib/esm/context/search/index.js +0 -2
  607. package/lib/esm/context/search/index.js.map +0 -1
  608. package/lib/esm/hooks/index.js +0 -2
  609. package/lib/esm/hooks/index.js.map +0 -1
  610. package/lib/esm/hooks/use_actions_hook.js +0 -11
  611. package/lib/esm/hooks/use_actions_hook.js.map +0 -1
  612. package/lib/esm/reducers/search/actions.js +0 -13
  613. package/lib/esm/reducers/search/actions.js.map +0 -1
  614. package/lib/esm/reducers/search/index.js +0 -3
  615. package/lib/esm/reducers/search/index.js.map +0 -1
  616. package/lib/esm/reducers/search/reducer.js +0 -31
  617. package/lib/esm/reducers/search/reducer.js.map +0 -1
  618. package/lib/esm/scenes/MethodScene/utils.js +0 -72
  619. package/lib/esm/scenes/MethodScene/utils.js.map +0 -1
  620. package/lib/esm/scenes/TagScene/TagScene.js.map +0 -1
  621. package/lib/esm/scenes/TagScene/index.js +0 -2
  622. package/lib/esm/scenes/TagScene/index.js.map +0 -1
  623. package/lib/esm/scenes/TagScene/utils.js.map +0 -1
  624. package/lib/esm/state/action_creators.js +0 -2
  625. package/lib/esm/state/action_creators.js.map +0 -1
  626. package/lib/esm/state/reducers.js +0 -6
  627. package/lib/esm/state/reducers.js.map +0 -1
  628. package/lib/esm/state/settings/action_creators.js +0 -6
  629. package/lib/esm/state/settings/action_creators.js.map +0 -1
  630. package/lib/esm/state/settings/actions.js +0 -6
  631. package/lib/esm/state/settings/reducer.js +0 -19
  632. package/lib/esm/state/settings/reducer.js.map +0 -1
  633. package/lib/esm/test-utils/render_with_lode.js +0 -19
  634. package/lib/esm/test-utils/render_with_lode.js.map +0 -1
  635. package/lib/esm/test-utils/render_with_search.js +0 -34
  636. package/lib/esm/test-utils/render_with_search.js.map +0 -1
  637. package/lib/esm/utils/envAdaptor.js +0 -68
  638. package/lib/esm/utils/envAdaptor.js.map +0 -1
  639. package/lib/hooks/index.d.ts +0 -1
  640. package/lib/hooks/index.js +0 -14
  641. package/lib/hooks/index.js.map +0 -1
  642. package/lib/hooks/use_actions_hook.d.ts +0 -2
  643. package/lib/hooks/use_actions_hook.js +0 -24
  644. package/lib/hooks/use_actions_hook.js.map +0 -1
  645. package/lib/reducers/search/actions.d.ts +0 -4
  646. package/lib/reducers/search/actions.js +0 -25
  647. package/lib/reducers/search/actions.js.map +0 -1
  648. package/lib/reducers/search/index.d.ts +0 -2
  649. package/lib/reducers/search/index.js.map +0 -1
  650. package/lib/reducers/search/reducer.d.ts +0 -11
  651. package/lib/reducers/search/reducer.js +0 -43
  652. package/lib/reducers/search/reducer.js.map +0 -1
  653. package/lib/scenes/MethodScene/utils.d.ts +0 -3
  654. package/lib/scenes/MethodScene/utils.js +0 -81
  655. package/lib/scenes/MethodScene/utils.js.map +0 -1
  656. package/lib/scenes/TagScene/TagScene.d.ts +0 -7
  657. package/lib/scenes/TagScene/TagScene.js.map +0 -1
  658. package/lib/scenes/TagScene/index.d.ts +0 -1
  659. package/lib/scenes/TagScene/index.js +0 -14
  660. package/lib/scenes/TagScene/index.js.map +0 -1
  661. package/lib/scenes/TagScene/utils.js.map +0 -1
  662. package/lib/state/action_creators.d.ts +0 -1
  663. package/lib/state/action_creators.js +0 -19
  664. package/lib/state/reducers.d.ts +0 -4
  665. package/lib/state/reducers.js +0 -16
  666. package/lib/state/settings/action_creators.d.ts +0 -2
  667. package/lib/state/settings/action_creators.js +0 -16
  668. package/lib/state/settings/action_creators.js.map +0 -1
  669. package/lib/state/settings/actions.d.ts +0 -8
  670. package/lib/state/settings/actions.js +0 -13
  671. package/lib/state/settings/actions.js.map +0 -1
  672. package/lib/state/settings/reducer.d.ts +0 -6
  673. package/lib/state/settings/reducer.js +0 -31
  674. package/lib/state/settings/reducer.js.map +0 -1
  675. package/lib/test-utils/render_with_lode.d.ts +0 -9
  676. package/lib/test-utils/render_with_lode.js +0 -36
  677. package/lib/test-utils/render_with_lode.js.map +0 -1
  678. package/lib/test-utils/render_with_search.d.ts +0 -4
  679. package/lib/test-utils/render_with_search.js +0 -52
  680. package/lib/test-utils/render_with_search.js.map +0 -1
  681. package/lib/utils/envAdaptor.d.ts +0 -27
  682. package/lib/utils/envAdaptor.js +0 -81
  683. package/lib/utils/envAdaptor.js.map +0 -1
  684. package/src/components/ErrorBoundary/components/SomethingWentWrong/components/SomethingWentWrongGraphic/somethingWentWrong.svg +0 -45
  685. package/src/components/SideNav/SearchCriteriaSelector.tsx +0 -75
  686. package/src/context/envAdaptor/EnvAdaptorContext.ts +0 -38
  687. package/src/context/index.ts +0 -28
  688. package/src/context/lode/index.ts +0 -26
  689. package/src/context/search/index.ts +0 -26
  690. package/src/reducers/search/actions.spec.ts +0 -50
  691. package/src/reducers/search/reducer.spec.ts +0 -72
  692. package/src/reducers/search/reducer.ts +0 -66
  693. package/src/scenes/MethodScene/utils.spec.ts +0 -95
  694. package/src/scenes/MethodScene/utils.ts +0 -121
  695. package/src/state/settings/action_creators.ts +0 -33
  696. package/src/test-utils/render_with_lode.tsx +0 -74
  697. package/src/test-utils/render_with_search.tsx +0 -69
  698. package/src/utils/envAdaptor.spec.ts +0 -53
  699. package/src/utils/envAdaptor.ts +0 -120
@@ -1,6 +1,6 @@
1
- import React from 'react';
1
+ import React, { useEffect } from 'react';
2
2
  import { typeRefs, methodRefs } from '@looker/sdk-codegen';
3
- import { useParams } from 'react-router-dom';
3
+ import { useHistory, useParams } from 'react-router-dom';
4
4
  import { Space, Box } from '@looker/components';
5
5
  import { ApixSection, DocReferences, DocSDKs, DocSource, DocTitle, ExploreType, DocSchema } from '../../components';
6
6
  export var TypeScene = _ref => {
@@ -12,14 +12,21 @@ export var TypeScene = _ref => {
12
12
  typeName
13
13
  } = useParams();
14
14
  var type = api.types[typeName];
15
- var typesUsed = typeRefs(api, type.customTypes);
16
- var methodsUsedBy = methodRefs(api, type.methodRefs);
17
- var typesUsedBy = typeRefs(api, type.parentTypes);
18
- return React.createElement(ApixSection, null, React.createElement(Space, null, React.createElement(DocTitle, null, type.name), React.createElement(DocSource, {
15
+ var history = useHistory();
16
+ var typesUsed = typeRefs(api, type === null || type === void 0 ? void 0 : type.customTypes);
17
+ var methodsUsedBy = methodRefs(api, type === null || type === void 0 ? void 0 : type.methodRefs);
18
+ var typesUsedBy = typeRefs(api, type === null || type === void 0 ? void 0 : type.parentTypes);
19
+ useEffect(() => {
20
+ if (!type) {
21
+ history.push("/".concat(specKey, "/types"));
22
+ }
23
+ }, [history, specKey, type]);
24
+ return React.createElement(React.Fragment, null, type && React.createElement(ApixSection, null, React.createElement(Space, null, React.createElement(DocTitle, null, type.name), React.createElement(DocSource, {
19
25
  type: type
20
26
  })), React.createElement(Box, {
21
27
  pb: "xlarge"
22
28
  }, React.createElement(ExploreType, {
29
+ api: api,
23
30
  type: type
24
31
  })), React.createElement(DocReferences, {
25
32
  typesUsed: typesUsed,
@@ -32,6 +39,6 @@ export var TypeScene = _ref => {
32
39
  api: api
33
40
  }), React.createElement(DocSchema, {
34
41
  object: type.schema
35
- }));
42
+ })));
36
43
  };
37
44
  //# sourceMappingURL=TypeScene.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/scenes/TypeScene/TypeScene.tsx"],"names":["React","typeRefs","methodRefs","useParams","Space","Box","ApixSection","DocReferences","DocSDKs","DocSource","DocTitle","ExploreType","DocSchema","TypeScene","api","specKey","typeName","type","types","typesUsed","customTypes","methodsUsedBy","typesUsedBy","parentTypes","name","schema"],"mappings":"AA0BA,OAAOA,KAAP,MAA0B,OAA1B;AACA,SAASC,QAAT,EAAmBC,UAAnB,QAA+C,qBAA/C;AACA,SAASC,SAAT,QAA0B,kBAA1B;AACA,SAASC,KAAT,EAAgBC,GAAhB,QAA2B,oBAA3B;AAEA,SACEC,WADF,EAEEC,aAFF,EAGEC,OAHF,EAIEC,SAJF,EAKEC,QALF,EAMEC,WANF,EAOEC,SAPF,QAQO,kBARP;AAmBA,OAAO,IAAMC,SAA2B,GAAG,QAAa;AAAA,MAAZ;AAAEC,IAAAA;AAAF,GAAY;AACtD,MAAM;AAAEC,IAAAA,OAAF;AAAWC,IAAAA;AAAX,MAAwBb,SAAS,EAAvC;AACA,MAAMc,IAAI,GAAGH,GAAG,CAACI,KAAJ,CAAUF,QAAV,CAAb;AACA,MAAMG,SAAS,GAAGlB,QAAQ,CAACa,GAAD,EAAMG,IAAI,CAACG,WAAX,CAA1B;AACA,MAAMC,aAAa,GAAGnB,UAAU,CAACY,GAAD,EAAMG,IAAI,CAACf,UAAX,CAAhC;AACA,MAAMoB,WAAW,GAAGrB,QAAQ,CAACa,GAAD,EAAMG,IAAI,CAACM,WAAX,CAA5B;AAEA,SACE,oBAAC,WAAD,QACE,oBAAC,KAAD,QACE,oBAAC,QAAD,QAAWN,IAAI,CAACO,IAAhB,CADF,EAEE,oBAAC,SAAD;AAAW,IAAA,IAAI,EAAEP;AAAjB,IAFF,CADF,EAKE,oBAAC,GAAD;AAAK,IAAA,EAAE,EAAC;AAAR,KACE,oBAAC,WAAD;AAAa,IAAA,IAAI,EAAEA;AAAnB,IADF,CALF,EAQE,oBAAC,aAAD;AACE,IAAA,SAAS,EAAEE,SADb;AAEE,IAAA,WAAW,EAAEG,WAFf;AAGE,IAAA,aAAa,EAAED,aAHjB;AAIE,IAAA,GAAG,EAAEP,GAJP;AAKE,IAAA,OAAO,EAAEC;AALX,IARF,EAeE,oBAAC,OAAD;AAAS,IAAA,IAAI,EAAEE,IAAf;AAAqB,IAAA,GAAG,EAAEH;AAA1B,IAfF,EAgBE,oBAAC,SAAD;AAAW,IAAA,MAAM,EAAEG,IAAI,CAACQ;AAAxB,IAhBF,CADF;AAoBD,CA3BM","sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\n\nimport React, { FC } from 'react'\nimport { typeRefs, methodRefs, ApiModel } from '@looker/sdk-codegen'\nimport { useParams } from 'react-router-dom'\nimport { Space, Box } from '@looker/components'\n\nimport {\n ApixSection,\n DocReferences,\n DocSDKs,\n DocSource,\n DocTitle,\n ExploreType,\n DocSchema,\n} from '../../components'\n\ninterface DocTypeProps {\n api: ApiModel\n}\n\ninterface DocTypeParams {\n specKey: string\n typeName: string\n}\n\nexport const TypeScene: FC<DocTypeProps> = ({ api }) => {\n const { specKey, typeName } = useParams<DocTypeParams>()\n const type = api.types[typeName]\n const typesUsed = typeRefs(api, type.customTypes)\n const methodsUsedBy = methodRefs(api, type.methodRefs)\n const typesUsedBy = typeRefs(api, type.parentTypes)\n\n return (\n <ApixSection>\n <Space>\n <DocTitle>{type.name}</DocTitle>\n <DocSource type={type} />\n </Space>\n <Box pb=\"xlarge\">\n <ExploreType type={type} />\n </Box>\n <DocReferences\n typesUsed={typesUsed}\n typesUsedBy={typesUsedBy}\n methodsUsedBy={methodsUsedBy}\n api={api}\n specKey={specKey}\n />\n <DocSDKs type={type} api={api} />\n <DocSchema object={type.schema} />\n </ApixSection>\n )\n}\n"],"file":"TypeScene.js"}
1
+ {"version":3,"sources":["../../../../src/scenes/TypeScene/TypeScene.tsx"],"names":["React","useEffect","typeRefs","methodRefs","useHistory","useParams","Space","Box","ApixSection","DocReferences","DocSDKs","DocSource","DocTitle","ExploreType","DocSchema","TypeScene","api","specKey","typeName","type","types","history","typesUsed","customTypes","methodsUsedBy","typesUsedBy","parentTypes","push","name","schema"],"mappings":"AA2BA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AAEA,SAASC,QAAT,EAAmBC,UAAnB,QAAqC,qBAArC;AACA,SAASC,UAAT,EAAqBC,SAArB,QAAsC,kBAAtC;AACA,SAASC,KAAT,EAAgBC,GAAhB,QAA2B,oBAA3B;AAEA,SACEC,WADF,EAEEC,aAFF,EAGEC,OAHF,EAIEC,SAJF,EAKEC,QALF,EAMEC,WANF,EAOEC,SAPF,QAQO,kBARP;AAmBA,OAAO,IAAMC,SAA2B,GAAG,QAAa;AAAA,MAAZ;AAAEC,IAAAA;AAAF,GAAY;AACtD,MAAM;AAAEC,IAAAA,OAAF;AAAWC,IAAAA;AAAX,MAAwBb,SAAS,EAAvC;AACA,MAAMc,IAAI,GAAGH,GAAG,CAACI,KAAJ,CAAUF,QAAV,CAAb;AACA,MAAMG,OAAO,GAAGjB,UAAU,EAA1B;AACA,MAAMkB,SAAS,GAAGpB,QAAQ,CAACc,GAAD,EAAMG,IAAN,aAAMA,IAAN,uBAAMA,IAAI,CAAEI,WAAZ,CAA1B;AACA,MAAMC,aAAa,GAAGrB,UAAU,CAACa,GAAD,EAAMG,IAAN,aAAMA,IAAN,uBAAMA,IAAI,CAAEhB,UAAZ,CAAhC;AACA,MAAMsB,WAAW,GAAGvB,QAAQ,CAACc,GAAD,EAAMG,IAAN,aAAMA,IAAN,uBAAMA,IAAI,CAAEO,WAAZ,CAA5B;AACAzB,EAAAA,SAAS,CAAC,MAAM;AACd,QAAI,CAACkB,IAAL,EAAW;AACTE,MAAAA,OAAO,CAACM,IAAR,YAAiBV,OAAjB;AACD;AACF,GAJQ,EAIN,CAACI,OAAD,EAAUJ,OAAV,EAAmBE,IAAnB,CAJM,CAAT;AAMA,SACE,0CACGA,IAAI,IACH,oBAAC,WAAD,QACE,oBAAC,KAAD,QACE,oBAAC,QAAD,QAAWA,IAAI,CAACS,IAAhB,CADF,EAEE,oBAAC,SAAD;AAAW,IAAA,IAAI,EAAET;AAAjB,IAFF,CADF,EAKE,oBAAC,GAAD;AAAK,IAAA,EAAE,EAAC;AAAR,KACE,oBAAC,WAAD;AAAa,IAAA,GAAG,EAAEH,GAAlB;AAAuB,IAAA,IAAI,EAAEG;AAA7B,IADF,CALF,EAQE,oBAAC,aAAD;AACE,IAAA,SAAS,EAAEG,SADb;AAEE,IAAA,WAAW,EAAEG,WAFf;AAGE,IAAA,aAAa,EAAED,aAHjB;AAIE,IAAA,GAAG,EAAER,GAJP;AAKE,IAAA,OAAO,EAAEC;AALX,IARF,EAeE,oBAAC,OAAD;AAAS,IAAA,IAAI,EAAEE,IAAf;AAAqB,IAAA,GAAG,EAAEH;AAA1B,IAfF,EAgBE,oBAAC,SAAD;AAAW,IAAA,MAAM,EAAEG,IAAI,CAACU;AAAxB,IAhBF,CAFJ,CADF;AAwBD,CArCM","sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\n\nimport type { FC } from 'react'\nimport React, { useEffect } from 'react'\nimport type { ApiModel } from '@looker/sdk-codegen'\nimport { typeRefs, methodRefs } from '@looker/sdk-codegen'\nimport { useHistory, useParams } from 'react-router-dom'\nimport { Space, Box } from '@looker/components'\n\nimport {\n ApixSection,\n DocReferences,\n DocSDKs,\n DocSource,\n DocTitle,\n ExploreType,\n DocSchema,\n} from '../../components'\n\ninterface DocTypeProps {\n api: ApiModel\n}\n\ninterface DocTypeParams {\n specKey: string\n typeName: string\n}\n\nexport const TypeScene: FC<DocTypeProps> = ({ api }) => {\n const { specKey, typeName } = useParams<DocTypeParams>()\n const type = api.types[typeName]\n const history = useHistory()\n const typesUsed = typeRefs(api, type?.customTypes)\n const methodsUsedBy = methodRefs(api, type?.methodRefs)\n const typesUsedBy = typeRefs(api, type?.parentTypes)\n useEffect(() => {\n if (!type) {\n history.push(`/${specKey}/types`)\n }\n }, [history, specKey, type])\n\n return (\n <>\n {type && (\n <ApixSection>\n <Space>\n <DocTitle>{type.name}</DocTitle>\n <DocSource type={type} />\n </Space>\n <Box pb=\"xlarge\">\n <ExploreType api={api} type={type} />\n </Box>\n <DocReferences\n typesUsed={typesUsed}\n typesUsedBy={typesUsedBy}\n methodsUsedBy={methodsUsedBy}\n api={api}\n specKey={specKey}\n />\n <DocSDKs type={type} api={api} />\n <DocSchema object={type.schema} />\n </ApixSection>\n )}\n </>\n )\n}\n"],"file":"TypeScene.js"}
@@ -0,0 +1,57 @@
1
+ import React, { useEffect, useState } from 'react';
2
+ import { Grid, ButtonToggle, ButtonItem } from '@looker/components';
3
+ import { useParams, useHistory } from 'react-router-dom';
4
+ import { ApixSection, DocTitle, DocTypeSummary, Link } from '../../components';
5
+ import { buildTypePath } from '../../utils';
6
+ import { getMetaTypes } from './utils';
7
+ export var TypeTagScene = _ref => {
8
+ var {
9
+ api
10
+ } = _ref;
11
+ var {
12
+ specKey,
13
+ typeTag
14
+ } = useParams();
15
+ var history = useHistory();
16
+ var [value, setValue] = useState('ALL');
17
+ useEffect(() => {
18
+ setValue('ALL');
19
+ }, [typeTag]);
20
+ var types = api.typeTags[typeTag];
21
+ useEffect(() => {
22
+ if (!types) {
23
+ history.push("/".concat(specKey, "/types"));
24
+ }
25
+ }, [history, types]);
26
+
27
+ if (!types) {
28
+ return React.createElement(React.Fragment, null);
29
+ }
30
+
31
+ var tag = Object.values(api.spec.tags).find(tag => tag.name === typeTag);
32
+ var metaTypes = getMetaTypes(types);
33
+ return React.createElement(ApixSection, null, React.createElement(DocTitle, null, "".concat(tag.name, ": ").concat(tag.description)), React.createElement(ButtonToggle, {
34
+ mb: "small",
35
+ mt: "xlarge",
36
+ value: value,
37
+ onChange: setValue
38
+ }, React.createElement(ButtonItem, {
39
+ key: "ALL",
40
+ px: "large",
41
+ py: "xsmall"
42
+ }, "ALL"), metaTypes.map(op => React.createElement(ButtonItem, {
43
+ key: op,
44
+ px: "large",
45
+ py: "xsmall"
46
+ }, op))), Object.values(types).map((type, index) => (value === 'ALL' || value === type.metaType.toString().toUpperCase()) && React.createElement(Link, {
47
+ key: index,
48
+ to: buildTypePath(specKey, tag.name, type.name)
49
+ }, React.createElement(Grid, {
50
+ columns: 1,
51
+ py: "xsmall"
52
+ }, React.createElement(DocTypeSummary, {
53
+ key: index,
54
+ type: type
55
+ })))));
56
+ };
57
+ //# sourceMappingURL=TypeTagScene.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/scenes/TypeTagScene/TypeTagScene.tsx"],"names":["React","useEffect","useState","Grid","ButtonToggle","ButtonItem","useParams","useHistory","ApixSection","DocTitle","DocTypeSummary","Link","buildTypePath","getMetaTypes","TypeTagScene","api","specKey","typeTag","history","value","setValue","types","typeTags","push","tag","Object","values","spec","tags","find","name","metaTypes","description","map","op","type","index","metaType","toString","toUpperCase"],"mappings":"AA0BA,OAAOA,KAAP,IAAgBC,SAAhB,EAA2BC,QAA3B,QAA2C,OAA3C;AACA,SAASC,IAAT,EAAeC,YAAf,EAA6BC,UAA7B,QAA+C,oBAA/C;AAEA,SAASC,SAAT,EAAoBC,UAApB,QAAsC,kBAAtC;AACA,SAASC,WAAT,EAAsBC,QAAtB,EAAgCC,cAAhC,EAAgDC,IAAhD,QAA4D,kBAA5D;AACA,SAASC,aAAT,QAA8B,aAA9B;AACA,SAASC,YAAT,QAA6B,SAA7B;AAWA,OAAO,IAAMC,YAAmC,GAAG,QAAa;AAAA,MAAZ;AAAEC,IAAAA;AAAF,GAAY;AAC9D,MAAM;AAAEC,IAAAA,OAAF;AAAWC,IAAAA;AAAX,MAAuBX,SAAS,EAAtC;AACA,MAAMY,OAAO,GAAGX,UAAU,EAA1B;AACA,MAAM,CAACY,KAAD,EAAQC,QAAR,IAAoBlB,QAAQ,CAAC,KAAD,CAAlC;AAEAD,EAAAA,SAAS,CAAC,MAAM;AAEdmB,IAAAA,QAAQ,CAAC,KAAD,CAAR;AACD,GAHQ,EAGN,CAACH,OAAD,CAHM,CAAT;AAKA,MAAMI,KAAK,GAAGN,GAAG,CAACO,QAAJ,CAAaL,OAAb,CAAd;AACAhB,EAAAA,SAAS,CAAC,MAAM;AACd,QAAI,CAACoB,KAAL,EAAY;AACVH,MAAAA,OAAO,CAACK,IAAR,YAAiBP,OAAjB;AACD;AACF,GAJQ,EAIN,CAACE,OAAD,EAAUG,KAAV,CAJM,CAAT;;AAMA,MAAI,CAACA,KAAL,EAAY;AACV,WAAO,yCAAP;AACD;;AAED,MAAMG,GAAG,GAAGC,MAAM,CAACC,MAAP,CAAcX,GAAG,CAACY,IAAJ,CAASC,IAAvB,EAA8BC,IAA9B,CAAoCL,GAAD,IAASA,GAAG,CAACM,IAAJ,KAAab,OAAzD,CAAZ;AACA,MAAMc,SAAS,GAAGlB,YAAY,CAACQ,KAAD,CAA9B;AACA,SACE,oBAAC,WAAD,QACE,oBAAC,QAAD,kBAAcG,GAAG,CAACM,IAAlB,eAA2BN,GAAG,CAACQ,WAA/B,EADF,EAEE,oBAAC,YAAD;AAAc,IAAA,EAAE,EAAC,OAAjB;AAAyB,IAAA,EAAE,EAAC,QAA5B;AAAqC,IAAA,KAAK,EAAEb,KAA5C;AAAmD,IAAA,QAAQ,EAAEC;AAA7D,KACE,oBAAC,UAAD;AAAY,IAAA,GAAG,EAAC,KAAhB;AAAsB,IAAA,EAAE,EAAC,OAAzB;AAAiC,IAAA,EAAE,EAAC;AAApC,WADF,EAIGW,SAAS,CAACE,GAAV,CAAeC,EAAD,IACb,oBAAC,UAAD;AAAY,IAAA,GAAG,EAAEA,EAAjB;AAAqB,IAAA,EAAE,EAAC,OAAxB;AAAgC,IAAA,EAAE,EAAC;AAAnC,KACGA,EADH,CADD,CAJH,CAFF,EAYGT,MAAM,CAACC,MAAP,CAAcL,KAAd,EAAqBY,GAArB,CACC,CAACE,IAAD,EAAOC,KAAP,KACE,CAACjB,KAAK,KAAK,KAAV,IACCA,KAAK,KAAKgB,IAAI,CAACE,QAAL,CAAcC,QAAd,GAAyBC,WAAzB,EADZ,KAEE,oBAAC,IAAD;AAAM,IAAA,GAAG,EAAEH,KAAX;AAAkB,IAAA,EAAE,EAAExB,aAAa,CAACI,OAAD,EAAUQ,GAAG,CAACM,IAAd,EAAoBK,IAAI,CAACL,IAAzB;AAAnC,KACE,oBAAC,IAAD;AAAM,IAAA,OAAO,EAAE,CAAf;AAAkB,IAAA,EAAE,EAAC;AAArB,KACE,oBAAC,cAAD;AAAgB,IAAA,GAAG,EAAEM,KAArB;AAA4B,IAAA,IAAI,EAAED;AAAlC,IADF,CADF,CAJL,CAZH,CADF;AA0BD,CAjDM","sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nimport type { FC } from 'react'\nimport React, { useEffect, useState } from 'react'\nimport { Grid, ButtonToggle, ButtonItem } from '@looker/components'\nimport type { ApiModel } from '@looker/sdk-codegen'\nimport { useParams, useHistory } from 'react-router-dom'\nimport { ApixSection, DocTitle, DocTypeSummary, Link } from '../../components'\nimport { buildTypePath } from '../../utils'\nimport { getMetaTypes } from './utils'\n\ninterface TypeTagSceneProps {\n api: ApiModel\n}\n\ninterface TypeTagSceneParams {\n specKey: string\n typeTag: string\n}\n\nexport const TypeTagScene: FC<TypeTagSceneProps> = ({ api }) => {\n const { specKey, typeTag } = useParams<TypeTagSceneParams>()\n const history = useHistory()\n const [value, setValue] = useState('ALL')\n\n useEffect(() => {\n /** Reset ButtonToggle value on route change */\n setValue('ALL')\n }, [typeTag])\n\n const types = api.typeTags[typeTag]\n useEffect(() => {\n if (!types) {\n history.push(`/${specKey}/types`)\n }\n }, [history, types])\n\n if (!types) {\n return <></>\n }\n\n const tag = Object.values(api.spec.tags!).find((tag) => tag.name === typeTag)!\n const metaTypes = getMetaTypes(types)\n return (\n <ApixSection>\n <DocTitle>{`${tag.name}: ${tag.description}`}</DocTitle>\n <ButtonToggle mb=\"small\" mt=\"xlarge\" value={value} onChange={setValue}>\n <ButtonItem key=\"ALL\" px=\"large\" py=\"xsmall\">\n ALL\n </ButtonItem>\n {metaTypes.map((op) => (\n <ButtonItem key={op} px=\"large\" py=\"xsmall\">\n {op}\n </ButtonItem>\n ))}\n </ButtonToggle>\n {Object.values(types).map(\n (type, index) =>\n (value === 'ALL' ||\n value === type.metaType.toString().toUpperCase()) && (\n <Link key={index} to={buildTypePath(specKey, tag.name, type.name)}>\n <Grid columns={1} py=\"xsmall\">\n <DocTypeSummary key={index} type={type} />\n </Grid>\n </Link>\n )\n )}\n </ApixSection>\n )\n}\n"],"file":"TypeTagScene.js"}
@@ -0,0 +1,2 @@
1
+ export { TypeTagScene } from './TypeTagScene';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/scenes/TypeTagScene/index.ts"],"names":["TypeTagScene"],"mappings":"AAyBA,SAASA,YAAT,QAA6B,gBAA7B","sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nexport { TypeTagScene } from './TypeTagScene'\n"],"file":"index.js"}
@@ -0,0 +1,8 @@
1
+ export var getMetaTypes = types => {
2
+ var typeSet = new Set();
3
+ Object.values(types).forEach(type => {
4
+ typeSet.add(type.metaType.toString().toUpperCase());
5
+ });
6
+ return Array.from(typeSet.values());
7
+ };
8
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/scenes/TypeTagScene/utils.ts"],"names":["getMetaTypes","types","typeSet","Set","Object","values","forEach","type","add","metaType","toString","toUpperCase","Array","from"],"mappings":"AAgCA,OAAO,IAAMA,YAAY,GAAIC,KAAD,IAAqB;AAC/C,MAAMC,OAAO,GAAG,IAAIC,GAAJ,EAAhB;AACAC,EAAAA,MAAM,CAACC,MAAP,CAAcJ,KAAd,EAAqBK,OAArB,CAA8BC,IAAD,IAAU;AACrCL,IAAAA,OAAO,CAACM,GAAR,CAAYD,IAAI,CAACE,QAAL,CAAcC,QAAd,GAAyBC,WAAzB,EAAZ;AACD,GAFD;AAGA,SAAOC,KAAK,CAACC,IAAN,CAAWX,OAAO,CAACG,MAAR,EAAX,CAAP;AACD,CANM","sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\n\nimport type { TypeList } from '@looker/sdk-codegen'\n\n/**\n * Given a list of types it returns a list of distinct types\n * @param types A list of types\n */\nexport const getMetaTypes = (types: TypeList) => {\n const typeSet = new Set<string>()\n Object.values(types).forEach((type) => {\n typeSet.add(type.metaType.toString().toUpperCase())\n })\n return Array.from(typeSet.values())\n}\n"],"file":"utils.js"}
@@ -1,5 +1,6 @@
1
1
  export { HomeScene } from './HomeScene';
2
2
  export { MethodScene } from './MethodScene';
3
3
  export { TypeScene } from './TypeScene';
4
- export { TagScene } from './TagScene';
4
+ export { MethodTagScene } from './MethodTagScene';
5
+ export { TypeTagScene } from './TypeTagScene';
5
6
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/scenes/index.ts"],"names":["HomeScene","MethodScene","TypeScene","TagScene"],"mappings":"AAyBA,SAASA,SAAT,QAA0B,aAA1B;AACA,SAASC,WAAT,QAA4B,eAA5B;AACA,SAASC,SAAT,QAA0B,aAA1B;AACA,SAASC,QAAT,QAAyB,YAAzB","sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nexport { HomeScene } from './HomeScene'\nexport { MethodScene } from './MethodScene'\nexport { TypeScene } from './TypeScene'\nexport { TagScene } from './TagScene'\n"],"file":"index.js"}
1
+ {"version":3,"sources":["../../../src/scenes/index.ts"],"names":["HomeScene","MethodScene","TypeScene","MethodTagScene","TypeTagScene"],"mappings":"AAyBA,SAASA,SAAT,QAA0B,aAA1B;AACA,SAASC,WAAT,QAA4B,eAA5B;AACA,SAASC,SAAT,QAA0B,aAA1B;AACA,SAASC,cAAT,QAA+B,kBAA/B;AACA,SAASC,YAAT,QAA6B,gBAA7B","sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nexport { HomeScene } from './HomeScene'\nexport { MethodScene } from './MethodScene'\nexport { TypeScene } from './TypeScene'\nexport { MethodTagScene } from './MethodTagScene'\nexport { TypeTagScene } from './TypeTagScene'\n"],"file":"index.js"}
@@ -1,5 +1,4 @@
1
- import * as _actionCreators from './action_creators';
2
- export { _actionCreators as actionCreators };
3
- export * from './settings';
4
1
  export * from './store';
2
+ export * from './settings';
3
+ export * from './lodes';
5
4
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/state/index.ts"],"names":["actionCreators"],"mappings":"iCAyBgC,mB;4BAApBA,c;AACZ,cAAc,YAAd;AACA,cAAc,SAAd","sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nexport * as actionCreators from './action_creators'\nexport * from './settings'\nexport * from './store'\n"],"file":"index.js"}
1
+ {"version":3,"sources":["../../../src/state/index.ts"],"names":[],"mappings":"AAyBA,cAAc,SAAd;AACA,cAAc,YAAd;AACA,cAAc,SAAd","sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nexport * from './store'\nexport * from './settings'\nexport * from './lodes'\n"],"file":"index.js"}
@@ -0,0 +1,3 @@
1
+ export * from './selectors';
2
+ export * from './slice';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/state/lodes/index.ts"],"names":[],"mappings":"AAyBA,cAAc,aAAd;AACA,cAAc,SAAd","sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nexport * from './selectors'\nexport * from './slice'\n"],"file":"index.js"}
@@ -0,0 +1,25 @@
1
+ import { call, put, takeEvery } from 'typed-redux-saga';
2
+ import { getLoded } from '../../utils';
3
+ import { lodeActions } from './slice';
4
+
5
+ function* initSaga(action) {
6
+ var {
7
+ initLodesSuccessAction,
8
+ initLodesFailureAction
9
+ } = lodeActions;
10
+
11
+ try {
12
+ var lode = yield* call(getLoded, action.payload.examplesLodeUrl, action.payload.declarationsLodeUrl);
13
+ yield* put(initLodesSuccessAction(lode));
14
+ } catch (error) {
15
+ yield* put(initLodesFailureAction(error));
16
+ }
17
+ }
18
+
19
+ export function* saga() {
20
+ var {
21
+ initLodesAction
22
+ } = lodeActions;
23
+ yield* takeEvery(initLodesAction, initSaga);
24
+ }
25
+ //# sourceMappingURL=sagas.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/state/lodes/sagas.ts"],"names":["call","put","takeEvery","getLoded","lodeActions","initSaga","action","initLodesSuccessAction","initLodesFailureAction","lode","payload","examplesLodeUrl","declarationsLodeUrl","error","saga","initLodesAction"],"mappings":"AAyBA,SAASA,IAAT,EAAeC,GAAf,EAAoBC,SAApB,QAAqC,kBAArC;AAGA,SAASC,QAAT,QAAyB,aAAzB;AAEA,SAASC,WAAT,QAA4B,SAA5B;;AAEA,UAAUC,QAAV,CAAmBC,MAAnB,EAAuD;AACrD,MAAM;AAAEC,IAAAA,sBAAF;AAA0BC,IAAAA;AAA1B,MAAqDJ,WAA3D;;AACA,MAAI;AACF,QAAMK,IAAI,GAAG,OAAOT,IAAI,CACtBG,QADsB,EAEtBG,MAAM,CAACI,OAAP,CAAeC,eAFO,EAGtBL,MAAM,CAACI,OAAP,CAAeE,mBAHO,CAAxB;AAKA,WAAOX,GAAG,CAACM,sBAAsB,CAACE,IAAD,CAAvB,CAAV;AACD,GAPD,CAOE,OAAOI,KAAP,EAAmB;AACnB,WAAOZ,GAAG,CAACO,sBAAsB,CAACK,KAAD,CAAvB,CAAV;AACD;AACF;;AAED,OAAO,UAAUC,IAAV,GAAiB;AACtB,MAAM;AAAEC,IAAAA;AAAF,MAAsBX,WAA5B;AAEA,SAAOF,SAAS,CAACa,eAAD,EAAkBV,QAAlB,CAAhB;AACD","sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nimport { call, put, takeEvery } from 'typed-redux-saga'\nimport type { PayloadAction } from '@reduxjs/toolkit'\n\nimport { getLoded } from '../../utils'\nimport type { InitPayload } from './slice'\nimport { lodeActions } from './slice'\n\nfunction* initSaga(action: PayloadAction<InitPayload>) {\n const { initLodesSuccessAction, initLodesFailureAction } = lodeActions\n try {\n const lode = yield* call(\n getLoded,\n action.payload.examplesLodeUrl,\n action.payload.declarationsLodeUrl\n )\n yield* put(initLodesSuccessAction(lode))\n } catch (error: any) {\n yield* put(initLodesFailureAction(error))\n }\n}\n\nexport function* saga() {\n const { initLodesAction } = lodeActions\n\n yield* takeEvery(initLodesAction, initSaga)\n}\n"],"file":"sagas.js"}
@@ -0,0 +1,5 @@
1
+ var selectLodeState = state => state.lodes;
2
+
3
+ export var selectExamplesLode = state => selectLodeState(state).examples;
4
+ export var selectDeclarationsLode = state => selectLodeState(state).declarations;
5
+ //# sourceMappingURL=selectors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/state/lodes/selectors.ts"],"names":["selectLodeState","state","lodes","selectExamplesLode","examples","selectDeclarationsLode","declarations"],"mappings":"AA2BA,IAAMA,eAAe,GAAIC,KAAD,IAAsBA,KAAK,CAACC,KAApD;;AAEA,OAAO,IAAMC,kBAAkB,GAAIF,KAAD,IAChCD,eAAe,CAACC,KAAD,CAAf,CAAuBG,QADlB;AAGP,OAAO,IAAMC,sBAAsB,GAAIJ,KAAD,IACpCD,eAAe,CAACC,KAAD,CAAf,CAAuBK,YADlB","sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nimport type { RootState } from '../store'\n\nconst selectLodeState = (state: RootState) => state.lodes\n\nexport const selectExamplesLode = (state: RootState) =>\n selectLodeState(state).examples\n\nexport const selectDeclarationsLode = (state: RootState) =>\n selectLodeState(state).declarations\n"],"file":"selectors.js"}
@@ -0,0 +1,30 @@
1
+ import { createSliceHooks } from '@looker/redux';
2
+ import { createSlice } from '@reduxjs/toolkit';
3
+ import { saga } from './sagas';
4
+ export var defaultLodesState = {
5
+ examples: undefined,
6
+ declarations: undefined
7
+ };
8
+ export var lodesSlice = createSlice({
9
+ name: 'lodes',
10
+ initialState: defaultLodesState,
11
+ reducers: {
12
+ initLodesAction(_state, _action) {},
13
+
14
+ initLodesSuccessAction(state, action) {
15
+ state.examples = action.payload.examples;
16
+ state.declarations = action.payload.declarations;
17
+ },
18
+
19
+ initLodesFailureAction(state, action) {
20
+ state.error = action.payload;
21
+ }
22
+
23
+ }
24
+ });
25
+ export var lodeActions = lodesSlice.actions;
26
+ export var {
27
+ useActions: useLodeActions,
28
+ useStoreState: useLodesStoreState
29
+ } = createSliceHooks(lodesSlice, saga);
30
+ //# sourceMappingURL=slice.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/state/lodes/slice.ts"],"names":["createSliceHooks","createSlice","saga","defaultLodesState","examples","undefined","declarations","lodesSlice","name","initialState","reducers","initLodesAction","_state","_action","initLodesSuccessAction","state","action","payload","initLodesFailureAction","error","lodeActions","actions","useActions","useLodeActions","useStoreState","useLodesStoreState"],"mappings":"AAyBA,SAASA,gBAAT,QAAiC,eAAjC;AAGA,SAASC,WAAT,QAA4B,kBAA5B;AAEA,SAASC,IAAT,QAAqB,SAArB;AAQA,OAAO,IAAMC,iBAA6B,GAAG;AAC3CC,EAAAA,QAAQ,EAAEC,SADiC;AAE3CC,EAAAA,YAAY,EAAED;AAF6B,CAAtC;AAYP,OAAO,IAAME,UAAU,GAAGN,WAAW,CAAC;AACpCO,EAAAA,IAAI,EAAE,OAD8B;AAEpCC,EAAAA,YAAY,EAAEN,iBAFsB;AAGpCO,EAAAA,QAAQ,EAAE;AAERC,IAAAA,eAAe,CAACC,MAAD,EAASC,OAAT,EAA8C,CAAE,CAFvD;;AAGRC,IAAAA,sBAAsB,CAACC,KAAD,EAAQC,MAAR,EAAkD;AACtED,MAAAA,KAAK,CAACX,QAAN,GAAiBY,MAAM,CAACC,OAAP,CAAeb,QAAhC;AACAW,MAAAA,KAAK,CAACT,YAAN,GAAqBU,MAAM,CAACC,OAAP,CAAeX,YAApC;AACD,KANO;;AAORY,IAAAA,sBAAsB,CAACH,KAAD,EAAQC,MAAR,EAAsC;AAC1DD,MAAAA,KAAK,CAACI,KAAN,GAAcH,MAAM,CAACC,OAArB;AACD;;AATO;AAH0B,CAAD,CAA9B;AAgBP,OAAO,IAAMG,WAAW,GAAGb,UAAU,CAACc,OAA/B;AACP,OAAO,IAAM;AAAEC,EAAAA,UAAU,EAAEC,cAAd;AAA8BC,EAAAA,aAAa,EAAEC;AAA7C,IACXzB,gBAAgB,CAACO,UAAD,EAAaL,IAAb,CADX","sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nimport { createSliceHooks } from '@looker/redux'\nimport type { IDeclarationMine, IExampleMine } from '@looker/sdk-codegen'\nimport type { PayloadAction } from '@reduxjs/toolkit'\nimport { createSlice } from '@reduxjs/toolkit'\n\nimport { saga } from './sagas'\n\nexport interface LodesState {\n examples?: IExampleMine\n declarations?: IDeclarationMine\n error?: Error\n}\n\nexport const defaultLodesState: LodesState = {\n examples: undefined,\n declarations: undefined,\n}\n\nexport interface InitPayload {\n examplesLodeUrl?: string\n declarationsLodeUrl?: string\n}\n\ntype InitSuccessAction = LodesState\n\nexport const lodesSlice = createSlice({\n name: 'lodes',\n initialState: defaultLodesState,\n reducers: {\n // eslint-disable-next-line @typescript-eslint/no-empty-function\n initLodesAction(_state, _action: PayloadAction<InitPayload>) {},\n initLodesSuccessAction(state, action: PayloadAction<InitSuccessAction>) {\n state.examples = action.payload.examples\n state.declarations = action.payload.declarations\n },\n initLodesFailureAction(state, action: PayloadAction<Error>) {\n state.error = action.payload\n },\n },\n})\n\nexport const lodeActions = lodesSlice.actions\nexport const { useActions: useLodeActions, useStoreState: useLodesStoreState } =\n createSliceHooks(lodesSlice, saga)\n"],"file":"slice.js"}
@@ -1,3 +1,3 @@
1
- export * from './reducer';
2
1
  export * from './selectors';
2
+ export * from './slice';
3
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/state/settings/index.ts"],"names":[],"mappings":"AAyBA,cAAc,WAAd;AACA,cAAc,aAAd","sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nexport * from './reducer'\nexport * from './selectors'\n"],"file":"index.js"}
1
+ {"version":3,"sources":["../../../../src/state/settings/index.ts"],"names":[],"mappings":"AAyBA,cAAc,aAAd;AACA,cAAc,SAAd","sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nexport * from './selectors'\nexport * from './slice'\n"],"file":"index.js"}
@@ -0,0 +1,59 @@
1
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
2
+
3
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
4
+
5
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
+
7
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
8
+
9
+ function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
10
+
11
+ import { takeEvery, call, put, select } from 'typed-redux-saga';
12
+ import { getEnvAdaptor } from '@looker/extension-utils';
13
+ import { StoreConstants } from '@looker/run-it';
14
+ import { settingActions, defaultSettings } from './slice';
15
+
16
+ function* serializeToLocalStorageSaga() {
17
+ var adaptor = getEnvAdaptor();
18
+ var settings = yield* select(state => ({
19
+ sdkLanguage: state.settings.sdkLanguage
20
+ }));
21
+ adaptor.localStorageSetItem(StoreConstants.LOCALSTORAGE_SETTINGS_KEY, JSON.stringify(settings));
22
+ }
23
+
24
+ function deserializeLocalStorage() {
25
+ return _deserializeLocalStorage.apply(this, arguments);
26
+ }
27
+
28
+ function _deserializeLocalStorage() {
29
+ _deserializeLocalStorage = _asyncToGenerator(function* () {
30
+ var adaptor = getEnvAdaptor();
31
+ var settings = yield adaptor.localStorageGetItem(StoreConstants.LOCALSTORAGE_SETTINGS_KEY);
32
+ return settings ? _objectSpread(_objectSpread({}, defaultSettings), JSON.parse(settings)) : defaultSettings;
33
+ });
34
+ return _deserializeLocalStorage.apply(this, arguments);
35
+ }
36
+
37
+ function* initSaga() {
38
+ var {
39
+ initSettingsSuccessAction,
40
+ initSettingsFailureAction
41
+ } = settingActions;
42
+
43
+ try {
44
+ var settings = yield* call(deserializeLocalStorage);
45
+ yield* put(initSettingsSuccessAction(settings));
46
+ } catch (error) {
47
+ yield* put(initSettingsFailureAction(error));
48
+ }
49
+ }
50
+
51
+ export function* saga() {
52
+ var {
53
+ initSettingsAction,
54
+ setSdkLanguageAction
55
+ } = settingActions;
56
+ yield* takeEvery(initSettingsAction, initSaga);
57
+ yield* takeEvery(setSdkLanguageAction, serializeToLocalStorageSaga);
58
+ }
59
+ //# sourceMappingURL=sagas.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/state/settings/sagas.ts"],"names":["takeEvery","call","put","select","getEnvAdaptor","StoreConstants","settingActions","defaultSettings","serializeToLocalStorageSaga","adaptor","settings","state","sdkLanguage","localStorageSetItem","LOCALSTORAGE_SETTINGS_KEY","JSON","stringify","deserializeLocalStorage","localStorageGetItem","parse","initSaga","initSettingsSuccessAction","initSettingsFailureAction","error","saga","initSettingsAction","setSdkLanguageAction"],"mappings":";;;;;;;;;;AAyBA,SAASA,SAAT,EAAoBC,IAApB,EAA0BC,GAA1B,EAA+BC,MAA/B,QAA6C,kBAA7C;AAEA,SAASC,aAAT,QAA8B,yBAA9B;AACA,SAASC,cAAT,QAA+B,gBAA/B;AAEA,SAASC,cAAT,EAAyBC,eAAzB,QAAgD,SAAhD;;AAKA,UAAUC,2BAAV,GAAwC;AACtC,MAAMC,OAAO,GAAGL,aAAa,EAA7B;AACA,MAAMM,QAAQ,GAAG,OAAOP,MAAM,CAAEQ,KAAD,KAAuB;AACpDC,IAAAA,WAAW,EAAED,KAAK,CAACD,QAAN,CAAeE;AADwB,GAAvB,CAAD,CAA9B;AAGAH,EAAAA,OAAO,CAACI,mBAAR,CACER,cAAc,CAACS,yBADjB,EAEEC,IAAI,CAACC,SAAL,CAAeN,QAAf,CAFF;AAID;;SAKcO,uB;;;;;+CAAf,aAAyC;AACvC,QAAMR,OAAO,GAAGL,aAAa,EAA7B;AACA,QAAMM,QAAQ,SAASD,OAAO,CAACS,mBAAR,CACrBb,cAAc,CAACS,yBADM,CAAvB;AAGA,WAAOJ,QAAQ,mCACNH,eADM,GACcQ,IAAI,CAACI,KAAL,CAAWT,QAAX,CADd,IAEXH,eAFJ;AAGD,G;;;;AAKD,UAAUa,QAAV,GAAqB;AACnB,MAAM;AAAEC,IAAAA,yBAAF;AAA6BC,IAAAA;AAA7B,MACJhB,cADF;;AAEA,MAAI;AACF,QAAMI,QAAQ,GAAG,OAAOT,IAAI,CAACgB,uBAAD,CAA5B;AACA,WAAOf,GAAG,CAACmB,yBAAyB,CAACX,QAAD,CAA1B,CAAV;AACD,GAHD,CAGE,OAAOa,KAAP,EAAmB;AACnB,WAAOrB,GAAG,CAACoB,yBAAyB,CAACC,KAAD,CAA1B,CAAV;AACD;AACF;;AAED,OAAO,UAAUC,IAAV,GAAiB;AACtB,MAAM;AAAEC,IAAAA,kBAAF;AAAsBC,IAAAA;AAAtB,MAA+CpB,cAArD;AAEA,SAAON,SAAS,CAACyB,kBAAD,EAAqBL,QAArB,CAAhB;AACA,SAAOpB,SAAS,CAAC0B,oBAAD,EAAuBlB,2BAAvB,CAAhB;AACD","sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nimport { takeEvery, call, put, select } from 'typed-redux-saga'\n\nimport { getEnvAdaptor } from '@looker/extension-utils'\nimport { StoreConstants } from '@looker/run-it'\nimport type { RootState } from '../store'\nimport { settingActions, defaultSettings } from './slice'\n\n/**\n * Serializes state to local storage\n */\nfunction* serializeToLocalStorageSaga() {\n const adaptor = getEnvAdaptor()\n const settings = yield* select((state: RootState) => ({\n sdkLanguage: state.settings.sdkLanguage,\n }))\n adaptor.localStorageSetItem(\n StoreConstants.LOCALSTORAGE_SETTINGS_KEY,\n JSON.stringify(settings)\n )\n}\n\n/**\n * Returns default settings overridden with any persisted state in local storage\n */\nasync function deserializeLocalStorage() {\n const adaptor = getEnvAdaptor()\n const settings = await adaptor.localStorageGetItem(\n StoreConstants.LOCALSTORAGE_SETTINGS_KEY\n )\n return settings\n ? { ...defaultSettings, ...JSON.parse(settings) }\n : defaultSettings\n}\n\n/**\n * Initializes the store with default settings and existing persisted settings\n */\nfunction* initSaga() {\n const { initSettingsSuccessAction, initSettingsFailureAction } =\n settingActions\n try {\n const settings = yield* call(deserializeLocalStorage)\n yield* put(initSettingsSuccessAction(settings))\n } catch (error: any) {\n yield* put(initSettingsFailureAction(error))\n }\n}\n\nexport function* saga() {\n const { initSettingsAction, setSdkLanguageAction } = settingActions\n\n yield* takeEvery(initSettingsAction, initSaga)\n yield* takeEvery(setSdkLanguageAction, serializeToLocalStorageSaga)\n}\n"],"file":"sagas.js"}
@@ -1,2 +1,7 @@
1
- export var getSelectedSdkLanguage = state => state.settings.sdkLanguage;
1
+ var selectSettingsState = state => state.settings;
2
+
3
+ export var selectSdkLanguage = state => selectSettingsState(state).sdkLanguage;
4
+ export var selectSearchPattern = state => selectSettingsState(state).searchPattern;
5
+ export var selectSearchCriteria = state => selectSettingsState(state).searchCriteria;
6
+ export var isInitialized = state => selectSettingsState(state).initialized;
2
7
  //# sourceMappingURL=selectors.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/state/settings/selectors.ts"],"names":["getSelectedSdkLanguage","state","settings","sdkLanguage"],"mappings":"AA2BA,OAAO,IAAMA,sBAAsB,GAAIC,KAAD,IACpCA,KAAK,CAACC,QAAN,CAAgBC,WADX","sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nimport { RootState } from '../store'\n\nexport const getSelectedSdkLanguage = (state: RootState) =>\n state.settings!.sdkLanguage\n"],"file":"selectors.js"}
1
+ {"version":3,"sources":["../../../../src/state/settings/selectors.ts"],"names":["selectSettingsState","state","settings","selectSdkLanguage","sdkLanguage","selectSearchPattern","searchPattern","selectSearchCriteria","searchCriteria","isInitialized","initialized"],"mappings":"AA2BA,IAAMA,mBAAmB,GAAIC,KAAD,IAAsBA,KAAK,CAACC,QAAxD;;AAEA,OAAO,IAAMC,iBAAiB,GAAIF,KAAD,IAC/BD,mBAAmB,CAACC,KAAD,CAAnB,CAA2BG,WADtB;AAGP,OAAO,IAAMC,mBAAmB,GAAIJ,KAAD,IACjCD,mBAAmB,CAACC,KAAD,CAAnB,CAA2BK,aADtB;AAGP,OAAO,IAAMC,oBAAoB,GAAIN,KAAD,IAClCD,mBAAmB,CAACC,KAAD,CAAnB,CAA2BO,cADtB;AAGP,OAAO,IAAMC,aAAa,GAAIR,KAAD,IAC3BD,mBAAmB,CAACC,KAAD,CAAnB,CAA2BS,WADtB","sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nimport type { RootState } from '../store'\n\nconst selectSettingsState = (state: RootState) => state.settings\n\nexport const selectSdkLanguage = (state: RootState) =>\n selectSettingsState(state).sdkLanguage\n\nexport const selectSearchPattern = (state: RootState) =>\n selectSettingsState(state).searchPattern\n\nexport const selectSearchCriteria = (state: RootState) =>\n selectSettingsState(state).searchCriteria\n\nexport const isInitialized = (state: RootState) =>\n selectSettingsState(state).initialized\n"],"file":"selectors.js"}
@@ -0,0 +1,50 @@
1
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
2
+
3
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
4
+
5
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
+
7
+ import { createSlice } from '@reduxjs/toolkit';
8
+ import { createSliceHooks } from '@looker/redux';
9
+ import { SearchAll, setToCriteria } from '@looker/sdk-codegen';
10
+ import { saga } from './sagas';
11
+ export var defaultSettings = {
12
+ sdkLanguage: 'Python',
13
+ searchPattern: '',
14
+ searchCriteria: setToCriteria(SearchAll)
15
+ };
16
+ export var defaultSettingsState = _objectSpread(_objectSpread({}, defaultSettings), {}, {
17
+ initialized: false
18
+ });
19
+ export var settingsSlice = createSlice({
20
+ name: 'settings',
21
+ initialState: defaultSettingsState,
22
+ reducers: {
23
+ initSettingsAction() {},
24
+
25
+ initSettingsSuccessAction(state, action) {
26
+ state.sdkLanguage = action.payload.sdkLanguage;
27
+ state.initialized = true;
28
+ },
29
+
30
+ initSettingsFailureAction(state, action) {
31
+ state.error = action.payload;
32
+ state.initialized = false;
33
+ },
34
+
35
+ setSdkLanguageAction(state, action) {
36
+ state.sdkLanguage = action.payload.sdkLanguage;
37
+ },
38
+
39
+ setSearchPatternAction(state, action) {
40
+ state.searchPattern = action.payload.searchPattern;
41
+ }
42
+
43
+ }
44
+ });
45
+ export var settingActions = settingsSlice.actions;
46
+ export var {
47
+ useActions: useSettingActions,
48
+ useStoreState: useSettingStoreState
49
+ } = createSliceHooks(settingsSlice, saga);
50
+ //# sourceMappingURL=slice.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/state/settings/slice.ts"],"names":["createSlice","createSliceHooks","SearchAll","setToCriteria","saga","defaultSettings","sdkLanguage","searchPattern","searchCriteria","defaultSettingsState","initialized","settingsSlice","name","initialState","reducers","initSettingsAction","initSettingsSuccessAction","state","action","payload","initSettingsFailureAction","error","setSdkLanguageAction","setSearchPatternAction","settingActions","actions","useActions","useSettingActions","useStoreState","useSettingStoreState"],"mappings":";;;;;;AAyBA,SAASA,WAAT,QAA4B,kBAA5B;AAEA,SAASC,gBAAT,QAAiC,eAAjC;AAEA,SAASC,SAAT,EAAoBC,aAApB,QAAyC,qBAAzC;AAEA,SAASC,IAAT,QAAqB,SAArB;AAaA,OAAO,IAAMC,eAAe,GAAG;AAC7BC,EAAAA,WAAW,EAAE,QADgB;AAE7BC,EAAAA,aAAa,EAAE,EAFc;AAG7BC,EAAAA,cAAc,EAAEL,aAAa,CAACD,SAAD;AAHA,CAAxB;AAMP,OAAO,IAAMO,oBAAkC,mCAC1CJ,eAD0C;AAE7CK,EAAAA,WAAW,EAAE;AAFgC,EAAxC;AAUP,OAAO,IAAMC,aAAa,GAAGX,WAAW,CAAC;AACvCY,EAAAA,IAAI,EAAE,UADiC;AAEvCC,EAAAA,YAAY,EAAEJ,oBAFyB;AAGvCK,EAAAA,QAAQ,EAAE;AAERC,IAAAA,kBAAkB,GAAG,CAAE,CAFf;;AAGRC,IAAAA,yBAAyB,CACvBC,KADuB,EAEvBC,MAFuB,EAGvB;AACAD,MAAAA,KAAK,CAACX,WAAN,GAAoBY,MAAM,CAACC,OAAP,CAAeb,WAAnC;AACAW,MAAAA,KAAK,CAACP,WAAN,GAAoB,IAApB;AACD,KATO;;AAURU,IAAAA,yBAAyB,CAACH,KAAD,EAAQC,MAAR,EAAsC;AAC7DD,MAAAA,KAAK,CAACI,KAAN,GAAcH,MAAM,CAACC,OAArB;AACAF,MAAAA,KAAK,CAACP,WAAN,GAAoB,KAApB;AACD,KAbO;;AAcRY,IAAAA,oBAAoB,CAACL,KAAD,EAAQC,MAAR,EAAqD;AACvED,MAAAA,KAAK,CAACX,WAAN,GAAoBY,MAAM,CAACC,OAAP,CAAeb,WAAnC;AACD,KAhBO;;AAiBRiB,IAAAA,sBAAsB,CACpBN,KADoB,EAEpBC,MAFoB,EAGpB;AACAD,MAAAA,KAAK,CAACV,aAAN,GAAsBW,MAAM,CAACC,OAAP,CAAeZ,aAArC;AACD;;AAtBO;AAH6B,CAAD,CAAjC;AA6BP,OAAO,IAAMiB,cAAc,GAAGb,aAAa,CAACc,OAArC;AACP,OAAO,IAAM;AACXC,EAAAA,UAAU,EAAEC,iBADD;AAEXC,EAAAA,aAAa,EAAEC;AAFJ,IAGT5B,gBAAgB,CAACU,aAAD,EAAgBP,IAAhB,CAHb","sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nimport { createSlice } from '@reduxjs/toolkit'\nimport type { PayloadAction } from '@reduxjs/toolkit'\nimport { createSliceHooks } from '@looker/redux'\nimport type { SearchCriterionTerm } from '@looker/sdk-codegen'\nimport { SearchAll, setToCriteria } from '@looker/sdk-codegen'\n\nimport { saga } from './sagas'\n\nexport interface UserDefinedSettings {\n sdkLanguage: string\n}\n\nexport interface SettingState extends UserDefinedSettings {\n searchPattern: string\n searchCriteria: SearchCriterionTerm[]\n initialized: boolean\n error?: Error\n}\n\nexport const defaultSettings = {\n sdkLanguage: 'Python',\n searchPattern: '',\n searchCriteria: setToCriteria(SearchAll) as SearchCriterionTerm[],\n}\n\nexport const defaultSettingsState: SettingState = {\n ...defaultSettings,\n initialized: false,\n}\n\ntype SetSearchPatternAction = Pick<SettingState, 'searchPattern'>\ntype SetSdkLanguageAction = Pick<SettingState, 'sdkLanguage'>\n\nexport type InitSuccessPayload = UserDefinedSettings\n\nexport const settingsSlice = createSlice({\n name: 'settings',\n initialState: defaultSettingsState,\n reducers: {\n // eslint-disable-next-line @typescript-eslint/no-empty-function\n initSettingsAction() {},\n initSettingsSuccessAction(\n state,\n action: PayloadAction<InitSuccessPayload>\n ) {\n state.sdkLanguage = action.payload.sdkLanguage\n state.initialized = true\n },\n initSettingsFailureAction(state, action: PayloadAction<Error>) {\n state.error = action.payload\n state.initialized = false\n },\n setSdkLanguageAction(state, action: PayloadAction<SetSdkLanguageAction>) {\n state.sdkLanguage = action.payload.sdkLanguage\n },\n setSearchPatternAction(\n state,\n action: PayloadAction<SetSearchPatternAction>\n ) {\n state.searchPattern = action.payload.searchPattern\n },\n },\n})\n\nexport const settingActions = settingsSlice.actions\nexport const {\n useActions: useSettingActions,\n useStoreState: useSettingStoreState,\n} = createSliceHooks(settingsSlice, saga)\n"],"file":"slice.js"}
@@ -1,4 +1,14 @@
1
- import { createStore } from 'redux';
2
- import { reducers } from './reducers';
3
- export var configureStore = preloadedState => createStore(reducers, preloadedState);
1
+ import { createStore } from '@looker/redux';
2
+ import { defaultSettingsState, settingsSlice } from './settings';
3
+ import { lodesSlice, defaultLodesState } from './lodes';
4
+ export var store = createStore({
5
+ preloadedState: {
6
+ settings: defaultSettingsState,
7
+ lodes: defaultLodesState
8
+ },
9
+ reducer: {
10
+ settings: settingsSlice.reducer,
11
+ lodes: lodesSlice.reducer
12
+ }
13
+ });
4
14
  //# sourceMappingURL=store.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/state/store.ts"],"names":["createStore","reducers","configureStore","preloadedState"],"mappings":"AA0BA,SAASA,WAAT,QAAmC,OAAnC;AACA,SAASC,QAAT,QAAyB,YAAzB;AAIA,OAAO,IAAMC,cAAc,GAAIC,cAAD,IAC5BH,WAAW,CAACC,QAAD,EAAWE,cAAX,CADN","sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\n\nimport { createStore, Store } from 'redux'\nimport { reducers } from './reducers'\n\nexport type RootState = ReturnType<typeof reducers>\n\nexport const configureStore = (preloadedState?: RootState): Store<RootState> =>\n createStore(reducers, preloadedState)\n"],"file":"store.js"}
1
+ {"version":3,"sources":["../../../src/state/store.ts"],"names":["createStore","defaultSettingsState","settingsSlice","lodesSlice","defaultLodesState","store","preloadedState","settings","lodes","reducer"],"mappings":"AAyBA,SAASA,WAAT,QAA4B,eAA5B;AAGA,SAASC,oBAAT,EAA+BC,aAA/B,QAAoD,YAApD;AAEA,SAASC,UAAT,EAAqBC,iBAArB,QAA8C,SAA9C;AAEA,OAAO,IAAMC,KAAK,GAAGL,WAAW,CAAC;AAC/BM,EAAAA,cAAc,EAAE;AACdC,IAAAA,QAAQ,EAAEN,oBADI;AAEdO,IAAAA,KAAK,EAAEJ;AAFO,GADe;AAK/BK,EAAAA,OAAO,EAAE;AACPF,IAAAA,QAAQ,EAAEL,aAAa,CAACO,OADjB;AAEPD,IAAAA,KAAK,EAAEL,UAAU,CAACM;AAFX;AALsB,CAAD,CAAzB","sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nimport { createStore } from '@looker/redux'\n\nimport type { SettingState } from './settings'\nimport { defaultSettingsState, settingsSlice } from './settings'\nimport type { LodesState } from './lodes'\nimport { lodesSlice, defaultLodesState } from './lodes'\n\nexport const store = createStore({\n preloadedState: {\n settings: defaultSettingsState,\n lodes: defaultLodesState,\n },\n reducer: {\n settings: settingsSlice.reducer,\n lodes: lodesSlice.reducer,\n },\n})\n\nexport interface RootState {\n settings: SettingState\n lodes: LodesState\n}\n"],"file":"store.js"}
@@ -1,5 +1,4 @@
1
- export { renderWithSearch, renderWithSearchAndRouter } from './render_with_search';
2
- export { renderWithLode, renderWithReduxProviderAndLode } from './render_with_lode';
3
- export { renderWithRouter, withRouter } from './router';
4
- export { renderWithRouterAndReduxProvider, renderWithReduxProvider, withReduxProvider } from './redux';
1
+ export * from './lodes';
2
+ export * from './router';
3
+ export * from './redux';
5
4
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/test-utils/index.ts"],"names":["renderWithSearch","renderWithSearchAndRouter","renderWithLode","renderWithReduxProviderAndLode","renderWithRouter","withRouter","renderWithRouterAndReduxProvider","renderWithReduxProvider","withReduxProvider"],"mappings":"AAyBA,SACEA,gBADF,EAEEC,yBAFF,QAGO,sBAHP;AAIA,SACEC,cADF,EAEEC,8BAFF,QAGO,oBAHP;AAIA,SAASC,gBAAT,EAA2BC,UAA3B,QAA6C,UAA7C;AACA,SACEC,gCADF,EAEEC,uBAFF,EAGEC,iBAHF,QAIO,SAJP","sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nexport {\n renderWithSearch,\n renderWithSearchAndRouter,\n} from './render_with_search'\nexport {\n renderWithLode,\n renderWithReduxProviderAndLode,\n} from './render_with_lode'\nexport { renderWithRouter, withRouter } from './router'\nexport {\n renderWithRouterAndReduxProvider,\n renderWithReduxProvider,\n withReduxProvider,\n} from './redux'\n"],"file":"index.js"}
1
+ {"version":3,"sources":["../../../src/test-utils/index.ts"],"names":[],"mappings":"AAyBA,cAAc,SAAd;AACA,cAAc,UAAd;AACA,cAAc,SAAd","sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nexport * from './lodes'\nexport * from './router'\nexport * from './redux'\n"],"file":"index.js"}
@@ -0,0 +1,12 @@
1
+ import { renderWithTheme } from '@looker/components-test-utils';
2
+ import { createTestStore, withReduxProvider } from './redux';
3
+ export var renderWithLode = (consumers, examples, declarations, options) => {
4
+ var store = createTestStore({
5
+ lodes: {
6
+ examples,
7
+ declarations
8
+ }
9
+ });
10
+ return renderWithTheme(withReduxProvider(consumers, store), options);
11
+ };
12
+ //# sourceMappingURL=lodes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/test-utils/lodes.tsx"],"names":["renderWithTheme","createTestStore","withReduxProvider","renderWithLode","consumers","examples","declarations","options","store","lodes"],"mappings":"AA4BA,SAASA,eAAT,QAAgC,+BAAhC;AAEA,SAASC,eAAT,EAA0BC,iBAA1B,QAAmD,SAAnD;AAEA,OAAO,IAAMC,cAAc,GAAG,CAC5BC,SAD4B,EAE5BC,QAF4B,EAG5BC,YAH4B,EAI5BC,OAJ4B,KAKzB;AACH,MAAMC,KAAK,GAAGP,eAAe,CAAC;AAAEQ,IAAAA,KAAK,EAAE;AAAEJ,MAAAA,QAAF;AAAYC,MAAAA;AAAZ;AAAT,GAAD,CAA7B;AACA,SAAON,eAAe,CAACE,iBAAiB,CAACE,SAAD,EAAYI,KAAZ,CAAlB,EAAsCD,OAAtC,CAAtB;AACD,CARM","sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nimport type { IDeclarationMine, IExampleMine } from '@looker/sdk-codegen'\nimport type { ReactElement } from 'react'\nimport type { RenderOptions } from '@testing-library/react'\nimport { renderWithTheme } from '@looker/components-test-utils'\n\nimport { createTestStore, withReduxProvider } from './redux'\n\nexport const renderWithLode = (\n consumers: ReactElement<any>,\n examples: IExampleMine,\n declarations?: IDeclarationMine,\n options?: Omit<RenderOptions, 'queries'>\n) => {\n const store = createTestStore({ lodes: { examples, declarations } })\n return renderWithTheme(withReduxProvider(consumers, store), options)\n}\n"],"file":"lodes.js"}