@coinflowlabs/angular 1.3.2 → 1.5.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 (37) hide show
  1. package/README.md +8 -0
  2. package/fesm2022/coinflowlabs-angular.mjs +99 -59
  3. package/fesm2022/coinflowlabs-angular.mjs.map +1 -1
  4. package/package.json +5 -5
  5. package/types/coinflowlabs-angular.d.ts +1529 -0
  6. package/index.d.ts +0 -5
  7. package/lib/card-form/CardFormService.d.ts +0 -14
  8. package/lib/card-form/coinflow-card-number-input.component.d.ts +0 -17
  9. package/lib/card-form/coinflow-card-number-only-input.component.d.ts +0 -17
  10. package/lib/card-form/coinflow-cvv-input.component.d.ts +0 -6
  11. package/lib/card-form/coinflow-cvv-only-input.component.d.ts +0 -19
  12. package/lib/coinflow-iframe.component.d.ts +0 -22
  13. package/lib/coinflow-purchase-history.component.d.ts +0 -5
  14. package/lib/coinflow-purchase-protection.component.d.ts +0 -5
  15. package/lib/coinflow-purchase.component.d.ts +0 -11
  16. package/lib/coinflow-withdraw-history.component.d.ts +0 -5
  17. package/lib/coinflow-withdraw.component.d.ts +0 -11
  18. package/lib/common/CoinflowLibMessageHandlers.d.ts +0 -35
  19. package/lib/common/CoinflowTypes.d.ts +0 -547
  20. package/lib/common/CoinflowUtils.d.ts +0 -24
  21. package/lib/common/EventBus.d.ts +0 -6
  22. package/lib/common/SolanaPeerDeps.d.ts +0 -5
  23. package/lib/common/card-form/TokenEx.d.ts +0 -171
  24. package/lib/common/card-form/tokenexHelpers.d.ts +0 -35
  25. package/lib/common/index.d.ts +0 -11
  26. package/lib/common/types/AnyObject.d.ts +0 -5
  27. package/lib/common/types/CartitemCommon.d.ts +0 -163
  28. package/lib/common/types/Subtotal.d.ts +0 -210
  29. package/lib/common/types/cryptoCartItem.d.ts +0 -63
  30. package/lib/common/types/giftCardCartItem.d.ts +0 -58
  31. package/lib/common/types/moneyTopUpCartItem.d.ts +0 -44
  32. package/lib/common/types/nftCartItem.d.ts +0 -108
  33. package/lib/mobile-wallet/coinflow-apple-pay-button.component.d.ts +0 -11
  34. package/lib/mobile-wallet/coinflow-google-pay-button.component.d.ts +0 -10
  35. package/lib/mobile-wallet/coinflow-mobile-wallet-button.component.d.ts +0 -22
  36. package/lib/mobile-wallet/google-pay-overlay.component.d.ts +0 -6
  37. package/public-api.d.ts +0 -16
package/index.d.ts DELETED
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@coinflowlabs/angular" />
5
- export * from './public-api';
@@ -1,14 +0,0 @@
1
- import { doInitializeCvvOnlyTokenExIframe, doInitializeTokenExCardOnlyIframe, doInitializeTokenExIframe, MerchantIdOrCheckoutJwt, TokenExIframe } from '../common';
2
- import * as i0 from "@angular/core";
3
- export declare class CardFormService {
4
- loaded: boolean;
5
- tokenExIframe: TokenExIframe | undefined;
6
- setTokenExIframe(iframe: TokenExIframe | undefined): void;
7
- setCachedToken(): void;
8
- setLoaded(input: boolean): void;
9
- initializeCvvOnlyTokenExIframe(args: Omit<Parameters<typeof doInitializeCvvOnlyTokenExIframe>[0], 'tokenExScriptLoaded' | 'setCachedToken' | 'setLoaded'> & MerchantIdOrCheckoutJwt): Promise<TokenExIframe | undefined>;
10
- initializeTokenExIframe(args: Omit<Parameters<typeof doInitializeTokenExIframe>[0], 'tokenExScriptLoaded' | 'setCachedToken' | 'setLoaded'> & MerchantIdOrCheckoutJwt): Promise<TokenExIframe | undefined>;
11
- initializeTokenExCardOnlyIframe(args: Omit<Parameters<typeof doInitializeTokenExCardOnlyIframe>[0], 'tokenExScriptLoaded' | 'setCachedToken' | 'setLoaded'> & MerchantIdOrCheckoutJwt): Promise<TokenExIframe | undefined>;
12
- static ɵfac: i0.ɵɵFactoryDeclaration<CardFormService, never>;
13
- static ɵprov: i0.ɵɵInjectableDeclaration<CardFormService>;
14
- }
@@ -1,17 +0,0 @@
1
- import { OnDestroy } from '@angular/core';
2
- import { CoinflowCardNumberInputProps, MerchantIdOrCheckoutJwt } from '../common';
3
- import * as i0 from "@angular/core";
4
- export declare class CoinflowCardNumberInput implements OnDestroy {
5
- private cardFormService;
6
- args: CoinflowCardNumberInputProps & MerchantIdOrCheckoutJwt;
7
- private iframe;
8
- private onScriptLoaded;
9
- private initializeTokenEx;
10
- reinitialize(): void;
11
- ngOnInit(): void;
12
- ngOnDestroy(): void;
13
- tokenize(): Promise<import("../common").TokenizationResponse>;
14
- protected readonly TokenExCardNumberIframeId = "tokenExCardNumber";
15
- static ɵfac: i0.ɵɵFactoryDeclaration<CoinflowCardNumberInput, never>;
16
- static ɵcmp: i0.ɵɵComponentDeclaration<CoinflowCardNumberInput, "lib-coinflow-card-number-input", never, { "args": { "alias": "args"; "required": false; }; }, {}, never, never, true, never>;
17
- }
@@ -1,17 +0,0 @@
1
- import { OnDestroy } from '@angular/core';
2
- import { CoinflowCardNumberInputProps, MerchantIdOrCheckoutJwt } from '../common';
3
- import * as i0 from "@angular/core";
4
- export declare class CoinflowCardNumberOnlyInput implements OnDestroy {
5
- private cardFormService;
6
- args: CoinflowCardNumberInputProps & MerchantIdOrCheckoutJwt;
7
- private iframe;
8
- private onScriptLoaded;
9
- private initializeTokenEx;
10
- reinitialize(): void;
11
- ngOnInit(): void;
12
- ngOnDestroy(): void;
13
- tokenize(): Promise<import("../common").TokenizationResponse>;
14
- protected readonly TokenExCardNumberIframeId = "tokenExCardNumber";
15
- static ɵfac: i0.ɵɵFactoryDeclaration<CoinflowCardNumberOnlyInput, never>;
16
- static ɵcmp: i0.ɵɵComponentDeclaration<CoinflowCardNumberOnlyInput, "lib-coinflow-card-number-only-input", never, { "args": { "alias": "args"; "required": false; }; }, {}, never, never, true, never>;
17
- }
@@ -1,6 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class CoinflowCvvInputComponent {
3
- protected readonly TokenExCvvContainerID = "tokenExCardCvv";
4
- static ɵfac: i0.ɵɵFactoryDeclaration<CoinflowCvvInputComponent, never>;
5
- static ɵcmp: i0.ɵɵComponentDeclaration<CoinflowCvvInputComponent, "lib-coinflow-cvv-input", never, {}, {}, never, never, true, never>;
6
- }
@@ -1,19 +0,0 @@
1
- import { OnDestroy, SimpleChanges } from '@angular/core';
2
- import { CoinflowCvvOnlyInputProps, MerchantIdOrCheckoutJwt } from '../common';
3
- import * as i0 from "@angular/core";
4
- export declare class CoinflowCvvOnlyInputComponent implements OnDestroy {
5
- private cardFormService;
6
- args: CoinflowCvvOnlyInputProps & MerchantIdOrCheckoutJwt;
7
- private iframe;
8
- private onScriptLoaded;
9
- private cleanup;
10
- private initializeTokenEx;
11
- ngOnChanges(changes: SimpleChanges): void;
12
- reinitialize(): void;
13
- ngOnInit(): void;
14
- ngOnDestroy(): void;
15
- tokenize(): Promise<import("../common").TokenizationResponse>;
16
- protected readonly TokenExCvvContainerID = "tokenExCardCvv";
17
- static ɵfac: i0.ɵɵFactoryDeclaration<CoinflowCvvOnlyInputComponent, never>;
18
- static ɵcmp: i0.ɵɵComponentDeclaration<CoinflowCvvOnlyInputComponent, "lib-coinflow-cvv-only-input", never, { "args": { "alias": "args"; "required": false; }; }, {}, never, never, true, never>;
19
- }
@@ -1,22 +0,0 @@
1
- import { ElementRef, EventEmitter } from '@angular/core';
2
- import { CoinflowIFrameProps, IFrameMessageHandlers } from './common';
3
- import { DomSanitizer, SafeResourceUrl } from '@angular/platform-browser';
4
- import * as i0 from "@angular/core";
5
- export declare class CoinflowIFrameComponent {
6
- private sanitizer;
7
- iframeProps: CoinflowIFrameProps;
8
- messageHandlers: IFrameMessageHandlers;
9
- onLoad?: () => void | Promise<void>;
10
- waitForLoadedMessage?: boolean;
11
- messageEvent: EventEmitter<any>;
12
- dynamicUrl?: SafeResourceUrl;
13
- iframe?: ElementRef<HTMLIFrameElement>;
14
- private isLoading;
15
- constructor(sanitizer: DomSanitizer);
16
- ngOnInit(): void;
17
- onPostMessage(event: any): void;
18
- sendMessage(message: string): void;
19
- handleIframeLoad(): void;
20
- static ɵfac: i0.ɵɵFactoryDeclaration<CoinflowIFrameComponent, never>;
21
- static ɵcmp: i0.ɵɵComponentDeclaration<CoinflowIFrameComponent, "lib-coinflow-iframe", never, { "iframeProps": { "alias": "iframeProps"; "required": false; }; "messageHandlers": { "alias": "messageHandlers"; "required": false; }; "onLoad": { "alias": "onLoad"; "required": false; }; "waitForLoadedMessage": { "alias": "waitForLoadedMessage"; "required": false; }; }, { "messageEvent": "messageEvent"; }, never, never, true, never>;
22
- }
@@ -1,5 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class CoinflowPurchaseHistoryComponent {
3
- static ɵfac: i0.ɵɵFactoryDeclaration<CoinflowPurchaseHistoryComponent, never>;
4
- static ɵcmp: i0.ɵɵComponentDeclaration<CoinflowPurchaseHistoryComponent, "lib-coinflow-purchase-history", never, {}, {}, never, never, true, never>;
5
- }
@@ -1,5 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class CoinflowPurchaseProtectionComponent {
3
- static ɵfac: i0.ɵɵFactoryDeclaration<CoinflowPurchaseProtectionComponent, never>;
4
- static ɵcmp: i0.ɵɵComponentDeclaration<CoinflowPurchaseProtectionComponent, "lib-coinflow-purchase-protection", never, {}, {}, never, never, true, never>;
5
- }
@@ -1,11 +0,0 @@
1
- import { CoinflowIFrameProps, CoinflowPurchaseProps, IFrameMessageHandlers } from './common';
2
- import { WithOnLoad } from '../public-api';
3
- import * as i0 from "@angular/core";
4
- export declare class CoinflowPurchaseComponent {
5
- purchaseProps: CoinflowPurchaseProps & WithOnLoad;
6
- iframeProps?: CoinflowIFrameProps;
7
- messageHandlers?: IFrameMessageHandlers;
8
- ngOnInit(): void;
9
- static ɵfac: i0.ɵɵFactoryDeclaration<CoinflowPurchaseComponent, never>;
10
- static ɵcmp: i0.ɵɵComponentDeclaration<CoinflowPurchaseComponent, "lib-coinflow-purchase", never, { "purchaseProps": { "alias": "purchaseProps"; "required": false; }; }, {}, never, never, true, never>;
11
- }
@@ -1,5 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class CoinflowWithdrawHistoryComponent {
3
- static ɵfac: i0.ɵɵFactoryDeclaration<CoinflowWithdrawHistoryComponent, never>;
4
- static ɵcmp: i0.ɵɵComponentDeclaration<CoinflowWithdrawHistoryComponent, "lib-coinflow-withdraw-history", never, {}, {}, never, never, true, never>;
5
- }
@@ -1,11 +0,0 @@
1
- import { CoinflowIFrameProps, CoinflowWithdrawProps, IFrameMessageHandlers } from './common';
2
- import { WithOnLoad } from '../public-api';
3
- import * as i0 from "@angular/core";
4
- export declare class CoinflowWithdrawComponent {
5
- withdrawProps: CoinflowWithdrawProps & WithOnLoad;
6
- iframeProps?: CoinflowIFrameProps;
7
- messageHandlers?: IFrameMessageHandlers;
8
- ngOnInit(): void;
9
- static ɵfac: i0.ɵɵFactoryDeclaration<CoinflowWithdrawComponent, never>;
10
- static ɵcmp: i0.ɵɵComponentDeclaration<CoinflowWithdrawComponent, "lib-coinflow-withdraw", never, { "withdrawProps": { "alias": "withdrawProps"; "required": false; }; }, {}, never, never, true, never>;
11
- }
@@ -1,35 +0,0 @@
1
- import { CoinflowPurchaseProps, OnAuthDeclinedMethod, OnSuccessMethod } from './CoinflowTypes';
2
- export type WalletCall = {
3
- method: IFrameMessageMethods;
4
- data: string;
5
- } | SuccessWalletCall;
6
- type SuccessWalletCall = {
7
- method: IFrameMessageMethods.Success;
8
- data: string;
9
- info: {
10
- paymentId: string;
11
- hash?: string;
12
- };
13
- };
14
- export interface IFrameMessageHandlers {
15
- handleSendTransaction: (transaction: string) => Promise<string>;
16
- handleSignMessage?: (message: string) => Promise<string>;
17
- handleSignTransaction?: (transaction: string) => Promise<string>;
18
- handleHeightChange?: (height: string) => void;
19
- onSuccess: OnSuccessMethod | undefined;
20
- onAuthDeclined: OnAuthDeclinedMethod | undefined;
21
- }
22
- export declare enum IFrameMessageMethods {
23
- SignMessage = "signMessage",
24
- SignTransaction = "signTransaction",
25
- SendTransaction = "sendTransaction",
26
- HeightChange = "heightChange",
27
- Success = "success",
28
- AuthDeclined = "authDeclined",
29
- Loaded = "loaded",
30
- AccountLinked = "accountLinked"
31
- }
32
- export declare function getWalletPubkey(input: Pick<CoinflowPurchaseProps, 'wallet' | 'blockchain'>): string | null | undefined;
33
- export declare function handleIFrameMessage(rawMessage: string, handlers: IFrameMessageHandlers, handleHeightChangeId: string | number): Promise<string> | void;
34
- export declare function getHandlers(props: Pick<CoinflowPurchaseProps, 'wallet' | 'blockchain' | 'onSuccess' | 'onAuthDeclined'>): Omit<IFrameMessageHandlers, 'handleHeightChange'>;
35
- export {};