@parafin/core 1.1.0 → 1.3.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.
package/index.ts CHANGED
@@ -1,5 +1,5 @@
1
- type CapitalOrWalletProps = {
2
- product: 'capital' | 'wallet'
1
+ type CapitalOrSpendProps = {
2
+ product: 'capital' | 'spend_card'
3
3
  token?: string
4
4
  route?: string
5
5
  externalBusinessId?: string
@@ -41,7 +41,7 @@ export type ParafinOrder = {
41
41
  }
42
42
 
43
43
  export const openParafinDashboard = (
44
- props: CapitalOrWalletProps | BNPLProps
44
+ props: CapitalOrSpendProps | BNPLProps
45
45
  ) => {
46
46
  try {
47
47
  const { origin, searchParams } = new URL(
package/out/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- type CapitalOrWalletProps = {
2
- product: 'capital' | 'wallet';
1
+ type CapitalOrSpendProps = {
2
+ product: 'capital' | 'spend_card';
3
3
  token?: string;
4
4
  route?: string;
5
5
  externalBusinessId?: string;
@@ -34,5 +34,5 @@ export type ParafinOrder = {
34
34
  declined_at: string | null;
35
35
  finalized_at: string | null;
36
36
  };
37
- export declare const openParafinDashboard: (props: CapitalOrWalletProps | BNPLProps) => void;
37
+ export declare const openParafinDashboard: (props: CapitalOrSpendProps | BNPLProps) => void;
38
38
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parafin/core",
3
- "version": "1.1.0",
3
+ "version": "1.3.0",
4
4
  "description": "Parafin embedded core",
5
5
  "author": "Parafin (https://www.parafin.com)",
6
6
  "module": "out/index.js",