blixify-ui-web 1.2.89 → 1.2.90

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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/data/dataTemplate/index.tsx"],"names":[],"mappings":"AAkCA,OAAO,KASN,MAAM,OAAO,CAAC;AAyFf,OAAO,EACL,iBAAiB,EAKlB,MAAM,kBAAkB,CAAC;AAwD1B,eAAO,MAAM,YAAY,mFAkwYvB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/data/dataTemplate/index.tsx"],"names":[],"mappings":"AAkCA,OAAO,KASN,MAAM,OAAO,CAAC;AAyFf,OAAO,EACL,iBAAiB,EAKlB,MAAM,kBAAkB,CAAC;AAwD1B,eAAO,MAAM,YAAY,mFAywYvB,CAAC"}
@@ -4899,8 +4899,10 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
4899
4899
  // INFO: always baseline the raw doc (IDs intact) so diff/submit paths
4900
4900
  // compare against actual field values, not display labels.
4901
4901
  loadedSelectedData.current = JSON.parse(JSON.stringify(responseData.data));
4902
+ // INFO: offline path already hands the raw doc as `data`; pass it as
4903
+ // `rawData` too so the second arg is the raw doc on every path.
4902
4904
  if ((_d = props.bareSettings) === null || _d === void 0 ? void 0 : _d.bareReadHandleData)
4903
- props.bareSettings.bareReadHandleData(responseData.data);
4905
+ props.bareSettings.bareReadHandleData(responseData.data, responseData.data);
4904
4906
  clonedReferencesOptions_1 = JSON.parse(JSON.stringify(referencesOptions));
4905
4907
  return [4 /*yield*/, Promise.all(structure.map(function (eachModel) { return __awaiter(void 0, void 0, void 0, function () {
4906
4908
  var isObject, offlineDataResp, offlineData, prefix_1;
@@ -4998,8 +5000,10 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
4998
5000
  // Deep clone to prevent shared-reference mutations from making the
4999
5001
  // diff see no changes (e.g. listObject array pushes).
5000
5002
  loadedSelectedData.current = JSON.parse(JSON.stringify(newRespData));
5003
+ // INFO: newRespData is the deep/display model (labels + elements);
5004
+ // responseData.data is the untouched DB doc.
5001
5005
  if ((_j = props.bareSettings) === null || _j === void 0 ? void 0 : _j.bareReadHandleData)
5002
- props.bareSettings.bareReadHandleData(newRespData);
5006
+ props.bareSettings.bareReadHandleData(newRespData, responseData.data);
5003
5007
  if ((resolvedType === "update" || resolvedType === "read") &&
5004
5008
  props.id !== "new") {
5005
5009
  (0, updateModule_1.handleRetrieveReferenceOptions)(newRespData, structure, dbModule, devSettings, setReferencesOptions, setReferencesDetails, resolvedType === "read");