@bsuite/page-builder 0.6.0 → 0.6.1
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
|
-
{"version":3,"file":"PageGridLayout.d.ts","sourceRoot":"","sources":["../src/PageGridLayout.tsx"],"names":[],"mappings":"AACA,OAAO,KAA6E,MAAM,OAAO,CAAC;AAGlG,OAAO,kCAAkC,CAAC;AAC1C,OAAO,gCAAgC,CAAC;AAKxC,OAAO,KAAK,EAAe,mBAAmB,EAAE,MAAM,YAAY,CAAC;AA0QnE,wBAAgB,cAAc,CAAC,EAC7B,OAAO,EACP,cAAc,EACd,WAAW,EACX,aAAa,EACb,WAAW,EACX,gBAAgB,EAChB,iBAAiB,EACjB,OAAO,EACP,UAAU,EACV,SAAS,EAMT,WAAkB,EAClB,aAAsC,EACtC,yBAAiE,EACjE,kBAAkB,EAClB,sBAAsB,GACvB,EAAE,mBAAmB,
|
|
1
|
+
{"version":3,"file":"PageGridLayout.d.ts","sourceRoot":"","sources":["../src/PageGridLayout.tsx"],"names":[],"mappings":"AACA,OAAO,KAA6E,MAAM,OAAO,CAAC;AAGlG,OAAO,kCAAkC,CAAC;AAC1C,OAAO,gCAAgC,CAAC;AAKxC,OAAO,KAAK,EAAe,mBAAmB,EAAE,MAAM,YAAY,CAAC;AA0QnE,wBAAgB,cAAc,CAAC,EAC7B,OAAO,EACP,cAAc,EACd,WAAW,EACX,aAAa,EACb,WAAW,EACX,gBAAgB,EAChB,iBAAiB,EACjB,OAAO,EACP,UAAU,EACV,SAAS,EAMT,WAAkB,EAClB,aAAsC,EACtC,yBAAiE,EACjE,kBAAkB,EAClB,sBAAsB,GACvB,EAAE,mBAAmB,qBAirBrB"}
|
package/dist/PageGridLayout.js
CHANGED
|
@@ -276,12 +276,35 @@ isResizable = true, resizeHandles = DEFAULT_RESIZE_HANDLES, addEntityWidgetEvent
|
|
|
276
276
|
.map((item) => {
|
|
277
277
|
if (!item.autoHeight)
|
|
278
278
|
return item;
|
|
279
|
+
// HEAL a persisted `isResizable: false`.
|
|
280
|
+
//
|
|
281
|
+
// 0.5.2 set this at the render layer, and it leaked out through
|
|
282
|
+
// `onLayoutChange` into the SAVED layout. Removing the override in
|
|
283
|
+
// 0.6.0 was therefore not enough: react-grid-layout resolves
|
|
284
|
+
//
|
|
285
|
+
// typeof l.isResizable === 'boolean' ? l.isResizable
|
|
286
|
+
// : !l.static && gridResizable
|
|
287
|
+
//
|
|
288
|
+
// so an explicit persisted `false` beats the grid default forever.
|
|
289
|
+
// Every user who ever loaded an affected page has it stored.
|
|
290
|
+
//
|
|
291
|
+
// Confirmed in a real signed-in browser 2026-07-31: the saved
|
|
292
|
+
// preference for /financial/invoicing/:id held
|
|
293
|
+
// `"isResizable":false` on all 6 cards; clearing it by hand did not
|
|
294
|
+
// help, because it was re-persisted on the next load.
|
|
295
|
+
//
|
|
296
|
+
// A per-item `false` on an autoHeight item cannot be a user choice —
|
|
297
|
+
// nothing in the UI sets it, and page-level opt-out uses the
|
|
298
|
+
// `isResizable` PROP, not per-item layout. So it can only have come
|
|
299
|
+
// from the 0.5.2 bug, and dropping it is safe.
|
|
300
|
+
const { isResizable: persisted, ...rest } = item;
|
|
301
|
+
const healed = persisted === false ? rest : item;
|
|
279
302
|
const measuredRows = autoHeightRows[item.i];
|
|
280
303
|
if (measuredRows === undefined)
|
|
281
|
-
return
|
|
304
|
+
return healed;
|
|
282
305
|
return {
|
|
283
|
-
...
|
|
284
|
-
h: Math.max(
|
|
306
|
+
...healed,
|
|
307
|
+
h: Math.max(healed.h ?? 0, measuredRows),
|
|
285
308
|
minH: measuredRows,
|
|
286
309
|
};
|
|
287
310
|
});
|