@scalar/api-reference 1.25.99 → 1.25.100

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,42 +1,42 @@
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";
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";
4
4
  import f from "./Schema.vue.js";
5
- import x from "./SchemaPropertyHeading.vue.js";
6
- const ee = {
5
+ import ee from "./SchemaPropertyHeading.vue.js";
6
+ const le = {
7
7
  key: 0,
8
8
  class: "property-description"
9
- }, le = {
9
+ }, te = {
10
10
  key: 1,
11
11
  class: "property-description"
12
- }, te = {
12
+ }, ae = {
13
13
  key: 2,
14
14
  class: "property-example custom-scroll"
15
- }, ae = { class: "property-example-value" }, oe = {
15
+ }, oe = { class: "property-example-value" }, se = {
16
16
  key: 3,
17
17
  class: "property-example custom-scroll"
18
- }, se = { class: "property-example-label" }, ne = {
18
+ }, ne = { class: "property-example-label" }, re = {
19
19
  key: 4,
20
20
  class: "property-enum"
21
- }, re = {
21
+ }, ie = {
22
22
  key: 0,
23
23
  class: "property-list"
24
- }, ie = { class: "property-heading" }, ue = { class: "property-name" }, pe = { class: "property-description" }, de = {
24
+ }, ue = { class: "property-heading" }, pe = { class: "property-name" }, de = { class: "property-description" }, me = {
25
25
  key: 1,
26
26
  class: "property-enum-values"
27
27
  }, ce = {
28
28
  key: 5,
29
29
  class: "children"
30
- }, me = {
30
+ }, ve = {
31
31
  key: 0,
32
32
  class: "children"
33
- }, ve = {
33
+ }, ye = {
34
34
  key: 0,
35
35
  class: "property-rule"
36
- }, ye = {
36
+ }, fe = {
37
37
  key: 1,
38
38
  class: "property-rule"
39
- }, Ee = /* @__PURE__ */ K({
39
+ }, Se = /* @__PURE__ */ Q({
40
40
  __name: "SchemaProperty",
41
41
  props: {
42
42
  value: {},
@@ -47,8 +47,8 @@ const ee = {
47
47
  description: {},
48
48
  additional: { type: Boolean }
49
49
  },
50
- setup(M) {
51
- const h = M, S = {
50
+ setup($) {
51
+ const h = $, B = {
52
52
  integer: {
53
53
  _default: "Integer numbers.",
54
54
  int32: "Signed 32-bit integers (commonly used integer type).",
@@ -61,102 +61,109 @@ const ee = {
61
61
  byte: "base64-encoded characters, for example, U3dhZ2dlciByb2Nrcw==",
62
62
  binary: "binary data, used to describe files"
63
63
  }
64
- }, B = function(e, o) {
64
+ }, D = function(e, o) {
65
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) {
66
+ }, C = function(e) {
67
+ return !e || !B[e.type] ? null : B[e.type][e.format || "_default"];
68
+ }, m = function(e) {
69
69
  var o;
70
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)
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)
73
+ ), K = y(
74
+ () => m(h.value).slice(j.value)
75
75
  );
76
76
  return (e, o) => {
77
- var j, w, N, O, q, F, I, L, V, z, H, R;
77
+ var w, N, O, q, F, I, L, V, z, H, R, T, U;
78
78
  return l(), t("div", {
79
- class: Z(["property", [
79
+ class: M(["property", [
80
80
  `property--level-${e.level}`,
81
81
  {
82
82
  "property--compact": e.compact,
83
- "property--deprecated": (j = e.value) == null ? void 0 : j.deprecated
83
+ "property--deprecated": (w = e.value) == null ? void 0 : w.deprecated
84
84
  }
85
85
  ]])
86
86
  }, [
87
- n(x, {
87
+ n(ee, {
88
88
  additional: e.additional,
89
- enum: c(e.value).length > 1,
89
+ enum: m(e.value).length > 1,
90
90
  required: e.required,
91
91
  value: e.value
92
- }, Q({ _: 2 }, [
92
+ }, W({ _: 2 }, [
93
93
  e.name ? {
94
94
  name: "name",
95
- fn: y(() => [
96
- A(i(e.name), 1)
95
+ fn: v(() => [
96
+ b(r(e.name), 1)
97
97
  ]),
98
98
  key: "0"
99
+ } : void 0,
100
+ (N = e.value) != null && N.example ? {
101
+ name: "example",
102
+ fn: v(() => [
103
+ b(" Example: " + r(e.value.example), 1)
104
+ ]),
105
+ key: "1"
99
106
  } : void 0
100
107
  ]), 1032, ["additional", "enum", "required", "value"]),
101
- B(e.description, e.value) ? (l(), t("div", ee, [
102
- n(p(E), {
103
- value: B(e.description, e.value)
108
+ D(e.description, e.value) ? (l(), t("div", le, [
109
+ n(p(S), {
110
+ value: D(e.description, e.value)
104
111
  }, null, 8, ["value"])
105
- ])) : D(e.value) ? (l(), t("div", le, [
106
- n(p(E), {
107
- value: D(e.value) || ""
112
+ ])) : C(e.value) ? (l(), t("div", te, [
113
+ n(p(S), {
114
+ value: C(e.value) || ""
108
115
  }, null, 8, ["value"])
109
116
  ])) : 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)
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)
113
120
  ])) : 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", {
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", {
117
124
  key: u,
118
125
  class: "property-example-value"
119
- }, i(a), 1))), 128))
126
+ }, r(a), 1))), 128))
120
127
  ])) : 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", {
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", {
124
131
  key: a,
125
132
  class: "property"
126
133
  }, [
127
- m("div", ie, [
128
- m("div", ue, i(a), 1)
134
+ c("div", ue, [
135
+ c("div", pe, r(a), 1)
129
136
  ]),
130
- m("div", pe, [
131
- n(p(E), {
137
+ c("div", de, [
138
+ n(p(S), {
132
139
  value: e.value["x-enumDescriptions"][a]
133
140
  }, null, 8, ["value"])
134
141
  ])
135
142
  ]))), 128))
136
- ])) : (l(), t("ul", de, [
137
- (l(!0), t(r, null, d(G.value, (a) => (l(), t("li", {
143
+ ])) : (l(), t("ul", me, [
144
+ (l(!0), t(i, null, d(J.value, (a) => (l(), t("li", {
138
145
  key: a,
139
146
  class: "property-enum-value"
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", {
147
+ }, r(a), 1))), 128)),
148
+ P.value ? (l(), E(p(X), { key: 0 }, {
149
+ default: v(({ open: a }) => [
150
+ n(p(Y), null, {
151
+ default: v(() => [
152
+ (l(!0), t(i, null, d(K.value, (u) => (l(), t("li", {
146
153
  key: u,
147
154
  class: "property-enum-value"
148
- }, i(u), 1))), 128))
155
+ }, r(u), 1))), 128))
149
156
  ]),
150
157
  _: 1
151
158
  }),
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 }]),
159
+ n(p(_), { class: "enum-toggle-button" }, {
160
+ default: v(() => [
161
+ n(p(x), {
162
+ class: M(["enum-toggle-button-icon", { "enum-toggle-button-icon--open": a }]),
156
163
  icon: "Add",
157
164
  size: "sm"
158
165
  }, null, 8, ["class"]),
159
- A(" " + i(a ? "Hide values" : "Show all values"), 1)
166
+ b(" " + r(a ? "Hide values" : "Show all values"), 1)
160
167
  ]),
161
168
  _: 2
162
169
  }, 1024)
@@ -165,15 +172,15 @@ const ee = {
165
172
  })) : s("", !0)
166
173
  ]))
167
174
  ])) : 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, [
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, [
169
176
  n(f, {
170
177
  compact: e.compact,
171
178
  level: e.level + 1,
172
179
  value: e.value
173
180
  }, null, 8, ["compact", "level", "value"])
174
181
  ])) : 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, [
182
+ (U = e.value) != null && U.items ? (l(), t(i, { key: 6 }, [
183
+ ["object"].includes(e.value.items.type) ? (l(), t("div", ve, [
177
184
  n(f, {
178
185
  compact: e.compact,
179
186
  level: e.level + 1,
@@ -181,19 +188,19 @@ const ee = {
181
188
  }, null, 8, ["compact", "level", "value"])
182
189
  ])) : s("", !0)
183
190
  ], 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, {
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
196
  key: k,
190
197
  compact: e.compact,
191
198
  level: e.level + 1,
192
199
  value: g
193
200
  }, null, 8, ["compact", "level", "value"]))), 128))
194
201
  ])) : 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, {
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, {
197
204
  key: k,
198
205
  compact: e.compact,
199
206
  level: e.level + 1,
@@ -207,5 +214,5 @@ const ee = {
207
214
  }
208
215
  });
209
216
  export {
210
- Ee as default
217
+ Se as default
211
218
  };
@@ -8,14 +8,15 @@ declare function __VLS_template(): {
8
8
  attrs: Partial<{}>;
9
9
  slots: {
10
10
  name?(_: {}): any;
11
+ example?(_: {}): any;
11
12
  };
12
13
  refs: {};
13
- rootEl: HTMLDivElement;
14
+ rootEl: any;
14
15
  };
15
16
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
16
17
  declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
17
18
  required: boolean;
18
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
19
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
19
20
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
20
21
  export default _default;
21
22
  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":"AAgNA,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
+ {"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,7 +1,7 @@
1
1
  import o from "./SchemaPropertyHeading.vue2.js";
2
2
  /* empty css */
3
- import r from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-67b44dbd"]]);
3
+ import e from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ e(o, [["__scopeId", "data-v-8f6978ee"]]);
5
5
  export {
6
6
  m as default
7
7
  };