@lingk/sync 1.1.57 → 1.1.59

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.
@@ -78,14 +78,14 @@ module.exports =
78
78
  module.exports = require("react");
79
79
 
80
80
  /***/ },
81
- /* 2 */,
82
- /* 3 */,
83
- /* 4 */
81
+ /* 2 */
84
82
  /***/ function(module, exports) {
85
83
 
86
84
  module.exports = require("react-bootstrap");
87
85
 
88
86
  /***/ },
87
+ /* 3 */,
88
+ /* 4 */,
89
89
  /* 5 */,
90
90
  /* 6 */,
91
91
  /* 7 */,
@@ -4559,20 +4559,20 @@ module.exports =
4559
4559
  var _this = _possibleConstructorReturn(this, (DocuSign.__proto__ || Object.getPrototypeOf(DocuSign)).call(this));
4560
4560
 
4561
4561
  _this.finishOauth = function (e) {
4562
- if (e.data && e.data.lingkOauthMessage && e.data.lingkOauthMessage === 'complete') {
4563
- _this.props.checkOauthCreds('finish');
4562
+ if (e.data && e.data.lingkOauthMessage && e.data.lingkOauthMessage === "complete") {
4563
+ _this.props.checkOauthCreds("finish");
4564
4564
  }
4565
4565
  };
4566
4566
 
4567
4567
  _this.startOauth = function () {
4568
4568
  var wizard = _this.props.wizard;
4569
4569
 
4570
- _this.props.checkOauthCreds('start');
4570
+ _this.props.checkOauthCreds("start");
4571
4571
  var width = 600;
4572
4572
  var height = 600;
4573
4573
  var left = window.screenX + (window.outerWidth - width) / 2;
4574
4574
  var top = window.screenY + (window.outerHeight - height) / 2.5;
4575
- var popup = window.open(wizard.dsOauthUrl, 'Oauth', "width=" + width + ",height=" + height + ",top=" + top + ",left=" + left);
4575
+ var popup = window.open(wizard.dsOauthUrl, "Oauth", "width=" + width + ",height=" + height + ",top=" + top + ",left=" + left);
4576
4576
  popup.focus();
4577
4577
  };
4578
4578
 
@@ -4586,12 +4586,12 @@ module.exports =
4586
4586
  _createClass(DocuSign, [{
4587
4587
  key: "componentWillMount",
4588
4588
  value: function componentWillMount() {
4589
- window.addEventListener('message', this.finishOauth);
4589
+ window.addEventListener("message", this.finishOauth);
4590
4590
  }
4591
4591
  }, {
4592
4592
  key: "componentWillUnmount",
4593
4593
  value: function componentWillUnmount() {
4594
- window.removeEventListener('message', this.finishOauth);
4594
+ window.removeEventListener("message", this.finishOauth);
4595
4595
  }
4596
4596
  }, {
4597
4597
  key: "render",
@@ -4618,31 +4618,50 @@ module.exports =
4618
4618
  var credentials = config && config.credentials;
4619
4619
  var userName = creds && creds.userName;
4620
4620
  var Name = creds && creds.name;
4621
-
4621
+ var Account = creds && creds.accountId;
4622
+ var isSanbox = creds && creds.isSandbox;
4622
4623
  return _react2.default.createElement(
4623
4624
  "div",
4624
4625
  null,
4625
4626
  userName && _react2.default.createElement(
4626
4627
  "div",
4627
4628
  null,
4628
- userName === '_' ? _react2.default.createElement(
4629
+ userName === "_" ? _react2.default.createElement(
4629
4630
  "div",
4630
4631
  null,
4631
4632
  _react2.default.createElement(DotDot, { text: "Authorizing" })
4632
4633
  ) : _react2.default.createElement(
4633
4634
  "div",
4634
4635
  null,
4635
- "Authorized with API Username Id ",
4636
+ "Authorized with",
4637
+ " ",
4638
+ _react2.default.createElement(
4639
+ "strong",
4640
+ null,
4641
+ isSanbox ? "Developer" : "Production",
4642
+ " "
4643
+ ),
4644
+ "environment",
4645
+ _react2.default.createElement("br", null),
4646
+ "API Username ID ",
4636
4647
  _react2.default.createElement(
4637
4648
  "strong",
4638
4649
  null,
4639
4650
  userName
4640
4651
  ),
4641
- " and Username ",
4652
+ "\xA0\xA0 Username",
4653
+ " ",
4642
4654
  _react2.default.createElement(
4643
4655
  "strong",
4644
4656
  null,
4645
4657
  Name
4658
+ ),
4659
+ "\xA0\xA0 API Account ID",
4660
+ " ",
4661
+ _react2.default.createElement(
4662
+ "strong",
4663
+ null,
4664
+ Account
4646
4665
  )
4647
4666
  ),
4648
4667
  _react2.default.createElement("br", null)
@@ -4706,7 +4725,7 @@ module.exports =
4706
4725
  ),
4707
4726
  _react2.default.createElement(
4708
4727
  "div",
4709
- { style: { display: 'inline-block', marginLeft: 12 } },
4728
+ { style: { display: "inline-block", marginLeft: 12 } },
4710
4729
  checking && _react2.default.createElement(Spinner, null),
4711
4730
  envCheckResult && _react2.default.createElement(
4712
4731
  "span",
@@ -4778,7 +4797,7 @@ module.exports =
4778
4797
  var text = _this3.state.text;
4779
4798
 
4780
4799
  if (text.length < 28) {
4781
- _this3.setState({ text: text + '.' });
4800
+ _this3.setState({ text: text + "." });
4782
4801
  } else {
4783
4802
  _this3.setState({ text: _this3.props.text });
4784
4803
  }
@@ -4854,7 +4873,7 @@ module.exports =
4854
4873
 
4855
4874
  var _moment2 = _interopRequireDefault(_moment);
4856
4875
 
4857
- var _reactBootstrap = __webpack_require__(4);
4876
+ var _reactBootstrap = __webpack_require__(2);
4858
4877
 
4859
4878
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
4860
4879
 
@@ -5605,6 +5624,8 @@ module.exports =
5605
5624
 
5606
5625
  var _docuSign2 = _interopRequireDefault(_docuSign);
5607
5626
 
5627
+ var _reactBootstrap = __webpack_require__(2);
5628
+
5608
5629
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
5609
5630
 
5610
5631
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
@@ -5647,7 +5668,8 @@ module.exports =
5647
5668
 
5648
5669
  _this.state = {
5649
5670
  actualCreds: {},
5650
- showPass: false
5671
+ showPass: false,
5672
+ APIAccess: false
5651
5673
  };
5652
5674
  return _this;
5653
5675
  }
@@ -5723,7 +5745,8 @@ module.exports =
5723
5745
  downloadFileFromAws = _props2.downloadFileFromAws,
5724
5746
  deleteFlatFile = _props2.deleteFlatFile,
5725
5747
  gencerts = _props2.gencerts,
5726
- downloadcerts = _props2.downloadcerts;
5748
+ downloadcerts = _props2.downloadcerts,
5749
+ onAPIAccessChange = _props2.onAPIAccessChange;
5727
5750
 
5728
5751
  var Button = inputs.Button;
5729
5752
  var Spinner = inputs.Spinner;
@@ -5934,7 +5957,11 @@ module.exports =
5934
5957
  null,
5935
5958
  this.props.children
5936
5959
  ),
5937
- _react2.default.createElement('br', null)
5960
+ _react2.default.createElement('br', null),
5961
+ _react2.default.createElement(APIAcessHandle, {
5962
+ APIAccess: wizard.APIAccess,
5963
+ onChangeHandle: onAPIAccessChange
5964
+ })
5938
5965
  );
5939
5966
  }
5940
5967
  }]);
@@ -5991,6 +6018,20 @@ module.exports =
5991
6018
  ) : _react2.default.createElement('span', null)
5992
6019
  );
5993
6020
  };
6021
+
6022
+ var APIAcessHandle = function APIAcessHandle(_ref3) {
6023
+ var APIAccess = _ref3.APIAccess,
6024
+ onChangeHandle = _ref3.onChangeHandle;
6025
+
6026
+ return _react2.default.createElement(
6027
+ _reactBootstrap.Checkbox,
6028
+ {
6029
+ checked: APIAccess,
6030
+ onChange: onChangeHandle
6031
+ },
6032
+ 'Make these credentials available via API'
6033
+ );
6034
+ };
5994
6035
 
5995
6036
  /***/ },
5996
6037
  /* 73 */