@scalar/api-reference 1.25.100 → 1.25.102

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":"SchemaProperty.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaProperty.vue"],"names":[],"mappings":"AA+aA,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;;AAuYrB,0BAQG"}
1
+ {"version":3,"file":"SchemaProperty.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaProperty.vue"],"names":[],"mappings":"AAmbA,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;;AA8YrB,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-c75bd9a9"]]);
4
+ const a = /* @__PURE__ */ r(o, [["__scopeId", "data-v-96221229"]]);
5
5
  export {
6
- p as default
6
+ a as default
7
7
  };
@@ -1,42 +1,42 @@
1
- import { defineComponent as Q, computed as y, openBlock as l, createElementBlock as t, normalizeClass as M, createVNode as n, createSlots as W, withCtx as v, createTextVNode as b, toDisplayString as r, unref as p, createCommentVNode as s, createElementVNode as c, Fragment as i, renderList as d, createBlock as E } from "vue";
2
- import { Disclosure as X, DisclosurePanel as Y, DisclosureButton as _ } from "@headlessui/vue";
3
- import { ScalarMarkdown as S, ScalarIcon as x } from "@scalar/components";
1
+ import { defineComponent as W, computed as y, openBlock as l, createElementBlock as t, normalizeClass as Z, createVNode as r, createSlots as X, withCtx as v, createTextVNode as b, toDisplayString as s, unref as p, createCommentVNode as n, createElementVNode as c, Fragment as i, renderList as d, createBlock as E } from "vue";
2
+ import { Disclosure as Y, DisclosurePanel as _, DisclosureButton as x } from "@headlessui/vue";
3
+ import { ScalarMarkdown as S, ScalarIcon as ee } from "@scalar/components";
4
4
  import f from "./Schema.vue.js";
5
- import ee from "./SchemaPropertyHeading.vue.js";
6
- const le = {
5
+ import le from "./SchemaPropertyHeading.vue.js";
6
+ const te = {
7
7
  key: 0,
8
8
  class: "property-description"
9
- }, te = {
9
+ }, ae = {
10
10
  key: 1,
11
11
  class: "property-description"
12
- }, ae = {
12
+ }, oe = {
13
13
  key: 2,
14
14
  class: "property-example custom-scroll"
15
- }, oe = { class: "property-example-value" }, se = {
15
+ }, ne = { class: "property-example-value" }, re = {
16
16
  key: 3,
17
17
  class: "property-example custom-scroll"
18
- }, ne = { class: "property-example-label" }, re = {
18
+ }, se = { class: "property-example-label" }, ie = {
19
19
  key: 4,
20
20
  class: "property-enum"
21
- }, ie = {
21
+ }, ue = {
22
22
  key: 0,
23
23
  class: "property-list"
24
- }, ue = { class: "property-heading" }, pe = { class: "property-name" }, de = { class: "property-description" }, me = {
24
+ }, pe = { class: "property-heading" }, de = { class: "property-name" }, me = { class: "property-description" }, ce = {
25
25
  key: 1,
26
26
  class: "property-enum-values"
27
- }, ce = {
27
+ }, ve = {
28
28
  key: 5,
29
29
  class: "children"
30
- }, ve = {
30
+ }, ye = {
31
31
  key: 0,
32
32
  class: "children"
33
- }, ye = {
33
+ }, fe = {
34
34
  key: 0,
35
35
  class: "property-rule"
36
- }, fe = {
36
+ }, he = {
37
37
  key: 1,
38
38
  class: "property-rule"
39
- }, Se = /* @__PURE__ */ Q({
39
+ }, Be = /* @__PURE__ */ W({
40
40
  __name: "SchemaProperty",
41
41
  props: {
42
42
  value: {},
@@ -47,8 +47,8 @@ const le = {
47
47
  description: {},
48
48
  additional: { type: Boolean }
49
49
  },
50
- setup($) {
51
- const h = $, B = {
50
+ setup(M) {
51
+ const h = M, B = {
52
52
  integer: {
53
53
  _default: "Integer numbers.",
54
54
  int32: "Signed 32-bit integers (commonly used integer type).",
@@ -61,22 +61,22 @@ const le = {
61
61
  byte: "base64-encoded characters, for example, U3dhZ2dlciByb2Nrcw==",
62
62
  binary: "binary data, used to describe files"
63
63
  }
64
- }, D = function(e, o) {
65
- return o != null && o.properties || o != null && o.additionalProperties ? null : e || (o == null ? void 0 : o.description) || null;
64
+ }, D = function(e, a) {
65
+ return a != null && a.properties || a != null && a.additionalProperties ? null : e || (a == null ? void 0 : a.description) || null;
66
66
  }, C = function(e) {
67
67
  return !e || !B[e.type] ? null : B[e.type][e.format || "_default"];
68
68
  }, m = 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
- }, G = ["oneOf", "anyOf", "allOf", "not"], P = y(() => m(h.value).length > 9), j = y(() => P.value ? 5 : 9), J = y(
72
- () => m(h.value).slice(0, j.value)
69
+ var a;
70
+ return (e == null ? void 0 : e.enum) || ((a = e == null ? void 0 : e.items) == null ? void 0 : a.enum) || [];
71
+ }, G = ["oneOf", "anyOf", "allOf", "not"], j = y(() => m(h.value).length > 9), P = y(() => j.value ? 5 : 9), J = y(
72
+ () => m(h.value).slice(0, P.value)
73
73
  ), K = y(
74
- () => m(h.value).slice(j.value)
75
- );
76
- return (e, o) => {
77
- var w, N, O, q, F, I, L, V, z, H, R, T, U;
74
+ () => m(h.value).slice(P.value)
75
+ ), Q = (e) => Array.isArray(e) ? `[${e.map((a) => `"${a.trim()}"`).join(", ")}]` : e;
76
+ return (e, a) => {
77
+ var w, N, O, q, F, A, I, L, V, $, z, H, R;
78
78
  return l(), t("div", {
79
- class: M(["property", [
79
+ class: Z(["property", [
80
80
  `property--level-${e.level}`,
81
81
  {
82
82
  "property--compact": e.compact,
@@ -84,129 +84,129 @@ const le = {
84
84
  }
85
85
  ]])
86
86
  }, [
87
- n(ee, {
87
+ r(le, {
88
88
  additional: e.additional,
89
- enum: m(e.value).length > 1,
89
+ enum: m(e.value).length > 0,
90
90
  required: e.required,
91
91
  value: e.value
92
- }, W({ _: 2 }, [
92
+ }, X({ _: 2 }, [
93
93
  e.name ? {
94
94
  name: "name",
95
95
  fn: v(() => [
96
- b(r(e.name), 1)
96
+ b(s(e.name), 1)
97
97
  ]),
98
98
  key: "0"
99
99
  } : void 0,
100
100
  (N = e.value) != null && N.example ? {
101
101
  name: "example",
102
102
  fn: v(() => [
103
- b(" Example: " + r(e.value.example), 1)
103
+ b(" Example: " + s(e.value.example), 1)
104
104
  ]),
105
105
  key: "1"
106
106
  } : void 0
107
107
  ]), 1032, ["additional", "enum", "required", "value"]),
108
- D(e.description, e.value) ? (l(), t("div", le, [
109
- n(p(S), {
108
+ D(e.description, e.value) ? (l(), t("div", te, [
109
+ r(p(S), {
110
110
  value: D(e.description, e.value)
111
111
  }, null, 8, ["value"])
112
- ])) : C(e.value) ? (l(), t("div", te, [
113
- n(p(S), {
112
+ ])) : C(e.value) ? (l(), t("div", ae, [
113
+ r(p(S), {
114
114
  value: C(e.value) || ""
115
115
  }, null, 8, ["value"])
116
- ])) : s("", !0),
117
- (O = e.value) != null && O.example || (F = (q = e.value) == null ? void 0 : q.items) != null && F.example ? (l(), t("div", ae, [
118
- o[0] || (o[0] = c("span", { class: "property-example-label" }, "Example", -1)),
119
- c("code", oe, r(e.value.example || ((I = e.value) == null ? void 0 : I.items.example)), 1)
120
- ])) : s("", !0),
121
- (L = e.value) != null && L.examples && typeof e.value.examples == "object" && Object.keys(e.value.examples).length > 0 ? (l(), t("div", se, [
122
- c("span", ne, r(Object.keys(e.value.examples).length === 1 ? "Example" : "Examples"), 1),
123
- (l(!0), t(i, null, d(e.value.examples, (a, u) => (l(), t("code", {
116
+ ])) : n("", !0),
117
+ (O = e.value) != null && O.example || (F = (q = e.value) == null ? void 0 : q.items) != null && F.example ? (l(), t("div", oe, [
118
+ a[0] || (a[0] = c("span", { class: "property-example-label" }, "Example", -1)),
119
+ c("code", ne, s(Q(e.value.example || ((A = e.value) == null ? void 0 : A.items.example))), 1)
120
+ ])) : n("", !0),
121
+ (I = e.value) != null && I.examples && typeof e.value.examples == "object" && Object.keys(e.value.examples).length > 0 ? (l(), t("div", re, [
122
+ c("span", se, s(Object.keys(e.value.examples).length === 1 ? "Example" : "Examples"), 1),
123
+ (l(!0), t(i, null, d(e.value.examples, (o, u) => (l(), t("code", {
124
124
  key: u,
125
125
  class: "property-example-value"
126
- }, r(a), 1))), 128))
127
- ])) : s("", !0),
128
- ((V = m(e.value)) == null ? void 0 : V.length) > 1 ? (l(), t("div", re, [
129
- (z = e.value) != null && z["x-enumDescriptions"] ? (l(), t("div", ie, [
130
- (l(!0), t(i, null, d(m(e.value), (a) => (l(), t("div", {
131
- key: a,
126
+ }, s(o), 1))), 128))
127
+ ])) : n("", !0),
128
+ ((L = m(e.value)) == null ? void 0 : L.length) > 0 ? (l(), t("div", ie, [
129
+ (V = e.value) != null && V["x-enumDescriptions"] ? (l(), t("div", ue, [
130
+ (l(!0), t(i, null, d(m(e.value), (o) => (l(), t("div", {
131
+ key: o,
132
132
  class: "property"
133
133
  }, [
134
- c("div", ue, [
135
- c("div", pe, r(a), 1)
134
+ c("div", pe, [
135
+ c("div", de, s(o), 1)
136
136
  ]),
137
- c("div", de, [
138
- n(p(S), {
139
- value: e.value["x-enumDescriptions"][a]
137
+ c("div", me, [
138
+ r(p(S), {
139
+ value: e.value["x-enumDescriptions"][o]
140
140
  }, null, 8, ["value"])
141
141
  ])
142
142
  ]))), 128))
143
- ])) : (l(), t("ul", me, [
144
- (l(!0), t(i, null, d(J.value, (a) => (l(), t("li", {
145
- key: a,
143
+ ])) : (l(), t("ul", ce, [
144
+ (l(!0), t(i, null, d(J.value, (o) => (l(), t("li", {
145
+ key: o,
146
146
  class: "property-enum-value"
147
- }, r(a), 1))), 128)),
148
- P.value ? (l(), E(p(X), { key: 0 }, {
149
- default: v(({ open: a }) => [
150
- n(p(Y), null, {
147
+ }, s(o), 1))), 128)),
148
+ j.value ? (l(), E(p(Y), { key: 0 }, {
149
+ default: v(({ open: o }) => [
150
+ r(p(_), null, {
151
151
  default: v(() => [
152
152
  (l(!0), t(i, null, d(K.value, (u) => (l(), t("li", {
153
153
  key: u,
154
154
  class: "property-enum-value"
155
- }, r(u), 1))), 128))
155
+ }, s(u), 1))), 128))
156
156
  ]),
157
157
  _: 1
158
158
  }),
159
- n(p(_), { class: "enum-toggle-button" }, {
159
+ r(p(x), { class: "enum-toggle-button" }, {
160
160
  default: v(() => [
161
- n(p(x), {
162
- class: M(["enum-toggle-button-icon", { "enum-toggle-button-icon--open": a }]),
161
+ r(p(ee), {
162
+ class: Z(["enum-toggle-button-icon", { "enum-toggle-button-icon--open": o }]),
163
163
  icon: "Add",
164
164
  size: "sm"
165
165
  }, null, 8, ["class"]),
166
- b(" " + r(a ? "Hide values" : "Show all values"), 1)
166
+ b(" " + s(o ? "Hide values" : "Show all values"), 1)
167
167
  ]),
168
168
  _: 2
169
169
  }, 1024)
170
170
  ]),
171
171
  _: 1
172
- })) : s("", !0)
172
+ })) : n("", !0)
173
173
  ]))
174
- ])) : s("", !0),
175
- ((H = e.value) == null ? void 0 : H.type) === "object" && ((R = e.value) != null && R.properties || (T = e.value) != null && T.additionalProperties) ? (l(), t("div", ce, [
176
- n(f, {
174
+ ])) : n("", !0),
175
+ (($ = e.value) == null ? void 0 : $.type) === "object" && ((z = e.value) != null && z.properties || (H = e.value) != null && H.additionalProperties) ? (l(), t("div", ve, [
176
+ r(f, {
177
177
  compact: e.compact,
178
178
  level: e.level + 1,
179
179
  value: e.value
180
180
  }, null, 8, ["compact", "level", "value"])
181
- ])) : s("", !0),
182
- (U = e.value) != null && U.items ? (l(), t(i, { key: 6 }, [
183
- ["object"].includes(e.value.items.type) ? (l(), t("div", ve, [
184
- n(f, {
181
+ ])) : n("", !0),
182
+ (R = e.value) != null && R.items ? (l(), t(i, { key: 6 }, [
183
+ ["object"].includes(e.value.items.type) ? (l(), t("div", ye, [
184
+ r(f, {
185
185
  compact: e.compact,
186
186
  level: e.level + 1,
187
187
  value: e.value.items
188
188
  }, null, 8, ["compact", "level", "value"])
189
- ])) : s("", !0)
190
- ], 64)) : s("", !0),
191
- (l(), t(i, null, d(G, (a) => {
192
- var u, Z, A;
193
- return l(), t(i, { key: a }, [
194
- (u = e.value) != null && u[a] ? (l(), t("div", ye, [
195
- (l(!0), t(i, null, d(e.value[a], (g, k) => (l(), E(f, {
189
+ ])) : n("", !0)
190
+ ], 64)) : n("", !0),
191
+ (l(), t(i, null, d(G, (o) => {
192
+ var u, T, U;
193
+ return l(), t(i, { key: o }, [
194
+ (u = e.value) != null && u[o] ? (l(), t("div", fe, [
195
+ (l(!0), t(i, null, d(e.value[o], (g, k) => (l(), E(f, {
196
196
  key: k,
197
197
  compact: e.compact,
198
198
  level: e.level + 1,
199
199
  value: g
200
200
  }, null, 8, ["compact", "level", "value"]))), 128))
201
- ])) : s("", !0),
202
- (A = (Z = e.value) == null ? void 0 : Z.items) != null && A[a] && e.level < 3 ? (l(), t("div", fe, [
203
- (l(!0), t(i, null, d(e.value.items[a], (g, k) => (l(), E(f, {
201
+ ])) : n("", !0),
202
+ (U = (T = e.value) == null ? void 0 : T.items) != null && U[o] && e.level < 3 ? (l(), t("div", he, [
203
+ (l(!0), t(i, null, d(e.value.items[o], (g, k) => (l(), E(f, {
204
204
  key: k,
205
205
  compact: e.compact,
206
206
  level: e.level + 1,
207
207
  value: g
208
208
  }, null, 8, ["compact", "level", "value"]))), 128))
209
- ])) : s("", !0)
209
+ ])) : n("", !0)
210
210
  ], 64);
211
211
  }), 64))
212
212
  ], 2);
@@ -214,5 +214,5 @@ const le = {
214
214
  }
215
215
  });
216
216
  export {
217
- Se as default
217
+ Be as default
218
218
  };
@@ -8,15 +8,14 @@ declare function __VLS_template(): {
8
8
  attrs: Partial<{}>;
9
9
  slots: {
10
10
  name?(_: {}): any;
11
- example?(_: {}): any;
12
11
  };
13
12
  refs: {};
14
- rootEl: any;
13
+ rootEl: HTMLDivElement;
15
14
  };
16
15
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
17
16
  declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
18
17
  required: boolean;
19
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
20
19
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
21
20
  export default _default;
22
21
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1 +1 @@
1
- {"version":3,"file":"SchemaPropertyHeading.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaPropertyHeading.vue"],"names":[],"mappings":"AA2NA,KAAK,WAAW,GAAG;IACf,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC3B,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,CAAC;AA0BJ,iBAAS,cAAc;WAkRT,OAAO,IAA6B;;sBATxB,GAAG;yBACC,GAAG;;;;EAahC;AAaD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;cAjUN,OAAO;6EAwUpB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"SchemaPropertyHeading.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaPropertyHeading.vue"],"names":[],"mappings":"AAiNA,KAAK,WAAW,GAAG;IACf,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC3B,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,CAAC;AA0BJ,iBAAS,cAAc;WA0QT,OAAO,IAA6B;;sBARxB,GAAG;;;;EAa5B;AAaD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;cAzTN,OAAO;wFAiUpB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,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 "./SchemaPropertyHeading.vue2.js";
2
2
  /* empty css */
3
- import e from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ e(o, [["__scopeId", "data-v-8f6978ee"]]);
3
+ import r from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const e = /* @__PURE__ */ r(o, [["__scopeId", "data-v-3cb6c79a"]]);
5
5
  export {
6
- m as default
6
+ e as default
7
7
  };