@vitessce/description 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 +4 -4
package/dist/index.js
CHANGED
|
@@ -9033,21 +9033,20 @@ Popper.Utils = (typeof window !== "undefined" ? window : global).PopperUtils;
|
|
|
9033
9033
|
Popper.placements = placements;
|
|
9034
9034
|
Popper.Defaults = Defaults;
|
|
9035
9035
|
function createChainedFunction(...funcs) {
|
|
9036
|
-
return funcs.reduce(
|
|
9037
|
-
|
|
9038
|
-
|
|
9039
|
-
|
|
9040
|
-
|
|
9041
|
-
|
|
9042
|
-
|
|
9043
|
-
|
|
9036
|
+
return funcs.reduce(
|
|
9037
|
+
(acc, func) => {
|
|
9038
|
+
if (func == null) {
|
|
9039
|
+
return acc;
|
|
9040
|
+
}
|
|
9041
|
+
return function chainedFunction(...args) {
|
|
9042
|
+
acc.apply(this, args);
|
|
9043
|
+
func.apply(this, args);
|
|
9044
|
+
};
|
|
9045
|
+
},
|
|
9046
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
9047
|
+
() => {
|
|
9044
9048
|
}
|
|
9045
|
-
|
|
9046
|
-
acc.apply(this, args);
|
|
9047
|
-
func.apply(this, args);
|
|
9048
|
-
};
|
|
9049
|
-
}, () => {
|
|
9050
|
-
});
|
|
9049
|
+
);
|
|
9051
9050
|
}
|
|
9052
9051
|
function setRef(ref, value) {
|
|
9053
9052
|
if (typeof ref === "function") {
|
|
@@ -9086,7 +9085,7 @@ function flipPlacement(placement, theme) {
|
|
|
9086
9085
|
}
|
|
9087
9086
|
}
|
|
9088
9087
|
function getAnchorEl(anchorEl) {
|
|
9089
|
-
return typeof anchorEl === "function" ? anchorEl() : anchorEl;
|
|
9088
|
+
return typeof anchorEl === "function" ? anchorEl(document.body) : anchorEl;
|
|
9090
9089
|
}
|
|
9091
9090
|
const useEnhancedEffect = typeof window !== "undefined" ? React.useLayoutEffect : React.useEffect;
|
|
9092
9091
|
const defaultPopperOptions = {};
|
|
@@ -9116,25 +9115,18 @@ React.forwardRef((props, ref) => {
|
|
|
9116
9115
|
}
|
|
9117
9116
|
if (popperRef.current) {
|
|
9118
9117
|
popperRef.current.destroy();
|
|
9119
|
-
handlePopperRefRef.current
|
|
9118
|
+
if (handlePopperRefRef.current) {
|
|
9119
|
+
setRef(handlePopperRefRef.current, null);
|
|
9120
|
+
}
|
|
9120
9121
|
}
|
|
9121
9122
|
const handlePopperUpdate = (data) => {
|
|
9122
9123
|
setPlacement(data.placement);
|
|
9123
9124
|
};
|
|
9124
|
-
const
|
|
9125
|
-
{
|
|
9126
|
-
|
|
9127
|
-
const box = resolvedAnchorEl.getBoundingClientRect();
|
|
9128
|
-
if (box.top === 0 && box.left === 0 && box.right === 0 && box.bottom === 0) {
|
|
9129
|
-
console.warn([
|
|
9130
|
-
"Material-UI: The `anchorEl` prop provided to the component is invalid.",
|
|
9131
|
-
"The anchor element should be part of the document layout.",
|
|
9132
|
-
"Make sure the element is present in the document or that it's not display none."
|
|
9133
|
-
].join("\n"));
|
|
9134
|
-
}
|
|
9135
|
-
}
|
|
9125
|
+
const anchorElement = getAnchorEl(anchorEl);
|
|
9126
|
+
if (!anchorElement) {
|
|
9127
|
+
return;
|
|
9136
9128
|
}
|
|
9137
|
-
const popper = new Popper(
|
|
9129
|
+
const popper = new Popper(anchorElement, tooltipRef.current, {
|
|
9138
9130
|
placement: rtlPlacement,
|
|
9139
9131
|
...popperOptions,
|
|
9140
9132
|
modifiers: {
|
|
@@ -9152,7 +9144,9 @@ React.forwardRef((props, ref) => {
|
|
|
9152
9144
|
onCreate: createChainedFunction(handlePopperUpdate, popperOptions.onCreate),
|
|
9153
9145
|
onUpdate: createChainedFunction(handlePopperUpdate, popperOptions.onUpdate)
|
|
9154
9146
|
});
|
|
9155
|
-
handlePopperRefRef.current
|
|
9147
|
+
if (handlePopperRefRef.current) {
|
|
9148
|
+
setRef(handlePopperRefRef.current, popper);
|
|
9149
|
+
}
|
|
9156
9150
|
}, [anchorEl, disablePortal, modifiers2, open, rtlPlacement, popperOptions]);
|
|
9157
9151
|
const handleRef = React.useCallback((node2) => {
|
|
9158
9152
|
setRef(ownRef, node2);
|
|
@@ -9166,7 +9160,9 @@ React.forwardRef((props, ref) => {
|
|
|
9166
9160
|
return;
|
|
9167
9161
|
}
|
|
9168
9162
|
popperRef.current.destroy();
|
|
9169
|
-
handlePopperRefRef.current
|
|
9163
|
+
if (handlePopperRefRef.current) {
|
|
9164
|
+
setRef(handlePopperRefRef.current, null);
|
|
9165
|
+
}
|
|
9170
9166
|
};
|
|
9171
9167
|
const handleExited = () => {
|
|
9172
9168
|
setExited(true);
|
|
@@ -9197,7 +9193,7 @@ React.forwardRef((props, ref) => {
|
|
|
9197
9193
|
// Fix Popper.js display issue
|
|
9198
9194
|
top: 0,
|
|
9199
9195
|
left: 0,
|
|
9200
|
-
display: !open && keepMounted && !transition ? "none" :
|
|
9196
|
+
display: !open && keepMounted && !transition ? "none" : void 0,
|
|
9201
9197
|
...style2
|
|
9202
9198
|
}, children: typeof children === "function" ? children(childProps) : children }) });
|
|
9203
9199
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitessce/description",
|
|
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": {
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
],
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"react-markdown": "^9.0.1",
|
|
20
|
-
"@vitessce/styles": "3.9.
|
|
21
|
-
"@vitessce/constants-internal": "3.9.
|
|
22
|
-
"@vitessce/vit-s": "3.9.
|
|
20
|
+
"@vitessce/styles": "3.9.2",
|
|
21
|
+
"@vitessce/constants-internal": "3.9.2",
|
|
22
|
+
"@vitessce/vit-s": "3.9.2"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@testing-library/jest-dom": "^6.6.3",
|