@scalar/api-reference 1.31.17 → 1.32.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 (223) hide show
  1. package/CHANGELOG.md +62 -0
  2. package/dist/blocks/helpers/getPointer.d.ts +1 -1
  3. package/dist/blocks/helpers/getPointer.d.ts.map +1 -1
  4. package/dist/blocks/hooks/useBlockProps.js +10 -10
  5. package/dist/browser/standalone.js +15959 -15866
  6. package/dist/browser/webpack-stats.json +1 -1
  7. package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
  8. package/dist/components/ApiReferenceLayout.vue.js +1 -1
  9. package/dist/components/ApiReferenceLayout.vue2.js +124 -126
  10. package/dist/components/ClassicHeader.vue.d.ts.map +1 -1
  11. package/dist/components/ClassicHeader.vue.js +11 -9
  12. package/dist/components/Content/Content.vue.d.ts.map +1 -1
  13. package/dist/components/Content/Content.vue.js +2 -2
  14. package/dist/components/Content/Content.vue2.js +93 -92
  15. package/dist/components/Content/Introduction/Introduction.vue.js +1 -1
  16. package/dist/components/Content/Introduction/Introduction.vue2.js +3 -3
  17. package/dist/components/Content/Lazy/Loading.vue.d.ts +3 -0
  18. package/dist/components/Content/Lazy/Loading.vue.d.ts.map +1 -1
  19. package/dist/components/Content/Lazy/Loading.vue.js +93 -93
  20. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
  21. package/dist/components/Content/Schema/SchemaProperty.vue.js +2 -2
  22. package/dist/components/Content/Schema/SchemaProperty.vue2.js +1 -1
  23. package/dist/components/Content/Tag/Tag.vue.js +1 -1
  24. package/dist/components/Content/Tag/TagList.vue.d.ts +7 -1
  25. package/dist/components/Content/Tag/TagList.vue.d.ts.map +1 -1
  26. package/dist/components/Content/Tag/TagList.vue.js +41 -38
  27. package/dist/features/Operation/Operation.vue.d.ts +8 -3
  28. package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
  29. package/dist/features/Operation/Operation.vue.js +67 -51
  30. package/dist/features/Operation/components/OperationParameters.vue.d.ts.map +1 -1
  31. package/dist/features/Operation/components/OperationResponses.vue.d.ts.map +1 -1
  32. package/dist/features/Operation/components/callbacks/Callback.vue.d.ts.map +1 -1
  33. package/dist/features/Operation/components/callbacks/Callback.vue.js +2 -2
  34. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +9 -2
  35. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
  36. package/dist/features/Operation/layouts/ClassicLayout.vue.js +2 -2
  37. package/dist/features/Operation/layouts/ClassicLayout.vue2.js +92 -84
  38. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +10 -3
  39. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
  40. package/dist/features/Operation/layouts/ModernLayout.vue.js +2 -2
  41. package/dist/features/Operation/layouts/ModernLayout.vue2.js +132 -117
  42. package/dist/features/Search/SearchButton.vue.d.ts +1 -3
  43. package/dist/features/Search/SearchButton.vue.d.ts.map +1 -1
  44. package/dist/features/Search/SearchButton.vue.js +17 -16
  45. package/dist/features/Search/SearchModal.vue.js +2 -2
  46. package/dist/features/Search/SearchModal.vue2.js +4 -4
  47. package/dist/features/Search/useSearchIndex.d.ts.map +1 -1
  48. package/dist/features/Search/useSearchIndex.js +15 -15
  49. package/dist/features/api-client-modal/ApiClientModal.vue.d.ts.map +1 -0
  50. package/dist/features/api-client-modal/index.d.ts.map +1 -0
  51. package/dist/features/{ApiClientModal → api-client-modal}/useApiClient.d.ts +118 -118
  52. package/dist/features/api-client-modal/useApiClient.d.ts.map +1 -0
  53. package/dist/features/base-url/BaseUrl.vue.d.ts.map +1 -0
  54. package/dist/features/base-url/index.d.ts.map +1 -0
  55. package/dist/features/document-source/hooks/useDocumentFetcher.d.ts.map +1 -0
  56. package/dist/features/document-source/hooks/useDocumentSource.d.ts.map +1 -0
  57. package/dist/features/document-source/hooks/useDocumentSource.js +71 -0
  58. package/dist/features/document-source/index.d.ts.map +1 -0
  59. package/dist/features/download-link/DownloadLink.vue.d.ts.map +1 -0
  60. package/dist/features/{DownloadLink → download-link}/DownloadLink.vue.js +2 -2
  61. package/dist/features/download-link/DownloadLink.vue2.js +59 -0
  62. package/dist/features/download-link/index.d.ts.map +1 -0
  63. package/dist/features/download-link/openapi-version-symbol.d.ts.map +1 -0
  64. package/dist/features/example-request/ExamplePicker.vue.d.ts +13 -0
  65. package/dist/features/example-request/ExamplePicker.vue.d.ts.map +1 -0
  66. package/dist/features/example-request/ExamplePicker.vue.js +7 -0
  67. package/dist/features/example-request/ExamplePicker.vue2.js +56 -0
  68. package/dist/features/example-request/ExampleRequest.vue.d.ts.map +1 -0
  69. package/dist/features/{ExampleRequest → example-request}/ExampleRequest.vue.js +2 -2
  70. package/dist/features/{ExampleRequest → example-request}/ExampleRequest.vue2.js +93 -93
  71. package/dist/features/example-request/TextSelect.vue.d.ts.map +1 -0
  72. package/dist/features/example-request/index.d.ts.map +1 -0
  73. package/dist/features/example-responses/ExampleResponse.vue.d.ts.map +1 -0
  74. package/dist/features/example-responses/ExampleResponse.vue.js +7 -0
  75. package/dist/features/example-responses/ExampleResponses.vue.d.ts.map +1 -0
  76. package/dist/features/example-responses/ExampleResponses.vue.js +7 -0
  77. package/dist/features/{ExampleResponses → example-responses}/ExampleResponses.vue2.js +1 -1
  78. package/dist/features/example-responses/index.d.ts.map +1 -0
  79. package/dist/{components/DocumentSelector → features/multiple-documents}/DocumentSelector.vue.d.ts.map +1 -1
  80. package/dist/{components/DocumentSelector → features/multiple-documents}/DocumentSelector.vue.js +15 -15
  81. package/dist/features/multiple-documents/index.d.ts +3 -0
  82. package/dist/features/multiple-documents/index.d.ts.map +1 -0
  83. package/dist/{hooks → features/multiple-documents}/useMultipleDocuments.d.ts +1 -1
  84. package/dist/features/multiple-documents/useMultipleDocuments.d.ts.map +1 -0
  85. package/dist/features/sidebar/components/Sidebar.vue.d.ts.map +1 -0
  86. package/dist/features/sidebar/components/Sidebar.vue.js +7 -0
  87. package/dist/{components/Sidebar → features/sidebar/components}/Sidebar.vue2.js +2 -2
  88. package/dist/{components/Sidebar → features/sidebar/components}/SidebarElement.vue.d.ts +1 -1
  89. package/dist/features/sidebar/components/SidebarElement.vue.d.ts.map +1 -0
  90. package/dist/features/sidebar/components/SidebarElement.vue.js +7 -0
  91. package/dist/{components/Sidebar → features/sidebar/components}/SidebarElement.vue2.js +2 -2
  92. package/dist/features/sidebar/components/SidebarGroup.vue.d.ts.map +1 -0
  93. package/dist/features/sidebar/components/SidebarGroup.vue.js +7 -0
  94. package/dist/features/sidebar/components/SidebarHttpBadge.vue.d.ts.map +1 -0
  95. package/dist/features/sidebar/components/SidebarHttpBadge.vue.js +7 -0
  96. package/dist/{components/Sidebar → features/sidebar/components}/SidebarHttpBadge.vue2.js +1 -1
  97. package/dist/features/sidebar/helpers/create-sidebar.d.ts.map +1 -1
  98. package/dist/features/sidebar/helpers/create-sidebar.js +8 -8
  99. package/dist/features/sidebar/index.d.ts +1 -0
  100. package/dist/features/sidebar/index.d.ts.map +1 -1
  101. package/dist/features/specification-extension/SpecificationExtension.vue.d.ts.map +1 -0
  102. package/dist/features/specification-extension/index.d.ts.map +1 -0
  103. package/dist/features/test-request-button/TestRequestButton.vue.d.ts.map +1 -0
  104. package/dist/features/{TestRequestButton → test-request-button}/TestRequestButton.vue.js +2 -2
  105. package/dist/features/{TestRequestButton → test-request-button}/TestRequestButton.vue2.js +1 -1
  106. package/dist/features/test-request-button/index.d.ts.map +1 -0
  107. package/dist/features/traverse-schema/helpers/traverse-paths.d.ts.map +1 -1
  108. package/dist/features/traverse-schema/helpers/traverse-paths.js +21 -20
  109. package/dist/features/traverse-schema/helpers/traverse-schemas.d.ts.map +1 -1
  110. package/dist/features/traverse-schema/helpers/traverse-schemas.js +14 -14
  111. package/dist/helpers/parse.js +7 -7
  112. package/dist/hooks/useOperationDiscriminator.d.ts +2 -2
  113. package/dist/hooks/useOperationDiscriminator.d.ts.map +1 -1
  114. package/dist/hooks/useOperationDiscriminator.js +28 -28
  115. package/dist/index.d.ts +1 -2
  116. package/dist/index.d.ts.map +1 -1
  117. package/dist/index.js +5 -5
  118. package/dist/libs/openapi.d.ts +5 -6
  119. package/dist/libs/openapi.d.ts.map +1 -1
  120. package/dist/libs/openapi.js +44 -46
  121. package/dist/style.css +1 -1
  122. package/dist/v2/ApiReferenceWorkspace.vue.d.ts.map +1 -1
  123. package/dist/v2/ApiReferenceWorkspace.vue.js +110 -65
  124. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.d.ts +141 -0
  125. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.d.ts.map +1 -0
  126. package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.d.ts +38 -0
  127. package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.d.ts.map +1 -0
  128. package/dist/v2/blocks/scalar-request-example-block/helpers/generate-client-options.d.ts +21 -0
  129. package/dist/v2/blocks/scalar-request-example-block/helpers/generate-client-options.d.ts.map +1 -0
  130. package/dist/v2/blocks/scalar-request-example-block/helpers/generate-code-snippet.d.ts +20 -0
  131. package/dist/v2/blocks/scalar-request-example-block/helpers/generate-code-snippet.d.ts.map +1 -0
  132. package/dist/v2/blocks/scalar-request-example-block/helpers/get-secrets.d.ts +4 -0
  133. package/dist/v2/blocks/scalar-request-example-block/helpers/get-secrets.d.ts.map +1 -0
  134. package/dist/v2/blocks/scalar-request-example-block/index.d.ts +2 -0
  135. package/dist/v2/blocks/scalar-request-example-block/index.d.ts.map +1 -0
  136. package/dist/v2/blocks/scalar-request-example-block/types.d.ts +21 -0
  137. package/dist/v2/blocks/scalar-request-example-block/types.d.ts.map +1 -0
  138. package/package.json +14 -14
  139. package/dist/components/DocumentSelector/index.d.ts +0 -2
  140. package/dist/components/DocumentSelector/index.d.ts.map +0 -1
  141. package/dist/components/Sidebar/Sidebar.vue.d.ts.map +0 -1
  142. package/dist/components/Sidebar/Sidebar.vue.js +0 -7
  143. package/dist/components/Sidebar/SidebarElement.vue.d.ts.map +0 -1
  144. package/dist/components/Sidebar/SidebarElement.vue.js +0 -7
  145. package/dist/components/Sidebar/SidebarGroup.vue.d.ts.map +0 -1
  146. package/dist/components/Sidebar/SidebarGroup.vue.js +0 -7
  147. package/dist/components/Sidebar/SidebarHttpBadge.vue.d.ts.map +0 -1
  148. package/dist/components/Sidebar/SidebarHttpBadge.vue.js +0 -7
  149. package/dist/components/Sidebar/index.d.ts +0 -2
  150. package/dist/components/Sidebar/index.d.ts.map +0 -1
  151. package/dist/components/SpecificationExtension/SpecificationExtension.vue.d.ts.map +0 -1
  152. package/dist/components/SpecificationExtension/index.d.ts.map +0 -1
  153. package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts.map +0 -1
  154. package/dist/features/ApiClientModal/index.d.ts.map +0 -1
  155. package/dist/features/ApiClientModal/useApiClient.d.ts.map +0 -1
  156. package/dist/features/BaseUrl/BaseUrl.vue.d.ts.map +0 -1
  157. package/dist/features/BaseUrl/index.d.ts.map +0 -1
  158. package/dist/features/DocumentSource/hooks/useDocumentFetcher.d.ts.map +0 -1
  159. package/dist/features/DocumentSource/hooks/useDocumentSource.d.ts.map +0 -1
  160. package/dist/features/DocumentSource/hooks/useDocumentSource.js +0 -67
  161. package/dist/features/DocumentSource/index.d.ts.map +0 -1
  162. package/dist/features/DownloadLink/DownloadLink.vue.d.ts.map +0 -1
  163. package/dist/features/DownloadLink/DownloadLink.vue2.js +0 -55
  164. package/dist/features/DownloadLink/index.d.ts.map +0 -1
  165. package/dist/features/DownloadLink/openapi-version-symbol.d.ts.map +0 -1
  166. package/dist/features/ExampleRequest/ExamplePicker.vue.d.ts +0 -10
  167. package/dist/features/ExampleRequest/ExamplePicker.vue.d.ts.map +0 -1
  168. package/dist/features/ExampleRequest/ExamplePicker.vue.js +0 -7
  169. package/dist/features/ExampleRequest/ExamplePicker.vue2.js +0 -59
  170. package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +0 -1
  171. package/dist/features/ExampleRequest/TextSelect.vue.d.ts.map +0 -1
  172. package/dist/features/ExampleRequest/index.d.ts.map +0 -1
  173. package/dist/features/ExampleResponses/ExampleResponse.vue.d.ts.map +0 -1
  174. package/dist/features/ExampleResponses/ExampleResponse.vue.js +0 -7
  175. package/dist/features/ExampleResponses/ExampleResponses.vue.d.ts.map +0 -1
  176. package/dist/features/ExampleResponses/ExampleResponses.vue.js +0 -7
  177. package/dist/features/ExampleResponses/index.d.ts.map +0 -1
  178. package/dist/features/TestRequestButton/TestRequestButton.vue.d.ts.map +0 -1
  179. package/dist/features/TestRequestButton/index.d.ts.map +0 -1
  180. package/dist/hooks/useMultipleDocuments.d.ts.map +0 -1
  181. package/dist/legacy/fixtures/httpRequestMethods.d.ts +0 -10
  182. package/dist/legacy/fixtures/httpRequestMethods.d.ts.map +0 -1
  183. package/dist/legacy/fixtures/index.d.ts +0 -2
  184. package/dist/legacy/fixtures/index.d.ts.map +0 -1
  185. /package/dist/features/{ApiClientModal → api-client-modal}/ApiClientModal.vue.d.ts +0 -0
  186. /package/dist/features/{ApiClientModal → api-client-modal}/ApiClientModal.vue.js +0 -0
  187. /package/dist/features/{ApiClientModal → api-client-modal}/ApiClientModal.vue2.js +0 -0
  188. /package/dist/features/{ApiClientModal → api-client-modal}/index.d.ts +0 -0
  189. /package/dist/features/{ApiClientModal → api-client-modal}/useApiClient.js +0 -0
  190. /package/dist/features/{BaseUrl → base-url}/BaseUrl.vue.d.ts +0 -0
  191. /package/dist/features/{BaseUrl → base-url}/BaseUrl.vue.js +0 -0
  192. /package/dist/features/{BaseUrl → base-url}/BaseUrl.vue2.js +0 -0
  193. /package/dist/features/{BaseUrl → base-url}/index.d.ts +0 -0
  194. /package/dist/features/{DocumentSource → document-source}/hooks/useDocumentFetcher.d.ts +0 -0
  195. /package/dist/features/{DocumentSource → document-source}/hooks/useDocumentFetcher.js +0 -0
  196. /package/dist/features/{DocumentSource → document-source}/hooks/useDocumentSource.d.ts +0 -0
  197. /package/dist/features/{DocumentSource → document-source}/index.d.ts +0 -0
  198. /package/dist/features/{DownloadLink → download-link}/DownloadLink.vue.d.ts +0 -0
  199. /package/dist/features/{DownloadLink → download-link}/index.d.ts +0 -0
  200. /package/dist/features/{DownloadLink → download-link}/openapi-version-symbol.d.ts +0 -0
  201. /package/dist/features/{DownloadLink → download-link}/openapi-version-symbol.js +0 -0
  202. /package/dist/features/{ExampleRequest → example-request}/ExampleRequest.vue.d.ts +0 -0
  203. /package/dist/features/{ExampleRequest → example-request}/TextSelect.vue.d.ts +0 -0
  204. /package/dist/features/{ExampleRequest → example-request}/TextSelect.vue.js +0 -0
  205. /package/dist/features/{ExampleRequest → example-request}/TextSelect.vue3.js +0 -0
  206. /package/dist/features/{ExampleRequest → example-request}/index.d.ts +0 -0
  207. /package/dist/features/{ExampleResponses → example-responses}/ExampleResponse.vue.d.ts +0 -0
  208. /package/dist/features/{ExampleResponses → example-responses}/ExampleResponse.vue2.js +0 -0
  209. /package/dist/features/{ExampleResponses → example-responses}/ExampleResponses.vue.d.ts +0 -0
  210. /package/dist/features/{ExampleResponses → example-responses}/index.d.ts +0 -0
  211. /package/dist/{components/DocumentSelector → features/multiple-documents}/DocumentSelector.vue.d.ts +0 -0
  212. /package/dist/{components/DocumentSelector → features/multiple-documents}/DocumentSelector.vue2.js +0 -0
  213. /package/dist/{hooks → features/multiple-documents}/useMultipleDocuments.js +0 -0
  214. /package/dist/{components/Sidebar → features/sidebar/components}/Sidebar.vue.d.ts +0 -0
  215. /package/dist/{components/Sidebar → features/sidebar/components}/SidebarGroup.vue.d.ts +0 -0
  216. /package/dist/{components/Sidebar → features/sidebar/components}/SidebarGroup.vue2.js +0 -0
  217. /package/dist/{components/Sidebar → features/sidebar/components}/SidebarHttpBadge.vue.d.ts +0 -0
  218. /package/dist/{components/SpecificationExtension → features/specification-extension}/SpecificationExtension.vue.d.ts +0 -0
  219. /package/dist/{components/SpecificationExtension → features/specification-extension}/SpecificationExtension.vue.js +0 -0
  220. /package/dist/{components/SpecificationExtension → features/specification-extension}/SpecificationExtension.vue2.js +0 -0
  221. /package/dist/{components/SpecificationExtension → features/specification-extension}/index.d.ts +0 -0
  222. /package/dist/features/{TestRequestButton → test-request-button}/TestRequestButton.vue.d.ts +0 -0
  223. /package/dist/features/{TestRequestButton → test-request-button}/index.d.ts +0 -0
@@ -1,11 +1,18 @@
1
1
  import type { Collection, Request, Server } from '@scalar/oas-utils/entities/spec';
2
- import type { TransformedOperation } from '@scalar/types/legacy';
3
- import type { Schemas } from '../../../features/Operation/types/schemas';
2
+ import type { OpenAPIV3_1 } from '@scalar/types/legacy';
3
+ import type { Schemas } from '../types/schemas';
4
4
  type __VLS_Props = {
5
+ id: string;
6
+ path: string;
7
+ method: OpenAPIV3_1.HttpMethods;
8
+ operation: OpenAPIV3_1.OperationObject;
9
+ isWebhook: boolean;
10
+ /**
11
+ * @deprecated Use `document` instead
12
+ */
5
13
  collection: Collection;
6
14
  server: Server | undefined;
7
15
  request: Request | undefined;
8
- transformedOperation: TransformedOperation;
9
16
  schemas?: Schemas;
10
17
  };
11
18
  declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
@@ -1 +1 @@
1
- {"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ModernLayout.vue"],"names":[],"mappings":"AAkLA,OAAO,KAAK,EACV,UAAU,EACV,OAAO,EACP,MAAM,EACP,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAgBhE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AAejE,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,OAAO,EAAE,OAAO,GAAG,SAAS,CAAA;IAC5B,oBAAoB,EAAE,oBAAoB,CAAA;IAC1C,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAC;;;;;;AA6TF,wBAQG"}
1
+ {"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ModernLayout.vue"],"names":[],"mappings":"AAsLA,OAAO,KAAK,EACV,UAAU,EACV,OAAO,EACP,MAAM,EACP,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AA2BvD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAI/C,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,WAAW,CAAC,WAAW,CAAA;IAC/B,SAAS,EAAE,WAAW,CAAC,eAAe,CAAA;IACtC,SAAS,EAAE,OAAO,CAAA;IAClB;;OAEG;IACH,UAAU,EAAE,UAAU,CAAA;IACtB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,OAAO,EAAE,OAAO,GAAG,SAAS,CAAA;IAC5B,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAC;;;;;;AA4TF,wBAQG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./ModernLayout.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-ae05c30d"]]);
4
+ const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-199f4e09"]]);
5
5
  export {
6
- m as default
6
+ f as default
7
7
  };
@@ -1,84 +1,87 @@
1
- import { defineComponent as S, useId as q, createBlock as t, openBlock as n, unref as o, withCtx as a, createVNode as r, createCommentVNode as i, createElementVNode as s, normalizeClass as u, createTextVNode as m, toDisplayString as c, createSlots as v } from "vue";
2
- import { ScalarMarkdown as C, ScalarErrorBoundary as l } from "@scalar/components";
3
- import { ScalarIconWebhooksLogo as V } from "@scalar/icons";
4
- import B from "../../../components/OperationPath.vue.js";
5
- import { useConfig as w } from "../../../hooks/useConfig.js";
6
- import { getOperationStability as h, getOperationStabilityColor as E, isOperationDeprecated as I } from "../../../libs/openapi.js";
7
- import N from "../components/callbacks/Callbacks.vue.js";
8
- import T from "../components/OperationParameters.vue.js";
9
- import D from "../components/OperationResponses.vue.js";
10
- import L from "../../../components/Section/Section.vue.js";
11
- import P from "../../../components/Section/SectionContent.vue.js";
12
- import O from "../../../components/Badge/Badge.vue.js";
13
- import R from "../../../components/Section/SectionHeader.vue.js";
14
- import W from "../../../components/Anchor/Anchor.vue.js";
15
- import $ from "../../../components/Section/SectionHeaderTag.vue.js";
16
- import A from "../../../components/Section/SectionColumns.vue.js";
17
- import b from "../../../components/Section/SectionColumn.vue.js";
18
- import H from "../../ExampleRequest/ExampleRequest.vue.js";
19
- import M from "../../TestRequestButton/TestRequestButton.vue.js";
20
- import U from "../../ExampleResponses/ExampleResponses.vue.js";
21
- const j = { class: "operation-details" }, z = { class: "examples" }, pe = /* @__PURE__ */ S({
1
+ import { defineComponent as I, computed as N, useId as O, createBlock as l, openBlock as s, unref as o, withCtx as r, createVNode as a, createCommentVNode as i, createElementVNode as n, normalizeClass as S, createTextVNode as m, toDisplayString as q, createSlots as W } from "vue";
2
+ import { ScalarMarkdown as D, ScalarErrorBoundary as p } from "@scalar/components";
3
+ import { ScalarIconWebhooksLogo as L } from "@scalar/icons";
4
+ import P from "../../../components/OperationPath.vue.js";
5
+ import { useConfig as R } from "../../../hooks/useConfig.js";
6
+ import { getOperationStability as C, getOperationStabilityColor as $, isOperationDeprecated as A } from "../../../libs/openapi.js";
7
+ import H from "../components/callbacks/Callbacks.vue.js";
8
+ import M from "../components/OperationParameters.vue.js";
9
+ import U from "../components/OperationResponses.vue.js";
10
+ import j from "../../../components/Section/Section.vue.js";
11
+ import z from "../../../components/Section/SectionContent.vue.js";
12
+ import B from "../../../components/Badge/Badge.vue.js";
13
+ import F from "../../../components/Section/SectionHeader.vue.js";
14
+ import G from "../../../components/Anchor/Anchor.vue.js";
15
+ import J from "../../../components/Section/SectionHeaderTag.vue.js";
16
+ import K from "../../../components/Section/SectionColumns.vue.js";
17
+ import V from "../../../components/Section/SectionColumn.vue.js";
18
+ import Q from "../../example-request/ExampleRequest.vue.js";
19
+ import X from "../../test-request-button/TestRequestButton.vue.js";
20
+ import Y from "../../example-responses/ExampleResponses.vue.js";
21
+ const Z = { class: "operation-details" }, _ = { class: "examples" }, ke = /* @__PURE__ */ I({
22
22
  __name: "ModernLayout",
23
23
  props: {
24
+ id: {},
25
+ path: {},
26
+ method: {},
27
+ operation: {},
28
+ isWebhook: { type: Boolean },
24
29
  collection: {},
25
30
  server: {},
26
31
  request: {},
27
- transformedOperation: {},
28
32
  schemas: {}
29
33
  },
30
34
  emits: ["update:modelValue"],
31
- setup(F, { emit: g }) {
32
- const y = g, d = q(), k = w(), p = (e) => {
33
- y("update:modelValue", e);
35
+ setup(d, { emit: w }) {
36
+ const u = N(() => {
37
+ var e;
38
+ return ((e = d.operation) == null ? void 0 : e.summary) || d.path || "";
39
+ }), T = w, c = O(), E = R(), f = (e) => {
40
+ T("update:modelValue", e);
34
41
  };
35
- return (e, f) => (n(), t(o(L), {
36
- id: e.transformedOperation.id,
37
- "aria-labelledby": o(d),
38
- label: e.transformedOperation.name,
42
+ return (e, h) => (s(), l(o(j), {
43
+ id: e.id,
44
+ "aria-labelledby": o(c),
45
+ label: u.value,
39
46
  tabindex: "-1"
40
47
  }, {
41
- default: a(() => [
42
- r(o(P), {
43
- loading: o(k).isLoading
48
+ default: r(() => [
49
+ a(o(z), {
50
+ loading: o(E).isLoading
44
51
  }, {
45
- default: a(() => [
46
- o(h)(e.transformedOperation.information) ? (n(), t(o(O), {
52
+ default: r(() => [
53
+ o(C)(e.operation) ? (s(), l(o(B), {
47
54
  key: 0,
48
- class: u(o(E)(e.transformedOperation.information))
55
+ class: S(o($)(e.operation))
49
56
  }, {
50
- default: a(() => [
51
- m(c(o(h)(e.transformedOperation.information)), 1)
57
+ default: r(() => [
58
+ m(q(o(C)(e.operation)), 1)
52
59
  ]),
53
60
  _: 1
54
61
  }, 8, ["class"])) : i("", !0),
55
- e.transformedOperation.isWebhook ? (n(), t(o(O), {
62
+ e.isWebhook ? (s(), l(o(B), {
56
63
  key: 1,
57
64
  class: "font-code text-green flex w-fit items-center justify-center gap-1"
58
65
  }, {
59
- default: a(() => [
60
- r(o(V), { weight: "bold" }),
61
- f[0] || (f[0] = m("Webhook "))
66
+ default: r(() => [
67
+ a(o(L), { weight: "bold" }),
68
+ h[0] || (h[0] = m("Webhook "))
62
69
  ]),
63
70
  _: 1
64
71
  })) : i("", !0),
65
- s("div", {
66
- class: u(
67
- o(I)(e.transformedOperation.information) ? "deprecated" : ""
68
- )
72
+ n("div", {
73
+ class: S(o(A)(e.operation) ? "deprecated" : "")
69
74
  }, [
70
- r(o(R), null, {
71
- default: a(() => [
72
- r(o(W), {
73
- id: e.transformedOperation.id
74
- }, {
75
- default: a(() => [
76
- r(o($), {
77
- id: o(d),
75
+ a(o(F), null, {
76
+ default: r(() => [
77
+ a(o(G), { id: e.id }, {
78
+ default: r(() => [
79
+ a(o(J), {
80
+ id: o(c),
78
81
  level: 3
79
82
  }, {
80
- default: a(() => [
81
- m(c(e.transformedOperation.name), 1)
83
+ default: r(() => [
84
+ m(q(u.value), 1)
82
85
  ]),
83
86
  _: 1
84
87
  }, 8, ["id"])
@@ -89,71 +92,80 @@ const j = { class: "operation-details" }, z = { class: "examples" }, pe = /* @__
89
92
  _: 1
90
93
  })
91
94
  ], 2),
92
- r(o(A), null, {
93
- default: a(() => [
94
- r(o(b), null, {
95
- default: a(() => [
96
- s("div", j, [
97
- r(o(C), {
98
- value: e.transformedOperation.information.description,
99
- withImages: "",
100
- withAnchors: "",
101
- transformType: "heading",
102
- anchorPrefix: e.transformedOperation.id
103
- }, null, 8, ["value", "anchorPrefix"]),
104
- r(T, {
105
- parameters: e.transformedOperation.information.parameters,
106
- requestBody: e.transformedOperation.information.requestBody,
107
- schemas: e.schemas,
108
- "onUpdate:modelValue": p
109
- }, null, 8, ["parameters", "requestBody", "schemas"]),
110
- r(D, {
111
- responses: e.transformedOperation.information.responses,
112
- schemas: e.schemas
113
- }, null, 8, ["responses", "schemas"]),
114
- r(o(l), null, {
115
- default: a(() => [
116
- e.transformedOperation.information.callbacks ? (n(), t(N, {
117
- key: 0,
118
- callbacks: e.transformedOperation.information.callbacks,
119
- collection: e.collection,
120
- schemas: e.schemas
121
- }, null, 8, ["callbacks", "collection", "schemas"])) : i("", !0)
122
- ]),
123
- _: 1
124
- })
125
- ])
126
- ]),
95
+ a(o(K), null, {
96
+ default: r(() => [
97
+ a(o(V), null, {
98
+ default: r(() => {
99
+ var t, b, y, g;
100
+ return [
101
+ n("div", Z, [
102
+ a(o(D), {
103
+ value: (t = e.operation) == null ? void 0 : t.description,
104
+ withImages: "",
105
+ withAnchors: "",
106
+ transformType: "heading",
107
+ anchorPrefix: e.id
108
+ }, null, 8, ["value", "anchorPrefix"]),
109
+ a(M, {
110
+ parameters: (b = e.operation) == null ? void 0 : b.parameters,
111
+ requestBody: (y = e.operation) == null ? void 0 : y.requestBody,
112
+ schemas: e.schemas,
113
+ "onUpdate:modelValue": f
114
+ }, null, 8, ["parameters", "requestBody", "schemas"]),
115
+ a(U, {
116
+ responses: (g = e.operation) == null ? void 0 : g.responses,
117
+ schemas: e.schemas
118
+ }, null, 8, ["responses", "schemas"]),
119
+ a(o(p), null, {
120
+ default: r(() => {
121
+ var k, v;
122
+ return [
123
+ (k = e.operation) != null && k.callbacks ? (s(), l(H, {
124
+ key: 0,
125
+ callbacks: (v = e.operation) == null ? void 0 : v.callbacks,
126
+ collection: e.collection,
127
+ schemas: e.schemas
128
+ }, null, 8, ["callbacks", "collection", "schemas"])) : i("", !0)
129
+ ];
130
+ }),
131
+ _: 1
132
+ })
133
+ ])
134
+ ];
135
+ }),
127
136
  _: 1
128
137
  }),
129
- r(o(b), null, {
130
- default: a(() => [
131
- s("div", z, [
132
- r(o(l), null, {
133
- default: a(() => [
134
- r(o(H), {
138
+ a(o(V), null, {
139
+ default: r(() => [
140
+ n("div", _, [
141
+ a(o(p), null, {
142
+ default: r(() => [
143
+ a(o(Q), {
135
144
  request: e.request,
136
- method: e.transformedOperation.httpVerb,
145
+ method: e.method,
137
146
  collection: e.collection,
138
147
  fallback: "",
139
- operation: e.transformedOperation.information,
148
+ operation: e.operation,
140
149
  server: e.server,
141
150
  schemas: e.schemas,
142
- "onUpdate:modelValue": p
143
- }, v({
144
- header: a(() => [
145
- r(B, {
146
- class: "example-path",
147
- deprecated: e.transformedOperation.information.deprecated,
148
- path: e.transformedOperation.path
149
- }, null, 8, ["deprecated", "path"])
150
- ]),
151
+ "onUpdate:modelValue": f
152
+ }, W({
153
+ header: r(() => {
154
+ var t;
155
+ return [
156
+ a(P, {
157
+ class: "example-path",
158
+ deprecated: (t = e.operation) == null ? void 0 : t.deprecated,
159
+ path: e.path
160
+ }, null, 8, ["deprecated", "path"])
161
+ ];
162
+ }),
151
163
  _: 2
152
164
  }, [
153
165
  e.request ? {
154
166
  name: "footer",
155
- fn: a(() => [
156
- r(o(M), { operation: e.request }, null, 8, ["operation"])
167
+ fn: r(() => [
168
+ a(o(X), { operation: e.request }, null, 8, ["operation"])
157
169
  ]),
158
170
  key: "0"
159
171
  } : void 0
@@ -161,13 +173,16 @@ const j = { class: "operation-details" }, z = { class: "examples" }, pe = /* @__
161
173
  ]),
162
174
  _: 1
163
175
  }),
164
- r(o(l), null, {
165
- default: a(() => [
166
- r(o(U), {
167
- responses: e.transformedOperation.information.responses,
168
- style: { "margin-top": "12px" }
169
- }, null, 8, ["responses"])
170
- ]),
176
+ a(o(p), null, {
177
+ default: r(() => {
178
+ var t;
179
+ return [
180
+ a(o(Y), {
181
+ responses: (t = e.operation) == null ? void 0 : t.responses,
182
+ style: { "margin-top": "12px" }
183
+ }, null, 8, ["responses"])
184
+ ];
185
+ }),
171
186
  _: 1
172
187
  })
173
188
  ])
@@ -186,5 +201,5 @@ const j = { class: "operation-details" }, z = { class: "examples" }, pe = /* @__
186
201
  }
187
202
  });
188
203
  export {
189
- pe as default
204
+ ke as default
190
205
  };
@@ -3,8 +3,6 @@ type __VLS_Props = {
3
3
  spec: Spec;
4
4
  searchHotKey?: string;
5
5
  };
6
- declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
7
- searchHotKey: string;
8
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
6
+ 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>;
9
7
  export default _default;
10
8
  //# sourceMappingURL=SearchButton.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SearchButton.vue.d.ts","sourceRoot":"","sources":["../../../src/features/Search/SearchButton.vue"],"names":[],"mappings":"AAoFA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAQhD,KAAK,WAAW,GAAG;IACf,IAAI,EAAE,IAAI,CAAA;IACV,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB,CAAC;;kBADe,MAAM;;AAyJzB,wBAOG"}
1
+ {"version":3,"file":"SearchButton.vue.d.ts","sourceRoot":"","sources":["../../../src/features/Search/SearchButton.vue"],"names":[],"mappings":"AAiFA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAQhD,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,IAAI,CAAA;IACV,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB,CAAC;;AAiJF,wBAMG"}
@@ -1,41 +1,42 @@
1
- import { defineComponent as w, ref as v, watch as C, nextTick as K, onMounted as B, onBeforeUnmount as b, createElementBlock as r, openBlock as a, Fragment as s, createVNode as c, unref as l, withCtx as u, createElementVNode as n, createTextVNode as m, toDisplayString as E } from "vue";
1
+ import { defineComponent as k, ref as w, watch as C, nextTick as v, onMounted as K, onBeforeUnmount as B, createElementBlock as a, openBlock as r, Fragment as s, createVNode as c, unref as l, normalizeClass as b, withCtx as u, createElementVNode as n, createTextVNode as m, toDisplayString as E } from "vue";
2
2
  import { useModal as H, ScalarSidebarSearchButton as M } from "@scalar/components";
3
3
  import { isMacOS as f } from "@scalar/helpers/general/is-mac-os";
4
4
  import g from "./SearchModal.vue.js";
5
- import { useApiClient as x } from "../ApiClientModal/useApiClient.js";
6
- const O = /* @__PURE__ */ w({
5
+ import { useApiClient as L } from "../api-client-modal/useApiClient.js";
6
+ const O = /* @__PURE__ */ k({
7
7
  __name: "SearchButton",
8
8
  props: {
9
9
  spec: {},
10
10
  searchHotKey: { default: "k" }
11
11
  },
12
12
  setup(y) {
13
- const S = y, p = v(), o = H(), { client: h } = x(), d = (t) => {
13
+ const i = w(), o = H(), { client: S } = L(), d = (t) => {
14
14
  var e;
15
- (f() ? t.metaKey : t.ctrlKey) && t.key === S.searchHotKey && !((e = h.value) != null && e.modalState.open) && (t.preventDefault(), t.stopPropagation(), o.open ? o.hide() : o.show());
15
+ (f() ? t.metaKey : t.ctrlKey) && t.key === y.searchHotKey && !((e = S.value) != null && e.modalState.open) && (t.preventDefault(), t.stopPropagation(), o.open ? o.hide() : o.show());
16
16
  };
17
17
  C(
18
18
  () => o.open,
19
19
  (t, e) => {
20
- !t && e && K(() => {
21
- var i;
22
- (i = p.value) == null || i.focus();
20
+ !t && e && v(() => {
21
+ var p;
22
+ (p = i.value) == null || p.$el.focus();
23
23
  });
24
24
  }
25
- ), B(() => window.addEventListener("keydown", d)), b(() => window.removeEventListener("keydown", d));
26
- function k() {
25
+ ), K(() => window.addEventListener("keydown", d)), B(() => window.removeEventListener("keydown", d));
26
+ function h() {
27
27
  o.show();
28
28
  }
29
- return (t, e) => (a(), r(s, null, [
29
+ return (t, e) => (r(), a(s, null, [
30
30
  c(l(M), {
31
31
  ref_key: "button",
32
- ref: p,
33
- onClick: k
32
+ ref: i,
33
+ class: b(["w-full", t.$attrs.class]),
34
+ onClick: h
34
35
  }, {
35
36
  shortcut: u(() => [
36
- l(f)() ? (a(), r(s, { key: 0 }, [
37
+ l(f)() ? (r(), a(s, { key: 0 }, [
37
38
  m("⌘")
38
- ], 64)) : (a(), r(s, { key: 1 }, [
39
+ ], 64)) : (r(), a(s, { key: 1 }, [
39
40
  e[0] || (e[0] = n("span", { class: "sr-only" }, "CTRL", -1)),
40
41
  e[1] || (e[1] = n("span", { "aria-hidden": "true" }, "⌃", -1))
41
42
  ], 64)),
@@ -49,7 +50,7 @@ const O = /* @__PURE__ */ w({
49
50
  }, " Search ", -1))
50
51
  ]),
51
52
  _: 1
52
- }, 512),
53
+ }, 8, ["class"]),
53
54
  c(g, {
54
55
  modalState: l(o),
55
56
  parsedSpec: t.spec
@@ -1,7 +1,7 @@
1
1
  import o from "./SearchModal.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-1d306466"]]);
4
+ const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-1b20799c"]]);
5
5
  export {
6
- p as default
6
+ m as default
7
7
  };
@@ -3,8 +3,8 @@ import { ScalarModal as Z, ScalarSearchInput as _, ScalarSearchResultList as ee,
3
3
  import { scrollToId as N } from "@scalar/helpers/dom/scroll-to-id";
4
4
  import { nanoid as oe } from "nanoid";
5
5
  import { lazyBus as ae } from "../../components/Content/Lazy/lazyBus.js";
6
- import se from "../../components/Sidebar/SidebarHttpBadge.vue.js";
7
- import { useSearchIndex as ne } from "./useSearchIndex.js";
6
+ import { useSearchIndex as se } from "./useSearchIndex.js";
7
+ import ne from "../sidebar/components/SidebarHttpBadge.vue.js";
8
8
  import { useSidebar as re } from "../sidebar/hooks/useSidebar.js";
9
9
  const le = { class: "sr-only" }, ie = { class: "sr-only" }, ve = /* @__PURE__ */ Y({
10
10
  __name: "SearchModal",
@@ -20,7 +20,7 @@ const le = { class: "sr-only" }, ie = { class: "sr-only" }, ve = /* @__PURE__ */
20
20
  selectedSearchResult: k,
21
21
  searchResultsWithPlaceholderResults: u,
22
22
  searchText: p
23
- } = ne({
23
+ } = se({
24
24
  specification: q
25
25
  }), M = {
26
26
  heading: "DocsPage",
@@ -172,7 +172,7 @@ const le = { class: "sr-only" }, ie = { class: "sr-only" }, ve = /* @__PURE__ */
172
172
  e.item.type === "req" ? {
173
173
  name: "addon",
174
174
  fn: l(() => [
175
- g(se, {
175
+ g(ne, {
176
176
  "aria-hidden": "true",
177
177
  method: e.item.httpVerb ?? "get"
178
178
  }, null, 8, ["method"]),
@@ -1 +1 @@
1
- {"version":3,"file":"useSearchIndex.d.ts","sourceRoot":"","sources":["../../../src/features/Search/useSearchIndex.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAe,IAAI,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AACnF,OAAa,EAAE,KAAK,UAAU,EAAE,MAAM,SAAS,CAAA;AAC/C,OAAO,EAAE,KAAK,GAAG,EAAwB,MAAM,KAAK,CAAA;AAGpD,OAAO,EAAE,KAAK,QAAQ,EAAgB,MAAM,sBAAsB,CAAA;AAMlE,MAAM,MAAM,SAAS,GAAG,KAAK,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,KAAK,CAAA;AAEvE,MAAM,MAAM,QAAQ,GAAG;IACrB,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,SAAS,CAAA;IACf,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,WAAW,EAAE,MAAM,CAAA;IACnB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,QAAQ,CAAA;IACnC,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,SAAS,CAAC,EAAE,oBAAoB,CAAA;CACjC,CAAA;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,EAC7B,aAAa,GACd,EAAE;IACD,aAAa,EAAE,GAAG,CAAC,IAAI,CAAC,CAAA;CACzB;uBA0ByB,IAAI;sBAbL,IAAI;;;;;EAsM5B"}
1
+ {"version":3,"file":"useSearchIndex.d.ts","sourceRoot":"","sources":["../../../src/features/Search/useSearchIndex.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAe,IAAI,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AACnF,OAAa,EAAE,KAAK,UAAU,EAAE,MAAM,SAAS,CAAA;AAC/C,OAAO,EAAE,KAAK,GAAG,EAAwB,MAAM,KAAK,CAAA;AAIpD,OAAO,EAAE,KAAK,QAAQ,EAAgB,MAAM,sBAAsB,CAAA;AAKlE,MAAM,MAAM,SAAS,GAAG,KAAK,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,KAAK,CAAA;AAEvE,MAAM,MAAM,QAAQ,GAAG;IACrB,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,SAAS,CAAA;IACf,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,WAAW,EAAE,MAAM,CAAA;IACnB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,QAAQ,CAAA;IACnC,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,SAAS,CAAC,EAAE,oBAAoB,CAAA;CACjC,CAAA;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,EAC7B,aAAa,GACd,EAAE;IACD,aAAa,EAAE,GAAG,CAAC,IAAI,CAAC,CAAA;CACzB;uBA0ByB,IAAI;sBAbL,IAAI;;;;;EAsM5B"}
@@ -1,15 +1,15 @@
1
1
  import A from "fuse.js";
2
2
  import { ref as m, watch as T, computed as k } from "vue";
3
- import { useNavState as B } from "../../hooks/useNavState.js";
3
+ import { useConfig as B } from "../../hooks/useConfig.js";
4
+ import { useNavState as P } from "../../hooks/useNavState.js";
4
5
  import { useOperation as O } from "../../hooks/useOperation.js";
5
- import { getHeadingsFromMarkdown as P } from "../../libs/markdown.js";
6
- import { extractRequestBody as j, getModels as z } from "../../libs/openapi.js";
7
- import { useConfig as G } from "../../hooks/useConfig.js";
6
+ import { getHeadingsFromMarkdown as z } from "../../libs/markdown.js";
7
+ import { extractRequestBody as j, getModels as G } from "../../libs/openapi.js";
8
8
  import { isHttpMethod as J } from "@scalar/helpers/http/is-http-method";
9
9
  function w({
10
10
  specification: q
11
11
  }) {
12
- const { getHeadingId: H, getModelId: L, getTagId: C } = B(), F = G(), a = m([]), d = m([]), i = m(), l = m(""), y = new A(a.value, {
12
+ const { getHeadingId: H, getModelId: L, getTagId: C } = P(), F = B(), a = m([]), d = m([]), i = m(), l = m(""), y = new A(a.value, {
13
13
  keys: ["title", "description", "body"]
14
14
  }), b = () => {
15
15
  i.value = 0, d.value = y.search(l.value);
@@ -30,7 +30,7 @@ function w({
30
30
  (e) => {
31
31
  var E, x, V;
32
32
  a.value = [];
33
- const f = [], I = P(((E = e == null ? void 0 : e.info) == null ? void 0 : E.description) ?? "");
33
+ const f = [], I = z(((E = e == null ? void 0 : e.info) == null ? void 0 : E.description) ?? "");
34
34
  if (I.length && (I.forEach((t) => {
35
35
  f.push({
36
36
  type: "heading",
@@ -51,15 +51,15 @@ function w({
51
51
  body: ""
52
52
  };
53
53
  a.value.push(h), t.operations && t.operations.forEach((s) => {
54
- var n;
55
- const { parameterMap: o } = O(s), u = j(s) || o.value;
54
+ var u;
55
+ const { parameterMap: o } = O(s), n = j(s.information) || o.value;
56
56
  let r = null;
57
- typeof u != "boolean" && (r = u);
57
+ typeof n != "boolean" && (r = n);
58
58
  const c = {
59
59
  type: "req",
60
60
  title: s.name ?? s.path,
61
61
  href: `#${s.id}`,
62
- operationId: (n = s.information) == null ? void 0 : n.operationId,
62
+ operationId: (u = s.information) == null ? void 0 : u.operationId,
63
63
  description: s.description ?? "",
64
64
  httpVerb: s.httpVerb,
65
65
  path: s.path,
@@ -73,12 +73,12 @@ function w({
73
73
  const t = e.paths;
74
74
  Object.keys(t ?? {}).forEach((h) => {
75
75
  Object.keys((t == null ? void 0 : t[h]) ?? {}).forEach((s) => {
76
- var u, r;
77
- const o = (u = t == null ? void 0 : t[h]) == null ? void 0 : u[s];
76
+ var n, r;
77
+ const o = (n = t == null ? void 0 : t[h]) == null ? void 0 : n[s];
78
78
  if (J(s) && o) {
79
- const { parameterMap: c } = O({ ...o, information: o }), n = j(o) || c.value;
79
+ const { parameterMap: c } = O({ ...o, information: o }), u = j(o) || c.value;
80
80
  let p = null;
81
- typeof n != "boolean" && (p = n);
81
+ typeof u != "boolean" && (p = u);
82
82
  const R = {
83
83
  type: "req",
84
84
  title: o.name ?? o.path,
@@ -106,7 +106,7 @@ function w({
106
106
  body: ""
107
107
  }), a.value = a.value.concat(D);
108
108
  });
109
- const v = F.value.hideModels ? {} : z(e), $ = [];
109
+ const v = F.value.hideModels ? {} : G(e), $ = [];
110
110
  v && (Object.keys(v).forEach((t) => {
111
111
  $.push({
112
112
  type: "model",
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ApiClientModal.vue.d.ts","sourceRoot":"","sources":["../../../src/features/api-client-modal/ApiClientModal.vue"],"names":[],"mappings":"AAiKA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAA;AAYzE,KAAK,WAAW,GAAG;IAEjB,aAAa,EAAE,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE,SAAS,CAAC,CAAC,CAAA;IAC/D,oBAAoB,EAAE,WAAW,CAAC,QAAQ,CAAA;CAC3C,CAAC;;AAuLF,wBAOG"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/features/api-client-modal/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAChE,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA"}