docblocks-react-ui 0.25.0 → 0.27.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,42 @@
1
1
  # docblocks-react-ui
2
2
 
3
+ ## 0.27.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 0fb5c95: feat(database): the stretched header row reflows the column names (the
8
+ wrap's stand over the single-line's truncation) and the double-click's
9
+ reset returns the auto height — the block's `headerHeight` attr's
10
+ removal / the section's value's clear (the `setHeaderHeight`'s
11
+ `undefined`'s stand) / the no-write's no-op over the auto height.
12
+ - 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.
13
+
14
+ ### Patch Changes
15
+
16
+ - 69bad3a: fix(database): the Columns popover's mouse reorder commits from the pointer's
17
+ true release position (the native event's coordinate hit-tested against the
18
+ rows' midpoints) instead of the framer's cascade draft — the draft lags the
19
+ pointer over the slow engine's input batching (a last-slot miss), and the
20
+ drag-start order's reference stands rewritten over the reorder's mid-drag
21
+ remount (a spurious no-op). The commit's previous is the committed order (the
22
+ hidden's columns keep their committed positions over the visible slots).
23
+ - 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).
24
+ - Updated dependencies [de617e2]
25
+ - docblocks-core@0.11.0
26
+
27
+ ## 0.26.0
28
+
29
+ ### Minor Changes
30
+
31
+ - 78e986a: Every page row now stands `data-block-id` and `data-block-type` on its own
32
+ element (`data-slot="docblocks/row"`), in addition to the block's wrapper —
33
+ the block's DOM anchor for navigating to it by id (a table of contents
34
+ scrolling to a heading). The stand holds over the edit's, the view's, and
35
+ the published's renders. The row's anchor is not a block element: the
36
+ selection mapping and the remount's re-seat resolve the block from the
37
+ wrapper (the row's zone — e.g. a form control's focus residue — stands no
38
+ blocks selection over the block).
39
+
3
40
  ## 0.25.0
4
41
 
5
42
  ### 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,6 +616,30 @@ 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
@@ -671,7 +695,11 @@ className?, tableSection? })` —
671
695
  same per-table contract the `EditorProvider` takes: the header row's
672
696
  height comes from `getHeaderHeight(tableId)` and the grid's drag commits
673
697
  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
698
+ the document blocks over the same table stand one height; the double-click
699
+ reset over the stretched header clears the value (the `undefined`'s stand)
700
+ and returns the auto height. The optional
701
+ `getRowCount(tableId)` supplies the toolbar's authoritative total under the
702
+ same read-on-render contract. Without the
675
703
  contract the grid renders no header handle (the header keeps the auto
676
704
  height). The standalone's grid
677
705
  stands no table-name display — the consumer's own visual element (the
@@ -1169,3 +1197,9 @@ Structural styling hooks are `data-slot` attributes (`docblocks/editor`,
1169
1197
  `data-block-type`, `data-list`, `data-depth`, and the per-state attributes — see
1170
1198
  the stylesheet header for the full list. User content styling (run color /
1171
1199
  highlight) is document data, not theme, and is applied inline.
1200
+
1201
+ Block anchors: the block's wrapper (and its inner editable) stand
1202
+ `data-block-id` + `data-block-type`, and every page row stands the same
1203
+ attributes over its own element (`data-slot="docblocks/row"`) — the block's
1204
+ DOM anchor for navigating to it by id (a table of contents scrolling to a
1205
+ heading).