@scalar/api-reference 1.36.2 → 1.38.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 (242) hide show
  1. package/CHANGELOG.md +83 -0
  2. package/dist/browser/standalone.js +28796 -26431
  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/GettingStarted.vue.d.ts.map +1 -1
  55. package/dist/components/GettingStarted.vue.js +2 -2
  56. package/dist/components/GettingStarted.vue2.js +22 -22
  57. package/dist/components/OperationsList/OperationsList.vue.d.ts +1 -1
  58. package/dist/components/OperationsList/OperationsList.vue.d.ts.map +1 -1
  59. package/dist/components/OperationsList/OperationsList.vue.js +2 -2
  60. package/dist/components/OperationsList/OperationsListItem.vue.d.ts +1 -1
  61. package/dist/components/OperationsList/OperationsListItem.vue.d.ts.map +1 -1
  62. package/dist/components/OperationsList/OperationsListItem.vue.js +2 -2
  63. package/dist/components/ShowMoreButton.vue.d.ts +1 -0
  64. package/dist/components/ShowMoreButton.vue.d.ts.map +1 -1
  65. package/dist/components/ShowMoreButton.vue.js +2 -2
  66. package/dist/components/ShowMoreButton.vue2.js +12 -12
  67. package/dist/esm.d.ts +2 -2
  68. package/dist/esm.d.ts.map +1 -1
  69. package/dist/features/Operation/Operation.vue.d.ts +21 -9
  70. package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
  71. package/dist/features/Operation/Operation.vue.js +42 -53
  72. package/dist/features/Operation/components/Header.vue.d.ts +2 -2
  73. package/dist/features/Operation/components/Header.vue.d.ts.map +1 -1
  74. package/dist/features/Operation/components/Header.vue.js +9 -8
  75. package/dist/features/Operation/components/Headers.vue.d.ts +2 -2
  76. package/dist/features/Operation/components/Headers.vue.d.ts.map +1 -1
  77. package/dist/features/Operation/components/Headers.vue.js +2 -2
  78. package/dist/features/Operation/components/Headers.vue2.js +31 -29
  79. package/dist/features/Operation/components/OperationParameters.vue.d.ts +4 -0
  80. package/dist/features/Operation/components/OperationParameters.vue.d.ts.map +1 -1
  81. package/dist/features/Operation/components/OperationParameters.vue.js +37 -31
  82. package/dist/features/Operation/components/OperationResponses.vue.d.ts +5 -1
  83. package/dist/features/Operation/components/OperationResponses.vue.d.ts.map +1 -1
  84. package/dist/features/Operation/components/OperationResponses.vue.js +16 -17
  85. package/dist/features/Operation/components/ParameterList.vue.d.ts +6 -2
  86. package/dist/features/Operation/components/ParameterList.vue.d.ts.map +1 -1
  87. package/dist/features/Operation/components/ParameterList.vue.js +17 -19
  88. package/dist/features/Operation/components/ParameterListItem.vue.d.ts +6 -2
  89. package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
  90. package/dist/features/Operation/components/ParameterListItem.vue.js +3 -3
  91. package/dist/features/Operation/components/ParameterListItem.vue2.js +64 -65
  92. package/dist/features/Operation/components/RequestBody.vue.d.ts +4 -0
  93. package/dist/features/Operation/components/RequestBody.vue.d.ts.map +1 -1
  94. package/dist/features/Operation/components/RequestBody.vue.js +2 -2
  95. package/dist/features/Operation/components/RequestBody.vue2.js +65 -65
  96. package/dist/features/Operation/components/callbacks/Callback.vue.d.ts +4 -0
  97. package/dist/features/Operation/components/callbacks/Callback.vue.d.ts.map +1 -1
  98. package/dist/features/Operation/components/callbacks/Callback.vue.js +3 -3
  99. package/dist/features/Operation/components/callbacks/Callback.vue2.js +29 -22
  100. package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts +6 -0
  101. package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts.map +1 -1
  102. package/dist/features/Operation/components/callbacks/Callbacks.vue.js +18 -16
  103. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +11 -5
  104. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
  105. package/dist/features/Operation/layouts/ClassicLayout.vue.js +2 -2
  106. package/dist/features/Operation/layouts/ClassicLayout.vue2.js +99 -90
  107. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +12 -5
  108. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
  109. package/dist/features/Operation/layouts/ModernLayout.vue.js +2 -2
  110. package/dist/features/Operation/layouts/ModernLayout.vue2.js +99 -87
  111. package/dist/features/Search/helpers/create-search-index.d.ts +2 -1
  112. package/dist/features/Search/helpers/create-search-index.d.ts.map +1 -1
  113. package/dist/features/Search/types.d.ts +1 -1
  114. package/dist/features/Search/types.d.ts.map +1 -1
  115. package/dist/features/api-client-modal/ApiClientModal.vue.d.ts.map +1 -1
  116. package/dist/features/api-client-modal/ApiClientModal.vue.js +23 -26
  117. package/dist/features/api-client-modal/useApiClient.d.ts +3039 -2895
  118. package/dist/features/api-client-modal/useApiClient.d.ts.map +1 -1
  119. package/dist/features/document-source/hooks/useDocumentFetcher.d.ts +2 -2
  120. package/dist/features/document-source/hooks/useDocumentFetcher.d.ts.map +1 -1
  121. package/dist/features/document-source/hooks/useDocumentFetcher.js +13 -11
  122. package/dist/features/document-source/hooks/useDocumentSource.d.ts +2 -2
  123. package/dist/features/document-source/hooks/useDocumentSource.d.ts.map +1 -1
  124. package/dist/features/document-source/hooks/useDocumentSource.js +38 -34
  125. package/dist/features/example-responses/ExampleResponse.vue.d.ts.map +1 -1
  126. package/dist/features/example-responses/ExampleResponse.vue.js +3 -3
  127. package/dist/features/example-responses/ExampleResponse.vue2.js +26 -18
  128. package/dist/features/example-responses/ExampleResponses.vue.d.ts.map +1 -1
  129. package/dist/features/example-responses/ExampleResponses.vue.js +2 -2
  130. package/dist/features/example-responses/ExampleResponses.vue2.js +53 -53
  131. package/dist/features/multiple-documents/DocumentSelector.vue.d.ts +2 -2
  132. package/dist/features/multiple-documents/DocumentSelector.vue.d.ts.map +1 -1
  133. package/dist/features/multiple-documents/useMultipleDocuments.d.ts +10 -7
  134. package/dist/features/multiple-documents/useMultipleDocuments.d.ts.map +1 -1
  135. package/dist/features/multiple-documents/useMultipleDocuments.js +47 -44
  136. package/dist/features/test-request-button/TestRequestButton.vue.d.ts.map +1 -1
  137. package/dist/features/test-request-button/TestRequestButton.vue.js +2 -2
  138. package/dist/features/test-request-button/TestRequestButton.vue2.js +15 -21
  139. package/dist/features/toolbar/ApiReferenceToolbar.vue.js +18 -18
  140. package/dist/features/toolbar/ApiReferenceToolbarConfig.vue.js +1 -1
  141. package/dist/features/toolbar/ApiReferenceToolbarConfigTheme.vue.d.ts +2 -2
  142. package/dist/features/toolbar/ApiReferenceToolbarPopover.vue.js +1 -1
  143. package/dist/features/toolbar/ApiReferenceToolbarSdks.vue.js +1 -1
  144. package/dist/features/toolbar/ApiReferenceToolbarShare.vue.js +8 -8
  145. package/dist/features/toolbar/ApiReferenceToolbarShareRegister.vue.d.ts.map +1 -1
  146. package/dist/features/toolbar/ApiReferenceToolbarShareRegister.vue.js +34 -28
  147. package/dist/features/toolbar/ApiReferenceToolbarTitle.vue.js +27 -27
  148. package/dist/helpers/test-utils.d.ts +3 -365
  149. package/dist/helpers/test-utils.d.ts.map +1 -1
  150. package/dist/hooks/useNavState.d.ts +4 -2
  151. package/dist/hooks/useNavState.d.ts.map +1 -1
  152. package/dist/hooks/useNavState.js +31 -27
  153. package/dist/index.d.ts +1 -0
  154. package/dist/index.d.ts.map +1 -1
  155. package/dist/index.js +21 -19
  156. package/dist/standalone/lib/html-api.d.ts +3 -3
  157. package/dist/standalone/lib/html-api.d.ts.map +1 -1
  158. package/dist/standalone/lib/register-globals.d.ts.map +1 -1
  159. package/dist/style.css +1 -1
  160. package/dist/types.d.ts +2 -2
  161. package/dist/types.d.ts.map +1 -1
  162. package/dist/v2/ApiReferenceWorkspace.vue.d.ts.map +1 -1
  163. package/dist/v2/ApiReferenceWorkspace.vue.js +46 -40
  164. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts.map +1 -1
  165. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js +1 -1
  166. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue2.js +18 -19
  167. package/dist/v2/blocks/scalar-client-selector-block/components/ClientDropdown.vue.d.ts +1 -1
  168. package/dist/v2/blocks/scalar-client-selector-block/components/ClientDropdown.vue.d.ts.map +1 -1
  169. package/dist/v2/blocks/scalar-client-selector-block/components/ClientDropdown.vue.js +2 -2
  170. package/dist/v2/blocks/scalar-client-selector-block/components/ClientDropdown.vue2.js +11 -11
  171. package/dist/v2/blocks/scalar-client-selector-block/components/ClientSelector.vue.d.ts +2 -2
  172. package/dist/v2/blocks/scalar-client-selector-block/components/ClientSelector.vue.d.ts.map +1 -1
  173. package/dist/v2/blocks/scalar-client-selector-block/components/ClientSelector.vue.js +2 -2
  174. package/dist/v2/blocks/scalar-client-selector-block/components/ClientSelector.vue2.js +10 -10
  175. package/dist/v2/blocks/scalar-client-selector-block/helpers/featured-clients.d.ts +1 -1
  176. package/dist/v2/blocks/scalar-client-selector-block/helpers/featured-clients.d.ts.map +1 -1
  177. package/dist/v2/blocks/scalar-info-block/components/DownloadLink.vue.d.ts +3 -0
  178. package/dist/v2/blocks/scalar-info-block/components/DownloadLink.vue.d.ts.map +1 -1
  179. package/dist/v2/blocks/scalar-info-block/components/DownloadLink.vue.js +2 -2
  180. package/dist/v2/blocks/scalar-info-block/components/DownloadLink.vue2.js +32 -31
  181. package/dist/v2/blocks/scalar-info-block/components/InfoBlock.vue.d.ts +15 -8
  182. package/dist/v2/blocks/scalar-info-block/components/InfoBlock.vue.d.ts.map +1 -1
  183. package/dist/v2/blocks/scalar-info-block/components/InfoBlock.vue.js +25 -20
  184. package/dist/v2/blocks/scalar-info-block/components/IntroductionLayout.vue.d.ts +8 -7
  185. package/dist/v2/blocks/scalar-info-block/components/IntroductionLayout.vue.d.ts.map +1 -1
  186. package/dist/v2/blocks/scalar-info-block/components/IntroductionLayout.vue.js +2 -2
  187. package/dist/v2/blocks/scalar-info-block/components/IntroductionLayout.vue2.js +27 -32
  188. package/dist/v2/blocks/scalar-server-selector-block/components/Selector.vue.d.ts +2 -22
  189. package/dist/v2/blocks/scalar-server-selector-block/components/Selector.vue.d.ts.map +1 -1
  190. package/dist/v2/blocks/scalar-sidebar-block/components/SidebarBlock.vue.d.ts +8 -0
  191. package/dist/v2/blocks/scalar-sidebar-block/components/SidebarBlock.vue.d.ts.map +1 -1
  192. package/dist/v2/blocks/scalar-sidebar-block/components/SidebarBlock.vue.js +2 -2
  193. package/dist/v2/blocks/scalar-sidebar-block/components/SidebarBlock.vue2.js +70 -65
  194. package/dist/v2/blocks/scalar-sidebar-block/components/SidebarElement.vue.d.ts +9 -1
  195. package/dist/v2/blocks/scalar-sidebar-block/components/SidebarElement.vue.d.ts.map +1 -1
  196. package/dist/v2/blocks/scalar-sidebar-block/components/SidebarElement.vue.js +2 -2
  197. package/dist/v2/blocks/scalar-sidebar-block/components/SidebarElement.vue2.js +60 -57
  198. package/dist/v2/blocks/scalar-sidebar-block/helpers/create-sidebar.d.ts +3 -365
  199. package/dist/v2/blocks/scalar-sidebar-block/helpers/create-sidebar.d.ts.map +1 -1
  200. package/dist/v2/blocks/scalar-sidebar-block/helpers/generate-reverse-index.d.ts +3 -183
  201. package/dist/v2/blocks/scalar-sidebar-block/helpers/generate-reverse-index.d.ts.map +1 -1
  202. package/dist/v2/helpers/map-configuration.d.ts +24 -24
  203. package/dist/v2/helpers/map-configuration.d.ts.map +1 -1
  204. package/package.json +20 -17
  205. package/dist/components/Content/Operations/TraversedEntryContainer.vue.d.ts +0 -13
  206. package/dist/components/Content/Operations/TraversedEntryContainer.vue.d.ts.map +0 -1
  207. package/dist/components/Content/Operations/TraversedEntryContainer.vue.js +0 -52
  208. package/dist/components/Content/Operations/TraversedEntryContainer.vue2.js +0 -4
  209. package/dist/components/Content/Operations/index.d.ts +0 -2
  210. package/dist/components/Content/Operations/index.d.ts.map +0 -1
  211. package/dist/hooks/useConfig.d.ts +0 -9
  212. package/dist/hooks/useConfig.d.ts.map +0 -1
  213. package/dist/hooks/useConfig.js +0 -10
  214. package/dist/legacy/stores/index.d.ts +0 -2
  215. package/dist/legacy/stores/index.d.ts.map +0 -1
  216. package/dist/legacy/stores/useExampleStore.d.ts +0 -5
  217. package/dist/legacy/stores/useExampleStore.d.ts.map +0 -1
  218. package/dist/legacy/stores/useExampleStore.js +0 -8
  219. package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.d.ts +0 -14
  220. package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.d.ts.map +0 -1
  221. package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.js +0 -4
  222. package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue2.js +0 -55
  223. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.d.ts +0 -79
  224. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.d.ts.map +0 -1
  225. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.js +0 -7
  226. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue2.js +0 -236
  227. package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.d.ts +0 -41
  228. package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.d.ts.map +0 -1
  229. package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.js +0 -22
  230. package/dist/v2/blocks/scalar-request-example-block/helpers/generate-client-options.d.ts +0 -20
  231. package/dist/v2/blocks/scalar-request-example-block/helpers/generate-client-options.d.ts.map +0 -1
  232. package/dist/v2/blocks/scalar-request-example-block/helpers/generate-client-options.js +0 -33
  233. package/dist/v2/blocks/scalar-request-example-block/helpers/generate-code-snippet.d.ts +0 -17
  234. package/dist/v2/blocks/scalar-request-example-block/helpers/generate-code-snippet.d.ts.map +0 -1
  235. package/dist/v2/blocks/scalar-request-example-block/helpers/generate-code-snippet.js +0 -26
  236. package/dist/v2/blocks/scalar-request-example-block/helpers/get-secrets.d.ts +0 -4
  237. package/dist/v2/blocks/scalar-request-example-block/helpers/get-secrets.d.ts.map +0 -1
  238. package/dist/v2/blocks/scalar-request-example-block/helpers/get-secrets.js +0 -10
  239. package/dist/v2/blocks/scalar-request-example-block/index.d.ts +0 -3
  240. package/dist/v2/blocks/scalar-request-example-block/index.d.ts.map +0 -1
  241. package/dist/v2/blocks/scalar-request-example-block/types.d.ts +0 -29
  242. package/dist/v2/blocks/scalar-request-example-block/types.d.ts.map +0 -1
@@ -1,84 +1,73 @@
1
- import { defineComponent as u, computed as r, createElementBlock as h, createCommentVNode as p, openBlock as s, Fragment as d, createBlock as m } from "vue";
2
- import { useWorkspace as v } from "@scalar/api-client/store";
3
- import { filterSecurityRequirements as f } from "@scalar/api-client/views/Request/RequestSection";
1
+ import { defineComponent as c, computed as o, createElementBlock as l, createCommentVNode as p, openBlock as s, Fragment as h, createBlock as n } from "vue";
2
+ import { useWorkspace as d } from "@scalar/api-client/store";
3
+ import { filterSecurityRequirements as v } from "@scalar/api-client/views/Request/RequestSection";
4
4
  import { getResolvedRef as y } from "@scalar/workspace-store/helpers/get-resolved-ref";
5
- import { combineParams as k } from "./helpers/combine-params.js";
5
+ import { combineParams as f } from "./helpers/combine-params.js";
6
6
  import { convertSecurityScheme as S } from "../../helpers/convert-security-scheme.js";
7
- import { getFirstServer as g } from "./helpers/get-first-server.js";
8
- import b from "./layouts/ClassicLayout.vue.js";
9
- import W from "./layouts/ModernLayout.vue.js";
10
- const I = /* @__PURE__ */ u({
7
+ import { getFirstServer as k } from "./helpers/get-first-server.js";
8
+ import V from "./layouts/ClassicLayout.vue.js";
9
+ import g from "./layouts/ModernLayout.vue.js";
10
+ const N = /* @__PURE__ */ c({
11
11
  __name: "Operation",
12
12
  props: {
13
- path: {},
14
- method: {},
15
- clientOptions: {},
16
- config: {},
17
- document: {},
18
- isWebhook: { type: Boolean },
19
13
  id: {},
14
+ method: {},
15
+ path: {},
16
+ pathValue: {},
20
17
  server: {},
18
+ security: {},
21
19
  store: {},
22
- collection: {}
20
+ collection: {},
21
+ options: {}
23
22
  },
24
- setup(o) {
25
- const i = r(() => {
26
- const e = o.isWebhook ? "webhooks" : "paths";
27
- return o.document[e]?.[o.path];
28
- }), t = r(() => {
29
- const e = y(i.value?.[o.method]);
23
+ setup(t) {
24
+ const r = o(() => {
25
+ const e = y(t.pathValue?.[t.method]);
30
26
  if (!e)
31
27
  return null;
32
- const a = k(
33
- i.value?.parameters,
34
- e.parameters
35
- );
36
- return { ...e, parameters: a };
37
- }), { securitySchemes: l } = v(), n = r(
38
- () => f(
39
- t.value?.security || o.document.security || [],
40
- o.collection.selectedSecuritySchemeUids,
41
- l
28
+ const m = f(t.pathValue?.parameters, e.parameters);
29
+ return { ...e, parameters: m };
30
+ }), { securitySchemes: u } = d(), i = o(
31
+ () => v(
32
+ r.value?.security || t.security || [],
33
+ t.collection.selectedSecuritySchemeUids,
34
+ u
42
35
  ).map(S)
43
- ), c = r(
44
- () => g(
36
+ ), a = o(
37
+ () => k(
45
38
  // 1) Operation
46
- t.value?.servers,
39
+ r.value?.servers,
47
40
  // 2) Path Item
48
- i.value?.servers,
41
+ t.pathValue?.servers,
49
42
  // 3) Document
50
- o.server
43
+ t.server
51
44
  )
52
45
  );
53
- return (e, a) => t.value ? (s(), h(d, { key: 0 }, [
54
- e.config.layout === "classic" ? (s(), m(b, {
46
+ return (e, m) => r.value ? (s(), l(h, { key: 0 }, [
47
+ e.options?.layout === "classic" ? (s(), n(V, {
55
48
  key: 0,
56
49
  id: e.id,
57
- clientOptions: e.clientOptions,
58
- config: e.config,
59
- isWebhook: e.isWebhook,
60
50
  method: e.method,
61
- operation: t.value,
51
+ operation: r.value,
52
+ options: e.options,
62
53
  path: e.path,
63
- securitySchemes: n.value,
64
- server: c.value,
54
+ securitySchemes: i.value,
55
+ server: a.value,
65
56
  store: e.store
66
- }, null, 8, ["id", "clientOptions", "config", "isWebhook", "method", "operation", "path", "securitySchemes", "server", "store"])) : (s(), m(W, {
57
+ }, null, 8, ["id", "method", "operation", "options", "path", "securitySchemes", "server", "store"])) : (s(), n(g, {
67
58
  key: 1,
68
59
  id: e.id,
69
- clientOptions: e.clientOptions,
70
- config: e.config,
71
- isWebhook: e.isWebhook,
72
60
  method: e.method,
73
- operation: t.value,
61
+ operation: r.value,
62
+ options: e.options,
74
63
  path: e.path,
75
- securitySchemes: n.value,
76
- server: c.value,
64
+ securitySchemes: i.value,
65
+ server: a.value,
77
66
  store: e.store
78
- }, null, 8, ["id", "clientOptions", "config", "isWebhook", "method", "operation", "path", "securitySchemes", "server", "store"]))
67
+ }, null, 8, ["id", "method", "operation", "options", "path", "securitySchemes", "server", "store"]))
79
68
  ], 64)) : p("", !0);
80
69
  }
81
70
  });
82
71
  export {
83
- I as default
72
+ N as default
84
73
  };
@@ -1,10 +1,10 @@
1
- import type { ApiReferenceConfiguration } from '@scalar/types/api-reference';
2
1
  import type { HeaderObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
3
2
  type __VLS_Props = {
4
3
  header: HeaderObject;
5
4
  name: string;
6
5
  breadcrumb?: string[];
7
- config: ApiReferenceConfiguration;
6
+ orderSchemaPropertiesBy: 'alpha' | 'preserve' | undefined;
7
+ orderRequiredPropertiesFirst: boolean | undefined;
8
8
  };
9
9
  declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
10
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"Header.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/Header.vue"],"names":[],"mappings":"AA4BA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;AAE5E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAIhG,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,YAAY,CAAA;IACpB,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IACrB,MAAM,EAAE,yBAAyB,CAAA;CAClC,CAAC;;AA0DF,wBAMG"}
1
+ {"version":3,"file":"Header.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/Header.vue"],"names":[],"mappings":"AA6BA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAIhG,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,YAAY,CAAA;IACpB,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IACrB,uBAAuB,EAAE,OAAO,GAAG,UAAU,GAAG,SAAS,CAAA;IACzD,4BAA4B,EAAE,OAAO,GAAG,SAAS,CAAA;CAClD,CAAC;;AA0DF,wBAMG"}
@@ -1,25 +1,26 @@
1
- import { defineComponent as r, createBlock as o, createCommentVNode as a, openBlock as m, unref as d } from "vue";
1
+ import { defineComponent as r, createBlock as o, createCommentVNode as a, openBlock as d, unref as m } from "vue";
2
2
  import { getResolvedRef as i } from "@scalar/workspace-store/helpers/get-resolved-ref";
3
- import n from "../../../components/Content/Schema/SchemaProperty.vue.js";
3
+ import s from "../../../components/Content/Schema/SchemaProperty.vue.js";
4
4
  const u = /* @__PURE__ */ r({
5
5
  __name: "Header",
6
6
  props: {
7
7
  header: {},
8
8
  name: {},
9
9
  breadcrumb: {},
10
- config: {}
10
+ orderSchemaPropertiesBy: {},
11
+ orderRequiredPropertiesFirst: { type: Boolean }
11
12
  },
12
- setup(s) {
13
- return (e, p) => "schema" in e.header && e.header.schema ? (m(), o(n, {
13
+ setup(p) {
14
+ return (e, n) => "schema" in e.header && e.header.schema ? (d(), o(s, {
14
15
  key: 0,
15
16
  breadcrumb: e.breadcrumb ? [...e.breadcrumb, "headers"] : void 0,
16
17
  description: e.header.description,
17
18
  name: e.name,
18
19
  options: {
19
- orderRequiredPropertiesFirst: e.config.orderRequiredPropertiesFirst,
20
- orderSchemaPropertiesBy: e.config.orderSchemaPropertiesBy
20
+ orderRequiredPropertiesFirst: e.orderRequiredPropertiesFirst,
21
+ orderSchemaPropertiesBy: e.orderSchemaPropertiesBy
21
22
  },
22
- schema: d(i)(e.header.schema)
23
+ schema: m(i)(e.header.schema)
23
24
  }, null, 8, ["breadcrumb", "description", "name", "options", "schema"])) : a("", !0);
24
25
  }
25
26
  });
@@ -1,9 +1,9 @@
1
- import type { ApiReferenceConfiguration } from '@scalar/types/api-reference';
2
1
  import type { HeaderObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
3
2
  type __VLS_Props = {
4
3
  headers: Record<string, HeaderObject>;
5
4
  breadcrumb?: string[];
6
- config: ApiReferenceConfiguration;
5
+ orderRequiredPropertiesFirst: boolean | undefined;
6
+ orderSchemaPropertiesBy: 'alpha' | 'preserve' | undefined;
7
7
  };
8
8
  declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
9
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"Headers.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/Headers.vue"],"names":[],"mappings":"AAyHA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;AAE5E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAIhG,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAA;IACrC,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IACrB,MAAM,EAAE,yBAAyB,CAAA;CAClC,CAAC;;AAoJF,wBAMG"}
1
+ {"version":3,"file":"Headers.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/Headers.vue"],"names":[],"mappings":"AA2HA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAIhG,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAA;IACrC,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IACrB,4BAA4B,EAAE,OAAO,GAAG,SAAS,CAAA;IACjD,uBAAuB,EAAE,OAAO,GAAG,UAAU,GAAG,SAAS,CAAA;CAC1D,CAAC;;AAsJF,wBAMG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./Headers.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const f = /* @__PURE__ */ r(o, [["__scopeId", "data-v-4bf16777"]]);
4
+ const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-a5e15cd2"]]);
5
5
  export {
6
- f as default
6
+ m as default
7
7
  };
@@ -1,53 +1,55 @@
1
- import { defineComponent as p, createBlock as i, openBlock as e, unref as r, withCtx as o, createElementVNode as m, normalizeClass as c, createVNode as d, createElementBlock as t, Fragment as l, createTextVNode as u, renderList as h } from "vue";
2
- import { Disclosure as b, DisclosureButton as _, DisclosurePanel as g } from "@headlessui/vue";
3
- import { ScalarIcon as v } from "@scalar/components";
4
- import { getResolvedRef as k } from "@scalar/workspace-store/helpers/get-resolved-ref";
5
- import B from "./Header.vue.js";
6
- const z = /* @__PURE__ */ p({
1
+ import { defineComponent as h, createBlock as m, openBlock as r, unref as a, withCtx as o, createElementVNode as n, normalizeClass as d, createVNode as t, createElementBlock as i, Fragment as c, createTextVNode as p, renderList as f } from "vue";
2
+ import { Disclosure as b, DisclosureButton as B, DisclosurePanel as P } from "@headlessui/vue";
3
+ import { ScalarIcon as _ } from "@scalar/components";
4
+ import { getResolvedRef as y } from "@scalar/workspace-store/helpers/get-resolved-ref";
5
+ import v from "./Header.vue.js";
6
+ const C = /* @__PURE__ */ h({
7
7
  __name: "Headers",
8
8
  props: {
9
9
  headers: {},
10
10
  breadcrumb: {},
11
- config: {}
11
+ orderRequiredPropertiesFirst: { type: Boolean },
12
+ orderSchemaPropertiesBy: {}
12
13
  },
13
- setup(H) {
14
- return (a, w) => (e(), i(r(b), null, {
14
+ setup(R) {
15
+ return (e, S) => (r(), m(a(b), null, {
15
16
  default: o(({ open: s }) => [
16
- m("div", {
17
- class: c(["headers-card headers-card--compact", [{ "headers-card--open": s }]])
17
+ n("div", {
18
+ class: d(["headers-card headers-card--compact", [{ "headers-card--open": s }]])
18
19
  }, [
19
- m("div", {
20
- class: c(["headers-properties", { "headers-properties-open": s }])
20
+ n("div", {
21
+ class: d(["headers-properties", { "headers-properties-open": s }])
21
22
  }, [
22
- d(r(_), {
23
+ t(a(B), {
23
24
  class: "headers-card-title headers-card-title--compact",
24
25
  style: {
25
26
  top: "calc(var(--refs-viewport-offset)))"
26
27
  }
27
28
  }, {
28
29
  default: o(() => [
29
- d(r(v), {
30
- class: c(["headers-card-title-icon", { "headers-card-title-icon--open": s }]),
30
+ t(a(_), {
31
+ class: d(["headers-card-title-icon", { "headers-card-title-icon--open": s }]),
31
32
  icon: "Add",
32
33
  size: "sm"
33
34
  }, null, 8, ["class"]),
34
- s ? (e(), t(l, { key: 0 }, [
35
- u(" Hide Headers ")
36
- ], 64)) : (e(), t(l, { key: 1 }, [
37
- u(" Show Headers ")
35
+ s ? (r(), i(c, { key: 0 }, [
36
+ p(" Hide Headers ")
37
+ ], 64)) : (r(), i(c, { key: 1 }, [
38
+ p(" Show Headers ")
38
39
  ], 64))
39
40
  ]),
40
41
  _: 2
41
42
  }, 1024),
42
- d(r(g), null, {
43
+ t(a(P), null, {
43
44
  default: o(() => [
44
- (e(!0), t(l, null, h(a.headers, (f, n) => (e(), i(B, {
45
- key: n,
46
- breadcrumb: a.breadcrumb ? [...a.breadcrumb, "headers"] : void 0,
47
- config: a.config,
48
- header: r(k)(f),
49
- name: n
50
- }, null, 8, ["breadcrumb", "config", "header", "name"]))), 128))
45
+ (r(!0), i(c, null, f(e.headers, (u, l) => (r(), m(v, {
46
+ key: l,
47
+ breadcrumb: e.breadcrumb ? [...e.breadcrumb, "headers"] : void 0,
48
+ header: a(y)(u),
49
+ name: l,
50
+ orderRequiredPropertiesFirst: e.orderRequiredPropertiesFirst,
51
+ orderSchemaPropertiesBy: e.orderSchemaPropertiesBy
52
+ }, null, 8, ["breadcrumb", "header", "name", "orderRequiredPropertiesFirst", "orderSchemaPropertiesBy"]))), 128))
51
53
  ]),
52
54
  _: 1
53
55
  })
@@ -59,5 +61,5 @@ const z = /* @__PURE__ */ p({
59
61
  }
60
62
  });
61
63
  export {
62
- z as default
64
+ C as default
63
65
  };
@@ -3,6 +3,10 @@ type __VLS_Props = {
3
3
  breadcrumb?: string[];
4
4
  parameters?: ParameterObject[];
5
5
  requestBody?: RequestBodyObject | undefined;
6
+ options: {
7
+ orderRequiredPropertiesFirst: boolean | undefined;
8
+ orderSchemaPropertiesBy: 'alpha' | 'preserve' | undefined;
9
+ };
6
10
  };
7
11
  declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
8
12
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"OperationParameters.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/OperationParameters.vue"],"names":[],"mappings":"AAyDA,OAAO,KAAK,EACV,eAAe,EACf,iBAAiB,EAClB,MAAM,8DAA8D,CAAA;AAKrE,KAAK,WAAW,GAAG;IACjB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IACrB,UAAU,CAAC,EAAE,eAAe,EAAE,CAAA;IAC9B,WAAW,CAAC,EAAE,iBAAiB,GAAG,SAAS,CAAA;CAC5C,CAAC;;AAgHF,wBAMG"}
1
+ {"version":3,"file":"OperationParameters.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/OperationParameters.vue"],"names":[],"mappings":"AAkEA,OAAO,KAAK,EACV,eAAe,EACf,iBAAiB,EAClB,MAAM,8DAA8D,CAAA;AAKrE,KAAK,WAAW,GAAG;IACjB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IACrB,UAAU,CAAC,EAAE,eAAe,EAAE,CAAA;IAC9B,WAAW,CAAC,EAAE,iBAAiB,GAAG,SAAS,CAAA;IAC3C,OAAO,EAAE;QACP,4BAA4B,EAAE,OAAO,GAAG,SAAS,CAAA;QACjD,uBAAuB,EAAE,OAAO,GAAG,UAAU,GAAG,SAAS,CAAA;KAC1D,CAAA;CACF,CAAC;;AA0HF,wBAMG"}
@@ -1,62 +1,68 @@
1
- import { defineComponent as s, createElementBlock as i, openBlock as o, Fragment as p, createVNode as b, createBlock as n, createCommentVNode as l, withCtx as a, createTextVNode as m } from "vue";
2
- import d from "./ParameterList.vue.js";
1
+ import { defineComponent as i, createElementBlock as p, openBlock as b, Fragment as u, createVNode as m, createBlock as n, createCommentVNode as l, withCtx as o, createTextVNode as t } from "vue";
2
+ import s from "./ParameterList.vue.js";
3
3
  import y from "./RequestBody.vue.js";
4
- const k = /* @__PURE__ */ s({
4
+ const k = /* @__PURE__ */ i({
5
5
  __name: "OperationParameters",
6
6
  props: {
7
7
  breadcrumb: {},
8
8
  parameters: { default: () => [] },
9
- requestBody: {}
9
+ requestBody: {},
10
+ options: {}
10
11
  },
11
- setup(u) {
12
- const t = (e) => u.parameters?.filter((r) => r.in === e) ?? [];
13
- return (e, r) => (o(), i(p, null, [
14
- b(d, {
12
+ setup(d) {
13
+ const a = (e) => d.parameters?.filter((r) => r.in === e) ?? [];
14
+ return (e, r) => (b(), p(u, null, [
15
+ m(s, {
15
16
  breadcrumb: e.breadcrumb ? [...e.breadcrumb, "path"] : void 0,
16
- parameters: t("path")
17
+ options: e.options,
18
+ parameters: a("path")
17
19
  }, {
18
- title: a(() => r[0] || (r[0] = [
19
- m("Path Parameters")
20
+ title: o(() => r[0] || (r[0] = [
21
+ t("Path Parameters")
20
22
  ])),
21
23
  _: 1
22
- }, 8, ["breadcrumb", "parameters"]),
23
- b(d, {
24
+ }, 8, ["breadcrumb", "options", "parameters"]),
25
+ m(s, {
24
26
  breadcrumb: e.breadcrumb ? [...e.breadcrumb, "query"] : void 0,
25
- parameters: t("query")
27
+ options: e.options,
28
+ parameters: a("query")
26
29
  }, {
27
- title: a(() => r[1] || (r[1] = [
28
- m("Query Parameters")
30
+ title: o(() => r[1] || (r[1] = [
31
+ t("Query Parameters")
29
32
  ])),
30
33
  _: 1
31
- }, 8, ["breadcrumb", "parameters"]),
32
- b(d, {
34
+ }, 8, ["breadcrumb", "options", "parameters"]),
35
+ m(s, {
33
36
  breadcrumb: e.breadcrumb ? [...e.breadcrumb, "headers"] : void 0,
34
- parameters: t("header")
37
+ options: e.options,
38
+ parameters: a("header")
35
39
  }, {
36
- title: a(() => r[2] || (r[2] = [
37
- m("Headers")
40
+ title: o(() => r[2] || (r[2] = [
41
+ t("Headers")
38
42
  ])),
39
43
  _: 1
40
- }, 8, ["breadcrumb", "parameters"]),
41
- b(d, {
44
+ }, 8, ["breadcrumb", "options", "parameters"]),
45
+ m(s, {
42
46
  breadcrumb: e.breadcrumb ? [...e.breadcrumb, "cookies"] : void 0,
43
- parameters: t("cookie")
47
+ options: e.options,
48
+ parameters: a("cookie")
44
49
  }, {
45
- title: a(() => r[3] || (r[3] = [
46
- m("Cookies")
50
+ title: o(() => r[3] || (r[3] = [
51
+ t("Cookies")
47
52
  ])),
48
53
  _: 1
49
- }, 8, ["breadcrumb", "parameters"]),
50
- e.requestBody ? (o(), n(y, {
54
+ }, 8, ["breadcrumb", "options", "parameters"]),
55
+ e.requestBody ? (b(), n(y, {
51
56
  key: 0,
52
57
  breadcrumb: e.breadcrumb ? [...e.breadcrumb, "body"] : void 0,
58
+ options: e.options,
53
59
  requestBody: e.requestBody
54
60
  }, {
55
- title: a(() => r[4] || (r[4] = [
56
- m("Body")
61
+ title: o(() => r[4] || (r[4] = [
62
+ t("Body")
57
63
  ])),
58
64
  _: 1
59
- }, 8, ["breadcrumb", "requestBody"])) : l("", !0)
65
+ }, 8, ["breadcrumb", "options", "requestBody"])) : l("", !0)
60
66
  ], 64));
61
67
  }
62
68
  });
@@ -1,8 +1,12 @@
1
1
  import type { OperationObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
2
2
  type __VLS_Props = {
3
3
  responses: OperationObject['responses'];
4
- collapsableItems?: boolean;
5
4
  breadcrumb?: string[];
5
+ options: {
6
+ collapsableItems?: boolean | undefined;
7
+ orderRequiredPropertiesFirst: boolean | undefined;
8
+ orderSchemaPropertiesBy: 'alpha' | 'preserve' | undefined;
9
+ };
6
10
  };
7
11
  declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
8
12
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"OperationResponses.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/OperationResponses.vue"],"names":[],"mappings":"AAgCA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8DAA8D,CAAA;AAInG,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,eAAe,CAAC,WAAW,CAAC,CAAA;IACvC,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;CACtB,CAAC;;AAyEF,wBAMG"}
1
+ {"version":3,"file":"OperationResponses.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/OperationResponses.vue"],"names":[],"mappings":"AAmCA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8DAA8D,CAAA;AAInG,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,eAAe,CAAC,WAAW,CAAC,CAAA;IACvC,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IACrB,OAAO,EAAE;QACP,gBAAgB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;QACtC,4BAA4B,EAAE,OAAO,GAAG,SAAS,CAAA;QACjD,uBAAuB,EAAE,OAAO,GAAG,UAAU,GAAG,SAAS,CAAA;KAC1D,CAAA;CACF,CAAC;;AAuEF,wBAMG"}
@@ -1,32 +1,31 @@
1
- import { defineComponent as l, createElementBlock as o, createCommentVNode as n, openBlock as t, createElementVNode as a, Fragment as p, renderList as c, createBlock as d, unref as u } from "vue";
2
- import { getResolvedRef as i } from "@scalar/workspace-store/helpers/get-resolved-ref";
1
+ import { defineComponent as a, createElementBlock as s, createCommentVNode as p, openBlock as r, createElementVNode as n, Fragment as i, renderList as l, createBlock as d, unref as c } from "vue";
2
+ import { getResolvedRef as u } from "@scalar/workspace-store/helpers/get-resolved-ref";
3
3
  import b from "./ParameterListItem.vue.js";
4
4
  const f = {
5
5
  key: 0,
6
6
  class: "mt-6"
7
- }, k = { class: "mb-3 list-none p-0 text-sm" }, B = /* @__PURE__ */ l({
7
+ }, k = { class: "mb-3 list-none p-0 text-sm" }, y = /* @__PURE__ */ a({
8
8
  __name: "OperationResponses",
9
9
  props: {
10
10
  responses: {},
11
- collapsableItems: { type: Boolean, default: !0 },
12
- breadcrumb: {}
11
+ breadcrumb: {},
12
+ options: {}
13
13
  },
14
14
  setup(_) {
15
- return (e, s) => Object.keys(e.responses ?? {}).length ? (t(), o("div", f, [
16
- s[0] || (s[0] = a("div", { class: "text-c-1 mt-3 mb-3 leading-[1.45] font-medium" }, "Responses", -1)),
17
- a("ul", k, [
18
- (t(!0), o(p, null, c(e.responses, (m, r) => (t(), d(b, {
19
- key: r,
15
+ return (e, t) => Object.keys(e.responses ?? {}).length ? (r(), s("div", f, [
16
+ t[0] || (t[0] = n("div", { class: "text-c-1 mt-3 mb-3 leading-[1.45] font-medium" }, "Responses", -1)),
17
+ n("ul", k, [
18
+ (r(!0), s(i, null, l(e.responses, (m, o) => (r(), d(b, {
19
+ key: o,
20
20
  breadcrumb: e.breadcrumb,
21
- collapsableItems: e.collapsableItems,
22
- name: r,
23
- parameter: u(i)(m),
24
- withExamples: !1
25
- }, null, 8, ["breadcrumb", "collapsableItems", "name", "parameter"]))), 128))
21
+ name: o,
22
+ options: e.options,
23
+ parameter: c(u)(m)
24
+ }, null, 8, ["breadcrumb", "name", "options", "parameter"]))), 128))
26
25
  ])
27
- ])) : n("", !0);
26
+ ])) : p("", !0);
28
27
  }
29
28
  });
30
29
  export {
31
- B as default
30
+ y as default
32
31
  };
@@ -1,9 +1,13 @@
1
1
  import type { ParameterObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
2
2
  type __VLS_Props = {
3
3
  parameters: ParameterObject[];
4
- collapsableItems?: boolean;
5
- withExamples?: boolean;
6
4
  breadcrumb?: string[];
5
+ options: {
6
+ collapsableItems?: boolean;
7
+ withExamples?: boolean;
8
+ orderRequiredPropertiesFirst: boolean | undefined;
9
+ orderSchemaPropertiesBy: 'alpha' | 'preserve' | undefined;
10
+ };
7
11
  };
8
12
  declare var __VLS_1: {};
9
13
  type __VLS_Slots = {} & {
@@ -1 +1 @@
1
- {"version":3,"file":"ParameterList.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/ParameterList.vue"],"names":[],"mappings":"AAqCA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8DAA8D,CAAA;AAInG,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,eAAe,EAAE,CAAA;IAC7B,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;CACtB,CAAC;AA4DF,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAoB7C,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":"ParameterList.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/ParameterList.vue"],"names":[],"mappings":"AAoCA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8DAA8D,CAAA;AAInG,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,eAAe,EAAE,CAAA;IAC7B,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IACrB,OAAO,EAAE;QACP,gBAAgB,CAAC,EAAE,OAAO,CAAA;QAC1B,YAAY,CAAC,EAAE,OAAO,CAAA;QACtB,4BAA4B,EAAE,OAAO,GAAG,SAAS,CAAA;QACjD,uBAAuB,EAAE,OAAO,GAAG,UAAU,GAAG,SAAS,CAAA;KAC1D,CAAA;CACF,CAAC;AAsDF,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAoB7C,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,34 +1,32 @@
1
- import { defineComponent as m, createElementBlock as r, createCommentVNode as s, openBlock as a, createElementVNode as l, renderSlot as o, Fragment as n, renderList as p, createBlock as c } from "vue";
2
- import d from "./ParameterListItem.vue.js";
3
- const i = {
1
+ import { defineComponent as n, createElementBlock as a, createCommentVNode as m, openBlock as r, createElementVNode as o, renderSlot as s, Fragment as l, renderList as p, createBlock as c } from "vue";
2
+ import i from "./ParameterListItem.vue.js";
3
+ const d = {
4
4
  key: 0,
5
5
  class: "mt-6"
6
- }, u = { class: "text-c-1 mt-3 mb-3 text-lg leading-[1.45] font-medium" }, b = { class: "mb-3 list-none p-0 text-sm" }, k = /* @__PURE__ */ m({
6
+ }, u = { class: "text-c-1 mt-3 mb-3 text-lg leading-[1.45] font-medium" }, b = { class: "mb-3 list-none p-0 text-sm" }, g = /* @__PURE__ */ n({
7
7
  __name: "ParameterList",
8
8
  props: {
9
9
  parameters: {},
10
- collapsableItems: { type: Boolean, default: !1 },
11
- withExamples: { type: Boolean, default: !0 },
12
- breadcrumb: {}
10
+ breadcrumb: {},
11
+ options: {}
13
12
  },
14
- setup(f) {
15
- return (e, h) => e.parameters?.length ? (a(), r("div", i, [
16
- l("div", u, [
17
- o(e.$slots, "title")
13
+ setup(_) {
14
+ return (e, f) => e.parameters?.length ? (r(), a("div", d, [
15
+ o("div", u, [
16
+ s(e.$slots, "title")
18
17
  ]),
19
- l("ul", b, [
20
- (a(!0), r(n, null, p(e.parameters, (t) => (a(), c(d, {
18
+ o("ul", b, [
19
+ (r(!0), a(l, null, p(e.parameters, (t) => (r(), c(i, {
21
20
  key: t.name,
22
21
  breadcrumb: e.breadcrumb,
23
- collapsableItems: e.collapsableItems,
24
22
  name: t.name,
25
- parameter: t,
26
- withExamples: e.withExamples
27
- }, null, 8, ["breadcrumb", "collapsableItems", "name", "parameter", "withExamples"]))), 128))
23
+ options: e.options,
24
+ parameter: t
25
+ }, null, 8, ["breadcrumb", "name", "options", "parameter"]))), 128))
28
26
  ])
29
- ])) : s("", !0);
27
+ ])) : m("", !0);
30
28
  }
31
29
  });
32
30
  export {
33
- k as default
31
+ g as default
34
32
  };
@@ -2,9 +2,13 @@ import type { ParameterObject, ResponseObject } from '@scalar/workspace-store/sc
2
2
  type __VLS_Props = {
3
3
  parameter: ParameterObject | ResponseObject;
4
4
  name: string;
5
- collapsableItems?: boolean;
6
- withExamples?: boolean;
7
5
  breadcrumb?: string[];
6
+ options: {
7
+ collapsableItems?: boolean;
8
+ withExamples?: boolean;
9
+ orderRequiredPropertiesFirst: boolean | undefined;
10
+ orderSchemaPropertiesBy: 'alpha' | 'preserve' | undefined;
11
+ };
8
12
  };
9
13
  declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
14
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"ParameterListItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/ParameterListItem.vue"],"names":[],"mappings":"AA8RA,OAAO,KAAK,EACV,eAAe,EACf,cAAc,EAEf,MAAM,8DAA8D,CAAA;AASrE,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,eAAe,GAAG,cAAc,CAAA;IAC3C,IAAI,EAAE,MAAM,CAAA;IACZ,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;CACtB,CAAC;;AAqTF,wBAMG"}
1
+ {"version":3,"file":"ParameterListItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/ParameterListItem.vue"],"names":[],"mappings":"AAiSA,OAAO,KAAK,EACV,eAAe,EACf,cAAc,EAEf,MAAM,8DAA8D,CAAA;AAQrE,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,eAAe,GAAG,cAAc,CAAA;IAC3C,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IACrB,OAAO,EAAE;QACP,gBAAgB,CAAC,EAAE,OAAO,CAAA;QAC1B,YAAY,CAAC,EAAE,OAAO,CAAA;QACtB,4BAA4B,EAAE,OAAO,GAAG,SAAS,CAAA;QACjD,uBAAuB,EAAE,OAAO,GAAG,UAAU,GAAG,SAAS,CAAA;KAC1D,CAAA;CACF,CAAC;;AAyTF,wBAMG"}
@@ -1,7 +1,7 @@
1
1
  import t from "./ParameterListItem.vue2.js";
2
2
  /* empty css */
3
- import e from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const a = /* @__PURE__ */ e(t, [["__scopeId", "data-v-de860ce9"]]);
3
+ import o from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const e = /* @__PURE__ */ o(t, [["__scopeId", "data-v-88dd0a04"]]);
5
5
  export {
6
- a as default
6
+ e as default
7
7
  };