@scalar/api-reference 1.25.80 → 1.25.82

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 (49) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/dist/browser/standalone.js +13239 -14204
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/Anchor/Anchor.vue.d.ts.map +1 -1
  5. package/dist/components/Anchor/Anchor.vue.js +1 -1
  6. package/dist/components/Anchor/Anchor.vue2.js +19 -21
  7. package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
  8. package/dist/components/ApiReferenceLayout.vue.js +1 -1
  9. package/dist/components/ApiReferenceLayout.vue2.js +94 -90
  10. package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts.map +1 -1
  11. package/dist/components/Content/ClientLibraries/ClientSelector.vue.js +1 -1
  12. package/dist/components/Content/ClientLibraries/ClientSelector.vue2.js +22 -20
  13. package/dist/components/Content/Introduction/Description.vue.d.ts.map +1 -1
  14. package/dist/components/Content/Introduction/Description.vue.js +2 -2
  15. package/dist/components/Content/Introduction/Description.vue2.js +30 -33
  16. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
  17. package/dist/components/Content/Schema/SchemaProperty.vue.js +2 -2
  18. package/dist/components/Content/Schema/SchemaProperty.vue2.js +106 -102
  19. package/dist/components/Section/CompactSection.vue.js +2 -2
  20. package/dist/components/Section/CompactSection.vue2.js +14 -14
  21. package/dist/components/Section/Section.vue.d.ts.map +1 -1
  22. package/dist/components/Section/Section.vue.js +1 -1
  23. package/dist/components/Section/Section.vue2.js +16 -19
  24. package/dist/components/Sidebar/SidebarElement.vue.d.ts.map +1 -1
  25. package/dist/components/Sidebar/SidebarElement.vue.js +2 -2
  26. package/dist/components/Sidebar/SidebarElement.vue2.js +42 -46
  27. package/dist/embeds/OpenApiDocument/OpenApiDocument.vue.d.ts +4 -4
  28. package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts.map +1 -1
  29. package/dist/features/ApiClientModal/ApiClientModal.vue.js +12 -12
  30. package/dist/features/ApiClientModal/useApiClient.d.ts +28 -28
  31. package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
  32. package/dist/features/ExampleRequest/ExampleRequest.vue.js +2 -2
  33. package/dist/features/ExampleRequest/ExampleRequest.vue2.js +1 -1
  34. package/dist/helpers/convertRequestToHarRequest.d.ts +1 -1
  35. package/dist/helpers/convertRequestToHarRequest.d.ts.map +1 -1
  36. package/dist/helpers/getExampleCode.d.ts +3 -4
  37. package/dist/helpers/getExampleCode.d.ts.map +1 -1
  38. package/dist/helpers/getExampleCode.js +12 -31
  39. package/dist/hooks/useNavState.d.ts +22 -0
  40. package/dist/hooks/useNavState.d.ts.map +1 -1
  41. package/dist/hooks/useNavState.js +57 -34
  42. package/dist/index.js +1 -1
  43. package/dist/stores/useHttpClientStore.d.ts +3 -4
  44. package/dist/stores/useHttpClientStore.d.ts.map +1 -1
  45. package/dist/stores/useHttpClientStore.js +45 -58
  46. package/dist/style.css +1 -1
  47. package/dist/types.d.ts +2 -5
  48. package/dist/types.d.ts.map +1 -1
  49. package/package.json +9 -10
@@ -1,11 +1,10 @@
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 = {
1
+ import { defineComponent as y, computed as I, openBlock as r, createElementBlock as o, Fragment as l, renderList as S, createBlock as s, withCtx as w, createVNode as C, unref as u, createCommentVNode as B } from "vue";
2
+ import { splitContent as H, getHeadings as N } from "@scalar/code-highlight/markdown";
3
+ import { ScalarMarkdown as c } from "@scalar/components";
4
+ import d from "github-slugger";
5
+ import b from "../../IntersectionObserver.vue.js";
6
+ import { useNavState as x } from "../../../hooks/useNavState.js";
7
+ const E = {
9
8
  key: 0,
10
9
  class: "introduction-description"
11
10
  }, T = /* @__PURE__ */ y({
@@ -13,59 +12,57 @@ const P = {
13
12
  props: {
14
13
  value: {}
15
14
  },
16
- setup(h) {
17
- const i = h, f = S(() => {
15
+ setup(m) {
16
+ const i = m, p = I(() => {
18
17
  if (!i.value)
19
18
  return [];
20
- const e = new p();
21
- return I(i.value).map((t) => {
22
- const [r] = N(t);
19
+ const e = new d();
20
+ return H(i.value).map((t) => {
21
+ const [n] = N(t);
23
22
  return {
24
- id: r ? l({
25
- ...r,
26
- slug: e.slug(r.value)
23
+ id: n ? a({
24
+ ...n,
25
+ slug: e.slug(n.value)
27
26
  }) : void 0,
28
27
  content: t
29
28
  };
30
29
  });
31
- }), { getHeadingId: l, hash: g, isIntersectionEnabled: v, pathRouting: s } = E();
32
- function w(e = "") {
33
- if (!v.value) return;
34
- const n = new URL(window.location.href);
35
- s.value ? n.pathname = L(s.value.basePath, e) : n.hash = e, g.value = e, window.history.replaceState({}, "", n);
30
+ }), { getHeadingId: a, isIntersectionEnabled: g, replaceUrlState: f } = x();
31
+ function v(e = "") {
32
+ g.value && f(e);
36
33
  }
37
- const _ = new p(), k = (e) => (e.data = {
34
+ const h = new d(), _ = (e) => (e.data = {
38
35
  hProperties: {
39
- id: l({
36
+ id: a({
40
37
  depth: e.depth,
41
38
  value: e.children[0].value,
42
- slug: _.slug(e.children[0].value)
39
+ slug: h.slug(e.children[0].value)
43
40
  })
44
41
  }
45
42
  }, 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, {
43
+ return (e, k) => e.value ? (r(), o("div", E, [
44
+ (r(!0), o(l, null, S(p.value, (t, n) => (r(), o(l, { key: n }, [
45
+ t.id ? (r(), s(b, {
49
46
  key: 0,
50
47
  id: t.id,
51
48
  class: "introduction-description-heading",
52
- onIntersecting: () => w(t.id)
49
+ onIntersecting: () => v(t.id)
53
50
  }, {
54
- default: b(() => [
55
- B(d(m), {
56
- transform: k,
51
+ default: w(() => [
52
+ C(u(c), {
53
+ transform: _,
57
54
  transformType: "heading",
58
55
  value: t.content
59
56
  }, null, 8, ["value"])
60
57
  ]),
61
58
  _: 2
62
- }, 1032, ["id", "onIntersecting"])) : (o(), c(d(m), {
59
+ }, 1032, ["id", "onIntersecting"])) : (r(), s(u(c), {
63
60
  key: 1,
64
61
  value: t.content,
65
62
  withImages: ""
66
63
  }, null, 8, ["value"]))
67
64
  ], 64))), 128))
68
- ])) : H("", !0);
65
+ ])) : B("", !0);
69
66
  }
70
67
  });
71
68
  export {
@@ -1 +1 @@
1
- {"version":3,"file":"SchemaProperty.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaProperty.vue"],"names":[],"mappings":"AA0YA,KAAK,WAAW,GAAG;IACf,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,CAAC;;cAJW,OAAO;WAFV,MAAM;aAGJ,OAAO;;AAyWrB,0BAQG"}
1
+ {"version":3,"file":"SchemaProperty.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaProperty.vue"],"names":[],"mappings":"AA0ZA,KAAK,WAAW,GAAG;IACf,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,CAAC;;cAJW,OAAO;WAFV,MAAM;aAGJ,OAAO;;AA0XrB,0BAQG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./SchemaProperty.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-38da2070"]]);
4
+ const f = /* @__PURE__ */ r(o, [["__scopeId", "data-v-6f6cbcaf"]]);
5
5
  export {
6
- p as default
6
+ f as default
7
7
  };
@@ -1,42 +1,42 @@
1
- import { defineComponent as A, openBlock as l, createElementBlock as t, normalizeClass as T, createVNode as s, createSlots as L, withCtx as v, createTextVNode as U, toDisplayString as i, unref as u, createCommentVNode as r, createElementVNode as c, Fragment as n, renderList as d, createBlock as k } from "vue";
2
- import { Disclosure as M, DisclosurePanel as V, DisclosureButton as $ } from "@headlessui/vue";
3
- import { ScalarMarkdown as g, ScalarIcon as G } from "@scalar/components";
4
- import y from "./Schema.vue.js";
5
- import J from "./SchemaPropertyHeading.vue.js";
6
- const K = {
1
+ import { defineComponent as K, computed as v, openBlock as l, createElementBlock as t, normalizeClass as Z, createVNode as n, createSlots as Q, withCtx as y, createTextVNode as A, toDisplayString as i, unref as p, createCommentVNode as s, createElementVNode as m, Fragment as r, renderList as d, createBlock as b } from "vue";
2
+ import { Disclosure as W, DisclosurePanel as X, DisclosureButton as Y } from "@headlessui/vue";
3
+ import { ScalarMarkdown as E, ScalarIcon as _ } from "@scalar/components";
4
+ import f from "./Schema.vue.js";
5
+ import x from "./SchemaPropertyHeading.vue.js";
6
+ const ee = {
7
7
  key: 0,
8
8
  class: "property-description"
9
- }, Q = {
9
+ }, le = {
10
10
  key: 1,
11
11
  class: "property-description"
12
- }, W = {
12
+ }, te = {
13
13
  key: 2,
14
14
  class: "property-example custom-scroll"
15
- }, X = { class: "property-example-value" }, Y = {
15
+ }, ae = { class: "property-example-value" }, oe = {
16
16
  key: 3,
17
17
  class: "property-example custom-scroll"
18
- }, _ = { class: "property-example-label" }, x = {
18
+ }, se = { class: "property-example-label" }, ne = {
19
19
  key: 4,
20
20
  class: "property-enum"
21
- }, ee = {
21
+ }, re = {
22
22
  key: 0,
23
23
  class: "property-list"
24
- }, le = { class: "property-heading" }, te = { class: "property-name" }, oe = { class: "property-description" }, ae = {
24
+ }, ie = { class: "property-heading" }, ue = { class: "property-name" }, pe = { class: "property-description" }, de = {
25
25
  key: 1,
26
26
  class: "property-enum-values"
27
- }, re = {
27
+ }, ce = {
28
28
  key: 5,
29
29
  class: "children"
30
- }, se = {
30
+ }, me = {
31
31
  key: 0,
32
32
  class: "children"
33
- }, ne = {
33
+ }, ve = {
34
34
  key: 0,
35
35
  class: "property-rule"
36
- }, ie = {
36
+ }, ye = {
37
37
  key: 1,
38
38
  class: "property-rule"
39
- }, ye = /* @__PURE__ */ A({
39
+ }, Ee = /* @__PURE__ */ K({
40
40
  __name: "SchemaProperty",
41
41
  props: {
42
42
  value: {},
@@ -47,8 +47,8 @@ const K = {
47
47
  description: {},
48
48
  additional: { type: Boolean }
49
49
  },
50
- setup(pe) {
51
- const b = {
50
+ setup(M) {
51
+ const h = M, S = {
52
52
  integer: {
53
53
  _default: "Integer numbers.",
54
54
  int32: "Signed 32-bit integers (commonly used integer type).",
@@ -61,141 +61,145 @@ const K = {
61
61
  byte: "base64-encoded characters, for example, U3dhZ2dlciByb2Nrcw==",
62
62
  binary: "binary data, used to describe files"
63
63
  }
64
- }, S = function(e, a) {
65
- return a != null && a.properties || a != null && a.additionalProperties ? null : e || (a == null ? void 0 : a.description) || null;
66
- }, B = function(e) {
67
- return !e || !b[e.type] ? null : b[e.type][e.format || "_default"];
68
- }, m = function(e) {
69
- var a;
70
- return (e == null ? void 0 : e.enum) || ((a = e == null ? void 0 : e.items) == null ? void 0 : a.enum) || [];
71
- }, Z = ["oneOf", "anyOf", "allOf", "not"];
72
- return (e, a) => {
73
- var D, C, E, P, j, w, N, O, q, F, I, z;
64
+ }, B = function(e, o) {
65
+ return o != null && o.properties || o != null && o.additionalProperties ? null : e || (o == null ? void 0 : o.description) || null;
66
+ }, D = function(e) {
67
+ return !e || !S[e.type] ? null : S[e.type][e.format || "_default"];
68
+ }, c = function(e) {
69
+ var o;
70
+ return (e == null ? void 0 : e.enum) || ((o = e == null ? void 0 : e.items) == null ? void 0 : o.enum) || [];
71
+ }, $ = ["oneOf", "anyOf", "allOf", "not"], C = v(() => c(h.value).length > 9), P = v(() => C.value ? 5 : 9), G = v(
72
+ () => c(h.value).slice(0, P.value)
73
+ ), J = v(
74
+ () => c(h.value).slice(P.value)
75
+ );
76
+ return (e, o) => {
77
+ var j, w, N, O, q, F, I, L, V, z, H, R;
74
78
  return l(), t("div", {
75
- class: T(["property", [
79
+ class: Z(["property", [
76
80
  `property--level-${e.level}`,
77
81
  {
78
82
  "property--compact": e.compact,
79
- "property--deprecated": (D = e.value) == null ? void 0 : D.deprecated
83
+ "property--deprecated": (j = e.value) == null ? void 0 : j.deprecated
80
84
  }
81
85
  ]])
82
86
  }, [
83
- s(J, {
87
+ n(x, {
84
88
  additional: e.additional,
85
- enum: m(e.value).length > 1,
89
+ enum: c(e.value).length > 1,
86
90
  required: e.required,
87
91
  value: e.value
88
- }, L({ _: 2 }, [
92
+ }, Q({ _: 2 }, [
89
93
  e.name ? {
90
94
  name: "name",
91
- fn: v(() => [
92
- U(i(e.name), 1)
95
+ fn: y(() => [
96
+ A(i(e.name), 1)
93
97
  ]),
94
98
  key: "0"
95
99
  } : void 0
96
100
  ]), 1032, ["additional", "enum", "required", "value"]),
97
- S(e.description, e.value) ? (l(), t("div", K, [
98
- s(u(g), {
99
- value: S(e.description, e.value)
101
+ B(e.description, e.value) ? (l(), t("div", ee, [
102
+ n(p(E), {
103
+ value: B(e.description, e.value)
100
104
  }, null, 8, ["value"])
101
- ])) : B(e.value) ? (l(), t("div", Q, [
102
- s(u(g), {
103
- value: B(e.value) || ""
105
+ ])) : D(e.value) ? (l(), t("div", le, [
106
+ n(p(E), {
107
+ value: D(e.value) || ""
104
108
  }, null, 8, ["value"])
105
- ])) : r("", !0),
106
- (C = e.value) != null && C.example || (P = (E = e.value) == null ? void 0 : E.items) != null && P.example ? (l(), t("div", W, [
107
- a[0] || (a[0] = c("span", { class: "property-example-label" }, "Example", -1)),
108
- c("code", X, i(e.value.example || ((j = e.value) == null ? void 0 : j.items.example)), 1)
109
- ])) : r("", !0),
110
- (w = e.value) != null && w.examples && typeof e.value.examples == "object" && Object.keys(e.value.examples).length > 0 ? (l(), t("div", Y, [
111
- c("span", _, i(Object.keys(e.value.examples).length === 1 ? "Example" : "Examples"), 1),
112
- (l(!0), t(n, null, d(e.value.examples, (o, p) => (l(), t("code", {
113
- key: p,
109
+ ])) : s("", !0),
110
+ (w = e.value) != null && w.example || (O = (N = e.value) == null ? void 0 : N.items) != null && O.example ? (l(), t("div", te, [
111
+ o[0] || (o[0] = m("span", { class: "property-example-label" }, "Example", -1)),
112
+ m("code", ae, i(e.value.example || ((q = e.value) == null ? void 0 : q.items.example)), 1)
113
+ ])) : s("", !0),
114
+ (F = e.value) != null && F.examples && typeof e.value.examples == "object" && Object.keys(e.value.examples).length > 0 ? (l(), t("div", oe, [
115
+ m("span", se, i(Object.keys(e.value.examples).length === 1 ? "Example" : "Examples"), 1),
116
+ (l(!0), t(r, null, d(e.value.examples, (a, u) => (l(), t("code", {
117
+ key: u,
114
118
  class: "property-example-value"
115
- }, i(o), 1))), 128))
116
- ])) : r("", !0),
117
- ((N = m(e.value)) == null ? void 0 : N.length) > 1 ? (l(), t("div", x, [
118
- (O = e.value) != null && O["x-enumDescriptions"] ? (l(), t("div", ee, [
119
- (l(!0), t(n, null, d(m(e.value), (o) => (l(), t("div", {
120
- key: o,
119
+ }, i(a), 1))), 128))
120
+ ])) : s("", !0),
121
+ ((I = c(e.value)) == null ? void 0 : I.length) > 1 ? (l(), t("div", ne, [
122
+ (L = e.value) != null && L["x-enumDescriptions"] ? (l(), t("div", re, [
123
+ (l(!0), t(r, null, d(c(e.value), (a) => (l(), t("div", {
124
+ key: a,
121
125
  class: "property"
122
126
  }, [
123
- c("div", le, [
124
- c("div", te, i(o), 1)
127
+ m("div", ie, [
128
+ m("div", ue, i(a), 1)
125
129
  ]),
126
- c("div", oe, [
127
- s(u(g), {
128
- value: e.value["x-enumDescriptions"][o]
130
+ m("div", pe, [
131
+ n(p(E), {
132
+ value: e.value["x-enumDescriptions"][a]
129
133
  }, null, 8, ["value"])
130
134
  ])
131
135
  ]))), 128))
132
- ])) : (l(), t("ul", ae, [
133
- (l(!0), t(n, null, d(m(e.value).slice(0, 4), (o) => (l(), t("li", {
134
- key: o,
136
+ ])) : (l(), t("ul", de, [
137
+ (l(!0), t(r, null, d(G.value, (a) => (l(), t("li", {
138
+ key: a,
135
139
  class: "property-enum-value"
136
- }, i(o), 1))), 128)),
137
- m(e.value).length > 4 ? (l(), k(u(M), { key: 0 }, {
138
- default: v(({ open: o }) => [
139
- s(u(V), null, {
140
- default: v(() => [
141
- (l(!0), t(n, null, d(m(e.value).slice(4), (p) => (l(), t("li", {
142
- key: p,
140
+ }, i(a), 1))), 128)),
141
+ C.value ? (l(), b(p(W), { key: 0 }, {
142
+ default: y(({ open: a }) => [
143
+ n(p(X), null, {
144
+ default: y(() => [
145
+ (l(!0), t(r, null, d(J.value, (u) => (l(), t("li", {
146
+ key: u,
143
147
  class: "property-enum-value"
144
- }, i(p), 1))), 128))
148
+ }, i(u), 1))), 128))
145
149
  ]),
146
150
  _: 1
147
151
  }),
148
- s(u($), { class: "enum-toggle-button" }, {
149
- default: v(() => [
150
- s(u(G), {
151
- class: T(["enum-toggle-button-icon", { "enum-toggle-button-icon--open": o }]),
152
+ n(p(Y), { class: "enum-toggle-button" }, {
153
+ default: y(() => [
154
+ n(p(_), {
155
+ class: Z(["enum-toggle-button-icon", { "enum-toggle-button-icon--open": a }]),
152
156
  icon: "Add",
153
157
  size: "sm"
154
158
  }, null, 8, ["class"]),
155
- U(" " + i(o ? "Hide values" : "Show all values"), 1)
159
+ A(" " + i(a ? "Hide values" : "Show all values"), 1)
156
160
  ]),
157
161
  _: 2
158
162
  }, 1024)
159
163
  ]),
160
164
  _: 1
161
- })) : r("", !0)
165
+ })) : s("", !0)
162
166
  ]))
163
- ])) : r("", !0),
164
- ((q = e.value) == null ? void 0 : q.type) === "object" && ((F = e.value) != null && F.properties || (I = e.value) != null && I.additionalProperties) ? (l(), t("div", re, [
165
- s(y, {
167
+ ])) : s("", !0),
168
+ ((V = e.value) == null ? void 0 : V.type) === "object" && ((z = e.value) != null && z.properties || (H = e.value) != null && H.additionalProperties) ? (l(), t("div", ce, [
169
+ n(f, {
166
170
  compact: e.compact,
167
171
  level: e.level + 1,
168
172
  value: e.value
169
173
  }, null, 8, ["compact", "level", "value"])
170
- ])) : r("", !0),
171
- (z = e.value) != null && z.items ? (l(), t(n, { key: 6 }, [
172
- ["object"].includes(e.value.items.type) ? (l(), t("div", se, [
173
- s(y, {
174
+ ])) : s("", !0),
175
+ (R = e.value) != null && R.items ? (l(), t(r, { key: 6 }, [
176
+ ["object"].includes(e.value.items.type) ? (l(), t("div", me, [
177
+ n(f, {
174
178
  compact: e.compact,
175
179
  level: e.level + 1,
176
180
  value: e.value.items
177
181
  }, null, 8, ["compact", "level", "value"])
178
- ])) : r("", !0)
179
- ], 64)) : r("", !0),
180
- (l(), t(n, null, d(Z, (o) => {
181
- var p, H, R;
182
- return l(), t(n, { key: o }, [
183
- (p = e.value) != null && p[o] ? (l(), t("div", ne, [
184
- (l(!0), t(n, null, d(e.value[o], (f, h) => (l(), k(y, {
185
- key: h,
182
+ ])) : s("", !0)
183
+ ], 64)) : s("", !0),
184
+ (l(), t(r, null, d($, (a) => {
185
+ var u, T, U;
186
+ return l(), t(r, { key: a }, [
187
+ (u = e.value) != null && u[a] ? (l(), t("div", ve, [
188
+ (l(!0), t(r, null, d(e.value[a], (g, k) => (l(), b(f, {
189
+ key: k,
186
190
  compact: e.compact,
187
191
  level: e.level + 1,
188
- value: f
192
+ value: g
189
193
  }, null, 8, ["compact", "level", "value"]))), 128))
190
- ])) : r("", !0),
191
- (R = (H = e.value) == null ? void 0 : H.items) != null && R[o] && e.level < 3 ? (l(), t("div", ie, [
192
- (l(!0), t(n, null, d(e.value.items[o], (f, h) => (l(), k(y, {
193
- key: h,
194
+ ])) : s("", !0),
195
+ (U = (T = e.value) == null ? void 0 : T.items) != null && U[a] && e.level < 3 ? (l(), t("div", ye, [
196
+ (l(!0), t(r, null, d(e.value.items[a], (g, k) => (l(), b(f, {
197
+ key: k,
194
198
  compact: e.compact,
195
199
  level: e.level + 1,
196
- value: f
200
+ value: g
197
201
  }, null, 8, ["compact", "level", "value"]))), 128))
198
- ])) : r("", !0)
202
+ ])) : s("", !0)
199
203
  ], 64);
200
204
  }), 64))
201
205
  ], 2);
@@ -203,5 +207,5 @@ const K = {
203
207
  }
204
208
  });
205
209
  export {
206
- ye as default
210
+ Ee as default
207
211
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./CompactSection.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-f61b582b"]]);
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-b32ceff4"]]);
5
5
  export {
6
- a as default
6
+ p as default
7
7
  };
@@ -1,30 +1,31 @@
1
1
  import { defineComponent as d, ref as m, watch as p, nextTick as u, openBlock as a, createElementBlock as f, createElementVNode as v, normalizeClass as h, createVNode as i, unref as b, withCtx as n, renderSlot as r, createBlock as C, createCommentVNode as k } from "vue";
2
2
  import { ScalarIcon as g } from "@scalar/components";
3
3
  import S from "../Anchor/Anchor.vue.js";
4
- import w from "./Section.vue.js";
5
- import { scrollToId as N } from "../../helpers/scrollToId.js";
6
- import { useNavState as B } from "../../hooks/useNavState.js";
7
- const V = ["aria-expanded"], x = /* @__PURE__ */ d({
4
+ import _ from "./Section.vue.js";
5
+ import { scrollToId as w } from "../../helpers/scrollToId.js";
6
+ import { useNavState as N } from "../../hooks/useNavState.js";
7
+ const B = ["aria-expanded"], V = ["id"], A = /* @__PURE__ */ d({
8
8
  __name: "CompactSection",
9
9
  props: {
10
10
  id: {},
11
11
  label: {}
12
12
  },
13
13
  setup(s) {
14
- const l = s, { hash: c } = B(), e = m(!1);
14
+ const t = s, { hash: c } = N(), e = m(!1);
15
15
  return p(
16
16
  c,
17
17
  async (o) => {
18
- o === l.id && !e.value && (e.value = !0, await u(), N(l.id));
18
+ o === t.id && !e.value && (e.value = !0, await u(), w(t.id));
19
19
  },
20
20
  { immediate: !0 }
21
- ), (o, t) => (a(), f("div", {
21
+ ), (o, l) => (a(), f("div", {
22
22
  "aria-expanded": e.value,
23
23
  class: "collapsible-section"
24
24
  }, [
25
25
  v("div", {
26
+ id: o.id,
26
27
  class: h(["collapsible-section-trigger", { "collapsible-section-trigger-open": e.value }]),
27
- onClick: t[0] || (t[0] = (_) => e.value = !e.value)
28
+ onClick: l[0] || (l[0] = ($) => e.value = !e.value)
28
29
  }, [
29
30
  i(b(g), {
30
31
  icon: e.value ? "ChevronDown" : "ChevronRight",
@@ -40,10 +41,9 @@ const V = ["aria-expanded"], x = /* @__PURE__ */ d({
40
41
  ]),
41
42
  _: 3
42
43
  }, 8, ["id"])
43
- ], 2),
44
- e.value ? (a(), C(w, {
44
+ ], 10, V),
45
+ e.value ? (a(), C(_, {
45
46
  key: 0,
46
- id: o.id,
47
47
  class: "collapsible-section-content",
48
48
  label: o.label
49
49
  }, {
@@ -51,10 +51,10 @@ const V = ["aria-expanded"], x = /* @__PURE__ */ d({
51
51
  r(o.$slots, "default", {}, void 0, !0)
52
52
  ]),
53
53
  _: 3
54
- }, 8, ["id", "label"])) : k("", !0)
55
- ], 8, V));
54
+ }, 8, ["label"])) : k("", !0)
55
+ ], 8, B));
56
56
  }
57
57
  });
58
58
  export {
59
- x as default
59
+ A as default
60
60
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Section.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Section/Section.vue"],"names":[],"mappings":"AAqFA,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAC;AAkCF,iBAAS,cAAc;WAoET,OAAO,IAA6B;;yBARrB,GAAG;;;;EAa/B;AAUD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,kSAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"Section.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Section/Section.vue"],"names":[],"mappings":"AAsEA,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAC;AAqBF,iBAAS,cAAc;WAoET,OAAO,IAA6B;;yBARrB,GAAG;;;;EAa/B;AAUD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,kSAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import o from "./Section.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-8687f476"]]);
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-64ccd510"]]);
5
5
  export {
6
6
  p as default
7
7
  };
@@ -1,35 +1,32 @@
1
- import { defineComponent as m, openBlock as p, createBlock as u, withCtx as f, renderSlot as S } from "vue";
2
- import w from "../IntersectionObserver.vue.js";
3
- import { useSidebar as b } from "../../hooks/useSidebar.js";
4
- import { joinWithSlash as _ } from "../../helpers/joinWithSlash.js";
5
- import { useNavState as v } from "../../hooks/useNavState.js";
6
- const B = /* @__PURE__ */ m({
1
+ import { defineComponent as d, openBlock as c, createBlock as m, withCtx as p, renderSlot as f } from "vue";
2
+ import u from "../IntersectionObserver.vue.js";
3
+ import { useSidebar as S } from "../../hooks/useSidebar.js";
4
+ import { useNavState as _ } from "../../hooks/useNavState.js";
5
+ const v = /* @__PURE__ */ d({
7
6
  __name: "Section",
8
7
  props: {
9
8
  id: {},
10
9
  label: {}
11
10
  },
12
- setup(s) {
13
- const t = s, { getSectionId: r, hash: l, isIntersectionEnabled: d, pathRouting: i } = v(), { setCollapsedSidebarItem: c } = b();
14
- function h() {
15
- var n, a;
16
- if (!t.label || !d.value) return;
17
- const e = new URL(window.location.href), o = t.id ?? "";
18
- i.value ? e.pathname = _(i.value.basePath, o) : e.hash = o, l.value = o, window.history.replaceState({}, "", e), ((n = t.id) != null && n.startsWith("model") || (a = t.id) != null && a.startsWith("webhook")) && c(r(t.id), !0);
11
+ setup(i) {
12
+ const e = i, { getSectionId: r, isIntersectionEnabled: n, replaceUrlState: s } = _(), { setCollapsedSidebarItem: a } = S();
13
+ function l() {
14
+ var t, o;
15
+ !e.label || !n.value || (s(e.id ?? ""), ((t = e.id) != null && t.startsWith("model") || (o = e.id) != null && o.startsWith("webhook")) && a(r(e.id), !0));
19
16
  }
20
- return (e, o) => (p(), u(w, {
17
+ return (t, o) => (c(), m(u, {
21
18
  is: "section",
22
- id: e.id,
19
+ id: t.id,
23
20
  class: "section",
24
- onIntersecting: h
21
+ onIntersecting: l
25
22
  }, {
26
- default: f(() => [
27
- S(e.$slots, "default", {}, void 0, !0)
23
+ default: p(() => [
24
+ f(t.$slots, "default", {}, void 0, !0)
28
25
  ]),
29
26
  _: 3
30
27
  }, 8, ["id"]));
31
28
  }
32
29
  });
33
30
  export {
34
- B as default
31
+ v as default
35
32
  };
@@ -1 +1 @@
1
- {"version":3,"file":"SidebarElement.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarElement.vue"],"names":[],"mappings":"AA+UA,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE;QACJ,EAAE,EAAE,MAAM,CAAA;QACV,KAAK,EAAE,MAAM,CAAA;QACb,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;QACnB,IAAI,CAAC,EAAE,MAAM,CAAA;QACb,IAAI,CAAC,EAAE;YACL,GAAG,EAAE,MAAM,CAAA;SACZ,CAAA;QACD,QAAQ,CAAC,EAAE,MAAM,CAAA;QACjB,UAAU,CAAC,EAAE,OAAO,CAAA;KACrB,CAAA;IACD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,IAAI,CAAC,EAAE,OAAO,CAAA;CACf,CAAC;AAqEF,iBAAS,cAAc;WAyKT,OAAO,IAA6B;;yBATpB,GAAG;+BACG,GAAG;;;;EAatC;AAeD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;4FAQnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"SidebarElement.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarElement.vue"],"names":[],"mappings":"AA0UA,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE;QACJ,EAAE,EAAE,MAAM,CAAA;QACV,KAAK,EAAE,MAAM,CAAA;QACb,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;QACnB,IAAI,CAAC,EAAE,MAAM,CAAA;QACb,IAAI,CAAC,EAAE;YACL,GAAG,EAAE,MAAM,CAAA;SACZ,CAAA;QACD,QAAQ,CAAC,EAAE,MAAM,CAAA;QACjB,UAAU,CAAC,EAAE,OAAO,CAAA;KACrB,CAAA;IACD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,IAAI,CAAC,EAAE,OAAO,CAAA;CACf,CAAC;AAgEF,iBAAS,cAAc;WAyKT,OAAO,IAA6B;;yBATpB,GAAG;+BACG,GAAG;;;;EAatC;AAeD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;4FAQnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import o from "./SidebarElement.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-f2a62314"]]);
4
+ const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-10d3d1f0"]]);
5
5
  export {
6
- m as default
6
+ a as default
7
7
  };