@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.
- package/dist/cjs/components/toolbar/Toolbar.js +1 -1
- package/dist/cjs/constants/constants.js +1 -1
- package/dist/cjs/context/DatasetContext.js +1 -1
- package/dist/cjs/context/SettingsContext.js +2 -2
- package/dist/cjs/utils/requests.js +2 -2
- package/dist/cjs/views/ObservationFeature/StandardView.js +1 -1
- package/dist/esm/components/toolbar/Toolbar.js +1 -1
- package/dist/esm/constants/constants.js +1 -1
- package/dist/esm/context/DatasetContext.js +1 -1
- package/dist/esm/context/SettingsContext.js +2 -2
- package/dist/esm/utils/requests.js +2 -2
- package/dist/esm/views/ObservationFeature/StandardView.js +1 -1
- package/package.json +3 -3
|
@@ -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'
|
|
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)'
|
|
@@ -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-
|
|
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-
|
|
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
|
|
19
|
-
let
|
|
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), {}, {
|
|
@@ -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'
|
|
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)'
|
|
@@ -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-
|
|
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-
|
|
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
|
|
12
|
-
let
|
|
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-
|
|
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": "^
|
|
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": "
|
|
152
|
+
"prereleaseSha": "7de9c8ea31a5792cfa93e5f69d4a105ed5663f81"
|
|
153
153
|
}
|