@lingk/sync 0.2.3 → 0.2.4

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.
@@ -151,13 +151,19 @@ module.exports =
151
151
  rootUrl: creds.rootUrl || 'https://'
152
152
  }) });
153
153
  }
154
+ }, {
155
+ key: 'componentWillReceiveProps',
156
+ value: function componentWillReceiveProps(newProps) {
157
+ if (JSON.stringify(this.state.actualCreds) !== JSON.stringify(newProps.creds)) {
158
+ this.setState({ actualCreds: newProps.creds });
159
+ }
160
+ }
154
161
  }, {
155
162
  key: 'render',
156
163
  value: function render() {
157
164
  var _this2 = this;
158
165
 
159
166
  var _props = this.props,
160
- step = _props.step,
161
167
  config = _props.config,
162
168
  tenantKey = _props.tenantKey,
163
169
  accountKey = _props.accountKey,
@@ -172,6 +178,7 @@ module.exports =
172
178
  inputs = _props.inputs,
173
179
  envCheckResult = _props.envCheckResult;
174
180
 
181
+
175
182
  var Button = inputs.Button;
176
183
  var Spinner = inputs.Spinner;
177
184
  var Input = inputs.Input;
@@ -203,13 +210,13 @@ module.exports =
203
210
  _react2.default.createElement('br', null),
204
211
  _react2.default.createElement('br', null)
205
212
  ),
206
- isOauth ? _react2.default.createElement(Oauth, { step: step, wizard: wizard, onCheck: check,
213
+ isOauth ? _react2.default.createElement(Oauth, { wizard: wizard, onCheck: check,
207
214
  creds: this.props.creds, providerType: providerType,
208
215
  onGenerateUrl: function onGenerateUrl(urlType) {
209
216
  return getOauthUrl(urlType, providerType);
210
217
  },
211
218
  checkOauthCreds: checkOauthCreds, envCheckResult: envCheckResult,
212
- checking: checking, inputs: inputs }) : isSFTP ? _react2.default.createElement(SFTP, { step: step, wizard: wizard, onCheck: check,
219
+ checking: checking, inputs: inputs }) : isSFTP ? _react2.default.createElement(SFTP, { wizard: wizard, onCheck: check,
213
220
  checking: checking, setCsvFields: setCsvFields,
214
221
  providerType: providerType }) : isGoogle ? _react2.default.createElement(Google, { config: config, creds: creds, onChange: this.onChange,
215
222
  credsDisabledCheck: credsDisabledCheck, inputs: inputs }) : _react2.default.createElement(
@@ -287,11 +294,16 @@ module.exports =
287
294
  })
288
295
  )
289
296
  ),
290
- isAdapter && _react2.default.createElement(AdapterSecret, { step: step, inputs: inputs,
297
+ isAdapter && _react2.default.createElement(AdapterSecret, { inputs: inputs,
291
298
  providerType: providerType, secret: adapterSecret,
292
299
  generateNewAdapterSecret: generateNewAdapterSecret,
293
300
  tenantKey: tenantKey, accountKey: accountKey })
294
301
  ),
302
+ _react2.default.createElement(
303
+ 'span',
304
+ null,
305
+ this.props.children
306
+ ),
295
307
  _react2.default.createElement('br', null)
296
308
  );
297
309
  }