autumn-js 0.1.8 → 0.1.9
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 +4 -0
- package/dist/libraries/backend/better-auth.d.ts +4 -0
- package/dist/libraries/backend/better-auth.js +10 -2
- package/dist/libraries/backend/better-auth.mjs +7 -7
- package/dist/libraries/backend/{chunk-33ET4N4V.mjs → chunk-274BIVOC.mjs} +1 -1
- package/dist/libraries/backend/{chunk-BRZHNRU5.mjs → chunk-7WWKVE4J.mjs} +10 -10
- package/dist/libraries/backend/{chunk-GO7TVFSN.mjs → chunk-EJBD5GH7.mjs} +1 -1
- package/dist/libraries/backend/{chunk-TFYLV3GN.mjs → chunk-I43OU64D.mjs} +1 -1
- package/dist/libraries/backend/{chunk-VBHBF3GP.mjs → chunk-JN4ULI5R.mjs} +1 -1
- package/dist/libraries/backend/{chunk-AREWK25J.mjs → chunk-KY3RLTE7.mjs} +10 -2
- package/dist/libraries/backend/{chunk-LL53FE2Z.mjs → chunk-YN334O74.mjs} +1 -1
- package/dist/libraries/backend/convex.js +10 -2
- package/dist/libraries/backend/convex.mjs +7 -7
- package/dist/libraries/backend/elysia.js +10 -2
- package/dist/libraries/backend/elysia.mjs +7 -7
- package/dist/libraries/backend/express.d.mts +1 -1
- package/dist/libraries/backend/express.d.ts +1 -1
- package/dist/libraries/backend/express.js +10 -2
- package/dist/libraries/backend/express.mjs +7 -7
- package/dist/libraries/backend/fastify.js +10 -2
- package/dist/libraries/backend/fastify.mjs +7 -7
- package/dist/libraries/backend/hono.js +10 -2
- package/dist/libraries/backend/hono.mjs +7 -7
- package/dist/libraries/backend/index.d.mts +1 -1
- package/dist/libraries/backend/index.d.ts +1 -1
- package/dist/libraries/backend/index.js +10 -2
- package/dist/libraries/backend/index.mjs +7 -7
- package/dist/libraries/backend/next.js +10 -2
- package/dist/libraries/backend/next.mjs +7 -7
- package/dist/libraries/backend/react-router.js +10 -2
- package/dist/libraries/backend/react-router.mjs +7 -7
- package/dist/libraries/backend/{referralTypes-DyuV6oJo.d.mts → referralTypes-BEcapeWf.d.mts} +17 -0
- package/dist/libraries/backend/{referralTypes-zcdPSX-p.d.ts → referralTypes-DuAlUwev.d.ts} +17 -0
- package/dist/libraries/backend/remix_dep.js +10 -2
- package/dist/libraries/backend/remix_dep.mjs +7 -7
- package/dist/libraries/backend/routes/backendRouter.js +10 -2
- package/dist/libraries/backend/routes/backendRouter.mjs +7 -7
- package/dist/libraries/backend/routes/entityRoutes.js +10 -2
- package/dist/libraries/backend/routes/entityRoutes.mjs +3 -3
- package/dist/libraries/backend/routes/genRoutes.js +10 -2
- package/dist/libraries/backend/routes/genRoutes.mjs +3 -3
- package/dist/libraries/backend/routes/productRoutes.js +10 -2
- package/dist/libraries/backend/routes/productRoutes.mjs +3 -3
- package/dist/libraries/backend/routes/referralRoutes.js +10 -2
- package/dist/libraries/backend/routes/referralRoutes.mjs +3 -3
- package/dist/libraries/backend/supabase.js +10 -2
- package/dist/libraries/backend/supabase.mjs +7 -7
- package/dist/libraries/backend/tanstack.js +10 -2
- package/dist/libraries/backend/tanstack.mjs +7 -7
- package/dist/libraries/backend/utils/backendRes.js +10 -2
- package/dist/libraries/backend/utils/backendRes.mjs +1 -1
- package/dist/libraries/backend/utils/withAuth.d.mts +1 -1
- package/dist/libraries/backend/utils/withAuth.d.ts +1 -1
- package/dist/libraries/backend/utils/withAuth.js +10 -2
- package/dist/libraries/backend/utils/withAuth.mjs +2 -2
- package/dist/libraries/react/AutumnContext.d.mts +4 -4
- package/dist/libraries/react/AutumnContext.d.ts +4 -4
- package/dist/libraries/react/AutumnContext.js +10 -2
- package/dist/libraries/react/AutumnContext.mjs +3 -3
- package/dist/libraries/react/BaseAutumnProvider.d.mts +4 -4
- package/dist/libraries/react/BaseAutumnProvider.d.ts +4 -4
- package/dist/libraries/react/BaseAutumnProvider.js +10 -2
- package/dist/libraries/react/BaseAutumnProvider.mjs +8 -8
- package/dist/libraries/react/{ReactAutumnClient-BUq9E84_.d.ts → ReactAutumnClient-DCMQEadM.d.ts} +10 -3
- package/dist/libraries/react/{ReactAutumnClient-CpAGyyur.d.mts → ReactAutumnClient-Dm14G99_.d.mts} +10 -3
- package/dist/libraries/react/ReactAutumnProvider.d.mts +1 -1
- package/dist/libraries/react/ReactAutumnProvider.d.ts +1 -1
- package/dist/libraries/react/ReactAutumnProvider.js +10 -2
- package/dist/libraries/react/ReactAutumnProvider.mjs +9 -9
- package/dist/libraries/react/{attachTypes-CcB6xjSF.d.ts → attachTypes-QTf_JXj7.d.ts} +33 -0
- package/dist/libraries/react/{attachTypes-DqUN3q8s.d.mts → attachTypes-Sv_paJZ2.d.mts} +33 -0
- package/dist/libraries/react/{chunk-WEKDMT3Y.mjs → chunk-3YIV3N5Y.mjs} +1 -1
- package/dist/libraries/react/{chunk-OUWRRLOI.mjs → chunk-4UPD6W4L.mjs} +463 -465
- package/dist/libraries/react/{chunk-WH5MYLSM.mjs → chunk-7LOW3KZ3.mjs} +2 -2
- package/dist/libraries/react/{chunk-HUKIJ7DB.mjs → chunk-CPN2LD2I.mjs} +2 -2
- package/dist/libraries/react/{chunk-TM6QWQLU.mjs → chunk-DRUVAAUW.mjs} +3 -3
- package/dist/libraries/react/{chunk-T3B4TVD4.mjs → chunk-E2BEY4ZP.mjs} +1 -1
- package/dist/libraries/react/{chunk-5K2M3CQZ.mjs → chunk-FEISQQNM.mjs} +1 -1
- package/dist/libraries/react/{chunk-BXMZYHE7.mjs → chunk-FJWZPMWU.mjs} +3 -3
- package/dist/libraries/react/{chunk-WT5K3J2K.mjs → chunk-I2A7PK2L.mjs} +17 -17
- package/dist/libraries/react/{chunk-JK2TFCOG.mjs → chunk-IRTAGYDD.mjs} +2 -2
- package/dist/libraries/react/{chunk-YCDNQZT5.mjs → chunk-JGDTNJTR.mjs} +2 -2
- package/dist/libraries/react/{chunk-WQXUZO6K.mjs → chunk-JIWMNR2E.mjs} +10 -2
- package/dist/libraries/react/{chunk-6I7KWRND.mjs → chunk-JJVQIA5V.mjs} +1 -1
- package/dist/libraries/react/{chunk-IDSAD3KF.mjs → chunk-KG2NPWAE.mjs} +1 -1
- package/dist/libraries/react/{chunk-M7SUFZ42.mjs → chunk-KUS3X33V.mjs} +1 -1
- package/dist/libraries/react/{chunk-JNR7QAPG.mjs → chunk-MKP43WD6.mjs} +1 -1
- package/dist/libraries/react/{chunk-2TQBFCWM.mjs → chunk-OTZ65PCT.mjs} +4 -4
- package/dist/libraries/react/{chunk-I6BTXKGK.mjs → chunk-QZPMYB2V.mjs} +2 -2
- package/dist/libraries/react/{chunk-UOJ6NIVD.mjs → chunk-TBRYCVBL.mjs} +3 -3
- package/dist/libraries/react/{chunk-A5YPS4K4.mjs → chunk-UQ5HI732.mjs} +3 -3
- package/dist/libraries/react/{chunk-5OJIHAX7.mjs → chunk-URFTKUL2.mjs} +1 -1
- package/dist/libraries/react/{chunk-MW2FSYG3.mjs → chunk-XTONWQ65.mjs} +1 -1
- package/dist/libraries/react/{chunk-NHDZWWMZ.mjs → chunk-YWQTQ72B.mjs} +2 -2
- package/dist/libraries/react/client/ReactAutumnClient.d.mts +4 -4
- package/dist/libraries/react/client/ReactAutumnClient.d.ts +4 -4
- package/dist/libraries/react/client/ReactAutumnClient.js +10 -2
- package/dist/libraries/react/client/ReactAutumnClient.mjs +2 -2
- package/dist/libraries/react/client/clientCompMethods.d.mts +4 -4
- package/dist/libraries/react/client/clientCompMethods.d.ts +4 -4
- package/dist/libraries/react/client/clientCusMethods.d.mts +4 -4
- package/dist/libraries/react/client/clientCusMethods.d.ts +4 -4
- package/dist/libraries/react/client/clientEntityMethods.d.mts +4 -4
- package/dist/libraries/react/client/clientEntityMethods.d.ts +4 -4
- package/dist/libraries/react/client/clientGenMethods.d.mts +4 -4
- package/dist/libraries/react/client/clientGenMethods.d.ts +4 -4
- package/dist/libraries/react/client/clientProdMethods.d.mts +4 -4
- package/dist/libraries/react/client/clientProdMethods.d.ts +4 -4
- package/dist/libraries/react/client/clientReferralMethods.d.mts +4 -4
- package/dist/libraries/react/client/clientReferralMethods.d.ts +4 -4
- package/dist/libraries/react/client/types/clientGenTypes.js +10 -2
- package/dist/libraries/react/client/types/clientGenTypes.mjs +1 -1
- package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.d.mts +1 -1
- package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.d.ts +1 -1
- package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.js +10 -2
- package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.mjs +25 -25
- package/dist/libraries/react/components/checkout-dialog/lib/checkout-content.d.mts +1 -1
- package/dist/libraries/react/components/checkout-dialog/lib/checkout-content.d.ts +1 -1
- package/dist/libraries/react/components/paywall-dialog/paywall-dialog-synced.js +10 -2
- package/dist/libraries/react/components/paywall-dialog/paywall-dialog-synced.mjs +25 -25
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.js +10 -2
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.mjs +25 -25
- package/dist/libraries/react/components/ui/accordion.mjs +3 -3
- package/dist/libraries/react/components/ui/dialog.mjs +4 -4
- package/dist/libraries/react/components/ui/popover.mjs +5 -5
- package/dist/libraries/react/components/ui/switch.mjs +3 -3
- package/dist/libraries/react/{entTypes-CoF9enrR.d.ts → entTypes-0CBBecul.d.ts} +1 -1
- package/dist/libraries/react/{entTypes-S4hkh1RG.d.mts → entTypes-kVUQcah5.d.mts} +1 -1
- package/dist/libraries/react/hooks/helpers/handleCheck.d.mts +4 -4
- package/dist/libraries/react/hooks/helpers/handleCheck.d.ts +4 -4
- package/dist/libraries/react/hooks/helpers/handleCheck.js +10 -2
- package/dist/libraries/react/hooks/helpers/handleCheck.mjs +2 -2
- package/dist/libraries/react/hooks/helpers/useAutumnBase.d.mts +11 -4
- package/dist/libraries/react/hooks/helpers/useAutumnBase.d.ts +11 -4
- package/dist/libraries/react/hooks/helpers/useAutumnBase.js +10 -2
- package/dist/libraries/react/hooks/helpers/useAutumnBase.mjs +3 -3
- package/dist/libraries/react/hooks/useAnalytics.js +10 -2
- package/dist/libraries/react/hooks/useAnalytics.mjs +4 -4
- package/dist/libraries/react/hooks/useCustomer.d.mts +4 -4
- package/dist/libraries/react/hooks/useCustomer.d.ts +4 -4
- package/dist/libraries/react/hooks/useCustomer.js +10 -2
- package/dist/libraries/react/hooks/useCustomer.mjs +8 -8
- package/dist/libraries/react/hooks/useCustomerBase.d.mts +4 -4
- package/dist/libraries/react/hooks/useCustomerBase.d.ts +4 -4
- package/dist/libraries/react/hooks/useCustomerBase.js +10 -2
- package/dist/libraries/react/hooks/useCustomerBase.mjs +7 -7
- package/dist/libraries/react/hooks/useEntity.d.mts +11 -4
- package/dist/libraries/react/hooks/useEntity.d.ts +11 -4
- package/dist/libraries/react/hooks/useEntity.js +10 -2
- package/dist/libraries/react/hooks/useEntity.mjs +8 -8
- package/dist/libraries/react/hooks/useEntityBase.d.mts +13 -6
- package/dist/libraries/react/hooks/useEntityBase.d.ts +13 -6
- package/dist/libraries/react/hooks/useEntityBase.js +10 -2
- package/dist/libraries/react/hooks/useEntityBase.mjs +7 -7
- package/dist/libraries/react/hooks/usePaywall.js +10 -2
- package/dist/libraries/react/hooks/usePaywall.mjs +4 -4
- package/dist/libraries/react/hooks/usePricingTable.js +10 -2
- package/dist/libraries/react/hooks/usePricingTable.mjs +5 -5
- package/dist/libraries/react/hooks/usePricingTableBase.d.mts +4 -4
- package/dist/libraries/react/hooks/usePricingTableBase.d.ts +4 -4
- package/dist/libraries/react/hooks/usePricingTableBase.js +10 -2
- package/dist/libraries/react/hooks/usePricingTableBase.mjs +2 -2
- package/dist/libraries/react/hooks/useProductsBase.d.mts +4 -4
- package/dist/libraries/react/hooks/useProductsBase.d.ts +4 -4
- package/dist/libraries/react/index.d.mts +40 -0
- package/dist/libraries/react/index.d.ts +40 -0
- package/dist/libraries/react/index.js +10 -2
- package/dist/libraries/react/index.mjs +10 -2
- package/dist/next/client/NextAutumnClient.d.mts +13 -6
- package/dist/next/client/NextAutumnClient.d.ts +13 -6
- package/dist/next/client/NextAutumnProvider.d.mts +1 -1
- package/dist/next/client/NextAutumnProvider.d.ts +1 -1
- package/dist/next/client/{attachTypes-DxJ0LCjT.d.ts → attachTypes-CReq8zJ_.d.ts} +35 -2
- package/dist/next/client/{attachTypes-DZFtFEmv.d.mts → attachTypes-DUUIHTBt.d.mts} +35 -2
- package/dist/next/client/clientUtils.d.mts +2 -2
- package/dist/next/client/clientUtils.d.ts +2 -2
- package/dist/next/client/{entTypes-vjIG3B1G.d.ts → entTypes-BAD1NMvb.d.ts} +1 -1
- package/dist/next/client/{entTypes-CHHBdhBK.d.mts → entTypes-mOI7WnPZ.d.mts} +1 -1
- package/dist/next/client/hooks/useAutumn.d.mts +10 -3
- package/dist/next/client/hooks/useAutumn.d.ts +10 -3
- package/dist/next/client/hooks/useCustomer.d.mts +4 -4
- package/dist/next/client/hooks/useCustomer.d.ts +4 -4
- package/dist/next/client/hooks/useEntity.d.mts +12 -5
- package/dist/next/client/hooks/useEntity.d.ts +12 -5
- package/dist/next/client/types.d.mts +2 -2
- package/dist/next/client/types.d.ts +2 -2
- package/dist/next/server/auth/withNextAuth.d.mts +1 -1
- package/dist/next/server/auth/withNextAuth.d.ts +1 -1
- package/dist/next/server/componentActions.d.mts +1 -1
- package/dist/next/server/componentActions.d.ts +1 -1
- package/dist/next/server/cusActions.d.mts +34 -17
- package/dist/next/server/cusActions.d.ts +34 -17
- package/dist/next/server/genActions.d.mts +1 -1
- package/dist/next/server/genActions.d.ts +1 -1
- package/dist/sdk/index.d.mts +50 -0
- package/dist/sdk/index.d.ts +50 -0
- package/dist/sdk/index.js +10 -2
- package/dist/sdk/index.mjs +10 -2
- package/dist/utils/encryptUtils.js +10 -2
- package/dist/utils/encryptUtils.mjs +10 -2
- package/package.json +1 -1
- package/dist/libraries/react/{chunk-KWNH6C27.mjs → chunk-7TYAAD2T.mjs} +11 -11
- package/dist/libraries/react/{cusTypes-DHjT-9rV.d.ts → cusTypes-BeSXIQ6P.d.ts} +2 -2
- package/dist/libraries/react/{cusTypes-CSmAk5io.d.mts → cusTypes-DbCQV8Sj.d.mts} +2 -2
- package/dist/next/client/{clientAttachTypes-qsdoMt_B.d.mts → clientAttachTypes-BzsPgggN.d.mts} +2 -2
- package/dist/next/client/{clientAttachTypes-BXtfXB4v.d.ts → clientAttachTypes-umadXlvp.d.ts} +2 -2
- package/dist/next/client/{cusTypes-Q54uLNO5.d.mts → cusTypes-CIGvysWL.d.mts} +2 -2
- package/dist/next/client/{cusTypes-BHYpk8bK.d.ts → cusTypes-CYojUJSJ.d.ts} +2 -2
- package/dist/next/server/{cusTypes-DgoOZMIt.d.ts → cusTypes-CwopPHB0.d.mts} +8 -8
- package/dist/next/server/{cusTypes-DgoOZMIt.d.mts → cusTypes-CwopPHB0.d.ts} +8 -8
package/dist/sdk/index.mjs
CHANGED
|
@@ -706,7 +706,8 @@ var AttachParamsSchema = z.object({
|
|
|
706
706
|
customer_data: CustomerDataSchema.optional(),
|
|
707
707
|
entity_data: z.any().optional(),
|
|
708
708
|
checkout_session_params: z.record(z.any()).optional(),
|
|
709
|
-
reward: z.string().optional()
|
|
709
|
+
reward: z.string().optional(),
|
|
710
|
+
invoice: z.boolean().optional()
|
|
710
711
|
});
|
|
711
712
|
var AttachResultSchema = z.object({
|
|
712
713
|
checkout_url: z.string().optional(),
|
|
@@ -714,7 +715,14 @@ var AttachResultSchema = z.object({
|
|
|
714
715
|
product_ids: z.array(z.string()),
|
|
715
716
|
code: z.string(),
|
|
716
717
|
message: z.string(),
|
|
717
|
-
customer_data: z.any().optional()
|
|
718
|
+
customer_data: z.any().optional(),
|
|
719
|
+
invoice: z.object({
|
|
720
|
+
status: z.string(),
|
|
721
|
+
stripe_id: z.string(),
|
|
722
|
+
hosted_invoice_url: z.string().nullable(),
|
|
723
|
+
total: z.number(),
|
|
724
|
+
currency: z.string()
|
|
725
|
+
}).optional()
|
|
718
726
|
});
|
|
719
727
|
var CheckoutParamsSchema = z.object({
|
|
720
728
|
customer_id: z.string(),
|
|
@@ -726,7 +726,8 @@ var AttachParamsSchema = import_zod7.z.object({
|
|
|
726
726
|
customer_data: CustomerDataSchema.optional(),
|
|
727
727
|
entity_data: import_zod7.z.any().optional(),
|
|
728
728
|
checkout_session_params: import_zod7.z.record(import_zod7.z.any()).optional(),
|
|
729
|
-
reward: import_zod7.z.string().optional()
|
|
729
|
+
reward: import_zod7.z.string().optional(),
|
|
730
|
+
invoice: import_zod7.z.boolean().optional()
|
|
730
731
|
});
|
|
731
732
|
var AttachResultSchema = import_zod7.z.object({
|
|
732
733
|
checkout_url: import_zod7.z.string().optional(),
|
|
@@ -734,7 +735,14 @@ var AttachResultSchema = import_zod7.z.object({
|
|
|
734
735
|
product_ids: import_zod7.z.array(import_zod7.z.string()),
|
|
735
736
|
code: import_zod7.z.string(),
|
|
736
737
|
message: import_zod7.z.string(),
|
|
737
|
-
customer_data: import_zod7.z.any().optional()
|
|
738
|
+
customer_data: import_zod7.z.any().optional(),
|
|
739
|
+
invoice: import_zod7.z.object({
|
|
740
|
+
status: import_zod7.z.string(),
|
|
741
|
+
stripe_id: import_zod7.z.string(),
|
|
742
|
+
hosted_invoice_url: import_zod7.z.string().nullable(),
|
|
743
|
+
total: import_zod7.z.number(),
|
|
744
|
+
currency: import_zod7.z.string()
|
|
745
|
+
}).optional()
|
|
738
746
|
});
|
|
739
747
|
var CheckoutParamsSchema = import_zod7.z.object({
|
|
740
748
|
customer_id: import_zod7.z.string(),
|
|
@@ -658,7 +658,8 @@ var AttachParamsSchema = z7.object({
|
|
|
658
658
|
customer_data: CustomerDataSchema.optional(),
|
|
659
659
|
entity_data: z7.any().optional(),
|
|
660
660
|
checkout_session_params: z7.record(z7.any()).optional(),
|
|
661
|
-
reward: z7.string().optional()
|
|
661
|
+
reward: z7.string().optional(),
|
|
662
|
+
invoice: z7.boolean().optional()
|
|
662
663
|
});
|
|
663
664
|
var AttachResultSchema = z7.object({
|
|
664
665
|
checkout_url: z7.string().optional(),
|
|
@@ -666,7 +667,14 @@ var AttachResultSchema = z7.object({
|
|
|
666
667
|
product_ids: z7.array(z7.string()),
|
|
667
668
|
code: z7.string(),
|
|
668
669
|
message: z7.string(),
|
|
669
|
-
customer_data: z7.any().optional()
|
|
670
|
+
customer_data: z7.any().optional(),
|
|
671
|
+
invoice: z7.object({
|
|
672
|
+
status: z7.string(),
|
|
673
|
+
stripe_id: z7.string(),
|
|
674
|
+
hosted_invoice_url: z7.string().nullable(),
|
|
675
|
+
total: z7.number(),
|
|
676
|
+
currency: z7.string()
|
|
677
|
+
}).optional()
|
|
670
678
|
});
|
|
671
679
|
var CheckoutParamsSchema = z7.object({
|
|
672
680
|
customer_id: z7.string(),
|
package/package.json
CHANGED
|
@@ -4,16 +4,6 @@ import {
|
|
|
4
4
|
createSlot
|
|
5
5
|
} from "./chunk-RPEGNKJH.mjs";
|
|
6
6
|
|
|
7
|
-
// ../node_modules/.pnpm/@radix-ui+primitive@1.1.2/node_modules/@radix-ui/primitive/dist/index.mjs
|
|
8
|
-
function composeEventHandlers(originalEventHandler, ourEventHandler, { checkForDefaultPrevented = true } = {}) {
|
|
9
|
-
return function handleEvent(event) {
|
|
10
|
-
originalEventHandler?.(event);
|
|
11
|
-
if (checkForDefaultPrevented === false || !event.defaultPrevented) {
|
|
12
|
-
return ourEventHandler?.(event);
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
|
|
17
7
|
// ../node_modules/.pnpm/@radix-ui+react-context@1.1.2_@types+react@19.1.8_react@19.1.0/node_modules/@radix-ui/react-context/dist/index.mjs
|
|
18
8
|
import * as React from "react";
|
|
19
9
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -91,6 +81,16 @@ function composeContextScopes(...scopes) {
|
|
|
91
81
|
return createScope;
|
|
92
82
|
}
|
|
93
83
|
|
|
84
|
+
// ../node_modules/.pnpm/@radix-ui+primitive@1.1.2/node_modules/@radix-ui/primitive/dist/index.mjs
|
|
85
|
+
function composeEventHandlers(originalEventHandler, ourEventHandler, { checkForDefaultPrevented = true } = {}) {
|
|
86
|
+
return function handleEvent(event) {
|
|
87
|
+
originalEventHandler?.(event);
|
|
88
|
+
if (checkForDefaultPrevented === false || !event.defaultPrevented) {
|
|
89
|
+
return ourEventHandler?.(event);
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|
|
94
94
|
// ../node_modules/.pnpm/@radix-ui+react-use-controllable-state@1.2.2_@types+react@19.1.8_react@19.1.0/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs
|
|
95
95
|
import * as React3 from "react";
|
|
96
96
|
|
|
@@ -208,9 +208,9 @@ function dispatchDiscreteCustomEvent(target, event) {
|
|
|
208
208
|
}
|
|
209
209
|
|
|
210
210
|
export {
|
|
211
|
-
composeEventHandlers,
|
|
212
211
|
createContext2,
|
|
213
212
|
createContextScope,
|
|
213
|
+
composeEventHandlers,
|
|
214
214
|
useLayoutEffect2,
|
|
215
215
|
useControllableState,
|
|
216
216
|
Primitive,
|
|
@@ -165,15 +165,15 @@ declare const CreateCustomerParamsSchema: z.ZodObject<{
|
|
|
165
165
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
166
166
|
expand: z.ZodOptional<z.ZodArray<z.ZodEnum<["invoices", "rewards", "trials_used", "entities", "referrals", "payment_method"]>, "many">>;
|
|
167
167
|
}, "strip", z.ZodTypeAny, {
|
|
168
|
-
name?: string | null | undefined;
|
|
169
168
|
id?: string | null | undefined;
|
|
169
|
+
name?: string | null | undefined;
|
|
170
170
|
email?: string | null | undefined;
|
|
171
171
|
fingerprint?: string | null | undefined;
|
|
172
172
|
metadata?: Record<string, any> | undefined;
|
|
173
173
|
expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
|
|
174
174
|
}, {
|
|
175
|
-
name?: string | null | undefined;
|
|
176
175
|
id?: string | null | undefined;
|
|
176
|
+
name?: string | null | undefined;
|
|
177
177
|
email?: string | null | undefined;
|
|
178
178
|
fingerprint?: string | null | undefined;
|
|
179
179
|
metadata?: Record<string, any> | undefined;
|
|
@@ -165,15 +165,15 @@ declare const CreateCustomerParamsSchema: z.ZodObject<{
|
|
|
165
165
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
166
166
|
expand: z.ZodOptional<z.ZodArray<z.ZodEnum<["invoices", "rewards", "trials_used", "entities", "referrals", "payment_method"]>, "many">>;
|
|
167
167
|
}, "strip", z.ZodTypeAny, {
|
|
168
|
-
name?: string | null | undefined;
|
|
169
168
|
id?: string | null | undefined;
|
|
169
|
+
name?: string | null | undefined;
|
|
170
170
|
email?: string | null | undefined;
|
|
171
171
|
fingerprint?: string | null | undefined;
|
|
172
172
|
metadata?: Record<string, any> | undefined;
|
|
173
173
|
expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
|
|
174
174
|
}, {
|
|
175
|
-
name?: string | null | undefined;
|
|
176
175
|
id?: string | null | undefined;
|
|
176
|
+
name?: string | null | undefined;
|
|
177
177
|
email?: string | null | undefined;
|
|
178
178
|
fingerprint?: string | null | undefined;
|
|
179
179
|
metadata?: Record<string, any> | undefined;
|
package/dist/next/client/{clientAttachTypes-qsdoMt_B.d.mts → clientAttachTypes-BzsPgggN.d.mts}
RENAMED
|
@@ -23,15 +23,15 @@ declare const TrackResultSchema: z.ZodObject<{
|
|
|
23
23
|
feature_id: z.ZodOptional<z.ZodString>;
|
|
24
24
|
event_name: z.ZodOptional<z.ZodString>;
|
|
25
25
|
}, "strip", z.ZodTypeAny, {
|
|
26
|
+
code: string;
|
|
26
27
|
id: string;
|
|
27
28
|
customer_id: string;
|
|
28
|
-
code: string;
|
|
29
29
|
feature_id?: string | undefined;
|
|
30
30
|
event_name?: string | undefined;
|
|
31
31
|
}, {
|
|
32
|
+
code: string;
|
|
32
33
|
id: string;
|
|
33
34
|
customer_id: string;
|
|
34
|
-
code: string;
|
|
35
35
|
feature_id?: string | undefined;
|
|
36
36
|
event_name?: string | undefined;
|
|
37
37
|
}>;
|
package/dist/next/client/{clientAttachTypes-BXtfXB4v.d.ts → clientAttachTypes-umadXlvp.d.ts}
RENAMED
|
@@ -23,15 +23,15 @@ declare const TrackResultSchema: z.ZodObject<{
|
|
|
23
23
|
feature_id: z.ZodOptional<z.ZodString>;
|
|
24
24
|
event_name: z.ZodOptional<z.ZodString>;
|
|
25
25
|
}, "strip", z.ZodTypeAny, {
|
|
26
|
+
code: string;
|
|
26
27
|
id: string;
|
|
27
28
|
customer_id: string;
|
|
28
|
-
code: string;
|
|
29
29
|
feature_id?: string | undefined;
|
|
30
30
|
event_name?: string | undefined;
|
|
31
31
|
}, {
|
|
32
|
+
code: string;
|
|
32
33
|
id: string;
|
|
33
34
|
customer_id: string;
|
|
34
|
-
code: string;
|
|
35
35
|
feature_id?: string | undefined;
|
|
36
36
|
event_name?: string | undefined;
|
|
37
37
|
}>;
|
|
@@ -165,17 +165,17 @@ declare const CreateCustomerParamsSchema: z.ZodObject<{
|
|
|
165
165
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
166
166
|
expand: z.ZodOptional<z.ZodArray<z.ZodEnum<["invoices", "rewards", "trials_used", "entities", "referrals", "payment_method"]>, "many">>;
|
|
167
167
|
}, "strip", z.ZodTypeAny, {
|
|
168
|
-
id?: string | null | undefined;
|
|
169
168
|
name?: string | null | undefined;
|
|
170
169
|
email?: string | null | undefined;
|
|
171
170
|
fingerprint?: string | null | undefined;
|
|
171
|
+
id?: string | null | undefined;
|
|
172
172
|
metadata?: Record<string, any> | undefined;
|
|
173
173
|
expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
|
|
174
174
|
}, {
|
|
175
|
-
id?: string | null | undefined;
|
|
176
175
|
name?: string | null | undefined;
|
|
177
176
|
email?: string | null | undefined;
|
|
178
177
|
fingerprint?: string | null | undefined;
|
|
178
|
+
id?: string | null | undefined;
|
|
179
179
|
metadata?: Record<string, any> | undefined;
|
|
180
180
|
expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
|
|
181
181
|
}>;
|
|
@@ -165,17 +165,17 @@ declare const CreateCustomerParamsSchema: z.ZodObject<{
|
|
|
165
165
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
166
166
|
expand: z.ZodOptional<z.ZodArray<z.ZodEnum<["invoices", "rewards", "trials_used", "entities", "referrals", "payment_method"]>, "many">>;
|
|
167
167
|
}, "strip", z.ZodTypeAny, {
|
|
168
|
-
id?: string | null | undefined;
|
|
169
168
|
name?: string | null | undefined;
|
|
170
169
|
email?: string | null | undefined;
|
|
171
170
|
fingerprint?: string | null | undefined;
|
|
171
|
+
id?: string | null | undefined;
|
|
172
172
|
metadata?: Record<string, any> | undefined;
|
|
173
173
|
expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
|
|
174
174
|
}, {
|
|
175
|
-
id?: string | null | undefined;
|
|
176
175
|
name?: string | null | undefined;
|
|
177
176
|
email?: string | null | undefined;
|
|
178
177
|
fingerprint?: string | null | undefined;
|
|
178
|
+
id?: string | null | undefined;
|
|
179
179
|
metadata?: Record<string, any> | undefined;
|
|
180
180
|
expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
|
|
181
181
|
}>;
|
|
@@ -77,15 +77,15 @@ declare const CheckFeatureResultSchema: z.ZodObject<{
|
|
|
77
77
|
credit_amount: number;
|
|
78
78
|
}>, "many">>;
|
|
79
79
|
}, "strip", z.ZodTypeAny, {
|
|
80
|
+
feature_id: string;
|
|
80
81
|
customer_id: string;
|
|
81
82
|
allowed: boolean;
|
|
82
|
-
feature_id: string;
|
|
83
83
|
required_balance: number;
|
|
84
|
-
|
|
84
|
+
balance?: number | null | undefined;
|
|
85
85
|
entity_id?: string | undefined;
|
|
86
|
+
usage_limit?: number | undefined;
|
|
86
87
|
unlimited?: boolean | undefined;
|
|
87
88
|
interval?: ProductItemInterval | undefined;
|
|
88
|
-
balance?: number | null | undefined;
|
|
89
89
|
usage?: number | undefined;
|
|
90
90
|
included_usage?: number | undefined;
|
|
91
91
|
next_reset_at?: number | null | undefined;
|
|
@@ -106,15 +106,15 @@ declare const CheckFeatureResultSchema: z.ZodObject<{
|
|
|
106
106
|
credit_amount: number;
|
|
107
107
|
}[] | undefined;
|
|
108
108
|
}, {
|
|
109
|
+
feature_id: string;
|
|
109
110
|
customer_id: string;
|
|
110
111
|
allowed: boolean;
|
|
111
|
-
feature_id: string;
|
|
112
112
|
required_balance: number;
|
|
113
|
-
|
|
113
|
+
balance?: number | null | undefined;
|
|
114
114
|
entity_id?: string | undefined;
|
|
115
|
+
usage_limit?: number | undefined;
|
|
115
116
|
unlimited?: boolean | undefined;
|
|
116
117
|
interval?: ProductItemInterval | undefined;
|
|
117
|
-
balance?: number | null | undefined;
|
|
118
118
|
usage?: number | undefined;
|
|
119
119
|
included_usage?: number | undefined;
|
|
120
120
|
next_reset_at?: number | null | undefined;
|
|
@@ -311,10 +311,10 @@ declare const CoreCusFeatureSchema: z.ZodObject<{
|
|
|
311
311
|
credit_amount: number;
|
|
312
312
|
}>, "many">>;
|
|
313
313
|
}, "strip", z.ZodTypeAny, {
|
|
314
|
+
balance?: number | null | undefined;
|
|
314
315
|
usage_limit?: number | undefined;
|
|
315
316
|
unlimited?: boolean | undefined;
|
|
316
317
|
interval?: ProductItemInterval | undefined;
|
|
317
|
-
balance?: number | null | undefined;
|
|
318
318
|
usage?: number | undefined;
|
|
319
319
|
included_usage?: number | undefined;
|
|
320
320
|
next_reset_at?: number | null | undefined;
|
|
@@ -335,10 +335,10 @@ declare const CoreCusFeatureSchema: z.ZodObject<{
|
|
|
335
335
|
credit_amount: number;
|
|
336
336
|
}[] | undefined;
|
|
337
337
|
}, {
|
|
338
|
+
balance?: number | null | undefined;
|
|
338
339
|
usage_limit?: number | undefined;
|
|
339
340
|
unlimited?: boolean | undefined;
|
|
340
341
|
interval?: ProductItemInterval | undefined;
|
|
341
|
-
balance?: number | null | undefined;
|
|
342
342
|
usage?: number | undefined;
|
|
343
343
|
included_usage?: number | undefined;
|
|
344
344
|
next_reset_at?: number | null | undefined;
|
|
@@ -77,15 +77,15 @@ declare const CheckFeatureResultSchema: z.ZodObject<{
|
|
|
77
77
|
credit_amount: number;
|
|
78
78
|
}>, "many">>;
|
|
79
79
|
}, "strip", z.ZodTypeAny, {
|
|
80
|
+
feature_id: string;
|
|
80
81
|
customer_id: string;
|
|
81
82
|
allowed: boolean;
|
|
82
|
-
feature_id: string;
|
|
83
83
|
required_balance: number;
|
|
84
|
-
|
|
84
|
+
balance?: number | null | undefined;
|
|
85
85
|
entity_id?: string | undefined;
|
|
86
|
+
usage_limit?: number | undefined;
|
|
86
87
|
unlimited?: boolean | undefined;
|
|
87
88
|
interval?: ProductItemInterval | undefined;
|
|
88
|
-
balance?: number | null | undefined;
|
|
89
89
|
usage?: number | undefined;
|
|
90
90
|
included_usage?: number | undefined;
|
|
91
91
|
next_reset_at?: number | null | undefined;
|
|
@@ -106,15 +106,15 @@ declare const CheckFeatureResultSchema: z.ZodObject<{
|
|
|
106
106
|
credit_amount: number;
|
|
107
107
|
}[] | undefined;
|
|
108
108
|
}, {
|
|
109
|
+
feature_id: string;
|
|
109
110
|
customer_id: string;
|
|
110
111
|
allowed: boolean;
|
|
111
|
-
feature_id: string;
|
|
112
112
|
required_balance: number;
|
|
113
|
-
|
|
113
|
+
balance?: number | null | undefined;
|
|
114
114
|
entity_id?: string | undefined;
|
|
115
|
+
usage_limit?: number | undefined;
|
|
115
116
|
unlimited?: boolean | undefined;
|
|
116
117
|
interval?: ProductItemInterval | undefined;
|
|
117
|
-
balance?: number | null | undefined;
|
|
118
118
|
usage?: number | undefined;
|
|
119
119
|
included_usage?: number | undefined;
|
|
120
120
|
next_reset_at?: number | null | undefined;
|
|
@@ -311,10 +311,10 @@ declare const CoreCusFeatureSchema: z.ZodObject<{
|
|
|
311
311
|
credit_amount: number;
|
|
312
312
|
}>, "many">>;
|
|
313
313
|
}, "strip", z.ZodTypeAny, {
|
|
314
|
+
balance?: number | null | undefined;
|
|
314
315
|
usage_limit?: number | undefined;
|
|
315
316
|
unlimited?: boolean | undefined;
|
|
316
317
|
interval?: ProductItemInterval | undefined;
|
|
317
|
-
balance?: number | null | undefined;
|
|
318
318
|
usage?: number | undefined;
|
|
319
319
|
included_usage?: number | undefined;
|
|
320
320
|
next_reset_at?: number | null | undefined;
|
|
@@ -335,10 +335,10 @@ declare const CoreCusFeatureSchema: z.ZodObject<{
|
|
|
335
335
|
credit_amount: number;
|
|
336
336
|
}[] | undefined;
|
|
337
337
|
}, {
|
|
338
|
+
balance?: number | null | undefined;
|
|
338
339
|
usage_limit?: number | undefined;
|
|
339
340
|
unlimited?: boolean | undefined;
|
|
340
341
|
interval?: ProductItemInterval | undefined;
|
|
341
|
-
balance?: number | null | undefined;
|
|
342
342
|
usage?: number | undefined;
|
|
343
343
|
included_usage?: number | undefined;
|
|
344
344
|
next_reset_at?: number | null | undefined;
|