@coinflowlabs/vue 1.0.3 → 1.0.5

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.
@@ -233,6 +233,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
233
233
  messageHandlers(): {
234
234
  handleHeightChange: ((height: string) => void) | undefined;
235
235
  onSuccess: import('../lib/common').OnSuccessMethod | undefined;
236
+ onAuthDeclined: import('../lib/common').OnAuthDeclinedMethod | undefined;
236
237
  handleSendTransaction: (transaction: string) => Promise<string>;
237
238
  handleSignMessage?: ((message: string) => Promise<string>) | undefined;
238
239
  handleSignTransaction?: ((transaction: string) => Promise<string>) | undefined;
@@ -185,6 +185,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
185
185
  messageHandlers(): {
186
186
  handleHeightChange: ((height: string) => void) | undefined;
187
187
  onSuccess: import('../lib/common').OnSuccessMethod | undefined;
188
+ onAuthDeclined: import('../lib/common').OnAuthDeclinedMethod | undefined;
188
189
  handleSendTransaction: (transaction: string) => Promise<string>;
189
190
  handleSignMessage?: ((message: string) => Promise<string>) | undefined;
190
191
  handleSignTransaction?: ((transaction: string) => Promise<string>) | undefined;
@@ -1,4 +1,4 @@
1
- import { CoinflowPurchaseProps, OnSuccessMethod } from './CoinflowTypes';
1
+ import { CoinflowPurchaseProps, OnAuthDeclinedMethod, OnSuccessMethod } from './CoinflowTypes';
2
2
  export type WalletCall = {
3
3
  method: IFrameMessageMethods;
4
4
  data: string;
@@ -17,6 +17,7 @@ export interface IFrameMessageHandlers {
17
17
  handleSignTransaction?: (transaction: string) => Promise<string>;
18
18
  handleHeightChange?: (height: string) => void;
19
19
  onSuccess: OnSuccessMethod | undefined;
20
+ onAuthDeclined: OnAuthDeclinedMethod | undefined;
20
21
  }
21
22
  declare enum IFrameMessageMethods {
22
23
  SignMessage = "signMessage",
@@ -24,9 +25,10 @@ declare enum IFrameMessageMethods {
24
25
  SendTransaction = "sendTransaction",
25
26
  HeightChange = "heightChange",
26
27
  Success = "success",
28
+ AuthDeclined = "authDeclined",
27
29
  Loaded = "loaded"
28
30
  }
29
31
  export declare function getWalletPubkey(input: Pick<CoinflowPurchaseProps, 'wallet' | 'blockchain'>): string | null | undefined;
30
32
  export declare function handleIFrameMessage(rawMessage: string, handlers: IFrameMessageHandlers, handleHeightChangeId: string | number): Promise<string> | void;
31
- export declare function getHandlers(props: Pick<CoinflowPurchaseProps, 'wallet' | 'blockchain' | 'onSuccess'>): Omit<IFrameMessageHandlers, 'handleHeightChange'>;
33
+ export declare function getHandlers(props: Pick<CoinflowPurchaseProps, 'wallet' | 'blockchain' | 'onSuccess' | 'onAuthDeclined'>): Omit<IFrameMessageHandlers, 'handleHeightChange'>;
32
34
  export {};
@@ -74,7 +74,7 @@ export type AuthDeclinedWalletCallInfo = {
74
74
  message: string;
75
75
  total: string;
76
76
  };
77
- export type OnAuthDeclinedMethod = (args: AuthDeclinedWalletCallInfo | string | string) => void | Promise<void>;
77
+ export type OnAuthDeclinedMethod = (args: AuthDeclinedWalletCallInfo) => void | Promise<void>;
78
78
  /** Wallets **/
79
79
  export interface SolanaWallet {
80
80
  publicKey: PublicKey | null;
@@ -180,6 +180,14 @@ export interface ChargebackProtectionItem {
180
180
  * Any additional data that the store can provide on the product, e.g. description, link to image, etc.
181
181
  */
182
182
  rawProductData?: RawProductData;
183
+ seller?: {
184
+ dob: string;
185
+ firstName: string;
186
+ lastName: string;
187
+ email: string;
188
+ id: string;
189
+ rawSellerData: RawProductData;
190
+ };
183
191
  }
184
192
  export declare enum ThreeDsChallengePreference {
185
193
  NoPreference = "NoPreference",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@coinflowlabs/vue",
3
3
  "private": false,
4
- "version": "1.0.3",
4
+ "version": "1.0.5",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist",
@@ -32,16 +32,16 @@
32
32
  "devDependencies": {
33
33
  "@types/bs58": "^4.0.4",
34
34
  "@rushstack/eslint-patch": "^1.10.5",
35
- "@types/node": "^22.10.10",
35
+ "@types/node": "^22.13.1",
36
36
  "@vitejs/plugin-vue": "^5.2.1",
37
37
  "@vue/eslint-config-prettier": "^10.2.0",
38
- "@vue/eslint-config-typescript": "^14.3.0",
38
+ "@vue/eslint-config-typescript": "^14.4.0",
39
39
  "copyfiles": "^2.4.1",
40
40
  "eslint": "^8.57.1",
41
41
  "eslint-plugin-vue": "^9.32.0",
42
- "prettier": "^3.4.2",
42
+ "prettier": "^3.5.0",
43
43
  "typescript": "^5.6.3",
44
- "vite": "^6.0.11",
44
+ "vite": "^6.1.0",
45
45
  "vite-plugin-dts": "^4.4.0",
46
46
  "vitepress": "^1.6.3",
47
47
  "vue": "^3.5.13",