@scalar/api-reference 1.35.7 → 1.36.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 (194) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/dist/browser/standalone.js +14984 -15007
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
  5. package/dist/components/ApiReferenceLayout.vue.js +1 -1
  6. package/dist/components/ApiReferenceLayout.vue2.js +148 -150
  7. package/dist/components/Content/Content.vue.d.ts.map +1 -1
  8. package/dist/components/Content/Content.vue.js +44 -51
  9. package/dist/components/Content/Models/ClassicLayout.vue.d.ts +4 -1
  10. package/dist/components/Content/Models/ClassicLayout.vue.d.ts.map +1 -1
  11. package/dist/components/Content/Models/ClassicLayout.vue.js +1 -1
  12. package/dist/components/Content/Models/ClassicLayout.vue2.js +49 -40
  13. package/dist/components/Content/Models/Models.vue.d.ts +2 -2
  14. package/dist/components/Content/Models/Models.vue.d.ts.map +1 -1
  15. package/dist/components/Content/Models/Models.vue.js +25 -23
  16. package/dist/components/Content/Models/ModernLayout.vue.d.ts +1 -0
  17. package/dist/components/Content/Models/ModernLayout.vue.d.ts.map +1 -1
  18. package/dist/components/Content/Models/ModernLayout.vue.js +2 -2
  19. package/dist/components/Content/Models/ModernLayout.vue2.js +54 -51
  20. package/dist/components/Content/Operations/TraversedEntry.vue.d.ts +1 -2
  21. package/dist/components/Content/Operations/TraversedEntry.vue.d.ts.map +1 -1
  22. package/dist/components/Content/Operations/TraversedEntry.vue.js +24 -24
  23. package/dist/components/Content/Operations/TraversedEntryContainer.vue.d.ts.map +1 -1
  24. package/dist/components/Content/Operations/TraversedEntryContainer.vue.js +1 -1
  25. package/dist/components/Content/Operations/get-current-index.d.ts +1 -1
  26. package/dist/components/Content/Operations/get-current-index.d.ts.map +1 -1
  27. package/dist/components/Content/Operations/get-current-index.js +1 -1
  28. package/dist/components/Content/Schema/Schema.vue.d.ts +3 -4
  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 +72 -75
  32. package/dist/components/Content/Schema/SchemaComposition.vue.d.ts +4 -5
  33. package/dist/components/Content/Schema/SchemaComposition.vue.d.ts.map +1 -1
  34. package/dist/components/Content/Schema/SchemaComposition.vue.js +46 -49
  35. package/dist/components/Content/Schema/SchemaObjectProperties.vue.d.ts +2 -7
  36. package/dist/components/Content/Schema/SchemaObjectProperties.vue.d.ts.map +1 -1
  37. package/dist/components/Content/Schema/SchemaObjectProperties.vue.js +33 -54
  38. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +4 -6
  39. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
  40. package/dist/components/Content/Schema/SchemaProperty.vue.js +2 -2
  41. package/dist/components/Content/Schema/SchemaProperty.vue2.js +72 -76
  42. package/dist/components/Content/Schema/helpers/sort-property-names.d.ts +16 -0
  43. package/dist/components/Content/Schema/helpers/sort-property-names.d.ts.map +1 -0
  44. package/dist/components/Content/Schema/helpers/sort-property-names.js +36 -0
  45. package/dist/components/Content/Schema/types.d.ts +17 -0
  46. package/dist/components/Content/Schema/types.d.ts.map +1 -0
  47. package/dist/components/Content/Tags/ClassicLayout.vue.d.ts +1 -1
  48. package/dist/components/Content/Tags/ClassicLayout.vue.d.ts.map +1 -1
  49. package/dist/components/Content/Tags/ClassicLayout.vue.js +2 -2
  50. package/dist/components/Content/Tags/ClassicLayout.vue2.js +1 -1
  51. package/dist/components/Content/Tags/ModernLayout.vue.d.ts +1 -1
  52. package/dist/components/Content/Tags/ModernLayout.vue.d.ts.map +1 -1
  53. package/dist/components/Content/Tags/ModernLayout.vue.js +2 -2
  54. package/dist/components/Content/Tags/ModernLayout.vue2.js +2 -2
  55. package/dist/components/Content/Tags/Tag.vue.d.ts +1 -1
  56. package/dist/components/Content/Tags/Tag.vue.d.ts.map +1 -1
  57. package/dist/components/Content/Tags/TagSection.vue.d.ts +1 -1
  58. package/dist/components/Content/Tags/TagSection.vue.d.ts.map +1 -1
  59. package/dist/components/Content/Tags/TagSection.vue.js +4 -4
  60. package/dist/components/MobileHeader.vue.js +2 -2
  61. package/dist/components/MobileHeader.vue2.js +1 -1
  62. package/dist/components/OperationsList/OperationsList.vue.d.ts +1 -1
  63. package/dist/components/OperationsList/OperationsList.vue.d.ts.map +1 -1
  64. package/dist/components/OperationsList/OperationsList.vue.js +1 -1
  65. package/dist/components/OperationsList/OperationsList.vue2.js +9 -11
  66. package/dist/components/OperationsList/OperationsListItem.vue.d.ts +1 -1
  67. package/dist/components/OperationsList/OperationsListItem.vue.d.ts.map +1 -1
  68. package/dist/components/OperationsList/OperationsListItem.vue.js +2 -2
  69. package/dist/components/OperationsList/OperationsListItem.vue2.js +24 -27
  70. package/dist/components/Section/Section.vue.d.ts.map +1 -1
  71. package/dist/components/Section/Section.vue.js +2 -2
  72. package/dist/components/Section/Section.vue2.js +12 -13
  73. package/dist/components/Section/SectionAccordion.vue.d.ts.map +1 -1
  74. package/dist/components/Section/SectionAccordion.vue.js +1 -1
  75. package/dist/components/Section/SectionAccordion.vue2.js +36 -37
  76. package/dist/components/ShowMoreButton.vue.js +2 -2
  77. package/dist/components/ShowMoreButton.vue2.js +3 -3
  78. package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
  79. package/dist/features/Operation/Operation.vue.js +32 -22
  80. package/dist/features/Operation/components/Header.vue.d.ts +2 -0
  81. package/dist/features/Operation/components/Header.vue.d.ts.map +1 -1
  82. package/dist/features/Operation/components/Header.vue.js +15 -10
  83. package/dist/features/Operation/components/Headers.vue.d.ts +2 -0
  84. package/dist/features/Operation/components/Headers.vue.d.ts.map +1 -1
  85. package/dist/features/Operation/components/Headers.vue.js +1 -1
  86. package/dist/features/Operation/components/Headers.vue2.js +23 -21
  87. package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
  88. package/dist/features/Operation/components/ParameterListItem.vue.js +2 -2
  89. package/dist/features/Operation/components/ParameterListItem.vue2.js +55 -48
  90. package/dist/features/Operation/components/RequestBody.vue.d.ts.map +1 -1
  91. package/dist/features/Operation/components/RequestBody.vue.js +1 -1
  92. package/dist/features/Operation/components/RequestBody.vue2.js +74 -49
  93. package/dist/features/Operation/helpers/get-first-server.d.ts +9 -0
  94. package/dist/features/Operation/helpers/get-first-server.d.ts.map +1 -0
  95. package/dist/features/Operation/helpers/get-first-server.js +20 -0
  96. package/dist/features/Search/components/SearchButton.vue.d.ts +2 -0
  97. package/dist/features/Search/components/SearchButton.vue.d.ts.map +1 -1
  98. package/dist/features/Search/components/SearchButton.vue.js +19 -17
  99. package/dist/features/Search/components/SearchModal.vue.d.ts +2 -1
  100. package/dist/features/Search/components/SearchModal.vue.d.ts.map +1 -1
  101. package/dist/features/Search/components/SearchModal.vue.js +2 -2
  102. package/dist/features/Search/components/SearchModal.vue2.js +74 -75
  103. package/dist/features/Search/helpers/create-search-index.d.ts +2 -2
  104. package/dist/features/Search/helpers/create-search-index.d.ts.map +1 -1
  105. package/dist/features/Search/helpers/create-search-index.js +68 -66
  106. package/dist/features/Search/hooks/useSearchIndex.d.ts +3 -2
  107. package/dist/features/Search/hooks/useSearchIndex.d.ts.map +1 -1
  108. package/dist/features/Search/hooks/useSearchIndex.js +13 -13
  109. package/dist/features/Search/types.d.ts +1 -1
  110. package/dist/features/Search/types.d.ts.map +1 -1
  111. package/dist/features/api-client-modal/useApiClient.d.ts +40 -40
  112. package/dist/features/api-client-modal/useApiClient.d.ts.map +1 -1
  113. package/dist/helpers/convert-security-scheme.d.ts +1 -1
  114. package/dist/helpers/test-utils.d.ts +367 -5
  115. package/dist/helpers/test-utils.d.ts.map +1 -1
  116. package/dist/hooks/useNavState.d.ts +1 -15
  117. package/dist/hooks/useNavState.d.ts.map +1 -1
  118. package/dist/hooks/useNavState.js +29 -53
  119. package/dist/index.d.ts +5 -6
  120. package/dist/index.d.ts.map +1 -1
  121. package/dist/index.js +16 -20
  122. package/dist/style.css +1 -1
  123. package/dist/v2/blocks/scalar-request-example-block/helpers/get-secrets.d.ts.map +1 -1
  124. package/dist/v2/blocks/scalar-request-example-block/helpers/get-secrets.js +5 -6
  125. package/dist/{features/sidebar/components/Sidebar.vue.d.ts → v2/blocks/scalar-sidebar-block/components/SidebarBlock.vue.d.ts} +1 -1
  126. package/dist/v2/blocks/scalar-sidebar-block/components/SidebarBlock.vue.d.ts.map +1 -0
  127. package/dist/v2/blocks/scalar-sidebar-block/components/SidebarBlock.vue.js +7 -0
  128. package/dist/{features/sidebar/components/Sidebar.vue2.js → v2/blocks/scalar-sidebar-block/components/SidebarBlock.vue2.js} +15 -15
  129. package/dist/{features/sidebar → v2/blocks/scalar-sidebar-block}/components/SidebarElement.vue.d.ts +1 -1
  130. package/dist/v2/blocks/scalar-sidebar-block/components/SidebarElement.vue.d.ts.map +1 -0
  131. package/dist/v2/blocks/scalar-sidebar-block/components/SidebarElement.vue.js +7 -0
  132. package/dist/{features/sidebar → v2/blocks/scalar-sidebar-block}/components/SidebarElement.vue2.js +41 -43
  133. package/dist/v2/blocks/scalar-sidebar-block/components/SidebarGroup.vue.d.ts.map +1 -0
  134. package/dist/v2/blocks/scalar-sidebar-block/components/SidebarGroup.vue.js +7 -0
  135. package/dist/v2/blocks/scalar-sidebar-block/components/SidebarHttpBadge.vue.d.ts.map +1 -0
  136. package/dist/v2/blocks/scalar-sidebar-block/components/SidebarHttpBadge.vue.js +7 -0
  137. package/dist/{features/sidebar → v2/blocks/scalar-sidebar-block}/components/SidebarHttpBadge.vue2.js +1 -1
  138. package/dist/v2/blocks/scalar-sidebar-block/helpers/create-sidebar.d.ts +385 -0
  139. package/dist/v2/blocks/scalar-sidebar-block/helpers/create-sidebar.d.ts.map +1 -0
  140. package/dist/v2/blocks/scalar-sidebar-block/helpers/create-sidebar.js +35 -0
  141. package/dist/v2/blocks/scalar-sidebar-block/helpers/generate-reverse-index.d.ts +189 -0
  142. package/dist/v2/blocks/scalar-sidebar-block/helpers/generate-reverse-index.d.ts.map +1 -0
  143. package/dist/v2/blocks/scalar-sidebar-block/helpers/generate-reverse-index.js +9 -0
  144. package/dist/{features/sidebar → v2/blocks/scalar-sidebar-block}/hooks/useSidebar.d.ts +4 -8
  145. package/dist/v2/blocks/scalar-sidebar-block/hooks/useSidebar.d.ts.map +1 -0
  146. package/dist/v2/blocks/scalar-sidebar-block/hooks/useSidebar.js +18 -0
  147. package/dist/v2/blocks/scalar-sidebar-block/index.d.ts +4 -0
  148. package/dist/v2/blocks/scalar-sidebar-block/index.d.ts.map +1 -0
  149. package/dist/v2/helpers/map-configuration.d.ts.map +1 -1
  150. package/package.json +11 -11
  151. package/dist/features/sidebar/components/Sidebar.vue.d.ts.map +0 -1
  152. package/dist/features/sidebar/components/Sidebar.vue.js +0 -7
  153. package/dist/features/sidebar/components/SidebarElement.vue.d.ts.map +0 -1
  154. package/dist/features/sidebar/components/SidebarElement.vue.js +0 -7
  155. package/dist/features/sidebar/components/SidebarGroup.vue.d.ts.map +0 -1
  156. package/dist/features/sidebar/components/SidebarGroup.vue.js +0 -7
  157. package/dist/features/sidebar/components/SidebarHttpBadge.vue.d.ts.map +0 -1
  158. package/dist/features/sidebar/components/SidebarHttpBadge.vue.js +0 -7
  159. package/dist/features/sidebar/helpers/create-sidebar.d.ts +0 -28
  160. package/dist/features/sidebar/helpers/create-sidebar.d.ts.map +0 -1
  161. package/dist/features/sidebar/helpers/create-sidebar.js +0 -32
  162. package/dist/features/sidebar/hooks/useSidebar.d.ts.map +0 -1
  163. package/dist/features/sidebar/hooks/useSidebar.js +0 -18
  164. package/dist/features/sidebar/index.d.ts +0 -4
  165. package/dist/features/sidebar/index.d.ts.map +0 -1
  166. package/dist/features/traverse-schema/helpers/get-tag.d.ts +0 -6
  167. package/dist/features/traverse-schema/helpers/get-tag.d.ts.map +0 -1
  168. package/dist/features/traverse-schema/helpers/get-tag.js +0 -7
  169. package/dist/features/traverse-schema/helpers/traverse-description.d.ts +0 -11
  170. package/dist/features/traverse-schema/helpers/traverse-description.d.ts.map +0 -1
  171. package/dist/features/traverse-schema/helpers/traverse-description.js +0 -32
  172. package/dist/features/traverse-schema/helpers/traverse-document.d.ts +0 -16
  173. package/dist/features/traverse-schema/helpers/traverse-document.d.ts.map +0 -1
  174. package/dist/features/traverse-schema/helpers/traverse-document.js +0 -33
  175. package/dist/features/traverse-schema/helpers/traverse-paths.d.ts +0 -18
  176. package/dist/features/traverse-schema/helpers/traverse-paths.d.ts.map +0 -1
  177. package/dist/features/traverse-schema/helpers/traverse-paths.js +0 -30
  178. package/dist/features/traverse-schema/helpers/traverse-schemas.d.ts +0 -8
  179. package/dist/features/traverse-schema/helpers/traverse-schemas.d.ts.map +0 -1
  180. package/dist/features/traverse-schema/helpers/traverse-schemas.js +0 -21
  181. package/dist/features/traverse-schema/helpers/traverse-tags.d.ts +0 -11
  182. package/dist/features/traverse-schema/helpers/traverse-tags.d.ts.map +0 -1
  183. package/dist/features/traverse-schema/helpers/traverse-tags.js +0 -43
  184. package/dist/features/traverse-schema/helpers/traverse-webhooks.d.ts +0 -10
  185. package/dist/features/traverse-schema/helpers/traverse-webhooks.d.ts.map +0 -1
  186. package/dist/features/traverse-schema/helpers/traverse-webhooks.js +0 -24
  187. package/dist/features/traverse-schema/index.d.ts +0 -5
  188. package/dist/features/traverse-schema/index.d.ts.map +0 -1
  189. package/dist/features/traverse-schema/types.d.ts +0 -55
  190. package/dist/features/traverse-schema/types.d.ts.map +0 -1
  191. package/dist/libs/markdown.js +0 -18
  192. /package/dist/{features/sidebar → v2/blocks/scalar-sidebar-block}/components/SidebarGroup.vue.d.ts +0 -0
  193. /package/dist/{features/sidebar → v2/blocks/scalar-sidebar-block}/components/SidebarGroup.vue2.js +0 -0
  194. /package/dist/{features/sidebar → v2/blocks/scalar-sidebar-block}/components/SidebarHttpBadge.vue.d.ts +0 -0
@@ -2,7 +2,7 @@ import { defineComponent as h, ref as f, useId as y, computed as C, createBlock
2
2
  import B from "../../ShowMoreButton.vue.js";
3
3
  import { useNavState as v } from "../../../hooks/useNavState.js";
4
4
  import I from "./TagSection.vue.js";
5
- import { useSidebar as O } from "../../../features/sidebar/hooks/useSidebar.js";
5
+ import { useSidebar as O } from "../../../v2/blocks/scalar-sidebar-block/hooks/useSidebar.js";
6
6
  import $ from "../../Section/SectionContainer.vue.js";
7
7
  import w from "../../Lazy/Lazy.vue2.js";
8
8
  const E = /* @__PURE__ */ h({
@@ -13,7 +13,7 @@ const E = /* @__PURE__ */ h({
13
13
  },
14
14
  setup(o) {
15
15
  const u = f(), s = f(), d = y(), { collapsedSidebarItems: c } = O(), { hash: n } = v(), g = C(
16
- () => o.moreThanOneTag || o.tag?.title !== "default" || o.tag?.tag.description !== ""
16
+ () => o.moreThanOneTag || o.tag?.title !== "default" || o.tag?.description !== ""
17
17
  );
18
18
  async function p() {
19
19
  await S(), s.value?.querySelector("button")?.focus();
@@ -1,4 +1,4 @@
1
- import type { TraversedTag } from '../../../features/traverse-schema';
1
+ import type { TraversedTag } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
2
2
  type __VLS_Props = {
3
3
  tag: TraversedTag;
4
4
  layout: 'classic' | 'modern';
@@ -1 +1 @@
1
- {"version":3,"file":"Tag.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tags/Tag.vue"],"names":[],"mappings":"AA2BA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AAK9D,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,YAAY,CAAA;IACjB,MAAM,EAAE,SAAS,GAAG,QAAQ,CAAA;IAC5B,cAAc,EAAE,OAAO,CAAA;CACxB,CAAC;AA0CF,QAAA,IAAI,OAAO,IAAU,EAAE,QAAQ,IAAY,CAAE;AAC7C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC5C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAsBhD,QAAA,MAAM,eAAe,kSAMnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"Tag.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tags/Tag.vue"],"names":[],"mappings":"AA2BA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAKhG,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,YAAY,CAAA;IACjB,MAAM,EAAE,SAAS,GAAG,QAAQ,CAAA;IAC5B,cAAc,EAAE,OAAO,CAAA;CACxB,CAAC;AA0CF,QAAA,IAAI,OAAO,IAAU,EAAE,QAAQ,IAAY,CAAE;AAC7C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC5C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAsBhD,QAAA,MAAM,eAAe,kSAMnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { TraversedTag } from '../../../features/traverse-schema';
1
+ import type { TraversedTag } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
2
2
  type __VLS_Props = {
3
3
  tag: TraversedTag;
4
4
  headerId?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"TagSection.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tags/TagSection.vue"],"names":[],"mappings":"AA0EA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AAG9D,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,YAAY,CAAA;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;AAgLF,wBAMG"}
1
+ {"version":3,"file":"TagSection.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tags/TagSection.vue"],"names":[],"mappings":"AA6DA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAgBhG,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,YAAY,CAAA;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;AAgLF,wBAMG"}
@@ -11,7 +11,7 @@ import y from "../../Section/SectionColumns.vue.js";
11
11
  import p from "../../Section/SectionColumn.vue.js";
12
12
  import B from "../../OperationsList/OperationsList.vue.js";
13
13
  import I from "../../../features/specification-extension/SpecificationExtension.vue2.js";
14
- const z = /* @__PURE__ */ f({
14
+ const q = /* @__PURE__ */ f({
15
15
  __name: "TagSection",
16
16
  props: {
17
17
  tag: {},
@@ -67,7 +67,7 @@ const z = /* @__PURE__ */ f({
67
67
  default: a(() => [
68
68
  t(e(c), {
69
69
  clamp: o.isCollapsed ? 7 : void 0,
70
- value: o.tag.tag?.description ?? "",
70
+ value: o.tag?.description ?? "",
71
71
  withImages: ""
72
72
  }, null, 8, ["clamp", "value"])
73
73
  ]),
@@ -86,7 +86,7 @@ const z = /* @__PURE__ */ f({
86
86
  _: 1
87
87
  }, 8, ["loading"]),
88
88
  t(e(I), {
89
- value: o.tag.tag
89
+ value: o.tag.xKeys
90
90
  }, null, 8, ["value"])
91
91
  ]),
92
92
  _: 1
@@ -94,5 +94,5 @@ const z = /* @__PURE__ */ f({
94
94
  }
95
95
  });
96
96
  export {
97
- z as default
97
+ q as default
98
98
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./MobileHeader.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../_virtual/_plugin-vue_export-helper.js";
4
- const f = /* @__PURE__ */ r(o, [["__scopeId", "data-v-ba06ff2c"]]);
4
+ const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-12742423"]]);
5
5
  export {
6
- f as default
6
+ m as default
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as t, createElementBlock as a, openBlock as c, createVNode as i, createElementVNode as s, unref as e, toDisplayString as l, renderSlot as d } from "vue";
2
2
  import { ScalarIconButton as m } from "@scalar/components";
3
3
  import { ScalarIconX as p, ScalarIconList as u } from "@scalar/icons";
4
- import { useSidebar as b } from "../features/sidebar/hooks/useSidebar.js";
4
+ import { useSidebar as b } from "../v2/blocks/scalar-sidebar-block/hooks/useSidebar.js";
5
5
  const _ = { class: "references-mobile-header t-doc__header" }, f = { class: "references-mobile-breadcrumbs" }, S = { class: "references-mobile-header-actions" }, M = /* @__PURE__ */ t({
6
6
  __name: "MobileHeader",
7
7
  props: {
@@ -1,4 +1,4 @@
1
- import type { TraversedTag } from '../../features/traverse-schema';
1
+ import type { TraversedTag } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
2
2
  type __VLS_Props = {
3
3
  tag: TraversedTag;
4
4
  };
@@ -1 +1 @@
1
- {"version":3,"file":"OperationsList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/OperationsList/OperationsList.vue"],"names":[],"mappings":"AA0EA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AAQ9D,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,YAAY,CAAA;CAClB,CAAC;;AAmHF,wBAMG"}
1
+ {"version":3,"file":"OperationsList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/OperationsList/OperationsList.vue"],"names":[],"mappings":"AAmEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAOhG,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,YAAY,CAAA;CAClB,CAAC;;AAmHF,wBAMG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./OperationsList.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.js";
4
- const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-d474b1bb"]]);
4
+ const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-50e4708f"]]);
5
5
  export {
6
6
  a as default
7
7
  };
@@ -1,19 +1,17 @@
1
- import { defineComponent as m, computed as p, createBlock as l, createCommentVNode as u, openBlock as a, unref as r, withCtx as t, createVNode as o, createTextVNode as i, toDisplayString as s, createElementVNode as f, createElementBlock as h, Fragment as g, renderList as k } from "vue";
1
+ import { defineComponent as p, computed as m, createBlock as l, createCommentVNode as u, openBlock as a, unref as r, withCtx as t, createVNode as o, createTextVNode as i, toDisplayString as s, createElementVNode as f, createElementBlock as h, Fragment as g, renderList as k } from "vue";
2
2
  import { ScalarCard as _, ScalarCardHeader as C, ScalarCardSection as S } from "@scalar/components";
3
3
  import b from "../ScreenReader.vue.js";
4
- import N from "./OperationsListItem.vue.js";
5
- const V = ["aria-label"], E = /* @__PURE__ */ m({
4
+ import y from "./OperationsListItem.vue.js";
5
+ const N = ["aria-label"], E = /* @__PURE__ */ p({
6
6
  __name: "OperationsList",
7
7
  props: {
8
8
  tag: {}
9
9
  },
10
10
  setup(d) {
11
- const c = p(
12
- () => d.tag.children?.filter(
13
- (e) => "operation" in e || "webhook" in e
14
- )
15
- );
16
- return (e, y) => e.tag.children?.length > 0 ? (a(), l(r(_), {
11
+ const c = m(() => d.tag.children?.filter(
12
+ (e) => e.type === "operation" || e.type === "webhook"
13
+ ) ?? []);
14
+ return (e, V) => e.tag.children && e.tag.children?.length > 0 ? (a(), l(r(_), {
17
15
  key: 0,
18
16
  class: "endpoints-card"
19
17
  }, {
@@ -36,11 +34,11 @@ const V = ["aria-label"], E = /* @__PURE__ */ m({
36
34
  "aria-label": `${e.tag.title} endpoints`,
37
35
  class: "endpoints"
38
36
  }, [
39
- (a(!0), h(g, null, k(c.value, (n) => (a(), l(N, {
37
+ (a(!0), h(g, null, k(c.value, (n) => (a(), l(y, {
40
38
  key: n.id,
41
39
  operation: n
42
40
  }, null, 8, ["operation"]))), 128))
43
- ], 8, V)
41
+ ], 8, N)
44
42
  ]),
45
43
  _: 1
46
44
  })
@@ -1,4 +1,4 @@
1
- import type { TraversedOperation, TraversedWebhook } from '../../features/traverse-schema';
1
+ import type { TraversedOperation, TraversedWebhook } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
2
2
  type __VLS_Props = {
3
3
  operation: TraversedOperation | TraversedWebhook;
4
4
  isCollapsed?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"OperationsListItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/OperationsList/OperationsListItem.vue"],"names":[],"mappings":"AA0IA,OAAO,KAAK,EAEV,kBAAkB,EAClB,gBAAgB,EACjB,MAAM,4BAA4B,CAAA;AAEnC,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,kBAAkB,GAAG,gBAAgB,CAAA;IAChD,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;AAgKF,wBAMG"}
1
+ {"version":3,"file":"OperationsListItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/OperationsList/OperationsListItem.vue"],"names":[],"mappings":"AAwHA,OAAO,KAAK,EAEV,kBAAkB,EAClB,gBAAgB,EACjB,MAAM,8DAA8D,CAAA;AAOrE,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,kBAAkB,GAAG,gBAAgB,CAAA;IAChD,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;AAsJF,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 p = /* @__PURE__ */ o(t, [["__scopeId", "data-v-e2dcc62f"]]);
4
+ const s = /* @__PURE__ */ o(t, [["__scopeId", "data-v-836b3c7f"]]);
5
5
  export {
6
- p as default
6
+ s as default
7
7
  };
@@ -1,63 +1,60 @@
1
- import { defineComponent as u, computed as y, createElementBlock as k, openBlock as r, createBlock as i, createCommentVNode as a, createElementVNode as s, unref as o, withCtx as l, createTextVNode as C, toDisplayString as p, withModifiers as g, createVNode as S, normalizeStyle as V, normalizeClass as b } from "vue";
2
- import { getHttpMethodInfo as v } from "@scalar/helpers/http/http-info";
3
- import { ScalarIconWebhooksLogo as B } from "@scalar/icons";
4
- import { isOperationDeprecated as H } from "@scalar/oas-utils/helpers";
5
- import { useSidebar as N } from "../../features/sidebar/hooks/useSidebar.js";
6
- import O from "../Section/SectionHeaderTag.vue.js";
7
- import T from "../HttpMethod/HttpMethod.vue.js";
8
- const w = ["href"], j = /* @__PURE__ */ u({
1
+ import { defineComponent as h, computed as u, createElementBlock as y, openBlock as r, createBlock as a, createCommentVNode as i, createElementVNode as s, unref as o, withCtx as l, createTextVNode as k, toDisplayString as p, withModifiers as C, createVNode as g, normalizeStyle as S, normalizeClass as V } from "vue";
2
+ import { getHttpMethodInfo as b } from "@scalar/helpers/http/http-info";
3
+ import { ScalarIconWebhooksLogo as v } from "@scalar/icons";
4
+ import { useSidebar as B } from "../../v2/blocks/scalar-sidebar-block/hooks/useSidebar.js";
5
+ import H from "../Section/SectionHeaderTag.vue.js";
6
+ import N from "../HttpMethod/HttpMethod.vue.js";
7
+ const T = ["href"], L = /* @__PURE__ */ h({
9
8
  __name: "OperationsListItem",
10
9
  props: {
11
10
  operation: {},
12
11
  isCollapsed: { type: Boolean }
13
12
  },
14
13
  setup(t) {
15
- const { scrollToOperation: d } = N(), m = async (e) => {
14
+ const { scrollToOperation: d } = B(), m = async (e) => {
16
15
  d(e.id, !0);
17
- }, c = y(() => "path" in t.operation ? t.operation.path : t.operation.title), f = (e) => "operation" in e && H(
18
- e.operation
19
- ), h = (e) => "webhook" in e;
20
- return (e, n) => (r(), k("li", {
16
+ }, c = u(() => "path" in t.operation ? t.operation.path : t.operation.title), f = (e) => e.type === "webhook";
17
+ return (e, n) => (r(), y("li", {
21
18
  key: e.operation.id,
22
19
  class: "contents"
23
20
  }, [
24
- e.isCollapsed ? (r(), i(o(O), {
21
+ e.isCollapsed ? (r(), a(o(H), {
25
22
  key: 0,
26
23
  class: "sr-only",
27
24
  level: 3
28
25
  }, {
29
26
  default: l(() => [
30
- C(p(e.operation.title) + " (Hidden) ", 1)
27
+ k(p(e.operation.title) + " (Hidden) ", 1)
31
28
  ]),
32
29
  _: 1
33
- })) : a("", !0),
30
+ })) : i("", !0),
34
31
  s("a", {
35
32
  class: "endpoint",
36
33
  href: `#${e.operation.id}`,
37
- onClick: n[0] || (n[0] = g((z) => m(e.operation), ["prevent"]))
34
+ onClick: n[0] || (n[0] = C((w) => m(e.operation), ["prevent"]))
38
35
  }, [
39
- S(o(T), {
36
+ g(o(N), {
40
37
  class: "endpoint-method items-center justify-end gap-2",
41
38
  method: e.operation.method
42
39
  }, {
43
40
  default: l(() => [
44
- h(e.operation) ? (r(), i(o(B), {
41
+ f(e.operation) ? (r(), a(o(v), {
45
42
  key: 0,
46
- style: V({
47
- color: o(v)(e.operation.method).colorVar
48
- }),
49
- class: "size-3.5"
50
- }, null, 8, ["style"])) : a("", !0)
43
+ class: "size-3.5",
44
+ style: S({
45
+ color: o(b)(e.operation.method).colorVar
46
+ })
47
+ }, null, 8, ["style"])) : i("", !0)
51
48
  ]),
52
49
  _: 1
53
50
  }, 8, ["method"]),
54
51
  s("span", {
55
- class: b(["endpoint-path", { deprecated: f(e.operation) }])
52
+ class: V(["endpoint-path", { deprecated: e.operation.isDeprecated }])
56
53
  }, p(c.value), 3)
57
- ], 8, w)
54
+ ], 8, T)
58
55
  ]));
59
56
  }
60
57
  });
61
58
  export {
62
- j as default
59
+ L as default
63
60
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Section.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Section/Section.vue"],"names":[],"mappings":"AAyEA,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAC;AAiEF,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAqB/C,QAAA,MAAM,eAAe,kSAMnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"Section.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Section/Section.vue"],"names":[],"mappings":"AAiEA,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAC;AA2DF,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAqB/C,QAAA,MAAM,eAAe,kSAMnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import o from "./Section.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-393971a5"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-dbc12a67"]]);
5
5
  export {
6
- p as default
6
+ m as default
7
7
  };
@@ -1,31 +1,30 @@
1
- import { defineComponent as l, createBlock as d, openBlock as c, withCtx as m, renderSlot as p } from "vue";
2
- import f from "../IntersectionObserver.vue.js";
3
- import { useNavState as u } from "../../hooks/useNavState.js";
4
- import { useSidebar as S } from "../../features/sidebar/hooks/useSidebar.js";
5
- const v = /* @__PURE__ */ l({
1
+ import { defineComponent as s, createBlock as a, openBlock as l, withCtx as c, renderSlot as d } from "vue";
2
+ import p from "../IntersectionObserver.vue.js";
3
+ import { useNavState as f } from "../../hooks/useNavState.js";
4
+ const b = /* @__PURE__ */ s({
6
5
  __name: "Section",
7
6
  props: {
8
7
  id: {},
9
8
  label: {}
10
9
  },
11
10
  setup(o) {
12
- const e = o, { getSectionId: i, isIntersectionEnabled: r, replaceUrlState: n } = u(), { setCollapsedSidebarItem: s } = S();
13
- function a() {
14
- !e.label || !r.value || (n(e.id ?? ""), (e.id?.startsWith("model") || e.id?.startsWith("webhook")) && s(i(e.id), !0));
11
+ const e = o, { isIntersectionEnabled: n, replaceUrlState: r } = f();
12
+ function i() {
13
+ !e.label || !n.value || r(e.id ?? "");
15
14
  }
16
- return (t, _) => (c(), d(f, {
15
+ return (t, u) => (l(), a(p, {
17
16
  is: "section",
18
17
  id: t.id,
19
18
  class: "section",
20
- onIntersecting: a
19
+ onIntersecting: i
21
20
  }, {
22
- default: m(() => [
23
- p(t.$slots, "default", {}, void 0, !0)
21
+ default: c(() => [
22
+ d(t.$slots, "default", {}, void 0, !0)
24
23
  ]),
25
24
  _: 3
26
25
  }, 8, ["id"]));
27
26
  }
28
27
  });
29
28
  export {
30
- v as default
29
+ b as default
31
30
  };
@@ -1 +1 @@
1
- {"version":3,"file":"SectionAccordion.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Section/SectionAccordion.vue"],"names":[],"mappings":"AA0JA,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;AAmKF,QAAA,IAAyB,QAAQ,IAAW,EAAE,QAAQ;;CAAW,EAAE,QAAQ,IAAW,EAAE,QAAQ,IAAY,CAAE;AAC9G,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC3C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC7C;IAAE,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GACjD;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AA4BhD,QAAA,MAAM,eAAe,kSAMnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"SectionAccordion.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Section/SectionAccordion.vue"],"names":[],"mappings":"AAkJA,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;AA6JF,QAAA,IAAyB,QAAQ,IAAW,EAAE,QAAQ;;CAAW,EAAE,QAAQ,IAAW,EAAE,QAAQ,IAAY,CAAE;AAC9G,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC3C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC7C;IAAE,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GACjD;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AA4BhD,QAAA,MAAM,eAAe,kSAMnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import o from "./SectionAccordion.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.js";
4
- const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-d3d6e381"]]);
4
+ const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-224efaa7"]]);
5
5
  export {
6
6
  e as default
7
7
  };
@@ -1,64 +1,63 @@
1
- import { defineComponent as k, ref as $, createBlock as C, openBlock as c, withCtx as s, createVNode as n, unref as o, normalizeClass as d, createElementVNode as l, createElementBlock as u, createCommentVNode as m, renderSlot as i } from "vue";
2
- import { Disclosure as B, DisclosureButton as I, DisclosurePanel as _ } from "@headlessui/vue";
3
- import { ScalarIconCaretRight as y } from "@scalar/icons";
4
- import { useElementHover as E } from "@vueuse/core";
5
- import { useNavState as N } from "../../hooks/useNavState.js";
6
- import g from "../IntersectionObserver.vue.js";
7
- import { useSidebar as w } from "../../features/sidebar/hooks/useSidebar.js";
8
- const D = { class: "section-accordion-button-content" }, V = {
1
+ import { defineComponent as h, ref as $, createBlock as b, openBlock as c, withCtx as e, createVNode as s, unref as t, normalizeClass as l, createElementVNode as d, createElementBlock as u, createCommentVNode as m, renderSlot as n } from "vue";
2
+ import { Disclosure as k, DisclosureButton as S, DisclosurePanel as B } from "@headlessui/vue";
3
+ import { ScalarIconCaretRight as C } from "@scalar/icons";
4
+ import { useElementHover as y } from "@vueuse/core";
5
+ import { useNavState as E } from "../../hooks/useNavState.js";
6
+ import N from "../IntersectionObserver.vue.js";
7
+ const D = { class: "section-accordion-button-content" }, I = {
9
8
  key: 0,
10
9
  class: "section-accordion-button-actions"
11
- }, z = {
10
+ }, V = {
12
11
  key: 0,
13
12
  class: "section-accordion-description"
14
- }, H = { class: "section-accordion-content-card" }, G = /* @__PURE__ */ k({
13
+ }, g = { class: "section-accordion-content-card" }, j = /* @__PURE__ */ h({
15
14
  __name: "SectionAccordion",
16
15
  props: {
17
16
  id: {},
18
17
  transparent: { type: Boolean }
19
18
  },
20
- setup(e) {
21
- const r = $(), f = E(r), { getSectionId: p, isIntersectionEnabled: v, replaceUrlState: h } = N(), { setCollapsedSidebarItem: b } = w(), S = () => {
22
- !e.id || !v.value || (h(e.id), (e.id?.startsWith("model") || e.id?.startsWith("webhook")) && b(p(e.id), !0));
19
+ setup(r) {
20
+ const i = $(), f = y(i), { isIntersectionEnabled: p, replaceUrlState: v } = E(), _ = () => {
21
+ !r.id || !p.value || v(r.id);
23
22
  };
24
- return (t, W) => (c(), C(g, {
25
- id: t.id,
23
+ return (o, w) => (c(), b(N, {
24
+ id: o.id,
26
25
  class: "section-wrapper",
27
- onIntersecting: S
26
+ onIntersecting: _
28
27
  }, {
29
- default: s(() => [
30
- n(o(B), {
28
+ default: e(() => [
29
+ s(t(k), {
31
30
  as: "section",
32
- class: d(["section-accordion", { "section-accordion-transparent": t.transparent }])
31
+ class: l(["section-accordion", { "section-accordion-transparent": o.transparent }])
33
32
  }, {
34
- default: s(({ open: a }) => [
35
- n(o(I), {
33
+ default: e(({ open: a }) => [
34
+ s(t(S), {
36
35
  ref_key: "button",
37
- ref: r,
36
+ ref: i,
38
37
  class: "section-accordion-button"
39
38
  }, {
40
- default: s(() => [
41
- l("div", D, [
42
- i(t.$slots, "title", {}, void 0, !0)
39
+ default: e(() => [
40
+ d("div", D, [
41
+ n(o.$slots, "title", {}, void 0, !0)
43
42
  ]),
44
- t.$slots.actions ? (c(), u("div", V, [
45
- i(t.$slots, "actions", {
46
- active: o(f) || a
43
+ o.$slots.actions ? (c(), u("div", I, [
44
+ n(o.$slots, "actions", {
45
+ active: t(f) || a
47
46
  }, void 0, !0)
48
47
  ])) : m("", !0),
49
- n(o(y), {
50
- class: d(["section-accordion-chevron size-4.5 transition-transform", { "rotate-90": a }])
48
+ s(t(C), {
49
+ class: l(["section-accordion-chevron size-4.5 transition-transform", { "rotate-90": a }])
51
50
  }, null, 8, ["class"])
52
51
  ]),
53
52
  _: 2
54
53
  }, 1536),
55
- n(o(_), { class: "section-accordion-content" }, {
56
- default: s(() => [
57
- t.$slots.description ? (c(), u("div", z, [
58
- i(t.$slots, "description", {}, void 0, !0)
54
+ s(t(B), { class: "section-accordion-content" }, {
55
+ default: e(() => [
56
+ o.$slots.description ? (c(), u("div", V, [
57
+ n(o.$slots, "description", {}, void 0, !0)
59
58
  ])) : m("", !0),
60
- l("div", H, [
61
- i(t.$slots, "default", {}, void 0, !0)
59
+ d("div", g, [
60
+ n(o.$slots, "default", {}, void 0, !0)
62
61
  ])
63
62
  ]),
64
63
  _: 3
@@ -72,5 +71,5 @@ const D = { class: "section-accordion-button-content" }, V = {
72
71
  }
73
72
  });
74
73
  export {
75
- G as default
74
+ j as default
76
75
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./ShowMoreButton.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-b2ca4789"]]);
4
+ const _ = /* @__PURE__ */ t(o, [["__scopeId", "data-v-46471107"]]);
5
5
  export {
6
- p as default
6
+ _ as default
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as c, createElementBlock as i, openBlock as s, createTextVNode as a, createVNode as m, unref as l } from "vue";
2
2
  import { ScalarIconCaretDown as d } from "@scalar/icons";
3
3
  import { useConfig as u } from "../hooks/useConfig.js";
4
- import { useSidebar as f } from "../features/sidebar/hooks/useSidebar.js";
4
+ import { useSidebar as f } from "../v2/blocks/scalar-sidebar-block/hooks/useSidebar.js";
5
5
  const h = /* @__PURE__ */ c({
6
6
  __name: "ShowMoreButton",
7
7
  props: {
@@ -18,8 +18,8 @@ const h = /* @__PURE__ */ c({
18
18
  }, [
19
19
  o[0] || (o[0] = a(" Show More ")),
20
20
  m(l(d), {
21
- weight: "bold",
22
- class: "text-c-2 mt-0.25 size-3"
21
+ class: "text-c-2 mt-0.25 size-3",
22
+ weight: "bold"
23
23
  })
24
24
  ]));
25
25
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Operation.vue.d.ts","sourceRoot":"","sources":["../../../src/features/Operation/Operation.vue"],"names":[],"mappings":"AA4GA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AACnE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AACzE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAA;AAC9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAEpE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8DAA8D,CAAA;AAKnG,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gDAAgD,CAAA;AAKvF,KAAK,WAAW,GAAG;IACf,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,UAAU,CAAA;IAClB,aAAa,EAAE,iBAAiB,EAAE,CAAA;IAClC,MAAM,EAAE,yBAAyB,CAAA;IACjC,QAAQ,EAAE,eAAe,CAAA;IACzB,SAAS,EAAE,OAAO,CAAA;IAClB,EAAE,EAAE,MAAM,CAAA;IACV,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,KAAK,EAAE,cAAc,CAAA;IACrB,iGAAiG;IACjG,UAAU,EAAE,UAAU,CAAA;CACvB,CAAC;;AA0IJ,wBAMG"}
1
+ {"version":3,"file":"Operation.vue.d.ts","sourceRoot":"","sources":["../../../src/features/Operation/Operation.vue"],"names":[],"mappings":"AA8HA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AACnE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AACzE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAA;AAC9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAEpE,OAAO,KAAK,EACV,eAAe,EAEhB,MAAM,8DAA8D,CAAA;AAKrE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gDAAgD,CAAA;AAMvF,KAAK,WAAW,GAAG;IACf,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,UAAU,CAAA;IAClB,aAAa,EAAE,iBAAiB,EAAE,CAAA;IAClC,MAAM,EAAE,yBAAyB,CAAA;IACjC,QAAQ,EAAE,eAAe,CAAA;IACzB,SAAS,EAAE,OAAO,CAAA;IAClB,EAAE,EAAE,MAAM,CAAA;IACV,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,KAAK,EAAE,cAAc,CAAA;IACrB,iGAAiG;IACjG,UAAU,EAAE,UAAU,CAAA;CACvB,CAAC;;AAyJJ,wBAMG"}
@@ -1,12 +1,13 @@
1
- import { defineComponent as l, computed as r, createElementBlock as u, createCommentVNode as h, openBlock as i, Fragment as p, createBlock as m } from "vue";
2
- import { useWorkspace as d } from "@scalar/api-client/store";
1
+ import { defineComponent as u, computed as r, createElementBlock as h, createCommentVNode as p, openBlock as s, Fragment as d, createBlock as m } from "vue";
2
+ import { useWorkspace as v } from "@scalar/api-client/store";
3
3
  import { filterSecurityRequirements as f } from "@scalar/api-client/views/Request/RequestSection";
4
4
  import { getResolvedRef as y } from "@scalar/workspace-store/helpers/get-resolved-ref";
5
- import { combineParams as v } from "./helpers/combine-params.js";
6
- import { convertSecurityScheme as k } from "../../helpers/convert-security-scheme.js";
7
- import S from "./layouts/ClassicLayout.vue.js";
8
- import b from "./layouts/ModernLayout.vue.js";
9
- const w = /* @__PURE__ */ l({
5
+ import { combineParams as k } from "./helpers/combine-params.js";
6
+ import { convertSecurityScheme as S } from "../../helpers/convert-security-scheme.js";
7
+ import { getFirstServer as g } from "./helpers/get-first-server.js";
8
+ import b from "./layouts/ClassicLayout.vue.js";
9
+ import W from "./layouts/ModernLayout.vue.js";
10
+ const I = /* @__PURE__ */ u({
10
11
  __name: "Operation",
11
12
  props: {
12
13
  path: {},
@@ -21,27 +22,36 @@ const w = /* @__PURE__ */ l({
21
22
  collection: {}
22
23
  },
23
24
  setup(o) {
24
- const s = r(() => {
25
+ const i = r(() => {
25
26
  const e = o.isWebhook ? "webhooks" : "paths";
26
27
  return o.document[e]?.[o.path];
27
28
  }), t = r(() => {
28
- const e = y(s.value?.[o.method]);
29
+ const e = y(i.value?.[o.method]);
29
30
  if (!e)
30
31
  return null;
31
- const c = v(
32
- s.value?.parameters,
32
+ const a = k(
33
+ i.value?.parameters,
33
34
  e.parameters
34
35
  );
35
- return { ...e, parameters: c };
36
- }), { securitySchemes: a } = d(), n = r(
36
+ return { ...e, parameters: a };
37
+ }), { securitySchemes: l } = v(), n = r(
37
38
  () => f(
38
39
  t.value?.security || o.document.security || [],
39
40
  o.collection.selectedSecuritySchemeUids,
40
- a
41
- ).map(k)
41
+ l
42
+ ).map(S)
43
+ ), c = r(
44
+ () => g(
45
+ // 1) Operation
46
+ t.value?.servers,
47
+ // 2) Path Item
48
+ i.value?.servers,
49
+ // 3) Document
50
+ o.server
51
+ )
42
52
  );
43
- return (e, c) => t.value ? (i(), u(p, { key: 0 }, [
44
- e.config.layout === "classic" ? (i(), m(S, {
53
+ return (e, a) => t.value ? (s(), h(d, { key: 0 }, [
54
+ e.config.layout === "classic" ? (s(), m(b, {
45
55
  key: 0,
46
56
  id: e.id,
47
57
  clientOptions: e.clientOptions,
@@ -51,9 +61,9 @@ const w = /* @__PURE__ */ l({
51
61
  operation: t.value,
52
62
  path: e.path,
53
63
  securitySchemes: n.value,
54
- server: e.server,
64
+ server: c.value,
55
65
  store: e.store
56
- }, null, 8, ["id", "clientOptions", "config", "isWebhook", "method", "operation", "path", "securitySchemes", "server", "store"])) : (i(), m(b, {
66
+ }, null, 8, ["id", "clientOptions", "config", "isWebhook", "method", "operation", "path", "securitySchemes", "server", "store"])) : (s(), m(W, {
57
67
  key: 1,
58
68
  id: e.id,
59
69
  clientOptions: e.clientOptions,
@@ -63,12 +73,12 @@ const w = /* @__PURE__ */ l({
63
73
  operation: t.value,
64
74
  path: e.path,
65
75
  securitySchemes: n.value,
66
- server: e.server,
76
+ server: c.value,
67
77
  store: e.store
68
78
  }, null, 8, ["id", "clientOptions", "config", "isWebhook", "method", "operation", "path", "securitySchemes", "server", "store"]))
69
- ], 64)) : h("", !0);
79
+ ], 64)) : p("", !0);
70
80
  }
71
81
  });
72
82
  export {
73
- w as default
83
+ I as default
74
84
  };
@@ -1,8 +1,10 @@
1
+ import type { ApiReferenceConfiguration } from '@scalar/types/api-reference';
1
2
  import type { HeaderObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
2
3
  type __VLS_Props = {
3
4
  header: HeaderObject;
4
5
  name: string;
5
6
  breadcrumb?: string[];
7
+ config: ApiReferenceConfiguration;
6
8
  };
7
9
  declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
8
10
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"Header.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/Header.vue"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAIhG,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,YAAY,CAAA;IACpB,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;CACtB,CAAC;;AAkDF,wBAMG"}
1
+ {"version":3,"file":"Header.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/Header.vue"],"names":[],"mappings":"AA4BA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;AAE5E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAIhG,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,YAAY,CAAA;IACpB,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IACrB,MAAM,EAAE,yBAAyB,CAAA;CAClC,CAAC;;AA0DF,wBAMG"}