@almadar/ui 4.50.11 → 4.50.12

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.
@@ -25131,8 +25131,16 @@ function useDataDnd(args) {
25131
25131
  const ctx = React93__namespace.default.useContext(RootCtx);
25132
25132
  const activeDrag2 = ctx?.activeDrag ?? null;
25133
25133
  const showForeignPlaceholder = isOver && activeDrag2 != null && activeDrag2.sourceGroup !== ownGroup;
25134
+ dndLog.debug("dropzone:render", {
25135
+ group: ownGroup,
25136
+ isOver,
25137
+ activeDragSourceGroup: activeDrag2?.sourceGroup ?? null,
25138
+ activeDragHeight: activeDrag2?.height ?? null,
25139
+ showForeignPlaceholder,
25140
+ ctxAvailable: ctx != null
25141
+ });
25134
25142
  React93__namespace.default.useEffect(() => {
25135
- dndLog.debug("dropzone:isOver:change", { droppableId, group: ownGroup, isOver, showForeignPlaceholder });
25143
+ dndLog.info("dropzone:isOver:change", { droppableId, group: ownGroup, isOver, showForeignPlaceholder, activeDragSourceGroup: activeDrag2?.sourceGroup ?? null });
25136
25144
  }, [droppableId, isOver, showForeignPlaceholder]);
25137
25145
  return /* @__PURE__ */ jsxRuntime.jsxs(
25138
25146
  Box,
@@ -25165,15 +25173,19 @@ function useDataDnd(args) {
25165
25173
  const height = rect?.height && rect.height > 0 ? rect.height : 64;
25166
25174
  if (sourceZone) {
25167
25175
  setActiveDrag({ sourceGroup: sourceZone.group, height });
25176
+ dndLog.info("dragStart:activeDrag:set", { sourceGroup: sourceZone.group, height, isRoot, hookZoneId: zoneId });
25177
+ } else {
25178
+ dndLog.warn("dragStart:no-source-zone", { activeId: event.active.id, zoneCount: zonesRef.current.size, isRoot });
25168
25179
  }
25169
25180
  dndLog.info("dragStart", {
25170
25181
  activeId: event.active.id,
25171
25182
  activeData: event.active.data?.current,
25172
25183
  sourceGroup: sourceZone?.group,
25173
25184
  height,
25174
- zoneCount: zonesRef.current.size
25185
+ zoneCount: zonesRef.current.size,
25186
+ isRoot
25175
25187
  });
25176
- }, [findZoneByItem]);
25188
+ }, [findZoneByItem, isRoot, zoneId]);
25177
25189
  const handleDragOver = React93__namespace.default.useCallback((event) => {
25178
25190
  dndLog.debug("dragOver", {
25179
25191
  activeId: event.active.id,
package/dist/avl/index.js CHANGED
@@ -25085,8 +25085,16 @@ function useDataDnd(args) {
25085
25085
  const ctx = React93__default.useContext(RootCtx);
25086
25086
  const activeDrag2 = ctx?.activeDrag ?? null;
25087
25087
  const showForeignPlaceholder = isOver && activeDrag2 != null && activeDrag2.sourceGroup !== ownGroup;
25088
+ dndLog.debug("dropzone:render", {
25089
+ group: ownGroup,
25090
+ isOver,
25091
+ activeDragSourceGroup: activeDrag2?.sourceGroup ?? null,
25092
+ activeDragHeight: activeDrag2?.height ?? null,
25093
+ showForeignPlaceholder,
25094
+ ctxAvailable: ctx != null
25095
+ });
25088
25096
  React93__default.useEffect(() => {
25089
- dndLog.debug("dropzone:isOver:change", { droppableId, group: ownGroup, isOver, showForeignPlaceholder });
25097
+ dndLog.info("dropzone:isOver:change", { droppableId, group: ownGroup, isOver, showForeignPlaceholder, activeDragSourceGroup: activeDrag2?.sourceGroup ?? null });
25090
25098
  }, [droppableId, isOver, showForeignPlaceholder]);
25091
25099
  return /* @__PURE__ */ jsxs(
25092
25100
  Box,
@@ -25119,15 +25127,19 @@ function useDataDnd(args) {
25119
25127
  const height = rect?.height && rect.height > 0 ? rect.height : 64;
25120
25128
  if (sourceZone) {
25121
25129
  setActiveDrag({ sourceGroup: sourceZone.group, height });
25130
+ dndLog.info("dragStart:activeDrag:set", { sourceGroup: sourceZone.group, height, isRoot, hookZoneId: zoneId });
25131
+ } else {
25132
+ dndLog.warn("dragStart:no-source-zone", { activeId: event.active.id, zoneCount: zonesRef.current.size, isRoot });
25122
25133
  }
25123
25134
  dndLog.info("dragStart", {
25124
25135
  activeId: event.active.id,
25125
25136
  activeData: event.active.data?.current,
25126
25137
  sourceGroup: sourceZone?.group,
25127
25138
  height,
25128
- zoneCount: zonesRef.current.size
25139
+ zoneCount: zonesRef.current.size,
25140
+ isRoot
25129
25141
  });
25130
- }, [findZoneByItem]);
25142
+ }, [findZoneByItem, isRoot, zoneId]);
25131
25143
  const handleDragOver = React93__default.useCallback((event) => {
25132
25144
  dndLog.debug("dragOver", {
25133
25145
  activeId: event.active.id,
@@ -20298,8 +20298,16 @@ function useDataDnd(args) {
20298
20298
  const ctx = React75__namespace.default.useContext(RootCtx);
20299
20299
  const activeDrag2 = ctx?.activeDrag ?? null;
20300
20300
  const showForeignPlaceholder = isOver && activeDrag2 != null && activeDrag2.sourceGroup !== ownGroup;
20301
+ dndLog.debug("dropzone:render", {
20302
+ group: ownGroup,
20303
+ isOver,
20304
+ activeDragSourceGroup: activeDrag2?.sourceGroup ?? null,
20305
+ activeDragHeight: activeDrag2?.height ?? null,
20306
+ showForeignPlaceholder,
20307
+ ctxAvailable: ctx != null
20308
+ });
20301
20309
  React75__namespace.default.useEffect(() => {
20302
- dndLog.debug("dropzone:isOver:change", { droppableId, group: ownGroup, isOver, showForeignPlaceholder });
20310
+ dndLog.info("dropzone:isOver:change", { droppableId, group: ownGroup, isOver, showForeignPlaceholder, activeDragSourceGroup: activeDrag2?.sourceGroup ?? null });
20303
20311
  }, [droppableId, isOver, showForeignPlaceholder]);
20304
20312
  return /* @__PURE__ */ jsxRuntime.jsxs(
20305
20313
  exports.Box,
@@ -20332,15 +20340,19 @@ function useDataDnd(args) {
20332
20340
  const height = rect?.height && rect.height > 0 ? rect.height : 64;
20333
20341
  if (sourceZone) {
20334
20342
  setActiveDrag({ sourceGroup: sourceZone.group, height });
20343
+ dndLog.info("dragStart:activeDrag:set", { sourceGroup: sourceZone.group, height, isRoot, hookZoneId: zoneId });
20344
+ } else {
20345
+ dndLog.warn("dragStart:no-source-zone", { activeId: event.active.id, zoneCount: zonesRef.current.size, isRoot });
20335
20346
  }
20336
20347
  dndLog.info("dragStart", {
20337
20348
  activeId: event.active.id,
20338
20349
  activeData: event.active.data?.current,
20339
20350
  sourceGroup: sourceZone?.group,
20340
20351
  height,
20341
- zoneCount: zonesRef.current.size
20352
+ zoneCount: zonesRef.current.size,
20353
+ isRoot
20342
20354
  });
20343
- }, [findZoneByItem]);
20355
+ }, [findZoneByItem, isRoot, zoneId]);
20344
20356
  const handleDragOver = React75__namespace.default.useCallback((event) => {
20345
20357
  dndLog.debug("dragOver", {
20346
20358
  activeId: event.active.id,
@@ -20252,8 +20252,16 @@ function useDataDnd(args) {
20252
20252
  const ctx = React75__default.useContext(RootCtx);
20253
20253
  const activeDrag2 = ctx?.activeDrag ?? null;
20254
20254
  const showForeignPlaceholder = isOver && activeDrag2 != null && activeDrag2.sourceGroup !== ownGroup;
20255
+ dndLog.debug("dropzone:render", {
20256
+ group: ownGroup,
20257
+ isOver,
20258
+ activeDragSourceGroup: activeDrag2?.sourceGroup ?? null,
20259
+ activeDragHeight: activeDrag2?.height ?? null,
20260
+ showForeignPlaceholder,
20261
+ ctxAvailable: ctx != null
20262
+ });
20255
20263
  React75__default.useEffect(() => {
20256
- dndLog.debug("dropzone:isOver:change", { droppableId, group: ownGroup, isOver, showForeignPlaceholder });
20264
+ dndLog.info("dropzone:isOver:change", { droppableId, group: ownGroup, isOver, showForeignPlaceholder, activeDragSourceGroup: activeDrag2?.sourceGroup ?? null });
20257
20265
  }, [droppableId, isOver, showForeignPlaceholder]);
20258
20266
  return /* @__PURE__ */ jsxs(
20259
20267
  Box,
@@ -20286,15 +20294,19 @@ function useDataDnd(args) {
20286
20294
  const height = rect?.height && rect.height > 0 ? rect.height : 64;
20287
20295
  if (sourceZone) {
20288
20296
  setActiveDrag({ sourceGroup: sourceZone.group, height });
20297
+ dndLog.info("dragStart:activeDrag:set", { sourceGroup: sourceZone.group, height, isRoot, hookZoneId: zoneId });
20298
+ } else {
20299
+ dndLog.warn("dragStart:no-source-zone", { activeId: event.active.id, zoneCount: zonesRef.current.size, isRoot });
20289
20300
  }
20290
20301
  dndLog.info("dragStart", {
20291
20302
  activeId: event.active.id,
20292
20303
  activeData: event.active.data?.current,
20293
20304
  sourceGroup: sourceZone?.group,
20294
20305
  height,
20295
- zoneCount: zonesRef.current.size
20306
+ zoneCount: zonesRef.current.size,
20307
+ isRoot
20296
20308
  });
20297
- }, [findZoneByItem]);
20309
+ }, [findZoneByItem, isRoot, zoneId]);
20298
20310
  const handleDragOver = React75__default.useCallback((event) => {
20299
20311
  dndLog.debug("dragOver", {
20300
20312
  activeId: event.active.id,
@@ -21543,8 +21543,16 @@ function useDataDnd(args) {
21543
21543
  const ctx = React81__namespace.default.useContext(RootCtx);
21544
21544
  const activeDrag2 = ctx?.activeDrag ?? null;
21545
21545
  const showForeignPlaceholder = isOver && activeDrag2 != null && activeDrag2.sourceGroup !== ownGroup;
21546
+ dndLog.debug("dropzone:render", {
21547
+ group: ownGroup,
21548
+ isOver,
21549
+ activeDragSourceGroup: activeDrag2?.sourceGroup ?? null,
21550
+ activeDragHeight: activeDrag2?.height ?? null,
21551
+ showForeignPlaceholder,
21552
+ ctxAvailable: ctx != null
21553
+ });
21546
21554
  React81__namespace.default.useEffect(() => {
21547
- dndLog.debug("dropzone:isOver:change", { droppableId, group: ownGroup, isOver, showForeignPlaceholder });
21555
+ dndLog.info("dropzone:isOver:change", { droppableId, group: ownGroup, isOver, showForeignPlaceholder, activeDragSourceGroup: activeDrag2?.sourceGroup ?? null });
21548
21556
  }, [droppableId, isOver, showForeignPlaceholder]);
21549
21557
  return /* @__PURE__ */ jsxRuntime.jsxs(
21550
21558
  Box,
@@ -21577,15 +21585,19 @@ function useDataDnd(args) {
21577
21585
  const height = rect?.height && rect.height > 0 ? rect.height : 64;
21578
21586
  if (sourceZone) {
21579
21587
  setActiveDrag({ sourceGroup: sourceZone.group, height });
21588
+ dndLog.info("dragStart:activeDrag:set", { sourceGroup: sourceZone.group, height, isRoot, hookZoneId: zoneId });
21589
+ } else {
21590
+ dndLog.warn("dragStart:no-source-zone", { activeId: event.active.id, zoneCount: zonesRef.current.size, isRoot });
21580
21591
  }
21581
21592
  dndLog.info("dragStart", {
21582
21593
  activeId: event.active.id,
21583
21594
  activeData: event.active.data?.current,
21584
21595
  sourceGroup: sourceZone?.group,
21585
21596
  height,
21586
- zoneCount: zonesRef.current.size
21597
+ zoneCount: zonesRef.current.size,
21598
+ isRoot
21587
21599
  });
21588
- }, [findZoneByItem]);
21600
+ }, [findZoneByItem, isRoot, zoneId]);
21589
21601
  const handleDragOver = React81__namespace.default.useCallback((event) => {
21590
21602
  dndLog.debug("dragOver", {
21591
21603
  activeId: event.active.id,
@@ -21497,8 +21497,16 @@ function useDataDnd(args) {
21497
21497
  const ctx = React81__default.useContext(RootCtx);
21498
21498
  const activeDrag2 = ctx?.activeDrag ?? null;
21499
21499
  const showForeignPlaceholder = isOver && activeDrag2 != null && activeDrag2.sourceGroup !== ownGroup;
21500
+ dndLog.debug("dropzone:render", {
21501
+ group: ownGroup,
21502
+ isOver,
21503
+ activeDragSourceGroup: activeDrag2?.sourceGroup ?? null,
21504
+ activeDragHeight: activeDrag2?.height ?? null,
21505
+ showForeignPlaceholder,
21506
+ ctxAvailable: ctx != null
21507
+ });
21500
21508
  React81__default.useEffect(() => {
21501
- dndLog.debug("dropzone:isOver:change", { droppableId, group: ownGroup, isOver, showForeignPlaceholder });
21509
+ dndLog.info("dropzone:isOver:change", { droppableId, group: ownGroup, isOver, showForeignPlaceholder, activeDragSourceGroup: activeDrag2?.sourceGroup ?? null });
21502
21510
  }, [droppableId, isOver, showForeignPlaceholder]);
21503
21511
  return /* @__PURE__ */ jsxs(
21504
21512
  Box,
@@ -21531,15 +21539,19 @@ function useDataDnd(args) {
21531
21539
  const height = rect?.height && rect.height > 0 ? rect.height : 64;
21532
21540
  if (sourceZone) {
21533
21541
  setActiveDrag({ sourceGroup: sourceZone.group, height });
21542
+ dndLog.info("dragStart:activeDrag:set", { sourceGroup: sourceZone.group, height, isRoot, hookZoneId: zoneId });
21543
+ } else {
21544
+ dndLog.warn("dragStart:no-source-zone", { activeId: event.active.id, zoneCount: zonesRef.current.size, isRoot });
21534
21545
  }
21535
21546
  dndLog.info("dragStart", {
21536
21547
  activeId: event.active.id,
21537
21548
  activeData: event.active.data?.current,
21538
21549
  sourceGroup: sourceZone?.group,
21539
21550
  height,
21540
- zoneCount: zonesRef.current.size
21551
+ zoneCount: zonesRef.current.size,
21552
+ isRoot
21541
21553
  });
21542
- }, [findZoneByItem]);
21554
+ }, [findZoneByItem, isRoot, zoneId]);
21543
21555
  const handleDragOver = React81__default.useCallback((event) => {
21544
21556
  dndLog.debug("dragOver", {
21545
21557
  activeId: event.active.id,
@@ -21312,8 +21312,16 @@ function useDataDnd(args) {
21312
21312
  const ctx = React80__namespace.default.useContext(RootCtx);
21313
21313
  const activeDrag2 = ctx?.activeDrag ?? null;
21314
21314
  const showForeignPlaceholder = isOver && activeDrag2 != null && activeDrag2.sourceGroup !== ownGroup;
21315
+ dndLog.debug("dropzone:render", {
21316
+ group: ownGroup,
21317
+ isOver,
21318
+ activeDragSourceGroup: activeDrag2?.sourceGroup ?? null,
21319
+ activeDragHeight: activeDrag2?.height ?? null,
21320
+ showForeignPlaceholder,
21321
+ ctxAvailable: ctx != null
21322
+ });
21315
21323
  React80__namespace.default.useEffect(() => {
21316
- dndLog.debug("dropzone:isOver:change", { droppableId, group: ownGroup, isOver, showForeignPlaceholder });
21324
+ dndLog.info("dropzone:isOver:change", { droppableId, group: ownGroup, isOver, showForeignPlaceholder, activeDragSourceGroup: activeDrag2?.sourceGroup ?? null });
21317
21325
  }, [droppableId, isOver, showForeignPlaceholder]);
21318
21326
  return /* @__PURE__ */ jsxRuntime.jsxs(
21319
21327
  Box,
@@ -21346,15 +21354,19 @@ function useDataDnd(args) {
21346
21354
  const height = rect?.height && rect.height > 0 ? rect.height : 64;
21347
21355
  if (sourceZone) {
21348
21356
  setActiveDrag({ sourceGroup: sourceZone.group, height });
21357
+ dndLog.info("dragStart:activeDrag:set", { sourceGroup: sourceZone.group, height, isRoot, hookZoneId: zoneId });
21358
+ } else {
21359
+ dndLog.warn("dragStart:no-source-zone", { activeId: event.active.id, zoneCount: zonesRef.current.size, isRoot });
21349
21360
  }
21350
21361
  dndLog.info("dragStart", {
21351
21362
  activeId: event.active.id,
21352
21363
  activeData: event.active.data?.current,
21353
21364
  sourceGroup: sourceZone?.group,
21354
21365
  height,
21355
- zoneCount: zonesRef.current.size
21366
+ zoneCount: zonesRef.current.size,
21367
+ isRoot
21356
21368
  });
21357
- }, [findZoneByItem]);
21369
+ }, [findZoneByItem, isRoot, zoneId]);
21358
21370
  const handleDragOver = React80__namespace.default.useCallback((event) => {
21359
21371
  dndLog.debug("dragOver", {
21360
21372
  activeId: event.active.id,
@@ -21266,8 +21266,16 @@ function useDataDnd(args) {
21266
21266
  const ctx = React80__default.useContext(RootCtx);
21267
21267
  const activeDrag2 = ctx?.activeDrag ?? null;
21268
21268
  const showForeignPlaceholder = isOver && activeDrag2 != null && activeDrag2.sourceGroup !== ownGroup;
21269
+ dndLog.debug("dropzone:render", {
21270
+ group: ownGroup,
21271
+ isOver,
21272
+ activeDragSourceGroup: activeDrag2?.sourceGroup ?? null,
21273
+ activeDragHeight: activeDrag2?.height ?? null,
21274
+ showForeignPlaceholder,
21275
+ ctxAvailable: ctx != null
21276
+ });
21269
21277
  React80__default.useEffect(() => {
21270
- dndLog.debug("dropzone:isOver:change", { droppableId, group: ownGroup, isOver, showForeignPlaceholder });
21278
+ dndLog.info("dropzone:isOver:change", { droppableId, group: ownGroup, isOver, showForeignPlaceholder, activeDragSourceGroup: activeDrag2?.sourceGroup ?? null });
21271
21279
  }, [droppableId, isOver, showForeignPlaceholder]);
21272
21280
  return /* @__PURE__ */ jsxs(
21273
21281
  Box,
@@ -21300,15 +21308,19 @@ function useDataDnd(args) {
21300
21308
  const height = rect?.height && rect.height > 0 ? rect.height : 64;
21301
21309
  if (sourceZone) {
21302
21310
  setActiveDrag({ sourceGroup: sourceZone.group, height });
21311
+ dndLog.info("dragStart:activeDrag:set", { sourceGroup: sourceZone.group, height, isRoot, hookZoneId: zoneId });
21312
+ } else {
21313
+ dndLog.warn("dragStart:no-source-zone", { activeId: event.active.id, zoneCount: zonesRef.current.size, isRoot });
21303
21314
  }
21304
21315
  dndLog.info("dragStart", {
21305
21316
  activeId: event.active.id,
21306
21317
  activeData: event.active.data?.current,
21307
21318
  sourceGroup: sourceZone?.group,
21308
21319
  height,
21309
- zoneCount: zonesRef.current.size
21320
+ zoneCount: zonesRef.current.size,
21321
+ isRoot
21310
21322
  });
21311
- }, [findZoneByItem]);
21323
+ }, [findZoneByItem, isRoot, zoneId]);
21312
21324
  const handleDragOver = React80__default.useCallback((event) => {
21313
21325
  dndLog.debug("dragOver", {
21314
21326
  activeId: event.active.id,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@almadar/ui",
3
- "version": "4.50.11",
3
+ "version": "4.50.12",
4
4
  "description": "React UI components, hooks, and providers for Almadar",
5
5
  "type": "module",
6
6
  "sideEffects": [