@scalar/api-reference 1.28.30 → 1.28.32

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 (101) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/dist/blocks/constants.js +2 -4
  3. package/dist/browser/standalone.js +14161 -14196
  4. package/dist/browser/webpack-stats.json +1 -1
  5. package/dist/components/Anchor/Anchor.vue2.js +2 -2
  6. package/dist/components/ApiReference.vue.js +2 -2
  7. package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
  8. package/dist/components/ApiReferenceLayout.vue.js +2 -2
  9. package/dist/components/ApiReferenceLayout.vue2.js +17 -14
  10. package/dist/components/Badge/Badge.vue.js +2 -2
  11. package/dist/components/Card/Card.vue.js +2 -2
  12. package/dist/components/Card/CardContent.vue2.js +2 -2
  13. package/dist/components/Card/CardFooter.vue2.js +2 -2
  14. package/dist/components/Card/CardHeader.vue2.js +2 -2
  15. package/dist/components/Card/CardTab.vue2.js +2 -2
  16. package/dist/components/Card/CardTabHeader.vue2.js +6 -6
  17. package/dist/components/ClassicHeader.vue.js +2 -2
  18. package/dist/components/Content/ClientLibraries/ClientLibraries.vue2.js +1 -1
  19. package/dist/components/Content/ClientLibraries/ClientSelector.vue2.js +1 -1
  20. package/dist/components/Content/Content.vue2.js +1 -1
  21. package/dist/components/Content/Introduction/Description.vue2.js +5 -5
  22. package/dist/components/Content/Introduction/Introduction.vue2.js +15 -15
  23. package/dist/components/Content/Lazy/Loading.vue.js +7 -7
  24. package/dist/components/Content/Models/Models.vue2.js +7 -7
  25. package/dist/components/Content/Models/ModelsAccordion.vue2.js +13 -13
  26. package/dist/components/Content/Schema/Schema.vue2.js +1 -1
  27. package/dist/components/Content/Schema/SchemaDiscriminator.vue2.js +1 -1
  28. package/dist/components/Content/Schema/SchemaHeading.vue2.js +7 -7
  29. package/dist/components/Content/Schema/SchemaProperty.vue2.js +1 -1
  30. package/dist/components/Content/Schema/SchemaPropertyDetail.vue2.js +7 -7
  31. package/dist/components/Content/Schema/SchemaPropertyExamples.vue2.js +9 -9
  32. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts +1 -4
  33. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
  34. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +1 -1
  35. package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +148 -148
  36. package/dist/components/Content/Tag/OperationsList.vue2.js +5 -5
  37. package/dist/components/Content/Tag/OperationsListItem.vue2.js +9 -9
  38. package/dist/components/Content/Tag/Tag.vue.js +5 -5
  39. package/dist/components/Content/Tag/TagAccordion.vue2.js +4 -4
  40. package/dist/components/Content/Tag/TagList.vue.js +1 -1
  41. package/dist/components/Content/Tag/TagSection.vue2.js +1 -1
  42. package/dist/components/DocumentSelector/DocumentSelector.vue.js +5 -5
  43. package/dist/components/GettingStarted.vue2.js +3 -3
  44. package/dist/components/HttpMethod/HttpMethod.vue.js +2 -2
  45. package/dist/components/IntersectionObserver.vue.js +2 -2
  46. package/dist/components/Layouts/ClassicLayout.vue.js +5 -5
  47. package/dist/components/Layouts/Layouts.vue.js +2 -2
  48. package/dist/components/Layouts/ModernLayout.vue2.js +5 -5
  49. package/dist/components/LoadingSkeleton.vue2.js +2 -2
  50. package/dist/components/MobileHeader.vue2.js +5 -5
  51. package/dist/components/OperationPath.vue2.js +4 -4
  52. package/dist/components/ScreenReader.vue2.js +2 -2
  53. package/dist/components/Section/CompactSection.vue2.js +4 -4
  54. package/dist/components/Section/Section.vue2.js +2 -2
  55. package/dist/components/Section/SectionAccordion.vue2.js +1 -1
  56. package/dist/components/Section/SectionColumn.vue.js +2 -2
  57. package/dist/components/Section/SectionColumns.vue.js +2 -2
  58. package/dist/components/Section/SectionContainer.vue.js +2 -2
  59. package/dist/components/Section/SectionContainerAccordion.vue2.js +2 -2
  60. package/dist/components/Section/SectionContent.vue2.js +1 -1
  61. package/dist/components/Section/SectionHeader.vue2.js +1 -1
  62. package/dist/components/Section/SectionHeaderTag.vue2.js +2 -2
  63. package/dist/components/ShowMoreButton.vue2.js +2 -2
  64. package/dist/components/Sidebar/Sidebar.vue2.js +1 -1
  65. package/dist/components/Sidebar/SidebarElement.vue2.js +5 -5
  66. package/dist/components/Sidebar/SidebarGroup.vue2.js +2 -2
  67. package/dist/components/Sidebar/SidebarHttpBadge.vue2.js +2 -2
  68. package/dist/components/SingleApiReference.vue.js +5 -5
  69. package/dist/components/SpecificationExtension/SpecificationExtension.vue.js +5 -5
  70. package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts +2 -0
  71. package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts.map +1 -1
  72. package/dist/features/ApiClientModal/ApiClientModal.vue.js +51 -29
  73. package/dist/features/ApiClientModal/useApiClient.d.ts +4 -4
  74. package/dist/features/BaseUrl/BaseUrl.vue.js +1 -1
  75. package/dist/features/DownloadLink/DownloadLink.vue2.js +5 -5
  76. package/dist/features/ExampleRequest/ExamplePicker.vue2.js +2 -2
  77. package/dist/features/ExampleRequest/ExampleRequest.vue2.js +12 -12
  78. package/dist/features/ExampleRequest/TextSelect.vue.js +6 -6
  79. package/dist/features/ExampleResponses/ExampleResponse.vue2.js +1 -1
  80. package/dist/features/ExampleResponses/ExampleResponses.vue2.js +23 -23
  81. package/dist/features/Operation/Operation.vue.js +3 -3
  82. package/dist/features/Operation/Webhooks.vue2.js +1 -1
  83. package/dist/features/Operation/components/ContentTypeSelect.vue.js +3 -3
  84. package/dist/features/Operation/components/OperationParameters.vue.js +1 -1
  85. package/dist/features/Operation/components/OperationResponses.vue.js +2 -2
  86. package/dist/features/Operation/components/ParameterHeaders.vue2.js +1 -1
  87. package/dist/features/Operation/components/ParameterList.vue2.js +4 -4
  88. package/dist/features/Operation/components/ParameterListItem.vue2.js +17 -17
  89. package/dist/features/Operation/components/RequestBody.vue2.js +5 -5
  90. package/dist/features/Operation/components/Webhook.vue2.js +5 -5
  91. package/dist/features/Operation/layouts/ClassicLayout.vue2.js +20 -20
  92. package/dist/features/Operation/layouts/ModernLayout.vue2.js +3 -3
  93. package/dist/features/Search/SearchButton.vue2.js +4 -4
  94. package/dist/features/Search/SearchModal.vue2.js +1 -1
  95. package/dist/features/TestRequestButton/TestRequestButton.vue2.js +5 -5
  96. package/dist/hooks/useNavState.js +1 -1
  97. package/dist/hooks/useSidebar.js +13 -13
  98. package/dist/index.js +21 -21
  99. package/dist/stores/useHttpClientStore.js +1 -1
  100. package/dist/style.css +1 -1
  101. package/package.json +16 -16
@@ -1,4 +1,4 @@
1
- import { defineComponent as b, useId as O, computed as S, openBlock as p, createBlock as m, unref as e, withCtx as a, createVNode as r, normalizeClass as d, createTextVNode as f, toDisplayString as u, createCommentVNode as y, createElementVNode as t } from "vue";
1
+ import { defineComponent as b, useId as O, computed as S, createBlock as p, openBlock as m, unref as e, withCtx as a, createVNode as r, createCommentVNode as y, createElementVNode as t, normalizeClass as d, createTextVNode as f, toDisplayString as u } from "vue";
2
2
  import { ScalarMarkdown as C, ScalarErrorBoundary as c } from "@scalar/components";
3
3
  import k from "../../../components/OperationPath.vue.js";
4
4
  import { useConfig as B } from "../../../hooks/useConfig.js";
@@ -28,7 +28,7 @@ const z = { class: "operation-details" }, A = { class: "examples" }, ie = /* @__
28
28
  },
29
29
  setup(n) {
30
30
  const i = O(), v = B(), l = S(() => n.operation.summary || n.operation.path);
31
- return (o, P) => (p(), m(e(w), {
31
+ return (o, P) => (m(), p(e(w), {
32
32
  id: o.id,
33
33
  "aria-labelledby": e(i),
34
34
  label: l.value,
@@ -39,7 +39,7 @@ const z = { class: "operation-details" }, A = { class: "examples" }, ie = /* @__
39
39
  loading: e(v).isLoading
40
40
  }, {
41
41
  default: a(() => [
42
- e(h)(o.operation) ? (p(), m(e(R), {
42
+ e(h)(o.operation) ? (m(), p(e(R), {
43
43
  key: 0,
44
44
  class: d(e(_)(o.operation))
45
45
  }, {
@@ -1,4 +1,4 @@
1
- import { defineComponent as S, ref as b, watch as w, nextTick as v, onMounted as K, onBeforeUnmount as g, openBlock as a, createElementBlock as n, Fragment as r, createElementVNode as s, normalizeClass as C, createVNode as p, unref as l, createTextVNode as u, toDisplayString as M } from "vue";
1
+ import { defineComponent as S, ref as b, watch as w, nextTick as v, onMounted as K, onBeforeUnmount as g, createElementBlock as a, openBlock as n, Fragment as r, createElementVNode as s, createVNode as p, normalizeClass as C, unref as l, createTextVNode as u, toDisplayString as M } from "vue";
2
2
  import { useModal as B } from "@scalar/components";
3
3
  import { ScalarIconMagnifyingGlass as E } from "@scalar/icons";
4
4
  import H from "./SearchModal.vue.js";
@@ -27,7 +27,7 @@ const N = { class: "sidebar-search-input" }, T = { class: "sidebar-search-shortc
27
27
  function k() {
28
28
  t.show();
29
29
  }
30
- return (o, e) => (a(), n(r, null, [
30
+ return (o, e) => (n(), a(r, null, [
31
31
  s("button", {
32
32
  ref_key: "button",
33
33
  ref: i,
@@ -49,9 +49,9 @@ const N = { class: "sidebar-search-input" }, T = { class: "sidebar-search-shortc
49
49
  s("span", T, [
50
50
  e[2] || (e[2] = s("span", { class: "sr-only" }, "Keyboard Shortcut:", -1)),
51
51
  s("kbd", V, [
52
- l(m)() ? (a(), n(r, { key: 0 }, [
52
+ l(m)() ? (n(), a(r, { key: 0 }, [
53
53
  u("⌘")
54
- ], 64)) : (a(), n(r, { key: 1 }, [
54
+ ], 64)) : (n(), a(r, { key: 1 }, [
55
55
  e[0] || (e[0] = s("span", { class: "sr-only" }, "CTRL", -1)),
56
56
  e[1] || (e[1] = s("span", { "aria-hidden": "true" }, "⌃", -1))
57
57
  ], 64)),
@@ -1,4 +1,4 @@
1
- import { defineComponent as Y, toRef as A, ref as W, watch as x, openBlock as h, createBlock as $, unref as s, withCtx as l, createElementVNode as n, createVNode as g, isRef as j, withKeys as b, withModifiers as R, createTextVNode as d, toDisplayString as c, createElementBlock as y, Fragment as E, renderList as G, createSlots as J, normalizeClass as Q, createCommentVNode as X } from "vue";
1
+ import { defineComponent as Y, toRef as A, ref as W, watch as x, createBlock as $, openBlock as h, unref as s, withCtx as l, createElementVNode as n, createVNode as g, withKeys as b, withModifiers as R, isRef as j, createElementBlock as y, Fragment as E, renderList as G, createSlots as J, normalizeClass as Q, createTextVNode as d, createCommentVNode as X, toDisplayString as c } from "vue";
2
2
  import { ScalarModal as Z, ScalarSearchInput as _, ScalarSearchResultList as ee, ScalarSearchResultItem as te } from "@scalar/components";
3
3
  import { nanoid as oe } from "nanoid";
4
4
  import { lazyBus as ae } from "../../components/Content/Lazy/lazyBus.js";
@@ -1,4 +1,4 @@
1
- import { defineComponent as d, computed as c, openBlock as i, createElementBlock as r, withModifiers as f, createVNode as a, unref as h, createElementVNode as k, withCtx as C, createTextVNode as s, toDisplayString as u, Fragment as y } from "vue";
1
+ import { defineComponent as d, computed as c, createElementBlock as i, openBlock as r, withModifiers as f, createVNode as a, createElementVNode as h, unref as k, withCtx as C, createTextVNode as s, toDisplayString as u, Fragment as y } from "vue";
2
2
  import { ScalarIcon as B } from "@scalar/components";
3
3
  import b from "../../components/ScreenReader.vue.js";
4
4
  import { useConfig as g } from "../../hooks/useConfig.js";
@@ -17,25 +17,25 @@ const v = ["method"], S = /* @__PURE__ */ d({
17
17
  requestUid: o.operation.uid
18
18
  });
19
19
  };
20
- return (e, n) => e.operation && l.value ? (i(), r("button", {
20
+ return (e, n) => e.operation && l.value ? (r(), i("button", {
21
21
  key: 0,
22
22
  class: "show-api-client-button",
23
23
  method: e.operation.method,
24
24
  type: "button",
25
25
  onClick: f(m, ["stop"])
26
26
  }, [
27
- a(h(B), {
27
+ a(k(B), {
28
28
  icon: "Play",
29
29
  size: "sm"
30
30
  }),
31
- n[0] || (n[0] = k("span", null, "Test Request", -1)),
31
+ n[0] || (n[0] = h("span", null, "Test Request", -1)),
32
32
  a(b, null, {
33
33
  default: C(() => [
34
34
  s("(" + u(e.operation.method) + " " + u(e.operation.path) + ")", 1)
35
35
  ]),
36
36
  _: 1
37
37
  })
38
- ], 8, v)) : (i(), r(y, { key: 1 }, [
38
+ ], 8, v)) : (r(), i(y, { key: 1 }, [
39
39
  s(" ")
40
40
  ], 64));
41
41
  }
@@ -1,7 +1,7 @@
1
1
  import { useConfig as b } from "./useConfig.js";
2
2
  import { combineUrlAndPath as R } from "@scalar/oas-utils/helpers";
3
3
  import { slug as i } from "github-slugger";
4
- import { ref as l, inject as y } from "vue";
4
+ import { inject as y, ref as l } from "vue";
5
5
  const U = Symbol(), P = l(!1), k = l(""), x = l(""), T = (d) => {
6
6
  const { isIntersectionEnabled: f, hash: o, hashPrefix: r } = y(U, {
7
7
  isIntersectionEnabled: P,
@@ -1,14 +1,14 @@
1
1
  import { isOperationDeprecated as F } from "../libs/operation.js";
2
2
  import { ssrState as Y } from "@scalar/oas-utils/helpers";
3
- import { ref as w, reactive as z, computed as P, watch as U } from "vue";
3
+ import { reactive as z, ref as w, watch as U, computed as P } from "vue";
4
4
  import { lazyBus as Z } from "../components/Content/Lazy/lazyBus.js";
5
5
  import { useNavState as $ } from "./useNavState.js";
6
+ import { getHeadingsFromMarkdown as ee } from "../helpers/getHeadingsFromMarkdown.js";
6
7
  import { getLowestHeadingLevel as q } from "../helpers/getLowestHeadingLevel.js";
7
- import { hasModels as ee } from "../helpers/hasModels.js";
8
- import { getModels as _ } from "../helpers/getModels.js";
9
- import { hasWebhooks as te } from "../helpers/hasWebhooks.js";
10
- import { getHeadingsFromMarkdown as se } from "../helpers/getHeadingsFromMarkdown.js";
11
- import { scrollToId as N } from "../helpers/scrollToId.js";
8
+ import { scrollToId as _ } from "../helpers/scrollToId.js";
9
+ import { hasModels as te } from "../helpers/hasModels.js";
10
+ import { getModels as N } from "../helpers/getModels.js";
11
+ import { hasWebhooks as se } from "../helpers/hasWebhooks.js";
12
12
  const re = "introduction", O = w(null), c = w(void 0), g = z({});
13
13
  function R(t) {
14
14
  var p, s, l;
@@ -32,7 +32,7 @@ function I(t, a) {
32
32
  }
33
33
  const x = w([]);
34
34
  function ae(t) {
35
- const a = se(t), i = q(a);
35
+ const a = ee(t), i = q(a);
36
36
  return a.filter((d) => (
37
37
  // highest level, eg. # Introduction
38
38
  d.depth === i || // second highest level, eg. ## Authentication
@@ -103,22 +103,22 @@ const Q = P(() => {
103
103
  }
104
104
  };
105
105
  });
106
- let S = ee(c.value) && !J.value ? [
106
+ let S = te(c.value) && !J.value ? [
107
107
  {
108
108
  id: a(),
109
109
  title: "Models",
110
110
  show: !0,
111
- children: Object.keys(_(c.value) ?? {}).map((e) => {
111
+ children: Object.keys(N(c.value) ?? {}).map((e) => {
112
112
  var u;
113
113
  const o = a({ name: e });
114
114
  return s[o] = e, {
115
115
  id: o,
116
- title: ((u = _(c.value)) == null ? void 0 : u[e]).title ?? e,
116
+ title: ((u = N(c.value)) == null ? void 0 : u[e]).title ?? e,
117
117
  show: !0
118
118
  };
119
119
  })
120
120
  }
121
- ] : [], k = te(c.value) ? [
121
+ ] : [], k = se(c.value) ? [
122
122
  {
123
123
  id: p(),
124
124
  title: "Webhooks",
@@ -179,10 +179,10 @@ const Q = P(() => {
179
179
  const i = (d = O.value) == null ? void 0 : d.getSectionId(t);
180
180
  if (i && i !== t)
181
181
  if (y[i])
182
- N(t, a);
182
+ _(t, a);
183
183
  else {
184
184
  const p = Z.on((s) => {
185
- s.id === t && (N(t, a), p());
185
+ s.id === t && (_(t, a), p());
186
186
  });
187
187
  I(i, !0);
188
188
  }