fumadocs-openapi 10.8.1 → 10.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (123) hide show
  1. package/css/generated/shared.css +1 -0
  2. package/dist/node_modules/.pnpm/{@scalar_helpers@0.5.2 → @scalar_helpers@0.6.0}/node_modules/@scalar/helpers/dist/general/create-limiter.js +1 -1
  3. package/dist/node_modules/.pnpm/{@scalar_helpers@0.5.2 → @scalar_helpers@0.6.0}/node_modules/@scalar/helpers/dist/object/is-object.js +1 -1
  4. package/dist/node_modules/.pnpm/{@scalar_helpers@0.5.2 → @scalar_helpers@0.6.0}/node_modules/@scalar/helpers/dist/object/prevent-pollution.js +1 -1
  5. package/dist/node_modules/.pnpm/{@scalar_helpers@0.5.2 → @scalar_helpers@0.6.0}/node_modules/@scalar/helpers/dist/queue/queue.js +1 -1
  6. package/dist/node_modules/.pnpm/{@scalar_helpers@0.5.2 → @scalar_helpers@0.6.0}/node_modules/@scalar/helpers/dist/string/generate-hash.js +1 -1
  7. package/dist/node_modules/.pnpm/{@scalar_json-magic@0.12.8 → @scalar_json-magic@0.12.12}/node_modules/@scalar/json-magic/dist/bundle/bundle.js +2 -2
  8. package/dist/node_modules/.pnpm/{@scalar_json-magic@0.12.8 → @scalar_json-magic@0.12.12}/node_modules/@scalar/json-magic/dist/bundle/plugins/fetch-urls/index.js +2 -2
  9. package/dist/node_modules/.pnpm/@scalar_json-magic@0.12.12/node_modules/@scalar/json-magic/dist/bundle/plugins/parse-yaml/index.js +1 -0
  10. package/dist/node_modules/.pnpm/{@scalar_json-magic@0.12.8 → @scalar_json-magic@0.12.12}/node_modules/@scalar/json-magic/dist/bundle/plugins/read-files/index.js +1 -1
  11. package/dist/node_modules/.pnpm/{@scalar_json-magic@0.12.8 → @scalar_json-magic@0.12.12}/node_modules/@scalar/json-magic/dist/bundle/value-generator.js +2 -2
  12. package/dist/node_modules/.pnpm/{@scalar_json-magic@0.12.8 → @scalar_json-magic@0.12.12}/node_modules/@scalar/json-magic/dist/helpers/convert-to-local-ref.js +1 -1
  13. package/dist/node_modules/.pnpm/{@scalar_json-magic@0.12.8 → @scalar_json-magic@0.12.12}/node_modules/@scalar/json-magic/dist/helpers/escape-json-pointer.js +1 -1
  14. package/dist/node_modules/.pnpm/{@scalar_json-magic@0.12.8 → @scalar_json-magic@0.12.12}/node_modules/@scalar/json-magic/dist/helpers/get-schemas.js +1 -1
  15. package/dist/node_modules/.pnpm/{@scalar_json-magic@0.12.8 → @scalar_json-magic@0.12.12}/node_modules/@scalar/json-magic/dist/helpers/get-segments-from-path.js +1 -1
  16. package/dist/node_modules/.pnpm/{@scalar_json-magic@0.12.8 → @scalar_json-magic@0.12.12}/node_modules/@scalar/json-magic/dist/helpers/get-value-by-path.js +1 -1
  17. package/dist/node_modules/.pnpm/{@scalar_json-magic@0.12.8 → @scalar_json-magic@0.12.12}/node_modules/@scalar/json-magic/dist/helpers/is-file-path.js +1 -1
  18. package/dist/node_modules/.pnpm/{@scalar_json-magic@0.12.8 → @scalar_json-magic@0.12.12}/node_modules/@scalar/json-magic/dist/helpers/is-http-url.js +1 -1
  19. package/dist/node_modules/.pnpm/{@scalar_json-magic@0.12.8 → @scalar_json-magic@0.12.12}/node_modules/@scalar/json-magic/dist/helpers/is-json-object.js +2 -2
  20. package/dist/node_modules/.pnpm/{@scalar_json-magic@0.12.8 → @scalar_json-magic@0.12.12}/node_modules/@scalar/json-magic/dist/helpers/is-yaml.js +1 -1
  21. package/dist/node_modules/.pnpm/{@scalar_json-magic@0.12.8 → @scalar_json-magic@0.12.12}/node_modules/@scalar/json-magic/dist/helpers/normalize.js +3 -3
  22. package/dist/node_modules/.pnpm/{@scalar_json-magic@0.12.8 → @scalar_json-magic@0.12.12}/node_modules/@scalar/json-magic/dist/helpers/resolve-reference-path.js +1 -1
  23. package/dist/node_modules/.pnpm/{@scalar_json-magic@0.12.8 → @scalar_json-magic@0.12.12}/node_modules/@scalar/json-magic/dist/helpers/set-value-at-path.js +2 -2
  24. package/dist/node_modules/.pnpm/{@scalar_json-magic@0.12.8 → @scalar_json-magic@0.12.12}/node_modules/@scalar/json-magic/dist/helpers/to-relative-path.js +1 -1
  25. package/dist/node_modules/.pnpm/{@scalar_json-magic@0.12.8 → @scalar_json-magic@0.12.12}/node_modules/@scalar/json-magic/dist/helpers/unescape-json-pointer.js +1 -1
  26. package/dist/node_modules/.pnpm/{@scalar_openapi-upgrader@0.2.6 → @scalar_openapi-upgrader@0.2.7}/node_modules/@scalar/openapi-upgrader/dist/2.0-to-3.0/upgrade-from-two-to-three.js +1 -1
  27. package/dist/node_modules/.pnpm/{@scalar_openapi-upgrader@0.2.6 → @scalar_openapi-upgrader@0.2.7}/node_modules/@scalar/openapi-upgrader/dist/3.0-to-3.1/upgrade-from-three-to-three-one.js +1 -1
  28. package/dist/node_modules/.pnpm/{@scalar_openapi-upgrader@0.2.6 → @scalar_openapi-upgrader@0.2.7}/node_modules/@scalar/openapi-upgrader/dist/3.1-to-3.2/upgrade-from-three-one-to-three-two.js +1 -1
  29. package/dist/node_modules/.pnpm/{@scalar_openapi-upgrader@0.2.6 → @scalar_openapi-upgrader@0.2.7}/node_modules/@scalar/openapi-upgrader/dist/helpers/traverse.js +1 -1
  30. package/dist/node_modules/.pnpm/{@scalar_openapi-upgrader@0.2.6 → @scalar_openapi-upgrader@0.2.7}/node_modules/@scalar/openapi-upgrader/dist/upgrade.js +1 -1
  31. package/dist/node_modules/.pnpm/{yaml@2.8.3 → yaml@2.8.4}/node_modules/yaml/browser/dist/compose/compose-collection.js +1 -1
  32. package/dist/node_modules/.pnpm/{yaml@2.8.3 → yaml@2.8.4}/node_modules/yaml/browser/dist/compose/compose-doc.js +1 -1
  33. package/dist/node_modules/.pnpm/{yaml@2.8.3 → yaml@2.8.4}/node_modules/yaml/browser/dist/compose/compose-node.js +1 -1
  34. package/dist/node_modules/.pnpm/{yaml@2.8.3 → yaml@2.8.4}/node_modules/yaml/browser/dist/compose/compose-scalar.js +1 -1
  35. package/dist/node_modules/.pnpm/{yaml@2.8.3 → yaml@2.8.4}/node_modules/yaml/browser/dist/compose/composer.js +1 -1
  36. package/dist/node_modules/.pnpm/{yaml@2.8.3 → yaml@2.8.4}/node_modules/yaml/browser/dist/compose/resolve-block-map.js +1 -1
  37. package/dist/node_modules/.pnpm/{yaml@2.8.3 → yaml@2.8.4}/node_modules/yaml/browser/dist/compose/resolve-block-scalar.js +1 -1
  38. package/dist/node_modules/.pnpm/{yaml@2.8.3 → yaml@2.8.4}/node_modules/yaml/browser/dist/compose/resolve-block-seq.js +1 -1
  39. package/dist/node_modules/.pnpm/{yaml@2.8.3 → yaml@2.8.4}/node_modules/yaml/browser/dist/compose/resolve-end.js +1 -1
  40. package/dist/node_modules/.pnpm/{yaml@2.8.3 → yaml@2.8.4}/node_modules/yaml/browser/dist/compose/resolve-flow-collection.js +1 -1
  41. package/dist/node_modules/.pnpm/{yaml@2.8.3 → yaml@2.8.4}/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.js +5 -8
  42. package/dist/node_modules/.pnpm/{yaml@2.8.3 → yaml@2.8.4}/node_modules/yaml/browser/dist/compose/resolve-props.js +1 -1
  43. package/dist/node_modules/.pnpm/{yaml@2.8.3 → yaml@2.8.4}/node_modules/yaml/browser/dist/compose/util-contains-newline.js +1 -1
  44. package/dist/node_modules/.pnpm/{yaml@2.8.3 → yaml@2.8.4}/node_modules/yaml/browser/dist/compose/util-empty-scalar-position.js +1 -1
  45. package/dist/node_modules/.pnpm/{yaml@2.8.3 → yaml@2.8.4}/node_modules/yaml/browser/dist/compose/util-flow-indent-check.js +1 -1
  46. package/dist/node_modules/.pnpm/{yaml@2.8.3 → yaml@2.8.4}/node_modules/yaml/browser/dist/compose/util-map-includes.js +1 -1
  47. package/dist/node_modules/.pnpm/{yaml@2.8.3 → yaml@2.8.4}/node_modules/yaml/browser/dist/doc/Document.js +1 -1
  48. package/dist/node_modules/.pnpm/{yaml@2.8.3 → yaml@2.8.4}/node_modules/yaml/browser/dist/doc/anchors.js +1 -1
  49. package/dist/node_modules/.pnpm/{yaml@2.8.3 → yaml@2.8.4}/node_modules/yaml/browser/dist/doc/applyReviver.js +1 -1
  50. package/dist/node_modules/.pnpm/{yaml@2.8.3 → yaml@2.8.4}/node_modules/yaml/browser/dist/doc/createNode.js +1 -1
  51. package/dist/node_modules/.pnpm/{yaml@2.8.3 → yaml@2.8.4}/node_modules/yaml/browser/dist/doc/directives.js +1 -1
  52. package/dist/node_modules/.pnpm/{yaml@2.8.3 → yaml@2.8.4}/node_modules/yaml/browser/dist/errors.js +1 -1
  53. package/dist/node_modules/.pnpm/{yaml@2.8.3 → yaml@2.8.4}/node_modules/yaml/browser/dist/log.js +1 -1
  54. package/dist/node_modules/.pnpm/{yaml@2.8.3 → yaml@2.8.4}/node_modules/yaml/browser/dist/nodes/Alias.js +2 -1
  55. package/dist/node_modules/.pnpm/{yaml@2.8.3 → yaml@2.8.4}/node_modules/yaml/browser/dist/nodes/Collection.js +1 -1
  56. package/dist/node_modules/.pnpm/{yaml@2.8.3 → yaml@2.8.4}/node_modules/yaml/browser/dist/nodes/Node.js +1 -1
  57. package/dist/node_modules/.pnpm/{yaml@2.8.3 → yaml@2.8.4}/node_modules/yaml/browser/dist/nodes/Pair.js +1 -1
  58. package/dist/node_modules/.pnpm/{yaml@2.8.3 → yaml@2.8.4}/node_modules/yaml/browser/dist/nodes/Scalar.js +1 -1
  59. package/dist/node_modules/.pnpm/{yaml@2.8.3 → yaml@2.8.4}/node_modules/yaml/browser/dist/nodes/YAMLMap.js +1 -1
  60. package/dist/node_modules/.pnpm/{yaml@2.8.3 → yaml@2.8.4}/node_modules/yaml/browser/dist/nodes/YAMLSeq.js +1 -1
  61. package/dist/node_modules/.pnpm/{yaml@2.8.3 → yaml@2.8.4}/node_modules/yaml/browser/dist/nodes/addPairToJSMap.js +1 -1
  62. package/dist/node_modules/.pnpm/{yaml@2.8.3 → yaml@2.8.4}/node_modules/yaml/browser/dist/nodes/identity.js +1 -1
  63. package/dist/node_modules/.pnpm/{yaml@2.8.3 → yaml@2.8.4}/node_modules/yaml/browser/dist/nodes/toJS.js +1 -1
  64. package/dist/node_modules/.pnpm/{yaml@2.8.3 → yaml@2.8.4}/node_modules/yaml/browser/dist/parse/cst-visit.js +1 -1
  65. package/dist/node_modules/.pnpm/{yaml@2.8.3 → yaml@2.8.4}/node_modules/yaml/browser/dist/parse/lexer.js +1 -1
  66. package/dist/node_modules/.pnpm/{yaml@2.8.3 → yaml@2.8.4}/node_modules/yaml/browser/dist/parse/line-counter.js +1 -1
  67. package/dist/node_modules/.pnpm/{yaml@2.8.3 → yaml@2.8.4}/node_modules/yaml/browser/dist/parse/parser.js +1 -1
  68. package/dist/node_modules/.pnpm/{yaml@2.8.3 → yaml@2.8.4}/node_modules/yaml/browser/dist/public-api.js +1 -1
  69. package/dist/node_modules/.pnpm/{yaml@2.8.3 → yaml@2.8.4}/node_modules/yaml/browser/dist/schema/Schema.js +1 -1
  70. package/dist/node_modules/.pnpm/{yaml@2.8.3 → yaml@2.8.4}/node_modules/yaml/browser/dist/schema/common/map.js +1 -1
  71. package/dist/node_modules/.pnpm/{yaml@2.8.3 → yaml@2.8.4}/node_modules/yaml/browser/dist/schema/common/null.js +1 -1
  72. package/dist/node_modules/.pnpm/{yaml@2.8.3 → yaml@2.8.4}/node_modules/yaml/browser/dist/schema/common/seq.js +1 -1
  73. package/dist/node_modules/.pnpm/{yaml@2.8.3 → yaml@2.8.4}/node_modules/yaml/browser/dist/schema/common/string.js +1 -1
  74. package/dist/node_modules/.pnpm/{yaml@2.8.3 → yaml@2.8.4}/node_modules/yaml/browser/dist/schema/core/bool.js +1 -1
  75. package/dist/node_modules/.pnpm/{yaml@2.8.3 → yaml@2.8.4}/node_modules/yaml/browser/dist/schema/core/float.js +1 -1
  76. package/dist/node_modules/.pnpm/{yaml@2.8.3 → yaml@2.8.4}/node_modules/yaml/browser/dist/schema/core/int.js +1 -1
  77. package/dist/node_modules/.pnpm/{yaml@2.8.3 → yaml@2.8.4}/node_modules/yaml/browser/dist/schema/core/schema.js +1 -1
  78. package/dist/node_modules/.pnpm/{yaml@2.8.3 → yaml@2.8.4}/node_modules/yaml/browser/dist/schema/json/schema.js +1 -1
  79. package/dist/node_modules/.pnpm/{yaml@2.8.3 → yaml@2.8.4}/node_modules/yaml/browser/dist/schema/tags.js +1 -1
  80. package/dist/node_modules/.pnpm/{yaml@2.8.3 → yaml@2.8.4}/node_modules/yaml/browser/dist/schema/yaml-1.1/binary.js +1 -1
  81. package/dist/node_modules/.pnpm/{yaml@2.8.3 → yaml@2.8.4}/node_modules/yaml/browser/dist/schema/yaml-1.1/bool.js +1 -1
  82. package/dist/node_modules/.pnpm/{yaml@2.8.3 → yaml@2.8.4}/node_modules/yaml/browser/dist/schema/yaml-1.1/float.js +1 -1
  83. package/dist/node_modules/.pnpm/{yaml@2.8.3 → yaml@2.8.4}/node_modules/yaml/browser/dist/schema/yaml-1.1/int.js +1 -1
  84. package/dist/node_modules/.pnpm/{yaml@2.8.3 → yaml@2.8.4}/node_modules/yaml/browser/dist/schema/yaml-1.1/merge.js +9 -6
  85. package/dist/node_modules/.pnpm/{yaml@2.8.3 → yaml@2.8.4}/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.js +1 -1
  86. package/dist/node_modules/.pnpm/{yaml@2.8.3 → yaml@2.8.4}/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.js +1 -1
  87. package/dist/node_modules/.pnpm/{yaml@2.8.3 → yaml@2.8.4}/node_modules/yaml/browser/dist/schema/yaml-1.1/schema.js +1 -1
  88. package/dist/node_modules/.pnpm/{yaml@2.8.3 → yaml@2.8.4}/node_modules/yaml/browser/dist/schema/yaml-1.1/set.js +1 -1
  89. package/dist/node_modules/.pnpm/{yaml@2.8.3 → yaml@2.8.4}/node_modules/yaml/browser/dist/schema/yaml-1.1/timestamp.js +1 -1
  90. package/dist/node_modules/.pnpm/{yaml@2.8.3 → yaml@2.8.4}/node_modules/yaml/browser/dist/stringify/foldFlowLines.js +1 -1
  91. package/dist/node_modules/.pnpm/{yaml@2.8.3 → yaml@2.8.4}/node_modules/yaml/browser/dist/stringify/stringify.js +1 -1
  92. package/dist/node_modules/.pnpm/{yaml@2.8.3 → yaml@2.8.4}/node_modules/yaml/browser/dist/stringify/stringifyCollection.js +1 -1
  93. package/dist/node_modules/.pnpm/{yaml@2.8.3 → yaml@2.8.4}/node_modules/yaml/browser/dist/stringify/stringifyComment.js +1 -1
  94. package/dist/node_modules/.pnpm/{yaml@2.8.3 → yaml@2.8.4}/node_modules/yaml/browser/dist/stringify/stringifyDocument.js +1 -1
  95. package/dist/node_modules/.pnpm/{yaml@2.8.3 → yaml@2.8.4}/node_modules/yaml/browser/dist/stringify/stringifyNumber.js +2 -2
  96. package/dist/node_modules/.pnpm/{yaml@2.8.3 → yaml@2.8.4}/node_modules/yaml/browser/dist/stringify/stringifyPair.js +1 -1
  97. package/dist/node_modules/.pnpm/{yaml@2.8.3 → yaml@2.8.4}/node_modules/yaml/browser/dist/stringify/stringifyString.js +1 -1
  98. package/dist/node_modules/.pnpm/{yaml@2.8.3 → yaml@2.8.4}/node_modules/yaml/browser/dist/visit.js +1 -1
  99. package/dist/playground/client.js +3 -3
  100. package/dist/playground/components/inputs.js +2 -2
  101. package/dist/playground/components/oauth-dialog.js +1 -1
  102. package/dist/playground/components/result-display.js +2 -2
  103. package/dist/playground/components/server-select.js +1 -1
  104. package/dist/playground/schema.js +1 -1
  105. package/dist/ui/base.js +1 -1
  106. package/dist/ui/components/dialog.js +1 -1
  107. package/dist/ui/create-client.js +1 -1
  108. package/dist/ui/operation/client.js +1 -1
  109. package/dist/ui/operation/index.js +2 -2
  110. package/dist/ui/operation/request-tabs.js +1 -1
  111. package/dist/ui/operation/usage-tabs/client.js +1 -1
  112. package/dist/ui/schema/client.js +2 -2
  113. package/dist/utils/document/process.js +5 -5
  114. package/dist/utils/pages/preset-auto.js +5 -4
  115. package/dist/utils/schema/index.d.ts +4 -0
  116. package/dist/utils/schema/to-string.js +11 -8
  117. package/package.json +15 -18
  118. package/dist/node_modules/.pnpm/@scalar_json-magic@0.12.8/node_modules/@scalar/json-magic/dist/bundle/plugins/parse-yaml/index.js +0 -1
  119. /package/dist/node_modules/.pnpm/{@scalar_json-magic@0.12.8 → @scalar_json-magic@0.12.12}/node_modules/@scalar/json-magic/dist/bundle/plugins/node.js +0 -0
  120. /package/dist/node_modules/.pnpm/{yaml@2.8.3 → yaml@2.8.4}/node_modules/yaml/browser/dist/index.js +0 -0
  121. /package/dist/node_modules/.pnpm/{yaml@2.8.3 → yaml@2.8.4}/node_modules/yaml/browser/dist/parse/cst-scalar.js +0 -0
  122. /package/dist/node_modules/.pnpm/{yaml@2.8.3 → yaml@2.8.4}/node_modules/yaml/browser/dist/parse/cst.js +0 -0
  123. /package/dist/node_modules/.pnpm/{yaml@2.8.3 → yaml@2.8.4}/node_modules/yaml/browser/index.js +0 -0
@@ -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.8.3/node_modules/yaml/browser/dist/nodes/YAMLSeq.js
7
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/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.8.3/node_modules/yaml/browser/dist/nodes/addPairToJSMap.js
6
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/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.8.3/node_modules/yaml/browser/dist/nodes/identity.js
1
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/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.8.3/node_modules/yaml/browser/dist/nodes/toJS.js
2
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/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.8.3/node_modules/yaml/browser/dist/parse/cst-visit.js
1
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/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.8.3/node_modules/yaml/browser/dist/parse/lexer.js
2
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/browser/dist/parse/lexer.js
3
3
  function isEmpty(ch) {
4
4
  switch (ch) {
5
5
  case void 0:
@@ -1,4 +1,4 @@
1
- //#region ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/browser/dist/parse/line-counter.js
1
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/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.8.3/node_modules/yaml/browser/dist/parse/parser.js
3
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/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;
@@ -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.8.3/node_modules/yaml/browser/dist/public-api.js
7
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/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.8.3/node_modules/yaml/browser/dist/schema/Schema.js
6
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/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.8.3/node_modules/yaml/browser/dist/schema/common/map.js
3
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/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.8.3/node_modules/yaml/browser/dist/schema/common/null.js
2
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/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.8.3/node_modules/yaml/browser/dist/schema/common/seq.js
3
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/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.8.3/node_modules/yaml/browser/dist/schema/common/string.js
2
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/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.8.3/node_modules/yaml/browser/dist/schema/core/bool.js
2
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/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.8.3/node_modules/yaml/browser/dist/schema/core/float.js
3
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/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.8.3/node_modules/yaml/browser/dist/schema/core/int.js
2
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/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.3/node_modules/yaml/browser/dist/schema/core/schema.js
8
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/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.8.3/node_modules/yaml/browser/dist/schema/json/schema.js
4
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/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.8.3/node_modules/yaml/browser/dist/schema/tags.js
17
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/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.8.3/node_modules/yaml/browser/dist/schema/yaml-1.1/binary.js
3
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/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.8.3/node_modules/yaml/browser/dist/schema/yaml-1.1/bool.js
2
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/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.8.3/node_modules/yaml/browser/dist/schema/yaml-1.1/float.js
3
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/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.8.3/node_modules/yaml/browser/dist/schema/yaml-1.1/int.js
2
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/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.8.3/node_modules/yaml/browser/dist/schema/yaml-1.1/merge.js
3
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/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,
@@ -12,13 +12,13 @@ const merge = {
12
12
  };
13
13
  const isMergeKey = (ctx, key) => (merge.identify(key) || isScalar(key) && (!key.type || key.type === Scalar.PLAIN) && merge.identify(key.value)) && ctx?.doc.schema.tags.some((tag) => tag.tag === merge.tag && tag.default);
14
14
  function addMergeToJSMap(ctx, map, value) {
15
- value = ctx && isAlias(value) ? value.resolve(ctx.doc) : value;
16
- if (isSeq(value)) for (const it of value.items) mergeValue(ctx, map, it);
17
- else if (Array.isArray(value)) for (const it of value) mergeValue(ctx, map, it);
18
- else mergeValue(ctx, map, value);
15
+ const source = resolveAliasValue(ctx, value);
16
+ if (isSeq(source)) for (const it of source.items) mergeValue(ctx, map, it);
17
+ else if (Array.isArray(source)) for (const it of source) mergeValue(ctx, map, it);
18
+ else mergeValue(ctx, map, source);
19
19
  }
20
20
  function mergeValue(ctx, map, value) {
21
- const source = ctx && isAlias(value) ? value.resolve(ctx.doc) : value;
21
+ const source = resolveAliasValue(ctx, value);
22
22
  if (!isMap(source)) throw new Error("Merge sources must be maps or map aliases");
23
23
  const srcMap = source.toJSON(null, ctx, Map);
24
24
  for (const [key, value] of srcMap) if (map instanceof Map) {
@@ -32,5 +32,8 @@ function mergeValue(ctx, map, value) {
32
32
  });
33
33
  return map;
34
34
  }
35
+ function resolveAliasValue(ctx, value) {
36
+ return ctx && isAlias(value) ? value.resolve(ctx.doc, ctx) : value;
37
+ }
35
38
  //#endregion
36
39
  export { addMergeToJSMap, isMergeKey, merge };
@@ -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.8.3/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.js
6
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/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.8.3/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.js
5
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/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.8.3/node_modules/yaml/browser/dist/schema/yaml-1.1/schema.js
14
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/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.8.3/node_modules/yaml/browser/dist/schema/yaml-1.1/set.js
4
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/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.8.3/node_modules/yaml/browser/dist/schema/yaml-1.1/timestamp.js
2
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/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.8.3/node_modules/yaml/browser/dist/stringify/foldFlowLines.js
1
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/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.8.3/node_modules/yaml/browser/dist/stringify/stringify.js
5
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/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.8.3/node_modules/yaml/browser/dist/stringify/stringifyCollection.js
4
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/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,4 +1,4 @@
1
- //#region ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/browser/dist/stringify/stringifyComment.js
1
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/browser/dist/stringify/stringifyComment.js
2
2
  /**
3
3
  * Stringifies a comment.
4
4
  *
@@ -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.8.3/node_modules/yaml/browser/dist/stringify/stringifyDocument.js
4
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/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,10 +1,10 @@
1
- //#region ../../node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/browser/dist/stringify/stringifyNumber.js
1
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/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);
5
5
  if (!isFinite(num)) return isNaN(num) ? ".nan" : num < 0 ? "-.inf" : ".inf";
6
6
  let n = Object.is(value, -0) ? "-0" : JSON.stringify(value);
7
- if (!format && minFractionDigits && (!tag || tag === "tag:yaml.org,2002:float") && /^\d/.test(n)) {
7
+ if (!format && minFractionDigits && (!tag || tag === "tag:yaml.org,2002:float") && /^-?\d/.test(n) && !n.includes("e")) {
8
8
  let i = n.indexOf(".");
9
9
  if (i < 0) {
10
10
  i = n.length;
@@ -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.8.3/node_modules/yaml/browser/dist/stringify/stringifyPair.js
5
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/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.8.3/node_modules/yaml/browser/dist/stringify/stringifyString.js
3
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/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,
@@ -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.8.3/node_modules/yaml/browser/dist/visit.js
2
+ //#region ../../node_modules/.pnpm/yaml@2.8.4/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");
@@ -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";
4
7
  import { useStorageKey } from "../ui/client/storage-key.js";
5
8
  import { useApiContext, useServerContext } from "../ui/contexts/api.js";
6
9
  import { useTranslations } from "../ui/client/i18n.js";
7
- import { cn } from "../utils/cn.js";
8
10
  import { DefaultResultDisplay } from "./components/result-display.js";
9
- import { MethodLabel } from "../ui/components/method-label.js";
10
11
  import { useQuery } from "../utils/use-query.js";
11
12
  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";
@@ -1,14 +1,14 @@
1
1
  "use client";
2
- import { useTranslations } from "../../ui/client/i18n.js";
3
2
  import { cn } from "../../utils/cn.js";
3
+ import { useTranslations } from "../../ui/client/i18n.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";
9
10
  import { ChevronRight, Plus, Trash2, X } from "lucide-react";
10
11
  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";
1
2
  import { useApiContext } from "../../ui/contexts/api.js";
2
3
  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";
2
3
  import { useTranslations, withReplacements } from "../../ui/client/i18n.js";
3
4
  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";
9
10
  import { CircleX } from "lucide-react";
10
11
  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");
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import { resolveServerUrl, withBase } from "../../utils/url.js";
3
+ import { cn } from "../../utils/cn.js";
3
4
  import { useServerContext } from "../../ui/contexts/api.js";
4
5
  import { useTranslations } from "../../ui/client/i18n.js";
5
- import { cn } from "../../utils/cn.js";
6
6
  import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "../../ui/components/select.js";
7
7
  import { Input, labelVariants } from "../../ui/components/input.js";
8
8
  import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle, DialogTrigger } from "../../ui/components/dialog.js";
@@ -1,7 +1,7 @@
1
+ import { dereferenceSwallow } from "../utils/schema/dereference.js";
1
2
  import { mergeAllOf } from "../utils/schema/merge.js";
2
3
  import { sample } from "../utils/schema/sample.js";
3
4
  import { schemaToString } from "../utils/schema/to-string.js";
4
- import { dereferenceSwallow } from "../utils/schema/dereference.js";
5
5
  import { createContext, use, useMemo } from "react";
6
6
  import { jsx } from "react/jsx-runtime";
7
7
  import { Ajv2020 } from "ajv/dist/2020.js";
package/dist/ui/base.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { parseSecurities } from "../utils/schema/index.js";
2
+ import { encodeInternalRef } from "../utils/schema/ref.js";
2
3
  import { defaultAdapters } from "../requests/media/adapter.js";
3
4
  import { ClientCodeBlockProvider } from "./components/codeblock.js";
4
- import { encodeInternalRef } from "../utils/schema/ref.js";
5
5
  import { APIPage } from "./api-page.js";
6
6
  import { pickSchema } from "../utils/schema/pick.js";
7
7
  import { PlaygroundAuthProvider } from "./client/boundary.lazy.js";
@@ -1,6 +1,6 @@
1
1
  "use client";
2
- import { useTranslations } from "../client/i18n.js";
3
2
  import { cn } from "../../utils/cn.js";
3
+ import { useTranslations } from "../client/i18n.js";
4
4
  import * as React from "react";
5
5
  import { jsx, jsxs } from "react/jsx-runtime";
6
6
  import { X } from "lucide-react";
@@ -1,8 +1,8 @@
1
1
  import { parseSecurities } from "../utils/schema/index.js";
2
+ import { dereferenceDocument } from "../utils/document/dereference.js";
2
3
  import { defaultAdapters } from "../requests/media/adapter.js";
3
4
  import { ClientCodeBlock, ClientCodeBlockProvider } from "./components/codeblock.js";
4
5
  import { AuthProvider } from "../playground/auth.js";
5
- import { dereferenceDocument } from "../utils/document/dereference.js";
6
6
  import { APIPage } from "./api-page.js";
7
7
  import { boundary_exports } from "./client/boundary.js";
8
8
  import { slug } from "github-slugger";
@@ -1,6 +1,6 @@
1
1
  "use client";
2
- import { useTranslations } from "../client/i18n.js";
3
2
  import { cn } from "../../utils/cn.js";
3
+ import { useTranslations } from "../client/i18n.js";
4
4
  import { createContext, use, useMemo, useRef, useState } from "react";
5
5
  import { jsx, jsxs } from "react/jsx-runtime";
6
6
  import { Check, Copy } from "lucide-react";
@@ -1,10 +1,10 @@
1
1
  import { idToTitle } from "../../utils/id-to-title.js";
2
2
  import { createMethod, methodKeys } from "../../utils/schema/index.js";
3
+ import { cn } from "../../utils/cn.js";
4
+ import { Badge, MethodLabel } from "../components/method-label.js";
3
5
  import { isMediaTypeSupported } from "../../requests/media/resolve-adapter.js";
4
6
  import "../../requests/media/adapter.js";
5
7
  import { I18nLabel } from "../client/i18n.js";
6
- import { cn } from "../../utils/cn.js";
7
- import { Badge, MethodLabel } from "../components/method-label.js";
8
8
  import { CopyTypeScriptPanel, OperationProvider } from "./client.js";
9
9
  import { Schema } from "../schema/index.js";
10
10
  import { AccordionContent, AccordionHeader, AccordionItem, AccordionTrigger, Accordions } from "../components/accordion.js";
@@ -1,6 +1,6 @@
1
1
  import { resolveRequestData } from "../../utils/url.js";
2
- import { I18nLabel } from "../client/i18n.js";
3
2
  import { MethodLabel } from "../components/method-label.js";
3
+ import { I18nLabel } from "../client/i18n.js";
4
4
  import { AccordionContent, AccordionHeader, AccordionItem, AccordionTrigger, Accordions } from "../components/accordion.js";
5
5
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
6
6
  import { Tabs, TabsContent, TabsList, TabsTrigger } from "fumadocs-ui/components/tabs";
@@ -56,7 +56,7 @@ function UsageTab({ id, lang, _client }) {
56
56
  }, [addListener, removeListener]);
57
57
  const code = useMemo(() => {
58
58
  if (!data) return;
59
- const url = joinURL(withBase(server ? resolveServerUrl(server.url, server.variables) : "/", typeof window !== "undefined" ? window.location.origin : "https://loading"), resolveRequestData(route, data));
59
+ const url = joinURL(server && typeof window !== "undefined" ? withBase(resolveServerUrl(server.url, server.variables), window.location.origin) : "https://example.com", resolveRequestData(route, data));
60
60
  if (_client) {
61
61
  const { generate, serverContext } = _client;
62
62
  if (typeof generate === "string") return generate;
@@ -1,12 +1,12 @@
1
1
  "use client";
2
- import { useTranslations } from "../client/i18n.js";
3
2
  import { cn } from "../../utils/cn.js";
4
3
  import { Badge } from "../components/method-label.js";
4
+ import { useTranslations } from "../client/i18n.js";
5
5
  import { Fragment, Suspense, createContext, use, useCallback, useDeferredValue, useEffect, useLayoutEffect, useMemo, useRef, useState } from "react";
6
6
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
7
+ import { cva } from "class-variance-authority";
7
8
  import { ChevronDown, FilterIcon } from "lucide-react";
8
9
  import { buttonVariants } from "fumadocs-ui/components/ui/button";
9
- import { cva } from "class-variance-authority";
10
10
  import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "fumadocs-ui/components/ui/collapsible";
11
11
  import { Tabs, TabsContent, TabsList, TabsTrigger } from "fumadocs-ui/components/tabs";
12
12
  import { Popover, PopoverContent, PopoverTrigger } from "fumadocs-ui/components/ui/popover";
@@ -1,8 +1,8 @@
1
- import { bundle } from "../../node_modules/.pnpm/@scalar_json-magic@0.12.8/node_modules/@scalar/json-magic/dist/bundle/bundle.js";
2
- import { upgrade } from "../../node_modules/.pnpm/@scalar_openapi-upgrader@0.2.6/node_modules/@scalar/openapi-upgrader/dist/upgrade.js";
3
- import { fetchUrls } from "../../node_modules/.pnpm/@scalar_json-magic@0.12.8/node_modules/@scalar/json-magic/dist/bundle/plugins/fetch-urls/index.js";
4
- import { readFiles } from "../../node_modules/.pnpm/@scalar_json-magic@0.12.8/node_modules/@scalar/json-magic/dist/bundle/plugins/read-files/index.js";
5
- import "../../node_modules/.pnpm/@scalar_json-magic@0.12.8/node_modules/@scalar/json-magic/dist/bundle/plugins/node.js";
1
+ import { bundle } from "../../node_modules/.pnpm/@scalar_json-magic@0.12.12/node_modules/@scalar/json-magic/dist/bundle/bundle.js";
2
+ import { upgrade } from "../../node_modules/.pnpm/@scalar_openapi-upgrader@0.2.7/node_modules/@scalar/openapi-upgrader/dist/upgrade.js";
3
+ import { fetchUrls } from "../../node_modules/.pnpm/@scalar_json-magic@0.12.12/node_modules/@scalar/json-magic/dist/bundle/plugins/fetch-urls/index.js";
4
+ import { readFiles } from "../../node_modules/.pnpm/@scalar_json-magic@0.12.12/node_modules/@scalar/json-magic/dist/bundle/plugins/read-files/index.js";
5
+ import "../../node_modules/.pnpm/@scalar_json-magic@0.12.12/node_modules/@scalar/json-magic/dist/bundle/plugins/node.js";
6
6
  import { dereferenceDocument } from "./dereference.js";
7
7
  //#region src/utils/document/process.ts
8
8
  /**