@code0-tech/pictor 0.0.0-mvp.6 → 0.0.0-mvp.7
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
.d-layout{position:relative;width:100%;height:100%;overflow:hidden}.d-layout
|
|
1
|
+
.d-layout{position:relative;width:100%;height:100%;overflow:hidden}.d-layout>.flex,.d-layout>.flex>.flex{width:100%;height:100%;gap:.7rem}.d-layout__content{width:100%}
|
|
@@ -1,21 +1,26 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as u } from "react/jsx-runtime";
|
|
2
2
|
import { c as f } from "../../_virtual/compiler-runtime.js";
|
|
3
|
-
import
|
|
4
|
-
import { mergeCode0Props as
|
|
3
|
+
import l from "react";
|
|
4
|
+
import { mergeCode0Props as m } from "../../utils/utils.js";
|
|
5
5
|
import '../../assets/components/d-fullscreen/DFullScreen.style.css';/* empty css */
|
|
6
|
-
const
|
|
7
|
-
const e = f.c(7), t =
|
|
8
|
-
let
|
|
9
|
-
e[0] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
10
|
-
t.current
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
6
|
+
const y = (i) => {
|
|
7
|
+
const e = f.c(7), t = l.useRef(null);
|
|
8
|
+
let r, o;
|
|
9
|
+
e[0] === Symbol.for("react.memo_cache_sentinel") ? (r = () => {
|
|
10
|
+
if (!t.current)
|
|
11
|
+
return;
|
|
12
|
+
window.addEventListener("resize", () => {
|
|
13
|
+
const c = Math.round(window.visualViewport?.width ?? window.innerWidth), s = Math.round(window.visualViewport?.height ?? window.innerHeight);
|
|
14
|
+
t.current.style.height = s + "px", t.current.style.width = c + "px";
|
|
15
|
+
});
|
|
16
|
+
const w = Math.round(window.visualViewport?.width ?? window.innerWidth), h = Math.round(window.visualViewport?.height ?? window.innerHeight);
|
|
17
|
+
t.current.style.height = h + "px", t.current.style.width = w + "px";
|
|
18
|
+
}, o = [t], e[0] = r, e[1] = o) : (r = e[0], o = e[1]), l.useEffect(r, o);
|
|
19
|
+
let n;
|
|
20
|
+
e[2] !== i ? (n = m("d-full-screen", i), e[2] = i, e[3] = n) : n = e[3];
|
|
21
|
+
let d;
|
|
22
|
+
return e[4] !== i.children || e[5] !== n ? (d = /* @__PURE__ */ u("div", { ...n, ref: t, children: i.children }), e[4] = i.children, e[5] = n, e[6] = d) : d = e[6], d;
|
|
18
23
|
};
|
|
19
24
|
export {
|
|
20
|
-
|
|
25
|
+
y as DFullScreen
|
|
21
26
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@code0-tech/pictor",
|
|
3
|
-
"version": "0.0.0-mvp.
|
|
3
|
+
"version": "0.0.0-mvp.7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A simple template for a custom React component library",
|
|
6
6
|
"scripts": {
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"@babel/plugin-proposal-decorators": "^7.28.0",
|
|
23
23
|
"@babel/plugin-transform-class-properties": "^7.27.1",
|
|
24
24
|
"@code0-tech/sagittarius-graphql-types": "^0.0.0-65144a9920c6a8de3bcf24acdcb8eec4158cef73",
|
|
25
|
-
"@dagrejs/dagre": "^1.1.
|
|
25
|
+
"@dagrejs/dagre": "^1.1.8",
|
|
26
26
|
"@mdx-js/react": "^3.1.1",
|
|
27
27
|
"@radix-ui/react-checkbox": "^1.3.3",
|
|
28
28
|
"@radix-ui/react-dialog": "^1.1.15",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"@radix-ui/react-tabs": "^1.1.13",
|
|
34
34
|
"@radix-ui/react-toggle-group": "^1.1.11",
|
|
35
35
|
"@radix-ui/react-tooltip": "^1.2.8",
|
|
36
|
-
"@rollup/plugin-commonjs": "^
|
|
36
|
+
"@rollup/plugin-commonjs": "^29.0.0",
|
|
37
37
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
38
38
|
"@rollup/plugin-terser": "^0.4.4",
|
|
39
39
|
"@rollup/plugin-typescript": "^12.3.0",
|