docblocks-react-ui 0.21.0 → 0.22.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 +41 -0
- package/dist/{Editor-DlnrmBT3.mjs → Editor-WNvtSeS1.mjs} +728 -236
- package/dist/{index-CfaTBJ85.d.mts → index-BV-kKwCB.d.mts} +1 -1
- package/dist/{index-2gZyAsdf.d.mts → index-DeOMnr7f.d.mts} +35 -0
- package/dist/index.d.mts +4 -4
- package/dist/index.mjs +1 -1
- package/dist/mermaid/index.d.mts +1 -1
- package/dist/mermaid/index.mjs +1 -1
- package/dist/pdf/index.d.mts +1 -1
- package/dist/styles.css +19 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,46 @@
|
|
|
1
1
|
# docblocks-react-ui
|
|
2
2
|
|
|
3
|
+
## 0.22.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 9f02d63: The table's merged cells over the editor: the anchor cell renders the
|
|
8
|
+
region's `colspan`/`rowspan` (the covered cells stand no `<td>`, the
|
|
9
|
+
browser's own table layout carries the geometry), and the cell's corner grip
|
|
10
|
+
drags a rectangular cell range — the new `tableRange` view-state slice,
|
|
11
|
+
never document data. The cell's right-click menu gains **Merge cells** over
|
|
12
|
+
a selected rectangle and **Split cells** over a merged cell (the anchor
|
|
13
|
+
keeps its content, the restored cells stand empty); the grid coordinates the
|
|
14
|
+
hover and the range read come from the resolver, not the DOM's
|
|
15
|
+
`cellIndex`/`rowIndex`, so a merged cell's drawn position never lies. The
|
|
16
|
+
read-only modes render the spans without the grip, the menu commands or the
|
|
17
|
+
resizing chrome.
|
|
18
|
+
|
|
19
|
+
The range's drag resolves the cell from the DOM boxes (never the top-most
|
|
20
|
+
element — the table's chrome overlays the grid), selects whole regions (a
|
|
21
|
+
rectangle never cuts a merged cell), stands no resize seam inside a region,
|
|
22
|
+
and clears on a press over the document's content outside the table.
|
|
23
|
+
|
|
24
|
+
A region's chrome offers nothing it cannot do: no resize seam inside the
|
|
25
|
+
region, no reorder handle over a spanned column / row, and the cell range
|
|
26
|
+
resets over a structural change (its rectangles were read from the cells'
|
|
27
|
+
positions).
|
|
28
|
+
|
|
29
|
+
The add-row chip's drag counts the rows the pointer actually travels: the
|
|
30
|
+
step is the last row's height (it was a fixed 24 px, so one row's worth of
|
|
31
|
+
drag removed two), the removal walks the real row heights from the last one,
|
|
32
|
+
the ghost rows stand the real row height, and the size stand spells the
|
|
33
|
+
delta out (`3 × 3 − 1`).
|
|
34
|
+
|
|
35
|
+
The rows a negative add-chip drag removes stand the columns' fill over the
|
|
36
|
+
last rows (the count rides the size stand), and the slash `/table` takes an
|
|
37
|
+
empty block's slot instead of leaving an empty paragraph above the grid.
|
|
38
|
+
|
|
39
|
+
### Patch Changes
|
|
40
|
+
|
|
41
|
+
- Updated dependencies [db5cfee]
|
|
42
|
+
- docblocks-core@0.9.0
|
|
43
|
+
|
|
3
44
|
## 0.21.0
|
|
4
45
|
|
|
5
46
|
### Minor Changes
|