@scalar/api-reference 1.25.127 → 1.25.128

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 (87) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/dist/browser/standalone.js +16046 -15965
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/ApiReference.vue.d.ts.map +1 -1
  5. package/dist/components/ApiReference.vue.js +40 -64
  6. package/dist/components/ApiReferenceLayout.vue.d.ts +2 -2
  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 +158 -159
  10. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts.map +1 -1
  11. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.js +1 -1
  12. package/dist/components/Content/ClientLibraries/ClientLibraries.vue2.js +69 -17
  13. package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts +5 -1
  14. package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts.map +1 -1
  15. package/dist/components/Content/ClientLibraries/ClientSelector.vue.js +2 -2
  16. package/dist/components/Content/ClientLibraries/ClientSelector.vue2.js +73 -94
  17. package/dist/components/Content/ClientLibraries/useFeaturedHttpClients.d.ts +16 -0
  18. package/dist/components/Content/ClientLibraries/useFeaturedHttpClients.d.ts.map +1 -0
  19. package/dist/components/Content/ClientLibraries/useFeaturedHttpClients.js +36 -0
  20. package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
  21. package/dist/components/Content/Schema/Schema.vue.js +2 -2
  22. package/dist/components/Content/Schema/Schema.vue2.js +4 -1
  23. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +1 -1
  24. package/dist/components/Content/Schema/SchemaProperty.vue.js +1 -1
  25. package/dist/components/Content/Schema/SchemaProperty.vue2.js +1 -1
  26. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
  27. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +2 -2
  28. package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +143 -124
  29. package/dist/components/GettingStarted.vue.d.ts.map +1 -1
  30. package/dist/components/GettingStarted.vue.js +1 -1
  31. package/dist/components/GettingStarted.vue2.js +13 -13
  32. package/dist/components/Layouts/ClassicLayout.vue.d.ts +3 -3
  33. package/dist/components/Layouts/ClassicLayout.vue.d.ts.map +1 -1
  34. package/dist/components/Layouts/Layouts.vue.d.ts +3 -3
  35. package/dist/components/Layouts/Layouts.vue.d.ts.map +1 -1
  36. package/dist/components/Layouts/ModernLayout.vue.d.ts +3 -3
  37. package/dist/components/Layouts/ModernLayout.vue.d.ts.map +1 -1
  38. package/dist/components/Layouts/ModernLayout.vue.js +2 -2
  39. package/dist/components/Section/CompactSection.vue.d.ts.map +1 -1
  40. package/dist/components/Section/CompactSection.vue.js +2 -2
  41. package/dist/components/Section/CompactSection.vue2.js +30 -29
  42. package/dist/esm.d.ts +5 -3
  43. package/dist/esm.d.ts.map +1 -1
  44. package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts +2 -2
  45. package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts.map +1 -1
  46. package/dist/features/ApiClientModal/useApiClient.d.ts +362 -342
  47. package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
  48. package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
  49. package/dist/features/ExampleRequest/ExampleRequest.vue.js +1 -1
  50. package/dist/features/ExampleRequest/ExampleRequest.vue2.js +82 -74
  51. package/dist/features/ExampleResponses/ExampleResponse.vue.d.ts.map +1 -1
  52. package/dist/features/ExampleResponses/ExampleResponse.vue.js +2 -2
  53. package/dist/features/ExampleResponses/ExampleResponse.vue2.js +11 -11
  54. package/dist/features/ExampleResponses/ExampleResponses.vue.d.ts.map +1 -1
  55. package/dist/features/ExampleResponses/ExampleResponses.vue.js +2 -2
  56. package/dist/features/ExampleResponses/ExampleResponses.vue2.js +90 -78
  57. package/dist/features/Operation/components/ContentTypeSelect.vue.d.ts +1 -1
  58. package/dist/features/Operation/components/ContentTypeSelect.vue.d.ts.map +1 -1
  59. package/dist/features/Operation/components/ContentTypeSelect.vue.js +1 -1
  60. package/dist/features/Operation/components/ContentTypeSelect.vue2.js +29 -25
  61. package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
  62. package/dist/features/Operation/components/ParameterListItem.vue.js +1 -1
  63. package/dist/features/Operation/components/ParameterListItem.vue2.js +40 -47
  64. package/dist/features/Operation/components/RequestBody.vue.d.ts.map +1 -1
  65. package/dist/features/Operation/components/RequestBody.vue.js +2 -2
  66. package/dist/features/Operation/layouts/ModernLayout.vue.js +2 -2
  67. package/dist/helpers/get-request.d.ts +1 -1
  68. package/dist/helpers/get-request.d.ts.map +1 -1
  69. package/dist/hooks/index.d.ts +0 -1
  70. package/dist/hooks/index.d.ts.map +1 -1
  71. package/dist/hooks/useConfig.d.ts +3 -3
  72. package/dist/hooks/useConfig.d.ts.map +1 -1
  73. package/dist/hooks/useConfig.js +5 -4
  74. package/dist/index.js +17 -19
  75. package/dist/standalone/lib/html-api.d.ts +3 -3
  76. package/dist/standalone/lib/html-api.d.ts.map +1 -1
  77. package/dist/standalone/lib/html-rendering.d.ts +23 -24
  78. package/dist/standalone/lib/html-rendering.d.ts.map +1 -1
  79. package/dist/standalone/lib/html-rendering.js +39 -29
  80. package/dist/stores/useHttpClientStore.d.ts.map +1 -1
  81. package/dist/style.css +1 -1
  82. package/dist/types.d.ts +19 -2
  83. package/dist/types.d.ts.map +1 -1
  84. package/package.json +11 -10
  85. package/dist/hooks/useDeprecationWarnings.d.ts +0 -6
  86. package/dist/hooks/useDeprecationWarnings.d.ts.map +0 -1
  87. package/dist/hooks/useDeprecationWarnings.js +0 -20
@@ -1,22 +1,74 @@
1
- import { defineComponent as s, unref as e, openBlock as a, createElementBlock as c, createElementVNode as t, createVNode as d, toDisplayString as i, createCommentVNode as m } from "vue";
2
- import p from "./ClientSelector.vue.js";
3
- import { useHttpClientStore as _ } from "../../../stores/useHttpClientStore.js";
4
- const u = { key: 0 }, f = {
5
- class: "selected-client card-footer",
6
- muted: ""
7
- }, T = /* @__PURE__ */ s({
1
+ import { defineComponent as x, ref as T, useId as g, watch as k, unref as e, openBlock as a, createElementBlock as s, createVNode as l, withCtx as i, createElementVNode as v, Fragment as y, renderList as P, createBlock as I, createTextVNode as L, toDisplayString as o, createCommentVNode as N } from "vue";
2
+ import { TabGroup as V, TabList as B, TabPanels as F, TabPanel as H } from "@headlessui/vue";
3
+ import S from "./ClientSelector.vue.js";
4
+ import { useFeaturedHttpClients as w } from "./useFeaturedHttpClients.js";
5
+ import { useHttpClientStore as E } from "../../../stores/useHttpClientStore.js";
6
+ const D = { key: 0 }, G = ["id"], O = /* @__PURE__ */ x({
8
7
  __name: "ClientLibraries",
9
- setup(C) {
10
- const { availableTargets: o, httpTargetTitle: n, httpClientTitle: l } = _();
11
- return (g, r) => e(o).length ? (a(), c("div", u, [
12
- r[0] || (r[0] = t("div", { class: "client-libraries-heading" }, "Client Libraries", -1)),
13
- t("div", null, [
14
- d(p)
15
- ]),
16
- t("div", f, i(e(l)) + " " + i(e(n)), 1)
17
- ])) : m("", !0);
8
+ setup(j) {
9
+ const {
10
+ availableTargets: _,
11
+ httpTargetTitle: u,
12
+ httpClientTitle: c,
13
+ httpClient: d,
14
+ setHttpClient: C
15
+ } = E(), { featuredClients: r, isFeatured: f } = w(), m = T(0), p = g();
16
+ k(
17
+ d,
18
+ (n) => {
19
+ n && f(n) && (m.value = r.findIndex((t) => t === n));
20
+ },
21
+ { immediate: !0 }
22
+ );
23
+ function b(n) {
24
+ const t = r[n];
25
+ t && C(t);
26
+ }
27
+ return (n, t) => e(_).length ? (a(), s("div", D, [
28
+ l(e(V), {
29
+ manual: "",
30
+ selectedIndex: m.value,
31
+ onChange: b
32
+ }, {
33
+ default: i(() => [
34
+ t[0] || (t[0] = v("div", { class: "client-libraries-heading" }, "Client Libraries", -1)),
35
+ l(e(B), null, {
36
+ default: i(() => [
37
+ l(S, {
38
+ featured: e(r),
39
+ morePanel: e(p)
40
+ }, null, 8, ["featured", "morePanel"])
41
+ ]),
42
+ _: 1
43
+ }),
44
+ l(e(F), null, {
45
+ default: i(() => [
46
+ e(d) && e(f)(e(d)) ? (a(!0), s(y, { key: 0 }, P(e(r), (q, h) => (a(), I(e(H), {
47
+ key: h,
48
+ class: "selected-client card-footer -outline-offset-2",
49
+ muted: ""
50
+ }, {
51
+ default: i(() => [
52
+ L(o(e(c)) + " " + o(e(u)), 1)
53
+ ]),
54
+ _: 2
55
+ }, 1024))), 128)) : (a(), s("div", {
56
+ key: 1,
57
+ id: e(p),
58
+ class: "selected-client card-footer -outline-offset-2",
59
+ muted: "",
60
+ role: "tabpanel",
61
+ tabindex: "0"
62
+ }, o(e(c)) + " " + o(e(u)), 9, G))
63
+ ]),
64
+ _: 1
65
+ })
66
+ ]),
67
+ _: 1
68
+ }, 8, ["selectedIndex"])
69
+ ])) : N("", !0);
18
70
  }
19
71
  });
20
72
  export {
21
- T as default
73
+ O as default
22
74
  };
@@ -1,3 +1,7 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, HTMLDivElement>;
1
+ type __VLS_Props = {
2
+ /** The id of the tab panel that contains for the non featured clients */
3
+ morePanel?: string;
4
+ };
5
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
2
6
  export default _default;
3
7
  //# sourceMappingURL=ClientSelector.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ClientSelector.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ClientLibraries/ClientSelector.vue"],"names":[],"mappings":";AAmiBA,wBAMG"}
1
+ {"version":3,"file":"ClientSelector.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ClientLibraries/ClientSelector.vue"],"names":[],"mappings":"AA2RA,KAAK,WAAW,GAAG;IACjB,yEAAyE;IACzE,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAC;;AA4MF,wBAOG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./ClientSelector.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-d826575d"]]);
4
+ const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-f25a69f0"]]);
5
5
  export {
6
- p as default
6
+ a as default
7
7
  };
@@ -1,10 +1,12 @@
1
- import { defineComponent as S, ref as x, openBlock as l, createElementBlock as r, Fragment as u, renderList as d, unref as t, normalizeClass as o, createElementVNode as a, createVNode as f, toDisplayString as m, createCommentVNode as w } from "vue";
2
- import { ScalarIcon as h } from "@scalar/components";
3
- import { useHttpClientStore as N } from "../../../stores/useHttpClientStore.js";
4
- const I = ["onClick"], $ = { class: "client-libraries-text" }, z = ["value"], B = ["label"], M = ["aria-label", "value"], T = {
1
+ import { defineComponent as S, ref as w, openBlock as i, createElementBlock as r, Fragment as u, renderList as d, unref as e, createBlock as x, normalizeClass as c, withCtx as N, createElementVNode as n, createVNode as g, toDisplayString as b, createCommentVNode as B } from "vue";
2
+ import { Tab as T } from "@headlessui/vue";
3
+ import { ScalarIcon as f } from "@scalar/components";
4
+ import { useFeaturedHttpClients as $ } from "./useFeaturedHttpClients.js";
5
+ import { useHttpClientStore as M } from "../../../stores/useHttpClientStore.js";
6
+ const F = { class: "client-libraries-text" }, H = ["aria-controls", "value"], I = ["label"], J = ["aria-label", "value"], O = {
5
7
  "aria-hidden": "true",
6
8
  class: "client-libraries-icon__more"
7
- }, J = {
9
+ }, V = {
8
10
  key: 1,
9
11
  class: "client-libraries-icon",
10
12
  height: "50",
@@ -12,126 +14,103 @@ const I = ["onClick"], $ = { class: "client-libraries-text" }, z = ["value"], B
12
14
  viewBox: "0 0 50 50",
13
15
  width: "50",
14
16
  xmlns: "http://www.w3.org/2000/svg"
15
- }, L = {
17
+ }, j = {
16
18
  key: 0,
17
19
  "aria-hidden": "true",
18
20
  class: "client-libraries-text"
19
- }, F = /* @__PURE__ */ S({
21
+ }, q = /* @__PURE__ */ S({
20
22
  __name: "ClientSelector",
21
- setup(O) {
23
+ props: {
24
+ morePanel: {}
25
+ },
26
+ setup(z) {
22
27
  const {
23
- httpClient: s,
24
- setHttpClient: g,
25
- availableTargets: y,
26
- getClientTitle: p,
28
+ httpClient: l,
29
+ setHttpClient: v,
30
+ availableTargets: p,
31
+ getClientTitle: y,
27
32
  getTargetTitle: k
28
- } = N(), v = x(), K = [
29
- {
30
- targetKey: "shell",
31
- clientKey: "curl"
32
- },
33
- {
34
- targetKey: "ruby",
35
- clientKey: "native"
36
- },
37
- {
38
- targetKey: "node",
39
- clientKey: "undici"
40
- },
41
- {
42
- targetKey: "php",
43
- clientKey: "guzzle"
44
- },
45
- {
46
- targetKey: "python",
47
- clientKey: "python3"
48
- }
49
- ].filter(
50
- (i) => y.value.find((n) => n.key === i.targetKey && n.clients.find(
51
- (e) => e.client === i.clientKey
52
- ))
53
- ), _ = (i) => `programming-language-${i === "js" ? "javascript" : i}`, C = (i) => i.targetKey === s.targetKey && i.clientKey === s.clientKey, b = (i) => K.some(
54
- (n) => n.targetKey === i.targetKey && n.clientKey === i.clientKey
55
- );
56
- return (i, n) => (l(), r("div", {
33
+ } = M(), { featuredClients: K, isFeatured: _ } = $(), h = w(), m = (s) => `programming-language-${s === "js" ? "javascript" : s}`, C = (s) => s.targetKey === l.targetKey && s.clientKey === l.clientKey;
34
+ return (s, a) => (i(), r("div", {
57
35
  ref_key: "containerRef",
58
- ref: v,
36
+ ref: h,
59
37
  class: "client-libraries-content"
60
38
  }, [
61
- (l(!0), r(u, null, d(t(K), (e) => (l(), r("button", {
62
- key: e.clientKey,
39
+ (i(!0), r(u, null, d(e(K), (t) => (i(), x(e(T), {
40
+ key: t.clientKey,
63
41
  "aria-hidden": "true",
64
- class: o(["client-libraries rendered-code-sdks", {
65
- "client-libraries__active": C(e)
66
- }]),
67
- tabindex: "-1",
68
- type: "button",
69
- onClick: () => t(g)(e)
70
- }, [
71
- a("div", {
72
- class: o(`client-libraries-icon__${e.targetKey}`)
73
- }, [
74
- f(t(h), {
75
- class: "client-libraries-icon",
76
- icon: _(e.targetKey)
77
- }, null, 8, ["icon"])
78
- ], 2),
79
- a("span", $, m(t(k)(e)), 1)
80
- ], 10, I))), 128)),
81
- a("label", {
82
- class: o(["client-libraries client-libraries__select", {
83
- "client-libraries__active": t(s) && !b(t(s))
42
+ class: c(["client-libraries rendered-code-sdks", {
43
+ "client-libraries__active": C(t)
44
+ }])
45
+ }, {
46
+ default: N(() => [
47
+ n("div", {
48
+ class: c(`client-libraries-icon__${t.targetKey}`)
49
+ }, [
50
+ g(e(f), {
51
+ class: "client-libraries-icon",
52
+ icon: m(t.targetKey)
53
+ }, null, 8, ["icon"])
54
+ ], 2),
55
+ n("span", F, b(e(k)(t)), 1)
56
+ ]),
57
+ _: 2
58
+ }, 1032, ["class"]))), 128)),
59
+ n("label", {
60
+ class: c(["client-libraries client-libraries__select", {
61
+ "client-libraries__active": e(l) && !e(_)(e(l))
84
62
  }])
85
63
  }, [
86
- n[2] || (n[2] = a("span", { class: "sr-only" }, "Select Client Library", -1)),
87
- a("select", {
64
+ a[2] || (a[2] = n("span", { class: "sr-only" }, "Select from all clients", -1)),
65
+ n("select", {
66
+ "aria-controls": s.morePanel,
88
67
  class: "language-select",
89
- value: JSON.stringify(t(s)),
90
- onInput: n[0] || (n[0] = (e) => t(g)(JSON.parse(e.target.value)))
68
+ value: JSON.stringify(e(l)),
69
+ onInput: a[0] || (a[0] = (t) => e(v)(JSON.parse(t.target.value)))
91
70
  }, [
92
- (l(!0), r(u, null, d(t(y), (e) => (l(), r("optgroup", {
93
- key: e.key,
94
- label: e.title
71
+ (i(!0), r(u, null, d(e(p), (t) => (i(), r("optgroup", {
72
+ key: t.key,
73
+ label: t.title
95
74
  }, [
96
- (l(!0), r(u, null, d(e.clients, (c) => (l(), r("option", {
97
- key: c.client,
98
- "aria-label": `${e.title} ${t(p)({
99
- targetKey: e.key,
100
- clientKey: c.client
75
+ (i(!0), r(u, null, d(t.clients, (o) => (i(), r("option", {
76
+ key: o.client,
77
+ "aria-label": `${t.title} ${e(y)({
78
+ targetKey: t.key,
79
+ clientKey: o.client
101
80
  })}`,
102
81
  value: JSON.stringify({
103
- targetKey: e.key,
104
- clientKey: c.client
82
+ targetKey: t.key,
83
+ clientKey: o.client
105
84
  })
106
- }, m(t(p)({
107
- targetKey: e.key,
108
- clientKey: c.client
109
- })), 9, M))), 128))
110
- ], 8, B))), 128))
111
- ], 40, z),
112
- a("div", T, [
113
- t(s) && !b(t(s)) ? (l(), r("div", {
85
+ }, b(e(y)({
86
+ targetKey: t.key,
87
+ clientKey: o.client
88
+ })), 9, J))), 128))
89
+ ], 8, I))), 128))
90
+ ], 40, H),
91
+ n("div", O, [
92
+ e(l) && !e(_)(e(l)) ? (i(), r("div", {
114
93
  key: 0,
115
- class: o(`client-libraries-icon__${t(s).targetKey}`)
94
+ class: c(`client-libraries-icon__${e(l).targetKey}`)
116
95
  }, [
117
- f(t(h), {
96
+ g(e(f), {
118
97
  class: "client-libraries-icon",
119
- icon: _(t(s).targetKey)
98
+ icon: m(e(l).targetKey)
120
99
  }, null, 8, ["icon"])
121
- ], 2)) : (l(), r("svg", J, n[1] || (n[1] = [
122
- a("g", {
100
+ ], 2)) : (i(), r("svg", V, a[1] || (a[1] = [
101
+ n("g", {
123
102
  fill: "currentColor",
124
103
  "fill-rule": "nonzero"
125
104
  }, [
126
- a("path", { d: "M10.71 25.3a3.87 3.87 0 1 0 7.74 0 3.87 3.87 0 0 0-7.74 0M21.13 25.3a3.87 3.87 0 1 0 7.74 0 3.87 3.87 0 0 0-7.74 0M31.55 25.3a3.87 3.87 0 1 0 7.74 0 3.87 3.87 0 0 0-7.74 0" })
105
+ n("path", { d: "M10.71 25.3a3.87 3.87 0 1 0 7.74 0 3.87 3.87 0 0 0-7.74 0M21.13 25.3a3.87 3.87 0 1 0 7.74 0 3.87 3.87 0 0 0-7.74 0M31.55 25.3a3.87 3.87 0 1 0 7.74 0 3.87 3.87 0 0 0-7.74 0" })
127
106
  ], -1)
128
107
  ])))
129
108
  ]),
130
- t(y).length ? (l(), r("span", L, " More ")) : w("", !0)
109
+ e(p).length ? (i(), r("span", j, " More ")) : B("", !0)
131
110
  ], 2)
132
111
  ], 512));
133
112
  }
134
113
  });
135
114
  export {
136
- F as default
115
+ q as default
137
116
  };
@@ -0,0 +1,16 @@
1
+ import { type HttpClientState } from '../../../stores';
2
+ import type { ClientId, Target } from '@scalar/snippetz';
3
+ export type FeaturedClient = {
4
+ targetKey: Target['key'];
5
+ clientKey: ClientId<Target['key']>;
6
+ };
7
+ /**
8
+ * Provides a list of featured http clients
9
+ */
10
+ export declare function useFeaturedHttpClients(): {
11
+ /** The featured http clients */
12
+ featuredClients: FeaturedClient[];
13
+ /** Whether a client is featured */
14
+ isFeatured: (client: HttpClientState) => boolean;
15
+ };
16
+ //# sourceMappingURL=useFeaturedHttpClients.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useFeaturedHttpClients.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ClientLibraries/useFeaturedHttpClients.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,KAAK,eAAe,EAAE,MAAM,UAAU,CAAA;AACnE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AAExD,MAAM,MAAM,cAAc,GAAG;IAAE,SAAS,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;IAAC,SAAS,EAAE,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAA;CAAE,CAAA;AAE7F;;GAEG;AACH,wBAAgB,sBAAsB;IAwClC,gCAAgC;;IAEhC,mCAAmC;yBANT,eAAe;EAS5C"}
@@ -0,0 +1,36 @@
1
+ import { useHttpClientStore as y } from "../../../stores/useHttpClientStore.js";
2
+ function K() {
3
+ const { availableTargets: r } = y(), n = [
4
+ {
5
+ targetKey: "shell",
6
+ clientKey: "curl"
7
+ },
8
+ {
9
+ targetKey: "ruby",
10
+ clientKey: "native"
11
+ },
12
+ {
13
+ targetKey: "node",
14
+ clientKey: "undici"
15
+ },
16
+ {
17
+ targetKey: "php",
18
+ clientKey: "guzzle"
19
+ },
20
+ {
21
+ targetKey: "python",
22
+ clientKey: "python3"
23
+ }
24
+ ].filter(
25
+ (e) => r.value.find((t) => t.key === e.targetKey && t.clients.find((i) => i.client === e.clientKey))
26
+ );
27
+ return {
28
+ /** The featured http clients */
29
+ featuredClients: n,
30
+ /** Whether a client is featured */
31
+ isFeatured: (e) => n.some((t) => t.targetKey === e.targetKey && t.clientKey === e.clientKey)
32
+ };
33
+ }
34
+ export {
35
+ K as useFeaturedHttpClients
36
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"Schema.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/Schema.vue"],"names":[],"mappings":"AAsSA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAQ9E,KAAK,WAAW,GAAG;IACf,KAAK,CAAC,EACF,SAAS,CAAC,iBAAiB,GAC3B,SAAS,CAAC,YAAY,GACtB,SAAS,CAAC,iBAAiB,GAC3B,SAAS,CAAC,oBAAoB,GAC9B,WAAW,CAAC,YAAY,GACxB,WAAW,CAAC,iBAAiB,GAC7B,WAAW,CAAC,oBAAoB,CAAA;IACpC,gCAAgC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,+DAA+D;IAC/D,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,2CAA2C;IAC3C,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;WARQ,MAAM;;AAoTlB,wBAOG"}
1
+ {"version":3,"file":"Schema.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/Schema.vue"],"names":[],"mappings":"AAwSA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAQ9E,KAAK,WAAW,GAAG;IACf,KAAK,CAAC,EACF,SAAS,CAAC,iBAAiB,GAC3B,SAAS,CAAC,YAAY,GACtB,SAAS,CAAC,iBAAiB,GAC3B,SAAS,CAAC,oBAAoB,GAC9B,WAAW,CAAC,YAAY,GACxB,WAAW,CAAC,iBAAiB,GAC7B,WAAW,CAAC,oBAAoB,CAAA;IACpC,gCAAgC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,+DAA+D;IAC/D,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,2CAA2C;IAC3C,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;WARQ,MAAM;;AAoTlB,wBAOG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./Schema.vue2.js";
2
2
  /* empty css */
3
- import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-f48d0197"]]);
3
+ import a from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const f = /* @__PURE__ */ a(o, [["__scopeId", "data-v-a199f3ab"]]);
5
5
  export {
6
6
  f as default
7
7
  };
@@ -80,7 +80,10 @@ const I = {
80
80
  }, 1032, ["as", "class", "style"]), [
81
81
  [N, !e.hideHeading && !(e.noncollapsible && e.compact)]
82
82
  ]),
83
- m(n(T), { static: e.noncollapsible }, {
83
+ m(n(T), {
84
+ as: "ul",
85
+ static: e.noncollapsible
86
+ }, {
84
87
  default: y(() => {
85
88
  var u, c;
86
89
  return [
@@ -20,6 +20,6 @@ declare const _default_1: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
20
20
  level: number;
21
21
  compact: boolean;
22
22
  withExamples: boolean;
23
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
23
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLLIElement>;
24
24
  export default _default_1;
25
25
  //# sourceMappingURL=SchemaProperty.vue.d.ts.map
@@ -1,7 +1,7 @@
1
1
  import o from "./SchemaProperty.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-f5c211dc"]]);
4
+ const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-8c997c80"]]);
5
5
  export {
6
6
  p as default
7
7
  };
@@ -77,7 +77,7 @@ const ie = {
77
77
  ), e = f(() => se(Q.value)), D = J.find((t) => !e.value || typeof e.value != "object" ? !1 : t in e.value || e.value.items && typeof e.value.items == "object" && t in e.value.items);
78
78
  return (t, r) => {
79
79
  var w, A, C, P, F, N, V, q, z, I, L, T, H, O, R, U;
80
- return l(), a("div", {
80
+ return l(), a("li", {
81
81
  class: G(["property", [
82
82
  `property--level-${t.level}`,
83
83
  {
@@ -1 +1 @@
1
- {"version":3,"file":"SchemaPropertyHeading.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaPropertyHeading.vue"],"names":[],"mappings":"AAoOA,KAAK,WAAW,GAAG;IACf,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC3B,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAC;AA0BJ,iBAAS,cAAc;WA4ST,OAAO,IAA6B;;sBATxB,GAAG;sBACH,GAAG;;;;EAa5B;AAaD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;cA5VN,OAAO;wFAoWpB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"SchemaPropertyHeading.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaPropertyHeading.vue"],"names":[],"mappings":"AA2OA,KAAK,WAAW,GAAG;IACf,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC3B,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAC;AA0BJ,iBAAS,cAAc;WAgUT,OAAO,IAA6B;;sBATxB,GAAG;sBACH,GAAG;;;;EAa5B;AAcD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;cAjXN,OAAO;wFAyXpB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import o from "./SchemaPropertyHeading.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const e = /* @__PURE__ */ r(o, [["__scopeId", "data-v-dd95f4d7"]]);
4
+ const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-96db3524"]]);
5
5
  export {
6
- e as default
6
+ m as default
7
7
  };