@lingk/sync 2.3.1 → 2.3.3

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.
@@ -7177,7 +7177,57 @@ module.exports =
7177
7177
  }
7178
7178
  })
7179
7179
  );
7180
- })
7180
+ }),
7181
+ config.type === "Ethos" && creds.name && creds.name != "" && _react2.default.createElement(
7182
+ "div",
7183
+ { style: {
7184
+ padding: 13,
7185
+ marginTop: 10,
7186
+ border: "1px solid grey",
7187
+ borderRadius: 8
7188
+ } },
7189
+ _react2.default.createElement(
7190
+ "div",
7191
+ { style: { fontSize: 16, fontWeight: "bold", marginBottom: 2 } },
7192
+ "Account Information"
7193
+ ),
7194
+ _react2.default.createElement(
7195
+ "label",
7196
+ {
7197
+ htmlFor: "name",
7198
+ className: "labelz",
7199
+ style: { fontWeight: "normal" }
7200
+ },
7201
+ unCamelize("name"),
7202
+ ":"
7203
+ ),
7204
+ " " + creds.name,
7205
+ _react2.default.createElement("br", null),
7206
+ _react2.default.createElement(
7207
+ "label",
7208
+ {
7209
+ htmlFor: "label",
7210
+ className: "labelz",
7211
+ style: { fontWeight: "normal" }
7212
+ },
7213
+ unCamelize("label"),
7214
+ ":"
7215
+ ),
7216
+ " " + creds.label,
7217
+ _react2.default.createElement("br", null),
7218
+ _react2.default.createElement(
7219
+ "label",
7220
+ {
7221
+ htmlFor: "accountId",
7222
+ className: "labelz",
7223
+ style: { fontWeight: "normal" }
7224
+ },
7225
+ unCamelize("accountId"),
7226
+ ":"
7227
+ ),
7228
+ " " + creds.accountId,
7229
+ _react2.default.createElement("br", null)
7230
+ )
7181
7231
  )
7182
7232
  ),
7183
7233
  isAdapter && _react2.default.createElement(_adaptersecret2.default, {
@@ -7386,6 +7436,8 @@ module.exports =
7386
7436
  var Spinner = inputs.Spinner;
7387
7437
  var Button = inputs.Button;
7388
7438
  var userName = creds && creds.userName;
7439
+ var isSandBox = creds && creds.isSandBox;
7440
+ var instanceUrl = creds && creds.instanceUrl;
7389
7441
  var btnStyle = { height: 30, lineHeight: "11px", marginTop: -1 };
7390
7442
  var ToggleButtonGroup = inputs.ToggleButtonGroup;
7391
7443
  return _react2.default.createElement(
@@ -7398,7 +7450,7 @@ module.exports =
7398
7450
  "div",
7399
7451
  null,
7400
7452
  _react2.default.createElement(DotDot, { text: "Authorizing" })
7401
- ) : _react2.default.createElement(
7453
+ ) : instanceUrl && instanceUrl != "" ? _react2.default.createElement(
7402
7454
  "div",
7403
7455
  null,
7404
7456
  "Authorized with account ",
@@ -7406,7 +7458,28 @@ module.exports =
7406
7458
  "strong",
7407
7459
  null,
7408
7460
  userName
7461
+ ),
7462
+ " for the instance",
7463
+ _react2.default.createElement("br", null),
7464
+ " with URL: ",
7465
+ _react2.default.createElement(
7466
+ "strong",
7467
+ null,
7468
+ instanceUrl
7409
7469
  )
7470
+ ) : _react2.default.createElement(
7471
+ "div",
7472
+ null,
7473
+ "Authorized with account ",
7474
+ _react2.default.createElement(
7475
+ "strong",
7476
+ null,
7477
+ userName
7478
+ ),
7479
+ " for the instance",
7480
+ _react2.default.createElement("br", null),
7481
+ " with URL: ",
7482
+ _react2.default.createElement(DotDot, { text: "Loading" })
7410
7483
  ),
7411
7484
  _react2.default.createElement("br", null)
7412
7485
  ),
@@ -7433,20 +7506,30 @@ module.exports =
7433
7506
  },
7434
7507
  "Sandbox"
7435
7508
  ),
7509
+ isSandBox && _react2.default.createElement(
7510
+ "div",
7511
+ { style: { display: "inline-block", marginLeft: 10 } },
7512
+ checking && _react2.default.createElement(Spinner, null),
7513
+ envCheckResult && _react2.default.createElement(
7514
+ "span",
7515
+ null,
7516
+ _react2.default.createElement(EnvCheckIcons, { result: envCheckResult })
7517
+ )
7518
+ ),
7436
7519
  _react2.default.createElement(
7437
7520
  Button,
7438
7521
  {
7439
7522
  type: "brand",
7440
- style: Object.assign({ margin: "0 12px" }, btnStyle),
7523
+ style: Object.assign({ margin: "0 12px 0 32px" }, btnStyle),
7441
7524
  onClick: function onClick() {
7442
7525
  return onGenerateUrl("production");
7443
7526
  }
7444
7527
  },
7445
7528
  "Production"
7446
7529
  ),
7447
- _react2.default.createElement(
7530
+ !isSandBox && _react2.default.createElement(
7448
7531
  "div",
7449
- { style: { display: "inline-block", marginLeft: 12 } },
7532
+ { style: { display: "inline-block", marginLeft: 0 } },
7450
7533
  checking && _react2.default.createElement(Spinner, null),
7451
7534
  envCheckResult && _react2.default.createElement(
7452
7535
  "span",