@scalar/api-client 2.0.62 → 2.0.64

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,39 @@
1
1
  # @scalar/api-client
2
2
 
3
+ ## 2.0.64
4
+
5
+ ### Patch Changes
6
+
7
+ - e9253af: fix(api-client): scope api client draggable styles
8
+ - Updated dependencies [0fc3460]
9
+ - Updated dependencies [c577cde]
10
+ - Updated dependencies [e9253af]
11
+ - Updated dependencies [dc9aff2]
12
+ - Updated dependencies [6bb85a5]
13
+ - Updated dependencies [dc9aff2]
14
+ - @scalar/components@0.12.44
15
+ - @scalar/themes@0.9.29
16
+ - @scalar/draggable@0.1.5
17
+ - @scalar/openapi-types@0.1.1
18
+ - @scalar/openapi-parser@0.8.2
19
+ - @scalar/types@0.0.8
20
+ - @scalar/oas-utils@0.2.43
21
+
22
+ ## 2.0.63
23
+
24
+ ### Patch Changes
25
+
26
+ - Updated dependencies [a07cfc8]
27
+ - Updated dependencies [5483fc3]
28
+ - Updated dependencies [1e41dfe]
29
+ - Updated dependencies [023ca15]
30
+ - Updated dependencies [85872b6]
31
+ - Updated dependencies [ad89ca3]
32
+ - @scalar/types@0.0.7
33
+ - @scalar/oas-utils@0.2.42
34
+ - @scalar/components@0.12.43
35
+ - @scalar/use-toasts@0.7.6
36
+
3
37
  ## 2.0.62
4
38
 
5
39
  ### Patch Changes
@@ -1 +1 @@
1
- {"version":3,"file":"Sidebar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/Sidebar.vue"],"names":[],"mappings":"AAoMA,iBAAS,cAAc;oBAoEK,GAAG;qBACF,GAAG;oBACJ,GAAG;EAmB9B;AACD,QAAA,MAAM,eAAe;YAxJT,MAAM;kBACA,OAAO;;;;YADb,MAAM;kBACA,OAAO;;;;iBAAP,OAAO;MA6JvB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAA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+1,7 @@
1
- import { defineComponent as S, ref as f, withDirectives as x, openBlock as p, createElementBlock as v, normalizeClass as h, normalizeStyle as D, unref as r, renderSlot as a, createElementVNode as l, toDisplayString as k, createCommentVNode as L, vShow as _ } from "vue";
2
- import { useWorkspace as B } from "../../store/workspace.js";
3
- const W = {
4
- key: 0,
5
- class: "xl:min-h-header py-2.5 flex items-center border-b-1/2 px-4 text-sm"
6
- }, C = { class: "font-medium m-0 text-sm whitespace-nowrap" }, I = /* @__PURE__ */ S({
7
- __name: "Sidebar",
8
- props: {
9
- title: {},
10
- showSideBar: { type: Boolean, default: !0 }
11
- },
12
- setup(g) {
13
- const b = g, { isReadOnly: i, sidebarWidth: s, setSidebarWidth: o } = B(), n = f(!1), d = f(null), w = (e) => {
14
- e.preventDefault();
15
- const m = e.clientX, y = parseInt(
16
- getComputedStyle(d.value).width || s.value,
17
- 10
18
- ), c = (E) => {
19
- n.value = !0, document.body.classList.add("dragging");
20
- let t = y + E.clientX - m;
21
- t > 420 && (t = 420 + (t - 420) * 0.2), t < 240 && (t = 240), o(`${t}px`);
22
- }, u = () => {
23
- n.value = !1, document.body.classList.remove("dragging"), document.documentElement.removeEventListener("mousemove", c, !1), document.documentElement.removeEventListener("mouseup", u, !1), parseInt(s.value, 10) > 420 ? o("360px") : parseInt(s.value, 10) < 240 && o("240px");
24
- };
25
- document.documentElement.addEventListener("mousemove", c, !1), document.documentElement.addEventListener("mouseup", u, !1);
26
- };
27
- return (e, m) => x((p(), v("aside", {
28
- ref_key: "sidebarRef",
29
- ref: d,
30
- class: h(["sidebar overflow-hidden relative flex flex-col border-r-1/2 bg-b-1", { dragging: n.value }]),
31
- style: D({ width: r(s) })
32
- }, [
33
- a(e.$slots, "header"),
34
- !r(i) && e.title ? (p(), v("div", W, [
35
- l("h2", C, k(e.title), 1)
36
- ])) : L("", !0),
37
- l("div", {
38
- class: h(["custom-scroll sidebar-height", {
39
- "sidebar-mask": !r(i)
40
- }])
41
- }, [
42
- a(e.$slots, "content")
43
- ], 2),
44
- a(e.$slots, "button"),
45
- l("div", {
46
- class: "resizer",
47
- onMousedown: w
48
- }, null, 32)
49
- ], 6)), [
50
- [_, b.showSideBar]
51
- ]);
52
- }
53
- });
1
+ import o from "./Sidebar.vue2.js";
2
+ /* empty css */
3
+ import r from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-467b3cca"]]);
54
5
  export {
55
- I as default
6
+ m as default
56
7
  };
@@ -0,0 +1,56 @@
1
+ import { defineComponent as S, ref as f, withDirectives as x, openBlock as p, createElementBlock as v, normalizeClass as h, normalizeStyle as D, unref as n, renderSlot as a, createElementVNode as i, toDisplayString as k, createCommentVNode as L, vShow as _ } from "vue";
2
+ import { useWorkspace as B } from "../../store/workspace.js";
3
+ const W = {
4
+ key: 0,
5
+ class: "xl:min-h-header py-2.5 flex items-center border-b-1/2 px-4 text-sm"
6
+ }, C = { class: "font-medium m-0 text-sm whitespace-nowrap" }, I = /* @__PURE__ */ S({
7
+ __name: "Sidebar",
8
+ props: {
9
+ title: {},
10
+ showSideBar: { type: Boolean, default: !0 }
11
+ },
12
+ setup(g) {
13
+ const b = g, { isReadOnly: l, sidebarWidth: s, setSidebarWidth: o } = B(), r = f(!1), d = f(null), w = (e) => {
14
+ e.preventDefault();
15
+ const m = e.clientX, y = parseInt(
16
+ getComputedStyle(d.value).width || s.value,
17
+ 10
18
+ ), u = (E) => {
19
+ r.value = !0, document.body.classList.add("dragging");
20
+ let t = y + E.clientX - m;
21
+ t > 420 && (t = 420 + (t - 420) * 0.2), t < 240 && (t = 240), o(`${t}px`);
22
+ }, c = () => {
23
+ r.value = !1, document.body.classList.remove("dragging"), document.documentElement.removeEventListener("mousemove", u, !1), document.documentElement.removeEventListener("mouseup", c, !1), parseInt(s.value, 10) > 420 ? o("360px") : parseInt(s.value, 10) < 240 && o("240px");
24
+ };
25
+ document.documentElement.addEventListener("mousemove", u, !1), document.documentElement.addEventListener("mouseup", c, !1);
26
+ };
27
+ return (e, m) => x((p(), v("aside", {
28
+ ref_key: "sidebarRef",
29
+ ref: d,
30
+ class: h(["sidebar overflow-hidden relative flex flex-col border-r-1/2 bg-b-1", { dragging: r.value }]),
31
+ style: D({ width: n(s) })
32
+ }, [
33
+ a(e.$slots, "header", {}, void 0, !0),
34
+ !n(l) && e.title ? (p(), v("div", W, [
35
+ i("h2", C, k(e.title), 1)
36
+ ])) : L("", !0),
37
+ i("div", {
38
+ class: h(["custom-scroll sidebar-height", {
39
+ "sidebar-mask": !n(l)
40
+ }])
41
+ }, [
42
+ a(e.$slots, "content", {}, void 0, !0)
43
+ ], 2),
44
+ a(e.$slots, "button", {}, void 0, !0),
45
+ i("div", {
46
+ class: "resizer",
47
+ onMousedown: w
48
+ }, null, 32)
49
+ ], 6)), [
50
+ [_, b.showSideBar]
51
+ ]);
52
+ }
53
+ });
54
+ export {
55
+ I as default
56
+ };
@@ -1,5 +1,4 @@
1
- import { default as o } from "./Sidebar.vue.js";
2
- /* empty css */
1
+ import { default as r } from "./Sidebar.vue.js";
3
2
  export {
4
- o as Sidebar
3
+ r as Sidebar
5
4
  };
@@ -1,7 +1,6 @@
1
- import { default as d } from "./Sidebar/Sidebar.vue.js";
2
- /* empty css */
3
- import { default as t } from "./AddressBar/AddressBar.vue.js";
1
+ import { default as e } from "./AddressBar/AddressBar.vue.js";
2
+ import { default as f } from "./Sidebar/Sidebar.vue.js";
4
3
  export {
5
- t as AddressBar,
6
- d as Sidebar
4
+ e as AddressBar,
5
+ f as Sidebar
7
6
  };