@jarenjs/collection 0.84.3 → 0.86.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/ARCHITECTURE.md +8 -0
- package/README.md +6 -0
- package/dist/types/component/drag.d.ts +1351 -0
- package/dist/types/component/index.d.ts +38 -0
- package/dist/types/drag.d.ts +91 -0
- package/dist/types/index.d.ts +11 -0
- package/docs/COLLECTION.md +102 -0
- package/package.json +4 -4
- package/src/component/drag.js +317 -0
- package/src/component/index.js +30 -2
- package/src/drag.js +107 -0
- package/src/index.js +6 -0
package/ARCHITECTURE.md
CHANGED
|
@@ -8,3 +8,11 @@ only core/view. The component entry owns elements, frames and observers and maps
|
|
|
8
8
|
The app range coordinator receives a structural provider from the host. Storage
|
|
9
9
|
adapters in linq/db never import app; neither core nor the collection engine
|
|
10
10
|
imports storage or workers. Source resources stay private to the coordinator.
|
|
11
|
+
|
|
12
|
+
`drag.js` owns serializable drag intent and generation-fenced authority replies.
|
|
13
|
+
The component drag adapter owns pointer capture, keyboard/touch activation,
|
|
14
|
+
client-coordinate hit testing, a portal overlay and bounded auto-scroll. It uses
|
|
15
|
+
collection lifecycle subscriptions and shared focus/pin budgets. DOM resources
|
|
16
|
+
never enter app state and the engine never mutates business data. Native layout
|
|
17
|
+
and capture paths are qualified by the three-engine browser matrix; the headless
|
|
18
|
+
state machine and collection ownership remain in the Node function audit.
|
package/README.md
CHANGED
|
@@ -19,6 +19,12 @@ collection.dispose();
|
|
|
19
19
|
|
|
20
20
|
See [architecture](ARCHITECTURE.md) and [the collection contract](docs/COLLECTION.md).
|
|
21
21
|
|
|
22
|
+
`createDragInteraction` supplies stable-key move/copy intent and async authority
|
|
23
|
+
fencing. `mountCollectionDrag` and `createDraggableCollectionWidget` in
|
|
24
|
+
`@jarenjs/collection/component` add pointer, dedicated touch handles, keyboard,
|
|
25
|
+
portal overlays and bounded auto-scroll over the existing virtualizer. See
|
|
26
|
+
[the drag contract](docs/COLLECTION.md#drag-intent-and-authoritative-commands).
|
|
27
|
+
|
|
22
28
|
## Public exports
|
|
23
29
|
|
|
24
30
|
<!--fact:exports.collection-->
|