@scalar/api-reference 1.24.41 → 1.24.42

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 +1 @@
1
- {"version":3,"file":"Tag.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/Tag.vue"],"names":[],"mappings":"AA6EA,OAAO,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAA;;;;;;;;;;;;AAkKlD,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,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":"Tag.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/Tag.vue"],"names":[],"mappings":"AA+EA,OAAO,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAA;;;;;;;;;;;;AAoKlD,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,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 "./Tag.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-f193be30"]]);
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-e7d35918"]]);
5
5
  export {
6
- m as default
6
+ p as default
7
7
  };
@@ -1,50 +1,52 @@
1
- import { defineComponent as h, ref as v, openBlock as n, createBlock as r, unref as i, withCtx as S, createCommentVNode as k, renderSlot as y } from "vue";
2
- import C from "../../ShowMoreButton.vue.js";
3
- import T from "./Endpoints.vue.js";
4
- import { observeMutations as A } from "./mutationObserver.js";
5
- import N from "../../Section/SectionContainer.vue.js";
6
- import { useSidebar as w } from "../../../hooks/useSidebar.js";
7
- import { useNavState as B } from "../../../hooks/useNavState.js";
8
- const H = /* @__PURE__ */ h({
1
+ import { defineComponent as b, ref as h, computed as S, openBlock as r, createBlock as a, unref as i, withCtx as k, createCommentVNode as y, renderSlot as C } from "vue";
2
+ import T from "../../ShowMoreButton.vue.js";
3
+ import A from "./Endpoints.vue.js";
4
+ import { observeMutations as N } from "./mutationObserver.js";
5
+ import w from "../../Section/SectionContainer.vue.js";
6
+ import { useSidebar as B } from "../../../hooks/useSidebar.js";
7
+ import { useNavState as E } from "../../../hooks/useNavState.js";
8
+ const H = /* @__PURE__ */ b({
9
9
  __name: "Tag",
10
10
  props: {
11
11
  id: {},
12
12
  tag: {},
13
13
  spec: {}
14
14
  },
15
- setup(c) {
16
- const m = c, s = v(null), { collapsedSidebarItems: f } = w(), { getTagId: l } = B(), p = (e) => {
17
- var o;
18
- return ((o = m.spec.tags) == null ? void 0 : o.length) !== 1 || (e == null ? void 0 : e.name) !== "default" || (e == null ? void 0 : e.description) !== "";
19
- }, a = (e) => {
15
+ setup(m) {
16
+ const n = m, s = h(null), { collapsedSidebarItems: l } = B(), { getTagId: f } = E(), p = S(
17
+ () => {
18
+ var e, o, t;
19
+ return ((e = n.spec.tags) == null ? void 0 : e.length) !== 1 || ((o = n.tag) == null ? void 0 : o.name) !== "default" || ((t = n.tag) == null ? void 0 : t.description) !== "";
20
+ }
21
+ ), d = (e) => {
20
22
  window.location.href = `#${e}`;
21
23
  }, u = (e) => {
22
- A(s, (o, t) => {
23
- o.forEach((b) => {
24
- Array.from(b.addedNodes).some((d) => d instanceof HTMLElement && d.id === e) && (a(e), t.disconnect());
24
+ N(s, (o, t) => {
25
+ o.forEach((v) => {
26
+ Array.from(v.addedNodes).some((c) => c instanceof HTMLElement && c.id === e) && (d(e), t.disconnect());
25
27
  });
26
28
  });
27
29
  }, g = (e) => {
28
- document.getElementById(e) ? a(e) : u(e);
30
+ document.getElementById(e) ? d(e) : u(e);
29
31
  };
30
- return (e, o) => (n(), r(i(N), {
32
+ return (e, o) => (r(), a(i(w), {
31
33
  ref_key: "sectionContainerRef",
32
34
  ref: s,
33
35
  class: "tag-section-container"
34
36
  }, {
35
- default: S(() => {
37
+ default: k(() => {
36
38
  var t;
37
39
  return [
38
- p(e.tag) ? (n(), r(T, {
40
+ p.value ? (r(), a(A, {
39
41
  key: 0,
40
42
  id: e.id,
41
43
  tag: e.tag,
42
44
  onObserveAndNavigate: g
43
- }, null, 8, ["id", "tag"])) : k("", !0),
44
- !i(f)[i(l)(e.tag)] && ((t = e.tag.operations) == null ? void 0 : t.length) > 1 ? (n(), r(C, {
45
+ }, null, 8, ["id", "tag"])) : y("", !0),
46
+ !i(l)[i(f)(e.tag)] && ((t = e.tag.operations) == null ? void 0 : t.length) > 1 ? (r(), a(T, {
45
47
  key: 1,
46
48
  id: e.id ?? ""
47
- }, null, 8, ["id"])) : y(e.$slots, "default", { key: 2 }, void 0, !0)
49
+ }, null, 8, ["id"])) : C(e.$slots, "default", { key: 2 }, void 0, !0)
48
50
  ];
49
51
  }),
50
52
  _: 3