@mmstack/primitives 20.14.4 → 20.15.1
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/fesm2022/mmstack-primitives.mjs +43 -62
- package/fesm2022/mmstack-primitives.mjs.map +1 -1
- package/index.d.ts +18 -5
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -2348,6 +2348,16 @@ type PointerDragOptions = SensorRunOptions & {
|
|
|
2348
2348
|
* sortable inside another). @default false
|
|
2349
2349
|
*/
|
|
2350
2350
|
stopPropagation?: boolean;
|
|
2351
|
+
/**
|
|
2352
|
+
* Listen for `pointerdown` in the capture phase. Lets the sensor observe
|
|
2353
|
+
* presses on a surface whose own capture-phase listeners stop propagation
|
|
2354
|
+
* (e.g. an editor shield swallowing events before they reach rendered
|
|
2355
|
+
* content) — same-element listeners still run after a `stopPropagation()`,
|
|
2356
|
+
* so a capture-phase sensor on the shielded surface sees every press.
|
|
2357
|
+
* Subsequent move/up tracking is unaffected (the gesture holds pointer
|
|
2358
|
+
* capture). @default false
|
|
2359
|
+
*/
|
|
2360
|
+
capture?: boolean;
|
|
2351
2361
|
};
|
|
2352
2362
|
/** A gesture signal with an `unthrottled` view and an imperative `cancel()`. */
|
|
2353
2363
|
type PointerDragSignal = Signal<PointerDragState> & {
|
|
@@ -3351,12 +3361,15 @@ type HlcClock = {
|
|
|
3351
3361
|
declare function createHlcClock(now?: () => number): HlcClock;
|
|
3352
3362
|
|
|
3353
3363
|
/**
|
|
3354
|
-
* Wire protocol version. Version 2 ops carry `cites` + `epoch` (the dot-citation register)
|
|
3355
|
-
*
|
|
3356
|
-
*
|
|
3357
|
-
*
|
|
3364
|
+
* Wire protocol version. Version 2 ops carry `cites` + `epoch` (the dot-citation register).
|
|
3365
|
+
* Version 3 changes MATERIALIZATION semantics, not shape: grafts descend through plain arrays
|
|
3366
|
+
* (per-index ops materialize instead of silently dropping) and the documented drop rule is
|
|
3367
|
+
* enforced for non-plain ancestors — so a v2 replica and a v3 replica CANNOT converge on the
|
|
3368
|
+
* same op set, which is exactly what the version fence exists to make loud. Envelopes from
|
|
3369
|
+
* other versions are dropped loudly, and the tab-sync join protocol refuses to pair mismatched
|
|
3370
|
+
* peers: versions are never silently mixed, in shape OR in meaning.
|
|
3358
3371
|
*/
|
|
3359
|
-
declare const OP_PROTO_VERSION =
|
|
3372
|
+
declare const OP_PROTO_VERSION = 3;
|
|
3360
3373
|
type Key = string | number;
|
|
3361
3374
|
/**
|
|
3362
3375
|
* A dot: the globally-unique identity of one op at one path, the emitting replica (`origin`)
|