@scalar/api-client 2.27.1 → 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 +146 -0
- 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/request-block/RequestBlock.vue.js +1 -1
- package/dist/v2/blocks/request-block/RequestBlock.vue2.js +21 -21
- 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 +67 -75
- 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/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 +42 -40
- 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 +5 -5
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.d.ts +3 -1
- 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 +35 -35
- 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/sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/v2/components/sidebar/Sidebar.vue.js +1 -1
- package/dist/v2/features/app/App.vue.d.ts.map +1 -1
- package/dist/v2/features/app/App.vue.js +70 -70
- 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 +1 -1
- package/dist/v2/features/app/components/AppSidebar.vue2.js +48 -47
- 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/routes.js +11 -11
- 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 +38 -20
- 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/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/operation/Operation.vue.js +1 -1
- package/dist/v2/workspace-events.d.ts.map +1 -1
- package/dist/v2/workspace-events.js +123 -113
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/package.json +17 -17
- 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,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as U, ref as p, computed as v, watch as O, createBlock as h, openBlock as m, withCtx as o, createVNode as s, createTextVNode as H, createElementVNode as r, unref as n, normalizeClass as
|
|
1
|
+
import { defineComponent as U, ref as p, computed as v, watch as O, createBlock as h, openBlock as m, withCtx as o, createVNode as s, createTextVNode as H, createElementVNode as r, unref as n, normalizeClass as N, toDisplayString as w, createCommentVNode as L, createElementBlock as T, Fragment as V, renderList as _ } from "vue";
|
|
2
2
|
import { ScalarListbox as W, ScalarButton as k, ScalarIcon as S, ScalarDropdown as y, ScalarDropdownItem as z } from "@scalar/components";
|
|
3
3
|
import { HTTP_METHODS as F } from "@scalar/helpers/http/http-methods";
|
|
4
4
|
import { useRouter as A } from "vue-router";
|
|
@@ -12,12 +12,12 @@ const K = { class: "flex flex-1 gap-1" }, Q = { class: "flex items-center gap-2"
|
|
|
12
12
|
props: {
|
|
13
13
|
workspaceStore: {},
|
|
14
14
|
eventBus: {},
|
|
15
|
-
|
|
15
|
+
documentName: {},
|
|
16
16
|
tagId: {}
|
|
17
17
|
},
|
|
18
18
|
emits: ["close", "back"],
|
|
19
|
-
setup(u, { emit:
|
|
20
|
-
const g =
|
|
19
|
+
setup(u, { emit: $ }) {
|
|
20
|
+
const g = $, I = A(), b = p("/"), c = v(() => b.value.trim()), x = v(
|
|
21
21
|
() => Object.entries(u.workspaceStore.workspace.documents).map(
|
|
22
22
|
([e, a]) => ({
|
|
23
23
|
id: e,
|
|
@@ -29,7 +29,7 @@ const K = { class: "flex flex-1 gap-1" }, Q = { class: "flex items-center gap-2"
|
|
|
29
29
|
label: e.toUpperCase(),
|
|
30
30
|
method: e
|
|
31
31
|
})), t = p(
|
|
32
|
-
u.
|
|
32
|
+
u.documentName ? x.value.find((e) => e.id === u.documentName) : x.value[0] ?? void 0
|
|
33
33
|
), i = p(
|
|
34
34
|
C.find((e) => e.method === "get")
|
|
35
35
|
), f = v(() => {
|
|
@@ -70,7 +70,7 @@ const K = { class: "flex flex-1 gap-1" }, Q = { class: "flex items-center gap-2"
|
|
|
70
70
|
if (a) {
|
|
71
71
|
u.workspaceStore.buildSidebar(t.value?.id ?? "");
|
|
72
72
|
const l = c.value.startsWith("/") ? c.value : `/${c.value}`;
|
|
73
|
-
|
|
73
|
+
I.push({
|
|
74
74
|
name: "example",
|
|
75
75
|
params: {
|
|
76
76
|
documentSlug: t.value?.id,
|
|
@@ -103,7 +103,7 @@ const K = { class: "flex flex-1 gap-1" }, Q = { class: "flex items-center gap-2"
|
|
|
103
103
|
}, {
|
|
104
104
|
default: o(() => [
|
|
105
105
|
r("span", {
|
|
106
|
-
class:
|
|
106
|
+
class: N(t.value ? "text-c-1 truncate" : "text-c-3")
|
|
107
107
|
}, w(t.value ? t.value.label : "Select Document"), 3),
|
|
108
108
|
s(n(S), {
|
|
109
109
|
class: "text-c-3",
|
|
@@ -122,7 +122,7 @@ const K = { class: "flex flex-1 gap-1" }, Q = { class: "flex items-center gap-2"
|
|
|
122
122
|
}, {
|
|
123
123
|
items: o(() => [
|
|
124
124
|
r("div", X, [
|
|
125
|
-
(m(!0), V
|
|
125
|
+
(m(!0), T(V, null, _(n(C), (l) => (m(), h(n(z), {
|
|
126
126
|
key: l.id,
|
|
127
127
|
class: "flex h-7 w-full items-center justify-center px-1",
|
|
128
128
|
onClick: (M) => j(l)
|
|
@@ -165,7 +165,7 @@ const K = { class: "flex flex-1 gap-1" }, Q = { class: "flex items-center gap-2"
|
|
|
165
165
|
}, {
|
|
166
166
|
items: o(() => [
|
|
167
167
|
r("div", Y, [
|
|
168
|
-
(m(!0), V
|
|
168
|
+
(m(!0), T(V, null, _(f.value, (l) => (m(), h(n(z), {
|
|
169
169
|
key: l.id,
|
|
170
170
|
class: "flex h-7 w-full items-center px-1",
|
|
171
171
|
onClick: (M) => q(l)
|
|
@@ -185,7 +185,7 @@ const K = { class: "flex flex-1 gap-1" }, Q = { class: "flex items-center gap-2"
|
|
|
185
185
|
}, {
|
|
186
186
|
default: o(() => [
|
|
187
187
|
r("span", {
|
|
188
|
-
class:
|
|
188
|
+
class: N(d.value ? "text-c-1 truncate" : "text-c-3")
|
|
189
189
|
}, w(d.value ? d.value.label : "Select Tag (Optional)"), 3),
|
|
190
190
|
s(n(S), {
|
|
191
191
|
class: "text-c-3",
|
|
@@ -1,21 +1,39 @@
|
|
|
1
1
|
import type { WorkspaceStore } from '@scalar/workspace-store/client';
|
|
2
2
|
import type { WorkspaceEventBus } from '@scalar/workspace-store/events';
|
|
3
|
+
import type { TraversedTag } from '@scalar/workspace-store/schemas/navigation';
|
|
3
4
|
/**
|
|
4
5
|
* Command Palette Tag Component
|
|
5
6
|
*
|
|
6
|
-
* Provides a form for creating a
|
|
7
|
+
* Provides a form for creating or editing a tag in a document (collection).
|
|
7
8
|
* Tags are used to organize and group related API operations.
|
|
8
9
|
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
10
|
+
* When `tag` is provided, the component enters edit mode where:
|
|
11
|
+
* - The name input is pre-filled with the current tag name
|
|
12
|
+
* - The collection selector is hidden (tag already belongs to a document)
|
|
13
|
+
* - A cancel button is shown to close the modal without saving
|
|
14
|
+
* - Back navigation is disabled (cannot go back with backspace)
|
|
15
|
+
* - Submitting emits an 'edit' event instead of creating a new tag
|
|
16
|
+
*
|
|
17
|
+
* In create mode, validates that the tag name does not already exist
|
|
18
|
+
* in the selected document to prevent duplicates.
|
|
11
19
|
*
|
|
12
20
|
* @example
|
|
21
|
+
* // Create mode
|
|
13
22
|
* <CommandPaletteTag
|
|
14
23
|
* :workspaceStore="workspaceStore"
|
|
15
24
|
* :eventBus="eventBus"
|
|
16
25
|
* @close="handleClose"
|
|
17
26
|
* @back="handleBack"
|
|
18
27
|
* />
|
|
28
|
+
*
|
|
29
|
+
* // Edit mode
|
|
30
|
+
* <CommandPaletteTag
|
|
31
|
+
* :workspaceStore="workspaceStore"
|
|
32
|
+
* :eventBus="eventBus"
|
|
33
|
+
* :tag="tag"
|
|
34
|
+
* @close="handleClose"
|
|
35
|
+
* @edit="handleEdit"
|
|
36
|
+
* />
|
|
19
37
|
*/
|
|
20
38
|
declare const _default: typeof __VLS_export;
|
|
21
39
|
export default _default;
|
|
@@ -25,7 +43,9 @@ declare const __VLS_export: import("vue").DefineComponent<{
|
|
|
25
43
|
/** Event bus for emitting tag creation events */
|
|
26
44
|
eventBus: WorkspaceEventBus;
|
|
27
45
|
/** Preselected document id to create the tag in */
|
|
28
|
-
|
|
46
|
+
documentName?: string;
|
|
47
|
+
/** When provided, the component enters edit mode with this name pre-filled */
|
|
48
|
+
tag?: TraversedTag;
|
|
29
49
|
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
30
50
|
close: () => any;
|
|
31
51
|
back: (keyboardEvent: KeyboardEvent) => any;
|
|
@@ -35,7 +55,9 @@ declare const __VLS_export: import("vue").DefineComponent<{
|
|
|
35
55
|
/** Event bus for emitting tag creation events */
|
|
36
56
|
eventBus: WorkspaceEventBus;
|
|
37
57
|
/** Preselected document id to create the tag in */
|
|
38
|
-
|
|
58
|
+
documentName?: string;
|
|
59
|
+
/** When provided, the component enters edit mode with this name pre-filled */
|
|
60
|
+
tag?: TraversedTag;
|
|
39
61
|
}> & Readonly<{
|
|
40
62
|
onClose?: (() => any) | undefined;
|
|
41
63
|
onBack?: ((keyboardEvent: KeyboardEvent) => any) | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CommandPaletteTag.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/command-palette/components/CommandPaletteTag.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CommandPaletteTag.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/command-palette/components/CommandPaletteTag.vue"],"names":[],"mappings":"AA4NA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AACvE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4CAA4C,CAAA;AAO9E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;wBACkB,OAAO,YAAY;AAAxC,wBAAyC;AAKzC,QAAA,MAAM,YAAY;IAEhB,2DAA2D;oBAC3C,cAAc;IAC9B,iDAAiD;cACvC,iBAAiB;IAC3B,mDAAmD;mBACpC,MAAM;IACrB,8EAA8E;UACxE,YAAY;;;;;IAPlB,2DAA2D;oBAC3C,cAAc;IAC9B,iDAAiD;cACvC,iBAAiB;IAC3B,mDAAmD;mBACpC,MAAM;IACrB,8EAA8E;UACxE,YAAY;;;;kFAsShB,CAAC"}
|
|
@@ -1,60 +1,76 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarListbox as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
const
|
|
1
|
+
import { defineComponent as D, computed as i, ref as x, createBlock as v, openBlock as f, withCtx as o, createVNode as g, createTextVNode as k, toDisplayString as N, createCommentVNode as C, unref as c, createElementVNode as T, normalizeClass as y } from "vue";
|
|
2
|
+
import { ScalarListbox as h, ScalarButton as S, ScalarIcon as U } from "@scalar/components";
|
|
3
|
+
import j from "./CommandActionForm.vue.js";
|
|
4
|
+
import z from "./CommandActionInput.vue.js";
|
|
5
|
+
const E = {
|
|
6
6
|
name: "CommandPaletteTag"
|
|
7
|
-
},
|
|
8
|
-
...
|
|
7
|
+
}, M = /* @__PURE__ */ D({
|
|
8
|
+
...E,
|
|
9
9
|
props: {
|
|
10
10
|
workspaceStore: {},
|
|
11
11
|
eventBus: {},
|
|
12
|
-
|
|
12
|
+
documentName: {},
|
|
13
|
+
tag: {}
|
|
13
14
|
},
|
|
14
15
|
emits: ["close", "back"],
|
|
15
|
-
setup(
|
|
16
|
-
const
|
|
17
|
-
() => Object.entries(
|
|
18
|
-
([
|
|
19
|
-
id:
|
|
20
|
-
label:
|
|
16
|
+
setup(e, { emit: p }) {
|
|
17
|
+
const m = p, n = i(() => e.tag !== void 0), s = x(e.tag?.name ?? ""), u = i(() => s.value.trim()), r = i(
|
|
18
|
+
() => Object.entries(e.workspaceStore.workspace.documents).map(
|
|
19
|
+
([a, l]) => ({
|
|
20
|
+
id: a,
|
|
21
|
+
label: l.info.title || a
|
|
21
22
|
})
|
|
22
23
|
)
|
|
23
|
-
),
|
|
24
|
-
|
|
25
|
-
),
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
24
|
+
), t = x(
|
|
25
|
+
e.documentName ? r.value.find((a) => a.id === e.documentName) : r.value[0] ?? void 0
|
|
26
|
+
), b = i(() => {
|
|
27
|
+
const a = e.workspaceStore.workspace.documents[t.value?.id ?? ""];
|
|
28
|
+
return !!(!u.value || !t.value || !a || n.value && u.value === e.tag?.name || a.tags?.some((l) => l.name === u.value));
|
|
29
|
+
}), w = () => {
|
|
30
|
+
if (!(b.value || !t.value)) {
|
|
31
|
+
if (n.value && e.tag) {
|
|
32
|
+
e.eventBus.emit(
|
|
33
|
+
"tag:edit:tag",
|
|
34
|
+
{
|
|
35
|
+
tag: e.tag,
|
|
36
|
+
documentName: t.value.id,
|
|
37
|
+
newName: u.value
|
|
38
|
+
},
|
|
39
|
+
{ skipUnpackProxy: !0 }
|
|
40
|
+
), m("close");
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
e.eventBus.emit("tag:create:tag", {
|
|
44
|
+
name: u.value,
|
|
45
|
+
documentName: t.value.id
|
|
46
|
+
}), m("close");
|
|
47
|
+
}
|
|
48
|
+
}, V = (a) => {
|
|
49
|
+
n.value || m("back", a);
|
|
50
|
+
}, B = () => {
|
|
51
|
+
m("close");
|
|
37
52
|
};
|
|
38
|
-
return (
|
|
39
|
-
disabled:
|
|
40
|
-
onSubmit:
|
|
53
|
+
return (a, l) => (f(), v(j, {
|
|
54
|
+
disabled: b.value,
|
|
55
|
+
onSubmit: w
|
|
41
56
|
}, {
|
|
42
|
-
options:
|
|
43
|
-
n(c(
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
57
|
+
options: o(() => [
|
|
58
|
+
n.value ? C("", !0) : (f(), v(c(h), {
|
|
59
|
+
key: 0,
|
|
60
|
+
modelValue: t.value,
|
|
61
|
+
"onUpdate:modelValue": l[1] || (l[1] = (d) => t.value = d),
|
|
62
|
+
options: r.value
|
|
47
63
|
}, {
|
|
48
|
-
default:
|
|
49
|
-
|
|
64
|
+
default: o(() => [
|
|
65
|
+
g(c(S), {
|
|
50
66
|
class: "hover:bg-b-2 max-h-8 w-fit justify-between gap-1 p-2 text-xs",
|
|
51
67
|
variant: "outlined"
|
|
52
68
|
}, {
|
|
53
|
-
default:
|
|
54
|
-
|
|
55
|
-
class:
|
|
56
|
-
},
|
|
57
|
-
|
|
69
|
+
default: o(() => [
|
|
70
|
+
T("span", {
|
|
71
|
+
class: y(t.value ? "text-c-1" : "text-c-3")
|
|
72
|
+
}, N(t.value ? t.value.label : "Select Collection"), 3),
|
|
73
|
+
g(c(U), {
|
|
58
74
|
class: "text-c-3",
|
|
59
75
|
icon: "ChevronDown",
|
|
60
76
|
size: "md"
|
|
@@ -64,18 +80,29 @@ const j = {
|
|
|
64
80
|
})
|
|
65
81
|
]),
|
|
66
82
|
_: 1
|
|
67
|
-
}, 8, ["modelValue", "options"])
|
|
83
|
+
}, 8, ["modelValue", "options"])),
|
|
84
|
+
n.value ? (f(), v(c(S), {
|
|
85
|
+
key: 1,
|
|
86
|
+
class: "max-h-8 px-3 text-xs",
|
|
87
|
+
variant: "outlined",
|
|
88
|
+
onClick: B
|
|
89
|
+
}, {
|
|
90
|
+
default: o(() => [...l[2] || (l[2] = [
|
|
91
|
+
k(" Cancel ", -1)
|
|
92
|
+
])]),
|
|
93
|
+
_: 1
|
|
94
|
+
})) : C("", !0)
|
|
95
|
+
]),
|
|
96
|
+
submit: o(() => [
|
|
97
|
+
k(N(n.value ? "Save" : "Create Tag"), 1)
|
|
68
98
|
]),
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
n(h, {
|
|
74
|
-
modelValue: u.value,
|
|
75
|
-
"onUpdate:modelValue": t[0] || (t[0] = (r) => u.value = r),
|
|
99
|
+
default: o(() => [
|
|
100
|
+
g(z, {
|
|
101
|
+
modelValue: s.value,
|
|
102
|
+
"onUpdate:modelValue": l[0] || (l[0] = (d) => s.value = d),
|
|
76
103
|
label: "Tag Name",
|
|
77
104
|
placeholder: "Tag Name",
|
|
78
|
-
onDelete:
|
|
105
|
+
onDelete: V
|
|
79
106
|
}, null, 8, ["modelValue"])
|
|
80
107
|
]),
|
|
81
108
|
_: 1
|
|
@@ -83,5 +110,5 @@ const j = {
|
|
|
83
110
|
}
|
|
84
111
|
});
|
|
85
112
|
export {
|
|
86
|
-
|
|
113
|
+
M as default
|
|
87
114
|
};
|
|
@@ -86,7 +86,7 @@ export type CommandPaletteState = {
|
|
|
86
86
|
* palette.open()
|
|
87
87
|
*
|
|
88
88
|
* // Open with a specific command
|
|
89
|
-
* palette.open('create-document')
|
|
89
|
+
* palette.open('create-openapi-document')
|
|
90
90
|
*
|
|
91
91
|
* // Open with command props
|
|
92
92
|
* palette.open('import-curl-command', { curl: 'curl https://api.example.com' })
|
|
@@ -177,8 +177,8 @@ export declare const baseClientActions: [{
|
|
|
177
177
|
};
|
|
178
178
|
});
|
|
179
179
|
}, {
|
|
180
|
-
readonly id: "create-document";
|
|
181
|
-
readonly name: "Create Document";
|
|
180
|
+
readonly id: "create-openapi-document";
|
|
181
|
+
readonly name: "Create OpenAPI Document";
|
|
182
182
|
readonly component: import("vue").DefineComponent<{
|
|
183
183
|
workspaceStore: import("@scalar/workspace-store/client").WorkspaceStore;
|
|
184
184
|
eventBus: import("@scalar/workspace-store/events").WorkspaceEventBus;
|
|
@@ -215,14 +215,16 @@ export declare const baseClientActions: [{
|
|
|
215
215
|
readonly component: import("vue").DefineComponent<{
|
|
216
216
|
workspaceStore: import("@scalar/workspace-store/client").WorkspaceStore;
|
|
217
217
|
eventBus: import("@scalar/workspace-store/events").WorkspaceEventBus;
|
|
218
|
-
|
|
218
|
+
documentName?: string;
|
|
219
|
+
tag?: import("@scalar/workspace-store/schemas/navigation").TraversedTag;
|
|
219
220
|
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
220
221
|
close: () => any;
|
|
221
222
|
back: (keyboardEvent: KeyboardEvent) => any;
|
|
222
223
|
}, string, import("vue").PublicProps, Readonly<{
|
|
223
224
|
workspaceStore: import("@scalar/workspace-store/client").WorkspaceStore;
|
|
224
225
|
eventBus: import("@scalar/workspace-store/events").WorkspaceEventBus;
|
|
225
|
-
|
|
226
|
+
documentName?: string;
|
|
227
|
+
tag?: import("@scalar/workspace-store/schemas/navigation").TraversedTag;
|
|
226
228
|
}> & Readonly<{
|
|
227
229
|
onClose?: (() => any) | undefined;
|
|
228
230
|
onBack?: ((keyboardEvent: KeyboardEvent) => any) | undefined;
|
|
@@ -250,7 +252,7 @@ export declare const baseClientActions: [{
|
|
|
250
252
|
readonly component: import("vue").DefineComponent<{
|
|
251
253
|
workspaceStore: import("@scalar/workspace-store/client").WorkspaceStore;
|
|
252
254
|
eventBus: import("@scalar/workspace-store/events").WorkspaceEventBus;
|
|
253
|
-
|
|
255
|
+
documentName?: string;
|
|
254
256
|
tagId?: string;
|
|
255
257
|
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
256
258
|
close: () => any;
|
|
@@ -258,7 +260,7 @@ export declare const baseClientActions: [{
|
|
|
258
260
|
}, string, import("vue").PublicProps, Readonly<{
|
|
259
261
|
workspaceStore: import("@scalar/workspace-store/client").WorkspaceStore;
|
|
260
262
|
eventBus: import("@scalar/workspace-store/events").WorkspaceEventBus;
|
|
261
|
-
|
|
263
|
+
documentName?: string;
|
|
262
264
|
tagId?: string;
|
|
263
265
|
}> & Readonly<{
|
|
264
266
|
onClose?: (() => any) | undefined;
|
|
@@ -286,14 +288,16 @@ export declare const baseClientActions: [{
|
|
|
286
288
|
readonly name: "Add Example";
|
|
287
289
|
readonly component: import("vue").DefineComponent<{
|
|
288
290
|
workspaceStore: import("@scalar/workspace-store/client").WorkspaceStore;
|
|
289
|
-
|
|
291
|
+
eventBus: import("@scalar/workspace-store/events").WorkspaceEventBus;
|
|
292
|
+
documentName?: string;
|
|
290
293
|
operationId?: string;
|
|
291
294
|
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
292
295
|
close: () => any;
|
|
293
296
|
back: (keyboardEvent: KeyboardEvent) => any;
|
|
294
297
|
}, string, import("vue").PublicProps, Readonly<{
|
|
295
298
|
workspaceStore: import("@scalar/workspace-store/client").WorkspaceStore;
|
|
296
|
-
|
|
299
|
+
eventBus: import("@scalar/workspace-store/events").WorkspaceEventBus;
|
|
300
|
+
documentName?: string;
|
|
297
301
|
operationId?: string;
|
|
298
302
|
}> & Readonly<{
|
|
299
303
|
onClose?: (() => any) | undefined;
|
|
@@ -335,6 +339,27 @@ export declare const baseClientActions: [{
|
|
|
335
339
|
onClose?: (() => any) | undefined;
|
|
336
340
|
onBack?: ((keyboardEvent: KeyboardEvent) => any) | undefined;
|
|
337
341
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
342
|
+
}, {
|
|
343
|
+
readonly id: "edit-tag";
|
|
344
|
+
readonly name: "Edit Tag";
|
|
345
|
+
readonly hidden: true;
|
|
346
|
+
readonly component: import("vue").DefineComponent<{
|
|
347
|
+
workspaceStore: import("@scalar/workspace-store/client").WorkspaceStore;
|
|
348
|
+
eventBus: import("@scalar/workspace-store/events").WorkspaceEventBus;
|
|
349
|
+
documentName?: string;
|
|
350
|
+
tag?: import("@scalar/workspace-store/schemas/navigation").TraversedTag;
|
|
351
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
352
|
+
close: () => any;
|
|
353
|
+
back: (keyboardEvent: KeyboardEvent) => any;
|
|
354
|
+
}, string, import("vue").PublicProps, Readonly<{
|
|
355
|
+
workspaceStore: import("@scalar/workspace-store/client").WorkspaceStore;
|
|
356
|
+
eventBus: import("@scalar/workspace-store/events").WorkspaceEventBus;
|
|
357
|
+
documentName?: string;
|
|
358
|
+
tag?: import("@scalar/workspace-store/schemas/navigation").TraversedTag;
|
|
359
|
+
}> & Readonly<{
|
|
360
|
+
onClose?: (() => any) | undefined;
|
|
361
|
+
onBack?: ((keyboardEvent: KeyboardEvent) => any) | undefined;
|
|
362
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
338
363
|
}];
|
|
339
364
|
export {};
|
|
340
365
|
//# sourceMappingURL=use-command-palette-state.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-command-palette-state.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/command-palette/hooks/use-command-palette-state.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAA;AAC9D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAA;AAE3E,OAAO,EACL,KAAK,SAAS,EACd,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACrB,KAAK,GAAG,EACR,KAAK,UAAU,EAKhB,MAAM,KAAK,CAAA;AACZ,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AASlD;;;;GAIG;AACH,KAAK,YAAY,GAAG,MAAM,qBAAqB,CAAA;AAE/C,oDAAoD;AACpD,KAAK,yBAAyB,CAAC,CAAC,SAAS,YAAY,IAAI,qBAAqB,CAAC,CAAC,CAAC,CAAA;AAEjF;;;;;;GAMG;AACH,KAAK,WAAW,GAAG;IACjB,IAAI,IAAI,CAAA;IACR,CAAC,CAAC,SAAS,YAAY,EAAE,SAAS,EAAE,CAAC,EAAE,KAAK,EAAE,yBAAyB,CAAC,CAAC,CAAC,GAAG,IAAI,CAAA;CAClF,CAAA;AAED,wCAAwC;AACxC,MAAM,MAAM,mBAAmB,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AC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACvC,yCAAyC;IACzC,KAAK,EAAE,MAAM,IAAI,CAAA;CAClB,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,eAAO,MAAM,sBAAsB,GACjC,UAAS,gBAAgB,CAAC,oBAAoB,EAAE,CAAqB,EACrE,SAAQ,gBAAgB,CAAC,mBAAmB,EAAE,CAAc,KAC3D,mBAmGF,CAAA;AAKD;;;GAGG;AACH,eAAO,MAAM,UAAU,EAAE,mBAAmB,EA4B3C,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,iBAAiB
|
|
1
|
+
{"version":3,"file":"use-command-palette-state.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/command-palette/hooks/use-command-palette-state.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAA;AAC9D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAA;AAE3E,OAAO,EACL,KAAK,SAAS,EACd,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACrB,KAAK,GAAG,EACR,KAAK,UAAU,EAKhB,MAAM,KAAK,CAAA;AACZ,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AASlD;;;;GAIG;AACH,KAAK,YAAY,GAAG,MAAM,qBAAqB,CAAA;AAE/C,oDAAoD;AACpD,KAAK,yBAAyB,CAAC,CAAC,SAAS,YAAY,IAAI,qBAAqB,CAAC,CAAC,CAAC,CAAA;AAEjF;;;;;;GAMG;AACH,KAAK,WAAW,GAAG;IACjB,IAAI,IAAI,CAAA;IACR,CAAC,CAAC,SAAS,YAAY,EAAE,SAAS,EAAE,CAAC,EAAE,KAAK,EAAE,yBAAyB,CAAC,CAAC,CAAC,GAAG,IAAI,CAAA;CAClF,CAAA;AAED,wCAAwC;AACxC,MAAM,MAAM,mBAAmB,GAAG;IAChC,EAAE,EAAE,MAAM,CA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,CAAA;IACvC,yCAAyC;IACzC,KAAK,EAAE,MAAM,IAAI,CAAA;CAClB,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,eAAO,MAAM,sBAAsB,GACjC,UAAS,gBAAgB,CAAC,oBAAoB,EAAE,CAAqB,EACrE,SAAQ,gBAAgB,CAAC,mBAAmB,EAAE,CAAc,KAC3D,mBAmGF,CAAA;AAKD;;;GAGG;AACH,eAAO,MAAM,UAAU,EAAE,mBAAmB,EA4B3C,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2CiB,CAAA"}
|
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
import { useModal as
|
|
2
|
-
import { ScalarIconArrowSquareIn as
|
|
1
|
+
import { useModal as y } from "@scalar/components";
|
|
2
|
+
import { ScalarIconArrowSquareIn as P, ScalarIconPackage as _, ScalarIconFolder as A, ScalarIconArrowUpRight as R, ScalarIconPuzzlePiece as b, ScalarIconBracketsCurly as q, ScalarIconCookie as L, ScalarIconSlidersHorizontal as $ } from "@scalar/icons";
|
|
3
3
|
import d from "fuse.js";
|
|
4
|
-
import { ref as p, shallowRef as
|
|
5
|
-
import x from "../components/CommandPaletteDocument.vue.js";
|
|
4
|
+
import { ref as p, shallowRef as x, computed as o, toValue as a } from "vue";
|
|
6
5
|
import z from "../components/CommandPaletteExample.vue.js";
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
|
|
12
|
-
|
|
6
|
+
import E from "../components/CommandPaletteImport.vue.js";
|
|
7
|
+
import F from "../components/CommandPaletteImportCurl.vue.js";
|
|
8
|
+
import O from "../components/CommandPaletteOpenApiDocument.vue.js";
|
|
9
|
+
import U from "../components/CommandPaletteRequest.vue.js";
|
|
10
|
+
import f from "../components/CommandPaletteTag.vue.js";
|
|
11
|
+
const W = (m = T, l = Q) => {
|
|
12
|
+
const c = y(), n = p(""), i = x(null), s = p(null), v = o(() => c.open), C = o(
|
|
13
13
|
() => new d(a(m), {
|
|
14
14
|
keys: ["name"],
|
|
15
|
-
threshold: 0.
|
|
15
|
+
threshold: 0.2
|
|
16
16
|
})
|
|
17
|
-
),
|
|
17
|
+
), g = o(
|
|
18
18
|
() => new d(a(l), {
|
|
19
19
|
keys: ["name"],
|
|
20
|
-
threshold: 0.
|
|
20
|
+
threshold: 0.2
|
|
21
21
|
})
|
|
22
22
|
), S = o(() => {
|
|
23
23
|
const e = n.value.toLowerCase().trim();
|
|
24
|
-
return (e ?
|
|
25
|
-
}),
|
|
24
|
+
return (e ? C.value.search(e).map((t) => t.item) : a(m)).filter((t) => !t.hidden);
|
|
25
|
+
}), h = o(() => {
|
|
26
26
|
const e = n.value.toLowerCase().trim();
|
|
27
|
-
return e ?
|
|
28
|
-
}),
|
|
29
|
-
e && (
|
|
30
|
-
},
|
|
27
|
+
return e ? g.value.search(e).map((r) => r.item) : a(l);
|
|
28
|
+
}), w = (e, ...r) => {
|
|
29
|
+
e && (i.value = a(m).find((t) => t.id === e) ?? null, s.value = r[0] ?? null), c.show();
|
|
30
|
+
}, I = () => {
|
|
31
31
|
c.hide(), u();
|
|
32
|
-
},
|
|
32
|
+
}, k = (e) => {
|
|
33
33
|
n.value = e;
|
|
34
34
|
}, u = () => {
|
|
35
|
-
n.value = "",
|
|
35
|
+
n.value = "", i.value = null, s.value = null;
|
|
36
36
|
};
|
|
37
37
|
return {
|
|
38
|
-
isOpen:
|
|
39
|
-
activeCommand:
|
|
40
|
-
activeCommandProps:
|
|
38
|
+
isOpen: v,
|
|
39
|
+
activeCommand: i,
|
|
40
|
+
activeCommandProps: s,
|
|
41
41
|
filterQuery: n,
|
|
42
42
|
filteredCommands: o(() => [
|
|
43
43
|
{
|
|
@@ -46,12 +46,12 @@ const W = (m = B, l = Q) => {
|
|
|
46
46
|
},
|
|
47
47
|
{
|
|
48
48
|
label: "Pages",
|
|
49
|
-
commands:
|
|
49
|
+
commands: h.value
|
|
50
50
|
}
|
|
51
51
|
]),
|
|
52
|
-
open:
|
|
53
|
-
close:
|
|
54
|
-
setFilterQuery:
|
|
52
|
+
open: w,
|
|
53
|
+
close: I,
|
|
54
|
+
setFilterQuery: k,
|
|
55
55
|
reset: u
|
|
56
56
|
};
|
|
57
57
|
}, Q = [
|
|
@@ -59,7 +59,7 @@ const W = (m = B, l = Q) => {
|
|
|
59
59
|
type: "route",
|
|
60
60
|
id: "environment",
|
|
61
61
|
name: "Environment",
|
|
62
|
-
icon:
|
|
62
|
+
icon: q,
|
|
63
63
|
to: {
|
|
64
64
|
name: "workspace.environment"
|
|
65
65
|
}
|
|
@@ -68,7 +68,7 @@ const W = (m = B, l = Q) => {
|
|
|
68
68
|
type: "route",
|
|
69
69
|
id: "cookies",
|
|
70
70
|
name: "Cookies",
|
|
71
|
-
icon:
|
|
71
|
+
icon: L,
|
|
72
72
|
to: {
|
|
73
73
|
name: "workspace.cookies"
|
|
74
74
|
}
|
|
@@ -77,51 +77,57 @@ const W = (m = B, l = Q) => {
|
|
|
77
77
|
type: "route",
|
|
78
78
|
id: "settings",
|
|
79
79
|
name: "Settings",
|
|
80
|
-
icon:
|
|
80
|
+
icon: $,
|
|
81
81
|
to: {
|
|
82
82
|
name: "workspace.settings"
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
|
-
],
|
|
85
|
+
], T = [
|
|
86
86
|
{
|
|
87
87
|
id: "import-from-openapi-swagger-postman-curl",
|
|
88
88
|
name: "Import from OpenAPI/Swagger/Postman/cURL",
|
|
89
|
-
component:
|
|
90
|
-
icon:
|
|
89
|
+
component: E,
|
|
90
|
+
icon: P
|
|
91
91
|
},
|
|
92
92
|
{
|
|
93
|
-
id: "create-document",
|
|
94
|
-
name: "Create Document",
|
|
95
|
-
component:
|
|
93
|
+
id: "create-openapi-document",
|
|
94
|
+
name: "Create OpenAPI Document",
|
|
95
|
+
component: O,
|
|
96
96
|
icon: _
|
|
97
97
|
},
|
|
98
98
|
{
|
|
99
99
|
id: "add-tag",
|
|
100
100
|
name: "Add Tag",
|
|
101
|
-
component:
|
|
102
|
-
icon:
|
|
101
|
+
component: f,
|
|
102
|
+
icon: A
|
|
103
103
|
},
|
|
104
104
|
{
|
|
105
105
|
id: "create-request",
|
|
106
106
|
name: "Create Request",
|
|
107
|
-
component:
|
|
108
|
-
icon:
|
|
107
|
+
component: U,
|
|
108
|
+
icon: R
|
|
109
109
|
},
|
|
110
110
|
{
|
|
111
111
|
id: "add-example",
|
|
112
112
|
name: "Add Example",
|
|
113
113
|
component: z,
|
|
114
|
-
icon:
|
|
114
|
+
icon: b
|
|
115
115
|
},
|
|
116
116
|
{
|
|
117
117
|
id: "import-curl-command",
|
|
118
118
|
name: "Import cURL Command",
|
|
119
119
|
hidden: !0,
|
|
120
|
-
component:
|
|
120
|
+
component: F
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
id: "edit-tag",
|
|
124
|
+
name: "Edit Tag",
|
|
125
|
+
hidden: !0,
|
|
126
|
+
component: f
|
|
121
127
|
}
|
|
122
128
|
];
|
|
123
129
|
export {
|
|
124
|
-
|
|
130
|
+
T as baseClientActions,
|
|
125
131
|
Q as baseRoutes,
|
|
126
132
|
W as useCommandPaletteState
|
|
127
133
|
};
|
|
@@ -73,7 +73,7 @@ const N = {
|
|
|
73
73
|
)
|
|
74
74
|
)), S = n(
|
|
75
75
|
() => w(o(e.options)?.hiddenClients)
|
|
76
|
-
), y = "2.
|
|
76
|
+
), y = "2.29.1";
|
|
77
77
|
return (t, a) => e.path && e.method && e.exampleName && c.value ? (i(), k(l(b), {
|
|
78
78
|
key: 0,
|
|
79
79
|
activeEnvironment: e.workspaceStore.workspace["x-scalar-active-environment"],
|
|
@@ -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,c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