@scalar/api-client 2.0.24 → 2.0.26
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 +39 -0
- package/dist/components/AddressBar/AddressBar.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBar.vue.js +2 -2
- package/dist/components/AddressBar/AddressBar.vue2.js +79 -83
- package/dist/components/AddressBar/AddressBarHistory.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBarHistory.vue.js +38 -38
- package/dist/components/AddressBar/AddressBarServer.vue.d.ts.map +1 -1
- package/dist/components/CodeInput/CodeInput.vue.d.ts +10 -0
- package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
- package/dist/components/CodeInput/CodeInput.vue.js +2 -1
- package/dist/components/CodeInput/CodeInput.vue2.js +43 -38
- package/dist/components/CodeInput/codeDropdownWidget.d.ts +24 -0
- package/dist/components/CodeInput/codeDropdownWidget.d.ts.map +1 -0
- package/dist/components/CodeInput/codeDropdownWidget.js +110 -0
- package/dist/components/CodeInput/codeVariableWidget.d.ts +8 -0
- package/dist/components/CodeInput/codeVariableWidget.d.ts.map +1 -0
- package/dist/components/CodeInput/codeVariableWidget.js +124 -0
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.d.ts +2 -15
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.js +51 -54
- package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts +4 -2
- package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteExample.vue.js +106 -92
- package/dist/components/CommandPalette/CommandPaletteFolder.vue.d.ts +2 -15
- package/dist/components/CommandPalette/CommandPaletteFolder.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteFolder.vue.js +68 -74
- package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts +2 -15
- package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteImport.vue.js +56 -62
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts +2 -15
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.js +106 -99
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.d.ts +7 -0
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.d.ts.map +1 -0
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.js +57 -0
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue2.js +4 -0
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +50 -0
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -0
- package/dist/components/CommandPalette/TheCommandPalette.vue.js +9 -0
- package/dist/components/CommandPalette/TheCommandPalette.vue2.js +198 -0
- package/dist/components/CommandPalette/index.d.ts +2 -0
- package/dist/components/CommandPalette/index.d.ts.map +1 -0
- package/dist/components/CommandPalette/index.js +4 -0
- package/dist/components/ContextBar.vue.js +4 -4
- package/dist/components/DataTable/DataTableInput.vue.d.ts +1 -1
- package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInput.vue.js +3 -3
- package/dist/components/DataTable/DataTableInput.vue2.js +36 -49
- package/dist/components/SideNav/SideNav.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideNav.vue.js +26 -23
- package/dist/components/SideNav/SideNavLink.vue.d.ts +3 -2
- package/dist/components/SideNav/SideNavLink.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideNavLink.vue.js +5 -5
- package/dist/components/Sidebar/Sidebar.vue.d.ts +15 -2
- package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Sidebar.vue.js +14 -12
- package/dist/components/Sidebar/SidebarButton.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarButton.vue.js +5 -5
- package/dist/components/TopNav/TopNav.vue.d.ts.map +1 -1
- package/dist/components/TopNav/TopNav.vue.js +2 -2
- package/dist/components/TopNav/TopNav.vue2.js +31 -28
- package/dist/components/TopNav/TopNavItem.vue.d.ts +7 -3
- package/dist/components/TopNav/TopNavItem.vue.d.ts.map +1 -1
- package/dist/components/TopNav/TopNavItem.vue.js +2 -2
- package/dist/components/TopNav/TopNavItem.vue2.js +16 -15
- package/dist/components/ViewLayout/ViewLayout.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayout.vue.js +1 -1
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +2 -1
- package/dist/constants.d.ts +13 -7
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +4 -4
- package/dist/index.d.ts +3 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +14 -16
- package/dist/layouts/App/ApiClientApp.vue.d.ts.map +1 -0
- package/dist/layouts/App/ApiClientApp.vue.js +72 -0
- package/dist/{App → layouts/App}/createApiClientApp.d.ts +1 -1
- package/dist/layouts/App/createApiClientApp.d.ts.map +1 -0
- package/dist/{App → layouts/App}/createApiClientApp.js +2 -2
- package/dist/layouts/App/index.d.ts.map +1 -0
- package/dist/{Modal → layouts/Modal}/ApiClientModal.vue.d.ts +1 -0
- package/dist/layouts/Modal/ApiClientModal.vue.d.ts.map +1 -0
- package/dist/{Modal → layouts/Modal}/ApiClientModal.vue.js +2 -2
- package/dist/{Modal → layouts/Modal}/api-client-modal.d.ts +1 -1
- package/dist/layouts/Modal/api-client-modal.d.ts.map +1 -0
- package/dist/{Modal → layouts/Modal}/api-client-modal.js +42 -42
- package/dist/layouts/Modal/index.d.ts.map +1 -0
- package/dist/libs/eventBusses/command-palette.d.ts +14 -0
- package/dist/libs/eventBusses/command-palette.d.ts.map +1 -0
- package/dist/libs/eventBusses/command-palette.js +5 -0
- package/dist/libs/local-storage.d.ts +1 -1
- package/dist/libs/local-storage.d.ts.map +1 -1
- package/dist/libs/local-storage.js +19 -19
- package/dist/router.d.ts +5 -10
- package/dist/router.d.ts.map +1 -1
- package/dist/router.js +23 -19
- package/dist/store/topNav.d.ts +94 -82
- package/dist/store/topNav.d.ts.map +1 -1
- package/dist/store/topNav.js +21 -20
- package/dist/store/workspace.d.ts +348 -94
- package/dist/store/workspace.d.ts.map +1 -1
- package/dist/store/workspace.js +314 -221
- package/dist/style.css +1 -1
- package/dist/views/Collection/Collection.vue.d.ts.map +1 -1
- package/dist/views/Components/Schemas/Schemas.vue.d.ts.map +1 -1
- package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
- package/dist/views/Cookies/Cookies.vue2.js +27 -30
- package/dist/views/Environment/Environment.vue.d.ts.map +1 -1
- package/dist/views/Environment/Environment.vue2.js +22 -25
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts.map +1 -1
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +38 -47
- package/dist/views/Request/Request.vue.d.ts.map +1 -1
- package/dist/views/Request/Request.vue.js +1 -1
- package/dist/views/Request/Request.vue2.js +130 -109
- package/dist/views/Request/RequestSection/RequestAuthDataTableInput.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestAuthDataTableInput.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue.js +5 -4
- package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestTable.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestTable.vue2.js +19 -19
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.js +6 -5
- package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItem.vue.js +2 -2
- package/dist/views/Request/RequestSidebarItem.vue2.js +78 -81
- package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItemMenu.vue.js +60 -42
- package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue.js +6 -5
- package/dist/views/Request/components/OAuth2.vue.d.ts.map +1 -1
- package/dist/views/Request/components/OAuth2.vue.js +2 -0
- package/dist/{App.vue.d.ts → views/Request/components/WorkspaceDropdown.vue.d.ts} +1 -2
- package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts.map +1 -0
- package/dist/views/Request/components/WorkspaceDropdown.vue.js +80 -0
- package/dist/views/Request/components/WorkspaceDropdown.vue2.js +4 -0
- package/dist/views/Request/components/index.d.ts +1 -0
- package/dist/views/Request/components/index.d.ts.map +1 -1
- package/dist/views/Request/components/index.js +4 -2
- package/dist/views/Servers/Servers.vue.d.ts.map +1 -1
- package/dist/views/Servers/Servers.vue2.js +12 -15
- package/package.json +22 -18
- package/dist/App/ApiClientApp.vue.d.ts.map +0 -1
- package/dist/App/ApiClientApp.vue.js +0 -56
- package/dist/App/createApiClientApp.d.ts.map +0 -1
- package/dist/App/index.d.ts.map +0 -1
- package/dist/App.vue.d.ts.map +0 -1
- package/dist/App.vue.js +0 -77
- package/dist/App.vue3.js +0 -5
- package/dist/Modal/ApiClientModal.vue.d.ts.map +0 -1
- package/dist/Modal/api-client-modal.d.ts.map +0 -1
- package/dist/Modal/index.d.ts.map +0 -1
- package/dist/components/AddressBar/AddressBarServer.vue.js +0 -113
- package/dist/components/AddressBar/AddressBarServer.vue2.js +0 -4
- package/dist/components/CommandPalette/CommandPalette.vue.d.ts +0 -17
- package/dist/components/CommandPalette/CommandPalette.vue.d.ts.map +0 -1
- package/dist/components/CommandPalette/CommandPalette.vue.js +0 -7
- package/dist/components/CommandPalette/CommandPalette.vue2.js +0 -185
- package/dist/main.d.ts +0 -2
- package/dist/main.d.ts.map +0 -1
- /package/dist/{App → layouts/App}/ApiClientApp.vue.d.ts +0 -0
- /package/dist/{App → layouts/App}/ApiClientApp.vue3.js +0 -0
- /package/dist/{App → layouts/App}/index.d.ts +0 -0
- /package/dist/{App → layouts/App}/index.js +0 -0
- /package/dist/{Modal → layouts/Modal}/ApiClientModal.vue2.js +0 -0
- /package/dist/{Modal → layouts/Modal}/index.d.ts +0 -0
- /package/dist/{Modal → layouts/Modal}/index.js +0 -0
package/dist/constants.d.ts
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
export declare const ROUTES: readonly [{
|
|
2
|
+
readonly name: "request";
|
|
3
|
+
readonly icon: "ExternalLink";
|
|
4
|
+
}, {
|
|
5
|
+
readonly name: "cookies";
|
|
6
|
+
readonly icon: "Cookie";
|
|
7
|
+
}, {
|
|
8
|
+
readonly name: "environment";
|
|
9
|
+
readonly icon: "Brackets";
|
|
10
|
+
}, {
|
|
11
|
+
readonly name: "servers";
|
|
12
|
+
readonly icon: "Server";
|
|
13
|
+
}];
|
|
8
14
|
//# sourceMappingURL=constants.d.ts.map
|
package/dist/constants.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;EAMT,CAAA"}
|
package/dist/constants.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const e = [
|
|
2
|
-
{
|
|
3
|
-
{
|
|
4
|
-
{
|
|
5
|
-
{
|
|
2
|
+
{ name: "request", icon: "ExternalLink" },
|
|
3
|
+
{ name: "cookies", icon: "Cookie" },
|
|
4
|
+
{ name: "environment", icon: "Brackets" },
|
|
5
|
+
{ name: "servers", icon: "Server" }
|
|
6
6
|
// { label: 'Git Sync', icon: 'Branch', path: '/git-sync' },
|
|
7
7
|
];
|
|
8
8
|
export {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
export
|
|
2
|
-
export * from './
|
|
3
|
-
export * from './App/index.js';
|
|
1
|
+
export * from './layouts/Modal/index.js';
|
|
2
|
+
export * from './layouts/App/index.js';
|
|
4
3
|
export { useWorkspace } from './store/workspace.js';
|
|
5
|
-
export { modalRouter } from './router.js';
|
|
4
|
+
export { modalRouter, router } from './router.js';
|
|
6
5
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA;AAE7B,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -1,18 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
import { default as x } from "./
|
|
6
|
-
|
|
7
|
-
import {
|
|
8
|
-
import { createApiClientModal as s } from "./Modal/api-client-modal.js";
|
|
9
|
-
import { createApiClientApp as C } from "./App/createApiClientApp.js";
|
|
1
|
+
import { useWorkspace as t } from "./store/workspace.js";
|
|
2
|
+
import { modalRouter as a, router as i } from "./router.js";
|
|
3
|
+
import { default as f } from "./layouts/App/ApiClientApp.vue.js";
|
|
4
|
+
/* empty css */
|
|
5
|
+
import { default as x } from "./layouts/Modal/ApiClientModal.vue.js";
|
|
6
|
+
import { createApiClientModal as d } from "./layouts/Modal/api-client-modal.js";
|
|
7
|
+
import { createApiClientApp as n } from "./layouts/App/createApiClientApp.js";
|
|
10
8
|
export {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
9
|
+
f as ApiClientApp,
|
|
10
|
+
x as ApiClientModal,
|
|
11
|
+
n as createApiClientApp,
|
|
12
|
+
d as createApiClientModal,
|
|
13
|
+
a as modalRouter,
|
|
14
|
+
i as router,
|
|
15
|
+
t as useWorkspace
|
|
18
16
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ApiClientApp.vue.d.ts","sourceRoot":"","sources":["../../../src/layouts/App/ApiClientApp.vue"],"names":[],"mappings":";AA+SA,wBAKG"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { defineComponent as f, onMounted as u, watchEffect as _, onBeforeMount as g, computed as h, openBlock as r, createElementBlock as m, Fragment as k, createElementVNode as i, createVNode as a, unref as s, withCtx as v, createBlock as p, KeepAlive as y, resolveDynamicComponent as x, createCommentVNode as S } from "vue";
|
|
2
|
+
import T from "../../components/SideNav/SideNav.vue.js";
|
|
3
|
+
import C from "../../components/TopNav/TopNav.vue.js";
|
|
4
|
+
import { useWorkspace as w } from "../../store/workspace.js";
|
|
5
|
+
import { addScalarClassesToHeadless as B } from "@scalar/components";
|
|
6
|
+
import { LS_KEYS as L } from "@scalar/object-utils/mutator-record";
|
|
7
|
+
import { getThemeStyles as M } from "@scalar/themes";
|
|
8
|
+
import { ScalarToasts as W } from "@scalar/use-toasts";
|
|
9
|
+
import { RouterView as A } from "vue-router";
|
|
10
|
+
import { loadAllResources as E } from "../../libs/local-storage.js";
|
|
11
|
+
import K from "../../components/CommandPalette/TheCommandPalette.vue.js";
|
|
12
|
+
import { useDarkModeState as b } from "../../hooks/useDarkModeState.js";
|
|
13
|
+
const N = ["innerHTML"], V = {
|
|
14
|
+
key: 0,
|
|
15
|
+
class: "flex min-h-0 flex-1"
|
|
16
|
+
}, D = { class: "flex flex-1 flex-col min-w-0" }, J = /* @__PURE__ */ f({
|
|
17
|
+
__name: "ApiClientApp",
|
|
18
|
+
setup(F) {
|
|
19
|
+
u(() => {
|
|
20
|
+
_(() => {
|
|
21
|
+
document.body.classList.toggle("dark-mode", n.value), document.body.classList.toggle("light-mode", !n.value);
|
|
22
|
+
});
|
|
23
|
+
});
|
|
24
|
+
const { isDark: n } = b(), t = w();
|
|
25
|
+
g(async () => {
|
|
26
|
+
if (localStorage.getItem(L.WORKSPACE)) {
|
|
27
|
+
const l = {};
|
|
28
|
+
let c = 0, o = 0, e = "";
|
|
29
|
+
for (e in localStorage)
|
|
30
|
+
Object.prototype.hasOwnProperty.call(localStorage, e) && (o = (localStorage[e].length + e.length) * 2, c += o, l[e] = (o / 1024).toFixed(2) + " KB");
|
|
31
|
+
l.Total = (c / 1024).toFixed(2) + " KB", console.table(l), E(t);
|
|
32
|
+
} else
|
|
33
|
+
t.workspaceMutators.add({
|
|
34
|
+
uid: "default",
|
|
35
|
+
name: "Workspace",
|
|
36
|
+
proxyUrl: "https://proxy.scalar.com"
|
|
37
|
+
});
|
|
38
|
+
B();
|
|
39
|
+
});
|
|
40
|
+
const d = h(
|
|
41
|
+
() => t.activeWorkspace.value && `<style>
|
|
42
|
+
${M(t.activeWorkspace.value.themeId, {
|
|
43
|
+
fonts: !0
|
|
44
|
+
})}</style>`
|
|
45
|
+
);
|
|
46
|
+
return (l, c) => {
|
|
47
|
+
var o;
|
|
48
|
+
return r(), m(k, null, [
|
|
49
|
+
i("div", { innerHTML: d.value }, null, 8, N),
|
|
50
|
+
a(C),
|
|
51
|
+
(o = s(t).activeWorkspace.value) != null && o.uid ? (r(), m("main", V, [
|
|
52
|
+
a(T),
|
|
53
|
+
a(s(K)),
|
|
54
|
+
i("div", D, [
|
|
55
|
+
a(s(A), null, {
|
|
56
|
+
default: v(({ Component: e }) => [
|
|
57
|
+
(r(), p(y, null, [
|
|
58
|
+
(r(), p(x(e)))
|
|
59
|
+
], 1024))
|
|
60
|
+
]),
|
|
61
|
+
_: 1
|
|
62
|
+
})
|
|
63
|
+
])
|
|
64
|
+
])) : S("", !0),
|
|
65
|
+
a(s(W))
|
|
66
|
+
], 64);
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
export {
|
|
71
|
+
J as default
|
|
72
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createApiClientApp.d.ts","sourceRoot":"","sources":["../../../src/layouts/App/createApiClientApp.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAA;AAG1D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAA;AAM1D;;GAEG;AACH,eAAO,MAAM,kBAAkB,OAEzB,WAAW,GAAG,IAAI,UAEd,mBAAmB;IAiEzB,+DAA+D;;IAE/D,mCAAmC;4BACX,mBAAmB;IAQ3C,uEAAuE;uBACpD,iBAAiB;IAapC,8CAA8C;;EAGjD,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { router as A } from "
|
|
2
|
-
import { useWorkspace as h } from "
|
|
1
|
+
import { router as A } from "../../router.js";
|
|
2
|
+
import { useWorkspace as h } from "../../store/workspace.js";
|
|
3
3
|
import { objectMerge as I } from "@scalar/oas-utils/helpers";
|
|
4
4
|
import { createApp as v } from "vue";
|
|
5
5
|
import P from "./ApiClientApp.vue.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/layouts/App/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAC5D,cAAc,sBAAsB,CAAA"}
|
|
@@ -7,6 +7,7 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
|
7
7
|
modalState: ReturnType<typeof useModal>;
|
|
8
8
|
}>>>, {}, {}>;
|
|
9
9
|
export default _default;
|
|
10
|
+
|
|
10
11
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
11
12
|
type __VLS_TypePropsToOption<T> = {
|
|
12
13
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ApiClientModal.vue.d.ts","sourceRoot":"","sources":["../../../src/layouts/Modal/ApiClientModal.vue"],"names":[],"mappings":"AAsLA,OAAO,EAA8B,KAAK,QAAQ,EAAE,MAAM,oBAAoB,CAAA;;IAQ5E,6CAA6C;gBACjC,UAAU,CAAC,OAAO,QAAQ,CAAC;;IADvC,6CAA6C;gBACjC,UAAU,CAAC,OAAO,QAAQ,CAAC;;AAiHzC,wBAMG;AAEH,eAAO,MAAM,sBAAsB,IAAK,CAAC;AACzC,OAAO,CAAC,MAAM,CAAC;IAEd,KAAK,uBAAuB,GAAG,gBAAgB,CAAC,OAAO,iBAAiB,EAAE,GAAG,CAAC,iBAAiB,EAAE,gBAAgB,CAAC,UAAU,CAAC,GAAG,CAAC,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC;IAE1K,KAAK,aAAa,GAAG,gBAAgB,CAAC,OAAO,iBAAiB,EAAE,GAAG,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IAErG,KAAK,sBAAsB,GAAG,gBAAgB,CAAC,OAAO,KAAK,EAAE,gBAAgB,EAAE,EAAE,CAAC,GAAG,gBAAgB,CAAC,OAAO,mBAAmB,EAAE,gBAAgB,EAAE,EAAE,CAAC,GAAG,gBAAgB,CAAC,OAAO,kBAAkB,EAAE,gBAAgB,EAAE,EAAE,CAAC,GAAG,IAAI,CAAC,cAAc,KAAK,CAAC,EAAE,YAAY,GAAG,iBAAiB,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AK,oBAAoB,CAAC,CAAC,IAAI,oBAAoB,CAClD,yBAAyB,CACxB,0BAA0B,CAAC,CAAC,CAAC,GAAG;SAC9B,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,GAAG,EAAE,GAAG;YAAE,CAAC,GAAG,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI,CAAA;SAAE,GAAG,KAAK;KACtE,CACD,CACD,CAAC;IACF,KAAK,oBAAoB,CAAC,CAAC,IAAI;SAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;KAAG,GAAG,EAAE,CAAC;CAC9D;AACD,eAAO,MAAM,oBAAoB,IAAK,CAAC;AAMvC,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import o from "./ApiClientModal.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
|
-
import t from "
|
|
5
|
-
const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
+
const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-5357614d"]]);
|
|
6
6
|
export {
|
|
7
7
|
a as default
|
|
8
8
|
};
|
|
@@ -4,7 +4,7 @@ import type { ThemeId } from '@scalar/themes';
|
|
|
4
4
|
/** Configuration options for the Scalar API client */
|
|
5
5
|
export type ClientConfiguration = {
|
|
6
6
|
/** The Swagger/OpenAPI spec to render */
|
|
7
|
-
spec
|
|
7
|
+
spec?: SpecConfiguration;
|
|
8
8
|
/** Pass in a proxy to the API client */
|
|
9
9
|
proxyUrl?: string;
|
|
10
10
|
/** Pass in a theme API client */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api-client-modal.d.ts","sourceRoot":"","sources":["../../../src/layouts/Modal/api-client-modal.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAA;AAG/E,OAAO,EAAE,KAAK,aAAa,EAAe,MAAM,2BAA2B,CAAA;AAG3E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAM7C,sDAAsD;AACtD,MAAM,MAAM,mBAAmB,GAAG;IAChC,yCAAyC;IACzC,IAAI,CAAC,EAAE,iBAAiB,CAAA;IACxB,wCAAwC;IACxC,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,iCAAiC;IACjC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,kCAAkC;IAClC,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,4DAA4D;IAE5D,mFAAmF;IACnF,YAAY,CAAC,EACT,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,CAAA;CACR,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,aAAa,CAAA;CAAE,CAAA;AAEvE,yCAAyC;AACzC,eAAO,MAAM,oBAAoB,OAE3B,WAAW,GAAG,IAAI,UAEd,mBAAmB;IAyEzB,+DAA+D;;IAE/D,mCAAmC;4BACX,mBAAmB;IAQ3C;;;OAGG;iCAC0B,MAAM;IAMnC;;;OAGG;uBACgB,mBAAmB;IAyEtC,uEAAuE;uBACpD,iBAAiB;IAapC,iCAAiC;qBAChB,iBAAiB;IAalC,8CAA8C;;;;;;;EAIjD,CAAA"}
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { modalRouter as k } from "
|
|
2
|
-
import { useWorkspace as
|
|
3
|
-
import { objectMerge as
|
|
4
|
-
import { getNestedValue as
|
|
5
|
-
import { createApp as
|
|
6
|
-
import
|
|
7
|
-
const L = async (
|
|
8
|
-
var h, w,
|
|
1
|
+
import { modalRouter as k } from "../../router.js";
|
|
2
|
+
import { useWorkspace as j } from "../../store/workspace.js";
|
|
3
|
+
import { objectMerge as P } from "@scalar/oas-utils/helpers";
|
|
4
|
+
import { getNestedValue as R } from "@scalar/object-utils/nested";
|
|
5
|
+
import { createApp as q } from "vue";
|
|
6
|
+
import C from "./ApiClientModal.vue.js";
|
|
7
|
+
const L = async (b, r, A = !0) => {
|
|
8
|
+
var h, w, y;
|
|
9
9
|
const {
|
|
10
|
-
activeCollection:
|
|
10
|
+
activeCollection: m,
|
|
11
11
|
activeWorkspace: a,
|
|
12
12
|
collectionMutators: I,
|
|
13
|
-
importSpecFile:
|
|
14
|
-
importSpecFromUrl:
|
|
15
|
-
modalState:
|
|
16
|
-
requests:
|
|
17
|
-
securitySchemeMutators:
|
|
18
|
-
securitySchemes:
|
|
19
|
-
serverMutators:
|
|
20
|
-
workspaceMutators:
|
|
21
|
-
} =
|
|
22
|
-
(h = r.spec) != null && h.url ? await
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
);
|
|
27
|
-
const u = C
|
|
13
|
+
importSpecFile: p,
|
|
14
|
+
importSpecFromUrl: n,
|
|
15
|
+
modalState: d,
|
|
16
|
+
requests: U,
|
|
17
|
+
securitySchemeMutators: x,
|
|
18
|
+
securitySchemes: M,
|
|
19
|
+
serverMutators: O,
|
|
20
|
+
workspaceMutators: l
|
|
21
|
+
} = j();
|
|
22
|
+
(h = r.spec) != null && h.url ? await n(r.spec.url, r.proxyUrl) : (w = r.spec) != null && w.content ? await p((y = r.spec) == null ? void 0 : y.content) : l.add({
|
|
23
|
+
uid: "default",
|
|
24
|
+
name: "Workspace",
|
|
25
|
+
proxyUrl: "https://proxy.scalar.com"
|
|
26
|
+
});
|
|
27
|
+
const u = q(C, { modalState: d });
|
|
28
28
|
u.use(k);
|
|
29
|
-
const f = (e =
|
|
29
|
+
const f = (e = b) => {
|
|
30
30
|
if (!e) {
|
|
31
31
|
console.error(
|
|
32
32
|
"[@scalar/api-client-modal] Could not create the API client.",
|
|
@@ -37,11 +37,11 @@ const L = async (A, r, b = !0) => {
|
|
|
37
37
|
}
|
|
38
38
|
u.mount(e);
|
|
39
39
|
};
|
|
40
|
-
return a.value && (
|
|
40
|
+
return a.value && (A && f(), l.edit(a.value.uid, "isReadOnly", !0), r.proxyUrl && l.edit(
|
|
41
41
|
a.value.uid,
|
|
42
42
|
"proxyUrl",
|
|
43
43
|
r.proxyUrl
|
|
44
|
-
), r.themeId &&
|
|
44
|
+
), r.themeId && l.edit(
|
|
45
45
|
a.value.uid,
|
|
46
46
|
"themeId",
|
|
47
47
|
r.themeId
|
|
@@ -50,7 +50,7 @@ const L = async (A, r, b = !0) => {
|
|
|
50
50
|
app: u,
|
|
51
51
|
/** Update the API client config */
|
|
52
52
|
updateConfig(e, s = !0) {
|
|
53
|
-
s ? Object.assign(r, e) :
|
|
53
|
+
s ? Object.assign(r, e) : P(r, e), e.spec && p(e.spec);
|
|
54
54
|
},
|
|
55
55
|
/**
|
|
56
56
|
* TODO this is just temporary for the modal, we'll put in a proper solution later
|
|
@@ -58,8 +58,8 @@ const L = async (A, r, b = !0) => {
|
|
|
58
58
|
*/
|
|
59
59
|
updateServerUrl: (e) => {
|
|
60
60
|
var s;
|
|
61
|
-
return
|
|
62
|
-
((s =
|
|
61
|
+
return O.edit(
|
|
62
|
+
((s = m.value) == null ? void 0 : s.selectedServerUid) ?? "",
|
|
63
63
|
"url",
|
|
64
64
|
e
|
|
65
65
|
);
|
|
@@ -69,9 +69,9 @@ const L = async (A, r, b = !0) => {
|
|
|
69
69
|
* maps the references useAuthenticationStore to the client auth
|
|
70
70
|
*/
|
|
71
71
|
updateAuth: (e) => {
|
|
72
|
-
var
|
|
73
|
-
if (Object.values(
|
|
74
|
-
const t = (
|
|
72
|
+
var i, c;
|
|
73
|
+
if (Object.values(M).forEach((o) => {
|
|
74
|
+
const t = (S, v = "value") => S.length && !R(o, v).length && x.edit(o.uid, v, S);
|
|
75
75
|
switch (o.type) {
|
|
76
76
|
case "apiKey":
|
|
77
77
|
t(e.apiKey.token);
|
|
@@ -86,9 +86,9 @@ const L = async (A, r, b = !0) => {
|
|
|
86
86
|
}), e.preferredSecurityScheme) {
|
|
87
87
|
const o = {
|
|
88
88
|
uid: e.preferredSecurityScheme
|
|
89
|
-
}, t = (
|
|
90
|
-
(t == null ? void 0 : t.type) === "oauth2" && (o.flowKey = (
|
|
91
|
-
|
|
89
|
+
}, t = (i = e.securitySchemes) == null ? void 0 : i[e.preferredSecurityScheme ?? ""];
|
|
90
|
+
(t == null ? void 0 : t.type) === "oauth2" && (o.flowKey = (c = t.flows) != null && c.implicit ? "implicit" : "password"), I.edit(
|
|
91
|
+
m.value.uid,
|
|
92
92
|
"selectedSecuritySchemes",
|
|
93
93
|
[o]
|
|
94
94
|
);
|
|
@@ -96,7 +96,7 @@ const L = async (A, r, b = !0) => {
|
|
|
96
96
|
},
|
|
97
97
|
/** Update the spec file, this will re-parse it and clear your store */
|
|
98
98
|
updateSpec: (e) => {
|
|
99
|
-
e != null && e.url ?
|
|
99
|
+
e != null && e.url ? n(e.url, r.proxyUrl) : e != null && e.content ? p(e == null ? void 0 : e.content) : console.error(
|
|
100
100
|
"[@scalar/api-client-modal] Could not create the API client.",
|
|
101
101
|
"Please provide an OpenAPI document: { spec: { url: '…' } }",
|
|
102
102
|
"Read more: https://github.com/scalar/scalar/tree/main/packages/api-client-modal"
|
|
@@ -104,20 +104,20 @@ const L = async (A, r, b = !0) => {
|
|
|
104
104
|
},
|
|
105
105
|
/** Open the API client modal */
|
|
106
106
|
open: (e) => {
|
|
107
|
-
const s = Object.values(
|
|
108
|
-
({ path:
|
|
107
|
+
const s = Object.values(U).find(
|
|
108
|
+
({ path: i, method: c }) => e ? (
|
|
109
109
|
// The given operation
|
|
110
|
-
|
|
110
|
+
i === e.path && c === e.method
|
|
111
111
|
) : (
|
|
112
112
|
// Or the first request
|
|
113
113
|
!0
|
|
114
114
|
)
|
|
115
115
|
);
|
|
116
|
-
s && k.push(`/workspace/default/request/${s.uid}`),
|
|
116
|
+
s && k.push(`/workspace/default/request/${s.uid}`), d.open = !0;
|
|
117
117
|
},
|
|
118
118
|
/** Mount the references to a given element */
|
|
119
119
|
mount: f,
|
|
120
|
-
modalState:
|
|
120
|
+
modalState: d
|
|
121
121
|
};
|
|
122
122
|
};
|
|
123
123
|
export {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/layouts/Modal/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAChE,cAAc,oBAAoB,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { CommandNames } from '../../components/CommandPalette/TheCommandPalette.vue.js';
|
|
2
|
+
export type CommandPaletteEvent = {
|
|
3
|
+
/** The command name which matches with the command palette */
|
|
4
|
+
commandName?: CommandNames;
|
|
5
|
+
/** Any extra metadata we want to pass to the command palettes */
|
|
6
|
+
metaData?: string;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Event bus for controlling the Command Palette
|
|
10
|
+
*
|
|
11
|
+
* @param commandName - the command name you wish to execute, leave empty for the full palette
|
|
12
|
+
*/
|
|
13
|
+
export declare const commandPaletteBus: import("@vueuse/core").UseEventBusReturn<CommandPaletteEvent, any>;
|
|
14
|
+
//# sourceMappingURL=command-palette.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command-palette.d.ts","sourceRoot":"","sources":["../../../src/libs/eventBusses/command-palette.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mDAAmD,CAAA;AAGrF,MAAM,MAAM,mBAAmB,GAAG;IAChC,8DAA8D;IAC9D,WAAW,CAAC,EAAE,YAAY,CAAA;IAC1B,iEAAiE;IACjE,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAA;AAGD;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,oEAAiC,CAAA"}
|
|
@@ -5,5 +5,5 @@ import type { useWorkspace } from '../store/workspace.js';
|
|
|
5
5
|
*
|
|
6
6
|
* Currently not working for workspace
|
|
7
7
|
*/
|
|
8
|
-
export declare const loadAllResources: (mutators: ReturnType<typeof useWorkspace
|
|
8
|
+
export declare const loadAllResources: (mutators: ReturnType<typeof useWorkspace>) => void;
|
|
9
9
|
//# sourceMappingURL=local-storage.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"local-storage.d.ts","sourceRoot":"","sources":["../../src/libs/local-storage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAcrD;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"local-storage.d.ts","sourceRoot":"","sources":["../../src/libs/local-storage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAcrD;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,aAAc,UAAU,CAAC,OAAO,YAAY,CAAC,SAkEzE,CAAA"}
|
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
import { LS_KEYS as e } from "@scalar/object-utils/mutator-record";
|
|
2
|
-
const
|
|
2
|
+
const N = (t) => {
|
|
3
3
|
const {
|
|
4
|
-
collectionMutators:
|
|
5
|
-
cookieMutators:
|
|
6
|
-
environmentMutators:
|
|
7
|
-
folderMutators:
|
|
8
|
-
requestExampleMutators:
|
|
9
|
-
requestMutators:
|
|
10
|
-
serverMutators:
|
|
4
|
+
collectionMutators: o,
|
|
5
|
+
cookieMutators: s,
|
|
6
|
+
environmentMutators: a,
|
|
7
|
+
folderMutators: r,
|
|
8
|
+
requestExampleMutators: c,
|
|
9
|
+
requestMutators: l,
|
|
10
|
+
serverMutators: E,
|
|
11
11
|
securitySchemeMutators: S,
|
|
12
|
-
workspaceMutators:
|
|
12
|
+
workspaceMutators: u
|
|
13
13
|
} = t;
|
|
14
14
|
Object.values(
|
|
15
15
|
JSON.parse(localStorage.getItem(e.COLLECTION) || "{}")
|
|
16
|
-
).forEach(
|
|
16
|
+
).forEach(o.rawAdd), Object.values(
|
|
17
17
|
JSON.parse(localStorage.getItem(e.COOKIE) || "{}")
|
|
18
|
-
).forEach(
|
|
18
|
+
).forEach(s.add), Object.values(
|
|
19
19
|
JSON.parse(localStorage.getItem(e.ENVIRONMENT) || "{}")
|
|
20
|
-
).forEach(
|
|
20
|
+
).forEach(a.add), Object.values(
|
|
21
21
|
JSON.parse(localStorage.getItem(e.FOLDER) || "{}")
|
|
22
|
-
).forEach(
|
|
22
|
+
).forEach(r.rawAdd), Object.values(
|
|
23
23
|
JSON.parse(localStorage.getItem(e.REQUEST_EXAMPLE) || "{}")
|
|
24
|
-
).forEach(
|
|
24
|
+
).forEach(c.rawAdd), Object.values(
|
|
25
25
|
JSON.parse(localStorage.getItem(e.REQUEST) || "{}")
|
|
26
|
-
).forEach(
|
|
26
|
+
).forEach(l.rawAdd), Object.values(
|
|
27
27
|
JSON.parse(localStorage.getItem(e.SERVER) || "{}")
|
|
28
|
-
).forEach(
|
|
28
|
+
).forEach(E.rawAdd), Object.values(
|
|
29
29
|
JSON.parse(localStorage.getItem(e.SECURITY_SCHEME) || "{}")
|
|
30
30
|
).forEach(S.add), Object.values(
|
|
31
|
-
JSON.parse(localStorage.getItem(e.WORKSPACE
|
|
32
|
-
).forEach(
|
|
31
|
+
JSON.parse(localStorage.getItem(e.WORKSPACE) || "{}")
|
|
32
|
+
).forEach(u.rawAdd);
|
|
33
33
|
};
|
|
34
34
|
export {
|
|
35
|
-
|
|
35
|
+
N as loadAllResources
|
|
36
36
|
};
|
package/dist/router.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export declare enum PathId {
|
|
2
2
|
Request = "request",
|
|
3
|
-
|
|
3
|
+
Examples = "examples",
|
|
4
4
|
Cookies = "cookies",
|
|
5
5
|
Collection = "collection",
|
|
6
6
|
Schema = "schema",
|
|
7
7
|
Environment = "environment",
|
|
8
|
-
|
|
8
|
+
Servers = "servers",
|
|
9
9
|
Workspace = "workspace"
|
|
10
10
|
}
|
|
11
11
|
/** Routes required by the client modal */
|
|
@@ -21,15 +21,10 @@ export declare const modalRoutes: ({
|
|
|
21
21
|
name?: undefined;
|
|
22
22
|
component?: undefined;
|
|
23
23
|
} | {
|
|
24
|
-
name:
|
|
24
|
+
name: string;
|
|
25
25
|
path: string;
|
|
26
26
|
component: () => Promise<typeof import("./views/Request/Request.vue.js")>;
|
|
27
27
|
redirect?: undefined;
|
|
28
|
-
} | {
|
|
29
|
-
path: string;
|
|
30
|
-
component: () => Promise<typeof import("./views/Request/Request.vue.js")>;
|
|
31
|
-
redirect?: undefined;
|
|
32
|
-
name?: undefined;
|
|
33
28
|
})[];
|
|
34
29
|
redirect?: undefined;
|
|
35
30
|
})[];
|
|
@@ -43,10 +38,10 @@ export declare const activeRouterParams: import("vue").ComputedRef<{
|
|
|
43
38
|
collection: string;
|
|
44
39
|
environment: string;
|
|
45
40
|
request: string;
|
|
46
|
-
|
|
41
|
+
examples: string;
|
|
47
42
|
schema: string;
|
|
48
43
|
cookies: string;
|
|
49
|
-
|
|
44
|
+
servers: string;
|
|
50
45
|
workspace: string;
|
|
51
46
|
}>;
|
|
52
47
|
/** If we try to navigate to a entity UID that does not exist then we fallback to the default */
|
package/dist/router.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"router.d.ts","sourceRoot":"","sources":["../src/router.ts"],"names":[],"mappings":"AAQA,oBAAY,MAAM;IAChB,OAAO,YAAY;IACnB,
|
|
1
|
+
{"version":3,"file":"router.d.ts","sourceRoot":"","sources":["../src/router.ts"],"names":[],"mappings":"AAQA,oBAAY,MAAM;IAChB,OAAO,YAAY;IACnB,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,UAAU,eAAe;IACzB,MAAM,WAAW;IACjB,WAAW,gBAAgB;IAC3B,OAAO,YAAY;IACnB,SAAS,cAAc;CACxB;AAwBD,0CAA0C;AAC1C,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;IAaI,CAAA;AA2E5B;;GAEG;AACH,eAAO,MAAM,MAAM,6BAGjB,CAAA;AAEF,sCAAsC;AACtC,eAAO,MAAM,WAAW,6BAGtB,CAAA;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;EA0B7B,CAAA;AAEF,gGAAgG;AAChG,wBAAgB,qBAAqB,CACnC,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS,QAmBtC"}
|