@scalar/api-reference 1.35.2 → 1.35.4

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 (166) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/dist/browser/standalone.js +9636 -9786
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/ApiReference.vue.d.ts +2 -1
  5. package/dist/components/ApiReference.vue.d.ts.map +1 -1
  6. package/dist/components/ApiReference.vue.js +14 -11
  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 +70 -72
  10. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts +3 -1
  11. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts.map +1 -1
  12. package/dist/components/Content/Content.vue.d.ts +0 -2
  13. package/dist/components/Content/Content.vue.d.ts.map +1 -1
  14. package/dist/components/Content/Content.vue.js +80 -80
  15. package/dist/components/Content/Models/ClassicLayout.vue.d.ts +5 -2
  16. package/dist/components/Content/Models/ClassicLayout.vue.d.ts.map +1 -1
  17. package/dist/components/Content/Models/ClassicLayout.vue.js +2 -2
  18. package/dist/components/Content/Models/ClassicLayout.vue2.js +43 -45
  19. package/dist/components/Content/Models/ClassicLayout.vue3.js +2 -2
  20. package/dist/components/Content/Models/Models.vue.d.ts +2 -2
  21. package/dist/components/Content/Models/Models.vue.d.ts.map +1 -1
  22. package/dist/components/Content/Models/Models.vue.js +27 -20
  23. package/dist/components/Content/Models/ModernLayout.vue.d.ts +5 -2
  24. package/dist/components/Content/Models/ModernLayout.vue.d.ts.map +1 -1
  25. package/dist/components/Content/Models/ModernLayout.vue.js +2 -2
  26. package/dist/components/Content/Models/ModernLayout.vue2.js +48 -52
  27. package/dist/components/Content/Operations/TraversedEntry.vue.d.ts +3 -2
  28. package/dist/components/Content/Operations/TraversedEntry.vue.d.ts.map +1 -1
  29. package/dist/components/Content/Operations/TraversedEntry.vue.js +33 -32
  30. package/dist/components/Content/Operations/TraversedEntryContainer.vue.d.ts +2 -2
  31. package/dist/components/Content/Operations/TraversedEntryContainer.vue.d.ts.map +1 -1
  32. package/dist/components/Content/Operations/TraversedEntryContainer.vue.js +1 -1
  33. package/dist/components/Content/Schema/Schema.vue.d.ts +10 -22
  34. package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
  35. package/dist/components/Content/Schema/Schema.vue.js +2 -2
  36. package/dist/components/Content/Schema/Schema.vue2.js +93 -141
  37. package/dist/components/Content/Schema/SchemaComposition.vue.d.ts +19 -4
  38. package/dist/components/Content/Schema/SchemaComposition.vue.d.ts.map +1 -1
  39. package/dist/components/Content/Schema/SchemaComposition.vue.js +83 -138
  40. package/dist/components/Content/Schema/SchemaEnumValues.vue.d.ts +2 -13
  41. package/dist/components/Content/Schema/SchemaEnumValues.vue.d.ts.map +1 -1
  42. package/dist/components/Content/Schema/SchemaEnumValues.vue.js +2 -2
  43. package/dist/components/Content/Schema/SchemaEnumValues.vue2.js +66 -92
  44. package/dist/components/Content/Schema/SchemaHeading.vue.d.ts +2 -2
  45. package/dist/components/Content/Schema/SchemaHeading.vue.d.ts.map +1 -1
  46. package/dist/components/Content/Schema/SchemaHeading.vue.js +2 -2
  47. package/dist/components/Content/Schema/SchemaHeading.vue2.js +19 -17
  48. package/dist/components/Content/Schema/SchemaObjectProperties.vue.d.ts +9 -14
  49. package/dist/components/Content/Schema/SchemaObjectProperties.vue.d.ts.map +1 -1
  50. package/dist/components/Content/Schema/SchemaObjectProperties.vue.js +62 -75
  51. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +8 -13
  52. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
  53. package/dist/components/Content/Schema/SchemaProperty.vue.js +1 -1
  54. package/dist/components/Content/Schema/SchemaProperty.vue2.js +120 -140
  55. package/dist/components/Content/Schema/SchemaPropertyExamples.vue.d.ts +1 -1
  56. package/dist/components/Content/Schema/SchemaPropertyExamples.vue.d.ts.map +1 -1
  57. package/dist/components/Content/Schema/SchemaPropertyExamples.vue.js +2 -2
  58. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts +9 -4
  59. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
  60. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +2 -2
  61. package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +173 -204
  62. package/dist/components/Content/Schema/helpers/get-ref-name.d.ts +11 -0
  63. package/dist/components/Content/Schema/helpers/get-ref-name.d.ts.map +1 -0
  64. package/dist/components/Content/Schema/helpers/get-ref-name.js +11 -0
  65. package/dist/components/Content/Schema/helpers/get-schema-type.d.ts +13 -3
  66. package/dist/components/Content/Schema/helpers/get-schema-type.d.ts.map +1 -1
  67. package/dist/components/Content/Schema/helpers/get-schema-type.js +34 -13
  68. package/dist/components/Content/Schema/helpers/is-type-object.d.ts +4 -2
  69. package/dist/components/Content/Schema/helpers/is-type-object.d.ts.map +1 -1
  70. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.d.ts +2 -4
  71. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.d.ts.map +1 -1
  72. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.js +130 -84
  73. package/dist/components/Content/Schema/helpers/optimize-value-for-display.d.ts +5 -5
  74. package/dist/components/Content/Schema/helpers/optimize-value-for-display.d.ts.map +1 -1
  75. package/dist/components/Content/Schema/helpers/optimize-value-for-display.js +40 -31
  76. package/dist/components/Content/Schema/helpers/schema-composition.d.ts +0 -8
  77. package/dist/components/Content/Schema/helpers/schema-composition.d.ts.map +1 -1
  78. package/dist/components/Content/Schema/helpers/schema-composition.js +2 -6
  79. package/dist/components/Content/Schema/helpers/schema-name.d.ts +8 -17
  80. package/dist/components/Content/Schema/helpers/schema-name.d.ts.map +1 -1
  81. package/dist/components/Content/Schema/helpers/schema-name.js +24 -33
  82. package/dist/features/Operation/Operation.vue.d.ts +3 -4
  83. package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
  84. package/dist/features/Operation/Operation.vue.js +54 -73
  85. package/dist/features/Operation/components/ContentTypeSelect.vue.d.ts +10 -11
  86. package/dist/features/Operation/components/ContentTypeSelect.vue.d.ts.map +1 -1
  87. package/dist/features/Operation/components/ContentTypeSelect.vue.js +35 -43
  88. package/dist/features/Operation/components/{ParameterHeaders.vue.d.ts → Header.vue.d.ts} +4 -5
  89. package/dist/features/Operation/components/Header.vue.d.ts.map +1 -0
  90. package/dist/features/Operation/components/Header.vue.js +23 -0
  91. package/dist/features/Operation/components/Header.vue2.js +4 -0
  92. package/dist/features/Operation/components/Headers.vue.d.ts +8 -0
  93. package/dist/features/Operation/components/Headers.vue.d.ts.map +1 -0
  94. package/dist/features/Operation/components/Headers.vue.js +7 -0
  95. package/dist/features/Operation/components/Headers.vue2.js +61 -0
  96. package/dist/features/Operation/components/OperationParameters.vue.d.ts +4 -10
  97. package/dist/features/Operation/components/OperationParameters.vue.d.ts.map +1 -1
  98. package/dist/features/Operation/components/OperationParameters.vue.js +23 -33
  99. package/dist/features/Operation/components/OperationResponses.vue.d.ts +3 -6
  100. package/dist/features/Operation/components/OperationResponses.vue.d.ts.map +1 -1
  101. package/dist/features/Operation/components/OperationResponses.vue.js +22 -19
  102. package/dist/features/Operation/components/ParameterList.vue.d.ts +3 -10
  103. package/dist/features/Operation/components/ParameterList.vue.d.ts.map +1 -1
  104. package/dist/features/Operation/components/ParameterList.vue.js +35 -5
  105. package/dist/features/Operation/components/ParameterList.vue2.js +2 -38
  106. package/dist/features/Operation/components/ParameterListItem.vue.d.ts +4 -10
  107. package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
  108. package/dist/features/Operation/components/ParameterListItem.vue.js +1 -1
  109. package/dist/features/Operation/components/ParameterListItem.vue2.js +78 -74
  110. package/dist/features/Operation/components/RequestBody.vue.d.ts +3 -8
  111. package/dist/features/Operation/components/RequestBody.vue.d.ts.map +1 -1
  112. package/dist/features/Operation/components/RequestBody.vue.js +2 -2
  113. package/dist/features/Operation/components/RequestBody.vue2.js +78 -82
  114. package/dist/features/Operation/components/callbacks/Callback.vue.d.ts +0 -4
  115. package/dist/features/Operation/components/callbacks/Callback.vue.d.ts.map +1 -1
  116. package/dist/features/Operation/components/callbacks/Callback.vue.js +3 -3
  117. package/dist/features/Operation/components/callbacks/Callback.vue2.js +35 -36
  118. package/dist/features/Operation/components/callbacks/Callback.vue3.js +2 -2
  119. package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts +0 -2
  120. package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts.map +1 -1
  121. package/dist/features/Operation/components/callbacks/Callbacks.vue.js +13 -15
  122. package/dist/features/Operation/helpers/combine-params.d.ts +1 -1
  123. package/dist/features/Operation/helpers/combine-params.d.ts.map +1 -1
  124. package/dist/features/Operation/helpers/combine-params.js +2 -2
  125. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +1 -9
  126. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
  127. package/dist/features/Operation/layouts/ClassicLayout.vue.js +2 -2
  128. package/dist/features/Operation/layouts/ClassicLayout.vue2.js +75 -82
  129. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +2 -10
  130. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
  131. package/dist/features/Operation/layouts/ModernLayout.vue.js +2 -2
  132. package/dist/features/Operation/layouts/ModernLayout.vue2.js +96 -103
  133. package/dist/features/api-client-modal/useApiClient.d.ts +90 -90
  134. package/dist/index.js +1 -1
  135. package/dist/libs/openapi.d.ts +1 -13
  136. package/dist/libs/openapi.d.ts.map +1 -1
  137. package/dist/libs/openapi.js +39 -56
  138. package/dist/style.css +1 -1
  139. package/dist/v2/ApiReferenceWorkspace.vue.d.ts +10 -4
  140. package/dist/v2/ApiReferenceWorkspace.vue.d.ts.map +1 -1
  141. package/dist/v2/ApiReferenceWorkspace.vue.js +22 -18
  142. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.d.ts +1 -1
  143. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.d.ts.map +1 -1
  144. package/package.json +13 -13
  145. package/dist/components/Content/Schema/Schema.preview.d.ts +0 -1078
  146. package/dist/components/Content/Schema/Schema.preview.d.ts.map +0 -1
  147. package/dist/components/Content/Schema/SchemaDiscriminator.vue.d.ts +0 -12
  148. package/dist/components/Content/Schema/SchemaDiscriminator.vue.d.ts.map +0 -1
  149. package/dist/components/Content/Schema/SchemaDiscriminator.vue.js +0 -49
  150. package/dist/components/Content/Schema/SchemaDiscriminator.vue2.js +0 -4
  151. package/dist/components/Content/Schema/SchemaPropertyDescription.vue.d.ts +0 -13
  152. package/dist/components/Content/Schema/SchemaPropertyDescription.vue.d.ts.map +0 -1
  153. package/dist/features/Operation/components/ParameterHeaders.vue.d.ts.map +0 -1
  154. package/dist/features/Operation/components/ParameterHeaders.vue.js +0 -7
  155. package/dist/features/Operation/components/ParameterHeaders.vue2.js +0 -64
  156. package/dist/features/Operation/components/ParameterList.vue3.js +0 -4
  157. package/dist/features/Operation/hooks/useResponses.d.ts +0 -17
  158. package/dist/features/Operation/hooks/useResponses.d.ts.map +0 -1
  159. package/dist/features/Operation/hooks/useResponses.js +0 -19
  160. package/dist/hooks/useDiscriminator.d.ts +0 -53
  161. package/dist/hooks/useDiscriminator.d.ts.map +0 -1
  162. package/dist/hooks/useDiscriminator.js +0 -149
  163. package/dist/hooks/useOperationDiscriminator.d.ts +0 -8
  164. package/dist/hooks/useOperationDiscriminator.d.ts.map +0 -1
  165. package/dist/hooks/useOperationDiscriminator.js +0 -57
  166. /package/dist/features/Operation/components/{ParameterHeaders.vue3.js → Headers.vue3.js} +0 -0
@@ -1,117 +1,113 @@
1
- import { defineComponent as P, computed as f, ref as S, createElementBlock as a, createCommentVNode as d, openBlock as u, createElementVNode as V, createVNode as l, renderSlot as j, unref as c } from "vue";
2
- import { ScalarMarkdown as C } from "@scalar/components";
3
- import R from "./ContentTypeSelect.vue.js";
4
- import b from "../../../components/Content/Schema/Schema.vue.js";
5
- const O = {
1
+ import { defineComponent as q, computed as m, ref as f, createElementBlock as s, createCommentVNode as d, openBlock as a, createElementVNode as h, createVNode as n, renderSlot as B, unref as u } from "vue";
2
+ import { ScalarMarkdown as R } from "@scalar/components";
3
+ import { getResolvedRef as k } from "@scalar/workspace-store/helpers/get-resolved-ref";
4
+ import { isTypeObject as O } from "../../../components/Content/Schema/helpers/is-type-object.js";
5
+ import _ from "./ContentTypeSelect.vue.js";
6
+ import p from "../../../components/Content/Schema/Schema.vue.js";
7
+ const E = {
6
8
  key: 0,
7
9
  class: "request-body"
8
- }, T = { class: "request-body-header" }, _ = { class: "request-body-title" }, g = {
10
+ }, P = { class: "request-body-header" }, V = { class: "request-body-title" }, j = {
9
11
  key: 0,
10
12
  class: "request-body-required"
11
- }, I = {
13
+ }, S = {
12
14
  key: 0,
13
15
  class: "request-body-description"
14
- }, M = {
16
+ }, C = {
15
17
  key: 0,
16
18
  class: "request-body-schema"
17
- }, N = {
19
+ }, T = {
18
20
  key: 1,
19
21
  class: "request-body-schema"
20
- }, y = 12, D = /* @__PURE__ */ P({
22
+ }, b = 12, A = /* @__PURE__ */ q({
21
23
  __name: "RequestBody",
22
24
  props: {
23
25
  breadcrumb: {},
24
- requestBody: {},
25
- schemas: {}
26
+ requestBody: {}
26
27
  },
27
- emits: ["update:modelValue"],
28
- setup(i, { emit: k }) {
29
- var q;
30
- const E = k, v = f(
28
+ setup(c) {
29
+ var v;
30
+ const y = m(
31
31
  () => {
32
32
  var e;
33
- return Object.keys(((e = i.requestBody) == null ? void 0 : e.content) ?? {});
33
+ return Object.keys(((e = c.requestBody) == null ? void 0 : e.content) ?? {});
34
34
  }
35
- ), t = S("application/json");
36
- (q = i.requestBody) != null && q.content && v.value.length > 0 && (t.value = v.value[0]);
37
- const m = f(() => {
38
- var r, n, B;
39
- const e = (B = (n = (r = i.requestBody) == null ? void 0 : r.content) == null ? void 0 : n[t.value]) == null ? void 0 : B.schema;
40
- if ((e == null ? void 0 : e.type) !== "object" || !e.properties)
35
+ ), l = f("application/json");
36
+ (v = c.requestBody) != null && v.content && y.value.length > 0 && (l.value = y.value[0]);
37
+ const r = m(
38
+ () => {
39
+ var e, o, t;
40
+ return k((t = (o = (e = c.requestBody) == null ? void 0 : e.content) == null ? void 0 : o[l.value]) == null ? void 0 : t.schema);
41
+ }
42
+ ), i = m(() => {
43
+ if (!r.value || !O(r.value))
41
44
  return null;
42
- const s = Object.entries(e.properties);
43
- if (s.length <= y)
45
+ const e = Object.entries(r.value.properties ?? {});
46
+ if (e.length <= b)
44
47
  return null;
45
- const { properties: p, ...o } = e;
48
+ const { properties: o, ...t } = r.value;
46
49
  return {
47
50
  visibleProperties: {
48
- ...o,
51
+ ...t,
49
52
  properties: Object.fromEntries(
50
- s.slice(0, y)
53
+ e.slice(0, b)
51
54
  )
52
55
  },
53
56
  collapsedProperties: {
54
- ...o,
57
+ ...t,
55
58
  properties: Object.fromEntries(
56
- s.slice(y)
59
+ e.slice(b)
57
60
  )
58
61
  }
59
62
  };
60
- }), h = (e) => {
61
- E("update:modelValue", e);
62
- };
63
- return (e, s) => {
64
- var p, o, r;
65
- return e.requestBody ? (u(), a("div", O, [
66
- V("div", T, [
67
- V("span", _, [
68
- j(e.$slots, "title", {}, void 0, !0),
69
- e.requestBody.required ? (u(), a("div", g, " required ")) : d("", !0)
70
- ]),
71
- l(R, {
72
- defaultValue: t.value,
73
- requestBody: e.requestBody,
74
- onSelectContentType: s[0] || (s[0] = ({ contentType: n }) => t.value = n)
75
- }, null, 8, ["defaultValue", "requestBody"]),
76
- e.requestBody.description ? (u(), a("div", I, [
77
- l(c(C), {
78
- value: e.requestBody.description
79
- }, null, 8, ["value"])
80
- ])) : d("", !0)
63
+ });
64
+ return (e, o) => e.requestBody ? (a(), s("div", E, [
65
+ h("div", P, [
66
+ h("span", V, [
67
+ B(e.$slots, "title", {}, void 0, !0),
68
+ e.requestBody.required ? (a(), s("div", j, " required ")) : d("", !0)
81
69
  ]),
82
- m.value ? (u(), a("div", M, [
83
- l(c(b), {
84
- compact: "",
85
- name: "Request Body",
86
- noncollapsible: "",
87
- breadcrumb: e.breadcrumb,
88
- schemas: e.schemas,
89
- value: m.value.visibleProperties,
90
- "onUpdate:modelValue": h
91
- }, null, 8, ["breadcrumb", "schemas", "value"]),
92
- l(c(b), {
93
- additionalProperties: "",
94
- compact: "",
95
- name: "Request Body",
96
- breadcrumb: e.breadcrumb,
97
- schemas: e.schemas,
98
- value: m.value.collapsedProperties
99
- }, null, 8, ["breadcrumb", "schemas", "value"])
100
- ])) : (p = e.requestBody.content) != null && p[t.value] ? (u(), a("div", N, [
101
- l(c(b), {
102
- breadcrumb: e.breadcrumb,
103
- compact: "",
104
- name: "Request Body",
105
- noncollapsible: "",
106
- schemas: e.schemas,
107
- value: (r = (o = e.requestBody.content) == null ? void 0 : o[t.value]) == null ? void 0 : r.schema,
108
- "onUpdate:modelValue": h
109
- }, null, 8, ["breadcrumb", "schemas", "value"])
70
+ n(_, {
71
+ modelValue: l.value,
72
+ "onUpdate:modelValue": o[0] || (o[0] = (t) => l.value = t),
73
+ content: e.requestBody.content
74
+ }, null, 8, ["modelValue", "content"]),
75
+ e.requestBody.description ? (a(), s("div", S, [
76
+ n(u(R), {
77
+ value: e.requestBody.description
78
+ }, null, 8, ["value"])
110
79
  ])) : d("", !0)
111
- ])) : d("", !0);
112
- };
80
+ ]),
81
+ i.value ? (a(), s("div", C, [
82
+ n(u(p), {
83
+ breadcrumb: e.breadcrumb,
84
+ compact: "",
85
+ hideReadOnly: !0,
86
+ name: "Request Body",
87
+ noncollapsible: "",
88
+ schema: i.value.visibleProperties
89
+ }, null, 8, ["breadcrumb", "schema"]),
90
+ n(u(p), {
91
+ additionalProperties: "",
92
+ breadcrumb: e.breadcrumb,
93
+ compact: "",
94
+ hideReadOnly: !0,
95
+ name: "Request Body",
96
+ schema: i.value.collapsedProperties
97
+ }, null, 8, ["breadcrumb", "schema"])
98
+ ])) : r.value ? (a(), s("div", T, [
99
+ n(u(p), {
100
+ breadcrumb: e.breadcrumb,
101
+ compact: "",
102
+ hideReadOnly: !0,
103
+ name: "Request Body",
104
+ noncollapsible: "",
105
+ schema: r.value
106
+ }, null, 8, ["breadcrumb", "schema"])
107
+ ])) : d("", !0)
108
+ ])) : d("", !0);
113
109
  }
114
110
  });
115
111
  export {
116
- D as default
112
+ A as default
117
113
  };
@@ -1,13 +1,9 @@
1
1
  import type { HttpMethod as HttpMethodType } from '@scalar/helpers/http/http-methods';
2
2
  import { type OperationObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
3
- import type { Schemas } from '../../../../features/Operation/types/schemas';
4
3
  type __VLS_Props = {
5
4
  callback: OperationObject;
6
5
  method: HttpMethodType;
7
- path: string;
8
- operationMethod: HttpMethodType;
9
6
  name: string;
10
- schemas?: Schemas;
11
7
  url: string;
12
8
  breadcrumb?: string[];
13
9
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Callback.vue.d.ts","sourceRoot":"","sources":["../../../../../src/features/Operation/components/callbacks/Callback.vue"],"names":[],"mappings":"AA+GA,OAAO,KAAK,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,mCAAmC,CAAA;AAErF,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,8DAA8D,CAAA;AAKnG,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AAEjE,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,eAAe,CAAA;IACzB,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;IACX,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;CACtB,CAAC;;AAmKF,wBAMG"}
1
+ {"version":3,"file":"Callback.vue.d.ts","sourceRoot":"","sources":["../../../../../src/features/Operation/components/callbacks/Callback.vue"],"names":[],"mappings":"AA4GA,OAAO,KAAK,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,mCAAmC,CAAA;AAGrF,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,8DAA8D,CAAA;AAMnG,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,eAAe,CAAA;IACzB,MAAM,EAAE,cAAc,CAAA;IACtB,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,CAAA;IACX,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;CACtB,CAAC;;AAoKF,wBAMG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./Callback.vue2.js";
2
2
  import "./Callback.vue3.js";
3
- import a from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ a(o, [["__scopeId", "data-v-b176014a"]]);
3
+ import t from "../../../../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-e62d24fd"]]);
5
5
  export {
6
- p as default
6
+ m as default
7
7
  };
@@ -1,49 +1,48 @@
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 u = { class: "group callback-list-item" }, f = { class: "font-code bg-b-1 callback-sticky-offset callback-list-item-title sticky flex cursor-pointer flex-row items-start gap-2 border-t py-3 text-sm group-open:flex-wrap" }, h = { class: "text-c-1 min-w-0 flex-1 truncate leading-3 group-open:whitespace-normal" }, b = { class: "text-c-2" }, _ = { class: "callback-operation-container flex flex-col gap-2" }, v = /* @__PURE__ */ r({
1
+ import { defineComponent as n, createElementBlock as i, openBlock as m, createElementVNode as t, createVNode as o, unref as a, createTextVNode as p, toDisplayString as r } from "vue";
2
+ import { ScalarIconCaretRight as d } from "@scalar/icons";
3
+ import { getResolvedRef as l } from "@scalar/workspace-store/helpers/get-resolved-ref";
4
+ import f from "../OperationParameters.vue.js";
5
+ import u from "../OperationResponses.vue.js";
6
+ import _ from "../../../../components/HttpMethod/HttpMethod.vue.js";
7
+ const b = { 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-start gap-2 border-t py-3 text-sm group-open:flex-wrap" }, k = { class: "text-c-1 min-w-0 flex-1 truncate leading-3 group-open:whitespace-normal" }, g = { class: "text-c-2" }, y = { class: "callback-operation-container flex flex-col gap-2" }, V = /* @__PURE__ */ n({
7
8
  __name: "Callback",
8
9
  props: {
9
10
  callback: {},
10
11
  method: {},
11
- path: {},
12
- operationMethod: {},
13
12
  name: {},
14
- schemas: {},
15
13
  url: {},
16
14
  breadcrumb: {}
17
15
  },
18
- setup(k) {
19
- return (e, g) => (c(), l("details", u, [
20
- s("summary", f, [
21
- a(t(m), { class: "callback-list-item-icon text-c-3 group-hover:text-c-1 absolute top-3.5 -left-5 size-4 transition-transform duration-100 group-open:rotate-90" }),
22
- a(t(d), {
23
- as: "span",
24
- class: "request-method py-0.75",
25
- method: e.method
26
- }, null, 8, ["method"]),
27
- s("div", h, [
28
- n(o(e.name) + " ", 1),
29
- s("span", b, o(e.url), 1)
16
+ setup(x) {
17
+ return (e, B) => {
18
+ var s;
19
+ return m(), i("details", b, [
20
+ t("summary", h, [
21
+ o(a(d), { class: "callback-list-item-icon text-c-3 group-hover:text-c-1 absolute top-3.5 -left-5 size-4 transition-transform duration-100 group-open:rotate-90" }),
22
+ o(a(_), {
23
+ as: "span",
24
+ class: "request-method py-0.75",
25
+ method: e.method
26
+ }, null, 8, ["method"]),
27
+ t("div", k, [
28
+ p(r(e.name) + " ", 1),
29
+ t("span", g, r(e.url), 1)
30
+ ])
31
+ ]),
32
+ t("div", y, [
33
+ o(f, {
34
+ parameters: ((s = e.callback.parameters) == null ? void 0 : s.map((c) => a(l)(c))) ?? [],
35
+ requestBody: a(l)(e.callback.requestBody)
36
+ }, null, 8, ["parameters", "requestBody"]),
37
+ o(u, {
38
+ collapsableItems: !1,
39
+ responses: e.callback.responses
40
+ }, null, 8, ["responses"])
30
41
  ])
31
- ]),
32
- s("div", _, [
33
- a(i, {
34
- parameters: e.callback.parameters,
35
- requestBody: e.callback.requestBody,
36
- schemas: e.schemas
37
- }, null, 8, ["parameters", "requestBody", "schemas"]),
38
- a(p, {
39
- collapsableItems: !1,
40
- responses: e.callback.responses,
41
- schemas: e.schemas
42
- }, null, 8, ["responses", "schemas"])
43
- ])
44
- ]));
42
+ ]);
43
+ };
45
44
  }
46
45
  });
47
46
  export {
48
- v as default
47
+ V as default
49
48
  };
@@ -1,4 +1,4 @@
1
- const _ = "";
1
+ const e = "";
2
2
  export {
3
- _ as default
3
+ e as default
4
4
  };
@@ -1,11 +1,9 @@
1
1
  import type { HttpMethod } from '@scalar/helpers/http/http-methods';
2
2
  import type { CallbackObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
3
- import type { Schemas } from '../../../../features/Operation/types/schemas';
4
3
  type __VLS_Props = {
5
4
  path: string;
6
5
  method: HttpMethod;
7
6
  callbacks: CallbackObject;
8
- schemas?: Schemas;
9
7
  };
10
8
  declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
9
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"Callbacks.vue.d.ts","sourceRoot":"","sources":["../../../../../src/features/Operation/components/callbacks/Callbacks.vue"],"names":[],"mappings":"AAuDA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AAGnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8DAA8D,CAAA;AAElG,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AAIjE,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;;AAiFF,wBAMG"}
1
+ {"version":3,"file":"Callbacks.vue.d.ts","sourceRoot":"","sources":["../../../../../src/features/Operation/components/callbacks/Callbacks.vue"],"names":[],"mappings":"AAkDA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AAGnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8DAA8D,CAAA;AAIlG,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,UAAU,CAAA;IAClB,SAAS,EAAE,cAAc,CAAA;CAC1B,CAAC;;AA8EF,wBAMG"}
@@ -1,31 +1,29 @@
1
- import { defineComponent as k, createElementBlock as t, openBlock as e, createElementVNode as h, Fragment as l, renderList as o, unref as c, createBlock as f, createCommentVNode as b } from "vue";
1
+ import { defineComponent as k, createElementBlock as t, openBlock as e, createElementVNode as f, Fragment as l, renderList as a, unref as s, createBlock as b, createCommentVNode as h } from "vue";
2
2
  import { isHttpMethod as C } from "@scalar/helpers/http/is-http-method";
3
3
  import { getResolvedRef as g } from "@scalar/workspace-store/helpers/get-resolved-ref";
4
4
  import y from "./Callback.vue.js";
5
- const v = { class: "callbacks-list gap-3" }, N = /* @__PURE__ */ k({
5
+ const _ = { class: "callbacks-list gap-3" }, E = /* @__PURE__ */ k({
6
6
  __name: "Callbacks",
7
7
  props: {
8
8
  path: {},
9
9
  method: {},
10
- callbacks: {},
11
- schemas: {}
10
+ callbacks: {}
12
11
  },
13
12
  setup(m) {
14
- return (a, s) => (e(), t("div", v, [
15
- s[0] || (s[0] = h("div", { class: "callbacks-title text-c-1 my-3 text-lg font-medium" }, " Callbacks ", -1)),
16
- (e(!0), t(l, null, o(a.callbacks, (u, n) => (e(), t(l, { key: n }, [
17
- (e(!0), t(l, null, o(c(g)(u), (p, i) => (e(), t(l, null, [
18
- (e(!0), t(l, null, o(p, (d, r) => (e(), t(l, { key: r }, [
19
- c(C)(r) ? (e(), f(y, {
13
+ return (o, n) => (e(), t("div", _, [
14
+ n[0] || (n[0] = f("div", { class: "callbacks-title text-c-1 my-3 text-lg font-medium" }, " Callbacks ", -1)),
15
+ (e(!0), t(l, null, a(o.callbacks, (u, c) => (e(), t(l, { key: c }, [
16
+ (e(!0), t(l, null, a(s(g)(u), (p, i) => (e(), t(l, null, [
17
+ (e(!0), t(l, null, a(p, (d, r) => (e(), t(l, { key: r }, [
18
+ s(C)(r) ? (e(), b(y, {
20
19
  key: 0,
21
20
  callback: d,
22
21
  method: r,
23
- name: n,
22
+ name: c,
24
23
  operationMethod: m.method,
25
- path: a.path,
26
- schemas: a.schemas,
24
+ path: o.path,
27
25
  url: i
28
- }, null, 8, ["callback", "method", "name", "operationMethod", "path", "schemas", "url"])) : b("", !0)
26
+ }, null, 8, ["callback", "method", "name", "operationMethod", "path", "url"])) : h("", !0)
29
27
  ], 64))), 128))
30
28
  ], 64))), 256))
31
29
  ], 64))), 128))
@@ -33,5 +31,5 @@ const v = { class: "callbacks-list gap-3" }, N = /* @__PURE__ */ k({
33
31
  }
34
32
  });
35
33
  export {
36
- N as default
34
+ E as default
37
35
  };
@@ -1,4 +1,4 @@
1
- import type { OperationObject, PathItemObject, ParameterObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
1
+ import type { OperationObject, ParameterObject, PathItemObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
2
2
  /** Combine pathItem and operation parameters into a single, dereferenced parameter array */
3
3
  export declare const combineParams: (pathParams?: PathItemObject["parameters"], operationParams?: OperationObject["parameters"]) => ParameterObject[];
4
4
  //# sourceMappingURL=combine-params.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"combine-params.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/helpers/combine-params.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,eAAe,EACf,cAAc,EACd,eAAe,EAChB,MAAM,8DAA8D,CAAA;AAErE,4FAA4F;AAC5F,eAAO,MAAM,aAAa,GACxB,aAAY,cAAc,CAAC,YAAY,CAAM,EAC7C,kBAAiB,eAAe,CAAC,YAAY,CAAM,KAClD,eAAe,EAajB,CAAA"}
1
+ {"version":3,"file":"combine-params.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/helpers/combine-params.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,eAAe,EACf,eAAe,EACf,cAAc,EACf,MAAM,8DAA8D,CAAA;AAErE,4FAA4F;AAC5F,eAAO,MAAM,aAAa,GACxB,aAAY,cAAc,CAAC,YAAY,CAAM,EAC7C,kBAAiB,eAAe,CAAC,YAAY,CAAM,KAClD,eAAe,EAgBjB,CAAA"}
@@ -1,7 +1,7 @@
1
1
  import { isDefined as s } from "@scalar/helpers/array/is-defined";
2
2
  import { getResolvedRef as t } from "@scalar/workspace-store/helpers/get-resolved-ref";
3
- const c = (o = [], a = []) => {
4
- const m = [...o, ...a].map((e) => t(e)).filter(s), r = /* @__PURE__ */ new Map();
3
+ const c = (a = [], o = []) => {
4
+ const m = [...a, ...o].map((e) => t(e)).filter((e) => s(e) && e.name), r = /* @__PURE__ */ new Map();
5
5
  for (const e of m) {
6
6
  const n = `${e.in}:${e.name}`;
7
7
  r.set(n, e);
@@ -1,9 +1,7 @@
1
1
  import type { HttpMethod as HttpMethodType } from '@scalar/helpers/http/http-methods';
2
- import type { OpenAPIV3_1 } from '@scalar/openapi-types';
3
2
  import type { ApiReferenceConfiguration } from '@scalar/types';
4
3
  import type { WorkspaceStore } from '@scalar/workspace-store/client';
5
4
  import type { OperationObject, SecuritySchemeObject, ServerObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
6
- import type { Schemas } from '../../../features/Operation/types/schemas';
7
5
  import type { ClientOptionGroup } from '../../../v2/blocks/scalar-request-example-block/types';
8
6
  type __VLS_Props = {
9
7
  id: string;
@@ -12,17 +10,11 @@ type __VLS_Props = {
12
10
  method: HttpMethodType;
13
11
  config: ApiReferenceConfiguration;
14
12
  operation: OperationObject;
15
- oldOperation: OpenAPIV3_1.OperationObject;
16
13
  isWebhook: boolean;
17
14
  server: ServerObject | undefined;
18
15
  securitySchemes: SecuritySchemeObject[];
19
- schemas?: Schemas;
20
16
  store: WorkspaceStore;
21
17
  };
22
- declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
23
- "update:modelValue": (value: string) => any;
24
- }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
25
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
26
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
+ 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>;
27
19
  export default _default;
28
20
  //# sourceMappingURL=ClassicLayout.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ClassicLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ClassicLayout.vue"],"names":[],"mappings":"AAmdA,OAAO,KAAK,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,mCAAmC,CAAA;AAWrF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAA;AAE9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,KAAK,EACV,eAAe,EACf,oBAAoB,EACpB,YAAY,EACb,MAAM,8DAA8D,CAAA;AAcrE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AAIjE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gDAAgD,CAAA;AAEvF,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,aAAa,EAAE,iBAAiB,EAAE,CAAA;IAClC,MAAM,EAAE,cAAc,CAAA;IACtB,MAAM,EAAE,yBAAyB,CAAA;IACjC,SAAS,EAAE,eAAe,CAAA;IAC1B,YAAY,EAAE,WAAW,CAAC,eAAe,CAAA;IAEzC,SAAS,EAAE,OAAO,CAAA;IAClB,MAAM,EAAE,YAAY,GAAG,SAAS,CAAA;IAChC,eAAe,EAAE,oBAAoB,EAAE,CAAA;IACvC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,KAAK,EAAE,cAAc,CAAA;CACtB,CAAC;;;;;;AAkhBF,wBAOG"}
1
+ {"version":3,"file":"ClassicLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ClassicLayout.vue"],"names":[],"mappings":"AAscA,OAAO,KAAK,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,mCAAmC,CAAA;AAWrF,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAA;AAE9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAEpE,OAAO,KAAK,EACV,eAAe,EAEf,oBAAoB,EACpB,YAAY,EACb,MAAM,8DAA8D,CAAA;AAiBrE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gDAAgD,CAAA;AAEvF,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,aAAa,EAAE,iBAAiB,EAAE,CAAA;IAClC,MAAM,EAAE,cAAc,CAAA;IACtB,MAAM,EAAE,yBAAyB,CAAA;IACjC,SAAS,EAAE,eAAe,CAAA;IAE1B,SAAS,EAAE,OAAO,CAAA;IAClB,MAAM,EAAE,YAAY,GAAG,SAAS,CAAA;IAChC,eAAe,EAAE,oBAAoB,EAAE,CAAA;IACvC,KAAK,EAAE,cAAc,CAAA;CACtB,CAAC;;AAsfF,wBAMG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./ClassicLayout.vue2.js";
2
2
  import "./ClassicLayout.vue3.js";
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-79d9b9b5"]]);
4
+ const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-bf5a5b89"]]);
5
5
  export {
6
- m as default
6
+ f as default
7
7
  };