@scalar/api-client 1.2.17 → 1.2.19
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 +16 -0
- package/dist/Background-DcRhSHgf-DMULXelH.js +18 -0
- package/dist/CallToAction-EyQKkvbg-D5UsQ4YH.js +21 -0
- package/dist/Delete-BCZmxrDD-BHoCf_u4.js +21 -0
- package/dist/Discord-BHYOFBB2-NYBGYy-_.js +16 -0
- package/dist/Duplicate-BPlzNpcf-DbmFK0XC.js +22 -0
- package/dist/Edit-Br04RNYb-BhCyac4t.js +19 -0
- package/dist/Error-B_RGtWJI-D9KV-EvG.js +18 -0
- package/dist/Folder-Cdcj4evh-B-g7TtzK.js +18 -0
- package/dist/Key-CWXJqX28-DdNUhB11.js +21 -0
- package/dist/Leave-K1J3uwoG-WgTmlwgs.js +21 -0
- package/dist/Link-Bzuc__Nc-Bvtx0HZG.js +21 -0
- package/dist/Lock-xhiH1mKz-Rrlr3fGv.js +21 -0
- package/dist/Magic-Dsi9_bEc-BYN42_eH.js +21 -0
- package/dist/Page-B7rVuhpl-BUIogUij.js +18 -0
- package/dist/Payment-hzcXP1Xb-B2G1p4-i.js +21 -0
- package/dist/Refresh-Be6vHEEi-C6lRqFiM.js +28 -0
- package/dist/SideBarClosed-CYUNS2XM-CyAn6Mp2.js +18 -0
- package/dist/SideBarOpen-BOxW49_U-D5IKtkfP.js +18 -0
- package/dist/ThumbsDown-BMgnsASL-B2YFxB8i.js +21 -0
- package/dist/ThumbsUp-C1j6zY2j-DKqh3z1D.js +21 -0
- package/dist/Trash-BpA3zWPD-BAjuQdys.js +21 -0
- package/dist/Unlock-CY8UqJoE-CrwInjK9.js +18 -0
- package/dist/Upload-REIdL7RI-CsfWPmbV.js +18 -0
- package/dist/User-Df5svMQ3-BD7IWPQQ.js +18 -0
- package/dist/components/ApiClient/AddressBar.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/ApiClient.vue.d.ts +15 -2
- package/dist/components/ApiClient/ApiClient.vue.d.ts.map +1 -1
- package/dist/index.css +37 -39
- package/dist/index.js +92 -87
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -26398,14 +26398,17 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
26398
26398
|
}
|
|
26399
26399
|
});
|
|
26400
26400
|
const RequestMethodSelect = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-2b029b46"]]);
|
|
26401
|
-
const _withScopeId$5 = (n) => (pushScopeId("data-v-
|
|
26401
|
+
const _withScopeId$5 = (n) => (pushScopeId("data-v-2d90bbed"), n = n(), popScopeId(), n);
|
|
26402
26402
|
const _hoisted_1$s = {
|
|
26403
26403
|
key: 0,
|
|
26404
26404
|
class: "loader"
|
|
26405
26405
|
};
|
|
26406
26406
|
const _hoisted_2$j = { class: "url-form" };
|
|
26407
26407
|
const _hoisted_3$d = { class: "url-form-field" };
|
|
26408
|
-
const _hoisted_4$a =
|
|
26408
|
+
const _hoisted_4$a = {
|
|
26409
|
+
key: 0,
|
|
26410
|
+
class: "history"
|
|
26411
|
+
};
|
|
26409
26412
|
const _hoisted_5$5 = /* @__PURE__ */ _withScopeId$5(() => /* @__PURE__ */ createElementVNode("svg", {
|
|
26410
26413
|
fill: "none",
|
|
26411
26414
|
height: "48",
|
|
@@ -26413,50 +26416,50 @@ const _hoisted_5$5 = /* @__PURE__ */ _withScopeId$5(() => /* @__PURE__ */ create
|
|
|
26413
26416
|
width: "48",
|
|
26414
26417
|
xmlns: "http://www.w3.org/2000/svg"
|
|
26415
26418
|
}, [
|
|
26416
|
-
/* @__PURE__ */ createElementVNode("g", { id: "
|
|
26419
|
+
/* @__PURE__ */ createElementVNode("g", { id: "rewind-clock--back-return-clock-timer-countdown" }, [
|
|
26417
26420
|
/* @__PURE__ */ createElementVNode("path", {
|
|
26418
|
-
id: "
|
|
26421
|
+
id: "Vector 1561 (Stroke)",
|
|
26419
26422
|
"clip-rule": "evenodd",
|
|
26420
|
-
d: "
|
|
26423
|
+
d: "M6.99999 2.75C7.4142 2.75 7.74999 3.08579 7.74999 3.5V7.5C7.74999 7.76345 7.61177 8.00758 7.38586 8.14312L4.88586 9.64312C4.53068 9.85623 4.06998 9.74106 3.85687 9.38587C3.64376 9.03069 3.75893 8.56999 4.11412 8.35688L6.24999 7.07536V3.5C6.24999 3.08579 6.58578 2.75 6.99999 2.75Z",
|
|
26424
|
+
fill: "currentColor",
|
|
26425
|
+
"fill-rule": "evenodd"
|
|
26426
|
+
}),
|
|
26427
|
+
/* @__PURE__ */ createElementVNode("path", {
|
|
26428
|
+
id: "Union",
|
|
26429
|
+
"clip-rule": "evenodd",
|
|
26430
|
+
d: "M12.5 7C12.5 3.96243 10.0376 1.5 7 1.5C5.24916 1.5 3.68853 2.31796 2.68066 3.59456L3.64645 4.56034C3.96143 4.87533 3.73835 5.4139 3.29289 5.4139H0.5C0.223857 5.4139 0 5.19004 0 4.9139V2.121C0 1.67555 0.53857 1.45247 0.853553 1.76745L1.61439 2.52829C2.89781 0.984301 4.83356 0 7 0C10.866 0 14 3.13401 14 7C14 10.866 10.866 14 7 14C3.68902 14 0.916591 11.702 0.187329 8.61473C0.0921059 8.21161 0.341704 7.80762 0.744824 7.7124C1.14794 7.61717 1.55193 7.86677 1.64715 8.26989C2.22013 10.6955 4.40025 12.5 7 12.5C10.0376 12.5 12.5 10.0376 12.5 7Z",
|
|
26421
26431
|
fill: "currentColor",
|
|
26422
26432
|
"fill-rule": "evenodd"
|
|
26423
26433
|
})
|
|
26424
26434
|
])
|
|
26425
26435
|
], -1));
|
|
26426
|
-
const _hoisted_6$2 =
|
|
26427
|
-
|
|
26428
|
-
_hoisted_5$5,
|
|
26429
|
-
_hoisted_6$2
|
|
26436
|
+
const _hoisted_6$2 = [
|
|
26437
|
+
_hoisted_5$5
|
|
26430
26438
|
];
|
|
26431
|
-
const
|
|
26432
|
-
const
|
|
26433
|
-
key: 0,
|
|
26434
|
-
class: "history"
|
|
26435
|
-
};
|
|
26436
|
-
const _hoisted_10 = /* @__PURE__ */ _withScopeId$5(() => /* @__PURE__ */ createElementVNode("svg", {
|
|
26439
|
+
const _hoisted_7$1 = ["disabled"];
|
|
26440
|
+
const _hoisted_8$1 = /* @__PURE__ */ _withScopeId$5(() => /* @__PURE__ */ createElementVNode("svg", {
|
|
26437
26441
|
fill: "none",
|
|
26438
26442
|
height: "48",
|
|
26439
26443
|
viewBox: "0 0 14 14",
|
|
26440
26444
|
width: "48",
|
|
26441
26445
|
xmlns: "http://www.w3.org/2000/svg"
|
|
26442
26446
|
}, [
|
|
26443
|
-
/* @__PURE__ */ createElementVNode("g", { id: "
|
|
26444
|
-
/* @__PURE__ */ createElementVNode("path", {
|
|
26445
|
-
id: "Vector 1561 (Stroke)",
|
|
26446
|
-
"clip-rule": "evenodd",
|
|
26447
|
-
d: "M6.99999 2.75C7.4142 2.75 7.74999 3.08579 7.74999 3.5V7.5C7.74999 7.76345 7.61177 8.00758 7.38586 8.14312L4.88586 9.64312C4.53068 9.85623 4.06998 9.74106 3.85687 9.38587C3.64376 9.03069 3.75893 8.56999 4.11412 8.35688L6.24999 7.07536V3.5C6.24999 3.08579 6.58578 2.75 6.99999 2.75Z",
|
|
26448
|
-
fill: "currentColor",
|
|
26449
|
-
"fill-rule": "evenodd"
|
|
26450
|
-
}),
|
|
26447
|
+
/* @__PURE__ */ createElementVNode("g", { id: "send-email--mail-send-email-paper-airplane" }, [
|
|
26451
26448
|
/* @__PURE__ */ createElementVNode("path", {
|
|
26452
|
-
id: "
|
|
26449
|
+
id: "Subtract",
|
|
26453
26450
|
"clip-rule": "evenodd",
|
|
26454
|
-
d: "
|
|
26451
|
+
d: "M11.8215 0.0977331C12.1097 -0.0075178 12.422 -0.0287134 12.7219 0.0367172C13.0248 0.102803 13.3024 0.254481 13.5216 0.473719C13.7409 0.692957 13.8926 0.970537 13.9586 1.27346C14.0241 1.57338 14.0029 1.88566 13.8976 2.17389L10.3236 12.8859L10.3234 12.8866C10.2363 13.15 10.083 13.3867 9.87813 13.5739C9.67383 13.7606 9.42512 13.8917 9.15575 13.9549C8.88633 14.0206 8.60444 14.015 8.33777 13.9388C8.07134 13.8627 7.82929 13.7187 7.63532 13.5209L5.71798 11.6123L3.70392 12.6538C3.54687 12.735 3.3586 12.7272 3.20877 12.6333C3.05895 12.5395 2.96984 12.3734 2.97443 12.1967L3.057 9.01294L10.102 3.89553C10.3812 3.69267 10.4432 3.30182 10.2403 3.02255C10.0375 2.74327 9.64662 2.68133 9.36734 2.88419L2.20286 8.0884L0.473156 6.35869L0.473098 6.35864L0.472971 6.35851C0.285648 6.17132 0.147746 5.94054 0.0716498 5.68688C-0.00390565 5.43503 -0.016181 5.16847 0.0358684 4.91079C0.087985 4.62928 0.213827 4.36658 0.400607 4.14951C0.588668 3.93095 0.831681 3.76658 1.10453 3.67339L1.1079 3.67224L1.1079 3.67225L11.8215 0.0977331Z",
|
|
26455
26452
|
fill: "currentColor",
|
|
26456
26453
|
"fill-rule": "evenodd"
|
|
26457
26454
|
})
|
|
26458
26455
|
])
|
|
26459
26456
|
], -1));
|
|
26457
|
+
const _hoisted_9$1 = /* @__PURE__ */ _withScopeId$5(() => /* @__PURE__ */ createElementVNode("span", null, "Send", -1));
|
|
26458
|
+
const _hoisted_10 = [
|
|
26459
|
+
_hoisted_8$1,
|
|
26460
|
+
_hoisted_9$1
|
|
26461
|
+
];
|
|
26462
|
+
const _hoisted_11 = { class: "address-bar-content" };
|
|
26460
26463
|
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
26461
26464
|
__name: "AddressBar",
|
|
26462
26465
|
props: {
|
|
@@ -26497,7 +26500,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
26497
26500
|
}
|
|
26498
26501
|
loading.value = false;
|
|
26499
26502
|
}
|
|
26500
|
-
|
|
26503
|
+
computed(() => {
|
|
26501
26504
|
const lastRequestKey = requestHistoryOrder2.value[0];
|
|
26502
26505
|
return requestHistory2[lastRequestKey] ? humanDiff(requestHistory2[lastRequestKey].sentTime) : "History";
|
|
26503
26506
|
});
|
|
@@ -26541,18 +26544,24 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
26541
26544
|
onChange
|
|
26542
26545
|
}, null, 8, ["content", "readOnly"])
|
|
26543
26546
|
]),
|
|
26547
|
+
unref(requestHistoryOrder2).length ? (openBlock(), createElementBlock("div", _hoisted_4$a, [
|
|
26548
|
+
createElementVNode("div", {
|
|
26549
|
+
class: "history-toggle",
|
|
26550
|
+
onClick: _cache[0] || (_cache[0] = ($event) => unref(historyModal).show())
|
|
26551
|
+
}, _hoisted_6$2)
|
|
26552
|
+
])) : createCommentVNode("", true),
|
|
26544
26553
|
createElementVNode("button", {
|
|
26545
26554
|
class: "send-button",
|
|
26546
26555
|
disabled: !formattedUrl.value.trim().length,
|
|
26547
26556
|
type: "submit",
|
|
26548
26557
|
onClick: send
|
|
26549
|
-
},
|
|
26558
|
+
}, _hoisted_10, 8, _hoisted_7$1)
|
|
26550
26559
|
]),
|
|
26551
26560
|
createElementVNode("div", {
|
|
26552
26561
|
class: "address-bar-close",
|
|
26553
|
-
onClick: _cache[
|
|
26562
|
+
onClick: _cache[1] || (_cache[1] = ($event) => showHistory.value = false)
|
|
26554
26563
|
}),
|
|
26555
|
-
createElementVNode("div",
|
|
26564
|
+
createElementVNode("div", _hoisted_11, [
|
|
26556
26565
|
createVNode(unref(FlowModal), {
|
|
26557
26566
|
state: unref(historyModal),
|
|
26558
26567
|
title: "Request History",
|
|
@@ -26561,27 +26570,18 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
26561
26570
|
default: withCtx(() => [
|
|
26562
26571
|
createVNode(_sfc_main$y, {
|
|
26563
26572
|
showHistory: showHistory.value,
|
|
26564
|
-
onToggle: _cache[
|
|
26573
|
+
onToggle: _cache[2] || (_cache[2] = ($event) => showHistory.value = !showHistory.value)
|
|
26565
26574
|
}, null, 8, ["showHistory"])
|
|
26566
26575
|
]),
|
|
26567
26576
|
_: 1
|
|
26568
26577
|
}, 8, ["state"])
|
|
26569
|
-
])
|
|
26570
|
-
unref(requestHistoryOrder2).length ? (openBlock(), createElementBlock("div", _hoisted_9$1, [
|
|
26571
|
-
createElementVNode("div", {
|
|
26572
|
-
class: "history-toggle",
|
|
26573
|
-
onClick: _cache[2] || (_cache[2] = ($event) => unref(historyModal).show())
|
|
26574
|
-
}, [
|
|
26575
|
-
_hoisted_10,
|
|
26576
|
-
createElementVNode("span", null, toDisplayString(lastRequestTimestamp.value), 1)
|
|
26577
|
-
])
|
|
26578
|
-
])) : createCommentVNode("", true)
|
|
26578
|
+
])
|
|
26579
26579
|
], 2)
|
|
26580
26580
|
], 64);
|
|
26581
26581
|
};
|
|
26582
26582
|
}
|
|
26583
26583
|
});
|
|
26584
|
-
const AddressBar = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-
|
|
26584
|
+
const AddressBar = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-2d90bbed"]]);
|
|
26585
26585
|
const clickGeneratedParameter = useEventBus(Symbol());
|
|
26586
26586
|
const _hoisted_1$r = /* @__PURE__ */ createElementVNode("svg", {
|
|
26587
26587
|
class: "scalar-api-client__toggle__icon",
|
|
@@ -30827,7 +30827,7 @@ const De = /* @__PURE__ */ defineComponent({
|
|
|
30827
30827
|
"scalar-button-danger",
|
|
30828
30828
|
"bg-error text-white active:brightness-90 hocus:brightness-90"
|
|
30829
30829
|
]
|
|
30830
|
-
},
|
|
30830
|
+
}, Pe = T({
|
|
30831
30831
|
base: "scalar-button row cursor-pointer items-center justify-center rounded font-medium",
|
|
30832
30832
|
variants: {
|
|
30833
30833
|
disabled: {
|
|
@@ -30844,7 +30844,7 @@ const De = /* @__PURE__ */ defineComponent({
|
|
|
30844
30844
|
class: "bg-transparent text-ghost"
|
|
30845
30845
|
}
|
|
30846
30846
|
]
|
|
30847
|
-
}),
|
|
30847
|
+
}), Oe = ["ariaDisabled"], ze = {
|
|
30848
30848
|
key: 0,
|
|
30849
30849
|
class: "mr-2 h-4 w-4"
|
|
30850
30850
|
}, Be = {
|
|
@@ -30868,7 +30868,7 @@ const De = /* @__PURE__ */ defineComponent({
|
|
|
30868
30868
|
return (e, r2) => (openBlock(), createElementBlock("button", mergeProps(t2.value.rest, {
|
|
30869
30869
|
ariaDisabled: e.disabled || void 0,
|
|
30870
30870
|
class: unref(E)(
|
|
30871
|
-
unref(
|
|
30871
|
+
unref(Pe)({ fullWidth: e.fullWidth, disabled: e.disabled, size: e.size, variant: e.variant }),
|
|
30872
30872
|
{ "pl-9 pr-3": e.loading },
|
|
30873
30873
|
`${t2.value.className}`
|
|
30874
30874
|
),
|
|
@@ -30884,7 +30884,7 @@ const De = /* @__PURE__ */ defineComponent({
|
|
|
30884
30884
|
size: "20px"
|
|
30885
30885
|
}, null, 8, ["loadingState"])
|
|
30886
30886
|
])) : createCommentVNode("", true)
|
|
30887
|
-
], 16,
|
|
30887
|
+
], 16, Oe));
|
|
30888
30888
|
}
|
|
30889
30889
|
});
|
|
30890
30890
|
(function(a) {
|
|
@@ -31148,8 +31148,8 @@ Prism.languages.webmanifest = Prism.languages.json;
|
|
|
31148
31148
|
if (i) {
|
|
31149
31149
|
var g = parseInt(s.getAttribute("data-start"), 10) || 1, p = g + (i.children.length - 1);
|
|
31150
31150
|
u < g && (u = g), u > p && (u = p);
|
|
31151
|
-
var
|
|
31152
|
-
return i.children[
|
|
31151
|
+
var o = u - g;
|
|
31152
|
+
return i.children[o];
|
|
31153
31153
|
}
|
|
31154
31154
|
}
|
|
31155
31155
|
},
|
|
@@ -31184,34 +31184,34 @@ Prism.languages.webmanifest = Prism.languages.json;
|
|
|
31184
31184
|
var u = s.map(function(i) {
|
|
31185
31185
|
var g = i.querySelector("code"), p = i.querySelector(".line-numbers-rows");
|
|
31186
31186
|
if (!(!g || !p)) {
|
|
31187
|
-
var
|
|
31188
|
-
|
|
31189
|
-
var l =
|
|
31190
|
-
return
|
|
31187
|
+
var o = i.querySelector(".line-numbers-sizer"), f = g.textContent.split(t2);
|
|
31188
|
+
o || (o = document.createElement("span"), o.className = "line-numbers-sizer", g.appendChild(o)), o.innerHTML = "0", o.style.display = "block";
|
|
31189
|
+
var l = o.getBoundingClientRect().height;
|
|
31190
|
+
return o.innerHTML = "", {
|
|
31191
31191
|
element: i,
|
|
31192
31192
|
lines: f,
|
|
31193
31193
|
lineHeights: [],
|
|
31194
31194
|
oneLinerHeight: l,
|
|
31195
|
-
sizer:
|
|
31195
|
+
sizer: o
|
|
31196
31196
|
};
|
|
31197
31197
|
}
|
|
31198
31198
|
}).filter(Boolean);
|
|
31199
31199
|
u.forEach(function(i) {
|
|
31200
|
-
var g = i.sizer, p = i.lines,
|
|
31201
|
-
|
|
31200
|
+
var g = i.sizer, p = i.lines, o = i.lineHeights, f = i.oneLinerHeight;
|
|
31201
|
+
o[p.length - 1] = void 0, p.forEach(function(l, w) {
|
|
31202
31202
|
if (l && l.length > 1) {
|
|
31203
31203
|
var C2 = g.appendChild(document.createElement("span"));
|
|
31204
31204
|
C2.style.display = "block", C2.textContent = l;
|
|
31205
31205
|
} else
|
|
31206
|
-
|
|
31206
|
+
o[w] = f;
|
|
31207
31207
|
});
|
|
31208
31208
|
}), u.forEach(function(i) {
|
|
31209
|
-
for (var g = i.sizer, p = i.lineHeights,
|
|
31210
|
-
p[f] === void 0 && (p[f] = g.children[
|
|
31209
|
+
for (var g = i.sizer, p = i.lineHeights, o = 0, f = 0; f < p.length; f++)
|
|
31210
|
+
p[f] === void 0 && (p[f] = g.children[o++].getBoundingClientRect().height);
|
|
31211
31211
|
}), u.forEach(function(i) {
|
|
31212
31212
|
var g = i.sizer, p = i.element.querySelector(".line-numbers-rows");
|
|
31213
|
-
g.style.display = "none", g.innerHTML = "", i.lineHeights.forEach(function(
|
|
31214
|
-
p.children[f].style.height =
|
|
31213
|
+
g.style.display = "none", g.innerHTML = "", i.lineHeights.forEach(function(o, f) {
|
|
31214
|
+
p.children[f].style.height = o + "px";
|
|
31215
31215
|
});
|
|
31216
31216
|
});
|
|
31217
31217
|
}
|
|
@@ -31233,8 +31233,8 @@ Prism.languages.webmanifest = Prism.languages.json;
|
|
|
31233
31233
|
);
|
|
31234
31234
|
if (!(!i || !/pre/i.test(i.nodeName)) && !u.querySelector(".line-numbers-rows") && Prism.util.isActive(u, a)) {
|
|
31235
31235
|
u.classList.remove(a), i.classList.add(a);
|
|
31236
|
-
var g = s.code.match(t2), p = g ? g.length + 1 : 1,
|
|
31237
|
-
|
|
31236
|
+
var g = s.code.match(t2), p = g ? g.length + 1 : 1, o, f = new Array(p + 1).join("<span></span>");
|
|
31237
|
+
o = document.createElement("span"), o.setAttribute("aria-hidden", "true"), o.className = "line-numbers-rows", o.innerHTML = f, i.hasAttribute("data-start") && (i.style.counterReset = "linenumber " + (parseInt(i.getAttribute("data-start"), 10) - 1)), s.element.appendChild(o), r2([i]), Prism.hooks.run("line-numbers", s);
|
|
31238
31238
|
}
|
|
31239
31239
|
}
|
|
31240
31240
|
}), Prism.hooks.add("line-numbers", function(s) {
|
|
@@ -31267,7 +31267,7 @@ function z(a) {
|
|
|
31267
31267
|
}
|
|
31268
31268
|
return a;
|
|
31269
31269
|
}
|
|
31270
|
-
const Ge = ["innerHTML"],
|
|
31270
|
+
const Ge = ["innerHTML"], Ot = /* @__PURE__ */ defineComponent({
|
|
31271
31271
|
__name: "ScalarCodeBlock",
|
|
31272
31272
|
props: {
|
|
31273
31273
|
content: {},
|
|
@@ -31277,16 +31277,16 @@ const Ge = ["innerHTML"], Pt = /* @__PURE__ */ defineComponent({
|
|
|
31277
31277
|
},
|
|
31278
31278
|
setup(a) {
|
|
31279
31279
|
const t2 = a, e = createHash(z(t2.content)), r2 = `components-scalar-code-block${e}`, { plugins: c, highlightElement: d } = L;
|
|
31280
|
-
t2.hideCredentials && L.hooks.add("wrap", function(
|
|
31280
|
+
t2.hideCredentials && L.hooks.add("wrap", function(o) {
|
|
31281
31281
|
if (!t2.hideCredentials)
|
|
31282
31282
|
return;
|
|
31283
31283
|
let f = false;
|
|
31284
|
-
typeof t2.hideCredentials == "string" ?
|
|
31285
|
-
(l) =>
|
|
31286
|
-
)), f && (
|
|
31284
|
+
typeof t2.hideCredentials == "string" ? o.content.includes(t2.hideCredentials) && (f = true) : Array.isArray(t2.hideCredentials) && (f = t2.hideCredentials.some(
|
|
31285
|
+
(l) => o.content.includes(l)
|
|
31286
|
+
)), f && (o.content = o.content.replace(
|
|
31287
31287
|
/<span class="credentials">.*?<\/span>/g,
|
|
31288
31288
|
(l) => l.replace(/<span class="credentials">|<\/span>/g, "")
|
|
31289
|
-
),
|
|
31289
|
+
), o.content = o.content.replace(
|
|
31290
31290
|
new RegExp(
|
|
31291
31291
|
typeof t2.hideCredentials == "string" ? t2.hideCredentials : t2.hideCredentials.join("|"),
|
|
31292
31292
|
"g"
|
|
@@ -31304,27 +31304,27 @@ const Ge = ["innerHTML"], Pt = /* @__PURE__ */ defineComponent({
|
|
|
31304
31304
|
);
|
|
31305
31305
|
const p = /\n(?!$)/g;
|
|
31306
31306
|
return onServerPrefetch(async () => {
|
|
31307
|
-
let
|
|
31307
|
+
let o = "";
|
|
31308
31308
|
t2.lineNumbers && L.hooks.add("after-tokenize", (l) => {
|
|
31309
31309
|
const w = l.code.match(p), C2 = w ? w.length + 1 : 1;
|
|
31310
|
-
|
|
31310
|
+
o = `<span aria-hidden="true" class="line-numbers-rows">${new Array(C2 + 1).join("<span></span>")}</span>`;
|
|
31311
31311
|
});
|
|
31312
31312
|
const f = L.highlight(
|
|
31313
31313
|
z(t2.content),
|
|
31314
31314
|
L.languages[i.value],
|
|
31315
31315
|
i.value
|
|
31316
31316
|
);
|
|
31317
|
-
if (u.value = f +
|
|
31317
|
+
if (u.value = f + o, e !== 0) {
|
|
31318
31318
|
const l = useSSRContext();
|
|
31319
|
-
l.payload.data[r2] = f +
|
|
31319
|
+
l.payload.data[r2] = f + o;
|
|
31320
31320
|
}
|
|
31321
31321
|
}), onMounted(async () => {
|
|
31322
31322
|
await import("./prism-autoloader-Dlh8Vzlw-BR-Zk31i.js"), c.autoloader.languages_path = "https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/";
|
|
31323
|
-
}), (
|
|
31323
|
+
}), (o, f) => (openBlock(), createElementBlock("pre", {
|
|
31324
31324
|
class: normalizeClass([
|
|
31325
31325
|
`scalar-component scalar-codeblock-pre language-${i.value}`,
|
|
31326
31326
|
{
|
|
31327
|
-
"line-numbers":
|
|
31327
|
+
"line-numbers": o.lineNumbers
|
|
31328
31328
|
}
|
|
31329
31329
|
])
|
|
31330
31330
|
}, [
|
|
@@ -31337,13 +31337,13 @@ const Ge = ["innerHTML"], Pt = /* @__PURE__ */ defineComponent({
|
|
|
31337
31337
|
ref_key: "el",
|
|
31338
31338
|
ref: s,
|
|
31339
31339
|
class: normalizeClass(`scalar-codeblock-code language-${i.value}`)
|
|
31340
|
-
}, toDisplayString(unref(z)(
|
|
31340
|
+
}, toDisplayString(unref(z)(o.content)), 3))
|
|
31341
31341
|
], 2));
|
|
31342
31342
|
}
|
|
31343
31343
|
});
|
|
31344
|
-
const
|
|
31344
|
+
const U = /* @__PURE__ */ Object.assign({ "./Add.svg": () => import("./Add-ngyZgYXx-DzyQwJvS.js"), "./Background.svg": () => import("./Background-DcRhSHgf-DMULXelH.js"), "./Brackets.svg": () => import("./Brackets-4I8OKomf-BdIXlrTs.js"), "./Branch.svg": () => import("./Branch-CXwj8YuG-IxKqRWkx.js"), "./CallToAction.svg": () => import("./CallToAction-EyQKkvbg-D5UsQ4YH.js"), "./Checkmark.svg": () => import("./Checkmark-De7nq6cG-CenVOav7.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-CW3z42qZ-CeX6s3FA.js"), "./CodeFolder.svg": () => import("./CodeFolder-Cv_igzJE-CoWfaY0Z.js"), "./Cookie.svg": () => import("./Cookie-CEHvXpqB-D960ImBy.js"), "./DarkMode.svg": () => import("./DarkMode-CBsV8Q_I-DHPfucpm.js"), "./Delete.svg": () => import("./Delete-BCZmxrDD-BHoCf_u4.js"), "./Discord.svg": () => import("./Discord-BHYOFBB2-NYBGYy-_.js"), "./DocsPage.svg": () => import("./DocsPage-rh2xwxKN-BP1Vagfm.js"), "./Duplicate.svg": () => import("./Duplicate-BPlzNpcf-DbmFK0XC.js"), "./Edit.svg": () => import("./Edit-Br04RNYb-BhCyac4t.js"), "./Ellipses.svg": () => import("./Ellipses-Bo_X36Hx-CsJmKvlE.js"), "./Error.svg": () => import("./Error-B_RGtWJI-D9KV-EvG.js"), "./ExternalLink.svg": () => import("./ExternalLink-DK8L-EH7-ANJEzoHO.js"), "./Folder.svg": () => import("./Folder-Cdcj4evh-B-g7TtzK.js"), "./GitHub.svg": () => import("./GitHub-NdE6Zs9k-BAGzgXH_.js"), "./Hide.svg": () => import("./Hide-Q3GPkIKH-40aIsLtN.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-BkvMimDa-Dk64Z-UE.js"), "./LightMode.svg": () => import("./LightMode-Btz6vyT_-JpKLPzdT.js"), "./Link.svg": () => import("./Link-Bzuc__Nc-Bvtx0HZG.js"), "./Lock.svg": () => import("./Lock-xhiH1mKz-Rrlr3fGv.js"), "./Logo.svg": () => import("./Logo-mtzeKD8M-LQcor9RM.js"), "./LogoAPI.svg": () => import("./LogoAPI-CaU5E6FK-Bzb5EbnZ.js"), "./LogoClient.svg": () => import("./LogoClient-DdC-t_7P-B_rZ91PC.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-B7rVuhpl-BUIogUij.js"), "./PaperAirplane.svg": () => import("./PaperAirplane-BC-4mGEB-BrV5fX8s.js"), "./Payment.svg": () => import("./Payment-hzcXP1Xb-B2G1p4-i.js"), "./Refresh.svg": () => import("./Refresh-Be6vHEEi-C6lRqFiM.js"), "./Search.svg": () => import("./Search-DqtlswRG-D-hprEk0.js"), "./Show.svg": () => import("./Show-D86hKz5y-CF9Pv7FS.js"), "./SideBarClosed.svg": () => import("./SideBarClosed-CYUNS2XM-CyAn6Mp2.js"), "./SideBarOpen.svg": () => import("./SideBarOpen-BOxW49_U-D5IKtkfP.js"), "./Terminal.svg": () => import("./Terminal-CKp--su5-vWaGU4_z.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-CY8UqJoE-CrwInjK9.js"), "./Upload.svg": () => import("./Upload-REIdL7RI-CsfWPmbV.js"), "./User.svg": () => import("./User-Df5svMQ3-BD7IWPQQ.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-Cv46W2aB-Dt_I9pcj.js"), "./programming-language-c.svg": () => import("./programming-language-c-hPGu2Zvg-QG1pSdJG.js"), "./programming-language-clojure.svg": () => import("./programming-language-clojure-Cvmzky8x-D6Gs-6Ol.js"), "./programming-language-csharp.svg": () => import("./programming-language-csharp-lqX1oWgb-B1_8fYG9.js"), "./programming-language-css3.svg": () => import("./programming-language-css3-Dpp4Cr6b-Bf5XF7-p.js"), "./programming-language-go.svg": () => import("./programming-language-go-DoJxWwT6-BUgfSlg1.js"), "./programming-language-html5.svg": () => import("./programming-language-html5-DlqJK4EL-Bl9dTA-D.js"), "./programming-language-http.svg": () => import("./programming-language-http-wMYwFS1I-BWQXI44M.js"), "./programming-language-java.svg": () => import("./programming-language-java-BCxG2T_w-CWqBHVz_.js"), "./programming-language-javascript.svg": () => import("./programming-language-javascript-VxLvi1QG-DFjYF_MP.js"), "./programming-language-json.svg": () => import("./programming-language-json-vEX_g7Zi-BMZrSR1t.js"), "./programming-language-kotlin.svg": () => import("./programming-language-kotlin-DKV8vP9h-C1Zi89NZ.js"), "./programming-language-node.svg": () => import("./programming-language-node-Xsgx38lm-DZhaOPIJ.js"), "./programming-language-objc.svg": () => import("./programming-language-objc-BQXSOBsX-BR-B91By.js"), "./programming-language-ocaml.svg": () => import("./programming-language-ocaml-BEz7gGv7-ip3_Zuhb.js"), "./programming-language-php.svg": () => import("./programming-language-php-GY38f8r4-DQ_8EMFH.js"), "./programming-language-powershell.svg": () => import("./programming-language-powershell-C9DkSp36-S3xix_dw.js"), "./programming-language-python.svg": () => import("./programming-language-python-Ct-_kNjo-BCrlyfv0.js"), "./programming-language-r.svg": () => import("./programming-language-r-BGoKwua9-BWGOKD9M.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-BsTa1xI7-XJbYjh7O.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-DQN1veb2-BPFALXVk.js"), "./programming-tool-git.svg": () => import("./programming-tool-git-DDnQ1zGD-Cz6Yj0wj.js"), "./programming-tool-tailwindcss.svg": () => import("./programming-tool-tailwindcss-xjXi0E6g-ky2wbsII.js") }), j = (a) => {
|
|
31345
31345
|
const t2 = `./${a}.svg`;
|
|
31346
|
-
return
|
|
31346
|
+
return U[t2] ? defineAsyncComponent(U[t2]) : (console.warn(`Could not find icon: ${a}`), null);
|
|
31347
31347
|
}, Ye = ["src"], V = /* @__PURE__ */ defineComponent({
|
|
31348
31348
|
__name: "ScalarIcon",
|
|
31349
31349
|
props: {
|
|
@@ -31367,8 +31367,8 @@ const j = /* @__PURE__ */ Object.assign({ "./Add.svg": () => import("./Add-ngyZg
|
|
|
31367
31367
|
defaultVariants: {
|
|
31368
31368
|
size: "full"
|
|
31369
31369
|
}
|
|
31370
|
-
}), r2 =
|
|
31371
|
-
return (c, d) => unref(r2) ? (openBlock(), createBlock(resolveDynamicComponent(unref(
|
|
31370
|
+
}), r2 = j(t2.icon);
|
|
31371
|
+
return (c, d) => unref(r2) ? (openBlock(), createBlock(resolveDynamicComponent(unref(j)(c.icon)), {
|
|
31372
31372
|
key: 0,
|
|
31373
31373
|
class: normalizeClass(unref(E)("scalar-icon", unref(e)({ size: c.size })))
|
|
31374
31374
|
}, null, 8, ["class"])) : (openBlock(), createElementBlock("img", {
|
|
@@ -32770,7 +32770,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
32770
32770
|
return openBlock(), createBlock(unref(_sfc_main$v), { title: "Body" }, {
|
|
32771
32771
|
default: withCtx(() => [
|
|
32772
32772
|
_ctx.active ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
32773
|
-
codeMirrorLanguage.value ? (openBlock(), createBlock(unref(
|
|
32773
|
+
codeMirrorLanguage.value ? (openBlock(), createBlock(unref(Ot), {
|
|
32774
32774
|
key: 0,
|
|
32775
32775
|
class: "custom-scroll",
|
|
32776
32776
|
content: _ctx.data,
|
|
@@ -33091,7 +33091,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
33091
33091
|
proxyUrl: {},
|
|
33092
33092
|
readOnly: { type: Boolean, default: false },
|
|
33093
33093
|
theme: {},
|
|
33094
|
-
withDefaultFonts: { type: Boolean, default: true }
|
|
33094
|
+
withDefaultFonts: { type: Boolean, default: true },
|
|
33095
|
+
showSideBar: { type: Boolean, default: false }
|
|
33095
33096
|
},
|
|
33096
33097
|
emits: ["escapeKeyPress"],
|
|
33097
33098
|
setup(__props, { emit: __emit }) {
|
|
@@ -33129,16 +33130,20 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
33129
33130
|
onKeydown: _cache[1] || (_cache[1] = withKeys(($event) => emit("escapeKeyPress"), ["esc"]))
|
|
33130
33131
|
}, {
|
|
33131
33132
|
default: withCtx(() => [
|
|
33132
|
-
|
|
33133
|
-
|
|
33134
|
-
|
|
33135
|
-
|
|
33133
|
+
createElementVNode("div", null, [
|
|
33134
|
+
renderSlot(_ctx.$slots, "address-bar-controls"),
|
|
33135
|
+
createVNode(AddressBar, {
|
|
33136
|
+
proxyUrl: _ctx.proxyUrl,
|
|
33137
|
+
onOnSend: _cache[0] || (_cache[0] = ($event) => changeTab(Tabs.Response))
|
|
33138
|
+
}, null, 8, ["proxyUrl"])
|
|
33139
|
+
]),
|
|
33136
33140
|
createElementVNode("div", _hoisted_1, [
|
|
33137
|
-
|
|
33141
|
+
_ctx.showSideBar ? renderSlot(_ctx.$slots, "sidebar", { key: 0 }) : createCommentVNode("", true),
|
|
33142
|
+
!unref(isSmallScreen) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
33138
33143
|
createVNode(unref(_sfc_main$a)),
|
|
33139
33144
|
createVNode(unref(_sfc_main$1))
|
|
33140
33145
|
], 64)) : (openBlock(), createBlock(unref(TabGroup), {
|
|
33141
|
-
key:
|
|
33146
|
+
key: 2,
|
|
33142
33147
|
selectedIndex: selectedTab.value,
|
|
33143
33148
|
onChange: changeTab
|
|
33144
33149
|
}, {
|
|
@@ -33190,7 +33195,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
33190
33195
|
}, 8, ["selectedIndex"]))
|
|
33191
33196
|
])
|
|
33192
33197
|
]),
|
|
33193
|
-
_:
|
|
33198
|
+
_: 3
|
|
33194
33199
|
}, 8, ["method"])
|
|
33195
33200
|
], 64);
|
|
33196
33201
|
};
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"rest",
|
|
19
19
|
"testing"
|
|
20
20
|
],
|
|
21
|
-
"version": "1.2.
|
|
21
|
+
"version": "1.2.19",
|
|
22
22
|
"engines": {
|
|
23
23
|
"node": ">=18"
|
|
24
24
|
},
|
|
@@ -42,11 +42,11 @@
|
|
|
42
42
|
"nanoid": "^5.0.1",
|
|
43
43
|
"pretty-bytes": "^6.1.1",
|
|
44
44
|
"pretty-ms": "^8.0.0",
|
|
45
|
-
"@scalar/
|
|
46
|
-
"@scalar/components": "0.7.3",
|
|
45
|
+
"@scalar/components": "0.7.5",
|
|
47
46
|
"@scalar/use-codemirror": "0.10.3",
|
|
48
|
-
"@scalar/
|
|
49
|
-
"@scalar/use-modal": "0.3.3"
|
|
47
|
+
"@scalar/themes": "0.7.9",
|
|
48
|
+
"@scalar/use-modal": "0.3.3",
|
|
49
|
+
"@scalar/use-tooltip": "0.6.2"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@types/content-type": "^1.1.6",
|
|
@@ -58,9 +58,9 @@
|
|
|
58
58
|
"vitest": "^1.5.0",
|
|
59
59
|
"vue": "^3.4.21",
|
|
60
60
|
"vue-tsc": "^1.8.19",
|
|
61
|
+
"@scalar/echo-server": "0.6.4",
|
|
61
62
|
"@scalar/api-client-proxy": "0.5.27",
|
|
62
|
-
"@scalar/oas-utils": "0.1.10"
|
|
63
|
-
"@scalar/echo-server": "0.6.4"
|
|
63
|
+
"@scalar/oas-utils": "0.1.10"
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|
|
66
66
|
"vue": "^3.3.0",
|