@vitessce/feature-list 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.
- package/dist/index.js +28 -32
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -13328,21 +13328,20 @@ Popper.Utils = (typeof window !== "undefined" ? window : global).PopperUtils;
|
|
|
13328
13328
|
Popper.placements = placements;
|
|
13329
13329
|
Popper.Defaults = Defaults;
|
|
13330
13330
|
function createChainedFunction(...funcs) {
|
|
13331
|
-
return funcs.reduce(
|
|
13332
|
-
|
|
13333
|
-
|
|
13334
|
-
|
|
13335
|
-
|
|
13336
|
-
|
|
13337
|
-
|
|
13338
|
-
|
|
13331
|
+
return funcs.reduce(
|
|
13332
|
+
(acc, func) => {
|
|
13333
|
+
if (func == null) {
|
|
13334
|
+
return acc;
|
|
13335
|
+
}
|
|
13336
|
+
return function chainedFunction(...args) {
|
|
13337
|
+
acc.apply(this, args);
|
|
13338
|
+
func.apply(this, args);
|
|
13339
|
+
};
|
|
13340
|
+
},
|
|
13341
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
13342
|
+
() => {
|
|
13339
13343
|
}
|
|
13340
|
-
|
|
13341
|
-
acc.apply(this, args);
|
|
13342
|
-
func.apply(this, args);
|
|
13343
|
-
};
|
|
13344
|
-
}, () => {
|
|
13345
|
-
});
|
|
13344
|
+
);
|
|
13346
13345
|
}
|
|
13347
13346
|
function setRef(ref, value) {
|
|
13348
13347
|
if (typeof ref === "function") {
|
|
@@ -13381,7 +13380,7 @@ function flipPlacement(placement, theme) {
|
|
|
13381
13380
|
}
|
|
13382
13381
|
}
|
|
13383
13382
|
function getAnchorEl(anchorEl) {
|
|
13384
|
-
return typeof anchorEl === "function" ? anchorEl() : anchorEl;
|
|
13383
|
+
return typeof anchorEl === "function" ? anchorEl(document.body) : anchorEl;
|
|
13385
13384
|
}
|
|
13386
13385
|
const useEnhancedEffect = typeof window !== "undefined" ? React.useLayoutEffect : React.useEffect;
|
|
13387
13386
|
const defaultPopperOptions = {};
|
|
@@ -13411,25 +13410,18 @@ React.forwardRef((props, ref) => {
|
|
|
13411
13410
|
}
|
|
13412
13411
|
if (popperRef.current) {
|
|
13413
13412
|
popperRef.current.destroy();
|
|
13414
|
-
handlePopperRefRef.current
|
|
13413
|
+
if (handlePopperRefRef.current) {
|
|
13414
|
+
setRef(handlePopperRefRef.current, null);
|
|
13415
|
+
}
|
|
13415
13416
|
}
|
|
13416
13417
|
const handlePopperUpdate = (data) => {
|
|
13417
13418
|
setPlacement(data.placement);
|
|
13418
13419
|
};
|
|
13419
|
-
const
|
|
13420
|
-
{
|
|
13421
|
-
|
|
13422
|
-
const box = resolvedAnchorEl.getBoundingClientRect();
|
|
13423
|
-
if (box.top === 0 && box.left === 0 && box.right === 0 && box.bottom === 0) {
|
|
13424
|
-
console.warn([
|
|
13425
|
-
"Material-UI: The `anchorEl` prop provided to the component is invalid.",
|
|
13426
|
-
"The anchor element should be part of the document layout.",
|
|
13427
|
-
"Make sure the element is present in the document or that it's not display none."
|
|
13428
|
-
].join("\n"));
|
|
13429
|
-
}
|
|
13430
|
-
}
|
|
13420
|
+
const anchorElement = getAnchorEl(anchorEl);
|
|
13421
|
+
if (!anchorElement) {
|
|
13422
|
+
return;
|
|
13431
13423
|
}
|
|
13432
|
-
const popper = new Popper(
|
|
13424
|
+
const popper = new Popper(anchorElement, tooltipRef.current, {
|
|
13433
13425
|
placement: rtlPlacement,
|
|
13434
13426
|
...popperOptions,
|
|
13435
13427
|
modifiers: {
|
|
@@ -13447,7 +13439,9 @@ React.forwardRef((props, ref) => {
|
|
|
13447
13439
|
onCreate: createChainedFunction(handlePopperUpdate, popperOptions.onCreate),
|
|
13448
13440
|
onUpdate: createChainedFunction(handlePopperUpdate, popperOptions.onUpdate)
|
|
13449
13441
|
});
|
|
13450
|
-
handlePopperRefRef.current
|
|
13442
|
+
if (handlePopperRefRef.current) {
|
|
13443
|
+
setRef(handlePopperRefRef.current, popper);
|
|
13444
|
+
}
|
|
13451
13445
|
}, [anchorEl, disablePortal, modifiers2, open, rtlPlacement, popperOptions]);
|
|
13452
13446
|
const handleRef = React.useCallback((node2) => {
|
|
13453
13447
|
setRef(ownRef, node2);
|
|
@@ -13461,7 +13455,9 @@ React.forwardRef((props, ref) => {
|
|
|
13461
13455
|
return;
|
|
13462
13456
|
}
|
|
13463
13457
|
popperRef.current.destroy();
|
|
13464
|
-
handlePopperRefRef.current
|
|
13458
|
+
if (handlePopperRefRef.current) {
|
|
13459
|
+
setRef(handlePopperRefRef.current, null);
|
|
13460
|
+
}
|
|
13465
13461
|
};
|
|
13466
13462
|
const handleExited = () => {
|
|
13467
13463
|
setExited(true);
|
|
@@ -13492,7 +13488,7 @@ React.forwardRef((props, ref) => {
|
|
|
13492
13488
|
// Fix Popper.js display issue
|
|
13493
13489
|
top: 0,
|
|
13494
13490
|
left: 0,
|
|
13495
|
-
display: !open && keepMounted && !transition ? "none" :
|
|
13491
|
+
display: !open && keepMounted && !transition ? "none" : void 0,
|
|
13496
13492
|
...style2
|
|
13497
13493
|
}, children: typeof children2 === "function" ? children2(childProps) : children2 }) });
|
|
13498
13494
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitessce/feature-list",
|
|
3
|
-
"version": "3.9.
|
|
3
|
+
"version": "3.9.2",
|
|
4
4
|
"author": "HIDIVE Lab at HMS",
|
|
5
5
|
"homepage": "http://vitessce.io",
|
|
6
6
|
"repository": {
|
|
@@ -21,10 +21,10 @@
|
|
|
21
21
|
"react-virtualized": "^9.22.6",
|
|
22
22
|
"uuid": "^9.0.0",
|
|
23
23
|
"react-aria": "^3.28.0",
|
|
24
|
-
"@vitessce/
|
|
25
|
-
"@vitessce/
|
|
26
|
-
"@vitessce/
|
|
27
|
-
"@vitessce/
|
|
24
|
+
"@vitessce/constants-internal": "3.9.2",
|
|
25
|
+
"@vitessce/utils": "3.9.2",
|
|
26
|
+
"@vitessce/vit-s": "3.9.2",
|
|
27
|
+
"@vitessce/styles": "3.9.2"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@testing-library/jest-dom": "^6.6.3",
|