@scalar/api-client 2.8.0 → 2.8.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 +32 -0
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +4 -4
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts +2 -2
- package/dist/hooks/useClientConfig.d.ts +6 -6
- package/dist/layouts/App/create-api-client-app.d.ts +20 -20
- package/dist/layouts/Modal/create-api-client-modal.d.ts +40 -40
- package/dist/layouts/Web/create-api-client-web.d.ts +20 -20
- package/dist/libs/create-client.d.ts +23 -23
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/create-client.js +23 -23
- package/dist/libs/find-request.d.ts +2 -2
- package/dist/libs/send-request/create-request-operation.js +8 -8
- package/dist/libs/send-request/create-request-operation.test.d.ts +2 -2
- package/dist/plugins/plugin-manager.d.ts +1 -1
- package/dist/store/active-entities.d.ts +2 -2
- package/dist/store/requests.d.ts +22 -22
- package/dist/store/store.d.ts +20 -20
- package/dist/style.css +1 -1
- package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.js +2 -2
- package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue2.js +1 -1
- package/dist/v2/blocks/operation-code-sample/index.d.ts +1 -0
- package/dist/v2/blocks/operation-code-sample/index.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/index.js +8 -6
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/package.json +37 -17
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./OperationCodeSample.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-13b785c0"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
e as default
|
|
7
7
|
};
|
|
@@ -107,7 +107,7 @@ const le = ["innerHTML"], oe = ["id"], ae = {
|
|
|
107
107
|
}, 300);
|
|
108
108
|
}
|
|
109
109
|
c.value = e, e.id.startsWith("custom") || V(m.value?.$el, "scalar-update-selected-client", e.id);
|
|
110
|
-
}, L =
|
|
110
|
+
}, L = 2e4, I = n(() => (v.value.length ?? 0) > L), W = R();
|
|
111
111
|
return (e, t) => v.value ? (s(), i(o(T), {
|
|
112
112
|
key: 0,
|
|
113
113
|
ref_key: "elem",
|
|
@@ -2,5 +2,6 @@ export { default as ExamplePicker } from './components/ExamplePicker.vue.js';
|
|
|
2
2
|
export { default as OperationCodeSample } from './components/OperationCodeSample.vue.js';
|
|
3
3
|
export { DEFAULT_CLIENT, findClient, isClient } from './helpers/find-client.js';
|
|
4
4
|
export { generateClientOptions } from './helpers/generate-client-options.js';
|
|
5
|
+
export { getExampleFromSchema } from './helpers/get-example-from-schema.js';
|
|
5
6
|
export type { ClientOption, ClientOptionGroup } from './types';
|
|
6
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/v2/blocks/operation-code-sample/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,gCAAgC,CAAA;AACzE,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,sCAAsC,CAAA;AACrF,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAC5E,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAA;AACzE,YAAY,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/v2/blocks/operation-code-sample/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,gCAAgC,CAAA;AACzE,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,sCAAsC,CAAA;AACrF,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAC5E,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAA;AACzE,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAA;AACxE,YAAY,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA"}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import { default as
|
|
1
|
+
import { default as r } from "./components/ExamplePicker.vue.js";
|
|
2
2
|
import { default as a } from "./components/OperationCodeSample.vue.js";
|
|
3
|
-
import { DEFAULT_CLIENT as p, findClient as f, isClient as
|
|
4
|
-
import { generateClientOptions as
|
|
3
|
+
import { DEFAULT_CLIENT as p, findClient as f, isClient as i } from "./helpers/find-client.js";
|
|
4
|
+
import { generateClientOptions as n } from "./helpers/generate-client-options.js";
|
|
5
|
+
import { getExampleFromSchema as C } from "./helpers/get-example-from-schema.js";
|
|
5
6
|
export {
|
|
6
7
|
p as DEFAULT_CLIENT,
|
|
7
|
-
|
|
8
|
+
r as ExamplePicker,
|
|
8
9
|
a as OperationCodeSample,
|
|
9
10
|
f as findClient,
|
|
10
|
-
|
|
11
|
-
|
|
11
|
+
n as generateClientOptions,
|
|
12
|
+
C as getExampleFromSchema,
|
|
13
|
+
i as isClient
|
|
12
14
|
};
|
|
@@ -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 = (o) => {
|
|
35
35
|
o?.createNew && g.name === "request" && d();
|
|
36
|
-
}, v = "2.8.
|
|
36
|
+
}, v = "2.8.1";
|
|
37
37
|
return q(() => a.hotKeys.on(f)), R(() => a.hotKeys.off(f)), (o, e) => (i(), l("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.8.
|
|
21
|
+
"version": "2.8.1",
|
|
22
22
|
"engines": {
|
|
23
23
|
"node": ">=20"
|
|
24
24
|
},
|
|
@@ -184,6 +184,26 @@
|
|
|
184
184
|
"import": "./dist/v2/blocks/operation-code-sample/index.js",
|
|
185
185
|
"types": "./dist/v2/blocks/operation-code-sample/index.d.ts",
|
|
186
186
|
"default": "./dist/v2/blocks/operation-code-sample/index.js"
|
|
187
|
+
},
|
|
188
|
+
"./v2/blocks/scalar-address-bar-block": {
|
|
189
|
+
"import": "./dist/v2/blocks/scalar-address-bar-block/index.js",
|
|
190
|
+
"types": "./dist/v2/blocks/scalar-address-bar-block/index.d.ts",
|
|
191
|
+
"default": "./dist/v2/blocks/scalar-address-bar-block/index.js"
|
|
192
|
+
},
|
|
193
|
+
"./v2/blocks/scalar-auth-selector-block": {
|
|
194
|
+
"import": "./dist/v2/blocks/scalar-auth-selector-block/index.js",
|
|
195
|
+
"types": "./dist/v2/blocks/scalar-auth-selector-block/index.d.ts",
|
|
196
|
+
"default": "./dist/v2/blocks/scalar-auth-selector-block/index.js"
|
|
197
|
+
},
|
|
198
|
+
"./v2/blocks/scalar-operation-block": {
|
|
199
|
+
"import": "./dist/v2/blocks/scalar-operation-block/index.js",
|
|
200
|
+
"types": "./dist/v2/blocks/scalar-operation-block/index.d.ts",
|
|
201
|
+
"default": "./dist/v2/blocks/scalar-operation-block/index.js"
|
|
202
|
+
},
|
|
203
|
+
"./v2/blocks/scalar-response-block": {
|
|
204
|
+
"import": "./dist/v2/blocks/scalar-response-block/index.js",
|
|
205
|
+
"types": "./dist/v2/blocks/scalar-response-block/index.d.ts",
|
|
206
|
+
"default": "./dist/v2/blocks/scalar-response-block/index.js"
|
|
187
207
|
}
|
|
188
208
|
},
|
|
189
209
|
"files": [
|
|
@@ -205,31 +225,31 @@
|
|
|
205
225
|
"pretty-bytes": "^6.1.1",
|
|
206
226
|
"pretty-ms": "^8.0.0",
|
|
207
227
|
"shell-quote": "^1.8.1",
|
|
208
|
-
"type-fest": "
|
|
228
|
+
"type-fest": "5.0.0",
|
|
209
229
|
"vue": "^3.5.17",
|
|
210
230
|
"vue-router": "^4.3.0",
|
|
211
231
|
"whatwg-mimetype": "^4.0.0",
|
|
212
232
|
"yaml": "2.8.0",
|
|
213
233
|
"zod": "4.1.11",
|
|
214
234
|
"@scalar/analytics-client": "1.0.0",
|
|
215
|
-
"@scalar/components": "0.15.0",
|
|
216
235
|
"@scalar/draggable": "0.2.0",
|
|
217
|
-
"@scalar/
|
|
218
|
-
"@scalar/
|
|
219
|
-
"@scalar/json-magic": "0.6.0",
|
|
220
|
-
"@scalar/oas-utils": "0.5.1",
|
|
221
|
-
"@scalar/openapi-parser": "0.22.2",
|
|
236
|
+
"@scalar/components": "0.15.1",
|
|
237
|
+
"@scalar/helpers": "0.0.12",
|
|
222
238
|
"@scalar/icons": "0.4.7",
|
|
223
|
-
"@scalar/
|
|
224
|
-
"@scalar/
|
|
225
|
-
"@scalar/
|
|
226
|
-
"@scalar/
|
|
227
|
-
"@scalar/
|
|
228
|
-
"@scalar/
|
|
239
|
+
"@scalar/import": "0.4.31",
|
|
240
|
+
"@scalar/json-magic": "0.6.1",
|
|
241
|
+
"@scalar/object-utils": "1.2.8",
|
|
242
|
+
"@scalar/oas-utils": "0.5.2",
|
|
243
|
+
"@scalar/openapi-parser": "0.22.3",
|
|
244
|
+
"@scalar/themes": "0.13.22",
|
|
245
|
+
"@scalar/postman-to-openapi": "0.3.40",
|
|
246
|
+
"@scalar/types": "0.3.2",
|
|
247
|
+
"@scalar/snippetz": "0.5.1",
|
|
248
|
+
"@scalar/openapi-types": "0.5.0",
|
|
229
249
|
"@scalar/use-hooks": "0.2.5",
|
|
230
|
-
"@scalar/use-codemirror": "0.12.42",
|
|
231
250
|
"@scalar/use-toasts": "0.8.0",
|
|
232
|
-
"@scalar/workspace-store": "0.17.
|
|
251
|
+
"@scalar/workspace-store": "0.17.1",
|
|
252
|
+
"@scalar/use-codemirror": "0.12.43"
|
|
233
253
|
},
|
|
234
254
|
"devDependencies": {
|
|
235
255
|
"@tailwindcss/vite": "^4.1.7",
|
|
@@ -243,7 +263,7 @@
|
|
|
243
263
|
"vite-svg-loader": "^5.1.0",
|
|
244
264
|
"vitest": "3.2.4",
|
|
245
265
|
"@scalar/build-tooling": "0.2.7",
|
|
246
|
-
"@scalar/galaxy": "0.5.
|
|
266
|
+
"@scalar/galaxy": "0.5.9"
|
|
247
267
|
},
|
|
248
268
|
"scripts": {
|
|
249
269
|
"build": "scalar-build-vite",
|