@haniffalab/cherita-react 1.4.1-dev.2025-06-30.e26168b5 → 1.4.1-dev.2025-08-13.6fc43290
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.
|
@@ -118,7 +118,7 @@ const initializer = _ref => {
|
|
|
118
118
|
defaultSettings,
|
|
119
119
|
localSettings
|
|
120
120
|
} = _ref;
|
|
121
|
-
const mergedSettings = canOverrideSettings ? _lodash.default.
|
|
121
|
+
const mergedSettings = canOverrideSettings ? _lodash.default.defaultsDeep({}, localSettings, defaultSettings, initialSettings) : _lodash.default.defaultsDeep({}, defaultSettings, initialSettings);
|
|
122
122
|
return validateSettings(mergedSettings);
|
|
123
123
|
};
|
|
124
124
|
function SettingsProvider(_ref2) {
|
|
@@ -140,7 +140,7 @@ function SettingsProvider(_ref2) {
|
|
|
140
140
|
|
|
141
141
|
// If the buster is not set or does not match the current package version,
|
|
142
142
|
// reset localSettings to avoid stale data
|
|
143
|
-
if (!buster || buster !== "1.4.1-dev.2025-
|
|
143
|
+
if (!buster || buster !== "1.4.1-dev.2025-08-13.6fc43290") {
|
|
144
144
|
localSettings = {};
|
|
145
145
|
}
|
|
146
146
|
const [settings, dispatch] = (0, _react.useReducer)(settingsReducer, {
|
|
@@ -152,7 +152,7 @@ function SettingsProvider(_ref2) {
|
|
|
152
152
|
if (canOverrideSettings) {
|
|
153
153
|
try {
|
|
154
154
|
localStorage.setItem(DATASET_STORAGE_KEY, JSON.stringify(_objectSpread({
|
|
155
|
-
buster: "1.4.1-dev.2025-
|
|
155
|
+
buster: "1.4.1-dev.2025-08-13.6fc43290" || "0.0.0",
|
|
156
156
|
timestamp: Date.now()
|
|
157
157
|
}, settings)));
|
|
158
158
|
} catch (err) {
|
|
@@ -107,7 +107,7 @@ const initializer = _ref => {
|
|
|
107
107
|
defaultSettings,
|
|
108
108
|
localSettings
|
|
109
109
|
} = _ref;
|
|
110
|
-
const mergedSettings = canOverrideSettings ? _.
|
|
110
|
+
const mergedSettings = canOverrideSettings ? _.defaultsDeep({}, localSettings, defaultSettings, initialSettings) : _.defaultsDeep({}, defaultSettings, initialSettings);
|
|
111
111
|
return validateSettings(mergedSettings);
|
|
112
112
|
};
|
|
113
113
|
export function SettingsProvider(_ref2) {
|
|
@@ -129,7 +129,7 @@ export function SettingsProvider(_ref2) {
|
|
|
129
129
|
|
|
130
130
|
// If the buster is not set or does not match the current package version,
|
|
131
131
|
// reset localSettings to avoid stale data
|
|
132
|
-
if (!buster || buster !== "1.4.1-dev.2025-
|
|
132
|
+
if (!buster || buster !== "1.4.1-dev.2025-08-13.6fc43290") {
|
|
133
133
|
localSettings = {};
|
|
134
134
|
}
|
|
135
135
|
const [settings, dispatch] = useReducer(settingsReducer, {
|
|
@@ -141,7 +141,7 @@ export function SettingsProvider(_ref2) {
|
|
|
141
141
|
if (canOverrideSettings) {
|
|
142
142
|
try {
|
|
143
143
|
localStorage.setItem(DATASET_STORAGE_KEY, JSON.stringify(_objectSpread({
|
|
144
|
-
buster: "1.4.1-dev.2025-
|
|
144
|
+
buster: "1.4.1-dev.2025-08-13.6fc43290" || "0.0.0",
|
|
145
145
|
timestamp: Date.now()
|
|
146
146
|
}, settings)));
|
|
147
147
|
} catch (err) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@haniffalab/cherita-react",
|
|
3
|
-
"version": "1.4.1-dev.2025-
|
|
3
|
+
"version": "1.4.1-dev.2025-08-13.6fc43290",
|
|
4
4
|
"author": "Haniffa Lab",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
@@ -128,5 +128,5 @@
|
|
|
128
128
|
"url": "https://github.com/haniffalab/cherita-react/issues"
|
|
129
129
|
},
|
|
130
130
|
"homepage": "https://github.com/haniffalab/cherita-react#readme",
|
|
131
|
-
"prereleaseSha": "
|
|
131
|
+
"prereleaseSha": "6fc43290e91ef296e79a1fd7b3e5b6be1215fd3b"
|
|
132
132
|
}
|