@scalar/api-client 2.22.1 → 2.22.3

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 (73) hide show
  1. package/CHANGELOG.md +71 -0
  2. package/dist/hooks/useClientConfig.d.ts +6 -3
  3. package/dist/hooks/useClientConfig.d.ts.map +1 -1
  4. package/dist/style.css +1 -1
  5. package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.d.ts.map +1 -1
  6. package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.js +2 -2
  7. package/dist/v2/blocks/request-block/helpers/get-default-headers.d.ts.map +1 -1
  8. package/dist/v2/blocks/request-block/helpers/get-default-headers.js +9 -9
  9. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts.map +1 -1
  10. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.js +2 -2
  11. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue2.js +101 -98
  12. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue.d.ts +2 -0
  13. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue.d.ts.map +1 -1
  14. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue.js +2 -2
  15. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue2.js +43 -37
  16. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts.map +1 -1
  17. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.js +45 -43
  18. package/dist/v2/components/code-input/CodeInput.vue.d.ts +0 -6
  19. package/dist/v2/components/code-input/CodeInput.vue.d.ts.map +1 -1
  20. package/dist/v2/components/code-input/CodeInput.vue.js +1 -1
  21. package/dist/v2/components/code-input/CodeInput.vue2.js +50 -63
  22. package/dist/v2/components/layout/ValueEmitter.vue.d.ts +6 -2
  23. package/dist/v2/components/layout/ValueEmitter.vue.d.ts.map +1 -1
  24. package/dist/v2/components/layout/ValueEmitter.vue.js +10 -10
  25. package/dist/v2/components/server/ServerDropdown.vue.d.ts +2 -0
  26. package/dist/v2/components/server/ServerDropdown.vue.d.ts.map +1 -1
  27. package/dist/v2/components/server/ServerDropdown.vue.js +48 -42
  28. package/dist/v2/components/sidebar/Sidebar.vue.d.ts +0 -3
  29. package/dist/v2/components/sidebar/Sidebar.vue.d.ts.map +1 -1
  30. package/dist/v2/components/sidebar/Sidebar.vue.js +55 -53
  31. package/dist/v2/features/app/App.vue.d.ts.map +1 -1
  32. package/dist/v2/features/app/App.vue.js +48 -46
  33. package/dist/v2/features/app/app-state.d.ts +23 -12
  34. package/dist/v2/features/app/app-state.d.ts.map +1 -1
  35. package/dist/v2/features/app/app-state.js +204 -168
  36. package/dist/v2/features/app/components/AppSidebar.vue.d.ts.map +1 -1
  37. package/dist/v2/features/app/components/AppSidebar.vue.js +1 -1
  38. package/dist/v2/features/app/components/AppSidebar.vue2.js +137 -127
  39. package/dist/v2/features/app/helpers/routes.d.ts +1 -1
  40. package/dist/v2/features/app/helpers/routes.d.ts.map +1 -1
  41. package/dist/v2/features/app/helpers/routes.js +7 -7
  42. package/dist/v2/features/command-palette/TheCommandPalette.vue.d.ts.map +1 -1
  43. package/dist/v2/features/command-palette/TheCommandPalette.vue.js +1 -1
  44. package/dist/v2/features/command-palette/TheCommandPalette.vue2.js +6 -6
  45. package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts +2 -2
  46. package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts.map +1 -1
  47. package/dist/v2/features/command-palette/hooks/use-command-palette-state.js +60 -56
  48. package/dist/v2/features/operation/Operation.vue.js +1 -1
  49. package/dist/v2/features/search/hooks/use-search-index.d.ts +3 -7
  50. package/dist/v2/features/search/hooks/use-search-index.d.ts.map +1 -1
  51. package/dist/v2/features/search/hooks/use-search-index.js +12 -18
  52. package/dist/v2/features/search/index.d.ts +1 -2
  53. package/dist/v2/features/search/index.d.ts.map +1 -1
  54. package/dist/v2/features/search/index.js +2 -4
  55. package/dist/v2/features/search/types.d.ts +1 -1
  56. package/dist/v2/features/search/types.d.ts.map +1 -1
  57. package/dist/v2/helpers/handle-hotkeys.js +1 -1
  58. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  59. package/dist/views/Request/libs/oauth2.d.ts.map +1 -1
  60. package/dist/views/Request/libs/oauth2.js +54 -52
  61. package/package.json +17 -17
  62. package/dist/v2/features/search/components/SearchButton.vue.d.ts +0 -12
  63. package/dist/v2/features/search/components/SearchButton.vue.d.ts.map +0 -1
  64. package/dist/v2/features/search/components/SearchButton.vue.js +0 -71
  65. package/dist/v2/features/search/components/SearchButton.vue2.js +0 -4
  66. package/dist/v2/features/search/components/SearchModal.vue.d.ts +0 -11
  67. package/dist/v2/features/search/components/SearchModal.vue.d.ts.map +0 -1
  68. package/dist/v2/features/search/components/SearchModal.vue.js +0 -7
  69. package/dist/v2/features/search/components/SearchModal.vue2.js +0 -102
  70. package/dist/v2/features/search/components/SearchResult.vue.d.ts +0 -10
  71. package/dist/v2/features/search/components/SearchResult.vue.d.ts.map +0 -1
  72. package/dist/v2/features/search/components/SearchResult.vue.js +0 -80
  73. package/dist/v2/features/search/components/SearchResult.vue2.js +0 -4
@@ -1 +1 @@
1
- {"version":3,"file":"OperationCodeSample.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/operation-code-sample/components/OperationCodeSample.vue"],"names":[],"mappings":"AAwcA,OAAO,KAAK,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,mCAAmC,CAAA;AAErF,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AACxD,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAEvE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qEAAqE,CAAA;AACxG,OAAO,KAAK,EACV,eAAe,EACf,oBAAoB,EACpB,YAAY,EACb,MAAM,8DAA8D,CAAA;AASrE,OAAO,KAAK,EAEV,iBAAiB,EAElB,MAAM,yCAAyC,CAAA;AAMhD,MAAM,MAAM,wBAAwB,GAAG;IACrC;;;OAGG;IACH,WAAW,CAAC,EAAE,QAAQ,GAAG,WAAW,CAAA;IACpC;;OAEG;IACH,aAAa,EAAE,iBAAiB,EAAE,CAAA;IAClC;;;;OAIG;IACH,cAAc,CAAC,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAA;IACzC;;OAEG;IACH,cAAc,CAAC,EAAE,YAAY,GAAG,IAAI,CAAA;IACpC;;;;;OAKG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACH,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB;;OAEG;IACH,QAAQ,EAAE,iBAAiB,CAAA;IAC3B;;OAEG;IACH,eAAe,EAAE,oBAAoB,EAAE,CAAA;IACvC;;OAEG;IACH,MAAM,EAAE,cAAc,CAAA;IACtB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IACZ;;OAEG;IACH,SAAS,EAAE,eAAe,CAAA;IAC1B;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,MAAM,CAAA;IAC5B;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB;;OAEG;IACH,aAAa,CAAC,EAAE,aAAa,EAAE,CAAA;CAChC,CAAA;AAED;;;;;;;;GAQG;;YAqBO,MAAM,OAAO;YACb,MAAM,OAAO;;AArBvB,wBA2fC;AAOD,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"OperationCodeSample.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/operation-code-sample/components/OperationCodeSample.vue"],"names":[],"mappings":"AAycA,OAAO,KAAK,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,mCAAmC,CAAA;AAErF,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AACxD,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAEvE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qEAAqE,CAAA;AACxG,OAAO,KAAK,EACV,eAAe,EACf,oBAAoB,EACpB,YAAY,EACb,MAAM,8DAA8D,CAAA;AASrE,OAAO,KAAK,EAEV,iBAAiB,EAElB,MAAM,yCAAyC,CAAA;AAMhD,MAAM,MAAM,wBAAwB,GAAG;IACrC;;;OAGG;IACH,WAAW,CAAC,EAAE,QAAQ,GAAG,WAAW,CAAA;IACpC;;OAEG;IACH,aAAa,EAAE,iBAAiB,EAAE,CAAA;IAClC;;;;OAIG;IACH,cAAc,CAAC,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAA;IACzC;;OAEG;IACH,cAAc,CAAC,EAAE,YAAY,GAAG,IAAI,CAAA;IACpC;;;;;OAKG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACH,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB;;OAEG;IACH,QAAQ,EAAE,iBAAiB,CAAA;IAC3B;;OAEG;IACH,eAAe,EAAE,oBAAoB,EAAE,CAAA;IACvC;;OAEG;IACH,MAAM,EAAE,cAAc,CAAA;IACtB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IACZ;;OAEG;IACH,SAAS,EAAE,eAAe,CAAA;IAC1B;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,MAAM,CAAA;IAC5B;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB;;OAEG;IACH,aAAa,CAAC,EAAE,aAAa,EAAE,CAAA;CAChC,CAAA;AAED;;;;;;;;GAQG;;YAqBO,MAAM,OAAO;YACb,MAAM,OAAO;;AArBvB,wBA2fC;AAOD,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
1
  import o from "./OperationCodeSample.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-59889f40"]]);
4
+ const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-f278dde0"]]);
5
5
  export {
6
- e as default
6
+ a as default
7
7
  };
@@ -1 +1 @@
1
- {"version":3,"file":"get-default-headers.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/request-block/helpers/get-default-headers.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AAEnE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8DAA8D,CAAA;AAanG;;;GAGG;AACH,KAAK,aAAa,GAAG;IACnB,wDAAwD;IACxD,IAAI,EAAE,MAAM,CAAA;IACZ,yCAAyC;IACzC,YAAY,EAAE,MAAM,CAAA;IACpB,qFAAqF;IACrF,YAAY,EAAE,OAAO,CAAA;CACtB,CAAA;AAgBD;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,iBAAiB,GAAI,yDAK/B;IACD,MAAM,EAAE,UAAU,CAAA;IAClB,SAAS,EAAE,eAAe,CAAA;IAC1B,UAAU,EAAE,MAAM,CAAA;IAClB,mBAAmB,CAAC,EAAE,OAAO,CAAA;CAC9B,KAAG,aAAa,EAqChB,CAAA"}
1
+ {"version":3,"file":"get-default-headers.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/request-block/helpers/get-default-headers.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AAEnE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8DAA8D,CAAA;AAanG;;;GAGG;AACH,KAAK,aAAa,GAAG;IACnB,wDAAwD;IACxD,IAAI,EAAE,MAAM,CAAA;IACZ,yCAAyC;IACzC,YAAY,EAAE,MAAM,CAAA;IACpB,qFAAqF;IACrF,YAAY,EAAE,OAAO,CAAA;CACtB,CAAA;AAgBD;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,iBAAiB,GAAI,yDAK/B;IACD,MAAM,EAAE,UAAU,CAAA;IAClB,SAAS,EAAE,eAAe,CAAA;IAC1B,UAAU,EAAE,MAAM,CAAA;IAClB,mBAAmB,CAAC,EAAE,OAAO,CAAA;CAC9B,KAAG,aAAa,EAsChB,CAAA"}
@@ -1,24 +1,24 @@
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.22.1", m = "application/json", h = "*/*", c = (r, t, a) => ({
4
+ const i = "2.22.3", m = "application/json", h = "*/*", c = (r, t, o) => ({
5
5
  name: r,
6
6
  defaultValue: t,
7
- isOverridden: a.has(r.toLowerCase())
7
+ isOverridden: o.has(r.toLowerCase())
8
8
  }), y = ({
9
9
  method: r,
10
10
  operation: t,
11
- exampleKey: a,
12
- hideDisabledHeaders: l = !1
11
+ exampleKey: o,
12
+ hideDisabledHeaders: f = !1
13
13
  }) => {
14
- const o = new Set(
14
+ const a = new Set(
15
15
  t.parameters?.filter((e) => n(e).in === "header").map((e) => n(e).name.toLowerCase()) ?? []
16
- ), f = t["x-scalar-disable-parameters"]?.["default-headers"]?.[a] ?? {}, s = [], d = n(t.requestBody);
16
+ ), l = t["x-scalar-disable-parameters"]?.["default-headers"]?.[o] ?? {}, s = [], d = n(t.requestBody);
17
17
  if (p(r)) {
18
- const e = d?.["x-scalar-selected-content-type"]?.[a] ?? Object.keys(d?.content ?? {})[0] ?? m;
19
- s.push(c("Content-Type", e, o));
18
+ const e = d?.["x-scalar-selected-content-type"]?.[o] ?? Object.keys(d?.content ?? {})[0] ?? m;
19
+ e !== "none" && s.push(c("Content-Type", e, a));
20
20
  }
21
- return s.push(c("Accept", h, o)), u() && i && s.push(c("User-Agent", `Scalar/${i}`, o)), l ? s.filter((e) => f[e.name.toLowerCase()] !== !0) : s;
21
+ return s.push(c("Accept", h, a)), u() && i && s.push(c("User-Agent", `Scalar/${i}`, a)), f ? s.filter((e) => l[e.name.toLowerCase()] !== !0) : s;
22
22
  };
23
23
  export {
24
24
  y as getDefaultHeaders
@@ -1 +1 @@
1
- {"version":3,"file":"AddressBar.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-address-bar-block/components/AddressBar.vue"],"names":[],"mappings":"AAybA,OAAO,KAAK,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,mCAAmC,CAAA;AAGrF,OAAO,KAAK,EAEV,iBAAiB,EAClB,MAAM,gCAAgC,CAAA;AACvC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAWhG,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,SAAS,CAAA;AAM3C,OAA0B,EAAE,KAAK,OAAO,EAAE,MAAM,yBAAyB,CAAA;AAEzE,KAAK,WAAW,GAAG;IACjB,2BAA2B;IAC3B,IAAI,EAAE,MAAM,CAAA;IACZ,6BAA6B;IAC7B,MAAM,EAAE,cAAc,CAAA;IACtB,gCAAgC;IAChC,MAAM,EAAE,YAAY,GAAG,IAAI,CAAA;IAC3B,mDAAmD;IACnD,OAAO,EAAE,YAAY,EAAE,CAAA;IACvB,8BAA8B;IAC9B,OAAO,EAAE,OAAO,EAAE,CAAA;IAClB,oBAAoB;IACpB,MAAM,EAAE,YAAY,CAAA;IACpB,gBAAgB;IAChB,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,kBAAkB;IAClB,WAAW,EAAE,kBAAkB,CAAA;CAChC,CAAC;;;;;;;;eAkB6C,MAAM;;;;;;eAAN,MAAM;;;AAilBrD,wBAQG"}
1
+ {"version":3,"file":"AddressBar.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-address-bar-block/components/AddressBar.vue"],"names":[],"mappings":"AA4bA,OAAO,KAAK,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,mCAAmC,CAAA;AAGrF,OAAO,KAAK,EAEV,iBAAiB,EAClB,MAAM,gCAAgC,CAAA;AACvC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAWhG,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,SAAS,CAAA;AAM3C,OAA0B,EAAE,KAAK,OAAO,EAAE,MAAM,yBAAyB,CAAA;AAEzE,KAAK,WAAW,GAAG;IACjB,2BAA2B;IAC3B,IAAI,EAAE,MAAM,CAAA;IACZ,6BAA6B;IAC7B,MAAM,EAAE,cAAc,CAAA;IACtB,gCAAgC;IAChC,MAAM,EAAE,YAAY,GAAG,IAAI,CAAA;IAC3B,mDAAmD;IACnD,OAAO,EAAE,YAAY,EAAE,CAAA;IACvB,8BAA8B;IAC9B,OAAO,EAAE,OAAO,EAAE,CAAA;IAClB,oBAAoB;IACpB,MAAM,EAAE,YAAY,CAAA;IACpB,gBAAgB;IAChB,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,kBAAkB;IAClB,WAAW,EAAE,kBAAkB,CAAA;CAChC,CAAC;;;;;;;;eAkB6C,MAAM;;;;;;eAAN,MAAM;;;AAqlBrD,wBAQG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./AddressBar.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-40b876ba"]]);
4
+ const e = /* @__PURE__ */ r(o, [["__scopeId", "data-v-791e0491"]]);
5
5
  export {
6
- m as default
6
+ e as default
7
7
  };
@@ -1,21 +1,21 @@
1
- import { defineComponent as F, useId as H, computed as k, ref as w, useTemplateRef as S, onMounted as W, onBeforeUnmount as O, createElementBlock as U, openBlock as h, unref as l, createElementVNode as o, normalizeClass as P, createVNode as a, createCommentVNode as R, normalizeStyle as K, createBlock as Q, withCtx as z, createTextVNode as x, toDisplayString as c } from "vue";
2
- import { ScalarButton as E, ScalarWrappingText as j, ScalarIcon as G } from "@scalar/components";
3
- import { REQUEST_METHODS as J } from "@scalar/helpers/http/http-info";
4
- import { ScalarIconCopy as X, ScalarIconWarningCircle as Y } from "@scalar/icons";
5
- import { useClipboard as Z } from "@scalar/use-hooks/useClipboard";
6
- import { getResolvedUrl as _ } from "../../operation-block/helpers/get-resolved-url.js";
7
- import { useLoadingAnimation as ee } from "../hooks/use-loading-animation.js";
8
- import te from "./AddressBarHistory.vue.js";
9
- import ne from "../../../../components/HttpMethod/HttpMethod.vue.js";
10
- import oe from "../../../components/server/ServerDropdown.vue.js";
11
- import le from "../../../components/code-input/CodeInput.vue.js";
12
- const se = ["id"], ae = { class: "pointer-events-none absolute top-0 left-0 block h-full w-full overflow-hidden rounded-lg border" }, re = { class: "z-context-plus flex gap-1" }, ie = { class: "scroll-timeline-x scroll-timeline-x-hidden z-context-plus relative flex w-full bg-blend-normal" }, de = {
1
+ import { defineComponent as P, useId as K, computed as x, ref as v, useTemplateRef as E, onMounted as Q, onBeforeUnmount as j, createElementBlock as $, openBlock as b, unref as s, createElementVNode as l, normalizeClass as V, createVNode as a, createCommentVNode as q, normalizeStyle as G, createBlock as J, withCtx as T, createTextVNode as g, toDisplayString as f } from "vue";
2
+ import { ScalarButton as z, ScalarWrappingText as X, ScalarIcon as Y } from "@scalar/components";
3
+ import { REQUEST_METHODS as Z } from "@scalar/helpers/http/http-info";
4
+ import { ScalarIconCopy as _, ScalarIconWarningCircle as ee } from "@scalar/icons";
5
+ import { useClipboard as te } from "@scalar/use-hooks/useClipboard";
6
+ import { getResolvedUrl as ne } from "../../operation-block/helpers/get-resolved-url.js";
7
+ import { useLoadingAnimation as oe } from "../hooks/use-loading-animation.js";
8
+ import le from "./AddressBarHistory.vue.js";
9
+ import se from "../../../../components/HttpMethod/HttpMethod.vue.js";
10
+ import ae from "../../../components/server/ServerDropdown.vue.js";
11
+ import re from "../../../components/code-input/CodeInput.vue.js";
12
+ const ie = ["id"], de = { class: "flex gap-1" }, ue = { class: "scroll-timeline-x scroll-timeline-x-hidden relative flex w-full bg-blend-normal" }, me = {
13
13
  key: 0,
14
- class: "z-context absolute inset-x-0 top-[calc(100%+4px)] flex flex-col items-center rounded px-6"
15
- }, ue = { class: "text-c-danger bg-b-danger border-c-danger flex items-center gap-1 rounded border p-1" }, me = { class: "min-w-0 flex-1" }, ce = {
14
+ class: "absolute inset-x-0 top-[calc(100%+4px)] flex flex-col items-center rounded px-6"
15
+ }, ve = { class: "text-c-danger bg-b-danger border-c-danger flex items-center gap-1 rounded border p-1" }, fe = { class: "min-w-0 flex-1" }, ce = {
16
16
  "aria-hidden": "true",
17
17
  class: "inline-flex items-center gap-1"
18
- }, fe = { class: "sr-only" }, Se = /* @__PURE__ */ F({
18
+ }, he = { class: "sr-only" }, Re = /* @__PURE__ */ P({
19
19
  __name: "AddressBar",
20
20
  props: {
21
21
  path: {},
@@ -28,84 +28,92 @@ const se = ["id"], ae = { class: "pointer-events-none absolute top-0 left-0 bloc
28
28
  environment: {}
29
29
  },
30
30
  emits: ["execute", "update:servers", "select:history:item"],
31
- setup(e, { expose: V, emit: $ }) {
32
- const d = $, f = H(), { percentage: q, startLoading: b, stopLoading: v, isLoading: L } = ee(), T = k(() => ({
33
- backgroundColor: `color-mix(in srgb, transparent 90%, ${J[e.method].colorVar})`,
34
- transform: `translate3d(-${q.value}%,0,0)`
35
- })), i = w(null), r = w(null), g = k(() => r.value || i.value), y = (n, t, s) => {
36
- const D = u.value?.cursorPosition();
31
+ setup(e, { expose: D, emit: I }) {
32
+ const d = I, c = K(), { percentage: L, startLoading: y, stopLoading: h, isLoading: A } = oe(), M = x(() => ({
33
+ backgroundColor: `color-mix(in srgb, transparent 90%, ${Z[e.method].colorVar})`,
34
+ transform: `translate3d(-${L.value}%,0,0)`
35
+ })), i = v(null), r = v(null), B = x(() => r.value || i.value), p = (n, t, o) => {
36
+ const W = u.value?.cursorPosition();
37
37
  e.eventBus.emit(
38
38
  "operation:update:pathMethod",
39
39
  {
40
40
  meta: { method: e.method, path: e.path },
41
41
  payload: { method: n, path: t },
42
42
  callback: (m) => {
43
- (m === "success" || m === "no-change") && (r.value = null, i.value = null), m === "success" ? e.eventBus.emit("ui:focus:address-bar", { position: D }) : m === "conflict" && (n !== e.method && (r.value = n), t !== e.path && (i.value = t));
43
+ (m === "success" || m === "no-change") && (r.value = null, i.value = null), m === "success" ? e.eventBus.emit("ui:focus:address-bar", { position: W }) : m === "conflict" && (n !== e.method && (r.value = n), t !== e.path && (i.value = t));
44
44
  }
45
45
  },
46
- s
46
+ o
47
47
  );
48
- }, I = (n) => y(n, i.value ?? e.path), A = (n) => {
48
+ }, O = (n) => p(n, i.value ?? e.path), H = (n) => {
49
49
  const t = n.startsWith("/") ? n : `/${n}`;
50
- y(r.value ?? e.method, t, {
50
+ p(r.value ?? e.method, t, {
51
51
  debounceKey: `operation:update:pathMethod-${e.path}-${e.method}`
52
52
  });
53
- }, B = S("sendButtonRef"), u = S("addressBarRef"), C = () => B.value?.$el?.focus(), p = (n) => {
53
+ }, C = E("sendButtonRef"), u = E("addressBarRef"), w = () => C.value?.$el?.focus(), k = (n) => {
54
54
  if (u.value?.isFocused && e.layout !== "desktop")
55
55
  return;
56
56
  const t = n && "position" in n ? n.position : "end";
57
57
  u.value?.focus(t), n && "event" in n && n.event.preventDefault();
58
58
  };
59
- W(() => {
60
- e.eventBus.on("ui:focus:address-bar", p), e.eventBus.on("ui:focus:send-button", C), e.eventBus.on("hooks:on:request:sent", b), e.eventBus.on("hooks:on:request:complete", v);
61
- }), O(() => {
62
- e.eventBus.off("ui:focus:address-bar", p), e.eventBus.off("ui:focus:send-button", C), e.eventBus.off("hooks:on:request:sent", b), e.eventBus.off("hooks:on:request:complete", v), v();
59
+ Q(() => {
60
+ e.eventBus.on("ui:focus:address-bar", k), e.eventBus.on("ui:focus:send-button", w), e.eventBus.on("hooks:on:request:sent", y), e.eventBus.on("hooks:on:request:complete", h);
61
+ }), j(() => {
62
+ e.eventBus.off("ui:focus:address-bar", k), e.eventBus.off("ui:focus:send-button", w), e.eventBus.off("hooks:on:request:sent", y), e.eventBus.off("hooks:on:request:complete", h), h();
63
63
  });
64
- const { copyToClipboard: M } = Z(), N = async () => {
65
- await M(
66
- _({ environment: e.environment, server: e.server, path: e.path, pathVariables: {} })
64
+ const { copyToClipboard: N } = te(), F = async () => {
65
+ await N(
66
+ ne({ environment: e.environment, server: e.server, path: e.path, pathVariables: {} })
67
67
  );
68
- };
69
- return V({
68
+ }, S = v(!1), U = v(!1), R = x(
69
+ () => S.value || U.value
70
+ );
71
+ return D({
70
72
  methodConflict: r,
71
73
  pathConflict: i
72
- }), (n, t) => (h(), U("div", {
73
- id: l(f),
74
- class: "scalar-address-bar order-last flex h-(--scalar-address-bar-height) w-full [--scalar-address-bar-height:32px] lg:order-none lg:w-auto"
74
+ }), (n, t) => (b(), $("div", {
75
+ id: s(c),
76
+ class: "scalar-address-bar order-last flex h-(--scalar-address-bar-height) w-full [--scalar-address-bar-height:32px] lg:order-0 lg:w-auto"
75
77
  }, [
76
- o("div", {
77
- class: P(["address-bar-bg-states text-xxs group relative order-last flex w-full max-w-[calc(100dvw-24px)] flex-1 flex-row items-stretch rounded-lg p-0.75 lg:order-none lg:max-w-[580px] lg:min-w-[580px] xl:max-w-[720px] xl:min-w-[720px]", {
78
- "outline-c-danger outline": g.value
78
+ l("div", {
79
+ class: V(["address-bar-bg-states text-xxs group relative order-last flex w-full max-w-[calc(100dvw-24px)] flex-1 flex-row items-stretch rounded-lg p-0.75 lg:order-none lg:max-w-[580px] lg:min-w-[580px] xl:max-w-[720px] xl:min-w-[720px]", {
80
+ "outline-c-danger outline": B.value,
81
+ "rounded-b-none": R.value
79
82
  }])
80
83
  }, [
81
- o("div", ae, [
82
- o("div", {
83
- class: "absolute top-0 left-0 z-[1002] h-full w-full",
84
- style: K(T.value)
84
+ l("div", {
85
+ class: V(["pointer-events-none absolute top-0 left-0 block h-full w-full overflow-hidden rounded-lg border", {
86
+ "rounded-b-none": R.value
87
+ }])
88
+ }, [
89
+ l("div", {
90
+ class: "absolute top-0 left-0 h-full w-full",
91
+ style: G(M.value)
85
92
  }, null, 4)
86
- ]),
87
- o("div", re, [
88
- a(l(ne), {
93
+ ], 2),
94
+ l("div", de, [
95
+ a(s(se), {
89
96
  isEditable: e.layout !== "modal",
90
97
  isSquare: "",
91
98
  method: r.value ?? e.method,
92
99
  teleport: "",
93
- onChange: I
100
+ onChange: O
94
101
  }, null, 8, ["isEditable", "method"])
95
102
  ]),
96
- o("div", ie, [
97
- e.servers.length ? (h(), Q(l(oe), {
103
+ l("div", ue, [
104
+ e.servers.length ? (b(), J(s(ae), {
98
105
  key: 0,
99
106
  layout: e.layout,
100
107
  server: e.server,
101
108
  servers: e.servers,
102
- target: l(f),
103
- "onUpdate:selectedServer": t[0] || (t[0] = (s) => e.eventBus.emit("server:update:selected", s)),
104
- "onUpdate:servers": t[1] || (t[1] = (s) => d("update:servers")),
105
- "onUpdate:variable": t[2] || (t[2] = (s) => e.eventBus.emit("server:update:variables", s))
106
- }, null, 8, ["layout", "server", "servers", "target"])) : R("", !0),
107
- t[7] || (t[7] = o("div", { class: "fade-left" }, null, -1)),
108
- a(l(le), {
109
+ target: s(c),
110
+ "onUpdate:open": t[0] || (t[0] = (o) => S.value = o),
111
+ "onUpdate:selectedServer": t[1] || (t[1] = (o) => e.eventBus.emit("server:update:selected", o)),
112
+ "onUpdate:servers": t[2] || (t[2] = (o) => d("update:servers")),
113
+ "onUpdate:variable": t[3] || (t[3] = (o) => e.eventBus.emit("server:update:variables", o))
114
+ }, null, 8, ["layout", "server", "servers", "target"])) : q("", !0),
115
+ t[8] || (t[8] = l("div", { class: "fade-left" }, null, -1)),
116
+ a(s(re), {
109
117
  ref_key: "addressBarRef",
110
118
  ref: u,
111
119
  alwaysEmitChange: "",
@@ -120,74 +128,69 @@ const se = ["id"], ae = { class: "pointer-events-none absolute top-0 left-0 bloc
120
128
  importCurl: "",
121
129
  layout: e.layout,
122
130
  modelValue: e.path,
123
- placeholder: e.server ? "" : "Enter a URL or cURL command",
131
+ placeholder: e.server ? "" : "Enter a URL",
124
132
  server: "",
125
- onCurl: t[3] || (t[3] = (s) => e.eventBus.emit("ui:open:command-palette", {
126
- action: "import-curl-command",
127
- payload: {
128
- inputValue: s
129
- }
130
- })),
131
- onSubmit: t[4] || (t[4] = (s) => d("execute")),
132
- "onUpdate:modelValue": A
133
+ onSubmit: t[4] || (t[4] = (o) => d("execute")),
134
+ "onUpdate:modelValue": H
133
135
  }, null, 8, ["disabled", "environment", "layout", "modelValue", "placeholder"]),
134
- t[8] || (t[8] = o("div", { class: "fade-right" }, null, -1))
136
+ t[9] || (t[9] = l("div", { class: "fade-right" }, null, -1))
135
137
  ]),
136
- a(l(E), {
138
+ a(s(z), {
137
139
  class: "hover:bg-b-3 mx-1",
138
140
  size: "xs",
139
141
  variant: "ghost",
140
- onClick: N
142
+ onClick: F
141
143
  }, {
142
- default: z(() => [
143
- a(l(X)),
144
- t[9] || (t[9] = o("span", { class: "sr-only" }, "Copy URL", -1))
144
+ default: T(() => [
145
+ a(s(_)),
146
+ t[10] || (t[10] = l("span", { class: "sr-only" }, "Copy URL", -1))
145
147
  ]),
146
148
  _: 1
147
149
  }),
148
- a(te, {
150
+ a(le, {
149
151
  history: e.history,
150
- target: l(f),
151
- "onSelect:history:item": t[5] || (t[5] = (s) => d("select:history:item", s))
152
+ target: s(c),
153
+ "onSelect:history:item": t[5] || (t[5] = (o) => d("select:history:item", o)),
154
+ "onUpdate:open": t[6] || (t[6] = (o) => U.value = o)
152
155
  }, null, 8, ["history", "target"]),
153
- g.value ? (h(), U("div", de, [
154
- o("div", ue, [
155
- a(l(Y), { size: "sm" }),
156
- o("div", me, [
157
- t[10] || (t[10] = x(" A ", -1)),
158
- o("em", null, c(r.value?.toUpperCase() ?? e.method.toUpperCase()), 1),
159
- t[11] || (t[11] = x(" request to ", -1)),
160
- a(l(j), {
156
+ B.value ? (b(), $("div", me, [
157
+ l("div", ve, [
158
+ a(s(ee), { size: "sm" }),
159
+ l("div", fe, [
160
+ t[11] || (t[11] = g(" A ", -1)),
161
+ l("em", null, f(r.value?.toUpperCase() ?? e.method.toUpperCase()), 1),
162
+ t[12] || (t[12] = g(" request to ", -1)),
163
+ a(s(X), {
161
164
  text: i.value ?? e.path
162
165
  }, null, 8, ["text"]),
163
- t[12] || (t[12] = x(" already exists in this document ", -1))
166
+ t[13] || (t[13] = g(" already exists in this document ", -1))
164
167
  ])
165
168
  ])
166
- ])) : R("", !0),
167
- a(l(E), {
169
+ ])) : q("", !0),
170
+ a(s(z), {
168
171
  ref_key: "sendButtonRef",
169
- ref: B,
170
- class: "z-context-plus relative h-auto shrink-0 overflow-hidden py-1 pr-2.5 pl-2 font-bold",
171
- disabled: l(L),
172
- onClick: t[6] || (t[6] = (s) => d("execute"))
172
+ ref: C,
173
+ class: "relative h-auto shrink-0 overflow-hidden py-1 pr-2.5 pl-2 font-bold",
174
+ disabled: s(A),
175
+ onClick: t[7] || (t[7] = (o) => d("execute"))
173
176
  }, {
174
- default: z(() => [
175
- o("span", ce, [
176
- a(l(G), {
177
+ default: T(() => [
178
+ l("span", ce, [
179
+ a(s(Y), {
177
180
  class: "relative shrink-0 fill-current",
178
181
  icon: "Play",
179
182
  size: "xs"
180
183
  }),
181
- t[13] || (t[13] = o("span", { class: "text-xxs hidden lg:flex" }, "Send", -1))
184
+ t[14] || (t[14] = l("span", { class: "text-xxs hidden lg:flex" }, "Send", -1))
182
185
  ]),
183
- o("span", fe, " Send " + c(e.method) + " request to " + c(e.server?.url ?? "") + c(e.path), 1)
186
+ l("span", he, " Send " + f(e.method) + " request to " + f(e.server?.url ?? "") + f(e.path), 1)
184
187
  ]),
185
188
  _: 1
186
189
  }, 8, ["disabled"])
187
190
  ], 2)
188
- ], 8, se));
191
+ ], 8, ie));
189
192
  }
190
193
  });
191
194
  export {
192
- Se as default
195
+ Re as default
193
196
  };
@@ -12,10 +12,12 @@ type __VLS_Props = {
12
12
  history: History[];
13
13
  };
14
14
  declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
15
+ "update:open": (value: boolean) => any;
15
16
  "select:history:item": (payload: {
16
17
  index: number;
17
18
  }) => any;
18
19
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
20
+ "onUpdate:open"?: ((value: boolean) => any) | undefined;
19
21
  "onSelect:history:item"?: ((payload: {
20
22
  index: number;
21
23
  }) => any) | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"AddressBarHistory.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue"],"names":[],"mappings":"AA2GA,OAAO,KAAK,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,mCAAmC,CAAA;AAQrF,MAAM,MAAM,OAAO,GAAG;IACpB,MAAM,EAAE,cAAc,CAAA;IACtB,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,EAAE,MAAM,CAAA;CACf,CAAA;AAED,KAAK,WAAW,GAAG;IACjB,qEAAqE;IACrE,MAAM,EAAE,MAAM,CAAA;IACd,wCAAwC;IACxC,OAAO,EAAE,OAAO,EAAE,CAAA;CACnB,CAAC;;;eAK6C,MAAM;;;;eAAN,MAAM;;;AAyOrD,wBAOG"}
1
+ {"version":3,"file":"AddressBarHistory.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue"],"names":[],"mappings":"AAmHA,OAAO,KAAK,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,mCAAmC,CAAA;AASrF,MAAM,MAAM,OAAO,GAAG;IACpB,MAAM,EAAE,cAAc,CAAA;IACtB,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,EAAE,MAAM,CAAA;CACf,CAAA;AAED,KAAK,WAAW,GAAG;IACjB,qEAAqE;IACrE,MAAM,EAAE,MAAM,CAAA;IACd,wCAAwC;IACxC,OAAO,EAAE,OAAO,EAAE,CAAA;CACnB,CAAC;;;;eAK6C,MAAM;;;;;eAAN,MAAM;;;AAiQrD,wBAOG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./AddressBarHistory.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- const d = /* @__PURE__ */ r(o, [["__scopeId", "data-v-b45f1e9d"]]);
4
+ const c = /* @__PURE__ */ r(o, [["__scopeId", "data-v-c15c6573"]]);
5
5
  export {
6
- d as default
6
+ c as default
7
7
  };
@@ -1,80 +1,86 @@
1
- import { defineComponent as h, createBlock as c, openBlock as a, unref as t, withCtx as o, createVNode as r, createSlots as g, createCommentVNode as x, createElementVNode as s, normalizeStyle as v, createElementBlock as y, Fragment as _, renderList as k, toDisplayString as l, normalizeClass as C } from "vue";
1
+ import { defineComponent as g, createBlock as c, openBlock as l, unref as t, withCtx as s, createVNode as r, createSlots as h, createCommentVNode as v, createElementVNode as n, normalizeStyle as x, createElementBlock as y, Fragment as k, renderList as C, toDisplayString as i, normalizeClass as _ } from "vue";
2
2
  import { Menu as S, MenuButton as b, MenuItems as B, MenuItem as M } from "@headlessui/vue";
3
3
  import { ScalarFloating as z, ScalarIcon as H, ScalarFloatingBackdrop as w } from "@scalar/components";
4
4
  import { httpStatusCodes as F } from "@scalar/oas-utils/helpers";
5
5
  import { formatMs as I } from "../../../../libs/formatters.js";
6
- import { getStatusCodeColor as N } from "./httpStatusCodeColors.js";
7
- import V from "../../../../components/HttpMethod/HttpMethod.vue.js";
8
- const E = { class: "min-w-0" }, q = { class: "text-c-1 min-w-0 truncate" }, O = /* @__PURE__ */ h({
6
+ import N from "../../../components/layout/ValueEmitter.vue.js";
7
+ import { getStatusCodeColor as V } from "./httpStatusCodeColors.js";
8
+ import $ from "../../../../components/HttpMethod/HttpMethod.vue.js";
9
+ const E = { class: "min-w-0" }, q = { class: "text-c-1 min-w-0 truncate" }, P = /* @__PURE__ */ g({
9
10
  __name: "AddressBarHistory",
10
11
  props: {
11
12
  target: {},
12
13
  history: {}
13
14
  },
14
- emits: ["select:history:item"],
15
- setup(i, { emit: d }) {
16
- const u = d;
17
- return (A, m) => (a(), c(t(S), { as: "div" }, {
18
- default: o(({ open: f }) => [
15
+ emits: ["select:history:item", "update:open"],
16
+ setup(u, { emit: p }) {
17
+ const m = p;
18
+ return (A, e) => (l(), c(t(S), { as: "div" }, {
19
+ default: s(({ open: f }) => [
20
+ r(N, {
21
+ value: f,
22
+ onChange: e[0] || (e[0] = (a) => m("update:open", a)),
23
+ onUnmount: e[1] || (e[1] = (a) => m("update:open", !1))
24
+ }, null, 8, ["value"]),
19
25
  r(t(z), {
20
26
  offset: 0,
21
27
  resize: "",
22
- target: i.target
23
- }, g({
24
- default: o(() => [
25
- i.history.length ? (a(), c(t(b), {
28
+ target: u.target
29
+ }, h({
30
+ default: s(() => [
31
+ u.history.length ? (l(), c(t(b), {
26
32
  key: 0,
27
- class: "address-bar-history-button z-context-plus text-c-3 focus:text-c-1 relative mr-1 rounded-lg p-1.5"
33
+ class: "address-bar-history-button text-c-3 focus:text-c-1 relative mr-1 rounded-lg p-1.5"
28
34
  }, {
29
- default: o(() => [
35
+ default: s(() => [
30
36
  r(t(H), {
31
37
  icon: "History",
32
38
  size: "sm",
33
39
  thickness: "2.25"
34
40
  }),
35
- m[0] || (m[0] = s("span", { class: "sr-only" }, "Request History", -1))
41
+ e[2] || (e[2] = n("span", { class: "sr-only" }, "Request History", -1))
36
42
  ]),
37
43
  _: 1
38
- })) : x("", !0)
44
+ })) : v("", !0)
39
45
  ]),
40
46
  _: 2
41
47
  }, [
42
48
  f ? {
43
49
  name: "floating",
44
- fn: o(({ width: p }) => [
50
+ fn: s(({ width: a }) => [
45
51
  r(t(B), {
46
- class: "custom-scroll grid max-h-[inherit] grid-cols-[44px_1fr_repeat(3,auto)] items-center border-t p-0.75",
52
+ class: "custom-scroll grid max-h-[inherit] grid-cols-[44px_1fr_repeat(3,auto)] items-center p-0.75",
47
53
  static: "",
48
- style: v({ width: p })
54
+ style: x({ width: a })
49
55
  }, {
50
- default: o(() => [
51
- (a(!0), y(_, null, k(i.history, (e, n) => (a(), c(t(M), {
52
- key: n,
56
+ default: s(() => [
57
+ (l(!0), y(k, null, C(u.history, (o, d) => (l(), c(t(M), {
58
+ key: d,
53
59
  as: "button",
54
60
  class: "font-code ui-active:*:bg-b-2 text-c-2 contents text-sm font-medium *:flex *:h-8 *:cursor-pointer *:items-center *:rounded-none *:px-1.5 *:first:rounded-l *:last:rounded-r",
55
- value: n,
56
- onClick: (D) => u("select:history:item", { index: n })
61
+ value: d,
62
+ onClick: (D) => m("select:history:item", { index: d })
57
63
  }, {
58
- default: o(() => [
59
- r(t(V), {
64
+ default: s(() => [
65
+ r(t($), {
60
66
  class: "text-[11px]",
61
- method: e.method
67
+ method: o.method
62
68
  }, null, 8, ["method"]),
63
- s("div", E, [
64
- s("div", q, l(e.path), 1)
69
+ n("div", E, [
70
+ n("div", q, i(o.path), 1)
65
71
  ]),
66
- s("div", null, l(t(I)(e.duration)), 1),
67
- s("div", {
68
- class: C([t(N)(e.status).color])
69
- }, l(e.status), 3),
70
- s("div", null, l(t(F)[e.status]?.name), 1)
72
+ n("div", null, i(t(I)(o.duration)), 1),
73
+ n("div", {
74
+ class: _([t(V)(o.status).color])
75
+ }, i(o.status), 3),
76
+ n("div", null, i(t(F)[o.status]?.name), 1)
71
77
  ]),
72
78
  _: 2
73
79
  }, 1032, ["value", "onClick"]))), 128))
74
80
  ]),
75
81
  _: 1
76
82
  }, 8, ["style"]),
77
- r(t(w), { class: "-top-(--scalar-address-bar-height) rounded-lg" })
83
+ r(t(w), { class: "inset-x-px rounded-none rounded-b-lg" })
78
84
  ]),
79
85
  key: "0"
80
86
  } : void 0
@@ -85,5 +91,5 @@ const E = { class: "min-w-0" }, q = { class: "text-c-1 min-w-0 truncate" }, O =
85
91
  }
86
92
  });
87
93
  export {
88
- O as default
94
+ P as default
89
95
  };
@@ -1 +1 @@
1
- {"version":3,"file":"oauth.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-auth-selector-block/helpers/oauth.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAGlH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAgDlD;;;;GAIG;AACH,eAAO,MAAM,eAAe,GAC1B,OAAO,gBAAgB,EACvB,MAAM,MAAM,gBAAgB,EAC5B,gBAAgB,MAAM,EAAE;AACxB,wEAAwE;AACxE,cAAc,YAAY,GAAG,IAAI;AACjC,kCAAkC;AAClC,UAAU,MAAM,KACf,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,CAiL/B,CAAA"}
1
+ {"version":3,"file":"oauth.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-auth-selector-block/helpers/oauth.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAGlH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AA8DlD;;;;GAIG;AACH,eAAO,MAAM,eAAe,GAC1B,OAAO,gBAAgB,EACvB,MAAM,MAAM,gBAAgB,EAC5B,gBAAgB,MAAM,EAAE;AACxB,wEAAwE;AACxE,cAAc,YAAY,GAAG,IAAI;AACjC,kCAAkC;AAClC,UAAU,MAAM,KACf,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,CA+K/B,CAAA"}