@vitessce/description 3.6.6 → 3.6.8
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
|
@@ -18782,7 +18782,7 @@ function DescriptionSubscriber(props) {
|
|
|
18782
18782
|
spatialImageLayer: rasterLayers
|
|
18783
18783
|
}] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType.DESCRIPTION], coordinationScopes);
|
|
18784
18784
|
const [description] = useDescription(loaders, dataset);
|
|
18785
|
-
const [{ image: image2 }, imageStatus] = useImageData(
|
|
18785
|
+
const [{ image: image2 }, imageStatus, imageUrls, imageError] = useImageData(
|
|
18786
18786
|
loaders,
|
|
18787
18787
|
dataset,
|
|
18788
18788
|
false,
|
|
@@ -18791,6 +18791,9 @@ function DescriptionSubscriber(props) {
|
|
|
18791
18791
|
{}
|
|
18792
18792
|
// TODO: which properties to match on. Revisit after #830.
|
|
18793
18793
|
);
|
|
18794
|
+
const errors = [
|
|
18795
|
+
imageError
|
|
18796
|
+
];
|
|
18794
18797
|
const { loaders: imageLayerLoaders = [], meta: imageLayerMeta = [] } = image2 || {};
|
|
18795
18798
|
const isReady = useReady([imageStatus]);
|
|
18796
18799
|
const metadata = useMemo(() => {
|
|
@@ -18817,7 +18820,8 @@ function DescriptionSubscriber(props) {
|
|
|
18817
18820
|
isScroll: true,
|
|
18818
18821
|
theme,
|
|
18819
18822
|
isReady,
|
|
18820
|
-
helpText
|
|
18823
|
+
helpText,
|
|
18824
|
+
errors
|
|
18821
18825
|
},
|
|
18822
18826
|
/* @__PURE__ */ React__default.createElement(
|
|
18823
18827
|
Description,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DescriptionSubscriber.d.ts","sourceRoot":"","sources":["../src/DescriptionSubscriber.js"],"names":[],"mappings":"AAUA;;;;;;;;;;GAUG;AACH,6CAPG;IAAsB,KAAK,EAAnB,MAAM;IACQ,kBAAkB,EAAhC,MAAM;IAEU,mBAAmB;IAErB,KAAK,EAAnB,MAAM;CAChB,
|
|
1
|
+
{"version":3,"file":"DescriptionSubscriber.d.ts","sourceRoot":"","sources":["../src/DescriptionSubscriber.js"],"names":[],"mappings":"AAUA;;;;;;;;;;GAUG;AACH,6CAPG;IAAsB,KAAK,EAAnB,MAAM;IACQ,kBAAkB,EAAhC,MAAM;IAEU,mBAAmB;IAErB,KAAK,EAAnB,MAAM;CAChB,eAsEA"}
|
|
@@ -21,7 +21,11 @@ export function DescriptionSubscriber(props) {
|
|
|
21
21
|
const [{ dataset, spatialImageLayer: rasterLayers, }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType.DESCRIPTION], coordinationScopes);
|
|
22
22
|
// Get data from loaders using the data hooks.
|
|
23
23
|
const [description] = useDescription(loaders, dataset);
|
|
24
|
-
|
|
24
|
+
// eslint-disable-next-line no-unused-vars
|
|
25
|
+
const [{ image }, imageStatus, imageUrls, imageError] = useImageData(loaders, dataset, false, {}, {}, {});
|
|
26
|
+
const errors = [
|
|
27
|
+
imageError,
|
|
28
|
+
];
|
|
25
29
|
const { loaders: imageLayerLoaders = [], meta: imageLayerMeta = [] } = image || {};
|
|
26
30
|
const isReady = useReady([imageStatus]);
|
|
27
31
|
const metadata = useMemo(() => {
|
|
@@ -40,5 +44,5 @@ export function DescriptionSubscriber(props) {
|
|
|
40
44
|
}
|
|
41
45
|
return result;
|
|
42
46
|
}, [rasterLayers, imageLayerMeta, imageLayerLoaders]);
|
|
43
|
-
return (_jsx(TitleInfo, { title: title, closeButtonVisible: closeButtonVisible, removeGridComponent: removeGridComponent, isScroll: true, theme: theme, isReady: isReady, helpText: helpText, children: _jsx(Description, { description: descriptionOverride || description, descriptionType: descriptionType, metadata: metadata }) }));
|
|
47
|
+
return (_jsx(TitleInfo, { title: title, closeButtonVisible: closeButtonVisible, removeGridComponent: removeGridComponent, isScroll: true, theme: theme, isReady: isReady, helpText: helpText, errors: errors, children: _jsx(Description, { description: descriptionOverride || description, descriptionType: descriptionType, metadata: metadata }) }));
|
|
44
48
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitessce/description",
|
|
3
|
-
"version": "3.6.
|
|
3
|
+
"version": "3.6.8",
|
|
4
4
|
"author": "HIDIVE Lab at HMS",
|
|
5
5
|
"homepage": "http://vitessce.io",
|
|
6
6
|
"repository": {
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
],
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"react-markdown": "^9.0.1",
|
|
20
|
-
"@vitessce/styles": "3.6.
|
|
21
|
-
"@vitessce/constants-internal": "3.6.
|
|
22
|
-
"@vitessce/vit-s": "3.6.
|
|
20
|
+
"@vitessce/styles": "3.6.8",
|
|
21
|
+
"@vitessce/constants-internal": "3.6.8",
|
|
22
|
+
"@vitessce/vit-s": "3.6.8"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@testing-library/jest-dom": "^6.6.3",
|
|
@@ -41,10 +41,14 @@ export function DescriptionSubscriber(props) {
|
|
|
41
41
|
|
|
42
42
|
// Get data from loaders using the data hooks.
|
|
43
43
|
const [description] = useDescription(loaders, dataset);
|
|
44
|
-
|
|
44
|
+
// eslint-disable-next-line no-unused-vars
|
|
45
|
+
const [{ image }, imageStatus, imageUrls, imageError] = useImageData(
|
|
45
46
|
loaders, dataset, false, {}, {},
|
|
46
47
|
{}, // TODO: which properties to match on. Revisit after #830.
|
|
47
48
|
);
|
|
49
|
+
const errors = [
|
|
50
|
+
imageError,
|
|
51
|
+
];
|
|
48
52
|
const { loaders: imageLayerLoaders = [], meta: imageLayerMeta = [] } = image || {};
|
|
49
53
|
|
|
50
54
|
const isReady = useReady([imageStatus]);
|
|
@@ -75,6 +79,7 @@ export function DescriptionSubscriber(props) {
|
|
|
75
79
|
theme={theme}
|
|
76
80
|
isReady={isReady}
|
|
77
81
|
helpText={helpText}
|
|
82
|
+
errors={errors}
|
|
78
83
|
>
|
|
79
84
|
<Description
|
|
80
85
|
description={descriptionOverride || description}
|