@danxbot/ui 20.17.0 → 20.17.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/dist/index.js +13 -2
- package/dist/index.js.map +1 -1
- package/dist/types/lib/dnd/session.d.ts +9 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -43771,9 +43771,20 @@ class GG {
|
|
|
43771
43771
|
this.containers.get(t.id) === t && this.containers.delete(t.id);
|
|
43772
43772
|
};
|
|
43773
43773
|
}
|
|
43774
|
-
/**
|
|
43774
|
+
/**
|
|
43775
|
+
* Document order, used by keyboard container stepping.
|
|
43776
|
+
*
|
|
43777
|
+
* DX-4590: NOT registration order. A container re-registers whenever its
|
|
43778
|
+
* `total`, `offset` or `axis` changes (a delete + re-add, which moves it to the
|
|
43779
|
+
* end of the Map), and a lane or toggle that mounts later registers later, so
|
|
43780
|
+
* registration order drifts away from the screen and ArrowLeft/Right skip lanes
|
|
43781
|
+
* or reach them out of order. Document order is what the user sees.
|
|
43782
|
+
*/
|
|
43775
43783
|
containerIds() {
|
|
43776
|
-
return [...this.containers.
|
|
43784
|
+
return [...this.containers.values()].sort((t, n) => {
|
|
43785
|
+
const r = t.element.compareDocumentPosition(n.element);
|
|
43786
|
+
return r & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : r & Node.DOCUMENT_POSITION_PRECEDING ? 1 : 0;
|
|
43787
|
+
}).map((t) => t.id);
|
|
43777
43788
|
}
|
|
43778
43789
|
/* --- Layout ------------------------------------------------------------ */
|
|
43779
43790
|
/**
|