@scalar/api-reference 1.31.18 → 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 (215) hide show
  1. package/CHANGELOG.md +37 -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 +14230 -14155
  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 +2 -2
  9. package/dist/components/ApiReferenceLayout.vue2.js +122 -124
  10. package/dist/components/Content/Content.vue.d.ts.map +1 -1
  11. package/dist/components/Content/Content.vue.js +2 -2
  12. package/dist/components/Content/Content.vue2.js +93 -92
  13. package/dist/components/Content/Introduction/Introduction.vue.js +1 -1
  14. package/dist/components/Content/Introduction/Introduction.vue2.js +3 -3
  15. package/dist/components/Content/Lazy/Loading.vue.d.ts +3 -0
  16. package/dist/components/Content/Lazy/Loading.vue.d.ts.map +1 -1
  17. package/dist/components/Content/Lazy/Loading.vue.js +93 -93
  18. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
  19. package/dist/components/Content/Schema/SchemaProperty.vue.js +2 -2
  20. package/dist/components/Content/Schema/SchemaProperty.vue2.js +1 -1
  21. package/dist/components/Content/Tag/Tag.vue.js +1 -1
  22. package/dist/components/Content/Tag/TagList.vue.d.ts +7 -1
  23. package/dist/components/Content/Tag/TagList.vue.d.ts.map +1 -1
  24. package/dist/components/Content/Tag/TagList.vue.js +41 -38
  25. package/dist/features/Operation/Operation.vue.d.ts +8 -3
  26. package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
  27. package/dist/features/Operation/Operation.vue.js +67 -51
  28. package/dist/features/Operation/components/OperationParameters.vue.d.ts.map +1 -1
  29. package/dist/features/Operation/components/OperationResponses.vue.d.ts.map +1 -1
  30. package/dist/features/Operation/components/callbacks/Callback.vue.d.ts.map +1 -1
  31. package/dist/features/Operation/components/callbacks/Callback.vue.js +2 -2
  32. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +9 -2
  33. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
  34. package/dist/features/Operation/layouts/ClassicLayout.vue.js +2 -2
  35. package/dist/features/Operation/layouts/ClassicLayout.vue2.js +92 -84
  36. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +10 -3
  37. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
  38. package/dist/features/Operation/layouts/ModernLayout.vue.js +2 -2
  39. package/dist/features/Operation/layouts/ModernLayout.vue2.js +132 -117
  40. package/dist/features/Search/SearchButton.vue.d.ts +1 -3
  41. package/dist/features/Search/SearchButton.vue.d.ts.map +1 -1
  42. package/dist/features/Search/SearchButton.vue.js +19 -19
  43. package/dist/features/Search/SearchModal.vue.js +2 -2
  44. package/dist/features/Search/SearchModal.vue2.js +4 -4
  45. package/dist/features/Search/useSearchIndex.d.ts.map +1 -1
  46. package/dist/features/Search/useSearchIndex.js +15 -15
  47. package/dist/features/api-client-modal/ApiClientModal.vue.d.ts.map +1 -0
  48. package/dist/features/api-client-modal/index.d.ts.map +1 -0
  49. package/dist/features/{ApiClientModal → api-client-modal}/useApiClient.d.ts +118 -118
  50. package/dist/features/api-client-modal/useApiClient.d.ts.map +1 -0
  51. package/dist/features/base-url/BaseUrl.vue.d.ts.map +1 -0
  52. package/dist/features/base-url/index.d.ts.map +1 -0
  53. package/dist/features/document-source/hooks/useDocumentFetcher.d.ts.map +1 -0
  54. package/dist/features/document-source/hooks/useDocumentSource.d.ts.map +1 -0
  55. package/dist/features/document-source/index.d.ts.map +1 -0
  56. package/dist/features/download-link/DownloadLink.vue.d.ts.map +1 -0
  57. package/dist/features/download-link/DownloadLink.vue.js +7 -0
  58. package/dist/features/download-link/index.d.ts.map +1 -0
  59. package/dist/features/download-link/openapi-version-symbol.d.ts.map +1 -0
  60. package/dist/features/example-request/ExamplePicker.vue.d.ts +13 -0
  61. package/dist/features/example-request/ExamplePicker.vue.d.ts.map +1 -0
  62. package/dist/features/example-request/ExamplePicker.vue.js +7 -0
  63. package/dist/features/example-request/ExamplePicker.vue2.js +56 -0
  64. package/dist/features/example-request/ExampleRequest.vue.d.ts.map +1 -0
  65. package/dist/features/{ExampleRequest → example-request}/ExampleRequest.vue.js +2 -2
  66. package/dist/features/{ExampleRequest → example-request}/ExampleRequest.vue2.js +93 -93
  67. package/dist/features/example-request/TextSelect.vue.d.ts.map +1 -0
  68. package/dist/features/example-request/index.d.ts.map +1 -0
  69. package/dist/features/example-responses/ExampleResponse.vue.d.ts.map +1 -0
  70. package/dist/features/example-responses/ExampleResponse.vue.js +7 -0
  71. package/dist/features/example-responses/ExampleResponses.vue.d.ts.map +1 -0
  72. package/dist/features/example-responses/ExampleResponses.vue.js +7 -0
  73. package/dist/features/{ExampleResponses → example-responses}/ExampleResponses.vue2.js +1 -1
  74. package/dist/features/example-responses/index.d.ts.map +1 -0
  75. package/dist/{components/DocumentSelector → features/multiple-documents}/DocumentSelector.vue.d.ts.map +1 -1
  76. package/dist/features/multiple-documents/index.d.ts +3 -0
  77. package/dist/features/multiple-documents/index.d.ts.map +1 -0
  78. package/dist/{hooks → features/multiple-documents}/useMultipleDocuments.d.ts +1 -1
  79. package/dist/features/multiple-documents/useMultipleDocuments.d.ts.map +1 -0
  80. package/dist/features/sidebar/components/Sidebar.vue.d.ts.map +1 -0
  81. package/dist/features/sidebar/components/Sidebar.vue.js +7 -0
  82. package/dist/{components/Sidebar → features/sidebar/components}/Sidebar.vue2.js +2 -2
  83. package/dist/{components/Sidebar → features/sidebar/components}/SidebarElement.vue.d.ts +1 -1
  84. package/dist/features/sidebar/components/SidebarElement.vue.d.ts.map +1 -0
  85. package/dist/features/sidebar/components/SidebarElement.vue.js +7 -0
  86. package/dist/{components/Sidebar → features/sidebar/components}/SidebarElement.vue2.js +2 -2
  87. package/dist/features/sidebar/components/SidebarGroup.vue.d.ts.map +1 -0
  88. package/dist/features/sidebar/components/SidebarGroup.vue.js +7 -0
  89. package/dist/features/sidebar/components/SidebarHttpBadge.vue.d.ts.map +1 -0
  90. package/dist/features/sidebar/components/SidebarHttpBadge.vue.js +7 -0
  91. package/dist/{components/Sidebar → features/sidebar/components}/SidebarHttpBadge.vue2.js +1 -1
  92. package/dist/features/sidebar/helpers/create-sidebar.d.ts.map +1 -1
  93. package/dist/features/sidebar/helpers/create-sidebar.js +8 -8
  94. package/dist/features/sidebar/index.d.ts +1 -0
  95. package/dist/features/sidebar/index.d.ts.map +1 -1
  96. package/dist/features/specification-extension/SpecificationExtension.vue.d.ts.map +1 -0
  97. package/dist/features/specification-extension/index.d.ts.map +1 -0
  98. package/dist/features/test-request-button/TestRequestButton.vue.d.ts.map +1 -0
  99. package/dist/features/{TestRequestButton → test-request-button}/TestRequestButton.vue.js +2 -2
  100. package/dist/features/{TestRequestButton → test-request-button}/TestRequestButton.vue2.js +1 -1
  101. package/dist/features/test-request-button/index.d.ts.map +1 -0
  102. package/dist/features/traverse-schema/helpers/traverse-paths.d.ts.map +1 -1
  103. package/dist/features/traverse-schema/helpers/traverse-paths.js +21 -20
  104. package/dist/features/traverse-schema/helpers/traverse-schemas.d.ts.map +1 -1
  105. package/dist/features/traverse-schema/helpers/traverse-schemas.js +14 -14
  106. package/dist/hooks/useOperationDiscriminator.d.ts +2 -2
  107. package/dist/hooks/useOperationDiscriminator.d.ts.map +1 -1
  108. package/dist/hooks/useOperationDiscriminator.js +28 -28
  109. package/dist/index.d.ts +1 -2
  110. package/dist/index.d.ts.map +1 -1
  111. package/dist/index.js +5 -5
  112. package/dist/libs/openapi.d.ts +5 -6
  113. package/dist/libs/openapi.d.ts.map +1 -1
  114. package/dist/libs/openapi.js +41 -43
  115. package/dist/style.css +1 -1
  116. package/dist/v2/ApiReferenceWorkspace.vue.d.ts.map +1 -1
  117. package/dist/v2/ApiReferenceWorkspace.vue.js +110 -65
  118. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.d.ts +141 -0
  119. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.d.ts.map +1 -0
  120. package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.d.ts +38 -0
  121. package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.d.ts.map +1 -0
  122. package/dist/v2/blocks/scalar-request-example-block/helpers/generate-client-options.d.ts +21 -0
  123. package/dist/v2/blocks/scalar-request-example-block/helpers/generate-client-options.d.ts.map +1 -0
  124. package/dist/v2/blocks/scalar-request-example-block/helpers/generate-code-snippet.d.ts +20 -0
  125. package/dist/v2/blocks/scalar-request-example-block/helpers/generate-code-snippet.d.ts.map +1 -0
  126. package/dist/v2/blocks/scalar-request-example-block/helpers/get-secrets.d.ts +4 -0
  127. package/dist/v2/blocks/scalar-request-example-block/helpers/get-secrets.d.ts.map +1 -0
  128. package/dist/v2/blocks/scalar-request-example-block/index.d.ts +2 -0
  129. package/dist/v2/blocks/scalar-request-example-block/index.d.ts.map +1 -0
  130. package/dist/v2/blocks/scalar-request-example-block/types.d.ts +21 -0
  131. package/dist/v2/blocks/scalar-request-example-block/types.d.ts.map +1 -0
  132. package/package.json +12 -12
  133. package/dist/components/DocumentSelector/index.d.ts +0 -2
  134. package/dist/components/DocumentSelector/index.d.ts.map +0 -1
  135. package/dist/components/Sidebar/Sidebar.vue.d.ts.map +0 -1
  136. package/dist/components/Sidebar/Sidebar.vue.js +0 -7
  137. package/dist/components/Sidebar/SidebarElement.vue.d.ts.map +0 -1
  138. package/dist/components/Sidebar/SidebarElement.vue.js +0 -7
  139. package/dist/components/Sidebar/SidebarGroup.vue.d.ts.map +0 -1
  140. package/dist/components/Sidebar/SidebarGroup.vue.js +0 -7
  141. package/dist/components/Sidebar/SidebarHttpBadge.vue.d.ts.map +0 -1
  142. package/dist/components/Sidebar/SidebarHttpBadge.vue.js +0 -7
  143. package/dist/components/Sidebar/index.d.ts +0 -2
  144. package/dist/components/Sidebar/index.d.ts.map +0 -1
  145. package/dist/components/SpecificationExtension/SpecificationExtension.vue.d.ts.map +0 -1
  146. package/dist/components/SpecificationExtension/index.d.ts.map +0 -1
  147. package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts.map +0 -1
  148. package/dist/features/ApiClientModal/index.d.ts.map +0 -1
  149. package/dist/features/ApiClientModal/useApiClient.d.ts.map +0 -1
  150. package/dist/features/BaseUrl/BaseUrl.vue.d.ts.map +0 -1
  151. package/dist/features/BaseUrl/index.d.ts.map +0 -1
  152. package/dist/features/DocumentSource/hooks/useDocumentFetcher.d.ts.map +0 -1
  153. package/dist/features/DocumentSource/hooks/useDocumentSource.d.ts.map +0 -1
  154. package/dist/features/DocumentSource/index.d.ts.map +0 -1
  155. package/dist/features/DownloadLink/DownloadLink.vue.d.ts.map +0 -1
  156. package/dist/features/DownloadLink/DownloadLink.vue.js +0 -7
  157. package/dist/features/DownloadLink/index.d.ts.map +0 -1
  158. package/dist/features/DownloadLink/openapi-version-symbol.d.ts.map +0 -1
  159. package/dist/features/ExampleRequest/ExamplePicker.vue.d.ts +0 -10
  160. package/dist/features/ExampleRequest/ExamplePicker.vue.d.ts.map +0 -1
  161. package/dist/features/ExampleRequest/ExamplePicker.vue.js +0 -7
  162. package/dist/features/ExampleRequest/ExamplePicker.vue2.js +0 -59
  163. package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +0 -1
  164. package/dist/features/ExampleRequest/TextSelect.vue.d.ts.map +0 -1
  165. package/dist/features/ExampleRequest/index.d.ts.map +0 -1
  166. package/dist/features/ExampleResponses/ExampleResponse.vue.d.ts.map +0 -1
  167. package/dist/features/ExampleResponses/ExampleResponse.vue.js +0 -7
  168. package/dist/features/ExampleResponses/ExampleResponses.vue.d.ts.map +0 -1
  169. package/dist/features/ExampleResponses/ExampleResponses.vue.js +0 -7
  170. package/dist/features/ExampleResponses/index.d.ts.map +0 -1
  171. package/dist/features/TestRequestButton/TestRequestButton.vue.d.ts.map +0 -1
  172. package/dist/features/TestRequestButton/index.d.ts.map +0 -1
  173. package/dist/hooks/useMultipleDocuments.d.ts.map +0 -1
  174. /package/dist/features/{ApiClientModal → api-client-modal}/ApiClientModal.vue.d.ts +0 -0
  175. /package/dist/features/{ApiClientModal → api-client-modal}/ApiClientModal.vue.js +0 -0
  176. /package/dist/features/{ApiClientModal → api-client-modal}/ApiClientModal.vue2.js +0 -0
  177. /package/dist/features/{ApiClientModal → api-client-modal}/index.d.ts +0 -0
  178. /package/dist/features/{ApiClientModal → api-client-modal}/useApiClient.js +0 -0
  179. /package/dist/features/{BaseUrl → base-url}/BaseUrl.vue.d.ts +0 -0
  180. /package/dist/features/{BaseUrl → base-url}/BaseUrl.vue.js +0 -0
  181. /package/dist/features/{BaseUrl → base-url}/BaseUrl.vue2.js +0 -0
  182. /package/dist/features/{BaseUrl → base-url}/index.d.ts +0 -0
  183. /package/dist/features/{DocumentSource → document-source}/hooks/useDocumentFetcher.d.ts +0 -0
  184. /package/dist/features/{DocumentSource → document-source}/hooks/useDocumentFetcher.js +0 -0
  185. /package/dist/features/{DocumentSource → document-source}/hooks/useDocumentSource.d.ts +0 -0
  186. /package/dist/features/{DocumentSource → document-source}/hooks/useDocumentSource.js +0 -0
  187. /package/dist/features/{DocumentSource → document-source}/index.d.ts +0 -0
  188. /package/dist/features/{DownloadLink → download-link}/DownloadLink.vue.d.ts +0 -0
  189. /package/dist/features/{DownloadLink → download-link}/DownloadLink.vue2.js +0 -0
  190. /package/dist/features/{DownloadLink → download-link}/index.d.ts +0 -0
  191. /package/dist/features/{DownloadLink → download-link}/openapi-version-symbol.d.ts +0 -0
  192. /package/dist/features/{DownloadLink → download-link}/openapi-version-symbol.js +0 -0
  193. /package/dist/features/{ExampleRequest → example-request}/ExampleRequest.vue.d.ts +0 -0
  194. /package/dist/features/{ExampleRequest → example-request}/TextSelect.vue.d.ts +0 -0
  195. /package/dist/features/{ExampleRequest → example-request}/TextSelect.vue.js +0 -0
  196. /package/dist/features/{ExampleRequest → example-request}/TextSelect.vue3.js +0 -0
  197. /package/dist/features/{ExampleRequest → example-request}/index.d.ts +0 -0
  198. /package/dist/features/{ExampleResponses → example-responses}/ExampleResponse.vue.d.ts +0 -0
  199. /package/dist/features/{ExampleResponses → example-responses}/ExampleResponse.vue2.js +0 -0
  200. /package/dist/features/{ExampleResponses → example-responses}/ExampleResponses.vue.d.ts +0 -0
  201. /package/dist/features/{ExampleResponses → example-responses}/index.d.ts +0 -0
  202. /package/dist/{components/DocumentSelector → features/multiple-documents}/DocumentSelector.vue.d.ts +0 -0
  203. /package/dist/{components/DocumentSelector → features/multiple-documents}/DocumentSelector.vue.js +0 -0
  204. /package/dist/{components/DocumentSelector → features/multiple-documents}/DocumentSelector.vue2.js +0 -0
  205. /package/dist/{hooks → features/multiple-documents}/useMultipleDocuments.js +0 -0
  206. /package/dist/{components/Sidebar → features/sidebar/components}/Sidebar.vue.d.ts +0 -0
  207. /package/dist/{components/Sidebar → features/sidebar/components}/SidebarGroup.vue.d.ts +0 -0
  208. /package/dist/{components/Sidebar → features/sidebar/components}/SidebarGroup.vue2.js +0 -0
  209. /package/dist/{components/Sidebar → features/sidebar/components}/SidebarHttpBadge.vue.d.ts +0 -0
  210. /package/dist/{components/SpecificationExtension → features/specification-extension}/SpecificationExtension.vue.d.ts +0 -0
  211. /package/dist/{components/SpecificationExtension → features/specification-extension}/SpecificationExtension.vue.js +0 -0
  212. /package/dist/{components/SpecificationExtension → features/specification-extension}/SpecificationExtension.vue2.js +0 -0
  213. /package/dist/{components/SpecificationExtension → features/specification-extension}/index.d.ts +0 -0
  214. /package/dist/features/{TestRequestButton → test-request-button}/TestRequestButton.vue.d.ts +0 -0
  215. /package/dist/features/{TestRequestButton → test-request-button}/index.d.ts +0 -0
@@ -1,28 +1,28 @@
1
- import { defineComponent as pe, useId as fe, ref as R, inject as Q, computed as c, watch as Y, onMounted as ye, createBlock as w, createCommentVNode as J, unref as r, openBlock as g, withCtx as s, createVNode as n, createElementVNode as U, renderSlot as N, createTextVNode as K, createElementBlock as D, Fragment as Z, toDisplayString as I } from "vue";
1
+ import { defineComponent as pe, useId as fe, ref as j, inject as Q, computed as m, watch as Y, onMounted as ye, createBlock as w, createCommentVNode as J, unref as r, openBlock as g, withCtx as s, createVNode as n, createElementVNode as U, renderSlot as $, createTextVNode as b, createElementBlock as D, Fragment as Z, toDisplayString as H } from "vue";
2
2
  import { useWorkspace as ve } from "@scalar/api-client/store";
3
- import { getSnippet as ge } from "@scalar/api-client/views/Components/CodeSnippet";
4
- import { filterSecurityRequirements as xe } from "@scalar/api-client/views/Request/RequestSection";
5
- import { ScalarCodeBlock as he } from "@scalar/components";
6
- import { freezeElement as qe } from "@scalar/helpers/dom/freeze-element";
7
- import { requestSchema as Ee, createExampleFromRequest as Ke } from "@scalar/oas-utils/entities/spec";
8
- import { isDereferenced as be } from "@scalar/openapi-types/helpers";
9
- import H from "../../components/ScreenReader.vue.js";
10
- import { useConfig as Se } from "../../hooks/useConfig.js";
11
- import { EXAMPLE_CONTEXT as ke, DISCRIMINATOR_CONTEXT as Ce } from "../../hooks/useDiscriminator.js";
12
- import { useHttpClientStore as Oe } from "../../stores/useHttpClientStore.js";
13
- import Ne from "./ExamplePicker.vue.js";
14
- import $e from "./TextSelect.vue.js";
3
+ import { getHarRequest as ge, getSnippet as xe } from "@scalar/api-client/views/Components/CodeSnippet";
4
+ import { filterSecurityRequirements as he } from "@scalar/api-client/views/Request/RequestSection";
5
+ import { ScalarCodeBlock as qe } from "@scalar/components";
6
+ import { freezeElement as Ee } from "@scalar/helpers/dom/freeze-element";
7
+ import { requestSchema as Ke, createExampleFromRequest as be } from "@scalar/oas-utils/entities/spec";
8
+ import { isDereferenced as Se } from "@scalar/openapi-types/helpers";
9
+ import I from "../../components/ScreenReader.vue.js";
10
+ import { useConfig as ke } from "../../hooks/useConfig.js";
11
+ import { EXAMPLE_CONTEXT as Ce, DISCRIMINATOR_CONTEXT as Oe } from "../../hooks/useDiscriminator.js";
12
+ import { useHttpClientStore as Ne } from "../../stores/useHttpClientStore.js";
13
+ import $e from "./ExamplePicker.vue.js";
14
+ import Te from "./TextSelect.vue.js";
15
15
  /* empty css */
16
16
  import _ from "../../components/Card/Card.vue.js";
17
- import Te from "../../components/Card/CardHeader.vue.js";
17
+ import Ve from "../../components/Card/CardHeader.vue.js";
18
18
  import ee from "../../components/HttpMethod/HttpMethod.vue.js";
19
19
  import te from "../../components/Card/CardContent.vue.js";
20
- import Ve from "../../components/Card/CardFooter.vue.js";
20
+ import Re from "../../components/Card/CardFooter.vue.js";
21
21
  import { useExampleStore as Be } from "../../legacy/stores/useExampleStore.js";
22
- const je = ["id"], Re = ["id"], we = {
22
+ const je = ["id"], we = ["id"], Je = {
23
23
  key: 0,
24
24
  class: "request-card-footer-addon"
25
- }, Je = { class: "request-header" }, rt = /* @__PURE__ */ pe({
25
+ }, Ue = { class: "request-header" }, ot = /* @__PURE__ */ pe({
26
26
  __name: "ExampleRequest",
27
27
  props: {
28
28
  server: {},
@@ -34,28 +34,28 @@ const je = ["id"], Re = ["id"], we = {
34
34
  schemas: {}
35
35
  },
36
36
  setup(l) {
37
- const { selectedExampleKey: M, operationId: ae } = Be(), { requestExamples: b, securitySchemes: A, requestExampleMutators: $ } = ve(), le = Se(), {
37
+ const { selectedExampleKey: M, operationId: ae } = Be(), { requestExamples: S, securitySchemes: A, requestExampleMutators: T } = ve(), le = ke(), {
38
38
  httpClient: u,
39
39
  setHttpClient: re,
40
40
  availableTargets: F,
41
41
  httpTargetTitle: oe,
42
42
  httpClientTitle: se
43
- } = Oe(), S = fe(), x = R(!1), k = Q(ke), y = Q(Ce), T = c(() => {
43
+ } = Ne(), k = fe(), x = j(!1), C = Q(Ce), f = Q(Oe), V = m(() => {
44
44
  var e;
45
- return (e = y == null ? void 0 : y.value) == null ? void 0 : e.selectedType;
46
- }), P = c(
45
+ return (e = f == null ? void 0 : f.value) == null ? void 0 : e.selectedType;
46
+ }), P = m(
47
47
  () => {
48
48
  var e;
49
- return ((e = y == null ? void 0 : y.value) == null ? void 0 : e.hasDiscriminator) || !1;
49
+ return ((e = f == null ? void 0 : f.value) == null ? void 0 : e.hasDiscriminator) || !1;
50
50
  }
51
- ), d = c(() => {
51
+ ), d = m(() => {
52
52
  var t;
53
53
  const e = ["x-custom-examples", "x-codeSamples", "x-code-samples"];
54
54
  for (const a of e)
55
55
  if ((t = l.operation) != null && t[a])
56
56
  return [...l.operation[a]];
57
57
  return [];
58
- }), o = R(
58
+ }), o = j(
59
59
  // Default to first custom example
60
60
  d.value.length ? {
61
61
  targetKey: "customExamples",
@@ -74,14 +74,14 @@ const je = ["id"], Re = ["id"], we = {
74
74
  clientKey: u.clientKey
75
75
  };
76
76
  });
77
- const X = c(() => {
78
- const e = C.value;
77
+ const X = m(() => {
78
+ const e = O.value;
79
79
  return Object.keys(e).length > 1;
80
80
  }), ne = () => {
81
- var h, q, E;
81
+ var q, E, c;
82
82
  if (o.value.targetKey === "customExamples")
83
- return ((h = d.value[o.value.clientKey]) == null ? void 0 : h.source) ?? "";
84
- const e = u.clientKey, t = u.targetKey, a = l.request || Ee.parse({
83
+ return ((q = d.value[o.value.clientKey]) == null ? void 0 : q.source) ?? "";
84
+ const e = u.clientKey, t = u.targetKey, a = l.request || Ke.parse({
85
85
  uid: l.operation.operationId || "temp-request",
86
86
  method: l.method,
87
87
  path: l.operation.path,
@@ -94,35 +94,35 @@ const je = ["id"], Re = ["id"], we = {
94
94
  servers: [],
95
95
  summary: l.operation.summary || "Example Request"
96
96
  });
97
- let i = b[((E = (q = l.request) == null ? void 0 : q.examples) == null ? void 0 : E[0]) ?? ""];
97
+ let i = S[((c = (E = l.request) == null ? void 0 : E.examples) == null ? void 0 : c[0]) ?? ""];
98
98
  if (!i) {
99
- const m = C.value, B = Object.keys(m)[0];
100
- i = Ke(a, B);
99
+ const B = O.value, K = Object.keys(B)[0];
100
+ i = be(a, K);
101
101
  }
102
- const p = xe(
102
+ const p = he(
103
103
  l.operation.security || l.collection.security,
104
104
  l.collection.selectedSecuritySchemeUids,
105
105
  A
106
- ), [f, O] = ge(t, e, {
107
- operation: l.request,
106
+ ), y = ge({
107
+ operation: a,
108
108
  example: i,
109
109
  server: l.server,
110
110
  securitySchemes: p
111
- });
112
- return f ? f.message ?? "" : O;
113
- }, z = c(() => {
111
+ }), [h, N] = xe(t, e, y);
112
+ return h ? h.message ?? "" : N;
113
+ }, z = m(() => {
114
114
  try {
115
115
  return ne();
116
116
  } catch (e) {
117
117
  return console.error("[generateSnippet]", e), "";
118
118
  }
119
- }), C = c(() => {
119
+ }), O = m(() => {
120
120
  var a;
121
- if (!be(l.operation.requestBody))
121
+ if (!Se(l.operation.requestBody))
122
122
  return {};
123
123
  const e = ((a = l.operation.requestBody) == null ? void 0 : a.content) ?? {}, t = Object.values(e)[0];
124
124
  return (t == null ? void 0 : t.examples) ?? {};
125
- }), ue = c(() => {
125
+ }), ue = m(() => {
126
126
  var t, a;
127
127
  const e = (
128
128
  // Specified language
@@ -132,13 +132,13 @@ const je = ["id"], Re = ["id"], we = {
132
132
  )
133
133
  );
134
134
  return e === "shell" && z.value.includes("curl") ? "curl" : e === "Objective-C" ? "objc" : e;
135
- }), ie = c(
135
+ }), ie = m(
136
136
  () => Object.values(A).flatMap((e) => e.type === "apiKey" ? e.value : (e == null ? void 0 : e.type) === "http" ? [
137
137
  e.token,
138
138
  e.password,
139
139
  btoa(`${e.username}:${e.password}`)
140
140
  ] : e.type === "oauth2" ? Object.values(e.flows).map((t) => t.token) : [])
141
- ), ce = c(() => {
141
+ ), ce = m(() => {
142
142
  const e = F.value.map((t) => ({
143
143
  value: t.key,
144
144
  label: t.title,
@@ -161,11 +161,11 @@ const je = ["id"], Re = ["id"], we = {
161
161
  label: t.label ?? t.lang ?? `Example #${a + 1}`
162
162
  }))
163
163
  }), e;
164
- }), V = R(null);
164
+ }), R = j(null);
165
165
  function me(e) {
166
166
  const t = JSON.parse(e);
167
- if (V.value) {
168
- const a = qe(V.value.$el);
167
+ if (R.value) {
168
+ const a = Ee(R.value.$el);
169
169
  setTimeout(() => {
170
170
  a();
171
171
  }, 300);
@@ -175,94 +175,94 @@ const je = ["id"], Re = ["id"], we = {
175
175
  function de(e) {
176
176
  var i, p;
177
177
  M.value = e, ae.value = l.operation.operationId;
178
- const t = b[((p = (i = l.request) == null ? void 0 : i.examples) == null ? void 0 : p[0]) ?? ""], a = C.value[e];
178
+ const t = S[((p = (i = l.request) == null ? void 0 : i.examples) == null ? void 0 : p[0]) ?? ""], a = O.value[e];
179
179
  if (t && (a != null && a.value))
180
180
  try {
181
- $.edit(
181
+ T.edit(
182
182
  t.uid,
183
183
  "body.raw.value",
184
184
  JSON.stringify(a.value, null, 2)
185
185
  );
186
- } catch (f) {
187
- console.error("[handleExampleUpdate]", f);
186
+ } catch (y) {
187
+ console.error("[handleExampleUpdate]", y);
188
188
  }
189
189
  }
190
190
  ye(() => {
191
- P.value && T.value && !x.value && L(T.value);
191
+ P.value && V.value && !x.value && L(V.value);
192
192
  });
193
193
  const L = (e) => {
194
- var t, a, i, p, f, O, h, q, E;
194
+ var t, a, i, p, y, h, N, q, E;
195
195
  if (!x.value)
196
196
  try {
197
197
  x.value = !0;
198
- const m = b[l.operation.examples[0]];
199
- if (m && (k != null && k.generateExampleValue)) {
200
- const B = (a = (t = m.body) == null ? void 0 : t.raw) != null && a.value ? JSON.parse(m.body.raw.value) : void 0, j = k.generateExampleValue(
198
+ const c = S[l.operation.examples[0]];
199
+ if (c && (C != null && C.generateExampleValue)) {
200
+ const B = (a = (t = c.body) == null ? void 0 : t.raw) != null && a.value ? JSON.parse(c.body.raw.value) : void 0, K = C.generateExampleValue(
201
201
  Array.isArray(B)
202
202
  );
203
- if ($.edit(
204
- m.uid,
203
+ if (T.edit(
204
+ c.uid,
205
205
  "body.raw.value",
206
- JSON.stringify(j, null, 2)
206
+ JSON.stringify(K, null, 2)
207
207
  ), (p = (i = l.request) == null ? void 0 : i.examples) != null && p[0]) {
208
- const v = b[(O = (f = l.request) == null ? void 0 : f.examples) == null ? void 0 : O[0]];
209
- v && $.edit(
208
+ const v = S[(h = (y = l.request) == null ? void 0 : y.examples) == null ? void 0 : h[0]];
209
+ v && T.edit(
210
210
  v.uid,
211
211
  "body.raw.value",
212
- JSON.stringify(j, null, 2)
212
+ JSON.stringify(K, null, 2)
213
213
  );
214
214
  }
215
- if ((E = (q = (h = l.operation.requestBody) == null ? void 0 : h.content) == null ? void 0 : q["application/json"]) != null && E.examples) {
215
+ if ((E = (q = (N = l.operation.requestBody) == null ? void 0 : N.content) == null ? void 0 : q["application/json"]) != null && E.examples) {
216
216
  const v = l.operation.requestBody.content["application/json"].examples;
217
217
  Object.keys(v).forEach((W) => {
218
218
  var G;
219
- (G = v[W]) != null && G.value && (v[W].value = j);
219
+ (G = v[W]) != null && G.value && (v[W].value = K);
220
220
  });
221
221
  }
222
222
  }
223
- } catch (m) {
224
- console.error("[handleDiscriminatorChange]", m);
223
+ } catch (c) {
224
+ console.error("[handleDiscriminatorChange]", c);
225
225
  } finally {
226
226
  x.value = !1;
227
227
  }
228
228
  };
229
- return Y(T, (e) => {
229
+ return Y(V, (e) => {
230
230
  e && P.value && !x.value && L();
231
231
  }), (e, t) => r(F).length || d.value.length ? (g(), w(r(_), {
232
232
  key: 0,
233
- "aria-labelledby": `${r(S)}-header`,
233
+ "aria-labelledby": `${r(k)}-header`,
234
234
  class: "dark-mode",
235
235
  ref_key: "elem",
236
- ref: V,
236
+ ref: R,
237
237
  role: "region"
238
238
  }, {
239
239
  default: s(() => [
240
- n(r(Te), { muted: "" }, {
240
+ n(r(Ve), { muted: "" }, {
241
241
  actions: s(() => [
242
- n($e, {
242
+ n(Te, {
243
243
  class: "request-client-picker",
244
- controls: `${r(S)}-example`,
244
+ controls: `${r(k)}-example`,
245
245
  modelValue: JSON.stringify(o.value),
246
246
  options: ce.value,
247
247
  "onUpdate:modelValue": me
248
248
  }, {
249
249
  default: s(() => [
250
250
  o.value.targetKey === "customExamples" ? (g(), D(Z, { key: 0 }, [
251
- n(H, null, {
251
+ n(I, null, {
252
252
  default: s(() => t[1] || (t[1] = [
253
- K("Selected Example:")
253
+ b("Selected Example:")
254
254
  ])),
255
255
  _: 1
256
256
  }),
257
- K(" " + I(d.value[o.value.clientKey].label ?? "Example"), 1)
257
+ b(" " + H(d.value[o.value.clientKey].label ?? "Example"), 1)
258
258
  ], 64)) : (g(), D(Z, { key: 1 }, [
259
- n(H, null, {
259
+ n(I, null, {
260
260
  default: s(() => t[2] || (t[2] = [
261
- K("Selected HTTP client:")
261
+ b("Selected HTTP client:")
262
262
  ])),
263
263
  _: 1
264
264
  }),
265
- K(" " + I(r(oe)) + " " + I(r(se)), 1)
265
+ b(" " + H(r(oe)) + " " + H(r(se)), 1)
266
266
  ], 64))
267
267
  ]),
268
268
  _: 1
@@ -270,12 +270,12 @@ const je = ["id"], Re = ["id"], we = {
270
270
  ]),
271
271
  default: s(() => [
272
272
  U("div", {
273
- id: `${r(S)}-header`,
273
+ id: `${r(k)}-header`,
274
274
  class: "request-header"
275
275
  }, [
276
- n(H, null, {
276
+ n(I, null, {
277
277
  default: s(() => t[0] || (t[0] = [
278
- K("Request Example for")
278
+ b("Request Example for")
279
279
  ])),
280
280
  _: 1
281
281
  }),
@@ -284,7 +284,7 @@ const je = ["id"], Re = ["id"], we = {
284
284
  class: "request-method",
285
285
  method: e.method
286
286
  }, null, 8, ["method"]),
287
- N(e.$slots, "header", {}, void 0, !0)
287
+ $(e.$slots, "header", {}, void 0, !0)
288
288
  ], 8, je)
289
289
  ]),
290
290
  _: 3
@@ -296,35 +296,35 @@ const je = ["id"], Re = ["id"], we = {
296
296
  }, {
297
297
  default: s(() => [
298
298
  U("div", {
299
- id: `${r(S)}-example`,
299
+ id: `${r(k)}-example`,
300
300
  class: "code-snippet"
301
301
  }, [
302
- n(r(he), {
302
+ n(r(qe), {
303
303
  class: "bg-b-2 -outline-offset-2",
304
304
  content: z.value,
305
305
  hideCredentials: ie.value,
306
306
  lang: ue.value,
307
307
  lineNumbers: ""
308
308
  }, null, 8, ["content", "hideCredentials", "lang"])
309
- ], 8, Re)
309
+ ], 8, we)
310
310
  ]),
311
311
  _: 1
312
312
  }),
313
- (X.value || !r(le).hideTestRequestButton) && e.$slots.footer ? (g(), w(r(Ve), {
313
+ (X.value || !r(le).hideTestRequestButton) && e.$slots.footer ? (g(), w(r(Re), {
314
314
  key: 0,
315
315
  class: "request-card-footer",
316
316
  contrast: ""
317
317
  }, {
318
318
  default: s(() => [
319
- X.value ? (g(), D("div", we, [
320
- n(Ne, {
319
+ X.value ? (g(), D("div", Je, [
320
+ n($e, {
321
321
  class: "request-example-selector",
322
- examples: C.value,
322
+ examples: O.value,
323
323
  modelValue: r(M),
324
324
  "onUpdate:modelValue": de
325
325
  }, null, 8, ["examples", "modelValue"])
326
326
  ])) : J("", !0),
327
- N(e.$slots, "footer", {}, void 0, !0)
327
+ $(e.$slots, "footer", {}, void 0, !0)
328
328
  ]),
329
329
  _: 3
330
330
  })) : J("", !0)
@@ -337,15 +337,15 @@ const je = ["id"], Re = ["id"], we = {
337
337
  default: s(() => [
338
338
  n(r(te), { class: "request-card-simple" }, {
339
339
  default: s(() => [
340
- U("div", Je, [
340
+ U("div", Ue, [
341
341
  n(r(ee), {
342
342
  as: "span",
343
343
  class: "request-method",
344
344
  method: e.method
345
345
  }, null, 8, ["method"]),
346
- N(e.$slots, "header", {}, void 0, !0)
346
+ $(e.$slots, "header", {}, void 0, !0)
347
347
  ]),
348
- N(e.$slots, "footer", {}, void 0, !0)
348
+ $(e.$slots, "footer", {}, void 0, !0)
349
349
  ]),
350
350
  _: 3
351
351
  })
@@ -355,5 +355,5 @@ const je = ["id"], Re = ["id"], we = {
355
355
  }
356
356
  });
357
357
  export {
358
- rt as default
358
+ ot as default
359
359
  };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/features/example-request/TextSelect.vue"],"names":[],"mappings":"AA4HA,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,GAAG,CAAA;IACf,OAAO,EAAE;QACP,KAAK,EAAE,MAAM,CAAA;QACb,KAAK,EAAE,MAAM,CAAA;QACb,OAAO,CAAC,EAAE;YACR,KAAK,EAAE,MAAM,CAAA;YACb,KAAK,EAAE,MAAM,CAAA;SACd,EAAE,CAAA;KACJ,EAAE,CAAA;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAC;AAkBF,iBAAS,cAAc;WAyDT,OAAO,IAA6B;;yBARrB,GAAG;;;;EAa/B;AAUD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;+FAQnB,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"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/features/example-request/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAC9D,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,sBAAsB,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExampleResponse.vue.d.ts","sourceRoot":"","sources":["../../../src/features/example-responses/ExampleResponse.vue"],"names":[],"mappings":"AAkGA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AAIpD,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,OAAO,CAAC,cAAc,CAAA;CACjC,CAAC;;AA+FF,wBAMG"}
@@ -0,0 +1,7 @@
1
+ import e from "./ExampleResponse.vue2.js";
2
+ /* empty css */
3
+ import o from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const r = /* @__PURE__ */ o(e, [["__scopeId", "data-v-85ccee8e"]]);
5
+ export {
6
+ r as default
7
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExampleResponses.vue.d.ts","sourceRoot":"","sources":["../../../src/features/example-responses/ExampleResponses.vue"],"names":[],"mappings":"AAgVA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAA;AAsBhE;;GAEG;AAEH,KAAK,WAAW,GAAG;IAAE,SAAS,EAAE,SAAS,CAAC,WAAW,CAAC,CAAA;CAAE,CAAC;;AAsVzD,wBAMG"}
@@ -0,0 +1,7 @@
1
+ import o from "./ExampleResponses.vue2.js";
2
+ /* empty css */
3
+ import p from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ p(o, [["__scopeId", "data-v-c267b349"]]);
5
+ export {
6
+ m as default
7
+ };
@@ -9,7 +9,7 @@ import q from "../../components/Card/CardTabHeader.vue.js";
9
9
  import G from "../../components/Card/CardTab.vue.js";
10
10
  import Q from "../../components/Card/CardContent.vue.js";
11
11
  import X from "../../components/Card/CardFooter.vue.js";
12
- import Y from "../ExampleRequest/ExamplePicker.vue.js";
12
+ import Y from "../example-request/ExamplePicker.vue.js";
13
13
  const Z = {
14
14
  key: 1,
15
15
  class: "scalar-card-checkbox"
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/features/example-responses/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,wBAAwB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"DocumentSelector.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DocumentSelector/DocumentSelector.vue"],"names":[],"mappings":"AAwDA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAA;AAKpE,KAAK,WAAW,GAAG;IACjB,OAAO,CAAC,EAAE,iBAAiB,EAAE,CAAA;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB,CAAC;;;;;;AA6HF,wBAOG"}
1
+ {"version":3,"file":"DocumentSelector.vue.d.ts","sourceRoot":"","sources":["../../../src/features/multiple-documents/DocumentSelector.vue"],"names":[],"mappings":"AAwDA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAA;AAKpE,KAAK,WAAW,GAAG;IACjB,OAAO,CAAC,EAAE,iBAAiB,EAAE,CAAA;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB,CAAC;;;;;;AA6HF,wBAOG"}
@@ -0,0 +1,3 @@
1
+ export { default as DocumentSelector } from './DocumentSelector.vue.js';
2
+ export { useMultipleDocuments } from './useMultipleDocuments.js';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/features/multiple-documents/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AACpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA"}
@@ -1,4 +1,4 @@
1
- import type { NavState } from '../hooks/useNavState.js';
1
+ import type { NavState } from '../../hooks/useNavState.js';
2
2
  import { type AnyApiReferenceConfiguration, type ApiReferenceConfiguration, type SpecConfiguration } from '@scalar/types/api-reference';
3
3
  import { type Ref } from 'vue';
4
4
  type UseMultipleDocumentsProps = {
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useMultipleDocuments.d.ts","sourceRoot":"","sources":["../../../src/features/multiple-documents/useMultipleDocuments.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAA;AAEnD,OAAO,EACL,KAAK,4BAA4B,EACjC,KAAK,yBAAyB,EAC9B,KAAK,iBAAiB,EAEvB,MAAM,6BAA6B,CAAA;AAGpC,OAAO,EAAE,KAAK,GAAG,EAAwB,MAAM,KAAK,CAAA;AAKpD,KAAK,yBAAyB,GAAG;IAC/B;;;OAGG;IACH,aAAa,EAAE,GAAG,CAAC,4BAA4B,GAAG,SAAS,CAAC,CAAA;IAC5D,2FAA2F;IAC3F,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB,GAAG,QAAQ,CAAA;AAIZ;;GAEG;AACH,eAAO,MAAM,uBAAuB,kBACnB,4BAA4B,GAAG,SAAS,KACtD,iBAAiB,EA6BnB,CAAA;AA0CD;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,8EAM9B,yBAAyB,KAAG;IAC7B,qBAAqB,EAAE,GAAG,CAAC,OAAO,CAAC,yBAAyB,CAAC,GAAG,iBAAiB,CAAC,CAAA;IAClF,kBAAkB,EAAE,GAAG,CAAC,iBAAiB,EAAE,CAAC,CAAA;IAC5C,qBAAqB,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAClC,qBAAqB,EAAE,GAAG,CAAC,OAAO,CAAC,CAAA;IACnC,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IACjB,UAAU,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;CAmIxB,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Sidebar.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/sidebar/components/Sidebar.vue"],"names":[],"mappings":"AAiRA,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAA;CACd,CAAC;AAmHF,iBAAS,cAAc;WAoKT,OAAO,IAA6B;;iCAVb,GAAG;+BACJ,GAAG;;;;;;EActC;AAkBD,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"}
@@ -0,0 +1,7 @@
1
+ import o from "./Sidebar.vue2.js";
2
+ /* empty css */
3
+ import r from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-db673c0a"]]);
5
+ export {
6
+ p as default
7
+ };
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as N, ref as T, watch as L, onMounted as F, onUnmounted as G, createElementBlock as a, openBlock as n, renderSlot as C, createElementVNode as A, createVNode as V, withCtx as p, Fragment as u, renderList as m, unref as o, createBlock as c, toDisplayString as M, createCommentVNode as $ } from "vue";
2
2
  import { sleep as w } from "@scalar/helpers/testing/sleep";
3
+ import { useNavState as D } from "../../../hooks/useNavState.js";
4
+ import { useSidebar as H } from "../hooks/useSidebar.js";
3
5
  import h from "./SidebarElement.vue.js";
4
6
  import y from "./SidebarGroup.vue.js";
5
- import { useNavState as D } from "../../hooks/useNavState.js";
6
- import { useSidebar as H } from "../../features/sidebar/hooks/useSidebar.js";
7
7
  const R = { class: "sidebar" }, U = ["aria-label"], j = { class: "sidebar-group-title" }, q = -160, X = /* @__PURE__ */ N({
8
8
  __name: "Sidebar",
9
9
  props: {
@@ -1,4 +1,4 @@
1
- import type { TraversedEntry } from '../../features/traverse-schema';
1
+ import type { TraversedEntry } from '../../../features/traverse-schema';
2
2
  type __VLS_Props = {
3
3
  id: string;
4
4
  item: TraversedEntry;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SidebarElement.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/sidebar/components/SidebarElement.vue"],"names":[],"mappings":"AAiWA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAA;AAQhE,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,cAAc,CAAA;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,IAAI,CAAC,EAAE,OAAO,CAAA;CACf,CAAC;AAuEF,iBAAS,cAAc;WA+KT,OAAO,IAA6B;;yBATpB,GAAG;+BACG,GAAG;;;;EAatC;AAiBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;4FAQnB,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"}
@@ -0,0 +1,7 @@
1
+ import o from "./SidebarElement.vue2.js";
2
+ /* empty css */
3
+ import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-c936e6b5"]]);
5
+ export {
6
+ a as default
7
+ };
@@ -5,8 +5,8 @@ import { getHttpMethodInfo as H } from "@scalar/helpers/http/http-info";
5
5
  import { sleep as k } from "@scalar/helpers/testing/sleep";
6
6
  import { ScalarIconWebhooksLogo as I } from "@scalar/icons";
7
7
  import { combineUrlAndPath as R } from "@scalar/oas-utils/helpers";
8
- import { useConfig as U } from "../../hooks/useConfig.js";
9
- import { useNavState as L } from "../../hooks/useNavState.js";
8
+ import { useConfig as U } from "../../../hooks/useConfig.js";
9
+ import { useNavState as L } from "../../../hooks/useNavState.js";
10
10
  import M from "./SidebarHttpBadge.vue.js";
11
11
  const P = ["id"], z = {
12
12
  key: 0,
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SidebarGroup.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/sidebar/components/SidebarGroup.vue"],"names":[],"mappings":"AAgDA,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAA;CACd,CAAC;AAQF,iBAAS,cAAc;WAiDT,OAAO,IAA6B;;yBARrB,GAAG;;;;EAa/B;AAQD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,+SAOnB,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"}
@@ -0,0 +1,7 @@
1
+ import o from "./SidebarGroup.vue2.js";
2
+ /* empty css */
3
+ import r from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-a0601651"]]);
5
+ export {
6
+ m as default
7
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SidebarHttpBadge.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/sidebar/components/SidebarHttpBadge.vue"],"names":[],"mappings":"AAqDA,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB,CAAC;AAQF,iBAAS,cAAc;WA6DT,OAAO,IAA6B;;yBARrB,GAAG;;;;EAa/B;AASD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,kSAOnB,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"}
@@ -0,0 +1,7 @@
1
+ import t from "./SidebarHttpBadge.vue2.js";
2
+ /* empty css */
3
+ import o from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const p = /* @__PURE__ */ o(t, [["__scopeId", "data-v-e9cc6741"]]);
5
+ export {
6
+ p as default
7
+ };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as t, createBlock as o, openBlock as a, unref as r, normalizeClass as s, withCtx as d, renderSlot as i } from "vue";
2
- import n from "../HttpMethod/HttpMethod.vue.js";
2
+ import n from "../../../components/HttpMethod/HttpMethod.vue.js";
3
3
  const h = /* @__PURE__ */ t({
4
4
  __name: "SidebarHttpBadge",
5
5
  props: {
@@ -1 +1 @@
1
- {"version":3,"file":"create-sidebar.d.ts","sourceRoot":"","sources":["../../../../src/features/sidebar/helpers/create-sidebar.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAExD,OAAO,EAA2B,KAAK,GAAG,EAAE,MAAM,KAAK,CAAA;AAGvD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAA;AAKrE,2CAA2C;AAC3C,KAAK,qBAAqB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;AAEpD,qCAAqC;AACrC,MAAM,MAAM,cAAc,GAAG,mBAAmB,CAAA;AAEhD;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa,yBAA0B,GAAG,CAAC,WAAW,CAAC,QAAQ,CAAC,WAAW,cAAc;;;;;;;qCAa5D,MAAM,UAAU,OAAO;mCARzB,MAAM,SAAS,OAAO;sCADnB,MAAM;CAgDhD,CAAA"}
1
+ {"version":3,"file":"create-sidebar.d.ts","sourceRoot":"","sources":["../../../../src/features/sidebar/helpers/create-sidebar.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAGxD,OAAO,EAAE,KAAK,GAAG,EAA2B,MAAM,KAAK,CAAA;AAEvD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAA;AAKrE,2CAA2C;AAC3C,KAAK,qBAAqB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;AAEpD,qCAAqC;AACrC,MAAM,MAAM,cAAc,GAAG,mBAAmB,CAAA;AAEhD;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa,yBAA0B,GAAG,CAAC,WAAW,CAAC,QAAQ,CAAC,WAAW,cAAc;;;;;;;qCAa5D,MAAM,UAAU,OAAO;mCARzB,MAAM,SAAS,OAAO;sCADnB,MAAM;CAgDhD,CAAA"}
@@ -1,22 +1,22 @@
1
- import { reactive as b, ref as p, computed as S } from "vue";
2
- import { lazyBus as g } from "../../../components/Content/Lazy/lazyBus.js";
1
+ import { lazyBus as b } from "../../../components/Content/Lazy/lazyBus.js";
2
+ import { reactive as p, ref as S, computed as g } from "vue";
3
3
  import { scrollToId as l } from "@scalar/helpers/dom/scroll-to-id";
4
4
  import { measure as v } from "@scalar/helpers/testing/measure";
5
5
  import { traverseDocument as O } from "../../traverse-schema/helpers/traverse-document.js";
6
- const x = (i, o) => {
7
- const r = b({}), m = p(!1), a = (e) => r[e] = !r[e], c = (e, t) => r[e] = t, n = (e, t) => {
6
+ const z = (i, o) => {
7
+ const r = p({}), m = S(!1), a = (e) => r[e] = !r[e], c = (e, t) => r[e] = t, n = (e, t) => {
8
8
  const s = o.getSectionId(e);
9
9
  if (s && s !== e)
10
10
  if (r[s])
11
11
  l(e, t);
12
12
  else {
13
- const f = g.on((d) => {
13
+ const f = b.on((d) => {
14
14
  d.id === e && (l(e, t), f());
15
15
  });
16
16
  c(s, !0);
17
17
  }
18
- }, u = S(() => {
19
- const e = v("traverseDocument", () => O(i.value, o));
18
+ }, u = g(() => {
19
+ const e = v("traverse-document", () => O(i.value, o));
20
20
  return o.config.value.defaultOpenAllTags && e.entries.forEach((t) => c(t.id, !0)), e;
21
21
  });
22
22
  return {
@@ -29,5 +29,5 @@ const x = (i, o) => {
29
29
  };
30
30
  };
31
31
  export {
32
- x as createSidebar
32
+ z as createSidebar
33
33
  };
@@ -1,3 +1,4 @@
1
+ export { default as Sidebar } from './components/Sidebar.vue.js';
1
2
  export { useSidebar, SIDEBAR_SYMBOL } from './hooks/useSidebar.js';
2
3
  export { createSidebar, type SidebarOptions } from './helpers/create-sidebar.js';
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/features/sidebar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AAC/D,OAAO,EAAE,aAAa,EAAE,KAAK,cAAc,EAAE,MAAM,0BAA0B,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/features/sidebar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,0BAA0B,CAAA;AAE7D,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AAC/D,OAAO,EAAE,aAAa,EAAE,KAAK,cAAc,EAAE,MAAM,0BAA0B,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SpecificationExtension.vue.d.ts","sourceRoot":"","sources":["../../../src/features/specification-extension/SpecificationExtension.vue"],"names":[],"mappings":"AAkFA,KAAK,WAAW,GAAG;IACjB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAA;CAC3C,CAAC;;AAyHF,wBAMG"}