@scalar/api-reference 1.25.128 → 1.25.130

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 (60) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/dist/browser/standalone.js +10592 -10559
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts.map +1 -1
  5. package/dist/components/Content/ClientLibraries/ClientSelector.vue.js +2 -2
  6. package/dist/components/Content/Lazy/Loading.vue.js +15 -15
  7. package/dist/components/Content/Tag/{Endpoints.vue.d.ts → OperationsList.vue.d.ts} +1 -3
  8. package/dist/components/Content/Tag/OperationsList.vue.d.ts.map +1 -0
  9. package/dist/components/Content/Tag/OperationsList.vue.js +7 -0
  10. package/dist/components/Content/Tag/OperationsList.vue2.js +62 -0
  11. package/dist/components/Content/Tag/OperationsListItem.vue.d.ts +9 -0
  12. package/dist/components/Content/Tag/OperationsListItem.vue.d.ts.map +1 -0
  13. package/dist/components/Content/Tag/OperationsListItem.vue.js +7 -0
  14. package/dist/components/Content/Tag/OperationsListItem.vue2.js +66 -0
  15. package/dist/components/Content/Tag/Tag.vue.d.ts +4 -64
  16. package/dist/components/Content/Tag/Tag.vue.d.ts.map +1 -1
  17. package/dist/components/Content/Tag/Tag.vue.js +87 -5
  18. package/dist/components/Content/Tag/Tag.vue2.js +2 -63
  19. package/dist/components/Content/Tag/TagList.vue.d.ts.map +1 -1
  20. package/dist/components/Content/Tag/TagList.vue.js +11 -11
  21. package/dist/components/Content/Tag/TagSection.vue.d.ts +70 -0
  22. package/dist/components/Content/Tag/TagSection.vue.d.ts.map +1 -0
  23. package/dist/components/Content/Tag/TagSection.vue.js +7 -0
  24. package/dist/components/Content/Tag/TagSection.vue2.js +65 -0
  25. package/dist/components/Content/Tag/index.d.ts +1 -2
  26. package/dist/components/Content/Tag/index.d.ts.map +1 -1
  27. package/dist/features/ApiClientModal/useApiClient.d.ts +30 -10
  28. package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
  29. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
  30. package/dist/features/Operation/layouts/ClassicLayout.vue.js +2 -2
  31. package/dist/features/Operation/layouts/ClassicLayout.vue2.js +54 -54
  32. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
  33. package/dist/features/Operation/layouts/ModernLayout.vue.js +2 -2
  34. package/dist/features/Operation/layouts/ModernLayout.vue2.js +65 -67
  35. package/dist/helpers/get-request.d.ts +1 -0
  36. package/dist/helpers/get-request.d.ts.map +1 -1
  37. package/dist/helpers/index.d.ts +0 -1
  38. package/dist/helpers/index.d.ts.map +1 -1
  39. package/dist/hooks/useReactiveSpec.d.ts +8 -8
  40. package/dist/hooks/useSidebar.d.ts.map +1 -1
  41. package/dist/hooks/useSidebar.js +126 -116
  42. package/dist/index.js +55 -59
  43. package/dist/libs/operation.d.ts +15 -0
  44. package/dist/libs/operation.d.ts.map +1 -0
  45. package/dist/libs/operation.js +16 -0
  46. package/dist/stores/useHttpClientStore.d.ts +1 -1
  47. package/dist/stores/useHttpClientStore.d.ts.map +1 -1
  48. package/dist/style.css +1 -1
  49. package/dist/types.d.ts +1 -1
  50. package/dist/types.d.ts.map +1 -1
  51. package/package.json +12 -13
  52. package/dist/components/Content/Tag/Endpoints.vue.d.ts.map +0 -1
  53. package/dist/components/Content/Tag/Endpoints.vue.js +0 -7
  54. package/dist/components/Content/Tag/Endpoints.vue2.js +0 -161
  55. package/dist/helpers/operation.d.ts +0 -14
  56. package/dist/helpers/operation.d.ts.map +0 -1
  57. package/dist/helpers/operation.js +0 -18
  58. package/dist/standalone/lib/html-rendering.d.ts +0 -50
  59. package/dist/standalone/lib/html-rendering.d.ts.map +0 -1
  60. package/dist/standalone/lib/html-rendering.js +0 -64
@@ -1 +1 @@
1
- {"version":3,"file":"ClientSelector.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ClientLibraries/ClientSelector.vue"],"names":[],"mappings":"AA2RA,KAAK,WAAW,GAAG;IACjB,yEAAyE;IACzE,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAC;;AA4MF,wBAOG"}
1
+ {"version":3,"file":"ClientSelector.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ClientLibraries/ClientSelector.vue"],"names":[],"mappings":"AA+RA,KAAK,WAAW,GAAG;IACjB,yEAAyE;IACzE,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAC;;AA4MF,wBAOG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./ClientSelector.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-f25a69f0"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-6a409ae4"]]);
5
5
  export {
6
- a as default
6
+ m as default
7
7
  };
@@ -1,7 +1,7 @@
1
- import { defineComponent as D, ref as v, watch as H, onMounted as K, withDirectives as M, openBlock as n, createElementBlock as f, normalizeClass as j, Fragment as g, renderList as w, createBlock as m, unref as t, withCtx as c, createCommentVNode as T, createVNode as h, createTextVNode as F, toDisplayString as P, vShow as q } from "vue";
1
+ import { defineComponent as D, ref as v, watch as H, onMounted as K, withDirectives as M, openBlock as n, createElementBlock as f, normalizeClass as j, Fragment as g, renderList as w, createBlock as m, unref as t, withCtx as d, createCommentVNode as T, createVNode as h, createTextVNode as F, toDisplayString as P, vShow as q } from "vue";
2
2
  import { useActiveEntities as G } from "@scalar/api-client/store";
3
3
  import { lazyBus as J } from "./lazyBus.js";
4
- import Q from "../Tag/Tag.vue.js";
4
+ import Q from "../Tag/TagSection.vue.js";
5
5
  import R from "../../../features/Operation/Operation.vue.js";
6
6
  import U from "../../Section/SectionContainer.vue.js";
7
7
  import X from "../../Section/Section.vue.js";
@@ -33,16 +33,16 @@ const ye = /* @__PURE__ */ D({
33
33
  const l = B();
34
34
  if (l.startsWith("tag")) {
35
35
  let o = 0;
36
- const d = ((e = i.parsedSpec.tags) == null ? void 0 : e.findIndex(
36
+ const c = ((e = i.parsedSpec.tags) == null ? void 0 : e.findIndex(
37
37
  (k) => N(k) === l
38
38
  )) ?? 0, s = a.value.match(/tag\/([^/]+)\/([^/]+)\/(.+)/);
39
39
  if ((s == null ? void 0 : s.length) === 4) {
40
40
  const k = s[2], W = "/" + s[3];
41
- o = (u = i.parsedSpec.tags[d]) == null ? void 0 : u.operations.findIndex(
41
+ o = (u = i.parsedSpec.tags[c]) == null ? void 0 : u.operations.findIndex(
42
42
  ({ httpVerb: $, path: A }) => k === $ && W === A
43
43
  );
44
44
  }
45
- const p = i.parsedSpec.tags[d];
45
+ const p = i.parsedSpec.tags[c];
46
46
  if (!p) return;
47
47
  p.name !== "default" && (_.value = l !== a.value && l.startsWith("tag")), y.value.push({
48
48
  ...p,
@@ -52,7 +52,7 @@ const ye = /* @__PURE__ */ D({
52
52
  )
53
53
  });
54
54
  } else if (a.value.startsWith("model")) {
55
- const o = Object.keys(S(i.parsedSpec) ?? {}), [, d] = a.value.toLowerCase().split("/"), s = a.value === "models" ? 0 : o.findIndex((p) => p.toLowerCase() === d);
55
+ const o = Object.keys(S(i.parsedSpec) ?? {}), [, c] = a.value.toLowerCase().split("/"), s = a.value === "models" ? 0 : o.findIndex((p) => p.toLowerCase() === c);
56
56
  if (s === -1) return;
57
57
  I.value = o.slice(s, s + 3);
58
58
  } else
@@ -82,7 +82,7 @@ const ye = /* @__PURE__ */ D({
82
82
  spec: r.parsedSpec,
83
83
  tag: e
84
84
  }, {
85
- default: c(() => [
85
+ default: d(() => [
86
86
  (n(!0), f(g, null, w(e.lazyOperations, (o) => (n(), m(t(R), {
87
87
  key: `${o.httpVerb}-${o.operationId}`,
88
88
  collection: t(O),
@@ -95,29 +95,29 @@ const ye = /* @__PURE__ */ D({
95
95
  }, 1032, ["spec", "tag"])) : T("", !0)
96
96
  ], 64))), 128)),
97
97
  I.value.length ? (n(), m(t(U), { key: 0 }, {
98
- default: c(() => [
98
+ default: d(() => [
99
99
  (n(!0), f(g, null, w(I.value, (e) => (n(), m(t(X), {
100
100
  key: e,
101
101
  label: e
102
102
  }, {
103
- default: c(() => {
103
+ default: d(() => {
104
104
  var u;
105
105
  return [
106
106
  (u = t(S)(r.parsedSpec)) != null && u[e] ? (n(), m(t(Y), { key: 0 }, {
107
- default: c(() => {
107
+ default: d(() => {
108
108
  var o;
109
109
  return [
110
110
  h(t(Z), null, {
111
- default: c(() => [
111
+ default: d(() => [
112
112
  h(t(ee), {
113
113
  id: t(z)({ name: e })
114
114
  }, {
115
- default: c(() => [
115
+ default: d(() => [
116
116
  h(t(te), { level: 2 }, {
117
- default: c(() => {
118
- var d;
117
+ default: d(() => {
118
+ var c;
119
119
  return [
120
- F(P(((d = t(S)(r.parsedSpec)) == null ? void 0 : d[e]).title ?? e), 1)
120
+ F(P(((c = t(S)(r.parsedSpec)) == null ? void 0 : c[e]).title ?? e), 1)
121
121
  ];
122
122
  }),
123
123
  _: 2
@@ -1,10 +1,8 @@
1
1
  import type { Tag } from '@scalar/types/legacy';
2
2
  type __VLS_Props = {
3
- id?: string;
4
3
  tag: Tag;
5
- headerId?: string;
6
4
  isCollapsed?: boolean;
7
5
  };
8
6
  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, {}, any>;
9
7
  export default _default;
10
- //# sourceMappingURL=Endpoints.vue.d.ts.map
8
+ //# sourceMappingURL=OperationsList.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OperationsList.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/OperationsList.vue"],"names":[],"mappings":"AAsDA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAW/C,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,GAAG,CAAA;IACR,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;AAiHF,wBAMG"}
@@ -0,0 +1,7 @@
1
+ import o from "./OperationsList.vue2.js";
2
+ /* empty css */
3
+ import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-bc837dc7"]]);
5
+ export {
6
+ a as default
7
+ };
@@ -0,0 +1,62 @@
1
+ import { defineComponent as f, computed as g, openBlock as r, createBlock as p, unref as t, withCtx as a, createVNode as o, createTextVNode as d, toDisplayString as C, createElementVNode as N, createElementBlock as k, Fragment as y, renderList as O, createCommentVNode as _ } from "vue";
2
+ import B from "../../ScreenReader.vue.js";
3
+ import { useNavState as V } from "../../../hooks/useNavState.js";
4
+ import v from "./OperationsListItem.vue.js";
5
+ import L from "../../Card/Card.vue.js";
6
+ import S from "../../Card/CardHeader.vue.js";
7
+ import b from "../../Card/CardContent.vue.js";
8
+ const h = ["aria-label"], T = /* @__PURE__ */ f({
9
+ __name: "OperationsList",
10
+ props: {
11
+ tag: {},
12
+ isCollapsed: { type: Boolean }
13
+ },
14
+ setup(u) {
15
+ const s = u, { getOperationId: c } = V(), n = g(() => s.tag["x-displayName"] ?? s.tag.name);
16
+ return (e, l) => {
17
+ var i;
18
+ return ((i = e.tag.operations) == null ? void 0 : i.length) > 0 ? (r(), p(t(L), {
19
+ key: 0,
20
+ class: "scalar-card-sticky"
21
+ }, {
22
+ default: a(() => [
23
+ o(t(S), { muted: "" }, {
24
+ default: a(() => [
25
+ o(B, null, {
26
+ default: a(() => [
27
+ d(C(n.value), 1)
28
+ ]),
29
+ _: 1
30
+ }),
31
+ l[0] || (l[0] = d(" Operations "))
32
+ ]),
33
+ _: 1
34
+ }),
35
+ o(t(b), {
36
+ class: "custom-scroll",
37
+ muted: ""
38
+ }, {
39
+ default: a(() => [
40
+ N("ul", {
41
+ "aria-label": `${n.value} endpoints`,
42
+ class: "endpoints"
43
+ }, [
44
+ (r(!0), k(y, null, O(e.tag.operations, (m) => (r(), p(v, {
45
+ key: t(c)(m, e.tag),
46
+ isCollapsed: e.isCollapsed,
47
+ tag: e.tag,
48
+ transformedOperation: m
49
+ }, null, 8, ["isCollapsed", "tag", "transformedOperation"]))), 128))
50
+ ], 8, h)
51
+ ]),
52
+ _: 1
53
+ })
54
+ ]),
55
+ _: 1
56
+ })) : _("", !0);
57
+ };
58
+ }
59
+ });
60
+ export {
61
+ T as default
62
+ };
@@ -0,0 +1,9 @@
1
+ import type { Tag, TransformedOperation } from '@scalar/types/legacy';
2
+ type __VLS_Props = {
3
+ transformedOperation: TransformedOperation;
4
+ tag: Tag;
5
+ isCollapsed?: boolean;
6
+ };
7
+ 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, {}, any>;
8
+ export default _default;
9
+ //# sourceMappingURL=OperationsListItem.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OperationsListItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/OperationsListItem.vue"],"names":[],"mappings":"AAiIA,OAAO,KAAK,EAAE,GAAG,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAarE,KAAK,WAAW,GAAG;IACjB,oBAAoB,EAAE,oBAAoB,CAAA;IAC1C,GAAG,EAAE,GAAG,CAAA;IACR,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;AAkJF,wBAMG"}
@@ -0,0 +1,7 @@
1
+ import t from "./OperationsListItem.vue2.js";
2
+ /* empty css */
3
+ import o from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const p = /* @__PURE__ */ o(t, [["__scopeId", "data-v-a68a4ca6"]]);
5
+ export {
6
+ p as default
7
+ };
@@ -0,0 +1,66 @@
1
+ import { defineComponent as u, computed as h, unref as t, openBlock as s, createElementBlock as O, createBlock as g, withCtx as k, createTextVNode as C, toDisplayString as i, createCommentVNode as p, createElementVNode as m, withModifiers as v, createVNode as y, normalizeClass as B } from "vue";
2
+ import { useWorkspace as N } from "@scalar/api-client/store";
3
+ import { getPointer as V } from "../../../blocks/helpers/getPointer.js";
4
+ import { useBlockProps as S } from "../../../blocks/hooks/useBlockProps.js";
5
+ import { useNavState as w } from "../../../hooks/useNavState.js";
6
+ import { useSidebar as H } from "../../../hooks/useSidebar.js";
7
+ import { isOperationDeprecated as I } from "../../../libs/operation.js";
8
+ import T from "../../Section/SectionHeaderTag.vue.js";
9
+ import $ from "../../HttpMethod/HttpMethod.vue.js";
10
+ const b = ["href"], F = /* @__PURE__ */ u({
11
+ __name: "OperationsListItem",
12
+ props: {
13
+ transformedOperation: {},
14
+ tag: {},
15
+ isCollapsed: { type: Boolean }
16
+ },
17
+ setup(a) {
18
+ const { getOperationId: n } = w(), { scrollToOperation: l } = H(), d = async (e) => {
19
+ const o = n(e, a.tag);
20
+ l(o);
21
+ }, c = N(), { operation: r } = S({
22
+ store: c,
23
+ location: V([
24
+ "paths",
25
+ a.transformedOperation.path,
26
+ a.transformedOperation.httpVerb.toLowerCase()
27
+ ])
28
+ }), f = h(() => {
29
+ var e, o;
30
+ return ((e = r.value) == null ? void 0 : e.summary) || ((o = r.value) == null ? void 0 : o.path);
31
+ });
32
+ return (e, o) => t(r) ? (s(), O("li", {
33
+ key: t(n)(e.transformedOperation, e.tag),
34
+ class: "contents"
35
+ }, [
36
+ e.isCollapsed ? (s(), g(t(T), {
37
+ key: 0,
38
+ class: "sr-only",
39
+ level: 3
40
+ }, {
41
+ default: k(() => [
42
+ C(i(f.value) + " (Hidden) ", 1)
43
+ ]),
44
+ _: 1
45
+ })) : p("", !0),
46
+ m("a", {
47
+ class: "endpoint",
48
+ href: `#${t(n)(e.transformedOperation, e.tag)}`,
49
+ onClick: o[0] || (o[0] = v((D) => d(e.transformedOperation), ["prevent"]))
50
+ }, [
51
+ y(t($), {
52
+ class: "endpoint-method",
53
+ method: t(r).method
54
+ }, null, 8, ["method"]),
55
+ m("span", {
56
+ class: B(["endpoint-path", {
57
+ deprecated: t(I)(t(r))
58
+ }])
59
+ }, i(t(r).path), 3)
60
+ ], 8, b)
61
+ ])) : p("", !0);
62
+ }
63
+ });
64
+ export {
65
+ F as default
66
+ };
@@ -1,70 +1,10 @@
1
- import type { Spec, Tag } from '@scalar/types/legacy';
2
- import { nextTick } from 'vue';
1
+ import type { Tag } from '@scalar/types/legacy';
3
2
  type __VLS_Props = {
4
3
  id?: string;
5
4
  tag: Tag;
6
- spec: Spec;
5
+ headerId?: string;
6
+ isCollapsed?: boolean;
7
7
  };
8
- declare function __VLS_template(): {
9
- attrs: Partial<{}>;
10
- slots: {
11
- default?(_: {}): any;
12
- };
13
- refs: {
14
- sectionContainerRef: ({
15
- $: import("vue").ComponentInternalInstance;
16
- $data: {};
17
- $props: Partial<{}> & Omit<{} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
18
- $attrs: {
19
- [x: string]: unknown;
20
- };
21
- $refs: {
22
- [x: string]: unknown;
23
- };
24
- $slots: Readonly<{
25
- [name: string]: import("vue").Slot<any> | undefined;
26
- }>;
27
- $root: import("vue").ComponentPublicInstance | null;
28
- $parent: import("vue").ComponentPublicInstance | null;
29
- $host: Element | null;
30
- $emit: (event: string, ...args: any[]) => void;
31
- $el: HTMLDivElement;
32
- $options: import("vue").ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & {
33
- beforeCreate?: (() => void) | (() => void)[];
34
- created?: (() => void) | (() => void)[];
35
- beforeMount?: (() => void) | (() => void)[];
36
- mounted?: (() => void) | (() => void)[];
37
- beforeUpdate?: (() => void) | (() => void)[];
38
- updated?: (() => void) | (() => void)[];
39
- activated?: (() => void) | (() => void)[];
40
- deactivated?: (() => void) | (() => void)[];
41
- beforeDestroy?: (() => void) | (() => void)[];
42
- beforeUnmount?: (() => void) | (() => void)[];
43
- destroyed?: (() => void) | (() => void)[];
44
- unmounted?: (() => void) | (() => void)[];
45
- renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
46
- renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
47
- errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void)[];
48
- };
49
- $forceUpdate: () => void;
50
- $nextTick: typeof nextTick;
51
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import("@vue/reactivity").OnCleanup]) => any : (...args: [any, any, import("@vue/reactivity").OnCleanup]) => any, options?: import("vue").WatchOptions): import("vue").WatchStopHandle;
52
- } & Readonly<{}> & Omit<Readonly<{}> & Readonly<{}>, never> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {} & {
53
- $slots: {
54
- default?(_: {}): any;
55
- };
56
- }) | null;
57
- contentsRef: HTMLDivElement;
58
- };
59
- rootEl: HTMLDivElement;
60
- };
61
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
62
- declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
63
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
8
+ 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, {}, any>;
64
9
  export default _default;
65
- type __VLS_WithTemplateSlots<T, S> = T & {
66
- new (): {
67
- $slots: S;
68
- };
69
- };
70
10
  //# sourceMappingURL=Tag.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Tag.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/Tag.vue"],"names":[],"mappings":"AA0EA,OAAO,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAA;AACrD,OAAO,EAAY,QAAQ,EAAc,MAAM,KAAK,CAAA;AASpD,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,GAAG,CAAA;IACR,IAAI,EAAE,IAAI,CAAA;CACX,CAAC;AAgCF,iBAAS,cAAc;WAyFT,OAAO,IAA6B;;yBAVpB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA4Dk/gB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;EA7CxohB;AAmBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,6SAOnB,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":"Tag.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/Tag.vue"],"names":[],"mappings":"AA+DA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAmB/C,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,GAAG,CAAA;IACR,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;AA2JF,wBAOG"}
@@ -1,7 +1,89 @@
1
- import o from "./Tag.vue2.js";
2
- /* empty css */
3
- import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-3a840364"]]);
1
+ import { defineComponent as s, computed as c, openBlock as n, createBlock as i, unref as e, withCtx as o, createVNode as t, createTextVNode as d, toDisplayString as g, createCommentVNode as C } from "vue";
2
+ import { ScalarMarkdown as S } from "@scalar/components";
3
+ import v from "../../ScreenReader.vue.js";
4
+ import { useNavState as N } from "../../../hooks/useNavState.js";
5
+ import _ from "./OperationsList.vue.js";
6
+ import h from "../../Section/Section.vue.js";
7
+ import k from "../../Section/SectionHeader.vue.js";
8
+ import y from "../../Anchor/Anchor.vue.js";
9
+ import I from "../../Section/SectionHeaderTag.vue.js";
10
+ import T from "../../Section/SectionContent.vue.js";
11
+ import w from "../../Section/SectionColumns.vue.js";
12
+ import m from "../../Section/SectionColumn.vue.js";
13
+ const q = /* @__PURE__ */ s({
14
+ __name: "Tag",
15
+ props: {
16
+ id: {},
17
+ tag: {},
18
+ headerId: {},
19
+ isCollapsed: { type: Boolean }
20
+ },
21
+ setup(p) {
22
+ const l = p, { getTagId: u } = N(), f = c(() => l.tag["x-displayName"] ?? l.tag.name);
23
+ return (a, r) => (n(), i(e(h), {
24
+ id: a.id,
25
+ label: a.tag.name.toUpperCase(),
26
+ role: "none"
27
+ }, {
28
+ default: o(() => [
29
+ t(e(k), null, {
30
+ default: o(() => [
31
+ t(e(y), {
32
+ id: e(u)(a.tag)
33
+ }, {
34
+ default: o(() => [
35
+ t(e(I), {
36
+ id: a.headerId,
37
+ level: 2
38
+ }, {
39
+ default: o(() => [
40
+ d(g(f.value) + " ", 1),
41
+ a.isCollapsed ? (n(), i(v, { key: 0 }, {
42
+ default: o(() => r[0] || (r[0] = [
43
+ d(" (Collapsed)")
44
+ ])),
45
+ _: 1
46
+ })) : C("", !0)
47
+ ]),
48
+ _: 1
49
+ }, 8, ["id"])
50
+ ]),
51
+ _: 1
52
+ }, 8, ["id"])
53
+ ]),
54
+ _: 1
55
+ }),
56
+ t(e(T), null, {
57
+ default: o(() => [
58
+ t(e(w), null, {
59
+ default: o(() => [
60
+ t(e(m), null, {
61
+ default: o(() => [
62
+ t(e(S), {
63
+ clamp: a.isCollapsed ? "7" : !1,
64
+ value: a.tag.description,
65
+ withImages: ""
66
+ }, null, 8, ["clamp", "value"])
67
+ ]),
68
+ _: 1
69
+ }),
70
+ t(e(m), null, {
71
+ default: o(() => [
72
+ t(_, { tag: a.tag }, null, 8, ["tag"])
73
+ ]),
74
+ _: 1
75
+ })
76
+ ]),
77
+ _: 1
78
+ })
79
+ ]),
80
+ _: 1
81
+ })
82
+ ]),
83
+ _: 1
84
+ }, 8, ["id", "label"]));
85
+ }
86
+ });
5
87
  export {
6
- p as default
88
+ q as default
7
89
  };
@@ -1,65 +1,4 @@
1
- import { defineComponent as k, ref as u, useId as y, computed as f, openBlock as n, createBlock as r, unref as a, withCtx as C, createCommentVNode as b, createElementBlock as S, renderSlot as v, nextTick as T } from "vue";
2
- import I from "../../ShowMoreButton.vue.js";
3
- import w from "./Endpoints.vue.js";
4
- import B from "../../Section/SectionContainer.vue.js";
5
- import { useSidebar as R } from "../../../hooks/useSidebar.js";
6
- import { useNavState as N } from "../../../hooks/useNavState.js";
7
- const V = /* @__PURE__ */ k({
8
- __name: "Tag",
9
- props: {
10
- id: {},
11
- tag: {},
12
- spec: {}
13
- },
14
- setup(m) {
15
- const o = m, p = u(), s = u(), l = y(), { collapsedSidebarItems: i } = R(), { getTagId: d } = N(), c = f(
16
- () => {
17
- var e, t;
18
- return ((e = o.spec.tags) == null ? void 0 : e.length) && ((t = o.spec.tags) == null ? void 0 : t.length) > 1;
19
- }
20
- ), g = f(
21
- () => {
22
- var e, t;
23
- return c.value || ((e = o.tag) == null ? void 0 : e.name) !== "default" || ((t = o.tag) == null ? void 0 : t.description) !== "";
24
- }
25
- );
26
- async function h() {
27
- var e, t;
28
- await T(), (t = (e = s.value) == null ? void 0 : e.querySelector("button")) == null || t.focus();
29
- }
30
- return (e, t) => (n(), r(a(B), {
31
- ref_key: "sectionContainerRef",
32
- ref: p,
33
- "aria-labelledby": a(l),
34
- class: "tag-section-container",
35
- role: "region"
36
- }, {
37
- default: C(() => [
38
- g.value ? (n(), r(w, {
39
- key: 0,
40
- id: e.id,
41
- headerId: a(l),
42
- isCollapsed: !a(i)[a(d)(e.tag)],
43
- tag: e.tag
44
- }, null, 8, ["id", "headerId", "isCollapsed", "tag"])) : b("", !0),
45
- !a(i)[a(d)(e.tag)] && c.value ? (n(), r(I, {
46
- key: 1,
47
- id: e.id ?? "",
48
- "aria-label": `Show all ${e.tag["x-displayName"] ?? e.tag.name} endpoints`,
49
- onClick: h
50
- }, null, 8, ["id", "aria-label"])) : (n(), S("div", {
51
- key: 2,
52
- ref_key: "contentsRef",
53
- ref: s,
54
- class: "contents"
55
- }, [
56
- v(e.$slots, "default", {}, void 0, !0)
57
- ], 512))
58
- ]),
59
- _: 3
60
- }, 8, ["aria-labelledby"]));
61
- }
62
- });
1
+ import f from "./Tag.vue.js";
63
2
  export {
64
- V as default
3
+ f as default
65
4
  };
@@ -1 +1 @@
1
- {"version":3,"file":"TagList.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/TagList.vue"],"names":[],"mappings":"AA4EA,OAAO,KAAK,EAAE,IAAI,EAAE,GAAG,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAWhE,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,OAAO,EAAE,CAAA;IACf,IAAI,EAAE,IAAI,CAAA;IACV,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;CAC9B,CAAC;;AAkIF,wBAMG"}
1
+ {"version":3,"file":"TagList.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/TagList.vue"],"names":[],"mappings":"AA6EA,OAAO,KAAK,EAAE,IAAI,EAAE,GAAG,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAYhE,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,OAAO,EAAE,CAAA;IACf,IAAI,EAAE,IAAI,CAAA;IACV,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;CAC9B,CAAC;;AAkIF,wBAMG"}
@@ -1,8 +1,8 @@
1
- import { defineComponent as C, computed as p, openBlock as s, createElementBlock as f, Fragment as y, renderList as v, createBlock as l, unref as e, withCtx as i, resolveDynamicComponent as T, createVNode as _ } from "vue";
1
+ import { defineComponent as C, computed as p, openBlock as s, createElementBlock as f, Fragment as y, renderList as v, createBlock as c, unref as e, withCtx as i, resolveDynamicComponent as T, createVNode as _ } from "vue";
2
2
  import { useActiveEntities as $ } from "@scalar/api-client/store";
3
3
  import { ScalarErrorBoundary as b } from "@scalar/components";
4
4
  import E from "./TagAccordion.vue.js";
5
- import O from "./Tag.vue.js";
5
+ import O from "./TagSection.vue.js";
6
6
  import L from "../Lazy/Lazy.vue2.js";
7
7
  import A from "../../../features/Operation/Operation.vue.js";
8
8
  import { useNavState as N } from "../../../hooks/useNavState.js";
@@ -15,25 +15,25 @@ const K = /* @__PURE__ */ C({
15
15
  layout: {}
16
16
  },
17
17
  setup(h) {
18
- const n = h, { getOperationId: c, getTagId: r, hash: z } = N(), { collapsedSidebarItems: m } = V(), { activeCollection: I, activeServer: g } = $(), k = p(
18
+ const n = h, { getOperationId: l, getTagId: r, hash: z } = N(), { collapsedSidebarItems: m } = V(), { activeCollection: I, activeServer: S } = $(), g = p(
19
19
  () => n.layout === "classic" ? E : O
20
- ), S = p(
20
+ ), k = p(
21
21
  () => n.tags.findIndex((o) => !m[r(o)]) + 1
22
- ), u = (o) => n.layout !== "classic" && !z.value.startsWith("model") && o > S.value;
23
- return (o, w) => (s(!0), f(y, null, v(o.tags, (t, d) => (s(), l(e(L), {
22
+ ), u = (o) => n.layout !== "classic" && !z.value.startsWith("model") && o > k.value;
23
+ return (o, w) => (s(!0), f(y, null, v(o.tags, (t, d) => (s(), c(e(L), {
24
24
  id: e(r)(t),
25
25
  key: e(r)(t),
26
26
  isLazy: u(d)
27
27
  }, {
28
28
  default: i(() => [
29
- (s(), l(T(k.value), {
29
+ (s(), c(T(g.value), {
30
30
  id: e(r)(t),
31
31
  spec: o.spec,
32
32
  tag: t
33
33
  }, {
34
34
  default: i(() => [
35
- (s(!0), f(y, null, v(t.operations, (a, B) => (s(), l(e(L), {
36
- id: e(c)(a, t),
35
+ (s(!0), f(y, null, v(t.operations, (a, B) => (s(), c(e(L), {
36
+ id: e(l)(a, t),
37
37
  key: `${a.httpVerb}-${a.operationId}`,
38
38
  isLazy: u(d) || e(m)[e(r)(t)] && B > 0
39
39
  }, {
@@ -41,10 +41,10 @@ const K = /* @__PURE__ */ C({
41
41
  _(e(b), null, {
42
42
  default: i(() => [
43
43
  _(e(A), {
44
- id: e(c)(a, t),
44
+ id: e(l)(a, t),
45
45
  collection: e(I),
46
46
  layout: o.layout,
47
- server: e(g),
47
+ server: e(S),
48
48
  transformedOperation: a
49
49
  }, null, 8, ["id", "collection", "layout", "server", "transformedOperation"])
50
50
  ]),