@scalar/api-reference 1.24.71 → 1.24.72

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.
@@ -1,6 +1,8 @@
1
1
  declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
2
+ /** Markdown document */
2
3
  value?: string;
3
4
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
5
+ /** Markdown document */
4
6
  value?: string;
5
7
  }>>>, {}, {}>;
6
8
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"Description.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Introduction/Description.vue"],"names":[],"mappings":";YA2IU,MAAM;;YAAN,MAAM;;AAoKhB,wBAMG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
1
+ {"version":3,"file":"Description.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Introduction/Description.vue"],"names":[],"mappings":";IA6IE,wBAAwB;YAChB,MAAM;;IADd,wBAAwB;YAChB,MAAM;;AAiLhB,wBAMG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import o from "./Description.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-61b651b9"]]);
4
+ const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-e601717f"]]);
5
5
  export {
6
- m as default
6
+ f as default
7
7
  };
@@ -1,72 +1,73 @@
1
- import { defineComponent as S, onServerPrefetch as k, useSSRContext as _, openBlock as a, createElementBlock as s, Fragment as d, renderList as H, unref as o, createBlock as p, withCtx as I, createVNode as C, createCommentVNode as L } from "vue";
2
- import { ScalarMarkdown as h } from "@scalar/components";
3
- import { createHash as x, ssrState as B } from "@scalar/oas-utils/helpers";
4
- import { computedAsync as M } from "@vueuse/core";
5
- import N from "../../IntersectionObserver.vue.js";
6
- import { splitMarkdownInSections as P } from "../../../helpers/splitMarkdownInSections.js";
7
- import { getHeadingsFromMarkdown as f } from "../../../helpers/getHeadingsFromMarkdown.js";
8
- import { getLowestHeadingLevel as R } from "../../../helpers/getLowestHeadingLevel.js";
9
- import { sleep as b } from "../../../helpers/sleep.js";
10
- import { useNavState as D } from "../../../hooks/useNavState.js";
11
- import { joinWithSlash as E } from "../../../helpers/joinWithSlash.js";
12
- const F = {
1
+ import { defineComponent as y, computed as S, openBlock as o, createElementBlock as a, Fragment as u, renderList as C, createBlock as c, withCtx as b, createVNode as B, unref as d, createCommentVNode as H } from "vue";
2
+ import { splitContent as I, getHeadings as N } from "@scalar/code-highlight/markdown";
3
+ import { ScalarMarkdown as m } from "@scalar/components";
4
+ import p from "github-slugger";
5
+ import x from "../../IntersectionObserver.vue.js";
6
+ import { useNavState as E } from "../../../hooks/useNavState.js";
7
+ import { joinWithSlash as L } from "../../../helpers/joinWithSlash.js";
8
+ const P = {
13
9
  key: 0,
14
10
  class: "introduction-description"
15
- }, Q = /* @__PURE__ */ S({
11
+ }, T = /* @__PURE__ */ y({
16
12
  __name: "Description",
17
13
  props: {
18
14
  value: {}
19
15
  },
20
- setup(v) {
21
- const r = v, i = `components-Content-Introduction-Description-sections${x(r.value)}`, c = M(
22
- async () => {
23
- if (!r.value)
24
- return [];
25
- const e = await f(r.value), n = R(e);
26
- return await Promise.all(
27
- P(r.value, n).map(
28
- async (t) => ({
29
- heading: (await f(t))[0],
30
- content: t
31
- })
32
- )
33
- );
34
- },
35
- B[i] ?? []
36
- // initial state
37
- ), { getHeadingId: l, hash: g, isIntersectionEnabled: w, pathRouting: u } = D();
38
- function y(e = "") {
39
- if (!w.value) return;
16
+ setup(h) {
17
+ const i = h, f = S(() => {
18
+ if (!i.value)
19
+ return [];
20
+ const e = new p();
21
+ return I(i.value).map((t) => {
22
+ const [r] = N(t);
23
+ return {
24
+ id: r ? l({
25
+ ...r,
26
+ slug: e.slug(r.value)
27
+ }) : void 0,
28
+ content: t
29
+ };
30
+ });
31
+ }), { getHeadingId: l, hash: g, isIntersectionEnabled: v, pathRouting: s } = E();
32
+ function w(e = "") {
33
+ if (!v.value) return;
40
34
  const n = new URL(window.location.href);
41
- u.value ? n.pathname = E(u.value.basePath, e) : n.hash = e, g.value = e, window.history.replaceState({}, "", n);
35
+ s.value ? n.pathname = L(s.value.basePath, e) : n.hash = e, g.value = e, window.history.replaceState({}, "", n);
42
36
  }
43
- return k(async () => {
44
- const e = _();
45
- await b(1), e.payload.data[i] = c.value;
46
- }), (e, n) => e.value ? (a(), s("div", F, [
47
- (a(!0), s(d, null, H(o(c), (t, m) => (a(), s(d, { key: m }, [
48
- t.heading ? (a(), p(N, {
37
+ const _ = new p(), k = (e) => (e.data = {
38
+ hProperties: {
39
+ id: l({
40
+ depth: e.depth,
41
+ value: e.children[0].value,
42
+ slug: _.slug(e.children[0].value)
43
+ })
44
+ }
45
+ }, e);
46
+ return (e, n) => e.value ? (o(), a("div", P, [
47
+ (o(!0), a(u, null, C(f.value, (t, r) => (o(), a(u, { key: r }, [
48
+ t.id ? (o(), c(x, {
49
49
  key: 0,
50
- id: o(l)(t.heading),
50
+ id: t.id,
51
51
  class: "introduction-description-heading",
52
- onIntersecting: () => y(o(l)(t.heading))
52
+ onIntersecting: () => w(t.id)
53
53
  }, {
54
- default: I(() => [
55
- C(o(h), {
56
- value: t.content,
57
- withImages: ""
54
+ default: b(() => [
55
+ B(d(m), {
56
+ transform: k,
57
+ transformType: "heading",
58
+ value: t.content
58
59
  }, null, 8, ["value"])
59
60
  ]),
60
61
  _: 2
61
- }, 1032, ["id", "onIntersecting"])) : (a(), p(o(h), {
62
+ }, 1032, ["id", "onIntersecting"])) : (o(), c(d(m), {
62
63
  key: 1,
63
64
  value: t.content,
64
65
  withImages: ""
65
66
  }, null, 8, ["value"]))
66
67
  ], 64))), 128))
67
- ])) : L("", !0);
68
+ ])) : H("", !0);
68
69
  }
69
70
  });
70
71
  export {
71
- Q as default
72
+ T as default
72
73
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./Parameters.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const e = /* @__PURE__ */ r(o, [["__scopeId", "data-v-45fca787"]]);
4
+ const c = /* @__PURE__ */ r(o, [["__scopeId", "data-v-cd6f76c7"]]);
5
5
  export {
6
- e as default
6
+ c as default
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./RequestBody.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-23ed11af"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-41c1ef36"]]);
5
5
  export {
6
- f as default
6
+ m as default
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./SchemaPropertyHeading.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-3a69561c"]]);
4
+ const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-51fd8de8"]]);
5
5
  export {
6
6
  m as default
7
7
  };
@@ -1 +1 @@
1
- {"version":3,"file":"getHeadingsFromMarkdown.d.ts","sourceRoot":"","sources":["../../src/helpers/getHeadingsFromMarkdown.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAA;AAWhD;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,EAAE,CAUhE"}
1
+ {"version":3,"file":"getHeadingsFromMarkdown.d.ts","sourceRoot":"","sources":["../../src/helpers/getHeadingsFromMarkdown.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAA;AAWhD;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,EAAE,CAMhE"}
@@ -1,15 +1,13 @@
1
- import u from "github-slugger";
2
- const l = (t, g) => t.map((e) => ({
3
- ...e,
4
- slug: g.slug(e.value)
1
+ import { getHeadings as g } from "@scalar/code-highlight/markdown";
2
+ import n from "github-slugger";
3
+ const o = (t, e) => t.map((r) => ({
4
+ ...r,
5
+ slug: e.slug(r.value)
5
6
  }));
6
- function s(t) {
7
- const g = new u(), e = new RegExp("^(#{1,6}) (?!#)(.*)", "gm"), r = [...t.matchAll(e)].map((n) => ({
8
- value: n[2],
9
- depth: n[1].length
10
- }));
11
- return l(r, g);
7
+ function i(t) {
8
+ const e = new n(), r = g(t);
9
+ return o(r, e);
12
10
  }
13
11
  export {
14
- s as getHeadingsFromMarkdown
12
+ i as getHeadingsFromMarkdown
15
13
  };
@@ -18,5 +18,4 @@ export * from './provideSymbols.js';
18
18
  export * from './scrollToId.js';
19
19
  export * from './sleep.js';
20
20
  export * from './specDownloads.js';
21
- export * from './splitMarkdownInSections.js';
22
21
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/helpers/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAA;AAC1C,cAAc,aAAa,CAAA;AAC3B,cAAc,uBAAuB,CAAA;AACrC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,2BAA2B,CAAA;AACzC,cAAc,yBAAyB,CAAA;AACvC,cAAc,aAAa,CAAA;AAC3B,cAAc,oBAAoB,CAAA;AAClC,cAAc,aAAa,CAAA;AAC3B,cAAc,sBAAsB,CAAA;AACpC,cAAc,eAAe,CAAA;AAC7B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,mBAAmB,CAAA;AACjC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,SAAS,CAAA;AACvB,cAAc,kBAAkB,CAAA;AAChC,cAAc,cAAc,CAAA;AAC5B,cAAc,SAAS,CAAA;AACvB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,2BAA2B,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/helpers/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAA;AAC1C,cAAc,aAAa,CAAA;AAC3B,cAAc,uBAAuB,CAAA;AACrC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,2BAA2B,CAAA;AACzC,cAAc,yBAAyB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AE,GAAG,KAAK,MAAM,CAAC,CAAA;CACpD,CAAA;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,OAAO,CAAC,EAAE,gBAAgB,GAAG,gBAAgB;;;;;;;;;;;;;EAiDvE"}
@@ -17,10 +17,10 @@ const {
17
17
  getTagId: N,
18
18
  getWebhookId: A,
19
19
  hash: I
20
- } = _(), r = h(void 0), g = z({});
20
+ } = _(), r = h(void 0), w = z({});
21
21
  function q(t) {
22
22
  var s, i;
23
- return g.tagsSorter === "alpha" ? t.tags = (s = t.tags) == null ? void 0 : s.sort((l, c) => l.name.localeCompare(c.name)) : typeof g.tagsSorter == "function" && (t.tags = (i = t.tags) == null ? void 0 : i.sort(g.tagsSorter)), r.value = t;
23
+ return w.tagsSorter === "alpha" ? t.tags = (s = t.tags) == null ? void 0 : s.sort((l, c) => l.name.localeCompare(c.name)) : typeof w.tagsSorter == "function" && (t.tags = (i = t.tags) == null ? void 0 : i.sort(w.tagsSorter)), r.value = t;
24
24
  }
25
25
  const Q = h(!1), U = h(!1), S = z(
26
26
  Z["useSidebarContent-collapsedSidebarItems"] ?? {}
@@ -31,14 +31,16 @@ function re(t) {
31
31
  function b(t, s) {
32
32
  S[t] = s;
33
33
  }
34
- const C = h([]), le = async (t) => {
34
+ const C = h([]);
35
+ function le(t) {
35
36
  const s = te(t), i = K(s);
36
37
  return s.filter((l) => (
37
38
  // highest level, eg. # Introduction
38
39
  l.depth === i || // second highest level, eg. ## Authentication
39
40
  l.depth === i + 1
40
41
  ));
41
- }, X = J(() => {
42
+ }
43
+ const X = J(() => {
42
44
  var O, T, y, H, M, j, x, E, G, L;
43
45
  const { state: t } = se(), s = {}, {
44
46
  openApi: { globalSecurity: i }
@@ -68,30 +70,30 @@ const C = h([]), le = async (t) => {
68
70
  displayTitle: e["x-displayName"] ?? e.name,
69
71
  show: !0,
70
72
  children: (o = e.operations) == null ? void 0 : o.map(
71
- (a) => {
73
+ (n) => {
72
74
  var d;
73
- const n = R(a, e), u = a.name ?? a.path;
74
- return s[n] = u, {
75
- id: n,
75
+ const a = R(n, e), u = n.name ?? n.path;
76
+ return s[a] = u, {
77
+ id: a,
76
78
  title: u,
77
- httpVerb: a.httpVerb,
78
- deprecated: ((d = a.information) == null ? void 0 : d.deprecated) ?? !1,
79
+ httpVerb: n.httpVerb,
80
+ deprecated: ((d = n.information) == null ? void 0 : d.deprecated) ?? !1,
79
81
  show: !0,
80
82
  select: () => {
81
- t.showApiClient && F(a, i);
83
+ t.showApiClient && F(n, i);
82
84
  }
83
85
  };
84
86
  }
85
87
  )
86
88
  };
87
89
  }) : (j = p == null ? void 0 : p.operations) == null ? void 0 : j.map((e) => {
88
- var n;
89
- const o = R(e, p), a = e.name ?? e.path;
90
- return s[o] = a, {
90
+ var a;
91
+ const o = R(e, p), n = e.name ?? e.path;
92
+ return s[o] = n, {
91
93
  id: o,
92
- title: a,
94
+ title: n,
93
95
  httpVerb: e.httpVerb,
94
- deprecated: ((n = e.information) == null ? void 0 : n.deprecated) ?? !1,
96
+ deprecated: ((a = e.information) == null ? void 0 : a.deprecated) ?? !1,
95
97
  show: !0,
96
98
  select: () => {
97
99
  t.showApiClient && F(e, i);
@@ -105,11 +107,11 @@ const C = h([]), le = async (t) => {
105
107
  show: !t.showApiClient,
106
108
  children: Object.keys(V(r.value) ?? {}).map(
107
109
  (e) => {
108
- var a;
110
+ var n;
109
111
  const o = P(e);
110
112
  return s[o] = e, {
111
113
  id: o,
112
- title: ((a = V(r.value)) == null ? void 0 : a[e]).title ?? e,
114
+ title: ((n = V(r.value)) == null ? void 0 : n[e]).title ?? e,
113
115
  show: !t.showApiClient
114
116
  };
115
117
  }
@@ -121,15 +123,15 @@ const C = h([]), le = async (t) => {
121
123
  title: "Webhooks",
122
124
  show: !t.showApiClient,
123
125
  children: Object.keys(((x = r.value) == null ? void 0 : x.webhooks) ?? {}).map((e) => {
124
- var a, n;
126
+ var n, a;
125
127
  const o = A(e);
126
128
  return s[o] = e, Object.keys(
127
- ((n = (a = r.value) == null ? void 0 : a.webhooks) == null ? void 0 : n[e]) ?? {}
129
+ ((a = (n = r.value) == null ? void 0 : n.webhooks) == null ? void 0 : a[e]) ?? {}
128
130
  ).map((u) => {
129
- var d, w, W;
131
+ var d, g, W;
130
132
  return {
131
133
  id: A(e, u),
132
- title: (W = (w = (d = r.value) == null ? void 0 : d.webhooks) == null ? void 0 : w[e][u]) == null ? void 0 : W.name,
134
+ title: (W = (g = (d = r.value) == null ? void 0 : d.webhooks) == null ? void 0 : g[e][u]) == null ? void 0 : W.name,
133
135
  httpVerb: u,
134
136
  show: !t.showApiClient
135
137
  };
@@ -138,16 +140,16 @@ const C = h([]), le = async (t) => {
138
140
  }
139
141
  ] : [];
140
142
  const Y = (E = r.value) != null && E["x-tagGroups"] ? (L = (G = r.value) == null ? void 0 : G["x-tagGroups"]) == null ? void 0 : L.map((e) => {
141
- var n;
143
+ var a;
142
144
  const o = [];
143
- return (n = e.tags) == null || n.map((u) => {
145
+ return (a = e.tags) == null || a.map((u) => {
144
146
  if (u === "models" && m.length > 0)
145
147
  o.push(m[0]), m = [];
146
148
  else if (u === "webhooks" && v.length > 0)
147
149
  o.push(v[0]), v = [];
148
150
  else {
149
151
  const d = f == null ? void 0 : f.find(
150
- (w) => w.title === u
152
+ (g) => g.title === u
151
153
  );
152
154
  d && o.push(d);
153
155
  }
@@ -170,12 +172,12 @@ const C = h([]), le = async (t) => {
170
172
  entries: k,
171
173
  titles: s
172
174
  };
173
- }), ae = h(!1), ne = J(() => {
175
+ }), ne = h(!1), ae = J(() => {
174
176
  var t, s;
175
177
  return ((s = (t = X.value) == null ? void 0 : t.titles) == null ? void 0 : s[I.value]) ?? "";
176
178
  });
177
179
  function Ce(t) {
178
- return Object.assign(g, t), t != null && t.parsedSpec && (q(t.parsedSpec), D(
180
+ return Object.assign(w, t), t != null && t.parsedSpec && (q(t.parsedSpec), D(
179
181
  () => {
180
182
  var s, i;
181
183
  return (i = (s = r.value) == null ? void 0 : s.tags) == null ? void 0 : i.length;
@@ -195,15 +197,18 @@ function Ce(t) {
195
197
  var s, i;
196
198
  return (i = (s = r.value) == null ? void 0 : s.info) == null ? void 0 : i.description;
197
199
  },
198
- async () => {
200
+ () => {
199
201
  var i, l;
200
202
  const s = (l = (i = r.value) == null ? void 0 : i.info) == null ? void 0 : l.description;
201
- return s ? C.value = await le(s) : C.value = [];
203
+ return s ? C.value = le(s) : C.value = [];
204
+ },
205
+ {
206
+ immediate: !0
202
207
  }
203
208
  )), {
204
- breadcrumb: ne,
209
+ breadcrumb: ae,
205
210
  items: X,
206
- isSidebarOpen: ae,
211
+ isSidebarOpen: ne,
207
212
  collapsedSidebarItems: S,
208
213
  toggleCollapsedSidebarItem: re,
209
214
  setCollapsedSidebarItem: b,