@haniffalab/cherita-react 1.5.0-dev.2026-02-23.3e951ff1 → 1.5.0-dev.2026-03-06.7de9c8ea

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.
@@ -15,7 +15,7 @@ const Toolbar = _ref => {
15
15
  setShowCategories,
16
16
  setShowSearch,
17
17
  setShowControls,
18
- Fullscreen
18
+ isFullscreen
19
19
  } = _ref;
20
20
  const {
21
21
  showCategoriesBtn,
@@ -99,7 +99,7 @@ const PSEUDOSPATIAL_CATEGORICAL_MODES = exports.PSEUDOSPATIAL_CATEGORICAL_MODES
99
99
  // `default` cols to be shown out of accordion, at top of obslist
100
100
  // default values from cellxgene schema
101
101
  const DEFAULT_OBS_GROUP = exports.DEFAULT_OBS_GROUP = ['assay', 'cell_type', 'development_stage', 'disease', 'donor_id', 'organism', 'self_reported_ethnicity', 'sex', 'suspension_type', 'tissue', 'tissue_type'];
102
- const PLOTLY_MODEBAR_BUTTONS = exports.PLOTLY_MODEBAR_BUTTONS = ['toImage', 'zoom2d', 'pan2d', 'zoomIn2d', 'zoomOut2d', 'autoScale2d', 'resetScale2d'];
102
+ const PLOTLY_MODEBAR_BUTTONS = exports.PLOTLY_MODEBAR_BUTTONS = ['toImage', 'zoom2d', 'pan2d', 'zoomIn2d', 'zoomOut2d', 'autoScale2d'];
103
103
  const BREAKPOINTS = exports.BREAKPOINTS = {
104
104
  LG: '(max-width: 991.98px)',
105
105
  XL: '(max-width: 1199.98px)'
@@ -60,7 +60,7 @@ const persistOptions = {
60
60
  return false;
61
61
  }
62
62
  },
63
- buster: "1.5.0-dev.2026-02-23.3e951ff1" || '0.0.0'
63
+ buster: "1.5.0-dev.2026-03-06.7de9c8ea" || '0.0.0'
64
64
  // @TODO: add maxAge and api version numbers as buster
65
65
  };
66
66
  const initialDataset = {
@@ -176,7 +176,7 @@ function SettingsProvider(_ref2) {
176
176
 
177
177
  // If the buster is not set or does not match the current package version,
178
178
  // reset localSettings to avoid stale data
179
- if (!buster || buster !== "1.5.0-dev.2026-02-23.3e951ff1") {
179
+ if (!buster || buster !== "1.5.0-dev.2026-03-06.7de9c8ea") {
180
180
  localSettings = {};
181
181
  }
182
182
  const initSettings = (0, _react.useRef)(initializer({
@@ -201,7 +201,7 @@ function SettingsProvider(_ref2) {
201
201
  if (canOverrideSettings && settings) {
202
202
  try {
203
203
  localStorage.setItem(DATASET_STORAGE_KEY, JSON.stringify(_objectSpread({
204
- buster: "1.5.0-dev.2026-02-23.3e951ff1" || '0.0.0',
204
+ buster: "1.5.0-dev.2026-03-06.7de9c8ea" || '0.0.0',
205
205
  timestamp: Date.now()
206
206
  }, _lodash.default.omit(settings, 'data'))));
207
207
  } catch (err) {
@@ -15,8 +15,8 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
15
15
  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); }
16
16
  async function fetchData(endpoint, params) {
17
17
  let signal = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
18
- let ms = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 300000;
19
- let apiUrl = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : null;
18
+ let apiUrl = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
19
+ let ms = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 300000;
20
20
  apiUrl = apiUrl || process.env.REACT_APP_API_URL;
21
21
  const controller = new AbortController();
22
22
  const timeout = setTimeout(() => {
@@ -109,7 +109,7 @@ function StandardView(_ref) {
109
109
  default:
110
110
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Scatterplot.Scatterplot, _objectSpread({}, commonProps));
111
111
  }
112
- }, [plotType]);
112
+ }, [plotType, props]);
113
113
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
114
114
  className: "cherita-app",
115
115
  children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_DatasetContext.DatasetProvider, _objectSpread(_objectSpread({}, props), {}, {
@@ -8,7 +8,7 @@ export const Toolbar = _ref => {
8
8
  setShowCategories,
9
9
  setShowSearch,
10
10
  setShowControls,
11
- Fullscreen
11
+ isFullscreen
12
12
  } = _ref;
13
13
  const {
14
14
  showCategoriesBtn,
@@ -93,7 +93,7 @@ export const PSEUDOSPATIAL_CATEGORICAL_MODES = {
93
93
  // `default` cols to be shown out of accordion, at top of obslist
94
94
  // default values from cellxgene schema
95
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'];
96
+ export const PLOTLY_MODEBAR_BUTTONS = ['toImage', 'zoom2d', 'pan2d', 'zoomIn2d', 'zoomOut2d', 'autoScale2d'];
97
97
  export const BREAKPOINTS = {
98
98
  LG: '(max-width: 991.98px)',
99
99
  XL: '(max-width: 1199.98px)'
@@ -51,7 +51,7 @@ const persistOptions = {
51
51
  return false;
52
52
  }
53
53
  },
54
- buster: "1.5.0-dev.2026-02-23.3e951ff1" || '0.0.0'
54
+ buster: "1.5.0-dev.2026-03-06.7de9c8ea" || '0.0.0'
55
55
  // @TODO: add maxAge and api version numbers as buster
56
56
  };
57
57
  const initialDataset = {
@@ -166,7 +166,7 @@ export function SettingsProvider(_ref2) {
166
166
 
167
167
  // If the buster is not set or does not match the current package version,
168
168
  // reset localSettings to avoid stale data
169
- if (!buster || buster !== "1.5.0-dev.2026-02-23.3e951ff1") {
169
+ if (!buster || buster !== "1.5.0-dev.2026-03-06.7de9c8ea") {
170
170
  localSettings = {};
171
171
  }
172
172
  const initSettings = useRef(initializer({
@@ -191,7 +191,7 @@ export function SettingsProvider(_ref2) {
191
191
  if (canOverrideSettings && settings) {
192
192
  try {
193
193
  localStorage.setItem(DATASET_STORAGE_KEY, JSON.stringify(_objectSpread({
194
- buster: "1.5.0-dev.2026-02-23.3e951ff1" || '0.0.0',
194
+ buster: "1.5.0-dev.2026-03-06.7de9c8ea" || '0.0.0',
195
195
  timestamp: Date.now()
196
196
  }, _.omit(settings, 'data'))));
197
197
  } catch (err) {
@@ -8,8 +8,8 @@ import { useDebounce } from '@uidotdev/usehooks';
8
8
  import { parseError } from './errors';
9
9
  export async function fetchData(endpoint, params) {
10
10
  let signal = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
11
- let ms = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 300000;
12
- let apiUrl = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : null;
11
+ let apiUrl = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
12
+ let ms = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 300000;
13
13
  apiUrl = apiUrl || process.env.REACT_APP_API_URL;
14
14
  const controller = new AbortController();
15
15
  const timeout = setTimeout(() => {
@@ -103,7 +103,7 @@ export function StandardView(_ref) {
103
103
  default:
104
104
  return /*#__PURE__*/_jsx(Scatterplot, _objectSpread({}, commonProps));
105
105
  }
106
- }, [plotType]);
106
+ }, [plotType, props]);
107
107
  return /*#__PURE__*/_jsx("div", {
108
108
  className: "cherita-app",
109
109
  children: /*#__PURE__*/_jsxs(DatasetProvider, _objectSpread(_objectSpread({}, props), {}, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haniffalab/cherita-react",
3
- "version": "1.5.0-dev.2026-02-23.3e951ff1",
3
+ "version": "1.5.0-dev.2026-03-06.7de9c8ea",
4
4
  "author": "Haniffa Lab",
5
5
  "license": "MIT",
6
6
  "keywords": [
@@ -52,7 +52,7 @@
52
52
  "ndarray-unpack": "^1.0.0",
53
53
  "nebula.gl": "^1.0.4",
54
54
  "numbro": "^2.5.0",
55
- "plotly.js": "^2.23.2",
55
+ "plotly.js": "^3.4.0",
56
56
  "popper.js": "^1.16.1",
57
57
  "react-bootstrap": "^2.7.4",
58
58
  "react-plotly.js": "^2.6.0",
@@ -149,5 +149,5 @@
149
149
  "url": "https://github.com/haniffalab/cherita-react/issues"
150
150
  },
151
151
  "homepage": "https://github.com/haniffalab/cherita-react#readme",
152
- "prereleaseSha": "3e951ff1c386d8f572860169dc25cb5196bed5e0"
152
+ "prereleaseSha": "7de9c8ea31a5792cfa93e5f69d4a105ed5663f81"
153
153
  }