@scalar/api-reference 1.35.5 → 1.35.7

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 (225) hide show
  1. package/CHANGELOG.md +53 -0
  2. package/dist/blocks/helpers/getPointer.d.ts.map +1 -1
  3. package/dist/browser/standalone.js +19316 -19449
  4. package/dist/browser/webpack-stats.json +1 -1
  5. package/dist/components/Anchor/WithBreadcrumb.vue2.js +8 -11
  6. package/dist/components/ApiReference.vue.js +1 -1
  7. package/dist/components/ApiReferenceLayout.vue.js +4 -4
  8. package/dist/components/ApiReferenceLayout.vue2.js +247 -268
  9. package/dist/components/Badge/Badge.vue.js +1 -1
  10. package/dist/components/ClassicHeader.vue.js +1 -1
  11. package/dist/components/Content/Content.vue.js +145 -169
  12. package/dist/components/Content/Content.vue3.js +1 -1
  13. package/dist/components/Content/Models/ClassicLayout.vue.js +1 -1
  14. package/dist/components/Content/Models/ClassicLayout.vue2.js +32 -35
  15. package/dist/components/Content/Models/Models.vue.js +27 -31
  16. package/dist/components/Content/Models/ModernLayout.vue.js +1 -1
  17. package/dist/components/Content/Operations/TraversedEntry.vue.js +32 -35
  18. package/dist/components/Content/Operations/TraversedEntryContainer.vue.js +26 -27
  19. package/dist/components/Content/Operations/get-current-index.js +1 -1
  20. package/dist/components/Content/Schema/Schema.vue.js +1 -1
  21. package/dist/components/Content/Schema/Schema.vue2.js +68 -74
  22. package/dist/components/Content/Schema/SchemaComposition.vue.js +42 -45
  23. package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue.js +1 -1
  24. package/dist/components/Content/Schema/SchemaEnumValues.vue.js +1 -1
  25. package/dist/components/Content/Schema/SchemaEnumValues.vue2.js +45 -50
  26. package/dist/components/Content/Schema/SchemaHeading.vue.js +1 -1
  27. package/dist/components/Content/Schema/SchemaObjectProperties.vue.js +41 -48
  28. package/dist/components/Content/Schema/SchemaProperty.vue.js +1 -1
  29. package/dist/components/Content/Schema/SchemaProperty.vue2.js +142 -157
  30. package/dist/components/Content/Schema/SchemaPropertyDetail.vue.js +1 -1
  31. package/dist/components/Content/Schema/SchemaPropertyExamples.vue.js +1 -1
  32. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +1 -1
  33. package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +160 -164
  34. package/dist/components/Content/Schema/helpers/get-schema-type.js +15 -17
  35. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.js +74 -77
  36. package/dist/components/Content/Schema/helpers/optimize-value-for-display.js +10 -11
  37. package/dist/components/Content/Tags/ClassicLayout.vue.js +1 -1
  38. package/dist/components/Content/Tags/ClassicLayout.vue2.js +36 -39
  39. package/dist/components/Content/Tags/ModernLayout.vue.js +1 -1
  40. package/dist/components/Content/Tags/ModernLayout.vue2.js +31 -35
  41. package/dist/components/Content/Tags/TagSection.vue.js +86 -92
  42. package/dist/components/GettingStarted.vue.js +1 -1
  43. package/dist/components/Lazy/Lazy.vue.d.ts.map +1 -1
  44. package/dist/components/Lazy/Lazy.vue2.js +2 -2
  45. package/dist/components/LinkList/LinkList.vue.js +1 -1
  46. package/dist/components/LoadingSkeleton.vue.js +1 -1
  47. package/dist/components/MobileHeader.vue.d.ts.map +1 -1
  48. package/dist/components/MobileHeader.vue.js +3 -3
  49. package/dist/components/MobileHeader.vue2.js +13 -12
  50. package/dist/components/OperationPath.vue.js +1 -1
  51. package/dist/components/OperationsList/OperationsList.vue.js +1 -1
  52. package/dist/components/OperationsList/OperationsList.vue2.js +45 -51
  53. package/dist/components/OperationsList/OperationsListItem.vue.js +1 -1
  54. package/dist/components/ScreenReader.vue.js +1 -1
  55. package/dist/components/Section/CompactSection.vue.js +1 -1
  56. package/dist/components/Section/Section.vue.js +1 -1
  57. package/dist/components/Section/Section.vue2.js +13 -14
  58. package/dist/components/Section/SectionAccordion.vue.js +1 -1
  59. package/dist/components/Section/SectionAccordion.vue2.js +29 -30
  60. package/dist/components/Section/SectionColumn.vue.js +1 -1
  61. package/dist/components/Section/SectionColumns.vue.js +1 -1
  62. package/dist/components/Section/SectionContainer.vue.js +1 -1
  63. package/dist/components/Section/SectionContainerAccordion.vue.js +1 -1
  64. package/dist/components/Section/SectionContent.vue.js +1 -1
  65. package/dist/components/Section/SectionHeader.vue.js +1 -1
  66. package/dist/components/Section/SectionHeaderTag.vue.js +1 -1
  67. package/dist/components/SectionFlare/SectionFlare.vue.js +1 -1
  68. package/dist/components/ShowMoreButton.vue.js +1 -1
  69. package/dist/components/ShowMoreButton.vue2.js +12 -13
  70. package/dist/features/Operation/Operation.vue.js +31 -36
  71. package/dist/features/Operation/components/Headers.vue.js +1 -1
  72. package/dist/features/Operation/components/OperationParameters.vue.js +8 -11
  73. package/dist/features/Operation/components/ParameterList.vue.js +21 -24
  74. package/dist/features/Operation/components/ParameterListItem.vue.js +1 -1
  75. package/dist/features/Operation/components/ParameterListItem.vue2.js +36 -37
  76. package/dist/features/Operation/components/RequestBody.vue.js +1 -1
  77. package/dist/features/Operation/components/RequestBody.vue2.js +45 -52
  78. package/dist/features/Operation/components/callbacks/Callback.vue.js +1 -1
  79. package/dist/features/Operation/components/callbacks/Callback.vue2.js +32 -35
  80. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
  81. package/dist/features/Operation/layouts/ClassicLayout.vue.js +4 -4
  82. package/dist/features/Operation/layouts/ClassicLayout.vue2.js +114 -119
  83. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
  84. package/dist/features/Operation/layouts/ModernLayout.vue.js +3 -3
  85. package/dist/features/Operation/layouts/ModernLayout.vue2.js +87 -89
  86. package/dist/features/Search/components/SearchButton.vue.js +23 -25
  87. package/dist/features/Search/components/SearchModal.vue.js +1 -1
  88. package/dist/features/Search/components/SearchModal.vue2.js +53 -54
  89. package/dist/features/api-client-modal/ApiClientModal.vue.js +31 -38
  90. package/dist/features/document-source/hooks/useDocumentFetcher.js +17 -18
  91. package/dist/features/document-source/hooks/useDocumentSource.d.ts.map +1 -1
  92. package/dist/features/document-source/hooks/useDocumentSource.js +21 -20
  93. package/dist/features/example-responses/ExampleResponse.vue.js +1 -1
  94. package/dist/features/example-responses/ExampleResponse.vue2.js +23 -26
  95. package/dist/features/example-responses/ExampleResponseTab.vue.js +1 -1
  96. package/dist/features/example-responses/ExampleResponseTabList.vue.js +1 -1
  97. package/dist/features/example-responses/ExampleResponses.vue.js +1 -1
  98. package/dist/features/example-responses/ExampleResponses.vue2.js +128 -153
  99. package/dist/features/info-object/Contact.vue.js +24 -27
  100. package/dist/features/info-object/License.vue.js +26 -29
  101. package/dist/features/multiple-documents/DocumentSelector.vue.js +22 -31
  102. package/dist/features/multiple-documents/useMultipleDocuments.js +52 -56
  103. package/dist/features/sidebar/components/Sidebar.vue.d.ts.map +1 -1
  104. package/dist/features/sidebar/components/Sidebar.vue.js +3 -3
  105. package/dist/features/sidebar/components/Sidebar.vue2.js +74 -79
  106. package/dist/features/sidebar/components/SidebarElement.vue.js +3 -3
  107. package/dist/features/sidebar/components/SidebarElement.vue2.js +52 -53
  108. package/dist/features/sidebar/components/SidebarGroup.vue.js +1 -1
  109. package/dist/features/sidebar/components/SidebarHttpBadge.vue.js +1 -1
  110. package/dist/features/specification-extension/SpecificationExtension.vue2.js +28 -31
  111. package/dist/features/test-request-button/TestRequestButton.vue.js +1 -1
  112. package/dist/features/test-request-button/TestRequestButton.vue2.js +1 -2
  113. package/dist/features/traverse-schema/helpers/traverse-description.js +13 -14
  114. package/dist/features/traverse-schema/helpers/traverse-document.js +14 -15
  115. package/dist/features/traverse-schema/helpers/traverse-paths.js +20 -23
  116. package/dist/features/traverse-schema/helpers/traverse-schemas.js +13 -15
  117. package/dist/features/traverse-schema/helpers/traverse-webhooks.js +8 -10
  118. package/dist/hooks/useFreezing.js +14 -14
  119. package/dist/hooks/useNavState.js +37 -39
  120. package/dist/index.js +2 -2
  121. package/dist/libs/openapi.js +28 -31
  122. package/dist/style.css +1 -1
  123. package/dist/v2/ApiReferenceWorkspace.vue.d.ts.map +1 -1
  124. package/dist/v2/ApiReferenceWorkspace.vue.js +102 -103
  125. package/dist/v2/ApiReferenceWorkspace.vue3.js +1 -1
  126. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js +1 -1
  127. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue2.js +116 -135
  128. package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.js +40 -47
  129. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +45 -46
  130. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.js +109 -125
  131. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.js +1 -1
  132. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js +84 -84
  133. package/dist/v2/blocks/scalar-auth-selector-block/helpers/update-scheme.js +12 -13
  134. package/dist/v2/blocks/scalar-client-selector-block/components/ClientDropdown.vue.js +1 -1
  135. package/dist/v2/blocks/scalar-client-selector-block/components/ClientDropdown.vue2.js +1 -4
  136. package/dist/v2/blocks/scalar-client-selector-block/components/ClientSelector.vue.js +1 -1
  137. package/dist/v2/blocks/scalar-client-selector-block/components/ClientSelector.vue2.js +77 -82
  138. package/dist/v2/blocks/scalar-info-block/components/DownloadLink.vue.d.ts.map +1 -1
  139. package/dist/v2/blocks/scalar-info-block/components/DownloadLink.vue.js +2 -2
  140. package/dist/v2/blocks/scalar-info-block/components/DownloadLink.vue2.js +56 -50
  141. package/dist/v2/blocks/scalar-info-block/components/InfoDescription.vue.js +1 -1
  142. package/dist/v2/blocks/scalar-info-block/components/IntroductionCard.vue.js +1 -1
  143. package/dist/v2/blocks/scalar-info-block/components/IntroductionCardItem.vue.js +1 -1
  144. package/dist/v2/blocks/scalar-info-block/components/IntroductionLayout.vue.js +1 -1
  145. package/dist/v2/blocks/scalar-info-block/components/IntroductionLayout.vue2.js +74 -89
  146. package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue2.js +24 -27
  147. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.d.ts.map +1 -1
  148. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.js +2 -2
  149. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue2.js +111 -118
  150. package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.js +11 -12
  151. package/dist/v2/blocks/scalar-request-example-block/helpers/get-secrets.js +3 -3
  152. package/dist/v2/blocks/scalar-server-selector-block/components/Selector.vue.js +11 -14
  153. package/dist/v2/blocks/scalar-server-selector-block/components/ServerSelector.vue.js +45 -48
  154. package/dist/v2/helpers/get-document-name.js +10 -10
  155. package/dist/v2/helpers/map-configuration.d.ts.map +1 -1
  156. package/dist/v2/helpers/map-configuration.js +48 -51
  157. package/dist/v2/hooks/use-legacy-store-events.js +44 -48
  158. package/dist/v2/hooks/use-workspace-store-events.js +23 -26
  159. package/package.json +24 -23
  160. package/dist/components/ApiReferenceLayout.vue3.js +0 -4
  161. package/dist/components/ApiReferenceLayout.vue4.js +0 -4
  162. package/dist/components/ApiReferenceLayout.vue5.js +0 -4
  163. package/dist/components/ApiReferenceLayout.vue6.js +0 -4
  164. package/dist/components/Badge/Badge.vue3.js +0 -4
  165. package/dist/components/ClassicHeader.vue2.js +0 -4
  166. package/dist/components/Content/Content.vue2.js +0 -4
  167. package/dist/components/Content/Models/ClassicLayout.vue3.js +0 -4
  168. package/dist/components/Content/Models/ModernLayout.vue3.js +0 -4
  169. package/dist/components/Content/Schema/Schema.vue3.js +0 -4
  170. package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue3.js +0 -4
  171. package/dist/components/Content/Schema/SchemaEnumValues.vue3.js +0 -4
  172. package/dist/components/Content/Schema/SchemaHeading.vue3.js +0 -4
  173. package/dist/components/Content/Schema/SchemaProperty.vue3.js +0 -4
  174. package/dist/components/Content/Schema/SchemaPropertyDetail.vue3.js +0 -4
  175. package/dist/components/Content/Schema/SchemaPropertyExamples.vue3.js +0 -4
  176. package/dist/components/Content/Schema/SchemaPropertyHeading.vue3.js +0 -4
  177. package/dist/components/Content/Tags/ClassicLayout.vue3.js +0 -4
  178. package/dist/components/Content/Tags/ModernLayout.vue3.js +0 -4
  179. package/dist/components/GettingStarted.vue3.js +0 -4
  180. package/dist/components/LinkList/LinkList.vue3.js +0 -4
  181. package/dist/components/LoadingSkeleton.vue3.js +0 -4
  182. package/dist/components/MobileHeader.vue3.js +0 -4
  183. package/dist/components/OperationPath.vue3.js +0 -4
  184. package/dist/components/OperationsList/OperationsList.vue3.js +0 -4
  185. package/dist/components/OperationsList/OperationsListItem.vue3.js +0 -4
  186. package/dist/components/ScreenReader.vue3.js +0 -4
  187. package/dist/components/Section/CompactSection.vue3.js +0 -4
  188. package/dist/components/Section/Section.vue3.js +0 -4
  189. package/dist/components/Section/SectionAccordion.vue3.js +0 -4
  190. package/dist/components/Section/SectionColumn.vue2.js +0 -4
  191. package/dist/components/Section/SectionColumns.vue2.js +0 -4
  192. package/dist/components/Section/SectionContainer.vue3.js +0 -4
  193. package/dist/components/Section/SectionContainerAccordion.vue3.js +0 -4
  194. package/dist/components/Section/SectionContent.vue3.js +0 -4
  195. package/dist/components/Section/SectionHeader.vue3.js +0 -4
  196. package/dist/components/Section/SectionHeaderTag.vue3.js +0 -4
  197. package/dist/components/SectionFlare/SectionFlare.vue2.js +0 -4
  198. package/dist/components/ShowMoreButton.vue3.js +0 -4
  199. package/dist/features/Operation/components/Headers.vue3.js +0 -4
  200. package/dist/features/Operation/components/ParameterListItem.vue3.js +0 -4
  201. package/dist/features/Operation/components/RequestBody.vue3.js +0 -4
  202. package/dist/features/Operation/components/callbacks/Callback.vue3.js +0 -4
  203. package/dist/features/Operation/layouts/ClassicLayout.vue3.js +0 -4
  204. package/dist/features/Operation/layouts/ModernLayout.vue3.js +0 -4
  205. package/dist/features/Search/components/SearchModal.vue3.js +0 -4
  206. package/dist/features/example-responses/ExampleResponse.vue3.js +0 -4
  207. package/dist/features/example-responses/ExampleResponseTab.vue3.js +0 -4
  208. package/dist/features/example-responses/ExampleResponseTabList.vue3.js +0 -4
  209. package/dist/features/example-responses/ExampleResponses.vue3.js +0 -4
  210. package/dist/features/sidebar/components/Sidebar.vue3.js +0 -4
  211. package/dist/features/sidebar/components/SidebarElement.vue3.js +0 -4
  212. package/dist/features/sidebar/components/SidebarGroup.vue3.js +0 -4
  213. package/dist/features/sidebar/components/SidebarHttpBadge.vue3.js +0 -4
  214. package/dist/features/test-request-button/TestRequestButton.vue3.js +0 -4
  215. package/dist/v2/ApiReferenceWorkspace.vue2.js +0 -4
  216. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue3.js +0 -4
  217. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue3.js +0 -4
  218. package/dist/v2/blocks/scalar-client-selector-block/components/ClientDropdown.vue3.js +0 -4
  219. package/dist/v2/blocks/scalar-client-selector-block/components/ClientSelector.vue3.js +0 -4
  220. package/dist/v2/blocks/scalar-info-block/components/DownloadLink.vue3.js +0 -4
  221. package/dist/v2/blocks/scalar-info-block/components/InfoDescription.vue3.js +0 -4
  222. package/dist/v2/blocks/scalar-info-block/components/IntroductionCard.vue3.js +0 -4
  223. package/dist/v2/blocks/scalar-info-block/components/IntroductionCardItem.vue2.js +0 -4
  224. package/dist/v2/blocks/scalar-info-block/components/IntroductionLayout.vue3.js +0 -4
  225. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue3.js +0 -4
@@ -1,10 +1,10 @@
1
- import { defineComponent as n, createElementBlock as i, openBlock as m, createElementVNode as t, createVNode as o, unref as a, createTextVNode as p, toDisplayString as r } from "vue";
2
- import { ScalarIconCaretRight as d } from "@scalar/icons";
3
- import { getResolvedRef as l } from "@scalar/workspace-store/helpers/get-resolved-ref";
4
- import f from "../OperationParameters.vue.js";
5
- import u from "../OperationResponses.vue.js";
6
- import _ from "../../../../components/HttpMethod/HttpMethod.vue.js";
7
- const b = { class: "group callback-list-item" }, h = { class: "font-code bg-b-1 callback-sticky-offset callback-list-item-title sticky flex cursor-pointer flex-row items-start gap-2 border-t py-3 text-sm group-open:flex-wrap" }, k = { class: "text-c-1 min-w-0 flex-1 truncate leading-3 group-open:whitespace-normal" }, g = { class: "text-c-2" }, y = { class: "callback-operation-container flex flex-col gap-2" }, V = /* @__PURE__ */ n({
1
+ import { defineComponent as c, createElementBlock as n, openBlock as i, createElementVNode as t, createVNode as o, unref as a, createTextVNode as m, toDisplayString as s } from "vue";
2
+ import { ScalarIconCaretRight as p } from "@scalar/icons";
3
+ import { getResolvedRef as r } from "@scalar/workspace-store/helpers/get-resolved-ref";
4
+ import d from "../OperationParameters.vue.js";
5
+ import f from "../OperationResponses.vue.js";
6
+ import u from "../../../../components/HttpMethod/HttpMethod.vue.js";
7
+ const _ = { class: "group callback-list-item" }, b = { class: "font-code bg-b-1 callback-sticky-offset callback-list-item-title sticky flex cursor-pointer flex-row items-start gap-2 border-t py-3 text-sm group-open:flex-wrap" }, h = { class: "text-c-1 min-w-0 flex-1 truncate leading-3 group-open:whitespace-normal" }, k = { class: "text-c-2" }, g = { class: "callback-operation-container flex flex-col gap-2" }, R = /* @__PURE__ */ c({
8
8
  __name: "Callback",
9
9
  props: {
10
10
  callback: {},
@@ -13,36 +13,33 @@ const b = { class: "group callback-list-item" }, h = { class: "font-code bg-b-1
13
13
  url: {},
14
14
  breadcrumb: {}
15
15
  },
16
- setup(x) {
17
- return (e, B) => {
18
- var s;
19
- return m(), i("details", b, [
20
- t("summary", h, [
21
- o(a(d), { class: "callback-list-item-icon text-c-3 group-hover:text-c-1 absolute top-3.5 -left-5 size-4 transition-transform duration-100 group-open:rotate-90" }),
22
- o(a(_), {
23
- as: "span",
24
- class: "request-method py-0.75",
25
- method: e.method
26
- }, null, 8, ["method"]),
27
- t("div", k, [
28
- p(r(e.name) + " ", 1),
29
- t("span", g, r(e.url), 1)
30
- ])
31
- ]),
32
- t("div", y, [
33
- o(f, {
34
- parameters: ((s = e.callback.parameters) == null ? void 0 : s.map((c) => a(l)(c))) ?? [],
35
- requestBody: a(l)(e.callback.requestBody)
36
- }, null, 8, ["parameters", "requestBody"]),
37
- o(u, {
38
- collapsableItems: !1,
39
- responses: e.callback.responses
40
- }, null, 8, ["responses"])
16
+ setup(y) {
17
+ return (e, x) => (i(), n("details", _, [
18
+ t("summary", b, [
19
+ o(a(p), { class: "callback-list-item-icon text-c-3 group-hover:text-c-1 absolute top-3.5 -left-5 size-4 transition-transform duration-100 group-open:rotate-90" }),
20
+ o(a(u), {
21
+ as: "span",
22
+ class: "request-method py-0.75",
23
+ method: e.method
24
+ }, null, 8, ["method"]),
25
+ t("div", h, [
26
+ m(s(e.name) + " ", 1),
27
+ t("span", k, s(e.url), 1)
41
28
  ])
42
- ]);
43
- };
29
+ ]),
30
+ t("div", g, [
31
+ o(d, {
32
+ parameters: e.callback.parameters?.map((l) => a(r)(l)) ?? [],
33
+ requestBody: a(r)(e.callback.requestBody)
34
+ }, null, 8, ["parameters", "requestBody"]),
35
+ o(f, {
36
+ collapsableItems: !1,
37
+ responses: e.callback.responses
38
+ }, null, 8, ["responses"])
39
+ ])
40
+ ]));
44
41
  }
45
42
  });
46
43
  export {
47
- V as default
44
+ R as default
48
45
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ClassicLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ClassicLayout.vue"],"names":[],"mappings":"AAscA,OAAO,KAAK,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,mCAAmC,CAAA;AAWrF,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAA;AAE9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAEpE,OAAO,KAAK,EACV,eAAe,EAEf,oBAAoB,EACpB,YAAY,EACb,MAAM,8DAA8D,CAAA;AAiBrE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gDAAgD,CAAA;AAEvF,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,aAAa,EAAE,iBAAiB,EAAE,CAAA;IAClC,MAAM,EAAE,cAAc,CAAA;IACtB,MAAM,EAAE,yBAAyB,CAAA;IACjC,SAAS,EAAE,eAAe,CAAA;IAE1B,SAAS,EAAE,OAAO,CAAA;IAClB,MAAM,EAAE,YAAY,GAAG,SAAS,CAAA;IAChC,eAAe,EAAE,oBAAoB,EAAE,CAAA;IACvC,KAAK,EAAE,cAAc,CAAA;CACtB,CAAC;;AAsfF,wBAMG"}
1
+ {"version":3,"file":"ClassicLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ClassicLayout.vue"],"names":[],"mappings":"AAucA,OAAO,KAAK,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,mCAAmC,CAAA;AAWrF,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAA;AAE9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAEpE,OAAO,KAAK,EACV,eAAe,EAEf,oBAAoB,EACpB,YAAY,EACb,MAAM,8DAA8D,CAAA;AAiBrE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gDAAgD,CAAA;AAEvF,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,aAAa,EAAE,iBAAiB,EAAE,CAAA;IAClC,MAAM,EAAE,cAAc,CAAA;IACtB,MAAM,EAAE,yBAAyB,CAAA;IACjC,SAAS,EAAE,eAAe,CAAA;IAE1B,SAAS,EAAE,OAAO,CAAA;IAClB,MAAM,EAAE,YAAY,GAAG,SAAS,CAAA;IAChC,eAAe,EAAE,oBAAoB,EAAE,CAAA;IACvC,KAAK,EAAE,cAAc,CAAA;CACtB,CAAC;;AAwfF,wBAMG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./ClassicLayout.vue2.js";
2
- import "./ClassicLayout.vue3.js";
3
- import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-bf5a5b89"]]);
2
+ /* empty css */
3
+ import c from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const s = /* @__PURE__ */ c(o, [["__scopeId", "data-v-fcc3cd5c"]]);
5
5
  export {
6
- f as default
6
+ s as default
7
7
  };
@@ -1,27 +1,27 @@
1
- import { defineComponent as v, computed as g, createBlock as r, openBlock as i, unref as o, createSlots as S, withCtx as s, createElementVNode as a, createCommentVNode as n, createElementBlock as C, createVNode as t, withModifiers as B, toDisplayString as c, normalizeClass as w, createTextVNode as h } from "vue";
2
- import { ScalarErrorBoundary as O, ScalarIconButton as $, ScalarMarkdown as R } from "@scalar/components";
3
- import { ScalarIconPlay as q, ScalarIconCopy as I, ScalarIconWebhooksLogo as T } from "@scalar/icons";
4
- import { isOperationDeprecated as E, getOperationStability as u, getOperationStabilityColor as L } from "@scalar/oas-utils/helpers";
5
- import { useClipboard as W } from "@scalar/use-hooks/useClipboard";
6
- import { getResolvedRef as _ } from "@scalar/workspace-store/helpers/get-resolved-ref";
1
+ import { defineComponent as k, computed as v, createBlock as r, openBlock as i, unref as o, createSlots as g, withCtx as s, createElementVNode as a, createCommentVNode as n, createElementBlock as S, createVNode as t, withModifiers as C, toDisplayString as d, normalizeClass as B, createTextVNode as m } from "vue";
2
+ import { ScalarErrorBoundary as w, ScalarIconButton as O, ScalarMarkdown as W } from "@scalar/components";
3
+ import { ScalarIconPlay as $, ScalarIconCopy as R, ScalarIconWebhooksLogo as q } from "@scalar/icons";
4
+ import { isOperationDeprecated as I, getOperationStability as c, getOperationStabilityColor as T } from "@scalar/oas-utils/helpers";
5
+ import { useClipboard as E } from "@scalar/use-hooks/useClipboard";
6
+ import { getResolvedRef as L } from "@scalar/workspace-store/helpers/get-resolved-ref";
7
7
  import z from "../../../components/OperationPath.vue.js";
8
8
  import D from "../components/callbacks/Callbacks.vue.js";
9
9
  import N from "../components/OperationParameters.vue.js";
10
10
  import P from "../components/OperationResponses.vue.js";
11
11
  import V from "../../../components/Section/SectionAccordion.vue.js";
12
- import A from "../../example-responses/ExampleResponses.vue.js";
13
- import M from "../../../components/LinkList/LinkList.vue.js";
14
- import j from "../../external-docs/ExternalDocs.vue.js";
15
- import U from "../../../v2/blocks/scalar-request-example-block/components/RequestExample.vue.js";
16
- import f from "../../x-badges/XBadges.vue.js";
17
- import F from "../../test-request-button/TestRequestButton.vue.js";
18
- import G from "../../../components/HttpMethod/HttpMethod.vue.js";
19
- import H from "../../../components/Anchor/Anchor.vue.js";
20
- import y from "../../../components/Badge/Badge.vue.js";
21
- const J = { class: "operation-title" }, K = { class: "operation-details" }, Q = { class: "endpoint-label" }, X = { class: "endpoint-label-path" }, Y = { class: "endpoint-label-name" }, Z = { class: "endpoint-content" }, x = { class: "operation-details-card" }, ee = { class: "operation-details-card-item" }, oe = { class: "operation-details-card-item" }, te = {
12
+ import _ from "../../example-responses/ExampleResponses.vue.js";
13
+ import A from "../../../components/LinkList/LinkList.vue.js";
14
+ import M from "../../external-docs/ExternalDocs.vue.js";
15
+ import j from "../../../v2/blocks/scalar-request-example-block/components/RequestExample.vue.js";
16
+ import h from "../../x-badges/XBadges.vue.js";
17
+ import U from "../../test-request-button/TestRequestButton.vue.js";
18
+ import F from "../../../components/HttpMethod/HttpMethod.vue.js";
19
+ import G from "../../../components/Anchor/Anchor.vue.js";
20
+ import u from "../../../components/Badge/Badge.vue.js";
21
+ const H = { class: "operation-title" }, J = { class: "operation-details" }, K = { class: "endpoint-label" }, Q = { class: "endpoint-label-path" }, X = { class: "endpoint-label-name" }, Y = { class: "endpoint-content" }, Z = { class: "operation-details-card" }, x = { class: "operation-details-card-item" }, ee = { class: "operation-details-card-item" }, oe = {
22
22
  key: 0,
23
23
  class: "operation-details-card-item"
24
- }, we = /* @__PURE__ */ v({
24
+ }, Be = /* @__PURE__ */ k({
25
25
  __name: "ClassicLayout",
26
26
  props: {
27
27
  id: {},
@@ -35,55 +35,55 @@ const J = { class: "operation-title" }, K = { class: "operation-details" }, Q =
35
35
  securitySchemes: {},
36
36
  store: {}
37
37
  },
38
- setup(d) {
39
- const b = g(() => d.operation.summary || d.path || ""), { copyToClipboard: k } = W();
38
+ setup(p) {
39
+ const f = v(() => p.operation.summary || p.path || ""), { copyToClipboard: y } = E();
40
40
  return (e, l) => (i(), r(o(V), {
41
41
  id: e.id,
42
42
  class: "reference-endpoint",
43
43
  transparent: ""
44
- }, S({
44
+ }, g({
45
45
  title: s(() => [
46
- a("div", J, [
47
- a("div", K, [
48
- t(o(G), {
46
+ a("div", H, [
47
+ a("div", J, [
48
+ t(o(F), {
49
49
  class: "endpoint-type",
50
50
  method: e.method,
51
51
  short: ""
52
52
  }, null, 8, ["method"]),
53
- t(o(H), {
53
+ t(o(G), {
54
54
  id: e.id,
55
55
  class: "endpoint-anchor"
56
56
  }, {
57
57
  default: s(() => [
58
- a("h3", Q, [
59
- a("div", X, [
58
+ a("h3", K, [
59
+ a("div", Q, [
60
60
  t(z, {
61
- deprecated: o(E)(e.operation),
61
+ deprecated: o(I)(e.operation),
62
62
  path: e.path
63
63
  }, null, 8, ["deprecated", "path"])
64
64
  ]),
65
- a("div", Y, c(b.value), 1),
66
- o(u)(e.operation) ? (i(), r(o(y), {
65
+ a("div", X, d(f.value), 1),
66
+ o(c)(e.operation) ? (i(), r(o(u), {
67
67
  key: 0,
68
- class: w(["capitalize", o(L)(e.operation)])
68
+ class: B(["capitalize", o(T)(e.operation)])
69
69
  }, {
70
70
  default: s(() => [
71
- h(c(o(u)(e.operation)), 1)
71
+ m(d(o(c)(e.operation)), 1)
72
72
  ]),
73
73
  _: 1
74
74
  }, 8, ["class"])) : n("", !0),
75
- e.isWebhook ? (i(), r(o(y), {
75
+ e.isWebhook ? (i(), r(o(u), {
76
76
  key: 1,
77
77
  class: "font-code text-green flex w-fit items-center justify-center gap-1"
78
78
  }, {
79
79
  default: s(() => [
80
- t(o(T), { weight: "bold" }),
81
- l[1] || (l[1] = h("Webhook "))
80
+ t(o(q), { weight: "bold" }),
81
+ l[1] || (l[1] = m("Webhook "))
82
82
  ]),
83
83
  _: 1,
84
84
  __: [1]
85
85
  })) : n("", !0),
86
- t(o(f), {
86
+ t(o(h), {
87
87
  badges: e.operation["x-badges"],
88
88
  position: "before"
89
89
  }, null, 8, ["badges"])
@@ -94,99 +94,94 @@ const J = { class: "operation-title" }, K = { class: "operation-details" }, Q =
94
94
  ])
95
95
  ])
96
96
  ]),
97
- actions: s(({ active: p }) => {
98
- var m;
99
- return [
100
- t(o(f), {
101
- badges: e.operation["x-badges"],
102
- position: "after"
103
- }, null, 8, ["badges"]),
104
- p && !e.isWebhook ? (i(), r(o(F), {
105
- key: 0,
106
- method: e.method,
107
- path: e.path
108
- }, null, 8, ["method", "path"])) : (m = e.config) != null && m.hideTestRequestButton ? n("", !0) : (i(), r(o(q), {
109
- key: 1,
110
- class: "endpoint-try-hint size-4.5"
111
- })),
112
- t(o($), {
113
- class: "endpoint-copy p-0.5",
114
- icon: o(I),
115
- label: "Copy endpoint URL",
116
- size: "xs",
117
- variant: "ghost",
118
- onClick: l[0] || (l[0] = B((ae) => o(k)(e.path), ["stop"]))
119
- }, null, 8, ["icon"])
120
- ];
121
- }),
122
- default: s(() => {
123
- var p;
124
- return [
97
+ actions: s(({ active: b }) => [
98
+ t(o(h), {
99
+ badges: e.operation["x-badges"],
100
+ position: "after"
101
+ }, null, 8, ["badges"]),
102
+ b && !e.isWebhook ? (i(), r(o(U), {
103
+ key: 0,
104
+ method: e.method,
105
+ path: e.path
106
+ }, null, 8, ["method", "path"])) : e.config?.hideTestRequestButton ? n("", !0) : (i(), r(o($), {
107
+ key: 1,
108
+ class: "endpoint-try-hint size-4.5"
109
+ })),
110
+ t(o(O), {
111
+ class: "endpoint-copy p-0.5",
112
+ icon: o(R),
113
+ label: "Copy endpoint URL",
114
+ size: "xs",
115
+ variant: "ghost",
116
+ onClick: l[0] || (l[0] = C((te) => o(y)(e.path), ["stop"]))
117
+ }, null, 8, ["icon"])
118
+ ]),
119
+ default: s(() => [
120
+ a("div", Y, [
125
121
  a("div", Z, [
126
122
  a("div", x, [
127
- a("div", ee, [
128
- t(N, {
129
- parameters: (
130
- // These have been resolved in the Operation.vue component
131
- e.operation.parameters
132
- ),
133
- requestBody: o(_)(e.operation.requestBody)
134
- }, null, 8, ["parameters", "requestBody"])
135
- ]),
136
- a("div", oe, [
137
- t(P, {
138
- collapsableItems: !1,
139
- responses: e.operation.responses
140
- }, null, 8, ["responses"])
123
+ t(N, {
124
+ parameters: (
125
+ // These have been resolved in the Operation.vue component
126
+ e.operation.parameters
127
+ ),
128
+ requestBody: o(L)(e.operation.requestBody)
129
+ }, null, 8, ["parameters", "requestBody"])
130
+ ]),
131
+ a("div", ee, [
132
+ t(P, {
133
+ collapsableItems: !1,
134
+ responses: e.operation.responses
135
+ }, null, 8, ["responses"])
136
+ ]),
137
+ e.operation?.callbacks ? (i(), S("div", oe, [
138
+ t(D, {
139
+ callbacks: e.operation.callbacks,
140
+ method: e.method,
141
+ path: e.path
142
+ }, null, 8, ["callbacks", "method", "path"])
143
+ ])) : n("", !0)
144
+ ]),
145
+ e.operation.responses ? (i(), r(o(_), {
146
+ key: 0,
147
+ class: "operation-example-card",
148
+ responses: e.operation.responses
149
+ }, null, 8, ["responses"])) : n("", !0),
150
+ a("div", null, [
151
+ e.operation.externalDocs ? (i(), r(o(A), { key: 0 }, {
152
+ default: s(() => [
153
+ t(o(M), {
154
+ value: e.operation.externalDocs
155
+ }, null, 8, ["value"])
141
156
  ]),
142
- (p = e.operation) != null && p.callbacks ? (i(), C("div", te, [
143
- t(D, {
144
- callbacks: e.operation.callbacks,
157
+ _: 1
158
+ })) : n("", !0),
159
+ t(o(w), null, {
160
+ default: s(() => [
161
+ t(o(j), {
162
+ class: "operation-example-card",
163
+ clientOptions: e.clientOptions,
164
+ fallback: "",
145
165
  method: e.method,
146
- path: e.path
147
- }, null, 8, ["callbacks", "method", "path"])
148
- ])) : n("", !0)
149
- ]),
150
- e.operation.responses ? (i(), r(o(A), {
151
- key: 0,
152
- class: "operation-example-card",
153
- responses: e.operation.responses
154
- }, null, 8, ["responses"])) : n("", !0),
155
- a("div", null, [
156
- e.operation.externalDocs ? (i(), r(o(M), { key: 0 }, {
157
- default: s(() => [
158
- t(o(j), {
159
- value: e.operation.externalDocs
160
- }, null, 8, ["value"])
161
- ]),
162
- _: 1
163
- })) : n("", !0),
164
- t(o(O), null, {
165
- default: s(() => [
166
- t(o(U), {
167
- class: "operation-example-card",
168
- clientOptions: e.clientOptions,
169
- fallback: "",
170
- method: e.method,
171
- operation: e.operation,
172
- path: e.path,
173
- securitySchemes: e.securitySchemes,
174
- selectedClient: e.store.workspace["x-scalar-default-client"],
175
- selectedServer: e.server
176
- }, null, 8, ["clientOptions", "method", "operation", "path", "securitySchemes", "selectedClient", "selectedServer"])
177
- ]),
178
- _: 1
179
- })
180
- ])
166
+ operation: e.operation,
167
+ path: e.path,
168
+ isWebhook: e.isWebhook,
169
+ securitySchemes: e.securitySchemes,
170
+ selectedClient: e.store.workspace["x-scalar-default-client"],
171
+ selectedServer: e.server
172
+ }, null, 8, ["clientOptions", "method", "operation", "path", "isWebhook", "securitySchemes", "selectedClient", "selectedServer"])
173
+ ]),
174
+ _: 1
175
+ })
181
176
  ])
182
- ];
183
- }),
177
+ ])
178
+ ]),
184
179
  _: 2
185
180
  }, [
186
181
  e.operation.description ? {
187
182
  name: "description",
188
183
  fn: s(() => [
189
- t(o(R), {
184
+ t(o(W), {
190
185
  anchorPrefix: e.id,
191
186
  transformType: "heading",
192
187
  value: e.operation.description,
@@ -200,5 +195,5 @@ const J = { class: "operation-title" }, K = { class: "operation-details" }, Q =
200
195
  }
201
196
  });
202
197
  export {
203
- we as default
198
+ Be as default
204
199
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ModernLayout.vue"],"names":[],"mappings":"AAwNA,OAAO,KAAK,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,mCAAmC,CAAA;AAOrF,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAA;AAC9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAEpE,OAAO,KAAK,EACV,eAAe,EAEf,oBAAoB,EACpB,YAAY,EACb,MAAM,8DAA8D,CAAA;AAuBrE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gDAAgD,CAAA;AAEvF,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,aAAa,EAAE,iBAAiB,EAAE,CAAA;IAClC,MAAM,EAAE,yBAAyB,CAAA;IACjC,MAAM,EAAE,cAAc,CAAA;IACtB,SAAS,EAAE,eAAe,CAAA;IAE1B,SAAS,EAAE,OAAO,CAAA;IAClB,eAAe,EAAE,oBAAoB,EAAE,CAAA;IACvC,MAAM,EAAE,YAAY,GAAG,SAAS,CAAA;IAChC,KAAK,EAAE,cAAc,CAAA;CACtB,CAAC;;AAsbF,wBAMG"}
1
+ {"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ModernLayout.vue"],"names":[],"mappings":"AAyNA,OAAO,KAAK,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,mCAAmC,CAAA;AAOrF,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAA;AAC9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAEpE,OAAO,KAAK,EACV,eAAe,EAEf,oBAAoB,EACpB,YAAY,EACb,MAAM,8DAA8D,CAAA;AAuBrE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gDAAgD,CAAA;AAEvF,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,aAAa,EAAE,iBAAiB,EAAE,CAAA;IAClC,MAAM,EAAE,yBAAyB,CAAA;IACjC,MAAM,EAAE,cAAc,CAAA;IACtB,SAAS,EAAE,eAAe,CAAA;IAE1B,SAAS,EAAE,OAAO,CAAA;IAClB,eAAe,EAAE,oBAAoB,EAAE,CAAA;IACvC,MAAM,EAAE,YAAY,GAAG,SAAS,CAAA;IAChC,KAAK,EAAE,cAAc,CAAA;CACtB,CAAC;;AAwbF,wBAMG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./ModernLayout.vue2.js";
2
- import "./ModernLayout.vue3.js";
2
+ /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-4e34f7b6"]]);
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-288c0a52"]]);
5
5
  export {
6
- f as default
6
+ p as default
7
7
  };