@almadar/ui 4.50.15 → 4.50.16

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.
@@ -24937,7 +24937,18 @@ function useDataDnd(args) {
24937
24937
  });
24938
24938
  }, []);
24939
24939
  const sharedOptimistic = isRoot ? optimisticOrders : parentRoot?.optimisticOrders ?? /* @__PURE__ */ new Map();
24940
- const orderedItems = sharedOptimistic.get(ownGroup) ?? items;
24940
+ const optimisticEntry = sharedOptimistic.get(ownGroup);
24941
+ const orderedItems = optimisticEntry ?? items;
24942
+ if (isZone && enabled) {
24943
+ dndLog.debug("hook:render", {
24944
+ group: ownGroup,
24945
+ isRoot,
24946
+ itemsLen: items.length,
24947
+ optimisticEntryLen: optimisticEntry ? optimisticEntry.length : null,
24948
+ orderedLen: orderedItems.length,
24949
+ sharedKeys: Array.from(sharedOptimistic.keys())
24950
+ });
24951
+ }
24941
24952
  const itemIdsSignature = orderedItems.map((it, idx) => {
24942
24953
  const raw = it[dndItemIdField];
24943
24954
  return String(raw ?? `__idx_${idx}`);
package/dist/avl/index.js CHANGED
@@ -24891,7 +24891,18 @@ function useDataDnd(args) {
24891
24891
  });
24892
24892
  }, []);
24893
24893
  const sharedOptimistic = isRoot ? optimisticOrders : parentRoot?.optimisticOrders ?? /* @__PURE__ */ new Map();
24894
- const orderedItems = sharedOptimistic.get(ownGroup) ?? items;
24894
+ const optimisticEntry = sharedOptimistic.get(ownGroup);
24895
+ const orderedItems = optimisticEntry ?? items;
24896
+ if (isZone && enabled) {
24897
+ dndLog.debug("hook:render", {
24898
+ group: ownGroup,
24899
+ isRoot,
24900
+ itemsLen: items.length,
24901
+ optimisticEntryLen: optimisticEntry ? optimisticEntry.length : null,
24902
+ orderedLen: orderedItems.length,
24903
+ sharedKeys: Array.from(sharedOptimistic.keys())
24904
+ });
24905
+ }
24895
24906
  const itemIdsSignature = orderedItems.map((it, idx) => {
24896
24907
  const raw = it[dndItemIdField];
24897
24908
  return String(raw ?? `__idx_${idx}`);
@@ -20104,7 +20104,18 @@ function useDataDnd(args) {
20104
20104
  });
20105
20105
  }, []);
20106
20106
  const sharedOptimistic = isRoot ? optimisticOrders : parentRoot?.optimisticOrders ?? /* @__PURE__ */ new Map();
20107
- const orderedItems = sharedOptimistic.get(ownGroup) ?? items;
20107
+ const optimisticEntry = sharedOptimistic.get(ownGroup);
20108
+ const orderedItems = optimisticEntry ?? items;
20109
+ if (isZone && enabled) {
20110
+ dndLog.debug("hook:render", {
20111
+ group: ownGroup,
20112
+ isRoot,
20113
+ itemsLen: items.length,
20114
+ optimisticEntryLen: optimisticEntry ? optimisticEntry.length : null,
20115
+ orderedLen: orderedItems.length,
20116
+ sharedKeys: Array.from(sharedOptimistic.keys())
20117
+ });
20118
+ }
20108
20119
  const itemIdsSignature = orderedItems.map((it, idx) => {
20109
20120
  const raw = it[dndItemIdField];
20110
20121
  return String(raw ?? `__idx_${idx}`);
@@ -20058,7 +20058,18 @@ function useDataDnd(args) {
20058
20058
  });
20059
20059
  }, []);
20060
20060
  const sharedOptimistic = isRoot ? optimisticOrders : parentRoot?.optimisticOrders ?? /* @__PURE__ */ new Map();
20061
- const orderedItems = sharedOptimistic.get(ownGroup) ?? items;
20061
+ const optimisticEntry = sharedOptimistic.get(ownGroup);
20062
+ const orderedItems = optimisticEntry ?? items;
20063
+ if (isZone && enabled) {
20064
+ dndLog.debug("hook:render", {
20065
+ group: ownGroup,
20066
+ isRoot,
20067
+ itemsLen: items.length,
20068
+ optimisticEntryLen: optimisticEntry ? optimisticEntry.length : null,
20069
+ orderedLen: orderedItems.length,
20070
+ sharedKeys: Array.from(sharedOptimistic.keys())
20071
+ });
20072
+ }
20062
20073
  const itemIdsSignature = orderedItems.map((it, idx) => {
20063
20074
  const raw = it[dndItemIdField];
20064
20075
  return String(raw ?? `__idx_${idx}`);
@@ -21349,7 +21349,18 @@ function useDataDnd(args) {
21349
21349
  });
21350
21350
  }, []);
21351
21351
  const sharedOptimistic = isRoot ? optimisticOrders : parentRoot?.optimisticOrders ?? /* @__PURE__ */ new Map();
21352
- const orderedItems = sharedOptimistic.get(ownGroup) ?? items;
21352
+ const optimisticEntry = sharedOptimistic.get(ownGroup);
21353
+ const orderedItems = optimisticEntry ?? items;
21354
+ if (isZone && enabled) {
21355
+ dndLog.debug("hook:render", {
21356
+ group: ownGroup,
21357
+ isRoot,
21358
+ itemsLen: items.length,
21359
+ optimisticEntryLen: optimisticEntry ? optimisticEntry.length : null,
21360
+ orderedLen: orderedItems.length,
21361
+ sharedKeys: Array.from(sharedOptimistic.keys())
21362
+ });
21363
+ }
21353
21364
  const itemIdsSignature = orderedItems.map((it, idx) => {
21354
21365
  const raw = it[dndItemIdField];
21355
21366
  return String(raw ?? `__idx_${idx}`);
@@ -21303,7 +21303,18 @@ function useDataDnd(args) {
21303
21303
  });
21304
21304
  }, []);
21305
21305
  const sharedOptimistic = isRoot ? optimisticOrders : parentRoot?.optimisticOrders ?? /* @__PURE__ */ new Map();
21306
- const orderedItems = sharedOptimistic.get(ownGroup) ?? items;
21306
+ const optimisticEntry = sharedOptimistic.get(ownGroup);
21307
+ const orderedItems = optimisticEntry ?? items;
21308
+ if (isZone && enabled) {
21309
+ dndLog.debug("hook:render", {
21310
+ group: ownGroup,
21311
+ isRoot,
21312
+ itemsLen: items.length,
21313
+ optimisticEntryLen: optimisticEntry ? optimisticEntry.length : null,
21314
+ orderedLen: orderedItems.length,
21315
+ sharedKeys: Array.from(sharedOptimistic.keys())
21316
+ });
21317
+ }
21307
21318
  const itemIdsSignature = orderedItems.map((it, idx) => {
21308
21319
  const raw = it[dndItemIdField];
21309
21320
  return String(raw ?? `__idx_${idx}`);
@@ -21118,7 +21118,18 @@ function useDataDnd(args) {
21118
21118
  });
21119
21119
  }, []);
21120
21120
  const sharedOptimistic = isRoot ? optimisticOrders : parentRoot?.optimisticOrders ?? /* @__PURE__ */ new Map();
21121
- const orderedItems = sharedOptimistic.get(ownGroup) ?? items;
21121
+ const optimisticEntry = sharedOptimistic.get(ownGroup);
21122
+ const orderedItems = optimisticEntry ?? items;
21123
+ if (isZone && enabled) {
21124
+ dndLog.debug("hook:render", {
21125
+ group: ownGroup,
21126
+ isRoot,
21127
+ itemsLen: items.length,
21128
+ optimisticEntryLen: optimisticEntry ? optimisticEntry.length : null,
21129
+ orderedLen: orderedItems.length,
21130
+ sharedKeys: Array.from(sharedOptimistic.keys())
21131
+ });
21132
+ }
21122
21133
  const itemIdsSignature = orderedItems.map((it, idx) => {
21123
21134
  const raw = it[dndItemIdField];
21124
21135
  return String(raw ?? `__idx_${idx}`);
@@ -21072,7 +21072,18 @@ function useDataDnd(args) {
21072
21072
  });
21073
21073
  }, []);
21074
21074
  const sharedOptimistic = isRoot ? optimisticOrders : parentRoot?.optimisticOrders ?? /* @__PURE__ */ new Map();
21075
- const orderedItems = sharedOptimistic.get(ownGroup) ?? items;
21075
+ const optimisticEntry = sharedOptimistic.get(ownGroup);
21076
+ const orderedItems = optimisticEntry ?? items;
21077
+ if (isZone && enabled) {
21078
+ dndLog.debug("hook:render", {
21079
+ group: ownGroup,
21080
+ isRoot,
21081
+ itemsLen: items.length,
21082
+ optimisticEntryLen: optimisticEntry ? optimisticEntry.length : null,
21083
+ orderedLen: orderedItems.length,
21084
+ sharedKeys: Array.from(sharedOptimistic.keys())
21085
+ });
21086
+ }
21076
21087
  const itemIdsSignature = orderedItems.map((it, idx) => {
21077
21088
  const raw = it[dndItemIdField];
21078
21089
  return String(raw ?? `__idx_${idx}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@almadar/ui",
3
- "version": "4.50.15",
3
+ "version": "4.50.16",
4
4
  "description": "React UI components, hooks, and providers for Almadar",
5
5
  "type": "module",
6
6
  "sideEffects": [