@scalar/api-client 2.20.0 → 2.20.2

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 (29) hide show
  1. package/CHANGELOG.md +57 -0
  2. package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts.map +1 -1
  3. package/dist/components/ImportCollection/hooks/useUrlPrefetcher.js +7 -6
  4. package/dist/libs/send-request/create-request-operation.d.ts.map +1 -1
  5. package/dist/libs/send-request/create-request-operation.js +1 -1
  6. package/dist/libs/send-request/set-request-cookies.d.ts.map +1 -1
  7. package/dist/libs/send-request/set-request-cookies.js +1 -1
  8. package/dist/style.css +1 -1
  9. package/dist/v2/blocks/operation-block/helpers/build-request.d.ts.map +1 -1
  10. package/dist/v2/blocks/operation-block/helpers/build-request.js +32 -31
  11. package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts.map +1 -1
  12. package/dist/v2/blocks/request-block/RequestBlock.vue.js +2 -2
  13. package/dist/v2/blocks/request-block/RequestBlock.vue2.js +34 -33
  14. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts +3 -1
  15. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts.map +1 -1
  16. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.js +28 -28
  17. package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.d.ts.map +1 -1
  18. package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.js +31 -22
  19. package/dist/v2/blocks/request-block/helpers/get-default-headers.js +1 -1
  20. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.js +1 -1
  21. package/dist/v2/components/data-table/DataTableCheckbox.vue.js +2 -2
  22. package/dist/v2/features/operation/Operation.vue.js +1 -1
  23. package/dist/v2/features/operation/helpers/combine-params.d.ts +2 -2
  24. package/dist/v2/features/operation/helpers/combine-params.d.ts.map +1 -1
  25. package/dist/v2/features/operation/helpers/combine-params.js +11 -10
  26. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  27. package/dist/views/Request/libs/oauth2.d.ts.map +1 -1
  28. package/dist/views/Request/libs/oauth2.js +1 -1
  29. package/package.json +15 -15
@@ -1 +1 @@
1
- {"version":3,"file":"build-request.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/operation-block/helpers/build-request.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AAGnE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qEAAqE,CAAA;AACxG,OAAO,KAAK,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AACtH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uDAAuD,CAAA;AAG5F,OAAO,EAAU,KAAK,aAAa,EAAkB,MAAM,eAAe,CAAA;AAU1E;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,YAAY,GAAI,iHAU1B;IACD,8CAA8C;IAC9C,WAAW,EAAE,kBAAkB,CAAA;IAC/B,qCAAqC;IACrC,UAAU,EAAE,MAAM,CAAA;IAClB,mCAAmC;IACnC,aAAa,EAAE,aAAa,EAAE,CAAA;IAC9B,uCAAuC;IACvC,MAAM,EAAE,UAAU,CAAA;IAClB,2BAA2B;IAC3B,SAAS,EAAE,eAAe,CAAA;IAC1B,gCAAgC;IAChC,IAAI,EAAE,MAAM,CAAA;IACZ,oDAAoD;IACpD,QAAQ,EAAE,MAAM,CAAA;IAChB,wBAAwB;IACxB,MAAM,EAAE,YAAY,GAAG,IAAI,CAAA;IAC3B,8DAA8D;IAC9D,uBAAuB,EAAE,oBAAoB,EAAE,CAAA;CAChD,KAAG,aAAa,CAAC;IAChB,UAAU,EAAE,eAAe,CAAA;IAC3B,OAAO,EAAE,OAAO,CAAA;IAChB,YAAY,EAAE,OAAO,CAAA;CACtB,CA0FA,CAAA"}
1
+ {"version":3,"file":"build-request.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/operation-block/helpers/build-request.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AAGnE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qEAAqE,CAAA;AACxG,OAAO,KAAK,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AACtH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uDAAuD,CAAA;AAG5F,OAAO,EAAU,KAAK,aAAa,EAAkB,MAAM,eAAe,CAAA;AAU1E;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,YAAY,GAAI,iHAU1B;IACD,8CAA8C;IAC9C,WAAW,EAAE,kBAAkB,CAAA;IAC/B,qCAAqC;IACrC,UAAU,EAAE,MAAM,CAAA;IAClB,mCAAmC;IACnC,aAAa,EAAE,aAAa,EAAE,CAAA;IAC9B,uCAAuC;IACvC,MAAM,EAAE,UAAU,CAAA;IAClB,2BAA2B;IAC3B,SAAS,EAAE,eAAe,CAAA;IAC1B,gCAAgC;IAChC,IAAI,EAAE,MAAM,CAAA;IACZ,oDAAoD;IACpD,QAAQ,EAAE,MAAM,CAAA;IAChB,wBAAwB;IACxB,MAAM,EAAE,YAAY,GAAG,IAAI,CAAA;IAC3B,8DAA8D;IAC9D,uBAAuB,EAAE,oBAAoB,EAAE,CAAA;CAChD,KAAG,aAAa,CAAC;IAChB,UAAU,EAAE,eAAe,CAAA;IAC3B,OAAO,EAAE,OAAO,CAAA;IAChB,YAAY,EAAE,OAAO,CAAA;CACtB,CA2FA,CAAA"}
@@ -1,69 +1,70 @@
1
- import { shouldUseProxy as v, redirectToProxy as w } from "@scalar/oas-utils/helpers";
2
- import { getResolvedRef as A } from "@scalar/workspace-store/helpers/get-resolved-ref";
1
+ import { canMethodHaveBody as S } from "@scalar/helpers/http/can-method-have-body";
2
+ import { shouldUseProxy as w, redirectToProxy as A } from "@scalar/helpers/url/redirect-to-proxy";
3
+ import { getResolvedRef as B } from "@scalar/workspace-store/helpers/get-resolved-ref";
3
4
  import { isElectron as U } from "../../../../libs/electron.js";
4
5
  import { ERRORS as h, normalizeError as D } from "../../../../libs/errors.js";
5
6
  import { getEnvironmentVariables as L } from "./get-environment-variables.js";
6
- import { getResolvedUrl as B } from "./get-resolved-url.js";
7
- import { getDefaultHeaders as T } from "../../request-block/helpers/get-default-headers.js";
8
- import { buildRequestBody as V } from "./build-request-body.js";
9
- import { buildRequestCookieHeader as I } from "./build-request-cookie-header.js";
10
- import { buildRequestParameters as _ } from "./build-request-parameters.js";
11
- import { buildRequestSecurity as x } from "./build-request-security.js";
12
- const W = ({
13
- environment: m,
7
+ import { getResolvedUrl as T } from "./get-resolved-url.js";
8
+ import { getDefaultHeaders as V } from "../../request-block/helpers/get-default-headers.js";
9
+ import { buildRequestBody as I } from "./build-request-body.js";
10
+ import { buildRequestCookieHeader as _ } from "./build-request-cookie-header.js";
11
+ import { buildRequestParameters as x } from "./build-request-parameters.js";
12
+ import { buildRequestSecurity as F } from "./build-request-security.js";
13
+ const $ = ({
14
+ environment: c,
14
15
  exampleKey: r = "default",
15
16
  globalCookies: k,
16
- method: c,
17
+ method: n,
17
18
  operation: o,
18
19
  path: C,
19
20
  proxyUrl: f,
20
- server: P,
21
- selectedSecuritySchemes: q
21
+ server: H,
22
+ selectedSecuritySchemes: P
22
23
  }) => {
23
24
  try {
24
- const n = A(o.requestBody), t = L(m), s = _(o.parameters ?? [], t, r), d = x(q, t), H = T({ method: c, operation: o, exampleKey: r, hideDisabledHeaders: !0 }).filter((l) => !l.isOverridden).reduce(
25
+ const d = B(o.requestBody), t = L(c), s = x(o.parameters ?? [], t, r), u = F(P, t), q = V({ method: n, operation: o, exampleKey: r, hideDisabledHeaders: !0 }).filter((l) => !l.isOverridden).reduce(
25
26
  (l, g) => (l[g.name] = g.defaultValue, l),
26
27
  {}
27
- ), e = new Headers({ ...H, ...s.headers, ...d.headers }), E = new URLSearchParams([...s.urlParams, ...d.urlParams]), a = V(n, t, r);
28
+ ), e = new Headers({ ...q, ...s.headers, ...u.headers }), y = new URLSearchParams([...s.urlParams, ...u.urlParams]), a = S(n) ? I(d, t, r) : null;
28
29
  a && (a instanceof FormData || a instanceof URLSearchParams) && e.delete("Content-Type");
29
- const i = B({ environment: m, server: P, path: C, pathVariables: s.pathVariables, urlParams: E });
30
+ const i = T({ environment: c, server: H, path: C, pathVariables: s.pathVariables, urlParams: y });
30
31
  if (!i)
31
32
  throw h.URL_EMPTY;
32
- const R = v(f, i), y = w(f, i), b = e.get("User-Agent");
33
- U() && b && e.set("X-Scalar-User-Agent", b);
34
- const u = I({
35
- paramCookies: [...s.cookies, ...d.cookies],
33
+ const p = w(f, i), E = A(f, i), R = e.get("User-Agent");
34
+ U() && R && e.set("X-Scalar-User-Agent", R);
35
+ const m = _({
36
+ paramCookies: [...s.cookies, ...u.cookies],
36
37
  globalCookies: k,
37
38
  env: t,
38
39
  originalCookieHeader: e.get("Cookie"),
39
40
  url: i,
40
- useCustomCookieHeader: U() || R,
41
+ useCustomCookieHeader: U() || p,
41
42
  disabledGlobalCookies: o["x-scalar-disable-parameters"]?.["global-cookies"]?.[r] ?? {}
42
43
  });
43
- u && e.set(u.name, u.value);
44
- const p = new AbortController(), S = new Request(y, {
44
+ m && e.set(m.name, m.value);
45
+ const b = new AbortController(), v = new Request(E, {
45
46
  /**
46
47
  * Ensure that all methods are uppercased (though only needed for patch)
47
48
  *
48
49
  * @see https://github.com/whatwg/fetch/issues/50
49
50
  */
50
- method: c.toUpperCase(),
51
+ method: n.toUpperCase(),
51
52
  headers: e,
52
- signal: p.signal,
53
+ signal: b.signal,
53
54
  body: a
54
55
  });
55
56
  return [
56
57
  null,
57
58
  {
58
- controller: p,
59
- isUsingProxy: R,
60
- request: S
59
+ controller: b,
60
+ isUsingProxy: p,
61
+ request: v
61
62
  }
62
63
  ];
63
- } catch (n) {
64
- return [D(n, h.BUILDING_REQUEST_FAILED), null];
64
+ } catch (d) {
65
+ return [D(d, h.BUILDING_REQUEST_FAILED), null];
65
66
  }
66
67
  };
67
68
  export {
68
- W as buildRequest
69
+ $ as buildRequest
69
70
  };
@@ -1 +1 @@
1
- {"version":3,"file":"RequestBlock.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/blocks/request-block/RequestBlock.vue"],"names":[],"mappings":"AAsiBA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AAEnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,KAAK,EAEV,QAAQ,EACR,iBAAiB,EAClB,MAAM,gCAAgC,CAAA;AAGvC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qEAAqE,CAAA;AACxG,OAAO,KAAK,EACV,eAAe,EACf,eAAe,EACf,oBAAoB,EACpB,YAAY,EACb,MAAM,8DAA8D,CAAA;AAKrE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAI3C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAA;AAW1E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAWxD,MAAM,MAAM,oBAAoB,GAAG,aAAa,GAAG;IACjD,QAAQ,EAAE,UAAU,GAAG,WAAW,CAAA;CACnC,CAAA;AAED,KAAK,WAAW,GAAG;IACjB,gBAAgB,EAAE,eAAe,CAAC,4BAA4B,CAAC,CAAA;IAC/D,QAAQ,EAAE,QAAQ,CAAA;IAClB,aAAa,EAAE,iBAAiB,EAAE,CAAA;IAClC,WAAW,EAAE,kBAAkB,CAAA;IAC/B,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,UAAU,EAAE,MAAM,CAAA;IAClB,MAAM,EAAE,YAAY,CAAA;IACpB,MAAM,EAAE,UAAU,CAAA;IAClB,SAAS,EAAE,eAAe,CAAA;IAC1B,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,YAAY,EAAE,CAAA;IACvB,QAAQ,EAAE,MAAM,CAAA;IAChB,oBAAoB,EAAE,eAAe,CAAC,UAAU,CAAC,CAAA;IACjD,eAAe,EAAE,WAAW,CAAC,eAAe,CAAC,YAAY,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAA;IAC9E,cAAc,EAAE,cAAc,CAAC,WAAW,CAAC,CAAC,yBAAyB,CAAC,CAAA;IACtE,uBAAuB,EAAE,oBAAoB,EAAE,CAAA;IAC/C,MAAM,EAAE,YAAY,GAAG,IAAI,CAAA;IAC3B,aAAa,EAAE,oBAAoB,EAAE,CAAA;CACtC,CAAC;;AAkqBF,wBAMG"}
1
+ {"version":3,"file":"RequestBlock.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/blocks/request-block/RequestBlock.vue"],"names":[],"mappings":"AAuiBA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AAEnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,KAAK,EAEV,QAAQ,EACR,iBAAiB,EAClB,MAAM,gCAAgC,CAAA;AAGvC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qEAAqE,CAAA;AACxG,OAAO,KAAK,EACV,eAAe,EACf,eAAe,EACf,oBAAoB,EACpB,YAAY,EACb,MAAM,8DAA8D,CAAA;AAKrE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAI3C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAA;AAW1E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAWxD,MAAM,MAAM,oBAAoB,GAAG,aAAa,GAAG;IACjD,QAAQ,EAAE,UAAU,GAAG,WAAW,CAAA;CACnC,CAAA;AAED,KAAK,WAAW,GAAG;IACjB,gBAAgB,EAAE,eAAe,CAAC,4BAA4B,CAAC,CAAA;IAC/D,QAAQ,EAAE,QAAQ,CAAA;IAClB,aAAa,EAAE,iBAAiB,EAAE,CAAA;IAClC,WAAW,EAAE,kBAAkB,CAAA;IAC/B,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,UAAU,EAAE,MAAM,CAAA;IAClB,MAAM,EAAE,YAAY,CAAA;IACpB,MAAM,EAAE,UAAU,CAAA;IAClB,SAAS,EAAE,eAAe,CAAA;IAC1B,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,YAAY,EAAE,CAAA;IACvB,QAAQ,EAAE,MAAM,CAAA;IAChB,oBAAoB,EAAE,eAAe,CAAC,UAAU,CAAC,CAAA;IACjD,eAAe,EAAE,WAAW,CAAC,eAAe,CAAC,YAAY,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAA;IAC9E,cAAc,EAAE,cAAc,CAAC,WAAW,CAAC,CAAC,yBAAyB,CAAC,CAAA;IACtE,uBAAuB,EAAE,oBAAoB,EAAE,CAAA;IAC/C,MAAM,EAAE,YAAY,GAAG,IAAI,CAAA;IAC3B,aAAa,EAAE,oBAAoB,EAAE,CAAA;CACtC,CAAC;;AAmqBF,wBAMG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./RequestBlock.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-175541a7"]]);
4
+ const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-8c6cdddb"]]);
5
5
  export {
6
- m as default
6
+ e as default
7
7
  };
@@ -9,8 +9,8 @@ import le from "../../../components/ViewLayout/ViewLayoutSection.vue.js";
9
9
  import { filterGlobalCookie as ne } from "../operation-block/helpers/filter-global-cookies.js";
10
10
  import { getExample as oe } from "../operation-block/helpers/get-example.js";
11
11
  import { getResolvedUrl as re } from "../operation-block/helpers/get-resolved-url.js";
12
- import ue from "./components/RequestBody.vue.js";
13
- import ie from "./components/RequestCodeSnippet.vue.js";
12
+ import ie from "./components/RequestBody.vue.js";
13
+ import ue from "./components/RequestCodeSnippet.vue.js";
14
14
  import k from "./components/RequestParams.vue.js";
15
15
  import { createParameterHandlers as S } from "./helpers/create-parameter-handlers.js";
16
16
  import { getDefaultHeaders as se } from "./helpers/get-default-headers.js";
@@ -60,7 +60,8 @@ const ve = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg
60
60
  description: t.description,
61
61
  schema: me(t),
62
62
  isRequired: t.required,
63
- isDisabled: de(t, a)
63
+ isDisabled: de(t, a),
64
+ originalParameter: t
64
65
  };
65
66
  }
66
67
  )
@@ -112,10 +113,10 @@ const ve = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg
112
113
  isReadonly: !0,
113
114
  isDisabled: a[l.name.toLowerCase()] ?? !1
114
115
  })) ?? [];
115
- }), p = n(() => [
116
+ }), H = n(() => [
116
117
  ...P.value ?? [],
117
118
  ...o.value.cookie ?? []
118
- ]), u = z("All"), T = [
119
+ ]), i = z("All"), T = [
119
120
  "Auth",
120
121
  "Variables",
121
122
  "Cookies",
@@ -130,20 +131,20 @@ const ve = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg
130
131
  Headers: s(),
131
132
  Query: s(),
132
133
  Body: s()
133
- }, H = n(() => {
134
+ }, O = n(() => {
134
135
  const t = /* @__PURE__ */ new Set(["All", ...T]);
135
- return o.value.path?.length || t.delete("Variables"), w(e.method) || t.delete("Body"), O.value && t.delete("Auth"), [...t];
136
- }), i = n(
136
+ return o.value.path?.length || t.delete("Variables"), w(e.method) || t.delete("Body"), U.value && t.delete("Auth"), [...t];
137
+ }), u = n(
137
138
  () => Object.fromEntries(
138
- H.value.map((t) => [t, $[t]])
139
+ O.value.map((t) => [t, $[t]])
139
140
  )
140
- ), O = n(
141
+ ), U = n(
141
142
  () => e.layout === "modal" && !e.operation.security && !Object.keys(e.securitySchemes ?? {}).length
142
- ), L = n(() => e.operation.summary ? e.operation.summary : e.path.replace(ee.PROTOCOL, "") || "Request Name"), h = (t) => u.value === "All" || u.value === t;
143
+ ), L = n(() => e.operation.summary ? e.operation.summary : e.path.replace(ee.PROTOCOL, "") || "Request Name"), h = (t) => i.value === "All" || i.value === t;
143
144
  X(
144
145
  () => e.method,
145
146
  (t) => {
146
- u.value === "Body" && !w(t) && (u.value = "All");
147
+ i.value === "Body" && !w(t) && (i.value = "All");
147
148
  }
148
149
  );
149
150
  const F = (t) => {
@@ -157,7 +158,7 @@ const ve = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg
157
158
  context: o.value.path ?? []
158
159
  }),
159
160
  cookie: S("cookie", e.eventBus, r.value, {
160
- context: p.value ?? [],
161
+ context: H.value ?? [],
161
162
  globalParameters: P.value.length
162
163
  }),
163
164
  header: S("header", e.eventBus, r.value, {
@@ -202,7 +203,7 @@ const ve = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg
202
203
  debounceKey: l
203
204
  }
204
205
  );
205
- }, U = s();
206
+ }, p = s();
206
207
  return (t, a) => (d(), C(le, {
207
208
  "aria-label": `Request: ${e.operation.summary}`
208
209
  }, {
@@ -211,11 +212,11 @@ const ve = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg
211
212
  e.layout !== "modal" ? (d(), x("label", {
212
213
  key: 0,
213
214
  class: "pointer-events-auto absolute top-0 left-0 h-full w-full cursor-text opacity-0",
214
- for: v(U)
215
+ for: v(p)
215
216
  }, null, 8, ye)) : E("", !0),
216
217
  e.layout !== "modal" ? (d(), x("input", {
217
218
  key: 1,
218
- id: v(U),
219
+ id: v(p),
219
220
  class: "text-c-1 group-hover-input pointer-events-auto relative z-10 -ml-0.5 h-8 w-full rounded pl-1.25 has-[:focus-visible]:outline md:-ml-1.25",
220
221
  placeholder: L.value,
221
222
  value: e.operation.summary,
@@ -223,20 +224,20 @@ const ve = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg
223
224
  }, null, 40, he)) : (d(), x("span", fe, Z(e.operation.summary), 1))
224
225
  ]),
225
226
  m(ae, {
226
- modelValue: u.value,
227
- "onUpdate:modelValue": a[0] || (a[0] = (l) => u.value = l),
228
- filterIds: i.value,
229
- filters: H.value
227
+ modelValue: i.value,
228
+ "onUpdate:modelValue": a[0] || (a[0] = (l) => i.value = l),
229
+ filterIds: u.value,
230
+ filters: O.value
230
231
  }, null, 8, ["modelValue", "filterIds", "filters"])
231
232
  ]),
232
233
  default: q(() => [
233
234
  K("div", {
234
- id: i.value.All,
235
+ id: u.value.All,
235
236
  class: "request-section-content custom-scroll relative flex flex-1 flex-col",
236
- role: u.value === "All" ? "tabpanel" : "none"
237
+ role: i.value === "All" ? "tabpanel" : "none"
237
238
  }, [
238
239
  c(m(v(ce), {
239
- id: i.value.Auth,
240
+ id: u.value.Auth,
240
241
  environment: e.environment,
241
242
  eventBus: e.eventBus,
242
243
  meta: e.authMeta,
@@ -248,10 +249,10 @@ const ve = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg
248
249
  server: e.server,
249
250
  title: "Authentication"
250
251
  }, null, 8, ["id", "environment", "eventBus", "meta", "proxyUrl", "securityRequirements", "securitySchemes", "selectedSecurity", "selectedSecuritySchemes", "server"]), [
251
- [y, h("Auth") && !O.value]
252
+ [y, h("Auth") && !U.value]
252
253
  ]),
253
254
  c(m(k, B({
254
- id: i.value.Variables,
255
+ id: u.value.Variables,
255
256
  environment: e.environment,
256
257
  eventBus: e.eventBus,
257
258
  exampleKey: e.exampleKey,
@@ -262,18 +263,18 @@ const ve = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg
262
263
  [y, h("Variables") && o.value.path?.length]
263
264
  ]),
264
265
  c(m(k, B({
265
- id: i.value.Cookies,
266
+ id: u.value.Cookies,
266
267
  environment: e.environment,
267
268
  eventBus: e.eventBus,
268
269
  exampleKey: e.exampleKey,
269
- rows: p.value ?? [],
270
+ rows: H.value ?? [],
270
271
  showAddRowPlaceholder: !0,
271
272
  title: "Cookies"
272
273
  }, b(f.value.cookie)), null, 16, ["id", "environment", "eventBus", "exampleKey", "rows"]), [
273
274
  [y, h("Cookies")]
274
275
  ]),
275
276
  c(m(k, B({
276
- id: i.value.Headers,
277
+ id: u.value.Headers,
277
278
  environment: e.environment,
278
279
  eventBus: e.eventBus,
279
280
  exampleKey: e.exampleKey,
@@ -283,7 +284,7 @@ const ve = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg
283
284
  [y, h("Headers")]
284
285
  ]),
285
286
  c(m(k, B({
286
- id: i.value.Query,
287
+ id: u.value.Query,
287
288
  environment: e.environment,
288
289
  eventBus: e.eventBus,
289
290
  exampleKey: e.exampleKey,
@@ -292,8 +293,8 @@ const ve = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg
292
293
  }, b(f.value.query)), null, 16, ["id", "environment", "eventBus", "exampleKey", "rows"]), [
293
294
  [y, h("Query")]
294
295
  ]),
295
- c(m(ue, {
296
- id: i.value.Body,
296
+ c(m(ie, {
297
+ id: u.value.Body,
297
298
  environment: e.environment,
298
299
  exampleKey: e.exampleKey,
299
300
  requestBody: v(R)(e.operation.requestBody),
@@ -315,7 +316,7 @@ const ve = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg
315
316
  _: 2
316
317
  }, 1024))), 128)),
317
318
  a[1] || (a[1] = K("div", { class: "flex flex-grow" }, null, -1)),
318
- c(m(ie, {
319
+ c(m(ue, {
319
320
  clientOptions: e.clientOptions,
320
321
  eventBus: e.eventBus,
321
322
  globalCookies: e.globalCookies,
@@ -328,7 +329,7 @@ const ve = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg
328
329
  selectedContentType: v(R)(e.operation.requestBody)?.["x-scalar-selected-content-type"]?.[e.exampleKey],
329
330
  selectedServer: e.server ?? void 0
330
331
  }, null, 8, ["clientOptions", "eventBus", "globalCookies", "method", "operation", "path", "securitySchemes", "selectedClient", "selectedContentType", "selectedServer"]), [
331
- [y, u.value === "All"]
332
+ [y, i.value === "All"]
332
333
  ])
333
334
  ], 8, xe)
334
335
  ]),
@@ -1,5 +1,5 @@
1
1
  import type { XScalarEnvironment } from '@scalar/workspace-store/schemas/extensions/document/x-scalar-environments';
2
- import type { SchemaObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
2
+ import type { ParameterObject, SchemaObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
3
3
  export type TableRow = {
4
4
  /** The parameter or field name/key */
5
5
  name: string;
@@ -22,6 +22,8 @@ export type TableRow = {
22
22
  isReadonly?: boolean;
23
23
  /** Whether the parameter is overridden later on */
24
24
  isOverridden?: boolean;
25
+ /** Track the original parameter so we can update it */
26
+ originalParameter?: ParameterObject;
25
27
  };
26
28
  type __VLS_Props = {
27
29
  data: TableRow;
@@ -1 +1 @@
1
- {"version":3,"file":"RequestTableRow.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/request-block/components/RequestTableRow.vue"],"names":[],"mappings":"AAoRA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAchG,MAAM,MAAM,QAAQ,GAAG;IACrB,sCAAsC;IACtC,IAAI,EAAE,MAAM,CAAA;IACZ,0DAA0D;IAC1D,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAA;IAC3B,6CAA6C;IAC7C,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,mFAAmF;IACnF,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,iDAAiD;IACjD,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,wEAAwE;IACxE,MAAM,CAAC,EAAE,YAAY,CAAA;IACrB,wCAAwC;IACxC,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,mDAAmD;IACnD,YAAY,CAAC,EAAE,OAAO,CAAA;CACvB,CAAA;AAED,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,QAAQ,CAAA;IACd,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,aAAa,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,EAAE,kBAAkB,CAAA;IAC/B,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC3B,CAAC;;;;;;;cAYmB,MAAM;eAAS,MAAM,GAAG,IAAI;oBAAc,OAAO;;;;;;;;cAAjD,MAAM;eAAS,MAAM,GAAG,IAAI;oBAAc,OAAO;;;AAghBtE,wBAOG"}
1
+ {"version":3,"file":"RequestTableRow.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/request-block/components/RequestTableRow.vue"],"names":[],"mappings":"AAyRA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EACV,eAAe,EACf,YAAY,EACb,MAAM,8DAA8D,CAAA;AAcrE,MAAM,MAAM,QAAQ,GAAG;IACrB,sCAAsC;IACtC,IAAI,EAAE,MAAM,CAAA;IACZ,0DAA0D;IAC1D,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAA;IAC3B,6CAA6C;IAC7C,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,mFAAmF;IACnF,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,iDAAiD;IACjD,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,wEAAwE;IACxE,MAAM,CAAC,EAAE,YAAY,CAAA;IACrB,wCAAwC;IACxC,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,mDAAmD;IACnD,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,uDAAuD;IACvD,iBAAiB,CAAC,EAAE,eAAe,CAAA;CACpC,CAAA;AAED,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,QAAQ,CAAA;IACd,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,aAAa,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,EAAE,kBAAkB,CAAA;IAC/B,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC3B,CAAC;;;;;;;cAYmB,MAAM;eAAS,MAAM,GAAG,IAAI;oBAAc,OAAO;;;;;;;;cAAjD,MAAM;eAAS,MAAM,GAAG,IAAI;oBAAc,OAAO;;;AAghBtE,wBAOG"}
@@ -1,4 +1,4 @@
1
- import { defineComponent as q, ref as x, watch as y, computed as o, createBlock as m, openBlock as d, unref as i, normalizeClass as E, withCtx as s, createVNode as u, createCommentVNode as f, createElementBlock as R, Fragment as N, createElementVNode as h, toDisplayString as P } from "vue";
1
+ import { defineComponent as q, ref as x, watch as y, computed as o, createBlock as m, openBlock as d, unref as t, normalizeClass as E, withCtx as s, createVNode as u, createCommentVNode as f, createElementBlock as R, Fragment as N, createElementVNode as h, toDisplayString as P } from "vue";
2
2
  import { ScalarButton as C, ScalarIconButton as j, ScalarIcon as G } from "@scalar/components";
3
3
  import { ScalarIconTrash as K, ScalarIconGlobe as O } from "@scalar/icons";
4
4
  import { unpackProxyObject as B } from "@scalar/workspace-store/helpers/unpack-proxy";
@@ -27,13 +27,13 @@ const L = { class: "text-c-2 filemask flex w-full max-w-[100%] items-center just
27
27
  const r = S, c = x(e.data.name ?? ""), n = x(B(e.data.value) ?? ""), v = x(e.data.isDisabled ?? !1);
28
28
  y(
29
29
  () => e.data.name,
30
- (l) => c.value = l ?? ""
30
+ (i) => c.value = i ?? ""
31
31
  ), y(
32
32
  () => e.data.value,
33
- (l) => n.value = B(l) ?? ""
33
+ (i) => n.value = B(i) ?? ""
34
34
  ), y(
35
35
  () => e.data.isDisabled,
36
- (l) => v.value = l ?? !1
36
+ (i) => v.value = i ?? !1
37
37
  );
38
38
  const k = o(() => n.value instanceof File), w = o(
39
39
  () => (k.value ? W(n.value) : n.value) ?? ""
@@ -45,14 +45,14 @@ const L = { class: "text-c-2 filemask flex w-full max-w-[100%] items-center just
45
45
  () => e.data.schema && "type" in e.data.schema ? e.data.schema.type : void 0
46
46
  ), V = o(
47
47
  () => A(e.data.schema, n.value)
48
- ), b = (l) => {
49
- l.name !== void 0 && (c.value = l.name), l.value !== void 0 && (n.value = l.value), l.isDisabled !== void 0 && (v.value = l.isDisabled), r("upsertRow", {
48
+ ), b = (i) => {
49
+ i.name !== void 0 && (c.value = i.name), i.value !== void 0 && (n.value = i.value), v.value = i.isDisabled ?? !1, r("upsertRow", {
50
50
  name: c.value,
51
51
  value: n.value,
52
52
  isDisabled: v.value
53
53
  });
54
54
  };
55
- return (l, a) => (d(), m(i(H), {
55
+ return (i, a) => (d(), m(t(H), {
56
56
  id: e.data.name,
57
57
  class: E({
58
58
  alert: V.value.ok === !1,
@@ -60,15 +60,15 @@ const L = { class: "text-c-2 filemask flex w-full max-w-[100%] items-center just
60
60
  })
61
61
  }, {
62
62
  default: s(() => [
63
- u(i(J), {
63
+ u(t(J), {
64
64
  class: "!border-r",
65
65
  disabled: e.hasCheckboxDisabled ?? !1,
66
66
  modelValue: !v.value,
67
- "onUpdate:modelValue": a[0] || (a[0] = (t) => b({ isDisabled: !t }))
67
+ "onUpdate:modelValue": a[0] || (a[0] = (l) => b({ isDisabled: !l }))
68
68
  }, null, 8, ["disabled", "modelValue"]),
69
- u(i(g), null, {
69
+ u(t(g), null, {
70
70
  default: s(() => [
71
- u(i(F), {
71
+ u(t(F), {
72
72
  "aria-label": `${e.label} Key`,
73
73
  disableCloseBrackets: "",
74
74
  disabled: e.data.isReadonly,
@@ -79,15 +79,15 @@ const L = { class: "text-c-2 filemask flex w-full max-w-[100%] items-center just
79
79
  modelValue: c.value,
80
80
  placeholder: "Key",
81
81
  required: !!e.data.isRequired,
82
- onSelectVariable: a[1] || (a[1] = (t) => b({ name: t })),
83
- "onUpdate:modelValue": a[2] || (a[2] = (t) => b({ name: t }))
82
+ onSelectVariable: a[1] || (a[1] = (l) => b({ name: l })),
83
+ "onUpdate:modelValue": a[2] || (a[2] = (l) => b({ name: l }))
84
84
  }, null, 8, ["aria-label", "disabled", "environment", "modelValue", "required"])
85
85
  ]),
86
86
  _: 1
87
87
  }),
88
- u(i(g), null, {
88
+ u(t(g), null, {
89
89
  default: s(() => [
90
- u(i(F), {
90
+ u(t(F), {
91
91
  "aria-label": `${e.label} Value`,
92
92
  class: "pr-6 group-hover:pr-10 group-has-[.cm-focused]:pr-10",
93
93
  default: z.value,
@@ -97,7 +97,7 @@ const L = { class: "text-c-2 filemask flex w-full max-w-[100%] items-center just
97
97
  disableTabIndent: "",
98
98
  enum: I.value ?? [],
99
99
  environment: e.environment,
100
- examples: e.data.schema?.examples?.map((t) => String(t)) ?? [],
100
+ examples: e.data.schema?.examples?.map((l) => String(l)) ?? [],
101
101
  linethrough: e.data.isOverridden,
102
102
  lineWrapping: "",
103
103
  max: $.value,
@@ -105,30 +105,30 @@ const L = { class: "text-c-2 filemask flex w-full max-w-[100%] items-center just
105
105
  modelValue: w.value,
106
106
  placeholder: "Value",
107
107
  type: U.value,
108
- "onUpdate:modelValue": a[5] || (a[5] = (t) => b({ value: t }))
108
+ "onUpdate:modelValue": a[5] || (a[5] = (l) => b({ value: l }))
109
109
  }, {
110
110
  icon: s(() => [
111
- (e.data.name || n.value) && !e.data.isRequired && e.data.isReadonly !== !0 ? (d(), m(i(C), {
111
+ (e.data.name || n.value) && !e.data.isRequired && e.data.isReadonly !== !0 ? (d(), m(t(C), {
112
112
  key: 0,
113
113
  class: "text-c-2 hover:text-c-1 hover:bg-b-2 z-context -mr-0.5 hidden h-fit rounded p-1 group-hover:flex group-has-[.cm-focused]:flex",
114
114
  size: "sm",
115
115
  variant: "ghost",
116
- onClick: a[3] || (a[3] = (t) => r("deleteRow"))
116
+ onClick: a[3] || (a[3] = (l) => r("deleteRow"))
117
117
  }, {
118
118
  default: s(() => [
119
- u(i(K), { class: "size-3.5" })
119
+ u(t(K), { class: "size-3.5" })
120
120
  ]),
121
121
  _: 1
122
122
  })) : f("", !0),
123
- e.data.globalRoute !== void 0 ? (d(), m(i(j), {
123
+ e.data.globalRoute !== void 0 ? (d(), m(t(j), {
124
124
  key: 1,
125
125
  class: "text-c-2 hover:text-c-1 hover:bg-b-2 z-context -mr-0.5 h-fit",
126
- icon: i(O),
126
+ icon: t(O),
127
127
  label: "Global cookies are shared across the whole workspace. Click to navigate.",
128
128
  size: "xs",
129
129
  tooltip: "top",
130
130
  variant: "ghost",
131
- onClick: a[4] || (a[4] = (t) => r("navigate", e.data.globalRoute))
131
+ onClick: a[4] || (a[4] = (l) => r("navigate", e.data.globalRoute))
132
132
  }, null, 8, ["icon"])) : f("", !0),
133
133
  e.data.isReadonly ? (d(), m(D, {
134
134
  key: 2,
@@ -146,7 +146,7 @@ const L = { class: "text-c-2 filemask flex w-full max-w-[100%] items-center just
146
146
  ]),
147
147
  _: 1
148
148
  }),
149
- e.showUploadButton ? (d(), m(i(g), {
149
+ e.showUploadButton ? (d(), m(t(g), {
150
150
  key: 0,
151
151
  class: "group/upload flex items-center justify-center whitespace-nowrap"
152
152
  }, {
@@ -158,18 +158,18 @@ const L = { class: "text-c-2 filemask flex w-full max-w-[100%] items-center just
158
158
  h("button", {
159
159
  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",
160
160
  type: "button",
161
- onClick: a[6] || (a[6] = (t) => r("removeFile"))
161
+ onClick: a[6] || (a[6] = (l) => r("removeFile"))
162
162
  }, " Delete ")
163
163
  ], 64)) : (d(), R("div", M, [
164
- u(i(C), {
164
+ u(t(C), {
165
165
  class: "bg-b-2 hover:bg-b-3 text-c-2 h-fit border-0 py-px shadow-none",
166
166
  size: "sm",
167
167
  variant: "outlined",
168
- onClick: a[7] || (a[7] = (t) => r("uploadFile"))
168
+ onClick: a[7] || (a[7] = (l) => r("uploadFile"))
169
169
  }, {
170
170
  default: s(() => [
171
171
  a[8] || (a[8] = h("span", null, "Select File", -1)),
172
- u(i(G), {
172
+ u(t(G), {
173
173
  class: "ml-1",
174
174
  icon: "Upload",
175
175
  size: "xs",
@@ -1 +1 @@
1
- {"version":3,"file":"create-parameter-handlers.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/request-block/helpers/create-parameter-handlers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAE7F,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0DAA0D,CAAA;AAExF,KAAK,aAAa,GAAG,MAAM,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAA;AAE3D,uDAAuD;AACvD,eAAO,MAAM,uBAAuB,GAClC,MAAM,aAAa,EACnB,UAAU,iBAAiB,EAC3B,MAAM,oBAAoB,EAC1B,mDAIG;IACD,OAAO,EAAE,QAAQ,EAAE,CAAA;IACnB,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAC1B;sBAKmB;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE;;oBAWnB,MAAM,WAAW;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,OAAO,CAAA;KAAE;CA8BxF,CAAA"}
1
+ {"version":3,"file":"create-parameter-handlers.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/request-block/helpers/create-parameter-handlers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAE7F,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0DAA0D,CAAA;AAExF,KAAK,aAAa,GAAG,MAAM,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAA;AAE3D,uDAAuD;AACvD,eAAO,MAAM,uBAAuB,GAClC,MAAM,aAAa,EACnB,UAAU,iBAAiB,EAC3B,MAAM,oBAAoB,EAC1B,mDAIG;IACD,OAAO,EAAE,QAAQ,EAAE,CAAA;IACnB,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAC1B;sBAKmB;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE;;oBAqBnB,MAAM,WAAW;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,OAAO,CAAA;KAAE;CA+BxF,CAAA"}
@@ -1,46 +1,55 @@
1
- const d = (r, t, a, {
1
+ const c = (a, t, o, {
2
2
  context: n,
3
3
  defaultParameters: i = 0,
4
- globalParameters: p = 0
4
+ globalParameters: l = 0
5
5
  }) => {
6
- const o = i + p;
6
+ const p = i + l;
7
7
  return {
8
- delete: (e) => t.emit("operation:delete:parameter", {
9
- type: r,
10
- index: e.index - o,
11
- meta: a
12
- }),
8
+ delete: (e) => {
9
+ const r = n[e.index]?.originalParameter;
10
+ r && t.emit(
11
+ "operation:delete:parameter",
12
+ {
13
+ originalParameter: r,
14
+ meta: o
15
+ },
16
+ {
17
+ skipUnpackProxy: !0
18
+ }
19
+ );
20
+ },
13
21
  deleteAll: () => t.emit("operation:delete-all:parameters", {
14
- type: r,
15
- meta: a
22
+ type: a,
23
+ meta: o
16
24
  }),
17
- upsert: (e, l) => {
25
+ upsert: (e, r) => {
18
26
  const s = n[e];
19
- if (e < i + p) {
27
+ if (e < i + l) {
20
28
  const m = e < i ? "default" : "global";
21
29
  return t.emit("operation:update:extra-parameters", {
22
30
  type: m,
23
- in: r,
24
- meta: { ...a, name: s?.name?.toLowerCase?.() ?? "NON_VALID" },
25
- payload: { isDisabled: l.isDisabled ?? !1 }
31
+ in: a,
32
+ meta: { ...o, name: s?.name?.toLowerCase?.() ?? "NON_VALID" },
33
+ payload: { isDisabled: r.isDisabled ?? !1 }
26
34
  });
27
35
  }
28
- if (e >= o)
36
+ if (e >= p)
29
37
  return t.emit(
30
38
  "operation:upsert:parameter",
31
39
  {
32
- type: r,
33
- index: e - o,
34
- payload: l,
35
- meta: a
40
+ type: a,
41
+ payload: r,
42
+ originalParameter: s?.originalParameter ?? null,
43
+ meta: o
36
44
  },
37
45
  {
38
- debounceKey: `update:parameter-${r}-${e - o}`
46
+ skipUnpackProxy: !0,
47
+ debounceKey: `update:parameter-${a}-${e - p}`
39
48
  }
40
49
  );
41
50
  }
42
51
  };
43
52
  };
44
53
  export {
45
- d as createParameterHandlers
54
+ c as createParameterHandlers
46
55
  };
@@ -1,7 +1,7 @@
1
1
  import { canMethodHaveBody as p } from "@scalar/helpers/http/can-method-have-body";
2
2
  import { getResolvedRef as n } from "@scalar/workspace-store/helpers/get-resolved-ref";
3
3
  import { isElectron as u } from "../../../../libs/electron.js";
4
- const i = "2.20.0", m = "application/json", h = "*/*", c = (r, t, a) => ({
4
+ const i = "2.20.2", m = "application/json", h = "*/*", c = (r, t, a) => ({
5
5
  name: r,
6
6
  defaultValue: t,
7
7
  isOverridden: a.has(r.toLowerCase())
@@ -1,5 +1,5 @@
1
1
  import { makeUrlAbsolute as b } from "@scalar/helpers/url/make-url-absolute";
2
- import { shouldUseProxy as E } from "@scalar/oas-utils/helpers";
2
+ import { shouldUseProxy as E } from "@scalar/helpers/url/redirect-to-proxy";
3
3
  import { encode as A, fromUint8Array as C } from "js-base64";
4
4
  const S = () => {
5
5
  const s = new Uint8Array(32);
@@ -11,7 +11,7 @@ const h = ["checked", "disabled"], x = /* @__PURE__ */ i({
11
11
  emits: ["update:modelValue"],
12
12
  setup(e) {
13
13
  const c = p({
14
- base: "w-8 h-8 flex items-center justify-center text-border peer-checked:text-c-1 pointer-events-none absolute",
14
+ base: "w-8 h-8 flex items-center justify-center text-b-2 peer-checked:text-c-1 pointer-events-none absolute",
15
15
  variants: {
16
16
  align: {
17
17
  left: "left-0",
@@ -34,7 +34,7 @@ const h = ["checked", "disabled"], x = /* @__PURE__ */ i({
34
34
  t("div", {
35
35
  class: l([
36
36
  "absolute m-auto size-3/4 rounded border-[1px] opacity-0",
37
- !e.disabled && "group-has-[:focus-visible]/cell:border-c-accent group-hover/cell:opacity-100 group-has-[:focus-visible]/cell:opacity-100"
37
+ !e.disabled && "group-has-[:focus-visible]/cell:border-c-accent group-hover:opacity-100 group-has-[:focus-visible]/cell:opacity-100"
38
38
  ])
39
39
  }, null, 2),
40
40
  m(o(b), {
@@ -69,7 +69,7 @@ const b = {
69
69
  type: "document"
70
70
  }), h = n(
71
71
  () => C(o(e.options)?.hiddenClients)
72
- ), f = "2.20.0";
72
+ ), f = "2.20.2";
73
73
  return (t, a) => e.path && e.method && e.exampleName && l.value ? (c(), x(i(p), {
74
74
  key: 0,
75
75
  appVersion: i(f),