@suportepos/split-checkout 0.1.9 → 0.2.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.
@@ -36,12 +36,13 @@ export type PaymentResult = {
36
36
  };
37
37
  export type CheckoutFlowProps = {
38
38
  merchantId: string;
39
+ orderId: string;
40
+ production: boolean;
39
41
  products: Product[];
40
42
  splits: Split[];
41
43
  customer?: Customer;
42
44
  merchantName?: string;
43
- description?: string;
44
45
  amountOverride?: number;
45
46
  onResponse?: (payload: PaymentResult) => void;
46
47
  };
47
- export default function CheckoutFlow({ merchantId, products, customer, merchantName, amountOverride, splits, onResponse, }: CheckoutFlowProps): import("react/jsx-runtime").JSX.Element;
48
+ export default function CheckoutFlow({ merchantId, orderId, production, products, customer, merchantName, amountOverride, splits, onResponse, }: CheckoutFlowProps): import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,9 @@
1
- import { Product } from './OrderSummary';
2
- import { PaymentResult, Split, Customer } from './CheckoutFlow';
1
+ import { Product } from "./OrderSummary";
2
+ import { PaymentResult, Split, Customer } from "./CheckoutFlow";
3
3
  export type SplitCardFormProps = {
4
4
  merchantId: string;
5
+ orderId: string;
6
+ production: boolean;
5
7
  amount: number;
6
8
  merchantName?: string;
7
9
  summaryItems?: Product[];
@@ -11,4 +13,4 @@ export type SplitCardFormProps = {
11
13
  onBack?: () => void;
12
14
  onResponse?: (payload: PaymentResult) => void;
13
15
  };
14
- export default function SplitCheckoutForm({ merchantId, amount, splits, summaryItems, merchantName, customer, installmentsOptions, onBack, onResponse, }: SplitCardFormProps): import("react/jsx-runtime").JSX.Element;
16
+ export default function SplitCheckoutForm({ merchantId, orderId, production, amount, splits, summaryItems, merchantName, customer, installmentsOptions, onBack, onResponse, }: SplitCardFormProps): import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,9 @@
1
- import { Product } from './OrderSummary';
2
- import { PaymentResult, Split, Customer } from './CheckoutFlow';
1
+ import { Product } from "./OrderSummary";
2
+ import { PaymentResult, Split, Customer } from "./CheckoutFlow";
3
3
  export type SplitPixFormProps = {
4
4
  merchantId: string;
5
+ orderId: string;
6
+ production: boolean;
5
7
  amount: number;
6
8
  merchantName?: string;
7
9
  summaryItems?: Product[];
@@ -10,4 +12,4 @@ export type SplitPixFormProps = {
10
12
  onBack?: () => void;
11
13
  onResponse?: (payload: PaymentResult) => void;
12
14
  };
13
- export default function SplitPixForm({ merchantId, amount, merchantName, summaryItems, splits, customer, onBack, onResponse, }: SplitPixFormProps): import("react/jsx-runtime").JSX.Element;
15
+ export default function SplitPixForm({ merchantId, orderId, production, amount, merchantName, summaryItems, splits, customer, onBack, onResponse, }: SplitPixFormProps): import("react/jsx-runtime").JSX.Element;
@@ -36,12 +36,13 @@ export type PaymentResult = {
36
36
  };
37
37
  export type CheckoutFlowProps = {
38
38
  merchantId: string;
39
+ orderId: string;
40
+ production: boolean;
39
41
  products: Product[];
40
42
  splits: Split[];
41
43
  customer?: Customer;
42
44
  merchantName?: string;
43
- description?: string;
44
45
  amountOverride?: number;
45
46
  onResponse?: (payload: PaymentResult) => void;
46
47
  };
47
- export default function CheckoutFlow({ merchantId, products, customer, merchantName, amountOverride, splits, onResponse, }: CheckoutFlowProps): import("react/jsx-runtime").JSX.Element;
48
+ export default function CheckoutFlow({ merchantId, orderId, production, products, customer, merchantName, amountOverride, splits, onResponse, }: CheckoutFlowProps): import("react/jsx-runtime").JSX.Element;
@@ -2,6 +2,8 @@ import { Product } from "./OrderSummary";
2
2
  import { PaymentResult, Split, Customer } from "./CheckoutFlow";
3
3
  export type SplitCardFormProps = {
4
4
  merchantId: string;
5
+ orderId: string;
6
+ production: boolean;
5
7
  amount: number;
6
8
  merchantName?: string;
7
9
  summaryItems?: Product[];
@@ -11,4 +13,4 @@ export type SplitCardFormProps = {
11
13
  onBack?: () => void;
12
14
  onResponse?: (payload: PaymentResult) => void;
13
15
  };
14
- export default function SplitCheckoutForm({ merchantId, amount, splits, summaryItems, merchantName, customer, installmentsOptions, onBack, onResponse, }: SplitCardFormProps): import("react/jsx-runtime").JSX.Element;
16
+ export default function SplitCheckoutForm({ merchantId, orderId, production, amount, splits, summaryItems, merchantName, customer, installmentsOptions, onBack, onResponse, }: SplitCardFormProps): import("react/jsx-runtime").JSX.Element;
@@ -2,6 +2,8 @@ import { Product } from "./OrderSummary";
2
2
  import { PaymentResult, Split, Customer } from "./CheckoutFlow";
3
3
  export type SplitPixFormProps = {
4
4
  merchantId: string;
5
+ orderId: string;
6
+ production: boolean;
5
7
  amount: number;
6
8
  merchantName?: string;
7
9
  summaryItems?: Product[];
@@ -10,4 +12,4 @@ export type SplitPixFormProps = {
10
12
  onBack?: () => void;
11
13
  onResponse?: (payload: PaymentResult) => void;
12
14
  };
13
- export default function SplitPixForm({ merchantId, amount, merchantName, summaryItems, splits, customer, onBack, onResponse, }: SplitPixFormProps): import("react/jsx-runtime").JSX.Element;
15
+ export default function SplitPixForm({ merchantId, orderId, production, amount, merchantName, summaryItems, splits, customer, onBack, onResponse, }: SplitPixFormProps): import("react/jsx-runtime").JSX.Element;
@@ -8,5 +8,5 @@ export declare const brand: {
8
8
  border: string;
9
9
  ring: string;
10
10
  };
11
- declare const theme: import("@mui/material").Theme;
11
+ declare const theme: import("@mui/material/styles").Theme;
12
12
  export default theme;
@@ -1,7 +1,9 @@
1
1
  import { Product, Split, PaymentResult, Customer } from "./lib/CheckoutFlow";
2
- export declare function renderCheckout({ elementId, merchantId, products, splits, customer, merchantName, amountOverride, onResponse, }: {
2
+ export declare function renderCheckout({ elementId, merchantId, production, orderId, products, splits, customer, merchantName, amountOverride, onResponse, }: {
3
3
  elementId: string;
4
4
  merchantId: string;
5
+ orderId: string;
6
+ production: boolean;
5
7
  products: Product[];
6
8
  splits?: Split[];
7
9
  customer?: Customer;
@@ -8,5 +8,5 @@ export declare const brand: {
8
8
  border: string;
9
9
  ring: string;
10
10
  };
11
- declare const theme: import('@mui/material').Theme;
11
+ declare const theme: import("@mui/material/styles").Theme;
12
12
  export default theme;
package/package.json CHANGED
@@ -1,48 +1,46 @@
1
- {
2
- "name": "@suportepos/split-checkout",
3
- "version": "0.1.9",
4
- "type": "module",
5
- "main": "dist/index.umd.js",
6
- "module": "dist/index.es.js",
7
- "types": "dist/types/index.d.ts",
8
- "files": [
9
- "dist",
10
- "dist/split-checkout.standalone.js"
11
- ],
12
- "scripts": {
13
- "dev": "vite",
14
- "build": "vite build && tsc --project tsconfig.build.json",
15
- "preview": "vite preview",
16
- "build:types": "tsc --emitDeclarationOnly --declaration --declarationDir dist/types",
17
- "build:standalone": "vite build && vite build --config vite.config.standalone.ts && npm run build:types",
18
- "prepublishOnly": "npm run build && npm run build:standalone"
19
- },
20
- "peerDependencies": {
21
- "@emotion/react": ">=11.0.0",
22
- "@emotion/styled": ">=11.0.0",
23
- "@mui/icons-material": ">=5.0.0",
24
- "@mui/material": ">=5.0.0",
25
- "react": ">=18.0.0 <20.0.0",
26
- "react-dom": ">=18.0.0 <20.0.0"
27
- },
28
- "devDependencies": {
29
- "@emotion/react": "11.14.0",
30
- "@emotion/styled": "11.14.1",
31
- "@mui/icons-material": "7.3.1",
32
- "@mui/material": "7.3.1",
33
- "@types/react": "18.3.11",
34
- "@types/react-dom": "18.3.0",
35
- "@vitejs/plugin-react": "^4.2.0",
36
- "react": "18.3.1",
37
- "react-dom": "18.3.1",
38
- "typescript": "^5.5.4",
39
- "vite": "^7.1.3",
40
- "vite-plugin-dts": "^4.5.4"
41
- },
42
- "publishConfig": {
43
- "access": "public"
44
- },
45
- "dependencies": {
46
- "rollup": "^4.49.0"
47
- }
48
- }
1
+ {
2
+ "name": "@suportepos/split-checkout",
3
+ "version": "0.2.1",
4
+ "type": "module",
5
+ "main": "dist/index.umd.js",
6
+ "module": "dist/index.es.js",
7
+ "types": "dist/types/index.d.ts",
8
+ "files": [
9
+ "dist"
10
+ ],
11
+ "scripts": {
12
+ "dev": "vite",
13
+ "build": "vite build && tsc --project tsconfig.build.json",
14
+ "preview": "vite preview",
15
+ "build:types": "tsc --emitDeclarationOnly --declaration --declarationDir dist/types",
16
+ "build:standalone": "vite build --config vite.config.standalone.ts && npm run build:types",
17
+ "prepublishOnly": "npm run build && npm run build:standalone"
18
+ },
19
+ "peerDependencies": {
20
+ "@emotion/react": ">=11.0.0",
21
+ "@emotion/styled": ">=11.0.0",
22
+ "@mui/icons-material": "^5.0.0 || ^7.0.0",
23
+ "@mui/material": "^5.0.0 || ^7.0.0",
24
+ "react": ">=18.0.0 <20.0.0",
25
+ "react-dom": ">=18.0.0 <20.0.0"
26
+ },
27
+ "devDependencies": {
28
+ "@emotion/react": "11.14.0",
29
+ "@emotion/styled": "11.14.1",
30
+ "@mui/icons-material": "7.3.1",
31
+ "@mui/material": "7.3.1",
32
+ "@types/react": "18.3.11",
33
+ "@types/react-dom": "18.3.0",
34
+ "@vitejs/plugin-react": "^4.2.0",
35
+ "react": "18.3.1",
36
+ "react-dom": "18.3.1",
37
+ "terser": "^5.43.1",
38
+ "typescript": "^5.5.4",
39
+ "vite": "^7.1.3",
40
+ "vite-plugin-dts": "^4.5.4",
41
+ "rollup": "^4.49.0"
42
+ },
43
+ "publishConfig": {
44
+ "access": "public"
45
+ }
46
+ }