@1771technologies/lytenyte-pro 0.0.47 → 0.0.48

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/dist/index.js CHANGED
@@ -2743,7 +2743,25 @@ function GridFrame({
2743
2743
  const frames = state.panelFrames.use();
2744
2744
  const openId = state.internal.panelFrameOpen.use();
2745
2745
  const frame = openId ? frames[openId] : null;
2746
+ const [width, setWidth] = useState(500);
2746
2747
  const [frameSplit, setFrameSplit] = useState(70);
2748
+ useEffect(() => {
2749
+ if (width < 500) {
2750
+ setFrameSplit(1);
2751
+ return;
2752
+ }
2753
+ setFrameSplit(70);
2754
+ }, [width]);
2755
+ const [el, setEl] = useState(null);
2756
+ useEffect(() => {
2757
+ if (!el) return;
2758
+ const re = new ResizeObserver(() => {
2759
+ setWidth(el.clientWidth);
2760
+ api.panelFrameClose();
2761
+ });
2762
+ re.observe(el);
2763
+ return () => re.disconnect();
2764
+ }, [api, el]);
2747
2765
  const template = useMemo(() => {
2748
2766
  const f = ["1fr"];
2749
2767
  if (buttons.length) f.push("32px");
@@ -2756,6 +2774,7 @@ function GridFrame({
2756
2774
  "data-cell-selection-enabled": cellSelectionEnabled ? true : void 0,
2757
2775
  className: "lng1771-grid-frame",
2758
2776
  style: { gridTemplateColumns: template },
2777
+ ref: setEl,
2759
2778
  children: [
2760
2779
  frame ? /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(
2761
2780
  SplitPane,
@@ -2772,9 +2791,13 @@ function GridFrame({
2772
2791
  }
2773
2792
  ) }),
2774
2793
  split: frame ? frameSplit : 100,
2775
- onSplitChange: (n2) => setFrameSplit(n2),
2776
- min: 20,
2777
- max: 80,
2794
+ onSplitChange: (n2) => {
2795
+ console.log("n");
2796
+ setFrameSplit(n2);
2797
+ },
2798
+ min: width < 500 ? 0 : 20,
2799
+ max: width < 500 ? 100 : 80,
2800
+ disabled: width < 500,
2778
2801
  splitterClassName: "lng1771-grid-frame__open-panel--splitter"
2779
2802
  }
2780
2803
  ) }) : /* @__PURE__ */ jsx("div", { children }),
@@ -1918,6 +1918,10 @@ body.lng1771-drag-on .lng1771-pill-manager__pill-outer[data-pill-active="false"]
1918
1918
  position: relative;
1919
1919
  cursor: col-resize;
1920
1920
 
1921
+ &[data-disabled="true"] {
1922
+ cursor: initial;
1923
+ }
1924
+
1921
1925
  &::after {
1922
1926
  position: absolute;
1923
1927
  inset-inline-start: -4px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1771technologies/lytenyte-pro",
3
- "version": "0.0.47",
3
+ "version": "0.0.48",
4
4
  "license": "COMMERCIAL",
5
5
  "type": "module",
6
6
  "files": [
@@ -70,20 +70,20 @@
70
70
  "react-dom": "^18.0.0 || ^19.0.0"
71
71
  },
72
72
  "dependencies": {
73
- "@1771technologies/grid-client-data-source-pro": "0.0.47",
74
- "@1771technologies/grid-core": "0.0.47",
75
- "@1771technologies/grid-design": "0.0.47",
76
- "@1771technologies/grid-provider": "0.0.47",
77
- "@1771technologies/grid-store-pro": "0.0.47",
78
- "@1771technologies/grid-tree-data-source": "0.0.47",
79
- "@1771technologies/grid-types": "0.0.47",
80
- "@1771technologies/js-utils": "0.0.47",
81
- "@1771technologies/lytenyte-core": "0.0.47",
82
- "@1771technologies/react-cascada": "0.0.47",
83
- "@1771technologies/react-dragon": "0.0.47",
84
- "@1771technologies/react-sizer": "0.0.47",
85
- "@1771technologies/react-split-pane": "0.0.47",
86
- "@1771technologies/react-utils": "0.0.47",
73
+ "@1771technologies/grid-client-data-source-pro": "0.0.48",
74
+ "@1771technologies/grid-core": "0.0.48",
75
+ "@1771technologies/grid-design": "0.0.48",
76
+ "@1771technologies/grid-provider": "0.0.48",
77
+ "@1771technologies/grid-store-pro": "0.0.48",
78
+ "@1771technologies/grid-tree-data-source": "0.0.48",
79
+ "@1771technologies/grid-types": "0.0.48",
80
+ "@1771technologies/js-utils": "0.0.48",
81
+ "@1771technologies/lytenyte-core": "0.0.48",
82
+ "@1771technologies/react-cascada": "0.0.48",
83
+ "@1771technologies/react-dragon": "0.0.48",
84
+ "@1771technologies/react-sizer": "0.0.48",
85
+ "@1771technologies/react-split-pane": "0.0.48",
86
+ "@1771technologies/react-utils": "0.0.48",
87
87
  "@base-ui-components/react": "1.0.0-alpha.7"
88
88
  },
89
89
  "devDependencies": {