@scalar/api-reference 1.25.52 → 1.25.53

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 (60) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/README.md +3 -2
  3. package/dist/browser/standalone.js +12953 -12838
  4. package/dist/browser/webpack-stats.json +1 -1
  5. package/dist/components/Anchor/Anchor.vue.d.ts.map +1 -1
  6. package/dist/components/Anchor/Anchor.vue.js +1 -1
  7. package/dist/components/Anchor/Anchor.vue2.js +9 -9
  8. package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
  9. package/dist/components/ApiReferenceLayout.vue.js +2 -2
  10. package/dist/components/ApiReferenceLayout.vue2.js +26 -31
  11. package/dist/components/Card/CardTab.vue.d.ts.map +1 -1
  12. package/dist/components/Card/CardTab.vue.js +2 -2
  13. package/dist/components/Card/CardTab.vue2.js +3 -3
  14. package/dist/components/Content/Operation/ParameterItem.vue.d.ts.map +1 -1
  15. package/dist/components/Content/Operation/ParameterItem.vue.js +4 -4
  16. package/dist/components/Content/Operation/ParameterItem.vue2.js +72 -54
  17. package/dist/components/Content/Operation/TestRequestButton.vue.d.ts.map +1 -1
  18. package/dist/components/Content/Operation/TestRequestButton.vue.js +2 -2
  19. package/dist/components/Content/Operation/TestRequestButton.vue2.js +22 -15
  20. package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
  21. package/dist/components/Content/Schema/Schema.vue.js +3 -3
  22. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
  23. package/dist/components/Content/Schema/SchemaProperty.vue.js +2 -2
  24. package/dist/components/Content/Schema/SchemaProperty.vue2.js +114 -88
  25. package/dist/components/Content/Tag/Endpoints.vue.d.ts.map +1 -1
  26. package/dist/components/Content/Tag/Endpoints.vue.js +2 -2
  27. package/dist/components/Content/Tag/Endpoints.vue2.js +79 -64
  28. package/dist/components/Content/Tag/Tag.vue.d.ts.map +1 -1
  29. package/dist/components/Content/Tag/Tag.vue.js +3 -3
  30. package/dist/components/Content/Tag/Tag.vue2.js +34 -21
  31. package/dist/components/Section/CompactSection.vue.d.ts.map +1 -1
  32. package/dist/components/Section/CompactSection.vue.js +1 -1
  33. package/dist/embeds/OpenApiDocument/OpenApiDocument.vue.d.ts.map +1 -1
  34. package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts +3 -9
  35. package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts.map +1 -1
  36. package/dist/features/ApiClientModal/ApiClientModal.vue.js +27 -33
  37. package/dist/features/ApiClientModal/useApiClient.d.ts +140 -12
  38. package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
  39. package/dist/features/BaseUrl/ServerUrlSelect.vue.d.ts.map +1 -1
  40. package/dist/features/BaseUrl/ServerUrlSelect.vue.js +4 -4
  41. package/dist/features/BaseUrl/ServerUrlSelect.vue2.js +11 -9
  42. package/dist/features/ExampleRequest/ExamplePicker.vue.d.ts.map +1 -1
  43. package/dist/features/ExampleRequest/ExamplePicker.vue.js +3 -3
  44. package/dist/features/ExampleRequest/ExamplePicker.vue2.js +28 -21
  45. package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
  46. package/dist/features/ExampleRequest/ExampleRequest.vue.js +1 -1
  47. package/dist/features/ExampleRequest/ExampleRequest.vue2.js +139 -119
  48. package/dist/features/ExampleRequest/TextSelect.vue.d.ts +2 -0
  49. package/dist/features/ExampleRequest/TextSelect.vue.d.ts.map +1 -1
  50. package/dist/features/ExampleRequest/TextSelect.vue.js +22 -19
  51. package/dist/features/ExampleResponses/ExampleResponse.vue.js +3 -3
  52. package/dist/features/ExampleResponses/ExampleResponses.vue.d.ts.map +1 -1
  53. package/dist/features/ExampleResponses/ExampleResponses.vue.js +1 -1
  54. package/dist/features/ExampleResponses/ExampleResponses.vue2.js +88 -81
  55. package/dist/index.js +1 -1
  56. package/dist/legacy/components/SecuritySchemeSelector.vue.d.ts.map +1 -1
  57. package/dist/legacy/components/SecuritySchemeSelector.vue.js +3 -3
  58. package/dist/legacy/components/SecuritySchemeSelector.vue2.js +30 -25
  59. package/dist/style.css +1 -1
  60. package/package.json +10 -9
@@ -1 +1 @@
1
- {"version":3,"file":"Anchor.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Anchor/Anchor.vue"],"names":[],"mappings":"AAgGA,iBAAS,cAAc;qBA8CM,GAAG;qBACH,GAAG;EAiB/B;AACD,QAAA,MAAM,eAAe;QApFf,MAAM;;QAAN,MAAM;iGA0FV,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"Anchor.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Anchor/Anchor.vue"],"names":[],"mappings":"AAiGA,iBAAS,cAAc;qBAiDM,GAAG;qBACH,GAAG;EAiB/B;AACD,QAAA,MAAM,eAAe;QAvFf,MAAM;;QAAN,MAAM;iGA6FV,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import o from "./Anchor.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../_virtual/_plugin-vue_export-helper.js";
4
- const _ = /* @__PURE__ */ r(o, [["__scopeId", "data-v-d9801d4e"]]);
4
+ const _ = /* @__PURE__ */ r(o, [["__scopeId", "data-v-624343e1"]]);
5
5
  export {
6
6
  _ as default
7
7
  };
@@ -1,7 +1,7 @@
1
- import { defineComponent as i, openBlock as d, createElementBlock as p, renderSlot as r, createElementVNode as e, withModifiers as u, unref as a, createTextVNode as n, createVNode as f, withCtx as m } from "vue";
1
+ import { defineComponent as i, openBlock as d, createElementBlock as p, renderSlot as n, createElementVNode as e, withModifiers as a, unref as u, createVNode as f, withCtx as m, createTextVNode as r } from "vue";
2
2
  import C from "../ScreenReader.vue.js";
3
3
  import { useClipboard as b } from "../../hooks/useClipboard.js";
4
- const w = { class: "label" }, c = { class: "anchor" }, V = /* @__PURE__ */ i({
4
+ const w = { class: "label" }, c = { class: "anchor" }, S = /* @__PURE__ */ i({
5
5
  __name: "Anchor",
6
6
  props: {
7
7
  id: {}
@@ -12,20 +12,20 @@ const w = { class: "label" }, c = { class: "anchor" }, V = /* @__PURE__ */ i({
12
12
  return o.hash = t, o.toString();
13
13
  };
14
14
  return (t, o) => (d(), p("span", w, [
15
- r(t.$slots, "default", {}, void 0, !0),
15
+ n(t.$slots, "default", {}, void 0, !0),
16
16
  e("span", c, [
17
17
  o[4] || (o[4] = e("span", null, "​", -1)),
18
18
  e("button", {
19
19
  class: "anchor-copy",
20
20
  type: "button",
21
- onClick: o[0] || (o[0] = u((y) => a(s)(l(t.id)), ["stop"]))
21
+ onClick: o[0] || (o[0] = a((y) => u(s)(l(t.id)), ["stop"]))
22
22
  }, [
23
- o[3] || (o[3] = n(" # ")),
23
+ o[3] || (o[3] = e("span", { "aria-hidden": "true" }, "#", -1)),
24
24
  f(C, null, {
25
25
  default: m(() => [
26
- o[1] || (o[1] = n('Copy link to "')),
27
- r(t.$slots, "default", {}, void 0, !0),
28
- o[2] || (o[2] = n('"'))
26
+ o[1] || (o[1] = r('Copy link to "')),
27
+ n(t.$slots, "default", {}, void 0, !0),
28
+ o[2] || (o[2] = r('"'))
29
29
  ]),
30
30
  _: 3
31
31
  })
@@ -35,5 +35,5 @@ const w = { class: "label" }, c = { class: "anchor" }, V = /* @__PURE__ */ i({
35
35
  }
36
36
  });
37
37
  export {
38
- V as default
38
+ S as default
39
39
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ApiReferenceLayout.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReferenceLayout.vue"],"names":[],"mappings":"AAokBA,OAAO,EACL,KAAK,OAAO,EAGb,MAAM,gBAAgB,CAAA;AA6BvB,OAAO,KAAK,EACV,oBAAoB,EAEpB,kBAAkB,EACnB,MAAM,UAAU,CAAA;AAoPjB,iBAAS,cAAc;oBAzNe,kBAAkB,KAAK,GAAG;oBAA1B,kBAAkB,KAAK,GAAG;oBAA1B,kBAAkB,KAAK,GAAG;6BAA1B,kBAAkB,KAAK,GAAG;2BAA1B,kBAAkB,KAAK,GAAG;6BAA1B,kBAAkB,KAAK,GAAG;2BAA1B,kBAAkB,KAAK,GAAG;;oBAA1B,kBAAkB,KAAK,GAAG;oBAA1B,kBAAkB,KAAK,GAAG;oBAA1B,kBAAkB,KAAK,GAAG;6BAA1B,kBAAkB,KAAK,GAAG;2BAA1B,kBAAkB,KAAK,GAAG;6BAA1B,kBAAkB,KAAK,GAAG;2BAA1B,kBAAkB,KAAK,GAAG;EA4gB/D;AACD,QAAA,MAAM,eAAe;;YAOqB,OAAO;eAAS,MAAM;;;;;;;;YAAtB,OAAO;eAAS,MAAM;;;;;;kFAM9D,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,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":"AAgkBA,OAAO,EACL,KAAK,OAAO,EAGb,MAAM,gBAAgB,CAAA;AA6BvB,OAAO,KAAK,EACV,oBAAoB,EAEpB,kBAAkB,EACnB,MAAM,UAAU,CAAA;AAoPjB,iBAAS,cAAc;oBAzNe,kBAAkB,KAAK,GAAG;oBAA1B,kBAAkB,KAAK,GAAG;oBAA1B,kBAAkB,KAAK,GAAG;6BAA1B,kBAAkB,KAAK,GAAG;2BAA1B,kBAAkB,KAAK,GAAG;6BAA1B,kBAAkB,KAAK,GAAG;2BAA1B,kBAAkB,KAAK,GAAG;;oBAA1B,kBAAkB,KAAK,GAAG;oBAA1B,kBAAkB,KAAK,GAAG;oBAA1B,kBAAkB,KAAK,GAAG;6BAA1B,kBAAkB,KAAK,GAAG;2BAA1B,kBAAkB,KAAK,GAAG;6BAA1B,kBAAkB,KAAK,GAAG;2BAA1B,kBAAkB,KAAK,GAAG;EA4gB/D;AACD,QAAA,MAAM,eAAe;;YAOqB,OAAO;eAAS,MAAM;;;;;;;;YAAtB,OAAO;eAAS,MAAM;;;;;;kFAM9D,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -2,7 +2,7 @@ import o from "./ApiReferenceLayout.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-e75c5db5"]]);
5
+ const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-c4ac11d9"]]);
6
6
  export {
7
- a as default
7
+ c as default
8
8
  };
@@ -1,7 +1,7 @@
1
- import { defineComponent as Z, ref as y, computed as h, onBeforeMount as D, onMounted as x, onUnmounted as ee, watch as oe, onServerPrefetch as te, useSSRContext as re, getCurrentInstance as ae, provide as g, openBlock as b, createElementBlock as w, Fragment as M, createElementVNode as l, normalizeClass as ne, unref as d, normalizeStyle as ie, renderSlot as u, normalizeProps as c, guardReactiveProps as p, createVNode as m, withCtx as S, createCommentVNode as T, withDirectives as se, vShow as le, createSlots as de } from "vue";
1
+ import { defineComponent as Z, ref as y, computed as h, onBeforeMount as M, onMounted as x, onUnmounted as ee, watch as oe, onServerPrefetch as te, useSSRContext as re, getCurrentInstance as ae, provide as g, openBlock as b, createElementBlock as w, Fragment as P, createElementVNode as l, normalizeClass as ne, unref as d, normalizeStyle as ie, renderSlot as u, normalizeProps as c, guardReactiveProps as p, createVNode as m, withCtx as S, createCommentVNode as T, withDirectives as se, vShow as le, createSlots as de } from "vue";
2
2
  import { provideUseId as ue } from "@headlessui/vue";
3
3
  import { addScalarClassesToHeadless as ce } from "@scalar/components";
4
- import { defaultStateFactory as P } from "@scalar/oas-utils/helpers";
4
+ import { defaultStateFactory as U } from "@scalar/oas-utils/helpers";
5
5
  import { hasObtrusiveScrollbars as pe, getThemeStyles as fe } from "@scalar/themes";
6
6
  import { useToasts as ge, ScalarToasts as me } from "@scalar/use-toasts";
7
7
  import { useMediaQuery as Se, useResizeObserver as ve, useDebounceFn as he } from "@vueuse/core";
@@ -13,9 +13,9 @@ import Ee from "./Sidebar/Sidebar.vue.js";
13
13
  import Ie from "./Content/Content.vue.js";
14
14
  import Le from "../features/ApiClientModal/ApiClientModal.vue.js";
15
15
  import { useSidebar as Be } from "../hooks/useSidebar.js";
16
- import { useNavState as Ue } from "../hooks/useNavState.js";
17
- import { sleep as De } from "../helpers/sleep.js";
18
- const Me = ["innerHTML"], Pe = { class: "references-header" }, ke = {
16
+ import { useNavState as De } from "../hooks/useNavState.js";
17
+ import { sleep as Me } from "../helpers/sleep.js";
18
+ const Pe = ["innerHTML"], Ue = { class: "references-header" }, ke = {
19
19
  key: 0,
20
20
  class: "references-navigation t-doc__sidebar"
21
21
  }, Ae = { class: "references-navigation-list" }, Fe = { class: "references-editor" }, Ne = { class: "references-editor-textarea" }, He = ["aria-label"], Ye = {
@@ -38,13 +38,13 @@ const Me = ["innerHTML"], Pe = { class: "references-header" }, ke = {
38
38
  Y.value = e[0].contentRect.height + "px";
39
39
  });
40
40
  const z = h(pe), {
41
- breadcrumb: G,
41
+ breadcrumb: _,
42
42
  collapsedSidebarItems: v,
43
- isSidebarOpen: V,
43
+ isSidebarOpen: G,
44
44
  setCollapsedSidebarItem: R,
45
- hideModels: Q,
46
- defaultOpenAllTags: W,
47
- setParsedSpec: _,
45
+ hideModels: V,
46
+ defaultOpenAllTags: Q,
47
+ setParsedSpec: W,
48
48
  scrollToOperation: j
49
49
  } = Be(), {
50
50
  getPathRoutingId: O,
@@ -54,13 +54,13 @@ const Me = ["innerHTML"], Pe = { class: "references-header" }, ke = {
54
54
  isIntersectionEnabled: C,
55
55
  pathRouting: E,
56
56
  updateHash: I
57
- } = Ue();
58
- E.value = t.configuration.pathRouting, D(() => I());
57
+ } = De();
58
+ E.value = t.configuration.pathRouting, M(() => I());
59
59
  const L = async (e) => {
60
60
  var o;
61
- C.value = !1, I(), e ? j(e) : (o = f.value) == null || o.scrollTo(0, 0), await De(100), C.value = !0;
61
+ C.value = !1, I(), e ? j(e) : (o = f.value) == null || o.scrollTo(0, 0), await Me(100), C.value = !0;
62
62
  }, B = y(0);
63
- D(() => ce()), x(() => {
63
+ M(() => ce()), x(() => {
64
64
  var r, a, n;
65
65
  history.scrollRestoration = "manual", k.on(({ specTitle: i }) => {
66
66
  we(t.rawSpec, i);
@@ -74,21 +74,21 @@ const Me = ["innerHTML"], Pe = { class: "references-header" }, ke = {
74
74
  });
75
75
  const J = h(
76
76
  () => H.value || !t.configuration.isEditable
77
- ), U = he((e) => {
77
+ ), D = he((e) => {
78
78
  if ((e.target.scrollTop ?? 0) < 50) {
79
79
  const r = t.configuration.pathRouting ? t.configuration.pathRouting.basePath : window.location.pathname;
80
80
  window.history.replaceState({}, "", r + window.location.search), $.value = "";
81
81
  }
82
82
  }), s = h(() => ({
83
- breadcrumb: G.value,
83
+ breadcrumb: _.value,
84
84
  spec: t.parsedSpec
85
85
  }));
86
86
  ee(() => {
87
87
  k.reset();
88
- }), oe(() => t.parsedSpec, _, { deep: !0 }), te(() => {
88
+ }), oe(() => t.parsedSpec, W, { deep: !0 }), te(() => {
89
89
  var o, r;
90
90
  const e = re();
91
- if (e && (e.payload || (e.payload = { data: P() }), (o = e.payload).data || (o.data = P()), t.configuration.pathRouting)) {
91
+ if (e && (e.payload || (e.payload = { data: U() }), (o = e.payload).data || (o.data = U()), t.configuration.pathRouting)) {
92
92
  const a = O(e.url);
93
93
  $.value = a, e.payload.data.hash = a;
94
94
  for (const n in v)
@@ -119,7 +119,7 @@ const Me = ["innerHTML"], Pe = { class: "references-header" }, ke = {
119
119
  }), g(
120
120
  $e,
121
121
  () => t.configuration._integration !== null ? t.configuration._integration : "vue"
122
- ), Q.value = t.configuration.hideModels ?? !1, W.value = t.configuration.defaultOpenAllTags ?? !1, Ce(t.configuration);
122
+ ), V.value = t.configuration.hideModels ?? !1, Q.value = t.configuration.defaultOpenAllTags ?? !1, Ce(t.configuration);
123
123
  const X = h(
124
124
  () => `<style>
125
125
  ${fe(t.configuration.theme, {
@@ -128,8 +128,8 @@ const Me = ["innerHTML"], Pe = { class: "references-header" }, ke = {
128
128
  );
129
129
  return (e, o) => {
130
130
  var r, a;
131
- return b(), w(M, null, [
132
- l("div", { innerHTML: X.value }, null, 8, Me),
131
+ return b(), w(P, null, [
132
+ l("div", { innerHTML: X.value }, null, 8, Pe),
133
133
  l("div", {
134
134
  ref_key: "documentEl",
135
135
  ref: f,
@@ -138,7 +138,7 @@ const Me = ["innerHTML"], Pe = { class: "references-header" }, ke = {
138
138
  "scalar-scrollbars-obtrusive": z.value,
139
139
  "references-editable": e.configuration.isEditable,
140
140
  "references-sidebar": e.configuration.showSidebar,
141
- "references-sidebar-mobile-open": d(V),
141
+ "references-sidebar-mobile-open": d(G),
142
142
  "references-classic": e.configuration.layout === "classic"
143
143
  },
144
144
  e.$attrs.class
@@ -147,9 +147,9 @@ const Me = ["innerHTML"], Pe = { class: "references-header" }, ke = {
147
147
  "--scalar-y-offset": `var(--scalar-custom-header-height, ${B.value}px)`
148
148
  }),
149
149
  onScrollPassive: o[4] || (o[4] = //@ts-ignore
150
- (...n) => d(U) && d(U)(...n))
150
+ (...n) => d(D) && d(D)(...n))
151
151
  }, [
152
- l("div", Pe, [
152
+ l("div", Ue, [
153
153
  u(e.$slots, "header", c(p(s.value)), void 0, !0)
154
154
  ]),
155
155
  e.configuration.showSidebar ? (b(), w("aside", ke, [
@@ -176,7 +176,7 @@ const Me = ["innerHTML"], Pe = { class: "references-header" }, ke = {
176
176
  ], 512), [
177
177
  [le, e.configuration.isEditable]
178
178
  ]),
179
- J.value ? (b(), w(M, { key: 1 }, [
179
+ J.value ? (b(), w(P, { key: 1 }, [
180
180
  l("section", {
181
181
  "aria-label": `Open API Documentation for ${(r = e.parsedSpec.info) == null ? void 0 : r.title}`,
182
182
  class: "references-rendered"
@@ -218,12 +218,7 @@ const Me = ["innerHTML"], Pe = { class: "references-header" }, ke = {
218
218
  u(e.$slots, "footer", c(p(s.value)), void 0, !0)
219
219
  ])) : T("", !0)
220
220
  ], 64)) : T("", !0),
221
- m(d(Le), {
222
- authentication: e.configuration.authentication,
223
- proxyUrl: e.configuration.proxy,
224
- servers: e.configuration.servers,
225
- spec: e.configuration.spec
226
- }, null, 8, ["authentication", "proxyUrl", "servers", "spec"])
221
+ m(d(Le), { configuration: e.configuration }, null, 8, ["configuration"])
227
222
  ], 38),
228
223
  m(d(me))
229
224
  ], 64);
@@ -1 +1 @@
1
- {"version":3,"file":"CardTab.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Card/CardTab.vue"],"names":[],"mappings":"AAqEA,iBAAS,cAAc;qBA4CM,GAAG;EAc/B;AACD,QAAA,MAAM,eAAe,+QAKnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"CardTab.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Card/CardTab.vue"],"names":[],"mappings":"AA0EA,iBAAS,cAAc;qBA+CM,GAAG;EAc/B;AACD,QAAA,MAAM,eAAe,+QAKnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import o from "./CardTab.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../_virtual/_plugin-vue_export-helper.js";
4
- const f = /* @__PURE__ */ r(o, [["__scopeId", "data-v-f373ecc2"]]);
4
+ const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-d0e07e65"]]);
5
5
  export {
6
- f as default
6
+ m as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as o, openBlock as r, createBlock as n, unref as l, withCtx as s, createElementVNode as e, normalizeClass as u, renderSlot as p } from "vue";
1
+ import { defineComponent as o, openBlock as r, createBlock as n, unref as l, withCtx as s, createElementVNode as e, normalizeClass as p, renderSlot as u } from "vue";
2
2
  import { Tab as c } from "@headlessui/vue";
3
3
  const i = /* @__PURE__ */ o({
4
4
  __name: "CardTab",
@@ -6,11 +6,11 @@ const i = /* @__PURE__ */ o({
6
6
  return (t, d) => (r(), n(l(c), { as: "template" }, {
7
7
  default: s(({ selected: a }) => [
8
8
  e("button", {
9
- class: u({ tab: !0, "tab-selected": a }),
9
+ class: p(["tab", { "tab-selected": a }]),
10
10
  type: "button"
11
11
  }, [
12
12
  e("span", null, [
13
- p(t.$slots, "default", {}, void 0, !0)
13
+ u(t.$slots, "default", {}, void 0, !0)
14
14
  ])
15
15
  ], 2)
16
16
  ]),
@@ -1 +1 @@
1
- {"version":3,"file":"ParameterItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operation/ParameterItem.vue"],"names":[],"mappings":"AA8MA,OAAO,KAAK,EAAe,UAAU,EAAE,MAAM,sBAAsB,CAAA;;eAUpD,UAAU;mBACN,OAAO;uBACH,OAAO;;eAFf,UAAU;mBACN,OAAO;uBACH,OAAO;;kBADX,OAAO;sBACH,OAAO;;AAuN9B,wBAOG"}
1
+ {"version":3,"file":"ParameterItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operation/ParameterItem.vue"],"names":[],"mappings":"AA+NA,OAAO,KAAK,EAAe,UAAU,EAAE,MAAM,sBAAsB,CAAA;;eAWpD,UAAU;mBACN,OAAO;uBACH,OAAO;;eAFf,UAAU;mBACN,OAAO;uBACH,OAAO;;kBADX,OAAO;sBACH,OAAO;;AA2Q9B,wBAOG"}
@@ -1,7 +1,7 @@
1
- import a from "./ParameterItem.vue2.js";
1
+ import t from "./ParameterItem.vue2.js";
2
2
  /* empty css */
3
- import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const e = /* @__PURE__ */ t(a, [["__scopeId", "data-v-fa59a8ba"]]);
3
+ import o from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const a = /* @__PURE__ */ o(t, [["__scopeId", "data-v-c44b2feb"]]);
5
5
  export {
6
- e as default
6
+ a as default
7
7
  };
@@ -1,68 +1,86 @@
1
- import { defineComponent as B, ref as d, computed as v, openBlock as n, createElementBlock as m, normalizeClass as b, createVNode as f, unref as h, createElementVNode as p, toDisplayString as y, createBlock as C, createCommentVNode as s } from "vue";
2
- import { ScalarIcon as q } from "@scalar/components";
3
- import w from "./ContentTypeSelect.vue.js";
1
+ import { defineComponent as k, computed as y, ref as B, openBlock as s, createElementBlock as g, createVNode as r, unref as n, withCtx as m, createBlock as i, normalizeClass as b, createTextVNode as S, toDisplayString as c, createElementVNode as u, createCommentVNode as d } from "vue";
2
+ import { Disclosure as V, DisclosureButton as q, DisclosurePanel as w } from "@headlessui/vue";
3
+ import { ScalarIcon as D } from "@scalar/components";
4
+ import T from "../../ScreenReader.vue.js";
5
+ import _ from "./ContentTypeSelect.vue.js";
4
6
  import I from "./ParameterHeaders.vue.js";
5
- import S from "../Schema/SchemaProperty.vue.js";
6
- const V = { class: "parameter-item" }, T = { class: "parameter-item-name" }, j = { class: "parameter-item-type" }, N = { class: "absolute right-0" }, P = {
7
- key: 1,
8
- class: "parameter-item-container parameter-item-container-markdown"
9
- }, R = /* @__PURE__ */ B({
7
+ import N from "../Schema/SchemaProperty.vue.js";
8
+ const P = { class: "parameter-item" }, j = { class: "parameter-item-name" }, E = { class: "parameter-item-type" }, z = { class: "absolute right-0" }, K = /* @__PURE__ */ k({
10
9
  __name: "ParameterItem",
11
10
  props: {
12
11
  parameter: {},
13
12
  showChildren: { type: Boolean, default: !1 },
14
13
  collapsableItems: { type: Boolean, default: !1 }
15
14
  },
16
- setup(k) {
17
- const a = k, r = d(!1), g = v(() => a.parameter.content ? Object.keys(a.parameter.content) : []), o = d(
18
- g.value[0]
15
+ setup(v) {
16
+ const a = v, C = y(() => a.parameter.content ? Object.keys(a.parameter.content) : []), o = B(
17
+ C.value[0]
19
18
  );
20
19
  a.parameter.content && "application/json" in a.parameter.content && (o.value = "application/json");
21
- const t = v(() => a.collapsableItems && a.parameter.content);
22
- return (e, l) => {
23
- var i, c;
24
- return n(), m("li", V, [
25
- t.value ? (n(), m("div", {
26
- key: 0,
27
- class: b(["flex parameter-item-trigger", { "parameter-item-trigger-open": r.value }]),
28
- onClick: l[1] || (l[1] = (u) => r.value = !r.value)
29
- }, [
30
- f(h(q), {
31
- class: "parameter-item-icon",
32
- icon: r.value ? "ChevronDown" : "ChevronRight",
33
- size: "md",
34
- thickness: "1.75"
35
- }, null, 8, ["icon"]),
36
- p("span", T, y(e.parameter.name), 1),
37
- p("span", j, y(e.parameter.description), 1),
38
- p("div", N, [
39
- t.value && a.parameter.content ? (n(), C(w, {
40
- key: 0,
41
- class: "parameter-item-content-type",
42
- defaultValue: o.value,
43
- requestBody: a.parameter,
44
- onSelectContentType: l[0] || (l[0] = ({ contentType: u }) => o.value = u)
45
- }, null, 8, ["defaultValue", "requestBody"])) : s("", !0)
46
- ])
47
- ], 2)) : s("", !0),
48
- t.value && r.value || !t.value ? (n(), m("div", P, [
49
- e.parameter.headers ? (n(), C(I, {
20
+ const t = y(() => !!(a.collapsableItems && a.parameter.content));
21
+ return (e, f) => (s(), g("li", P, [
22
+ r(n(V), null, {
23
+ default: m(({ open: p }) => [
24
+ t.value ? (s(), i(n(q), {
50
25
  key: 0,
51
- headers: e.parameter.headers
52
- }, null, 8, ["headers"])) : s("", !0),
53
- f(h(S), {
54
- compact: "",
55
- description: t.value ? "" : e.parameter.description,
56
- name: t.value ? "" : e.parameter.name,
57
- noncollapsible: e.showChildren,
58
- required: e.parameter.required,
59
- value: e.parameter.content ? (c = (i = e.parameter.content) == null ? void 0 : i[o.value]) == null ? void 0 : c.schema : e.parameter.schema
60
- }, null, 8, ["description", "name", "noncollapsible", "required", "value"])
61
- ])) : s("", !0)
62
- ]);
63
- };
26
+ class: b(["flex parameter-item-trigger", { "parameter-item-trigger-open": p }])
27
+ }, {
28
+ default: m(() => [
29
+ r(n(D), {
30
+ class: "parameter-item-icon",
31
+ icon: p ? "ChevronDown" : "ChevronRight",
32
+ size: "md",
33
+ thickness: "1.75"
34
+ }, null, 8, ["icon"]),
35
+ r(T, null, {
36
+ default: m(() => [
37
+ S(c(p ? "Collapse" : "Expand"), 1)
38
+ ]),
39
+ _: 2
40
+ }, 1024),
41
+ u("span", j, c(e.parameter.name), 1),
42
+ u("span", E, c(e.parameter.description), 1),
43
+ u("div", z, [
44
+ t.value && a.parameter.content ? (s(), i(_, {
45
+ key: 0,
46
+ class: "parameter-item-content-type",
47
+ defaultValue: o.value,
48
+ requestBody: a.parameter,
49
+ onSelectContentType: f[0] || (f[0] = ({ contentType: l }) => o.value = l)
50
+ }, null, 8, ["defaultValue", "requestBody"])) : d("", !0)
51
+ ])
52
+ ]),
53
+ _: 2
54
+ }, 1032, ["class"])) : d("", !0),
55
+ r(n(w), {
56
+ class: "parameter-item-container parameter-item-container-markdown",
57
+ static: !t.value
58
+ }, {
59
+ default: m(() => {
60
+ var l, h;
61
+ return [
62
+ e.parameter.headers ? (s(), i(I, {
63
+ key: 0,
64
+ headers: e.parameter.headers
65
+ }, null, 8, ["headers"])) : d("", !0),
66
+ r(n(N), {
67
+ compact: "",
68
+ description: t.value ? "" : e.parameter.description,
69
+ name: t.value ? "" : e.parameter.name,
70
+ noncollapsible: e.showChildren,
71
+ required: e.parameter.required,
72
+ value: e.parameter.content ? (h = (l = e.parameter.content) == null ? void 0 : l[o.value]) == null ? void 0 : h.schema : e.parameter.schema
73
+ }, null, 8, ["description", "name", "noncollapsible", "required", "value"])
74
+ ];
75
+ }),
76
+ _: 1
77
+ }, 8, ["static"])
78
+ ]),
79
+ _: 1
80
+ })
81
+ ]));
64
82
  }
65
83
  });
66
84
  export {
67
- R as default
85
+ K as default
68
86
  };
@@ -1 +1 @@
1
- {"version":3,"file":"TestRequestButton.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operation/TestRequestButton.vue"],"names":[],"mappings":"AAuEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;;eASnD,oBAAoB;;eAApB,oBAAoB;;AAiFjC,wBAMG"}
1
+ {"version":3,"file":"TestRequestButton.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operation/TestRequestButton.vue"],"names":[],"mappings":"AA0EA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;;eAUnD,oBAAoB;;eAApB,oBAAoB;;AA8FjC,wBAMG"}
@@ -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 s = /* @__PURE__ */ o(t, [["__scopeId", "data-v-ee2f87fc"]]);
4
+ const f = /* @__PURE__ */ o(t, [["__scopeId", "data-v-359d791f"]]);
5
5
  export {
6
- s as default
6
+ f as default
7
7
  };
@@ -1,40 +1,47 @@
1
- import { defineComponent as m, inject as u, unref as o, openBlock as p, createElementBlock as s, withModifiers as l, createVNode as c, createElementVNode as d, Fragment as f, createTextVNode as T } from "vue";
2
- import { ScalarIcon as h } from "@scalar/components";
3
- import { HIDE_TEST_REQUEST_BUTTON_SYMBOL as _ } from "../../../helpers/provideSymbols.js";
4
- import { useApiClient as B } from "../../../features/ApiClientModal/useApiClient.js";
5
- const E = ["method"], S = /* @__PURE__ */ m({
1
+ import { defineComponent as d, inject as f, unref as o, openBlock as p, createElementBlock as i, withModifiers as c, createVNode as s, createElementVNode as h, withCtx as T, createTextVNode as a, toDisplayString as m, Fragment as b } from "vue";
2
+ import { ScalarIcon as B } from "@scalar/components";
3
+ import E from "../../ScreenReader.vue.js";
4
+ import { HIDE_TEST_REQUEST_BUTTON_SYMBOL as S } from "../../../helpers/provideSymbols.js";
5
+ import { useApiClient as V } from "../../../features/ApiClientModal/useApiClient.js";
6
+ const _ = ["method"], w = /* @__PURE__ */ d({
6
7
  __name: "TestRequestButton",
7
8
  props: {
8
9
  operation: {}
9
10
  },
10
- setup(b) {
11
- const i = u(_), { client: a } = B();
11
+ setup(k) {
12
+ const l = f(S), { client: u } = V();
12
13
  return (t, e) => {
13
14
  var n;
14
- return ((n = o(i)) == null ? void 0 : n()) !== !0 ? (p(), s("button", {
15
+ return ((n = o(l)) == null ? void 0 : n()) !== !0 ? (p(), i("button", {
15
16
  key: 0,
16
17
  class: "show-api-client-button",
17
18
  method: t.operation.httpVerb,
18
19
  type: "button",
19
- onClick: e[0] || (e[0] = l((k) => {
20
+ onClick: e[0] || (e[0] = c((y) => {
20
21
  var r;
21
- return (r = o(a)) == null ? void 0 : r.open({
22
+ return (r = o(u)) == null ? void 0 : r.open({
22
23
  path: t.operation.path,
23
24
  method: t.operation.httpVerb
24
25
  });
25
26
  }, ["stop"]))
26
27
  }, [
27
- c(o(h), {
28
+ s(o(B), {
28
29
  icon: "Play",
29
30
  size: "sm"
30
31
  }),
31
- e[1] || (e[1] = d("span", null, "Test Request", -1))
32
- ], 8, E)) : (p(), s(f, { key: 1 }, [
33
- T(" ")
32
+ e[1] || (e[1] = h("span", null, "Test Request", -1)),
33
+ s(E, null, {
34
+ default: T(() => [
35
+ a("(" + m(t.operation.httpVerb) + " " + m(t.operation.path) + ")", 1)
36
+ ]),
37
+ _: 1
38
+ })
39
+ ], 8, _)) : (p(), i(b, { key: 1 }, [
40
+ a(" ")
34
41
  ], 64));
35
42
  };
36
43
  }
37
44
  });
38
45
  export {
39
- S as default
46
+ w as default
40
47
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Schema.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/Schema.vue"],"names":[],"mappings":"AAuRA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;;YAUtE,SAAS,CAAC,iBAAiB,GAC3B,SAAS,CAAC,YAAY,GACtB,SAAS,CAAC,iBAAiB,GAC3B,SAAS,CAAC,oBAAoB,GAC9B,WAAW,CAAC,YAAY,GACxB,WAAW,CAAC,iBAAiB,GAC7B,WAAW,CAAC,oBAAoB;IACpC,gCAAgC;YACxB,MAAM;WAEP,MAAM;IACb,+DAA+D;cACrD,OAAO;IACjB,2CAA2C;qBAC1B,OAAO;kBACV,OAAO;;YAfjB,SAAS,CAAC,iBAAiB,GAC3B,SAAS,CAAC,YAAY,GACtB,SAAS,CAAC,iBAAiB,GAC3B,SAAS,CAAC,oBAAoB,GAC9B,WAAW,CAAC,YAAY,GACxB,WAAW,CAAC,iBAAiB,GAC7B,WAAW,CAAC,oBAAoB;IACpC,gCAAgC;YACxB,MAAM;WAEP,MAAM;IACb,+DAA+D;cACrD,OAAO;IACjB,2CAA2C;qBAC1B,OAAO;kBACV,OAAO;;WAPb,MAAM;;AAkWlB,wBAOG"}
1
+ {"version":3,"file":"Schema.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/Schema.vue"],"names":[],"mappings":"AA0RA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;;YAUtE,SAAS,CAAC,iBAAiB,GAC3B,SAAS,CAAC,YAAY,GACtB,SAAS,CAAC,iBAAiB,GAC3B,SAAS,CAAC,oBAAoB,GAC9B,WAAW,CAAC,YAAY,GACxB,WAAW,CAAC,iBAAiB,GAC7B,WAAW,CAAC,oBAAoB;IACpC,gCAAgC;YACxB,MAAM;WAEP,MAAM;IACb,+DAA+D;cACrD,OAAO;IACjB,2CAA2C;qBAC1B,OAAO;kBACV,OAAO;;YAfjB,SAAS,CAAC,iBAAiB,GAC3B,SAAS,CAAC,YAAY,GACtB,SAAS,CAAC,iBAAiB,GAC3B,SAAS,CAAC,oBAAoB,GAC9B,WAAW,CAAC,YAAY,GACxB,WAAW,CAAC,iBAAiB,GAC7B,WAAW,CAAC,oBAAoB;IACpC,gCAAgC;YACxB,MAAM;WAEP,MAAM;IACb,+DAA+D;cACrD,OAAO;IACjB,2CAA2C;qBAC1B,OAAO;kBACV,OAAO;;WAPb,MAAM;;AAoWlB,wBAOG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./Schema.vue2.js";
2
2
  /* empty css */
3
- import c from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const a = /* @__PURE__ */ c(o, [["__scopeId", "data-v-e624cccb"]]);
3
+ import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-d0615f9c"]]);
5
5
  export {
6
- a as default
6
+ c as default
7
7
  };
@@ -1 +1 @@
1
- {"version":3,"file":"SchemaProperty.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaProperty.vue"],"names":[],"mappings":";YA8VY,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;YACnB,MAAM;WACP,MAAM;eACF,OAAO;cACR,OAAO;kBACH,MAAM;iBACP,OAAO;;YANZ,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;YACnB,MAAM;WACP,MAAM;eACF,OAAO;cACR,OAAO;kBACH,MAAM;iBACP,OAAO;;cAHT,OAAO;WAFV,MAAM;aAGJ,OAAO;;AAgWrB,0BAOG"}
1
+ {"version":3,"file":"SchemaProperty.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaProperty.vue"],"names":[],"mappings":";YAwYY,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;YACnB,MAAM;WACP,MAAM;eACF,OAAO;cACR,OAAO;kBACH,MAAM;iBACP,OAAO;;YANZ,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;YACnB,MAAM;WACP,MAAM;eACF,OAAO;cACR,OAAO;kBACH,MAAM;iBACP,OAAO;;cAHT,OAAO;WAFV,MAAM;aAGJ,OAAO;;AA+arB,0BAOG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./SchemaProperty.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-cd74902a"]]);
4
+ const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-a68fad5f"]]);
5
5
  export {
6
- p as default
6
+ m as default
7
7
  };