@vitessce/biomarker-select 3.9.1 → 3.9.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.
Files changed (2) hide show
  1. package/dist/index.js +27 -31
  2. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -59549,21 +59549,20 @@ Popper.Utils = (typeof window !== "undefined" ? window : global).PopperUtils;
59549
59549
  Popper.placements = placements;
59550
59550
  Popper.Defaults = Defaults;
59551
59551
  function createChainedFunction(...funcs) {
59552
- return funcs.reduce((acc, func) => {
59553
- if (func == null) {
59554
- return acc;
59555
- }
59556
- {
59557
- if (typeof func !== "function") {
59558
- console.error("Material-UI: Invalid Argument Type, must only provide functions, undefined, or null.");
59552
+ return funcs.reduce(
59553
+ (acc, func) => {
59554
+ if (func == null) {
59555
+ return acc;
59559
59556
  }
59557
+ return function chainedFunction(...args) {
59558
+ acc.apply(this, args);
59559
+ func.apply(this, args);
59560
+ };
59561
+ },
59562
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
59563
+ () => {
59560
59564
  }
59561
- return function chainedFunction(...args) {
59562
- acc.apply(this, args);
59563
- func.apply(this, args);
59564
- };
59565
- }, () => {
59566
- });
59565
+ );
59567
59566
  }
59568
59567
  function setRef(ref, value) {
59569
59568
  if (typeof ref === "function") {
@@ -59602,7 +59601,7 @@ function flipPlacement(placement, theme) {
59602
59601
  }
59603
59602
  }
59604
59603
  function getAnchorEl(anchorEl) {
59605
- return typeof anchorEl === "function" ? anchorEl() : anchorEl;
59604
+ return typeof anchorEl === "function" ? anchorEl(document.body) : anchorEl;
59606
59605
  }
59607
59606
  const useEnhancedEffect = typeof window !== "undefined" ? React.useLayoutEffect : React.useEffect;
59608
59607
  const defaultPopperOptions = {};
@@ -59632,25 +59631,18 @@ React.forwardRef((props, ref) => {
59632
59631
  }
59633
59632
  if (popperRef.current) {
59634
59633
  popperRef.current.destroy();
59635
- handlePopperRefRef.current(null);
59634
+ if (handlePopperRefRef.current) {
59635
+ setRef(handlePopperRefRef.current, null);
59636
+ }
59636
59637
  }
59637
59638
  const handlePopperUpdate = (data) => {
59638
59639
  setPlacement(data.placement);
59639
59640
  };
59640
- const resolvedAnchorEl = getAnchorEl(anchorEl);
59641
- {
59642
- if (resolvedAnchorEl && resolvedAnchorEl.nodeType === 1) {
59643
- const box = resolvedAnchorEl.getBoundingClientRect();
59644
- if (box.top === 0 && box.left === 0 && box.right === 0 && box.bottom === 0) {
59645
- console.warn([
59646
- "Material-UI: The `anchorEl` prop provided to the component is invalid.",
59647
- "The anchor element should be part of the document layout.",
59648
- "Make sure the element is present in the document or that it's not display none."
59649
- ].join("\n"));
59650
- }
59651
- }
59641
+ const anchorElement = getAnchorEl(anchorEl);
59642
+ if (!anchorElement) {
59643
+ return;
59652
59644
  }
59653
- const popper2 = new Popper(getAnchorEl(anchorEl), tooltipRef.current, {
59645
+ const popper2 = new Popper(anchorElement, tooltipRef.current, {
59654
59646
  placement: rtlPlacement,
59655
59647
  ...popperOptions,
59656
59648
  modifiers: {
@@ -59668,7 +59660,9 @@ React.forwardRef((props, ref) => {
59668
59660
  onCreate: createChainedFunction(handlePopperUpdate, popperOptions.onCreate),
59669
59661
  onUpdate: createChainedFunction(handlePopperUpdate, popperOptions.onUpdate)
59670
59662
  });
59671
- handlePopperRefRef.current(popper2);
59663
+ if (handlePopperRefRef.current) {
59664
+ setRef(handlePopperRefRef.current, popper2);
59665
+ }
59672
59666
  }, [anchorEl, disablePortal, modifiers2, open, rtlPlacement, popperOptions]);
59673
59667
  const handleRef = React.useCallback((node2) => {
59674
59668
  setRef(ownRef, node2);
@@ -59682,7 +59676,9 @@ React.forwardRef((props, ref) => {
59682
59676
  return;
59683
59677
  }
59684
59678
  popperRef.current.destroy();
59685
- handlePopperRefRef.current(null);
59679
+ if (handlePopperRefRef.current) {
59680
+ setRef(handlePopperRefRef.current, null);
59681
+ }
59686
59682
  };
59687
59683
  const handleExited = () => {
59688
59684
  setExited(true);
@@ -59713,7 +59709,7 @@ React.forwardRef((props, ref) => {
59713
59709
  // Fix Popper.js display issue
59714
59710
  top: 0,
59715
59711
  left: 0,
59716
- display: !open && keepMounted && !transition2 ? "none" : null,
59712
+ display: !open && keepMounted && !transition2 ? "none" : void 0,
59717
59713
  ...style2
59718
59714
  }, children: typeof children === "function" ? children(childProps) : children }) });
59719
59715
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitessce/biomarker-select",
3
- "version": "3.9.1",
3
+ "version": "3.9.2",
4
4
  "author": "Gehlenborg Lab",
5
5
  "homepage": "http://vitessce.io",
6
6
  "repository": {
@@ -21,10 +21,10 @@
21
21
  "fuse.js": "^7.0.0",
22
22
  "d3-dsv": "^1.1.1",
23
23
  "clsx": "^1.1.1",
24
- "@vitessce/styles": "3.9.1",
25
- "@vitessce/constants-internal": "3.9.1",
26
- "@vitessce/vit-s": "3.9.1",
27
- "@vitessce/types": "3.9.1"
24
+ "@vitessce/vit-s": "3.9.2",
25
+ "@vitessce/styles": "3.9.2",
26
+ "@vitessce/types": "3.9.2",
27
+ "@vitessce/constants-internal": "3.9.2"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@testing-library/jest-dom": "^6.6.3",