@scalar/api-reference 1.28.33 → 1.29.1

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 (227) hide show
  1. package/CHANGELOG.md +83 -0
  2. package/dist/browser/standalone.js +12818 -13331
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/Anchor/Anchor.vue.d.ts.map +1 -1
  5. package/dist/components/Anchor/Anchor.vue.js +2 -2
  6. package/dist/components/Anchor/Anchor.vue2.js +24 -22
  7. package/dist/components/ApiReferenceLayout.vue.d.ts +2 -2
  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 +50 -50
  11. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts.map +1 -1
  12. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.js +2 -2
  13. package/dist/components/Content/ClientLibraries/ClientLibraries.vue2.js +5 -5
  14. package/dist/components/Content/ClientLibraries/useFeaturedHttpClients.d.ts +1 -1
  15. package/dist/components/Content/ClientLibraries/useFeaturedHttpClients.d.ts.map +1 -1
  16. package/dist/components/Content/Content.vue.js +2 -2
  17. package/dist/components/Content/Content.vue2.js +31 -32
  18. package/dist/components/Content/Introduction/Introduction.vue.js +1 -1
  19. package/dist/components/Content/Introduction/Introduction.vue2.js +21 -21
  20. package/dist/components/Content/Lazy/Loading.vue.js +22 -22
  21. package/dist/components/Content/Models/Models.vue.d.ts.map +1 -1
  22. package/dist/components/Content/Models/Models.vue.js +2 -2
  23. package/dist/components/Content/Models/Models.vue2.js +17 -17
  24. package/dist/components/Content/Models/ModelsAccordion.vue.d.ts.map +1 -1
  25. package/dist/components/Content/Models/ModelsAccordion.vue.js +2 -2
  26. package/dist/components/Content/Models/ModelsAccordion.vue2.js +14 -14
  27. package/dist/components/Content/Schema/Schema.preview.d.ts +98 -15
  28. package/dist/components/Content/Schema/Schema.preview.d.ts.map +1 -1
  29. package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
  30. package/dist/components/Content/Schema/Schema.vue.js +2 -2
  31. package/dist/components/Content/Schema/Schema.vue2.js +2 -1
  32. package/dist/components/Content/Schema/{SchemaDiscriminator.vue.d.ts → SchemaComposition.vue.d.ts} +3 -2
  33. package/dist/components/Content/Schema/SchemaComposition.vue.d.ts.map +1 -0
  34. package/dist/components/Content/Schema/SchemaComposition.vue.js +187 -0
  35. package/dist/components/Content/Schema/SchemaComposition.vue2.js +4 -0
  36. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +1 -1
  37. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
  38. package/dist/components/Content/Schema/SchemaProperty.vue.js +2 -2
  39. package/dist/components/Content/Schema/SchemaProperty.vue2.js +31 -30
  40. package/dist/components/Content/Schema/SchemaPropertyExamples.vue.d.ts +0 -1
  41. package/dist/components/Content/Schema/SchemaPropertyExamples.vue.d.ts.map +1 -1
  42. package/dist/components/Content/Schema/SchemaPropertyExamples.vue.js +3 -3
  43. package/dist/components/Content/Schema/SchemaPropertyExamples.vue2.js +8 -9
  44. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
  45. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +1 -1
  46. package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +165 -146
  47. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.d.ts +1 -1
  48. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.d.ts.map +1 -1
  49. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.js +50 -40
  50. package/dist/components/Content/Schema/helpers/optimizeValueForDisplay.d.ts +3 -2
  51. package/dist/components/Content/Schema/helpers/optimizeValueForDisplay.d.ts.map +1 -1
  52. package/dist/components/Content/Schema/helpers/optimizeValueForDisplay.js +13 -13
  53. package/dist/components/Content/Schema/helpers/schema-composition.d.ts +12 -0
  54. package/dist/components/Content/Schema/helpers/schema-composition.d.ts.map +1 -0
  55. package/dist/components/Content/Schema/helpers/schema-composition.js +8 -0
  56. package/dist/components/Content/Schema/helpers/schema-discriminator.d.ts +4 -0
  57. package/dist/components/Content/Schema/helpers/schema-discriminator.d.ts.map +1 -0
  58. package/dist/components/Content/Tag/OperationsListItem.vue.js +1 -1
  59. package/dist/components/Content/Tag/OperationsListItem.vue2.js +1 -1
  60. package/dist/components/Content/Tag/TagAccordion.vue.js +2 -2
  61. package/dist/components/Content/Tag/TagAccordion.vue2.js +10 -10
  62. package/dist/components/Content/Tag/TagList.vue.d.ts.map +1 -1
  63. package/dist/components/Content/Tag/TagList.vue.js +8 -8
  64. package/dist/components/Content/Tag/TagSection.vue.d.ts.map +1 -1
  65. package/dist/components/Content/Tag/TagSection.vue.js +2 -2
  66. package/dist/components/Content/Tag/TagSection.vue2.js +8 -8
  67. package/dist/components/GettingStarted.vue.d.ts +2 -2
  68. package/dist/components/Layouts/Layouts.vue.d.ts +3 -0
  69. package/dist/components/Layouts/Layouts.vue.d.ts.map +1 -1
  70. package/dist/components/Layouts/Layouts.vue.js +14 -23
  71. package/dist/components/Layouts/ModernLayout.vue.d.ts.map +1 -1
  72. package/dist/components/Layouts/ModernLayout.vue.js +2 -2
  73. package/dist/components/Layouts/ModernLayout.vue2.js +51 -45
  74. package/dist/components/MobileHeader.vue.js +3 -3
  75. package/dist/components/Section/CompactSection.vue.js +2 -2
  76. package/dist/components/Section/CompactSection.vue2.js +4 -4
  77. package/dist/components/Section/Section.vue.d.ts.map +1 -1
  78. package/dist/components/Section/Section.vue.js +1 -1
  79. package/dist/components/ShowMoreButton.vue.d.ts.map +1 -1
  80. package/dist/components/ShowMoreButton.vue.js +2 -2
  81. package/dist/components/Sidebar/Sidebar.vue.d.ts +1 -1
  82. package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
  83. package/dist/components/Sidebar/Sidebar.vue.js +2 -2
  84. package/dist/components/Sidebar/Sidebar.vue2.js +1 -1
  85. package/dist/components/Sidebar/SidebarElement.vue.d.ts.map +1 -1
  86. package/dist/components/Sidebar/SidebarElement.vue.js +1 -1
  87. package/dist/components/Sidebar/SidebarElement.vue2.js +6 -6
  88. package/dist/components/SingleApiReference.vue.d.ts +1 -0
  89. package/dist/components/SingleApiReference.vue.d.ts.map +1 -1
  90. package/dist/components/SingleApiReference.vue.js +25 -22
  91. package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts +1 -1
  92. package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts.map +1 -1
  93. package/dist/features/ApiClientModal/ApiClientModal.vue.js +3 -3
  94. package/dist/features/ApiClientModal/index.d.ts +1 -1
  95. package/dist/features/ApiClientModal/index.d.ts.map +1 -1
  96. package/dist/features/ApiClientModal/useApiClient.d.ts +186 -146
  97. package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
  98. package/dist/features/BaseUrl/BaseUrl.vue.d.ts.map +1 -1
  99. package/dist/features/BaseUrl/BaseUrl.vue.js +11 -10
  100. package/dist/features/DownloadLink/DownloadLink.vue.d.ts +1 -1
  101. package/dist/features/DownloadLink/DownloadLink.vue.d.ts.map +1 -1
  102. package/dist/features/DownloadLink/DownloadLink.vue.js +1 -1
  103. package/dist/features/DownloadLink/DownloadLink.vue2.js +17 -17
  104. package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
  105. package/dist/features/ExampleRequest/ExampleRequest.vue.js +1 -1
  106. package/dist/features/ExampleRequest/ExampleRequest.vue2.js +12 -12
  107. package/dist/features/Operation/Webhooks.vue.d.ts.map +1 -1
  108. package/dist/features/Operation/Webhooks.vue.js +2 -2
  109. package/dist/features/Operation/Webhooks.vue2.js +13 -13
  110. package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
  111. package/dist/features/Operation/components/ParameterListItem.vue.js +2 -2
  112. package/dist/features/Operation/components/ParameterListItem.vue2.js +18 -18
  113. package/dist/features/Operation/components/RequestBody.vue.d.ts.map +1 -1
  114. package/dist/features/Operation/components/RequestBody.vue.js +2 -2
  115. package/dist/features/Operation/components/RequestBody.vue2.js +38 -32
  116. package/dist/features/Operation/hooks/useResponses.d.ts +1 -0
  117. package/dist/features/Operation/hooks/useResponses.d.ts.map +1 -1
  118. package/dist/features/Operation/hooks/useResponses.js +13 -12
  119. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
  120. package/dist/features/Operation/layouts/ClassicLayout.vue.js +2 -2
  121. package/dist/features/Operation/layouts/ClassicLayout.vue2.js +1 -1
  122. package/dist/features/Operation/layouts/ModernLayout.vue.js +1 -1
  123. package/dist/features/Operation/layouts/ModernLayout.vue2.js +1 -1
  124. package/dist/features/Search/SearchButton.vue.js +2 -2
  125. package/dist/features/Search/SearchButton.vue2.js +1 -1
  126. package/dist/features/Search/SearchModal.vue.d.ts.map +1 -1
  127. package/dist/features/Search/SearchModal.vue.js +2 -2
  128. package/dist/features/Search/SearchModal.vue2.js +1 -1
  129. package/dist/features/Search/useSearchIndex.d.ts +1 -1
  130. package/dist/features/Search/useSearchIndex.d.ts.map +1 -1
  131. package/dist/features/Search/useSearchIndex.js +20 -21
  132. package/dist/helpers/{isMacOs.d.ts → is-mac-os.d.ts} +1 -1
  133. package/dist/helpers/is-mac-os.d.ts.map +1 -0
  134. package/dist/helpers/parse.d.ts.map +1 -1
  135. package/dist/helpers/parse.js +1 -1
  136. package/dist/helpers/{scrollToId.d.ts → scroll-to-id.d.ts} +1 -1
  137. package/dist/helpers/scroll-to-id.d.ts.map +1 -0
  138. package/dist/helpers/sleep.d.ts +0 -2
  139. package/dist/helpers/sleep.d.ts.map +1 -1
  140. package/dist/hooks/useNavState.d.ts.map +1 -1
  141. package/dist/hooks/useNavState.js +28 -28
  142. package/dist/hooks/useReactiveSpec.js +1 -1
  143. package/dist/hooks/useSidebar.d.ts.map +1 -1
  144. package/dist/hooks/useSidebar.js +45 -49
  145. package/dist/index.d.ts +3 -3
  146. package/dist/index.d.ts.map +1 -1
  147. package/dist/index.js +44 -43
  148. package/dist/legacy/fixtures/index.d.ts +1 -1
  149. package/dist/legacy/fixtures/index.d.ts.map +1 -1
  150. package/dist/legacy/helpers/index.d.ts +1 -1
  151. package/dist/legacy/helpers/index.d.ts.map +1 -1
  152. package/dist/libs/download.d.ts +9 -0
  153. package/dist/libs/download.d.ts.map +1 -0
  154. package/dist/libs/download.js +19 -0
  155. package/dist/{helpers/getLowestHeadingLevel.d.ts → libs/markdown.d.ts} +5 -1
  156. package/dist/libs/markdown.d.ts.map +1 -0
  157. package/dist/libs/markdown.js +18 -0
  158. package/dist/libs/openapi.d.ts +56 -0
  159. package/dist/libs/openapi.d.ts.map +1 -0
  160. package/dist/libs/openapi.js +102 -0
  161. package/dist/style.css +1 -1
  162. package/dist/types.d.ts +1 -45
  163. package/dist/types.d.ts.map +1 -1
  164. package/package.json +22 -27
  165. package/dist/components/Content/Schema/SchemaDiscriminator.vue.d.ts.map +0 -1
  166. package/dist/components/Content/Schema/SchemaDiscriminator.vue.js +0 -7
  167. package/dist/components/Content/Schema/SchemaDiscriminator.vue2.js +0 -167
  168. package/dist/esm.js +0 -34
  169. package/dist/helpers/createEmptySpecification.d.ts +0 -8
  170. package/dist/helpers/createEmptySpecification.d.ts.map +0 -1
  171. package/dist/helpers/createEmptySpecification.js +0 -27
  172. package/dist/helpers/deepMerge.d.ts +0 -5
  173. package/dist/helpers/deepMerge.d.ts.map +0 -1
  174. package/dist/helpers/deepMerge.js +0 -8
  175. package/dist/helpers/generateParameters.d.ts +0 -6
  176. package/dist/helpers/generateParameters.d.ts.map +0 -1
  177. package/dist/helpers/get-request.d.ts +0 -59
  178. package/dist/helpers/get-request.d.ts.map +0 -1
  179. package/dist/helpers/getHeadingsFromMarkdown.d.ts +0 -6
  180. package/dist/helpers/getHeadingsFromMarkdown.d.ts.map +0 -1
  181. package/dist/helpers/getHeadingsFromMarkdown.js +0 -13
  182. package/dist/helpers/getLowestHeadingLevel.d.ts.map +0 -1
  183. package/dist/helpers/getLowestHeadingLevel.js +0 -7
  184. package/dist/helpers/getModels.d.ts +0 -7
  185. package/dist/helpers/getModels.d.ts.map +0 -1
  186. package/dist/helpers/getModels.js +0 -22
  187. package/dist/helpers/getVariableNames.d.ts +0 -5
  188. package/dist/helpers/getVariableNames.d.ts.map +0 -1
  189. package/dist/helpers/hasModels.d.ts +0 -3
  190. package/dist/helpers/hasModels.d.ts.map +0 -1
  191. package/dist/helpers/hasModels.js +0 -5
  192. package/dist/helpers/hasSecuritySchemes.d.ts +0 -3
  193. package/dist/helpers/hasSecuritySchemes.d.ts.map +0 -1
  194. package/dist/helpers/hasWebhooks.d.ts +0 -3
  195. package/dist/helpers/hasWebhooks.d.ts.map +0 -1
  196. package/dist/helpers/hasWebhooks.js +0 -4
  197. package/dist/helpers/index.d.ts +0 -17
  198. package/dist/helpers/index.d.ts.map +0 -1
  199. package/dist/helpers/isMacOs.d.ts.map +0 -1
  200. package/dist/helpers/mapFromObject.d.ts +0 -8
  201. package/dist/helpers/mapFromObject.d.ts.map +0 -1
  202. package/dist/helpers/mergeAllObjects.d.ts +0 -5
  203. package/dist/helpers/mergeAllObjects.d.ts.map +0 -1
  204. package/dist/helpers/scrollToId.d.ts.map +0 -1
  205. package/dist/helpers/specDownloads.d.ts +0 -7
  206. package/dist/helpers/specDownloads.d.ts.map +0 -1
  207. package/dist/helpers/specDownloads.js +0 -19
  208. package/dist/helpers/specHelpers.d.ts +0 -16
  209. package/dist/helpers/specHelpers.d.ts.map +0 -1
  210. package/dist/helpers/specHelpers.js +0 -36
  211. package/dist/helpers/waitFor.d.ts +0 -5
  212. package/dist/helpers/waitFor.d.ts.map +0 -1
  213. package/dist/hooks/index.d.ts +0 -5
  214. package/dist/hooks/index.d.ts.map +0 -1
  215. package/dist/legacy/helpers/encodeStringAsBase64.d.ts +0 -5
  216. package/dist/legacy/helpers/encodeStringAsBase64.d.ts.map +0 -1
  217. package/dist/legacy/index.d.ts +0 -5
  218. package/dist/legacy/index.d.ts.map +0 -1
  219. package/dist/legacy/types.d.ts +0 -94
  220. package/dist/legacy/types.d.ts.map +0 -1
  221. package/dist/libs/operation.d.ts +0 -15
  222. package/dist/libs/operation.d.ts.map +0 -1
  223. package/dist/libs/operation.js +0 -16
  224. package/dist/stores/index.d.ts +0 -2
  225. package/dist/stores/index.d.ts.map +0 -1
  226. /package/dist/helpers/{isMacOs.js → is-mac-os.js} +0 -0
  227. /package/dist/helpers/{scrollToId.js → scroll-to-id.js} +0 -0
@@ -1,4 +1,4 @@
1
- import { defineComponent as B, computed as i, ref as D, createElementBlock as E, createCommentVNode as m, openBlock as s, createVNode as l, createElementVNode as u, unref as r, withCtx as c, createBlock as p, normalizeClass as S, toDisplayString as b } from "vue";
1
+ import { defineComponent as B, computed as i, ref as D, createElementBlock as E, createCommentVNode as o, openBlock as s, createVNode as p, createElementVNode as u, unref as r, withCtx as c, createBlock as l, normalizeClass as S, toDisplayString as b } from "vue";
2
2
  import { Disclosure as q, DisclosureButton as P, DisclosurePanel as V } from "@headlessui/vue";
3
3
  import { ScalarIcon as I, ScalarMarkdown as j } from "@scalar/components";
4
4
  import { isDefined as N } from "@scalar/oas-utils/helpers";
@@ -22,47 +22,47 @@ const H = {
22
22
  g.value[0]
23
23
  );
24
24
  a.parameter.content && "application/json" in a.parameter.content && (t.value = "application/json");
25
- const o = i(() => !!(a.collapsableItems && (a.parameter.content || a.parameter.headers))), C = i(() => a.parameter.readOnly !== !0);
25
+ const m = i(() => !!(a.collapsableItems && (a.parameter.content || a.parameter.headers || a.parameter.schema))), C = i(() => a.parameter.readOnly !== !0);
26
26
  return (e, d) => C.value ? (s(), E("li", H, [
27
- l(r(q), null, {
27
+ p(r(q), null, {
28
28
  default: c(({ open: n }) => [
29
- o.value ? (s(), p(r(P), {
29
+ m.value ? (s(), l(r(P), {
30
30
  key: 0,
31
31
  class: S(["parameter-item-trigger flex", { "parameter-item-trigger-open": n }])
32
32
  }, {
33
33
  default: c(() => [
34
- l(r(I), {
34
+ p(r(I), {
35
35
  class: "parameter-item-icon",
36
36
  icon: n ? "ChevronDown" : "ChevronRight",
37
37
  thickness: "1.5"
38
38
  }, null, 8, ["icon"]),
39
39
  u("span", L, b(e.parameter.name), 1),
40
40
  u("span", M, [
41
- e.parameter.description ? (s(), p(r(j), {
41
+ e.parameter.description ? (s(), l(r(j), {
42
42
  key: 0,
43
43
  class: "markdown",
44
44
  value: e.parameter.description
45
- }, null, 8, ["value"])) : m("", !0)
45
+ }, null, 8, ["value"])) : o("", !0)
46
46
  ])
47
47
  ]),
48
48
  _: 2
49
- }, 1032, ["class"])) : m("", !0),
50
- l(r(V), {
49
+ }, 1032, ["class"])) : o("", !0),
50
+ p(r(V), {
51
51
  class: "parameter-item-container parameter-item-container-markdown",
52
- static: !o.value
52
+ static: !m.value
53
53
  }, {
54
54
  default: c(() => {
55
55
  var h, f, v, y, k;
56
56
  return [
57
- e.parameter.headers ? (s(), p(O, {
57
+ e.parameter.headers ? (s(), l(O, {
58
58
  key: 0,
59
59
  headers: e.parameter.headers
60
- }, null, 8, ["headers"])) : m("", !0),
61
- l(r(z), {
60
+ }, null, 8, ["headers"])) : o("", !0),
61
+ p(r(z), {
62
62
  is: "div",
63
63
  compact: "",
64
- description: o.value ? "" : e.parameter.description,
65
- name: o.value ? "" : e.parameter.name,
64
+ description: m.value ? "" : e.parameter.description,
65
+ name: m.value ? "" : e.parameter.name,
66
66
  noncollapsible: !0,
67
67
  required: e.parameter.required,
68
68
  schemas: e.schemas,
@@ -85,15 +85,15 @@ const H = {
85
85
  _: 1
86
86
  }),
87
87
  u("div", R, [
88
- o.value && a.parameter.content ? (s(), p(T, {
88
+ m.value && a.parameter.content ? (s(), l(T, {
89
89
  key: 0,
90
90
  class: "parameter-item-content-type",
91
91
  defaultValue: t.value,
92
92
  requestBody: a.parameter,
93
93
  onSelectContentType: d[0] || (d[0] = ({ contentType: n }) => t.value = n)
94
- }, null, 8, ["defaultValue", "requestBody"])) : m("", !0)
94
+ }, null, 8, ["defaultValue", "requestBody"])) : o("", !0)
95
95
  ])
96
- ])) : m("", !0);
96
+ ])) : o("", !0);
97
97
  }
98
98
  });
99
99
  export {
@@ -1 +1 @@
1
- {"version":3,"file":"RequestBody.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/RequestBody.vue"],"names":[],"mappings":"AAwMA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAC9E,OAAO,KAAK,EAAe,WAAW,EAAE,MAAM,sBAAsB,CAAA;AASpE,KAAK,WAAW,GAAG;IACjB,WAAW,CAAC,EAAE,WAAW,CAAA;IACzB,OAAO,CAAC,EACJ,SAAS,CAAC,iBAAiB,GAC3B,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,YAAY,CAAC,GACtC,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,GACxC,OAAO,CAAA;CACZ,CAAC;AAoDF,iBAAS,cAAc;WAiHT,OAAO,IAA6B;;uBARvB,GAAG;;;;EAa7B;AAaD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,kSAMnB,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":"RequestBody.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/RequestBody.vue"],"names":[],"mappings":"AA0JA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAC9E,OAAO,KAAK,EAAe,WAAW,EAAE,MAAM,sBAAsB,CAAA;AASpE,KAAK,WAAW,GAAG;IACjB,WAAW,CAAC,EAAE,WAAW,CAAA;IACzB,OAAO,CAAC,EACJ,SAAS,CAAC,iBAAiB,GAC3B,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,YAAY,CAAC,GACtC,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,GACxC,OAAO,CAAA;CACZ,CAAC;AAoDF,iBAAS,cAAc;WA6GT,OAAO,IAA6B;;uBARvB,GAAG;;;;EAa7B;AAaD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,kSAMnB,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,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 f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-1aa0f610"]]);
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-9c073db1"]]);
5
5
  export {
6
- f as default
6
+ p as default
7
7
  };
@@ -1,34 +1,37 @@
1
- import { defineComponent as B, computed as f, ref as b, createElementBlock as l, createCommentVNode as p, openBlock as u, createElementVNode as k, renderSlot as j, createVNode as a, unref as c } from "vue";
1
+ import { defineComponent as b, computed as B, ref as k, createElementBlock as a, createCommentVNode as i, openBlock as n, createElementVNode as f, createVNode as l, renderSlot as j, unref as c } from "vue";
2
2
  import { ScalarMarkdown as C } from "@scalar/components";
3
3
  import E from "./ContentTypeSelect.vue.js";
4
4
  import y from "../../../components/Content/Schema/Schema.vue.js";
5
- const P = { key: 0 }, S = { class: "request-body-title" }, V = {
5
+ const P = { key: 0 }, S = { class: "request-body-header" }, V = { class: "request-body-title" }, _ = {
6
6
  key: 0,
7
- class: "request-body-description"
7
+ class: "request-body-required"
8
8
  }, O = {
9
9
  key: 0,
10
- class: "request-body-schema"
10
+ class: "request-body-description"
11
11
  }, R = {
12
+ key: 0,
13
+ class: "request-body-schema"
14
+ }, N = {
12
15
  key: 1,
13
16
  class: "request-body-schema"
14
- }, _ = /* @__PURE__ */ B({
17
+ }, w = /* @__PURE__ */ b({
15
18
  __name: "RequestBody",
16
19
  props: {
17
20
  requestBody: {},
18
21
  schemas: {}
19
22
  },
20
- setup(i) {
21
- var h;
22
- const v = f(
23
+ setup(d) {
24
+ var q;
25
+ const v = B(
23
26
  () => {
24
27
  var e;
25
- return Object.keys(((e = i.requestBody) == null ? void 0 : e.content) ?? {});
28
+ return Object.keys(((e = d.requestBody) == null ? void 0 : e.content) ?? {});
26
29
  }
27
- ), t = b("application/json");
28
- (h = i.requestBody) != null && h.content && v.value.length > 0 && (t.value = v.value[0]);
29
- const d = f(() => {
30
- var r, n, q;
31
- const e = (q = (n = (r = i.requestBody) == null ? void 0 : r.content) == null ? void 0 : n[t.value]) == null ? void 0 : q.schema;
30
+ ), t = k("application/json");
31
+ (q = d.requestBody) != null && q.content && v.value.length > 0 && (t.value = v.value[0]);
32
+ const p = B(() => {
33
+ var r, u, h;
34
+ const e = (h = (u = (r = d.requestBody) == null ? void 0 : r.content) == null ? void 0 : u[t.value]) == null ? void 0 : h.schema;
32
35
  if ((e == null ? void 0 : e.type) !== "object" || !e.properties)
33
36
  return null;
34
37
  const s = Object.entries(e.properties);
@@ -48,48 +51,51 @@ const P = { key: 0 }, S = { class: "request-body-title" }, V = {
48
51
  });
49
52
  return (e, s) => {
50
53
  var m, o, r;
51
- return e.requestBody ? (u(), l("div", P, [
52
- k("div", S, [
53
- j(e.$slots, "title", {}, void 0, !0),
54
- a(E, {
54
+ return e.requestBody ? (n(), a("div", P, [
55
+ f("div", S, [
56
+ f("span", V, [
57
+ j(e.$slots, "title", {}, void 0, !0),
58
+ e.requestBody.required ? (n(), a("div", _, " required ")) : i("", !0)
59
+ ]),
60
+ l(E, {
55
61
  defaultValue: t.value,
56
62
  requestBody: e.requestBody,
57
- onSelectContentType: s[0] || (s[0] = ({ contentType: n }) => t.value = n)
63
+ onSelectContentType: s[0] || (s[0] = ({ contentType: u }) => t.value = u)
58
64
  }, null, 8, ["defaultValue", "requestBody"]),
59
- e.requestBody.description ? (u(), l("div", V, [
60
- a(c(C), {
65
+ e.requestBody.description ? (n(), a("div", O, [
66
+ l(c(C), {
61
67
  value: e.requestBody.description
62
68
  }, null, 8, ["value"])
63
- ])) : p("", !0)
69
+ ])) : i("", !0)
64
70
  ]),
65
- d.value ? (u(), l("div", O, [
66
- a(c(y), {
71
+ p.value ? (n(), a("div", R, [
72
+ l(c(y), {
67
73
  compact: "",
68
74
  name: "Request Body",
69
75
  noncollapsible: "",
70
76
  schemas: e.schemas,
71
- value: d.value.visibleProperties
77
+ value: p.value.visibleProperties
72
78
  }, null, 8, ["schemas", "value"]),
73
- a(c(y), {
79
+ l(c(y), {
74
80
  additionalProperties: "",
75
81
  compact: "",
76
82
  name: "Request Body",
77
83
  schemas: e.schemas,
78
- value: d.value.collapsedProperties
84
+ value: p.value.collapsedProperties
79
85
  }, null, 8, ["schemas", "value"])
80
- ])) : (m = e.requestBody.content) != null && m[t.value] ? (u(), l("div", R, [
81
- a(c(y), {
86
+ ])) : (m = e.requestBody.content) != null && m[t.value] ? (n(), a("div", N, [
87
+ l(c(y), {
82
88
  compact: "",
83
89
  name: "Request Body",
84
90
  noncollapsible: "",
85
91
  schemas: e.schemas,
86
92
  value: (r = (o = e.requestBody.content) == null ? void 0 : o[t.value]) == null ? void 0 : r.schema
87
93
  }, null, 8, ["schemas", "value"])
88
- ])) : p("", !0)
89
- ])) : p("", !0);
94
+ ])) : i("", !0)
95
+ ])) : i("", !0);
90
96
  };
91
97
  }
92
98
  });
93
99
  export {
94
- _ as default
100
+ w as default
95
101
  };
@@ -11,6 +11,7 @@ export declare function useResponses(operation: TransformedOperation): {
11
11
  headers?: {
12
12
  [key: string]: OpenAPI.HeaderObject;
13
13
  };
14
+ schema?: OpenAPI.SchemaObject;
14
15
  }[]>;
15
16
  };
16
17
  //# sourceMappingURL=useResponses.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useResponses.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/hooks/useResponses.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AACpD,OAAO,KAAK,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAGtF;;GAEG;AACH,wBAAgB,YAAY,CAAC,SAAS,EAAE,oBAAoB;;cAShD,MAAM;qBACC,MAAM;iBACV,oBAAoB;kBACnB;YAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAA;SAAE;;EAoBtD"}
1
+ {"version":3,"file":"useResponses.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/hooks/useResponses.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AACpD,OAAO,KAAK,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAGtF;;GAEG;AACH,wBAAgB,YAAY,CAAC,SAAS,EAAE,oBAAoB;;cAShD,MAAM;qBACC,MAAM;iBACV,oBAAoB;kBACnB;YAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAA;SAAE;iBACxC,OAAO,CAAC,YAAY;;EAqBlC"}
@@ -1,19 +1,20 @@
1
- import { computed as s } from "vue";
2
- function u(r) {
3
- return { responses: s(() => {
1
+ import { computed as o } from "vue";
2
+ function m(r) {
3
+ return { responses: o(() => {
4
4
  if (!r.information)
5
5
  return [];
6
- const { responses: t } = r.information, e = [];
7
- return t && Object.entries(t).forEach(([o, n]) => {
8
- e.push({
9
- name: o,
10
- description: n.description,
11
- content: n.content,
12
- headers: n.headers
6
+ const { responses: t } = r.information, n = [];
7
+ return t && Object.entries(t).forEach(([s, e]) => {
8
+ n.push({
9
+ name: s,
10
+ description: e.description,
11
+ content: e.content,
12
+ headers: e.headers,
13
+ schema: e.schema
13
14
  });
14
- }), e;
15
+ }), n;
15
16
  }) };
16
17
  }
17
18
  export {
18
- u as useResponses
19
+ m as useResponses
19
20
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ClassicLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ClassicLayout.vue"],"names":[],"mappings":"AAiUA,OAAO,KAAK,EACV,UAAU,EACV,SAAS,EACT,MAAM,EACP,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAC9E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAwBhE,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,UAAU,EAAE,UAAU,CAAA;IACtB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,SAAS,EAAE,SAAS,CAAA;IACpB,0CAA0C;IAC1C,oBAAoB,EAAE,oBAAoB,CAAA;IAC1C,OAAO,CAAC,EACJ,SAAS,CAAC,iBAAiB,GAC3B,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,YAAY,CAAC,GACtC,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,GACxC,OAAO,CAAA;CACZ,CAAC;;AA2QF,wBAOG"}
1
+ {"version":3,"file":"ClassicLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ClassicLayout.vue"],"names":[],"mappings":"AA4TA,OAAO,KAAK,EACV,UAAU,EACV,SAAS,EACT,MAAM,EACP,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAC9E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAwBhE,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,UAAU,EAAE,UAAU,CAAA;IACtB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,SAAS,EAAE,SAAS,CAAA;IACpB,0CAA0C;IAC1C,oBAAoB,EAAE,oBAAoB,CAAA;IAC1C,OAAO,CAAC,EACJ,SAAS,CAAC,iBAAiB,GAC3B,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,YAAY,CAAC,GACtC,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,GACxC,OAAO,CAAA;CACZ,CAAC;;AAyQF,wBAOG"}
@@ -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 f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-7af92164"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-097505a1"]]);
5
5
  export {
6
- f as default
6
+ m as default
7
7
  };
@@ -3,7 +3,7 @@ import { ScalarIcon as _, ScalarIconButton as B, ScalarMarkdown as R } from "@sc
3
3
  import { useClipboard as w } from "@scalar/use-hooks/useClipboard";
4
4
  import I from "../../../components/OperationPath.vue.js";
5
5
  import { useConfig as N } from "../../../hooks/useConfig.js";
6
- import { isOperationDeprecated as T, getOperationStability as h, getOperationStabilityColor as V } from "../../../libs/operation.js";
6
+ import { isOperationDeprecated as T, getOperationStability as h, getOperationStabilityColor as V } from "../../../libs/openapi.js";
7
7
  import $ from "../components/OperationParameters.vue.js";
8
8
  import q from "../components/OperationResponses.vue.js";
9
9
  import E from "../../../components/Section/SectionAccordion.vue.js";
@@ -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 m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-795f44b1"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-5fb2c298"]]);
5
5
  export {
6
6
  m as default
7
7
  };
@@ -2,7 +2,7 @@ import { defineComponent as b, useId as O, computed as S, createBlock as p, open
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";
5
- import { getOperationStability as h, getOperationStabilityColor as _, isOperationDeprecated as E } from "../../../libs/operation.js";
5
+ import { getOperationStability as h, getOperationStabilityColor as _, isOperationDeprecated as E } from "../../../libs/openapi.js";
6
6
  import N from "../components/OperationParameters.vue.js";
7
7
  import V from "../components/OperationResponses.vue.js";
8
8
  import w from "../../../components/Section/Section.vue.js";
@@ -1,7 +1,7 @@
1
1
  import o from "./SearchButton.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-4c6e9e93"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-d21ab44f"]]);
5
5
  export {
6
- c as default
6
+ m as default
7
7
  };
@@ -2,7 +2,7 @@ import { defineComponent as S, ref as b, watch as w, nextTick as v, onMounted as
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";
5
- import { isMacOs as m } from "../../helpers/isMacOs.js";
5
+ import { isMacOs as m } from "../../helpers/is-mac-os.js";
6
6
  import { useApiClient as L } from "../ApiClientModal/useApiClient.js";
7
7
  const N = { class: "sidebar-search-input" }, T = { class: "sidebar-search-shortcut" }, V = { class: "sidebar-search-key" }, G = /* @__PURE__ */ S({
8
8
  __name: "SearchButton",
@@ -1 +1 @@
1
- {"version":3,"file":"SearchModal.vue.d.ts","sourceRoot":"","sources":["../../../src/features/Search/SearchModal.vue"],"names":[],"mappings":"AAiSA,OAAO,EAML,KAAK,UAAU,EAChB,MAAM,oBAAoB,CAAA;AAC3B,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAahD,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":"AAqSA,OAAO,EAML,KAAK,UAAU,EAChB,MAAM,oBAAoB,CAAA;AAC3B,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAiBhD,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,IAAI,CAAA;IAChB,UAAU,EAAE,UAAU,CAAA;CACvB,CAAC;;AA6ZF,wBAOG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./SearchModal.vue2.js";
2
2
  /* empty css */
3
- import a from "../../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ a(o, [["__scopeId", "data-v-05a312ab"]]);
3
+ import r from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-587d8690"]]);
5
5
  export {
6
6
  p as default
7
7
  };
@@ -4,8 +4,8 @@ import { nanoid as oe } from "nanoid";
4
4
  import { lazyBus as ae } from "../../components/Content/Lazy/lazyBus.js";
5
5
  import se from "../../components/Sidebar/SidebarHttpBadge.vue.js";
6
6
  import { useSearchIndex as ne } from "./useSearchIndex.js";
7
+ import { scrollToId as N } from "../../helpers/scroll-to-id.js";
7
8
  import { useSidebar as re } from "../../hooks/useSidebar.js";
8
- import { scrollToId as N } from "../../helpers/scrollToId.js";
9
9
  const le = { class: "sr-only" }, ie = { class: "sr-only" }, ve = /* @__PURE__ */ Y({
10
10
  __name: "SearchModal",
11
11
  props: {
@@ -1,7 +1,7 @@
1
1
  import type { Spec, TransformedOperation } from '@scalar/types/legacy';
2
2
  import { type FuseResult } from 'fuse.js';
3
3
  import { type Ref } from 'vue';
4
- import { type ParamMap } from '../../hooks';
4
+ import { type ParamMap } from '../../hooks/useOperation.js';
5
5
  export type EntryType = 'req' | 'webhook' | 'model' | 'heading' | 'tag';
6
6
  export type FuseData = {
7
7
  title: string;
@@ -1 +1 @@
1
- {"version":3,"file":"useSearchIndex.d.ts","sourceRoot":"","sources":["../../../src/features/Search/useSearchIndex.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AACtE,OAAa,EAAE,KAAK,UAAU,EAAE,MAAM,SAAS,CAAA;AAC/C,OAAO,EAAE,KAAK,GAAG,EAAwB,MAAM,KAAK,CAAA;AAIpD,OAAO,EAAE,KAAK,QAAQ,EAAyC,MAAM,aAAa,CAAA;AAElF,MAAM,MAAM,SAAS,GAAG,KAAK,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,KAAK,CAAA;AAEvE,MAAM,MAAM,QAAQ,GAAG;IACrB,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,SAAS,CAAA;IACf,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,WAAW,EAAE,MAAM,CAAA;IACnB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,QAAQ,CAAA;IACnC,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,SAAS,CAAC,EAAE,oBAAoB,CAAA;CACjC,CAAA;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,EAC7B,aAAa,GACd,EAAE;IACD,aAAa,EAAE,GAAG,CAAC,IAAI,CAAC,CAAA;CACzB;uBA0ByB,IAAI;sBAbL,IAAI;;;;;EA0K5B"}
1
+ {"version":3,"file":"useSearchIndex.d.ts","sourceRoot":"","sources":["../../../src/features/Search/useSearchIndex.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AACtE,OAAa,EAAE,KAAK,UAAU,EAAE,MAAM,SAAS,CAAA;AAC/C,OAAO,EAAE,KAAK,GAAG,EAAwB,MAAM,KAAK,CAAA;AAGpD,OAAO,EAAE,KAAK,QAAQ,EAAgB,MAAM,sBAAsB,CAAA;AAKlE,MAAM,MAAM,SAAS,GAAG,KAAK,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,KAAK,CAAA;AAEvE,MAAM,MAAM,QAAQ,GAAG;IACrB,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,SAAS,CAAA;IACf,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,WAAW,EAAE,MAAM,CAAA;IACnB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,QAAQ,CAAA;IACnC,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,SAAS,CAAC,EAAE,oBAAoB,CAAA;CACjC,CAAA;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,EAC7B,aAAa,GACd,EAAE;IACD,aAAa,EAAE,GAAG,CAAC,IAAI,CAAC,CAAA;CACzB;uBA0ByB,IAAI;sBAbL,IAAI;;;;;EA0K5B"}
@@ -1,29 +1,28 @@
1
1
  import N from "fuse.js";
2
2
  import { ref as d, watch as E, computed as O } from "vue";
3
- import { extractRequestBody as V } from "../../helpers/specHelpers.js";
3
+ import { useNavState as V } from "../../hooks/useNavState.js";
4
4
  import { useOperation as A } from "../../hooks/useOperation.js";
5
5
  import { useSidebar as B } from "../../hooks/useSidebar.js";
6
- import { useNavState as P } from "../../hooks/useNavState.js";
7
- import { getHeadingsFromMarkdown as z } from "../../helpers/getHeadingsFromMarkdown.js";
8
- import { getModels as G } from "../../helpers/getModels.js";
9
- function w({
6
+ import { getHeadingsFromMarkdown as P } from "../../libs/markdown.js";
7
+ import { extractRequestBody as z, getModels as G } from "../../libs/openapi.js";
8
+ function _({
10
9
  specification: R
11
10
  }) {
12
- const { hideModels: T } = B(), { getHeadingId: j, getWebhookId: L, getModelId: W, getOperationId: q, getTagId: C } = P(), s = d([]), l = d([]), a = d(), r = d(""), c = new N(s.value, {
11
+ const { hideModels: T } = B(), { getHeadingId: j, getWebhookId: L, getModelId: W, getOperationId: q, getTagId: C } = V(), s = d([]), l = d([]), a = d(), r = d(""), c = new N(s.value, {
13
12
  keys: ["title", "description", "body"]
14
- }), m = () => {
13
+ }), v = () => {
15
14
  a.value = 0, l.value = c.search(r.value);
16
15
  };
17
16
  E(r, (e) => {
18
- e.length ? m() : l.value = [];
17
+ e.length ? v() : l.value = [];
19
18
  });
20
19
  function F() {
21
20
  r.value = "", a.value = void 0, l.value = [];
22
21
  }
23
- const v = O(() => r.value.length === 0 ? s.value.slice(0, 25).map((i) => ({
22
+ const m = O(() => r.value.length === 0 ? s.value.slice(0, 25).map((i) => ({
24
23
  item: i
25
24
  })) : l.value.slice(0, 25)), H = O(
26
- () => typeof a.value == "number" ? v.value[a.value] : void 0
25
+ () => typeof a.value == "number" ? m.value[a.value] : void 0
27
26
  );
28
27
  return E(
29
28
  R,
@@ -33,7 +32,7 @@ function w({
33
32
  c.setCollection([]);
34
33
  return;
35
34
  }
36
- const i = [], b = z(((k = e == null ? void 0 : e.info) == null ? void 0 : k.description) ?? "");
35
+ const i = [], b = P(((k = e == null ? void 0 : e.info) == null ? void 0 : k.description) ?? "");
37
36
  b.length && (b.forEach((t) => {
38
37
  i.push({
39
38
  type: "heading",
@@ -53,9 +52,9 @@ function w({
53
52
  body: ""
54
53
  };
55
54
  s.value.push(D), t.operations && t.operations.forEach((o) => {
56
- const { parameterMap: h } = A(o), $ = V(o) || h.value;
57
- let n = null;
58
- typeof $ != "boolean" && (n = $);
55
+ const { parameterMap: h } = A(o), $ = z(o) || h.value;
56
+ let f = null;
57
+ typeof $ != "boolean" && (f = $);
59
58
  const x = {
60
59
  type: "req",
61
60
  title: o.name ?? o.path,
@@ -67,7 +66,7 @@ function w({
67
66
  tag: t.name,
68
67
  operation: o
69
68
  };
70
- n && (x.body = n), s.value.push(x);
69
+ f && (x.body = f), s.value.push(x);
71
70
  });
72
71
  });
73
72
  const u = e == null ? void 0 : e.webhooks, y = [];
@@ -85,13 +84,13 @@ function w({
85
84
  });
86
85
  }), s.value = s.value.concat(y);
87
86
  });
88
- const f = T.value ? {} : G(e), g = [];
89
- f && (Object.keys(f).forEach((t) => {
87
+ const n = T.value ? {} : G(e), g = [];
88
+ n && (Object.keys(n).forEach((t) => {
90
89
  g.push({
91
90
  type: "model",
92
91
  title: "Model",
93
92
  href: `#${W({ name: t })}`,
94
- description: f[t].title ?? t,
93
+ description: n[t].title ?? t,
95
94
  tag: t,
96
95
  body: ""
97
96
  });
@@ -100,13 +99,13 @@ function w({
100
99
  { immediate: !0 }
101
100
  ), {
102
101
  resetSearch: F,
103
- fuseSearch: m,
102
+ fuseSearch: v,
104
103
  selectedSearchIndex: a,
105
104
  selectedSearchResult: H,
106
- searchResultsWithPlaceholderResults: v,
105
+ searchResultsWithPlaceholderResults: m,
107
106
  searchText: r
108
107
  };
109
108
  }
110
109
  export {
111
- w as useSearchIndex
110
+ _ as useSearchIndex
112
111
  };
@@ -2,4 +2,4 @@
2
2
  * Checks whether the user is on macOS
3
3
  */
4
4
  export declare const isMacOs: () => boolean;
5
- //# sourceMappingURL=isMacOs.d.ts.map
5
+ //# sourceMappingURL=is-mac-os.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-mac-os.d.ts","sourceRoot":"","sources":["../../src/helpers/is-mac-os.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,OAAO,eAAoF,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"parse.d.ts","sourceRoot":"","sources":["../../src/helpers/parse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAChD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAWxD;;;;GAIG;AACH,eAAO,MAAM,KAAK,kBACD,aAAa,GAAG,MAAM,GAAG,SAAS,kBAG9C;IACD,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,KACA,OAAO,CAAC,IAAI,CAgDd,CAAA"}
1
+ {"version":3,"file":"parse.d.ts","sourceRoot":"","sources":["../../src/helpers/parse.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAChD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAMxD;;;;GAIG;AACH,eAAO,MAAM,KAAK,kBACD,aAAa,GAAG,MAAM,GAAG,SAAS,kBAG9C;IACD,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,KACA,OAAO,CAAC,IAAI,CAgDd,CAAA"}
@@ -1,7 +1,7 @@
1
1
  import { redirectToProxy as R, shouldIgnoreEntity as u } from "@scalar/oas-utils/helpers";
2
2
  import { load as M, dereference as q } from "@scalar/openapi-parser";
3
3
  import { fetchUrls as D } from "@scalar/openapi-parser/plugins/fetch-urls";
4
- import { createEmptySpecification as O } from "./createEmptySpecification.js";
4
+ import { createEmptySpecification as O } from "../libs/openapi.js";
5
5
  import { normalizeRequestMethod as j } from "../legacy/helpers/normalizeRequestMethod.js";
6
6
  import { validRequestMethods as C } from "../legacy/fixtures/httpRequestMethods.js";
7
7
  const G = (m, {
@@ -4,4 +4,4 @@
4
4
  * Also focuses the element if the focus flag is true
5
5
  */
6
6
  export declare const scrollToId: (id: string, focus?: boolean) => Promise<void>;
7
- //# sourceMappingURL=scrollToId.d.ts.map
7
+ //# sourceMappingURL=scroll-to-id.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scroll-to-id.d.ts","sourceRoot":"","sources":["../../src/helpers/scroll-to-id.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,UAAU,OAAc,MAAM,UAAU,OAAO,kBAS3D,CAAA"}
@@ -1,8 +1,6 @@
1
1
  /**
2
2
  * Little helper for sleeping for x milliseconds
3
3
  * an async await friendly setTimeout
4
- *
5
- * @param ms - time to sleep in ms
6
4
  */
7
5
  export declare const sleep: (ms: number) => Promise<unknown>;
8
6
  //# sourceMappingURL=sleep.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sleep.d.ts","sourceRoot":"","sources":["../../src/helpers/sleep.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,KAAK,OAAQ,MAAM,qBAA0C,CAAA"}
1
+ {"version":3,"file":"sleep.d.ts","sourceRoot":"","sources":["../../src/helpers/sleep.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,KAAK,OAAQ,MAAM,qBAA0C,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"useNavState.d.ts","sourceRoot":"","sources":["../../src/hooks/useNavState.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;AAC5E,OAAO,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAE9E,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,GAAG,EAAe,MAAM,KAAK,CAAA;AAE9D,MAAM,MAAM,QAAQ,GAAG;IACrB,0EAA0E;IAC1E,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IACjB,2CAA2C;IAC3C,UAAU,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IACvB,sFAAsF;IACtF,qBAAqB,EAAE,GAAG,CAAC,OAAO,CAAC,CAAA;CACpC,CAAA;AACD,eAAO,MAAM,gBAAgB,EAAe,YAAY,CAAC,QAAQ,CAAC,CAAA;AAOlE;;;;;;;;GAQG;AACH,eAAO,MAAM,WAAW,aAAc,GAAG,CAAC,yBAAyB,CAAC;;IA+HhE,mCAAmC;4BACX,MAAM;IAG9B;;;;OAIG;+BArE4B,MAAM;IAuErC;;;;;OAKG;oCAnFkC,MAAM;IAqF3C;;;OAGG;uCA1GqC,MAAM;;6BAyEhB;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE;yBA9BrC;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE;4BAXb,OAAO;gCA6BH,oBAAoB,aAAa,GAAG;iCA7FnC,MAAM;;oBAsFnB,GAAG;;;CAiE3B,CAAA"}
1
+ {"version":3,"file":"useNavState.d.ts","sourceRoot":"","sources":["../../src/hooks/useNavState.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;AAC5E,OAAO,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAE9E,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,GAAG,EAAe,MAAM,KAAK,CAAA;AAE9D,MAAM,MAAM,QAAQ,GAAG;IACrB,0EAA0E;IAC1E,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IACjB,2CAA2C;IAC3C,UAAU,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IACvB,sFAAsF;IACtF,qBAAqB,EAAE,GAAG,CAAC,OAAO,CAAC,CAAA;CACpC,CAAA;AACD,eAAO,MAAM,gBAAgB,EAAe,YAAY,CAAC,QAAQ,CAAC,CAAA;AAOlE;;;;;;;;GAQG;AACH,eAAO,MAAM,WAAW,aAAc,GAAG,CAAC,yBAAyB,CAAC;;IAuIhE,mCAAmC;4BACX,MAAM;IAG9B;;;;OAIG;+BArE4B,MAAM;IAuErC;;;;;OAKG;oCA3FkC,MAAM;IA6F3C;;;OAGG;uCAlHqC,MAAM;;6BAiFhB;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE;yBA9BrC;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE;4BAXb,OAAO;gCA6BH,oBAAoB,aAAa,GAAG;iCArGnC,MAAM;;oBA8FnB,GAAG;;;CAiE3B,CAAA"}