@scalar/api-client 2.26.2 → 2.27.1

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 (115) hide show
  1. package/CHANGELOG.md +72 -0
  2. package/dist/components/Server/ServerSelector.vue.js +6 -6
  3. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +6 -6
  4. package/dist/style.css +1 -1
  5. package/dist/v2/blocks/operation-block/helpers/build-request-body.d.ts.map +1 -1
  6. package/dist/v2/blocks/operation-block/helpers/build-request-body.js +29 -25
  7. package/dist/v2/blocks/operation-block/helpers/get-example.d.ts.map +1 -1
  8. package/dist/v2/blocks/operation-block/helpers/get-example.js +15 -15
  9. package/dist/v2/blocks/operation-block/helpers/get-selected-body-content-type.d.ts +10 -0
  10. package/dist/v2/blocks/operation-block/helpers/get-selected-body-content-type.d.ts.map +1 -0
  11. package/dist/v2/blocks/operation-block/helpers/get-selected-body-content-type.js +4 -0
  12. package/dist/v2/blocks/request-block/RequestBlock.vue.js +1 -1
  13. package/dist/v2/blocks/request-block/RequestBlock.vue2.js +6 -6
  14. package/dist/v2/blocks/request-block/components/RequestBody.vue.d.ts.map +1 -1
  15. package/dist/v2/blocks/request-block/components/RequestBody.vue.js +2 -2
  16. package/dist/v2/blocks/request-block/components/RequestBody.vue2.js +62 -69
  17. package/dist/v2/blocks/request-block/helpers/get-default-headers.js +1 -1
  18. package/dist/v2/blocks/response-block/ResponseBlock.vue.js +1 -1
  19. package/dist/v2/blocks/response-block/ResponseBlock.vue2.js +7 -7
  20. package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.d.ts.map +1 -1
  21. package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.js +1 -1
  22. package/dist/v2/blocks/response-block/components/ResponseEmpty.vue2.js +31 -40
  23. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts.map +1 -1
  24. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js +37 -41
  25. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts +3 -2
  26. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts.map +1 -1
  27. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +107 -87
  28. package/dist/v2/blocks/scalar-auth-selector-block/components/OpenIDConnect.vue.d.ts +21 -0
  29. package/dist/v2/blocks/scalar-auth-selector-block/components/OpenIDConnect.vue.d.ts.map +1 -0
  30. package/dist/v2/blocks/scalar-auth-selector-block/components/OpenIDConnect.vue.js +91 -0
  31. package/dist/v2/blocks/scalar-auth-selector-block/components/OpenIDConnect.vue2.js +4 -0
  32. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts.map +1 -1
  33. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js +107 -93
  34. package/dist/v2/blocks/scalar-auth-selector-block/helpers/extract-security-scheme-secrets.d.ts.map +1 -1
  35. package/dist/v2/blocks/scalar-auth-selector-block/helpers/extract-security-scheme-secrets.js +87 -65
  36. package/dist/v2/blocks/scalar-auth-selector-block/helpers/fetch-openid-connect-discovery.d.ts +36 -0
  37. package/dist/v2/blocks/scalar-auth-selector-block/helpers/fetch-openid-connect-discovery.d.ts.map +1 -0
  38. package/dist/v2/blocks/scalar-auth-selector-block/helpers/fetch-openid-connect-discovery.js +35 -0
  39. package/dist/v2/blocks/scalar-auth-selector-block/helpers/merge-security.d.ts +1 -1
  40. package/dist/v2/blocks/scalar-auth-selector-block/helpers/merge-security.d.ts.map +1 -1
  41. package/dist/v2/blocks/scalar-auth-selector-block/helpers/merge-security.js +18 -10
  42. package/dist/v2/blocks/scalar-auth-selector-block/helpers/openid-discovery-to-flows.d.ts +5 -0
  43. package/dist/v2/blocks/scalar-auth-selector-block/helpers/openid-discovery-to-flows.d.ts.map +1 -0
  44. package/dist/v2/blocks/scalar-auth-selector-block/helpers/openid-discovery-to-flows.js +27 -0
  45. package/dist/v2/blocks/scalar-auth-selector-block/helpers/secret-types.d.ts +3 -1
  46. package/dist/v2/blocks/scalar-auth-selector-block/helpers/secret-types.d.ts.map +1 -1
  47. package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.d.ts +1 -2
  48. package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.d.ts.map +1 -1
  49. package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.js +29 -37
  50. package/dist/v2/components/layout/CollapsibleSection.vue.js +1 -1
  51. package/dist/v2/components/sidebar/Sidebar.vue.d.ts +2 -0
  52. package/dist/v2/components/sidebar/Sidebar.vue.d.ts.map +1 -1
  53. package/dist/v2/components/sidebar/Sidebar.vue.js +24 -23
  54. package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts +2 -0
  55. package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts.map +1 -1
  56. package/dist/v2/components/sidebar/SidebarMenu.vue.js +30 -30
  57. package/dist/v2/features/app/App.vue.d.ts +5 -0
  58. package/dist/v2/features/app/App.vue.d.ts.map +1 -1
  59. package/dist/v2/features/app/App.vue.js +48 -46
  60. package/dist/v2/features/app/components/AppSidebar.vue.d.ts.map +1 -1
  61. package/dist/v2/features/app/components/AppSidebar.vue.js +3 -3
  62. package/dist/v2/features/app/components/AppSidebar.vue2.js +64 -63
  63. package/dist/v2/features/app/helpers/create-api-client-app.d.ts +11 -1
  64. package/dist/v2/features/app/helpers/create-api-client-app.d.ts.map +1 -1
  65. package/dist/v2/features/app/helpers/create-api-client-app.js +12 -10
  66. package/dist/v2/features/app/helpers/routes.d.ts +2 -0
  67. package/dist/v2/features/app/helpers/routes.d.ts.map +1 -1
  68. package/dist/v2/features/app/hooks/use-theme.d.ts +42 -0
  69. package/dist/v2/features/app/hooks/use-theme.d.ts.map +1 -0
  70. package/dist/v2/features/app/hooks/use-theme.js +34 -0
  71. package/dist/v2/features/collection/DocumentCollection.vue.d.ts.map +1 -1
  72. package/dist/v2/features/collection/DocumentCollection.vue.js +27 -26
  73. package/dist/v2/features/collection/WorkspaceCollection.vue.js +13 -12
  74. package/dist/v2/features/collection/components/Authentication.vue.d.ts.map +1 -1
  75. package/dist/v2/features/collection/components/Authentication.vue.js +2 -2
  76. package/dist/v2/features/collection/components/Authentication.vue2.js +49 -40
  77. package/dist/v2/features/collection/components/Cookies.vue.d.ts.map +1 -1
  78. package/dist/v2/features/collection/components/Cookies.vue.js +26 -13
  79. package/dist/v2/features/collection/components/Environment.vue.d.ts.map +1 -1
  80. package/dist/v2/features/collection/components/Environment.vue.js +27 -15
  81. package/dist/v2/features/collection/components/Overview.vue.d.ts.map +1 -1
  82. package/dist/v2/features/collection/components/Overview.vue.js +2 -2
  83. package/dist/v2/features/collection/components/Overview.vue2.js +68 -61
  84. package/dist/v2/features/collection/components/Servers.vue.d.ts.map +1 -1
  85. package/dist/v2/features/collection/components/Servers.vue.js +93 -88
  86. package/dist/v2/features/collection/components/Settings.vue.d.ts.map +1 -1
  87. package/dist/v2/features/collection/components/Settings.vue.js +19 -17
  88. package/dist/v2/features/environments/EnvironmentsList.vue.js +1 -1
  89. package/dist/v2/features/global-cookies/components/CookiesTable.vue.d.ts.map +1 -1
  90. package/dist/v2/features/global-cookies/components/CookiesTable.vue.js +2 -2
  91. package/dist/v2/features/global-cookies/components/CookiesTable.vue2.js +8 -8
  92. package/dist/v2/features/modal/Modal.vue.d.ts.map +1 -1
  93. package/dist/v2/features/modal/Modal.vue.js +15 -15
  94. package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -1
  95. package/dist/v2/features/operation/Operation.vue.js +30 -33
  96. package/dist/v2/features/settings/CollectionSettings.vue.d.ts +10 -7
  97. package/dist/v2/features/settings/CollectionSettings.vue.d.ts.map +1 -1
  98. package/dist/v2/features/settings/CollectionSettings.vue.js +183 -149
  99. package/dist/v2/features/settings/DocumentSettings.vue.d.ts.map +1 -1
  100. package/dist/v2/features/settings/DocumentSettings.vue.js +88 -79
  101. package/dist/v2/features/settings/components/Section.vue.d.ts +2 -1
  102. package/dist/v2/features/settings/components/Section.vue.d.ts.map +1 -1
  103. package/dist/v2/features/settings/components/Section.vue.js +26 -15
  104. package/dist/v2/features/settings/helpers/get-theme-colors.d.ts +4 -3
  105. package/dist/v2/features/settings/helpers/get-theme-colors.d.ts.map +1 -1
  106. package/dist/v2/features/settings/helpers/get-theme-colors.js +6 -7
  107. package/dist/v2/helpers/handle-hotkeys.d.ts.map +1 -1
  108. package/dist/v2/helpers/handle-hotkeys.js +2 -2
  109. package/dist/v2/hooks/use-global-hot-keys.d.ts +3 -1
  110. package/dist/v2/hooks/use-global-hot-keys.d.ts.map +1 -1
  111. package/dist/v2/hooks/use-global-hot-keys.js +8 -6
  112. package/dist/v2/workspace-events.d.ts.map +1 -1
  113. package/dist/v2/workspace-events.js +13 -6
  114. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  115. package/package.json +18 -17
@@ -1 +1 @@
1
- {"version":3,"file":"Section.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/settings/components/Section.vue"],"names":[],"mappings":"AA4BA,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,MAAM,MAAM,CAAA;IACpB,WAAW,CAAC,EAAE,MAAM,MAAM,CAAA;IAC1B,OAAO,EAAE,MAAM,GAAG,CAAA;CACnB,CAAC;AAyCF,QAAA,MAAM,UAAU,+QACd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"Section.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/settings/components/Section.vue"],"names":[],"mappings":"AAyCA,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,MAAM,MAAM,CAAA;IACpB,WAAW,CAAC,EAAE,MAAM,MAAM,CAAA;IAC1B,OAAO,CAAC,EAAE,MAAM,OAAO,CAAA;IACvB,OAAO,EAAE,MAAM,OAAO,CAAA;CACvB,CAAC;AAgEF,QAAA,MAAM,UAAU,+QACd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
@@ -1,24 +1,35 @@
1
- import { defineComponent as n, createElementBlock as t, openBlock as o, createCommentVNode as l, renderSlot as s } from "vue";
2
- const r = { class: "flex flex-col gap-2" }, c = {
1
+ import { defineComponent as i, useSlots as r, createElementBlock as s, openBlock as o, createCommentVNode as l, renderSlot as c, createElementVNode as n } from "vue";
2
+ const a = { class: "flex flex-col gap-2" }, d = {
3
3
  key: 0,
4
- class: "font-bold"
5
- }, i = {
4
+ class: "flex items-start justify-between gap-2"
5
+ }, _ = { class: "flex flex-col gap-2" }, p = {
6
+ key: 0,
7
+ class: "flex h-8 items-center"
8
+ }, f = { class: "font-bold" }, m = {
6
9
  key: 1,
7
- class: "text-c-2 mb-4 leading-[21px]"
8
- }, m = /* @__PURE__ */ n({
10
+ class: "text-c-2 mb-4 text-sm"
11
+ }, x = /* @__PURE__ */ i({
9
12
  __name: "Section",
10
- setup(a) {
11
- return (e, d) => (o(), t("div", r, [
12
- e.$slots.title ? (o(), t("h3", c, [
13
- s(e.$slots, "title")
14
- ])) : l("", !0),
15
- e.$slots.description ? (o(), t("p", i, [
16
- s(e.$slots, "description")
13
+ setup(u) {
14
+ const e = r();
15
+ return (t, h) => (o(), s("div", a, [
16
+ e.title || e.description ? (o(), s("div", d, [
17
+ n("div", _, [
18
+ e.title ? (o(), s("div", p, [
19
+ n("h3", f, [
20
+ c(t.$slots, "title")
21
+ ])
22
+ ])) : l("", !0),
23
+ e.description ? (o(), s("p", m, [
24
+ c(t.$slots, "description")
25
+ ])) : l("", !0)
26
+ ]),
27
+ e.actions ? c(t.$slots, "actions", { key: 0 }) : l("", !0)
17
28
  ])) : l("", !0),
18
- s(e.$slots, "default")
29
+ c(t.$slots, "default")
19
30
  ]));
20
31
  }
21
32
  });
22
33
  export {
23
- m as default
34
+ x as default
24
35
  };
@@ -1,6 +1,7 @@
1
- import type { IntegrationThemeId, ThemeId } from '@scalar/themes';
2
- type Themes = Exclude<ThemeId, IntegrationThemeId>;
3
- export declare const getThemeColors: (themeId: Themes) => {
1
+ import type { IntegrationThemeId, themePresets } from '@scalar/themes';
2
+ type ThemePresets = typeof themePresets;
3
+ type Themes = Exclude<ThemePresets[number]['slug'], IntegrationThemeId>;
4
+ export declare const getThemeColors: (themeId: Themes | "none") => {
4
5
  light: string;
5
6
  dark: string;
6
7
  accent: string;
@@ -1 +1 @@
1
- {"version":3,"file":"get-theme-colors.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/settings/helpers/get-theme-colors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAEjE,KAAK,MAAM,GAAG,OAAO,CAAC,OAAO,EAAE,kBAAkB,CAAC,CAAA;AAElD,eAAO,MAAM,cAAc,GAAI,SAAS,MAAM,KAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAgB7F,CAAA"}
1
+ {"version":3,"file":"get-theme-colors.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/settings/helpers/get-theme-colors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAEtE,KAAK,YAAY,GAAG,OAAO,YAAY,CAAA;AAEvC,KAAK,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,EAAE,kBAAkB,CAAC,CAAA;AAEvE,eAAO,MAAM,cAAc,GAAI,SAAS,MAAM,GAAG,MAAM,KAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAetG,CAAA"}
@@ -1,17 +1,16 @@
1
- const c = (f) => ({
1
+ const c = (e) => ({
2
2
  default: { light: "#fff", dark: "#0f0f0f", accent: "#0099ff" },
3
3
  alternate: { light: "#f9f9f9", dark: "#131313", accent: "#e7e7e7" },
4
4
  moon: { light: "#ccc9b3", dark: "#313332", accent: "#645b0f" },
5
5
  purple: { light: "#f5f6f8", dark: "#22252b", accent: "#5469d4" },
6
6
  solarized: { light: "#fdf6e3", dark: "#00212b", accent: "#007acc" },
7
- bluePlanet: { light: "#f0f2f5", dark: "#000e23", accent: "#e0e2e6" },
7
+ "blue-planet": { light: "#f0f2f5", dark: "#000e23", accent: "#e0e2e6" },
8
8
  saturn: { light: "#e4e4df", dark: "#2c2c30", accent: "#1763a6" },
9
- kepler: { light: "#f6f6f6", dark: "#0d0f1e", accent: "#7070ff" },
9
+ "kepler-11e": { light: "#f6f6f6", dark: "#0d0f1e", accent: "#7070ff" },
10
10
  mars: { light: "#f2efe8", dark: "#321116", accent: "#c75549" },
11
- deepSpace: { light: "#f4f4f5", dark: "#09090b", accent: "#8ab4f8" },
12
- laserwave: { light: "#f4f2f7", dark: "#27212e", accent: "#ed78c2" },
13
- none: { light: "#ffffff", dark: "#000000", accent: "#3b82f6" }
14
- })[f] || { light: "#ffffff", dark: "#000000", accent: "#3b82f6" };
11
+ "deep-space": { light: "#f4f4f5", dark: "#09090b", accent: "#8ab4f8" },
12
+ laserwave: { light: "#f4f2f7", dark: "#27212e", accent: "#ed78c2" }
13
+ })[e] || { light: "#ffffff", dark: "#000000", accent: "#3b82f6" };
15
14
  export {
16
15
  c as getThemeColors
17
16
  };
@@ -1 +1 @@
1
- {"version":3,"file":"handle-hotkeys.d.ts","sourceRoot":"","sources":["../../../src/v2/helpers/handle-hotkeys.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAsB,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAE3F,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AA6ErD;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa,GAAI,OAAO,aAAa,EAAE,UAAU,iBAAiB,EAAE,QAAQ,YAAY,KAAG,IA6BvG,CAAA"}
1
+ {"version":3,"file":"handle-hotkeys.d.ts","sourceRoot":"","sources":["../../../src/v2/helpers/handle-hotkeys.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAsB,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAE3F,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AA8ErD;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa,GAAI,OAAO,aAAa,EAAE,UAAU,iBAAiB,EAAE,QAAQ,YAAY,KAAG,IAkCvG,CAAA"}
@@ -29,7 +29,7 @@ const r = {
29
29
  8: { event: "tabs:focus:tab", modifiers: ["default"] },
30
30
  9: { event: "tabs:focus:tab-last", modifiers: ["default"] }
31
31
  }
32
- }, d = /* @__PURE__ */ new Set(["Escape", "ArrowDown", "ArrowUp", "Enter"]), u = (t, a) => a.map((e) => e === "default" ? f() ? "metaKey" : "ctrlKey" : e).every((e) => t[e] === !0), l = (t, a) => {
32
+ }, d = /* @__PURE__ */ new Set(["Escape", "ArrowDown", "ArrowUp", "Enter"]), u = (t, a) => a.length > 0 && a.map((e) => e === "default" ? f() ? "metaKey" : "ctrlKey" : e).every((e) => t[e] === !0), l = (t, a) => {
33
33
  if (!(t.target instanceof HTMLElement))
34
34
  return !1;
35
35
  const e = t.target;
@@ -47,7 +47,7 @@ const r = {
47
47
  a.emit(s.event, o, { skipUnpackProxy: !0 });
48
48
  return;
49
49
  }
50
- l(t, i) || a.emit(s.event, o, { skipUnpackProxy: !0 });
50
+ s.modifiers.length > 0 || l(t, i) || a.emit(s.event, o, { skipUnpackProxy: !0 });
51
51
  };
52
52
  export {
53
53
  m as handleHotkeys
@@ -1,10 +1,12 @@
1
1
  import type { WorkspaceEventBus } from '@scalar/workspace-store/events';
2
+ import { type MaybeRefOrGetter } from 'vue';
2
3
  import type { ClientLayout } from '../../v2/types/layout';
3
4
  /**
4
5
  * Global hotkey handler for the app (web + desktop)
5
6
  *
6
7
  * @param eventBus - workspace event bus
7
8
  * @param layout - client layout
9
+ * @param disableListeners - whether to disable the listeners
8
10
  */
9
- export declare const useGlobalHotKeys: (eventBus: WorkspaceEventBus, layout: ClientLayout) => void;
11
+ export declare const useGlobalHotKeys: (eventBus: WorkspaceEventBus, layout: ClientLayout, disableListeners?: MaybeRefOrGetter<boolean>) => void;
10
12
  //# sourceMappingURL=use-global-hot-keys.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"use-global-hot-keys.d.ts","sourceRoot":"","sources":["../../../src/v2/hooks/use-global-hot-keys.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAIvE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAErD;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,GAAI,UAAU,iBAAiB,EAAE,QAAQ,YAAY,KAAG,IAMpF,CAAA"}
1
+ {"version":3,"file":"use-global-hot-keys.d.ts","sourceRoot":"","sources":["../../../src/v2/hooks/use-global-hot-keys.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AACvE,OAAO,EAAE,KAAK,gBAAgB,EAAuC,MAAM,KAAK,CAAA;AAGhF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAErD;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB,GAC3B,UAAU,iBAAiB,EAC3B,QAAQ,YAAY,EACpB,mBAAmB,gBAAgB,CAAC,OAAO,CAAC,KAC3C,IAYF,CAAA"}
@@ -1,9 +1,11 @@
1
- import { onMounted as d, onBeforeUnmount as r } from "vue";
2
- import { handleHotkeys as s } from "../helpers/handle-hotkeys.js";
3
- const m = (e, n) => {
4
- const o = (t) => s(t, e, n);
5
- d(() => window.addEventListener("keydown", o)), r(() => window.removeEventListener("keydown", o));
1
+ import { onMounted as d, onBeforeUnmount as i, toValue as s } from "vue";
2
+ import { handleHotkeys as w } from "../helpers/handle-hotkeys.js";
3
+ const l = (o, n, t) => {
4
+ const e = (r) => {
5
+ s(t) || w(r, o, n);
6
+ };
7
+ d(() => window.addEventListener("keydown", e)), i(() => window.removeEventListener("keydown", e));
6
8
  };
7
9
  export {
8
- m as useGlobalHotKeys
10
+ l as useGlobalHotKeys
9
11
  };
@@ -1 +1 @@
1
- {"version":3,"file":"workspace-events.d.ts","sourceRoot":"","sources":["../../src/v2/workspace-events.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,KAAK,EAAE,kBAAkB,EAAkB,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAE3G,OAAO,EAAE,KAAK,GAAG,EAAY,MAAM,KAAK,CAAA;AAExC,KAAK,IAAI,CAAC,CAAC,SAAS,MAAM,kBAAkB,IAAI,OAAO,CAAC;IACtD,eAAe,EAAE,CACf,OAAO,EAAE,kBAAkB,CAAC,CAAC,CAAC,KAC3B,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,GAAG,kBAAkB,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAA;IAClF,cAAc,EAAE,CAAC,OAAO,EAAE,kBAAkB,CAAC,CAAC,CAAC,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CACzE,CAAC,CAAA;AAEF,KAAK,KAAK,GAAG;KACV,GAAG,IAAI,MAAM,kBAAkB,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC;CAC9C,CAAA;AA6BD;;;;;;;GAOG;AACH,wBAAgB,gCAAgC,CAAC,EAC/C,QAAQ,EACR,KAAK,EACL,KAAK,GACN,EAAE;IACD,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,KAAK,EAAE,GAAG,CAAC,cAAc,GAAG,IAAI,CAAC,CAAA;IACjC,KAAK,EAAE,KAAK,CAAA;CACb,QA0QA"}
1
+ {"version":3,"file":"workspace-events.d.ts","sourceRoot":"","sources":["../../src/v2/workspace-events.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,KAAK,EAAE,kBAAkB,EAAkB,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAE3G,OAAO,EAAE,KAAK,GAAG,EAAY,MAAM,KAAK,CAAA;AAExC,KAAK,IAAI,CAAC,CAAC,SAAS,MAAM,kBAAkB,IAAI,OAAO,CAAC;IACtD,eAAe,EAAE,CACf,OAAO,EAAE,kBAAkB,CAAC,CAAC,CAAC,KAC3B,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,GAAG,kBAAkB,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAA;IAClF,cAAc,EAAE,CAAC,OAAO,EAAE,kBAAkB,CAAC,CAAC,CAAC,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CACzE,CAAC,CAAA;AAEF,KAAK,KAAK,GAAG;KACV,GAAG,IAAI,MAAM,kBAAkB,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC;CAC9C,CAAA;AA6BD;;;;;;;GAOG;AACH,wBAAgB,gCAAgC,CAAC,EAC/C,QAAQ,EACR,KAAK,EACL,KAAK,GACN,EAAE;IACD,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,KAAK,EAAE,GAAG,CAAC,cAAc,GAAG,IAAI,CAAC,CAAA;IACjC,KAAK,EAAE,KAAK,CAAA;CACb,QAiRA"}
@@ -1,15 +1,15 @@
1
- import { generateClientMutators as p } from "@scalar/workspace-store/mutators";
2
- import { computed as c } from "vue";
3
- const r = (t, i, a) => async (o) => {
1
+ import { generateClientMutators as i } from "@scalar/workspace-store/mutators";
2
+ import { computed as p } from "vue";
3
+ const r = (t, c, a) => async (o) => {
4
4
  const n = await a[t]?.onBeforeExecute?.(o) ?? o;
5
- return await i(n), await a[t]?.onAfterExecute?.(n), n;
5
+ return await c(n), await a[t]?.onAfterExecute?.(n), n;
6
6
  };
7
7
  function l({
8
8
  eventBus: t,
9
- store: i,
9
+ store: c,
10
10
  hooks: a
11
11
  }) {
12
- const o = c(() => p(i.value)), n = ({ collectionType: e }) => e === "document" ? o.value.active() : o.value.workspace();
12
+ const o = p(() => i(c.value)), n = ({ collectionType: e }) => e === "document" ? o.value.active() : o.value.workspace();
13
13
  t.on(
14
14
  "workspace:update:active-proxy",
15
15
  (e) => r("workspace:update:active-proxy", o.value.workspace().workspace.updateActiveProxy, a)(e)
@@ -101,6 +101,13 @@ function l({
101
101
  o.value.active().auth.updateSecuritySchemeSecrets,
102
102
  a
103
103
  )(e)
104
+ ), t.on(
105
+ "auth:clear:security-scheme-secrets",
106
+ (e) => r(
107
+ "auth:clear:security-scheme-secrets",
108
+ o.value.active().auth.clearSecuritySchemeSecrets,
109
+ a
110
+ )(e)
104
111
  ), t.on(
105
112
  "server:add:server",
106
113
  (e) => r("server:add:server", o.value.active().server.addServer, a)(e)
@@ -33,7 +33,7 @@ const W = { class: "flex-center relative flex flex-1 flex-col gap-6 p-2 capitali
33
33
  }));
34
34
  }, f = (u) => {
35
35
  u?.createNew && g.name === "request" && p();
36
- }, v = "2.26.2";
36
+ }, v = "2.27.1";
37
37
  return q(() => a.hotKeys.on(f)), R(() => a.hotKeys.off(f)), (u, e) => (l(), n("div", W, [
38
38
  s("div", {
39
39
  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.26.2",
21
+ "version": "2.27.1",
22
22
  "engines": {
23
23
  "node": ">=20"
24
24
  },
@@ -309,6 +309,7 @@
309
309
  "dependencies": {
310
310
  "@headlessui/tailwindcss": "^0.2.2",
311
311
  "@headlessui/vue": "1.7.23",
312
+ "@scalar/typebox": "^0.1.3",
312
313
  "@types/har-format": "^1.2.15",
313
314
  "@vueuse/core": "13.9.0",
314
315
  "@vueuse/integrations": "13.9.0",
@@ -327,25 +328,25 @@
327
328
  "yaml": "^2.8.0",
328
329
  "zod": "^4.3.5",
329
330
  "@scalar/analytics-client": "1.0.1",
330
- "@scalar/components": "0.19.2",
331
- "@scalar/helpers": "0.2.11",
332
- "@scalar/draggable": "0.3.0",
331
+ "@scalar/components": "0.19.4",
332
+ "@scalar/helpers": "0.2.12",
333
333
  "@scalar/icons": "0.5.3",
334
- "@scalar/import": "0.4.48",
335
- "@scalar/oas-utils": "0.6.40",
336
- "@scalar/object-utils": "1.2.25",
337
- "@scalar/json-magic": "0.11.0",
334
+ "@scalar/import": "0.4.49",
335
+ "@scalar/draggable": "0.3.0",
336
+ "@scalar/json-magic": "0.11.1",
337
+ "@scalar/oas-utils": "0.6.42",
338
+ "@scalar/object-utils": "1.2.26",
339
+ "@scalar/openapi-parser": "0.24.10",
338
340
  "@scalar/openapi-types": "0.5.3",
339
- "@scalar/postman-to-openapi": "0.4.3",
340
- "@scalar/snippetz": "0.6.11",
341
+ "@scalar/sidebar": "0.7.35",
341
342
  "@scalar/themes": "0.14.0",
342
- "@scalar/openapi-parser": "0.24.9",
343
- "@scalar/sidebar": "0.7.33",
344
- "@scalar/types": "0.6.2",
343
+ "@scalar/postman-to-openapi": "0.4.4",
344
+ "@scalar/types": "0.6.3",
345
+ "@scalar/use-codemirror": "0.13.39",
346
+ "@scalar/snippetz": "0.6.12",
345
347
  "@scalar/use-hooks": "0.3.7",
346
- "@scalar/use-codemirror": "0.13.37",
347
348
  "@scalar/use-toasts": "0.9.1",
348
- "@scalar/workspace-store": "0.31.2"
349
+ "@scalar/workspace-store": "0.32.1"
349
350
  },
350
351
  "devDependencies": {
351
352
  "@tailwindcss/vite": "^4.1.18",
@@ -360,9 +361,9 @@
360
361
  "vite": "^7.3.1",
361
362
  "vite-svg-loader": "5.1.0",
362
363
  "vitest": "4.0.16",
363
- "@scalar/build-tooling": "0.4.1",
364
364
  "@scalar/galaxy": "0.5.13",
365
- "@scalar/pre-post-request-scripts": "0.0.87"
365
+ "@scalar/build-tooling": "0.4.1",
366
+ "@scalar/pre-post-request-scripts": "0.0.89"
366
367
  },
367
368
  "scripts": {
368
369
  "build": "scalar-build-vite",