@scalar/api-reference 1.32.10 → 1.33.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (345) hide show
  1. package/CHANGELOG.md +70 -0
  2. package/dist/browser/standalone.js +15385 -15039
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/Anchor/Anchor.vue.d.ts.map +1 -1
  5. package/dist/components/Anchor/Anchor.vue.js +50 -5
  6. package/dist/components/Anchor/Anchor.vue2.js +2 -42
  7. package/dist/components/ApiReference.vue.js +6 -6
  8. package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
  9. package/dist/components/ApiReferenceLayout.vue.js +6 -6
  10. package/dist/components/ApiReferenceLayout.vue2.js +107 -104
  11. package/dist/components/ApiReferenceLayout.vue3.js +4 -0
  12. package/dist/components/ApiReferenceLayout.vue4.js +4 -0
  13. package/dist/components/ApiReferenceLayout.vue5.js +4 -0
  14. package/dist/components/ApiReferenceLayout.vue6.js +4 -0
  15. package/dist/components/Badge/Badge.vue.js +1 -1
  16. package/dist/components/Badge/Badge.vue2.js +4 -0
  17. package/dist/components/ClassicHeader.vue.js +1 -1
  18. package/dist/components/ClassicHeader.vue2.js +4 -0
  19. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts +14 -1
  20. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts.map +1 -1
  21. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.js +3 -3
  22. package/dist/components/Content/ClientLibraries/ClientLibraries.vue2.js +74 -84
  23. package/dist/components/Content/ClientLibraries/ClientLibraries.vue3.js +4 -0
  24. package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts +8 -0
  25. package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts.map +1 -1
  26. package/dist/components/Content/ClientLibraries/ClientSelector.vue.js +2 -2
  27. package/dist/components/Content/ClientLibraries/ClientSelector.vue2.js +81 -80
  28. package/dist/components/Content/ClientLibraries/ClientSelector.vue3.js +4 -0
  29. package/dist/components/Content/ClientLibraries/featured-clients.d.ts +11 -0
  30. package/dist/components/Content/ClientLibraries/featured-clients.d.ts.map +1 -0
  31. package/dist/components/Content/ClientLibraries/featured-clients.js +17 -0
  32. package/dist/components/Content/Content.vue.d.ts +5 -6
  33. package/dist/components/Content/Content.vue.d.ts.map +1 -1
  34. package/dist/components/Content/Content.vue.js +49 -6
  35. package/dist/components/Content/Content.vue2.js +2 -160
  36. package/dist/components/Content/Content.vue3.js +5 -0
  37. package/dist/components/Content/Introduction/Description.vue.js +1 -1
  38. package/dist/components/Content/Introduction/Description.vue3.js +4 -0
  39. package/dist/components/Content/Introduction/Introduction.vue.d.ts +7 -17
  40. package/dist/components/Content/Introduction/Introduction.vue.d.ts.map +1 -1
  41. package/dist/components/Content/Introduction/Introduction.vue.js +3 -3
  42. package/dist/components/Content/Introduction/Introduction.vue2.js +103 -150
  43. package/dist/components/Content/Introduction/Introduction.vue3.js +4 -0
  44. package/dist/components/Content/Introduction/IntroductionSection.vue.d.ts +25 -0
  45. package/dist/components/Content/Introduction/IntroductionSection.vue.d.ts.map +1 -0
  46. package/dist/components/Content/Introduction/IntroductionSection.vue.js +7 -0
  47. package/dist/components/Content/Introduction/IntroductionSection.vue2.js +159 -0
  48. package/dist/components/Content/Introduction/IntroductionSection.vue3.js +4 -0
  49. package/dist/components/Content/Models/{ModelsAccordion.vue.d.ts → ClassicLayout.vue.d.ts} +2 -2
  50. package/dist/components/Content/Models/ClassicLayout.vue.d.ts.map +1 -0
  51. package/dist/components/Content/Models/ClassicLayout.vue.js +7 -0
  52. package/dist/components/Content/Models/{ModelsAccordion.vue2.js → ClassicLayout.vue2.js} +30 -30
  53. package/dist/components/Content/Models/ClassicLayout.vue3.js +4 -0
  54. package/dist/components/Content/Models/Models.vue.d.ts +3 -1
  55. package/dist/components/Content/Models/Models.vue.d.ts.map +1 -1
  56. package/dist/components/Content/Models/Models.vue.js +38 -5
  57. package/dist/components/Content/Models/Models.vue2.js +2 -114
  58. package/dist/components/Content/Models/ModernLayout.vue.d.ts +7 -0
  59. package/dist/components/Content/Models/ModernLayout.vue.d.ts.map +1 -0
  60. package/dist/components/Content/Models/ModernLayout.vue.js +7 -0
  61. package/dist/components/Content/Models/ModernLayout.vue2.js +100 -0
  62. package/dist/components/Content/Models/ModernLayout.vue3.js +4 -0
  63. package/dist/components/Content/Models/index.d.ts +0 -1
  64. package/dist/components/Content/Models/index.d.ts.map +1 -1
  65. package/dist/components/Content/Operations/TraversedEntry.vue.d.ts +21 -0
  66. package/dist/components/Content/Operations/TraversedEntry.vue.d.ts.map +1 -0
  67. package/dist/components/Content/Operations/TraversedEntry.vue.js +95 -0
  68. package/dist/components/Content/Operations/TraversedEntry.vue2.js +4 -0
  69. package/dist/components/Content/Operations/TraversedEntryContainer.vue.d.ts +17 -0
  70. package/dist/components/Content/Operations/TraversedEntryContainer.vue.d.ts.map +1 -0
  71. package/dist/components/Content/Operations/TraversedEntryContainer.vue.js +56 -0
  72. package/dist/components/Content/Operations/TraversedEntryContainer.vue2.js +4 -0
  73. package/dist/components/Content/Operations/index.d.ts +2 -0
  74. package/dist/components/Content/Operations/index.d.ts.map +1 -0
  75. package/dist/components/Content/Schema/Schema.vue.js +1 -1
  76. package/dist/components/Content/Schema/Schema.vue3.js +4 -0
  77. package/dist/components/Content/Schema/SchemaComposition.vue.d.ts.map +1 -1
  78. package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue.d.ts.map +1 -1
  79. package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue.js +3 -3
  80. package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue3.js +4 -0
  81. package/dist/components/Content/Schema/SchemaEnumValues.vue.d.ts.map +1 -1
  82. package/dist/components/Content/Schema/SchemaEnumValues.vue.js +3 -3
  83. package/dist/components/Content/Schema/SchemaEnumValues.vue2.js +63 -68
  84. package/dist/components/Content/Schema/SchemaEnumValues.vue3.js +4 -0
  85. package/dist/components/Content/Schema/SchemaHeading.vue.d.ts.map +1 -1
  86. package/dist/components/Content/Schema/SchemaHeading.vue.js +4 -4
  87. package/dist/components/Content/Schema/SchemaHeading.vue2.js +23 -22
  88. package/dist/components/Content/Schema/SchemaHeading.vue3.js +4 -0
  89. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
  90. package/dist/components/Content/Schema/SchemaProperty.vue.js +2 -2
  91. package/dist/components/Content/Schema/SchemaProperty.vue2.js +34 -33
  92. package/dist/components/Content/Schema/SchemaProperty.vue3.js +4 -0
  93. package/dist/components/Content/Schema/SchemaPropertyDetail.vue.d.ts.map +1 -1
  94. package/dist/components/Content/Schema/SchemaPropertyDetail.vue.js +2 -2
  95. package/dist/components/Content/Schema/SchemaPropertyDetail.vue3.js +4 -0
  96. package/dist/components/Content/Schema/SchemaPropertyExamples.vue.js +3 -3
  97. package/dist/components/Content/Schema/SchemaPropertyExamples.vue3.js +4 -0
  98. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
  99. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +3 -3
  100. package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +26 -23
  101. package/dist/components/Content/Schema/SchemaPropertyHeading.vue3.js +4 -0
  102. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.d.ts +2 -1
  103. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.d.ts.map +1 -1
  104. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.js +59 -52
  105. package/dist/components/Content/Schema/helpers/optimize-value-for-display.d.ts.map +1 -1
  106. package/dist/components/Content/Schema/helpers/optimize-value-for-display.js +24 -20
  107. package/dist/components/Content/Schema/helpers/schema-name.d.ts +1 -1
  108. package/dist/components/Content/Schema/helpers/schema-name.d.ts.map +1 -1
  109. package/dist/components/Content/{Tag/TagAccordion.vue.d.ts → Tags/ClassicLayout.vue.d.ts} +3 -3
  110. package/dist/components/Content/Tags/ClassicLayout.vue.d.ts.map +1 -0
  111. package/dist/components/Content/Tags/ClassicLayout.vue.js +7 -0
  112. package/dist/components/Content/Tags/ClassicLayout.vue2.js +51 -0
  113. package/dist/components/Content/Tags/ClassicLayout.vue3.js +4 -0
  114. package/dist/components/Content/{Tag/TagSection.vue.d.ts → Tags/ModernLayout.vue.d.ts} +17 -13
  115. package/dist/components/Content/Tags/ModernLayout.vue.d.ts.map +1 -0
  116. package/dist/components/Content/Tags/ModernLayout.vue.js +7 -0
  117. package/dist/components/Content/Tags/ModernLayout.vue2.js +69 -0
  118. package/dist/components/Content/Tags/ModernLayout.vue3.js +4 -0
  119. package/dist/components/Content/Tags/Tag.vue.d.ts +25 -0
  120. package/dist/components/Content/Tags/Tag.vue.d.ts.map +1 -0
  121. package/dist/components/Content/Tags/Tag.vue.js +27 -0
  122. package/dist/components/Content/{Tag/Tag.vue.d.ts → Tags/TagSection.vue.d.ts} +3 -6
  123. package/dist/components/Content/Tags/TagSection.vue.d.ts.map +1 -0
  124. package/dist/components/Content/Tags/TagSection.vue.js +104 -0
  125. package/dist/components/Content/Tags/TagSection.vue2.js +4 -0
  126. package/dist/components/Content/Tags/index.d.ts +2 -0
  127. package/dist/components/Content/Tags/index.d.ts.map +1 -0
  128. package/dist/components/GettingStarted.vue.js +1 -1
  129. package/dist/components/GettingStarted.vue3.js +4 -0
  130. package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -1
  131. package/dist/components/HttpMethod/HttpMethod.vue.js +8 -6
  132. package/dist/components/{Content/Lazy → Lazy}/Lazy.vue.d.ts +1 -10
  133. package/dist/components/Lazy/Lazy.vue.d.ts.map +1 -0
  134. package/dist/components/Lazy/Lazy.vue2.js +25 -0
  135. package/dist/components/Lazy/index.d.ts +3 -0
  136. package/dist/components/Lazy/index.d.ts.map +1 -0
  137. package/dist/components/Lazy/lazyBus.d.ts +8 -0
  138. package/dist/components/Lazy/lazyBus.d.ts.map +1 -0
  139. package/dist/components/Lazy/lazyBus.js +7 -0
  140. package/dist/components/LinkList/LinkList.vue.d.ts +3 -1
  141. package/dist/components/LinkList/LinkList.vue.d.ts.map +1 -1
  142. package/dist/components/LinkList/LinkList.vue.js +5 -10
  143. package/dist/components/LinkList/LinkList.vue2.js +32 -0
  144. package/dist/components/LinkList/LinkList.vue3.js +4 -0
  145. package/dist/components/LoadingSkeleton.vue.d.ts.map +1 -1
  146. package/dist/components/LoadingSkeleton.vue.js +3 -3
  147. package/dist/components/LoadingSkeleton.vue3.js +4 -0
  148. package/dist/components/MobileHeader.vue.js +1 -1
  149. package/dist/components/MobileHeader.vue3.js +4 -0
  150. package/dist/components/OperationPath.vue.js +1 -1
  151. package/dist/components/OperationPath.vue3.js +4 -0
  152. package/dist/components/{Content/Tag → OperationsList}/OperationsList.vue.d.ts +2 -5
  153. package/dist/components/OperationsList/OperationsList.vue.d.ts.map +1 -0
  154. package/dist/components/OperationsList/OperationsList.vue.js +7 -0
  155. package/dist/components/OperationsList/OperationsList.vue2.js +60 -0
  156. package/dist/components/OperationsList/OperationsList.vue3.js +4 -0
  157. package/dist/components/{Content/Tag → OperationsList}/OperationsListItem.vue.d.ts +2 -4
  158. package/dist/components/OperationsList/OperationsListItem.vue.d.ts.map +1 -0
  159. package/dist/components/OperationsList/OperationsListItem.vue.js +7 -0
  160. package/dist/components/OperationsList/OperationsListItem.vue2.js +63 -0
  161. package/dist/components/OperationsList/OperationsListItem.vue3.js +4 -0
  162. package/dist/components/OperationsList/index.d.ts +2 -0
  163. package/dist/components/OperationsList/index.d.ts.map +1 -0
  164. package/dist/components/ScreenReader.vue.js +1 -1
  165. package/dist/components/ScreenReader.vue3.js +4 -0
  166. package/dist/components/Section/CompactSection.vue.d.ts.map +1 -1
  167. package/dist/components/Section/CompactSection.vue.js +3 -3
  168. package/dist/components/Section/CompactSection.vue2.js +35 -36
  169. package/dist/components/Section/CompactSection.vue3.js +4 -0
  170. package/dist/components/Section/Section.vue.js +1 -1
  171. package/dist/components/Section/Section.vue3.js +4 -0
  172. package/dist/components/Section/SectionAccordion.vue.d.ts.map +1 -1
  173. package/dist/components/Section/SectionAccordion.vue.js +3 -3
  174. package/dist/components/Section/SectionAccordion.vue2.js +42 -36
  175. package/dist/components/Section/SectionAccordion.vue3.js +4 -0
  176. package/dist/components/Section/SectionColumn.vue.js +1 -1
  177. package/dist/components/Section/SectionColumn.vue2.js +4 -0
  178. package/dist/components/Section/SectionColumns.vue.js +1 -1
  179. package/dist/components/Section/SectionColumns.vue2.js +4 -0
  180. package/dist/components/Section/SectionContainer.vue.d.ts +9 -2
  181. package/dist/components/Section/SectionContainer.vue.d.ts.map +1 -1
  182. package/dist/components/Section/SectionContainer.vue.js +5 -11
  183. package/dist/components/Section/SectionContainer.vue2.js +18 -0
  184. package/dist/components/Section/SectionContainer.vue3.js +4 -0
  185. package/dist/components/Section/SectionContainerAccordion.vue.d.ts.map +1 -1
  186. package/dist/components/Section/SectionContainerAccordion.vue.js +3 -3
  187. package/dist/components/Section/SectionContainerAccordion.vue3.js +4 -0
  188. package/dist/components/Section/SectionContent.vue.js +1 -1
  189. package/dist/components/Section/SectionContent.vue3.js +4 -0
  190. package/dist/components/Section/SectionHeader.vue.js +1 -1
  191. package/dist/components/Section/SectionHeader.vue3.js +4 -0
  192. package/dist/components/Section/SectionHeaderTag.vue.js +1 -1
  193. package/dist/components/Section/SectionHeaderTag.vue3.js +4 -0
  194. package/dist/components/SectionFlare/SectionFlare.vue.d.ts +3 -0
  195. package/dist/components/SectionFlare/SectionFlare.vue.d.ts.map +1 -0
  196. package/dist/components/SectionFlare/SectionFlare.vue.js +13 -0
  197. package/dist/components/SectionFlare/SectionFlare.vue2.js +4 -0
  198. package/dist/components/SectionFlare/index.d.ts +2 -0
  199. package/dist/components/SectionFlare/index.d.ts.map +1 -0
  200. package/dist/components/ShowMoreButton.vue.d.ts.map +1 -1
  201. package/dist/components/ShowMoreButton.vue.js +3 -3
  202. package/dist/components/ShowMoreButton.vue2.js +12 -12
  203. package/dist/components/ShowMoreButton.vue3.js +4 -0
  204. package/dist/features/Operation/Operation.vue.d.ts +5 -1
  205. package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
  206. package/dist/features/Operation/Operation.vue.js +55 -38
  207. package/dist/features/Operation/components/ContentTypeSelect.vue.d.ts.map +1 -1
  208. package/dist/features/Operation/components/ContentTypeSelect.vue.js +28 -30
  209. package/dist/features/Operation/components/ParameterHeaders.vue.js +1 -1
  210. package/dist/features/Operation/components/ParameterHeaders.vue3.js +4 -0
  211. package/dist/features/Operation/components/ParameterList.vue.js +1 -1
  212. package/dist/features/Operation/components/ParameterList.vue3.js +4 -0
  213. package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
  214. package/dist/features/Operation/components/ParameterListItem.vue.js +2 -2
  215. package/dist/features/Operation/components/ParameterListItem.vue2.js +31 -29
  216. package/dist/features/Operation/components/ParameterListItem.vue3.js +4 -0
  217. package/dist/features/Operation/components/RequestBody.vue.js +1 -1
  218. package/dist/features/Operation/components/RequestBody.vue3.js +4 -0
  219. package/dist/features/Operation/components/callbacks/Callback.vue.d.ts.map +1 -1
  220. package/dist/features/Operation/components/callbacks/Callback.vue.js +3 -3
  221. package/dist/features/Operation/components/callbacks/Callback.vue2.js +9 -9
  222. package/dist/features/Operation/components/callbacks/Callback.vue3.js +4 -0
  223. package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts.map +1 -1
  224. package/dist/features/Operation/components/callbacks/Callbacks.vue.js +20 -28
  225. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +6 -0
  226. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
  227. package/dist/features/Operation/layouts/ClassicLayout.vue.js +2 -2
  228. package/dist/features/Operation/layouts/ClassicLayout.vue2.js +77 -62
  229. package/dist/features/Operation/layouts/ClassicLayout.vue3.js +4 -0
  230. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +6 -0
  231. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
  232. package/dist/features/Operation/layouts/ModernLayout.vue.js +3 -3
  233. package/dist/features/Operation/layouts/ModernLayout.vue2.js +94 -81
  234. package/dist/features/Operation/layouts/ModernLayout.vue3.js +4 -0
  235. package/dist/features/Search/SearchModal.vue.js +4 -4
  236. package/dist/features/Search/SearchModal.vue2.js +9 -9
  237. package/dist/features/Search/SearchModal.vue3.js +4 -0
  238. package/dist/features/api-client-modal/ApiClientModal.vue.d.ts.map +1 -1
  239. package/dist/features/api-client-modal/useApiClient.d.ts +414 -354
  240. package/dist/features/api-client-modal/useApiClient.d.ts.map +1 -1
  241. package/dist/features/download-link/DownloadLink.vue.js +2 -2
  242. package/dist/features/download-link/DownloadLink.vue3.js +4 -0
  243. package/dist/features/example-responses/ExampleResponse.vue.d.ts +4 -2
  244. package/dist/features/example-responses/ExampleResponse.vue.d.ts.map +1 -1
  245. package/dist/features/example-responses/ExampleResponse.vue.js +3 -3
  246. package/dist/features/example-responses/ExampleResponse.vue2.js +15 -14
  247. package/dist/features/example-responses/ExampleResponse.vue3.js +4 -0
  248. package/dist/features/example-responses/ExampleResponseTab.vue.js +1 -1
  249. package/dist/features/example-responses/ExampleResponseTab.vue3.js +4 -0
  250. package/dist/features/example-responses/ExampleResponseTabList.vue.js +1 -1
  251. package/dist/features/example-responses/ExampleResponseTabList.vue3.js +4 -0
  252. package/dist/features/example-responses/ExampleResponses.vue.d.ts +3 -2
  253. package/dist/features/example-responses/ExampleResponses.vue.d.ts.map +1 -1
  254. package/dist/features/example-responses/ExampleResponses.vue.js +4 -4
  255. package/dist/features/example-responses/ExampleResponses.vue2.js +107 -104
  256. package/dist/features/example-responses/ExampleResponses.vue3.js +4 -0
  257. package/dist/features/info-object/License.vue.d.ts.map +1 -1
  258. package/dist/features/info-object/License.vue.js +18 -15
  259. package/dist/features/sidebar/components/Sidebar.vue.js +3 -3
  260. package/dist/features/sidebar/components/Sidebar.vue3.js +4 -0
  261. package/dist/features/sidebar/components/SidebarElement.vue.js +3 -3
  262. package/dist/features/sidebar/components/SidebarElement.vue3.js +4 -0
  263. package/dist/features/sidebar/components/SidebarGroup.vue.js +1 -1
  264. package/dist/features/sidebar/components/SidebarGroup.vue3.js +4 -0
  265. package/dist/features/sidebar/components/SidebarHttpBadge.vue.js +1 -1
  266. package/dist/features/sidebar/components/SidebarHttpBadge.vue3.js +4 -0
  267. package/dist/features/sidebar/helpers/create-sidebar.js +12 -12
  268. package/dist/features/test-request-button/TestRequestButton.vue.js +1 -1
  269. package/dist/features/test-request-button/TestRequestButton.vue3.js +4 -0
  270. package/dist/features/traverse-schema/index.d.ts +2 -1
  271. package/dist/features/traverse-schema/index.d.ts.map +1 -1
  272. package/dist/helpers/test-utils.d.ts +51 -0
  273. package/dist/helpers/test-utils.d.ts.map +1 -0
  274. package/dist/index.d.ts +1 -0
  275. package/dist/index.d.ts.map +1 -1
  276. package/dist/index.js +24 -21
  277. package/dist/style.css +1 -1
  278. package/dist/types.d.ts +5 -0
  279. package/dist/types.d.ts.map +1 -1
  280. package/dist/v2/ApiReferenceWorkspace.vue.d.ts +1 -1
  281. package/dist/v2/ApiReferenceWorkspace.vue.d.ts.map +1 -1
  282. package/dist/v2/ApiReferenceWorkspace.vue.js +83 -93
  283. package/dist/v2/ApiReferenceWorkspace.vue2.js +4 -0
  284. package/dist/v2/ApiReferenceWorkspace.vue3.js +1 -1
  285. package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.d.ts +2 -2
  286. package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.d.ts.map +1 -1
  287. package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue2.js +32 -29
  288. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.d.ts +4 -13
  289. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.d.ts.map +1 -1
  290. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.js +3 -3
  291. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue2.js +185 -181
  292. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue3.js +4 -0
  293. package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.d.ts +1 -0
  294. package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.d.ts.map +1 -1
  295. package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.js +1 -0
  296. package/dist/v2/blocks/scalar-request-example-block/helpers/generate-client-options.d.ts +12 -13
  297. package/dist/v2/blocks/scalar-request-example-block/helpers/generate-client-options.d.ts.map +1 -1
  298. package/dist/v2/blocks/scalar-request-example-block/helpers/generate-client-options.js +28 -30
  299. package/dist/v2/blocks/scalar-request-example-block/types.d.ts +11 -3
  300. package/dist/v2/blocks/scalar-request-example-block/types.d.ts.map +1 -1
  301. package/package.json +19 -19
  302. package/dist/components/Content/ClientLibraries/useFeaturedHttpClients.d.ts +0 -16
  303. package/dist/components/Content/ClientLibraries/useFeaturedHttpClients.d.ts.map +0 -1
  304. package/dist/components/Content/ClientLibraries/useFeaturedHttpClients.js +0 -36
  305. package/dist/components/Content/Lazy/Lazy.vue.d.ts.map +0 -1
  306. package/dist/components/Content/Lazy/Lazy.vue2.js +0 -22
  307. package/dist/components/Content/Lazy/Loading.vue.d.ts +0 -18
  308. package/dist/components/Content/Lazy/Loading.vue.d.ts.map +0 -1
  309. package/dist/components/Content/Lazy/Loading.vue.js +0 -163
  310. package/dist/components/Content/Lazy/Loading.vue3.js +0 -5
  311. package/dist/components/Content/Lazy/index.d.ts +0 -3
  312. package/dist/components/Content/Lazy/index.d.ts.map +0 -1
  313. package/dist/components/Content/Lazy/lazyBus.d.ts +0 -4
  314. package/dist/components/Content/Lazy/lazyBus.d.ts.map +0 -1
  315. package/dist/components/Content/Lazy/lazyBus.js +0 -5
  316. package/dist/components/Content/Models/ModelsAccordion.vue.d.ts.map +0 -1
  317. package/dist/components/Content/Models/ModelsAccordion.vue.js +0 -7
  318. package/dist/components/Content/Tag/OperationsList.vue.d.ts.map +0 -1
  319. package/dist/components/Content/Tag/OperationsList.vue.js +0 -7
  320. package/dist/components/Content/Tag/OperationsList.vue2.js +0 -58
  321. package/dist/components/Content/Tag/OperationsListItem.vue.d.ts.map +0 -1
  322. package/dist/components/Content/Tag/OperationsListItem.vue.js +0 -7
  323. package/dist/components/Content/Tag/OperationsListItem.vue2.js +0 -67
  324. package/dist/components/Content/Tag/Tag.vue.d.ts.map +0 -1
  325. package/dist/components/Content/Tag/Tag.vue.js +0 -99
  326. package/dist/components/Content/Tag/TagAccordion.vue.d.ts.map +0 -1
  327. package/dist/components/Content/Tag/TagAccordion.vue.js +0 -7
  328. package/dist/components/Content/Tag/TagAccordion.vue2.js +0 -50
  329. package/dist/components/Content/Tag/TagList.vue.d.ts +0 -22
  330. package/dist/components/Content/Tag/TagList.vue.d.ts.map +0 -1
  331. package/dist/components/Content/Tag/TagList.vue.js +0 -73
  332. package/dist/components/Content/Tag/TagList.vue2.js +0 -4
  333. package/dist/components/Content/Tag/TagSection.vue.d.ts.map +0 -1
  334. package/dist/components/Content/Tag/TagSection.vue.js +0 -7
  335. package/dist/components/Content/Tag/TagSection.vue2.js +0 -67
  336. package/dist/components/Content/Tag/index.d.ts +0 -3
  337. package/dist/components/Content/Tag/index.d.ts.map +0 -1
  338. package/dist/stores/useHttpClientStore.d.ts +0 -43
  339. package/dist/stores/useHttpClientStore.d.ts.map +0 -1
  340. package/dist/stores/useHttpClientStore.js +0 -70
  341. package/dist/v2/hooks/useStore.d.ts +0 -9
  342. package/dist/v2/hooks/useStore.d.ts.map +0 -1
  343. package/dist/v2/hooks/useStore.js +0 -14
  344. /package/dist/components/Content/{Tag → Tags}/Tag.vue2.js +0 -0
  345. /package/dist/components/{Content/Lazy → Lazy}/Lazy.vue.js +0 -0
@@ -1,7 +0,0 @@
1
- import o from "./TagAccordion.vue2.js";
2
- /* empty css */
3
- import r from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const d = /* @__PURE__ */ r(o, [["__scopeId", "data-v-ab8ddc14"]]);
5
- export {
6
- d as default
7
- };
@@ -1,50 +0,0 @@
1
- import { defineComponent as i, createBlock as n, openBlock as c, unref as e, withCtx as t, renderSlot as l, createVNode as a, createTextVNode as d, toDisplayString as s } from "vue";
2
- import { ScalarMarkdown as m } from "@scalar/components";
3
- import { useNavState as p } from "../../../hooks/useNavState.js";
4
- import f from "../../Section/SectionContainerAccordion.vue.js";
5
- import u from "../../Section/SectionHeader.vue.js";
6
- import g from "../../Anchor/Anchor.vue.js";
7
- import _ from "../../Section/SectionHeaderTag.vue.js";
8
- const B = /* @__PURE__ */ i({
9
- __name: "TagAccordion",
10
- props: {
11
- tag: {}
12
- },
13
- setup(S) {
14
- const { getTagId: r } = p();
15
- return (o, v) => (c(), n(e(f), { class: "tag-section" }, {
16
- title: t(() => [
17
- a(e(u), { class: "tag-name" }, {
18
- default: t(() => [
19
- a(e(g), {
20
- id: e(r)(o.tag)
21
- }, {
22
- default: t(() => [
23
- a(e(_), { level: 2 }, {
24
- default: t(() => [
25
- d(s(o.tag.name), 1)
26
- ]),
27
- _: 1
28
- })
29
- ]),
30
- _: 1
31
- }, 8, ["id"])
32
- ]),
33
- _: 1
34
- }),
35
- a(e(m), {
36
- class: "tag-description",
37
- value: o.tag.description,
38
- withImages: ""
39
- }, null, 8, ["value"])
40
- ]),
41
- default: t(() => [
42
- l(o.$slots, "default", {}, void 0, !0)
43
- ]),
44
- _: 3
45
- }));
46
- }
47
- });
48
- export {
49
- B as default
50
- };
@@ -1,22 +0,0 @@
1
- import type { Collection, Server } from '@scalar/oas-utils/entities/spec';
2
- import type { OpenAPIV3_1 } from '@scalar/openapi-types';
3
- import type { Spec, Tag as TagType } from '@scalar/types/legacy';
4
- type __VLS_Props = {
5
- /** Just to set the id for webhooks, for now */
6
- id?: string;
7
- document: OpenAPIV3_1.Document;
8
- /**
9
- * @deprecated Use `document` instead
10
- */
11
- collection: Collection;
12
- tags: TagType[];
13
- /**
14
- * @deprecated Use `document` instead
15
- */
16
- spec: Spec;
17
- layout?: 'modern' | 'classic';
18
- server?: Server;
19
- };
20
- declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
21
- export default _default;
22
- //# sourceMappingURL=TagList.vue.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TagList.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/TagList.vue"],"names":[],"mappings":"AA2FA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AACzE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,KAAK,EAAE,IAAI,EAAE,GAAG,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAahE,KAAK,WAAW,GAAG;IACjB,+CAA+C;IAC/C,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAAA;IAC9B;;OAEG;IACH,UAAU,EAAE,UAAU,CAAA;IACtB,IAAI,EAAE,OAAO,EAAE,CAAA;IACf;;OAEG;IACH,IAAI,EAAE,IAAI,CAAA;IACV,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,CAAC;;AA8HF,wBAMG"}
@@ -1,73 +0,0 @@
1
- import { defineComponent as z, computed as m, createElementBlock as p, openBlock as a, Fragment as y, renderList as f, createBlock as r, unref as o, withCtx as c, resolveDynamicComponent as S, createVNode as h } from "vue";
2
- import { ScalarErrorBoundary as B } from "@scalar/components";
3
- import { useNavState as I } from "../../../hooks/useNavState.js";
4
- import T from "./TagAccordion.vue.js";
5
- import W from "./TagSection.vue.js";
6
- import { useSidebar as C } from "../../../features/sidebar/hooks/useSidebar.js";
7
- import v from "../Lazy/Lazy.vue2.js";
8
- import E from "../../../features/Operation/Operation.vue.js";
9
- const G = /* @__PURE__ */ z({
10
- __name: "TagList",
11
- props: {
12
- id: {},
13
- document: {},
14
- collection: {},
15
- tags: {},
16
- spec: {},
17
- layout: {},
18
- server: {}
19
- },
20
- setup(s) {
21
- const { getTagId: l, hash: k } = I(), { collapsedSidebarItems: n } = C(), L = m(
22
- () => s.layout === "classic" ? T : W
23
- ), b = m(
24
- () => s.tags.findIndex((e) => !n[l(e)]) + 1
25
- ), u = (e) => s.layout !== "classic" && !k.value.startsWith("model") && e > b.value;
26
- return (e, N) => (a(!0), p(y, null, f(e.tags, (t, d) => (a(), r(o(v), {
27
- id: e.id || o(l)(t),
28
- key: e.id || o(l)(t),
29
- isLazy: u(d)
30
- }, {
31
- default: c(() => [
32
- (a(), r(S(L.value), {
33
- id: e.id || o(l)(t),
34
- collection: e.collection,
35
- spec: e.spec,
36
- tag: t
37
- }, {
38
- default: c(() => [
39
- (a(!0), p(y, null, f(t.operations, (i, g) => (a(), r(o(v), {
40
- id: i.id,
41
- key: i.id,
42
- isLazy: u(d) || o(n)[o(l)(t)] && g > 0
43
- }, {
44
- default: c(() => [
45
- h(o(B), null, {
46
- default: c(() => [
47
- h(o(E), {
48
- path: i.path,
49
- method: i.httpVerb,
50
- isWebhook: i.isWebhook,
51
- id: i.id,
52
- document: e.document,
53
- collection: e.collection,
54
- layout: e.layout,
55
- server: e.server
56
- }, null, 8, ["path", "method", "isWebhook", "id", "document", "collection", "layout", "server"])
57
- ]),
58
- _: 2
59
- }, 1024)
60
- ]),
61
- _: 2
62
- }, 1032, ["id", "isLazy"]))), 128))
63
- ]),
64
- _: 2
65
- }, 1032, ["id", "collection", "spec", "tag"]))
66
- ]),
67
- _: 2
68
- }, 1032, ["id", "isLazy"]))), 128));
69
- }
70
- });
71
- export {
72
- G as default
73
- };
@@ -1,4 +0,0 @@
1
- import f from "./TagList.vue.js";
2
- export {
3
- f as default
4
- };
@@ -1 +0,0 @@
1
- {"version":3,"file":"TagSection.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/TagSection.vue"],"names":[],"mappings":"AAiFA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;AACjE,OAAO,KAAK,EAAE,IAAI,EAAE,GAAG,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAChE,OAAO,EAAY,QAAQ,EAAc,MAAM,KAAK,CAAA;AAUpD,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,OAAO,CAAA;IACZ,UAAU,EAAE,UAAU,CAAA;IACtB,IAAI,EAAE,IAAI,CAAA;CACX,CAAC;AAiCF,iBAAS,cAAc;WAyFT,OAAO,IAA6B;;yBAVpB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA4DspgB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;EA7C5ygB;AAmBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,6SAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,7 +0,0 @@
1
- import o from "./TagSection.vue2.js";
2
- /* empty css */
3
- import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-e5bbfee4"]]);
5
- export {
6
- f as default
7
- };
@@ -1,67 +0,0 @@
1
- import { defineComponent as v, ref as f, useId as y, computed as r, createBlock as i, openBlock as n, unref as a, withCtx as C, createCommentVNode as b, createElementBlock as S, renderSlot as I, nextTick as T } from "vue";
2
- import _ from "./Tag.vue.js";
3
- import w from "../../ShowMoreButton.vue.js";
4
- import { useNavState as B } from "../../../hooks/useNavState.js";
5
- import { useSidebar as R } from "../../../features/sidebar/hooks/useSidebar.js";
6
- import N from "../../Section/SectionContainer.vue.js";
7
- const V = /* @__PURE__ */ v({
8
- __name: "TagSection",
9
- props: {
10
- id: {},
11
- tag: {},
12
- collection: {},
13
- spec: {}
14
- },
15
- setup(m) {
16
- const o = m, p = f(), s = f(), c = y(), { collapsedSidebarItems: d } = R(), { getTagId: g } = B(), l = r(() => o.id || g(o.tag) || ""), u = r(
17
- () => {
18
- var e, t;
19
- return ((e = o.spec.tags) == null ? void 0 : e.length) && ((t = o.spec.tags) == null ? void 0 : t.length) > 1;
20
- }
21
- ), h = r(
22
- () => {
23
- var e, t;
24
- return u.value || ((e = o.tag) == null ? void 0 : e.name) !== "default" || ((t = o.tag) == null ? void 0 : t.description) !== "";
25
- }
26
- );
27
- async function k() {
28
- var e, t;
29
- await T(), (t = (e = s.value) == null ? void 0 : e.querySelector("button")) == null || t.focus();
30
- }
31
- return (e, t) => (n(), i(a(N), {
32
- ref_key: "sectionContainerRef",
33
- ref: p,
34
- "aria-labelledby": a(c),
35
- class: "tag-section-container",
36
- role: "region"
37
- }, {
38
- default: C(() => [
39
- h.value ? (n(), i(_, {
40
- key: 0,
41
- id: e.id,
42
- collection: e.collection,
43
- headerId: a(c),
44
- isCollapsed: !a(d)[l.value],
45
- tag: e.tag
46
- }, null, 8, ["id", "collection", "headerId", "isCollapsed", "tag"])) : b("", !0),
47
- !a(d)[l.value] && u.value ? (n(), i(w, {
48
- key: 1,
49
- id: l.value,
50
- "aria-label": `Show all ${e.tag["x-displayName"] ?? e.tag.name} endpoints`,
51
- onClick: k
52
- }, null, 8, ["id", "aria-label"])) : (n(), S("div", {
53
- key: 2,
54
- ref_key: "contentsRef",
55
- ref: s,
56
- class: "contents"
57
- }, [
58
- I(e.$slots, "default", {}, void 0, !0)
59
- ], 512))
60
- ]),
61
- _: 3
62
- }, 8, ["aria-labelledby"]));
63
- }
64
- });
65
- export {
66
- V as default
67
- };
@@ -1,3 +0,0 @@
1
- export { default as TagSection } from './TagSection.vue.js';
2
- export { default as TagList } from './TagList.vue.js';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,kBAAkB,CAAA;AACxD,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,eAAe,CAAA"}
@@ -1,43 +0,0 @@
1
- import type { HiddenClients } from '@scalar/types/legacy';
2
- import type { Target, TargetId } from '@scalar/types/snippetz';
3
- import { type Ref } from 'vue';
4
- /**
5
- * Gets the client title from the availableTargets
6
- * { targetKey: 'shell', clientKey: 'curl' } -> 'Shell'
7
- */
8
- declare function getTargetTitle(client: HttpClientState): string;
9
- /**
10
- * Gets the client title from the availableTargets
11
- * { targetKey: 'shell', clientKey: 'curl' } -> 'cURL'
12
- */
13
- declare function getClientTitle(client: HttpClientState): string;
14
- /**
15
- * Filters out hidden clients from the available targets (based on the given configuration).
16
- */
17
- export declare function filterHiddenClients(targets: Target[], exclude: Ref<HiddenClients>): Target[];
18
- /** The selected HTTP client */
19
- export type HttpClientState = {
20
- targetKey: TargetId;
21
- clientKey: string;
22
- };
23
- declare function setDefaultHttpClient(httpClient?: HttpClientState): void;
24
- declare function resetState(): void;
25
- /** Keep track of the available and the selected HTTP client(s) */
26
- export declare const useHttpClientStore: () => {
27
- httpClient: {
28
- readonly targetKey: TargetId;
29
- readonly clientKey: string;
30
- };
31
- resetState: typeof resetState;
32
- setHttpClient: (newState: Partial<HttpClientState>) => void;
33
- setDefaultHttpClient: typeof setDefaultHttpClient;
34
- excludedClients: Ref<HiddenClients>;
35
- setExcludedClients: (v: HiddenClients) => void;
36
- availableTargets: import("vue").ComputedRef<Target[]>;
37
- getClientTitle: typeof getClientTitle;
38
- getTargetTitle: typeof getTargetTitle;
39
- httpTargetTitle: import("vue").ComputedRef<string>;
40
- httpClientTitle: import("vue").ComputedRef<string>;
41
- };
42
- export {};
43
- //# sourceMappingURL=useHttpClientStore.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useHttpClientStore.d.ts","sourceRoot":"","sources":["../../src/stores/useHttpClientStore.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACzD,OAAO,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAA;AAC9D,OAAO,EAAE,KAAK,GAAG,EAAqC,MAAM,KAAK,CAAA;AASjE;;;GAGG;AACH,iBAAS,cAAc,CAAC,MAAM,EAAE,eAAe,UAE9C;AAED;;;GAGG;AACH,iBAAS,cAAc,CAAC,MAAM,EAAE,eAAe,UAM9C;AAYD;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,GAAG,CAAC,aAAa,CAAC,GAAG,MAAM,EAAE,CAoD5F;AASD,+BAA+B;AAC/B,MAAM,MAAM,eAAe,GAAG;IAAE,SAAS,EAAE,QAAQ,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,CAAA;AAMxE,iBAAS,oBAAoB,CAAC,UAAU,CAAC,EAAE,eAAe,QAOzD;AAiCD,iBAAS,UAAU,SAElB;AAeD,kEAAkE;AAClE,eAAO,MAAM,kBAAkB;;4BAhEY,QAAQ;4BAAa,MAAM;;;8BAqDrC,OAAO,CAAC,eAAe,CAAC;;qBAiBP,GAAG,CAAC,aAAa,CAAC;4BACxC,aAAa;;;;;;CAaxC,CAAA"}
@@ -1,70 +0,0 @@
1
- import { safeLocalStorage as T, REFERENCE_LS_KEYS as m } from "@scalar/helpers/object/local-storage";
2
- import { objectReplace as p } from "@scalar/helpers/object/object-replace";
3
- import { snippetz as A } from "@scalar/snippetz";
4
- import { computed as o, readonly as a, ref as C, reactive as k } from "vue";
5
- const y = {
6
- targetKey: "shell",
7
- clientKey: "curl"
8
- }, { clients: H } = A();
9
- function d(t) {
10
- var n;
11
- return ((n = r.value.find((e) => e.key === t.targetKey)) == null ? void 0 : n.title) ?? t.targetKey;
12
- }
13
- function E(t) {
14
- var n, e;
15
- return ((e = (n = r.value.find((i) => i.key === t.targetKey)) == null ? void 0 : n.clients.find((i) => i.client === t.clientKey)) == null ? void 0 : e.title) ?? t.clientKey;
16
- }
17
- const L = o(() => d(l)), S = o(() => E(l));
18
- function _(t, n) {
19
- return n.value === !0 ? [] : t.flatMap((e) => {
20
- var i;
21
- return typeof n.value != "object" ? [] : Array.isArray(n.value) ? (e.clients = e.clients.filter(
22
- // @ts-expect-error Typescript, chill. It's all good. It has to be an array.
23
- (s) => !n.value.includes(s.client)
24
- ), e.clients.length ? [e] : []) : n.value[e.key] === !0 ? [] : (Array.isArray(n.value[e.key]) && (e.clients = e.clients.filter((s) => !// @ts-expect-error We checked whether it's an Array already.
25
- n.value[e.key].includes(s.client))), (i = e == null ? void 0 : e.clients) != null && i.length ? [e] : []);
26
- });
27
- }
28
- const r = o(() => _(H(), c)), c = C({}), f = C();
29
- function b(t) {
30
- t !== void 0 && (f.value = t, K(u()));
31
- }
32
- const u = () => {
33
- var t, n, e, i;
34
- return v(f.value) ? f.value : v(y) ? y : {
35
- targetKey: (t = r.value[0]) == null ? void 0 : t.key,
36
- clientKey: (i = (e = (n = r.value[0]) == null ? void 0 : n.clients) == null ? void 0 : e[0]) == null ? void 0 : i.client
37
- };
38
- };
39
- function v(t) {
40
- return t === void 0 ? !1 : !!r.value.find(
41
- (n) => n.key === t.targetKey && n.clients.find((e) => e.client === t.clientKey)
42
- );
43
- }
44
- function D() {
45
- p(l, u());
46
- }
47
- const l = k(u()), K = (t) => {
48
- Object.assign(l, {
49
- ...l,
50
- ...t
51
- }), T().setItem(m.SELECTED_CLIENT_DEPRECATED, JSON.stringify(l));
52
- }, I = () => ({
53
- httpClient: a(l),
54
- resetState: D,
55
- setHttpClient: K,
56
- setDefaultHttpClient: b,
57
- excludedClients: a(c),
58
- setExcludedClients: (t) => {
59
- c.value = t, p(l, u());
60
- },
61
- availableTargets: r,
62
- getClientTitle: E,
63
- getTargetTitle: d,
64
- httpTargetTitle: L,
65
- httpClientTitle: S
66
- });
67
- export {
68
- _ as filterHiddenClients,
69
- I as useHttpClientStore
70
- };
@@ -1,9 +0,0 @@
1
- import type { WorkspaceStore } from '@scalar/workspace-store/client';
2
- /**
3
- * Composable for accessing the new workspace store
4
- *
5
- * When called with a store it provides that store
6
- * When called without parameters, it returns the injected store
7
- */
8
- export declare const useStore: (store?: WorkspaceStore) => WorkspaceStore;
9
- //# sourceMappingURL=useStore.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useStore.d.ts","sourceRoot":"","sources":["../../../src/v2/hooks/useStore.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAKpE;;;;;GAKG;AACH,eAAO,MAAM,QAAQ,WAAY,cAAc,mBAe9C,CAAA"}
@@ -1,14 +0,0 @@
1
- import { provide as r, inject as n } from "vue";
2
- const o = Symbol(), a = (e) => {
3
- if (e)
4
- return r(o, e), e;
5
- const t = n(o);
6
- if (!t)
7
- throw new Error(
8
- "useStore() was called without a store and no store instance was found. Make sure to call useStore(store) in a parent component first."
9
- );
10
- return t;
11
- };
12
- export {
13
- a as useStore
14
- };