@vuu-ui/vuu-layout 0.8.1-debug → 0.8.2-debug

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/cjs/index.js CHANGED
@@ -4159,10 +4159,13 @@ function useResizeObserver(ref, dimensions, onResize, reportInitialSize = false)
4159
4159
  const dimensionsRef = (0, import_react21.useRef)(dimensions);
4160
4160
  const measure = (0, import_react21.useCallback)((target) => {
4161
4161
  const rect = target.getBoundingClientRect();
4162
- return dimensionsRef.current.reduce((map, dim) => {
4163
- map[dim] = getTargetSize(target, rect, dim);
4164
- return map;
4165
- }, {});
4162
+ return dimensionsRef.current.reduce(
4163
+ (map, dim) => {
4164
+ map[dim] = getTargetSize(target, rect, dim);
4165
+ return map;
4166
+ },
4167
+ {}
4168
+ );
4166
4169
  }, []);
4167
4170
  (0, import_react21.useLayoutEffect)(() => {
4168
4171
  const target = ref.current;
@@ -4188,7 +4191,9 @@ function useResizeObserver(ref, dimensions, onResize, reportInitialSize = false)
4188
4191
  }
4189
4192
  if (target) {
4190
4193
  if (observedMap.has(target)) {
4191
- throw Error("useResizeObserver attemping to observe same element twice");
4194
+ throw Error(
4195
+ "useResizeObserver attemping to observe same element twice"
4196
+ );
4192
4197
  }
4193
4198
  void registerObserver();
4194
4199
  }
@@ -4199,7 +4204,7 @@ function useResizeObserver(ref, dimensions, onResize, reportInitialSize = false)
4199
4204
  cleanedUp = true;
4200
4205
  }
4201
4206
  };
4202
- }, [ref, measure]);
4207
+ }, [ref, measure, reportInitialSize, onResize]);
4203
4208
  (0, import_react21.useLayoutEffect)(() => {
4204
4209
  const target = ref.current;
4205
4210
  const record = observedMap.get(target);
@@ -4737,6 +4742,7 @@ var View = (0, import_react29.forwardRef)(function View2(props, forwardedRef) {
4737
4742
  className,
4738
4743
  collapsed,
4739
4744
  closeable,
4745
+ "data-path": dataPath,
4740
4746
  "data-resizeable": dataResizeable,
4741
4747
  dropTargets,
4742
4748
  expanded,
@@ -4744,7 +4750,7 @@ var View = (0, import_react29.forwardRef)(function View2(props, forwardedRef) {
4744
4750
  id: idProp,
4745
4751
  header,
4746
4752
  orientation = "horizontal",
4747
- path,
4753
+ path = dataPath,
4748
4754
  resize = "responsive",
4749
4755
  resizeable = dataResizeable,
4750
4756
  tearOut,