@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,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
  };
@@ -1,95 +1,94 @@
1
- import { defineComponent as E, computed as o, ref as B, createElementBlock as C, openBlock as n, createVNode as u, createElementVNode as p, unref as r, withCtx as b, createBlock as d, createCommentVNode as h, normalizeClass as y, toDisplayString as P } from "vue";
2
- import { Disclosure as S, DisclosureButton as q, DisclosurePanel as V } from "@headlessui/vue";
3
- import { ScalarMarkdown as D } from "@scalar/components";
4
- import { isDefined as R } from "@scalar/helpers/array/is-defined";
5
- import { ScalarIconCaretRight as I } from "@scalar/icons";
6
- import { getResolvedRef as g } from "@scalar/workspace-store/helpers/get-resolved-ref";
7
- import O from "../../../components/Content/Schema/SchemaProperty.vue.js";
8
- import { useConfig as N } from "../../../hooks/useConfig.js";
9
- import j from "./ContentTypeSelect.vue.js";
10
- import z from "./Headers.vue.js";
11
- const F = { class: "parameter-item group/parameter-item relative" }, W = { class: "parameter-item-name" }, H = { class: "parameter-item-type" }, L = { class: "absolute top-3 right-0 opacity-0 group-focus-within/parameter-item:opacity-100 group-hover/parameter-item:opacity-100" }, Z = /* @__PURE__ */ E({
1
+ import { defineComponent as w, computed as m, ref as B, createElementBlock as E, openBlock as i, createVNode as u, createElementVNode as c, unref as s, withCtx as f, createBlock as d, createCommentVNode as h, normalizeClass as b, toDisplayString as S } from "vue";
2
+ import { Disclosure as q, DisclosureButton as R, DisclosurePanel as C } from "@headlessui/vue";
3
+ import { ScalarMarkdown as V } from "@scalar/components";
4
+ import { isDefined as x } from "@scalar/helpers/array/is-defined";
5
+ import { ScalarIconCaretRight as D } from "@scalar/icons";
6
+ import { getResolvedRef as y } from "@scalar/workspace-store/helpers/get-resolved-ref";
7
+ import F from "../../../components/Content/Schema/SchemaProperty.vue.js";
8
+ import O from "./ContentTypeSelect.vue.js";
9
+ import I from "./Headers.vue.js";
10
+ const N = { class: "parameter-item group/parameter-item relative" }, j = { class: "parameter-item-name" }, z = { class: "parameter-item-type" }, W = { class: "absolute top-3 right-0 opacity-0 group-focus-within/parameter-item:opacity-100 group-hover/parameter-item:opacity-100" }, Q = /* @__PURE__ */ w({
12
11
  __name: "ParameterListItem",
13
12
  props: {
14
13
  parameter: {},
15
14
  name: {},
16
- collapsableItems: { type: Boolean, default: !1 },
17
- withExamples: { type: Boolean, default: !0 },
18
- breadcrumb: {}
15
+ breadcrumb: {},
16
+ options: {}
19
17
  },
20
18
  setup(e) {
21
- const v = N(), s = o(
22
- () => "schema" in e.parameter && e.parameter.schema ? g(e.parameter.schema) : null
23
- ), t = o(
19
+ const l = m(
20
+ () => "schema" in e.parameter && e.parameter.schema ? y(e.parameter.schema) : null
21
+ ), a = m(
24
22
  () => "content" in e.parameter && e.parameter.content ? e.parameter.content : null
25
- ), i = B(Object.keys(t.value || {})[0]), f = o(
23
+ ), n = B(Object.keys(a.value || {})[0]), v = m(
26
24
  () => "headers" in e.parameter && e.parameter.headers ? e.parameter.headers : null
27
- ), k = o(() => {
28
- const a = t.value ? t.value?.[i.value]?.schema : s.value, c = "deprecated" in e.parameter ? e.parameter.deprecated : s.value?.deprecated, m = "examples" in e.parameter ? e.parameter.examples : {}, w = s.value?.examples ?? [], x = [...Object.values({
29
- ...m,
30
- ...t.value?.[i.value]?.examples
31
- }), ...w];
25
+ ), P = m(() => {
26
+ const r = a.value ? a.value?.[n.value]?.schema : l.value, p = "deprecated" in e.parameter ? e.parameter.deprecated : l.value?.deprecated, t = "examples" in e.parameter ? e.parameter.examples : {}, g = l.value?.examples ?? [], k = [...Object.values({
27
+ ...t,
28
+ ...a.value?.[n.value]?.examples
29
+ }), ...g];
32
30
  return {
33
- ...g(a),
34
- deprecated: c,
35
- ..."example" in e.parameter && R(e.parameter.example) && { example: e.parameter.example },
36
- examples: x
31
+ ...y(r),
32
+ deprecated: p,
33
+ ..."example" in e.parameter && x(e.parameter.example) && { example: e.parameter.example },
34
+ examples: k
37
35
  };
38
- }), l = o(
39
- () => !!(e.collapsableItems && (t.value || f.value || s.value))
36
+ }), o = m(
37
+ () => !!(e.options.collapsableItems && (a.value || v.value || l.value))
40
38
  );
41
- return (a, c) => (n(), C("li", F, [
42
- u(r(S), null, {
43
- default: b(({ open: m }) => [
44
- l.value ? (n(), d(r(q), {
39
+ return (r, p) => (i(), E("li", N, [
40
+ u(s(q), null, {
41
+ default: f(({ open: t }) => [
42
+ o.value ? (i(), d(s(R), {
45
43
  key: 0,
46
- class: y(["parameter-item-trigger", { "parameter-item-trigger-open": m }])
44
+ class: b(["parameter-item-trigger", { "parameter-item-trigger-open": t }])
47
45
  }, {
48
- default: b(() => [
49
- p("span", W, [
50
- u(r(I), {
51
- class: y(["parameter-item-icon size-3 transition-transform duration-100", { "rotate-90": m }]),
46
+ default: f(() => [
47
+ c("span", j, [
48
+ u(s(D), {
49
+ class: b(["parameter-item-icon size-3 transition-transform duration-100", { "rotate-90": t }]),
52
50
  weight: "bold"
53
51
  }, null, 8, ["class"]),
54
- p("span", null, P(a.name), 1)
52
+ c("span", null, S(r.name), 1)
55
53
  ]),
56
- p("span", H, [
57
- a.parameter.description ? (n(), d(r(D), {
54
+ c("span", z, [
55
+ r.parameter.description ? (i(), d(s(V), {
58
56
  key: 0,
59
57
  class: "markdown",
60
- value: a.parameter.description
58
+ value: r.parameter.description
61
59
  }, null, 8, ["value"])) : h("", !0)
62
60
  ])
63
61
  ]),
64
62
  _: 2
65
63
  }, 1032, ["class"])) : h("", !0),
66
- u(r(V), {
64
+ u(s(C), {
67
65
  class: "parameter-item-container parameter-item-container-markdown",
68
- static: !l.value
66
+ static: !o.value
69
67
  }, {
70
- default: b(() => [
71
- f.value ? (n(), d(z, {
68
+ default: f(() => [
69
+ v.value ? (i(), d(I, {
72
70
  key: 0,
73
- breadcrumb: a.breadcrumb,
74
- config: r(v),
75
- headers: f.value
76
- }, null, 8, ["breadcrumb", "config", "headers"])) : h("", !0),
77
- u(O, {
71
+ breadcrumb: r.breadcrumb,
72
+ headers: v.value,
73
+ orderRequiredPropertiesFirst: r.options.orderRequiredPropertiesFirst,
74
+ orderSchemaPropertiesBy: r.options.orderSchemaPropertiesBy
75
+ }, null, 8, ["breadcrumb", "headers", "orderRequiredPropertiesFirst", "orderSchemaPropertiesBy"])) : h("", !0),
76
+ u(F, {
78
77
  is: "div",
79
- breadcrumb: a.breadcrumb,
78
+ breadcrumb: r.breadcrumb,
80
79
  compact: "",
81
- description: l.value ? "" : a.parameter.description,
80
+ description: o.value ? "" : r.parameter.description,
82
81
  hideWriteOnly: !0,
83
- name: l.value ? "" : a.name,
82
+ name: o.value ? "" : r.name,
84
83
  noncollapsible: !0,
85
84
  options: {
86
85
  hideWriteOnly: !0,
87
- orderRequiredPropertiesFirst: r(v).orderRequiredPropertiesFirst,
88
- orderSchemaPropertiesBy: r(v).orderSchemaPropertiesBy
86
+ orderRequiredPropertiesFirst: r.options.orderRequiredPropertiesFirst,
87
+ orderSchemaPropertiesBy: r.options.orderSchemaPropertiesBy
89
88
  },
90
- required: "required" in a.parameter && a.parameter.required,
91
- schema: k.value,
92
- withExamples: a.withExamples
89
+ required: "required" in r.parameter && r.parameter.required,
90
+ schema: P.value,
91
+ withExamples: typeof r.options.withExamples == "boolean" ? r.options.withExamples : !0
93
92
  }, null, 8, ["breadcrumb", "description", "name", "options", "required", "schema", "withExamples"])
94
93
  ]),
95
94
  _: 1
@@ -97,18 +96,18 @@ const F = { class: "parameter-item group/parameter-item relative" }, W = { class
97
96
  ]),
98
97
  _: 1
99
98
  }),
100
- p("div", L, [
101
- l.value && t.value ? (n(), d(j, {
99
+ c("div", W, [
100
+ o.value && a.value ? (i(), d(O, {
102
101
  key: 0,
103
- modelValue: i.value,
104
- "onUpdate:modelValue": c[0] || (c[0] = (m) => i.value = m),
102
+ modelValue: n.value,
103
+ "onUpdate:modelValue": p[0] || (p[0] = (t) => n.value = t),
105
104
  class: "parameter-item-content-type",
106
- content: t.value
105
+ content: a.value
107
106
  }, null, 8, ["modelValue", "content"])) : h("", !0)
108
107
  ])
109
108
  ]));
110
109
  }
111
110
  });
112
111
  export {
113
- Z as default
112
+ Q as default
114
113
  };
@@ -2,6 +2,10 @@ import type { RequestBodyObject } from '@scalar/workspace-store/schemas/v3.1/str
2
2
  type __VLS_Props = {
3
3
  breadcrumb?: string[];
4
4
  requestBody?: RequestBodyObject;
5
+ options: {
6
+ orderRequiredPropertiesFirst: boolean | undefined;
7
+ orderSchemaPropertiesBy: 'alpha' | 'preserve' | undefined;
8
+ };
5
9
  };
6
10
  declare var __VLS_1: {};
7
11
  type __VLS_Slots = {} & {
@@ -1 +1 @@
1
- {"version":3,"file":"RequestBody.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/RequestBody.vue"],"names":[],"mappings":"AAqNA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8DAA8D,CAAA;AAarG,KAAK,WAAW,GAAG;IACjB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IACrB,WAAW,CAAC,EAAE,iBAAiB,CAAA;CAChC,CAAC;AAqPF,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;AA0B7C,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":"RequestBody.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/RequestBody.vue"],"names":[],"mappings":"AAsNA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8DAA8D,CAAA;AAYrG,KAAK,WAAW,GAAG;IACjB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IACrB,WAAW,CAAC,EAAE,iBAAiB,CAAA;IAC/B,OAAO,EAAE;QACP,4BAA4B,EAAE,OAAO,GAAG,SAAS,CAAA;QACjD,uBAAuB,EAAE,OAAO,GAAG,UAAU,GAAG,SAAS,CAAA;KAC1D,CAAA;CACF,CAAC;AAmPF,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;AAyB7C,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 "./RequestBody.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-fa09c486"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-04c3170c"]]);
5
5
  export {
6
- f as default
6
+ m as default
7
7
  };