@scalar/api-client 2.26.2 → 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 +218 -0
- package/dist/components/Server/ServerSelector.vue.js +6 -6
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +6 -6
- 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/operation-block/helpers/build-request-body.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/helpers/build-request-body.js +29 -25
- package/dist/v2/blocks/operation-block/helpers/get-example.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/helpers/get-example.js +15 -15
- package/dist/v2/blocks/operation-block/helpers/get-selected-body-content-type.d.ts +10 -0
- package/dist/v2/blocks/operation-block/helpers/get-selected-body-content-type.d.ts.map +1 -0
- package/dist/v2/blocks/operation-block/helpers/get-selected-body-content-type.js +4 -0
- package/dist/v2/blocks/request-block/RequestBlock.vue.js +1 -1
- package/dist/v2/blocks/request-block/RequestBlock.vue2.js +26 -26
- 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 +88 -103
- 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/response-block/ResponseBlock.vue.js +1 -1
- package/dist/v2/blocks/response-block/ResponseBlock.vue2.js +7 -7
- package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.d.ts.map +1 -1
- package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.js +1 -1
- package/dist/v2/blocks/response-block/components/ResponseEmpty.vue2.js +31 -40
- 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 +52 -54
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts +3 -2
- 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 +106 -86
- package/dist/v2/blocks/scalar-auth-selector-block/components/OpenIDConnect.vue.d.ts +21 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/OpenIDConnect.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/OpenIDConnect.vue.js +91 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/OpenIDConnect.vue2.js +4 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js +107 -93
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/extract-security-scheme-secrets.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/extract-security-scheme-secrets.js +87 -65
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/fetch-openid-connect-discovery.d.ts +36 -0
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/fetch-openid-connect-discovery.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/fetch-openid-connect-discovery.js +35 -0
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/merge-security.d.ts +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/merge-security.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/merge-security.js +18 -10
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/openid-discovery-to-flows.d.ts +5 -0
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/openid-discovery-to-flows.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/openid-discovery-to-flows.js +27 -0
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/secret-types.d.ts +3 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/secret-types.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.d.ts +4 -3
- 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 +32 -40
- 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/layout/CollapsibleSection.vue.js +1 -1
- package/dist/v2/components/sidebar/Sidebar.vue.d.ts +2 -0
- package/dist/v2/components/sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/v2/components/sidebar/Sidebar.vue.js +25 -24
- package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts +2 -0
- package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts.map +1 -1
- package/dist/v2/components/sidebar/SidebarMenu.vue.js +30 -30
- package/dist/v2/features/app/App.vue.d.ts +5 -0
- package/dist/v2/features/app/App.vue.d.ts.map +1 -1
- package/dist/v2/features/app/App.vue.js +80 -78
- 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 +3 -3
- package/dist/v2/features/app/components/AppSidebar.vue2.js +99 -97
- 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/create-api-client-app.d.ts +11 -1
- package/dist/v2/features/app/helpers/create-api-client-app.d.ts.map +1 -1
- package/dist/v2/features/app/helpers/create-api-client-app.js +12 -10
- package/dist/v2/features/app/helpers/routes.d.ts +2 -0
- package/dist/v2/features/app/helpers/routes.d.ts.map +1 -1
- package/dist/v2/features/app/helpers/routes.js +11 -11
- package/dist/v2/features/app/hooks/use-theme.d.ts +42 -0
- package/dist/v2/features/app/hooks/use-theme.d.ts.map +1 -0
- package/dist/v2/features/app/hooks/use-theme.js +34 -0
- package/dist/v2/features/collection/DocumentCollection.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/DocumentCollection.vue.js +27 -26
- 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 +41 -22
- package/dist/v2/features/collection/components/Authentication.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Authentication.vue.js +2 -2
- package/dist/v2/features/collection/components/Authentication.vue2.js +49 -40
- package/dist/v2/features/collection/components/Cookies.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Cookies.vue.js +26 -13
- package/dist/v2/features/collection/components/Environment.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Environment.vue.js +27 -15
- 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/collection/components/Overview.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Overview.vue.js +2 -2
- package/dist/v2/features/collection/components/Overview.vue2.js +68 -61
- package/dist/v2/features/collection/components/Servers.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Servers.vue.js +93 -88
- package/dist/v2/features/collection/components/Settings.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Settings.vue.js +19 -17
- 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/environments/EnvironmentsList.vue.js +1 -1
- package/dist/v2/features/global-cookies/components/CookiesTable.vue.d.ts.map +1 -1
- package/dist/v2/features/global-cookies/components/CookiesTable.vue.js +2 -2
- package/dist/v2/features/global-cookies/components/CookiesTable.vue2.js +8 -8
- package/dist/v2/features/modal/Modal.vue.d.ts.map +1 -1
- package/dist/v2/features/modal/Modal.vue.js +15 -15
- package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -1
- package/dist/v2/features/operation/Operation.vue.js +30 -33
- package/dist/v2/features/settings/CollectionSettings.vue.d.ts +10 -7
- package/dist/v2/features/settings/CollectionSettings.vue.d.ts.map +1 -1
- package/dist/v2/features/settings/CollectionSettings.vue.js +183 -149
- package/dist/v2/features/settings/DocumentSettings.vue.d.ts.map +1 -1
- package/dist/v2/features/settings/DocumentSettings.vue.js +88 -79
- package/dist/v2/features/settings/components/Section.vue.d.ts +2 -1
- package/dist/v2/features/settings/components/Section.vue.d.ts.map +1 -1
- package/dist/v2/features/settings/components/Section.vue.js +26 -15
- package/dist/v2/features/settings/helpers/get-theme-colors.d.ts +4 -3
- package/dist/v2/features/settings/helpers/get-theme-colors.d.ts.map +1 -1
- package/dist/v2/features/settings/helpers/get-theme-colors.js +6 -7
- package/dist/v2/helpers/handle-hotkeys.d.ts.map +1 -1
- package/dist/v2/helpers/handle-hotkeys.js +2 -2
- package/dist/v2/hooks/use-global-hot-keys.d.ts +3 -1
- package/dist/v2/hooks/use-global-hot-keys.d.ts.map +1 -1
- package/dist/v2/hooks/use-global-hot-keys.js +8 -6
- package/dist/v2/workspace-events.d.ts.map +1 -1
- package/dist/v2/workspace-events.js +132 -115
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/package.json +17 -16
- 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,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
|
};
|
|
@@ -37,7 +37,7 @@ const A = { class: "text-c-3 flex h-full items-center justify-center rounded-lg
|
|
|
37
37
|
T("div", A, [
|
|
38
38
|
i(r(k), {
|
|
39
39
|
class: "hover:bg-b-2 hover:text-c-1 flex items-center gap-2",
|
|
40
|
-
size: "
|
|
40
|
+
size: "xs",
|
|
41
41
|
variant: "ghost",
|
|
42
42
|
onClick: l[0] || (l[0] = () => a())
|
|
43
43
|
}, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CookiesTable.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/global-cookies/components/CookiesTable.vue"],"names":[],"mappings":"AAuPA,OAAO,KAAK,EACV,cAAc,EACd,iBAAiB,EAClB,MAAM,gCAAgC,CAAA;AACvC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qEAAqE,CAAA;AAYxG,KAAK,WAAW,GAAG;IACf,OAAO,EAAE,aAAa,EAAE,CAAA;IACxB,QAAQ,EAAE,iBAAiB,CAAA;CAC5B,GAAG,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"CookiesTable.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/global-cookies/components/CookiesTable.vue"],"names":[],"mappings":"AAuPA,OAAO,KAAK,EACV,cAAc,EACd,iBAAiB,EAClB,MAAM,gCAAgC,CAAA;AACvC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qEAAqE,CAAA;AAYxG,KAAK,WAAW,GAAG;IACf,OAAO,EAAE,aAAa,EAAE,CAAA;IACxB,QAAQ,EAAE,iBAAiB,CAAA;CAC5B,GAAG,cAAc,CAAC;AA8erB,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./CookiesTable.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const e = /* @__PURE__ */
|
|
3
|
+
import t from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-ddfccc08"]]);
|
|
5
5
|
export {
|
|
6
6
|
e as default
|
|
7
7
|
};
|
|
@@ -2,11 +2,11 @@ import { defineComponent as y, computed as T, createBlock as p, openBlock as c,
|
|
|
2
2
|
import { ScalarButton as U } from "@scalar/components";
|
|
3
3
|
import { ScalarIconTrash as I } from "@scalar/icons";
|
|
4
4
|
import $ from "../../../components/data-table/DataTable.vue.js";
|
|
5
|
-
import
|
|
5
|
+
import k from "../../../components/data-table/DataTableRow.vue.js";
|
|
6
6
|
import m from "../../../components/data-table/DataTableHeader.vue.js";
|
|
7
7
|
import R from "../../../components/data-table/DataTableCheckbox.vue.js";
|
|
8
8
|
import f from "../../../components/data-table/DataTableCell.vue.js";
|
|
9
|
-
import
|
|
9
|
+
import b from "../../../components/code-input/CodeInput.vue.js";
|
|
10
10
|
const M = /* @__PURE__ */ y({
|
|
11
11
|
__name: "CookiesTable",
|
|
12
12
|
props: {
|
|
@@ -48,11 +48,11 @@ const M = /* @__PURE__ */ y({
|
|
|
48
48
|
collectionType: i.collectionType
|
|
49
49
|
});
|
|
50
50
|
return (d, l) => (c(), p(a($), {
|
|
51
|
-
class: "group/table data-table h-min flex-1 rounded border",
|
|
51
|
+
class: "group/table data-table h-min flex-1 rounded border border-t-0",
|
|
52
52
|
columns: v
|
|
53
53
|
}, {
|
|
54
54
|
default: n(() => [
|
|
55
|
-
o(a(
|
|
55
|
+
o(a(k), { class: "sr-only !block" }, {
|
|
56
56
|
default: n(() => [
|
|
57
57
|
o(a(m), null, {
|
|
58
58
|
default: n(() => [...l[0] || (l[0] = [
|
|
@@ -87,7 +87,7 @@ const M = /* @__PURE__ */ y({
|
|
|
87
87
|
]),
|
|
88
88
|
_: 1
|
|
89
89
|
}),
|
|
90
|
-
(c(!0), D(h, null, B(V.value, (e, t) => (c(), p(a(
|
|
90
|
+
(c(!0), D(h, null, B(V.value, (e, t) => (c(), p(a(k), {
|
|
91
91
|
key: t,
|
|
92
92
|
class: "group/row"
|
|
93
93
|
}, {
|
|
@@ -99,7 +99,7 @@ const M = /* @__PURE__ */ y({
|
|
|
99
99
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
|
100
100
|
o(a(f), null, {
|
|
101
101
|
default: n(() => [
|
|
102
|
-
o(a(
|
|
102
|
+
o(a(b), {
|
|
103
103
|
"aria-label": "Cookie Name",
|
|
104
104
|
disableCloseBrackets: "",
|
|
105
105
|
disableTabIndent: "",
|
|
@@ -120,7 +120,7 @@ const M = /* @__PURE__ */ y({
|
|
|
120
120
|
}, 1024),
|
|
121
121
|
o(a(f), null, {
|
|
122
122
|
default: n(() => [
|
|
123
|
-
o(a(
|
|
123
|
+
o(a(b), {
|
|
124
124
|
"aria-label": "Cookie Value",
|
|
125
125
|
disableTabIndent: "",
|
|
126
126
|
environment: void 0,
|
|
@@ -140,7 +140,7 @@ const M = /* @__PURE__ */ y({
|
|
|
140
140
|
}, 1024),
|
|
141
141
|
o(a(f), null, {
|
|
142
142
|
default: n(() => [
|
|
143
|
-
o(a(
|
|
143
|
+
o(a(b), {
|
|
144
144
|
"aria-label": "Cookie Domain",
|
|
145
145
|
disableCloseBrackets: "",
|
|
146
146
|
disableTabIndent: "",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Modal.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/modal/Modal.vue"],"names":[],"mappings":"AA4NA,OAAO,EAAE,KAAK,UAAU,EAA4B,MAAM,oBAAoB,CAAA;AAC9E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AACnE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAC7D,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,6BAA6B,CAAA;AAE/E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AACvE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAA;AACxE,OAAO,EAML,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACtB,MAAM,KAAK,CAAA;AAKZ,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,6CAA6C,CAAA;AAQxF,MAAM,MAAM,UAAU,GAAG;IACvB,4DAA4D;IAC5D,cAAc,EAAE,cAAc,CAAA;IAC9B,qDAAqD;IACrD,QAAQ,EAAE,WAAW,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAAA;IAC/C,iDAAiD;IACjD,IAAI,EAAE,WAAW,CAAC,MAAM,GAAG,SAAS,CAAC,CAAA;IACrC,4CAA4C;IAC5C,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,mDAAmD;IACnD,MAAM,EAAE,WAAW,CAAC,UAAU,GAAG,SAAS,CAAC,CAAA;IAC3C,yDAAyD;IACzD,WAAW,EAAE,WAAW,CAAC,MAAM,GAAG,SAAS,CAAC,CAAA;IAC5C,2CAA2C;IAC3C,UAAU,EAAE,UAAU,CAAA;IACtB,0DAA0D;IAC1D,YAAY,EAAE,qBAAqB,CAAA;IACnC,iDAAiD;IACjD,OAAO,EAAE,YAAY,EAAE,CAAA;IACvB,wDAAwD;IACxD,OAAO,EAAE,gBAAgB,CACvB,OAAO,CACL,IAAI,CACF,4BAA4B,EAC1B,gBAAgB,GAChB,eAAe,GACf,kBAAkB,GAClB,eAAe,GACf,SAAS,CACZ,CACF,CACF,CAAA;CACF,CAAA;AAED;;;;GAIG;wBACkB,OAAO,YAAY;AAAxC,wBAAyC;AAGzC,QAAA,MAAM,YAAY;;;
|
|
1
|
+
{"version":3,"file":"Modal.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/modal/Modal.vue"],"names":[],"mappings":"AA4NA,OAAO,EAAE,KAAK,UAAU,EAA4B,MAAM,oBAAoB,CAAA;AAC9E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AACnE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAC7D,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,6BAA6B,CAAA;AAE/E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AACvE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAA;AACxE,OAAO,EAML,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACtB,MAAM,KAAK,CAAA;AAKZ,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,6CAA6C,CAAA;AAQxF,MAAM,MAAM,UAAU,GAAG;IACvB,4DAA4D;IAC5D,cAAc,EAAE,cAAc,CAAA;IAC9B,qDAAqD;IACrD,QAAQ,EAAE,WAAW,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAAA;IAC/C,iDAAiD;IACjD,IAAI,EAAE,WAAW,CAAC,MAAM,GAAG,SAAS,CAAC,CAAA;IACrC,4CAA4C;IAC5C,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,mDAAmD;IACnD,MAAM,EAAE,WAAW,CAAC,UAAU,GAAG,SAAS,CAAC,CAAA;IAC3C,yDAAyD;IACzD,WAAW,EAAE,WAAW,CAAC,MAAM,GAAG,SAAS,CAAC,CAAA;IAC5C,2CAA2C;IAC3C,UAAU,EAAE,UAAU,CAAA;IACtB,0DAA0D;IAC1D,YAAY,EAAE,qBAAqB,CAAA;IACnC,iDAAiD;IACjD,OAAO,EAAE,YAAY,EAAE,CAAA;IACvB,wDAAwD;IACxD,OAAO,EAAE,gBAAgB,CACvB,OAAO,CACL,IAAI,CACF,4BAA4B,EAC1B,gBAAgB,GAChB,eAAe,GACf,kBAAkB,GAClB,eAAe,GACf,SAAS,CACZ,CACF,CACF,CAAA;CACF,CAAA;AAED;;;;GAIG;wBACkB,OAAO,YAAY;AAAxC,wBAAyC;AAGzC,QAAA,MAAM,YAAY;;;mPAgRd,CAAC"}
|
|
@@ -2,16 +2,16 @@ import { defineComponent as k, ref as x, watch as B, onBeforeUnmount as y, compu
|
|
|
2
2
|
import { ScalarToasts as D } from "@scalar/use-toasts";
|
|
3
3
|
import { mergeSecurity as I } from "../../blocks/scalar-auth-selector-block/helpers/merge-security.js";
|
|
4
4
|
import C from "../../components/modals/ModalClientContainer.vue.js";
|
|
5
|
-
import { initializeModalEvents as
|
|
6
|
-
import
|
|
7
|
-
import { getActiveEnvironment as
|
|
8
|
-
import { useGlobalHotKeys as
|
|
9
|
-
import { useScrollLock as
|
|
10
|
-
import
|
|
5
|
+
import { initializeModalEvents as A } from "./modal-events.js";
|
|
6
|
+
import L from "../operation/Operation.vue.js";
|
|
7
|
+
import { getActiveEnvironment as M } from "../../helpers/get-active-environment.js";
|
|
8
|
+
import { useGlobalHotKeys as T } from "../../hooks/use-global-hot-keys.js";
|
|
9
|
+
import { useScrollLock as $ } from "../../hooks/use-scroll-lock.js";
|
|
10
|
+
import z from "../../components/sidebar/SidebarToggle.vue.js";
|
|
11
11
|
import H from "../../components/sidebar/Sidebar.vue.js";
|
|
12
12
|
const j = {
|
|
13
13
|
key: 0,
|
|
14
|
-
class: "relative flex flex-1"
|
|
14
|
+
class: "relative flex h-full min-h-0 w-full flex-1"
|
|
15
15
|
}, q = {
|
|
16
16
|
key: 1,
|
|
17
17
|
class: "flex h-full w-full items-center justify-center"
|
|
@@ -35,16 +35,16 @@ const j = {
|
|
|
35
35
|
label: "default",
|
|
36
36
|
id: "default"
|
|
37
37
|
}, o = x(!1);
|
|
38
|
-
|
|
38
|
+
A({
|
|
39
39
|
eventBus: e.eventBus,
|
|
40
40
|
isSidebarOpen: o,
|
|
41
41
|
sidebarState: e.sidebarState,
|
|
42
42
|
modalState: e.modalState,
|
|
43
43
|
store: e.workspaceStore
|
|
44
|
-
}),
|
|
44
|
+
}), T(e.eventBus, "modal", () => !e.modalState.open);
|
|
45
45
|
const c = () => {
|
|
46
46
|
e.eventBus.emit("operation:cancel:request");
|
|
47
|
-
}, S =
|
|
47
|
+
}, S = $(() => typeof window < "u" ? window.document.body : null);
|
|
48
48
|
B(
|
|
49
49
|
() => e.modalState.open,
|
|
50
50
|
(a) => {
|
|
@@ -54,7 +54,7 @@ const j = {
|
|
|
54
54
|
const h = 288, n = u(
|
|
55
55
|
() => e.workspaceStore?.workspace?.["x-scalar-sidebar-width"] ?? h
|
|
56
56
|
), w = (a) => e.workspaceStore?.update("x-scalar-sidebar-width", a), r = u(
|
|
57
|
-
() =>
|
|
57
|
+
() => M(e.workspaceStore, e.document.value)
|
|
58
58
|
), b = u(
|
|
59
59
|
() => I(
|
|
60
60
|
e.document.value?.components?.securitySchemes,
|
|
@@ -70,10 +70,10 @@ const j = {
|
|
|
70
70
|
default: W(() => [
|
|
71
71
|
l(d(D)),
|
|
72
72
|
e.document.value && e.path?.value && e.method?.value ? (i(), v("main", j, [
|
|
73
|
-
l(d(
|
|
73
|
+
l(d(z), {
|
|
74
74
|
modelValue: o.value,
|
|
75
75
|
"onUpdate:modelValue": t[0] || (t[0] = (m) => o.value = m),
|
|
76
|
-
class: "absolute top-2 left-3 z-
|
|
76
|
+
class: "absolute top-2 left-3 z-2"
|
|
77
77
|
}, null, 8, ["modelValue"]),
|
|
78
78
|
E(l(d(H), {
|
|
79
79
|
sidebarWidth: n.value,
|
|
@@ -82,7 +82,7 @@ const j = {
|
|
|
82
82
|
w
|
|
83
83
|
],
|
|
84
84
|
activeWorkspace: s,
|
|
85
|
-
class: "
|
|
85
|
+
class: "h-full max-md:absolute! max-md:w-full!",
|
|
86
86
|
documents: [e.document.value],
|
|
87
87
|
eventBus: e.eventBus,
|
|
88
88
|
isDroppable: () => !1,
|
|
@@ -93,7 +93,7 @@ const j = {
|
|
|
93
93
|
}, null, 8, ["sidebarWidth", "documents", "eventBus", "sidebarState", "onSelectItem"]), [
|
|
94
94
|
[U, o.value]
|
|
95
95
|
]),
|
|
96
|
-
l(
|
|
96
|
+
l(L, {
|
|
97
97
|
activeWorkspace: s,
|
|
98
98
|
class: "flex-1",
|
|
99
99
|
document: e.document.value,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Operation.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/operation/Operation.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Operation.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/operation/Operation.vue"],"names":[],"mappings":"AAqNA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAA;AAElE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAA;AAM/D;;;;;;;GAOG;wBACkB,OAAO,YAAY;AAAxC,wBAAyC;AAGzC,QAAA,MAAM,YAAY;IAEd,6CAA6C;cACnC,UAAU,CAAC,SAAS,CAAC;;IAD/B,6CAA6C;cACnC,UAAU,CAAC,SAAS,CAAC;iGAqR/B,CAAC"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineComponent as f, computed as n, toValue as
|
|
1
|
+
import { defineComponent as f, computed as n, toValue as o, createBlock as k, createElementBlock as g, openBlock as i, unref as l, createElementVNode as x } from "vue";
|
|
2
2
|
import { getResolvedRef as m } from "@scalar/workspace-store/helpers/get-resolved-ref";
|
|
3
|
-
import { mapHiddenClientsConfig as
|
|
4
|
-
import { combineParams as
|
|
5
|
-
import { getSelectedServer as
|
|
6
|
-
import { getServers as
|
|
7
|
-
import
|
|
8
|
-
const
|
|
3
|
+
import { mapHiddenClientsConfig as w } from "../modal/helpers/map-hidden-clients-config.js";
|
|
4
|
+
import { combineParams as C } from "./helpers/combine-params.js";
|
|
5
|
+
import { getSelectedServer as B } from "./helpers/get-selected-server.js";
|
|
6
|
+
import { getServers as U } from "../../helpers/get-servers.js";
|
|
7
|
+
import b from "../../blocks/operation-block/OperationBlock.vue.js";
|
|
8
|
+
const N = {
|
|
9
9
|
key: 1,
|
|
10
10
|
class: "flex h-full w-full items-center justify-center"
|
|
11
|
-
},
|
|
12
|
-
...
|
|
11
|
+
}, E = {}, I = /* @__PURE__ */ f({
|
|
12
|
+
...E,
|
|
13
13
|
__name: "Operation",
|
|
14
14
|
props: {
|
|
15
15
|
documentSlug: {},
|
|
@@ -24,19 +24,20 @@ const E = {
|
|
|
24
24
|
workspaceStore: {},
|
|
25
25
|
activeWorkspace: {},
|
|
26
26
|
plugins: {},
|
|
27
|
+
customThemes: {},
|
|
27
28
|
options: {}
|
|
28
29
|
},
|
|
29
30
|
setup(e) {
|
|
30
|
-
const
|
|
31
|
+
const r = n(() => e.path ? m(e.document?.paths?.[e.path]) : null), c = n(() => {
|
|
31
32
|
if (!e.path || !e.method)
|
|
32
33
|
return null;
|
|
33
34
|
const t = m(e.document?.paths?.[e.path]?.[e.method]);
|
|
34
35
|
if (!t)
|
|
35
36
|
return null;
|
|
36
|
-
if (!
|
|
37
|
+
if (!r.value)
|
|
37
38
|
return t;
|
|
38
|
-
const a =
|
|
39
|
-
|
|
39
|
+
const a = C(
|
|
40
|
+
r.value.parameters,
|
|
40
41
|
t.parameters
|
|
41
42
|
);
|
|
42
43
|
return { ...t, parameters: a };
|
|
@@ -49,19 +50,15 @@ const E = {
|
|
|
49
50
|
...t,
|
|
50
51
|
location: "document"
|
|
51
52
|
}))
|
|
52
|
-
]),
|
|
53
|
-
const t =
|
|
54
|
-
return
|
|
55
|
-
baseServerUrl:
|
|
53
|
+
]), u = n(() => {
|
|
54
|
+
const t = o(e.options)?.servers ?? c.value?.servers ?? r.value?.servers ?? e.document?.servers;
|
|
55
|
+
return U(t, {
|
|
56
|
+
baseServerUrl: o(e.options)?.baseServerURL,
|
|
56
57
|
documentUrl: e.document?.["x-scalar-original-source-url"]
|
|
57
58
|
});
|
|
58
59
|
}), d = n(
|
|
59
|
-
() =>
|
|
60
|
-
)
|
|
61
|
-
k(() => {
|
|
62
|
-
typeof e.document?.["x-scalar-selected-server"] > "u" && o.value?.[0]?.url && e.eventBus.emit("server:update:selected", { url: o.value[0].url });
|
|
63
|
-
});
|
|
64
|
-
const v = n(() => e.document?.["x-scalar-set-operation-security"] ? {
|
|
60
|
+
() => B(e.document, u.value)
|
|
61
|
+
), v = n(() => e.document?.["x-scalar-set-operation-security"] ? {
|
|
65
62
|
type: "operation",
|
|
66
63
|
path: e.path ?? "",
|
|
67
64
|
method: e.method ?? "get"
|
|
@@ -75,9 +72,9 @@ const E = {
|
|
|
75
72
|
})
|
|
76
73
|
)
|
|
77
74
|
)), S = n(
|
|
78
|
-
() =>
|
|
79
|
-
), y = "2.
|
|
80
|
-
return (t, a) => e.path && e.method && e.exampleName &&
|
|
75
|
+
() => w(o(e.options)?.hiddenClients)
|
|
76
|
+
), y = "2.29.1";
|
|
77
|
+
return (t, a) => e.path && e.method && e.exampleName && c.value ? (i(), k(l(b), {
|
|
81
78
|
key: 0,
|
|
82
79
|
activeEnvironment: e.workspaceStore.workspace["x-scalar-active-environment"],
|
|
83
80
|
appVersion: l(y),
|
|
@@ -93,12 +90,12 @@ const E = {
|
|
|
93
90
|
eventBus: e.eventBus,
|
|
94
91
|
exampleKey: e.exampleName,
|
|
95
92
|
globalCookies: s.value,
|
|
96
|
-
hideClientButton:
|
|
93
|
+
hideClientButton: o(e.options)?.hideClientButton ?? !1,
|
|
97
94
|
history: e.workspaceStore.history.getHistory(e.documentSlug, e.path, e.method),
|
|
98
95
|
httpClients: S.value,
|
|
99
96
|
layout: e.layout,
|
|
100
97
|
method: e.method,
|
|
101
|
-
operation:
|
|
98
|
+
operation: c.value,
|
|
102
99
|
operationSelectedSecurity: e.workspaceStore.auth.getAuthSelectedSchemas({
|
|
103
100
|
type: "operation",
|
|
104
101
|
documentName: e.documentSlug,
|
|
@@ -111,14 +108,14 @@ const E = {
|
|
|
111
108
|
securitySchemes: e.securitySchemes,
|
|
112
109
|
selectedClient: e.workspaceStore.workspace["x-scalar-default-client"],
|
|
113
110
|
server: d.value,
|
|
114
|
-
servers:
|
|
111
|
+
servers: u.value,
|
|
115
112
|
setOperationSecurity: e.document?.["x-scalar-set-operation-security"] ?? !1,
|
|
116
|
-
"onUpdate:servers": a[0] || (a[0] = (
|
|
117
|
-
}, null, 8, ["activeEnvironment", "appVersion", "authMeta", "documentSecurity", "documentSelectedSecurity", "documentUrl", "environment", "environments", "eventBus", "exampleKey", "globalCookies", "hideClientButton", "history", "httpClients", "layout", "method", "operation", "operationSelectedSecurity", "path", "plugins", "proxyUrl", "securitySchemes", "selectedClient", "server", "servers", "setOperationSecurity"])) : (i(), g("div",
|
|
118
|
-
|
|
113
|
+
"onUpdate:servers": a[0] || (a[0] = (O) => e.eventBus.emit("ui:navigate", { page: "document", path: "servers" }))
|
|
114
|
+
}, null, 8, ["activeEnvironment", "appVersion", "authMeta", "documentSecurity", "documentSelectedSecurity", "documentUrl", "environment", "environments", "eventBus", "exampleKey", "globalCookies", "hideClientButton", "history", "httpClients", "layout", "method", "operation", "operationSelectedSecurity", "path", "plugins", "proxyUrl", "securitySchemes", "selectedClient", "server", "servers", "setOperationSecurity"])) : (i(), g("div", N, [...a[1] || (a[1] = [
|
|
115
|
+
x("span", { class: "text-c-3" }, "Select an operation to view details", -1)
|
|
119
116
|
])]));
|
|
120
117
|
}
|
|
121
118
|
});
|
|
122
119
|
export {
|
|
123
|
-
|
|
120
|
+
I as default
|
|
124
121
|
};
|
|
@@ -1,20 +1,23 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type Theme } from '@scalar/themes';
|
|
2
|
+
type ColorMode = 'system' | 'light' | 'dark';
|
|
2
3
|
type __VLS_Props = {
|
|
3
4
|
/** Currently active proxy URL, when set to null means no proxy */
|
|
4
5
|
activeProxyUrl?: string | null;
|
|
6
|
+
/** Custom themes available to the team */
|
|
7
|
+
customThemes?: Theme[];
|
|
5
8
|
/** Currently active theme ID */
|
|
6
|
-
|
|
9
|
+
activeThemeSlug?: string;
|
|
7
10
|
/** Currently active color mode */
|
|
8
|
-
colorMode:
|
|
11
|
+
colorMode: ColorMode;
|
|
9
12
|
};
|
|
10
13
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
11
|
-
"update:colorMode": (value:
|
|
14
|
+
"update:colorMode": (value: ColorMode) => any;
|
|
12
15
|
"update:proxyUrl": (value: string | null) => any;
|
|
13
|
-
"update:
|
|
16
|
+
"update:themeSlug": (value: string | undefined) => any;
|
|
14
17
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
15
|
-
"onUpdate:colorMode"?: ((value:
|
|
18
|
+
"onUpdate:colorMode"?: ((value: ColorMode) => any) | undefined;
|
|
16
19
|
"onUpdate:proxyUrl"?: ((value: string | null) => any) | undefined;
|
|
17
|
-
"onUpdate:
|
|
20
|
+
"onUpdate:themeSlug"?: ((value: string | undefined) => any) | undefined;
|
|
18
21
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
22
|
declare const _default: typeof __VLS_export;
|
|
20
23
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CollectionSettings.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/settings/CollectionSettings.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CollectionSettings.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/settings/CollectionSettings.vue"],"names":[],"mappings":"AAkTA,OAAO,EAIL,KAAK,KAAK,EAEX,MAAM,gBAAgB,CAAA;AASvB,KAAK,SAAS,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAA;AAE5C,KAAK,WAAW,GAAG;IACjB,kEAAkE;IAClE,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC9B,0CAA0C;IAC1C,YAAY,CAAC,EAAE,KAAK,EAAE,CAAA;IACtB,gCAAgC;IAChC,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,kCAAkC;IAClC,SAAS,EAAE,SAAS,CAAA;CACrB,CAAC;AAgnBF,QAAA,MAAM,YAAY;;;;;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|