@scalar/api-client 1.2.31 → 1.2.33
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
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @scalar/api-client
|
|
2
2
|
|
|
3
|
+
## 1.2.33
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- cfba428: fix: always return html vs error rendering
|
|
8
|
+
|
|
9
|
+
## 1.2.32
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies [7205137]
|
|
14
|
+
- Updated dependencies [d369ac4]
|
|
15
|
+
- Updated dependencies [50480c7]
|
|
16
|
+
- @scalar/oas-utils@0.1.14
|
|
17
|
+
- @scalar/components@0.7.12
|
|
18
|
+
|
|
3
19
|
## 1.2.31
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResponseBody.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/ApiClient/Response/ResponseBody.vue.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"ResponseBody.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/ApiClient/Response/ResponseBody.vue.ts"],"names":[],"mappings":";eA2Ka,GAAG;;eAAH,GAAG;;AANhB,wBAQG;AACH,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"}
|
package/dist/index.js
CHANGED
|
@@ -775,12 +775,12 @@ function foldFlowLines(text, indent, mode = "flow", { indentAtStart, lineWidth =
|
|
|
775
775
|
ch = text[i += 1];
|
|
776
776
|
overflow = true;
|
|
777
777
|
}
|
|
778
|
-
const
|
|
779
|
-
if (escapedFolds[
|
|
778
|
+
const j = i > escEnd + 1 ? i - 2 : escStart - 1;
|
|
779
|
+
if (escapedFolds[j])
|
|
780
780
|
return text;
|
|
781
|
-
folds.push(
|
|
782
|
-
escapedFolds[
|
|
783
|
-
end =
|
|
781
|
+
folds.push(j);
|
|
782
|
+
escapedFolds[j] = true;
|
|
783
|
+
end = j + endStep;
|
|
784
784
|
split = void 0;
|
|
785
785
|
} else {
|
|
786
786
|
overflow = true;
|
|
@@ -1966,6 +1966,9 @@ const isJsonString = (value) => {
|
|
|
1966
1966
|
return !!json$1.parseSafe(value, false);
|
|
1967
1967
|
};
|
|
1968
1968
|
function normalizeMimeType(contentType) {
|
|
1969
|
+
if (typeof contentType !== "string") {
|
|
1970
|
+
return void 0;
|
|
1971
|
+
}
|
|
1969
1972
|
return contentType.replace(/;.*$/, "").replace(/\/.+\+/, "/").trim();
|
|
1970
1973
|
}
|
|
1971
1974
|
const httpStatusCodes = {
|
|
@@ -5263,8 +5266,8 @@ class EditorState {
|
|
|
5263
5266
|
for (let i = 1; i < sel.ranges.length; i++) {
|
|
5264
5267
|
let result = f(sel.ranges[i]);
|
|
5265
5268
|
let newChanges = this.changes(result.changes), newMapped = newChanges.map(changes);
|
|
5266
|
-
for (let
|
|
5267
|
-
ranges[
|
|
5269
|
+
for (let j = 0; j < i; j++)
|
|
5270
|
+
ranges[j] = ranges[j].map(newMapped);
|
|
5268
5271
|
let mapBy = changes.mapDesc(newChanges, true);
|
|
5269
5272
|
ranges.push(result.range.map(mapBy));
|
|
5270
5273
|
changes = changes.compose(newMapped);
|
|
@@ -6402,24 +6405,24 @@ class StyleSet {
|
|
|
6402
6405
|
}
|
|
6403
6406
|
mount(modules) {
|
|
6404
6407
|
let sheet = this.sheet;
|
|
6405
|
-
let pos = 0,
|
|
6408
|
+
let pos = 0, j = 0;
|
|
6406
6409
|
for (let i = 0; i < modules.length; i++) {
|
|
6407
6410
|
let mod = modules[i], index = this.modules.indexOf(mod);
|
|
6408
|
-
if (index <
|
|
6411
|
+
if (index < j && index > -1) {
|
|
6409
6412
|
this.modules.splice(index, 1);
|
|
6410
|
-
|
|
6413
|
+
j--;
|
|
6411
6414
|
index = -1;
|
|
6412
6415
|
}
|
|
6413
6416
|
if (index == -1) {
|
|
6414
|
-
this.modules.splice(
|
|
6417
|
+
this.modules.splice(j++, 0, mod);
|
|
6415
6418
|
if (sheet)
|
|
6416
6419
|
for (let k = 0; k < mod.rules.length; k++)
|
|
6417
6420
|
sheet.insertRule(mod.rules[k], pos++);
|
|
6418
6421
|
} else {
|
|
6419
|
-
while (
|
|
6420
|
-
pos += this.modules[
|
|
6422
|
+
while (j < index)
|
|
6423
|
+
pos += this.modules[j++].rules.length;
|
|
6421
6424
|
pos += mod.rules.length;
|
|
6422
|
-
|
|
6425
|
+
j++;
|
|
6423
6426
|
}
|
|
6424
6427
|
}
|
|
6425
6428
|
if (sheet) {
|
|
@@ -7521,13 +7524,13 @@ function inlineDOMAtPos(parent, pos) {
|
|
|
7521
7524
|
break;
|
|
7522
7525
|
off = end;
|
|
7523
7526
|
}
|
|
7524
|
-
for (let
|
|
7525
|
-
let prev = children[
|
|
7527
|
+
for (let j = i; j > 0; j--) {
|
|
7528
|
+
let prev = children[j - 1];
|
|
7526
7529
|
if (prev.dom.parentNode == dom)
|
|
7527
7530
|
return prev.domAtPos(prev.length);
|
|
7528
7531
|
}
|
|
7529
|
-
for (let
|
|
7530
|
-
let next = children[
|
|
7532
|
+
for (let j = i; j < children.length; j++) {
|
|
7533
|
+
let next = children[j];
|
|
7531
7534
|
if (next.dom.parentNode == dom)
|
|
7532
7535
|
return next.domAtPos(0);
|
|
7533
7536
|
}
|
|
@@ -7668,8 +7671,8 @@ class LineView extends ContentView {
|
|
|
7668
7671
|
this.children[i].merge(off, this.children[i].length, null, false, 0, 0);
|
|
7669
7672
|
i++;
|
|
7670
7673
|
}
|
|
7671
|
-
for (let
|
|
7672
|
-
end.append(this.children[
|
|
7674
|
+
for (let j = i; j < this.children.length; j++)
|
|
7675
|
+
end.append(this.children[j], 0);
|
|
7673
7676
|
while (i > 0 && this.children[i - 1].length == 0)
|
|
7674
7677
|
this.children[--i].destroy();
|
|
7675
7678
|
this.children.length = i;
|
|
@@ -8399,8 +8402,8 @@ function computeCharTypes(line, rFrom, rTo, isolates, outerType) {
|
|
|
8399
8402
|
while (end < to && types[end] == 64)
|
|
8400
8403
|
end++;
|
|
8401
8404
|
let replace = i && prev == 8 || end < rTo && types[end] == 8 ? prevStrong == 1 ? 1 : 8 : 256;
|
|
8402
|
-
for (let
|
|
8403
|
-
types[
|
|
8405
|
+
for (let j = i; j < end; j++)
|
|
8406
|
+
types[j] = replace;
|
|
8404
8407
|
i = end - 1;
|
|
8405
8408
|
} else if (type == 8 && prevStrong == 1) {
|
|
8406
8409
|
types[i] = 1;
|
|
@@ -8476,12 +8479,12 @@ function processNeutrals(rFrom, rTo, isolates, outerType) {
|
|
|
8476
8479
|
let beforeL = prev == 1;
|
|
8477
8480
|
let afterL = (end < rTo ? types[end] : outerType) == 1;
|
|
8478
8481
|
let replace = beforeL == afterL ? beforeL ? 1 : 2 : outerType;
|
|
8479
|
-
for (let
|
|
8480
|
-
if (
|
|
8481
|
-
|
|
8482
|
+
for (let j = end, jI = iI, fromJ = jI ? isolates[jI - 1].to : rFrom; j > i; ) {
|
|
8483
|
+
if (j == fromJ) {
|
|
8484
|
+
j = isolates[--jI].from;
|
|
8482
8485
|
fromJ = jI ? isolates[jI - 1].to : rFrom;
|
|
8483
8486
|
}
|
|
8484
|
-
types[--
|
|
8487
|
+
types[--j] = replace;
|
|
8485
8488
|
}
|
|
8486
8489
|
i = end;
|
|
8487
8490
|
} else {
|
|
@@ -9661,8 +9664,8 @@ function domPosInText(node, x, y) {
|
|
|
9661
9664
|
let closestOffset = -1, closestDY = 1e9, generalSide = 0;
|
|
9662
9665
|
for (let i = 0; i < len; i++) {
|
|
9663
9666
|
let rects = textRange(node, i, i + 1).getClientRects();
|
|
9664
|
-
for (let
|
|
9665
|
-
let rect = rects[
|
|
9667
|
+
for (let j = 0; j < rects.length; j++) {
|
|
9668
|
+
let rect = rects[j];
|
|
9666
9669
|
if (rect.top == rect.bottom)
|
|
9667
9670
|
continue;
|
|
9668
9671
|
if (!generalSide)
|
|
@@ -10824,24 +10827,24 @@ class HeightMap {
|
|
|
10824
10827
|
static of(nodes) {
|
|
10825
10828
|
if (nodes.length == 1)
|
|
10826
10829
|
return nodes[0];
|
|
10827
|
-
let i = 0,
|
|
10830
|
+
let i = 0, j = nodes.length, before = 0, after = 0;
|
|
10828
10831
|
for (; ; ) {
|
|
10829
|
-
if (i ==
|
|
10832
|
+
if (i == j) {
|
|
10830
10833
|
if (before > after * 2) {
|
|
10831
10834
|
let split = nodes[i - 1];
|
|
10832
10835
|
if (split.break)
|
|
10833
10836
|
nodes.splice(--i, 1, split.left, null, split.right);
|
|
10834
10837
|
else
|
|
10835
10838
|
nodes.splice(--i, 1, split.left, split.right);
|
|
10836
|
-
|
|
10839
|
+
j += 1 + split.break;
|
|
10837
10840
|
before -= split.size;
|
|
10838
10841
|
} else if (after > before * 2) {
|
|
10839
|
-
let split = nodes[
|
|
10842
|
+
let split = nodes[j];
|
|
10840
10843
|
if (split.break)
|
|
10841
|
-
nodes.splice(
|
|
10844
|
+
nodes.splice(j, 1, split.left, null, split.right);
|
|
10842
10845
|
else
|
|
10843
|
-
nodes.splice(
|
|
10844
|
-
|
|
10846
|
+
nodes.splice(j, 1, split.left, split.right);
|
|
10847
|
+
j += 2 + split.break;
|
|
10845
10848
|
after -= split.size;
|
|
10846
10849
|
} else {
|
|
10847
10850
|
break;
|
|
@@ -10851,7 +10854,7 @@ class HeightMap {
|
|
|
10851
10854
|
if (next)
|
|
10852
10855
|
before += next.size;
|
|
10853
10856
|
} else {
|
|
10854
|
-
let next = nodes[--
|
|
10857
|
+
let next = nodes[--j];
|
|
10855
10858
|
if (next)
|
|
10856
10859
|
after += next.size;
|
|
10857
10860
|
}
|
|
@@ -10862,9 +10865,9 @@ class HeightMap {
|
|
|
10862
10865
|
i--;
|
|
10863
10866
|
} else if (nodes[i] == null) {
|
|
10864
10867
|
brk = 1;
|
|
10865
|
-
|
|
10868
|
+
j++;
|
|
10866
10869
|
}
|
|
10867
|
-
return new HeightMapBranch(HeightMap.of(nodes.slice(0, i)), brk, HeightMap.of(nodes.slice(
|
|
10870
|
+
return new HeightMapBranch(HeightMap.of(nodes.slice(0, i)), brk, HeightMap.of(nodes.slice(j)));
|
|
10868
10871
|
}
|
|
10869
10872
|
}
|
|
10870
10873
|
HeightMap.prototype.size = 1;
|
|
@@ -15465,11 +15468,11 @@ class TreeBuffer {
|
|
|
15465
15468
|
slice(startI, endI, from) {
|
|
15466
15469
|
let b = this.buffer;
|
|
15467
15470
|
let copy = new Uint16Array(endI - startI), len = 0;
|
|
15468
|
-
for (let i = startI,
|
|
15469
|
-
copy[
|
|
15470
|
-
copy[
|
|
15471
|
-
let to = copy[
|
|
15472
|
-
copy[
|
|
15471
|
+
for (let i = startI, j = 0; i < endI; ) {
|
|
15472
|
+
copy[j++] = b[i++];
|
|
15473
|
+
copy[j++] = b[i++] - from;
|
|
15474
|
+
let to = copy[j++] = b[i++] - from;
|
|
15475
|
+
copy[j++] = b[i++] - startI;
|
|
15473
15476
|
len = Math.max(len, to);
|
|
15474
15477
|
}
|
|
15475
15478
|
return new TreeBuffer(copy, len, this.set);
|
|
@@ -16321,11 +16324,11 @@ function buildTree(data) {
|
|
|
16321
16324
|
if (nodeCount) {
|
|
16322
16325
|
let buffer2 = new Uint16Array(nodeCount * 4);
|
|
16323
16326
|
let start = nodes[nodes.length - 2];
|
|
16324
|
-
for (let i = nodes.length - 3,
|
|
16325
|
-
buffer2[
|
|
16326
|
-
buffer2[
|
|
16327
|
-
buffer2[
|
|
16328
|
-
buffer2[
|
|
16327
|
+
for (let i = nodes.length - 3, j = 0; i >= 0; i -= 3) {
|
|
16328
|
+
buffer2[j++] = nodes[i];
|
|
16329
|
+
buffer2[j++] = nodes[i + 1] - start;
|
|
16330
|
+
buffer2[j++] = nodes[i + 2] - start;
|
|
16331
|
+
buffer2[j++] = j;
|
|
16329
16332
|
}
|
|
16330
16333
|
children2.push(new TreeBuffer(buffer2, nodes[2] - start, nodeSet));
|
|
16331
16334
|
positions2.push(start - parentStart);
|
|
@@ -16949,10 +16952,10 @@ let FragmentCursor$1 = class FragmentCursor {
|
|
|
16949
16952
|
};
|
|
16950
16953
|
function punchRanges(outer, ranges) {
|
|
16951
16954
|
let copy = null, current = ranges;
|
|
16952
|
-
for (let i = 1,
|
|
16955
|
+
for (let i = 1, j = 0; i < outer.length; i++) {
|
|
16953
16956
|
let gapFrom = outer[i - 1].to, gapTo = outer[i].from;
|
|
16954
|
-
for (;
|
|
16955
|
-
let r2 = current[
|
|
16957
|
+
for (; j < current.length; j++) {
|
|
16958
|
+
let r2 = current[j];
|
|
16956
16959
|
if (r2.from >= gapTo)
|
|
16957
16960
|
break;
|
|
16958
16961
|
if (r2.to <= gapFrom)
|
|
@@ -16960,13 +16963,13 @@ function punchRanges(outer, ranges) {
|
|
|
16960
16963
|
if (!copy)
|
|
16961
16964
|
current = copy = ranges.slice();
|
|
16962
16965
|
if (r2.from < gapFrom) {
|
|
16963
|
-
copy[
|
|
16966
|
+
copy[j] = new Range2(r2.from, gapFrom);
|
|
16964
16967
|
if (r2.to > gapTo)
|
|
16965
|
-
copy.splice(
|
|
16968
|
+
copy.splice(j + 1, 0, new Range2(gapTo, r2.to));
|
|
16966
16969
|
} else if (r2.to > gapTo) {
|
|
16967
|
-
copy[
|
|
16970
|
+
copy[j--] = new Range2(gapTo, r2.to);
|
|
16968
16971
|
} else {
|
|
16969
|
-
copy.splice(
|
|
16972
|
+
copy.splice(j--, 1);
|
|
16970
16973
|
}
|
|
16971
16974
|
}
|
|
16972
16975
|
}
|
|
@@ -17105,8 +17108,8 @@ function sameArray(a, b) {
|
|
|
17105
17108
|
function powerSet(array) {
|
|
17106
17109
|
let sets = [[]];
|
|
17107
17110
|
for (let i = 0; i < array.length; i++) {
|
|
17108
|
-
for (let
|
|
17109
|
-
sets.push(sets[
|
|
17111
|
+
for (let j = 0, e = sets.length; j < e; j++) {
|
|
17112
|
+
sets.push(sets[j].concat(array[i]));
|
|
17110
17113
|
}
|
|
17111
17114
|
}
|
|
17112
17115
|
return sets.sort((a, b) => b.length - a.length);
|
|
@@ -19251,8 +19254,8 @@ function optionContent(config2) {
|
|
|
19251
19254
|
let labelElt = document.createElement("span");
|
|
19252
19255
|
labelElt.className = "cm-completionLabel";
|
|
19253
19256
|
let label = completion.displayLabel || completion.label, off = 0;
|
|
19254
|
-
for (let
|
|
19255
|
-
let from = match[
|
|
19257
|
+
for (let j = 0; j < match.length; ) {
|
|
19258
|
+
let from = match[j++], to = match[j++];
|
|
19256
19259
|
if (from > off)
|
|
19257
19260
|
labelElt.appendChild(document.createTextNode(label.slice(off, from)));
|
|
19258
19261
|
let span = labelElt.appendChild(document.createElement("span"));
|
|
@@ -21874,11 +21877,11 @@ class Parse {
|
|
|
21874
21877
|
outer:
|
|
21875
21878
|
for (let i = 0; i < newStacks.length - 1; i++) {
|
|
21876
21879
|
let stack = newStacks[i];
|
|
21877
|
-
for (let
|
|
21878
|
-
let other = newStacks[
|
|
21880
|
+
for (let j = i + 1; j < newStacks.length; j++) {
|
|
21881
|
+
let other = newStacks[j];
|
|
21879
21882
|
if (stack.sameState(other) || stack.buffer.length > 500 && other.buffer.length > 500) {
|
|
21880
21883
|
if ((stack.score - other.score || stack.buffer.length - other.buffer.length) > 0) {
|
|
21881
|
-
newStacks.splice(
|
|
21884
|
+
newStacks.splice(j--, 1);
|
|
21882
21885
|
} else {
|
|
21883
21886
|
newStacks.splice(i--, 1);
|
|
21884
21887
|
continue outer;
|
|
@@ -22002,7 +22005,7 @@ class Parse {
|
|
|
22002
22005
|
continue;
|
|
22003
22006
|
}
|
|
22004
22007
|
let force = stack.split(), forceBase = base2;
|
|
22005
|
-
for (let
|
|
22008
|
+
for (let j = 0; force.forceReduce() && j < 10; j++) {
|
|
22006
22009
|
if (verbose)
|
|
22007
22010
|
console.log(forceBase + this.stackID(force) + " (via force-reduce)");
|
|
22008
22011
|
let done = this.advanceFully(force, newStacks);
|
|
@@ -22118,7 +22121,7 @@ class LRParser extends Parser {
|
|
|
22118
22121
|
setProp(next, prop, propSpec[i++]);
|
|
22119
22122
|
} else {
|
|
22120
22123
|
let value = propSpec[i + -next];
|
|
22121
|
-
for (let
|
|
22124
|
+
for (let j = -next; j > 0; j--)
|
|
22122
22125
|
setProp(propSpec[i++], prop, value);
|
|
22123
22126
|
i++;
|
|
22124
22127
|
}
|
|
@@ -22372,7 +22375,7 @@ class LRParser extends Parser {
|
|
|
22372
22375
|
let disabled = null;
|
|
22373
22376
|
for (let i = 0; i < values2.length; i++)
|
|
22374
22377
|
if (!flags[i]) {
|
|
22375
|
-
for (let
|
|
22378
|
+
for (let j = this.dialects[values2[i]], id2; (id2 = this.data[j++]) != 65535; )
|
|
22376
22379
|
(disabled || (disabled = new Uint8Array(this.maxTerm + 1)))[id2] = 1;
|
|
22377
22380
|
}
|
|
22378
22381
|
return new Dialect(dialect, flags, disabled);
|
|
@@ -30033,11 +30036,11 @@ var prism = { exports: {} };
|
|
|
30033
30036
|
}
|
|
30034
30037
|
var patterns = grammar[token];
|
|
30035
30038
|
patterns = Array.isArray(patterns) ? patterns : [patterns];
|
|
30036
|
-
for (var
|
|
30037
|
-
if (rematch && rematch.cause == token + "," +
|
|
30039
|
+
for (var j = 0; j < patterns.length; ++j) {
|
|
30040
|
+
if (rematch && rematch.cause == token + "," + j) {
|
|
30038
30041
|
return;
|
|
30039
30042
|
}
|
|
30040
|
-
var patternObj = patterns[
|
|
30043
|
+
var patternObj = patterns[j];
|
|
30041
30044
|
var inside2 = patternObj.inside;
|
|
30042
30045
|
var lookbehind = !!patternObj.lookbehind;
|
|
30043
30046
|
var greedy = !!patternObj.greedy;
|
|
@@ -30112,7 +30115,7 @@ var prism = { exports: {} };
|
|
|
30112
30115
|
}
|
|
30113
30116
|
if (removeCount > 1) {
|
|
30114
30117
|
var nestedRematch = {
|
|
30115
|
-
cause: token + "," +
|
|
30118
|
+
cause: token + "," + j,
|
|
30116
30119
|
reach
|
|
30117
30120
|
};
|
|
30118
30121
|
matchGrammar(text, tokenList, grammar, currentNode.prev, pos, nestedRematch);
|
|
@@ -30761,17 +30764,17 @@ var prism = { exports: {} };
|
|
|
30761
30764
|
})(prism);
|
|
30762
30765
|
var prismExports = prism.exports;
|
|
30763
30766
|
const R = /* @__PURE__ */ getDefaultExportFromCjs(prismExports);
|
|
30764
|
-
const
|
|
30767
|
+
const B = "scalar-component", Te = extendTailwindMerge({
|
|
30765
30768
|
extend: {
|
|
30766
30769
|
classGroups: {
|
|
30767
30770
|
"font-size": ["text-xxs"],
|
|
30768
30771
|
// Add the scalar class prefix as a custom class to be deduped by tailwind-merge
|
|
30769
|
-
[
|
|
30772
|
+
[B]: [B]
|
|
30770
30773
|
}
|
|
30771
30774
|
}
|
|
30772
|
-
}), { cva: L, cx: E, compose:
|
|
30775
|
+
}), { cva: L, cx: E, compose: Lt } = defineConfig({
|
|
30773
30776
|
hooks: {
|
|
30774
|
-
onComplete: (a) => `${Te(a,
|
|
30777
|
+
onComplete: (a) => `${Te(a, B)}`
|
|
30775
30778
|
}
|
|
30776
30779
|
}), Le = /* @__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), Re = {
|
|
30777
30780
|
key: 0,
|
|
@@ -30815,12 +30818,12 @@ const ze = /* @__PURE__ */ defineComponent({
|
|
|
30815
30818
|
], 2))
|
|
30816
30819
|
], 2)) : createCommentVNode("", true);
|
|
30817
30820
|
}
|
|
30818
|
-
}),
|
|
30821
|
+
}), O = (a, t2) => {
|
|
30819
30822
|
const e = a.__vccOpts || a;
|
|
30820
30823
|
for (const [r2, d] of t2)
|
|
30821
30824
|
e[r2] = d;
|
|
30822
30825
|
return e;
|
|
30823
|
-
},
|
|
30826
|
+
}, M = /* @__PURE__ */ O(ze, [["__scopeId", "data-v-47faceda"]]), J = {
|
|
30824
30827
|
solid: [
|
|
30825
30828
|
"scalar-button-solid",
|
|
30826
30829
|
"bg-back-btn-1 text-fore-btn-1 shadow-sm active:bg-back-btn-1 active:shadow-none hocus:bg-hover-btn-1"
|
|
@@ -30845,7 +30848,7 @@ const ze = /* @__PURE__ */ defineComponent({
|
|
|
30845
30848
|
},
|
|
30846
30849
|
fullWidth: { true: "w-full" },
|
|
30847
30850
|
size: { sm: "px-2 py-1 text-xs", md: "h-10 px-6 text-sm" },
|
|
30848
|
-
variant:
|
|
30851
|
+
variant: J
|
|
30849
30852
|
},
|
|
30850
30853
|
compoundVariants: [
|
|
30851
30854
|
{
|
|
@@ -30854,7 +30857,7 @@ const ze = /* @__PURE__ */ defineComponent({
|
|
|
30854
30857
|
class: "bg-transparent text-ghost"
|
|
30855
30858
|
}
|
|
30856
30859
|
]
|
|
30857
|
-
}), Pe = ["ariaDisabled"], Oe = {
|
|
30860
|
+
}), Pe = ["ariaDisabled", "type"], Oe = {
|
|
30858
30861
|
key: 0,
|
|
30859
30862
|
class: "mr-2 h-4 w-4"
|
|
30860
30863
|
}, Be = {
|
|
@@ -30868,7 +30871,8 @@ const ze = /* @__PURE__ */ defineComponent({
|
|
|
30868
30871
|
fullWidth: { type: Boolean, default: false },
|
|
30869
30872
|
loading: {},
|
|
30870
30873
|
size: { default: "md" },
|
|
30871
|
-
variant: { default: "solid" }
|
|
30874
|
+
variant: { default: "solid" },
|
|
30875
|
+
type: { default: "button" }
|
|
30872
30876
|
},
|
|
30873
30877
|
setup(a) {
|
|
30874
30878
|
const t2 = computed(() => {
|
|
@@ -30882,14 +30886,14 @@ const ze = /* @__PURE__ */ defineComponent({
|
|
|
30882
30886
|
{ "pl-9 pr-3": e.loading },
|
|
30883
30887
|
`${t2.value.class}`
|
|
30884
30888
|
),
|
|
30885
|
-
type:
|
|
30889
|
+
type: e.type
|
|
30886
30890
|
}), [
|
|
30887
30891
|
e.$slots.icon ? (openBlock(), createElementBlock("div", Oe, [
|
|
30888
30892
|
renderSlot(e.$slots, "icon")
|
|
30889
30893
|
])) : createCommentVNode("", true),
|
|
30890
30894
|
renderSlot(e.$slots, "default"),
|
|
30891
30895
|
e.loading ? (openBlock(), createElementBlock("div", Be, [
|
|
30892
|
-
createVNode(unref(
|
|
30896
|
+
createVNode(unref(M), {
|
|
30893
30897
|
loadingState: e.loading,
|
|
30894
30898
|
size: "20px"
|
|
30895
30899
|
}, null, 8, ["loadingState"])
|
|
@@ -31152,13 +31156,13 @@ Prism.languages.webmanifest = Prism.languages.json;
|
|
|
31152
31156
|
* @param {number} number line number
|
|
31153
31157
|
* @returns {Element|undefined}
|
|
31154
31158
|
*/
|
|
31155
|
-
getLine: function(s,
|
|
31159
|
+
getLine: function(s, p) {
|
|
31156
31160
|
if (!(s.tagName !== "PRE" || !s.classList.contains(a))) {
|
|
31157
31161
|
var i = s.querySelector(".line-numbers-rows");
|
|
31158
31162
|
if (i) {
|
|
31159
|
-
var g = parseInt(s.getAttribute("data-start"), 10) || 1,
|
|
31160
|
-
|
|
31161
|
-
var o =
|
|
31163
|
+
var g = parseInt(s.getAttribute("data-start"), 10) || 1, u = g + (i.children.length - 1);
|
|
31164
|
+
p < g && (p = g), p > u && (p = u);
|
|
31165
|
+
var o = p - g;
|
|
31162
31166
|
return i.children[o];
|
|
31163
31167
|
}
|
|
31164
31168
|
}
|
|
@@ -31188,12 +31192,12 @@ Prism.languages.webmanifest = Prism.languages.json;
|
|
|
31188
31192
|
};
|
|
31189
31193
|
function r2(s) {
|
|
31190
31194
|
if (s = s.filter(function(i) {
|
|
31191
|
-
var g = d(i),
|
|
31192
|
-
return
|
|
31195
|
+
var g = d(i), u = g["white-space"];
|
|
31196
|
+
return u === "pre-wrap" || u === "pre-line";
|
|
31193
31197
|
}), s.length != 0) {
|
|
31194
|
-
var
|
|
31195
|
-
var g = i.querySelector("code"),
|
|
31196
|
-
if (!(!g || !
|
|
31198
|
+
var p = s.map(function(i) {
|
|
31199
|
+
var g = i.querySelector("code"), u = i.querySelector(".line-numbers-rows");
|
|
31200
|
+
if (!(!g || !u)) {
|
|
31197
31201
|
var o = i.querySelector(".line-numbers-sizer"), f = g.textContent.split(t2);
|
|
31198
31202
|
o || (o = document.createElement("span"), o.className = "line-numbers-sizer", g.appendChild(o)), o.innerHTML = "0", o.style.display = "block";
|
|
31199
31203
|
var l = o.getBoundingClientRect().height;
|
|
@@ -31206,22 +31210,22 @@ Prism.languages.webmanifest = Prism.languages.json;
|
|
|
31206
31210
|
};
|
|
31207
31211
|
}
|
|
31208
31212
|
}).filter(Boolean);
|
|
31209
|
-
|
|
31210
|
-
var g = i.sizer,
|
|
31211
|
-
o[
|
|
31213
|
+
p.forEach(function(i) {
|
|
31214
|
+
var g = i.sizer, u = i.lines, o = i.lineHeights, f = i.oneLinerHeight;
|
|
31215
|
+
o[u.length - 1] = void 0, u.forEach(function(l, k) {
|
|
31212
31216
|
if (l && l.length > 1) {
|
|
31213
31217
|
var C2 = g.appendChild(document.createElement("span"));
|
|
31214
31218
|
C2.style.display = "block", C2.textContent = l;
|
|
31215
31219
|
} else
|
|
31216
31220
|
o[k] = f;
|
|
31217
31221
|
});
|
|
31218
|
-
}),
|
|
31219
|
-
for (var g = i.sizer,
|
|
31220
|
-
|
|
31221
|
-
}),
|
|
31222
|
-
var g = i.sizer,
|
|
31222
|
+
}), p.forEach(function(i) {
|
|
31223
|
+
for (var g = i.sizer, u = i.lineHeights, o = 0, f = 0; f < u.length; f++)
|
|
31224
|
+
u[f] === void 0 && (u[f] = g.children[o++].getBoundingClientRect().height);
|
|
31225
|
+
}), p.forEach(function(i) {
|
|
31226
|
+
var g = i.sizer, u = i.element.querySelector(".line-numbers-rows");
|
|
31223
31227
|
g.style.display = "none", g.innerHTML = "", i.lineHeights.forEach(function(o, f) {
|
|
31224
|
-
|
|
31228
|
+
u.children[f].style.height = o + "px";
|
|
31225
31229
|
});
|
|
31226
31230
|
});
|
|
31227
31231
|
}
|
|
@@ -31234,16 +31238,16 @@ Prism.languages.webmanifest = Prism.languages.json;
|
|
|
31234
31238
|
e.assumeViewportIndependence && c === window.innerWidth || (c = window.innerWidth, r2(Array.prototype.slice.call(document.querySelectorAll("pre." + a))));
|
|
31235
31239
|
}), Prism.hooks.add("complete", function(s) {
|
|
31236
31240
|
if (s.code) {
|
|
31237
|
-
var
|
|
31241
|
+
var p = (
|
|
31238
31242
|
/** @type {Element} */
|
|
31239
31243
|
s.element
|
|
31240
31244
|
), i = (
|
|
31241
31245
|
/** @type {HTMLElement} */
|
|
31242
|
-
|
|
31246
|
+
p.parentNode
|
|
31243
31247
|
);
|
|
31244
|
-
if (!(!i || !/pre/i.test(i.nodeName)) && !
|
|
31245
|
-
|
|
31246
|
-
var g = s.code.match(t2),
|
|
31248
|
+
if (!(!i || !/pre/i.test(i.nodeName)) && !p.querySelector(".line-numbers-rows") && Prism.util.isActive(p, a)) {
|
|
31249
|
+
p.classList.remove(a), i.classList.add(a);
|
|
31250
|
+
var g = s.code.match(t2), u = g ? g.length + 1 : 1, o, f = new Array(u + 1).join("<span></span>");
|
|
31247
31251
|
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);
|
|
31248
31252
|
}
|
|
31249
31253
|
}
|
|
@@ -31266,7 +31270,7 @@ function He(a) {
|
|
|
31266
31270
|
2
|
|
31267
31271
|
);
|
|
31268
31272
|
}
|
|
31269
|
-
function
|
|
31273
|
+
function P(a) {
|
|
31270
31274
|
if (typeof a == "string")
|
|
31271
31275
|
return a;
|
|
31272
31276
|
if (typeof a == "object")
|
|
@@ -31277,7 +31281,7 @@ function O(a) {
|
|
|
31277
31281
|
}
|
|
31278
31282
|
return a;
|
|
31279
31283
|
}
|
|
31280
|
-
const Ge = ["innerHTML"],
|
|
31284
|
+
const Ge = ["innerHTML"], zt = /* @__PURE__ */ defineComponent({
|
|
31281
31285
|
__name: "ScalarCodeBlock",
|
|
31282
31286
|
props: {
|
|
31283
31287
|
content: {},
|
|
@@ -31286,7 +31290,7 @@ const Ge = ["innerHTML"], Pt = /* @__PURE__ */ defineComponent({
|
|
|
31286
31290
|
hideCredentials: {}
|
|
31287
31291
|
},
|
|
31288
31292
|
setup(a) {
|
|
31289
|
-
const t2 = a, e = createHash(
|
|
31293
|
+
const t2 = a, e = createHash(P(t2.content)), r2 = `components-scalar-code-block${e}`, { plugins: d, highlightElement: c } = R;
|
|
31290
31294
|
t2.hideCredentials && R.hooks.add("wrap", function(o) {
|
|
31291
31295
|
if (!t2.hideCredentials)
|
|
31292
31296
|
return;
|
|
@@ -31304,27 +31308,27 @@ const Ge = ["innerHTML"], Pt = /* @__PURE__ */ defineComponent({
|
|
|
31304
31308
|
(l) => `<span class="credentials">${l}</span>`
|
|
31305
31309
|
));
|
|
31306
31310
|
});
|
|
31307
|
-
const s = ref(null),
|
|
31311
|
+
const s = ref(null), p = ref(ssrState[r2] ?? ""), i = computed(() => t2.lang === "node" ? "js" : t2.lang), g = t2.lang;
|
|
31308
31312
|
watch(
|
|
31309
31313
|
[() => t2.lang, () => t2.content, s],
|
|
31310
31314
|
() => {
|
|
31311
|
-
s.value && t2.content && (!
|
|
31315
|
+
s.value && t2.content && (!p.value || t2.lang !== g) && (p.value = "", nextTick(() => c(s.value)));
|
|
31312
31316
|
},
|
|
31313
31317
|
{ immediate: true }
|
|
31314
31318
|
);
|
|
31315
|
-
const
|
|
31319
|
+
const u = /\n(?!$)/g;
|
|
31316
31320
|
return onServerPrefetch(async () => {
|
|
31317
31321
|
let o = "";
|
|
31318
31322
|
t2.lineNumbers && R.hooks.add("after-tokenize", (l) => {
|
|
31319
|
-
const k = l.code.match(
|
|
31323
|
+
const k = l.code.match(u), C2 = k ? k.length + 1 : 1;
|
|
31320
31324
|
o = `<span aria-hidden="true" class="line-numbers-rows">${new Array(C2 + 1).join("<span></span>")}</span>`;
|
|
31321
31325
|
});
|
|
31322
31326
|
const f = R.highlight(
|
|
31323
|
-
|
|
31327
|
+
P(t2.content),
|
|
31324
31328
|
R.languages[i.value],
|
|
31325
31329
|
i.value
|
|
31326
31330
|
);
|
|
31327
|
-
if (
|
|
31331
|
+
if (p.value = f + o, e !== 0) {
|
|
31328
31332
|
const l = useSSRContext();
|
|
31329
31333
|
l.payload.data[r2] = f + o;
|
|
31330
31334
|
}
|
|
@@ -31338,23 +31342,23 @@ const Ge = ["innerHTML"], Pt = /* @__PURE__ */ defineComponent({
|
|
|
31338
31342
|
}
|
|
31339
31343
|
])
|
|
31340
31344
|
}, [
|
|
31341
|
-
|
|
31345
|
+
p.value ? (openBlock(), createElementBlock("code", {
|
|
31342
31346
|
key: 0,
|
|
31343
31347
|
class: normalizeClass(`scalar-codeblock-code language-${i.value}`),
|
|
31344
|
-
innerHTML: unref(
|
|
31348
|
+
innerHTML: unref(P)(p.value)
|
|
31345
31349
|
}, null, 10, Ge)) : (openBlock(), createElementBlock("code", {
|
|
31346
31350
|
key: 1,
|
|
31347
31351
|
ref_key: "el",
|
|
31348
31352
|
ref: s,
|
|
31349
31353
|
class: normalizeClass(`scalar-codeblock-code language-${i.value}`)
|
|
31350
|
-
}, toDisplayString(unref(
|
|
31354
|
+
}, toDisplayString(unref(P)(o.content)), 3))
|
|
31351
31355
|
], 2));
|
|
31352
31356
|
}
|
|
31353
31357
|
});
|
|
31354
|
-
const
|
|
31358
|
+
const F = /* @__PURE__ */ Object.assign({ "./Add.svg": () => import("./Add-ngyZgYXx-DzyQwJvS.js"), "./ArrowLeft.svg": () => import("./ArrowLeft-aY17W2aS-DFSAtOMh.js"), "./ArrowRight.svg": () => import("./ArrowRight-DEMtdoE7-D3Vz1S5q.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"), "./FilterList.svg": () => import("./FilterList-CsAcE9em-aybThY1V.js"), "./Folder.svg": () => import("./Folder-Cdcj4evh-B-g7TtzK.js"), "./GitHub.svg": () => import("./GitHub-NdE6Zs9k-BAGzgXH_.js"), "./Hide.svg": () => import("./Hide-Q3GPkIKH-40aIsLtN.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-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"), "./Play.svg": () => import("./Play-BrVagRQA-DBrajcXb.js"), "./Refresh.svg": () => import("./Refresh-Be6vHEEi-C6lRqFiM.js"), "./Response.svg": () => import("./Response-Dq9pM-ZU-DcYb8u84.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"), "./Sort.svg": () => import("./Sort-oTjBhJFQ-yW_ZNUnN.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") }), U = (a) => {
|
|
31355
31359
|
const t2 = `./${a}.svg`;
|
|
31356
|
-
return
|
|
31357
|
-
}, Ye = ["src"],
|
|
31360
|
+
return F[t2] ? defineAsyncComponent(F[t2]) : (console.warn(`Could not find icon: ${a}`), null);
|
|
31361
|
+
}, Ye = ["src"], G = /* @__PURE__ */ defineComponent({
|
|
31358
31362
|
__name: "ScalarIcon",
|
|
31359
31363
|
props: {
|
|
31360
31364
|
icon: {},
|
|
@@ -31377,8 +31381,8 @@ const U = /* @__PURE__ */ Object.assign({ "./Add.svg": () => import("./Add-ngyZg
|
|
|
31377
31381
|
defaultVariants: {
|
|
31378
31382
|
size: "full"
|
|
31379
31383
|
}
|
|
31380
|
-
}), r2 =
|
|
31381
|
-
return (d, c) => unref(r2) ? (openBlock(), createBlock(resolveDynamicComponent(unref(
|
|
31384
|
+
}), r2 = U(t2.icon);
|
|
31385
|
+
return (d, c) => unref(r2) ? (openBlock(), createBlock(resolveDynamicComponent(unref(U)(d.icon)), {
|
|
31382
31386
|
key: 0,
|
|
31383
31387
|
class: normalizeClass(unref(E)("scalar-icon", unref(e)({ size: d.size })))
|
|
31384
31388
|
}, null, 8, ["class"])) : (openBlock(), createElementBlock("img", {
|
|
@@ -31386,7 +31390,7 @@ const U = /* @__PURE__ */ Object.assign({ "./Add.svg": () => import("./Add-ngyZg
|
|
|
31386
31390
|
src: d.icon
|
|
31387
31391
|
}, null, 8, Ye));
|
|
31388
31392
|
}
|
|
31389
|
-
}), Je = ["ariaDisabled"], Ze = { class: "sr-only" },
|
|
31393
|
+
}), Je = ["ariaDisabled"], Ze = { class: "sr-only" }, Z = /* @__PURE__ */ defineComponent({
|
|
31390
31394
|
__name: "ScalarIconButton",
|
|
31391
31395
|
props: {
|
|
31392
31396
|
label: {},
|
|
@@ -31409,7 +31413,7 @@ const U = /* @__PURE__ */ Object.assign({ "./Add.svg": () => import("./Add-ngyZg
|
|
|
31409
31413
|
disabled: {
|
|
31410
31414
|
true: "cursor-not-allowed shadow-none"
|
|
31411
31415
|
},
|
|
31412
|
-
variant:
|
|
31416
|
+
variant: J
|
|
31413
31417
|
}
|
|
31414
31418
|
}), e = computed(() => {
|
|
31415
31419
|
const { class: r2, ...d } = useAttrs();
|
|
@@ -31420,7 +31424,7 @@ const U = /* @__PURE__ */ Object.assign({ "./Add.svg": () => import("./Add-ngyZg
|
|
|
31420
31424
|
class: unref(E)(unref(t2)({ size: r2.size, variant: r2.variant, disabled: r2.disabled }), e.value.class),
|
|
31421
31425
|
type: "button"
|
|
31422
31426
|
}), [
|
|
31423
|
-
createVNode(unref(
|
|
31427
|
+
createVNode(unref(G), { icon: r2.icon }, null, 8, ["icon"]),
|
|
31424
31428
|
createElementVNode("span", Ze, toDisplayString(r2.label), 1)
|
|
31425
31429
|
], 16, Je));
|
|
31426
31430
|
}
|
|
@@ -31455,7 +31459,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
31455
31459
|
spellcheck: "false",
|
|
31456
31460
|
type: inputType.value
|
|
31457
31461
|
}), null, 16, _hoisted_3$b),
|
|
31458
|
-
_ctx.type === "password" ? (openBlock(), createBlock(unref(
|
|
31462
|
+
_ctx.type === "password" ? (openBlock(), createBlock(unref(Z), {
|
|
31459
31463
|
key: 0,
|
|
31460
31464
|
class: "password-mask",
|
|
31461
31465
|
icon: mask.value ? "Show" : "Hide",
|
|
@@ -31512,7 +31516,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
31512
31516
|
createTextVNode(" Scopes " + toDisplayString(model.value.length), 1),
|
|
31513
31517
|
_hoisted_2$i,
|
|
31514
31518
|
createTextVNode(toDisplayString(Object.entries(_ctx.scopes).length) + " ", 1),
|
|
31515
|
-
createVNode(unref(
|
|
31519
|
+
createVNode(unref(G), {
|
|
31516
31520
|
icon: open ? "ChevronUp" : "ChevronDown",
|
|
31517
31521
|
size: "sm"
|
|
31518
31522
|
}, null, 8, ["icon"])
|
|
@@ -31866,7 +31870,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
31866
31870
|
(_b = _ctx.value) == null ? void 0 : _b[unref(authentication2).preferredSecurityScheme],
|
|
31867
31871
|
unref(authentication2).preferredSecurityScheme
|
|
31868
31872
|
) : "None"), 1),
|
|
31869
|
-
createVNode(unref(
|
|
31873
|
+
createVNode(unref(G), { icon: "ChevronDown" }),
|
|
31870
31874
|
createElementVNode("select", {
|
|
31871
31875
|
value: unref(authentication2).preferredSecurityScheme,
|
|
31872
31876
|
onClick: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
@@ -32263,7 +32267,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
32263
32267
|
onClick: addHandler
|
|
32264
32268
|
}, [
|
|
32265
32269
|
createElementVNode("i", _hoisted_3$4, [
|
|
32266
|
-
createVNode(unref(
|
|
32270
|
+
createVNode(unref(G), { icon: "Add" })
|
|
32267
32271
|
]),
|
|
32268
32272
|
createTextVNode(" " + toDisplayString(_ctx.addLabel), 1)
|
|
32269
32273
|
])) : createCommentVNode("", true),
|
|
@@ -32275,7 +32279,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
32275
32279
|
}, [
|
|
32276
32280
|
createTextVNode(" Show More "),
|
|
32277
32281
|
createElementVNode("i", _hoisted_4$3, [
|
|
32278
|
-
createVNode(unref(
|
|
32282
|
+
createVNode(unref(G), { icon: "ChevronDown" })
|
|
32279
32283
|
])
|
|
32280
32284
|
])) : createCommentVNode("", true)
|
|
32281
32285
|
])
|
|
@@ -32769,11 +32773,11 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
32769
32773
|
const mediaType = computed(() => {
|
|
32770
32774
|
var _a2;
|
|
32771
32775
|
const headers = normalizeHeaders((_a2 = props.response) == null ? void 0 : _a2.headers);
|
|
32772
|
-
const contentTypeHeader = headers["content-type"]
|
|
32776
|
+
const contentTypeHeader = `${headers["content-type"]}`;
|
|
32773
32777
|
if (!contentTypeHeader) {
|
|
32774
32778
|
return null;
|
|
32775
32779
|
}
|
|
32776
|
-
return normalizeMimeType(contentTypeHeader
|
|
32780
|
+
return normalizeMimeType(contentTypeHeader);
|
|
32777
32781
|
});
|
|
32778
32782
|
const codeMirrorLanguage = computed(() => {
|
|
32779
32783
|
if (mediaType.value === "application/json") {
|
|
@@ -32785,7 +32789,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
32785
32789
|
if (mediaType.value === "text/plain") {
|
|
32786
32790
|
return "html";
|
|
32787
32791
|
}
|
|
32788
|
-
return
|
|
32792
|
+
return "html";
|
|
32789
32793
|
});
|
|
32790
32794
|
const formattedResponseData = computed(() => {
|
|
32791
32795
|
var _a2;
|
|
@@ -32801,7 +32805,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
32801
32805
|
return openBlock(), createBlock(unref(_sfc_main$v), { title: "Body" }, {
|
|
32802
32806
|
default: withCtx(() => [
|
|
32803
32807
|
_ctx.response ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
32804
|
-
codeMirrorLanguage.value || typeof _ctx.response.data === "string" ? (openBlock(), createBlock(unref(
|
|
32808
|
+
codeMirrorLanguage.value || typeof _ctx.response.data === "string" ? (openBlock(), createBlock(unref(zt), {
|
|
32805
32809
|
key: 0,
|
|
32806
32810
|
class: "custom-scroll",
|
|
32807
32811
|
content: formattedResponseData.value,
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"rest",
|
|
19
19
|
"testing"
|
|
20
20
|
],
|
|
21
|
-
"version": "1.2.
|
|
21
|
+
"version": "1.2.33",
|
|
22
22
|
"engines": {
|
|
23
23
|
"node": ">=18"
|
|
24
24
|
},
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
"nanoid": "^5.0.1",
|
|
42
42
|
"pretty-bytes": "^6.1.1",
|
|
43
43
|
"pretty-ms": "^8.0.0",
|
|
44
|
-
"@scalar/components": "0.7.11",
|
|
45
44
|
"@scalar/themes": "0.7.11",
|
|
45
|
+
"@scalar/components": "0.7.12",
|
|
46
46
|
"@scalar/use-codemirror": "0.10.5",
|
|
47
47
|
"@scalar/use-modal": "0.3.3",
|
|
48
48
|
"@scalar/use-tooltip": "0.6.2"
|
|
@@ -58,12 +58,12 @@
|
|
|
58
58
|
"vue": "^3.4.21",
|
|
59
59
|
"vue-tsc": "^1.8.19",
|
|
60
60
|
"@scalar/api-client-proxy": "0.5.27",
|
|
61
|
-
"@scalar/
|
|
62
|
-
"@scalar/
|
|
61
|
+
"@scalar/echo-server": "0.6.4",
|
|
62
|
+
"@scalar/oas-utils": "0.1.14"
|
|
63
63
|
},
|
|
64
64
|
"peerDependencies": {
|
|
65
65
|
"vue": "^3.3.0",
|
|
66
|
-
"@scalar/oas-utils": "0.1.
|
|
66
|
+
"@scalar/oas-utils": "0.1.14"
|
|
67
67
|
},
|
|
68
68
|
"scripts": {
|
|
69
69
|
"build": "vite build && pnpm types:build && tsc-alias -p tsconfig.build.json",
|