@sheerid/jslib 1.104.0 → 1.105.0

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.
Files changed (58) hide show
  1. package/es5/Tmetrix.bundle.js +5 -5
  2. package/es5/messages_ar.bundle.js +5 -5
  3. package/es5/messages_bg.bundle.js +5 -5
  4. package/es5/messages_cs.bundle.js +5 -5
  5. package/es5/messages_da.bundle.js +5 -5
  6. package/es5/messages_de.bundle.js +5 -5
  7. package/es5/messages_el.bundle.js +5 -5
  8. package/es5/messages_en-GB.bundle.js +5 -5
  9. package/es5/messages_es-ES.bundle.js +5 -5
  10. package/es5/messages_es.bundle.js +5 -5
  11. package/es5/messages_fi.bundle.js +5 -5
  12. package/es5/messages_fr-CA.bundle.js +5 -5
  13. package/es5/messages_fr.bundle.js +5 -5
  14. package/es5/messages_ga.bundle.js +5 -5
  15. package/es5/messages_hr.bundle.js +5 -5
  16. package/es5/messages_hu.bundle.js +5 -5
  17. package/es5/messages_id.bundle.js +5 -5
  18. package/es5/messages_it.bundle.js +5 -5
  19. package/es5/messages_iw.bundle.js +5 -5
  20. package/es5/messages_ja.bundle.js +5 -5
  21. package/es5/messages_ko.bundle.js +5 -5
  22. package/es5/messages_lo.bundle.js +5 -5
  23. package/es5/messages_lt.bundle.js +5 -5
  24. package/es5/messages_ms.bundle.js +5 -5
  25. package/es5/messages_nl.bundle.js +5 -5
  26. package/es5/messages_no.bundle.js +5 -5
  27. package/es5/messages_pl.bundle.js +5 -5
  28. package/es5/messages_pt-BR.bundle.js +5 -5
  29. package/es5/messages_pt.bundle.js +5 -5
  30. package/es5/messages_ru.bundle.js +5 -5
  31. package/es5/messages_sk.bundle.js +5 -5
  32. package/es5/messages_sl.bundle.js +5 -5
  33. package/es5/messages_sr.bundle.js +5 -5
  34. package/es5/messages_sv.bundle.js +5 -5
  35. package/es5/messages_th.bundle.js +5 -5
  36. package/es5/messages_tr.bundle.js +5 -5
  37. package/es5/messages_zh-HK.bundle.js +5 -5
  38. package/es5/messages_zh.bundle.js +5 -5
  39. package/es6/{en-GB-5eb8e845.es.js → en-GB-52e5c64c.es.js} +3 -3
  40. package/es6/{en-GB-5eb8e845.es.js.map → en-GB-52e5c64c.es.js.map} +1 -1
  41. package/localized-messages/en-GB.json +2 -2
  42. package/localized-messages/en-US.json +2 -2
  43. package/manifest.json +46 -46
  44. package/package.json +1 -1
  45. package/sheerid-requestOrg.css +4 -4
  46. package/sheerid-requestOrg.js +7 -7
  47. package/sheerid-requestOrg.js.map +1 -1
  48. package/sheerid-utils.js +9 -9
  49. package/sheerid-utils.js.map +1 -1
  50. package/sheerid.css +4 -4
  51. package/sheerid.js +7 -7
  52. package/sheerid.js.map +1 -1
  53. package/sheerides6.js +32 -15
  54. package/sheerides6.js.map +1 -1
  55. package/src/lib/VerificationService/VerificationServiceActions.d.ts +5 -0
  56. package/src/lib/VerificationService/VerificationServiceHelpers.d.ts +1 -1
  57. package/src/lib/types/types.d.ts +3 -0
  58. package/types-reference.zip +0 -0
@@ -42,6 +42,11 @@ export declare const createUpdateLocale: CreateUpdateProps;
42
42
  * @param dispatch
43
43
  */
44
44
  export declare const createUpdateProgramTheme: BoundActionCreator;
45
+ /**
46
+ * @description Perform a full reset of the in-memory state
47
+ * Useful to fully reset the form and start over again, similar to a page refresh.
48
+ */
49
+ export declare const createResetState: (dispatch: Dispatch) => BoundAction;
45
50
  /**
46
51
  * @description Action creator to update the field validation errors, which are those that are shown to a user as they fill-in the HTML form.
47
52
  * @param dispatch
@@ -18,7 +18,7 @@ export declare const initViewModel: ({ previousViewModel, currentStep, locale, f
18
18
  fingerprint?: string;
19
19
  country?: Country;
20
20
  }) => ViewModel;
21
- export declare const clearUploadedFiles: (viewModel: DocUploadViewModel) => void;
21
+ export declare const clearUploadedFiles: (viewModel: DocUploadViewModel) => DocUploadViewModel | undefined;
22
22
  export declare const collectThreatMetrixProfile: (verificationId: string) => Promise<void>;
23
23
  export declare const enhanceOrganizationFromTheme: (viewModel: ViewModel, programTheme: ProgramTheme) => ViewModel;
24
24
  export declare const determineCountry: (verificationResponse: VerificationResponse, countries: Country[]) => Country;
@@ -457,6 +457,7 @@ export declare type MemberPersonalInfoRequest = {
457
457
  address1?: string;
458
458
  city?: string;
459
459
  state?: string;
460
+ country?: Country;
460
461
  } & WithOrganization & WithCoreFields;
461
462
  export declare type MemberPersonalInfoViewModel = MemberPersonalInfoRequest & WithLocaleAndCountry & WithFieldsToSkipValidation;
462
463
  /**
@@ -492,6 +493,7 @@ export declare type EmploymentPersonalInfoRequest = {
492
493
  postalCode: string;
493
494
  phoneNumber?: PhoneNumber;
494
495
  shouldCollectAddress?: Boolean;
496
+ country?: Country;
495
497
  } & WithAddress & WithOrganization & WithCoreFields;
496
498
  export declare type SMSLoopVerificationRequest = {
497
499
  smsCode: string;
@@ -1479,6 +1481,7 @@ export interface VerificationServiceFunctions {
1479
1481
  readonly updateFieldValidationErrors: (fieldValidationErrors: FieldValidationErrors) => void;
1480
1482
  readonly submitStep: (stepName: VerificationStep, viewModel: ViewModel, previousResponse: VerificationResponse) => Promise<void>;
1481
1483
  readonly updateLocale: (viewModel: ViewModel, programTheme: ProgramTheme, segment: Segment) => void;
1484
+ readonly resetState: () => void;
1482
1485
  }
1483
1486
  /**
1484
1487
  * @description View-Model Request Organization Service
Binary file