@bsuite/page-builder 2.7.1-next.7 → 2.8.0-next.0

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":"AAGA,OAAO,KAQN,MAAM,OAAO,CAAC;AAGf,OAAO,kCAAkC,CAAC;AAC1C,OAAO,gCAAgC,CAAC;AAsBxC,OAAO,KAAK,EAAe,mBAAmB,EAA4B,MAAM,YAAY,CAAC;AAE7F,4EAA4E;AAC5E,eAAO,MAAM,oBAAoB,0BAA0B,CAAC;AAC5D,MAAM,WAAW,uBAAuB;IAAG,OAAO,EAAE,MAAM,CAAA;CAAE;AAmrB5D,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,QAAQ,EACR,iBAAiB,EACjB,gBAAgB,EAKhB,UAAkB,EAClB,yBAAiE,EACjE,kBAAkB,EAClB,sBAAsB,EACtB,mBAAmB,EACnB,+BAA6E,EAC7E,wBAAwB,EACxB,4BAA4B,EAC5B,4BAA4B,GAC7B,EAAE,mBAAmB,qBAoqCrB"}
1
+ {"version":3,"file":"PageGridLayout.d.ts","sourceRoot":"","sources":["../src/PageGridLayout.tsx"],"names":[],"mappings":"AAGA,OAAO,KAQN,MAAM,OAAO,CAAC;AAGf,OAAO,kCAAkC,CAAC;AAC1C,OAAO,gCAAgC,CAAC;AAsBxC,OAAO,KAAK,EAAe,mBAAmB,EAA4B,MAAM,YAAY,CAAC;AAE7F,4EAA4E;AAC5E,eAAO,MAAM,oBAAoB,0BAA0B,CAAC;AAC5D,MAAM,WAAW,uBAAuB;IAAG,OAAO,EAAE,MAAM,CAAA;CAAE;AAmsB5D,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,QAAQ,EACR,iBAAiB,EACjB,gBAAgB,EAKhB,UAAkB,EAClB,yBAAiE,EACjE,kBAAkB,EAClB,sBAAsB,EACtB,mBAAmB,EACnB,+BAA6E,EAC7E,wBAAwB,EACxB,4BAA4B,EAC5B,4BAA4B,GAC7B,EAAE,mBAAmB,qBAoqCrB"}
@@ -169,6 +169,8 @@ function warnOnceAboutCollapsedContent(el) {
169
169
  + '(an aspect ratio, a px/rem height, or min-height), or pass autoHeight={false} on '
170
170
  + 'this card so it renders into the constrained scrollable wrapper instead.');
171
171
  }
172
+ /** Inset for a chrome-on surface whose content declares no surface of its own. */
173
+ const CHROME_BARE_CONTENT_INSET = '[&:not(:has([data-slot=card])):not(:has([data-slot=page-header]))]:p-6 md:[&:not(:has([data-slot=card])):not(:has([data-slot=page-header]))]:p-7';
172
174
  const GridItem = React.memo(React.forwardRef(function GridItem({ id, content, isEditing, label, pageKey, onHide, editingPaused = false, autoHeight, onAutoHeightChange, chrome = false, cardStyleVars, children: injectedChildren, className: injectedClassName, style: injectedStyle, ...rest }, ref) {
173
175
  // Auto-height measurement (blueprint amendment A1). `measureRef` wraps
174
176
  // `content` with NO height constraint of its own — its parent has
@@ -363,7 +365,19 @@ const GridItem = React.memo(React.forwardRef(function GridItem({ id, content, is
363
365
  // becomes transparent space below the card, which nobody can see. For a
364
366
  // manually-resized slot h-full is still right: the user chose that
365
367
  // height and the chrome should fill it.
366
- autoHeight ? 'h-fit' : 'h-full')
368
+ autoHeight ? 'h-fit' : 'h-full',
369
+ // THE INSET, ONLY FOR CONTENT THAT BRINGS NONE (crm7#2734).
370
+ // The surface painted no padding, so content that is not
371
+ // itself a card sat on the border: hand-rolled headers,
372
+ // filter bars, plain sections, 182 slots in crm7 alone. A
373
+ // blanket inset is wrong, because most slots nest their own
374
+ // Card and would gain a gutter. So the surface pads only
375
+ // when nothing inside it declares its own surface or inset:
376
+ // `data-slot="card"` (shadcn's convention) or
377
+ // `data-slot="page-header"`. The value is PageHeader's own
378
+ // p-6 md:p-7, so a bare slot and a header line up. An
379
+ // operator-set --card-padding is inline style and still wins.
380
+ CHROME_BARE_CONTENT_INSET)
367
381
  : // Chrome OFF: layout only. Identical box, no paint.
368
382
  cn('w-full transition-all flex flex-col', autoHeight ? 'h-fit' : 'h-full'),
369
383
  /*
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bsuite/page-builder",
3
- "version": "2.7.1-next.7",
3
+ "version": "2.8.0-next.0",
4
4
  "description": "Shared BSuite responsive page-builder grid and layout persistence primitives",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",
@@ -9,7 +9,7 @@
9
9
  },
10
10
  "repository": {
11
11
  "type": "git",
12
- "url": "git+https://github.com/GaryOcean428/bsuite.git",
12
+ "url": "git+https://github.com/Arcane-Fly/bsuite.git",
13
13
  "directory": "packages/page-builder"
14
14
  },
15
15
  "files": [
@@ -70,18 +70,18 @@
70
70
  "@bsuite/theme": "workspace:^",
71
71
  "@testing-library/jest-dom": "^7.0.1",
72
72
  "@testing-library/react": "^16.3.3",
73
- "@types/node": "^26.4.0",
74
- "@types/react": "^19.2.18",
75
- "@types/react-dom": "^19.2.5",
73
+ "@types/node": "^26.6.2",
74
+ "@types/react": "^19.3.0",
75
+ "@types/react-dom": "^19.3.0",
76
76
  "@vitejs/plugin-react": "^6.1.1",
77
- "jsdom": "^30.0.1",
78
- "lucide-react": "^1.37.0",
79
- "react": "^19.2.8",
80
- "react-dom": "^19.2.8",
77
+ "jsdom": "^30.1.0",
78
+ "lucide-react": "^1.47.0",
79
+ "react": "^19.3.0",
80
+ "react-dom": "^19.3.0",
81
81
  "react-grid-layout": "^2.2.4",
82
82
  "react-resizable": "^4.0.2",
83
83
  "typescript": "^6.0.3",
84
- "vite": "^8.2.2",
84
+ "vite": "^8.3.0",
85
85
  "vitest": "^4.1.11"
86
86
  },
87
87
  "packageManager": "pnpm@10.33.3"