docblocks-react-ui 0.26.0 → 0.28.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,35 @@
1
1
  # docblocks-react-ui
2
2
 
3
+ ## 0.28.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 4f81883: Add database range actions, localized filter operators, flicker-free filter refetches, and typed grid clipboard round-trips with paste-range highlighting.
8
+
9
+ ## 0.27.0
10
+
11
+ ### Minor Changes
12
+
13
+ - 0fb5c95: feat(database): the stretched header row reflows the column names (the
14
+ wrap's stand over the single-line's truncation) and the double-click's
15
+ reset returns the auto height — the block's `headerHeight` attr's
16
+ removal / the section's value's clear (the `setHeaderHeight`'s
17
+ `undefined`'s stand) / the no-write's no-op over the auto height.
18
+ - de617e2: feat(database): add optional resizable document-block heights and consumer-owned total row counts; polish the grid toolbar, outer frame, empty states, and localized column creation in both document and standalone surfaces.
19
+
20
+ ### Patch Changes
21
+
22
+ - 69bad3a: fix(database): the Columns popover's mouse reorder commits from the pointer's
23
+ true release position (the native event's coordinate hit-tested against the
24
+ rows' midpoints) instead of the framer's cascade draft — the draft lags the
25
+ pointer over the slow engine's input batching (a last-slot miss), and the
26
+ drag-start order's reference stands rewritten over the reorder's mid-drag
27
+ remount (a spurious no-op). The commit's previous is the committed order (the
28
+ hidden's columns keep their committed positions over the visible slots).
29
+ - 95eb947: fix(database): the column's and the table's rename stand the inline edit's contract — the field's focus + the name's select-all over the open (a keystroke replaces the name), the live name's reseed over an open edit (a peer's rename, the own commit's settle — a typed draft's keep), the committed-once's guard, and the field's keys' isolation over the menu's keyboard (a typed letter no longer retargets the focus over a menu item — the form's "D" over the "Delete column"'s typeahead). The Enter / the blur no longer stand the value's revert over the commit. The rename's input stands the accessible's name over the translation (the raw key's stand's removal).
30
+ - Updated dependencies [de617e2]
31
+ - docblocks-core@0.11.0
32
+
3
33
  ## 0.26.0
4
34
 
5
35
  ### Minor Changes
package/README.md CHANGED
@@ -105,7 +105,7 @@ mention catalog). The full props list:
105
105
  | `blobStore?` | The blob bridge for image / pdf / file blocks and the document-attributes' cover (see below). |
106
106
  | `coverPresets?` | The cover's upload modal's preset gallery: the consumer's ready-made cover's file ids (the consumer's blob store's ids) per placement mode — the `tile` / the `center`'s set. A pick commits the id over the mode without an upload (see Blobs below). |
107
107
  | `databaseBridge?` | The table operations behind external-form database blocks (see below). |
108
- | `databaseTableSection?` | The per-table section settings: `getHeaderHeight(tableId)` + `setHeaderHeight(tableId, height)` (see Database below). The grid reads the header-row height per table; a block's own attr wins over it. |
108
+ | `databaseTableSection?` | The per-table section settings: `getHeaderHeight(tableId)` + `setHeaderHeight(tableId, height)` + optional `getRowCount(tableId)` (see Database below). The grid reads the header-row height and authoritative total row count per table; a block's own header-height attr wins over the section value. |
109
109
  | `syncEmbedResolver?` | `(ref) => Doc \| null` — resolves a `sync-embed` block's ref to the master doc (see below). |
110
110
  | `embedSandbox?` | `(src) => string \| null` — the embed iframe's `sandbox` policy. The default grants the same-origin (the embedded app's own storage / cookies stand, so the real apps boot); `null` stands no sandbox (a fully trusted embed). Over an untrusted URL stand the `""`'s return (the opaque origin, no scripts); the opaque-origin's restriction stands over this policy. |
111
111
  | `pdfPreview?` | A first-page preview component for PDF file blocks (and legacy PDF image blocks). |
@@ -616,13 +616,40 @@ attr wins over the table-level value; a block without one follows the table
616
616
  and falls back to the auto height. Read-only modes apply the height and
617
617
  render no handle.
618
618
 
619
+ When the row stands taller than its single-line natural height, the column
620
+ names reflow and wrap inside the row instead of truncating to one line
621
+ (the single-line ellipsis stand returns with the auto height). A
622
+ double-click on the stretched header row (in edit mode) resets the height
623
+ to the auto stand: a block with its own `headerHeight` attr loses the attr;
624
+ a block that follows the table-level value clears it (the section's
625
+ `setHeaderHeight` called with `undefined`); a block at the auto height
626
+ performs no write.
627
+
628
+ The document block's total **height** is adjustable through its bottom-edge
629
+ handle in edit mode. The optional positive `height` attr is document data:
630
+ the release commits one `updateBlock` (one undo step and one wire update).
631
+ Without the attr the block grows naturally up to the header plus ten rows;
632
+ the resize floor is the header plus three rows, with no upper bound. The
633
+ grid scrolls inside the resulting height. The standalone `DatabaseTable`
634
+ does not read this block attr and keeps its consumer-controlled sizing.
635
+
636
+ The toolbar's total row count comes from `databaseTableSection.getRowCount`
637
+ when supplied and falls back to the loaded rows otherwise. With an active
638
+ filter, a second badge reports the loaded rows visible after filtering; this
639
+ is the current client-side window, not a server-side filtered total. The
640
+ consumer re-renders the provider when its authoritative count changes; the
641
+ grid also re-reads it after its own table mutations.
642
+
619
643
  The grid's **Filter** control edits a recursive and/or condition tree: one
620
644
  row per condition (the field / the operator / the value over the column's
621
645
  annotation, a single line), the nested groups over bordered cards, and the
622
646
  conditions and the groups bound by the group's left connector line. The
623
- logic's labels stand the UI's locale (en/ru), the active pill over the
624
- prominent `primary` fill. `Apply` commits the draft as
625
- the view's `filter` attr (the block's write stand); `Clear` resets it.
647
+ logic's labels and the operator picker stand the UI's locale (en/ru), while
648
+ the filter payload keeps its English wire operators. Every default column
649
+ catalog offers the applicable emptiness checks. `Apply` commits the draft as
650
+ the view's `filter` attr (the block's write stand); `Clear` resets it. A filter
651
+ change keeps the current rows rendered until the new snapshot arrives; loading
652
+ and empty states remain limited to the initial load and the arrived result.
626
653
 
627
654
  When an inserted row does not match the active filter, the grid keeps it
628
655
  visible with an orange outline while its initial edit session has focus. The
@@ -631,6 +658,15 @@ unchanged. `useDatabaseTable` exposes this transient row as `pendingRow` and
631
658
  `dismissPendingRow(rowId?)` for consumer-owned grids implementing the same
632
659
  interaction.
633
660
 
661
+ A multi-cell edit-mode selection opens a context menu over the right-clicked
662
+ cell: **Clear range** writes one batch, and **Delete rows** removes every
663
+ selected row in one batch. Each action has one grid-history undo step when the
664
+ bridge supports row restoration. Copy writes plain-text TSV plus the
665
+ `application/x-docblocks-database-grid` raw-value JSON flavor; paste uses the
666
+ raw values within the same table and resolves external enum labels and unique
667
+ row-link displays from TSV. The changed cells carry a distinct paste-range
668
+ frame until the next grid interaction.
669
+
634
670
  ### Standalone database table
635
671
 
636
672
  The database's UI stands outside any document as well — the
@@ -671,7 +707,11 @@ className?, tableSection? })` —
671
707
  same per-table contract the `EditorProvider` takes: the header row's
672
708
  height comes from `getHeaderHeight(tableId)` and the grid's drag commits
673
709
  it back over `setHeaderHeight(tableId, height)`, so the section's value and
674
- the document blocks over the same table stand one height. Without the
710
+ the document blocks over the same table stand one height; the double-click
711
+ reset over the stretched header clears the value (the `undefined`'s stand)
712
+ and returns the auto height. The optional
713
+ `getRowCount(tableId)` supplies the toolbar's authoritative total under the
714
+ same read-on-render contract. Without the
675
715
  contract the grid renders no header handle (the header keeps the auto
676
716
  height). The standalone's grid
677
717
  stands no table-name display — the consumer's own visual element (the