@scalar/api-client 2.2.35 → 2.2.38

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 (164) hide show
  1. package/CHANGELOG.md +61 -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 +96 -76
  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 +5 -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 +126 -112
  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/CommandPalette/CommandActionInput.vue.d.ts +1 -0
  23. package/dist/components/CommandPalette/CommandActionInput.vue.d.ts.map +1 -1
  24. package/dist/components/CommandPalette/CommandActionInput.vue.js +21 -18
  25. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
  26. package/dist/components/CommandPalette/TheCommandPalette.vue.js +2 -2
  27. package/dist/components/CommandPalette/TheCommandPalette.vue2.js +2 -2
  28. package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
  29. package/dist/components/DataTable/DataTableInput.vue.js +2 -2
  30. package/dist/components/DataTable/DataTableInputSelect.vue.d.ts +1 -0
  31. package/dist/components/DataTable/DataTableInputSelect.vue.d.ts.map +1 -1
  32. package/dist/components/DataTable/DataTableInputSelect.vue.js +86 -54
  33. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.d.ts.map +1 -1
  34. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +22 -21
  35. package/dist/components/Form/Form.vue.d.ts.map +1 -1
  36. package/dist/components/Form/Form.vue.js +3 -3
  37. package/dist/components/Server/ServerVariablesForm.vue.d.ts +14 -0
  38. package/dist/components/Server/ServerVariablesForm.vue.d.ts.map +1 -0
  39. package/dist/components/Server/ServerVariablesForm.vue.js +47 -0
  40. package/dist/components/Server/ServerVariablesForm.vue2.js +4 -0
  41. package/dist/components/Server/ServerVariablesSelect.vue.d.ts +12 -0
  42. package/dist/components/Server/ServerVariablesSelect.vue.d.ts.map +1 -0
  43. package/dist/components/Server/ServerVariablesSelect.vue.js +54 -0
  44. package/dist/components/Server/ServerVariablesSelect.vue2.js +4 -0
  45. package/dist/components/Server/ServerVariablesTextbox.vue.d.ts +11 -0
  46. package/dist/components/Server/ServerVariablesTextbox.vue.d.ts.map +1 -0
  47. package/dist/components/Server/ServerVariablesTextbox.vue.js +29 -0
  48. package/dist/components/Server/ServerVariablesTextbox.vue2.js +4 -0
  49. package/dist/components/Server/types.d.ts +9 -0
  50. package/dist/components/Server/types.d.ts.map +1 -0
  51. package/dist/components/SideNav/SideHelp.vue.js +16 -16
  52. package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
  53. package/dist/components/Sidebar/Sidebar.vue.js +2 -2
  54. package/dist/components/Sidebar/Sidebar.vue2.js +11 -10
  55. package/dist/components/Sidebar/SidebarListElement.vue.d.ts.map +1 -1
  56. package/dist/components/Sidebar/SidebarListElement.vue.js +1 -1
  57. package/dist/components/Sidebar/SidebarListElement.vue2.js +10 -9
  58. package/dist/components/TopNav/TopNav.vue.js +27 -27
  59. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts +1 -1
  60. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +1 -1
  61. package/dist/layouts/App/create-api-client-app.d.ts +99 -84
  62. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  63. package/dist/layouts/Modal/create-api-client-modal.d.ts +198 -168
  64. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
  65. package/dist/layouts/Web/create-api-client-web.d.ts +99 -84
  66. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
  67. package/dist/libs/create-client.d.ts +110 -90
  68. package/dist/libs/create-client.d.ts.map +1 -1
  69. package/dist/libs/create-client.js +86 -81
  70. package/dist/libs/find-request.d.ts.map +1 -1
  71. package/dist/libs/importers/curl.js +4 -4
  72. package/dist/libs/index.js +18 -19
  73. package/dist/libs/send-request/index.js +3 -4
  74. package/dist/libs/send-request/send-request.d.ts +0 -14
  75. package/dist/libs/send-request/send-request.d.ts.map +1 -1
  76. package/dist/libs/send-request/send-request.js +120 -142
  77. package/dist/libs/send-request/set-request-cookies.d.ts +27 -0
  78. package/dist/libs/send-request/set-request-cookies.d.ts.map +1 -0
  79. package/dist/libs/send-request/set-request-cookies.js +54 -0
  80. package/dist/store/active-entities.d.ts +13 -4
  81. package/dist/store/active-entities.d.ts.map +1 -1
  82. package/dist/store/active-entities.js +15 -12
  83. package/dist/store/collections.d.ts.map +1 -1
  84. package/dist/store/cookies.d.ts +4 -58
  85. package/dist/store/cookies.d.ts.map +1 -1
  86. package/dist/store/cookies.js +5 -17
  87. package/dist/store/import-spec.d.ts.map +1 -1
  88. package/dist/store/request-example.d.ts +52 -2
  89. package/dist/store/request-example.d.ts.map +1 -1
  90. package/dist/store/requests.d.ts +2 -2
  91. package/dist/store/requests.d.ts.map +1 -1
  92. package/dist/store/servers.d.ts +40 -20
  93. package/dist/store/servers.d.ts.map +1 -1
  94. package/dist/store/store.d.ts +99 -86
  95. package/dist/store/store.d.ts.map +1 -1
  96. package/dist/store/store.js +51 -53
  97. package/dist/style.css +1 -1
  98. package/dist/views/Cookies/CookieForm.vue.d.ts.map +1 -1
  99. package/dist/views/Cookies/CookieForm.vue.js +24 -37
  100. package/dist/views/Cookies/CookieModal.vue.d.ts +21 -0
  101. package/dist/views/Cookies/CookieModal.vue.d.ts.map +1 -0
  102. package/dist/views/Cookies/CookieModal.vue.js +7 -0
  103. package/dist/views/Cookies/CookieModal.vue2.js +88 -0
  104. package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
  105. package/dist/views/Cookies/Cookies.vue2.js +98 -119
  106. package/dist/views/Environment/Environment.vue2.js +1 -1
  107. package/dist/views/Request/Request.vue.d.ts.map +1 -1
  108. package/dist/views/Request/Request.vue.js +2 -2
  109. package/dist/views/Request/Request.vue2.js +88 -89
  110. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
  111. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +1 -1
  112. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +87 -88
  113. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts +2 -1
  114. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts.map +1 -1
  115. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.js +3 -3
  116. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +16 -17
  117. package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.js +2 -2
  118. package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue2.js +1 -1
  119. package/dist/views/Request/RequestSection/RequestBody.vue.js +2 -2
  120. package/dist/views/Request/RequestSection/RequestBody.vue2.js +34 -34
  121. package/dist/views/Request/RequestSection/RequestParams.vue.d.ts +7 -0
  122. package/dist/views/Request/RequestSection/RequestParams.vue.d.ts.map +1 -1
  123. package/dist/views/Request/RequestSection/RequestParams.vue.js +79 -66
  124. package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts.map +1 -1
  125. package/dist/views/Request/RequestSection/RequestPathParams.vue.js +57 -74
  126. package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
  127. package/dist/views/Request/RequestSection/RequestSection.vue.js +2 -2
  128. package/dist/views/Request/RequestSection/RequestSection.vue2.js +91 -64
  129. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts +9 -2
  130. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
  131. package/dist/views/Request/RequestSection/RequestTable.vue.js +2 -2
  132. package/dist/views/Request/RequestSection/RequestTable.vue2.js +168 -129
  133. package/dist/views/Request/RequestSection/RequestTableTooltip.vue.d.ts.map +1 -1
  134. package/dist/views/Request/RequestSection/RequestTableTooltip.vue.js +5 -64
  135. package/dist/views/Request/RequestSection/RequestTableTooltip.vue2.js +46 -2
  136. package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
  137. package/dist/views/Request/RequestSidebar.vue.js +2 -2
  138. package/dist/views/Request/RequestSidebar.vue2.js +143 -143
  139. package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
  140. package/dist/views/Request/RequestSidebarItem.vue.js +1 -1
  141. package/dist/views/Request/RequestSidebarItem.vue2.js +71 -71
  142. package/dist/views/Request/RequestSubpageHeader.vue.d.ts.map +1 -1
  143. package/dist/views/Request/RequestSubpageHeader.vue.js +1 -1
  144. package/dist/views/Request/RequestSubpageHeader.vue2.js +37 -37
  145. package/dist/views/Request/ResponseSection/ResponseCookies.vue.js +19 -17
  146. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts.map +1 -1
  147. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js +2 -2
  148. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +27 -27
  149. package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +31 -31
  150. package/dist/views/Request/handle-drag.d.ts +1 -1
  151. package/dist/views/Request/handle-drag.d.ts.map +1 -1
  152. package/dist/views/Request/handle-drag.js +27 -26
  153. package/dist/views/Request/hooks/useOpenApiWatcher.js +1 -1
  154. package/dist/views/Request/libs/request.d.ts +12 -0
  155. package/dist/views/Request/libs/request.d.ts.map +1 -0
  156. package/dist/views/Request/libs/request.js +4 -0
  157. package/dist/views/Request/libs/{live-sync.d.ts → watch-mode.d.ts} +1 -1
  158. package/dist/views/Request/libs/watch-mode.d.ts.map +1 -0
  159. package/dist/views/Request/libs/{live-sync.js → watch-mode.js} +6 -6
  160. package/dist/views/Servers/Servers.vue2.js +29 -29
  161. package/package.json +10 -12
  162. package/dist/views/Cookies/CookieRaw.vue.js +0 -28
  163. package/dist/views/Cookies/CookieRaw.vue2.js +0 -4
  164. package/dist/views/Request/libs/live-sync.d.ts.map +0 -1
@@ -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":"AAwHA,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;;;;;;;;;;AA0NF,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-b9e543a3"]]);
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",
@@ -1,4 +1,4 @@
1
- import { defineComponent as M, reactive as $, ref as z, computed as B, watch as w, onMounted as E, onBeforeUnmount as j, openBlock as m, createElementBlock as b, createElementVNode as f, createVNode as r, unref as s, withCtx as i, toDisplayString as O, createTextVNode as x, Fragment as V, renderList as D, createBlock as K } from "vue";
1
+ import { defineComponent as M, reactive as $, ref as z, computed as B, watch as w, onMounted as E, onBeforeUnmount as j, openBlock as m, createElementBlock as b, createElementVNode as f, createVNode as l, unref as i, withCtx as s, toDisplayString as O, createTextVNode as x, Fragment as V, renderList as D, createBlock as K } from "vue";
2
2
  import q from "../ScalarHotkey.vue.js";
3
3
  import { ROUTES as F } from "../../constants.js";
4
4
  import { useActiveEntities as H } from "../../store/active-entities.js";
@@ -87,47 +87,47 @@ const ee = { class: "flex relative h-10 pl-2 mac:pl-[72px] t-app__top-nav" }, te
87
87
  t[3] || (t[3] = f("div", { class: "absolute inset-0 app-drag-region" }, null, -1)),
88
88
  f("div", te, [
89
89
  o.length === 1 ? (m(), b("div", oe, [
90
- r(s(W), { triggerClass: "flex custom-scroll gap-1.5 h-full items-center justify-center w-full whitespace-nowrap" }, {
91
- trigger: i(() => {
92
- var n, l;
90
+ l(i(W), { triggerClass: "flex custom-scroll gap-1.5 h-full items-center justify-center w-full whitespace-nowrap" }, {
91
+ trigger: s(() => {
92
+ var n, r;
93
93
  return [
94
- r(s(d), {
94
+ l(i(d), {
95
95
  icon: (n = o[0]) == null ? void 0 : n.icon,
96
96
  size: "xs",
97
97
  thickness: "2.5"
98
98
  }, null, 8, ["icon"]),
99
- f("span", null, O((l = o[0]) == null ? void 0 : l.label), 1)
99
+ f("span", null, O((r = o[0]) == null ? void 0 : r.label), 1)
100
100
  ];
101
101
  }),
102
- content: i(() => [
103
- r(s(G), { placement: "right-start" }, {
104
- floating: i(() => [
105
- r(s(J), { class: "scalar-app scalar-client" }, {
106
- default: i(() => [
107
- r(s(_), {
102
+ content: s(() => [
103
+ l(i(G), { placement: "right-start" }, {
104
+ floating: s(() => [
105
+ l(i(J), { class: "scalar-app scalar-client" }, {
106
+ default: s(() => [
107
+ l(i(_), {
108
108
  class: "flex items-center gap-1.5",
109
109
  onClick: p
110
110
  }, {
111
- default: i(() => [
112
- r(s(d), {
111
+ default: s(() => [
112
+ l(i(d), {
113
113
  icon: "AddTab",
114
114
  size: "sm",
115
115
  thickness: "1.5"
116
116
  }),
117
117
  t[1] || (t[1] = x(" New Tab ")),
118
- r(q, {
118
+ l(q, {
119
119
  class: "bg-b-2 ml-auto",
120
120
  hotkey: "T"
121
121
  })
122
122
  ]),
123
123
  _: 1
124
124
  }),
125
- r(s(_), {
125
+ l(i(_), {
126
126
  class: "flex items-center gap-1.5",
127
127
  onClick: t[0] || (t[0] = (n) => y(T.value))
128
128
  }, {
129
- default: i(() => [
130
- r(s(d), {
129
+ default: s(() => [
130
+ l(i(d), {
131
131
  icon: "Link",
132
132
  size: "sm",
133
133
  thickness: "1.5"
@@ -145,16 +145,16 @@ const ee = { class: "flex relative h-10 pl-2 mac:pl-[72px] t-app__top-nav" }, te
145
145
  ]),
146
146
  _: 1
147
147
  })
148
- ])) : (m(!0), b(V, { key: 1 }, D(o, (n, l) => (m(), K(Y, {
149
- key: l,
150
- active: l === T.value,
151
- hotkey: (l + 1).toString(),
148
+ ])) : (m(!0), b(V, { key: 1 }, D(o, (n, r) => (m(), K(Y, {
149
+ key: n.path,
150
+ active: r === T.value,
151
+ hotkey: (r + 1).toString(),
152
152
  icon: n.icon,
153
153
  label: n.label,
154
- onClick: (v) => u(l),
155
- onClose: (v) => N(l),
156
- onCloseOtherTabs: (v) => U(l),
157
- onCopyUrl: (v) => y(l),
154
+ onClick: (v) => u(r),
155
+ onClose: (v) => N(r),
156
+ onCloseOtherTabs: (v) => U(r),
157
+ onCopyUrl: (v) => y(r),
158
158
  onNewTab: p
159
159
  }, null, 8, ["active", "hotkey", "icon", "label", "onClick", "onClose", "onCloseOtherTabs", "onCopyUrl"]))), 128)),
160
160
  f("button", {
@@ -162,7 +162,7 @@ const ee = { class: "flex relative h-10 pl-2 mac:pl-[72px] t-app__top-nav" }, te
162
162
  type: "button",
163
163
  onClick: p
164
164
  }, [
165
- r(s(d), {
165
+ l(i(d), {
166
166
  icon: "Add",
167
167
  size: "xs",
168
168
  thickness: "2.5"
@@ -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":"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;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"}