@scalar/api-client 2.22.0 → 2.22.2
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 +56 -0
- package/dist/hooks/useClientConfig.d.ts +6 -3
- package/dist/hooks/useClientConfig.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.js +2 -2
- package/dist/v2/blocks/request-block/helpers/get-default-headers.js +1 -1
- 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 +2 -2
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue2.js +23 -29
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.js +45 -43
- package/dist/v2/components/code-input/CodeInput.vue.d.ts +0 -6
- package/dist/v2/components/code-input/CodeInput.vue.d.ts.map +1 -1
- package/dist/v2/components/code-input/CodeInput.vue.js +1 -1
- package/dist/v2/components/code-input/CodeInput.vue2.js +50 -63
- package/dist/v2/components/sidebar/Sidebar.vue.d.ts +0 -3
- package/dist/v2/components/sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/v2/components/sidebar/Sidebar.vue.js +55 -53
- package/dist/v2/features/app/App.vue.d.ts +3 -1
- package/dist/v2/features/app/App.vue.d.ts.map +1 -1
- package/dist/v2/features/app/App.vue.js +46 -43
- package/dist/v2/features/app/app-state.d.ts.map +1 -1
- package/dist/v2/features/app/app-state.js +33 -28
- 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 +137 -127
- package/dist/v2/features/app/index.d.ts +3 -0
- package/dist/v2/features/app/index.d.ts.map +1 -1
- package/dist/v2/features/app/index.js +17 -11
- package/dist/v2/features/command-palette/TheCommandPalette.vue.d.ts.map +1 -1
- package/dist/v2/features/command-palette/TheCommandPalette.vue.js +1 -1
- package/dist/v2/features/command-palette/TheCommandPalette.vue2.js +6 -6
- package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts +2 -2
- 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 +60 -56
- package/dist/v2/features/operation/Operation.vue.js +1 -1
- package/dist/v2/features/search/hooks/use-search-index.d.ts +3 -7
- package/dist/v2/features/search/hooks/use-search-index.d.ts.map +1 -1
- package/dist/v2/features/search/hooks/use-search-index.js +12 -18
- package/dist/v2/features/search/index.d.ts +1 -2
- package/dist/v2/features/search/index.d.ts.map +1 -1
- package/dist/v2/features/search/index.js +2 -4
- package/dist/v2/features/search/types.d.ts +1 -1
- package/dist/v2/features/search/types.d.ts.map +1 -1
- package/dist/v2/helpers/handle-hotkeys.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/dist/views/Request/libs/oauth2.d.ts.map +1 -1
- package/dist/views/Request/libs/oauth2.js +54 -52
- package/package.json +19 -19
- package/dist/v2/features/search/components/SearchButton.vue.d.ts +0 -12
- package/dist/v2/features/search/components/SearchButton.vue.d.ts.map +0 -1
- package/dist/v2/features/search/components/SearchButton.vue.js +0 -71
- package/dist/v2/features/search/components/SearchButton.vue2.js +0 -4
- package/dist/v2/features/search/components/SearchModal.vue.d.ts +0 -11
- package/dist/v2/features/search/components/SearchModal.vue.d.ts.map +0 -1
- package/dist/v2/features/search/components/SearchModal.vue.js +0 -7
- package/dist/v2/features/search/components/SearchModal.vue2.js +0 -102
- package/dist/v2/features/search/components/SearchResult.vue.d.ts +0 -10
- package/dist/v2/features/search/components/SearchResult.vue.d.ts.map +0 -1
- package/dist/v2/features/search/components/SearchResult.vue.js +0 -80
- package/dist/v2/features/search/components/SearchResult.vue2.js +0 -4
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as W, useAttrs as H, ref as
|
|
1
|
+
import { defineComponent as W, useAttrs as H, ref as u, computed as d, toRef as r, watch as J, createElementBlock as i, openBlock as l, Fragment as Q, createBlock as m, createCommentVNode as f, normalizeClass as G, createElementVNode as V, toDisplayString as X, mergeProps as Y, unref as T, withKeys as b, withModifiers as A, createTextVNode as B, renderSlot as N } from "vue";
|
|
2
2
|
import { isDefined as Z } from "@scalar/helpers/array/is-defined";
|
|
3
3
|
import { useCodeMirror as _, useDropdown as ee, colorPicker as te } from "@scalar/use-codemirror";
|
|
4
|
-
import { nanoid as
|
|
4
|
+
import { nanoid as ne } from "nanoid";
|
|
5
5
|
import p from "../data-table/DataTableInputSelect.vue.js";
|
|
6
|
-
import
|
|
6
|
+
import le from "../../features/environments/components/EnvironmentVariablesDropdown.vue.js";
|
|
7
7
|
import { pillPlugin as oe, backspaceCommand as ae } from "./code-variable-widget.js";
|
|
8
8
|
const re = { class: "whitespace-nowrap" }, ie = ["id"], ue = {
|
|
9
9
|
key: 0,
|
|
@@ -47,50 +47,37 @@ const re = { class: "whitespace-nowrap" }, ie = ["id"], ue = {
|
|
|
47
47
|
disableCloseBrackets: { type: Boolean, default: !1 },
|
|
48
48
|
emitOnBlur: { type: Boolean, default: !0 },
|
|
49
49
|
withVariables: { type: Boolean, default: !0 },
|
|
50
|
-
importCurl: { type: Boolean, default: !1 },
|
|
51
50
|
alwaysEmitChange: { type: Boolean, default: !1 },
|
|
52
51
|
handleFieldChange: { type: Function },
|
|
53
52
|
handleFieldSubmit: { type: Function },
|
|
54
53
|
linethrough: { type: Boolean }
|
|
55
54
|
},
|
|
56
|
-
emits: ["update:modelValue", "submit", "blur", "
|
|
55
|
+
emits: ["update:modelValue", "submit", "blur", "redirectToEnvironment"],
|
|
57
56
|
setup(e, { expose: O, emit: $ }) {
|
|
58
|
-
const
|
|
57
|
+
const s = $, k = H(), I = k.id || `id-${ne()}`, y = u(!1), M = d(() => e.enum?.length ? !1 : e.type === "boolean" || Array.isArray(e.type) && e.type.includes("boolean")), C = d(
|
|
59
58
|
() => e.nullable ? ["true", "false", "null"] : ["true", "false"]
|
|
60
|
-
), R =
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
changes: {
|
|
65
|
-
from: 0,
|
|
66
|
-
to: n.value.state.doc.length,
|
|
67
|
-
insert: c(e.modelValue)
|
|
68
|
-
}
|
|
69
|
-
});
|
|
70
|
-
return;
|
|
71
|
-
}
|
|
72
|
-
e.handleFieldChange ? e.handleFieldChange(t) : u("update:modelValue", t);
|
|
73
|
-
}
|
|
74
|
-
}, g = (t) => {
|
|
75
|
-
e.handleFieldSubmit ? e.handleFieldSubmit(t) : u("submit", t);
|
|
59
|
+
), R = d(() => Array.isArray(e.type) ? e.type.find((t) => t !== "null") ?? "string" : e.type), E = (t) => {
|
|
60
|
+
!e.alwaysEmitChange && t === v(e.modelValue) || (e.handleFieldChange ? e.handleFieldChange(t) : s("update:modelValue", t));
|
|
61
|
+
}, h = (t) => {
|
|
62
|
+
e.handleFieldSubmit ? e.handleFieldSubmit(t) : s("submit", t);
|
|
76
63
|
}, S = (t) => {
|
|
77
|
-
y.value = !1, e.emitOnBlur && e.modelValue &&
|
|
78
|
-
},
|
|
64
|
+
y.value = !1, e.emitOnBlur && e.modelValue && h(t), s("blur", t);
|
|
65
|
+
}, g = (t) => s("update:modelValue", t), q = () => {
|
|
79
66
|
const t = [...e.extensions];
|
|
80
67
|
return e.colorPicker && t.push(te), t;
|
|
81
|
-
}, z =
|
|
68
|
+
}, z = d(
|
|
82
69
|
() => oe({
|
|
83
70
|
environment: e.environment,
|
|
84
71
|
isReadOnly: e.layout === "modal"
|
|
85
72
|
})
|
|
86
|
-
), j =
|
|
73
|
+
), j = d(() => [
|
|
87
74
|
...q(),
|
|
88
75
|
z.value,
|
|
89
76
|
ae
|
|
90
|
-
]), P =
|
|
91
|
-
content: r(() =>
|
|
77
|
+
]), P = u(null), v = (t) => typeof t == "string" ? t : JSON.stringify(t), { codeMirror: o } = _({
|
|
78
|
+
content: r(() => v(e.modelValue)),
|
|
92
79
|
onChange: (t) => {
|
|
93
|
-
E(t),
|
|
80
|
+
E(t), U();
|
|
94
81
|
},
|
|
95
82
|
onFocus: () => {
|
|
96
83
|
y.value = !0;
|
|
@@ -106,20 +93,20 @@ const re = { class: "whitespace-nowrap" }, ie = ["id"], ue = {
|
|
|
106
93
|
extensions: j,
|
|
107
94
|
placeholder: r(() => e.placeholder)
|
|
108
95
|
});
|
|
109
|
-
J(
|
|
110
|
-
|
|
96
|
+
J(o, () => {
|
|
97
|
+
o.value && Object.hasOwn(k, "autofocus") && o.value.focus();
|
|
111
98
|
});
|
|
112
|
-
const w =
|
|
113
|
-
codeMirror:
|
|
99
|
+
const w = u(!1), D = u(""), F = u({ left: 0, top: 0 }), x = u(null), { handleDropdownSelect: K, updateDropdownVisibility: U } = ee({
|
|
100
|
+
codeMirror: o,
|
|
114
101
|
query: D,
|
|
115
102
|
showDropdown: w,
|
|
116
103
|
dropdownPosition: F
|
|
117
|
-
}),
|
|
104
|
+
}), L = d(() => w.value && e.withVariables && e.layout !== "modal" && !!e.environment), c = (t, n) => {
|
|
118
105
|
if (w.value) {
|
|
119
|
-
t === "down" || t === "up" ? (
|
|
106
|
+
t === "down" || t === "up" ? (n.preventDefault(), x.value?.handleArrowKey(t)) : t === "enter" && (n.preventDefault(), x.value?.handleSelect());
|
|
120
107
|
return;
|
|
121
108
|
}
|
|
122
|
-
t === "escape" && !e.disableTabIndent &&
|
|
109
|
+
t === "escape" && !e.disableTabIndent && n.stopPropagation(), t === "enter" && n.target instanceof HTMLDivElement && h(n.target.textContent ?? "");
|
|
123
110
|
};
|
|
124
111
|
return O({
|
|
125
112
|
/**
|
|
@@ -128,25 +115,25 @@ const re = { class: "whitespace-nowrap" }, ie = ["id"], ue = {
|
|
|
128
115
|
* @param cursorAtEnd boolean place the cursor at the end of the input
|
|
129
116
|
*/
|
|
130
117
|
focus: (t) => {
|
|
131
|
-
if (!
|
|
118
|
+
if (!o.value || (o.value.focus(), !Z(t)))
|
|
132
119
|
return;
|
|
133
|
-
const
|
|
134
|
-
|
|
135
|
-
selection: { anchor:
|
|
120
|
+
const n = t === "start" ? 0 : t === "end" ? o.value.state.doc.length : t;
|
|
121
|
+
o.value.dispatch({
|
|
122
|
+
selection: { anchor: n },
|
|
136
123
|
scrollIntoView: !0
|
|
137
124
|
});
|
|
138
125
|
},
|
|
139
126
|
isFocused: y,
|
|
140
127
|
handleChange: E,
|
|
141
|
-
handleSubmit:
|
|
128
|
+
handleSubmit: h,
|
|
142
129
|
handleBlur: S,
|
|
143
130
|
booleanOptions: C,
|
|
144
|
-
codeMirror:
|
|
131
|
+
codeMirror: o,
|
|
145
132
|
modelValue: e.modelValue,
|
|
146
|
-
cursorPosition: () =>
|
|
147
|
-
serializeValue:
|
|
148
|
-
}), (t,
|
|
149
|
-
e.disabled ? (
|
|
133
|
+
cursorPosition: () => o.value?.state.selection.main.head,
|
|
134
|
+
serializeValue: v
|
|
135
|
+
}), (t, n) => (l(), i(Q, null, [
|
|
136
|
+
e.disabled ? (l(), i("div", {
|
|
150
137
|
key: 0,
|
|
151
138
|
class: G(["text-c-2 flex cursor-default items-center justify-center", {
|
|
152
139
|
"font-code pr-2 pl-1 text-base": e.layout === "modal",
|
|
@@ -156,26 +143,26 @@ const re = { class: "whitespace-nowrap" }, ie = ["id"], ue = {
|
|
|
156
143
|
"data-testid": "code-input-disabled"
|
|
157
144
|
}, [
|
|
158
145
|
V("span", re, X(e.modelValue), 1)
|
|
159
|
-
], 2)) : e.enum?.length ? (
|
|
146
|
+
], 2)) : e.enum?.length ? (l(), m(p, {
|
|
160
147
|
key: 1,
|
|
161
148
|
default: e.default,
|
|
162
149
|
modelValue: e.modelValue,
|
|
163
150
|
type: R.value,
|
|
164
151
|
value: e.enum,
|
|
165
|
-
"onUpdate:modelValue":
|
|
166
|
-
}, null, 8, ["default", "modelValue", "type", "value"])) : M.value ? (
|
|
152
|
+
"onUpdate:modelValue": g
|
|
153
|
+
}, null, 8, ["default", "modelValue", "type", "value"])) : M.value ? (l(), m(p, {
|
|
167
154
|
key: 2,
|
|
168
155
|
default: e.default,
|
|
169
156
|
modelValue: e.modelValue,
|
|
170
157
|
value: C.value,
|
|
171
|
-
"onUpdate:modelValue":
|
|
172
|
-
}, null, 8, ["default", "modelValue", "value"])) : e.examples?.length ? (
|
|
158
|
+
"onUpdate:modelValue": g
|
|
159
|
+
}, null, 8, ["default", "modelValue", "value"])) : e.examples?.length ? (l(), m(p, {
|
|
173
160
|
key: 3,
|
|
174
161
|
default: e.default,
|
|
175
162
|
modelValue: e.modelValue,
|
|
176
163
|
value: e.examples,
|
|
177
|
-
"onUpdate:modelValue":
|
|
178
|
-
}, null, 8, ["default", "modelValue", "value"])) : (
|
|
164
|
+
"onUpdate:modelValue": g
|
|
165
|
+
}, null, 8, ["default", "modelValue", "value"])) : (l(), i("div", Y({
|
|
179
166
|
key: 4,
|
|
180
167
|
id: T(I)
|
|
181
168
|
}, t.$attrs, {
|
|
@@ -187,13 +174,13 @@ const re = { class: "whitespace-nowrap" }, ie = ["id"], ue = {
|
|
|
187
174
|
"line-through": e.linethrough
|
|
188
175
|
}],
|
|
189
176
|
onKeydown: [
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
177
|
+
n[0] || (n[0] = b(A((a) => c("down", a), ["stop"]), ["down"])),
|
|
178
|
+
n[1] || (n[1] = b((a) => c("enter", a), ["enter"])),
|
|
179
|
+
n[2] || (n[2] = b((a) => c("escape", a), ["escape"])),
|
|
180
|
+
n[3] || (n[3] = b(A((a) => c("up", a), ["stop"]), ["up"]))
|
|
194
181
|
]
|
|
195
182
|
}), [
|
|
196
|
-
e.disableTabIndent ? f("", !0) : (
|
|
183
|
+
e.disableTabIndent ? f("", !0) : (l(), i("div", ue, [...n[5] || (n[5] = [
|
|
197
184
|
B(" Press ", -1),
|
|
198
185
|
V("kbd", { class: "-mx-0.25 rounded border px-0.5 font-mono" }, "Esc", -1),
|
|
199
186
|
B(" then ", -1),
|
|
@@ -201,21 +188,21 @@ const re = { class: "whitespace-nowrap" }, ie = ["id"], ue = {
|
|
|
201
188
|
B(" to exit ", -1)
|
|
202
189
|
])]))
|
|
203
190
|
], 16, ie)),
|
|
204
|
-
t.$slots.warning ? (
|
|
191
|
+
t.$slots.warning ? (l(), i("div", de, [
|
|
205
192
|
N(t.$slots, "warning", {}, void 0, !0)
|
|
206
193
|
])) : f("", !0),
|
|
207
|
-
t.$slots.icon ? (
|
|
194
|
+
t.$slots.icon ? (l(), i("div", se, [
|
|
208
195
|
N(t.$slots, "icon", {}, void 0, !0)
|
|
209
196
|
])) : f("", !0),
|
|
210
|
-
e.required ? (
|
|
211
|
-
|
|
197
|
+
e.required ? (l(), i("div", fe, " Required ")) : f("", !0),
|
|
198
|
+
L.value && e.environment ? (l(), m(le, {
|
|
212
199
|
key: 8,
|
|
213
200
|
ref_key: "dropdownRef",
|
|
214
201
|
ref: x,
|
|
215
202
|
dropdownPosition: F.value,
|
|
216
203
|
environment: e.environment,
|
|
217
204
|
query: D.value,
|
|
218
|
-
onRedirect:
|
|
205
|
+
onRedirect: n[4] || (n[4] = (a) => s("redirectToEnvironment")),
|
|
219
206
|
onSelect: T(K)
|
|
220
207
|
}, null, 8, ["dropdownPosition", "environment", "query", "onSelect"])) : f("", !0)
|
|
221
208
|
], 64));
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { type ScalarListboxOption } from '@scalar/components';
|
|
2
2
|
import { type DraggingItem, type HoveredItem, type SidebarState } from '@scalar/sidebar';
|
|
3
|
-
import type { WorkspaceEventBus } from '@scalar/workspace-store/events';
|
|
4
3
|
import type { WorkspaceDocument } from '@scalar/workspace-store/schemas';
|
|
5
4
|
import type { TraversedEntry } from '@scalar/workspace-store/schemas/navigation';
|
|
6
5
|
import type { ClientLayout } from '../../../v2/types/layout';
|
|
@@ -15,8 +14,6 @@ type __VLS_Props = {
|
|
|
15
14
|
};
|
|
16
15
|
/** The list of all available workspaces */
|
|
17
16
|
workspaces: ScalarListboxOption[];
|
|
18
|
-
/** The workspace event bus for handling workspace-level events */
|
|
19
|
-
eventBus: WorkspaceEventBus;
|
|
20
17
|
/** The documents belonging to the workspace */
|
|
21
18
|
documents: WorkspaceDocument[];
|
|
22
19
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Sidebar.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/sidebar/Sidebar.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Sidebar.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/sidebar/Sidebar.vue"],"names":[],"mappings":"AAyLA,OAAO,EAGL,KAAK,mBAAmB,EACzB,MAAM,oBAAoB,CAAA;AAE3B,OAAO,EAEL,KAAK,YAAY,EACjB,KAAK,WAAW,EAChB,KAAK,YAAY,EAClB,MAAM,iBAAiB,CAAA;AACxB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAA;AACxE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAA;AAKhF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAIrD,KAAK,WAAW,GAAG;IACjB,iDAAiD;IACjD,YAAY,EAAE,YAAY,CAAC,cAAc,CAAC,CAAA;IAC1C,4BAA4B;IAC5B,MAAM,EAAE,YAAY,CAAA;IACpB,qCAAqC;IACrC,eAAe,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAA;IAC/B,2CAA2C;IAC3C,UAAU,EAAE,mBAAmB,EAAE,CAAA;IACjC,+CAA+C;IAC/C,SAAS,EAAE,iBAAiB,EAAE,CAAA;IAC9B;;;;OAIG;IACH,WAAW,CAAC,EACR,OAAO,GACP,CAAC,CAAC,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,WAAW,KAAK,OAAO,CAAC,CAAA;CACxE,CAAC;AAeF,KAAK,WAAW,GAAG;IACjB,uCAAuC;IACvC,eAAe,CAAC,IAAI,OAAO,CAAA;IAC3B,sDAAsD;IACtD,SAAS,CAAC,CAAC,KAAK,EAAE;QAAE,IAAI,EAAE,cAAc,CAAA;KAAE,GAAG,OAAO,CAAA;IACpD,mDAAmD;IACnD,MAAM,CAAC,IAAI,OAAO,CAAA;IAClB,yDAAyD;IACzD,KAAK,CAAC,CAAC,KAAK,EAAE;QAAE,IAAI,EAAE,cAAc,CAAA;KAAE,GAAG,OAAO,CAAA;IAChD,oEAAoE;IACpE,kBAAkB,CAAC,IAAI,OAAO,CAAA;IAC9B,iDAAiD;IACjD,IAAI,CAAC,CAAC,KAAK,EAAE;QAAE,IAAI,EAAE,cAAc,CAAC;QAAC,IAAI,EAAE,OAAO,CAAA;KAAE,GAAG,OAAO,CAAA;CAC/D,CAAC;AAkCF,KAAK,iBAAiB,GAAG,WAAW,GAAG;IACvC,wCAAwC;IACxC,cAAc,EAAE,MAAM,CAAC;CACtB,CAAC;AAkPF,QAAA,MAAM,eAAe;;;;;;;;;;;;;kFAOnB,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,18 +1,17 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarIconButton as
|
|
3
|
-
import { ScalarIconFileDashed as
|
|
4
|
-
import { ScalarSidebar as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
const
|
|
1
|
+
import { defineComponent as h, mergeModels as y, useSlots as D, ref as V, useModel as B, computed as M, createBlock as d, openBlock as l, unref as r, withCtx as s, createVNode as C, createSlots as E, renderSlot as i, createElementBlock as v, createCommentVNode as n, Fragment as R, normalizeProps as f, guardReactiveProps as b, createElementVNode as w, isRef as z } from "vue";
|
|
2
|
+
import { ScalarIconButton as F, ScalarSidebarSearchInput as N } from "@scalar/components";
|
|
3
|
+
import { ScalarIconFileDashed as q, ScalarIconMagnifyingGlass as A } from "@scalar/icons";
|
|
4
|
+
import { ScalarSidebar as U } from "@scalar/sidebar";
|
|
5
|
+
import j from "./SidebarMenu.vue.js";
|
|
6
|
+
import { useSearchIndex as G } from "../../features/search/hooks/use-search-index.js";
|
|
7
|
+
import H from "../resize/Resize.vue.js";
|
|
8
|
+
const J = { class: "bg-sidebar-b-1 z-1 flex flex-col gap-1.5 px-3 pb-1.5" }, K = { class: "flex items-center justify-between" }, L = { key: 1 }, _ = /* @__PURE__ */ h({
|
|
9
9
|
__name: "Sidebar",
|
|
10
|
-
props: /* @__PURE__ */
|
|
10
|
+
props: /* @__PURE__ */ y({
|
|
11
11
|
sidebarState: {},
|
|
12
12
|
layout: {},
|
|
13
13
|
activeWorkspace: {},
|
|
14
14
|
workspaces: {},
|
|
15
|
-
eventBus: {},
|
|
16
15
|
documents: {},
|
|
17
16
|
isDroppable: { type: [Boolean, Function] }
|
|
18
17
|
}, {
|
|
@@ -22,77 +21,80 @@ const R = { class: "bg-sidebar-b-1 z-1 flex flex-col gap-1.5 px-3 pb-1.5" }, A =
|
|
|
22
21
|
},
|
|
23
22
|
sidebarWidthModifiers: {}
|
|
24
23
|
}),
|
|
25
|
-
emits: /* @__PURE__ */
|
|
26
|
-
setup(t, { emit:
|
|
27
|
-
const c =
|
|
28
|
-
|
|
24
|
+
emits: /* @__PURE__ */ y(["selectItem", "select:workspace", "create:workspace", "reorder"], ["update:sidebarWidth"]),
|
|
25
|
+
setup(t, { emit: g }) {
|
|
26
|
+
const c = g, p = D(), u = V(!1), k = B(t, "sidebarWidth"), S = (o) => o.type === "example" && o.title === "draft", { query: m, results: x } = G(() => t.documents), I = M(() => x.value ?? t.sidebarState.items.value), W = (o) => {
|
|
27
|
+
c("selectItem", o), m.value = "", u.value = !1;
|
|
28
|
+
};
|
|
29
|
+
return (o, a) => (l(), d(r(H), {
|
|
29
30
|
width: k.value,
|
|
30
|
-
"onUpdate:width":
|
|
31
|
+
"onUpdate:width": a[5] || (a[5] = (e) => k.value = e),
|
|
31
32
|
class: "flex flex-col"
|
|
32
33
|
}, {
|
|
33
|
-
default:
|
|
34
|
-
|
|
34
|
+
default: s(() => [
|
|
35
|
+
C(r(U), {
|
|
35
36
|
class: "flex w-auto flex-1 pt-2",
|
|
36
37
|
indent: 15,
|
|
37
38
|
isDraggable: t.layout !== "modal",
|
|
38
39
|
isDroppable: t.isDroppable,
|
|
39
40
|
isExpanded: t.sidebarState.isExpanded,
|
|
40
41
|
isSelected: t.sidebarState.isSelected,
|
|
41
|
-
items:
|
|
42
|
+
items: I.value,
|
|
42
43
|
layout: "client",
|
|
43
|
-
onReorder:
|
|
44
|
-
onSelectItem:
|
|
45
|
-
},
|
|
46
|
-
header:
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
t.layout === "desktop" ? (
|
|
44
|
+
onReorder: a[4] || (a[4] = (e, $) => c("reorder", e, $)),
|
|
45
|
+
onSelectItem: W
|
|
46
|
+
}, E({
|
|
47
|
+
header: s(() => [
|
|
48
|
+
w("div", J, [
|
|
49
|
+
w("div", K, [
|
|
50
|
+
t.layout === "desktop" ? (l(), d(j, {
|
|
50
51
|
key: 0,
|
|
51
52
|
activeWorkspace: t.activeWorkspace,
|
|
52
53
|
workspaces: t.workspaces,
|
|
53
|
-
"onCreate:workspace":
|
|
54
|
-
"onSelect:workspace":
|
|
54
|
+
"onCreate:workspace": a[0] || (a[0] = (e) => c("create:workspace")),
|
|
55
|
+
"onSelect:workspace": a[1] || (a[1] = (e) => c("select:workspace", e))
|
|
55
56
|
}, {
|
|
56
|
-
sidebarMenuActions:
|
|
57
|
-
|
|
57
|
+
sidebarMenuActions: s(() => [
|
|
58
|
+
i(o.$slots, "sidebarMenuActions")
|
|
58
59
|
]),
|
|
59
60
|
_: 3
|
|
60
|
-
}, 8, ["activeWorkspace", "workspaces"])) : t.layout === "modal" ? (
|
|
61
|
-
t.layout !== "web" ? (
|
|
61
|
+
}, 8, ["activeWorkspace", "workspaces"])) : t.layout === "modal" ? (l(), v("div", L)) : n("", !0),
|
|
62
|
+
t.layout !== "web" ? (l(), d(r(F), {
|
|
62
63
|
key: 2,
|
|
63
|
-
icon:
|
|
64
|
+
icon: r(A),
|
|
64
65
|
label: "Search",
|
|
65
|
-
onClick:
|
|
66
|
-
}, null, 8, ["icon"])) :
|
|
66
|
+
onClick: a[2] || (a[2] = (e) => u.value = !u.value)
|
|
67
|
+
}, null, 8, ["icon"])) : n("", !0)
|
|
67
68
|
]),
|
|
68
|
-
u.value || t.layout === "web" ? (
|
|
69
|
+
u.value || t.layout === "web" ? (l(), d(r(N), {
|
|
69
70
|
key: 0,
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
71
|
+
modelValue: r(m),
|
|
72
|
+
"onUpdate:modelValue": a[3] || (a[3] = (e) => z(m) ? m.value = e : null),
|
|
73
|
+
autofocus: t.layout !== "web"
|
|
74
|
+
}, null, 8, ["modelValue", "autofocus"])) : n("", !0)
|
|
73
75
|
])
|
|
74
76
|
]),
|
|
75
|
-
decorator:
|
|
76
|
-
|
|
77
|
+
decorator: s((e) => [
|
|
78
|
+
i(o.$slots, "decorator", f(b(e)))
|
|
77
79
|
]),
|
|
78
|
-
icon:
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
], 64)) :
|
|
80
|
+
icon: s((e) => [
|
|
81
|
+
p.icon || S(e.item) ? (l(), v(R, { key: 0 }, [
|
|
82
|
+
S(e.item) ? (l(), d(r(q), { key: 0 })) : n("", !0),
|
|
83
|
+
i(o.$slots, "icon", f(b(e)))
|
|
84
|
+
], 64)) : n("", !0)
|
|
83
85
|
]),
|
|
84
|
-
before:
|
|
85
|
-
|
|
86
|
+
before: s(() => [
|
|
87
|
+
i(o.$slots, "workspaceButton")
|
|
86
88
|
]),
|
|
87
|
-
footer:
|
|
88
|
-
|
|
89
|
+
footer: s(() => [
|
|
90
|
+
i(o.$slots, "footer")
|
|
89
91
|
]),
|
|
90
92
|
_: 2
|
|
91
93
|
}, [
|
|
92
|
-
|
|
94
|
+
p.empty ? {
|
|
93
95
|
name: "empty",
|
|
94
|
-
fn:
|
|
95
|
-
|
|
96
|
+
fn: s((e) => [
|
|
97
|
+
i(o.$slots, "empty", f(b(e)))
|
|
96
98
|
]),
|
|
97
99
|
key: "0"
|
|
98
100
|
} : void 0
|
|
@@ -103,5 +105,5 @@ const R = { class: "bg-sidebar-b-1 z-1 flex flex-col gap-1.5 px-3 pb-1.5" }, A =
|
|
|
103
105
|
}
|
|
104
106
|
});
|
|
105
107
|
export {
|
|
106
|
-
|
|
108
|
+
_ as default
|
|
107
109
|
};
|
|
@@ -12,7 +12,9 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
12
12
|
plugins?: ClientPlugin[];
|
|
13
13
|
getAppState: () => AppState;
|
|
14
14
|
getCommandPaletteState: () => CommandPaletteState;
|
|
15
|
-
}, {
|
|
15
|
+
}, {
|
|
16
|
+
openCreateWorkspace: () => void;
|
|
17
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
16
18
|
layout: Exclude<ClientLayout, "modal">;
|
|
17
19
|
plugins?: ClientPlugin[];
|
|
18
20
|
getAppState: () => AppState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"App.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/app/App.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"App.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/app/App.vue"],"names":[],"mappings":"AAmOA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAGxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAErD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oDAAoD,CAAA;AAC7F,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,aAAa,CAAA;AAM3C;;;;GAIG;;YAGO,OAAO,CAAC,YAAY,EAAE,OAAO,CAAC;cAC5B,YAAY,EAAE;iBACX,MAAM,QAAQ;4BACH,MAAM,mBAAmB;;;;YAHzC,OAAO,CAAC,YAAY,EAAE,OAAO,CAAC;cAC5B,YAAY,EAAE;iBACX,MAAM,QAAQ;4BACH,MAAM,mBAAmB;;IAUjD;;;OAGG;4BACqB,EAAE;;AAnB5B,wBAiVC;AAOD,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useModal as
|
|
1
|
+
import { defineComponent as f, computed as u, createElementBlock as b, createBlock as c, unref as t, openBlock as l, Fragment as h, createElementVNode as p, createVNode as s, withCtx as m, renderSlot as W, normalizeProps as y, guardReactiveProps as T } from "vue";
|
|
2
|
+
import { useModal as g, ScalarTeleportRoot as C } from "@scalar/components";
|
|
3
3
|
import { getThemeStyles as B } from "@scalar/themes";
|
|
4
|
-
import { ScalarToasts as
|
|
4
|
+
import { ScalarToasts as x } from "@scalar/use-toasts";
|
|
5
5
|
import { extensions as E } from "@scalar/workspace-store/schemas/extensions";
|
|
6
|
-
import { RouterView as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import { useDocumentWatcher as
|
|
10
|
-
import
|
|
11
|
-
import { useColorMode as
|
|
12
|
-
import { useGlobalHotKeys as
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
const
|
|
17
|
-
...
|
|
6
|
+
import { RouterView as O } from "vue-router";
|
|
7
|
+
import I from "./components/CreateWorkspaceModal.vue.js";
|
|
8
|
+
import A from "./components/SplashScreen.vue.js";
|
|
9
|
+
import { useDocumentWatcher as M } from "./hooks/use-document-watcher.js";
|
|
10
|
+
import U from "../command-palette/TheCommandPalette.vue.js";
|
|
11
|
+
import { useColorMode as _ } from "../../hooks/use-color-mode.js";
|
|
12
|
+
import { useGlobalHotKeys as D } from "../../hooks/use-global-hot-keys.js";
|
|
13
|
+
import N from "./components/AppSidebar.vue.js";
|
|
14
|
+
import $ from "./components/DesktopTabs.vue.js";
|
|
15
|
+
import L from "./components/WebTopNav.vue.js";
|
|
16
|
+
const P = ["innerHTML"], F = { class: "flex min-h-0 flex-1" }, H = { class: "bg-b-1 flex-1" }, V = {}, re = /* @__PURE__ */ f({
|
|
17
|
+
...V,
|
|
18
18
|
__name: "App",
|
|
19
19
|
props: {
|
|
20
20
|
layout: {},
|
|
@@ -22,24 +22,27 @@ const L = ["innerHTML"], P = { class: "flex min-h-0 flex-1" }, F = { class: "bg-
|
|
|
22
22
|
getAppState: { type: Function },
|
|
23
23
|
getCommandPaletteState: { type: Function }
|
|
24
24
|
},
|
|
25
|
-
setup(o) {
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
setup(o, { expose: d }) {
|
|
26
|
+
d({
|
|
27
|
+
openCreateWorkspace: () => n.show()
|
|
28
|
+
});
|
|
29
|
+
const e = o.getAppState(), v = o.getCommandPaletteState();
|
|
30
|
+
typeof window < "u" && (window.dataDumpWorkspace = () => e.store.value, window.dumpAppState = () => e), _({ workspaceStore: e.store }), D(e.eventBus, o.layout), M({
|
|
28
31
|
documentName: () => e.store.value?.workspace[E.workspace.activeDocument],
|
|
29
32
|
store: e.store,
|
|
30
33
|
initialTimeout: 5e3
|
|
31
34
|
});
|
|
32
|
-
const
|
|
35
|
+
const k = u(() => {
|
|
33
36
|
if (e.store.value === null)
|
|
34
37
|
return "";
|
|
35
|
-
const
|
|
36
|
-
return
|
|
37
|
-
}),
|
|
38
|
+
const i = e.store.value.workspace["x-scalar-theme"];
|
|
39
|
+
return i ? `<style>${B(i)}</style>` : "";
|
|
40
|
+
}), w = () => e.router.value?.push({
|
|
38
41
|
name: "workspace.environment",
|
|
39
42
|
params: {
|
|
40
43
|
workspaceSlug: e.activeEntities.workspaceSlug.value
|
|
41
44
|
}
|
|
42
|
-
}),
|
|
45
|
+
}), n = g(), S = u(() => ({
|
|
43
46
|
documentSlug: e.activeEntities.documentSlug.value ?? "",
|
|
44
47
|
document: e.store.value?.workspace.activeDocument ?? null,
|
|
45
48
|
environment: e.environment.value,
|
|
@@ -53,25 +56,25 @@ const L = ["innerHTML"], P = { class: "flex min-h-0 flex-1" }, F = { class: "bg-
|
|
|
53
56
|
plugins: o.plugins,
|
|
54
57
|
securitySchemes: e.document.value?.components?.securitySchemes ?? {}
|
|
55
58
|
}));
|
|
56
|
-
return (
|
|
57
|
-
|
|
58
|
-
s(t(
|
|
59
|
+
return (i, a) => t(e).store.value !== null && t(e).workspace.activeWorkspace.value !== null && !t(e).loading.value ? (l(), b(h, { key: 0 }, [
|
|
60
|
+
p("div", { innerHTML: k.value }, null, 8, P),
|
|
61
|
+
s(t(C), null, {
|
|
59
62
|
default: m(() => [
|
|
60
|
-
s(t(
|
|
61
|
-
o.layout === "desktop" ? (
|
|
63
|
+
s(t(x)),
|
|
64
|
+
o.layout === "desktop" ? (l(), c($, {
|
|
62
65
|
key: 0,
|
|
63
66
|
activeTabIndex: t(e).tabs.activeTabIndex.value,
|
|
64
67
|
eventBus: t(e).eventBus,
|
|
65
68
|
tabs: t(e).tabs.state.value
|
|
66
|
-
}, null, 8, ["activeTabIndex", "eventBus", "tabs"])) : (
|
|
69
|
+
}, null, 8, ["activeTabIndex", "eventBus", "tabs"])) : (l(), c(L, {
|
|
67
70
|
key: 1,
|
|
68
71
|
activeWorkspace: t(e).workspace.activeWorkspace.value,
|
|
69
72
|
workspaces: t(e).workspace.workspaceList.value,
|
|
70
|
-
"onCreate:workspace": a[0] || (a[0] = (r) => t(
|
|
73
|
+
"onCreate:workspace": a[0] || (a[0] = (r) => t(n).show()),
|
|
71
74
|
"onSelect:workspace": t(e).workspace.setId
|
|
72
75
|
}, null, 8, ["activeWorkspace", "workspaces", "onSelect:workspace"])),
|
|
73
|
-
|
|
74
|
-
s(
|
|
76
|
+
p("main", F, [
|
|
77
|
+
s(N, {
|
|
75
78
|
isSidebarOpen: t(e).sidebar.isOpen.value,
|
|
76
79
|
"onUpdate:isSidebarOpen": a[1] || (a[1] = (r) => t(e).sidebar.isOpen.value = r),
|
|
77
80
|
activeWorkspace: t(e).workspace.activeWorkspace.value,
|
|
@@ -82,36 +85,36 @@ const L = ["innerHTML"], P = { class: "flex min-h-0 flex-1" }, F = { class: "bg-
|
|
|
82
85
|
sidebarWidth: t(e).sidebar.width.value,
|
|
83
86
|
store: t(e).store.value,
|
|
84
87
|
workspaces: t(e).workspace.workspaceList.value,
|
|
85
|
-
"onClick:workspace":
|
|
86
|
-
"onCreate:workspace": a[2] || (a[2] = (r) => t(
|
|
88
|
+
"onClick:workspace": w,
|
|
89
|
+
"onCreate:workspace": a[2] || (a[2] = (r) => t(n).show()),
|
|
87
90
|
"onSelect:workspace": t(e).workspace.setId,
|
|
88
91
|
onSelectItem: t(e).sidebar.handleSelectItem,
|
|
89
92
|
"onUpdate:sidebarWidth": t(e).sidebar.handleSidebarWidthUpdate
|
|
90
93
|
}, {
|
|
91
94
|
sidebarMenuActions: m(() => [
|
|
92
|
-
|
|
95
|
+
W(i.$slots, "sidebar-menu-actions")
|
|
93
96
|
]),
|
|
94
97
|
_: 3
|
|
95
98
|
}, 8, ["isSidebarOpen", "activeWorkspace", "eventBus", "isWorkspaceOpen", "layout", "sidebarState", "sidebarWidth", "store", "workspaces", "onSelect:workspace", "onSelectItem", "onUpdate:sidebarWidth"]),
|
|
96
|
-
s(
|
|
97
|
-
state: t(
|
|
99
|
+
s(I, {
|
|
100
|
+
state: t(n),
|
|
98
101
|
"onCreate:workspace": a[3] || (a[3] = (r) => t(e).workspace.create(r))
|
|
99
102
|
}, null, 8, ["state"]),
|
|
100
|
-
s(
|
|
103
|
+
s(U, {
|
|
101
104
|
eventBus: t(e).eventBus,
|
|
102
|
-
paletteState: t(
|
|
105
|
+
paletteState: t(v),
|
|
103
106
|
workspaceStore: t(e).store.value
|
|
104
107
|
}, null, 8, ["eventBus", "paletteState", "workspaceStore"]),
|
|
105
|
-
|
|
106
|
-
s(t(
|
|
108
|
+
p("div", H, [
|
|
109
|
+
s(t(O), y(T(S.value)), null, 16)
|
|
107
110
|
])
|
|
108
111
|
])
|
|
109
112
|
]),
|
|
110
113
|
_: 3
|
|
111
114
|
})
|
|
112
|
-
], 64)) : (
|
|
115
|
+
], 64)) : (l(), c(A, { key: 1 }));
|
|
113
116
|
}
|
|
114
117
|
});
|
|
115
118
|
export {
|
|
116
|
-
|
|
119
|
+
re as default
|
|
117
120
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-state.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/app/app-state.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AAG7D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AAGnE,OAAO,EAAE,KAAK,cAAc,EAAwB,MAAM,gCAAgC,CAAA;AAC1F,OAAO,EAEL,KAAK,iBAAiB,EAEvB,MAAM,gCAAgC,CAAA;AAKvC,OAAO,KAAK,EAAa,iBAAiB,EAAE,MAAM,iCAAiC,CAAA;AAEnF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,oEAAoE,CAAA;AAC7F,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAA;AAChF,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,GAAG,EAAE,KAAK,UAAU,EAAoC,M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