@haniffalab/cherita-react 1.3.0 → 1.3.1-dev.2025-10-29.6de4119f

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.
Files changed (137) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/components/controls/Controls.js +38 -30
  3. package/dist/cjs/components/dotplot/Dotplot.js +85 -57
  4. package/dist/cjs/components/dotplot/DotplotControls.js +103 -83
  5. package/dist/cjs/components/full-page/FullPage.js +167 -114
  6. package/dist/cjs/components/full-page/PlotAlert.js +45 -0
  7. package/dist/cjs/components/full-page/PlotTypeSelector.js +102 -0
  8. package/dist/cjs/components/heatmap/Heatmap.js +83 -53
  9. package/dist/cjs/components/heatmap/HeatmapControls.js +6 -3
  10. package/dist/cjs/components/icons/DotPlotIcon.js +64 -0
  11. package/dist/cjs/components/icons/HeatmapIcon.js +45 -0
  12. package/dist/cjs/components/icons/MatrixPlotIcon.1.js +57 -0
  13. package/dist/cjs/components/icons/MatrixPlotIcon.js +59 -0
  14. package/dist/cjs/components/icons/ScatterplotIcon.1.js +164 -0
  15. package/dist/cjs/components/icons/ScatterplotIcon.js +144 -0
  16. package/dist/cjs/components/icons/ViolinPlotIcon.js +42 -0
  17. package/dist/cjs/components/matrixplot/Matrixplot.js +83 -54
  18. package/dist/cjs/components/matrixplot/MatrixplotControls.js +8 -5
  19. package/dist/cjs/components/obs-list/ObsItem.js +305 -216
  20. package/dist/cjs/components/obs-list/ObsList.js +164 -128
  21. package/dist/cjs/components/obs-list/ObsToolbar.js +2 -3
  22. package/dist/cjs/components/obsm-list/ObsmList.js +67 -28
  23. package/dist/cjs/components/offcanvas/index.js +62 -27
  24. package/dist/cjs/components/pseudospatial/Pseudospatial.js +132 -76
  25. package/dist/cjs/components/pseudospatial/PseudospatialToolbar.js +122 -74
  26. package/dist/cjs/components/scatterplot/Scatterplot.js +223 -175
  27. package/dist/cjs/components/scatterplot/ScatterplotControls.js +45 -31
  28. package/dist/cjs/components/scatterplot/SpatialControls.js +143 -116
  29. package/dist/cjs/components/scatterplot/Toolbox.js +41 -30
  30. package/dist/cjs/components/search-bar/SearchBar.js +176 -120
  31. package/dist/cjs/components/search-bar/SearchInfo.js +79 -85
  32. package/dist/cjs/components/search-bar/SearchResults.js +93 -71
  33. package/dist/cjs/components/toolbar/Toolbar.js +111 -0
  34. package/dist/cjs/components/var-list/VarItem.js +131 -103
  35. package/dist/cjs/components/var-list/VarList.js +96 -74
  36. package/dist/cjs/components/var-list/VarListToolbar.js +59 -54
  37. package/dist/cjs/components/var-list/VarSet.js +126 -108
  38. package/dist/cjs/components/violin/Violin.js +124 -81
  39. package/dist/cjs/components/violin/ViolinControls.js +8 -5
  40. package/dist/cjs/constants/colorscales.js +19 -19
  41. package/dist/cjs/constants/constants.js +54 -39
  42. package/dist/cjs/context/DatasetContext.js +27 -17
  43. package/dist/cjs/context/FilterContext.js +11 -9
  44. package/dist/cjs/context/SettingsContext.js +339 -125
  45. package/dist/cjs/context/ZarrDataContext.js +6 -5
  46. package/dist/cjs/helpers/color-helper.js +2 -2
  47. package/dist/cjs/helpers/map-helper.js +2 -1
  48. package/dist/cjs/helpers/zarr-helper.js +3 -3
  49. package/dist/cjs/index.js +15 -21
  50. package/dist/cjs/utils/Filter.js +16 -11
  51. package/dist/cjs/utils/Histogram.js +35 -33
  52. package/dist/cjs/utils/ImageViewer.js +11 -8
  53. package/dist/cjs/utils/Legend.js +37 -30
  54. package/dist/cjs/utils/LoadingIndicators.js +15 -13
  55. package/dist/cjs/utils/Resolver.js +213 -0
  56. package/dist/cjs/utils/Skeleton.js +10 -10
  57. package/dist/cjs/utils/StyledTooltip.js +44 -0
  58. package/dist/cjs/utils/VirtualizedList.js +36 -29
  59. package/dist/cjs/utils/errors.js +15 -15
  60. package/dist/cjs/utils/requests.js +21 -9
  61. package/dist/cjs/utils/search.js +4 -4
  62. package/dist/cjs/utils/string.js +6 -6
  63. package/dist/cjs/utils/zarrData.js +20 -21
  64. package/dist/css/cherita.css +188 -65
  65. package/dist/css/cherita.css.map +1 -1
  66. package/dist/esm/components/controls/Controls.js +43 -35
  67. package/dist/esm/components/dotplot/Dotplot.js +93 -64
  68. package/dist/esm/components/dotplot/DotplotControls.js +106 -85
  69. package/dist/esm/components/full-page/FullPage.js +180 -124
  70. package/dist/esm/components/full-page/PlotAlert.js +39 -0
  71. package/dist/esm/components/full-page/PlotTypeSelector.js +95 -0
  72. package/dist/esm/components/heatmap/Heatmap.js +91 -60
  73. package/dist/esm/components/heatmap/HeatmapControls.js +8 -4
  74. package/dist/esm/components/icons/DotPlotIcon.js +58 -0
  75. package/dist/esm/components/icons/HeatmapIcon.js +39 -0
  76. package/dist/esm/components/icons/MatrixPlotIcon.1.js +51 -0
  77. package/dist/esm/components/icons/MatrixPlotIcon.js +53 -0
  78. package/dist/esm/components/icons/ScatterplotIcon.1.js +158 -0
  79. package/dist/esm/components/icons/ScatterplotIcon.js +138 -0
  80. package/dist/esm/components/icons/ViolinPlotIcon.js +36 -0
  81. package/dist/esm/components/matrixplot/Matrixplot.js +91 -61
  82. package/dist/esm/components/matrixplot/MatrixplotControls.js +10 -6
  83. package/dist/esm/components/obs-list/ObsItem.js +320 -228
  84. package/dist/esm/components/obs-list/ObsList.js +179 -142
  85. package/dist/esm/components/obs-list/ObsToolbar.js +3 -3
  86. package/dist/esm/components/obsm-list/ObsmList.js +71 -32
  87. package/dist/esm/components/offcanvas/index.js +68 -33
  88. package/dist/esm/components/pseudospatial/Pseudospatial.js +145 -88
  89. package/dist/esm/components/pseudospatial/PseudospatialToolbar.js +127 -78
  90. package/dist/esm/components/scatterplot/Scatterplot.js +243 -194
  91. package/dist/esm/components/scatterplot/ScatterplotControls.js +50 -35
  92. package/dist/esm/components/scatterplot/SpatialControls.js +155 -127
  93. package/dist/esm/components/scatterplot/Toolbox.js +44 -32
  94. package/dist/esm/components/search-bar/SearchBar.js +187 -130
  95. package/dist/esm/components/search-bar/SearchInfo.js +86 -91
  96. package/dist/esm/components/search-bar/SearchResults.js +100 -77
  97. package/dist/esm/components/toolbar/Toolbar.js +101 -0
  98. package/dist/esm/components/var-list/VarItem.js +142 -113
  99. package/dist/esm/components/var-list/VarList.js +108 -88
  100. package/dist/esm/components/var-list/VarListToolbar.js +64 -58
  101. package/dist/esm/components/var-list/VarSet.js +134 -115
  102. package/dist/esm/components/violin/Violin.js +135 -91
  103. package/dist/esm/components/violin/ViolinControls.js +10 -6
  104. package/dist/esm/constants/colorscales.js +19 -19
  105. package/dist/esm/constants/constants.js +53 -38
  106. package/dist/esm/context/DatasetContext.js +34 -23
  107. package/dist/esm/context/FilterContext.js +11 -8
  108. package/dist/esm/context/SettingsContext.js +341 -126
  109. package/dist/esm/context/ZarrDataContext.js +8 -6
  110. package/dist/esm/helpers/color-helper.js +5 -5
  111. package/dist/esm/helpers/map-helper.js +4 -3
  112. package/dist/esm/helpers/zarr-helper.js +6 -6
  113. package/dist/esm/index.js +22 -22
  114. package/dist/esm/utils/Filter.js +22 -17
  115. package/dist/esm/utils/Histogram.js +39 -37
  116. package/dist/esm/utils/ImageViewer.js +12 -8
  117. package/dist/esm/utils/Legend.js +44 -36
  118. package/dist/esm/utils/LoadingIndicators.js +16 -13
  119. package/dist/esm/utils/Resolver.js +201 -0
  120. package/dist/esm/utils/Skeleton.js +11 -10
  121. package/dist/esm/utils/StyledTooltip.js +38 -0
  122. package/dist/esm/utils/VirtualizedList.js +37 -29
  123. package/dist/esm/utils/errors.js +15 -15
  124. package/dist/esm/utils/requests.js +24 -12
  125. package/dist/esm/utils/search.js +7 -7
  126. package/dist/esm/utils/string.js +7 -7
  127. package/dist/esm/utils/zarrData.js +27 -28
  128. package/package.json +24 -10
  129. package/scss/cherita-bootstrap.scss +2 -2
  130. package/scss/cherita.scss +65 -17
  131. package/scss/components/accordions.scss +15 -2
  132. package/scss/components/layouts.scss +116 -30
  133. package/scss/components/lists.scss +16 -5
  134. package/scss/components/plotly.scss +40 -23
  135. package/scss/components/plots.scss +14 -1
  136. package/dist/cjs/components/full-page/FullPagePseudospatial.js +0 -157
  137. package/dist/esm/components/full-page/FullPagePseudospatial.js +0 -149
@@ -1,22 +1,22 @@
1
1
  // From plotly https://github.com/plotly/plotly.js/blob/5bc25b490702e5ed61265207833dbd58e8ab27f1/src/components/colorscale/scales.js
2
2
  export const COLORSCALES = {
3
- Greys: ["#000000", "#ffffff"],
4
- YlGnBu: ["#081d58", "#253494", "#225ea8", "#1d91c0", "#41b6c4", "#7fcdbb", "#c7e9b4", "#edf8d9", "#ffffd9"],
5
- Greens: ["#00441b", "#006d2c", "#238b45", "#41ab5d", "#74c476", "#a1d9a5", "#c7e9c0", "#e5f5e0", "#f7fcf5"],
6
- YlOrRd: ["#800026", "#bd0026", "#e31a1c", "#fc4e2a", "#fd8d3c", "#feb24c", "#fed976", "#ffed9f", "#ffffcc"],
7
- Bluered: ["#0000ff", "#ff0000"],
8
- RdBu: ["#050aac", "#6a89f7", "#bebebe", "#dcaa84", "#e6915a", "#b20a1c"],
9
- Reds: ["#dcdcdc", "#f5c39d", "#f5a069", "#b20a1c"],
10
- Blues: ["#050aac", "#283cba", "#4664f5", "#5a78f5", "#6a89f7", "#dcdcdc"],
11
- Picnic: ["#0000ff", "#3399ff", "#66ccff", "#99ccff", "#ccccff", "#ffffff", "#ffccff", "#ff99ff", "#ff66cc", "#ff6666", "#ff0000"],
12
- Rainbow: ["#96005a", "#0000c8", "#0019ff", "#0098ff", "#2cff96", "#97ff00", "#ffe600", "#ff6f00", "#ff0000"],
13
- Portland: ["#0c3383", "#0a88ba", "#f2d338", "#f28f38", "#d91e1e"],
14
- Jet: ["#000083", "#003caa", "#05ffff", "#ffff00", "#fa0000", "#800000"],
15
- Hot: ["#000000", "#e60000", "#ffd200", "#ffffff"],
16
- Blackbody: ["#000000", "#e60000", "#e6d200", "#ffffff", "#a0c8ff"],
17
- Earth: ["#000082", "#00b4b4", "#28d228", "#e6e632", "#784614", "#ffffff"],
18
- Electric: ["#000000", "#1e0064", "#780064", "#a05a00", "#e6c800", "#fffadc"],
19
- Viridis: ["#440154", "#48186a", "#472d7b", "#424086", "#3b528b", "#33638d", "#2c728e", "#26828e", "#21918c", "#1fa088", "#28ae80", "#3fbc73", "#5ec962", "#84d44b", "#addc30", "#d8e219", "#fde725"],
20
- Cividis: ["#00204c", "#002a66", "#00346e", "#273f6c", "#3c4a6c", "#4c556b", "#5b5f6d", "#686a70", "#757575", "#838178", "#929c78", "#a19676", "#b0a572", "#c0af6d", "#d1ba65", "#e1c75c", "#f3db4f", "#ffe945"],
21
- Accent: ["#7fc97f", "#beaed4", "#fdc086", "#ffff99", "#386cb0", "#f0027f", "#bf5b17", "#666666"]
3
+ Greys: ['#000000', '#ffffff'],
4
+ YlGnBu: ['#081d58', '#253494', '#225ea8', '#1d91c0', '#41b6c4', '#7fcdbb', '#c7e9b4', '#edf8d9', '#ffffd9'],
5
+ Greens: ['#00441b', '#006d2c', '#238b45', '#41ab5d', '#74c476', '#a1d9a5', '#c7e9c0', '#e5f5e0', '#f7fcf5'],
6
+ YlOrRd: ['#800026', '#bd0026', '#e31a1c', '#fc4e2a', '#fd8d3c', '#feb24c', '#fed976', '#ffed9f', '#ffffcc'],
7
+ Bluered: ['#0000ff', '#ff0000'],
8
+ RdBu: ['#050aac', '#6a89f7', '#bebebe', '#dcaa84', '#e6915a', '#b20a1c'],
9
+ Reds: ['#dcdcdc', '#f5c39d', '#f5a069', '#b20a1c'],
10
+ Blues: ['#050aac', '#283cba', '#4664f5', '#5a78f5', '#6a89f7', '#dcdcdc'],
11
+ Picnic: ['#0000ff', '#3399ff', '#66ccff', '#99ccff', '#ccccff', '#ffffff', '#ffccff', '#ff99ff', '#ff66cc', '#ff6666', '#ff0000'],
12
+ Rainbow: ['#96005a', '#0000c8', '#0019ff', '#0098ff', '#2cff96', '#97ff00', '#ffe600', '#ff6f00', '#ff0000'],
13
+ Portland: ['#0c3383', '#0a88ba', '#f2d338', '#f28f38', '#d91e1e'],
14
+ Jet: ['#000083', '#003caa', '#05ffff', '#ffff00', '#fa0000', '#800000'],
15
+ Hot: ['#000000', '#e60000', '#ffd200', '#ffffff'],
16
+ Blackbody: ['#000000', '#e60000', '#e6d200', '#ffffff', '#a0c8ff'],
17
+ Earth: ['#000082', '#00b4b4', '#28d228', '#e6e632', '#784614', '#ffffff'],
18
+ Electric: ['#000000', '#1e0064', '#780064', '#a05a00', '#e6c800', '#fffadc'],
19
+ Viridis: ['#440154', '#48186a', '#472d7b', '#424086', '#3b528b', '#33638d', '#2c728e', '#26828e', '#21918c', '#1fa088', '#28ae80', '#3fbc73', '#5ec962', '#84d44b', '#addc30', '#d8e219', '#fde725'],
20
+ Cividis: ['#00204c', '#002a66', '#00346e', '#273f6c', '#3c4a6c', '#4c556b', '#5b5f6d', '#686a70', '#757575', '#838178', '#929c78', '#a19676', '#b0a572', '#c0af6d', '#d1ba65', '#e1c75c', '#f3db4f', '#ffe945'],
21
+ Accent: ['#7fc97f', '#beaed4', '#fdc086', '#ffff99', '#386cb0', '#f0027f', '#bf5b17', '#666666']
22
22
  };
@@ -1,88 +1,103 @@
1
- export const LOCAL_STORAGE_KEY = "CHERITA";
1
+ export const LOCAL_STORAGE_KEY = 'CHERITA';
2
+ export const PLOT_TYPES = {
3
+ SCATTERPLOT: 'scatterplot',
4
+ DOTPLOT: 'dotplot',
5
+ HEATMAP: 'heatmap',
6
+ MATRIXPLOT: 'matrixplot',
7
+ VIOLINPLOT: 'violinplot'
8
+ };
2
9
  export const COLOR_ENCODINGS = {
3
- VAR: "var",
4
- OBS: "obs"
10
+ VAR: 'var',
11
+ OBS: 'obs'
5
12
  };
6
13
  export const OBS_TYPES = {
7
- CATEGORICAL: "categorical",
8
- DISCRETE: "discrete",
9
- CONTINUOUS: "continuous",
10
- BOOLEAN: "boolean"
14
+ CATEGORICAL: 'categorical',
15
+ DISCRETE: 'discrete',
16
+ CONTINUOUS: 'continuous',
17
+ BOOLEAN: 'boolean'
11
18
  };
12
19
  export const VAR_SORT = {
13
20
  NONE: null,
14
- NAME: "name",
15
- MATRIX: "matrix"
21
+ NAME: 'name',
22
+ MATRIX: 'matrix'
16
23
  };
17
24
  export const VAR_SORT_ORDER = {
18
- ASC: "asc",
19
- DESC: "desc"
25
+ ASC: 'asc',
26
+ DESC: 'desc'
20
27
  };
21
28
  export const SELECTED_POLYGON_FILLCOLOR = [107, 170, 209, 255 / 2];
22
29
  export const UNSELECTED_POLYGON_FILLCOLOR = [167, 191, 211, 255 / 3];
23
30
  export const SELECTION_MODES = {
24
- SINGLE: "single",
25
- MULTIPLE: "multiple"
31
+ SINGLE: 'single',
32
+ MULTIPLE: 'multiple'
26
33
  };
27
34
  export const VIOLIN_MODES = {
28
- MULTIKEY: "multikey",
29
- GROUPBY: "groupby"
35
+ MULTIKEY: 'multikey',
36
+ GROUPBY: 'groupby'
30
37
  };
31
38
  export const MATRIXPLOT_SCALES = {
32
39
  NONE: {
33
40
  value: null,
34
- name: "None"
41
+ name: 'None'
35
42
  },
36
43
  GROUP: {
37
- value: "group",
38
- name: "Group"
44
+ value: 'group',
45
+ name: 'Group'
39
46
  },
40
47
  VAR: {
41
- value: "var",
42
- name: "Var"
48
+ value: 'var',
49
+ name: 'Var'
43
50
  }
44
51
  };
45
52
  export const DOTPLOT_SCALES = {
46
53
  NONE: {
47
54
  value: null,
48
- name: "None"
55
+ name: 'None'
49
56
  },
50
57
  GROUP: {
51
- value: "group",
52
- name: "Group"
58
+ value: 'group',
59
+ name: 'Group'
53
60
  },
54
61
  VAR: {
55
- value: "var",
56
- name: "Var"
62
+ value: 'var',
63
+ name: 'Var'
57
64
  }
58
65
  };
59
66
  export const VIOLINPLOT_SCALES = {
60
67
  WIDTH: {
61
- value: "width",
62
- name: "Width"
68
+ value: 'width',
69
+ name: 'Width'
63
70
  },
64
71
  COUNT: {
65
- value: "count",
66
- name: "Count"
72
+ value: 'count',
73
+ name: 'Count'
67
74
  }
68
75
  };
69
76
  export const PSEUDOSPATIAL_PLOT_TYPES = {
70
- GENE: "gene",
71
- CATEGORICAL: "categorical",
72
- CONTINUOUS: "continuous",
73
- MASKS: "masks"
77
+ GENE: 'gene',
78
+ CATEGORICAL: 'categorical',
79
+ CONTINUOUS: 'continuous',
80
+ MASKS: 'masks'
74
81
  };
75
82
  export const PSEUDOSPATIAL_CATEGORICAL_MODES = {
76
83
  ACROSS: {
77
- value: "across",
78
- name: "% across sections"
84
+ value: 'across',
85
+ name: '% across sections'
79
86
  },
80
87
  WITHIN: {
81
- value: "within",
82
- name: "% within section"
88
+ value: 'within',
89
+ name: '% within section'
83
90
  }
84
91
  };
85
92
 
86
93
  // `default` cols to be shown out of accordion, at top of obslist
87
94
  // default values from cellxgene schema
88
- export const DEFAULT_OBS_GROUP = ["assay", "cell_type", "development_stage", "disease", "donor_id", "organism", "self_reported_ethnicity", "sex", "suspension_type", "tissue", "tissue_type"];
95
+ export const DEFAULT_OBS_GROUP = ['assay', 'cell_type', 'development_stage', 'disease', 'donor_id', 'organism', 'self_reported_ethnicity', 'sex', 'suspension_type', 'tissue', 'tissue_type'];
96
+ export const PLOTLY_MODEBAR_BUTTONS = ['toImage', 'zoom2d', 'pan2d', 'zoomIn2d', 'zoomOut2d', 'autoScale2d', 'resetScale2d'];
97
+ export const BREAKPOINTS = {
98
+ LG: '(max-width: 991.98px)',
99
+ XL: '(max-width: 1199.98px)'
100
+ };
101
+
102
+ // In order of priority
103
+ export const DEFAULT_OBSM_KEYS = ['x_umap', 'x_tsne', 'x_scvi', 'x_pca'];
@@ -6,14 +6,15 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
6
6
  function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
7
  function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
8
8
  function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
9
- import React, { createContext, useContext } from "react";
10
- import { createSyncStoragePersister } from "@tanstack/query-sync-storage-persister";
11
- import { QueryClient, QueryCache } from "@tanstack/react-query";
12
- import { PersistQueryClientProvider } from "@tanstack/react-query-persist-client";
13
- import _ from "lodash";
14
- import { FilterProvider } from "./FilterContext";
15
- import { SettingsProvider } from "./SettingsContext";
16
- import { ZarrDataProvider } from "./ZarrDataContext";
9
+ import { createContext, useContext } from 'react';
10
+ import { createSyncStoragePersister } from '@tanstack/query-sync-storage-persister';
11
+ import { QueryClient, QueryCache } from '@tanstack/react-query';
12
+ import { PersistQueryClientProvider } from '@tanstack/react-query-persist-client';
13
+ import _ from 'lodash';
14
+ import { FilterProvider } from './FilterContext';
15
+ import { SettingsProvider } from './SettingsContext';
16
+ import { ZarrDataProvider } from './ZarrDataContext';
17
+ import { jsx as _jsx } from "react/jsx-runtime";
17
18
  export const DatasetContext = /*#__PURE__*/createContext(null);
18
19
  const queryClient = new QueryClient({
19
20
  defaultOptions: {
@@ -33,7 +34,7 @@ const queryClient = new QueryClient({
33
34
  })
34
35
  });
35
36
  // Type of queries to store responses
36
- const persistKeys = ["obs/cols", "var/names", "obsm/keys", "obs/bins", "obs/distribution"];
37
+ const persistKeys = ['obs/cols', 'var/names', 'obsm/keys', 'obs/bins', 'obs/distribution'];
37
38
  const persistOptions = {
38
39
  persister: createSyncStoragePersister({
39
40
  storage: window.localStorage
@@ -44,13 +45,14 @@ const persistOptions = {
44
45
  queryKey,
45
46
  state
46
47
  } = _ref;
47
- if (state.status === "success") {
48
+ if (state.status === 'success') {
48
49
  return persistKeys.includes(queryKey === null || queryKey === void 0 ? void 0 : queryKey[0]);
49
50
  }
50
51
  return false;
51
52
  }
52
- }
53
- // @TODO: add maxAge and buster (app and api version numbers as busters)
53
+ },
54
+ buster: "1.3.1-dev.2025-10-29.6de4119f" || '0.0.0'
55
+ // @TODO: add maxAge and api version numbers as buster
54
56
  };
55
57
  const initialDataset = {
56
58
  url: null,
@@ -59,7 +61,9 @@ const initialDataset = {
59
61
  obsGroups: null,
60
62
  imageUrl: null,
61
63
  defaultSettings: {},
62
- canOverrideSettings: true
64
+ canOverrideSettings: true,
65
+ useUnsColors: false,
66
+ isPseudospatial: false
63
67
  };
64
68
  export function DatasetProvider(_ref2) {
65
69
  let {
@@ -70,16 +74,23 @@ export function DatasetProvider(_ref2) {
70
74
  const dataset = _.assign(initialDataset, _objectSpread({
71
75
  url: dataset_url
72
76
  }, dataset_params));
73
- return /*#__PURE__*/React.createElement(DatasetContext.Provider, {
74
- value: dataset
75
- }, /*#__PURE__*/React.createElement(SettingsProvider, {
76
- dataset_url: dataset.url,
77
- defaultSettings: dataset.defaultSettings,
78
- canOverrideSettings: dataset.canOverrideSettings
79
- }, /*#__PURE__*/React.createElement(PersistQueryClientProvider, {
80
- client: queryClient,
81
- persistOptions: persistOptions
82
- }, /*#__PURE__*/React.createElement(FilterProvider, null, /*#__PURE__*/React.createElement(ZarrDataProvider, null, children)))));
77
+ return /*#__PURE__*/_jsx(DatasetContext.Provider, {
78
+ value: dataset,
79
+ children: /*#__PURE__*/_jsx(PersistQueryClientProvider, {
80
+ client: queryClient,
81
+ persistOptions: persistOptions,
82
+ children: /*#__PURE__*/_jsx(SettingsProvider, {
83
+ dataset_url: dataset.url,
84
+ defaultSettings: dataset.defaultSettings,
85
+ canOverrideSettings: dataset.canOverrideSettings,
86
+ children: /*#__PURE__*/_jsx(FilterProvider, {
87
+ children: /*#__PURE__*/_jsx(ZarrDataProvider, {
88
+ children: children
89
+ })
90
+ })
91
+ })
92
+ })
93
+ });
83
94
  }
84
95
  export function useDataset() {
85
96
  return useContext(DatasetContext);
@@ -3,7 +3,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
3
3
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
4
4
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
5
5
  function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
6
- import React, { useReducer, createContext, useContext } from "react";
6
+ import { useReducer, createContext, useContext } from 'react';
7
+ import { jsx as _jsx } from "react/jsx-runtime";
7
8
  export const FilteredDataContext = /*#__PURE__*/createContext(null);
8
9
  export const FilteredDataDispatchContext = /*#__PURE__*/createContext(null);
9
10
  const initialFilterData = {
@@ -18,11 +19,13 @@ export function FilterProvider(_ref) {
18
19
  children
19
20
  } = _ref;
20
21
  const [filteredData, dispatch] = useReducer(filterReducer, _objectSpread({}, initialFilterData));
21
- return /*#__PURE__*/React.createElement(FilteredDataContext.Provider, {
22
- value: filteredData
23
- }, /*#__PURE__*/React.createElement(FilteredDataDispatchContext.Provider, {
24
- value: dispatch
25
- }, children));
22
+ return /*#__PURE__*/_jsx(FilteredDataContext.Provider, {
23
+ value: filteredData,
24
+ children: /*#__PURE__*/_jsx(FilteredDataDispatchContext.Provider, {
25
+ value: dispatch,
26
+ children: children
27
+ })
28
+ });
26
29
  }
27
30
  export function useFilteredData() {
28
31
  return useContext(FilteredDataContext);
@@ -32,7 +35,7 @@ export function useFilteredDataDispatch() {
32
35
  }
33
36
  function filterReducer(filteredData, action) {
34
37
  switch (action.type) {
35
- case "set.obs.indices":
38
+ case 'set.obs.indices':
36
39
  {
37
40
  return _objectSpread(_objectSpread({}, filteredData), {}, {
38
41
  obsIndices: action.indices,
@@ -44,7 +47,7 @@ function filterReducer(filteredData, action) {
44
47
  }
45
48
  default:
46
49
  {
47
- throw Error("Unknown action: " + action.type);
50
+ throw Error('Unknown action: ' + action.type);
48
51
  }
49
52
  }
50
53
  }