@vitessce/all 3.0.0 → 3.0.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/{deflate-f57b3163.js → deflate-475a23c9.js} +1 -1
- package/dist/{hglib-1422f224.js → hglib-76c1b0ad.js} +1 -1
- package/dist/{index-3f1c1764.js → index-f48f3f08.js} +327 -227
- package/dist/index.js +1 -1
- package/dist/{jpeg-e740c9a5.js → jpeg-7f0b1b2c.js} +1 -1
- package/dist/{lerc-01e6c4d8.js → lerc-f7557585.js} +1 -1
- package/dist/{lzw-865bd058.js → lzw-4d26ee71.js} +1 -1
- package/dist/{packbits-d4191efd.js → packbits-08efb7ce.js} +1 -1
- package/dist/{raw-3c693341.js → raw-3c2d82ff.js} +1 -1
- package/dist/{webimage-83da2258.js → webimage-a7dde8d2.js} +1 -1
- package/dist-tsc/Vitessce.d.ts.map +1 -1
- package/dist-tsc/Vitessce.js +7 -3
- package/package.json +22 -22
- package/src/Vitessce.tsx +7 -2
- package/src/missing-types.d.ts +1 -0
package/dist/index.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { i as inflate_1 } from "./pako.esm-68f84e2a.js";
|
2
|
-
import { g as getDefaultExportFromCjs, B as BaseDecoder, L as LercParameters, a as LercAddCompression } from "./index-
|
2
|
+
import { g as getDefaultExportFromCjs, B as BaseDecoder, L as LercParameters, a as LercAddCompression } from "./index-f48f3f08.js";
|
3
3
|
import "react";
|
4
4
|
import "@vitessce/vit-s";
|
5
5
|
import "react-dom";
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Vitessce.d.ts","sourceRoot":"","sources":["../src/Vitessce.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"Vitessce.d.ts","sourceRoot":"","sources":["../src/Vitessce.tsx"],"names":[],"mappings":"AAgBA,wBAAgB,QAAQ,CAAC,KAAK,EAAE,GAAG,8CA8DlC"}
|
package/dist-tsc/Vitessce.js
CHANGED
@@ -1,15 +1,19 @@
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
2
2
|
/* eslint-disable max-len */
|
3
3
|
import { useMemo } from 'react';
|
4
|
-
import { VitS, } from '@vitessce/vit-s';
|
4
|
+
import { VitS, logConfig, } from '@vitessce/vit-s';
|
5
5
|
import { upgradeAndParse, } from '@vitessce/schemas';
|
6
6
|
import { baseViewTypes, baseFileTypes, baseJointFileTypes, baseCoordinationTypes, } from './base-plugins.js';
|
7
7
|
export function Vitessce(props) {
|
8
8
|
const { config, onConfigUpgrade, pluginViewTypes: pluginViewTypesProp, pluginFileTypes: pluginFileTypesProp, pluginCoordinationTypes: pluginCoordinationTypesProp, pluginJointFileTypes: pluginJointFileTypesProp, } = props;
|
9
|
-
|
9
|
+
// If config.uid exists, then use it for hook dependencies to detect changes
|
10
|
+
// (controlled component case). If not, then use the config object itself
|
11
|
+
// and assume the un-controlled component case.
|
12
|
+
const configKey = config?.uid || config;
|
10
13
|
const configVersion = config?.version;
|
11
14
|
const [configOrWarning, success] = useMemo(() => {
|
12
15
|
try {
|
16
|
+
logConfig(config, 'pre-upgrade view config');
|
13
17
|
const validConfig = upgradeAndParse(config, onConfigUpgrade);
|
14
18
|
return [validConfig, true];
|
15
19
|
}
|
@@ -24,7 +28,7 @@ export function Vitessce(props) {
|
|
24
28
|
];
|
25
29
|
}
|
26
30
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
27
|
-
}, [
|
31
|
+
}, [configKey, configVersion]);
|
28
32
|
const mergedPluginViewTypes = useMemo(() => ([
|
29
33
|
...baseViewTypes, ...(pluginViewTypesProp || []),
|
30
34
|
]), [pluginViewTypesProp]);
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@vitessce/all",
|
3
|
-
"version": "3.0.
|
3
|
+
"version": "3.0.1",
|
4
4
|
"author": "Gehlenborg Lab",
|
5
5
|
"homepage": "http://vitessce.io",
|
6
6
|
"repository": {
|
@@ -18,30 +18,30 @@
|
|
18
18
|
"dependencies": {
|
19
19
|
"@material-ui/core": "~4.12.3",
|
20
20
|
"zod": "^3.21.4",
|
21
|
-
"@vitessce/constants-internal": "3.0.
|
22
|
-
"@vitessce/csv": "3.0.
|
23
|
-
"@vitessce/description": "3.0.
|
24
|
-
"@vitessce/feature-list": "3.0.
|
25
|
-
"@vitessce/genomic-profiles": "3.0.
|
26
|
-
"@vitessce/heatmap": "3.0.
|
27
|
-
"@vitessce/json": "3.0.
|
28
|
-
"@vitessce/layer-controller": "3.0.
|
29
|
-
"@vitessce/obs-sets-manager": "3.0.
|
30
|
-
"@vitessce/ome-tiff": "3.0.
|
31
|
-
"@vitessce/plugins": "3.0.
|
32
|
-
"@vitessce/scatterplot-embedding": "3.0.
|
33
|
-
"@vitessce/scatterplot-gating": "3.0.
|
34
|
-
"@vitessce/schemas": "3.0.
|
35
|
-
"@vitessce/spatial": "3.0.
|
36
|
-
"@vitessce/statistical-plots": "3.0.
|
37
|
-
"@vitessce/status": "3.0.
|
38
|
-
"@vitessce/vit-s": "3.0.
|
39
|
-
"@vitessce/zarr": "3.0.
|
21
|
+
"@vitessce/constants-internal": "3.0.1",
|
22
|
+
"@vitessce/csv": "3.0.1",
|
23
|
+
"@vitessce/description": "3.0.1",
|
24
|
+
"@vitessce/feature-list": "3.0.1",
|
25
|
+
"@vitessce/genomic-profiles": "3.0.1",
|
26
|
+
"@vitessce/heatmap": "3.0.1",
|
27
|
+
"@vitessce/json": "3.0.1",
|
28
|
+
"@vitessce/layer-controller": "3.0.1",
|
29
|
+
"@vitessce/obs-sets-manager": "3.0.1",
|
30
|
+
"@vitessce/ome-tiff": "3.0.1",
|
31
|
+
"@vitessce/plugins": "3.0.1",
|
32
|
+
"@vitessce/scatterplot-embedding": "3.0.1",
|
33
|
+
"@vitessce/scatterplot-gating": "3.0.1",
|
34
|
+
"@vitessce/schemas": "3.0.1",
|
35
|
+
"@vitessce/spatial": "3.0.1",
|
36
|
+
"@vitessce/statistical-plots": "3.0.1",
|
37
|
+
"@vitessce/status": "3.0.1",
|
38
|
+
"@vitessce/vit-s": "3.0.1",
|
39
|
+
"@vitessce/zarr": "3.0.1"
|
40
40
|
},
|
41
41
|
"devDependencies": {
|
42
42
|
"@types/react": "^18.0.28",
|
43
43
|
"react": "^18.0.0",
|
44
|
-
"vitest": "^0.
|
44
|
+
"vitest": "^0.32.2"
|
45
45
|
},
|
46
46
|
"peerDependencies": {
|
47
47
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0"
|
@@ -50,7 +50,7 @@
|
|
50
50
|
"start": "pnpm -C ../../../ run start-tsc",
|
51
51
|
"build": "pnpm -C ../../../ run build-tsc",
|
52
52
|
"bundle": "pnpm exec vite build -c ../../../scripts/vite.config.js",
|
53
|
-
"test": "pnpm exec vitest --run
|
53
|
+
"test": "pnpm exec vitest --run"
|
54
54
|
},
|
55
55
|
"module": "dist/index.js",
|
56
56
|
"exports": {
|
package/src/Vitessce.tsx
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
import React, { useMemo } from 'react';
|
3
3
|
import {
|
4
4
|
VitS,
|
5
|
+
logConfig,
|
5
6
|
} from '@vitessce/vit-s';
|
6
7
|
import {
|
7
8
|
upgradeAndParse,
|
@@ -23,11 +24,15 @@ export function Vitessce(props: any) {
|
|
23
24
|
pluginJointFileTypes: pluginJointFileTypesProp,
|
24
25
|
} = props;
|
25
26
|
|
26
|
-
|
27
|
+
// If config.uid exists, then use it for hook dependencies to detect changes
|
28
|
+
// (controlled component case). If not, then use the config object itself
|
29
|
+
// and assume the un-controlled component case.
|
30
|
+
const configKey = config?.uid || config;
|
27
31
|
const configVersion = config?.version;
|
28
32
|
|
29
33
|
const [configOrWarning, success] = useMemo(() => {
|
30
34
|
try {
|
35
|
+
logConfig(config, 'pre-upgrade view config');
|
31
36
|
const validConfig = upgradeAndParse(config, onConfigUpgrade);
|
32
37
|
return [validConfig, true];
|
33
38
|
} catch (e) {
|
@@ -41,7 +46,7 @@ export function Vitessce(props: any) {
|
|
41
46
|
];
|
42
47
|
}
|
43
48
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
44
|
-
}, [
|
49
|
+
}, [configKey, configVersion]);
|
45
50
|
|
46
51
|
const mergedPluginViewTypes = useMemo(() => ([
|
47
52
|
...baseViewTypes, ...(pluginViewTypesProp || []),
|
@@ -0,0 +1 @@
|
|
1
|
+
declare module '@vitessce/vit-s';
|