@scalar/api-reference 1.31.3 → 1.31.6

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 (166) hide show
  1. package/CHANGELOG.md +55 -0
  2. package/dist/browser/standalone.js +15752 -15637
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/ApiReference.vue.js +6 -6
  5. package/dist/components/ApiReferenceLayout.vue.d.ts +6 -3
  6. package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
  7. package/dist/components/ApiReferenceLayout.vue.js +4 -2
  8. package/dist/components/ApiReferenceLayout.vue2.js +230 -153
  9. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.js +2 -2
  10. package/dist/components/Content/ClientLibraries/ClientLibraries.vue2.js +1 -1
  11. package/dist/components/Content/Introduction/Description.vue.d.ts.map +1 -1
  12. package/dist/components/Content/Introduction/Description.vue.js +2 -2
  13. package/dist/components/Content/Lazy/Loading.vue.d.ts.map +1 -1
  14. package/dist/components/Content/Lazy/Loading.vue.js +1 -1
  15. package/dist/components/Content/Schema/SchemaComposition.vue.d.ts.map +1 -1
  16. package/dist/components/Content/Schema/SchemaComposition.vue.js +81 -101
  17. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
  18. package/dist/components/Content/Schema/SchemaProperty.vue.js +2 -2
  19. package/dist/components/Content/Schema/SchemaProperty.vue2.js +114 -105
  20. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.js +35 -35
  21. package/dist/components/Content/Schema/helpers/optimizeValueForDisplay.d.ts.map +1 -1
  22. package/dist/components/Content/Schema/helpers/optimizeValueForDisplay.js +17 -15
  23. package/dist/components/Content/Schema/helpers/schema-name.js +13 -21
  24. package/dist/components/Content/Tag/OperationsList.vue.d.ts.map +1 -1
  25. package/dist/components/Content/Tag/OperationsList.vue.js +1 -1
  26. package/dist/components/Content/Tag/OperationsList.vue2.js +10 -9
  27. package/dist/components/Content/Tag/OperationsListItem.vue.d.ts.map +1 -1
  28. package/dist/components/Content/Tag/OperationsListItem.vue.js +1 -1
  29. package/dist/components/Content/Tag/OperationsListItem.vue2.js +29 -28
  30. package/dist/components/Content/Tag/TagList.vue.d.ts.map +1 -1
  31. package/dist/components/Content/Tag/TagList.vue.js +35 -34
  32. package/dist/components/DocumentSelector/DocumentSelector.vue.d.ts.map +1 -1
  33. package/dist/components/DocumentSelector/DocumentSelector.vue.js +21 -28
  34. package/dist/components/GettingStarted.vue.d.ts.map +1 -1
  35. package/dist/components/GettingStarted.vue.js +3 -3
  36. package/dist/components/GettingStarted.vue2.js +23 -23
  37. package/dist/components/HttpMethod/HttpMethod.vue.d.ts +1 -20
  38. package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -1
  39. package/dist/components/HttpMethod/HttpMethod.vue.js +12 -13
  40. package/dist/components/Section/CompactSection.vue.js +2 -2
  41. package/dist/components/Section/CompactSection.vue2.js +6 -6
  42. package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
  43. package/dist/components/Sidebar/Sidebar.vue.js +2 -2
  44. package/dist/components/Sidebar/Sidebar.vue2.js +1 -1
  45. package/dist/components/Sidebar/SidebarElement.vue.js +1 -1
  46. package/dist/components/Sidebar/SidebarElement.vue2.js +5 -5
  47. package/dist/esm.d.ts.map +1 -1
  48. package/dist/features/DocumentSource/hooks/useDocumentFetcher.js +1 -1
  49. package/dist/features/DocumentSource/hooks/useDocumentSource.d.ts +1 -1
  50. package/dist/features/DocumentSource/hooks/useDocumentSource.d.ts.map +1 -1
  51. package/dist/features/DocumentSource/hooks/useDocumentSource.js +11 -11
  52. package/dist/features/DownloadLink/DownloadLink.vue.d.ts.map +1 -1
  53. package/dist/features/DownloadLink/DownloadLink.vue.js +2 -2
  54. package/dist/features/DownloadLink/DownloadLink.vue2.js +21 -21
  55. package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
  56. package/dist/features/ExampleRequest/ExampleRequest.vue.js +1 -1
  57. package/dist/features/ExampleRequest/ExampleRequest.vue2.js +1 -1
  58. package/dist/features/Search/SearchButton.vue.d.ts.map +1 -1
  59. package/dist/features/Search/SearchButton.vue.js +2 -2
  60. package/dist/features/Search/SearchButton.vue2.js +16 -16
  61. package/dist/features/Search/SearchModal.vue.d.ts.map +1 -1
  62. package/dist/features/Search/SearchModal.vue.js +2 -2
  63. package/dist/features/Search/SearchModal.vue2.js +1 -1
  64. package/dist/features/Search/useSearchIndex.d.ts.map +1 -1
  65. package/dist/features/Search/useSearchIndex.js +29 -28
  66. package/dist/features/sidebar/helpers/create-sidebar.d.ts +26 -0
  67. package/dist/features/sidebar/helpers/create-sidebar.d.ts.map +1 -0
  68. package/dist/features/sidebar/hooks/useSidebar.d.ts +23 -0
  69. package/dist/features/sidebar/hooks/useSidebar.d.ts.map +1 -0
  70. package/dist/features/sidebar/index.d.ts +2 -0
  71. package/dist/features/sidebar/index.d.ts.map +1 -0
  72. package/dist/features/traverse-schema/helpers/get-tag.d.ts +4 -0
  73. package/dist/features/traverse-schema/helpers/get-tag.d.ts.map +1 -0
  74. package/dist/features/traverse-schema/helpers/operation-id-params.d.ts +8 -0
  75. package/dist/features/traverse-schema/helpers/operation-id-params.d.ts.map +1 -0
  76. package/dist/features/traverse-schema/helpers/operation-id-params.js +8 -0
  77. package/dist/features/traverse-schema/helpers/traverse-description.d.ts +9 -0
  78. package/dist/features/traverse-schema/helpers/traverse-description.d.ts.map +1 -0
  79. package/dist/features/traverse-schema/helpers/traverse-document.d.ts +16 -0
  80. package/dist/features/traverse-schema/helpers/traverse-document.d.ts.map +1 -0
  81. package/dist/features/traverse-schema/helpers/traverse-paths.d.ts +11 -0
  82. package/dist/features/traverse-schema/helpers/traverse-paths.d.ts.map +1 -0
  83. package/dist/features/traverse-schema/helpers/traverse-schemas.d.ts +6 -0
  84. package/dist/features/traverse-schema/helpers/traverse-schemas.d.ts.map +1 -0
  85. package/dist/features/traverse-schema/helpers/traverse-tags.d.ts +9 -0
  86. package/dist/features/traverse-schema/helpers/traverse-tags.d.ts.map +1 -0
  87. package/dist/features/traverse-schema/helpers/traverse-webhooks.d.ts +6 -0
  88. package/dist/features/traverse-schema/helpers/traverse-webhooks.d.ts.map +1 -0
  89. package/dist/features/traverse-schema/index.d.ts +4 -0
  90. package/dist/features/traverse-schema/index.d.ts.map +1 -0
  91. package/dist/features/traverse-schema/types.d.ts +51 -0
  92. package/dist/features/traverse-schema/types.d.ts.map +1 -0
  93. package/dist/helpers/parse.d.ts.map +1 -1
  94. package/dist/helpers/parse.js +16 -16
  95. package/dist/hooks/useNavState.d.ts +9 -4
  96. package/dist/hooks/useNavState.d.ts.map +1 -1
  97. package/dist/hooks/useNavState.js +31 -29
  98. package/dist/hooks/useSidebar.d.ts.map +1 -1
  99. package/dist/hooks/useSidebar.js +69 -68
  100. package/dist/index.d.ts +0 -3
  101. package/dist/index.d.ts.map +1 -1
  102. package/dist/index.js +37 -44
  103. package/dist/legacy/fixtures/httpRequestMethods.js +2 -6
  104. package/dist/libs/openapi.js +32 -32
  105. package/dist/stores/useHttpClientStore.js +9 -8
  106. package/dist/style.css +1 -1
  107. package/dist/types.d.ts +0 -1
  108. package/dist/types.d.ts.map +1 -1
  109. package/dist/v2/ApiReferenceWorkspace.vue.d.ts +40 -0
  110. package/dist/v2/ApiReferenceWorkspace.vue.d.ts.map +1 -0
  111. package/dist/v2/ApiReferenceWorkspace.vue.js +65 -0
  112. package/dist/v2/ApiReferenceWorkspace.vue3.js +5 -0
  113. package/dist/v2/events/definitions.d.ts +35 -0
  114. package/dist/v2/events/definitions.d.ts.map +1 -0
  115. package/dist/v2/events/index.d.ts +3 -0
  116. package/dist/v2/events/index.d.ts.map +1 -0
  117. package/dist/v2/events/listeners.d.ts +8 -0
  118. package/dist/v2/events/listeners.d.ts.map +1 -0
  119. package/dist/v2/events/listeners.js +15 -0
  120. package/dist/v2/styles.d.ts +2 -0
  121. package/dist/v2/styles.d.ts.map +1 -0
  122. package/package.json +13 -11
  123. package/dist/components/HttpMethod/constants.d.ts +0 -9
  124. package/dist/components/HttpMethod/constants.d.ts.map +0 -1
  125. package/dist/components/HttpMethod/constants.js +0 -36
  126. package/dist/components/HttpMethod/utils/isRequestMethod.d.ts +0 -4
  127. package/dist/components/HttpMethod/utils/isRequestMethod.d.ts.map +0 -1
  128. package/dist/components/HttpMethod/utils/isRequestMethod.js +0 -7
  129. package/dist/components/Layouts/ClassicLayout.vue.d.ts +0 -23
  130. package/dist/components/Layouts/ClassicLayout.vue.d.ts.map +0 -1
  131. package/dist/components/Layouts/ClassicLayout.vue.js +0 -67
  132. package/dist/components/Layouts/ClassicLayout.vue2.js +0 -4
  133. package/dist/components/Layouts/Layouts.vue.d.ts +0 -26
  134. package/dist/components/Layouts/Layouts.vue.d.ts.map +0 -1
  135. package/dist/components/Layouts/Layouts.vue.js +0 -35
  136. package/dist/components/Layouts/Layouts.vue2.js +0 -4
  137. package/dist/components/Layouts/ModernLayout.vue.d.ts +0 -23
  138. package/dist/components/Layouts/ModernLayout.vue.d.ts.map +0 -1
  139. package/dist/components/Layouts/ModernLayout.vue.js +0 -8
  140. package/dist/components/Layouts/ModernLayout.vue2.js +0 -102
  141. package/dist/components/Layouts/index.d.ts +0 -2
  142. package/dist/components/Layouts/index.d.ts.map +0 -1
  143. package/dist/components/SingleApiReference.vue.d.ts +0 -29
  144. package/dist/components/SingleApiReference.vue.d.ts.map +0 -1
  145. package/dist/components/SingleApiReference.vue.js +0 -57
  146. package/dist/components/SingleApiReference.vue3.js +0 -5
  147. package/dist/helpers/freeze-element.d.ts +0 -11
  148. package/dist/helpers/freeze-element.d.ts.map +0 -1
  149. package/dist/helpers/freeze-element.js +0 -20
  150. package/dist/helpers/is-mac-os.d.ts +0 -5
  151. package/dist/helpers/is-mac-os.d.ts.map +0 -1
  152. package/dist/helpers/is-mac-os.js +0 -4
  153. package/dist/helpers/measure.d.ts +0 -21
  154. package/dist/helpers/measure.d.ts.map +0 -1
  155. package/dist/helpers/measure.js +0 -7
  156. package/dist/helpers/scroll-to-id.d.ts +0 -7
  157. package/dist/helpers/scroll-to-id.d.ts.map +0 -1
  158. package/dist/helpers/scroll-to-id.js +0 -21
  159. package/dist/helpers/sleep.d.ts +0 -6
  160. package/dist/helpers/sleep.d.ts.map +0 -1
  161. package/dist/helpers/sleep.js +0 -4
  162. package/dist/legacy/helpers/index.d.ts +0 -2
  163. package/dist/legacy/helpers/index.d.ts.map +0 -1
  164. package/dist/legacy/helpers/normalizeRequestMethod.d.ts +0 -6
  165. package/dist/legacy/helpers/normalizeRequestMethod.d.ts.map +0 -1
  166. package/dist/legacy/helpers/normalizeRequestMethod.js +0 -10
@@ -2,10 +2,11 @@ import { defineComponent as f, computed as g, createBlock as p, createCommentVNo
2
2
  import V from "../../ScreenReader.vue.js";
3
3
  import { useNavState as _ } from "../../../hooks/useNavState.js";
4
4
  import v from "./OperationsListItem.vue.js";
5
- import L from "../../Card/Card.vue.js";
6
- import S from "../../Card/CardHeader.vue.js";
7
- import b from "../../Card/CardContent.vue.js";
8
- const h = ["aria-label"], T = /* @__PURE__ */ f({
5
+ import I from "../../Card/Card.vue.js";
6
+ import L from "../../Card/CardHeader.vue.js";
7
+ import S from "../../Card/CardContent.vue.js";
8
+ import { operationIdParams as b } from "../../../features/traverse-schema/helpers/operation-id-params.js";
9
+ const h = ["aria-label"], $ = /* @__PURE__ */ f({
9
10
  __name: "OperationsList",
10
11
  props: {
11
12
  tag: {},
@@ -16,12 +17,12 @@ const h = ["aria-label"], T = /* @__PURE__ */ f({
16
17
  const l = c, { getOperationId: u } = _(), n = g(() => l.tag["x-displayName"] ?? l.tag.name);
17
18
  return (e, s) => {
18
19
  var i;
19
- return ((i = e.tag.operations) == null ? void 0 : i.length) > 0 ? (a(), p(t(L), {
20
+ return ((i = e.tag.operations) == null ? void 0 : i.length) > 0 ? (a(), p(t(I), {
20
21
  key: 0,
21
22
  class: "scalar-card-sticky"
22
23
  }, {
23
24
  default: o(() => [
24
- r(t(S), { muted: "" }, {
25
+ r(t(L), { muted: "" }, {
25
26
  default: o(() => [
26
27
  r(V, null, {
27
28
  default: o(() => [
@@ -33,7 +34,7 @@ const h = ["aria-label"], T = /* @__PURE__ */ f({
33
34
  ]),
34
35
  _: 1
35
36
  }),
36
- r(t(b), {
37
+ r(t(S), {
37
38
  class: "custom-scroll",
38
39
  muted: ""
39
40
  }, {
@@ -43,7 +44,7 @@ const h = ["aria-label"], T = /* @__PURE__ */ f({
43
44
  class: "endpoints"
44
45
  }, [
45
46
  (a(!0), y(O, null, B(e.tag.operations, (m) => (a(), p(v, {
46
- key: t(u)(m, e.tag),
47
+ key: t(u)(t(b)(m), e.tag),
47
48
  collection: e.collection,
48
49
  isCollapsed: e.isCollapsed,
49
50
  tag: e.tag,
@@ -60,5 +61,5 @@ const h = ["aria-label"], T = /* @__PURE__ */ f({
60
61
  }
61
62
  });
62
63
  export {
63
- T as default
64
+ $ as default
64
65
  };
@@ -1 +1 @@
1
- {"version":3,"file":"OperationsListItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/OperationsListItem.vue"],"names":[],"mappings":"AAoIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;AACjE,OAAO,KAAK,EAAE,GAAG,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAarE,KAAK,WAAW,GAAG;IACjB,oBAAoB,EAAE,oBAAoB,CAAA;IAC1C,GAAG,EAAE,GAAG,CAAA;IACR,UAAU,EAAE,UAAU,CAAA;IACtB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;AAmJF,wBAMG"}
1
+ {"version":3,"file":"OperationsListItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/OperationsListItem.vue"],"names":[],"mappings":"AAqIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;AACjE,OAAO,KAAK,EAAE,GAAG,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAcrE,KAAK,WAAW,GAAG;IACjB,oBAAoB,EAAE,oBAAoB,CAAA;IAC1C,GAAG,EAAE,GAAG,CAAA;IACR,UAAU,EAAE,UAAU,CAAA;IACtB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;AAoJF,wBAMG"}
@@ -1,7 +1,7 @@
1
1
  import t from "./OperationsListItem.vue2.js";
2
2
  /* empty css */
3
3
  import o from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const s = /* @__PURE__ */ o(t, [["__scopeId", "data-v-04178576"]]);
4
+ const s = /* @__PURE__ */ o(t, [["__scopeId", "data-v-975d0b2f"]]);
5
5
  export {
6
6
  s as default
7
7
  };
@@ -1,13 +1,14 @@
1
- import { defineComponent as u, computed as h, createElementBlock as O, createCommentVNode as s, unref as t, openBlock as i, createBlock as g, createElementVNode as l, withCtx as k, createTextVNode as C, toDisplayString as m, withModifiers as v, createVNode as y, normalizeClass as B } from "vue";
2
- import { useWorkspace as N } from "@scalar/api-client/store";
3
- import { getPointer as V } from "../../../blocks/helpers/getPointer.js";
1
+ import { defineComponent as h, computed as O, createElementBlock as g, createCommentVNode as i, unref as t, openBlock as l, createBlock as k, createElementVNode as m, withCtx as C, createTextVNode as v, toDisplayString as p, withModifiers as y, createVNode as B, normalizeClass as N } from "vue";
2
+ import { useWorkspace as V } from "@scalar/api-client/store";
3
+ import { getPointer as I } from "../../../blocks/helpers/getPointer.js";
4
4
  import { useBlockProps as S } from "../../../blocks/hooks/useBlockProps.js";
5
5
  import { useNavState as w } from "../../../hooks/useNavState.js";
6
6
  import { useSidebar as H } from "../../../hooks/useSidebar.js";
7
- import { isOperationDeprecated as I } from "../../../libs/openapi.js";
7
+ import { isOperationDeprecated as P } from "../../../libs/openapi.js";
8
+ import { operationIdParams as s } from "../../../features/traverse-schema/helpers/operation-id-params.js";
8
9
  import T from "../../Section/SectionHeaderTag.vue.js";
9
10
  import $ from "../../HttpMethod/HttpMethod.vue.js";
10
- const b = ["href"], F = /* @__PURE__ */ u({
11
+ const b = ["href"], J = /* @__PURE__ */ h({
11
12
  __name: "OperationsListItem",
12
13
  props: {
13
14
  transformedOperation: {},
@@ -16,53 +17,53 @@ const b = ["href"], F = /* @__PURE__ */ u({
16
17
  isCollapsed: { type: Boolean }
17
18
  },
18
19
  setup(a) {
19
- const { getOperationId: n } = w(), { scrollToOperation: p } = H(), c = async (e) => {
20
- const o = n(e, a.tag);
21
- p(o, !0);
22
- }, d = N(), { operation: r } = S({
23
- store: d,
20
+ const { getOperationId: n } = w(), { scrollToOperation: c } = H(), d = async (e) => {
21
+ const o = n(s(e), a.tag);
22
+ c(o, !0);
23
+ }, f = V(), { operation: r } = S({
24
+ store: f,
24
25
  collection: a.collection,
25
- location: V([
26
+ location: I([
26
27
  "paths",
27
28
  a.transformedOperation.path,
28
29
  a.transformedOperation.httpVerb.toLowerCase()
29
30
  ])
30
- }), f = h(() => {
31
+ }), u = O(() => {
31
32
  var e, o;
32
33
  return ((e = r.value) == null ? void 0 : e.summary) || ((o = r.value) == null ? void 0 : o.path);
33
34
  });
34
- return (e, o) => t(r) ? (i(), O("li", {
35
- key: t(n)(e.transformedOperation, e.tag),
35
+ return (e, o) => t(r) ? (l(), g("li", {
36
+ key: t(n)(t(s)(e.transformedOperation), e.tag),
36
37
  class: "contents"
37
38
  }, [
38
- e.isCollapsed ? (i(), g(t(T), {
39
+ e.isCollapsed ? (l(), k(t(T), {
39
40
  key: 0,
40
41
  class: "sr-only",
41
42
  level: 3
42
43
  }, {
43
- default: k(() => [
44
- C(m(f.value) + " (Hidden) ", 1)
44
+ default: C(() => [
45
+ v(p(u.value) + " (Hidden) ", 1)
45
46
  ]),
46
47
  _: 1
47
- })) : s("", !0),
48
- l("a", {
48
+ })) : i("", !0),
49
+ m("a", {
49
50
  class: "endpoint",
50
- href: `#${t(n)(e.transformedOperation, e.tag)}`,
51
- onClick: o[0] || (o[0] = v((D) => c(e.transformedOperation), ["prevent"]))
51
+ href: `#${t(n)(t(s)(e.transformedOperation), e.tag)}`,
52
+ onClick: o[0] || (o[0] = y((D) => d(e.transformedOperation), ["prevent"]))
52
53
  }, [
53
- y(t($), {
54
+ B(t($), {
54
55
  class: "endpoint-method",
55
56
  method: t(r).method
56
57
  }, null, 8, ["method"]),
57
- l("span", {
58
- class: B(["endpoint-path", {
59
- deprecated: t(I)(t(r))
58
+ m("span", {
59
+ class: N(["endpoint-path", {
60
+ deprecated: t(P)(t(r))
60
61
  }])
61
- }, m(t(r).path), 3)
62
+ }, p(t(r).path), 3)
62
63
  ], 8, b)
63
- ])) : s("", !0);
64
+ ])) : i("", !0);
64
65
  }
65
66
  });
66
67
  export {
67
- F as default
68
+ J as default
68
69
  };
@@ -1 +1 @@
1
- {"version":3,"file":"TagList.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/TagList.vue"],"names":[],"mappings":"AAiFA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AACzE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,KAAK,EAAE,IAAI,EAAE,GAAG,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAahE,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,IAAI,EAAE,OAAO,EAAE,CAAA;IACf,IAAI,EAAE,IAAI,CAAA;IACV,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,GAAG,OAAO,CAAA;CAC7D,CAAC;;AA+HF,wBAMG"}
1
+ {"version":3,"file":"TagList.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/TagList.vue"],"names":[],"mappings":"AAkFA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AACzE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,KAAK,EAAE,IAAI,EAAE,GAAG,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAchE,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,IAAI,EAAE,OAAO,EAAE,CAAA;IACf,IAAI,EAAE,IAAI,CAAA;IACV,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,GAAG,OAAO,CAAA;CAC7D,CAAC;;AAgIF,wBAMG"}
@@ -1,12 +1,13 @@
1
- import { defineComponent as S, computed as f, createElementBlock as p, openBlock as s, Fragment as y, renderList as h, createBlock as i, unref as o, withCtx as l, resolveDynamicComponent as B, createVNode as v } from "vue";
2
- import { ScalarErrorBoundary as T } from "@scalar/components";
3
- import { useNavState as $ } from "../../../hooks/useNavState.js";
4
- import { useSidebar as b } from "../../../hooks/useSidebar.js";
5
- import C from "./TagAccordion.vue.js";
6
- import O from "./TagSection.vue.js";
1
+ import { defineComponent as B, computed as f, createElementBlock as p, openBlock as s, Fragment as y, renderList as h, createBlock as n, unref as e, withCtx as l, resolveDynamicComponent as T, createVNode as v } from "vue";
2
+ import { ScalarErrorBoundary as $ } from "@scalar/components";
3
+ import { useNavState as b } from "../../../hooks/useNavState.js";
4
+ import { useSidebar as C } from "../../../hooks/useSidebar.js";
5
+ import O from "./TagAccordion.vue.js";
6
+ import _ from "./TagSection.vue.js";
7
7
  import L from "../Lazy/Lazy.vue2.js";
8
- import _ from "../../../features/Operation/Operation.vue.js";
9
- const q = /* @__PURE__ */ S({
8
+ import { operationIdParams as I } from "../../../features/traverse-schema/helpers/operation-id-params.js";
9
+ import E from "../../../features/Operation/Operation.vue.js";
10
+ const G = /* @__PURE__ */ B({
10
11
  __name: "TagList",
11
12
  props: {
12
13
  collection: {},
@@ -16,39 +17,39 @@ const q = /* @__PURE__ */ S({
16
17
  server: {},
17
18
  schemas: {}
18
19
  },
19
- setup(c) {
20
- const { getOperationId: n, getTagId: r, hash: z } = $(), { collapsedSidebarItems: m } = b(), I = f(
21
- () => c.layout === "classic" ? C : O
22
- ), g = f(
23
- () => c.tags.findIndex((e) => !m[r(e)]) + 1
24
- ), u = (e) => c.layout !== "classic" && !z.value.startsWith("model") && e > g.value;
25
- return (e, E) => (s(!0), p(y, null, h(e.tags, (t, d) => (s(), i(o(L), {
26
- id: o(r)(t),
27
- key: o(r)(t),
28
- isLazy: u(d)
20
+ setup(i) {
21
+ const { getOperationId: c, getTagId: t, hash: z } = b(), { collapsedSidebarItems: m } = C(), g = f(
22
+ () => i.layout === "classic" ? O : _
23
+ ), k = f(
24
+ () => i.tags.findIndex((o) => !m[t(o)]) + 1
25
+ ), d = (o) => i.layout !== "classic" && !z.value.startsWith("model") && o > k.value;
26
+ return (o, N) => (s(!0), p(y, null, h(o.tags, (r, u) => (s(), n(e(L), {
27
+ id: e(t)(r),
28
+ key: e(t)(r),
29
+ isLazy: d(u)
29
30
  }, {
30
31
  default: l(() => [
31
- (s(), i(B(I.value), {
32
- id: o(r)(t),
33
- collection: e.collection,
34
- spec: e.spec,
35
- tag: t
32
+ (s(), n(T(g.value), {
33
+ id: e(t)(r),
34
+ collection: o.collection,
35
+ spec: o.spec,
36
+ tag: r
36
37
  }, {
37
38
  default: l(() => [
38
- (s(!0), p(y, null, h(t.operations, (a, k) => (s(), i(o(L), {
39
- id: o(n)(a, t),
39
+ (s(!0), p(y, null, h(r.operations, (a, S) => (s(), n(e(L), {
40
+ id: e(c)(e(I)(a), r),
40
41
  key: `${a.httpVerb}-${a.operationId}`,
41
- isLazy: u(d) || o(m)[o(r)(t)] && k > 0
42
+ isLazy: d(u) || e(m)[e(t)(r)] && S > 0
42
43
  }, {
43
44
  default: l(() => [
44
- v(o(T), null, {
45
+ v(e($), null, {
45
46
  default: l(() => [
46
- v(o(_), {
47
- id: o(n)(a, t),
48
- collection: e.collection,
49
- layout: e.layout,
50
- schemas: e.schemas,
51
- server: e.server,
47
+ v(e(E), {
48
+ id: e(c)(e(I)(a), r),
49
+ collection: o.collection,
50
+ layout: o.layout,
51
+ schemas: o.schemas,
52
+ server: o.server,
52
53
  transformedOperation: a
53
54
  }, null, 8, ["id", "collection", "layout", "schemas", "server", "transformedOperation"])
54
55
  ]),
@@ -66,5 +67,5 @@ const q = /* @__PURE__ */ S({
66
67
  }
67
68
  });
68
69
  export {
69
- q as default
70
+ G as default
70
71
  };
@@ -1 +1 @@
1
- {"version":3,"file":"DocumentSelector.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DocumentSelector/DocumentSelector.vue"],"names":[],"mappings":"AAwEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAA;AAKpE,KAAK,WAAW,GAAG;IACjB,OAAO,CAAC,EAAE,iBAAiB,EAAE,CAAA;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB,CAAC;;;;;;AAqIF,wBAOG"}
1
+ {"version":3,"file":"DocumentSelector.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DocumentSelector/DocumentSelector.vue"],"names":[],"mappings":"AA2DA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAA;AAKpE,KAAK,WAAW,GAAG;IACjB,OAAO,CAAC,EAAE,iBAAiB,EAAE,CAAA;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB,CAAC;;;;;;AA+HF,wBAOG"}
@@ -1,23 +1,24 @@
1
- import { defineComponent as b, computed as n, createElementBlock as f, createCommentVNode as v, openBlock as h, createVNode as i, unref as a, withCtx as x, createElementVNode as c, toDisplayString as V } from "vue";
2
- import { ScalarListbox as g, ScalarIcon as d } from "@scalar/components";
1
+ import { defineComponent as p, computed as s, createElementBlock as b, createCommentVNode as f, openBlock as x, createVNode as a, unref as i, withCtx as v, createElementVNode as d, toDisplayString as V } from "vue";
2
+ import { ScalarListbox as g } from "@scalar/components";
3
+ import { ScalarIconCaretUpDown as h } from "@scalar/icons";
3
4
  const w = {
4
5
  key: 0,
5
6
  class: "document-selector -mb-1 p-3 pb-0"
6
7
  }, S = {
7
8
  class: "group/dropdown-label hover:bg-b-2 text-c-2 flex w-full cursor-pointer items-center rounded border py-1.75 pr-1.5 pl-1.75",
8
9
  tabindex: "0"
9
- }, k = { class: "text-c-1 overflow-hidden text-sm font-medium text-ellipsis" }, N = /* @__PURE__ */ b({
10
+ }, _ = { class: "text-c-1 overflow-hidden text-sm font-medium text-ellipsis" }, y = /* @__PURE__ */ p({
10
11
  __name: "DocumentSelector",
11
12
  props: {
12
13
  options: {},
13
14
  modelValue: {}
14
15
  },
15
16
  emits: ["update:modelValue"],
16
- setup(l, { emit: m }) {
17
- const u = m, p = n(() => {
17
+ setup(l, { emit: c }) {
18
+ const m = c, u = s(() => {
18
19
  var e;
19
20
  return l.options && ((e = l.options) == null ? void 0 : e.length) > 1;
20
- }), r = n(
21
+ }), r = s(
21
22
  () => {
22
23
  var e;
23
24
  return ((e = l.options) == null ? void 0 : e.map((o, t) => ({
@@ -26,42 +27,34 @@ const w = {
26
27
  label: o.title || o.slug || `API #${t + 1}`
27
28
  }))) || [];
28
29
  }
29
- ), s = n({
30
+ ), n = s({
30
31
  get: () => r.value.find(({ id: e }) => e === String(l.modelValue)),
31
- set: (e) => u("update:modelValue", Number(e.id))
32
+ set: (e) => m("update:modelValue", Number(e.id))
32
33
  });
33
- return (e, o) => p.value ? (h(), f("div", w, [
34
- i(a(g), {
35
- modelValue: s.value,
36
- "onUpdate:modelValue": o[0] || (o[0] = (t) => s.value = t),
34
+ return (e, o) => u.value ? (x(), b("div", w, [
35
+ a(i(g), {
36
+ modelValue: n.value,
37
+ "onUpdate:modelValue": o[0] || (o[0] = (t) => n.value = t),
37
38
  options: r.value,
38
39
  resize: ""
39
40
  }, {
40
- default: x(() => {
41
+ default: v(() => {
41
42
  var t;
42
43
  return [
43
- c("div", S, [
44
- i(a(d), {
45
- class: "mr-1.25 min-w-4",
46
- icon: "Versions",
47
- size: "sm",
48
- thickness: "2"
44
+ d("div", S, [
45
+ a(i(h), {
46
+ class: "mr-1.5 h-3 w-3 text-current",
47
+ weight: "bold"
49
48
  }),
50
- c("span", k, V(((t = s.value) == null ? void 0 : t.label) || "Select API"), 1),
51
- i(a(d), {
52
- class: "group-hover/dropdown-label:text-c-1 mr-2 ml-auto",
53
- icon: "ChevronDown",
54
- size: "sm",
55
- thickness: "2"
56
- })
49
+ d("span", _, V(((t = n.value) == null ? void 0 : t.label) || "Select API"), 1)
57
50
  ])
58
51
  ];
59
52
  }),
60
53
  _: 1
61
54
  }, 8, ["modelValue", "options"])
62
- ])) : v("", !0);
55
+ ])) : f("", !0);
63
56
  }
64
57
  });
65
58
  export {
66
- N as default
59
+ y as default
67
60
  };
@@ -1 +1 @@
1
- {"version":3,"file":"GettingStarted.vue.d.ts","sourceRoot":"","sources":["../../src/components/GettingStarted.vue"],"names":[],"mappings":"AA+cA,OAAO,EAAe,KAAK,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAI1D,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,OAAO,CAAA;CACf,CAAC;;;YAIwC,OAAO;eAAS,MAAM;;;;;;;YAAtB,OAAO;eAAS,MAAM;;;;;;AA6QhE,wBAQG"}
1
+ {"version":3,"file":"GettingStarted.vue.d.ts","sourceRoot":"","sources":["../../src/components/GettingStarted.vue"],"names":[],"mappings":"AA4cA,OAAO,EAAe,KAAK,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAI1D,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,OAAO,CAAA;CACf,CAAC;;;YAIwC,OAAO;eAAS,MAAM;;;;;;;YAAtB,OAAO;eAAS,MAAM;;;;;;AA6QhE,wBAQG"}
@@ -1,7 +1,7 @@
1
1
  import t from "./GettingStarted.vue2.js";
2
2
  /* empty css */
3
- import o from "../_virtual/_plugin-vue_export-helper.js";
4
- const f = /* @__PURE__ */ o(t, [["__scopeId", "data-v-0f473adb"]]);
3
+ import a from "../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ a(t, [["__scopeId", "data-v-0aca3a20"]]);
5
5
  export {
6
- f as default
6
+ m as default
7
7
  };
@@ -1,14 +1,14 @@
1
- import { defineComponent as b, createElementBlock as o, openBlock as d, createElementVNode as e, createStaticVNode as r, createVNode as i, unref as l, withCtx as n, createTextVNode as p, Fragment as u, renderList as w, normalizeClass as y, toDisplayString as A } from "vue";
2
- import { ScalarButton as c } from "@scalar/components";
3
- import { themeLabels as f } from "@scalar/themes";
4
- const C = { class: "start custom-scroll" }, S = { class: "start-copy" }, x = { class: "start-cta" }, k = { class: "start-row" }, Z = { class: "start-section start-section-colors" }, E = ["onClick"], P = /* @__PURE__ */ b({
1
+ import { defineComponent as f, createElementBlock as o, openBlock as i, createElementVNode as e, createStaticVNode as r, createVNode as c, unref as l, withCtx as n, createTextVNode as d, Fragment as w, renderList as y, normalizeClass as A, toDisplayString as C } from "vue";
2
+ import { ScalarButton as p } from "@scalar/components";
3
+ import { themeLabels as v } from "@scalar/themes";
4
+ const S = { class: "start custom-scroll" }, x = { class: "start-copy" }, b = { class: "start-cta" }, k = { class: "start-row" }, Z = { class: "start-section start-section-colors" }, E = ["onClick"], P = /* @__PURE__ */ f({
5
5
  __name: "GettingStarted",
6
6
  props: {
7
7
  theme: {}
8
8
  },
9
9
  emits: ["changeTheme", "loadSwaggerFile", "linkSwaggerFile", "updateContent"],
10
- setup(F, { emit: v }) {
11
- const g = v, m = [
10
+ setup(F, { emit: g }) {
11
+ const m = g, h = [
12
12
  "default",
13
13
  "alternate",
14
14
  "moon",
@@ -20,49 +20,49 @@ const C = { class: "start custom-scroll" }, S = { class: "start-copy" }, x = { c
20
20
  "mars",
21
21
  "deepSpace"
22
22
  ];
23
- async function h() {
23
+ async function u() {
24
24
  const s = await fetch(
25
25
  "https://cdn.jsdelivr.net/npm/@scalar/galaxy/dist/latest.yaml"
26
26
  );
27
- g("updateContent", await s.text());
27
+ m("updateContent", await s.text());
28
28
  }
29
- return (s, a) => (d(), o("div", C, [
30
- e("div", S, [
31
- a[3] || (a[3] = r('<div class="start-logo" data-v-0f473adb><svg height="36" viewBox="0 0 36 36" width="36" xmlns="http://www.w3.org/2000/svg" data-v-0f473adb><path d="M18 0a18 18 0 1 1 0 36 18 18 0 0 1 0-36Zm11.2 6.5c-3.3-3.3-11.1-1-17.4 5.3-6.2 6.3-8.6 14-5.3 17.4 3.3 3.3 11 .9 17.3-5.4 6.3-6.2 8.7-14 5.4-17.3ZM17.6 12a6.3 6.3 0 1 1 0 12.7 6.3 6.3 0 0 1 0-12.7Z" fill="currentColor" fill-rule="evenodd" data-v-0f473adb></path></svg></div><h1 class="start-h1" data-v-0f473adb>Swagger Editor</h1><p class="start-p" data-v-0f473adb> Welcome to the Scalar API References + Swagger Editor, a Free &amp; Open-Source tool that takes your Swagger/OAS file and generates Beautiful API references. </p>', 3)),
32
- e("div", x, [
33
- i(l(c), {
29
+ return (s, a) => (i(), o("div", S, [
30
+ e("div", x, [
31
+ a[3] || (a[3] = r('<div class="start-logo" data-v-0aca3a20><svg height="36" viewBox="0 0 36 36" width="36" xmlns="http://www.w3.org/2000/svg" data-v-0aca3a20><path d="M18 0a18 18 0 1 1 0 36 18 18 0 0 1 0-36Zm11.2 6.5c-3.3-3.3-11.1-1-17.4 5.3-6.2 6.3-8.6 14-5.3 17.4 3.3 3.3 11 .9 17.3-5.4 6.3-6.2 8.7-14 5.4-17.3ZM17.6 12a6.3 6.3 0 1 1 0 12.7 6.3 6.3 0 0 1 0-12.7Z" fill="currentColor" fill-rule="evenodd" data-v-0aca3a20></path></svg></div><h1 class="start-h1" data-v-0aca3a20>Swagger Editor</h1><p class="start-p" data-v-0aca3a20> Welcome to the Scalar API References + Swagger Editor, a Free &amp; Open-Source tool that takes your Swagger/OAS file and generates Beautiful API references. </p>', 3)),
32
+ e("div", b, [
33
+ c(l(p), {
34
34
  fullWidth: "",
35
- onClick: h
35
+ onClick: u
36
36
  }, {
37
37
  default: n(() => a[1] || (a[1] = [
38
- p(" Show Example ")
38
+ d(" Show Example ")
39
39
  ])),
40
40
  _: 1
41
41
  }),
42
- i(l(c), {
42
+ c(l(p), {
43
43
  fullWidth: "",
44
44
  variant: "outlined",
45
45
  onClick: a[0] || (a[0] = (t) => s.$emit("loadSwaggerFile"))
46
46
  }, {
47
47
  default: n(() => a[2] || (a[2] = [
48
- p(" Upload File ")
48
+ d(" Upload File ")
49
49
  ])),
50
50
  _: 1
51
51
  })
52
52
  ])
53
53
  ]),
54
54
  e("div", k, [
55
- a[5] || (a[5] = r('<div class="start-section start-section-integrations" data-v-0f473adb><div class="start-h2" data-v-0f473adb>INTEGRATIONS</div><a class="start-item" href="https://github.com/scalar/scalar/tree/main/integrations/fastify#readme" target="_blank" data-v-0f473adb><svg fill="currentColor" height="16" viewBox="0 0 19 16" width="19" xmlns="http://www.w3.org/2000/svg" data-v-0f473adb><path d="m18.2 3.1.8-2V.9l-4.7 1.3C15.2 1 15 0 15 0s-2.5 1.6-4.3 1.5c-2 0-3.6.8-4 1-1.8 1.2-2.5 3.3-3.2 3.8L0 8.9 2.3 8l-2 2.5c.2.3 1.2 1.6 2.1 1.3l.4-.1 1.6.5-.7-1 .2-.2.9.3-.1-.8.9.3-.1-.8.3-.1 1-3.5 3.7-2.6-.3.7A4 4 0 0 1 8 7l-.6.2c-.5.5-.7.7-.8 2.5a2 2 0 0 1 1 0c1.6.4 2.2 2.3 1.7 2.9l-.7.6H8v.6h-.7v.5l-.2.2c-.7 0-1.4-.6-1.4-.6 0 .5.4 1.3.4 1.3s1.7 1.1 2.7.7c1-.4.7-2.3 2.8-3.2l3.3-.9.8-2.2-1.7.5v-2l2.5-.6.9-2.2-3.4.9v-2l4.2-1.1Z" fill="currentColor" fill-rule="nonzero" data-v-0f473adb></path></svg><span data-v-0f473adb>Fastify</span></a><a class="start-item" href="https://github.com/scalar/scalar/blob/main/documentation/integrations/html-js.md#html" target="_blank" data-v-0f473adb><svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" data-v-0f473adb><g data-v-0f473adb><path d="M22.5 1.5h-21A1.5 1.5 0 0 0 0 3v3a1.5 1.5 0 0 0 1.5 1.5h21A1.5 1.5 0 0 0 24 6V3a1.5 1.5 0 0 0-1.5-1.5Zm-19.25 3A1.25 1.25 0 1 1 4.5 5.75 1.25 1.25 0 0 1 3.25 4.5ZM8.5 5.75A1.25 1.25 0 1 1 9.75 4.5 1.25 1.25 0 0 1 8.5 5.75Z" fill="currentColor" data-v-0f473adb></path><path d="M22.5 9h-21A1.5 1.5 0 0 0 0 10.5v3A1.5 1.5 0 0 0 1.5 15h21a1.5 1.5 0 0 0 1.5-1.5v-3A1.5 1.5 0 0 0 22.5 9ZM3.25 12a1.25 1.25 0 1 1 1.25 1.25A1.25 1.25 0 0 1 3.25 12Zm5.25 1.25A1.25 1.25 0 1 1 9.75 12a1.25 1.25 0 0 1-1.25 1.25Z" fill="currentColor" data-v-0f473adb></path><path d="M22.5 16.5h-21A1.5 1.5 0 0 0 0 18v3a1.5 1.5 0 0 0 1.5 1.5h21A1.5 1.5 0 0 0 24 21v-3a1.5 1.5 0 0 0-1.5-1.5Zm-19.25 3a1.25 1.25 0 1 1 1.25 1.25 1.25 1.25 0 0 1-1.25-1.25Zm5.25 1.25a1.25 1.25 0 1 1 1.25-1.25 1.25 1.25 0 0 1-1.25 1.25Z" fill="currentColor" data-v-0f473adb></path></g></svg><span data-v-0f473adb>CDN</span></a><a class="start-item" href="https://github.com/scalar/scalar/blob/main/packages/api-reference/README.md#vuejs" target="_blank" data-v-0f473adb><svg height="170" viewBox="0 0 196.3 170" width="196.3" xmlns="http://www.w3.org/2000/svg" data-v-0f473adb><g fill="currentColor" fill-rule="nonzero" data-v-0f473adb><polygon points="39.23 0 0 0 2.9450761 5.1010782 98.16 170.02 196.32 0 157.06 0 98.16 102.01 42.175701 5.0991171" data-v-0f473adb></polygon><polygon points="75.5 2.009956e-14 0 2.009956e-14 2.94 5.1 78.44871 5.1 98.16 39.26 117.87937 5.1 193.38 5.1 196.325 0 120.82 7.8065636e-15 114.97322 2.009956e-14 98.16 29.037153 81.35 2.009956e-14" data-v-0f473adb></polygon></g></svg><span data-v-0f473adb>Vue</span></a><a class="start-item" href="https://github.com/scalar/scalar/blob/main/packages/api-reference-react/README.md#usage" target="_blank" data-v-0f473adb><svg height="23.3" viewBox="0 0 22 23.3" width="22" xmlns="http://www.w3.org/2000/svg" data-v-0f473adb><g fill="none" fill-rule="evenodd" data-v-0f473adb><circle cx="11" cy="11.6" fill="currentColor" fill-rule="nonzero" r="2" data-v-0f473adb></circle><g stroke="currentColor" data-v-0f473adb><ellipse cx="11" cy="11.6" rx="11" ry="4.2" data-v-0f473adb></ellipse><ellipse cx="11" cy="11.6" rx="11" ry="4.2" transform="rotate(60 11 11.6)" data-v-0f473adb></ellipse><ellipse cx="11" cy="11.6" rx="11" ry="4.2" transform="rotate(120 11 11.6)" data-v-0f473adb></ellipse></g></g></svg><span data-v-0f473adb>React</span></a></div>', 1)),
55
+ a[5] || (a[5] = r('<div class="start-section start-section-integrations" data-v-0aca3a20><div class="start-h2" data-v-0aca3a20>INTEGRATIONS</div><a class="start-item" href="https://github.com/scalar/scalar/tree/main/integrations/fastify#readme" target="_blank" data-v-0aca3a20><svg fill="currentColor" height="16" viewBox="0 0 19 16" width="19" xmlns="http://www.w3.org/2000/svg" data-v-0aca3a20><path d="m18.2 3.1.8-2V.9l-4.7 1.3C15.2 1 15 0 15 0s-2.5 1.6-4.3 1.5c-2 0-3.6.8-4 1-1.8 1.2-2.5 3.3-3.2 3.8L0 8.9 2.3 8l-2 2.5c.2.3 1.2 1.6 2.1 1.3l.4-.1 1.6.5-.7-1 .2-.2.9.3-.1-.8.9.3-.1-.8.3-.1 1-3.5 3.7-2.6-.3.7A4 4 0 0 1 8 7l-.6.2c-.5.5-.7.7-.8 2.5a2 2 0 0 1 1 0c1.6.4 2.2 2.3 1.7 2.9l-.7.6H8v.6h-.7v.5l-.2.2c-.7 0-1.4-.6-1.4-.6 0 .5.4 1.3.4 1.3s1.7 1.1 2.7.7c1-.4.7-2.3 2.8-3.2l3.3-.9.8-2.2-1.7.5v-2l2.5-.6.9-2.2-3.4.9v-2l4.2-1.1Z" fill="currentColor" fill-rule="nonzero" data-v-0aca3a20></path></svg><span data-v-0aca3a20>Fastify</span></a><a class="start-item" href="https://github.com/scalar/scalar/blob/main/documentation/integrations/html-js.md#html" target="_blank" data-v-0aca3a20><svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" data-v-0aca3a20><g data-v-0aca3a20><path d="M22.5 1.5h-21A1.5 1.5 0 0 0 0 3v3a1.5 1.5 0 0 0 1.5 1.5h21A1.5 1.5 0 0 0 24 6V3a1.5 1.5 0 0 0-1.5-1.5Zm-19.25 3A1.25 1.25 0 1 1 4.5 5.75 1.25 1.25 0 0 1 3.25 4.5ZM8.5 5.75A1.25 1.25 0 1 1 9.75 4.5 1.25 1.25 0 0 1 8.5 5.75Z" fill="currentColor" data-v-0aca3a20></path><path d="M22.5 9h-21A1.5 1.5 0 0 0 0 10.5v3A1.5 1.5 0 0 0 1.5 15h21a1.5 1.5 0 0 0 1.5-1.5v-3A1.5 1.5 0 0 0 22.5 9ZM3.25 12a1.25 1.25 0 1 1 1.25 1.25A1.25 1.25 0 0 1 3.25 12Zm5.25 1.25A1.25 1.25 0 1 1 9.75 12a1.25 1.25 0 0 1-1.25 1.25Z" fill="currentColor" data-v-0aca3a20></path><path d="M22.5 16.5h-21A1.5 1.5 0 0 0 0 18v3a1.5 1.5 0 0 0 1.5 1.5h21A1.5 1.5 0 0 0 24 21v-3a1.5 1.5 0 0 0-1.5-1.5Zm-19.25 3a1.25 1.25 0 1 1 1.25 1.25 1.25 1.25 0 0 1-1.25-1.25Zm5.25 1.25a1.25 1.25 0 1 1 1.25-1.25 1.25 1.25 0 0 1-1.25 1.25Z" fill="currentColor" data-v-0aca3a20></path></g></svg><span data-v-0aca3a20>CDN</span></a><a class="start-item" href="https://github.com/scalar/scalar/blob/main/packages/api-reference/README.md#vuejs" target="_blank" data-v-0aca3a20><svg height="170" viewBox="0 0 196.3 170" width="196.3" xmlns="http://www.w3.org/2000/svg" data-v-0aca3a20><g fill="currentColor" fill-rule="nonzero" data-v-0aca3a20><polygon points="39.23 0 0 0 2.9450761 5.1010782 98.16 170.02 196.32 0 157.06 0 98.16 102.01 42.175701 5.0991171" data-v-0aca3a20></polygon><polygon points="75.5 2.009956e-14 0 2.009956e-14 2.94 5.1 78.44871 5.1 98.16 39.26 117.87937 5.1 193.38 5.1 196.325 0 120.82 7.8065636e-15 114.97322 2.009956e-14 98.16 29.037153 81.35 2.009956e-14" data-v-0aca3a20></polygon></g></svg><span data-v-0aca3a20>Vue</span></a><a class="start-item" href="https://github.com/scalar/scalar/blob/main/packages/api-reference-react/README.md#usage" target="_blank" data-v-0aca3a20><svg height="23.3" viewBox="0 0 22 23.3" width="22" xmlns="http://www.w3.org/2000/svg" data-v-0aca3a20><g fill="none" fill-rule="evenodd" data-v-0aca3a20><circle cx="11" cy="11.6" fill="currentColor" fill-rule="nonzero" r="2" data-v-0aca3a20></circle><g stroke="currentColor" data-v-0aca3a20><ellipse cx="11" cy="11.6" rx="11" ry="4.2" data-v-0aca3a20></ellipse><ellipse cx="11" cy="11.6" rx="11" ry="4.2" transform="rotate(60 11 11.6)" data-v-0aca3a20></ellipse><ellipse cx="11" cy="11.6" rx="11" ry="4.2" transform="rotate(120 11 11.6)" data-v-0aca3a20></ellipse></g></g></svg><span data-v-0aca3a20>React</span></a></div>', 1)),
56
56
  e("div", Z, [
57
57
  a[4] || (a[4] = e("p", { class: "start-h2" }, "THEMING", -1)),
58
- (d(), o(u, null, w(m, (t) => e("div", {
58
+ (i(), o(w, null, y(h, (t) => e("div", {
59
59
  key: t,
60
- class: y(["start-item", { "start-item-active": t === s.theme }]),
61
- onClick: (B) => s.$emit("changeTheme", { id: t, label: l(f)[t] })
62
- }, A(l(f)[t]), 11, E)), 64))
60
+ class: A(["start-item", { "start-item-active": t === s.theme }]),
61
+ onClick: (B) => s.$emit("changeTheme", { id: t, label: l(v)[t] })
62
+ }, C(l(v)[t]), 11, E)), 64))
63
63
  ])
64
64
  ]),
65
- a[6] || (a[6] = r('<p class="start-h1" data-v-0f473adb>Features</p><ul class="start-ul" data-v-0f473adb><li data-v-0f473adb><p class="start-h3" data-v-0f473adb>Customize</p> Bring your typography &amp; color palettes, or use our themes! </li><li data-v-0f473adb><p class="start-h3" data-v-0f473adb>Testing</p> A deeply integrated Rest API Client (Also Free &amp; Open-Source) </li><li data-v-0f473adb><p class="start-h3" data-v-0f473adb>Search</p> Fully integrated Search (Using fuse.js) </li><li data-v-0f473adb><p class="start-h3" data-v-0f473adb>Hosting</p> Free subdomain hosting on https://apidocumentation.com </li><li data-v-0f473adb><p class="start-h3" data-v-0f473adb>OpenAPI &amp; Swagger</p> Support for OpenAPI 3.1, OpenAPI 3.0, and Swagger 2.0 </li><li data-v-0f473adb><p class="start-h3" data-v-0f473adb>Code Samples</p> Code samples to show off your API in most popular languages </li></ul>', 2))
65
+ a[6] || (a[6] = r('<p class="start-h1" data-v-0aca3a20>Features</p><ul class="start-ul" data-v-0aca3a20><li data-v-0aca3a20><p class="start-h3" data-v-0aca3a20>Customize</p> Bring your typography &amp; color palettes, or use our themes! </li><li data-v-0aca3a20><p class="start-h3" data-v-0aca3a20>Testing</p> A deeply integrated Rest API Client (Also Free &amp; Open-Source) </li><li data-v-0aca3a20><p class="start-h3" data-v-0aca3a20>Search</p> Fully integrated Search (Using fuse.js) </li><li data-v-0aca3a20><p class="start-h3" data-v-0aca3a20>Hosting</p> Free subdomain hosting on https://apidocumentation.com </li><li data-v-0aca3a20><p class="start-h3" data-v-0aca3a20>OpenAPI &amp; Swagger</p> Support for OpenAPI 3.1, OpenAPI 3.0, and Swagger 2.0 </li><li data-v-0aca3a20><p class="start-h3" data-v-0aca3a20>Code Samples</p> Code samples to show off your API in most popular languages </li></ul>', 2))
66
66
  ]));
67
67
  }
68
68
  });
@@ -10,25 +10,6 @@ type __VLS_Props = {
10
10
  /** The HTTP method to show */
11
11
  method: OpenAPI.HttpMethod | string;
12
12
  };
13
- declare function __VLS_template(): {
14
- attrs: Partial<{}>;
15
- slots: {
16
- default?(_: {
17
- normalized: string;
18
- abbreviated: string;
19
- color: string;
20
- }): any;
21
- };
22
- refs: {};
23
- rootEl: any;
24
- };
25
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
26
- declare const __VLS_component: 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>;
27
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
13
+ 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>;
28
14
  export default _default;
29
- type __VLS_WithTemplateSlots<T, S> = T & {
30
- new (): {
31
- $slots: S;
32
- };
33
- };
34
15
  //# sourceMappingURL=HttpMethod.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"HttpMethod.vue.d.ts","sourceRoot":"","sources":["../../../src/components/HttpMethod/HttpMethod.vue"],"names":[],"mappings":"AA0DA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AACpD,OAAO,EAAY,KAAK,SAAS,EAAE,MAAM,KAAK,CAAA;AAO9C,KAAK,WAAW,GAAG;IACjB,2DAA2D;IAC3D,EAAE,CAAC,EAAE,SAAS,GAAG,MAAM,CAAA;IACvB,2GAA2G;IAC3G,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,qDAAqD;IACrD,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,8BAA8B;IAC9B,MAAM,EAAE,OAAO,CAAC,UAAU,GAAG,MAAM,CAAA;CACpC,CAAC;AAqCF,iBAAS,cAAc;WA0CT,OAAO,IAA6B;;;;;;YARrB,GAAG;;;;EAa/B;AAWD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,kSAOnB,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":"HttpMethod.vue.d.ts","sourceRoot":"","sources":["../../../src/components/HttpMethod/HttpMethod.vue"],"names":[],"mappings":"AAoCA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AACpD,OAAO,EAAY,KAAK,SAAS,EAAE,MAAM,KAAK,CAAA;AAI9C,KAAK,WAAW,GAAG;IACjB,2DAA2D;IAC3D,EAAE,CAAC,EAAE,SAAS,GAAG,MAAM,CAAA;IACvB,2GAA2G;IAC3G,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,qDAAqD;IACrD,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,8BAA8B;IAC9B,MAAM,EAAE,OAAO,CAAC,UAAU,GAAG,MAAM,CAAA;CACpC,CAAC;;AAqEF,wBAOG"}
@@ -1,7 +1,7 @@
1
- import { defineComponent as u, computed as r, createBlock as p, openBlock as i, resolveDynamicComponent as m, normalizeStyle as c, withCtx as d, renderSlot as v, normalizeProps as h, guardReactiveProps as f, createTextVNode as y, toDisplayString as b } from "vue";
2
- import { requestMethodAbbreviations as C, requestMethodColors as z } from "./constants.js";
3
- import { isRequestMethod as l } from "./utils/isRequestMethod.js";
4
- const S = /* @__PURE__ */ u({
1
+ import { defineComponent as n, computed as r, createBlock as s, openBlock as l, resolveDynamicComponent as m, normalizeStyle as c, withCtx as d, createTextVNode as h, toDisplayString as i } from "vue";
2
+ import { getHttpMethodInfo as u } from "@scalar/helpers/http/http-info";
3
+ import { normalizeHttpMethod as f } from "@scalar/helpers/http/normalize-http-method";
4
+ const z = /* @__PURE__ */ n({
5
5
  __name: "HttpMethod",
6
6
  props: {
7
7
  as: {},
@@ -9,20 +9,19 @@ const S = /* @__PURE__ */ u({
9
9
  short: { type: Boolean },
10
10
  method: {}
11
11
  },
12
- setup(s) {
13
- const n = s, e = r(() => n.method.trim().toUpperCase()), t = r(() => l(e.value) ? C[e.value] : e.value.slice(0, 4)), a = r(() => l(e.value) ? z[e.value] : "var(--scalar-color-ghost)");
14
- return (o, M) => (i(), p(m(o.as ?? "span"), {
15
- style: c({ [o.property || "color"]: a.value })
12
+ setup(p) {
13
+ const t = p, e = r(() => u(t.method)), a = r(() => f(t.method));
14
+ return (o, y) => (l(), s(m(o.as ?? "span"), {
15
+ class: "uppercase",
16
+ style: c({ [o.property || "color"]: e.value.colorVar })
16
17
  }, {
17
18
  default: d(() => [
18
- v(o.$slots, "default", h(f({ normalized: e.value, abbreviated: t.value, color: a.value })), () => [
19
- y(b(o.short ? t.value : e.value), 1)
20
- ])
19
+ h(i(o.short ? e.value.short : a.value), 1)
21
20
  ]),
22
- _: 3
21
+ _: 1
23
22
  }, 8, ["style"]));
24
23
  }
25
24
  });
26
25
  export {
27
- S as default
26
+ z as default
28
27
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./CompactSection.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.js";
4
- const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-c00bde82"]]);
4
+ const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-4b9f7b57"]]);
5
5
  export {
6
- r as default
6
+ a as default
7
7
  };
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as u, ref as m, useId as f, watch as v, nextTick as h, createElementBlock as b, openBlock as n, createElementVNode as C, createBlock as k, createCommentVNode as g, normalizeClass as S, unref as t, createVNode as r, withCtx as s, renderSlot as c } from "vue";
2
2
  import { ScalarIcon as _ } from "@scalar/components";
3
- import w from "../Anchor/Anchor.vue.js";
4
- import N from "./Section.vue.js";
5
- import { scrollToId as y } from "../../helpers/scroll-to-id.js";
3
+ import { scrollToId as w } from "@scalar/helpers/dom/scroll-to-id";
4
+ import N from "../Anchor/Anchor.vue.js";
5
+ import y from "./Section.vue.js";
6
6
  import { useNavState as B } from "../../hooks/useNavState.js";
7
7
  const I = { class: "collapsible-section" }, V = ["id", "aria-controls", "aria-expanded"], R = /* @__PURE__ */ u({
8
8
  __name: "CompactSection",
@@ -15,7 +15,7 @@ const I = { class: "collapsible-section" }, V = ["id", "aria-controls", "aria-ex
15
15
  return v(
16
16
  p,
17
17
  async (o) => {
18
- o === a.id && !e.value && (e.value = !0, await h(), y(a.id));
18
+ o === a.id && !e.value && (e.value = !0, await h(), w(a.id));
19
19
  },
20
20
  { immediate: !0 }
21
21
  ), (o, i) => (n(), b("div", I, [
@@ -32,7 +32,7 @@ const I = { class: "collapsible-section" }, V = ["id", "aria-controls", "aria-ex
32
32
  size: "md",
33
33
  thickness: "1.5"
34
34
  }, null, 8, ["icon"]),
35
- r(w, {
35
+ r(N, {
36
36
  id: o.id,
37
37
  class: "collapsible-section-header"
38
38
  }, {
@@ -42,7 +42,7 @@ const I = { class: "collapsible-section" }, V = ["id", "aria-controls", "aria-ex
42
42
  _: 3
43
43
  }, 8, ["id"])
44
44
  ], 10, V),
45
- e.value ? (n(), k(N, {
45
+ e.value ? (n(), k(y, {
46
46
  key: 0,
47
47
  id: t(l),
48
48
  class: "collapsible-section-content",