@m4l/layouts 0.0.27 → 0.0.30

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.
@@ -43,6 +43,7 @@ function ButtonDetail(props) {
43
43
  onClick,
44
44
  description
45
45
  } = props;
46
+ console.log("ButtonDetail", masterSelection);
46
47
  return /* @__PURE__ */ jsx(Button, {
47
48
  onClick,
48
49
  variant: "outlined",
@@ -138,13 +139,6 @@ function MasterDetailLayout(props) {
138
139
  }, [splitActions, moduleActions, isDesktop, viewDetailAction]);
139
140
  const finalComponentsDictionary = useMemo(() => componentsDictionary.concat(getMasterDetailLayoutComponentsDictionary()), [componentsDictionary]);
140
141
  console.log("MasterDetailLayout Render");
141
- const memonizedSplit = useMemo(() => {
142
- return /* @__PURE__ */ jsx(SplitLayout, {
143
- splitPosition: isDesktop ? splitPosition : "none",
144
- firstPart: masterComponent,
145
- secondPart: detailComponent
146
- });
147
- }, [isDesktop, splitPosition, masterComponent, detailComponent]);
148
142
  return /* @__PURE__ */ jsx(ModuleLayout, {
149
143
  ref: moduleLayoutRef,
150
144
  moduleId,
@@ -155,7 +149,11 @@ function MasterDetailLayout(props) {
155
149
  componentsDictionary: finalComponentsDictionary,
156
150
  breadcrumbLinks,
157
151
  children: /* @__PURE__ */ jsx(MasterDetailProvider, {
158
- children: memonizedSplit
152
+ children: /* @__PURE__ */ jsx(SplitLayout, {
153
+ splitPosition: isDesktop ? splitPosition : "none",
154
+ firstPart: masterComponent,
155
+ secondPart: detailComponent
156
+ })
159
157
  })
160
158
  });
161
159
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@m4l/layouts",
3
3
  "private": false,
4
- "version": "0.0.27",
4
+ "version": "0.0.30",
5
5
  "license": "UNLICENSED",
6
6
  "scripts": {
7
7
  "dev": "vite",
@@ -14,7 +14,7 @@
14
14
  "format": "npm run prettier:fix && npm run lint:fix"
15
15
  },
16
16
  "dependencies": {
17
- "@m4l/components": "^0.0.45",
17
+ "@m4l/components": "^0.0.47",
18
18
  "react": "^17.0.0 || 18.x",
19
19
  "react-dom": "^18.0.0"
20
20
  },