@make-software/csprclick-ui 1.10.3 → 1.12.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.
@@ -1,7 +1,7 @@
1
- import { CSPRClickSDK } from '@make-software/csprclick-core-client';
1
+ import { ICSPRClickSDK } from '@make-software/csprclick-core-types';
2
2
  import { ThemeModeType } from '../types';
3
3
  interface BuyCsprContainerProps {
4
- clickRef: CSPRClickSDK;
4
+ clickRef: ICSPRClickSDK;
5
5
  themeMode?: ThemeModeType;
6
6
  onModalClose: () => void;
7
7
  }
@@ -1,8 +1,7 @@
1
- import CSPRClickSDK from '@make-software/csprclick-core-client/sdk';
2
- import { CsprClickInitOptions } from '@make-software/csprclick-core-client';
1
+ import { CsprClickInitOptions, ICSPRClickSDK } from '@make-software/csprclick-core-types';
3
2
  declare global {
4
3
  interface Window {
5
- csprclick: CSPRClickSDK;
4
+ csprclick: ICSPRClickSDK;
6
5
  csprClickSDKAsyncInit: any;
7
6
  }
8
7
  }
@@ -12,5 +11,5 @@ interface ClickProviderProps {
12
11
  children: any;
13
12
  }
14
13
  export declare function ClickProvider(props: ClickProviderProps): import("react/jsx-runtime").JSX.Element;
15
- export declare function useClickRef(): CSPRClickSDK;
14
+ export declare function useClickRef(): ICSPRClickSDK;
16
15
  export default ClickProvider;
@@ -1,5 +1,5 @@
1
1
  import { AccountType, LedgerConnectionStatusEvent, MetamaskConnectionStatusEvent } from '@make-software/csprclick-core-types';
2
- import { CSPRClickSDK } from '@make-software/csprclick-core-client';
2
+ import { ICSPRClickSDK } from '@make-software/csprclick-core-types';
3
3
  import { ThemeModeType } from '../types';
4
4
  export type ProviderConnectionStatus = {
5
5
  status: MetamaskConnectionStatusEvent | LedgerConnectionStatusEvent;
@@ -15,7 +15,7 @@ export type ProviderConnectionStatus = {
15
15
  signatureHex?: string;
16
16
  };
17
17
  interface ProviderConnectionProps {
18
- clickRef: CSPRClickSDK;
18
+ clickRef: ICSPRClickSDK;
19
19
  event: ProviderConnectionStatus;
20
20
  themeMode?: ThemeModeType;
21
21
  onModalClose?: () => void;
@@ -1,9 +1,8 @@
1
- import { AccountType } from '@make-software/csprclick-core-types';
2
- import { CSPRClickSDK } from '@make-software/csprclick-core-client';
1
+ import { AccountType, ICSPRClickSDK } from '@make-software/csprclick-core-types';
3
2
  import { ThemeModeType } from '../../types';
4
3
  interface ListAccountsProps {
5
4
  appName: string;
6
- clickRef: CSPRClickSDK;
5
+ clickRef: ICSPRClickSDK;
7
6
  accounts: Array<AccountType>;
8
7
  firstAcctIndex: number;
9
8
  onAccountClick: (acc: AccountType) => Promise<void>;
@@ -2,9 +2,11 @@ import React from 'react';
2
2
  import { Provider } from '../../types';
3
3
  interface SocialLoginProps {
4
4
  providers: Provider[];
5
+ onProviderClick: (e: any) => void;
6
+ clickRef: any;
5
7
  }
6
8
  export declare const ItemContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
7
9
  export declare const StyledWrapper: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<import("@make-software/cspr-design").FlexRowProps & React.RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {}, never>;
8
10
  export declare const StyledButton: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<import("@make-software/cspr-design").ButtonProps & React.RefAttributes<HTMLButtonElement>>, import("styled-components").DefaultTheme, {}, never>;
9
- declare const SocialLogin: ({ providers }: SocialLoginProps) => import("react/jsx-runtime").JSX.Element;
11
+ declare const SocialLogin: ({ providers, onProviderClick, clickRef }: SocialLoginProps) => import("react/jsx-runtime").JSX.Element;
10
12
  export default SocialLogin;
@@ -3,7 +3,7 @@ import { AccountType } from '@make-software/csprclick-core-types';
3
3
  import { CurrencySettings, LanguageSettings, NetworkSettings, ThemeModeType, CustomTopBarMenuSettings } from '../types';
4
4
  export declare const BannerLink: import("styled-components").StyledComponent<"a", import("styled-components").DefaultTheme, {}, never>;
5
5
  interface TopBarProps {
6
- account?: AccountType;
6
+ account?: AccountType | null;
7
7
  ssoAccounts?: AccountType[];
8
8
  currencyCode?: string;
9
9
  onSignIn: () => void;
@@ -1,2 +1,2 @@
1
1
  import { CarouselItemProps } from './types';
2
- export declare const AccountTokensCarouselItem: ({ balanceInfo, ticker }: CarouselItemProps) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const AccountTokensCarouselItem: ({ balanceInfo }: CarouselItemProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
- import { CSPRClickSDK } from '@make-software/csprclick-core-client';
2
- export declare const transactionReviewHandler: (event: any, clickRef: CSPRClickSDK) => void;
1
+ import { ICSPRClickSDK } from '@make-software/csprclick-core-types';
2
+ export declare const transactionReviewHandler: (event: any, clickRef: ICSPRClickSDK) => void;
@@ -0,0 +1,9 @@
1
+ import { ThemeModeType } from '../types';
2
+ interface WalletConnectSignatureInstructionsProps {
3
+ deployHash: string;
4
+ deviceTitle: string;
5
+ warningInfo?: any;
6
+ themeMode?: ThemeModeType;
7
+ }
8
+ export declare const WalletConnectSignatureInstructions: (props: WalletConnectSignatureInstructionsProps) => import("react/jsx-runtime").JSX.Element;
9
+ export {};
@@ -1,5 +1,4 @@
1
- import { AccountType, WCConnectionStatusEvent, WCPairing } from '@make-software/csprclick-core-types';
2
- import { CSPRClickSDK } from '@make-software/csprclick-core-client';
1
+ import { AccountType, ICSPRClickSDK, WCConnectionStatusEvent, WCPairing } from '@make-software/csprclick-core-types';
3
2
  import { ThemeModeType } from '../types';
4
3
  export type WalletConnectStatus = {
5
4
  status: WCConnectionStatusEvent;
@@ -13,7 +12,7 @@ export type WalletConnectStatus = {
13
12
  error?: any;
14
13
  };
15
14
  interface WalletConnectConnectionProps {
16
- clickRef: CSPRClickSDK;
15
+ clickRef: ICSPRClickSDK;
17
16
  event: WalletConnectStatus;
18
17
  themeMode?: ThemeModeType;
19
18
  onModalClose?: () => void;
@@ -1,9 +1,8 @@
1
- import { AccountType } from '@make-software/csprclick-core-types';
2
- import { CSPRClickSDK } from '@make-software/csprclick-core-client';
1
+ import { AccountType, ICSPRClickSDK } from '@make-software/csprclick-core-types';
3
2
  import { ThemeModeType } from '../../types';
4
3
  interface ListAccountsProps {
5
4
  appName: string;
6
- clickRef: CSPRClickSDK;
5
+ clickRef: ICSPRClickSDK;
7
6
  accounts: Array<AccountType>;
8
7
  onAccountClick: (acc: AccountType) => Promise<void>;
9
8
  onUseAnotherAccountClick: () => Promise<void>;
@@ -1,10 +1,11 @@
1
1
  import { ThemeModeType } from '../../types';
2
- import { CSPRClickSDK } from '@make-software/csprclick-core-client';
2
+ import { AccountType, ICSPRClickSDK } from '@make-software/csprclick-core-types';
3
3
  interface NewPairingProps {
4
4
  pairingUri: string;
5
5
  appName: string;
6
+ accounts?: Array<AccountType>;
6
7
  themeMode?: ThemeModeType;
7
- clickRef: CSPRClickSDK;
8
+ clickRef: ICSPRClickSDK;
8
9
  }
9
- export declare const NewPairing: ({ pairingUri, appName, clickRef }: NewPairingProps) => import("react/jsx-runtime").JSX.Element;
10
+ export declare const NewPairing: ({ pairingUri, appName, accounts, clickRef }: NewPairingProps) => import("react/jsx-runtime").JSX.Element;
10
11
  export {};
@@ -1,9 +1,8 @@
1
- import { WCPairing } from '@make-software/csprclick-core-types';
2
- import { CSPRClickSDK } from '@make-software/csprclick-core-client';
1
+ import { ICSPRClickSDK, WCPairing } from '@make-software/csprclick-core-types';
3
2
  import { ThemeModeType } from '../../types';
4
3
  interface PairedWalletsProps {
5
4
  appName: string;
6
- clickRef: CSPRClickSDK;
5
+ clickRef: ICSPRClickSDK;
7
6
  pairings: Array<WCPairing>;
8
7
  onWalletClick: (wallet: WCPairing) => Promise<void>;
9
8
  onNewPairing: () => Promise<void>;
@@ -1,6 +1,6 @@
1
- import { CSPRClickSDK } from '@make-software/csprclick-core-client';
1
+ import { ICSPRClickSDK } from '@make-software/csprclick-core-types';
2
2
  interface FooterPoliciesProps {
3
- clickRef: CSPRClickSDK;
3
+ clickRef: ICSPRClickSDK;
4
4
  }
5
5
  export declare function FooterPolicies({ clickRef }: FooterPoliciesProps): import("react/jsx-runtime").JSX.Element;
6
6
  export default FooterPolicies;
@@ -3,4 +3,5 @@ export declare const useMobileDevice: () => {
3
3
  isAndroid: boolean;
4
4
  androidVersion: string | undefined;
5
5
  iOSVersion: string | number;
6
+ isRunningOnProviderInAppBrowser: string | undefined;
6
7
  };
package/dist/index.d.ts CHANGED
@@ -1,9 +1,7 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { WALLET_KEYS, AccountType, BadgeSettings } from '@make-software/csprclick-core-types';
2
+ import { WALLET_KEYS, AccountType, ICSPRClickSDK, CsprClickInitOptions, BadgeSettings } from '@make-software/csprclick-core-types';
3
3
  import * as styled_components from 'styled-components';
4
4
  import * as _make_software_cspr_design from '@make-software/cspr-design';
5
- import CSPRClickSDK from '@make-software/csprclick-core-client/sdk';
6
- import { CsprClickInitOptions } from '@make-software/csprclick-core-client';
7
5
  import React from 'react';
8
6
 
9
7
  declare const CURRENCY = "CURRENCY";
@@ -379,7 +377,7 @@ declare const OneClickSignInInner: (props: OneClickSignInProps) => react_jsx_run
379
377
 
380
378
  declare global {
381
379
  interface Window {
382
- csprclick: CSPRClickSDK;
380
+ csprclick: ICSPRClickSDK;
383
381
  csprClickSDKAsyncInit: any;
384
382
  }
385
383
  }
@@ -389,7 +387,7 @@ interface ClickProviderProps {
389
387
  children: any;
390
388
  }
391
389
  declare function ClickProvider(props: ClickProviderProps): react_jsx_runtime.JSX.Element;
392
- declare function useClickRef(): CSPRClickSDK;
390
+ declare function useClickRef(): ICSPRClickSDK;
393
391
 
394
392
  interface ClickModalProps {
395
393
  modalAction: string;
@@ -444,7 +442,7 @@ declare const SignIn: (props: SignInSceneProps) => react_jsx_runtime.JSX.Element
444
442
 
445
443
  declare const BannerLink: styled_components.StyledComponent<"a", styled_components.DefaultTheme, {}, never>;
446
444
  interface TopBarProps {
447
- account?: AccountType;
445
+ account?: AccountType | null;
448
446
  ssoAccounts?: AccountType[];
449
447
  currencyCode?: string;
450
448
  onSignIn: () => void;