@scalar/api-client 2.3.26 → 2.3.27

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 (86) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
  3. package/dist/components/CodeInput/CodeInput.vue.js +2 -2
  4. package/dist/components/CodeInput/CodeInput.vue2.js +75 -72
  5. package/dist/components/CodeInput/codeVariableWidget.d.ts.map +1 -1
  6. package/dist/components/CodeInput/codeVariableWidget.js +48 -45
  7. package/dist/components/DataTable/DataTableInput.vue.d.ts +2 -0
  8. package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
  9. package/dist/components/DataTable/DataTableInput.vue.js +3 -3
  10. package/dist/components/DataTable/DataTableInput.vue2.js +46 -43
  11. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.d.ts +1 -1
  12. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.d.ts.map +1 -1
  13. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +82 -92
  14. package/dist/components/Form/Form.vue.d.ts +2 -2
  15. package/dist/components/Form/Form.vue.d.ts.map +1 -1
  16. package/dist/components/Form/Form.vue.js +17 -14
  17. package/dist/components/ImportCollection/IntegrationLogo.vue.d.ts.map +1 -1
  18. package/dist/components/ImportCollection/IntegrationLogo.vue.js +2 -1
  19. package/dist/components/SideNav/SideNav.vue.d.ts.map +1 -1
  20. package/dist/components/SideNav/SideNav.vue.js +30 -30
  21. package/dist/components/Sidebar/SidebarListElement.vue.d.ts +16 -0
  22. package/dist/components/Sidebar/SidebarListElement.vue.d.ts.map +1 -1
  23. package/dist/components/Sidebar/SidebarListElement.vue.js +3 -2
  24. package/dist/components/Sidebar/SidebarListElement.vue2.js +76 -54
  25. package/dist/components/ViewLayout/ViewLayoutSection.vue.d.ts +2 -2
  26. package/dist/components/ViewLayout/ViewLayoutSection.vue.d.ts.map +1 -1
  27. package/dist/components/ViewLayout/ViewLayoutSection.vue.js +5 -4
  28. package/dist/hooks/useClientConfig.d.ts +6 -6
  29. package/dist/hooks/useClientConfig.d.ts.map +1 -1
  30. package/dist/layouts/App/create-api-client-app.d.ts +3 -3
  31. package/dist/layouts/Modal/create-api-client-modal.d.ts +6 -6
  32. package/dist/layouts/Web/create-api-client-web.d.ts +3 -3
  33. package/dist/libs/create-client.d.ts +3 -3
  34. package/dist/libs/env-helpers.d.ts +10 -2
  35. package/dist/libs/env-helpers.d.ts.map +1 -1
  36. package/dist/libs/env-helpers.js +4 -2
  37. package/dist/libs/environment-parser.d.ts +1 -1
  38. package/dist/libs/hot-keys.d.ts +1 -1
  39. package/dist/libs/send-request/create-request-operation.d.ts.map +1 -1
  40. package/dist/libs/send-request/create-request-operation.js +9 -9
  41. package/dist/libs/send-request/create-request-operation.test.d.ts.map +1 -1
  42. package/dist/libs/string-template.d.ts.map +1 -1
  43. package/dist/libs/string-template.js +35 -21
  44. package/dist/routes.d.ts +10 -10
  45. package/dist/store/active-entities.js +34 -34
  46. package/dist/store/environment.js +1 -1
  47. package/dist/store/store.d.ts +3 -3
  48. package/dist/store/workspace.d.ts +2 -2
  49. package/dist/style.css +1 -1
  50. package/dist/views/Collection/CollectionCookies.vue.d.ts +1 -1
  51. package/dist/views/Collection/CollectionEnvironment.vue.d.ts +1 -1
  52. package/dist/views/Collection/CollectionOverview.vue.d.ts +1 -1
  53. package/dist/views/Collection/CollectionScripts.vue.d.ts +1 -1
  54. package/dist/views/Collection/CollectionServerForm.vue.d.ts.map +1 -1
  55. package/dist/views/Collection/CollectionServerForm.vue.js +39 -34
  56. package/dist/views/Collection/CollectionServers.vue.d.ts.map +1 -1
  57. package/dist/views/Collection/CollectionServers.vue2.js +58 -78
  58. package/dist/views/Collection/CollectionSync.vue.d.ts +1 -1
  59. package/dist/views/Cookies/CookieForm.vue.d.ts +1 -1
  60. package/dist/views/Cookies/CookieRaw.vue.d.ts +1 -1
  61. package/dist/views/Environment/Environment.vue.d.ts.map +1 -1
  62. package/dist/views/Environment/Environment.vue2.js +208 -188
  63. package/dist/views/Environment/EnvironmentColors.vue.js +5 -5
  64. package/dist/views/Environment/EnvironmentModal.vue.js +21 -21
  65. package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts.map +1 -1
  66. package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +9 -9
  67. package/dist/views/Environment/handle-drag.d.ts +13 -0
  68. package/dist/views/Environment/handle-drag.d.ts.map +1 -0
  69. package/dist/views/Environment/handle-drag.js +32 -0
  70. package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts.map +1 -1
  71. package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +111 -88
  72. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.d.ts.map +1 -1
  73. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.js +1 -0
  74. package/dist/views/Request/RequestSection/RequestParams.vue.d.ts.map +1 -1
  75. package/dist/views/Request/RequestSection/RequestParams.vue.js +62 -56
  76. package/dist/views/Request/RequestSection/RequestSection.vue.d.ts +1 -1
  77. package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
  78. package/dist/views/Request/RequestSection/RequestSection.vue.js +4 -4
  79. package/dist/views/Request/RequestSection/RequestSection.vue2.js +42 -47
  80. package/dist/views/Request/RequestSection/RequestTable.vue.js +1 -1
  81. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  82. package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue.d.ts.map +1 -1
  83. package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue.js +2 -2
  84. package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue2.js +10 -10
  85. package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts +1 -1
  86. package/package.json +13 -13
@@ -1,12 +1,12 @@
1
- import { defineComponent as b, ref as d, computed as C, openBlock as n, createBlock as s, normalizeClass as B, withCtx as $, createElementBlock as u, renderSlot as i, createTextVNode as g, createCommentVNode as p, createElementVNode as O, Fragment as I, mergeProps as v, unref as h } from "vue";
1
+ import { defineComponent as b, ref as d, computed as g, openBlock as n, createBlock as s, normalizeClass as B, withCtx as C, createElementBlock as i, renderSlot as u, createTextVNode as $, createCommentVNode as p, createElementVNode as O, Fragment as I, mergeProps as y, unref as h } from "vue";
2
2
  import { ScalarIconButton as A } from "@scalar/components";
3
- import q from "../CodeInput/CodeInput.vue.js";
4
- import E from "./DataTableCell.vue.js";
5
- import F from "./DataTableInputSelect.vue.js";
6
- const S = ["for"], T = { class: "row-1 overflow-x-auto" }, N = ["readOnly", "type", "value"], P = {
3
+ import W from "../CodeInput/CodeInput.vue.js";
4
+ import q from "./DataTableCell.vue.js";
5
+ import E from "./DataTableInputSelect.vue.js";
6
+ const F = ["for"], S = { class: "row-1 relative min-w-0" }, T = ["readOnly", "type", "value"], N = {
7
7
  key: 1,
8
8
  class: "centered-y text-orange absolute right-7 text-xs"
9
- }, W = /* @__PURE__ */ b({
9
+ }, L = /* @__PURE__ */ b({
10
10
  inheritAttrs: !1,
11
11
  __name: "DataTableInput",
12
12
  props: {
@@ -23,64 +23,67 @@ const S = ["for"], T = { class: "row-1 overflow-x-auto" }, N = ["readOnly", "typ
23
23
  environment: {},
24
24
  envVariables: {},
25
25
  workspace: {},
26
- description: {}
26
+ description: {},
27
+ lineWrapping: { type: Boolean, default: !1 }
27
28
  },
28
29
  emits: ["update:modelValue", "inputFocus", "inputBlur", "selectVariable"],
29
- setup(y, { emit: c }) {
30
- const o = y, r = c, t = d(!0), V = d(!1), m = d(null), w = () => {
31
- V.value || r("inputBlur");
32
- }, f = C(
33
- () => o.type === "password" ? t.value ? "password" : "text" : o.type ?? "text"
30
+ setup(v, { emit: c }) {
31
+ const a = v, t = c, r = d(!0), w = d(!1), m = d(null), V = () => {
32
+ w.value || t("inputBlur");
33
+ }, f = g(
34
+ () => a.type === "password" ? "text" : a.type ?? "text"
34
35
  ), k = () => {
35
36
  var e, l;
36
- !((e = o.enum) != null && e.length) && !o.readOnly && ((l = m.value) == null || l.focus());
37
+ !((e = a.enum) != null && e.length) && !a.readOnly && ((l = m.value) == null || l.focus());
37
38
  };
38
- return (e, l) => (n(), s(E, {
39
+ return (e, l) => (n(), s(q, {
39
40
  class: B(["row relative", e.containerClass])
40
41
  }, {
41
- default: $(() => [
42
- e.$slots.default ? (n(), u("div", {
42
+ default: C(() => [
43
+ e.$slots.default ? (n(), i("div", {
43
44
  key: 0,
44
45
  class: "text-c-1 flex items-center pl-3 pr-0",
45
46
  for: e.id ?? "",
46
47
  onClick: k
47
48
  }, [
48
- i(e.$slots, "default", {}, void 0, !0),
49
- l[5] || (l[5] = g(": "))
50
- ], 8, S)) : p("", !0),
51
- O("div", T, [
52
- o.enum && o.enum.length ? (n(), s(F, {
49
+ u(e.$slots, "default", {}, void 0, !0),
50
+ l[5] || (l[5] = $(": "))
51
+ ], 8, F)) : p("", !0),
52
+ O("div", S, [
53
+ a.enum && a.enum.length ? (n(), s(E, {
53
54
  key: 0,
54
- canAddCustomValue: o.canAddCustomEnumValue,
55
- modelValue: o.modelValue,
56
- value: o.enum,
57
- "onUpdate:modelValue": l[0] || (l[0] = (a) => r("update:modelValue", a))
58
- }, null, 8, ["canAddCustomValue", "modelValue", "value"])) : (n(), u(I, { key: 1 }, [
59
- t.value && e.type === "password" ? (n(), u("input", v({ key: 0 }, e.id ? { ...e.$attrs, id: e.id } : e.$attrs, {
55
+ canAddCustomValue: a.canAddCustomEnumValue,
56
+ modelValue: a.modelValue,
57
+ value: a.enum,
58
+ "onUpdate:modelValue": l[0] || (l[0] = (o) => t("update:modelValue", o))
59
+ }, null, 8, ["canAddCustomValue", "modelValue", "value"])) : (n(), i(I, { key: 1 }, [
60
+ r.value && e.type === "password" ? (n(), i("input", y({ key: 0 }, e.id ? { ...e.$attrs, id: e.id } : e.$attrs, {
60
61
  autocomplete: "off",
61
- class: "text-c-1 disabled:text-c-2 py-1.25 peer w-full min-w-0 border-none px-2 -outline-offset-1",
62
+ class: ["text-c-1 disabled:text-c-2 py-1.25 peer w-full min-w-0 border-none px-2 -outline-offset-1", { "scalar-password-input": e.type === "password" }],
62
63
  "data-1p-ignore": "",
63
64
  readOnly: e.readOnly,
64
65
  spellcheck: "false",
65
66
  type: f.value,
66
67
  value: e.modelValue,
67
- onInput: l[1] || (l[1] = (a) => r(
68
+ onInput: l[1] || (l[1] = (o) => t(
68
69
  "update:modelValue",
69
- a.target.value ?? ""
70
+ o.target.value ?? ""
70
71
  ))
71
- }), null, 16, N)) : (n(), s(q, v({ key: 1 }, e.$attrs, {
72
+ }), null, 16, T)) : (n(), s(W, y({ key: 1 }, e.$attrs, {
72
73
  id: e.id,
73
74
  ref_key: "codeInput",
74
75
  ref: m,
75
76
  class: ["text-c-1 disabled:text-c-2 peer w-full min-w-0 border-none -outline-offset-1", [
76
77
  e.type === "password" && e.description && "pr-12",
77
- e.description && "pr-8"
78
+ e.description && "pr-8",
79
+ e.type === "password" && "scalar-password-input"
78
80
  ]],
79
81
  description: e.description,
80
82
  disableCloseBrackets: "",
81
83
  disableTabIndent: "",
82
84
  envVariables: e.envVariables,
83
85
  environment: e.environment,
86
+ lineWrapping: !!e.lineWrapping,
84
87
  max: e.max,
85
88
  min: e.min,
86
89
  modelValue: e.modelValue ?? "",
@@ -89,22 +92,22 @@ const S = ["for"], T = { class: "row-1 overflow-x-auto" }, N = ["readOnly", "typ
89
92
  spellcheck: "false",
90
93
  type: f.value,
91
94
  workspace: e.workspace,
92
- onBlur: w,
93
- onFocus: l[2] || (l[2] = (a) => r("inputFocus")),
94
- "onUpdate:modelValue": l[3] || (l[3] = (a) => r("update:modelValue", a))
95
- }), null, 16, ["id", "class", "description", "envVariables", "environment", "max", "min", "modelValue", "readOnly", "required", "type", "workspace"]))
95
+ onBlur: V,
96
+ onFocus: l[2] || (l[2] = (o) => t("inputFocus")),
97
+ "onUpdate:modelValue": l[3] || (l[3] = (o) => t("update:modelValue", o))
98
+ }), null, 16, ["id", "class", "description", "envVariables", "environment", "lineWrapping", "max", "min", "modelValue", "readOnly", "required", "type", "workspace"]))
96
99
  ], 64))
97
100
  ]),
98
- e.$slots.warning ? (n(), u("div", P, [
99
- i(e.$slots, "warning", {}, void 0, !0)
101
+ e.$slots.warning ? (n(), i("div", N, [
102
+ u(e.$slots, "warning", {}, void 0, !0)
100
103
  ])) : p("", !0),
101
- i(e.$slots, "icon", {}, void 0, !0),
104
+ u(e.$slots, "icon", {}, void 0, !0),
102
105
  e.type === "password" ? (n(), s(h(A), {
103
106
  key: 2,
104
107
  class: "-ml-.5 mr-1.25 p-1.25 h-6 w-6 self-center",
105
- icon: t.value ? "Show" : "Hide",
106
- label: t.value ? "Show Password" : "Hide Password",
107
- onClick: l[4] || (l[4] = (a) => t.value = !t.value)
108
+ icon: r.value ? "Show" : "Hide",
109
+ label: r.value ? "Show Password" : "Hide Password",
110
+ onClick: l[4] || (l[4] = (o) => r.value = !r.value)
108
111
  }, null, 8, ["icon", "label"])) : p("", !0)
109
112
  ]),
110
113
  _: 3
@@ -112,5 +115,5 @@ const S = ["for"], T = { class: "row-1 overflow-x-auto" }, N = ["readOnly", "typ
112
115
  }
113
116
  });
114
117
  export {
115
- W as default
118
+ L as default
116
119
  };
@@ -1,3 +1,3 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, HTMLDivElement>;
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
2
  export default _default;
3
3
  //# sourceMappingURL=EnvironmentSelector.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"EnvironmentSelector.vue.d.ts","sourceRoot":"","sources":["../../../src/components/EnvironmentSelector/EnvironmentSelector.vue"],"names":[],"mappings":";AAsdA,wBAMG"}
1
+ {"version":3,"file":"EnvironmentSelector.vue.d.ts","sourceRoot":"","sources":["../../../src/components/EnvironmentSelector/EnvironmentSelector.vue"],"names":[],"mappings":";AA2cA,wBAMG"}
@@ -1,123 +1,113 @@
1
- import { defineComponent as I, computed as f, watch as B, onMounted as D, openBlock as c, createElementBlock as x, createVNode as s, unref as n, withCtx as l, Fragment as j, renderList as M, createBlock as w, withModifiers as h, createTextVNode as E, toDisplayString as k, createElementVNode as u, normalizeClass as V, createCommentVNode as z } from "vue";
2
- import { ScalarDropdown as L, ScalarDropdownItem as m, ScalarListboxCheckbox as W, ScalarIcon as g, ScalarDropdownDivider as $, ScalarButton as A } from "@scalar/components";
3
- import { useRouter as F } from "vue-router";
1
+ import { defineComponent as b, computed as E, watch as B, onMounted as D, openBlock as c, createBlock as u, unref as n, withCtx as s, createElementBlock as M, Fragment as V, renderList as W, withModifiers as w, createVNode as l, createTextVNode as h, toDisplayString as k, createElementVNode as v, createCommentVNode as j } from "vue";
2
+ import { ScalarDropdown as L, ScalarDropdownItem as d, ScalarListboxCheckbox as g, ScalarDropdownDivider as T, ScalarIcon as $, ScalarButton as z } from "@scalar/components";
3
+ import { useRouter as A } from "vue-router";
4
+ import { PathId as F } from "../../routes.js";
4
5
  import { useActiveEntities as O } from "../../store/active-entities.js";
5
- import { useWorkspace as R } from "../../store/store.js";
6
- import { useLayout as T } from "../../hooks/useLayout.js";
7
- const q = { class: "m-0 flex items-center gap-1.5 whitespace-nowrap font-medium" }, G = { class: "flex h-4 w-4 items-center justify-center" }, Y = /* @__PURE__ */ I({
6
+ import { useWorkspace as P } from "../../store/store.js";
7
+ import { useLayout as R } from "../../hooks/useLayout.js";
8
+ const q = { class: "m-0 flex items-center gap-1.5 whitespace-nowrap font-medium" }, G = { class: "flex h-4 w-4 items-center justify-center" }, ee = /* @__PURE__ */ b({
8
9
  __name: "EnvironmentSelector",
9
10
  setup(H) {
10
- const { activeCollection: a, activeWorkspace: i, activeEnvironment: v } = O(), { collectionMutators: _ } = R(), { layout: b } = T(), C = F(), d = (e) => {
11
+ const { activeCollection: a, activeWorkspace: i, activeEnvironment: m } = O(), { collectionMutators: _ } = P(), { layout: S } = R(), C = A(), p = (e) => {
11
12
  a.value && i.value && (_.edit(
12
13
  a.value.uid,
13
14
  "x-scalar-active-environment",
14
15
  e
15
16
  ), i.value.activeEnvironmentId = e);
16
- }, S = () => {
17
+ }, y = () => {
17
18
  var e;
18
19
  return C.push({
19
- name: "environment",
20
+ name: "environment.default",
20
21
  params: {
21
- environment: (e = i.value) == null ? void 0 : e.uid
22
+ [F.Workspace]: (e = i.value) == null ? void 0 : e.uid
22
23
  }
23
24
  });
24
- }, y = f(() => {
25
- const { value: e } = v, { value: t } = a;
26
- return (e == null ? void 0 : e.uid) || (t == null ? void 0 : t["x-scalar-active-environment"]) || "No Environment";
27
- }), N = f(() => {
25
+ }, I = E(() => {
26
+ const { value: e } = m, { value: t } = a;
27
+ return (e == null ? void 0 : e.name) || (t == null ? void 0 : t["x-scalar-active-environment"]) || "No Environment";
28
+ }), N = E(() => {
28
29
  const { value: e } = a, t = e == null ? void 0 : e["x-scalar-environments"];
29
30
  return t ? Object.entries(t).map(([o, r]) => ({
30
31
  ...r,
31
32
  uid: o,
32
33
  name: o
33
34
  })) : [];
34
- }), p = (e) => {
35
+ }), f = (e) => {
35
36
  const t = e["x-scalar-active-environment"];
36
37
  t && a.value && i.value ? (a.value["x-scalar-active-environment"] = t, i.value.activeEnvironmentId = t) : i.value && (i.value.activeEnvironmentId = "");
37
38
  };
38
39
  return B(
39
40
  a,
40
- (e) => e && p(e)
41
+ (e) => e && f(e)
41
42
  ), D(() => {
42
- a.value && p(a.value);
43
- }), (e, t) => (c(), x("div", null, [
44
- s(n(L), { placement: "bottom-end" }, {
45
- items: l(() => [
46
- (c(!0), x(j, null, M(N.value, (o) => (c(), w(n(m), {
47
- key: o.uid,
48
- class: "group/item flex items-center gap-1.5 overflow-hidden text-ellipsis whitespace-nowrap",
49
- onClick: h((r) => d(o.uid), ["stop"])
50
- }, {
51
- default: l(() => {
52
- var r;
53
- return [
54
- s(n(W), {
55
- selected: ((r = n(a)) == null ? void 0 : r["x-scalar-active-environment"]) === o.uid
56
- }, null, 8, ["selected"]),
57
- E(" " + k(o.name), 1)
58
- ];
59
- }),
60
- _: 2
61
- }, 1032, ["onClick"]))), 128)),
62
- s(n(m), {
63
- class: "group/item flex items-center gap-1.5 overflow-hidden text-ellipsis whitespace-nowrap",
64
- onClick: t[0] || (t[0] = h((o) => d(""), ["stop"]))
65
- }, {
66
- default: l(() => {
67
- var o, r;
68
- return [
69
- u("div", {
70
- class: V([
71
- "flex h-4 w-4 items-center justify-center rounded-full p-[3px]",
72
- ((o = n(v)) == null ? void 0 : o.uid) === "" && ((r = n(a)) == null ? void 0 : r["x-scalar-active-environment"]) === "" ? "bg-c-accent text-b-1" : "shadow-border text-transparent"
73
- ])
74
- }, [
75
- s(n(g), {
76
- class: "size-2.5",
77
- icon: "Checkmark",
78
- thickness: "3"
79
- })
80
- ], 2),
81
- t[1] || (t[1] = E(" No Environment "))
82
- ];
83
- }),
84
- _: 1
43
+ a.value && f(a.value);
44
+ }), (e, t) => (c(), u(n(L), { teleport: "" }, {
45
+ items: s(() => [
46
+ (c(!0), M(V, null, W(N.value, (o) => (c(), u(n(d), {
47
+ key: o.uid,
48
+ class: "group/item flex items-center gap-1.5 overflow-hidden text-ellipsis whitespace-nowrap",
49
+ onClick: w((r) => p(o.uid), ["stop"])
50
+ }, {
51
+ default: s(() => {
52
+ var r;
53
+ return [
54
+ l(n(g), {
55
+ selected: ((r = n(a)) == null ? void 0 : r["x-scalar-active-environment"]) === o.uid
56
+ }, null, 8, ["selected"]),
57
+ h(" " + k(o.name), 1)
58
+ ];
85
59
  }),
86
- s(n($)),
87
- n(b) !== "modal" ? (c(), w(n(m), {
88
- key: 0,
89
- class: "flex items-center gap-1.5",
90
- onClick: S
91
- }, {
92
- default: l(() => [
93
- u("div", G, [
94
- s(n(g), {
95
- icon: "Brackets",
96
- size: "sm"
97
- })
98
- ]),
99
- t[2] || (t[2] = u("span", { class: "leading-none" }, "Manage Environments", -1))
100
- ]),
101
- _: 1
102
- })) : z("", !0)
103
- ]),
104
- default: l(() => [
105
- s(n(A), {
106
- class: "text-c-1 hover:bg-b-2 h-auto w-fit justify-start px-1.5 py-1.5 pl-2 font-normal",
107
- fullWidth: "",
108
- variant: "ghost"
109
- }, {
110
- default: l(() => [
111
- u("h2", q, k(y.value), 1)
60
+ _: 2
61
+ }, 1032, ["onClick"]))), 128)),
62
+ l(n(d), {
63
+ class: "group/item flex items-center gap-1.5 overflow-hidden text-ellipsis whitespace-nowrap",
64
+ onClick: t[0] || (t[0] = w((o) => p(""), ["stop"]))
65
+ }, {
66
+ default: s(() => {
67
+ var o, r, x;
68
+ return [
69
+ l(n(g), {
70
+ selected: ((o = n(m)) == null ? void 0 : o.uid) === "" && ((r = n(a)) == null ? void 0 : r["x-scalar-active-environment"]) === "" || ((x = n(m)) == null ? void 0 : x.name) === "No Environment"
71
+ }, null, 8, ["selected"]),
72
+ t[1] || (t[1] = h(" No Environment "))
73
+ ];
74
+ }),
75
+ _: 1
76
+ }),
77
+ l(n(T)),
78
+ n(S) !== "modal" ? (c(), u(n(d), {
79
+ key: 0,
80
+ class: "flex items-center gap-1.5",
81
+ onClick: y
82
+ }, {
83
+ default: s(() => [
84
+ v("div", G, [
85
+ l(n($), {
86
+ icon: "Brackets",
87
+ size: "sm"
88
+ })
112
89
  ]),
113
- _: 1
114
- })
115
- ]),
116
- _: 1
117
- })
118
- ]));
90
+ t[2] || (t[2] = v("span", { class: "leading-none" }, "Manage Environments", -1))
91
+ ]),
92
+ _: 1
93
+ })) : j("", !0)
94
+ ]),
95
+ default: s(() => [
96
+ l(n(z), {
97
+ class: "text-c-1 hover:bg-b-2 line-clamp-1 h-auto w-fit justify-start px-1.5 py-1.5 font-normal",
98
+ fullWidth: "",
99
+ variant: "ghost"
100
+ }, {
101
+ default: s(() => [
102
+ v("h2", q, k(I.value), 1)
103
+ ]),
104
+ _: 1
105
+ })
106
+ ]),
107
+ _: 1
108
+ }));
119
109
  }
120
110
  });
121
111
  export {
122
- Y as default
112
+ ee as default
123
113
  };
@@ -16,10 +16,10 @@ declare function __VLS_template(): {
16
16
  title?(_: {}): any;
17
17
  };
18
18
  refs: {};
19
- rootEl: HTMLElement;
19
+ rootEl: any;
20
20
  };
21
21
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
22
- declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLElement>;
22
+ declare const __VLS_component: 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>;
23
23
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
24
24
  export default _default;
25
25
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1 +1 @@
1
- {"version":3,"file":"Form.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Form/Form.vue"],"names":[],"mappings":"AA+EA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mCAAmC,CAAA;AAC/D,OAAO,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAA;AAWlE,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,EAAE;QACP,GAAG,EAAE,MAAM,CAAA;QACX,KAAK,EAAE,MAAM,CAAA;QACb,WAAW,EAAE,MAAM,CAAA;KACpB,EAAE,CAAA;IACH,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IACzB,QAAQ,EAAE,CAAC,CAAC,SAAS,IAAI,CAAC,MAAM,CAAC,EAC/B,GAAG,EAAE,CAAC,EACN,KAAK,EAAE,WAAW,CAAC,SAAS,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,KACrC,IAAI,CAAA;CACV,CAAC;AAYF,iBAAS,cAAc;WA+HT,OAAO,IAA6B;;uBARvB,GAAG;;;;EAa7B;AAiBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,0SAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAUpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"Form.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Form/Form.vue"],"names":[],"mappings":"AAmFA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mCAAmC,CAAA;AAC/D,OAAO,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAA;AAWlE,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,EAAE;QACP,GAAG,EAAE,MAAM,CAAA;QACX,KAAK,EAAE,MAAM,CAAA;QACb,WAAW,EAAE,MAAM,CAAA;KACpB,EAAE,CAAA;IACH,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IACzB,QAAQ,EAAE,CAAC,CAAC,SAAS,IAAI,CAAC,MAAM,CAAC,EAC/B,GAAG,EAAE,CAAC,EACN,KAAK,EAAE,WAAW,CAAC,SAAS,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,KACrC,IAAI,CAAA;CACV,CAAC;AAYF,iBAAS,cAAc;WAsIT,OAAO,IAA6B;;uBARvB,GAAG;;;;EAa7B;AAiBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,kSAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAUpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,11 +1,11 @@
1
- import { defineComponent as v, useId as b, openBlock as l, createBlock as r, createSlots as c, withCtx as o, createElementVNode as n, unref as t, createElementBlock as m, Fragment as y, renderList as h, normalizeClass as V, createVNode as p, toDisplayString as f, createCommentVNode as g, renderSlot as w } from "vue";
1
+ import { defineComponent as b, useId as v, openBlock as l, createBlock as r, createSlots as c, withCtx as o, createElementVNode as n, unref as t, createElementBlock as m, Fragment as y, renderList as h, normalizeClass as g, createVNode as p, toDisplayString as u, createCommentVNode as V, renderSlot as w } from "vue";
2
2
  import { ScalarIcon as E } from "@scalar/components";
3
3
  import C from "../DataTable/DataTable.vue.js";
4
4
  import S from "../DataTable/DataTableInput.vue.js";
5
5
  import U from "../DataTable/DataTableRow.vue.js";
6
6
  import $ from "../ViewLayout/ViewLayoutSection.vue.js";
7
- import { useActiveEntities as B } from "../../store/active-entities.js";
8
- const D = { key: 0 }, F = { class: "custom-scroll flex flex-1 flex-col gap-1.5" }, I = ["for"], N = { class: "bg-b-2 flex-center border-l px-2" }, q = /* @__PURE__ */ v({
7
+ import { useActiveEntities as z } from "../../store/active-entities.js";
8
+ const B = { key: 0 }, D = { class: "flex flex-1 flex-col gap-1.5" }, F = ["for"], I = { class: "centered-y bg-b-2 flex-center z-1 absolute right-1 rounded px-1 py-0.5" }, q = /* @__PURE__ */ b({
9
9
  __name: "Form",
10
10
  props: {
11
11
  title: {},
@@ -13,24 +13,27 @@ const D = { key: 0 }, F = { class: "custom-scroll flex flex-1 flex-col gap-1.5"
13
13
  data: {},
14
14
  onUpdate: { type: Function }
15
15
  },
16
- setup(z) {
17
- const { activeEnvVariables: u, activeEnvironment: k, activeWorkspace: s } = B(), i = b();
18
- return (e, T) => (l(), r($, null, c({
16
+ setup(N) {
17
+ const { activeEnvVariables: f, activeEnvironment: k, activeWorkspace: s } = z(), i = v();
18
+ return (e, T) => (l(), r($, { class: "rounded-b-lg" }, c({
19
19
  default: o(() => [
20
- n("div", F, [
20
+ n("div", D, [
21
21
  Object.keys(e.data).length > 0 && t(s) ? (l(), r(C, {
22
22
  key: 0,
23
- columns: [""]
23
+ columns: [""],
24
+ class: "rounded-b-lg"
24
25
  }, {
25
26
  default: o(() => [
26
27
  (l(!0), m(y, null, h(e.options, (a, d) => (l(), r(U, {
27
28
  key: d,
28
- class: V({ "border-t": d === 0 })
29
+ class: g({ "border-t": d === 0 })
29
30
  }, {
30
31
  default: o(() => [
31
32
  p(S, {
33
+ class: "pr-9",
34
+ lineWrapping: "",
32
35
  id: t(i),
33
- envVariables: t(u),
36
+ envVariables: t(f),
34
37
  environment: t(k),
35
38
  modelValue: e.data[a.key] ?? "",
36
39
  placeholder: a.placeholder,
@@ -38,14 +41,14 @@ const D = { key: 0 }, F = { class: "custom-scroll flex flex-1 flex-col gap-1.5"
38
41
  "onUpdate:modelValue": (_) => e.onUpdate(a.key, _)
39
42
  }, c({
40
43
  default: o(() => [
41
- n("label", { for: t(i) }, f(a.label), 9, I)
44
+ n("label", { for: t(i) }, u(a.label), 9, F)
42
45
  ]),
43
46
  _: 2
44
47
  }, [
45
48
  a.key === "description" ? {
46
49
  name: "icon",
47
50
  fn: o(() => [
48
- n("div", N, [
51
+ n("div", I, [
49
52
  p(t(E), {
50
53
  icon: "Markdown",
51
54
  size: "lg"
@@ -60,7 +63,7 @@ const D = { key: 0 }, F = { class: "custom-scroll flex flex-1 flex-col gap-1.5"
60
63
  }, 1032, ["class"]))), 128))
61
64
  ]),
62
65
  _: 1
63
- })) : g("", !0)
66
+ })) : V("", !0)
64
67
  ])
65
68
  ]),
66
69
  _: 2
@@ -68,7 +71,7 @@ const D = { key: 0 }, F = { class: "custom-scroll flex flex-1 flex-col gap-1.5"
68
71
  e.title || e.$slots.title ? {
69
72
  name: "title",
70
73
  fn: o(() => [
71
- e.title ? (l(), m("span", D, f(e.title), 1)) : w(e.$slots, "title", { key: 1 })
74
+ e.title ? (l(), m("span", B, u(e.title), 1)) : w(e.$slots, "title", { key: 1 })
72
75
  ]),
73
76
  key: "0"
74
77
  } : void 0
@@ -1 +1 @@
1
- {"version":3,"file":"IntegrationLogo.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ImportCollection/IntegrationLogo.vue"],"names":[],"mappings":"AA+DA,KAAK,WAAW,GAAG;IACjB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;CAC3B,CAAC;;AAyGF,wBAOG"}
1
+ {"version":3,"file":"IntegrationLogo.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ImportCollection/IntegrationLogo.vue"],"names":[],"mappings":"AAgEA,KAAK,WAAW,GAAG;IACjB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;CAC3B,CAAC;;AA0GF,wBAOG"}
@@ -23,7 +23,8 @@ const I = /* @__PURE__ */ i({
23
23
  "nuxt",
24
24
  "platformatic",
25
25
  "react",
26
- "rust"
26
+ "rust",
27
+ "svelte"
27
28
  ], s = l(() => {
28
29
  var e;
29
30
  const o = "Openapi", t = (e = a.integration) == null ? void 0 : e.toLocaleLowerCase();
@@ -1 +1 @@
1
- {"version":3,"file":"SideNav.vue.d.ts","sourceRoot":"","sources":["../../../src/components/SideNav/SideNav.vue"],"names":[],"mappings":";AAgRA,wBAMG"}
1
+ {"version":3,"file":"SideNav.vue.d.ts","sourceRoot":"","sources":["../../../src/components/SideNav/SideNav.vue"],"names":[],"mappings":";AAkSA,wBAMG"}
@@ -1,22 +1,22 @@
1
- import { defineComponent as k, openBlock as r, createElementBlock as a, normalizeClass as d, unref as e, createVNode as t, withCtx as s, createElementVNode as n, Fragment as w, renderList as b, createTextVNode as u, toDisplayString as y, createCommentVNode as S } from "vue";
2
- import { ScalarIcon as C } from "@scalar/components";
3
- import { useRouter as N } from "vue-router";
1
+ import { defineComponent as w, openBlock as r, createElementBlock as n, normalizeClass as d, unref as e, createVNode as t, withCtx as a, createElementVNode as c, Fragment as k, renderList as b, createTextVNode as u, toDisplayString as y, createCommentVNode as C } from "vue";
2
+ import { ScalarIcon as S } from "@scalar/components";
3
+ import { useRouter as L } from "vue-router";
4
4
  import { ROUTES as B } from "../../constants.js";
5
5
  import { PathId as _ } from "../../routes.js";
6
6
  import E from "./DownloadAppButton.vue.js";
7
- import L from "./SideHelp.vue.js";
7
+ import N from "./SideHelp.vue.js";
8
8
  import g from "./SideNavGroup.vue.js";
9
- import x from "./SideNavRouterLink.vue.js";
9
+ import v from "./SideNavRouterLink.vue.js";
10
10
  import { useActiveEntities as V } from "../../store/active-entities.js";
11
11
  import { useLayout as j } from "../../hooks/useLayout.js";
12
12
  const A = { class: "flex items-center" }, R = { class: "flex items-center" }, W = {
13
13
  key: 0,
14
14
  class: "hidden items-center justify-center sm:ml-1.5 sm:flex"
15
- }, K = /* @__PURE__ */ k({
15
+ }, K = /* @__PURE__ */ w({
16
16
  __name: "SideNav",
17
17
  setup($) {
18
- const { currentRoute: m } = N(), { layout: i } = j(), { activeWorkspace: c } = V();
19
- return (z, l) => (r(), a("nav", {
18
+ const { currentRoute: s } = L(), { layout: i } = j(), { activeWorkspace: l } = V();
19
+ return (z, p) => (r(), n("nav", {
20
20
  "aria-label": "App Navigation",
21
21
  class: d([
22
22
  "app-drag-region flex items-center justify-center gap-1.5 pt-2 sm:justify-between",
@@ -25,36 +25,36 @@ const A = { class: "flex items-center" }, R = { class: "flex items-center" }, W
25
25
  role: "navigation"
26
26
  }, [
27
27
  t(g, { class: "app-no-drag-region" }, {
28
- default: s(() => [
29
- n("a", {
28
+ default: a(() => [
29
+ c("a", {
30
30
  class: d(["ml-1 mr-3 hidden items-center", {
31
31
  "sm:flex": e(i) === "web"
32
32
  }]),
33
33
  href: "https://www.scalar.com",
34
34
  target: "_blank"
35
35
  }, [
36
- t(e(C), {
36
+ t(e(S), {
37
37
  icon: "Logo",
38
38
  size: "xl"
39
39
  })
40
40
  ], 2),
41
- (r(!0), a(w, null, b(e(B).filter(
41
+ (r(!0), n(k, null, b(e(B).filter(
42
42
  (o) => o.to.name !== "settings.default"
43
- ), ({ icon: o, to: h, displayName: p }, v) => {
43
+ ), ({ icon: o, to: x, displayName: m }, h) => {
44
44
  var f;
45
- return r(), a("li", { key: v }, [
46
- t(x, {
47
- active: e(m).name === p.toLowerCase(),
45
+ return r(), n("li", { key: h }, [
46
+ t(v, {
47
+ active: e(s).name === m.toLowerCase() || m.toLowerCase() === "environment" && e(s).name === "environment.collection",
48
48
  icon: o,
49
49
  to: {
50
- ...h,
50
+ ...x,
51
51
  params: {
52
- [e(_).Workspace]: ((f = e(c)) == null ? void 0 : f.uid) ?? "default"
52
+ [e(_).Workspace]: ((f = e(l)) == null ? void 0 : f.uid) ?? "default"
53
53
  }
54
54
  }
55
55
  }, {
56
- default: s(() => [
57
- u(y(p), 1)
56
+ default: a(() => [
57
+ u(y(m), 1)
58
58
  ]),
59
59
  _: 2
60
60
  }, 1032, ["active", "icon", "to"])
@@ -64,32 +64,32 @@ const A = { class: "flex items-center" }, R = { class: "flex items-center" }, W
64
64
  _: 1
65
65
  }),
66
66
  t(g, { class: "app-no-drag-region" }, {
67
- default: s(() => {
67
+ default: a(() => {
68
68
  var o;
69
69
  return [
70
- n("li", A, [
71
- t(x, {
72
- active: e(m).name === "settings",
70
+ c("li", A, [
71
+ t(v, {
72
+ active: e(s).name === "settings",
73
73
  icon: "Settings",
74
74
  to: {
75
75
  name: "settings.default",
76
76
  params: {
77
- [e(_).Workspace]: (o = e(c)) == null ? void 0 : o.uid
77
+ [e(_).Workspace]: (o = e(l)) == null ? void 0 : o.uid
78
78
  }
79
79
  }
80
80
  }, {
81
- default: s(() => l[0] || (l[0] = [
81
+ default: a(() => p[0] || (p[0] = [
82
82
  u(" Settings ")
83
83
  ])),
84
84
  _: 1
85
85
  }, 8, ["active", "to"])
86
86
  ]),
87
- n("li", R, [
88
- t(L)
87
+ c("li", R, [
88
+ t(N)
89
89
  ]),
90
- e(i) !== "desktop" ? (r(), a("li", W, [
90
+ e(i) !== "desktop" ? (r(), n("li", W, [
91
91
  t(E)
92
- ])) : S("", !0)
92
+ ])) : C("", !0)
93
93
  ];
94
94
  }),
95
95
  _: 1