@scalar/api-client 2.2.57 → 2.2.59

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.
Files changed (29) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
  3. package/dist/components/CodeInput/CodeInput.vue.js +1 -1
  4. package/dist/components/CodeInput/CodeInput.vue2.js +93 -81
  5. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +2 -0
  6. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
  7. package/dist/layouts/App/create-api-client-app.d.ts +15 -5
  8. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  9. package/dist/layouts/Modal/create-api-client-modal.d.ts +30 -10
  10. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
  11. package/dist/layouts/Web/create-api-client-web.d.ts +15 -5
  12. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
  13. package/dist/libs/create-client.d.ts +14 -4
  14. package/dist/libs/create-client.d.ts.map +1 -1
  15. package/dist/libs/find-request.d.ts +1 -0
  16. package/dist/libs/find-request.d.ts.map +1 -1
  17. package/dist/libs/send-request/create-request-operation.test.d.ts +1 -0
  18. package/dist/libs/send-request/create-request-operation.test.d.ts.map +1 -1
  19. package/dist/store/active-entities.d.ts +1 -0
  20. package/dist/store/active-entities.d.ts.map +1 -1
  21. package/dist/store/requests.d.ts +15 -4
  22. package/dist/store/requests.d.ts.map +1 -1
  23. package/dist/store/store.d.ts +14 -4
  24. package/dist/store/store.d.ts.map +1 -1
  25. package/dist/style.css +1 -1
  26. package/dist/views/Request/RequestSection/RequestBody.vue.js +3 -3
  27. package/dist/views/Request/RequestSection/RequestBody.vue2.js +1 -1
  28. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  29. package/package.json +12 -12
@@ -1,7 +1,7 @@
1
1
  import o from "./RequestBody.vue2.js";
2
2
  /* empty css */
3
- import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-402336ff"]]);
3
+ import f from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const e = /* @__PURE__ */ f(o, [["__scopeId", "data-v-6f3ffafd"]]);
5
5
  export {
6
- m as default
6
+ e as default
7
7
  };
@@ -49,7 +49,7 @@ const me = {
49
49
  })), R = h(() => {
50
50
  var o;
51
51
  const { activeBody: e, formData: a, raw: n } = l.example.body;
52
- return n != null && n.mimeType ? n.mimeType : e === "formData" ? (a == null ? void 0 : a.encoding) === "urlencoded" ? "formUrlEncoded" : "multipartForm" : e === "binary" ? "binaryFile" : e === "raw" && (n != null && n.encoding) ? n.encoding === "html" ? "other" : n.encoding : Object.keys(((o = l.operation.requestBody) == null ? void 0 : o.content) || {})[0] || "none";
52
+ return e === "formData" ? (a == null ? void 0 : a.encoding) === "urlencoded" ? "formUrlEncoded" : "multipartForm" : e === "binary" ? "binaryFile" : e === "raw" && (n != null && n.encoding) ? n.encoding === "html" ? "other" : n.encoding : Object.keys(((o = l.operation.requestBody) == null ? void 0 : o.content) || {})[0] || "none";
53
53
  }), p = h({
54
54
  get: () => x.find(
55
55
  (e) => e.id === R.value
@@ -36,7 +36,7 @@ const P = { class: "col-1 flex-center relative gap-6 p-2 capitalize" }, T = {
36
36
  }));
37
37
  }, y = (s) => {
38
38
  s != null && s.createNew && w.name === "request" && k();
39
- }, N = "2.2.57";
39
+ }, N = "2.2.59";
40
40
  return B(() => r.hotKeys.on(y)), E(() => r.hotKeys.off(y)), (s, e) => (u(), i("div", P, [
41
41
  o("div", {
42
42
  class: q(["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.2.57",
21
+ "version": "2.2.59",
22
22
  "engines": {
23
23
  "node": ">=18"
24
24
  },
@@ -188,22 +188,22 @@
188
188
  "whatwg-mimetype": "^4.0.0",
189
189
  "yaml": "^2.4.5",
190
190
  "zod": "^3.23.8",
191
- "@scalar/components": "0.13.29",
191
+ "@scalar/components": "0.13.31",
192
192
  "@scalar/icons": "0.1.3",
193
- "@scalar/draggable": "0.1.11",
194
- "@scalar/import": "0.2.31",
193
+ "@scalar/import": "0.2.33",
194
+ "@scalar/oas-utils": "0.2.113",
195
195
  "@scalar/object-utils": "1.1.13",
196
+ "@scalar/draggable": "0.1.11",
196
197
  "@scalar/openapi-parser": "0.10.9",
197
198
  "@scalar/openapi-types": "0.1.9",
198
- "@scalar/postman-to-openapi": "0.1.34",
199
- "@scalar/snippetz": "0.2.15",
200
- "@scalar/themes": "0.9.72",
201
- "@scalar/types": "0.0.37",
202
- "@scalar/use-codemirror": "0.11.74",
203
- "@scalar/use-hooks": "0.1.26",
199
+ "@scalar/snippetz": "0.2.16",
200
+ "@scalar/themes": "0.9.74",
201
+ "@scalar/postman-to-openapi": "0.1.36",
202
+ "@scalar/types": "0.0.39",
203
+ "@scalar/use-hooks": "0.1.28",
204
204
  "@scalar/use-toasts": "0.7.9",
205
205
  "@scalar/use-tooltip": "1.0.6",
206
- "@scalar/oas-utils": "0.2.111"
206
+ "@scalar/use-codemirror": "0.11.76"
207
207
  },
208
208
  "devDependencies": {
209
209
  "@types/shell-quote": "^1.7.5",
@@ -220,7 +220,7 @@
220
220
  "vite-svg-loader": "^5.1.0",
221
221
  "vitest": "^1.6.0",
222
222
  "@scalar/build-tooling": "0.1.16",
223
- "@scalar/galaxy": "0.2.23"
223
+ "@scalar/galaxy": "0.2.24"
224
224
  },
225
225
  "scripts": {
226
226
  "build": "scalar-build-vite",