@scalar/api-reference 1.25.69 → 1.25.71

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 (132) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/dist/browser/standalone.js +10502 -10518
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/ApiReferenceLayout.vue.js +2 -2
  5. package/dist/components/ApiReferenceLayout.vue2.js +1 -1
  6. package/dist/components/Content/Content.vue.d.ts +4 -2
  7. package/dist/components/Content/Content.vue.d.ts.map +1 -1
  8. package/dist/components/Content/Content.vue.js +1 -1
  9. package/dist/components/Content/Content.vue2.js +33 -33
  10. package/dist/components/Content/Lazy/Loading.vue.d.ts +3 -3
  11. package/dist/components/Content/Lazy/Loading.vue.d.ts.map +1 -1
  12. package/dist/components/Content/Lazy/Loading.vue.js +27 -27
  13. package/dist/components/Content/Tag/TagList.vue.d.ts +1 -1
  14. package/dist/components/Content/Tag/TagList.vue.d.ts.map +1 -1
  15. package/dist/components/Content/Tag/TagList.vue.js +33 -35
  16. package/dist/components/Content/Webhooks/index.d.ts +1 -1
  17. package/dist/components/Content/Webhooks/index.d.ts.map +1 -1
  18. package/dist/components/Layouts/ClassicLayout.vue.d.ts.map +1 -1
  19. package/dist/components/{Content/Operation/EndpointPath.vue.d.ts → OperationPath.vue.d.ts} +1 -1
  20. package/dist/components/OperationPath.vue.d.ts.map +1 -0
  21. package/dist/components/OperationPath.vue.js +7 -0
  22. package/dist/components/OperationPath.vue2.js +23 -0
  23. package/dist/components/Section/Section.vue2.js +4 -4
  24. package/dist/embeds/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
  25. package/dist/embeds/OpenApiDocument/OpenApiDocument.vue.d.ts.map +1 -1
  26. package/dist/features/BaseUrl/ServerVariablesForm.vue.js +1 -1
  27. package/dist/{components/Content/Operation/EndpointDetailsCard.vue.d.ts → features/Operation/Operation.vue.d.ts} +6 -2
  28. package/dist/features/Operation/Operation.vue.d.ts.map +1 -0
  29. package/dist/features/Operation/Operation.vue.js +25 -0
  30. package/dist/features/Operation/Operation.vue2.js +4 -0
  31. package/dist/features/Operation/Webhooks.vue.d.ts.map +1 -0
  32. package/dist/features/Operation/Webhooks.vue.js +7 -0
  33. package/dist/{components/Content/Webhooks → features/Operation}/Webhooks.vue2.js +12 -12
  34. package/dist/features/Operation/components/ContentTypeSelect.vue.d.ts.map +1 -0
  35. package/dist/{components/Content/Operation → features/Operation/components}/ContentTypeSelect.vue.js +2 -2
  36. package/dist/{components/Content/Operation → features/Operation/components}/ContentTypeSelect.vue2.js +8 -8
  37. package/dist/features/Operation/components/OperationParameters.vue.d.ts +7 -0
  38. package/dist/features/Operation/components/OperationParameters.vue.d.ts.map +1 -0
  39. package/dist/features/Operation/components/OperationParameters.vue.js +71 -0
  40. package/dist/features/Operation/components/OperationParameters.vue2.js +4 -0
  41. package/dist/{components/Content/Operation/EndpointDetails.vue.d.ts → features/Operation/components/OperationResponses.vue.d.ts} +5 -2
  42. package/dist/features/Operation/components/OperationResponses.vue.d.ts.map +1 -0
  43. package/dist/features/Operation/components/OperationResponses.vue.js +25 -0
  44. package/dist/features/Operation/components/OperationResponses.vue2.js +4 -0
  45. package/dist/features/Operation/components/ParameterHeaders.vue.d.ts.map +1 -0
  46. package/dist/features/Operation/components/ParameterHeaders.vue.js +7 -0
  47. package/dist/{components/Content/Operation → features/Operation/components}/ParameterHeaders.vue2.js +8 -8
  48. package/dist/{components/Content/Operation/Parameters.vue.d.ts → features/Operation/components/ParameterList.vue.d.ts} +3 -3
  49. package/dist/features/Operation/components/ParameterList.vue.d.ts.map +1 -0
  50. package/dist/features/Operation/components/ParameterList.vue.js +7 -0
  51. package/dist/{components/Content/Operation/Parameters.vue2.js → features/Operation/components/ParameterList.vue2.js} +7 -7
  52. package/dist/{components/Content/Operation/ParameterItem.vue.d.ts → features/Operation/components/ParameterListItem.vue.d.ts} +3 -3
  53. package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -0
  54. package/dist/features/Operation/components/ParameterListItem.vue.js +7 -0
  55. package/dist/{components/Content/Operation/ParameterItem.vue2.js → features/Operation/components/ParameterListItem.vue2.js} +20 -20
  56. package/dist/features/Operation/components/RequestBody.vue.d.ts.map +1 -0
  57. package/dist/{components/Content/Operation → features/Operation/components}/RequestBody.vue.js +1 -1
  58. package/dist/{components/Content/Operation → features/Operation/components}/RequestBody.vue2.js +1 -1
  59. package/dist/features/Operation/components/RequestBodyPropertiesChild.vue.d.ts.map +1 -0
  60. package/dist/features/Operation/components/Webhook.vue.d.ts.map +1 -0
  61. package/dist/{components/Content/Webhooks → features/Operation/components}/Webhook.vue.js +2 -2
  62. package/dist/features/Operation/components/Webhook.vue2.js +29 -0
  63. package/dist/{hooks → features/Operation/hooks}/useResponses.d.ts +1 -1
  64. package/dist/features/Operation/hooks/useResponses.d.ts.map +1 -0
  65. package/dist/features/Operation/index.d.ts +3 -0
  66. package/dist/features/Operation/index.d.ts.map +1 -0
  67. package/dist/{components/Content/Operation/OperationAccordion.vue.d.ts → features/Operation/layouts/ClassicLayout.vue.d.ts} +1 -1
  68. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -0
  69. package/dist/features/Operation/layouts/ClassicLayout.vue.js +7 -0
  70. package/dist/features/Operation/layouts/ClassicLayout.vue2.js +114 -0
  71. package/dist/{components/Content/Operation/Operation.vue.d.ts → features/Operation/layouts/ModernLayout.vue.d.ts} +1 -1
  72. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -0
  73. package/dist/features/Operation/layouts/ModernLayout.vue.js +7 -0
  74. package/dist/features/Operation/layouts/ModernLayout.vue2.js +114 -0
  75. package/dist/features/Search/SearchButton.vue.js +2 -2
  76. package/dist/features/Search/SearchButton.vue2.js +1 -1
  77. package/dist/features/Search/useSearchIndex.js +8 -8
  78. package/dist/features/TestRequestButton/TestRequestButton.vue.d.ts.map +1 -0
  79. package/dist/features/TestRequestButton/TestRequestButton.vue.js +7 -0
  80. package/dist/{components/Content/Operation → features/TestRequestButton}/TestRequestButton.vue2.js +6 -6
  81. package/dist/features/TestRequestButton/index.d.ts +2 -0
  82. package/dist/features/TestRequestButton/index.d.ts.map +1 -0
  83. package/dist/hooks/index.d.ts +0 -1
  84. package/dist/hooks/index.d.ts.map +1 -1
  85. package/dist/hooks/useOperation.d.ts +7 -10
  86. package/dist/hooks/useOperation.d.ts.map +1 -1
  87. package/dist/hooks/useOperation.js +13 -11
  88. package/dist/index.js +12 -14
  89. package/dist/legacy/components/SecurityScheme.vue2.js +6 -6
  90. package/dist/style.css +1 -1
  91. package/package.json +11 -10
  92. package/dist/components/Content/Operation/ContentTypeSelect.vue.d.ts.map +0 -1
  93. package/dist/components/Content/Operation/EndpointDetails.vue.d.ts.map +0 -1
  94. package/dist/components/Content/Operation/EndpointDetails.vue.js +0 -88
  95. package/dist/components/Content/Operation/EndpointDetails.vue2.js +0 -4
  96. package/dist/components/Content/Operation/EndpointDetailsCard.vue.d.ts.map +0 -1
  97. package/dist/components/Content/Operation/EndpointDetailsCard.vue.js +0 -7
  98. package/dist/components/Content/Operation/EndpointDetailsCard.vue2.js +0 -67
  99. package/dist/components/Content/Operation/EndpointPath.vue.d.ts.map +0 -1
  100. package/dist/components/Content/Operation/EndpointPath.vue.js +0 -7
  101. package/dist/components/Content/Operation/EndpointPath.vue2.js +0 -23
  102. package/dist/components/Content/Operation/Operation.vue.d.ts.map +0 -1
  103. package/dist/components/Content/Operation/Operation.vue.js +0 -7
  104. package/dist/components/Content/Operation/Operation.vue2.js +0 -105
  105. package/dist/components/Content/Operation/OperationAccordion.vue.d.ts.map +0 -1
  106. package/dist/components/Content/Operation/OperationAccordion.vue.js +0 -7
  107. package/dist/components/Content/Operation/OperationAccordion.vue2.js +0 -103
  108. package/dist/components/Content/Operation/ParameterHeaders.vue.d.ts.map +0 -1
  109. package/dist/components/Content/Operation/ParameterHeaders.vue.js +0 -7
  110. package/dist/components/Content/Operation/ParameterItem.vue.d.ts.map +0 -1
  111. package/dist/components/Content/Operation/ParameterItem.vue.js +0 -7
  112. package/dist/components/Content/Operation/Parameters.vue.d.ts.map +0 -1
  113. package/dist/components/Content/Operation/Parameters.vue.js +0 -7
  114. package/dist/components/Content/Operation/RequestBody.vue.d.ts.map +0 -1
  115. package/dist/components/Content/Operation/RequestBodyPropertiesChild.vue.d.ts.map +0 -1
  116. package/dist/components/Content/Operation/TestRequestButton.vue.d.ts.map +0 -1
  117. package/dist/components/Content/Operation/TestRequestButton.vue.js +0 -7
  118. package/dist/components/Content/Operation/index.d.ts +0 -3
  119. package/dist/components/Content/Operation/index.d.ts.map +0 -1
  120. package/dist/components/Content/Webhooks/Webhook.vue.d.ts.map +0 -1
  121. package/dist/components/Content/Webhooks/Webhook.vue2.js +0 -39
  122. package/dist/components/Content/Webhooks/Webhooks.vue.d.ts.map +0 -1
  123. package/dist/components/Content/Webhooks/Webhooks.vue.js +0 -7
  124. package/dist/hooks/useResponses.d.ts.map +0 -1
  125. /package/dist/{components/Content/Webhooks → features/Operation}/Webhooks.vue.d.ts +0 -0
  126. /package/dist/{components/Content/Operation → features/Operation/components}/ContentTypeSelect.vue.d.ts +0 -0
  127. /package/dist/{components/Content/Operation → features/Operation/components}/ParameterHeaders.vue.d.ts +0 -0
  128. /package/dist/{components/Content/Operation → features/Operation/components}/RequestBody.vue.d.ts +0 -0
  129. /package/dist/{components/Content/Operation → features/Operation/components}/RequestBodyPropertiesChild.vue.d.ts +0 -0
  130. /package/dist/{components/Content/Webhooks → features/Operation/components}/Webhook.vue.d.ts +0 -0
  131. /package/dist/{hooks → features/Operation/hooks}/useResponses.js +0 -0
  132. /package/dist/{components/Content/Operation → features/TestRequestButton}/TestRequestButton.vue.d.ts +0 -0
@@ -0,0 +1,114 @@
1
+ import { defineComponent as m, inject as f, openBlock as r, createBlock as s, unref as e, createSlots as h, withCtx as n, createElementVNode as t, createVNode as i, toDisplayString as u, createCommentVNode as _, withModifiers as v } from "vue";
2
+ import y from "../../../components/OperationPath.vue.js";
3
+ import { ScalarIcon as b, ScalarIconButton as C, ScalarMarkdown as S } from "@scalar/components";
4
+ import { useClipboard as k } from "@scalar/use-hooks/useClipboard";
5
+ import T from "../components/OperationParameters.vue.js";
6
+ import B from "../components/OperationResponses.vue.js";
7
+ import E from "../../../components/Section/SectionAccordion.vue.js";
8
+ import R from "../../../components/HttpMethod/HttpMethod.vue.js";
9
+ import I from "../../../components/Anchor/Anchor.vue.js";
10
+ import g from "../../TestRequestButton/TestRequestButton.vue.js";
11
+ import w from "../../ExampleResponses/ExampleResponses.vue.js";
12
+ import N from "../../ExampleRequest/ExampleRequest.vue.js";
13
+ import { HIDE_TEST_REQUEST_BUTTON_SYMBOL as V } from "../../../helpers/provideSymbols.js";
14
+ const $ = { class: "operation-title" }, q = { class: "operation-details" }, L = { class: "endpoint-label" }, M = { class: "endpoint-label-path" }, O = { class: "endpoint-label-name" }, U = { class: "endpoint-content" }, A = { class: "operation-details-card" }, D = { class: "operation-details-card-item" }, H = { class: "operation-details-card-item" }, to = /* @__PURE__ */ m({
15
+ __name: "ClassicLayout",
16
+ props: {
17
+ id: {},
18
+ operation: {}
19
+ },
20
+ setup(P) {
21
+ const { copyToClipboard: d } = k(), c = f(V);
22
+ return (o, p) => (r(), s(e(E), {
23
+ id: o.id,
24
+ class: "reference-endpoint",
25
+ transparent: ""
26
+ }, h({
27
+ title: n(() => [
28
+ t("h3", $, [
29
+ t("div", q, [
30
+ i(e(R), {
31
+ class: "endpoint-type",
32
+ method: o.operation.httpVerb,
33
+ short: ""
34
+ }, null, 8, ["method"]),
35
+ i(e(I), {
36
+ id: o.id ?? "",
37
+ class: "endpoint-anchor"
38
+ }, {
39
+ default: n(() => {
40
+ var a;
41
+ return [
42
+ t("div", L, [
43
+ t("div", M, [
44
+ i(y, {
45
+ deprecated: (a = o.operation.information) == null ? void 0 : a.deprecated,
46
+ path: o.operation.path
47
+ }, null, 8, ["deprecated", "path"])
48
+ ]),
49
+ t("div", O, u(o.operation.name), 1)
50
+ ])
51
+ ];
52
+ }),
53
+ _: 1
54
+ }, 8, ["id"])
55
+ ])
56
+ ])
57
+ ]),
58
+ actions: n(({ active: a }) => {
59
+ var l;
60
+ return [
61
+ a ? (r(), s(e(g), {
62
+ key: 0,
63
+ operation: o.operation
64
+ }, null, 8, ["operation"])) : (l = e(c)) != null && l() ? _("", !0) : (r(), s(e(b), {
65
+ key: 1,
66
+ class: "endpoint-try-hint",
67
+ icon: "Play",
68
+ thickness: "1.75px"
69
+ })),
70
+ i(e(C), {
71
+ class: "endpoint-copy",
72
+ icon: "Clipboard",
73
+ label: "Copy endpoint URL",
74
+ size: "xs",
75
+ variant: "ghost",
76
+ onClick: p[0] || (p[0] = v((j) => e(d)(o.operation.path), ["stop"]))
77
+ })
78
+ ];
79
+ }),
80
+ default: n(() => [
81
+ t("div", U, [
82
+ t("div", A, [
83
+ t("div", D, [
84
+ i(T, { operation: o.operation }, null, 8, ["operation"])
85
+ ]),
86
+ t("div", H, [
87
+ i(B, {
88
+ collapsableItems: !1,
89
+ operation: o.operation
90
+ }, null, 8, ["operation"])
91
+ ])
92
+ ]),
93
+ i(e(w), { operation: o.operation }, null, 8, ["operation"]),
94
+ i(e(N), { operation: o.operation }, null, 8, ["operation"])
95
+ ])
96
+ ]),
97
+ _: 2
98
+ }, [
99
+ o.operation.description ? {
100
+ name: "description",
101
+ fn: n(() => [
102
+ i(e(S), {
103
+ value: o.operation.description,
104
+ withImages: ""
105
+ }, null, 8, ["value"])
106
+ ]),
107
+ key: "0"
108
+ } : void 0
109
+ ]), 1032, ["id"]));
110
+ }
111
+ });
112
+ export {
113
+ to as default
114
+ };
@@ -5,4 +5,4 @@ type __VLS_Props = {
5
5
  };
6
6
  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>;
7
7
  export default _default;
8
- //# sourceMappingURL=Operation.vue.d.ts.map
8
+ //# sourceMappingURL=ModernLayout.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ModernLayout.vue"],"names":[],"mappings":"AA0GA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAOhE,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,SAAS,EAAE,oBAAoB,CAAA;CAChC,CAAC;;AAoMF,wBAOG"}
@@ -0,0 +1,7 @@
1
+ import o from "./ModernLayout.vue2.js";
2
+ /* empty css */
3
+ import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-f5ec41fb"]]);
5
+ export {
6
+ e as default
7
+ };
@@ -0,0 +1,114 @@
1
+ import { defineComponent as f, openBlock as l, createBlock as m, unref as t, withCtx as r, createVNode as o, createTextVNode as d, createCommentVNode as u, createElementVNode as n, normalizeClass as c, toDisplayString as h } from "vue";
2
+ import _ from "../../../components/OperationPath.vue.js";
3
+ import { ScalarMarkdown as C } from "@scalar/components";
4
+ import S from "../components/OperationParameters.vue.js";
5
+ import v from "../components/OperationResponses.vue.js";
6
+ import k from "../../../components/Section/Section.vue.js";
7
+ import g from "../../../components/Section/SectionContent.vue.js";
8
+ import y from "../../../components/Section/SectionColumns.vue.js";
9
+ import s from "../../../components/Section/SectionColumn.vue.js";
10
+ import B from "../../../components/Badge/Badge.vue.js";
11
+ import N from "../../../components/Section/SectionHeader.vue.js";
12
+ import V from "../../../components/Anchor/Anchor.vue.js";
13
+ import b from "../../ExampleRequest/ExampleRequest.vue.js";
14
+ import w from "../../TestRequestButton/TestRequestButton.vue.js";
15
+ import E from "../../ExampleResponses/ExampleResponses.vue.js";
16
+ const R = { class: "operation-details" }, q = { class: "examples" }, Q = /* @__PURE__ */ f({
17
+ __name: "ModernLayout",
18
+ props: {
19
+ id: {},
20
+ operation: {}
21
+ },
22
+ setup(D) {
23
+ return (e, i) => (l(), m(t(k), {
24
+ id: e.id,
25
+ label: e.operation.name
26
+ }, {
27
+ default: r(() => [
28
+ o(t(g), null, {
29
+ default: r(() => [
30
+ o(t(y), null, {
31
+ default: r(() => [
32
+ o(t(s), null, {
33
+ default: r(() => {
34
+ var a, p;
35
+ return [
36
+ (a = e.operation.information) != null && a.deprecated ? (l(), m(t(B), { key: 0 }, {
37
+ default: r(() => i[0] || (i[0] = [
38
+ d(" Deprecated ")
39
+ ])),
40
+ _: 1
41
+ })) : u("", !0),
42
+ n("div", {
43
+ class: c((p = e.operation.information) != null && p.deprecated ? "deprecated" : "")
44
+ }, [
45
+ o(t(N), { level: 3 }, {
46
+ default: r(() => [
47
+ o(t(V), {
48
+ id: e.id ?? ""
49
+ }, {
50
+ default: r(() => [
51
+ d(h(e.operation.name), 1)
52
+ ]),
53
+ _: 1
54
+ }, 8, ["id"])
55
+ ]),
56
+ _: 1
57
+ })
58
+ ], 2),
59
+ n("div", R, [
60
+ o(t(C), {
61
+ value: e.operation.description,
62
+ withImages: ""
63
+ }, null, 8, ["value"]),
64
+ o(S, { operation: e.operation }, null, 8, ["operation"]),
65
+ o(v, { operation: e.operation }, null, 8, ["operation"])
66
+ ])
67
+ ];
68
+ }),
69
+ _: 1
70
+ }),
71
+ o(t(s), null, {
72
+ default: r(() => [
73
+ n("div", q, [
74
+ o(t(b), {
75
+ fallback: "",
76
+ operation: e.operation
77
+ }, {
78
+ header: r(() => {
79
+ var a;
80
+ return [
81
+ o(_, {
82
+ class: "example-path",
83
+ deprecated: (a = e.operation.information) == null ? void 0 : a.deprecated,
84
+ path: e.operation.path
85
+ }, null, 8, ["deprecated", "path"])
86
+ ];
87
+ }),
88
+ footer: r(() => [
89
+ o(t(w), { operation: e.operation }, null, 8, ["operation"])
90
+ ]),
91
+ _: 1
92
+ }, 8, ["operation"]),
93
+ o(t(E), {
94
+ operation: e.operation,
95
+ style: { "margin-top": "12px" }
96
+ }, null, 8, ["operation"])
97
+ ])
98
+ ]),
99
+ _: 1
100
+ })
101
+ ]),
102
+ _: 1
103
+ })
104
+ ]),
105
+ _: 1
106
+ })
107
+ ]),
108
+ _: 1
109
+ }, 8, ["id", "label"]));
110
+ }
111
+ });
112
+ export {
113
+ Q as default
114
+ };
@@ -1,7 +1,7 @@
1
1
  import o from "./SearchButton.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-d362607b"]]);
4
+ const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-3ed69c39"]]);
5
5
  export {
6
- p as default
6
+ e as default
7
7
  };
@@ -31,7 +31,7 @@ const C = { class: "sidebar-search-input" }, H = { class: "sidebar-search-shortc
31
31
  (...m) => a(t).show && a(t).show(...m))
32
32
  }, [
33
33
  l(a(k), {
34
- class: "search-icon",
34
+ class: "scalar-search-icon",
35
35
  icon: "Search",
36
36
  size: "sm",
37
37
  thickness: "2.5"
@@ -2,14 +2,14 @@ import H from "fuse.js";
2
2
  import { ref as c, computed as N, watch as V } from "vue";
3
3
  import { extractRequestBody as A } from "../../helpers/specHelpers.js";
4
4
  import { useSidebar as B } from "../../hooks/useSidebar.js";
5
- import { useOperation as P } from "../../hooks/useOperation.js";
6
- import { useNavState as z } from "../../hooks/useNavState.js";
7
- import { getHeadingsFromMarkdown as G } from "../../helpers/getHeadingsFromMarkdown.js";
8
- import { getModels as J } from "../../helpers/getModels.js";
5
+ import { getHeadingsFromMarkdown as P } from "../../helpers/getHeadingsFromMarkdown.js";
6
+ import { useOperation as z } from "../../hooks/useOperation.js";
7
+ import { getModels as G } from "../../helpers/getModels.js";
8
+ import { useNavState as J } from "../../hooks/useNavState.js";
9
9
  function te({
10
10
  specification: a
11
11
  }) {
12
- const { getHeadingId: O, getWebhookId: R, getModelId: T, getOperationId: j, getTagId: L } = z(), { hideModels: W } = B(), o = c([]), n = c([]), h = c(0), s = c(""), d = new H(o.value, {
12
+ const { getHeadingId: O, getWebhookId: R, getModelId: T, getOperationId: j, getTagId: L } = J(), { hideModels: W } = B(), o = c([]), n = c([]), h = c(0), s = c(""), d = new H(o.value, {
13
13
  keys: ["title", "description", "body"]
14
14
  }), q = () => {
15
15
  h.value = 0, n.value = d.search(s.value);
@@ -30,7 +30,7 @@ function te({
30
30
  d.setCollection([]);
31
31
  return;
32
32
  }
33
- const i = [], r = G(
33
+ const i = [], r = P(
34
34
  ((M = (k = a.value) == null ? void 0 : k.info) == null ? void 0 : M.description) ?? ""
35
35
  );
36
36
  r.length && (r.forEach((e) => {
@@ -52,7 +52,7 @@ function te({
52
52
  body: ""
53
53
  };
54
54
  o.value.push(E), e.operations && e.operations.forEach((t) => {
55
- const { parameterMap: u } = P({ operation: t }), S = A(t) || u.value;
55
+ const { parameterMap: u } = z(t), S = A(t) || u.value;
56
56
  let v = null;
57
57
  typeof S != "boolean" && (v = S);
58
58
  const x = {
@@ -86,7 +86,7 @@ function te({
86
86
  });
87
87
  }), o.value = o.value.concat(f);
88
88
  });
89
- const p = W.value ? {} : J(a.value), m = [];
89
+ const p = W.value ? {} : G(a.value), m = [];
90
90
  p && (Object.keys(p).forEach((e) => {
91
91
  m.push({
92
92
  type: "model",
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TestRequestButton.vue.d.ts","sourceRoot":"","sources":["../../../src/features/TestRequestButton/TestRequestButton.vue"],"names":[],"mappings":"AA4EA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAKhE,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,oBAAoB,CAAA;CAChC,CAAC;;AAiGF,wBAMG"}
@@ -0,0 +1,7 @@
1
+ import t from "./TestRequestButton.vue2.js";
2
+ /* empty css */
3
+ import o from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const f = /* @__PURE__ */ o(t, [["__scopeId", "data-v-77256f36"]]);
5
+ export {
6
+ f as default
7
+ };
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as d, inject as f, unref as o, openBlock as p, createElementBlock as i, withModifiers as c, createVNode as s, createElementVNode as h, withCtx as T, createTextVNode as a, toDisplayString as m, Fragment as b } from "vue";
2
- import { ScalarIcon as B } from "@scalar/components";
3
- import E from "../../ScreenReader.vue.js";
4
- import { HIDE_TEST_REQUEST_BUTTON_SYMBOL as S } from "../../../helpers/provideSymbols.js";
5
- import { useApiClient as V } from "../../../features/ApiClientModal/useApiClient.js";
2
+ import B from "../../components/ScreenReader.vue.js";
3
+ import { ScalarIcon as E } from "@scalar/components";
4
+ import { HIDE_TEST_REQUEST_BUTTON_SYMBOL as S } from "../../helpers/provideSymbols.js";
5
+ import { useApiClient as V } from "../ApiClientModal/useApiClient.js";
6
6
  const _ = ["method"], w = /* @__PURE__ */ d({
7
7
  __name: "TestRequestButton",
8
8
  props: {
@@ -25,12 +25,12 @@ const _ = ["method"], w = /* @__PURE__ */ d({
25
25
  });
26
26
  }, ["stop"]))
27
27
  }, [
28
- s(o(B), {
28
+ s(o(E), {
29
29
  icon: "Play",
30
30
  size: "sm"
31
31
  }),
32
32
  e[1] || (e[1] = h("span", null, "Test Request", -1)),
33
- s(E, null, {
33
+ s(B, null, {
34
34
  default: T(() => [
35
35
  a("(" + m(t.operation.httpVerb) + " " + m(t.operation.path) + ")", 1)
36
36
  ]),
@@ -0,0 +1,2 @@
1
+ export { default as TestRequestButton } from './TestRequestButton.vue.js';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/features/TestRequestButton/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,yBAAyB,CAAA"}
@@ -4,6 +4,5 @@ export * from './useNavState.js';
4
4
  export * from './useOperation.js';
5
5
  export * from './useReactiveSpec.js';
6
6
  export * from './useRefOnMount.js';
7
- export * from './useResponses.js';
8
7
  export * from './useSidebar.js';
9
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA;AAChC,cAAc,0BAA0B,CAAA;AACxC,cAAc,eAAe,CAAA;AAC7B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,mBAAmB,CAAA;AACjC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,cAAc,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA;AAChC,cAAc,0BAA0B,CAAA;AACxC,cAAc,eAAe,CAAA;AAC7B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,mBAAmB,CAAA;AACjC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,cAAc,CAAA"}
@@ -1,18 +1,15 @@
1
- import type { Parameters, TransformedOperation } from '@scalar/types/legacy';
1
+ import type { Parameter, TransformedOperation } from '@scalar/types/legacy';
2
2
  export type ParamMap = {
3
- path: Parameters[];
4
- query: Parameters[];
5
- header: Parameters[];
6
- body: Parameters[];
7
- formData: Parameters[];
8
- };
9
- export type OperationProps = {
10
- operation: TransformedOperation;
3
+ path: Parameter[];
4
+ query: Parameter[];
5
+ header: Parameter[];
6
+ body: Parameter[];
7
+ formData: Parameter[];
11
8
  };
12
9
  /**
13
10
  * This hook is used to generate the parameters for the request from the parameters in the swagger file
14
11
  */
15
- export declare function useOperation(props: OperationProps): {
12
+ export declare function useOperation(operation: TransformedOperation): {
16
13
  parameterMap: import("vue").ComputedRef<ParamMap>;
17
14
  };
18
15
  //# sourceMappingURL=useOperation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useOperation.d.ts","sourceRoot":"","sources":["../../src/hooks/useOperation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAG5E,MAAM,MAAM,QAAQ,GAAG;IACrB,IAAI,EAAE,UAAU,EAAE,CAAA;IAClB,KAAK,EAAE,UAAU,EAAE,CAAA;IACnB,MAAM,EAAE,UAAU,EAAE,CAAA;IACpB,IAAI,EAAE,UAAU,EAAE,CAAA;IAClB,QAAQ,EAAE,UAAU,EAAE,CAAA;CACvB,CAAA;AAED,MAAM,MAAM,cAAc,GAAG;IAC3B,SAAS,EAAE,oBAAoB,CAAA;CAChC,CAAA;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,cAAc;;EAiDjD"}
1
+ {"version":3,"file":"useOperation.d.ts","sourceRoot":"","sources":["../../src/hooks/useOperation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAG3E,MAAM,MAAM,QAAQ,GAAG;IACrB,IAAI,EAAE,SAAS,EAAE,CAAA;IACjB,KAAK,EAAE,SAAS,EAAE,CAAA;IAClB,MAAM,EAAE,SAAS,EAAE,CAAA;IACnB,IAAI,EAAE,SAAS,EAAE,CAAA;IACjB,QAAQ,EAAE,SAAS,EAAE,CAAA;CACtB,CAAA;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,SAAS,EAAE,oBAAoB;;EAkD3D"}
@@ -1,23 +1,25 @@
1
- import { computed as f } from "vue";
2
- function t(h) {
1
+ import { computed as o } from "vue";
2
+ function e(h) {
3
3
  return {
4
- parameterMap: f(() => {
5
- var n;
6
- const s = ((n = h.operation.information) == null ? void 0 : n.parameters) ?? [], o = {
4
+ parameterMap: o(() => {
5
+ var u;
6
+ const i = {
7
7
  path: [],
8
8
  query: [],
9
9
  header: [],
10
10
  body: [],
11
11
  formData: []
12
12
  };
13
- return h.operation.pathParameters && h.operation.pathParameters.forEach((i) => {
14
- i.in === "path" ? o.path.push(i) : i.in === "query" ? o.query.push(i) : i.in === "header" ? o.header.push(i) : i.in === "body" ? o.body.push(i) : i.in === "formData" && o.formData.push(i);
15
- }), s && s.forEach((i) => {
16
- i.in === "path" ? o.path.push(i) : i.in === "query" ? o.query.push(i) : i.in === "header" ? o.header.push(i) : i.in === "body" ? o.body.push(i) : i.in === "formData" && o.formData.push(i);
17
- }), o;
13
+ h.pathParameters && h.pathParameters.forEach((s) => {
14
+ s.in === "path" ? i.path.push(s) : s.in === "query" ? i.query.push(s) : s.in === "header" ? i.header.push(s) : s.in === "body" ? i.body.push(s) : s.in === "formData" && i.formData.push(s);
15
+ });
16
+ const f = ((u = h.information) == null ? void 0 : u.parameters) ?? [];
17
+ return f && f.forEach((s) => {
18
+ s.in === "path" ? i.path.push(s) : s.in === "query" ? i.query.push(s) : s.in === "header" ? i.header.push(s) : s.in === "body" ? i.body.push(s) : s.in === "formData" && i.formData.push(s);
19
+ }), i;
18
20
  })
19
21
  };
20
22
  }
21
23
  export {
22
- t as useOperation
24
+ e as useOperation
23
25
  };