@vitessce/vit-s 3.2.0 → 3.2.1
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
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React$6 from "react";
|
|
2
|
-
import React__default, { Children, isValidElement, cloneElement as cloneElement$1, useReducer, useRef, useDebugValue, useEffect, useLayoutEffect, createContext as createContext$1, createElement, useContext, useMemo, useCallback, useState
|
|
2
|
+
import React__default, { Children, isValidElement, cloneElement as cloneElement$1, useReducer, useRef, useDebugValue, useEffect, useLayoutEffect, createContext as createContext$1, createElement, useContext, useMemo, useCallback, useState } from "react";
|
|
3
3
|
import * as ReactDOM from "react-dom";
|
|
4
4
|
import ReactDOM__default from "react-dom";
|
|
5
5
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
@@ -35383,10 +35383,10 @@ const AUTO_INDEPENDENT_COORDINATION_TYPES = [
|
|
|
35383
35383
|
CoordinationType$1.EMBEDDING_OBS_OPACITY
|
|
35384
35384
|
];
|
|
35385
35385
|
const note = "This file is autogenerated by .changeset/post-changelog.mjs.";
|
|
35386
|
-
const version = "3.2.
|
|
35387
|
-
const date = "2023-09-
|
|
35386
|
+
const version = "3.2.1";
|
|
35387
|
+
const date = "2023-09-13";
|
|
35388
35388
|
const branch = "changeset-release/main";
|
|
35389
|
-
const hash = "
|
|
35389
|
+
const hash = "a118dd03";
|
|
35390
35390
|
const META_VERSION = {
|
|
35391
35391
|
note,
|
|
35392
35392
|
version,
|
|
@@ -45826,6 +45826,132 @@ class LoaderResult {
|
|
|
45826
45826
|
this.coordinationValues = coordinationValues;
|
|
45827
45827
|
}
|
|
45828
45828
|
}
|
|
45829
|
+
const $b5e257d569688ac6$var$defaultContext = {
|
|
45830
|
+
prefix: String(Math.round(Math.random() * 1e10)),
|
|
45831
|
+
current: 0
|
|
45832
|
+
};
|
|
45833
|
+
const $b5e257d569688ac6$var$SSRContext = /* @__PURE__ */ React__default.createContext($b5e257d569688ac6$var$defaultContext);
|
|
45834
|
+
const $b5e257d569688ac6$var$IsSSRContext = /* @__PURE__ */ React__default.createContext(false);
|
|
45835
|
+
let $b5e257d569688ac6$var$canUseDOM = Boolean(typeof window !== "undefined" && window.document && window.document.createElement);
|
|
45836
|
+
let $b5e257d569688ac6$var$componentIds = /* @__PURE__ */ new WeakMap();
|
|
45837
|
+
function $b5e257d569688ac6$var$useCounter(isDisabled = false) {
|
|
45838
|
+
let ctx = useContext($b5e257d569688ac6$var$SSRContext);
|
|
45839
|
+
let ref = useRef(null);
|
|
45840
|
+
if (ref.current === null && !isDisabled) {
|
|
45841
|
+
var _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner;
|
|
45842
|
+
let currentOwner = (_React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = React__default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED) === null || _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED === void 0 ? void 0 : (_React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner = _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner) === null || _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner === void 0 ? void 0 : _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner.current;
|
|
45843
|
+
if (currentOwner) {
|
|
45844
|
+
let prevComponentValue = $b5e257d569688ac6$var$componentIds.get(currentOwner);
|
|
45845
|
+
if (prevComponentValue == null)
|
|
45846
|
+
$b5e257d569688ac6$var$componentIds.set(currentOwner, {
|
|
45847
|
+
id: ctx.current,
|
|
45848
|
+
state: currentOwner.memoizedState
|
|
45849
|
+
});
|
|
45850
|
+
else if (currentOwner.memoizedState !== prevComponentValue.state) {
|
|
45851
|
+
ctx.current = prevComponentValue.id;
|
|
45852
|
+
$b5e257d569688ac6$var$componentIds.delete(currentOwner);
|
|
45853
|
+
}
|
|
45854
|
+
}
|
|
45855
|
+
ref.current = ++ctx.current;
|
|
45856
|
+
}
|
|
45857
|
+
return ref.current;
|
|
45858
|
+
}
|
|
45859
|
+
function $b5e257d569688ac6$var$useLegacySSRSafeId(defaultId) {
|
|
45860
|
+
let ctx = useContext($b5e257d569688ac6$var$SSRContext);
|
|
45861
|
+
if (ctx === $b5e257d569688ac6$var$defaultContext && !$b5e257d569688ac6$var$canUseDOM)
|
|
45862
|
+
console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");
|
|
45863
|
+
let counter = $b5e257d569688ac6$var$useCounter(!!defaultId);
|
|
45864
|
+
let prefix2 = ctx === $b5e257d569688ac6$var$defaultContext && false ? "react-aria" : `react-aria${ctx.prefix}`;
|
|
45865
|
+
return defaultId || `${prefix2}-${counter}`;
|
|
45866
|
+
}
|
|
45867
|
+
function $b5e257d569688ac6$var$useModernSSRSafeId(defaultId) {
|
|
45868
|
+
let id = React__default.useId();
|
|
45869
|
+
let [didSSR] = useState($b5e257d569688ac6$export$535bd6ca7f90a273());
|
|
45870
|
+
let prefix2 = didSSR || false ? "react-aria" : `react-aria${$b5e257d569688ac6$var$defaultContext.prefix}`;
|
|
45871
|
+
return defaultId || `${prefix2}-${id}`;
|
|
45872
|
+
}
|
|
45873
|
+
const $b5e257d569688ac6$export$619500959fc48b26 = typeof React__default["useId"] === "function" ? $b5e257d569688ac6$var$useModernSSRSafeId : $b5e257d569688ac6$var$useLegacySSRSafeId;
|
|
45874
|
+
function $b5e257d569688ac6$var$getSnapshot() {
|
|
45875
|
+
return false;
|
|
45876
|
+
}
|
|
45877
|
+
function $b5e257d569688ac6$var$getServerSnapshot() {
|
|
45878
|
+
return true;
|
|
45879
|
+
}
|
|
45880
|
+
function $b5e257d569688ac6$var$subscribe(onStoreChange) {
|
|
45881
|
+
return () => {
|
|
45882
|
+
};
|
|
45883
|
+
}
|
|
45884
|
+
function $b5e257d569688ac6$export$535bd6ca7f90a273() {
|
|
45885
|
+
if (typeof React__default["useSyncExternalStore"] === "function")
|
|
45886
|
+
return React__default["useSyncExternalStore"]($b5e257d569688ac6$var$subscribe, $b5e257d569688ac6$var$getSnapshot, $b5e257d569688ac6$var$getServerSnapshot);
|
|
45887
|
+
return useContext($b5e257d569688ac6$var$IsSSRContext);
|
|
45888
|
+
}
|
|
45889
|
+
const $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c = typeof document !== "undefined" ? React__default.useLayoutEffect : () => {
|
|
45890
|
+
};
|
|
45891
|
+
let $bdb11010cef70236$var$idsUpdaterMap = /* @__PURE__ */ new Map();
|
|
45892
|
+
function $bdb11010cef70236$export$f680877a34711e37(defaultId) {
|
|
45893
|
+
let [value, setValue] = useState(defaultId);
|
|
45894
|
+
let nextId = useRef(null);
|
|
45895
|
+
let res = $b5e257d569688ac6$export$619500959fc48b26(value);
|
|
45896
|
+
let updateValue = useCallback((val) => {
|
|
45897
|
+
nextId.current = val;
|
|
45898
|
+
}, []);
|
|
45899
|
+
$bdb11010cef70236$var$idsUpdaterMap.set(res, updateValue);
|
|
45900
|
+
$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
|
|
45901
|
+
let r2 = res;
|
|
45902
|
+
return () => {
|
|
45903
|
+
$bdb11010cef70236$var$idsUpdaterMap.delete(r2);
|
|
45904
|
+
};
|
|
45905
|
+
}, [
|
|
45906
|
+
res
|
|
45907
|
+
]);
|
|
45908
|
+
useEffect(() => {
|
|
45909
|
+
let newId = nextId.current;
|
|
45910
|
+
if (newId) {
|
|
45911
|
+
nextId.current = null;
|
|
45912
|
+
setValue(newId);
|
|
45913
|
+
}
|
|
45914
|
+
});
|
|
45915
|
+
return res;
|
|
45916
|
+
}
|
|
45917
|
+
let $bbed8b41f857bcc0$var$transitionsByElement = /* @__PURE__ */ new Map();
|
|
45918
|
+
let $bbed8b41f857bcc0$var$transitionCallbacks = /* @__PURE__ */ new Set();
|
|
45919
|
+
function $bbed8b41f857bcc0$var$setupGlobalEvents() {
|
|
45920
|
+
if (typeof window === "undefined")
|
|
45921
|
+
return;
|
|
45922
|
+
let onTransitionStart = (e) => {
|
|
45923
|
+
let transitions2 = $bbed8b41f857bcc0$var$transitionsByElement.get(e.target);
|
|
45924
|
+
if (!transitions2) {
|
|
45925
|
+
transitions2 = /* @__PURE__ */ new Set();
|
|
45926
|
+
$bbed8b41f857bcc0$var$transitionsByElement.set(e.target, transitions2);
|
|
45927
|
+
e.target.addEventListener("transitioncancel", onTransitionEnd);
|
|
45928
|
+
}
|
|
45929
|
+
transitions2.add(e.propertyName);
|
|
45930
|
+
};
|
|
45931
|
+
let onTransitionEnd = (e) => {
|
|
45932
|
+
let properties2 = $bbed8b41f857bcc0$var$transitionsByElement.get(e.target);
|
|
45933
|
+
if (!properties2)
|
|
45934
|
+
return;
|
|
45935
|
+
properties2.delete(e.propertyName);
|
|
45936
|
+
if (properties2.size === 0) {
|
|
45937
|
+
e.target.removeEventListener("transitioncancel", onTransitionEnd);
|
|
45938
|
+
$bbed8b41f857bcc0$var$transitionsByElement.delete(e.target);
|
|
45939
|
+
}
|
|
45940
|
+
if ($bbed8b41f857bcc0$var$transitionsByElement.size === 0) {
|
|
45941
|
+
for (let cb of $bbed8b41f857bcc0$var$transitionCallbacks)
|
|
45942
|
+
cb();
|
|
45943
|
+
$bbed8b41f857bcc0$var$transitionCallbacks.clear();
|
|
45944
|
+
}
|
|
45945
|
+
};
|
|
45946
|
+
document.body.addEventListener("transitionrun", onTransitionStart);
|
|
45947
|
+
document.body.addEventListener("transitionend", onTransitionEnd);
|
|
45948
|
+
}
|
|
45949
|
+
if (typeof document !== "undefined") {
|
|
45950
|
+
if (document.readyState !== "loading")
|
|
45951
|
+
$bbed8b41f857bcc0$var$setupGlobalEvents();
|
|
45952
|
+
else
|
|
45953
|
+
document.addEventListener("DOMContentLoaded", $bbed8b41f857bcc0$var$setupGlobalEvents);
|
|
45954
|
+
}
|
|
45829
45955
|
const useStyles = makeStyles((theme) => ({
|
|
45830
45956
|
box: {
|
|
45831
45957
|
boxSizing: "border-box"
|
|
@@ -45897,7 +46023,7 @@ function CellColorEncodingOption(props) {
|
|
|
45897
46023
|
setCellColorEncoding
|
|
45898
46024
|
} = props;
|
|
45899
46025
|
const classes = useStyles();
|
|
45900
|
-
const cellColorEncodingId =
|
|
46026
|
+
const cellColorEncodingId = $bdb11010cef70236$export$f680877a34711e37();
|
|
45901
46027
|
const observationsLabelNice = capitalize(observationsLabel);
|
|
45902
46028
|
function handleColorEncodingChange(event) {
|
|
45903
46029
|
setCellColorEncoding(event.target.value);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CellColorEncodingOption.d.ts","sourceRoot":"","sources":["../../src/shared-plot-options/CellColorEncodingOption.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CellColorEncodingOption.d.ts","sourceRoot":"","sources":["../../src/shared-plot-options/CellColorEncodingOption.js"],"names":[],"mappings":"AAOA,yEAyCC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import React
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { useId } from 'react-aria';
|
|
3
4
|
import { TableCell, TableRow } from '@material-ui/core';
|
|
4
5
|
import { capitalize } from '@vitessce/utils';
|
|
5
6
|
import OptionSelect from './OptionSelect.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitessce/vit-s",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.1",
|
|
4
4
|
"author": "Gehlenborg Lab",
|
|
5
5
|
"homepage": "http://vitessce.io",
|
|
6
6
|
"repository": {
|
|
@@ -28,10 +28,11 @@
|
|
|
28
28
|
"react-grid-layout-with-lodash": "^1.3.5",
|
|
29
29
|
"uuid": "^9.0.0",
|
|
30
30
|
"zustand": "^3.5.10",
|
|
31
|
-
"
|
|
32
|
-
"@vitessce/
|
|
33
|
-
"@vitessce/
|
|
34
|
-
"@vitessce/
|
|
31
|
+
"react-aria": "^3.28.0",
|
|
32
|
+
"@vitessce/constants-internal": "3.2.1",
|
|
33
|
+
"@vitessce/schemas": "3.2.1",
|
|
34
|
+
"@vitessce/plugins": "3.2.1",
|
|
35
|
+
"@vitessce/utils": "3.2.1"
|
|
35
36
|
},
|
|
36
37
|
"devDependencies": {
|
|
37
38
|
"@testing-library/jest-dom": "^5.16.4",
|