autumn-js 0.1.16 → 0.1.18
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/libraries/backend/better-auth.d.mts +24 -24
- package/dist/libraries/backend/better-auth.d.ts +24 -24
- package/dist/libraries/react/AutumnContext.d.mts +1 -1
- package/dist/libraries/react/AutumnContext.d.ts +1 -1
- package/dist/libraries/react/AutumnContext.mjs +3 -3
- package/dist/libraries/react/BaseAutumnProvider.d.mts +1 -1
- package/dist/libraries/react/BaseAutumnProvider.d.ts +1 -1
- package/dist/libraries/react/BaseAutumnProvider.js +5 -0
- package/dist/libraries/react/BaseAutumnProvider.mjs +6 -6
- package/dist/libraries/react/{ReactAutumnClient-BG8_E3nb.d.ts → ReactAutumnClient-BKSxQ-QD.d.ts} +2 -1
- package/dist/libraries/react/{ReactAutumnClient-gvMVYgdO.d.mts → ReactAutumnClient-Dc-wJFoV.d.mts} +2 -1
- package/dist/libraries/react/ReactAutumnProvider.d.mts +2 -1
- package/dist/libraries/react/ReactAutumnProvider.d.ts +2 -1
- package/dist/libraries/react/ReactAutumnProvider.js +7 -1
- package/dist/libraries/react/ReactAutumnProvider.mjs +7 -7
- package/dist/libraries/react/{chunk-QJPZFEVW.mjs → chunk-2OHJ6PS6.mjs} +10 -10
- package/dist/libraries/react/{chunk-WT5K3J2K.mjs → chunk-2PBWI3T6.mjs} +19 -19
- package/dist/libraries/react/{chunk-UJVW3UWD.mjs → chunk-3HD5EPJE.mjs} +5 -4
- package/dist/libraries/react/{chunk-SBX6TYV2.mjs → chunk-4CO2JIMK.mjs} +1 -1
- package/dist/libraries/react/{chunk-2TQBFCWM.mjs → chunk-5KZSH7JF.mjs} +16 -16
- package/dist/libraries/react/{chunk-5K2M3CQZ.mjs → chunk-65S4VY5K.mjs} +32 -32
- package/dist/libraries/react/{chunk-6S7MT3MM.mjs → chunk-7PEELII6.mjs} +1 -1
- package/dist/libraries/react/{chunk-S52LXSZB.mjs → chunk-BD4NZOEZ.mjs} +1 -1
- package/dist/libraries/react/{chunk-A6E436YR.mjs → chunk-BMXP6QM4.mjs} +23 -23
- package/dist/libraries/react/{chunk-M7SUFZ42.mjs → chunk-DAZBMK7R.mjs} +2 -2
- package/dist/libraries/react/{chunk-RPEGNKJH.mjs → chunk-DXHYWJOY.mjs} +3 -3
- package/dist/libraries/react/{chunk-FJX2BGGF.mjs → chunk-FQC6SNTZ.mjs} +2 -2
- package/dist/libraries/react/{chunk-37TR2YZH.mjs → chunk-HMSBDBZ3.mjs} +2 -2
- package/dist/libraries/react/{chunk-AIBWQU4K.mjs → chunk-MIFWWE4R.mjs} +2 -2
- package/dist/libraries/react/{chunk-BALFCYDX.mjs → chunk-NFVAFRF6.mjs} +5 -0
- package/dist/libraries/react/{chunk-H2QK3ZOW.mjs → chunk-Q4DQR73E.mjs} +1 -1
- package/dist/libraries/react/{chunk-EV5RNY5U.mjs → chunk-SWSFJTEQ.mjs} +1 -1
- package/dist/libraries/react/{chunk-FAODWMTA.mjs → chunk-T6D3GYIH.mjs} +1 -1
- package/dist/libraries/react/{chunk-BXMZYHE7.mjs → chunk-UYZX3KX2.mjs} +8 -8
- package/dist/libraries/react/{chunk-USBPNC5B.mjs → chunk-VRNUTHYD.mjs} +2 -2
- package/dist/libraries/react/{chunk-YCDNQZT5.mjs → chunk-VYBU4WHO.mjs} +9 -9
- package/dist/libraries/react/{chunk-NHDZWWMZ.mjs → chunk-WUEXMQIT.mjs} +6 -6
- package/dist/libraries/react/{chunk-KWNH6C27.mjs → chunk-YN67J64M.mjs} +17 -17
- package/dist/libraries/react/client/ReactAutumnClient.d.mts +1 -1
- package/dist/libraries/react/client/ReactAutumnClient.d.ts +1 -1
- package/dist/libraries/react/client/ReactAutumnClient.mjs +2 -2
- package/dist/libraries/react/client/clientCompMethods.d.mts +1 -1
- package/dist/libraries/react/client/clientCompMethods.d.ts +1 -1
- package/dist/libraries/react/client/clientCusMethods.d.mts +1 -1
- package/dist/libraries/react/client/clientCusMethods.d.ts +1 -1
- package/dist/libraries/react/client/clientEntityMethods.d.mts +1 -1
- package/dist/libraries/react/client/clientEntityMethods.d.ts +1 -1
- package/dist/libraries/react/client/clientGenMethods.d.mts +1 -1
- package/dist/libraries/react/client/clientGenMethods.d.ts +1 -1
- package/dist/libraries/react/client/clientProdMethods.d.mts +1 -1
- package/dist/libraries/react/client/clientProdMethods.d.ts +1 -1
- package/dist/libraries/react/client/clientReferralMethods.d.mts +1 -1
- package/dist/libraries/react/client/clientReferralMethods.d.ts +1 -1
- package/dist/libraries/react/client/types/clientAttachTypes.d.mts +2 -1
- package/dist/libraries/react/client/types/clientAttachTypes.d.ts +2 -1
- package/dist/libraries/react/client/types/clientAttachTypes.js +2 -1
- package/dist/libraries/react/client/types/clientAttachTypes.mjs +2 -1
- package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.css +120 -141
- package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.js +76 -71
- package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.mjs +27 -27
- package/dist/libraries/react/components/paywall-dialog/paywall-dialog-synced.css +120 -141
- package/dist/libraries/react/components/paywall-dialog/paywall-dialog-synced.js +69 -69
- package/dist/libraries/react/components/paywall-dialog/paywall-dialog-synced.mjs +27 -27
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.css +120 -141
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.js +75 -70
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.mjs +27 -27
- package/dist/libraries/react/components/ui/accordion.js +23 -23
- package/dist/libraries/react/components/ui/accordion.mjs +5 -5
- package/dist/libraries/react/components/ui/button.d.mts +1 -1
- package/dist/libraries/react/components/ui/button.d.ts +1 -1
- package/dist/libraries/react/components/ui/button.js +3 -3
- package/dist/libraries/react/components/ui/button.mjs +2 -2
- package/dist/libraries/react/components/ui/dialog.js +49 -49
- package/dist/libraries/react/components/ui/dialog.mjs +6 -6
- package/dist/libraries/react/components/ui/popover.js +50 -50
- package/dist/libraries/react/components/ui/popover.mjs +6 -6
- package/dist/libraries/react/components/ui/switch.js +12 -12
- package/dist/libraries/react/components/ui/switch.mjs +4 -4
- package/dist/libraries/react/hooks/helpers/handleCheck.d.mts +1 -1
- package/dist/libraries/react/hooks/helpers/handleCheck.d.ts +1 -1
- package/dist/libraries/react/hooks/helpers/useAutumnBase.d.mts +1 -1
- package/dist/libraries/react/hooks/helpers/useAutumnBase.d.ts +1 -1
- package/dist/libraries/react/hooks/helpers/useAutumnBase.js +5 -0
- package/dist/libraries/react/hooks/helpers/useAutumnBase.mjs +1 -1
- package/dist/libraries/react/hooks/useAnalytics.mjs +4 -4
- package/dist/libraries/react/hooks/useCustomer.d.mts +1 -1
- package/dist/libraries/react/hooks/useCustomer.d.ts +1 -1
- package/dist/libraries/react/hooks/useCustomer.js +5 -0
- package/dist/libraries/react/hooks/useCustomer.mjs +6 -6
- package/dist/libraries/react/hooks/useCustomerBase.d.mts +1 -1
- package/dist/libraries/react/hooks/useCustomerBase.d.ts +1 -1
- package/dist/libraries/react/hooks/useCustomerBase.js +5 -0
- package/dist/libraries/react/hooks/useCustomerBase.mjs +5 -5
- package/dist/libraries/react/hooks/useEntity.js +5 -0
- package/dist/libraries/react/hooks/useEntity.mjs +6 -6
- package/dist/libraries/react/hooks/useEntityBase.d.mts +1 -1
- package/dist/libraries/react/hooks/useEntityBase.d.ts +1 -1
- package/dist/libraries/react/hooks/useEntityBase.js +5 -0
- package/dist/libraries/react/hooks/useEntityBase.mjs +5 -5
- package/dist/libraries/react/hooks/usePaywall.mjs +4 -4
- package/dist/libraries/react/hooks/usePricingTable.mjs +4 -4
- package/dist/libraries/react/hooks/usePricingTableBase.d.mts +1 -1
- package/dist/libraries/react/hooks/usePricingTableBase.d.ts +1 -1
- package/dist/libraries/react/hooks/useProductsBase.d.mts +1 -1
- package/dist/libraries/react/hooks/useProductsBase.d.ts +1 -1
- package/dist/libraries/react/index.d.mts +4 -2
- package/dist/libraries/react/index.d.ts +4 -2
- package/dist/libraries/react/index.js +78 -72
- package/dist/libraries/react/index.mjs +78 -72
- package/dist/next/client/NextAutumnClient.d.mts +3 -2
- package/dist/next/client/NextAutumnClient.d.ts +3 -2
- package/dist/next/client/{clientAttachTypes-DWFk8mOR.d.ts → clientAttachTypes-CQi73rMl.d.ts} +2 -1
- package/dist/next/client/{clientAttachTypes-traKz9UZ.d.mts → clientAttachTypes-anFjm97z.d.mts} +2 -1
- package/dist/next/client/hooks/useAutumn.d.mts +1 -1
- package/dist/next/client/hooks/useAutumn.d.ts +1 -1
- package/dist/next/client/hooks/useCustomer.d.mts +1 -1
- package/dist/next/client/hooks/useCustomer.d.ts +1 -1
- package/dist/next/client/hooks/useEntity.d.mts +1 -1
- package/dist/next/client/hooks/useEntity.d.ts +1 -1
- package/dist/styles/global.css +120 -141
- package/package.json +1 -1
- package/dist/libraries/react/{chunk-XZ7XNWDB.mjs → chunk-6VDZ3JMC.mjs} +4 -4
|
@@ -158,19 +158,19 @@ declare const autumn: (options?: {
|
|
|
158
158
|
session: {
|
|
159
159
|
session: Record<string, any> & {
|
|
160
160
|
id: string;
|
|
161
|
-
token: string;
|
|
162
161
|
userId: string;
|
|
163
162
|
expiresAt: Date;
|
|
164
163
|
createdAt: Date;
|
|
165
164
|
updatedAt: Date;
|
|
165
|
+
token: string;
|
|
166
166
|
ipAddress?: string | null | undefined;
|
|
167
167
|
userAgent?: string | null | undefined;
|
|
168
168
|
};
|
|
169
169
|
user: Record<string, any> & {
|
|
170
170
|
id: string;
|
|
171
|
-
name: string;
|
|
172
|
-
emailVerified: boolean;
|
|
173
171
|
email: string;
|
|
172
|
+
emailVerified: boolean;
|
|
173
|
+
name: string;
|
|
174
174
|
createdAt: Date;
|
|
175
175
|
updatedAt: Date;
|
|
176
176
|
image?: string | null | undefined;
|
|
@@ -256,19 +256,19 @@ declare const autumn: (options?: {
|
|
|
256
256
|
session: {
|
|
257
257
|
session: Record<string, any> & {
|
|
258
258
|
id: string;
|
|
259
|
-
token: string;
|
|
260
259
|
userId: string;
|
|
261
260
|
expiresAt: Date;
|
|
262
261
|
createdAt: Date;
|
|
263
262
|
updatedAt: Date;
|
|
263
|
+
token: string;
|
|
264
264
|
ipAddress?: string | null | undefined;
|
|
265
265
|
userAgent?: string | null | undefined;
|
|
266
266
|
};
|
|
267
267
|
user: Record<string, any> & {
|
|
268
268
|
id: string;
|
|
269
|
-
name: string;
|
|
270
|
-
emailVerified: boolean;
|
|
271
269
|
email: string;
|
|
270
|
+
emailVerified: boolean;
|
|
271
|
+
name: string;
|
|
272
272
|
createdAt: Date;
|
|
273
273
|
updatedAt: Date;
|
|
274
274
|
image?: string | null | undefined;
|
|
@@ -336,19 +336,19 @@ declare const autumn: (options?: {
|
|
|
336
336
|
session: {
|
|
337
337
|
session: Record<string, any> & {
|
|
338
338
|
id: string;
|
|
339
|
-
token: string;
|
|
340
339
|
userId: string;
|
|
341
340
|
expiresAt: Date;
|
|
342
341
|
createdAt: Date;
|
|
343
342
|
updatedAt: Date;
|
|
343
|
+
token: string;
|
|
344
344
|
ipAddress?: string | null | undefined;
|
|
345
345
|
userAgent?: string | null | undefined;
|
|
346
346
|
};
|
|
347
347
|
user: Record<string, any> & {
|
|
348
348
|
id: string;
|
|
349
|
-
name: string;
|
|
350
|
-
emailVerified: boolean;
|
|
351
349
|
email: string;
|
|
350
|
+
emailVerified: boolean;
|
|
351
|
+
name: string;
|
|
352
352
|
createdAt: Date;
|
|
353
353
|
updatedAt: Date;
|
|
354
354
|
image?: string | null | undefined;
|
|
@@ -408,19 +408,19 @@ declare const autumn: (options?: {
|
|
|
408
408
|
session: {
|
|
409
409
|
session: Record<string, any> & {
|
|
410
410
|
id: string;
|
|
411
|
-
token: string;
|
|
412
411
|
userId: string;
|
|
413
412
|
expiresAt: Date;
|
|
414
413
|
createdAt: Date;
|
|
415
414
|
updatedAt: Date;
|
|
415
|
+
token: string;
|
|
416
416
|
ipAddress?: string | null | undefined;
|
|
417
417
|
userAgent?: string | null | undefined;
|
|
418
418
|
};
|
|
419
419
|
user: Record<string, any> & {
|
|
420
420
|
id: string;
|
|
421
|
-
name: string;
|
|
422
|
-
emailVerified: boolean;
|
|
423
421
|
email: string;
|
|
422
|
+
emailVerified: boolean;
|
|
423
|
+
name: string;
|
|
424
424
|
createdAt: Date;
|
|
425
425
|
updatedAt: Date;
|
|
426
426
|
image?: string | null | undefined;
|
|
@@ -472,19 +472,19 @@ declare const autumn: (options?: {
|
|
|
472
472
|
session: {
|
|
473
473
|
session: Record<string, any> & {
|
|
474
474
|
id: string;
|
|
475
|
-
token: string;
|
|
476
475
|
userId: string;
|
|
477
476
|
expiresAt: Date;
|
|
478
477
|
createdAt: Date;
|
|
479
478
|
updatedAt: Date;
|
|
479
|
+
token: string;
|
|
480
480
|
ipAddress?: string | null | undefined;
|
|
481
481
|
userAgent?: string | null | undefined;
|
|
482
482
|
};
|
|
483
483
|
user: Record<string, any> & {
|
|
484
484
|
id: string;
|
|
485
|
-
name: string;
|
|
486
|
-
emailVerified: boolean;
|
|
487
485
|
email: string;
|
|
486
|
+
emailVerified: boolean;
|
|
487
|
+
name: string;
|
|
488
488
|
createdAt: Date;
|
|
489
489
|
updatedAt: Date;
|
|
490
490
|
image?: string | null | undefined;
|
|
@@ -532,19 +532,19 @@ declare const autumn: (options?: {
|
|
|
532
532
|
session: {
|
|
533
533
|
session: Record<string, any> & {
|
|
534
534
|
id: string;
|
|
535
|
-
token: string;
|
|
536
535
|
userId: string;
|
|
537
536
|
expiresAt: Date;
|
|
538
537
|
createdAt: Date;
|
|
539
538
|
updatedAt: Date;
|
|
539
|
+
token: string;
|
|
540
540
|
ipAddress?: string | null | undefined;
|
|
541
541
|
userAgent?: string | null | undefined;
|
|
542
542
|
};
|
|
543
543
|
user: Record<string, any> & {
|
|
544
544
|
id: string;
|
|
545
|
-
name: string;
|
|
546
|
-
emailVerified: boolean;
|
|
547
545
|
email: string;
|
|
546
|
+
emailVerified: boolean;
|
|
547
|
+
name: string;
|
|
548
548
|
createdAt: Date;
|
|
549
549
|
updatedAt: Date;
|
|
550
550
|
image?: string | null | undefined;
|
|
@@ -592,19 +592,19 @@ declare const autumn: (options?: {
|
|
|
592
592
|
session: {
|
|
593
593
|
session: Record<string, any> & {
|
|
594
594
|
id: string;
|
|
595
|
-
token: string;
|
|
596
595
|
userId: string;
|
|
597
596
|
expiresAt: Date;
|
|
598
597
|
createdAt: Date;
|
|
599
598
|
updatedAt: Date;
|
|
599
|
+
token: string;
|
|
600
600
|
ipAddress?: string | null | undefined;
|
|
601
601
|
userAgent?: string | null | undefined;
|
|
602
602
|
};
|
|
603
603
|
user: Record<string, any> & {
|
|
604
604
|
id: string;
|
|
605
|
-
name: string;
|
|
606
|
-
emailVerified: boolean;
|
|
607
605
|
email: string;
|
|
606
|
+
emailVerified: boolean;
|
|
607
|
+
name: string;
|
|
608
608
|
createdAt: Date;
|
|
609
609
|
updatedAt: Date;
|
|
610
610
|
image?: string | null | undefined;
|
|
@@ -655,19 +655,19 @@ declare const autumn: (options?: {
|
|
|
655
655
|
session: {
|
|
656
656
|
session: Record<string, any> & {
|
|
657
657
|
id: string;
|
|
658
|
-
token: string;
|
|
659
658
|
userId: string;
|
|
660
659
|
expiresAt: Date;
|
|
661
660
|
createdAt: Date;
|
|
662
661
|
updatedAt: Date;
|
|
662
|
+
token: string;
|
|
663
663
|
ipAddress?: string | null | undefined;
|
|
664
664
|
userAgent?: string | null | undefined;
|
|
665
665
|
};
|
|
666
666
|
user: Record<string, any> & {
|
|
667
667
|
id: string;
|
|
668
|
-
name: string;
|
|
669
|
-
emailVerified: boolean;
|
|
670
668
|
email: string;
|
|
669
|
+
emailVerified: boolean;
|
|
670
|
+
name: string;
|
|
671
671
|
createdAt: Date;
|
|
672
672
|
updatedAt: Date;
|
|
673
673
|
image?: string | null | undefined;
|
|
@@ -158,19 +158,19 @@ declare const autumn: (options?: {
|
|
|
158
158
|
session: {
|
|
159
159
|
session: Record<string, any> & {
|
|
160
160
|
id: string;
|
|
161
|
-
token: string;
|
|
162
161
|
userId: string;
|
|
163
162
|
expiresAt: Date;
|
|
164
163
|
createdAt: Date;
|
|
165
164
|
updatedAt: Date;
|
|
165
|
+
token: string;
|
|
166
166
|
ipAddress?: string | null | undefined;
|
|
167
167
|
userAgent?: string | null | undefined;
|
|
168
168
|
};
|
|
169
169
|
user: Record<string, any> & {
|
|
170
170
|
id: string;
|
|
171
|
-
name: string;
|
|
172
|
-
emailVerified: boolean;
|
|
173
171
|
email: string;
|
|
172
|
+
emailVerified: boolean;
|
|
173
|
+
name: string;
|
|
174
174
|
createdAt: Date;
|
|
175
175
|
updatedAt: Date;
|
|
176
176
|
image?: string | null | undefined;
|
|
@@ -256,19 +256,19 @@ declare const autumn: (options?: {
|
|
|
256
256
|
session: {
|
|
257
257
|
session: Record<string, any> & {
|
|
258
258
|
id: string;
|
|
259
|
-
token: string;
|
|
260
259
|
userId: string;
|
|
261
260
|
expiresAt: Date;
|
|
262
261
|
createdAt: Date;
|
|
263
262
|
updatedAt: Date;
|
|
263
|
+
token: string;
|
|
264
264
|
ipAddress?: string | null | undefined;
|
|
265
265
|
userAgent?: string | null | undefined;
|
|
266
266
|
};
|
|
267
267
|
user: Record<string, any> & {
|
|
268
268
|
id: string;
|
|
269
|
-
name: string;
|
|
270
|
-
emailVerified: boolean;
|
|
271
269
|
email: string;
|
|
270
|
+
emailVerified: boolean;
|
|
271
|
+
name: string;
|
|
272
272
|
createdAt: Date;
|
|
273
273
|
updatedAt: Date;
|
|
274
274
|
image?: string | null | undefined;
|
|
@@ -336,19 +336,19 @@ declare const autumn: (options?: {
|
|
|
336
336
|
session: {
|
|
337
337
|
session: Record<string, any> & {
|
|
338
338
|
id: string;
|
|
339
|
-
token: string;
|
|
340
339
|
userId: string;
|
|
341
340
|
expiresAt: Date;
|
|
342
341
|
createdAt: Date;
|
|
343
342
|
updatedAt: Date;
|
|
343
|
+
token: string;
|
|
344
344
|
ipAddress?: string | null | undefined;
|
|
345
345
|
userAgent?: string | null | undefined;
|
|
346
346
|
};
|
|
347
347
|
user: Record<string, any> & {
|
|
348
348
|
id: string;
|
|
349
|
-
name: string;
|
|
350
|
-
emailVerified: boolean;
|
|
351
349
|
email: string;
|
|
350
|
+
emailVerified: boolean;
|
|
351
|
+
name: string;
|
|
352
352
|
createdAt: Date;
|
|
353
353
|
updatedAt: Date;
|
|
354
354
|
image?: string | null | undefined;
|
|
@@ -408,19 +408,19 @@ declare const autumn: (options?: {
|
|
|
408
408
|
session: {
|
|
409
409
|
session: Record<string, any> & {
|
|
410
410
|
id: string;
|
|
411
|
-
token: string;
|
|
412
411
|
userId: string;
|
|
413
412
|
expiresAt: Date;
|
|
414
413
|
createdAt: Date;
|
|
415
414
|
updatedAt: Date;
|
|
415
|
+
token: string;
|
|
416
416
|
ipAddress?: string | null | undefined;
|
|
417
417
|
userAgent?: string | null | undefined;
|
|
418
418
|
};
|
|
419
419
|
user: Record<string, any> & {
|
|
420
420
|
id: string;
|
|
421
|
-
name: string;
|
|
422
|
-
emailVerified: boolean;
|
|
423
421
|
email: string;
|
|
422
|
+
emailVerified: boolean;
|
|
423
|
+
name: string;
|
|
424
424
|
createdAt: Date;
|
|
425
425
|
updatedAt: Date;
|
|
426
426
|
image?: string | null | undefined;
|
|
@@ -472,19 +472,19 @@ declare const autumn: (options?: {
|
|
|
472
472
|
session: {
|
|
473
473
|
session: Record<string, any> & {
|
|
474
474
|
id: string;
|
|
475
|
-
token: string;
|
|
476
475
|
userId: string;
|
|
477
476
|
expiresAt: Date;
|
|
478
477
|
createdAt: Date;
|
|
479
478
|
updatedAt: Date;
|
|
479
|
+
token: string;
|
|
480
480
|
ipAddress?: string | null | undefined;
|
|
481
481
|
userAgent?: string | null | undefined;
|
|
482
482
|
};
|
|
483
483
|
user: Record<string, any> & {
|
|
484
484
|
id: string;
|
|
485
|
-
name: string;
|
|
486
|
-
emailVerified: boolean;
|
|
487
485
|
email: string;
|
|
486
|
+
emailVerified: boolean;
|
|
487
|
+
name: string;
|
|
488
488
|
createdAt: Date;
|
|
489
489
|
updatedAt: Date;
|
|
490
490
|
image?: string | null | undefined;
|
|
@@ -532,19 +532,19 @@ declare const autumn: (options?: {
|
|
|
532
532
|
session: {
|
|
533
533
|
session: Record<string, any> & {
|
|
534
534
|
id: string;
|
|
535
|
-
token: string;
|
|
536
535
|
userId: string;
|
|
537
536
|
expiresAt: Date;
|
|
538
537
|
createdAt: Date;
|
|
539
538
|
updatedAt: Date;
|
|
539
|
+
token: string;
|
|
540
540
|
ipAddress?: string | null | undefined;
|
|
541
541
|
userAgent?: string | null | undefined;
|
|
542
542
|
};
|
|
543
543
|
user: Record<string, any> & {
|
|
544
544
|
id: string;
|
|
545
|
-
name: string;
|
|
546
|
-
emailVerified: boolean;
|
|
547
545
|
email: string;
|
|
546
|
+
emailVerified: boolean;
|
|
547
|
+
name: string;
|
|
548
548
|
createdAt: Date;
|
|
549
549
|
updatedAt: Date;
|
|
550
550
|
image?: string | null | undefined;
|
|
@@ -592,19 +592,19 @@ declare const autumn: (options?: {
|
|
|
592
592
|
session: {
|
|
593
593
|
session: Record<string, any> & {
|
|
594
594
|
id: string;
|
|
595
|
-
token: string;
|
|
596
595
|
userId: string;
|
|
597
596
|
expiresAt: Date;
|
|
598
597
|
createdAt: Date;
|
|
599
598
|
updatedAt: Date;
|
|
599
|
+
token: string;
|
|
600
600
|
ipAddress?: string | null | undefined;
|
|
601
601
|
userAgent?: string | null | undefined;
|
|
602
602
|
};
|
|
603
603
|
user: Record<string, any> & {
|
|
604
604
|
id: string;
|
|
605
|
-
name: string;
|
|
606
|
-
emailVerified: boolean;
|
|
607
605
|
email: string;
|
|
606
|
+
emailVerified: boolean;
|
|
607
|
+
name: string;
|
|
608
608
|
createdAt: Date;
|
|
609
609
|
updatedAt: Date;
|
|
610
610
|
image?: string | null | undefined;
|
|
@@ -655,19 +655,19 @@ declare const autumn: (options?: {
|
|
|
655
655
|
session: {
|
|
656
656
|
session: Record<string, any> & {
|
|
657
657
|
id: string;
|
|
658
|
-
token: string;
|
|
659
658
|
userId: string;
|
|
660
659
|
expiresAt: Date;
|
|
661
660
|
createdAt: Date;
|
|
662
661
|
updatedAt: Date;
|
|
662
|
+
token: string;
|
|
663
663
|
ipAddress?: string | null | undefined;
|
|
664
664
|
userAgent?: string | null | undefined;
|
|
665
665
|
};
|
|
666
666
|
user: Record<string, any> & {
|
|
667
667
|
id: string;
|
|
668
|
-
name: string;
|
|
669
|
-
emailVerified: boolean;
|
|
670
668
|
email: string;
|
|
669
|
+
emailVerified: boolean;
|
|
670
|
+
name: string;
|
|
671
671
|
createdAt: Date;
|
|
672
672
|
updatedAt: Date;
|
|
673
673
|
image?: string | null | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React$1 from 'react';
|
|
2
|
-
import { A as AutumnClient } from './ReactAutumnClient-
|
|
2
|
+
import { A as AutumnClient } from './ReactAutumnClient-Dc-wJFoV.mjs';
|
|
3
3
|
import './client/types/clientEntTypes.mjs';
|
|
4
4
|
import './client/types/clientGenTypes.mjs';
|
|
5
5
|
import 'zod/v4';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React$1 from 'react';
|
|
2
|
-
import { A as AutumnClient } from './ReactAutumnClient-
|
|
2
|
+
import { A as AutumnClient } from './ReactAutumnClient-BKSxQ-QD.js';
|
|
3
3
|
import './client/types/clientEntTypes.js';
|
|
4
4
|
import './client/types/clientGenTypes.js';
|
|
5
5
|
import 'zod/v4';
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
import {
|
|
4
4
|
AutumnContext,
|
|
5
5
|
useAutumnContext
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-ABJEE3UK.mjs";
|
|
6
|
+
} from "./chunk-BD4NZOEZ.mjs";
|
|
7
|
+
import "./chunk-6VDZ3JMC.mjs";
|
|
9
8
|
import "./chunk-JVCOY7ZL.mjs";
|
|
10
9
|
import "./chunk-CIBQ4BJU.mjs";
|
|
10
|
+
import "./chunk-ABJEE3UK.mjs";
|
|
11
11
|
import "./chunk-V575SGOW.mjs";
|
|
12
12
|
import "./chunk-ZV4RPZTM.mjs";
|
|
13
13
|
import "./chunk-VTGR7VVK.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import React__default from 'react';
|
|
3
|
-
import { A as AutumnClient } from './ReactAutumnClient-
|
|
3
|
+
import { A as AutumnClient } from './ReactAutumnClient-Dc-wJFoV.mjs';
|
|
4
4
|
import './client/types/clientEntTypes.mjs';
|
|
5
5
|
import './client/types/clientGenTypes.mjs';
|
|
6
6
|
import 'zod/v4';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import React__default from 'react';
|
|
3
|
-
import { A as AutumnClient } from './ReactAutumnClient-
|
|
3
|
+
import { A as AutumnClient } from './ReactAutumnClient-BKSxQ-QD.js';
|
|
4
4
|
import './client/types/clientEntTypes.js';
|
|
5
5
|
import './client/types/clientGenTypes.js';
|
|
6
6
|
import 'zod/v4';
|
|
@@ -1549,6 +1549,11 @@ var useAutumnBase = ({
|
|
|
1549
1549
|
const checkout = async (params) => {
|
|
1550
1550
|
const { data, error } = await client.checkout(params);
|
|
1551
1551
|
const { dialog, ...rest } = params;
|
|
1552
|
+
if (params.dialog && params.productIds) {
|
|
1553
|
+
throw new Error(
|
|
1554
|
+
"Dialog and productIds are not supported together in checkout()"
|
|
1555
|
+
);
|
|
1556
|
+
}
|
|
1552
1557
|
if (error) {
|
|
1553
1558
|
return { data, error };
|
|
1554
1559
|
}
|
|
@@ -3,17 +3,17 @@
|
|
|
3
3
|
"use client";
|
|
4
4
|
import {
|
|
5
5
|
BaseAutumnProvider
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-Q4DQR73E.mjs";
|
|
7
7
|
import "./chunk-RFSQBGLO.mjs";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-VRNUTHYD.mjs";
|
|
9
9
|
import "./chunk-BM36COXS.mjs";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-NFVAFRF6.mjs";
|
|
11
11
|
import "./chunk-HBJDIEEJ.mjs";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-ABJEE3UK.mjs";
|
|
12
|
+
import "./chunk-BD4NZOEZ.mjs";
|
|
13
|
+
import "./chunk-6VDZ3JMC.mjs";
|
|
15
14
|
import "./chunk-JVCOY7ZL.mjs";
|
|
16
15
|
import "./chunk-CIBQ4BJU.mjs";
|
|
16
|
+
import "./chunk-ABJEE3UK.mjs";
|
|
17
17
|
import "./chunk-V575SGOW.mjs";
|
|
18
18
|
import "./chunk-ZV4RPZTM.mjs";
|
|
19
19
|
import "./chunk-VTGR7VVK.mjs";
|
package/dist/libraries/react/{ReactAutumnClient-BG8_E3nb.d.ts → ReactAutumnClient-BKSxQ-QD.d.ts}
RENAMED
|
@@ -114,7 +114,8 @@ declare class AutumnClient {
|
|
|
114
114
|
} | undefined;
|
|
115
115
|
}>;
|
|
116
116
|
checkout: (params: {
|
|
117
|
-
productId
|
|
117
|
+
productId?: string | undefined;
|
|
118
|
+
productIds?: string[] | undefined;
|
|
118
119
|
entityId?: string | undefined;
|
|
119
120
|
entityData?: any;
|
|
120
121
|
options?: {
|
package/dist/libraries/react/{ReactAutumnClient-gvMVYgdO.d.mts → ReactAutumnClient-Dc-wJFoV.d.mts}
RENAMED
|
@@ -114,7 +114,8 @@ declare class AutumnClient {
|
|
|
114
114
|
} | undefined;
|
|
115
115
|
}>;
|
|
116
116
|
checkout: (params: {
|
|
117
|
-
productId
|
|
117
|
+
productId?: string | undefined;
|
|
118
|
+
productIds?: string[] | undefined;
|
|
118
119
|
entityId?: string | undefined;
|
|
119
120
|
entityData?: any;
|
|
120
121
|
options?: {
|
|
@@ -3,7 +3,7 @@ import { C as CustomerData } from './cusTypes-Dco5eq7y.mjs';
|
|
|
3
3
|
import './prodTypes-C8xRoBP7.mjs';
|
|
4
4
|
import 'zod/v4';
|
|
5
5
|
|
|
6
|
-
declare const ReactAutumnProvider: ({ children, getBearerToken, backendUrl, customerData, includeCredentials, betterAuthUrl, headers, }: {
|
|
6
|
+
declare const ReactAutumnProvider: ({ children, getBearerToken, backendUrl, customerData, includeCredentials, betterAuthUrl, headers, convexApi, }: {
|
|
7
7
|
children: React.ReactNode;
|
|
8
8
|
getBearerToken?: () => Promise<string | null | undefined>;
|
|
9
9
|
backendUrl?: string;
|
|
@@ -11,6 +11,7 @@ declare const ReactAutumnProvider: ({ children, getBearerToken, backendUrl, cust
|
|
|
11
11
|
includeCredentials?: boolean;
|
|
12
12
|
betterAuthUrl?: string;
|
|
13
13
|
headers?: Record<string, string>;
|
|
14
|
+
convexApi?: any;
|
|
14
15
|
}) => react_jsx_runtime.JSX.Element;
|
|
15
16
|
|
|
16
17
|
export { ReactAutumnProvider };
|
|
@@ -3,7 +3,7 @@ import { C as CustomerData } from './cusTypes-k5jXe0qX.js';
|
|
|
3
3
|
import './prodTypes-C8xRoBP7.js';
|
|
4
4
|
import 'zod/v4';
|
|
5
5
|
|
|
6
|
-
declare const ReactAutumnProvider: ({ children, getBearerToken, backendUrl, customerData, includeCredentials, betterAuthUrl, headers, }: {
|
|
6
|
+
declare const ReactAutumnProvider: ({ children, getBearerToken, backendUrl, customerData, includeCredentials, betterAuthUrl, headers, convexApi, }: {
|
|
7
7
|
children: React.ReactNode;
|
|
8
8
|
getBearerToken?: () => Promise<string | null | undefined>;
|
|
9
9
|
backendUrl?: string;
|
|
@@ -11,6 +11,7 @@ declare const ReactAutumnProvider: ({ children, getBearerToken, backendUrl, cust
|
|
|
11
11
|
includeCredentials?: boolean;
|
|
12
12
|
betterAuthUrl?: string;
|
|
13
13
|
headers?: Record<string, string>;
|
|
14
|
+
convexApi?: any;
|
|
14
15
|
}) => react_jsx_runtime.JSX.Element;
|
|
15
16
|
|
|
16
17
|
export { ReactAutumnProvider };
|
|
@@ -1550,6 +1550,11 @@ var useAutumnBase = ({
|
|
|
1550
1550
|
const checkout = async (params) => {
|
|
1551
1551
|
const { data, error } = await client.checkout(params);
|
|
1552
1552
|
const { dialog, ...rest } = params;
|
|
1553
|
+
if (params.dialog && params.productIds) {
|
|
1554
|
+
throw new Error(
|
|
1555
|
+
"Dialog and productIds are not supported together in checkout()"
|
|
1556
|
+
);
|
|
1557
|
+
}
|
|
1553
1558
|
if (error) {
|
|
1554
1559
|
return { data, error };
|
|
1555
1560
|
}
|
|
@@ -1985,7 +1990,8 @@ var ReactAutumnProvider = ({
|
|
|
1985
1990
|
customerData,
|
|
1986
1991
|
includeCredentials,
|
|
1987
1992
|
betterAuthUrl,
|
|
1988
|
-
headers
|
|
1993
|
+
headers,
|
|
1994
|
+
convexApi
|
|
1989
1995
|
}) => {
|
|
1990
1996
|
let client = new AutumnClient({
|
|
1991
1997
|
backendUrl: getBackendUrl(backendUrl),
|
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
4
|
ReactAutumnProvider
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-3HD5EPJE.mjs";
|
|
6
|
+
import "./chunk-Q4DQR73E.mjs";
|
|
7
7
|
import "./chunk-RFSQBGLO.mjs";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-VRNUTHYD.mjs";
|
|
9
9
|
import "./chunk-BM36COXS.mjs";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-NFVAFRF6.mjs";
|
|
11
11
|
import "./chunk-HBJDIEEJ.mjs";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-ABJEE3UK.mjs";
|
|
12
|
+
import "./chunk-BD4NZOEZ.mjs";
|
|
13
|
+
import "./chunk-6VDZ3JMC.mjs";
|
|
15
14
|
import "./chunk-JVCOY7ZL.mjs";
|
|
16
15
|
import "./chunk-CIBQ4BJU.mjs";
|
|
16
|
+
import "./chunk-ABJEE3UK.mjs";
|
|
17
17
|
import "./chunk-V575SGOW.mjs";
|
|
18
18
|
import "./chunk-ZV4RPZTM.mjs";
|
|
19
19
|
import "./chunk-VTGR7VVK.mjs";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
// ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.
|
|
4
|
+
// ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.1/node_modules/lucide-react/dist/esm/createLucideIcon.js
|
|
5
5
|
import { forwardRef as forwardRef2, createElement as createElement2 } from "react";
|
|
6
6
|
|
|
7
|
-
// ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.
|
|
7
|
+
// ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.1/node_modules/lucide-react/dist/esm/shared/src/utils.js
|
|
8
8
|
var toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
9
9
|
var toCamelCase = (string) => string.replace(
|
|
10
10
|
/^([A-Z])|[\s-_]+(\w)/g,
|
|
@@ -25,10 +25,10 @@ var hasA11yProp = (props) => {
|
|
|
25
25
|
}
|
|
26
26
|
};
|
|
27
27
|
|
|
28
|
-
// ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.
|
|
28
|
+
// ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.1/node_modules/lucide-react/dist/esm/Icon.js
|
|
29
29
|
import { forwardRef, createElement } from "react";
|
|
30
30
|
|
|
31
|
-
// ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.
|
|
31
|
+
// ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.1/node_modules/lucide-react/dist/esm/defaultAttributes.js
|
|
32
32
|
var defaultAttributes = {
|
|
33
33
|
xmlns: "http://www.w3.org/2000/svg",
|
|
34
34
|
width: 24,
|
|
@@ -41,7 +41,7 @@ var defaultAttributes = {
|
|
|
41
41
|
strokeLinejoin: "round"
|
|
42
42
|
};
|
|
43
43
|
|
|
44
|
-
// ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.
|
|
44
|
+
// ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.1/node_modules/lucide-react/dist/esm/Icon.js
|
|
45
45
|
var Icon = forwardRef(
|
|
46
46
|
({
|
|
47
47
|
color = "currentColor",
|
|
@@ -72,7 +72,7 @@ var Icon = forwardRef(
|
|
|
72
72
|
)
|
|
73
73
|
);
|
|
74
74
|
|
|
75
|
-
// ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.
|
|
75
|
+
// ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.1/node_modules/lucide-react/dist/esm/createLucideIcon.js
|
|
76
76
|
var createLucideIcon = (iconName, iconNode) => {
|
|
77
77
|
const Component = forwardRef2(
|
|
78
78
|
({ className, ...props }, ref) => createElement2(Icon, {
|
|
@@ -90,22 +90,22 @@ var createLucideIcon = (iconName, iconNode) => {
|
|
|
90
90
|
return Component;
|
|
91
91
|
};
|
|
92
92
|
|
|
93
|
-
// ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.
|
|
93
|
+
// ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.1/node_modules/lucide-react/dist/esm/icons/arrow-right.js
|
|
94
94
|
var __iconNode = [
|
|
95
95
|
["path", { d: "M5 12h14", key: "1ays0h" }],
|
|
96
96
|
["path", { d: "m12 5 7 7-7 7", key: "xquz4c" }]
|
|
97
97
|
];
|
|
98
98
|
var ArrowRight = createLucideIcon("arrow-right", __iconNode);
|
|
99
99
|
|
|
100
|
-
// ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.
|
|
100
|
+
// ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.1/node_modules/lucide-react/dist/esm/icons/chevron-down.js
|
|
101
101
|
var __iconNode2 = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]];
|
|
102
102
|
var ChevronDown = createLucideIcon("chevron-down", __iconNode2);
|
|
103
103
|
|
|
104
|
-
// ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.
|
|
104
|
+
// ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.1/node_modules/lucide-react/dist/esm/icons/loader-circle.js
|
|
105
105
|
var __iconNode3 = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]];
|
|
106
106
|
var LoaderCircle = createLucideIcon("loader-circle", __iconNode3);
|
|
107
107
|
|
|
108
|
-
// ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.
|
|
108
|
+
// ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.1/node_modules/lucide-react/dist/esm/icons/x.js
|
|
109
109
|
var __iconNode4 = [
|
|
110
110
|
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
111
111
|
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|