@vitessce/description 3.6.17 → 3.6.18
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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import React__default, { useContext, useRef, useMemo, createContext, forwardRef, createElement } from "react";
|
|
3
|
-
import { useLoaders, useCoordination, useDescription, useImageData, useReady, TitleInfo } from "@vitessce/vit-s";
|
|
3
|
+
import { useLoaders, useCoordinationScopes, useCoordination, useDescription, useImageData, useReady, TitleInfo } from "@vitessce/vit-s";
|
|
4
4
|
import * as ReactDOM from "react-dom";
|
|
5
5
|
const ViewType = {
|
|
6
6
|
DESCRIPTION: "description",
|
|
@@ -18767,7 +18767,7 @@ function Description(props) {
|
|
|
18767
18767
|
}
|
|
18768
18768
|
function DescriptionSubscriber(props) {
|
|
18769
18769
|
const {
|
|
18770
|
-
coordinationScopes,
|
|
18770
|
+
coordinationScopes: coordinationScopesRaw,
|
|
18771
18771
|
description: descriptionOverride,
|
|
18772
18772
|
descriptionType,
|
|
18773
18773
|
removeGridComponent,
|
|
@@ -18777,6 +18777,7 @@ function DescriptionSubscriber(props) {
|
|
|
18777
18777
|
helpText = ViewHelpMapping.DESCRIPTION
|
|
18778
18778
|
} = props;
|
|
18779
18779
|
const loaders = useLoaders();
|
|
18780
|
+
const coordinationScopes = useCoordinationScopes(coordinationScopesRaw);
|
|
18780
18781
|
const [{
|
|
18781
18782
|
dataset,
|
|
18782
18783
|
spatialImageLayer: rasterLayers
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DescriptionSubscriber.d.ts","sourceRoot":"","sources":["../src/DescriptionSubscriber.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DescriptionSubscriber.d.ts","sourceRoot":"","sources":["../src/DescriptionSubscriber.js"],"names":[],"mappings":"AAWA;;;;;;;;;;GAUG;AACH,6CAPG;IAAsB,KAAK,EAAnB,MAAM;IACQ,kBAAkB,EAAhC,MAAM;IAEU,mBAAmB;IAErB,KAAK,EAAnB,MAAM;CAChB,eAuEA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import React, { useMemo } from 'react';
|
|
3
|
-
import { TitleInfo, useReady, useCoordination, useLoaders, useDescription, useImageData, } from '@vitessce/vit-s';
|
|
3
|
+
import { TitleInfo, useReady, useCoordination, useLoaders, useDescription, useImageData, useCoordinationScopes, } from '@vitessce/vit-s';
|
|
4
4
|
import { ViewType, COMPONENT_COORDINATION_TYPES, ViewHelpMapping } from '@vitessce/constants-internal';
|
|
5
5
|
import Description from './Description.js';
|
|
6
6
|
/**
|
|
@@ -15,8 +15,9 @@ import Description from './Description.js';
|
|
|
15
15
|
* @param {string} props.title The component title.
|
|
16
16
|
*/
|
|
17
17
|
export function DescriptionSubscriber(props) {
|
|
18
|
-
const { coordinationScopes, description: descriptionOverride, descriptionType, removeGridComponent, theme, title = 'Description', closeButtonVisible, helpText = ViewHelpMapping.DESCRIPTION, } = props;
|
|
18
|
+
const { coordinationScopes: coordinationScopesRaw, description: descriptionOverride, descriptionType, removeGridComponent, theme, title = 'Description', closeButtonVisible, helpText = ViewHelpMapping.DESCRIPTION, } = props;
|
|
19
19
|
const loaders = useLoaders();
|
|
20
|
+
const coordinationScopes = useCoordinationScopes(coordinationScopesRaw);
|
|
20
21
|
// Get "props" from the coordination space.
|
|
21
22
|
const [{ dataset, spatialImageLayer: rasterLayers, }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType.DESCRIPTION], coordinationScopes);
|
|
22
23
|
// Get data from loaders using the data hooks.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitessce/description",
|
|
3
|
-
"version": "3.6.
|
|
3
|
+
"version": "3.6.18",
|
|
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.18",
|
|
21
|
+
"@vitessce/constants-internal": "3.6.18",
|
|
22
|
+
"@vitessce/vit-s": "3.6.18"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@testing-library/jest-dom": "^6.6.3",
|
|
@@ -4,6 +4,7 @@ import {
|
|
|
4
4
|
useReady,
|
|
5
5
|
useCoordination, useLoaders,
|
|
6
6
|
useDescription, useImageData,
|
|
7
|
+
useCoordinationScopes,
|
|
7
8
|
} from '@vitessce/vit-s';
|
|
8
9
|
import { ViewType, COMPONENT_COORDINATION_TYPES, ViewHelpMapping } from '@vitessce/constants-internal';
|
|
9
10
|
import Description from './Description.js';
|
|
@@ -21,7 +22,7 @@ import Description from './Description.js';
|
|
|
21
22
|
*/
|
|
22
23
|
export function DescriptionSubscriber(props) {
|
|
23
24
|
const {
|
|
24
|
-
coordinationScopes,
|
|
25
|
+
coordinationScopes: coordinationScopesRaw,
|
|
25
26
|
description: descriptionOverride,
|
|
26
27
|
descriptionType,
|
|
27
28
|
removeGridComponent,
|
|
@@ -32,6 +33,7 @@ export function DescriptionSubscriber(props) {
|
|
|
32
33
|
} = props;
|
|
33
34
|
|
|
34
35
|
const loaders = useLoaders();
|
|
36
|
+
const coordinationScopes = useCoordinationScopes(coordinationScopesRaw);
|
|
35
37
|
|
|
36
38
|
// Get "props" from the coordination space.
|
|
37
39
|
const [{
|