@vitessce/vit-s 3.5.7 → 3.5.9
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 +421 -91
- package/dist-tsc/FallbackForView.d.ts +2 -0
- package/dist-tsc/FallbackForView.d.ts.map +1 -0
- package/dist-tsc/FallbackForView.js +13 -0
- package/dist-tsc/FallbackForVitS.d.ts +2 -0
- package/dist-tsc/FallbackForVitS.d.ts.map +1 -0
- package/dist-tsc/FallbackForVitS.js +12 -0
- package/dist-tsc/VitSContainer.d.ts +9 -0
- package/dist-tsc/VitSContainer.d.ts.map +1 -0
- package/dist-tsc/VitSContainer.js +15 -0
- package/dist-tsc/data-hooks.d.ts +22 -0
- package/dist-tsc/data-hooks.d.ts.map +1 -1
- package/dist-tsc/data-hooks.js +90 -0
- package/dist-tsc/hooks.d.ts +9 -0
- package/dist-tsc/hooks.d.ts.map +1 -1
- package/dist-tsc/hooks.js +28 -0
- package/dist-tsc/index.d.ts +3 -2
- package/dist-tsc/index.js +3 -2
- package/dist-tsc/vitessce-grid-layout/VitessceGridLayout.d.ts.map +1 -1
- package/dist-tsc/vitessce-grid-layout/VitessceGridLayout.js +8 -6
- package/package.json +11 -10
- package/src/FallbackForView.js +23 -0
- package/src/FallbackForVitS.js +21 -0
- package/src/VitSContainer.js +19 -0
- package/src/data-hooks.js +122 -0
- package/src/hooks.js +31 -0
- package/src/index.js +7 -0
- package/src/vitessce-grid-layout/VitessceGridLayout.js +32 -26
package/src/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { VitS } from './VitS.js';
|
|
2
|
+
export { VitSContainer } from './VitSContainer.js';
|
|
2
3
|
export { TitleInfo } from './TitleInfo.js';
|
|
3
4
|
export { PopperMenu } from './shared-mui/components.js';
|
|
4
5
|
// For plugin view types:
|
|
@@ -16,6 +17,7 @@ export {
|
|
|
16
17
|
useWindowDimensions,
|
|
17
18
|
useGridItemSize,
|
|
18
19
|
useExpandedFeatureLabelsMap,
|
|
20
|
+
useColumnNameMapping,
|
|
19
21
|
} from './hooks.js';
|
|
20
22
|
export {
|
|
21
23
|
useCoordinationScopes,
|
|
@@ -76,6 +78,11 @@ export {
|
|
|
76
78
|
useObsFeatureMatrixData,
|
|
77
79
|
useFeatureLabelsData,
|
|
78
80
|
useGenomicProfilesData,
|
|
81
|
+
|
|
82
|
+
useComparisonMetadata,
|
|
83
|
+
useFeatureStatsData,
|
|
84
|
+
useFeatureSetStatsData,
|
|
85
|
+
useObsSetStatsData,
|
|
79
86
|
} from './data-hooks.js';
|
|
80
87
|
export {
|
|
81
88
|
usePointMultiObsLabels,
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import React, { useState, useMemo, useCallback } from 'react';
|
|
2
2
|
import { Responsive, WidthProvider } from 'react-grid-layout-with-lodash';
|
|
3
3
|
import { isEqual } from 'lodash-es';
|
|
4
|
+
import { ErrorBoundary } from 'react-error-boundary';
|
|
4
5
|
import { getMaxRows, resolveLayout } from './layout-utils.js';
|
|
5
6
|
import { PageModeViewContext } from '../contexts.js';
|
|
7
|
+
import { FallbackForView } from '../FallbackForView.js';
|
|
6
8
|
|
|
7
9
|
const ResponsiveGridLayout = WidthProvider(Responsive);
|
|
8
10
|
|
|
@@ -131,19 +133,21 @@ export function VitessceGridLayout(props) {
|
|
|
131
133
|
const Component = getComponent(v.component);
|
|
132
134
|
return [v.uid, () => (
|
|
133
135
|
<div key={v.uid} style={{ display: 'flex', flexDirection: 'column', height: '100%' }}>
|
|
134
|
-
<
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
136
|
+
<ErrorBoundary FallbackComponent={FallbackForView}>
|
|
137
|
+
<Component
|
|
138
|
+
{... v.props}
|
|
139
|
+
uuid={v.uid}
|
|
140
|
+
coordinationScopes={v.coordinationScopes}
|
|
141
|
+
coordinationScopesBy={v.coordinationScopesBy}
|
|
142
|
+
theme={theme}
|
|
143
|
+
removeGridComponent={null}
|
|
144
|
+
// Props used by LinkControllerSubscriber:
|
|
145
|
+
viewTypes={viewTypes}
|
|
146
|
+
fileTypes={fileTypes}
|
|
147
|
+
coordinationTypes={coordinationTypes}
|
|
148
|
+
stores={stores}
|
|
149
|
+
/>
|
|
150
|
+
</ErrorBoundary>
|
|
147
151
|
</div>
|
|
148
152
|
)];
|
|
149
153
|
}));
|
|
@@ -157,19 +161,21 @@ export function VitessceGridLayout(props) {
|
|
|
157
161
|
};
|
|
158
162
|
return (
|
|
159
163
|
<div key={v.uid}>
|
|
160
|
-
<
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
164
|
+
<ErrorBoundary FallbackComponent={FallbackForView}>
|
|
165
|
+
<Component
|
|
166
|
+
{...v.props}
|
|
167
|
+
uuid={v.uid}
|
|
168
|
+
coordinationScopes={v.coordinationScopes}
|
|
169
|
+
coordinationScopesBy={v.coordinationScopesBy}
|
|
170
|
+
theme={theme}
|
|
171
|
+
removeGridComponent={removeGridComponent}
|
|
172
|
+
// Props used by LinkControllerSubscriber:
|
|
173
|
+
viewTypes={viewTypes}
|
|
174
|
+
fileTypes={fileTypes}
|
|
175
|
+
coordinationTypes={coordinationTypes}
|
|
176
|
+
stores={stores}
|
|
177
|
+
/>
|
|
178
|
+
</ErrorBoundary>
|
|
173
179
|
</div>
|
|
174
180
|
);
|
|
175
181
|
}), contextValue];
|