@scalar/api-reference 1.29.3 → 1.31.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 (159) hide show
  1. package/CHANGELOG.md +58 -0
  2. package/README.md +13 -114
  3. package/dist/browser/standalone.js +6525 -6416
  4. package/dist/browser/webpack-stats.json +1 -1
  5. package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
  6. package/dist/components/ApiReferenceLayout.vue.js +1 -1
  7. package/dist/components/ApiReferenceLayout.vue2.js +164 -181
  8. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts.map +1 -1
  9. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.js +2 -2
  10. package/dist/components/Content/ClientLibraries/ClientLibraries.vue2.js +56 -51
  11. package/dist/components/Content/Content.vue.d.ts.map +1 -1
  12. package/dist/components/Content/Content.vue.js +1 -1
  13. package/dist/components/Content/Content.vue2.js +5 -5
  14. package/dist/components/Content/Introduction/Introduction.vue.d.ts +2 -2
  15. package/dist/components/Content/Introduction/Introduction.vue.d.ts.map +1 -1
  16. package/dist/components/Content/Introduction/Introduction.vue.js +2 -2
  17. package/dist/components/Content/Introduction/Introduction.vue2.js +57 -63
  18. package/dist/components/Content/Lazy/Loading.vue.d.ts.map +1 -1
  19. package/dist/components/Content/Lazy/Loading.vue.js +46 -46
  20. package/dist/components/Content/Models/Models.vue.d.ts +2 -2
  21. package/dist/components/Content/Models/Models.vue.d.ts.map +1 -1
  22. package/dist/components/Content/Models/Models.vue.js +2 -2
  23. package/dist/components/Content/Models/Models.vue2.js +7 -6
  24. package/dist/components/Content/Models/ModelsAccordion.vue.d.ts +2 -2
  25. package/dist/components/Content/Models/ModelsAccordion.vue.d.ts.map +1 -1
  26. package/dist/components/Content/Models/ModelsAccordion.vue.js +2 -2
  27. package/dist/components/Content/Schema/Schema.preview.d.ts +98 -56
  28. package/dist/components/Content/Schema/Schema.preview.d.ts.map +1 -1
  29. package/dist/components/Content/Schema/Schema.vue.d.ts +6 -3
  30. package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
  31. package/dist/components/Content/Schema/Schema.vue.js +1 -1
  32. package/dist/components/Content/Schema/Schema.vue2.js +140 -97
  33. package/dist/components/Content/Schema/SchemaComposition.vue.d.ts +2 -2
  34. package/dist/components/Content/Schema/SchemaComposition.vue.d.ts.map +1 -1
  35. package/dist/components/Content/Schema/SchemaComposition.vue.js +57 -53
  36. package/dist/components/Content/Schema/SchemaDiscriminator.vue.d.ts +13 -0
  37. package/dist/components/Content/Schema/SchemaDiscriminator.vue.d.ts.map +1 -0
  38. package/dist/components/Content/Schema/SchemaDiscriminator.vue.js +49 -0
  39. package/dist/components/Content/Schema/SchemaDiscriminator.vue2.js +4 -0
  40. package/dist/components/Content/Schema/SchemaHeading.vue.d.ts +2 -2
  41. package/dist/components/Content/Schema/SchemaHeading.vue.d.ts.map +1 -1
  42. package/dist/components/Content/Schema/SchemaHeading.vue.js +1 -1
  43. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +4 -2
  44. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
  45. package/dist/components/Content/Schema/SchemaProperty.vue.js +2 -2
  46. package/dist/components/Content/Schema/SchemaProperty.vue2.js +40 -38
  47. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts +3 -2
  48. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
  49. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +2 -2
  50. package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +147 -143
  51. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.d.ts +2 -2
  52. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.d.ts.map +1 -1
  53. package/dist/components/Content/Schema/helpers/schema-discriminator.d.ts +9 -1
  54. package/dist/components/Content/Schema/helpers/schema-discriminator.d.ts.map +1 -1
  55. package/dist/components/Content/Schema/helpers/schema-discriminator.js +45 -0
  56. package/dist/components/Content/Tag/TagList.vue.d.ts +2 -2
  57. package/dist/components/Content/Tag/TagList.vue.d.ts.map +1 -1
  58. package/dist/components/DocumentSelector/DocumentSelector.vue.js +3 -3
  59. package/dist/components/Layouts/ClassicLayout.vue.js +10 -8
  60. package/dist/components/Layouts/Layouts.vue.js +11 -9
  61. package/dist/components/Layouts/ModernLayout.vue2.js +22 -20
  62. package/dist/components/Section/SectionHeader.vue.d.ts.map +1 -1
  63. package/dist/components/Section/SectionHeader.vue.js +2 -2
  64. package/dist/components/Section/SectionHeaderTag.vue.d.ts.map +1 -1
  65. package/dist/components/Section/SectionHeaderTag.vue.js +2 -2
  66. package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
  67. package/dist/components/Sidebar/Sidebar.vue.js +2 -2
  68. package/dist/components/Sidebar/Sidebar.vue2.js +56 -56
  69. package/dist/components/SingleApiReference.vue.d.ts.map +1 -1
  70. package/dist/components/SingleApiReference.vue.js +27 -33
  71. package/dist/esm.d.ts.map +1 -1
  72. package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts +2 -2
  73. package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts.map +1 -1
  74. package/dist/features/ApiClientModal/ApiClientModal.vue.js +49 -50
  75. package/dist/features/ApiClientModal/useApiClient.d.ts +224 -204
  76. package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
  77. package/dist/features/DocumentSource/hooks/useDocumentFetcher.d.ts +11 -0
  78. package/dist/features/DocumentSource/hooks/useDocumentFetcher.d.ts.map +1 -0
  79. package/dist/features/DocumentSource/hooks/useDocumentFetcher.js +38 -0
  80. package/dist/features/DocumentSource/hooks/useDocumentSource.d.ts +21 -0
  81. package/dist/features/DocumentSource/hooks/useDocumentSource.d.ts.map +1 -0
  82. package/dist/features/DocumentSource/hooks/useDocumentSource.js +94 -0
  83. package/dist/features/DocumentSource/index.d.ts +2 -0
  84. package/dist/features/DocumentSource/index.d.ts.map +1 -0
  85. package/dist/features/DownloadLink/DownloadLink.vue.d.ts +1 -1
  86. package/dist/features/DownloadLink/DownloadLink.vue.d.ts.map +1 -1
  87. package/dist/features/DownloadLink/DownloadLink.vue.js +1 -1
  88. package/dist/features/DownloadLink/DownloadLink.vue2.js +18 -17
  89. package/dist/features/DownloadLink/index.d.ts +1 -0
  90. package/dist/features/DownloadLink/index.d.ts.map +1 -1
  91. package/dist/features/DownloadLink/openapi-version-symbol.d.ts +2 -0
  92. package/dist/features/DownloadLink/openapi-version-symbol.d.ts.map +1 -0
  93. package/dist/features/DownloadLink/openapi-version-symbol.js +4 -0
  94. package/dist/features/Operation/Operation.vue.d.ts +2 -2
  95. package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
  96. package/dist/features/Operation/components/OperationParameters.vue.d.ts +2 -2
  97. package/dist/features/Operation/components/OperationParameters.vue.d.ts.map +1 -1
  98. package/dist/features/Operation/components/OperationResponses.vue.d.ts +2 -2
  99. package/dist/features/Operation/components/OperationResponses.vue.d.ts.map +1 -1
  100. package/dist/features/Operation/components/ParameterHeaders.vue.d.ts +2 -2
  101. package/dist/features/Operation/components/ParameterHeaders.vue.d.ts.map +1 -1
  102. package/dist/features/Operation/components/ParameterHeaders.vue.js +2 -2
  103. package/dist/features/Operation/components/ParameterList.vue.d.ts +2 -2
  104. package/dist/features/Operation/components/ParameterList.vue.d.ts.map +1 -1
  105. package/dist/features/Operation/components/ParameterList.vue.js +2 -2
  106. package/dist/features/Operation/components/ParameterListItem.vue.d.ts +2 -2
  107. package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
  108. package/dist/features/Operation/components/ParameterListItem.vue.js +3 -3
  109. package/dist/features/Operation/components/ParameterListItem.vue2.js +6 -6
  110. package/dist/features/Operation/components/RequestBody.vue.d.ts +2 -2
  111. package/dist/features/Operation/components/RequestBody.vue.d.ts.map +1 -1
  112. package/dist/features/Operation/components/RequestBody.vue.js +2 -2
  113. package/dist/features/Operation/components/callbacks/Callback.vue.d.ts +14 -0
  114. package/dist/features/Operation/components/callbacks/Callback.vue.d.ts.map +1 -0
  115. package/dist/features/Operation/components/callbacks/Callback.vue.js +7 -0
  116. package/dist/features/Operation/components/callbacks/Callback.vue2.js +62 -0
  117. package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts +10 -0
  118. package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts.map +1 -0
  119. package/dist/features/Operation/components/callbacks/Callbacks.vue.js +30 -0
  120. package/dist/features/Operation/components/callbacks/Callbacks.vue2.js +4 -0
  121. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +2 -2
  122. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
  123. package/dist/features/Operation/layouts/ClassicLayout.vue.js +2 -2
  124. package/dist/features/Operation/layouts/ClassicLayout.vue2.js +55 -55
  125. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +2 -2
  126. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
  127. package/dist/features/Operation/layouts/ModernLayout.vue.js +1 -1
  128. package/dist/features/Operation/layouts/ModernLayout.vue2.js +94 -79
  129. package/dist/features/Operation/types/schemas.d.ts +3 -0
  130. package/dist/features/Operation/types/schemas.d.ts.map +1 -0
  131. package/dist/features/Search/SearchButton.vue.js +2 -2
  132. package/dist/helpers/local-storage.d.ts +8 -0
  133. package/dist/helpers/local-storage.d.ts.map +1 -0
  134. package/dist/helpers/local-storage.js +6 -0
  135. package/dist/helpers/measure.d.ts +21 -0
  136. package/dist/helpers/measure.d.ts.map +1 -0
  137. package/dist/helpers/measure.js +7 -0
  138. package/dist/helpers/parse.d.ts +3 -5
  139. package/dist/helpers/parse.d.ts.map +1 -1
  140. package/dist/helpers/parse.js +64 -86
  141. package/dist/helpers/scroll-to-id.d.ts.map +1 -1
  142. package/dist/helpers/scroll-to-id.js +18 -4
  143. package/dist/index.d.ts +0 -1
  144. package/dist/index.d.ts.map +1 -1
  145. package/dist/index.js +33 -35
  146. package/dist/libs/openapi.d.ts +3 -3
  147. package/dist/libs/openapi.d.ts.map +1 -1
  148. package/dist/libs/openapi.js +35 -42
  149. package/dist/standalone/lib/html-api.d.ts.map +1 -1
  150. package/dist/standalone/lib/html-api.js +15 -15
  151. package/dist/stores/useHttpClientStore.d.ts.map +1 -1
  152. package/dist/stores/useHttpClientStore.js +19 -18
  153. package/dist/style.css +1 -1
  154. package/dist/types.d.ts +27 -3
  155. package/dist/types.d.ts.map +1 -1
  156. package/package.json +15 -16
  157. package/dist/hooks/useReactiveSpec.d.ts +0 -448
  158. package/dist/hooks/useReactiveSpec.d.ts.map +0 -1
  159. package/dist/hooks/useReactiveSpec.js +0 -59
@@ -1,11 +1,11 @@
1
1
  import type { Request as RequestEntity } from '@scalar/oas-utils/entities/spec';
2
- import type { OpenAPIV2, OpenAPIV3, OpenAPIV3_1 } from '@scalar/openapi-types';
2
+ import type { OpenAPIV3_1 } from '@scalar/openapi-types';
3
3
  type __VLS_Props = {
4
4
  parameters?: RequestEntity['parameters'] | RequestEntity['responses'];
5
5
  showChildren?: boolean;
6
6
  collapsableItems?: boolean;
7
7
  withExamples?: boolean;
8
- schemas?: OpenAPIV2.DefinitionsObject | Record<string, OpenAPIV3.SchemaObject> | Record<string, OpenAPIV3_1.SchemaObject> | unknown;
8
+ schemas?: Record<string, OpenAPIV3_1.SchemaObject> | unknown;
9
9
  };
10
10
  declare function __VLS_template(): {
11
11
  attrs: Partial<{}>;
@@ -1 +1 @@
1
- {"version":3,"file":"ParameterList.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/ParameterList.vue"],"names":[],"mappings":"AAoEA,OAAO,KAAK,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iCAAiC,CAAA;AAC/E,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAM9E,KAAK,WAAW,GAAG;IACf,UAAU,CAAC,EAAE,aAAa,CAAC,YAAY,CAAC,GAAG,aAAa,CAAC,WAAW,CAAC,CAAA;IACrE,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,OAAO,CAAC,EACJ,SAAS,CAAC,iBAAiB,GAC3B,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,YAAY,CAAC,GACtC,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,GACxC,OAAO,CAAA;CACZ,CAAC;AAoBJ,iBAAS,cAAc;WAsDT,OAAO,IAA6B;;uBARvB,GAAG;;;;EAa7B;AAUD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;kBAhGF,OAAO;kBAFP,OAAO;sBACH,OAAO;6EAwG5B,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,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":"AAgEA,OAAO,KAAK,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iCAAiC,CAAA;AAC/E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAMxD,KAAK,WAAW,GAAG;IACf,UAAU,CAAC,EAAE,aAAa,CAAC,YAAY,CAAC,GAAG,aAAa,CAAC,WAAW,CAAC,CAAA;IACrE,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,GAAG,OAAO,CAAA;CAC7D,CAAC;AAoBJ,iBAAS,cAAc;WAsDT,OAAO,IAA6B;;uBARvB,GAAG;;;;EAa7B;AAUD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;kBA5FF,OAAO;kBAFP,OAAO;sBACH,OAAO;6EAoG5B,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import t from "./ParameterList.vue2.js";
2
2
  /* empty css */
3
- import o from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const e = /* @__PURE__ */ o(t, [["__scopeId", "data-v-2463df20"]]);
3
+ import a from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const e = /* @__PURE__ */ a(t, [["__scopeId", "data-v-dabf3ac7"]]);
5
5
  export {
6
6
  e as default
7
7
  };
@@ -1,11 +1,11 @@
1
1
  import type { Request as RequestEntity } from '@scalar/oas-utils/entities/spec';
2
- import type { OpenAPIV2, OpenAPIV3, OpenAPIV3_1 } from '@scalar/openapi-types';
2
+ import type { OpenAPIV3_1 } from '@scalar/openapi-types';
3
3
  type __VLS_Props = {
4
4
  parameter: NonNullable<RequestEntity['parameters']>[number] | NonNullable<RequestEntity['responses']>[number];
5
5
  showChildren?: boolean;
6
6
  collapsableItems?: boolean;
7
7
  withExamples?: boolean;
8
- schemas?: OpenAPIV2.DefinitionsObject | Record<string, OpenAPIV3.SchemaObject> | Record<string, OpenAPIV3_1.SchemaObject> | unknown;
8
+ schemas?: Record<string, OpenAPIV3_1.SchemaObject> | unknown;
9
9
  };
10
10
  declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
11
11
  withExamples: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"ParameterListItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/ParameterListItem.vue"],"names":[],"mappings":"AA6PA,OAAO,KAAK,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iCAAiC,CAAA;AAE/E,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAW9E,KAAK,WAAW,GAAG;IACf,SAAS,EACL,WAAW,CAAC,aAAa,CAAC,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC,GAChD,WAAW,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAA;IACnD,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,OAAO,CAAC,EACJ,SAAS,CAAC,iBAAiB,GAC3B,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,YAAY,CAAC,GACtC,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,GACxC,OAAO,CAAA;CACZ,CAAC;;kBANe,OAAO;kBAFP,OAAO;sBACH,OAAO;;AA2R9B,wBAOG"}
1
+ {"version":3,"file":"ParameterListItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/ParameterListItem.vue"],"names":[],"mappings":"AAuPA,OAAO,KAAK,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iCAAiC,CAAA;AAE/E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAWxD,KAAK,WAAW,GAAG;IACf,SAAS,EACL,WAAW,CAAC,aAAa,CAAC,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC,GAChD,WAAW,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAA;IACnD,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,GAAG,OAAO,CAAA;CAC7D,CAAC;;kBAFe,OAAO;kBAFP,OAAO;sBACH,OAAO;;AAwR9B,wBAOG"}
@@ -1,7 +1,7 @@
1
1
  import t from "./ParameterListItem.vue2.js";
2
2
  /* empty css */
3
- import o from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ o(t, [["__scopeId", "data-v-6ad6c27e"]]);
3
+ import e from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const a = /* @__PURE__ */ e(t, [["__scopeId", "data-v-5d044e0e"]]);
5
5
  export {
6
- m as default
6
+ a as default
7
7
  };
@@ -3,12 +3,12 @@ import { Disclosure as q, DisclosureButton as P, DisclosurePanel as V } from "@h
3
3
  import { ScalarIcon as I, ScalarMarkdown as j } from "@scalar/components";
4
4
  import { isDefined as N } from "@scalar/oas-utils/helpers";
5
5
  import T from "./ContentTypeSelect.vue.js";
6
- import O from "./ParameterHeaders.vue.js";
7
- import z from "../../../components/Content/Schema/SchemaProperty.vue.js";
6
+ import z from "./ParameterHeaders.vue.js";
7
+ import O from "../../../components/Content/Schema/SchemaProperty.vue.js";
8
8
  const H = {
9
9
  key: 0,
10
10
  class: "parameter-item group/parameter-item relative"
11
- }, L = { class: "parameter-item-name" }, M = { class: "parameter-item-type" }, R = { class: "absolute right-0 top-2.5 opacity-0 group-focus-within/parameter-item:opacity-100 group-hover/parameter-item:opacity-100" }, U = /* @__PURE__ */ B({
11
+ }, L = { class: "parameter-item-name" }, M = { class: "parameter-item-type" }, R = { class: "absolute top-2.5 right-0 opacity-0 group-focus-within/parameter-item:opacity-100 group-hover/parameter-item:opacity-100" }, U = /* @__PURE__ */ B({
12
12
  __name: "ParameterListItem",
13
13
  props: {
14
14
  parameter: {},
@@ -32,7 +32,7 @@ const H = {
32
32
  }, {
33
33
  default: c(() => [
34
34
  p(r(I), {
35
- class: "parameter-item-icon",
35
+ class: "parameter-item-icon size-4.5",
36
36
  icon: n ? "ChevronDown" : "ChevronRight",
37
37
  thickness: "1.5"
38
38
  }, null, 8, ["icon"]),
@@ -54,11 +54,11 @@ const H = {
54
54
  default: c(() => {
55
55
  var h, f, v, y, k;
56
56
  return [
57
- e.parameter.headers ? (s(), l(O, {
57
+ e.parameter.headers ? (s(), l(z, {
58
58
  key: 0,
59
59
  headers: e.parameter.headers
60
60
  }, null, 8, ["headers"])) : o("", !0),
61
- p(r(z), {
61
+ p(r(O), {
62
62
  is: "div",
63
63
  compact: "",
64
64
  description: m.value ? "" : e.parameter.description,
@@ -1,8 +1,8 @@
1
- import type { OpenAPIV2, OpenAPIV3, OpenAPIV3_1 } from '@scalar/openapi-types';
1
+ import type { OpenAPIV3_1 } from '@scalar/openapi-types';
2
2
  import type { RequestBody } from '@scalar/types/legacy';
3
3
  type __VLS_Props = {
4
4
  requestBody?: RequestBody;
5
- schemas?: OpenAPIV2.DefinitionsObject | Record<string, OpenAPIV3.SchemaObject> | Record<string, OpenAPIV3_1.SchemaObject> | unknown;
5
+ schemas?: Record<string, OpenAPIV3_1.SchemaObject> | unknown;
6
6
  };
7
7
  declare function __VLS_template(): {
8
8
  attrs: Partial<{}>;
@@ -1 +1 @@
1
- {"version":3,"file":"RequestBody.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/RequestBody.vue"],"names":[],"mappings":"AA0JA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAC9E,OAAO,KAAK,EAAe,WAAW,EAAE,MAAM,sBAAsB,CAAA;AASpE,KAAK,WAAW,GAAG;IACjB,WAAW,CAAC,EAAE,WAAW,CAAA;IACzB,OAAO,CAAC,EACJ,SAAS,CAAC,iBAAiB,GAC3B,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,YAAY,CAAC,GACtC,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,GACxC,OAAO,CAAA;CACZ,CAAC;AAoDF,iBAAS,cAAc;WA6GT,OAAO,IAA6B;;uBARvB,GAAG;;;;EAa7B;AAaD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,kSAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,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":"AAsJA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,KAAK,EAAe,WAAW,EAAE,MAAM,sBAAsB,CAAA;AASpE,KAAK,WAAW,GAAG;IACjB,WAAW,CAAC,EAAE,WAAW,CAAA;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,GAAG,OAAO,CAAA;CAC7D,CAAC;AAoDF,iBAAS,cAAc;WA6GT,OAAO,IAA6B;;uBARvB,GAAG;;;;EAa7B;AAaD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,kSAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,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 p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-9c073db1"]]);
4
+ const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-e3af4d9a"]]);
5
5
  export {
6
- p as default
6
+ f as default
7
7
  };
@@ -0,0 +1,14 @@
1
+ import { type Collection } from '@scalar/oas-utils/entities/spec';
2
+ import type { OpenAPIV3_1 } from '@scalar/types/legacy';
3
+ import type { Schemas } from '../../../../features/Operation/types/schemas';
4
+ type __VLS_Props = {
5
+ callback: OpenAPIV3_1.OperationObject;
6
+ collection: Collection;
7
+ method: string;
8
+ name: string;
9
+ schemas?: Schemas;
10
+ url: string;
11
+ };
12
+ 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>;
13
+ export default _default;
14
+ //# sourceMappingURL=Callback.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Callback.vue.d.ts","sourceRoot":"","sources":["../../../../../src/features/Operation/components/callbacks/Callback.vue"],"names":[],"mappings":"AA+HA,OAAO,EAAiB,KAAK,UAAU,EAAE,MAAM,iCAAiC,CAAA;AAEhF,OAAO,KAAK,EAAE,WAAW,EAAwB,MAAM,sBAAsB,CAAA;AAM7E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AAIjE,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,WAAW,CAAC,eAAe,CAAA;IACrC,UAAU,EAAE,UAAU,CAAA;IACtB,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,GAAG,EAAE,MAAM,CAAA;CACZ,CAAC;;AAkKF,wBAMG"}
@@ -0,0 +1,7 @@
1
+ import a from "./Callback.vue2.js";
2
+ /* empty css */
3
+ import o from "../../../../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ o(a, [["__scopeId", "data-v-5fa8be5a"]]);
5
+ export {
6
+ m as default
7
+ };
@@ -0,0 +1,62 @@
1
+ import { defineComponent as m, computed as c, createElementBlock as i, createCommentVNode as p, openBlock as h, createElementVNode as o, createVNode as a, unref as r, createTextVNode as d, toDisplayString as n } from "vue";
2
+ import { ScalarIconCaretRight as u } from "@scalar/icons";
3
+ import { requestSchema as f } from "@scalar/oas-utils/entities/spec";
4
+ import { schemaModel as b } from "@scalar/oas-utils/helpers";
5
+ import k from "../OperationParameters.vue.js";
6
+ import g from "../OperationResponses.vue.js";
7
+ import x from "../../../../components/HttpMethod/HttpMethod.vue.js";
8
+ const v = {
9
+ key: 0,
10
+ class: "group"
11
+ }, y = { class: "font-code bg-b-1 callback-sticky-offset sticky flex cursor-pointer flex-row items-center gap-2 border-t py-3 text-sm group-open:flex-wrap" }, V = { class: "text-c-1 truncate leading-3 group-open:whitespace-normal" }, C = { class: "text-c-2" }, N = { class: "callback-operation-container flex flex-col gap-2" }, D = /* @__PURE__ */ m({
12
+ __name: "Callback",
13
+ props: {
14
+ callback: {},
15
+ collection: {},
16
+ method: {},
17
+ name: {},
18
+ schemas: {},
19
+ url: {}
20
+ },
21
+ setup(e) {
22
+ const s = c(
23
+ () => b({ ...e.callback, path: e.url, method: e.method }, f, !1)
24
+ ), l = c(
25
+ () => ({
26
+ ...e.callback,
27
+ httpVerb: e.method,
28
+ path: e.url,
29
+ information: {
30
+ responses: e.callback.responses
31
+ }
32
+ })
33
+ );
34
+ return (t, _) => t.collection && s.value ? (h(), i("details", v, [
35
+ o("summary", y, [
36
+ a(r(u), { class: "text-c-3 group-hover:text-c-1 absolute -left-5 size-4 transition-transform group-open:rotate-90" }),
37
+ a(r(x), {
38
+ as: "span",
39
+ class: "request-method",
40
+ method: t.method
41
+ }, null, 8, ["method"]),
42
+ o("div", V, [
43
+ d(n(t.name) + " ", 1),
44
+ o("span", C, n(t.url), 1)
45
+ ])
46
+ ]),
47
+ o("div", N, [
48
+ a(k, {
49
+ operation: s.value,
50
+ schemas: t.schemas
51
+ }, null, 8, ["operation", "schemas"]),
52
+ a(g, {
53
+ operation: l.value,
54
+ schemas: t.schemas
55
+ }, null, 8, ["operation", "schemas"])
56
+ ])
57
+ ])) : p("", !0);
58
+ }
59
+ });
60
+ export {
61
+ D as default
62
+ };
@@ -0,0 +1,10 @@
1
+ import type { Collection, Operation } from '@scalar/oas-utils/entities/spec';
2
+ import type { Schemas } from '../../../../features/Operation/types/schemas';
3
+ type __VLS_Props = {
4
+ callbacks: Operation['callbacks'];
5
+ collection: Collection;
6
+ schemas?: Schemas;
7
+ };
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, {}, HTMLDivElement>;
9
+ export default _default;
10
+ //# sourceMappingURL=Callbacks.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Callbacks.vue.d.ts","sourceRoot":"","sources":["../../../../../src/features/Operation/components/callbacks/Callbacks.vue"],"names":[],"mappings":"AAsCA,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAA;AAE5E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AAMjE,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,SAAS,CAAC,WAAW,CAAC,CAAA;IACjC,UAAU,EAAE,UAAU,CAAA;IACtB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAC;;AA2EF,wBAOG"}
@@ -0,0 +1,30 @@
1
+ import { defineComponent as p, createElementBlock as l, openBlock as e, createElementVNode as k, Fragment as t, renderList as n, createBlock as d } from "vue";
2
+ import b from "./Callback.vue.js";
3
+ const f = { class: "mt-6 gap-3" }, g = /* @__PURE__ */ p({
4
+ __name: "Callbacks",
5
+ props: {
6
+ callbacks: {},
7
+ collection: {},
8
+ schemas: {}
9
+ },
10
+ setup(h) {
11
+ return (c, o) => (e(), l("div", f, [
12
+ o[0] || (o[0] = k("div", { class: "text-c-1 my-3 text-lg font-medium" }, "Callbacks", -1)),
13
+ (e(!0), l(t, null, n(c.callbacks, (a, r) => (e(), l(t, { key: r }, [
14
+ (e(!0), l(t, null, n(a, (s, m) => (e(), l(t, null, [
15
+ (e(!0), l(t, null, n(s, (u, i) => (e(), d(b, {
16
+ callback: u,
17
+ collection: c.collection,
18
+ method: i,
19
+ name: r,
20
+ schemas: c.schemas,
21
+ url: m
22
+ }, null, 8, ["callback", "collection", "method", "name", "schemas", "url"]))), 256))
23
+ ], 64))), 256))
24
+ ], 64))), 128))
25
+ ]));
26
+ }
27
+ });
28
+ export {
29
+ g as default
30
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./Callbacks.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -1,5 +1,5 @@
1
1
  import type { Collection, Operation, Server } from '@scalar/oas-utils/entities/spec';
2
- import type { OpenAPIV2, OpenAPIV3, OpenAPIV3_1 } from '@scalar/openapi-types';
2
+ import type { OpenAPIV3_1 } from '@scalar/openapi-types';
3
3
  import type { TransformedOperation } from '@scalar/types/legacy';
4
4
  type __VLS_Props = {
5
5
  id?: string;
@@ -8,7 +8,7 @@ type __VLS_Props = {
8
8
  operation: Operation;
9
9
  /** @deprecated Use `operation` instead */
10
10
  transformedOperation: TransformedOperation;
11
- schemas?: OpenAPIV2.DefinitionsObject | Record<string, OpenAPIV3.SchemaObject> | Record<string, OpenAPIV3_1.SchemaObject> | unknown;
11
+ schemas?: Record<string, OpenAPIV3_1.SchemaObject> | unknown;
12
12
  };
13
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>;
14
14
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"ClassicLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ClassicLayout.vue"],"names":[],"mappings":"AA4TA,OAAO,KAAK,EACV,UAAU,EACV,SAAS,EACT,MAAM,EACP,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAC9E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAwBhE,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,UAAU,EAAE,UAAU,CAAA;IACtB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,SAAS,EAAE,SAAS,CAAA;IACpB,0CAA0C;IAC1C,oBAAoB,EAAE,oBAAoB,CAAA;IAC1C,OAAO,CAAC,EACJ,SAAS,CAAC,iBAAiB,GAC3B,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,YAAY,CAAC,GACtC,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,GACxC,OAAO,CAAA;CACZ,CAAC;;AAyQF,wBAOG"}
1
+ {"version":3,"file":"ClassicLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ClassicLayout.vue"],"names":[],"mappings":"AA6TA,OAAO,KAAK,EACV,UAAU,EACV,SAAS,EACT,MAAM,EACP,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAwBhE,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,UAAU,EAAE,UAAU,CAAA;IACtB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,SAAS,EAAE,SAAS,CAAA;IACpB,0CAA0C;IAC1C,oBAAoB,EAAE,oBAAoB,CAAA;IAC1C,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,GAAG,OAAO,CAAA;CAC7D,CAAC;;AAyQF,wBAOG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./ClassicLayout.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-097505a1"]]);
4
+ const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-963f75f8"]]);
5
5
  export {
6
- m as default
6
+ s as default
7
7
  };
@@ -1,19 +1,19 @@
1
- import { defineComponent as C, computed as b, createBlock as r, openBlock as s, unref as e, createSlots as k, withCtx as a, createElementVNode as t, createVNode as i, createCommentVNode as m, withModifiers as O, toDisplayString as f, normalizeClass as g, createTextVNode as S } from "vue";
2
- import { ScalarIcon as _, ScalarIconButton as B, ScalarMarkdown as R } from "@scalar/components";
3
- import { useClipboard as w } from "@scalar/use-hooks/useClipboard";
4
- import I from "../../../components/OperationPath.vue.js";
5
- import { useConfig as N } from "../../../hooks/useConfig.js";
6
- import { isOperationDeprecated as T, getOperationStability as h, getOperationStabilityColor as V } from "../../../libs/openapi.js";
7
- import $ from "../components/OperationParameters.vue.js";
8
- import q from "../components/OperationResponses.vue.js";
9
- import E from "../../../components/Section/SectionAccordion.vue.js";
10
- import z from "../../ExampleResponses/ExampleResponses.vue.js";
11
- import A from "../../ExampleRequest/ExampleRequest.vue.js";
12
- import D from "../../TestRequestButton/TestRequestButton.vue.js";
13
- import L from "../../../components/HttpMethod/HttpMethod.vue.js";
14
- import M from "../../../components/Anchor/Anchor.vue.js";
15
- import P from "../../../components/Badge/Badge.vue.js";
16
- const U = { class: "operation-title" }, j = { class: "operation-details" }, F = { class: "endpoint-label" }, G = { class: "endpoint-label-path" }, H = { class: "endpoint-label-name" }, J = { class: "endpoint-content" }, K = { class: "operation-details-card" }, Q = { class: "operation-details-card-item" }, W = { class: "operation-details-card-item" }, fo = /* @__PURE__ */ C({
1
+ import { defineComponent as C, computed as b, createBlock as a, openBlock as r, unref as e, createSlots as g, withCtx as n, createElementVNode as t, createVNode as i, createCommentVNode as c, withModifiers as k, toDisplayString as m, normalizeClass as O, createTextVNode as S } from "vue";
2
+ import { ScalarIcon as _, ScalarIconButton as B, ScalarMarkdown as w } from "@scalar/components";
3
+ import { useClipboard as R } from "@scalar/use-hooks/useClipboard";
4
+ import T from "../../../components/OperationPath.vue.js";
5
+ import { useConfig as I } from "../../../hooks/useConfig.js";
6
+ import { isOperationDeprecated as N, getOperationStability as h, getOperationStabilityColor as P } from "../../../libs/openapi.js";
7
+ import V from "../components/OperationParameters.vue.js";
8
+ import $ from "../components/OperationResponses.vue.js";
9
+ import q from "../../../components/Section/SectionAccordion.vue.js";
10
+ import A from "../../ExampleResponses/ExampleResponses.vue.js";
11
+ import E from "../../ExampleRequest/ExampleRequest.vue.js";
12
+ import z from "../../TestRequestButton/TestRequestButton.vue.js";
13
+ import D from "../../../components/HttpMethod/HttpMethod.vue.js";
14
+ import L from "../../../components/Anchor/Anchor.vue.js";
15
+ import M from "../../../components/Badge/Badge.vue.js";
16
+ const U = { class: "operation-title" }, j = { class: "operation-details" }, F = { class: "endpoint-label" }, G = { class: "endpoint-label-path" }, H = { class: "endpoint-label-name" }, J = { class: "endpoint-content" }, K = { class: "operation-details-card" }, Q = { class: "operation-details-card-item" }, W = { class: "operation-details-card-item" }, ho = /* @__PURE__ */ C({
17
17
  __name: "ClassicLayout",
18
18
  props: {
19
19
  id: {},
@@ -23,45 +23,45 @@ const U = { class: "operation-title" }, j = { class: "operation-details" }, F =
23
23
  transformedOperation: {},
24
24
  schemas: {}
25
25
  },
26
- setup(p) {
27
- const { copyToClipboard: u } = w(), v = N(), y = b(() => p.operation.summary || p.operation.path);
28
- return (o, l) => {
29
- var d;
30
- return s(), r(e(E), {
26
+ setup(s) {
27
+ const { copyToClipboard: f } = R(), u = I(), v = b(() => s.operation.summary || s.operation.path);
28
+ return (o, p) => {
29
+ var l;
30
+ return r(), a(e(q), {
31
31
  id: o.id,
32
32
  class: "reference-endpoint",
33
33
  transparent: ""
34
- }, k({
35
- title: a(() => [
34
+ }, g({
35
+ title: n(() => [
36
36
  t("div", U, [
37
37
  t("div", j, [
38
- i(e(L), {
38
+ i(e(D), {
39
39
  class: "endpoint-type",
40
40
  method: o.operation.method,
41
41
  short: ""
42
42
  }, null, 8, ["method"]),
43
- i(e(M), {
43
+ i(e(L), {
44
44
  id: o.id ?? "",
45
45
  class: "endpoint-anchor"
46
46
  }, {
47
- default: a(() => [
47
+ default: n(() => [
48
48
  t("h3", F, [
49
49
  t("div", G, [
50
- i(I, {
51
- deprecated: e(T)(o.operation),
50
+ i(T, {
51
+ deprecated: e(N)(o.operation),
52
52
  path: o.operation.path
53
53
  }, null, 8, ["deprecated", "path"])
54
54
  ]),
55
- t("div", H, f(y.value), 1),
56
- e(h)(o.operation) ? (s(), r(e(P), {
55
+ t("div", H, m(v.value), 1),
56
+ e(h)(o.operation) ? (r(), a(e(M), {
57
57
  key: 0,
58
- class: g(e(V)(o.operation))
58
+ class: O(e(P)(o.operation))
59
59
  }, {
60
- default: a(() => [
61
- S(f(e(h)(o.operation)), 1)
60
+ default: n(() => [
61
+ S(m(e(h)(o.operation)), 1)
62
62
  ]),
63
63
  _: 1
64
- }, 8, ["class"])) : m("", !0)
64
+ }, 8, ["class"])) : c("", !0)
65
65
  ])
66
66
  ]),
67
67
  _: 1
@@ -69,13 +69,13 @@ const U = { class: "operation-title" }, j = { class: "operation-details" }, F =
69
69
  ])
70
70
  ])
71
71
  ]),
72
- actions: a(({ active: n }) => {
73
- var c;
72
+ actions: n(({ active: y }) => {
73
+ var d;
74
74
  return [
75
- n ? (s(), r(e(D), {
75
+ y ? (r(), a(e(z), {
76
76
  key: 0,
77
77
  operation: o.operation
78
- }, null, 8, ["operation"])) : (c = e(v)) != null && c.hideTestRequestButton ? m("", !0) : (s(), r(e(_), {
78
+ }, null, 8, ["operation"])) : (d = e(u)) != null && d.hideTestRequestButton ? c("", !0) : (r(), a(e(_), {
79
79
  key: 1,
80
80
  class: "endpoint-try-hint",
81
81
  icon: "Play",
@@ -87,31 +87,31 @@ const U = { class: "operation-title" }, j = { class: "operation-details" }, F =
87
87
  label: "Copy endpoint URL",
88
88
  size: "xs",
89
89
  variant: "ghost",
90
- onClick: l[0] || (l[0] = O((X) => e(u)(o.operation.path), ["stop"]))
90
+ onClick: p[0] || (p[0] = k((X) => e(f)(o.operation.path), ["stop"]))
91
91
  })
92
92
  ];
93
93
  }),
94
- default: a(() => [
94
+ default: n(() => [
95
95
  t("div", J, [
96
96
  t("div", K, [
97
97
  t("div", Q, [
98
- i($, {
98
+ i(V, {
99
99
  operation: o.operation,
100
100
  schemas: o.schemas
101
101
  }, null, 8, ["operation", "schemas"])
102
102
  ]),
103
103
  t("div", W, [
104
- i(q, {
104
+ i($, {
105
105
  collapsableItems: !1,
106
106
  operation: o.transformedOperation,
107
107
  schemas: o.schemas
108
108
  }, null, 8, ["operation", "schemas"])
109
109
  ])
110
110
  ]),
111
- i(e(z), {
111
+ i(e(A), {
112
112
  responses: o.operation.responses
113
113
  }, null, 8, ["responses"]),
114
- i(e(A), {
114
+ i(e(E), {
115
115
  collection: o.collection,
116
116
  operation: o.operation,
117
117
  server: o.server,
@@ -121,17 +121,17 @@ const U = { class: "operation-title" }, j = { class: "operation-details" }, F =
121
121
  ]),
122
122
  _: 2
123
123
  }, [
124
- (d = o.operation) != null && d.description ? {
124
+ (l = o.operation) != null && l.description ? {
125
125
  name: "description",
126
- fn: a(() => {
127
- var n;
128
- return [
129
- i(e(R), {
130
- value: (n = o.operation) == null ? void 0 : n.description,
131
- withImages: ""
132
- }, null, 8, ["value"])
133
- ];
134
- }),
126
+ fn: n(() => [
127
+ i(e(w), {
128
+ value: o.operation.description,
129
+ withImages: "",
130
+ withAnchors: "",
131
+ transformType: "heading",
132
+ anchorPrefix: o.id
133
+ }, null, 8, ["value", "anchorPrefix"])
134
+ ]),
135
135
  key: "0"
136
136
  } : void 0
137
137
  ]), 1032, ["id"]);
@@ -139,5 +139,5 @@ const U = { class: "operation-title" }, j = { class: "operation-details" }, F =
139
139
  }
140
140
  });
141
141
  export {
142
- fo as default
142
+ ho as default
143
143
  };
@@ -1,6 +1,6 @@
1
1
  import type { Collection, Operation, Server } from '@scalar/oas-utils/entities/spec';
2
- import type { OpenAPIV2, OpenAPIV3, OpenAPIV3_1 } from '@scalar/openapi-types';
3
2
  import type { TransformedOperation } from '@scalar/types/legacy';
3
+ import type { Schemas } from '../../../features/Operation/types/schemas';
4
4
  type __VLS_Props = {
5
5
  id?: string;
6
6
  collection: Collection;
@@ -8,7 +8,7 @@ type __VLS_Props = {
8
8
  operation: Operation;
9
9
  /** @deprecated Use `operation` instead */
10
10
  transformedOperation: TransformedOperation;
11
- schemas?: OpenAPIV2.DefinitionsObject | Record<string, OpenAPIV3.SchemaObject> | Record<string, OpenAPIV3_1.SchemaObject> | unknown;
11
+ schemas?: Schemas;
12
12
  };
13
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>;
14
14
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ModernLayout.vue"],"names":[],"mappings":"AAiJA,OAAO,KAAK,EACV,UAAU,EACV,SAAS,EACT,MAAM,EACP,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAC9E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AA6BhE,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,UAAU,EAAE,UAAU,CAAA;IACtB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,SAAS,EAAE,SAAS,CAAA;IACpB,0CAA0C;IAC1C,oBAAoB,EAAE,oBAAoB,CAAA;IAC1C,OAAO,CAAC,EACJ,SAAS,CAAC,iBAAiB,GAC3B,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,YAAY,CAAC,GACtC,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,GACxC,OAAO,CAAA;CACZ,CAAC;;AA2OF,wBAOG"}
1
+ {"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ModernLayout.vue"],"names":[],"mappings":"AA2JA,OAAO,KAAK,EACV,UAAU,EACV,SAAS,EACT,MAAM,EACP,MAAM,iCAAiC,CAAA;AAExC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAgBhE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AAejE,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,UAAU,EAAE,UAAU,CAAA;IACtB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,SAAS,EAAE,SAAS,CAAA;IACpB,0CAA0C;IAC1C,oBAAoB,EAAE,oBAAoB,CAAA;IAC1C,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAC;;AA2PF,wBAOG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./ModernLayout.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-5fb2c298"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-e6c411b5"]]);
5
5
  export {
6
6
  m as default
7
7
  };