@thecb/components 6.1.1 → 6.1.4-beta.1

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.esm.js CHANGED
@@ -22542,7 +22542,7 @@ var fallbackValues$i = {
22542
22542
  };
22543
22543
 
22544
22544
  var _excluded$p = ["showErrors", "themeValues"],
22545
- _excluded2 = ["type", "labelTextWhenNoError", "errorMessages", "isNum", "isEmail", "helperModal", "field", "fieldActions", "showErrors", "formatter", "decorator", "themeValues", "background", "customHeight", "extraStyles"];
22545
+ _excluded2 = ["type", "labelTextWhenNoError", "errorMessages", "isNum", "isEmail", "helperModal", "field", "fieldActions", "showErrors", "formatter", "decorator", "themeValues", "background", "customHeight", "autocomplete", "extraStyles"];
22546
22546
  var InputField = styled.input.withConfig({
22547
22547
  displayName: "FormInput__InputField",
22548
22548
  componentId: "sc-l094r1-0"
@@ -22624,6 +22624,7 @@ var FormInput = function FormInput(_ref15) {
22624
22624
  themeValues = _ref15.themeValues,
22625
22625
  background = _ref15.background,
22626
22626
  customHeight = _ref15.customHeight,
22627
+ autocomplete = _ref15.autocomplete,
22627
22628
  extraStyles = _ref15.extraStyles,
22628
22629
  props = _objectWithoutProperties(_ref15, _excluded2);
22629
22630
 
@@ -22701,7 +22702,8 @@ var FormInput = function FormInput(_ref15) {
22701
22702
  "data-qa": labelTextWhenNoError,
22702
22703
  themeValues: themeValues,
22703
22704
  $customHeight: customHeight,
22704
- $extraStyles: extraStyles
22705
+ $extraStyles: extraStyles,
22706
+ autocomplete: autocomplete
22705
22707
  }, props)) : /*#__PURE__*/React.createElement(InputField, _extends({
22706
22708
  "aria-labelledby": createIdFromString(labelTextWhenNoError),
22707
22709
  "aria-describedby": createIdFromString(labelTextWhenNoError, "error message"),
@@ -22719,7 +22721,8 @@ var FormInput = function FormInput(_ref15) {
22719
22721
  themeValues: themeValues,
22720
22722
  background: background,
22721
22723
  $customHeight: customHeight,
22722
- $extraStyles: extraStyles
22724
+ $extraStyles: extraStyles,
22725
+ autocomplete: autocomplete
22723
22726
  }, props))), /*#__PURE__*/React.createElement(Stack, {
22724
22727
  direction: "row",
22725
22728
  justify: "space-between"
@@ -34403,7 +34406,8 @@ var FormStateDropdown = function FormStateDropdown(_ref) {
34403
34406
  field = _ref.field,
34404
34407
  fieldActions = _ref.fieldActions,
34405
34408
  showErrors = _ref.showErrors,
34406
- countryCode = _ref.countryCode;
34409
+ countryCode = _ref.countryCode,
34410
+ autocomplete = _ref.autocomplete;
34407
34411
  var placeholder = countryCode === "US" ? placeHolderOptionUS : placeHolderOption;
34408
34412
  var options = [placeholder].concat(_toConsumableArray(getOptions(countryCode)));
34409
34413
  return /*#__PURE__*/React.createElement(FormSelect$1, {
@@ -34413,7 +34417,7 @@ var FormStateDropdown = function FormStateDropdown(_ref) {
34413
34417
  labelTextWhenNoError: labelTextWhenNoError,
34414
34418
  errorMessages: errorMessages,
34415
34419
  showErrors: showErrors,
34416
- autocompleteValue: "address-level1"
34420
+ autocompleteValue: autocomplete
34417
34421
  });
34418
34422
  };
34419
34423
 
@@ -34718,6 +34722,24 @@ const ONLY_NATURALS_ERROR = "error/ONLY_NATURALS";
34718
34722
  const onlyNaturals = createValidator(ONLY_NATURALS, ONLY_NATURALS_ERROR);
34719
34723
  validatorFns[ONLY_NATURALS] = (value, args, form) => /^(\d+)?$/.test(value);
34720
34724
 
34725
+ /*
34726
+ 07/22: experimental expiration date constraint
34727
+ should allow entry of expiration date using "/" character
34728
+ to accommodate browser autofill
34729
+
34730
+ not tested as validation function
34731
+ to validate exp date instead use combo of:
34732
+ required(), hasLength(), isValidMonth(), dateAfterToday()
34733
+ */
34734
+ const ONLY_EXPIRATION_DATE = "validator/ONLY_EXPIRATION_DATE";
34735
+ const ONLY_EXPIRATION_DATE_ERROR = "error/ONLY_EXPIRATION_DATE";
34736
+ const onlyExpirationDate = createValidator(
34737
+ ONLY_EXPIRATION_DATE,
34738
+ ONLY_EXPIRATION_DATE_ERROR
34739
+ );
34740
+ validatorFns[ONLY_EXPIRATION_DATE] = (value, args, form) =>
34741
+ /^(\d?\d?\/?\d?\d?)?$/.test(value);
34742
+
34721
34743
  const NUMBER_LESS_THAN = "validator/NUMBER_LESS_THAN";
34722
34744
  const NUMBER_LESS_THAN_ERROR = "error/NUMBER_LESS_THAN";
34723
34745
  const numberLessThan = createValidator(
@@ -36469,7 +36491,8 @@ var AddressForm = function AddressForm(_ref) {
36469
36491
  showErrors: showErrors,
36470
36492
  onKeyDown: function onKeyDown(e) {
36471
36493
  return e.key === "Enter" && handleSubmit(e);
36472
- }
36494
+ },
36495
+ autocomplete: "address-line1"
36473
36496
  }), /*#__PURE__*/React.createElement(FormInput$1, {
36474
36497
  labelTextWhenNoError: "Apt, Suite, Unit, Floor, etc. (Optional)",
36475
36498
  field: fields.street2,
@@ -36477,7 +36500,8 @@ var AddressForm = function AddressForm(_ref) {
36477
36500
  showErrors: showErrors,
36478
36501
  onKeyDown: function onKeyDown(e) {
36479
36502
  return e.key === "Enter" && handleSubmit(e);
36480
- }
36503
+ },
36504
+ autocomplete: "address-line2"
36481
36505
  }), /*#__PURE__*/React.createElement(FormInput$1, {
36482
36506
  labelTextWhenNoError: "City",
36483
36507
  errorMessages: cityErrorMessages,
@@ -36486,7 +36510,8 @@ var AddressForm = function AddressForm(_ref) {
36486
36510
  showErrors: showErrors,
36487
36511
  onKeyDown: function onKeyDown(e) {
36488
36512
  return e.key === "Enter" && handleSubmit(e);
36489
- }
36513
+ },
36514
+ autocomplete: "address-level2"
36490
36515
  }), /*#__PURE__*/React.createElement(FormStateDropdown, {
36491
36516
  labelTextWhenNoError: isUS ? "State" : "State or Province",
36492
36517
  errorMessages: stateProvinceErrorMessages,
@@ -36496,7 +36521,8 @@ var AddressForm = function AddressForm(_ref) {
36496
36521
  showErrors: showErrors,
36497
36522
  onKeyDown: function onKeyDown(e) {
36498
36523
  return e.key === "Enter" && handleSubmit(e);
36499
- }
36524
+ },
36525
+ autocomplete: "address-level1"
36500
36526
  }), /*#__PURE__*/React.createElement(FormInput$1, {
36501
36527
  isNum: isUS,
36502
36528
  formatter: isUS ? zipFormat : null,
@@ -36507,7 +36533,8 @@ var AddressForm = function AddressForm(_ref) {
36507
36533
  showErrors: showErrors,
36508
36534
  onKeyDown: function onKeyDown(e) {
36509
36535
  return e.key === "Enter" && handleSubmit(e);
36510
- }
36536
+ },
36537
+ autocomplete: "postal-code"
36511
36538
  }), showWalletCheckbox && /*#__PURE__*/React.createElement(Checkbox$1, {
36512
36539
  name: "address checkbox",
36513
36540
  title: "Save address to wallet",
@@ -36611,7 +36638,8 @@ var ChangePasswordForm = function ChangePasswordForm(_ref) {
36611
36638
  onKeyDown: function onKeyDown(e) {
36612
36639
  return e.key === "Enter" && handleSubmit(e);
36613
36640
  },
36614
- type: "password"
36641
+ type: "password",
36642
+ autocomplete: "current-password"
36615
36643
  }), /*#__PURE__*/React.createElement(FormInput$1, {
36616
36644
  labelTextWhenNoError: "New password",
36617
36645
  errorMessages: newPasswordErrorMessages,
@@ -36621,7 +36649,8 @@ var ChangePasswordForm = function ChangePasswordForm(_ref) {
36621
36649
  onKeyDown: function onKeyDown(e) {
36622
36650
  return e.key === "Enter" && handleSubmit(e);
36623
36651
  },
36624
- type: "password"
36652
+ type: "password",
36653
+ autocomplete: "new-password"
36625
36654
  }), /*#__PURE__*/React.createElement(FormInput$1, {
36626
36655
  labelTextWhenNoError: "Confirm password",
36627
36656
  errorMessages: confirmNewPasswordErrorMessages,
@@ -36631,7 +36660,8 @@ var ChangePasswordForm = function ChangePasswordForm(_ref) {
36631
36660
  onKeyDown: function onKeyDown(e) {
36632
36661
  return e.key === "Enter" && handleSubmit(e);
36633
36662
  },
36634
- type: "password"
36663
+ type: "password",
36664
+ autocomplete: "new-password"
36635
36665
  })), /*#__PURE__*/React.createElement(Box, {
36636
36666
  padding: isMobile ? "1rem 0 0" : "1.5rem 0 0"
36637
36667
  }, /*#__PURE__*/React.createElement(Cluster, {
@@ -36845,7 +36875,8 @@ var EditNameForm = function EditNameForm(_ref) {
36845
36875
  showErrors: showErrors,
36846
36876
  onKeyDown: function onKeyDown(e) {
36847
36877
  return e.key === "Enter" && handleSubmit(e);
36848
- }
36878
+ },
36879
+ autocomplete: "given-name"
36849
36880
  }), /*#__PURE__*/React.createElement(FormInput$1, {
36850
36881
  labelTextWhenNoError: "Last Name",
36851
36882
  errorMessages: lastNameErrorMessages,
@@ -36854,7 +36885,8 @@ var EditNameForm = function EditNameForm(_ref) {
36854
36885
  showErrors: showErrors,
36855
36886
  onKeyDown: function onKeyDown(e) {
36856
36887
  return e.key === "Enter" && handleSubmit(e);
36857
- }
36888
+ },
36889
+ autocomplete: "family-name"
36858
36890
  })));
36859
36891
  };
36860
36892
 
@@ -36921,7 +36953,8 @@ var EditableList = function EditableList(_ref) {
36921
36953
  autoPayMethods = _ref.autoPayMethods,
36922
36954
  _ref$as = _ref.as,
36923
36955
  as = _ref$as === void 0 ? "p" : _ref$as,
36924
- qaPrefix = _ref.qaPrefix;
36956
+ qaPrefix = _ref.qaPrefix,
36957
+ ariaLabel = _ref.ariaLabel;
36925
36958
  var addText = "Add a".concat(itemName[0].match(/[aieouAIEOU]/) ? "n" : "", " ").concat(itemName);
36926
36959
  return /*#__PURE__*/React.createElement(Box, {
36927
36960
  padding: "0rem 0rem 1.5rem 0rem",
@@ -36981,7 +37014,7 @@ var EditableList = function EditableList(_ref) {
36981
37014
  return removeItem(item.id);
36982
37015
  },
36983
37016
  extraStyles: "min-width: 0;",
36984
- "aria-label": "Remove ".concat(itemName)
37017
+ "aria-label": "Remove ".concat(ariaLabel || itemName)
36985
37018
  })), canEdit && /*#__PURE__*/React.createElement(Box, {
36986
37019
  padding: "0 0.5rem",
36987
37020
  border: "2px solid transparent",
@@ -36995,7 +37028,7 @@ var EditableList = function EditableList(_ref) {
36995
37028
  return editItem(item.id);
36996
37029
  },
36997
37030
  extraStyles: "min-width: 0;",
36998
- "aria-label": "Edit ".concat(itemName)
37031
+ "aria-label": "Edit ".concat(ariaLabel || itemName)
36999
37032
  }))));
37000
37033
  })), canAdd && (!maxItems || items.length < maxItems) && /*#__PURE__*/React.createElement(Box, {
37001
37034
  padding: items.length === 0 ? "0" : "1rem 0 0"
@@ -37188,7 +37221,8 @@ var EmailForm = function EmailForm(_ref) {
37188
37221
  onKeyDown: function onKeyDown(e) {
37189
37222
  return e.key === "Enter" && handleSubmit(e);
37190
37223
  },
37191
- isEmail: true
37224
+ isEmail: true,
37225
+ autocomplete: "email"
37192
37226
  }), showWalletCheckbox && /*#__PURE__*/React.createElement(Checkbox$1, {
37193
37227
  name: "email checkbox",
37194
37228
  title: "Save email address to wallet",
@@ -37240,7 +37274,8 @@ var ForgotPasswordForm = function ForgotPasswordForm(_ref) {
37240
37274
  onKeyDown: function onKeyDown(e) {
37241
37275
  return e.key === "Enter" && handleSubmit(e);
37242
37276
  },
37243
- isEmail: true
37277
+ isEmail: true,
37278
+ autocomplete: "email"
37244
37279
  });
37245
37280
  };
37246
37281
 
@@ -38902,7 +38937,8 @@ var InternalUserInfoForm = function InternalUserInfoForm(_ref) {
38902
38937
  onKeyDown: function onKeyDown(e) {
38903
38938
  return e.key === "Enter" && handleSubmit(e);
38904
38939
  },
38905
- disabled: namesDisabled
38940
+ disabled: namesDisabled,
38941
+ autocomplete: "given-name"
38906
38942
  }), /*#__PURE__*/React.createElement(FormInput$1, {
38907
38943
  labelTextWhenNoError: "Last Name",
38908
38944
  errorMessages: lastNameErrorMessages,
@@ -38912,7 +38948,8 @@ var InternalUserInfoForm = function InternalUserInfoForm(_ref) {
38912
38948
  onKeyDown: function onKeyDown(e) {
38913
38949
  return e.key === "Enter" && handleSubmit(e);
38914
38950
  },
38915
- disabled: namesDisabled
38951
+ disabled: namesDisabled,
38952
+ autocomplete: "family-name"
38916
38953
  }), /*#__PURE__*/React.createElement(FormInput$1, {
38917
38954
  labelTextWhenNoError: "Email",
38918
38955
  errorMessages: emailErrorMessages,
@@ -38922,7 +38959,8 @@ var InternalUserInfoForm = function InternalUserInfoForm(_ref) {
38922
38959
  onKeyDown: function onKeyDown(e) {
38923
38960
  return e.key === "Enter" && handleSubmit(e);
38924
38961
  },
38925
- disabled: emailDisabled
38962
+ disabled: emailDisabled,
38963
+ autocomplete: "email"
38926
38964
  }), formType === PROFILE && /*#__PURE__*/React.createElement(FormInput$1, {
38927
38965
  labelTextWhenNoError: "Password",
38928
38966
  errorMessages: {},
@@ -39066,7 +39104,8 @@ var LoginForm = function LoginForm(_ref) {
39066
39104
  onKeyDown: function onKeyDown(e) {
39067
39105
  return e.key === "Enter" && handleSubmit(e);
39068
39106
  },
39069
- isEmail: true
39107
+ isEmail: true,
39108
+ autocomplete: "email"
39070
39109
  }), /*#__PURE__*/React.createElement(FormInput$1, {
39071
39110
  labelTextWhenNoError: "Password",
39072
39111
  errorMessages: passwordErrorMessages,
@@ -39076,7 +39115,8 @@ var LoginForm = function LoginForm(_ref) {
39076
39115
  showErrors: showErrors,
39077
39116
  onKeyDown: function onKeyDown(e) {
39078
39117
  return e.key === "Enter" && handleSubmit(e);
39079
- }
39118
+ },
39119
+ autocomplete: "current-password"
39080
39120
  }));
39081
39121
  };
39082
39122
 
@@ -41991,7 +42031,8 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
41991
42031
  showErrors: showErrors,
41992
42032
  onKeyDown: function onKeyDown(e) {
41993
42033
  return e.key === "Enter" && handleSubmit(e);
41994
- }
42034
+ },
42035
+ autocomplete: "name"
41995
42036
  }), /*#__PURE__*/React.createElement(FormInput$1, {
41996
42037
  labelTextWhenNoError: "Routing number",
41997
42038
  errorMessages: routingNumberErrors,
@@ -42188,7 +42229,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
42188
42229
  showErrors: showErrors,
42189
42230
  onKeyDown: function onKeyDown(e) {
42190
42231
  return e.key === "Enter" && handleSubmit(e);
42191
- }
42232
+ },
42233
+ autocomplete: "cc-name"
42192
42234
  }), /*#__PURE__*/React.createElement(FormInput$1, {
42193
42235
  labelTextWhenNoError: "Credit card number",
42194
42236
  errorMessages: creditCardNumberErrors,
@@ -42199,7 +42241,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
42199
42241
  onKeyDown: function onKeyDown(e) {
42200
42242
  return e.key === "Enter" && handleSubmit(e);
42201
42243
  },
42202
- isNum: true
42244
+ isNum: true,
42245
+ autocomplete: "cc-number"
42203
42246
  }), /*#__PURE__*/React.createElement(FormInputRow, {
42204
42247
  breakpoint: isMobile ? "1000rem" : "21rem",
42205
42248
  childGap: isMobile ? "0rem" : "1rem"
@@ -42213,7 +42256,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
42213
42256
  onKeyDown: function onKeyDown(e) {
42214
42257
  return e.key === "Enter" && handleSubmit(e);
42215
42258
  },
42216
- isNum: true
42259
+ isNum: true,
42260
+ autocomplete: "cc-exp"
42217
42261
  }), /*#__PURE__*/React.createElement(FormInput$1, {
42218
42262
  labelTextWhenNoError: "CVV",
42219
42263
  errorMessages: cvvErrors,
@@ -42224,7 +42268,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
42224
42268
  background: checkCardBrand(fields.creditCardNumber.rawValue) == "AMEX" ? "/AmexCVVHint.svg" : "/CVVHint.svg",
42225
42269
  onKeyDown: function onKeyDown(e) {
42226
42270
  return e.key === "Enter" && handleSubmit(e);
42227
- }
42271
+ },
42272
+ autocomplete: "cc-csc"
42228
42273
  })), !hideZipCode && /*#__PURE__*/React.createElement(Box, {
42229
42274
  padding: isMobile ? "0" : "0 0.5rem 0 0",
42230
42275
  width: isMobile ? "100%" : "50%"
@@ -42238,7 +42283,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
42238
42283
  showErrors: showErrors,
42239
42284
  onKeyDown: function onKeyDown(e) {
42240
42285
  return e.key === "Enter" && handleSubmit(e);
42241
- }
42286
+ },
42287
+ autocomplete: "billing postal-code"
42242
42288
  })), showWalletCheckbox && /*#__PURE__*/React.createElement(Checkbox$1, {
42243
42289
  name: "credit card checkbox",
42244
42290
  title: "Save credit card to wallet",
@@ -42263,7 +42309,7 @@ var formConfig$8 = {
42263
42309
  },
42264
42310
  expirationDate: {
42265
42311
  validators: [required(), hasLength(4, 4), isValidMonth(0), dateAfterToday("MMYY", "month", true)],
42266
- constraints: [onlyIntegers(), hasLength(0, 4)]
42312
+ constraints: [onlyExpirationDate(), hasLength(0, 4)]
42267
42313
  },
42268
42314
  cvv: {
42269
42315
  validators: [required(), hasLength(3, 4)],
@@ -42322,7 +42368,8 @@ var PhoneForm = function PhoneForm(_ref) {
42322
42368
  onKeyUp: function onKeyUp(e) {
42323
42369
  return e.key === "Enter" && handleSubmit(e);
42324
42370
  },
42325
- isNum: true
42371
+ isNum: true,
42372
+ autocomplete: "tel"
42326
42373
  }), showWalletCheckbox && /*#__PURE__*/React.createElement(Checkbox$1, {
42327
42374
  name: "phone checkbox",
42328
42375
  title: "Save phone number to wallet",
@@ -42612,7 +42659,8 @@ var RegistrationForm = function RegistrationForm(_ref) {
42612
42659
  showErrors: showErrors,
42613
42660
  onKeyDown: function onKeyDown(e) {
42614
42661
  return e.key === "Enter" && handleSubmit(e);
42615
- }
42662
+ },
42663
+ autocomplete: "given-name"
42616
42664
  }), /*#__PURE__*/React.createElement(FormInput$1, {
42617
42665
  labelTextWhenNoError: "Last name",
42618
42666
  errorMessages: lastNameErrorMessages,
@@ -42621,7 +42669,8 @@ var RegistrationForm = function RegistrationForm(_ref) {
42621
42669
  showErrors: showErrors,
42622
42670
  onKeyDown: function onKeyDown(e) {
42623
42671
  return e.key === "Enter" && handleSubmit(e);
42624
- }
42672
+ },
42673
+ autocomplete: "family-name"
42625
42674
  }), /*#__PURE__*/React.createElement(FormInput$1, {
42626
42675
  labelTextWhenNoError: "Email address",
42627
42676
  errorMessages: emailErrorMessages,
@@ -42632,7 +42681,8 @@ var RegistrationForm = function RegistrationForm(_ref) {
42632
42681
  return e.key === "Enter" && handleSubmit(e);
42633
42682
  },
42634
42683
  type: "email",
42635
- isEmail: true
42684
+ isEmail: true,
42685
+ autocomplete: "email"
42636
42686
  }), /*#__PURE__*/React.createElement(FormInput$1, {
42637
42687
  labelTextWhenNoError: "Password",
42638
42688
  errorMessages: passwordErrorMessages,
@@ -42642,7 +42692,8 @@ var RegistrationForm = function RegistrationForm(_ref) {
42642
42692
  onKeyDown: function onKeyDown(e) {
42643
42693
  return e.key === "Enter" && handleSubmit(e);
42644
42694
  },
42645
- type: "password"
42695
+ type: "password",
42696
+ autocomplete: "new-password"
42646
42697
  }), /*#__PURE__*/React.createElement(FormInput$1, {
42647
42698
  labelTextWhenNoError: "Confirm password",
42648
42699
  errorMessages: confirmPasswordErrorMessages,
@@ -42652,7 +42703,8 @@ var RegistrationForm = function RegistrationForm(_ref) {
42652
42703
  onKeyDown: function onKeyDown(e) {
42653
42704
  return e.key === "Enter" && handleSubmit(e);
42654
42705
  },
42655
- type: "password"
42706
+ type: "password",
42707
+ autocomplete: "new-password"
42656
42708
  }), /*#__PURE__*/React.createElement(Box, {
42657
42709
  padding: isMobile ? "0" : "0.5rem 0 0"
42658
42710
  }, /*#__PURE__*/React.createElement(PasswordRequirements, {
@@ -42772,7 +42824,8 @@ var ResetPasswordForm = function ResetPasswordForm(_ref) {
42772
42824
  onKeyDown: function onKeyDown(e) {
42773
42825
  return e.key === "Enter" && handleSubmit(e);
42774
42826
  },
42775
- type: "password"
42827
+ type: "password",
42828
+ autocomplete: "new-password"
42776
42829
  }), /*#__PURE__*/React.createElement(FormInput$1, {
42777
42830
  labelTextWhenNoError: "Confirm password",
42778
42831
  errorMessages: confirmPasswordErrorMessages,
@@ -42782,7 +42835,8 @@ var ResetPasswordForm = function ResetPasswordForm(_ref) {
42782
42835
  onKeyDown: function onKeyDown(e) {
42783
42836
  return e.key === "Enter" && handleSubmit(e);
42784
42837
  },
42785
- type: "password"
42838
+ type: "password",
42839
+ autocomplete: "new-password"
42786
42840
  }), /*#__PURE__*/React.createElement(Box, {
42787
42841
  padding: "0"
42788
42842
  }, /*#__PURE__*/React.createElement(PasswordRequirements, {
@@ -43311,12 +43365,14 @@ var PeriscopeDashboardIframe = function PeriscopeDashboardIframe(_ref) {
43311
43365
  };
43312
43366
  useEffect$1(function () {
43313
43367
  time.timer = setTimeout(function () {
43314
- periscopeDataRequestFailure();
43368
+ if (!periscopeDataSuccess) {
43369
+ periscopeDataRequestFailure();
43370
+ }
43315
43371
  }, 10000);
43316
43372
  return function () {
43317
43373
  return clearTimeout(time.timer);
43318
43374
  };
43319
- }, []);
43375
+ }, [periscopeDataSuccess]);
43320
43376
 
43321
43377
  var Dashboard = function Dashboard(height) {
43322
43378
  return function (url) {