@scalar/api-client 2.0.12 → 2.0.14

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 (54) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/dist/App.vue.d.ts.map +1 -1
  3. package/dist/App.vue.js +51 -28
  4. package/dist/Modal/api-client-modal.d.ts +2 -1
  5. package/dist/Modal/api-client-modal.d.ts.map +1 -1
  6. package/dist/Modal/api-client-modal.js +49 -40
  7. package/dist/components/ActionModal/ActionModalFolder.vue.js +37 -35
  8. package/dist/components/AddressBar/AddressBar.vue.d.ts.map +1 -1
  9. package/dist/components/AddressBar/AddressBar.vue.js +1 -1
  10. package/dist/components/AddressBar/AddressBar.vue2.js +44 -44
  11. package/dist/components/AddressBar/AddressBarServer.vue.d.ts +1 -14
  12. package/dist/components/AddressBar/AddressBarServer.vue.d.ts.map +1 -1
  13. package/dist/components/AddressBar/AddressBarServer.vue.js +54 -59
  14. package/dist/components/CodeInput/CodeInput.vue.d.ts +2 -0
  15. package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
  16. package/dist/components/CodeInput/CodeInput.vue.js +1 -1
  17. package/dist/components/CodeInput/CodeInput.vue2.js +16 -14
  18. package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.d.ts.map +1 -1
  19. package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.js +15 -17
  20. package/dist/components/Sidebar/Sidebar.vue.js +5 -5
  21. package/dist/components/Sidebar/SidebarListElementActions.vue.d.ts.map +1 -1
  22. package/dist/components/Sidebar/SidebarListElementActions.vue.js +12 -12
  23. package/dist/components/TopNav/TopNavItem.vue.d.ts.map +1 -1
  24. package/dist/components/TopNav/TopNavItem.vue.js +1 -1
  25. package/dist/components/TopNav/TopNavItem.vue2.js +10 -7
  26. package/dist/index.d.ts +1 -1
  27. package/dist/index.d.ts.map +1 -1
  28. package/dist/index.js +8 -9
  29. package/dist/libs/index.d.ts +1 -0
  30. package/dist/libs/index.d.ts.map +1 -1
  31. package/dist/libs/index.js +10 -8
  32. package/dist/libs/local-storage.d.ts +9 -0
  33. package/dist/libs/local-storage.d.ts.map +1 -0
  34. package/dist/libs/local-storage.js +36 -0
  35. package/dist/router.d.ts +2 -2
  36. package/dist/router.d.ts.map +1 -1
  37. package/dist/router.js +13 -13
  38. package/dist/store/workspace.d.ts +511 -269
  39. package/dist/store/workspace.d.ts.map +1 -1
  40. package/dist/store/workspace.js +213 -157
  41. package/dist/style.css +1 -1
  42. package/dist/views/Request/Request.vue.d.ts.map +1 -1
  43. package/dist/views/Request/Request.vue.js +1 -1
  44. package/dist/views/Request/Request.vue2.js +105 -102
  45. package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
  46. package/dist/views/Request/RequestSection/RequestBody.vue.js +1 -0
  47. package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
  48. package/dist/views/Request/RequestSidebarItem.vue.js +2 -2
  49. package/dist/views/Request/RequestSidebarItem.vue2.js +25 -25
  50. package/dist/views/Request/ResponseSection/ResponseBody.vue.d.ts.map +1 -1
  51. package/dist/views/Request/ResponseSection/ResponseBody.vue.js +2 -2
  52. package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +56 -56
  53. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js +11 -11
  54. package/package.json +7 -7
@@ -1,7 +1,7 @@
1
- import { defineComponent as I, ref as v, watch as B, unref as t, openBlock as D, createElementBlock as M, createElementVNode as l, createVNode as r, withCtx as k, normalizeClass as S, normalizeStyle as N, withKeys as V, withModifiers as $, toDisplayString as T, createCommentVNode as A, pushScopeId as O, popScopeId as K } from "vue";
2
- import { useWorkspace as P } from "../../store/workspace.js";
3
- import { Listbox as U } from "@headlessui/vue";
4
- import { ScalarButton as H, ScalarIcon as L } from "@scalar/components";
1
+ import { defineComponent as I, ref as p, watch as B, unref as o, openBlock as D, createElementBlock as M, createElementVNode as l, createVNode as r, withCtx as S, normalizeClass as C, normalizeStyle as N, withKeys as V, withModifiers as $, toDisplayString as T, createCommentVNode as A, pushScopeId as K, popScopeId as O } from "vue";
2
+ import { useWorkspace as U } from "../../store/workspace.js";
3
+ import { Listbox as H } from "@headlessui/vue";
4
+ import { ScalarButton as L, ScalarIcon as P } from "@scalar/components";
5
5
  import { REQUEST_METHODS as W } from "@scalar/oas-utils/helpers";
6
6
  import { isMacOS as Q } from "@scalar/use-tooltip";
7
7
  import { useMagicKeys as j, whenever as F } from "@vueuse/core";
@@ -9,36 +9,36 @@ import G from "../HttpMethod/HttpMethod.vue.js";
9
9
  import J from "./AddressBarHistory.vue.js";
10
10
  import X from "./AddressBarServer.vue.js";
11
11
  import { executeRequestBus as m } from "../../libs/eventBusses/executeRequestBus.js";
12
- const x = (d) => (O("data-v-1cb234d7"), d = d(), K(), d), Y = {
12
+ const v = (d) => (K("data-v-9d542c56"), d = d(), O(), d), Y = {
13
13
  key: 0,
14
14
  class: "order-last lg:order-none lg:w-auto w-full"
15
- }, Z = { class: "m-auto flex basis-1/2 flex-row items-center" }, ee = { class: "pointer-events-none absolute left-0 top-0 z-10 block h-full w-full overflow-hidden" }, te = { class: "flex gap-1" }, oe = { class: "custom-scroll scroll-timeline-x relative flex w-full" }, le = /* @__PURE__ */ x(() => /* @__PURE__ */ l("div", { class: "fade-left" }, null, -1)), se = ["contenteditable"], ne = /* @__PURE__ */ x(() => /* @__PURE__ */ l("div", { class: "fade-right" }, null, -1)), ae = /* @__PURE__ */ x(() => /* @__PURE__ */ l("span", { class: "text-xxs relative z-10 lg:flex hidden" }, "Send", -1)), _e = /* @__PURE__ */ I({
15
+ }, Z = { class: "m-auto flex basis-1/2 flex-row items-center" }, ee = { class: "pointer-events-none absolute left-0 top-0 z-10 block h-full w-full overflow-hidden" }, te = { class: "flex gap-1" }, oe = { class: "custom-scroll scroll-timeline-x relative flex w-full" }, le = /* @__PURE__ */ v(() => /* @__PURE__ */ l("div", { class: "fade-left" }, null, -1)), ne = ["contenteditable"], se = /* @__PURE__ */ v(() => /* @__PURE__ */ l("div", { class: "fade-right" }, null, -1)), ae = /* @__PURE__ */ v(() => /* @__PURE__ */ l("span", { class: "text-xxs relative z-10 lg:flex hidden" }, "Send", -1)), _e = /* @__PURE__ */ I({
16
16
  __name: "AddressBar",
17
17
  setup(d) {
18
18
  const {
19
- activeRequest: o,
20
- activeExample: C,
19
+ activeRequest: t,
20
+ activeExample: k,
21
+ isReadOnly: x,
21
22
  requestMutators: h,
22
- requestsHistory: R,
23
- workspace: f
24
- } = P(), g = v(R.value[0]), _ = j();
23
+ requestsHistory: R
24
+ } = U(), g = p(R.value[0]), _ = j();
25
25
  F(
26
26
  Q() ? _.meta_enter : _.ctrl_enter,
27
27
  () => m.emit()
28
28
  );
29
29
  const w = (e) => {
30
- o.value && h.edit(o.value.uid, "path", e);
30
+ !t.value || t.value.path === e || h.edit(t.value.uid, "path", e);
31
31
  };
32
32
  B(
33
33
  () => {
34
34
  var e;
35
- return (e = o.value) == null ? void 0 : e.path;
35
+ return (e = t.value) == null ? void 0 : e.path;
36
36
  },
37
37
  (e) => {
38
- o.value && w(e);
38
+ t.value && w(e);
39
39
  }
40
40
  );
41
- const u = v(100), c = v(!1);
41
+ const u = p(100), c = p(!1);
42
42
  m.on(() => {
43
43
  if (c.value) return;
44
44
  c.value = !0;
@@ -47,34 +47,34 @@ const x = (d) => (O("data-v-1cb234d7"), d = d(), K(), d), Y = {
47
47
  }, 20);
48
48
  });
49
49
  function E(e) {
50
- o.value && h.edit(o.value.uid, "method", e);
50
+ t.value && h.edit(t.value.uid, "method", e);
51
51
  }
52
52
  function q() {
53
- if (!o.value) return;
54
- const { method: e } = o.value;
53
+ if (!t.value) return;
54
+ const { method: e } = t.value;
55
55
  return W[e].backgroundColor;
56
56
  }
57
57
  const z = (e) => {
58
58
  var y;
59
59
  e.preventDefault();
60
- const a = (((y = e.clipboardData) == null ? void 0 : y.getData("text/plain")) || "").replace(/\n/g, ""), n = window.getSelection();
61
- if (!n || n.rangeCount === 0) return;
62
- const i = n.getRangeAt(0);
60
+ const a = (((y = e.clipboardData) == null ? void 0 : y.getData("text/plain")) || "").replace(/\n/g, ""), s = window.getSelection();
61
+ if (!s || s.rangeCount === 0) return;
62
+ const i = s.getRangeAt(0);
63
63
  i.deleteContents();
64
64
  const b = document.createTextNode(a);
65
- i.insertNode(b), i.setStartAfter(b), n.removeAllRanges(), n.addRange(i);
66
- const p = i.startContainer.parentElement;
67
- p && (p.scrollLeft = p.scrollWidth);
65
+ i.insertNode(b), i.setStartAfter(b), s.removeAllRanges(), s.addRange(i);
66
+ const f = i.startContainer.parentElement;
67
+ f && (f.scrollLeft = f.scrollWidth);
68
68
  };
69
- return (e, s) => t(o) && t(C) ? (D(), M("div", Y, [
69
+ return (e, n) => o(t) && o(k) ? (D(), M("div", Y, [
70
70
  l("div", Z, [
71
- r(t(U), {
71
+ r(o(H), {
72
72
  modelValue: g.value,
73
- "onUpdate:modelValue": s[3] || (s[3] = (a) => g.value = a)
73
+ "onUpdate:modelValue": n[3] || (n[3] = (a) => g.value = a)
74
74
  }, {
75
- default: k(({ open: a }) => [
75
+ default: S(({ open: a }) => [
76
76
  l("div", {
77
- class: S([
77
+ class: C([
78
78
  "text-xxs bg-b-1 relative flex w-full lg:min-w-[720px] lg:max-w-[720px] order-last lg:order-none flex-1 flex-row items-stretch rounded border p-[3px]",
79
79
  { "rounded-b-none": a },
80
80
  { "border-transparent": a }
@@ -82,40 +82,40 @@ const x = (d) => (O("data-v-1cb234d7"), d = d(), K(), d), Y = {
82
82
  }, [
83
83
  l("div", ee, [
84
84
  l("div", {
85
- class: S(["bg-mix-transparent bg-mix-amount-95 absolute left-0 top-0 h-full w-full", q()]),
85
+ class: C(["bg-mix-transparent bg-mix-amount-95 absolute left-0 top-0 h-full w-full", q()]),
86
86
  style: N({ transform: `translate3d(-${u.value}%,0,0)` })
87
87
  }, null, 6)
88
88
  ]),
89
89
  l("div", te, [
90
90
  r(G, {
91
91
  class: "font-code text-xxs font-medium",
92
- isEditable: !t(f).isReadOnly,
92
+ isEditable: !o(x),
93
93
  isSquare: "",
94
- method: t(o).method,
94
+ method: o(t).method,
95
95
  onChange: E
96
96
  }, null, 8, ["isEditable", "method"]),
97
- r(X, { workspace: t(f) }, null, 8, ["workspace"])
97
+ r(X)
98
98
  ]),
99
99
  l("div", oe, [
100
100
  le,
101
101
  l("div", {
102
102
  class: "scroll-timeline-x-address font-code text-c-1 flex flex-1 items-center whitespace-nowrap lg:text-sm text-xs font-medium leading-[24.5px] outline-none",
103
- contenteditable: !t(f).isReadOnly,
104
- onInput: s[0] || (s[0] = (n) => w(n.target.innerText)),
105
- onKeydown: s[1] || (s[1] = V($((n) => t(m).emit(), ["prevent"]), ["enter"])),
103
+ contenteditable: !o(x),
104
+ onInput: n[0] || (n[0] = (s) => w(s.target.innerText)),
105
+ onKeydown: n[1] || (n[1] = V($((s) => o(m).emit(), ["prevent"]), ["enter"])),
106
106
  onPaste: z
107
- }, T(t(o).path), 41, se),
108
- ne
107
+ }, T(o(t).path), 41, ne),
108
+ se
109
109
  ]),
110
110
  r(J, { open: a }, null, 8, ["open"]),
111
- r(t(H), {
112
- class: "relative h-auto shrink-0 gap-1.5 overflow-hidden px-2.5 py-1 z-[1]",
111
+ r(o(L), {
112
+ class: "relative h-auto shrink-0 gap-1 overflow-hidden pl-2 pr-2.5 py-1 z-[1]",
113
113
  disabled: c.value,
114
- onClick: s[2] || (s[2] = (n) => t(m).emit())
114
+ onClick: n[2] || (n[2] = (s) => o(m).emit())
115
115
  }, {
116
- default: k(() => [
117
- r(t(L), {
118
- class: "relative z-10 w-2 shrink-0",
116
+ default: S(() => [
117
+ r(o(P), {
118
+ class: "relative z-10 shrink-0",
119
119
  icon: "Play",
120
120
  size: "xs"
121
121
  }),
@@ -1,16 +1,3 @@
1
- declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
2
- workspace: any;
3
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
4
- workspace: any;
5
- }>>>, {}, {}>;
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
6
2
  export default _default;
7
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
8
- type __VLS_TypePropsToOption<T> = {
9
- [K in keyof T]-?: {} extends Pick<T, K> ? {
10
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
11
- } : {
12
- type: import('vue').PropType<T[K]>;
13
- required: true;
14
- };
15
- };
16
3
  //# sourceMappingURL=AddressBarServer.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AddressBarServer.vue.d.ts","sourceRoot":"","sources":["../../../src/components/AddressBar/AddressBarServer.vue"],"names":[],"mappings":";eAgIa,GAAG;;eAAH,GAAG;;AA0RhB,wBAMG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
1
+ {"version":3,"file":"AddressBarServer.vue.d.ts","sourceRoot":"","sources":["../../../src/components/AddressBar/AddressBarServer.vue"],"names":[],"mappings":";AA6YA,wBAKG"}
@@ -1,21 +1,18 @@
1
- import { defineComponent as D, computed as h, resolveComponent as U, openBlock as a, createBlock as S, unref as r, withCtx as i, createElementBlock as m, Fragment as g, renderList as R, createElementVNode as u, normalizeClass as A, createVNode as d, toDisplayString as f, createCommentVNode as L, withModifiers as N } from "vue";
2
- import { useWorkspace as O } from "../../store/workspace.js";
3
- import { ScalarDropdown as V, ScalarDropdownItem as y, ScalarIcon as C, ScalarDropdownDivider as j } from "@scalar/components";
4
- const E = { class: "whitespace-nowrap text-ellipsis overflow-hidden" }, I = { class: "flex items-center justify-center h-4 w-4" }, M = /* @__PURE__ */ u("span", null, "Add Server", -1), F = {
1
+ import { defineComponent as D, computed as h, resolveComponent as U, unref as s, openBlock as p, createBlock as k, withCtx as a, createElementBlock as S, Fragment as A, renderList as L, createElementVNode as d, normalizeClass as N, createVNode as i, toDisplayString as v, withModifiers as R, createCommentVNode as V } from "vue";
2
+ import { useWorkspace as j } from "../../store/workspace.js";
3
+ import { ScalarDropdown as E, ScalarDropdownItem as g, ScalarIcon as C, ScalarDropdownDivider as I } from "@scalar/components";
4
+ const M = { class: "whitespace-nowrap text-ellipsis overflow-hidden" }, O = { class: "flex items-center justify-center h-4 w-4" }, F = /* @__PURE__ */ d("span", null, "Add Server", -1), W = {
5
5
  key: 1,
6
6
  class: "flex whitespace-nowrap items-center font-code lg:text-sm text-xs"
7
- }, H = /* @__PURE__ */ D({
7
+ }, J = /* @__PURE__ */ D({
8
8
  __name: "AddressBarServer",
9
- props: {
10
- workspace: {}
11
- },
12
- setup(W) {
13
- const { activeCollection: l, servers: v, collectionMutators: b } = O(), p = h(
9
+ setup($) {
10
+ const { activeCollection: l, isReadOnly: y, servers: f, collectionMutators: b } = j(), u = h(
14
11
  () => {
15
12
  var e, t;
16
13
  return (t = (e = l.value) == null ? void 0 : e.spec.serverUids) == null ? void 0 : t.map((n) => ({
17
14
  id: n,
18
- label: v[n].url
15
+ label: f[n].url
19
16
  }));
20
17
  }
21
18
  ), z = (e) => {
@@ -27,85 +24,83 @@ const E = { class: "whitespace-nowrap text-ellipsis overflow-hidden" }, I = { cl
27
24
  }, B = (e) => {
28
25
  var t;
29
26
  return ((t = l.value) == null ? void 0 : t.selectedServerUid) === e;
30
- }, x = h(() => {
27
+ }, m = h(() => {
31
28
  var c;
32
- const e = v[((c = l.value) == null ? void 0 : c.selectedServerUid) ?? ""], t = e == null ? void 0 : e.url, n = /{\s*([\w.-]+)\s*}/g;
33
- return t == null ? void 0 : t.replace(n, (s, w) => {
34
- var k, _;
35
- const o = (k = e == null ? void 0 : e.variables) == null ? void 0 : k[w];
36
- return (o == null ? void 0 : o.value) || (o == null ? void 0 : o.default) || ((_ = o == null ? void 0 : o.enum) == null ? void 0 : _[0]) || s;
29
+ const e = f[((c = l.value) == null ? void 0 : c.selectedServerUid) ?? ""], t = e == null ? void 0 : e.url, n = /{\s*([\w.-]+)\s*}/g;
30
+ return t == null ? void 0 : t.replace(n, (r, x) => {
31
+ var _, w;
32
+ const o = (_ = e == null ? void 0 : e.variables) == null ? void 0 : _[x];
33
+ return (o == null ? void 0 : o.value) || (o == null ? void 0 : o.default) || ((w = o == null ? void 0 : o.enum) == null ? void 0 : w[0]) || r;
37
34
  });
38
35
  });
39
36
  return (e, t) => {
40
37
  var c;
41
38
  const n = U("RouterLink");
42
- return p.value && !e.workspace.isReadOnly ? (a(), S(r(V), {
39
+ return u.value && u.value.length > 0 && !s(y) ? (p(), k(s(E), {
43
40
  key: 0,
44
- options: p.value,
41
+ options: u.value,
45
42
  resize: "",
46
43
  teleport: "#scalar-client",
47
- value: (c = r(l)) == null ? void 0 : c.selectedServerUid
44
+ value: (c = s(l)) == null ? void 0 : c.selectedServerUid
48
45
  }, {
49
- items: i(() => [
50
- (a(!0), m(g, null, R(p.value, (s) => (a(), S(r(y), {
51
- key: s.id,
46
+ items: a(() => [
47
+ (p(!0), S(A, null, L(u.value, (r) => (p(), k(s(g), {
48
+ key: r.id,
52
49
  class: "flex !gap-1.5 group font-code text-xxs whitespace-nowrap text-ellipsis overflow-hidden",
53
- value: s.id,
54
- onClick: (w) => z(s.id)
50
+ value: r.id,
51
+ onClick: (x) => z(r.id)
55
52
  }, {
56
- default: i(() => [
57
- u("div", {
58
- class: A([
53
+ default: a(() => [
54
+ d("div", {
55
+ class: N([
59
56
  "flex size-4 items-center justify-center rounded-full p-[3px] group-hover:shadow-border",
60
- B(s.id) ? "bg-blue text-b-1" : "text-transparent"
57
+ B(r.id) ? "bg-blue text-b-1" : "text-transparent"
61
58
  ])
62
59
  }, [
63
- d(r(C), {
60
+ i(s(C), {
64
61
  class: "relative top-[0.5px] size-2.5 stroke-[1.75]",
65
62
  icon: "Checkmark"
66
63
  })
67
64
  ], 2),
68
- u("span", E, f(s.label), 1)
65
+ d("span", M, v(r.label), 1)
69
66
  ]),
70
67
  _: 2
71
68
  }, 1032, ["value", "onClick"]))), 128)),
72
- e.workspace.isReadOnly ? L("", !0) : (a(), m(g, { key: 0 }, [
73
- d(r(j)),
74
- d(r(y), null, {
75
- default: i(() => [
76
- d(n, {
77
- class: "font-code text-xxs flex items-center gap-1.5",
78
- to: "/servers"
79
- }, {
80
- default: i(() => [
81
- u("div", I, [
82
- d(r(C), {
83
- class: "h-2.5",
84
- icon: "Add"
85
- })
86
- ]),
87
- M
69
+ i(s(I)),
70
+ i(s(g), null, {
71
+ default: a(() => [
72
+ i(n, {
73
+ class: "font-code text-xxs flex items-center gap-1.5",
74
+ to: "/servers"
75
+ }, {
76
+ default: a(() => [
77
+ d("div", O, [
78
+ i(s(C), {
79
+ class: "h-2.5",
80
+ icon: "Add"
81
+ })
88
82
  ]),
89
- _: 1
90
- })
91
- ]),
92
- _: 1
93
- })
94
- ], 64))
83
+ F
84
+ ]),
85
+ _: 1
86
+ })
87
+ ]),
88
+ _: 1
89
+ })
95
90
  ]),
96
- default: i(() => [
97
- u("button", {
91
+ default: a(() => [
92
+ d("button", {
98
93
  class: "font-code lg:text-sm text-xs whitespace-nowrap border border-b-3 border-solid rounded px-1.5 text-c-2 z-[1]",
99
94
  type: "button",
100
- onClick: t[0] || (t[0] = N(() => {
95
+ onClick: t[0] || (t[0] = R(() => {
101
96
  }, ["stop"]))
102
- }, f(x.value), 1)
97
+ }, v(m.value), 1)
103
98
  ]),
104
99
  _: 1
105
- }, 8, ["options", "value"])) : (a(), m("div", F, f(x.value), 1));
100
+ }, 8, ["options", "value"])) : m.value ? (p(), S("div", W, v(m.value), 1)) : V("", !0);
106
101
  };
107
102
  }
108
103
  });
109
104
  export {
110
- H as default
105
+ J as default
111
106
  };
@@ -5,6 +5,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
5
5
  error?: boolean;
6
6
  emitOnBlur?: boolean;
7
7
  lineNumbers?: boolean;
8
+ lint?: boolean;
8
9
  language?: CodeMirrorLanguage;
9
10
  handleFieldSubmit?: (e: string) => void;
10
11
  handleFieldChange?: (e: string) => void;
@@ -20,6 +21,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
20
21
  error?: boolean;
21
22
  emitOnBlur?: boolean;
22
23
  lineNumbers?: boolean;
24
+ lint?: boolean;
23
25
  language?: CodeMirrorLanguage;
24
26
  handleFieldSubmit?: (e: string) => void;
25
27
  handleFieldChange?: (e: string) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"CodeInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CodeInput/CodeInput.vue"],"names":[],"mappings":"AAAA,OA+LO,EAGL,KAAK,kBAAkB,EAExB,MAAM,wBAAwB,CAAA;;kBAUb,OAAO;gBACT,MAAM;YACV,OAAO;iBACF,OAAO;kBACN,OAAO;eACV,kBAAkB;wBACT,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;wBACnB,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;;;;;;;;kBAPzB,OAAO;gBACT,MAAM;YACV,OAAO;iBACF,OAAO;kBACN,OAAO;eACV,kBAAkB;wBACT,CAAC,CAAC,EAAE,MAAM,KAAK,I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7 +1,7 @@
1
1
  import o from "./CodeInput.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.js";
4
- const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-a6b5e43f"]]);
4
+ const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-0f065f8e"]]);
5
5
  export {
6
6
  e as default
7
7
  };
@@ -1,9 +1,9 @@
1
- import { defineComponent as _, useAttrs as b, ref as d, toRef as n, watch as B, openBlock as C, createElementBlock as F, mergeProps as y, unref as k } from "vue";
1
+ import { defineComponent as B, useAttrs as _, ref as d, toRef as n, watch as b, openBlock as y, createElementBlock as C, mergeProps as F, unref as k } from "vue";
2
2
  import { useCodeMirror as w, colorPicker as P } from "@scalar/use-codemirror";
3
3
  import { nanoid as V } from "nanoid";
4
4
  const v = ["id"], M = {
5
5
  inheritAttrs: !1
6
- }, R = /* @__PURE__ */ _({
6
+ }, R = /* @__PURE__ */ B({
7
7
  ...M,
8
8
  __name: "CodeInput",
9
9
  props: {
@@ -12,6 +12,7 @@ const v = ["id"], M = {
12
12
  error: { type: Boolean },
13
13
  emitOnBlur: { type: Boolean, default: !0 },
14
14
  lineNumbers: { type: Boolean },
15
+ lint: { type: Boolean },
15
16
  language: {},
16
17
  handleFieldSubmit: {},
17
18
  handleFieldChange: {}
@@ -19,33 +20,34 @@ const v = ["id"], M = {
19
20
  emits: ["submit", "update:modelValue"],
20
21
  setup(c, { emit: f }) {
21
22
  var s;
22
- const o = c, r = f, l = b(), m = l.id || `id-${V()}`, a = d(!1);
23
+ const o = c, l = f, r = _(), m = r.id || `id-${V()}`, a = d(!1);
23
24
  function p(e) {
24
- return o.handleFieldChange ? o.handleFieldChange(e) : r("update:modelValue", e);
25
+ return o.handleFieldChange ? o.handleFieldChange(e) : l("update:modelValue", e);
25
26
  }
26
27
  function h(e) {
27
- return o.handleFieldSubmit ? o.handleFieldSubmit(e) : r("submit", e);
28
+ return o.handleFieldSubmit ? o.handleFieldSubmit(e) : l("submit", e);
28
29
  }
29
30
  function g(e) {
30
31
  a.value = !1, o.emitOnBlur && o.modelValue && h(e);
31
32
  }
32
- const u = [];
33
- o.colorPicker && u.push(P);
34
- const i = d(null), { codeMirror: t } = w({
33
+ const i = [];
34
+ o.colorPicker && i.push(P);
35
+ const u = d(null), { codeMirror: t } = w({
35
36
  content: n(() => o.modelValue ?? ""),
36
37
  onChange: p,
37
38
  onFocus: () => a.value = !0,
38
39
  onBlur: (e) => g(e),
39
- codeMirrorRef: i,
40
+ codeMirrorRef: u,
40
41
  lineNumbers: n(() => o.lineNumbers),
41
42
  language: n(() => o.language),
42
- extensions: u
43
+ lint: n(() => o.lint),
44
+ extensions: i
43
45
  });
44
- return (s = t.value) == null || s.focus(), B(t, () => {
45
- t.value && Object.prototype.hasOwnProperty.call(l, "autofocus") && t.value.focus();
46
- }), (e, O) => (C(), F("div", y({ id: k(m) }, e.$attrs, {
46
+ return (s = t.value) == null || s.focus(), b(t, () => {
47
+ t.value && Object.prototype.hasOwnProperty.call(r, "autofocus") && t.value.focus();
48
+ }), (e, O) => (y(), C("div", F({ id: k(m) }, e.$attrs, {
47
49
  ref_key: "codeMirrorRef",
48
- ref: i,
50
+ ref: u,
49
51
  class: ["font-code w-full whitespace-nowrap text-xs leading-[1.44]", {
50
52
  "flow-code-input--error": e.error
51
53
  }]
@@ -1 +1 @@
1
- {"version":3,"file":"SidebarListElementForm.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Sidebar/Actions/SidebarListElementForm.vue"],"names":[],"mappings":"AAwDA,iBAAS,cAAc;qBA6EM,GAAG;EAiB/B;AACD,QAAA,MAAM,eAAe;aA9GV,OAAO;YACR,MAAM;;;;;aADL,OAAO;YACR,MAAM;;;;UAoHd,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
1
+ {"version":3,"file":"SidebarListElementForm.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Sidebar/Actions/SidebarListElementForm.vue"],"names":[],"mappings":"AAsDA,iBAAS,cAAc;qBA6EM,GAAG;EAiB/B;AACD,QAAA,MAAM,eAAe;aA9GV,OAAO;YACR,MAAM;;;;;aADL,OAAO;YACR,MAAM;;;;UAoHd,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
@@ -1,37 +1,35 @@
1
- import { defineComponent as d, openBlock as f, createElementBlock as p, withModifiers as u, renderSlot as c, createElementVNode as b, createVNode as r, unref as l, withCtx as n, createTextVNode as a, toDisplayString as x } from "vue";
2
- import { ScalarButton as s } from "@scalar/components";
3
- const S = { class: "flex gap-3" }, B = /* @__PURE__ */ d({
1
+ import { defineComponent as d, openBlock as p, createElementBlock as u, withModifiers as f, renderSlot as c, createElementVNode as b, createVNode as r, unref as n, withCtx as l, createTextVNode as a, toDisplayString as S } from "vue";
2
+ import { ScalarButton as i } from "@scalar/components";
3
+ const g = { class: "flex justify-end gap-3" }, y = /* @__PURE__ */ d({
4
4
  __name: "SidebarListElementForm",
5
5
  props: {
6
6
  danger: { type: Boolean },
7
7
  label: {}
8
8
  },
9
9
  emits: ["cancel", "submit"],
10
- setup(g, { emit: i }) {
11
- const o = i;
12
- return (t, e) => (f(), p("form", {
13
- class: "flex flex-col gap-3",
14
- onSubmit: e[1] || (e[1] = u((m) => o("submit"), ["prevent"]))
10
+ setup(v, { emit: s }) {
11
+ const o = s;
12
+ return (t, e) => (p(), u("form", {
13
+ class: "flex flex-col gap-6 text-base",
14
+ onSubmit: e[1] || (e[1] = f((m) => o("submit"), ["prevent"]))
15
15
  }, [
16
16
  c(t.$slots, "default"),
17
- b("div", S, [
18
- r(l(s), {
19
- class: "flex-1",
17
+ b("div", g, [
18
+ r(n(i), {
20
19
  variant: "outlined",
21
20
  onClick: e[0] || (e[0] = (m) => o("cancel"))
22
21
  }, {
23
- default: n(() => [
22
+ default: l(() => [
24
23
  a(" Cancel ")
25
24
  ]),
26
25
  _: 1
27
26
  }),
28
- r(l(s), {
29
- class: "flex-1",
27
+ r(n(i), {
30
28
  error: t.danger,
31
29
  type: "submit"
32
30
  }, {
33
- default: n(() => [
34
- a(x(t.label ?? "Submit"), 1)
31
+ default: l(() => [
32
+ a(S(t.label ?? "Submit"), 1)
35
33
  ]),
36
34
  _: 1
37
35
  }, 8, ["error"])
@@ -40,5 +38,5 @@ const S = { class: "flex gap-3" }, B = /* @__PURE__ */ d({
40
38
  }
41
39
  });
42
40
  export {
43
- B as default
41
+ y as default
44
42
  };
@@ -1,14 +1,14 @@
1
- import { defineComponent as c, openBlock as s, createElementBlock as o, unref as l, createElementVNode as r, renderSlot as t, createCommentVNode as a } from "vue";
2
- import { useWorkspace as i } from "../../store/workspace.js";
1
+ import { defineComponent as l, openBlock as s, createElementBlock as o, unref as c, createElementVNode as r, renderSlot as t, createCommentVNode as i } from "vue";
2
+ import { useWorkspace as a } from "../../store/workspace.js";
3
3
  const d = { class: "w-sidebar relative flex flex-col border-r bg-b-1" }, m = {
4
4
  key: 0,
5
5
  class: "xl:min-h-header py-2.5 flex items-center border-b px-4 text-sm"
6
- }, _ = { class: "font-medium m-0 text-sm" }, p = { class: "custom-scroll sidebar-height" }, x = /* @__PURE__ */ c({
6
+ }, _ = { class: "font-medium m-0 text-sm" }, p = { class: "custom-scroll sidebar-height" }, x = /* @__PURE__ */ l({
7
7
  __name: "Sidebar",
8
8
  setup(f) {
9
- const { workspace: n } = i();
9
+ const { isReadOnly: n } = a();
10
10
  return (e, h) => (s(), o("aside", d, [
11
- l(n).isReadOnly ? a("", !0) : (s(), o("div", m, [
11
+ c(n) ? i("", !0) : (s(), o("div", m, [
12
12
  r("h2", _, [
13
13
  t(e.$slots, "title")
14
14
  ])
@@ -1 +1 @@
1
- {"version":3,"file":"SidebarListElementActions.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarListElementActions.vue"],"names":[],"mappings":";cAmFY;QACR,GAAG,EAAE,MAAM,CAAA;QACX,IAAI,EAAE,MAAM,CAAA;QACZ,SAAS,EAAE,OAAO,CAAA;KACnB;;;;cAJS;QACR,GAAG,EAAE,MAAM,CAAA;QACX,IAAI,EAAE,MAAM,CAAA;QACZ,SAAS,EAAE,OAAO,CAAA;KACnB;;;;AAyLH,wBAOG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
1
+ {"version":3,"file":"SidebarListElementActions.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarListElementActions.vue"],"names":[],"mappings":";cAmFY;QACR,GAAG,EAAE,MAAM,CAAA;QACX,IAAI,EAAE,MAAM,CAAA;QACZ,SAAS,EAAE,OAAO,CAAA;KACnB;;;;cAJS;QACR,GAAG,EAAE,MAAM,CAAA;QACX,IAAI,EAAE,MAAM,CAAA;QACZ,SAAS,EAAE,OAAO,CAAA;KACnB;;;;AA4LH,wBAOG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
@@ -1,15 +1,15 @@
1
- import { defineComponent as y, ref as N, openBlock as l, createElementBlock as c, Fragment as w, createElementVNode as u, unref as a, createVNode as r, withModifiers as $, createCommentVNode as m, withCtx as g, createBlock as D } from "vue";
2
- import x from "./Actions/DeleteSidebarListElement.vue.js";
1
+ import { defineComponent as y, ref as N, openBlock as l, createElementBlock as c, Fragment as w, createElementVNode as u, unref as a, createVNode as r, withModifiers as x, createCommentVNode as m, withCtx as $, createBlock as g } from "vue";
2
+ import D from "./Actions/DeleteSidebarListElement.vue.js";
3
3
  import { useModal as M, ScalarIcon as d, ScalarModal as S } from "@scalar/components";
4
4
  import { useClipboard as A } from "../../hooks/useClipboard.js";
5
- const B = { class: "absolute right-1 opacity-0 group-hover:opacity-100" }, I = /* @__PURE__ */ y({
5
+ const B = { class: "absolute flex right-1 opacity-0 group-hover:opacity-100" }, I = /* @__PURE__ */ y({
6
6
  __name: "SidebarListElementActions",
7
7
  props: {
8
8
  variable: {}
9
9
  },
10
10
  emits: ["delete"],
11
- setup(v, { emit: p }) {
12
- const { variable: b } = v, f = p, t = N({ action: "None", name: "" }), n = M(), { copyToClipboard: C } = A();
11
+ setup(p, { emit: v }) {
12
+ const { variable: b } = p, f = v, t = N({ action: "None", name: "" }), n = M(), { copyToClipboard: C } = A();
13
13
  function h(e) {
14
14
  t.value = { action: e, name: b.name }, n.show();
15
15
  }
@@ -22,26 +22,26 @@ const B = { class: "absolute right-1 opacity-0 group-hover:opacity-100" }, I = /
22
22
  return (e, o) => (l(), c(w, null, [
23
23
  u("div", B, [
24
24
  u("button", {
25
- class: "text-c-3 hover:bg-b-3 hover:text-c-1 rounded p-1.5",
25
+ class: "text-c-3 hover:bg-b-3 hover:text-c-1 rounded p-[5px]",
26
26
  type: "button",
27
27
  onClick: o[0] || (o[0] = (s) => a(C)(e.variable.name))
28
28
  }, [
29
29
  r(a(d), {
30
- class: "h-2.5 w-2.5",
30
+ class: "h-3 w-3 stroke-[1.5]",
31
31
  icon: "Clipboard"
32
32
  })
33
33
  ]),
34
34
  e.variable.isDefault ? m("", !0) : (l(), c("button", {
35
35
  key: 0,
36
- class: "text-c-3 hover:bg-b-3 hover:text-c-1 rounded p-1.5",
36
+ class: "text-c-3 hover:bg-b-3 hover:text-c-1 rounded p-1",
37
37
  type: "button",
38
- onClick: o[1] || (o[1] = $((s) => h(
38
+ onClick: o[1] || (o[1] = x((s) => h(
39
39
  "Delete"
40
40
  /* Delete */
41
41
  ), ["prevent"]))
42
42
  }, [
43
43
  r(a(d), {
44
- class: "h-2.5 w-2.5",
44
+ class: "h-3.5 w-3.5 stroke-[1.5]",
45
45
  icon: "Close"
46
46
  })
47
47
  ]))
@@ -50,8 +50,8 @@ const B = { class: "absolute right-1 opacity-0 group-hover:opacity-100" }, I = /
50
50
  state: a(n),
51
51
  title: `${t.value.action} ${t.value.name}`
52
52
  }, {
53
- default: g(() => [
54
- t.value.action === "Delete" ? (l(), D(x, {
53
+ default: $(() => [
54
+ t.value.action === "Delete" ? (l(), g(D, {
55
55
  key: 0,
56
56
  variableName: t.value.name,
57
57
  onClose: i,
@@ -1 +1 @@
1
- {"version":3,"file":"TopNavItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/TopNav/TopNavItem.vue"],"names":[],"mappings":"AA2HA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAA;;aAM3B,MAAM;YACP,OAAO;;;;;aADN,MAAM;YACP,OAAO;;;;;AAqJnB,wBAOG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,G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