@tagadapay/plugin-sdk 1.0.12 → 1.0.13
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/dist/data/countries.d.ts +50 -0
- package/dist/data/countries.js +38181 -0
- package/dist/react/components/AddressForm.example.d.ts +1 -0
- package/dist/react/components/AddressForm.example.js +32 -0
- package/dist/react/hooks/useAddress.d.ts +58 -0
- package/dist/react/hooks/useAddress.js +537 -0
- package/dist/react/hooks/usePayment.d.ts +2 -0
- package/dist/react/hooks/usePayment.js +7 -4
- package/dist/react/index.d.ts +2 -0
- package/dist/react/index.js +1 -0
- package/package.json +2 -1
package/dist/react/index.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export { useCustomer } from './hooks/useCustomer';
|
|
|
12
12
|
export { useEnvironment } from './hooks/useEnvironment';
|
|
13
13
|
export { useLocale } from './hooks/useLocale';
|
|
14
14
|
export { useAuth } from './hooks/useAuth';
|
|
15
|
+
export { useAddress } from './hooks/useAddress';
|
|
15
16
|
export { useOrder } from './hooks/useOrder';
|
|
16
17
|
export type { UseOrderOptions, UseOrderResult } from './hooks/useOrder';
|
|
17
18
|
export { usePayment } from './hooks/usePayment';
|
|
@@ -21,6 +22,7 @@ export { useThreedsModal } from './hooks/useThreedsModal';
|
|
|
21
22
|
export type { Customer, Session, AuthState, Locale, Currency, Store, Environment, EnvironmentConfig, Order, OrderItem, OrderSummary, OrderAddress, PickupPoint, } from './types';
|
|
22
23
|
export type { UseCheckoutOptions, UseCheckoutResult, CheckoutInitParams, CheckoutLineItem, CheckoutSession, CheckoutData, Promotion, } from './hooks/useCheckout';
|
|
23
24
|
export type { UseOrderBumpOptions, UseOrderBumpResult, OrderBumpPreview } from './hooks/useOrderBump';
|
|
25
|
+
export type { UseAddressOptions, UseAddressResult, AddressData, AddressField, Country, State, } from './hooks/useAddress';
|
|
24
26
|
export type { Payment, PollingOptions, PaymentPollingHook } from './hooks/usePaymentPolling';
|
|
25
27
|
export type { PaymentInstrument, ThreedsSession, ThreedsChallenge, ThreedsOptions, ThreedsHook, ThreedsProvider, } from './hooks/useThreeds';
|
|
26
28
|
export type { ApplePayToken, CardPaymentMethod, PaymentResponse, PaymentOptions, PaymentInstrumentResponse, PaymentHook, } from './hooks/usePayment';
|
package/dist/react/index.js
CHANGED
|
@@ -15,6 +15,7 @@ export { useCustomer } from './hooks/useCustomer';
|
|
|
15
15
|
export { useEnvironment } from './hooks/useEnvironment';
|
|
16
16
|
export { useLocale } from './hooks/useLocale';
|
|
17
17
|
export { useAuth } from './hooks/useAuth';
|
|
18
|
+
export { useAddress } from './hooks/useAddress';
|
|
18
19
|
// Order hook exports
|
|
19
20
|
export { useOrder } from './hooks/useOrder';
|
|
20
21
|
// Payment hooks exports
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tagadapay/plugin-sdk",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.13",
|
|
4
4
|
"description": "Modern React SDK for building Tagada Pay plugins",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
"@basis-theory/basis-theory-react": "^1.32.5",
|
|
39
39
|
"@basis-theory/web-threeds": "^1.0.1",
|
|
40
40
|
"axios": "^1.6.0",
|
|
41
|
+
"react-google-autocomplete": "^2.7.3",
|
|
41
42
|
"react-intl": "^7.1.11"
|
|
42
43
|
},
|
|
43
44
|
"devDependencies": {
|