@scalar/api-reference 1.22.35 → 1.22.36
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.
- package/CHANGELOG.md +12 -0
- package/README.md +69 -2
- package/dist/browser/standalone.js +13 -13
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/ApiClientModal.vue.d.ts.map +1 -1
- package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts.map +1 -1
- package/dist/helpers/createEmptySpecification.d.ts +3 -0
- package/dist/helpers/createEmptySpecification.d.ts.map +1 -0
- package/dist/helpers/index.d.ts +1 -0
- package/dist/helpers/index.d.ts.map +1 -1
- package/dist/helpers/parse.d.ts.map +1 -1
- package/dist/hooks/useHttpClients.d.ts +26 -3
- package/dist/hooks/useHttpClients.d.ts.map +1 -1
- package/dist/hooks/useReactiveSpec.d.ts +2 -2
- package/dist/hooks/useReactiveSpec.d.ts.map +1 -1
- package/dist/{index-DsNRk9Wg.js → index-2EFZIqk4.js} +4 -4
- package/dist/{index-DUTN4kbO.cjs → index-BeNjYuhG.cjs} +125 -125
- package/dist/{index-CZKZ0PqH.cjs → index-DSCkECTq.cjs} +2 -2
- package/dist/{index-iSN8Sfb6.js → index-DqoeU2ae.js} +5452 -5424
- package/dist/index.cjs +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +34 -33
- package/dist/stores/useHttpClientStore.d.ts.map +1 -1
- package/dist/types.d.ts +10 -6
- package/dist/types.d.ts.map +1 -1
- package/package.json +6 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApiClientModal.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiClientModal.vue.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAI7C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,UAAU,CAAA;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"ApiClientModal.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiClientModal.vue.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAI7C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,UAAU,CAAA;;;;;;;;;;;;;;;;;;;AAkUpC,wBAAwG;AACxG,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClientSelector.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ClientLibraries/ClientSelector.vue.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"ClientSelector.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ClientLibraries/ClientSelector.vue.ts"],"names":[],"mappings":";AAuYA,wBAKG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createEmptySpecification.d.ts","sourceRoot":"","sources":["../../src/helpers/createEmptySpecification.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,UAAU,CAAA;AAEpC,wBAAgB,wBAAwB,IAAI,IAAI,CAsB/C"}
|
package/dist/helpers/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/helpers/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,uBAAuB,CAAA;AACrC,cAAc,2BAA2B,CAAA;AACzC,cAAc,yBAAyB,CAAA;AACvC,cAAc,aAAa,CAAA;AAC3B,cAAc,yBAAyB,CAAA;AACvC,cAAc,oBAAoB,CAAA;AAClC,cAAc,aAAa,CAAA;AAC3B,cAAc,sBAAsB,CAAA;AACpC,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA;AAC5B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,mBAAmB,CAAA;AACjC,cAAc,eAAe,CAAA;AAC7B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,SAAS,CAAA;AACvB,cAAc,kBAAkB,CAAA;AAChC,cAAc,oBAAoB,CAAA;AAClC,cAAc,cAAc,CAAA;AAC5B,cAAc,SAAS,CAAA;AACvB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,2BAA2B,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/helpers/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAA;AAC1C,cAAc,aAAa,CAAA;AAC3B,cAAc,uBAAuB,CAAA;AACrC,cAAc,2BAA2B,CAAA;AACzC,cAAc,yBAAyB,CAAA;AACvC,cAAc,aAAa,CAAA;AAC3B,cAAc,yBAAyB,CAAA;AACvC,cAAc,oBAAoB,CAAA;AAClC,cAAc,aAAa,CAAA;AAC3B,cAAc,sBAAsB,CAAA;AACpC,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA;AAC5B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,mBAAmB,CAAA;AACjC,cAAc,eAAe,CAAA;AAC7B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,SAAS,CAAA;AACvB,cAAc,kBAAkB,CAAA;AAChC,cAAc,oBAAoB,CAAA;AAClC,cAAc,cAAc,CAAA;AAC5B,cAAc,SAAS,CAAA;AACvB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,2BAA2B,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parse.d.ts","sourceRoot":"","sources":["../../src/helpers/parse.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"parse.d.ts","sourceRoot":"","sources":["../../src/helpers/parse.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,IAAI,EAAO,MAAM,UAAU,CAAA;AAEzC,eAAO,MAAM,KAAK,kBAAmB,GAAG,KAAG,QAAQ,IAAI,CA0CtD,CAAA"}
|
|
@@ -1,6 +1,29 @@
|
|
|
1
|
+
import type { AvailableTarget } from 'httpsnippet-lite/dist/types/helpers/utils';
|
|
2
|
+
import { type Ref } from 'vue';
|
|
3
|
+
import type { HiddenClients } from '../types';
|
|
4
|
+
export declare function filterHiddenClients(targets: AvailableTarget[], exclude: Ref<HiddenClients>): AvailableTarget[];
|
|
1
5
|
export declare function useHttpClients(): {
|
|
2
|
-
availableTargets: import("vue").ComputedRef<
|
|
3
|
-
excludedClients: Readonly<
|
|
4
|
-
|
|
6
|
+
availableTargets: import("vue").ComputedRef<AvailableTarget[]>;
|
|
7
|
+
excludedClients: Readonly<Ref<readonly string[] | {
|
|
8
|
+
readonly c?: boolean | readonly string[] | undefined;
|
|
9
|
+
readonly clojure?: boolean | readonly string[] | undefined;
|
|
10
|
+
readonly csharp?: boolean | readonly string[] | undefined;
|
|
11
|
+
readonly go?: boolean | readonly string[] | undefined;
|
|
12
|
+
readonly http?: boolean | readonly string[] | undefined;
|
|
13
|
+
readonly java?: boolean | readonly string[] | undefined;
|
|
14
|
+
readonly javascript?: boolean | readonly string[] | undefined;
|
|
15
|
+
readonly kotlin?: boolean | readonly string[] | undefined;
|
|
16
|
+
readonly node?: boolean | readonly string[] | undefined;
|
|
17
|
+
readonly objc?: boolean | readonly string[] | undefined;
|
|
18
|
+
readonly ocaml?: boolean | readonly string[] | undefined;
|
|
19
|
+
readonly php?: boolean | readonly string[] | undefined;
|
|
20
|
+
readonly powershell?: boolean | readonly string[] | undefined;
|
|
21
|
+
readonly python?: boolean | readonly string[] | undefined;
|
|
22
|
+
readonly r?: boolean | readonly string[] | undefined;
|
|
23
|
+
readonly ruby?: boolean | readonly string[] | undefined;
|
|
24
|
+
readonly shell?: boolean | readonly string[] | undefined;
|
|
25
|
+
readonly swift?: boolean | readonly string[] | undefined;
|
|
26
|
+
}>>;
|
|
27
|
+
setExcludedClients: (v: HiddenClients) => HiddenClients;
|
|
5
28
|
};
|
|
6
29
|
//# sourceMappingURL=useHttpClients.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useHttpClients.d.ts","sourceRoot":"","sources":["../../src/hooks/useHttpClients.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useHttpClients.d.ts","sourceRoot":"","sources":["../../src/hooks/useHttpClients.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAA;AAChF,OAAO,EAAE,KAAK,GAAG,EAA2B,MAAM,KAAK,CAAA;AAEvD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAU7C,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,eAAe,EAAE,EAC1B,OAAO,EAAE,GAAG,CAAC,aAAa,CAAC,GAC1B,eAAe,EAAE,CAuCnB;AAkBD,wBAAgB,cAAc;;;;;;;;;;;;;;;;;;;;;;4BAIF,aAAa;EAExC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { type MaybeRefOrGetter } from 'vue';
|
|
2
|
-
import type {
|
|
3
|
-
export declare const emptySpecGenerator: () => Spec;
|
|
2
|
+
import type { SpecConfiguration } from '../types';
|
|
4
3
|
/**
|
|
5
4
|
* Keep the raw spec content in a ref and update it when the configuration changes.
|
|
6
5
|
*/
|
|
@@ -93,6 +92,7 @@ export declare function useReactiveSpec({ specConfig, proxy, }: {
|
|
|
93
92
|
examples?: (Map<string, any> & Omit<Map<string, any>, keyof Map<any, any>>) | undefined;
|
|
94
93
|
}[] | undefined;
|
|
95
94
|
}[];
|
|
95
|
+
'x-displayName'?: string | undefined;
|
|
96
96
|
}[] | undefined;
|
|
97
97
|
info: {
|
|
98
98
|
title?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useReactiveSpec.d.ts","sourceRoot":"","sources":["../../src/hooks/useReactiveSpec.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,gBAAgB,EAAiC,MAAM,KAAK,CAAA;AAI1E,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"useReactiveSpec.d.ts","sourceRoot":"","sources":["../../src/hooks/useReactiveSpec.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,gBAAgB,EAAiC,MAAM,KAAK,CAAA;AAI1E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAA;AAgCjD;;GAEG;AACH,wBAAgB,eAAe,CAAC,EAC9B,UAAU,EACV,KAAK,GACN,EAAE;IACD,UAAU,CAAC,EAAE,gBAAgB,CAAC,iBAAiB,CAAC,CAAA;IAChD,KAAK,CAAC,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAA;CACjC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsDA"}
|
|
@@ -3,8 +3,8 @@ var vr = (t, e, a) => e in t ? yr(t, e, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var ca = (t, e, a) => (vr(t, typeof e != "symbol" ? e + "" : e, a), a);
|
|
4
4
|
import { ref as F, watch as Se, onBeforeUnmount as wr, toValue as q, computed as x, defineComponent as w, toRef as ce, openBlock as Q, createElementBlock as P, normalizeClass as J, unref as m, createElementVNode as u, toDisplayString as X, createTextVNode as U, Fragment as j, renderList as fe, createBlock as v, createStaticVNode as Nt, createCommentVNode as M, createVNode as Z, withCtx as b, pushScopeId as ut, popScopeId as ht, renderSlot as E, withDirectives as pe, vModelText as Me, vModelCheckbox as kr, vShow as sO, normalizeStyle as Tr, toRaw as Xr, withKeys as xr } from "vue";
|
|
5
5
|
import { Disclosure as _r, DisclosureButton as Wr, DisclosurePanel as Yr, TabGroup as Rr, TabList as qr, Tab as da, TabPanels as Cr, TabPanel as pa } from "@headlessui/vue";
|
|
6
|
-
import { E as N, c as ie, a as L, b as C, C as Wt, s as Oe, P as oO, k as et, F as iO, d as Ur, S as Mt, e as jr, g as nO, V as zr, l as Yt, f as re, M as Rt, R as Vr, h as Gr, i as lO, D as Ar, A as Er, T as Hr, j as Br, m as cO, n as ft, W as Ir, o as Dr, p as Nr, q as Mr, r as Lr, N as Fr, t as Jr, u as Kr, v as Lt, w as Le, I as Ft, x as Ue, y as p, L as je, z as ze, B as Ve, G as $e, H as Ge, J as mt, K as dO, O as es, Q as ts, U as qt, X as pO, Y as as, Z as Os, _ as rs, $ as ss, a0 as os, a1 as is, a2 as ns, a3 as ls, a4 as cs, a5 as ds, a6 as R, a7 as ps, a8 as uO, a9 as Ct, aa as Jt, ab as hO, ac as K, ad as us, ae as hs, af as fs, ag as fO, ah as ms, ai as Qs, aj as gs, ak as ua, al as Ss, am as Ps, an as $s, ao as bs } from "./index-
|
|
7
|
-
import { av as Qp, aw as gp, ap as Sp, aq as Pp, ar as $p, as as bp, at as Zp, az as yp, ay as vp, au as wp, ax as kp } from "./index-
|
|
6
|
+
import { E as N, c as ie, a as L, b as C, C as Wt, s as Oe, P as oO, k as et, F as iO, d as Ur, S as Mt, e as jr, g as nO, V as zr, l as Yt, f as re, M as Rt, R as Vr, h as Gr, i as lO, D as Ar, A as Er, T as Hr, j as Br, m as cO, n as ft, W as Ir, o as Dr, p as Nr, q as Mr, r as Lr, N as Fr, t as Jr, u as Kr, v as Lt, w as Le, I as Ft, x as Ue, y as p, L as je, z as ze, B as Ve, G as $e, H as Ge, J as mt, K as dO, O as es, Q as ts, U as qt, X as pO, Y as as, Z as Os, _ as rs, $ as ss, a0 as os, a1 as is, a2 as ns, a3 as ls, a4 as cs, a5 as ds, a6 as R, a7 as ps, a8 as uO, a9 as Ct, aa as Jt, ab as hO, ac as K, ad as us, ae as hs, af as fs, ag as fO, ah as ms, ai as Qs, aj as gs, ak as ua, al as Ss, am as Ps, an as $s, ao as bs } from "./index-DqoeU2ae.js";
|
|
7
|
+
import { av as Qp, aw as gp, ap as Sp, aq as Pp, ar as $p, as as bp, at as Zp, az as yp, ay as vp, au as wp, ax as kp } from "./index-DqoeU2ae.js";
|
|
8
8
|
import { useMagicKeys as mO, whenever as Ut, useMediaQuery as Zs } from "@vueuse/core";
|
|
9
9
|
import ys from "axios";
|
|
10
10
|
const vs = {
|
|
@@ -6701,7 +6701,7 @@ const Wl = { class: "navtable-item-40 navtable-item-request" }, Yl = { class: "n
|
|
|
6701
6701
|
], 40, Bl)
|
|
6702
6702
|
]));
|
|
6703
6703
|
}
|
|
6704
|
-
}), Nl = /* @__PURE__ */ R(Dl, [["__scopeId", "data-v-9e096eb8"]]), Ee = (t) => (ut("data-v-
|
|
6704
|
+
}), Nl = /* @__PURE__ */ R(Dl, [["__scopeId", "data-v-9e096eb8"]]), Ee = (t) => (ut("data-v-8e554687"), t = t(), ht(), t), Ml = {
|
|
6705
6705
|
key: 0,
|
|
6706
6706
|
class: "loader"
|
|
6707
6707
|
}, Ll = { class: "url-form" }, Fl = { class: "url-form-field" }, Jl = { class: "url-form-input-wrapper cm-scroller" }, Kl = /* @__PURE__ */ Ee(() => /* @__PURE__ */ u("div", { class: "url-form-input-fade__left" }, null, -1)), ec = /* @__PURE__ */ Ee(() => /* @__PURE__ */ u("div", { class: "url-form-input-fade__right" }, null, -1)), tc = {
|
|
@@ -6845,7 +6845,7 @@ const Wl = { class: "navtable-item-40 navtable-item-request" }, Yl = { class: "n
|
|
|
6845
6845
|
], 2)
|
|
6846
6846
|
], 64));
|
|
6847
6847
|
}
|
|
6848
|
-
}), cc = /* @__PURE__ */ R(lc, [["__scopeId", "data-v-
|
|
6848
|
+
}), cc = /* @__PURE__ */ R(lc, [["__scopeId", "data-v-8e554687"]]), dc = { class: "scalar-api-client__toggle-container" }, pc = { class: "scalar-api-client__item__title" }, uc = {
|
|
6849
6849
|
key: 0,
|
|
6850
6850
|
class: "scalar-api-client__item__options"
|
|
6851
6851
|
}, hc = /* @__PURE__ */ u("svg", {
|