@scalar/api-client 2.17.6 → 2.17.8

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 (40) hide show
  1. package/CHANGELOG.md +40 -0
  2. package/dist/components/CommandPalette/CommandActionInput.vue.js +1 -1
  3. package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.js +5 -5
  4. package/dist/components/Sidebar/Actions/EditSidebarListCollection.vue.js +18 -18
  5. package/dist/components/Sidebar/Actions/EditSidebarListElement.vue.js +7 -7
  6. package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.d.ts.map +1 -1
  7. package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.js +44 -5
  8. package/dist/components/Sidebar/Actions/SidebarListElementForm.vue2.js +2 -44
  9. package/dist/style.css +1 -1
  10. package/dist/v2/blocks/operation-block/helpers/build-request.d.ts.map +1 -1
  11. package/dist/v2/blocks/operation-block/helpers/build-request.js +22 -17
  12. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts +18 -10
  13. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts.map +1 -1
  14. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +149 -126
  15. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue.d.ts +20 -0
  16. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue.d.ts.map +1 -0
  17. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue.js +7 -0
  18. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue2.js +76 -0
  19. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.d.ts +22 -5
  20. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.d.ts.map +1 -1
  21. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.js +79 -64
  22. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts +16 -8
  23. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts.map +1 -1
  24. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts +2 -2
  25. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts.map +1 -1
  26. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.js +84 -82
  27. package/dist/v2/components/forms/ConfirmationForm.vue.d.ts.map +1 -1
  28. package/dist/v2/components/forms/ConfirmationForm.vue.js +43 -5
  29. package/dist/v2/components/forms/ConfirmationForm.vue2.js +2 -43
  30. package/dist/v2/components/modals/DeleteModal.vue.js +11 -11
  31. package/dist/v2/features/operation/Operation.vue.js +1 -1
  32. package/dist/v2/features/settings/DocumentSettings.vue.d.ts.map +1 -1
  33. package/dist/v2/features/settings/DocumentSettings.vue.js +104 -5
  34. package/dist/v2/features/settings/DocumentSettings.vue2.js +2 -104
  35. package/dist/views/Collection/CollectionSettings.vue.d.ts.map +1 -1
  36. package/dist/views/Collection/CollectionSettings.vue.js +1 -4
  37. package/dist/views/Collection/CollectionSettings.vue2.js +5 -5
  38. package/dist/views/Environment/EnvironmentColorModal.vue.js +6 -6
  39. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  40. package/package.json +12 -12
@@ -5,9 +5,9 @@ import N from "../../components/Sidebar/Actions/DeleteSidebarListElement.vue.js"
5
5
  import { PathId as v } from "../../routes.js";
6
6
  import { useActiveEntities as S } from "../../store/active-entities.js";
7
7
  import { useWorkspace as W } from "../../store/store.js";
8
- const T = { class: "flex h-full w-full flex-col gap-12 px-1.5 pt-8" }, V = { class: "flex flex-col gap-2" }, A = { class: "bg-b-2 rounded-lg border text-sm" }, B = { class: "bg-b-1 flex items-center justify-between gap-4 rounded-t-lg p-3" }, E = { class: "text-c-1 flex items-center overflow-x-auto border-t py-1.5 whitespace-nowrap" }, I = { class: "flex items-center" }, $ = ["href"], L = { class: "flex flex-col gap-4" }, O = { class: "flex items-center justify-between rounded-lg border p-3 text-sm" }, H = /* @__PURE__ */ _({
8
+ const T = { class: "flex h-full w-full flex-col gap-12 px-1.5 pt-8" }, V = { class: "flex flex-col gap-2" }, A = { class: "bg-b-2 rounded-lg border text-sm" }, B = { class: "bg-b-1 flex items-center justify-between gap-4 rounded-t-lg p-3" }, E = { class: "text-c-1 flex items-center overflow-x-auto border-t py-1.5 whitespace-nowrap" }, I = { class: "flex items-center" }, $ = ["href"], z = { class: "flex flex-col gap-4" }, L = { class: "flex items-center justify-between rounded-lg border p-3 text-sm" }, H = /* @__PURE__ */ _({
9
9
  __name: "CollectionSettings",
10
- setup(P) {
10
+ setup(O) {
11
11
  const { activeCollection: o, activeWorkspace: i, activeWorkspaceCollections: x } = S(), { collectionMutators: u } = W(), { replace: g } = D(), s = C();
12
12
  function h() {
13
13
  o.value && o.value?.documentUrl && u.edit(
@@ -75,15 +75,15 @@ const T = { class: "flex h-full w-full flex-col gap-12 px-1.5 pt-8" }, V = { cla
75
75
  ])
76
76
  ])
77
77
  ]),
78
- e("div", L, [
78
+ e("div", z, [
79
79
  t[8] || (t[8] = e("h3", { class: "font-bold" }, "Danger Zone", -1)),
80
- e("div", O, [
80
+ e("div", L, [
81
81
  t[7] || (t[7] = e("div", null, [
82
82
  e("h4", null, "Delete Collection"),
83
83
  e("p", { class: "text-c-2 mt-1" }, " Be careful, my friend. Once deleted, there is no way to recover the collection. ")
84
84
  ], -1)),
85
85
  n(l(M), {
86
- class: "custom-scroll h-8 gap-1.5 px-2.5 font-medium whitespace-nowrap shadow-none focus:outline-none",
86
+ size: "sm",
87
87
  variant: "danger",
88
88
  onClick: t[0] || (t[0] = (w) => l(s).show())
89
89
  }, {
@@ -1,21 +1,21 @@
1
- import { defineComponent as m, ref as u, createBlock as d, openBlock as f, unref as p, withCtx as C, createElementVNode as v, createVNode as n } from "vue";
1
+ import { defineComponent as m, ref as u, createBlock as f, openBlock as d, unref as p, withCtx as C, createElementVNode as v, createVNode as n } from "vue";
2
2
  import { ScalarModal as _ } from "@scalar/components";
3
3
  import x from "../../components/Sidebar/Actions/SidebarListElementForm.vue.js";
4
4
  import S from "./EnvironmentColors.vue.js";
5
- const b = { class: "flex flex-col gap-4" }, M = /* @__PURE__ */ m({
5
+ const b = { class: "flex flex-col gap-4" }, B = /* @__PURE__ */ m({
6
6
  __name: "EnvironmentColorModal",
7
7
  props: {
8
8
  state: {},
9
9
  selectedColor: {}
10
10
  },
11
11
  emits: ["cancel", "submit"],
12
- setup(r, { emit: a }) {
13
- const s = r, o = a, e = u(""), c = (t) => {
12
+ setup(a, { emit: r }) {
13
+ const s = a, o = r, e = u(""), c = (t) => {
14
14
  e.value = t;
15
15
  }, i = () => {
16
16
  o("submit", e.value), e.value = "";
17
17
  };
18
- return (t, l) => (f(), d(p(_), {
18
+ return (t, l) => (d(), f(p(_), {
19
19
  size: "xxs",
20
20
  state: t.state,
21
21
  title: "Edit Environment Color"
@@ -38,5 +38,5 @@ const b = { class: "flex flex-col gap-4" }, M = /* @__PURE__ */ m({
38
38
  }
39
39
  });
40
40
  export {
41
- M as default
41
+ B as default
42
42
  };
@@ -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.17.6";
36
+ }, v = "2.17.8";
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.17.6",
21
+ "version": "2.17.8",
22
22
  "engines": {
23
23
  "node": ">=20"
24
24
  },
@@ -327,25 +327,25 @@
327
327
  "yaml": "^2.8.0",
328
328
  "zod": "^4.1.11",
329
329
  "@scalar/analytics-client": "1.0.1",
330
- "@scalar/components": "0.16.16",
331
330
  "@scalar/draggable": "0.3.0",
332
331
  "@scalar/helpers": "0.2.6",
332
+ "@scalar/import": "0.4.43",
333
+ "@scalar/components": "0.16.18",
333
334
  "@scalar/icons": "0.5.2",
334
335
  "@scalar/json-magic": "0.8.10",
335
- "@scalar/import": "0.4.43",
336
- "@scalar/oas-utils": "0.6.14",
336
+ "@scalar/oas-utils": "0.6.15",
337
+ "@scalar/openapi-parser": "0.23.12",
337
338
  "@scalar/object-utils": "1.2.20",
338
- "@scalar/openapi-parser": "0.23.11",
339
- "@scalar/postman-to-openapi": "0.3.55",
340
339
  "@scalar/openapi-types": "0.5.3",
341
- "@scalar/sidebar": "0.7.6",
340
+ "@scalar/postman-to-openapi": "0.3.56",
341
+ "@scalar/sidebar": "0.7.8",
342
342
  "@scalar/snippetz": "0.6.3",
343
343
  "@scalar/themes": "0.13.26",
344
344
  "@scalar/types": "0.5.6",
345
- "@scalar/use-codemirror": "0.13.10",
346
- "@scalar/use-toasts": "0.9.1",
345
+ "@scalar/use-codemirror": "0.13.12",
347
346
  "@scalar/use-hooks": "0.3.5",
348
- "@scalar/workspace-store": "0.24.4"
347
+ "@scalar/workspace-store": "0.24.5",
348
+ "@scalar/use-toasts": "0.9.1"
349
349
  },
350
350
  "devDependencies": {
351
351
  "@tailwindcss/vite": "^4.1.7",
@@ -360,8 +360,8 @@
360
360
  "vite": "7.1.11",
361
361
  "vite-svg-loader": "5.1.0",
362
362
  "vitest": "3.2.4",
363
- "@scalar/galaxy": "0.5.12",
364
- "@scalar/build-tooling": "0.4.1"
363
+ "@scalar/build-tooling": "0.4.1",
364
+ "@scalar/galaxy": "0.5.12"
365
365
  },
366
366
  "scripts": {
367
367
  "build": "scalar-build-vite",