@compill/admin 1.0.40 → 1.0.42

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/index.cjs.js CHANGED
@@ -1136,7 +1136,7 @@ function Internal({
1136
1136
  errorMsg: (error, item) => `Error updating ${item.title}: ${error}`
1137
1137
  });
1138
1138
  let editorMaxW = undefined;
1139
- if (type == "post") editorMaxW = "calc(1280px - 30rem)";else if (type == "section") editorMaxW = "calc(1280px - 22rem)";
1139
+ if (!type || type == "post") editorMaxW = "calc(1280px - 28rem)";else if (type == "section") editorMaxW = "calc(1280px - 22rem)";
1140
1140
  return jsxRuntime.jsxs(form.FormProvider, {
1141
1141
  initialValues: react.runIfFn(initialValues, item),
1142
1142
  validationSchema: schema,
@@ -1162,14 +1162,18 @@ function Internal({
1162
1162
  flexCol: true,
1163
1163
  gap: "8",
1164
1164
  flexGrow: true,
1165
- children: [(editor === null || editor === void 0 ? void 0 : editor.type) != "textarea" && jsxRuntime.jsx(PageContentEditor, {
1165
+ children: [(editor === null || editor === void 0 ? void 0 : editor.type) != "textarea" &&
1166
+ // TODO Find a way to make this editor shrink in width when resizing the window...
1167
+ jsxRuntime.jsx(PageContentEditor, {
1166
1168
  name: "content",
1169
+ w: editorMaxW,
1167
1170
  maxW: editorMaxW,
1168
1171
  minW: "144"
1169
1172
  }), (editor === null || editor === void 0 ? void 0 : editor.type) == "textarea" && jsxRuntime.jsx(form.TextArea, {
1170
1173
  name: editor === null || editor === void 0 ? void 0 : editor.name,
1171
1174
  maxW: editorMaxW,
1172
1175
  minW: editorMaxW,
1176
+ w: editorMaxW,
1173
1177
  minH: "128",
1174
1178
  rows: 25,
1175
1179
  bgColor: "white",
package/index.esm.js CHANGED
@@ -1127,7 +1127,7 @@ function Internal({
1127
1127
  errorMsg: (error, item) => `Error updating ${item.title}: ${error}`
1128
1128
  });
1129
1129
  let editorMaxW = undefined;
1130
- if (type == "post") editorMaxW = "calc(1280px - 30rem)";else if (type == "section") editorMaxW = "calc(1280px - 22rem)";
1130
+ if (!type || type == "post") editorMaxW = "calc(1280px - 28rem)";else if (type == "section") editorMaxW = "calc(1280px - 22rem)";
1131
1131
  return jsxs(FormProvider, {
1132
1132
  initialValues: runIfFn(initialValues, item),
1133
1133
  validationSchema: schema,
@@ -1153,14 +1153,18 @@ function Internal({
1153
1153
  flexCol: true,
1154
1154
  gap: "8",
1155
1155
  flexGrow: true,
1156
- children: [(editor === null || editor === void 0 ? void 0 : editor.type) != "textarea" && jsx(PageContentEditor, {
1156
+ children: [(editor === null || editor === void 0 ? void 0 : editor.type) != "textarea" &&
1157
+ // TODO Find a way to make this editor shrink in width when resizing the window...
1158
+ jsx(PageContentEditor, {
1157
1159
  name: "content",
1160
+ w: editorMaxW,
1158
1161
  maxW: editorMaxW,
1159
1162
  minW: "144"
1160
1163
  }), (editor === null || editor === void 0 ? void 0 : editor.type) == "textarea" && jsx(TextArea, {
1161
1164
  name: editor === null || editor === void 0 ? void 0 : editor.name,
1162
1165
  maxW: editorMaxW,
1163
1166
  minW: editorMaxW,
1167
+ w: editorMaxW,
1164
1168
  minH: "128",
1165
1169
  rows: 25,
1166
1170
  bgColor: "white",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compill/admin",
3
- "version": "1.0.40",
3
+ "version": "1.0.42",
4
4
  "module": "./index.esm.js",
5
5
  "main": "./index.cjs.js"
6
6
  }