@marianmeres/stuic 1.68.0 → 1.69.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.
@@ -45,6 +45,7 @@ export const draggable = (node, options) => {
45
45
  const _init = (_opts) => {
46
46
  _log('_init', _opts);
47
47
  _removeListeners();
48
+ options?.isDragged?.set(null);
48
49
  if (_opts.enabled) {
49
50
  node.setAttribute('draggable', 'true');
50
51
  node.setAttribute('aria-grabbed', 'false');
@@ -124,6 +125,7 @@ export const droppable = (node, options) => {
124
125
  const _init = (_opts) => {
125
126
  _log('_init', _opts);
126
127
  _removeListeners();
128
+ options?.isDraggedOver?.set(null);
127
129
  if (_opts.enabled) {
128
130
  node.addEventListener('dragenter', onDragenter);
129
131
  node.addEventListener('dragover', onDragover);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marianmeres/stuic",
3
- "version": "1.68.0",
3
+ "version": "1.69.0",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && npm run package && node ./scripts/date.js",