@scalar/api-client 2.1.45 → 2.1.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +39 -0
- package/dist/components/AddressBar/AddressBar.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBar.vue.js +2 -2
- package/dist/components/AddressBar/AddressBar.vue2.js +66 -58
- package/dist/components/AddressBar/AddressBarHistory.vue.js +2 -2
- package/dist/components/AddressBar/AddressBarHistory.vue2.js +8 -8
- package/dist/components/AddressBar/AddressBarServer.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBarServer.vue.js +40 -39
- package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
- package/dist/components/CodeInput/CodeInput.vue.js +1 -1
- package/dist/components/CodeInput/CodeInput.vue2.js +7 -7
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.js +32 -26
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.js +14 -9
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/TheCommandPalette.vue.js +4 -4
- package/dist/components/CommandPalette/TheCommandPalette.vue2.js +15 -10
- package/dist/components/ContextBar.vue.d.ts +1 -1
- package/dist/components/ContextBar.vue.d.ts.map +1 -1
- package/dist/components/ContextBar.vue.js +2 -2
- package/dist/components/ContextBar.vue2.js +30 -19
- package/dist/components/DataTable/DataTableCheckbox.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableCheckbox.vue.js +17 -17
- package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInput.vue.js +2 -2
- package/dist/components/DataTable/DataTableInput.vue2.js +10 -10
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.d.ts.map +1 -1
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +23 -18
- package/dist/components/Form/Form.vue.js +15 -15
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts +2 -2
- package/dist/components/ImportCollection/DropEventListener.vue.d.ts +2 -2
- package/dist/components/ImportCollection/DropEventListener.vue.js +6 -6
- package/dist/components/ImportCollection/ImportCollectionListener.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/ImportCollectionListener.vue.js +22 -21
- package/dist/components/ImportCollection/ImportCollectionModal.vue.d.ts +1 -0
- package/dist/components/ImportCollection/ImportCollectionModal.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/ImportCollectionModal.vue.js +87 -74
- package/dist/components/ImportCollection/ImportNowButton.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/ImportNowButton.vue.js +14 -13
- package/dist/components/ImportCollection/PasteEventListener.vue.d.ts +2 -2
- package/dist/components/ImportCollection/PasteEventListener.vue.js +5 -5
- package/dist/components/ImportCollection/UrlQueryParameterChecker.vue.d.ts +2 -2
- package/dist/components/ImportCollection/UrlQueryParameterChecker.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/UrlQueryParameterChecker.vue.js +10 -5
- package/dist/components/ImportCollection/WorkspaceSelector.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/WorkspaceSelector.vue.js +43 -33
- package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts +1 -0
- package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts.map +1 -1
- package/dist/components/ImportCollection/hooks/useUrlPrefetcher.js +31 -21
- package/dist/components/Search/useSearch.d.ts +2 -0
- package/dist/components/Search/useSearch.d.ts.map +1 -1
- package/dist/components/Search/useSearch.js +25 -24
- package/dist/components/SideNav/DownloadAppButton.vue.d.ts +3 -0
- package/dist/components/SideNav/DownloadAppButton.vue.d.ts.map +1 -0
- package/dist/components/SideNav/DownloadAppButton.vue.js +7 -0
- package/dist/components/SideNav/DownloadAppButton.vue2.js +33 -0
- package/dist/components/SideNav/SideHelp.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideHelp.vue.js +55 -53
- package/dist/components/SideNav/SideNav.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideNav.vue.js +82 -5
- package/dist/components/SideNav/SideNav.vue2.js +2 -72
- package/dist/components/{SubpageHeader.vue.d.ts → SideNav/SideNavGroup.vue.d.ts} +3 -3
- package/dist/components/SideNav/SideNavGroup.vue.d.ts.map +1 -0
- package/dist/components/SideNav/SideNavGroup.vue.js +16 -0
- package/dist/components/SideNav/SideNavGroup.vue2.js +4 -0
- package/dist/components/SideNav/SideNavLink.vue.d.ts +5 -5
- package/dist/components/SideNav/SideNavLink.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideNavLink.vue.js +31 -34
- package/dist/components/SideNav/SideNavRouterLink.vue.d.ts +25 -0
- package/dist/components/SideNav/SideNavRouterLink.vue.d.ts.map +1 -0
- package/dist/components/SideNav/SideNavRouterLink.vue.js +29 -0
- package/dist/components/SideNav/SideNavRouterLink.vue2.js +4 -0
- package/dist/components/Sidebar/SidebarButton.vue.d.ts +1 -4
- package/dist/components/Sidebar/SidebarButton.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarButton.vue.js +17 -17
- package/dist/components/Sidebar/SidebarToggle.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarToggle.vue.js +16 -15
- package/dist/components/TopNav/TopNav.vue.d.ts.map +1 -1
- package/dist/components/TopNav/TopNav.vue.js +2 -2
- package/dist/components/TopNav/TopNav.vue2.js +14 -14
- package/dist/components/TopNav/TopNavItem.vue.d.ts +2 -2
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +31 -31
- package/dist/components/ViewLayout/ViewLayoutSection.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutSection.vue.js +13 -21
- package/dist/hooks/index.d.ts +2 -1
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +6 -4
- package/dist/hooks/useLayout.d.ts +13 -0
- package/dist/hooks/useLayout.d.ts.map +1 -0
- package/dist/hooks/useLayout.js +7 -0
- package/dist/layouts/App/ApiClientApp.vue.d.ts.map +1 -1
- package/dist/layouts/App/ApiClientApp.vue.js +37 -37
- package/dist/layouts/App/MainLayout.vue.d.ts.map +1 -1
- package/dist/layouts/App/MainLayout.vue.js +21 -13
- package/dist/layouts/App/create-api-client-app.d.ts +28 -28
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/App/create-api-client-app.js +10 -8
- package/dist/layouts/Modal/ApiClientModal.vue.d.ts +3 -1
- package/dist/layouts/Modal/ApiClientModal.vue.d.ts.map +1 -1
- package/dist/layouts/Modal/ApiClientModal.vue.js +2 -2
- package/dist/layouts/Modal/ApiClientModal.vue2.js +37 -25
- package/dist/layouts/Modal/create-api-client-modal.d.ts +56 -56
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Modal/create-api-client-modal.js +8 -7
- package/dist/layouts/Web/ApiClientWeb.vue.d.ts.map +1 -1
- package/dist/layouts/Web/ApiClientWeb.vue.js +30 -30
- package/dist/layouts/Web/create-api-client-web.d.ts +28 -28
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/layouts/Web/create-api-client-web.js +9 -7
- package/dist/libs/create-client.d.ts +35 -29
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/create-client.js +55 -42
- package/dist/libs/hot-keys.d.ts +1 -1
- package/dist/router.d.ts +4 -41
- package/dist/router.d.ts.map +1 -1
- package/dist/router.js +18 -149
- package/dist/routes.d.ts +150 -0
- package/dist/routes.d.ts.map +1 -0
- package/dist/routes.js +182 -0
- package/dist/store/collections.d.ts +4 -4
- package/dist/store/cookies.d.ts +4 -4
- package/dist/store/request-example.d.ts +4 -4
- package/dist/store/requests.d.ts +4 -4
- package/dist/store/router-params.js +1 -1
- package/dist/store/security-schemes.d.ts +4 -4
- package/dist/store/store.d.ts +56 -56
- package/dist/store/store.d.ts.map +1 -1
- package/dist/store/store.js +90 -90
- package/dist/store/tags.d.ts +4 -4
- package/dist/store/workspace.d.ts +4 -4
- package/dist/style.css +1 -1
- package/dist/views/Cookies/CookieRaw.vue.js +10 -10
- package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
- package/dist/views/Cookies/Cookies.vue2.js +52 -53
- package/dist/views/Environment/Environment.vue.d.ts.map +1 -1
- package/dist/views/Environment/Environment.vue2.js +79 -80
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts.map +1 -1
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +20 -15
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +146 -108
- package/dist/views/Request/RequestSection/RequestParams.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestParams.vue.js +53 -52
- package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue2.js +102 -97
- package/dist/views/Request/RequestSection/RequestTable.vue.d.ts +2 -2
- package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestTable.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestTable.vue2.js +44 -40
- package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebar.vue.js +2 -2
- package/dist/views/Request/RequestSidebar.vue2.js +152 -134
- package/dist/views/Request/RequestSidebarItem.vue.d.ts +2 -2
- package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItem.vue.js +2 -2
- package/dist/views/Request/RequestSidebarItem.vue2.js +129 -115
- package/dist/views/Request/RequestSidebarItemMenu.vue2.js +6 -6
- package/dist/views/Request/RequestSubpageHeader.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSubpageHeader.vue.js +1 -1
- package/dist/views/Request/RequestSubpageHeader.vue2.js +36 -34
- package/dist/views/Request/ResponseSection/ResponseBody.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBody.vue.js +21 -21
- package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.js +13 -10
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue2.js +0 -2
- package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.js +8 -8
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js +3 -3
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +32 -33
- package/dist/views/Request/ResponseSection/ResponseHeaders.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +61 -55
- package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.js +32 -25
- package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue2.js +102 -70
- package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts.map +1 -1
- package/dist/views/Request/components/WorkspaceDropdown.vue.js +60 -50
- package/dist/views/Request/types/sidebar-item.d.ts +2 -1
- package/dist/views/Request/types/sidebar-item.d.ts.map +1 -1
- package/dist/views/Servers/Servers.vue.d.ts.map +1 -1
- package/dist/views/Servers/Servers.vue2.js +12 -7
- package/package.json +10 -8
- package/dist/components/SubpageHeader.vue.d.ts.map +0 -1
- package/dist/components/ViewLayout/ViewLayoutSection.vue2.js +0 -4
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts +0 -7
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,44 @@
|
|
|
1
1
|
# @scalar/api-client
|
|
2
2
|
|
|
3
|
+
## 2.1.47
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- b717102: style: enhances response section childs spacing
|
|
8
|
+
- 8610c74: refactor: use route objects instead of strings
|
|
9
|
+
- af47a3e: fix: only virtualize text based contents
|
|
10
|
+
- 766a1fd: fix: import modal shows for any URL
|
|
11
|
+
- Updated dependencies [82f7c35]
|
|
12
|
+
- Updated dependencies [b717102]
|
|
13
|
+
- Updated dependencies [3421489]
|
|
14
|
+
- @scalar/oas-utils@0.2.73
|
|
15
|
+
- @scalar/import@0.1.1
|
|
16
|
+
- @scalar/components@0.12.67
|
|
17
|
+
- @scalar/use-codemirror@0.11.34
|
|
18
|
+
|
|
19
|
+
## 2.1.46
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- ecdf18d: style(api-client: link to scalar on client + fix some visual bugs
|
|
24
|
+
- caa45c9: feat(api-client): change sidenav to header only for web api client view
|
|
25
|
+
- 9eb6650: feat: add support for the x-defaultClientId extension
|
|
26
|
+
- 4a3c873: fix: adds missing hover in context bar
|
|
27
|
+
- 15a47e6: feat: indicate which auth is required
|
|
28
|
+
- 576e94a: fix: remove loop from media response
|
|
29
|
+
- 09a6fba: fix: add missing proxy on import modal
|
|
30
|
+
- be50225: fix: improve API client modal accessibility
|
|
31
|
+
- 0a0ca71: style(api-client): make roadmap button slightly more prominent
|
|
32
|
+
- Updated dependencies [4bcaa75]
|
|
33
|
+
- Updated dependencies [9eb6650]
|
|
34
|
+
- Updated dependencies [c98a99c]
|
|
35
|
+
- Updated dependencies [c98a99c]
|
|
36
|
+
- Updated dependencies [be50225]
|
|
37
|
+
- @scalar/oas-utils@0.2.72
|
|
38
|
+
- @scalar/import@0.1.0
|
|
39
|
+
- @scalar/components@0.12.66
|
|
40
|
+
- @scalar/use-codemirror@0.11.33
|
|
41
|
+
|
|
3
42
|
## 2.1.45
|
|
4
43
|
|
|
5
44
|
### Patch Changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddressBar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/AddressBar/AddressBar.vue"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"AddressBar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/AddressBar/AddressBar.vue"],"names":[],"mappings":";;;;;AAgxBA,wBAMG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./AddressBar.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const s = /* @__PURE__ */ r(o, [["__scopeId", "data-v-0d3d8fab"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
s as default
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as H, ref as u, watch as L, onMounted as z, onBeforeUnmount as K, unref as
|
|
1
|
+
import { defineComponent as H, ref as u, watch as L, onMounted as z, onBeforeUnmount as K, unref as a, openBlock as O, createElementBlock as A, createElementVNode as o, createVNode as n, withCtx as w, normalizeClass as y, normalizeStyle as N, createCommentVNode as T } from "vue";
|
|
2
2
|
import $ from "../CodeInput/CodeInput.vue.js";
|
|
3
|
-
import { Listbox as
|
|
4
|
-
import { ScalarButton as
|
|
3
|
+
import { Listbox as P } from "@headlessui/vue";
|
|
4
|
+
import { ScalarButton as D, ScalarIcon as Q } from "@scalar/components";
|
|
5
5
|
import { REQUEST_METHODS as W } from "@scalar/oas-utils/helpers";
|
|
6
6
|
import { isMacOS as j } from "@scalar/use-tooltip";
|
|
7
7
|
import { useMagicKeys as F, whenever as G } from "@vueuse/core";
|
|
@@ -12,131 +12,139 @@ import { useWorkspace as Z } from "../../store/store.js";
|
|
|
12
12
|
const ee = {
|
|
13
13
|
key: 0,
|
|
14
14
|
class: "order-last lg:order-none lg:w-auto w-full"
|
|
15
|
-
}, te = { class: "m-auto flex flex-row items-center" }, le = { class: "pointer-events-none absolute left-0 top-0 block h-full w-full overflow-hidden" }, oe = { class: "flex gap-1" },
|
|
15
|
+
}, te = { class: "m-auto flex flex-row items-center" }, le = { class: "pointer-events-none absolute left-0 top-0 block h-full w-full overflow-hidden" }, oe = { class: "flex gap-1" }, ae = { class: "codemirror-bg-switcher scroll-timeline-x scroll-timeline-x-hidden relative flex w-full" }, re = {
|
|
16
|
+
"aria-hidden": "true",
|
|
17
|
+
class: "inline-flex gap-1 items-center"
|
|
18
|
+
}, be = /* @__PURE__ */ H({
|
|
16
19
|
__name: "AddressBar",
|
|
17
20
|
emits: ["importCurl"],
|
|
18
|
-
setup(
|
|
21
|
+
setup(se) {
|
|
19
22
|
const {
|
|
20
|
-
activeRequest:
|
|
21
|
-
activeExample:
|
|
22
|
-
activeServer:
|
|
23
|
-
isReadOnly:
|
|
23
|
+
activeRequest: l,
|
|
24
|
+
activeExample: C,
|
|
25
|
+
activeServer: _,
|
|
26
|
+
isReadOnly: c,
|
|
24
27
|
requestMutators: m,
|
|
25
|
-
requestHistory:
|
|
28
|
+
requestHistory: R,
|
|
26
29
|
events: d
|
|
27
|
-
} = Z(),
|
|
30
|
+
} = Z(), v = u(R[0]), p = u(null), h = F();
|
|
28
31
|
G(
|
|
29
32
|
j() ? h.meta_enter : h.ctrl_enter,
|
|
30
33
|
() => d.executeRequest.emit()
|
|
31
34
|
);
|
|
32
|
-
const
|
|
33
|
-
!
|
|
35
|
+
const k = (e) => {
|
|
36
|
+
!l.value || l.value.path === e || m.edit(l.value.uid, "path", e);
|
|
34
37
|
};
|
|
35
38
|
L(
|
|
36
39
|
() => {
|
|
37
40
|
var e;
|
|
38
|
-
return (e =
|
|
41
|
+
return (e = l.value) == null ? void 0 : e.path;
|
|
39
42
|
},
|
|
40
43
|
(e) => {
|
|
41
|
-
!
|
|
44
|
+
!l.value || !e || k(e);
|
|
42
45
|
}
|
|
43
46
|
);
|
|
44
|
-
const
|
|
47
|
+
const r = u(100), x = u(0), s = u(!1), i = u();
|
|
45
48
|
function q() {
|
|
46
|
-
s.value ?
|
|
49
|
+
s.value ? r.value -= (r.value - 15) / 60 : r.value -= x.value / 20, r.value <= 0 && (clearInterval(i.value), i.value = void 0, r.value = 100, s.value = !1);
|
|
47
50
|
}
|
|
48
51
|
function B() {
|
|
49
52
|
i.value || (s.value = !0, i.value = setInterval(q, 20));
|
|
50
53
|
}
|
|
51
|
-
function E() {
|
|
52
|
-
x.value = a.value, s.value = !1;
|
|
53
|
-
}
|
|
54
54
|
function S() {
|
|
55
|
-
|
|
55
|
+
x.value = r.value, s.value = !1;
|
|
56
|
+
}
|
|
57
|
+
function E() {
|
|
58
|
+
clearInterval(i.value), i.value = void 0, r.value = 100, s.value = !1;
|
|
56
59
|
}
|
|
57
60
|
d.requestStatus.on((e) => {
|
|
58
|
-
e === "start" && B(), e === "stop" &&
|
|
61
|
+
e === "start" && B(), e === "stop" && S(), e === "abort" && E();
|
|
59
62
|
});
|
|
60
63
|
function V(e) {
|
|
61
|
-
|
|
64
|
+
l.value && m.edit(l.value.uid, "method", e);
|
|
62
65
|
}
|
|
63
66
|
function M() {
|
|
64
|
-
if (!
|
|
65
|
-
const { method: e } =
|
|
67
|
+
if (!l.value) return;
|
|
68
|
+
const { method: e } = l.value;
|
|
66
69
|
return W[e].backgroundColor;
|
|
67
70
|
}
|
|
68
71
|
function b() {
|
|
69
72
|
s.value || (s.value = !0, d.executeRequest.emit());
|
|
70
73
|
}
|
|
71
74
|
function I(e) {
|
|
72
|
-
|
|
75
|
+
l.value && m.edit(l.value.uid, "path", e);
|
|
73
76
|
}
|
|
74
77
|
function g(e) {
|
|
75
|
-
var
|
|
76
|
-
e != null && e.focusAddressBar && ((
|
|
78
|
+
var t;
|
|
79
|
+
e != null && e.focusAddressBar && ((t = p.value) == null || t.focus());
|
|
77
80
|
}
|
|
78
|
-
return z(() => d.hotKeys.on(g)), K(() => d.hotKeys.off(g)), (e,
|
|
79
|
-
|
|
80
|
-
n(
|
|
81
|
-
modelValue:
|
|
82
|
-
"onUpdate:modelValue":
|
|
81
|
+
return z(() => d.hotKeys.on(g)), K(() => d.hotKeys.off(g)), (e, t) => a(l) && a(C) ? (O(), A("div", ee, [
|
|
82
|
+
o("div", te, [
|
|
83
|
+
n(a(P), {
|
|
84
|
+
modelValue: v.value,
|
|
85
|
+
"onUpdate:modelValue": t[1] || (t[1] = (f) => v.value = f)
|
|
83
86
|
}, {
|
|
84
87
|
default: w(({ open: f }) => [
|
|
85
|
-
|
|
86
|
-
class:
|
|
88
|
+
o("div", {
|
|
89
|
+
class: y([
|
|
87
90
|
"addressbar-bg-states text-xxs relative flex w-full lg:min-w-[720px] lg:max-w-[720px] order-last overflow-hidden lg:order-none flex-1 flex-row items-stretch rounded-lg border-1/2 p-[3px]",
|
|
88
91
|
{ "border-transparent overflow-visible rounded-b-none": f }
|
|
89
92
|
])
|
|
90
93
|
}, [
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
class:
|
|
94
|
-
style: N({ transform: `translate3d(-${
|
|
94
|
+
o("div", le, [
|
|
95
|
+
o("div", {
|
|
96
|
+
class: y(["bg-mix-transparent bg-mix-amount-90 absolute left-0 top-0 h-full w-full z-context", M()]),
|
|
97
|
+
style: N({ transform: `translate3d(-${r.value}%,0,0)` })
|
|
95
98
|
}, null, 6)
|
|
96
99
|
]),
|
|
97
|
-
|
|
100
|
+
o("div", oe, [
|
|
98
101
|
n(J, {
|
|
99
|
-
isEditable: !
|
|
102
|
+
isEditable: !a(c),
|
|
100
103
|
isSquare: "",
|
|
101
|
-
method:
|
|
104
|
+
method: a(l).method,
|
|
102
105
|
teleport: ".scalar-client",
|
|
103
106
|
onChange: V
|
|
104
107
|
}, null, 8, ["isEditable", "method"])
|
|
105
108
|
]),
|
|
106
|
-
|
|
107
|
-
|
|
109
|
+
o("div", ae, [
|
|
110
|
+
t[2] || (t[2] = o("div", { class: "fade-left" }, null, -1)),
|
|
108
111
|
n(Y),
|
|
109
112
|
n($, {
|
|
110
113
|
ref_key: "addressBarRef",
|
|
111
114
|
ref: p,
|
|
115
|
+
"aria-label": "Path",
|
|
116
|
+
class: "outline-none",
|
|
112
117
|
disableCloseBrackets: "",
|
|
113
|
-
disabled:
|
|
118
|
+
disabled: a(c),
|
|
114
119
|
disableEnter: "",
|
|
115
120
|
disableTabIndent: "",
|
|
116
121
|
emitOnBlur: !1,
|
|
117
122
|
importCurl: "",
|
|
118
|
-
modelValue:
|
|
119
|
-
placeholder:
|
|
123
|
+
modelValue: a(l).path,
|
|
124
|
+
placeholder: a(_) ? "" : "Enter a URL or cURL command",
|
|
120
125
|
server: "",
|
|
121
|
-
onCurl:
|
|
126
|
+
onCurl: t[0] || (t[0] = (U) => e.$emit("importCurl", U)),
|
|
122
127
|
onSubmit: b,
|
|
123
128
|
"onUpdate:modelValue": I
|
|
124
129
|
}, null, 8, ["disabled", "modelValue", "placeholder"]),
|
|
125
|
-
|
|
130
|
+
t[3] || (t[3] = o("div", { class: "fade-right" }, null, -1))
|
|
126
131
|
]),
|
|
127
132
|
n(X, { open: f }, null, 8, ["open"]),
|
|
128
|
-
n(
|
|
129
|
-
class: "relative h-auto shrink-0
|
|
133
|
+
n(a(D), {
|
|
134
|
+
class: "relative h-auto shrink-0 overflow-hidden pl-2 pr-2.5 py-1 font-bold",
|
|
130
135
|
disabled: s.value,
|
|
131
136
|
onClick: b
|
|
132
137
|
}, {
|
|
133
138
|
default: w(() => [
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
139
|
+
o("span", re, [
|
|
140
|
+
n(a(Q), {
|
|
141
|
+
class: "relative shrink-0 fill-current",
|
|
142
|
+
icon: "Play",
|
|
143
|
+
size: "xs"
|
|
144
|
+
}),
|
|
145
|
+
t[4] || (t[4] = o("span", { class: "text-xxs lg:flex hidden" }, "Send", -1))
|
|
146
|
+
]),
|
|
147
|
+
t[5] || (t[5] = o("span", { class: "sr-only" }, " Send Request ", -1))
|
|
140
148
|
]),
|
|
141
149
|
_: 1
|
|
142
150
|
}, 8, ["disabled"])
|
|
@@ -149,5 +157,5 @@ const ee = {
|
|
|
149
157
|
}
|
|
150
158
|
});
|
|
151
159
|
export {
|
|
152
|
-
|
|
160
|
+
be as default
|
|
153
161
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./AddressBarHistory.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const c = /* @__PURE__ */ r(o, [["__scopeId", "data-v-9c5cf81b"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
c as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as C, computed as q, openBlock as u, createElementBlock as b, Fragment as h, createBlock as
|
|
1
|
+
import { defineComponent as C, computed as q, openBlock as u, createElementBlock as b, Fragment as h, createBlock as i, unref as o, withCtx as c, createVNode as x, createCommentVNode as v, createElementVNode as r, normalizeClass as g, renderList as B, toDisplayString as l } from "vue";
|
|
2
2
|
import { formatMs as H } from "../../libs/formatters.js";
|
|
3
3
|
import { ListboxButton as y, ListboxOptions as L, ListboxOption as S } from "@headlessui/vue";
|
|
4
4
|
import { ScalarIcon as z } from "@scalar/components";
|
|
@@ -29,11 +29,11 @@ const $ = { class: "min-w-0" }, I = { class: "min-w-0 truncate text-c-1" }, P =
|
|
|
29
29
|
return (t, s) => {
|
|
30
30
|
var n;
|
|
31
31
|
return u(), b(h, null, [
|
|
32
|
-
(n = m.value) != null && n.length ? (u(),
|
|
32
|
+
(n = m.value) != null && n.length ? (u(), i(o(y), {
|
|
33
33
|
key: 0,
|
|
34
34
|
class: "addressbar-history-button mr-1 rounded-lg p-1.5 text-c-3 focus:text-c-1"
|
|
35
35
|
}, {
|
|
36
|
-
default:
|
|
36
|
+
default: c(() => [
|
|
37
37
|
x(o(z), {
|
|
38
38
|
icon: "History",
|
|
39
39
|
size: "sm",
|
|
@@ -49,17 +49,17 @@ const $ = { class: "min-w-0" }, I = { class: "min-w-0 truncate text-c-1" }, P =
|
|
|
49
49
|
])
|
|
50
50
|
}, [
|
|
51
51
|
x(o(L), { class: "bg-b-1 border-t custom-scroll max-h-[300px] rounded-b-lg p-[3px] grid grid-cols-[44px,1fr,repeat(3,auto)] items-center" }, {
|
|
52
|
-
default:
|
|
53
|
-
(u(!0), b(h, null, B(m.value, (e, f) => (u(),
|
|
52
|
+
default: c(() => [
|
|
53
|
+
(u(!0), b(h, null, B(m.value, (e, f) => (u(), i(o(S), {
|
|
54
54
|
key: f,
|
|
55
|
-
class: "contents font-code text-sm *:rounded-none first:*:rounded-l last:*:rounded-r *:h-8 *:
|
|
55
|
+
class: "contents font-code text-sm *:rounded-none first:*:rounded-l last:*:rounded-r *:h-8 *:ui-active:bg-b-2 *:flex *:items-center *:cursor-pointer *:px-1.5 text-c-2 font-medium",
|
|
56
56
|
value: f,
|
|
57
57
|
onClick: (a) => w(e)
|
|
58
58
|
}, {
|
|
59
|
-
default:
|
|
59
|
+
default: c(() => {
|
|
60
60
|
var a;
|
|
61
61
|
return [
|
|
62
|
-
e.response.method ? (u(),
|
|
62
|
+
e.response.method ? (u(), i(N, {
|
|
63
63
|
key: 0,
|
|
64
64
|
class: "text-[11px]",
|
|
65
65
|
method: e.response.method
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddressBarServer.vue.d.ts","sourceRoot":"","sources":["../../../src/components/AddressBar/AddressBarServer.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"AddressBarServer.vue.d.ts","sourceRoot":"","sources":["../../../src/components/AddressBar/AddressBarServer.vue"],"names":[],"mappings":";AAiXA,wBAKG"}
|
|
@@ -1,103 +1,106 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as V, computed as u, watch as O, openBlock as l, createBlock as S, unref as n, withCtx as w, createElementBlock as o, createCommentVNode as v, Fragment as m, renderList as g, createVNode as p, createElementVNode as a, createTextVNode as R, toDisplayString as b } from "vue";
|
|
2
2
|
import { ScalarDropdown as W, ScalarDropdownDivider as C, ScalarDropdownItem as E, ScalarIcon as I } from "@scalar/components";
|
|
3
3
|
import D from "./AddressBarServerItem.vue.js";
|
|
4
4
|
import { useWorkspace as L } from "../../store/store.js";
|
|
5
|
-
const
|
|
5
|
+
const T = {
|
|
6
|
+
class: "font-code lg:text-sm text-xs whitespace-nowrap border border-b-3 border-solid rounded px-1.5 py-0.5 text-c-2 -outline-offset-1",
|
|
7
|
+
type: "button"
|
|
8
|
+
}, j = {
|
|
6
9
|
key: 0,
|
|
7
10
|
class: "text-xxs text-c-2 ml-8"
|
|
8
|
-
},
|
|
11
|
+
}, F = { class: "flex items-center justify-center h-4 w-4" }, M = {
|
|
9
12
|
key: 1,
|
|
10
13
|
class: "flex whitespace-nowrap items-center font-code lg:text-sm text-xs"
|
|
11
|
-
},
|
|
14
|
+
}, H = /* @__PURE__ */ V({
|
|
12
15
|
__name: "AddressBarServer",
|
|
13
16
|
setup(P) {
|
|
14
17
|
const {
|
|
15
|
-
activeRequest:
|
|
18
|
+
activeRequest: y,
|
|
16
19
|
activeCollection: h,
|
|
17
20
|
activeServer: x,
|
|
18
21
|
isReadOnly: A,
|
|
19
|
-
servers:
|
|
20
|
-
collectionMutators:
|
|
21
|
-
events:
|
|
22
|
-
} = L(),
|
|
22
|
+
servers: k,
|
|
23
|
+
collectionMutators: N,
|
|
24
|
+
events: B
|
|
25
|
+
} = L(), c = u(
|
|
23
26
|
() => {
|
|
24
27
|
var t, e;
|
|
25
|
-
return (e = (t =
|
|
28
|
+
return (e = (t = y.value) == null ? void 0 : t.servers) == null ? void 0 : e.map((r) => {
|
|
26
29
|
var s;
|
|
27
30
|
return {
|
|
28
31
|
id: r,
|
|
29
|
-
label: ((s =
|
|
32
|
+
label: ((s = k[r]) == null ? void 0 : s.url) ?? "Unknown server"
|
|
30
33
|
};
|
|
31
34
|
});
|
|
32
35
|
}
|
|
33
|
-
),
|
|
36
|
+
), i = u(
|
|
34
37
|
() => {
|
|
35
38
|
var t, e;
|
|
36
39
|
return (e = (t = h.value) == null ? void 0 : t.servers) == null ? void 0 : e.map((r) => {
|
|
37
40
|
var s;
|
|
38
41
|
return {
|
|
39
42
|
id: r,
|
|
40
|
-
label: ((s =
|
|
43
|
+
label: ((s = k[r]) == null ? void 0 : s.url) ?? "Unknown server"
|
|
41
44
|
};
|
|
42
45
|
});
|
|
43
46
|
}
|
|
44
|
-
), _ =
|
|
47
|
+
), _ = u(
|
|
45
48
|
() => {
|
|
46
49
|
var t, e;
|
|
47
|
-
return ((t =
|
|
50
|
+
return ((t = c.value) == null ? void 0 : t.length) && ((e = i.value) == null ? void 0 : e.length);
|
|
48
51
|
}
|
|
49
52
|
);
|
|
50
|
-
|
|
51
|
-
!t || t.selectedServerUid || e != null && e.selectedServerUid ||
|
|
53
|
+
O([h, y], ([t, e]) => {
|
|
54
|
+
!t || t.selectedServerUid || e != null && e.selectedServerUid || N.edit(
|
|
52
55
|
t.uid,
|
|
53
56
|
"selectedServerUid",
|
|
54
57
|
t.servers[0]
|
|
55
58
|
);
|
|
56
59
|
});
|
|
57
|
-
const U = () =>
|
|
60
|
+
const U = () => B.commandPalette.emit({
|
|
58
61
|
commandName: "Add Server"
|
|
59
|
-
}), f =
|
|
62
|
+
}), f = u(() => {
|
|
60
63
|
var t, e, r;
|
|
61
64
|
return (e = (t = x.value) == null ? void 0 : t.url) != null && e.endsWith("/") ? x.value.url.slice(0, -1) : ((r = x.value) == null ? void 0 : r.url) || "";
|
|
62
65
|
});
|
|
63
66
|
return (t, e) => {
|
|
64
67
|
var r, s;
|
|
65
|
-
return
|
|
68
|
+
return c.value && ((r = c.value) == null ? void 0 : r.length) > 1 || i.value && ((s = i.value) == null ? void 0 : s.length) > 1 ? (l(), S(n(W), {
|
|
66
69
|
key: 0,
|
|
67
70
|
class: "w-max",
|
|
68
71
|
teleport: ".scalar-client"
|
|
69
72
|
}, {
|
|
70
73
|
items: w(() => [
|
|
71
|
-
_.value ? (l(), o("div",
|
|
72
|
-
(l(!0), o(m, null, g(
|
|
73
|
-
key:
|
|
74
|
-
serverOption:
|
|
74
|
+
_.value ? (l(), o("div", j, " Request Servers ")) : v("", !0),
|
|
75
|
+
(l(!0), o(m, null, g(c.value, (d) => (l(), S(D, {
|
|
76
|
+
key: d.id,
|
|
77
|
+
serverOption: d,
|
|
75
78
|
type: "request"
|
|
76
79
|
}, null, 8, ["serverOption"]))), 128)),
|
|
77
80
|
_.value ? (l(), o(m, { key: 1 }, [
|
|
78
81
|
p(n(C)),
|
|
79
|
-
e[1] || (e[1] =
|
|
82
|
+
e[1] || (e[1] = a("div", { class: "text-xxs text-c-2 ml-8" }, "Collection Servers", -1))
|
|
80
83
|
], 64)) : v("", !0),
|
|
81
|
-
(l(!0), o(m, null, g(
|
|
82
|
-
key:
|
|
83
|
-
serverOption:
|
|
84
|
+
(l(!0), o(m, null, g(i.value, (d) => (l(), S(D, {
|
|
85
|
+
key: d.id,
|
|
86
|
+
serverOption: d,
|
|
84
87
|
type: "collection"
|
|
85
88
|
}, null, 8, ["serverOption"]))), 128)),
|
|
86
89
|
n(A) ? v("", !0) : (l(), o(m, { key: 2 }, [
|
|
87
90
|
p(n(C)),
|
|
88
91
|
p(n(E), null, {
|
|
89
92
|
default: w(() => [
|
|
90
|
-
|
|
93
|
+
a("div", {
|
|
91
94
|
class: "font-code text-xxs flex items-center gap-1.5",
|
|
92
95
|
onClick: U
|
|
93
96
|
}, [
|
|
94
|
-
|
|
97
|
+
a("div", F, [
|
|
95
98
|
p(n(I), {
|
|
96
99
|
class: "h-2.5",
|
|
97
100
|
icon: "Add"
|
|
98
101
|
})
|
|
99
102
|
]),
|
|
100
|
-
e[2] || (e[2] =
|
|
103
|
+
e[2] || (e[2] = a("span", null, "Add Server", -1))
|
|
101
104
|
])
|
|
102
105
|
]),
|
|
103
106
|
_: 1
|
|
@@ -105,18 +108,16 @@ const M = {
|
|
|
105
108
|
], 64))
|
|
106
109
|
]),
|
|
107
110
|
default: w(() => [
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
}, ["stop"]))
|
|
113
|
-
}, b(f.value), 1)
|
|
111
|
+
a("button", T, [
|
|
112
|
+
e[0] || (e[0] = a("span", { class: "sr-only" }, "Server:", -1)),
|
|
113
|
+
R(" " + b(f.value), 1)
|
|
114
|
+
])
|
|
114
115
|
]),
|
|
115
116
|
_: 1
|
|
116
|
-
})) : f.value ? (l(), o("div",
|
|
117
|
+
})) : f.value ? (l(), o("div", M, b(f.value), 1)) : v("", !0);
|
|
117
118
|
};
|
|
118
119
|
}
|
|
119
120
|
});
|
|
120
121
|
export {
|
|
121
|
-
|
|
122
|
+
H as default
|
|
122
123
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CodeInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CodeInput/CodeInput.vue"],"names":[],"mappings":"AAAA,OAqcO,EAGL,KAAK,kBAAkB,EAGxB,MAAM,wBAAwB,CAAA;;kBAiBb,OAAO;gBACT,MAAM,GAAG,MAAM;YACnB,OAAO;iBACF,OAAO;kBACN,OAAO;WACd,OAAO;uBACK,OAAO;eACf,kBAAkB;wBACT,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;wBACnB,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;kBACzB,MAAM;eACT,OAAO;mBACH,OAAO;2BACC,OAAO;WACvB,MAAM,EAAE;WACR,MAAM;eACF,OAAO;oBACF,OAAO;iBACV,OAAO;iBACP,OAAO;cACV,MAAM,GAAG,MAAM;;;;;;;;kBApBX,OAAO;gBACT,MAAM,GAAG,MAAM;YACnB,OAAO;iBACF,OAAO;kBACN,OAAO;WACd,OAAO;uBACK,OAAO;eACf,kBAAkB;wBACT,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;wBACnB,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;kBACzB,MAAM;eACT,OAAO;mBACH,OAAO;2BACC,OAAO;WACvB,MAAM,EAAE;WACR,MAAM;eACF,OAAO;oBACF,OAAO;iBACV,OAAO;iBACP,OAAO;cACV,MAAM,GAAG,MAAM;;;;;;gBAjBZ,OAAO;iBAHN,OAAO;sBAMF,OAAO;kBAMX,OAAO;0BACC,OAAO;cAGnB,OAAO;mBACF,OAAO;gBAEV,OAAO;;
|
|
1
|
+
{"version":3,"file":"CodeInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CodeInput/CodeInput.vue"],"names":[],"mappings":"AAAA,OAqcO,EAGL,KAAK,kBAAkB,EAGxB,MAAM,wBAAwB,CAAA;;kBAiBb,OAAO;gBACT,MAAM,GAAG,MAAM;YACnB,OAAO;iBACF,OAAO;kBACN,OAAO;WACd,OAAO;uBACK,OAAO;eACf,kBAAkB;wBACT,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;wBACnB,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;kBACzB,MAAM;eACT,OAAO;mBACH,OAAO;2BACC,OAAO;WACvB,MAAM,EAAE;WACR,MAAM;eACF,OAAO;oBACF,OAAO;iBACV,OAAO;iBACP,OAAO;cACV,MAAM,GAAG,MAAM;;;;;;;;kBApBX,OAAO;gBACT,MAAM,GAAG,MAAM;YACnB,OAAO;iBACF,OAAO;kBACN,OAAO;WACd,OAAO;uBACK,OAAO;eACf,kBAAkB;wBACT,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;wBACnB,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;kBACzB,MAAM;eACT,OAAO;mBACH,OAAO;2BACC,OAAO;WACvB,MAAM,EAAE;WACR,MAAM;eACF,OAAO;oBACF,OAAO;iBACV,OAAO;iBACP,OAAO;cACV,MAAM,GAAG,MAAM;;;;;;gBAjBZ,OAAO;iBAHN,OAAO;sBAMF,OAAO;kBAMX,OAAO;0BACC,OAAO;cAGnB,OAAO;mBACF,OAAO;gBAEV,OAAO;;qBAkZM,GAAG;kBACN,GAAG;;AAza9B,wBAueC;AAgBD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -2,7 +2,7 @@ import o from "./CodeInput.vue2.js";
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
4
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
-
const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
5
|
+
const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-19c5f2da"]]);
|
|
6
6
|
export {
|
|
7
7
|
f as default
|
|
8
8
|
};
|
|
@@ -48,7 +48,7 @@ const se = ["id"], de = {
|
|
|
48
48
|
emits: ["submit", "update:modelValue", "curl"],
|
|
49
49
|
setup(N, { expose: O, emit: _ }) {
|
|
50
50
|
var P;
|
|
51
|
-
const e = N, s = _, V = L(), I = V.id || `id-${oe()}`, g = i(!1), m = i(!1), B = i(""), C = i({ left: 0, top: 0 }), c = i(null), { activeEnvVariables: k, isReadOnly: S, activeEnvironment:
|
|
51
|
+
const e = N, s = _, V = L(), I = V.id || `id-${oe()}`, g = i(!1), m = i(!1), B = i(""), C = i({ left: 0, top: 0 }), c = i(null), { activeEnvVariables: k, isReadOnly: S, activeEnvironment: x, router: K } = ie(), { copyToClipboard: M } = ae();
|
|
52
52
|
function A(o) {
|
|
53
53
|
var t;
|
|
54
54
|
return o === e.modelValue ? null : e.importCurl && o.trim().toLowerCase().startsWith("curl") ? (s("curl", o), (t = a.value) == null || t.dispatch({
|
|
@@ -68,13 +68,13 @@ const se = ["id"], de = {
|
|
|
68
68
|
const y = [];
|
|
69
69
|
e.colorPicker && y.push(ee), y.push(
|
|
70
70
|
te({
|
|
71
|
-
activeEnvironment:
|
|
71
|
+
activeEnvironment: x,
|
|
72
72
|
activeEnvVariables: k,
|
|
73
73
|
isReadOnly: S
|
|
74
74
|
}),
|
|
75
75
|
le
|
|
76
76
|
);
|
|
77
|
-
const
|
|
77
|
+
const E = i(null), { codeMirror: a } = Y({
|
|
78
78
|
content: r(
|
|
79
79
|
() => e.modelValue !== void 0 ? String(e.modelValue) : ""
|
|
80
80
|
),
|
|
@@ -83,7 +83,7 @@ const se = ["id"], de = {
|
|
|
83
83
|
},
|
|
84
84
|
onFocus: () => g.value = !0,
|
|
85
85
|
onBlur: (o) => z(o),
|
|
86
|
-
codeMirrorRef:
|
|
86
|
+
codeMirrorRef: E,
|
|
87
87
|
disableTabIndent: r(() => e.disableTabIndent),
|
|
88
88
|
disableEnter: r(() => e.disableEnter),
|
|
89
89
|
disableCloseBrackets: r(() => e.disableCloseBrackets),
|
|
@@ -135,8 +135,8 @@ const se = ["id"], de = {
|
|
|
135
135
|
id: n(I)
|
|
136
136
|
}, o.$attrs, {
|
|
137
137
|
ref_key: "codeMirrorRef",
|
|
138
|
-
ref:
|
|
139
|
-
class: ["peer font-code w-full whitespace-nowrap overflow-hidden text-xs leading-[1.44] relative", {
|
|
138
|
+
ref: E,
|
|
139
|
+
class: ["peer font-code w-full whitespace-nowrap overflow-hidden text-xs leading-[1.44] relative has-[:focus-visible]:outline has-[:focus-visible]:rounded-[4px] -outline-offset-2", {
|
|
140
140
|
"flow-code-input--error": o.error
|
|
141
141
|
}],
|
|
142
142
|
onKeydown: [
|
|
@@ -169,7 +169,7 @@ const se = ["id"], de = {
|
|
|
169
169
|
ref_key: "dropdownRef",
|
|
170
170
|
ref: c,
|
|
171
171
|
activeEnvVariables: v(() => n(k)),
|
|
172
|
-
activeEnvironment: v(() => n(
|
|
172
|
+
activeEnvironment: v(() => n(x)),
|
|
173
173
|
dropdownPosition: C.value,
|
|
174
174
|
query: B.value,
|
|
175
175
|
router: n(K),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CommandPaletteRequest.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/CommandPaletteRequest.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CommandPaletteRequest.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/CommandPaletteRequest.vue"],"names":[],"mappings":"AAuMA,KAAK,WAAW,GAAG;IACjB,QAAQ,CAAC,EAAE;QACT,OAAO,EAAE,MAAM,CAAA;QACf,SAAS,EAAE,MAAM,CAAA;KAClB,CAAA;CACF,CAAC;;;;;;;;AA2TF,wBAQG"}
|