@m4l/layouts 0.0.28 → 0.0.31

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,24 +139,21 @@ 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
- return /* @__PURE__ */ jsx(ModuleLayout, {
149
- ref: moduleLayoutRef,
150
- moduleId,
151
- moduleNameField,
152
- urlIcon,
153
- moduleActions: finalModuleActions,
154
- privileges,
155
- componentsDictionary: finalComponentsDictionary,
156
- breadcrumbLinks,
157
- children: /* @__PURE__ */ jsx(MasterDetailProvider, {
158
- children: memonizedSplit
142
+ return /* @__PURE__ */ jsx(MasterDetailProvider, {
143
+ children: /* @__PURE__ */ jsx(ModuleLayout, {
144
+ ref: moduleLayoutRef,
145
+ moduleId,
146
+ moduleNameField,
147
+ urlIcon,
148
+ moduleActions: finalModuleActions,
149
+ privileges,
150
+ componentsDictionary: finalComponentsDictionary,
151
+ breadcrumbLinks,
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.28",
4
+ "version": "0.0.31",
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.46",
17
+ "@m4l/components": "^0.0.47",
18
18
  "react": "^17.0.0 || 18.x",
19
19
  "react-dom": "^18.0.0"
20
20
  },