@scalar/api-client 2.27.1 → 2.29.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +146 -0
- package/dist/components/ViewLayout/ViewLayoutSection.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutSection.vue.js +1 -1
- package/dist/libs/local-storage.js +3 -3
- package/dist/style.css +1 -1
- package/dist/v2/blocks/request-block/RequestBlock.vue.js +1 -1
- package/dist/v2/blocks/request-block/RequestBlock.vue2.js +21 -21
- package/dist/v2/blocks/request-block/components/RequestBody.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestBody.vue.js +2 -2
- package/dist/v2/blocks/request-block/components/RequestBody.vue2.js +67 -75
- package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts +2 -0
- package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts +2 -0
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/helpers/get-default-headers.d.ts +1 -1
- package/dist/v2/blocks/request-block/helpers/get-default-headers.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/helpers/get-default-headers.js +20 -19
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts +2 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js +42 -40
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +5 -5
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.d.ts +3 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.js +35 -35
- package/dist/v2/components/code-input/CodeInput.vue.d.ts.map +1 -1
- package/dist/v2/components/code-input/CodeInput.vue.js +2 -2
- package/dist/v2/components/sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/v2/components/sidebar/Sidebar.vue.js +1 -1
- package/dist/v2/features/app/App.vue.d.ts.map +1 -1
- package/dist/v2/features/app/App.vue.js +70 -70
- package/dist/v2/features/app/app-events.d.ts +2 -1
- package/dist/v2/features/app/app-events.d.ts.map +1 -1
- package/dist/v2/features/app/app-events.js +89 -64
- package/dist/v2/features/app/app-state.d.ts.map +1 -1
- package/dist/v2/features/app/app-state.js +172 -151
- package/dist/v2/features/app/components/AppSidebar.vue.d.ts.map +1 -1
- package/dist/v2/features/app/components/AppSidebar.vue.js +1 -1
- package/dist/v2/features/app/components/AppSidebar.vue2.js +48 -47
- package/dist/v2/features/app/components/DesktopTabs.vue.d.ts.map +1 -1
- package/dist/v2/features/app/components/DesktopTabs.vue.js +4 -4
- package/dist/v2/features/app/components/DownloadAppButton.vue.d.ts.map +1 -1
- package/dist/v2/features/app/components/DownloadAppButton.vue.js +1 -1
- package/dist/v2/features/app/components/DownloadAppButton.vue2.js +9 -9
- package/dist/v2/features/app/components/SidebarItemMenu.vue.d.ts.map +1 -1
- package/dist/v2/features/app/components/SidebarItemMenu.vue.js +71 -43
- package/dist/v2/features/app/helpers/routes.js +11 -11
- package/dist/v2/features/collection/WorkspaceCollection.vue.d.ts +1 -6
- package/dist/v2/features/collection/WorkspaceCollection.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/WorkspaceCollection.vue.js +38 -20
- package/dist/v2/features/collection/components/LabelInput.vue.d.ts +3 -0
- package/dist/v2/features/collection/components/LabelInput.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/LabelInput.vue.js +2 -2
- package/dist/v2/features/collection/components/LabelInput.vue2.js +20 -16
- package/dist/v2/features/command-palette/components/CommandPaletteExample.vue.d.ts +7 -2
- package/dist/v2/features/command-palette/components/CommandPaletteExample.vue.d.ts.map +1 -1
- package/dist/v2/features/command-palette/components/CommandPaletteExample.vue.js +70 -71
- package/dist/v2/features/command-palette/components/{CommandPaletteDocument.vue.d.ts → CommandPaletteOpenApiDocument.vue.d.ts} +3 -3
- package/dist/v2/features/command-palette/components/CommandPaletteOpenApiDocument.vue.d.ts.map +1 -0
- package/dist/v2/features/command-palette/components/{CommandPaletteDocument.vue.js → CommandPaletteOpenApiDocument.vue.js} +15 -15
- package/dist/v2/features/command-palette/components/CommandPaletteOpenApiDocument.vue2.js +4 -0
- package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue.d.ts +2 -2
- package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue.d.ts.map +1 -1
- package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue.js +10 -10
- package/dist/v2/features/command-palette/components/CommandPaletteTag.vue.d.ts +27 -5
- package/dist/v2/features/command-palette/components/CommandPaletteTag.vue.d.ts.map +1 -1
- package/dist/v2/features/command-palette/components/CommandPaletteTag.vue.js +80 -53
- package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts +34 -9
- package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts.map +1 -1
- package/dist/v2/features/command-palette/hooks/use-command-palette-state.js +50 -44
- package/dist/v2/features/operation/Operation.vue.js +1 -1
- package/dist/v2/workspace-events.d.ts.map +1 -1
- package/dist/v2/workspace-events.js +123 -113
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/package.json +17 -17
- package/dist/v2/features/command-palette/components/CommandPaletteDocument.vue.d.ts.map +0 -1
- package/dist/v2/features/command-palette/components/CommandPaletteDocument.vue2.js +0 -4
|
@@ -1,227 +1,237 @@
|
|
|
1
1
|
import { generateClientMutators as i } from "@scalar/workspace-store/mutators";
|
|
2
2
|
import { computed as p } from "vue";
|
|
3
|
-
const r = (
|
|
4
|
-
const n = await a
|
|
5
|
-
return await c(n), await a
|
|
3
|
+
const r = (a, c, t) => async (o) => {
|
|
4
|
+
const n = await t[a]?.onBeforeExecute?.(o) ?? o;
|
|
5
|
+
return await c(n), await t[a]?.onAfterExecute?.(n), n;
|
|
6
6
|
};
|
|
7
7
|
function l({
|
|
8
|
-
eventBus:
|
|
8
|
+
eventBus: a,
|
|
9
9
|
store: c,
|
|
10
|
-
hooks:
|
|
10
|
+
hooks: t
|
|
11
11
|
}) {
|
|
12
12
|
const o = p(() => i(c.value)), n = ({ collectionType: e }) => e === "document" ? o.value.active() : o.value.workspace();
|
|
13
|
-
|
|
13
|
+
a.on(
|
|
14
14
|
"workspace:update:active-proxy",
|
|
15
|
-
(e) => r("workspace:update:active-proxy", o.value.workspace().workspace.updateActiveProxy,
|
|
16
|
-
),
|
|
15
|
+
(e) => r("workspace:update:active-proxy", o.value.workspace().workspace.updateActiveProxy, t)(e)
|
|
16
|
+
), a.on(
|
|
17
17
|
"workspace:update:color-mode",
|
|
18
|
-
(e) => r("workspace:update:color-mode", o.value.workspace().workspace.updateColorMode,
|
|
19
|
-
),
|
|
18
|
+
(e) => r("workspace:update:color-mode", o.value.workspace().workspace.updateColorMode, t)(e)
|
|
19
|
+
), a.on(
|
|
20
20
|
"workspace:update:theme",
|
|
21
|
-
(e) => r("workspace:update:theme", o.value.workspace().workspace.updateTheme,
|
|
22
|
-
),
|
|
21
|
+
(e) => r("workspace:update:theme", o.value.workspace().workspace.updateTheme, t)(e)
|
|
22
|
+
), a.on(
|
|
23
23
|
"workspace:update:selected-client",
|
|
24
24
|
(e) => r(
|
|
25
25
|
"workspace:update:selected-client",
|
|
26
26
|
o.value.workspace().workspace.updateSelectedClient,
|
|
27
|
-
|
|
27
|
+
t
|
|
28
28
|
)(e)
|
|
29
|
-
),
|
|
29
|
+
), a.on(
|
|
30
30
|
"workspace:update:active-environment",
|
|
31
31
|
(e) => r(
|
|
32
32
|
"workspace:update:active-environment",
|
|
33
33
|
o.value.workspace().workspace.updateActiveEnvironment,
|
|
34
|
-
|
|
34
|
+
t
|
|
35
35
|
)(e)
|
|
36
|
-
),
|
|
36
|
+
), a.on(
|
|
37
37
|
"document:update:icon",
|
|
38
|
-
(e) => r("document:update:icon", o.value.active().document.updateDocumentIcon,
|
|
39
|
-
),
|
|
38
|
+
(e) => r("document:update:icon", o.value.active().document.updateDocumentIcon, t)(e)
|
|
39
|
+
), a.on(
|
|
40
40
|
"document:update:info",
|
|
41
|
-
(e) => r("document:update:info", o.value.active().document.updateDocumentInfo,
|
|
42
|
-
),
|
|
41
|
+
(e) => r("document:update:info", o.value.active().document.updateDocumentInfo, t)(e)
|
|
42
|
+
), a.on(
|
|
43
43
|
"document:toggle:security",
|
|
44
|
-
(e) => r("document:toggle:security", o.value.active().document.toggleSecurity,
|
|
45
|
-
),
|
|
44
|
+
(e) => r("document:toggle:security", o.value.active().document.toggleSecurity, t)(e)
|
|
45
|
+
), a.on(
|
|
46
46
|
"document:update:watch-mode",
|
|
47
|
-
(e) => r("document:update:watch-mode", o.value.active().document.updateWatchMode,
|
|
48
|
-
),
|
|
47
|
+
(e) => r("document:update:watch-mode", o.value.active().document.updateWatchMode, t)(e)
|
|
48
|
+
), a.on(
|
|
49
49
|
"document:create:empty-document",
|
|
50
|
-
(e) => r("document:create:empty-document", o.value.active().document.createEmptyDocument,
|
|
51
|
-
),
|
|
50
|
+
(e) => r("document:create:empty-document", o.value.active().document.createEmptyDocument, t)(e)
|
|
51
|
+
), a.on(
|
|
52
52
|
"document:delete:document",
|
|
53
|
-
(e) => r("document:delete:document", o.value.active().document.deleteDocument,
|
|
54
|
-
),
|
|
53
|
+
(e) => r("document:delete:document", o.value.active().document.deleteDocument, t)(e)
|
|
54
|
+
), a.on(
|
|
55
55
|
"environment:upsert:environment",
|
|
56
|
-
(e) => r("environment:upsert:environment", n(e).environment.upsertEnvironment,
|
|
57
|
-
),
|
|
56
|
+
(e) => r("environment:upsert:environment", n(e).environment.upsertEnvironment, t)(e)
|
|
57
|
+
), a.on(
|
|
58
58
|
"environment:delete:environment",
|
|
59
|
-
(e) => r("environment:delete:environment", n(e).environment.deleteEnvironment,
|
|
60
|
-
),
|
|
59
|
+
(e) => r("environment:delete:environment", n(e).environment.deleteEnvironment, t)(e)
|
|
60
|
+
), a.on(
|
|
61
61
|
"environment:upsert:environment-variable",
|
|
62
62
|
(e) => r(
|
|
63
63
|
"environment:upsert:environment-variable",
|
|
64
64
|
n(e).environment.upsertEnvironmentVariable,
|
|
65
|
-
|
|
65
|
+
t
|
|
66
66
|
)(e)
|
|
67
|
-
),
|
|
67
|
+
), a.on(
|
|
68
68
|
"environment:delete:environment-variable",
|
|
69
69
|
(e) => r(
|
|
70
70
|
"environment:delete:environment-variable",
|
|
71
71
|
n(e).environment.deleteEnvironmentVariable,
|
|
72
|
-
|
|
72
|
+
t
|
|
73
73
|
)(e)
|
|
74
|
-
),
|
|
75
|
-
await r("cookie:upsert:cookie", n(e).cookie.upsertCookie,
|
|
76
|
-
}),
|
|
77
|
-
await r("cookie:delete:cookie", n(e).cookie.deleteCookie,
|
|
78
|
-
}),
|
|
74
|
+
), a.on("cookie:upsert:cookie", async (e) => {
|
|
75
|
+
await r("cookie:upsert:cookie", n(e).cookie.upsertCookie, t)(e);
|
|
76
|
+
}), a.on("cookie:delete:cookie", async (e) => {
|
|
77
|
+
await r("cookie:delete:cookie", n(e).cookie.deleteCookie, t)(e);
|
|
78
|
+
}), a.on(
|
|
79
79
|
"auth:delete:security-scheme",
|
|
80
|
-
(e) => r("auth:delete:security-scheme", o.value.active().auth.deleteSecurityScheme,
|
|
81
|
-
),
|
|
80
|
+
(e) => r("auth:delete:security-scheme", o.value.active().auth.deleteSecurityScheme, t)(e)
|
|
81
|
+
), a.on(
|
|
82
82
|
"auth:update:active-index",
|
|
83
|
-
(e) => r("auth:update:active-index", o.value.active().auth.updateSelectedAuthTab,
|
|
84
|
-
),
|
|
83
|
+
(e) => r("auth:update:active-index", o.value.active().auth.updateSelectedAuthTab, t)(e)
|
|
84
|
+
), a.on(
|
|
85
85
|
"auth:update:security-scheme",
|
|
86
|
-
(e) => r("auth:update:security-scheme", o.value.active().auth.updateSecurityScheme,
|
|
87
|
-
),
|
|
86
|
+
(e) => r("auth:update:security-scheme", o.value.active().auth.updateSecurityScheme, t)(e)
|
|
87
|
+
), a.on(
|
|
88
88
|
"auth:update:selected-scopes",
|
|
89
|
-
(e) => r("auth:update:selected-scopes", o.value.active().auth.updateSelectedScopes,
|
|
90
|
-
),
|
|
89
|
+
(e) => r("auth:update:selected-scopes", o.value.active().auth.updateSelectedScopes, t)(e)
|
|
90
|
+
), a.on(
|
|
91
91
|
"auth:update:selected-security-schemes",
|
|
92
92
|
(e) => r(
|
|
93
93
|
"auth:update:selected-security-schemes",
|
|
94
94
|
o.value.active().auth.updateSelectedSecuritySchemes,
|
|
95
|
-
|
|
95
|
+
t
|
|
96
96
|
)(e)
|
|
97
|
-
),
|
|
97
|
+
), a.on(
|
|
98
98
|
"auth:update:security-scheme-secrets",
|
|
99
99
|
(e) => r(
|
|
100
100
|
"auth:update:security-scheme-secrets",
|
|
101
101
|
o.value.active().auth.updateSecuritySchemeSecrets,
|
|
102
|
-
|
|
102
|
+
t
|
|
103
103
|
)(e)
|
|
104
|
-
),
|
|
104
|
+
), a.on(
|
|
105
105
|
"auth:clear:security-scheme-secrets",
|
|
106
106
|
(e) => r(
|
|
107
107
|
"auth:clear:security-scheme-secrets",
|
|
108
108
|
o.value.active().auth.clearSecuritySchemeSecrets,
|
|
109
|
-
|
|
109
|
+
t
|
|
110
110
|
)(e)
|
|
111
|
-
),
|
|
111
|
+
), a.on(
|
|
112
112
|
"server:add:server",
|
|
113
|
-
(e) => r("server:add:server", o.value.active().server.addServer,
|
|
114
|
-
),
|
|
113
|
+
(e) => r("server:add:server", o.value.active().server.addServer, t)(e)
|
|
114
|
+
), a.on(
|
|
115
115
|
"server:update:server",
|
|
116
|
-
(e) => r("server:update:server", o.value.active().server.updateServer,
|
|
117
|
-
),
|
|
116
|
+
(e) => r("server:update:server", o.value.active().server.updateServer, t)(e)
|
|
117
|
+
), a.on(
|
|
118
118
|
"server:delete:server",
|
|
119
|
-
(e) => r("server:delete:server", o.value.active().server.deleteServer,
|
|
120
|
-
),
|
|
119
|
+
(e) => r("server:delete:server", o.value.active().server.deleteServer, t)(e)
|
|
120
|
+
), a.on(
|
|
121
121
|
"server:update:variables",
|
|
122
|
-
(e) => r("server:update:variables", o.value.active().server.updateServerVariables,
|
|
123
|
-
),
|
|
122
|
+
(e) => r("server:update:variables", o.value.active().server.updateServerVariables, t)(e)
|
|
123
|
+
), a.on(
|
|
124
124
|
"server:update:selected",
|
|
125
|
-
(e) => r("server:update:selected", o.value.active().server.updateSelectedServer,
|
|
126
|
-
),
|
|
125
|
+
(e) => r("server:update:selected", o.value.active().server.updateSelectedServer, t)(e)
|
|
126
|
+
), a.on(
|
|
127
127
|
"operation:create:operation",
|
|
128
|
-
(e) => r("operation:create:operation", o.value.active().operation.createOperation,
|
|
129
|
-
),
|
|
128
|
+
(e) => r("operation:create:operation", o.value.active().operation.createOperation, t)(e)
|
|
129
|
+
), a.on(
|
|
130
130
|
"operation:update:pathMethod",
|
|
131
131
|
(e) => r(
|
|
132
132
|
"operation:update:pathMethod",
|
|
133
133
|
o.value.active().operation.updateOperationPathMethod,
|
|
134
|
-
|
|
134
|
+
t
|
|
135
135
|
)(e)
|
|
136
|
-
),
|
|
136
|
+
), a.on(
|
|
137
137
|
"operation:update:summary",
|
|
138
|
-
(e) => r("operation:update:summary", o.value.active().operation.updateOperationSummary,
|
|
139
|
-
),
|
|
138
|
+
(e) => r("operation:update:summary", o.value.active().operation.updateOperationSummary, t)(e)
|
|
139
|
+
), a.on(
|
|
140
140
|
"operation:delete:operation",
|
|
141
|
-
(e) => r("operation:delete:operation", o.value.active().operation.deleteOperation,
|
|
142
|
-
),
|
|
141
|
+
(e) => r("operation:delete:operation", o.value.active().operation.deleteOperation, t)(e)
|
|
142
|
+
), a.on(
|
|
143
|
+
"operation:create:draft-example",
|
|
144
|
+
(e) => r(
|
|
145
|
+
"operation:create:draft-example",
|
|
146
|
+
o.value.active().operation.createOperationDraftExample,
|
|
147
|
+
t
|
|
148
|
+
)(e)
|
|
149
|
+
), a.on(
|
|
143
150
|
"operation:delete:example",
|
|
144
|
-
(e) => r("operation:delete:example", o.value.active().operation.deleteOperationExample,
|
|
145
|
-
),
|
|
151
|
+
(e) => r("operation:delete:example", o.value.active().operation.deleteOperationExample, t)(e)
|
|
152
|
+
), a.on(
|
|
146
153
|
"operation:upsert:parameter",
|
|
147
|
-
(e) => r("operation:upsert:parameter", o.value.active().operation.upsertOperationParameter,
|
|
148
|
-
),
|
|
154
|
+
(e) => r("operation:upsert:parameter", o.value.active().operation.upsertOperationParameter, t)(e)
|
|
155
|
+
), a.on(
|
|
149
156
|
"operation:update:extra-parameters",
|
|
150
157
|
(e) => r(
|
|
151
158
|
"operation:update:extra-parameters",
|
|
152
159
|
o.value.active().operation.updateOperationExtraParameters,
|
|
153
|
-
|
|
160
|
+
t
|
|
154
161
|
)(e)
|
|
155
|
-
),
|
|
162
|
+
), a.on(
|
|
156
163
|
"operation:delete:parameter",
|
|
157
|
-
(e) => r("operation:delete:parameter", o.value.active().operation.deleteOperationParameter,
|
|
158
|
-
),
|
|
164
|
+
(e) => r("operation:delete:parameter", o.value.active().operation.deleteOperationParameter, t)(e)
|
|
165
|
+
), a.on(
|
|
159
166
|
"operation:delete-all:parameters",
|
|
160
167
|
(e) => r(
|
|
161
168
|
"operation:delete-all:parameters",
|
|
162
169
|
o.value.active().operation.deleteAllOperationParameters,
|
|
163
|
-
|
|
170
|
+
t
|
|
164
171
|
)(e)
|
|
165
|
-
),
|
|
172
|
+
), a.on(
|
|
166
173
|
"operation:update:extension",
|
|
167
|
-
(e) => r("operation:update:extension", o.value.active().operation.updateOperationExtension,
|
|
168
|
-
),
|
|
174
|
+
(e) => r("operation:update:extension", o.value.active().operation.updateOperationExtension, t)(e)
|
|
175
|
+
), a.on(
|
|
169
176
|
"operation:update:requestBody:contentType",
|
|
170
177
|
(e) => r(
|
|
171
178
|
"operation:update:requestBody:contentType",
|
|
172
179
|
o.value.active().operation.updateOperationRequestBodyContentType,
|
|
173
|
-
|
|
180
|
+
t
|
|
174
181
|
)(e)
|
|
175
|
-
),
|
|
182
|
+
), a.on(
|
|
176
183
|
"operation:update:requestBody:value",
|
|
177
184
|
(e) => r(
|
|
178
185
|
"operation:update:requestBody:value",
|
|
179
186
|
o.value.active().operation.updateOperationRequestBodyExample,
|
|
180
|
-
|
|
187
|
+
t
|
|
181
188
|
)(e)
|
|
182
|
-
),
|
|
189
|
+
), a.on(
|
|
183
190
|
"operation:update:requestBody:formValue",
|
|
184
191
|
(e) => r(
|
|
185
192
|
"operation:update:requestBody:formValue",
|
|
186
193
|
o.value.active().operation.updateOperationRequestBodyFormValue,
|
|
187
|
-
|
|
194
|
+
t
|
|
188
195
|
)(e)
|
|
189
|
-
),
|
|
196
|
+
), a.on(
|
|
190
197
|
"operation:reload:history",
|
|
191
|
-
(e) => r("operation:reload:history", o.value.active().operation.reloadOperationHistory,
|
|
192
|
-
),
|
|
198
|
+
(e) => r("operation:reload:history", o.value.active().operation.reloadOperationHistory, t)(e)
|
|
199
|
+
), a.on(
|
|
193
200
|
"tag:create:tag",
|
|
194
|
-
(e) => r("tag:create:tag", o.value.active().tag.createTag,
|
|
195
|
-
),
|
|
201
|
+
(e) => r("tag:create:tag", o.value.active().tag.createTag, t)(e)
|
|
202
|
+
), a.on(
|
|
203
|
+
"tag:edit:tag",
|
|
204
|
+
(e) => r("tag:edit:tag", o.value.active().tag.editTag, t)(e)
|
|
205
|
+
), a.on(
|
|
196
206
|
"tag:delete:tag",
|
|
197
|
-
(e) => r("tag:delete:tag", o.value.active().tag.deleteTag,
|
|
198
|
-
),
|
|
207
|
+
(e) => r("tag:delete:tag", o.value.active().tag.deleteTag, t)(e)
|
|
208
|
+
), a.on(
|
|
199
209
|
"tabs:add:tab",
|
|
200
|
-
(e) => r("tabs:add:tab", o.value.workspace().tabs.addTab,
|
|
201
|
-
),
|
|
210
|
+
(e) => r("tabs:add:tab", o.value.workspace().tabs.addTab, t)(e)
|
|
211
|
+
), a.on(
|
|
202
212
|
"tabs:close:tab",
|
|
203
|
-
(e) => r("tabs:close:tab", o.value.workspace().tabs.closeTab,
|
|
204
|
-
),
|
|
213
|
+
(e) => r("tabs:close:tab", o.value.workspace().tabs.closeTab, t)(e)
|
|
214
|
+
), a.on(
|
|
205
215
|
"tabs:close:other-tabs",
|
|
206
|
-
(e) => r("tabs:close:other-tabs", o.value.workspace().tabs.closeOtherTabs,
|
|
207
|
-
),
|
|
216
|
+
(e) => r("tabs:close:other-tabs", o.value.workspace().tabs.closeOtherTabs, t)(e)
|
|
217
|
+
), a.on(
|
|
208
218
|
"tabs:focus:tab",
|
|
209
|
-
(e) => r("tabs:focus:tab", o.value.workspace().tabs.focusTab,
|
|
210
|
-
),
|
|
219
|
+
(e) => r("tabs:focus:tab", o.value.workspace().tabs.focusTab, t)(e)
|
|
220
|
+
), a.on(
|
|
211
221
|
"tabs:focus:tab-last",
|
|
212
|
-
(e) => r("tabs:focus:tab-last", o.value.workspace().tabs.focusLastTab,
|
|
213
|
-
),
|
|
222
|
+
(e) => r("tabs:focus:tab-last", o.value.workspace().tabs.focusLastTab, t)(e)
|
|
223
|
+
), a.on(
|
|
214
224
|
"tabs:navigate:previous",
|
|
215
|
-
(e) => r("tabs:navigate:previous", o.value.workspace().tabs.navigatePreviousTab,
|
|
216
|
-
),
|
|
225
|
+
(e) => r("tabs:navigate:previous", o.value.workspace().tabs.navigatePreviousTab, t)(e)
|
|
226
|
+
), a.on(
|
|
217
227
|
"tabs:navigate:next",
|
|
218
|
-
(e) => r("tabs:navigate:next", o.value.workspace().tabs.navigateNextTab,
|
|
219
|
-
),
|
|
228
|
+
(e) => r("tabs:navigate:next", o.value.workspace().tabs.navigateNextTab, t)(e)
|
|
229
|
+
), a.on(
|
|
220
230
|
"tabs:update:tabs",
|
|
221
|
-
(e) => r("tabs:update:tabs", o.value.workspace().tabs.updateTabs,
|
|
222
|
-
),
|
|
231
|
+
(e) => r("tabs:update:tabs", o.value.workspace().tabs.updateTabs, t)(e)
|
|
232
|
+
), a.on(
|
|
223
233
|
"hooks:on:request:complete",
|
|
224
|
-
(e) => r("hooks:on:request:complete", o.value.active().operation.addResponseToHistory,
|
|
234
|
+
(e) => r("hooks:on:request:complete", o.value.active().operation.addResponseToHistory, t)(e)
|
|
225
235
|
);
|
|
226
236
|
}
|
|
227
237
|
export {
|
|
@@ -33,7 +33,7 @@ const W = { class: "flex-center relative flex flex-1 flex-col gap-6 p-2 capitali
|
|
|
33
33
|
}));
|
|
34
34
|
}, f = (u) => {
|
|
35
35
|
u?.createNew && g.name === "request" && p();
|
|
36
|
-
}, v = "2.
|
|
36
|
+
}, v = "2.29.1";
|
|
37
37
|
return q(() => a.hotKeys.on(f)), R(() => a.hotKeys.off(f)), (u, e) => (l(), n("div", W, [
|
|
38
38
|
s("div", {
|
|
39
39
|
class: y(["flex h-[calc(100%_-_50px)] flex-col items-center justify-center", {
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"rest",
|
|
19
19
|
"testing"
|
|
20
20
|
],
|
|
21
|
-
"version": "2.
|
|
21
|
+
"version": "2.29.1",
|
|
22
22
|
"engines": {
|
|
23
23
|
"node": ">=20"
|
|
24
24
|
},
|
|
@@ -328,25 +328,25 @@
|
|
|
328
328
|
"yaml": "^2.8.0",
|
|
329
329
|
"zod": "^4.3.5",
|
|
330
330
|
"@scalar/analytics-client": "1.0.1",
|
|
331
|
-
"@scalar/components": "0.19.4",
|
|
332
|
-
"@scalar/helpers": "0.2.12",
|
|
333
|
-
"@scalar/icons": "0.5.3",
|
|
334
|
-
"@scalar/import": "0.4.49",
|
|
335
331
|
"@scalar/draggable": "0.3.0",
|
|
336
|
-
"@scalar/
|
|
337
|
-
"@scalar/
|
|
338
|
-
"@scalar/
|
|
339
|
-
"@scalar/
|
|
332
|
+
"@scalar/components": "0.19.7",
|
|
333
|
+
"@scalar/helpers": "0.2.15",
|
|
334
|
+
"@scalar/icons": "0.5.3",
|
|
335
|
+
"@scalar/oas-utils": "0.6.45",
|
|
336
|
+
"@scalar/import": "0.4.52",
|
|
337
|
+
"@scalar/object-utils": "1.2.29",
|
|
338
|
+
"@scalar/json-magic": "0.11.4",
|
|
339
|
+
"@scalar/openapi-parser": "0.24.13",
|
|
340
340
|
"@scalar/openapi-types": "0.5.3",
|
|
341
|
-
"@scalar/
|
|
341
|
+
"@scalar/postman-to-openapi": "0.4.7",
|
|
342
|
+
"@scalar/snippetz": "0.6.15",
|
|
342
343
|
"@scalar/themes": "0.14.0",
|
|
343
|
-
"@scalar/
|
|
344
|
-
"@scalar/
|
|
345
|
-
"@scalar/use-codemirror": "0.13.39",
|
|
346
|
-
"@scalar/snippetz": "0.6.12",
|
|
344
|
+
"@scalar/types": "0.6.6",
|
|
345
|
+
"@scalar/sidebar": "0.7.38",
|
|
347
346
|
"@scalar/use-hooks": "0.3.7",
|
|
347
|
+
"@scalar/use-codemirror": "0.13.42",
|
|
348
348
|
"@scalar/use-toasts": "0.9.1",
|
|
349
|
-
"@scalar/workspace-store": "0.
|
|
349
|
+
"@scalar/workspace-store": "0.34.1"
|
|
350
350
|
},
|
|
351
351
|
"devDependencies": {
|
|
352
352
|
"@tailwindcss/vite": "^4.1.18",
|
|
@@ -361,9 +361,9 @@
|
|
|
361
361
|
"vite": "^7.3.1",
|
|
362
362
|
"vite-svg-loader": "5.1.0",
|
|
363
363
|
"vitest": "4.0.16",
|
|
364
|
-
"@scalar/galaxy": "0.5.13",
|
|
365
364
|
"@scalar/build-tooling": "0.4.1",
|
|
366
|
-
"@scalar/
|
|
365
|
+
"@scalar/galaxy": "0.5.16",
|
|
366
|
+
"@scalar/pre-post-request-scripts": "0.2.1"
|
|
367
367
|
},
|
|
368
368
|
"scripts": {
|
|
369
369
|
"build": "scalar-build-vite",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CommandPaletteDocument.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/command-palette/components/CommandPaletteDocument.vue"],"names":[],"mappings":"AAwIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAUvE;;;;;;;;;;;;;;GAcG;wBACkB,OAAO,YAAY;AAAxC,wBAAyC;AAGzC,QAAA,MAAM,YAAY;IAEhB,2DAA2D;oBAC3C,cAAc;IAC9B,sDAAsD;cAC5C,iBAAiB;;;;;IAH3B,2DAA2D;oBAC3C,cAAc;IAC9B,sDAAsD;cAC5C,iBAAiB;;;;kFAwMzB,CAAC"}
|