@looker/api-explorer 0.9.51 → 0.9.53

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 (397) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/e2e/diffScene.spec.ts +1 -1
  3. package/lib/ApiExplorer.js.map +1 -1
  4. package/lib/App.js.map +1 -1
  5. package/lib/StandaloneApiExplorer.js.map +1 -1
  6. package/lib/components/Banner/Banner.js.map +1 -1
  7. package/lib/components/DocActivityType/DocActivityType.js.map +1 -1
  8. package/lib/components/DocCode/DocCode.js.map +1 -1
  9. package/lib/components/DocMarkdown/DocMarkdown.js.map +1 -1
  10. package/lib/components/DocMarkdown/utils.js.map +1 -1
  11. package/lib/components/DocMethodSummary/DocMethodSummary.js.map +1 -1
  12. package/lib/components/DocMethodSummary/DocSummaryStatus.js.map +1 -1
  13. package/lib/components/DocMethodSummary/utils.js.map +1 -1
  14. package/lib/components/DocPseudo/DocParam.js.map +1 -1
  15. package/lib/components/DocPseudo/DocParams.js.map +1 -1
  16. package/lib/components/DocPseudo/DocPrimaryResponse.js.map +1 -1
  17. package/lib/components/DocPseudo/DocPseudo.js.map +1 -1
  18. package/lib/components/DocRateLimited/DocRateLimited.js.map +1 -1
  19. package/lib/components/DocReferences/DocReferences.js.map +1 -1
  20. package/lib/components/DocReferences/utils.js.map +1 -1
  21. package/lib/components/DocSDKs/DocDeclarations.js.map +1 -1
  22. package/lib/components/DocSDKs/DocSDKs.js.map +1 -1
  23. package/lib/components/DocSchema/DocSchema.js.map +1 -1
  24. package/lib/components/DocSdkUsage/DocSdkExampleCell.js.map +1 -1
  25. package/lib/components/DocSdkUsage/DocSdkUsage.js.map +1 -1
  26. package/lib/components/DocSdkUsage/utils.js.map +1 -1
  27. package/lib/components/DocSource/DocSource.js.map +1 -1
  28. package/lib/components/DocStatus/DocStatus.js.map +1 -1
  29. package/lib/components/DocTitle/DocTitle.js.map +1 -1
  30. package/lib/components/DocTypeSummary/DocTypeSummary.js.map +1 -1
  31. package/lib/components/ErrorBoundary/ErrorBoundary.js.map +1 -1
  32. package/lib/components/ErrorBoundary/components/SomethingWentWrong/SomethingWentWrong.js.map +1 -1
  33. package/lib/components/ErrorBoundary/components/SomethingWentWrong/components/SomethingWentWrongGraphic/SomethingWentWrongGraphic.js.map +1 -1
  34. package/lib/components/ExploreType/ExploreProperty.js.map +1 -1
  35. package/lib/components/ExploreType/ExploreType.js.map +1 -1
  36. package/lib/components/ExploreType/exploreUtils.js.map +1 -1
  37. package/lib/components/Header/Header.js.map +1 -1
  38. package/lib/components/SelectorContainer/ApiSpecSelector.js.map +1 -1
  39. package/lib/components/SelectorContainer/SdkLanguageSelector.js.map +1 -1
  40. package/lib/components/SelectorContainer/SelectorContainer.js.map +1 -1
  41. package/lib/components/SelectorContainer/utils.js.map +1 -1
  42. package/lib/components/SideNav/SearchMessage.js.map +1 -1
  43. package/lib/components/SideNav/SideNav.js.map +1 -1
  44. package/lib/components/SideNav/SideNavMethodTags.js.map +1 -1
  45. package/lib/components/SideNav/SideNavMethods.js.map +1 -1
  46. package/lib/components/SideNav/SideNavTypeTags.js.map +1 -1
  47. package/lib/components/SideNav/SideNavTypes.js.map +1 -1
  48. package/lib/components/common/Loader.js.map +1 -1
  49. package/lib/components/common/common.js.map +1 -1
  50. package/lib/esm/ApiExplorer.js +55 -64
  51. package/lib/esm/ApiExplorer.js.map +1 -1
  52. package/lib/esm/App.js +9 -12
  53. package/lib/esm/App.js.map +1 -1
  54. package/lib/esm/StandaloneApiExplorer.js +20 -29
  55. package/lib/esm/StandaloneApiExplorer.js.map +1 -1
  56. package/lib/esm/components/Banner/Banner.js +8 -17
  57. package/lib/esm/components/Banner/Banner.js.map +1 -1
  58. package/lib/esm/components/Banner/index.js +1 -12
  59. package/lib/esm/components/Banner/index.js.map +1 -1
  60. package/lib/esm/components/DocActivityType/DocActivityType.js +7 -15
  61. package/lib/esm/components/DocActivityType/DocActivityType.js.map +1 -1
  62. package/lib/esm/components/DocActivityType/index.js +1 -12
  63. package/lib/esm/components/DocActivityType/index.js.map +1 -1
  64. package/lib/esm/components/DocCode/DocCode.js +9 -17
  65. package/lib/esm/components/DocCode/DocCode.js.map +1 -1
  66. package/lib/esm/components/DocCode/index.js +1 -12
  67. package/lib/esm/components/DocCode/index.js.map +1 -1
  68. package/lib/esm/components/DocMarkdown/DocMarkdown.js +13 -21
  69. package/lib/esm/components/DocMarkdown/DocMarkdown.js.map +1 -1
  70. package/lib/esm/components/DocMarkdown/index.js +1 -12
  71. package/lib/esm/components/DocMarkdown/index.js.map +1 -1
  72. package/lib/esm/components/DocMarkdown/utils.js +2 -10
  73. package/lib/esm/components/DocMarkdown/utils.js.map +1 -1
  74. package/lib/esm/components/DocMethodSummary/DocMethodSummary.js +15 -23
  75. package/lib/esm/components/DocMethodSummary/DocMethodSummary.js.map +1 -1
  76. package/lib/esm/components/DocMethodSummary/DocSummaryStatus.js +7 -15
  77. package/lib/esm/components/DocMethodSummary/DocSummaryStatus.js.map +1 -1
  78. package/lib/esm/components/DocMethodSummary/index.js +3 -26
  79. package/lib/esm/components/DocMethodSummary/index.js.map +1 -1
  80. package/lib/esm/components/DocMethodSummary/utils.js +18 -27
  81. package/lib/esm/components/DocMethodSummary/utils.js.map +1 -1
  82. package/lib/esm/components/DocPseudo/DocParam.js +7 -15
  83. package/lib/esm/components/DocPseudo/DocParam.js.map +1 -1
  84. package/lib/esm/components/DocPseudo/DocParams.js +5 -14
  85. package/lib/esm/components/DocPseudo/DocParams.js.map +1 -1
  86. package/lib/esm/components/DocPseudo/DocPrimaryResponse.js +5 -13
  87. package/lib/esm/components/DocPseudo/DocPrimaryResponse.js.map +1 -1
  88. package/lib/esm/components/DocPseudo/DocPseudo.js +9 -17
  89. package/lib/esm/components/DocPseudo/DocPseudo.js.map +1 -1
  90. package/lib/esm/components/DocPseudo/index.js +1 -12
  91. package/lib/esm/components/DocPseudo/index.js.map +1 -1
  92. package/lib/esm/components/DocRateLimited/DocRateLimited.js +5 -13
  93. package/lib/esm/components/DocRateLimited/DocRateLimited.js.map +1 -1
  94. package/lib/esm/components/DocRateLimited/index.js +1 -12
  95. package/lib/esm/components/DocRateLimited/index.js.map +1 -1
  96. package/lib/esm/components/DocReferences/DocReferences.js +10 -18
  97. package/lib/esm/components/DocReferences/DocReferences.js.map +1 -1
  98. package/lib/esm/components/DocReferences/index.js +1 -12
  99. package/lib/esm/components/DocReferences/index.js.map +1 -1
  100. package/lib/esm/components/DocReferences/utils.js +11 -19
  101. package/lib/esm/components/DocReferences/utils.js.map +1 -1
  102. package/lib/esm/components/DocSDKs/DocDeclarations.js +7 -15
  103. package/lib/esm/components/DocSDKs/DocDeclarations.js.map +1 -1
  104. package/lib/esm/components/DocSDKs/DocSDKs.js +21 -30
  105. package/lib/esm/components/DocSDKs/DocSDKs.js.map +1 -1
  106. package/lib/esm/components/DocSDKs/index.js +1 -12
  107. package/lib/esm/components/DocSDKs/index.js.map +1 -1
  108. package/lib/esm/components/DocSDKs/utils.js +3 -11
  109. package/lib/esm/components/DocSDKs/utils.js.map +1 -1
  110. package/lib/esm/components/DocSchema/DocSchema.js +7 -15
  111. package/lib/esm/components/DocSchema/DocSchema.js.map +1 -1
  112. package/lib/esm/components/DocSchema/index.js +1 -12
  113. package/lib/esm/components/DocSchema/index.js.map +1 -1
  114. package/lib/esm/components/DocSdkUsage/DocSdkExampleCell.js +6 -14
  115. package/lib/esm/components/DocSdkUsage/DocSdkExampleCell.js.map +1 -1
  116. package/lib/esm/components/DocSdkUsage/DocSdkUsage.js +38 -47
  117. package/lib/esm/components/DocSdkUsage/DocSdkUsage.js.map +1 -1
  118. package/lib/esm/components/DocSdkUsage/index.js +1 -12
  119. package/lib/esm/components/DocSdkUsage/index.js.map +1 -1
  120. package/lib/esm/components/DocSdkUsage/utils.js +11 -24
  121. package/lib/esm/components/DocSdkUsage/utils.js.map +1 -1
  122. package/lib/esm/components/DocSource/DocSource.js +13 -21
  123. package/lib/esm/components/DocSource/DocSource.js.map +1 -1
  124. package/lib/esm/components/DocSource/index.js +1 -12
  125. package/lib/esm/components/DocSource/index.js.map +1 -1
  126. package/lib/esm/components/DocStatus/DocStatus.js +8 -16
  127. package/lib/esm/components/DocStatus/DocStatus.js.map +1 -1
  128. package/lib/esm/components/DocStatus/index.js +1 -12
  129. package/lib/esm/components/DocStatus/index.js.map +1 -1
  130. package/lib/esm/components/DocTitle/DocTitle.js +3 -11
  131. package/lib/esm/components/DocTitle/DocTitle.js.map +1 -1
  132. package/lib/esm/components/DocTitle/index.js +1 -12
  133. package/lib/esm/components/DocTitle/index.js.map +1 -1
  134. package/lib/esm/components/DocTypeSummary/DocTypeSummary.js +11 -19
  135. package/lib/esm/components/DocTypeSummary/DocTypeSummary.js.map +1 -1
  136. package/lib/esm/components/DocTypeSummary/index.js +1 -12
  137. package/lib/esm/components/DocTypeSummary/index.js.map +1 -1
  138. package/lib/esm/components/ErrorBoundary/ErrorBoundary.js +5 -14
  139. package/lib/esm/components/ErrorBoundary/ErrorBoundary.js.map +1 -1
  140. package/lib/esm/components/ErrorBoundary/components/SomethingWentWrong/SomethingWentWrong.js +11 -19
  141. package/lib/esm/components/ErrorBoundary/components/SomethingWentWrong/SomethingWentWrong.js.map +1 -1
  142. package/lib/esm/components/ErrorBoundary/components/SomethingWentWrong/components/SomethingWentWrongGraphic/SomethingWentWrongGraphic.js +46 -54
  143. package/lib/esm/components/ErrorBoundary/components/SomethingWentWrong/components/SomethingWentWrongGraphic/SomethingWentWrongGraphic.js.map +1 -1
  144. package/lib/esm/components/ErrorBoundary/components/SomethingWentWrong/components/SomethingWentWrongGraphic/index.js +1 -12
  145. package/lib/esm/components/ErrorBoundary/components/SomethingWentWrong/components/SomethingWentWrongGraphic/index.js.map +1 -1
  146. package/lib/esm/components/ErrorBoundary/components/SomethingWentWrong/components/index.js +1 -12
  147. package/lib/esm/components/ErrorBoundary/components/SomethingWentWrong/components/index.js.map +1 -1
  148. package/lib/esm/components/ErrorBoundary/components/SomethingWentWrong/index.js +1 -12
  149. package/lib/esm/components/ErrorBoundary/components/SomethingWentWrong/index.js.map +1 -1
  150. package/lib/esm/components/ErrorBoundary/index.js +1 -12
  151. package/lib/esm/components/ErrorBoundary/index.js.map +1 -1
  152. package/lib/esm/components/ExploreType/ExploreProperty.js +48 -63
  153. package/lib/esm/components/ExploreType/ExploreProperty.js.map +1 -1
  154. package/lib/esm/components/ExploreType/ExploreType.js +23 -32
  155. package/lib/esm/components/ExploreType/ExploreType.js.map +1 -1
  156. package/lib/esm/components/ExploreType/exploreUtils.js +38 -51
  157. package/lib/esm/components/ExploreType/exploreUtils.js.map +1 -1
  158. package/lib/esm/components/ExploreType/index.js +3 -80
  159. package/lib/esm/components/ExploreType/index.js.map +1 -1
  160. package/lib/esm/components/Header/Header.js +20 -31
  161. package/lib/esm/components/Header/Header.js.map +1 -1
  162. package/lib/esm/components/Header/index.js +1 -24
  163. package/lib/esm/components/Header/index.js.map +1 -1
  164. package/lib/esm/components/Link/Link.js +3 -11
  165. package/lib/esm/components/Link/Link.js.map +1 -1
  166. package/lib/esm/components/Link/index.js +1 -12
  167. package/lib/esm/components/Link/index.js.map +1 -1
  168. package/lib/esm/components/SelectorContainer/ApiSpecSelector.js +11 -19
  169. package/lib/esm/components/SelectorContainer/ApiSpecSelector.js.map +1 -1
  170. package/lib/esm/components/SelectorContainer/SdkLanguageSelector.js +16 -25
  171. package/lib/esm/components/SelectorContainer/SdkLanguageSelector.js.map +1 -1
  172. package/lib/esm/components/SelectorContainer/SelectorContainer.js +16 -25
  173. package/lib/esm/components/SelectorContainer/SelectorContainer.js.map +1 -1
  174. package/lib/esm/components/SelectorContainer/index.js +1 -12
  175. package/lib/esm/components/SelectorContainer/index.js.map +1 -1
  176. package/lib/esm/components/SelectorContainer/utils.js +4 -11
  177. package/lib/esm/components/SelectorContainer/utils.js.map +1 -1
  178. package/lib/esm/components/SideNav/SearchMessage.js +8 -16
  179. package/lib/esm/components/SideNav/SearchMessage.js.map +1 -1
  180. package/lib/esm/components/SideNav/SideNav.js +41 -50
  181. package/lib/esm/components/SideNav/SideNav.js.map +1 -1
  182. package/lib/esm/components/SideNav/SideNavMethodTags.js +6 -14
  183. package/lib/esm/components/SideNav/SideNavMethodTags.js.map +1 -1
  184. package/lib/esm/components/SideNav/SideNavMethods.js +22 -32
  185. package/lib/esm/components/SideNav/SideNavMethods.js.map +1 -1
  186. package/lib/esm/components/SideNav/SideNavTypeTags.js +6 -14
  187. package/lib/esm/components/SideNav/SideNavTypeTags.js.map +1 -1
  188. package/lib/esm/components/SideNav/SideNavTypes.js +22 -32
  189. package/lib/esm/components/SideNav/SideNavTypes.js.map +1 -1
  190. package/lib/esm/components/SideNav/index.js +1 -12
  191. package/lib/esm/components/SideNav/index.js.map +1 -1
  192. package/lib/esm/components/SideNav/searchUtils.js +6 -15
  193. package/lib/esm/components/SideNav/searchUtils.js.map +1 -1
  194. package/lib/esm/components/common/Loader.js +8 -16
  195. package/lib/esm/components/common/Loader.js.map +1 -1
  196. package/lib/esm/components/common/common.js +11 -21
  197. package/lib/esm/components/common/common.js.map +1 -1
  198. package/lib/esm/components/common/index.js +2 -27
  199. package/lib/esm/components/common/index.js.map +1 -1
  200. package/lib/esm/components/index.js +22 -183
  201. package/lib/esm/components/index.js.map +1 -1
  202. package/lib/esm/index.js +5 -60
  203. package/lib/esm/index.js.map +1 -1
  204. package/lib/esm/routes/AppRouter.js +22 -30
  205. package/lib/esm/routes/AppRouter.js.map +1 -1
  206. package/lib/esm/routes/index.js +1 -12
  207. package/lib/esm/routes/index.js.map +1 -1
  208. package/lib/esm/scenes/DiffScene/DiffScene.js +43 -52
  209. package/lib/esm/scenes/DiffScene/DiffScene.js.map +1 -1
  210. package/lib/esm/scenes/DiffScene/DocDiff/DiffBanner.js +9 -17
  211. package/lib/esm/scenes/DiffScene/DocDiff/DiffBanner.js.map +1 -1
  212. package/lib/esm/scenes/DiffScene/DocDiff/DiffItem.js +33 -44
  213. package/lib/esm/scenes/DiffScene/DocDiff/DiffItem.js.map +1 -1
  214. package/lib/esm/scenes/DiffScene/DocDiff/DiffLegend.js +18 -26
  215. package/lib/esm/scenes/DiffScene/DocDiff/DiffLegend.js.map +1 -1
  216. package/lib/esm/scenes/DiffScene/DocDiff/DocDiff.js +11 -20
  217. package/lib/esm/scenes/DiffScene/DocDiff/DocDiff.js.map +1 -1
  218. package/lib/esm/scenes/DiffScene/DocDiff/docDiffUtils.js +5 -13
  219. package/lib/esm/scenes/DiffScene/DocDiff/docDiffUtils.js.map +1 -1
  220. package/lib/esm/scenes/DiffScene/DocDiff/index.js +1 -12
  221. package/lib/esm/scenes/DiffScene/DocDiff/index.js.map +1 -1
  222. package/lib/esm/scenes/DiffScene/diffUtils.js +8 -19
  223. package/lib/esm/scenes/DiffScene/diffUtils.js.map +1 -1
  224. package/lib/esm/scenes/DiffScene/index.js +1 -12
  225. package/lib/esm/scenes/DiffScene/index.js.map +1 -1
  226. package/lib/esm/scenes/ErrorDetailScene/ErrorDetailScene.js +11 -19
  227. package/lib/esm/scenes/ErrorDetailScene/ErrorDetailScene.js.map +1 -1
  228. package/lib/esm/scenes/ErrorDetailScene/index.js +1 -12
  229. package/lib/esm/scenes/ErrorDetailScene/index.js.map +1 -1
  230. package/lib/esm/scenes/HomeScene/HomeScene.js +9 -17
  231. package/lib/esm/scenes/HomeScene/HomeScene.js.map +1 -1
  232. package/lib/esm/scenes/HomeScene/index.js +1 -12
  233. package/lib/esm/scenes/HomeScene/index.js.map +1 -1
  234. package/lib/esm/scenes/MethodScene/MethodScene.js +47 -56
  235. package/lib/esm/scenes/MethodScene/MethodScene.js.map +1 -1
  236. package/lib/esm/scenes/MethodScene/components/DocOperation.js +12 -20
  237. package/lib/esm/scenes/MethodScene/components/DocOperation.js.map +1 -1
  238. package/lib/esm/scenes/MethodScene/components/DocRequestBody.js +7 -15
  239. package/lib/esm/scenes/MethodScene/components/DocRequestBody.js.map +1 -1
  240. package/lib/esm/scenes/MethodScene/components/DocResponses/DocResponseTypes.js +11 -20
  241. package/lib/esm/scenes/MethodScene/components/DocResponses/DocResponseTypes.js.map +1 -1
  242. package/lib/esm/scenes/MethodScene/components/DocResponses/DocResponses.js +19 -28
  243. package/lib/esm/scenes/MethodScene/components/DocResponses/DocResponses.js.map +1 -1
  244. package/lib/esm/scenes/MethodScene/components/DocResponses/index.js +1 -12
  245. package/lib/esm/scenes/MethodScene/components/DocResponses/index.js.map +1 -1
  246. package/lib/esm/scenes/MethodScene/components/DocResponses/utils.js +1 -8
  247. package/lib/esm/scenes/MethodScene/components/DocResponses/utils.js.map +1 -1
  248. package/lib/esm/scenes/MethodScene/components/index.js +3 -26
  249. package/lib/esm/scenes/MethodScene/components/index.js.map +1 -1
  250. package/lib/esm/scenes/MethodScene/index.js +1 -12
  251. package/lib/esm/scenes/MethodScene/index.js.map +1 -1
  252. package/lib/esm/scenes/MethodTagScene/MethodTagScene.js +31 -40
  253. package/lib/esm/scenes/MethodTagScene/MethodTagScene.js.map +1 -1
  254. package/lib/esm/scenes/MethodTagScene/index.js +1 -12
  255. package/lib/esm/scenes/MethodTagScene/index.js.map +1 -1
  256. package/lib/esm/scenes/MethodTagScene/utils.js +1 -8
  257. package/lib/esm/scenes/MethodTagScene/utils.js.map +1 -1
  258. package/lib/esm/scenes/TypeScene/TypeScene.js +20 -29
  259. package/lib/esm/scenes/TypeScene/TypeScene.js.map +1 -1
  260. package/lib/esm/scenes/TypeScene/index.js +1 -12
  261. package/lib/esm/scenes/TypeScene/index.js.map +1 -1
  262. package/lib/esm/scenes/TypeTagScene/TypeTagScene.js +30 -39
  263. package/lib/esm/scenes/TypeTagScene/TypeTagScene.js.map +1 -1
  264. package/lib/esm/scenes/TypeTagScene/index.js +1 -12
  265. package/lib/esm/scenes/TypeTagScene/index.js.map +1 -1
  266. package/lib/esm/scenes/TypeTagScene/utils.js +1 -8
  267. package/lib/esm/scenes/TypeTagScene/utils.js.map +1 -1
  268. package/lib/esm/scenes/index.js +6 -47
  269. package/lib/esm/scenes/index.js.map +1 -1
  270. package/lib/esm/scenes/utils/hooks/index.js +1 -12
  271. package/lib/esm/scenes/utils/hooks/index.js.map +1 -1
  272. package/lib/esm/scenes/utils/hooks/tagStoreSync.js +14 -21
  273. package/lib/esm/scenes/utils/hooks/tagStoreSync.js.map +1 -1
  274. package/lib/esm/scenes/utils/index.js +1 -12
  275. package/lib/esm/scenes/utils/index.js.map +1 -1
  276. package/lib/esm/state/index.js +4 -49
  277. package/lib/esm/state/index.js.map +1 -1
  278. package/lib/esm/state/lodes/index.js +2 -27
  279. package/lib/esm/state/lodes/index.js.map +1 -1
  280. package/lib/esm/state/lodes/sagas.js +10 -16
  281. package/lib/esm/state/lodes/sagas.js.map +1 -1
  282. package/lib/esm/state/lodes/selectors.js +2 -10
  283. package/lib/esm/state/lodes/selectors.js.map +1 -1
  284. package/lib/esm/state/lodes/slice.js +8 -19
  285. package/lib/esm/state/lodes/slice.js.map +1 -1
  286. package/lib/esm/state/settings/index.js +2 -27
  287. package/lib/esm/state/settings/index.js.map +1 -1
  288. package/lib/esm/state/settings/sagas.js +18 -24
  289. package/lib/esm/state/settings/sagas.js.map +1 -1
  290. package/lib/esm/state/settings/selectors.js +5 -16
  291. package/lib/esm/state/settings/selectors.js.map +1 -1
  292. package/lib/esm/state/settings/slice.js +11 -23
  293. package/lib/esm/state/settings/slice.js.map +1 -1
  294. package/lib/esm/state/specs/index.js +2 -27
  295. package/lib/esm/state/specs/index.js.map +1 -1
  296. package/lib/esm/state/specs/sagas.js +21 -25
  297. package/lib/esm/state/specs/sagas.js.map +1 -1
  298. package/lib/esm/state/specs/selectors.js +2 -10
  299. package/lib/esm/state/specs/selectors.js.map +1 -1
  300. package/lib/esm/state/specs/slice.js +8 -19
  301. package/lib/esm/state/specs/slice.js.map +1 -1
  302. package/lib/esm/state/store.js +13 -21
  303. package/lib/esm/state/store.js.map +1 -1
  304. package/lib/esm/test-data/declarations.js +1 -8
  305. package/lib/esm/test-data/declarations.js.map +1 -1
  306. package/lib/esm/test-data/examples.js +1 -8
  307. package/lib/esm/test-data/examples.js.map +1 -1
  308. package/lib/esm/test-data/index.js +4 -51
  309. package/lib/esm/test-data/index.js.map +1 -1
  310. package/lib/esm/test-data/sdkLanguages.js +2 -10
  311. package/lib/esm/test-data/sdkLanguages.js.map +1 -1
  312. package/lib/esm/test-data/specs.js +7 -18
  313. package/lib/esm/test-data/specs.js.map +1 -1
  314. package/lib/esm/test-utils/index.js +3 -38
  315. package/lib/esm/test-utils/index.js.map +1 -1
  316. package/lib/esm/test-utils/lodes.js +5 -12
  317. package/lib/esm/test-utils/lodes.js.map +1 -1
  318. package/lib/esm/test-utils/redux.js +25 -37
  319. package/lib/esm/test-utils/redux.js.map +1 -1
  320. package/lib/esm/test-utils/router.js +6 -15
  321. package/lib/esm/test-utils/router.js.map +1 -1
  322. package/lib/esm/utils/adaptorUtils.js +15 -26
  323. package/lib/esm/utils/adaptorUtils.js.map +1 -1
  324. package/lib/esm/utils/apixAdaptor.js +13 -22
  325. package/lib/esm/utils/apixAdaptor.js.map +1 -1
  326. package/lib/esm/utils/highlight.js +3 -11
  327. package/lib/esm/utils/highlight.js.map +1 -1
  328. package/lib/esm/utils/hooks/globalStoreSync.js +15 -22
  329. package/lib/esm/utils/hooks/globalStoreSync.js.map +1 -1
  330. package/lib/esm/utils/hooks/index.js +3 -26
  331. package/lib/esm/utils/hooks/index.js.map +1 -1
  332. package/lib/esm/utils/hooks/navigation.js +3 -10
  333. package/lib/esm/utils/hooks/navigation.js.map +1 -1
  334. package/lib/esm/utils/hooks/useQuery.js +5 -12
  335. package/lib/esm/utils/hooks/useQuery.js.map +1 -1
  336. package/lib/esm/utils/index.js +8 -101
  337. package/lib/esm/utils/index.js.map +1 -1
  338. package/lib/esm/utils/lodeUtils.js +2 -10
  339. package/lib/esm/utils/lodeUtils.js.map +1 -1
  340. package/lib/esm/utils/path.js +15 -32
  341. package/lib/esm/utils/path.js.map +1 -1
  342. package/lib/esm/utils/sdkLanguage.js +5 -14
  343. package/lib/esm/utils/sdkLanguage.js.map +1 -1
  344. package/lib/esm/utils/useWindowSize.js +4 -10
  345. package/lib/esm/utils/useWindowSize.js.map +1 -1
  346. package/lib/routes/AppRouter.js.map +1 -1
  347. package/lib/scenes/DiffScene/DiffScene.js.map +1 -1
  348. package/lib/scenes/DiffScene/DocDiff/DiffBanner.js.map +1 -1
  349. package/lib/scenes/DiffScene/DocDiff/DiffItem.js.map +1 -1
  350. package/lib/scenes/DiffScene/DocDiff/DiffLegend.js.map +1 -1
  351. package/lib/scenes/DiffScene/DocDiff/DocDiff.js.map +1 -1
  352. package/lib/scenes/DiffScene/DocDiff/docDiffUtils.js.map +1 -1
  353. package/lib/scenes/ErrorDetailScene/ErrorDetailScene.js.map +1 -1
  354. package/lib/scenes/HomeScene/HomeScene.js.map +1 -1
  355. package/lib/scenes/MethodScene/MethodScene.js.map +1 -1
  356. package/lib/scenes/MethodScene/components/DocOperation.js.map +1 -1
  357. package/lib/scenes/MethodScene/components/DocRequestBody.js.map +1 -1
  358. package/lib/scenes/MethodScene/components/DocResponses/DocResponseTypes.js.map +1 -1
  359. package/lib/scenes/MethodScene/components/DocResponses/DocResponses.js.map +1 -1
  360. package/lib/scenes/MethodTagScene/MethodTagScene.js.map +1 -1
  361. package/lib/scenes/MethodTagScene/utils.js.map +1 -1
  362. package/lib/scenes/TypeScene/TypeScene.js.map +1 -1
  363. package/lib/scenes/TypeTagScene/TypeTagScene.js.map +1 -1
  364. package/lib/scenes/TypeTagScene/utils.js.map +1 -1
  365. package/lib/scenes/utils/hooks/tagStoreSync.js.map +1 -1
  366. package/lib/state/lodes/sagas.js.map +1 -1
  367. package/lib/state/settings/sagas.js.map +1 -1
  368. package/lib/state/specs/sagas.js +2 -0
  369. package/lib/state/specs/sagas.js.map +1 -1
  370. package/lib/test-data/specs.js.map +1 -1
  371. package/lib/test-utils/redux.js.map +1 -1
  372. package/lib/test-utils/router.js.map +1 -1
  373. package/lib/utils/adaptorUtils.js.map +1 -1
  374. package/lib/utils/apixAdaptor.js.map +1 -1
  375. package/lib/utils/highlight.js.map +1 -1
  376. package/lib/utils/hooks/globalStoreSync.js.map +1 -1
  377. package/lib/utils/hooks/navigation.js.map +1 -1
  378. package/lib/utils/hooks/useQuery.js.map +1 -1
  379. package/lib/utils/lodeUtils.js.map +1 -1
  380. package/lib/utils/path.js.map +1 -1
  381. package/lib/utils/sdkLanguage.js.map +1 -1
  382. package/lib/utils/useWindowSize.js.map +1 -1
  383. package/package.json +9 -9
  384. package/public/Looker.4.0.json +5181 -1075
  385. package/public/versions.json +4 -10
  386. package/src/components/DocMarkdown/DocMarkdown.spec.tsx +10 -10
  387. package/src/components/DocMarkdown/utils.spec.ts +11 -11
  388. package/src/components/DocReferences/DocReferences.spec.tsx +6 -6
  389. package/src/components/ExploreType/ExploreType.spec.tsx +0 -12
  390. package/src/components/SelectorContainer/ApiSpecSelector.spec.tsx +2 -2
  391. package/src/components/SideNav/SideNav.spec.tsx +6 -6
  392. package/src/components/SideNav/SideNavMethodTags.spec.tsx +4 -4
  393. package/src/components/SideNav/SideNavMethods.spec.tsx +1 -1
  394. package/src/components/SideNav/SideNavTypeTags.spec.tsx +4 -4
  395. package/src/components/SideNav/SideNavTypes.spec.tsx +1 -1
  396. package/src/scenes/DiffScene/DocDiff/DocDiff.spec.tsx +1 -1
  397. package/src/state/specs/sagas.ts +4 -0
@@ -1,68 +1,60 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.pickTooltipContent = exports.pickStatus = void 0;
7
- var _react = _interopRequireDefault(require("react"));
8
- var _styledComponents = _interopRequireDefault(require("styled-components"));
9
- var _components = require("@looker/components");
10
- var _icons = require("@looker/icons");
11
- var _VisibilityOff = require("@styled-icons/material/VisibilityOff");
12
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
- var pickStatus = status => {
1
+ import React from 'react';
2
+ import styled from 'styled-components';
3
+ import { Icon, Status } from '@looker/components';
4
+ import { Beaker } from '@looker/icons';
5
+ import { VisibilityOff } from '@styled-icons/material/VisibilityOff';
6
+ export var pickStatus = status => {
14
7
  var title = "".concat(status.toLowerCase(), " item");
15
8
  switch (status.toLowerCase()) {
16
9
  case 'beta':
17
- return _react.default.createElement(StatusBeta, {
10
+ return React.createElement(StatusBeta, {
18
11
  "aria-label": title
19
12
  }, "\u03B2");
20
13
  case 'experimental':
21
14
  {
22
- return _react.default.createElement(_components.Icon, {
15
+ return React.createElement(Icon, {
23
16
  title: title,
24
17
  "aria-label": title,
25
- icon: _react.default.createElement(_icons.Beaker, null)
18
+ icon: React.createElement(Beaker, null)
26
19
  });
27
20
  }
28
21
  case 'alpha':
29
22
  {
30
- return _react.default.createElement(_components.Icon, {
23
+ return React.createElement(Icon, {
31
24
  title: title,
32
25
  "aria-label": title,
33
- icon: _react.default.createElement(_icons.Beaker, null)
26
+ icon: React.createElement(Beaker, null)
34
27
  });
35
28
  }
36
29
  case 'undocumented':
37
30
  {
38
- return _react.default.createElement(_components.Icon, {
31
+ return React.createElement(Icon, {
39
32
  title: title,
40
33
  "aria-label": title,
41
- icon: _react.default.createElement(_VisibilityOff.VisibilityOff, null)
34
+ icon: React.createElement(VisibilityOff, null)
42
35
  });
43
36
  }
44
37
  case 'deprecated':
45
- return _react.default.createElement(_components.Status, {
38
+ return React.createElement(Status, {
46
39
  "aria-label": title,
47
40
  intent: "critical",
48
41
  size: "small"
49
42
  });
50
43
  case 'stable':
51
- return _react.default.createElement(_components.Status, {
44
+ return React.createElement(Status, {
52
45
  "aria-label": title,
53
46
  intent: "positive",
54
47
  size: "small"
55
48
  });
56
49
  default:
57
- return _react.default.createElement(_components.Status, {
50
+ return React.createElement(Status, {
58
51
  "aria-label": "unknown status endpoint",
59
52
  intent: "neutral",
60
53
  size: "small"
61
54
  });
62
55
  }
63
56
  };
64
- exports.pickStatus = pickStatus;
65
- var pickTooltipContent = status => {
57
+ export var pickTooltipContent = status => {
66
58
  switch (status.toLowerCase()) {
67
59
  case 'alpha':
68
60
  return 'This alpha item is either for internal use, or not fully developed and may be significantly changed or completely removed in future releases.';
@@ -80,8 +72,7 @@ var pickTooltipContent = status => {
80
72
  return 'This item has no status associated with it.';
81
73
  }
82
74
  };
83
- exports.pickTooltipContent = pickTooltipContent;
84
- var StatusBeta = _styledComponents.default.div.withConfig({
75
+ var StatusBeta = styled.div.withConfig({
85
76
  displayName: "utils__StatusBeta",
86
77
  componentId: "sc-ugxyok-0"
87
78
  })(["display:flex;align-items:center;justify-content:center;font-size:", ";color:", ";width:1.125rem;height:1.125rem;"], _ref => {
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","names":["_react","_interopRequireDefault","require","_styledComponents","_components","_icons","_VisibilityOff","obj","__esModule","default","pickStatus","status","title","concat","toLowerCase","createElement","StatusBeta","Icon","icon","Beaker","VisibilityOff","Status","intent","size","exports","pickTooltipContent","styled","div","withConfig","displayName","componentId","_ref","theme","fontSizes","xxsmall","_ref2","colors","neutral"],"sources":["../../../../src/components/DocMethodSummary/utils.tsx"],"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 React from 'react'\nimport styled from 'styled-components'\nimport { Icon, Status } from '@looker/components'\nimport { Beaker } from '@looker/icons'\nimport { VisibilityOff } from '@styled-icons/material/VisibilityOff'\n\n/**\n * Return a Status react element based on an endpoint's status\n * @param status Endpoint status\n */\nexport const pickStatus = (status: string) => {\n const title = `${status.toLowerCase()} item`\n switch (status.toLowerCase()) {\n case 'beta':\n return <StatusBeta aria-label={title}>&beta;</StatusBeta>\n case 'experimental': {\n return <Icon title={title} aria-label={title} icon={<Beaker />} />\n }\n case 'alpha': {\n return <Icon title={title} aria-label={title} icon={<Beaker />} />\n }\n case 'undocumented': {\n return <Icon title={title} aria-label={title} icon={<VisibilityOff />} />\n }\n case 'deprecated':\n return <Status aria-label={title} intent=\"critical\" size=\"small\" />\n case 'stable':\n return <Status aria-label={title} intent=\"positive\" size=\"small\" />\n default:\n return (\n <Status\n aria-label=\"unknown status endpoint\"\n intent=\"neutral\"\n size=\"small\"\n />\n )\n }\n}\n\n/**\n * Returns tooltip content based on status\n * @param status item status\n */\nexport const pickTooltipContent = (status: string) => {\n switch (status.toLowerCase()) {\n case 'alpha':\n return 'This alpha item is either for internal use, or not fully developed and may be significantly changed or completely removed in future releases.'\n case 'beta':\n return 'This beta item is under development and subject to change.'\n case 'experimental':\n return 'This experimental item is not fully developed and may be significantly changed or completely removed in future releases.'\n case 'deprecated':\n return 'This item has been deprecated and will be removed in the future.'\n case 'stable':\n return 'This item is considered stable for this API version.'\n case 'undocumented':\n return 'This is an internal-only item.'\n default:\n return 'This item has no status associated with it.'\n }\n}\n\nconst StatusBeta = styled.div`\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: ${({ theme }) => theme.fontSizes.xxsmall};\n color: ${({ theme }) => theme.colors.neutral};\n width: 1.125rem;\n height: 1.125rem;\n`\n"],"mappings":";;;;;;AAyBA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,iBAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,cAAA,GAAAJ,OAAA;AAAoE,SAAAD,uBAAAM,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAM7D,IAAMG,UAAU,GAAIC,MAAc,IAAK;EAC5C,IAAMC,KAAK,MAAAC,MAAA,CAAMF,MAAM,CAACG,WAAW,EAAE,UAAO;EAC5C,QAAQH,MAAM,CAACG,WAAW,EAAE;IAC1B,KAAK,MAAM;MACT,OAAOd,MAAA,CAAAS,OAAA,CAAAM,aAAA,CAACC,UAAU;QAAC,cAAYJ;MAAM,GAAC,QAAM,CAAa;IAC3D,KAAK,cAAc;MAAE;QACnB,OAAOZ,MAAA,CAAAS,OAAA,CAAAM,aAAA,CAACX,WAAA,CAAAa,IAAI;UAACL,KAAK,EAAEA,KAAM;UAAC,cAAYA,KAAM;UAACM,IAAI,EAAElB,MAAA,CAAAS,OAAA,CAAAM,aAAA,CAACV,MAAA,CAAAc,MAAM;QAAI,EAAG;MACpE;IACA,KAAK,OAAO;MAAE;QACZ,OAAOnB,MAAA,CAAAS,OAAA,CAAAM,aAAA,CAACX,WAAA,CAAAa,IAAI;UAACL,KAAK,EAAEA,KAAM;UAAC,cAAYA,KAAM;UAACM,IAAI,EAAElB,MAAA,CAAAS,OAAA,CAAAM,aAAA,CAACV,MAAA,CAAAc,MAAM;QAAI,EAAG;MACpE;IACA,KAAK,cAAc;MAAE;QACnB,OAAOnB,MAAA,CAAAS,OAAA,CAAAM,aAAA,CAACX,WAAA,CAAAa,IAAI;UAACL,KAAK,EAAEA,KAAM;UAAC,cAAYA,KAAM;UAACM,IAAI,EAAElB,MAAA,CAAAS,OAAA,CAAAM,aAAA,CAACT,cAAA,CAAAc,aAAa;QAAI,EAAG;MAC3E;IACA,KAAK,YAAY;MACf,OAAOpB,MAAA,CAAAS,OAAA,CAAAM,aAAA,CAACX,WAAA,CAAAiB,MAAM;QAAC,cAAYT,KAAM;QAACU,MAAM,EAAC,UAAU;QAACC,IAAI,EAAC;MAAO,EAAG;IACrE,KAAK,QAAQ;MACX,OAAOvB,MAAA,CAAAS,OAAA,CAAAM,aAAA,CAACX,WAAA,CAAAiB,MAAM;QAAC,cAAYT,KAAM;QAACU,MAAM,EAAC,UAAU;QAACC,IAAI,EAAC;MAAO,EAAG;IACrE;MACE,OACEvB,MAAA,CAAAS,OAAA,CAAAM,aAAA,CAACX,WAAA,CAAAiB,MAAM;QACL,cAAW,yBAAyB;QACpCC,MAAM,EAAC,SAAS;QAChBC,IAAI,EAAC;MAAO,EACZ;EACH;AAEP,CAAC;AAAAC,OAAA,CAAAd,UAAA,GAAAA,UAAA;AAMM,IAAMe,kBAAkB,GAAId,MAAc,IAAK;EACpD,QAAQA,MAAM,CAACG,WAAW,EAAE;IAC1B,KAAK,OAAO;MACV,OAAO,+IAA+I;IACxJ,KAAK,MAAM;MACT,OAAO,4DAA4D;IACrE,KAAK,cAAc;MACjB,OAAO,0HAA0H;IACnI,KAAK,YAAY;MACf,OAAO,kEAAkE;IAC3E,KAAK,QAAQ;MACX,OAAO,sDAAsD;IAC/D,KAAK,cAAc;MACjB,OAAO,gCAAgC;IACzC;MACE,OAAO,6CAA6C;EAAA;AAE1D,CAAC;AAAAU,OAAA,CAAAC,kBAAA,GAAAA,kBAAA;AAED,IAAMT,UAAU,GAAGU,yBAAM,CAACC,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,yHAIdC,IAAA;EAAA,IAAC;IAAEC;EAAM,CAAC,GAAAD,IAAA;EAAA,OAAKC,KAAK,CAACC,SAAS,CAACC,OAAO;AAAA,GAC1CC,KAAA;EAAA,IAAC;IAAEH;EAAM,CAAC,GAAAG,KAAA;EAAA,OAAKH,KAAK,CAACI,MAAM,CAACC,OAAO;AAAA,EAG7C"}
1
+ {"version":3,"file":"utils.js","names":["React","styled","Icon","Status","Beaker","VisibilityOff","pickStatus","status","title","concat","toLowerCase","createElement","StatusBeta","icon","intent","size","pickTooltipContent","div","withConfig","displayName","componentId","_ref","theme","fontSizes","xxsmall","_ref2","colors","neutral"],"sources":["../../../../src/components/DocMethodSummary/utils.tsx"],"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 React from 'react'\nimport styled from 'styled-components'\nimport { Icon, Status } from '@looker/components'\nimport { Beaker } from '@looker/icons'\nimport { VisibilityOff } from '@styled-icons/material/VisibilityOff'\n\n/**\n * Return a Status react element based on an endpoint's status\n * @param status Endpoint status\n */\nexport const pickStatus = (status: string) => {\n const title = `${status.toLowerCase()} item`\n switch (status.toLowerCase()) {\n case 'beta':\n return <StatusBeta aria-label={title}>&beta;</StatusBeta>\n case 'experimental': {\n return <Icon title={title} aria-label={title} icon={<Beaker />} />\n }\n case 'alpha': {\n return <Icon title={title} aria-label={title} icon={<Beaker />} />\n }\n case 'undocumented': {\n return <Icon title={title} aria-label={title} icon={<VisibilityOff />} />\n }\n case 'deprecated':\n return <Status aria-label={title} intent=\"critical\" size=\"small\" />\n case 'stable':\n return <Status aria-label={title} intent=\"positive\" size=\"small\" />\n default:\n return (\n <Status\n aria-label=\"unknown status endpoint\"\n intent=\"neutral\"\n size=\"small\"\n />\n )\n }\n}\n\n/**\n * Returns tooltip content based on status\n * @param status item status\n */\nexport const pickTooltipContent = (status: string) => {\n switch (status.toLowerCase()) {\n case 'alpha':\n return 'This alpha item is either for internal use, or not fully developed and may be significantly changed or completely removed in future releases.'\n case 'beta':\n return 'This beta item is under development and subject to change.'\n case 'experimental':\n return 'This experimental item is not fully developed and may be significantly changed or completely removed in future releases.'\n case 'deprecated':\n return 'This item has been deprecated and will be removed in the future.'\n case 'stable':\n return 'This item is considered stable for this API version.'\n case 'undocumented':\n return 'This is an internal-only item.'\n default:\n return 'This item has no status associated with it.'\n }\n}\n\nconst StatusBeta = styled.div`\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: ${({ theme }) => theme.fontSizes.xxsmall};\n color: ${({ theme }) => theme.colors.neutral};\n width: 1.125rem;\n height: 1.125rem;\n`\n"],"mappings":"AAyBA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,MAAM,MAAM,mBAAmB;AACtC,SAASC,IAAI,EAAEC,MAAM,QAAQ,oBAAoB;AACjD,SAASC,MAAM,QAAQ,eAAe;AACtC,SAASC,aAAa,QAAQ,sCAAsC;AAMpE,OAAO,IAAMC,UAAU,GAAIC,MAAc,IAAK;EAC5C,IAAMC,KAAK,MAAAC,MAAA,CAAMF,MAAM,CAACG,WAAW,CAAC,CAAC,UAAO;EAC5C,QAAQH,MAAM,CAACG,WAAW,CAAC,CAAC;IAC1B,KAAK,MAAM;MACT,OAAOV,KAAA,CAAAW,aAAA,CAACC,UAAU;QAAC,cAAYJ;MAAM,GAAC,QAAkB,CAAC;IAC3D,KAAK,cAAc;MAAE;QACnB,OAAOR,KAAA,CAAAW,aAAA,CAACT,IAAI;UAACM,KAAK,EAAEA,KAAM;UAAC,cAAYA,KAAM;UAACK,IAAI,EAAEb,KAAA,CAAAW,aAAA,CAACP,MAAM,MAAE;QAAE,CAAE,CAAC;MACpE;IACA,KAAK,OAAO;MAAE;QACZ,OAAOJ,KAAA,CAAAW,aAAA,CAACT,IAAI;UAACM,KAAK,EAAEA,KAAM;UAAC,cAAYA,KAAM;UAACK,IAAI,EAAEb,KAAA,CAAAW,aAAA,CAACP,MAAM,MAAE;QAAE,CAAE,CAAC;MACpE;IACA,KAAK,cAAc;MAAE;QACnB,OAAOJ,KAAA,CAAAW,aAAA,CAACT,IAAI;UAACM,KAAK,EAAEA,KAAM;UAAC,cAAYA,KAAM;UAACK,IAAI,EAAEb,KAAA,CAAAW,aAAA,CAACN,aAAa,MAAE;QAAE,CAAE,CAAC;MAC3E;IACA,KAAK,YAAY;MACf,OAAOL,KAAA,CAAAW,aAAA,CAACR,MAAM;QAAC,cAAYK,KAAM;QAACM,MAAM,EAAC,UAAU;QAACC,IAAI,EAAC;MAAO,CAAE,CAAC;IACrE,KAAK,QAAQ;MACX,OAAOf,KAAA,CAAAW,aAAA,CAACR,MAAM;QAAC,cAAYK,KAAM;QAACM,MAAM,EAAC,UAAU;QAACC,IAAI,EAAC;MAAO,CAAE,CAAC;IACrE;MACE,OACEf,KAAA,CAAAW,aAAA,CAACR,MAAM;QACL,cAAW,yBAAyB;QACpCW,MAAM,EAAC,SAAS;QAChBC,IAAI,EAAC;MAAO,CACb,CAAC;EAER;AACF,CAAC;AAMD,OAAO,IAAMC,kBAAkB,GAAIT,MAAc,IAAK;EACpD,QAAQA,MAAM,CAACG,WAAW,CAAC,CAAC;IAC1B,KAAK,OAAO;MACV,OAAO,+IAA+I;IACxJ,KAAK,MAAM;MACT,OAAO,4DAA4D;IACrE,KAAK,cAAc;MACjB,OAAO,0HAA0H;IACnI,KAAK,YAAY;MACf,OAAO,kEAAkE;IAC3E,KAAK,QAAQ;MACX,OAAO,sDAAsD;IAC/D,KAAK,cAAc;MACjB,OAAO,gCAAgC;IACzC;MACE,OAAO,6CAA6C;EACxD;AACF,CAAC;AAED,IAAME,UAAU,GAAGX,MAAM,CAACgB,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,yHAIdC,IAAA;EAAA,IAAC;IAAEC;EAAM,CAAC,GAAAD,IAAA;EAAA,OAAKC,KAAK,CAACC,SAAS,CAACC,OAAO;AAAA,GAC1CC,KAAA;EAAA,IAAC;IAAEH;EAAM,CAAC,GAAAG,KAAA;EAAA,OAAKH,KAAK,CAACI,MAAM,CAACC,OAAO;AAAA,EAG7C"}
@@ -1,20 +1,12 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.DocParam = void 0;
7
- var _react = _interopRequireDefault(require("react"));
8
- var _components = require("@looker/components");
9
- var _sdkCodegen = require("@looker/sdk-codegen");
10
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
- var DocParam = _ref => {
1
+ import React from 'react';
2
+ import { Tooltip } from '@looker/components';
3
+ import { describeParam } from '@looker/sdk-codegen';
4
+ export var DocParam = _ref => {
12
5
  var {
13
6
  parameter
14
7
  } = _ref;
15
- return _react.default.createElement(_components.Tooltip, {
16
- content: "".concat(parameter.type.name, " ").concat((0, _sdkCodegen.describeParam)(parameter))
17
- }, _react.default.createElement("span", null, parameter.required ? parameter.name : "[".concat(parameter.name, "]")));
8
+ return React.createElement(Tooltip, {
9
+ content: "".concat(parameter.type.name, " ").concat(describeParam(parameter))
10
+ }, React.createElement("span", null, parameter.required ? parameter.name : "[".concat(parameter.name, "]")));
18
11
  };
19
- exports.DocParam = DocParam;
20
12
  //# sourceMappingURL=DocParam.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DocParam.js","names":["_react","_interopRequireDefault","require","_components","_sdkCodegen","obj","__esModule","default","DocParam","_ref","parameter","createElement","Tooltip","content","concat","type","name","describeParam","required","exports"],"sources":["../../../../src/components/DocPseudo/DocParam.tsx"],"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 from 'react'\nimport type { IParameter } from '@looker/sdk-codegen'\nimport { Tooltip } from '@looker/components'\nimport { describeParam } from '@looker/sdk-codegen'\n\nexport interface DocArgProps {\n parameter: IParameter\n}\n\nexport const DocParam: FC<DocArgProps> = ({ parameter }) => (\n <Tooltip content={`${parameter.type.name} ${describeParam(parameter)}`}>\n <span>{parameter.required ? parameter.name : `[${parameter.name}]`}</span>\n </Tooltip>\n)\n"],"mappings":";;;;;;AA0BA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AAAmD,SAAAD,uBAAAI,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAM5C,IAAMG,QAAyB,GAAGC,IAAA;EAAA,IAAC;IAAEC;EAAU,CAAC,GAAAD,IAAA;EAAA,OACrDT,MAAA,CAAAO,OAAA,CAAAI,aAAA,CAACR,WAAA,CAAAS,OAAO;IAACC,OAAO,KAAAC,MAAA,CAAKJ,SAAS,CAACK,IAAI,CAACC,IAAI,OAAAF,MAAA,CAAI,IAAAG,yBAAa,EAACP,SAAS,CAAC;EAAG,GACrEV,MAAA,CAAAO,OAAA,CAAAI,aAAA,eAAOD,SAAS,CAACQ,QAAQ,GAAGR,SAAS,CAACM,IAAI,OAAAF,MAAA,CAAOJ,SAAS,CAACM,IAAI,MAAG,CAAQ,CAClE;AAAA,CACX;AAAAG,OAAA,CAAAX,QAAA,GAAAA,QAAA"}
1
+ {"version":3,"file":"DocParam.js","names":["React","Tooltip","describeParam","DocParam","_ref","parameter","createElement","content","concat","type","name","required"],"sources":["../../../../src/components/DocPseudo/DocParam.tsx"],"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 from 'react'\nimport type { IParameter } from '@looker/sdk-codegen'\nimport { Tooltip } from '@looker/components'\nimport { describeParam } from '@looker/sdk-codegen'\n\nexport interface DocArgProps {\n parameter: IParameter\n}\n\nexport const DocParam: FC<DocArgProps> = ({ parameter }) => (\n <Tooltip content={`${parameter.type.name} ${describeParam(parameter)}`}>\n <span>{parameter.required ? parameter.name : `[${parameter.name}]`}</span>\n </Tooltip>\n)\n"],"mappings":"AA0BA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAASC,OAAO,QAAQ,oBAAoB;AAC5C,SAASC,aAAa,QAAQ,qBAAqB;AAMnD,OAAO,IAAMC,QAAyB,GAAGC,IAAA;EAAA,IAAC;IAAEC;EAAU,CAAC,GAAAD,IAAA;EAAA,OACrDJ,KAAA,CAAAM,aAAA,CAACL,OAAO;IAACM,OAAO,KAAAC,MAAA,CAAKH,SAAS,CAACI,IAAI,CAACC,IAAI,OAAAF,MAAA,CAAIN,aAAa,CAACG,SAAS,CAAC;EAAG,GACrEL,KAAA,CAAAM,aAAA,eAAOD,SAAS,CAACM,QAAQ,GAAGN,SAAS,CAACK,IAAI,OAAAF,MAAA,CAAOH,SAAS,CAACK,IAAI,MAAU,CAClE,CAAC;AAAA,CACX"}
@@ -1,23 +1,14 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.DocParams = void 0;
7
- var _react = _interopRequireWildcard(require("react"));
8
- var _DocParam = require("./DocParam");
9
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
10
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
11
- var DocParams = _ref => {
1
+ import React, { Fragment } from 'react';
2
+ import { DocParam } from './DocParam';
3
+ export var DocParams = _ref => {
12
4
  var {
13
5
  parameters
14
6
  } = _ref;
15
- return _react.default.createElement(_react.default.Fragment, null, parameters.map((a, index) => _react.default.createElement(_react.Fragment, {
7
+ return React.createElement(React.Fragment, null, parameters.map((a, index) => React.createElement(Fragment, {
16
8
  key: index
17
- }, index ? ', ' : '', _react.default.createElement(_DocParam.DocParam, {
9
+ }, index ? ', ' : '', React.createElement(DocParam, {
18
10
  parameter: a,
19
11
  key: index
20
12
  }))));
21
13
  };
22
- exports.DocParams = DocParams;
23
14
  //# sourceMappingURL=DocParams.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DocParams.js","names":["_react","_interopRequireWildcard","require","_DocParam","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","DocParams","_ref","parameters","createElement","Fragment","map","a","index","DocParam","parameter","exports"],"sources":["../../../../src/components/DocPseudo/DocParams.tsx"],"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 { IParameter } from '@looker/sdk-codegen'\nimport type { FC } from 'react'\nimport React, { Fragment } from 'react'\n\nimport { DocParam } from './DocParam'\n\nexport interface DocArgsProps {\n parameters: IParameter[]\n}\n\nexport const DocParams: FC<DocArgsProps> = ({ parameters }) => (\n <>\n {parameters.map((a, index) => (\n <Fragment key={index}>\n {index ? ', ' : ''}\n <DocParam parameter={a} key={index} />\n </Fragment>\n ))}\n </>\n)\n"],"mappings":";;;;;;AA2BA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAEA,IAAAC,SAAA,GAAAD,OAAA;AAAqC,SAAAE,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,yBAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAJ,wBAAAQ,GAAA,EAAAJ,WAAA,SAAAA,WAAA,IAAAI,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,oBAAAA,GAAA,wBAAAA,GAAA,4BAAAE,OAAA,EAAAF,GAAA,UAAAG,KAAA,GAAAR,wBAAA,CAAAC,WAAA,OAAAO,KAAA,IAAAA,KAAA,CAAAC,GAAA,CAAAJ,GAAA,YAAAG,KAAA,CAAAE,GAAA,CAAAL,GAAA,SAAAM,MAAA,WAAAC,qBAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,GAAA,IAAAX,GAAA,QAAAW,GAAA,kBAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAd,GAAA,EAAAW,GAAA,SAAAI,IAAA,GAAAR,qBAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAV,GAAA,EAAAW,GAAA,cAAAI,IAAA,KAAAA,IAAA,CAAAV,GAAA,IAAAU,IAAA,CAAAC,GAAA,KAAAR,MAAA,CAAAC,cAAA,CAAAH,MAAA,EAAAK,GAAA,EAAAI,IAAA,YAAAT,MAAA,CAAAK,GAAA,IAAAX,GAAA,CAAAW,GAAA,SAAAL,MAAA,CAAAJ,OAAA,GAAAF,GAAA,MAAAG,KAAA,IAAAA,KAAA,CAAAa,GAAA,CAAAhB,GAAA,EAAAM,MAAA,YAAAA,MAAA;AAM9B,IAAMW,SAA2B,GAAGC,IAAA;EAAA,IAAC;IAAEC;EAAW,CAAC,GAAAD,IAAA;EAAA,OACxD3B,MAAA,CAAAW,OAAA,CAAAkB,aAAA,CAAA7B,MAAA,CAAAW,OAAA,CAAAmB,QAAA,QACGF,UAAU,CAACG,GAAG,CAAC,CAACC,CAAC,EAAEC,KAAK,KACvBjC,MAAA,CAAAW,OAAA,CAAAkB,aAAA,CAAC7B,MAAA,CAAA8B,QAAQ;IAACV,GAAG,EAAEa;EAAM,GAClBA,KAAK,GAAG,IAAI,GAAG,EAAE,EAClBjC,MAAA,CAAAW,OAAA,CAAAkB,aAAA,CAAC1B,SAAA,CAAA+B,QAAQ;IAACC,SAAS,EAAEH,CAAE;IAACZ,GAAG,EAAEa;EAAM,EAAG,CAEzC,CAAC,CACD;AAAA,CACJ;AAAAG,OAAA,CAAAV,SAAA,GAAAA,SAAA"}
1
+ {"version":3,"file":"DocParams.js","names":["React","Fragment","DocParam","DocParams","_ref","parameters","createElement","map","a","index","key","parameter"],"sources":["../../../../src/components/DocPseudo/DocParams.tsx"],"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 { IParameter } from '@looker/sdk-codegen'\nimport type { FC } from 'react'\nimport React, { Fragment } from 'react'\n\nimport { DocParam } from './DocParam'\n\nexport interface DocArgsProps {\n parameters: IParameter[]\n}\n\nexport const DocParams: FC<DocArgsProps> = ({ parameters }) => (\n <>\n {parameters.map((a, index) => (\n <Fragment key={index}>\n {index ? ', ' : ''}\n <DocParam parameter={a} key={index} />\n </Fragment>\n ))}\n </>\n)\n"],"mappings":"AA2BA,OAAOA,KAAK,IAAIC,QAAQ,QAAQ,OAAO;AAEvC,SAASC,QAAQ,QAAQ,YAAY;AAMrC,OAAO,IAAMC,SAA2B,GAAGC,IAAA;EAAA,IAAC;IAAEC;EAAW,CAAC,GAAAD,IAAA;EAAA,OACxDJ,KAAA,CAAAM,aAAA,CAAAN,KAAA,CAAAC,QAAA,QACGI,UAAU,CAACE,GAAG,CAAC,CAACC,CAAC,EAAEC,KAAK,KACvBT,KAAA,CAAAM,aAAA,CAACL,QAAQ;IAACS,GAAG,EAAED;EAAM,GAClBA,KAAK,GAAG,IAAI,GAAG,EAAE,EAClBT,KAAA,CAAAM,aAAA,CAACJ,QAAQ;IAACS,SAAS,EAAEH,CAAE;IAACE,GAAG,EAAED;EAAM,CAAE,CAC7B,CACX,CACD,CAAC;AAAA,CACJ"}
@@ -1,19 +1,11 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.DocPrimaryResponse = void 0;
7
- var _react = _interopRequireDefault(require("react"));
8
- var _components = require("@looker/components");
9
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10
- var DocPrimaryResponse = _ref => {
1
+ import React from 'react';
2
+ import { Tooltip } from '@looker/components';
3
+ export var DocPrimaryResponse = _ref => {
11
4
  var {
12
5
  response
13
6
  } = _ref;
14
- return _react.default.createElement(_components.Tooltip, {
7
+ return React.createElement(Tooltip, {
15
8
  content: "".concat(response.description, " ").concat(response.mediaType)
16
- }, _react.default.createElement("span", null, response.type.name));
9
+ }, React.createElement("span", null, response.type.name));
17
10
  };
18
- exports.DocPrimaryResponse = DocPrimaryResponse;
19
11
  //# sourceMappingURL=DocPrimaryResponse.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DocPrimaryResponse.js","names":["_react","_interopRequireDefault","require","_components","obj","__esModule","default","DocPrimaryResponse","_ref","response","createElement","Tooltip","content","concat","description","mediaType","type","name","exports"],"sources":["../../../../src/components/DocPseudo/DocPrimaryResponse.tsx"],"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 { IMethodResponse } from '@looker/sdk-codegen'\nimport type { FC } from 'react'\nimport React from 'react'\nimport { Tooltip } from '@looker/components'\n\nexport interface DocPrimaryResponseProps {\n response: IMethodResponse\n}\n\nexport const DocPrimaryResponse: FC<DocPrimaryResponseProps> = ({\n response,\n}) => (\n <Tooltip content={`${response.description} ${response.mediaType}`}>\n <span>{response.type.name}</span>\n </Tooltip>\n)\n"],"mappings":";;;;;;AA2BA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AAA4C,SAAAD,uBAAAG,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAMrC,IAAMG,kBAA+C,GAAGC,IAAA;EAAA,IAAC;IAC9DC;EACF,CAAC,GAAAD,IAAA;EAAA,OACCR,MAAA,CAAAM,OAAA,CAAAI,aAAA,CAACP,WAAA,CAAAQ,OAAO;IAACC,OAAO,KAAAC,MAAA,CAAKJ,QAAQ,CAACK,WAAW,OAAAD,MAAA,CAAIJ,QAAQ,CAACM,SAAS;EAAG,GAChEf,MAAA,CAAAM,OAAA,CAAAI,aAAA,eAAOD,QAAQ,CAACO,IAAI,CAACC,IAAI,CAAQ,CACzB;AAAA,CACX;AAAAC,OAAA,CAAAX,kBAAA,GAAAA,kBAAA"}
1
+ {"version":3,"file":"DocPrimaryResponse.js","names":["React","Tooltip","DocPrimaryResponse","_ref","response","createElement","content","concat","description","mediaType","type","name"],"sources":["../../../../src/components/DocPseudo/DocPrimaryResponse.tsx"],"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 { IMethodResponse } from '@looker/sdk-codegen'\nimport type { FC } from 'react'\nimport React from 'react'\nimport { Tooltip } from '@looker/components'\n\nexport interface DocPrimaryResponseProps {\n response: IMethodResponse\n}\n\nexport const DocPrimaryResponse: FC<DocPrimaryResponseProps> = ({\n response,\n}) => (\n <Tooltip content={`${response.description} ${response.mediaType}`}>\n <span>{response.type.name}</span>\n </Tooltip>\n)\n"],"mappings":"AA2BA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,OAAO,QAAQ,oBAAoB;AAM5C,OAAO,IAAMC,kBAA+C,GAAGC,IAAA;EAAA,IAAC;IAC9DC;EACF,CAAC,GAAAD,IAAA;EAAA,OACCH,KAAA,CAAAK,aAAA,CAACJ,OAAO;IAACK,OAAO,KAAAC,MAAA,CAAKH,QAAQ,CAACI,WAAW,OAAAD,MAAA,CAAIH,QAAQ,CAACK,SAAS;EAAG,GAChET,KAAA,CAAAK,aAAA,eAAOD,QAAQ,CAACM,IAAI,CAACC,IAAW,CACzB,CAAC;AAAA,CACX"}
@@ -1,30 +1,22 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.DocPseudo = void 0;
7
- var _react = _interopRequireDefault(require("react"));
8
- var _components = require("@looker/components");
9
- var _DocPrimaryResponse = require("./DocPrimaryResponse");
10
- var _DocParams = require("./DocParams");
11
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
- var DocPseudo = _ref => {
1
+ import React from 'react';
2
+ import { Code, Flex } from '@looker/components';
3
+ import { DocPrimaryResponse } from './DocPrimaryResponse';
4
+ import { DocParams } from './DocParams';
5
+ export var DocPseudo = _ref => {
13
6
  var {
14
7
  method
15
8
  } = _ref;
16
9
  var args = method.allParams;
17
10
  var resType = method.primaryResponse;
18
- return _react.default.createElement(_components.Flex, {
11
+ return React.createElement(Flex, {
19
12
  alignItems: "flex-start"
20
- }, _react.default.createElement(_components.Code, {
13
+ }, React.createElement(Code, {
21
14
  fontSize: "small",
22
15
  fontWeight: "normal"
23
- }, "".concat(method.operationId, "("), _react.default.createElement(_DocParams.DocParams, {
16
+ }, "".concat(method.operationId, "("), React.createElement(DocParams, {
24
17
  parameters: args
25
- }), '): ', _react.default.createElement(_DocPrimaryResponse.DocPrimaryResponse, {
18
+ }), '): ', React.createElement(DocPrimaryResponse, {
26
19
  response: resType
27
20
  })));
28
21
  };
29
- exports.DocPseudo = DocPseudo;
30
22
  //# sourceMappingURL=DocPseudo.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DocPseudo.js","names":["_react","_interopRequireDefault","require","_components","_DocPrimaryResponse","_DocParams","obj","__esModule","default","DocPseudo","_ref","method","args","allParams","resType","primaryResponse","createElement","Flex","alignItems","Code","fontSize","fontWeight","concat","operationId","DocParams","parameters","DocPrimaryResponse","response","exports"],"sources":["../../../../src/components/DocPseudo/DocPseudo.tsx"],"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 from 'react'\nimport { Code, Flex } from '@looker/components'\nimport type { IMethod } from '@looker/sdk-codegen'\n\nimport { DocPrimaryResponse } from './DocPrimaryResponse'\nimport { DocParams } from './DocParams'\n\nexport interface PseudoProps {\n method: IMethod\n}\n\nexport const DocPseudo: FC<PseudoProps> = ({ method }) => {\n const args = method.allParams\n const resType = method.primaryResponse\n\n return (\n <Flex alignItems=\"flex-start\">\n <Code fontSize=\"small\" fontWeight=\"normal\">\n {`${method.operationId}(`}\n <DocParams parameters={args} />\n {'): '}\n <DocPrimaryResponse response={resType} />\n </Code>\n </Flex>\n )\n}\n"],"mappings":";;;;;;AA2BA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AAGA,IAAAE,mBAAA,GAAAF,OAAA;AACA,IAAAG,UAAA,GAAAH,OAAA;AAAuC,SAAAD,uBAAAK,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAMhC,IAAMG,SAA0B,GAAGC,IAAA,IAAgB;EAAA,IAAf;IAAEC;EAAO,CAAC,GAAAD,IAAA;EACnD,IAAME,IAAI,GAAGD,MAAM,CAACE,SAAS;EAC7B,IAAMC,OAAO,GAAGH,MAAM,CAACI,eAAe;EAEtC,OACEf,MAAA,CAAAQ,OAAA,CAAAQ,aAAA,CAACb,WAAA,CAAAc,IAAI;IAACC,UAAU,EAAC;EAAY,GAC3BlB,MAAA,CAAAQ,OAAA,CAAAQ,aAAA,CAACb,WAAA,CAAAgB,IAAI;IAACC,QAAQ,EAAC,OAAO;IAACC,UAAU,EAAC;EAAQ,MAAAC,MAAA,CACpCX,MAAM,CAACY,WAAW,QACtBvB,MAAA,CAAAQ,OAAA,CAAAQ,aAAA,CAACX,UAAA,CAAAmB,SAAS;IAACC,UAAU,EAAEb;EAAK,EAAG,EAC9B,KAAK,EACNZ,MAAA,CAAAQ,OAAA,CAAAQ,aAAA,CAACZ,mBAAA,CAAAsB,kBAAkB;IAACC,QAAQ,EAAEb;EAAQ,EAAG,CACpC,CACF;AAEX,CAAC;AAAAc,OAAA,CAAAnB,SAAA,GAAAA,SAAA"}
1
+ {"version":3,"file":"DocPseudo.js","names":["React","Code","Flex","DocPrimaryResponse","DocParams","DocPseudo","_ref","method","args","allParams","resType","primaryResponse","createElement","alignItems","fontSize","fontWeight","concat","operationId","parameters","response"],"sources":["../../../../src/components/DocPseudo/DocPseudo.tsx"],"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 from 'react'\nimport { Code, Flex } from '@looker/components'\nimport type { IMethod } from '@looker/sdk-codegen'\n\nimport { DocPrimaryResponse } from './DocPrimaryResponse'\nimport { DocParams } from './DocParams'\n\nexport interface PseudoProps {\n method: IMethod\n}\n\nexport const DocPseudo: FC<PseudoProps> = ({ method }) => {\n const args = method.allParams\n const resType = method.primaryResponse\n\n return (\n <Flex alignItems=\"flex-start\">\n <Code fontSize=\"small\" fontWeight=\"normal\">\n {`${method.operationId}(`}\n <DocParams parameters={args} />\n {'): '}\n <DocPrimaryResponse response={resType} />\n </Code>\n </Flex>\n )\n}\n"],"mappings":"AA2BA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,IAAI,QAAQ,oBAAoB;AAG/C,SAASC,kBAAkB,QAAQ,sBAAsB;AACzD,SAASC,SAAS,QAAQ,aAAa;AAMvC,OAAO,IAAMC,SAA0B,GAAGC,IAAA,IAAgB;EAAA,IAAf;IAAEC;EAAO,CAAC,GAAAD,IAAA;EACnD,IAAME,IAAI,GAAGD,MAAM,CAACE,SAAS;EAC7B,IAAMC,OAAO,GAAGH,MAAM,CAACI,eAAe;EAEtC,OACEX,KAAA,CAAAY,aAAA,CAACV,IAAI;IAACW,UAAU,EAAC;EAAY,GAC3Bb,KAAA,CAAAY,aAAA,CAACX,IAAI;IAACa,QAAQ,EAAC,OAAO;IAACC,UAAU,EAAC;EAAQ,MAAAC,MAAA,CACpCT,MAAM,CAACU,WAAW,QACtBjB,KAAA,CAAAY,aAAA,CAACR,SAAS;IAACc,UAAU,EAAEV;EAAK,CAAE,CAAC,EAC9B,KAAK,EACNR,KAAA,CAAAY,aAAA,CAACT,kBAAkB;IAACgB,QAAQ,EAAET;EAAQ,CAAE,CACpC,CACF,CAAC;AAEX,CAAC"}
@@ -1,13 +1,2 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- Object.defineProperty(exports, "DocPseudo", {
7
- enumerable: true,
8
- get: function get() {
9
- return _DocPseudo.DocPseudo;
10
- }
11
- });
12
- var _DocPseudo = require("./DocPseudo");
1
+ export { DocPseudo } from './DocPseudo';
13
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["_DocPseudo","require"],"sources":["../../../../src/components/DocPseudo/index.tsx"],"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 { DocPseudo } from './DocPseudo'\n"],"mappings":";;;;;;;;;;;AAyBA,IAAAA,UAAA,GAAAC,OAAA"}
1
+ {"version":3,"file":"index.js","names":["DocPseudo"],"sources":["../../../../src/components/DocPseudo/index.tsx"],"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 { DocPseudo } from './DocPseudo'\n"],"mappings":"AAyBA,SAASA,SAAS,QAAQ,aAAa"}
@@ -1,22 +1,14 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.DocRateLimited = void 0;
7
- var _react = _interopRequireDefault(require("react"));
8
- var _components = require("@looker/components");
9
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10
- var DocRateLimited = _ref => {
1
+ import React from 'react';
2
+ import { Code, Tooltip } from '@looker/components';
3
+ export var DocRateLimited = _ref => {
11
4
  var {
12
5
  method
13
6
  } = _ref;
14
- return _react.default.createElement(_react.default.Fragment, null, method.rateLimited && _react.default.createElement(_react.default.Fragment, null, _react.default.createElement(_components.Tooltip, {
7
+ return React.createElement(React.Fragment, null, method.rateLimited && React.createElement(React.Fragment, null, React.createElement(Tooltip, {
15
8
  textAlign: "left",
16
9
  content: 'This endpoint is rate limited.'
17
- }, _react.default.createElement(_components.Code, {
10
+ }, React.createElement(Code, {
18
11
  color: "palette.charcoal500"
19
12
  }, 'rate_limited'))));
20
13
  };
21
- exports.DocRateLimited = DocRateLimited;
22
14
  //# sourceMappingURL=DocRateLimited.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DocRateLimited.js","names":["_react","_interopRequireDefault","require","_components","obj","__esModule","default","DocRateLimited","_ref","method","createElement","Fragment","rateLimited","Tooltip","textAlign","content","Code","color","exports"],"sources":["../../../../src/components/DocRateLimited/DocRateLimited.tsx"],"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 from 'react'\nimport { Code, Tooltip } from '@looker/components'\nimport type { IMethod } from '@looker/sdk-codegen'\n\ninterface DocRateLimitedProps {\n method: IMethod\n}\nexport const DocRateLimited: FC<DocRateLimitedProps> = ({ method }) => (\n <>\n {method.rateLimited && (\n <>\n <Tooltip textAlign=\"left\" content={'This endpoint is rate limited.'}>\n <Code color=\"palette.charcoal500\">{'rate_limited'}</Code>\n </Tooltip>\n </>\n )}\n </>\n)\n"],"mappings":";;;;;;AA0BA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AAAkD,SAAAD,uBAAAG,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAM3C,IAAMG,cAAuC,GAAGC,IAAA;EAAA,IAAC;IAAEC;EAAO,CAAC,GAAAD,IAAA;EAAA,OAChER,MAAA,CAAAM,OAAA,CAAAI,aAAA,CAAAV,MAAA,CAAAM,OAAA,CAAAK,QAAA,QACGF,MAAM,CAACG,WAAW,IACjBZ,MAAA,CAAAM,OAAA,CAAAI,aAAA,CAAAV,MAAA,CAAAM,OAAA,CAAAK,QAAA,QACEX,MAAA,CAAAM,OAAA,CAAAI,aAAA,CAACP,WAAA,CAAAU,OAAO;IAACC,SAAS,EAAC,MAAM;IAACC,OAAO,EAAE;EAAiC,GAClEf,MAAA,CAAAM,OAAA,CAAAI,aAAA,CAACP,WAAA,CAAAa,IAAI;IAACC,KAAK,EAAC;EAAqB,GAAE,cAAc,CAAQ,CACjD,CAEb,CACA;AAAA,CACJ;AAAAC,OAAA,CAAAX,cAAA,GAAAA,cAAA"}
1
+ {"version":3,"file":"DocRateLimited.js","names":["React","Code","Tooltip","DocRateLimited","_ref","method","createElement","Fragment","rateLimited","textAlign","content","color"],"sources":["../../../../src/components/DocRateLimited/DocRateLimited.tsx"],"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 from 'react'\nimport { Code, Tooltip } from '@looker/components'\nimport type { IMethod } from '@looker/sdk-codegen'\n\ninterface DocRateLimitedProps {\n method: IMethod\n}\nexport const DocRateLimited: FC<DocRateLimitedProps> = ({ method }) => (\n <>\n {method.rateLimited && (\n <>\n <Tooltip textAlign=\"left\" content={'This endpoint is rate limited.'}>\n <Code color=\"palette.charcoal500\">{'rate_limited'}</Code>\n </Tooltip>\n </>\n )}\n </>\n)\n"],"mappings":"AA0BA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,OAAO,QAAQ,oBAAoB;AAMlD,OAAO,IAAMC,cAAuC,GAAGC,IAAA;EAAA,IAAC;IAAEC;EAAO,CAAC,GAAAD,IAAA;EAAA,OAChEJ,KAAA,CAAAM,aAAA,CAAAN,KAAA,CAAAO,QAAA,QACGF,MAAM,CAACG,WAAW,IACjBR,KAAA,CAAAM,aAAA,CAAAN,KAAA,CAAAO,QAAA,QACEP,KAAA,CAAAM,aAAA,CAACJ,OAAO;IAACO,SAAS,EAAC,MAAM;IAACC,OAAO,EAAE;EAAiC,GAClEV,KAAA,CAAAM,aAAA,CAACL,IAAI;IAACU,KAAK,EAAC;EAAqB,GAAE,cAAqB,CACjD,CACT,CAEJ,CAAC;AAAA,CACJ"}
@@ -1,13 +1,2 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- Object.defineProperty(exports, "DocRateLimited", {
7
- enumerable: true,
8
- get: function get() {
9
- return _DocRateLimited.DocRateLimited;
10
- }
11
- });
12
- var _DocRateLimited = require("./DocRateLimited");
1
+ export { DocRateLimited } from './DocRateLimited';
13
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["_DocRateLimited","require"],"sources":["../../../../src/components/DocRateLimited/index.ts"],"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 { DocRateLimited } from './DocRateLimited'\n"],"mappings":";;;;;;;;;;;AAyBA,IAAAA,eAAA,GAAAC,OAAA"}
1
+ {"version":3,"file":"index.js","names":["DocRateLimited"],"sources":["../../../../src/components/DocRateLimited/index.ts"],"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 { DocRateLimited } from './DocRateLimited'\n"],"mappings":"AAyBA,SAASA,cAAc,QAAQ,kBAAkB"}
@@ -1,16 +1,9 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.DocReferences = void 0;
7
- var _react = _interopRequireDefault(require("react"));
8
- var _runIt = require("@looker/run-it");
9
- var _reactRedux = require("react-redux");
10
- var _state = require("../../state");
11
- var _utils = require("./utils");
12
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
- var DocReferences = _ref => {
1
+ import React from 'react';
2
+ import { CollapserCard } from '@looker/run-it';
3
+ import { useSelector } from 'react-redux';
4
+ import { selectSearchPattern } from '../../state';
5
+ import { DocReferenceItems } from './utils';
6
+ export var DocReferences = _ref => {
14
7
  var {
15
8
  typesUsed,
16
9
  specKey,
@@ -18,12 +11,11 @@ var DocReferences = _ref => {
18
11
  methodsUsedBy = [],
19
12
  typesUsedBy = []
20
13
  } = _ref;
21
- var searchPattern = (0, _reactRedux.useSelector)(_state.selectSearchPattern);
22
- if (typesUsed.length === 0 && methodsUsedBy.length === 0 && typesUsedBy.length === 0) return _react.default.createElement(_react.default.Fragment, null);
23
- return _react.default.createElement(_runIt.CollapserCard, {
14
+ var searchPattern = useSelector(selectSearchPattern);
15
+ if (typesUsed.length === 0 && methodsUsedBy.length === 0 && typesUsedBy.length === 0) return React.createElement(React.Fragment, null);
16
+ return React.createElement(CollapserCard, {
24
17
  heading: "References",
25
18
  id: "references"
26
- }, _react.default.createElement(_react.default.Fragment, null, (0, _utils.DocReferenceItems)('Referenced Types:', typesUsed, api, specKey, searchPattern), (0, _utils.DocReferenceItems)('Used by types:', typesUsedBy, api, specKey, searchPattern), (0, _utils.DocReferenceItems)('Used by methods:', methodsUsedBy, api, specKey, searchPattern)));
19
+ }, React.createElement(React.Fragment, null, DocReferenceItems('Referenced Types:', typesUsed, api, specKey, searchPattern), DocReferenceItems('Used by types:', typesUsedBy, api, specKey, searchPattern), DocReferenceItems('Used by methods:', methodsUsedBy, api, specKey, searchPattern)));
27
20
  };
28
- exports.DocReferences = DocReferences;
29
21
  //# sourceMappingURL=DocReferences.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DocReferences.js","names":["_react","_interopRequireDefault","require","_runIt","_reactRedux","_state","_utils","obj","__esModule","default","DocReferences","_ref","typesUsed","specKey","api","methodsUsedBy","typesUsedBy","searchPattern","useSelector","selectSearchPattern","length","createElement","Fragment","CollapserCard","heading","id","DocReferenceItems","exports"],"sources":["../../../../src/components/DocReferences/DocReferences.tsx"],"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 from 'react'\nimport type { ApiModel, IMethod, IType } from '@looker/sdk-codegen'\nimport { CollapserCard } from '@looker/run-it'\n\nimport { useSelector } from 'react-redux'\nimport { selectSearchPattern } from '../../state'\nimport { DocReferenceItems } from './utils'\n\ninterface DocReferencesProps {\n typesUsed: IType[]\n methodsUsedBy?: IMethod[]\n typesUsedBy?: IType[]\n specKey: string\n api: ApiModel\n}\n\n/**\n * It renders links to the given types and/or methods references\n */\nexport const DocReferences: FC<DocReferencesProps> = ({\n typesUsed,\n specKey,\n api,\n methodsUsedBy = [],\n typesUsedBy = [],\n}) => {\n const searchPattern = useSelector(selectSearchPattern)\n\n if (\n typesUsed.length === 0 &&\n methodsUsedBy.length === 0 &&\n typesUsedBy.length === 0\n )\n return <></>\n\n return (\n <CollapserCard heading=\"References\" id=\"references\">\n <>\n {DocReferenceItems(\n 'Referenced Types:',\n typesUsed,\n api,\n specKey,\n searchPattern\n )}\n {DocReferenceItems(\n 'Used by types:',\n typesUsedBy,\n api,\n specKey,\n searchPattern\n )}\n {DocReferenceItems(\n 'Used by methods:',\n methodsUsedBy,\n api,\n specKey,\n searchPattern\n )}\n </>\n </CollapserCard>\n )\n}\n"],"mappings":";;;;;;AA2BA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,MAAA,GAAAD,OAAA;AAEA,IAAAE,WAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,MAAA,GAAAJ,OAAA;AAA2C,SAAAD,uBAAAM,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAapC,IAAMG,aAAqC,GAAGC,IAAA,IAM/C;EAAA,IANgD;IACpDC,SAAS;IACTC,OAAO;IACPC,GAAG;IACHC,aAAa,GAAG,EAAE;IAClBC,WAAW,GAAG;EAChB,CAAC,GAAAL,IAAA;EACC,IAAMM,aAAa,GAAG,IAAAC,uBAAW,EAACC,0BAAmB,CAAC;EAEtD,IACEP,SAAS,CAACQ,MAAM,KAAK,CAAC,IACtBL,aAAa,CAACK,MAAM,KAAK,CAAC,IAC1BJ,WAAW,CAACI,MAAM,KAAK,CAAC,EAExB,OAAOpB,MAAA,CAAAS,OAAA,CAAAY,aAAA,CAAArB,MAAA,CAAAS,OAAA,CAAAa,QAAA,OAAK;EAEd,OACEtB,MAAA,CAAAS,OAAA,CAAAY,aAAA,CAAClB,MAAA,CAAAoB,aAAa;IAACC,OAAO,EAAC,YAAY;IAACC,EAAE,EAAC;EAAY,GACjDzB,MAAA,CAAAS,OAAA,CAAAY,aAAA,CAAArB,MAAA,CAAAS,OAAA,CAAAa,QAAA,QACG,IAAAI,wBAAiB,EAChB,mBAAmB,EACnBd,SAAS,EACTE,GAAG,EACHD,OAAO,EACPI,aAAa,CACd,EACA,IAAAS,wBAAiB,EAChB,gBAAgB,EAChBV,WAAW,EACXF,GAAG,EACHD,OAAO,EACPI,aAAa,CACd,EACA,IAAAS,wBAAiB,EAChB,kBAAkB,EAClBX,aAAa,EACbD,GAAG,EACHD,OAAO,EACPI,aAAa,CACd,CACA,CACW;AAEpB,CAAC;AAAAU,OAAA,CAAAjB,aAAA,GAAAA,aAAA"}
1
+ {"version":3,"file":"DocReferences.js","names":["React","CollapserCard","useSelector","selectSearchPattern","DocReferenceItems","DocReferences","_ref","typesUsed","specKey","api","methodsUsedBy","typesUsedBy","searchPattern","length","createElement","Fragment","heading","id"],"sources":["../../../../src/components/DocReferences/DocReferences.tsx"],"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 from 'react'\nimport type { ApiModel, IMethod, IType } from '@looker/sdk-codegen'\nimport { CollapserCard } from '@looker/run-it'\n\nimport { useSelector } from 'react-redux'\nimport { selectSearchPattern } from '../../state'\nimport { DocReferenceItems } from './utils'\n\ninterface DocReferencesProps {\n typesUsed: IType[]\n methodsUsedBy?: IMethod[]\n typesUsedBy?: IType[]\n specKey: string\n api: ApiModel\n}\n\n/**\n * It renders links to the given types and/or methods references\n */\nexport const DocReferences: FC<DocReferencesProps> = ({\n typesUsed,\n specKey,\n api,\n methodsUsedBy = [],\n typesUsedBy = [],\n}) => {\n const searchPattern = useSelector(selectSearchPattern)\n\n if (\n typesUsed.length === 0 &&\n methodsUsedBy.length === 0 &&\n typesUsedBy.length === 0\n )\n return <></>\n\n return (\n <CollapserCard heading=\"References\" id=\"references\">\n <>\n {DocReferenceItems(\n 'Referenced Types:',\n typesUsed,\n api,\n specKey,\n searchPattern\n )}\n {DocReferenceItems(\n 'Used by types:',\n typesUsedBy,\n api,\n specKey,\n searchPattern\n )}\n {DocReferenceItems(\n 'Used by methods:',\n methodsUsedBy,\n api,\n specKey,\n searchPattern\n )}\n </>\n </CollapserCard>\n )\n}\n"],"mappings":"AA2BA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAASC,aAAa,QAAQ,gBAAgB;AAE9C,SAASC,WAAW,QAAQ,aAAa;AACzC,SAASC,mBAAmB,QAAQ,aAAa;AACjD,SAASC,iBAAiB,QAAQ,SAAS;AAa3C,OAAO,IAAMC,aAAqC,GAAGC,IAAA,IAM/C;EAAA,IANgD;IACpDC,SAAS;IACTC,OAAO;IACPC,GAAG;IACHC,aAAa,GAAG,EAAE;IAClBC,WAAW,GAAG;EAChB,CAAC,GAAAL,IAAA;EACC,IAAMM,aAAa,GAAGV,WAAW,CAACC,mBAAmB,CAAC;EAEtD,IACEI,SAAS,CAACM,MAAM,KAAK,CAAC,IACtBH,aAAa,CAACG,MAAM,KAAK,CAAC,IAC1BF,WAAW,CAACE,MAAM,KAAK,CAAC,EAExB,OAAOb,KAAA,CAAAc,aAAA,CAAAd,KAAA,CAAAe,QAAA,MAAI,CAAC;EAEd,OACEf,KAAA,CAAAc,aAAA,CAACb,aAAa;IAACe,OAAO,EAAC,YAAY;IAACC,EAAE,EAAC;EAAY,GACjDjB,KAAA,CAAAc,aAAA,CAAAd,KAAA,CAAAe,QAAA,QACGX,iBAAiB,CAChB,mBAAmB,EACnBG,SAAS,EACTE,GAAG,EACHD,OAAO,EACPI,aACF,CAAC,EACAR,iBAAiB,CAChB,gBAAgB,EAChBO,WAAW,EACXF,GAAG,EACHD,OAAO,EACPI,aACF,CAAC,EACAR,iBAAiB,CAChB,kBAAkB,EAClBM,aAAa,EACbD,GAAG,EACHD,OAAO,EACPI,aACF,CACA,CACW,CAAC;AAEpB,CAAC"}
@@ -1,13 +1,2 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- Object.defineProperty(exports, "DocReferences", {
7
- enumerable: true,
8
- get: function get() {
9
- return _DocReferences.DocReferences;
10
- }
11
- });
12
- var _DocReferences = require("./DocReferences");
1
+ export { DocReferences } from './DocReferences';
13
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["_DocReferences","require"],"sources":["../../../../src/components/DocReferences/index.ts"],"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 { DocReferences } from './DocReferences'\n"],"mappings":";;;;;;;;;;;AAyBA,IAAAA,cAAA,GAAAC,OAAA"}
1
+ {"version":3,"file":"index.js","names":["DocReferences"],"sources":["../../../../src/components/DocReferences/index.ts"],"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 { DocReferences } from './DocReferences'\n"],"mappings":"AAyBA,SAASA,aAAa,QAAQ,iBAAiB"}
@@ -1,24 +1,16 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.DocReferenceItems = void 0;
7
- var _react = _interopRequireDefault(require("react"));
8
- var _reactRouterDom = require("react-router-dom");
9
- var _runIt = require("@looker/run-it");
10
- var _utils = require("../../utils");
11
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
- var DocReferenceItems = (heading, items, api, specKey, pattern) => {
13
- if (items.length === 0) return _react.default.createElement(_react.default.Fragment, null);
14
- return _react.default.createElement(_react.default.Fragment, null, _react.default.createElement(_runIt.RunItHeading, {
1
+ import React from 'react';
2
+ import { Link } from 'react-router-dom';
3
+ import { RunItHeading } from '@looker/run-it';
4
+ import { buildPath, highlightHTML } from '../../utils';
5
+ export var DocReferenceItems = (heading, items, api, specKey, pattern) => {
6
+ if (items.length === 0) return React.createElement(React.Fragment, null);
7
+ return React.createElement(React.Fragment, null, React.createElement(RunItHeading, {
15
8
  as: "h4"
16
- }, heading), items.map((item, index) => _react.default.createElement("span", {
9
+ }, heading), items.map((item, index) => React.createElement("span", {
17
10
  className: "doc-link",
18
11
  key: item.name
19
- }, index ? ', ' : '', _react.default.createElement(_reactRouterDom.Link, {
20
- to: (0, _utils.buildPath)(api, item, specKey)
21
- }, (0, _utils.highlightHTML)(pattern, item.name)))));
12
+ }, index ? ', ' : '', React.createElement(Link, {
13
+ to: buildPath(api, item, specKey)
14
+ }, highlightHTML(pattern, item.name)))));
22
15
  };
23
- exports.DocReferenceItems = DocReferenceItems;
24
16
  //# sourceMappingURL=utils.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","names":["_react","_interopRequireDefault","require","_reactRouterDom","_runIt","_utils","obj","__esModule","default","DocReferenceItems","heading","items","api","specKey","pattern","length","createElement","Fragment","RunItHeading","as","map","item","index","className","key","name","Link","to","buildPath","highlightHTML","exports"],"sources":["../../../../src/components/DocReferences/utils.tsx"],"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 React from 'react'\nimport type { ApiModel, IMethod, IType } from '@looker/sdk-codegen'\nimport { Link } from 'react-router-dom'\nimport { RunItHeading } from '@looker/run-it'\nimport { buildPath, highlightHTML } from '../../utils'\n\n/**\n * Renders a heading and links to all item types\n */\nexport const DocReferenceItems = (\n heading: string,\n items: (IType | IMethod)[],\n api: ApiModel,\n specKey: string,\n pattern: string\n) => {\n if (items.length === 0) return <></>\n\n return (\n <>\n <RunItHeading as=\"h4\">{heading}</RunItHeading>\n {items.map((item, index) => (\n <span className=\"doc-link\" key={item.name}>\n {index ? ', ' : ''}\n <Link to={buildPath(api, item, specKey)}>\n {highlightHTML(pattern, item.name)}\n </Link>\n </span>\n ))}\n </>\n )\n}\n"],"mappings":";;;;;;AAyBA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,eAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AAAsD,SAAAD,uBAAAK,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAK/C,IAAMG,iBAAiB,GAAGA,CAC/BC,OAAe,EACfC,KAA0B,EAC1BC,GAAa,EACbC,OAAe,EACfC,OAAe,KACZ;EACH,IAAIH,KAAK,CAACI,MAAM,KAAK,CAAC,EAAE,OAAOf,MAAA,CAAAQ,OAAA,CAAAQ,aAAA,CAAAhB,MAAA,CAAAQ,OAAA,CAAAS,QAAA,OAAK;EAEpC,OACEjB,MAAA,CAAAQ,OAAA,CAAAQ,aAAA,CAAAhB,MAAA,CAAAQ,OAAA,CAAAS,QAAA,QACEjB,MAAA,CAAAQ,OAAA,CAAAQ,aAAA,CAACZ,MAAA,CAAAc,YAAY;IAACC,EAAE,EAAC;EAAI,GAAET,OAAO,CAAgB,EAC7CC,KAAK,CAACS,GAAG,CAAC,CAACC,IAAI,EAAEC,KAAK,KACrBtB,MAAA,CAAAQ,OAAA,CAAAQ,aAAA;IAAMO,SAAS,EAAC,UAAU;IAACC,GAAG,EAAEH,IAAI,CAACI;EAAK,GACvCH,KAAK,GAAG,IAAI,GAAG,EAAE,EAClBtB,MAAA,CAAAQ,OAAA,CAAAQ,aAAA,CAACb,eAAA,CAAAuB,IAAI;IAACC,EAAE,EAAE,IAAAC,gBAAS,EAAChB,GAAG,EAAES,IAAI,EAAER,OAAO;EAAE,GACrC,IAAAgB,oBAAa,EAACf,OAAO,EAAEO,IAAI,CAACI,IAAI,CAAC,CAC7B,CAEV,CAAC,CACD;AAEP,CAAC;AAAAK,OAAA,CAAArB,iBAAA,GAAAA,iBAAA"}
1
+ {"version":3,"file":"utils.js","names":["React","Link","RunItHeading","buildPath","highlightHTML","DocReferenceItems","heading","items","api","specKey","pattern","length","createElement","Fragment","as","map","item","index","className","key","name","to"],"sources":["../../../../src/components/DocReferences/utils.tsx"],"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 React from 'react'\nimport type { ApiModel, IMethod, IType } from '@looker/sdk-codegen'\nimport { Link } from 'react-router-dom'\nimport { RunItHeading } from '@looker/run-it'\nimport { buildPath, highlightHTML } from '../../utils'\n\n/**\n * Renders a heading and links to all item types\n */\nexport const DocReferenceItems = (\n heading: string,\n items: (IType | IMethod)[],\n api: ApiModel,\n specKey: string,\n pattern: string\n) => {\n if (items.length === 0) return <></>\n\n return (\n <>\n <RunItHeading as=\"h4\">{heading}</RunItHeading>\n {items.map((item, index) => (\n <span className=\"doc-link\" key={item.name}>\n {index ? ', ' : ''}\n <Link to={buildPath(api, item, specKey)}>\n {highlightHTML(pattern, item.name)}\n </Link>\n </span>\n ))}\n </>\n )\n}\n"],"mappings":"AAyBA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAASC,IAAI,QAAQ,kBAAkB;AACvC,SAASC,YAAY,QAAQ,gBAAgB;AAC7C,SAASC,SAAS,EAAEC,aAAa,QAAQ,aAAa;AAKtD,OAAO,IAAMC,iBAAiB,GAAGA,CAC/BC,OAAe,EACfC,KAA0B,EAC1BC,GAAa,EACbC,OAAe,EACfC,OAAe,KACZ;EACH,IAAIH,KAAK,CAACI,MAAM,KAAK,CAAC,EAAE,OAAOX,KAAA,CAAAY,aAAA,CAAAZ,KAAA,CAAAa,QAAA,MAAI,CAAC;EAEpC,OACEb,KAAA,CAAAY,aAAA,CAAAZ,KAAA,CAAAa,QAAA,QACEb,KAAA,CAAAY,aAAA,CAACV,YAAY;IAACY,EAAE,EAAC;EAAI,GAAER,OAAsB,CAAC,EAC7CC,KAAK,CAACQ,GAAG,CAAC,CAACC,IAAI,EAAEC,KAAK,KACrBjB,KAAA,CAAAY,aAAA;IAAMM,SAAS,EAAC,UAAU;IAACC,GAAG,EAAEH,IAAI,CAACI;EAAK,GACvCH,KAAK,GAAG,IAAI,GAAG,EAAE,EAClBjB,KAAA,CAAAY,aAAA,CAACX,IAAI;IAACoB,EAAE,EAAElB,SAAS,CAACK,GAAG,EAAEQ,IAAI,EAAEP,OAAO;EAAE,GACrCL,aAAa,CAACM,OAAO,EAAEM,IAAI,CAACI,IAAI,CAC7B,CACF,CACP,CACD,CAAC;AAEP,CAAC"}