@make-software/csprclick-ui 1.11.0 → 1.12.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/cjs/lib/index.js +16 -15
- package/dist/cjs/lib/lib/BuyCspr/BuyCSPRContainer.d.ts +2 -2
- package/dist/cjs/lib/lib/Click.d.ts +3 -4
- package/dist/cjs/lib/lib/ProviderConnection/ProviderConnection.d.ts +2 -2
- package/dist/cjs/lib/lib/ProviderConnection/components/ListAccounts.d.ts +2 -3
- package/dist/cjs/lib/lib/TopBar/components/AccountTokensCarousel/AccountTokensCarouselItem.d.ts +1 -1
- package/dist/cjs/lib/lib/TransactionReview/TransactionReviewHandler.d.ts +2 -2
- package/dist/cjs/lib/lib/WalletConnect/WalletConnectConnection.d.ts +2 -3
- package/dist/cjs/lib/lib/WalletConnect/components/ListAccounts.d.ts +2 -3
- package/dist/cjs/lib/lib/WalletConnect/components/NewPairing.d.ts +2 -3
- package/dist/cjs/lib/lib/WalletConnect/components/PairedWallets.d.ts +2 -3
- package/dist/cjs/lib/lib/components/FooterPolicies.d.ts +2 -2
- package/dist/index.d.ts +3 -5
- package/dist/lib/index.js +16 -15
- package/package.json +3 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ICSPRClickSDK } from '@make-software/csprclick-core-types';
|
|
2
2
|
import { ThemeModeType } from '../types';
|
|
3
3
|
interface BuyCsprContainerProps {
|
|
4
|
-
clickRef:
|
|
4
|
+
clickRef: ICSPRClickSDK;
|
|
5
5
|
themeMode?: ThemeModeType;
|
|
6
6
|
onModalClose: () => void;
|
|
7
7
|
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import
|
|
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:
|
|
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():
|
|
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 {
|
|
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:
|
|
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:
|
|
5
|
+
clickRef: ICSPRClickSDK;
|
|
7
6
|
accounts: Array<AccountType>;
|
|
8
7
|
firstAcctIndex: number;
|
|
9
8
|
onAccountClick: (acc: AccountType) => Promise<void>;
|
package/dist/cjs/lib/lib/TopBar/components/AccountTokensCarousel/AccountTokensCarouselItem.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { CarouselItemProps } from './types';
|
|
2
|
-
export declare const AccountTokensCarouselItem: ({ balanceInfo
|
|
2
|
+
export declare const AccountTokensCarouselItem: ({ balanceInfo }: CarouselItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const transactionReviewHandler: (event: any, clickRef:
|
|
1
|
+
import { ICSPRClickSDK } from '@make-software/csprclick-core-types';
|
|
2
|
+
export declare const transactionReviewHandler: (event: any, clickRef: ICSPRClickSDK) => void;
|
|
@@ -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:
|
|
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:
|
|
5
|
+
clickRef: ICSPRClickSDK;
|
|
7
6
|
accounts: Array<AccountType>;
|
|
8
7
|
onAccountClick: (acc: AccountType) => Promise<void>;
|
|
9
8
|
onUseAnotherAccountClick: () => Promise<void>;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { ThemeModeType } from '../../types';
|
|
2
|
-
import {
|
|
3
|
-
import { AccountType } from '@make-software/csprclick-core-types';
|
|
2
|
+
import { AccountType, ICSPRClickSDK } from '@make-software/csprclick-core-types';
|
|
4
3
|
interface NewPairingProps {
|
|
5
4
|
pairingUri: string;
|
|
6
5
|
appName: string;
|
|
7
6
|
accounts?: Array<AccountType>;
|
|
8
7
|
themeMode?: ThemeModeType;
|
|
9
|
-
clickRef:
|
|
8
|
+
clickRef: ICSPRClickSDK;
|
|
10
9
|
}
|
|
11
10
|
export declare const NewPairing: ({ pairingUri, appName, accounts, clickRef }: NewPairingProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
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:
|
|
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 {
|
|
1
|
+
import { ICSPRClickSDK } from '@make-software/csprclick-core-types';
|
|
2
2
|
interface FooterPoliciesProps {
|
|
3
|
-
clickRef:
|
|
3
|
+
clickRef: ICSPRClickSDK;
|
|
4
4
|
}
|
|
5
5
|
export declare function FooterPolicies({ clickRef }: FooterPoliciesProps): import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
export default FooterPolicies;
|
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:
|
|
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():
|
|
390
|
+
declare function useClickRef(): ICSPRClickSDK;
|
|
393
391
|
|
|
394
392
|
interface ClickModalProps {
|
|
395
393
|
modalAction: string;
|