@scalar/api-client 2.17.4 → 2.17.6

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,53 @@
1
1
  # @scalar/api-client
2
2
 
3
+ ## 2.17.6
4
+
5
+ ### Patch Changes
6
+
7
+ - [#7630](https://github.com/scalar/scalar/pull/7630): feat: add clear button to password field
8
+ - [#7673](https://github.com/scalar/scalar/pull/7673): fix: pass in reactive auth config to client
9
+ - [#7664](https://github.com/scalar/scalar/pull/7664): fix: example resolution in request body
10
+
11
+ ## 2.17.5
12
+
13
+ ### Patch Changes
14
+
15
+ - [#7661](https://github.com/scalar/scalar/pull/7661): fix: all issues for client modal v2 preparation
16
+
17
+ #### Updated Dependencies
18
+
19
+ - **@scalar/workspace-store@0.24.4**
20
+ - [#7661](https://github.com/scalar/scalar/pull/7661): fix: all issues for client modal v2 preparation
21
+
22
+ - **@scalar/use-hooks@0.3.5**
23
+ - [#7661](https://github.com/scalar/scalar/pull/7661): fix: all issues for client modal v2 preparation
24
+
25
+ - **@scalar/helpers@0.2.6**
26
+ - [#7661](https://github.com/scalar/scalar/pull/7661): fix: all issues for client modal v2 preparation
27
+
28
+ - **@scalar/types@0.5.6**
29
+ - [#7661](https://github.com/scalar/scalar/pull/7661): fix: all issues for client modal v2 preparation
30
+
31
+ - **@scalar/oas-utils@0.6.14**
32
+
33
+ - **@scalar/sidebar@0.7.6**
34
+
35
+ - **@scalar/components@0.16.16**
36
+
37
+ - **@scalar/import@0.4.43**
38
+
39
+ - **@scalar/json-magic@0.8.10**
40
+
41
+ - **@scalar/object-utils@1.2.20**
42
+
43
+ - **@scalar/postman-to-openapi@0.3.55**
44
+
45
+ - **@scalar/openapi-parser@0.23.11**
46
+
47
+ - **@scalar/snippetz@0.6.3**
48
+
49
+ - **@scalar/use-codemirror@0.13.10**
50
+
3
51
  ## 2.17.4
4
52
 
5
53
  ### Patch Changes
@@ -1 +1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AAU,EAAuB,QAAQ,IAAW,EAAE,QAAQ,IAAY,CAAE;AACvF,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC5C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC7C;IAAE,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAoC7C,QAAA,MAAM,eAAe;;;;;;;;;;;cA3XN,OAAO;cAIP,OAAO;kBAOH,OAAO;2BARE,OAAO;6EAgYjC,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAa1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,7 +1,7 @@
1
- import t from "./DataTableInput.vue2.js";
1
+ import a from "./DataTableInput.vue2.js";
2
2
  /* empty css */
3
- import a from "../../_virtual/_plugin-vue_export-helper.js";
4
- const e = /* @__PURE__ */ a(t, [["__scopeId", "data-v-2b299aed"]]);
3
+ import t from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const e = /* @__PURE__ */ t(a, [["__scopeId", "data-v-c1a50a6e"]]);
5
5
  export {
6
6
  e as default
7
7
  };
@@ -1,10 +1,10 @@
1
- import { defineComponent as g, ref as d, computed as B, createBlock as s, openBlock as a, normalizeClass as C, withCtx as $, createElementBlock as i, createCommentVNode as u, createElementVNode as I, renderSlot as p, createTextVNode as O, Fragment as h, mergeProps as v, unref as m } from "vue";
2
- import { ScalarIconButton as E } from "@scalar/components";
3
- import { ScalarIconEye as S, ScalarIconEyeSlash as A } from "@scalar/icons";
4
- import W from "../CodeInput/CodeInput.vue.js";
5
- import q from "./DataTableCell.vue.js";
6
- import F from "./DataTableInputSelect.vue.js";
7
- const T = ["for"], N = { class: "relative flex min-w-0 flex-1" }, P = ["readOnly", "type", "value"], D = {
1
+ import { defineComponent as g, ref as p, computed as B, createBlock as s, openBlock as a, normalizeClass as $, withCtx as I, createElementBlock as u, createCommentVNode as d, createElementVNode as O, renderSlot as m, createTextVNode as S, Fragment as E, mergeProps as v, unref as i } from "vue";
2
+ import { ScalarIconButton as c } from "@scalar/components";
3
+ import { ScalarIconX as h, ScalarIconEye as A, ScalarIconEyeSlash as W } from "@scalar/icons";
4
+ import q from "../CodeInput/CodeInput.vue.js";
5
+ import F from "./DataTableCell.vue.js";
6
+ import T from "./DataTableInputSelect.vue.js";
7
+ const N = ["for"], P = { class: "relative flex min-w-0 flex-1" }, D = ["readOnly", "type", "value"], U = {
8
8
  key: 1,
9
9
  class: "centered-y text-orange absolute right-7 text-xs"
10
10
  }, J = /* @__PURE__ */ g({
@@ -27,36 +27,36 @@ const T = ["for"], N = { class: "relative flex min-w-0 flex-1" }, P = ["readOnly
27
27
  lineWrapping: { type: Boolean, default: !1 }
28
28
  },
29
29
  emits: ["update:modelValue", "inputFocus", "inputBlur", "selectVariable"],
30
- setup(c, { emit: V }) {
31
- const n = c, t = V, r = d(!0), w = d(!1), f = d(null), k = () => {
32
- w.value || t("inputBlur");
30
+ setup(V, { emit: w }) {
31
+ const n = V, t = w, r = p(!0), k = p(!1), f = p(null), b = () => {
32
+ k.value || t("inputBlur");
33
33
  }, y = B(
34
34
  () => n.type === "password" ? "text" : n.type ?? "text"
35
- ), b = () => {
35
+ ), C = () => {
36
36
  !n.enum?.length && !n.readOnly && f.value?.focus();
37
37
  };
38
- return (e, l) => (a(), s(q, {
39
- class: C(["relative flex", e.containerClass])
38
+ return (e, l) => (a(), s(F, {
39
+ class: $(["relative flex", e.containerClass])
40
40
  }, {
41
- default: $(() => [
42
- e.$slots.default ? (a(), i("div", {
41
+ default: I(() => [
42
+ e.$slots.default ? (a(), u("div", {
43
43
  key: 0,
44
44
  class: "text-c-1 flex items-center pr-0 pl-3",
45
45
  for: e.id ?? "",
46
- onClick: b
46
+ onClick: C
47
47
  }, [
48
- p(e.$slots, "default", {}, void 0, !0),
49
- l[5] || (l[5] = O(": ", -1))
50
- ], 8, T)) : u("", !0),
51
- I("div", N, [
52
- n.enum && n.enum.length ? (a(), s(F, {
48
+ m(e.$slots, "default", {}, void 0, !0),
49
+ l[6] || (l[6] = S(": ", -1))
50
+ ], 8, N)) : d("", !0),
51
+ O("div", P, [
52
+ n.enum && n.enum.length ? (a(), s(T, {
53
53
  key: 0,
54
54
  canAddCustomValue: n.canAddCustomEnumValue,
55
55
  modelValue: n.modelValue,
56
56
  value: n.enum,
57
57
  "onUpdate:modelValue": l[0] || (l[0] = (o) => t("update:modelValue", o))
58
- }, null, 8, ["canAddCustomValue", "modelValue", "value"])) : (a(), i(h, { key: 1 }, [
59
- r.value && e.type === "password" ? (a(), i("input", v({ key: 0 }, e.id ? { ...e.$attrs, id: e.id } : e.$attrs, {
58
+ }, null, 8, ["canAddCustomValue", "modelValue", "value"])) : (a(), u(E, { key: 1 }, [
59
+ r.value && e.type === "password" ? (a(), u("input", v({ key: 0 }, e.id ? { ...e.$attrs, id: e.id } : e.$attrs, {
60
60
  autocomplete: "off",
61
61
  class: ["text-c-1 disabled:text-c-2 peer w-full min-w-0 border-none px-2 py-1.25 -outline-offset-1", { "scalar-password-input": e.type === "password" }],
62
62
  "data-1p-ignore": "",
@@ -68,7 +68,7 @@ const T = ["for"], N = { class: "relative flex min-w-0 flex-1" }, P = ["readOnly
68
68
  "update:modelValue",
69
69
  o.target.value ?? ""
70
70
  ))
71
- }), null, 16, P)) : (a(), s(W, v({ key: 1 }, e.$attrs, {
71
+ }), null, 16, D)) : (a(), s(q, v({ key: 1 }, e.$attrs, {
72
72
  id: e.id,
73
73
  ref_key: "codeInput",
74
74
  ref: f,
@@ -90,23 +90,30 @@ const T = ["for"], N = { class: "relative flex min-w-0 flex-1" }, P = ["readOnly
90
90
  required: !!e.required,
91
91
  spellcheck: "false",
92
92
  type: y.value,
93
- onBlur: k,
93
+ onBlur: b,
94
94
  onFocus: l[2] || (l[2] = (o) => t("inputFocus")),
95
95
  "onUpdate:modelValue": l[3] || (l[3] = (o) => t("update:modelValue", o))
96
96
  }), null, 16, ["id", "class", "description", "envVariables", "environment", "lineWrapping", "max", "min", "modelValue", "readOnly", "required", "type"]))
97
97
  ], 64))
98
98
  ]),
99
- e.$slots.warning ? (a(), i("div", D, [
100
- p(e.$slots, "warning", {}, void 0, !0)
101
- ])) : u("", !0),
102
- p(e.$slots, "icon", {}, void 0, !0),
103
- e.type === "password" ? (a(), s(m(E), {
99
+ e.$slots.warning ? (a(), u("div", U, [
100
+ m(e.$slots, "warning", {}, void 0, !0)
101
+ ])) : d("", !0),
102
+ m(e.$slots, "icon", {}, void 0, !0),
103
+ e.modelValue ? (a(), s(i(c), {
104
104
  key: 2,
105
+ class: "-ml-.25 h-6 w-6 self-center p-1.25",
106
+ icon: i(h),
107
+ label: "Clear Value",
108
+ onClick: l[4] || (l[4] = (o) => t("update:modelValue", ""))
109
+ }, null, 8, ["icon"])) : d("", !0),
110
+ e.type === "password" ? (a(), s(i(c), {
111
+ key: 3,
105
112
  class: "-ml-.5 mr-1.25 h-6 w-6 self-center p-1.25",
106
- icon: r.value ? m(S) : m(A),
113
+ icon: r.value ? i(A) : i(W),
107
114
  label: r.value ? "Show Password" : "Hide Password",
108
- onClick: l[4] || (l[4] = (o) => r.value = !r.value)
109
- }, null, 8, ["icon", "label"])) : u("", !0)
115
+ onClick: l[5] || (l[5] = (o) => r.value = !r.value)
116
+ }, null, 8, ["icon", "label"])) : d("", !0)
110
117
  ]),
111
118
  _: 3
112
119
  }, 8, ["class"]));