@vitessce/vit-s 3.3.5 → 3.3.6
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 +39 -31
- package/dist-tsc/VitS.d.ts +3 -0
- package/dist-tsc/VitS.d.ts.map +1 -1
- package/dist-tsc/VitS.js +4 -2
- package/package.json +6 -6
- package/src/VitS.js +7 -1
package/dist/index.js
CHANGED
|
@@ -28044,10 +28044,10 @@ const AUTO_INDEPENDENT_COORDINATION_TYPES = [
|
|
|
28044
28044
|
CoordinationType$1.EMBEDDING_OBS_OPACITY
|
|
28045
28045
|
];
|
|
28046
28046
|
const note = "This file is autogenerated by .changeset/post-changelog.mjs.";
|
|
28047
|
-
const version = "3.3.
|
|
28048
|
-
const date = "2024-02-
|
|
28047
|
+
const version = "3.3.6";
|
|
28048
|
+
const date = "2024-02-25";
|
|
28049
28049
|
const branch = "changeset-release/main";
|
|
28050
|
-
const hash = "
|
|
28050
|
+
const hash = "fcb2a92d";
|
|
28051
28051
|
const META_VERSION = {
|
|
28052
28052
|
note,
|
|
28053
28053
|
version,
|
|
@@ -37729,6 +37729,7 @@ function VitS(props) {
|
|
|
37729
37729
|
validateOnConfigChange = false,
|
|
37730
37730
|
isBounded = false,
|
|
37731
37731
|
uid = null,
|
|
37732
|
+
remountOnUidChange = true,
|
|
37732
37733
|
viewTypes: viewTypesProp,
|
|
37733
37734
|
fileTypes: fileTypesProp,
|
|
37734
37735
|
jointFileTypes: jointFileTypesProp,
|
|
@@ -37833,34 +37834,41 @@ function VitS(props) {
|
|
|
37833
37834
|
}
|
|
37834
37835
|
return createViewConfigStore(null, null);
|
|
37835
37836
|
}, [success, configKey]);
|
|
37836
|
-
return success ? /* @__PURE__ */ jsxRuntimeExports.jsx(StylesProvider, { generateClassName: generateClassName2, children: /* @__PURE__ */ jsxRuntimeExports.jsx(ThemeProvider, { theme: muiTheme[theme], children: /* @__PURE__ */ jsxRuntimeExports.jsx(QueryClientProvider, { client: queryClient, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
37837
|
-
|
|
37838
|
-
|
|
37839
|
-
|
|
37840
|
-
|
|
37841
|
-
|
|
37842
|
-
|
|
37843
|
-
|
|
37844
|
-
|
|
37845
|
-
|
|
37846
|
-
|
|
37847
|
-
|
|
37848
|
-
|
|
37849
|
-
|
|
37850
|
-
|
|
37851
|
-
|
|
37852
|
-
|
|
37853
|
-
|
|
37854
|
-
|
|
37855
|
-
|
|
37856
|
-
|
|
37857
|
-
|
|
37858
|
-
|
|
37859
|
-
|
|
37860
|
-
|
|
37861
|
-
|
|
37862
|
-
|
|
37863
|
-
|
|
37837
|
+
return success ? /* @__PURE__ */ jsxRuntimeExports.jsx(StylesProvider, { generateClassName: generateClassName2, children: /* @__PURE__ */ jsxRuntimeExports.jsx(ThemeProvider, { theme: muiTheme[theme], children: /* @__PURE__ */ jsxRuntimeExports.jsx(QueryClientProvider, { client: queryClient, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
37838
|
+
ViewConfigProvider,
|
|
37839
|
+
{
|
|
37840
|
+
createStore: createViewConfigStoreClosure,
|
|
37841
|
+
...remountOnUidChange ? { key: configKey } : {},
|
|
37842
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsxs(AuxiliaryProvider, { createStore: createAuxiliaryStore, children: [
|
|
37843
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
37844
|
+
VitessceGrid,
|
|
37845
|
+
{
|
|
37846
|
+
success,
|
|
37847
|
+
configKey,
|
|
37848
|
+
viewTypes,
|
|
37849
|
+
fileTypes,
|
|
37850
|
+
coordinationTypes,
|
|
37851
|
+
config: configOrWarning,
|
|
37852
|
+
rowHeight,
|
|
37853
|
+
height: height2,
|
|
37854
|
+
theme,
|
|
37855
|
+
isBounded,
|
|
37856
|
+
stores
|
|
37857
|
+
}
|
|
37858
|
+
),
|
|
37859
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
37860
|
+
CallbackPublisher,
|
|
37861
|
+
{
|
|
37862
|
+
onWarn,
|
|
37863
|
+
onConfigChange,
|
|
37864
|
+
onLoaderChange,
|
|
37865
|
+
validateOnConfigChange,
|
|
37866
|
+
pluginSpecificConfigSchema
|
|
37867
|
+
}
|
|
37868
|
+
)
|
|
37869
|
+
] })
|
|
37870
|
+
}
|
|
37871
|
+
) }) }) }) : /* @__PURE__ */ jsxRuntimeExports.jsx(StylesProvider, { generateClassName: generateClassName2, children: /* @__PURE__ */ jsxRuntimeExports.jsx(ThemeProvider, { theme: muiTheme[theme], children: /* @__PURE__ */ jsxRuntimeExports.jsx(Warning, { ...configOrWarning }) }) });
|
|
37864
37872
|
}
|
|
37865
37873
|
const ArrowDropDownIcon = createSvgIcon(/* @__PURE__ */ React$6.createElement("path", {
|
|
37866
37874
|
d: "M7 10l5 5 5-5z"
|
package/dist-tsc/VitS.d.ts
CHANGED
|
@@ -23,6 +23,8 @@
|
|
|
23
23
|
* @param {null|string} props.uid A unique identifier for this Vitessce instance,
|
|
24
24
|
* for the purpose of avoiding CSS autogenerated class name conflicts. Must be valid as part
|
|
25
25
|
* of a CSS class name string.
|
|
26
|
+
* @param {boolean} props.remountOnUidChange Whether to remount the coordination provider
|
|
27
|
+
* upon changes to config.uid. By default, true.
|
|
26
28
|
* @param {array} props.viewTypes Plugin view types.
|
|
27
29
|
* @param {array} props.fileTypes Plugin file types.
|
|
28
30
|
* @param {array} props.jointFileTypes Plugin joint file types.
|
|
@@ -41,6 +43,7 @@ export function VitS(props: {
|
|
|
41
43
|
validateConfig: boolean;
|
|
42
44
|
validateOnConfigChange: boolean;
|
|
43
45
|
uid: null | string;
|
|
46
|
+
remountOnUidChange: boolean;
|
|
44
47
|
viewTypes: array;
|
|
45
48
|
fileTypes: array;
|
|
46
49
|
jointFileTypes: array;
|
package/dist-tsc/VitS.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VitS.d.ts","sourceRoot":"","sources":["../src/VitS.js"],"names":[],"mappings":"AA8BA
|
|
1
|
+
{"version":3,"file":"VitS.d.ts","sourceRoot":"","sources":["../src/VitS.js"],"names":[],"mappings":"AA8BA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH;IA/ByB,MAAM,EAApB,MAAM;IAGkB,SAAS,EAAjC,SAAS,GAAC,MAAM;IACF,MAAM,EAApB,MAAM;IACQ,KAAK,EAAnB,MAAM;IAEU,MAAM;IACN,cAAc;IAEd,cAAc;IAEf,cAAc,EAA7B,OAAO;IAIQ,sBAAsB,EAArC,OAAO;IAGY,GAAG,EAAtB,IAAI,GAAC,MAAM;IAGI,kBAAkB,EAAjC,OAAO;IAEM,SAAS;IACT,SAAS;IACT,cAAc;IACd,iBAAiB;IACX,OAAO,EAA1B,IAAI,GAAC,MAAM;gBAgMrB"}
|
package/dist-tsc/VitS.js
CHANGED
|
@@ -37,6 +37,8 @@ import { createGenerateClassName } from './mui-utils.js';
|
|
|
37
37
|
* @param {null|string} props.uid A unique identifier for this Vitessce instance,
|
|
38
38
|
* for the purpose of avoiding CSS autogenerated class name conflicts. Must be valid as part
|
|
39
39
|
* of a CSS class name string.
|
|
40
|
+
* @param {boolean} props.remountOnUidChange Whether to remount the coordination provider
|
|
41
|
+
* upon changes to config.uid. By default, true.
|
|
40
42
|
* @param {array} props.viewTypes Plugin view types.
|
|
41
43
|
* @param {array} props.fileTypes Plugin file types.
|
|
42
44
|
* @param {array} props.jointFileTypes Plugin joint file types.
|
|
@@ -45,7 +47,7 @@ import { createGenerateClassName } from './mui-utils.js';
|
|
|
45
47
|
* provided by the parent.
|
|
46
48
|
*/
|
|
47
49
|
export function VitS(props) {
|
|
48
|
-
const { config, stores, rowHeight, height, theme, onWarn, onConfigChange, onLoaderChange, validateConfig = true, validateOnConfigChange = false, isBounded = false, uid = null, viewTypes: viewTypesProp, fileTypes: fileTypesProp, jointFileTypes: jointFileTypesProp, coordinationTypes: coordinationTypesProp, warning, } = props;
|
|
50
|
+
const { config, stores, rowHeight, height, theme, onWarn, onConfigChange, onLoaderChange, validateConfig = true, validateOnConfigChange = false, isBounded = false, uid = null, remountOnUidChange = true, viewTypes: viewTypesProp, fileTypes: fileTypesProp, jointFileTypes: jointFileTypesProp, coordinationTypes: coordinationTypesProp, warning, } = props;
|
|
49
51
|
const viewTypes = useMemo(() => (viewTypesProp || []), [viewTypesProp]);
|
|
50
52
|
const fileTypes = useMemo(() => (fileTypesProp || []), [fileTypesProp]);
|
|
51
53
|
const jointFileTypes = useMemo(() => (jointFileTypesProp || []), [jointFileTypesProp]);
|
|
@@ -142,5 +144,5 @@ export function VitS(props) {
|
|
|
142
144
|
return createViewConfigStore(null, null);
|
|
143
145
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
144
146
|
}, [success, configKey]);
|
|
145
|
-
return success ? (_jsx(StylesProvider, { generateClassName: generateClassName, children: _jsx(ThemeProvider, { theme: muiTheme[theme], children: _jsx(QueryClientProvider, { client: queryClient, children: _jsx(ViewConfigProvider, { createStore: createViewConfigStoreClosure, children: _jsxs(AuxiliaryProvider, { createStore: createAuxiliaryStore, children: [_jsx(VitessceGrid, { success: success, configKey: configKey, viewTypes: viewTypes, fileTypes: fileTypes, coordinationTypes: coordinationTypes, config: configOrWarning, rowHeight: rowHeight, height: height, theme: theme, isBounded: isBounded, stores: stores }), _jsx(CallbackPublisher, { onWarn: onWarn, onConfigChange: onConfigChange, onLoaderChange: onLoaderChange, validateOnConfigChange: validateOnConfigChange, pluginSpecificConfigSchema: pluginSpecificConfigSchema })] }) }
|
|
147
|
+
return success ? (_jsx(StylesProvider, { generateClassName: generateClassName, children: _jsx(ThemeProvider, { theme: muiTheme[theme], children: _jsx(QueryClientProvider, { client: queryClient, children: _jsx(ViewConfigProvider, { createStore: createViewConfigStoreClosure, ...(remountOnUidChange ? ({ key: configKey }) : {}), children: _jsxs(AuxiliaryProvider, { createStore: createAuxiliaryStore, children: [_jsx(VitessceGrid, { success: success, configKey: configKey, viewTypes: viewTypes, fileTypes: fileTypes, coordinationTypes: coordinationTypes, config: configOrWarning, rowHeight: rowHeight, height: height, theme: theme, isBounded: isBounded, stores: stores }), _jsx(CallbackPublisher, { onWarn: onWarn, onConfigChange: onConfigChange, onLoaderChange: onLoaderChange, validateOnConfigChange: validateOnConfigChange, pluginSpecificConfigSchema: pluginSpecificConfigSchema })] }) }) }) }) })) : (_jsx(StylesProvider, { generateClassName: generateClassName, children: _jsx(ThemeProvider, { theme: muiTheme[theme], children: _jsx(Warning, { ...configOrWarning }) }) }));
|
|
146
148
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitessce/vit-s",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.6",
|
|
4
4
|
"author": "Gehlenborg Lab",
|
|
5
5
|
"homepage": "http://vitessce.io",
|
|
6
6
|
"repository": {
|
|
@@ -29,11 +29,11 @@
|
|
|
29
29
|
"uuid": "^9.0.0",
|
|
30
30
|
"zustand": "^3.5.10",
|
|
31
31
|
"react-aria": "^3.28.0",
|
|
32
|
-
"@vitessce/
|
|
33
|
-
"@vitessce/schemas": "3.3.
|
|
34
|
-
"@vitessce/
|
|
35
|
-
"@vitessce/utils": "3.3.
|
|
36
|
-
"@vitessce/config": "3.3.
|
|
32
|
+
"@vitessce/constants-internal": "3.3.6",
|
|
33
|
+
"@vitessce/schemas": "3.3.6",
|
|
34
|
+
"@vitessce/plugins": "3.3.6",
|
|
35
|
+
"@vitessce/utils": "3.3.6",
|
|
36
|
+
"@vitessce/config": "3.3.6"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@testing-library/jest-dom": "^5.16.4",
|
package/src/VitS.js
CHANGED
|
@@ -53,6 +53,8 @@ import { createGenerateClassName } from './mui-utils.js';
|
|
|
53
53
|
* @param {null|string} props.uid A unique identifier for this Vitessce instance,
|
|
54
54
|
* for the purpose of avoiding CSS autogenerated class name conflicts. Must be valid as part
|
|
55
55
|
* of a CSS class name string.
|
|
56
|
+
* @param {boolean} props.remountOnUidChange Whether to remount the coordination provider
|
|
57
|
+
* upon changes to config.uid. By default, true.
|
|
56
58
|
* @param {array} props.viewTypes Plugin view types.
|
|
57
59
|
* @param {array} props.fileTypes Plugin file types.
|
|
58
60
|
* @param {array} props.jointFileTypes Plugin joint file types.
|
|
@@ -74,6 +76,7 @@ export function VitS(props) {
|
|
|
74
76
|
validateOnConfigChange = false,
|
|
75
77
|
isBounded = false,
|
|
76
78
|
uid = null,
|
|
79
|
+
remountOnUidChange = true,
|
|
77
80
|
viewTypes: viewTypesProp,
|
|
78
81
|
fileTypes: fileTypesProp,
|
|
79
82
|
jointFileTypes: jointFileTypesProp,
|
|
@@ -211,7 +214,10 @@ export function VitS(props) {
|
|
|
211
214
|
<StylesProvider generateClassName={generateClassName}>
|
|
212
215
|
<ThemeProvider theme={muiTheme[theme]}>
|
|
213
216
|
<QueryClientProvider client={queryClient}>
|
|
214
|
-
<ViewConfigProvider
|
|
217
|
+
<ViewConfigProvider
|
|
218
|
+
createStore={createViewConfigStoreClosure}
|
|
219
|
+
{...(remountOnUidChange ? ({ key: configKey }) : {})}
|
|
220
|
+
>
|
|
215
221
|
<AuxiliaryProvider createStore={createAuxiliaryStore}>
|
|
216
222
|
<VitessceGrid
|
|
217
223
|
success={success}
|