@vitessce/description 3.3.1 → 3.3.2

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
@@ -6306,7 +6306,8 @@ function DescriptionSubscriber(props) {
6306
6306
  description: descriptionOverride,
6307
6307
  removeGridComponent,
6308
6308
  theme,
6309
- title = "Description"
6309
+ title = "Description",
6310
+ closeButtonVisible
6310
6311
  } = props;
6311
6312
  const loaders = useLoaders();
6312
6313
  const [{
@@ -6344,6 +6345,7 @@ function DescriptionSubscriber(props) {
6344
6345
  TitleInfo,
6345
6346
  {
6346
6347
  title,
6348
+ closeButtonVisible,
6347
6349
  removeGridComponent,
6348
6350
  isScroll: true,
6349
6351
  theme,
@@ -1 +1 @@
1
- {"version":3,"file":"DescriptionSubscriber.d.ts","sourceRoot":"","sources":["../src/DescriptionSubscriber.js"],"names":[],"mappings":"AAUA;;;;;;;;;;GAUG;AACH;IAPyB,KAAK,EAAnB,MAAM;IACQ,kBAAkB,EAAhC,MAAM;IAEU,mBAAmB;IAErB,KAAK,EAAnB,MAAM;gBA4DhB"}
1
+ {"version":3,"file":"DescriptionSubscriber.d.ts","sourceRoot":"","sources":["../src/DescriptionSubscriber.js"],"names":[],"mappings":"AAUA;;;;;;;;;;GAUG;AACH;IAPyB,KAAK,EAAnB,MAAM;IACQ,kBAAkB,EAAhC,MAAM;IAEU,mBAAmB;IAErB,KAAK,EAAnB,MAAM;gBA8DhB"}
@@ -15,7 +15,7 @@ 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, removeGridComponent, theme, title = 'Description', } = props;
18
+ const { coordinationScopes, description: descriptionOverride, removeGridComponent, theme, title = 'Description', closeButtonVisible, } = props;
19
19
  const loaders = useLoaders();
20
20
  // Get "props" from the coordination space.
21
21
  const [{ dataset, spatialImageLayer: rasterLayers, }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType.DESCRIPTION], coordinationScopes);
@@ -40,5 +40,5 @@ export function DescriptionSubscriber(props) {
40
40
  }
41
41
  return result;
42
42
  }, [rasterLayers, imageLayerMeta, imageLayerLoaders]);
43
- return (_jsx(TitleInfo, { title: title, removeGridComponent: removeGridComponent, isScroll: true, theme: theme, isReady: isReady, children: _jsx(Description, { description: descriptionOverride || description, metadata: metadata }) }));
43
+ return (_jsx(TitleInfo, { title: title, closeButtonVisible: closeButtonVisible, removeGridComponent: removeGridComponent, isScroll: true, theme: theme, isReady: isReady, children: _jsx(Description, { description: descriptionOverride || description, metadata: metadata }) }));
44
44
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitessce/description",
3
- "version": "3.3.1",
3
+ "version": "3.3.2",
4
4
  "author": "Gehlenborg Lab",
5
5
  "homepage": "http://vitessce.io",
6
6
  "repository": {
@@ -17,8 +17,8 @@
17
17
  ],
18
18
  "dependencies": {
19
19
  "@material-ui/core": "~4.12.3",
20
- "@vitessce/constants-internal": "3.3.1",
21
- "@vitessce/vit-s": "3.3.1"
20
+ "@vitessce/vit-s": "3.3.2",
21
+ "@vitessce/constants-internal": "3.3.2"
22
22
  },
23
23
  "devDependencies": {
24
24
  "@testing-library/jest-dom": "^5.16.4",
@@ -26,6 +26,7 @@ export function DescriptionSubscriber(props) {
26
26
  removeGridComponent,
27
27
  theme,
28
28
  title = 'Description',
29
+ closeButtonVisible,
29
30
  } = props;
30
31
 
31
32
  const loaders = useLoaders();
@@ -66,6 +67,7 @@ export function DescriptionSubscriber(props) {
66
67
  return (
67
68
  <TitleInfo
68
69
  title={title}
70
+ closeButtonVisible={closeButtonVisible}
69
71
  removeGridComponent={removeGridComponent}
70
72
  isScroll
71
73
  theme={theme}