@scalar/api-reference 1.24.20 → 1.24.23

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 (225) hide show
  1. package/CHANGELOG.md +48 -0
  2. package/dist/browser/standalone.js +22673 -23143
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/ApiClientModal.vue.d.ts.map +1 -1
  5. package/dist/components/ApiClientModal.vue.js +19 -18
  6. package/dist/components/ApiClientModal.vue3.js +5 -0
  7. package/dist/components/ApiReference.vue.js +14 -14
  8. package/dist/components/ApiReferenceLayout.vue.d.ts +2 -2
  9. package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
  10. package/dist/components/ApiReferenceLayout.vue.js +2 -2
  11. package/dist/components/ApiReferenceLayout.vue2.js +123 -155
  12. package/dist/components/Content/Authentication/Authentication.vue.d.ts.map +1 -1
  13. package/dist/components/Content/Authentication/Authentication.vue.js +2 -2
  14. package/dist/components/Content/Authentication/Authentication.vue2.js +20 -18
  15. package/dist/components/Content/Content.vue.d.ts +3 -3
  16. package/dist/components/Content/Content.vue.d.ts.map +1 -1
  17. package/dist/components/Content/Content.vue.js +2 -2
  18. package/dist/components/Content/Content.vue2.js +72 -93
  19. package/dist/components/Content/Lazy/Loading.vue.js +1 -1
  20. package/dist/components/Content/Operation/CustomRequestExamples.vue.d.ts.map +1 -1
  21. package/dist/components/Content/Operation/CustomRequestExamples.vue.js +1 -1
  22. package/dist/components/Content/Operation/CustomRequestExamples.vue2.js +19 -19
  23. package/dist/components/Content/Operation/ExampleRequest.vue.d.ts.map +1 -1
  24. package/dist/components/Content/Operation/ExampleRequest.vue.js +2 -2
  25. package/dist/components/Content/Operation/ExampleRequest.vue2.js +63 -59
  26. package/dist/components/Content/Operation/OperationAccordion.vue.d.ts.map +1 -1
  27. package/dist/components/Content/Operation/OperationAccordion.vue.js +1 -1
  28. package/dist/components/Content/Operation/OperationAccordion.vue2.js +26 -26
  29. package/dist/components/Content/Operation/TestRequestButton.vue.d.ts.map +1 -1
  30. package/dist/components/Content/Operation/TestRequestButton.vue.js +2 -2
  31. package/dist/components/Content/Operation/TestRequestButton.vue2.js +18 -36
  32. package/dist/components/Content/Schema/Schema.vue.d.ts +2 -2
  33. package/dist/components/Content/Schema/SchemaHeading.vue.d.ts +2 -2
  34. package/dist/components/Content/Tag/Endpoints.vue.d.ts.map +1 -1
  35. package/dist/components/Content/Tag/Endpoints.vue.js +2 -2
  36. package/dist/components/Content/Tag/Endpoints.vue2.js +23 -23
  37. package/dist/components/HttpMethod/HttpMethod.vue.d.ts +42 -0
  38. package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -0
  39. package/dist/components/HttpMethod/HttpMethod.vue.js +28 -0
  40. package/dist/components/HttpMethod/HttpMethod.vue2.js +4 -0
  41. package/dist/components/HttpMethod/constants.d.ts +9 -0
  42. package/dist/components/HttpMethod/constants.d.ts.map +1 -0
  43. package/dist/components/HttpMethod/constants.js +36 -0
  44. package/dist/components/HttpMethod/index.d.ts +2 -0
  45. package/dist/components/HttpMethod/index.d.ts.map +1 -0
  46. package/dist/components/HttpMethod/utils/isRequestMethod.d.ts +4 -0
  47. package/dist/components/HttpMethod/utils/isRequestMethod.d.ts.map +1 -0
  48. package/dist/components/HttpMethod/utils/isRequestMethod.js +7 -0
  49. package/dist/components/Sidebar/SidebarHttpBadge.vue.js +1 -1
  50. package/dist/components/Sidebar/SidebarHttpBadge.vue2.js +6 -6
  51. package/dist/components/api-client-bus.d.ts +1 -1
  52. package/dist/components/api-client-bus.d.ts.map +1 -1
  53. package/dist/features/BaseUrl/BaseUrl.vue.d.ts +40 -0
  54. package/dist/features/BaseUrl/BaseUrl.vue.d.ts.map +1 -0
  55. package/dist/features/BaseUrl/BaseUrl.vue.js +97 -0
  56. package/dist/features/BaseUrl/BaseUrl.vue2.js +4 -0
  57. package/dist/features/BaseUrl/ServerForm.vue.d.ts +41 -0
  58. package/dist/features/BaseUrl/ServerForm.vue.d.ts.map +1 -0
  59. package/dist/features/BaseUrl/ServerForm.vue.js +7 -0
  60. package/dist/features/BaseUrl/ServerForm.vue2.js +66 -0
  61. package/dist/{components/Content/BaseUrl/ServerItem.vue.d.ts → features/BaseUrl/ServerUrl.vue.d.ts} +6 -6
  62. package/dist/features/BaseUrl/ServerUrl.vue.d.ts.map +1 -0
  63. package/dist/features/BaseUrl/ServerUrl.vue.js +8 -0
  64. package/dist/features/BaseUrl/ServerUrl.vue2.js +29 -0
  65. package/dist/{components/ApiClientModalOld.vue.d.ts → features/BaseUrl/ServerUrlSelect.vue.d.ts} +9 -15
  66. package/dist/features/BaseUrl/ServerUrlSelect.vue.d.ts.map +1 -0
  67. package/dist/features/BaseUrl/ServerUrlSelect.vue.js +7 -0
  68. package/dist/features/BaseUrl/ServerUrlSelect.vue2.js +56 -0
  69. package/dist/features/BaseUrl/ServerVariablesForm.vue.d.ts +23 -0
  70. package/dist/features/BaseUrl/ServerVariablesForm.vue.d.ts.map +1 -0
  71. package/dist/features/BaseUrl/ServerVariablesForm.vue.js +7 -0
  72. package/dist/features/BaseUrl/ServerVariablesForm.vue2.js +53 -0
  73. package/dist/{components/Content/BaseUrl/ServerVariableSelect.vue.d.ts → features/BaseUrl/ServerVariablesSelect.vue.d.ts} +1 -1
  74. package/dist/features/BaseUrl/ServerVariablesSelect.vue.d.ts.map +1 -0
  75. package/dist/features/BaseUrl/ServerVariablesSelect.vue.js +7 -0
  76. package/dist/{components/Content/BaseUrl/ServerVariableSelect.vue2.js → features/BaseUrl/ServerVariablesSelect.vue2.js} +1 -1
  77. package/dist/{components/Content/BaseUrl/ServerVariableTextbox.vue.d.ts → features/BaseUrl/ServerVariablesTextbox.vue.d.ts} +1 -1
  78. package/dist/features/BaseUrl/ServerVariablesTextbox.vue.d.ts.map +1 -0
  79. package/dist/features/BaseUrl/ServerVariablesTextbox.vue.js +7 -0
  80. package/dist/{components/Content/BaseUrl/ServerVariableTextbox.vue2.js → features/BaseUrl/ServerVariablesTextbox.vue2.js} +6 -6
  81. package/dist/features/BaseUrl/index.d.ts +3 -0
  82. package/dist/features/BaseUrl/index.d.ts.map +1 -0
  83. package/dist/features/BaseUrl/types.d.ts +10 -0
  84. package/dist/features/BaseUrl/types.d.ts.map +1 -0
  85. package/dist/features/BaseUrl/utils/getServers.d.ts +15 -0
  86. package/dist/features/BaseUrl/utils/getServers.d.ts.map +1 -0
  87. package/dist/features/BaseUrl/utils/getServers.js +29 -0
  88. package/dist/features/BaseUrl/utils/index.d.ts +2 -0
  89. package/dist/features/BaseUrl/utils/index.d.ts.map +1 -0
  90. package/dist/helpers/createEmptySpecification.d.ts +1 -1
  91. package/dist/helpers/createEmptySpecification.d.ts.map +1 -1
  92. package/dist/helpers/createEmptySpecification.js +5 -4
  93. package/dist/helpers/getApiClientRequest.d.ts +1 -1
  94. package/dist/helpers/getApiClientRequest.d.ts.map +1 -1
  95. package/dist/helpers/getApiClientRequest.js +12 -11
  96. package/dist/helpers/getModels.d.ts +1 -1
  97. package/dist/helpers/index.d.ts +1 -1
  98. package/dist/helpers/index.d.ts.map +1 -1
  99. package/dist/helpers/openClientFor.js +10 -7
  100. package/dist/helpers/parse.d.ts.map +1 -1
  101. package/dist/helpers/parse.js +33 -31
  102. package/dist/hooks/useReactiveSpec.d.ts +9 -9
  103. package/dist/hooks/useSidebar.js +18 -17
  104. package/dist/index.d.ts +0 -2
  105. package/dist/index.d.ts.map +1 -1
  106. package/dist/index.js +101 -102
  107. package/dist/legacy/components/CardForm.vue.d.ts +10 -0
  108. package/dist/legacy/components/CardForm.vue.d.ts.map +1 -0
  109. package/dist/legacy/components/CardForm.vue.js +13 -0
  110. package/dist/legacy/components/CardFormButton.vue.d.ts +12 -0
  111. package/dist/legacy/components/CardFormButton.vue.d.ts.map +1 -0
  112. package/dist/legacy/components/CardFormButton.vue.js +7 -0
  113. package/dist/legacy/components/CardFormButton.vue2.js +18 -0
  114. package/dist/legacy/components/CardFormGroup.vue.d.ts +10 -0
  115. package/dist/legacy/components/CardFormGroup.vue.d.ts.map +1 -0
  116. package/dist/legacy/components/CardFormGroup.vue.js +13 -0
  117. package/dist/legacy/components/CardFormRows.vue.d.ts +10 -0
  118. package/dist/legacy/components/CardFormRows.vue.d.ts.map +1 -0
  119. package/dist/legacy/components/CardFormRows.vue.js +13 -0
  120. package/dist/legacy/components/CardFormTextInput.vue.d.ts +25 -0
  121. package/dist/legacy/components/CardFormTextInput.vue.d.ts.map +1 -0
  122. package/dist/legacy/components/CardFormTextInput.vue.js +7 -0
  123. package/dist/legacy/components/CardFormTextInput.vue2.js +37 -0
  124. package/dist/{components/Content/BaseUrl/ServerVariables.vue.d.ts → legacy/components/SecurityScheme.vue.d.ts} +6 -4
  125. package/dist/legacy/components/SecurityScheme.vue.d.ts.map +1 -0
  126. package/dist/legacy/components/SecurityScheme.vue.js +7 -0
  127. package/dist/legacy/components/SecurityScheme.vue2.js +364 -0
  128. package/dist/legacy/components/SecuritySchemeScopes.vue.d.ts +26 -0
  129. package/dist/legacy/components/SecuritySchemeScopes.vue.d.ts.map +1 -0
  130. package/dist/legacy/components/SecuritySchemeScopes.vue.js +7 -0
  131. package/dist/legacy/components/SecuritySchemeScopes.vue2.js +91 -0
  132. package/dist/legacy/components/SecuritySchemeSelector.vue.d.ts +25 -0
  133. package/dist/legacy/components/SecuritySchemeSelector.vue.d.ts.map +1 -0
  134. package/dist/legacy/components/SecuritySchemeSelector.vue.js +7 -0
  135. package/dist/legacy/components/SecuritySchemeSelector.vue2.js +64 -0
  136. package/dist/legacy/fixtures/httpHeaders.d.ts +6 -0
  137. package/dist/legacy/fixtures/httpHeaders.d.ts.map +1 -0
  138. package/dist/legacy/fixtures/httpRequestMethods.d.ts +10 -0
  139. package/dist/legacy/fixtures/httpRequestMethods.d.ts.map +1 -0
  140. package/dist/legacy/fixtures/httpRequestMethods.js +18 -0
  141. package/dist/legacy/fixtures/index.d.ts +3 -0
  142. package/dist/legacy/fixtures/index.d.ts.map +1 -0
  143. package/dist/legacy/helpers/createPlaceholderRequest.d.ts +6 -0
  144. package/dist/legacy/helpers/createPlaceholderRequest.d.ts.map +1 -0
  145. package/dist/legacy/helpers/createPlaceholderRequest.js +14 -0
  146. package/dist/legacy/helpers/encodeStringAsBase64.d.ts +5 -0
  147. package/dist/legacy/helpers/encodeStringAsBase64.d.ts.map +1 -0
  148. package/dist/legacy/helpers/encodeStringAsBase64.js +6 -0
  149. package/dist/legacy/helpers/getRequestFromAuthentication.d.ts +10 -0
  150. package/dist/legacy/helpers/getRequestFromAuthentication.d.ts.map +1 -0
  151. package/dist/legacy/helpers/getRequestFromAuthentication.js +83 -0
  152. package/dist/legacy/helpers/getUrlFromServerState.d.ts +6 -0
  153. package/dist/legacy/helpers/getUrlFromServerState.d.ts.map +1 -0
  154. package/dist/legacy/helpers/getUrlFromServerState.js +9 -0
  155. package/dist/legacy/helpers/humanDiff.d.ts +5 -0
  156. package/dist/legacy/helpers/humanDiff.d.ts.map +1 -0
  157. package/dist/legacy/helpers/index.d.ts +12 -0
  158. package/dist/legacy/helpers/index.d.ts.map +1 -0
  159. package/dist/legacy/helpers/mapFromArray.d.ts +5 -0
  160. package/dist/legacy/helpers/mapFromArray.d.ts.map +1 -0
  161. package/dist/legacy/helpers/normalizeHeaders.d.ts +9 -0
  162. package/dist/legacy/helpers/normalizeHeaders.d.ts.map +1 -0
  163. package/dist/legacy/helpers/normalizePath.d.ts +5 -0
  164. package/dist/legacy/helpers/normalizePath.d.ts.map +1 -0
  165. package/dist/legacy/helpers/normalizeRequestMethod.d.ts +6 -0
  166. package/dist/legacy/helpers/normalizeRequestMethod.d.ts.map +1 -0
  167. package/dist/legacy/helpers/normalizeRequestMethod.js +14 -0
  168. package/dist/legacy/helpers/normalizeUrl.d.ts +5 -0
  169. package/dist/legacy/helpers/normalizeUrl.d.ts.map +1 -0
  170. package/dist/legacy/helpers/prepareClientRequestConfig.d.ts +24 -0
  171. package/dist/legacy/helpers/prepareClientRequestConfig.d.ts.map +1 -0
  172. package/dist/legacy/index.d.ts +5 -0
  173. package/dist/legacy/index.d.ts.map +1 -0
  174. package/dist/legacy/stores/index.d.ts +6 -0
  175. package/dist/legacy/stores/index.d.ts.map +1 -0
  176. package/dist/legacy/stores/useApiClientStore.d.ts +18 -0
  177. package/dist/legacy/stores/useApiClientStore.d.ts.map +1 -0
  178. package/dist/legacy/stores/useApiClientStore.js +32 -0
  179. package/dist/legacy/stores/useAuthenticationStore.d.ts +59 -0
  180. package/dist/legacy/stores/useAuthenticationStore.d.ts.map +1 -0
  181. package/dist/legacy/stores/useAuthenticationStore.js +36 -0
  182. package/dist/legacy/stores/useOpenApiStore.d.ts +95 -0
  183. package/dist/legacy/stores/useOpenApiStore.d.ts.map +1 -0
  184. package/dist/legacy/stores/useOpenApiStore.js +23 -0
  185. package/dist/legacy/stores/useRequestStore.d.ts +58 -0
  186. package/dist/legacy/stores/useRequestStore.d.ts.map +1 -0
  187. package/dist/legacy/stores/useRequestStore.js +33 -0
  188. package/dist/legacy/stores/useServerStore.d.ts +18 -0
  189. package/dist/legacy/stores/useServerStore.d.ts.map +1 -0
  190. package/dist/legacy/stores/useServerStore.js +18 -0
  191. package/dist/legacy/types.d.ts +117 -0
  192. package/dist/legacy/types.d.ts.map +1 -0
  193. package/dist/stores/index.d.ts +1 -0
  194. package/dist/stores/index.d.ts.map +1 -1
  195. package/dist/style.css +1 -1
  196. package/dist/types.d.ts +8 -11
  197. package/dist/types.d.ts.map +1 -1
  198. package/package.json +16 -15
  199. package/dist/components/ApiClientModal.vue2.js +0 -4
  200. package/dist/components/ApiClientModalOld.vue.d.ts.map +0 -1
  201. package/dist/components/ApiClientModalOld.vue.js +0 -7
  202. package/dist/components/ApiClientModalOld.vue2.js +0 -88
  203. package/dist/components/Content/BaseUrl/BaseUrl.vue.d.ts +0 -3
  204. package/dist/components/Content/BaseUrl/BaseUrl.vue.d.ts.map +0 -1
  205. package/dist/components/Content/BaseUrl/BaseUrl.vue.js +0 -7
  206. package/dist/components/Content/BaseUrl/BaseUrl.vue2.js +0 -90
  207. package/dist/components/Content/BaseUrl/ServerItem.vue.d.ts.map +0 -1
  208. package/dist/components/Content/BaseUrl/ServerItem.vue.js +0 -8
  209. package/dist/components/Content/BaseUrl/ServerItem.vue2.js +0 -35
  210. package/dist/components/Content/BaseUrl/ServerVariableSelect.vue.d.ts.map +0 -1
  211. package/dist/components/Content/BaseUrl/ServerVariableSelect.vue.js +0 -7
  212. package/dist/components/Content/BaseUrl/ServerVariableTextbox.vue.d.ts.map +0 -1
  213. package/dist/components/Content/BaseUrl/ServerVariableTextbox.vue.js +0 -7
  214. package/dist/components/Content/BaseUrl/ServerVariables.vue.d.ts.map +0 -1
  215. package/dist/components/Content/BaseUrl/ServerVariables.vue.js +0 -7
  216. package/dist/components/Content/BaseUrl/ServerVariables.vue2.js +0 -47
  217. package/dist/components/Content/BaseUrl/index.d.ts +0 -2
  218. package/dist/components/Content/BaseUrl/index.d.ts.map +0 -1
  219. package/dist/components/Content/Schema/SchemaProperty.spec.d.ts +0 -2
  220. package/dist/components/Content/Schema/SchemaProperty.spec.d.ts.map +0 -1
  221. package/dist/features.d.ts +0 -8
  222. package/dist/features.d.ts.map +0 -1
  223. package/dist/features.js +0 -5
  224. package/dist/standalone.spec.d.ts +0 -2
  225. package/dist/standalone.spec.d.ts.map +0 -1
@@ -1,70 +1,74 @@
1
1
  import { defineComponent as j, ref as $, computed as d, inject as w, onServerPrefetch as A, useSSRContext as F, openBlock as f, createBlock as k, unref as o, withCtx as p, createVNode as i, createTextVNode as P, toDisplayString as K, createElementVNode as y, renderSlot as b, createElementBlock as U, createCommentVNode as x } from "vue";
2
- import { useServerStore as I, useAuthenticationStore as J, HttpMethod as L, getSecretCredentialsFromAuthentication as M, getRequestFromAuthentication as Y, getUrlFromServerState as z } from "@scalar/api-client";
3
- import { ScalarIcon as D, ScalarCodeBlock as Q } from "@scalar/components";
4
- import { createHash as W, ssrState as X } from "@scalar/oas-utils/helpers";
5
- import { getRequestFromOperation as Z } from "@scalar/oas-utils/spec-getters";
6
- import { snippetz as V } from "@scalar/snippetz";
7
- import { asyncComputed as G } from "@vueuse/core";
8
- import { HTTPSnippet as ee } from "httpsnippet-lite";
9
- import te from "./ExamplePicker.vue.js";
10
- import oe from "./TextSelect.vue.js";
2
+ import { ScalarIcon as I, ScalarCodeBlock as J } from "@scalar/components";
3
+ import { createHash as L, ssrState as M } from "@scalar/oas-utils/helpers";
4
+ import { getRequestFromOperation as Y } from "@scalar/oas-utils/spec-getters";
5
+ import { snippetz as _ } from "@scalar/snippetz";
6
+ import { asyncComputed as z } from "@vueuse/core";
7
+ import { HTTPSnippet as D } from "httpsnippet-lite";
8
+ import Q from "./ExamplePicker.vue.js";
9
+ import W from "./TextSelect.vue.js";
11
10
  /* empty css */
12
- import { GLOBAL_SECURITY_SYMBOL as re } from "../../../helpers/provideSymbols.js";
13
- import ne from "../../Card/Card.vue.js";
14
- import ae from "../../Card/CardHeader.vue.js";
15
- import se from "../../Card/CardContent.vue.js";
16
- import ie from "../../Card/CardFooter.vue.js";
17
- import { useClipboard as le } from "../../../hooks/useClipboard.js";
18
- import { useHttpClientStore as pe } from "../../../stores/useHttpClientStore.js";
19
- import { getApiClientRequest as ce } from "../../../helpers/getApiClientRequest.js";
20
- import { getHarRequest as ue } from "../../../helpers/getHarRequest.js";
21
- const me = { class: "request-header" }, de = { class: "code-snippet" }, fe = {
11
+ import { GLOBAL_SECURITY_SYMBOL as X } from "../../../helpers/provideSymbols.js";
12
+ import Z from "../../Card/Card.vue.js";
13
+ import G from "../../Card/CardHeader.vue.js";
14
+ import ee from "../../HttpMethod/HttpMethod.vue.js";
15
+ import te from "../../Card/CardContent.vue.js";
16
+ import { getSecretCredentialsFromAuthentication as oe, getRequestFromAuthentication as re } from "../../../legacy/helpers/getRequestFromAuthentication.js";
17
+ import ne from "../../Card/CardFooter.vue.js";
18
+ import { useClipboard as ae } from "../../../hooks/useClipboard.js";
19
+ import { useHttpClientStore as se } from "../../../stores/useHttpClientStore.js";
20
+ import { getApiClientRequest as ie } from "../../../helpers/getApiClientRequest.js";
21
+ import { useServerStore as le } from "../../../legacy/stores/useServerStore.js";
22
+ import { useAuthenticationStore as pe } from "../../../legacy/stores/useAuthenticationStore.js";
23
+ import { getHarRequest as ce } from "../../../helpers/getHarRequest.js";
24
+ import { getUrlFromServerState as me } from "../../../legacy/helpers/getUrlFromServerState.js";
25
+ const ue = { class: "request-header" }, de = { class: "code-snippet" }, fe = {
22
26
  key: 0,
23
27
  class: "request-card-footer-addon"
24
- }, $e = /* @__PURE__ */ j({
28
+ }, Pe = /* @__PURE__ */ j({
25
29
  __name: "ExampleRequest",
26
30
  props: {
27
31
  operation: {}
28
32
  },
29
- setup(_) {
30
- const s = _, h = `components-Content-Operation-Example-Request${W(
33
+ setup(V) {
34
+ const s = V, h = `components-Content-Operation-Example-Request${L(
31
35
  s.operation.path + s.operation.httpVerb + s.operation.operationId
32
- )}`, C = $(), { copyToClipboard: E } = le(), {
36
+ )}`, C = $(), { copyToClipboard: E } = ae(), {
33
37
  httpClient: a,
34
- setHttpClient: H,
35
- availableTargets: R,
36
- httpTargetTitle: T,
37
- httpClientTitle: B
38
- } = pe(), { server: S } = I(), { authentication: u } = J(), v = d(
38
+ setHttpClient: R,
39
+ availableTargets: T,
40
+ httpTargetTitle: B,
41
+ httpClientTitle: H
42
+ } = se(), { server: S } = le(), { authentication: m } = pe(), v = d(
39
43
  () => {
40
44
  var e, r, t, n;
41
45
  return Object.keys(
42
46
  ((n = (t = (r = (e = s.operation.information) == null ? void 0 : e.requestBody) == null ? void 0 : r.content) == null ? void 0 : t["application/json"]) == null ? void 0 : n.examples) ?? {}
43
47
  ).length > 1;
44
48
  }
45
- ), l = w(re);
49
+ ), l = w(X);
46
50
  async function g() {
47
51
  var n;
48
- const e = ue(
52
+ const e = ce(
49
53
  {
50
- url: z(S)
54
+ url: me(S)
51
55
  },
52
- Z(
56
+ Y(
53
57
  s.operation,
54
58
  {
55
59
  replaceVariables: !0
56
60
  },
57
61
  C.value
58
62
  ),
59
- Y(
60
- u,
63
+ re(
64
+ m,
61
65
  ((n = s.operation.information) == null ? void 0 : n.security) ?? (l == null ? void 0 : l())
62
66
  )
63
67
  ), r = a.clientKey === "undici" || a.clientKey === "fetch" || a.clientKey === "ofetch" ? a.clientKey : null, t = a.targetKey.replace("javascript", "js");
64
- if (r && V().hasPlugin(t, r) && (t === "node" || t === "js"))
65
- return V().print(t, r, e) ?? "";
68
+ if (r && _().hasPlugin(t, r) && (t === "node" || t === "js"))
69
+ return _().print(t, r, e) ?? "";
66
70
  try {
67
- return await new ee(e).convert(
71
+ return await new D(e).convert(
68
72
  a.targetKey,
69
73
  a.clientKey
70
74
  );
@@ -72,31 +76,31 @@ const me = { class: "request-header" }, de = { class: "code-snippet" }, fe = {
72
76
  return console.error("[ExampleRequest]", c), "";
73
77
  }
74
78
  }
75
- const m = G(
79
+ const u = z(
76
80
  g,
77
- X[h] ?? ""
81
+ M[h] ?? ""
78
82
  );
79
83
  A(async () => {
80
84
  const e = F();
81
85
  e.payload.data[h] = await g();
82
- }), d(() => ce({
86
+ }), d(() => ie({
83
87
  serverState: S,
84
- authenticationState: u,
88
+ authenticationState: m,
85
89
  operation: s.operation,
86
90
  globalSecurity: l == null ? void 0 : l()
87
91
  }));
88
92
  const N = d(() => {
89
93
  const e = a.targetKey;
90
- return e === "shell" && m.value.includes("curl") ? "curl" : e === "c" || e === "csharp" ? "cpp" : e;
94
+ return e === "shell" && u.value.includes("curl") ? "curl" : e === "c" || e === "csharp" ? "cpp" : e;
91
95
  });
92
- return (e, r) => (f(), k(o(ne), { class: "dark-mode" }, {
96
+ return (e, r) => (f(), k(o(Z), { class: "dark-mode" }, {
93
97
  default: p(() => [
94
- i(o(ae), { muted: "" }, {
98
+ i(o(G), { muted: "" }, {
95
99
  actions: p(() => [
96
- i(oe, {
100
+ i(W, {
97
101
  class: "request-client-picker",
98
102
  modelValue: JSON.stringify(o(a)),
99
- options: o(R).map((t) => ({
103
+ options: o(T).map((t) => ({
100
104
  value: t.key,
101
105
  label: t.title,
102
106
  options: t.clients.map((n) => ({
@@ -107,27 +111,27 @@ const me = { class: "request-header" }, de = { class: "code-snippet" }, fe = {
107
111
  label: n.title
108
112
  }))
109
113
  })),
110
- "onUpdate:modelValue": r[0] || (r[0] = (t) => o(H)(JSON.parse(t)))
114
+ "onUpdate:modelValue": r[0] || (r[0] = (t) => o(R)(JSON.parse(t)))
111
115
  }, {
112
116
  default: p(() => [
113
- P(K(o(T)) + " " + K(o(B)), 1)
117
+ P(K(o(B)) + " " + K(o(H)), 1)
114
118
  ]),
115
119
  _: 1
116
120
  }, 8, ["modelValue", "options"]),
117
121
  y("button", {
118
122
  class: "copy-button",
119
123
  type: "button",
120
- onClick: r[1] || (r[1] = (t) => o(E)(o(m)))
124
+ onClick: r[1] || (r[1] = (t) => o(E)(o(u)))
121
125
  }, [
122
- i(o(D), {
126
+ i(o(I), {
123
127
  icon: "Clipboard",
124
128
  width: "10px"
125
129
  })
126
130
  ])
127
131
  ]),
128
132
  default: p(() => [
129
- y("div", me, [
130
- i(o(L), {
133
+ y("div", ue, [
134
+ i(o(ee), {
131
135
  as: "span",
132
136
  class: "request-method",
133
137
  method: e.operation.httpVerb
@@ -137,16 +141,16 @@ const me = { class: "request-header" }, de = { class: "code-snippet" }, fe = {
137
141
  ]),
138
142
  _: 3
139
143
  }),
140
- i(o(se), {
144
+ i(o(te), {
141
145
  borderless: "",
142
146
  class: "request-editor-section custom-scroll",
143
147
  frameless: ""
144
148
  }, {
145
149
  default: p(() => [
146
150
  y("div", de, [
147
- i(o(Q), {
148
- content: o(m),
149
- hideCredentials: o(M)(o(u)),
151
+ i(o(J), {
152
+ content: o(u),
153
+ hideCredentials: o(oe)(o(m)),
150
154
  lang: N.value,
151
155
  lineNumbers: ""
152
156
  }, null, 8, ["content", "hideCredentials", "lang"])
@@ -154,7 +158,7 @@ const me = { class: "request-header" }, de = { class: "code-snippet" }, fe = {
154
158
  ]),
155
159
  _: 1
156
160
  }),
157
- v.value || e.$slots.footer ? (f(), k(o(ie), {
161
+ v.value || e.$slots.footer ? (f(), k(o(ne), {
158
162
  key: 0,
159
163
  class: "request-card-footer",
160
164
  contrast: ""
@@ -163,7 +167,7 @@ const me = { class: "request-header" }, de = { class: "code-snippet" }, fe = {
163
167
  var t, n, c, q;
164
168
  return [
165
169
  v.value ? (f(), U("div", fe, [
166
- i(te, {
170
+ i(Q, {
167
171
  class: "request-example-selector",
168
172
  examples: ((q = (c = (n = (t = e.operation.information) == null ? void 0 : t.requestBody) == null ? void 0 : n.content) == null ? void 0 : c["application/json"]) == null ? void 0 : q.examples) ?? [],
169
173
  "onUpdate:modelValue": r[2] || (r[2] = (O) => C.value = O)
@@ -180,5 +184,5 @@ const me = { class: "request-header" }, de = { class: "code-snippet" }, fe = {
180
184
  }
181
185
  });
182
186
  export {
183
- $e as default
187
+ Pe as default
184
188
  };
@@ -1 +1 @@
1
- {"version":3,"file":"OperationAccordion.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operation/OperationAccordion.vue"],"names":[],"mappings":"AA0NA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;;;;;;;;AA8Q7D,wBAMG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
1
+ {"version":3,"file":"OperationAccordion.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operation/OperationAccordion.vue"],"names":[],"mappings":"AAyNA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;;;;;;;;AA+Q7D,wBAMG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import o from "./OperationAccordion.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-aca8c078"]]);
4
+ const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-70dfcfc0"]]);
5
5
  export {
6
6
  p as default
7
7
  };
@@ -1,23 +1,23 @@
1
- import { defineComponent as l, openBlock as a, createBlock as p, unref as e, createSlots as c, withCtx as i, createElementVNode as n, createVNode as t, toDisplayString as m, withModifiers as h } from "vue";
2
- import { HttpMethod as f } from "@scalar/api-client";
3
- import { ScalarIcon as u, ScalarIconButton as v, ScalarMarkdown as y } from "@scalar/components";
4
- import b from "./EndpointDetailsCard.vue.js";
5
- import C from "./EndpointPath.vue.js";
6
- import k from "./ExampleRequest.vue.js";
7
- import _ from "./TestRequestButton.vue.js";
8
- import S from "../../Section/SectionAccordion.vue.js";
1
+ import { defineComponent as l, openBlock as r, createBlock as p, unref as e, createSlots as c, withCtx as i, createElementVNode as n, createVNode as t, toDisplayString as m, withModifiers as h } from "vue";
2
+ import { ScalarIcon as f, ScalarIconButton as u, ScalarMarkdown as v } from "@scalar/components";
3
+ import y from "./EndpointDetailsCard.vue.js";
4
+ import _ from "./EndpointPath.vue.js";
5
+ import b from "./ExampleRequest.vue.js";
6
+ import C from "./TestRequestButton.vue.js";
7
+ import k from "../../Section/SectionAccordion.vue.js";
8
+ import S from "../../HttpMethod/HttpMethod.vue.js";
9
9
  import w from "../../Anchor/Anchor.vue.js";
10
10
  import A from "./PathResponses/PathResponses.vue.js";
11
11
  import { useClipboard as B } from "../../../hooks/useClipboard.js";
12
- const E = { class: "endpoint-header" }, R = { class: "endpoint-details" }, g = { class: "endpoint-label" }, I = { class: "endpoint-label-path" }, M = { class: "endpoint-label-name" }, P = { class: "endpoint-content" }, G = /* @__PURE__ */ l({
12
+ const E = { class: "endpoint-header" }, R = { class: "endpoint-details" }, g = { class: "endpoint-label" }, I = { class: "endpoint-label-path" }, P = { class: "endpoint-label-name" }, V = { class: "endpoint-content" }, H = /* @__PURE__ */ l({
13
13
  __name: "OperationAccordion",
14
14
  props: {
15
15
  id: {},
16
16
  operation: {}
17
17
  },
18
- setup(V) {
18
+ setup(q) {
19
19
  const { copyToClipboard: d } = B();
20
- return (o, s) => (a(), p(e(S), {
20
+ return (o, s) => (r(), p(e(k), {
21
21
  id: o.id,
22
22
  class: "reference-endpoint",
23
23
  transparent: ""
@@ -25,7 +25,7 @@ const E = { class: "endpoint-header" }, R = { class: "endpoint-details" }, g = {
25
25
  title: i(() => [
26
26
  n("h3", E, [
27
27
  n("div", R, [
28
- t(e(f), {
28
+ t(e(S), {
29
29
  class: "endpoint-type",
30
30
  method: o.operation.httpVerb,
31
31
  short: ""
@@ -35,16 +35,16 @@ const E = { class: "endpoint-header" }, R = { class: "endpoint-details" }, g = {
35
35
  class: "endpoint-anchor"
36
36
  }, {
37
37
  default: i(() => {
38
- var r;
38
+ var a;
39
39
  return [
40
40
  n("div", g, [
41
41
  n("div", I, [
42
- t(C, {
43
- deprecated: (r = o.operation.information) == null ? void 0 : r.deprecated,
42
+ t(_, {
43
+ deprecated: (a = o.operation.information) == null ? void 0 : a.deprecated,
44
44
  path: o.operation.path
45
45
  }, null, 8, ["deprecated", "path"])
46
46
  ]),
47
- n("div", M, m(o.operation.name), 1)
47
+ n("div", P, m(o.operation.name), 1)
48
48
  ])
49
49
  ];
50
50
  }),
@@ -53,29 +53,29 @@ const E = { class: "endpoint-header" }, R = { class: "endpoint-details" }, g = {
53
53
  ])
54
54
  ])
55
55
  ]),
56
- actions: i(({ active: r }) => [
57
- r ? (a(), p(_, {
56
+ actions: i(({ active: a }) => [
57
+ a ? (r(), p(C, {
58
58
  key: 0,
59
59
  operation: o.operation
60
- }, null, 8, ["operation"])) : (a(), p(e(u), {
60
+ }, null, 8, ["operation"])) : (r(), p(e(f), {
61
61
  key: 1,
62
62
  class: "endpoint-try-hint",
63
63
  icon: "PaperAirplane"
64
64
  })),
65
- t(e(v), {
65
+ t(e(u), {
66
66
  class: "endpoint-copy",
67
67
  icon: "Clipboard",
68
68
  label: "Copy endpoint URL",
69
69
  size: "xs",
70
70
  variant: "ghost",
71
- onClick: s[0] || (s[0] = h((q) => e(d)(o.operation.path), ["stop"]))
71
+ onClick: s[0] || (s[0] = h((D) => e(d)(o.operation.path), ["stop"]))
72
72
  })
73
73
  ]),
74
74
  default: i(() => [
75
- n("div", P, [
76
- t(b, { operation: o.operation }, null, 8, ["operation"]),
75
+ n("div", V, [
76
+ t(y, { operation: o.operation }, null, 8, ["operation"]),
77
77
  t(e(A), { operation: o.operation }, null, 8, ["operation"]),
78
- t(k, { operation: o.operation }, null, 8, ["operation"])
78
+ t(b, { operation: o.operation }, null, 8, ["operation"])
79
79
  ])
80
80
  ]),
81
81
  _: 2
@@ -83,7 +83,7 @@ const E = { class: "endpoint-header" }, R = { class: "endpoint-details" }, g = {
83
83
  o.operation.description ? {
84
84
  name: "description",
85
85
  fn: i(() => [
86
- t(e(y), {
86
+ t(e(v), {
87
87
  value: o.operation.description,
88
88
  withImages: ""
89
89
  }, null, 8, ["value"])
@@ -94,5 +94,5 @@ const E = { class: "endpoint-header" }, R = { class: "endpoint-details" }, g = {
94
94
  }
95
95
  });
96
96
  export {
97
- G as default
97
+ H as default
98
98
  };
@@ -1 +1 @@
1
- {"version":3,"file":"TestRequestButton.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operation/TestRequestButton.vue"],"names":[],"mappings":"AA6EA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;;;;;;AAqH7D,wBAMG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
1
+ {"version":3,"file":"TestRequestButton.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operation/TestRequestButton.vue"],"names":[],"mappings":"AAiEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;;;;;;AAgF7D,wBAMG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import t from "./TestRequestButton.vue2.js";
2
2
  /* empty css */
3
3
  import o from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ o(t, [["__scopeId", "data-v-98c21b42"]]);
4
+ const s = /* @__PURE__ */ o(t, [["__scopeId", "data-v-fa4467a0"]]);
5
5
  export {
6
- m as default
6
+ s as default
7
7
  };
@@ -1,46 +1,28 @@
1
- import { defineComponent as i, inject as a, openBlock as s, createBlock as m, unref as t, withModifiers as c, withCtx as l, createVNode as u, pushScopeId as d, popScopeId as f, createElementVNode as h } from "vue";
2
- import { HttpMethod as _ } from "@scalar/api-client";
3
- import { ScalarIcon as b } from "@scalar/components";
4
- import { NEW_API_MODAL as S } from "../../../features.js";
5
- import { apiClientBus as B } from "../../api-client-bus.js";
6
- import { GLOBAL_SECURITY_SYMBOL as C } from "../../../helpers/provideSymbols.js";
7
- import { openClientFor as I } from "../../../helpers/openClientFor.js";
8
- const w = (o) => (d("data-v-98c21b42"), o = o(), f(), o), A = /* @__PURE__ */ w(() => /* @__PURE__ */ h("span", null, "Test Request", -1)), T = /* @__PURE__ */ i({
1
+ import { defineComponent as n, openBlock as r, createElementBlock as a, withModifiers as i, unref as p, createVNode as s, pushScopeId as c, popScopeId as m, createElementVNode as d } from "vue";
2
+ import { ScalarIcon as u } from "@scalar/components";
3
+ import { apiClientBus as l } from "../../api-client-bus.js";
4
+ const h = (e) => (c("data-v-fa4467a0"), e = e(), m(), e), f = ["method"], _ = /* @__PURE__ */ h(() => /* @__PURE__ */ d("span", null, "Test Request", -1)), V = /* @__PURE__ */ n({
9
5
  __name: "TestRequestButton",
10
6
  props: {
11
7
  operation: {}
12
8
  },
13
- setup(o) {
14
- const n = a(C);
15
- return (e, p) => (s(), m(t(_), {
16
- as: "button",
9
+ setup(e) {
10
+ return (t, o) => (r(), a("button", {
17
11
  class: "show-api-client-button",
18
- method: e.operation.httpVerb,
12
+ method: t.operation.httpVerb,
19
13
  type: "button",
20
- onClick: p[0] || (p[0] = c((L) => {
21
- var r;
22
- return t(S) ? (
23
- // @scalar/api-client@2.0
24
- t(B).emit({
25
- open: {
26
- path: e.operation.path,
27
- method: e.operation.httpVerb
28
- }
29
- })
30
- ) : (
31
- // @scalar/api-client@1.x
32
- t(I)(e.operation, (r = t(n)) == null ? void 0 : r())
33
- );
34
- }, ["stop"]))
35
- }, {
36
- default: l(() => [
37
- u(t(b), { icon: "PaperAirplane" }),
38
- A
39
- ]),
40
- _: 1
41
- }, 8, ["method"]));
14
+ onClick: o[0] || (o[0] = i((b) => p(l).emit({
15
+ open: {
16
+ path: t.operation.path,
17
+ method: t.operation.httpVerb
18
+ }
19
+ }), ["stop"]))
20
+ }, [
21
+ s(p(u), { icon: "PaperAirplane" }),
22
+ _
23
+ ], 8, f));
42
24
  }
43
25
  });
44
26
  export {
45
- T as default
27
+ V as default
46
28
  };
@@ -1,6 +1,6 @@
1
1
  import type { OpenAPIV2, OpenAPIV3, OpenAPIV3_1 } from '@scalar/openapi-parser';
2
2
  declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
3
- value?: OpenAPIV3_1.SchemaObject | OpenAPIV3.SchemaObject | OpenAPIV2.DefinitionsObject | undefined;
3
+ value?: OpenAPIV2.DefinitionsObject | OpenAPIV3_1.SchemaObject | OpenAPIV3.SchemaObject | undefined;
4
4
  /** Track how deep we’ve gone */
5
5
  level?: number | undefined;
6
6
  name?: string | undefined;
@@ -11,7 +11,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
11
11
  }>, {
12
12
  level: number;
13
13
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
14
- value?: OpenAPIV3_1.SchemaObject | OpenAPIV3.SchemaObject | OpenAPIV2.DefinitionsObject | undefined;
14
+ value?: OpenAPIV2.DefinitionsObject | OpenAPIV3_1.SchemaObject | OpenAPIV3.SchemaObject | undefined;
15
15
  /** Track how deep we’ve gone */
16
16
  level?: number | undefined;
17
17
  name?: string | undefined;
@@ -1,9 +1,9 @@
1
1
  import type { OpenAPIV2, OpenAPIV3, OpenAPIV3_1 } from '@scalar/openapi-parser';
2
2
  declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
3
- value: OpenAPIV3_1.SchemaObject | OpenAPIV3.SchemaObject | OpenAPIV2.DefinitionsObject;
3
+ value: OpenAPIV2.DefinitionsObject | OpenAPIV3_1.SchemaObject | OpenAPIV3.SchemaObject;
4
4
  name?: string | undefined;
5
5
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
6
- value: OpenAPIV3_1.SchemaObject | OpenAPIV3.SchemaObject | OpenAPIV2.DefinitionsObject;
6
+ value: OpenAPIV2.DefinitionsObject | OpenAPIV3_1.SchemaObject | OpenAPIV3.SchemaObject;
7
7
  name?: string | undefined;
8
8
  }>>>, {}, {}>;
9
9
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"Endpoints.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/Endpoints.vue"],"names":[],"mappings":"AA0HA,OAAO,KAAK,EAAE,GAAG,EAAwB,MAAM,mBAAmB,CAAA;;;;;;;;;;;;AAiSlE,wBAOG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
1
+ {"version":3,"file":"Endpoints.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/Endpoints.vue"],"names":[],"mappings":"AAyHA,OAAO,KAAK,EAAE,GAAG,EAAwB,MAAM,mBAAmB,CAAA;;;;;;;;;;;;AAkSlE,wBAOG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import o from "./Endpoints.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const d = /* @__PURE__ */ t(o, [["__scopeId", "data-v-9fc68fdd"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-f0ef5b24"]]);
5
5
  export {
6
- d as default
6
+ m as default
7
7
  };
@@ -1,30 +1,30 @@
1
- import { defineComponent as N, openBlock as n, createBlock as s, unref as e, withCtx as o, createVNode as a, createTextVNode as p, toDisplayString as u, createElementVNode as c, createElementBlock as f, Fragment as b, renderList as y, createCommentVNode as V } from "vue";
2
- import { HttpMethod as E } from "@scalar/api-client";
3
- import { ScalarMarkdown as H } from "@scalar/components";
1
+ import { defineComponent as N, openBlock as n, createBlock as s, unref as e, withCtx as o, createVNode as a, createTextVNode as u, toDisplayString as p, createElementVNode as c, createElementBlock as f, Fragment as b, renderList as y, createCommentVNode as V } from "vue";
2
+ import { ScalarMarkdown as E } from "@scalar/components";
4
3
  import I from "../../Section/Section.vue.js";
5
4
  import w from "../../Section/SectionContent.vue.js";
6
5
  import A from "../../Section/SectionColumns.vue.js";
7
6
  import g from "../../Section/SectionColumn.vue.js";
8
7
  import B from "../../Section/SectionHeader.vue.js";
9
- import T from "../../Anchor/Anchor.vue.js";
10
- import M from "../../Card/Card.vue.js";
8
+ import H from "../../Anchor/Anchor.vue.js";
9
+ import T from "../../Card/Card.vue.js";
11
10
  import O from "../../Card/CardHeader.vue.js";
12
- import D from "../../Card/CardContent.vue.js";
11
+ import $ from "../../Card/CardContent.vue.js";
12
+ import D from "../../HttpMethod/HttpMethod.vue.js";
13
13
  import { useSidebar as F } from "../../../hooks/useSidebar.js";
14
14
  import { useNavState as L } from "../../../hooks/useNavState.js";
15
- const U = { class: "endpoints" }, $ = ["onClick"], oe = /* @__PURE__ */ N({
15
+ const M = { class: "endpoints" }, U = ["onClick"], oe = /* @__PURE__ */ N({
16
16
  __name: "Endpoints",
17
17
  props: {
18
18
  id: {},
19
19
  tag: {}
20
20
  },
21
21
  emits: ["observeAndNavigate"],
22
- setup(C, { emit: h }) {
23
- const l = C, v = h, { getOperationId: i, getTagId: d } = L(), { setCollapsedSidebarItem: _ } = F(), S = (t) => {
24
- v("observeAndNavigate", t);
22
+ setup(C, { emit: _ }) {
23
+ const l = C, h = _, { getOperationId: i, getTagId: m } = L(), { setCollapsedSidebarItem: v } = F(), S = (t) => {
24
+ h("observeAndNavigate", t);
25
25
  };
26
26
  async function k(t) {
27
- S(i(t, l.tag)), _(d(l.tag), !0);
27
+ S(i(t, l.tag)), v(m(l.tag), !0);
28
28
  }
29
29
  return (t, j) => (n(), s(e(I), {
30
30
  id: t.id,
@@ -39,18 +39,18 @@ const U = { class: "endpoints" }, $ = ["onClick"], oe = /* @__PURE__ */ N({
39
39
  default: o(() => [
40
40
  a(e(B), { level: 2 }, {
41
41
  default: o(() => [
42
- a(e(T), {
43
- id: e(d)(t.tag)
42
+ a(e(H), {
43
+ id: e(m)(t.tag)
44
44
  }, {
45
45
  default: o(() => [
46
- p(u(t.tag["x-displayName"] ?? t.tag.name), 1)
46
+ u(p(t.tag["x-displayName"] ?? t.tag.name), 1)
47
47
  ]),
48
48
  _: 1
49
49
  }, 8, ["id"])
50
50
  ]),
51
51
  _: 1
52
52
  }),
53
- a(e(H), {
53
+ a(e(E), {
54
54
  value: t.tag.description,
55
55
  withImages: ""
56
56
  }, null, 8, ["value"])
@@ -59,35 +59,35 @@ const U = { class: "endpoints" }, $ = ["onClick"], oe = /* @__PURE__ */ N({
59
59
  }),
60
60
  a(e(g), null, {
61
61
  default: o(() => {
62
- var m;
62
+ var d;
63
63
  return [
64
- ((m = t.tag.operations) == null ? void 0 : m.length) > 0 ? (n(), s(e(M), {
64
+ ((d = t.tag.operations) == null ? void 0 : d.length) > 0 ? (n(), s(e(T), {
65
65
  key: 0,
66
66
  class: "scalar-card-sticky"
67
67
  }, {
68
68
  default: o(() => [
69
69
  a(e(O), { muted: "" }, {
70
70
  default: o(() => [
71
- p("Endpoints")
71
+ u("Endpoints")
72
72
  ]),
73
73
  _: 1
74
74
  }),
75
- a(e(D), {
75
+ a(e($), {
76
76
  class: "custom-scroll",
77
77
  muted: ""
78
78
  }, {
79
79
  default: o(() => [
80
- c("div", U, [
80
+ c("div", M, [
81
81
  (n(!0), f(b, null, y(t.tag.operations, (r) => (n(), f("a", {
82
82
  key: e(i)(r, t.tag),
83
83
  class: "endpoint",
84
84
  onClick: (q) => k(r)
85
85
  }, [
86
- a(e(E), {
86
+ a(e(D), {
87
87
  method: r.httpVerb
88
88
  }, null, 8, ["method"]),
89
- c("span", null, u(r.path), 1)
90
- ], 8, $))), 128))
89
+ c("span", null, p(r.path), 1)
90
+ ], 8, U))), 128))
91
91
  ])
92
92
  ]),
93
93
  _: 1