@suportepos/split-checkout 0.1.8 → 0.2.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.
@@ -1,5 +1,5 @@
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
5
  amount: number;
@@ -1,5 +1,5 @@
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
5
  amount: number;
@@ -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,9 +1,10 @@
1
- import { Product, Split, PaymentResult } from "./lib/CheckoutFlow";
2
- export declare function renderCheckout({ elementId, merchantId, products, splits, merchantName, amountOverride, onResponse, }: {
1
+ import { Product, Split, PaymentResult, Customer } from "./lib/CheckoutFlow";
2
+ export declare function renderCheckout({ elementId, merchantId, products, splits, customer, merchantName, amountOverride, onResponse, }: {
3
3
  elementId: string;
4
4
  merchantId: string;
5
5
  products: Product[];
6
6
  splits?: Split[];
7
+ customer?: Customer;
7
8
  merchantName: string;
8
9
  amountOverride?: number;
9
10
  onResponse?: (result: PaymentResult) => void;
@@ -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.8",
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.0",
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
+ }