@scalar/api-reference 1.32.8 → 1.32.9

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 (77) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/blocks/constants.js +6 -0
  3. package/dist/blocks/helpers/getPointer.js +12 -0
  4. package/dist/blocks/hooks/useBlockProps.d.ts +31 -0
  5. package/dist/blocks/hooks/useBlockProps.d.ts.map +1 -0
  6. package/dist/blocks/hooks/useBlockProps.js +24 -0
  7. package/dist/browser/standalone.js +14550 -14647
  8. package/dist/browser/webpack-stats.json +1 -1
  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 +176 -164
  12. package/dist/components/Content/Content.vue.js +2 -2
  13. package/dist/components/Content/Content.vue2.js +5 -5
  14. package/dist/features/Operation/Operation.vue.d.ts +6 -6
  15. package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
  16. package/dist/features/Operation/Operation.vue.js +49 -50
  17. package/dist/features/Operation/components/callbacks/Callback.vue.d.ts +6 -8
  18. package/dist/features/Operation/components/callbacks/Callback.vue.d.ts.map +1 -1
  19. package/dist/features/Operation/components/callbacks/Callback.vue.js +3 -3
  20. package/dist/features/Operation/components/callbacks/Callback.vue2.js +28 -21
  21. package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts +3 -5
  22. package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts.map +1 -1
  23. package/dist/features/Operation/components/callbacks/Callbacks.vue.js +18 -33
  24. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +12 -11
  25. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
  26. package/dist/features/Operation/layouts/ClassicLayout.vue.js +2 -2
  27. package/dist/features/Operation/layouts/ClassicLayout.vue2.js +162 -164
  28. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +13 -12
  29. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
  30. package/dist/features/Operation/layouts/ModernLayout.vue.js +1 -1
  31. package/dist/features/Operation/layouts/ModernLayout.vue2.js +117 -111
  32. package/dist/features/api-client-modal/useApiClient.d.ts +5795 -5795
  33. package/dist/features/api-client-modal/useApiClient.d.ts.map +1 -1
  34. package/dist/features/example-request/ExamplePicker.vue.d.ts +13 -0
  35. package/dist/features/example-request/ExamplePicker.vue.d.ts.map +1 -0
  36. package/dist/features/example-request/ExamplePicker.vue.js +7 -0
  37. package/dist/features/example-request/ExamplePicker.vue2.js +57 -0
  38. package/dist/features/example-request/ExampleRequest.vue.d.ts +85 -0
  39. package/dist/features/example-request/ExampleRequest.vue.d.ts.map +1 -0
  40. package/dist/features/example-request/ExampleRequest.vue.js +7 -0
  41. package/dist/features/example-request/ExampleRequest.vue2.js +348 -0
  42. package/dist/features/example-request/TextSelect.vue.d.ts +34 -0
  43. package/dist/features/example-request/TextSelect.vue.d.ts.map +1 -0
  44. package/dist/features/example-request/TextSelect.vue.js +48 -0
  45. package/dist/features/example-request/TextSelect.vue3.js +5 -0
  46. package/dist/features/example-request/index.d.ts +3 -0
  47. package/dist/features/example-request/index.d.ts.map +1 -0
  48. package/dist/features/example-responses/ExampleResponses.vue.d.ts.map +1 -1
  49. package/dist/features/example-responses/ExampleResponses.vue.js +1 -1
  50. package/dist/features/example-responses/ExampleResponses.vue2.js +50 -51
  51. package/dist/features/test-request-button/TestRequestButton.vue.d.ts +2 -3
  52. package/dist/features/test-request-button/TestRequestButton.vue.d.ts.map +1 -1
  53. package/dist/features/test-request-button/TestRequestButton.vue.js +2 -2
  54. package/dist/features/test-request-button/TestRequestButton.vue2.js +19 -21
  55. package/dist/index.d.ts +1 -0
  56. package/dist/index.d.ts.map +1 -1
  57. package/dist/index.js +15 -13
  58. package/dist/style.css +1 -1
  59. package/dist/v2/ApiReferenceWorkspace.vue.d.ts +1 -3
  60. package/dist/v2/ApiReferenceWorkspace.vue.d.ts.map +1 -1
  61. package/dist/v2/ApiReferenceWorkspace.vue.js +86 -113
  62. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.d.ts.map +1 -1
  63. package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.js +3 -20
  64. package/dist/v2/blocks/scalar-request-example-block/index.d.ts +2 -2
  65. package/dist/v2/events/index.d.ts +1 -1
  66. package/dist/v2/events/listeners.d.ts +1 -1
  67. package/package.json +10 -10
  68. package/dist/helpers/convert-security-scheme.js +0 -23
  69. package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.js +0 -4
  70. package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue2.js +0 -64
  71. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.js +0 -7
  72. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue2.js +0 -212
  73. package/dist/v2/blocks/scalar-request-example-block/helpers/generate-client-options.js +0 -35
  74. package/dist/v2/blocks/scalar-request-example-block/helpers/generate-code-snippet.js +0 -29
  75. package/dist/v2/blocks/scalar-request-example-block/helpers/get-secrets.js +0 -10
  76. package/dist/v2/events/definitions.js +0 -7
  77. package/dist/v2/hooks/useStore.js +0 -14
@@ -1 +1 @@
1
- {"version":3,"file":"ApiReferenceLayout.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReferenceLayout.vue"],"names":[],"mappings":"AA+sBA,OAAO,EAGL,KAAK,OAAO,EACb,MAAM,gBAAgB,CAAA;AAiCvB,OAAO,KAAK,EACV,oBAAoB,EAEpB,kBAAkB,EACnB,MAAM,SAAS,CAAA;AAoRhB,iBAAS,cAAc;WAoYT,OAAO,IAA6B;;wBApmBV,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;;6BACrC,GAAG;;wBADQ,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;;6BACrC,GAAG;;;;;;EAwmB/B;AAiCD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;YAjrBqB,OAAO;eAAS,MAAM;;;;;;;;YAAtB,OAAO;eAAS,MAAM;;;;;;kFAwrB9D,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"ApiReferenceLayout.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReferenceLayout.vue"],"names":[],"mappings":"AAwuBA,OAAO,EAGL,KAAK,OAAO,EACb,MAAM,gBAAgB,CAAA;AAqCvB,OAAO,KAAK,EACV,oBAAoB,EAEpB,kBAAkB,EACnB,MAAM,SAAS,CAAA;AAyShB,iBAAS,cAAc;WAoYT,OAAO,IAA6B;;wBAznBV,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;;6BACrC,GAAG;;wBADQ,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;;6BACrC,GAAG;;;;;;EA6nB/B;AAiCD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;YAtsBqB,OAAO;eAAS,MAAM;;;;;;;;YAAtB,OAAO;eAAS,MAAM;;;;;;kFA6sB9D,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"}
@@ -4,7 +4,7 @@ import o from "./ApiReferenceLayout.vue2.js";
4
4
  /* empty css */
5
5
  /* empty css */
6
6
  import t from "../_virtual/_plugin-vue_export-helper.js";
7
- const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-b90254d8"]]);
7
+ const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-125cbb58"]]);
8
8
  export {
9
- f as default
9
+ c as default
10
10
  };
@@ -1,42 +1,43 @@
1
- import { defineComponent as fe, computed as T, provide as S, ref as D, onBeforeMount as ve, onMounted as Y, watch as O, toValue as K, onUnmounted as pe, useId as ge, createElementBlock as f, openBlock as a, Fragment as z, createElementVNode as p, createVNode as v, normalizeStyle as he, normalizeClass as Se, unref as r, createCommentVNode as l, withDirectives as be, createBlock as b, renderSlot as d, normalizeProps as g, guardReactiveProps as h, withCtx as n, vShow as ye, createSlots as we } from "vue";
2
- import { provideUseId as ke } from "@headlessui/vue";
3
- import { OpenApiClientButton as $e } from "@scalar/api-client/components";
4
- import { LAYOUT_SYMBOL as Me } from "@scalar/api-client/hooks";
5
- import { WORKSPACE_SYMBOL as Te, ACTIVE_ENTITIES_SYMBOL as De } from "@scalar/api-client/store";
6
- import { addScalarClassesToHeadless as Ce, ScalarErrorBoundary as Ee, ScalarSidebarFooter as Oe, ScalarColorModeToggleButton as Ie, ScalarColorModeToggleIcon as Be } from "@scalar/components";
7
- import { sleep as Re } from "@scalar/helpers/testing/sleep";
8
- import { hasObtrusiveScrollbars as Le, getThemeStyles as _e } from "@scalar/themes";
9
- import { apiReferenceConfigurationSchema as Ae } from "@scalar/types/api-reference";
10
- import { useBreakpoints as Pe } from "@scalar/use-hooks/useBreakpoints";
11
- import { useToasts as He, ScalarToasts as Fe } from "@scalar/use-toasts";
12
- import { useMediaQuery as Ne, useResizeObserver as Ve, useDebounceFn as Ue } from "@vueuse/core";
13
- import Ye from "./ClassicHeader.vue.js";
14
- import Ke from "./GettingStarted.vue.js";
15
- import ze from "./MobileHeader.vue.js";
16
- import { parse as Ge } from "../helpers/parse.js";
17
- import { CONFIGURATION_SYMBOL as Qe } from "../hooks/useConfig.js";
18
- import { useNavState as We } from "../hooks/useNavState.js";
19
- import { downloadEventBus as G, downloadDocument as je } from "../libs/download.js";
20
- import { createEmptySpecification as qe } from "../libs/openapi.js";
21
- import { useDocumentSource as Je } from "../features/document-source/hooks/useDocumentSource.js";
22
- import { OPENAPI_VERSION_SYMBOL as Xe } from "../features/download-link/openapi-version-symbol.js";
23
- import { useSidebar as Ze } from "../features/sidebar/hooks/useSidebar.js";
24
- import { PLUGIN_MANAGER_SYMBOL as xe } from "../plugins/hooks/usePluginManager.js";
25
- import { createPluginManager as et } from "../plugins/plugin-manager.js";
26
- import tt from "../features/sidebar/components/Sidebar.vue.js";
27
- import Q from "../features/Search/SearchButton.vue.js";
28
- import ot from "./Content/Content.vue.js";
29
- import rt from "../features/api-client-modal/ApiClientModal.vue.js";
30
- const at = ["innerHTML"], st = { class: "references-header" }, lt = ["aria-label"], nt = { class: "references-navigation-list" }, it = { key: 0 }, dt = {
1
+ import { defineComponent as ge, computed as M, provide as S, ref as T, onBeforeMount as he, onMounted as K, watch as D, toValue as z, onUnmounted as Se, useId as be, createElementBlock as f, openBlock as n, Fragment as G, createElementVNode as p, createVNode as v, normalizeStyle as ye, normalizeClass as we, unref as r, createCommentVNode as i, withDirectives as ke, createBlock as b, renderSlot as d, normalizeProps as g, guardReactiveProps as h, withCtx as l, vShow as Ce, createSlots as $e } from "vue";
2
+ import { provideUseId as Me } from "@headlessui/vue";
3
+ import { OpenApiClientButton as Te } from "@scalar/api-client/components";
4
+ import { LAYOUT_SYMBOL as De } from "@scalar/api-client/hooks";
5
+ import { WORKSPACE_SYMBOL as Ee, ACTIVE_ENTITIES_SYMBOL as Oe } from "@scalar/api-client/store";
6
+ import { addScalarClassesToHeadless as Ie, ScalarErrorBoundary as Be, ScalarSidebarFooter as Re, ScalarColorModeToggleButton as Le, ScalarColorModeToggleIcon as He } from "@scalar/components";
7
+ import { sleep as _e } from "@scalar/helpers/testing/sleep";
8
+ import { hasObtrusiveScrollbars as Ae, getThemeStyles as Pe } from "@scalar/themes";
9
+ import { apiReferenceConfigurationSchema as Fe } from "@scalar/types/api-reference";
10
+ import { useBreakpoints as Ne } from "@scalar/use-hooks/useBreakpoints";
11
+ import { useToasts as Ve, ScalarToasts as Ue } from "@scalar/use-toasts";
12
+ import { useMediaQuery as Ye, useResizeObserver as Ke, useDebounceFn as ze } from "@vueuse/core";
13
+ import Ge from "./ClassicHeader.vue.js";
14
+ import Qe from "./GettingStarted.vue.js";
15
+ import We from "./MobileHeader.vue.js";
16
+ import { parse as je } from "../helpers/parse.js";
17
+ import { CONFIGURATION_SYMBOL as qe } from "../hooks/useConfig.js";
18
+ import { useNavState as Je } from "../hooks/useNavState.js";
19
+ import { downloadEventBus as Q, downloadDocument as Xe } from "../libs/download.js";
20
+ import { createEmptySpecification as Ze } from "../libs/openapi.js";
21
+ import { useHttpClientStore as xe } from "../stores/useHttpClientStore.js";
22
+ import { useDocumentSource as et } from "../features/document-source/hooks/useDocumentSource.js";
23
+ import { OPENAPI_VERSION_SYMBOL as tt } from "../features/download-link/openapi-version-symbol.js";
24
+ import { useSidebar as ot } from "../features/sidebar/hooks/useSidebar.js";
25
+ import { PLUGIN_MANAGER_SYMBOL as rt } from "../plugins/hooks/usePluginManager.js";
26
+ import { createPluginManager as at } from "../plugins/plugin-manager.js";
27
+ import nt from "../features/sidebar/components/Sidebar.vue.js";
28
+ import W from "../features/Search/SearchButton.vue.js";
29
+ import it from "./Content/Content.vue.js";
30
+ import lt from "../features/api-client-modal/ApiClientModal.vue.js";
31
+ const st = ["innerHTML"], dt = { class: "references-header" }, ut = ["aria-label"], ct = { class: "references-navigation-list" }, mt = { key: 0 }, ft = {
31
32
  key: 1,
32
33
  class: "scalar-api-references-standalone-search"
33
- }, ut = { key: 1 }, ct = { class: "references-editor" }, mt = { class: "references-editor-textarea" }, ft = ["aria-label"], vt = {
34
+ }, vt = { key: 1 }, pt = { class: "references-editor" }, gt = { class: "references-editor-textarea" }, ht = ["aria-label"], St = {
34
35
  key: 0,
35
36
  class: "w-64 *:!p-0 empty:hidden"
36
- }, pt = {
37
+ }, bt = {
37
38
  key: 0,
38
39
  class: "references-footer"
39
- }, Gt = /* @__PURE__ */ fe({
40
+ }, Jt = /* @__PURE__ */ ge({
40
41
  inheritAttrs: !1,
41
42
  __name: "ApiReferenceLayout",
42
43
  props: {
@@ -48,39 +49,39 @@ const at = ["innerHTML"], st = { class: "references-header" }, lt = ["aria-label
48
49
  rawSpec: {}
49
50
  },
50
51
  emits: ["changeTheme", "updateContent", "loadSwaggerFile", "linkSwaggerFile", "toggleDarkMode"],
51
- setup(C) {
52
- const t = T(
53
- () => Ae.parse(C.configuration)
54
- ), { initializeToasts: W, toast: j } = He();
55
- W((e) => j(e));
52
+ setup(E) {
53
+ const t = M(
54
+ () => Fe.parse(E.configuration)
55
+ ), { initializeToasts: j, toast: q } = Ve();
56
+ j((e) => q(e));
56
57
  const {
57
- originalDocument: q,
58
- originalOpenApiVersion: J,
58
+ originalDocument: J,
59
+ originalOpenApiVersion: X,
59
60
  dereferencedDocument: u,
60
- workspaceStore: X,
61
- activeEntitiesStore: Z
62
- } = Je({
61
+ workspaceStore: Z,
62
+ activeEntitiesStore: x
63
+ } = et({
63
64
  configuration: t,
64
- dereferencedDocument: C.dereferencedDocument,
65
- originalDocument: C.originalDocument
65
+ dereferencedDocument: E.dereferencedDocument,
66
+ originalDocument: E.originalDocument
66
67
  });
67
- S(Xe, J), S(Te, X), S(De, Z);
68
- const x = Ne("(min-width: 1150px)"), ee = D("100dvh"), y = D(null);
69
- Ve(y, (e) => {
70
- ee.value = e[0].contentRect.height + "px";
68
+ S(tt, X), S(Ee, Z), S(Oe, x);
69
+ const ee = Ye("(min-width: 1150px)"), te = T("100dvh"), y = T(null);
70
+ Ke(y, (e) => {
71
+ te.value = e[0].contentRect.height + "px";
71
72
  });
72
- const te = T(Le), R = We(t), { isSidebarOpen: I, setCollapsedSidebarItem: L, scrollToOperation: oe, items: _ } = Ze(u, {
73
+ const oe = M(Ae), R = Je(t), { isSidebarOpen: I, setCollapsedSidebarItem: L, scrollToOperation: re, items: H } = ot(u, {
73
74
  ...R,
74
75
  config: t
75
76
  }), {
76
- getReferenceId: re,
77
- getPathRoutingId: ae,
78
- getSectionId: se,
77
+ getReferenceId: ae,
78
+ getPathRoutingId: ne,
79
+ getSectionId: ie,
79
80
  getTagId: le,
80
- hash: E,
81
- isIntersectionEnabled: A,
82
- updateHash: P,
83
- replaceUrlState: ne
81
+ hash: O,
82
+ isIntersectionEnabled: _,
83
+ updateHash: A,
84
+ replaceUrlState: se
84
85
  } = R;
85
86
  if (t.value.redirect && typeof window < "u") {
86
87
  const e = t.value.redirect(
@@ -88,96 +89,107 @@ const at = ["innerHTML"], st = { class: "references-header" }, lt = ["aria-label
88
89
  );
89
90
  e && history.replaceState({}, "", e);
90
91
  }
91
- ve(() => {
92
- P(), Ce();
92
+ he(() => {
93
+ A(), Ie();
93
94
  });
94
- const H = async (e) => {
95
+ const P = async (e) => {
95
96
  var o;
96
- A.value = !1, P(), e ? oe(e) : (o = y.value) == null || o.scrollTo(0, 0), await Re(100), A.value = !0;
97
- }, F = D(0);
98
- Y(() => {
99
- var s, k, $;
97
+ _.value = !1, A(), e ? re(e) : (o = y.value) == null || o.scrollTo(0, 0), await _e(100), _.value = !0;
98
+ }, F = T(0);
99
+ K(() => {
100
+ var a, k, C;
100
101
  history.scrollRestoration = "manual";
101
- const e = (k = (s = y.value) == null ? void 0 : s.parentElement) == null ? void 0 : k.getBoundingClientRect(), o = ($ = y.value) == null ? void 0 : $.getBoundingClientRect();
102
+ const e = (k = (a = y.value) == null ? void 0 : a.parentElement) == null ? void 0 : k.getBoundingClientRect(), o = (C = y.value) == null ? void 0 : C.getBoundingClientRect();
102
103
  if (e && o) {
103
- const M = o.top - e.top;
104
- F.value = M < 2 ? 0 : M;
104
+ const $ = o.top - e.top;
105
+ F.value = $ < 2 ? 0 : $;
105
106
  }
106
107
  window.onhashchange = () => {
107
- H(re());
108
- }, window.onpopstate = () => t.value.pathRouting && H(ae(window.location.pathname)), window.addEventListener("scroll", N, { passive: !0 });
108
+ P(ae());
109
+ }, window.onpopstate = () => t.value.pathRouting && P(ne(window.location.pathname)), window.addEventListener("scroll", N, { passive: !0 });
109
110
  });
110
- const ie = T(
111
- () => x.value || !t.value.isEditable
112
- ), N = Ue(() => {
113
- window.scrollY < 50 && ne("");
114
- }), de = D(!1);
115
- O(u, (e) => {
111
+ const de = M(
112
+ () => ee.value || !t.value.isEditable
113
+ ), N = ze(() => {
114
+ window.scrollY < 50 && se("");
115
+ }), ue = T(!1);
116
+ D(u, (e) => {
116
117
  var o;
117
- if (E.value) {
118
- const s = se(E.value);
119
- s && L(s, !0);
118
+ if (O.value) {
119
+ const a = ie(O.value);
120
+ a && L(a, !0);
120
121
  } else {
121
- const s = (o = e.tags) == null ? void 0 : o[0];
122
- s && L(le(s), !0);
122
+ const a = (o = e.tags) == null ? void 0 : o[0];
123
+ a && L(le(a), !0);
123
124
  }
124
- de.value = !0;
125
+ ue.value = !0;
125
126
  });
126
- const w = D(qe());
127
- O(
127
+ const w = T(Ze());
128
+ D(
128
129
  u,
129
130
  async (e) => {
130
131
  if (!e)
131
132
  return;
132
- const o = await Ge(e, _.value.entries);
133
+ const o = await je(e, H.value.entries);
133
134
  w.value = o;
134
135
  },
135
136
  { immediate: !0 }
136
137
  );
137
- const c = T(() => {
138
+ const c = M(() => {
138
139
  var e;
139
140
  return {
140
141
  spec: w.value,
141
- breadcrumb: ((e = _.value) == null ? void 0 : e.titles.get(E.value)) ?? ""
142
+ breadcrumb: ((e = H.value) == null ? void 0 : e.titles.get(O.value)) ?? ""
142
143
  };
143
144
  });
144
- Y(
145
- () => G.on(({ filename: e, format: o }) => {
146
- je(
147
- K(q) || K(C.rawSpec) || "",
145
+ K(
146
+ () => Q.on(({ filename: e, format: o }) => {
147
+ Xe(
148
+ z(J) || z(E.rawSpec) || "",
148
149
  e,
149
150
  o
150
151
  );
151
152
  })
152
- ), pe(() => {
153
- window.removeEventListener("scroll", N), G.reset();
154
- }), ke(() => ge()), S(Me, "modal"), S(Qe, t), S(
155
- xe,
156
- et({
153
+ ), Se(() => {
154
+ window.removeEventListener("scroll", N), Q.reset();
155
+ }), Me(() => be()), S(De, "modal"), S(qe, t), S(
156
+ rt,
157
+ at({
157
158
  plugins: t.value.plugins
158
159
  })
159
160
  );
160
- const ue = T(
161
+ function V(e, o) {
162
+ D(
163
+ () => t.value[e],
164
+ (a) => {
165
+ typeof a < "u" && o(a);
166
+ },
167
+ { immediate: !0 }
168
+ );
169
+ }
170
+ const { setExcludedClients: ce, setDefaultHttpClient: me } = xe();
171
+ V("defaultHttpClient", me), V("hiddenClients", ce);
172
+ const fe = M(
161
173
  () => `<style>
162
- ${_e(t.value.theme, {
174
+ ${Pe(t.value.theme, {
163
175
  fonts: t.value.withDefaultFonts
164
176
  })}</style>`
165
- ), { mediaQueries: ce } = Pe(), me = !1;
166
- return O(ce.lg, (e, o) => {
177
+ ), { mediaQueries: ve } = Ne(), pe = !1;
178
+ return D(ve.lg, (e, o) => {
167
179
  o && !e && (I.value = !1);
168
- }), O(E, (e, o) => {
180
+ }), D(O, (e, o) => {
169
181
  e && e !== o && (I.value = !1);
170
182
  }), (e, o) => {
171
- var s, k, $, M, V;
172
- return a(), f(z, null, [
173
- p("div", { innerHTML: ue.value }, null, 8, at),
183
+ var a, k, C, $, U;
184
+ return n(), f(G, null, [
185
+ p("div", { innerHTML: fe.value }, null, 8, st),
174
186
  p("div", {
175
187
  ref_key: "documentEl",
176
188
  ref: y,
177
- class: Se(["scalar-app scalar-api-reference references-layout", [
189
+ class: we(["scalar-app scalar-api-reference references-layout", [
178
190
  {
179
191
  "scalar-api-references-standalone-mobile": t.value.showSidebar ?? !0,
180
- "scalar-scrollbars-obtrusive": te.value,
192
+ "scalar-scrollbars-obtrusive": oe.value,
181
193
  "references-editable": t.value.isEditable,
182
194
  "references-sidebar": t.value.showSidebar,
183
195
  "references-sidebar-mobile-open": r(I),
@@ -185,62 +197,62 @@ const at = ["innerHTML"], st = { class: "references-header" }, lt = ["aria-label
185
197
  },
186
198
  e.$attrs.class
187
199
  ]]),
188
- style: he({
200
+ style: ye({
189
201
  "--scalar-y-offset": `var(--scalar-custom-header-height, ${F.value}px)`
190
202
  })
191
203
  }, [
192
- p("div", st, [
193
- t.value.layout === "modern" && (t.value.showSidebar ?? !0) ? (a(), b(ze, {
204
+ p("div", dt, [
205
+ t.value.layout === "modern" && (t.value.showSidebar ?? !0) ? (n(), b(We, {
194
206
  key: 0,
195
207
  breadcrumb: c.value.breadcrumb
196
- }, null, 8, ["breadcrumb"])) : l("", !0),
208
+ }, null, 8, ["breadcrumb"])) : i("", !0),
197
209
  d(e.$slots, "header", g(h(c.value)), void 0, !0)
198
210
  ]),
199
- t.value.showSidebar ? (a(), f("aside", {
211
+ t.value.showSidebar ? (n(), f("aside", {
200
212
  key: 0,
201
- "aria-label": `Sidebar for ${(k = (s = r(u)) == null ? void 0 : s.info) == null ? void 0 : k.title}`,
213
+ "aria-label": `Sidebar for ${(k = (a = r(u)) == null ? void 0 : a.info) == null ? void 0 : k.title}`,
202
214
  class: "references-navigation t-doc__sidebar"
203
215
  }, [
204
- p("div", nt, [
205
- v(r(Ee), null, {
206
- default: n(() => {
207
- var i, m;
216
+ p("div", ct, [
217
+ v(r(Be), null, {
218
+ default: l(() => {
219
+ var s, m;
208
220
  return [
209
- v(r(tt), {
210
- title: ((m = (i = r(u)) == null ? void 0 : i.info) == null ? void 0 : m.title) ?? "The OpenAPI Schema"
221
+ v(r(nt), {
222
+ title: ((m = (s = r(u)) == null ? void 0 : s.info) == null ? void 0 : m.title) ?? "The OpenAPI Schema"
211
223
  }, {
212
- "sidebar-start": n(() => {
213
- var B, U;
224
+ "sidebar-start": l(() => {
225
+ var B, Y;
214
226
  return [
215
- e.$slots["document-selector"] ? (a(), f("div", it, [
227
+ e.$slots["document-selector"] ? (n(), f("div", mt, [
216
228
  d(e.$slots, "document-selector", {}, void 0, !0)
217
- ])) : l("", !0),
218
- t.value.hideSearch ? l("", !0) : (a(), f("div", dt, [
219
- v(r(Q), {
229
+ ])) : i("", !0),
230
+ t.value.hideSearch ? i("", !0) : (n(), f("div", ft, [
231
+ v(r(W), {
220
232
  searchHotKey: (B = t.value) == null ? void 0 : B.searchHotKey,
221
- hideModels: (U = t.value) == null ? void 0 : U.hideModels,
233
+ hideModels: (Y = t.value) == null ? void 0 : Y.hideModels,
222
234
  spec: w.value
223
235
  }, null, 8, ["searchHotKey", "hideModels", "spec"])
224
236
  ])),
225
237
  d(e.$slots, "sidebar-start", g(h(c.value)), void 0, !0)
226
238
  ];
227
239
  }),
228
- "sidebar-end": n(() => [
240
+ "sidebar-end": l(() => [
229
241
  d(e.$slots, "sidebar-end", g(h(c.value)), () => [
230
- v(r(Oe), { class: "darklight-reference" }, {
231
- toggle: n(() => [
232
- t.value.hideDarkModeToggle ? (a(), f("span", ut)) : (a(), b(r(Ie), {
242
+ v(r(Re), { class: "darklight-reference" }, {
243
+ toggle: l(() => [
244
+ t.value.hideDarkModeToggle ? (n(), f("span", vt)) : (n(), b(r(Le), {
233
245
  key: 0,
234
246
  modelValue: e.isDark,
235
247
  "onUpdate:modelValue": o[0] || (o[0] = (B) => e.$emit("toggleDarkMode"))
236
248
  }, null, 8, ["modelValue"]))
237
249
  ]),
238
- default: n(() => [
239
- t.value.hideClientButton ? l("", !0) : (a(), b(r($e), {
250
+ default: l(() => [
251
+ t.value.hideClientButton ? i("", !0) : (n(), b(r(Te), {
240
252
  key: 0,
241
253
  buttonSource: "sidebar",
242
254
  integration: t.value._integration,
243
- isDevelopment: me,
255
+ isDevelopment: pe,
244
256
  url: t.value.url
245
257
  }, null, 8, ["integration", "url"]))
246
258
  ]),
@@ -255,68 +267,68 @@ const at = ["innerHTML"], st = { class: "references-header" }, lt = ["aria-label
255
267
  _: 3
256
268
  })
257
269
  ])
258
- ], 8, lt)) : l("", !0),
259
- be(p("div", ct, [
260
- p("div", mt, [
270
+ ], 8, ut)) : i("", !0),
271
+ ke(p("div", pt, [
272
+ p("div", gt, [
261
273
  d(e.$slots, "editor", g(h(c.value)), void 0, !0)
262
274
  ])
263
275
  ], 512), [
264
- [ye, t.value.isEditable]
276
+ [Ce, t.value.isEditable]
265
277
  ]),
266
- ie.value ? (a(), f(z, { key: 1 }, [
278
+ de.value ? (n(), f(G, { key: 1 }, [
267
279
  p("main", {
268
- "aria-label": `Open API Documentation for ${(M = ($ = r(u)) == null ? void 0 : $.info) == null ? void 0 : M.title}`,
280
+ "aria-label": `Open API Documentation for ${($ = (C = r(u)) == null ? void 0 : C.info) == null ? void 0 : $.title}`,
269
281
  class: "references-rendered"
270
282
  }, [
271
- v(r(ot), {
283
+ v(r(it), {
272
284
  layout: t.value.layout,
273
285
  document: r(u),
274
286
  parsedSpec: w.value
275
- }, we({
276
- start: n(() => [
287
+ }, $e({
288
+ start: l(() => [
277
289
  d(e.$slots, "content-start", g(h(c.value)), () => [
278
- t.value.layout === "classic" ? (a(), b(Ye, { key: 0 }, {
279
- "dark-mode-toggle": n(() => [
280
- t.value.hideDarkModeToggle ? l("", !0) : (a(), b(r(Be), {
290
+ t.value.layout === "classic" ? (n(), b(Ge, { key: 0 }, {
291
+ "dark-mode-toggle": l(() => [
292
+ t.value.hideDarkModeToggle ? i("", !0) : (n(), b(r(He), {
281
293
  key: 0,
282
294
  class: "text-c-2 hover:text-c-1",
283
295
  mode: e.isDark ? "dark" : "light",
284
296
  style: { transform: "scale(1.4)" },
285
297
  variant: "icon",
286
- onClick: o[1] || (o[1] = (i) => e.$emit("toggleDarkMode"))
298
+ onClick: o[1] || (o[1] = (s) => e.$emit("toggleDarkMode"))
287
299
  }, null, 8, ["mode"]))
288
300
  ]),
289
- default: n(() => {
290
- var i;
301
+ default: l(() => {
302
+ var s;
291
303
  return [
292
- e.$slots["document-selector"] ? (a(), f("div", vt, [
304
+ e.$slots["document-selector"] ? (n(), f("div", St, [
293
305
  d(e.$slots, "document-selector", {}, void 0, !0)
294
- ])) : l("", !0),
295
- t.value.hideSearch ? l("", !0) : (a(), b(r(Q), {
306
+ ])) : i("", !0),
307
+ t.value.hideSearch ? i("", !0) : (n(), b(r(W), {
296
308
  key: 1,
297
309
  class: "t-doc__sidebar max-w-64",
298
310
  searchHotKey: t.value.searchHotKey,
299
- hideModels: (i = t.value) == null ? void 0 : i.hideModels,
311
+ hideModels: (s = t.value) == null ? void 0 : s.hideModels,
300
312
  spec: w.value
301
313
  }, null, 8, ["searchHotKey", "hideModels", "spec"]))
302
314
  ];
303
315
  }),
304
316
  _: 3
305
- })) : l("", !0)
317
+ })) : i("", !0)
306
318
  ], !0)
307
319
  ]),
308
- end: n(() => [
320
+ end: l(() => [
309
321
  d(e.$slots, "content-end", g(h(c.value)), void 0, !0)
310
322
  ]),
311
323
  _: 2
312
324
  }, [
313
- (V = t.value) != null && V.isEditable ? {
325
+ (U = t.value) != null && U.isEditable ? {
314
326
  name: "empty-state",
315
- fn: n(() => {
316
- var i;
327
+ fn: l(() => {
328
+ var s;
317
329
  return [
318
- v(Ke, {
319
- theme: ((i = t.value) == null ? void 0 : i.theme) || "default",
330
+ v(Qe, {
331
+ theme: ((s = t.value) == null ? void 0 : s.theme) || "default",
320
332
  onChangeTheme: o[2] || (o[2] = (m) => e.$emit("changeTheme", m)),
321
333
  onLinkSwaggerFile: o[3] || (o[3] = (m) => e.$emit("linkSwaggerFile")),
322
334
  onLoadSwaggerFile: o[4] || (o[4] = (m) => e.$emit("loadSwaggerFile")),
@@ -327,21 +339,21 @@ const at = ["innerHTML"], st = { class: "references-header" }, lt = ["aria-label
327
339
  key: "0"
328
340
  } : void 0
329
341
  ]), 1032, ["layout", "document", "parsedSpec"])
330
- ], 8, ft),
331
- e.$slots.footer ? (a(), f("div", pt, [
342
+ ], 8, ht),
343
+ e.$slots.footer ? (n(), f("div", bt, [
332
344
  d(e.$slots, "footer", g(h(c.value)), void 0, !0)
333
- ])) : l("", !0)
334
- ], 64)) : l("", !0),
335
- v(r(rt), {
345
+ ])) : i("", !0)
346
+ ], 64)) : i("", !0),
347
+ v(r(lt), {
336
348
  configuration: t.value,
337
349
  dereferencedDocument: r(u)
338
350
  }, null, 8, ["configuration", "dereferencedDocument"])
339
351
  ], 6),
340
- v(r(Fe))
352
+ v(r(Ue))
341
353
  ], 64);
342
354
  };
343
355
  }
344
356
  });
345
357
  export {
346
- Gt as default
358
+ Jt as default
347
359
  };
@@ -2,7 +2,7 @@ import o from "./Content.vue2.js";
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  import t from "../../_virtual/_plugin-vue_export-helper.js";
5
- const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-75c50136"]]);
5
+ const _ = /* @__PURE__ */ t(o, [["__scopeId", "data-v-ff689cb1"]]);
6
6
  export {
7
- a as default
7
+ _ as default
8
8
  };
@@ -18,7 +18,7 @@ const se = { class: "narrow-references-container" }, ae = {
18
18
  }, ce = {
19
19
  key: 1,
20
20
  class: "scalar-reference-intro-auth scalar-client introduction-card-item leading-normal"
21
- }, Ce = /* @__PURE__ */ D({
21
+ }, be = /* @__PURE__ */ D({
22
22
  __name: "Content",
23
23
  props: {
24
24
  document: {},
@@ -51,9 +51,9 @@ const se = { class: "narrow-references-container" }, ae = {
51
51
  () => j.layout === "classic" ? "after" : "aside"
52
52
  );
53
53
  return (e, k) => {
54
- var g, C, b, w, A, V, E, U, $, B, N;
54
+ var g, b, C, w, A, V, E, U, $, B, N;
55
55
  return r(), l(m, null, [
56
- k[0] || (k[0] = H('<div class="section-flare" data-v-75c50136><div class="section-flare-item" data-v-75c50136></div><div class="section-flare-item" data-v-75c50136></div><div class="section-flare-item" data-v-75c50136></div><div class="section-flare-item" data-v-75c50136></div><div class="section-flare-item" data-v-75c50136></div><div class="section-flare-item" data-v-75c50136></div><div class="section-flare-item" data-v-75c50136></div><div class="section-flare-item" data-v-75c50136></div></div>', 1)),
56
+ k[0] || (k[0] = H('<div class="section-flare" data-v-ff689cb1><div class="section-flare-item" data-v-ff689cb1></div><div class="section-flare-item" data-v-ff689cb1></div><div class="section-flare-item" data-v-ff689cb1></div><div class="section-flare-item" data-v-ff689cb1></div><div class="section-flare-item" data-v-ff689cb1></div><div class="section-flare-item" data-v-ff689cb1></div><div class="section-flare-item" data-v-ff689cb1></div><div class="section-flare-item" data-v-ff689cb1></div></div>', 1)),
57
57
  M("div", se, [
58
58
  f(e.$slots, "start", {}, void 0, !0),
59
59
  o.value ? (r(), s(t(_), {
@@ -64,7 +64,7 @@ const se = { class: "narrow-references-container" }, ae = {
64
64
  parsedSpec: e.parsedSpec,
65
65
  server: a.value
66
66
  }, null, 8, ["document", "collection", "layout", "parsedSpec", "server"])) : i("", !0),
67
- (C = (g = e.document) == null ? void 0 : g.info) != null && C.title || (w = (b = e.document) == null ? void 0 : b.info) != null && w.description ? (r(), s(t(x), {
67
+ (b = (g = e.document) == null ? void 0 : g.info) != null && b.title || (w = (C = e.document) == null ? void 0 : C.info) != null && w.description ? (r(), s(t(x), {
68
68
  key: 1,
69
69
  document: e.document
70
70
  }, {
@@ -158,5 +158,5 @@ const se = { class: "narrow-references-container" }, ae = {
158
158
  }
159
159
  });
160
160
  export {
161
- Ce as default
161
+ be as default
162
162
  };
@@ -1,17 +1,17 @@
1
- import type { HttpMethod } from '@scalar/helpers/http/http-methods';
2
1
  import type { Collection, Server } from '@scalar/oas-utils/entities/spec';
3
2
  import type { OpenAPIV3_1 } from '@scalar/openapi-types';
4
3
  type __VLS_Props = {
4
+ document?: OpenAPIV3_1.Document;
5
5
  path: string;
6
- method: HttpMethod;
6
+ method: OpenAPIV3_1.HttpMethods;
7
7
  isWebhook?: boolean;
8
8
  layout?: 'modern' | 'classic';
9
9
  id: string;
10
- server: Server | undefined;
11
- /** @deprecated Use `document` instead, we just need the selected security scheme uids for now */
10
+ /**
11
+ * @deprecated Use `document` instead
12
+ */
12
13
  collection: Collection;
13
- /** @deprecated Use the new workspace store instead*/
14
- document?: OpenAPIV3_1.Document;
14
+ server: Server | undefined;
15
15
  };
16
16
  declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
17
17
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"Operation.vue.d.ts","sourceRoot":"","sources":["../../../src/features/Operation/Operation.vue"],"names":[],"mappings":"AAsHA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AACnE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AACzE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAaxD,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,UAAU,CAAA;IAClB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;IAC7B,EAAE,EAAE,MAAM,CAAA;IACV,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,iGAAiG;IACjG,UAAU,EAAE,UAAU,CAAA;IACtB,qDAAqD;IACrD,QAAQ,CAAC,EAAE,WAAW,CAAC,QAAQ,CAAA;CAChC,CAAC;;AAiKF,wBAMG"}
1
+ {"version":3,"file":"Operation.vue.d.ts","sourceRoot":"","sources":["../../../src/features/Operation/Operation.vue"],"names":[],"mappings":"AAyHA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AACzE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAYxD,KAAK,WAAW,GAAG;IACjB,QAAQ,CAAC,EAAE,WAAW,CAAC,QAAQ,CAAA;IAC/B,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,WAAW,CAAC,WAAW,CAAA;IAC/B,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;IAC7B,EAAE,EAAE,MAAM,CAAA;IACV;;OAEG;IACH,UAAU,EAAE,UAAU,CAAA;IACtB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;CAC3B,CAAC;;AAuKF,wBAMG"}