@scalar/api-reference 1.36.2 → 1.37.0

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 (226) hide show
  1. package/CHANGELOG.md +49 -0
  2. package/dist/browser/standalone.js +26143 -25935
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/ApiReferenceContent.vue.d.ts +34 -0
  5. package/dist/components/ApiReferenceContent.vue.d.ts.map +1 -0
  6. package/dist/components/ApiReferenceContent.vue.js +8 -0
  7. package/dist/components/ApiReferenceContent.vue2.js +148 -0
  8. package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
  9. package/dist/components/ApiReferenceLayout.vue.js +2 -2
  10. package/dist/components/ApiReferenceLayout.vue2.js +239 -219
  11. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts +2 -2
  12. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts.map +1 -1
  13. package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts +1 -1
  14. package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts.map +1 -1
  15. package/dist/components/Content/ClientLibraries/featured-clients.d.ts +1 -1
  16. package/dist/components/Content/ClientLibraries/featured-clients.d.ts.map +1 -1
  17. package/dist/components/Content/Content.vue.d.ts +21 -3
  18. package/dist/components/Content/Content.vue.d.ts.map +1 -1
  19. package/dist/components/Content/Content.vue.js +132 -95
  20. package/dist/components/Content/Models/ClassicLayout.vue.d.ts +4 -2
  21. package/dist/components/Content/Models/ClassicLayout.vue.d.ts.map +1 -1
  22. package/dist/components/Content/Models/ClassicLayout.vue.js +2 -2
  23. package/dist/components/Content/Models/ClassicLayout.vue2.js +28 -28
  24. package/dist/components/Content/Models/Models.vue.d.ts +10 -2
  25. package/dist/components/Content/Models/Models.vue.d.ts.map +1 -1
  26. package/dist/components/Content/Models/Models.vue.js +25 -27
  27. package/dist/components/Content/Models/ModernLayout.vue.d.ts +6 -2
  28. package/dist/components/Content/Models/ModernLayout.vue.d.ts.map +1 -1
  29. package/dist/components/Content/Models/ModernLayout.vue.js +1 -1
  30. package/dist/components/Content/Models/ModernLayout.vue2.js +30 -29
  31. package/dist/components/Content/Operations/TraversedEntry.vue.d.ts +20 -6
  32. package/dist/components/Content/Operations/TraversedEntry.vue.d.ts.map +1 -1
  33. package/dist/components/Content/Operations/TraversedEntry.vue.js +58 -46
  34. package/dist/components/Content/Operations/get-current-index.d.ts +1 -1
  35. package/dist/components/Content/Operations/get-current-index.d.ts.map +1 -1
  36. package/dist/components/Content/Schema/helpers/get-ref-name.d.ts.map +1 -1
  37. package/dist/components/Content/Schema/helpers/get-ref-name.js +9 -7
  38. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.js +1 -1
  39. package/dist/components/Content/Schema/helpers/schema-name.d.ts.map +1 -1
  40. package/dist/components/Content/Schema/helpers/schema-name.js +15 -14
  41. package/dist/components/Content/Tags/ClassicLayout.vue.d.ts +1 -1
  42. package/dist/components/Content/Tags/ClassicLayout.vue.d.ts.map +1 -1
  43. package/dist/components/Content/Tags/ClassicLayout.vue.js +2 -2
  44. package/dist/components/Content/Tags/ModernLayout.vue.d.ts +3 -1
  45. package/dist/components/Content/Tags/ModernLayout.vue.d.ts.map +1 -1
  46. package/dist/components/Content/Tags/ModernLayout.vue.js +1 -1
  47. package/dist/components/Content/Tags/ModernLayout.vue2.js +34 -30
  48. package/dist/components/Content/Tags/Tag.vue.d.ts +3 -1
  49. package/dist/components/Content/Tags/Tag.vue.d.ts.map +1 -1
  50. package/dist/components/Content/Tags/Tag.vue.js +14 -12
  51. package/dist/components/Content/Tags/TagSection.vue.d.ts +2 -1
  52. package/dist/components/Content/Tags/TagSection.vue.d.ts.map +1 -1
  53. package/dist/components/Content/Tags/TagSection.vue.js +49 -52
  54. package/dist/components/OperationsList/OperationsList.vue.d.ts +1 -1
  55. package/dist/components/OperationsList/OperationsList.vue.d.ts.map +1 -1
  56. package/dist/components/OperationsList/OperationsList.vue.js +2 -2
  57. package/dist/components/OperationsList/OperationsListItem.vue.d.ts +1 -1
  58. package/dist/components/OperationsList/OperationsListItem.vue.d.ts.map +1 -1
  59. package/dist/components/OperationsList/OperationsListItem.vue.js +2 -2
  60. package/dist/components/ShowMoreButton.vue.d.ts +1 -0
  61. package/dist/components/ShowMoreButton.vue.d.ts.map +1 -1
  62. package/dist/components/ShowMoreButton.vue.js +2 -2
  63. package/dist/components/ShowMoreButton.vue2.js +12 -12
  64. package/dist/features/Operation/Operation.vue.d.ts +21 -9
  65. package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
  66. package/dist/features/Operation/Operation.vue.js +42 -53
  67. package/dist/features/Operation/components/Header.vue.d.ts +2 -2
  68. package/dist/features/Operation/components/Header.vue.d.ts.map +1 -1
  69. package/dist/features/Operation/components/Header.vue.js +9 -8
  70. package/dist/features/Operation/components/Headers.vue.d.ts +2 -2
  71. package/dist/features/Operation/components/Headers.vue.d.ts.map +1 -1
  72. package/dist/features/Operation/components/Headers.vue.js +2 -2
  73. package/dist/features/Operation/components/Headers.vue2.js +31 -29
  74. package/dist/features/Operation/components/OperationParameters.vue.d.ts +4 -0
  75. package/dist/features/Operation/components/OperationParameters.vue.d.ts.map +1 -1
  76. package/dist/features/Operation/components/OperationParameters.vue.js +37 -31
  77. package/dist/features/Operation/components/OperationResponses.vue.d.ts +5 -1
  78. package/dist/features/Operation/components/OperationResponses.vue.d.ts.map +1 -1
  79. package/dist/features/Operation/components/OperationResponses.vue.js +16 -17
  80. package/dist/features/Operation/components/ParameterList.vue.d.ts +6 -2
  81. package/dist/features/Operation/components/ParameterList.vue.d.ts.map +1 -1
  82. package/dist/features/Operation/components/ParameterList.vue.js +17 -19
  83. package/dist/features/Operation/components/ParameterListItem.vue.d.ts +6 -2
  84. package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
  85. package/dist/features/Operation/components/ParameterListItem.vue.js +3 -3
  86. package/dist/features/Operation/components/ParameterListItem.vue2.js +64 -65
  87. package/dist/features/Operation/components/RequestBody.vue.d.ts +4 -0
  88. package/dist/features/Operation/components/RequestBody.vue.d.ts.map +1 -1
  89. package/dist/features/Operation/components/RequestBody.vue.js +2 -2
  90. package/dist/features/Operation/components/RequestBody.vue2.js +65 -65
  91. package/dist/features/Operation/components/callbacks/Callback.vue.d.ts +4 -0
  92. package/dist/features/Operation/components/callbacks/Callback.vue.d.ts.map +1 -1
  93. package/dist/features/Operation/components/callbacks/Callback.vue.js +3 -3
  94. package/dist/features/Operation/components/callbacks/Callback.vue2.js +29 -22
  95. package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts +6 -0
  96. package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts.map +1 -1
  97. package/dist/features/Operation/components/callbacks/Callbacks.vue.js +18 -16
  98. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +11 -5
  99. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
  100. package/dist/features/Operation/layouts/ClassicLayout.vue.js +2 -2
  101. package/dist/features/Operation/layouts/ClassicLayout.vue2.js +99 -90
  102. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +12 -5
  103. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
  104. package/dist/features/Operation/layouts/ModernLayout.vue.js +2 -2
  105. package/dist/features/Operation/layouts/ModernLayout.vue2.js +99 -87
  106. package/dist/features/Search/helpers/create-search-index.d.ts +2 -1
  107. package/dist/features/Search/helpers/create-search-index.d.ts.map +1 -1
  108. package/dist/features/Search/types.d.ts +1 -1
  109. package/dist/features/Search/types.d.ts.map +1 -1
  110. package/dist/features/api-client-modal/ApiClientModal.vue.d.ts.map +1 -1
  111. package/dist/features/api-client-modal/ApiClientModal.vue.js +23 -26
  112. package/dist/features/api-client-modal/useApiClient.d.ts +3032 -2888
  113. package/dist/features/api-client-modal/useApiClient.d.ts.map +1 -1
  114. package/dist/features/document-source/hooks/useDocumentFetcher.d.ts.map +1 -1
  115. package/dist/features/document-source/hooks/useDocumentFetcher.js +13 -11
  116. package/dist/features/document-source/hooks/useDocumentSource.d.ts +1 -1
  117. package/dist/features/document-source/hooks/useDocumentSource.d.ts.map +1 -1
  118. package/dist/features/example-responses/ExampleResponse.vue.d.ts.map +1 -1
  119. package/dist/features/example-responses/ExampleResponse.vue.js +3 -3
  120. package/dist/features/example-responses/ExampleResponse.vue2.js +26 -18
  121. package/dist/features/example-responses/ExampleResponses.vue.d.ts.map +1 -1
  122. package/dist/features/example-responses/ExampleResponses.vue.js +2 -2
  123. package/dist/features/example-responses/ExampleResponses.vue2.js +53 -53
  124. package/dist/features/multiple-documents/useMultipleDocuments.d.ts +8 -5
  125. package/dist/features/multiple-documents/useMultipleDocuments.d.ts.map +1 -1
  126. package/dist/features/multiple-documents/useMultipleDocuments.js +46 -43
  127. package/dist/features/test-request-button/TestRequestButton.vue.d.ts.map +1 -1
  128. package/dist/features/test-request-button/TestRequestButton.vue.js +2 -2
  129. package/dist/features/test-request-button/TestRequestButton.vue2.js +15 -21
  130. package/dist/features/toolbar/ApiReferenceToolbar.vue.js +18 -18
  131. package/dist/features/toolbar/ApiReferenceToolbarConfig.vue.js +1 -1
  132. package/dist/features/toolbar/ApiReferenceToolbarConfigTheme.vue.d.ts +2 -2
  133. package/dist/features/toolbar/ApiReferenceToolbarPopover.vue.js +1 -1
  134. package/dist/features/toolbar/ApiReferenceToolbarSdks.vue.js +1 -1
  135. package/dist/features/toolbar/ApiReferenceToolbarShare.vue.js +8 -8
  136. package/dist/features/toolbar/ApiReferenceToolbarShareRegister.vue.d.ts.map +1 -1
  137. package/dist/features/toolbar/ApiReferenceToolbarShareRegister.vue.js +34 -28
  138. package/dist/features/toolbar/ApiReferenceToolbarTitle.vue.js +27 -27
  139. package/dist/helpers/test-utils.d.ts +3 -365
  140. package/dist/helpers/test-utils.d.ts.map +1 -1
  141. package/dist/hooks/useNavState.d.ts +4 -2
  142. package/dist/hooks/useNavState.d.ts.map +1 -1
  143. package/dist/hooks/useNavState.js +31 -27
  144. package/dist/index.d.ts +1 -0
  145. package/dist/index.d.ts.map +1 -1
  146. package/dist/index.js +21 -19
  147. package/dist/style.css +1 -1
  148. package/dist/types.d.ts.map +1 -1
  149. package/dist/v2/ApiReferenceWorkspace.vue.d.ts.map +1 -1
  150. package/dist/v2/ApiReferenceWorkspace.vue.js +46 -40
  151. package/dist/v2/blocks/scalar-client-selector-block/components/ClientDropdown.vue.d.ts +1 -1
  152. package/dist/v2/blocks/scalar-client-selector-block/components/ClientDropdown.vue.d.ts.map +1 -1
  153. package/dist/v2/blocks/scalar-client-selector-block/components/ClientDropdown.vue.js +2 -2
  154. package/dist/v2/blocks/scalar-client-selector-block/components/ClientDropdown.vue2.js +11 -11
  155. package/dist/v2/blocks/scalar-client-selector-block/components/ClientSelector.vue.d.ts +2 -2
  156. package/dist/v2/blocks/scalar-client-selector-block/components/ClientSelector.vue.d.ts.map +1 -1
  157. package/dist/v2/blocks/scalar-client-selector-block/components/ClientSelector.vue.js +2 -2
  158. package/dist/v2/blocks/scalar-client-selector-block/components/ClientSelector.vue2.js +10 -10
  159. package/dist/v2/blocks/scalar-client-selector-block/helpers/featured-clients.d.ts +1 -1
  160. package/dist/v2/blocks/scalar-client-selector-block/helpers/featured-clients.d.ts.map +1 -1
  161. package/dist/v2/blocks/scalar-info-block/components/DownloadLink.vue.d.ts +3 -0
  162. package/dist/v2/blocks/scalar-info-block/components/DownloadLink.vue.d.ts.map +1 -1
  163. package/dist/v2/blocks/scalar-info-block/components/DownloadLink.vue.js +2 -2
  164. package/dist/v2/blocks/scalar-info-block/components/DownloadLink.vue2.js +32 -31
  165. package/dist/v2/blocks/scalar-info-block/components/InfoBlock.vue.d.ts +15 -8
  166. package/dist/v2/blocks/scalar-info-block/components/InfoBlock.vue.d.ts.map +1 -1
  167. package/dist/v2/blocks/scalar-info-block/components/InfoBlock.vue.js +25 -20
  168. package/dist/v2/blocks/scalar-info-block/components/IntroductionLayout.vue.d.ts +8 -7
  169. package/dist/v2/blocks/scalar-info-block/components/IntroductionLayout.vue.d.ts.map +1 -1
  170. package/dist/v2/blocks/scalar-info-block/components/IntroductionLayout.vue.js +2 -2
  171. package/dist/v2/blocks/scalar-info-block/components/IntroductionLayout.vue2.js +27 -32
  172. package/dist/v2/blocks/scalar-server-selector-block/components/Selector.vue.d.ts +2 -22
  173. package/dist/v2/blocks/scalar-server-selector-block/components/Selector.vue.d.ts.map +1 -1
  174. package/dist/v2/blocks/scalar-sidebar-block/components/SidebarBlock.vue.d.ts +8 -0
  175. package/dist/v2/blocks/scalar-sidebar-block/components/SidebarBlock.vue.d.ts.map +1 -1
  176. package/dist/v2/blocks/scalar-sidebar-block/components/SidebarBlock.vue.js +2 -2
  177. package/dist/v2/blocks/scalar-sidebar-block/components/SidebarBlock.vue2.js +70 -65
  178. package/dist/v2/blocks/scalar-sidebar-block/components/SidebarElement.vue.d.ts +9 -1
  179. package/dist/v2/blocks/scalar-sidebar-block/components/SidebarElement.vue.d.ts.map +1 -1
  180. package/dist/v2/blocks/scalar-sidebar-block/components/SidebarElement.vue.js +2 -2
  181. package/dist/v2/blocks/scalar-sidebar-block/components/SidebarElement.vue2.js +60 -57
  182. package/dist/v2/blocks/scalar-sidebar-block/helpers/create-sidebar.d.ts +3 -365
  183. package/dist/v2/blocks/scalar-sidebar-block/helpers/create-sidebar.d.ts.map +1 -1
  184. package/dist/v2/blocks/scalar-sidebar-block/helpers/generate-reverse-index.d.ts +3 -183
  185. package/dist/v2/blocks/scalar-sidebar-block/helpers/generate-reverse-index.d.ts.map +1 -1
  186. package/dist/v2/helpers/map-configuration.d.ts +22 -22
  187. package/dist/v2/helpers/map-configuration.d.ts.map +1 -1
  188. package/package.json +19 -16
  189. package/dist/components/Content/Operations/TraversedEntryContainer.vue.d.ts +0 -13
  190. package/dist/components/Content/Operations/TraversedEntryContainer.vue.d.ts.map +0 -1
  191. package/dist/components/Content/Operations/TraversedEntryContainer.vue.js +0 -52
  192. package/dist/components/Content/Operations/TraversedEntryContainer.vue2.js +0 -4
  193. package/dist/components/Content/Operations/index.d.ts +0 -2
  194. package/dist/components/Content/Operations/index.d.ts.map +0 -1
  195. package/dist/hooks/useConfig.d.ts +0 -9
  196. package/dist/hooks/useConfig.d.ts.map +0 -1
  197. package/dist/hooks/useConfig.js +0 -10
  198. package/dist/legacy/stores/index.d.ts +0 -2
  199. package/dist/legacy/stores/index.d.ts.map +0 -1
  200. package/dist/legacy/stores/useExampleStore.d.ts +0 -5
  201. package/dist/legacy/stores/useExampleStore.d.ts.map +0 -1
  202. package/dist/legacy/stores/useExampleStore.js +0 -8
  203. package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.d.ts +0 -14
  204. package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.d.ts.map +0 -1
  205. package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.js +0 -4
  206. package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue2.js +0 -55
  207. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.d.ts +0 -79
  208. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.d.ts.map +0 -1
  209. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.js +0 -7
  210. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue2.js +0 -236
  211. package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.d.ts +0 -41
  212. package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.d.ts.map +0 -1
  213. package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.js +0 -22
  214. package/dist/v2/blocks/scalar-request-example-block/helpers/generate-client-options.d.ts +0 -20
  215. package/dist/v2/blocks/scalar-request-example-block/helpers/generate-client-options.d.ts.map +0 -1
  216. package/dist/v2/blocks/scalar-request-example-block/helpers/generate-client-options.js +0 -33
  217. package/dist/v2/blocks/scalar-request-example-block/helpers/generate-code-snippet.d.ts +0 -17
  218. package/dist/v2/blocks/scalar-request-example-block/helpers/generate-code-snippet.d.ts.map +0 -1
  219. package/dist/v2/blocks/scalar-request-example-block/helpers/generate-code-snippet.js +0 -26
  220. package/dist/v2/blocks/scalar-request-example-block/helpers/get-secrets.d.ts +0 -4
  221. package/dist/v2/blocks/scalar-request-example-block/helpers/get-secrets.d.ts.map +0 -1
  222. package/dist/v2/blocks/scalar-request-example-block/helpers/get-secrets.js +0 -10
  223. package/dist/v2/blocks/scalar-request-example-block/index.d.ts +0 -3
  224. package/dist/v2/blocks/scalar-request-example-block/index.d.ts.map +0 -1
  225. package/dist/v2/blocks/scalar-request-example-block/types.d.ts +0 -29
  226. package/dist/v2/blocks/scalar-request-example-block/types.d.ts.map +0 -1
@@ -1,38 +1,35 @@
1
- import { defineComponent as t, computed as s, createBlock as a, openBlock as r, withCtx as n, createVNode as d, renderSlot as l } from "vue";
2
- import u from "./IntroductionCard.vue.js";
3
- import c from "./IntroductionLayout.vue.js";
4
- const L = /* @__PURE__ */ t({
1
+ import { defineComponent as s, computed as r, createBlock as a, openBlock as d, withCtx as n, createVNode as e, renderSlot as l } from "vue";
2
+ import u from "./DownloadLink.vue.js";
3
+ import m from "./IntroductionCard.vue.js";
4
+ import p from "./IntroductionLayout.vue.js";
5
+ const E = /* @__PURE__ */ s({
5
6
  __name: "InfoBlock",
6
7
  props: {
7
8
  id: {},
8
- layout: {},
9
9
  oasVersion: {},
10
- getOriginalDocument: { type: Function },
11
10
  info: {},
12
11
  externalDocs: {},
13
12
  documentExtensions: {},
14
13
  infoExtensions: {},
15
- isLoading: { type: Boolean },
16
- onLoaded: { type: Function }
14
+ options: {}
17
15
  },
18
- setup(e) {
19
- const i = s(
20
- () => e.layout === "classic" ? "after" : "aside"
16
+ setup(i) {
17
+ const t = r(
18
+ () => i.options.layout === "classic" ? "after" : "aside"
21
19
  );
22
- return (o, m) => (r(), a(c, {
20
+ return (o, c) => (d(), a(p, {
23
21
  id: o.id,
24
22
  documentExtensions: o.documentExtensions,
25
23
  externalDocs: o.externalDocs,
26
- getOriginalDocument: o.getOriginalDocument,
27
24
  info: o.info,
28
25
  infoExtensions: o.infoExtensions,
29
- isLoading: o.isLoading,
26
+ isLoading: o.options.isLoading,
30
27
  oasVersion: o.oasVersion,
31
- onLoaded: o.onLoaded
28
+ onLoaded: o.options.onLoaded
32
29
  }, {
33
- [i.value]: n(() => [
34
- d(u, {
35
- row: o.layout === "classic"
30
+ [t.value]: n(() => [
31
+ e(m, {
32
+ row: o.options.layout === "classic"
36
33
  }, {
37
34
  default: n(() => [
38
35
  l(o.$slots, "selectors")
@@ -40,10 +37,18 @@ const L = /* @__PURE__ */ t({
40
37
  _: 3
41
38
  }, 8, ["row"])
42
39
  ]),
40
+ "download-link": n(() => [
41
+ e(u, {
42
+ documentDownloadType: o.options.documentDownloadType ?? "both",
43
+ getOriginalDocument: o.options.getOriginalDocument,
44
+ title: o.info?.title,
45
+ url: o.options.url
46
+ }, null, 8, ["documentDownloadType", "getOriginalDocument", "title", "url"])
47
+ ]),
43
48
  _: 2
44
- }, 1032, ["id", "documentExtensions", "externalDocs", "getOriginalDocument", "info", "infoExtensions", "isLoading", "oasVersion", "onLoaded"]));
49
+ }, 1032, ["id", "documentExtensions", "externalDocs", "info", "infoExtensions", "isLoading", "oasVersion", "onLoaded"]));
45
50
  }
46
51
  });
47
52
  export {
48
- L as default
53
+ E as default
49
54
  };
@@ -1,20 +1,21 @@
1
1
  import type { ExternalDocumentationObject, InfoObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
2
2
  type __VLS_Props = {
3
- oasVersion?: string;
3
+ id: string | undefined;
4
+ oasVersion: string | undefined;
4
5
  info: InfoObject;
5
6
  externalDocs?: ExternalDocumentationObject;
6
7
  documentExtensions?: Record<string, unknown>;
7
8
  infoExtensions?: Record<string, unknown>;
8
9
  isLoading?: boolean;
9
- getOriginalDocument: () => string;
10
- onLoaded?: () => void;
11
- id?: string;
10
+ onLoaded?: (() => void) | unknown;
12
11
  };
13
- declare var __VLS_49: {}, __VLS_59: {};
12
+ declare var __VLS_39: {}, __VLS_48: {}, __VLS_58: {};
14
13
  type __VLS_Slots = {} & {
15
- aside?: (props: typeof __VLS_49) => any;
14
+ 'download-link'?: (props: typeof __VLS_39) => any;
16
15
  } & {
17
- after?: (props: typeof __VLS_59) => any;
16
+ aside?: (props: typeof __VLS_48) => any;
17
+ } & {
18
+ after?: (props: typeof __VLS_58) => any;
18
19
  };
19
20
  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>;
20
21
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
@@ -1 +1 @@
1
- {"version":3,"file":"IntroductionLayout.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-info-block/components/IntroductionLayout.vue"],"names":[],"mappings":"AA+FA,OAAO,KAAK,EACV,2BAA2B,EAC3B,UAAU,EACX,MAAM,8DAA8D,CAAA;AAoBrE,KAAK,WAAW,GAAG;IACjB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,IAAI,EAAE,UAAU,CAAA;IAChB,YAAY,CAAC,EAAE,2BAA2B,CAAA;IAC1C,kBAAkB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC5C,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACxC,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,mBAAmB,EAAE,MAAM,MAAM,CAAA;IACjC,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;IACrB,EAAE,CAAC,EAAE,MAAM,CAAA;CACZ,CAAC;AA4LF,QAAA,IAAI,QAAQ,IAAW,EAAE,QAAQ,IAAY,CAAE;AAC/C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC3C;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAgC9C,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":"IntroductionLayout.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-info-block/components/IntroductionLayout.vue"],"names":[],"mappings":"AA2FA,OAAO,KAAK,EACV,2BAA2B,EAC3B,UAAU,EACX,MAAM,8DAA8D,CAAA;AAmBrE,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,GAAG,SAAS,CAAA;IACtB,UAAU,EAAE,MAAM,GAAG,SAAS,CAAA;IAC9B,IAAI,EAAE,UAAU,CAAA;IAChB,YAAY,CAAC,EAAE,2BAA2B,CAAA;IAC1C,kBAAkB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC5C,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACxC,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,QAAQ,CAAC,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,OAAO,CAAA;CAClC,CAAC;AAoLF,QAAA,IAAI,QAAQ,IAAW,EAAE,QAAQ,IAAW,EAAE,QAAQ,IAAY,CAAE;AACpE,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GACrD;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC3C;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AA+B9C,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 "./IntroductionLayout.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-2f5c2779"]]);
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-eb332881"]]);
5
5
  export {
6
- f as default
6
+ p as default
7
7
  };
@@ -1,39 +1,37 @@
1
- import { defineComponent as m, onMounted as u, createBlock as t, openBlock as r, unref as n, withCtx as i, createVNode as e, renderSlot as l, createElementVNode as a, createTextVNode as c, toDisplayString as p, createCommentVNode as g } from "vue";
2
- import v from "./DownloadLink.vue.js";
3
- import D from "./InfoDescription.vue.js";
1
+ import { defineComponent as m, onMounted as u, createBlock as l, openBlock as s, unref as n, withCtx as i, createVNode as e, renderSlot as r, createElementVNode as a, createTextVNode as c, toDisplayString as p, createCommentVNode as v } from "vue";
2
+ import g from "./InfoDescription.vue.js";
4
3
  import S from "./InfoLinks.vue.js";
5
4
  import V from "./InfoVersion.vue.js";
6
- import _ from "./OpenApiVersion.vue.js";
5
+ import $ from "./OpenApiVersion.vue.js";
7
6
  import y from "../../../../components/Section/SectionContainer.vue.js";
8
7
  import C from "../../../../components/Section/Section.vue.js";
9
- import $ from "../../../../components/Section/SectionContent.vue.js";
8
+ import L from "../../../../components/Section/SectionContent.vue.js";
10
9
  import k from "../../../../components/Section/SectionHeader.vue.js";
11
- import L from "../../../../components/Section/SectionHeaderTag.vue.js";
10
+ import D from "../../../../components/Section/SectionHeaderTag.vue.js";
12
11
  import h from "../../../../components/Section/SectionColumns.vue.js";
13
- import s from "../../../../components/Section/SectionColumn.vue.js";
14
- import d from "../../../../features/specification-extension/SpecificationExtension.vue2.js";
15
- const E = { class: "flex gap-1.5" }, N = { class: "sticky-cards" }, K = /* @__PURE__ */ m({
12
+ import d from "../../../../components/Section/SectionColumn.vue.js";
13
+ import f from "../../../../features/specification-extension/SpecificationExtension.vue2.js";
14
+ const E = { class: "flex gap-1.5" }, _ = { class: "sticky-cards" }, J = /* @__PURE__ */ m({
16
15
  __name: "IntroductionLayout",
17
16
  props: {
17
+ id: {},
18
18
  oasVersion: {},
19
19
  info: {},
20
20
  externalDocs: {},
21
21
  documentExtensions: {},
22
22
  infoExtensions: {},
23
23
  isLoading: { type: Boolean },
24
- getOriginalDocument: { type: Function },
25
- onLoaded: { type: Function },
26
- id: {}
24
+ onLoaded: { type: Function }
27
25
  },
28
- setup(f) {
29
- return u(() => f.onLoaded?.()), (o, O) => (r(), t(n(y), null, {
26
+ setup(t) {
27
+ return u(() => typeof t.onLoaded == "function" ? t.onLoaded?.() : t.onLoaded), (o, N) => (s(), l(n(y), null, {
30
28
  default: i(() => [
31
29
  e(n(C), {
32
30
  id: o.id,
33
31
  class: "introduction-section z-1 gap-12"
34
32
  }, {
35
33
  default: i(() => [
36
- e(n($), {
34
+ e(n(L), {
37
35
  loading: o.isLoading ?? (!o.info?.description && !o.info?.title)
38
36
  }, {
39
37
  default: i(() => [
@@ -41,7 +39,7 @@ const E = { class: "flex gap-1.5" }, N = { class: "sticky-cards" }, K = /* @__PU
41
39
  e(V, {
42
40
  version: o.info?.version
43
41
  }, null, 8, ["version"]),
44
- e(_, { oasVersion: o.oasVersion }, null, 8, ["oasVersion"])
42
+ e($, { oasVersion: o.oasVersion }, null, 8, ["oasVersion"])
45
43
  ]),
46
44
  e(n(k), {
47
45
  loading: !o.info?.title,
@@ -54,7 +52,7 @@ const E = { class: "flex gap-1.5" }, N = { class: "sticky-cards" }, K = /* @__PU
54
52
  }, null, 8, ["externalDocs", "info"])
55
53
  ]),
56
54
  default: i(() => [
57
- e(n(L), { level: 1 }, {
55
+ e(n(D), { level: 1 }, {
58
56
  default: i(() => [
59
57
  c(p(o.info?.title), 1)
60
58
  ]),
@@ -65,35 +63,32 @@ const E = { class: "flex gap-1.5" }, N = { class: "sticky-cards" }, K = /* @__PU
65
63
  }, 8, ["loading"]),
66
64
  e(n(h), null, {
67
65
  default: i(() => [
68
- e(n(s), null, {
66
+ e(n(d), null, {
69
67
  default: i(() => [
70
- e(v, {
71
- getOriginalDocument: o.getOriginalDocument,
72
- title: o.info?.title
73
- }, null, 8, ["getOriginalDocument", "title"]),
74
- e(D, {
68
+ r(o.$slots, "download-link", {}, void 0, !0),
69
+ e(g, {
75
70
  description: o.info?.description
76
71
  }, null, 8, ["description"])
77
72
  ]),
78
- _: 1
73
+ _: 3
79
74
  }),
80
- o.$slots.aside ? (r(), t(n(s), { key: 0 }, {
75
+ o.$slots.aside ? (s(), l(n(d), { key: 0 }, {
81
76
  default: i(() => [
82
- a("div", N, [
83
- l(o.$slots, "aside", {}, void 0, !0)
77
+ a("div", _, [
78
+ r(o.$slots, "aside", {}, void 0, !0)
84
79
  ])
85
80
  ]),
86
81
  _: 3
87
- })) : g("", !0)
82
+ })) : v("", !0)
88
83
  ]),
89
84
  _: 3
90
85
  }),
91
- e(n(d), { value: o.documentExtensions }, null, 8, ["value"]),
92
- e(n(d), { value: o.infoExtensions }, null, 8, ["value"])
86
+ e(n(f), { value: o.documentExtensions }, null, 8, ["value"]),
87
+ e(n(f), { value: o.infoExtensions }, null, 8, ["value"])
93
88
  ]),
94
89
  _: 3
95
90
  }, 8, ["loading"]),
96
- l(o.$slots, "after", {}, void 0, !0)
91
+ r(o.$slots, "after", {}, void 0, !0)
97
92
  ]),
98
93
  _: 3
99
94
  }, 8, ["id"])
@@ -103,5 +98,5 @@ const E = { class: "flex gap-1.5" }, N = { class: "sticky-cards" }, K = /* @__PU
103
98
  }
104
99
  });
105
100
  export {
106
- K as default
101
+ J as default
107
102
  };
@@ -8,28 +8,8 @@ type __VLS_Props = {
8
8
  target: string;
9
9
  };
10
10
  declare const _default: import("vue").DefineComponent<__VLS_Props, {
11
- server: import("vue").ComputedRef<{
12
- description?: string | undefined;
13
- variables?: {
14
- [x: string]: {
15
- default?: string | undefined;
16
- description?: string | undefined;
17
- enum?: string[] | undefined;
18
- };
19
- } | undefined;
20
- url: string;
21
- } | undefined>;
22
- servers: {
23
- description?: string | undefined;
24
- variables?: {
25
- [x: string]: {
26
- default?: string | undefined;
27
- description?: string | undefined;
28
- enum?: string[] | undefined;
29
- };
30
- } | undefined;
31
- url: string;
32
- }[];
11
+ server: import("vue").ComputedRef<ServerObject | undefined>;
12
+ servers: ServerObject[];
33
13
  serverUrlWithoutTrailingSlash: import("vue").ComputedRef<string>;
34
14
  serverOptions: import("vue").ComputedRef<{
35
15
  id: string;
@@ -1 +1 @@
1
- {"version":3,"file":"Selector.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-server-selector-block/components/Selector.vue"],"names":[],"mappings":"AAuFA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAGhG,KAAK,WAAW,GAAG;IACjB,8BAA8B;IAC9B,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,wBAAwB;IACxB,OAAO,EAAE,YAAY,EAAE,CAAA;IACvB,qEAAqE;IACrE,MAAM,EAAE,MAAM,CAAA;CACf,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgMF,wBAQG"}
1
+ {"version":3,"file":"Selector.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-server-selector-block/components/Selector.vue"],"names":[],"mappings":"AAuFA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAGhG,KAAK,WAAW,GAAG;IACjB,8BAA8B;IAC9B,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,wBAAwB;IACxB,OAAO,EAAE,YAAY,EAAE,CAAA;IACvB,qEAAqE;IACrE,MAAM,EAAE,MAAM,CAAA;CACf,CAAC;;;;;;;;;;;;;;;;;;;;;AAgMF,wBAQG"}
@@ -1,5 +1,13 @@
1
1
  type __VLS_Props = {
2
2
  title: string;
3
+ options: {
4
+ pathRouting?: {
5
+ basePath?: string;
6
+ };
7
+ onSidebarClick: ((id: string) => void) | undefined;
8
+ operationTitleSource: 'path' | 'summary' | undefined;
9
+ defaultOpenAllTags: boolean | undefined;
10
+ };
3
11
  };
4
12
  declare var __VLS_1: {}, __VLS_32: {};
5
13
  type __VLS_Slots = {} & {
@@ -1 +1 @@
1
- {"version":3,"file":"SidebarBlock.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-sidebar-block/components/SidebarBlock.vue"],"names":[],"mappings":"AAiRA,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAA;CACd,CAAC;AAoSF,QAAA,IAAI,OAAO,IAAU,EAAE,QAAQ,IAAY,CAAE;AAC7C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GACpD;IAAE,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AA8BtD,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":"SidebarBlock.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-sidebar-block/components/SidebarBlock.vue"],"names":[],"mappings":"AA6RA,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE;QACP,WAAW,CAAC,EAAE;YACZ,QAAQ,CAAC,EAAE,MAAM,CAAA;SAClB,CAAA;QACD,cAAc,EAAE,CAAC,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC,GAAG,SAAS,CAAA;QAClD,oBAAoB,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,CAAA;QACpD,kBAAkB,EAAE,OAAO,GAAG,SAAS,CAAA;KACxC,CAAA;CACF,CAAC;AA4SF,QAAA,IAAI,OAAO,IAAU,EAAE,QAAQ,IAAY,CAAE;AAC7C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GACpD;IAAE,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AA8BtD,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 "./SidebarBlock.vue2.js";
2
2
  /* empty css */
3
- import a from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ a(o, [["__scopeId", "data-v-75a8a2ea"]]);
3
+ import r from "../../../../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-29c5b3a5"]]);
5
5
  export {
6
6
  m as default
7
7
  };
@@ -1,126 +1,131 @@
1
- import { defineComponent as O, ref as y, watch as N, onMounted as L, onUnmounted as F, createElementBlock as n, openBlock as i, renderSlot as T, createElementVNode as C, createVNode as G, withCtx as v, Fragment as d, renderList as m, unref as a, createBlock as u, toDisplayString as V, createCommentVNode as A } from "vue";
1
+ import { defineComponent as O, ref as y, watch as N, onMounted as L, onUnmounted as F, createElementBlock as r, openBlock as i, renderSlot as T, createElementVNode as C, createVNode as G, withCtx as f, Fragment as d, renderList as m, unref as l, createBlock as u, toDisplayString as V, createCommentVNode as A } from "vue";
2
2
  import { sleep as $ } from "@scalar/helpers/testing/sleep";
3
3
  import { useNavState as M } from "../../../../hooks/useNavState.js";
4
- import { useSidebar as x } from "../hooks/useSidebar.js";
4
+ import { useSidebar as D } from "../hooks/useSidebar.js";
5
5
  import h from "./SidebarElement.vue.js";
6
- import _ from "./SidebarGroup.vue.js";
7
- const D = { class: "sidebar" }, H = ["aria-label"], R = { class: "sidebar-group-title" }, U = -160, W = /* @__PURE__ */ O({
6
+ import g from "./SidebarGroup.vue.js";
7
+ const H = { class: "sidebar" }, R = ["aria-label"], U = { class: "sidebar-group-title" }, j = -160, X = /* @__PURE__ */ O({
8
8
  __name: "SidebarBlock",
9
9
  props: {
10
- title: {}
10
+ title: {},
11
+ options: {}
11
12
  },
12
- setup(j) {
13
- const { hash: o, isIntersectionEnabled: w } = M(), { items: B, toggleCollapsedSidebarItem: g, collapsedSidebarItems: E } = x(), c = y(null), l = y(!0);
14
- N(o, (t) => {
15
- !w.value || l.value || typeof window > "u" || S(t);
13
+ setup(q) {
14
+ const { hash: a, isIntersectionEnabled: w } = M(), { items: B, toggleCollapsedSidebarItem: _, collapsedSidebarItems: E } = D(), c = y(null), n = y(!0);
15
+ N(a, (e) => {
16
+ !w.value || n.value || typeof window > "u" || S(e);
16
17
  });
17
- const S = (t) => {
18
- const s = document.getElementById(`sidebar-${t}`);
18
+ const S = (e) => {
19
+ const s = document.getElementById(`sidebar-${e}`);
19
20
  if (!s || !c.value)
20
21
  return;
21
- let e = U;
22
- s.getAttribute("data-sidebar-type") === "heading" ? e += s.offsetTop + (s.getElementsByClassName("sidebar-heading")?.[0]).offsetHeight : e += s.offsetTop + (s.parentElement?.offsetTop ?? 0) + (s.parentElement?.parentElement?.offsetTop ?? 0), c.value.scrollTo({ top: e, behavior: "smooth" });
23
- }, I = (t) => {
22
+ let t = j;
23
+ s.getAttribute("data-sidebar-type") === "heading" ? t += s.offsetTop + (s.getElementsByClassName("sidebar-heading")?.[0]).offsetHeight : t += s.offsetTop + (s.parentElement?.offsetTop ?? 0) + (s.parentElement?.parentElement?.offsetTop ?? 0), c.value.scrollTo({ top: t, behavior: "smooth" });
24
+ }, I = (e) => {
24
25
  if (!c.value)
25
26
  return;
26
- const s = new MutationObserver((e, r) => {
27
- document.getElementById(`sidebar-${t}`) && (S(t), l.value = !1, r.disconnect());
27
+ const s = new MutationObserver((t, o) => {
28
+ document.getElementById(`sidebar-${e}`) && (S(e), n.value = !1, o.disconnect());
28
29
  });
29
30
  return s.observe(c.value, {
30
31
  childList: !0,
31
32
  subtree: !0
32
33
  }), s;
33
- }, p = (t) => o.value === t ? !0 : o.value.includes("/description/") ? o.value.split("/description/")[0] === t : !1, k = y(void 0);
34
+ }, v = (e) => a.value === e ? !0 : a.value.includes("/description/") ? a.value.split("/description/")[0] === e : !1, k = y(void 0);
34
35
  L(() => {
35
- k.value = I(o.value), o.value || setTimeout(() => l.value = !1, 300);
36
+ k.value = I(a.value), a.value || setTimeout(() => n.value = !1, 300);
36
37
  }), F(() => {
37
38
  k.value?.disconnect();
38
39
  });
39
- const b = (t) => (t.type === "tag" || t.type === "text") && (t.children?.length ?? 0) > 0;
40
- return (t, s) => (i(), n("div", D, [
41
- T(t.$slots, "sidebar-start", {}, void 0, !0),
40
+ const b = (e) => (e.type === "tag" || e.type === "text") && (e.children?.length ?? 0) > 0;
41
+ return (e, s) => (i(), r("div", H, [
42
+ T(e.$slots, "sidebar-start", {}, void 0, !0),
42
43
  C("nav", {
43
44
  ref_key: "scrollerEl",
44
45
  ref: c,
45
- "aria-label": `Table of contents for ${t.title}`,
46
+ "aria-label": `Table of contents for ${e.title}`,
46
47
  class: "sidebar-pages custom-scroll custom-scroll-self-contain-overflow"
47
48
  }, [
48
- G(_, { level: 0 }, {
49
- default: v(() => [
50
- (i(!0), n(d, null, m(a(B).entries, (e) => (i(), n(d, {
51
- key: e.id
49
+ G(g, { level: 0 }, {
50
+ default: f(() => [
51
+ (i(!0), r(d, null, m(l(B).entries, (t) => (i(), r(d, {
52
+ key: t.id
52
53
  }, [
53
- "isGroup" in e && e.isGroup ? (i(), n(d, { key: 0 }, [
54
- C("li", R, V(e.title), 1),
55
- (i(!0), n(d, null, m(e.children, (r) => (i(), u(h, {
56
- key: r.id,
57
- id: `sidebar-${r.id}`,
54
+ "isGroup" in t && t.isGroup ? (i(), r(d, { key: 0 }, [
55
+ C("li", U, V(t.title), 1),
56
+ (i(!0), r(d, null, m(t.children, (o) => (i(), u(h, {
57
+ key: o.id,
58
+ id: `sidebar-${o.id}`,
58
59
  "data-sidebar-type": "heading",
59
- hasChildren: b(r),
60
- isActive: p(r.id),
61
- item: r,
62
- open: a(E)[r.id] ?? !1,
60
+ hasChildren: b(o),
61
+ isActive: v(o.id),
62
+ item: o,
63
+ open: l(E)[o.id] ?? !1,
64
+ options: e.options,
63
65
  onToggleOpen: async () => {
64
- l.value = !0, a(g)(r.id), await a($)(100), l.value = !1;
66
+ n.value = !0, l(_)(o.id), await l($)(100), n.value = !1;
65
67
  }
66
68
  }, {
67
- default: v(() => [
68
- b(r) ? (i(), u(_, {
69
+ default: f(() => [
70
+ b(o) ? (i(), u(g, {
69
71
  key: 0,
70
72
  level: 1
71
73
  }, {
72
- default: v(() => [
73
- (i(!0), n(d, null, m(r.children, (f) => (i(), u(h, {
74
- key: f.id,
75
- id: `sidebar-${f.id}`,
76
- isActive: p(f.id),
77
- item: f
78
- }, null, 8, ["id", "isActive", "item"]))), 128))
74
+ default: f(() => [
75
+ (i(!0), r(d, null, m(o.children, (p) => (i(), u(h, {
76
+ key: p.id,
77
+ id: `sidebar-${p.id}`,
78
+ isActive: v(p.id),
79
+ item: p,
80
+ options: e.options
81
+ }, null, 8, ["id", "isActive", "item", "options"]))), 128))
79
82
  ]),
80
83
  _: 2
81
84
  }, 1024)) : A("", !0)
82
85
  ]),
83
86
  _: 2
84
- }, 1032, ["id", "hasChildren", "isActive", "item", "open", "onToggleOpen"]))), 128))
87
+ }, 1032, ["id", "hasChildren", "isActive", "item", "open", "options", "onToggleOpen"]))), 128))
85
88
  ], 64)) : (i(), u(h, {
86
89
  key: 1,
87
- id: `sidebar-${e.id}`,
90
+ id: `sidebar-${t.id}`,
88
91
  "data-sidebar-type": "heading",
89
- hasChildren: b(e),
90
- isActive: p(e.id),
91
- item: e,
92
- open: a(E)[e.id] ?? !1,
92
+ hasChildren: b(t),
93
+ isActive: v(t.id),
94
+ item: t,
95
+ open: l(E)[t.id] ?? !1,
96
+ options: e.options,
93
97
  onToggleOpen: async () => {
94
- l.value = !0, a(g)(e.id), await a($)(100), l.value = !1;
98
+ n.value = !0, l(_)(t.id), await l($)(100), n.value = !1;
95
99
  }
96
100
  }, {
97
- default: v(() => [
98
- b(e) ? (i(), u(_, {
101
+ default: f(() => [
102
+ b(t) ? (i(), u(g, {
99
103
  key: 0,
100
104
  level: 1
101
105
  }, {
102
- default: v(() => [
103
- (i(!0), n(d, null, m(e.children, (r) => (i(), u(h, {
104
- key: r.id,
105
- id: `sidebar-${r.id}`,
106
- isActive: p(r.id),
107
- item: r
108
- }, null, 8, ["id", "isActive", "item"]))), 128))
106
+ default: f(() => [
107
+ (i(!0), r(d, null, m(t.children, (o) => (i(), u(h, {
108
+ key: o.id,
109
+ id: `sidebar-${o.id}`,
110
+ isActive: v(o.id),
111
+ item: o,
112
+ options: e.options
113
+ }, null, 8, ["id", "isActive", "item", "options"]))), 128))
109
114
  ]),
110
115
  _: 2
111
116
  }, 1024)) : A("", !0)
112
117
  ]),
113
118
  _: 2
114
- }, 1032, ["id", "hasChildren", "isActive", "item", "open", "onToggleOpen"]))
119
+ }, 1032, ["id", "hasChildren", "isActive", "item", "open", "options", "onToggleOpen"]))
115
120
  ], 64))), 128))
116
121
  ]),
117
122
  _: 1
118
123
  })
119
- ], 8, H),
120
- T(t.$slots, "sidebar-end", {}, void 0, !0)
124
+ ], 8, R),
125
+ T(e.$slots, "sidebar-end", {}, void 0, !0)
121
126
  ]));
122
127
  }
123
128
  });
124
129
  export {
125
- W as default
130
+ X as default
126
131
  };
@@ -1,10 +1,18 @@
1
- import type { TraversedEntry } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
1
+ import type { TraversedEntry } from '@scalar/workspace-store/schemas/navigation';
2
2
  type __VLS_Props = {
3
3
  id: string;
4
4
  item: TraversedEntry;
5
5
  isActive?: boolean;
6
6
  hasChildren?: boolean;
7
7
  open?: boolean;
8
+ options: {
9
+ pathRouting?: {
10
+ basePath?: string;
11
+ };
12
+ onSidebarClick: ((id: string) => void) | undefined;
13
+ operationTitleSource: 'path' | 'summary' | undefined;
14
+ defaultOpenAllTags: boolean | undefined;
15
+ };
8
16
  };
9
17
  declare var __VLS_12: {}, __VLS_14: {};
10
18
  type __VLS_Slots = {} & {
@@ -1 +1 @@
1
- {"version":3,"file":"SidebarElement.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-sidebar-block/components/SidebarElement.vue"],"names":[],"mappings":"AAyXA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8DAA8D,CAAA;AAOlG,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,cAAc,CAAA;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,IAAI,CAAC,EAAE,OAAO,CAAA;CACf,CAAC;AA4RF,QAAA,IAAI,QAAQ,IAAW,EAAE,QAAQ,IAAY,CAAE;AAC/C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC7C;IAAE,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AA6BtD,QAAA,MAAM,eAAe;;;;kFAOnB,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":"SidebarElement.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-sidebar-block/components/SidebarElement.vue"],"names":[],"mappings":"AAgYA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAA;AAMhF,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,cAAc,CAAA;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,OAAO,EAAE;QACP,WAAW,CAAC,EAAE;YACZ,QAAQ,CAAC,EAAE,MAAM,CAAA;SAClB,CAAA;QACD,cAAc,EAAE,CAAC,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC,GAAG,SAAS,CAAA;QAClD,oBAAoB,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,CAAA;QACpD,kBAAkB,EAAE,OAAO,GAAG,SAAS,CAAA;KACxC,CAAA;CACF,CAAC;AA4RF,QAAA,IAAI,QAAQ,IAAW,EAAE,QAAQ,IAAY,CAAE;AAC/C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC7C;IAAE,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AA4BtD,QAAA,MAAM,eAAe;;;;kFAOnB,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 "./SidebarElement.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-b9da5e03"]]);
4
+ const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-43553cbe"]]);
5
5
  export {
6
- m as default
6
+ a as default
7
7
  };