@scalar/api-client 2.3.24 → 2.3.26

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 (44) hide show
  1. package/CHANGELOG.md +43 -0
  2. package/dist/components/CodeInput/CodeInput.vue.d.ts +3 -0
  3. package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
  4. package/dist/components/CodeInput/CodeInput.vue.js +2 -2
  5. package/dist/components/CodeInput/CodeInput.vue2.js +73 -66
  6. package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts.map +1 -1
  7. package/dist/components/CommandPalette/CommandPaletteImport.vue.js +20 -20
  8. package/dist/components/DataTable/DataTableInput.vue.d.ts +6 -1
  9. package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
  10. package/dist/layouts/App/create-api-client-app.d.ts +54 -4
  11. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  12. package/dist/layouts/Modal/create-api-client-modal.d.ts +108 -8
  13. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
  14. package/dist/layouts/Web/create-api-client-web.d.ts +54 -4
  15. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
  16. package/dist/libs/create-client.d.ts +54 -4
  17. package/dist/libs/create-client.d.ts.map +1 -1
  18. package/dist/store/active-entities.d.ts +10 -0
  19. package/dist/store/active-entities.d.ts.map +1 -1
  20. package/dist/store/collections.d.ts +52 -2
  21. package/dist/store/collections.d.ts.map +1 -1
  22. package/dist/store/requests.d.ts +2 -2
  23. package/dist/store/security-schemes.d.ts.map +1 -1
  24. package/dist/store/store.d.ts +54 -4
  25. package/dist/store/store.d.ts.map +1 -1
  26. package/dist/store/tags.d.ts.map +1 -1
  27. package/dist/style.css +1 -1
  28. package/dist/views/Request/RequestSection/RequestParams.vue.d.ts.map +1 -1
  29. package/dist/views/Request/RequestSection/RequestParams.vue.js +66 -55
  30. package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts.map +1 -1
  31. package/dist/views/Request/RequestSection/RequestPathParams.vue.js +34 -23
  32. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts +2 -2
  33. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
  34. package/dist/views/Request/RequestSection/RequestTable.vue.js +2 -2
  35. package/dist/views/Request/RequestSection/RequestTable.vue2.js +90 -73
  36. package/dist/views/Request/RequestSection/RequestTableTooltip.vue.d.ts.map +1 -1
  37. package/dist/views/Request/RequestSection/RequestTableTooltip.vue.js +1 -1
  38. package/dist/views/Request/RequestSection/RequestTableTooltip.vue2.js +36 -36
  39. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  40. package/dist/views/Request/libs/index.d.ts +1 -0
  41. package/dist/views/Request/libs/index.d.ts.map +1 -1
  42. package/dist/views/Request/libs/index.js +17 -6
  43. package/dist/views/Request/libs/watch-mode.js +3 -3
  44. package/package.json +16 -16
@@ -1,18 +1,19 @@
1
- import { defineComponent as I, openBlock as r, createBlock as p, withCtx as n, createVNode as t, createTextVNode as c, toDisplayString as m, createElementBlock as f, Fragment as w, renderList as _, normalizeClass as V, unref as u, createElementVNode as i, createCommentVNode as g } from "vue";
2
- import { ScalarTooltip as z, ScalarIcon as B, ScalarButton as q } from "@scalar/components";
3
- import { RouterLink as D } from "vue-router";
4
- import x from "../../../components/CodeInput/CodeInput.vue.js";
5
- import E from "../../../components/DataTable/DataTable.vue.js";
6
- import v from "../../../components/DataTable/DataTableCell.vue.js";
7
- import G from "../../../components/DataTable/DataTableCheckbox.vue.js";
8
- import k from "../../../components/DataTable/DataTableHeader.vue.js";
9
- import h from "../../../components/DataTable/DataTableRow.vue.js";
10
- import { parameterIsInvalid as N, hasItemProperties as R } from "../libs/request.js";
11
- import P from "./RequestTableTooltip.vue.js";
12
- const j = { class: "text-c-2 filemask flex w-full max-w-[100%] items-end justify-end overflow-hidden p-1" }, O = ["onClick"], A = {
1
+ import { defineComponent as _, openBlock as d, createBlock as p, withCtx as n, createVNode as t, createTextVNode as f, toDisplayString as c, createElementBlock as b, Fragment as h, renderList as q, normalizeClass as v, unref as r, createElementVNode as i, createCommentVNode as k } from "vue";
2
+ import { ScalarTooltip as D, ScalarIcon as x, ScalarButton as B } from "@scalar/components";
3
+ import { ScalarIconTrash as E } from "@scalar/icons";
4
+ import { RouterLink as G } from "vue-router";
5
+ import R from "../../../components/CodeInput/CodeInput.vue.js";
6
+ import N from "../../../components/DataTable/DataTable.vue.js";
7
+ import y from "../../../components/DataTable/DataTableCell.vue.js";
8
+ import P from "../../../components/DataTable/DataTableCheckbox.vue.js";
9
+ import w from "../../../components/DataTable/DataTableHeader.vue.js";
10
+ import C from "../../../components/DataTable/DataTableRow.vue.js";
11
+ import { parameterIsInvalid as j, hasItemProperties as V } from "../libs/request.js";
12
+ import O from "./RequestTableTooltip.vue.js";
13
+ const A = { class: "text-c-2 filemask flex w-full max-w-[100%] items-end justify-end overflow-hidden p-1" }, K = ["onClick"], L = {
13
14
  key: 1,
14
15
  class: "p-0.5"
15
- }, le = /* @__PURE__ */ I({
16
+ }, ne = /* @__PURE__ */ _({
16
17
  __name: "RequestTable",
17
18
  props: {
18
19
  items: {},
@@ -27,68 +28,68 @@ const j = { class: "text-c-2 filemask flex w-full max-w-[100%] items-end justify
27
28
  label: {}
28
29
  },
29
30
  emits: ["updateRow", "toggleRow", "addRow", "deleteRow", "inputFocus", "inputBlur", "uploadFile", "removeFile"],
30
- setup(C, { emit: F }) {
31
- const b = C, s = F, U = ["", "", "36px"], y = (e, a, l) => {
32
- s("updateRow", e, a, l);
33
- }, $ = (e) => {
31
+ setup(F, { emit: U }) {
32
+ const m = F, s = U, $ = ["", "", "36px"], g = (e, o, l) => {
33
+ s("updateRow", e, o, l);
34
+ }, S = (e) => {
34
35
  s("uploadFile", e);
35
- }, S = (e) => Array.isArray(e.default) && e.default.length === 1 ? e.default[0] : e.default;
36
- return (e, a) => (r(), p(E, {
36
+ }, z = (e) => Array.isArray(e.default) && e.default.length === 1 ? e.default[0] : e.default, T = (e) => !!(e.key || e.value);
37
+ return (e, o) => (d(), p(N, {
37
38
  class: "group/table flex-1",
38
- columns: U
39
+ columns: $
39
40
  }, {
40
41
  default: n(() => [
41
- t(h, { class: "sr-only !block" }, {
42
+ t(C, { class: "sr-only !block" }, {
42
43
  default: n(() => [
43
- t(k, null, {
44
+ t(w, null, {
44
45
  default: n(() => [
45
- c(m(e.label) + " Enabled", 1)
46
+ f(c(e.label) + " Enabled", 1)
46
47
  ]),
47
48
  _: 1
48
49
  }),
49
- t(k, null, {
50
+ t(w, null, {
50
51
  default: n(() => [
51
- c(m(e.label) + " Key", 1)
52
+ f(c(e.label) + " Key", 1)
52
53
  ]),
53
54
  _: 1
54
55
  }),
55
- t(k, null, {
56
+ t(w, null, {
56
57
  default: n(() => [
57
- c(m(e.label) + " Value", 1)
58
+ f(c(e.label) + " Value", 1)
58
59
  ]),
59
60
  _: 1
60
61
  })
61
62
  ]),
62
63
  _: 1
63
64
  }),
64
- (r(!0), f(w, null, _(e.items, (l, d) => (r(), p(h, {
65
+ (d(!0), b(h, null, q(e.items, (l, u) => (d(), p(C, {
65
66
  id: l.key,
66
- key: d,
67
- class: V({
68
- alert: u(N)(l).value,
67
+ key: u,
68
+ class: v({
69
+ alert: r(j)(l).value,
69
70
  error: e.invalidParams && e.invalidParams.has(l.key)
70
71
  })
71
72
  }, {
72
73
  default: n(() => [
73
- e.isGlobal ? (r(), p(u(D), {
74
+ e.isGlobal ? (d(), p(r(G), {
74
75
  key: 0,
75
76
  class: "!border-r-1/2 border-t-1/2 text-c-2 flex items-center justify-center",
76
77
  to: l.route ?? {}
77
78
  }, {
78
79
  default: n(() => [
79
- a[5] || (a[5] = i("span", { class: "sr-only" }, "Global", -1)),
80
- t(u(z), {
80
+ o[5] || (o[5] = i("span", { class: "sr-only" }, "Global", -1)),
81
+ t(r(D), {
81
82
  as: "div",
82
83
  side: "top"
83
84
  }, {
84
85
  trigger: n(() => [
85
- t(u(B), {
86
+ t(r(x), {
86
87
  class: "text-c-1",
87
88
  icon: "Globe",
88
89
  size: "xs"
89
90
  })
90
91
  ]),
91
- content: n(() => a[4] || (a[4] = [
92
+ content: n(() => o[4] || (o[4] = [
92
93
  i("div", { class: "w-content bg-b-1 text-xxs text-c-1 z-100 pointer-events-none z-10 grid max-w-[320px] gap-1.5 rounded p-2 leading-5 shadow-lg" }, [
93
94
  i("div", { class: "text-c-1 flex items-center" }, [
94
95
  i("span", { class: "text-pretty" }, " Global cookies are shared across the whole workspace. ")
@@ -99,45 +100,47 @@ const j = { class: "text-c-2 filemask flex w-full max-w-[100%] items-end justify
99
100
  })
100
101
  ]),
101
102
  _: 2
102
- }, 1032, ["to"])) : (r(), p(G, {
103
+ }, 1032, ["to"])) : (d(), p(P, {
103
104
  key: 1,
104
105
  class: "!border-r-1/2",
105
- disabled: b.hasCheckboxDisabled,
106
+ disabled: m.hasCheckboxDisabled,
106
107
  modelValue: l.enabled,
107
- "onUpdate:modelValue": (o) => s("toggleRow", d, o)
108
+ "onUpdate:modelValue": (a) => s("toggleRow", u, a)
108
109
  }, null, 8, ["disabled", "modelValue", "onUpdate:modelValue"])),
109
- t(v, null, {
110
+ t(y, null, {
110
111
  default: n(() => [
111
- t(x, {
112
+ t(R, {
112
113
  disableCloseBrackets: "",
113
- disabled: b.isReadOnly,
114
+ disabled: m.isReadOnly,
114
115
  disableEnter: "",
115
116
  disableTabIndent: "",
117
+ lineWrapping: "",
116
118
  envVariables: e.envVariables,
117
119
  environment: e.environment,
118
120
  modelValue: l.key,
119
121
  placeholder: "Key",
120
122
  required: !!l.required,
121
123
  workspace: e.workspace,
122
- onBlur: a[0] || (a[0] = (o) => s("inputBlur")),
123
- onFocus: a[1] || (a[1] = (o) => s("inputFocus")),
124
- onSelectVariable: (o) => y(d, "key", o),
125
- "onUpdate:modelValue": (o) => s("updateRow", d, "key", o)
124
+ onBlur: o[0] || (o[0] = (a) => s("inputBlur")),
125
+ onFocus: o[1] || (o[1] = (a) => s("inputFocus")),
126
+ onSelectVariable: (a) => g(u, "key", a),
127
+ "onUpdate:modelValue": (a) => s("updateRow", u, "key", a)
126
128
  }, null, 8, ["disabled", "envVariables", "environment", "modelValue", "required", "workspace", "onSelectVariable", "onUpdate:modelValue"])
127
129
  ]),
128
130
  _: 2
129
131
  }, 1024),
130
- t(v, null, {
132
+ t(y, null, {
131
133
  default: n(() => [
132
- t(x, {
133
- class: V({
134
- "pr-6": u(R)(l)
135
- }),
134
+ t(R, {
135
+ class: v(
136
+ r(V)(l) ? "pr-6 group-hover:pr-10 group-has-[.cm-focused]:pr-10" : "group-hover:pr-6 group-has-[.cm-focused]:pr-6"
137
+ ),
136
138
  default: l.default,
137
139
  disableCloseBrackets: "",
138
- disabled: b.isReadOnly,
140
+ disabled: m.isReadOnly,
139
141
  disableEnter: "",
140
142
  disableTabIndent: "",
143
+ lineWrapping: "",
141
144
  enum: l.enum ?? [],
142
145
  envVariables: e.envVariables,
143
146
  environment: e.environment,
@@ -149,48 +152,62 @@ const j = { class: "text-c-2 filemask flex w-full max-w-[100%] items-end justify
149
152
  placeholder: "Value",
150
153
  type: l.type,
151
154
  workspace: e.workspace,
152
- onBlur: a[2] || (a[2] = (o) => s("inputBlur")),
153
- onFocus: a[3] || (a[3] = (o) => s("inputFocus")),
154
- onSelectVariable: (o) => y(d, "value", o),
155
- "onUpdate:modelValue": (o) => s("updateRow", d, "value", o)
155
+ onBlur: o[2] || (o[2] = (a) => s("inputBlur")),
156
+ onFocus: o[3] || (o[3] = (a) => s("inputFocus")),
157
+ onSelectVariable: (a) => g(u, "value", a),
158
+ "onUpdate:modelValue": (a) => s("updateRow", u, "value", a)
156
159
  }, {
157
160
  icon: n(() => [
158
- u(R)(l) ? (r(), p(P, {
161
+ T(l) && !l.required ? (d(), p(r(B), {
159
162
  key: 0,
160
- item: { ...l, default: S(l) }
161
- }, null, 8, ["item"])) : g("", !0)
163
+ class: v([{
164
+ "-mr-0.5": r(V)(l)
165
+ }, "text-c-2 hover:text-c-1 hover:bg-b-2 z-context hidden h-fit rounded p-1 group-hover:flex group-has-[.cm-focused]:flex"]),
166
+ size: "sm",
167
+ variant: "ghost",
168
+ onClick: (a) => s("deleteRow", u)
169
+ }, {
170
+ default: n(() => [
171
+ t(r(E), { class: "size-3.5" })
172
+ ]),
173
+ _: 2
174
+ }, 1032, ["class", "onClick"])) : k("", !0),
175
+ r(V)(l) ? (d(), p(O, {
176
+ key: 1,
177
+ item: { ...l, default: z(l) }
178
+ }, null, 8, ["item"])) : k("", !0)
162
179
  ]),
163
180
  _: 2
164
181
  }, 1032, ["class", "default", "disabled", "enum", "envVariables", "environment", "examples", "max", "min", "modelValue", "nullable", "type", "workspace", "onSelectVariable", "onUpdate:modelValue"])
165
182
  ]),
166
183
  _: 2
167
184
  }, 1024),
168
- e.showUploadButton ? (r(), p(v, {
185
+ e.showUploadButton ? (d(), p(y, {
169
186
  key: 2,
170
187
  class: "group/upload flex items-center justify-center whitespace-nowrap"
171
188
  }, {
172
189
  default: n(() => {
173
- var o;
190
+ var a;
174
191
  return [
175
- l.file ? (r(), f(w, { key: 0 }, [
176
- i("div", j, [
177
- i("span", null, m((o = l.file) == null ? void 0 : o.name), 1)
192
+ l.file ? (d(), b(h, { key: 0 }, [
193
+ i("div", A, [
194
+ i("span", null, c((a = l.file) == null ? void 0 : a.name), 1)
178
195
  ]),
179
196
  i("button", {
180
197
  class: "bg-b-2 centered-x centered-y absolute hidden w-[calc(100%_-_8px)] rounded p-0.5 text-center text-xs font-medium group-hover/upload:block",
181
198
  type: "button",
182
- onClick: (T) => s("removeFile", d)
183
- }, " Delete ", 8, O)
184
- ], 64)) : (r(), f("div", A, [
185
- t(u(q), {
199
+ onClick: (I) => s("removeFile", u)
200
+ }, " Delete ", 8, K)
201
+ ], 64)) : (d(), b("div", L, [
202
+ t(r(B), {
186
203
  class: "bg-b-2 hover:bg-b-3 text-c-2 h-fit border-0 py-px shadow-none",
187
204
  size: "sm",
188
205
  variant: "outlined",
189
- onClick: (T) => $(d)
206
+ onClick: (I) => S(u)
190
207
  }, {
191
208
  default: n(() => [
192
- a[6] || (a[6] = i("span", null, "Upload File", -1)),
193
- t(u(B), {
209
+ o[6] || (o[6] = i("span", null, "Upload File", -1)),
210
+ t(r(x), {
194
211
  class: "ml-1",
195
212
  icon: "Upload",
196
213
  size: "xs",
@@ -203,7 +220,7 @@ const j = { class: "text-c-2 filemask flex w-full max-w-[100%] items-end justify
203
220
  ];
204
221
  }),
205
222
  _: 2
206
- }, 1024)) : g("", !0)
223
+ }, 1024)) : k("", !0)
207
224
  ]),
208
225
  _: 2
209
226
  }, 1032, ["id", "class"]))), 128))
@@ -213,5 +230,5 @@ const j = { class: "text-c-2 filemask flex w-full max-w-[100%] items-end justify
213
230
  }
214
231
  });
215
232
  export {
216
- le as default
233
+ ne as default
217
234
  };
@@ -1 +1 @@
1
- {"version":3,"file":"RequestTableTooltip.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestTableTooltip.vue"],"names":[],"mappings":"AAkFA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAA;AAO9E,KAAK,WAAW,GAAG;IAAE,IAAI,EAAE,uBAAuB,CAAA;CAAE,CAAC;;AAgKrD,wBAOG"}
1
+ {"version":3,"file":"RequestTableTooltip.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestTableTooltip.vue"],"names":[],"mappings":"AAiFA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAA;AAO9E,KAAK,WAAW,GAAG;IAAE,IAAI,EAAE,uBAAuB,CAAA;CAAE,CAAC;;AAuKrD,wBAOG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./RequestTableTooltip.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-ffeb58c7"]]);
4
+ const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-f9282a5e"]]);
5
5
  export {
6
6
  r as default
7
7
  };
@@ -1,56 +1,56 @@
1
- import { defineComponent as u, computed as d, openBlock as t, createBlock as f, unref as n, withCtx as s, createElementVNode as m, createVNode as c, normalizeClass as b, createElementBlock as o, toDisplayString as r, createCommentVNode as i } from "vue";
2
- import { ScalarTooltip as g, ScalarIcon as h } from "@scalar/components";
3
- import { parameterIsInvalid as l } from "../libs/request.js";
4
- const v = ["aria-label", "role"], y = { class: "w-content bg-b-1 text-xxs text-c-1 pointer-events-none grid min-w-48 gap-1.5 rounded p-2 leading-5 shadow-lg" }, k = {
1
+ import { defineComponent as u, computed as c, openBlock as t, createBlock as n, unref as s, withCtx as m, createElementVNode as l, createElementBlock as i, toDisplayString as a, createCommentVNode as o } from "vue";
2
+ import { ScalarTooltip as g } from "@scalar/components";
3
+ import { ScalarIconWarning as f, ScalarIconInfo as y } from "@scalar/icons";
4
+ import { parameterIsInvalid as p } from "../libs/request.js";
5
+ const h = ["aria-label", "role"], v = { class: "w-content bg-b-1 text-xxs text-c-1 pointer-events-none grid min-w-48 gap-1.5 rounded p-2 leading-5 shadow-lg" }, k = {
5
6
  key: 0,
6
7
  class: "text-error-1"
7
- }, _ = {
8
+ }, b = {
8
9
  key: 1,
9
10
  class: "schema text-c-2 flex items-center"
10
- }, I = { key: 0 }, w = { key: 1 }, x = { key: 2 }, C = { key: 3 }, B = { key: 4 }, N = {
11
+ }, _ = { key: 0 }, I = { key: 1 }, w = { key: 2 }, x = { key: 3 }, C = { key: 4 }, S = {
11
12
  key: 2,
12
13
  class: "text-pretty text-sm leading-snug",
13
14
  style: { maxWidth: "16rem" }
14
- }, E = /* @__PURE__ */ u({
15
+ }, V = /* @__PURE__ */ u({
15
16
  __name: "RequestTableTooltip",
16
17
  props: {
17
18
  item: {}
18
19
  },
19
- setup(p) {
20
- const a = d(() => !!l(p.item).value);
21
- return (e, S) => (t(), f(n(g), {
20
+ setup(d) {
21
+ const r = c(() => !!p(d.item).value);
22
+ return (e, B) => (t(), n(s(g), {
22
23
  align: "start",
23
24
  class: "w-full pr-px",
24
25
  delay: 0,
25
26
  side: "left",
26
- triggerClass: "before:absolute before:content-[''] before:bg-gradient-to-r before:from-transparent before:to-b-1 group-[.alert]:before:to-b-alert group-[.error]:before:to-b-danger before:min-h-[calc(100%-4px)] before:pointer-events-none before:right-[23px] before:top-0.5 before:w-3 absolute h-full right-0 -outline-offset-1"
27
+ triggerClass: "py-1"
27
28
  }, {
28
- trigger: s(() => [
29
- m("div", {
30
- "aria-label": a.value ? "Input is invalid" : "More Information",
31
- class: "bg-b-1 mr-1 pl-1 pr-1.5 group-[.alert]:bg-transparent group-[.error]:bg-transparent",
32
- role: a.value ? "alert" : "none"
29
+ trigger: m(() => [
30
+ l("div", {
31
+ "aria-label": r.value ? "Input is invalid" : "More Information",
32
+ class: "bg-b-1 px-1 group-[.alert]:bg-transparent group-[.error]:bg-transparent",
33
+ role: r.value ? "alert" : "none"
33
34
  }, [
34
- c(n(h), {
35
- class: b(
36
- a.value ? "text-orange brightness-[.9]" : "text-c-3 group-hover/info:text-c-1"
37
- ),
38
- icon: a.value ? "Alert" : "Info",
39
- size: "sm",
40
- thickness: "1.5"
41
- }, null, 8, ["class", "icon"])
42
- ], 8, v)
35
+ r.value ? (t(), n(s(f), {
36
+ key: 0,
37
+ class: "text-orange size-3.5 brightness-[.9]"
38
+ })) : (t(), n(s(y), {
39
+ key: 1,
40
+ class: "text-c-2 hover:text-c-1 size-3.5"
41
+ }))
42
+ ], 8, h)
43
43
  ]),
44
- content: s(() => [
45
- m("div", y, [
46
- a.value ? (t(), o("div", k, r(n(l)(e.item).value), 1)) : e.item.type || e.item.format || e.item.minimum || e.item.maximum || e.item.default ? (t(), o("div", _, [
47
- e.item.type ? (t(), o("span", I, r(e.item.type), 1)) : i("", !0),
48
- e.item.format ? (t(), o("span", w, r(e.item.format), 1)) : i("", !0),
49
- e.item.minimum ? (t(), o("span", x, "min: " + r(e.item.minimum), 1)) : i("", !0),
50
- e.item.maximum ? (t(), o("span", C, "max: " + r(e.item.maximum), 1)) : i("", !0),
51
- e.item.default ? (t(), o("span", B, "default: " + r(e.item.default), 1)) : i("", !0)
52
- ])) : i("", !0),
53
- e.item.description && !a.value ? (t(), o("span", N, r(e.item.description), 1)) : i("", !0)
44
+ content: m(() => [
45
+ l("div", v, [
46
+ r.value ? (t(), i("div", k, a(s(p)(e.item).value), 1)) : e.item.type || e.item.format || e.item.minimum || e.item.maximum || e.item.default ? (t(), i("div", b, [
47
+ e.item.type ? (t(), i("span", _, a(e.item.type), 1)) : o("", !0),
48
+ e.item.format ? (t(), i("span", I, a(e.item.format), 1)) : o("", !0),
49
+ e.item.minimum ? (t(), i("span", w, "min: " + a(e.item.minimum), 1)) : o("", !0),
50
+ e.item.maximum ? (t(), i("span", x, "max: " + a(e.item.maximum), 1)) : o("", !0),
51
+ e.item.default ? (t(), i("span", C, "default: " + a(e.item.default), 1)) : o("", !0)
52
+ ])) : o("", !0),
53
+ e.item.description && !r.value ? (t(), i("span", S, a(e.item.description), 1)) : o("", !0)
54
54
  ])
55
55
  ]),
56
56
  _: 1
@@ -58,5 +58,5 @@ const v = ["aria-label", "role"], y = { class: "w-content bg-b-1 text-xxs text-c
58
58
  }
59
59
  });
60
60
  export {
61
- E as default
61
+ V as default
62
62
  };
@@ -34,7 +34,7 @@ const W = { class: "col-1 flex-center relative gap-6 p-2 capitalize" }, $ = {
34
34
  }));
35
35
  }, k = (o) => {
36
36
  o != null && o.createNew && x.name === "request" && f();
37
- }, w = "2.3.24";
37
+ }, w = "2.3.26";
38
38
  return R(() => a.hotKeys.on(k)), v(() => a.hotKeys.off(k)), (o, e) => (l(), u("div", W, [
39
39
  s("div", {
40
40
  class: y(["flex h-[calc(100%_-_50px)] flex-col items-center justify-center", {
@@ -1,3 +1,4 @@
1
1
  export * from './auth';
2
2
  export * from './oauth2';
3
+ export * from './watch-mode';
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/libs/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAA;AACtB,cAAc,UAAU,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/libs/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAA;AACtB,cAAc,UAAU,CAAA;AACxB,cAAc,cAAc,CAAA"}
@@ -1,11 +1,22 @@
1
- import { formatComplexScheme as t, formatScheme as o, getSchemeOptions as m, getSecurityRequirements as a } from "./auth.js";
2
- import { authorizeOauth2 as i, authorizeServers as u, generateCodeChallenge as S } from "./oauth2.js";
1
+ import { formatComplexScheme as r, formatScheme as f, getSchemeOptions as m, getSecurityRequirements as o } from "./auth.js";
2
+ import { authorizeOauth2 as i, authorizeServers as u, generateCodeChallenge as c } from "./oauth2.js";
3
+ import { combineRenameDiffs as h, findResource as S, mutateCollectionDiff as s, mutateRequestDiff as D, mutateSecuritySchemeDiff as p, mutateServerDiff as g, mutateTagDiff as l, narrowUnionSchema as x, parseDiff as C, traverseZodSchema as R } from "./watch-mode.js";
3
4
  export {
4
5
  i as authorizeOauth2,
5
6
  u as authorizeServers,
6
- t as formatComplexScheme,
7
- o as formatScheme,
8
- S as generateCodeChallenge,
7
+ h as combineRenameDiffs,
8
+ S as findResource,
9
+ r as formatComplexScheme,
10
+ f as formatScheme,
11
+ c as generateCodeChallenge,
9
12
  m as getSchemeOptions,
10
- a as getSecurityRequirements
13
+ o as getSecurityRequirements,
14
+ s as mutateCollectionDiff,
15
+ D as mutateRequestDiff,
16
+ p as mutateSecuritySchemeDiff,
17
+ g as mutateServerDiff,
18
+ l as mutateTagDiff,
19
+ x as narrowUnionSchema,
20
+ C as parseDiff,
21
+ R as traverseZodSchema
11
22
  };
@@ -1,5 +1,5 @@
1
1
  import { collectionSchema as M, requestSchema as V, serverSchema as q, tagSchema as S, securitySchemeSchema as Z, createExampleFromRequest as H } from "@scalar/oas-utils/entities/spec";
2
- import { isHttpMethod as j, schemaModel as R } from "@scalar/oas-utils/helpers";
2
+ import { schemaModel as R, isHttpMethod as j } from "@scalar/oas-utils/helpers";
3
3
  import { getNestedValue as D } from "@scalar/object-utils/nested";
4
4
  import x from "microdiff";
5
5
  import { z as i } from "zod";
@@ -86,11 +86,11 @@ const G = (e, s = []) => {
86
86
  value: void 0
87
87
  };
88
88
  const n = R(s.value, t, !1);
89
- return n ? {
89
+ return typeof n > "u" || n === null ? null : {
90
90
  path: a,
91
91
  pathMinusOne: u,
92
92
  value: n
93
- } : null;
93
+ };
94
94
  }, L = (e, { activeCollection: s }, { collectionMutators: t }) => {
95
95
  if (!s.value)
96
96
  return !1;
package/package.json CHANGED
@@ -18,7 +18,7 @@
18
18
  "rest",
19
19
  "testing"
20
20
  ],
21
- "version": "2.3.24",
21
+ "version": "2.3.26",
22
22
  "engines": {
23
23
  "node": ">=18"
24
24
  },
@@ -189,22 +189,22 @@
189
189
  "whatwg-mimetype": "^4.0.0",
190
190
  "yaml": "^2.4.5",
191
191
  "zod": "^3.23.8",
192
- "@scalar/draggable": "0.1.11",
193
- "@scalar/icons": "0.3.0",
194
- "@scalar/import": "0.3.17",
195
- "@scalar/components": "0.13.51",
196
- "@scalar/oas-utils": "0.2.134",
192
+ "@scalar/components": "0.13.53",
193
+ "@scalar/icons": "0.3.2",
194
+ "@scalar/import": "0.3.19",
195
+ "@scalar/oas-utils": "0.2.136",
197
196
  "@scalar/object-utils": "1.1.13",
198
197
  "@scalar/openapi-parser": "0.10.16",
199
- "@scalar/openapi-types": "0.2.0",
200
- "@scalar/postman-to-openapi": "0.2.7",
198
+ "@scalar/openapi-types": "0.2.1",
199
+ "@scalar/postman-to-openapi": "0.2.9",
200
+ "@scalar/themes": "0.10.3",
201
+ "@scalar/types": "0.1.11",
201
202
  "@scalar/snippetz": "0.2.19",
202
- "@scalar/types": "0.1.9",
203
- "@scalar/use-codemirror": "0.11.96",
204
- "@scalar/use-toasts": "0.7.9",
205
- "@scalar/use-hooks": "0.1.43",
206
- "@scalar/themes": "0.10.1",
207
- "@scalar/use-tooltip": "1.0.6"
203
+ "@scalar/use-codemirror": "0.11.98",
204
+ "@scalar/draggable": "0.1.11",
205
+ "@scalar/use-hooks": "0.1.45",
206
+ "@scalar/use-tooltip": "1.0.6",
207
+ "@scalar/use-toasts": "0.7.9"
208
208
  },
209
209
  "devDependencies": {
210
210
  "@types/shell-quote": "^1.7.5",
@@ -219,8 +219,8 @@
219
219
  "vite": "^5.4.10",
220
220
  "vite-svg-loader": "^5.1.0",
221
221
  "vitest": "^1.6.0",
222
- "@scalar/build-tooling": "0.1.17",
223
- "@scalar/galaxy": "0.3.1"
222
+ "@scalar/galaxy": "0.3.1",
223
+ "@scalar/build-tooling": "0.1.17"
224
224
  },
225
225
  "scripts": {
226
226
  "build": "scalar-build-vite",