fumadocs-openapi 10.10.1 → 10.10.3

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 (127) hide show
  1. package/css/generated/shared.css +16 -8
  2. package/dist/node_modules/.pnpm/@apidevtools_json-schema-ref-parser@15.3.5_@types_json-schema@7.0.15/node_modules/@apidevtools/json-schema-ref-parser/dist/lib/bundle.js +239 -0
  3. package/dist/node_modules/.pnpm/@apidevtools_json-schema-ref-parser@15.3.5_@types_json-schema@7.0.15/node_modules/@apidevtools/json-schema-ref-parser/dist/lib/dereference.js +187 -0
  4. package/dist/node_modules/.pnpm/@apidevtools_json-schema-ref-parser@15.3.5_@types_json-schema@7.0.15/node_modules/@apidevtools/json-schema-ref-parser/dist/lib/index.js +136 -0
  5. package/dist/node_modules/.pnpm/@apidevtools_json-schema-ref-parser@15.3.5_@types_json-schema@7.0.15/node_modules/@apidevtools/json-schema-ref-parser/dist/lib/normalize-args.js +41 -0
  6. package/dist/node_modules/.pnpm/@apidevtools_json-schema-ref-parser@15.3.5_@types_json-schema@7.0.15/node_modules/@apidevtools/json-schema-ref-parser/dist/lib/options.js +124 -0
  7. package/dist/node_modules/.pnpm/@apidevtools_json-schema-ref-parser@15.3.5_@types_json-schema@7.0.15/node_modules/@apidevtools/json-schema-ref-parser/dist/lib/parse.js +109 -0
  8. package/dist/node_modules/.pnpm/@apidevtools_json-schema-ref-parser@15.3.5_@types_json-schema@7.0.15/node_modules/@apidevtools/json-schema-ref-parser/dist/lib/parsers/binary.js +30 -0
  9. package/dist/node_modules/.pnpm/@apidevtools_json-schema-ref-parser@15.3.5_@types_json-schema@7.0.15/node_modules/@apidevtools/json-schema-ref-parser/dist/lib/parsers/json.js +46 -0
  10. package/dist/node_modules/.pnpm/@apidevtools_json-schema-ref-parser@15.3.5_@types_json-schema@7.0.15/node_modules/@apidevtools/json-schema-ref-parser/dist/lib/parsers/text.js +36 -0
  11. package/dist/node_modules/.pnpm/@apidevtools_json-schema-ref-parser@15.3.5_@types_json-schema@7.0.15/node_modules/@apidevtools/json-schema-ref-parser/dist/lib/parsers/yaml.js +49 -0
  12. package/dist/node_modules/.pnpm/@apidevtools_json-schema-ref-parser@15.3.5_@types_json-schema@7.0.15/node_modules/@apidevtools/json-schema-ref-parser/dist/lib/pointer.js +242 -0
  13. package/dist/node_modules/.pnpm/@apidevtools_json-schema-ref-parser@15.3.5_@types_json-schema@7.0.15/node_modules/@apidevtools/json-schema-ref-parser/dist/lib/ref.js +247 -0
  14. package/dist/node_modules/.pnpm/@apidevtools_json-schema-ref-parser@15.3.5_@types_json-schema@7.0.15/node_modules/@apidevtools/json-schema-ref-parser/dist/lib/refs.js +210 -0
  15. package/dist/node_modules/.pnpm/@apidevtools_json-schema-ref-parser@15.3.5_@types_json-schema@7.0.15/node_modules/@apidevtools/json-schema-ref-parser/dist/lib/resolve-external.js +100 -0
  16. package/dist/node_modules/.pnpm/@apidevtools_json-schema-ref-parser@15.3.5_@types_json-schema@7.0.15/node_modules/@apidevtools/json-schema-ref-parser/dist/lib/resolvers/file.js +41 -0
  17. package/dist/node_modules/.pnpm/@apidevtools_json-schema-ref-parser@15.3.5_@types_json-schema@7.0.15/node_modules/@apidevtools/json-schema-ref-parser/dist/lib/resolvers/http.js +112 -0
  18. package/dist/node_modules/.pnpm/@apidevtools_json-schema-ref-parser@15.3.5_@types_json-schema@7.0.15/node_modules/@apidevtools/json-schema-ref-parser/dist/lib/util/convert-path-to-posix.js +8 -0
  19. package/dist/node_modules/.pnpm/@apidevtools_json-schema-ref-parser@15.3.5_@types_json-schema@7.0.15/node_modules/@apidevtools/json-schema-ref-parser/dist/lib/util/errors.js +146 -0
  20. package/dist/node_modules/.pnpm/@apidevtools_json-schema-ref-parser@15.3.5_@types_json-schema@7.0.15/node_modules/@apidevtools/json-schema-ref-parser/dist/lib/util/is-windows.js +5 -0
  21. package/dist/node_modules/.pnpm/@apidevtools_json-schema-ref-parser@15.3.5_@types_json-schema@7.0.15/node_modules/@apidevtools/json-schema-ref-parser/dist/lib/util/maybe.js +18 -0
  22. package/dist/node_modules/.pnpm/@apidevtools_json-schema-ref-parser@15.3.5_@types_json-schema@7.0.15/node_modules/@apidevtools/json-schema-ref-parser/dist/lib/util/next.js +11 -0
  23. package/dist/node_modules/.pnpm/@apidevtools_json-schema-ref-parser@15.3.5_@types_json-schema@7.0.15/node_modules/@apidevtools/json-schema-ref-parser/dist/lib/util/plugins.js +99 -0
  24. package/dist/node_modules/.pnpm/@apidevtools_json-schema-ref-parser@15.3.5_@types_json-schema@7.0.15/node_modules/@apidevtools/json-schema-ref-parser/dist/lib/util/schema-resources.js +30 -0
  25. package/dist/node_modules/.pnpm/@apidevtools_json-schema-ref-parser@15.3.5_@types_json-schema@7.0.15/node_modules/@apidevtools/json-schema-ref-parser/dist/lib/util/url.js +315 -0
  26. package/dist/ui/schema/client.js +70 -69
  27. package/dist/utils/document/process.js +7 -12
  28. package/package.json +4 -7
  29. package/dist/node_modules/.pnpm/@scalar_helpers@0.8.0/node_modules/@scalar/helpers/dist/general/create-limiter.js +0 -43
  30. package/dist/node_modules/.pnpm/@scalar_helpers@0.8.0/node_modules/@scalar/helpers/dist/object/is-object.js +0 -27
  31. package/dist/node_modules/.pnpm/@scalar_helpers@0.8.0/node_modules/@scalar/helpers/dist/object/prevent-pollution.js +0 -33
  32. package/dist/node_modules/.pnpm/@scalar_helpers@0.8.0/node_modules/@scalar/helpers/dist/queue/queue.js +0 -106
  33. package/dist/node_modules/.pnpm/@scalar_helpers@0.8.0/node_modules/@scalar/helpers/dist/string/generate-hash.js +0 -120
  34. package/dist/node_modules/.pnpm/@scalar_json-magic@0.12.14/node_modules/@scalar/json-magic/dist/bundle/bundle.js +0 -357
  35. package/dist/node_modules/.pnpm/@scalar_json-magic@0.12.14/node_modules/@scalar/json-magic/dist/bundle/plugins/fetch-urls/index.js +0 -73
  36. package/dist/node_modules/.pnpm/@scalar_json-magic@0.12.14/node_modules/@scalar/json-magic/dist/bundle/plugins/node.js +0 -3
  37. package/dist/node_modules/.pnpm/@scalar_json-magic@0.12.14/node_modules/@scalar/json-magic/dist/bundle/plugins/parse-yaml/index.js +0 -1
  38. package/dist/node_modules/.pnpm/@scalar_json-magic@0.12.14/node_modules/@scalar/json-magic/dist/bundle/plugins/read-files/index.js +0 -51
  39. package/dist/node_modules/.pnpm/@scalar_json-magic@0.12.14/node_modules/@scalar/json-magic/dist/bundle/value-generator.js +0 -102
  40. package/dist/node_modules/.pnpm/@scalar_json-magic@0.12.14/node_modules/@scalar/json-magic/dist/helpers/convert-to-local-ref.js +0 -24
  41. package/dist/node_modules/.pnpm/@scalar_json-magic@0.12.14/node_modules/@scalar/json-magic/dist/helpers/escape-json-pointer.js +0 -11
  42. package/dist/node_modules/.pnpm/@scalar_json-magic@0.12.14/node_modules/@scalar/json-magic/dist/helpers/get-schemas.js +0 -44
  43. package/dist/node_modules/.pnpm/@scalar_json-magic@0.12.14/node_modules/@scalar/json-magic/dist/helpers/get-segments-from-path.js +0 -10
  44. package/dist/node_modules/.pnpm/@scalar_json-magic@0.12.14/node_modules/@scalar/json-magic/dist/helpers/get-value-by-path.js +0 -42
  45. package/dist/node_modules/.pnpm/@scalar_json-magic@0.12.14/node_modules/@scalar/json-magic/dist/helpers/is-file-path.js +0 -23
  46. package/dist/node_modules/.pnpm/@scalar_json-magic@0.12.14/node_modules/@scalar/json-magic/dist/helpers/is-http-url.js +0 -23
  47. package/dist/node_modules/.pnpm/@scalar_json-magic@0.12.14/node_modules/@scalar/json-magic/dist/helpers/is-json-object.js +0 -28
  48. package/dist/node_modules/.pnpm/@scalar_json-magic@0.12.14/node_modules/@scalar/json-magic/dist/helpers/is-yaml.js +0 -21
  49. package/dist/node_modules/.pnpm/@scalar_json-magic@0.12.14/node_modules/@scalar/json-magic/dist/helpers/normalize.js +0 -33
  50. package/dist/node_modules/.pnpm/@scalar_json-magic@0.12.14/node_modules/@scalar/json-magic/dist/helpers/resolve-reference-path.js +0 -30
  51. package/dist/node_modules/.pnpm/@scalar_json-magic@0.12.14/node_modules/@scalar/json-magic/dist/helpers/set-value-at-path.js +0 -70
  52. package/dist/node_modules/.pnpm/@scalar_json-magic@0.12.14/node_modules/@scalar/json-magic/dist/helpers/to-relative-path.js +0 -33
  53. package/dist/node_modules/.pnpm/@scalar_json-magic@0.12.14/node_modules/@scalar/json-magic/dist/helpers/unescape-json-pointer.js +0 -12
  54. package/dist/node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/index.js +0 -19
  55. package/dist/node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.js +0 -430
  56. package/dist/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/compose-collection.js +0 -50
  57. package/dist/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/compose-doc.js +0 -39
  58. package/dist/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/compose-node.js +0 -85
  59. package/dist/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/compose-scalar.js +0 -57
  60. package/dist/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/composer.js +0 -193
  61. package/dist/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/resolve-block-map.js +0 -82
  62. package/dist/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/resolve-block-scalar.js +0 -174
  63. package/dist/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/resolve-block-seq.js +0 -40
  64. package/dist/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/resolve-end.js +0 -36
  65. package/dist/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/resolve-flow-collection.js +0 -153
  66. package/dist/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.js +0 -203
  67. package/dist/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/resolve-props.js +0 -105
  68. package/dist/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/util-contains-newline.js +0 -27
  69. package/dist/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/util-empty-scalar-position.js +0 -25
  70. package/dist/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/util-flow-indent-check.js +0 -10
  71. package/dist/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/util-map-includes.js +0 -10
  72. package/dist/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/doc/Document.js +0 -277
  73. package/dist/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/doc/anchors.js +0 -62
  74. package/dist/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/doc/applyReviver.js +0 -38
  75. package/dist/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/doc/createNode.js +0 -61
  76. package/dist/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/doc/directives.js +0 -163
  77. package/dist/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/errors.js +0 -48
  78. package/dist/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/index.js +0 -16
  79. package/dist/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/log.js +0 -6
  80. package/dist/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/Alias.js +0 -92
  81. package/dist/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/Collection.js +0 -117
  82. package/dist/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/Node.js +0 -32
  83. package/dist/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/Pair.js +0 -29
  84. package/dist/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/Scalar.js +0 -24
  85. package/dist/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/YAMLMap.js +0 -106
  86. package/dist/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/YAMLSeq.js +0 -104
  87. package/dist/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/addPairToJSMap.js +0 -49
  88. package/dist/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/identity.js +0 -33
  89. package/dist/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/toJS.js +0 -35
  90. package/dist/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/parse/cst-scalar.js +0 -3
  91. package/dist/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/parse/cst-visit.js +0 -89
  92. package/dist/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/parse/cst.js +0 -40
  93. package/dist/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/parse/lexer.js +0 -529
  94. package/dist/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/parse/line-counter.js +0 -45
  95. package/dist/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/parse/parser.js +0 -859
  96. package/dist/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/public-api.js +0 -44
  97. package/dist/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/Schema.js +0 -27
  98. package/dist/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/common/map.js +0 -16
  99. package/dist/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/common/null.js +0 -13
  100. package/dist/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/common/seq.js +0 -16
  101. package/dist/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/common/string.js +0 -14
  102. package/dist/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/core/bool.js +0 -17
  103. package/dist/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/core/float.js +0 -38
  104. package/dist/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/core/int.js +0 -37
  105. package/dist/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/core/schema.js +0 -23
  106. package/dist/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/json/schema.js +0 -61
  107. package/dist/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/tags.js +0 -81
  108. package/dist/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/yaml-1.1/binary.js +0 -52
  109. package/dist/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/yaml-1.1/bool.js +0 -24
  110. package/dist/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/yaml-1.1/float.js +0 -41
  111. package/dist/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/yaml-1.1/int.js +0 -70
  112. package/dist/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/yaml-1.1/merge.js +0 -39
  113. package/dist/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.js +0 -60
  114. package/dist/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.js +0 -56
  115. package/dist/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/yaml-1.1/schema.js +0 -39
  116. package/dist/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/yaml-1.1/set.js +0 -65
  117. package/dist/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/yaml-1.1/timestamp.js +0 -79
  118. package/dist/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/stringify/foldFlowLines.js +0 -111
  119. package/dist/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/stringify/stringify.js +0 -105
  120. package/dist/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/stringify/stringifyCollection.js +0 -116
  121. package/dist/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/stringify/stringifyComment.js +0 -16
  122. package/dist/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/stringify/stringifyDocument.js +0 -59
  123. package/dist/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/stringify/stringifyNumber.js +0 -19
  124. package/dist/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/stringify/stringifyPair.js +0 -95
  125. package/dist/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/stringify/stringifyString.js +0 -222
  126. package/dist/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/visit.js +0 -187
  127. package/dist/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/index.js +0 -16
@@ -4,9 +4,10 @@
4
4
  @source inline("---");
5
5
  @source inline("--fd-docs-row-1");
6
6
  @source inline("--min-height");
7
+ @source inline("--radix-popover-content-available-width");
7
8
  @source inline("-mode");
8
9
  @source inline("-ms-2");
9
- @source inline("-mx-2");
10
+ @source inline("-mx-3");
10
11
  @source inline("-translate-x-1/2");
11
12
  @source inline("-translate-y-1/2");
12
13
  @source inline("@4xl:flex-row");
@@ -29,6 +30,7 @@
29
30
  @source inline("@scalar/api-client-react");
30
31
  @source inline("@see");
31
32
  @source inline("@typescript-eslint/no-explicit-any");
33
+ @source inline("[&_svg]:size-3.5");
32
34
  @source inline("a");
33
35
  @source inline("absolute");
34
36
  @source inline("access_token");
@@ -111,6 +113,7 @@
111
113
  @source inline("bg-fd-secondary");
112
114
  @source inline("binary");
113
115
  @source inline("blob");
116
+ @source inline("block");
114
117
  @source inline("blue");
115
118
  @source inline("body");
116
119
  @source inline("bodyMediaType");
@@ -173,6 +176,7 @@
173
176
  @source inline("codegens");
174
177
  @source inline("col-span-full");
175
178
  @source inline("collapsible");
179
+ @source inline("collisionPadding");
176
180
  @source inline("color");
177
181
  @source inline("com");
178
182
  @source inline("compile");
@@ -282,6 +286,7 @@
282
286
  @source inline("encodeInternalRef");
283
287
  @source inline("encodeRequestData");
284
288
  @source inline("encoded");
289
+ @source inline("end");
285
290
  @source inline("end-2");
286
291
  @source inline("endpoint");
287
292
  @source inline("enforce");
@@ -308,6 +313,7 @@
308
313
  @source inline("false");
309
314
  @source inline("fast-content-type-parse");
310
315
  @source inline("fd-page-tree-item-name");
316
+ @source inline("fd-scroll-container");
311
317
  @source inline("fetch");
312
318
  @source inline("fetchOptions");
313
319
  @source inline("fetcher");
@@ -408,7 +414,6 @@
408
414
  @source inline("group-data-[state=open]:rotate-180");
409
415
  @source inline("group-focus-visible/accordion:text-fd-primary");
410
416
  @source inline("group/accordion");
411
- @source inline("group/property");
412
417
  @source inline("groupId");
413
418
  @source inline("h-10");
414
419
  @source inline("h-9");
@@ -425,7 +430,6 @@
425
430
  @source inline("headerParameters");
426
431
  @source inline("headers");
427
432
  @source inline("headingLevel");
428
- @source inline("height");
429
433
  @source inline("hidden");
430
434
  @source inline("hiddenProperties");
431
435
  @source inline("highlighted");
@@ -451,6 +455,7 @@
451
455
  @source inline("import");
452
456
  @source inline("imports");
453
457
  @source inline("in");
458
+ @source inline("in-popover");
454
459
  @source inline("include");
455
460
  @source inline("index");
456
461
  @source inline("indexItemMatch");
@@ -461,7 +466,6 @@
461
466
  @source inline("initial");
462
467
  @source inline("inline-flex");
463
468
  @source inline("input");
464
- @source inline("inputContainer");
465
469
  @source inline("inputs");
466
470
  @source inline("inset-0");
467
471
  @source inline("instanceof");
@@ -527,10 +531,12 @@
527
531
  @source inline("max");
528
532
  @source inline("max-age");
529
533
  @source inline("max-h-[460px]");
534
+ @source inline("max-w-(--radix-popover-content-available-width)");
530
535
  @source inline("max-w-[600px]");
531
536
  @source inline("max-w-full");
532
537
  @source inline("max-w-lg");
533
538
  @source inline("may");
539
+ @source inline("mb-0!");
534
540
  @source inline("mb-1");
535
541
  @source inline("mb-2");
536
542
  @source inline("mb-auto");
@@ -550,16 +556,16 @@
550
556
  @source inline("migrated");
551
557
  @source inline("mime");
552
558
  @source inline("min");
553
- @source inline("min-h-(--min-height,0)");
559
+ @source inline("min-h-(--min-height,200px)");
554
560
  @source inline("min-w-0");
555
561
  @source inline("missing");
556
562
  @source inline("modify");
557
563
  @source inline("mounted");
558
- @source inline("ms-2");
559
564
  @source inline("ms-auto");
560
565
  @source inline("mt-0!");
561
566
  @source inline("mt-10");
562
567
  @source inline("mt-2");
568
+ @source inline("mt-2!");
563
569
  @source inline("mt-3");
564
570
  @source inline("multipart/form-data");
565
571
  @source inline("multiple");
@@ -606,6 +612,7 @@
606
612
  @source inline("onKeyDown");
607
613
  @source inline("onOpenAutoFocus");
608
614
  @source inline("onOpenChange");
615
+ @source inline("onScrollEnd");
609
616
  @source inline("onSubmit");
610
617
  @source inline("onValueChange");
611
618
  @source inline("once");
@@ -653,6 +660,8 @@
653
660
  @source inline("parameters");
654
661
  @source inline("params");
655
662
  @source inline("parent");
663
+ @source inline("parentItem");
664
+ @source inline("parentPathIndex");
656
665
  @source inline("parseSecurities");
657
666
  @source inline("parsed");
658
667
  @source inline("parsedState");
@@ -673,7 +682,6 @@
673
682
  @source inline("pb-2");
674
683
  @source inline("pe-2");
675
684
  @source inline("pe-3");
676
- @source inline("peer");
677
685
  @source inline("peer-disabled:cursor-not-allowed");
678
686
  @source inline("peer-disabled:opacity-70");
679
687
  @source inline("perhaps");
@@ -696,7 +704,6 @@
696
704
  @source inline("pre");
697
705
  @source inline("prefix");
698
706
  @source inline("prev");
699
- @source inline("prevProperties");
700
707
  @source inline("prevent");
701
708
  @source inline("preventScroll");
702
709
  @source inline("primary");
@@ -713,6 +720,7 @@
713
720
  @source inline("proxyForwardCookie");
714
721
  @source inline("proxyUrl");
715
722
  @source inline("ps-2");
723
+ @source inline("ps-3");
716
724
  @source inline("ps-4.5");
717
725
  @source inline("ps-6");
718
726
  @source inline("pt-0");
@@ -0,0 +1,239 @@
1
+ import { getHash, resolve, stripHash } from "./util/url.js";
2
+ import { getSchemaBasePath } from "./util/schema-resources.js";
3
+ import Pointer from "./pointer.js";
4
+ import $Ref from "./ref.js";
5
+ //#region ../../node_modules/.pnpm/@apidevtools+json-schema-ref-parser@15.3.5_@types+json-schema@7.0.15/node_modules/@apidevtools/json-schema-ref-parser/dist/lib/bundle.js
6
+ /**
7
+ * Bundles all external JSON references into the main JSON schema, thus resulting in a schema that
8
+ * only has *internal* references, not any *external* references.
9
+ * This method mutates the JSON schema object, adding new references and re-mapping existing ones.
10
+ *
11
+ * @param parser
12
+ * @param options
13
+ */
14
+ function bundle(parser, options) {
15
+ const rootScopeBase = parser.$refs._root$Ref.dynamicIdScope ? getSchemaBasePath(parser.$refs._root$Ref.path, parser.schema) : parser.$refs._root$Ref.path;
16
+ const inventory = [];
17
+ crawl(parser, "schema", parser.$refs._root$Ref.path + "#", rootScopeBase, parser.$refs._root$Ref.dynamicIdScope, "#", 0, inventory, parser.$refs, options);
18
+ remap(inventory, options, parser.schema && typeof parser.schema === "object" && "$id" in parser.schema ? parser.schema.$id : void 0);
19
+ if ((options.bundle || {}).optimizeInternalRefs !== false) fixRefsThroughRefs(inventory, parser.schema);
20
+ }
21
+ /**
22
+ * Recursively crawls the given value, and inventories all JSON references.
23
+ *
24
+ * @param parent - The object containing the value to crawl. If the value is not an object or array, it will be ignored.
25
+ * @param key - The property key of `parent` to be crawled
26
+ * @param path - The full path of the property being crawled, possibly with a JSON Pointer in the hash
27
+ * @param pathFromRoot - The path of the property being crawled, from the schema root
28
+ * @param indirections
29
+ * @param inventory - An array of already-inventoried $ref pointers
30
+ * @param $refs
31
+ * @param options
32
+ */
33
+ function crawl(parent, key, path, scopeBase, dynamicIdScope, pathFromRoot, indirections, inventory, $refs, options) {
34
+ const obj = key === null ? parent : parent[key];
35
+ const bundleOptions = options.bundle || {};
36
+ const isExcludedPath = bundleOptions.excludedPathMatcher || (() => false);
37
+ if (obj && typeof obj === "object" && !ArrayBuffer.isView(obj) && !isExcludedPath(pathFromRoot)) {
38
+ const currentScopeBase = scopeBase;
39
+ if ($Ref.isAllowed$Ref(obj)) inventory$Ref(parent, key, path, currentScopeBase, dynamicIdScope, pathFromRoot, indirections, inventory, $refs, options);
40
+ else {
41
+ const keys = Object.keys(obj).sort((a, b) => {
42
+ if (a === "definitions" || a === "$defs") return -1;
43
+ else if (b === "definitions" || b === "$defs") return 1;
44
+ else return a.length - b.length;
45
+ });
46
+ for (const key of keys) {
47
+ const keyPath = Pointer.join(path, key);
48
+ const keyPathFromRoot = Pointer.join(pathFromRoot, key);
49
+ const value = obj[key];
50
+ const childScopeBase = dynamicIdScope && value && typeof value === "object" && !ArrayBuffer.isView(value) ? getSchemaBasePath(currentScopeBase, value) : currentScopeBase;
51
+ if ($Ref.isAllowed$Ref(value)) inventory$Ref(obj, key, keyPath, childScopeBase, dynamicIdScope, keyPathFromRoot, indirections, inventory, $refs, options);
52
+ else crawl(obj, key, keyPath, childScopeBase, dynamicIdScope, keyPathFromRoot, indirections, inventory, $refs, options);
53
+ if (value && typeof value === "object" && !Array.isArray(value)) {
54
+ if ("$ref" in value) bundleOptions?.onBundle?.(value["$ref"], obj[key], obj, key);
55
+ }
56
+ }
57
+ }
58
+ }
59
+ }
60
+ /**
61
+ * Inventories the given JSON Reference (i.e. records detailed information about it so we can
62
+ * optimize all $refs in the schema), and then crawls the resolved value.
63
+ *
64
+ * @param $refParent - The object that contains a JSON Reference as one of its keys
65
+ * @param $refKey - The key in `$refParent` that is a JSON Reference
66
+ * @param path - The full path of the JSON Reference at `$refKey`, possibly with a JSON Pointer in the hash
67
+ * @param indirections - unknown
68
+ * @param pathFromRoot - The path of the JSON Reference at `$refKey`, from the schema root
69
+ * @param inventory - An array of already-inventoried $ref pointers
70
+ * @param $refs
71
+ * @param options
72
+ */
73
+ function inventory$Ref($refParent, $refKey, path, scopeBase, dynamicIdScope, pathFromRoot, indirections, inventory, $refs, options) {
74
+ const $ref = $refKey === null ? $refParent : $refParent[$refKey];
75
+ const $refPath = resolve(dynamicIdScope ? scopeBase : path, $ref.$ref);
76
+ const pointer = $refs._resolve($refPath, pathFromRoot, options);
77
+ if (pointer === null) return;
78
+ const depth = Pointer.parse(pathFromRoot).length;
79
+ const file = stripHash(pointer.path);
80
+ const hash = getHash(pointer.path);
81
+ const external = file !== $refs._root$Ref.path && !$refs._aliases[file];
82
+ const extended = $Ref.isExtended$Ref($ref);
83
+ indirections += pointer.indirections;
84
+ const existingEntry = findInInventory(inventory, $refParent, $refKey);
85
+ if (existingEntry) if (depth < existingEntry.depth || indirections < existingEntry.indirections) removeFromInventory(inventory, existingEntry);
86
+ else return;
87
+ inventory.push({
88
+ $ref,
89
+ parent: $refParent,
90
+ key: $refKey,
91
+ pathFromRoot,
92
+ depth,
93
+ file,
94
+ hash,
95
+ value: pointer.value,
96
+ circular: pointer.circular,
97
+ extended,
98
+ external,
99
+ indirections
100
+ });
101
+ if (!existingEntry || external) crawl(pointer.value, null, pointer.path, pointer.$ref.path, pointer.$ref.dynamicIdScope, pathFromRoot, indirections + 1, inventory, $refs, options);
102
+ }
103
+ /**
104
+ * Re-maps every $ref pointer, so that they're all relative to the root of the JSON Schema.
105
+ * Each referenced value is dereferenced EXACTLY ONCE. All subsequent references to the same
106
+ * value are re-mapped to point to the first reference.
107
+ *
108
+ * @example: {
109
+ * first: { $ref: somefile.json#/some/part },
110
+ * second: { $ref: somefile.json#/another/part },
111
+ * third: { $ref: somefile.json },
112
+ * fourth: { $ref: somefile.json#/some/part/sub/part }
113
+ * }
114
+ *
115
+ * In this example, there are four references to the same file, but since the third reference points
116
+ * to the ENTIRE file, that's the only one we need to dereference. The other three can just be
117
+ * remapped to point inside the third one.
118
+ *
119
+ * On the other hand, if the third reference DIDN'T exist, then the first and second would both need
120
+ * to be dereferenced, since they point to different parts of the file. The fourth reference does NOT
121
+ * need to be dereferenced, because it can be remapped to point inside the first one.
122
+ *
123
+ * @param inventory
124
+ */
125
+ function remap(inventory, options, rootId) {
126
+ inventory.sort((a, b) => {
127
+ if (a.file !== b.file) return a.file < b.file ? -1 : 1;
128
+ else if (a.hash !== b.hash) return a.hash < b.hash ? -1 : 1;
129
+ else if (a.circular !== b.circular) return a.circular ? -1 : 1;
130
+ else if (a.extended !== b.extended) return a.extended ? 1 : -1;
131
+ else if (a.indirections !== b.indirections) return a.indirections - b.indirections;
132
+ else if (a.depth !== b.depth) return a.depth - b.depth;
133
+ else {
134
+ const aDefinitionsIndex = Math.max(a.pathFromRoot.lastIndexOf("/definitions"), a.pathFromRoot.lastIndexOf("/$defs"));
135
+ const bDefinitionsIndex = Math.max(b.pathFromRoot.lastIndexOf("/definitions"), b.pathFromRoot.lastIndexOf("/$defs"));
136
+ if (aDefinitionsIndex !== bDefinitionsIndex) return bDefinitionsIndex - aDefinitionsIndex;
137
+ else return a.pathFromRoot.length - b.pathFromRoot.length;
138
+ }
139
+ });
140
+ let file, hash, pathFromRoot;
141
+ for (const entry of inventory) {
142
+ const bundleOpts = options.bundle || {};
143
+ if (!entry.external) {
144
+ if (bundleOpts.optimizeInternalRefs !== false) entry.$ref.$ref = entry.hash;
145
+ } else if (entry.file === file && entry.hash === hash) if (rootId && isInsideIdScope(inventory, entry)) entry.$ref.$ref = rootId + pathFromRoot;
146
+ else entry.$ref.$ref = pathFromRoot;
147
+ else if (entry.file === file && entry.hash.indexOf(hash + "/") === 0) {
148
+ const subPath = Pointer.join(pathFromRoot, Pointer.parse(entry.hash.replace(hash, "#")));
149
+ if (rootId && isInsideIdScope(inventory, entry)) entry.$ref.$ref = rootId + subPath;
150
+ else entry.$ref.$ref = subPath;
151
+ } else {
152
+ file = entry.file;
153
+ hash = entry.hash;
154
+ pathFromRoot = entry.pathFromRoot;
155
+ entry.$ref = entry.parent[entry.key] = $Ref.dereference(entry.$ref, entry.value, options);
156
+ if (entry.circular) entry.$ref.$ref = entry.pathFromRoot;
157
+ }
158
+ }
159
+ }
160
+ /**
161
+ * TODO
162
+ */
163
+ function findInInventory(inventory, $refParent, $refKey) {
164
+ for (const existingEntry of inventory) if (existingEntry && existingEntry.parent === $refParent && existingEntry.key === $refKey) return existingEntry;
165
+ }
166
+ function removeFromInventory(inventory, entry) {
167
+ const index = inventory.indexOf(entry);
168
+ inventory.splice(index, 1);
169
+ }
170
+ /**
171
+ * After remapping, some $ref paths may traverse through other $ref nodes.
172
+ * JSON pointer resolution does not follow $ref indirection, so these paths are invalid.
173
+ * This function detects and fixes such paths by following any intermediate $refs
174
+ * to compute a valid direct path.
175
+ */
176
+ function fixRefsThroughRefs(inventory, schema) {
177
+ for (const entry of inventory) {
178
+ if (!entry.$ref || typeof entry.$ref !== "object" || !("$ref" in entry.$ref)) continue;
179
+ const refValue = entry.$ref.$ref;
180
+ if (typeof refValue !== "string" || !refValue.startsWith("#/")) continue;
181
+ const fixedPath = resolvePathThroughRefs(schema, refValue);
182
+ if (fixedPath !== refValue) entry.$ref.$ref = fixedPath;
183
+ }
184
+ }
185
+ /**
186
+ * Walks a JSON pointer path through the schema. If any intermediate value
187
+ * is a $ref, follows it and adjusts the path accordingly.
188
+ * Returns the corrected path that doesn't traverse through any $ref.
189
+ */
190
+ function resolvePathThroughRefs(schema, refPath) {
191
+ if (!refPath.startsWith("#/")) return refPath;
192
+ const segments = refPath.slice(2).split("/");
193
+ let current = schema;
194
+ const resolvedSegments = [];
195
+ for (const seg of segments) {
196
+ if (current === null || current === void 0 || typeof current !== "object") return refPath;
197
+ if ("$ref" in current && typeof current.$ref === "string" && current.$ref.startsWith("#/")) {
198
+ const targetSegments = current.$ref.slice(2).split("/");
199
+ resolvedSegments.length = 0;
200
+ resolvedSegments.push(...targetSegments);
201
+ current = walkPath(schema, current.$ref);
202
+ if (current === null || current === void 0 || typeof current !== "object") return refPath;
203
+ }
204
+ const decoded = seg.replace(/~1/g, "/").replace(/~0/g, "~");
205
+ current = current[Array.isArray(current) ? parseInt(decoded) : decoded];
206
+ resolvedSegments.push(seg);
207
+ }
208
+ return "#/" + resolvedSegments.join("/");
209
+ }
210
+ /**
211
+ * Walks a JSON pointer path through a schema object, returning the value at that path.
212
+ */
213
+ function walkPath(schema, path) {
214
+ if (!path.startsWith("#/")) return;
215
+ const segments = path.slice(2).split("/");
216
+ let current = schema;
217
+ for (const seg of segments) {
218
+ if (current === null || current === void 0 || typeof current !== "object") return;
219
+ const decoded = seg.replace(/~1/g, "/").replace(/~0/g, "~");
220
+ current = current[Array.isArray(current) ? parseInt(decoded) : decoded];
221
+ }
222
+ return current;
223
+ }
224
+ /**
225
+ * Checks whether the given inventory entry is located inside a sub-schema that has its own $id.
226
+ * If so, root-relative JSON Pointer $refs placed at this location would be resolved against
227
+ * the $id base URI rather than the document root, making them invalid.
228
+ */
229
+ function isInsideIdScope(inventory, entry) {
230
+ for (const other of inventory) {
231
+ if (other.pathFromRoot === "#" || other.pathFromRoot === "#/") continue;
232
+ if (entry.pathFromRoot.startsWith(other.pathFromRoot + "/")) {
233
+ if (other.value && typeof other.value === "object" && "$id" in other.value) return true;
234
+ }
235
+ }
236
+ return false;
237
+ }
238
+ //#endregion
239
+ export { bundle as default };
@@ -0,0 +1,187 @@
1
+ import { cwd, resolve } from "./util/url.js";
2
+ import { TimeoutError } from "./util/errors.js";
3
+ import { getSchemaBasePath } from "./util/schema-resources.js";
4
+ import Pointer from "./pointer.js";
5
+ import $Ref from "./ref.js";
6
+ //#region ../../node_modules/.pnpm/@apidevtools+json-schema-ref-parser@15.3.5_@types+json-schema@7.0.15/node_modules/@apidevtools/json-schema-ref-parser/dist/lib/dereference.js
7
+ var dereference_default = dereference;
8
+ /**
9
+ * Crawls the JSON schema, finds all JSON references, and dereferences them.
10
+ * This method mutates the JSON schema object, replacing JSON references with their resolved value.
11
+ *
12
+ * @param parser
13
+ * @param options
14
+ */
15
+ function dereference(parser, options) {
16
+ const start = Date.now();
17
+ const rootScopeBase = parser.$refs._root$Ref.dynamicIdScope ? getSchemaBasePath(parser.$refs._root$Ref.path, parser.schema) : parser.$refs._root$Ref.path;
18
+ const dereferenced = crawl(parser.schema, parser.$refs._root$Ref.path, rootScopeBase, parser.$refs._root$Ref.dynamicIdScope, "#", /* @__PURE__ */ new Set(), /* @__PURE__ */ new Set(), /* @__PURE__ */ new Map(), parser.$refs, options, start, 0);
19
+ parser.$refs.circular = dereferenced.circular;
20
+ parser.schema = dereferenced.value;
21
+ }
22
+ /**
23
+ * Recursively crawls the given value, and dereferences any JSON references.
24
+ *
25
+ * @param obj - The value to crawl. If it's not an object or array, it will be ignored.
26
+ * @param path - The full path of `obj`, possibly with a JSON Pointer in the hash
27
+ * @param pathFromRoot - The path of `obj` from the schema root
28
+ * @param parents - An array of the parent objects that have already been dereferenced
29
+ * @param processedObjects - An array of all the objects that have already been processed
30
+ * @param dereferencedCache - An map of all the dereferenced objects
31
+ * @param $refs
32
+ * @param options
33
+ * @param startTime - The time when the dereferencing started
34
+ * @param depth - The current recursion depth
35
+ * @returns
36
+ */
37
+ function crawl(obj, path, scopeBase, dynamicIdScope, pathFromRoot, parents, processedObjects, dereferencedCache, $refs, options, startTime, depth) {
38
+ let dereferenced;
39
+ const result = {
40
+ value: obj,
41
+ circular: false
42
+ };
43
+ checkDereferenceTimeout(startTime, options);
44
+ const derefOptions = options.dereference || {};
45
+ const maxDepth = derefOptions.maxDepth ?? 500;
46
+ if (depth > maxDepth) throw new RangeError(`Maximum dereference depth (${maxDepth}) exceeded at ${pathFromRoot}. This likely indicates an extremely deep or recursive schema. You can increase this limit with the dereference.maxDepth option.`);
47
+ const isExcludedPath = derefOptions.excludedPathMatcher || (() => false);
48
+ if (derefOptions?.circular === "ignore" || !processedObjects.has(obj)) {
49
+ if (obj && typeof obj === "object" && !ArrayBuffer.isView(obj) && !isExcludedPath(pathFromRoot)) {
50
+ parents.add(obj);
51
+ processedObjects.add(obj);
52
+ const currentScopeBase = scopeBase;
53
+ if ($Ref.isAllowed$Ref(obj, options)) {
54
+ dereferenced = dereference$Ref(obj, path, currentScopeBase, dynamicIdScope, pathFromRoot, parents, processedObjects, dereferencedCache, $refs, options, startTime, depth);
55
+ result.circular = dereferenced.circular;
56
+ result.value = dereferenced.value;
57
+ } else for (const key of Object.keys(obj)) {
58
+ checkDereferenceTimeout(startTime, options);
59
+ const keyPath = Pointer.join(path, key);
60
+ const keyPathFromRoot = Pointer.join(pathFromRoot, key);
61
+ if (isExcludedPath(keyPathFromRoot)) continue;
62
+ const value = obj[key];
63
+ const childScopeBase = dynamicIdScope && value && typeof value === "object" && !ArrayBuffer.isView(value) ? getSchemaBasePath(currentScopeBase, value) : currentScopeBase;
64
+ let circular;
65
+ if ($Ref.isAllowed$Ref(value, options)) {
66
+ dereferenced = dereference$Ref(value, keyPath, childScopeBase, dynamicIdScope, keyPathFromRoot, parents, processedObjects, dereferencedCache, $refs, options, startTime, depth);
67
+ circular = dereferenced.circular;
68
+ if (obj[key] !== dereferenced.value) {
69
+ const preserved = /* @__PURE__ */ new Map();
70
+ if (derefOptions?.preservedProperties) {
71
+ if (typeof obj[key] === "object" && !Array.isArray(obj[key])) derefOptions?.preservedProperties.forEach((prop) => {
72
+ if (prop in obj[key]) preserved.set(prop, obj[key][prop]);
73
+ });
74
+ }
75
+ let assignedValue = dereferenced.value;
76
+ if (derefOptions?.cloneReferences && !circular && assignedValue && typeof assignedValue === "object") assignedValue = structuredClone(assignedValue);
77
+ obj[key] = assignedValue;
78
+ if (derefOptions?.preservedProperties) {
79
+ if (preserved.size && typeof obj[key] === "object" && !Array.isArray(obj[key])) preserved.forEach((value, prop) => {
80
+ obj[key][prop] = value;
81
+ });
82
+ }
83
+ derefOptions?.onDereference?.(value.$ref, obj[key], obj, key);
84
+ }
85
+ } else if (!parents.has(value)) {
86
+ dereferenced = crawl(value, keyPath, childScopeBase, dynamicIdScope, keyPathFromRoot, parents, processedObjects, dereferencedCache, $refs, options, startTime, depth + 1);
87
+ circular = dereferenced.circular;
88
+ if (obj[key] !== dereferenced.value) obj[key] = dereferenced.value;
89
+ } else circular = foundCircularReference(keyPath, $refs, options);
90
+ result.circular = result.circular || circular;
91
+ }
92
+ parents.delete(obj);
93
+ }
94
+ }
95
+ return result;
96
+ }
97
+ /**
98
+ * Dereferences the given JSON Reference, and then crawls the resulting value.
99
+ *
100
+ * @param $ref - The JSON Reference to resolve
101
+ * @param path - The full path of `$ref`, possibly with a JSON Pointer in the hash
102
+ * @param pathFromRoot - The path of `$ref` from the schema root
103
+ * @param parents - An array of the parent objects that have already been dereferenced
104
+ * @param processedObjects - An array of all the objects that have already been dereferenced
105
+ * @param dereferencedCache - An map of all the dereferenced objects
106
+ * @param $refs
107
+ * @param options
108
+ * @returns
109
+ */
110
+ function dereference$Ref($ref, path, scopeBase, dynamicIdScope, pathFromRoot, parents, processedObjects, dereferencedCache, $refs, options, startTime, depth) {
111
+ const $refPath = resolve($Ref.isExternal$Ref($ref) && options?.dereference?.externalReferenceResolution === "root" ? cwd() : dynamicIdScope ? scopeBase : path, $ref.$ref);
112
+ const cache = dereferencedCache.get($refPath);
113
+ if (cache) {
114
+ if (!cache.circular) {
115
+ const refKeys = Object.keys($ref);
116
+ if (refKeys.length > 1) {
117
+ const extraKeys = {};
118
+ for (const key of refKeys) if (key !== "$ref" && !(key in cache.value)) extraKeys[key] = $ref[key];
119
+ return {
120
+ circular: cache.circular,
121
+ value: Object.assign({}, cache.value, extraKeys)
122
+ };
123
+ }
124
+ return cache;
125
+ }
126
+ if (typeof cache.value === "object" && "$ref" in cache.value && "$ref" in $ref) {
127
+ if (cache.value.$ref === $ref.$ref) {
128
+ foundCircularReference(path, $refs, options);
129
+ return cache;
130
+ }
131
+ } else {
132
+ foundCircularReference(path, $refs, options);
133
+ return cache;
134
+ }
135
+ }
136
+ const pointer = $refs._resolve($refPath, path, options);
137
+ if (pointer === null) return {
138
+ circular: false,
139
+ value: null
140
+ };
141
+ const directCircular = pointer.circular;
142
+ let circular = directCircular || parents.has(pointer.value);
143
+ if (circular) foundCircularReference(path, $refs, options);
144
+ let dereferencedValue = $Ref.dereference($ref, pointer.value, options);
145
+ if (!circular) {
146
+ const dereferenced = crawl(dereferencedValue, pointer.path, pointer.$ref.path, pointer.$ref.dynamicIdScope, pathFromRoot, parents, processedObjects, dereferencedCache, $refs, options, startTime, depth + 1);
147
+ circular = dereferenced.circular;
148
+ dereferencedValue = dereferenced.value;
149
+ }
150
+ if (circular && !directCircular && options.dereference?.circular === "ignore") dereferencedValue = $ref;
151
+ if (directCircular) dereferencedValue.$ref = pathFromRoot;
152
+ const dereferencedObject = {
153
+ circular,
154
+ value: dereferencedValue
155
+ };
156
+ if (Object.keys($ref).length === 1) dereferencedCache.set($refPath, dereferencedObject);
157
+ return dereferencedObject;
158
+ }
159
+ /**
160
+ * Check if we've run past our allowed timeout and throw an error if we have.
161
+ *
162
+ * @param startTime - The time when the dereferencing started.
163
+ * @param options
164
+ */
165
+ function checkDereferenceTimeout(startTime, options) {
166
+ if (options && options.timeoutMs) {
167
+ if (Date.now() - startTime > options.timeoutMs) throw new TimeoutError(options.timeoutMs);
168
+ }
169
+ }
170
+ /**
171
+ * Called when a circular reference is found.
172
+ * It sets the {@link $Refs#circular} flag, executes the options.dereference.onCircular callback,
173
+ * and throws an error if options.dereference.circular is false.
174
+ *
175
+ * @param keyPath - The JSON Reference path of the circular reference
176
+ * @param $refs
177
+ * @param options
178
+ * @returns - always returns true, to indicate that a circular reference was found
179
+ */
180
+ function foundCircularReference(keyPath, $refs, options) {
181
+ $refs.circular = true;
182
+ options?.dereference?.onCircular?.(keyPath);
183
+ if (!options.dereference.circular) throw /* @__PURE__ */ new ReferenceError(`Circular $ref pointer found at ${keyPath}`);
184
+ return true;
185
+ }
186
+ //#endregion
187
+ export { dereference_default as default };