@vitessce/biomarker-select 3.6.17 → 3.7.0
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 +7 -4
- package/dist-tsc/BiomarkerSelectSubscriber.d.ts.map +1 -1
- package/dist-tsc/BiomarkerSelectSubscriber.js +3 -2
- package/dist-tsc/ComparativeHeadingSubscriber.d.ts.map +1 -1
- package/dist-tsc/ComparativeHeadingSubscriber.js +3 -2
- package/dist-tsc/SampleSetPairManagerSubscriber.d.ts.map +1 -1
- package/dist-tsc/SampleSetPairManagerSubscriber.js +3 -2
- package/package.json +7 -7
- package/src/BiomarkerSelectSubscriber.js +3 -1
- package/src/ComparativeHeadingSubscriber.js +4 -1
- package/src/SampleSetPairManagerSubscriber.js +3 -1
package/dist/index.js
CHANGED
|
@@ -12,7 +12,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
12
12
|
var _focused, _cleanup, _setup, _a, _online, _cleanup2, _setup2, _b, _client, _currentQuery, _currentQueryInitialState, _currentResult, _currentResultState, _currentResultOptions, _currentThenable, _selectError, _selectFn, _selectResult, _lastQueryWithDefinedData, _staleTimeoutId, _refetchIntervalId, _currentRefetchInterval, _trackedProps, _QueryObserver_instances, executeFetch_fn, updateStaleTimeout_fn, computeRefetchInterval_fn, updateRefetchInterval_fn, updateTimers_fn, clearStaleTimeout_fn, clearRefetchInterval_fn, updateQuery_fn, notify_fn, _c, _client2, _result, _queries, _options, _observers, _combinedResult, _lastCombine, _lastResult, _observerMatches, _QueriesObserver_instances, trackResult_fn, combineResult_fn, findMatchingObservers_fn, onUpdate_fn, notify_fn2, _d;
|
|
13
13
|
import * as React from "react";
|
|
14
14
|
import React__default, { useContext, forwardRef as forwardRef$1, useRef, useMemo, createContext, createElement, isValidElement, cloneElement, Children, PureComponent, useEffect, useState, useCallback } from "react";
|
|
15
|
-
import { useLoaders, useCoordination, useViewConfigStoreApi, useViewConfig, useSetViewConfig, useMatchingLoader, useColumnNameMapping, useAsyncFunction, useComparisonMetadata, useReady, TitleInfo } from "@vitessce/vit-s";
|
|
15
|
+
import { useLoaders, useCoordinationScopes, useCoordination, useViewConfigStoreApi, useViewConfig, useSetViewConfig, useMatchingLoader, useColumnNameMapping, useAsyncFunction, useComparisonMetadata, useReady, TitleInfo } from "@vitessce/vit-s";
|
|
16
16
|
import * as ReactDOM from "react-dom";
|
|
17
17
|
import ReactDOM__default from "react-dom";
|
|
18
18
|
const ViewType = {
|
|
@@ -62101,11 +62101,12 @@ function ScmdUi(props) {
|
|
|
62101
62101
|
}
|
|
62102
62102
|
function BiomarkerSelectSubscriber(props) {
|
|
62103
62103
|
const {
|
|
62104
|
-
coordinationScopes,
|
|
62104
|
+
coordinationScopes: coordinationScopesRaw,
|
|
62105
62105
|
stratificationOptions: stratificationOptionsProp
|
|
62106
62106
|
// TODO: Remove; Get from comparisonMetadata instead
|
|
62107
62107
|
} = props;
|
|
62108
62108
|
const loaders = useLoaders();
|
|
62109
|
+
const coordinationScopes = useCoordinationScopes(coordinationScopesRaw);
|
|
62109
62110
|
const [{
|
|
62110
62111
|
dataset,
|
|
62111
62112
|
obsType,
|
|
@@ -62254,8 +62255,9 @@ const useStyles$1 = makeStyles()((theme) => ({
|
|
|
62254
62255
|
function ComparativeHeadingSubscriber(props) {
|
|
62255
62256
|
var _a2, _b2;
|
|
62256
62257
|
const {
|
|
62257
|
-
coordinationScopes
|
|
62258
|
+
coordinationScopes: coordinationScopesRaw
|
|
62258
62259
|
} = props;
|
|
62260
|
+
const coordinationScopes = useCoordinationScopes(coordinationScopesRaw);
|
|
62259
62261
|
const [{
|
|
62260
62262
|
sampleSetSelection,
|
|
62261
62263
|
featureSelection
|
|
@@ -63019,7 +63021,7 @@ const useStyles = makeStyles()(() => ({
|
|
|
63019
63021
|
}));
|
|
63020
63022
|
function SampleSetPairManagerSubscriber(props) {
|
|
63021
63023
|
const {
|
|
63022
|
-
coordinationScopes,
|
|
63024
|
+
coordinationScopes: coordinationScopesRaw,
|
|
63023
63025
|
removeGridComponent,
|
|
63024
63026
|
theme,
|
|
63025
63027
|
title = "Sample Sets",
|
|
@@ -63028,6 +63030,7 @@ function SampleSetPairManagerSubscriber(props) {
|
|
|
63028
63030
|
} = props;
|
|
63029
63031
|
const { classes: classes2 } = useStyles();
|
|
63030
63032
|
const loaders = useLoaders();
|
|
63033
|
+
const coordinationScopes = useCoordinationScopes(coordinationScopesRaw);
|
|
63031
63034
|
const [{
|
|
63032
63035
|
dataset,
|
|
63033
63036
|
obsType,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BiomarkerSelectSubscriber.d.ts","sourceRoot":"","sources":["../src/BiomarkerSelectSubscriber.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BiomarkerSelectSubscriber.d.ts","sourceRoot":"","sources":["../src/BiomarkerSelectSubscriber.js"],"names":[],"mappings":"AAkBA;;;;;GAKG;AACH,iDAHG;IAA+F,qBAAqB,EAA5G;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,kBAAkB,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,CAAC,CAAA;KAAC,EAAE;CACvF,eA2JF"}
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
|
2
2
|
/* eslint-disable max-len */
|
|
3
3
|
/* eslint-disable no-unused-vars */
|
|
4
4
|
import React, { useState, useCallback, useMemo } from 'react';
|
|
5
|
-
import { useAsyncFunction, useViewConfigStoreApi, useSetViewConfig, useViewConfig, useCoordination, useLoaders, useComparisonMetadata, useMatchingLoader, useColumnNameMapping, } from '@vitessce/vit-s';
|
|
5
|
+
import { useAsyncFunction, useViewConfigStoreApi, useSetViewConfig, useViewConfig, useCoordination, useLoaders, useComparisonMetadata, useMatchingLoader, useColumnNameMapping, useCoordinationScopes, } from '@vitessce/vit-s';
|
|
6
6
|
import { AsyncFunctionType, ViewType, COMPONENT_COORDINATION_TYPES, DataType } from '@vitessce/constants-internal';
|
|
7
7
|
import { ScmdUi } from './scmd-ui.js';
|
|
8
8
|
/**
|
|
@@ -12,9 +12,10 @@ import { ScmdUi } from './scmd-ui.js';
|
|
|
12
12
|
* @returns
|
|
13
13
|
*/
|
|
14
14
|
export function BiomarkerSelectSubscriber(props) {
|
|
15
|
-
const { coordinationScopes, stratificationOptions: stratificationOptionsProp, // TODO: Remove; Get from comparisonMetadata instead
|
|
15
|
+
const { coordinationScopes: coordinationScopesRaw, stratificationOptions: stratificationOptionsProp, // TODO: Remove; Get from comparisonMetadata instead
|
|
16
16
|
} = props;
|
|
17
17
|
const loaders = useLoaders();
|
|
18
|
+
const coordinationScopes = useCoordinationScopes(coordinationScopesRaw);
|
|
18
19
|
const [{ dataset, obsType, sampleType, sampleSetSelection, featureSelection, }, { setSampleSetSelection, setFeatureSelection, }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType.BIOMARKER_SELECT], coordinationScopes);
|
|
19
20
|
const viewConfigStoreApi = useViewConfigStoreApi();
|
|
20
21
|
const viewConfig = useViewConfig();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComparativeHeadingSubscriber.d.ts","sourceRoot":"","sources":["../src/ComparativeHeadingSubscriber.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ComparativeHeadingSubscriber.d.ts","sourceRoot":"","sources":["../src/ComparativeHeadingSubscriber.js"],"names":[],"mappings":"AAuCA,sEAgFC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import React, { useCallback } from 'react';
|
|
3
|
-
import { useCoordination, } from '@vitessce/vit-s';
|
|
3
|
+
import { useCoordination, useCoordinationScopes, } from '@vitessce/vit-s';
|
|
4
4
|
import { ViewType, COMPONENT_COORDINATION_TYPES } from '@vitessce/constants-internal';
|
|
5
5
|
import { makeStyles } from '@vitessce/styles';
|
|
6
6
|
const useStyles = makeStyles()(theme => ({
|
|
@@ -34,7 +34,8 @@ const useStyles = makeStyles()(theme => ({
|
|
|
34
34
|
},
|
|
35
35
|
}));
|
|
36
36
|
export function ComparativeHeadingSubscriber(props) {
|
|
37
|
-
const { coordinationScopes, } = props;
|
|
37
|
+
const { coordinationScopes: coordinationScopesRaw, } = props;
|
|
38
|
+
const coordinationScopes = useCoordinationScopes(coordinationScopesRaw);
|
|
38
39
|
const [{ sampleSetSelection, featureSelection, }, { setSampleSetSelection, setFeatureSelection, }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType.COMPARATIVE_HEADING], coordinationScopes);
|
|
39
40
|
const { classes } = useStyles();
|
|
40
41
|
const swapSampleSets = useCallback(() => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SampleSetPairManagerSubscriber.d.ts","sourceRoot":"","sources":["../src/SampleSetPairManagerSubscriber.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SampleSetPairManagerSubscriber.d.ts","sourceRoot":"","sources":["../src/SampleSetPairManagerSubscriber.js"],"names":[],"mappings":"AA8BA,wEA6HC"}
|
|
@@ -3,7 +3,7 @@ import React, { useMemo, useCallback } from 'react';
|
|
|
3
3
|
import { isEqual } from 'lodash-es';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import { makeStyles } from '@vitessce/styles';
|
|
6
|
-
import { TitleInfo, useReady, useCoordination, useLoaders, useComparisonMetadata, useMatchingLoader, useColumnNameMapping, } from '@vitessce/vit-s';
|
|
6
|
+
import { TitleInfo, useReady, useCoordination, useLoaders, useComparisonMetadata, useMatchingLoader, useColumnNameMapping, useCoordinationScopes, } from '@vitessce/vit-s';
|
|
7
7
|
import { ViewType, DataType, COMPONENT_COORDINATION_TYPES, ViewHelpMapping } from '@vitessce/constants-internal';
|
|
8
8
|
const useStyles = makeStyles()(() => ({
|
|
9
9
|
selectedPair: {
|
|
@@ -19,9 +19,10 @@ const useStyles = makeStyles()(() => ({
|
|
|
19
19
|
},
|
|
20
20
|
}));
|
|
21
21
|
export function SampleSetPairManagerSubscriber(props) {
|
|
22
|
-
const { coordinationScopes, removeGridComponent, theme, title = 'Sample Sets', closeButtonVisible, helpText = ViewHelpMapping.SAMPLE_SET_PAIR_MANAGER, } = props;
|
|
22
|
+
const { coordinationScopes: coordinationScopesRaw, removeGridComponent, theme, title = 'Sample Sets', closeButtonVisible, helpText = ViewHelpMapping.SAMPLE_SET_PAIR_MANAGER, } = props;
|
|
23
23
|
const { classes } = useStyles();
|
|
24
24
|
const loaders = useLoaders();
|
|
25
|
+
const coordinationScopes = useCoordinationScopes(coordinationScopesRaw);
|
|
25
26
|
// Get "props" from the coordination space.
|
|
26
27
|
const [{ dataset, obsType, sampleType, sampleSetSelection, }, { setSampleSetSelection, }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType.SAMPLE_SET_PAIR_MANAGER], coordinationScopes);
|
|
27
28
|
const sampleSetsLoader = useMatchingLoader(loaders, dataset, DataType.SAMPLE_SETS, { sampleType });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitessce/biomarker-select",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.7.0",
|
|
4
4
|
"author": "Gehlenborg Lab",
|
|
5
5
|
"homepage": "http://vitessce.io",
|
|
6
6
|
"repository": {
|
|
@@ -21,24 +21,24 @@
|
|
|
21
21
|
"fuse.js": "^7.0.0",
|
|
22
22
|
"d3-dsv": "^1.1.1",
|
|
23
23
|
"clsx": "^1.1.1",
|
|
24
|
-
"@vitessce/styles": "3.
|
|
25
|
-
"@vitessce/constants-internal": "3.
|
|
26
|
-
"@vitessce/vit-s": "3.
|
|
27
|
-
"@vitessce/types": "3.
|
|
24
|
+
"@vitessce/styles": "3.7.0",
|
|
25
|
+
"@vitessce/constants-internal": "3.7.0",
|
|
26
|
+
"@vitessce/vit-s": "3.7.0",
|
|
27
|
+
"@vitessce/types": "3.7.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@testing-library/jest-dom": "^6.6.3",
|
|
31
31
|
"@testing-library/react": "^16.3.0",
|
|
32
32
|
"react": "^18.0.0",
|
|
33
33
|
"react-dom": "^18.0.0",
|
|
34
|
-
"vite": "^
|
|
34
|
+
"vite": "^7.0.0",
|
|
35
35
|
"vitest": "^3.1.4"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
|
|
39
39
|
},
|
|
40
40
|
"scripts": {
|
|
41
|
-
"bundle": "pnpm exec vite build -c ../../../scripts/vite.config.
|
|
41
|
+
"bundle": "pnpm exec vite build -c ../../../scripts/vite.config.mjs",
|
|
42
42
|
"test": "pnpm exec vitest --run"
|
|
43
43
|
},
|
|
44
44
|
"module": "dist/index.js",
|
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
useComparisonMetadata,
|
|
12
12
|
useMatchingLoader,
|
|
13
13
|
useColumnNameMapping,
|
|
14
|
+
useCoordinationScopes,
|
|
14
15
|
} from '@vitessce/vit-s';
|
|
15
16
|
import { AsyncFunctionType, ViewType, COMPONENT_COORDINATION_TYPES, DataType } from '@vitessce/constants-internal';
|
|
16
17
|
import { ScmdUi } from './scmd-ui.js';
|
|
@@ -23,11 +24,12 @@ import { ScmdUi } from './scmd-ui.js';
|
|
|
23
24
|
*/
|
|
24
25
|
export function BiomarkerSelectSubscriber(props) {
|
|
25
26
|
const {
|
|
26
|
-
coordinationScopes,
|
|
27
|
+
coordinationScopes: coordinationScopesRaw,
|
|
27
28
|
stratificationOptions: stratificationOptionsProp, // TODO: Remove; Get from comparisonMetadata instead
|
|
28
29
|
} = props;
|
|
29
30
|
|
|
30
31
|
const loaders = useLoaders();
|
|
32
|
+
const coordinationScopes = useCoordinationScopes(coordinationScopesRaw);
|
|
31
33
|
|
|
32
34
|
const [{
|
|
33
35
|
dataset,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React, { useCallback } from 'react';
|
|
2
2
|
import {
|
|
3
3
|
useCoordination,
|
|
4
|
+
useCoordinationScopes,
|
|
4
5
|
} from '@vitessce/vit-s';
|
|
5
6
|
import { ViewType, COMPONENT_COORDINATION_TYPES } from '@vitessce/constants-internal';
|
|
6
7
|
import { makeStyles } from '@vitessce/styles';
|
|
@@ -38,9 +39,11 @@ const useStyles = makeStyles()(theme => ({
|
|
|
38
39
|
|
|
39
40
|
export function ComparativeHeadingSubscriber(props) {
|
|
40
41
|
const {
|
|
41
|
-
coordinationScopes,
|
|
42
|
+
coordinationScopes: coordinationScopesRaw,
|
|
42
43
|
} = props;
|
|
43
44
|
|
|
45
|
+
const coordinationScopes = useCoordinationScopes(coordinationScopesRaw);
|
|
46
|
+
|
|
44
47
|
const [{
|
|
45
48
|
sampleSetSelection,
|
|
46
49
|
featureSelection,
|
|
@@ -10,6 +10,7 @@ import {
|
|
|
10
10
|
useComparisonMetadata,
|
|
11
11
|
useMatchingLoader,
|
|
12
12
|
useColumnNameMapping,
|
|
13
|
+
useCoordinationScopes,
|
|
13
14
|
} from '@vitessce/vit-s';
|
|
14
15
|
import { ViewType, DataType, COMPONENT_COORDINATION_TYPES, ViewHelpMapping } from '@vitessce/constants-internal';
|
|
15
16
|
|
|
@@ -29,7 +30,7 @@ const useStyles = makeStyles()(() => ({
|
|
|
29
30
|
|
|
30
31
|
export function SampleSetPairManagerSubscriber(props) {
|
|
31
32
|
const {
|
|
32
|
-
coordinationScopes,
|
|
33
|
+
coordinationScopes: coordinationScopesRaw,
|
|
33
34
|
removeGridComponent,
|
|
34
35
|
theme,
|
|
35
36
|
title = 'Sample Sets',
|
|
@@ -39,6 +40,7 @@ export function SampleSetPairManagerSubscriber(props) {
|
|
|
39
40
|
|
|
40
41
|
const { classes } = useStyles();
|
|
41
42
|
const loaders = useLoaders();
|
|
43
|
+
const coordinationScopes = useCoordinationScopes(coordinationScopesRaw);
|
|
42
44
|
|
|
43
45
|
// Get "props" from the coordination space.
|
|
44
46
|
const [{
|