@scalar/workspace-store 0.75.0 → 0.77.0

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 (75) hide show
  1. package/CHANGELOG.md +40 -0
  2. package/dist/client.d.ts.map +1 -1
  3. package/dist/client.js +76 -62
  4. package/dist/entities/auth/index.d.ts.map +1 -1
  5. package/dist/entities/auth/index.js +26 -14
  6. package/dist/entities/auth/schema.d.ts +65 -0
  7. package/dist/entities/auth/schema.d.ts.map +1 -1
  8. package/dist/entities/history/index.d.ts.map +1 -1
  9. package/dist/entities/history/index.js +25 -14
  10. package/dist/helpers/dynamic-ref.d.ts +4 -25
  11. package/dist/helpers/dynamic-ref.d.ts.map +1 -1
  12. package/dist/helpers/dynamic-ref.js +33 -76
  13. package/dist/helpers/get-resolved-security-scheme.d.ts +12 -0
  14. package/dist/helpers/get-resolved-security-scheme.d.ts.map +1 -0
  15. package/dist/helpers/get-resolved-security-scheme.js +24 -0
  16. package/dist/helpers/resolve-form-schema.js +1 -1
  17. package/dist/helpers/resolve-schema-with-annotations.js +1 -1
  18. package/dist/helpers/resolve-security-requirements.js +2 -2
  19. package/dist/mutators/document.js +3 -3
  20. package/dist/navigation/get-navigation-options.d.ts.map +1 -1
  21. package/dist/navigation/get-navigation-options.js +10 -0
  22. package/dist/navigation/helpers/traverse-asyncapi-document.d.ts.map +1 -1
  23. package/dist/navigation/helpers/traverse-asyncapi-document.js +37 -3
  24. package/dist/request-example/builder/body/aspnet-form-fields.d.ts +26 -0
  25. package/dist/request-example/builder/body/aspnet-form-fields.d.ts.map +1 -0
  26. package/dist/request-example/builder/body/aspnet-form-fields.js +179 -0
  27. package/dist/request-example/builder/body/build-multipart.d.ts.map +1 -1
  28. package/dist/request-example/builder/body/build-multipart.js +9 -5
  29. package/dist/request-example/builder/body/build-request-body.d.ts +5 -1
  30. package/dist/request-example/builder/body/build-request-body.d.ts.map +1 -1
  31. package/dist/request-example/builder/body/build-request-body.js +38 -8
  32. package/dist/request-example/builder/helpers/get-example-from-schema.d.ts.map +1 -1
  33. package/dist/request-example/builder/helpers/get-example-from-schema.js +21 -16
  34. package/dist/request-example/builder/helpers/get-example.js +1 -1
  35. package/dist/request-example/builder/helpers/get-resolved-url.d.ts.map +1 -1
  36. package/dist/request-example/builder/helpers/get-resolved-url.js +2 -4
  37. package/dist/request-example/builder/helpers/get-server-variables.d.ts +1 -1
  38. package/dist/request-example/builder/helpers/get-server-variables.d.ts.map +1 -1
  39. package/dist/request-example/builder/helpers/get-server-variables.js +2 -12
  40. package/dist/request-example/builder/helpers/resolve-server-url.d.ts +4 -0
  41. package/dist/request-example/builder/helpers/resolve-server-url.d.ts.map +1 -0
  42. package/dist/request-example/builder/helpers/resolve-server-url.js +4 -0
  43. package/dist/request-example/builder/index.d.ts +1 -0
  44. package/dist/request-example/builder/index.d.ts.map +1 -1
  45. package/dist/request-example/builder/index.js +1 -0
  46. package/dist/request-example/builder/request-factory.d.ts +3 -1
  47. package/dist/request-example/builder/request-factory.d.ts.map +1 -1
  48. package/dist/request-example/builder/request-factory.js +6 -7
  49. package/dist/request-example/context/security/merge-security.d.ts.map +1 -1
  50. package/dist/request-example/context/security/merge-security.js +13 -1
  51. package/dist/request-example/index.d.ts +2 -1
  52. package/dist/request-example/index.d.ts.map +1 -1
  53. package/dist/request-example/index.js +2 -1
  54. package/dist/request-example/xml/get-xml-example.js +7 -5
  55. package/dist/request-example/xml/write-xml.d.ts +2 -0
  56. package/dist/request-example/xml/write-xml.d.ts.map +1 -1
  57. package/dist/request-example/xml/write-xml.js +14 -4
  58. package/dist/{resolve.d.ts → resolve/index.d.ts} +3 -3
  59. package/dist/resolve/index.d.ts.map +1 -0
  60. package/dist/{resolve.js → resolve/index.js} +7 -5
  61. package/dist/schemas/navigation.d.ts +47 -2
  62. package/dist/schemas/navigation.d.ts.map +1 -1
  63. package/dist/schemas/navigation.js +11 -0
  64. package/dist/schemas/reference-config/index.d.ts +13 -0
  65. package/dist/schemas/reference-config/index.d.ts.map +1 -1
  66. package/dist/schemas/reference-config/settings.d.ts +13 -0
  67. package/dist/schemas/reference-config/settings.d.ts.map +1 -1
  68. package/dist/schemas/v3.1/strict/openapi-document.d.ts +455 -0
  69. package/dist/schemas/v3.1/strict/openapi-document.d.ts.map +1 -1
  70. package/dist/schemas/v3.2/strict/openapi-document.d.ts +455 -0
  71. package/dist/schemas/v3.2/strict/openapi-document.d.ts.map +1 -1
  72. package/dist/server.d.ts.map +1 -1
  73. package/dist/server.js +11 -10
  74. package/package.json +16 -15
  75. package/dist/resolve.d.ts.map +0 -1
@@ -3057,6 +3057,19 @@ declare const SelectedSecuritySchema: import("@scalar/typebox").TObject<{
3057
3057
  }>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
3058
3058
  id: import("@scalar/typebox").TString;
3059
3059
  title: import("@scalar/typebox").TString;
3060
+ }>, import("@scalar/typebox").TObject<{
3061
+ type: import("@scalar/typebox").TLiteral<"asyncapi-messages">;
3062
+ name: import("@scalar/typebox").TString;
3063
+ children: import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>;
3064
+ }>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
3065
+ id: import("@scalar/typebox").TString;
3066
+ title: import("@scalar/typebox").TString;
3067
+ }>, import("@scalar/typebox").TObject<{
3068
+ type: import("@scalar/typebox").TLiteral<"asyncapi-reusable-message">;
3069
+ name: import("@scalar/typebox").TString;
3070
+ }>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
3071
+ id: import("@scalar/typebox").TString;
3072
+ title: import("@scalar/typebox").TString;
3060
3073
  }>, import("@scalar/typebox").TObject<{
3061
3074
  type: import("@scalar/typebox").TLiteral<"model">;
3062
3075
  ref: import("@scalar/typebox").TString;
@@ -5418,6 +5431,19 @@ export declare const AuthSchema: import("@scalar/typebox").TObject<{
5418
5431
  }>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
5419
5432
  id: import("@scalar/typebox").TString;
5420
5433
  title: import("@scalar/typebox").TString;
5434
+ }>, import("@scalar/typebox").TObject<{
5435
+ type: import("@scalar/typebox").TLiteral<"asyncapi-messages">;
5436
+ name: import("@scalar/typebox").TString;
5437
+ children: import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>;
5438
+ }>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
5439
+ id: import("@scalar/typebox").TString;
5440
+ title: import("@scalar/typebox").TString;
5441
+ }>, import("@scalar/typebox").TObject<{
5442
+ type: import("@scalar/typebox").TLiteral<"asyncapi-reusable-message">;
5443
+ name: import("@scalar/typebox").TString;
5444
+ }>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
5445
+ id: import("@scalar/typebox").TString;
5446
+ title: import("@scalar/typebox").TString;
5421
5447
  }>, import("@scalar/typebox").TObject<{
5422
5448
  type: import("@scalar/typebox").TLiteral<"model">;
5423
5449
  ref: import("@scalar/typebox").TString;
@@ -7443,6 +7469,19 @@ export declare const AuthSchema: import("@scalar/typebox").TObject<{
7443
7469
  }>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
7444
7470
  id: import("@scalar/typebox").TString;
7445
7471
  title: import("@scalar/typebox").TString;
7472
+ }>, import("@scalar/typebox").TObject<{
7473
+ type: import("@scalar/typebox").TLiteral<"asyncapi-messages">;
7474
+ name: import("@scalar/typebox").TString;
7475
+ children: import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>;
7476
+ }>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
7477
+ id: import("@scalar/typebox").TString;
7478
+ title: import("@scalar/typebox").TString;
7479
+ }>, import("@scalar/typebox").TObject<{
7480
+ type: import("@scalar/typebox").TLiteral<"asyncapi-reusable-message">;
7481
+ name: import("@scalar/typebox").TString;
7482
+ }>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
7483
+ id: import("@scalar/typebox").TString;
7484
+ title: import("@scalar/typebox").TString;
7446
7485
  }>, import("@scalar/typebox").TObject<{
7447
7486
  type: import("@scalar/typebox").TLiteral<"model">;
7448
7487
  ref: import("@scalar/typebox").TString;
@@ -9806,6 +9845,19 @@ export declare const DocumentAuthSchema: import("@scalar/typebox").TRecord<impor
9806
9845
  }>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
9807
9846
  id: import("@scalar/typebox").TString;
9808
9847
  title: import("@scalar/typebox").TString;
9848
+ }>, import("@scalar/typebox").TObject<{
9849
+ type: import("@scalar/typebox").TLiteral<"asyncapi-messages">;
9850
+ name: import("@scalar/typebox").TString;
9851
+ children: import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>;
9852
+ }>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
9853
+ id: import("@scalar/typebox").TString;
9854
+ title: import("@scalar/typebox").TString;
9855
+ }>, import("@scalar/typebox").TObject<{
9856
+ type: import("@scalar/typebox").TLiteral<"asyncapi-reusable-message">;
9857
+ name: import("@scalar/typebox").TString;
9858
+ }>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
9859
+ id: import("@scalar/typebox").TString;
9860
+ title: import("@scalar/typebox").TString;
9809
9861
  }>, import("@scalar/typebox").TObject<{
9810
9862
  type: import("@scalar/typebox").TLiteral<"model">;
9811
9863
  ref: import("@scalar/typebox").TString;
@@ -11831,6 +11883,19 @@ export declare const DocumentAuthSchema: import("@scalar/typebox").TRecord<impor
11831
11883
  }>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
11832
11884
  id: import("@scalar/typebox").TString;
11833
11885
  title: import("@scalar/typebox").TString;
11886
+ }>, import("@scalar/typebox").TObject<{
11887
+ type: import("@scalar/typebox").TLiteral<"asyncapi-messages">;
11888
+ name: import("@scalar/typebox").TString;
11889
+ children: import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>;
11890
+ }>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
11891
+ id: import("@scalar/typebox").TString;
11892
+ title: import("@scalar/typebox").TString;
11893
+ }>, import("@scalar/typebox").TObject<{
11894
+ type: import("@scalar/typebox").TLiteral<"asyncapi-reusable-message">;
11895
+ name: import("@scalar/typebox").TString;
11896
+ }>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
11897
+ id: import("@scalar/typebox").TString;
11898
+ title: import("@scalar/typebox").TString;
11834
11899
  }>, import("@scalar/typebox").TObject<{
11835
11900
  type: import("@scalar/typebox").TLiteral<"model">;
11836
11901
  ref: import("@scalar/typebox").TString;
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/entities/auth/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAQ,MAAM,iBAAiB,CAAA;AA+BnD,QAAA,MAAM,mBAAmB;;IAGrB,sEAAsE;;;;;;IAKzE,CAAA;AAED,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,OAAO,mBAAmB,CAAC,CAAA;AAE9D,QAAA,MAAM,iBAAiB;;;;;;;;;IAOtB,CAAA;AAED,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,OAAO,iBAAiB,CAAC,CAAA;AAc1D,QAAA,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwB3B,CAAA;AAEF,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,OAAO,uBAAuB,CAAC,CAAA;AAEtE,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAKhB,CAAA;AAED,MAAM,MAAM,YAAY,GAAG,MAAM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AA;IAEnF;;;;;OAKG;IACH,gBAAgB,EAAE,CAAC,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;IAE9D;;;;OAIG;IACH,oBAAoB,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,IAAI,CAAA;IAEpD;;;;OAIG;IACH,IAAI,EAAE,CAAC,IAAI,EAAE,eAAe,KAAK,IAAI,CAAA;IAErC;;;;OAIG;IACH,MAAM,EAAE,MAAM,eAAe,CAAA;CAC9B,CAAA;AAID;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,kBAAkB,eAE5B;IACD,KAAK,CAAC,EAAE;QACN;;;;;WAKG;QACH,eAAe,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,IAAI,CAAA;KACjD,CAAA;CACF,KAAG,YA0EH,CAAA"}
@@ -1,3 +1,4 @@
1
+ import { getOwnEntry } from '@scalar/helpers/object/get-own-entry';
1
2
  import { reactive } from 'vue';
2
3
  import { DocumentHistorySchema } from './schema.js';
3
4
  import { safeAssign } from '../../helpers/general.js';
@@ -30,29 +31,38 @@ const HISTORY_LIMIT = 5;
30
31
  export const createHistoryStore = ({ hooks, }) => {
31
32
  const history = reactive({});
32
33
  const getHistory = (documentName, path, method) => {
33
- return history[documentName]?.[path]?.[method];
34
+ return getOwnEntry(getOwnEntry(getOwnEntry(history, documentName), path), method);
34
35
  };
35
36
  const addHistory = (documentName, path, method, entry) => {
36
- history[documentName] ||= {};
37
- history[documentName][path] ||= {};
38
- history[documentName][path][method] ||= [];
39
- // We want to make sure that the history is not full
40
- if (history[documentName][path][method].length >= HISTORY_LIMIT) {
41
- // Delete the oldest entry
42
- // We need to unpack the history array to avoid proxy object issues
43
- history[documentName][path][method] = unpackProxyObject(history[documentName][path][method].filter((_, i) => i !== 0), { depth: 1 });
37
+ if ([documentName, path, method].includes('__proto__')) {
38
+ return;
44
39
  }
45
- // Add the new entry to the history
46
- history[documentName][path][method].push(entry);
40
+ if (!getOwnEntry(history, documentName)) {
41
+ history[documentName] = {};
42
+ }
43
+ const documentHistory = history[documentName];
44
+ if (!getOwnEntry(documentHistory, path)) {
45
+ documentHistory[path] = {};
46
+ }
47
+ const pathHistory = documentHistory[path];
48
+ if (!getOwnEntry(pathHistory, method)) {
49
+ pathHistory[method] = [];
50
+ }
51
+ // Keep only the most recent entries and unpack them before writing them back.
52
+ const entries = pathHistory[method];
53
+ if (entries.length >= HISTORY_LIMIT) {
54
+ pathHistory[method] = unpackProxyObject(entries.slice(1), { depth: 1 });
55
+ }
56
+ pathHistory[method].push(entry);
47
57
  // Explicitly trigger the change event once after all modifications
48
58
  hooks?.onHistoryChange?.(documentName);
49
59
  };
50
60
  const clearOperationHistory = (documentName, path, method) => {
51
- delete history[documentName]?.[path]?.[method];
61
+ delete getOwnEntry(getOwnEntry(history, documentName), path)?.[method];
52
62
  hooks?.onHistoryChange?.(documentName);
53
63
  };
54
64
  const clearPathHistory = (documentName, path) => {
55
- delete history[documentName]?.[path];
65
+ delete getOwnEntry(history, documentName)?.[path];
56
66
  hooks?.onHistoryChange?.(documentName);
57
67
  };
58
68
  const clearDocumentHistory = (documentName) => {
@@ -60,7 +70,8 @@ export const createHistoryStore = ({ hooks, }) => {
60
70
  hooks?.onHistoryChange?.(documentName);
61
71
  };
62
72
  const load = (data) => {
63
- const coercedData = coerceValue(DocumentHistorySchema, data);
73
+ const { __proto__: _reserved, ...documents } = data;
74
+ const coercedData = coerceValue(DocumentHistorySchema, documents);
64
75
  safeAssign(history, coercedData);
65
76
  // Trigger change events for all loaded documents
66
77
  Object.keys(coercedData).forEach((documentName) => {
@@ -1,35 +1,14 @@
1
1
  import type { SchemaObject } from '../schemas/v3.2/strict/schema.js';
2
- /**
3
- * The dynamic scope, ordered outermost-first.
4
- *
5
- * Each entry is a schema resource on the current evaluation path. When a `$dynamicRef` is resolved,
6
- * the outermost entry that declares a matching `$dynamicAnchor` wins.
7
- */
2
+ /** The dynamic scope, ordered outermost-first (see the module docs and the generic resolver). */
8
3
  export type DynamicScope = SchemaObject[];
9
4
  /** Narrow a schema to one that carries a `$dynamicRef`. */
10
5
  export declare const isDynamicRef: (schema: unknown) => schema is SchemaObject & {
11
6
  $dynamicRef: string;
12
7
  };
8
+ /** Collect the `$dynamicAnchor` declarations of a single schema resource, keyed by anchor name. */
13
9
  export declare const collectDynamicAnchors: (resource: SchemaObject) => Map<string, SchemaObject>;
14
- /**
15
- * Append a schema resource to the dynamic scope when it could hold a `$dynamicAnchor`.
16
- *
17
- * A schema that carries the binding inline — its own `$dynamicAnchor`, or the `$id`/`$defs` binding
18
- * written next to a `$ref` (how `Paginated<Planet>` is expressed) — enters the scope directly. A bare
19
- * `$ref` to a *named* binding resource (e.g. `$ref: '#/components/schemas/PaginatedUserResponse'`)
20
- * hides that resource's `$id`/`$defs` behind the ref, so the anchor is invisible here; follow the ref
21
- * to reach the resource. Ordinary `$ref`s resolve to a schema without an anchor and are still skipped;
22
- * an unresolved `$ref` resolves to `undefined` and is skipped too.
23
- *
24
- * See https://github.com/scalar/scalar/issues/9883.
25
- */
10
+ /** Append a schema to the dynamic scope when it could hold a `$dynamicAnchor`, otherwise return it unchanged. */
26
11
  export declare const pushDynamicScope: (scope: DynamicScope, schema: SchemaObject) => DynamicScope;
27
- /**
28
- * Resolve a `$dynamicRef` fragment against the dynamic scope.
29
- *
30
- * Scans the scope outermost-first and returns the first resource that declares a `$dynamicAnchor` with
31
- * the referenced name. Returns `undefined` when nothing matches, in which case callers should leave the
32
- * reference unresolved (the schema renders as it did before, with no regression).
33
- */
12
+ /** Resolve a `$dynamicRef` fragment against the dynamic scope, outermost-first. */
34
13
  export declare const resolveDynamicRef: (dynamicRef: string, scope: DynamicScope) => SchemaObject | undefined;
35
14
  //# sourceMappingURL=dynamic-ref.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"dynamic-ref.d.ts","sourceRoot":"","sources":["../../src/helpers/dynamic-ref.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAiBhE;;;;;GAKG;AACH,MAAM,MAAM,YAAY,GAAG,YAAY,EAAE,CAAA;AAEzC,2DAA2D;AAC3D,eAAO,MAAM,YAAY,WAAY,OAAO,KAAG,MAAM,IAAI,YAAY,GAAG;IAAE,WAAW,EAAE,MAAM,CAAA;CACuB,CAAA;AAqBpH,eAAO,MAAM,qBAAqB,aAAc,YAAY,KAAG,GAAG,CAAC,MAAM,EAAE,YAAY,CAiCtF,CAAA;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,gBAAgB,UAAW,YAAY,UAAU,YAAY,KAAG,YAG5E,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,eAAgB,MAAM,SAAS,YAAY,KAAG,YAAY,GAAG,SAe1F,CAAA"}
1
+ {"version":3,"file":"dynamic-ref.d.ts","sourceRoot":"","sources":["../../src/helpers/dynamic-ref.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAsBhE,iGAAiG;AACjG,MAAM,MAAM,YAAY,GAAG,YAAY,EAAE,CAAA;AAEzC,2DAA2D;AAC3D,eAAO,MAAM,YAAY,EAA0B,CAAC,MAAM,EAAE,OAAO,KAAK,MAAM,IAAI,YAAY,GAAG;IAAE,WAAW,EAAE,MAAM,CAAA;CAAE,CAAA;AAExH,mGAAmG;AACnG,eAAO,MAAM,qBAAqB,aAAc,YAAY,KAAG,GAAG,CAAC,MAAM,EAAE,YAAY,CACiB,CAAA;AAExG,iHAAiH;AACjH,eAAO,MAAM,gBAAgB,UAAW,YAAY,UAAU,YAAY,KAAG,YAc5E,CAAA;AAED,mFAAmF;AACnF,eAAO,MAAM,iBAAiB,eAAgB,MAAM,SAAS,YAAY,KAAG,YAAY,GAAG,SACmB,CAAA"}
@@ -1,87 +1,44 @@
1
1
  import { isObject } from '@scalar/helpers/object/is-object';
2
- import { getResolvedRef, mergeSiblingReferences } from './get-resolved-ref.js';
2
+ import { collectDynamicAnchors as collectDynamicAnchorsGeneric, isDynamicRef as isDynamicRefGeneric, pushDynamicScope as pushDynamicScopeGeneric, resolveDynamicRef as resolveDynamicRefGeneric, } from '@scalar/json-magic/magic-proxy';
3
+ import { getResolvedRef } from './get-resolved-ref.js';
3
4
  import { unpackProxyObject } from './unpack-proxy.js';
4
- /** Narrow a schema to one that carries a `$dynamicRef`. */
5
- export const isDynamicRef = (schema) => typeof schema === 'object' && schema !== null && '$dynamicRef' in schema && typeof schema.$dynamicRef === 'string';
6
- /**
7
- * Whether a schema introduces something a `$dynamicRef` could later bind to.
8
- *
9
- * We only grow the dynamic scope with schemas that could hold a `$dynamicAnchor`: those declaring one
10
- * directly, or resource boundaries (`$id`) / definition containers (`$defs`) that may hold one. Plain
11
- * subschemas are skipped to keep the scope small.
12
- */
13
- const carriesDynamicAnchor = (schema) => '$dynamicAnchor' in schema || '$id' in schema || '$defs' in schema;
14
5
  /**
15
- * Collect the `$dynamicAnchor` declarations of a single schema resource, keyed by anchor name.
6
+ * Resolution of JSON Schema 2020-12 `$dynamicRef` / `$dynamicAnchor`.
16
7
  *
17
- * Anchors are looked for at the resource root and inside `$defs` — the two placements used by the
18
- * common generic and recursive patterns. Anchors nested deeper are not collected (a documented v1
19
- * limitation). Each target is dereferenced so callers receive the concrete schema the anchor points to.
8
+ * The core resolver lives in `@scalar/json-magic` so the magic proxy can resolve `$dynamicRef`
9
+ * transparently (via the virtual `$dynamicRef-value` property) while walking a document — consumers
10
+ * that traverse the proxy never assemble the scope by hand. This module re-exports the same helpers
11
+ * typed against `SchemaObject`, for the few callers that walk raw (unpacked) schemas and therefore
12
+ * still thread the scope explicitly (e.g. the example builder). Proxies are unwrapped with the
13
+ * workspace-store `unpackProxyObject`, which also strips override, detect-changes and Vue proxies, so
14
+ * cycle detection stays correct across those layers. See https://github.com/scalar/scalar/issues/9414.
20
15
  */
21
- const anchorCache = new WeakMap();
22
- export const collectDynamicAnchors = (resource) => {
23
- // Cache per raw schema object so repeated lookups during a walk stay cheap.
24
- const cacheTarget = unpackProxyObject(resource, { depth: 1 });
25
- const cached = anchorCache.get(cacheTarget);
26
- if (cached) {
27
- return cached;
28
- }
29
- const anchors = new Map();
30
- const add = (node) => {
31
- if (!node || typeof node !== 'object') {
32
- return;
33
- }
34
- const anchor = node.$dynamicAnchor;
35
- if (typeof anchor === 'string' && !anchors.has(anchor)) {
36
- // Resolve any sibling `$ref` so the stored target is the concrete schema (e.g. `User`).
37
- anchors.set(anchor, getResolvedRef(node, mergeSiblingReferences));
38
- }
39
- };
40
- add(resource);
41
- const schemaWithDefs = resource;
42
- const defs = schemaWithDefs.$defs;
43
- if (defs && typeof defs === 'object') {
44
- for (const key of Object.keys(defs)) {
45
- add(defs[key]);
46
- }
47
- }
48
- anchorCache.set(cacheTarget, anchors);
49
- return anchors;
50
- };
51
16
  /**
52
- * Append a schema resource to the dynamic scope when it could hold a `$dynamicAnchor`.
17
+ * Unwrap every proxy layer the store adds, for stable cycle-detection identity.
53
18
  *
54
- * A schema that carries the binding inline — its own `$dynamicAnchor`, or the `$id`/`$defs` binding
55
- * written next to a `$ref` (how `Paginated<Planet>` is expressed) — enters the scope directly. A bare
56
- * `$ref` to a *named* binding resource (e.g. `$ref: '#/components/schemas/PaginatedUserResponse'`)
57
- * hides that resource's `$id`/`$defs` behind the ref, so the anchor is invisible here; follow the ref
58
- * to reach the resource. Ordinary `$ref`s resolve to a schema without an anchor and are still skipped;
59
- * an unresolved `$ref` resolves to `undefined` and is skipped too.
60
- *
61
- * See https://github.com/scalar/scalar/issues/9883.
19
+ * Module-level on purpose: json-magic keys its anchor cache by this function, so a fresh closure per
20
+ * call would never hit the cache.
62
21
  */
22
+ const unwrap = (value) => unpackProxyObject(value, { depth: 0 });
23
+ /** Narrow a schema to one that carries a `$dynamicRef`. */
24
+ export const isDynamicRef = isDynamicRefGeneric;
25
+ /** Collect the `$dynamicAnchor` declarations of a single schema resource, keyed by anchor name. */
26
+ export const collectDynamicAnchors = (resource) => collectDynamicAnchorsGeneric(resource, unwrap);
27
+ /** Append a schema to the dynamic scope when it could hold a `$dynamicAnchor`, otherwise return it unchanged. */
63
28
  export const pushDynamicScope = (scope, schema) => {
64
- const resource = carriesDynamicAnchor(schema) ? schema : getResolvedRef(schema);
65
- return isObject(resource) && carriesDynamicAnchor(resource) ? [...scope, resource] : scope;
66
- };
67
- /**
68
- * Resolve a `$dynamicRef` fragment against the dynamic scope.
69
- *
70
- * Scans the scope outermost-first and returns the first resource that declares a `$dynamicAnchor` with
71
- * the referenced name. Returns `undefined` when nothing matches, in which case callers should leave the
72
- * reference unresolved (the schema renders as it did before, with no regression).
73
- */
74
- export const resolveDynamicRef = (dynamicRef, scope) => {
75
- // Only plain-name fragments (`#itemType`) are supported; a non-fragment URI is not a dynamic anchor.
76
- const name = dynamicRef.startsWith('#') ? dynamicRef.slice(1) : undefined;
77
- if (!name || name.startsWith('/')) {
78
- return undefined;
79
- }
80
- for (const resource of scope) {
81
- const match = collectDynamicAnchors(resource).get(name);
82
- if (match) {
83
- return match;
84
- }
29
+ const genericScope = scope;
30
+ // A schema reached through a `$ref` lives at the referenced location, outside any `$id` resource on
31
+ // the path that led here, so its own anchors and `$defs` start a scope entry of their own.
32
+ const withinExplicitResource = '$ref' in schema ? false : undefined;
33
+ const next = pushDynamicScopeGeneric(genericScope, schema, withinExplicitResource);
34
+ if (next !== scope) {
35
+ return next;
85
36
  }
86
- return undefined;
37
+ // Raw example generation may enter a named binding through a bare reference (#9883).
38
+ const resolved = getResolvedRef(schema);
39
+ return isObject(resolved) && resolved !== schema
40
+ ? pushDynamicScopeGeneric(genericScope, resolved, false)
41
+ : scope;
87
42
  };
43
+ /** Resolve a `$dynamicRef` fragment against the dynamic scope, outermost-first. */
44
+ export const resolveDynamicRef = (dynamicRef, scope) => resolveDynamicRefGeneric(dynamicRef, scope, unwrap);
@@ -0,0 +1,12 @@
1
+ import type { NodeInput } from './get-resolved-ref.js';
2
+ /**
3
+ * Follow Security Scheme Reference Objects through annotated aliases. Unlike schema
4
+ * references, these do not establish new resources, so annotations do not stop resolution.
5
+ * The nearest description overrides the target without mutating shared schemes. Callers
6
+ * handling OpenAPI 3.0 must disable overrides because that version ignores reference siblings.
7
+ * Missing targets and cycles stay unresolved instead of becoming empty auth schemes.
8
+ */
9
+ export declare const getResolvedSecurityScheme: <Node>(node: NodeInput<Node>, { overrideDescription }?: {
10
+ overrideDescription?: boolean;
11
+ }) => Node | undefined;
12
+ //# sourceMappingURL=get-resolved-security-scheme.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-resolved-security-scheme.d.ts","sourceRoot":"","sources":["../../src/helpers/get-resolved-security-scheme.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAEnD;;;;;;GAMG;AACH,eAAO,MAAM,yBAAyB,GAAI,IAAI,QACtC,SAAS,CAAC,IAAI,CAAC,4BACW;IAAE,mBAAmB,CAAC,EAAE,OAAO,CAAA;CAAE,KAChE,IAAI,GAAG,SAeT,CAAA"}
@@ -0,0 +1,24 @@
1
+ import { isObject } from '@scalar/helpers/object/is-object';
2
+ /**
3
+ * Follow Security Scheme Reference Objects through annotated aliases. Unlike schema
4
+ * references, these do not establish new resources, so annotations do not stop resolution.
5
+ * The nearest description overrides the target without mutating shared schemes. Callers
6
+ * handling OpenAPI 3.0 must disable overrides because that version ignores reference siblings.
7
+ * Missing targets and cycles stay unresolved instead of becoming empty auth schemes.
8
+ */
9
+ export const getResolvedSecurityScheme = (node, { overrideDescription = true } = {}) => {
10
+ const seen = new Set();
11
+ let current = node;
12
+ let description;
13
+ while (isObject(current) && typeof current.$ref === 'string') {
14
+ if (seen.has(current)) {
15
+ return undefined;
16
+ }
17
+ seen.add(current);
18
+ if (overrideDescription && description === undefined && typeof current.description === 'string') {
19
+ description = current.description;
20
+ }
21
+ current = current['$ref-value'];
22
+ }
23
+ return (isObject(current) && description !== undefined ? { ...current, description } : current);
24
+ };
@@ -1,6 +1,6 @@
1
1
  import { objectEntries } from '@scalar/helpers/object/object-entries';
2
2
  import { selectExampleComposition } from '../request-example/builder/helpers/get-example-from-schema.js';
3
- import { resolve } from '../resolve.js';
3
+ import { resolve } from '../resolve/index.js';
4
4
  import { isNumberSchema, isObjectSchema, isStringSchema } from '../schemas/v3.2/strict/type-guards.js';
5
5
  import { getSchemaAnnotations, resolveSchemaWithAnnotations } from './resolve-schema-with-annotations.js';
6
6
  import { unpackProxyShallow } from './unpack-proxy.js';
@@ -1,4 +1,4 @@
1
- import { resolve } from '../resolve.js';
1
+ import { resolve } from '../resolve/index.js';
2
2
  import { unpackProxyShallow } from './unpack-proxy.js';
3
3
  const annotationKeys = new Set([
4
4
  'title',
@@ -6,7 +6,7 @@ import { bundle, resolveReferencePath } from '@scalar/json-magic/bundle';
6
6
  import { createMagicProxy } from '@scalar/json-magic/magic-proxy';
7
7
  import { Value } from '@scalar/typebox/value';
8
8
  import { generateUniqueValue } from './generate-unique-value.js';
9
- import { getResolvedRef } from './get-resolved-ref.js';
9
+ import { getResolvedSecurityScheme } from './get-resolved-security-scheme.js';
10
10
  import { normalizeAuthSchemes } from '../plugins/bundler/index.js';
11
11
  import { resolveOpenApiDocument } from '../plugins/bundler/openapi-document.js';
12
12
  import { SecuritySchemeObjectSchema } from '../schemas/v3.2/strict/openapi-document.js';
@@ -101,7 +101,7 @@ export const resolveSecurityRequirements = async (document, { origin = '/', load
101
101
  const proxy = createMagicProxy({ ...document, 'x-scalar-security-uri-target': reference }, {
102
102
  documentUri: resolveOpenApiDocument(document, origin)?.baseUri,
103
103
  });
104
- const target = getResolvedRef(proxy['x-scalar-security-uri-target']);
104
+ const target = getResolvedSecurityScheme(proxy['x-scalar-security-uri-target']);
105
105
  // The strict runtime schema requires refreshUrl, while authored OAuth flows may omit it.
106
106
  const validationTarget = isObject(target) && target.type === 'oauth2' && isObject(target.flows)
107
107
  ? {
@@ -78,13 +78,13 @@ export const createEmptyDocument = async (store, payload) => {
78
78
  return;
79
79
  }
80
80
  // Check if the document already exists by name for uniqueness
81
- if (store.workspace.documents[payload.name]) {
81
+ if (Object.hasOwn(store.workspace.documents, payload.name)) {
82
82
  // Document name already exists, call callback with false
83
83
  payload.callback?.(false);
84
84
  return;
85
85
  }
86
86
  // Add a new empty OpenAPI 3.1.0 document with minimal info and icon
87
- await store.addDocument({
87
+ const added = await store.addDocument({
88
88
  name: payload.name,
89
89
  document: {
90
90
  openapi: '3.1.0',
@@ -98,7 +98,7 @@ export const createEmptyDocument = async (store, payload) => {
98
98
  },
99
99
  });
100
100
  // Notify success via callback
101
- payload.callback?.(true);
101
+ payload.callback?.(added);
102
102
  };
103
103
  /**
104
104
  * Deletes a document from the workspace by its name.
@@ -1 +1 @@
1
- {"version":3,"file":"get-navigation-options.d.ts","sourceRoot":"","sources":["../../src/navigation/get-navigation-options.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,4BAA4B,EAAgC,MAAM,6BAA6B,CAAA;AAE7G,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AAe7D,MAAM,MAAM,iBAAiB,GACzB,OAAO,CACL,IAAI,CACF,4BAA4B,EAC1B,qBAAqB,GACrB,iBAAiB,GACjB,uBAAuB,GACvB,qBAAqB,GACrB,mBAAmB,GACnB,kBAAkB,GAClB,YAAY,GACZ,YAAY,GACZ,oBAAoB,GACpB,sBAAsB,CACzB,CACF,GACD,SAAS,CAAA;AAEb;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,iBAAkB,MAAM,YAAY,iBAAiB,KAAG,mBA6JxF,CAAA"}
1
+ {"version":3,"file":"get-navigation-options.d.ts","sourceRoot":"","sources":["../../src/navigation/get-navigation-options.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,4BAA4B,EAAgC,MAAM,6BAA6B,CAAA;AAE7G,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AAe7D,MAAM,MAAM,iBAAiB,GACzB,OAAO,CACL,IAAI,CACF,4BAA4B,EAC1B,qBAAqB,GACrB,iBAAiB,GACjB,uBAAuB,GACvB,qBAAqB,GACrB,mBAAmB,GACnB,kBAAkB,GAClB,YAAY,GACZ,YAAY,GACZ,oBAAoB,GACpB,sBAAsB,CACzB,CACF,GACD,SAAS,CAAA;AAEb;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,iBAAkB,MAAM,YAAY,iBAAiB,KAAG,mBA2KxF,CAAA"}
@@ -64,6 +64,16 @@ export const getNavigationOptions = (documentName, options) => {
64
64
  if (props.type === 'asyncapi-operation') {
65
65
  return `${props.parentId}/operation/${slugify(props.operationName)}`;
66
66
  }
67
+ if (props.type === 'asyncapi-reusable-message') {
68
+ if (props.name === undefined) {
69
+ // The reserved prefix keeps the Messages section separate from a Models label of the same name.
70
+ return `${props.parentId}/~components/messages`;
71
+ }
72
+ // Escape dots so URL dot segments and schema path markers cannot consume message keys.
73
+ // Fixed-width escapes preserve distinct keys without relying on URL decoding.
74
+ const name = props.name.replace(/[^a-zA-Z0-9_-]/g, (char) => `~${char.charCodeAt(0).toString(16).padStart(4, '0')}`);
75
+ return `${props.parentId}/${name || '~'}`;
76
+ }
67
77
  // -------- Default operation id generation logic --------
68
78
  if (props.type === 'operation') {
69
79
  const prefixTag = props.parentTag
@@ -1 +1 @@
1
- {"version":3,"file":"traverse-asyncapi-document.d.ts","sourceRoot":"","sources":["../../../src/navigation/helpers/traverse-asyncapi-document.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAyB,gBAAgB,EAA2B,MAAM,4BAA4B,CAAA;AAOlH,OAAO,EAAE,KAAK,iBAAiB,EAAwB,MAAM,qCAAqC,CAAA;AAQlG,OAAO,KAAK,EAKV,iBAAiB,EAGlB,MAAM,sBAAsB,CAAA;AAM7B,oFAAoF;AACpF,KAAK,wCAAwC,GAAG,gBAAgB,GAAG;IACjE,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAA;IAC3B,eAAe,CAAC,EAAE,MAAM,CAAA;CACzB,CAAA;AA4iBD;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,wBAAwB,iBACrB,MAAM,YACV,wCAAwC,YACxC,iBAAiB,KAC1B,iBAsJF,CAAA"}
1
+ {"version":3,"file":"traverse-asyncapi-document.d.ts","sourceRoot":"","sources":["../../../src/navigation/helpers/traverse-asyncapi-document.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAGV,gBAAgB,EAEjB,MAAM,4BAA4B,CAAA;AAOnC,OAAO,EAAE,KAAK,iBAAiB,EAAwB,MAAM,qCAAqC,CAAA;AAQlG,OAAO,KAAK,EAOV,iBAAiB,EAGlB,MAAM,sBAAsB,CAAA;AAM7B,oFAAoF;AACpF,KAAK,wCAAwC,GAAG,gBAAgB,GAAG;IACjE,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAA;IAC3B,eAAe,CAAC,EAAE,MAAM,CAAA;CACzB,CAAA;AA0kBD;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,wBAAwB,iBACrB,MAAM,YACV,wCAAwC,YACxC,iBAAiB,KAC1B,iBAqKF,CAAA"}
@@ -40,6 +40,28 @@ const getOperationTitle = (operation, operationName) => pickNonEmpty(operation.t
40
40
  * Sidebar label for a message: `title`, then `summary`, then `name`, then the message map key.
41
41
  */
42
42
  const getMessageTitle = (message, messageName) => pickNonEmpty(message.title, message.summary, message.name) ?? messageName;
43
+ /** Build the Messages section from visible reusable messages in document order. */
44
+ const traverseReusableMessages = (messages, documentId, generateId) => {
45
+ const sectionId = generateId({ type: 'asyncapi-reusable-message', parentId: documentId });
46
+ const children = Object.entries(messages).flatMap(([name, node]) => {
47
+ const message = getResolvedAsyncApiRef(node);
48
+ if (!message || isHidden(message)) {
49
+ return [];
50
+ }
51
+ return [
52
+ {
53
+ type: 'asyncapi-reusable-message',
54
+ id: generateId({ type: 'asyncapi-reusable-message', name, parentId: sectionId }),
55
+ title: getMessageTitle(message, name),
56
+ name,
57
+ },
58
+ ];
59
+ });
60
+ if (children.length === 0) {
61
+ return undefined;
62
+ }
63
+ return { type: 'asyncapi-messages', id: sectionId, title: 'Messages', name: 'Messages', children };
64
+ };
43
65
  /**
44
66
  * Parses a channel JSON pointer (`#/channels/<name>`) into the key used in `document.channels`.
45
67
  */
@@ -467,6 +489,9 @@ export const traverseAsyncApiDocument = (documentName, document, options) => {
467
489
  tagsMap,
468
490
  })
469
491
  : [];
492
+ const messagesSection = !hideModels && components?.messages
493
+ ? traverseReusableMessages(components.messages, documentId, generateId)
494
+ : undefined;
470
495
  // Surface the Introduction entry plus any headings extracted from `info.description`
471
496
  // before the channel/tag entries, mirroring how OpenAPI documents are traversed.
472
497
  const entries = traverseDescription({
@@ -487,17 +512,26 @@ export const traverseAsyncApiDocument = (documentName, document, options) => {
487
512
  untaggedChannels.sort((a, b) => a.title.localeCompare(b.title));
488
513
  }
489
514
  entries.push(...untaggedChannels);
515
+ if (messagesSection) {
516
+ entries.push(messagesSection);
517
+ }
490
518
  // Mirror OpenAPI: untagged schemas are grouped under a single top-level "Models" section.
491
- if (untaggedModels.length) {
519
+ const modelsId = untaggedModels.length ? generateId({ type: 'model', parentId: documentId }) : undefined;
520
+ if (modelsId !== undefined) {
492
521
  entries.push({
493
522
  type: 'models',
494
- id: generateId({ type: 'model', parentId: documentId }),
523
+ id: modelsId,
495
524
  title: modelsSectionLabel,
496
525
  name: modelsSectionLabel,
497
526
  children: untaggedModels,
498
527
  });
499
528
  }
500
- const sortOrder = document['x-scalar-order'];
529
+ const savedOrder = document['x-scalar-order'];
530
+ const modelsIndex = modelsId === undefined ? -1 : (savedOrder?.indexOf(modelsId) ?? -1);
531
+ // Older snapshots listed Models before the Messages section existed.
532
+ const sortOrder = savedOrder && modelsIndex !== -1 && messagesSection && !savedOrder.includes(messagesSection.id)
533
+ ? [...savedOrder.slice(0, modelsIndex), messagesSection.id, ...savedOrder.slice(modelsIndex)]
534
+ : savedOrder;
501
535
  const orderedEntries = sortOrder ? sortByOrder(entries, sortOrder, (entry) => entry.id) : entries;
502
536
  document['x-scalar-order'] = unpackProxyObject(orderedEntries.map((entry) => entry.id));
503
537
  return {