@scalar/api-client 1.3.1 → 1.3.2
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 +9 -0
- package/dist/index.js +95 -95
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -14067,7 +14067,7 @@ class MatchDecorator {
|
|
|
14067
14067
|
updateDeco(update, deco) {
|
|
14068
14068
|
let changeFrom = 1e9, changeTo = -1;
|
|
14069
14069
|
if (update.docChanged)
|
|
14070
|
-
update.changes.iterChanges((_f,
|
|
14070
|
+
update.changes.iterChanges((_f, _t, from, to) => {
|
|
14071
14071
|
if (to > update.view.viewport.from && from < update.view.viewport.to) {
|
|
14072
14072
|
changeFrom = Math.min(from, changeFrom);
|
|
14073
14073
|
changeTo = Math.max(to, changeTo);
|
|
@@ -19954,7 +19954,7 @@ const completionPlugin = /* @__PURE__ */ ViewPlugin.fromClass(class {
|
|
|
19954
19954
|
if (update.transactions.some((tr) => tr.effects.some((e) => e.is(startCompletionEffect))))
|
|
19955
19955
|
this.pendingStart = true;
|
|
19956
19956
|
let delay = this.pendingStart ? 50 : update.state.facet(completionConfig).activateOnTypingDelay;
|
|
19957
|
-
this.debounceUpdate = cState.active.some((a) => a.state == 1 && !this.running.some((
|
|
19957
|
+
this.debounceUpdate = cState.active.some((a) => a.state == 1 && !this.running.some((q) => q.active.source == a.source)) ? setTimeout(() => this.startUpdate(), delay) : -1;
|
|
19958
19958
|
if (this.composing != 0)
|
|
19959
19959
|
for (let tr of update.transactions) {
|
|
19960
19960
|
if (getUserEvent(tr) == "input")
|
|
@@ -19988,7 +19988,7 @@ const completionPlugin = /* @__PURE__ */ ViewPlugin.fromClass(class {
|
|
|
19988
19988
|
});
|
|
19989
19989
|
}
|
|
19990
19990
|
scheduleAccept() {
|
|
19991
|
-
if (this.running.every((
|
|
19991
|
+
if (this.running.every((q) => q.done !== void 0))
|
|
19992
19992
|
this.accept();
|
|
19993
19993
|
else if (this.debounceAccept < 0)
|
|
19994
19994
|
this.debounceAccept = setTimeout(() => this.accept(), this.view.state.facet(completionConfig).updateSyncTime);
|
|
@@ -22179,8 +22179,8 @@ class LRParser extends Parser {
|
|
|
22179
22179
|
}
|
|
22180
22180
|
createParse(input, fragments, ranges) {
|
|
22181
22181
|
let parse = new Parse(this, input, fragments, ranges);
|
|
22182
|
-
for (let
|
|
22183
|
-
parse =
|
|
22182
|
+
for (let w2 of this.wrappers)
|
|
22183
|
+
parse = w2(parse, input, fragments, ranges);
|
|
22184
22184
|
return parse;
|
|
22185
22185
|
}
|
|
22186
22186
|
/**
|
|
@@ -30828,22 +30828,22 @@ var prism = { exports: {} };
|
|
|
30828
30828
|
})();
|
|
30829
30829
|
})(prism);
|
|
30830
30830
|
var prismExports = prism.exports;
|
|
30831
|
-
const
|
|
30832
|
-
const
|
|
30831
|
+
const R = /* @__PURE__ */ getDefaultExportFromCjs(prismExports);
|
|
30832
|
+
const Re = extendTailwindMerge({
|
|
30833
30833
|
extend: {
|
|
30834
30834
|
classGroups: {
|
|
30835
30835
|
"font-size": ["text-xxs"]
|
|
30836
30836
|
}
|
|
30837
30837
|
}
|
|
30838
|
-
}), { cva: L, cx:
|
|
30838
|
+
}), { cva: L, cx: w, compose: At } = defineConfig({
|
|
30839
30839
|
hooks: {
|
|
30840
|
-
onComplete: (r2) =>
|
|
30840
|
+
onComplete: (r2) => Re(r2)
|
|
30841
30841
|
}
|
|
30842
|
-
}),
|
|
30842
|
+
}), De = /* @__PURE__ */ createStaticVNode('<path class="svg-path svg-check-mark" d="m 0 60 l 30 30 l 70 -80" data-v-47faceda></path><path class="svg-path svg-x-mark" d="m 50 50 l 40 -40" data-v-47faceda></path><path class="svg-path svg-x-mark" d="m 50 50 l 40 40" data-v-47faceda></path><path class="svg-path svg-x-mark" d="m 50 50 l -40 -40" data-v-47faceda></path><path class="svg-path svg-x-mark" d="m 50 50 l -40 40" data-v-47faceda></path>', 5), Oe = {
|
|
30843
30843
|
key: 0,
|
|
30844
30844
|
class: "circular-loader"
|
|
30845
30845
|
};
|
|
30846
|
-
const
|
|
30846
|
+
const Pe = /* @__PURE__ */ defineComponent({
|
|
30847
30847
|
__name: "ScalarLoading",
|
|
30848
30848
|
props: {
|
|
30849
30849
|
loadingState: {},
|
|
@@ -30854,7 +30854,7 @@ const Le = /* @__PURE__ */ defineComponent({
|
|
|
30854
30854
|
d6cae758: t2.size
|
|
30855
30855
|
})), (t2, e) => t2.loadingState ? (openBlock(), createElementBlock("div", {
|
|
30856
30856
|
key: 0,
|
|
30857
|
-
class: normalizeClass(unref(
|
|
30857
|
+
class: normalizeClass(unref(w)("loader-wrapper"))
|
|
30858
30858
|
}, [
|
|
30859
30859
|
(openBlock(), createElementBlock("svg", {
|
|
30860
30860
|
class: normalizeClass(["svg-loader", {
|
|
@@ -30865,8 +30865,8 @@ const Le = /* @__PURE__ */ defineComponent({
|
|
|
30865
30865
|
xmlns: "http://www.w3.org/2000/svg",
|
|
30866
30866
|
"xmlns:xlink": "http://www.w3.org/1999/xlink"
|
|
30867
30867
|
}, [
|
|
30868
|
-
|
|
30869
|
-
t2.loadingState.isLoading ? (openBlock(), createElementBlock("g",
|
|
30868
|
+
De,
|
|
30869
|
+
t2.loadingState.isLoading ? (openBlock(), createElementBlock("g", Oe, [
|
|
30870
30870
|
createElementVNode("circle", {
|
|
30871
30871
|
class: normalizeClass(["loader-path", {
|
|
30872
30872
|
"loader-path-off": t2.loadingState.isValid || t2.loadingState.isInvalid
|
|
@@ -30886,7 +30886,7 @@ const Le = /* @__PURE__ */ defineComponent({
|
|
|
30886
30886
|
for (const [a, d] of t2)
|
|
30887
30887
|
e[a] = d;
|
|
30888
30888
|
return e;
|
|
30889
|
-
},
|
|
30889
|
+
}, Y = /* @__PURE__ */ P(Pe, [["__scopeId", "data-v-47faceda"]]), J = {
|
|
30890
30890
|
solid: [
|
|
30891
30891
|
"scalar-button-solid",
|
|
30892
30892
|
"bg-back-btn-1 text-fore-btn-1 shadow-sm active:bg-back-btn-1 active:shadow-none hocus:bg-hover-btn-1"
|
|
@@ -30903,7 +30903,7 @@ const Le = /* @__PURE__ */ defineComponent({
|
|
|
30903
30903
|
"scalar-button-danger",
|
|
30904
30904
|
"bg-error text-white active:brightness-90 hocus:brightness-90"
|
|
30905
30905
|
]
|
|
30906
|
-
},
|
|
30906
|
+
}, Be = L({
|
|
30907
30907
|
base: "scalar-button row cursor-pointer items-center justify-center rounded font-medium",
|
|
30908
30908
|
variants: {
|
|
30909
30909
|
disabled: {
|
|
@@ -30911,7 +30911,7 @@ const Le = /* @__PURE__ */ defineComponent({
|
|
|
30911
30911
|
},
|
|
30912
30912
|
fullWidth: { true: "w-full" },
|
|
30913
30913
|
size: { sm: "px-2 py-1 text-xs", md: "h-10 px-6 text-sm" },
|
|
30914
|
-
variant:
|
|
30914
|
+
variant: J
|
|
30915
30915
|
},
|
|
30916
30916
|
compoundVariants: [
|
|
30917
30917
|
{
|
|
@@ -30920,13 +30920,13 @@ const Le = /* @__PURE__ */ defineComponent({
|
|
|
30920
30920
|
class: "bg-transparent text-ghost"
|
|
30921
30921
|
}
|
|
30922
30922
|
]
|
|
30923
|
-
}),
|
|
30923
|
+
}), He = ["ariaDisabled", "type"], Me = {
|
|
30924
30924
|
key: 0,
|
|
30925
30925
|
class: "mr-2 h-4 w-4"
|
|
30926
|
-
},
|
|
30926
|
+
}, Ve = {
|
|
30927
30927
|
key: 1,
|
|
30928
30928
|
class: "ml-2"
|
|
30929
|
-
},
|
|
30929
|
+
}, It = /* @__PURE__ */ defineComponent({
|
|
30930
30930
|
inheritAttrs: false,
|
|
30931
30931
|
__name: "ScalarButton",
|
|
30932
30932
|
props: {
|
|
@@ -30944,24 +30944,24 @@ const Le = /* @__PURE__ */ defineComponent({
|
|
|
30944
30944
|
});
|
|
30945
30945
|
return (e, a) => (openBlock(), createElementBlock("button", mergeProps(t2.value.rest, {
|
|
30946
30946
|
ariaDisabled: e.disabled || void 0,
|
|
30947
|
-
class: unref(
|
|
30948
|
-
unref(
|
|
30947
|
+
class: unref(w)(
|
|
30948
|
+
unref(Be)({ fullWidth: e.fullWidth, disabled: e.disabled, size: e.size, variant: e.variant }),
|
|
30949
30949
|
{ "pl-9 pr-3": e.loading },
|
|
30950
30950
|
`${t2.value.class}`
|
|
30951
30951
|
),
|
|
30952
30952
|
type: e.type
|
|
30953
30953
|
}), [
|
|
30954
|
-
e.$slots.icon ? (openBlock(), createElementBlock("div",
|
|
30954
|
+
e.$slots.icon ? (openBlock(), createElementBlock("div", Me, [
|
|
30955
30955
|
renderSlot(e.$slots, "icon")
|
|
30956
30956
|
])) : createCommentVNode("", true),
|
|
30957
30957
|
renderSlot(e.$slots, "default"),
|
|
30958
|
-
e.loading ? (openBlock(), createElementBlock("div",
|
|
30959
|
-
createVNode(unref(
|
|
30958
|
+
e.loading ? (openBlock(), createElementBlock("div", Ve, [
|
|
30959
|
+
createVNode(unref(Y), {
|
|
30960
30960
|
loadingState: e.loading,
|
|
30961
30961
|
size: "20px"
|
|
30962
30962
|
}, null, 8, ["loadingState"])
|
|
30963
30963
|
])) : createCommentVNode("", true)
|
|
30964
|
-
], 16,
|
|
30964
|
+
], 16, He));
|
|
30965
30965
|
}
|
|
30966
30966
|
});
|
|
30967
30967
|
(function(r2) {
|
|
@@ -31223,10 +31223,10 @@ Prism.languages.webmanifest = Prism.languages.json;
|
|
|
31223
31223
|
if (!(s.tagName !== "PRE" || !s.classList.contains(r2))) {
|
|
31224
31224
|
var i = s.querySelector(".line-numbers-rows");
|
|
31225
31225
|
if (i) {
|
|
31226
|
-
var g = parseInt(s.getAttribute("data-start"), 10) || 1,
|
|
31227
|
-
p < g && (p = g), p >
|
|
31228
|
-
var
|
|
31229
|
-
return i.children[
|
|
31226
|
+
var g = parseInt(s.getAttribute("data-start"), 10) || 1, m = g + (i.children.length - 1);
|
|
31227
|
+
p < g && (p = g), p > m && (p = m);
|
|
31228
|
+
var n = p - g;
|
|
31229
|
+
return i.children[n];
|
|
31230
31230
|
}
|
|
31231
31231
|
}
|
|
31232
31232
|
},
|
|
@@ -31255,40 +31255,40 @@ Prism.languages.webmanifest = Prism.languages.json;
|
|
|
31255
31255
|
};
|
|
31256
31256
|
function a(s) {
|
|
31257
31257
|
if (s = s.filter(function(i) {
|
|
31258
|
-
var g = d(i),
|
|
31259
|
-
return
|
|
31258
|
+
var g = d(i), m = g["white-space"];
|
|
31259
|
+
return m === "pre-wrap" || m === "pre-line";
|
|
31260
31260
|
}), s.length != 0) {
|
|
31261
31261
|
var p = s.map(function(i) {
|
|
31262
|
-
var g = i.querySelector("code"),
|
|
31263
|
-
if (!(!g || !
|
|
31264
|
-
var
|
|
31265
|
-
|
|
31266
|
-
var l =
|
|
31267
|
-
return
|
|
31262
|
+
var g = i.querySelector("code"), m = i.querySelector(".line-numbers-rows");
|
|
31263
|
+
if (!(!g || !m)) {
|
|
31264
|
+
var n = i.querySelector(".line-numbers-sizer"), h = g.textContent.split(t2);
|
|
31265
|
+
n || (n = document.createElement("span"), n.className = "line-numbers-sizer", g.appendChild(n)), n.innerHTML = "0", n.style.display = "block";
|
|
31266
|
+
var l = n.getBoundingClientRect().height;
|
|
31267
|
+
return n.innerHTML = "", {
|
|
31268
31268
|
element: i,
|
|
31269
|
-
lines:
|
|
31269
|
+
lines: h,
|
|
31270
31270
|
lineHeights: [],
|
|
31271
31271
|
oneLinerHeight: l,
|
|
31272
|
-
sizer:
|
|
31272
|
+
sizer: n
|
|
31273
31273
|
};
|
|
31274
31274
|
}
|
|
31275
31275
|
}).filter(Boolean);
|
|
31276
31276
|
p.forEach(function(i) {
|
|
31277
|
-
var g = i.sizer,
|
|
31278
|
-
|
|
31277
|
+
var g = i.sizer, m = i.lines, n = i.lineHeights, h = i.oneLinerHeight;
|
|
31278
|
+
n[m.length - 1] = void 0, m.forEach(function(l, E) {
|
|
31279
31279
|
if (l && l.length > 1) {
|
|
31280
|
-
var
|
|
31281
|
-
|
|
31280
|
+
var I = g.appendChild(document.createElement("span"));
|
|
31281
|
+
I.style.display = "block", I.textContent = l;
|
|
31282
31282
|
} else
|
|
31283
|
-
|
|
31283
|
+
n[E] = h;
|
|
31284
31284
|
});
|
|
31285
31285
|
}), p.forEach(function(i) {
|
|
31286
|
-
for (var g = i.sizer,
|
|
31287
|
-
|
|
31286
|
+
for (var g = i.sizer, m = i.lineHeights, n = 0, h = 0; h < m.length; h++)
|
|
31287
|
+
m[h] === void 0 && (m[h] = g.children[n++].getBoundingClientRect().height);
|
|
31288
31288
|
}), p.forEach(function(i) {
|
|
31289
|
-
var g = i.sizer,
|
|
31290
|
-
g.style.display = "none", g.innerHTML = "", i.lineHeights.forEach(function(
|
|
31291
|
-
|
|
31289
|
+
var g = i.sizer, m = i.element.querySelector(".line-numbers-rows");
|
|
31290
|
+
g.style.display = "none", g.innerHTML = "", i.lineHeights.forEach(function(n, h) {
|
|
31291
|
+
m.children[h].style.height = n + "px";
|
|
31292
31292
|
});
|
|
31293
31293
|
});
|
|
31294
31294
|
}
|
|
@@ -31310,15 +31310,15 @@ Prism.languages.webmanifest = Prism.languages.json;
|
|
|
31310
31310
|
);
|
|
31311
31311
|
if (!(!i || !/pre/i.test(i.nodeName)) && !p.querySelector(".line-numbers-rows") && Prism.util.isActive(p, r2)) {
|
|
31312
31312
|
p.classList.remove(r2), i.classList.add(r2);
|
|
31313
|
-
var g = s.code.match(t2),
|
|
31314
|
-
|
|
31313
|
+
var g = s.code.match(t2), m = g ? g.length + 1 : 1, n, h = new Array(m + 1).join("<span></span>");
|
|
31314
|
+
n = document.createElement("span"), n.setAttribute("aria-hidden", "true"), n.className = "line-numbers-rows", n.innerHTML = h, i.hasAttribute("data-start") && (i.style.counterReset = "linenumber " + (parseInt(i.getAttribute("data-start"), 10) - 1)), s.element.appendChild(n), a([i]), Prism.hooks.run("line-numbers", s);
|
|
31315
31315
|
}
|
|
31316
31316
|
}
|
|
31317
31317
|
}), Prism.hooks.add("line-numbers", function(s) {
|
|
31318
31318
|
s.plugins = s.plugins || {}, s.plugins.lineNumbers = true;
|
|
31319
31319
|
});
|
|
31320
31320
|
})();
|
|
31321
|
-
function
|
|
31321
|
+
function Ge(r2) {
|
|
31322
31322
|
const t2 = /* @__PURE__ */ new Set();
|
|
31323
31323
|
return JSON.stringify(
|
|
31324
31324
|
r2,
|
|
@@ -31340,11 +31340,11 @@ function O(r2) {
|
|
|
31340
31340
|
try {
|
|
31341
31341
|
return JSON.stringify(r2, null, 2);
|
|
31342
31342
|
} catch {
|
|
31343
|
-
return
|
|
31343
|
+
return Ge(r2);
|
|
31344
31344
|
}
|
|
31345
31345
|
return r2;
|
|
31346
31346
|
}
|
|
31347
|
-
const
|
|
31347
|
+
const Fe = ["innerHTML"], Lt = /* @__PURE__ */ defineComponent({
|
|
31348
31348
|
__name: "ScalarCodeBlock",
|
|
31349
31349
|
props: {
|
|
31350
31350
|
content: {},
|
|
@@ -31353,17 +31353,17 @@ const Be = ["innerHTML"], Et = /* @__PURE__ */ defineComponent({
|
|
|
31353
31353
|
hideCredentials: {}
|
|
31354
31354
|
},
|
|
31355
31355
|
setup(r2) {
|
|
31356
|
-
const t2 = r2, e = createHash(O(t2.content)), a = `components-scalar-code-block${e}`, { plugins: d, highlightElement: c } =
|
|
31357
|
-
t2.hideCredentials &&
|
|
31356
|
+
const t2 = r2, e = createHash(O(t2.content)), a = `components-scalar-code-block${e}`, { plugins: d, highlightElement: c } = R;
|
|
31357
|
+
t2.hideCredentials && R.hooks.add("wrap", function(n) {
|
|
31358
31358
|
if (!t2.hideCredentials)
|
|
31359
31359
|
return;
|
|
31360
|
-
let
|
|
31361
|
-
typeof t2.hideCredentials == "string" ?
|
|
31362
|
-
(l) =>
|
|
31363
|
-
)),
|
|
31360
|
+
let h = false;
|
|
31361
|
+
typeof t2.hideCredentials == "string" ? n.content.includes(t2.hideCredentials) && (h = true) : Array.isArray(t2.hideCredentials) && (h = t2.hideCredentials.some(
|
|
31362
|
+
(l) => n.content.includes(l)
|
|
31363
|
+
)), h && (n.content = n.content.replace(
|
|
31364
31364
|
/<span class="credentials">.*?<\/span>/g,
|
|
31365
31365
|
(l) => l.replace(/<span class="credentials">|<\/span>/g, "")
|
|
31366
|
-
),
|
|
31366
|
+
), n.content = n.content.replace(
|
|
31367
31367
|
new RegExp(
|
|
31368
31368
|
typeof t2.hideCredentials == "string" ? t2.hideCredentials : t2.hideCredentials.join("|"),
|
|
31369
31369
|
"g"
|
|
@@ -31379,29 +31379,29 @@ const Be = ["innerHTML"], Et = /* @__PURE__ */ defineComponent({
|
|
|
31379
31379
|
},
|
|
31380
31380
|
{ immediate: true }
|
|
31381
31381
|
);
|
|
31382
|
-
const
|
|
31382
|
+
const m = /\n(?!$)/g;
|
|
31383
31383
|
return onServerPrefetch(async () => {
|
|
31384
|
-
let
|
|
31385
|
-
t2.lineNumbers &&
|
|
31386
|
-
const
|
|
31387
|
-
|
|
31384
|
+
let n = "";
|
|
31385
|
+
t2.lineNumbers && R.hooks.add("after-tokenize", (l) => {
|
|
31386
|
+
const E = l.code.match(m), I = E ? E.length + 1 : 1;
|
|
31387
|
+
n = `<span aria-hidden="true" class="line-numbers-rows">${new Array(I + 1).join("<span></span>")}</span>`;
|
|
31388
31388
|
});
|
|
31389
|
-
const
|
|
31389
|
+
const h = R.highlight(
|
|
31390
31390
|
O(t2.content),
|
|
31391
|
-
|
|
31391
|
+
R.languages[i.value],
|
|
31392
31392
|
i.value
|
|
31393
31393
|
);
|
|
31394
|
-
if (p.value =
|
|
31394
|
+
if (p.value = h + n, e !== 0) {
|
|
31395
31395
|
const l = useSSRContext();
|
|
31396
|
-
l.payload.data[a] =
|
|
31396
|
+
l.payload.data[a] = h + n;
|
|
31397
31397
|
}
|
|
31398
31398
|
}), onMounted(async () => {
|
|
31399
31399
|
await import("./prism-autoloader-Dlh8Vzlw-BR-Zk31i.js"), d.autoloader.languages_path = "https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/";
|
|
31400
|
-
}), (
|
|
31400
|
+
}), (n, h) => (openBlock(), createElementBlock("pre", {
|
|
31401
31401
|
class: normalizeClass([
|
|
31402
31402
|
`scalar-component scalar-codeblock-pre language-${i.value}`,
|
|
31403
31403
|
{
|
|
31404
|
-
"line-numbers":
|
|
31404
|
+
"line-numbers": n.lineNumbers
|
|
31405
31405
|
}
|
|
31406
31406
|
])
|
|
31407
31407
|
}, [
|
|
@@ -31409,19 +31409,19 @@ const Be = ["innerHTML"], Et = /* @__PURE__ */ defineComponent({
|
|
|
31409
31409
|
key: 0,
|
|
31410
31410
|
class: normalizeClass(`scalar-codeblock-code language-${i.value}`),
|
|
31411
31411
|
innerHTML: unref(O)(p.value)
|
|
31412
|
-
}, null, 10,
|
|
31412
|
+
}, null, 10, Fe)) : (openBlock(), createElementBlock("code", {
|
|
31413
31413
|
key: 1,
|
|
31414
31414
|
ref_key: "el",
|
|
31415
31415
|
ref: s,
|
|
31416
31416
|
class: normalizeClass(`scalar-codeblock-code language-${i.value}`)
|
|
31417
|
-
}, toDisplayString(unref(O)(
|
|
31417
|
+
}, toDisplayString(unref(O)(n.content)), 3))
|
|
31418
31418
|
], 2));
|
|
31419
31419
|
}
|
|
31420
31420
|
});
|
|
31421
|
-
const
|
|
31421
|
+
const V = /* @__PURE__ */ Object.assign({ "./Add.svg": () => import("./Add-yNxGpRcH-B1LyqGlJ.js"), "./ArrowLeft.svg": () => import("./ArrowLeft-D7tW1xQo-BY1SMb43.js"), "./ArrowRight.svg": () => import("./ArrowRight-DmO-sdb2-DYqgcTpu.js"), "./Background.svg": () => import("./Background-CU9VIbfN-DvxzmwCx.js"), "./Brackets.svg": () => import("./Brackets-CI207-BL-BBaUg7lM.js"), "./Branch.svg": () => import("./Branch-CXwj8YuG-IxKqRWkx.js"), "./CallToAction.svg": () => import("./CallToAction-XLYRSI1h-DkdGfSAS.js"), "./Checkmark.svg": () => import("./Checkmark-DhbrPM0P-Bnd3e6-4.js"), "./ChevronDown.svg": () => import("./ChevronDown-Co7EAKAv-DHNwXUbS.js"), "./ChevronLeft.svg": () => import("./ChevronLeft-DYt0idAu-DAzCtmws.js"), "./ChevronRight.svg": () => import("./ChevronRight-ylxToVWl-CDFDuBE1.js"), "./ChevronUp.svg": () => import("./ChevronUp-xAnukIfj-CuKFLVD3.js"), "./Clipboard.svg": () => import("./Clipboard-CU_KxGEv-DWrQtWVi.js"), "./Close.svg": () => import("./Close-xHiYwS8Q-CWI8mlaM.js"), "./CodeFolder.svg": () => import("./CodeFolder-Cv_igzJE-CoWfaY0Z.js"), "./Cookie.svg": () => import("./Cookie-CEHvXpqB-D960ImBy.js"), "./DarkMode.svg": () => import("./DarkMode-BMR457PH-CVcoMGeO.js"), "./Delete.svg": () => import("./Delete-BCZmxrDD-BHoCf_u4.js"), "./Discord.svg": () => import("./Discord-BHYOFBB2-NYBGYy-_.js"), "./DocsPage.svg": () => import("./DocsPage-Dwx7ZMU9-D3s0nKun.js"), "./Duplicate.svg": () => import("./Duplicate-DRWEv4R_-5xIOj7QF.js"), "./Edit.svg": () => import("./Edit-Br04RNYb-BhCyac4t.js"), "./Ellipses.svg": () => import("./Ellipses-Bo_X36Hx-CsJmKvlE.js"), "./Error.svg": () => import("./Error-C5LiISnw-BIMzByff.js"), "./ExternalLink.svg": () => import("./ExternalLink-DK8L-EH7-ANJEzoHO.js"), "./FilterList.svg": () => import("./FilterList-CS8Il7NE-CagRN2wd.js"), "./Folder.svg": () => import("./Folder-CTvnVSEo-B2z_4abD.js"), "./GitHub.svg": () => import("./GitHub-NdE6Zs9k-BAGzgXH_.js"), "./Hide.svg": () => import("./Hide-BgcCtErz-CAC_2jsk.js"), "./History.svg": () => import("./History-D9nmhNIn-BU9mR55a.js"), "./JsonObject.svg": () => import("./JsonObject-hGdHUQ4M-Cm1hXgAn.js"), "./Key.svg": () => import("./Key-CWXJqX28-DdNUhB11.js"), "./Leave.svg": () => import("./Leave-K1J3uwoG-WgTmlwgs.js"), "./LightDarkModeToggle.svg": () => import("./LightDarkModeToggle-De3vO47x-D3WCuqcH.js"), "./LightMode.svg": () => import("./LightMode-BeoMphBY-CDedz2JM.js"), "./Link.svg": () => import("./Link-Bzuc__Nc-Bvtx0HZG.js"), "./Lock.svg": () => import("./Lock-xhiH1mKz-Rrlr3fGv.js"), "./Logo.svg": () => import("./Logo-DwEDtgj--pmO6SPQX.js"), "./LogoAPI.svg": () => import("./LogoAPI-CohCfL3L-CzbaXJLs.js"), "./LogoClient.svg": () => import("./LogoClient-Bq5O2QL2-Bw2epmD5.js"), "./LogoMarket.svg": () => import("./LogoMarket-DwlApcab-_INRDSLs.js"), "./LogoSwagger.svg": () => import("./LogoSwagger-CH60H5qW-DFEpFXIU.js"), "./Magic.svg": () => import("./Magic-Dsi9_bEc-BYN42_eH.js"), "./Menu.svg": () => import("./Menu-CFK5cOsm-CqE9Tsgr.js"), "./Page.svg": () => import("./Page-DA7CO5gc-DfccxJJv.js"), "./PaperAirplane.svg": () => import("./PaperAirplane-BC-4mGEB-BrV5fX8s.js"), "./Payment.svg": () => import("./Payment-hzcXP1Xb-B2G1p4-i.js"), "./Play.svg": () => import("./Play-Cd4-o7Ji-xTTrC7nd.js"), "./Refresh.svg": () => import("./Refresh-BHRzzQ8P-DMGXg62S.js"), "./Response.svg": () => import("./Response-DsTlT4S--CGVlb2Cj.js"), "./Search.svg": () => import("./Search-DqtlswRG-D-hprEk0.js"), "./Show.svg": () => import("./Show-CbiiMLUa-G7jnye-t.js"), "./SideBarClosed.svg": () => import("./SideBarClosed-K53-CtXh-DmurFyoL.js"), "./SideBarOpen.svg": () => import("./SideBarOpen-C7UgT82P-BG6NE13Z.js"), "./Sort.svg": () => import("./Sort-CaVMT7jM-CseseOA9.js"), "./Terminal.svg": () => import("./Terminal-DJ7x2McL-BUB3Qs0m.js"), "./ThumbsDown.svg": () => import("./ThumbsDown-BMgnsASL-B2YFxB8i.js"), "./ThumbsUp.svg": () => import("./ThumbsUp-C1j6zY2j-DKqh3z1D.js"), "./Trash.svg": () => import("./Trash-BpA3zWPD-BAjuQdys.js"), "./Unlock.svg": () => import("./Unlock-HVYHMLxl-D89vmw_N.js"), "./Upload.svg": () => import("./Upload-D_pwqBDY-Bg4YHBfw.js"), "./User.svg": () => import("./User-BLGkPc5I-XzPjc0Gv.js"), "./programming-framework-angular.svg": () => import("./programming-framework-angular-DD4Vjgbk-Bzc9D9am.js"), "./programming-framework-astro.svg": () => import("./programming-framework-astro-CLfrRt19-CfPlyy6T.js"), "./programming-framework-laravel.svg": () => import("./programming-framework-laravel-kAy2wVLy-Cty_4oXq.js"), "./programming-framework-nextdotjs.svg": () => import("./programming-framework-nextdotjs-BKdd_DY_-DUTv-t1Q.js"), "./programming-framework-react.svg": () => import("./programming-framework-react-PDgmtZuN-DdUogL85.js"), "./programming-framework-vuedotjs.svg": () => import("./programming-framework-vuedotjs-Cim7D5tw-COH3lflr.js"), "./programming-language-c.svg": () => import("./programming-language-c-hPGu2Zvg-QG1pSdJG.js"), "./programming-language-clojure.svg": () => import("./programming-language-clojure-uqYXn7U6-UAUP9oZz.js"), "./programming-language-csharp.svg": () => import("./programming-language-csharp-CGxYkVA6-DkAhKOzF.js"), "./programming-language-css3.svg": () => import("./programming-language-css3-Dpp4Cr6b-Bf5XF7-p.js"), "./programming-language-go.svg": () => import("./programming-language-go-CuKo8iD9-Dkewryvm.js"), "./programming-language-html5.svg": () => import("./programming-language-html5-DlqJK4EL-Bl9dTA-D.js"), "./programming-language-http.svg": () => import("./programming-language-http-f3NXC-Ae-BY_awyxD.js"), "./programming-language-java.svg": () => import("./programming-language-java-BBodetdf-BHELDLTj.js"), "./programming-language-javascript.svg": () => import("./programming-language-javascript-VxLvi1QG-DFjYF_MP.js"), "./programming-language-json.svg": () => import("./programming-language-json-Dq_K-q5f-BlovheYp.js"), "./programming-language-kotlin.svg": () => import("./programming-language-kotlin-eTASnmL3-D8AoUcB1.js"), "./programming-language-node.svg": () => import("./programming-language-node-oucaVOgY-CzP8mlvs.js"), "./programming-language-objc.svg": () => import("./programming-language-objc-CPgQxmNi-DjsFgTok.js"), "./programming-language-ocaml.svg": () => import("./programming-language-ocaml-Q1-Jv5Q5-D2vDLKwp.js"), "./programming-language-php.svg": () => import("./programming-language-php-GY38f8r4-DQ_8EMFH.js"), "./programming-language-powershell.svg": () => import("./programming-language-powershell-xLOxAYP_-DAvJS1A9.js"), "./programming-language-python.svg": () => import("./programming-language-python-Ct-_kNjo-BCrlyfv0.js"), "./programming-language-r.svg": () => import("./programming-language-r-Ch3T1qiC-I_IE4uwz.js"), "./programming-language-ruby.svg": () => import("./programming-language-ruby-DhdM4d7g-Dd3La6Kn.js"), "./programming-language-scala.svg": () => import("./programming-language-scala-BVg0dToJ-Bz_n-CNw.js"), "./programming-language-shell.svg": () => import("./programming-language-shell-uj1zoCVW-Bg0d3E28.js"), "./programming-language-swift.svg": () => import("./programming-language-swift-Dn72xPjg-BUvu5_SV.js"), "./programming-language-typescript.svg": () => import("./programming-language-typescript-CdF-HuRi-CaDO02MW.js"), "./programming-script-code.svg": () => import("./programming-script-code-CUHv6qR8-CzD7HjI2.js"), "./programming-tool-git.svg": () => import("./programming-tool-git-C-BMJCAo-BFJIU2--.js"), "./programming-tool-tailwindcss.svg": () => import("./programming-tool-tailwindcss-xjXi0E6g-ky2wbsII.js") }), G = (r2) => {
|
|
31422
31422
|
const t2 = `./${r2}.svg`;
|
|
31423
|
-
return
|
|
31424
|
-
},
|
|
31423
|
+
return V[t2] ? defineAsyncComponent(V[t2]) : (console.warn(`Could not find icon: ${r2}`), null);
|
|
31424
|
+
}, Ke = ["src"], H = /* @__PURE__ */ defineComponent({
|
|
31425
31425
|
__name: "ScalarIcon",
|
|
31426
31426
|
props: {
|
|
31427
31427
|
icon: {},
|
|
@@ -31444,16 +31444,16 @@ const H = /* @__PURE__ */ Object.assign({ "./Add.svg": () => import("./Add-yNxGp
|
|
|
31444
31444
|
defaultVariants: {
|
|
31445
31445
|
size: "full"
|
|
31446
31446
|
}
|
|
31447
|
-
}), a =
|
|
31448
|
-
return (d, c) => unref(a) ? (openBlock(), createBlock(resolveDynamicComponent(unref(
|
|
31447
|
+
}), a = G(t2.icon);
|
|
31448
|
+
return (d, c) => unref(a) ? (openBlock(), createBlock(resolveDynamicComponent(unref(G)(d.icon)), {
|
|
31449
31449
|
key: 0,
|
|
31450
|
-
class: normalizeClass(unref(
|
|
31450
|
+
class: normalizeClass(unref(w)("scalar-icon", unref(e)({ size: d.size })))
|
|
31451
31451
|
}, null, 8, ["class"])) : (openBlock(), createElementBlock("img", {
|
|
31452
31452
|
key: 1,
|
|
31453
31453
|
src: d.icon
|
|
31454
|
-
}, null, 8,
|
|
31454
|
+
}, null, 8, Ke));
|
|
31455
31455
|
}
|
|
31456
|
-
}),
|
|
31456
|
+
}), Ye = ["ariaDisabled"], Je = { class: "sr-only" }, Ze = /* @__PURE__ */ defineComponent({
|
|
31457
31457
|
__name: "ScalarIconButton",
|
|
31458
31458
|
props: {
|
|
31459
31459
|
label: {},
|
|
@@ -31476,7 +31476,7 @@ const H = /* @__PURE__ */ Object.assign({ "./Add.svg": () => import("./Add-yNxGp
|
|
|
31476
31476
|
disabled: {
|
|
31477
31477
|
true: "cursor-not-allowed shadow-none"
|
|
31478
31478
|
},
|
|
31479
|
-
variant:
|
|
31479
|
+
variant: J
|
|
31480
31480
|
}
|
|
31481
31481
|
}), e = computed(() => {
|
|
31482
31482
|
const { class: a, ...d } = useAttrs();
|
|
@@ -31484,12 +31484,12 @@ const H = /* @__PURE__ */ Object.assign({ "./Add.svg": () => import("./Add-yNxGp
|
|
|
31484
31484
|
});
|
|
31485
31485
|
return (a, d) => (openBlock(), createElementBlock("button", mergeProps(e.value.rest, {
|
|
31486
31486
|
ariaDisabled: a.disabled || void 0,
|
|
31487
|
-
class: unref(
|
|
31487
|
+
class: unref(w)(unref(t2)({ size: a.size, variant: a.variant, disabled: a.disabled }), e.value.class),
|
|
31488
31488
|
type: "button"
|
|
31489
31489
|
}), [
|
|
31490
|
-
createVNode(unref(
|
|
31491
|
-
createElementVNode("span",
|
|
31492
|
-
], 16,
|
|
31490
|
+
createVNode(unref(H), { icon: a.icon }, null, 8, ["icon"]),
|
|
31491
|
+
createElementVNode("span", Je, toDisplayString(a.label), 1)
|
|
31492
|
+
], 16, Ye));
|
|
31493
31493
|
}
|
|
31494
31494
|
});
|
|
31495
31495
|
const _hoisted_1$o = { class: "card-form-input" };
|
|
@@ -31522,7 +31522,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
31522
31522
|
spellcheck: "false",
|
|
31523
31523
|
type: inputType.value
|
|
31524
31524
|
}), null, 16, _hoisted_3$b),
|
|
31525
|
-
_ctx.type === "password" ? (openBlock(), createBlock(unref(
|
|
31525
|
+
_ctx.type === "password" ? (openBlock(), createBlock(unref(Ze), {
|
|
31526
31526
|
key: 0,
|
|
31527
31527
|
class: "password-mask",
|
|
31528
31528
|
icon: mask.value ? "Show" : "Hide",
|
|
@@ -31579,7 +31579,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
31579
31579
|
createTextVNode(" Scopes " + toDisplayString(model.value.length), 1),
|
|
31580
31580
|
_hoisted_2$i,
|
|
31581
31581
|
createTextVNode(toDisplayString(Object.entries(_ctx.scopes).length) + " ", 1),
|
|
31582
|
-
createVNode(unref(
|
|
31582
|
+
createVNode(unref(H), {
|
|
31583
31583
|
icon: open ? "ChevronUp" : "ChevronDown",
|
|
31584
31584
|
size: "sm"
|
|
31585
31585
|
}, null, 8, ["icon"])
|
|
@@ -32088,7 +32088,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
32088
32088
|
(_b = _ctx.value) == null ? void 0 : _b[unref(authentication2).preferredSecurityScheme],
|
|
32089
32089
|
unref(authentication2).preferredSecurityScheme
|
|
32090
32090
|
) : "None"), 1),
|
|
32091
|
-
createVNode(unref(
|
|
32091
|
+
createVNode(unref(H), { icon: "ChevronDown" }),
|
|
32092
32092
|
createElementVNode("select", {
|
|
32093
32093
|
value: unref(authentication2).preferredSecurityScheme,
|
|
32094
32094
|
onClick: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
@@ -32257,7 +32257,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
32257
32257
|
_hoisted_3$7
|
|
32258
32258
|
]),
|
|
32259
32259
|
meta: withCtx(() => [
|
|
32260
|
-
createVNode(unref(
|
|
32260
|
+
createVNode(unref(It), {
|
|
32261
32261
|
class: "table-description-toggle",
|
|
32262
32262
|
variant: "text",
|
|
32263
32263
|
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:showDescription", !_ctx.showDescription))
|
|
@@ -32489,7 +32489,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
32489
32489
|
onClick: addHandler
|
|
32490
32490
|
}, [
|
|
32491
32491
|
createElementVNode("i", _hoisted_3$4, [
|
|
32492
|
-
createVNode(unref(
|
|
32492
|
+
createVNode(unref(H), { icon: "Add" })
|
|
32493
32493
|
]),
|
|
32494
32494
|
createTextVNode(" " + toDisplayString(_ctx.addLabel), 1)
|
|
32495
32495
|
])) : createCommentVNode("", true),
|
|
@@ -32501,7 +32501,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
32501
32501
|
}, [
|
|
32502
32502
|
createTextVNode(" Show More "),
|
|
32503
32503
|
createElementVNode("i", _hoisted_4$3, [
|
|
32504
|
-
createVNode(unref(
|
|
32504
|
+
createVNode(unref(H), { icon: "ChevronDown" })
|
|
32505
32505
|
])
|
|
32506
32506
|
])) : createCommentVNode("", true)
|
|
32507
32507
|
])
|
|
@@ -33027,7 +33027,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
33027
33027
|
return openBlock(), createBlock(unref(_sfc_main$w), { title: "Body" }, {
|
|
33028
33028
|
default: withCtx(() => [
|
|
33029
33029
|
_ctx.response ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
33030
|
-
codeMirrorLanguage.value || typeof _ctx.response.data === "string" ? (openBlock(), createBlock(unref(
|
|
33030
|
+
codeMirrorLanguage.value || typeof _ctx.response.data === "string" ? (openBlock(), createBlock(unref(Lt), {
|
|
33031
33031
|
key: 0,
|
|
33032
33032
|
class: "custom-scroll",
|
|
33033
33033
|
content: formattedResponseData.value,
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"rest",
|
|
19
19
|
"testing"
|
|
20
20
|
],
|
|
21
|
-
"version": "1.3.
|
|
21
|
+
"version": "1.3.2",
|
|
22
22
|
"engines": {
|
|
23
23
|
"node": ">=18"
|
|
24
24
|
},
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
"nanoid": "^5.0.1",
|
|
45
45
|
"pretty-bytes": "^6.1.1",
|
|
46
46
|
"pretty-ms": "^8.0.0",
|
|
47
|
-
"@scalar/components": "0.10.0",
|
|
48
|
-
"@scalar/themes": "0.8.0",
|
|
49
47
|
"@scalar/use-codemirror": "0.10.5",
|
|
48
|
+
"@scalar/themes": "0.8.0",
|
|
49
|
+
"@scalar/components": "0.10.1",
|
|
50
50
|
"@scalar/use-modal": "0.3.3",
|
|
51
51
|
"@scalar/use-toasts": "0.6.7",
|
|
52
52
|
"@scalar/use-tooltip": "0.6.2"
|
|
@@ -60,13 +60,13 @@
|
|
|
60
60
|
"vitest": "^1.5.0",
|
|
61
61
|
"vue": "^3.4.21",
|
|
62
62
|
"vue-tsc": "^1.8.19",
|
|
63
|
+
"@scalar/api-client-proxy": "0.6.0",
|
|
63
64
|
"@scalar/echo-server": "0.6.4",
|
|
64
|
-
"@scalar/oas-utils": "0.1.
|
|
65
|
-
"@scalar/api-client-proxy": "0.6.0"
|
|
65
|
+
"@scalar/oas-utils": "0.1.17"
|
|
66
66
|
},
|
|
67
67
|
"peerDependencies": {
|
|
68
68
|
"vue": "^3.3.0",
|
|
69
|
-
"@scalar/oas-utils": "0.1.
|
|
69
|
+
"@scalar/oas-utils": "0.1.17"
|
|
70
70
|
},
|
|
71
71
|
"scripts": {
|
|
72
72
|
"build": "vite build && pnpm types:build && tsc-alias -p tsconfig.build.json",
|