@scalar/api-reference 1.35.7 → 1.36.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 (168) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/dist/browser/standalone.js +7953 -7994
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
  5. package/dist/components/ApiReferenceLayout.vue.js +1 -1
  6. package/dist/components/ApiReferenceLayout.vue2.js +148 -150
  7. package/dist/components/Content/Content.vue.d.ts.map +1 -1
  8. package/dist/components/Content/Content.vue.js +44 -51
  9. package/dist/components/Content/Models/ClassicLayout.vue.d.ts +2 -1
  10. package/dist/components/Content/Models/ClassicLayout.vue.d.ts.map +1 -1
  11. package/dist/components/Content/Models/ClassicLayout.vue.js +2 -2
  12. package/dist/components/Content/Models/ClassicLayout.vue2.js +31 -33
  13. package/dist/components/Content/Models/Models.vue.d.ts +2 -2
  14. package/dist/components/Content/Models/Models.vue.d.ts.map +1 -1
  15. package/dist/components/Content/Models/Models.vue.js +24 -23
  16. package/dist/components/Content/Models/ModernLayout.vue.d.ts +1 -0
  17. package/dist/components/Content/Models/ModernLayout.vue.d.ts.map +1 -1
  18. package/dist/components/Content/Models/ModernLayout.vue.js +2 -2
  19. package/dist/components/Content/Models/ModernLayout.vue2.js +40 -41
  20. package/dist/components/Content/Operations/TraversedEntry.vue.d.ts +1 -2
  21. package/dist/components/Content/Operations/TraversedEntry.vue.d.ts.map +1 -1
  22. package/dist/components/Content/Operations/TraversedEntry.vue.js +24 -24
  23. package/dist/components/Content/Operations/TraversedEntryContainer.vue.d.ts.map +1 -1
  24. package/dist/components/Content/Operations/TraversedEntryContainer.vue.js +1 -1
  25. package/dist/components/Content/Operations/get-current-index.d.ts +1 -1
  26. package/dist/components/Content/Operations/get-current-index.d.ts.map +1 -1
  27. package/dist/components/Content/Operations/get-current-index.js +1 -1
  28. package/dist/components/Content/Schema/SchemaObjectProperties.vue.d.ts.map +1 -1
  29. package/dist/components/Content/Schema/SchemaObjectProperties.vue.js +35 -45
  30. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +1 -1
  31. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
  32. package/dist/components/Content/Schema/helpers/sort-property-names.d.ts +16 -0
  33. package/dist/components/Content/Schema/helpers/sort-property-names.d.ts.map +1 -0
  34. package/dist/components/Content/Schema/helpers/sort-property-names.js +36 -0
  35. package/dist/components/Content/Tags/ClassicLayout.vue.d.ts +1 -1
  36. package/dist/components/Content/Tags/ClassicLayout.vue.d.ts.map +1 -1
  37. package/dist/components/Content/Tags/ClassicLayout.vue.js +2 -2
  38. package/dist/components/Content/Tags/ClassicLayout.vue2.js +1 -1
  39. package/dist/components/Content/Tags/ModernLayout.vue.d.ts +1 -1
  40. package/dist/components/Content/Tags/ModernLayout.vue.d.ts.map +1 -1
  41. package/dist/components/Content/Tags/ModernLayout.vue.js +2 -2
  42. package/dist/components/Content/Tags/ModernLayout.vue2.js +2 -2
  43. package/dist/components/Content/Tags/Tag.vue.d.ts +1 -1
  44. package/dist/components/Content/Tags/Tag.vue.d.ts.map +1 -1
  45. package/dist/components/Content/Tags/TagSection.vue.d.ts +1 -1
  46. package/dist/components/Content/Tags/TagSection.vue.d.ts.map +1 -1
  47. package/dist/components/Content/Tags/TagSection.vue.js +4 -4
  48. package/dist/components/MobileHeader.vue.js +2 -2
  49. package/dist/components/MobileHeader.vue2.js +1 -1
  50. package/dist/components/OperationsList/OperationsList.vue.d.ts +1 -1
  51. package/dist/components/OperationsList/OperationsList.vue.d.ts.map +1 -1
  52. package/dist/components/OperationsList/OperationsList.vue.js +1 -1
  53. package/dist/components/OperationsList/OperationsList.vue2.js +9 -11
  54. package/dist/components/OperationsList/OperationsListItem.vue.d.ts +1 -1
  55. package/dist/components/OperationsList/OperationsListItem.vue.d.ts.map +1 -1
  56. package/dist/components/OperationsList/OperationsListItem.vue.js +2 -2
  57. package/dist/components/OperationsList/OperationsListItem.vue2.js +24 -27
  58. package/dist/components/Section/Section.vue.d.ts.map +1 -1
  59. package/dist/components/Section/Section.vue.js +2 -2
  60. package/dist/components/Section/Section.vue2.js +12 -13
  61. package/dist/components/Section/SectionAccordion.vue.d.ts.map +1 -1
  62. package/dist/components/Section/SectionAccordion.vue.js +1 -1
  63. package/dist/components/Section/SectionAccordion.vue2.js +36 -37
  64. package/dist/components/ShowMoreButton.vue.js +2 -2
  65. package/dist/components/ShowMoreButton.vue2.js +3 -3
  66. package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
  67. package/dist/features/Operation/Operation.vue.js +32 -22
  68. package/dist/features/Operation/components/RequestBody.vue.d.ts.map +1 -1
  69. package/dist/features/Operation/components/RequestBody.vue.js +1 -1
  70. package/dist/features/Operation/components/RequestBody.vue2.js +59 -47
  71. package/dist/features/Operation/helpers/get-first-server.d.ts +9 -0
  72. package/dist/features/Operation/helpers/get-first-server.d.ts.map +1 -0
  73. package/dist/features/Operation/helpers/get-first-server.js +20 -0
  74. package/dist/features/Search/components/SearchButton.vue.d.ts +2 -0
  75. package/dist/features/Search/components/SearchButton.vue.d.ts.map +1 -1
  76. package/dist/features/Search/components/SearchButton.vue.js +19 -17
  77. package/dist/features/Search/components/SearchModal.vue.d.ts +2 -1
  78. package/dist/features/Search/components/SearchModal.vue.d.ts.map +1 -1
  79. package/dist/features/Search/components/SearchModal.vue.js +2 -2
  80. package/dist/features/Search/components/SearchModal.vue2.js +74 -75
  81. package/dist/features/Search/helpers/create-search-index.d.ts +2 -2
  82. package/dist/features/Search/helpers/create-search-index.d.ts.map +1 -1
  83. package/dist/features/Search/helpers/create-search-index.js +68 -66
  84. package/dist/features/Search/hooks/useSearchIndex.d.ts +3 -2
  85. package/dist/features/Search/hooks/useSearchIndex.d.ts.map +1 -1
  86. package/dist/features/Search/hooks/useSearchIndex.js +13 -13
  87. package/dist/features/Search/types.d.ts +1 -1
  88. package/dist/features/Search/types.d.ts.map +1 -1
  89. package/dist/features/api-client-modal/useApiClient.d.ts +20 -20
  90. package/dist/helpers/test-utils.d.ts +367 -5
  91. package/dist/helpers/test-utils.d.ts.map +1 -1
  92. package/dist/hooks/useNavState.d.ts +1 -15
  93. package/dist/hooks/useNavState.d.ts.map +1 -1
  94. package/dist/hooks/useNavState.js +29 -53
  95. package/dist/index.d.ts +5 -6
  96. package/dist/index.d.ts.map +1 -1
  97. package/dist/index.js +16 -20
  98. package/dist/style.css +1 -1
  99. package/dist/{features/sidebar/components/Sidebar.vue.d.ts → v2/blocks/scalar-sidebar-block/components/SidebarBlock.vue.d.ts} +1 -1
  100. package/dist/v2/blocks/scalar-sidebar-block/components/SidebarBlock.vue.d.ts.map +1 -0
  101. package/dist/v2/blocks/scalar-sidebar-block/components/SidebarBlock.vue.js +7 -0
  102. package/dist/{features/sidebar/components/Sidebar.vue2.js → v2/blocks/scalar-sidebar-block/components/SidebarBlock.vue2.js} +15 -15
  103. package/dist/{features/sidebar → v2/blocks/scalar-sidebar-block}/components/SidebarElement.vue.d.ts +1 -1
  104. package/dist/v2/blocks/scalar-sidebar-block/components/SidebarElement.vue.d.ts.map +1 -0
  105. package/dist/v2/blocks/scalar-sidebar-block/components/SidebarElement.vue.js +7 -0
  106. package/dist/{features/sidebar → v2/blocks/scalar-sidebar-block}/components/SidebarElement.vue2.js +41 -43
  107. package/dist/v2/blocks/scalar-sidebar-block/components/SidebarGroup.vue.d.ts.map +1 -0
  108. package/dist/v2/blocks/scalar-sidebar-block/components/SidebarGroup.vue.js +7 -0
  109. package/dist/v2/blocks/scalar-sidebar-block/components/SidebarHttpBadge.vue.d.ts.map +1 -0
  110. package/dist/v2/blocks/scalar-sidebar-block/components/SidebarHttpBadge.vue.js +7 -0
  111. package/dist/{features/sidebar → v2/blocks/scalar-sidebar-block}/components/SidebarHttpBadge.vue2.js +1 -1
  112. package/dist/v2/blocks/scalar-sidebar-block/helpers/create-sidebar.d.ts +385 -0
  113. package/dist/v2/blocks/scalar-sidebar-block/helpers/create-sidebar.d.ts.map +1 -0
  114. package/dist/v2/blocks/scalar-sidebar-block/helpers/create-sidebar.js +35 -0
  115. package/dist/v2/blocks/scalar-sidebar-block/helpers/generate-reverse-index.d.ts +189 -0
  116. package/dist/v2/blocks/scalar-sidebar-block/helpers/generate-reverse-index.d.ts.map +1 -0
  117. package/dist/v2/blocks/scalar-sidebar-block/helpers/generate-reverse-index.js +9 -0
  118. package/dist/{features/sidebar → v2/blocks/scalar-sidebar-block}/hooks/useSidebar.d.ts +4 -8
  119. package/dist/v2/blocks/scalar-sidebar-block/hooks/useSidebar.d.ts.map +1 -0
  120. package/dist/v2/blocks/scalar-sidebar-block/hooks/useSidebar.js +18 -0
  121. package/dist/v2/blocks/scalar-sidebar-block/index.d.ts +4 -0
  122. package/dist/v2/blocks/scalar-sidebar-block/index.d.ts.map +1 -0
  123. package/dist/v2/helpers/map-configuration.d.ts.map +1 -1
  124. package/package.json +9 -9
  125. package/dist/features/sidebar/components/Sidebar.vue.d.ts.map +0 -1
  126. package/dist/features/sidebar/components/Sidebar.vue.js +0 -7
  127. package/dist/features/sidebar/components/SidebarElement.vue.d.ts.map +0 -1
  128. package/dist/features/sidebar/components/SidebarElement.vue.js +0 -7
  129. package/dist/features/sidebar/components/SidebarGroup.vue.d.ts.map +0 -1
  130. package/dist/features/sidebar/components/SidebarGroup.vue.js +0 -7
  131. package/dist/features/sidebar/components/SidebarHttpBadge.vue.d.ts.map +0 -1
  132. package/dist/features/sidebar/components/SidebarHttpBadge.vue.js +0 -7
  133. package/dist/features/sidebar/helpers/create-sidebar.d.ts +0 -28
  134. package/dist/features/sidebar/helpers/create-sidebar.d.ts.map +0 -1
  135. package/dist/features/sidebar/helpers/create-sidebar.js +0 -32
  136. package/dist/features/sidebar/hooks/useSidebar.d.ts.map +0 -1
  137. package/dist/features/sidebar/hooks/useSidebar.js +0 -18
  138. package/dist/features/sidebar/index.d.ts +0 -4
  139. package/dist/features/sidebar/index.d.ts.map +0 -1
  140. package/dist/features/traverse-schema/helpers/get-tag.d.ts +0 -6
  141. package/dist/features/traverse-schema/helpers/get-tag.d.ts.map +0 -1
  142. package/dist/features/traverse-schema/helpers/get-tag.js +0 -7
  143. package/dist/features/traverse-schema/helpers/traverse-description.d.ts +0 -11
  144. package/dist/features/traverse-schema/helpers/traverse-description.d.ts.map +0 -1
  145. package/dist/features/traverse-schema/helpers/traverse-description.js +0 -32
  146. package/dist/features/traverse-schema/helpers/traverse-document.d.ts +0 -16
  147. package/dist/features/traverse-schema/helpers/traverse-document.d.ts.map +0 -1
  148. package/dist/features/traverse-schema/helpers/traverse-document.js +0 -33
  149. package/dist/features/traverse-schema/helpers/traverse-paths.d.ts +0 -18
  150. package/dist/features/traverse-schema/helpers/traverse-paths.d.ts.map +0 -1
  151. package/dist/features/traverse-schema/helpers/traverse-paths.js +0 -30
  152. package/dist/features/traverse-schema/helpers/traverse-schemas.d.ts +0 -8
  153. package/dist/features/traverse-schema/helpers/traverse-schemas.d.ts.map +0 -1
  154. package/dist/features/traverse-schema/helpers/traverse-schemas.js +0 -21
  155. package/dist/features/traverse-schema/helpers/traverse-tags.d.ts +0 -11
  156. package/dist/features/traverse-schema/helpers/traverse-tags.d.ts.map +0 -1
  157. package/dist/features/traverse-schema/helpers/traverse-tags.js +0 -43
  158. package/dist/features/traverse-schema/helpers/traverse-webhooks.d.ts +0 -10
  159. package/dist/features/traverse-schema/helpers/traverse-webhooks.d.ts.map +0 -1
  160. package/dist/features/traverse-schema/helpers/traverse-webhooks.js +0 -24
  161. package/dist/features/traverse-schema/index.d.ts +0 -5
  162. package/dist/features/traverse-schema/index.d.ts.map +0 -1
  163. package/dist/features/traverse-schema/types.d.ts +0 -55
  164. package/dist/features/traverse-schema/types.d.ts.map +0 -1
  165. package/dist/libs/markdown.js +0 -18
  166. /package/dist/{features/sidebar → v2/blocks/scalar-sidebar-block}/components/SidebarGroup.vue.d.ts +0 -0
  167. /package/dist/{features/sidebar → v2/blocks/scalar-sidebar-block}/components/SidebarGroup.vue2.js +0 -0
  168. /package/dist/{features/sidebar → v2/blocks/scalar-sidebar-block}/components/SidebarHttpBadge.vue.d.ts +0 -0
@@ -1,11 +1,11 @@
1
- import { defineComponent as S, computed as h, resolveComponent as T, createElementBlock as b, openBlock as i, Fragment as W, renderList as B, createBlock as t, unref as n, withCtx as v, createCommentVNode as g, createVNode as L } from "vue";
1
+ import { defineComponent as I, computed as g, resolveComponent as S, createElementBlock as T, openBlock as t, Fragment as L, renderList as b, createBlock as n, unref as i, withCtx as v, createCommentVNode as h, createVNode as B } from "vue";
2
2
  import { getCurrentIndex as E } from "./get-current-index.js";
3
- import { useNavState as G } from "../../../hooks/useNavState.js";
4
- import z from "../../Lazy/Lazy.vue2.js";
5
- import N from "../../Section/SectionContainer.vue.js";
3
+ import { useNavState as z } from "../../../hooks/useNavState.js";
4
+ import N from "../../Lazy/Lazy.vue2.js";
5
+ import W from "../../Section/SectionContainer.vue.js";
6
6
  import $ from "../../../features/Operation/Operation.vue.js";
7
7
  import w from "../Tags/Tag.vue.js";
8
- const H = /* @__PURE__ */ S({
8
+ const D = /* @__PURE__ */ I({
9
9
  __name: "TraversedEntry",
10
10
  props: {
11
11
  level: { default: 0 },
@@ -18,47 +18,47 @@ const H = /* @__PURE__ */ S({
18
18
  activeServer: {},
19
19
  store: {}
20
20
  },
21
- setup(r, { expose: k }) {
22
- const l = (e) => "isGroup" in e && e.isGroup, d = (e) => "tag" in e && !l(e), C = (e) => "operation" in e, s = (e) => "webhook" in e, O = (e) => "isWebhooks" in e && !!e.isWebhooks, m = h(() => r.level === 0), { hash: I } = G(), a = h(() => m.value ? r.rootIndex : E(I.value, r.entries)), c = (e, u) => l(e) ? null : u < a.value ? "prev" : u > a.value + 2 ? "after" : null;
23
- return k({
24
- currentIndex: a,
25
- isLazy: c
21
+ setup(r, { expose: C }) {
22
+ const l = (e) => e.type === "tag" && e.isGroup === !0, d = (e) => e.type === "tag" && !l(e), O = (e) => e.type === "operation", a = (e) => e.type === "webhook", m = g(() => r.level === 0), { hash: k } = z(), c = g(() => m.value ? r.rootIndex : E(k.value, r.entries)), s = (e, u) => l(e) ? null : u < c.value ? "prev" : u > c.value + 2 ? "after" : null;
23
+ return C({
24
+ currentIndex: c,
25
+ isLazy: s
26
26
  }), (e, u) => {
27
- const p = T("TraversedEntry", !0);
28
- return i(!0), b(W, null, B(e.entries, (o, f) => (i(), t(n(z), {
27
+ const p = S("TraversedEntry", !0);
28
+ return t(!0), T(L, null, b(e.entries, (o, f) => (t(), n(i(N), {
29
29
  id: o.id,
30
30
  key: o.id,
31
- isLazy: !!c(o, f),
32
- prev: c(o, f) === "prev"
31
+ isLazy: !!s(o, f),
32
+ prev: s(o, f) === "prev"
33
33
  }, {
34
34
  default: v(() => [
35
- C(o) || s(o) ? (i(), t(n(N), {
35
+ O(o) || a(o) ? (t(), n(i(W), {
36
36
  key: 0,
37
37
  omit: !m.value
38
38
  }, {
39
39
  default: v(() => [
40
- L(n($), {
40
+ B(i($), {
41
41
  id: o.id,
42
42
  clientOptions: e.clientOptions,
43
43
  collection: e.activeCollection,
44
44
  config: e.config,
45
45
  document: e.document,
46
- isWebhook: s(o),
46
+ isWebhook: a(o),
47
47
  method: o.method,
48
- path: s(o) ? o.name : o.path,
48
+ path: a(o) ? o.name : o.path,
49
49
  server: e.activeServer,
50
50
  store: e.store
51
51
  }, null, 8, ["id", "clientOptions", "collection", "config", "document", "isWebhook", "method", "path", "server", "store"])
52
52
  ]),
53
53
  _: 2
54
- }, 1032, ["omit"])) : O(o) || d(o) ? (i(), t(n(w), {
54
+ }, 1032, ["omit"])) : d(o) ? (t(), n(i(w), {
55
55
  key: 1,
56
56
  layout: e.config.layout,
57
57
  moreThanOneTag: e.entries.filter(d).length > 1,
58
58
  tag: o
59
59
  }, {
60
60
  default: v(() => [
61
- "children" in o && o.children?.length ? (i(), t(p, {
61
+ "children" in o && o.children?.length ? (t(), n(p, {
62
62
  key: 0,
63
63
  activeCollection: e.activeCollection,
64
64
  activeServer: e.activeServer,
@@ -69,10 +69,10 @@ const H = /* @__PURE__ */ S({
69
69
  level: e.level + 1,
70
70
  rootIndex: e.rootIndex,
71
71
  store: e.store
72
- }, null, 8, ["activeCollection", "activeServer", "clientOptions", "config", "document", "entries", "level", "rootIndex", "store"])) : g("", !0)
72
+ }, null, 8, ["activeCollection", "activeServer", "clientOptions", "config", "document", "entries", "level", "rootIndex", "store"])) : h("", !0)
73
73
  ]),
74
74
  _: 2
75
- }, 1032, ["layout", "moreThanOneTag", "tag"])) : l(o) ? (i(), t(p, {
75
+ }, 1032, ["layout", "moreThanOneTag", "tag"])) : l(o) ? (t(), n(p, {
76
76
  key: 2,
77
77
  activeCollection: e.activeCollection,
78
78
  activeServer: e.activeServer,
@@ -83,7 +83,7 @@ const H = /* @__PURE__ */ S({
83
83
  level: e.level + 1,
84
84
  rootIndex: e.rootIndex,
85
85
  store: e.store
86
- }, null, 8, ["activeCollection", "activeServer", "clientOptions", "config", "document", "entries", "level", "rootIndex", "store"])) : g("", !0)
86
+ }, null, 8, ["activeCollection", "activeServer", "clientOptions", "config", "document", "entries", "level", "rootIndex", "store"])) : h("", !0)
87
87
  ]),
88
88
  _: 2
89
89
  }, 1032, ["id", "isLazy", "prev"]))), 128);
@@ -91,5 +91,5 @@ const H = /* @__PURE__ */ S({
91
91
  }
92
92
  });
93
93
  export {
94
- H as default
94
+ D as default
95
95
  };
@@ -1 +1 @@
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"}
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;AAKnG,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gDAAgD,CAAA;AAKvF,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"}
@@ -4,7 +4,7 @@ import { getSlugUid as h } from "@scalar/oas-utils/transforms";
4
4
  import { getCurrentIndex as _ } from "./get-current-index.js";
5
5
  import { useNavState as k } from "../../../hooks/useNavState.js";
6
6
  import I from "./TraversedEntry.vue.js";
7
- import { useSidebar as O } from "../../../features/sidebar/hooks/useSidebar.js";
7
+ import { useSidebar as O } from "../../../v2/blocks/scalar-sidebar-block/hooks/useSidebar.js";
8
8
  const E = { key: 0 }, T = /* @__PURE__ */ m({
9
9
  __name: "TraversedEntryContainer",
10
10
  props: {
@@ -1,4 +1,4 @@
1
- import type { TraversedEntry } from '../../../features/traverse-schema/types';
1
+ import type { TraversedEntry } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
2
2
  /** Loops through the entries and returns the index of the current entry based on the hash */
3
3
  export declare const getCurrentIndex: (hash: string, entries: TraversedEntry[]) => number;
4
4
  //# sourceMappingURL=get-current-index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-current-index.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operations/get-current-index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAA;AAuBtE,6FAA6F;AAC7F,eAAO,MAAM,eAAe,GAAI,MAAM,MAAM,EAAE,SAAS,cAAc,EAAE,WAYtE,CAAA"}
1
+ {"version":3,"file":"get-current-index.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operations/get-current-index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8DAA8D,CAAA;AAuBlG,6FAA6F;AAC7F,eAAO,MAAM,eAAe,GAAI,MAAM,MAAM,EAAE,SAAS,cAAc,EAAE,WAYtE,CAAA"}
@@ -9,7 +9,7 @@ const d = /^.*?(?=\.query|\.path|\.headers|\.cookies|\.body)/, i = (t) => {
9
9
  return t;
10
10
  }, o = (t, e) => {
11
11
  const n = i(t);
12
- return e.findIndex((r) => "tag" in r ? n.startsWith(r.id) : n === r.id);
12
+ return e.findIndex((r) => r.type === "tag" ? n.startsWith(r.id) : n === r.id);
13
13
  };
14
14
  export {
15
15
  o as getCurrentIndex
@@ -1 +1 @@
1
- {"version":3,"file":"SchemaObjectProperties.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaObjectProperties.vue"],"names":[],"mappings":"AAiNA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;AAE5E,OAAO,KAAK,EACV,mBAAmB,EACnB,YAAY,EACb,MAAM,8DAA8D,CAAA;AAOrE,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,YAAY,CAAA;IACpB,aAAa,CAAC,EAAE,mBAAmB,CAAA;IACnC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,+BAA+B;IAC/B,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,iCAAiC;IACjC,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IACrB,uBAAuB,CAAC,EAAE,yBAAyB,CAAC,yBAAyB,CAAC,CAAA;IAC9E,4BAA4B,CAAC,EAAE,yBAAyB,CAAC,8BAA8B,CAAC,CAAA;CACzF,CAAC;;AAiQF,wBAMG"}
1
+ {"version":3,"file":"SchemaObjectProperties.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaObjectProperties.vue"],"names":[],"mappings":"AA8JA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;AAE5E,OAAO,KAAK,EACV,mBAAmB,EACnB,YAAY,EACb,MAAM,8DAA8D,CAAA;AAQrE,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,YAAY,CAAA;IACpB,aAAa,CAAC,EAAE,mBAAmB,CAAA;IACnC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,+BAA+B;IAC/B,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,iCAAiC;IACjC,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IACrB,uBAAuB,CAAC,EAAE,yBAAyB,CAAC,yBAAyB,CAAC,CAAA;IAC9E,4BAA4B,CAAC,EAAE,yBAAyB,CAAC,8BAA8B,CAAC,CAAA;CACzF,CAAC;;AA6MF,wBAMG"}
@@ -1,8 +1,9 @@
1
- import { defineComponent as R, computed as P, createElementBlock as l, openBlock as t, Fragment as s, createCommentVNode as h, createBlock as c, unref as n, renderList as f } from "vue";
2
- import { getResolvedRef as o } from "@scalar/workspace-store/helpers/get-resolved-ref";
3
- import { isTypeObject as m } from "./helpers/is-type-object.js";
4
- import u from "./SchemaProperty.vue.js";
5
- const j = /* @__PURE__ */ R({
1
+ import { defineComponent as f, computed as v, createElementBlock as o, openBlock as a, Fragment as t, createCommentVNode as l, createBlock as m, unref as n, renderList as u } from "vue";
2
+ import { getResolvedRef as h } from "@scalar/workspace-store/helpers/get-resolved-ref";
3
+ import { isTypeObject as s } from "./helpers/is-type-object.js";
4
+ import { sortPropertyNames as g } from "./helpers/sort-property-names.js";
5
+ import c from "./SchemaProperty.vue.js";
6
+ const H = /* @__PURE__ */ f({
6
7
  __name: "SchemaObjectProperties",
7
8
  props: {
8
9
  schema: {},
@@ -17,36 +18,25 @@ const j = /* @__PURE__ */ R({
17
18
  orderSchemaPropertiesBy: { default: "alpha" },
18
19
  orderRequiredPropertiesFirst: { default: !0 }
19
20
  },
20
- setup(r) {
21
- const v = P(() => {
22
- if (!m(r.schema) || !r.schema.properties)
23
- return [];
24
- const e = Object.keys(r.schema.properties), a = new Set(r.schema.required || []);
25
- return e.sort((i, d) => {
26
- const y = i === r.discriminator?.propertyName, p = d === r.discriminator?.propertyName, b = a.has(i), O = a.has(d);
27
- if (y && !p)
28
- return -1;
29
- if (!y && p)
30
- return 1;
31
- if (r.orderRequiredPropertiesFirst) {
32
- if (b && !O)
33
- return -1;
34
- if (!b && O)
35
- return 1;
36
- }
37
- return r.orderSchemaPropertiesBy === "alpha" ? i.localeCompare(d) : 0;
38
- }).filter((i) => r.hideReadOnly ? !(r.schema.properties && o(r.schema.properties[i])?.readOnly === !0) : r.hideWriteOnly ? !(r.schema.properties && o(r.schema.properties[i])?.writeOnly === !0) : !0);
39
- }), N = (e) => {
40
- const a = o(e);
41
- return typeof a == "object" && typeof a["x-additionalPropertiesName"] == "string" && a["x-additionalPropertiesName"].trim().length > 0 ? `${a["x-additionalPropertiesName"].trim()}*` : "propertyName*";
42
- }, g = (e) => e === !0 || typeof e == "object" && Object.keys(e).length === 0 || typeof e != "object" || !("type" in e) ? {
21
+ setup(i) {
22
+ const y = v(
23
+ () => g(i.schema, i.discriminator, {
24
+ hideReadOnly: i.hideReadOnly,
25
+ hideWriteOnly: i.hideWriteOnly,
26
+ orderSchemaPropertiesBy: i.orderSchemaPropertiesBy,
27
+ orderRequiredPropertiesFirst: i.orderRequiredPropertiesFirst
28
+ })
29
+ ), p = (e) => {
30
+ const d = h(e);
31
+ return typeof d == "object" && typeof d["x-additionalPropertiesName"] == "string" && d["x-additionalPropertiesName"].trim().length > 0 ? `${d["x-additionalPropertiesName"].trim()}` : "propertyName";
32
+ }, b = (e) => e === !0 || typeof e == "object" && Object.keys(e).length === 0 || typeof e != "object" || !("type" in e) ? {
43
33
  // @ts-expect-error - ask hans
44
34
  type: "anything",
45
35
  ...typeof e == "object" ? e : {}
46
36
  } : e;
47
- return (e, a) => (t(), l(s, null, [
48
- n(m)(e.schema) && e.schema.properties ? (t(!0), l(s, { key: 0 }, f(v.value, (i) => (t(), c(u, {
49
- key: i,
37
+ return (e, d) => (a(), o(t, null, [
38
+ n(s)(e.schema) && e.schema.properties ? (a(!0), o(t, { key: 0 }, u(y.value, (r) => (a(), m(c, {
39
+ key: r,
50
40
  breadcrumb: e.breadcrumb,
51
41
  compact: e.compact,
52
42
  discriminator: e.discriminator,
@@ -55,12 +45,12 @@ const j = /* @__PURE__ */ R({
55
45
  hideReadOnly: e.hideReadOnly,
56
46
  hideWriteOnly: e.hideWriteOnly,
57
47
  level: e.level,
58
- name: i,
59
- required: e.schema.required?.includes(i),
60
- value: n(o)(e.schema.properties[i])
61
- }, null, 8, ["breadcrumb", "compact", "discriminator", "hideHeading", "hideModelNames", "hideReadOnly", "hideWriteOnly", "level", "name", "required", "value"]))), 128)) : h("", !0),
62
- n(m)(e.schema) && e.schema.patternProperties ? (t(!0), l(s, { key: 1 }, f(Object.entries(e.schema.patternProperties), ([i, d]) => (t(), c(u, {
63
- key: i,
48
+ name: r,
49
+ required: e.schema.required?.includes(r),
50
+ value: n(h)(e.schema.properties[r])
51
+ }, null, 8, ["breadcrumb", "compact", "discriminator", "hideHeading", "hideModelNames", "hideReadOnly", "hideWriteOnly", "level", "name", "required", "value"]))), 128)) : l("", !0),
52
+ n(s)(e.schema) && e.schema.patternProperties ? (a(!0), o(t, { key: 1 }, u(Object.entries(e.schema.patternProperties), ([r, O]) => (a(), m(c, {
53
+ key: r,
64
54
  breadcrumb: e.breadcrumb,
65
55
  compact: e.compact,
66
56
  discriminator: e.discriminator,
@@ -69,10 +59,10 @@ const j = /* @__PURE__ */ R({
69
59
  hideReadOnly: e.hideReadOnly,
70
60
  hideWriteOnly: e.hideWriteOnly,
71
61
  level: e.level,
72
- name: i,
73
- value: n(o)(d)
74
- }, null, 8, ["breadcrumb", "compact", "discriminator", "hideHeading", "hideModelNames", "hideReadOnly", "hideWriteOnly", "level", "name", "value"]))), 128)) : h("", !0),
75
- n(m)(e.schema) && e.schema.additionalProperties ? (t(), c(u, {
62
+ name: r,
63
+ value: n(h)(O)
64
+ }, null, 8, ["breadcrumb", "compact", "discriminator", "hideHeading", "hideModelNames", "hideReadOnly", "hideWriteOnly", "level", "name", "value"]))), 128)) : l("", !0),
65
+ n(s)(e.schema) && e.schema.additionalProperties ? (a(), m(c, {
76
66
  key: 2,
77
67
  breadcrumb: e.breadcrumb,
78
68
  compact: e.compact,
@@ -82,14 +72,14 @@ const j = /* @__PURE__ */ R({
82
72
  hideReadOnly: e.hideReadOnly,
83
73
  hideWriteOnly: e.hideWriteOnly,
84
74
  level: e.level,
85
- name: N(e.schema.additionalProperties),
75
+ name: p(e.schema.additionalProperties),
86
76
  noncollapsible: "",
87
- value: g(e.schema.additionalProperties),
77
+ value: b(e.schema.additionalProperties),
88
78
  variant: "additionalProperties"
89
- }, null, 8, ["breadcrumb", "compact", "discriminator", "hideHeading", "hideModelNames", "hideReadOnly", "hideWriteOnly", "level", "name", "value"])) : h("", !0)
79
+ }, null, 8, ["breadcrumb", "compact", "discriminator", "hideHeading", "hideModelNames", "hideReadOnly", "hideWriteOnly", "level", "name", "value"])) : l("", !0)
90
80
  ], 64));
91
81
  }
92
82
  });
93
83
  export {
94
- j as default
84
+ H as default
95
85
  };
@@ -26,8 +26,8 @@ type __VLS_Props = {
26
26
  breadcrumb?: string[];
27
27
  };
28
28
  declare const _default_1: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
29
- required: boolean;
30
29
  level: number;
30
+ required: boolean;
31
31
  compact: boolean;
32
32
  hideModelNames: boolean;
33
33
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -1 +1 @@
1
- {"version":3,"file":"SchemaProperty.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaProperty.vue"],"names":[],"mappings":"AAijBA,OAAO,KAAK,EACV,mBAAmB,EACnB,YAAY,EACb,MAAM,8DAA8D,CAAA;AAErE,OAAO,EAAY,KAAK,SAAS,EAAE,MAAM,KAAK,CAAA;AAa9C;;;;;GAKG;AAEH,KAAK,WAAW,GAAG;IACf,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACvB,KAAK,EAAE,YAAY,GAAG,SAAS,CAAA;IAC/B,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,aAAa,CAAC,EAAE,mBAAmB,CAAA;IACnC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,gCAAgC;IAChC,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,iCAAiC;IACjC,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,OAAO,CAAC,EAAE,sBAAsB,GAAG,mBAAmB,CAAA;IACtD,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;CACtB,CAAC;;cAZW,OAAO;WAFV,MAAM;aAGJ,OAAO;oBAGA,OAAO;;AA+jB5B,0BAOG"}
1
+ {"version":3,"file":"SchemaProperty.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaProperty.vue"],"names":[],"mappings":"AAijBA,OAAO,KAAK,EACV,mBAAmB,EACnB,YAAY,EACb,MAAM,8DAA8D,CAAA;AAErE,OAAO,EAAY,KAAK,SAAS,EAAE,MAAM,KAAK,CAAA;AAa9C;;;;;GAKG;AAEH,KAAK,WAAW,GAAG;IACf,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACvB,KAAK,EAAE,YAAY,GAAG,SAAS,CAAA;IAC/B,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,aAAa,CAAC,EAAE,mBAAmB,CAAA;IACnC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,gCAAgC;IAChC,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,iCAAiC;IACjC,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,OAAO,CAAC,EAAE,sBAAsB,GAAG,mBAAmB,CAAA;IACtD,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;CACtB,CAAC;;WAdQ,MAAM;cAEH,OAAO;aACR,OAAO;oBAGA,OAAO;;AA+jB5B,0BAOG"}
@@ -0,0 +1,16 @@
1
+ import type { ApiReferenceConfiguration } from '@scalar/types';
2
+ import type { DiscriminatorObject, SchemaObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
3
+ /** Extract the type of properties */
4
+ type Properties = NonNullable<Extract<SchemaObject, {
5
+ type: 'object';
6
+ }>['properties']>;
7
+ type Options = Partial<Pick<ApiReferenceConfiguration, 'orderSchemaPropertiesBy' | 'orderRequiredPropertiesFirst'> & {
8
+ hideReadOnly: boolean;
9
+ hideWriteOnly: boolean;
10
+ }>;
11
+ /** Take a list of property names and reduce it back into an object */
12
+ export declare const reduceNamesToObject: (names: string[], properties: Properties) => Properties;
13
+ /** Sort property names in an object schema */
14
+ export declare const sortPropertyNames: (schema: SchemaObject, discriminator?: DiscriminatorObject, { hideReadOnly, hideWriteOnly, orderSchemaPropertiesBy, orderRequiredPropertiesFirst, }?: Options) => string[];
15
+ export {};
16
+ //# sourceMappingURL=sort-property-names.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sort-property-names.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Schema/helpers/sort-property-names.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAA;AAE9D,OAAO,KAAK,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAIrH,qCAAqC;AACrC,KAAK,UAAU,GAAG,WAAW,CAAC,OAAO,CAAC,YAAY,EAAE;IAAE,IAAI,EAAE,QAAQ,CAAA;CAAE,CAAC,CAAC,YAAY,CAAC,CAAC,CAAA;AAEtF,KAAK,OAAO,GAAG,OAAO,CACpB,IAAI,CAAC,yBAAyB,EAAE,yBAAyB,GAAG,8BAA8B,CAAC,GAAG;IAC5F,YAAY,EAAE,OAAO,CAAA;IACrB,aAAa,EAAE,OAAO,CAAA;CACvB,CACF,CAAA;AAED,sEAAsE;AACtE,eAAO,MAAM,mBAAmB,GAAI,OAAO,MAAM,EAAE,EAAE,YAAY,UAAU,KAAG,UAOxD,CAAA;AAEtB,8CAA8C;AAC9C,eAAO,MAAM,iBAAiB,GAC5B,QAAQ,YAAY,EACpB,gBAAgB,mBAAmB,EACnC,0FAKG,OAAY,KACd,MAAM,EAuDR,CAAA"}
@@ -0,0 +1,36 @@
1
+ import { getResolvedRef as y } from "@scalar/workspace-store/helpers/get-resolved-ref";
2
+ import { isTypeObject as m } from "./is-type-object.js";
3
+ const q = (r, o) => r.reduce((i, s) => {
4
+ const n = o?.[s];
5
+ return n && (i[s] = n), i;
6
+ }, {}), R = (r, o, {
7
+ hideReadOnly: i = !1,
8
+ hideWriteOnly: s = !1,
9
+ orderSchemaPropertiesBy: n = "alpha",
10
+ orderRequiredPropertiesFirst: c = !0
11
+ } = {}) => {
12
+ if (!m(r) || !r.properties)
13
+ return [];
14
+ const d = Object.keys(r.properties), p = new Set(r.required || []);
15
+ return d.sort((t, e) => {
16
+ const u = t === o?.propertyName, f = e === o?.propertyName, l = p.has(t), a = p.has(e);
17
+ if (u && !f)
18
+ return -1;
19
+ if (!u && f)
20
+ return 1;
21
+ if (c) {
22
+ if (l && !a)
23
+ return -1;
24
+ if (!l && a)
25
+ return 1;
26
+ }
27
+ return n === "alpha" ? t.localeCompare(e) : 0;
28
+ }).filter((t) => {
29
+ const e = r.properties && y(r.properties[t]);
30
+ return !(i && e?.readOnly === !0 || s && e?.writeOnly === !0);
31
+ });
32
+ };
33
+ export {
34
+ q as reduceNamesToObject,
35
+ R as sortPropertyNames
36
+ };
@@ -1,4 +1,4 @@
1
- import type { TraversedTag } from '../../../features/traverse-schema';
1
+ import type { TraversedTag } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
2
2
  type __VLS_Props = {
3
3
  tag: TraversedTag;
4
4
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ClassicLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tags/ClassicLayout.vue"],"names":[],"mappings":"AAyDA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AAE9D,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,YAAY,CAAA;CAClB,CAAC;AAqFF,QAAA,IAAI,QAAQ,IAAY,CAAE;AAC1B,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAwBhD,QAAA,MAAM,eAAe,kSAMnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"ClassicLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tags/ClassicLayout.vue"],"names":[],"mappings":"AAkDA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAShG,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,YAAY,CAAA;CAClB,CAAC;AAqFF,QAAA,IAAI,QAAQ,IAAY,CAAE;AAC1B,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAwBhD,QAAA,MAAM,eAAe,kSAMnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import o from "./ClassicLayout.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-56f55c2b"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-2414d1d0"]]);
5
5
  export {
6
- c as default
6
+ m as default
7
7
  };
@@ -32,7 +32,7 @@ const y = /* @__PURE__ */ r({
32
32
  }),
33
33
  o(e(d), {
34
34
  class: "tag-description",
35
- value: a.tag.tag?.description,
35
+ value: a.tag?.description,
36
36
  withImages: ""
37
37
  }, null, 8, ["value"])
38
38
  ]),
@@ -1,4 +1,4 @@
1
- import type { TraversedTag } from '../../../features/traverse-schema';
1
+ import type { TraversedTag } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
2
2
  type __VLS_Props = {
3
3
  tag: TraversedTag;
4
4
  moreThanOneTag: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tags/ModernLayout.vue"],"names":[],"mappings":"AAwFA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AAK9D,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,YAAY,CAAA;IACjB,cAAc,EAAE,OAAO,CAAA;CACxB,CAAC;AAqHF,QAAA,IAAuB,QAAQ,IAAY,CAAE;AAC7C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAgChD,QAAA,MAAM,eAAe,kSAMnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tags/ModernLayout.vue"],"names":[],"mappings":"AAiFA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAWhG,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,YAAY,CAAA;IACjB,cAAc,EAAE,OAAO,CAAA;CACxB,CAAC;AAoHF,QAAA,IAAuB,QAAQ,IAAY,CAAE;AAC7C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAgChD,QAAA,MAAM,eAAe,kSAMnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import o from "./ModernLayout.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-91405c72"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-5edb9c26"]]);
5
5
  export {
6
- p as default
6
+ m as default
7
7
  };
@@ -2,7 +2,7 @@ import { defineComponent as h, ref as f, useId as y, computed as C, createBlock
2
2
  import B from "../../ShowMoreButton.vue.js";
3
3
  import { useNavState as v } from "../../../hooks/useNavState.js";
4
4
  import I from "./TagSection.vue.js";
5
- import { useSidebar as O } from "../../../features/sidebar/hooks/useSidebar.js";
5
+ import { useSidebar as O } from "../../../v2/blocks/scalar-sidebar-block/hooks/useSidebar.js";
6
6
  import $ from "../../Section/SectionContainer.vue.js";
7
7
  import w from "../../Lazy/Lazy.vue2.js";
8
8
  const E = /* @__PURE__ */ h({
@@ -13,7 +13,7 @@ const E = /* @__PURE__ */ h({
13
13
  },
14
14
  setup(o) {
15
15
  const u = f(), s = f(), d = y(), { collapsedSidebarItems: c } = O(), { hash: n } = v(), g = C(
16
- () => o.moreThanOneTag || o.tag?.title !== "default" || o.tag?.tag.description !== ""
16
+ () => o.moreThanOneTag || o.tag?.title !== "default" || o.tag?.description !== ""
17
17
  );
18
18
  async function p() {
19
19
  await S(), s.value?.querySelector("button")?.focus();
@@ -1,4 +1,4 @@
1
- import type { TraversedTag } from '../../../features/traverse-schema';
1
+ import type { TraversedTag } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
2
2
  type __VLS_Props = {
3
3
  tag: TraversedTag;
4
4
  layout: 'classic' | 'modern';
@@ -1 +1 @@
1
- {"version":3,"file":"Tag.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tags/Tag.vue"],"names":[],"mappings":"AA2BA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AAK9D,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,YAAY,CAAA;IACjB,MAAM,EAAE,SAAS,GAAG,QAAQ,CAAA;IAC5B,cAAc,EAAE,OAAO,CAAA;CACxB,CAAC;AA0CF,QAAA,IAAI,OAAO,IAAU,EAAE,QAAQ,IAAY,CAAE;AAC7C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC5C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAsBhD,QAAA,MAAM,eAAe,kSAMnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"Tag.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tags/Tag.vue"],"names":[],"mappings":"AA2BA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAKhG,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,YAAY,CAAA;IACjB,MAAM,EAAE,SAAS,GAAG,QAAQ,CAAA;IAC5B,cAAc,EAAE,OAAO,CAAA;CACxB,CAAC;AA0CF,QAAA,IAAI,OAAO,IAAU,EAAE,QAAQ,IAAY,CAAE;AAC7C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC5C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAsBhD,QAAA,MAAM,eAAe,kSAMnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { TraversedTag } from '../../../features/traverse-schema';
1
+ import type { TraversedTag } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
2
2
  type __VLS_Props = {
3
3
  tag: TraversedTag;
4
4
  headerId?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"TagSection.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tags/TagSection.vue"],"names":[],"mappings":"AA0EA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AAG9D,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,YAAY,CAAA;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;AAgLF,wBAMG"}
1
+ {"version":3,"file":"TagSection.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tags/TagSection.vue"],"names":[],"mappings":"AA6DA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAgBhG,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,YAAY,CAAA;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;AAgLF,wBAMG"}
@@ -11,7 +11,7 @@ import y from "../../Section/SectionColumns.vue.js";
11
11
  import p from "../../Section/SectionColumn.vue.js";
12
12
  import B from "../../OperationsList/OperationsList.vue.js";
13
13
  import I from "../../../features/specification-extension/SpecificationExtension.vue2.js";
14
- const z = /* @__PURE__ */ f({
14
+ const q = /* @__PURE__ */ f({
15
15
  __name: "TagSection",
16
16
  props: {
17
17
  tag: {},
@@ -67,7 +67,7 @@ const z = /* @__PURE__ */ f({
67
67
  default: a(() => [
68
68
  t(e(c), {
69
69
  clamp: o.isCollapsed ? 7 : void 0,
70
- value: o.tag.tag?.description ?? "",
70
+ value: o.tag?.description ?? "",
71
71
  withImages: ""
72
72
  }, null, 8, ["clamp", "value"])
73
73
  ]),
@@ -86,7 +86,7 @@ const z = /* @__PURE__ */ f({
86
86
  _: 1
87
87
  }, 8, ["loading"]),
88
88
  t(e(I), {
89
- value: o.tag.tag
89
+ value: o.tag.xKeys
90
90
  }, null, 8, ["value"])
91
91
  ]),
92
92
  _: 1
@@ -94,5 +94,5 @@ const z = /* @__PURE__ */ f({
94
94
  }
95
95
  });
96
96
  export {
97
- z as default
97
+ q as default
98
98
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./MobileHeader.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../_virtual/_plugin-vue_export-helper.js";
4
- const f = /* @__PURE__ */ r(o, [["__scopeId", "data-v-ba06ff2c"]]);
4
+ const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-12742423"]]);
5
5
  export {
6
- f as default
6
+ m as default
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as t, createElementBlock as a, openBlock as c, createVNode as i, createElementVNode as s, unref as e, toDisplayString as l, renderSlot as d } from "vue";
2
2
  import { ScalarIconButton as m } from "@scalar/components";
3
3
  import { ScalarIconX as p, ScalarIconList as u } from "@scalar/icons";
4
- import { useSidebar as b } from "../features/sidebar/hooks/useSidebar.js";
4
+ import { useSidebar as b } from "../v2/blocks/scalar-sidebar-block/hooks/useSidebar.js";
5
5
  const _ = { class: "references-mobile-header t-doc__header" }, f = { class: "references-mobile-breadcrumbs" }, S = { class: "references-mobile-header-actions" }, M = /* @__PURE__ */ t({
6
6
  __name: "MobileHeader",
7
7
  props: {
@@ -1,4 +1,4 @@
1
- import type { TraversedTag } from '../../features/traverse-schema';
1
+ import type { TraversedTag } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
2
2
  type __VLS_Props = {
3
3
  tag: TraversedTag;
4
4
  };
@@ -1 +1 @@
1
- {"version":3,"file":"OperationsList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/OperationsList/OperationsList.vue"],"names":[],"mappings":"AA0EA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AAQ9D,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,YAAY,CAAA;CAClB,CAAC;;AAmHF,wBAMG"}
1
+ {"version":3,"file":"OperationsList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/OperationsList/OperationsList.vue"],"names":[],"mappings":"AAmEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAOhG,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,YAAY,CAAA;CAClB,CAAC;;AAmHF,wBAMG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./OperationsList.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.js";
4
- const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-d474b1bb"]]);
4
+ const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-50e4708f"]]);
5
5
  export {
6
6
  a as default
7
7
  };
@@ -1,19 +1,17 @@
1
- import { defineComponent as m, computed as p, createBlock as l, createCommentVNode as u, openBlock as a, unref as r, withCtx as t, createVNode as o, createTextVNode as i, toDisplayString as s, createElementVNode as f, createElementBlock as h, Fragment as g, renderList as k } from "vue";
1
+ import { defineComponent as p, computed as m, createBlock as l, createCommentVNode as u, openBlock as a, unref as r, withCtx as t, createVNode as o, createTextVNode as i, toDisplayString as s, createElementVNode as f, createElementBlock as h, Fragment as g, renderList as k } from "vue";
2
2
  import { ScalarCard as _, ScalarCardHeader as C, ScalarCardSection as S } from "@scalar/components";
3
3
  import b from "../ScreenReader.vue.js";
4
- import N from "./OperationsListItem.vue.js";
5
- const V = ["aria-label"], E = /* @__PURE__ */ m({
4
+ import y from "./OperationsListItem.vue.js";
5
+ const N = ["aria-label"], E = /* @__PURE__ */ p({
6
6
  __name: "OperationsList",
7
7
  props: {
8
8
  tag: {}
9
9
  },
10
10
  setup(d) {
11
- const c = p(
12
- () => d.tag.children?.filter(
13
- (e) => "operation" in e || "webhook" in e
14
- )
15
- );
16
- return (e, y) => e.tag.children?.length > 0 ? (a(), l(r(_), {
11
+ const c = m(() => d.tag.children?.filter(
12
+ (e) => e.type === "operation" || e.type === "webhook"
13
+ ) ?? []);
14
+ return (e, V) => e.tag.children && e.tag.children?.length > 0 ? (a(), l(r(_), {
17
15
  key: 0,
18
16
  class: "endpoints-card"
19
17
  }, {
@@ -36,11 +34,11 @@ const V = ["aria-label"], E = /* @__PURE__ */ m({
36
34
  "aria-label": `${e.tag.title} endpoints`,
37
35
  class: "endpoints"
38
36
  }, [
39
- (a(!0), h(g, null, k(c.value, (n) => (a(), l(N, {
37
+ (a(!0), h(g, null, k(c.value, (n) => (a(), l(y, {
40
38
  key: n.id,
41
39
  operation: n
42
40
  }, null, 8, ["operation"]))), 128))
43
- ], 8, V)
41
+ ], 8, N)
44
42
  ]),
45
43
  _: 1
46
44
  })
@@ -1,4 +1,4 @@
1
- import type { TraversedOperation, TraversedWebhook } from '../../features/traverse-schema';
1
+ import type { TraversedOperation, TraversedWebhook } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
2
2
  type __VLS_Props = {
3
3
  operation: TraversedOperation | TraversedWebhook;
4
4
  isCollapsed?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"OperationsListItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/OperationsList/OperationsListItem.vue"],"names":[],"mappings":"AA0IA,OAAO,KAAK,EAEV,kBAAkB,EAClB,gBAAgB,EACjB,MAAM,4BAA4B,CAAA;AAEnC,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,kBAAkB,GAAG,gBAAgB,CAAA;IAChD,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;AAgKF,wBAMG"}
1
+ {"version":3,"file":"OperationsListItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/OperationsList/OperationsListItem.vue"],"names":[],"mappings":"AAwHA,OAAO,KAAK,EAEV,kBAAkB,EAClB,gBAAgB,EACjB,MAAM,8DAA8D,CAAA;AAOrE,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,kBAAkB,GAAG,gBAAgB,CAAA;IAChD,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;AAsJF,wBAMG"}
@@ -1,7 +1,7 @@
1
1
  import t from "./OperationsListItem.vue2.js";
2
2
  /* empty css */
3
3
  import o from "../../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ o(t, [["__scopeId", "data-v-e2dcc62f"]]);
4
+ const s = /* @__PURE__ */ o(t, [["__scopeId", "data-v-836b3c7f"]]);
5
5
  export {
6
- p as default
6
+ s as default
7
7
  };