config-editor-base 2.9.8 → 3.0.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.
@@ -21823,8 +21823,11 @@ function isObdResponse29Bit(canId) {
21823
21823
  }
21824
21824
 
21825
21825
  function parseSupportedPids(csvContent) {
21826
- var frames = parseCanFrameCsv(csvContent);
21827
- var receiveFrames = getReceiveFrames(frames);
21826
+ var parseResult = parseCanFrameCsv(csvContent);
21827
+ if (parseResult.error) {
21828
+ throw new Error(parseResult.error);
21829
+ }
21830
+ var receiveFrames = getReceiveFrames(parseResult.frames);
21828
21831
  var obd11BitResponses = receiveFrames.filter(function (f) {
21829
21832
  return f.ide === 0 && f.id === '7E8';
21830
21833
  });
@@ -21868,7 +21871,7 @@ function parseSupportedPids(csvContent) {
21868
21871
  transmitId: use29Bit ? '18DB33F1' : '7DF',
21869
21872
  canIdType: use29Bit ? '29bit' : '11bit',
21870
21873
  responseCount: relevantResponses.length,
21871
- totalFrames: frames.length,
21874
+ totalFrames: parseResult.frames.length,
21872
21875
  hasMixedIds: hasBothIdTypes,
21873
21876
  hasMixedProtocols: hasMixedProtocols,
21874
21877
  allProtocolsDetected: Array.from(protocolsDetected),
@@ -21982,7 +21985,11 @@ var OBDTool = /*#__PURE__*/function (_React$Component) {
21982
21985
  _proto.handleModeChange = function handleModeChange(selectedOption) {
21983
21986
  var _this2 = this;
21984
21987
  this.setState({
21985
- toolMode: selectedOption.value
21988
+ toolMode: selectedOption.value,
21989
+ generatedConfig: {},
21990
+ combinedConfig: {},
21991
+ mergedConfig: {},
21992
+ mergedConfigValid: "Unknown"
21986
21993
  }, function () {
21987
21994
  if (selectedOption.value === "test") {
21988
21995
  _this2.generateTestConfig();
@@ -22403,7 +22410,7 @@ var OBDTool = /*#__PURE__*/function (_React$Component) {
22403
22410
  fontSize: "12px",
22404
22411
  marginBottom: "5px"
22405
22412
  }
22406
- }, "Load mdf2csv output with your supported PIDs test:"), /*#__PURE__*/React.createElement("div", {
22413
+ }, "Load 'mdf2csv' output with supported PIDs test:"), /*#__PURE__*/React.createElement("div", {
22407
22414
  className: "text-area-wrapper row no-gutters reduced-margin"
22408
22415
  }, /*#__PURE__*/React.createElement("div", {
22409
22416
  className: "file-dropzone"