@jsonui/react 0.1.1 → 0.3.0
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/index.js
CHANGED
|
@@ -8130,7 +8130,16 @@ var collectObjToArray = function (refConst, json) {
|
|
|
8130
8130
|
return refs_2;
|
|
8131
8131
|
}
|
|
8132
8132
|
return [];
|
|
8133
|
-
};
|
|
8133
|
+
};
|
|
8134
|
+
var isCircular = function (d) {
|
|
8135
|
+
try {
|
|
8136
|
+
JSON.stringify(d);
|
|
8137
|
+
}
|
|
8138
|
+
catch (e) {
|
|
8139
|
+
return true;
|
|
8140
|
+
}
|
|
8141
|
+
return false;
|
|
8142
|
+
};var util$1=/*#__PURE__*/Object.freeze({__proto__:null,findLastIndex:findLastIndex,drop:drop,isNumber:isNumber,jsonPointerGet:jsonPointerGet,jsonPointerSet:jsonPointerSet,pathArrayToPathString:pathArrayToPathString,pathArrayToJsonPointer:pathArrayToJsonPointer,isOnlyObject:isOnlyObject,mergePath:mergePath,changeRelativePath:changeRelativePath,mergeDeep:mergeDeep,collectObjMerge:collectObjMerge,collectObjToArray:collectObjToArray,isCircular:isCircular});var actionBuilder = function (props, stock) {
|
|
8134
8143
|
var paths = [];
|
|
8135
8144
|
props.parentComp; var propsNew = __rest(props
|
|
8136
8145
|
// eslint-disable-next-line func-names
|
|
@@ -15927,7 +15936,7 @@ var reducer = function (state, action) {
|
|
|
15927
15936
|
switch (action === null || action === void 0 ? void 0 : action.type) {
|
|
15928
15937
|
case DATA_UPDATE: {
|
|
15929
15938
|
var _a = (action === null || action === void 0 ? void 0 : action.payload) || {}, _b = _a.store, store_1 = _b === void 0 ? undefined : _b, _c = _a.path, path = _c === void 0 ? undefined : _c, _d = _a.value, value_1 = _d === void 0 ? undefined : _d, _e = _a.jsonataDef, jsonataDef_1 = _e === void 0 ? undefined : _e, _f = _a.currentPaths, currentPaths = _f === void 0 ? undefined : _f, _g = _a.stock, stock_1 = _g === void 0 ? undefined : _g;
|
|
15930
|
-
if (store_1 && path) {
|
|
15939
|
+
if (store_1 && path && !isCircular(value_1)) {
|
|
15931
15940
|
var storekey = "".concat(store_1);
|
|
15932
15941
|
var convertedPath_1 = currentPaths && currentPaths[storekey] && currentPaths[storekey].path
|
|
15933
15942
|
? changeRelativePath("".concat(currentPaths[storekey].path).concat(SEPARATOR).concat(path))
|