@scalar/api-reference 1.35.2 → 1.35.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 (165) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/browser/standalone.js +9896 -10062
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/ApiReference.vue.d.ts +2 -1
  5. package/dist/components/ApiReference.vue.d.ts.map +1 -1
  6. package/dist/components/ApiReference.vue.js +14 -11
  7. package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
  8. package/dist/components/ApiReferenceLayout.vue.js +2 -2
  9. package/dist/components/ApiReferenceLayout.vue2.js +70 -72
  10. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts +3 -1
  11. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts.map +1 -1
  12. package/dist/components/Content/Content.vue.d.ts +0 -2
  13. package/dist/components/Content/Content.vue.d.ts.map +1 -1
  14. package/dist/components/Content/Content.vue.js +80 -80
  15. package/dist/components/Content/Models/ClassicLayout.vue.d.ts +5 -2
  16. package/dist/components/Content/Models/ClassicLayout.vue.d.ts.map +1 -1
  17. package/dist/components/Content/Models/ClassicLayout.vue.js +2 -2
  18. package/dist/components/Content/Models/ClassicLayout.vue2.js +43 -45
  19. package/dist/components/Content/Models/ClassicLayout.vue3.js +2 -2
  20. package/dist/components/Content/Models/Models.vue.d.ts +2 -2
  21. package/dist/components/Content/Models/Models.vue.d.ts.map +1 -1
  22. package/dist/components/Content/Models/Models.vue.js +27 -20
  23. package/dist/components/Content/Models/ModernLayout.vue.d.ts +5 -2
  24. package/dist/components/Content/Models/ModernLayout.vue.d.ts.map +1 -1
  25. package/dist/components/Content/Models/ModernLayout.vue.js +2 -2
  26. package/dist/components/Content/Models/ModernLayout.vue2.js +48 -52
  27. package/dist/components/Content/Operations/TraversedEntry.vue.d.ts +3 -2
  28. package/dist/components/Content/Operations/TraversedEntry.vue.d.ts.map +1 -1
  29. package/dist/components/Content/Operations/TraversedEntry.vue.js +33 -32
  30. package/dist/components/Content/Operations/TraversedEntryContainer.vue.d.ts +2 -2
  31. package/dist/components/Content/Operations/TraversedEntryContainer.vue.d.ts.map +1 -1
  32. package/dist/components/Content/Operations/TraversedEntryContainer.vue.js +1 -1
  33. package/dist/components/Content/Schema/Schema.vue.d.ts +6 -22
  34. package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
  35. package/dist/components/Content/Schema/Schema.vue.js +2 -2
  36. package/dist/components/Content/Schema/Schema.vue2.js +86 -140
  37. package/dist/components/Content/Schema/SchemaComposition.vue.d.ts +15 -4
  38. package/dist/components/Content/Schema/SchemaComposition.vue.d.ts.map +1 -1
  39. package/dist/components/Content/Schema/SchemaComposition.vue.js +77 -138
  40. package/dist/components/Content/Schema/SchemaEnumValues.vue.d.ts +2 -13
  41. package/dist/components/Content/Schema/SchemaEnumValues.vue.d.ts.map +1 -1
  42. package/dist/components/Content/Schema/SchemaEnumValues.vue.js +2 -2
  43. package/dist/components/Content/Schema/SchemaEnumValues.vue2.js +66 -92
  44. package/dist/components/Content/Schema/SchemaHeading.vue.d.ts +2 -2
  45. package/dist/components/Content/Schema/SchemaHeading.vue.d.ts.map +1 -1
  46. package/dist/components/Content/Schema/SchemaHeading.vue.js +2 -2
  47. package/dist/components/Content/Schema/SchemaHeading.vue2.js +19 -17
  48. package/dist/components/Content/Schema/SchemaObjectProperties.vue.d.ts +5 -14
  49. package/dist/components/Content/Schema/SchemaObjectProperties.vue.d.ts.map +1 -1
  50. package/dist/components/Content/Schema/SchemaObjectProperties.vue.js +47 -68
  51. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +4 -13
  52. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
  53. package/dist/components/Content/Schema/SchemaProperty.vue.js +2 -2
  54. package/dist/components/Content/Schema/SchemaProperty.vue2.js +116 -144
  55. package/dist/components/Content/Schema/SchemaPropertyExamples.vue.d.ts +1 -1
  56. package/dist/components/Content/Schema/SchemaPropertyExamples.vue.d.ts.map +1 -1
  57. package/dist/components/Content/Schema/SchemaPropertyExamples.vue.js +2 -2
  58. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts +9 -4
  59. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
  60. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +2 -2
  61. package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +173 -204
  62. package/dist/components/Content/Schema/helpers/get-ref-name.d.ts +11 -0
  63. package/dist/components/Content/Schema/helpers/get-ref-name.d.ts.map +1 -0
  64. package/dist/components/Content/Schema/helpers/get-ref-name.js +11 -0
  65. package/dist/components/Content/Schema/helpers/get-schema-type.d.ts +13 -3
  66. package/dist/components/Content/Schema/helpers/get-schema-type.d.ts.map +1 -1
  67. package/dist/components/Content/Schema/helpers/get-schema-type.js +34 -13
  68. package/dist/components/Content/Schema/helpers/is-type-object.d.ts +4 -2
  69. package/dist/components/Content/Schema/helpers/is-type-object.d.ts.map +1 -1
  70. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.d.ts +2 -4
  71. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.d.ts.map +1 -1
  72. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.js +130 -84
  73. package/dist/components/Content/Schema/helpers/optimize-value-for-display.d.ts +5 -5
  74. package/dist/components/Content/Schema/helpers/optimize-value-for-display.d.ts.map +1 -1
  75. package/dist/components/Content/Schema/helpers/optimize-value-for-display.js +40 -31
  76. package/dist/components/Content/Schema/helpers/schema-composition.d.ts +0 -8
  77. package/dist/components/Content/Schema/helpers/schema-composition.d.ts.map +1 -1
  78. package/dist/components/Content/Schema/helpers/schema-composition.js +2 -6
  79. package/dist/components/Content/Schema/helpers/schema-name.d.ts +8 -17
  80. package/dist/components/Content/Schema/helpers/schema-name.d.ts.map +1 -1
  81. package/dist/components/Content/Schema/helpers/schema-name.js +24 -33
  82. package/dist/features/Operation/Operation.vue.d.ts +3 -4
  83. package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
  84. package/dist/features/Operation/Operation.vue.js +54 -73
  85. package/dist/features/Operation/components/ContentTypeSelect.vue.d.ts +10 -11
  86. package/dist/features/Operation/components/ContentTypeSelect.vue.d.ts.map +1 -1
  87. package/dist/features/Operation/components/ContentTypeSelect.vue.js +35 -43
  88. package/dist/features/Operation/components/{ParameterHeaders.vue.d.ts → Header.vue.d.ts} +4 -5
  89. package/dist/features/Operation/components/Header.vue.d.ts.map +1 -0
  90. package/dist/features/Operation/components/Header.vue.js +23 -0
  91. package/dist/features/Operation/components/Header.vue2.js +4 -0
  92. package/dist/features/Operation/components/Headers.vue.d.ts +8 -0
  93. package/dist/features/Operation/components/Headers.vue.d.ts.map +1 -0
  94. package/dist/features/Operation/components/Headers.vue.js +7 -0
  95. package/dist/features/Operation/components/Headers.vue2.js +61 -0
  96. package/dist/features/Operation/components/OperationParameters.vue.d.ts +4 -10
  97. package/dist/features/Operation/components/OperationParameters.vue.d.ts.map +1 -1
  98. package/dist/features/Operation/components/OperationParameters.vue.js +23 -33
  99. package/dist/features/Operation/components/OperationResponses.vue.d.ts +3 -6
  100. package/dist/features/Operation/components/OperationResponses.vue.d.ts.map +1 -1
  101. package/dist/features/Operation/components/OperationResponses.vue.js +22 -19
  102. package/dist/features/Operation/components/ParameterList.vue.d.ts +3 -10
  103. package/dist/features/Operation/components/ParameterList.vue.d.ts.map +1 -1
  104. package/dist/features/Operation/components/ParameterList.vue.js +35 -5
  105. package/dist/features/Operation/components/ParameterList.vue2.js +2 -38
  106. package/dist/features/Operation/components/ParameterListItem.vue.d.ts +4 -10
  107. package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
  108. package/dist/features/Operation/components/ParameterListItem.vue.js +2 -2
  109. package/dist/features/Operation/components/ParameterListItem.vue2.js +77 -74
  110. package/dist/features/Operation/components/RequestBody.vue.d.ts +3 -8
  111. package/dist/features/Operation/components/RequestBody.vue.d.ts.map +1 -1
  112. package/dist/features/Operation/components/RequestBody.vue.js +1 -1
  113. package/dist/features/Operation/components/RequestBody.vue2.js +75 -82
  114. package/dist/features/Operation/components/callbacks/Callback.vue.d.ts +0 -4
  115. package/dist/features/Operation/components/callbacks/Callback.vue.d.ts.map +1 -1
  116. package/dist/features/Operation/components/callbacks/Callback.vue.js +3 -3
  117. package/dist/features/Operation/components/callbacks/Callback.vue2.js +35 -36
  118. package/dist/features/Operation/components/callbacks/Callback.vue3.js +2 -2
  119. package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts +0 -2
  120. package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts.map +1 -1
  121. package/dist/features/Operation/components/callbacks/Callbacks.vue.js +13 -15
  122. package/dist/features/Operation/helpers/combine-params.d.ts +1 -1
  123. package/dist/features/Operation/helpers/combine-params.d.ts.map +1 -1
  124. package/dist/features/Operation/helpers/combine-params.js +2 -2
  125. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +1 -9
  126. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
  127. package/dist/features/Operation/layouts/ClassicLayout.vue.js +2 -2
  128. package/dist/features/Operation/layouts/ClassicLayout.vue2.js +75 -82
  129. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +2 -10
  130. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
  131. package/dist/features/Operation/layouts/ModernLayout.vue.js +2 -2
  132. package/dist/features/Operation/layouts/ModernLayout.vue2.js +96 -103
  133. package/dist/index.js +1 -1
  134. package/dist/libs/openapi.d.ts +1 -13
  135. package/dist/libs/openapi.d.ts.map +1 -1
  136. package/dist/libs/openapi.js +39 -56
  137. package/dist/style.css +1 -1
  138. package/dist/v2/ApiReferenceWorkspace.vue.d.ts +10 -4
  139. package/dist/v2/ApiReferenceWorkspace.vue.d.ts.map +1 -1
  140. package/dist/v2/ApiReferenceWorkspace.vue.js +22 -18
  141. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.d.ts +1 -1
  142. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.d.ts.map +1 -1
  143. package/package.json +12 -12
  144. package/dist/components/Content/Schema/Schema.preview.d.ts +0 -1078
  145. package/dist/components/Content/Schema/Schema.preview.d.ts.map +0 -1
  146. package/dist/components/Content/Schema/SchemaDiscriminator.vue.d.ts +0 -12
  147. package/dist/components/Content/Schema/SchemaDiscriminator.vue.d.ts.map +0 -1
  148. package/dist/components/Content/Schema/SchemaDiscriminator.vue.js +0 -49
  149. package/dist/components/Content/Schema/SchemaDiscriminator.vue2.js +0 -4
  150. package/dist/components/Content/Schema/SchemaPropertyDescription.vue.d.ts +0 -13
  151. package/dist/components/Content/Schema/SchemaPropertyDescription.vue.d.ts.map +0 -1
  152. package/dist/features/Operation/components/ParameterHeaders.vue.d.ts.map +0 -1
  153. package/dist/features/Operation/components/ParameterHeaders.vue.js +0 -7
  154. package/dist/features/Operation/components/ParameterHeaders.vue2.js +0 -64
  155. package/dist/features/Operation/components/ParameterList.vue3.js +0 -4
  156. package/dist/features/Operation/hooks/useResponses.d.ts +0 -17
  157. package/dist/features/Operation/hooks/useResponses.d.ts.map +0 -1
  158. package/dist/features/Operation/hooks/useResponses.js +0 -19
  159. package/dist/hooks/useDiscriminator.d.ts +0 -53
  160. package/dist/hooks/useDiscriminator.d.ts.map +0 -1
  161. package/dist/hooks/useDiscriminator.js +0 -149
  162. package/dist/hooks/useOperationDiscriminator.d.ts +0 -8
  163. package/dist/hooks/useOperationDiscriminator.d.ts.map +0 -1
  164. package/dist/hooks/useOperationDiscriminator.js +0 -57
  165. /package/dist/features/Operation/components/{ParameterHeaders.vue3.js → Headers.vue3.js} +0 -0
@@ -1,43 +1,40 @@
1
- import { defineComponent as b, useId as M, computed as u, createBlock as i, createCommentVNode as f, openBlock as r, unref as e, withCtx as o, createVNode as a, createElementVNode as g, createTextVNode as y, normalizeClass as k, createElementBlock as N, Fragment as I, renderList as C } from "vue";
2
- import { ScalarErrorBoundary as O } from "@scalar/components";
3
- import _ from "../../ShowMoreButton.vue.js";
4
- import { useNavState as A } from "../../../hooks/useNavState.js";
5
- import { useSidebar as B } from "../../../features/sidebar/hooks/useSidebar.js";
6
- import H from "../../Section/SectionContainer.vue.js";
7
- import L from "../../Section/Section.vue.js";
8
- import w from "../../Section/SectionHeader.vue.js";
9
- import p from "../../Section/SectionHeaderTag.vue.js";
10
- import E from "../../Section/CompactSection.vue.js";
1
+ import { defineComponent as M, useId as b, computed as f, createBlock as m, createCommentVNode as p, openBlock as r, unref as e, withCtx as l, createVNode as t, createElementVNode as N, createTextVNode as _, normalizeClass as y, createElementBlock as I, Fragment as k, renderList as C } from "vue";
2
+ import { ScalarErrorBoundary as A } from "@scalar/components";
3
+ import B from "../../ShowMoreButton.vue.js";
4
+ import { useNavState as H } from "../../../hooks/useNavState.js";
5
+ import { useSidebar as L } from "../../../features/sidebar/hooks/useSidebar.js";
6
+ import w from "../../Section/SectionContainer.vue.js";
7
+ import x from "../../Section/Section.vue.js";
8
+ import E from "../../Section/SectionHeader.vue.js";
9
+ import S from "../../Section/SectionHeaderTag.vue.js";
10
+ import O from "../../Section/CompactSection.vue.js";
11
11
  import V from "../Schema/Schema.vue.js";
12
12
  import T from "../Schema/SchemaHeading.vue.js";
13
- const h = 10, P = /* @__PURE__ */ b({
13
+ const h = 10, Q = /* @__PURE__ */ M({
14
14
  __name: "ModernLayout",
15
15
  props: {
16
16
  config: {},
17
- schemas: {}
17
+ schemas: { default: () => [] }
18
18
  },
19
- setup(s) {
20
- const m = M(), { collapsedSidebarItems: S } = B(), { getModelId: d } = A(), n = u(
21
- () => s.config.expandAllModelSections || Object.keys(s.schemas ?? {}).length <= h || S[d()]
22
- ), v = u(() => {
23
- const l = Object.keys(s.schemas ?? {});
24
- return n.value ? l : l.slice(0, h);
25
- });
26
- return (l, c) => l.schemas ? (r(), i(e(H), {
19
+ setup(o) {
20
+ const s = b(), { collapsedSidebarItems: v } = L(), { getModelId: d } = H(), n = f(
21
+ () => o.config.expandAllModelSections || o.schemas.length <= h || v[d()]
22
+ ), g = f(() => n.value ? o.schemas : o.schemas.slice(0, h));
23
+ return (u, c) => u.schemas ? (r(), m(e(w), {
27
24
  key: 0,
28
25
  id: "models"
29
26
  }, {
30
- default: o(() => [
31
- a(e(L), { "aria-labelledby": e(m) }, {
32
- default: o(() => [
33
- a(e(w), null, {
34
- default: o(() => [
35
- a(e(p), {
36
- id: e(m),
27
+ default: l(() => [
28
+ t(e(x), { "aria-labelledby": e(s) }, {
29
+ default: l(() => [
30
+ t(e(E), null, {
31
+ default: l(() => [
32
+ t(e(S), {
33
+ id: e(s),
37
34
  level: 2
38
35
  }, {
39
- default: o(() => c[0] || (c[0] = [
40
- y(" Models ")
36
+ default: l(() => c[0] || (c[0] = [
37
+ _(" Models ")
41
38
  ])),
42
39
  _: 1,
43
40
  __: [0]
@@ -45,38 +42,37 @@ const h = 10, P = /* @__PURE__ */ b({
45
42
  ]),
46
43
  _: 1
47
44
  }),
48
- g("div", {
49
- class: k(["models-list", { "models-list-truncated": !n.value }])
45
+ N("div", {
46
+ class: y(["models-list", { "models-list-truncated": !n.value }])
50
47
  }, [
51
- (r(!0), N(I, null, C(v.value, (t) => (r(), i(e(E), {
52
- id: e(d)({ name: t }),
53
- key: t,
48
+ (r(!0), I(k, null, C(g.value, ({ name: a, schema: i }) => (r(), m(e(O), {
49
+ id: e(d)({ name: a }),
50
+ key: a,
54
51
  class: "models-list-item",
55
- defaultOpen: l.config.expandAllModelSections,
56
- label: t
52
+ defaultOpen: u.config.expandAllModelSections,
53
+ label: a
57
54
  }, {
58
- heading: o(() => [
59
- a(e(p), { level: 3 }, {
60
- default: o(() => [
61
- a(e(T), {
62
- name: l.schemas[t].title ?? t,
63
- value: l.schemas[t]
55
+ heading: l(() => [
56
+ t(e(S), { level: 3 }, {
57
+ default: l(() => [
58
+ t(e(T), {
59
+ name: i.title ?? a,
60
+ value: i
64
61
  }, null, 8, ["name", "value"])
65
62
  ]),
66
63
  _: 2
67
64
  }, 1024)
68
65
  ]),
69
- default: o(() => [
70
- a(e(O), null, {
71
- default: o(() => [
72
- a(e(V), {
66
+ default: l(() => [
67
+ t(e(A), null, {
68
+ default: l(() => [
69
+ t(e(V), {
73
70
  hideHeading: !0,
74
71
  hideModelNames: !0,
75
72
  level: 1,
76
73
  noncollapsible: "",
77
- schemas: l.schemas,
78
- value: l.schemas[t]
79
- }, null, 8, ["schemas", "value"])
74
+ schema: i
75
+ }, null, 8, ["schema"])
80
76
  ]),
81
77
  _: 2
82
78
  }, 1024)
@@ -84,7 +80,7 @@ const h = 10, P = /* @__PURE__ */ b({
84
80
  _: 2
85
81
  }, 1032, ["id", "defaultOpen", "label"]))), 128))
86
82
  ], 2),
87
- n.value ? f("", !0) : (r(), i(_, {
83
+ n.value ? p("", !0) : (r(), m(B, {
88
84
  key: 0,
89
85
  id: e(d)(),
90
86
  class: "show-more-models"
@@ -94,9 +90,9 @@ const h = 10, P = /* @__PURE__ */ b({
94
90
  }, 8, ["aria-labelledby"])
95
91
  ]),
96
92
  _: 1
97
- })) : f("", !0);
93
+ })) : p("", !0);
98
94
  }
99
95
  });
100
96
  export {
101
- P as default
97
+ Q as default
102
98
  };
@@ -1,15 +1,15 @@
1
1
  import type { Collection, Server } from '@scalar/oas-utils/entities/spec';
2
- import type { OpenAPIV3_1 } from '@scalar/openapi-types';
3
2
  import type { ApiReferenceConfiguration } from '@scalar/types';
4
3
  import type { WorkspaceStore } from '@scalar/workspace-store/client';
4
+ import type { OpenApiDocument } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
5
5
  import { type TraversedEntry } from '../../../features/traverse-schema';
6
6
  import type { ClientOptionGroup } from '../../../v2/blocks/scalar-request-example-block/types';
7
7
  type __VLS_Props = {
8
8
  level?: number;
9
9
  rootIndex: number;
10
10
  entries: TraversedEntry[];
11
- document: OpenAPIV3_1.Document;
12
11
  config: ApiReferenceConfiguration;
12
+ document: OpenApiDocument;
13
13
  clientOptions: ClientOptionGroup[];
14
14
  activeCollection: Collection;
15
15
  activeServer: Server | undefined;
@@ -17,6 +17,7 @@ type __VLS_Props = {
17
17
  };
18
18
  declare const _default: import("vue").DefineComponent<__VLS_Props, {
19
19
  currentIndex: import("vue").ComputedRef<number>;
20
+ isLazy: (entry: TraversedEntry, index: number) => "after" | "prev" | null;
20
21
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
21
22
  export default _default;
22
23
  //# sourceMappingURL=TraversedEntry.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TraversedEntry.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operations/TraversedEntry.vue"],"names":[],"mappings":"AA6JA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AACzE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAA;AAC9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAQpE,OAAO,EACL,KAAK,cAAc,EAGpB,MAAM,4BAA4B,CAAA;AAGnC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gDAAgD,CAAA;AAEvF,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,cAAc,EAAE,CAAA;IACzB,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAAA;IAC9B,MAAM,EAAE,yBAAyB,CAAA;IACjC,aAAa,EAAE,iBAAiB,EAAE,CAAA;IAClC,gBAAgB,EAAE,UAAU,CAAA;IAC5B,YAAY,EAAE,MAAM,GAAG,SAAS,CAAA;IAChC,KAAK,EAAE,cAAc,CAAA;CACtB,CAAC;;;;AAwOF,wBAOG"}
1
+ {"version":3,"file":"TraversedEntry.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operations/TraversedEntry.vue"],"names":[],"mappings":"AA8JA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AACzE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAA;AAC9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8DAA8D,CAAA;AAQnG,OAAO,EACL,KAAK,cAAc,EAGpB,MAAM,4BAA4B,CAAA;AAGnC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gDAAgD,CAAA;AAEvF,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,cAAc,EAAE,CAAA;IACzB,MAAM,EAAE,yBAAyB,CAAA;IACjC,QAAQ,EAAE,eAAe,CAAA;IACzB,aAAa,EAAE,iBAAiB,EAAE,CAAA;IAClC,gBAAgB,EAAE,UAAU,CAAA;IAC5B,YAAY,EAAE,MAAM,GAAG,SAAS,CAAA;IAChC,KAAK,EAAE,cAAc,CAAA;CACtB,CAAC;;;oBAyCqB,cAAc,SAAS,MAAM;;AAgMpD,wBAOG"}
@@ -1,4 +1,4 @@
1
- import { defineComponent as T, computed as g, resolveComponent as b, createElementBlock as W, openBlock as i, Fragment as B, renderList as L, createBlock as t, unref as n, withCtx as u, createCommentVNode as k, createVNode as E } from "vue";
1
+ import { defineComponent as T, computed as g, resolveComponent as b, createElementBlock as W, openBlock as i, Fragment as B, renderList as L, createBlock as t, unref as n, withCtx as v, createCommentVNode as k, createVNode as E } from "vue";
2
2
  import { getCurrentIndex as G } from "./get-current-index.js";
3
3
  import { useNavState as z } from "../../../hooks/useNavState.js";
4
4
  import N from "../../Lazy/Lazy.vue2.js";
@@ -11,84 +11,85 @@ const J = /* @__PURE__ */ T({
11
11
  level: { default: 0 },
12
12
  rootIndex: {},
13
13
  entries: {},
14
- document: {},
15
14
  config: {},
15
+ document: {},
16
16
  clientOptions: {},
17
17
  activeCollection: {},
18
18
  activeServer: {},
19
19
  store: {}
20
20
  },
21
21
  setup(r, { expose: C }) {
22
- const l = (e) => "isGroup" in e && e.isGroup, v = (e) => "tag" in e && !l(e), O = (e) => "operation" in e, s = (e) => "webhook" in e, I = (e) => "isWebhooks" in e && !!e.isWebhooks, d = g(() => r.level === 0), { hash: S } = z(), a = g(() => d.value ? r.rootIndex : G(S.value, r.entries)), m = (e, c) => l(e) ? null : c < a.value ? "prev" : c > a.value + 2 ? "after" : null;
22
+ const l = (e) => "isGroup" in e && e.isGroup, d = (e) => "tag" in e && !l(e), O = (e) => "operation" in e, s = (e) => "webhook" in e, I = (e) => "isWebhooks" in e && !!e.isWebhooks, m = g(() => r.level === 0), { hash: S } = z(), a = g(() => m.value ? r.rootIndex : G(S.value, r.entries)), c = (e, u) => l(e) ? null : u < a.value ? "prev" : u > a.value + 2 ? "after" : null;
23
23
  return C({
24
- currentIndex: a
25
- }), (e, c) => {
24
+ currentIndex: a,
25
+ isLazy: c
26
+ }), (e, u) => {
26
27
  const p = b("TraversedEntry", !0);
27
28
  return i(!0), W(B, null, L(e.entries, (o, f) => (i(), t(n(N), {
28
- key: o.id,
29
29
  id: o.id,
30
- prev: m(o, f) === "prev",
31
- isLazy: !!m(o, f)
30
+ key: o.id,
31
+ isLazy: !!c(o, f),
32
+ prev: c(o, f) === "prev"
32
33
  }, {
33
- default: u(() => [
34
+ default: v(() => [
34
35
  O(o) || s(o) ? (i(), t(n($), {
35
36
  key: 0,
36
- omit: !d.value
37
+ omit: !m.value
37
38
  }, {
38
- default: u(() => [
39
+ default: v(() => [
39
40
  E(n(w), {
40
- path: s(o) ? o.name : o.path,
41
- method: o.method,
42
41
  id: o.id,
43
- document: e.document,
44
- collection: e.activeCollection,
45
42
  clientOptions: e.clientOptions,
43
+ collection: e.activeCollection,
46
44
  config: e.config,
47
- store: e.store,
45
+ document: e.document,
46
+ isWebhook: s(o),
47
+ method: o.method,
48
+ path: s(o) ? o.name : o.path,
48
49
  server: e.activeServer,
49
- isWebhook: s(o)
50
- }, null, 8, ["path", "method", "id", "document", "collection", "clientOptions", "config", "store", "server", "isWebhook"])
50
+ store: e.store
51
+ }, null, 8, ["id", "clientOptions", "collection", "config", "document", "isWebhook", "method", "path", "server", "store"])
51
52
  ]),
52
53
  _: 2
53
- }, 1032, ["omit"])) : I(o) || v(o) ? (i(), t(n(V), {
54
+ }, 1032, ["omit"])) : I(o) || d(o) ? (i(), t(n(V), {
54
55
  key: 1,
55
- tag: o,
56
56
  layout: e.config.layout,
57
- moreThanOneTag: e.entries.filter(v).length > 1
57
+ moreThanOneTag: e.entries.filter(d).length > 1,
58
+ tag: o
58
59
  }, {
59
- default: u(() => {
60
+ default: v(() => {
60
61
  var h;
61
62
  return [
62
63
  "children" in o && ((h = o.children) != null && h.length) ? (i(), t(p, {
63
64
  key: 0,
64
- level: e.level + 1,
65
- entries: o.children,
66
65
  activeCollection: e.activeCollection,
67
66
  activeServer: e.activeServer,
68
67
  clientOptions: e.clientOptions,
69
- rootIndex: e.rootIndex,
70
68
  config: e.config,
71
69
  document: e.document,
70
+ entries: o.children,
71
+ level: e.level + 1,
72
+ rootIndex: e.rootIndex,
72
73
  store: e.store
73
- }, null, 8, ["level", "entries", "activeCollection", "activeServer", "clientOptions", "rootIndex", "config", "document", "store"])) : k("", !0)
74
+ }, null, 8, ["activeCollection", "activeServer", "clientOptions", "config", "document", "entries", "level", "rootIndex", "store"])) : k("", !0)
74
75
  ];
75
76
  }),
76
77
  _: 2
77
- }, 1032, ["tag", "layout", "moreThanOneTag"])) : l(o) ? (i(), t(p, {
78
+ }, 1032, ["layout", "moreThanOneTag", "tag"])) : l(o) ? (i(), t(p, {
78
79
  key: 2,
79
- level: e.level + 1,
80
- rootIndex: e.rootIndex,
81
- entries: o.children || [],
82
80
  activeCollection: e.activeCollection,
83
81
  activeServer: e.activeServer,
84
82
  clientOptions: e.clientOptions,
85
83
  config: e.config,
86
84
  document: e.document,
85
+ entries: o.children || [],
86
+ level: e.level + 1,
87
+ rootIndex: e.rootIndex,
87
88
  store: e.store
88
- }, null, 8, ["level", "rootIndex", "entries", "activeCollection", "activeServer", "clientOptions", "config", "document", "store"])) : k("", !0)
89
+ }, null, 8, ["activeCollection", "activeServer", "clientOptions", "config", "document", "entries", "level", "rootIndex", "store"])) : k("", !0)
89
90
  ]),
90
91
  _: 2
91
- }, 1032, ["id", "prev", "isLazy"]))), 128);
92
+ }, 1032, ["id", "isLazy", "prev"]))), 128);
92
93
  };
93
94
  }
94
95
  });
@@ -1,11 +1,11 @@
1
- import type { OpenAPIV3_1 } from '@scalar/openapi-types';
2
1
  import type { ApiReferenceConfiguration } from '@scalar/types';
3
2
  import type { WorkspaceStore } from '@scalar/workspace-store/client';
3
+ import type { OpenApiDocument } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
4
4
  import type { ClientOptionGroup } from '../../../v2/blocks/scalar-request-example-block/types';
5
5
  type __VLS_Props = {
6
- document: OpenAPIV3_1.Document;
7
6
  config: ApiReferenceConfiguration;
8
7
  clientOptions: ClientOptionGroup[];
8
+ document: OpenApiDocument;
9
9
  store: WorkspaceStore;
10
10
  };
11
11
  declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -1 +1 @@
1
- {"version":3,"file":"TraversedEntryContainer.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operations/TraversedEntryContainer.vue"],"names":[],"mappings":"AAyFA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAA;AAC9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAMpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gDAAgD,CAAA;AAIvF,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAAA;IAC9B,MAAM,EAAE,yBAAyB,CAAA;IACjC,aAAa,EAAE,iBAAiB,EAAE,CAAA;IAClC,KAAK,EAAE,cAAc,CAAA;CACtB,CAAC;;AA6GF,wBAMG"}
1
+ {"version":3,"file":"TraversedEntryContainer.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operations/TraversedEntryContainer.vue"],"names":[],"mappings":"AAyFA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAA;AAC9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8DAA8D,CAAA;AAMnG,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gDAAgD,CAAA;AAIvF,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,yBAAyB,CAAA;IACjC,aAAa,EAAE,iBAAiB,EAAE,CAAA;IAClC,QAAQ,EAAE,eAAe,CAAA;IACzB,KAAK,EAAE,cAAc,CAAA;CACtB,CAAC;;AA6GF,wBAMG"}
@@ -8,9 +8,9 @@ import { useSidebar as E } from "../../../features/sidebar/hooks/useSidebar.js";
8
8
  const N = { key: 0 }, T = /* @__PURE__ */ d({
9
9
  __name: "TraversedEntryContainer",
10
10
  props: {
11
- document: {},
12
11
  config: {},
13
12
  clientOptions: {},
13
+ document: {},
14
14
  store: {}
15
15
  },
16
16
  setup(i) {
@@ -1,7 +1,6 @@
1
- import type { OpenAPIV3_1 } from '@scalar/openapi-types';
2
- import type { Schemas } from '../../../features/Operation/types/schemas';
1
+ import type { DiscriminatorObject, SchemaObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
3
2
  type __VLS_Props = {
4
- value?: OpenAPIV3_1.OperationObject | OpenAPIV3_1.SchemaObject | OpenAPIV3_1.ArraySchemaObject | OpenAPIV3_1.NonArraySchemaObject | OpenAPIV3_1.SchemaObject | OpenAPIV3_1.ArraySchemaObject | OpenAPIV3_1.NonArraySchemaObject;
3
+ schema?: SchemaObject;
5
4
  /** Track how deep we've gone */
6
5
  level?: number;
7
6
  name?: string;
@@ -9,32 +8,17 @@ type __VLS_Props = {
9
8
  compact?: boolean;
10
9
  /** Shows a toggle to hide/show children */
11
10
  noncollapsible?: boolean;
11
+ /** Hide the heading */
12
12
  hideHeading?: boolean;
13
13
  /** Show a special one way toggle for additional properties, also has a top border when open */
14
14
  additionalProperties?: boolean;
15
15
  /** Hide model names in type display */
16
16
  hideModelNames?: boolean;
17
- /** All schemas for model name retrieval */
18
- schemas?: Schemas;
19
- /** Selected discriminator */
20
- discriminator?: string;
21
- /** Discriminator mapping */
22
- discriminatorMapping?: Record<string, string>;
23
- /** Discriminator property name */
24
- discriminatorPropertyName?: string;
25
- /** Whether the schema has a discriminator */
26
- hasDiscriminator?: boolean;
17
+ /** Discriminator object */
18
+ discriminator?: DiscriminatorObject;
27
19
  /** Breadcrumb for the schema */
28
20
  breadcrumb?: string[];
29
21
  };
30
- declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
31
- "update:modelValue": (value: string) => any;
32
- }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
33
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
34
- }>, {
35
- level: number;
36
- noncollapsible: boolean;
37
- hideModelNames: boolean;
38
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
22
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
39
23
  export default _default;
40
24
  //# sourceMappingURL=Schema.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Schema.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/Schema.vue"],"names":[],"mappings":"AA8aA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAIxD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AASjE,KAAK,WAAW,GAAG;IACf,KAAK,CAAC,EACF,WAAW,CAAC,eAAe,GAC3B,WAAW,CAAC,YAAY,GACxB,WAAW,CAAC,iBAAiB,GAC7B,WAAW,CAAC,oBAAoB,GAChC,WAAW,CAAC,YAAY,GACxB,WAAW,CAAC,iBAAiB,GAC7B,WAAW,CAAC,oBAAoB,CAAA;IACpC,gCAAgC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,+DAA+D;IAC/D,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,2CAA2C;IAC3C,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,+FAA+F;IAC/F,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B,uCAAuC;IACvC,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,2CAA2C;IAC3C,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,6BAA6B;IAC7B,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,4BAA4B;IAC5B,oBAAoB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC7C,kCAAkC;IAClC,yBAAyB,CAAC,EAAE,MAAM,CAAA;IAClC,6CAA6C;IAC7C,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,gCAAgC;IAChC,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;CACtB,CAAC;;;;;;WAxBQ,MAAM;oBAMG,OAAO;oBAKP,OAAO;;AA4iB5B,wBAQG"}
1
+ {"version":3,"file":"Schema.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/Schema.vue"],"names":[],"mappings":"AA0UA,OAAO,KAAK,EACV,mBAAmB,EACnB,YAAY,EACb,MAAM,8DAA8D,CAAA;AAUrE,KAAK,WAAW,GAAG;IACjB,MAAM,CAAC,EAAE,YAAY,CAAA;IACrB,gCAAgC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,+DAA+D;IAC/D,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,2CAA2C;IAC3C,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,uBAAuB;IACvB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,+FAA+F;IAC/F,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B,uCAAuC;IACvC,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,2BAA2B;IAC3B,aAAa,CAAC,EAAE,mBAAmB,CAAA;IACnC,gCAAgC;IAChC,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;CACtB,CAAC;;AAoaF,wBAMG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./Schema.vue2.js";
2
2
  import "./Schema.vue3.js";
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-227f4a34"]]);
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-35a08997"]]);
5
5
  export {
6
- f as default
6
+ p as default
7
7
  };