@scalar/api-reference 1.32.7 → 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 (135) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/dist/browser/standalone.js +16286 -16092
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/Anchor/Anchor.vue2.js +2 -1
  5. package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
  6. package/dist/components/ApiReferenceLayout.vue.js +2 -2
  7. package/dist/components/ApiReferenceLayout.vue2.js +164 -176
  8. package/dist/components/Content/Content.vue.d.ts.map +1 -1
  9. package/dist/components/Content/Content.vue.js +2 -2
  10. package/dist/components/Content/Content.vue2.js +20 -20
  11. package/dist/components/Content/Models/Models.vue2.js +5 -4
  12. package/dist/components/Content/Models/ModelsAccordion.vue2.js +2 -1
  13. package/dist/components/Content/Schema/Schema.vue2.js +2 -1
  14. package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +14 -7
  15. package/dist/components/Content/Tag/OperationsList.vue.d.ts.map +1 -1
  16. package/dist/components/Content/Tag/OperationsList.vue.js +1 -1
  17. package/dist/components/Content/Tag/OperationsList.vue2.js +18 -22
  18. package/dist/components/Content/Tag/OperationsListItem.vue.d.ts.map +1 -1
  19. package/dist/components/Content/Tag/OperationsListItem.vue.js +2 -2
  20. package/dist/components/Content/Tag/OperationsListItem.vue2.js +33 -34
  21. package/dist/components/Content/Tag/Tag.vue.js +2 -1
  22. package/dist/components/Content/Tag/TagSection.vue.d.ts.map +1 -1
  23. package/dist/components/GettingStarted.vue2.js +8 -6
  24. package/dist/components/Section/SectionAccordion.vue.d.ts.map +1 -1
  25. package/dist/components/Section/SectionAccordion.vue.js +1 -1
  26. package/dist/components/Section/SectionAccordion.vue2.js +28 -29
  27. package/dist/components/Section/SectionContainerAccordion.vue.d.ts.map +1 -1
  28. package/dist/components/Section/SectionContainerAccordion.vue.js +2 -2
  29. package/dist/components/Section/SectionContainerAccordion.vue2.js +17 -18
  30. package/dist/features/Operation/Operation.vue.d.ts +6 -6
  31. package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
  32. package/dist/features/Operation/Operation.vue.js +50 -49
  33. package/dist/features/Operation/components/ContentTypeSelect.vue.js +8 -7
  34. package/dist/features/Operation/components/callbacks/Callback.vue.d.ts +8 -6
  35. package/dist/features/Operation/components/callbacks/Callback.vue.d.ts.map +1 -1
  36. package/dist/features/Operation/components/callbacks/Callback.vue.js +1 -1
  37. package/dist/features/Operation/components/callbacks/Callback.vue2.js +21 -28
  38. package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts +5 -3
  39. package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts.map +1 -1
  40. package/dist/features/Operation/components/callbacks/Callbacks.vue.js +33 -18
  41. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +11 -12
  42. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
  43. package/dist/features/Operation/layouts/ClassicLayout.vue.js +2 -2
  44. package/dist/features/Operation/layouts/ClassicLayout.vue2.js +168 -154
  45. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +12 -13
  46. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
  47. package/dist/features/Operation/layouts/ModernLayout.vue.js +1 -1
  48. package/dist/features/Operation/layouts/ModernLayout.vue2.js +113 -117
  49. package/dist/features/Search/SearchButton.vue.js +2 -1
  50. package/dist/features/Search/SearchModal.vue.d.ts.map +1 -1
  51. package/dist/features/Search/SearchModal.vue.js +2 -2
  52. package/dist/features/Search/SearchModal.vue2.js +16 -16
  53. package/dist/features/api-client-modal/useApiClient.d.ts +5338 -5258
  54. package/dist/features/api-client-modal/useApiClient.d.ts.map +1 -1
  55. package/dist/features/download-link/DownloadLink.vue2.js +4 -2
  56. package/dist/{components/Card/CardTab.vue.d.ts → features/example-responses/ExampleResponseTab.vue.d.ts} +1 -1
  57. package/dist/features/example-responses/ExampleResponseTab.vue.d.ts.map +1 -0
  58. package/dist/features/example-responses/ExampleResponseTab.vue.js +7 -0
  59. package/dist/{components/Card/CardTab.vue2.js → features/example-responses/ExampleResponseTab.vue2.js} +6 -6
  60. package/dist/{components/Card/CardTabHeader.vue.d.ts → features/example-responses/ExampleResponseTabList.vue.d.ts} +3 -3
  61. package/dist/features/example-responses/ExampleResponseTabList.vue.d.ts.map +1 -0
  62. package/dist/features/example-responses/ExampleResponseTabList.vue.js +7 -0
  63. package/dist/{components/Card/CardTabHeader.vue2.js → features/example-responses/ExampleResponseTabList.vue2.js} +9 -9
  64. package/dist/features/example-responses/ExampleResponses.vue.d.ts.map +1 -1
  65. package/dist/features/example-responses/ExampleResponses.vue.js +1 -1
  66. package/dist/features/example-responses/ExampleResponses.vue2.js +89 -96
  67. package/dist/features/test-request-button/TestRequestButton.vue.d.ts +3 -2
  68. package/dist/features/test-request-button/TestRequestButton.vue.d.ts.map +1 -1
  69. package/dist/features/test-request-button/TestRequestButton.vue.js +2 -2
  70. package/dist/features/test-request-button/TestRequestButton.vue2.js +26 -24
  71. package/dist/helpers/convert-security-scheme.js +23 -0
  72. package/dist/index.d.ts +0 -2
  73. package/dist/index.d.ts.map +1 -1
  74. package/dist/index.js +15 -29
  75. package/dist/style.css +1 -1
  76. package/dist/v2/ApiReferenceWorkspace.vue.d.ts +3 -1
  77. package/dist/v2/ApiReferenceWorkspace.vue.d.ts.map +1 -1
  78. package/dist/v2/ApiReferenceWorkspace.vue.js +113 -86
  79. package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.js +4 -0
  80. package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue2.js +64 -0
  81. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.d.ts.map +1 -1
  82. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.js +7 -0
  83. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue2.js +212 -0
  84. package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.js +20 -3
  85. package/dist/v2/blocks/scalar-request-example-block/helpers/generate-client-options.js +35 -0
  86. package/dist/v2/blocks/scalar-request-example-block/helpers/generate-code-snippet.js +29 -0
  87. package/dist/v2/blocks/scalar-request-example-block/helpers/get-secrets.js +10 -0
  88. package/dist/v2/blocks/scalar-request-example-block/index.d.ts +2 -2
  89. package/dist/v2/events/definitions.js +7 -0
  90. package/dist/v2/events/index.d.ts +1 -1
  91. package/dist/v2/events/listeners.d.ts +1 -1
  92. package/dist/v2/hooks/useStore.js +14 -0
  93. package/package.json +26 -26
  94. package/dist/blocks/constants.js +0 -6
  95. package/dist/blocks/helpers/getPointer.js +0 -12
  96. package/dist/blocks/hooks/useBlockProps.d.ts +0 -31
  97. package/dist/blocks/hooks/useBlockProps.d.ts.map +0 -1
  98. package/dist/blocks/hooks/useBlockProps.js +0 -24
  99. package/dist/components/Card/Card.vue.d.ts +0 -18
  100. package/dist/components/Card/Card.vue.d.ts.map +0 -1
  101. package/dist/components/Card/Card.vue.js +0 -13
  102. package/dist/components/Card/CardContent.vue.d.ts +0 -19
  103. package/dist/components/Card/CardContent.vue.d.ts.map +0 -1
  104. package/dist/components/Card/CardContent.vue.js +0 -7
  105. package/dist/components/Card/CardContent.vue2.js +0 -27
  106. package/dist/components/Card/CardFooter.vue.d.ts +0 -19
  107. package/dist/components/Card/CardFooter.vue.d.ts.map +0 -1
  108. package/dist/components/Card/CardFooter.vue.js +0 -7
  109. package/dist/components/Card/CardFooter.vue2.js +0 -24
  110. package/dist/components/Card/CardHeader.vue.d.ts +0 -20
  111. package/dist/components/Card/CardHeader.vue.d.ts.map +0 -1
  112. package/dist/components/Card/CardHeader.vue.js +0 -7
  113. package/dist/components/Card/CardHeader.vue2.js +0 -31
  114. package/dist/components/Card/CardTab.vue.d.ts.map +0 -1
  115. package/dist/components/Card/CardTab.vue.js +0 -7
  116. package/dist/components/Card/CardTabHeader.vue.d.ts.map +0 -1
  117. package/dist/components/Card/CardTabHeader.vue.js +0 -7
  118. package/dist/components/Card/index.d.ts +0 -7
  119. package/dist/components/Card/index.d.ts.map +0 -1
  120. package/dist/components/Card/types.d.ts +0 -8
  121. package/dist/components/Card/types.d.ts.map +0 -1
  122. package/dist/features/example-request/ExamplePicker.vue.d.ts +0 -13
  123. package/dist/features/example-request/ExamplePicker.vue.d.ts.map +0 -1
  124. package/dist/features/example-request/ExamplePicker.vue.js +0 -7
  125. package/dist/features/example-request/ExamplePicker.vue2.js +0 -56
  126. package/dist/features/example-request/ExampleRequest.vue.d.ts +0 -79
  127. package/dist/features/example-request/ExampleRequest.vue.d.ts.map +0 -1
  128. package/dist/features/example-request/ExampleRequest.vue.js +0 -7
  129. package/dist/features/example-request/ExampleRequest.vue2.js +0 -361
  130. package/dist/features/example-request/TextSelect.vue.d.ts +0 -34
  131. package/dist/features/example-request/TextSelect.vue.d.ts.map +0 -1
  132. package/dist/features/example-request/TextSelect.vue.js +0 -48
  133. package/dist/features/example-request/TextSelect.vue3.js +0 -5
  134. package/dist/features/example-request/index.d.ts +0 -3
  135. package/dist/features/example-request/index.d.ts.map +0 -1
@@ -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
  };