@scalar/api-client 2.23.4 → 2.25.0

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 (103) hide show
  1. package/CHANGELOG.md +57 -0
  2. package/dist/layouts/Modal/ApiClientModal.vue.d.ts.map +1 -1
  3. package/dist/layouts/Modal/ApiClientModal.vue.js +2 -2
  4. package/dist/style.css +1 -1
  5. package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts +8 -0
  6. package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts.map +1 -1
  7. package/dist/v2/blocks/operation-block/OperationBlock.vue.js +33 -29
  8. package/dist/v2/blocks/operation-block/components/Header.vue.d.ts +6 -0
  9. package/dist/v2/blocks/operation-block/components/Header.vue.d.ts.map +1 -1
  10. package/dist/v2/blocks/operation-block/components/Header.vue.js +2 -2
  11. package/dist/v2/blocks/operation-block/components/Header.vue2.js +46 -29
  12. package/dist/v2/blocks/request-block/helpers/get-default-headers.js +1 -1
  13. package/dist/v2/blocks/scalar-address-bar-block/components/EnvironmentSelector.vue.d.ts +15 -0
  14. package/dist/v2/blocks/scalar-address-bar-block/components/EnvironmentSelector.vue.d.ts.map +1 -0
  15. package/dist/v2/blocks/scalar-address-bar-block/components/EnvironmentSelector.vue.js +125 -0
  16. package/dist/v2/blocks/scalar-address-bar-block/components/EnvironmentSelector.vue2.js +4 -0
  17. package/dist/v2/components/sidebar/Sidebar.vue.d.ts +2 -2
  18. package/dist/v2/components/sidebar/Sidebar.vue.d.ts.map +1 -1
  19. package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts +2 -2
  20. package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts.map +1 -1
  21. package/dist/v2/features/app/App.vue.d.ts +8 -0
  22. package/dist/v2/features/app/App.vue.d.ts.map +1 -1
  23. package/dist/v2/features/app/App.vue.js +95 -108
  24. package/dist/v2/features/app/app-state.d.ts +46 -16
  25. package/dist/v2/features/app/app-state.d.ts.map +1 -1
  26. package/dist/v2/features/app/app-state.js +174 -161
  27. package/dist/v2/features/app/components/AppSidebar.vue.d.ts +2 -2
  28. package/dist/v2/features/app/components/AppSidebar.vue.d.ts.map +1 -1
  29. package/dist/v2/features/app/components/AppSidebar.vue.js +3 -3
  30. package/dist/v2/features/app/components/WebTopNav.vue.d.ts +3 -3
  31. package/dist/v2/features/app/components/WebTopNav.vue.d.ts.map +1 -1
  32. package/dist/v2/features/app/helpers/filter-workspaces.d.ts +49 -0
  33. package/dist/v2/features/app/helpers/filter-workspaces.d.ts.map +1 -0
  34. package/dist/v2/features/app/helpers/filter-workspaces.js +5 -0
  35. package/dist/v2/features/app/helpers/group-workspaces.d.ts +24 -0
  36. package/dist/v2/features/app/helpers/group-workspaces.d.ts.map +1 -0
  37. package/dist/v2/features/app/helpers/group-workspaces.js +23 -0
  38. package/dist/v2/features/app/hooks/use-document-watcher.js +8 -8
  39. package/dist/v2/features/collection/components/Environment.vue.d.ts.map +1 -1
  40. package/dist/v2/features/collection/components/Environment.vue.js +12 -11
  41. package/dist/v2/features/collection/components/Settings.vue.d.ts.map +1 -1
  42. package/dist/v2/features/collection/components/Settings.vue.js +17 -25
  43. package/dist/v2/features/command-palette/components/CommandPaletteImport.vue.d.ts +1 -1
  44. package/dist/v2/features/command-palette/components/CommandPaletteImport.vue.d.ts.map +1 -1
  45. package/dist/v2/features/command-palette/components/CommandPaletteImport.vue.js +115 -118
  46. package/dist/v2/features/{import-listener → command-palette}/helpers/generate-unique-slug.d.ts.map +1 -1
  47. package/dist/v2/features/command-palette/helpers/get-openapi-from-postman.d.ts +14 -4
  48. package/dist/v2/features/command-palette/helpers/get-openapi-from-postman.d.ts.map +1 -1
  49. package/dist/v2/features/command-palette/helpers/get-openapi-from-postman.js +5 -6
  50. package/dist/v2/features/{import-listener → command-palette}/helpers/import-document-to-workspace.d.ts.map +1 -1
  51. package/dist/v2/features/command-palette/helpers/load-document-from-source.d.ts +16 -0
  52. package/dist/v2/features/command-palette/helpers/load-document-from-source.d.ts.map +1 -0
  53. package/dist/v2/features/command-palette/helpers/load-document-from-source.js +34 -0
  54. package/dist/v2/features/command-palette/index.d.ts +4 -0
  55. package/dist/v2/features/command-palette/index.d.ts.map +1 -0
  56. package/dist/v2/features/command-palette/index.js +8 -0
  57. package/dist/v2/features/environments/EnvironmentsList.vue.d.ts +4 -0
  58. package/dist/v2/features/environments/EnvironmentsList.vue.d.ts.map +1 -1
  59. package/dist/v2/features/environments/EnvironmentsList.vue.js +29 -27
  60. package/dist/v2/features/environments/components/Environment.vue.d.ts +1 -0
  61. package/dist/v2/features/environments/components/Environment.vue.d.ts.map +1 -1
  62. package/dist/v2/features/environments/components/Environment.vue.js +37 -24
  63. package/dist/v2/features/modal/Modal.vue.d.ts.map +1 -1
  64. package/dist/v2/features/modal/Modal.vue.js +2 -2
  65. package/dist/v2/features/modal/Modal.vue2.js +39 -38
  66. package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -1
  67. package/dist/v2/features/operation/Operation.vue.js +35 -26
  68. package/dist/v2/workspace-events.d.ts.map +1 -1
  69. package/dist/v2/workspace-events.js +7 -0
  70. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  71. package/package.json +15 -15
  72. package/dist/v2/features/import-listener/ImportListener.vue.d.ts +0 -52
  73. package/dist/v2/features/import-listener/ImportListener.vue.d.ts.map +0 -1
  74. package/dist/v2/features/import-listener/ImportListener.vue.js +0 -91
  75. package/dist/v2/features/import-listener/ImportListener.vue2.js +0 -4
  76. package/dist/v2/features/import-listener/components/DropEventListener.vue.d.ts +0 -7
  77. package/dist/v2/features/import-listener/components/DropEventListener.vue.d.ts.map +0 -1
  78. package/dist/v2/features/import-listener/components/DropEventListener.vue.js +0 -81
  79. package/dist/v2/features/import-listener/components/DropEventListener.vue2.js +0 -4
  80. package/dist/v2/features/import-listener/components/ImportModal.vue.d.ts +0 -40
  81. package/dist/v2/features/import-listener/components/ImportModal.vue.d.ts.map +0 -1
  82. package/dist/v2/features/import-listener/components/ImportModal.vue.js +0 -170
  83. package/dist/v2/features/import-listener/components/ImportModal.vue3.js +0 -5
  84. package/dist/v2/features/import-listener/components/WorkspaceSelector.vue.d.ts +0 -29
  85. package/dist/v2/features/import-listener/components/WorkspaceSelector.vue.d.ts.map +0 -1
  86. package/dist/v2/features/import-listener/components/WorkspaceSelector.vue.js +0 -83
  87. package/dist/v2/features/import-listener/components/WorkspaceSelector.vue2.js +0 -4
  88. package/dist/v2/features/import-listener/helpers/get-url-query-parameter.d.ts +0 -8
  89. package/dist/v2/features/import-listener/helpers/get-url-query-parameter.d.ts.map +0 -1
  90. package/dist/v2/features/import-listener/helpers/get-url-query-parameter.js +0 -4
  91. package/dist/v2/features/import-listener/helpers/load-document-from-source.d.ts +0 -15
  92. package/dist/v2/features/import-listener/helpers/load-document-from-source.d.ts.map +0 -1
  93. package/dist/v2/features/import-listener/helpers/load-document-from-source.js +0 -28
  94. package/dist/v2/features/import-listener/helpers/wait-for-condition.d.ts +0 -15
  95. package/dist/v2/features/import-listener/helpers/wait-for-condition.d.ts.map +0 -1
  96. package/dist/v2/features/import-listener/helpers/wait-for-condition.js +0 -16
  97. package/dist/v2/features/import-listener/index.d.ts +0 -2
  98. package/dist/v2/features/import-listener/index.d.ts.map +0 -1
  99. package/dist/v2/features/import-listener/index.js +0 -4
  100. /package/dist/v2/features/{import-listener → command-palette}/helpers/generate-unique-slug.d.ts +0 -0
  101. /package/dist/v2/features/{import-listener → command-palette}/helpers/generate-unique-slug.js +0 -0
  102. /package/dist/v2/features/{import-listener → command-palette}/helpers/import-document-to-workspace.d.ts +0 -0
  103. /package/dist/v2/features/{import-listener → command-palette}/helpers/import-document-to-workspace.js +0 -0
@@ -0,0 +1,34 @@
1
+ import { normalize as i } from "@scalar/openapi-parser";
2
+ import { getOpenApiFromPostman as l } from "./get-openapi-from-postman.js";
3
+ import { isPostmanCollection as u } from "./is-postman-collection.js";
4
+ import { isUrl as d } from "../../../helpers/is-url.js";
5
+ const C = async (r, t, o, m) => {
6
+ if (!t)
7
+ return !1;
8
+ if (d(t))
9
+ return await r.addDocument({
10
+ name: o,
11
+ url: t,
12
+ meta: {
13
+ "x-scalar-watch-mode": m
14
+ }
15
+ });
16
+ if (u(t)) {
17
+ const n = l(t);
18
+ return n === null ? !1 : await r.addDocument({ name: o, document: n });
19
+ }
20
+ const e = ((n) => {
21
+ try {
22
+ return i(n);
23
+ } catch (a) {
24
+ return console.error(a), null;
25
+ }
26
+ })(t);
27
+ return e === null ? !1 : await r.addDocument({
28
+ name: o,
29
+ document: e
30
+ });
31
+ };
32
+ export {
33
+ C as loadDocumentFromSource
34
+ };
@@ -0,0 +1,4 @@
1
+ export { importDocumentToWorkspace } from './helpers/import-document-to-workspace.js';
2
+ export { loadDocumentFromSource } from './helpers/load-document-from-source.js';
3
+ export { default as TheCommandPalette } from './TheCommandPalette.vue.js';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/command-palette/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,wCAAwC,CAAA;AAClF,OAAO,EAAE,sBAAsB,EAAE,MAAM,qCAAqC,CAAA;AAC5E,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,yBAAyB,CAAA"}
@@ -0,0 +1,8 @@
1
+ import { importDocumentToWorkspace as r } from "./helpers/import-document-to-workspace.js";
2
+ import { loadDocumentFromSource as t } from "./helpers/load-document-from-source.js";
3
+ import { default as p } from "./TheCommandPalette.vue.js";
4
+ export {
5
+ p as TheCommandPalette,
6
+ r as importDocumentToWorkspace,
7
+ t as loadDocumentFromSource
8
+ };
@@ -1,8 +1,12 @@
1
1
  import type { CollectionType, WorkspaceEventBus } from '@scalar/workspace-store/events';
2
2
  import type { XScalarEnvironments } from '@scalar/workspace-store/schemas/extensions/document/x-scalar-environments';
3
3
  type __VLS_Props = {
4
+ /** List of environments, ensured to be non-nullable for safety */
4
5
  environments: NonNullable<XScalarEnvironments['x-scalar-environments']>;
6
+ /** Event bus to handle workspace-related events */
5
7
  eventBus: WorkspaceEventBus;
8
+ /** The currently active environment name */
9
+ activeEnvironment?: string;
6
10
  } & CollectionType;
7
11
  declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
8
12
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"EnvironmentsList.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/environments/EnvironmentsList.vue"],"names":[],"mappings":"AA8FA,OAAO,KAAK,EACV,cAAc,EACd,iBAAiB,EAClB,MAAM,gCAAgC,CAAA;AACvC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2EAA2E,CAAA;AAQpH,KAAK,WAAW,GAAG;IACf,YAAY,EAAE,WAAW,CAAC,mBAAmB,CAAC,uBAAuB,CAAC,CAAC,CAAA;IACvE,QAAQ,EAAE,iBAAiB,CAAA;CAC5B,GAAG,cAAc,CAAC;;AAoLrB,wBAMG"}
1
+ {"version":3,"file":"EnvironmentsList.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/environments/EnvironmentsList.vue"],"names":[],"mappings":"AAoGA,OAAO,KAAK,EACV,cAAc,EACd,iBAAiB,EAClB,MAAM,gCAAgC,CAAA;AACvC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2EAA2E,CAAA;AAQpH,KAAK,WAAW,GAAG;IACb,kEAAkE;IAClE,YAAY,EAAE,WAAW,CAAC,mBAAmB,CAAC,uBAAuB,CAAC,CAAC,CAAA;IACvE,mDAAmD;IACnD,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,4CAA4C;IAC5C,iBAAiB,CAAC,EAAE,MAAM,CAAA;CAC3B,GAAG,cAAc,CAAC;;AAuLvB,wBAMG"}
@@ -1,66 +1,68 @@
1
- import { defineComponent as E, ref as y, createElementBlock as u, openBlock as c, Fragment as v, createElementVNode as T, createVNode as r, renderList as x, createBlock as b, unref as i, withCtx as g, createTextVNode as h } from "vue";
1
+ import { defineComponent as y, ref as p, createElementBlock as v, openBlock as c, Fragment as u, createElementVNode as T, createVNode as i, renderList as x, createBlock as b, unref as r, withCtx as g, createTextVNode as h } from "vue";
2
2
  import { useModal as d, ScalarButton as k } from "@scalar/components";
3
3
  import { ScalarIconPlus as M } from "@scalar/icons";
4
- import N from "./components/EnvironmentCreateModal.vue.js";
5
- import S from "./components/EnvironmentDeleteModal.vue.js";
4
+ import S from "./components/EnvironmentCreateModal.vue.js";
5
+ import N from "./components/EnvironmentDeleteModal.vue.js";
6
6
  import w from "./components/Environment.vue.js";
7
- const C = { class: "text-c-3 flex h-full items-center justify-center rounded-lg border p-4" }, A = /* @__PURE__ */ E({
7
+ const A = { class: "text-c-3 flex h-full items-center justify-center rounded-lg border p-4" }, z = /* @__PURE__ */ y({
8
8
  __name: "EnvironmentsList",
9
9
  props: {
10
10
  environments: {},
11
11
  eventBus: {},
12
+ activeEnvironment: {},
12
13
  collectionType: {}
13
14
  },
14
15
  setup(e) {
15
- const s = d(), m = d(), t = y(null), f = (n) => {
16
- t.value = n, m.show();
17
- }, p = () => {
16
+ const s = d(), m = d(), t = p(null), f = (o) => {
17
+ t.value = o, m.show();
18
+ }, E = () => {
18
19
  t.value && e.eventBus.emit("environment:delete:environment", {
19
20
  environmentName: t.value,
20
21
  collectionType: e.collectionType
21
22
  });
22
- }, a = (n) => {
23
- t.value = n ?? null, s.show();
23
+ }, a = (o) => {
24
+ t.value = o ?? null, s.show();
24
25
  };
25
- return (n, o) => (c(), u(v, null, [
26
- (c(!0), u(v, null, x(Object.entries(e.environments), ([l, B]) => (c(), b(w, {
27
- key: l,
26
+ return (o, l) => (c(), v(u, null, [
27
+ (c(!0), v(u, null, x(Object.entries(e.environments), ([n, B]) => (c(), b(w, {
28
+ key: n,
28
29
  collectionType: e.collectionType,
29
30
  environment: B,
30
- environmentName: l,
31
+ environmentName: n,
31
32
  eventBus: e.eventBus,
32
- onDelete: () => f(l),
33
- onEdit: () => a(l)
34
- }, null, 8, ["collectionType", "environment", "environmentName", "eventBus", "onDelete", "onEdit"]))), 128)),
35
- T("div", C, [
36
- r(i(k), {
33
+ isActive: e.activeEnvironment === n,
34
+ onDelete: () => f(n),
35
+ onEdit: () => a(n)
36
+ }, null, 8, ["collectionType", "environment", "environmentName", "eventBus", "isActive", "onDelete", "onEdit"]))), 128)),
37
+ T("div", A, [
38
+ i(r(k), {
37
39
  class: "hover:bg-b-2 hover:text-c-1 flex items-center gap-2",
38
40
  size: "sm",
39
41
  variant: "ghost",
40
- onClick: o[0] || (o[0] = () => a())
42
+ onClick: l[0] || (l[0] = () => a())
41
43
  }, {
42
44
  default: g(() => [
43
- r(i(M)),
44
- o[1] || (o[1] = h(" Add Environment ", -1))
45
+ i(r(M)),
46
+ l[1] || (l[1] = h(" Add Environment ", -1))
45
47
  ]),
46
48
  _: 1
47
49
  })
48
50
  ]),
49
- r(N, {
51
+ i(S, {
50
52
  collectionType: e.collectionType,
51
53
  environments: e.environments,
52
54
  eventBus: e.eventBus,
53
55
  selectedEnvironmentName: t.value,
54
- state: i(s)
56
+ state: r(s)
55
57
  }, null, 8, ["collectionType", "environments", "eventBus", "selectedEnvironmentName", "state"]),
56
- r(S, {
58
+ i(N, {
57
59
  name: t.value,
58
- state: i(m),
59
- onSubmit: p
60
+ state: r(m),
61
+ onSubmit: E
60
62
  }, null, 8, ["name", "state"])
61
63
  ], 64));
62
64
  }
63
65
  });
64
66
  export {
65
- A as default
67
+ z as default
66
68
  };
@@ -4,6 +4,7 @@ type __VLS_Props = {
4
4
  environment: XScalarEnvironment;
5
5
  environmentName: string;
6
6
  eventBus: WorkspaceEventBus;
7
+ isActive?: boolean;
7
8
  } & CollectionType;
8
9
  declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
9
10
  delete: () => any;
@@ -1 +1 @@
1
- {"version":3,"file":"Environment.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/environments/components/Environment.vue"],"names":[],"mappings":"AAmEA,OAAO,KAAK,EACV,cAAc,EACd,iBAAiB,EAClB,MAAM,gCAAgC,CAAA;AACvC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AAInH,KAAK,WAAW,GAAG;IACf,WAAW,EAAE,kBAAkB,CAAA;IAC/B,eAAe,EAAE,MAAM,CAAA;IACvB,QAAQ,EAAE,iBAAiB,CAAA;CAC5B,GAAG,cAAc,CAAC;;;;;;;;AA6JrB,wBAOG"}
1
+ {"version":3,"file":"Environment.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/environments/components/Environment.vue"],"names":[],"mappings":"AAsFA,OAAO,KAAK,EACV,cAAc,EACd,iBAAiB,EAClB,MAAM,gCAAgC,CAAA;AACvC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AAInH,KAAK,WAAW,GAAG;IACf,WAAW,EAAE,kBAAkB,CAAA;IAC/B,eAAe,EAAE,MAAM,CAAA;IACvB,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,GAAG,cAAc,CAAC;;;;;;;;AA6LrB,wBAOG"}
@@ -1,53 +1,66 @@
1
- import { defineComponent as m, createElementBlock as a, openBlock as d, createElementVNode as n, createVNode as i, normalizeStyle as v, toDisplayString as u, unref as o } from "vue";
2
- import { ScalarIconButton as r } from "@scalar/components";
3
- import { ScalarIconNotePencil as f, ScalarIconTrash as p } from "@scalar/icons";
4
- import x from "./EnvironmentVariablesTable.vue.js";
5
- const y = { class: "group rounded-lg border" }, b = { class: "bg-b-2 flex justify-between rounded-t-lg px-1 py-1 text-sm" }, g = { class: "flex items-center gap-1" }, h = { class: "flex h-6 w-6 items-center justify-center p-1" }, N = { class: "px-1 py-0.5 text-sm" }, B = { class: "hidden flex-row items-center gap-1 group-hover:flex" }, C = /* @__PURE__ */ m({
1
+ import { defineComponent as v, createElementBlock as s, openBlock as c, normalizeClass as r, createElementVNode as n, createVNode as i, createCommentVNode as u, normalizeStyle as f, toDisplayString as x, createTextVNode as p, unref as o } from "vue";
2
+ import { ScalarIconButton as a } from "@scalar/components";
3
+ import { ScalarIconNotePencil as b, ScalarIconTrash as g } from "@scalar/icons";
4
+ import y from "./EnvironmentVariablesTable.vue.js";
5
+ const N = { class: "flex items-center gap-1.5" }, B = { class: "flex h-6 w-6 items-center justify-center p-1" }, T = { class: "px-1 py-0.5 text-sm font-medium" }, h = {
6
+ key: 0,
7
+ class: "bg-c-accent text-b-1 flex items-center gap-1 rounded px-1.5 py-0.5 text-xs font-medium",
8
+ title: "This is the active environment"
9
+ }, E = { class: "hidden flex-row items-center gap-1 group-hover:flex" }, V = /* @__PURE__ */ v({
6
10
  __name: "Environment",
7
11
  props: {
8
12
  environment: {},
9
13
  environmentName: {},
10
14
  eventBus: {},
15
+ isActive: { type: Boolean, default: !1 },
11
16
  collectionType: {}
12
17
  },
13
18
  emits: ["edit", "delete"],
14
- setup(e, { emit: s }) {
15
- const l = s;
16
- return (E, t) => (d(), a("div", y, [
17
- n("div", b, [
18
- n("div", g, [
19
- n("div", h, [
19
+ setup(e, { emit: m }) {
20
+ const l = m;
21
+ return (k, t) => (c(), s("div", {
22
+ class: r(["group relative rounded-lg border transition-colors", e.isActive ? "border-c-accent bg-c-accent/5" : ""])
23
+ }, [
24
+ n("div", {
25
+ class: r(["flex justify-between rounded-t-lg px-1 py-1 text-sm", e.isActive ? "bg-c-accent/10" : "bg-b-2"])
26
+ }, [
27
+ n("div", N, [
28
+ n("div", B, [
20
29
  n("span", {
21
30
  class: "h-2.5 w-2.5 rounded-full",
22
- style: v({ backgroundColor: e.environment.color })
31
+ style: f({ backgroundColor: e.environment.color })
23
32
  }, null, 4)
24
33
  ]),
25
- n("span", N, u(e.environmentName), 1)
34
+ n("span", T, x(e.environmentName), 1),
35
+ e.isActive ? (c(), s("span", h, [...t[2] || (t[2] = [
36
+ n("span", { class: "size-1.5 rounded-full bg-current" }, null, -1),
37
+ p(" Active ", -1)
38
+ ])])) : u("", !0)
26
39
  ]),
27
- n("div", B, [
28
- i(o(r), {
29
- icon: o(f),
40
+ n("div", E, [
41
+ i(o(a), {
42
+ icon: o(b),
30
43
  label: "Edit Environment",
31
44
  size: "sm",
32
- onClick: t[0] || (t[0] = (c) => l("edit"))
45
+ onClick: t[0] || (t[0] = (d) => l("edit"))
33
46
  }, null, 8, ["icon"]),
34
- i(o(r), {
35
- icon: o(p),
47
+ i(o(a), {
48
+ icon: o(g),
36
49
  label: "Delete Environment",
37
50
  size: "sm",
38
- onClick: t[1] || (t[1] = (c) => l("delete"))
51
+ onClick: t[1] || (t[1] = (d) => l("delete"))
39
52
  }, null, 8, ["icon"])
40
53
  ])
41
- ]),
42
- i(x, {
54
+ ], 2),
55
+ i(y, {
43
56
  collectionType: e.collectionType,
44
57
  environment: e.environment,
45
58
  environmentName: e.environmentName,
46
59
  eventBus: e.eventBus
47
60
  }, null, 8, ["collectionType", "environment", "environmentName", "eventBus"])
48
- ]));
61
+ ], 2));
49
62
  }
50
63
  });
51
64
  export {
52
- C as default
65
+ V as default
53
66
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Modal.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/modal/Modal.vue"],"names":[],"mappings":"AA+YA,OAAO,EAGL,KAAK,UAAU,EAEhB,MAAM,oBAAoB,CAAA;AAC3B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AACnE,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;AAExE,OAAO,EASL,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACtB,MAAM,KAAK,CAAA;AAIZ,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,6CAA6C,CAAA;AAIxF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAKxD,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;;;;;AACH,wBAuWC"}
1
+ {"version":3,"file":"Modal.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/modal/Modal.vue"],"names":[],"mappings":"AAsWA,OAAO,EAGL,KAAK,UAAU,EAEhB,MAAM,oBAAoB,CAAA;AAC3B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AACnE,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;AAExE,OAAO,EASL,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACtB,MAAM,KAAK,CAAA;AAIZ,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,6CAA6C,CAAA;AAIxF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAKxD,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;;;;;AACH,wBAwVC"}
@@ -1,7 +1,7 @@
1
1
  import o from "./Modal.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-6027a07f"]]);
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-07c87e38"]]);
5
5
  export {
6
- m as default
6
+ p as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as C, ref as w, useId as I, watch as N, nextTick as D, onBeforeMount as E, onBeforeUnmount as F, computed as d, toValue as U, withDirectives as k, createElementBlock as u, openBlock as m, createElementVNode as s, unref as o, createVNode as l, withCtx as V, vShow as b } from "vue";
1
+ import { defineComponent as I, ref as w, useId as N, watch as W, nextTick as E, onBeforeMount as F, onBeforeUnmount as U, computed as u, toValue as V, withDirectives as d, createElementBlock as m, openBlock as r, createElementVNode as i, unref as o, createVNode as l, withCtx as D, vShow as v } from "vue";
2
2
  import { addScalarClassesToHeadless as $, ScalarTeleportRoot as A } from "@scalar/components";
3
3
  import { ScalarToasts as z } from "@scalar/use-toasts";
4
4
  import { useFocusTrap as H } from "@vueuse/integrations/useFocusTrap";
@@ -16,7 +16,7 @@ const P = { class: "scalar scalar-app" }, J = { class: "scalar-container" }, Q =
16
16
  }, Y = {
17
17
  key: 1,
18
18
  class: "flex h-full w-full items-center justify-center"
19
- }, Z = {}, me = /* @__PURE__ */ C({
19
+ }, Z = {}, me = /* @__PURE__ */ I({
20
20
  ...Z,
21
21
  __name: "Modal",
22
22
  props: {
@@ -32,8 +32,7 @@ const P = { class: "scalar scalar-app" }, J = { class: "scalar-container" }, Q =
32
32
  options: {}
33
33
  },
34
34
  setup(e, { expose: x }) {
35
- typeof window < "u" && (window.dataDumpWorkspace = () => e.workspaceStore);
36
- const r = {
35
+ const f = {
37
36
  label: "default",
38
37
  id: "default"
39
38
  }, n = w(!1);
@@ -44,39 +43,39 @@ const P = { class: "scalar scalar-app" }, J = { class: "scalar-container" }, Q =
44
43
  modalState: e.modalState,
45
44
  store: e.workspaceStore
46
45
  }), j(e.eventBus, "modal");
47
- const v = w(null), f = I(), { activate: y, deactivate: B } = H(v, {
46
+ const S = w(null), h = N(), { activate: y, deactivate: B } = H(S, {
48
47
  allowOutsideClick: !0,
49
- fallbackFocus: `#${f}`
50
- }), S = () => {
48
+ fallbackFocus: `#${h}`
49
+ }), b = () => {
51
50
  B(), e.eventBus.emit("operation:cancel:request");
52
- }, p = q(() => typeof window < "u" ? window.document.body : null);
53
- N(
51
+ }, g = q(() => typeof window < "u" ? window.document.body : null);
52
+ W(
54
53
  () => e.modalState.open,
55
54
  (a) => {
56
- p.value = a, a ? y({ checkCanFocusTrap: () => D() }) : S();
55
+ g.value = a, a ? y({ checkCanFocusTrap: () => E() }) : b();
57
56
  }
58
- ), E(() => $()), F(() => S());
59
- const g = 288, c = d(
60
- () => e.workspaceStore?.workspace?.["x-scalar-sidebar-width"] ?? g
61
- ), T = (a) => e.workspaceStore?.update("x-scalar-sidebar-width", a), h = d(
57
+ ), F(() => $()), U(() => b());
58
+ const p = 288, c = u(
59
+ () => e.workspaceStore?.workspace?.["x-scalar-sidebar-width"] ?? p
60
+ ), T = (a) => e.workspaceStore?.update("x-scalar-sidebar-width", a), k = u(
62
61
  () => R(e.workspaceStore, e.document.value)
63
- ), W = d(
62
+ ), C = u(
64
63
  () => L(
65
64
  e.document.value?.components?.securitySchemes,
66
- U(e.options)?.authentication?.securitySchemes,
65
+ V(e.options)?.authentication?.securitySchemes,
67
66
  e.workspaceStore.auth,
68
67
  e.document.value?.["x-scalar-navigation"]?.name ?? ""
69
68
  )
70
69
  );
71
70
  return x({
72
71
  sidebarWidth: c,
73
- environment: h
74
- }), (a, t) => k((m(), u("div", P, [
75
- s("div", J, [
76
- s("div", {
77
- id: o(f),
72
+ environment: k
73
+ }), (a, t) => d((r(), m("div", P, [
74
+ i("div", J, [
75
+ d(i("div", {
76
+ id: o(h),
78
77
  ref_key: "client",
79
- ref: v,
78
+ ref: S,
80
79
  "aria-label": "API Client",
81
80
  "aria-modal": "true",
82
81
  class: "scalar-app-layout scalar-client flex",
@@ -84,21 +83,21 @@ const P = { class: "scalar scalar-app" }, J = { class: "scalar-container" }, Q =
84
83
  tabindex: "-1"
85
84
  }, [
86
85
  l(o(A), null, {
87
- default: V(() => [
86
+ default: D(() => [
88
87
  l(o(z)),
89
- e.document.value && e.path?.value && e.method?.value ? (m(), u("main", X, [
88
+ e.document.value && e.path?.value && e.method?.value ? (r(), m("main", X, [
90
89
  l(o(G), {
91
90
  modelValue: n.value,
92
- "onUpdate:modelValue": t[0] || (t[0] = (i) => n.value = i),
91
+ "onUpdate:modelValue": t[0] || (t[0] = (s) => n.value = s),
93
92
  class: "absolute top-2 left-3 z-[10001]"
94
93
  }, null, 8, ["modelValue"]),
95
- k(l(o(K), {
94
+ d(l(o(K), {
96
95
  sidebarWidth: c.value,
97
96
  "onUpdate:sidebarWidth": [
98
- t[1] || (t[1] = (i) => c.value = i),
97
+ t[1] || (t[1] = (s) => c.value = s),
99
98
  T
100
99
  ],
101
- activeWorkspace: r,
100
+ activeWorkspace: f,
102
101
  class: "z-[10000] h-full max-md:absolute! max-md:w-full!",
103
102
  documents: [e.document.value],
104
103
  eventBus: e.eventBus,
@@ -108,14 +107,14 @@ const P = { class: "scalar scalar-app" }, J = { class: "scalar-container" }, Q =
108
107
  workspaces: [],
109
108
  onSelectItem: e.sidebarState.handleSelectItem
110
109
  }, null, 8, ["sidebarWidth", "documents", "eventBus", "sidebarState", "onSelectItem"]), [
111
- [b, n.value]
110
+ [v, n.value]
112
111
  ]),
113
112
  l(O, {
114
- activeWorkspace: r,
113
+ activeWorkspace: f,
115
114
  class: "flex-1",
116
115
  document: e.document.value,
117
116
  documentSlug: e.document.value["x-scalar-navigation"]?.id ?? "",
118
- environment: h.value,
117
+ environment: k.value,
119
118
  eventBus: e.eventBus,
120
119
  exampleName: e.exampleName?.value,
121
120
  layout: "modal",
@@ -123,23 +122,25 @@ const P = { class: "scalar scalar-app" }, J = { class: "scalar-container" }, Q =
123
122
  options: e.options,
124
123
  path: e.path?.value,
125
124
  plugins: e.plugins,
126
- securitySchemes: W.value,
125
+ securitySchemes: C.value,
127
126
  workspaceStore: e.workspaceStore
128
127
  }, null, 8, ["document", "documentSlug", "environment", "eventBus", "exampleName", "method", "options", "path", "plugins", "securitySchemes", "workspaceStore"])
129
- ])) : (m(), u("div", Y, [...t[3] || (t[3] = [
130
- s("span", { class: "text-c-3" }, "No document selected", -1)
128
+ ])) : (r(), m("div", Y, [...t[3] || (t[3] = [
129
+ i("span", { class: "text-c-3" }, "No document selected", -1)
131
130
  ])]))
132
131
  ]),
133
132
  _: 1
134
133
  })
135
- ], 8, Q),
136
- s("div", {
134
+ ], 8, Q), [
135
+ [v, e.modalState.open]
136
+ ]),
137
+ i("div", {
137
138
  class: "scalar-app-exit",
138
- onClick: t[2] || (t[2] = (i) => e.modalState.hide())
139
+ onClick: t[2] || (t[2] = (s) => e.modalState.hide())
139
140
  })
140
141
  ])
141
142
  ], 512)), [
142
- [b, e.modalState.open]
143
+ [v, e.modalState.open]
143
144
  ]);
144
145
  }
145
146
  });
@@ -1 +1 @@
1
- {"version":3,"file":"Operation.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/operation/Operation.vue"],"names":[],"mappings":"AA8MA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAA;AAElE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAA;AAM/D;;;;;;;GAOG;;IAGC,6CAA6C;cACnC,UAAU,CAAC,SAAS,CAAC;;IAD/B,6CAA6C;cACnC,UAAU,CAAC,SAAS,CAAC;;AAHnC,wBAkRC"}
1
+ {"version":3,"file":"Operation.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/operation/Operation.vue"],"names":[],"mappings":"AA8NA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAA;AAElE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAA;AAM/D;;;;;;;GAOG;;IAGC,6CAA6C;cACnC,UAAU,CAAC,SAAS,CAAC;;IAD/B,6CAA6C;cACnC,UAAU,CAAC,SAAS,CAAC;;AAHnC,wBAuSC"}
@@ -1,15 +1,15 @@
1
- import { defineComponent as y, computed as n, toValue as r, onMounted as f, createBlock as g, createElementBlock as k, openBlock as l, unref as i, createElementVNode as x } from "vue";
1
+ import { defineComponent as f, computed as n, toValue as r, onMounted as k, createBlock as x, createElementBlock as g, openBlock as l, unref as i, createElementVNode as w } from "vue";
2
2
  import { getResolvedRef as m } from "@scalar/workspace-store/helpers/get-resolved-ref";
3
3
  import { mapHiddenClientsConfig as C } from "../modal/helpers/map-hidden-clients-config.js";
4
- import { combineParams as w } 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";
4
+ import { combineParams as B } from "./helpers/combine-params.js";
5
+ import { getSelectedServer as U } from "./helpers/get-selected-server.js";
6
+ import { getServers as b } from "../../helpers/get-servers.js";
7
7
  import N from "../../blocks/operation-block/OperationBlock.vue.js";
8
- const b = {
8
+ const E = {
9
9
  key: 1,
10
10
  class: "flex h-full w-full items-center justify-center"
11
- }, V = {}, K = /* @__PURE__ */ y({
12
- ...V,
11
+ }, O = {}, K = /* @__PURE__ */ f({
12
+ ...O,
13
13
  __name: "Operation",
14
14
  props: {
15
15
  documentSlug: {},
@@ -27,16 +27,16 @@ const b = {
27
27
  options: {}
28
28
  },
29
29
  setup(e) {
30
- const u = n(() => e.path ? m(e.document?.paths?.[e.path]) : null), c = n(() => {
30
+ const c = n(() => e.path ? m(e.document?.paths?.[e.path]) : null), u = n(() => {
31
31
  if (!e.path || !e.method)
32
32
  return null;
33
33
  const t = m(e.document?.paths?.[e.path]?.[e.method]);
34
34
  if (!t)
35
35
  return null;
36
- if (!u.value)
36
+ if (!c.value)
37
37
  return t;
38
- const a = w(
39
- u.value.parameters,
38
+ const a = B(
39
+ c.value.parameters,
40
40
  t.parameters
41
41
  );
42
42
  return { ...t, parameters: a };
@@ -50,30 +50,38 @@ const b = {
50
50
  location: "document"
51
51
  }))
52
52
  ]), o = n(() => {
53
- const t = r(e.options)?.servers ?? c.value?.servers ?? u.value?.servers ?? e.document?.servers;
54
- return U(t, {
53
+ const t = r(e.options)?.servers ?? u.value?.servers ?? c.value?.servers ?? e.document?.servers;
54
+ return b(t, {
55
55
  baseServerUrl: r(e.options)?.baseServerURL,
56
56
  documentUrl: e.document?.["x-scalar-original-source-url"]
57
57
  });
58
58
  }), d = n(
59
- () => B(e.document, o.value)
59
+ () => U(e.document, o.value)
60
60
  );
61
- f(() => {
61
+ k(() => {
62
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
63
  });
64
- const h = n(() => e.document?.["x-scalar-set-operation-security"] ? {
64
+ const v = n(() => e.document?.["x-scalar-set-operation-security"] ? {
65
65
  type: "operation",
66
66
  path: e.path ?? "",
67
67
  method: e.method ?? "get"
68
68
  } : {
69
69
  type: "document"
70
- }), v = n(
70
+ }), h = n(() => Array.from(
71
+ new Set(
72
+ Object.keys({
73
+ ...e.document?.["x-scalar-environments"],
74
+ ...e.workspaceStore.workspace["x-scalar-environments"]
75
+ })
76
+ )
77
+ )), S = n(
71
78
  () => C(r(e.options)?.hiddenClients)
72
- ), S = "2.23.4";
73
- return (t, a) => e.path && e.method && e.exampleName && c.value ? (l(), g(i(N), {
79
+ ), y = "2.25.0";
80
+ return (t, a) => e.path && e.method && e.exampleName && u.value ? (l(), x(i(N), {
74
81
  key: 0,
75
- appVersion: i(S),
76
- authMeta: h.value,
82
+ activeEnvironment: e.workspaceStore.workspace["x-scalar-active-environment"],
83
+ appVersion: i(y),
84
+ authMeta: v.value,
77
85
  documentSecurity: e.document?.security ?? [],
78
86
  documentSelectedSecurity: e.workspaceStore.auth.getAuthSelectedSchemas({
79
87
  type: "document",
@@ -81,15 +89,16 @@ const b = {
81
89
  }),
82
90
  documentUrl: e.document?.["x-scalar-original-source-url"],
83
91
  environment: e.environment,
92
+ environments: h.value,
84
93
  eventBus: e.eventBus,
85
94
  exampleKey: e.exampleName,
86
95
  globalCookies: s.value,
87
96
  hideClientButton: r(e.options)?.hideClientButton ?? !1,
88
97
  history: e.workspaceStore.history.getHistory(e.documentSlug, e.path, e.method),
89
- httpClients: v.value,
98
+ httpClients: S.value,
90
99
  layout: e.layout,
91
100
  method: e.method,
92
- operation: c.value,
101
+ operation: u.value,
93
102
  operationSelectedSecurity: e.workspaceStore.auth.getAuthSelectedSchemas({
94
103
  type: "operation",
95
104
  documentName: e.documentSlug,
@@ -104,9 +113,9 @@ const b = {
104
113
  server: d.value,
105
114
  servers: o.value,
106
115
  setOperationSecurity: e.document?.["x-scalar-set-operation-security"] ?? !1,
107
- "onUpdate:servers": a[0] || (a[0] = (M) => e.eventBus.emit("ui:route:page", { name: "document.servers" }))
108
- }, null, 8, ["appVersion", "authMeta", "documentSecurity", "documentSelectedSecurity", "documentUrl", "environment", "eventBus", "exampleKey", "globalCookies", "hideClientButton", "history", "httpClients", "layout", "method", "operation", "operationSelectedSecurity", "path", "plugins", "proxyUrl", "securitySchemes", "selectedClient", "server", "servers", "setOperationSecurity"])) : (l(), k("div", b, [...a[1] || (a[1] = [
109
- x("span", { class: "text-c-3" }, "Select an operation to view details", -1)
116
+ "onUpdate:servers": a[0] || (a[0] = (V) => e.eventBus.emit("ui:route:page", { name: "document.servers" }))
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"])) : (l(), g("div", E, [...a[1] || (a[1] = [
118
+ w("span", { class: "text-c-3" }, "Select an operation to view details", -1)
110
119
  ])]));
111
120
  }
112
121
  });
@@ -1 +1 @@
1
- {"version":3,"file":"workspace-events.d.ts","sourceRoot":"","sources":["../../src/v2/workspace-events.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,KAAK,EAAE,kBAAkB,EAAkB,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAE3G,OAAO,EAAE,KAAK,GAAG,EAAY,MAAM,KAAK,CAAA;AAExC,KAAK,IAAI,CAAC,CAAC,SAAS,MAAM,kBAAkB,IAAI,OAAO,CAAC;IACtD,eAAe,EAAE,CACf,OAAO,EAAE,kBAAkB,CAAC,CAAC,CAAC,KAC3B,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,GAAG,kBAAkB,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAA;IAClF,cAAc,EAAE,CAAC,OAAO,EAAE,kBAAkB,CAAC,CAAC,CAAC,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CACzE,CAAC,CAAA;AAEF,KAAK,KAAK,GAAG;KACV,GAAG,IAAI,MAAM,kBAAkB,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC;CAC9C,CAAA;AA6BD;;;;;;;GAOG;AACH,wBAAgB,gCAAgC,CAAC,EAC/C,QAAQ,EACR,KAAK,EACL,KAAK,GACN,EAAE;IACD,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,KAAK,EAAE,GAAG,CAAC,cAAc,GAAG,IAAI,CAAC,CAAA;IACjC,KAAK,EAAE,KAAK,CAAA;CACb,QAgQA"}
1
+ {"version":3,"file":"workspace-events.d.ts","sourceRoot":"","sources":["../../src/v2/workspace-events.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,KAAK,EAAE,kBAAkB,EAAkB,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAE3G,OAAO,EAAE,KAAK,GAAG,EAAY,MAAM,KAAK,CAAA;AAExC,KAAK,IAAI,CAAC,CAAC,SAAS,MAAM,kBAAkB,IAAI,OAAO,CAAC;IACtD,eAAe,EAAE,CACf,OAAO,EAAE,kBAAkB,CAAC,CAAC,CAAC,KAC3B,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,GAAG,kBAAkB,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAA;IAClF,cAAc,EAAE,CAAC,OAAO,EAAE,kBAAkB,CAAC,CAAC,CAAC,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CACzE,CAAC,CAAA;AAEF,KAAK,KAAK,GAAG;KACV,GAAG,IAAI,MAAM,kBAAkB,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC;CAC9C,CAAA;AA6BD;;;;;;;GAOG;AACH,wBAAgB,gCAAgC,CAAC,EAC/C,QAAQ,EACR,KAAK,EACL,KAAK,GACN,EAAE;IACD,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,KAAK,EAAE,GAAG,CAAC,cAAc,GAAG,IAAI,CAAC,CAAA;IACjC,KAAK,EAAE,KAAK,CAAA;CACb,QAuQA"}
@@ -26,6 +26,13 @@ function l({
26
26
  o.value.workspace().workspace.updateSelectedClient,
27
27
  a
28
28
  )(e)
29
+ ), t.on(
30
+ "workspace:update:active-environment",
31
+ (e) => r(
32
+ "workspace:update:active-environment",
33
+ o.value.workspace().workspace.updateActiveEnvironment,
34
+ a
35
+ )(e)
29
36
  ), t.on(
30
37
  "document:update:icon",
31
38
  (e) => r("document:update:icon", o.value.active().document.updateDocumentIcon, a)(e)
@@ -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.23.4";
36
+ }, v = "2.25.0";
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", {