@scalar/api-client 2.2.37 → 2.2.39

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 (124) hide show
  1. package/CHANGELOG.md +45 -0
  2. package/dist/components/AddressBar/AddressBar.vue.d.ts.map +1 -1
  3. package/dist/components/AddressBar/AddressBar.vue.js +1 -1
  4. package/dist/components/AddressBar/AddressBar.vue2.js +107 -116
  5. package/dist/components/AddressBar/AddressBarHistory.vue.d.ts +2 -1
  6. package/dist/components/AddressBar/AddressBarHistory.vue.d.ts.map +1 -1
  7. package/dist/components/AddressBar/AddressBarHistory.vue.js +2 -2
  8. package/dist/components/AddressBar/AddressBarHistory.vue2.js +95 -75
  9. package/dist/components/AddressBar/AddressBarServer.vue.d.ts +5 -1
  10. package/dist/components/AddressBar/AddressBarServer.vue.d.ts.map +1 -1
  11. package/dist/components/AddressBar/AddressBarServer.vue.js +92 -86
  12. package/dist/components/AddressBar/AddressBarServerItem.vue.d.ts +7 -10
  13. package/dist/components/AddressBar/AddressBarServerItem.vue.d.ts.map +1 -1
  14. package/dist/components/AddressBar/AddressBarServerItem.vue.js +5 -52
  15. package/dist/components/AddressBar/AddressBarServerItem.vue2.js +75 -2
  16. package/dist/components/CodeInput/CodeInput.vue.d.ts +2 -0
  17. package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
  18. package/dist/components/CodeInput/CodeInput.vue.js +1 -1
  19. package/dist/components/CodeInput/CodeInput.vue2.js +72 -64
  20. package/dist/components/CodeInput/codeVariableWidget.d.ts +1 -4
  21. package/dist/components/CodeInput/codeVariableWidget.d.ts.map +1 -1
  22. package/dist/components/DataTable/DataTableInputSelect.vue.d.ts +1 -0
  23. package/dist/components/DataTable/DataTableInputSelect.vue.d.ts.map +1 -1
  24. package/dist/components/DataTable/DataTableInputSelect.vue.js +83 -51
  25. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.d.ts.map +1 -1
  26. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +22 -21
  27. package/dist/components/Server/ServerVariablesForm.vue.d.ts +14 -0
  28. package/dist/components/Server/ServerVariablesForm.vue.d.ts.map +1 -0
  29. package/dist/components/Server/ServerVariablesForm.vue.js +47 -0
  30. package/dist/components/Server/ServerVariablesForm.vue2.js +4 -0
  31. package/dist/components/Server/ServerVariablesSelect.vue.d.ts +12 -0
  32. package/dist/components/Server/ServerVariablesSelect.vue.d.ts.map +1 -0
  33. package/dist/components/Server/ServerVariablesSelect.vue.js +54 -0
  34. package/dist/components/Server/ServerVariablesSelect.vue2.js +4 -0
  35. package/dist/components/Server/ServerVariablesTextbox.vue.d.ts +11 -0
  36. package/dist/components/Server/ServerVariablesTextbox.vue.d.ts.map +1 -0
  37. package/dist/components/Server/ServerVariablesTextbox.vue.js +29 -0
  38. package/dist/components/Server/ServerVariablesTextbox.vue2.js +4 -0
  39. package/dist/components/Server/types.d.ts +9 -0
  40. package/dist/components/Server/types.d.ts.map +1 -0
  41. package/dist/components/SideNav/SideHelp.vue.js +16 -16
  42. package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
  43. package/dist/components/Sidebar/Sidebar.vue.js +2 -2
  44. package/dist/components/Sidebar/Sidebar.vue2.js +11 -10
  45. package/dist/components/Sidebar/SidebarListElement.vue.d.ts.map +1 -1
  46. package/dist/components/Sidebar/SidebarListElement.vue.js +1 -1
  47. package/dist/components/Sidebar/SidebarListElement.vue2.js +10 -9
  48. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts +1 -1
  49. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +1 -1
  50. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +24 -24
  51. package/dist/layouts/App/create-api-client-app.d.ts +95 -26
  52. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  53. package/dist/layouts/Modal/create-api-client-modal.d.ts +190 -52
  54. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
  55. package/dist/layouts/Modal/create-api-client-modal.js +20 -17
  56. package/dist/layouts/Web/create-api-client-web.d.ts +95 -26
  57. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
  58. package/dist/libs/create-client.d.ts +106 -32
  59. package/dist/libs/create-client.d.ts.map +1 -1
  60. package/dist/libs/create-client.js +86 -81
  61. package/dist/libs/find-request.d.ts.map +1 -1
  62. package/dist/libs/importers/curl.js +4 -4
  63. package/dist/store/active-entities.d.ts +13 -4
  64. package/dist/store/active-entities.d.ts.map +1 -1
  65. package/dist/store/collections.d.ts.map +1 -1
  66. package/dist/store/import-spec.d.ts.map +1 -1
  67. package/dist/store/request-example.d.ts +52 -2
  68. package/dist/store/request-example.d.ts.map +1 -1
  69. package/dist/store/requests.d.ts +2 -2
  70. package/dist/store/requests.d.ts.map +1 -1
  71. package/dist/store/servers.d.ts +40 -20
  72. package/dist/store/servers.d.ts.map +1 -1
  73. package/dist/store/store.d.ts +95 -28
  74. package/dist/store/store.d.ts.map +1 -1
  75. package/dist/store/store.js +51 -53
  76. package/dist/style.css +1 -1
  77. package/dist/views/Cookies/Cookies.vue2.js +1 -1
  78. package/dist/views/Environment/Environment.vue2.js +1 -1
  79. package/dist/views/Request/Request.vue.d.ts.map +1 -1
  80. package/dist/views/Request/Request.vue.js +2 -2
  81. package/dist/views/Request/Request.vue2.js +88 -89
  82. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
  83. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +1 -1
  84. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +85 -85
  85. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts +2 -1
  86. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts.map +1 -1
  87. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.js +3 -3
  88. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +16 -17
  89. package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.js +2 -2
  90. package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue2.js +1 -1
  91. package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts.map +1 -1
  92. package/dist/views/Request/RequestSection/RequestPathParams.vue.js +57 -74
  93. package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
  94. package/dist/views/Request/RequestSection/RequestSection.vue.js +2 -2
  95. package/dist/views/Request/RequestSection/RequestSection.vue2.js +39 -38
  96. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts +1 -1
  97. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
  98. package/dist/views/Request/RequestSection/RequestTable.vue.js +2 -2
  99. package/dist/views/Request/RequestSection/RequestTable.vue2.js +8 -7
  100. package/dist/views/Request/RequestSection/RequestTableTooltip.vue.d.ts.map +1 -1
  101. package/dist/views/Request/RequestSection/RequestTableTooltip.vue.js +1 -1
  102. package/dist/views/Request/RequestSection/RequestTableTooltip.vue2.js +5 -5
  103. package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
  104. package/dist/views/Request/RequestSidebar.vue.js +2 -2
  105. package/dist/views/Request/RequestSidebar.vue2.js +143 -143
  106. package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
  107. package/dist/views/Request/RequestSidebarItem.vue.js +1 -1
  108. package/dist/views/Request/RequestSidebarItem.vue2.js +71 -71
  109. package/dist/views/Request/RequestSubpageHeader.vue.d.ts.map +1 -1
  110. package/dist/views/Request/RequestSubpageHeader.vue.js +1 -1
  111. package/dist/views/Request/RequestSubpageHeader.vue2.js +37 -37
  112. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts.map +1 -1
  113. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js +2 -2
  114. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +27 -27
  115. package/dist/views/Request/handle-drag.d.ts +1 -1
  116. package/dist/views/Request/handle-drag.d.ts.map +1 -1
  117. package/dist/views/Request/handle-drag.js +27 -26
  118. package/dist/views/Request/hooks/useOpenApiWatcher.js +1 -1
  119. package/dist/views/Request/libs/{live-sync.d.ts → watch-mode.d.ts} +1 -1
  120. package/dist/views/Request/libs/watch-mode.d.ts.map +1 -0
  121. package/dist/views/Request/libs/{live-sync.js → watch-mode.js} +6 -6
  122. package/dist/views/Servers/Servers.vue2.js +29 -29
  123. package/package.json +14 -14
  124. package/dist/views/Request/libs/live-sync.d.ts.map +0 -1
@@ -0,0 +1,47 @@
1
+ import { defineComponent as h, openBlock as o, createElementBlock as m, Fragment as k, renderList as y, createElementVNode as C, toDisplayString as V, createBlock as v, createCommentVNode as _ } from "vue";
2
+ import S from "./ServerVariablesSelect.vue.js";
3
+ import B from "./ServerVariablesTextbox.vue.js";
4
+ const j = { class: "flex items-center pl-3 py-1.5 after:content-[':'] mr-1.5 group-has-[input]/label:mr-0" }, O = /* @__PURE__ */ h({
5
+ __name: "ServerVariablesForm",
6
+ props: {
7
+ variables: {},
8
+ values: {},
9
+ controls: {}
10
+ },
11
+ emits: ["update:variable"],
12
+ setup(f, { emit: g }) {
13
+ const n = f, d = g;
14
+ function s(e, l) {
15
+ d("update:variable", e, l);
16
+ }
17
+ const i = (e) => {
18
+ var l, r, t;
19
+ return (((l = n.values) == null ? void 0 : l[e]) ?? ((t = (r = n.variables) == null ? void 0 : r[e]) == null ? void 0 : t.default) ?? "").toString();
20
+ };
21
+ return (e, l) => e.variables && Object.keys(e.variables ?? {}).length ? (o(!0), m(k, { key: 0 }, y(Object.keys(e.variables), (r) => {
22
+ var t, u, c, p, b;
23
+ return o(), m("label", {
24
+ key: r,
25
+ class: "group/label flex w-full"
26
+ }, [
27
+ C("span", j, V(r), 1),
28
+ (c = (u = (t = e.variables) == null ? void 0 : t[r]) == null ? void 0 : u.enum) != null && c.length ? (o(), v(S, {
29
+ key: 0,
30
+ controls: e.controls,
31
+ enum: ((b = (p = e.variables[r]) == null ? void 0 : p.enum) == null ? void 0 : b.map((a) => String(a))) ?? [],
32
+ label: r,
33
+ value: i(r),
34
+ onChange: (a) => s(r, a)
35
+ }, null, 8, ["controls", "enum", "label", "value", "onChange"])) : (o(), v(B, {
36
+ key: 1,
37
+ controls: e.controls,
38
+ value: i(r),
39
+ onChange: (a) => s(r, a)
40
+ }, null, 8, ["controls", "value", "onChange"]))
41
+ ]);
42
+ }), 128)) : _("", !0);
43
+ }
44
+ });
45
+ export {
46
+ O as default
47
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./ServerVariablesForm.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,12 @@
1
+ type __VLS_Props = {
2
+ enum: string[];
3
+ value: string;
4
+ controls?: string;
5
+ };
6
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
7
+ change: (v: string) => any;
8
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
9
+ onChange?: ((v: string) => any) | undefined;
10
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
+ export default _default;
12
+ //# sourceMappingURL=ServerVariablesSelect.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ServerVariablesSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Server/ServerVariablesSelect.vue"],"names":[],"mappings":"AA+DA,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,EAAE,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAC;;;;;;AA6GF,wBAQG"}
@@ -0,0 +1,54 @@
1
+ import { defineComponent as v, computed as s, openBlock as r, createBlock as f, unref as a, withCtx as c, createVNode as i, createElementVNode as S, normalizeClass as V, createElementBlock as h, createCommentVNode as g, createTextVNode as C, toDisplayString as k } from "vue";
2
+ import { ScalarListbox as y, ScalarButton as B, ScalarIcon as N } from "@scalar/components";
3
+ const _ = {
4
+ key: 0,
5
+ class: "sr-only"
6
+ }, x = /* @__PURE__ */ v({
7
+ __name: "ServerVariablesSelect",
8
+ props: {
9
+ enum: {},
10
+ value: {},
11
+ controls: {}
12
+ },
13
+ emits: ["change"],
14
+ setup(u, { emit: m }) {
15
+ const o = u, d = m, t = s(
16
+ () => o.enum.map((e) => ({ id: e, label: e }))
17
+ ), l = s({
18
+ get: () => t.value.find((e) => e.id === o.value),
19
+ set: (e) => d("change", (e == null ? void 0 : e.id) ?? "")
20
+ });
21
+ return (e, n) => (r(), f(a(y), {
22
+ modelValue: l.value,
23
+ "onUpdate:modelValue": n[0] || (n[0] = (p) => l.value = p),
24
+ options: t.value
25
+ }, {
26
+ default: c(() => [
27
+ i(a(B), {
28
+ "aria-controls": e.controls,
29
+ class: "h-8 p-0 py-1.5 w-full font-normal",
30
+ variant: "ghost"
31
+ }, {
32
+ default: c(() => [
33
+ S("span", {
34
+ class: V({ "text-c-1": e.value })
35
+ }, [
36
+ e.value ? (r(), h("span", _, " Selected: ")) : g("", !0),
37
+ C(" " + k(e.value || "Select value"), 1)
38
+ ], 2),
39
+ i(a(N), {
40
+ class: "ml-1",
41
+ icon: "ChevronDown",
42
+ size: "sm"
43
+ })
44
+ ]),
45
+ _: 1
46
+ }, 8, ["aria-controls"])
47
+ ]),
48
+ _: 1
49
+ }, 8, ["modelValue", "options"]));
50
+ }
51
+ });
52
+ export {
53
+ x as default
54
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./ServerVariablesSelect.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,11 @@
1
+ type __VLS_Props = {
2
+ value: string;
3
+ controls?: string;
4
+ };
5
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
6
+ change: (v: string) => any;
7
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
8
+ onChange?: ((v: string) => any) | undefined;
9
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLInputElement>;
10
+ export default _default;
11
+ //# sourceMappingURL=ServerVariablesTextbox.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ServerVariablesTextbox.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Server/ServerVariablesTextbox.vue"],"names":[],"mappings":"AAiCA,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAC;;;;;;AAuEF,wBAQG"}
@@ -0,0 +1,29 @@
1
+ import { defineComponent as c, computed as p, withDirectives as u, openBlock as i, createElementBlock as m, vModelText as d } from "vue";
2
+ const f = ["aria-controls"], x = /* @__PURE__ */ c({
3
+ __name: "ServerVariablesTextbox",
4
+ props: {
5
+ value: {},
6
+ controls: {}
7
+ },
8
+ emits: ["change"],
9
+ setup(l, { emit: n }) {
10
+ const a = l, r = n, t = p({
11
+ get: () => a.value,
12
+ set: (e) => r("change", e)
13
+ });
14
+ return (e, o) => u((i(), m("input", {
15
+ "onUpdate:modelValue": o[0] || (o[0] = (s) => t.value = s),
16
+ "aria-controls": e.controls,
17
+ autocomplete: "off",
18
+ class: "px-1.5 text-c-1 border-transparent -outline-offset-1 w-full",
19
+ placeholder: "value",
20
+ spellcheck: "false",
21
+ type: "text"
22
+ }, null, 8, f)), [
23
+ [d, t.value]
24
+ ]);
25
+ }
26
+ });
27
+ export {
28
+ x as default
29
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./ServerVariablesTextbox.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,9 @@
1
+ import type { OpenAPIV3, OpenAPIV3_1 } from '@scalar/openapi-types';
2
+ export type ServerVariables = {
3
+ [variable: string]: ServerVariable;
4
+ };
5
+ export type ServerVariableValues = {
6
+ [variable: string]: string;
7
+ };
8
+ export type ServerVariable = OpenAPIV3.ServerVariableObject | OpenAPIV3_1.ServerVariableObject;
9
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Server/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAEnE,MAAM,MAAM,eAAe,GAAG;IAC5B,CAAC,QAAQ,EAAE,MAAM,GAAG,cAAc,CAAA;CACnC,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG;IACjC,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAA;CAC3B,CAAA;AAED,MAAM,MAAM,cAAc,GACtB,SAAS,CAAC,oBAAoB,GAC9B,WAAW,CAAC,oBAAoB,CAAA"}
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as i, openBlock as r, createBlock as c, unref as s, withCtx as n, createElementVNode as e, createVNode as l, createTextVNode as d } from "vue";
2
- import { ScalarDropdown as u, ScalarDropdownItem as a, ScalarIcon as o } from "@scalar/components";
3
- import f from "./SideNavLink.vue.js";
4
- const p = {
2
+ import { ScalarDropdown as u, ScalarDropdownItem as o, ScalarIcon as a } from "@scalar/components";
3
+ import p from "./SideNavLink.vue.js";
4
+ const f = {
5
5
  class: "no-underline block",
6
6
  href: "https://discord.gg/scalar",
7
7
  target: "_blank"
@@ -11,7 +11,7 @@ const p = {
11
11
  target: "_blank"
12
12
  }, _ = { class: "flex items-center justify-center" }, g = {
13
13
  class: "no-underline block",
14
- href: "mailto:marc@scalar.com",
14
+ href: "mailto:support@scalar.com",
15
15
  target: "_blank"
16
16
  }, b = { class: "flex items-center justify-center" }, k = {
17
17
  class: "no-underline block",
@@ -30,11 +30,11 @@ const p = {
30
30
  }, {
31
31
  items: n(() => [
32
32
  t[6] || (t[6] = e("span", { class: "px-2.5 py-1.5 text-xs text-c-2 font-medium" }, "Support", -1)),
33
- e("a", p, [
34
- l(s(a), { class: "flex items-center gap-1.5 w-full" }, {
33
+ e("a", f, [
34
+ l(s(o), { class: "flex items-center gap-1.5 w-full" }, {
35
35
  default: n(() => [
36
36
  e("div", m, [
37
- l(s(o), {
37
+ l(s(a), {
38
38
  icon: "DiscordLine",
39
39
  size: "xs",
40
40
  thickness: "1.75"
@@ -46,10 +46,10 @@ const p = {
46
46
  })
47
47
  ]),
48
48
  e("a", x, [
49
- l(s(a), { class: "flex items-center gap-1.5 w-full" }, {
49
+ l(s(o), { class: "flex items-center gap-1.5 w-full" }, {
50
50
  default: n(() => [
51
51
  e("div", _, [
52
- l(s(o), {
52
+ l(s(a), {
53
53
  icon: "GitHubLine",
54
54
  size: "xs",
55
55
  thickness: "1.75"
@@ -61,10 +61,10 @@ const p = {
61
61
  })
62
62
  ]),
63
63
  e("a", g, [
64
- l(s(a), { class: "flex items-center gap-1.5 w-full" }, {
64
+ l(s(o), { class: "flex items-center gap-1.5 w-full" }, {
65
65
  default: n(() => [
66
66
  e("div", b, [
67
- l(s(o), {
67
+ l(s(a), {
68
68
  icon: "Email",
69
69
  size: "xs"
70
70
  })
@@ -76,10 +76,10 @@ const p = {
76
76
  ]),
77
77
  t[7] || (t[7] = e("span", { class: "px-2.5 py-1.5 text-xs text-c-2 font-medium" }, "Product", -1)),
78
78
  e("a", k, [
79
- l(s(a), { class: "flex items-center gap-1.5 w-full" }, {
79
+ l(s(o), { class: "flex items-center gap-1.5 w-full" }, {
80
80
  default: n(() => [
81
81
  e("div", h, [
82
- l(s(o), {
82
+ l(s(a), {
83
83
  icon: "Changelog",
84
84
  size: "xs",
85
85
  thickness: "1.75"
@@ -91,10 +91,10 @@ const p = {
91
91
  })
92
92
  ]),
93
93
  e("a", w, [
94
- l(s(a), { class: "flex items-center gap-1.5 w-full" }, {
94
+ l(s(o), { class: "flex items-center gap-1.5 w-full" }, {
95
95
  default: n(() => [
96
96
  e("div", y, [
97
- l(s(o), {
97
+ l(s(a), {
98
98
  icon: "Roadmap",
99
99
  size: "xs",
100
100
  thickness: "1.75"
@@ -107,7 +107,7 @@ const p = {
107
107
  ])
108
108
  ]),
109
109
  default: n(() => [
110
- l(f, {
110
+ l(p, {
111
111
  is: "button",
112
112
  icon: "Help",
113
113
  type: "button"
@@ -1 +1 @@
1
- {"version":3,"file":"Sidebar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/Sidebar.vue"],"names":[],"mappings":"AAgJA,KAAK,WAAW,GAAG;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,aAAa,CAAC,EAAE,OAAO,CAAA;CACxB,CAAC;AA8DJ,iBAAS,cAAc;WAmHT,OAAO,IAA6B;;wBAZtB,GAAG;wBACH,GAAG;wBAEH,GAAG;yBADF,GAAG;;;;;;EAe/B;AAeD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;mBAvMD,OAAO;qFA+MzB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"Sidebar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/Sidebar.vue"],"names":[],"mappings":"AAmJA,KAAK,WAAW,GAAG;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,aAAa,CAAC,EAAE,OAAO,CAAA;CACxB,CAAC;AA+DJ,iBAAS,cAAc;WAmHT,OAAO,IAA6B;;wBAZtB,GAAG;wBACH,GAAG;wBAEH,GAAG;yBADF,GAAG;;;;;;EAe/B;AAeD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;mBAxMD,OAAO;qFAgNzB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import o from "./Sidebar.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-9571ad76"]]);
4
+ const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-f2016488"]]);
5
5
  export {
6
- p as default
6
+ m as default
7
7
  };
@@ -1,17 +1,18 @@
1
- import { defineComponent as S, ref as g, withDirectives as D, openBlock as l, createElementBlock as m, normalizeClass as h, normalizeStyle as _, unref as s, renderSlot as n, createElementVNode as r, toDisplayString as L, createCommentVNode as u, Fragment as W, vShow as $ } from "vue";
1
+ import { defineComponent as S, ref as g, withDirectives as D, openBlock as l, createElementBlock as m, normalizeClass as h, normalizeStyle as L, unref as s, renderSlot as n, createElementVNode as r, toDisplayString as _, createCommentVNode as u, Fragment as W, vShow as $ } from "vue";
2
2
  import { useBreakpoints as z } from "@scalar/use-hooks/useBreakpoints";
3
3
  import { useWorkspace as B } from "../../store/store.js";
4
- const C = {
4
+ import { useLayout as C } from "../../hooks/useLayout.js";
5
+ const I = {
5
6
  key: 0,
6
7
  class: "min-h-12 xl:min-h-client-header flex items-center justify-between px-3 py-1.5 md:px-[18px] md:py-2.5 text-sm"
7
- }, I = { class: "font-medium m-0 text-sm whitespace-nowrap" }, O = { class: "relative z-10 pt-0 md:px-2.5 md:pb-2.5 sticky bottom-0 w-[inherit] has-[.empty-sidebar-item]:border-t-1/2" }, V = /* @__PURE__ */ S({
8
+ }, X = { class: "font-medium m-0 text-sm whitespace-nowrap" }, N = { class: "relative z-10 pt-0 md:px-2.5 md:pb-2.5 sticky bottom-0 w-[inherit] has-[.empty-sidebar-item]:border-t-1/2" }, F = /* @__PURE__ */ S({
8
9
  __name: "Sidebar",
9
10
  props: {
10
11
  title: {},
11
12
  isSidebarOpen: { type: Boolean, default: !0 }
12
13
  },
13
14
  setup(y) {
14
- const w = y, { isReadOnly: c, sidebarWidth: o, setSidebarWidth: i } = B(), a = g(!1), p = g(null), { breakpoints: d } = z(), x = (e) => {
15
+ const w = y, { sidebarWidth: o, setSidebarWidth: i } = B(), { layout: c } = C(), a = g(!1), p = g(null), { breakpoints: d } = z(), x = (e) => {
15
16
  e.preventDefault();
16
17
  const f = e.clientX, k = parseInt(
17
18
  getComputedStyle(p.value).width || o.value,
@@ -29,22 +30,22 @@ const C = {
29
30
  ref_key: "sidebarRef",
30
31
  ref: p,
31
32
  class: h(["sidebar overflow-hidden relative flex flex-col flex-1 md:flex-none bg-b-1 md:border-b-0 md:border-r-1/2 min-w-full md:min-w-fit leading-3", { dragging: a.value }]),
32
- style: _({ width: s(d).lg ? s(o) : "100%" })
33
+ style: L({ width: s(d).lg ? s(o) : "100%" })
33
34
  }, [
34
35
  n(e.$slots, "header", {}, void 0, !0),
35
- !s(c) && e.title ? (l(), m("div", C, [
36
- r("h2", I, L(e.title), 1),
36
+ s(c) !== "modal" && e.title ? (l(), m("div", I, [
37
+ r("h2", X, _(e.title), 1),
37
38
  s(d).lg ? u("", !0) : n(e.$slots, "button", { key: 0 }, void 0, !0)
38
39
  ])) : u("", !0),
39
40
  r("div", {
40
41
  class: h(["custom-scroll sidebar-height pb-0 md:pb-[37px] w-[inherit]", {
41
- "sidebar-mask": !s(c)
42
+ "sidebar-mask": s(c) !== "modal"
42
43
  }])
43
44
  }, [
44
45
  n(e.$slots, "content", {}, void 0, !0)
45
46
  ], 2),
46
47
  s(d).lg ? (l(), m(W, { key: 1 }, [
47
- r("div", O, [
48
+ r("div", N, [
48
49
  n(e.$slots, "button", {}, void 0, !0)
49
50
  ]),
50
51
  r("div", {
@@ -58,5 +59,5 @@ const C = {
58
59
  }
59
60
  });
60
61
  export {
61
- V as default
62
+ F as default
62
63
  };
@@ -1 +1 @@
1
- {"version":3,"file":"SidebarListElement.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarListElement.vue"],"names":[],"mappings":"AAqHA,OAAO,EAAE,KAAK,IAAI,EAAc,MAAM,oBAAoB,CAAA;AAK1D,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE;QACR,GAAG,EAAE,MAAM,CAAA;QACX,IAAI,EAAE,MAAM,CAAA;QACZ,KAAK,CAAC,EAAE,MAAM,CAAA;QACd,IAAI,CAAC,EAAE,IAAI,CAAA;QACX,SAAS,CAAC,EAAE,OAAO,CAAA;KACpB,CAAA;IACD,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,IAAI,EAAE,aAAa,GAAG,SAAS,GAAG,SAAS,CAAA;CAC5C,CAAC;;;;;;;;;;AAyNF,wBAQG"}
1
+ {"version":3,"file":"SidebarListElement.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarListElement.vue"],"names":[],"mappings":"AAsHA,OAAO,EAAE,KAAK,IAAI,EAAc,MAAM,oBAAoB,CAAA;AAK1D,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE;QACR,GAAG,EAAE,MAAM,CAAA;QACX,IAAI,EAAE,MAAM,CAAA;QACZ,KAAK,CAAC,EAAE,MAAM,CAAA;QACd,IAAI,CAAC,EAAE,IAAI,CAAA;QACX,SAAS,CAAC,EAAE,OAAO,CAAA;KACpB,CAAA;IACD,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,IAAI,EAAE,aAAa,GAAG,SAAS,GAAG,SAAS,CAAA;CAC5C,CAAC;;;;;;;;;;AAyNF,wBAQG"}
@@ -1,7 +1,7 @@
1
1
  import t from "./SidebarListElement.vue2.js";
2
2
  /* empty css */
3
3
  import o from "../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ o(t, [["__scopeId", "data-v-183addc2"]]);
4
+ const m = /* @__PURE__ */ o(t, [["__scopeId", "data-v-85afbcc4"]]);
5
5
  export {
6
6
  m as default
7
7
  };
@@ -16,14 +16,14 @@ const A = { class: "empty-variable-name text-sm line-clamp-1 break-all group-hov
16
16
  },
17
17
  emits: ["delete", "colorModal", "rename"],
18
18
  setup(b, { emit: v }) {
19
- const k = b, r = v, y = V(), { activeWorkspace: t } = S(), f = (e, a, n) => {
20
- var i;
19
+ const k = b, r = v, y = V(), { activeWorkspace: t } = S(), f = (e, a, i) => {
20
+ var n;
21
21
  const o = {
22
- workspaceId: (i = t.value) == null ? void 0 : i.uid,
22
+ workspaceId: (n = t.value) == null ? void 0 : n.uid,
23
23
  type: k.type,
24
- collectionId: n || void 0,
24
+ collectionId: i || void 0,
25
25
  uid: a
26
- }, l = n ? `/workspace/${o.workspaceId}/${o.type}/${o.collectionId}/${o.uid}` : `/workspace/${o.workspaceId}/${o.type}/${o.uid}`;
26
+ }, l = i ? `/workspace/${o.workspaceId}/${o.type}/${o.collectionId}/${o.uid}` : `/workspace/${o.workspaceId}/${o.type}/${o.uid}`;
27
27
  e.metaKey ? window.open(l, "_blank") : y.push({ path: l });
28
28
  }, g = (e) => {
29
29
  r("delete", e);
@@ -34,20 +34,21 @@ const A = { class: "empty-variable-name text-sm line-clamp-1 break-all group-hov
34
34
  };
35
35
  return (e, a) => {
36
36
  var o, l;
37
- const n = h("router-link");
37
+ const i = h("router-link");
38
38
  return s(), c("li", null, [
39
- d(n, {
39
+ d(i, {
40
40
  class: D(["h-8 text-c-2 hover:bg-b-2 group relative block flex items-center gap-1.5 rounded py-1 pr-1.5 font-medium no-underline", [e.variable.color ? "pl-1" : "pl-1.5"]]),
41
41
  exactActiveClass: "active-link",
42
+ role: "button",
42
43
  to: e.collectionId ? `/workspace/${(o = p(t)) == null ? void 0 : o.uid}/${e.type}/${e.collectionId}/${e.variable.uid}` : `/workspace/${(l = p(t)) == null ? void 0 : l.uid}/${e.type}/${e.variable.uid}`,
43
- onClick: a[1] || (a[1] = I((i) => f(i, e.variable.uid, e.collectionId), ["prevent"]))
44
+ onClick: a[1] || (a[1] = I((n) => f(n, e.variable.uid, e.collectionId), ["prevent"]))
44
45
  }, {
45
46
  default: M(() => [
46
47
  e.variable.color ? (s(), c("button", {
47
48
  key: 0,
48
49
  class: "hover:bg-b-3 rounded p-1.5",
49
50
  type: "button",
50
- onClick: a[0] || (a[0] = (i) => w(e.variable.uid))
51
+ onClick: a[0] || (a[0] = (n) => w(e.variable.uid))
51
52
  }, [
52
53
  m("div", {
53
54
  class: "h-2.5 w-2.5 rounded-xl",
@@ -21,9 +21,9 @@ declare function __VLS_template(): {
21
21
  };
22
22
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
23
23
  declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
24
+ layout: "client" | "reference";
24
25
  defaultOpen: boolean;
25
26
  itemCount: number;
26
- layout: "client" | "reference";
27
27
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
28
28
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
29
29
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"ViewLayoutCollapse.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ViewLayout/ViewLayoutCollapse.vue"],"names":[],"mappings":"AAwEA,KAAK,WAAW,GAAG;IACf,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,MAAM,CAAC,EAAE,QAAQ,GAAG,WAAW,CAAA;CAChC,CAAC;AAoBJ,iBAAS,cAAc;WAwJT,OAAO,IAA6B;;;;YAVtB,GAAG;;;YACD,GAAG;;;YACH,GAAG;;;;EAahC;AAaD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;iBAlMH,OAAO;eACT,MAAM;YACT,QAAQ,GAAG,WAAW;6EAwMjC,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"ViewLayoutCollapse.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ViewLayout/ViewLayoutCollapse.vue"],"names":[],"mappings":"AAyEA,KAAK,WAAW,GAAG;IACf,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,MAAM,CAAC,EAAE,QAAQ,GAAG,WAAW,CAAA;CAChC,CAAC;AAoBJ,iBAAS,cAAc;WAwJT,OAAO,IAA6B;;;;YAVtB,GAAG;;;YACD,GAAG;;;YACH,GAAG;;;;EAahC;AAaD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;YAhMR,QAAQ,GAAG,WAAW;iBAFjB,OAAO;eACT,MAAM;6EAyMpB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,10 +1,10 @@
1
- import { defineComponent as f, openBlock as o, createBlock as i, unref as s, withCtx as l, createElementVNode as a, createVNode as u, normalizeClass as c, createCommentVNode as r, renderSlot as n, createElementBlock as d, toDisplayString as p, mergeProps as m } from "vue";
2
- import { Disclosure as h, DisclosureButton as x, DisclosurePanel as b } from "@headlessui/vue";
1
+ import { defineComponent as f, openBlock as o, createBlock as a, unref as s, normalizeClass as l, withCtx as r, createElementVNode as u, createVNode as c, createCommentVNode as n, renderSlot as i, createElementBlock as d, toDisplayString as p, mergeProps as m } from "vue";
2
+ import { Disclosure as h, DisclosureButton as b, DisclosurePanel as x } from "@headlessui/vue";
3
3
  import { ScalarIcon as y } from "@scalar/components";
4
4
  const g = { class: "bg-b-2 flex items-center" }, v = { class: "flex flex-1 items-center gap-1.5 text-c-1" }, C = {
5
5
  key: 0,
6
6
  class: "bg-b-2 text-c-2 text-3xs inline-flex h-4 w-4 items-center justify-center rounded-full font-semibold border"
7
- }, _ = {
7
+ }, k = {
8
8
  key: 0,
9
9
  class: "ui-not-open:invisible flex items-center gap-2 pr-1.5"
10
10
  }, O = /* @__PURE__ */ f({
@@ -14,51 +14,51 @@ const g = { class: "bg-b-2 flex items-center" }, v = { class: "flex flex-1 items
14
14
  itemCount: { default: 0 },
15
15
  layout: { default: "client" }
16
16
  },
17
- setup(k) {
18
- return (e, w) => (o(), i(s(h), {
17
+ setup(_) {
18
+ return (e, w) => (o(), a(s(h), {
19
19
  as: "div",
20
- class: "focus-within:text-c-1 text-c-2 request-item border-b first:border-t",
20
+ class: l(["focus-within:text-c-1 text-c-2 request-item border-b", { "first:border-t": e.layout === "client" }]),
21
21
  defaultOpen: e.defaultOpen,
22
22
  static: e.layout === "reference"
23
23
  }, {
24
- default: l(({ open: t }) => [
25
- a("div", g, [
26
- u(s(x), {
27
- class: c([
24
+ default: r(({ open: t }) => [
25
+ u("div", g, [
26
+ c(s(b), {
27
+ class: l([
28
28
  "group hover:text-c-1 flex flex-1 items-center gap-2.5 overflow-hidden py-1.5 text-sm font-medium max-h-8 px-1 md:px-1.5 xl:pl-2 xl:pr-0.5 outline-none",
29
29
  { "!pl-3": e.layout === "reference" }
30
30
  ]),
31
31
  disabled: e.layout === "reference"
32
32
  }, {
33
- default: l(() => [
34
- e.layout !== "reference" ? (o(), i(s(y), {
33
+ default: r(() => [
34
+ e.layout !== "reference" ? (o(), a(s(y), {
35
35
  key: 0,
36
- class: c([
36
+ class: l([
37
37
  "text-c-3 group-hover:text-c-1 group-focus-visible:outline ui-open:rotate-90 ui-not-open:rotate-0 rounded-px outline-offset-2"
38
38
  ]),
39
39
  icon: "ChevronRight",
40
40
  size: "md"
41
- })) : r("", !0),
42
- a("div", v, [
43
- n(e.$slots, "title", { open: t }),
44
- !t && e.itemCount ? (o(), d("span", C, p(e.itemCount), 1)) : r("", !0)
41
+ })) : n("", !0),
42
+ u("div", v, [
43
+ i(e.$slots, "title", { open: t }),
44
+ !t && e.itemCount ? (o(), d("span", C, p(e.itemCount), 1)) : n("", !0)
45
45
  ])
46
46
  ]),
47
47
  _: 2
48
48
  }, 1032, ["class", "disabled"]),
49
- e.$slots.actions ? (o(), d("div", _, [
50
- n(e.$slots, "actions", { open: t })
51
- ])) : r("", !0)
49
+ e.$slots.actions ? (o(), d("div", k, [
50
+ i(e.$slots, "actions", { open: t })
51
+ ])) : n("", !0)
52
52
  ]),
53
- u(s(b), m(e.$attrs, { class: "h-full max-h-fit rounded-b diclosure-panel" }), {
54
- default: l(() => [
55
- n(e.$slots, "default", { open: t })
53
+ c(s(x), m(e.$attrs, { class: "h-full max-h-fit rounded-b diclosure-panel" }), {
54
+ default: r(() => [
55
+ i(e.$slots, "default", { open: t })
56
56
  ]),
57
57
  _: 2
58
58
  }, 1040)
59
59
  ]),
60
60
  _: 3
61
- }, 8, ["defaultOpen", "static"]));
61
+ }, 8, ["class", "defaultOpen", "static"]));
62
62
  }
63
63
  });
64
64
  export {