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