@scalar/api-reference 1.32.9 → 1.32.10

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 (122) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/dist/browser/standalone.js +15115 -14878
  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 +2 -2
  6. package/dist/components/ApiReferenceLayout.vue2.js +164 -176
  7. package/dist/components/Badge/Badge.vue.d.ts.map +1 -1
  8. package/dist/components/Badge/Badge.vue.js +3 -3
  9. package/dist/components/Content/Content.vue.js +2 -2
  10. package/dist/components/Content/Content.vue2.js +21 -21
  11. package/dist/components/Content/Introduction/Description.vue.d.ts.map +1 -1
  12. package/dist/components/Content/Introduction/Description.vue.js +2 -2
  13. package/dist/components/Content/Introduction/Introduction.vue.d.ts.map +1 -1
  14. package/dist/components/Content/Introduction/Introduction.vue.js +2 -2
  15. package/dist/components/Content/Introduction/Introduction.vue2.js +104 -72
  16. package/dist/components/Content/Tag/Tag.vue.d.ts.map +1 -1
  17. package/dist/components/LinkList/LinkList.vue.d.ts +18 -0
  18. package/dist/components/LinkList/LinkList.vue.d.ts.map +1 -0
  19. package/dist/components/LinkList/LinkList.vue.js +12 -0
  20. package/dist/components/LinkList/index.d.ts +2 -0
  21. package/dist/components/LinkList/index.d.ts.map +1 -0
  22. package/dist/components/Section/SectionHeader.vue.d.ts +1 -0
  23. package/dist/components/Section/SectionHeader.vue.d.ts.map +1 -1
  24. package/dist/components/Section/SectionHeader.vue.js +2 -2
  25. package/dist/components/Section/SectionHeader.vue2.js +11 -10
  26. package/dist/features/Operation/Operation.vue.d.ts +6 -6
  27. package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
  28. package/dist/features/Operation/Operation.vue.js +50 -49
  29. package/dist/features/Operation/components/callbacks/Callback.vue.d.ts +8 -6
  30. package/dist/features/Operation/components/callbacks/Callback.vue.d.ts.map +1 -1
  31. package/dist/features/Operation/components/callbacks/Callback.vue.js +3 -3
  32. package/dist/features/Operation/components/callbacks/Callback.vue2.js +21 -28
  33. package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts +5 -3
  34. package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts.map +1 -1
  35. package/dist/features/Operation/components/callbacks/Callbacks.vue.js +33 -18
  36. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +11 -12
  37. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
  38. package/dist/features/Operation/layouts/ClassicLayout.vue.js +1 -1
  39. package/dist/features/Operation/layouts/ClassicLayout.vue2.js +164 -163
  40. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +12 -13
  41. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
  42. package/dist/features/Operation/layouts/ModernLayout.vue.js +1 -1
  43. package/dist/features/Operation/layouts/ModernLayout.vue2.js +111 -118
  44. package/dist/features/api-client-modal/useApiClient.d.ts +5299 -5299
  45. package/dist/features/api-client-modal/useApiClient.d.ts.map +1 -1
  46. package/dist/features/base-url/BaseUrl.vue.d.ts.map +1 -1
  47. package/dist/features/base-url/BaseUrl.vue.js +26 -26
  48. package/dist/features/download-link/DownloadLink.vue.js +1 -1
  49. package/dist/features/example-responses/ExampleResponseTab.vue.js +2 -2
  50. package/dist/features/example-responses/ExampleResponseTabList.vue.js +1 -1
  51. package/dist/features/example-responses/ExampleResponses.vue.d.ts.map +1 -1
  52. package/dist/features/example-responses/ExampleResponses.vue.js +2 -2
  53. package/dist/features/example-responses/ExampleResponses.vue2.js +60 -57
  54. package/dist/features/external-docs/ExternalDocs.vue.d.ts +7 -0
  55. package/dist/features/external-docs/ExternalDocs.vue.d.ts.map +1 -0
  56. package/dist/features/external-docs/ExternalDocs.vue.js +36 -0
  57. package/dist/features/external-docs/ExternalDocs.vue2.js +4 -0
  58. package/dist/features/external-docs/index.d.ts +2 -0
  59. package/dist/features/external-docs/index.d.ts.map +1 -0
  60. package/dist/features/info-object/Contact.vue.d.ts +7 -0
  61. package/dist/features/info-object/Contact.vue.d.ts.map +1 -0
  62. package/dist/features/info-object/Contact.vue.js +44 -0
  63. package/dist/features/info-object/Contact.vue2.js +4 -0
  64. package/dist/features/info-object/License.vue.d.ts +7 -0
  65. package/dist/features/info-object/License.vue.d.ts.map +1 -0
  66. package/dist/features/info-object/License.vue.js +34 -0
  67. package/dist/features/info-object/License.vue2.js +4 -0
  68. package/dist/features/info-object/TermsOfService.vue.d.ts +7 -0
  69. package/dist/features/info-object/TermsOfService.vue.d.ts.map +1 -0
  70. package/dist/features/info-object/TermsOfService.vue.js +30 -0
  71. package/dist/features/info-object/TermsOfService.vue2.js +4 -0
  72. package/dist/features/info-object/index.d.ts +4 -0
  73. package/dist/features/info-object/index.d.ts.map +1 -0
  74. package/dist/features/test-request-button/TestRequestButton.vue.d.ts +3 -2
  75. package/dist/features/test-request-button/TestRequestButton.vue.d.ts.map +1 -1
  76. package/dist/features/test-request-button/TestRequestButton.vue.js +2 -2
  77. package/dist/features/test-request-button/TestRequestButton.vue2.js +21 -19
  78. package/dist/helpers/convert-security-scheme.js +23 -0
  79. package/dist/index.d.ts +0 -1
  80. package/dist/index.d.ts.map +1 -1
  81. package/dist/index.js +13 -15
  82. package/dist/style.css +1 -1
  83. package/dist/v2/ApiReferenceWorkspace.vue.d.ts +3 -1
  84. package/dist/v2/ApiReferenceWorkspace.vue.d.ts.map +1 -1
  85. package/dist/v2/ApiReferenceWorkspace.vue.js +113 -86
  86. package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.d.ts +0 -2
  87. package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.d.ts.map +1 -1
  88. package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.js +4 -0
  89. package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue2.js +69 -0
  90. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.d.ts.map +1 -1
  91. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.js +7 -0
  92. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue2.js +227 -0
  93. package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.js +20 -3
  94. package/dist/v2/blocks/scalar-request-example-block/helpers/generate-client-options.js +35 -0
  95. package/dist/v2/blocks/scalar-request-example-block/helpers/generate-code-snippet.js +29 -0
  96. package/dist/v2/blocks/scalar-request-example-block/helpers/get-secrets.js +10 -0
  97. package/dist/v2/blocks/scalar-request-example-block/index.d.ts +2 -2
  98. package/dist/v2/events/definitions.js +7 -0
  99. package/dist/v2/events/index.d.ts +1 -1
  100. package/dist/v2/events/listeners.d.ts +1 -1
  101. package/dist/v2/hooks/useStore.js +14 -0
  102. package/package.json +11 -11
  103. package/LICENSE +0 -21
  104. package/dist/blocks/constants.js +0 -6
  105. package/dist/blocks/helpers/getPointer.js +0 -12
  106. package/dist/blocks/hooks/useBlockProps.d.ts +0 -31
  107. package/dist/blocks/hooks/useBlockProps.d.ts.map +0 -1
  108. package/dist/blocks/hooks/useBlockProps.js +0 -24
  109. package/dist/features/example-request/ExamplePicker.vue.d.ts +0 -13
  110. package/dist/features/example-request/ExamplePicker.vue.d.ts.map +0 -1
  111. package/dist/features/example-request/ExamplePicker.vue.js +0 -7
  112. package/dist/features/example-request/ExamplePicker.vue2.js +0 -57
  113. package/dist/features/example-request/ExampleRequest.vue.d.ts +0 -85
  114. package/dist/features/example-request/ExampleRequest.vue.d.ts.map +0 -1
  115. package/dist/features/example-request/ExampleRequest.vue.js +0 -7
  116. package/dist/features/example-request/ExampleRequest.vue2.js +0 -348
  117. package/dist/features/example-request/TextSelect.vue.d.ts +0 -34
  118. package/dist/features/example-request/TextSelect.vue.d.ts.map +0 -1
  119. package/dist/features/example-request/TextSelect.vue.js +0 -48
  120. package/dist/features/example-request/TextSelect.vue3.js +0 -5
  121. package/dist/features/example-request/index.d.ts +0 -3
  122. package/dist/features/example-request/index.d.ts.map +0 -1
@@ -1,185 +1,186 @@
1
- import { defineComponent as S, computed as V, createBlock as l, openBlock as r, unref as o, createSlots as w, withCtx as i, createElementVNode as s, createVNode as t, createElementBlock as I, createCommentVNode as d, withModifiers as T, toDisplayString as f, normalizeClass as R, createTextVNode as y } from "vue";
2
- import { ScalarIconButton as $, ScalarMarkdown as E } from "@scalar/components";
3
- import { ScalarIconPlay as N, ScalarIconCopy as O, ScalarIconWebhooksLogo as P } from "@scalar/icons";
4
- import { isOperationDeprecated as W, getOperationStability as k, getOperationStabilityColor as _ } from "@scalar/oas-utils/helpers";
5
- import { useClipboard as z } from "@scalar/use-hooks/useClipboard";
6
- import A from "../../../components/OperationPath.vue.js";
7
- import D from "../components/callbacks/Callbacks.vue.js";
8
- import { useConfig as L } from "../../../hooks/useConfig.js";
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";
9
8
  import U from "../components/OperationParameters.vue.js";
10
- import M from "../components/OperationResponses.vue.js";
11
- import j from "../../../components/Section/SectionAccordion.vue.js";
12
- import F from "../../example-responses/ExampleResponses.vue.js";
13
- import G from "../../example-request/ExampleRequest.vue.js";
14
- import H from "../../test-request-button/TestRequestButton.vue.js";
15
- import J from "../../../components/HttpMethod/HttpMethod.vue.js";
16
- import K from "../../../components/Anchor/Anchor.vue.js";
17
- import v from "../../../components/Badge/Badge.vue.js";
18
- const Q = { class: "operation-title" }, X = { class: "operation-details" }, Y = { class: "endpoint-label" }, Z = { class: "endpoint-label-path" }, x = { class: "endpoint-label-name" }, ee = { class: "endpoint-content" }, oe = { class: "operation-details-card" }, te = { class: "operation-details-card-item" }, se = { class: "operation-details-card-item" }, ae = {
9
+ import _ from "../components/OperationResponses.vue.js";
10
+ import { useConfig as M } 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 = {
19
20
  key: 0,
20
21
  class: "operation-details-card-item"
21
- }, qe = /* @__PURE__ */ S({
22
+ }, Oe = /* @__PURE__ */ B({
22
23
  __name: "ClassicLayout",
23
24
  props: {
24
25
  id: {},
25
26
  path: {},
26
27
  method: {},
27
28
  operation: {},
29
+ oldOperation: {},
28
30
  isWebhook: { type: Boolean },
29
- collection: {},
30
31
  server: {},
31
- request: {},
32
+ securitySchemes: {},
32
33
  schemas: {}
33
34
  },
34
35
  emits: ["update:modelValue"],
35
- setup(m, { emit: b }) {
36
- const g = V(() => {
37
- var e;
38
- return ((e = m.operation) == null ? void 0 : e.summary) || m.path || "";
39
- }), { copyToClipboard: C } = z(), q = L(), B = b, h = (e) => {
40
- B("update:modelValue", e);
36
+ setup(d, { emit: k }) {
37
+ const b = w(() => d.operation.summary || d.path || ""), { copyToClipboard: v } = A(), { workspace: S } = j(), C = M(), g = k, m = (e) => {
38
+ g("update:modelValue", e);
41
39
  };
42
- return (e, p) => {
43
- var u;
44
- return r(), l(o(j), {
45
- id: e.id,
46
- class: "reference-endpoint",
47
- transparent: ""
48
- }, w({
49
- title: i(() => [
50
- s("div", Q, [
51
- s("div", X, [
52
- t(o(J), {
53
- class: "endpoint-type",
54
- method: e.method,
55
- short: ""
56
- }, null, 8, ["method"]),
57
- t(o(K), {
58
- id: e.id,
59
- class: "endpoint-anchor"
60
- }, {
61
- default: i(() => [
62
- s("h3", Y, [
63
- s("div", Z, [
64
- t(A, {
65
- deprecated: o(W)(e.operation),
66
- path: e.path
67
- }, 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)
68
72
  ]),
69
- s("div", x, f(g.value), 1),
70
- o(k)(e.operation) ? (r(), l(o(v), {
71
- key: 0,
72
- class: R(o(_)(e.operation))
73
- }, {
74
- default: i(() => [
75
- y(f(o(k)(e.operation)), 1)
76
- ]),
77
- _: 1
78
- }, 8, ["class"])) : d("", !0),
79
- e.isWebhook ? (r(), l(o(v), {
80
- key: 1,
81
- class: "font-code text-green flex w-fit items-center justify-center gap-1"
82
- }, {
83
- default: i(() => [
84
- t(o(P), { weight: "bold" }),
85
- p[1] || (p[1] = y("Webhook "))
86
- ]),
87
- _: 1,
88
- __: [1]
89
- })) : d("", !0)
90
- ])
91
- ]),
92
- _: 1
93
- }, 8, ["id"])
94
- ])
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)
86
+ ])
87
+ ]),
88
+ _: 1
89
+ }, 8, ["id"])
95
90
  ])
96
- ]),
97
- actions: i(({ active: a }) => {
98
- var n;
99
- return [
100
- a && e.request ? (r(), l(o(H), {
101
- key: 0,
102
- operation: e.request
103
- }, null, 8, ["operation"])) : (n = o(q)) != null && n.hideTestRequestButton ? d("", !0) : (r(), l(o(N), {
104
- key: 1,
105
- class: "endpoint-try-hint size-4.5"
106
- })),
107
- t(o($), {
108
- class: "endpoint-copy p-0.5",
109
- icon: o(O),
110
- label: "Copy endpoint URL",
111
- size: "xs",
112
- variant: "ghost",
113
- onClick: p[0] || (p[0] = T((c) => o(C)(e.path), ["stop"]))
114
- }, null, 8, ["icon"])
115
- ];
116
- }),
117
- default: i(() => {
118
- var a, n, c;
119
- return [
120
- s("div", ee, [
121
- s("div", oe, [
122
- s("div", te, [
123
- t(U, {
124
- parameters: (a = e.operation) == null ? void 0 : a.parameters,
125
- requestBody: (n = e.operation) == null ? void 0 : n.requestBody,
126
- schemas: e.schemas,
127
- "onUpdate:modelValue": h
128
- }, null, 8, ["parameters", "requestBody", "schemas"])
129
- ]),
130
- s("div", se, [
131
- t(M, {
132
- collapsableItems: !1,
133
- responses: e.operation.responses,
134
- schemas: e.schemas
135
- }, null, 8, ["responses", "schemas"])
136
- ]),
137
- (c = e.operation) != null && c.callbacks ? (r(), I("div", ae, [
138
- t(D, {
139
- callbacks: e.operation.callbacks,
140
- schemas: e.schemas,
141
- collection: e.collection
142
- }, null, 8, ["callbacks", "schemas", "collection"])
143
- ])) : d("", !0)
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"])
144
126
  ]),
145
- t(o(F), {
146
- class: "operation-example-card",
147
- responses: e.operation.responses
148
- }, null, 8, ["responses"]),
149
- t(o(G), {
150
- class: "operation-example-card",
151
- request: e.request,
152
- method: e.method,
153
- collection: e.collection,
154
- operation: e.operation,
155
- server: e.server,
156
- "onUpdate:modelValue": h
157
- }, null, 8, ["request", "method", "collection", "operation", "server"])
158
- ])
159
- ];
160
- }),
161
- _: 2
162
- }, [
163
- (u = e.operation) != null && u.description ? {
164
- name: "description",
165
- fn: i(() => {
166
- var a;
167
- return [
168
- t(o(E), {
169
- value: (a = e.operation) == null ? void 0 : a.description,
170
- withImages: "",
171
- withAnchors: "",
172
- transformType: "heading",
173
- anchorPrefix: e.id
174
- }, null, 8, ["value", "anchorPrefix"])
175
- ];
176
- }),
177
- key: "0"
178
- } : void 0
179
- ]), 1032, ["id"]);
180
- };
127
+ a("div", se, [
128
+ t(_, {
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
+ "onUpdate:modelValue": m
159
+ }, null, 8, ["method", "selectedServer", "selectedClient", "securitySchemes", "path", "operation"])
160
+ ]),
161
+ _: 1
162
+ })
163
+ ])
164
+ ];
165
+ }),
166
+ _: 2
167
+ }, [
168
+ e.operation.description ? {
169
+ name: "description",
170
+ fn: s(() => [
171
+ t(o(R), {
172
+ value: e.operation.description,
173
+ withImages: "",
174
+ withAnchors: "",
175
+ transformType: "heading",
176
+ anchorPrefix: e.id
177
+ }, null, 8, ["value", "anchorPrefix"])
178
+ ]),
179
+ key: "0"
180
+ } : void 0
181
+ ]), 1032, ["id"]));
181
182
  }
182
183
  });
183
184
  export {
184
- qe as default
185
+ Oe as default
185
186
  };
@@ -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":"AAmMA,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;;;;;;AAiUF,wBAQG"}
1
+ {"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ModernLayout.vue"],"names":[],"mappings":"AAmMA,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-1030b20c"]]);
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-789699aa"]]);
5
5
  export {
6
6
  p as default
7
7
  };