@scalar/api-reference 1.32.5 → 1.32.6

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 (41) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/dist/browser/standalone.js +9749 -9699
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts.map +1 -1
  5. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.js +1 -1
  6. package/dist/components/Content/ClientLibraries/ClientLibraries.vue2.js +28 -26
  7. package/dist/components/Content/Tag/OperationsListItem.vue.d.ts.map +1 -1
  8. package/dist/components/Content/Tag/OperationsListItem.vue.js +2 -2
  9. package/dist/components/Content/Tag/OperationsListItem.vue2.js +1 -1
  10. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +4 -2
  11. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
  12. package/dist/features/Operation/layouts/ClassicLayout.vue.js +2 -2
  13. package/dist/features/Operation/layouts/ClassicLayout.vue2.js +8 -8
  14. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +4 -2
  15. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
  16. package/dist/features/Operation/layouts/ModernLayout.vue.js +2 -2
  17. package/dist/features/Operation/layouts/ModernLayout.vue2.js +30 -30
  18. package/dist/features/api-client-modal/useApiClient.d.ts +84 -4
  19. package/dist/features/api-client-modal/useApiClient.d.ts.map +1 -1
  20. package/dist/features/download-link/DownloadLink.vue.d.ts.map +1 -1
  21. package/dist/features/download-link/DownloadLink.vue.js +1 -1
  22. package/dist/features/sidebar/components/SidebarElement.vue.d.ts.map +1 -1
  23. package/dist/features/sidebar/components/SidebarElement.vue.js +2 -2
  24. package/dist/features/sidebar/components/SidebarElement.vue2.js +16 -15
  25. package/dist/index.js +1 -1
  26. package/dist/libs/openapi.d.ts +0 -13
  27. package/dist/libs/openapi.d.ts.map +1 -1
  28. package/dist/libs/openapi.js +49 -63
  29. package/dist/stores/useHttpClientStore.js +20 -20
  30. package/dist/style.css +1 -1
  31. package/dist/v2/ApiReferenceWorkspace.vue.d.ts.map +1 -1
  32. package/dist/v2/ApiReferenceWorkspace.vue.js +80 -72
  33. package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.d.ts +14 -0
  34. package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.d.ts.map +1 -0
  35. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.d.ts +21 -72
  36. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.d.ts.map +1 -1
  37. package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.d.ts +1 -1
  38. package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.d.ts.map +1 -1
  39. package/dist/v2/events/definitions.d.ts +9 -0
  40. package/dist/v2/events/definitions.d.ts.map +1 -1
  41. package/package.json +11 -10
@@ -1 +1 @@
1
- {"version":3,"file":"ClientLibraries.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ClientLibraries/ClientLibraries.vue"],"names":[],"mappings":";AAudA,wBAKG"}
1
+ {"version":3,"file":"ClientLibraries.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ClientLibraries/ClientLibraries.vue"],"names":[],"mappings":";AA2dA,wBAKG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./ClientLibraries.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const a = /* @__PURE__ */ r(o, [["__scopeId", "data-v-21cf9eeb"]]);
4
+ const a = /* @__PURE__ */ r(o, [["__scopeId", "data-v-d0decf3e"]]);
5
5
  export {
6
6
  a as default
7
7
  };
@@ -1,5 +1,5 @@
1
- import { defineComponent as K, ref as w, useId as y, watch as P, onMounted as B, computed as F, createElementBlock as l, createCommentVNode as b, unref as e, openBlock as n, createVNode as i, withCtx as m, createElementVNode as V, Fragment as h, normalizeClass as H, renderList as A, createBlock as D, createTextVNode as M, toDisplayString as p } from "vue";
2
- import { TabGroup as O, TabList as R, TabPanels as j, TabPanel as z } from "@headlessui/vue";
1
+ import { defineComponent as K, ref as P, useId as y, watch as w, onMounted as B, computed as D, createElementBlock as l, createCommentVNode as _, unref as e, openBlock as n, createVNode as i, withCtx as m, createElementVNode as F, Fragment as h, normalizeClass as V, renderList as A, createBlock as H, createTextVNode as R, toDisplayString as p } from "vue";
2
+ import { TabGroup as M, TabList as O, TabPanels as j, TabPanel as z } from "@headlessui/vue";
3
3
  import { useWorkspace as G } from "@scalar/api-client/store";
4
4
  import { ScalarMarkdown as J, ScalarCodeBlock as W } from "@scalar/components";
5
5
  import { REFERENCE_LS_KEYS as Y } from "@scalar/helpers/object/local-storage";
@@ -16,14 +16,14 @@ const Z = { key: 0 }, $ = ["id"], X = {
16
16
  setup(te) {
17
17
  const {
18
18
  availableTargets: T,
19
- httpTargetTitle: k,
20
- httpClientTitle: x,
21
- getClientTitle: E,
19
+ httpTargetTitle: E,
20
+ httpClientTitle: k,
21
+ getClientTitle: x,
22
22
  getTargetTitle: L,
23
23
  httpClient: a,
24
- setHttpClient: _
25
- } = q(), { featuredClients: d, isFeatured: S } = U(), I = G(), g = w(0), v = y(), C = y();
26
- P(
24
+ setHttpClient: b
25
+ } = q(), { featuredClients: d, isFeatured: S } = U(), I = G(), g = P(0), C = y(), v = y();
26
+ w(
27
27
  a,
28
28
  (t) => {
29
29
  t && (g.value = d.findIndex(
@@ -34,13 +34,15 @@ const Z = { key: 0 }, $ = ["id"], X = {
34
34
  );
35
35
  function N(t) {
36
36
  const o = d[t];
37
- o && _(o);
37
+ o && b(o);
38
38
  }
39
39
  B(() => {
40
- const t = localStorage.getItem(Y.SELECTED_CLIENT);
41
- t && _(JSON.parse(t));
40
+ const t = localStorage.getItem(
41
+ Y.SELECTED_CLIENT_DEPRECATED
42
+ );
43
+ t && b(JSON.parse(t));
42
44
  });
43
- const r = F(() => {
45
+ const r = D(() => {
44
46
  var c;
45
47
  const t = Object.values(I.collections)[0], o = (c = t == null ? void 0 : t.info) == null ? void 0 : c["x-scalar-sdk-installation"];
46
48
  if (!Array.isArray(o) || !(o != null && o.length))
@@ -55,24 +57,24 @@ const Z = { key: 0 }, $ = ["id"], X = {
55
57
  return s;
56
58
  });
57
59
  return (t, o) => e(T).length ? (n(), l("div", Z, [
58
- i(e(O), {
60
+ i(e(M), {
59
61
  manual: "",
60
62
  selectedIndex: g.value,
61
63
  onChange: N
62
64
  }, {
63
65
  default: m(() => [
64
- V("div", {
65
- id: e(v),
66
+ F("div", {
67
+ id: e(C),
66
68
  class: "client-libraries-heading"
67
69
  }, " Client Libraries ", 8, $),
68
- i(e(R), {
69
- "aria-labelledby": e(v),
70
+ i(e(O), {
71
+ "aria-labelledby": e(C),
70
72
  class: "client-libraries-list"
71
73
  }, {
72
74
  default: m(() => [
73
75
  i(Q, {
74
76
  featured: e(d),
75
- morePanel: e(C)
77
+ morePanel: e(v)
76
78
  }, null, 8, ["featured", "morePanel"])
77
79
  ]),
78
80
  _: 1
@@ -84,14 +86,14 @@ const Z = { key: 0 }, $ = ["id"], X = {
84
86
  (s = r.value) != null && s.source || (c = r.value) != null && c.description ? (n(), l(h, { key: 0 }, [
85
87
  r.value.description ? (n(), l("div", {
86
88
  key: 0,
87
- class: H(["selected-client card-footer -outline-offset-2", r.value.source && "rounded-b-none"]),
89
+ class: V(["selected-client card-footer -outline-offset-2", r.value.source && "rounded-b-none"]),
88
90
  role: "tabpanel",
89
91
  tabindex: "0"
90
92
  }, [
91
93
  i(e(J), {
92
94
  value: r.value.description
93
95
  }, null, 8, ["value"])
94
- ], 2)) : b("", !0),
96
+ ], 2)) : _("", !0),
95
97
  r.value.source ? (n(), l("div", X, [
96
98
  i(e(W), {
97
99
  lang: "shell",
@@ -99,22 +101,22 @@ const Z = { key: 0 }, $ = ["id"], X = {
99
101
  copy: !0,
100
102
  class: "rounded-t-none rounded-b-lg px-3 py-2 -outline-offset-1 has-focus:outline"
101
103
  }, null, 8, ["content"])
102
- ])) : b("", !0)
103
- ], 64)) : e(a) && e(S)(e(a)) ? (n(!0), l(h, { key: 1 }, A(e(d), (u, f) => (n(), D(e(z), {
104
+ ])) : _("", !0)
105
+ ], 64)) : e(a) && e(S)(e(a)) ? (n(!0), l(h, { key: 1 }, A(e(d), (u, f) => (n(), H(e(z), {
104
106
  key: f,
105
107
  class: "selected-client card-footer -outline-offset-2"
106
108
  }, {
107
109
  default: m(() => [
108
- M(p(e(E)(u)) + " " + p(e(L)(u)), 1)
110
+ R(p(e(x)(u)) + " " + p(e(L)(u)), 1)
109
111
  ]),
110
112
  _: 2
111
113
  }, 1024))), 128)) : (n(), l("div", {
112
114
  key: 2,
113
- id: e(C),
115
+ id: e(v),
114
116
  class: "selected-client card-footer -outline-offset-2",
115
117
  role: "tabpanel",
116
118
  tabindex: "0"
117
- }, p(e(x)) + " " + p(e(k)), 9, ee))
119
+ }, p(e(k)) + " " + p(e(E)), 9, ee))
118
120
  ];
119
121
  }),
120
122
  _: 1
@@ -122,7 +124,7 @@ const Z = { key: 0 }, $ = ["id"], X = {
122
124
  ]),
123
125
  _: 1
124
126
  }, 8, ["selectedIndex"])
125
- ])) : b("", !0);
127
+ ])) : _("", !0);
126
128
  }
127
129
  });
128
130
  export {
@@ -1 +1 @@
1
- {"version":3,"file":"OperationsListItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/OperationsListItem.vue"],"names":[],"mappings":"AAyHA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;AACjE,OAAO,KAAK,EAEV,oBAAoB,EAErB,MAAM,sBAAsB,CAAA;AAU7B,KAAK,WAAW,GAAG;IACjB,oBAAoB,EAAE,oBAAoB,CAAA;IAC1C,UAAU,EAAE,UAAU,CAAA;IACtB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;AAmJF,wBAOG"}
1
+ {"version":3,"file":"OperationsListItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/OperationsListItem.vue"],"names":[],"mappings":"AAyHA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;AAEjE,OAAO,KAAK,EAEV,oBAAoB,EAErB,MAAM,sBAAsB,CAAA;AAS7B,KAAK,WAAW,GAAG;IACjB,oBAAoB,EAAE,oBAAoB,CAAA;IAC1C,UAAU,EAAE,UAAU,CAAA;IACtB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;AAmJF,wBAOG"}
@@ -1,7 +1,7 @@
1
1
  import t from "./OperationsListItem.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-fd24f64e"]]);
4
+ const s = /* @__PURE__ */ o(t, [["__scopeId", "data-v-782723fb"]]);
5
5
  export {
6
- m as default
6
+ s as default
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as f, computed as c, createElementBlock as h, openBlock as r, createBlock as i, createCommentVNode as s, createElementVNode as n, unref as t, withCtx as u, createTextVNode as O, toDisplayString as l, withModifiers as y, createVNode as k, normalizeStyle as C, normalizeClass as V } from "vue";
2
2
  import { getHttpMethodInfo as b } from "@scalar/helpers/http/http-info";
3
3
  import { ScalarIconWebhooksLogo as g } from "@scalar/icons";
4
- import { isOperationDeprecated as v } from "../../../libs/openapi.js";
4
+ import { isOperationDeprecated as v } from "@scalar/oas-utils/helpers";
5
5
  import { useSidebar as w } from "../../../features/sidebar/hooks/useSidebar.js";
6
6
  import S from "../../Section/SectionHeaderTag.vue.js";
7
7
  import B from "../../HttpMethod/HttpMethod.vue.js";
@@ -1,11 +1,13 @@
1
1
  import type { Collection, Request, Server } from '@scalar/oas-utils/entities/spec';
2
- import type { OpenAPIV3_1 } from '@scalar/types/legacy';
2
+ import type { OpenAPIV3_1, XScalarStability } from '@scalar/types/legacy';
3
3
  import type { Schemas } from '../../../features/Operation/types/schemas';
4
4
  type __VLS_Props = {
5
5
  id: string;
6
6
  path: string;
7
7
  method: OpenAPIV3_1.HttpMethods;
8
- operation: OpenAPIV3_1.OperationObject;
8
+ operation: OpenAPIV3_1.OperationObject<{
9
+ 'x-scalar-stability': XScalarStability;
10
+ }>;
9
11
  isWebhook: boolean;
10
12
  /**
11
13
  * @deprecated Use `document` instead
@@ -1 +1 @@
1
- {"version":3,"file":"ClassicLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ClassicLayout.vue"],"names":[],"mappings":"AAqXA,OAAO,KAAK,EACV,UAAU,EACV,OAAO,EACP,MAAM,EACP,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAWvD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AAcjE,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;;;;;;AA2VF,wBAQG"}
1
+ {"version":3,"file":"ClassicLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ClassicLayout.vue"],"names":[],"mappings":"AAuXA,OAAO,KAAK,EACV,UAAU,EACV,OAAO,EACP,MAAM,EACP,MAAM,iCAAiC,CAAA;AAMxC,OAAO,KAAK,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAWzE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AASjE,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,CAAC;QACrC,oBAAoB,EAAE,gBAAgB,CAAA;KACvC,CAAC,CAAA;IACF,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;;;;;;AA2VF,wBAQG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./ClassicLayout.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-3bc6e3e0"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-6d48a0e7"]]);
5
5
  export {
6
- c as default
6
+ m as default
7
7
  };
@@ -1,10 +1,10 @@
1
1
  import { defineComponent as B, computed as S, createBlock as n, openBlock as p, unref as o, createSlots as V, withCtx as a, createElementVNode as s, createVNode as t, createCommentVNode as d, withModifiers as w, toDisplayString as u, normalizeClass as T, createTextVNode as f } from "vue";
2
2
  import { ScalarIcon as I, ScalarIconButton as R, ScalarMarkdown as N } from "@scalar/components";
3
3
  import { ScalarIconWebhooksLogo as O } from "@scalar/icons";
4
- import { useClipboard as P } from "@scalar/use-hooks/useClipboard";
5
- import W from "../../../components/OperationPath.vue.js";
6
- import { useConfig as $ } from "../../../hooks/useConfig.js";
7
- import { isOperationDeprecated as z, getOperationStability as y, getOperationStabilityColor as A } from "../../../libs/openapi.js";
4
+ import { isOperationDeprecated as P, getOperationStability as y, getOperationStabilityColor as W } from "@scalar/oas-utils/helpers";
5
+ import { useClipboard as $ } from "@scalar/use-hooks/useClipboard";
6
+ import z from "../../../components/OperationPath.vue.js";
7
+ import { useConfig as A } from "../../../hooks/useConfig.js";
8
8
  import D from "../components/OperationParameters.vue.js";
9
9
  import E from "../components/OperationResponses.vue.js";
10
10
  import L from "../../../components/Section/SectionAccordion.vue.js";
@@ -32,7 +32,7 @@ const G = { class: "operation-title" }, H = { class: "operation-details" }, J =
32
32
  const g = S(() => {
33
33
  var e;
34
34
  return ((e = m.operation) == null ? void 0 : e.summary) || m.path || "";
35
- }), { copyToClipboard: k } = P(), C = $(), q = b, c = (e) => {
35
+ }), { copyToClipboard: k } = $(), C = A(), q = b, c = (e) => {
36
36
  q("update:modelValue", e);
37
37
  };
38
38
  return (e, l) => {
@@ -57,15 +57,15 @@ const G = { class: "operation-title" }, H = { class: "operation-details" }, J =
57
57
  default: a(() => [
58
58
  s("h3", J, [
59
59
  s("div", K, [
60
- t(W, {
61
- deprecated: o(z)(e.operation),
60
+ t(z, {
61
+ deprecated: o(P)(e.operation),
62
62
  path: e.path
63
63
  }, null, 8, ["deprecated", "path"])
64
64
  ]),
65
65
  s("div", Q, u(g.value), 1),
66
66
  o(y)(e.operation) ? (p(), n(o(v), {
67
67
  key: 0,
68
- class: T(o(A)(e.operation))
68
+ class: T(o(W)(e.operation))
69
69
  }, {
70
70
  default: a(() => [
71
71
  f(u(o(y)(e.operation)), 1)
@@ -1,11 +1,13 @@
1
1
  import type { Collection, Request, Server } from '@scalar/oas-utils/entities/spec';
2
- import type { OpenAPIV3_1 } from '@scalar/types/legacy';
2
+ import type { OpenAPIV3_1, XScalarStability } from '@scalar/types/legacy';
3
3
  import type { Schemas } from '../types/schemas';
4
4
  type __VLS_Props = {
5
5
  id: string;
6
6
  path: string;
7
7
  method: OpenAPIV3_1.HttpMethods;
8
- operation: OpenAPIV3_1.OperationObject;
8
+ operation: OpenAPIV3_1.OperationObject<{
9
+ 'x-scalar-stability': XScalarStability;
10
+ }>;
9
11
  isWebhook: boolean;
10
12
  /**
11
13
  * @deprecated Use `document` instead
@@ -1 +1 @@
1
- {"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ModernLayout.vue"],"names":[],"mappings":"AAuLA,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;;;;;;AA6TF,wBAQG"}
1
+ {"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ModernLayout.vue"],"names":[],"mappings":"AAiLA,OAAO,KAAK,EACV,UAAU,EACV,OAAO,EACP,MAAM,EACP,MAAM,iCAAiC,CAAA;AAMxC,OAAO,KAAK,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAsBzE,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,CAAC;QACrC,oBAAoB,EAAE,gBAAgB,CAAA;KACvC,CAAC,CAAA;IACF,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;;;;;;AA8TF,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-d34fa883"]]);
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-40b5a836"]]);
5
5
  export {
6
- m as default
6
+ p as default
7
7
  };
@@ -1,9 +1,9 @@
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";
1
+ import { defineComponent as I, computed as N, useId as O, createBlock as l, openBlock as s, unref as o, withCtx as t, createVNode as a, createCommentVNode as i, createElementVNode as n, normalizeClass as S, createTextVNode as m, toDisplayString as q, createSlots as W } from "vue";
2
2
  import { ScalarMarkdown as D, ScalarErrorBoundary as p } from "@scalar/components";
3
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 z } from "../../../libs/openapi.js";
4
+ import { getOperationStability as C, getOperationStabilityColor as P, isOperationDeprecated as R } from "@scalar/oas-utils/helpers";
5
+ import $ from "../../../components/OperationPath.vue.js";
6
+ import { useConfig as z } from "../../../hooks/useConfig.js";
7
7
  import A from "../components/callbacks/Callbacks.vue.js";
8
8
  import H from "../components/OperationParameters.vue.js";
9
9
  import M from "../components/OperationResponses.vue.js";
@@ -36,7 +36,7 @@ const Z = { class: "operation-details" }, _ = { class: "examples" }, ke = /* @__
36
36
  const u = N(() => {
37
37
  var e;
38
38
  return ((e = d.operation) == null ? void 0 : e.summary) || d.path || "";
39
- }), T = w, c = O(), E = R(), f = (e) => {
39
+ }), T = w, c = O(), E = z(), f = (e) => {
40
40
  T("update:modelValue", e);
41
41
  };
42
42
  return (e, h) => (s(), l(o(U), {
@@ -45,16 +45,16 @@ const Z = { class: "operation-details" }, _ = { class: "examples" }, ke = /* @__
45
45
  label: u.value,
46
46
  tabindex: "-1"
47
47
  }, {
48
- default: r(() => [
48
+ default: t(() => [
49
49
  a(o(j), {
50
50
  loading: o(E).isLoading
51
51
  }, {
52
- default: r(() => [
52
+ default: t(() => [
53
53
  o(C)(e.operation) ? (s(), l(o(B), {
54
54
  key: 0,
55
- class: S(["capitalize", o($)(e.operation)])
55
+ class: S(["capitalize", o(P)(e.operation)])
56
56
  }, {
57
- default: r(() => [
57
+ default: t(() => [
58
58
  m(q(o(C)(e.operation)), 1)
59
59
  ]),
60
60
  _: 1
@@ -63,24 +63,24 @@ const Z = { class: "operation-details" }, _ = { class: "examples" }, ke = /* @__
63
63
  key: 1,
64
64
  class: "font-code text-green flex w-fit items-center justify-center gap-1"
65
65
  }, {
66
- default: r(() => [
66
+ default: t(() => [
67
67
  a(o(L), { weight: "bold" }),
68
68
  h[0] || (h[0] = m("Webhook "))
69
69
  ]),
70
70
  _: 1
71
71
  })) : i("", !0),
72
72
  n("div", {
73
- class: S(o(z)(e.operation) ? "deprecated" : "")
73
+ class: S(o(R)(e.operation) ? "deprecated" : "")
74
74
  }, [
75
75
  a(o(F), null, {
76
- default: r(() => [
76
+ default: t(() => [
77
77
  a(o(G), { id: e.id }, {
78
- default: r(() => [
78
+ default: t(() => [
79
79
  a(o(J), {
80
80
  id: o(c),
81
81
  level: 3
82
82
  }, {
83
- default: r(() => [
83
+ default: t(() => [
84
84
  m(q(u.value), 1)
85
85
  ]),
86
86
  _: 1
@@ -93,14 +93,14 @@ const Z = { class: "operation-details" }, _ = { class: "examples" }, ke = /* @__
93
93
  })
94
94
  ], 2),
95
95
  a(o(K), null, {
96
- default: r(() => [
96
+ default: t(() => [
97
97
  a(o(V), null, {
98
- default: r(() => {
99
- var t, b, y, g;
98
+ default: t(() => {
99
+ var r, b, y, g;
100
100
  return [
101
101
  n("div", Z, [
102
102
  a(o(D), {
103
- value: (t = e.operation) == null ? void 0 : t.description,
103
+ value: (r = e.operation) == null ? void 0 : r.description,
104
104
  withImages: "",
105
105
  withAnchors: "",
106
106
  transformType: "heading",
@@ -117,7 +117,7 @@ const Z = { class: "operation-details" }, _ = { class: "examples" }, ke = /* @__
117
117
  schemas: e.schemas
118
118
  }, null, 8, ["responses", "schemas"]),
119
119
  a(o(p), null, {
120
- default: r(() => {
120
+ default: t(() => {
121
121
  var k, v;
122
122
  return [
123
123
  (k = e.operation) != null && k.callbacks ? (s(), l(A, {
@@ -136,10 +136,10 @@ const Z = { class: "operation-details" }, _ = { class: "examples" }, ke = /* @__
136
136
  _: 1
137
137
  }),
138
138
  a(o(V), null, {
139
- default: r(() => [
139
+ default: t(() => [
140
140
  n("div", _, [
141
141
  a(o(p), null, {
142
- default: r(() => [
142
+ default: t(() => [
143
143
  a(o(Q), {
144
144
  request: e.request,
145
145
  method: e.method,
@@ -150,12 +150,12 @@ const Z = { class: "operation-details" }, _ = { class: "examples" }, ke = /* @__
150
150
  schemas: e.schemas,
151
151
  "onUpdate:modelValue": f
152
152
  }, W({
153
- header: r(() => {
154
- var t;
153
+ header: t(() => {
154
+ var r;
155
155
  return [
156
- a(P, {
157
- class: "example-path",
158
- deprecated: (t = e.operation) == null ? void 0 : t.deprecated,
156
+ a($, {
157
+ class: "font-code text-c-2 [&_em]:text-c-1 [&_em]:not-italic",
158
+ deprecated: (r = e.operation) == null ? void 0 : r.deprecated,
159
159
  path: e.path
160
160
  }, null, 8, ["deprecated", "path"])
161
161
  ];
@@ -164,7 +164,7 @@ const Z = { class: "operation-details" }, _ = { class: "examples" }, ke = /* @__
164
164
  }, [
165
165
  e.request ? {
166
166
  name: "footer",
167
- fn: r(() => [
167
+ fn: t(() => [
168
168
  a(o(X), { operation: e.request }, null, 8, ["operation"])
169
169
  ]),
170
170
  key: "0"
@@ -174,11 +174,11 @@ const Z = { class: "operation-details" }, _ = { class: "examples" }, ke = /* @__
174
174
  _: 1
175
175
  }),
176
176
  a(o(p), null, {
177
- default: r(() => {
178
- var t;
177
+ default: t(() => {
178
+ var r;
179
179
  return [
180
180
  a(o(Y), {
181
- responses: (t = e.operation) == null ? void 0 : t.responses,
181
+ responses: (r = e.operation) == null ? void 0 : r.responses,
182
182
  style: { "margin-top": "12px" }
183
183
  }, null, 8, ["responses"])
184
184
  ];