@lingk/sync 1.1.4 → 1.1.5

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.
@@ -3804,6 +3804,11 @@ module.exports =
3804
3804
  });
3805
3805
  };
3806
3806
 
3807
+ _this.downloadFile = function (e, file) {
3808
+ e.preventDefault();
3809
+ _this.props.downloadFileFromAws(file);
3810
+ };
3811
+
3807
3812
  _this.state = {
3808
3813
  meta: [],
3809
3814
  fileContents: [],
@@ -3816,6 +3821,8 @@ module.exports =
3816
3821
  _createClass(FlatFile, [{
3817
3822
  key: 'render',
3818
3823
  value: function render() {
3824
+ var _this2 = this;
3825
+
3819
3826
  var _state = this.state,
3820
3827
  meta = _state.meta,
3821
3828
  uploading = _state.uploading,
@@ -3920,9 +3927,19 @@ module.exports =
3920
3927
  return _react2.default.createElement(
3921
3928
  'li',
3922
3929
  { key: i, style: { listStyle: 'none' } },
3923
- f.name,
3924
- ' - ',
3925
- formatBytes(f.byteSize)
3930
+ _react2.default.createElement(
3931
+ 'a',
3932
+ { onClick: function onClick(e) {
3933
+ return _this2.downloadFile(e, f);
3934
+ } },
3935
+ f.name
3936
+ ),
3937
+ _react2.default.createElement(
3938
+ 'span',
3939
+ null,
3940
+ ' - ',
3941
+ formatBytes(f.byteSize)
3942
+ )
3926
3943
  );
3927
3944
  })
3928
3945
  )
@@ -4246,7 +4263,8 @@ module.exports =
4246
4263
  envCheckResult = _props.envCheckResult,
4247
4264
  clearCsvFields = _props.clearCsvFields,
4248
4265
  formValues = _props.formValues,
4249
- change = _props.change;
4266
+ change = _props.change,
4267
+ downloadFileFromAws = _props.downloadFileFromAws;
4250
4268
 
4251
4269
 
4252
4270
  var Button = inputs.Button;
@@ -4293,13 +4311,16 @@ module.exports =
4293
4311
  },
4294
4312
  checkOauthCreds: checkOauthCreds, envCheckResult: envCheckResult,
4295
4313
  checking: checking, inputs: inputs, formValues: formValues,
4296
- isWiz: _react2.default.Children.count(this.props.children) > 0 }) : isFlatFile ? _react2.default.createElement(_flatfile2.default, { wizard: wizard, onCheck: check, metadata: metadata,
4314
+ isWiz: _react2.default.Children.count(this.props.children) > 0
4315
+ }) : isFlatFile ? _react2.default.createElement(_flatfile2.default, { wizard: wizard, onCheck: check, metadata: metadata,
4297
4316
  checking: checking, setCsvFields: setCsvFields,
4298
4317
  providerType: providerType, inputs: inputs,
4299
4318
  accountKey: accountKey, tenantKey: tenantKey,
4300
- onDrop: clearCsvFields }) : isGoogle ? _react2.default.createElement(_google2.default, { config: config, creds: creds, onChange: this.onChange,
4319
+ onDrop: clearCsvFields, downloadFileFromAws: downloadFileFromAws
4320
+ }) : isGoogle ? _react2.default.createElement(_google2.default, { config: config, creds: creds, onChange: this.onChange,
4301
4321
  credsDisabledCheck: credsDisabledCheck, inputs: inputs,
4302
- onCheck: check }) : _react2.default.createElement(
4322
+ onCheck: check
4323
+ }) : _react2.default.createElement(
4303
4324
  'div',
4304
4325
  null,
4305
4326
  !noRootUrl && _react2.default.createElement(