@sheerid/jslib 1.90.0 → 1.91.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 (99) 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/manifest.json +46 -46
  40. package/package.json +2 -1
  41. package/sheerid-requestOrg.css +4 -4
  42. package/sheerid-requestOrg.js +14 -14
  43. package/sheerid-requestOrg.js.map +1 -1
  44. package/sheerid-utils.js +9 -9
  45. package/sheerid-utils.js.map +1 -1
  46. package/sheerid.css +4 -4
  47. package/sheerid.js +18 -18
  48. package/sheerid.js.map +1 -1
  49. package/sheerides6.js +1598 -32
  50. package/sheerides6.js.map +1 -1
  51. package/src/components/AcceptableUploadsComponent/AcceptableUploadsComponent.d.ts +1 -0
  52. package/src/components/CustomCssWrapperComponent.d.ts +1 -0
  53. package/src/components/CustomTextWrapper.d.ts +1 -0
  54. package/src/components/FaqLink/FaqLinkComponent.d.ts +1 -0
  55. package/src/components/FeatureFlags/flags.d.ts +14 -0
  56. package/src/components/FeatureFlags/hooks.d.ts +3 -0
  57. package/src/components/FormFields/MarketConsentWrapper/MarketConsentWrapperComponent.d.ts +1 -0
  58. package/src/components/FormFields/OptIn/OptInComponent.d.ts +1 -0
  59. package/src/components/FormFields/PostalCode/PostalCodeComponent.d.ts +1 -0
  60. package/src/components/FormFooter/FormFooterComponent.d.ts +1 -0
  61. package/src/components/FormInputs/InputSelect/InputSelectButton/InputSelectButtonComponent.d.ts +1 -0
  62. package/src/components/FormInputs/InputSelect/InputSelectComponent.d.ts +1 -0
  63. package/src/components/FormInputs/InputSelect/InputSelectList/InputSelectListComponent.d.ts +1 -0
  64. package/src/components/FormInputs/OptInInput/OptInInputComponent.d.ts +1 -0
  65. package/src/components/FormInputs/Select/SelectButton/SelectButtonComponent.d.ts +1 -0
  66. package/src/components/FormInputs/Select/SelectComponent.d.ts +1 -0
  67. package/src/components/FormInputs/Select/SelectList/SelectListComponent.d.ts +1 -0
  68. package/src/components/FormInputs/Typeahead/TypeaheadComponent.d.ts +1 -0
  69. package/src/components/FormWrapper/FormWrapperComponent.d.ts +1 -0
  70. package/src/components/LoadStepComponent.d.ts +1 -0
  71. package/src/components/LoadingSpinner/LoadingSpinnerComponent.d.ts +1 -0
  72. package/src/components/LogoComponent/LogoComponent.d.ts +1 -0
  73. package/src/components/NewVerificationInnerComponent.d.ts +1 -0
  74. package/src/components/PoweredBy/PoweredByComponent.d.ts +1 -0
  75. package/src/components/RequestOrganization/NewRequestOrganizationComponent.d.ts +1 -0
  76. package/src/components/RequestOrganization/NewRequestOrganizationInnerComponent.d.ts +1 -0
  77. package/src/components/RequestOrganization/OrganizationResultComponent.d.ts +1 -0
  78. package/src/components/RequestOrganization/RequestOrganizationErrorComponent.d.ts +1 -0
  79. package/src/components/RequestOrganization/RequestOrganizationFormComponent.d.ts +1 -0
  80. package/src/components/RequestOrganization/RequestOrganizationFormFooterComponent.d.ts +1 -0
  81. package/src/components/RequestOrganization/RequestOrganizationLoadStepComponent.d.ts +1 -0
  82. package/src/components/RequestOrganization/RequestOrganizationSearchResultComponent.d.ts +1 -0
  83. package/src/components/RequestOrganization/RequestOrganizationSuccessComponent.d.ts +1 -0
  84. package/src/components/RequestOrganization/SearchFieldComponent.d.ts +1 -0
  85. package/src/components/RewardsRemaining/RewardsRemainingComponent.d.ts +1 -0
  86. package/src/components/ScreenReaderLabelComponent.d.ts +1 -0
  87. package/src/components/StepMilitaryPersonalInfo/StepCollectMilitaryStatusComponent.d.ts +1 -0
  88. package/src/components/StepPending/ReviewPendingComponent.d.ts +1 -0
  89. package/src/components/StepPending/SSOPendingComponent.d.ts +1 -0
  90. package/src/components/StepSSO/StepSSOComponent.d.ts +1 -0
  91. package/src/components/StepSocialSecurityNumber/SsnChoice.d.ts +1 -0
  92. package/src/components/StepSuccess/StepSuccessComponent.d.ts +1 -0
  93. package/src/components/TestModeFlag/TestModeFlagComponent.d.ts +1 -0
  94. package/src/components/TryAgainButtonComponent.d.ts +1 -0
  95. package/src/components/UploadInfoComponent/UploadInfoComponent.d.ts +1 -0
  96. package/src/constants.d.ts +10 -0
  97. package/src/lib/types/types.d.ts +1 -0
  98. package/src/lib/utils/customTagReplacer/index.d.ts +1 -0
  99. package/types-reference.zip +0 -0
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { VerificationService } from "../../lib/types/types";
2
3
  interface Props {
3
4
  verificationService: VerificationService;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface Props {
2
3
  styles?: string;
3
4
  children?: JSX.Element | any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface CustomTextWrapperProps {
2
3
  dangerouslySetInnerHTML?: any;
3
4
  }
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { VerificationService } from "../../lib/types/types";
2
3
  interface Props {
3
4
  verificationService: VerificationService;
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Flags is our TS modeling of the flags provided by Launch Darkly.
3
+ * our hooks use this to know what is available.
4
+ *
5
+ * The LD React library converts all flag keys to camelCase
6
+ * https://docs.launchdarkly.com/sdk/client-side/react/react-web#flag-keys
7
+ * We use the camelCased versions here.
8
+ *
9
+ * When a flag is added here it should reference its removal ticket.
10
+ */
11
+ export declare type Flags = Partial<{
12
+ unknownTest: string;
13
+ }>;
14
+ export declare type FlagNames = keyof Flags;
@@ -0,0 +1,3 @@
1
+ import { FlagNames, Flags } from "./flags";
2
+ export declare const useFlag: (name: FlagNames) => string;
3
+ export declare const useFlags: () => Flags;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { VerificationService, ViewModel } from "../../../lib/types/types";
2
3
  interface MarketConsentWrapperProps {
3
4
  verificationService: VerificationService;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FormFieldComponentProps } from "../../../lib/types/types";
2
3
  declare const OptInComponent: ({ isErrored, isRequired, onChange, value, verificationService, }: FormFieldComponentProps) => JSX.Element;
3
4
  export { OptInComponent };
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FormFieldComponentProps } from "../../../lib/types/types";
2
3
  interface PassedProps {
3
4
  explanation?: string | JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { VerificationService } from "../../lib/types/types";
2
3
  interface FormFooterProps {
3
4
  verificationService: VerificationService;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface InputSelectButtonProps {
2
3
  clearSelection: any;
3
4
  getToggleButtonProps: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FormSelectChoice, InputSelectOnKeyDown, FieldId, ExtendedFieldId } from "../../../lib/types/types";
2
3
  interface InputSelectProps {
3
4
  onChange: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FormSelectChoice } from "../../../../lib/types/types";
2
3
  interface InputSelectListProps {
3
4
  getItemProps: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface OptInInputProps {
2
3
  id?: string;
3
4
  isErrored: boolean;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface SelectButtonProps {
2
3
  getToggleButtonProps: any;
3
4
  isOpen: boolean;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FormSelectChoice } from "../../../lib/types/types";
2
3
  interface SelectProps {
3
4
  className?: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FormSelectChoice } from "../../../../lib/types/types";
2
3
  interface SelectListProps {
3
4
  getItemProps: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Organization, DatabaseId, Country, Locale } from "../../../lib/types/types";
2
3
  interface TypeaheadProps {
3
4
  onChange: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const FormWrapperComponent: ({ children }: {
2
3
  children: any;
3
4
  }) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { VerificationStep, VerificationService } from "../lib/types/types";
2
3
  interface Props {
3
4
  stepToLoad: VerificationStep;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const LoadingSpinnerComponent: () => JSX.Element;
2
3
  export { LoadingSpinnerComponent };
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { VerificationService } from "../../lib/types/types";
2
3
  interface LogoProps {
3
4
  verificationService: VerificationService;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ProgramTheme, VerificationService } from "../lib/types/types";
2
3
  export declare const NewVerificationInnerComponent: ({ locale, messages, programTheme, verificationService, }: {
3
4
  locale: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { VerificationService } from "../../lib/types/types";
2
3
  interface Props {
3
4
  verificationService: VerificationService;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { DatabaseId, RequestOrganizationViewModel } from "../../lib/types/types";
2
3
  interface NewRequestOrganizationFormComponentProps {
3
4
  programId: DatabaseId;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export declare const NewInnerRequestOrganizationFormComponent: ({ locale, messages, requestOrganizationService, }: {
2
3
  locale: any;
3
4
  messages: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Organization } from "../../lib/types/types";
2
3
  interface OrganizationResultComponentProps {
3
4
  organization: Organization;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { RequestOrganizationService } from "../../lib/types/types";
2
3
  interface RequestOrganizationErrorComponentProps {
3
4
  requestOrganizationService: RequestOrganizationService;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { DatabaseId, RequestOrganizationViewModel } from "../../lib/types/types";
2
3
  interface RequestOrganizationFormComponentProps {
3
4
  programId: DatabaseId;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface RequestOrganizationFormFooterComponentProps {
2
3
  faqUrl: string;
3
4
  }
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { RequestOrganizationService } from "../../lib/types/types";
2
3
  interface RequestOrganizationLoadStepComponentProps {
3
4
  requestOrganizationService: RequestOrganizationService;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Organization } from "../../lib/types/types";
2
3
  interface RequestOrganizationSearchResultComponentProps {
3
4
  eligibleOrgs: Organization[];
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { RequestOrganizationService } from "../../lib/types/types";
2
3
  interface RequestOrganizationSuccessComponentProps {
3
4
  requestOrganizationService: RequestOrganizationService;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface SearchFieldComponentProps {
2
3
  name: string;
3
4
  label: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { VerificationService } from "../../lib/types/types";
2
3
  export declare const RewardsRemainingComponent: ({ verificationService, }: {
3
4
  verificationService: VerificationService;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const ScreenReaderLabelComponent: {
2
3
  ({ children, labelId, labelText, }: {
3
4
  children: JSX.Element | string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { VerificationService } from "../../es6";
2
3
  interface StepCollectMilitaryStatusComponentProps {
3
4
  verificationService: VerificationService;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { MaxReviewTime, VerificationService, PendingResponse } from "../../es6";
2
3
  interface ReviewPendingProps {
3
4
  intl: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export declare const SSOPendingComponent: ({ logo, cancelSSO }: {
2
3
  logo: any;
3
4
  cancelSSO: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { VerificationService } from "../../lib/types/types";
2
3
  interface StepSSOProps {
3
4
  verificationService: VerificationService;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare type Props = {
2
3
  useSsn: () => void;
3
4
  useDocUpload: () => void;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { VerificationService } from "../../lib/types/types";
2
3
  interface StepSuccessProps {
3
4
  verificationService: VerificationService;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { VerificationService } from "../../lib/types/types";
2
3
  interface Props {
3
4
  verificationService: VerificationService;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { VerificationService } from "../lib/types/types";
2
3
  interface TryAgainButtonComponentProps {
3
4
  verificationService: VerificationService;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { VerificationService } from "../../lib/types/types";
2
3
  interface Props {
3
4
  verificationService: VerificationService;
@@ -1,6 +1,16 @@
1
1
  import { Locale } from "./lib/types/types";
2
2
  export declare const DEFAULT_LOCALE: Locale;
3
3
  export declare const DEFAULT_CDN_BASE_URL: string;
4
+ export declare const ENVIRONMENT: {
5
+ PREVIEW: string;
6
+ STAGING: string;
7
+ PRODUCTION: string;
8
+ };
9
+ export declare const API_BASE_URL: {
10
+ PREVIEW: string;
11
+ STAGING: string;
12
+ PRODUCTION: string;
13
+ };
4
14
  export declare const ACCEPTED_DOC_MIME_TYPES: string[];
5
15
  export declare const MAX_DOC_UPLOAD_DOCS_ALLOWED: number;
6
16
  export declare const UPLOAD_FILE_PREFIX: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Dispatch, Store } from "redux";
2
3
  import { InjectedIntl } from "react-intl";
3
4
  declare global {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ReactNode } from "react-redux";
2
3
  interface TagMap {
3
4
  [key: string]: string | ((content: string) => string | ReactNode);
Binary file