@scalar/api-reference 1.28.19 → 1.28.21

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 (26) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/dist/browser/standalone.js +514 -514
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/DocumentSelector/DocumentSelector.vue.d.ts.map +1 -1
  5. package/dist/components/DocumentSelector/DocumentSelector.vue.js +1 -1
  6. package/dist/components/Layouts/ModernLayout.vue.d.ts.map +1 -1
  7. package/dist/components/Layouts/ModernLayout.vue.js +2 -2
  8. package/dist/components/Layouts/ModernLayout.vue2.js +18 -18
  9. package/dist/features/ApiClientModal/useApiClient.d.ts +5302 -5302
  10. package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
  11. package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
  12. package/dist/features/ExampleRequest/ExampleRequest.vue.js +3 -3
  13. package/dist/features/ExampleRequest/ExampleRequest.vue2.js +145 -133
  14. package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
  15. package/dist/features/Operation/components/ParameterListItem.vue.js +2 -2
  16. package/dist/features/Operation/components/ParameterListItem.vue2.js +1 -1
  17. package/dist/helpers/get-request.d.ts.map +1 -1
  18. package/dist/hooks/useMultipleDocuments.d.ts +1 -1
  19. package/dist/hooks/useMultipleDocuments.d.ts.map +1 -1
  20. package/dist/index.js +1 -1
  21. package/dist/style.css +1 -1
  22. package/package.json +9 -9
  23. package/dist/components/Spinner/Spinner.vue.d.ts +0 -3
  24. package/dist/components/Spinner/Spinner.vue.d.ts.map +0 -1
  25. package/dist/components/Spinner/index.d.ts +0 -2
  26. package/dist/components/Spinner/index.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"DocumentSelector.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DocumentSelector/DocumentSelector.vue"],"names":[],"mappings":"AAwEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAA;AAKpE,KAAK,WAAW,GAAG;IACjB,OAAO,CAAC,EAAE,iBAAiB,EAAE,CAAA;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB,CAAC;;;;;;AAoIF,wBAOG"}
1
+ {"version":3,"file":"DocumentSelector.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DocumentSelector/DocumentSelector.vue"],"names":[],"mappings":"AAwEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAA;AAKpE,KAAK,WAAW,GAAG;IACjB,OAAO,CAAC,EAAE,iBAAiB,EAAE,CAAA;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB,CAAC;;;;;;AAqIF,wBAOG"}
@@ -49,7 +49,7 @@ const w = {
49
49
  }),
50
50
  c("span", k, x(((t = s.value) == null ? void 0 : t.label) || "Select API"), 1),
51
51
  i(a(d), {
52
- class: "group-hover/dropdown-label:text-c-1 ml-auto",
52
+ class: "group-hover/dropdown-label:text-c-1 ml-auto mr-2",
53
53
  icon: "ChevronDown",
54
54
  size: "sm",
55
55
  thickness: "2"
@@ -1 +1 @@
1
- {"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Layouts/ModernLayout.vue"],"names":[],"mappings":"AAmIA,OAAO,KAAK,EACV,oBAAoB,EACpB,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,SAAS,CAAA;AAsChB,iBAAS,cAAc;WA2JT,OAAO,IAA6B;;;;EAKjD;AAiBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;kFAQnB,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":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Layouts/ModernLayout.vue"],"names":[],"mappings":"AAoIA,OAAO,KAAK,EACV,oBAAoB,EACpB,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,SAAS,CAAA;AAsChB,iBAAS,cAAc;WA6JT,OAAO,IAA6B;;;;EAKjD;AAiBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;kFAQnB,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"}
@@ -2,7 +2,7 @@ import o from "./ModernLayout.vue2.js";
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  import t from "../../_virtual/_plugin-vue_export-helper.js";
5
- const _ = /* @__PURE__ */ t(o, [["__scopeId", "data-v-c3203d44"]]);
5
+ const d = /* @__PURE__ */ t(o, [["__scopeId", "data-v-b89dd3cb"]]);
6
6
  export {
7
- _ as default
7
+ d as default
8
8
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as v, useSlots as C, watch as c, openBlock as t, createBlock as u, normalizeClass as B, createSlots as w, withCtx as n, unref as l, isRef as D, createCommentVNode as d, createElementBlock as p, renderSlot as f, createVNode as m, renderList as M, normalizeProps as $, guardReactiveProps as V } from "vue";
1
+ import { defineComponent as v, useSlots as C, watch as c, openBlock as t, createBlock as u, normalizeClass as B, createSlots as w, withCtx as n, unref as s, isRef as D, createCommentVNode as d, createElementBlock as p, renderSlot as f, createVNode as m, renderList as M, normalizeProps as $, guardReactiveProps as V } from "vue";
2
2
  import { OpenApiClientButton as H } from "@scalar/api-client/components";
3
3
  import { ScalarSidebarFooter as K, ScalarColorModeToggleButton as L } from "@scalar/components";
4
4
  import { useBreakpoints as N } from "@scalar/use-hooks/useBreakpoints";
@@ -20,16 +20,16 @@ const P = { key: 0 }, T = {
20
20
  },
21
21
  emits: ["toggleDarkMode", "updateContent"],
22
22
  setup(g) {
23
- const a = g, S = C(), { mediaQueries: k } = N(), { isSidebarOpen: i } = A(), h = !1;
23
+ const l = g, S = C(), { mediaQueries: k } = N(), { isSidebarOpen: a } = A(), h = !1;
24
24
  c(k.lg, (e, o) => {
25
- o && !e && (i.value = !1);
25
+ o && !e && (a.value = !1);
26
26
  });
27
27
  const { hash: y } = O();
28
28
  return c(y, (e, o) => {
29
- e && e !== o && (i.value = !1);
29
+ e && e !== o && (a.value = !1);
30
30
  }), (e, o) => (t(), u(R, {
31
31
  class: B({
32
- "scalar-api-references-standalone-mobile": e.configuration.showSidebar
32
+ "scalar-api-references-standalone-mobile": e.configuration.showSidebar ?? !0
33
33
  }),
34
34
  configuration: e.configuration,
35
35
  parsedSpec: e.parsedSpec,
@@ -37,37 +37,37 @@ const P = { key: 0 }, T = {
37
37
  onUpdateContent: o[2] || (o[2] = (r) => e.$emit("updateContent", r))
38
38
  }, w({
39
39
  header: n(() => [
40
- a.configuration.showSidebar ? (t(), u(U, {
40
+ e.configuration.showSidebar ?? !0 ? (t(), u(U, {
41
41
  key: 0,
42
- open: l(i),
43
- "onUpdate:open": o[0] || (o[0] = (r) => D(i) ? i.value = r : null)
42
+ open: s(a),
43
+ "onUpdate:open": o[0] || (o[0] = (r) => D(a) ? a.value = r : null)
44
44
  }, null, 8, ["open"])) : d("", !0)
45
45
  ]),
46
46
  "sidebar-start": n(({ spec: r }) => {
47
- var s;
47
+ var i;
48
48
  return [
49
49
  e.$slots["document-selector"] ? (t(), p("div", P, [
50
50
  f(e.$slots, "document-selector", {}, void 0, !0)
51
51
  ])) : d("", !0),
52
- a.configuration.hideSearch ? d("", !0) : (t(), p("div", T, [
53
- m(l(z), {
54
- searchHotKey: (s = a.configuration) == null ? void 0 : s.searchHotKey,
52
+ l.configuration.hideSearch ? d("", !0) : (t(), p("div", T, [
53
+ m(s(z), {
54
+ searchHotKey: (i = l.configuration) == null ? void 0 : i.searchHotKey,
55
55
  spec: r
56
56
  }, null, 8, ["searchHotKey", "spec"])
57
57
  ]))
58
58
  ];
59
59
  }),
60
60
  "sidebar-end": n(() => [
61
- m(l(K), { class: "darklight-reference" }, {
61
+ m(s(K), { class: "darklight-reference" }, {
62
62
  toggle: n(() => [
63
- a.configuration.hideDarkModeToggle ? (t(), p("span", E)) : (t(), u(l(L), {
63
+ l.configuration.hideDarkModeToggle ? (t(), p("span", E)) : (t(), u(s(L), {
64
64
  key: 0,
65
65
  modelValue: e.isDark,
66
66
  "onUpdate:modelValue": o[1] || (o[1] = (r) => e.$emit("toggleDarkMode"))
67
67
  }, null, 8, ["modelValue"]))
68
68
  ]),
69
69
  default: n(() => [
70
- a.configuration.hideClientButton ? d("", !0) : (t(), u(l(H), {
70
+ l.configuration.hideClientButton ? d("", !0) : (t(), u(s(H), {
71
71
  key: 0,
72
72
  buttonSource: "sidebar",
73
73
  integration: e.configuration._integration,
@@ -80,10 +80,10 @@ const P = { key: 0 }, T = {
80
80
  ]),
81
81
  _: 2
82
82
  }, [
83
- M(S, (r, s) => ({
84
- name: s,
83
+ M(S, (r, i) => ({
84
+ name: i,
85
85
  fn: n((b) => [
86
- f(e.$slots, s, $(V(b || {})), void 0, !0)
86
+ f(e.$slots, i, $(V(b || {})), void 0, !0)
87
87
  ])
88
88
  }))
89
89
  ]), 1032, ["class", "configuration", "parsedSpec", "rawSpec"]));