@scalar/api-reference 1.32.6 → 1.32.8

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 (186) hide show
  1. package/CHANGELOG.md +53 -0
  2. package/dist/browser/standalone.js +16427 -16210
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/Anchor/Anchor.vue2.js +2 -1
  5. package/dist/components/ApiReference.vue.d.ts.map +1 -1
  6. package/dist/components/ApiReference.vue.js +8 -8
  7. package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
  8. package/dist/components/ApiReferenceLayout.vue.js +2 -2
  9. package/dist/components/ApiReferenceLayout.vue2.js +164 -176
  10. package/dist/components/Badge/Badge.vue.js +1 -1
  11. package/dist/components/Content/Content.vue.d.ts.map +1 -1
  12. package/dist/components/Content/Content.vue.js +2 -2
  13. package/dist/components/Content/Content.vue2.js +20 -20
  14. package/dist/components/Content/Models/Models.vue2.js +5 -4
  15. package/dist/components/Content/Models/ModelsAccordion.vue2.js +2 -1
  16. package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
  17. package/dist/components/Content/Schema/Schema.vue.js +2 -2
  18. package/dist/components/Content/Schema/Schema.vue2.js +99 -157
  19. package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue.d.ts +7 -0
  20. package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue.d.ts.map +1 -0
  21. package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue.js +7 -0
  22. package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue2.js +25 -0
  23. package/dist/components/Content/Schema/SchemaEnumValues.vue.d.ts.map +1 -1
  24. package/dist/components/Content/Schema/SchemaEnumValues.vue.js +1 -1
  25. package/dist/components/Content/Schema/SchemaEnumValues.vue2.js +73 -90
  26. package/dist/components/Content/Schema/SchemaObjectProperties.vue.d.ts +21 -0
  27. package/dist/components/Content/Schema/SchemaObjectProperties.vue.d.ts.map +1 -0
  28. package/dist/components/Content/Schema/SchemaObjectProperties.vue.js +92 -0
  29. package/dist/components/Content/Schema/SchemaObjectProperties.vue2.js +4 -0
  30. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +1 -2
  31. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
  32. package/dist/components/Content/Schema/SchemaProperty.vue.js +2 -2
  33. package/dist/components/Content/Schema/SchemaProperty.vue2.js +54 -55
  34. package/dist/components/Content/Schema/SchemaPropertyExamples.vue.js +2 -2
  35. package/dist/components/Content/Schema/SchemaPropertyExamples.vue2.js +1 -1
  36. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts +0 -2
  37. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
  38. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +1 -1
  39. package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +95 -104
  40. package/dist/components/Content/Schema/helpers/{formatExample.d.ts → format-example.d.ts} +1 -1
  41. package/dist/components/Content/Schema/helpers/format-example.d.ts.map +1 -0
  42. package/dist/components/Content/Schema/helpers/is-type-object.d.ts +3 -0
  43. package/dist/components/Content/Schema/helpers/is-type-object.d.ts.map +1 -0
  44. package/dist/components/Content/Schema/helpers/is-type-object.js +17 -0
  45. package/dist/components/Content/Schema/helpers/{optimizeValueForDisplay.d.ts → optimize-value-for-display.d.ts} +1 -1
  46. package/dist/components/Content/Schema/helpers/optimize-value-for-display.d.ts.map +1 -0
  47. package/dist/components/Content/Tag/OperationsList.vue.d.ts.map +1 -1
  48. package/dist/components/Content/Tag/OperationsList.vue.js +1 -1
  49. package/dist/components/Content/Tag/OperationsList.vue2.js +18 -22
  50. package/dist/components/Content/Tag/OperationsListItem.vue.d.ts.map +1 -1
  51. package/dist/components/Content/Tag/OperationsListItem.vue.js +2 -2
  52. package/dist/components/Content/Tag/OperationsListItem.vue2.js +33 -34
  53. package/dist/components/Content/Tag/Tag.vue.js +2 -1
  54. package/dist/components/Content/Tag/TagSection.vue.d.ts.map +1 -1
  55. package/dist/components/GettingStarted.vue2.js +8 -6
  56. package/dist/components/HttpMethod/HttpMethod.vue.d.ts +2 -2
  57. package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -1
  58. package/dist/components/Section/SectionAccordion.vue.d.ts.map +1 -1
  59. package/dist/components/Section/SectionAccordion.vue.js +1 -1
  60. package/dist/components/Section/SectionAccordion.vue2.js +28 -29
  61. package/dist/components/Section/SectionContainerAccordion.vue.d.ts.map +1 -1
  62. package/dist/components/Section/SectionContainerAccordion.vue.js +2 -2
  63. package/dist/components/Section/SectionContainerAccordion.vue2.js +17 -18
  64. package/dist/features/Operation/Operation.vue.d.ts +6 -6
  65. package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
  66. package/dist/features/Operation/Operation.vue.js +50 -49
  67. package/dist/features/Operation/components/ContentTypeSelect.vue.js +8 -7
  68. package/dist/features/Operation/components/ParameterListItem.vue.js +1 -1
  69. package/dist/features/Operation/components/callbacks/Callback.vue.d.ts +8 -6
  70. package/dist/features/Operation/components/callbacks/Callback.vue.d.ts.map +1 -1
  71. package/dist/features/Operation/components/callbacks/Callback.vue.js +1 -1
  72. package/dist/features/Operation/components/callbacks/Callback.vue2.js +21 -28
  73. package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts +5 -3
  74. package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts.map +1 -1
  75. package/dist/features/Operation/components/callbacks/Callbacks.vue.js +33 -18
  76. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +11 -12
  77. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
  78. package/dist/features/Operation/layouts/ClassicLayout.vue.js +2 -2
  79. package/dist/features/Operation/layouts/ClassicLayout.vue2.js +168 -154
  80. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +12 -13
  81. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
  82. package/dist/features/Operation/layouts/ModernLayout.vue.js +1 -1
  83. package/dist/features/Operation/layouts/ModernLayout.vue2.js +113 -117
  84. package/dist/features/Search/SearchButton.vue.js +2 -1
  85. package/dist/features/Search/SearchModal.vue.d.ts.map +1 -1
  86. package/dist/features/Search/SearchModal.vue.js +2 -2
  87. package/dist/features/Search/SearchModal.vue2.js +16 -16
  88. package/dist/features/api-client-modal/useApiClient.d.ts +5338 -5258
  89. package/dist/features/api-client-modal/useApiClient.d.ts.map +1 -1
  90. package/dist/features/download-link/DownloadLink.vue2.js +4 -2
  91. package/dist/features/example-responses/ExampleResponse.vue.js +2 -2
  92. package/dist/{components/Card/CardTab.vue.d.ts → features/example-responses/ExampleResponseTab.vue.d.ts} +1 -1
  93. package/dist/features/example-responses/ExampleResponseTab.vue.d.ts.map +1 -0
  94. package/dist/features/example-responses/ExampleResponseTab.vue.js +7 -0
  95. package/dist/{components/Card/CardTab.vue2.js → features/example-responses/ExampleResponseTab.vue2.js} +6 -6
  96. package/dist/{components/Card/CardTabHeader.vue.d.ts → features/example-responses/ExampleResponseTabList.vue.d.ts} +3 -3
  97. package/dist/features/example-responses/ExampleResponseTabList.vue.d.ts.map +1 -0
  98. package/dist/features/example-responses/ExampleResponseTabList.vue.js +7 -0
  99. package/dist/{components/Card/CardTabHeader.vue2.js → features/example-responses/ExampleResponseTabList.vue2.js} +9 -9
  100. package/dist/features/example-responses/ExampleResponses.vue.d.ts.map +1 -1
  101. package/dist/features/example-responses/ExampleResponses.vue.js +2 -2
  102. package/dist/features/example-responses/ExampleResponses.vue2.js +89 -96
  103. package/dist/features/test-request-button/TestRequestButton.vue.d.ts +3 -2
  104. package/dist/features/test-request-button/TestRequestButton.vue.d.ts.map +1 -1
  105. package/dist/features/test-request-button/TestRequestButton.vue.js +2 -2
  106. package/dist/features/test-request-button/TestRequestButton.vue2.js +26 -24
  107. package/dist/helpers/convert-security-scheme.d.ts +9 -0
  108. package/dist/helpers/convert-security-scheme.d.ts.map +1 -0
  109. package/dist/helpers/convert-security-scheme.js +23 -0
  110. package/dist/index.d.ts +0 -2
  111. package/dist/index.d.ts.map +1 -1
  112. package/dist/index.js +15 -29
  113. package/dist/style.css +1 -1
  114. package/dist/v2/ApiReferenceWorkspace.vue.d.ts +3 -1
  115. package/dist/v2/ApiReferenceWorkspace.vue.d.ts.map +1 -1
  116. package/dist/v2/ApiReferenceWorkspace.vue.js +114 -86
  117. package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.d.ts +6 -1
  118. package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.d.ts.map +1 -1
  119. package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.js +4 -0
  120. package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue2.js +64 -0
  121. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.d.ts.map +1 -1
  122. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.js +7 -0
  123. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue2.js +212 -0
  124. package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.d.ts +3 -1
  125. package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.d.ts.map +1 -1
  126. package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.js +22 -0
  127. package/dist/v2/blocks/scalar-request-example-block/helpers/generate-client-options.js +35 -0
  128. package/dist/v2/blocks/scalar-request-example-block/helpers/generate-code-snippet.js +29 -0
  129. package/dist/v2/blocks/scalar-request-example-block/helpers/get-secrets.js +10 -0
  130. package/dist/v2/blocks/scalar-request-example-block/index.d.ts +2 -1
  131. package/dist/v2/blocks/scalar-request-example-block/index.d.ts.map +1 -1
  132. package/dist/v2/events/definitions.d.ts +6 -6
  133. package/dist/v2/events/definitions.d.ts.map +1 -1
  134. package/dist/v2/events/definitions.js +7 -0
  135. package/dist/v2/events/index.d.ts +1 -1
  136. package/dist/v2/events/listeners.d.ts +1 -1
  137. package/dist/v2/hooks/useStore.d.ts +9 -0
  138. package/dist/v2/hooks/useStore.d.ts.map +1 -0
  139. package/dist/v2/hooks/useStore.js +14 -0
  140. package/package.json +24 -24
  141. package/dist/blocks/constants.js +0 -6
  142. package/dist/blocks/helpers/getPointer.js +0 -12
  143. package/dist/blocks/hooks/useBlockProps.d.ts +0 -31
  144. package/dist/blocks/hooks/useBlockProps.d.ts.map +0 -1
  145. package/dist/blocks/hooks/useBlockProps.js +0 -24
  146. package/dist/components/Card/Card.vue.d.ts +0 -18
  147. package/dist/components/Card/Card.vue.d.ts.map +0 -1
  148. package/dist/components/Card/Card.vue.js +0 -13
  149. package/dist/components/Card/CardContent.vue.d.ts +0 -19
  150. package/dist/components/Card/CardContent.vue.d.ts.map +0 -1
  151. package/dist/components/Card/CardContent.vue.js +0 -7
  152. package/dist/components/Card/CardContent.vue2.js +0 -27
  153. package/dist/components/Card/CardFooter.vue.d.ts +0 -19
  154. package/dist/components/Card/CardFooter.vue.d.ts.map +0 -1
  155. package/dist/components/Card/CardFooter.vue.js +0 -7
  156. package/dist/components/Card/CardFooter.vue2.js +0 -24
  157. package/dist/components/Card/CardHeader.vue.d.ts +0 -20
  158. package/dist/components/Card/CardHeader.vue.d.ts.map +0 -1
  159. package/dist/components/Card/CardHeader.vue.js +0 -7
  160. package/dist/components/Card/CardHeader.vue2.js +0 -31
  161. package/dist/components/Card/CardTab.vue.d.ts.map +0 -1
  162. package/dist/components/Card/CardTab.vue.js +0 -7
  163. package/dist/components/Card/CardTabHeader.vue.d.ts.map +0 -1
  164. package/dist/components/Card/CardTabHeader.vue.js +0 -7
  165. package/dist/components/Card/index.d.ts +0 -7
  166. package/dist/components/Card/index.d.ts.map +0 -1
  167. package/dist/components/Card/types.d.ts +0 -8
  168. package/dist/components/Card/types.d.ts.map +0 -1
  169. package/dist/components/Content/Schema/helpers/formatExample.d.ts.map +0 -1
  170. package/dist/components/Content/Schema/helpers/optimizeValueForDisplay.d.ts.map +0 -1
  171. package/dist/features/example-request/ExamplePicker.vue.d.ts +0 -13
  172. package/dist/features/example-request/ExamplePicker.vue.d.ts.map +0 -1
  173. package/dist/features/example-request/ExamplePicker.vue.js +0 -7
  174. package/dist/features/example-request/ExamplePicker.vue2.js +0 -56
  175. package/dist/features/example-request/ExampleRequest.vue.d.ts +0 -79
  176. package/dist/features/example-request/ExampleRequest.vue.d.ts.map +0 -1
  177. package/dist/features/example-request/ExampleRequest.vue.js +0 -7
  178. package/dist/features/example-request/ExampleRequest.vue2.js +0 -359
  179. package/dist/features/example-request/TextSelect.vue.d.ts +0 -34
  180. package/dist/features/example-request/TextSelect.vue.d.ts.map +0 -1
  181. package/dist/features/example-request/TextSelect.vue.js +0 -48
  182. package/dist/features/example-request/TextSelect.vue3.js +0 -5
  183. package/dist/features/example-request/index.d.ts +0 -3
  184. package/dist/features/example-request/index.d.ts.map +0 -1
  185. /package/dist/components/Content/Schema/helpers/{formatExample.js → format-example.js} +0 -0
  186. /package/dist/components/Content/Schema/helpers/{optimizeValueForDisplay.js → optimize-value-for-display.js} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"Callback.vue.d.ts","sourceRoot":"","sources":["../../../../../src/features/Operation/components/callbacks/Callback.vue"],"names":[],"mappings":"AAqHA,OAAO,EAAiB,KAAK,UAAU,EAAE,MAAM,iCAAiC,CAAA;AAEhF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAMvD,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;;AAqJF,wBAMG"}
1
+ {"version":3,"file":"Callback.vue.d.ts","sourceRoot":"","sources":["../../../../../src/features/Operation/components/callbacks/Callback.vue"],"names":[],"mappings":"AA8GA,OAAO,KAAK,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,mCAAmC,CAAA;AAErF,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,6DAA6D,CAAA;AAClG,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,iDAAiD,CAAA;AAKlF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AAIjE,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,WAAW,CAAC,eAAe,CAAC,CAAA;IACtC,MAAM,EAAE,cAAc,CAAA;IACtB,IAAI,EAAE,MAAM,CAAA;IACZ,eAAe,EAAE,cAAc,CAAA;IAC/B,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,GAAG,EAAE,MAAM,CAAA;CACZ,CAAC;;AAkJF,wBAOG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./Callback.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-744e489e"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-45f1f948"]]);
5
5
  export {
6
6
  m as default
7
7
  };
@@ -1,55 +1,48 @@
1
- import { defineComponent as l, computed as m, createElementBlock as n, createCommentVNode as i, openBlock as p, createElementVNode as o, createVNode as s, unref as a, createTextVNode as d, toDisplayString as r } 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 h } from "@scalar/oas-utils/helpers";
5
- import b from "../OperationParameters.vue.js";
6
- import k from "../OperationResponses.vue.js";
7
- import g from "../../../../components/HttpMethod/HttpMethod.vue.js";
8
- const y = {
9
- key: 0,
10
- class: "group"
11
- }, _ = { 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" }, q = { class: "text-c-1 truncate leading-3 group-open:whitespace-normal" }, B = { class: "text-c-2" }, v = { class: "callback-operation-container flex flex-col gap-2" }, I = /* @__PURE__ */ l({
1
+ import { defineComponent as r, createElementBlock as l, openBlock as c, createElementVNode as s, createVNode as a, unref as t, createTextVNode as n, toDisplayString as o } from "vue";
2
+ import { ScalarIconCaretRight as m } from "@scalar/icons";
3
+ import i from "../OperationParameters.vue.js";
4
+ import p from "../OperationResponses.vue.js";
5
+ import d from "../../../../components/HttpMethod/HttpMethod.vue.js";
6
+ const f = { 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-center gap-2 border-t py-3 text-sm group-open:flex-wrap" }, u = { class: "text-c-1 min-w-0 flex-1 truncate leading-3 group-open:whitespace-normal" }, _ = { class: "text-c-2" }, b = { class: "callback-operation-container flex flex-col gap-2" }, v = /* @__PURE__ */ r({
12
7
  __name: "Callback",
13
8
  props: {
14
9
  callback: {},
15
- collection: {},
16
10
  method: {},
11
+ path: {},
12
+ operationMethod: {},
17
13
  name: {},
18
14
  schemas: {},
19
15
  url: {}
20
16
  },
21
- setup(t) {
22
- const c = m(
23
- () => h({ ...t.callback, path: t.url, method: t.method }, f, !1)
24
- );
25
- return (e, x) => e.collection && c.value ? (p(), n("details", y, [
26
- o("summary", _, [
27
- s(a(u), { class: "text-c-3 group-hover:text-c-1 absolute -left-5 size-4 transition-transform group-open:rotate-90" }),
28
- s(a(g), {
17
+ setup(k) {
18
+ return (e, g) => (c(), l("details", f, [
19
+ s("summary", h, [
20
+ a(t(m), { class: "callback-list-item-icon text-c-3 group-hover:text-c-1 absolute -left-5 size-4 transition-transform group-open:rotate-90" }),
21
+ a(t(d), {
29
22
  as: "span",
30
23
  class: "request-method",
31
24
  method: e.method
32
25
  }, null, 8, ["method"]),
33
- o("div", q, [
34
- d(r(e.name) + " ", 1),
35
- o("span", B, r(e.url), 1)
26
+ s("div", u, [
27
+ n(o(e.name) + " ", 1),
28
+ s("span", _, o(e.url), 1)
36
29
  ])
37
30
  ]),
38
- o("div", v, [
39
- s(b, {
31
+ s("div", b, [
32
+ a(i, {
40
33
  requestBody: e.callback.requestBody,
41
34
  parameters: e.callback.parameters,
42
35
  schemas: e.schemas
43
36
  }, null, 8, ["requestBody", "parameters", "schemas"]),
44
- s(k, {
37
+ a(p, {
45
38
  collapsableItems: !1,
46
39
  responses: e.callback.responses,
47
40
  schemas: e.schemas
48
41
  }, null, 8, ["responses", "schemas"])
49
42
  ])
50
- ])) : i("", !0);
43
+ ]));
51
44
  }
52
45
  });
53
46
  export {
54
- I as default
47
+ v as default
55
48
  };
@@ -1,8 +1,10 @@
1
- import type { Collection, Operation } from '@scalar/oas-utils/entities/spec';
1
+ import type { HttpMethod } from '@scalar/helpers/http/http-methods';
2
+ import type { CallbackObject } from '@scalar/workspace-store/schemas/v3.1/strict/path-operations';
2
3
  import type { Schemas } from '../../../../features/Operation/types/schemas';
3
4
  type __VLS_Props = {
4
- callbacks: Operation['callbacks'];
5
- collection: Collection;
5
+ path: string;
6
+ method: HttpMethod;
7
+ callbacks: CallbackObject;
6
8
  schemas?: Schemas;
7
9
  };
8
10
  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>;
@@ -1 +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"}
1
+ {"version":3,"file":"Callbacks.vue.d.ts","sourceRoot":"","sources":["../../../../../src/features/Operation/components/callbacks/Callbacks.vue"],"names":[],"mappings":"AA0EA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AAEnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6DAA6D,CAAA;AAIjG,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AAOjE,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,UAAU,CAAA;IAClB,SAAS,EAAE,cAAc,CAAA;IACzB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAC;;AAsGF,wBAOG"}
@@ -1,30 +1,45 @@
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({
1
+ import { defineComponent as b, watch as y, createElementBlock as t, openBlock as e, createElementVNode as C, Fragment as a, renderList as s, createCommentVNode as u, unref as i, createBlock as v } from "vue";
2
+ import { isHttpMethod as g } from "@scalar/helpers/http/is-http-method";
3
+ import { isReference as h } from "@scalar/workspace-store/schemas/v3.1/type-guard";
4
+ import { useStore as B } from "../../../../v2/hooks/useStore.js";
5
+ import E from "./Callback.vue.js";
6
+ const M = { class: "callbacks-list gap-3" }, F = /* @__PURE__ */ b({
4
7
  __name: "Callbacks",
5
8
  props: {
9
+ path: {},
10
+ method: {},
6
11
  callbacks: {},
7
- collection: {},
8
12
  schemas: {}
9
13
  },
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))
14
+ setup(r) {
15
+ const { resolve: k } = B();
16
+ return y(
17
+ () => r.callbacks,
18
+ (l) => Object.values(l).forEach((o) => {
19
+ h(o) && k(["paths", r.path, r.method]);
20
+ }),
21
+ { immediate: !0 }
22
+ ), (l, o) => (e(), t("div", M, [
23
+ o[0] || (o[0] = C("div", { class: "callbacks-title text-c-1 my-3 text-lg font-medium" }, " Callbacks ", -1)),
24
+ (e(!0), t(a, null, s(l.callbacks, (m, n) => (e(), t(a, { key: n }, [
25
+ i(h)(m) ? u("", !0) : (e(!0), t(a, { key: 0 }, s(m, (d, p) => (e(), t(a, null, [
26
+ (e(!0), t(a, null, s(d, (f, c) => (e(), t(a, { key: c }, [
27
+ i(g)(c) ? (e(), v(E, {
28
+ key: 0,
29
+ callback: f,
30
+ method: c,
31
+ operationMethod: r.method,
32
+ name: n,
33
+ path: l.path,
34
+ schemas: l.schemas,
35
+ url: p
36
+ }, null, 8, ["callback", "method", "operationMethod", "name", "path", "schemas", "url"])) : u("", !0)
37
+ ], 64))), 128))
23
38
  ], 64))), 256))
24
39
  ], 64))), 128))
25
40
  ]));
26
41
  }
27
42
  });
28
43
  export {
29
- g as default
44
+ F as default
30
45
  };
@@ -1,20 +1,19 @@
1
- import type { Collection, Request, Server } from '@scalar/oas-utils/entities/spec';
2
- import type { OpenAPIV3_1, XScalarStability } from '@scalar/types/legacy';
1
+ import type { HttpMethod as HttpMethodType } from '@scalar/helpers/http/http-methods';
2
+ import type { OpenAPIV3_1 } from '@scalar/openapi-types';
3
+ import type { OperationObject } from '@scalar/workspace-store/schemas/v3.1/strict/path-operations';
4
+ import type { SecuritySchemeObject } from '@scalar/workspace-store/schemas/v3.1/strict/security-scheme';
5
+ import type { ServerObject } from '@scalar/workspace-store/schemas/v3.1/strict/server';
6
+ import type { Dereference } from '@scalar/workspace-store/schemas/v3.1/type-guard';
3
7
  import type { Schemas } from '../../../features/Operation/types/schemas';
4
8
  type __VLS_Props = {
5
9
  id: string;
6
10
  path: string;
7
- method: OpenAPIV3_1.HttpMethods;
8
- operation: OpenAPIV3_1.OperationObject<{
9
- 'x-scalar-stability': XScalarStability;
10
- }>;
11
+ method: HttpMethodType;
12
+ operation: Dereference<OperationObject>;
13
+ oldOperation: OpenAPIV3_1.OperationObject;
11
14
  isWebhook: boolean;
12
- /**
13
- * @deprecated Use `document` instead
14
- */
15
- collection: Collection;
16
- server: Server | undefined;
17
- request: Request | undefined;
15
+ server: ServerObject | undefined;
16
+ securitySchemes: SecuritySchemeObject[];
18
17
  schemas?: Schemas;
19
18
  };
20
19
  declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
@@ -1 +1 @@
1
- {"version":3,"file":"ClassicLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ClassicLayout.vue"],"names":[],"mappings":"AAuXA,OAAO,KAAK,EACV,UAAU,EACV,OAAO,EACP,MAAM,EACP,MAAM,iCAAiC,CAAA;AAMxC,OAAO,KAAK,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAWzE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AASjE,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,WAAW,CAAC,WAAW,CAAA;IAC/B,SAAS,EAAE,WAAW,CAAC,eAAe,CAAC;QACrC,oBAAoB,EAAE,gBAAgB,CAAA;KACvC,CAAC,CAAA;IACF,SAAS,EAAE,OAAO,CAAA;IAClB;;OAEG;IACH,UAAU,EAAE,UAAU,CAAA;IACtB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,OAAO,EAAE,OAAO,GAAG,SAAS,CAAA;IAC5B,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAC;;;;;;AA2VF,wBAQG"}
1
+ {"version":3,"file":"ClassicLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ClassicLayout.vue"],"names":[],"mappings":"AAqbA,OAAO,KAAK,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,mCAAmC,CAAA;AAWrF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAExD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6DAA6D,CAAA;AAClG,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,6DAA6D,CAAA;AACvG,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oDAAoD,CAAA;AACtF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iDAAiD,CAAA;AAYlF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AAQjE,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,cAAc,CAAA;IACtB,SAAS,EAAE,WAAW,CAAC,eAAe,CAAC,CAAA;IACvC,YAAY,EAAE,WAAW,CAAC,eAAe,CAAA;IACzC,SAAS,EAAE,OAAO,CAAA;IAClB,MAAM,EAAE,YAAY,GAAG,SAAS,CAAA;IAChC,eAAe,EAAE,oBAAoB,EAAE,CAAA;IACvC,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAC;;;;;;AA2YF,wBAQG"}
@@ -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-6d48a0e7"]]);
4
+ const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-d9491f8e"]]);
5
5
  export {
6
- m as default
6
+ f as default
7
7
  };
@@ -1,173 +1,187 @@
1
- import { defineComponent as B, computed as S, createBlock as n, openBlock as p, unref as o, createSlots as V, withCtx as a, createElementVNode as s, createVNode as t, createCommentVNode as d, withModifiers as w, toDisplayString as u, normalizeClass as T, createTextVNode as f } from "vue";
2
- import { ScalarIcon as I, ScalarIconButton as R, ScalarMarkdown as N } from "@scalar/components";
3
- import { ScalarIconWebhooksLogo as O } from "@scalar/icons";
4
- import { isOperationDeprecated as P, getOperationStability as y, getOperationStabilityColor as W } from "@scalar/oas-utils/helpers";
5
- import { useClipboard as $ } from "@scalar/use-hooks/useClipboard";
6
- import z from "../../../components/OperationPath.vue.js";
7
- import { useConfig as A } from "../../../hooks/useConfig.js";
8
- import D from "../components/OperationParameters.vue.js";
9
- import E from "../components/OperationResponses.vue.js";
10
- import L from "../../../components/Section/SectionAccordion.vue.js";
11
- import U from "../../example-responses/ExampleResponses.vue.js";
12
- import M from "../../example-request/ExampleRequest.vue.js";
13
- import _ from "../../test-request-button/TestRequestButton.vue.js";
14
- import j from "../../../components/HttpMethod/HttpMethod.vue.js";
15
- import F from "../../../components/Anchor/Anchor.vue.js";
16
- import v from "../../../components/Badge/Badge.vue.js";
17
- const G = { class: "operation-title" }, H = { class: "operation-details" }, J = { class: "endpoint-label" }, K = { class: "endpoint-label-path" }, Q = { class: "endpoint-label-name" }, X = { class: "endpoint-content" }, Y = { class: "operation-details-card" }, Z = { class: "operation-details-card-item" }, x = { class: "operation-details-card-item" }, ve = /* @__PURE__ */ B({
1
+ import { defineComponent as B, computed as w, createBlock as i, openBlock as r, unref as o, createSlots as O, withCtx as s, createElementVNode as a, createVNode as t, createElementBlock as V, createCommentVNode as p, withModifiers as q, toDisplayString as h, normalizeClass as I, createTextVNode as u } from "vue";
2
+ import { ScalarErrorBoundary as T, ScalarIconButton as E, ScalarMarkdown as R } from "@scalar/components";
3
+ import { ScalarIconPlay as W, ScalarIconCopy as $, ScalarIconWebhooksLogo as N } from "@scalar/icons";
4
+ import { isOperationDeprecated as P, getOperationStability as f, getOperationStabilityColor as z } from "@scalar/oas-utils/helpers";
5
+ import { useClipboard as A } from "@scalar/use-hooks/useClipboard";
6
+ import D from "../../../components/OperationPath.vue.js";
7
+ import L from "../components/callbacks/Callbacks.vue.js";
8
+ import U from "../components/OperationParameters.vue.js";
9
+ import M from "../components/OperationResponses.vue.js";
10
+ import { useConfig as _ } from "../../../hooks/useConfig.js";
11
+ import { useStore as j } from "../../../v2/hooks/useStore.js";
12
+ import F from "../../../components/Section/SectionAccordion.vue.js";
13
+ import G from "../../example-responses/ExampleResponses.vue.js";
14
+ import H from "../../../v2/blocks/scalar-request-example-block/components/RequestExample.vue.js";
15
+ import J from "../../test-request-button/TestRequestButton.vue.js";
16
+ import K from "../../../components/HttpMethod/HttpMethod.vue.js";
17
+ import Q from "../../../components/Anchor/Anchor.vue.js";
18
+ import y from "../../../components/Badge/Badge.vue.js";
19
+ const X = { class: "operation-title" }, Y = { class: "operation-details" }, Z = { class: "endpoint-label" }, x = { class: "endpoint-label-path" }, ee = { class: "endpoint-label-name" }, oe = { class: "endpoint-content" }, te = { class: "operation-details-card" }, ae = { class: "operation-details-card-item" }, se = { class: "operation-details-card-item" }, re = {
20
+ key: 0,
21
+ class: "operation-details-card-item"
22
+ }, Oe = /* @__PURE__ */ B({
18
23
  __name: "ClassicLayout",
19
24
  props: {
20
25
  id: {},
21
26
  path: {},
22
27
  method: {},
23
28
  operation: {},
29
+ oldOperation: {},
24
30
  isWebhook: { type: Boolean },
25
- collection: {},
26
31
  server: {},
27
- request: {},
32
+ securitySchemes: {},
28
33
  schemas: {}
29
34
  },
30
35
  emits: ["update:modelValue"],
31
- setup(m, { emit: b }) {
32
- const g = S(() => {
33
- var e;
34
- return ((e = m.operation) == null ? void 0 : e.summary) || m.path || "";
35
- }), { copyToClipboard: k } = $(), C = A(), q = b, c = (e) => {
36
- q("update:modelValue", e);
36
+ setup(d, { emit: k }) {
37
+ const b = w(() => d.operation.summary || d.path || ""), { copyToClipboard: v } = A(), { workspace: S } = j(), C = _(), g = k, m = (e) => {
38
+ g("update:modelValue", e);
37
39
  };
38
- return (e, l) => {
39
- var h;
40
- return p(), n(o(L), {
41
- id: e.id,
42
- class: "reference-endpoint",
43
- transparent: ""
44
- }, V({
45
- title: a(() => [
46
- s("div", G, [
47
- s("div", H, [
48
- t(o(j), {
49
- class: "endpoint-type",
50
- method: e.method,
51
- short: ""
52
- }, null, 8, ["method"]),
53
- t(o(F), {
54
- id: e.id,
55
- class: "endpoint-anchor"
56
- }, {
57
- default: a(() => [
58
- s("h3", J, [
59
- s("div", K, [
60
- t(z, {
61
- deprecated: o(P)(e.operation),
62
- path: e.path
63
- }, null, 8, ["deprecated", "path"])
40
+ return (e, n) => (r(), i(o(F), {
41
+ id: e.id,
42
+ class: "reference-endpoint",
43
+ transparent: ""
44
+ }, O({
45
+ title: s(() => [
46
+ a("div", X, [
47
+ a("div", Y, [
48
+ t(o(K), {
49
+ class: "endpoint-type",
50
+ method: e.method,
51
+ short: ""
52
+ }, null, 8, ["method"]),
53
+ t(o(Q), {
54
+ id: e.id,
55
+ class: "endpoint-anchor"
56
+ }, {
57
+ default: s(() => [
58
+ a("h3", Z, [
59
+ a("div", x, [
60
+ t(D, {
61
+ deprecated: o(P)(e.operation),
62
+ path: e.path
63
+ }, null, 8, ["deprecated", "path"])
64
+ ]),
65
+ a("div", ee, h(b.value), 1),
66
+ o(f)(e.operation) ? (r(), i(o(y), {
67
+ key: 0,
68
+ class: I(o(z)(e.operation))
69
+ }, {
70
+ default: s(() => [
71
+ u(h(o(f)(e.operation)), 1)
64
72
  ]),
65
- s("div", Q, u(g.value), 1),
66
- o(y)(e.operation) ? (p(), n(o(v), {
67
- key: 0,
68
- class: T(o(W)(e.operation))
69
- }, {
70
- default: a(() => [
71
- f(u(o(y)(e.operation)), 1)
72
- ]),
73
- _: 1
74
- }, 8, ["class"])) : d("", !0),
75
- e.isWebhook ? (p(), n(o(v), {
76
- key: 1,
77
- class: "font-code text-green flex w-fit items-center justify-center gap-1"
78
- }, {
79
- default: a(() => [
80
- t(o(O), { weight: "bold" }),
81
- l[1] || (l[1] = f("Webhook "))
82
- ]),
83
- _: 1
84
- })) : d("", !0)
85
- ])
86
- ]),
87
- _: 1
88
- }, 8, ["id"])
89
- ])
90
- ])
91
- ]),
92
- actions: a(({ active: i }) => {
93
- var r;
94
- return [
95
- i && e.request ? (p(), n(o(_), {
96
- key: 0,
97
- operation: e.request
98
- }, null, 8, ["operation"])) : (r = o(C)) != null && r.hideTestRequestButton ? d("", !0) : (p(), n(o(I), {
99
- key: 1,
100
- class: "endpoint-try-hint size-6",
101
- icon: "Play",
102
- thickness: "1.75px"
103
- })),
104
- t(o(R), {
105
- class: "endpoint-copy p-0.5",
106
- icon: "Clipboard",
107
- label: "Copy endpoint URL",
108
- size: "xs",
109
- variant: "ghost",
110
- onClick: l[0] || (l[0] = w((ee) => o(k)(e.path), ["stop"]))
111
- })
112
- ];
113
- }),
114
- default: a(() => {
115
- var i, r;
116
- return [
117
- s("div", X, [
118
- s("div", Y, [
119
- s("div", Z, [
120
- t(D, {
121
- parameters: (i = e.operation) == null ? void 0 : i.parameters,
122
- requestBody: (r = e.operation) == null ? void 0 : r.requestBody,
123
- schemas: e.schemas,
124
- "onUpdate:modelValue": c
125
- }, null, 8, ["parameters", "requestBody", "schemas"])
126
- ]),
127
- s("div", x, [
128
- t(E, {
129
- collapsableItems: !1,
130
- responses: e.operation.responses,
131
- schemas: e.schemas
132
- }, null, 8, ["responses", "schemas"])
73
+ _: 1
74
+ }, 8, ["class"])) : p("", !0),
75
+ e.isWebhook ? (r(), i(o(y), {
76
+ key: 1,
77
+ class: "font-code text-green flex w-fit items-center justify-center gap-1"
78
+ }, {
79
+ default: s(() => [
80
+ t(o(N), { weight: "bold" }),
81
+ n[1] || (n[1] = u("Webhook "))
82
+ ]),
83
+ _: 1,
84
+ __: [1]
85
+ })) : p("", !0)
133
86
  ])
134
87
  ]),
135
- t(o(U), {
136
- responses: e.operation.responses
137
- }, null, 8, ["responses"]),
138
- t(o(M), {
139
- request: e.request,
140
- method: e.method,
141
- collection: e.collection,
142
- operation: e.operation,
143
- server: e.server,
144
- "onUpdate:modelValue": c
145
- }, null, 8, ["request", "method", "collection", "operation", "server"])
146
- ])
147
- ];
148
- }),
149
- _: 2
150
- }, [
151
- (h = e.operation) != null && h.description ? {
152
- name: "description",
153
- fn: a(() => {
154
- var i;
155
- return [
156
- t(o(N), {
157
- value: (i = e.operation) == null ? void 0 : i.description,
158
- withImages: "",
159
- withAnchors: "",
160
- transformType: "heading",
161
- anchorPrefix: e.id
162
- }, null, 8, ["value", "anchorPrefix"])
163
- ];
164
- }),
165
- key: "0"
166
- } : void 0
167
- ]), 1032, ["id"]);
168
- };
88
+ _: 1
89
+ }, 8, ["id"])
90
+ ])
91
+ ])
92
+ ]),
93
+ actions: s(({ active: l }) => {
94
+ var c;
95
+ return [
96
+ l && !e.isWebhook ? (r(), i(o(J), {
97
+ key: 0,
98
+ method: e.method,
99
+ path: e.path
100
+ }, null, 8, ["method", "path"])) : (c = o(C)) != null && c.hideTestRequestButton ? p("", !0) : (r(), i(o(W), {
101
+ key: 1,
102
+ class: "endpoint-try-hint size-4.5"
103
+ })),
104
+ t(o(E), {
105
+ class: "endpoint-copy p-0.5",
106
+ icon: o($),
107
+ label: "Copy endpoint URL",
108
+ size: "xs",
109
+ variant: "ghost",
110
+ onClick: n[0] || (n[0] = q((ie) => o(v)(e.path), ["stop"]))
111
+ }, null, 8, ["icon"])
112
+ ];
113
+ }),
114
+ default: s(() => {
115
+ var l;
116
+ return [
117
+ a("div", oe, [
118
+ a("div", te, [
119
+ a("div", ae, [
120
+ t(U, {
121
+ parameters: e.oldOperation.parameters,
122
+ requestBody: e.oldOperation.requestBody,
123
+ schemas: e.schemas,
124
+ "onUpdate:modelValue": m
125
+ }, null, 8, ["parameters", "requestBody", "schemas"])
126
+ ]),
127
+ a("div", se, [
128
+ t(M, {
129
+ collapsableItems: !1,
130
+ responses: e.oldOperation.responses,
131
+ schemas: e.schemas
132
+ }, null, 8, ["responses", "schemas"])
133
+ ]),
134
+ (l = e.operation) != null && l.callbacks ? (r(), V("div", re, [
135
+ t(L, {
136
+ method: e.method,
137
+ path: e.path,
138
+ callbacks: e.operation.callbacks,
139
+ schemas: e.schemas
140
+ }, null, 8, ["method", "path", "callbacks", "schemas"])
141
+ ])) : p("", !0)
142
+ ]),
143
+ t(o(G), {
144
+ class: "operation-example-card",
145
+ responses: e.operation.responses
146
+ }, null, 8, ["responses"]),
147
+ t(o(T), null, {
148
+ default: s(() => [
149
+ t(o(H), {
150
+ class: "operation-example-card",
151
+ method: e.method,
152
+ selectedServer: e.server,
153
+ selectedClient: o(S)["x-scalar-default-client"],
154
+ securitySchemes: e.securitySchemes,
155
+ path: e.path,
156
+ fallback: "",
157
+ operation: e.operation,
158
+ schemas: e.schemas,
159
+ "onUpdate:modelValue": m
160
+ }, null, 8, ["method", "selectedServer", "selectedClient", "securitySchemes", "path", "operation", "schemas"])
161
+ ]),
162
+ _: 1
163
+ })
164
+ ])
165
+ ];
166
+ }),
167
+ _: 2
168
+ }, [
169
+ e.operation.description ? {
170
+ name: "description",
171
+ fn: s(() => [
172
+ t(o(R), {
173
+ value: e.operation.description,
174
+ withImages: "",
175
+ withAnchors: "",
176
+ transformType: "heading",
177
+ anchorPrefix: e.id
178
+ }, null, 8, ["value", "anchorPrefix"])
179
+ ]),
180
+ key: "0"
181
+ } : void 0
182
+ ]), 1032, ["id"]));
169
183
  }
170
184
  });
171
185
  export {
172
- ve as default
186
+ Oe as default
173
187
  };
@@ -1,20 +1,19 @@
1
- import type { Collection, Request, Server } from '@scalar/oas-utils/entities/spec';
2
- import type { OpenAPIV3_1, XScalarStability } from '@scalar/types/legacy';
3
- import type { Schemas } from '../types/schemas';
1
+ import type { HttpMethod as HttpMethodType } from '@scalar/helpers/http/http-methods';
2
+ import type { OpenAPIV3_1 } from '@scalar/openapi-types';
3
+ import type { OperationObject } from '@scalar/workspace-store/schemas/v3.1/strict/path-operations';
4
+ import type { SecuritySchemeObject } from '@scalar/workspace-store/schemas/v3.1/strict/security-scheme';
5
+ import type { ServerObject } from '@scalar/workspace-store/schemas/v3.1/strict/server';
6
+ import type { Dereference } from '@scalar/workspace-store/schemas/v3.1/type-guard';
7
+ import type { Schemas } from '../../../features/Operation/types/schemas';
4
8
  type __VLS_Props = {
5
9
  id: string;
6
10
  path: string;
7
- method: OpenAPIV3_1.HttpMethods;
8
- operation: OpenAPIV3_1.OperationObject<{
9
- 'x-scalar-stability': XScalarStability;
10
- }>;
11
+ method: HttpMethodType;
12
+ operation: Dereference<OperationObject>;
13
+ oldOperation: OpenAPIV3_1.OperationObject;
11
14
  isWebhook: boolean;
12
- /**
13
- * @deprecated Use `document` instead
14
- */
15
- collection: Collection;
16
- server: Server | undefined;
17
- request: Request | undefined;
15
+ securitySchemes: SecuritySchemeObject[];
16
+ server: ServerObject | undefined;
18
17
  schemas?: Schemas;
19
18
  };
20
19
  declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
@@ -1 +1 @@
1
- {"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ModernLayout.vue"],"names":[],"mappings":"AAiLA,OAAO,KAAK,EACV,UAAU,EACV,OAAO,EACP,MAAM,EACP,MAAM,iCAAiC,CAAA;AAMxC,OAAO,KAAK,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAsBzE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAI/C,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,WAAW,CAAC,WAAW,CAAA;IAC/B,SAAS,EAAE,WAAW,CAAC,eAAe,CAAC;QACrC,oBAAoB,EAAE,gBAAgB,CAAA;KACvC,CAAC,CAAA;IACF,SAAS,EAAE,OAAO,CAAA;IAClB;;OAEG;IACH,UAAU,EAAE,UAAU,CAAA;IACtB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,OAAO,EAAE,OAAO,GAAG,SAAS,CAAA;IAC5B,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAC;;;;;;AA8TF,wBAQG"}
1
+ {"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ModernLayout.vue"],"names":[],"mappings":"AAoMA,OAAO,KAAK,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,mCAAmC,CAAA;AAOrF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6DAA6D,CAAA;AAClG,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,6DAA6D,CAAA;AACvG,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oDAAoD,CAAA;AACtF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iDAAiD,CAAA;AAkBlF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AAQjE,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,cAAc,CAAA;IACtB,SAAS,EAAE,WAAW,CAAC,eAAe,CAAC,CAAA;IACvC,YAAY,EAAE,WAAW,CAAC,eAAe,CAAA;IACzC,SAAS,EAAE,OAAO,CAAA;IAClB,eAAe,EAAE,oBAAoB,EAAE,CAAA;IACvC,MAAM,EAAE,YAAY,GAAG,SAAS,CAAA;IAChC,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAC;;;;;;AAmUF,wBAQG"}
@@ -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 p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-40b5a836"]]);
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-84b46300"]]);
5
5
  export {
6
6
  p as default
7
7
  };