@scalar/api-client 2.26.2 → 2.29.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 (164) hide show
  1. package/CHANGELOG.md +218 -0
  2. package/dist/components/Server/ServerSelector.vue.js +6 -6
  3. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +6 -6
  4. package/dist/components/ViewLayout/ViewLayoutSection.vue.d.ts.map +1 -1
  5. package/dist/components/ViewLayout/ViewLayoutSection.vue.js +1 -1
  6. package/dist/libs/local-storage.js +3 -3
  7. package/dist/style.css +1 -1
  8. package/dist/v2/blocks/operation-block/helpers/build-request-body.d.ts.map +1 -1
  9. package/dist/v2/blocks/operation-block/helpers/build-request-body.js +29 -25
  10. package/dist/v2/blocks/operation-block/helpers/get-example.d.ts.map +1 -1
  11. package/dist/v2/blocks/operation-block/helpers/get-example.js +15 -15
  12. package/dist/v2/blocks/operation-block/helpers/get-selected-body-content-type.d.ts +10 -0
  13. package/dist/v2/blocks/operation-block/helpers/get-selected-body-content-type.d.ts.map +1 -0
  14. package/dist/v2/blocks/operation-block/helpers/get-selected-body-content-type.js +4 -0
  15. package/dist/v2/blocks/request-block/RequestBlock.vue.js +1 -1
  16. package/dist/v2/blocks/request-block/RequestBlock.vue2.js +26 -26
  17. package/dist/v2/blocks/request-block/components/RequestBody.vue.d.ts.map +1 -1
  18. package/dist/v2/blocks/request-block/components/RequestBody.vue.js +2 -2
  19. package/dist/v2/blocks/request-block/components/RequestBody.vue2.js +88 -103
  20. package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts +2 -0
  21. package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts.map +1 -1
  22. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts +2 -0
  23. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts.map +1 -1
  24. package/dist/v2/blocks/request-block/helpers/get-default-headers.d.ts +1 -1
  25. package/dist/v2/blocks/request-block/helpers/get-default-headers.d.ts.map +1 -1
  26. package/dist/v2/blocks/request-block/helpers/get-default-headers.js +20 -19
  27. package/dist/v2/blocks/response-block/ResponseBlock.vue.js +1 -1
  28. package/dist/v2/blocks/response-block/ResponseBlock.vue2.js +7 -7
  29. package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.d.ts.map +1 -1
  30. package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.js +1 -1
  31. package/dist/v2/blocks/response-block/components/ResponseEmpty.vue2.js +31 -40
  32. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts +2 -0
  33. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts.map +1 -1
  34. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js +52 -54
  35. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts +3 -2
  36. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts.map +1 -1
  37. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +106 -86
  38. package/dist/v2/blocks/scalar-auth-selector-block/components/OpenIDConnect.vue.d.ts +21 -0
  39. package/dist/v2/blocks/scalar-auth-selector-block/components/OpenIDConnect.vue.d.ts.map +1 -0
  40. package/dist/v2/blocks/scalar-auth-selector-block/components/OpenIDConnect.vue.js +91 -0
  41. package/dist/v2/blocks/scalar-auth-selector-block/components/OpenIDConnect.vue2.js +4 -0
  42. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts.map +1 -1
  43. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js +107 -93
  44. package/dist/v2/blocks/scalar-auth-selector-block/helpers/extract-security-scheme-secrets.d.ts.map +1 -1
  45. package/dist/v2/blocks/scalar-auth-selector-block/helpers/extract-security-scheme-secrets.js +87 -65
  46. package/dist/v2/blocks/scalar-auth-selector-block/helpers/fetch-openid-connect-discovery.d.ts +36 -0
  47. package/dist/v2/blocks/scalar-auth-selector-block/helpers/fetch-openid-connect-discovery.d.ts.map +1 -0
  48. package/dist/v2/blocks/scalar-auth-selector-block/helpers/fetch-openid-connect-discovery.js +35 -0
  49. package/dist/v2/blocks/scalar-auth-selector-block/helpers/merge-security.d.ts +1 -1
  50. package/dist/v2/blocks/scalar-auth-selector-block/helpers/merge-security.d.ts.map +1 -1
  51. package/dist/v2/blocks/scalar-auth-selector-block/helpers/merge-security.js +18 -10
  52. package/dist/v2/blocks/scalar-auth-selector-block/helpers/openid-discovery-to-flows.d.ts +5 -0
  53. package/dist/v2/blocks/scalar-auth-selector-block/helpers/openid-discovery-to-flows.d.ts.map +1 -0
  54. package/dist/v2/blocks/scalar-auth-selector-block/helpers/openid-discovery-to-flows.js +27 -0
  55. package/dist/v2/blocks/scalar-auth-selector-block/helpers/secret-types.d.ts +3 -1
  56. package/dist/v2/blocks/scalar-auth-selector-block/helpers/secret-types.d.ts.map +1 -1
  57. package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.d.ts +4 -3
  58. package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.d.ts.map +1 -1
  59. package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.js +32 -40
  60. package/dist/v2/components/code-input/CodeInput.vue.d.ts.map +1 -1
  61. package/dist/v2/components/code-input/CodeInput.vue.js +2 -2
  62. package/dist/v2/components/layout/CollapsibleSection.vue.js +1 -1
  63. package/dist/v2/components/sidebar/Sidebar.vue.d.ts +2 -0
  64. package/dist/v2/components/sidebar/Sidebar.vue.d.ts.map +1 -1
  65. package/dist/v2/components/sidebar/Sidebar.vue.js +25 -24
  66. package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts +2 -0
  67. package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts.map +1 -1
  68. package/dist/v2/components/sidebar/SidebarMenu.vue.js +30 -30
  69. package/dist/v2/features/app/App.vue.d.ts +5 -0
  70. package/dist/v2/features/app/App.vue.d.ts.map +1 -1
  71. package/dist/v2/features/app/App.vue.js +80 -78
  72. package/dist/v2/features/app/app-events.d.ts +2 -1
  73. package/dist/v2/features/app/app-events.d.ts.map +1 -1
  74. package/dist/v2/features/app/app-events.js +89 -64
  75. package/dist/v2/features/app/app-state.d.ts.map +1 -1
  76. package/dist/v2/features/app/app-state.js +172 -151
  77. package/dist/v2/features/app/components/AppSidebar.vue.d.ts.map +1 -1
  78. package/dist/v2/features/app/components/AppSidebar.vue.js +3 -3
  79. package/dist/v2/features/app/components/AppSidebar.vue2.js +99 -97
  80. package/dist/v2/features/app/components/DesktopTabs.vue.d.ts.map +1 -1
  81. package/dist/v2/features/app/components/DesktopTabs.vue.js +4 -4
  82. package/dist/v2/features/app/components/DownloadAppButton.vue.d.ts.map +1 -1
  83. package/dist/v2/features/app/components/DownloadAppButton.vue.js +1 -1
  84. package/dist/v2/features/app/components/DownloadAppButton.vue2.js +9 -9
  85. package/dist/v2/features/app/components/SidebarItemMenu.vue.d.ts.map +1 -1
  86. package/dist/v2/features/app/components/SidebarItemMenu.vue.js +71 -43
  87. package/dist/v2/features/app/helpers/create-api-client-app.d.ts +11 -1
  88. package/dist/v2/features/app/helpers/create-api-client-app.d.ts.map +1 -1
  89. package/dist/v2/features/app/helpers/create-api-client-app.js +12 -10
  90. package/dist/v2/features/app/helpers/routes.d.ts +2 -0
  91. package/dist/v2/features/app/helpers/routes.d.ts.map +1 -1
  92. package/dist/v2/features/app/helpers/routes.js +11 -11
  93. package/dist/v2/features/app/hooks/use-theme.d.ts +42 -0
  94. package/dist/v2/features/app/hooks/use-theme.d.ts.map +1 -0
  95. package/dist/v2/features/app/hooks/use-theme.js +34 -0
  96. package/dist/v2/features/collection/DocumentCollection.vue.d.ts.map +1 -1
  97. package/dist/v2/features/collection/DocumentCollection.vue.js +27 -26
  98. package/dist/v2/features/collection/WorkspaceCollection.vue.d.ts +1 -6
  99. package/dist/v2/features/collection/WorkspaceCollection.vue.d.ts.map +1 -1
  100. package/dist/v2/features/collection/WorkspaceCollection.vue.js +41 -22
  101. package/dist/v2/features/collection/components/Authentication.vue.d.ts.map +1 -1
  102. package/dist/v2/features/collection/components/Authentication.vue.js +2 -2
  103. package/dist/v2/features/collection/components/Authentication.vue2.js +49 -40
  104. package/dist/v2/features/collection/components/Cookies.vue.d.ts.map +1 -1
  105. package/dist/v2/features/collection/components/Cookies.vue.js +26 -13
  106. package/dist/v2/features/collection/components/Environment.vue.d.ts.map +1 -1
  107. package/dist/v2/features/collection/components/Environment.vue.js +27 -15
  108. package/dist/v2/features/collection/components/LabelInput.vue.d.ts +3 -0
  109. package/dist/v2/features/collection/components/LabelInput.vue.d.ts.map +1 -1
  110. package/dist/v2/features/collection/components/LabelInput.vue.js +2 -2
  111. package/dist/v2/features/collection/components/LabelInput.vue2.js +20 -16
  112. package/dist/v2/features/collection/components/Overview.vue.d.ts.map +1 -1
  113. package/dist/v2/features/collection/components/Overview.vue.js +2 -2
  114. package/dist/v2/features/collection/components/Overview.vue2.js +68 -61
  115. package/dist/v2/features/collection/components/Servers.vue.d.ts.map +1 -1
  116. package/dist/v2/features/collection/components/Servers.vue.js +93 -88
  117. package/dist/v2/features/collection/components/Settings.vue.d.ts.map +1 -1
  118. package/dist/v2/features/collection/components/Settings.vue.js +19 -17
  119. package/dist/v2/features/command-palette/components/CommandPaletteExample.vue.d.ts +7 -2
  120. package/dist/v2/features/command-palette/components/CommandPaletteExample.vue.d.ts.map +1 -1
  121. package/dist/v2/features/command-palette/components/CommandPaletteExample.vue.js +70 -71
  122. package/dist/v2/features/command-palette/components/{CommandPaletteDocument.vue.d.ts → CommandPaletteOpenApiDocument.vue.d.ts} +3 -3
  123. package/dist/v2/features/command-palette/components/CommandPaletteOpenApiDocument.vue.d.ts.map +1 -0
  124. package/dist/v2/features/command-palette/components/{CommandPaletteDocument.vue.js → CommandPaletteOpenApiDocument.vue.js} +15 -15
  125. package/dist/v2/features/command-palette/components/CommandPaletteOpenApiDocument.vue2.js +4 -0
  126. package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue.d.ts +2 -2
  127. package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue.d.ts.map +1 -1
  128. package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue.js +10 -10
  129. package/dist/v2/features/command-palette/components/CommandPaletteTag.vue.d.ts +27 -5
  130. package/dist/v2/features/command-palette/components/CommandPaletteTag.vue.d.ts.map +1 -1
  131. package/dist/v2/features/command-palette/components/CommandPaletteTag.vue.js +80 -53
  132. package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts +34 -9
  133. package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts.map +1 -1
  134. package/dist/v2/features/command-palette/hooks/use-command-palette-state.js +50 -44
  135. package/dist/v2/features/environments/EnvironmentsList.vue.js +1 -1
  136. package/dist/v2/features/global-cookies/components/CookiesTable.vue.d.ts.map +1 -1
  137. package/dist/v2/features/global-cookies/components/CookiesTable.vue.js +2 -2
  138. package/dist/v2/features/global-cookies/components/CookiesTable.vue2.js +8 -8
  139. package/dist/v2/features/modal/Modal.vue.d.ts.map +1 -1
  140. package/dist/v2/features/modal/Modal.vue.js +15 -15
  141. package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -1
  142. package/dist/v2/features/operation/Operation.vue.js +30 -33
  143. package/dist/v2/features/settings/CollectionSettings.vue.d.ts +10 -7
  144. package/dist/v2/features/settings/CollectionSettings.vue.d.ts.map +1 -1
  145. package/dist/v2/features/settings/CollectionSettings.vue.js +183 -149
  146. package/dist/v2/features/settings/DocumentSettings.vue.d.ts.map +1 -1
  147. package/dist/v2/features/settings/DocumentSettings.vue.js +88 -79
  148. package/dist/v2/features/settings/components/Section.vue.d.ts +2 -1
  149. package/dist/v2/features/settings/components/Section.vue.d.ts.map +1 -1
  150. package/dist/v2/features/settings/components/Section.vue.js +26 -15
  151. package/dist/v2/features/settings/helpers/get-theme-colors.d.ts +4 -3
  152. package/dist/v2/features/settings/helpers/get-theme-colors.d.ts.map +1 -1
  153. package/dist/v2/features/settings/helpers/get-theme-colors.js +6 -7
  154. package/dist/v2/helpers/handle-hotkeys.d.ts.map +1 -1
  155. package/dist/v2/helpers/handle-hotkeys.js +2 -2
  156. package/dist/v2/hooks/use-global-hot-keys.d.ts +3 -1
  157. package/dist/v2/hooks/use-global-hot-keys.d.ts.map +1 -1
  158. package/dist/v2/hooks/use-global-hot-keys.js +8 -6
  159. package/dist/v2/workspace-events.d.ts.map +1 -1
  160. package/dist/v2/workspace-events.js +132 -115
  161. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  162. package/package.json +17 -16
  163. package/dist/v2/features/command-palette/components/CommandPaletteDocument.vue.d.ts.map +0 -1
  164. package/dist/v2/features/command-palette/components/CommandPaletteDocument.vue2.js +0 -4
@@ -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,QA2RA"}
@@ -1,220 +1,237 @@
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) => {
4
- const n = await a[t]?.onBeforeExecute?.(o) ?? o;
5
- return await i(n), await a[t]?.onAfterExecute?.(n), n;
1
+ import { generateClientMutators as i } from "@scalar/workspace-store/mutators";
2
+ import { computed as p } from "vue";
3
+ const r = (a, c, t) => async (o) => {
4
+ const n = await t[a]?.onBeforeExecute?.(o) ?? o;
5
+ return await c(n), await t[a]?.onAfterExecute?.(n), n;
6
6
  };
7
7
  function l({
8
- eventBus: t,
9
- store: i,
10
- hooks: a
8
+ eventBus: a,
9
+ store: c,
10
+ hooks: t
11
11
  }) {
12
- const o = c(() => p(i.value)), n = ({ collectionType: e }) => e === "document" ? o.value.active() : o.value.workspace();
13
- t.on(
12
+ const o = p(() => i(c.value)), n = ({ collectionType: e }) => e === "document" ? o.value.active() : o.value.workspace();
13
+ a.on(
14
14
  "workspace:update:active-proxy",
15
- (e) => r("workspace:update:active-proxy", o.value.workspace().workspace.updateActiveProxy, a)(e)
16
- ), t.on(
15
+ (e) => r("workspace:update:active-proxy", o.value.workspace().workspace.updateActiveProxy, t)(e)
16
+ ), a.on(
17
17
  "workspace:update:color-mode",
18
- (e) => r("workspace:update:color-mode", o.value.workspace().workspace.updateColorMode, a)(e)
19
- ), t.on(
18
+ (e) => r("workspace:update:color-mode", o.value.workspace().workspace.updateColorMode, t)(e)
19
+ ), a.on(
20
20
  "workspace:update:theme",
21
- (e) => r("workspace:update:theme", o.value.workspace().workspace.updateTheme, a)(e)
22
- ), t.on(
21
+ (e) => r("workspace:update:theme", o.value.workspace().workspace.updateTheme, t)(e)
22
+ ), a.on(
23
23
  "workspace:update:selected-client",
24
24
  (e) => r(
25
25
  "workspace:update:selected-client",
26
26
  o.value.workspace().workspace.updateSelectedClient,
27
- a
27
+ t
28
28
  )(e)
29
- ), t.on(
29
+ ), a.on(
30
30
  "workspace:update:active-environment",
31
31
  (e) => r(
32
32
  "workspace:update:active-environment",
33
33
  o.value.workspace().workspace.updateActiveEnvironment,
34
- a
34
+ t
35
35
  )(e)
36
- ), t.on(
36
+ ), a.on(
37
37
  "document:update:icon",
38
- (e) => r("document:update:icon", o.value.active().document.updateDocumentIcon, a)(e)
39
- ), t.on(
38
+ (e) => r("document:update:icon", o.value.active().document.updateDocumentIcon, t)(e)
39
+ ), a.on(
40
40
  "document:update:info",
41
- (e) => r("document:update:info", o.value.active().document.updateDocumentInfo, a)(e)
42
- ), t.on(
41
+ (e) => r("document:update:info", o.value.active().document.updateDocumentInfo, t)(e)
42
+ ), a.on(
43
43
  "document:toggle:security",
44
- (e) => r("document:toggle:security", o.value.active().document.toggleSecurity, a)(e)
45
- ), t.on(
44
+ (e) => r("document:toggle:security", o.value.active().document.toggleSecurity, t)(e)
45
+ ), a.on(
46
46
  "document:update:watch-mode",
47
- (e) => r("document:update:watch-mode", o.value.active().document.updateWatchMode, a)(e)
48
- ), t.on(
47
+ (e) => r("document:update:watch-mode", o.value.active().document.updateWatchMode, t)(e)
48
+ ), a.on(
49
49
  "document:create:empty-document",
50
- (e) => r("document:create:empty-document", o.value.active().document.createEmptyDocument, a)(e)
51
- ), t.on(
50
+ (e) => r("document:create:empty-document", o.value.active().document.createEmptyDocument, t)(e)
51
+ ), a.on(
52
52
  "document:delete:document",
53
- (e) => r("document:delete:document", o.value.active().document.deleteDocument, a)(e)
54
- ), t.on(
53
+ (e) => r("document:delete:document", o.value.active().document.deleteDocument, t)(e)
54
+ ), a.on(
55
55
  "environment:upsert:environment",
56
- (e) => r("environment:upsert:environment", n(e).environment.upsertEnvironment, a)(e)
57
- ), t.on(
56
+ (e) => r("environment:upsert:environment", n(e).environment.upsertEnvironment, t)(e)
57
+ ), a.on(
58
58
  "environment:delete:environment",
59
- (e) => r("environment:delete:environment", n(e).environment.deleteEnvironment, a)(e)
60
- ), t.on(
59
+ (e) => r("environment:delete:environment", n(e).environment.deleteEnvironment, t)(e)
60
+ ), a.on(
61
61
  "environment:upsert:environment-variable",
62
62
  (e) => r(
63
63
  "environment:upsert:environment-variable",
64
64
  n(e).environment.upsertEnvironmentVariable,
65
- a
65
+ t
66
66
  )(e)
67
- ), t.on(
67
+ ), a.on(
68
68
  "environment:delete:environment-variable",
69
69
  (e) => r(
70
70
  "environment:delete:environment-variable",
71
71
  n(e).environment.deleteEnvironmentVariable,
72
- a
72
+ t
73
73
  )(e)
74
- ), t.on("cookie:upsert:cookie", async (e) => {
75
- await r("cookie:upsert:cookie", n(e).cookie.upsertCookie, a)(e);
76
- }), t.on("cookie:delete:cookie", async (e) => {
77
- await r("cookie:delete:cookie", n(e).cookie.deleteCookie, a)(e);
78
- }), t.on(
74
+ ), a.on("cookie:upsert:cookie", async (e) => {
75
+ await r("cookie:upsert:cookie", n(e).cookie.upsertCookie, t)(e);
76
+ }), a.on("cookie:delete:cookie", async (e) => {
77
+ await r("cookie:delete:cookie", n(e).cookie.deleteCookie, t)(e);
78
+ }), a.on(
79
79
  "auth:delete:security-scheme",
80
- (e) => r("auth:delete:security-scheme", o.value.active().auth.deleteSecurityScheme, a)(e)
81
- ), t.on(
80
+ (e) => r("auth:delete:security-scheme", o.value.active().auth.deleteSecurityScheme, t)(e)
81
+ ), a.on(
82
82
  "auth:update:active-index",
83
- (e) => r("auth:update:active-index", o.value.active().auth.updateSelectedAuthTab, a)(e)
84
- ), t.on(
83
+ (e) => r("auth:update:active-index", o.value.active().auth.updateSelectedAuthTab, t)(e)
84
+ ), a.on(
85
85
  "auth:update:security-scheme",
86
- (e) => r("auth:update:security-scheme", o.value.active().auth.updateSecurityScheme, a)(e)
87
- ), t.on(
86
+ (e) => r("auth:update:security-scheme", o.value.active().auth.updateSecurityScheme, t)(e)
87
+ ), a.on(
88
88
  "auth:update:selected-scopes",
89
- (e) => r("auth:update:selected-scopes", o.value.active().auth.updateSelectedScopes, a)(e)
90
- ), t.on(
89
+ (e) => r("auth:update:selected-scopes", o.value.active().auth.updateSelectedScopes, t)(e)
90
+ ), a.on(
91
91
  "auth:update:selected-security-schemes",
92
92
  (e) => r(
93
93
  "auth:update:selected-security-schemes",
94
94
  o.value.active().auth.updateSelectedSecuritySchemes,
95
- a
95
+ t
96
96
  )(e)
97
- ), t.on(
97
+ ), a.on(
98
98
  "auth:update:security-scheme-secrets",
99
99
  (e) => r(
100
100
  "auth:update:security-scheme-secrets",
101
101
  o.value.active().auth.updateSecuritySchemeSecrets,
102
- a
102
+ t
103
103
  )(e)
104
- ), t.on(
104
+ ), a.on(
105
+ "auth:clear:security-scheme-secrets",
106
+ (e) => r(
107
+ "auth:clear:security-scheme-secrets",
108
+ o.value.active().auth.clearSecuritySchemeSecrets,
109
+ t
110
+ )(e)
111
+ ), a.on(
105
112
  "server:add:server",
106
- (e) => r("server:add:server", o.value.active().server.addServer, a)(e)
107
- ), t.on(
113
+ (e) => r("server:add:server", o.value.active().server.addServer, t)(e)
114
+ ), a.on(
108
115
  "server:update:server",
109
- (e) => r("server:update:server", o.value.active().server.updateServer, a)(e)
110
- ), t.on(
116
+ (e) => r("server:update:server", o.value.active().server.updateServer, t)(e)
117
+ ), a.on(
111
118
  "server:delete:server",
112
- (e) => r("server:delete:server", o.value.active().server.deleteServer, a)(e)
113
- ), t.on(
119
+ (e) => r("server:delete:server", o.value.active().server.deleteServer, t)(e)
120
+ ), a.on(
114
121
  "server:update:variables",
115
- (e) => r("server:update:variables", o.value.active().server.updateServerVariables, a)(e)
116
- ), t.on(
122
+ (e) => r("server:update:variables", o.value.active().server.updateServerVariables, t)(e)
123
+ ), a.on(
117
124
  "server:update:selected",
118
- (e) => r("server:update:selected", o.value.active().server.updateSelectedServer, a)(e)
119
- ), t.on(
125
+ (e) => r("server:update:selected", o.value.active().server.updateSelectedServer, t)(e)
126
+ ), a.on(
120
127
  "operation:create:operation",
121
- (e) => r("operation:create:operation", o.value.active().operation.createOperation, a)(e)
122
- ), t.on(
128
+ (e) => r("operation:create:operation", o.value.active().operation.createOperation, t)(e)
129
+ ), a.on(
123
130
  "operation:update:pathMethod",
124
131
  (e) => r(
125
132
  "operation:update:pathMethod",
126
133
  o.value.active().operation.updateOperationPathMethod,
127
- a
134
+ t
128
135
  )(e)
129
- ), t.on(
136
+ ), a.on(
130
137
  "operation:update:summary",
131
- (e) => r("operation:update:summary", o.value.active().operation.updateOperationSummary, a)(e)
132
- ), t.on(
138
+ (e) => r("operation:update:summary", o.value.active().operation.updateOperationSummary, t)(e)
139
+ ), a.on(
133
140
  "operation:delete:operation",
134
- (e) => r("operation:delete:operation", o.value.active().operation.deleteOperation, a)(e)
135
- ), t.on(
141
+ (e) => r("operation:delete:operation", o.value.active().operation.deleteOperation, t)(e)
142
+ ), a.on(
143
+ "operation:create:draft-example",
144
+ (e) => r(
145
+ "operation:create:draft-example",
146
+ o.value.active().operation.createOperationDraftExample,
147
+ t
148
+ )(e)
149
+ ), a.on(
136
150
  "operation:delete:example",
137
- (e) => r("operation:delete:example", o.value.active().operation.deleteOperationExample, a)(e)
138
- ), t.on(
151
+ (e) => r("operation:delete:example", o.value.active().operation.deleteOperationExample, t)(e)
152
+ ), a.on(
139
153
  "operation:upsert:parameter",
140
- (e) => r("operation:upsert:parameter", o.value.active().operation.upsertOperationParameter, a)(e)
141
- ), t.on(
154
+ (e) => r("operation:upsert:parameter", o.value.active().operation.upsertOperationParameter, t)(e)
155
+ ), a.on(
142
156
  "operation:update:extra-parameters",
143
157
  (e) => r(
144
158
  "operation:update:extra-parameters",
145
159
  o.value.active().operation.updateOperationExtraParameters,
146
- a
160
+ t
147
161
  )(e)
148
- ), t.on(
162
+ ), a.on(
149
163
  "operation:delete:parameter",
150
- (e) => r("operation:delete:parameter", o.value.active().operation.deleteOperationParameter, a)(e)
151
- ), t.on(
164
+ (e) => r("operation:delete:parameter", o.value.active().operation.deleteOperationParameter, t)(e)
165
+ ), a.on(
152
166
  "operation:delete-all:parameters",
153
167
  (e) => r(
154
168
  "operation:delete-all:parameters",
155
169
  o.value.active().operation.deleteAllOperationParameters,
156
- a
170
+ t
157
171
  )(e)
158
- ), t.on(
172
+ ), a.on(
159
173
  "operation:update:extension",
160
- (e) => r("operation:update:extension", o.value.active().operation.updateOperationExtension, a)(e)
161
- ), t.on(
174
+ (e) => r("operation:update:extension", o.value.active().operation.updateOperationExtension, t)(e)
175
+ ), a.on(
162
176
  "operation:update:requestBody:contentType",
163
177
  (e) => r(
164
178
  "operation:update:requestBody:contentType",
165
179
  o.value.active().operation.updateOperationRequestBodyContentType,
166
- a
180
+ t
167
181
  )(e)
168
- ), t.on(
182
+ ), a.on(
169
183
  "operation:update:requestBody:value",
170
184
  (e) => r(
171
185
  "operation:update:requestBody:value",
172
186
  o.value.active().operation.updateOperationRequestBodyExample,
173
- a
187
+ t
174
188
  )(e)
175
- ), t.on(
189
+ ), a.on(
176
190
  "operation:update:requestBody:formValue",
177
191
  (e) => r(
178
192
  "operation:update:requestBody:formValue",
179
193
  o.value.active().operation.updateOperationRequestBodyFormValue,
180
- a
194
+ t
181
195
  )(e)
182
- ), t.on(
196
+ ), a.on(
183
197
  "operation:reload:history",
184
- (e) => r("operation:reload:history", o.value.active().operation.reloadOperationHistory, a)(e)
185
- ), t.on(
198
+ (e) => r("operation:reload:history", o.value.active().operation.reloadOperationHistory, t)(e)
199
+ ), a.on(
186
200
  "tag:create:tag",
187
- (e) => r("tag:create:tag", o.value.active().tag.createTag, a)(e)
188
- ), t.on(
201
+ (e) => r("tag:create:tag", o.value.active().tag.createTag, t)(e)
202
+ ), a.on(
203
+ "tag:edit:tag",
204
+ (e) => r("tag:edit:tag", o.value.active().tag.editTag, t)(e)
205
+ ), a.on(
189
206
  "tag:delete:tag",
190
- (e) => r("tag:delete:tag", o.value.active().tag.deleteTag, a)(e)
191
- ), t.on(
207
+ (e) => r("tag:delete:tag", o.value.active().tag.deleteTag, t)(e)
208
+ ), a.on(
192
209
  "tabs:add:tab",
193
- (e) => r("tabs:add:tab", o.value.workspace().tabs.addTab, a)(e)
194
- ), t.on(
210
+ (e) => r("tabs:add:tab", o.value.workspace().tabs.addTab, t)(e)
211
+ ), a.on(
195
212
  "tabs:close:tab",
196
- (e) => r("tabs:close:tab", o.value.workspace().tabs.closeTab, a)(e)
197
- ), t.on(
213
+ (e) => r("tabs:close:tab", o.value.workspace().tabs.closeTab, t)(e)
214
+ ), a.on(
198
215
  "tabs:close:other-tabs",
199
- (e) => r("tabs:close:other-tabs", o.value.workspace().tabs.closeOtherTabs, a)(e)
200
- ), t.on(
216
+ (e) => r("tabs:close:other-tabs", o.value.workspace().tabs.closeOtherTabs, t)(e)
217
+ ), a.on(
201
218
  "tabs:focus:tab",
202
- (e) => r("tabs:focus:tab", o.value.workspace().tabs.focusTab, a)(e)
203
- ), t.on(
219
+ (e) => r("tabs:focus:tab", o.value.workspace().tabs.focusTab, t)(e)
220
+ ), a.on(
204
221
  "tabs:focus:tab-last",
205
- (e) => r("tabs:focus:tab-last", o.value.workspace().tabs.focusLastTab, a)(e)
206
- ), t.on(
222
+ (e) => r("tabs:focus:tab-last", o.value.workspace().tabs.focusLastTab, t)(e)
223
+ ), a.on(
207
224
  "tabs:navigate:previous",
208
- (e) => r("tabs:navigate:previous", o.value.workspace().tabs.navigatePreviousTab, a)(e)
209
- ), t.on(
225
+ (e) => r("tabs:navigate:previous", o.value.workspace().tabs.navigatePreviousTab, t)(e)
226
+ ), a.on(
210
227
  "tabs:navigate:next",
211
- (e) => r("tabs:navigate:next", o.value.workspace().tabs.navigateNextTab, a)(e)
212
- ), t.on(
228
+ (e) => r("tabs:navigate:next", o.value.workspace().tabs.navigateNextTab, t)(e)
229
+ ), a.on(
213
230
  "tabs:update:tabs",
214
- (e) => r("tabs:update:tabs", o.value.workspace().tabs.updateTabs, a)(e)
215
- ), t.on(
231
+ (e) => r("tabs:update:tabs", o.value.workspace().tabs.updateTabs, t)(e)
232
+ ), a.on(
216
233
  "hooks:on:request:complete",
217
- (e) => r("hooks:on:request:complete", o.value.active().operation.addResponseToHistory, a)(e)
234
+ (e) => r("hooks:on:request:complete", o.value.active().operation.addResponseToHistory, t)(e)
218
235
  );
219
236
  }
220
237
  export {
@@ -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.29.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.29.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
331
  "@scalar/draggable": "0.3.0",
332
+ "@scalar/components": "0.19.7",
333
+ "@scalar/helpers": "0.2.15",
333
334
  "@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",
335
+ "@scalar/oas-utils": "0.6.45",
336
+ "@scalar/import": "0.4.52",
337
+ "@scalar/object-utils": "1.2.29",
338
+ "@scalar/json-magic": "0.11.4",
339
+ "@scalar/openapi-parser": "0.24.13",
338
340
  "@scalar/openapi-types": "0.5.3",
339
- "@scalar/postman-to-openapi": "0.4.3",
340
- "@scalar/snippetz": "0.6.11",
341
+ "@scalar/postman-to-openapi": "0.4.7",
342
+ "@scalar/snippetz": "0.6.15",
341
343
  "@scalar/themes": "0.14.0",
342
- "@scalar/openapi-parser": "0.24.9",
343
- "@scalar/sidebar": "0.7.33",
344
- "@scalar/types": "0.6.2",
344
+ "@scalar/types": "0.6.6",
345
+ "@scalar/sidebar": "0.7.38",
345
346
  "@scalar/use-hooks": "0.3.7",
346
- "@scalar/use-codemirror": "0.13.37",
347
+ "@scalar/use-codemirror": "0.13.42",
347
348
  "@scalar/use-toasts": "0.9.1",
348
- "@scalar/workspace-store": "0.31.2"
349
+ "@scalar/workspace-store": "0.34.1"
349
350
  },
350
351
  "devDependencies": {
351
352
  "@tailwindcss/vite": "^4.1.18",
@@ -361,8 +362,8 @@
361
362
  "vite-svg-loader": "5.1.0",
362
363
  "vitest": "4.0.16",
363
364
  "@scalar/build-tooling": "0.4.1",
364
- "@scalar/galaxy": "0.5.13",
365
- "@scalar/pre-post-request-scripts": "0.0.87"
365
+ "@scalar/galaxy": "0.5.16",
366
+ "@scalar/pre-post-request-scripts": "0.2.1"
366
367
  },
367
368
  "scripts": {
368
369
  "build": "scalar-build-vite",
@@ -1 +0,0 @@
1
- {"version":3,"file":"CommandPaletteDocument.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/command-palette/components/CommandPaletteDocument.vue"],"names":[],"mappings":"AAwIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAUvE;;;;;;;;;;;;;;GAcG;wBACkB,OAAO,YAAY;AAAxC,wBAAyC;AAGzC,QAAA,MAAM,YAAY;IAEhB,2DAA2D;oBAC3C,cAAc;IAC9B,sDAAsD;cAC5C,iBAAiB;;;;;IAH3B,2DAA2D;oBAC3C,cAAc;IAC9B,sDAAsD;cAC5C,iBAAiB;;;;kFAwMzB,CAAC"}
@@ -1,4 +0,0 @@
1
- import f from "./CommandPaletteDocument.vue.js";
2
- export {
3
- f as default
4
- };