@infinite-table/infinite-react 9.1.1 → 9.1.2

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/index.dev.js CHANGED
@@ -2720,6 +2720,27 @@ function resizeClamp(value, min, max, direction) {
2720
2720
  }
2721
2721
  return { value, clamped: false, diff: 0 };
2722
2722
  }
2723
+ function hasFlexDeficit(items, availableSize, reservedWidth) {
2724
+ let hasFlex = false;
2725
+ let totalWidth = 0;
2726
+ for (const item of items) {
2727
+ if (item.computedFlex) {
2728
+ hasFlex = true;
2729
+ }
2730
+ totalWidth += item.computedWidth;
2731
+ }
2732
+ return hasFlex && Math.round(totalWidth) > Math.round(availableSize - reservedWidth);
2733
+ }
2734
+ function getResizeSizingProperty(item, flexDeficit) {
2735
+ return item.computedFlex && !flexDeficit ? "flex" : "width";
2736
+ }
2737
+ function withResizedSize(entry, property, size) {
2738
+ if (property === "width") {
2739
+ const { flex: _flex, ...rest } = entry ?? {};
2740
+ return { ...rest, width: size };
2741
+ }
2742
+ return { ...entry, flex: size };
2743
+ }
2723
2744
  var computeResize = (params) => {
2724
2745
  const { availableSize, reservedWidth = 0 } = params;
2725
2746
  const columnSizing = Object.keys(
@@ -2738,14 +2759,19 @@ var computeResize = (params) => {
2738
2759
  const secondItem = params.items[secondIndex];
2739
2760
  const firstId = firstItem.id;
2740
2761
  const secondId = secondItem?.id;
2762
+ const flexDeficit = hasFlexDeficit(
2763
+ params.items,
2764
+ availableSize,
2765
+ reservedWidth
2766
+ );
2741
2767
  const firstSize = firstItem.computedWidth;
2742
2768
  const firstMinSize = firstItem.computedMinWidth;
2743
2769
  const firstMaxSize = firstItem.computedMaxWidth;
2744
- const firstPropertyToAdjust = firstItem.computedFlex ? "flex" : "width";
2770
+ const firstPropertyToAdjust = getResizeSizingProperty(firstItem, flexDeficit);
2745
2771
  const secondSize = secondItem?.computedWidth;
2746
2772
  const secondMinSize = secondItem?.computedMinWidth;
2747
2773
  const secondMaxSize = secondItem?.computedMaxWidth;
2748
- const secondPropertyToAdjust = secondItem?.computedFlex ? "flex" : "width";
2774
+ const secondPropertyToAdjust = secondItem ? getResizeSizingProperty(secondItem, flexDeficit) : "width";
2749
2775
  let maxReached = false;
2750
2776
  let minReached = false;
2751
2777
  const direction = dragHandleOffset > 0 ? 1 : -1;
@@ -2754,17 +2780,18 @@ var computeResize = (params) => {
2754
2780
  clamped: firstClamped,
2755
2781
  diff: firstDiff
2756
2782
  } = resizeClamp(
2757
- firstSize + dragHandleOffset,
2783
+ Math.round(firstSize + dragHandleOffset),
2758
2784
  firstMinSize,
2759
2785
  firstMaxSize,
2760
2786
  direction
2761
2787
  );
2762
2788
  if (params.shareSpaceOnResize) {
2763
2789
  if (secondItem == null) {
2764
- columnSizing[firstId] = {
2765
- ...columnSizing[firstId],
2766
- [firstPropertyToAdjust]: firstAdjustedSize
2767
- };
2790
+ columnSizing[firstId] = withResizedSize(
2791
+ columnSizing[firstId],
2792
+ firstPropertyToAdjust,
2793
+ firstAdjustedSize
2794
+ );
2768
2795
  minReached = firstClamped === "min";
2769
2796
  maxReached = firstClamped === "max";
2770
2797
  const adjustedDiff2 = firstAdjustedSize - firstSize;
@@ -2782,7 +2809,7 @@ var computeResize = (params) => {
2782
2809
  clamped: secondClamped,
2783
2810
  diff: secondDiff
2784
2811
  } = resizeClamp(
2785
- secondSize - dragHandleOffset,
2812
+ Math.round(secondSize - dragHandleOffset),
2786
2813
  secondMinSize,
2787
2814
  secondMaxSize,
2788
2815
  direction
@@ -2797,7 +2824,7 @@ var computeResize = (params) => {
2797
2824
  if (!firstClamped && !secondClamped) {
2798
2825
  } else if (firstClamped) {
2799
2826
  const clampResultForSecond = resizeClamp(
2800
- secondSize - dragHandleOffset - firstDiff,
2827
+ Math.round(secondSize - dragHandleOffset - firstDiff),
2801
2828
  secondMinSize,
2802
2829
  secondMaxSize,
2803
2830
  direction
@@ -2807,7 +2834,7 @@ var computeResize = (params) => {
2807
2834
  secondDiff = clampResultForSecond.diff;
2808
2835
  } else if (secondClamped) {
2809
2836
  const clampResultForFirst = resizeClamp(
2810
- firstSize + dragHandleOffset + secondDiff,
2837
+ Math.round(firstSize + dragHandleOffset + secondDiff),
2811
2838
  firstMinSize,
2812
2839
  firstMaxSize,
2813
2840
  direction
@@ -2816,28 +2843,31 @@ var computeResize = (params) => {
2816
2843
  firstClamped = clampResultForFirst.clamped;
2817
2844
  firstDiff = clampResultForFirst.diff;
2818
2845
  }
2819
- columnSizing[firstId] = {
2820
- ...columnSizing[firstId],
2821
- [firstPropertyToAdjust]: firstAdjustedSize
2822
- };
2823
- columnSizing[secondId] = {
2824
- ...columnSizing[secondId],
2825
- [secondPropertyToAdjust]: secondAdjustedSize
2826
- };
2846
+ columnSizing[firstId] = withResizedSize(
2847
+ columnSizing[firstId],
2848
+ firstPropertyToAdjust,
2849
+ firstAdjustedSize
2850
+ );
2851
+ columnSizing[secondId] = withResizedSize(
2852
+ columnSizing[secondId],
2853
+ secondPropertyToAdjust,
2854
+ secondAdjustedSize
2855
+ );
2827
2856
  minReached = firstClamped === "min" || secondClamped === "min";
2828
2857
  maxReached = firstClamped === "max" || secondClamped === "max";
2829
2858
  } else {
2830
- columnSizing[firstId] = {
2831
- ...columnSizing[firstId],
2832
- [firstPropertyToAdjust]: firstAdjustedSize
2833
- };
2859
+ columnSizing[firstId] = withResizedSize(
2860
+ columnSizing[firstId],
2861
+ firstPropertyToAdjust,
2862
+ firstAdjustedSize
2863
+ );
2834
2864
  minReached = firstClamped === "min";
2835
2865
  maxReached = firstClamped === "max";
2836
2866
  }
2837
2867
  const adjustedDiff = firstAdjustedSize - firstSize;
2838
2868
  return {
2839
2869
  adjustedDiff,
2840
- reservedWidth: !params.shareSpaceOnResize ? reservedWidth - adjustedDiff : reservedWidth,
2870
+ reservedWidth: !params.shareSpaceOnResize ? Math.round(reservedWidth - adjustedDiff) : reservedWidth,
2841
2871
  columnSizing,
2842
2872
  minReached,
2843
2873
  maxReached,
@@ -2871,8 +2901,13 @@ var computeGroupResize = (params) => {
2871
2901
  const beforeIndexes = [...new Array(params.columnGroupSize)].map((_, index) => params.dragHandlePositionAfter - index).reverse();
2872
2902
  const beforeItems = beforeIndexes.map((i) => params.items[i]);
2873
2903
  const beforeSizes = beforeItems.map((item) => item.computedWidth);
2904
+ const flexDeficit = hasFlexDeficit(
2905
+ params.items,
2906
+ availableSize,
2907
+ reservedWidth
2908
+ );
2874
2909
  const beforePropertiesToAdjust = beforeItems.map(
2875
- (item) => item.computedFlex ? "flex" : "width"
2910
+ (item) => getResizeSizingProperty(item, flexDeficit)
2876
2911
  );
2877
2912
  let unresizableWidth = 0;
2878
2913
  const { computedSizes } = computeFlex({
@@ -2921,10 +2956,11 @@ var computeGroupResize = (params) => {
2921
2956
  columnSizing: currentColumnSizing
2922
2957
  }
2923
2958
  );
2924
- columnSizing[item.id] = {
2925
- ...currentColumnSizing[item.id],
2926
- [propertyToAdjust]: itemSize + adjustedDiff2
2927
- };
2959
+ columnSizing[item.id] = withResizedSize(
2960
+ currentColumnSizing[item.id],
2961
+ propertyToAdjust,
2962
+ Math.round(itemSize + adjustedDiff2)
2963
+ );
2928
2964
  adjustedDiffs.push(adjustedDiff2);
2929
2965
  if (!maxReached) {
2930
2966
  groupMaxReached = false;
@@ -2944,7 +2980,7 @@ var computeGroupResize = (params) => {
2944
2980
  adjustedDiffs,
2945
2981
  adjustedDiff,
2946
2982
  columnSizing,
2947
- reservedWidth: reservedWidth - adjustedDiff
2983
+ reservedWidth: Math.round(reservedWidth - adjustedDiff)
2948
2984
  };
2949
2985
  };
2950
2986
 
@@ -3187,15 +3223,20 @@ var getComputedColumns = ({
3187
3223
  width: colType?.defaultWidth,
3188
3224
  flex: colType?.defaultFlex
3189
3225
  };
3190
- let colSizing = assignNonNull(
3191
- {
3192
- width: column?.defaultWidth,
3193
- flex: column?.defaultFlex,
3194
- minWidth: column?.minWidth,
3195
- maxWidth: column?.maxWidth
3196
- },
3197
- columnSizing[colId]
3198
- );
3226
+ const colDefaultSizing = {
3227
+ width: column?.defaultWidth,
3228
+ flex: column?.defaultFlex,
3229
+ minWidth: column?.minWidth,
3230
+ maxWidth: column?.maxWidth
3231
+ };
3232
+ const colSizingFromProp = columnSizing[colId];
3233
+ if (colSizingFromProp?.width != null && colSizingFromProp.flex == null) {
3234
+ delete colDefaultSizing.flex;
3235
+ }
3236
+ if (colSizingFromProp?.flex != null && colSizingFromProp.width == null) {
3237
+ delete colDefaultSizing.width;
3238
+ }
3239
+ let colSizing = assignNonNull(colDefaultSizing, colSizingFromProp);
3199
3240
  if (colSizing.width != null) {
3200
3241
  delete colTypeSizing.flex;
3201
3242
  }
@@ -8111,6 +8152,9 @@ var React30 = __toESM(require("react"));
8111
8152
  var import_react23 = require("react");
8112
8153
 
8113
8154
  // src/components/InfiniteTable/components/InfiniteTableHeader/ResizeHandle/columnResizeShared.ts
8155
+ function getResizeAvailableSize(bodySize) {
8156
+ return Math.max(bodySize.width - getScrollbarWidth(), 0);
8157
+ }
8114
8158
  function computeColumnResizeForDiff(options) {
8115
8159
  const { context, column, diff, shareSpaceOnResize } = options;
8116
8160
  const state = context.getState();
@@ -8133,7 +8177,7 @@ function computeColumnResizeForDiff(options) {
8133
8177
  } : columnSizing;
8134
8178
  return computeResize({
8135
8179
  shareSpaceOnResize,
8136
- availableSize: bodySize.width,
8180
+ availableSize: getResizeAvailableSize(bodySize),
8137
8181
  reservedWidth: viewportReservedWidth || 0,
8138
8182
  dragHandleOffset: diff,
8139
8183
  dragHandlePositionAfter: column.computedVisibleIndex,
@@ -8362,6 +8406,7 @@ function ResizeHandleFn(props) {
8362
8406
  const diff = Math.round(e2.clientX - initialX);
8363
8407
  const adjustedDiff = resizeDiff(diff, { done: true });
8364
8408
  restoreRenderRange();
8409
+ resizer.resize(0);
8365
8410
  props.onResize({ diff: adjustedDiff, shareSpaceOnResize });
8366
8411
  };
8367
8412
  target.addEventListener("pointermove", onPointerMove);
@@ -13771,6 +13816,7 @@ function GroupResizeHandleFn(props) {
13771
13816
  target.removeEventListener("pointerup", onPointerUp);
13772
13817
  const diff = Math.round(e2.clientX - initialX);
13773
13818
  const adjustedDiffs = resizeDiff(diff);
13819
+ resizer.resize(props.groupColumns.map(() => 0));
13774
13820
  props.onResize(adjustedDiffs);
13775
13821
  };
13776
13822
  target.addEventListener("pointermove", onPointerMove);
@@ -13840,7 +13886,7 @@ function useColumnGroupResizeHandle(groupColumns, config) {
13840
13886
  ...columnSizingWithFlex
13841
13887
  } : columnSizing;
13842
13888
  const result = computeGroupResize({
13843
- availableSize: bodySize.width,
13889
+ availableSize: getResizeAvailableSize(bodySize),
13844
13890
  reservedWidth: viewportReservedWidth || 0,
13845
13891
  dragHandleOffset: diff,
13846
13892
  dragHandlePositionAfter: lastColumnInGroup.computedVisibleIndex,
@@ -27811,7 +27857,7 @@ var useLicense = (licenseKey = "") => {
27811
27857
  }
27812
27858
  let valid2 = isValidLicense(licenseKey, {
27813
27859
  publishedAt: 1624970570587,
27814
- version: "9.1.1"
27860
+ version: "9.1.2"
27815
27861
  });
27816
27862
  if (!licenseKey && !valid2 && isInsidePlayground) {
27817
27863
  return true;
package/index.dev.mjs CHANGED
@@ -2647,6 +2647,27 @@ function resizeClamp(value, min, max, direction) {
2647
2647
  }
2648
2648
  return { value, clamped: false, diff: 0 };
2649
2649
  }
2650
+ function hasFlexDeficit(items, availableSize, reservedWidth) {
2651
+ let hasFlex = false;
2652
+ let totalWidth = 0;
2653
+ for (const item of items) {
2654
+ if (item.computedFlex) {
2655
+ hasFlex = true;
2656
+ }
2657
+ totalWidth += item.computedWidth;
2658
+ }
2659
+ return hasFlex && Math.round(totalWidth) > Math.round(availableSize - reservedWidth);
2660
+ }
2661
+ function getResizeSizingProperty(item, flexDeficit) {
2662
+ return item.computedFlex && !flexDeficit ? "flex" : "width";
2663
+ }
2664
+ function withResizedSize(entry, property, size) {
2665
+ if (property === "width") {
2666
+ const { flex: _flex, ...rest } = entry ?? {};
2667
+ return { ...rest, width: size };
2668
+ }
2669
+ return { ...entry, flex: size };
2670
+ }
2650
2671
  var computeResize = (params) => {
2651
2672
  const { availableSize, reservedWidth = 0 } = params;
2652
2673
  const columnSizing = Object.keys(
@@ -2665,14 +2686,19 @@ var computeResize = (params) => {
2665
2686
  const secondItem = params.items[secondIndex];
2666
2687
  const firstId = firstItem.id;
2667
2688
  const secondId = secondItem?.id;
2689
+ const flexDeficit = hasFlexDeficit(
2690
+ params.items,
2691
+ availableSize,
2692
+ reservedWidth
2693
+ );
2668
2694
  const firstSize = firstItem.computedWidth;
2669
2695
  const firstMinSize = firstItem.computedMinWidth;
2670
2696
  const firstMaxSize = firstItem.computedMaxWidth;
2671
- const firstPropertyToAdjust = firstItem.computedFlex ? "flex" : "width";
2697
+ const firstPropertyToAdjust = getResizeSizingProperty(firstItem, flexDeficit);
2672
2698
  const secondSize = secondItem?.computedWidth;
2673
2699
  const secondMinSize = secondItem?.computedMinWidth;
2674
2700
  const secondMaxSize = secondItem?.computedMaxWidth;
2675
- const secondPropertyToAdjust = secondItem?.computedFlex ? "flex" : "width";
2701
+ const secondPropertyToAdjust = secondItem ? getResizeSizingProperty(secondItem, flexDeficit) : "width";
2676
2702
  let maxReached = false;
2677
2703
  let minReached = false;
2678
2704
  const direction = dragHandleOffset > 0 ? 1 : -1;
@@ -2681,17 +2707,18 @@ var computeResize = (params) => {
2681
2707
  clamped: firstClamped,
2682
2708
  diff: firstDiff
2683
2709
  } = resizeClamp(
2684
- firstSize + dragHandleOffset,
2710
+ Math.round(firstSize + dragHandleOffset),
2685
2711
  firstMinSize,
2686
2712
  firstMaxSize,
2687
2713
  direction
2688
2714
  );
2689
2715
  if (params.shareSpaceOnResize) {
2690
2716
  if (secondItem == null) {
2691
- columnSizing[firstId] = {
2692
- ...columnSizing[firstId],
2693
- [firstPropertyToAdjust]: firstAdjustedSize
2694
- };
2717
+ columnSizing[firstId] = withResizedSize(
2718
+ columnSizing[firstId],
2719
+ firstPropertyToAdjust,
2720
+ firstAdjustedSize
2721
+ );
2695
2722
  minReached = firstClamped === "min";
2696
2723
  maxReached = firstClamped === "max";
2697
2724
  const adjustedDiff2 = firstAdjustedSize - firstSize;
@@ -2709,7 +2736,7 @@ var computeResize = (params) => {
2709
2736
  clamped: secondClamped,
2710
2737
  diff: secondDiff
2711
2738
  } = resizeClamp(
2712
- secondSize - dragHandleOffset,
2739
+ Math.round(secondSize - dragHandleOffset),
2713
2740
  secondMinSize,
2714
2741
  secondMaxSize,
2715
2742
  direction
@@ -2724,7 +2751,7 @@ var computeResize = (params) => {
2724
2751
  if (!firstClamped && !secondClamped) {
2725
2752
  } else if (firstClamped) {
2726
2753
  const clampResultForSecond = resizeClamp(
2727
- secondSize - dragHandleOffset - firstDiff,
2754
+ Math.round(secondSize - dragHandleOffset - firstDiff),
2728
2755
  secondMinSize,
2729
2756
  secondMaxSize,
2730
2757
  direction
@@ -2734,7 +2761,7 @@ var computeResize = (params) => {
2734
2761
  secondDiff = clampResultForSecond.diff;
2735
2762
  } else if (secondClamped) {
2736
2763
  const clampResultForFirst = resizeClamp(
2737
- firstSize + dragHandleOffset + secondDiff,
2764
+ Math.round(firstSize + dragHandleOffset + secondDiff),
2738
2765
  firstMinSize,
2739
2766
  firstMaxSize,
2740
2767
  direction
@@ -2743,28 +2770,31 @@ var computeResize = (params) => {
2743
2770
  firstClamped = clampResultForFirst.clamped;
2744
2771
  firstDiff = clampResultForFirst.diff;
2745
2772
  }
2746
- columnSizing[firstId] = {
2747
- ...columnSizing[firstId],
2748
- [firstPropertyToAdjust]: firstAdjustedSize
2749
- };
2750
- columnSizing[secondId] = {
2751
- ...columnSizing[secondId],
2752
- [secondPropertyToAdjust]: secondAdjustedSize
2753
- };
2773
+ columnSizing[firstId] = withResizedSize(
2774
+ columnSizing[firstId],
2775
+ firstPropertyToAdjust,
2776
+ firstAdjustedSize
2777
+ );
2778
+ columnSizing[secondId] = withResizedSize(
2779
+ columnSizing[secondId],
2780
+ secondPropertyToAdjust,
2781
+ secondAdjustedSize
2782
+ );
2754
2783
  minReached = firstClamped === "min" || secondClamped === "min";
2755
2784
  maxReached = firstClamped === "max" || secondClamped === "max";
2756
2785
  } else {
2757
- columnSizing[firstId] = {
2758
- ...columnSizing[firstId],
2759
- [firstPropertyToAdjust]: firstAdjustedSize
2760
- };
2786
+ columnSizing[firstId] = withResizedSize(
2787
+ columnSizing[firstId],
2788
+ firstPropertyToAdjust,
2789
+ firstAdjustedSize
2790
+ );
2761
2791
  minReached = firstClamped === "min";
2762
2792
  maxReached = firstClamped === "max";
2763
2793
  }
2764
2794
  const adjustedDiff = firstAdjustedSize - firstSize;
2765
2795
  return {
2766
2796
  adjustedDiff,
2767
- reservedWidth: !params.shareSpaceOnResize ? reservedWidth - adjustedDiff : reservedWidth,
2797
+ reservedWidth: !params.shareSpaceOnResize ? Math.round(reservedWidth - adjustedDiff) : reservedWidth,
2768
2798
  columnSizing,
2769
2799
  minReached,
2770
2800
  maxReached,
@@ -2798,8 +2828,13 @@ var computeGroupResize = (params) => {
2798
2828
  const beforeIndexes = [...new Array(params.columnGroupSize)].map((_, index) => params.dragHandlePositionAfter - index).reverse();
2799
2829
  const beforeItems = beforeIndexes.map((i) => params.items[i]);
2800
2830
  const beforeSizes = beforeItems.map((item) => item.computedWidth);
2831
+ const flexDeficit = hasFlexDeficit(
2832
+ params.items,
2833
+ availableSize,
2834
+ reservedWidth
2835
+ );
2801
2836
  const beforePropertiesToAdjust = beforeItems.map(
2802
- (item) => item.computedFlex ? "flex" : "width"
2837
+ (item) => getResizeSizingProperty(item, flexDeficit)
2803
2838
  );
2804
2839
  let unresizableWidth = 0;
2805
2840
  const { computedSizes } = computeFlex({
@@ -2848,10 +2883,11 @@ var computeGroupResize = (params) => {
2848
2883
  columnSizing: currentColumnSizing
2849
2884
  }
2850
2885
  );
2851
- columnSizing[item.id] = {
2852
- ...currentColumnSizing[item.id],
2853
- [propertyToAdjust]: itemSize + adjustedDiff2
2854
- };
2886
+ columnSizing[item.id] = withResizedSize(
2887
+ currentColumnSizing[item.id],
2888
+ propertyToAdjust,
2889
+ Math.round(itemSize + adjustedDiff2)
2890
+ );
2855
2891
  adjustedDiffs.push(adjustedDiff2);
2856
2892
  if (!maxReached) {
2857
2893
  groupMaxReached = false;
@@ -2871,7 +2907,7 @@ var computeGroupResize = (params) => {
2871
2907
  adjustedDiffs,
2872
2908
  adjustedDiff,
2873
2909
  columnSizing,
2874
- reservedWidth: reservedWidth - adjustedDiff
2910
+ reservedWidth: Math.round(reservedWidth - adjustedDiff)
2875
2911
  };
2876
2912
  };
2877
2913
 
@@ -3114,15 +3150,20 @@ var getComputedColumns = ({
3114
3150
  width: colType?.defaultWidth,
3115
3151
  flex: colType?.defaultFlex
3116
3152
  };
3117
- let colSizing = assignNonNull(
3118
- {
3119
- width: column?.defaultWidth,
3120
- flex: column?.defaultFlex,
3121
- minWidth: column?.minWidth,
3122
- maxWidth: column?.maxWidth
3123
- },
3124
- columnSizing[colId]
3125
- );
3153
+ const colDefaultSizing = {
3154
+ width: column?.defaultWidth,
3155
+ flex: column?.defaultFlex,
3156
+ minWidth: column?.minWidth,
3157
+ maxWidth: column?.maxWidth
3158
+ };
3159
+ const colSizingFromProp = columnSizing[colId];
3160
+ if (colSizingFromProp?.width != null && colSizingFromProp.flex == null) {
3161
+ delete colDefaultSizing.flex;
3162
+ }
3163
+ if (colSizingFromProp?.flex != null && colSizingFromProp.width == null) {
3164
+ delete colDefaultSizing.width;
3165
+ }
3166
+ let colSizing = assignNonNull(colDefaultSizing, colSizingFromProp);
3126
3167
  if (colSizing.width != null) {
3127
3168
  delete colTypeSizing.flex;
3128
3169
  }
@@ -8045,6 +8086,9 @@ import * as React30 from "react";
8045
8086
  import { useCallback as useCallback15 } from "react";
8046
8087
 
8047
8088
  // src/components/InfiniteTable/components/InfiniteTableHeader/ResizeHandle/columnResizeShared.ts
8089
+ function getResizeAvailableSize(bodySize) {
8090
+ return Math.max(bodySize.width - getScrollbarWidth(), 0);
8091
+ }
8048
8092
  function computeColumnResizeForDiff(options) {
8049
8093
  const { context, column, diff, shareSpaceOnResize } = options;
8050
8094
  const state = context.getState();
@@ -8067,7 +8111,7 @@ function computeColumnResizeForDiff(options) {
8067
8111
  } : columnSizing;
8068
8112
  return computeResize({
8069
8113
  shareSpaceOnResize,
8070
- availableSize: bodySize.width,
8114
+ availableSize: getResizeAvailableSize(bodySize),
8071
8115
  reservedWidth: viewportReservedWidth || 0,
8072
8116
  dragHandleOffset: diff,
8073
8117
  dragHandlePositionAfter: column.computedVisibleIndex,
@@ -8296,6 +8340,7 @@ function ResizeHandleFn(props) {
8296
8340
  const diff = Math.round(e2.clientX - initialX);
8297
8341
  const adjustedDiff = resizeDiff(diff, { done: true });
8298
8342
  restoreRenderRange();
8343
+ resizer.resize(0);
8299
8344
  props.onResize({ diff: adjustedDiff, shareSpaceOnResize });
8300
8345
  };
8301
8346
  target.addEventListener("pointermove", onPointerMove);
@@ -13705,6 +13750,7 @@ function GroupResizeHandleFn(props) {
13705
13750
  target.removeEventListener("pointerup", onPointerUp);
13706
13751
  const diff = Math.round(e2.clientX - initialX);
13707
13752
  const adjustedDiffs = resizeDiff(diff);
13753
+ resizer.resize(props.groupColumns.map(() => 0));
13708
13754
  props.onResize(adjustedDiffs);
13709
13755
  };
13710
13756
  target.addEventListener("pointermove", onPointerMove);
@@ -13774,7 +13820,7 @@ function useColumnGroupResizeHandle(groupColumns, config) {
13774
13820
  ...columnSizingWithFlex
13775
13821
  } : columnSizing;
13776
13822
  const result = computeGroupResize({
13777
- availableSize: bodySize.width,
13823
+ availableSize: getResizeAvailableSize(bodySize),
13778
13824
  reservedWidth: viewportReservedWidth || 0,
13779
13825
  dragHandleOffset: diff,
13780
13826
  dragHandlePositionAfter: lastColumnInGroup.computedVisibleIndex,
@@ -27750,7 +27796,7 @@ var useLicense = (licenseKey = "") => {
27750
27796
  }
27751
27797
  let valid2 = isValidLicense(licenseKey, {
27752
27798
  publishedAt: 1624970570587,
27753
- version: "9.1.1"
27799
+ version: "9.1.2"
27754
27800
  });
27755
27801
  if (!licenseKey && !valid2 && isInsidePlayground) {
27756
27802
  return true;