@looker/api-explorer 0.9.43-alpha.1650 → 0.9.43

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 (618) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/jest.config.js +4 -1
  3. package/lib/ApiExplorer.js +3 -33
  4. package/lib/ApiExplorer.js.map +1 -1
  5. package/lib/App.js +1 -12
  6. package/lib/App.js.map +1 -1
  7. package/lib/StandaloneApiExplorer.js +0 -17
  8. package/lib/StandaloneApiExplorer.js.map +1 -1
  9. package/lib/components/Banner/Banner.js +0 -14
  10. package/lib/components/Banner/Banner.js.map +1 -1
  11. package/lib/components/Banner/index.js +0 -1
  12. package/lib/components/Banner/index.js.map +1 -1
  13. package/lib/components/DocActivityType/DocActivityType.js +0 -5
  14. package/lib/components/DocActivityType/DocActivityType.js.map +1 -1
  15. package/lib/components/DocActivityType/index.js +0 -1
  16. package/lib/components/DocActivityType/index.js.map +1 -1
  17. package/lib/components/DocCode/DocCode.js +0 -8
  18. package/lib/components/DocCode/DocCode.js.map +1 -1
  19. package/lib/components/DocCode/index.js +0 -1
  20. package/lib/components/DocCode/index.js.map +1 -1
  21. package/lib/components/DocMarkdown/DocMarkdown.js +0 -12
  22. package/lib/components/DocMarkdown/DocMarkdown.js.map +1 -1
  23. package/lib/components/DocMarkdown/index.js +0 -1
  24. package/lib/components/DocMarkdown/index.js.map +1 -1
  25. package/lib/components/DocMarkdown/utils.js +0 -5
  26. package/lib/components/DocMarkdown/utils.js.map +1 -1
  27. package/lib/components/DocMethodSummary/DocMethodSummary.js +0 -8
  28. package/lib/components/DocMethodSummary/DocMethodSummary.js.map +1 -1
  29. package/lib/components/DocMethodSummary/DocSummaryStatus.js +0 -6
  30. package/lib/components/DocMethodSummary/DocSummaryStatus.js.map +1 -1
  31. package/lib/components/DocMethodSummary/index.js +0 -3
  32. package/lib/components/DocMethodSummary/index.js.map +1 -1
  33. package/lib/components/DocMethodSummary/utils.js +1 -25
  34. package/lib/components/DocMethodSummary/utils.js.map +1 -1
  35. package/lib/components/DocPseudo/DocParam.js +0 -6
  36. package/lib/components/DocPseudo/DocParam.js.map +1 -1
  37. package/lib/components/DocPseudo/DocParams.js +0 -6
  38. package/lib/components/DocPseudo/DocParams.js.map +1 -1
  39. package/lib/components/DocPseudo/DocPrimaryResponse.js +0 -5
  40. package/lib/components/DocPseudo/DocPrimaryResponse.js.map +1 -1
  41. package/lib/components/DocPseudo/DocPseudo.js +0 -7
  42. package/lib/components/DocPseudo/DocPseudo.js.map +1 -1
  43. package/lib/components/DocPseudo/index.js +0 -1
  44. package/lib/components/DocPseudo/index.js.map +1 -1
  45. package/lib/components/DocRateLimited/DocRateLimited.js +0 -5
  46. package/lib/components/DocRateLimited/DocRateLimited.js.map +1 -1
  47. package/lib/components/DocRateLimited/index.js +0 -1
  48. package/lib/components/DocRateLimited/index.js.map +1 -1
  49. package/lib/components/DocReferences/DocReferences.js +0 -8
  50. package/lib/components/DocReferences/DocReferences.js.map +1 -1
  51. package/lib/components/DocReferences/index.js +0 -1
  52. package/lib/components/DocReferences/index.js.map +1 -1
  53. package/lib/components/DocReferences/utils.js +0 -7
  54. package/lib/components/DocReferences/utils.js.map +1 -1
  55. package/lib/components/DocSDKs/DocDeclarations.js +0 -6
  56. package/lib/components/DocSDKs/DocDeclarations.js.map +1 -1
  57. package/lib/components/DocSDKs/DocSDKs.js +0 -15
  58. package/lib/components/DocSDKs/DocSDKs.js.map +1 -1
  59. package/lib/components/DocSDKs/index.js +0 -1
  60. package/lib/components/DocSDKs/index.js.map +1 -1
  61. package/lib/components/DocSDKs/utils.js +0 -4
  62. package/lib/components/DocSDKs/utils.js.map +1 -1
  63. package/lib/components/DocSchema/DocSchema.js +0 -6
  64. package/lib/components/DocSchema/DocSchema.js.map +1 -1
  65. package/lib/components/DocSchema/index.js +0 -1
  66. package/lib/components/DocSchema/index.js.map +1 -1
  67. package/lib/components/DocSdkUsage/DocSdkExampleCell.js +0 -6
  68. package/lib/components/DocSdkUsage/DocSdkExampleCell.js.map +1 -1
  69. package/lib/components/DocSdkUsage/DocSdkUsage.js +0 -14
  70. package/lib/components/DocSdkUsage/DocSdkUsage.js.map +1 -1
  71. package/lib/components/DocSdkUsage/index.js +0 -1
  72. package/lib/components/DocSdkUsage/index.js.map +1 -1
  73. package/lib/components/DocSdkUsage/utils.js +2 -11
  74. package/lib/components/DocSdkUsage/utils.js.map +1 -1
  75. package/lib/components/DocSource/DocSource.js +0 -11
  76. package/lib/components/DocSource/DocSource.js.map +1 -1
  77. package/lib/components/DocSource/index.js +0 -1
  78. package/lib/components/DocSource/index.js.map +1 -1
  79. package/lib/components/DocStatus/DocStatus.js +0 -7
  80. package/lib/components/DocStatus/DocStatus.js.map +1 -1
  81. package/lib/components/DocStatus/index.js +0 -1
  82. package/lib/components/DocStatus/index.js.map +1 -1
  83. package/lib/components/DocTitle/DocTitle.js +1 -7
  84. package/lib/components/DocTitle/DocTitle.js.map +1 -1
  85. package/lib/components/DocTitle/index.js +0 -1
  86. package/lib/components/DocTitle/index.js.map +1 -1
  87. package/lib/components/DocTypeSummary/DocTypeSummary.js +0 -8
  88. package/lib/components/DocTypeSummary/DocTypeSummary.js.map +1 -1
  89. package/lib/components/DocTypeSummary/index.js +0 -1
  90. package/lib/components/DocTypeSummary/index.js.map +1 -1
  91. package/lib/components/ErrorBoundary/ErrorBoundary.js +0 -12
  92. package/lib/components/ErrorBoundary/ErrorBoundary.js.map +1 -1
  93. package/lib/components/ErrorBoundary/components/SomethingWentWrong/SomethingWentWrong.js +0 -9
  94. package/lib/components/ErrorBoundary/components/SomethingWentWrong/SomethingWentWrong.js.map +1 -1
  95. package/lib/components/ErrorBoundary/components/SomethingWentWrong/components/SomethingWentWrongGraphic/SomethingWentWrongGraphic.js +0 -5
  96. package/lib/components/ErrorBoundary/components/SomethingWentWrong/components/SomethingWentWrongGraphic/SomethingWentWrongGraphic.js.map +1 -1
  97. package/lib/components/ErrorBoundary/components/SomethingWentWrong/components/SomethingWentWrongGraphic/index.js +0 -1
  98. package/lib/components/ErrorBoundary/components/SomethingWentWrong/components/SomethingWentWrongGraphic/index.js.map +1 -1
  99. package/lib/components/ErrorBoundary/components/SomethingWentWrong/components/index.js +0 -1
  100. package/lib/components/ErrorBoundary/components/SomethingWentWrong/components/index.js.map +1 -1
  101. package/lib/components/ErrorBoundary/components/SomethingWentWrong/index.js +0 -1
  102. package/lib/components/ErrorBoundary/components/SomethingWentWrong/index.js.map +1 -1
  103. package/lib/components/ErrorBoundary/index.js +0 -1
  104. package/lib/components/ErrorBoundary/index.js.map +1 -1
  105. package/lib/components/ExploreType/ExploreProperty.js +2 -33
  106. package/lib/components/ExploreType/ExploreProperty.js.map +1 -1
  107. package/lib/components/ExploreType/ExploreType.js +1 -13
  108. package/lib/components/ExploreType/ExploreType.js.map +1 -1
  109. package/lib/components/ExploreType/exploreUtils.js +1 -44
  110. package/lib/components/ExploreType/exploreUtils.js.map +1 -1
  111. package/lib/components/ExploreType/index.js +24 -27
  112. package/lib/components/ExploreType/index.js.map +1 -1
  113. package/lib/components/Header/Header.js +1 -12
  114. package/lib/components/Header/Header.js.map +1 -1
  115. package/lib/components/Header/index.js +6 -7
  116. package/lib/components/Header/index.js.map +1 -1
  117. package/lib/components/Link/Link.js +1 -5
  118. package/lib/components/Link/Link.js.map +1 -1
  119. package/lib/components/Link/index.js +0 -1
  120. package/lib/components/Link/index.js.map +1 -1
  121. package/lib/components/SelectorContainer/ApiSpecSelector.js +0 -11
  122. package/lib/components/SelectorContainer/ApiSpecSelector.js.map +1 -1
  123. package/lib/components/SelectorContainer/SdkLanguageSelector.js +0 -13
  124. package/lib/components/SelectorContainer/SdkLanguageSelector.js.map +1 -1
  125. package/lib/components/SelectorContainer/SelectorContainer.js +5 -19
  126. package/lib/components/SelectorContainer/SelectorContainer.js.map +1 -1
  127. package/lib/components/SelectorContainer/index.js +0 -1
  128. package/lib/components/SelectorContainer/index.js.map +1 -1
  129. package/lib/components/SelectorContainer/utils.js +0 -4
  130. package/lib/components/SelectorContainer/utils.js.map +1 -1
  131. package/lib/components/SideNav/SearchMessage.js +0 -6
  132. package/lib/components/SideNav/SearchMessage.js.map +1 -1
  133. package/lib/components/SideNav/SideNav.js +1 -30
  134. package/lib/components/SideNav/SideNav.js.map +1 -1
  135. package/lib/components/SideNav/SideNavMethodTags.js +1 -6
  136. package/lib/components/SideNav/SideNavMethodTags.js.map +1 -1
  137. package/lib/components/SideNav/SideNavMethods.js +0 -16
  138. package/lib/components/SideNav/SideNavMethods.js.map +1 -1
  139. package/lib/components/SideNav/SideNavTypeTags.js +1 -6
  140. package/lib/components/SideNav/SideNavTypeTags.js.map +1 -1
  141. package/lib/components/SideNav/SideNavTypes.js +1 -17
  142. package/lib/components/SideNav/SideNavTypes.js.map +1 -1
  143. package/lib/components/SideNav/index.js +0 -1
  144. package/lib/components/SideNav/index.js.map +1 -1
  145. package/lib/components/SideNav/searchUtils.js +1 -8
  146. package/lib/components/SideNav/searchUtils.js.map +1 -1
  147. package/lib/components/common/Loader.js +0 -5
  148. package/lib/components/common/Loader.js.map +1 -1
  149. package/lib/components/common/common.js +2 -13
  150. package/lib/components/common/common.js.map +1 -1
  151. package/lib/components/common/index.js +0 -4
  152. package/lib/components/common/index.js.map +1 -1
  153. package/lib/components/index.js +32 -54
  154. package/lib/components/index.js.map +1 -1
  155. package/lib/custom.d.js.map +1 -1
  156. package/lib/esm/ApiExplorer.js +65 -68
  157. package/lib/esm/ApiExplorer.js.map +1 -1
  158. package/lib/esm/App.js +11 -12
  159. package/lib/esm/App.js.map +1 -1
  160. package/lib/esm/StandaloneApiExplorer.js +29 -24
  161. package/lib/esm/StandaloneApiExplorer.js.map +1 -1
  162. package/lib/esm/components/Banner/Banner.js +17 -15
  163. package/lib/esm/components/Banner/Banner.js.map +1 -1
  164. package/lib/esm/components/Banner/index.js +12 -1
  165. package/lib/esm/components/Banner/index.js.map +1 -1
  166. package/lib/esm/components/DocActivityType/DocActivityType.js +15 -7
  167. package/lib/esm/components/DocActivityType/DocActivityType.js.map +1 -1
  168. package/lib/esm/components/DocActivityType/index.js +12 -1
  169. package/lib/esm/components/DocActivityType/index.js.map +1 -1
  170. package/lib/esm/components/DocCode/DocCode.js +17 -9
  171. package/lib/esm/components/DocCode/DocCode.js.map +1 -1
  172. package/lib/esm/components/DocCode/index.js +12 -1
  173. package/lib/esm/components/DocCode/index.js.map +1 -1
  174. package/lib/esm/components/DocMarkdown/DocMarkdown.js +21 -15
  175. package/lib/esm/components/DocMarkdown/DocMarkdown.js.map +1 -1
  176. package/lib/esm/components/DocMarkdown/index.js +12 -1
  177. package/lib/esm/components/DocMarkdown/index.js.map +1 -1
  178. package/lib/esm/components/DocMarkdown/utils.js +10 -3
  179. package/lib/esm/components/DocMarkdown/utils.js.map +1 -1
  180. package/lib/esm/components/DocMethodSummary/DocMethodSummary.js +23 -15
  181. package/lib/esm/components/DocMethodSummary/DocMethodSummary.js.map +1 -1
  182. package/lib/esm/components/DocMethodSummary/DocSummaryStatus.js +15 -7
  183. package/lib/esm/components/DocMethodSummary/DocSummaryStatus.js.map +1 -1
  184. package/lib/esm/components/DocMethodSummary/index.js +26 -3
  185. package/lib/esm/components/DocMethodSummary/index.js.map +1 -1
  186. package/lib/esm/components/DocMethodSummary/utils.js +28 -32
  187. package/lib/esm/components/DocMethodSummary/utils.js.map +1 -1
  188. package/lib/esm/components/DocPseudo/DocParam.js +15 -7
  189. package/lib/esm/components/DocPseudo/DocParam.js.map +1 -1
  190. package/lib/esm/components/DocPseudo/DocParams.js +14 -5
  191. package/lib/esm/components/DocPseudo/DocParams.js.map +1 -1
  192. package/lib/esm/components/DocPseudo/DocPrimaryResponse.js +13 -5
  193. package/lib/esm/components/DocPseudo/DocPrimaryResponse.js.map +1 -1
  194. package/lib/esm/components/DocPseudo/DocPseudo.js +17 -9
  195. package/lib/esm/components/DocPseudo/DocPseudo.js.map +1 -1
  196. package/lib/esm/components/DocPseudo/index.js +12 -1
  197. package/lib/esm/components/DocPseudo/index.js.map +1 -1
  198. package/lib/esm/components/DocRateLimited/DocRateLimited.js +13 -5
  199. package/lib/esm/components/DocRateLimited/DocRateLimited.js.map +1 -1
  200. package/lib/esm/components/DocRateLimited/index.js +12 -1
  201. package/lib/esm/components/DocRateLimited/index.js.map +1 -1
  202. package/lib/esm/components/DocReferences/DocReferences.js +18 -10
  203. package/lib/esm/components/DocReferences/DocReferences.js.map +1 -1
  204. package/lib/esm/components/DocReferences/index.js +12 -1
  205. package/lib/esm/components/DocReferences/index.js.map +1 -1
  206. package/lib/esm/components/DocReferences/utils.js +19 -11
  207. package/lib/esm/components/DocReferences/utils.js.map +1 -1
  208. package/lib/esm/components/DocSDKs/DocDeclarations.js +15 -7
  209. package/lib/esm/components/DocSDKs/DocDeclarations.js.map +1 -1
  210. package/lib/esm/components/DocSDKs/DocSDKs.js +29 -24
  211. package/lib/esm/components/DocSDKs/DocSDKs.js.map +1 -1
  212. package/lib/esm/components/DocSDKs/index.js +12 -1
  213. package/lib/esm/components/DocSDKs/index.js.map +1 -1
  214. package/lib/esm/components/DocSDKs/utils.js +11 -3
  215. package/lib/esm/components/DocSDKs/utils.js.map +1 -1
  216. package/lib/esm/components/DocSchema/DocSchema.js +15 -7
  217. package/lib/esm/components/DocSchema/DocSchema.js.map +1 -1
  218. package/lib/esm/components/DocSchema/index.js +12 -1
  219. package/lib/esm/components/DocSchema/index.js.map +1 -1
  220. package/lib/esm/components/DocSdkUsage/DocSdkExampleCell.js +14 -6
  221. package/lib/esm/components/DocSdkUsage/DocSdkExampleCell.js.map +1 -1
  222. package/lib/esm/components/DocSdkUsage/DocSdkUsage.js +47 -39
  223. package/lib/esm/components/DocSdkUsage/DocSdkUsage.js.map +1 -1
  224. package/lib/esm/components/DocSdkUsage/index.js +12 -1
  225. package/lib/esm/components/DocSdkUsage/index.js.map +1 -1
  226. package/lib/esm/components/DocSdkUsage/utils.js +24 -13
  227. package/lib/esm/components/DocSdkUsage/utils.js.map +1 -1
  228. package/lib/esm/components/DocSource/DocSource.js +21 -15
  229. package/lib/esm/components/DocSource/DocSource.js.map +1 -1
  230. package/lib/esm/components/DocSource/index.js +12 -1
  231. package/lib/esm/components/DocSource/index.js.map +1 -1
  232. package/lib/esm/components/DocStatus/DocStatus.js +16 -8
  233. package/lib/esm/components/DocStatus/DocStatus.js.map +1 -1
  234. package/lib/esm/components/DocStatus/index.js +12 -1
  235. package/lib/esm/components/DocStatus/index.js.map +1 -1
  236. package/lib/esm/components/DocTitle/DocTitle.js +11 -4
  237. package/lib/esm/components/DocTitle/DocTitle.js.map +1 -1
  238. package/lib/esm/components/DocTitle/index.js +12 -1
  239. package/lib/esm/components/DocTitle/index.js.map +1 -1
  240. package/lib/esm/components/DocTypeSummary/DocTypeSummary.js +18 -12
  241. package/lib/esm/components/DocTypeSummary/DocTypeSummary.js.map +1 -1
  242. package/lib/esm/components/DocTypeSummary/index.js +12 -1
  243. package/lib/esm/components/DocTypeSummary/index.js.map +1 -1
  244. package/lib/esm/components/ErrorBoundary/ErrorBoundary.js +14 -11
  245. package/lib/esm/components/ErrorBoundary/ErrorBoundary.js.map +1 -1
  246. package/lib/esm/components/ErrorBoundary/components/SomethingWentWrong/SomethingWentWrong.js +19 -11
  247. package/lib/esm/components/ErrorBoundary/components/SomethingWentWrong/SomethingWentWrong.js.map +1 -1
  248. package/lib/esm/components/ErrorBoundary/components/SomethingWentWrong/components/SomethingWentWrongGraphic/SomethingWentWrongGraphic.js +53 -47
  249. package/lib/esm/components/ErrorBoundary/components/SomethingWentWrong/components/SomethingWentWrongGraphic/SomethingWentWrongGraphic.js.map +1 -1
  250. package/lib/esm/components/ErrorBoundary/components/SomethingWentWrong/components/SomethingWentWrongGraphic/index.js +12 -1
  251. package/lib/esm/components/ErrorBoundary/components/SomethingWentWrong/components/SomethingWentWrongGraphic/index.js.map +1 -1
  252. package/lib/esm/components/ErrorBoundary/components/SomethingWentWrong/components/index.js +12 -1
  253. package/lib/esm/components/ErrorBoundary/components/SomethingWentWrong/components/index.js.map +1 -1
  254. package/lib/esm/components/ErrorBoundary/components/SomethingWentWrong/index.js +12 -1
  255. package/lib/esm/components/ErrorBoundary/components/SomethingWentWrong/index.js.map +1 -1
  256. package/lib/esm/components/ErrorBoundary/index.js +12 -1
  257. package/lib/esm/components/ErrorBoundary/index.js.map +1 -1
  258. package/lib/esm/components/ExploreType/ExploreProperty.js +63 -56
  259. package/lib/esm/components/ExploreType/ExploreProperty.js.map +1 -1
  260. package/lib/esm/components/ExploreType/ExploreType.js +32 -23
  261. package/lib/esm/components/ExploreType/ExploreType.js.map +1 -1
  262. package/lib/esm/components/ExploreType/exploreUtils.js +51 -57
  263. package/lib/esm/components/ExploreType/exploreUtils.js.map +1 -1
  264. package/lib/esm/components/ExploreType/index.js +80 -3
  265. package/lib/esm/components/ExploreType/index.js.map +1 -1
  266. package/lib/esm/components/Header/Header.js +31 -20
  267. package/lib/esm/components/Header/Header.js.map +1 -1
  268. package/lib/esm/components/Header/index.js +24 -1
  269. package/lib/esm/components/Header/index.js.map +1 -1
  270. package/lib/esm/components/Link/Link.js +12 -4
  271. package/lib/esm/components/Link/Link.js.map +1 -1
  272. package/lib/esm/components/Link/index.js +12 -1
  273. package/lib/esm/components/Link/index.js.map +1 -1
  274. package/lib/esm/components/SelectorContainer/ApiSpecSelector.js +19 -13
  275. package/lib/esm/components/SelectorContainer/ApiSpecSelector.js.map +1 -1
  276. package/lib/esm/components/SelectorContainer/SdkLanguageSelector.js +25 -18
  277. package/lib/esm/components/SelectorContainer/SdkLanguageSelector.js.map +1 -1
  278. package/lib/esm/components/SelectorContainer/SelectorContainer.js +29 -23
  279. package/lib/esm/components/SelectorContainer/SelectorContainer.js.map +1 -1
  280. package/lib/esm/components/SelectorContainer/index.js +12 -1
  281. package/lib/esm/components/SelectorContainer/index.js.map +1 -1
  282. package/lib/esm/components/SelectorContainer/utils.js +11 -5
  283. package/lib/esm/components/SelectorContainer/utils.js.map +1 -1
  284. package/lib/esm/components/SideNav/SearchMessage.js +16 -8
  285. package/lib/esm/components/SideNav/SearchMessage.js.map +1 -1
  286. package/lib/esm/components/SideNav/SideNav.js +50 -53
  287. package/lib/esm/components/SideNav/SideNav.js.map +1 -1
  288. package/lib/esm/components/SideNav/SideNavMethodTags.js +15 -7
  289. package/lib/esm/components/SideNav/SideNavMethodTags.js.map +1 -1
  290. package/lib/esm/components/SideNav/SideNavMethods.js +32 -26
  291. package/lib/esm/components/SideNav/SideNavMethods.js.map +1 -1
  292. package/lib/esm/components/SideNav/SideNavTypeTags.js +15 -7
  293. package/lib/esm/components/SideNav/SideNavTypeTags.js.map +1 -1
  294. package/lib/esm/components/SideNav/SideNavTypes.js +33 -27
  295. package/lib/esm/components/SideNav/SideNavTypes.js.map +1 -1
  296. package/lib/esm/components/SideNav/index.js +12 -1
  297. package/lib/esm/components/SideNav/index.js.map +1 -1
  298. package/lib/esm/components/SideNav/searchUtils.js +15 -6
  299. package/lib/esm/components/SideNav/searchUtils.js.map +1 -1
  300. package/lib/esm/components/common/Loader.js +16 -8
  301. package/lib/esm/components/common/Loader.js.map +1 -1
  302. package/lib/esm/components/common/common.js +21 -13
  303. package/lib/esm/components/common/common.js.map +1 -1
  304. package/lib/esm/components/common/index.js +27 -2
  305. package/lib/esm/components/common/index.js.map +1 -1
  306. package/lib/esm/components/index.js +183 -22
  307. package/lib/esm/components/index.js.map +1 -1
  308. package/lib/esm/index.js +60 -5
  309. package/lib/esm/index.js.map +1 -1
  310. package/lib/esm/routes/AppRouter.js +30 -22
  311. package/lib/esm/routes/AppRouter.js.map +1 -1
  312. package/lib/esm/routes/index.js +12 -1
  313. package/lib/esm/routes/index.js.map +1 -1
  314. package/lib/esm/scenes/DiffScene/DiffScene.js +52 -51
  315. package/lib/esm/scenes/DiffScene/DiffScene.js.map +1 -1
  316. package/lib/esm/scenes/DiffScene/DocDiff/DiffBanner.js +18 -10
  317. package/lib/esm/scenes/DiffScene/DocDiff/DiffBanner.js.map +1 -1
  318. package/lib/esm/scenes/DiffScene/DocDiff/DiffItem.js +44 -35
  319. package/lib/esm/scenes/DiffScene/DocDiff/DiffItem.js.map +1 -1
  320. package/lib/esm/scenes/DiffScene/DocDiff/DiffLegend.js +26 -18
  321. package/lib/esm/scenes/DiffScene/DocDiff/DiffLegend.js.map +1 -1
  322. package/lib/esm/scenes/DiffScene/DocDiff/DocDiff.js +20 -11
  323. package/lib/esm/scenes/DiffScene/DocDiff/DocDiff.js.map +1 -1
  324. package/lib/esm/scenes/DiffScene/DocDiff/docDiffUtils.js +13 -11
  325. package/lib/esm/scenes/DiffScene/DocDiff/docDiffUtils.js.map +1 -1
  326. package/lib/esm/scenes/DiffScene/DocDiff/index.js +12 -1
  327. package/lib/esm/scenes/DiffScene/DocDiff/index.js.map +1 -1
  328. package/lib/esm/scenes/DiffScene/diffUtils.js +19 -14
  329. package/lib/esm/scenes/DiffScene/diffUtils.js.map +1 -1
  330. package/lib/esm/scenes/DiffScene/index.js +12 -1
  331. package/lib/esm/scenes/DiffScene/index.js.map +1 -1
  332. package/lib/esm/scenes/ErrorDetailScene/ErrorDetailScene.js +19 -11
  333. package/lib/esm/scenes/ErrorDetailScene/ErrorDetailScene.js.map +1 -1
  334. package/lib/esm/scenes/ErrorDetailScene/index.js +12 -1
  335. package/lib/esm/scenes/ErrorDetailScene/index.js.map +1 -1
  336. package/lib/esm/scenes/HomeScene/HomeScene.js +20 -6
  337. package/lib/esm/scenes/HomeScene/HomeScene.js.map +1 -1
  338. package/lib/esm/scenes/HomeScene/index.js +12 -1
  339. package/lib/esm/scenes/HomeScene/index.js.map +1 -1
  340. package/lib/esm/scenes/MethodScene/MethodScene.js +56 -57
  341. package/lib/esm/scenes/MethodScene/MethodScene.js.map +1 -1
  342. package/lib/esm/scenes/MethodScene/components/DocOperation.js +20 -12
  343. package/lib/esm/scenes/MethodScene/components/DocOperation.js.map +1 -1
  344. package/lib/esm/scenes/MethodScene/components/DocRequestBody.js +15 -7
  345. package/lib/esm/scenes/MethodScene/components/DocRequestBody.js.map +1 -1
  346. package/lib/esm/scenes/MethodScene/components/DocResponses/DocResponseTypes.js +20 -11
  347. package/lib/esm/scenes/MethodScene/components/DocResponses/DocResponseTypes.js.map +1 -1
  348. package/lib/esm/scenes/MethodScene/components/DocResponses/DocResponses.js +28 -26
  349. package/lib/esm/scenes/MethodScene/components/DocResponses/DocResponses.js.map +1 -1
  350. package/lib/esm/scenes/MethodScene/components/DocResponses/index.js +12 -1
  351. package/lib/esm/scenes/MethodScene/components/DocResponses/index.js.map +1 -1
  352. package/lib/esm/scenes/MethodScene/components/DocResponses/utils.js +8 -1
  353. package/lib/esm/scenes/MethodScene/components/DocResponses/utils.js.map +1 -1
  354. package/lib/esm/scenes/MethodScene/components/index.js +26 -3
  355. package/lib/esm/scenes/MethodScene/components/index.js.map +1 -1
  356. package/lib/esm/scenes/MethodScene/index.js +12 -1
  357. package/lib/esm/scenes/MethodScene/index.js.map +1 -1
  358. package/lib/esm/scenes/MethodTagScene/MethodTagScene.js +40 -35
  359. package/lib/esm/scenes/MethodTagScene/MethodTagScene.js.map +1 -1
  360. package/lib/esm/scenes/MethodTagScene/index.js +12 -1
  361. package/lib/esm/scenes/MethodTagScene/index.js.map +1 -1
  362. package/lib/esm/scenes/MethodTagScene/utils.js +8 -1
  363. package/lib/esm/scenes/MethodTagScene/utils.js.map +1 -1
  364. package/lib/esm/scenes/TypeScene/TypeScene.js +29 -20
  365. package/lib/esm/scenes/TypeScene/TypeScene.js.map +1 -1
  366. package/lib/esm/scenes/TypeScene/index.js +12 -1
  367. package/lib/esm/scenes/TypeScene/index.js.map +1 -1
  368. package/lib/esm/scenes/TypeTagScene/TypeTagScene.js +39 -34
  369. package/lib/esm/scenes/TypeTagScene/TypeTagScene.js.map +1 -1
  370. package/lib/esm/scenes/TypeTagScene/index.js +12 -1
  371. package/lib/esm/scenes/TypeTagScene/index.js.map +1 -1
  372. package/lib/esm/scenes/TypeTagScene/utils.js +8 -1
  373. package/lib/esm/scenes/TypeTagScene/utils.js.map +1 -1
  374. package/lib/esm/scenes/index.js +47 -6
  375. package/lib/esm/scenes/index.js.map +1 -1
  376. package/lib/esm/scenes/utils/hooks/index.js +12 -1
  377. package/lib/esm/scenes/utils/hooks/index.js.map +1 -1
  378. package/lib/esm/scenes/utils/hooks/tagStoreSync.js +21 -15
  379. package/lib/esm/scenes/utils/hooks/tagStoreSync.js.map +1 -1
  380. package/lib/esm/scenes/utils/index.js +12 -1
  381. package/lib/esm/scenes/utils/index.js.map +1 -1
  382. package/lib/esm/state/index.js +49 -4
  383. package/lib/esm/state/index.js.map +1 -1
  384. package/lib/esm/state/lodes/index.js +27 -2
  385. package/lib/esm/state/lodes/index.js.map +1 -1
  386. package/lib/esm/state/lodes/sagas.js +15 -12
  387. package/lib/esm/state/lodes/sagas.js.map +1 -1
  388. package/lib/esm/state/lodes/selectors.js +10 -3
  389. package/lib/esm/state/lodes/selectors.js.map +1 -1
  390. package/lib/esm/state/lodes/slice.js +19 -11
  391. package/lib/esm/state/lodes/slice.js.map +1 -1
  392. package/lib/esm/state/settings/index.js +27 -2
  393. package/lib/esm/state/settings/index.js.map +1 -1
  394. package/lib/esm/state/settings/sagas.js +29 -32
  395. package/lib/esm/state/settings/sagas.js.map +1 -1
  396. package/lib/esm/state/settings/selectors.js +16 -6
  397. package/lib/esm/state/settings/selectors.js.map +1 -1
  398. package/lib/esm/state/settings/slice.js +27 -22
  399. package/lib/esm/state/settings/slice.js.map +1 -1
  400. package/lib/esm/state/specs/index.js +27 -2
  401. package/lib/esm/state/specs/index.js.map +1 -1
  402. package/lib/esm/state/specs/sagas.js +24 -25
  403. package/lib/esm/state/specs/sagas.js.map +1 -1
  404. package/lib/esm/state/specs/selectors.js +10 -3
  405. package/lib/esm/state/specs/selectors.js.map +1 -1
  406. package/lib/esm/state/specs/slice.js +19 -14
  407. package/lib/esm/state/specs/slice.js.map +1 -1
  408. package/lib/esm/state/store.js +25 -26
  409. package/lib/esm/state/store.js.map +1 -1
  410. package/lib/esm/test-data/declarations.js +24 -0
  411. package/lib/esm/test-data/declarations.js.map +1 -0
  412. package/lib/esm/test-data/examples.js +376 -0
  413. package/lib/esm/test-data/examples.js.map +1 -0
  414. package/lib/esm/test-data/index.js +52 -0
  415. package/lib/esm/test-data/index.js.map +1 -0
  416. package/lib/esm/test-data/sdkLanguages.js +19 -0
  417. package/lib/esm/test-data/sdkLanguages.js.map +1 -0
  418. package/lib/esm/test-data/specs.js +48 -0
  419. package/lib/esm/test-data/specs.js.map +1 -0
  420. package/lib/esm/test-utils/index.js +38 -3
  421. package/lib/esm/test-utils/index.js.map +1 -1
  422. package/lib/esm/test-utils/lodes.js +12 -5
  423. package/lib/esm/test-utils/lodes.js.map +1 -1
  424. package/lib/esm/test-utils/redux.js +41 -30
  425. package/lib/esm/test-utils/redux.js.map +1 -1
  426. package/lib/esm/test-utils/router.js +15 -6
  427. package/lib/esm/test-utils/router.js.map +1 -1
  428. package/lib/esm/utils/adaptorUtils.js +26 -33
  429. package/lib/esm/utils/adaptorUtils.js.map +1 -1
  430. package/lib/esm/utils/apixAdaptor.js +22 -22
  431. package/lib/esm/utils/apixAdaptor.js.map +1 -1
  432. package/lib/esm/utils/highlight.js +11 -6
  433. package/lib/esm/utils/highlight.js.map +1 -1
  434. package/lib/esm/utils/hooks/globalStoreSync.js +22 -18
  435. package/lib/esm/utils/hooks/globalStoreSync.js.map +1 -1
  436. package/lib/esm/utils/hooks/index.js +26 -3
  437. package/lib/esm/utils/hooks/index.js.map +1 -1
  438. package/lib/esm/utils/hooks/navigation.js +10 -13
  439. package/lib/esm/utils/hooks/navigation.js.map +1 -1
  440. package/lib/esm/utils/hooks/useQuery.js +12 -5
  441. package/lib/esm/utils/hooks/useQuery.js.map +1 -1
  442. package/lib/esm/utils/index.js +101 -8
  443. package/lib/esm/utils/index.js.map +1 -1
  444. package/lib/esm/utils/lodeUtils.js +10 -15
  445. package/lib/esm/utils/lodeUtils.js.map +1 -1
  446. package/lib/esm/utils/path.js +35 -31
  447. package/lib/esm/utils/path.js.map +1 -1
  448. package/lib/esm/utils/sdkLanguage.js +18 -12
  449. package/lib/esm/utils/sdkLanguage.js.map +1 -1
  450. package/lib/esm/utils/useWindowSize.js +10 -5
  451. package/lib/esm/utils/useWindowSize.js.map +1 -1
  452. package/lib/index.js +0 -10
  453. package/lib/index.js.map +1 -1
  454. package/lib/routes/AppRouter.js +0 -8
  455. package/lib/routes/AppRouter.js.map +1 -1
  456. package/lib/routes/index.js +0 -1
  457. package/lib/routes/index.js.map +1 -1
  458. package/lib/scenes/DiffScene/DiffScene.js +0 -22
  459. package/lib/scenes/DiffScene/DiffScene.js.map +1 -1
  460. package/lib/scenes/DiffScene/DocDiff/DiffBanner.js +1 -7
  461. package/lib/scenes/DiffScene/DocDiff/DiffBanner.js.map +1 -1
  462. package/lib/scenes/DiffScene/DocDiff/DiffItem.js +1 -20
  463. package/lib/scenes/DiffScene/DocDiff/DiffItem.js.map +1 -1
  464. package/lib/scenes/DiffScene/DocDiff/DiffLegend.js +0 -8
  465. package/lib/scenes/DiffScene/DocDiff/DiffLegend.js.map +1 -1
  466. package/lib/scenes/DiffScene/DocDiff/DocDiff.js +0 -7
  467. package/lib/scenes/DiffScene/DocDiff/DocDiff.js.map +1 -1
  468. package/lib/scenes/DiffScene/DocDiff/docDiffUtils.js +0 -11
  469. package/lib/scenes/DiffScene/DocDiff/docDiffUtils.js.map +1 -1
  470. package/lib/scenes/DiffScene/DocDiff/index.js +0 -1
  471. package/lib/scenes/DiffScene/DocDiff/index.js.map +1 -1
  472. package/lib/scenes/DiffScene/diffUtils.js +1 -14
  473. package/lib/scenes/DiffScene/diffUtils.js.map +1 -1
  474. package/lib/scenes/DiffScene/index.js +0 -1
  475. package/lib/scenes/DiffScene/index.js.map +1 -1
  476. package/lib/scenes/ErrorDetailScene/ErrorDetailScene.js +0 -8
  477. package/lib/scenes/ErrorDetailScene/ErrorDetailScene.js.map +1 -1
  478. package/lib/scenes/ErrorDetailScene/index.js +0 -1
  479. package/lib/scenes/ErrorDetailScene/index.js.map +1 -1
  480. package/lib/scenes/HomeScene/HomeScene.js +8 -8
  481. package/lib/scenes/HomeScene/HomeScene.js.map +1 -1
  482. package/lib/scenes/HomeScene/index.js +0 -1
  483. package/lib/scenes/HomeScene/index.js.map +1 -1
  484. package/lib/scenes/MethodScene/MethodScene.js +0 -26
  485. package/lib/scenes/MethodScene/MethodScene.js.map +1 -1
  486. package/lib/scenes/MethodScene/components/DocOperation.js +0 -7
  487. package/lib/scenes/MethodScene/components/DocOperation.js.map +1 -1
  488. package/lib/scenes/MethodScene/components/DocRequestBody.js +0 -6
  489. package/lib/scenes/MethodScene/components/DocRequestBody.js.map +1 -1
  490. package/lib/scenes/MethodScene/components/DocResponses/DocResponseTypes.js +0 -7
  491. package/lib/scenes/MethodScene/components/DocResponses/DocResponseTypes.js.map +1 -1
  492. package/lib/scenes/MethodScene/components/DocResponses/DocResponses.js +0 -18
  493. package/lib/scenes/MethodScene/components/DocResponses/DocResponses.js.map +1 -1
  494. package/lib/scenes/MethodScene/components/DocResponses/index.js +0 -1
  495. package/lib/scenes/MethodScene/components/DocResponses/index.js.map +1 -1
  496. package/lib/scenes/MethodScene/components/DocResponses/utils.js +0 -2
  497. package/lib/scenes/MethodScene/components/DocResponses/utils.js.map +1 -1
  498. package/lib/scenes/MethodScene/components/index.js +0 -3
  499. package/lib/scenes/MethodScene/components/index.js.map +1 -1
  500. package/lib/scenes/MethodScene/index.js +0 -1
  501. package/lib/scenes/MethodScene/index.js.map +1 -1
  502. package/lib/scenes/MethodTagScene/MethodTagScene.js +0 -17
  503. package/lib/scenes/MethodTagScene/MethodTagScene.js.map +1 -1
  504. package/lib/scenes/MethodTagScene/index.js +0 -1
  505. package/lib/scenes/MethodTagScene/index.js.map +1 -1
  506. package/lib/scenes/MethodTagScene/utils.js +0 -2
  507. package/lib/scenes/MethodTagScene/utils.js.map +1 -1
  508. package/lib/scenes/TypeScene/TypeScene.js +0 -10
  509. package/lib/scenes/TypeScene/TypeScene.js.map +1 -1
  510. package/lib/scenes/TypeScene/index.js +0 -1
  511. package/lib/scenes/TypeScene/index.js.map +1 -1
  512. package/lib/scenes/TypeTagScene/TypeTagScene.js +0 -17
  513. package/lib/scenes/TypeTagScene/TypeTagScene.js.map +1 -1
  514. package/lib/scenes/TypeTagScene/index.js +0 -1
  515. package/lib/scenes/TypeTagScene/index.js.map +1 -1
  516. package/lib/scenes/TypeTagScene/utils.js +0 -2
  517. package/lib/scenes/TypeTagScene/utils.js.map +1 -1
  518. package/lib/scenes/index.js +4 -10
  519. package/lib/scenes/index.js.map +1 -1
  520. package/lib/scenes/utils/hooks/index.js +0 -1
  521. package/lib/scenes/utils/hooks/index.js.map +1 -1
  522. package/lib/scenes/utils/hooks/tagStoreSync.js +0 -8
  523. package/lib/scenes/utils/hooks/tagStoreSync.js.map +1 -1
  524. package/lib/scenes/utils/index.js +0 -1
  525. package/lib/scenes/utils/index.js.map +1 -1
  526. package/lib/state/index.js +0 -8
  527. package/lib/state/index.js.map +1 -1
  528. package/lib/state/lodes/index.js +0 -4
  529. package/lib/state/lodes/index.js.map +1 -1
  530. package/lib/state/lodes/sagas.js +0 -6
  531. package/lib/state/lodes/sagas.js.map +1 -1
  532. package/lib/state/lodes/selectors.js +1 -6
  533. package/lib/state/lodes/selectors.js.map +1 -1
  534. package/lib/state/lodes/slice.d.ts +2 -2
  535. package/lib/state/lodes/slice.js +1 -8
  536. package/lib/state/lodes/slice.js.map +1 -1
  537. package/lib/state/settings/index.js +0 -4
  538. package/lib/state/settings/index.js.map +1 -1
  539. package/lib/state/settings/sagas.js +5 -18
  540. package/lib/state/settings/sagas.js.map +1 -1
  541. package/lib/state/settings/selectors.d.ts +1 -1
  542. package/lib/state/settings/selectors.js +1 -12
  543. package/lib/state/settings/selectors.js.map +1 -1
  544. package/lib/state/settings/slice.d.ts +3 -3
  545. package/lib/state/settings/slice.js +6 -20
  546. package/lib/state/settings/slice.js.map +1 -1
  547. package/lib/state/specs/index.js +0 -4
  548. package/lib/state/specs/index.js.map +1 -1
  549. package/lib/state/specs/sagas.js +0 -10
  550. package/lib/state/specs/sagas.js.map +1 -1
  551. package/lib/state/specs/selectors.js +1 -6
  552. package/lib/state/specs/selectors.js.map +1 -1
  553. package/lib/state/specs/slice.d.ts +2 -2
  554. package/lib/state/specs/slice.js +1 -11
  555. package/lib/state/specs/slice.js.map +1 -1
  556. package/lib/state/store.js +5 -20
  557. package/lib/state/store.js.map +1 -1
  558. package/lib/test-data/declarations.js.map +1 -1
  559. package/lib/test-data/examples.js.map +1 -1
  560. package/lib/test-data/index.js +0 -7
  561. package/lib/test-data/index.js.map +1 -1
  562. package/lib/test-data/sdkLanguages.js +1 -1
  563. package/lib/test-data/sdkLanguages.js.map +1 -1
  564. package/lib/test-data/specs.js +6 -19
  565. package/lib/test-data/specs.js.map +1 -1
  566. package/lib/test-utils/index.js +0 -6
  567. package/lib/test-utils/index.js.map +1 -1
  568. package/lib/test-utils/lodes.d.ts +1 -1
  569. package/lib/test-utils/lodes.js +0 -4
  570. package/lib/test-utils/lodes.js.map +1 -1
  571. package/lib/test-utils/redux.d.ts +2 -2
  572. package/lib/test-utils/redux.js +6 -25
  573. package/lib/test-utils/redux.js.map +1 -1
  574. package/lib/test-utils/router.d.ts +1 -1
  575. package/lib/test-utils/router.js +1 -9
  576. package/lib/test-utils/router.js.map +1 -1
  577. package/lib/utils/adaptorUtils.js +1 -31
  578. package/lib/utils/adaptorUtils.js.map +1 -1
  579. package/lib/utils/apixAdaptor.js +1 -20
  580. package/lib/utils/apixAdaptor.js.map +1 -1
  581. package/lib/utils/highlight.js +0 -7
  582. package/lib/utils/highlight.js.map +1 -1
  583. package/lib/utils/hooks/globalStoreSync.js +0 -10
  584. package/lib/utils/hooks/globalStoreSync.js.map +1 -1
  585. package/lib/utils/hooks/index.js +4 -7
  586. package/lib/utils/hooks/index.js.map +1 -1
  587. package/lib/utils/hooks/navigation.js +0 -14
  588. package/lib/utils/hooks/navigation.js.map +1 -1
  589. package/lib/utils/hooks/useQuery.js +0 -4
  590. package/lib/utils/hooks/useQuery.js.map +1 -1
  591. package/lib/utils/index.js +10 -22
  592. package/lib/utils/index.js.map +1 -1
  593. package/lib/utils/lodeUtils.js +0 -15
  594. package/lib/utils/lodeUtils.js.map +1 -1
  595. package/lib/utils/path.js +5 -33
  596. package/lib/utils/path.js.map +1 -1
  597. package/lib/utils/sdkLanguage.js +5 -16
  598. package/lib/utils/sdkLanguage.js.map +1 -1
  599. package/lib/utils/useWindowSize.js +0 -3
  600. package/lib/utils/useWindowSize.js.map +1 -1
  601. package/package.json +27 -26
  602. package/src/ApiExplorer.tsx +2 -2
  603. package/src/components/ErrorBoundary/components/SomethingWentWrong/components/SomethingWentWrongGraphic/SomethingWentWrongGraphic.tsx +169 -168
  604. package/src/components/SelectorContainer/ApiSpecSelector.spec.tsx +4 -2
  605. package/src/components/SelectorContainer/SdkLanguageSelector.spec.tsx +1 -1
  606. package/src/components/SideNav/SideNav.spec.tsx +2 -2
  607. package/src/components/SideNav/SideNavMethods.spec.tsx +1 -1
  608. package/src/components/SideNav/SideNavTypes.spec.tsx +1 -1
  609. package/src/scenes/DiffScene/DocDiff/DiffBanner.tsx +1 -1
  610. package/src/scenes/HomeScene/HomeScene.tsx +10 -1
  611. package/src/scenes/MethodScene/components/DocResponses/DocResponses.spec.tsx +2 -2
  612. package/src/scenes/utils/hooks/tagStoreSync.spec.ts +4 -2
  613. package/src/state/store.ts +2 -2
  614. package/src/utils/hooks/globalStoreSync.spec.tsx +5 -3
  615. package/webpack.dev.config.js +6 -2
  616. package/dist/bundle.js +0 -3
  617. package/dist/bundle.js.LICENSE.txt +0 -115
  618. package/dist/bundle.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/DocMarkdown/DocMarkdown.tsx"],"names":["DocMarkdown","source","specKey","searchPattern","selectSearchPattern","navigate","linkClickHandler","pathname","url","startsWith","adaptor","openBrowserWindow","transformURL","bind"],"mappings":";;;;;;;AA2BA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;AAOO,IAAMA,WAAiC,GAAG,QAAyB;AAAA,MAAxB;AAAEC,IAAAA,MAAF;AAAUC,IAAAA;AAAV,GAAwB;AACxE,MAAMC,aAAa,GAAG,6BAAYC,0BAAZ,CAAtB;AACA,MAAM;AAAEC,IAAAA;AAAF,MAAe,2BAArB;;AAEA,MAAMC,gBAAgB,GAAG,CAACC,QAAD,EAAmBC,GAAnB,KAAmC;AAC1D,QAAID,QAAQ,CAACE,UAAT,YAAwBP,OAAxB,EAAJ,EAAwC;AACtCG,MAAAA,QAAQ,CAACE,QAAD,CAAR;AACD,KAFD,MAEO,IAAIC,GAAG,CAACC,UAAJ,YAAmBP,OAAnB,EAAJ,EAAmC;AACxCG,MAAAA,QAAQ,CAACG,GAAD,CAAR;AACD,KAFM,MAEA,IAAIA,GAAG,CAACC,UAAJ,CAAe,UAAf,CAAJ,EAAgC;AACrC,UAAMC,OAAO,GAAG,oCAAhB;AACAA,MAAAA,OAAO,CAACC,iBAAR,CAA0BH,GAA1B;AACD;AACF,GATD;;AAUA,SACE,6BAAC,oBAAD;AACE,IAAA,MAAM,EAAEP,MADV;AAEE,IAAA,OAAO,EAAEE,aAFX;AAGE,IAAA,gBAAgB,EAAEG,gBAHpB;AAIE,IAAA,gBAAgB,EAAEM,qBAAaC,IAAb,CAAkB,IAAlB,EAAwBX,OAAxB;AAJpB,IADF;AAQD,CAtBM","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 { Markdown } from '@looker/code-editor'\nimport { useSelector } from 'react-redux'\nimport { getEnvAdaptor } from '@looker/extension-utils'\nimport { selectSearchPattern } from '../../state'\nimport { useNavigation } from '../../utils'\nimport { transformURL } from './utils'\n\ninterface DocMarkdownProps {\n source: string\n specKey: string\n}\n\nexport const DocMarkdown: FC<DocMarkdownProps> = ({ source, specKey }) => {\n const searchPattern = useSelector(selectSearchPattern)\n const { navigate } = useNavigation()\n\n const linkClickHandler = (pathname: string, url: string) => {\n if (pathname.startsWith(`/${specKey}`)) {\n navigate(pathname)\n } else if (url.startsWith(`/${specKey}`)) {\n navigate(url)\n } else if (url.startsWith('https://')) {\n const adaptor = getEnvAdaptor()\n adaptor.openBrowserWindow(url)\n }\n }\n return (\n <Markdown\n source={source}\n pattern={searchPattern}\n linkClickHandler={linkClickHandler}\n transformLinkUri={transformURL.bind(null, specKey)}\n />\n )\n}\n"],"file":"DocMarkdown.js"}
1
+ {"version":3,"file":"DocMarkdown.js","names":["DocMarkdown","source","specKey","searchPattern","useSelector","selectSearchPattern","navigate","useNavigation","linkClickHandler","pathname","url","startsWith","adaptor","getEnvAdaptor","openBrowserWindow","transformURL","bind"],"sources":["../../../src/components/DocMarkdown/DocMarkdown.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 { Markdown } from '@looker/code-editor'\nimport { useSelector } from 'react-redux'\nimport { getEnvAdaptor } from '@looker/extension-utils'\nimport { selectSearchPattern } from '../../state'\nimport { useNavigation } from '../../utils'\nimport { transformURL } from './utils'\n\ninterface DocMarkdownProps {\n source: string\n specKey: string\n}\n\nexport const DocMarkdown: FC<DocMarkdownProps> = ({ source, specKey }) => {\n const searchPattern = useSelector(selectSearchPattern)\n const { navigate } = useNavigation()\n\n const linkClickHandler = (pathname: string, url: string) => {\n if (pathname.startsWith(`/${specKey}`)) {\n navigate(pathname)\n } else if (url.startsWith(`/${specKey}`)) {\n navigate(url)\n } else if (url.startsWith('https://')) {\n const adaptor = getEnvAdaptor()\n adaptor.openBrowserWindow(url)\n }\n }\n return (\n <Markdown\n source={source}\n pattern={searchPattern}\n linkClickHandler={linkClickHandler}\n transformLinkUri={transformURL.bind(null, specKey)}\n />\n )\n}\n"],"mappings":";;;;;;AA2BA;AACA;AACA;AACA;AACA;AACA;AACA;AAAsC;AAO/B,IAAMA,WAAiC,GAAG,QAAyB;EAAA,IAAxB;IAAEC,MAAM;IAAEC;EAAQ,CAAC;EACnE,IAAMC,aAAa,GAAG,IAAAC,uBAAW,EAACC,0BAAmB,CAAC;EACtD,IAAM;IAAEC;EAAS,CAAC,GAAG,IAAAC,oBAAa,GAAE;EAEpC,IAAMC,gBAAgB,GAAG,CAACC,QAAgB,EAAEC,GAAW,KAAK;IAC1D,IAAID,QAAQ,CAACE,UAAU,YAAKT,OAAO,EAAG,EAAE;MACtCI,QAAQ,CAACG,QAAQ,CAAC;IACpB,CAAC,MAAM,IAAIC,GAAG,CAACC,UAAU,YAAKT,OAAO,EAAG,EAAE;MACxCI,QAAQ,CAACI,GAAG,CAAC;IACf,CAAC,MAAM,IAAIA,GAAG,CAACC,UAAU,CAAC,UAAU,CAAC,EAAE;MACrC,IAAMC,OAAO,GAAG,IAAAC,6BAAa,GAAE;MAC/BD,OAAO,CAACE,iBAAiB,CAACJ,GAAG,CAAC;IAChC;EACF,CAAC;EACD,OACE,6BAAC,oBAAQ;IACP,MAAM,EAAET,MAAO;IACf,OAAO,EAAEE,aAAc;IACvB,gBAAgB,EAAEK,gBAAiB;IACnC,gBAAgB,EAAEO,oBAAY,CAACC,IAAI,CAAC,IAAI,EAAEd,OAAO;EAAE,EACnD;AAEN,CAAC;AAAA"}
@@ -9,6 +9,5 @@ Object.defineProperty(exports, "DocMarkdown", {
9
9
  return _DocMarkdown.DocMarkdown;
10
10
  }
11
11
  });
12
-
13
12
  var _DocMarkdown = require("./DocMarkdown");
14
13
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/DocMarkdown/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAyBA","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 { DocMarkdown } from './DocMarkdown'\n"],"file":"index.js"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../src/components/DocMarkdown/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 { DocMarkdown } from './DocMarkdown'\n"],"mappings":";;;;;;;;;;;AAyBA"}
@@ -4,16 +4,11 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.transformURL = exports.remapHashURL = void 0;
7
-
8
7
  var cleanURL = url => (url || '').replace(/<mark>/gi, '').replace(/<\/mark>/gi, '').replace(/%3Cmark%3E/gi, '').replace(/%3C\/mark%3E/gi, '');
9
-
10
8
  var remapHashURL = (specKey, url) => (url || '').replace(/#!\/(:?\d+\.\d+\/)?(\w+)\/(\w+)/gi, "/".concat(specKey, "/methods/$2/$3")).replace(/#!\/(:?\d+\.\d+\/)?(\w+)/gi, "/".concat(specKey, "/methods/$2"));
11
-
12
9
  exports.remapHashURL = remapHashURL;
13
-
14
10
  var transformURL = (specKey, url) => {
15
11
  return remapHashURL(specKey, cleanURL(url));
16
12
  };
17
-
18
13
  exports.transformURL = transformURL;
19
14
  //# sourceMappingURL=utils.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/DocMarkdown/utils.ts"],"names":["cleanURL","url","replace","remapHashURL","specKey","transformURL"],"mappings":";;;;;;;AA+BA,IAAMA,QAAQ,GAAIC,GAAD,IACf,CAACA,GAAG,IAAI,EAAR,EACGC,OADH,CACW,UADX,EACuB,EADvB,EAEGA,OAFH,CAEW,YAFX,EAEyB,EAFzB,EAGGA,OAHH,CAGW,cAHX,EAG2B,EAH3B,EAIGA,OAJH,CAIW,gBAJX,EAI6B,EAJ7B,CADF;;AAaO,IAAMC,YAAY,GAAG,CAACC,OAAD,EAAkBH,GAAlB,KAC1B,CAACA,GAAG,IAAI,EAAR,EAEGC,OAFH,CAEW,mCAFX,aAEoDE,OAFpD,qBAIGF,OAJH,CAIW,4BAJX,aAI6CE,OAJ7C,iBADK;;;;AAaA,IAAMC,YAAY,GAAG,CAACD,OAAD,EAAkBH,GAAlB,KAAkC;AAC5D,SAAOE,YAAY,CAACC,OAAD,EAAUJ,QAAQ,CAACC,GAAD,CAAlB,CAAnB;AACD,CAFM","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\n/**\n * Remove mark tags from url\n * @param url\n * @returns a clean url\n */\nconst cleanURL = (url: string) =>\n (url || '')\n .replace(/<mark>/gi, '')\n .replace(/<\\/mark>/gi, '')\n .replace(/%3Cmark%3E/gi, '')\n .replace(/%3C\\/mark%3E/gi, '')\n\n/**\n * Remaps tag/method a hashbang url to match the MethodScene route.\n * @param url\n * @param specKey A string to identify the spec in the URL\n * @returns the cleaned and remapped hashbang url\n */\nexport const remapHashURL = (specKey: string, url: string) =>\n (url || '')\n // #!/:navVersion?/:methodTag/:methodName\n .replace(/#!\\/(:?\\d+\\.\\d+\\/)?(\\w+)\\/(\\w+)/gi, `/${specKey}/methods/$2/$3`)\n // #!/:navVersion/:methodTag\n .replace(/#!\\/(:?\\d+\\.\\d+\\/)?(\\w+)/gi, `/${specKey}/methods/$2`)\n\n/**\n * Clean urls from mark tags and remap tag/method hashbang urls to match the MethodScene route\n * @param specKey A string to identify the spec in the URL\n * @param url - url\n * Returns transformed url\n */\nexport const transformURL = (specKey: string, url: string) => {\n return remapHashURL(specKey, cleanURL(url))\n}\n"],"file":"utils.js"}
1
+ {"version":3,"file":"utils.js","names":["cleanURL","url","replace","remapHashURL","specKey","transformURL"],"sources":["../../../src/components/DocMarkdown/utils.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 */\n\n/**\n * Remove mark tags from url\n * @param url\n * @returns a clean url\n */\nconst cleanURL = (url: string) =>\n (url || '')\n .replace(/<mark>/gi, '')\n .replace(/<\\/mark>/gi, '')\n .replace(/%3Cmark%3E/gi, '')\n .replace(/%3C\\/mark%3E/gi, '')\n\n/**\n * Remaps tag/method a hashbang url to match the MethodScene route.\n * @param url\n * @param specKey A string to identify the spec in the URL\n * @returns the cleaned and remapped hashbang url\n */\nexport const remapHashURL = (specKey: string, url: string) =>\n (url || '')\n // #!/:navVersion?/:methodTag/:methodName\n .replace(/#!\\/(:?\\d+\\.\\d+\\/)?(\\w+)\\/(\\w+)/gi, `/${specKey}/methods/$2/$3`)\n // #!/:navVersion/:methodTag\n .replace(/#!\\/(:?\\d+\\.\\d+\\/)?(\\w+)/gi, `/${specKey}/methods/$2`)\n\n/**\n * Clean urls from mark tags and remap tag/method hashbang urls to match the MethodScene route\n * @param specKey A string to identify the spec in the URL\n * @param url - url\n * Returns transformed url\n */\nexport const transformURL = (specKey: string, url: string) => {\n return remapHashURL(specKey, cleanURL(url))\n}\n"],"mappings":";;;;;;AA+BA,IAAMA,QAAQ,GAAIC,GAAW,IAC3B,CAACA,GAAG,IAAI,EAAE,EACPC,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC,CACvBA,OAAO,CAAC,YAAY,EAAE,EAAE,CAAC,CACzBA,OAAO,CAAC,cAAc,EAAE,EAAE,CAAC,CAC3BA,OAAO,CAAC,gBAAgB,EAAE,EAAE,CAAC;AAQ3B,IAAMC,YAAY,GAAG,CAACC,OAAe,EAAEH,GAAW,KACvD,CAACA,GAAG,IAAI,EAAE,EAEPC,OAAO,CAAC,mCAAmC,aAAME,OAAO,oBAAiB,CAEzEF,OAAO,CAAC,4BAA4B,aAAME,OAAO,iBAAc;AAAA;AAQ7D,IAAMC,YAAY,GAAG,CAACD,OAAe,EAAEH,GAAW,KAAK;EAC5D,OAAOE,YAAY,CAACC,OAAO,EAAEJ,QAAQ,CAACC,GAAG,CAAC,CAAC;AAC7C,CAAC;AAAA"}
@@ -4,19 +4,12 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.DocMethodSummary = void 0;
7
-
8
7
  var _react = _interopRequireDefault(require("react"));
9
-
10
8
  var _components = require("@looker/components");
11
-
12
9
  var _runIt = require("@looker/run-it");
13
-
14
10
  var _components2 = require("../../components");
15
-
16
11
  var _DocSummaryStatus = require("./DocSummaryStatus");
17
-
18
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
-
20
13
  var DocMethodSummary = _ref => {
21
14
  var {
22
15
  method
@@ -50,6 +43,5 @@ var DocMethodSummary = _ref => {
50
43
  status: method.status
51
44
  }))));
52
45
  };
53
-
54
46
  exports.DocMethodSummary = DocMethodSummary;
55
47
  //# sourceMappingURL=DocMethodSummary.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/DocMethodSummary/DocMethodSummary.tsx"],"names":["DocMethodSummary","method","httpMethod","toUpperCase","summary","endpoint","status"],"mappings":";;;;;;;AA0BA;;AACA;;AAEA;;AACA;;AACA;;;;AAMO,IAAMA,gBAA2C,GAAG;AAAA,MAAC;AAAEC,IAAAA;AAAF,GAAD;AAAA,SACzD,6BAAC,gBAAD;AAAM,IAAA,QAAQ,EAAC,OAAf;AAAuB,IAAA,MAAM;AAA7B,KACE,6BAAC,uBAAD,QACE,6BAAC,iBAAD;AAAO,IAAA,KAAK,EAAC,OAAb;AAAqB,IAAA,OAAO;AAA5B,KACE,6BAAC,kBAAD;AACE,IAAA,IAAI,EAAEA,MAAM,CAACC,UADf;AAEE,IAAA,SAAS,EAAC,QAFZ;AAGE,IAAA,QAAQ,EAAC;AAHX,KAKGD,MAAM,CAACC,UAAP,CAAkBC,WAAlB,EALH,CADF,EAQE,6BAAC,gBAAD;AAAM,IAAA,UAAU,EAAC,OAAjB;AAAyB,IAAA,aAAa,EAAC,QAAvC;AAAgD,IAAA,IAAI,EAAC,GAArD;AAAyD,IAAA,EAAE,EAAC;AAA5D,KACE,6BAAC,mBAAD;AAAc,IAAA,EAAE,EAAC,IAAjB;AAAsB,IAAA,EAAE,EAAC,GAAzB;AAA6B,IAAA,EAAE,EAAC;AAAhC,KACGF,MAAM,CAACG,OADV,CADF,EAIE,6BAAC,iBAAD,QACE,6BAAC,2BAAD;AAAgB,IAAA,MAAM,EAAEH;AAAxB,IADF,EAEE,6BAAC,4BAAD;AAAiB,IAAA,MAAM,EAAEA;AAAzB,IAFF,CAJF,EAQE,6BAAC,gBAAD;AAAM,IAAA,KAAK,EAAC;AAAZ,KAAuBA,MAAM,CAACI,QAA9B,CARF,CARF,EAkBE,6BAAC,kCAAD;AAAkB,IAAA,MAAM,EAAEJ,MAAM,CAACK;AAAjC,IAlBF,CADF,CADF,CADyD;AAAA,CAApD","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 { Card, CardContent, Flex, Space, Text } from '@looker/components'\nimport type { IMethod } from '@looker/sdk-codegen'\nimport { MethodBadge, RunItHeading } from '@looker/run-it'\nimport { DocActivityType, DocRateLimited } from '../../components'\nimport { DocSummaryStatus } from './DocSummaryStatus'\n\ninterface DocMethodSummaryProps {\n method: IMethod\n}\n\nexport const DocMethodSummary: FC<DocMethodSummaryProps> = ({ method }) => (\n <Card maxWidth=\"50rem\" border>\n <CardContent>\n <Space align=\"start\" between>\n <MethodBadge\n type={method.httpMethod}\n textAlign=\"center\"\n minWidth=\"3.7625rem\"\n >\n {method.httpMethod.toUpperCase()}\n </MethodBadge>\n <Flex alignItems=\"start\" flexDirection=\"column\" flex=\"1\" mx=\"small\">\n <RunItHeading as=\"h3\" mb=\"0\" pt=\"0\">\n {method.summary}\n </RunItHeading>\n <Space>\n <DocRateLimited method={method} />\n <DocActivityType method={method} />\n </Space>\n <Text color=\"subdued\">{method.endpoint}</Text>\n </Flex>\n <DocSummaryStatus status={method.status} />\n </Space>\n </CardContent>\n </Card>\n)\n"],"file":"DocMethodSummary.js"}
1
+ {"version":3,"file":"DocMethodSummary.js","names":["DocMethodSummary","method","httpMethod","toUpperCase","summary","endpoint","status"],"sources":["../../../src/components/DocMethodSummary/DocMethodSummary.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 { Card, CardContent, Flex, Space, Text } from '@looker/components'\nimport type { IMethod } from '@looker/sdk-codegen'\nimport { MethodBadge, RunItHeading } from '@looker/run-it'\nimport { DocActivityType, DocRateLimited } from '../../components'\nimport { DocSummaryStatus } from './DocSummaryStatus'\n\ninterface DocMethodSummaryProps {\n method: IMethod\n}\n\nexport const DocMethodSummary: FC<DocMethodSummaryProps> = ({ method }) => (\n <Card maxWidth=\"50rem\" border>\n <CardContent>\n <Space align=\"start\" between>\n <MethodBadge\n type={method.httpMethod}\n textAlign=\"center\"\n minWidth=\"3.7625rem\"\n >\n {method.httpMethod.toUpperCase()}\n </MethodBadge>\n <Flex alignItems=\"start\" flexDirection=\"column\" flex=\"1\" mx=\"small\">\n <RunItHeading as=\"h3\" mb=\"0\" pt=\"0\">\n {method.summary}\n </RunItHeading>\n <Space>\n <DocRateLimited method={method} />\n <DocActivityType method={method} />\n </Space>\n <Text color=\"subdued\">{method.endpoint}</Text>\n </Flex>\n <DocSummaryStatus status={method.status} />\n </Space>\n </CardContent>\n </Card>\n)\n"],"mappings":";;;;;;AA0BA;AACA;AAEA;AACA;AACA;AAAqD;AAM9C,IAAMA,gBAA2C,GAAG;EAAA,IAAC;IAAEC;EAAO,CAAC;EAAA,OACpE,6BAAC,gBAAI;IAAC,QAAQ,EAAC,OAAO;IAAC,MAAM;EAAA,GAC3B,6BAAC,uBAAW,QACV,6BAAC,iBAAK;IAAC,KAAK,EAAC,OAAO;IAAC,OAAO;EAAA,GAC1B,6BAAC,kBAAW;IACV,IAAI,EAAEA,MAAM,CAACC,UAAW;IACxB,SAAS,EAAC,QAAQ;IAClB,QAAQ,EAAC;EAAW,GAEnBD,MAAM,CAACC,UAAU,CAACC,WAAW,EAAE,CACpB,EACd,6BAAC,gBAAI;IAAC,UAAU,EAAC,OAAO;IAAC,aAAa,EAAC,QAAQ;IAAC,IAAI,EAAC,GAAG;IAAC,EAAE,EAAC;EAAO,GACjE,6BAAC,mBAAY;IAAC,EAAE,EAAC,IAAI;IAAC,EAAE,EAAC,GAAG;IAAC,EAAE,EAAC;EAAG,GAChCF,MAAM,CAACG,OAAO,CACF,EACf,6BAAC,iBAAK,QACJ,6BAAC,2BAAc;IAAC,MAAM,EAAEH;EAAO,EAAG,EAClC,6BAAC,4BAAe;IAAC,MAAM,EAAEA;EAAO,EAAG,CAC7B,EACR,6BAAC,gBAAI;IAAC,KAAK,EAAC;EAAS,GAAEA,MAAM,CAACI,QAAQ,CAAQ,CACzC,EACP,6BAAC,kCAAgB;IAAC,MAAM,EAAEJ,MAAM,CAACK;EAAO,EAAG,CACrC,CACI,CACT;AAAA,CACR;AAAA"}
@@ -4,15 +4,10 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.DocSummaryStatus = void 0;
7
-
8
7
  var _react = _interopRequireDefault(require("react"));
9
-
10
8
  var _components = require("@looker/components");
11
-
12
9
  var _utils = require("./utils");
13
-
14
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
-
16
11
  var DocSummaryStatus = _ref => {
17
12
  var {
18
13
  status
@@ -21,6 +16,5 @@ var DocSummaryStatus = _ref => {
21
16
  content: (0, _utils.pickTooltipContent)(status)
22
17
  }, (0, _utils.pickStatus)(status));
23
18
  };
24
-
25
19
  exports.DocSummaryStatus = DocSummaryStatus;
26
20
  //# sourceMappingURL=DocSummaryStatus.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/DocMethodSummary/DocSummaryStatus.tsx"],"names":["DocSummaryStatus","status"],"mappings":";;;;;;;AA0BA;;AACA;;AAEA;;;;AAMO,IAAMA,gBAA2C,GAAG;AAAA,MAAC;AAAEC,IAAAA;AAAF,GAAD;AAAA,SACzD,6BAAC,mBAAD;AAAS,IAAA,OAAO,EAAE,+BAAmBA,MAAnB;AAAlB,KAA+C,uBAAWA,MAAX,CAA/C,CADyD;AAAA,CAApD","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 { Tooltip } from '@looker/components'\n\nimport { pickStatus, pickTooltipContent } from './utils'\n\ninterface DocSummaryStatusProps {\n status: string\n}\n\nexport const DocSummaryStatus: FC<DocSummaryStatusProps> = ({ status }) => (\n <Tooltip content={pickTooltipContent(status)}>{pickStatus(status)}</Tooltip>\n)\n"],"file":"DocSummaryStatus.js"}
1
+ {"version":3,"file":"DocSummaryStatus.js","names":["DocSummaryStatus","status","pickTooltipContent","pickStatus"],"sources":["../../../src/components/DocMethodSummary/DocSummaryStatus.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 { Tooltip } from '@looker/components'\n\nimport { pickStatus, pickTooltipContent } from './utils'\n\ninterface DocSummaryStatusProps {\n status: string\n}\n\nexport const DocSummaryStatus: FC<DocSummaryStatusProps> = ({ status }) => (\n <Tooltip content={pickTooltipContent(status)}>{pickStatus(status)}</Tooltip>\n)\n"],"mappings":";;;;;;AA0BA;AACA;AAEA;AAAwD;AAMjD,IAAMA,gBAA2C,GAAG;EAAA,IAAC;IAAEC;EAAO,CAAC;EAAA,OACpE,6BAAC,mBAAO;IAAC,OAAO,EAAE,IAAAC,yBAAkB,EAACD,MAAM;EAAE,GAAE,IAAAE,iBAAU,EAACF,MAAM,CAAC,CAAW;AAAA,CAC7E;AAAA"}
@@ -21,10 +21,7 @@ Object.defineProperty(exports, "pickTooltipContent", {
21
21
  return _utils.pickTooltipContent;
22
22
  }
23
23
  });
24
-
25
24
  var _DocMethodSummary = require("./DocMethodSummary");
26
-
27
25
  var _DocSummaryStatus = require("./DocSummaryStatus");
28
-
29
26
  var _utils = require("./utils");
30
27
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/DocMethodSummary/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAyBA;;AACA;;AACA","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 { DocMethodSummary } from './DocMethodSummary'\nexport { DocSummaryStatus } from './DocSummaryStatus'\nexport { pickTooltipContent } from './utils'\n"],"file":"index.js"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../src/components/DocMethodSummary/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 { DocMethodSummary } from './DocMethodSummary'\nexport { DocSummaryStatus } from './DocSummaryStatus'\nexport { pickTooltipContent } from './utils'\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAyBA;AACA;AACA"}
@@ -4,28 +4,19 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.pickTooltipContent = exports.pickStatus = void 0;
7
-
8
7
  var _react = _interopRequireDefault(require("react"));
9
-
10
8
  var _styledComponents = _interopRequireDefault(require("styled-components"));
11
-
12
9
  var _components = require("@looker/components");
13
-
14
10
  var _icons = require("@looker/icons");
15
-
16
11
  var _VisibilityOff = require("@styled-icons/material/VisibilityOff");
17
-
18
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
-
20
13
  var pickStatus = status => {
21
14
  var title = "".concat(status.toLowerCase(), " item");
22
-
23
15
  switch (status.toLowerCase()) {
24
16
  case 'beta':
25
17
  return _react.default.createElement(StatusBeta, {
26
18
  "aria-label": title
27
19
  }, "\u03B2");
28
-
29
20
  case 'experimental':
30
21
  {
31
22
  return _react.default.createElement(_components.Icon, {
@@ -34,7 +25,6 @@ var pickStatus = status => {
34
25
  icon: _react.default.createElement(_icons.Beaker, null)
35
26
  });
36
27
  }
37
-
38
28
  case 'alpha':
39
29
  {
40
30
  return _react.default.createElement(_components.Icon, {
@@ -43,7 +33,6 @@ var pickStatus = status => {
43
33
  icon: _react.default.createElement(_icons.Beaker, null)
44
34
  });
45
35
  }
46
-
47
36
  case 'undocumented':
48
37
  {
49
38
  return _react.default.createElement(_components.Icon, {
@@ -52,21 +41,18 @@ var pickStatus = status => {
52
41
  icon: _react.default.createElement(_VisibilityOff.VisibilityOff, null)
53
42
  });
54
43
  }
55
-
56
44
  case 'deprecated':
57
45
  return _react.default.createElement(_components.Status, {
58
46
  "aria-label": title,
59
47
  intent: "critical",
60
48
  size: "small"
61
49
  });
62
-
63
50
  case 'stable':
64
51
  return _react.default.createElement(_components.Status, {
65
52
  "aria-label": title,
66
53
  intent: "positive",
67
54
  size: "small"
68
55
  });
69
-
70
56
  default:
71
57
  return _react.default.createElement(_components.Status, {
72
58
  "aria-label": "unknown status endpoint",
@@ -75,39 +61,29 @@ var pickStatus = status => {
75
61
  });
76
62
  }
77
63
  };
78
-
79
64
  exports.pickStatus = pickStatus;
80
-
81
65
  var pickTooltipContent = status => {
82
66
  switch (status.toLowerCase()) {
83
67
  case 'alpha':
84
68
  return 'This alpha item is either for internal use, or not fully developed and may be significantly changed or completely removed in future releases.';
85
-
86
69
  case 'beta':
87
70
  return 'This beta item is under development and subject to change.';
88
-
89
71
  case 'experimental':
90
72
  return 'This experimental item is not fully developed and may be significantly changed or completely removed in future releases.';
91
-
92
73
  case 'deprecated':
93
74
  return 'This item has been deprecated and will be removed in the future.';
94
-
95
75
  case 'stable':
96
76
  return 'This item is considered stable for this API version.';
97
-
98
77
  case 'undocumented':
99
78
  return 'This is an internal-only item.';
100
-
101
79
  default:
102
80
  return 'This item has no status associated with it.';
103
81
  }
104
82
  };
105
-
106
83
  exports.pickTooltipContent = pickTooltipContent;
107
-
108
84
  var StatusBeta = _styledComponents.default.div.withConfig({
109
85
  displayName: "utils__StatusBeta",
110
- componentId: "ugxyok-0"
86
+ componentId: "sc-ugxyok-0"
111
87
  })(["display:flex;align-items:center;justify-content:center;font-size:", ";color:", ";width:1.125rem;height:1.125rem;"], _ref => {
112
88
  var {
113
89
  theme
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/DocMethodSummary/utils.tsx"],"names":["pickStatus","status","title","toLowerCase","pickTooltipContent","StatusBeta","styled","div","theme","fontSizes","xxsmall","colors","neutral"],"mappings":";;;;;;;AAyBA;;AACA;;AACA;;AACA;;AACA;;;;AAMO,IAAMA,UAAU,GAAIC,MAAD,IAAoB;AAC5C,MAAMC,KAAK,aAAMD,MAAM,CAACE,WAAP,EAAN,UAAX;;AACA,UAAQF,MAAM,CAACE,WAAP,EAAR;AACE,SAAK,MAAL;AACE,aAAO,6BAAC,UAAD;AAAY,sBAAYD;AAAxB,kBAAP;;AACF,SAAK,cAAL;AAAqB;AACnB,eAAO,6BAAC,gBAAD;AAAM,UAAA,KAAK,EAAEA,KAAb;AAAoB,wBAAYA,KAAhC;AAAuC,UAAA,IAAI,EAAE,6BAAC,aAAD;AAA7C,UAAP;AACD;;AACD,SAAK,OAAL;AAAc;AACZ,eAAO,6BAAC,gBAAD;AAAM,UAAA,KAAK,EAAEA,KAAb;AAAoB,wBAAYA,KAAhC;AAAuC,UAAA,IAAI,EAAE,6BAAC,aAAD;AAA7C,UAAP;AACD;;AACD,SAAK,cAAL;AAAqB;AACnB,eAAO,6BAAC,gBAAD;AAAM,UAAA,KAAK,EAAEA,KAAb;AAAoB,wBAAYA,KAAhC;AAAuC,UAAA,IAAI,EAAE,6BAAC,4BAAD;AAA7C,UAAP;AACD;;AACD,SAAK,YAAL;AACE,aAAO,6BAAC,kBAAD;AAAQ,sBAAYA,KAApB;AAA2B,QAAA,MAAM,EAAC,UAAlC;AAA6C,QAAA,IAAI,EAAC;AAAlD,QAAP;;AACF,SAAK,QAAL;AACE,aAAO,6BAAC,kBAAD;AAAQ,sBAAYA,KAApB;AAA2B,QAAA,MAAM,EAAC,UAAlC;AAA6C,QAAA,IAAI,EAAC;AAAlD,QAAP;;AACF;AACE,aACE,6BAAC,kBAAD;AACE,sBAAW,yBADb;AAEE,QAAA,MAAM,EAAC,SAFT;AAGE,QAAA,IAAI,EAAC;AAHP,QADF;AAjBJ;AAyBD,CA3BM;;;;AAiCA,IAAME,kBAAkB,GAAIH,MAAD,IAAoB;AACpD,UAAQA,MAAM,CAACE,WAAP,EAAR;AACE,SAAK,OAAL;AACE,aAAO,+IAAP;;AACF,SAAK,MAAL;AACE,aAAO,4DAAP;;AACF,SAAK,cAAL;AACE,aAAO,0HAAP;;AACF,SAAK,YAAL;AACE,aAAO,kEAAP;;AACF,SAAK,QAAL;AACE,aAAO,sDAAP;;AACF,SAAK,cAAL;AACE,aAAO,gCAAP;;AACF;AACE,aAAO,6CAAP;AAdJ;AAgBD,CAjBM;;;;AAmBP,IAAME,UAAU,GAAGC,0BAAOC,GAAV;AAAA;AAAA;AAAA,yHAID;AAAA,MAAC;AAAEC,IAAAA;AAAF,GAAD;AAAA,SAAeA,KAAK,CAACC,SAAN,CAAgBC,OAA/B;AAAA,CAJC,EAKL;AAAA,MAAC;AAAEF,IAAAA;AAAF,GAAD;AAAA,SAAeA,KAAK,CAACG,MAAN,CAAaC,OAA5B;AAAA,CALK,CAAhB","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"],"file":"utils.js"}
1
+ {"version":3,"file":"utils.js","names":["pickStatus","status","title","toLowerCase","pickTooltipContent","StatusBeta","styled","div","theme","fontSizes","xxsmall","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;AACA;AACA;AACA;AACA;AAAoE;AAM7D,IAAMA,UAAU,GAAIC,MAAc,IAAK;EAC5C,IAAMC,KAAK,aAAMD,MAAM,CAACE,WAAW,EAAE,UAAO;EAC5C,QAAQF,MAAM,CAACE,WAAW,EAAE;IAC1B,KAAK,MAAM;MACT,OAAO,6BAAC,UAAU;QAAC,cAAYD;MAAM,GAAC,QAAM,CAAa;IAC3D,KAAK,cAAc;MAAE;QACnB,OAAO,6BAAC,gBAAI;UAAC,KAAK,EAAEA,KAAM;UAAC,cAAYA,KAAM;UAAC,IAAI,EAAE,6BAAC,aAAM;QAAI,EAAG;MACpE;IACA,KAAK,OAAO;MAAE;QACZ,OAAO,6BAAC,gBAAI;UAAC,KAAK,EAAEA,KAAM;UAAC,cAAYA,KAAM;UAAC,IAAI,EAAE,6BAAC,aAAM;QAAI,EAAG;MACpE;IACA,KAAK,cAAc;MAAE;QACnB,OAAO,6BAAC,gBAAI;UAAC,KAAK,EAAEA,KAAM;UAAC,cAAYA,KAAM;UAAC,IAAI,EAAE,6BAAC,4BAAa;QAAI,EAAG;MAC3E;IACA,KAAK,YAAY;MACf,OAAO,6BAAC,kBAAM;QAAC,cAAYA,KAAM;QAAC,MAAM,EAAC,UAAU;QAAC,IAAI,EAAC;MAAO,EAAG;IACrE,KAAK,QAAQ;MACX,OAAO,6BAAC,kBAAM;QAAC,cAAYA,KAAM;QAAC,MAAM,EAAC,UAAU;QAAC,IAAI,EAAC;MAAO,EAAG;IACrE;MACE,OACE,6BAAC,kBAAM;QACL,cAAW,yBAAyB;QACpC,MAAM,EAAC,SAAS;QAChB,IAAI,EAAC;MAAO,EACZ;EACH;AAEP,CAAC;AAAA;AAMM,IAAME,kBAAkB,GAAIH,MAAc,IAAK;EACpD,QAAQA,MAAM,CAACE,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;AAAA;AAED,IAAME,UAAU,GAAGC,yBAAM,CAACC,GAAG;EAAA;EAAA;AAAA,yHAId;EAAA,IAAC;IAAEC;EAAM,CAAC;EAAA,OAAKA,KAAK,CAACC,SAAS,CAACC,OAAO;AAAA,GAC1C;EAAA,IAAC;IAAEF;EAAM,CAAC;EAAA,OAAKA,KAAK,CAACG,MAAM,CAACC,OAAO;AAAA,EAG7C"}
@@ -4,15 +4,10 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.DocParam = void 0;
7
-
8
7
  var _react = _interopRequireDefault(require("react"));
9
-
10
8
  var _components = require("@looker/components");
11
-
12
9
  var _sdkCodegen = require("@looker/sdk-codegen");
13
-
14
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
-
16
11
  var DocParam = _ref => {
17
12
  var {
18
13
  parameter
@@ -21,6 +16,5 @@ var DocParam = _ref => {
21
16
  content: "".concat(parameter.type.name, " ").concat((0, _sdkCodegen.describeParam)(parameter))
22
17
  }, _react.default.createElement("span", null, parameter.required ? parameter.name : "[".concat(parameter.name, "]")));
23
18
  };
24
-
25
19
  exports.DocParam = DocParam;
26
20
  //# sourceMappingURL=DocParam.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/DocPseudo/DocParam.tsx"],"names":["DocParam","parameter","type","name","required"],"mappings":";;;;;;;AA0BA;;AAEA;;AACA;;;;AAMO,IAAMA,QAAyB,GAAG;AAAA,MAAC;AAAEC,IAAAA;AAAF,GAAD;AAAA,SACvC,6BAAC,mBAAD;AAAS,IAAA,OAAO,YAAKA,SAAS,CAACC,IAAV,CAAeC,IAApB,cAA4B,+BAAcF,SAAd,CAA5B;AAAhB,KACE,2CAAOA,SAAS,CAACG,QAAV,GAAqBH,SAAS,CAACE,IAA/B,cAA0CF,SAAS,CAACE,IAApD,MAAP,CADF,CADuC;AAAA,CAAlC","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"],"file":"DocParam.js"}
1
+ {"version":3,"file":"DocParam.js","names":["DocParam","parameter","type","name","describeParam","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;AAEA;AACA;AAAmD;AAM5C,IAAMA,QAAyB,GAAG;EAAA,IAAC;IAAEC;EAAU,CAAC;EAAA,OACrD,6BAAC,mBAAO;IAAC,OAAO,YAAKA,SAAS,CAACC,IAAI,CAACC,IAAI,cAAI,IAAAC,yBAAa,EAACH,SAAS,CAAC;EAAG,GACrE,2CAAOA,SAAS,CAACI,QAAQ,GAAGJ,SAAS,CAACE,IAAI,cAAOF,SAAS,CAACE,IAAI,MAAG,CAAQ,CAClE;AAAA,CACX;AAAA"}
@@ -4,15 +4,10 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.DocParams = void 0;
7
-
8
7
  var _react = _interopRequireWildcard(require("react"));
9
-
10
8
  var _DocParam = require("./DocParam");
11
-
12
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); }
13
-
14
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; }
15
-
16
11
  var DocParams = _ref => {
17
12
  var {
18
13
  parameters
@@ -24,6 +19,5 @@ var DocParams = _ref => {
24
19
  key: index
25
20
  }))));
26
21
  };
27
-
28
22
  exports.DocParams = DocParams;
29
23
  //# sourceMappingURL=DocParams.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/DocPseudo/DocParams.tsx"],"names":["DocParams","parameters","map","a","index"],"mappings":";;;;;;;AA2BA;;AAEA;;;;;;AAMO,IAAMA,SAA2B,GAAG;AAAA,MAAC;AAAEC,IAAAA;AAAF,GAAD;AAAA,SACzC,4DACGA,UAAU,CAACC,GAAX,CAAe,CAACC,CAAD,EAAIC,KAAJ,KACd,6BAAC,eAAD;AAAU,IAAA,GAAG,EAAEA;AAAf,KACGA,KAAK,GAAG,IAAH,GAAU,EADlB,EAEE,6BAAC,kBAAD;AAAU,IAAA,SAAS,EAAED,CAArB;AAAwB,IAAA,GAAG,EAAEC;AAA7B,IAFF,CADD,CADH,CADyC;AAAA,CAApC","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"],"file":"DocParams.js"}
1
+ {"version":3,"file":"DocParams.js","names":["DocParams","parameters","map","a","index"],"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;AAEA;AAAqC;AAAA;AAM9B,IAAMA,SAA2B,GAAG;EAAA,IAAC;IAAEC;EAAW,CAAC;EAAA,OACxD,4DACGA,UAAU,CAACC,GAAG,CAAC,CAACC,CAAC,EAAEC,KAAK,KACvB,6BAAC,eAAQ;IAAC,GAAG,EAAEA;EAAM,GAClBA,KAAK,GAAG,IAAI,GAAG,EAAE,EAClB,6BAAC,kBAAQ;IAAC,SAAS,EAAED,CAAE;IAAC,GAAG,EAAEC;EAAM,EAAG,CAEzC,CAAC,CACD;AAAA,CACJ;AAAA"}
@@ -4,13 +4,9 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.DocPrimaryResponse = void 0;
7
-
8
7
  var _react = _interopRequireDefault(require("react"));
9
-
10
8
  var _components = require("@looker/components");
11
-
12
9
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
-
14
10
  var DocPrimaryResponse = _ref => {
15
11
  var {
16
12
  response
@@ -19,6 +15,5 @@ var DocPrimaryResponse = _ref => {
19
15
  content: "".concat(response.description, " ").concat(response.mediaType)
20
16
  }, _react.default.createElement("span", null, response.type.name));
21
17
  };
22
-
23
18
  exports.DocPrimaryResponse = DocPrimaryResponse;
24
19
  //# sourceMappingURL=DocPrimaryResponse.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/DocPseudo/DocPrimaryResponse.tsx"],"names":["DocPrimaryResponse","response","description","mediaType","type","name"],"mappings":";;;;;;;AA2BA;;AACA;;;;AAMO,IAAMA,kBAA+C,GAAG;AAAA,MAAC;AAC9DC,IAAAA;AAD8D,GAAD;AAAA,SAG7D,6BAAC,mBAAD;AAAS,IAAA,OAAO,YAAKA,QAAQ,CAACC,WAAd,cAA6BD,QAAQ,CAACE,SAAtC;AAAhB,KACE,2CAAOF,QAAQ,CAACG,IAAT,CAAcC,IAArB,CADF,CAH6D;AAAA,CAAxD","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"],"file":"DocPrimaryResponse.js"}
1
+ {"version":3,"file":"DocPrimaryResponse.js","names":["DocPrimaryResponse","response","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;AACA;AAA4C;AAMrC,IAAMA,kBAA+C,GAAG;EAAA,IAAC;IAC9DC;EACF,CAAC;EAAA,OACC,6BAAC,mBAAO;IAAC,OAAO,YAAKA,QAAQ,CAACC,WAAW,cAAID,QAAQ,CAACE,SAAS;EAAG,GAChE,2CAAOF,QAAQ,CAACG,IAAI,CAACC,IAAI,CAAQ,CACzB;AAAA,CACX;AAAA"}
@@ -4,17 +4,11 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.DocPseudo = void 0;
7
-
8
7
  var _react = _interopRequireDefault(require("react"));
9
-
10
8
  var _components = require("@looker/components");
11
-
12
9
  var _DocPrimaryResponse = require("./DocPrimaryResponse");
13
-
14
10
  var _DocParams = require("./DocParams");
15
-
16
11
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
-
18
12
  var DocPseudo = _ref => {
19
13
  var {
20
14
  method
@@ -32,6 +26,5 @@ var DocPseudo = _ref => {
32
26
  response: resType
33
27
  })));
34
28
  };
35
-
36
29
  exports.DocPseudo = DocPseudo;
37
30
  //# sourceMappingURL=DocPseudo.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/DocPseudo/DocPseudo.tsx"],"names":["DocPseudo","method","args","allParams","resType","primaryResponse","operationId"],"mappings":";;;;;;;AA2BA;;AACA;;AAGA;;AACA;;;;AAMO,IAAMA,SAA0B,GAAG,QAAgB;AAAA,MAAf;AAAEC,IAAAA;AAAF,GAAe;AACxD,MAAMC,IAAI,GAAGD,MAAM,CAACE,SAApB;AACA,MAAMC,OAAO,GAAGH,MAAM,CAACI,eAAvB;AAEA,SACE,6BAAC,gBAAD;AAAM,IAAA,UAAU,EAAC;AAAjB,KACE,6BAAC,gBAAD;AAAM,IAAA,QAAQ,EAAC,OAAf;AAAuB,IAAA,UAAU,EAAC;AAAlC,eACMJ,MAAM,CAACK,WADb,QAEE,6BAAC,oBAAD;AAAW,IAAA,UAAU,EAAEJ;AAAvB,IAFF,EAGG,KAHH,EAIE,6BAAC,sCAAD;AAAoB,IAAA,QAAQ,EAAEE;AAA9B,IAJF,CADF,CADF;AAUD,CAdM","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"],"file":"DocPseudo.js"}
1
+ {"version":3,"file":"DocPseudo.js","names":["DocPseudo","method","args","allParams","resType","primaryResponse","operationId"],"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;AACA;AAGA;AACA;AAAuC;AAMhC,IAAMA,SAA0B,GAAG,QAAgB;EAAA,IAAf;IAAEC;EAAO,CAAC;EACnD,IAAMC,IAAI,GAAGD,MAAM,CAACE,SAAS;EAC7B,IAAMC,OAAO,GAAGH,MAAM,CAACI,eAAe;EAEtC,OACE,6BAAC,gBAAI;IAAC,UAAU,EAAC;EAAY,GAC3B,6BAAC,gBAAI;IAAC,QAAQ,EAAC,OAAO;IAAC,UAAU,EAAC;EAAQ,aACpCJ,MAAM,CAACK,WAAW,QACtB,6BAAC,oBAAS;IAAC,UAAU,EAAEJ;EAAK,EAAG,EAC9B,KAAK,EACN,6BAAC,sCAAkB;IAAC,QAAQ,EAAEE;EAAQ,EAAG,CACpC,CACF;AAEX,CAAC;AAAA"}
@@ -9,6 +9,5 @@ Object.defineProperty(exports, "DocPseudo", {
9
9
  return _DocPseudo.DocPseudo;
10
10
  }
11
11
  });
12
-
13
12
  var _DocPseudo = require("./DocPseudo");
14
13
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/DocPseudo/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAyBA","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"],"file":"index.js"}
1
+ {"version":3,"file":"index.js","names":[],"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"}
@@ -4,13 +4,9 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.DocRateLimited = void 0;
7
-
8
7
  var _react = _interopRequireDefault(require("react"));
9
-
10
8
  var _components = require("@looker/components");
11
-
12
9
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
-
14
10
  var DocRateLimited = _ref => {
15
11
  var {
16
12
  method
@@ -22,6 +18,5 @@ var DocRateLimited = _ref => {
22
18
  color: "palette.charcoal500"
23
19
  }, 'rate_limited'))));
24
20
  };
25
-
26
21
  exports.DocRateLimited = DocRateLimited;
27
22
  //# sourceMappingURL=DocRateLimited.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/DocRateLimited/DocRateLimited.tsx"],"names":["DocRateLimited","method","rateLimited"],"mappings":";;;;;;;AA0BA;;AACA;;;;AAMO,IAAMA,cAAuC,GAAG;AAAA,MAAC;AAAEC,IAAAA;AAAF,GAAD;AAAA,SACrD,4DACGA,MAAM,CAACC,WAAP,IACC,4DACE,6BAAC,mBAAD;AAAS,IAAA,SAAS,EAAC,MAAnB;AAA0B,IAAA,OAAO,EAAE;AAAnC,KACE,6BAAC,gBAAD;AAAM,IAAA,KAAK,EAAC;AAAZ,KAAmC,cAAnC,CADF,CADF,CAFJ,CADqD;AAAA,CAAhD","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"],"file":"DocRateLimited.js"}
1
+ {"version":3,"file":"DocRateLimited.js","names":["DocRateLimited","method","rateLimited"],"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;AACA;AAAkD;AAM3C,IAAMA,cAAuC,GAAG;EAAA,IAAC;IAAEC;EAAO,CAAC;EAAA,OAChE,4DACGA,MAAM,CAACC,WAAW,IACjB,4DACE,6BAAC,mBAAO;IAAC,SAAS,EAAC,MAAM;IAAC,OAAO,EAAE;EAAiC,GAClE,6BAAC,gBAAI;IAAC,KAAK,EAAC;EAAqB,GAAE,cAAc,CAAQ,CACjD,CAEb,CACA;AAAA,CACJ;AAAA"}
@@ -9,6 +9,5 @@ Object.defineProperty(exports, "DocRateLimited", {
9
9
  return _DocRateLimited.DocRateLimited;
10
10
  }
11
11
  });
12
-
13
12
  var _DocRateLimited = require("./DocRateLimited");
14
13
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/DocRateLimited/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAyBA","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"],"file":"index.js"}
1
+ {"version":3,"file":"index.js","names":[],"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"}
@@ -4,19 +4,12 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.DocReferences = void 0;
7
-
8
7
  var _react = _interopRequireDefault(require("react"));
9
-
10
8
  var _runIt = require("@looker/run-it");
11
-
12
9
  var _reactRedux = require("react-redux");
13
-
14
10
  var _state = require("../../state");
15
-
16
11
  var _utils = require("./utils");
17
-
18
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
-
20
13
  var DocReferences = _ref => {
21
14
  var {
22
15
  typesUsed,
@@ -32,6 +25,5 @@ var DocReferences = _ref => {
32
25
  id: "references"
33
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)));
34
27
  };
35
-
36
28
  exports.DocReferences = DocReferences;
37
29
  //# sourceMappingURL=DocReferences.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/DocReferences/DocReferences.tsx"],"names":["DocReferences","typesUsed","specKey","api","methodsUsedBy","typesUsedBy","searchPattern","selectSearchPattern","length"],"mappings":";;;;;;;AA2BA;;AAEA;;AAEA;;AACA;;AACA;;;;AAaO,IAAMA,aAAqC,GAAG,QAM/C;AAAA,MANgD;AACpDC,IAAAA,SADoD;AAEpDC,IAAAA,OAFoD;AAGpDC,IAAAA,GAHoD;AAIpDC,IAAAA,aAAa,GAAG,EAJoC;AAKpDC,IAAAA,WAAW,GAAG;AALsC,GAMhD;AACJ,MAAMC,aAAa,GAAG,6BAAYC,0BAAZ,CAAtB;AAEA,MACEN,SAAS,CAACO,MAAV,KAAqB,CAArB,IACAJ,aAAa,CAACI,MAAd,KAAyB,CADzB,IAEAH,WAAW,CAACG,MAAZ,KAAuB,CAHzB,EAKE,OAAO,2DAAP;AAEF,SACE,6BAAC,oBAAD;AAAe,IAAA,OAAO,EAAC,YAAvB;AAAoC,IAAA,EAAE,EAAC;AAAvC,KACE,4DACG,8BACC,mBADD,EAECP,SAFD,EAGCE,GAHD,EAICD,OAJD,EAKCI,aALD,CADH,EAQG,8BACC,gBADD,EAECD,WAFD,EAGCF,GAHD,EAICD,OAJD,EAKCI,aALD,CARH,EAeG,8BACC,kBADD,EAECF,aAFD,EAGCD,GAHD,EAICD,OAJD,EAKCI,aALD,CAfH,CADF,CADF;AA2BD,CA3CM","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"],"file":"DocReferences.js"}
1
+ {"version":3,"file":"DocReferences.js","names":["DocReferences","typesUsed","specKey","api","methodsUsedBy","typesUsedBy","searchPattern","useSelector","selectSearchPattern","length","DocReferenceItems"],"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;AAEA;AAEA;AACA;AACA;AAA2C;AAapC,IAAMA,aAAqC,GAAG,QAM/C;EAAA,IANgD;IACpDC,SAAS;IACTC,OAAO;IACPC,GAAG;IACHC,aAAa,GAAG,EAAE;IAClBC,WAAW,GAAG;EAChB,CAAC;EACC,IAAMC,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,OAAO,2DAAK;EAEd,OACE,6BAAC,oBAAa;IAAC,OAAO,EAAC,YAAY;IAAC,EAAE,EAAC;EAAY,GACjD,4DACG,IAAAC,wBAAiB,EAChB,mBAAmB,EACnBT,SAAS,EACTE,GAAG,EACHD,OAAO,EACPI,aAAa,CACd,EACA,IAAAI,wBAAiB,EAChB,gBAAgB,EAChBL,WAAW,EACXF,GAAG,EACHD,OAAO,EACPI,aAAa,CACd,EACA,IAAAI,wBAAiB,EAChB,kBAAkB,EAClBN,aAAa,EACbD,GAAG,EACHD,OAAO,EACPI,aAAa,CACd,CACA,CACW;AAEpB,CAAC;AAAA"}
@@ -9,6 +9,5 @@ Object.defineProperty(exports, "DocReferences", {
9
9
  return _DocReferences.DocReferences;
10
10
  }
11
11
  });
12
-
13
12
  var _DocReferences = require("./DocReferences");
14
13
  //# sourceMappingURL=index.js.map