@getpara/react-common 1.8.0 → 2.0.0-alpha.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.
Files changed (36) hide show
  1. package/dist/classes/ParaInternal.d.ts +16 -16
  2. package/dist/components/UserIdentifier.d.ts +4 -2
  3. package/dist/components/common.d.ts +3 -3
  4. package/dist/index.js +1279 -5
  5. package/dist/index.js.br +0 -0
  6. package/dist/index.js.gz +0 -0
  7. package/dist/types/externalWalletCommon.d.ts +79 -0
  8. package/dist/types/index.d.ts +3 -2
  9. package/dist/utils/index.d.ts +0 -1
  10. package/package.json +5 -6
  11. package/dist/chunk-IV3L3JVM.js +0 -46
  12. package/dist/classes/ParaInternal.js +0 -25
  13. package/dist/classes/index.js +0 -2
  14. package/dist/components/HeroSpinner.js +0 -55
  15. package/dist/components/KnownDevices.js +0 -60
  16. package/dist/components/MoonPayEmbed.js +0 -195
  17. package/dist/components/QRCode.js +0 -80
  18. package/dist/components/RampEmbed.js +0 -103
  19. package/dist/components/StripeEmbed.js +0 -138
  20. package/dist/components/UserIdentifier.js +0 -73
  21. package/dist/components/common.js +0 -54
  22. package/dist/components/index.js +0 -9
  23. package/dist/constants/aaguiMetadata.js +0 -145
  24. package/dist/hooks/index.js +0 -2
  25. package/dist/hooks/useCopyToClipboard.js +0 -36
  26. package/dist/package.json +0 -6
  27. package/dist/types/index.js +0 -1
  28. package/dist/utils/formatBiometricHints.js +0 -51
  29. package/dist/utils/formatPhoneNumber.d.ts +0 -1
  30. package/dist/utils/formatPhoneNumber.js +0 -25
  31. package/dist/utils/getBrowserName.js +0 -7
  32. package/dist/utils/getDeviceLogo.js +0 -36
  33. package/dist/utils/getDeviceModelName.js +0 -21
  34. package/dist/utils/getExternalWalletDisplayName.js +0 -22
  35. package/dist/utils/index.js +0 -113
  36. package/dist/utils/offRampSend.js +0 -71
@@ -1,25 +1,25 @@
1
1
  import ParaWeb from '@getpara/web-sdk';
2
2
  export declare class ParaInternal extends ParaWeb {
3
+ setupAfterLogin: ({ temporaryShares, skipSessionRefresh, }?: {
4
+ temporaryShares?: any[];
5
+ skipSessionRefresh?: boolean;
6
+ }) => Promise<void>;
3
7
  getSupportedCreateAuthMethods: () => Promise<Set<import("@getpara/web-sdk").AuthMethod>>;
4
- isUsingExternalWallet: () => boolean;
5
8
  getTransmissionKeyShares: ({ isForNewDevice }?: {
6
9
  isForNewDevice?: boolean;
7
10
  }) => Promise<any>;
8
- userSetupAfterLogin: () => Promise<{
9
- data: {
10
- partnerId?: string;
11
- needsWallet?: boolean;
12
- sessionLookupId: string;
13
- };
14
- }>;
11
+ userSetupAfterLogin: () => Promise<import("@getpara/user-management-client").SessionInfo>;
15
12
  setLoginEncryptionKeyPair: (keyPair?: import("node-forge").pki.rsa.KeyPair) => Promise<void>;
16
- getPortalURL: (partnerId?: string) => Promise<string>;
13
+ getPortalURL: () => Promise<string>;
17
14
  isProviderModalDisabled: () => boolean;
18
- supportedAuthMethods: (auth: import("@getpara/user-management-client").Auth) => Promise<Set<import("@getpara/web-sdk").AuthMethod>>;
19
- getUserBiometricLocationHints: () => Promise<import("@getpara/user-management-client").BiometricLocationHint[]>;
20
- exitLoops: () => void;
21
- exitLogin: () => void;
22
- exitAccountCreation: () => void;
23
- exitOAuth: () => void;
24
- exitFarcaster: () => void;
15
+ setAuth: (auth: import("@getpara/user-management-client").PrimaryAuth, { extras, userId }?: {
16
+ extras?: import("@getpara/web-sdk").AuthExtras;
17
+ userId?: string;
18
+ }) => Promise<typeof this.authInfo>;
19
+ supportedAuthMethods: (auth: import("@getpara/user-management-client").Auth<import("@getpara/user-management-client").PrimaryAuthType | "userId">) => Promise<Set<import("@getpara/web-sdk").AuthMethod>>;
20
+ constructPortalUrl: (type: import("@getpara/core-sdk/dist/types/types").PortalUrlType, opts?: import("@getpara/core-sdk/dist/types/types").PortalUrlOptions) => Promise<string>;
21
+ getNewCredentialAndUrl: ({ authMethod, isForNewDevice, portalTheme, shorten, }?: import("@getpara/core-sdk/dist/types/types").NewCredentialUrlParams) => Promise<{
22
+ credentialId: string;
23
+ url: string;
24
+ }>;
25
25
  }
@@ -1,2 +1,4 @@
1
- import { ModalAuthInfo } from '../types/index.js';
2
- export declare const UserIdentifier: ({ identifier, authType, displayName, pfpUrl }: ModalAuthInfo) => import("react/jsx-runtime").JSX.Element;
1
+ import { CoreAuthInfo } from '@getpara/web-sdk';
2
+ export declare const UserIdentifier: ({ authInfo }: {
3
+ authInfo?: CoreAuthInfo;
4
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -4,6 +4,6 @@ export declare const CenteredColumnContainer: import("styled-components/dist/typ
4
4
  export declare const FilledDisabledInput: typeof CpslInput;
5
5
  export declare const FullWidthFilledDisabledInput: typeof CpslInput;
6
6
  export declare const CenteredText: typeof CpslText;
7
- export declare const HeaderButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<Omit<any, "ref"> & import("react").RefAttributes<any>, "ref"> & {
8
- ref?: import("react").Ref<any>;
9
- }, never>> & string & Omit<import("react").ForwardRefExoticComponent<Omit<any, "ref"> & import("react").RefAttributes<any>>, keyof import("react").Component<any, {}, any>>;
7
+ export declare const HeaderButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("@getpara/core-components").JSX.CpslButton & Omit<import("react").HTMLAttributes<HTMLCpslButtonElement>, "style"> & import("@getpara/react-components/dist/types/components/stencil-generated/react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLCpslButtonElement>, "ref"> & {
8
+ ref?: import("react").Ref<HTMLCpslButtonElement>;
9
+ }, never>> & string & Omit<import("react").ForwardRefExoticComponent<import("@getpara/core-components").JSX.CpslButton & Omit<import("react").HTMLAttributes<HTMLCpslButtonElement>, "style"> & import("@getpara/react-components/dist/types/components/stencil-generated/react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLCpslButtonElement>>, keyof import("react").Component<any, {}, any>>;