azirid-react 0.9.1 → 0.9.3

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/README.md CHANGED
@@ -1522,7 +1522,7 @@ import type {
1522
1522
  | `SubmitTransferProofData` | Transfer proof payload (`planId`, `fileUrl`, `amount`, ...) |
1523
1523
  | `TransferProof` | Transfer proof object (`status`: `PENDING_REVIEW \| APPROVED \| REJECTED`, ...) |
1524
1524
  | `PayphoneWidgetConfig` | Payphone widget config (`token`, `storeId`, `amount`, ...) |
1525
- | `PaymentIntent` | Payment intent object |
1525
+ | `PaymentIntent` | Payment intent (`amount`, `subtotal?`, `taxRate?`, `taxAmount?`, `reference?`, ...) |
1526
1526
 
1527
1527
  ### Referral Types
1528
1528
 
package/dist/index.cjs CHANGED
@@ -3824,7 +3824,7 @@ function usePasswordToggle() {
3824
3824
  }
3825
3825
 
3826
3826
  // src/index.ts
3827
- var SDK_VERSION = "0.9.1";
3827
+ var SDK_VERSION = "0.9.3";
3828
3828
 
3829
3829
  exports.AuthForm = AuthForm;
3830
3830
  exports.AziridProvider = AziridProvider;
package/dist/index.d.cts CHANGED
@@ -508,8 +508,12 @@ interface AvailableProvider {
508
508
  interface PaymentIntent {
509
509
  id: string;
510
510
  amount: number;
511
+ subtotal?: number | null;
512
+ taxRate?: number | null;
513
+ taxAmount?: number | null;
511
514
  currency: string;
512
515
  description?: string;
516
+ reference?: string | null;
513
517
  status: 'PENDING' | 'PROCESSING' | 'COMPLETED' | 'EXPIRED' | 'CANCELED';
514
518
  expiresAt?: string;
515
519
  metadata?: Record<string, unknown>;
@@ -565,8 +569,12 @@ interface CheckoutResponse {
565
569
  intent?: {
566
570
  id: string;
567
571
  amount: number;
572
+ subtotal?: number | null;
573
+ taxRate?: number | null;
574
+ taxAmount?: number | null;
568
575
  currency: string;
569
576
  description?: string | null;
577
+ reference?: string | null;
570
578
  };
571
579
  /** Payphone widget configuration (only for PAYPHONE) */
572
580
  widgetConfig?: PayphoneWidgetConfig;
package/dist/index.d.ts CHANGED
@@ -508,8 +508,12 @@ interface AvailableProvider {
508
508
  interface PaymentIntent {
509
509
  id: string;
510
510
  amount: number;
511
+ subtotal?: number | null;
512
+ taxRate?: number | null;
513
+ taxAmount?: number | null;
511
514
  currency: string;
512
515
  description?: string;
516
+ reference?: string | null;
513
517
  status: 'PENDING' | 'PROCESSING' | 'COMPLETED' | 'EXPIRED' | 'CANCELED';
514
518
  expiresAt?: string;
515
519
  metadata?: Record<string, unknown>;
@@ -565,8 +569,12 @@ interface CheckoutResponse {
565
569
  intent?: {
566
570
  id: string;
567
571
  amount: number;
572
+ subtotal?: number | null;
573
+ taxRate?: number | null;
574
+ taxAmount?: number | null;
568
575
  currency: string;
569
576
  description?: string | null;
577
+ reference?: string | null;
570
578
  };
571
579
  /** Payphone widget configuration (only for PAYPHONE) */
572
580
  widgetConfig?: PayphoneWidgetConfig;
package/dist/index.js CHANGED
@@ -3822,7 +3822,7 @@ function usePasswordToggle() {
3822
3822
  }
3823
3823
 
3824
3824
  // src/index.ts
3825
- var SDK_VERSION = "0.9.1";
3825
+ var SDK_VERSION = "0.9.3";
3826
3826
 
3827
3827
  export { AuthForm, AziridProvider, BASE_PATHS, CheckoutButton, ForgotPasswordForm, InvoiceList, LoginForm, PATHS, PayButton, PayphoneCallback, PricingTable, ReferralCard, ReferralStats, ResetPasswordForm, SDK_VERSION, SignupForm, SubscriptionBadge, buildPaths, changePasswordSchema, cn, createAccessClient, createForgotPasswordSchema, createLoginSchema, createMutationHook, createResetPasswordConfirmSchema, createSignupSchema, en, es, forgotPasswordSchema, isAuthError, loginSchema, magicLinkRequestSchema, magicLinkVerifySchema, passkeyRegisterStartSchema, removeStyles, resetPasswordConfirmSchema, resolveMessages, signupSchema, socialLoginSchema, useAccessClient, useAzirid, useBootstrap, useBranding, useChangePassword, useCheckout, useFormState, useInvoices, useLogin, useLogout, useMagicLink, useMessages, usePasskeys, usePasswordReset, usePasswordToggle, usePaymentProviders, usePayphoneConfirm, usePlans, useReferral, useReferralStats, useRefresh, useSession, useSignup, useSocialLogin, useSubmitTransferProof, useSubscription, useSwitchTenant, useTenantMembers, useTenants, useTransferProofs };
3828
3828
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "azirid-react",
3
- "version": "0.9.1",
3
+ "version": "0.9.3",
4
4
  "description": "Authentication components for React and Next.js — Login, Register, powered by TanStack Query and Zod.",
5
5
  "author": "Azirid",
6
6
  "license": "MIT",