@arbidocs/blocks 0.3.156 → 0.3.158

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arbidocs/blocks",
3
- "version": "0.3.156",
3
+ "version": "0.3.158",
4
4
  "description": "Composable AI-native back-office blocks on top of @arbidocs/react — prompt library, theme system, shell, builders and vertical primitives.",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -37,8 +37,8 @@
37
37
  "typecheck": "tsc --noEmit"
38
38
  },
39
39
  "dependencies": {
40
- "@arbidocs/react": "0.3.156",
41
- "@arbidocs/sdk": "0.3.156",
40
+ "@arbidocs/react": "0.3.158",
41
+ "@arbidocs/sdk": "0.3.158",
42
42
  "ag-grid-community": "^35.3.0",
43
43
  "ag-grid-react": "^35.3.0",
44
44
  "class-variance-authority": "^0.7.1",
@@ -138,29 +138,38 @@
138
138
  align-items: flex-start;
139
139
  }
140
140
 
141
- /* Abstract: height-driven multi-line text. The text wraps and the row height
142
- decides how many lines show so the density slider doubles as "how much
143
- abstract do I want to see" (one line when compact, several when tall). It
144
- reads from the FIRST line down and clamps to a WHOLE number of lines
145
- (--abstract-line-clamp, computed from the row height in GridView) so there is
146
- never a sliced half-line against the top or bottom hairline — the cut lands
147
- on a line boundary with an ellipsis. The value renders directly on the cell
148
- (it is itself .ag-cell-value), so we target the cell. Only affects the
149
- non-editing display (editing opens the large-text popup editor). */
150
- .cell-abstract.ag-cell {
151
- display: block;
141
+ /* Multiline text columns (Abstract, Author, custom text/select fields):
142
+ height-driven multi-line text. The text wraps and the row height decides how
143
+ many lines show so the density slider doubles as "how much text do I want
144
+ to see" (one line when compact, several when tall). It reads from the FIRST
145
+ line down and clamps to a WHOLE number of lines (computed from the row height
146
+ in GridView) so there is never a sliced half-line against the top or bottom
147
+ hairline — the cut lands on a line boundary with an ellipsis. The value
148
+ renders directly on the cell (it is itself .ag-cell-value), so we target the
149
+ cell. Only affects the non-editing display (editing opens a popup editor). */
150
+ .cell-multiline.ag-cell {
151
+ /* line-clamp needs the -webkit-box display; it hides the clamped-away LINES
152
+ themselves (with an ellipsis on the last kept line), unlike a max-height +
153
+ overflow:hidden clip, which cuts at the PADDING edge and lets a half-line
154
+ of the next row's worth of text peek through the bottom padding. */
155
+ display: -webkit-box;
156
+ -webkit-box-orient: vertical;
157
+ -webkit-line-clamp: var(--multiline-line-clamp, 2);
158
+ line-clamp: var(--multiline-line-clamp, 2);
152
159
  white-space: normal;
153
160
  overflow: hidden;
154
161
  line-height: 1.35;
155
- /* Snap the box to a WHOLE number of text lines so the overflow clip always
156
- lands on a line boundary never mid-line (which reads as a half-line
157
- "bleeding" into the next row). Both values are computed from the row height
158
- once in GridView (zero per-row cost): --abstract-pad-y shrinks on short
159
- rows so a line always fits, and --abstract-max-h caps the box at exactly N
160
- lines + padding + border. Fallbacks cover grids without a density control. */
161
- padding-top: var(--abstract-pad-y, 8px);
162
- padding-bottom: var(--abstract-pad-y, 8px);
163
- max-height: var(--abstract-max-h, calc(2 * 1.35em + 18px));
162
+ /* All three values are computed from the row height once in GridView (zero
163
+ per-row cost): --multiline-line-clamp is the whole number of lines that
164
+ fit, --multiline-pad-y shrinks on very short rows so a line always fits,
165
+ and --multiline-max-h ends the box exactly at line N's bottom (top padding
166
+ + N lines + borders, NO bottom padding AG Grid forces cell height, so
167
+ overflow clips at the padding-box edge and bottom padding would be a
168
+ window onto the next clamped-away line; see GridView). Fallbacks cover
169
+ grids without a density control. */
170
+ padding-top: var(--multiline-pad-y, 8px);
171
+ padding-bottom: var(--multiline-pad-y, 8px);
172
+ max-height: var(--multiline-max-h, calc(2 * 1.35em + 10px));
164
173
  }
165
174
 
166
175
  /* AG Grid structural customizations (not theme colors) */