@scalar/api-reference 1.32.1 → 1.32.5

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 (110) hide show
  1. package/CHANGELOG.md +83 -0
  2. package/README.md +1 -1
  3. package/dist/browser/standalone.js +15738 -15439
  4. package/dist/browser/webpack-stats.json +1 -1
  5. package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
  6. package/dist/components/ApiReferenceLayout.vue.js +1 -1
  7. package/dist/components/ApiReferenceLayout.vue2.js +163 -158
  8. package/dist/components/Badge/Badge.vue.d.ts.map +1 -1
  9. package/dist/components/Badge/Badge.vue.js +1 -1
  10. package/dist/components/Card/CardHeader.vue.d.ts.map +1 -1
  11. package/dist/components/Card/CardHeader.vue.js +2 -2
  12. package/dist/components/Card/CardTab.vue.d.ts.map +1 -1
  13. package/dist/components/Card/CardTab.vue.js +3 -3
  14. package/dist/components/Card/CardTabHeader.vue.d.ts.map +1 -1
  15. package/dist/components/Card/CardTabHeader.vue.js +2 -2
  16. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.js +1 -1
  17. package/dist/components/Content/ClientLibraries/ClientSelector.vue.js +1 -1
  18. package/dist/components/Content/Introduction/Introduction.vue.js +2 -2
  19. package/dist/components/Content/Lazy/Loading.vue.d.ts +1 -3
  20. package/dist/components/Content/Lazy/Loading.vue.d.ts.map +1 -1
  21. package/dist/components/Content/Lazy/Loading.vue.js +89 -89
  22. package/dist/components/Content/Models/Models.vue.d.ts.map +1 -1
  23. package/dist/components/Content/Models/Models.vue.js +2 -2
  24. package/dist/components/Content/Models/Models.vue2.js +59 -56
  25. package/dist/components/Content/Schema/RenderString.vue.d.ts +6 -0
  26. package/dist/components/Content/Schema/RenderString.vue.d.ts.map +1 -0
  27. package/dist/components/Content/Schema/RenderString.vue.js +14 -0
  28. package/dist/components/Content/Schema/RenderString.vue2.js +4 -0
  29. package/dist/components/Content/Schema/Schema.vue.d.ts +1 -1
  30. package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
  31. package/dist/components/Content/Schema/Schema.vue.js +2 -2
  32. package/dist/components/Content/Schema/Schema.vue2.js +76 -75
  33. package/dist/components/Content/Schema/SchemaComposition.vue.d.ts.map +1 -1
  34. package/dist/components/Content/Schema/SchemaComposition.vue.js +58 -66
  35. package/dist/components/Content/Schema/SchemaEnumValues.vue.d.ts +19 -0
  36. package/dist/components/Content/Schema/SchemaEnumValues.vue.d.ts.map +1 -0
  37. package/dist/components/Content/Schema/SchemaEnumValues.vue.js +7 -0
  38. package/dist/components/Content/Schema/SchemaEnumValues.vue2.js +125 -0
  39. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +2 -2
  40. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
  41. package/dist/components/Content/Schema/SchemaProperty.vue.js +1 -1
  42. package/dist/components/Content/Schema/SchemaProperty.vue2.js +96 -170
  43. package/dist/components/Content/Schema/SchemaPropertyDescription.vue.d.ts +18 -0
  44. package/dist/components/Content/Schema/SchemaPropertyDescription.vue.d.ts.map +1 -0
  45. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
  46. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +1 -1
  47. package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +155 -160
  48. package/dist/components/Content/Schema/helpers/get-schema-type.d.ts +6 -0
  49. package/dist/components/Content/Schema/helpers/get-schema-type.d.ts.map +1 -0
  50. package/dist/components/Content/Schema/helpers/get-schema-type.js +20 -0
  51. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.js +1 -1
  52. package/dist/components/Content/Schema/helpers/optimizeValueForDisplay.d.ts.map +1 -1
  53. package/dist/components/Content/Schema/helpers/schema-name.d.ts.map +1 -1
  54. package/dist/components/Content/Schema/helpers/schema-name.js +20 -46
  55. package/dist/features/Operation/components/ContentTypeSelect.vue.d.ts.map +1 -1
  56. package/dist/features/Operation/components/ContentTypeSelect.vue.js +6 -6
  57. package/dist/features/Operation/components/ParameterListItem.vue.js +3 -3
  58. package/dist/features/Operation/components/RequestBody.vue.d.ts.map +1 -1
  59. package/dist/features/Operation/components/RequestBody.vue.js +1 -1
  60. package/dist/features/Operation/components/RequestBody.vue2.js +13 -10
  61. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
  62. package/dist/features/Operation/layouts/ClassicLayout.vue.js +1 -1
  63. package/dist/features/Operation/layouts/ClassicLayout.vue2.js +64 -60
  64. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
  65. package/dist/features/Operation/layouts/ModernLayout.vue.js +2 -2
  66. package/dist/features/Operation/layouts/ModernLayout.vue2.js +13 -13
  67. package/dist/features/Search/SearchButton.vue.d.ts +1 -0
  68. package/dist/features/Search/SearchButton.vue.d.ts.map +1 -1
  69. package/dist/features/Search/SearchButton.vue.js +36 -34
  70. package/dist/features/Search/SearchModal.vue.d.ts +1 -0
  71. package/dist/features/Search/SearchModal.vue.d.ts.map +1 -1
  72. package/dist/features/Search/SearchModal.vue.js +1 -1
  73. package/dist/features/Search/SearchModal.vue2.js +112 -112
  74. package/dist/features/Search/useSearchIndex.d.ts +4 -3
  75. package/dist/features/Search/useSearchIndex.d.ts.map +1 -1
  76. package/dist/features/Search/useSearchIndex.js +119 -82
  77. package/dist/features/api-client-modal/ApiClientModal.vue.d.ts +2 -2
  78. package/dist/features/api-client-modal/ApiClientModal.vue.d.ts.map +1 -1
  79. package/dist/features/api-client-modal/ApiClientModal.vue.js +47 -38
  80. package/dist/features/api-client-modal/useApiClient.d.ts +334 -334
  81. package/dist/features/api-client-modal/useApiClient.d.ts.map +1 -1
  82. package/dist/features/base-url/BaseUrl.vue.js +1 -1
  83. package/dist/features/example-responses/ExampleResponse.vue.js +3 -3
  84. package/dist/features/example-responses/ExampleResponse.vue2.js +7 -7
  85. package/dist/features/example-responses/ExampleResponses.vue.d.ts +1 -1
  86. package/dist/features/example-responses/ExampleResponses.vue.d.ts.map +1 -1
  87. package/dist/features/example-responses/ExampleResponses.vue.js +2 -2
  88. package/dist/features/sidebar/components/SidebarElement.vue.d.ts.map +1 -1
  89. package/dist/features/sidebar/components/SidebarElement.vue.js +1 -1
  90. package/dist/features/sidebar/components/SidebarElement.vue2.js +23 -21
  91. package/dist/features/sidebar/components/SidebarHttpBadge.vue.d.ts.map +1 -1
  92. package/dist/features/sidebar/components/SidebarHttpBadge.vue.js +2 -2
  93. package/dist/features/sidebar/components/SidebarHttpBadge.vue2.js +5 -6
  94. package/dist/features/test-request-button/TestRequestButton.vue.js +2 -2
  95. package/dist/features/traverse-schema/helpers/traverse-tags.js +26 -26
  96. package/dist/features/traverse-schema/index.d.ts +1 -1
  97. package/dist/features/traverse-schema/index.d.ts.map +1 -1
  98. package/dist/index.js +1 -1
  99. package/dist/libs/openapi.d.ts +15 -1
  100. package/dist/libs/openapi.d.ts.map +1 -1
  101. package/dist/libs/openapi.js +66 -47
  102. package/dist/standalone/lib/html-api.d.ts.map +1 -1
  103. package/dist/stores/useHttpClientStore.js +2 -2
  104. package/dist/style.css +1 -1
  105. package/dist/types.d.ts +3 -3
  106. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.d.ts +2 -2
  107. package/package.json +18 -18
  108. package/dist/hooks/useOperation.d.ts +0 -16
  109. package/dist/hooks/useOperation.d.ts.map +0 -1
  110. package/dist/hooks/useOperation.js +0 -27
@@ -1,7 +1,7 @@
1
1
  import o from "./RequestBody.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-6c0fd437"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-f3b8e406"]]);
5
5
  export {
6
6
  m as default
7
7
  };
@@ -1,8 +1,11 @@
1
- import { defineComponent as j, computed as f, ref as C, createElementBlock as a, createCommentVNode as i, openBlock as l, createElementVNode as b, createVNode as n, renderSlot as E, unref as d } from "vue";
1
+ import { defineComponent as j, computed as f, ref as C, createElementBlock as a, createCommentVNode as d, openBlock as l, createElementVNode as b, createVNode as n, renderSlot as E, unref as i } from "vue";
2
2
  import { ScalarMarkdown as P } from "@scalar/components";
3
3
  import S from "./ContentTypeSelect.vue.js";
4
4
  import y from "../../../components/Content/Schema/Schema.vue.js";
5
- const _ = { key: 0 }, O = { class: "request-body-header" }, R = { class: "request-body-title" }, g = {
5
+ const _ = {
6
+ key: 0,
7
+ class: "request-body"
8
+ }, O = { class: "request-body-header" }, R = { class: "request-body-title" }, g = {
6
9
  key: 0,
7
10
  class: "request-body-required"
8
11
  }, N = {
@@ -58,7 +61,7 @@ const _ = { key: 0 }, O = { class: "request-body-header" }, R = { class: "reques
58
61
  b("div", O, [
59
62
  b("span", R, [
60
63
  E(e.$slots, "title", {}, void 0, !0),
61
- e.requestBody.required ? (l(), a("div", g, " required ")) : i("", !0)
64
+ e.requestBody.required ? (l(), a("div", g, " required ")) : d("", !0)
62
65
  ]),
63
66
  n(S, {
64
67
  defaultValue: t.value,
@@ -66,13 +69,13 @@ const _ = { key: 0 }, O = { class: "request-body-header" }, R = { class: "reques
66
69
  onSelectContentType: s[0] || (s[0] = ({ contentType: u }) => t.value = u)
67
70
  }, null, 8, ["defaultValue", "requestBody"]),
68
71
  e.requestBody.description ? (l(), a("div", N, [
69
- n(d(P), {
72
+ n(i(P), {
70
73
  value: e.requestBody.description
71
74
  }, null, 8, ["value"])
72
- ])) : i("", !0)
75
+ ])) : d("", !0)
73
76
  ]),
74
77
  m.value ? (l(), a("div", T, [
75
- n(d(y), {
78
+ n(i(y), {
76
79
  compact: "",
77
80
  name: "Request Body",
78
81
  noncollapsible: "",
@@ -80,7 +83,7 @@ const _ = { key: 0 }, O = { class: "request-body-header" }, R = { class: "reques
80
83
  value: m.value.visibleProperties,
81
84
  "onUpdate:modelValue": h
82
85
  }, null, 8, ["schemas", "value"]),
83
- n(d(y), {
86
+ n(i(y), {
84
87
  additionalProperties: "",
85
88
  compact: "",
86
89
  name: "Request Body",
@@ -88,7 +91,7 @@ const _ = { key: 0 }, O = { class: "request-body-header" }, R = { class: "reques
88
91
  value: m.value.collapsedProperties
89
92
  }, null, 8, ["schemas", "value"])
90
93
  ])) : (p = e.requestBody.content) != null && p[t.value] ? (l(), a("div", M, [
91
- n(d(y), {
94
+ n(i(y), {
92
95
  compact: "",
93
96
  name: "Request Body",
94
97
  noncollapsible: "",
@@ -96,8 +99,8 @@ const _ = { key: 0 }, O = { class: "request-body-header" }, R = { class: "reques
96
99
  value: (r = (o = e.requestBody.content) == null ? void 0 : o[t.value]) == null ? void 0 : r.schema,
97
100
  "onUpdate:modelValue": h
98
101
  }, null, 8, ["schemas", "value"])
99
- ])) : i("", !0)
100
- ])) : i("", !0);
102
+ ])) : d("", !0)
103
+ ])) : d("", !0);
101
104
  };
102
105
  }
103
106
  });
@@ -1 +1 @@
1
- {"version":3,"file":"ClassicLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ClassicLayout.vue"],"names":[],"mappings":"AAiVA,OAAO,KAAK,EACV,UAAU,EACV,OAAO,EACP,MAAM,EACP,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAWvD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AAcjE,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,WAAW,CAAC,WAAW,CAAA;IAC/B,SAAS,EAAE,WAAW,CAAC,eAAe,CAAA;IACtC,SAAS,EAAE,OAAO,CAAA;IAClB;;OAEG;IACH,UAAU,EAAE,UAAU,CAAA;IACtB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,OAAO,EAAE,OAAO,GAAG,SAAS,CAAA;IAC5B,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAC;;;;;;AA2UF,wBAQG"}
1
+ {"version":3,"file":"ClassicLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ClassicLayout.vue"],"names":[],"mappings":"AAqXA,OAAO,KAAK,EACV,UAAU,EACV,OAAO,EACP,MAAM,EACP,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAWvD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AAcjE,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,WAAW,CAAC,WAAW,CAAA;IAC/B,SAAS,EAAE,WAAW,CAAC,eAAe,CAAA;IACtC,SAAS,EAAE,OAAO,CAAA;IAClB;;OAEG;IACH,UAAU,EAAE,UAAU,CAAA;IACtB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,OAAO,EAAE,OAAO,GAAG,SAAS,CAAA;IAC5B,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAC;;;;;;AA2VF,wBAQG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./ClassicLayout.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-f1a2267c"]]);
4
+ const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-3bc6e3e0"]]);
5
5
  export {
6
6
  c as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as S, computed as V, createBlock as a, openBlock as n, unref as o, createSlots as w, withCtx as i, createElementVNode as s, createVNode as t, createCommentVNode as p, withModifiers as B, toDisplayString as u, normalizeClass as T, createTextVNode as f } from "vue";
1
+ import { defineComponent as B, computed as S, createBlock as n, openBlock as p, unref as o, createSlots as V, withCtx as a, createElementVNode as s, createVNode as t, createCommentVNode as d, withModifiers as w, toDisplayString as u, normalizeClass as T, createTextVNode as f } from "vue";
2
2
  import { ScalarIcon as I, ScalarIconButton as R, ScalarMarkdown as N } from "@scalar/components";
3
3
  import { ScalarIconWebhooksLogo as O } from "@scalar/icons";
4
4
  import { useClipboard as P } from "@scalar/use-hooks/useClipboard";
@@ -9,12 +9,12 @@ import D from "../components/OperationParameters.vue.js";
9
9
  import E from "../components/OperationResponses.vue.js";
10
10
  import L from "../../../components/Section/SectionAccordion.vue.js";
11
11
  import U from "../../example-responses/ExampleResponses.vue.js";
12
- import _ from "../../example-request/ExampleRequest.vue.js";
13
- import M from "../../test-request-button/TestRequestButton.vue.js";
12
+ import M from "../../example-request/ExampleRequest.vue.js";
13
+ import _ from "../../test-request-button/TestRequestButton.vue.js";
14
14
  import j from "../../../components/HttpMethod/HttpMethod.vue.js";
15
15
  import F from "../../../components/Anchor/Anchor.vue.js";
16
16
  import v from "../../../components/Badge/Badge.vue.js";
17
- const G = { class: "operation-title" }, H = { class: "operation-details" }, J = { class: "endpoint-label" }, K = { class: "endpoint-label-path" }, Q = { class: "endpoint-label-name" }, X = { class: "endpoint-content" }, Y = { class: "operation-details-card" }, Z = { class: "operation-details-card-item" }, x = { class: "operation-details-card-item" }, ve = /* @__PURE__ */ S({
17
+ const G = { class: "operation-title" }, H = { class: "operation-details" }, J = { class: "endpoint-label" }, K = { class: "endpoint-label-path" }, Q = { class: "endpoint-label-name" }, X = { class: "endpoint-content" }, Y = { class: "operation-details-card" }, Z = { class: "operation-details-card-item" }, x = { class: "operation-details-card-item" }, ve = /* @__PURE__ */ B({
18
18
  __name: "ClassicLayout",
19
19
  props: {
20
20
  id: {},
@@ -28,21 +28,21 @@ const G = { class: "operation-title" }, H = { class: "operation-details" }, J =
28
28
  schemas: {}
29
29
  },
30
30
  emits: ["update:modelValue"],
31
- setup(d, { emit: b }) {
32
- const g = V(() => {
31
+ setup(m, { emit: b }) {
32
+ const g = S(() => {
33
33
  var e;
34
- return ((e = d.operation) == null ? void 0 : e.summary) || d.path || "";
35
- }), { copyToClipboard: k } = P(), C = $(), q = b, m = (e) => {
34
+ return ((e = m.operation) == null ? void 0 : e.summary) || m.path || "";
35
+ }), { copyToClipboard: k } = P(), C = $(), q = b, c = (e) => {
36
36
  q("update:modelValue", e);
37
37
  };
38
- return (e, r) => {
39
- var c;
40
- return n(), a(o(L), {
38
+ return (e, l) => {
39
+ var h;
40
+ return p(), n(o(L), {
41
41
  id: e.id,
42
42
  class: "reference-endpoint",
43
43
  transparent: ""
44
- }, w({
45
- title: i(() => [
44
+ }, V({
45
+ title: a(() => [
46
46
  s("div", G, [
47
47
  s("div", H, [
48
48
  t(o(j), {
@@ -54,7 +54,7 @@ const G = { class: "operation-title" }, H = { class: "operation-details" }, J =
54
54
  id: e.id,
55
55
  class: "endpoint-anchor"
56
56
  }, {
57
- default: i(() => [
57
+ default: a(() => [
58
58
  s("h3", J, [
59
59
  s("div", K, [
60
60
  t(W, {
@@ -63,25 +63,25 @@ const G = { class: "operation-title" }, H = { class: "operation-details" }, J =
63
63
  }, null, 8, ["deprecated", "path"])
64
64
  ]),
65
65
  s("div", Q, u(g.value), 1),
66
- o(y)(e.operation) ? (n(), a(o(v), {
66
+ o(y)(e.operation) ? (p(), n(o(v), {
67
67
  key: 0,
68
68
  class: T(o(A)(e.operation))
69
69
  }, {
70
- default: i(() => [
70
+ default: a(() => [
71
71
  f(u(o(y)(e.operation)), 1)
72
72
  ]),
73
73
  _: 1
74
- }, 8, ["class"])) : p("", !0),
75
- e.isWebhook ? (n(), a(o(v), {
74
+ }, 8, ["class"])) : d("", !0),
75
+ e.isWebhook ? (p(), n(o(v), {
76
76
  key: 1,
77
77
  class: "font-code text-green flex w-fit items-center justify-center gap-1"
78
78
  }, {
79
- default: i(() => [
79
+ default: a(() => [
80
80
  t(o(O), { weight: "bold" }),
81
- r[1] || (r[1] = f("Webhook "))
81
+ l[1] || (l[1] = f("Webhook "))
82
82
  ]),
83
83
  _: 1
84
- })) : p("", !0)
84
+ })) : d("", !0)
85
85
  ])
86
86
  ]),
87
87
  _: 1
@@ -89,13 +89,13 @@ const G = { class: "operation-title" }, H = { class: "operation-details" }, J =
89
89
  ])
90
90
  ])
91
91
  ]),
92
- actions: i(({ active: l }) => {
93
- var h;
92
+ actions: a(({ active: i }) => {
93
+ var r;
94
94
  return [
95
- l && e.request ? (n(), a(o(M), {
95
+ i && e.request ? (p(), n(o(_), {
96
96
  key: 0,
97
97
  operation: e.request
98
- }, null, 8, ["operation"])) : (h = o(C)) != null && h.hideTestRequestButton ? p("", !0) : (n(), a(o(I), {
98
+ }, null, 8, ["operation"])) : (r = o(C)) != null && r.hideTestRequestButton ? d("", !0) : (p(), n(o(I), {
99
99
  key: 1,
100
100
  class: "endpoint-try-hint size-6",
101
101
  icon: "Play",
@@ -107,50 +107,54 @@ const G = { class: "operation-title" }, H = { class: "operation-details" }, J =
107
107
  label: "Copy endpoint URL",
108
108
  size: "xs",
109
109
  variant: "ghost",
110
- onClick: r[0] || (r[0] = B((ee) => o(k)(e.path), ["stop"]))
110
+ onClick: l[0] || (l[0] = w((ee) => o(k)(e.path), ["stop"]))
111
111
  })
112
112
  ];
113
113
  }),
114
- default: i(() => [
115
- s("div", X, [
116
- s("div", Y, [
117
- s("div", Z, [
118
- t(D, {
119
- parameters: e.operation.parameters,
120
- schemas: e.schemas,
121
- "onUpdate:modelValue": m
122
- }, null, 8, ["parameters", "schemas"])
114
+ default: a(() => {
115
+ var i, r;
116
+ return [
117
+ s("div", X, [
118
+ s("div", Y, [
119
+ s("div", Z, [
120
+ t(D, {
121
+ parameters: (i = e.operation) == null ? void 0 : i.parameters,
122
+ requestBody: (r = e.operation) == null ? void 0 : r.requestBody,
123
+ schemas: e.schemas,
124
+ "onUpdate:modelValue": c
125
+ }, null, 8, ["parameters", "requestBody", "schemas"])
126
+ ]),
127
+ s("div", x, [
128
+ t(E, {
129
+ collapsableItems: !1,
130
+ responses: e.operation.responses,
131
+ schemas: e.schemas
132
+ }, null, 8, ["responses", "schemas"])
133
+ ])
123
134
  ]),
124
- s("div", x, [
125
- t(E, {
126
- collapsableItems: !1,
127
- responses: e.operation.responses,
128
- schemas: e.schemas
129
- }, null, 8, ["responses", "schemas"])
130
- ])
131
- ]),
132
- t(o(U), {
133
- responses: e.operation.responses
134
- }, null, 8, ["responses"]),
135
- t(o(_), {
136
- request: e.request,
137
- method: e.method,
138
- collection: e.collection,
139
- operation: e.operation,
140
- server: e.server,
141
- "onUpdate:modelValue": m
142
- }, null, 8, ["request", "method", "collection", "operation", "server"])
143
- ])
144
- ]),
135
+ t(o(U), {
136
+ responses: e.operation.responses
137
+ }, null, 8, ["responses"]),
138
+ t(o(M), {
139
+ request: e.request,
140
+ method: e.method,
141
+ collection: e.collection,
142
+ operation: e.operation,
143
+ server: e.server,
144
+ "onUpdate:modelValue": c
145
+ }, null, 8, ["request", "method", "collection", "operation", "server"])
146
+ ])
147
+ ];
148
+ }),
145
149
  _: 2
146
150
  }, [
147
- (c = e.operation) != null && c.description ? {
151
+ (h = e.operation) != null && h.description ? {
148
152
  name: "description",
149
- fn: i(() => {
150
- var l;
153
+ fn: a(() => {
154
+ var i;
151
155
  return [
152
156
  t(o(N), {
153
- value: (l = e.operation) == null ? void 0 : l.description,
157
+ value: (i = e.operation) == null ? void 0 : i.description,
154
158
  withImages: "",
155
159
  withAnchors: "",
156
160
  transformType: "heading",
@@ -1 +1 @@
1
- {"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ModernLayout.vue"],"names":[],"mappings":"AAsLA,OAAO,KAAK,EACV,UAAU,EACV,OAAO,EACP,MAAM,EACP,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AA2BvD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAI/C,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,WAAW,CAAC,WAAW,CAAA;IAC/B,SAAS,EAAE,WAAW,CAAC,eAAe,CAAA;IACtC,SAAS,EAAE,OAAO,CAAA;IAClB;;OAEG;IACH,UAAU,EAAE,UAAU,CAAA;IACtB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,OAAO,EAAE,OAAO,GAAG,SAAS,CAAA;IAC5B,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAC;;;;;;AA4TF,wBAQG"}
1
+ {"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ModernLayout.vue"],"names":[],"mappings":"AAuLA,OAAO,KAAK,EACV,UAAU,EACV,OAAO,EACP,MAAM,EACP,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AA2BvD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAI/C,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,WAAW,CAAC,WAAW,CAAA;IAC/B,SAAS,EAAE,WAAW,CAAC,eAAe,CAAA;IACtC,SAAS,EAAE,OAAO,CAAA;IAClB;;OAEG;IACH,UAAU,EAAE,UAAU,CAAA;IACtB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,OAAO,EAAE,OAAO,GAAG,SAAS,CAAA;IAC5B,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAC;;;;;;AA6TF,wBAQG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./ModernLayout.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-199f4e09"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-d34fa883"]]);
5
5
  export {
6
- f as default
6
+ m as default
7
7
  };
@@ -3,12 +3,12 @@ import { ScalarMarkdown as D, ScalarErrorBoundary as p } from "@scalar/component
3
3
  import { ScalarIconWebhooksLogo as L } from "@scalar/icons";
4
4
  import P from "../../../components/OperationPath.vue.js";
5
5
  import { useConfig as R } from "../../../hooks/useConfig.js";
6
- import { getOperationStability as C, getOperationStabilityColor as $, isOperationDeprecated as A } from "../../../libs/openapi.js";
7
- import H from "../components/callbacks/Callbacks.vue.js";
8
- import M from "../components/OperationParameters.vue.js";
9
- import U from "../components/OperationResponses.vue.js";
10
- import j from "../../../components/Section/Section.vue.js";
11
- import z from "../../../components/Section/SectionContent.vue.js";
6
+ import { getOperationStability as C, getOperationStabilityColor as $, isOperationDeprecated as z } from "../../../libs/openapi.js";
7
+ import A from "../components/callbacks/Callbacks.vue.js";
8
+ import H from "../components/OperationParameters.vue.js";
9
+ import M from "../components/OperationResponses.vue.js";
10
+ import U from "../../../components/Section/Section.vue.js";
11
+ import j from "../../../components/Section/SectionContent.vue.js";
12
12
  import B from "../../../components/Badge/Badge.vue.js";
13
13
  import F from "../../../components/Section/SectionHeader.vue.js";
14
14
  import G from "../../../components/Anchor/Anchor.vue.js";
@@ -39,20 +39,20 @@ const Z = { class: "operation-details" }, _ = { class: "examples" }, ke = /* @__
39
39
  }), T = w, c = O(), E = R(), f = (e) => {
40
40
  T("update:modelValue", e);
41
41
  };
42
- return (e, h) => (s(), l(o(j), {
42
+ return (e, h) => (s(), l(o(U), {
43
43
  id: e.id,
44
44
  "aria-labelledby": o(c),
45
45
  label: u.value,
46
46
  tabindex: "-1"
47
47
  }, {
48
48
  default: r(() => [
49
- a(o(z), {
49
+ a(o(j), {
50
50
  loading: o(E).isLoading
51
51
  }, {
52
52
  default: r(() => [
53
53
  o(C)(e.operation) ? (s(), l(o(B), {
54
54
  key: 0,
55
- class: S(o($)(e.operation))
55
+ class: S(["capitalize", o($)(e.operation)])
56
56
  }, {
57
57
  default: r(() => [
58
58
  m(q(o(C)(e.operation)), 1)
@@ -70,7 +70,7 @@ const Z = { class: "operation-details" }, _ = { class: "examples" }, ke = /* @__
70
70
  _: 1
71
71
  })) : i("", !0),
72
72
  n("div", {
73
- class: S(o(A)(e.operation) ? "deprecated" : "")
73
+ class: S(o(z)(e.operation) ? "deprecated" : "")
74
74
  }, [
75
75
  a(o(F), null, {
76
76
  default: r(() => [
@@ -106,13 +106,13 @@ const Z = { class: "operation-details" }, _ = { class: "examples" }, ke = /* @__
106
106
  transformType: "heading",
107
107
  anchorPrefix: e.id
108
108
  }, null, 8, ["value", "anchorPrefix"]),
109
- a(M, {
109
+ a(H, {
110
110
  parameters: (b = e.operation) == null ? void 0 : b.parameters,
111
111
  requestBody: (y = e.operation) == null ? void 0 : y.requestBody,
112
112
  schemas: e.schemas,
113
113
  "onUpdate:modelValue": f
114
114
  }, null, 8, ["parameters", "requestBody", "schemas"]),
115
- a(U, {
115
+ a(M, {
116
116
  responses: (g = e.operation) == null ? void 0 : g.responses,
117
117
  schemas: e.schemas
118
118
  }, null, 8, ["responses", "schemas"]),
@@ -120,7 +120,7 @@ const Z = { class: "operation-details" }, _ = { class: "examples" }, ke = /* @__
120
120
  default: r(() => {
121
121
  var k, v;
122
122
  return [
123
- (k = e.operation) != null && k.callbacks ? (s(), l(H, {
123
+ (k = e.operation) != null && k.callbacks ? (s(), l(A, {
124
124
  key: 0,
125
125
  callbacks: (v = e.operation) == null ? void 0 : v.callbacks,
126
126
  collection: e.collection,
@@ -2,6 +2,7 @@ import type { Spec } from '@scalar/types/legacy';
2
2
  type __VLS_Props = {
3
3
  spec: Spec;
4
4
  searchHotKey?: string;
5
+ hideModels?: boolean;
5
6
  };
6
7
  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>;
7
8
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"SearchButton.vue.d.ts","sourceRoot":"","sources":["../../../src/features/Search/SearchButton.vue"],"names":[],"mappings":"AAiFA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAQhD,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,IAAI,CAAA;IACV,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB,CAAC;;AAiJF,wBAMG"}
1
+ {"version":3,"file":"SearchButton.vue.d.ts","sourceRoot":"","sources":["../../../src/features/Search/SearchButton.vue"],"names":[],"mappings":"AAmFA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAQhD,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,IAAI,CAAA;IACV,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,CAAC;;AAiJF,wBAMG"}
@@ -1,63 +1,65 @@
1
- import { defineComponent as k, ref as w, watch as C, nextTick as v, onMounted as K, onBeforeUnmount as B, createElementBlock as a, openBlock as r, Fragment as s, createVNode as c, unref as l, normalizeClass as b, withCtx as u, createElementVNode as n, createTextVNode as m, toDisplayString as E } from "vue";
2
- import { useModal as H, ScalarSidebarSearchButton as M } from "@scalar/components";
1
+ import { defineComponent as k, ref as w, watch as M, nextTick as C, onMounted as v, onBeforeUnmount as B, createElementBlock as n, openBlock as r, Fragment as s, createVNode as u, unref as l, normalizeClass as K, withCtx as c, createElementVNode as a, createTextVNode as m, toDisplayString as b } from "vue";
2
+ import { useModal as E, ScalarSidebarSearchButton as H } from "@scalar/components";
3
3
  import { isMacOS as f } from "@scalar/helpers/general/is-mac-os";
4
4
  import g from "./SearchModal.vue.js";
5
5
  import { useApiClient as L } from "../api-client-modal/useApiClient.js";
6
- const O = /* @__PURE__ */ k({
6
+ const $ = /* @__PURE__ */ k({
7
7
  __name: "SearchButton",
8
8
  props: {
9
9
  spec: {},
10
- searchHotKey: { default: "k" }
10
+ searchHotKey: { default: "k" },
11
+ hideModels: { type: Boolean, default: !1 }
11
12
  },
12
- setup(y) {
13
- const i = w(), o = H(), { client: S } = L(), d = (t) => {
13
+ setup(h) {
14
+ const d = w(), t = E(), { client: y } = L(), i = (o) => {
14
15
  var e;
15
- (f() ? t.metaKey : t.ctrlKey) && t.key === y.searchHotKey && !((e = S.value) != null && e.modalState.open) && (t.preventDefault(), t.stopPropagation(), o.open ? o.hide() : o.show());
16
+ (f() ? o.metaKey : o.ctrlKey) && o.key === h.searchHotKey && !((e = y.value) != null && e.modalState.open) && (o.preventDefault(), o.stopPropagation(), t.open ? t.hide() : t.show());
16
17
  };
17
- C(
18
- () => o.open,
19
- (t, e) => {
20
- !t && e && v(() => {
18
+ M(
19
+ () => t.open,
20
+ (o, e) => {
21
+ !o && e && C(() => {
21
22
  var p;
22
- (p = i.value) == null || p.$el.focus();
23
+ (p = d.value) == null || p.$el.focus();
23
24
  });
24
25
  }
25
- ), K(() => window.addEventListener("keydown", d)), B(() => window.removeEventListener("keydown", d));
26
- function h() {
27
- o.show();
26
+ ), v(() => window.addEventListener("keydown", i)), B(() => window.removeEventListener("keydown", i));
27
+ function S() {
28
+ t.show();
28
29
  }
29
- return (t, e) => (r(), a(s, null, [
30
- c(l(M), {
30
+ return (o, e) => (r(), n(s, null, [
31
+ u(l(H), {
31
32
  ref_key: "button",
32
- ref: i,
33
- class: b(["w-full", t.$attrs.class]),
34
- onClick: h
33
+ ref: d,
34
+ class: K(["w-full", o.$attrs.class]),
35
+ onClick: S
35
36
  }, {
36
- shortcut: u(() => [
37
- l(f)() ? (r(), a(s, { key: 0 }, [
37
+ shortcut: c(() => [
38
+ l(f)() ? (r(), n(s, { key: 0 }, [
38
39
  m("⌘")
39
- ], 64)) : (r(), a(s, { key: 1 }, [
40
- e[0] || (e[0] = n("span", { class: "sr-only" }, "CTRL", -1)),
41
- e[1] || (e[1] = n("span", { "aria-hidden": "true" }, "⌃", -1))
40
+ ], 64)) : (r(), n(s, { key: 1 }, [
41
+ e[0] || (e[0] = a("span", { class: "sr-only" }, "CTRL", -1)),
42
+ e[1] || (e[1] = a("span", { "aria-hidden": "true" }, "⌃", -1))
42
43
  ], 64)),
43
- m(" " + E(t.searchHotKey), 1)
44
+ m(" " + b(o.searchHotKey), 1)
44
45
  ]),
45
- default: u(() => [
46
- e[2] || (e[2] = n("span", { class: "sr-only" }, "Open Search", -1)),
47
- e[3] || (e[3] = n("span", {
46
+ default: c(() => [
47
+ e[2] || (e[2] = a("span", { class: "sr-only" }, "Open Search", -1)),
48
+ e[3] || (e[3] = a("span", {
48
49
  "aria-hidden": "true",
49
50
  class: "sidebar-search-placeholder"
50
51
  }, " Search ", -1))
51
52
  ]),
52
53
  _: 1
53
54
  }, 8, ["class"]),
54
- c(g, {
55
- modalState: l(o),
56
- parsedSpec: t.spec
57
- }, null, 8, ["modalState", "parsedSpec"])
55
+ u(g, {
56
+ modalState: l(t),
57
+ hideModels: o.hideModels,
58
+ parsedSpec: o.spec
59
+ }, null, 8, ["modalState", "hideModels", "parsedSpec"])
58
60
  ], 64));
59
61
  }
60
62
  });
61
63
  export {
62
- O as default
64
+ $ as default
63
65
  };
@@ -3,6 +3,7 @@ import type { Spec } from '@scalar/types/legacy';
3
3
  type __VLS_Props = {
4
4
  parsedSpec: Spec;
5
5
  modalState: ModalState;
6
+ hideModels: boolean;
6
7
  };
7
8
  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>;
8
9
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"SearchModal.vue.d.ts","sourceRoot":"","sources":["../../../src/features/Search/SearchModal.vue"],"names":[],"mappings":"AAqSA,OAAO,EAML,KAAK,UAAU,EAChB,MAAM,oBAAoB,CAAA;AAE3B,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAgBhD,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,IAAI,CAAA;IAChB,UAAU,EAAE,UAAU,CAAA;CACvB,CAAC;;AA6ZF,wBAOG"}
1
+ {"version":3,"file":"SearchModal.vue.d.ts","sourceRoot":"","sources":["../../../src/features/Search/SearchModal.vue"],"names":[],"mappings":"AA8SA,OAAO,EAKL,KAAK,UAAU,EAChB,MAAM,oBAAoB,CAAA;AAU3B,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAgBhD,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,IAAI,CAAA;IAChB,UAAU,EAAE,UAAU,CAAA;IACtB,UAAU,EAAE,OAAO,CAAA;CACpB,CAAC;;AA8ZF,wBAOG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./SearchModal.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-1b20799c"]]);
4
+ const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-92d07cc9"]]);
5
5
  export {
6
6
  m as default
7
7
  };