@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,38 @@
1
- import { defineComponent as b, useId as y, computed as u, createBlock as s, createCommentVNode as f, openBlock as a, unref as e, withCtx as o, createVNode as l, createElementVNode as M, createTextVNode as B, normalizeClass as N, createElementBlock as k, Fragment as C, renderList as I } from "vue";
2
- import { ScalarErrorBoundary as _ } from "@scalar/components";
1
+ import { defineComponent as b, useId as y, computed as c, createBlock as s, createCommentVNode as p, openBlock as a, unref as e, withCtx as o, createVNode as l, createElementVNode as w, createTextVNode as B, normalizeClass as N, createElementBlock as g, Fragment as k, renderList as C } from "vue";
2
+ import { ScalarErrorBoundary as I } from "@scalar/components";
3
3
  import A from "../../ShowMoreButton.vue.js";
4
4
  import { useSidebar as H } from "../../../v2/blocks/scalar-sidebar-block/hooks/useSidebar.js";
5
5
  import L from "../../Section/SectionContainer.vue.js";
6
- import w from "../../Section/Section.vue.js";
6
+ import _ from "../../Section/Section.vue.js";
7
7
  import E from "../../Section/SectionHeader.vue.js";
8
- import p from "../../Section/SectionHeaderTag.vue.js";
8
+ import f from "../../Section/SectionHeaderTag.vue.js";
9
9
  import O from "../../Section/CompactSection.vue.js";
10
10
  import P from "../Schema/Schema.vue.js";
11
11
  import V from "../Schema/SchemaHeading.vue.js";
12
12
  const S = 10, G = /* @__PURE__ */ b({
13
13
  __name: "ModernLayout",
14
14
  props: {
15
- config: {},
15
+ options: {},
16
16
  schemas: { default: () => [] }
17
17
  },
18
18
  setup(r) {
19
- const m = y(), { collapsedSidebarItems: h } = H(), d = u(
20
- () => r.config.expandAllModelSections || r.schemas.length <= S || h.models
21
- ), g = u(() => d.value ? r.schemas : r.schemas.slice(0, S));
22
- return (t, c) => t.schemas ? (a(), s(e(L), {
19
+ const m = y(), { collapsedSidebarItems: h } = H(), n = c(
20
+ () => r.options.expandAllModelSections || r.schemas.length <= S || h.models
21
+ ), M = c(() => n.value ? r.schemas : r.schemas.slice(0, S));
22
+ return (t, u) => t.schemas ? (a(), s(e(L), {
23
23
  key: 0,
24
24
  id: "models"
25
25
  }, {
26
26
  default: o(() => [
27
- l(e(w), { "aria-labelledby": e(m) }, {
27
+ l(e(_), { "aria-labelledby": e(m) }, {
28
28
  default: o(() => [
29
29
  l(e(E), null, {
30
30
  default: o(() => [
31
- l(e(p), {
31
+ l(e(f), {
32
32
  id: e(m),
33
33
  level: 2
34
34
  }, {
35
- default: o(() => c[0] || (c[0] = [
35
+ default: o(() => u[0] || (u[0] = [
36
36
  B(" Models ")
37
37
  ])),
38
38
  _: 1,
@@ -41,29 +41,29 @@ const S = 10, G = /* @__PURE__ */ b({
41
41
  ]),
42
42
  _: 1
43
43
  }),
44
- M("div", {
45
- class: N(["models-list", { "models-list-truncated": !d.value }])
44
+ w("div", {
45
+ class: N(["models-list", { "models-list-truncated": !n.value }])
46
46
  }, [
47
- (a(!0), k(C, null, I(g.value, ({ id: v, name: i, schema: n }) => (a(), s(e(O), {
47
+ (a(!0), g(k, null, C(M.value, ({ id: v, name: d, schema: i }) => (a(), s(e(O), {
48
48
  id: v,
49
- key: i,
49
+ key: d,
50
50
  class: "models-list-item",
51
- defaultOpen: t.config.expandAllModelSections,
52
- label: i
51
+ defaultOpen: t.options.expandAllModelSections,
52
+ label: d
53
53
  }, {
54
54
  heading: o(() => [
55
- l(e(p), { level: 3 }, {
55
+ l(e(f), { level: 3 }, {
56
56
  default: o(() => [
57
57
  l(e(V), {
58
- name: n.title ?? i,
59
- value: n
58
+ name: i.title ?? d,
59
+ value: i
60
60
  }, null, 8, ["name", "value"])
61
61
  ]),
62
62
  _: 2
63
63
  }, 1024)
64
64
  ]),
65
65
  default: o(() => [
66
- l(e(_), null, {
66
+ l(e(I), null, {
67
67
  default: o(() => [
68
68
  l(e(P), {
69
69
  hideHeading: "",
@@ -71,10 +71,10 @@ const S = 10, G = /* @__PURE__ */ b({
71
71
  level: 1,
72
72
  noncollapsible: "",
73
73
  options: {
74
- orderRequiredPropertiesFirst: t.config.orderRequiredPropertiesFirst,
75
- orderSchemaPropertiesBy: t.config.orderSchemaPropertiesBy
74
+ orderRequiredPropertiesFirst: t.options.orderRequiredPropertiesFirst,
75
+ orderSchemaPropertiesBy: t.options.orderSchemaPropertiesBy
76
76
  },
77
- schema: n
77
+ schema: i
78
78
  }, null, 8, ["options", "schema"])
79
79
  ]),
80
80
  _: 2
@@ -83,17 +83,18 @@ const S = 10, G = /* @__PURE__ */ b({
83
83
  _: 2
84
84
  }, 1032, ["id", "defaultOpen", "label"]))), 128))
85
85
  ], 2),
86
- d.value ? f("", !0) : (a(), s(A, {
86
+ n.value ? p("", !0) : (a(), s(A, {
87
87
  key: 0,
88
88
  id: "models",
89
- class: "show-more-models"
90
- }))
89
+ class: "show-more-models",
90
+ onShowMore: t.options.onShowMore
91
+ }, null, 8, ["onShowMore"]))
91
92
  ]),
92
93
  _: 1
93
94
  }, 8, ["aria-labelledby"])
94
95
  ]),
95
96
  _: 1
96
- })) : f("", !0);
97
+ })) : p("", !0);
97
98
  }
98
99
  });
99
100
  export {
@@ -1,18 +1,32 @@
1
+ import type { ClientOptionGroup } from '@scalar/api-client/v2/blocks/operation-code-sample';
1
2
  import type { Collection, Server } from '@scalar/oas-utils/entities/spec';
2
- import type { ApiReferenceConfiguration } from '@scalar/types';
3
3
  import type { WorkspaceStore } from '@scalar/workspace-store/client';
4
- import type { OpenApiDocument, TraversedEntry } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
5
- import type { ClientOptionGroup } from '../../../v2/blocks/scalar-request-example-block/types';
4
+ import type { TraversedEntry } from '@scalar/workspace-store/schemas/navigation';
5
+ import type { PathsObject, SecurityRequirementObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
6
6
  type __VLS_Props = {
7
7
  level?: number;
8
+ hash: string;
8
9
  rootIndex: number;
9
10
  entries: TraversedEntry[];
10
- config: ApiReferenceConfiguration;
11
- document: OpenApiDocument;
12
- clientOptions: ClientOptionGroup[];
11
+ /** The path entries from the document `document.paths` */
12
+ paths: PathsObject;
13
+ /** The webhook path entries from the document `document.webhooks` */
14
+ webhooks: PathsObject;
15
+ /** The security requirements from the document `document.security` */
16
+ security: SecurityRequirementObject[] | undefined;
13
17
  activeCollection: Collection;
14
18
  activeServer: Server | undefined;
15
19
  store: WorkspaceStore;
20
+ options: {
21
+ layout: 'classic' | 'modern';
22
+ showOperationId: boolean | undefined;
23
+ hideTestRequestButton: boolean | undefined;
24
+ expandAllResponses: boolean | undefined;
25
+ clientOptions: ClientOptionGroup[];
26
+ orderRequiredPropertiesFirst: boolean | undefined;
27
+ orderSchemaPropertiesBy: 'alpha' | 'preserve' | undefined;
28
+ onShowMore: ((id: string) => void) | undefined;
29
+ };
16
30
  };
17
31
  declare const _default: import("vue").DefineComponent<__VLS_Props, {
18
32
  currentIndex: import("vue").ComputedRef<number>;
@@ -1 +1 @@
1
- {"version":3,"file":"TraversedEntry.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operations/TraversedEntry.vue"],"names":[],"mappings":"AA+JA,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;AACpE,OAAO,KAAK,EACV,eAAe,EACf,cAAc,EAIf,MAAM,8DAA8D,CAAA;AASrE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gDAAgD,CAAA;AAEvF,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,cAAc,EAAE,CAAA;IACzB,MAAM,EAAE,yBAAyB,CAAA;IACjC,QAAQ,EAAE,eAAe,CAAA;IACzB,aAAa,EAAE,iBAAiB,EAAE,CAAA;IAClC,gBAAgB,EAAE,UAAU,CAAA;IAC5B,YAAY,EAAE,MAAM,GAAG,SAAS,CAAA;IAChC,KAAK,EAAE,cAAc,CAAA;CACtB,CAAC;;;oBA0CqB,cAAc,SAAS,MAAM;;AA+LpD,wBAOG"}
1
+ {"version":3,"file":"TraversedEntry.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operations/TraversedEntry.vue"],"names":[],"mappings":"AA6LA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAA;AAC3F,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AACzE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,KAAK,EACV,cAAc,EAIf,MAAM,4CAA4C,CAAA;AACnD,OAAO,KAAK,EACV,WAAW,EACX,yBAAyB,EAC1B,MAAM,8DAA8D,CAAA;AASrE,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,cAAc,EAAE,CAAA;IACzB,0DAA0D;IAC1D,KAAK,EAAE,WAAW,CAAA;IAClB,qEAAqE;IACrE,QAAQ,EAAE,WAAW,CAAA;IACrB,sEAAsE;IACtE,QAAQ,EAAE,yBAAyB,EAAE,GAAG,SAAS,CAAA;IACjD,gBAAgB,EAAE,UAAU,CAAA;IAC5B,YAAY,EAAE,MAAM,GAAG,SAAS,CAAA;IAChC,KAAK,EAAE,cAAc,CAAA;IACrB,OAAO,EAAE;QACP,MAAM,EAAE,SAAS,GAAG,QAAQ,CAAA;QAC5B,eAAe,EAAE,OAAO,GAAG,SAAS,CAAA;QACpC,qBAAqB,EAAE,OAAO,GAAG,SAAS,CAAA;QAC1C,kBAAkB,EAAE,OAAO,GAAG,SAAS,CAAA;QACvC,aAAa,EAAE,iBAAiB,EAAE,CAAA;QAClC,4BAA4B,EAAE,OAAO,GAAG,SAAS,CAAA;QACjD,uBAAuB,EAAE,OAAO,GAAG,UAAU,GAAG,SAAS,CAAA;QACzD,UAAU,EAAE,CAAC,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC,GAAG,SAAS,CAAA;KAC/C,CAAA;CACF,CAAC;;;oBA6CqB,cAAc,SAAS,MAAM;;AAoNpD,wBAOG"}
@@ -1,89 +1,101 @@
1
- import { defineComponent as I, computed as g, resolveComponent as S, createElementBlock as T, openBlock as t, Fragment as L, renderList as b, createBlock as n, unref as i, withCtx as v, createCommentVNode as h, createVNode as B } from "vue";
2
- import { getCurrentIndex as E } from "./get-current-index.js";
3
- import { useNavState as z } from "../../../hooks/useNavState.js";
4
- import N from "../../Lazy/Lazy.vue2.js";
5
- import W from "../../Section/SectionContainer.vue.js";
6
- import $ from "../../../features/Operation/Operation.vue.js";
7
- import w from "../Tags/Tag.vue.js";
8
- const D = /* @__PURE__ */ I({
1
+ import { defineComponent as S, computed as f, resolveComponent as b, createElementBlock as I, openBlock as r, Fragment as T, renderList as L, createBlock as i, unref as a, withCtx as v, createCommentVNode as k, createVNode as y } from "vue";
2
+ import { getCurrentIndex as V } from "./get-current-index.js";
3
+ import B from "../../Lazy/Lazy.vue2.js";
4
+ import E from "../../Section/SectionContainer.vue.js";
5
+ import z from "../../../features/Operation/Operation.vue.js";
6
+ import M from "../Tags/Tag.vue.js";
7
+ const P = /* @__PURE__ */ S({
9
8
  __name: "TraversedEntry",
10
9
  props: {
11
10
  level: { default: 0 },
11
+ hash: {},
12
12
  rootIndex: {},
13
13
  entries: {},
14
- config: {},
15
- document: {},
16
- clientOptions: {},
14
+ paths: {},
15
+ webhooks: {},
16
+ security: {},
17
17
  activeCollection: {},
18
18
  activeServer: {},
19
- store: {}
19
+ store: {},
20
+ options: {}
20
21
  },
21
- setup(r, { expose: C }) {
22
- const l = (e) => e.type === "tag" && e.isGroup === !0, d = (e) => e.type === "tag" && !l(e), O = (e) => e.type === "operation", a = (e) => e.type === "webhook", m = g(() => r.level === 0), { hash: k } = z(), c = g(() => m.value ? r.rootIndex : E(k.value, r.entries)), s = (e, u) => l(e) ? null : u < c.value ? "prev" : u > c.value + 2 ? "after" : null;
23
- return C({
24
- currentIndex: c,
25
- isLazy: s
22
+ setup(t, { expose: g }) {
23
+ const n = (e) => e.type === "tag" && e.isGroup === !0, p = (e) => e.type === "tag" && !n(e), C = (e) => e.type === "operation", s = (e) => e.type === "webhook", c = f(() => t.level === 0), l = f(() => c.value ? t.rootIndex : V(t.hash, t.entries)), h = (e, u) => n(e) ? null : u < l.value ? "prev" : u > l.value + 2 ? "after" : null;
24
+ function w(e) {
25
+ return s(e) ? t.webhooks[e.name] : t.paths[e.path];
26
+ }
27
+ return g({
28
+ currentIndex: l,
29
+ isLazy: h
26
30
  }), (e, u) => {
27
- const p = S("TraversedEntry", !0);
28
- return t(!0), T(L, null, b(e.entries, (o, f) => (t(), n(i(N), {
31
+ const d = b("TraversedEntry", !0);
32
+ return r(!0), I(T, null, L(e.entries, (o, m) => (r(), i(a(B), {
29
33
  id: o.id,
30
34
  key: o.id,
31
- isLazy: !!s(o, f),
32
- prev: s(o, f) === "prev"
35
+ isLazy: !!h(o, m),
36
+ prev: h(o, m) === "prev"
33
37
  }, {
34
38
  default: v(() => [
35
- O(o) || a(o) ? (t(), n(i(W), {
39
+ C(o) || s(o) ? (r(), i(a(E), {
36
40
  key: 0,
37
- omit: !m.value
41
+ omit: !c.value
38
42
  }, {
39
43
  default: v(() => [
40
- B(i($), {
44
+ y(a(z), {
41
45
  id: o.id,
42
- clientOptions: e.clientOptions,
43
46
  collection: e.activeCollection,
44
- config: e.config,
45
- document: e.document,
46
- isWebhook: a(o),
47
47
  method: o.method,
48
- path: a(o) ? o.name : o.path,
48
+ options: {
49
+ ...e.options,
50
+ isWebhook: s(o)
51
+ },
52
+ path: s(o) ? o.name : o.path,
53
+ pathValue: w(o),
54
+ security: e.security,
49
55
  server: e.activeServer,
50
56
  store: e.store
51
- }, null, 8, ["id", "clientOptions", "collection", "config", "document", "isWebhook", "method", "path", "server", "store"])
57
+ }, null, 8, ["id", "collection", "method", "options", "path", "pathValue", "security", "server", "store"])
52
58
  ]),
53
59
  _: 2
54
- }, 1032, ["omit"])) : d(o) ? (t(), n(i(w), {
60
+ }, 1032, ["omit"])) : p(o) ? (r(), i(a(M), {
55
61
  key: 1,
56
- layout: e.config.layout,
57
- moreThanOneTag: e.entries.filter(d).length > 1,
62
+ isLoading: !1,
63
+ layout: e.options.layout,
64
+ moreThanOneTag: e.entries.filter(p).length > 1,
65
+ onShowMore: e.options.onShowMore,
58
66
  tag: o
59
67
  }, {
60
68
  default: v(() => [
61
- "children" in o && o.children?.length ? (t(), n(p, {
69
+ "children" in o && o.children?.length ? (r(), i(d, {
62
70
  key: 0,
63
71
  activeCollection: e.activeCollection,
64
72
  activeServer: e.activeServer,
65
- clientOptions: e.clientOptions,
66
- config: e.config,
67
- document: e.document,
68
73
  entries: o.children,
74
+ hash: e.hash,
69
75
  level: e.level + 1,
76
+ options: e.options,
77
+ paths: e.paths,
70
78
  rootIndex: e.rootIndex,
71
- store: e.store
72
- }, null, 8, ["activeCollection", "activeServer", "clientOptions", "config", "document", "entries", "level", "rootIndex", "store"])) : h("", !0)
79
+ security: e.security,
80
+ store: e.store,
81
+ webhooks: e.webhooks
82
+ }, null, 8, ["activeCollection", "activeServer", "entries", "hash", "level", "options", "paths", "rootIndex", "security", "store", "webhooks"])) : k("", !0)
73
83
  ]),
74
84
  _: 2
75
- }, 1032, ["layout", "moreThanOneTag", "tag"])) : l(o) ? (t(), n(p, {
85
+ }, 1032, ["layout", "moreThanOneTag", "onShowMore", "tag"])) : n(o) ? (r(), i(d, {
76
86
  key: 2,
77
87
  activeCollection: e.activeCollection,
78
88
  activeServer: e.activeServer,
79
- clientOptions: e.clientOptions,
80
- config: e.config,
81
- document: e.document,
82
89
  entries: o.children || [],
90
+ hash: e.hash,
83
91
  level: e.level + 1,
92
+ options: e.options,
93
+ paths: e.paths,
84
94
  rootIndex: e.rootIndex,
85
- store: e.store
86
- }, null, 8, ["activeCollection", "activeServer", "clientOptions", "config", "document", "entries", "level", "rootIndex", "store"])) : h("", !0)
95
+ security: e.security,
96
+ store: e.store,
97
+ webhooks: e.webhooks
98
+ }, null, 8, ["activeCollection", "activeServer", "entries", "hash", "level", "options", "paths", "rootIndex", "security", "store", "webhooks"])) : k("", !0)
87
99
  ]),
88
100
  _: 2
89
101
  }, 1032, ["id", "isLazy", "prev"]))), 128);
@@ -91,5 +103,5 @@ const D = /* @__PURE__ */ I({
91
103
  }
92
104
  });
93
105
  export {
94
- D as default
106
+ P as default
95
107
  };
@@ -1,4 +1,4 @@
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
  /** Loops through the entries and returns the index of the current entry based on the hash */
3
3
  export declare const getCurrentIndex: (hash: string, entries: TraversedEntry[]) => number;
4
4
  //# sourceMappingURL=get-current-index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-current-index.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operations/get-current-index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8DAA8D,CAAA;AAuBlG,6FAA6F;AAC7F,eAAO,MAAM,eAAe,GAAI,MAAM,MAAM,EAAE,SAAS,cAAc,EAAE,WAYtE,CAAA"}
1
+ {"version":3,"file":"get-current-index.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operations/get-current-index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAA;AAuBhF,6FAA6F;AAC7F,eAAO,MAAM,eAAe,GAAI,MAAM,MAAM,EAAE,SAAS,cAAc,EAAE,WAYtE,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"get-ref-name.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Schema/helpers/get-ref-name.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAChG,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uDAAuD,CAAA;AAE1F;;;;;;GAMG;AACH,eAAO,MAAM,UAAU,GAAI,QAAQ,aAAa,CAAC,YAAY,CAAC,kBAa7D,CAAA"}
1
+ {"version":3,"file":"get-ref-name.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Schema/helpers/get-ref-name.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAChG,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uDAAuD,CAAA;AAE1F;;;;;;GAMG;AACH,eAAO,MAAM,UAAU,GAAI,QAAQ,aAAa,CAAC,YAAY,CAAC,kBAiB7D,CAAA"}
@@ -1,11 +1,13 @@
1
- import { REGEX as n } from "@scalar/helpers/regex/regex-helpers";
2
- const o = (e) => {
3
- const r = e.$ref;
4
- if (!r)
1
+ import { REGEX as e } from "@scalar/helpers/regex/regex-helpers";
2
+ const u = (r) => {
3
+ if (!("$ref" in r))
5
4
  return null;
6
- const t = r.match(n.REF_NAME);
7
- return t ? t[1] : null;
5
+ const t = r.$ref;
6
+ if (!t)
7
+ return null;
8
+ const n = t.match(e.REF_NAME);
9
+ return n ? n[1] : null;
8
10
  };
9
11
  export {
10
- o as getRefName
12
+ u as getRefName
11
13
  };
@@ -72,7 +72,7 @@ const l = (e, f) => {
72
72
  continue;
73
73
  }
74
74
  if (!e[r]) {
75
- i.allOf ? e[r] = l(i) : "type" in i && i.type === "array" && p(i.items)?.allOf ? e[r] = {
75
+ i.allOf ? e[r] = l(i) : O(i) && p(i.items)?.allOf ? e[r] = {
76
76
  ...i,
77
77
  items: l(p(i.items))
78
78
  } : e[r] = f[r];
@@ -1 +1 @@
1
- {"version":3,"file":"schema-name.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Schema/helpers/schema-name.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAChG,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uDAAuD,CAAA;AAI1F;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,GAAI,aAAa,YAAY,GAAG,aAAa,CAAC,YAAY,CAAC,KAAG,MAAM,GAAG,IAyBzG,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,mBAAmB,GAAI,MAAM,OAAO,CAAC,YAAY,EAAE;IAAE,IAAI,EAAE,GAAG,CAAA;CAAE,CAAC,CAAC,MAAM,CAAC,EAAE,WAAW,MAAM,KAAG,MACrD,CAAA;AAEvD;;;GAGG;AACH,eAAO,MAAM,YAAY,GAAI,OAAO,YAAY,EAAE,wBAAsB,KAAG,MAAM,GAAG,IA+CnF,CAAA"}
1
+ {"version":3,"file":"schema-name.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Schema/helpers/schema-name.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAChG,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uDAAuD,CAAA;AAK1F;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,GAAI,aAAa,YAAY,GAAG,aAAa,CAAC,YAAY,CAAC,KAAG,MAAM,GAAG,IAyBzG,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,mBAAmB,GAAI,MAAM,OAAO,CAAC,YAAY,EAAE;IAAE,IAAI,EAAE,GAAG,CAAA;CAAE,CAAC,CAAC,MAAM,CAAC,EAAE,WAAW,MAAM,KAAG,MACrD,CAAA;AAEvD;;;GAGG;AACH,eAAO,MAAM,YAAY,GAAI,OAAO,YAAY,EAAE,wBAAsB,KAAG,MAAM,GAAG,IA+CnF,CAAA"}
@@ -1,32 +1,33 @@
1
- import { getResolvedRef as s } from "@scalar/workspace-store/helpers/get-resolved-ref";
2
- import { getRefName as y } from "./get-ref-name.js";
3
- const f = (t) => {
1
+ import { getResolvedRef as y } from "@scalar/workspace-store/helpers/get-resolved-ref";
2
+ import { isArraySchema as a } from "@scalar/workspace-store/schemas/v3.1/strict/type-guards";
3
+ import { getRefName as p } from "./get-ref-name.js";
4
+ const s = (t) => {
4
5
  if (!t)
5
6
  return null;
6
7
  if ("$ref" in t) {
7
- const e = y(t);
8
+ const e = p(t);
8
9
  if (e)
9
10
  return e;
10
11
  }
11
- const r = s(t);
12
+ const r = y(t);
12
13
  return r.title ? r.title : r.name ? r.name : null;
13
- }, o = (t, r) => `${t} ${r}${t === "array" ? "[]" : ""}`, u = (t, r = !1) => {
14
+ }, o = (t, r) => `${t} ${r}${t === "array" ? "[]" : ""}`, N = (t, r = !1) => {
14
15
  if (!("type" in t) || r)
15
16
  return null;
16
- const e = t.type, i = f(t);
17
+ const e = t.type, i = s(t);
17
18
  if (i && t.title)
18
19
  return e === "array" ? `array ${i}[]` : i;
19
- if (e === "array" && t.items) {
20
- const n = s(t.items), a = n.title;
21
- if (a)
22
- return o(e, a);
23
- const m = f(t.items);
20
+ if (a(t) && t.items) {
21
+ const n = y(t.items), f = n.title;
22
+ if (f)
23
+ return o(e, f);
24
+ const m = s(t.items);
24
25
  return m && "type" in n && m !== n.type ? o(e, m) : "type" in n ? o(e, Array.isArray(n.type) ? n.type.join(" | ") : n.type) : o(e, "object");
25
26
  }
26
27
  return i && i !== e ? i.startsWith("Array of ") ? `array ${i.slice(9)}[]` : i : null;
27
28
  };
28
29
  export {
29
30
  o as formatTypeWithModel,
30
- u as getModelName,
31
- f as getModelNameFromSchema
31
+ N as getModelName,
32
+ s as getModelNameFromSchema
32
33
  };
@@ -1,4 +1,4 @@
1
- import type { TraversedTag } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
1
+ import type { TraversedTag } from '@scalar/workspace-store/schemas/navigation';
2
2
  type __VLS_Props = {
3
3
  tag: TraversedTag;
4
4
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ClassicLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tags/ClassicLayout.vue"],"names":[],"mappings":"AAkDA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAShG,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,YAAY,CAAA;CAClB,CAAC;AAqFF,QAAA,IAAI,QAAQ,IAAY,CAAE;AAC1B,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAwBhD,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":"ClassicLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tags/ClassicLayout.vue"],"names":[],"mappings":"AAkDA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4CAA4C,CAAA;AAS9E,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,YAAY,CAAA;CAClB,CAAC;AAqFF,QAAA,IAAI,QAAQ,IAAY,CAAE;AAC1B,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAwBhD,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 "./ClassicLayout.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-2414d1d0"]]);
4
+ const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-f4dae8d7"]]);
5
5
  export {
6
- m as default
6
+ f as default
7
7
  };
@@ -1,7 +1,9 @@
1
- import type { TraversedTag } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
1
+ import type { TraversedTag } from '@scalar/workspace-store/schemas/navigation';
2
2
  type __VLS_Props = {
3
3
  tag: TraversedTag;
4
4
  moreThanOneTag: boolean;
5
+ isLoading: boolean;
6
+ onShowMore: ((id: string) => void) | undefined;
5
7
  };
6
8
  declare var __VLS_21: {};
7
9
  type __VLS_Slots = {} & {
@@ -1 +1 @@
1
- {"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tags/ModernLayout.vue"],"names":[],"mappings":"AAiFA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAWhG,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,YAAY,CAAA;IACjB,cAAc,EAAE,OAAO,CAAA;CACxB,CAAC;AAoHF,QAAA,IAAuB,QAAQ,IAAY,CAAE;AAC7C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAgChD,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":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tags/ModernLayout.vue"],"names":[],"mappings":"AAqFA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4CAA4C,CAAA;AAW9E,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,YAAY,CAAA;IACjB,cAAc,EAAE,OAAO,CAAA;IACvB,SAAS,EAAE,OAAO,CAAA;IAClB,UAAU,EAAE,CAAC,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC,GAAG,SAAS,CAAA;CAC/C,CAAC;AAwHF,QAAA,IAAuB,QAAQ,IAAY,CAAE;AAC7C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAgChD,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 "./ModernLayout.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-5edb9c26"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-b59e6a08"]]);
5
5
  export {
6
6
  m as default
7
7
  };
@@ -1,59 +1,63 @@
1
- import { defineComponent as h, ref as f, useId as y, computed as C, createBlock as i, openBlock as a, unref as t, withCtx as m, createVNode as T, createElementBlock as k, createCommentVNode as l, renderSlot as b, nextTick as S } from "vue";
2
- import B from "../../ShowMoreButton.vue.js";
3
- import { useNavState as v } from "../../../hooks/useNavState.js";
4
- import I from "./TagSection.vue.js";
5
- import { useSidebar as O } from "../../../v2/blocks/scalar-sidebar-block/hooks/useSidebar.js";
6
- import $ from "../../Section/SectionContainer.vue.js";
7
- import w from "../../Lazy/Lazy.vue2.js";
8
- const E = /* @__PURE__ */ h({
1
+ import { defineComponent as p, ref as u, useId as y, computed as S, createBlock as i, openBlock as a, unref as o, withCtx as f, createVNode as C, createElementBlock as T, createCommentVNode as s, renderSlot as k, nextTick as b } from "vue";
2
+ import w from "../../ShowMoreButton.vue.js";
3
+ import { useNavState as B } from "../../../hooks/useNavState.js";
4
+ import L from "./TagSection.vue.js";
5
+ import { useSidebar as M } from "../../../v2/blocks/scalar-sidebar-block/hooks/useSidebar.js";
6
+ import v from "../../Section/SectionContainer.vue.js";
7
+ import I from "../../Lazy/Lazy.vue2.js";
8
+ const E = /* @__PURE__ */ p({
9
9
  __name: "ModernLayout",
10
10
  props: {
11
11
  tag: {},
12
- moreThanOneTag: { type: Boolean }
12
+ moreThanOneTag: { type: Boolean },
13
+ isLoading: { type: Boolean },
14
+ onShowMore: { type: Function }
13
15
  },
14
- setup(o) {
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?.description !== ""
16
+ setup(t) {
17
+ const m = u(), l = u(), d = y(), { collapsedSidebarItems: c } = M(), { hash: n } = B(), g = S(
18
+ () => t.moreThanOneTag || t.tag?.title !== "default" || t.tag?.description !== ""
17
19
  );
18
- async function p() {
19
- await S(), s.value?.querySelector("button")?.focus();
20
+ async function h() {
21
+ await b(), l.value?.querySelector("button")?.focus();
20
22
  }
21
23
  const r = (e) => !c[e];
22
- return (e, R) => (a(), i(t($), {
24
+ return (e, O) => (a(), i(o(v), {
23
25
  ref_key: "sectionContainerRef",
24
- ref: u,
25
- "aria-labelledby": t(d),
26
+ ref: m,
27
+ "aria-labelledby": o(d),
26
28
  class: "tag-section-container",
27
29
  role: "region"
28
30
  }, {
29
- default: m(() => [
30
- T(t(w), {
31
+ default: f(() => [
32
+ C(o(I), {
31
33
  id: `modern-tag-${e.tag.id}`,
32
- isLazy: !!t(n) && t(n) !== e.tag.id && t(n).startsWith(e.tag.id)
34
+ isLazy: !!o(n) && o(n) !== e.tag.id && o(n).startsWith(e.tag.id)
33
35
  }, {
34
- default: m(() => [
35
- g.value ? (a(), i(I, {
36
+ default: f(() => [
37
+ g.value ? (a(), i(L, {
36
38
  key: 0,
37
- headerId: t(d),
39
+ headerId: o(d),
38
40
  isCollapsed: r(e.tag.id),
41
+ isLoading: e.isLoading,
39
42
  tag: e.tag
40
- }, null, 8, ["headerId", "isCollapsed", "tag"])) : l("", !0),
41
- r(e.tag.id) && e.moreThanOneTag ? (a(), i(B, {
43
+ }, null, 8, ["headerId", "isCollapsed", "isLoading", "tag"])) : s("", !0),
44
+ r(e.tag.id) && e.moreThanOneTag ? (a(), i(w, {
42
45
  key: 1,
43
46
  id: e.tag.id,
44
47
  "aria-label": `Show all ${e.tag.title} endpoints`,
45
- onClick: p
46
- }, null, 8, ["id", "aria-label"])) : l("", !0)
48
+ onShowMore: e.onShowMore,
49
+ onClick: h
50
+ }, null, 8, ["id", "aria-label", "onShowMore"])) : s("", !0)
47
51
  ]),
48
52
  _: 1
49
53
  }, 8, ["id", "isLazy"]),
50
- r(e.tag.id) && e.moreThanOneTag ? l("", !0) : (a(), k("div", {
54
+ r(e.tag.id) && e.moreThanOneTag ? s("", !0) : (a(), T("div", {
51
55
  key: 0,
52
56
  ref_key: "contentsRef",
53
- ref: s,
57
+ ref: l,
54
58
  class: "contents"
55
59
  }, [
56
- b(e.$slots, "default", {}, void 0, !0)
60
+ k(e.$slots, "default", {}, void 0, !0)
57
61
  ], 512))
58
62
  ]),
59
63
  _: 3
@@ -1,8 +1,10 @@
1
- import type { TraversedTag } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
1
+ import type { TraversedTag } from '@scalar/workspace-store/schemas/navigation';
2
2
  type __VLS_Props = {
3
3
  tag: TraversedTag;
4
4
  layout: 'classic' | 'modern';
5
5
  moreThanOneTag: boolean;
6
+ isLoading: boolean;
7
+ onShowMore: ((id: string) => void) | undefined;
6
8
  };
7
9
  declare var __VLS_5: {}, __VLS_11: {};
8
10
  type __VLS_Slots = {} & {
@@ -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,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
+ {"version":3,"file":"Tag.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tags/Tag.vue"],"names":[],"mappings":"AA6BA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4CAA4C,CAAA;AAK9E,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,YAAY,CAAA;IACjB,MAAM,EAAE,SAAS,GAAG,QAAQ,CAAA;IAC5B,cAAc,EAAE,OAAO,CAAA;IACvB,SAAS,EAAE,OAAO,CAAA;IAClB,UAAU,EAAE,CAAC,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC,GAAG,SAAS,CAAA;CAC/C,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"}