@scalar/api-client 2.3.27 → 2.3.28

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":"OAuth2.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/OAuth2.vue"],"names":[],"mappings":"AAsQA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,EAEL,KAAK,UAAU,EACf,KAAK,UAAU,EACf,KAAK,oBAAoB,EACzB,KAAK,MAAM,EACZ,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAIrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAS1D,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,IAAI,EAAE,UAAU,CAAA;IAChB,MAAM,EAAE,oBAAoB,CAAA;IAC5B,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,SAAS,EAAE,SAAS,CAAA;CACrB,CAAC;;AA+eF,wBAMG"}
1
+ {"version":3,"file":"OAuth2.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/OAuth2.vue"],"names":[],"mappings":"AAqQA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,EAEL,KAAK,UAAU,EACf,KAAK,UAAU,EACf,KAAK,oBAAoB,EACzB,KAAK,MAAM,EACZ,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAIrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAS1D,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,IAAI,EAAE,UAAU,CAAA;IAChB,MAAM,EAAE,oBAAoB,CAAA;IAC5B,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,SAAS,EAAE,SAAS,CAAA;CACrB,CAAC;;AAgfF,wBAMG"}
@@ -7,7 +7,7 @@ import B from "./OAuthScopesInput.vue.js";
7
7
  import w from "./RequestAuthDataTableInput.vue.js";
8
8
  import u from "../../../../components/DataTable/DataTableRow.vue.js";
9
9
  import { authorizeOauth2 as F } from "../../libs/oauth2.js";
10
- const I = { class: "flex h-8 items-center justify-self-end" }, A = { class: "border-t-1/2 flex h-8 w-full items-center justify-end" }, W = /* @__PURE__ */ S({
10
+ const I = { class: "border-t-1/2 flex h-8 items-center justify-end gap-2" }, A = { class: "border-t-1/2 flex h-8 w-full items-center justify-end" }, W = /* @__PURE__ */ S({
11
11
  __name: "OAuth2",
12
12
  props: {
13
13
  collection: {},
@@ -18,31 +18,32 @@ const I = { class: "flex h-8 items-center justify-self-end" }, A = { class: "bor
18
18
  server: {},
19
19
  workspace: {}
20
20
  },
21
- setup(f) {
22
- const y = T(), { toast: g } = L(), { securitySchemeMutators: z } = R(), n = (l, e) => z.edit(f.scheme.uid, l, e), C = async () => {
21
+ setup(i) {
22
+ const y = T(), { toast: g } = L(), { securitySchemeMutators: z } = R(), n = (l, e) => z.edit(i.scheme.uid, l, e), C = async () => {
23
23
  var t, v;
24
- if (y.isLoading || !((t = f.collection) != null && t.uid))
24
+ if (y.isLoading || !((t = i.collection) != null && t.uid))
25
25
  return;
26
- if (y.startLoading(), !f.server) {
26
+ if (!i.server) {
27
27
  g("No server selected", "error");
28
28
  return;
29
29
  }
30
+ y.startLoading();
30
31
  const [l, e] = await F(
31
- f.flow,
32
- f.server,
33
- (v = f.workspace) == null ? void 0 : v.proxyUrl
32
+ i.flow,
33
+ i.server,
34
+ (v = i.workspace) == null ? void 0 : v.proxyUrl
34
35
  ).finally(() => y.stopLoading());
35
- e ? n(`flows.${f.flow.type}.token`, e) : (console.error(l), g((l == null ? void 0 : l.message) ?? "Failed to authorize", "error"));
36
- }, i = {
37
- environment: f.environment,
38
- envVariables: f.envVariables,
39
- workspace: f.workspace
36
+ e ? n(`flows.${i.flow.type}.token`, e) : (console.error(l), g((l == null ? void 0 : l.message) ?? "Failed to authorize", "error"));
37
+ }, f = {
38
+ environment: i.environment,
39
+ envVariables: i.envVariables,
40
+ workspace: i.workspace
40
41
  };
41
42
  return (l, e) => (s(), V(U, null, [
42
43
  l.flow.token ? (s(), V(U, { key: 0 }, [
43
44
  a(r(u), null, {
44
45
  default: o(() => [
45
- a(w, m(i, {
46
+ a(w, m(f, {
46
47
  class: "border-r-transparent",
47
48
  modelValue: l.flow.token,
48
49
  placeholder: "QUxMIFlPVVIgQkFTRSBBUkUgQkVMT05HIFRPIFVT",
@@ -79,7 +80,7 @@ const I = { class: "flex h-8 items-center justify-self-end" }, A = { class: "bor
79
80
  ], 64)) : (s(), V(U, { key: 1 }, [
80
81
  a(r(u), null, {
81
82
  default: o(() => [
82
- "authorizationUrl" in l.flow ? (s(), k(w, m({ key: 0 }, i, {
83
+ "authorizationUrl" in l.flow ? (s(), k(w, m({ key: 0 }, f, {
83
84
  containerClass: "border-r-0",
84
85
  modelValue: l.flow.authorizationUrl,
85
86
  placeholder: "https://galaxy.scalar.com/authorize",
@@ -90,7 +91,7 @@ const I = { class: "flex h-8 items-center justify-self-end" }, A = { class: "bor
90
91
  ])),
91
92
  _: 1
92
93
  }, 16, ["modelValue"])) : p("", !0),
93
- "tokenUrl" in l.flow ? (s(), k(w, m({ key: 1 }, i, {
94
+ "tokenUrl" in l.flow ? (s(), k(w, m({ key: 1 }, f, {
94
95
  modelValue: l.flow.tokenUrl,
95
96
  placeholder: "https://galaxy.scalar.com/token",
96
97
  "onUpdate:modelValue": e[3] || (e[3] = (t) => n(`flows.${l.flow.type}.tokenUrl`, t))
@@ -105,7 +106,7 @@ const I = { class: "flex h-8 items-center justify-self-end" }, A = { class: "bor
105
106
  }),
106
107
  "x-scalar-redirect-uri" in l.flow ? (s(), k(r(u), { key: 0 }, {
107
108
  default: o(() => [
108
- a(w, m(i, {
109
+ a(w, m(f, {
109
110
  modelValue: l.flow["x-scalar-redirect-uri"],
110
111
  placeholder: "https://galaxy.scalar.com/callback",
111
112
  "onUpdate:modelValue": e[4] || (e[4] = (t) => n(`flows.${l.flow.type}.x-scalar-redirect-uri`, t))
@@ -121,7 +122,7 @@ const I = { class: "flex h-8 items-center justify-self-end" }, A = { class: "bor
121
122
  l.flow.type === "password" ? (s(), V(U, { key: 1 }, [
122
123
  a(r(u), null, {
123
124
  default: o(() => [
124
- a(w, m(i, {
125
+ a(w, m(f, {
125
126
  class: "text-c-2",
126
127
  modelValue: l.flow.username,
127
128
  placeholder: "janedoe",
@@ -137,7 +138,7 @@ const I = { class: "flex h-8 items-center justify-self-end" }, A = { class: "bor
137
138
  }),
138
139
  a(r(u), null, {
139
140
  default: o(() => [
140
- a(w, m(i, {
141
+ a(w, m(f, {
141
142
  modelValue: l.flow.password,
142
143
  placeholder: "********",
143
144
  type: "password",
@@ -154,7 +155,7 @@ const I = { class: "flex h-8 items-center justify-self-end" }, A = { class: "bor
154
155
  ], 64)) : p("", !0),
155
156
  a(r(u), null, {
156
157
  default: o(() => [
157
- a(w, m(i, {
158
+ a(w, m(f, {
158
159
  modelValue: l.flow["x-scalar-client-id"],
159
160
  placeholder: "12345",
160
161
  "onUpdate:modelValue": e[7] || (e[7] = (t) => n(`flows.${l.flow.type}.x-scalar-client-id`, t))
@@ -169,7 +170,7 @@ const I = { class: "flex h-8 items-center justify-self-end" }, A = { class: "bor
169
170
  }),
170
171
  "clientSecret" in l.flow ? (s(), k(r(u), { key: 2 }, {
171
172
  default: o(() => [
172
- a(w, m(i, {
173
+ a(w, m(f, {
173
174
  modelValue: l.flow.clientSecret,
174
175
  placeholder: "XYZ123",
175
176
  type: "password",
@@ -185,7 +186,7 @@ const I = { class: "flex h-8 items-center justify-self-end" }, A = { class: "bor
185
186
  })) : p("", !0),
186
187
  "x-usePkce" in l.flow ? (s(), k(r(u), { key: 3 }, {
187
188
  default: o(() => [
188
- a(w, m(i, {
189
+ a(w, m(f, {
189
190
  enum: r(P),
190
191
  modelValue: l.flow["x-usePkce"],
191
192
  readOnly: "",
@@ -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.27";
37
+ }, w = "2.3.28";
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", {
package/package.json CHANGED
@@ -18,7 +18,7 @@
18
18
  "rest",
19
19
  "testing"
20
20
  ],
21
- "version": "2.3.27",
21
+ "version": "2.3.28",
22
22
  "engines": {
23
23
  "node": ">=18"
24
24
  },
@@ -45,6 +45,11 @@
45
45
  "types": "./dist/components/AddressBar/index.d.ts",
46
46
  "default": "./dist/components/AddressBar/index.js"
47
47
  },
48
+ "./components/CodeInput": {
49
+ "import": "./dist/components/CodeInput/index.js",
50
+ "types": "./dist/components/CodeInput/index.d.ts",
51
+ "default": "./dist/components/CodeInput/index.js"
52
+ },
48
53
  "./components/CommandPalette": {
49
54
  "import": "./dist/components/CommandPalette/index.js",
50
55
  "types": "./dist/components/CommandPalette/index.d.ts",
@@ -75,6 +80,11 @@
75
80
  "types": "./dist/components/Sidebar/index.d.ts",
76
81
  "default": "./dist/components/Sidebar/index.js"
77
82
  },
83
+ "./components/ViewLayout": {
84
+ "import": "./dist/components/ViewLayout/index.js",
85
+ "types": "./dist/components/ViewLayout/index.d.ts",
86
+ "default": "./dist/components/ViewLayout/index.js"
87
+ },
78
88
  "./css/*.css": {
79
89
  "import": "./dist/css/*.css",
80
90
  "require": "./dist/css/*.css",
@@ -188,20 +198,20 @@
188
198
  "vue-router": "^4.3.0",
189
199
  "whatwg-mimetype": "^4.0.0",
190
200
  "yaml": "^2.4.5",
191
- "zod": "^3.23.8",
201
+ "zod": "3.24.1",
192
202
  "@scalar/components": "0.13.54",
193
- "@scalar/icons": "0.3.3",
194
203
  "@scalar/draggable": "0.1.11",
195
- "@scalar/import": "0.3.20",
196
- "@scalar/oas-utils": "0.2.137",
197
- "@scalar/object-utils": "1.1.13",
204
+ "@scalar/icons": "0.3.3",
205
+ "@scalar/import": "0.3.21",
206
+ "@scalar/oas-utils": "0.2.138",
198
207
  "@scalar/openapi-parser": "0.10.16",
199
208
  "@scalar/openapi-types": "0.2.1",
200
- "@scalar/postman-to-openapi": "0.2.10",
209
+ "@scalar/object-utils": "1.1.13",
201
210
  "@scalar/snippetz": "0.2.19",
211
+ "@scalar/postman-to-openapi": "0.2.11",
202
212
  "@scalar/themes": "0.10.4",
203
- "@scalar/use-codemirror": "0.11.99",
204
213
  "@scalar/types": "0.1.12",
214
+ "@scalar/use-codemirror": "0.11.99",
205
215
  "@scalar/use-hooks": "0.1.46",
206
216
  "@scalar/use-tooltip": "1.0.6",
207
217
  "@scalar/use-toasts": "0.7.9"
@@ -219,8 +229,8 @@
219
229
  "vite": "^5.4.10",
220
230
  "vite-svg-loader": "^5.1.0",
221
231
  "vitest": "^1.6.0",
222
- "@scalar/build-tooling": "0.1.18",
223
- "@scalar/galaxy": "0.3.1"
232
+ "@scalar/galaxy": "0.3.1",
233
+ "@scalar/build-tooling": "0.1.18"
224
234
  },
225
235
  "scripts": {
226
236
  "build": "scalar-build-vite",