@scalar/api-reference 1.28.33 → 1.28.34

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 (200) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/dist/browser/standalone.js +6779 -6794
  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.map +1 -1
  33. package/dist/components/Content/Schema/SchemaDiscriminator.vue.js +99 -5
  34. package/dist/components/Content/Schema/SchemaDiscriminator.vue2.js +2 -165
  35. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
  36. package/dist/components/Content/Schema/SchemaProperty.vue.js +2 -2
  37. package/dist/components/Content/Schema/SchemaProperty.vue2.js +27 -26
  38. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
  39. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +1 -1
  40. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.d.ts +1 -1
  41. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.d.ts.map +1 -1
  42. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.js +50 -40
  43. package/dist/components/Content/Tag/OperationsListItem.vue.js +1 -1
  44. package/dist/components/Content/Tag/OperationsListItem.vue2.js +1 -1
  45. package/dist/components/Content/Tag/TagAccordion.vue.js +2 -2
  46. package/dist/components/Content/Tag/TagAccordion.vue2.js +10 -10
  47. package/dist/components/Content/Tag/TagList.vue.d.ts.map +1 -1
  48. package/dist/components/Content/Tag/TagList.vue.js +8 -8
  49. package/dist/components/Content/Tag/TagSection.vue.d.ts.map +1 -1
  50. package/dist/components/Content/Tag/TagSection.vue.js +2 -2
  51. package/dist/components/Content/Tag/TagSection.vue2.js +8 -8
  52. package/dist/components/GettingStarted.vue.d.ts +2 -2
  53. package/dist/components/Layouts/ModernLayout.vue.d.ts.map +1 -1
  54. package/dist/components/Layouts/ModernLayout.vue.js +2 -2
  55. package/dist/components/Layouts/ModernLayout.vue2.js +4 -4
  56. package/dist/components/MobileHeader.vue.js +3 -3
  57. package/dist/components/Section/CompactSection.vue.js +2 -2
  58. package/dist/components/Section/CompactSection.vue2.js +4 -4
  59. package/dist/components/Section/Section.vue.d.ts.map +1 -1
  60. package/dist/components/Section/Section.vue.js +1 -1
  61. package/dist/components/ShowMoreButton.vue.d.ts.map +1 -1
  62. package/dist/components/ShowMoreButton.vue.js +2 -2
  63. package/dist/components/Sidebar/Sidebar.vue.d.ts +1 -1
  64. package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
  65. package/dist/components/Sidebar/Sidebar.vue.js +2 -2
  66. package/dist/components/Sidebar/Sidebar.vue2.js +1 -1
  67. package/dist/components/Sidebar/SidebarElement.vue.d.ts.map +1 -1
  68. package/dist/components/Sidebar/SidebarElement.vue.js +1 -1
  69. package/dist/components/Sidebar/SidebarElement.vue2.js +6 -6
  70. package/dist/components/SingleApiReference.vue.d.ts.map +1 -1
  71. package/dist/features/ApiClientModal/ApiClientModal.vue.js +3 -3
  72. package/dist/features/ApiClientModal/index.d.ts +1 -1
  73. package/dist/features/ApiClientModal/index.d.ts.map +1 -1
  74. package/dist/features/ApiClientModal/useApiClient.d.ts +42 -42
  75. package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
  76. package/dist/features/DownloadLink/DownloadLink.vue.d.ts +1 -1
  77. package/dist/features/DownloadLink/DownloadLink.vue.d.ts.map +1 -1
  78. package/dist/features/DownloadLink/DownloadLink.vue.js +1 -1
  79. package/dist/features/DownloadLink/DownloadLink.vue2.js +17 -17
  80. package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
  81. package/dist/features/ExampleRequest/ExampleRequest.vue.js +1 -1
  82. package/dist/features/ExampleRequest/ExampleRequest.vue2.js +12 -12
  83. package/dist/features/Operation/Webhooks.vue.d.ts.map +1 -1
  84. package/dist/features/Operation/Webhooks.vue.js +2 -2
  85. package/dist/features/Operation/Webhooks.vue2.js +13 -13
  86. package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
  87. package/dist/features/Operation/components/ParameterListItem.vue.js +2 -2
  88. package/dist/features/Operation/components/ParameterListItem.vue2.js +18 -18
  89. package/dist/features/Operation/components/RequestBody.vue.d.ts.map +1 -1
  90. package/dist/features/Operation/components/RequestBody.vue.js +2 -2
  91. package/dist/features/Operation/components/RequestBody.vue2.js +38 -32
  92. package/dist/features/Operation/hooks/useResponses.d.ts +1 -0
  93. package/dist/features/Operation/hooks/useResponses.d.ts.map +1 -1
  94. package/dist/features/Operation/hooks/useResponses.js +13 -12
  95. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
  96. package/dist/features/Operation/layouts/ClassicLayout.vue.js +2 -2
  97. package/dist/features/Operation/layouts/ClassicLayout.vue2.js +1 -1
  98. package/dist/features/Operation/layouts/ModernLayout.vue.js +1 -1
  99. package/dist/features/Operation/layouts/ModernLayout.vue2.js +1 -1
  100. package/dist/features/Search/SearchButton.vue.js +2 -2
  101. package/dist/features/Search/SearchButton.vue2.js +1 -1
  102. package/dist/features/Search/SearchModal.vue.d.ts.map +1 -1
  103. package/dist/features/Search/SearchModal.vue.js +2 -2
  104. package/dist/features/Search/SearchModal.vue2.js +1 -1
  105. package/dist/features/Search/useSearchIndex.d.ts +1 -1
  106. package/dist/features/Search/useSearchIndex.d.ts.map +1 -1
  107. package/dist/features/Search/useSearchIndex.js +20 -21
  108. package/dist/helpers/{isMacOs.d.ts → is-mac-os.d.ts} +1 -1
  109. package/dist/helpers/is-mac-os.d.ts.map +1 -0
  110. package/dist/helpers/parse.d.ts.map +1 -1
  111. package/dist/helpers/parse.js +1 -1
  112. package/dist/helpers/{scrollToId.d.ts → scroll-to-id.d.ts} +1 -1
  113. package/dist/helpers/scroll-to-id.d.ts.map +1 -0
  114. package/dist/helpers/sleep.d.ts +0 -2
  115. package/dist/helpers/sleep.d.ts.map +1 -1
  116. package/dist/hooks/useNavState.d.ts.map +1 -1
  117. package/dist/hooks/useNavState.js +28 -28
  118. package/dist/hooks/useReactiveSpec.js +1 -1
  119. package/dist/hooks/useSidebar.d.ts.map +1 -1
  120. package/dist/hooks/useSidebar.js +45 -49
  121. package/dist/index.d.ts +2 -3
  122. package/dist/index.d.ts.map +1 -1
  123. package/dist/index.js +26 -28
  124. package/dist/legacy/fixtures/index.d.ts +1 -1
  125. package/dist/legacy/fixtures/index.d.ts.map +1 -1
  126. package/dist/legacy/helpers/index.d.ts +1 -1
  127. package/dist/legacy/helpers/index.d.ts.map +1 -1
  128. package/dist/libs/download.d.ts +9 -0
  129. package/dist/libs/download.d.ts.map +1 -0
  130. package/dist/libs/download.js +19 -0
  131. package/dist/{helpers/getLowestHeadingLevel.d.ts → libs/markdown.d.ts} +5 -1
  132. package/dist/libs/markdown.d.ts.map +1 -0
  133. package/dist/libs/markdown.js +18 -0
  134. package/dist/libs/openapi.d.ts +56 -0
  135. package/dist/libs/openapi.d.ts.map +1 -0
  136. package/dist/libs/openapi.js +102 -0
  137. package/dist/style.css +1 -1
  138. package/dist/types.d.ts +1 -45
  139. package/dist/types.d.ts.map +1 -1
  140. package/package.json +16 -21
  141. package/dist/esm.js +0 -34
  142. package/dist/helpers/createEmptySpecification.d.ts +0 -8
  143. package/dist/helpers/createEmptySpecification.d.ts.map +0 -1
  144. package/dist/helpers/createEmptySpecification.js +0 -27
  145. package/dist/helpers/deepMerge.d.ts +0 -5
  146. package/dist/helpers/deepMerge.d.ts.map +0 -1
  147. package/dist/helpers/deepMerge.js +0 -8
  148. package/dist/helpers/generateParameters.d.ts +0 -6
  149. package/dist/helpers/generateParameters.d.ts.map +0 -1
  150. package/dist/helpers/get-request.d.ts +0 -59
  151. package/dist/helpers/get-request.d.ts.map +0 -1
  152. package/dist/helpers/getHeadingsFromMarkdown.d.ts +0 -6
  153. package/dist/helpers/getHeadingsFromMarkdown.d.ts.map +0 -1
  154. package/dist/helpers/getHeadingsFromMarkdown.js +0 -13
  155. package/dist/helpers/getLowestHeadingLevel.d.ts.map +0 -1
  156. package/dist/helpers/getLowestHeadingLevel.js +0 -7
  157. package/dist/helpers/getModels.d.ts +0 -7
  158. package/dist/helpers/getModels.d.ts.map +0 -1
  159. package/dist/helpers/getModels.js +0 -22
  160. package/dist/helpers/getVariableNames.d.ts +0 -5
  161. package/dist/helpers/getVariableNames.d.ts.map +0 -1
  162. package/dist/helpers/hasModels.d.ts +0 -3
  163. package/dist/helpers/hasModels.d.ts.map +0 -1
  164. package/dist/helpers/hasModels.js +0 -5
  165. package/dist/helpers/hasSecuritySchemes.d.ts +0 -3
  166. package/dist/helpers/hasSecuritySchemes.d.ts.map +0 -1
  167. package/dist/helpers/hasWebhooks.d.ts +0 -3
  168. package/dist/helpers/hasWebhooks.d.ts.map +0 -1
  169. package/dist/helpers/hasWebhooks.js +0 -4
  170. package/dist/helpers/index.d.ts +0 -17
  171. package/dist/helpers/index.d.ts.map +0 -1
  172. package/dist/helpers/isMacOs.d.ts.map +0 -1
  173. package/dist/helpers/mapFromObject.d.ts +0 -8
  174. package/dist/helpers/mapFromObject.d.ts.map +0 -1
  175. package/dist/helpers/mergeAllObjects.d.ts +0 -5
  176. package/dist/helpers/mergeAllObjects.d.ts.map +0 -1
  177. package/dist/helpers/scrollToId.d.ts.map +0 -1
  178. package/dist/helpers/specDownloads.d.ts +0 -7
  179. package/dist/helpers/specDownloads.d.ts.map +0 -1
  180. package/dist/helpers/specDownloads.js +0 -19
  181. package/dist/helpers/specHelpers.d.ts +0 -16
  182. package/dist/helpers/specHelpers.d.ts.map +0 -1
  183. package/dist/helpers/specHelpers.js +0 -36
  184. package/dist/helpers/waitFor.d.ts +0 -5
  185. package/dist/helpers/waitFor.d.ts.map +0 -1
  186. package/dist/hooks/index.d.ts +0 -5
  187. package/dist/hooks/index.d.ts.map +0 -1
  188. package/dist/legacy/helpers/encodeStringAsBase64.d.ts +0 -5
  189. package/dist/legacy/helpers/encodeStringAsBase64.d.ts.map +0 -1
  190. package/dist/legacy/index.d.ts +0 -5
  191. package/dist/legacy/index.d.ts.map +0 -1
  192. package/dist/legacy/types.d.ts +0 -94
  193. package/dist/legacy/types.d.ts.map +0 -1
  194. package/dist/libs/operation.d.ts +0 -15
  195. package/dist/libs/operation.d.ts.map +0 -1
  196. package/dist/libs/operation.js +0 -16
  197. package/dist/stores/index.d.ts +0 -2
  198. package/dist/stores/index.d.ts.map +0 -1
  199. /package/dist/helpers/{isMacOs.js → is-mac-os.js} +0 -0
  200. /package/dist/helpers/{scrollToId.js → scroll-to-id.js} +0 -0
@@ -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,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AI,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"}
@@ -1,60 +1,60 @@
1
1
  import { useConfig as b } from "./useConfig.js";
2
- import { combineUrlAndPath as R } from "@scalar/oas-utils/helpers";
2
+ import { combineUrlAndPath as d } from "@scalar/oas-utils/helpers";
3
3
  import { slug as i } from "github-slugger";
4
4
  import { inject as y, ref as l } from "vue";
5
- const U = Symbol(), P = l(!1), k = l(""), x = l(""), T = (d) => {
6
- const { isIntersectionEnabled: f, hash: o, hashPrefix: r } = y(U, {
7
- isIntersectionEnabled: P,
5
+ const P = Symbol(), U = l(!1), k = l(""), x = l(""), T = (f) => {
6
+ const { isIntersectionEnabled: p, hash: r, hashPrefix: u } = y(P, {
7
+ isIntersectionEnabled: U,
8
8
  hash: k,
9
9
  hashPrefix: x
10
- }), t = d ?? b(), c = (e) => {
10
+ }), t = f ?? b(), g = (e) => {
11
11
  var n;
12
12
  if (!t.value.pathRouting)
13
13
  return "";
14
14
  const a = new RegExp("^" + ((n = t.value.pathRouting) == null ? void 0 : n.basePath) + "/?");
15
15
  return decodeURIComponent(e.replace(a, ""));
16
- }, p = (e = o.value) => {
16
+ }, v = (e = r.value) => {
17
17
  var h;
18
- const a = (h = e.match(/(tag\/[^/]+)/)) == null ? void 0 : h[0], n = e.startsWith("model") ? "models" : "", u = e.startsWith("webhook") ? "webhooks" : "";
19
- return a || n || u;
20
- }, g = () => t.value.pathRouting ? c(window.location.pathname) : (
18
+ const a = (h = e.match(/(tag\/[^/]+)/)) == null ? void 0 : h[0], n = e.startsWith("model") ? "models" : "", o = e.startsWith("webhook") ? "webhooks" : "";
19
+ return a || n || o;
20
+ }, c = () => t.value.pathRouting ? g(window.location.pathname) : (
21
21
  // Must remove the prefix from the hash as the internal hash value should be pure
22
- decodeURIComponent(window.location.hash.replace(/^#/, "")).slice(r.value.length)
23
- ), m = () => o.value = g(), v = (e, a = window.location.href) => {
22
+ decodeURIComponent(window.location.hash.replace(/^#/, "")).slice(u.value.length)
23
+ ), m = () => r.value = c(), I = (e, a = window.location.href) => {
24
24
  const n = new URL(a);
25
- t.value.pathRouting ? n.pathname = R(t.value.pathRouting.basePath, e) : n.hash = r.value + e, o.value = e, window.history.replaceState({}, "", n);
26
- }, I = (e, a = window.location.href, n = window.location.search) => {
27
- const u = new URL(a);
28
- return u.hash = r.value + e, u.search = n, u.toString();
29
- }, w = (e = o.value) => `${r.value}${e}`, S = (e) => typeof t.value.generateHeadingSlug == "function" ? `${t.value.generateHeadingSlug(e)}` : e.slug ? `description/${e.slug}` : "", $ = (e) => e != null && e.name ? typeof t.value.generateModelSlug == "function" ? `model/${t.value.generateModelSlug(e)}` : `model/${i(e.name)}` : "models", s = (e) => typeof t.value.generateTagSlug == "function" ? `tag/${t.value.generateTagSlug(e)}` : `tag/${i(e.name)}`;
25
+ t.value.pathRouting ? n.pathname = d(t.value.pathRouting.basePath, e) : n.hash = u.value + e, r.value = e, window.history.replaceState({}, "", n);
26
+ }, w = (e, a = window.location.href, n = window.location.search) => {
27
+ const o = new URL(a);
28
+ return t.value.pathRouting ? o.pathname = d(t.value.pathRouting.basePath, e) : o.hash = u.value + e, o.search = n, o.toString();
29
+ }, S = (e = r.value) => `${u.value}${e}`, $ = (e) => typeof t.value.generateHeadingSlug == "function" ? `${t.value.generateHeadingSlug(e)}` : e.slug ? `description/${e.slug}` : "", R = (e) => e != null && e.name ? typeof t.value.generateModelSlug == "function" ? `model/${t.value.generateModelSlug(e)}` : `model/${i(e.name)}` : "models", s = (e) => typeof t.value.generateTagSlug == "function" ? `tag/${t.value.generateTagSlug(e)}` : `tag/${i(e.name)}`;
30
30
  return {
31
- hash: o,
31
+ hash: r,
32
32
  /** Sets the prefix for the hash */
33
33
  setHashPrefix: (e) => {
34
- r.value = e;
34
+ u.value = e;
35
35
  },
36
36
  /**
37
37
  * Gets the full hash with the prefix
38
38
  * @param hashTarget The hash to target with the return
39
39
  * @returns The full hash
40
40
  */
41
- getFullHash: w,
41
+ getFullHash: S,
42
42
  /**
43
43
  * Gets the hashed url with the prefix
44
44
  * @param replacementHash The hash to replace the current hash with
45
45
  * @param url The url to get the hashed url from
46
46
  * @returns The hashed url
47
47
  */
48
- getHashedUrl: I,
48
+ getHashedUrl: w,
49
49
  /**
50
50
  * Replaces the URL state with the new url and hash
51
51
  * Replacement is used so that hash changes don't trigger the url hash watcher and cause a scroll
52
52
  */
53
- replaceUrlState: v,
54
- getReferenceId: g,
53
+ replaceUrlState: I,
54
+ getReferenceId: c,
55
55
  getWebhookId: (e) => e != null && e.name ? typeof t.value.generateWebhookSlug == "function" ? `webhook/${t.value.generateWebhookSlug(e)}` : `webhook/${e.method}/${i(e.name)}` : "webhooks",
56
- getModelId: $,
57
- getHeadingId: S,
56
+ getModelId: R,
57
+ getHeadingId: $,
58
58
  getOperationId: (e, a) => {
59
59
  var n;
60
60
  return typeof t.value.generateOperationSlug == "function" ? `${s(a)}/${t.value.generateOperationSlug({
@@ -64,14 +64,14 @@ const U = Symbol(), P = l(!1), k = l(""), x = l(""), T = (d) => {
64
64
  summary: (n = e.information) == null ? void 0 : n.summary
65
65
  })}` : `${s(a)}/${e.httpVerb}${e.path}`;
66
66
  },
67
- getPathRoutingId: c,
68
- getSectionId: p,
67
+ getPathRoutingId: g,
68
+ getSectionId: v,
69
69
  getTagId: s,
70
- isIntersectionEnabled: f,
70
+ isIntersectionEnabled: p,
71
71
  updateHash: m
72
72
  };
73
73
  };
74
74
  export {
75
- U as NAV_STATE_SYMBOL,
75
+ P as NAV_STATE_SYMBOL,
76
76
  T as useNavState
77
77
  };
@@ -1,7 +1,7 @@
1
1
  import { fetchDocument as l, prettyPrintJson as d } from "@scalar/oas-utils/helpers";
2
2
  import { ref as s, watch as u, toValue as f } from "vue";
3
3
  import { parse as h } from "../helpers/parse.js";
4
- import { createEmptySpecification as m } from "../helpers/createEmptySpecification.js";
4
+ import { createEmptySpecification as m } from "../libs/openapi.js";
5
5
  const v = async ({ url: a, content: e }, r) => {
6
6
  if (a) {
7
7
  const i = performance.now();
@@ -1 +1 @@
1
- {"version":3,"file":"useSidebar.d.ts","sourceRoot":"","sources":["../../src/hooks/useSidebar.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAa3E,MAAM,MAAM,YAAY,GAAG;IACzB,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,YA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