@scalar/api-reference 1.30.0 → 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 (141) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/dist/browser/standalone.js +6352 -6334
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
  5. package/dist/components/ApiReferenceLayout.vue.js +1 -1
  6. package/dist/components/ApiReferenceLayout.vue2.js +164 -181
  7. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts.map +1 -1
  8. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.js +2 -2
  9. package/dist/components/Content/ClientLibraries/ClientLibraries.vue2.js +56 -51
  10. package/dist/components/Content/Content.vue.d.ts.map +1 -1
  11. package/dist/components/Content/Content.vue.js +1 -1
  12. package/dist/components/Content/Content.vue2.js +5 -5
  13. package/dist/components/Content/Introduction/Introduction.vue.d.ts +2 -2
  14. package/dist/components/Content/Introduction/Introduction.vue.d.ts.map +1 -1
  15. package/dist/components/Content/Introduction/Introduction.vue.js +2 -2
  16. package/dist/components/Content/Introduction/Introduction.vue2.js +57 -63
  17. package/dist/components/Content/Lazy/Loading.vue.d.ts.map +1 -1
  18. package/dist/components/Content/Lazy/Loading.vue.js +46 -46
  19. package/dist/components/Content/Models/Models.vue.d.ts +2 -2
  20. package/dist/components/Content/Models/Models.vue.d.ts.map +1 -1
  21. package/dist/components/Content/Models/Models.vue.js +2 -2
  22. package/dist/components/Content/Models/Models.vue2.js +7 -6
  23. package/dist/components/Content/Models/ModelsAccordion.vue.d.ts +2 -2
  24. package/dist/components/Content/Models/ModelsAccordion.vue.d.ts.map +1 -1
  25. package/dist/components/Content/Models/ModelsAccordion.vue.js +2 -2
  26. package/dist/components/Content/Schema/Schema.preview.d.ts +98 -56
  27. package/dist/components/Content/Schema/Schema.preview.d.ts.map +1 -1
  28. package/dist/components/Content/Schema/Schema.vue.d.ts +6 -3
  29. package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
  30. package/dist/components/Content/Schema/Schema.vue.js +2 -2
  31. package/dist/components/Content/Schema/Schema.vue2.js +127 -118
  32. package/dist/components/Content/Schema/SchemaComposition.vue.d.ts +2 -2
  33. package/dist/components/Content/Schema/SchemaComposition.vue.d.ts.map +1 -1
  34. package/dist/components/Content/Schema/SchemaComposition.vue.js +57 -53
  35. package/dist/components/Content/Schema/SchemaDiscriminator.vue.js +1 -1
  36. package/dist/components/Content/Schema/SchemaHeading.vue.d.ts +2 -2
  37. package/dist/components/Content/Schema/SchemaHeading.vue.d.ts.map +1 -1
  38. package/dist/components/Content/Schema/SchemaHeading.vue.js +1 -1
  39. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +4 -2
  40. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
  41. package/dist/components/Content/Schema/SchemaProperty.vue.js +2 -2
  42. package/dist/components/Content/Schema/SchemaProperty.vue2.js +40 -38
  43. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts +3 -2
  44. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
  45. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +2 -2
  46. package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +152 -152
  47. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.d.ts +2 -2
  48. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.d.ts.map +1 -1
  49. package/dist/components/Content/Tag/TagList.vue.d.ts +2 -2
  50. package/dist/components/Content/Tag/TagList.vue.d.ts.map +1 -1
  51. package/dist/components/DocumentSelector/DocumentSelector.vue.js +3 -3
  52. package/dist/components/Layouts/ClassicLayout.vue.js +10 -8
  53. package/dist/components/Layouts/Layouts.vue.js +11 -9
  54. package/dist/components/Layouts/ModernLayout.vue2.js +22 -20
  55. package/dist/components/Section/SectionHeader.vue.d.ts.map +1 -1
  56. package/dist/components/Section/SectionHeader.vue.js +2 -2
  57. package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
  58. package/dist/components/Sidebar/Sidebar.vue.js +2 -2
  59. package/dist/components/Sidebar/Sidebar.vue2.js +56 -56
  60. package/dist/components/SingleApiReference.vue.d.ts.map +1 -1
  61. package/dist/components/SingleApiReference.vue.js +27 -33
  62. package/dist/esm.d.ts.map +1 -1
  63. package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts +2 -2
  64. package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts.map +1 -1
  65. package/dist/features/ApiClientModal/ApiClientModal.vue.js +49 -50
  66. package/dist/features/ApiClientModal/useApiClient.d.ts +196 -196
  67. package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
  68. package/dist/features/DocumentSource/hooks/useDocumentFetcher.d.ts +11 -0
  69. package/dist/features/DocumentSource/hooks/useDocumentFetcher.d.ts.map +1 -0
  70. package/dist/features/DocumentSource/hooks/useDocumentFetcher.js +38 -0
  71. package/dist/features/DocumentSource/hooks/useDocumentSource.d.ts +21 -0
  72. package/dist/features/DocumentSource/hooks/useDocumentSource.d.ts.map +1 -0
  73. package/dist/features/DocumentSource/hooks/useDocumentSource.js +94 -0
  74. package/dist/features/DocumentSource/index.d.ts +2 -0
  75. package/dist/features/DocumentSource/index.d.ts.map +1 -0
  76. package/dist/features/DownloadLink/DownloadLink.vue.d.ts +1 -1
  77. package/dist/features/DownloadLink/DownloadLink.vue.d.ts.map +1 -1
  78. package/dist/features/DownloadLink/DownloadLink.vue.js +1 -1
  79. package/dist/features/DownloadLink/DownloadLink.vue2.js +18 -17
  80. package/dist/features/DownloadLink/index.d.ts +1 -0
  81. package/dist/features/DownloadLink/index.d.ts.map +1 -1
  82. package/dist/features/DownloadLink/openapi-version-symbol.d.ts +2 -0
  83. package/dist/features/DownloadLink/openapi-version-symbol.d.ts.map +1 -0
  84. package/dist/features/DownloadLink/openapi-version-symbol.js +4 -0
  85. package/dist/features/Operation/Operation.vue.d.ts +2 -2
  86. package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
  87. package/dist/features/Operation/components/OperationParameters.vue.d.ts +2 -2
  88. package/dist/features/Operation/components/OperationParameters.vue.d.ts.map +1 -1
  89. package/dist/features/Operation/components/OperationResponses.vue.d.ts +2 -2
  90. package/dist/features/Operation/components/OperationResponses.vue.d.ts.map +1 -1
  91. package/dist/features/Operation/components/ParameterHeaders.vue.d.ts +2 -2
  92. package/dist/features/Operation/components/ParameterHeaders.vue.d.ts.map +1 -1
  93. package/dist/features/Operation/components/ParameterHeaders.vue.js +2 -2
  94. package/dist/features/Operation/components/ParameterList.vue.d.ts +2 -2
  95. package/dist/features/Operation/components/ParameterList.vue.d.ts.map +1 -1
  96. package/dist/features/Operation/components/ParameterList.vue.js +2 -2
  97. package/dist/features/Operation/components/ParameterListItem.vue.d.ts +2 -2
  98. package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
  99. package/dist/features/Operation/components/ParameterListItem.vue.js +3 -3
  100. package/dist/features/Operation/components/ParameterListItem.vue2.js +6 -6
  101. package/dist/features/Operation/components/RequestBody.vue.d.ts +2 -2
  102. package/dist/features/Operation/components/RequestBody.vue.d.ts.map +1 -1
  103. package/dist/features/Operation/components/RequestBody.vue.js +2 -2
  104. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +2 -2
  105. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
  106. package/dist/features/Operation/layouts/ClassicLayout.vue.js +2 -2
  107. package/dist/features/Operation/layouts/ClassicLayout.vue2.js +55 -55
  108. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
  109. package/dist/features/Operation/layouts/ModernLayout.vue.js +1 -1
  110. package/dist/features/Operation/layouts/ModernLayout.vue2.js +35 -32
  111. package/dist/features/Operation/types/schemas.d.ts +2 -2
  112. package/dist/features/Operation/types/schemas.d.ts.map +1 -1
  113. package/dist/features/Search/SearchButton.vue.js +2 -2
  114. package/dist/helpers/local-storage.d.ts +8 -0
  115. package/dist/helpers/local-storage.d.ts.map +1 -0
  116. package/dist/helpers/local-storage.js +6 -0
  117. package/dist/helpers/measure.d.ts +21 -0
  118. package/dist/helpers/measure.d.ts.map +1 -0
  119. package/dist/helpers/measure.js +7 -0
  120. package/dist/helpers/parse.d.ts +3 -5
  121. package/dist/helpers/parse.d.ts.map +1 -1
  122. package/dist/helpers/parse.js +64 -86
  123. package/dist/helpers/scroll-to-id.d.ts.map +1 -1
  124. package/dist/helpers/scroll-to-id.js +18 -4
  125. package/dist/index.d.ts +0 -1
  126. package/dist/index.d.ts.map +1 -1
  127. package/dist/index.js +33 -35
  128. package/dist/libs/openapi.d.ts +3 -3
  129. package/dist/libs/openapi.d.ts.map +1 -1
  130. package/dist/libs/openapi.js +35 -42
  131. package/dist/standalone/lib/html-api.d.ts.map +1 -1
  132. package/dist/standalone/lib/html-api.js +15 -15
  133. package/dist/stores/useHttpClientStore.d.ts.map +1 -1
  134. package/dist/stores/useHttpClientStore.js +19 -18
  135. package/dist/style.css +1 -1
  136. package/dist/types.d.ts +27 -3
  137. package/dist/types.d.ts.map +1 -1
  138. package/package.json +13 -14
  139. package/dist/hooks/useReactiveSpec.d.ts +0 -448
  140. package/dist/hooks/useReactiveSpec.d.ts.map +0 -1
  141. 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
  };
@@ -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 +1 @@
1
- {"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ModernLayout.vue"],"names":[],"mappings":"AAuJA,OAAO,KAAK,EACV,UAAU,EACV,SAAS,EACT,MAAM,EACP,MAAM,iCAAiC,CAAA;AACxC,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
+ {"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-af49b015"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-e6c411b5"]]);
5
5
  export {
6
6
  m as default
7
7
  };
@@ -2,22 +2,22 @@ import { defineComponent as y, useId as O, computed as S, createBlock as t, open
2
2
  import { ScalarMarkdown as k, ScalarErrorBoundary as l } from "@scalar/components";
3
3
  import C from "../../../components/OperationPath.vue.js";
4
4
  import { useConfig as B } from "../../../hooks/useConfig.js";
5
- import { getOperationStability as b, getOperationStabilityColor as E, isOperationDeprecated as N } from "../../../libs/openapi.js";
6
- import V from "../components/callbacks/Callbacks.vue.js";
7
- import _ from "../components/OperationParameters.vue.js";
8
- import w from "../components/OperationResponses.vue.js";
5
+ import { getOperationStability as b, getOperationStabilityColor as w, isOperationDeprecated as E } from "../../../libs/openapi.js";
6
+ import N from "../components/callbacks/Callbacks.vue.js";
7
+ import T from "../components/OperationParameters.vue.js";
8
+ import V from "../components/OperationResponses.vue.js";
9
9
  import I from "../../../components/Section/Section.vue.js";
10
- import R from "../../../components/Section/SectionContent.vue.js";
11
- import T from "../../../components/Badge/Badge.vue.js";
12
- import $ from "../../../components/Section/SectionHeader.vue.js";
13
- import q from "../../../components/Anchor/Anchor.vue.js";
14
- import D from "../../../components/Section/SectionHeaderTag.vue.js";
15
- import H from "../../../components/Section/SectionColumns.vue.js";
10
+ import P from "../../../components/Section/SectionContent.vue.js";
11
+ import R from "../../../components/Badge/Badge.vue.js";
12
+ import _ from "../../../components/Section/SectionHeader.vue.js";
13
+ import $ from "../../../components/Anchor/Anchor.vue.js";
14
+ import q from "../../../components/Section/SectionHeaderTag.vue.js";
15
+ import A from "../../../components/Section/SectionColumns.vue.js";
16
16
  import g from "../../../components/Section/SectionColumn.vue.js";
17
- import L from "../../ExampleRequest/ExampleRequest.vue.js";
18
- import M from "../../TestRequestButton/TestRequestButton.vue.js";
19
- import z from "../../ExampleResponses/ExampleResponses.vue.js";
20
- const A = { class: "operation-details" }, P = { class: "examples" }, se = /* @__PURE__ */ y({
17
+ import D from "../../ExampleRequest/ExampleRequest.vue.js";
18
+ import H from "../../TestRequestButton/TestRequestButton.vue.js";
19
+ import L from "../../ExampleResponses/ExampleResponses.vue.js";
20
+ const M = { class: "operation-details" }, z = { class: "examples" }, se = /* @__PURE__ */ y({
21
21
  __name: "ModernLayout",
22
22
  props: {
23
23
  id: {},
@@ -36,13 +36,13 @@ const A = { class: "operation-details" }, P = { class: "examples" }, se = /* @__
36
36
  tabindex: "-1"
37
37
  }, {
38
38
  default: r(() => [
39
- a(o(R), {
39
+ a(o(P), {
40
40
  loading: o(v).isLoading
41
41
  }, {
42
42
  default: r(() => [
43
- o(b)(e.operation) ? (n(), t(o(T), {
43
+ o(b)(e.operation) ? (n(), t(o(R), {
44
44
  key: 0,
45
- class: f(o(E)(e.operation))
45
+ class: f(o(w)(e.operation))
46
46
  }, {
47
47
  default: r(() => [
48
48
  u(h(o(b)(e.operation)), 1)
@@ -50,15 +50,15 @@ const A = { class: "operation-details" }, P = { class: "examples" }, se = /* @__
50
50
  _: 1
51
51
  }, 8, ["class"])) : c("", !0),
52
52
  i("div", {
53
- class: f(o(N)(e.operation) ? "deprecated" : "")
53
+ class: f(o(E)(e.operation) ? "deprecated" : "")
54
54
  }, [
55
- a(o($), null, {
55
+ a(o(_), null, {
56
56
  default: r(() => [
57
- a(o(q), {
57
+ a(o($), {
58
58
  id: e.id ?? ""
59
59
  }, {
60
60
  default: r(() => [
61
- a(o(D), {
61
+ a(o(q), {
62
62
  id: o(p),
63
63
  level: 3
64
64
  }, {
@@ -74,26 +74,29 @@ const A = { class: "operation-details" }, P = { class: "examples" }, se = /* @__
74
74
  _: 1
75
75
  })
76
76
  ], 2),
77
- a(o(H), null, {
77
+ a(o(A), null, {
78
78
  default: r(() => [
79
79
  a(o(g), null, {
80
80
  default: r(() => [
81
- i("div", A, [
81
+ i("div", M, [
82
82
  a(o(k), {
83
83
  value: e.operation.description,
84
- withImages: ""
85
- }, null, 8, ["value"]),
86
- a(_, {
84
+ withImages: "",
85
+ withAnchors: "",
86
+ transformType: "heading",
87
+ anchorPrefix: e.id
88
+ }, null, 8, ["value", "anchorPrefix"]),
89
+ a(T, {
87
90
  operation: e.operation,
88
91
  schemas: e.schemas
89
92
  }, null, 8, ["operation", "schemas"]),
90
- a(w, {
93
+ a(V, {
91
94
  operation: e.transformedOperation,
92
95
  schemas: e.schemas
93
96
  }, null, 8, ["operation", "schemas"]),
94
97
  a(o(l), null, {
95
98
  default: r(() => [
96
- e.operation.callbacks ? (n(), t(V, {
99
+ e.operation.callbacks ? (n(), t(N, {
97
100
  key: 0,
98
101
  callbacks: e.operation.callbacks,
99
102
  collection: e.collection,
@@ -108,10 +111,10 @@ const A = { class: "operation-details" }, P = { class: "examples" }, se = /* @__
108
111
  }),
109
112
  a(o(g), null, {
110
113
  default: r(() => [
111
- i("div", P, [
114
+ i("div", z, [
112
115
  a(o(l), null, {
113
116
  default: r(() => [
114
- a(o(L), {
117
+ a(o(D), {
115
118
  collection: e.collection,
116
119
  fallback: "",
117
120
  operation: e.operation,
@@ -129,7 +132,7 @@ const A = { class: "operation-details" }, P = { class: "examples" }, se = /* @__
129
132
  ];
130
133
  }),
131
134
  footer: r(() => [
132
- a(o(M), { operation: e.operation }, null, 8, ["operation"])
135
+ a(o(H), { operation: e.operation }, null, 8, ["operation"])
133
136
  ]),
134
137
  _: 1
135
138
  }, 8, ["collection", "operation", "server", "transformedOperation"])
@@ -138,7 +141,7 @@ const A = { class: "operation-details" }, P = { class: "examples" }, se = /* @__
138
141
  }),
139
142
  a(o(l), null, {
140
143
  default: r(() => [
141
- a(o(z), {
144
+ a(o(L), {
142
145
  responses: e.operation.responses,
143
146
  style: { "margin-top": "12px" }
144
147
  }, null, 8, ["responses"])
@@ -1,3 +1,3 @@
1
- import type { OpenAPIV2, OpenAPIV3, OpenAPIV3_1 } from '@scalar/openapi-types';
2
- export type Schemas = OpenAPIV2.DefinitionsObject | Record<string, OpenAPIV3.SchemaObject> | Record<string, OpenAPIV3_1.SchemaObject> | unknown;
1
+ import type { OpenAPIV3_1 } from '@scalar/openapi-types';
2
+ export type Schemas = Record<string, OpenAPIV3_1.SchemaObject> | unknown;
3
3
  //# sourceMappingURL=schemas.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/types/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAE9E,MAAM,MAAM,OAAO,GACf,SAAS,CAAC,iBAAiB,GAC3B,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,YAAY,CAAC,GACtC,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,GACxC,OAAO,CAAA"}
1
+ {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/types/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAExD,MAAM,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,GAAG,OAAO,CAAA"}
@@ -1,7 +1,7 @@
1
1
  import o from "./SearchButton.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-d21ab44f"]]);
4
+ const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-ec9c0928"]]);
5
5
  export {
6
- m as default
6
+ e as default
7
7
  };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * localStorage keys for all reference resources
3
+ * to ensure we do not have any conflicts
4
+ */
5
+ export declare const REFERENCE_LS_KEYS: {
6
+ readonly SELECTED_CLIENT: "scalar-reference-selected-client";
7
+ };
8
+ //# sourceMappingURL=local-storage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"local-storage.d.ts","sourceRoot":"","sources":["../../src/helpers/local-storage.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,iBAAiB;;CAEpB,CAAA"}
@@ -0,0 +1,6 @@
1
+ const e = {
2
+ SELECTED_CLIENT: "scalar-reference-selected-client"
3
+ };
4
+ export {
5
+ e as REFERENCE_LS_KEYS
6
+ };
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Measures the execution time of a function and logs it.
3
+ * Works with both async and sync functions.
4
+ * Returns the result of the measured function.
5
+ *
6
+ * @example
7
+ * ```ts
8
+ * // Async function
9
+ * const result = await measure('api-call', async () => {
10
+ * return await fetchData()
11
+ * })
12
+ *
13
+ * // Sync function
14
+ * const result = measure('computation', () => {
15
+ * return heavyComputation()
16
+ * })
17
+ * ```
18
+ */
19
+ export declare function measure<T>(name: string, fn: () => Promise<T>): Promise<T>;
20
+ export declare function measure<T>(name: string, fn: () => T): T;
21
+ //# sourceMappingURL=measure.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"measure.d.ts","sourceRoot":"","sources":["../../src/helpers/measure.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,OAAO,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAA;AAC1E,wBAAgB,OAAO,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,GAAG,CAAC,CAAA"}
@@ -0,0 +1,7 @@
1
+ function c(n, o) {
2
+ const r = performance.now(), t = o(), e = performance.now(), s = Math.round(e - r);
3
+ return console.info(`${n}: ${s} ms`), t;
4
+ }
5
+ export {
6
+ c as measure
7
+ };
@@ -1,11 +1,9 @@
1
+ import type { OpenAPIV3_1 } from '@scalar/openapi-types';
1
2
  import type { Spec } from '@scalar/types/legacy';
2
- import type { UnknownObject } from '@scalar/types/utils';
3
3
  /**
4
- * Parse the given specification and return a super custom transformed specification.
4
+ * Parse the given dereferencedDocument and return a super custom transformed dereferencedDocument.
5
5
  *
6
6
  * @deprecated Try to use a store instead.
7
7
  */
8
- export declare const parse: (specification: UnknownObject | string | undefined, { proxyUrl, }?: {
9
- proxyUrl?: string;
10
- }) => Promise<Spec>;
8
+ export declare const parse: (dereferencedDocument: OpenAPIV3_1.Document) => Promise<Spec>;
11
9
  //# sourceMappingURL=parse.d.ts.map