@vitessce/description 3.0.0 → 3.0.1
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
|
@@ -6116,8 +6116,6 @@ function Description(props) {
|
|
|
6116
6116
|
] }, layerIndex) : null)
|
|
6117
6117
|
] });
|
|
6118
6118
|
}
|
|
6119
|
-
const addUrl = () => {
|
|
6120
|
-
};
|
|
6121
6119
|
function DescriptionSubscriber(props) {
|
|
6122
6120
|
const {
|
|
6123
6121
|
coordinationScopes,
|
|
@@ -6135,7 +6133,6 @@ function DescriptionSubscriber(props) {
|
|
|
6135
6133
|
const [{ image }, imageStatus] = useImageData(
|
|
6136
6134
|
loaders,
|
|
6137
6135
|
dataset,
|
|
6138
|
-
addUrl,
|
|
6139
6136
|
false,
|
|
6140
6137
|
{},
|
|
6141
6138
|
{},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { describe, it, expect, afterEach } from 'vitest';
|
|
2
3
|
import '@testing-library/jest-dom';
|
|
3
4
|
import { cleanup, render, screen } from '@testing-library/react';
|
|
4
|
-
import { afterEach } from 'vitest';
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import Description from './Description.js';
|
|
7
7
|
afterEach(() => {
|
|
@@ -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":"AAUA;;;;;;;;;;GAUG;AACH;IAPyB,KAAK,EAAnB,MAAM;IACQ,kBAAkB,EAAhC,MAAM;IAEU,mBAAmB;IAErB,KAAK,EAAnB,MAAM;gBA4DhB"}
|
|
@@ -3,7 +3,6 @@ import React, { useMemo } from 'react';
|
|
|
3
3
|
import { TitleInfo, useReady, useCoordination, useLoaders, useDescription, useImageData, } from '@vitessce/vit-s';
|
|
4
4
|
import { ViewType, COMPONENT_COORDINATION_TYPES } from '@vitessce/constants-internal';
|
|
5
5
|
import Description from './Description.js';
|
|
6
|
-
const addUrl = () => { }; // noop
|
|
7
6
|
/**
|
|
8
7
|
* A subscriber component for a text description component.
|
|
9
8
|
* Also renders a table containing image metadata.
|
|
@@ -22,7 +21,7 @@ export function DescriptionSubscriber(props) {
|
|
|
22
21
|
const [{ dataset, spatialImageLayer: rasterLayers, }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType.DESCRIPTION], coordinationScopes);
|
|
23
22
|
// Get data from loaders using the data hooks.
|
|
24
23
|
const [description] = useDescription(loaders, dataset);
|
|
25
|
-
const [{ image }, imageStatus] = useImageData(loaders, dataset,
|
|
24
|
+
const [{ image }, imageStatus] = useImageData(loaders, dataset, false, {}, {}, {});
|
|
26
25
|
const { loaders: imageLayerLoaders = [], meta: imageLayerMeta = [] } = image || {};
|
|
27
26
|
const isReady = useReady([imageStatus]);
|
|
28
27
|
const metadata = useMemo(() => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitessce/description",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.1",
|
|
4
4
|
"author": "Gehlenborg Lab",
|
|
5
5
|
"homepage": "http://vitessce.io",
|
|
6
6
|
"repository": {
|
|
@@ -17,22 +17,22 @@
|
|
|
17
17
|
],
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@material-ui/core": "~4.12.3",
|
|
20
|
-
"@vitessce/constants-internal": "3.0.
|
|
21
|
-
"@vitessce/vit-s": "3.0.
|
|
20
|
+
"@vitessce/constants-internal": "3.0.1",
|
|
21
|
+
"@vitessce/vit-s": "3.0.1"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
+
"@testing-library/jest-dom": "^5.16.4",
|
|
25
|
+
"@testing-library/react": "^13.3.0",
|
|
24
26
|
"react": "^18.0.0",
|
|
25
27
|
"vite": "^4.3.0",
|
|
26
|
-
"vitest": "^0.
|
|
27
|
-
"@testing-library/jest-dom": "^5.16.4",
|
|
28
|
-
"@testing-library/react": "^13.3.0"
|
|
28
|
+
"vitest": "^0.32.2"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
31
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0"
|
|
32
32
|
},
|
|
33
33
|
"scripts": {
|
|
34
34
|
"bundle": "pnpm exec vite build -c ../../../scripts/vite.config.js",
|
|
35
|
-
"test": "pnpm exec vitest --run
|
|
35
|
+
"test": "pnpm exec vitest --run"
|
|
36
36
|
},
|
|
37
37
|
"module": "dist/index.js",
|
|
38
38
|
"exports": {
|
package/src/Description.test.jsx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { describe, it, expect, afterEach } from 'vitest';
|
|
1
2
|
import '@testing-library/jest-dom';
|
|
2
3
|
import { cleanup, render, screen } from '@testing-library/react';
|
|
3
|
-
import { afterEach } from 'vitest';
|
|
4
4
|
import React from 'react';
|
|
5
5
|
|
|
6
6
|
import Description from './Description.js';
|
|
@@ -8,8 +8,6 @@ import {
|
|
|
8
8
|
import { ViewType, COMPONENT_COORDINATION_TYPES } from '@vitessce/constants-internal';
|
|
9
9
|
import Description from './Description.js';
|
|
10
10
|
|
|
11
|
-
const addUrl = () => {}; // noop
|
|
12
|
-
|
|
13
11
|
/**
|
|
14
12
|
* A subscriber component for a text description component.
|
|
15
13
|
* Also renders a table containing image metadata.
|
|
@@ -41,7 +39,7 @@ export function DescriptionSubscriber(props) {
|
|
|
41
39
|
// Get data from loaders using the data hooks.
|
|
42
40
|
const [description] = useDescription(loaders, dataset);
|
|
43
41
|
const [{ image }, imageStatus] = useImageData(
|
|
44
|
-
loaders, dataset,
|
|
42
|
+
loaders, dataset, false, {}, {},
|
|
45
43
|
{}, // TODO: which properties to match on. Revisit after #830.
|
|
46
44
|
);
|
|
47
45
|
const { loaders: imageLayerLoaders = [], meta: imageLayerMeta = [] } = image || {};
|