docblocks-core 0.1.3 → 0.2.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 +23 -0
- package/dist/index.d.mts +15 -0
- package/dist/index.mjs +11 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# docblocks-core
|
|
2
2
|
|
|
3
|
+
## 0.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 0791efb: The `embed` block gains the persisted view attrs: the optional `zoom`
|
|
8
|
+
(the scale factor, positive) and `panX` / `panY` (the pan offsets, px).
|
|
9
|
+
Absent or `null` stand the identity view (the attrs' null idiom — the
|
|
10
|
+
values are never removed, `null` = the view cleared). The reader stands
|
|
11
|
+
the unknown attrs over the older data (absent = the identity); the
|
|
12
|
+
validator stands the finite-number / positive-zoom rules over the
|
|
13
|
+
strict's path.
|
|
14
|
+
- 48ef4fb: The `embed` block's height stands the stretchable stand: the
|
|
15
|
+
`--docblocks-embed-height` token (300 px) is the default — the minimum,
|
|
16
|
+
and the block's bottom edge stands the resize handle (the hover reveal's
|
|
17
|
+
grip bar, the `cursor-row-resize`'s stand, the keyboard's arrows over
|
|
18
|
+
the 16 px's step — the slider's aria). The drag stretches the wrapper's
|
|
19
|
+
height over the gesture (the live's stand), and the rest's commit stands
|
|
20
|
+
the block's new `height` attr (px; absent or `null` = the token's
|
|
21
|
+
default — the null idiom's stand, so the reload restores the stretched
|
|
22
|
+
stand and the panes share it over the wire). The stretch only stands
|
|
23
|
+
over the minimum (the drag over it clamps, the clear stands the `null`'s
|
|
24
|
+
write); the read-only's stand gates the handle off.
|
|
25
|
+
|
|
3
26
|
## 0.1.3
|
|
4
27
|
|
|
5
28
|
### Patch Changes
|
package/dist/index.d.mts
CHANGED
|
@@ -283,6 +283,21 @@ interface EmbedAttrs {
|
|
|
283
283
|
src: string;
|
|
284
284
|
/** Accessible title; falls back to the kind in the renderer. */
|
|
285
285
|
title?: string;
|
|
286
|
+
/**
|
|
287
|
+
* The persisted zoom (the scale factor; 1 = 100%). Absent or `null` = the
|
|
288
|
+
* identity (the null idiom — attrs are never removed).
|
|
289
|
+
*/
|
|
290
|
+
zoom?: number | null;
|
|
291
|
+
/** The persisted horizontal pan offset (px); absent or `null` = 0. */
|
|
292
|
+
panX?: number | null;
|
|
293
|
+
/** The persisted vertical pan offset (px); absent or `null` = 0. */
|
|
294
|
+
panY?: number | null;
|
|
295
|
+
/**
|
|
296
|
+
* The persisted height (px; the block's stretched stand). Absent or
|
|
297
|
+
* `null` = the default (the `--docblocks-embed-height` token's stand —
|
|
298
|
+
* the minimum; the resize only stretches over it).
|
|
299
|
+
*/
|
|
300
|
+
height?: number | null;
|
|
286
301
|
/** Nesting depth in the page sequence (default 0). */
|
|
287
302
|
indent?: PageIndent;
|
|
288
303
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -710,7 +710,17 @@ const BLOCK_REGISTRY = {
|
|
|
710
710
|
nonEmpty: true,
|
|
711
711
|
required: true
|
|
712
712
|
},
|
|
713
|
-
title: { kind: "string" }
|
|
713
|
+
title: { kind: "string" },
|
|
714
|
+
zoom: {
|
|
715
|
+
kind: "nullable-number",
|
|
716
|
+
positive: true
|
|
717
|
+
},
|
|
718
|
+
panX: { kind: "nullable-number" },
|
|
719
|
+
panY: { kind: "nullable-number" },
|
|
720
|
+
height: {
|
|
721
|
+
kind: "nullable-number",
|
|
722
|
+
positive: true
|
|
723
|
+
}
|
|
714
724
|
}
|
|
715
725
|
},
|
|
716
726
|
"sync-embed": {
|
package/package.json
CHANGED