@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.
- package/CHANGELOG.md +218 -0
- package/dist/components/Server/ServerSelector.vue.js +6 -6
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +6 -6
- package/dist/components/ViewLayout/ViewLayoutSection.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutSection.vue.js +1 -1
- package/dist/libs/local-storage.js +3 -3
- package/dist/style.css +1 -1
- package/dist/v2/blocks/operation-block/helpers/build-request-body.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/helpers/build-request-body.js +29 -25
- package/dist/v2/blocks/operation-block/helpers/get-example.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/helpers/get-example.js +15 -15
- package/dist/v2/blocks/operation-block/helpers/get-selected-body-content-type.d.ts +10 -0
- package/dist/v2/blocks/operation-block/helpers/get-selected-body-content-type.d.ts.map +1 -0
- package/dist/v2/blocks/operation-block/helpers/get-selected-body-content-type.js +4 -0
- package/dist/v2/blocks/request-block/RequestBlock.vue.js +1 -1
- package/dist/v2/blocks/request-block/RequestBlock.vue2.js +26 -26
- package/dist/v2/blocks/request-block/components/RequestBody.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestBody.vue.js +2 -2
- package/dist/v2/blocks/request-block/components/RequestBody.vue2.js +88 -103
- package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts +2 -0
- package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts +2 -0
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/helpers/get-default-headers.d.ts +1 -1
- package/dist/v2/blocks/request-block/helpers/get-default-headers.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/helpers/get-default-headers.js +20 -19
- package/dist/v2/blocks/response-block/ResponseBlock.vue.js +1 -1
- package/dist/v2/blocks/response-block/ResponseBlock.vue2.js +7 -7
- package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.d.ts.map +1 -1
- package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.js +1 -1
- package/dist/v2/blocks/response-block/components/ResponseEmpty.vue2.js +31 -40
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts +2 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js +52 -54
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts +3 -2
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +106 -86
- package/dist/v2/blocks/scalar-auth-selector-block/components/OpenIDConnect.vue.d.ts +21 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/OpenIDConnect.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/OpenIDConnect.vue.js +91 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/OpenIDConnect.vue2.js +4 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js +107 -93
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/extract-security-scheme-secrets.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/extract-security-scheme-secrets.js +87 -65
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/fetch-openid-connect-discovery.d.ts +36 -0
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/fetch-openid-connect-discovery.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/fetch-openid-connect-discovery.js +35 -0
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/merge-security.d.ts +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/merge-security.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/merge-security.js +18 -10
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/openid-discovery-to-flows.d.ts +5 -0
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/openid-discovery-to-flows.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/openid-discovery-to-flows.js +27 -0
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/secret-types.d.ts +3 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/secret-types.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.d.ts +4 -3
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.js +32 -40
- package/dist/v2/components/code-input/CodeInput.vue.d.ts.map +1 -1
- package/dist/v2/components/code-input/CodeInput.vue.js +2 -2
- package/dist/v2/components/layout/CollapsibleSection.vue.js +1 -1
- package/dist/v2/components/sidebar/Sidebar.vue.d.ts +2 -0
- package/dist/v2/components/sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/v2/components/sidebar/Sidebar.vue.js +25 -24
- package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts +2 -0
- package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts.map +1 -1
- package/dist/v2/components/sidebar/SidebarMenu.vue.js +30 -30
- package/dist/v2/features/app/App.vue.d.ts +5 -0
- package/dist/v2/features/app/App.vue.d.ts.map +1 -1
- package/dist/v2/features/app/App.vue.js +80 -78
- package/dist/v2/features/app/app-events.d.ts +2 -1
- package/dist/v2/features/app/app-events.d.ts.map +1 -1
- package/dist/v2/features/app/app-events.js +89 -64
- package/dist/v2/features/app/app-state.d.ts.map +1 -1
- package/dist/v2/features/app/app-state.js +172 -151
- package/dist/v2/features/app/components/AppSidebar.vue.d.ts.map +1 -1
- package/dist/v2/features/app/components/AppSidebar.vue.js +3 -3
- package/dist/v2/features/app/components/AppSidebar.vue2.js +99 -97
- package/dist/v2/features/app/components/DesktopTabs.vue.d.ts.map +1 -1
- package/dist/v2/features/app/components/DesktopTabs.vue.js +4 -4
- package/dist/v2/features/app/components/DownloadAppButton.vue.d.ts.map +1 -1
- package/dist/v2/features/app/components/DownloadAppButton.vue.js +1 -1
- package/dist/v2/features/app/components/DownloadAppButton.vue2.js +9 -9
- package/dist/v2/features/app/components/SidebarItemMenu.vue.d.ts.map +1 -1
- package/dist/v2/features/app/components/SidebarItemMenu.vue.js +71 -43
- package/dist/v2/features/app/helpers/create-api-client-app.d.ts +11 -1
- package/dist/v2/features/app/helpers/create-api-client-app.d.ts.map +1 -1
- package/dist/v2/features/app/helpers/create-api-client-app.js +12 -10
- package/dist/v2/features/app/helpers/routes.d.ts +2 -0
- package/dist/v2/features/app/helpers/routes.d.ts.map +1 -1
- package/dist/v2/features/app/helpers/routes.js +11 -11
- package/dist/v2/features/app/hooks/use-theme.d.ts +42 -0
- package/dist/v2/features/app/hooks/use-theme.d.ts.map +1 -0
- package/dist/v2/features/app/hooks/use-theme.js +34 -0
- package/dist/v2/features/collection/DocumentCollection.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/DocumentCollection.vue.js +27 -26
- package/dist/v2/features/collection/WorkspaceCollection.vue.d.ts +1 -6
- package/dist/v2/features/collection/WorkspaceCollection.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/WorkspaceCollection.vue.js +41 -22
- package/dist/v2/features/collection/components/Authentication.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Authentication.vue.js +2 -2
- package/dist/v2/features/collection/components/Authentication.vue2.js +49 -40
- package/dist/v2/features/collection/components/Cookies.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Cookies.vue.js +26 -13
- package/dist/v2/features/collection/components/Environment.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Environment.vue.js +27 -15
- package/dist/v2/features/collection/components/LabelInput.vue.d.ts +3 -0
- package/dist/v2/features/collection/components/LabelInput.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/LabelInput.vue.js +2 -2
- package/dist/v2/features/collection/components/LabelInput.vue2.js +20 -16
- package/dist/v2/features/collection/components/Overview.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Overview.vue.js +2 -2
- package/dist/v2/features/collection/components/Overview.vue2.js +68 -61
- package/dist/v2/features/collection/components/Servers.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Servers.vue.js +93 -88
- package/dist/v2/features/collection/components/Settings.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Settings.vue.js +19 -17
- package/dist/v2/features/command-palette/components/CommandPaletteExample.vue.d.ts +7 -2
- package/dist/v2/features/command-palette/components/CommandPaletteExample.vue.d.ts.map +1 -1
- package/dist/v2/features/command-palette/components/CommandPaletteExample.vue.js +70 -71
- package/dist/v2/features/command-palette/components/{CommandPaletteDocument.vue.d.ts → CommandPaletteOpenApiDocument.vue.d.ts} +3 -3
- package/dist/v2/features/command-palette/components/CommandPaletteOpenApiDocument.vue.d.ts.map +1 -0
- package/dist/v2/features/command-palette/components/{CommandPaletteDocument.vue.js → CommandPaletteOpenApiDocument.vue.js} +15 -15
- package/dist/v2/features/command-palette/components/CommandPaletteOpenApiDocument.vue2.js +4 -0
- package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue.d.ts +2 -2
- package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue.d.ts.map +1 -1
- package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue.js +10 -10
- package/dist/v2/features/command-palette/components/CommandPaletteTag.vue.d.ts +27 -5
- package/dist/v2/features/command-palette/components/CommandPaletteTag.vue.d.ts.map +1 -1
- package/dist/v2/features/command-palette/components/CommandPaletteTag.vue.js +80 -53
- package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts +34 -9
- package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts.map +1 -1
- package/dist/v2/features/command-palette/hooks/use-command-palette-state.js +50 -44
- package/dist/v2/features/environments/EnvironmentsList.vue.js +1 -1
- package/dist/v2/features/global-cookies/components/CookiesTable.vue.d.ts.map +1 -1
- package/dist/v2/features/global-cookies/components/CookiesTable.vue.js +2 -2
- package/dist/v2/features/global-cookies/components/CookiesTable.vue2.js +8 -8
- package/dist/v2/features/modal/Modal.vue.d.ts.map +1 -1
- package/dist/v2/features/modal/Modal.vue.js +15 -15
- package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -1
- package/dist/v2/features/operation/Operation.vue.js +30 -33
- package/dist/v2/features/settings/CollectionSettings.vue.d.ts +10 -7
- package/dist/v2/features/settings/CollectionSettings.vue.d.ts.map +1 -1
- package/dist/v2/features/settings/CollectionSettings.vue.js +183 -149
- package/dist/v2/features/settings/DocumentSettings.vue.d.ts.map +1 -1
- package/dist/v2/features/settings/DocumentSettings.vue.js +88 -79
- package/dist/v2/features/settings/components/Section.vue.d.ts +2 -1
- package/dist/v2/features/settings/components/Section.vue.d.ts.map +1 -1
- package/dist/v2/features/settings/components/Section.vue.js +26 -15
- package/dist/v2/features/settings/helpers/get-theme-colors.d.ts +4 -3
- package/dist/v2/features/settings/helpers/get-theme-colors.d.ts.map +1 -1
- package/dist/v2/features/settings/helpers/get-theme-colors.js +6 -7
- package/dist/v2/helpers/handle-hotkeys.d.ts.map +1 -1
- package/dist/v2/helpers/handle-hotkeys.js +2 -2
- package/dist/v2/hooks/use-global-hot-keys.d.ts +3 -1
- package/dist/v2/hooks/use-global-hot-keys.d.ts.map +1 -1
- package/dist/v2/hooks/use-global-hot-keys.js +8 -6
- package/dist/v2/workspace-events.d.ts.map +1 -1
- package/dist/v2/workspace-events.js +132 -115
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/package.json +17 -16
- package/dist/v2/features/command-palette/components/CommandPaletteDocument.vue.d.ts.map +0 -1
- 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":"
|
|
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
|
|
2
|
-
const
|
|
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: "
|
|
5
|
-
},
|
|
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
|
|
8
|
-
},
|
|
10
|
+
class: "text-c-2 mb-4 text-sm"
|
|
11
|
+
}, x = /* @__PURE__ */ i({
|
|
9
12
|
__name: "Section",
|
|
10
|
-
setup(
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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
|
-
|
|
29
|
+
c(t.$slots, "default")
|
|
19
30
|
]));
|
|
20
31
|
}
|
|
21
32
|
});
|
|
22
33
|
export {
|
|
23
|
-
|
|
34
|
+
x as default
|
|
24
35
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import type { IntegrationThemeId,
|
|
2
|
-
type
|
|
3
|
-
|
|
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,
|
|
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 = (
|
|
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
|
-
|
|
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
|
-
|
|
12
|
-
laserwave: { light: "#f4f2f7", dark: "#27212e", accent: "#ed78c2" }
|
|
13
|
-
|
|
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;
|
|
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;
|
|
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
|
|
2
|
-
import { handleHotkeys as
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
|
|
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
|
-
|
|
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,
|
|
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
|
|
2
|
-
import { computed as
|
|
3
|
-
const r = (
|
|
4
|
-
const n = await a
|
|
5
|
-
return await
|
|
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:
|
|
9
|
-
store:
|
|
10
|
-
hooks:
|
|
8
|
+
eventBus: a,
|
|
9
|
+
store: c,
|
|
10
|
+
hooks: t
|
|
11
11
|
}) {
|
|
12
|
-
const o =
|
|
13
|
-
|
|
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,
|
|
16
|
-
),
|
|
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,
|
|
19
|
-
),
|
|
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,
|
|
22
|
-
),
|
|
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
|
-
|
|
27
|
+
t
|
|
28
28
|
)(e)
|
|
29
|
-
),
|
|
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
|
-
|
|
34
|
+
t
|
|
35
35
|
)(e)
|
|
36
|
-
),
|
|
36
|
+
), a.on(
|
|
37
37
|
"document:update:icon",
|
|
38
|
-
(e) => r("document:update:icon", o.value.active().document.updateDocumentIcon,
|
|
39
|
-
),
|
|
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,
|
|
42
|
-
),
|
|
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,
|
|
45
|
-
),
|
|
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,
|
|
48
|
-
),
|
|
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,
|
|
51
|
-
),
|
|
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,
|
|
54
|
-
),
|
|
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,
|
|
57
|
-
),
|
|
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,
|
|
60
|
-
),
|
|
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
|
-
|
|
65
|
+
t
|
|
66
66
|
)(e)
|
|
67
|
-
),
|
|
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
|
-
|
|
72
|
+
t
|
|
73
73
|
)(e)
|
|
74
|
-
),
|
|
75
|
-
await r("cookie:upsert:cookie", n(e).cookie.upsertCookie,
|
|
76
|
-
}),
|
|
77
|
-
await r("cookie:delete:cookie", n(e).cookie.deleteCookie,
|
|
78
|
-
}),
|
|
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,
|
|
81
|
-
),
|
|
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,
|
|
84
|
-
),
|
|
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,
|
|
87
|
-
),
|
|
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,
|
|
90
|
-
),
|
|
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
|
-
|
|
95
|
+
t
|
|
96
96
|
)(e)
|
|
97
|
-
),
|
|
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
|
-
|
|
102
|
+
t
|
|
103
103
|
)(e)
|
|
104
|
-
),
|
|
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,
|
|
107
|
-
),
|
|
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,
|
|
110
|
-
),
|
|
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,
|
|
113
|
-
),
|
|
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,
|
|
116
|
-
),
|
|
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,
|
|
119
|
-
),
|
|
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,
|
|
122
|
-
),
|
|
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
|
-
|
|
134
|
+
t
|
|
128
135
|
)(e)
|
|
129
|
-
),
|
|
136
|
+
), a.on(
|
|
130
137
|
"operation:update:summary",
|
|
131
|
-
(e) => r("operation:update:summary", o.value.active().operation.updateOperationSummary,
|
|
132
|
-
),
|
|
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,
|
|
135
|
-
),
|
|
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,
|
|
138
|
-
),
|
|
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,
|
|
141
|
-
),
|
|
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
|
-
|
|
160
|
+
t
|
|
147
161
|
)(e)
|
|
148
|
-
),
|
|
162
|
+
), a.on(
|
|
149
163
|
"operation:delete:parameter",
|
|
150
|
-
(e) => r("operation:delete:parameter", o.value.active().operation.deleteOperationParameter,
|
|
151
|
-
),
|
|
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
|
-
|
|
170
|
+
t
|
|
157
171
|
)(e)
|
|
158
|
-
),
|
|
172
|
+
), a.on(
|
|
159
173
|
"operation:update:extension",
|
|
160
|
-
(e) => r("operation:update:extension", o.value.active().operation.updateOperationExtension,
|
|
161
|
-
),
|
|
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
|
-
|
|
180
|
+
t
|
|
167
181
|
)(e)
|
|
168
|
-
),
|
|
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
|
-
|
|
187
|
+
t
|
|
174
188
|
)(e)
|
|
175
|
-
),
|
|
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
|
-
|
|
194
|
+
t
|
|
181
195
|
)(e)
|
|
182
|
-
),
|
|
196
|
+
), a.on(
|
|
183
197
|
"operation:reload:history",
|
|
184
|
-
(e) => r("operation:reload:history", o.value.active().operation.reloadOperationHistory,
|
|
185
|
-
),
|
|
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,
|
|
188
|
-
),
|
|
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,
|
|
191
|
-
),
|
|
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,
|
|
194
|
-
),
|
|
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,
|
|
197
|
-
),
|
|
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,
|
|
200
|
-
),
|
|
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,
|
|
203
|
-
),
|
|
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,
|
|
206
|
-
),
|
|
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,
|
|
209
|
-
),
|
|
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,
|
|
212
|
-
),
|
|
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,
|
|
215
|
-
),
|
|
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,
|
|
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.
|
|
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.
|
|
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/
|
|
335
|
-
"@scalar/
|
|
336
|
-
"@scalar/object-utils": "1.2.
|
|
337
|
-
"@scalar/json-magic": "0.11.
|
|
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.
|
|
340
|
-
"@scalar/snippetz": "0.6.
|
|
341
|
+
"@scalar/postman-to-openapi": "0.4.7",
|
|
342
|
+
"@scalar/snippetz": "0.6.15",
|
|
341
343
|
"@scalar/themes": "0.14.0",
|
|
342
|
-
"@scalar/
|
|
343
|
-
"@scalar/sidebar": "0.7.
|
|
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.
|
|
347
|
+
"@scalar/use-codemirror": "0.13.42",
|
|
347
348
|
"@scalar/use-toasts": "0.9.1",
|
|
348
|
-
"@scalar/workspace-store": "0.
|
|
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.
|
|
365
|
-
"@scalar/pre-post-request-scripts": "0.
|
|
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"}
|