@scalar/api-reference 1.33.0 → 1.34.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 (146) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/dist/browser/standalone.js +13260 -13196
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/Anchor/WithBreadcrumb.vue.d.ts +24 -0
  5. package/dist/components/Anchor/WithBreadcrumb.vue.d.ts.map +1 -0
  6. package/dist/components/Anchor/WithBreadcrumb.vue.js +4 -0
  7. package/dist/components/Anchor/WithBreadcrumb.vue2.js +46 -0
  8. package/dist/components/Anchor/index.d.ts +1 -0
  9. package/dist/components/Anchor/index.d.ts.map +1 -1
  10. package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
  11. package/dist/components/ApiReferenceLayout.vue.js +1 -1
  12. package/dist/components/ApiReferenceLayout.vue2.js +184 -201
  13. package/dist/components/Content/Introduction/Introduction.vue.d.ts.map +1 -1
  14. package/dist/components/Content/Introduction/Introduction.vue.js +1 -1
  15. package/dist/components/Content/Introduction/Introduction.vue2.js +1 -0
  16. package/dist/components/Content/Operations/TraversedEntry.vue.d.ts +1 -0
  17. package/dist/components/Content/Operations/TraversedEntry.vue.d.ts.map +1 -1
  18. package/dist/components/Content/Operations/TraversedEntry.vue.js +34 -32
  19. package/dist/components/Content/Operations/TraversedEntryContainer.vue.d.ts.map +1 -1
  20. package/dist/components/Content/Operations/TraversedEntryContainer.vue.js +33 -29
  21. package/dist/components/Content/Operations/get-current-index.d.ts +4 -0
  22. package/dist/components/Content/Operations/get-current-index.d.ts.map +1 -0
  23. package/dist/components/Content/Operations/get-current-index.js +16 -0
  24. package/dist/components/Content/Schema/Schema.preview.d.ts +28 -0
  25. package/dist/components/Content/Schema/Schema.preview.d.ts.map +1 -1
  26. package/dist/components/Content/Schema/Schema.vue.d.ts +2 -0
  27. package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
  28. package/dist/components/Content/Schema/Schema.vue.js +2 -2
  29. package/dist/components/Content/Schema/Schema.vue2.js +164 -157
  30. package/dist/components/Content/Schema/SchemaComposition.vue.d.ts +1 -0
  31. package/dist/components/Content/Schema/SchemaComposition.vue.d.ts.map +1 -1
  32. package/dist/components/Content/Schema/SchemaComposition.vue.js +58 -53
  33. package/dist/components/Content/Schema/SchemaObjectProperties.vue.d.ts +1 -0
  34. package/dist/components/Content/Schema/SchemaObjectProperties.vue.d.ts.map +1 -1
  35. package/dist/components/Content/Schema/SchemaObjectProperties.vue.js +52 -40
  36. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +1 -0
  37. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
  38. package/dist/components/Content/Schema/SchemaProperty.vue.js +2 -2
  39. package/dist/components/Content/Schema/SchemaProperty.vue2.js +100 -87
  40. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
  41. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +3 -3
  42. package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +4 -1
  43. package/dist/components/Lazy/Lazy.vue.d.ts +1 -0
  44. package/dist/components/Lazy/Lazy.vue.d.ts.map +1 -1
  45. package/dist/components/Lazy/Lazy.vue2.js +12 -11
  46. package/dist/components/Lazy/lazyBus.d.ts +5 -3
  47. package/dist/components/Lazy/lazyBus.d.ts.map +1 -1
  48. package/dist/components/OperationsList/OperationsListItem.vue.d.ts.map +1 -1
  49. package/dist/components/OperationsList/OperationsListItem.vue.js +1 -1
  50. package/dist/features/Operation/components/ContentTypeSelect.vue.d.ts +4 -4
  51. package/dist/features/Operation/components/ContentTypeSelect.vue.d.ts.map +1 -1
  52. package/dist/features/Operation/components/OperationParameters.vue.d.ts +1 -0
  53. package/dist/features/Operation/components/OperationParameters.vue.d.ts.map +1 -1
  54. package/dist/features/Operation/components/OperationParameters.vue.js +49 -43
  55. package/dist/features/Operation/components/OperationResponses.vue.d.ts +1 -0
  56. package/dist/features/Operation/components/OperationResponses.vue.d.ts.map +1 -1
  57. package/dist/features/Operation/components/OperationResponses.vue.js +4 -3
  58. package/dist/features/Operation/components/ParameterHeaders.vue.d.ts +1 -0
  59. package/dist/features/Operation/components/ParameterHeaders.vue.d.ts.map +1 -1
  60. package/dist/features/Operation/components/ParameterHeaders.vue.js +2 -2
  61. package/dist/features/Operation/components/ParameterHeaders.vue2.js +28 -26
  62. package/dist/features/Operation/components/ParameterList.vue.d.ts +1 -0
  63. package/dist/features/Operation/components/ParameterList.vue.d.ts.map +1 -1
  64. package/dist/features/Operation/components/ParameterList.vue.js +2 -2
  65. package/dist/features/Operation/components/ParameterList.vue2.js +17 -15
  66. package/dist/features/Operation/components/ParameterListItem.vue.d.ts +1 -0
  67. package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
  68. package/dist/features/Operation/components/ParameterListItem.vue.js +2 -2
  69. package/dist/features/Operation/components/ParameterListItem.vue2.js +17 -16
  70. package/dist/features/Operation/components/RequestBody.vue.d.ts +2 -2
  71. package/dist/features/Operation/components/RequestBody.vue.d.ts.map +1 -1
  72. package/dist/features/Operation/components/RequestBody.vue.js +2 -2
  73. package/dist/features/Operation/components/RequestBody.vue2.js +47 -39
  74. package/dist/features/Operation/components/callbacks/Callback.vue.d.ts +1 -0
  75. package/dist/features/Operation/components/callbacks/Callback.vue.d.ts.map +1 -1
  76. package/dist/features/Operation/components/callbacks/Callback.vue.js +3 -3
  77. package/dist/features/Operation/components/callbacks/Callback.vue2.js +12 -11
  78. package/dist/features/Operation/components/callbacks/Callback.vue3.js +2 -2
  79. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
  80. package/dist/features/Operation/layouts/ModernLayout.vue.js +1 -1
  81. package/dist/features/Operation/layouts/ModernLayout.vue2.js +63 -61
  82. package/dist/features/Search/{SearchButton.vue.d.ts → components/SearchButton.vue.d.ts} +0 -2
  83. package/dist/features/Search/components/SearchButton.vue.d.ts.map +1 -0
  84. package/dist/features/Search/components/SearchButton.vue.js +65 -0
  85. package/dist/features/Search/{SearchModal.vue.d.ts → components/SearchModal.vue.d.ts} +0 -2
  86. package/dist/features/Search/components/SearchModal.vue.d.ts.map +1 -0
  87. package/dist/features/Search/components/SearchModal.vue.js +7 -0
  88. package/dist/features/Search/components/SearchModal.vue2.js +199 -0
  89. package/dist/features/Search/helpers/create-fuse-instance.d.ts +9 -0
  90. package/dist/features/Search/helpers/create-fuse-instance.d.ts.map +1 -0
  91. package/dist/features/Search/helpers/create-fuse-instance.js +46 -0
  92. package/dist/features/Search/helpers/create-search-index.d.ts +7 -0
  93. package/dist/features/Search/helpers/create-search-index.d.ts.map +1 -0
  94. package/dist/features/Search/helpers/create-search-index.js +109 -0
  95. package/dist/features/Search/hooks/useSearchIndex.d.ts +14 -0
  96. package/dist/features/Search/hooks/useSearchIndex.d.ts.map +1 -0
  97. package/dist/features/Search/hooks/useSearchIndex.js +46 -0
  98. package/dist/features/Search/index.d.ts +2 -2
  99. package/dist/features/Search/index.d.ts.map +1 -1
  100. package/dist/features/Search/types.d.ts +15 -0
  101. package/dist/features/Search/types.d.ts.map +1 -0
  102. package/dist/features/api-client-modal/useApiClient.d.ts +14 -14
  103. package/dist/features/api-client-modal/useApiClient.d.ts.map +1 -1
  104. package/dist/features/traverse-schema/helpers/traverse-paths.d.ts +3 -1
  105. package/dist/features/traverse-schema/helpers/traverse-paths.d.ts.map +1 -1
  106. package/dist/features/traverse-schema/helpers/traverse-schemas.d.ts.map +1 -1
  107. package/dist/features/traverse-schema/helpers/traverse-schemas.js +18 -18
  108. package/dist/features/traverse-schema/helpers/traverse-tags.d.ts.map +1 -1
  109. package/dist/features/traverse-schema/helpers/traverse-webhooks.d.ts.map +1 -1
  110. package/dist/features/traverse-schema/types.d.ts +10 -6
  111. package/dist/features/traverse-schema/types.d.ts.map +1 -1
  112. package/dist/helpers/test-utils.d.ts +9 -0
  113. package/dist/helpers/test-utils.d.ts.map +1 -1
  114. package/dist/hooks/useNavState.d.ts +4 -1
  115. package/dist/hooks/useNavState.d.ts.map +1 -1
  116. package/dist/index.d.ts +0 -1
  117. package/dist/index.d.ts.map +1 -1
  118. package/dist/index.js +17 -19
  119. package/dist/libs/openapi.d.ts +11 -8
  120. package/dist/libs/openapi.d.ts.map +1 -1
  121. package/dist/libs/openapi.js +34 -55
  122. package/dist/style.css +1 -1
  123. package/dist/types.d.ts +1 -6
  124. package/dist/types.d.ts.map +1 -1
  125. package/dist/v2/ApiReferenceWorkspace.vue.d.ts.map +1 -1
  126. package/dist/v2/ApiReferenceWorkspace.vue.js +120 -111
  127. package/dist/v2/helpers/get-document-name.d.ts +13 -0
  128. package/dist/v2/helpers/get-document-name.d.ts.map +1 -0
  129. package/dist/v2/helpers/get-document-name.js +15 -0
  130. package/dist/v2/helpers/normalize-content.d.ts +3 -0
  131. package/dist/v2/helpers/normalize-content.d.ts.map +1 -0
  132. package/dist/v2/helpers/normalize-content.js +8 -0
  133. package/package.json +14 -8
  134. package/dist/features/Search/SearchButton.vue.d.ts.map +0 -1
  135. package/dist/features/Search/SearchButton.vue.js +0 -66
  136. package/dist/features/Search/SearchModal.vue.d.ts.map +0 -1
  137. package/dist/features/Search/SearchModal.vue.js +0 -7
  138. package/dist/features/Search/SearchModal.vue2.js +0 -207
  139. package/dist/features/Search/useSearchIndex.d.ts +0 -32
  140. package/dist/features/Search/useSearchIndex.d.ts.map +0 -1
  141. package/dist/features/Search/useSearchIndex.js +0 -170
  142. package/dist/helpers/parse.d.ts +0 -10
  143. package/dist/helpers/parse.d.ts.map +0 -1
  144. package/dist/helpers/parse.js +0 -81
  145. /package/dist/features/Search/{SearchButton.vue2.js → components/SearchButton.vue2.js} +0 -0
  146. /package/dist/features/Search/{SearchModal.vue3.js → components/SearchModal.vue3.js} +0 -0
@@ -1,109 +1,117 @@
1
- import { defineComponent as j, computed as f, ref as C, createElementBlock as a, createCommentVNode as d, openBlock as l, createElementVNode as b, createVNode as n, renderSlot as E, unref as i } from "vue";
2
- import { ScalarMarkdown as P } from "@scalar/components";
3
- import S from "./ContentTypeSelect.vue.js";
4
- import y from "../../../components/Content/Schema/Schema.vue.js";
5
- const _ = {
1
+ import { defineComponent as P, computed as f, ref as S, createElementBlock as a, createCommentVNode as d, openBlock as u, createElementVNode as V, createVNode as l, renderSlot as j, unref as c } from "vue";
2
+ import { ScalarMarkdown as C } from "@scalar/components";
3
+ import R from "./ContentTypeSelect.vue.js";
4
+ import b from "../../../components/Content/Schema/Schema.vue.js";
5
+ const O = {
6
6
  key: 0,
7
7
  class: "request-body"
8
- }, O = { class: "request-body-header" }, R = { class: "request-body-title" }, g = {
8
+ }, T = { class: "request-body-header" }, _ = { class: "request-body-title" }, g = {
9
9
  key: 0,
10
10
  class: "request-body-required"
11
- }, N = {
11
+ }, I = {
12
12
  key: 0,
13
13
  class: "request-body-description"
14
- }, T = {
14
+ }, M = {
15
15
  key: 0,
16
16
  class: "request-body-schema"
17
- }, M = {
17
+ }, N = {
18
18
  key: 1,
19
19
  class: "request-body-schema"
20
- }, z = /* @__PURE__ */ j({
20
+ }, y = 12, D = /* @__PURE__ */ P({
21
21
  __name: "RequestBody",
22
22
  props: {
23
+ breadcrumb: {},
23
24
  requestBody: {},
24
25
  schemas: {}
25
26
  },
26
27
  emits: ["update:modelValue"],
27
- setup(c, { emit: k }) {
28
+ setup(i, { emit: k }) {
28
29
  var q;
29
- const V = k, v = f(
30
+ const E = k, v = f(
30
31
  () => {
31
32
  var e;
32
- return Object.keys(((e = c.requestBody) == null ? void 0 : e.content) ?? {});
33
+ return Object.keys(((e = i.requestBody) == null ? void 0 : e.content) ?? {});
33
34
  }
34
- ), t = C("application/json");
35
- (q = c.requestBody) != null && q.content && v.value.length > 0 && (t.value = v.value[0]);
35
+ ), t = S("application/json");
36
+ (q = i.requestBody) != null && q.content && v.value.length > 0 && (t.value = v.value[0]);
36
37
  const m = f(() => {
37
- var r, u, B;
38
- const e = (B = (u = (r = c.requestBody) == null ? void 0 : r.content) == null ? void 0 : u[t.value]) == null ? void 0 : B.schema;
38
+ var r, n, B;
39
+ const e = (B = (n = (r = i.requestBody) == null ? void 0 : r.content) == null ? void 0 : n[t.value]) == null ? void 0 : B.schema;
39
40
  if ((e == null ? void 0 : e.type) !== "object" || !e.properties)
40
41
  return null;
41
42
  const s = Object.entries(e.properties);
42
- if (s.length < 13)
43
+ if (s.length <= y)
43
44
  return null;
44
45
  const { properties: p, ...o } = e;
45
46
  return {
46
47
  visibleProperties: {
47
48
  ...o,
48
- properties: Object.fromEntries(s.slice(0, 12))
49
+ properties: Object.fromEntries(
50
+ s.slice(0, y)
51
+ )
49
52
  },
50
53
  collapsedProperties: {
51
54
  ...o,
52
- properties: Object.fromEntries(s.slice(12))
55
+ properties: Object.fromEntries(
56
+ s.slice(y)
57
+ )
53
58
  }
54
59
  };
55
60
  }), h = (e) => {
56
- V("update:modelValue", e);
61
+ E("update:modelValue", e);
57
62
  };
58
63
  return (e, s) => {
59
64
  var p, o, r;
60
- return e.requestBody ? (l(), a("div", _, [
61
- b("div", O, [
62
- b("span", R, [
63
- E(e.$slots, "title", {}, void 0, !0),
64
- e.requestBody.required ? (l(), a("div", g, " required ")) : d("", !0)
65
+ return e.requestBody ? (u(), a("div", O, [
66
+ V("div", T, [
67
+ V("span", _, [
68
+ j(e.$slots, "title", {}, void 0, !0),
69
+ e.requestBody.required ? (u(), a("div", g, " required ")) : d("", !0)
65
70
  ]),
66
- n(S, {
71
+ l(R, {
67
72
  defaultValue: t.value,
68
73
  requestBody: e.requestBody,
69
- onSelectContentType: s[0] || (s[0] = ({ contentType: u }) => t.value = u)
74
+ onSelectContentType: s[0] || (s[0] = ({ contentType: n }) => t.value = n)
70
75
  }, null, 8, ["defaultValue", "requestBody"]),
71
- e.requestBody.description ? (l(), a("div", N, [
72
- n(i(P), {
76
+ e.requestBody.description ? (u(), a("div", I, [
77
+ l(c(C), {
73
78
  value: e.requestBody.description
74
79
  }, null, 8, ["value"])
75
80
  ])) : d("", !0)
76
81
  ]),
77
- m.value ? (l(), a("div", T, [
78
- n(i(y), {
82
+ m.value ? (u(), a("div", M, [
83
+ l(c(b), {
79
84
  compact: "",
80
85
  name: "Request Body",
81
86
  noncollapsible: "",
87
+ breadcrumb: e.breadcrumb,
82
88
  schemas: e.schemas,
83
89
  value: m.value.visibleProperties,
84
90
  "onUpdate:modelValue": h
85
- }, null, 8, ["schemas", "value"]),
86
- n(i(y), {
91
+ }, null, 8, ["breadcrumb", "schemas", "value"]),
92
+ l(c(b), {
87
93
  additionalProperties: "",
88
94
  compact: "",
89
95
  name: "Request Body",
96
+ breadcrumb: e.breadcrumb,
90
97
  schemas: e.schemas,
91
98
  value: m.value.collapsedProperties
92
- }, null, 8, ["schemas", "value"])
93
- ])) : (p = e.requestBody.content) != null && p[t.value] ? (l(), a("div", M, [
94
- n(i(y), {
99
+ }, null, 8, ["breadcrumb", "schemas", "value"])
100
+ ])) : (p = e.requestBody.content) != null && p[t.value] ? (u(), a("div", N, [
101
+ l(c(b), {
102
+ breadcrumb: e.breadcrumb,
95
103
  compact: "",
96
104
  name: "Request Body",
97
105
  noncollapsible: "",
98
106
  schemas: e.schemas,
99
107
  value: (r = (o = e.requestBody.content) == null ? void 0 : o[t.value]) == null ? void 0 : r.schema,
100
108
  "onUpdate:modelValue": h
101
- }, null, 8, ["schemas", "value"])
109
+ }, null, 8, ["breadcrumb", "schemas", "value"])
102
110
  ])) : d("", !0)
103
111
  ])) : d("", !0);
104
112
  };
105
113
  }
106
114
  });
107
115
  export {
108
- z as default
116
+ D as default
109
117
  };
@@ -10,6 +10,7 @@ type __VLS_Props = {
10
10
  name: string;
11
11
  schemas?: Schemas;
12
12
  url: string;
13
+ breadcrumb?: string[];
13
14
  };
14
15
  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, {}, HTMLDetailsElement>;
15
16
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"Callback.vue.d.ts","sourceRoot":"","sources":["../../../../../src/features/Operation/components/callbacks/Callback.vue"],"names":[],"mappings":"AA+GA,OAAO,KAAK,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,mCAAmC,CAAA;AAErF,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,6DAA6D,CAAA;AAClG,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,iDAAiD,CAAA;AAKlF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AAIjE,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,WAAW,CAAC,eAAe,CAAC,CAAA;IACtC,MAAM,EAAE,cAAc,CAAA;IACtB,IAAI,EAAE,MAAM,CAAA;IACZ,eAAe,EAAE,cAAc,CAAA;IAC/B,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,GAAG,EAAE,MAAM,CAAA;CACZ,CAAC;;AAyJF,wBAOG"}
1
+ {"version":3,"file":"Callback.vue.d.ts","sourceRoot":"","sources":["../../../../../src/features/Operation/components/callbacks/Callback.vue"],"names":[],"mappings":"AAgHA,OAAO,KAAK,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,mCAAmC,CAAA;AAErF,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,6DAA6D,CAAA;AAClG,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,iDAAiD,CAAA;AAKlF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AAIjE,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,WAAW,CAAC,eAAe,CAAC,CAAA;IACtC,MAAM,EAAE,cAAc,CAAA;IACtB,IAAI,EAAE,MAAM,CAAA;IACZ,eAAe,EAAE,cAAc,CAAA;IAC/B,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,GAAG,EAAE,MAAM,CAAA;IACX,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;CACtB,CAAC;;AAyJF,wBAOG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./Callback.vue2.js";
2
2
  import "./Callback.vue3.js";
3
- import f from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ f(o, [["__scopeId", "data-v-ff71bf53"]]);
3
+ import t from "../../../../_virtual/_plugin-vue_export-helper.js";
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-782d5e21"]]);
5
5
  export {
6
- m as default
6
+ p as default
7
7
  };
@@ -1,9 +1,9 @@
1
- import { defineComponent as r, createElementBlock as l, openBlock as c, createElementVNode as s, createVNode as t, unref as a, createTextVNode as n, toDisplayString as o } from "vue";
1
+ import { defineComponent as r, createElementBlock as l, openBlock as c, createElementVNode as s, createVNode as a, unref as t, createTextVNode as n, toDisplayString as o } from "vue";
2
2
  import { ScalarIconCaretRight as m } from "@scalar/icons";
3
3
  import i from "../OperationParameters.vue.js";
4
4
  import p from "../OperationResponses.vue.js";
5
5
  import d from "../../../../components/HttpMethod/HttpMethod.vue.js";
6
- const f = { class: "group callback-list-item" }, u = { class: "font-code bg-b-1 callback-sticky-offset callback-list-item-title sticky flex cursor-pointer flex-row items-start gap-2 border-t py-3 text-sm group-open:flex-wrap" }, h = { class: "text-c-1 min-w-0 flex-1 truncate leading-3 group-open:whitespace-normal" }, _ = { class: "text-c-2" }, b = { class: "callback-operation-container flex flex-col gap-2" }, v = /* @__PURE__ */ r({
6
+ const u = { class: "group callback-list-item" }, f = { class: "font-code bg-b-1 callback-sticky-offset callback-list-item-title sticky flex cursor-pointer flex-row items-start gap-2 border-t py-3 text-sm group-open:flex-wrap" }, h = { class: "text-c-1 min-w-0 flex-1 truncate leading-3 group-open:whitespace-normal" }, b = { class: "text-c-2" }, _ = { class: "callback-operation-container flex flex-col gap-2" }, v = /* @__PURE__ */ r({
7
7
  __name: "Callback",
8
8
  props: {
9
9
  callback: {},
@@ -12,29 +12,30 @@ const f = { class: "group callback-list-item" }, u = { class: "font-code bg-b-1
12
12
  operationMethod: {},
13
13
  name: {},
14
14
  schemas: {},
15
- url: {}
15
+ url: {},
16
+ breadcrumb: {}
16
17
  },
17
18
  setup(k) {
18
- return (e, g) => (c(), l("details", f, [
19
- s("summary", u, [
20
- t(a(m), { class: "callback-list-item-icon text-c-3 group-hover:text-c-1 absolute top-3.5 -left-5 size-4 transition-transform duration-100 group-open:rotate-90" }),
21
- t(a(d), {
19
+ return (e, g) => (c(), l("details", u, [
20
+ s("summary", f, [
21
+ a(t(m), { class: "callback-list-item-icon text-c-3 group-hover:text-c-1 absolute top-3.5 -left-5 size-4 transition-transform duration-100 group-open:rotate-90" }),
22
+ a(t(d), {
22
23
  as: "span",
23
24
  class: "request-method py-0.75",
24
25
  method: e.method
25
26
  }, null, 8, ["method"]),
26
27
  s("div", h, [
27
28
  n(o(e.name) + " ", 1),
28
- s("span", _, o(e.url), 1)
29
+ s("span", b, o(e.url), 1)
29
30
  ])
30
31
  ]),
31
- s("div", b, [
32
- t(i, {
32
+ s("div", _, [
33
+ a(i, {
33
34
  requestBody: e.callback.requestBody,
34
35
  parameters: e.callback.parameters,
35
36
  schemas: e.schemas
36
37
  }, null, 8, ["requestBody", "parameters", "schemas"]),
37
- t(p, {
38
+ a(p, {
38
39
  collapsableItems: !1,
39
40
  responses: e.callback.responses,
40
41
  schemas: e.schemas
@@ -1,4 +1,4 @@
1
- const _ = "";
1
+ const e = "";
2
2
  export {
3
- _ as default
3
+ e as default
4
4
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ModernLayout.vue"],"names":[],"mappings":"AAgNA,OAAO,KAAK,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,mCAAmC,CAAA;AAOrF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uDAAuD,CAAA;AAC5F,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6DAA6D,CAAA;AAClG,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,6DAA6D,CAAA;AACvG,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oDAAoD,CAAA;AACtF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iDAAiD,CAAA;AAoBlF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AAIjE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gDAAgD,CAAA;AAIvF,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,aAAa,EAAE,iBAAiB,EAAE,CAAA;IAClC,MAAM,EAAE,cAAc,CAAA;IACtB,SAAS,EAAE,WAAW,CAAC,eAAe,CAAC,CAAA;IACvC,YAAY,EAAE,WAAW,CAAC,eAAe,CAAA;IACzC,UAAU,EAAE,eAAe,EAAE,CAAA;IAE7B,SAAS,EAAE,OAAO,CAAA;IAClB,eAAe,EAAE,oBAAoB,EAAE,CAAA;IACvC,MAAM,EAAE,YAAY,GAAG,SAAS,CAAA;IAChC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,KAAK,EAAE,cAAc,CAAA;CACtB,CAAC;;;;;;AAmVF,wBAQG"}
1
+ {"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ModernLayout.vue"],"names":[],"mappings":"AAkNA,OAAO,KAAK,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,mCAAmC,CAAA;AAOrF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uDAAuD,CAAA;AAC5F,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6DAA6D,CAAA;AAClG,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,6DAA6D,CAAA;AACvG,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oDAAoD,CAAA;AACtF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iDAAiD,CAAA;AAoBlF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AAIjE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gDAAgD,CAAA;AAIvF,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,aAAa,EAAE,iBAAiB,EAAE,CAAA;IAClC,MAAM,EAAE,cAAc,CAAA;IACtB,SAAS,EAAE,WAAW,CAAC,eAAe,CAAC,CAAA;IACvC,YAAY,EAAE,WAAW,CAAC,eAAe,CAAA;IACzC,UAAU,EAAE,eAAe,EAAE,CAAA;IAE7B,SAAS,EAAE,OAAO,CAAA;IAClB,eAAe,EAAE,oBAAoB,EAAE,CAAA;IACvC,MAAM,EAAE,YAAY,GAAG,SAAS,CAAA;IAChC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,KAAK,EAAE,cAAc,CAAA;CACtB,CAAC;;;;;;AAmVF,wBAQG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./ModernLayout.vue2.js";
2
2
  import "./ModernLayout.vue3.js";
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-96cee8cf"]]);
4
+ const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-8ffb0fcc"]]);
5
5
  export {
6
6
  c as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as B, computed as V, useId as w, createBlock as r, openBlock as s, unref as o, withCtx as a, createVNode as t, createCommentVNode as i, createElementVNode as l, normalizeClass as y, createTextVNode as n, toDisplayString as b, createSlots as q } from "vue";
1
+ import { defineComponent as B, computed as V, useId as w, createBlock as r, openBlock as i, unref as o, withCtx as t, createVNode as a, createCommentVNode as s, createElementVNode as l, normalizeClass as b, createTextVNode as n, toDisplayString as y, createSlots as q } from "vue";
2
2
  import { ScalarMarkdown as D, ScalarErrorBoundary as m } from "@scalar/components";
3
3
  import { ScalarIconWebhooksLogo as L } from "@scalar/icons";
4
4
  import { getOperationStability as k, getOperationStabilityColor as T, isOperationDeprecated as W } from "@scalar/oas-utils/helpers";
@@ -16,11 +16,11 @@ import U from "../../../components/Section/SectionHeaderTag.vue.js";
16
16
  import j from "../../../components/Section/SectionColumns.vue.js";
17
17
  import g from "../../../components/Section/SectionColumn.vue.js";
18
18
  import A from "../../../components/LinkList/LinkList.vue.js";
19
- import _ from "../../external-docs/ExternalDocs.vue.js";
20
- import F from "../../../v2/blocks/scalar-request-example-block/components/RequestExample.vue.js";
21
- import G from "../../test-request-button/TestRequestButton.vue.js";
22
- import J from "../../example-responses/ExampleResponses.vue.js";
23
- const K = { class: "operation-details" }, Q = { class: "examples" }, ke = /* @__PURE__ */ B({
19
+ import F from "../../external-docs/ExternalDocs.vue.js";
20
+ import G from "../../../v2/blocks/scalar-request-example-block/components/RequestExample.vue.js";
21
+ import J from "../../test-request-button/TestRequestButton.vue.js";
22
+ import K from "../../example-responses/ExampleResponses.vue.js";
23
+ const Q = { class: "operation-details" }, X = { class: "examples" }, ke = /* @__PURE__ */ B({
24
24
  __name: "ModernLayout",
25
25
  props: {
26
26
  id: {},
@@ -37,54 +37,54 @@ const K = { class: "operation-details" }, Q = { class: "examples" }, ke = /* @__
37
37
  store: {}
38
38
  },
39
39
  emits: ["update:modelValue"],
40
- setup(p, { emit: v }) {
41
- const d = V(() => p.operation.summary || p.path || ""), C = v, u = w(), O = P(), c = (e) => {
40
+ setup(d, { emit: v }) {
41
+ const p = V(() => d.operation.summary || d.path || ""), C = v, u = w(), O = P(), c = (e) => {
42
42
  C("update:modelValue", e);
43
43
  };
44
- return (e, f) => (s(), r(o(R), {
44
+ return (e, f) => (i(), r(o(R), {
45
45
  id: e.id,
46
46
  "aria-labelledby": o(u),
47
- label: d.value,
47
+ label: p.value,
48
48
  tabindex: "-1"
49
49
  }, {
50
- default: a(() => [
51
- t(o(z), {
50
+ default: t(() => [
51
+ a(o(z), {
52
52
  loading: o(O).isLoading
53
53
  }, {
54
- default: a(() => [
55
- o(k)(e.operation) ? (s(), r(o(S), {
54
+ default: t(() => [
55
+ o(k)(e.operation) ? (i(), r(o(S), {
56
56
  key: 0,
57
- class: y(["capitalize", o(T)(e.operation)])
57
+ class: b(["capitalize", o(T)(e.operation)])
58
58
  }, {
59
- default: a(() => [
60
- n(b(o(k)(e.operation)), 1)
59
+ default: t(() => [
60
+ n(y(o(k)(e.operation)), 1)
61
61
  ]),
62
62
  _: 1
63
- }, 8, ["class"])) : i("", !0),
64
- e.isWebhook ? (s(), r(o(S), {
63
+ }, 8, ["class"])) : s("", !0),
64
+ e.isWebhook ? (i(), r(o(S), {
65
65
  key: 1,
66
66
  class: "font-code text-green flex w-fit items-center justify-center gap-1"
67
67
  }, {
68
- default: a(() => [
69
- t(o(L), { weight: "bold" }),
68
+ default: t(() => [
69
+ a(o(L), { weight: "bold" }),
70
70
  f[0] || (f[0] = n("Webhook "))
71
71
  ]),
72
72
  _: 1,
73
73
  __: [0]
74
- })) : i("", !0),
74
+ })) : s("", !0),
75
75
  l("div", {
76
- class: y(o(W)(e.operation) ? "deprecated" : "")
76
+ class: b(o(W)(e.operation) ? "deprecated" : "")
77
77
  }, [
78
- t(o(H), null, {
79
- default: a(() => [
80
- t(o(M), { id: e.id }, {
81
- default: a(() => [
82
- t(o(U), {
78
+ a(o(H), null, {
79
+ default: t(() => [
80
+ a(o(M), { id: e.id }, {
81
+ default: t(() => [
82
+ a(o(U), {
83
83
  id: o(u),
84
84
  level: 3
85
85
  }, {
86
- default: a(() => [
87
- n(b(d.value), 1)
86
+ default: t(() => [
87
+ n(y(p.value), 1)
88
88
  ]),
89
89
  _: 1
90
90
  }, 8, ["id"])
@@ -95,38 +95,40 @@ const K = { class: "operation-details" }, Q = { class: "examples" }, ke = /* @__
95
95
  _: 1
96
96
  })
97
97
  ], 2),
98
- t(o(j), null, {
99
- default: a(() => [
100
- t(o(g), null, {
101
- default: a(() => [
102
- l("div", K, [
103
- t(o(D), {
98
+ a(o(j), null, {
99
+ default: t(() => [
100
+ a(o(g), null, {
101
+ default: t(() => [
102
+ l("div", Q, [
103
+ a(o(D), {
104
104
  value: e.operation.description,
105
105
  withImages: "",
106
106
  withAnchors: "",
107
107
  transformType: "heading",
108
108
  anchorPrefix: e.id
109
109
  }, null, 8, ["value", "anchorPrefix"]),
110
- t(I, {
110
+ a(I, {
111
+ breadcrumb: [e.id],
111
112
  parameters: e.parameters,
112
113
  requestBody: e.oldOperation.requestBody,
113
114
  schemas: e.schemas,
114
115
  "onUpdate:modelValue": c
115
- }, null, 8, ["parameters", "requestBody", "schemas"]),
116
- t(N, {
116
+ }, null, 8, ["breadcrumb", "parameters", "requestBody", "schemas"]),
117
+ a(N, {
118
+ breadcrumb: [e.id],
117
119
  responses: e.oldOperation.responses,
118
120
  schemas: e.schemas
119
- }, null, 8, ["responses", "schemas"]),
120
- t(o(m), null, {
121
- default: a(() => [
122
- e.operation.callbacks ? (s(), r(E, {
121
+ }, null, 8, ["breadcrumb", "responses", "schemas"]),
122
+ a(o(m), null, {
123
+ default: t(() => [
124
+ e.operation.callbacks ? (i(), r(E, {
123
125
  key: 0,
124
126
  class: "mt-6",
125
127
  path: e.path,
126
128
  callbacks: e.operation.callbacks,
127
129
  method: e.method,
128
130
  schemas: e.schemas
129
- }, null, 8, ["path", "callbacks", "method", "schemas"])) : i("", !0)
131
+ }, null, 8, ["path", "callbacks", "method", "schemas"])) : s("", !0)
130
132
  ]),
131
133
  _: 1
132
134
  })
@@ -134,20 +136,20 @@ const K = { class: "operation-details" }, Q = { class: "examples" }, ke = /* @__
134
136
  ]),
135
137
  _: 1
136
138
  }),
137
- t(o(g), null, {
138
- default: a(() => [
139
- l("div", Q, [
140
- e.operation.externalDocs ? (s(), r(o(A), { key: 0 }, {
141
- default: a(() => [
142
- t(o(_), {
139
+ a(o(g), null, {
140
+ default: t(() => [
141
+ l("div", X, [
142
+ e.operation.externalDocs ? (i(), r(o(A), { key: 0 }, {
143
+ default: t(() => [
144
+ a(o(F), {
143
145
  value: e.operation.externalDocs
144
146
  }, null, 8, ["value"])
145
147
  ]),
146
148
  _: 1
147
- })) : i("", !0),
148
- t(o(m), null, {
149
- default: a(() => [
150
- t(o(F), {
149
+ })) : s("", !0),
150
+ a(o(m), null, {
151
+ default: t(() => [
152
+ a(o(G), {
151
153
  method: e.method,
152
154
  selectedServer: e.server,
153
155
  clientOptions: e.clientOptions,
@@ -158,10 +160,10 @@ const K = { class: "operation-details" }, Q = { class: "examples" }, ke = /* @__
158
160
  operation: e.operation,
159
161
  "onUpdate:modelValue": c
160
162
  }, q({
161
- header: a(() => {
163
+ header: t(() => {
162
164
  var h;
163
165
  return [
164
- t($, {
166
+ a($, {
165
167
  class: "font-code text-c-2 [&_em]:text-c-1 [&_em]:not-italic",
166
168
  deprecated: (h = e.operation) == null ? void 0 : h.deprecated,
167
169
  path: e.path
@@ -172,8 +174,8 @@ const K = { class: "operation-details" }, Q = { class: "examples" }, ke = /* @__
172
174
  }, [
173
175
  e.isWebhook ? void 0 : {
174
176
  name: "footer",
175
- fn: a(() => [
176
- t(o(G), {
177
+ fn: t(() => [
178
+ a(o(J), {
177
179
  method: e.method,
178
180
  path: e.path
179
181
  }, null, 8, ["method", "path"])
@@ -184,9 +186,9 @@ const K = { class: "operation-details" }, Q = { class: "examples" }, ke = /* @__
184
186
  ]),
185
187
  _: 1
186
188
  }),
187
- t(o(m), null, {
188
- default: a(() => [
189
- t(o(J), {
189
+ a(o(m), null, {
190
+ default: t(() => [
191
+ a(o(K), {
190
192
  responses: e.operation.responses,
191
193
  style: { "margin-top": "12px" }
192
194
  }, null, 8, ["responses"])
@@ -1,6 +1,4 @@
1
- import type { Spec } from '@scalar/types/legacy';
2
1
  type __VLS_Props = {
3
- spec: Spec;
4
2
  searchHotKey?: string;
5
3
  hideModels?: boolean;
6
4
  };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SearchButton.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Search/components/SearchButton.vue"],"names":[],"mappings":"AA4FA,KAAK,WAAW,GAAG;IACjB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,CAAC;;AAoJF,wBAMG"}
@@ -0,0 +1,65 @@
1
+ import { defineComponent as S, ref as k, watch as w, nextTick as C, onMounted as M, onBeforeUnmount as v, createElementBlock as a, openBlock as r, Fragment as s, createVNode as u, unref as l, normalizeClass as B, withCtx as m, createElementVNode as n, createTextVNode as K, toDisplayString as b } from "vue";
2
+ import { useModal as E, ScalarSidebarSearchButton as H } from "@scalar/components";
3
+ import { isMacOS as f } from "@scalar/helpers/general/is-mac-os";
4
+ import g from "./SearchModal.vue.js";
5
+ import { useApiClient as L } from "../../api-client-modal/useApiClient.js";
6
+ const O = /* @__PURE__ */ S({
7
+ __name: "SearchButton",
8
+ props: {
9
+ searchHotKey: { default: "k" },
10
+ hideModels: { type: Boolean, default: !1 }
11
+ },
12
+ setup(y) {
13
+ const d = k(), t = E(), { client: c } = L(), i = (o) => {
14
+ var e;
15
+ (f() ? o.metaKey : o.ctrlKey) && o.key === y.searchHotKey && !((e = c.value) != null && e.modalState.open) && (o.preventDefault(), o.stopPropagation(), t.open ? t.hide() : t.show());
16
+ };
17
+ w(
18
+ () => t.open,
19
+ (o, e) => {
20
+ !o && e && C(() => {
21
+ var p;
22
+ (p = d.value) == null || p.$el.focus();
23
+ });
24
+ }
25
+ ), M(() => window.addEventListener("keydown", i)), v(() => window.removeEventListener("keydown", i));
26
+ function h() {
27
+ t.show();
28
+ }
29
+ return (o, e) => (r(), a(s, null, [
30
+ u(l(H), {
31
+ ref_key: "button",
32
+ ref: d,
33
+ class: B(["w-full", o.$attrs.class]),
34
+ onClick: h
35
+ }, {
36
+ shortcut: m(() => [
37
+ l(f)() ? (r(), a(s, { key: 0 }, [
38
+ e[0] || (e[0] = n("span", { class: "sr-only" }, "Command", -1)),
39
+ e[1] || (e[1] = n("span", { "aria-hidden": "true" }, "⌘", -1))
40
+ ], 64)) : (r(), a(s, { key: 1 }, [
41
+ e[2] || (e[2] = n("span", { class: "sr-only" }, "CTRL", -1)),
42
+ e[3] || (e[3] = n("span", { "aria-hidden": "true" }, "⌃", -1))
43
+ ], 64)),
44
+ K(" " + b(o.searchHotKey), 1)
45
+ ]),
46
+ default: m(() => [
47
+ e[4] || (e[4] = n("span", { class: "sr-only" }, "Open Search", -1)),
48
+ e[5] || (e[5] = n("span", {
49
+ "aria-hidden": "true",
50
+ class: "sidebar-search-placeholder"
51
+ }, " Search ", -1))
52
+ ]),
53
+ _: 1,
54
+ __: [4, 5]
55
+ }, 8, ["class"]),
56
+ u(g, {
57
+ modalState: l(t),
58
+ hideModels: o.hideModels
59
+ }, null, 8, ["modalState", "hideModels"])
60
+ ], 64));
61
+ }
62
+ });
63
+ export {
64
+ O as default
65
+ };
@@ -1,7 +1,5 @@
1
1
  import { type ModalState } from '@scalar/components';
2
- import type { Spec } from '@scalar/types/legacy';
3
2
  type __VLS_Props = {
4
- parsedSpec: Spec;
5
3
  modalState: ModalState;
6
4
  hideModels: boolean;
7
5
  };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SearchModal.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Search/components/SearchModal.vue"],"names":[],"mappings":"AAmTA,OAAO,EAKL,KAAK,UAAU,EAChB,MAAM,oBAAoB,CAAA;AAwB3B,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,UAAU,EAAE,OAAO,CAAA;CACpB,CAAC;;AA2ZF,wBAOG"}
@@ -0,0 +1,7 @@
1
+ import o from "./SearchModal.vue2.js";
2
+ import "./SearchModal.vue3.js";
3
+ import e from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ e(o, [["__scopeId", "data-v-d38e7ee7"]]);
5
+ export {
6
+ m as default
7
+ };