fumadocs-openapi 10.8.2 → 10.8.4
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/css/generated/shared.css +3 -1
- package/dist/_virtual/_rolldown/runtime.js +20 -1
- package/dist/node_modules/.pnpm/@scalar_json-magic@0.12.12/node_modules/@scalar/json-magic/dist/bundle/plugins/parse-yaml/index.js +1 -1
- package/dist/node_modules/.pnpm/@scalar_json-magic@0.12.12/node_modules/@scalar/json-magic/dist/helpers/normalize.js +2 -2
- package/dist/node_modules/.pnpm/xml-js@1.6.11/node_modules/xml-js/lib/array-helper.js +11 -0
- package/dist/node_modules/.pnpm/xml-js@1.6.11/node_modules/xml-js/lib/js2xml.js +256 -0
- package/dist/node_modules/.pnpm/xml-js@1.6.11/node_modules/xml-js/lib/options-helper.js +31 -0
- package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/compose/compose-collection.js +1 -1
- package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/compose/compose-doc.js +1 -1
- package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/compose/compose-node.js +1 -1
- package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/compose/compose-scalar.js +1 -1
- package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/compose/composer.js +3 -3
- package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/compose/resolve-block-map.js +1 -1
- package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/compose/resolve-block-scalar.js +1 -1
- package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/compose/resolve-block-seq.js +1 -1
- package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/compose/resolve-end.js +1 -1
- package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/compose/resolve-flow-collection.js +1 -1
- package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.js +1 -1
- package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/compose/resolve-props.js +1 -1
- package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/compose/util-contains-newline.js +1 -1
- package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/compose/util-empty-scalar-position.js +1 -1
- package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/compose/util-flow-indent-check.js +1 -1
- package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/compose/util-map-includes.js +1 -1
- package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/doc/Document.js +1 -1
- package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/doc/anchors.js +1 -1
- package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/doc/applyReviver.js +1 -1
- package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/doc/createNode.js +1 -1
- package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/doc/directives.js +1 -1
- package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/errors.js +1 -1
- package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/log.js +1 -1
- package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/nodes/Alias.js +1 -1
- package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/nodes/Collection.js +1 -1
- package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/nodes/Node.js +1 -1
- package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/nodes/Pair.js +1 -1
- package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/nodes/Scalar.js +1 -1
- package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/nodes/YAMLMap.js +1 -1
- package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/nodes/YAMLSeq.js +1 -1
- package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/nodes/addPairToJSMap.js +1 -1
- package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/nodes/identity.js +1 -1
- package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/nodes/toJS.js +1 -1
- package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/parse/cst-visit.js +1 -1
- package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/parse/lexer.js +27 -15
- package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/parse/line-counter.js +1 -1
- package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/parse/parser.js +9 -5
- package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/public-api.js +1 -1
- package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/schema/Schema.js +1 -1
- package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/schema/common/map.js +1 -1
- package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/schema/common/null.js +1 -1
- package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/schema/common/seq.js +1 -1
- package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/schema/common/string.js +1 -1
- package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/schema/core/bool.js +1 -1
- package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/schema/core/float.js +1 -1
- package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/schema/core/int.js +1 -1
- package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/schema/core/schema.js +1 -1
- package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/schema/json/schema.js +1 -1
- package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/schema/tags.js +1 -1
- package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/binary.js +1 -1
- package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/bool.js +1 -1
- package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/float.js +1 -1
- package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/int.js +1 -1
- package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/merge.js +1 -1
- package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.js +1 -1
- package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.js +1 -1
- package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/schema.js +1 -1
- package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/set.js +1 -1
- package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/timestamp.js +1 -1
- package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/stringify/foldFlowLines.js +1 -1
- package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/stringify/stringify.js +1 -1
- package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/stringify/stringifyCollection.js +1 -1
- package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/stringify/stringifyComment.js +1 -1
- package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/stringify/stringifyDocument.js +1 -1
- package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/stringify/stringifyNumber.js +1 -1
- package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/stringify/stringifyPair.js +1 -1
- package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/stringify/stringifyString.js +1 -1
- package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/visit.js +1 -1
- package/dist/playground/client.d.ts +2 -0
- package/dist/playground/client.js +5 -5
- package/dist/playground/components/inputs.js +2 -2
- package/dist/playground/components/oauth-dialog.js +1 -1
- package/dist/playground/components/result-display.js +2 -2
- package/dist/playground/components/server-select.js +1 -1
- package/dist/playground/schema.js +1 -1
- package/dist/requests/media/adapter.js +4 -2
- package/dist/requests/string-utils.js +4 -2
- package/dist/server/source-api.d.ts +1 -0
- package/dist/server/source-api.js +6 -1
- package/dist/ui/base.js +3 -2
- package/dist/ui/components/dialog.js +1 -1
- package/dist/ui/create-client.js +3 -2
- package/dist/ui/operation/client.js +1 -1
- package/dist/ui/operation/index.js +17 -5
- package/dist/ui/operation/request-tabs.js +1 -1
- package/dist/ui/operation/usage-tabs/client.js +4 -1
- package/dist/ui/schema/client.js +2 -2
- package/dist/utils/pages/builder.d.ts +1 -0
- package/dist/utils/pages/preset-auto.js +4 -2
- package/dist/utils/pages/to-text.d.ts +1 -1
- package/dist/utils/pages/to-text.js +17 -22
- package/package.json +9 -8
- /package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/index.js +0 -0
- /package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/parse/cst-scalar.js +0 -0
- /package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/parse/cst.js +0 -0
- /package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/index.js +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { NODE_TYPE, isDocument } from "./identity.js";
|
|
2
2
|
import { applyReviver } from "../doc/applyReviver.js";
|
|
3
3
|
import { toJS } from "./toJS.js";
|
|
4
|
-
//#region ../../node_modules/.pnpm/yaml@2.
|
|
4
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/Node.js
|
|
5
5
|
var NodeBase = class {
|
|
6
6
|
constructor(type) {
|
|
7
7
|
Object.defineProperty(this, NODE_TYPE, { value: type });
|
|
@@ -2,7 +2,7 @@ import { NODE_TYPE, PAIR, isNode } from "./identity.js";
|
|
|
2
2
|
import { createNode } from "../doc/createNode.js";
|
|
3
3
|
import { stringifyPair } from "../stringify/stringifyPair.js";
|
|
4
4
|
import { addPairToJSMap } from "./addPairToJSMap.js";
|
|
5
|
-
//#region ../../node_modules/.pnpm/yaml@2.
|
|
5
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/Pair.js
|
|
6
6
|
function createPair(key, value, ctx) {
|
|
7
7
|
return new Pair(createNode(key, void 0, ctx), createNode(value, void 0, ctx));
|
|
8
8
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SCALAR } from "./identity.js";
|
|
2
2
|
import { toJS } from "./toJS.js";
|
|
3
3
|
import { NodeBase } from "./Node.js";
|
|
4
|
-
//#region ../../node_modules/.pnpm/yaml@2.
|
|
4
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/Scalar.js
|
|
5
5
|
const isScalarValue = (value) => !value || typeof value !== "function" && typeof value !== "object";
|
|
6
6
|
var Scalar = class extends NodeBase {
|
|
7
7
|
constructor(value) {
|
|
@@ -4,7 +4,7 @@ import { Collection } from "./Collection.js";
|
|
|
4
4
|
import { addPairToJSMap } from "./addPairToJSMap.js";
|
|
5
5
|
import { Pair, createPair } from "./Pair.js";
|
|
6
6
|
import { stringifyCollection } from "../stringify/stringifyCollection.js";
|
|
7
|
-
//#region ../../node_modules/.pnpm/yaml@2.
|
|
7
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/YAMLMap.js
|
|
8
8
|
function findPair(items, key) {
|
|
9
9
|
const k = isScalar(key) ? key.value : key;
|
|
10
10
|
for (const it of items) if (isPair(it)) {
|
|
@@ -4,7 +4,7 @@ import { isScalarValue } from "./Scalar.js";
|
|
|
4
4
|
import { createNode } from "../doc/createNode.js";
|
|
5
5
|
import { Collection } from "./Collection.js";
|
|
6
6
|
import { stringifyCollection } from "../stringify/stringifyCollection.js";
|
|
7
|
-
//#region ../../node_modules/.pnpm/yaml@2.
|
|
7
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/YAMLSeq.js
|
|
8
8
|
var YAMLSeq = class extends Collection {
|
|
9
9
|
static get tagName() {
|
|
10
10
|
return "tag:yaml.org,2002:seq";
|
|
@@ -3,7 +3,7 @@ import { toJS } from "./toJS.js";
|
|
|
3
3
|
import { createStringifyContext } from "../stringify/stringify.js";
|
|
4
4
|
import { warn } from "../log.js";
|
|
5
5
|
import { addMergeToJSMap, isMergeKey } from "../schema/yaml-1.1/merge.js";
|
|
6
|
-
//#region ../../node_modules/.pnpm/yaml@2.
|
|
6
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/addPairToJSMap.js
|
|
7
7
|
function addPairToJSMap(ctx, map, { key, value }) {
|
|
8
8
|
if (isNode(key) && key.addToJSMap) key.addToJSMap(ctx, map, value);
|
|
9
9
|
else if (isMergeKey(ctx, key)) addMergeToJSMap(ctx, map, value);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/yaml@2.
|
|
1
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/identity.js
|
|
2
2
|
const ALIAS = Symbol.for("yaml.alias");
|
|
3
3
|
const DOC = Symbol.for("yaml.document");
|
|
4
4
|
const MAP = Symbol.for("yaml.map");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { hasAnchor } from "./identity.js";
|
|
2
|
-
//#region ../../node_modules/.pnpm/yaml@2.
|
|
2
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/toJS.js
|
|
3
3
|
/**
|
|
4
4
|
* Recursively convert any node or its contents to native JavaScript
|
|
5
5
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/yaml@2.
|
|
1
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/parse/cst-visit.js
|
|
2
2
|
const BREAK = Symbol("break visit");
|
|
3
3
|
const SKIP = Symbol("skip children");
|
|
4
4
|
const REMOVE = Symbol("remove item");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./cst.js";
|
|
2
|
-
//#region ../../node_modules/.pnpm/yaml@2.
|
|
2
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/parse/lexer.js
|
|
3
3
|
function isEmpty(ch) {
|
|
4
4
|
switch (ch) {
|
|
5
5
|
case void 0:
|
|
@@ -211,7 +211,7 @@ var Lexer = class {
|
|
|
211
211
|
const n = (yield* this.pushCount(1)) + (yield* this.pushSpaces(true));
|
|
212
212
|
this.indentNext = this.indentValue + 1;
|
|
213
213
|
this.indentValue += n;
|
|
214
|
-
return
|
|
214
|
+
return "block-start";
|
|
215
215
|
}
|
|
216
216
|
return "doc";
|
|
217
217
|
}
|
|
@@ -455,22 +455,34 @@ var Lexer = class {
|
|
|
455
455
|
return 0;
|
|
456
456
|
}
|
|
457
457
|
*pushIndicators() {
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
458
|
+
let n = 0;
|
|
459
|
+
loop: while (true) {
|
|
460
|
+
switch (this.charAt(0)) {
|
|
461
|
+
case "!":
|
|
462
|
+
n += yield* this.pushTag();
|
|
463
|
+
n += yield* this.pushSpaces(true);
|
|
464
|
+
continue loop;
|
|
465
|
+
case "&":
|
|
466
|
+
n += yield* this.pushUntil(isNotAnchorChar);
|
|
467
|
+
n += yield* this.pushSpaces(true);
|
|
468
|
+
continue loop;
|
|
469
|
+
case "-":
|
|
470
|
+
case "?":
|
|
471
|
+
case ":": {
|
|
472
|
+
const inFlow = this.flowLevel > 0;
|
|
473
|
+
const ch1 = this.charAt(1);
|
|
474
|
+
if (isEmpty(ch1) || inFlow && flowIndicatorChars.has(ch1)) {
|
|
475
|
+
if (!inFlow) this.indentNext = this.indentValue + 1;
|
|
476
|
+
else if (this.flowKey) this.flowKey = false;
|
|
477
|
+
n += yield* this.pushCount(1);
|
|
478
|
+
n += yield* this.pushSpaces(true);
|
|
479
|
+
continue loop;
|
|
480
|
+
}
|
|
470
481
|
}
|
|
471
482
|
}
|
|
483
|
+
break loop;
|
|
472
484
|
}
|
|
473
|
-
return
|
|
485
|
+
return n;
|
|
474
486
|
}
|
|
475
487
|
*pushTag() {
|
|
476
488
|
if (this.charAt(1) === "<") {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/yaml@2.
|
|
1
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/parse/line-counter.js
|
|
2
2
|
/**
|
|
3
3
|
* Tracks newlines during parsing in order to provide an efficient API for
|
|
4
4
|
* determining the one-indexed `{ line, col }` position for any offset
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { tokenType } from "./cst.js";
|
|
2
2
|
import { Lexer } from "./lexer.js";
|
|
3
|
-
//#region ../../node_modules/.pnpm/yaml@2.
|
|
3
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/parse/parser.js
|
|
4
4
|
function includesToken(list, type) {
|
|
5
5
|
for (let i = 0; i < list.length; ++i) if (list[i].type === type) return true;
|
|
6
6
|
return false;
|
|
@@ -50,14 +50,18 @@ function getFirstKeyStartProps(prev) {
|
|
|
50
50
|
while (prev[++i]?.type === "space");
|
|
51
51
|
return prev.splice(i, prev.length);
|
|
52
52
|
}
|
|
53
|
+
function arrayPushArray(target, source) {
|
|
54
|
+
if (source.length < 1e5) Array.prototype.push.apply(target, source);
|
|
55
|
+
else for (let i = 0; i < source.length; ++i) target.push(source[i]);
|
|
56
|
+
}
|
|
53
57
|
function fixFlowSeqItems(fc) {
|
|
54
58
|
if (fc.start.type === "flow-seq-start") {
|
|
55
59
|
for (const it of fc.items) if (it.sep && !it.value && !includesToken(it.start, "explicit-key-ind") && !includesToken(it.sep, "map-value-ind")) {
|
|
56
60
|
if (it.key) it.value = it.key;
|
|
57
61
|
delete it.key;
|
|
58
|
-
if (isFlowToken(it.value)) if (it.value.end)
|
|
62
|
+
if (isFlowToken(it.value)) if (it.value.end) arrayPushArray(it.value.end, it.sep);
|
|
59
63
|
else it.value.end = it.sep;
|
|
60
|
-
else
|
|
64
|
+
else arrayPushArray(it.start, it.sep);
|
|
61
65
|
delete it.sep;
|
|
62
66
|
}
|
|
63
67
|
}
|
|
@@ -428,7 +432,7 @@ var Parser = class {
|
|
|
428
432
|
if (this.atIndentedComment(it.start, map.indent)) {
|
|
429
433
|
const end = map.items[map.items.length - 2]?.value?.end;
|
|
430
434
|
if (Array.isArray(end)) {
|
|
431
|
-
|
|
435
|
+
arrayPushArray(end, it.start);
|
|
432
436
|
end.push(this.sourceToken);
|
|
433
437
|
map.items.pop();
|
|
434
438
|
return;
|
|
@@ -626,7 +630,7 @@ var Parser = class {
|
|
|
626
630
|
if (this.atIndentedComment(it.start, seq.indent)) {
|
|
627
631
|
const end = seq.items[seq.items.length - 2]?.value?.end;
|
|
628
632
|
if (Array.isArray(end)) {
|
|
629
|
-
|
|
633
|
+
arrayPushArray(end, it.start);
|
|
630
634
|
end.push(this.sourceToken);
|
|
631
635
|
seq.items.pop();
|
|
632
636
|
return;
|
|
@@ -4,7 +4,7 @@ import { YAMLParseError, prettifyError } from "./errors.js";
|
|
|
4
4
|
import { Composer } from "./compose/composer.js";
|
|
5
5
|
import { LineCounter } from "./parse/line-counter.js";
|
|
6
6
|
import { Parser } from "./parse/parser.js";
|
|
7
|
-
//#region ../../node_modules/.pnpm/yaml@2.
|
|
7
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/public-api.js
|
|
8
8
|
function parseOptions(options) {
|
|
9
9
|
const prettyErrors = options.prettyErrors !== false;
|
|
10
10
|
return {
|
|
@@ -3,7 +3,7 @@ import { map } from "./common/map.js";
|
|
|
3
3
|
import { seq } from "./common/seq.js";
|
|
4
4
|
import { string } from "./common/string.js";
|
|
5
5
|
import { coreKnownTags, getTags } from "./tags.js";
|
|
6
|
-
//#region ../../node_modules/.pnpm/yaml@2.
|
|
6
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/Schema.js
|
|
7
7
|
const sortMapEntriesByKey = (a, b) => a.key < b.key ? -1 : a.key > b.key ? 1 : 0;
|
|
8
8
|
var Schema = class Schema {
|
|
9
9
|
constructor({ compat, customTags, merge, resolveKnownTags, schema, sortMapEntries, toStringDefaults }) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isMap } from "../../nodes/identity.js";
|
|
2
2
|
import { YAMLMap } from "../../nodes/YAMLMap.js";
|
|
3
|
-
//#region ../../node_modules/.pnpm/yaml@2.
|
|
3
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/common/map.js
|
|
4
4
|
const map = {
|
|
5
5
|
collection: "map",
|
|
6
6
|
default: true,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Scalar } from "../../nodes/Scalar.js";
|
|
2
|
-
//#region ../../node_modules/.pnpm/yaml@2.
|
|
2
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/common/null.js
|
|
3
3
|
const nullTag = {
|
|
4
4
|
identify: (value) => value == null,
|
|
5
5
|
createNode: () => new Scalar(null),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isSeq } from "../../nodes/identity.js";
|
|
2
2
|
import { YAMLSeq } from "../../nodes/YAMLSeq.js";
|
|
3
|
-
//#region ../../node_modules/.pnpm/yaml@2.
|
|
3
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/common/seq.js
|
|
4
4
|
const seq = {
|
|
5
5
|
collection: "seq",
|
|
6
6
|
default: true,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { stringifyString } from "../../stringify/stringifyString.js";
|
|
2
|
-
//#region ../../node_modules/.pnpm/yaml@2.
|
|
2
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/common/string.js
|
|
3
3
|
const string = {
|
|
4
4
|
identify: (value) => typeof value === "string",
|
|
5
5
|
default: true,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Scalar } from "../../nodes/Scalar.js";
|
|
2
|
-
//#region ../../node_modules/.pnpm/yaml@2.
|
|
2
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/core/bool.js
|
|
3
3
|
const boolTag = {
|
|
4
4
|
identify: (value) => typeof value === "boolean",
|
|
5
5
|
default: true,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Scalar } from "../../nodes/Scalar.js";
|
|
2
2
|
import { stringifyNumber } from "../../stringify/stringifyNumber.js";
|
|
3
|
-
//#region ../../node_modules/.pnpm/yaml@2.
|
|
3
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/core/float.js
|
|
4
4
|
const floatNaN = {
|
|
5
5
|
identify: (value) => typeof value === "number",
|
|
6
6
|
default: true,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { stringifyNumber } from "../../stringify/stringifyNumber.js";
|
|
2
|
-
//#region ../../node_modules/.pnpm/yaml@2.
|
|
2
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/core/int.js
|
|
3
3
|
const intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
|
|
4
4
|
const intResolve = (str, offset, radix, { intAsBigInt }) => intAsBigInt ? BigInt(str) : parseInt(str.substring(offset), radix);
|
|
5
5
|
function intStringify(node, radix, prefix) {
|
|
@@ -5,7 +5,7 @@ import { nullTag } from "../common/null.js";
|
|
|
5
5
|
import { boolTag } from "./bool.js";
|
|
6
6
|
import { float, floatExp, floatNaN } from "./float.js";
|
|
7
7
|
import { int, intHex, intOct } from "./int.js";
|
|
8
|
-
//#region ../../node_modules/.pnpm/yaml@2.
|
|
8
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/core/schema.js
|
|
9
9
|
const schema = [
|
|
10
10
|
map,
|
|
11
11
|
seq,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Scalar } from "../../nodes/Scalar.js";
|
|
2
2
|
import { map } from "../common/map.js";
|
|
3
3
|
import { seq } from "../common/seq.js";
|
|
4
|
-
//#region ../../node_modules/.pnpm/yaml@2.
|
|
4
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/json/schema.js
|
|
5
5
|
function intIdentify(value) {
|
|
6
6
|
return typeof value === "bigint" || Number.isInteger(value);
|
|
7
7
|
}
|
|
@@ -14,7 +14,7 @@ import { omap } from "./yaml-1.1/omap.js";
|
|
|
14
14
|
import { set } from "./yaml-1.1/set.js";
|
|
15
15
|
import { floatTime, intTime, timestamp } from "./yaml-1.1/timestamp.js";
|
|
16
16
|
import { schema as schema$2 } from "./yaml-1.1/schema.js";
|
|
17
|
-
//#region ../../node_modules/.pnpm/yaml@2.
|
|
17
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/tags.js
|
|
18
18
|
const schemas = new Map([
|
|
19
19
|
["core", schema],
|
|
20
20
|
["failsafe", [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Scalar } from "../../nodes/Scalar.js";
|
|
2
2
|
import { stringifyString } from "../../stringify/stringifyString.js";
|
|
3
|
-
//#region ../../node_modules/.pnpm/yaml@2.
|
|
3
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/yaml-1.1/binary.js
|
|
4
4
|
const binary = {
|
|
5
5
|
identify: (value) => value instanceof Uint8Array,
|
|
6
6
|
default: false,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Scalar } from "../../nodes/Scalar.js";
|
|
2
|
-
//#region ../../node_modules/.pnpm/yaml@2.
|
|
2
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/yaml-1.1/bool.js
|
|
3
3
|
function boolStringify({ value, source }, ctx) {
|
|
4
4
|
if (source && (value ? trueTag : falseTag).test.test(source)) return source;
|
|
5
5
|
return value ? ctx.options.trueStr : ctx.options.falseStr;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Scalar } from "../../nodes/Scalar.js";
|
|
2
2
|
import { stringifyNumber } from "../../stringify/stringifyNumber.js";
|
|
3
|
-
//#region ../../node_modules/.pnpm/yaml@2.
|
|
3
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/yaml-1.1/float.js
|
|
4
4
|
const floatNaN = {
|
|
5
5
|
identify: (value) => typeof value === "number",
|
|
6
6
|
default: true,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { stringifyNumber } from "../../stringify/stringifyNumber.js";
|
|
2
|
-
//#region ../../node_modules/.pnpm/yaml@2.
|
|
2
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/yaml-1.1/int.js
|
|
3
3
|
const intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
|
|
4
4
|
function intResolve(str, offset, radix, { intAsBigInt }) {
|
|
5
5
|
const sign = str[0];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isAlias, isMap, isScalar, isSeq } from "../../nodes/identity.js";
|
|
2
2
|
import { Scalar } from "../../nodes/Scalar.js";
|
|
3
|
-
//#region ../../node_modules/.pnpm/yaml@2.
|
|
3
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/yaml-1.1/merge.js
|
|
4
4
|
const MERGE_KEY = "<<";
|
|
5
5
|
const merge = {
|
|
6
6
|
identify: (value) => value === MERGE_KEY || typeof value === "symbol" && value.description === MERGE_KEY,
|
|
@@ -3,7 +3,7 @@ import { toJS } from "../../nodes/toJS.js";
|
|
|
3
3
|
import { YAMLMap } from "../../nodes/YAMLMap.js";
|
|
4
4
|
import { YAMLSeq } from "../../nodes/YAMLSeq.js";
|
|
5
5
|
import { createPairs, resolvePairs } from "./pairs.js";
|
|
6
|
-
//#region ../../node_modules/.pnpm/yaml@2.
|
|
6
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.js
|
|
7
7
|
var YAMLOMap = class YAMLOMap extends YAMLSeq {
|
|
8
8
|
constructor() {
|
|
9
9
|
super();
|
|
@@ -2,7 +2,7 @@ import { isMap, isPair, isSeq } from "../../nodes/identity.js";
|
|
|
2
2
|
import { Scalar } from "../../nodes/Scalar.js";
|
|
3
3
|
import { Pair, createPair } from "../../nodes/Pair.js";
|
|
4
4
|
import { YAMLSeq } from "../../nodes/YAMLSeq.js";
|
|
5
|
-
//#region ../../node_modules/.pnpm/yaml@2.
|
|
5
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.js
|
|
6
6
|
function resolvePairs(seq, onError) {
|
|
7
7
|
if (isSeq(seq)) for (let i = 0; i < seq.items.length; ++i) {
|
|
8
8
|
let item = seq.items[i];
|
|
@@ -11,7 +11,7 @@ import { float, floatExp, floatNaN } from "./float.js";
|
|
|
11
11
|
import { int, intBin, intHex, intOct } from "./int.js";
|
|
12
12
|
import { set } from "./set.js";
|
|
13
13
|
import { floatTime, intTime, timestamp } from "./timestamp.js";
|
|
14
|
-
//#region ../../node_modules/.pnpm/yaml@2.
|
|
14
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/yaml-1.1/schema.js
|
|
15
15
|
const schema = [
|
|
16
16
|
map,
|
|
17
17
|
seq,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isMap, isPair, isScalar } from "../../nodes/identity.js";
|
|
2
2
|
import { Pair, createPair } from "../../nodes/Pair.js";
|
|
3
3
|
import { YAMLMap, findPair } from "../../nodes/YAMLMap.js";
|
|
4
|
-
//#region ../../node_modules/.pnpm/yaml@2.
|
|
4
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/yaml-1.1/set.js
|
|
5
5
|
var YAMLSet = class YAMLSet extends YAMLMap {
|
|
6
6
|
constructor(schema) {
|
|
7
7
|
super(schema);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { stringifyNumber } from "../../stringify/stringifyNumber.js";
|
|
2
|
-
//#region ../../node_modules/.pnpm/yaml@2.
|
|
2
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/yaml-1.1/timestamp.js
|
|
3
3
|
/** Internal types handle bigint as number, because TS can't figure it out. */
|
|
4
4
|
function parseSexagesimal(str, asBigInt) {
|
|
5
5
|
const sign = str[0];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/yaml@2.
|
|
1
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/stringify/foldFlowLines.js
|
|
2
2
|
const FOLD_FLOW = "flow";
|
|
3
3
|
const FOLD_BLOCK = "block";
|
|
4
4
|
const FOLD_QUOTED = "quoted";
|
|
@@ -2,7 +2,7 @@ import { isAlias, isCollection, isNode, isPair, isScalar } from "../nodes/identi
|
|
|
2
2
|
import { anchorIsValid } from "../doc/anchors.js";
|
|
3
3
|
import { stringifyComment } from "./stringifyComment.js";
|
|
4
4
|
import { stringifyString } from "./stringifyString.js";
|
|
5
|
-
//#region ../../node_modules/.pnpm/yaml@2.
|
|
5
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/stringify/stringify.js
|
|
6
6
|
function createStringifyContext(doc, options) {
|
|
7
7
|
const opt = Object.assign({
|
|
8
8
|
blockQuote: true,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isNode, isPair } from "../nodes/identity.js";
|
|
2
2
|
import { indentComment, lineComment } from "./stringifyComment.js";
|
|
3
3
|
import { stringify } from "./stringify.js";
|
|
4
|
-
//#region ../../node_modules/.pnpm/yaml@2.
|
|
4
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/stringify/stringifyCollection.js
|
|
5
5
|
function stringifyCollection(collection, ctx, options) {
|
|
6
6
|
return (ctx.inFlow ?? collection.flow ? stringifyFlowCollection : stringifyBlockCollection)(collection, ctx, options);
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isNode } from "../nodes/identity.js";
|
|
2
2
|
import { indentComment, lineComment } from "./stringifyComment.js";
|
|
3
3
|
import { createStringifyContext, stringify } from "./stringify.js";
|
|
4
|
-
//#region ../../node_modules/.pnpm/yaml@2.
|
|
4
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/stringify/stringifyDocument.js
|
|
5
5
|
function stringifyDocument(doc, options) {
|
|
6
6
|
const lines = [];
|
|
7
7
|
let hasDirectives = options.directives === true;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/yaml@2.
|
|
1
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/stringify/stringifyNumber.js
|
|
2
2
|
function stringifyNumber({ format, minFractionDigits, tag, value }) {
|
|
3
3
|
if (typeof value === "bigint") return String(value);
|
|
4
4
|
const num = typeof value === "number" ? value : Number(value);
|
|
@@ -2,7 +2,7 @@ import { isCollection, isNode, isScalar, isSeq } from "../nodes/identity.js";
|
|
|
2
2
|
import { Scalar } from "../nodes/Scalar.js";
|
|
3
3
|
import { indentComment, lineComment } from "./stringifyComment.js";
|
|
4
4
|
import { stringify } from "./stringify.js";
|
|
5
|
-
//#region ../../node_modules/.pnpm/yaml@2.
|
|
5
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/stringify/stringifyPair.js
|
|
6
6
|
function stringifyPair({ key, value }, ctx, onComment, onChompKeep) {
|
|
7
7
|
const { allNullValues, doc, indent, indentStep, options: { commentString, indentSeq, simpleKeys } } = ctx;
|
|
8
8
|
let keyComment = isNode(key) && key.comment || null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Scalar } from "../nodes/Scalar.js";
|
|
2
2
|
import { FOLD_BLOCK, FOLD_FLOW, FOLD_QUOTED, foldFlowLines } from "./foldFlowLines.js";
|
|
3
|
-
//#region ../../node_modules/.pnpm/yaml@2.
|
|
3
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/stringify/stringifyString.js
|
|
4
4
|
const getFoldOptions = (ctx, isBlock) => ({
|
|
5
5
|
indentAtStart: isBlock ? ctx.indent.length : ctx.indentAtStart,
|
|
6
6
|
lineWidth: ctx.options.lineWidth,
|
package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/visit.js
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isAlias, isCollection, isDocument, isMap, isNode, isPair, isScalar, isSeq } from "./nodes/identity.js";
|
|
2
|
-
//#region ../../node_modules/.pnpm/yaml@2.
|
|
2
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/visit.js
|
|
3
3
|
const BREAK = Symbol("break visit");
|
|
4
4
|
const SKIP = Symbol("skip children");
|
|
5
5
|
const REMOVE = Symbol("remove node");
|
|
@@ -23,6 +23,7 @@ interface PlaygroundClientProps extends ComponentProps<'form'>, SchemaScope {
|
|
|
23
23
|
/** the OpenAPI document (not dereferenced) */
|
|
24
24
|
doc: Document;
|
|
25
25
|
proxyUrl?: string;
|
|
26
|
+
deprecated?: boolean;
|
|
26
27
|
}
|
|
27
28
|
interface CollapsiblePanelProps extends Omit<ComponentProps<typeof Collapsible>, 'title'> {
|
|
28
29
|
'data-type': 'authorization' | 'body' | ParamType;
|
|
@@ -71,6 +72,7 @@ declare function PlaygroundClient({
|
|
|
71
72
|
proxyUrl,
|
|
72
73
|
writeOnly,
|
|
73
74
|
readOnly,
|
|
75
|
+
deprecated,
|
|
74
76
|
...rest
|
|
75
77
|
}: PlaygroundClientProps): _$react_jsx_runtime0.JSX.Element;
|
|
76
78
|
declare const ParamTypes: readonly ["path", "header", "cookie", "query"];
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { joinURL, resolveRequestData, resolveServerUrl, withBase } from "../utils/url.js";
|
|
3
3
|
import { getPreferredType } from "../utils/schema/index.js";
|
|
4
|
-
import { dereferenceSwallow } from "../utils/schema/dereference.js";
|
|
5
|
-
import { cn } from "../utils/cn.js";
|
|
6
|
-
import { MethodLabel } from "../ui/components/method-label.js";
|
|
7
4
|
import { useStorageKey } from "../ui/client/storage-key.js";
|
|
8
5
|
import { useApiContext, useServerContext } from "../ui/contexts/api.js";
|
|
9
6
|
import { useTranslations } from "../ui/client/i18n.js";
|
|
7
|
+
import { cn } from "../utils/cn.js";
|
|
10
8
|
import { DefaultResultDisplay } from "./components/result-display.js";
|
|
9
|
+
import { MethodLabel } from "../ui/components/method-label.js";
|
|
11
10
|
import { useQuery } from "../utils/use-query.js";
|
|
12
11
|
import { encodeRequestData } from "../requests/media/encode.js";
|
|
12
|
+
import { dereferenceSwallow } from "../utils/schema/dereference.js";
|
|
13
13
|
import { SchemaProvider, anyFields, useResolvedSchema } from "./schema.js";
|
|
14
14
|
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "../ui/components/select.js";
|
|
15
15
|
import { labelVariants } from "../ui/components/input.js";
|
|
@@ -28,7 +28,7 @@ import { StfProvider, useDataEngine, useFieldValue, useListener, useStf } from "
|
|
|
28
28
|
import { arrayStartsWith, objectGet, objectSet, stringifyFieldKey } from "@fumari/stf/lib/utils";
|
|
29
29
|
import { useOnChange } from "fumadocs-core/utils/use-on-change";
|
|
30
30
|
//#region src/playground/client.tsx
|
|
31
|
-
function PlaygroundClient({ route, method, securities, doc, proxyUrl, writeOnly, readOnly, ...rest }) {
|
|
31
|
+
function PlaygroundClient({ route, method, securities, doc, proxyUrl, writeOnly, readOnly, deprecated, ...rest }) {
|
|
32
32
|
const t = useTranslations();
|
|
33
33
|
const { parameters, body } = useMemo(() => {
|
|
34
34
|
const operation = doc.paths[route][method];
|
|
@@ -130,7 +130,7 @@ function PlaygroundClient({ route, method, securities, doc, proxyUrl, writeOnly,
|
|
|
130
130
|
/* @__PURE__ */ jsx(MethodLabel, { children: method }),
|
|
131
131
|
/* @__PURE__ */ jsx(Route, {
|
|
132
132
|
route,
|
|
133
|
-
className: "flex-1"
|
|
133
|
+
className: cn("flex-1", deprecated && "line-through")
|
|
134
134
|
}),
|
|
135
135
|
/* @__PURE__ */ jsx("button", {
|
|
136
136
|
type: "submit",
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { cn } from "../../utils/cn.js";
|
|
3
2
|
import { useTranslations } from "../../ui/client/i18n.js";
|
|
3
|
+
import { cn } from "../../utils/cn.js";
|
|
4
4
|
import { anyFields, useFieldInfo, useResolvedSchema, useSchemaScope, useSchemaUtils } from "../schema.js";
|
|
5
5
|
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "../../ui/components/select.js";
|
|
6
6
|
import { Input, labelVariants } from "../../ui/components/input.js";
|
|
7
7
|
import { useState } from "react";
|
|
8
8
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
-
import { cva } from "class-variance-authority";
|
|
10
9
|
import { ChevronRight, Plus, Trash2, X } from "lucide-react";
|
|
11
10
|
import { buttonVariants } from "fumadocs-ui/components/ui/button";
|
|
11
|
+
import { cva } from "class-variance-authority";
|
|
12
12
|
import { useArray, useDataEngine, useFieldValue, useObject } from "@fumari/stf";
|
|
13
13
|
import { stringifyFieldKey } from "@fumari/stf/lib/utils";
|
|
14
14
|
//#region src/playground/components/inputs.tsx
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { cn } from "../../utils/cn.js";
|
|
2
1
|
import { useApiContext } from "../../ui/contexts/api.js";
|
|
3
2
|
import { useTranslations } from "../../ui/client/i18n.js";
|
|
3
|
+
import { cn } from "../../utils/cn.js";
|
|
4
4
|
import { useQuery } from "../../utils/use-query.js";
|
|
5
5
|
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "../../ui/components/select.js";
|
|
6
6
|
import { Input, labelVariants } from "../../ui/components/input.js";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { cn } from "../../utils/cn.js";
|
|
3
2
|
import { useTranslations, withReplacements } from "../../ui/client/i18n.js";
|
|
4
3
|
import { useStatusInfo } from "../status-info.js";
|
|
4
|
+
import { cn } from "../../utils/cn.js";
|
|
5
5
|
import { ClientCodeBlock } from "../../ui/components/codeblock.js";
|
|
6
6
|
import { require_fast_content_type_parse } from "../../node_modules/.pnpm/fast-content-type-parse@3.0.0/node_modules/fast-content-type-parse/index.js";
|
|
7
7
|
import { useEffect, useMemo, useState } from "react";
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
-
import { cva } from "class-variance-authority";
|
|
10
9
|
import { CircleX } from "lucide-react";
|
|
11
10
|
import { buttonVariants } from "fumadocs-ui/components/ui/button";
|
|
11
|
+
import { cva } from "class-variance-authority";
|
|
12
12
|
//#region src/playground/components/result-display.tsx
|
|
13
13
|
var import_fast_content_type_parse = require_fast_content_type_parse();
|
|
14
14
|
const panelVariants = cva("flex flex-col gap-2 mt-2 px-3 py-2 border-y bg-fd-secondary text-fd-secondary-foreground");
|