@vitessce/vit-s 3.1.0 → 3.1.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
@@ -34850,16 +34850,16 @@ const AUTO_INDEPENDENT_COORDINATION_TYPES = [
34850
34850
  CoordinationType$1.EMBEDDING_OBS_RADIUS,
34851
34851
  CoordinationType$1.EMBEDDING_OBS_OPACITY
34852
34852
  ];
34853
- const note = "This file is regenerated by push-demo.sh.";
34854
- const version = "3.0.1";
34855
- const branch = "release-v3.0.1";
34856
- const date = "2023-06-30";
34857
- const hash = "8014e94f";
34853
+ const note = "This file is autogenerated by .changeset/post-changelog.mjs.";
34854
+ const version = "3.1.1";
34855
+ const date = "2023-08-02";
34856
+ const branch = "changeset-release/main";
34857
+ const hash = "0dbc5e39";
34858
34858
  const META_VERSION = {
34859
34859
  note,
34860
34860
  version,
34861
- branch,
34862
34861
  date,
34862
+ branch,
34863
34863
  hash
34864
34864
  };
34865
34865
  const ViewType = {
@@ -43044,7 +43044,12 @@ function VitS(props) {
43044
43044
  );
43045
43045
  const generateClassName2 = useMemo(() => createGenerateClassName(uid), [uid]);
43046
43046
  const configVersion = config2 == null ? void 0 : config2.version;
43047
- const configKey = (config2 == null ? void 0 : config2.uid) || config2;
43047
+ const configKey = useMemo(() => {
43048
+ if (config2 == null ? void 0 : config2.uid) {
43049
+ return config2.uid;
43050
+ }
43051
+ return JSON.stringify(config2);
43052
+ }, [config2]);
43048
43053
  const pluginSpecificConfigSchema = useMemo(() => buildConfigSchema(
43049
43054
  fileTypes,
43050
43055
  jointFileTypes,
@@ -1 +1 @@
1
- {"version":3,"file":"VitS.d.ts","sourceRoot":"","sources":["../src/VitS.js"],"names":[],"mappings":"AA8BA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH;IA7ByB,MAAM,EAApB,MAAM;IAGkB,SAAS,EAAjC,SAAS,GAAC,MAAM;IACF,MAAM,EAApB,MAAM;IACQ,KAAK,EAAnB,MAAM;IAEU,MAAM;IACN,cAAc;IAEd,cAAc;IAEf,cAAc,EAA7B,OAAO;IAIQ,sBAAsB,EAArC,OAAO;IAGY,GAAG,EAAtB,IAAI,GAAC,MAAM;IAGE,SAAS;IACT,SAAS;IACT,cAAc;IACd,iBAAiB;IACX,OAAO,EAA1B,IAAI,GAAC,MAAM;gBAkLrB"}
1
+ {"version":3,"file":"VitS.d.ts","sourceRoot":"","sources":["../src/VitS.js"],"names":[],"mappings":"AA8BA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH;IA7ByB,MAAM,EAApB,MAAM;IAGkB,SAAS,EAAjC,SAAS,GAAC,MAAM;IACF,MAAM,EAApB,MAAM;IACQ,KAAK,EAAnB,MAAM;IAEU,MAAM;IACN,cAAc;IAEd,cAAc;IAEf,cAAc,EAA7B,OAAO;IAIQ,sBAAsB,EAArC,OAAO;IAGY,GAAG,EAAtB,IAAI,GAAC,MAAM;IAGE,SAAS;IACT,SAAS;IACT,cAAc;IACd,iBAAiB;IACX,OAAO,EAA1B,IAAI,GAAC,MAAM;gBAyLrB"}
package/dist-tsc/VitS.js CHANGED
@@ -55,7 +55,14 @@ export function VitS(props) {
55
55
  // If config.uid exists, then use it for hook dependencies to detect changes
56
56
  // (controlled component case). If not, then use the config object itself
57
57
  // and assume the un-controlled component case.
58
- const configKey = config?.uid || config;
58
+ const configKey = useMemo(() => {
59
+ if (config?.uid) {
60
+ return config.uid;
61
+ }
62
+ // Stringify the config object so it can be used as a key
63
+ // Otherwise, the key will be [object Object]
64
+ return JSON.stringify(config);
65
+ }, [config]);
59
66
  const pluginSpecificConfigSchema = useMemo(() => buildConfigSchema(fileTypes, jointFileTypes, coordinationTypes, viewTypes), [viewTypes, fileTypes, jointFileTypes, coordinationTypes]);
60
67
  // Process the view config and memoize the result:
61
68
  // - Validate.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitessce/vit-s",
3
- "version": "3.1.0",
3
+ "version": "3.1.1",
4
4
  "author": "Gehlenborg Lab",
5
5
  "homepage": "http://vitessce.io",
6
6
  "repository": {
@@ -28,10 +28,10 @@
28
28
  "react-grid-layout-with-lodash": "^1.3.5",
29
29
  "uuid": "^9.0.0",
30
30
  "zustand": "^3.5.10",
31
- "@vitessce/constants-internal": "3.1.0",
32
- "@vitessce/plugins": "3.1.0",
33
- "@vitessce/schemas": "3.1.0",
34
- "@vitessce/utils": "3.1.0"
31
+ "@vitessce/constants-internal": "3.1.1",
32
+ "@vitessce/plugins": "3.1.1",
33
+ "@vitessce/schemas": "3.1.1",
34
+ "@vitessce/utils": "3.1.1"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@testing-library/jest-dom": "^5.16.4",
package/src/VitS.js CHANGED
@@ -98,7 +98,14 @@ export function VitS(props) {
98
98
  // If config.uid exists, then use it for hook dependencies to detect changes
99
99
  // (controlled component case). If not, then use the config object itself
100
100
  // and assume the un-controlled component case.
101
- const configKey = config?.uid || config;
101
+ const configKey = useMemo(() => {
102
+ if (config?.uid) {
103
+ return config.uid;
104
+ }
105
+ // Stringify the config object so it can be used as a key
106
+ // Otherwise, the key will be [object Object]
107
+ return JSON.stringify(config);
108
+ }, [config]);
102
109
 
103
110
  const pluginSpecificConfigSchema = useMemo(() => buildConfigSchema(
104
111
  fileTypes,