@scalar/api-client 2.17.8 → 2.18.0
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 +49 -0
- package/dist/style.css +1 -1
- package/dist/v2/blocks/operation-block/helpers/build-request.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/helpers/build-request.js +46 -51
- package/dist/v2/blocks/operation-block/helpers/get-environment-variables.d.ts +9 -0
- package/dist/v2/blocks/operation-block/helpers/get-environment-variables.d.ts.map +1 -0
- package/dist/v2/blocks/operation-block/helpers/get-environment-variables.js +7 -0
- package/dist/v2/blocks/operation-block/helpers/get-example.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/helpers/get-example.js +12 -10
- package/dist/v2/blocks/operation-block/helpers/get-server-url.d.ts +3 -0
- package/dist/v2/blocks/operation-block/helpers/get-server-url.d.ts.map +1 -0
- package/dist/v2/blocks/operation-block/helpers/get-server-url.js +12 -0
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.js +1 -1
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue2.js +87 -65
- package/dist/v2/components/code-input/CodeInput.vue.d.ts +115 -144
- 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/code-input/CodeInput.vue2.js +120 -107
- package/dist/v2/components/data-table/DataTableInput.vue.d.ts +3 -3
- package/dist/v2/components/data-table/DataTableInput.vue.d.ts.map +1 -1
- package/dist/v2/components/data-table/DataTableInput.vue.js +2 -2
- package/dist/v2/components/data-table/DataTableInput.vue2.js +27 -27
- package/dist/v2/components/data-table/DataTableInputSelect.vue.d.ts +3 -2
- package/dist/v2/components/data-table/DataTableInputSelect.vue.d.ts.map +1 -1
- package/dist/v2/components/data-table/DataTableInputSelect.vue.js +42 -39
- package/dist/v2/components/sidebar/Sidebar.vue.d.ts +5 -3
- package/dist/v2/components/sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts +5 -3
- package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts.map +1 -1
- package/dist/v2/components/sidebar/SidebarMenu.vue.js +25 -30
- package/dist/v2/features/app/App.vue.d.ts.map +1 -1
- package/dist/v2/features/app/App.vue.js +89 -141
- package/dist/v2/features/app/app-events.d.ts +22 -0
- package/dist/v2/features/app/app-events.d.ts.map +1 -0
- package/dist/v2/features/app/app-events.js +136 -0
- package/dist/v2/features/app/app-state.d.ts +135 -0
- package/dist/v2/features/app/app-state.d.ts.map +1 -0
- package/dist/v2/features/app/app-state.js +316 -0
- package/dist/v2/features/app/components/AppSidebar.vue.d.ts +6 -3
- 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 +4 -4
- package/dist/v2/features/app/components/DesktopTabs.vue.d.ts +4 -2
- package/dist/v2/features/app/components/DesktopTabs.vue.d.ts.map +1 -1
- package/dist/v2/features/app/components/DesktopTabs.vue.js +25 -22
- package/dist/v2/features/app/components/WebTopNav.vue.d.ts +9 -5
- package/dist/v2/features/app/components/WebTopNav.vue.d.ts.map +1 -1
- package/dist/v2/features/app/helpers/create-api-client-app.d.ts +62 -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 +14 -10
- package/dist/v2/features/app/helpers/routes.d.ts +5 -2
- package/dist/v2/features/app/helpers/routes.d.ts.map +1 -1
- package/dist/v2/features/collection/WorkspaceCollection.vue.js +7 -7
- package/dist/v2/features/collection/components/Form.vue.d.ts +1 -1
- package/dist/v2/features/collection/components/Form.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Servers.vue.d.ts.map +1 -1
- package/dist/v2/features/modal/Modal.vue.d.ts.map +1 -1
- package/dist/v2/features/modal/Modal.vue.js +2 -2
- package/dist/v2/features/modal/Modal.vue2.js +40 -41
- package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -1
- package/dist/v2/features/operation/Operation.vue.js +38 -28
- package/dist/v2/features/operation/helpers/combine-params.d.ts +4 -0
- package/dist/v2/features/operation/helpers/combine-params.d.ts.map +1 -0
- package/dist/v2/features/operation/helpers/combine-params.js +13 -0
- package/dist/v2/features/operation/index.d.ts +1 -0
- package/dist/v2/features/operation/index.d.ts.map +1 -1
- package/dist/v2/features/operation/index.js +10 -8
- package/dist/v2/helpers/get-tab-details.d.ts +2 -2
- package/dist/v2/helpers/get-tab-details.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/package.json +16 -16
- package/dist/v2/features/app/hooks/use-app-sidebar.d.ts +0 -40
- package/dist/v2/features/app/hooks/use-app-sidebar.d.ts.map +0 -1
- package/dist/v2/features/app/hooks/use-app-sidebar.js +0 -134
- package/dist/v2/features/app/hooks/use-sync-path.d.ts +0 -11
- package/dist/v2/features/app/hooks/use-sync-path.d.ts.map +0 -1
- package/dist/v2/features/app/hooks/use-sync-path.js +0 -52
- package/dist/v2/features/app/hooks/use-tabs.d.ts +0 -31
- package/dist/v2/features/app/hooks/use-tabs.d.ts.map +0 -1
- package/dist/v2/features/app/hooks/use-tabs.js +0 -44
- package/dist/v2/features/app/hooks/use-workspace-client-app-events.d.ts +0 -18
- package/dist/v2/features/app/hooks/use-workspace-client-app-events.d.ts.map +0 -1
- package/dist/v2/features/app/hooks/use-workspace-client-app-events.js +0 -156
- package/dist/v2/features/app/hooks/use-workspace-selector.d.ts +0 -28
- package/dist/v2/features/app/hooks/use-workspace-selector.d.ts.map +0 -1
- package/dist/v2/features/app/hooks/use-workspace-selector.js +0 -81
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import type { WorkspaceEventBus } from '@scalar/workspace-store/events';
|
|
2
|
-
import type {
|
|
2
|
+
import type { Tab } from '@scalar/workspace-store/schemas/extensions/workspace/x-scalar-tabs';
|
|
3
3
|
type __VLS_Props = {
|
|
4
4
|
/** Tabs state */
|
|
5
|
-
|
|
5
|
+
tabs: Tab[];
|
|
6
|
+
/** Current active tab index */
|
|
7
|
+
activeTabIndex: number;
|
|
6
8
|
/** Workspace event bus for emitting tab-related events */
|
|
7
9
|
eventBus: WorkspaceEventBus;
|
|
8
10
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DesktopTabs.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/app/components/DesktopTabs.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DesktopTabs.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/app/components/DesktopTabs.vue"],"names":[],"mappings":"AA0EA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AACvE,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,oEAAoE,CAAA;AAK7F,KAAK,WAAW,GAAG;IACjB,iBAAiB;IACjB,IAAI,EAAE,GAAG,EAAE,CAAA;IACX,+BAA+B;IAC/B,cAAc,EAAE,MAAM,CAAA;IACtB,0DAA0D;IAC1D,QAAQ,EAAE,iBAAiB,CAAA;CAC5B,CAAC;;AAkJF,wBAMG"}
|
|
@@ -1,41 +1,44 @@
|
|
|
1
|
-
import { defineComponent as v, computed as
|
|
2
|
-
import { ScalarIcon as
|
|
3
|
-
import
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as v, computed as d, createElementBlock as c, openBlock as o, createElementVNode as h, Fragment as p, renderList as T, createBlock as C, createVNode as k, unref as g } from "vue";
|
|
2
|
+
import { ScalarIcon as f } from "@scalar/components";
|
|
3
|
+
import B from "./DesktopTab.vue.js";
|
|
4
|
+
const y = { class: "mac:pl-[72px] t-app__top-nav flex h-10 items-center gap-2 px-2" }, U = /* @__PURE__ */ v({
|
|
5
5
|
__name: "DesktopTabs",
|
|
6
6
|
props: {
|
|
7
|
-
|
|
7
|
+
tabs: {},
|
|
8
|
+
activeTabIndex: {},
|
|
8
9
|
eventBus: {}
|
|
9
10
|
},
|
|
10
11
|
setup(a) {
|
|
11
|
-
const
|
|
12
|
+
const n = d(() => a.tabs.length === 1), s = () => {
|
|
12
13
|
a.eventBus.emit("tabs:add:tab", void 0);
|
|
13
|
-
}, b = (e) => {
|
|
14
|
-
a.eventBus.emit("tabs:focus:tab", { index: e });
|
|
15
14
|
}, r = (e) => {
|
|
15
|
+
a.eventBus.emit("tabs:focus:tab", { index: e });
|
|
16
|
+
}, b = (e) => {
|
|
16
17
|
a.eventBus.emit("tabs:close:tab", { index: e });
|
|
17
18
|
}, i = (e) => {
|
|
18
19
|
a.eventBus.emit("tabs:close:other-tabs", { index: e });
|
|
20
|
+
}, u = (e) => {
|
|
21
|
+
a.eventBus.emit("tabs:copy:url", { index: e });
|
|
19
22
|
};
|
|
20
|
-
return (e,
|
|
21
|
-
(
|
|
23
|
+
return (e, S) => (o(), c("nav", y, [
|
|
24
|
+
(o(!0), c(p, null, T(e.tabs, (m, t) => (o(), C(B, {
|
|
22
25
|
key: t,
|
|
23
|
-
active: t === e.
|
|
24
|
-
hotkey: !
|
|
25
|
-
isSingleTab:
|
|
26
|
-
tab:
|
|
27
|
-
onClick: (
|
|
28
|
-
onClose: (
|
|
29
|
-
onCloseOtherTabs: (
|
|
30
|
-
onCopyUrl: (
|
|
31
|
-
onNewTab:
|
|
26
|
+
active: t === e.activeTabIndex,
|
|
27
|
+
hotkey: !n.value && t < 9 ? String(t + 1) : void 0,
|
|
28
|
+
isSingleTab: n.value,
|
|
29
|
+
tab: m,
|
|
30
|
+
onClick: (l) => r(t),
|
|
31
|
+
onClose: (l) => b(t),
|
|
32
|
+
onCloseOtherTabs: (l) => i(t),
|
|
33
|
+
onCopyUrl: () => u(t),
|
|
34
|
+
onNewTab: s
|
|
32
35
|
}, null, 8, ["active", "hotkey", "isSingleTab", "tab", "onClick", "onClose", "onCloseOtherTabs", "onCopyUrl"]))), 128)),
|
|
33
36
|
h("button", {
|
|
34
37
|
class: "text-c-3 hover:bg-b-3 app-no-drag-region rounded p-1.5",
|
|
35
38
|
type: "button",
|
|
36
|
-
onClick:
|
|
39
|
+
onClick: s
|
|
37
40
|
}, [
|
|
38
|
-
k(
|
|
41
|
+
k(g(f), {
|
|
39
42
|
icon: "Add",
|
|
40
43
|
size: "sm",
|
|
41
44
|
thickness: "2.5"
|
|
@@ -45,5 +48,5 @@ const f = { class: "flex h-10 items-center gap-2 px-2" }, O = /* @__PURE__ */ v(
|
|
|
45
48
|
}
|
|
46
49
|
});
|
|
47
50
|
export {
|
|
48
|
-
|
|
51
|
+
U as default
|
|
49
52
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ScalarListboxOption } from '@scalar/components';
|
|
2
2
|
/**
|
|
3
3
|
* The top nav on the web
|
|
4
4
|
*
|
|
@@ -9,12 +9,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
9
9
|
* The currently active workspace.
|
|
10
10
|
* This represents the workspace that the user is currently working in.
|
|
11
11
|
*/
|
|
12
|
-
activeWorkspace:
|
|
12
|
+
activeWorkspace: {
|
|
13
|
+
id: string;
|
|
14
|
+
};
|
|
13
15
|
/**
|
|
14
16
|
* The list of all available workspaces.
|
|
15
17
|
* Used to render options for workspace switching and selection.
|
|
16
18
|
*/
|
|
17
|
-
workspaces:
|
|
19
|
+
workspaces: ScalarListboxOption[];
|
|
18
20
|
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
19
21
|
"create:workspace": () => any;
|
|
20
22
|
"select:workspace": (id?: string | undefined) => any;
|
|
@@ -23,12 +25,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
23
25
|
* The currently active workspace.
|
|
24
26
|
* This represents the workspace that the user is currently working in.
|
|
25
27
|
*/
|
|
26
|
-
activeWorkspace:
|
|
28
|
+
activeWorkspace: {
|
|
29
|
+
id: string;
|
|
30
|
+
};
|
|
27
31
|
/**
|
|
28
32
|
* The list of all available workspaces.
|
|
29
33
|
* Used to render options for workspace switching and selection.
|
|
30
34
|
*/
|
|
31
|
-
workspaces:
|
|
35
|
+
workspaces: ScalarListboxOption[];
|
|
32
36
|
}> & Readonly<{
|
|
33
37
|
"onCreate:workspace"?: (() => any) | undefined;
|
|
34
38
|
"onSelect:workspace"?: ((id?: string | undefined) => any) | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WebTopNav.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/app/components/WebTopNav.vue"],"names":[],"mappings":"AAiDA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"WebTopNav.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/app/components/WebTopNav.vue"],"names":[],"mappings":"AAiDA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AAO7D;;;;GAIG;;IAGD;;;OAGG;qBACc;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE;IAC/B;;;OAGG;gBACS,mBAAmB,EAAE;;;;;IATjC;;;OAGG;qBACc;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE;IAC/B;;;OAGG;gBACS,mBAAmB,EAAE;;;;;AAXnC,wBAuGC"}
|
|
@@ -20,5 +20,66 @@ export declare const createAppRouter: (layout: CreateApiClientOptions["layout"])
|
|
|
20
20
|
/**
|
|
21
21
|
* Create the API Client with router and passes in the workspace store as a prop
|
|
22
22
|
*/
|
|
23
|
-
export declare const createApiClientApp: (el: HTMLElement | null, { layout, plugins }: CreateApiClientOptions) =>
|
|
23
|
+
export declare const createApiClientApp: (el: HTMLElement | null, { layout, plugins }: CreateApiClientOptions) => {
|
|
24
|
+
app: import("vue").App<Element>;
|
|
25
|
+
state: {
|
|
26
|
+
store: import("vue").ShallowRef<import("@scalar/workspace-store/client").WorkspaceStore | null>;
|
|
27
|
+
sidebar: {
|
|
28
|
+
state: {
|
|
29
|
+
items: import("vue").ComputedRef<import("@scalar/workspace-store/schemas/navigation").TraversedEntry[]>;
|
|
30
|
+
index: import("vue").ComputedRef<Map<string, import("@scalar/workspace-store/schemas/navigation").TraversedEntry & {
|
|
31
|
+
parent?: import("@scalar/workspace-store/schemas/navigation").TraversedEntry | undefined;
|
|
32
|
+
}>>;
|
|
33
|
+
selectedItems: import("vue").Ref<Record<string, boolean>, Record<string, boolean>>;
|
|
34
|
+
expandedItems: import("vue").Ref<Record<string, boolean>, Record<string, boolean>>;
|
|
35
|
+
selectedItem: import("vue").Ref<string | null, string | null>;
|
|
36
|
+
setSelected: (id: string | null) => void;
|
|
37
|
+
setExpanded: (id: string, value: boolean) => void;
|
|
38
|
+
isExpanded: (id: string) => boolean;
|
|
39
|
+
isSelected: (id: string) => boolean;
|
|
40
|
+
getEntryById: (id: string) => (import("@scalar/workspace-store/schemas/navigation").TraversedEntry & {
|
|
41
|
+
parent?: import("@scalar/workspace-store/schemas/navigation").TraversedEntry | undefined;
|
|
42
|
+
}) | undefined;
|
|
43
|
+
reset: () => void;
|
|
44
|
+
};
|
|
45
|
+
width: import("vue").ComputedRef<number>;
|
|
46
|
+
isOpen: import("vue").Ref<boolean>;
|
|
47
|
+
handleSelectItem: (id: string) => Promise<void | import("vue-router").NavigationFailure | undefined> | undefined;
|
|
48
|
+
handleSidebarWidthUpdate: (width: number) => void | undefined;
|
|
49
|
+
getEntryByLocation: import("../../../../v2/features/app/app-state.js").GetEntryByLocation;
|
|
50
|
+
};
|
|
51
|
+
tabs: {
|
|
52
|
+
state: import("vue").Ref<import("@scalar/workspace-store/schemas/extensions/workspace/x-scalar-tabs").Tab[]>;
|
|
53
|
+
activeTabIndex: import("vue").Ref<number>;
|
|
54
|
+
copyTabUrl: (index: number) => Promise<void>;
|
|
55
|
+
};
|
|
56
|
+
workspace: {
|
|
57
|
+
create: ({ id, name, }: {
|
|
58
|
+
id?: string;
|
|
59
|
+
name: string;
|
|
60
|
+
}) => Promise<{
|
|
61
|
+
id: string;
|
|
62
|
+
name: string;
|
|
63
|
+
} | undefined>;
|
|
64
|
+
workspaceList: import("vue").Ref<import("@scalar/components").ScalarListboxOption[]>;
|
|
65
|
+
activeWorkspace: import("vue").ShallowRef<import("@scalar/components").ScalarListboxOption | null>;
|
|
66
|
+
setId: (id?: string) => Promise<void>;
|
|
67
|
+
isOpen: import("vue").ComputedRef<boolean>;
|
|
68
|
+
};
|
|
69
|
+
commandPalette: import("../../command-palette/hooks/use-command-palette-state.js").UseCommandPaletteStateReturn;
|
|
70
|
+
eventBus: import("@scalar/workspace-store/events").WorkspaceEventBus;
|
|
71
|
+
router: import("vue").ShallowRef<import("vue-router").Router | null>;
|
|
72
|
+
currentRoute: import("vue").Ref<import("vue-router").RouteLocationNormalizedGeneric | null>;
|
|
73
|
+
loading: import("vue").Ref<boolean>;
|
|
74
|
+
activeEntities: {
|
|
75
|
+
workspaceSlug: import("vue").Ref<string | undefined>;
|
|
76
|
+
documentSlug: import("vue").Ref<string | undefined>;
|
|
77
|
+
path: import("vue").Ref<string | undefined>;
|
|
78
|
+
method: import("vue").Ref<import("@scalar/helpers/http/http-methods").HttpMethod | undefined>;
|
|
79
|
+
exampleName: import("vue").Ref<string | undefined>;
|
|
80
|
+
};
|
|
81
|
+
environment: import("vue").ComputedRef<import("@scalar/workspace-store/schemas/extensions/document/x-scalar-environments").XScalarEnvironment>;
|
|
82
|
+
document: import("vue").ComputedRef<import("@scalar/workspace-store/schemas").WorkspaceDocument | null>;
|
|
83
|
+
};
|
|
84
|
+
} | undefined;
|
|
24
85
|
//# sourceMappingURL=create-api-client-app.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-api-client-app.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/app/helpers/create-api-client-app.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-api-client-app.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/app/helpers/create-api-client-app.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAErD,MAAM,MAAM,sBAAsB,GAAG;IACnC;;;;;OAKG;IACH,MAAM,EAAE,OAAO,CAAC,YAAY,EAAE,OAAO,CAAC,CAAA;IACtC;;OAEG;IACH,OAAO,CAAC,EAAE,YAAY,EAAE,CAAA;CACzB,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,eAAe,GAAI,QAAQ,sBAAsB,CAAC,QAAQ,CAAC,gCAQvE,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,kBAAkB,GAAI,IAAI,WAAW,GAAG,IAAI,EAAE,qBAAiC,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBA4B21K,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;aAD78K,CAAA"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { createApp as
|
|
2
|
-
import { createRouter as
|
|
3
|
-
import
|
|
1
|
+
import { createApp as c } from "vue";
|
|
2
|
+
import { createRouter as i, createWebHistory as n, createWebHashHistory as m } from "vue-router";
|
|
3
|
+
import u from "../App.vue.js";
|
|
4
4
|
/* empty css */
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
import { useAppState as l } from "../app-state.js";
|
|
6
|
+
import { ROUTES as p } from "./routes.js";
|
|
7
|
+
const f = (e) => e === "web" ? i({ history: n(), routes: p }) : i({ history: m(), routes: p }), v = (e, { layout: r = "desktop", plugins: s }) => {
|
|
8
|
+
const t = c(u, { layout: r, plugins: s }), o = f(r), a = l();
|
|
9
|
+
if (a.router.value = o, t.use(o), !e) {
|
|
9
10
|
console.error(
|
|
10
11
|
"[@scalar/api-client-modal] Could not create the API client.",
|
|
11
12
|
"Invalid HTML element provided.",
|
|
@@ -13,9 +14,12 @@ const m = (e) => e === "web" ? o({ history: c(), routes: a }) : o({ history: s()
|
|
|
13
14
|
);
|
|
14
15
|
return;
|
|
15
16
|
}
|
|
16
|
-
t.mount(e)
|
|
17
|
+
return t.mount(e), {
|
|
18
|
+
app: t,
|
|
19
|
+
state: a
|
|
20
|
+
};
|
|
17
21
|
};
|
|
18
22
|
export {
|
|
19
|
-
|
|
20
|
-
|
|
23
|
+
v as createApiClientApp,
|
|
24
|
+
f as createAppRouter
|
|
21
25
|
};
|
|
@@ -4,7 +4,6 @@ import type { WorkspaceEventBus } from '@scalar/workspace-store/events';
|
|
|
4
4
|
import type { XScalarEnvironment } from '@scalar/workspace-store/schemas/extensions/document/x-scalar-environments';
|
|
5
5
|
import type { WorkspaceDocument } from '@scalar/workspace-store/schemas/workspace';
|
|
6
6
|
import type { MergedSecuritySchemes } from '../../../../v2/blocks/scalar-auth-selector-block/helpers/merge-auth-config.js';
|
|
7
|
-
import type { Workspace } from '../../../../v2/features/app/hooks/use-workspace-selector.js';
|
|
8
7
|
import type { ClientPlugin } from '../../../../v2/helpers/plugins.js';
|
|
9
8
|
import type { ClientLayout } from '../../../../v2/types/layout';
|
|
10
9
|
/** These props are provided at the route level */
|
|
@@ -19,7 +18,10 @@ export type RouteProps = {
|
|
|
19
18
|
environment: XScalarEnvironment;
|
|
20
19
|
securitySchemes: MergedSecuritySchemes;
|
|
21
20
|
workspaceStore: WorkspaceStore;
|
|
22
|
-
activeWorkspace:
|
|
21
|
+
activeWorkspace: {
|
|
22
|
+
id: string;
|
|
23
|
+
label: string;
|
|
24
|
+
};
|
|
23
25
|
plugins: ClientPlugin[];
|
|
24
26
|
};
|
|
25
27
|
/** When in the collections pages */
|
|
@@ -30,6 +32,7 @@ export type CollectionProps = RouteProps & ({
|
|
|
30
32
|
collectionType: 'workspace';
|
|
31
33
|
document: null;
|
|
32
34
|
});
|
|
35
|
+
export type ScalarClientAppRouteParams = 'workspaceSlug' | 'documentSlug' | 'pathEncoded' | 'method' | 'exampleName';
|
|
33
36
|
/** Routes for the API client app and web, the same as modal + workspace routes */
|
|
34
37
|
export declare const ROUTES: ({
|
|
35
38
|
path: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/app/helpers/routes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AACnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AACvE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAA;AAGlF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kEAAkE,CAAA;
|
|
1
|
+
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/app/helpers/routes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AACnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AACvE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAA;AAGlF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kEAAkE,CAAA;AAU7G,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAExD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAErD,kDAAkD;AAClD,MAAM,MAAM,UAAU,GAAG;IACvB,YAAY,EAAE,MAAM,CAAA;IACpB,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAAA;IAClC,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,MAAM,EAAE,YAAY,CAAA;IACpB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,UAAU,CAAA;IACnB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,WAAW,EAAE,kBAAkB,CAAA;IAC/B,eAAe,EAAE,qBAAqB,CAAA;IACtC,cAAc,EAAE,cAAc,CAAA;IAC9B,eAAe,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAA;IAC9C,OAAO,EAAE,YAAY,EAAE,CAAA;CAGxB,CAAA;AAED,oCAAoC;AACpC,MAAM,MAAM,eAAe,GAAG,UAAU,GACtC,CACI;IACE,cAAc,EAAE,UAAU,CAAA;IAC1B,QAAQ,EAAE,iBAAiB,CAAA;CAC5B,GACD;IACE,cAAc,EAAE,WAAW,CAAA;IAC3B,QAAQ,EAAE,IAAI,CAAA;CACf,CACJ,CAAA;AAEH,MAAM,MAAM,0BAA0B,GAAG,eAAe,GAAG,cAAc,GAAG,aAAa,GAAG,QAAQ,GAAG,aAAa,CAAA;AAEpH,kFAAkF;AAClF,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;oCAZK,UAAU;8BAChB,iBAAiB;;oCAGX,WAAW;8BACjB,IAAI;;oCALE,UAAU;8BAChB,iBAAiB;;oCAGX,WAAW;8BACjB,IAAI;;;;;;;;;;;;;;;gCALE,UAAU;0BAChB,iBAAiB;;gCAGX,WAAW;0BACjB,IAAI;;gCALE,UAAU;0BAChB,iBAAiB;;gCAGX,WAAW;0BACjB,IAAI;;;;;;;;;IA0GM,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as l, createElementBlock as r, openBlock as
|
|
2
|
-
import { ScalarIconGlobe as
|
|
1
|
+
import { defineComponent as l, createElementBlock as r, openBlock as i, createElementVNode as e, createVNode as t, unref as s, toDisplayString as n, mergeProps as p } from "vue";
|
|
2
|
+
import { ScalarIconGlobe as m } from "@scalar/icons";
|
|
3
3
|
import { RouterView as d } from "vue-router";
|
|
4
4
|
import u from "./components/Tabs.vue.js";
|
|
5
5
|
const _ = { class: "custom-scroll h-full" }, f = { class: "w-full md:mx-auto md:max-w-[720px]" }, x = ["aria-label"], h = { class: "group relative ml-1.25" }, v = { class: "text-c-1 flex h-8 items-center" }, k = { class: "px-1.5 py-8" }, w = {}, B = /* @__PURE__ */ l({
|
|
@@ -21,20 +21,20 @@ const _ = { class: "custom-scroll h-full" }, f = { class: "w-full md:mx-auto md:
|
|
|
21
21
|
},
|
|
22
22
|
setup(a) {
|
|
23
23
|
const c = a;
|
|
24
|
-
return (o,
|
|
24
|
+
return (o, b) => (i(), r("div", _, [
|
|
25
25
|
e("div", f, [
|
|
26
26
|
e("div", {
|
|
27
|
-
"aria-label": `title: ${o.activeWorkspace.
|
|
27
|
+
"aria-label": `title: ${o.activeWorkspace.label}`,
|
|
28
28
|
class: "mx-auto flex h-fit w-full flex-col gap-2 pt-6 pb-3 md:mx-auto md:max-w-[720px]"
|
|
29
29
|
}, [
|
|
30
|
-
t(s(
|
|
30
|
+
t(s(m), { class: "text-c-2 size-6" }),
|
|
31
31
|
e("div", h, [
|
|
32
|
-
e("span", v,
|
|
32
|
+
e("span", v, n(o.activeWorkspace.label), 1)
|
|
33
33
|
])
|
|
34
34
|
], 8, x),
|
|
35
35
|
t(u, { type: "workspace" }),
|
|
36
36
|
e("div", k, [
|
|
37
|
-
t(s(d),
|
|
37
|
+
t(s(d), p(c, { collectionType: "workspace" }), null, 16)
|
|
38
38
|
])
|
|
39
39
|
])
|
|
40
40
|
]));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Form.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/collection/components/Form.vue"],"names":[],"mappings":"AA0EA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AAQnH,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,EAAE;QACP,GAAG,EAAE,MAAM,CAAA;QACX,KAAK,EAAE,MAAM,CAAA;QACb,WAAW,EAAE,MAAM,CAAA;KACpB,EAAE,CAAA;IACH,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IACzB,QAAQ,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;
|
|
1
|
+
{"version":3,"file":"Form.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/collection/components/Form.vue"],"names":[],"mappings":"AA0EA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AAQnH,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,EAAE;QACP,GAAG,EAAE,MAAM,CAAA;QACX,KAAK,EAAE,MAAM,CAAA;QACb,WAAW,EAAE,MAAM,CAAA;KACpB,EAAE,CAAA;IACH,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IACzB,QAAQ,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,KAAK,IAAI,CAAA;IACvD,WAAW,EAAE,kBAAkB,CAAA;CAChC,CAAC;AA4IF,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAyB7C,QAAA,MAAM,eAAe,kSAMnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Servers.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/collection/components/Servers.vue"],"names":[],"mappings":";;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"Servers.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/collection/components/Servers.vue"],"names":[],"mappings":";;;;;;;;;;;;;AA6jBA,wBAMG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Modal.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/modal/Modal.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Modal.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/modal/Modal.vue"],"names":[],"mappings":"AAqYA,OAAO,EAGL,KAAK,UAAU,EAEhB,MAAM,oBAAoB,CAAA;AAC3B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AACnE,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,6BAA6B,CAAA;AAE/E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AACvE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAA;AAExE,OAAO,EASL,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACtB,MAAM,KAAK,CAAA;AAIZ,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,6CAA6C,CAAA;AAGxF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAOxD,MAAM,MAAM,UAAU,GAAG;IACvB,4DAA4D;IAC5D,cAAc,EAAE,cAAc,CAAA;IAC9B,qDAAqD;IACrD,QAAQ,EAAE,WAAW,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAAA;IAC/C,iDAAiD;IACjD,IAAI,EAAE,WAAW,CAAC,MAAM,GAAG,SAAS,CAAC,CAAA;IACrC,4CAA4C;IAC5C,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,mDAAmD;IACnD,MAAM,EAAE,WAAW,CAAC,UAAU,GAAG,SAAS,CAAC,CAAA;IAC3C,yDAAyD;IACzD,WAAW,EAAE,WAAW,CAAC,MAAM,GAAG,SAAS,CAAC,CAAA;IAC5C,2CAA2C;IAC3C,UAAU,EAAE,UAAU,CAAA;IACtB,0DAA0D;IAC1D,YAAY,EAAE,qBAAqB,CAAA;IACnC,iDAAiD;IACjD,OAAO,EAAE,YAAY,EAAE,CAAA;IACvB,wDAAwD;IACxD,OAAO,EAAE,gBAAgB,CACvB,IAAI,CAAC,4BAA4B,EAAE,gBAAgB,CAAC,CACrD,CAAA;CACF,CAAA;AAED;;;;GAIG;;;;;AACH,wBAoWC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Modal.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-433595c5"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -1,24 +1,23 @@
|
|
|
1
|
-
import { defineComponent as I, ref as h, useId as N, watch as D, nextTick as E, onBeforeMount as F, onBeforeUnmount as U, computed as
|
|
1
|
+
import { defineComponent as I, ref as h, useId as N, watch as D, nextTick as E, onBeforeMount as F, onBeforeUnmount as U, computed as u, toValue as V, withDirectives as w, createElementBlock as r, openBlock as c, createElementVNode as i, unref as o, createVNode as l, withCtx as x, vShow as k } from "vue";
|
|
2
2
|
import { addScalarClassesToHeadless as A, ScalarTeleportRoot as $ } from "@scalar/components";
|
|
3
|
-
import { ScalarToasts as
|
|
4
|
-
import { useFocusTrap as
|
|
5
|
-
import { mergeAuthConfig as
|
|
3
|
+
import { ScalarToasts as H } from "@scalar/use-toasts";
|
|
4
|
+
import { useFocusTrap as L } from "@vueuse/integrations/useFocusTrap";
|
|
5
|
+
import { mergeAuthConfig as M } from "../../blocks/scalar-auth-selector-block/helpers/merge-auth-config.js";
|
|
6
6
|
import z from "../operation/Operation.vue.js";
|
|
7
7
|
import { getActiveEnvironment as O } from "../../helpers/get-active-environment.js";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import
|
|
12
|
-
import K from "../../components/sidebar/
|
|
13
|
-
|
|
14
|
-
const J = { class: "scalar scalar-app" }, Q = { class: "scalar-container" }, X = ["id"], Y = {
|
|
8
|
+
import { useGlobalHotKeys as R } from "../../hooks/use-global-hot-keys.js";
|
|
9
|
+
import { useScrollLock as j } from "../../hooks/use-scroll-lock.js";
|
|
10
|
+
import { useWorkspaceClientModalEvents as q } from "./hooks/use-workspace-client-modal-events.js";
|
|
11
|
+
import G from "../../components/sidebar/SidebarToggle.vue.js";
|
|
12
|
+
import K from "../../components/sidebar/Sidebar.vue.js";
|
|
13
|
+
const P = { class: "scalar scalar-app" }, J = { class: "scalar-container" }, Q = ["id"], X = {
|
|
15
14
|
key: 0,
|
|
16
15
|
class: "relative flex flex-1"
|
|
17
|
-
},
|
|
16
|
+
}, Y = {
|
|
18
17
|
key: 1,
|
|
19
18
|
class: "flex h-full w-full items-center justify-center"
|
|
20
|
-
},
|
|
21
|
-
...
|
|
19
|
+
}, Z = {}, ce = /* @__PURE__ */ I({
|
|
20
|
+
...Z,
|
|
22
21
|
__name: "Modal",
|
|
23
22
|
props: {
|
|
24
23
|
workspaceStore: {},
|
|
@@ -33,50 +32,50 @@ const J = { class: "scalar scalar-app" }, Q = { class: "scalar-container" }, X =
|
|
|
33
32
|
options: {}
|
|
34
33
|
},
|
|
35
34
|
setup(t, { expose: b }) {
|
|
36
|
-
typeof window < "u" && (window.dataDumpWorkspace = () => t.workspaceStore)
|
|
35
|
+
typeof window < "u" && (window.dataDumpWorkspace = () => t.workspaceStore);
|
|
37
36
|
const m = {
|
|
38
|
-
|
|
37
|
+
label: "default",
|
|
39
38
|
id: "default"
|
|
40
39
|
}, s = h(!1);
|
|
41
|
-
|
|
40
|
+
q({
|
|
42
41
|
eventBus: t.eventBus,
|
|
43
42
|
document: t.document,
|
|
44
43
|
workspaceStore: t.workspaceStore,
|
|
45
44
|
isSidebarOpen: s,
|
|
46
45
|
sidebarState: t.sidebarState,
|
|
47
46
|
modalState: t.modalState
|
|
48
|
-
}),
|
|
49
|
-
const
|
|
47
|
+
}), R(t.eventBus, "modal");
|
|
48
|
+
const v = h(null), f = N(), { activate: y, deactivate: B } = L(v, {
|
|
50
49
|
allowOutsideClick: !0,
|
|
51
|
-
fallbackFocus: `#${
|
|
50
|
+
fallbackFocus: `#${f}`
|
|
52
51
|
}), p = () => {
|
|
53
52
|
B(), t.eventBus.emit("operation:cancel:request");
|
|
54
|
-
}, g =
|
|
53
|
+
}, g = j(() => typeof window < "u" ? window.document.body : null);
|
|
55
54
|
D(
|
|
56
55
|
() => t.modalState.open,
|
|
57
56
|
(e) => {
|
|
58
57
|
g.value = e, e ? y({ checkCanFocusTrap: () => E() }) : p();
|
|
59
58
|
}
|
|
60
59
|
), F(() => A()), U(() => p());
|
|
61
|
-
const
|
|
62
|
-
() => t.workspaceStore?.workspace?.["x-scalar-sidebar-width"] ??
|
|
63
|
-
),
|
|
60
|
+
const T = 288, d = u(
|
|
61
|
+
() => t.workspaceStore?.workspace?.["x-scalar-sidebar-width"] ?? T
|
|
62
|
+
), C = (e) => t.workspaceStore?.update("x-scalar-sidebar-width", e), S = u(
|
|
64
63
|
() => O(t.workspaceStore, t.document.value)
|
|
65
|
-
), W =
|
|
66
|
-
() =>
|
|
64
|
+
), W = u(
|
|
65
|
+
() => M(
|
|
67
66
|
t.document.value?.components?.securitySchemes,
|
|
68
67
|
V(t.options)?.authentication?.securitySchemes
|
|
69
68
|
)
|
|
70
69
|
);
|
|
71
70
|
return b({
|
|
72
|
-
sidebarWidth:
|
|
71
|
+
sidebarWidth: d,
|
|
73
72
|
environment: S
|
|
74
|
-
}), (e, a) => w((c(),
|
|
75
|
-
i("div",
|
|
73
|
+
}), (e, a) => w((c(), r("div", P, [
|
|
74
|
+
i("div", J, [
|
|
76
75
|
i("div", {
|
|
77
|
-
id: o(
|
|
76
|
+
id: o(f),
|
|
78
77
|
ref_key: "client",
|
|
79
|
-
ref:
|
|
78
|
+
ref: v,
|
|
80
79
|
"aria-label": "API Client",
|
|
81
80
|
"aria-modal": "true",
|
|
82
81
|
class: "scalar-app-layout scalar-client flex",
|
|
@@ -85,18 +84,18 @@ const J = { class: "scalar scalar-app" }, Q = { class: "scalar-container" }, X =
|
|
|
85
84
|
}, [
|
|
86
85
|
l(o($), null, {
|
|
87
86
|
default: x(() => [
|
|
88
|
-
l(o(
|
|
89
|
-
e.document.value && e.path?.value && e.method?.value ? (c(),
|
|
90
|
-
l(o(
|
|
87
|
+
l(o(H)),
|
|
88
|
+
e.document.value && e.path?.value && e.method?.value ? (c(), r("main", X, [
|
|
89
|
+
l(o(G), {
|
|
91
90
|
modelValue: s.value,
|
|
92
91
|
"onUpdate:modelValue": a[0] || (a[0] = (n) => s.value = n),
|
|
93
92
|
class: "absolute top-2 left-3 z-[10001]"
|
|
94
93
|
}, null, 8, ["modelValue"]),
|
|
95
|
-
w(l(o(
|
|
96
|
-
sidebarWidth:
|
|
94
|
+
w(l(o(K), {
|
|
95
|
+
sidebarWidth: d.value,
|
|
97
96
|
"onUpdate:sidebarWidth": [
|
|
98
|
-
a[1] || (a[1] = (n) =>
|
|
99
|
-
|
|
97
|
+
a[1] || (a[1] = (n) => d.value = n),
|
|
98
|
+
C
|
|
100
99
|
],
|
|
101
100
|
activeWorkspace: m,
|
|
102
101
|
class: "z-[10000] h-full max-md:absolute! max-md:w-full!",
|
|
@@ -125,13 +124,13 @@ const J = { class: "scalar scalar-app" }, Q = { class: "scalar-container" }, X =
|
|
|
125
124
|
securitySchemes: W.value,
|
|
126
125
|
workspaceStore: e.workspaceStore
|
|
127
126
|
}, null, 8, ["document", "documentSlug", "environment", "eventBus", "exampleName", "method", "path", "plugins", "securitySchemes", "workspaceStore"])
|
|
128
|
-
])) : (c(),
|
|
127
|
+
])) : (c(), r("div", Y, [...a[3] || (a[3] = [
|
|
129
128
|
i("span", { class: "text-c-3" }, "No document selected", -1)
|
|
130
129
|
])]))
|
|
131
130
|
]),
|
|
132
131
|
_: 1
|
|
133
132
|
})
|
|
134
|
-
], 8,
|
|
133
|
+
], 8, Q),
|
|
135
134
|
i("div", {
|
|
136
135
|
class: "scalar-app-exit",
|
|
137
136
|
onClick: a[2] || (a[2] = (n) => e.modalState.hide())
|
|
@@ -143,5 +142,5 @@ const J = { class: "scalar scalar-app" }, Q = { class: "scalar-container" }, X =
|
|
|
143
142
|
}
|
|
144
143
|
});
|
|
145
144
|
export {
|
|
146
|
-
|
|
145
|
+
ce as default
|
|
147
146
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Operation.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/operation/Operation.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Operation.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/operation/Operation.vue"],"names":[],"mappings":"AA6KA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAA;AAMlE;;;;;;;GAOG;;AACH,wBAuOC"}
|