@hanzo/commerce 7.3.4 → 7.3.6
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.
|
@@ -7,10 +7,10 @@ import { ApplePay, GooglePay, CreditCard, PaymentForm } from 'react-square-web-p
|
|
|
7
7
|
import { observer } from 'mobx-react-lite'
|
|
8
8
|
|
|
9
9
|
import {
|
|
10
|
-
ApplyTypography,
|
|
11
|
-
Button,
|
|
12
|
-
Separator,
|
|
13
|
-
Skeleton,
|
|
10
|
+
ApplyTypography,
|
|
11
|
+
Button,
|
|
12
|
+
Separator,
|
|
13
|
+
Skeleton,
|
|
14
14
|
} from '@hanzo/ui/primitives'
|
|
15
15
|
|
|
16
16
|
import { cn } from '@hanzo/ui/util'
|
|
@@ -66,8 +66,8 @@ const PayWithCard: React.FC<PaymentMethodComponentProps> = observer(({
|
|
|
66
66
|
})
|
|
67
67
|
} else {
|
|
68
68
|
setTransactionStatus('error')
|
|
69
|
-
}
|
|
70
|
-
})()
|
|
69
|
+
}
|
|
70
|
+
})()
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
const createVerificationDetails = () => {
|
|
@@ -125,7 +125,7 @@ const PayWithCard: React.FC<PaymentMethodComponentProps> = observer(({
|
|
|
125
125
|
* Identifies the calling form with a verified application ID generated from
|
|
126
126
|
* the Square Application Dashboard.
|
|
127
127
|
*/
|
|
128
|
-
applicationId={process.env.NEXT_PUBLIC_SQUARE_APPLICATION_ID}
|
|
128
|
+
applicationId={process.env.NEXT_PUBLIC_SQUARE_APPLICATION_ID ?? ''}
|
|
129
129
|
/**
|
|
130
130
|
* Invoked when payment form receives the result of a tokenize generation
|
|
131
131
|
* request. The result will be a valid credit card or wallet token, or an error.
|
|
@@ -146,7 +146,7 @@ const PayWithCard: React.FC<PaymentMethodComponentProps> = observer(({
|
|
|
146
146
|
* Identifies the location of the merchant that is taking the payment.
|
|
147
147
|
* Obtained from the Square Application Dashboard - Locations tab.
|
|
148
148
|
*/
|
|
149
|
-
locationId={process.env.NEXT_PUBLIC_SQUARE_LOCATION_ID}
|
|
149
|
+
locationId={process.env.NEXT_PUBLIC_SQUARE_LOCATION_ID ?? ''}
|
|
150
150
|
>
|
|
151
151
|
<ApplyTypography className='flex flex-col mt-6 gap-1'>
|
|
152
152
|
{transactionStatus === 'paid' ? (
|
|
@@ -161,7 +161,7 @@ const PayWithCard: React.FC<PaymentMethodComponentProps> = observer(({
|
|
|
161
161
|
<div className='flex flex-col gap-1'>
|
|
162
162
|
<GooglePay/>
|
|
163
163
|
<ApplePay/>
|
|
164
|
-
|
|
164
|
+
|
|
165
165
|
<div className='flex gap-2 whitespace-nowrap items-center my-1 sm:my-3 text-xs text-muted'>
|
|
166
166
|
<Separator className='grow w-auto'/><div className='shrink-0 mx-1'>or</div><Separator className='grow w-auto'/>
|
|
167
167
|
</div>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hanzo/commerce",
|
|
3
|
-
"version": "7.3.
|
|
3
|
+
"version": "7.3.6",
|
|
4
4
|
"description": "e-commerce framework.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/",
|
|
@@ -36,25 +36,25 @@
|
|
|
36
36
|
"square": "^35.1.0"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
|
-
"@hanzo/auth": "
|
|
40
|
-
"@hanzo/ui": "
|
|
39
|
+
"@hanzo/auth": "catalog:",
|
|
40
|
+
"@hanzo/ui": "catalog:",
|
|
41
41
|
"@hookform/resolvers": "^3.3.4",
|
|
42
42
|
"@radix-ui/react-radio-group": "^1.1.3",
|
|
43
43
|
"firebase": "^10.8.0",
|
|
44
|
-
"lucide-react": "
|
|
44
|
+
"lucide-react": "catalog:",
|
|
45
45
|
"mobx": "^6.12.3",
|
|
46
46
|
"mobx-react-lite": "^4.0.7",
|
|
47
47
|
"mobx-utils": "^6.0.8",
|
|
48
|
-
"next": "
|
|
49
|
-
"react": "
|
|
50
|
-
"react-dom": "
|
|
51
|
-
"react-hook-form": "
|
|
48
|
+
"next": "catalog:",
|
|
49
|
+
"react": "catalog:",
|
|
50
|
+
"react-dom": "catalog:",
|
|
51
|
+
"react-hook-form": "catalog:",
|
|
52
52
|
"zod": "3.23.8"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@types/react": "
|
|
56
|
-
"@types/react-dom": "
|
|
55
|
+
"@types/react": "catalog:",
|
|
56
|
+
"@types/react-dom": "catalog:",
|
|
57
57
|
"cross-fetch": "^4.0.0",
|
|
58
|
-
"typescript": "
|
|
58
|
+
"typescript": "catalog:"
|
|
59
59
|
}
|
|
60
60
|
}
|