@scalar/api-client 2.2.47 → 2.2.48

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 (27) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/README.md +1 -1
  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 +57 -57
  6. package/dist/components/CommandPalette/CommandPaletteImport.vue.js +1 -1
  7. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
  8. package/dist/components/CommandPalette/TheCommandPalette.vue.js +2 -2
  9. package/dist/components/CommandPalette/TheCommandPalette.vue2.js +13 -13
  10. package/dist/components/DataTable/DataTableInputSelect.vue.d.ts.map +1 -1
  11. package/dist/components/DataTable/DataTableInputSelect.vue.js +27 -27
  12. package/dist/libs/send-request/create-request-operation.d.ts.map +1 -1
  13. package/dist/libs/send-request/create-request-operation.js +49 -53
  14. package/dist/libs/send-request/create-request-operation.test.d.ts.map +1 -1
  15. package/dist/style.css +1 -1
  16. package/dist/views/Environment/Environment.vue.d.ts.map +1 -1
  17. package/dist/views/Environment/Environment.vue2.js +4 -5
  18. package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
  19. package/dist/views/Request/RequestSidebar.vue.js +2 -2
  20. package/dist/views/Request/RequestSidebar.vue2.js +1 -1
  21. package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
  22. package/dist/views/Request/RequestSidebarItem.vue.js +1 -1
  23. package/dist/views/Request/RequestSidebarItem.vue2.js +4 -5
  24. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  25. package/dist/views/Servers/Servers.vue.d.ts.map +1 -1
  26. package/dist/views/Servers/Servers.vue2.js +11 -12
  27. package/package.json +19 -19
package/CHANGELOG.md CHANGED
@@ -1,5 +1,36 @@
1
1
  # @scalar/api-client
2
2
 
3
+ ## 2.2.48
4
+
5
+ ### Patch Changes
6
+
7
+ - 453ed40: fix: preserve lowercase auth headers
8
+ - 54fdfcb: chore: remove spec wording
9
+ - 8671902: fix: sets overflow on input enum value
10
+ - 7ce8d4c: fix: updates sidebar icon hover state style
11
+ - 4dedb68: fix: updates disabled style based on layout
12
+ - Updated dependencies [54fdfcb]
13
+ - Updated dependencies [825bc40]
14
+ - Updated dependencies [fa6afe8]
15
+ - Updated dependencies [1223c1f]
16
+ - Updated dependencies [4d30a35]
17
+ - @scalar/oas-utils@0.2.105
18
+ - @scalar/import@0.2.25
19
+ - @scalar/types@0.0.33
20
+ - @scalar/components@0.13.24
21
+ - @scalar/postman-to-openapi@0.1.28
22
+ - @scalar/use-codemirror@0.11.69
23
+ - @scalar/object-utils@1.1.13
24
+ - @scalar/use-tooltip@1.0.6
25
+ - @scalar/use-toasts@0.7.9
26
+ - @scalar/draggable@0.1.10
27
+ - @scalar/use-hooks@0.1.21
28
+ - @scalar/snippetz@0.2.13
29
+ - @scalar/themes@0.9.67
30
+ - @scalar/icons@0.1.3
31
+ - @scalar/openapi-parser@0.10.7
32
+ - @scalar/openapi-types@0.1.7
33
+
3
34
  ## 2.2.47
4
35
 
5
36
  ### Patch Changes
package/README.md CHANGED
@@ -100,7 +100,7 @@ open()
100
100
  ```ts
101
101
  /** Configuration options for the Scalar API client */
102
102
  export type ClientConfiguration = {
103
- /** The Swagger/OpenAPI spec to render */
103
+ /** The Swagger/OpenAPI document to render */
104
104
  spec: SpecConfiguration
105
105
  /** Pass in a proxy to the API client */
106
106
  proxyUrl?: string
@@ -1 +1 @@
1
- {"version":3,"file":"CodeInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CodeInput/CodeInput.vue"],"names":[],"mappings":"AAAA,OAueO,EAGL,KAAK,kBAAkB,EAGxB,MAAM,wBAAwB,CAAA;;kBAkBb,OAAO;eACV,OAAO;gBACN,MAAM,GAAG,MAAM;YACnB,OAAO;iBACF,OAAO;kBACN,OAAO;WACd,OAAO;uBACK,OAAO;eACf,kBAAkB;wBACT,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;wBACnB,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;kBACzB,MAAM;eACT,OAAO;mBACH,OAAO;2BACC,OAAO;WACvB,MAAM,EAAE;eACJ,MAAM,EAAE;WACZ,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS;eACzB,OAAO;oBACF,OAAO;iBACV,OAAO;iBACP,OAAO;cACV,MAAM,GAAG,MAAM;;;;;;;;kBAtBX,OAAO;eACV,OAAO;gBACN,MAAM,GAAG,MAAM;YACnB,OAAO;iBACF,OAAO;kBACN,OAAO;WACd,OAAO;uBACK,OAAO;eACf,kBAAkB;wBACT,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;wBACnB,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;kBACzB,MAAM;eACT,OAAO;mBACH,OAAO;2BACC,OAAO;WACvB,MAAM,EAAE;eACJ,MAAM,EAAE;WACZ,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS;eACzB,OAAO;oBACF,OAAO;iBACV,OAAO;iBACP,OAAO;cACV,MAAM,GAAG,MAAM;;;;;;cArBd,OAAO;gBAGL,OAAO;iBAJN,OAAO;sBAOF,OAAO;kBAMX,OAAO;0BACC,OAAO;cAInB,OAAO;mBACF,OAAO;gBAEV,OAAO;;qBAidM,GAAG;kBACN,GAAG;;AA1e9B,wBAuiBC;AAeD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"CodeInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CodeInput/CodeInput.vue"],"names":[],"mappings":"AA6eA,OAAO,EAIL,KAAK,kBAAkB,EAExB,MAAM,wBAAwB,CAAA;;kBAkBb,OAAO;eACV,OAAO;gBACN,MAAM,GAAG,MAAM;YACnB,OAAO;iBACF,OAAO;kBACN,OAAO;WACd,OAAO;uBACK,OAAO;eACf,kBAAkB;wBACT,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;wBACnB,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;kBACzB,MAAM;eACT,OAAO;mBACH,OAAO;2BACC,OAAO;WACvB,MAAM,EAAE;eACJ,MAAM,EAAE;WACZ,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS;eACzB,OAAO;oBACF,OAAO;iBACV,OAAO;iBACP,OAAO;cACV,MAAM,GAAG,MAAM;;;;;;;;kBAtBX,OAAO;eACV,OAAO;gBACN,MAAM,GAAG,MAAM;YACnB,OAAO;iBACF,OAAO;kBACN,OAAO;WACd,OAAO;uBACK,OAAO;eACf,kBAAkB;wBACT,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;wBACnB,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;kBACzB,MAAM;eACT,OAAO;mBACH,OAAO;2BACC,OAAO;WACvB,MAAM,EAAE;eACJ,MAAM,EAAE;WACZ,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS;eACzB,OAAO;oBACF,OAAO;iBACV,OAAO;iBACP,OAAO;cACV,MAAM,GAAG,MAAM;;;;;;cArBd,OAAO;gBAGL,OAAO;iBAJN,OAAO;sBAOF,OAAO;kBAMX,OAAO;0BACC,OAAO;cAInB,OAAO;mBACF,OAAO;gBAEV,OAAO;;qBAgdM,GAAG;kBACN,GAAG;;AAze9B,wBAsiBC;AAeD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -2,7 +2,7 @@ import o from "./CodeInput.vue2.js";
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  import t from "../../_virtual/_plugin-vue_export-helper.js";
5
- const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-d7ef0a30"]]);
5
+ const _ = /* @__PURE__ */ t(o, [["__scopeId", "data-v-5ee3c100"]]);
6
6
  export {
7
- e as default
7
+ _ as default
8
8
  };
@@ -1,26 +1,23 @@
1
- import { defineComponent as Q, useAttrs as G, ref as d, toRef as u, watch as H, computed as $, openBlock as n, createElementBlock as i, Fragment as X, createElementVNode as w, toDisplayString as Y, createBlock as m, mergeProps as Z, unref as a, withKeys as V, withModifiers as q, createVNode as _, createCommentVNode as c, renderSlot as A } from "vue";
2
- import { useCodeMirror as ee, useDropdown as oe, colorPicker as le } from "@scalar/use-codemirror";
3
- import { nanoid as te } from "nanoid";
4
- import g from "../DataTable/DataTableInputSelect.vue.js";
5
- import { pillPlugin as ne, backspaceCommand as ae } from "./codeVariableWidget.js";
6
- import re from "../../views/Environment/EnvironmentVariableDropdown.vue.js";
7
- import { useClipboard as ue } from "@scalar/use-hooks/useClipboard";
8
- import { ScalarIcon as se } from "@scalar/components";
9
- import { prettyPrintJson as de } from "@scalar/oas-utils/helpers";
10
- import { useActiveEntities as ie } from "../../store/active-entities.js";
11
- import { useLayout as pe } from "../../hooks/useLayout.js";
12
- const fe = {
13
- key: 0,
14
- class: "cursor-default flex items-center justify-center px-2 text-c-2"
15
- }, me = ["id"], ce = {
1
+ import { defineComponent as Q, useAttrs as G, ref as d, toRef as u, watch as H, computed as $, openBlock as n, createElementBlock as i, Fragment as X, normalizeClass as Y, unref as a, createElementVNode as V, toDisplayString as Z, createBlock as f, mergeProps as _, withKeys as g, withModifiers as q, createVNode as ee, createCommentVNode as c, renderSlot as A } from "vue";
2
+ import { ScalarIcon as oe } from "@scalar/components";
3
+ import { prettyPrintJson as le } from "@scalar/oas-utils/helpers";
4
+ import { useCodeMirror as te, useDropdown as ne, colorPicker as ae } from "@scalar/use-codemirror";
5
+ import { useClipboard as re } from "@scalar/use-hooks/useClipboard";
6
+ import { nanoid as ue } from "nanoid";
7
+ import { useActiveEntities as se } from "../../store/active-entities.js";
8
+ import de from "../../views/Environment/EnvironmentVariableDropdown.vue.js";
9
+ import B from "../DataTable/DataTableInputSelect.vue.js";
10
+ import { pillPlugin as ie, backspaceCommand as pe } from "./codeVariableWidget.js";
11
+ import { useLayout as me } from "../../hooks/useLayout.js";
12
+ const fe = ["id"], ce = {
16
13
  key: 0,
17
14
  class: "scalar-code-copy z-context"
18
15
  }, ye = {
19
16
  key: 5,
20
- class: "absolute centered-y right-7 text-orange text-xs"
17
+ class: "centered-y text-orange absolute right-7 text-xs"
21
18
  }, be = {
22
19
  key: 6,
23
- class: "required absolute centered-y right-0 pt-px pr-2 text-xxs text-c-3 bg-b-1 shadow-[-8px_0_4px_var(--scalar-background-1)] opacity-100 duration-150 transition-opacity peer-has-[.cm-focused]:opacity-0 pointer-events-none"
20
+ class: "required centered-y text-xxs text-c-3 bg-b-1 pointer-events-none absolute right-0 pr-2 pt-px opacity-100 shadow-[-8px_0_4px_var(--scalar-background-1)] transition-opacity duration-150 peer-has-[.cm-focused]:opacity-0"
24
21
  }, ve = {
25
22
  inheritAttrs: !1
26
23
  }, Fe = /* @__PURE__ */ Q({
@@ -54,7 +51,7 @@ const fe = {
54
51
  emits: ["submit", "update:modelValue", "curl"],
55
52
  setup(R, { expose: N, emit: O }) {
56
53
  var F;
57
- const o = R, s = O, B = G(), I = B.id || `id-${te()}`, k = d(!1), y = d(!1), C = d(""), S = d({ left: 0, top: 0 }), f = d(null), { activeEnvVariables: x, activeEnvironment: b, activeWorkspace: K } = ie(), { layout: P } = pe(), { copyToClipboard: M } = ue();
54
+ const o = R, s = O, C = G(), I = C.id || `id-${ue()}`, k = d(!1), y = d(!1), S = d(""), x = d({ left: 0, top: 0 }), m = d(null), { activeEnvVariables: P, activeEnvironment: b, activeWorkspace: K } = se(), { layout: v } = me(), { copyToClipboard: M } = re();
58
55
  function T(e) {
59
56
  var l;
60
57
  return e === o.modelValue ? null : o.importCurl && e.trim().toLowerCase().startsWith("curl") ? (s("curl", e), (l = r.value) == null || l.dispatch({
@@ -65,23 +62,23 @@ const fe = {
65
62
  }
66
63
  }), null) : o.handleFieldChange ? o.handleFieldChange(e) : s("update:modelValue", e);
67
64
  }
68
- function U(e) {
65
+ function z(e) {
69
66
  return o.handleFieldSubmit ? o.handleFieldSubmit(e) : s("submit", e);
70
67
  }
71
- function j(e) {
72
- k.value = !1, o.emitOnBlur && o.modelValue && U(e);
68
+ function U(e) {
69
+ k.value = !1, o.emitOnBlur && o.modelValue && z(e);
73
70
  }
74
- const v = [];
75
- o.colorPicker && v.push(le), v.push(
76
- ne({
71
+ const h = [];
72
+ o.colorPicker && h.push(ae), h.push(
73
+ ie({
77
74
  environment: b.value,
78
- envVariables: x.value,
75
+ envVariables: P.value,
79
76
  workspace: K.value,
80
- isReadOnly: P === "modal"
77
+ isReadOnly: v === "modal"
81
78
  }),
82
- ae
79
+ pe
83
80
  );
84
- const D = d(null), { codeMirror: r } = ee({
81
+ const D = d(null), { codeMirror: r } = te({
85
82
  content: u(
86
83
  () => o.modelValue !== void 0 ? String(o.modelValue) : ""
87
84
  ),
@@ -89,7 +86,7 @@ const fe = {
89
86
  T(e), L();
90
87
  },
91
88
  onFocus: () => k.value = !0,
92
- onBlur: (e) => j(e),
89
+ onBlur: (e) => U(e),
93
90
  codeMirrorRef: D,
94
91
  disableTabIndent: u(() => o.disableTabIndent),
95
92
  disableEnter: u(() => o.disableEnter),
@@ -97,17 +94,17 @@ const fe = {
97
94
  lineNumbers: u(() => o.lineNumbers),
98
95
  language: u(() => o.language),
99
96
  lint: u(() => o.lint),
100
- extensions: v,
97
+ extensions: h,
101
98
  placeholder: u(() => o.placeholder)
102
99
  });
103
100
  (F = r.value) == null || F.focus(), H(r, () => {
104
- r.value && Object.prototype.hasOwnProperty.call(B, "autofocus") && r.value.focus();
101
+ r.value && Object.prototype.hasOwnProperty.call(C, "autofocus") && r.value.focus();
105
102
  });
106
- const { handleDropdownSelect: z, updateDropdownVisibility: L } = oe({
103
+ const { handleDropdownSelect: j, updateDropdownVisibility: L } = ne({
107
104
  codeMirror: r,
108
- query: C,
105
+ query: S,
109
106
  showDropdown: y,
110
- dropdownPosition: S
107
+ dropdownPosition: x
111
108
  }), W = $(() => {
112
109
  var e;
113
110
  return o.type === "boolean" || (e = o.type) != null && e.includes("boolean") || o.nullable ? ["true", "false", "null"] : ["true", "false"];
@@ -118,9 +115,9 @@ const fe = {
118
115
  (e = r.value) == null || e.focus();
119
116
  }
120
117
  });
121
- const h = (e, l) => {
118
+ const w = (e, l) => {
122
119
  var p, t, E;
123
- y.value && (e === "down" ? (l.preventDefault(), (p = f.value) == null || p.handleArrowKey("down")) : e === "up" ? (l.preventDefault(), (t = f.value) == null || t.handleArrowKey("up")) : e === "enter" && (l.preventDefault(), (E = f.value) == null || E.handleSelect()));
120
+ y.value && (e === "down" ? (l.preventDefault(), (p = m.value) == null || p.handleArrowKey("down")) : e === "up" ? (l.preventDefault(), (t = m.value) == null || t.handleArrowKey("up")) : e === "enter" && (l.preventDefault(), (E = m.value) == null || E.handleSelect()));
124
121
  }, J = $(() => Array.isArray(o.type) ? (
125
122
  // Find the first type, that’s not 'null'
126
123
  o.type.find((e) => e !== "null") ?? "string"
@@ -131,70 +128,73 @@ const fe = {
131
128
  return (e, l) => {
132
129
  var p;
133
130
  return n(), i(X, null, [
134
- e.disabled ? (n(), i("div", fe, [
135
- w("span", null, Y(e.modelValue), 1)
136
- ])) : o.enum && o.enum.length ? (n(), m(g, {
131
+ e.disabled ? (n(), i("div", {
132
+ key: 0,
133
+ class: Y(["text-c-2 flex cursor-default items-center justify-center", a(v) === "modal" ? "font-code pl-1 pr-2 text-sm" : "px-2"])
134
+ }, [
135
+ V("span", null, Z(e.modelValue), 1)
136
+ ], 2)) : o.enum && o.enum.length ? (n(), f(B, {
137
137
  key: 1,
138
138
  default: o.default,
139
139
  modelValue: e.modelValue,
140
140
  type: J.value,
141
141
  value: o.enum,
142
142
  "onUpdate:modelValue": l[0] || (l[0] = (t) => s("update:modelValue", t))
143
- }, null, 8, ["default", "modelValue", "type", "value"])) : e.type === "boolean" || (p = e.type) != null && p.includes("boolean") ? (n(), m(g, {
143
+ }, null, 8, ["default", "modelValue", "type", "value"])) : e.type === "boolean" || (p = e.type) != null && p.includes("boolean") ? (n(), f(B, {
144
144
  key: 2,
145
145
  default: o.default,
146
146
  modelValue: e.modelValue,
147
147
  value: W.value,
148
148
  "onUpdate:modelValue": l[1] || (l[1] = (t) => s("update:modelValue", t))
149
- }, null, 8, ["default", "modelValue", "value"])) : o.examples && o.examples.length ? (n(), m(g, {
149
+ }, null, 8, ["default", "modelValue", "value"])) : o.examples && o.examples.length ? (n(), f(B, {
150
150
  key: 3,
151
151
  default: o.default,
152
152
  modelValue: o.modelValue,
153
153
  value: o.examples,
154
154
  "onUpdate:modelValue": l[2] || (l[2] = (t) => s("update:modelValue", t))
155
- }, null, 8, ["default", "modelValue", "value"])) : (n(), i("div", Z({
155
+ }, null, 8, ["default", "modelValue", "value"])) : (n(), i("div", _({
156
156
  key: 4,
157
157
  id: a(I)
158
158
  }, e.$attrs, {
159
159
  ref_key: "codeMirrorRef",
160
160
  ref: D,
161
- class: ["peer font-code w-full whitespace-nowrap overflow-hidden text-xs leading-[1.44] relative has-[:focus-visible]:outline has-[:focus-visible]:rounded-[4px] -outline-offset-1", {
161
+ class: ["font-code peer relative w-full overflow-hidden whitespace-nowrap text-xs leading-[1.44] -outline-offset-1 has-[:focus-visible]:rounded-[4px] has-[:focus-visible]:outline", {
162
162
  "flow-code-input--error": e.error
163
163
  }],
164
164
  onKeydown: [
165
- l[4] || (l[4] = V(q((t) => h("down", t), ["stop"]), ["down"])),
166
- l[5] || (l[5] = V((t) => h("enter", t), ["enter"])),
167
- l[6] || (l[6] = V(q((t) => h("up", t), ["stop"]), ["up"]))
165
+ l[4] || (l[4] = g(q((t) => w("down", t), ["stop"]), ["down"])),
166
+ l[5] || (l[5] = g((t) => w("enter", t), ["enter"])),
167
+ l[6] || (l[6] = g(q((t) => w("up", t), ["stop"]), ["up"]))
168
168
  ]
169
169
  }), [
170
170
  e.isCopyable ? (n(), i("div", ce, [
171
- w("button", {
171
+ V("button", {
172
172
  class: "copy-button",
173
173
  type: "button",
174
- onClick: l[3] || (l[3] = (t) => a(M)(a(de)(e.modelValue)))
174
+ onClick: l[3] || (l[3] = (t) => a(M)(a(le)(e.modelValue)))
175
175
  }, [
176
- l[7] || (l[7] = w("span", { class: "sr-only" }, "Copy content", -1)),
177
- _(a(se), {
176
+ l[7] || (l[7] = V("span", { class: "sr-only" }, "Copy content", -1)),
177
+ ee(a(oe), {
178
178
  icon: "Clipboard",
179
179
  size: "md"
180
180
  })
181
181
  ])
182
182
  ])) : c("", !0)
183
- ], 16, me)),
183
+ ], 16, fe)),
184
184
  e.$slots.warning ? (n(), i("div", ye, [
185
185
  A(e.$slots, "warning", {}, void 0, !0)
186
186
  ])) : c("", !0),
187
187
  A(e.$slots, "icon", {}, void 0, !0),
188
188
  e.required ? (n(), i("div", be, " Required ")) : c("", !0),
189
- y.value && e.withVariables && a(P) !== "modal" && a(b) ? (n(), m(re, {
189
+ y.value && e.withVariables && a(v) !== "modal" && a(b) ? (n(), f(de, {
190
190
  key: 7,
191
191
  ref_key: "dropdownRef",
192
- ref: f,
193
- dropdownPosition: S.value,
194
- envVariables: a(x),
192
+ ref: m,
193
+ dropdownPosition: x.value,
194
+ envVariables: a(P),
195
195
  environment: a(b),
196
- query: C.value,
197
- onSelect: a(z)
196
+ query: S.value,
197
+ onSelect: a(j)
198
198
  }, null, 8, ["dropdownPosition", "envVariables", "environment", "query", "onSelect"])) : c("", !0)
199
199
  ], 64);
200
200
  };
@@ -147,7 +147,7 @@ const ae = { class: "flex justify-between" }, le = { class: "flex flex-row items
147
147
  s.value.title ? (l(), i(v, { key: 0 }, [
148
148
  d(' "' + V(s.value.title) + '" ', 1)
149
149
  ], 64)) : (l(), i(v, { key: 1 }, [
150
- d(V(s.value.version) + " Spec", 1)
150
+ d(V(s.value.version), 1)
151
151
  ], 64))
152
152
  ], 64)) : (l(), i(v, { key: 2 }, [
153
153
  d("Collection")
@@ -1 +1 @@
1
- {"version":3,"file":"TheCommandPalette.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/TheCommandPalette.vue"],"names":[],"mappings":"AAkZA;;;;GAIG;;AACH,wBAieI;AAEJ,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBA7f9B,CA9OiD;qBA8OjD,CA7OQ;;;;;;;mBA6OR,CA9OiD;qBA8OjD,CA7OQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkvBE,CAAA;AAEV,yCAAyC;AACzC,MAAM,MAAM,YAAY,GAAG,MAAM,OAAO,iBAAiB,CAAA;AAEzD,MAAM,MAAM,mBAAmB,GAAG;IAChC,8DAA8D;IAC9D,WAAW,CAAC,EAAE,YAAY,CAAA;IAC1B,iEAAiE;IACjE,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CAC/B,CACA"}
1
+ {"version":3,"file":"TheCommandPalette.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/TheCommandPalette.vue"],"names":[],"mappings":"AAoZA;;;;GAIG;;AACH,wBAieI;AAEJ,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBA9f9B,CA9OgD;qBA8OhD,CA7OO;;;;;;;mBA6OP,CA9OgD;qBA8OhD,CA7OO;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmvBG,CAAA;AAEV,yCAAyC;AACzC,MAAM,MAAM,YAAY,GAAG,MAAM,OAAO,iBAAiB,CAAA;AAEzD,MAAM,MAAM,mBAAmB,GAAG;IAChC,8DAA8D;IAC9D,WAAW,CAAC,EAAE,YAAY,CAAA;IAC1B,iEAAiE;IACjE,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CAC/B,CACA"}
@@ -2,8 +2,8 @@ import o from "./TheCommandPalette.vue2.js";
2
2
  import { PaletteComponents as s } from "./TheCommandPalette.vue2.js";
3
3
  /* empty css */
4
4
  import t from "../../_virtual/_plugin-vue_export-helper.js";
5
- const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-f73a73e6"]]);
5
+ const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-e9fd9234"]]);
6
6
  export {
7
7
  s as PaletteComponents,
8
- r as default
8
+ a as default
9
9
  };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as q, ref as i, computed as T, watch as F, onMounted as G, onBeforeUnmount as Q, openBlock as a, createBlock as z, unref as r, withCtx as y, createElementVNode as u, createVNode as p, createTextVNode as K, createElementBlock as m, withDirectives as M, withKeys as w, withModifiers as g, vModelText as j, Fragment as P, renderList as B, toDisplayString as N, vShow as J, normalizeClass as X, createCommentVNode as Y, resolveDynamicComponent as Z, mergeProps as ee, nextTick as V } from "vue";
2
- import { useModal as oe, ScalarIcon as A } from "@scalar/components";
3
- import { Dialog as te, DialogPanel as ne, DialogTitle as ae } from "@headlessui/vue";
2
+ import { Dialog as oe, DialogPanel as te, DialogTitle as ne } from "@headlessui/vue";
3
+ import { useModal as ae, ScalarIcon as A } from "@scalar/components";
4
4
  import { useRouter as le } from "vue-router";
5
5
  import { ROUTES as se } from "../../constants.js";
6
6
  import { useActiveEntities as re } from "../../store/active-entities.js";
@@ -14,10 +14,10 @@ import fe from "./CommandPaletteWorkspace.vue.js";
14
14
  import { useWorkspace as ve } from "../../store/store.js";
15
15
  const he = {
16
16
  key: 0,
17
- class: "flex-1 min-h-0 max-h-[50dvh] p-1.5 custom-scroll rounded-lg"
18
- }, Ce = { class: "bg-b-2 border border-transparent flex items-center rounded-md sticky top-0 pl-2 shadow-[0_-8px_0_8px_var(--scalar-background-1),0_0_8px_8px_var(--scalar-background-1)] focus-within:bg-b-1 focus-within:border-b-3" }, xe = { for: "commandmenu" }, _e = ["onKeydown"], ke = ["onClick"], be = {
17
+ class: "custom-scroll max-h-[50dvh] min-h-0 flex-1 rounded-lg p-1.5"
18
+ }, Ce = { class: "bg-b-2 focus-within:bg-b-1 focus-within:border-b-3 sticky top-0 flex items-center rounded-md border border-transparent pl-2 shadow-[0_-8px_0_8px_var(--scalar-background-1),0_0_8px_8px_var(--scalar-background-1)]" }, xe = { for: "commandmenu" }, _e = ["onKeydown"], ke = ["onClick"], be = {
19
19
  key: 0,
20
- class: "text-c-3 text-center text-sm p-2 pt-3"
20
+ class: "text-c-3 p-2 pt-3 text-center text-sm"
21
21
  }, ye = {
22
22
  key: 1,
23
23
  class: "flex-1 p-1.5"
@@ -91,7 +91,7 @@ const he = {
91
91
  path: `${o.name}.default`
92
92
  }))
93
93
  }
94
- ], d = oe(), { push: W } = le(), { activeWorkspace: H } = re(), { events: f } = ve(), x = i(), l = i(""), s = i(null), c = i(-1), D = i([]), v = T(
94
+ ], d = ae(), { push: W } = le(), { activeWorkspace: H } = re(), { events: f } = ve(), x = i(), l = i(""), s = i(null), c = i(-1), D = i([]), v = T(
95
95
  () => S.reduce((o, e) => {
96
96
  const t = e.commands.filter(
97
97
  (n) => n.name.toLowerCase().includes(l.value.toLowerCase())
@@ -145,15 +145,15 @@ const he = {
145
145
  f.commandPalette.on(I), f.hotKeys.on(E);
146
146
  }), Q(() => {
147
147
  f.commandPalette.off(I), f.hotKeys.off(E);
148
- }), (o, e) => (a(), z(r(te), {
148
+ }), (o, e) => (a(), z(r(oe), {
149
149
  open: r(d).open,
150
150
  onClose: e[5] || (e[5] = (t) => h())
151
151
  }, {
152
152
  default: y(() => [
153
153
  e[7] || (e[7] = u("div", { class: "commandmenu-overlay z-overlay" }, null, -1)),
154
- p(r(ne), { class: "commandmenu z-overlay flex flex-col" }, {
154
+ p(r(te), { class: "commandmenu z-overlay flex flex-col" }, {
155
155
  default: y(() => [
156
- p(r(ae), { class: "sr-only" }, {
156
+ p(r(ne), { class: "sr-only" }, {
157
157
  default: y(() => e[6] || (e[6] = [
158
158
  K("API Client Command Menu")
159
159
  ])),
@@ -161,7 +161,7 @@ const he = {
161
161
  }),
162
162
  s.value ? (a(), m("div", ye, [
163
163
  u("button", {
164
- class: "absolute p-0.75 hover:bg-b-3 rounded text-c-3 active:text-c-1 mr-1.5 my-1.25 z-1",
164
+ class: "p-0.75 hover:bg-b-3 text-c-3 active:text-c-1 my-1.25 z-1 absolute mr-1.5 rounded",
165
165
  type: "button",
166
166
  onClick: e[3] || (e[3] = (t) => s.value = null)
167
167
  }, [
@@ -192,7 +192,7 @@ const he = {
192
192
  "onUpdate:modelValue": e[0] || (e[0] = (t) => l.value = t),
193
193
  autocomplete: "off",
194
194
  autofocus: "",
195
- class: "w-full rounded bg-none border-none py-1.5 text-sm focus:outline-none",
195
+ class: "w-full rounded border-none bg-none py-1.5 text-sm focus:outline-none",
196
196
  placeholder: "Search commands...",
197
197
  type: "text",
198
198
  onKeydown: [
@@ -207,7 +207,7 @@ const he = {
207
207
  (a(), m(P, null, B(S, (t) => (a(), m(P, {
208
208
  key: t.label
209
209
  }, [
210
- M(u("div", { class: "text-c-3 font-medium text-xs px-2 mb-1 mt-2" }, N(t.label), 513), [
210
+ M(u("div", { class: "text-c-3 mb-1 mt-2 px-2 text-xs font-medium" }, N(t.label), 513), [
211
211
  [
212
212
  J,
213
213
  t.commands.filter(
@@ -225,7 +225,7 @@ const he = {
225
225
  ref: (b) => {
226
226
  b && (D.value[C] = b);
227
227
  },
228
- class: X(["commandmenu-item text-sm flex items-center py-1.5 px-2 rounded hover:bg-b-2 cursor-pointer", {
228
+ class: X(["commandmenu-item hover:bg-b-2 flex cursor-pointer items-center rounded px-2 py-1.5 text-sm", {
229
229
  "bg-b-2": n.name === ((L = k.value) == null ? void 0 : L.name)
230
230
  }]),
231
231
  onClick: (b) => $(n)
@@ -1 +1 @@
1
- {"version":3,"file":"DataTableInputSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableInputSelect.vue"],"names":[],"mappings":"AA6LA,KAAK,WAAW,GAAG;IACf,UAAU,EAAE,MAAM,GAAG,MAAM,CAAA;IAC3B,KAAK,CAAC,EAAE,MAAM,EAAE,CAAA;IAChB,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAA;IACrC,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAC1B,CAAC;;;;;;uBAFoB,OAAO;;AAwW/B,wBASG"}
1
+ {"version":3,"file":"DataTableInputSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableInputSelect.vue"],"names":[],"mappings":"AA4LA,KAAK,WAAW,GAAG;IACf,UAAU,EAAE,MAAM,GAAG,MAAM,CAAA;IAC3B,KAAK,CAAC,EAAE,MAAM,EAAE,CAAA;IAChB,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAA;IACrC,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAC1B,CAAC;;;;;;uBAFoB,OAAO;;AA0W/B,wBASG"}
@@ -1,5 +1,5 @@
1
- import { defineComponent as O, computed as m, ref as y, watch as g, nextTick as E, openBlock as u, createElementBlock as f, createBlock as v, unref as a, withCtx as o, createVNode as n, createElementVNode as d, toDisplayString as w, withDirectives as K, withKeys as M, vModelText as R, Fragment as C, renderList as U, normalizeClass as W, createTextVNode as $, createCommentVNode as _ } from "vue";
2
- import { ScalarComboboxMultiselect as F, ScalarButton as b, ScalarIcon as V, ScalarDropdown as L, ScalarDropdownItem as D, ScalarDropdownDivider as q } from "@scalar/components";
1
+ import { defineComponent as O, computed as m, ref as w, watch as g, nextTick as E, openBlock as o, createElementBlock as f, createBlock as v, unref as a, withCtx as u, createVNode as n, createElementVNode as d, toDisplayString as y, withDirectives as K, withKeys as M, vModelText as R, Fragment as C, renderList as U, normalizeClass as W, createTextVNode as $, createCommentVNode as _ } from "vue";
2
+ import { ScalarComboboxMultiselect as F, ScalarButton as b, ScalarIcon as h, ScalarDropdown as L, ScalarDropdownItem as D, ScalarDropdownDivider as q } from "@scalar/components";
3
3
  const G = { class: "pr-4 w-full has-[:focus-visible]:outline has-[:focus-visible]:rounded-[4px] -outline-offset-1" }, H = { class: "text-c-1 whitespace-nowrap" }, J = { class: "text-c-1" }, P = { class: "flex items-center justify-center h-4 w-4" }, Z = /* @__PURE__ */ O({
4
4
  __name: "DataTableInputSelect",
5
5
  props: {
@@ -11,7 +11,7 @@ const G = { class: "pr-4 w-full has-[:focus-visible]:outline has-[:focus-visible
11
11
  },
12
12
  emits: ["update:modelValue"],
13
13
  setup(B, { emit: j }) {
14
- const s = B, c = j, p = m(() => s.value ?? []), i = y(!1), r = y(""), x = y(null);
14
+ const s = B, c = j, p = m(() => s.value ?? []), i = w(!1), r = w(""), x = w(null);
15
15
  g(r, (e) => {
16
16
  c("update:modelValue", e);
17
17
  });
@@ -28,7 +28,7 @@ const G = { class: "pr-4 w-full has-[:focus-visible]:outline has-[:focus-visible
28
28
  (t = x.value) == null || t.focus();
29
29
  });
30
30
  });
31
- const S = m(() => s.modelValue !== void 0 ? s.modelValue : s.default), h = m(() => {
31
+ const S = m(() => s.modelValue !== void 0 ? s.modelValue : s.default), V = m(() => {
32
32
  const e = new Set(s.modelValue.toString().split(", "));
33
33
  return p.value.filter((t) => e.has(t)).map((t) => ({ id: t, label: t, value: t }));
34
34
  }), T = m(
@@ -37,22 +37,22 @@ const G = { class: "pr-4 w-full has-[:focus-visible]:outline has-[:focus-visible
37
37
  const t = e.map((l) => l.value);
38
38
  c("update:modelValue", t.join(", "));
39
39
  };
40
- return (e, t) => (u(), f("div", G, [
41
- e.type === "array" ? (u(), v(a(F), {
40
+ return (e, t) => (o(), f("div", G, [
41
+ e.type === "array" ? (o(), v(a(F), {
42
42
  key: 0,
43
- modelValue: h.value,
43
+ modelValue: V.value,
44
44
  options: T.value,
45
45
  "onUpdate:modelValue": I
46
46
  }, {
47
- default: o(() => [
47
+ default: u(() => [
48
48
  n(a(b), {
49
49
  class: "gap-1.5 font-normal h-full justify-start px-2 py-1.5 custom-scroll pr-6 outline-none",
50
50
  fullWidth: "",
51
51
  variant: "ghost"
52
52
  }, {
53
- default: o(() => [
54
- d("span", H, w(h.value.length > 0 ? h.value.map((l) => l.label).join(", ") : "Select a value"), 1),
55
- n(a(V), {
53
+ default: u(() => [
54
+ d("span", H, y(V.value.length > 0 ? V.value.map((l) => l.label).join(", ") : "Select a value"), 1),
55
+ n(a(h), {
56
56
  icon: "ChevronDown",
57
57
  size: "md"
58
58
  })
@@ -61,7 +61,7 @@ const G = { class: "pr-4 w-full has-[:focus-visible]:outline has-[:focus-visible
61
61
  })
62
62
  ]),
63
63
  _: 1
64
- }, 8, ["modelValue", "options"])) : i.value ? K((u(), f("input", {
64
+ }, 8, ["modelValue", "options"])) : i.value ? K((o(), f("input", {
65
65
  key: 1,
66
66
  ref_key: "inputRef",
67
67
  ref: x,
@@ -73,44 +73,44 @@ const G = { class: "pr-4 w-full has-[:focus-visible]:outline has-[:focus-visible
73
73
  onKeyup: M(z, ["enter"])
74
74
  }, null, 544)), [
75
75
  [R, r.value]
76
- ]) : (u(), v(a(L), {
76
+ ]) : (o(), v(a(L), {
77
77
  key: 2,
78
78
  resize: "",
79
79
  value: S.value
80
80
  }, {
81
- items: o(() => [
82
- (u(!0), f(C, null, U(p.value, (l) => (u(), v(a(D), {
81
+ items: u(() => [
82
+ (o(!0), f(C, null, U(p.value, (l) => (o(), v(a(D), {
83
83
  key: l,
84
84
  class: "flex gap-1.5 group/item items-center whitespace-nowrap text-ellipsis overflow-hidden",
85
85
  value: l,
86
86
  onClick: (Q) => k(l)
87
87
  }, {
88
- default: o(() => [
88
+ default: u(() => [
89
89
  d("div", {
90
90
  class: W([
91
91
  "flex items-center justify-center rounded-full p-[3px] w-4 h-4",
92
92
  N(l) ? "bg-c-accent text-b-1" : "shadow-border text-transparent"
93
93
  ])
94
94
  }, [
95
- n(a(V), {
95
+ n(a(h), {
96
96
  class: "size-2.5",
97
97
  icon: "Checkmark",
98
98
  thickness: "3"
99
99
  })
100
100
  ], 2),
101
- $(" " + w(l), 1)
101
+ $(" " + y(l), 1)
102
102
  ]),
103
103
  _: 2
104
104
  }, 1032, ["value", "onClick"]))), 128)),
105
- e.canAddCustomValue ? (u(), f(C, { key: 0 }, [
106
- p.value.length ? (u(), v(a(q), { key: 0 })) : _("", !0),
105
+ e.canAddCustomValue ? (o(), f(C, { key: 0 }, [
106
+ p.value.length ? (o(), v(a(q), { key: 0 })) : _("", !0),
107
107
  n(a(D), {
108
108
  class: "flex items-center gap-1.5",
109
109
  onClick: t[1] || (t[1] = (l) => i.value = !0)
110
110
  }, {
111
- default: o(() => [
111
+ default: u(() => [
112
112
  d("div", P, [
113
- n(a(V), {
113
+ n(a(h), {
114
114
  icon: "Add",
115
115
  size: "sm"
116
116
  })
@@ -121,15 +121,15 @@ const G = { class: "pr-4 w-full has-[:focus-visible]:outline has-[:focus-visible
121
121
  })
122
122
  ], 64)) : _("", !0)
123
123
  ]),
124
- default: o(() => [
124
+ default: u(() => [
125
125
  n(a(b), {
126
- class: "gap-1.5 font-normal h-full justify-start px-2 py-1.5 outline-none",
126
+ class: "gap-1.5 font-normal h-full justify-start px-2 py-1.5 outline-none overflow-auto whitespace-nowrap",
127
127
  fullWidth: "",
128
128
  variant: "ghost"
129
129
  }, {
130
- default: o(() => [
131
- d("span", J, w(S.value || "Select a value"), 1),
132
- n(a(V), {
130
+ default: u(() => [
131
+ d("span", J, y(S.value || "Select a value"), 1),
132
+ n(a(h), {
133
133
  icon: "ChevronDown",
134
134
  size: "md"
135
135
  })
@@ -1 +1 @@
1
- {"version":3,"file":"create-request-operation.d.ts","sourceRoot":"","sources":["../../../src/libs/send-request/create-request-operation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,aAAa,EAAkB,MAAM,eAAe,CAAA;AAC1E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAWhD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mCAAmC,CAAA;AAC/D,OAAO,KAAK,EACV,SAAS,EACT,cAAc,EACd,gBAAgB,EAChB,cAAc,EACd,MAAM,EACP,MAAM,iCAAiC,CAAA;AAKxC,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,CAAA;AAEtD,uGAAuG;AACvG,KAAK,mBAAmB,GAAG,OAAO,CAChC,aAAa,CAAC;IACZ,QAAQ,EAAE,gBAAgB,CAAA;IAC1B,OAAO,EAAE,cAAc,CAAA;IACvB,SAAS,EAAE,MAAM,CAAA;CAClB,CAAC,CACH,CAAA;AAED,0BAA0B;AAC1B,eAAO,MAAM,sBAAsB,6HAUhC;IACD,WAAW,EAAE,MAAM,GAAG,SAAS,CAAA;IAC/B,OAAO,EAAE,cAAc,CAAA;IACvB,aAAa,EAAE,MAAM,EAAE,CAAA;IACvB,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;IAC5B,OAAO,EAAE,SAAS,CAAA;IAClB,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAA;IAC/C,0BAA0B,CAAC,EAAE,SAAS,CAAC,4BAA4B,CAAC,CAAA;IACpE,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC3B,MAAM,CAAC,EAAE,QAAQ,CAAC,aAAa,CAAC,CAAA;CACjC,KAAG,aAAa,CAAC;IAChB,UAAU,EAAE,eAAe,CAAA;IAC3B,WAAW,EAAE,MAAM,mBAAmB,CAAA;IACtC,OAAO,EAAE,OAAO,CAAA;CACjB,CA0LA,CAAA"}
1
+ {"version":3,"file":"create-request-operation.d.ts","sourceRoot":"","sources":["../../../src/libs/send-request/create-request-operation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,aAAa,EAAkB,MAAM,eAAe,CAAA;AAC1E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAWhD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mCAAmC,CAAA;AAC/D,OAAO,KAAK,EACV,SAAS,EACT,cAAc,EACd,gBAAgB,EAChB,cAAc,EACd,MAAM,EACP,MAAM,iCAAiC,CAAA;AAKxC,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,CAAA;AAEtD,uGAAuG;AACvG,KAAK,mBAAmB,GAAG,OAAO,CAChC,aAAa,CAAC;IACZ,QAAQ,EAAE,gBAAgB,CAAA;IAC1B,OAAO,EAAE,cAAc,CAAA;IACvB,SAAS,EAAE,MAAM,CAAA;CAClB,CAAC,CACH,CAAA;AAED,0BAA0B;AAC1B,eAAO,MAAM,sBAAsB,6HAUhC;IACD,WAAW,EAAE,MAAM,GAAG,SAAS,CAAA;IAC/B,OAAO,EAAE,cAAc,CAAA;IACvB,aAAa,EAAE,MAAM,EAAE,CAAA;IACvB,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;IAC5B,OAAO,EAAE,SAAS,CAAA;IAClB,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAA;IAC/C,0BAA0B,CAAC,EAAE,SAAS,CAAC,4BAA4B,CAAC,CAAA;IACpE,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC3B,MAAM,CAAC,EAAE,QAAQ,CAAC,aAAa,CAAC,CAAA;CACjC,KAAG,aAAa,CAAC;IAChB,UAAU,EAAE,eAAe,CAAA;IAC3B,WAAW,EAAE,MAAM,mBAAmB,CAAA;IACtC,OAAO,EAAE,OAAO,CAAA;CACjB,CA4LA,CAAA"}