autumn-js 0.0.102 → 0.0.104
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 +28 -4
- package/dist/libraries/backend/better-auth.d.ts +28 -4
- package/dist/libraries/backend/better-auth.js +76 -83
- package/dist/libraries/backend/better-auth.mjs +7 -7
- package/dist/libraries/backend/{chunk-NW6B7QXB.mjs → chunk-2RZ2FZX2.mjs} +6 -6
- package/dist/libraries/backend/{chunk-33NT3WE5.mjs → chunk-3OLXYDCU.mjs} +1 -1
- package/dist/libraries/backend/{chunk-AKV5N4WO.mjs → chunk-5EKNB4IJ.mjs} +1 -1
- package/dist/libraries/backend/{chunk-CEZHD5H6.mjs → chunk-5H6HVCOP.mjs} +1 -1
- package/dist/libraries/backend/{chunk-J3L3OBSS.mjs → chunk-HHMIVOXX.mjs} +18 -1
- package/dist/libraries/backend/{chunk-6VS7TU7O.mjs → chunk-IOSEAUDJ.mjs} +57 -81
- package/dist/libraries/backend/{chunk-RA4AC56B.mjs → chunk-K7JGEYUX.mjs} +1 -1
- package/dist/libraries/backend/convex.js +73 -80
- package/dist/libraries/backend/convex.mjs +7 -7
- package/dist/libraries/backend/elysia.js +73 -80
- 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 +73 -80
- package/dist/libraries/backend/express.mjs +7 -7
- package/dist/libraries/backend/fastify.js +73 -80
- package/dist/libraries/backend/fastify.mjs +7 -7
- package/dist/libraries/backend/hono.js +73 -80
- package/dist/libraries/backend/hono.mjs +7 -7
- package/dist/libraries/backend/next.js +284 -268
- package/dist/libraries/backend/next.mjs +216 -193
- package/dist/libraries/backend/react-router.js +73 -80
- package/dist/libraries/backend/react-router.mjs +7 -7
- package/dist/libraries/backend/{referralTypes-D1Q2i3mG.d.ts → referralTypes-CnYanpMd.d.ts} +205 -104
- package/dist/libraries/backend/{referralTypes-Dfg6if8j.d.mts → referralTypes-jA7MQ1y5.d.mts} +205 -104
- package/dist/libraries/backend/remix_dep.js +73 -80
- package/dist/libraries/backend/remix_dep.mjs +7 -7
- package/dist/libraries/backend/routes/backendRouter.js +73 -80
- package/dist/libraries/backend/routes/backendRouter.mjs +7 -7
- package/dist/libraries/backend/routes/entityRoutes.js +56 -80
- package/dist/libraries/backend/routes/entityRoutes.mjs +3 -3
- package/dist/libraries/backend/routes/genRoutes.js +73 -80
- package/dist/libraries/backend/routes/genRoutes.mjs +3 -3
- package/dist/libraries/backend/routes/productRoutes.js +56 -80
- package/dist/libraries/backend/routes/productRoutes.mjs +3 -3
- package/dist/libraries/backend/routes/referralRoutes.js +56 -80
- package/dist/libraries/backend/routes/referralRoutes.mjs +3 -3
- package/dist/libraries/backend/supabase.js +73 -80
- package/dist/libraries/backend/supabase.mjs +7 -7
- package/dist/libraries/backend/tanstack.js +73 -80
- package/dist/libraries/backend/tanstack.mjs +7 -7
- package/dist/libraries/backend/utils/backendRes.js +56 -80
- 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 +56 -80
- package/dist/libraries/backend/utils/withAuth.mjs +2 -2
- package/dist/libraries/react/AutumnContext.d.mts +5 -4
- package/dist/libraries/react/AutumnContext.d.ts +5 -4
- package/dist/libraries/react/AutumnContext.js +63 -82
- package/dist/libraries/react/AutumnContext.mjs +5 -5
- package/dist/libraries/react/BaseAutumnProvider.d.mts +5 -4
- package/dist/libraries/react/BaseAutumnProvider.d.ts +5 -4
- package/dist/libraries/react/BaseAutumnProvider.js +96 -111
- package/dist/libraries/react/BaseAutumnProvider.mjs +9 -9
- package/dist/libraries/react/{ReactAutumnClient-YzfxjqPK.d.mts → ReactAutumnClient-BGI56QI_.d.mts} +21 -10
- package/dist/libraries/react/{ReactAutumnClient-DBbq29Nn.d.ts → ReactAutumnClient-CEv9YGLM.d.ts} +21 -10
- package/dist/libraries/react/ReactAutumnProvider.d.mts +1 -1
- package/dist/libraries/react/ReactAutumnProvider.d.ts +1 -1
- package/dist/libraries/react/ReactAutumnProvider.js +96 -111
- package/dist/libraries/react/ReactAutumnProvider.mjs +10 -10
- package/dist/libraries/react/attachTypes-Cexub7bN.d.ts +58 -0
- package/dist/libraries/react/attachTypes-DqI7qtXD.d.mts +58 -0
- package/dist/libraries/react/{chunk-VUBJ6JM3.mjs → chunk-253MTZP3.mjs} +7 -2
- package/dist/libraries/react/{chunk-5NDO7C7R.mjs → chunk-3N6WLQH3.mjs} +1 -1
- package/dist/libraries/react/{chunk-H2NGSCWI.mjs → chunk-473LVTGN.mjs} +2 -2
- package/dist/libraries/react/{chunk-LXSKONN2.mjs → chunk-4A53GN44.mjs} +5 -5
- package/dist/libraries/react/{chunk-TPKQIL3N.mjs → chunk-4BQDSIWM.mjs} +5 -8
- package/dist/libraries/react/{chunk-X6RY6VG5.mjs → chunk-4VXBAIPC.mjs} +2 -2
- package/dist/libraries/react/{chunk-OAWFFAKA.mjs → chunk-6EZVNJHQ.mjs} +6 -6
- package/dist/libraries/react/{chunk-3VHO7VUQ.mjs → chunk-ASL5VH2W.mjs} +4 -3
- package/dist/libraries/react/{chunk-QBBE72EF.mjs → chunk-CBPZVSMZ.mjs} +12 -7
- package/dist/libraries/react/chunk-CUWUAQML.mjs +179 -0
- package/dist/libraries/react/chunk-DJIRJJNG.mjs +34 -0
- package/dist/libraries/react/{chunk-ALIGIMSK.mjs → chunk-E5EYSQYJ.mjs} +65 -87
- package/dist/libraries/react/{chunk-5URK7LI3.mjs → chunk-EBQBPZCM.mjs} +3 -3
- package/dist/libraries/react/{chunk-AL3VJLFU.mjs → chunk-EV5RNY5U.mjs} +1 -1
- package/dist/libraries/react/chunk-G6NOGGDA.mjs +695 -0
- package/dist/libraries/react/{chunk-OAPUYXBO.mjs → chunk-KWNH6C27.mjs} +6 -6
- package/dist/libraries/react/{chunk-JI7WQ6AC.mjs → chunk-MNOH7Q3B.mjs} +2 -2
- package/dist/libraries/react/{chunk-SY5GNYZ7.mjs → chunk-P5MIFIIO.mjs} +2 -2
- package/dist/libraries/react/{chunk-T73WQC2X.mjs → chunk-PIENO233.mjs} +1 -1
- package/dist/libraries/react/chunk-QUO2CYKM.mjs +30 -0
- package/dist/libraries/react/{chunk-BCMBFJ7E.mjs → chunk-RCTILKK3.mjs} +70 -37
- package/dist/libraries/react/{chunk-ZVQKDPUP.mjs → chunk-RPEGNKJH.mjs} +3 -3
- package/dist/libraries/react/{chunk-SDMBKRAI.mjs → chunk-WAFSQH6N.mjs} +37 -37
- package/dist/libraries/react/{chunk-GQ3TAHSV.mjs → chunk-ZFIJI37N.mjs} +1 -1
- package/dist/libraries/react/{chunk-CE33P32V.mjs → chunk-ZITEHPEQ.mjs} +30 -24
- package/dist/libraries/react/client/ReactAutumnClient.d.mts +5 -5
- package/dist/libraries/react/client/ReactAutumnClient.d.ts +5 -5
- package/dist/libraries/react/client/ReactAutumnClient.js +63 -82
- package/dist/libraries/react/client/ReactAutumnClient.mjs +4 -4
- package/dist/libraries/react/client/clientCompMethods.d.mts +5 -5
- package/dist/libraries/react/client/clientCompMethods.d.ts +5 -5
- package/dist/libraries/react/client/clientCusMethods.d.mts +5 -5
- package/dist/libraries/react/client/clientCusMethods.d.ts +5 -5
- package/dist/libraries/react/client/clientEntityMethods.d.mts +5 -5
- package/dist/libraries/react/client/clientEntityMethods.d.ts +5 -5
- package/dist/libraries/react/client/clientGenMethods.d.mts +9 -7
- package/dist/libraries/react/client/clientGenMethods.d.ts +9 -7
- package/dist/libraries/react/client/clientGenMethods.js +8 -2
- package/dist/libraries/react/client/clientGenMethods.mjs +3 -1
- package/dist/libraries/react/client/clientProdMethods.d.mts +5 -5
- package/dist/libraries/react/client/clientProdMethods.d.ts +5 -5
- package/dist/libraries/react/client/clientReferralMethods.d.mts +5 -5
- package/dist/libraries/react/client/clientReferralMethods.d.ts +5 -5
- package/dist/libraries/react/client/types/clientAttachTypes.d.mts +115 -0
- package/dist/libraries/react/client/types/clientAttachTypes.d.ts +115 -0
- package/dist/libraries/react/client/types/clientAttachTypes.js +68 -0
- package/dist/libraries/react/client/types/clientAttachTypes.mjs +42 -0
- package/dist/libraries/react/client/types/clientGenTypes.d.mts +10 -81
- package/dist/libraries/react/client/types/clientGenTypes.d.ts +10 -81
- package/dist/libraries/react/client/types/clientGenTypes.js +1 -24
- package/dist/libraries/react/client/types/clientGenTypes.mjs +1 -22
- package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.css +213 -4
- package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.d.mts +5 -32
- package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.d.ts +5 -32
- package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.js +720 -371
- package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.mjs +28 -31
- package/dist/libraries/react/components/attach-dialog/lib/attach-content.d.mts +3 -2
- package/dist/libraries/react/components/attach-dialog/lib/attach-content.d.ts +3 -2
- package/dist/libraries/react/components/attach-dialog/lib/attach-content.js +70 -37
- package/dist/libraries/react/components/attach-dialog/lib/attach-content.mjs +1 -1
- package/dist/libraries/react/components/check-dialog/check-dialog-synced.d.mts +1 -1
- package/dist/libraries/react/components/check-dialog/check-dialog-synced.d.ts +1 -1
- package/dist/libraries/react/components/check-dialog/check-dialog-synced.js +43 -43
- package/dist/libraries/react/components/check-dialog/check-dialog-synced.mjs +5 -5
- package/dist/libraries/react/components/check-dialog/lib/check-content.d.mts +1 -1
- package/dist/libraries/react/components/check-dialog/lib/check-content.d.ts +1 -1
- package/dist/libraries/react/components/pricing-table/lib/pricing-table-content.d.mts +3 -1
- package/dist/libraries/react/components/pricing-table/lib/pricing-table-content.d.ts +3 -1
- package/dist/libraries/react/components/pricing-table/lib/pricing-table-content.js +12 -7
- package/dist/libraries/react/components/pricing-table/lib/pricing-table-content.mjs +1 -1
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.css +213 -4
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.d.mts +1 -1
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.d.ts +1 -1
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.js +794 -456
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.mjs +27 -24
- package/dist/libraries/react/components/ui/accordion.d.mts +9 -0
- package/dist/libraries/react/components/ui/accordion.d.ts +9 -0
- package/dist/libraries/react/components/ui/accordion.js +2721 -0
- package/dist/libraries/react/components/ui/accordion.mjs +15 -0
- 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 +43 -43
- package/dist/libraries/react/components/ui/dialog.mjs +3 -3
- package/dist/libraries/react/components/ui/input.d.mts +5 -0
- package/dist/libraries/react/components/ui/input.d.ts +5 -0
- package/dist/libraries/react/components/ui/input.js +2587 -0
- package/dist/libraries/react/components/ui/input.mjs +9 -0
- package/dist/libraries/react/components/ui/popover.d.mts +9 -0
- package/dist/libraries/react/components/ui/popover.d.ts +9 -0
- package/dist/libraries/react/components/ui/popover.js +2594 -0
- package/dist/libraries/react/components/ui/popover.mjs +15 -0
- package/dist/libraries/react/components/ui/switch.js +12 -12
- package/dist/libraries/react/components/ui/switch.mjs +3 -3
- package/dist/libraries/react/{cusTypes-CFofdxsA.d.ts → cusTypes-DCeNEQLu.d.mts} +30 -12
- package/dist/libraries/react/{cusTypes-CFofdxsA.d.mts → cusTypes-DCeNEQLu.d.ts} +30 -12
- package/dist/libraries/react/{entTypes-BhUZh8uE.d.ts → entTypes-BJD_Hxbp.d.ts} +1 -1
- package/dist/libraries/react/{entTypes-BeWtfIqo.d.mts → entTypes-CJhJFCKD.d.mts} +1 -1
- package/dist/libraries/react/hooks/handleAllowed.d.mts +2 -2
- package/dist/libraries/react/hooks/handleAllowed.d.ts +2 -2
- package/dist/libraries/react/hooks/useAutumn.d.mts +21 -6
- package/dist/libraries/react/hooks/useAutumn.d.ts +21 -6
- package/dist/libraries/react/hooks/useAutumn.js +94 -110
- package/dist/libraries/react/hooks/useAutumn.mjs +8 -8
- package/dist/libraries/react/hooks/useAutumnBase.d.mts +24 -9
- package/dist/libraries/react/hooks/useAutumnBase.d.ts +24 -9
- package/dist/libraries/react/hooks/useAutumnBase.js +94 -110
- package/dist/libraries/react/hooks/useAutumnBase.mjs +7 -7
- package/dist/libraries/react/hooks/useCustomer.d.mts +7 -5
- package/dist/libraries/react/hooks/useCustomer.d.ts +7 -5
- package/dist/libraries/react/hooks/useCustomer.js +96 -111
- package/dist/libraries/react/hooks/useCustomer.mjs +9 -9
- package/dist/libraries/react/hooks/useCustomerBase.d.mts +8 -5
- package/dist/libraries/react/hooks/useCustomerBase.d.ts +8 -5
- package/dist/libraries/react/hooks/useCustomerBase.js +96 -111
- package/dist/libraries/react/hooks/useCustomerBase.mjs +8 -8
- package/dist/libraries/react/hooks/useEntity.d.mts +14 -7
- package/dist/libraries/react/hooks/useEntity.d.ts +14 -7
- package/dist/libraries/react/hooks/useEntity.js +94 -110
- package/dist/libraries/react/hooks/useEntity.mjs +9 -9
- package/dist/libraries/react/hooks/useEntityBase.d.mts +16 -7
- package/dist/libraries/react/hooks/useEntityBase.d.ts +16 -7
- package/dist/libraries/react/hooks/useEntityBase.js +94 -110
- package/dist/libraries/react/hooks/useEntityBase.mjs +8 -8
- package/dist/libraries/react/hooks/usePricingTable.d.mts +1 -1
- package/dist/libraries/react/hooks/usePricingTable.d.ts +1 -1
- package/dist/libraries/react/hooks/usePricingTable.js +66 -88
- package/dist/libraries/react/hooks/usePricingTable.mjs +7 -7
- package/dist/libraries/react/hooks/usePricingTableBase.d.mts +6 -6
- package/dist/libraries/react/hooks/usePricingTableBase.d.ts +6 -6
- package/dist/libraries/react/hooks/usePricingTableBase.js +66 -88
- package/dist/libraries/react/hooks/usePricingTableBase.mjs +6 -6
- package/dist/libraries/react/hooks/useProductsBase.js +63 -82
- package/dist/libraries/react/hooks/useProductsBase.mjs +5 -5
- package/dist/libraries/react/index.d.mts +217 -106
- package/dist/libraries/react/index.d.ts +217 -106
- package/dist/libraries/react/index.js +801 -463
- package/dist/libraries/react/index.mjs +792 -454
- package/dist/libraries/react/{response-CxMWdpyl.d.ts → response-Dek2TEnE.d.ts} +2 -25
- package/dist/libraries/react/{response-AGK9KlYm.d.mts → response-HZAWTgGp.d.mts} +2 -25
- package/dist/next/{AutumnProvider-Xl1mqxls.d.mts → AutumnProvider-CHFySjFm.d.mts} +30 -12
- package/dist/next/{AutumnProvider-Xl1mqxls.d.ts → AutumnProvider-CHFySjFm.d.ts} +30 -12
- package/dist/next/AutumnProvider.d.mts +1 -1
- package/dist/next/AutumnProvider.d.ts +1 -1
- package/dist/next/client/NextAutumnClient.d.mts +25 -14
- package/dist/next/client/NextAutumnClient.d.ts +25 -14
- package/dist/next/client/NextAutumnClient.js +13 -2
- package/dist/next/client/NextAutumnClient.mjs +13 -2
- package/dist/next/client/NextAutumnProvider.d.mts +1 -1
- package/dist/next/client/NextAutumnProvider.d.ts +1 -1
- package/dist/next/client/attachTypes-BL6x9Zbx.d.ts +58 -0
- package/dist/next/client/attachTypes-BPYeJ6E4.d.mts +58 -0
- package/dist/next/client/{clientGenTypes-D8f8BwMo.d.ts → clientAttachTypes-Dj6U8D7o.d.ts} +114 -96
- package/dist/next/client/{clientGenTypes-BcRfHmUS.d.mts → clientAttachTypes-fN66J754.d.mts} +114 -96
- package/dist/next/client/clientUtils.d.mts +2 -2
- package/dist/next/client/clientUtils.d.ts +2 -2
- package/dist/next/client/{cusTypes-Gh2wfcmj.d.mts → cusTypes-BoVZ2omf.d.mts} +30 -12
- package/dist/next/client/{cusTypes-Gh2wfcmj.d.ts → cusTypes-BoVZ2omf.d.ts} +30 -12
- package/dist/next/client/{entTypes-B_w6I3y-.d.ts → entTypes-BrHkjvC9.d.ts} +1 -1
- package/dist/next/client/{entTypes-C_xS1VPE.d.mts → entTypes-Li6ZrG0C.d.mts} +1 -1
- package/dist/next/client/hooks/useAutumn.d.mts +19 -5
- package/dist/next/client/hooks/useAutumn.d.ts +19 -5
- package/dist/next/client/hooks/useCustomer.d.mts +5 -4
- package/dist/next/client/hooks/useCustomer.d.ts +5 -4
- package/dist/next/client/hooks/useEntity.d.mts +12 -6
- package/dist/next/client/hooks/useEntity.d.ts +12 -6
- package/dist/next/client/hooks/usePricingTable.d.mts +1 -1
- package/dist/next/client/hooks/usePricingTable.d.ts +1 -1
- package/dist/next/client/types.d.mts +2 -2
- package/dist/next/client/types.d.ts +2 -2
- package/dist/next/index.d.mts +213 -107
- package/dist/next/index.d.ts +213 -107
- 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 +185 -106
- package/dist/next/server/cusActions.d.ts +185 -106
- package/dist/next/server/{cusTypes-DVA6iu7V.d.mts → cusTypes-Bh_pVAJp.d.mts} +34 -12
- package/dist/next/server/{cusTypes-DVA6iu7V.d.ts → cusTypes-Bh_pVAJp.d.ts} +34 -12
- package/dist/next/server/genActions.d.mts +3 -4
- package/dist/next/server/genActions.d.ts +3 -4
- package/dist/sdk/index.d.mts +223 -137
- package/dist/sdk/index.d.ts +223 -137
- package/dist/sdk/index.js +55 -80
- package/dist/sdk/index.mjs +54 -81
- package/dist/styles/global.css +213 -4
- package/dist/utils/encryptUtils.js +56 -80
- package/dist/utils/encryptUtils.mjs +56 -80
- package/package.json +10 -15
- package/dist/libraries/react/chunk-LKV32IPT.mjs +0 -548
|
@@ -38,7 +38,7 @@ __export(switch_exports, {
|
|
|
38
38
|
module.exports = __toCommonJS(switch_exports);
|
|
39
39
|
var React10 = __toESM(require("react"));
|
|
40
40
|
|
|
41
|
-
// ../node_modules/.pnpm/@radix-ui+react-switch@1.2.5_@types+react-dom@19.1.6_@types+react@
|
|
41
|
+
// ../node_modules/.pnpm/@radix-ui+react-switch@1.2.5_@types+react-dom@19.1.6_@types+react@19.1.8__@types+react@19.1.8_uhx276sbw7dr3tfricp4xfbxsq/node_modules/@radix-ui/react-switch/dist/index.mjs
|
|
42
42
|
var React9 = __toESM(require("react"), 1);
|
|
43
43
|
|
|
44
44
|
// ../node_modules/.pnpm/@radix-ui+primitive@1.1.2/node_modules/@radix-ui/primitive/dist/index.mjs
|
|
@@ -51,7 +51,7 @@ function composeEventHandlers(originalEventHandler, ourEventHandler, { checkForD
|
|
|
51
51
|
};
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
// ../node_modules/.pnpm/@radix-ui+react-compose-refs@1.1.2_@types+react@
|
|
54
|
+
// ../node_modules/.pnpm/@radix-ui+react-compose-refs@1.1.2_@types+react@19.1.8_react@19.1.0/node_modules/@radix-ui/react-compose-refs/dist/index.mjs
|
|
55
55
|
var React = __toESM(require("react"), 1);
|
|
56
56
|
function setRef(ref, value) {
|
|
57
57
|
if (typeof ref === "function") {
|
|
@@ -88,7 +88,7 @@ function useComposedRefs(...refs) {
|
|
|
88
88
|
return React.useCallback(composeRefs(...refs), refs);
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
-
// ../node_modules/.pnpm/@radix-ui+react-context@1.1.2_@types+react@
|
|
91
|
+
// ../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
|
|
92
92
|
var React2 = __toESM(require("react"), 1);
|
|
93
93
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
94
94
|
function createContextScope(scopeName, createContextScopeDeps = []) {
|
|
@@ -149,15 +149,15 @@ function composeContextScopes(...scopes) {
|
|
|
149
149
|
return createScope;
|
|
150
150
|
}
|
|
151
151
|
|
|
152
|
-
// ../node_modules/.pnpm/@radix-ui+react-use-controllable-state@1.2.2_@types+react@
|
|
152
|
+
// ../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
|
|
153
153
|
var React4 = __toESM(require("react"), 1);
|
|
154
154
|
|
|
155
|
-
// ../node_modules/.pnpm/@radix-ui+react-use-layout-effect@1.1.1_@types+react@
|
|
155
|
+
// ../node_modules/.pnpm/@radix-ui+react-use-layout-effect@1.1.1_@types+react@19.1.8_react@19.1.0/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs
|
|
156
156
|
var React3 = __toESM(require("react"), 1);
|
|
157
157
|
var useLayoutEffect2 = globalThis?.document ? React3.useLayoutEffect : () => {
|
|
158
158
|
};
|
|
159
159
|
|
|
160
|
-
// ../node_modules/.pnpm/@radix-ui+react-use-controllable-state@1.2.2_@types+react@
|
|
160
|
+
// ../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
|
|
161
161
|
var React22 = __toESM(require("react"), 1);
|
|
162
162
|
var useInsertionEffect = React4[" useInsertionEffect ".trim().toString()] || useLayoutEffect2;
|
|
163
163
|
function useControllableState({
|
|
@@ -225,7 +225,7 @@ function isFunction(value) {
|
|
|
225
225
|
}
|
|
226
226
|
var SYNC_STATE = Symbol("RADIX:SYNC_STATE");
|
|
227
227
|
|
|
228
|
-
// ../node_modules/.pnpm/@radix-ui+react-use-previous@1.1.1_@types+react@
|
|
228
|
+
// ../node_modules/.pnpm/@radix-ui+react-use-previous@1.1.1_@types+react@19.1.8_react@19.1.0/node_modules/@radix-ui/react-use-previous/dist/index.mjs
|
|
229
229
|
var React5 = __toESM(require("react"), 1);
|
|
230
230
|
function usePrevious(value) {
|
|
231
231
|
const ref = React5.useRef({ value, previous: value });
|
|
@@ -238,7 +238,7 @@ function usePrevious(value) {
|
|
|
238
238
|
}, [value]);
|
|
239
239
|
}
|
|
240
240
|
|
|
241
|
-
// ../node_modules/.pnpm/@radix-ui+react-use-size@1.1.1_@types+react@
|
|
241
|
+
// ../node_modules/.pnpm/@radix-ui+react-use-size@1.1.1_@types+react@19.1.8_react@19.1.0/node_modules/@radix-ui/react-use-size/dist/index.mjs
|
|
242
242
|
var React6 = __toESM(require("react"), 1);
|
|
243
243
|
function useSize(element) {
|
|
244
244
|
const [size, setSize] = React6.useState(void 0);
|
|
@@ -275,11 +275,11 @@ function useSize(element) {
|
|
|
275
275
|
return size;
|
|
276
276
|
}
|
|
277
277
|
|
|
278
|
-
// ../node_modules/.pnpm/@radix-ui+react-primitive@2.1.3_@types+react-dom@19.1.6_@types+react@
|
|
278
|
+
// ../node_modules/.pnpm/@radix-ui+react-primitive@2.1.3_@types+react-dom@19.1.6_@types+react@19.1.8__@types+react@19._sqnj4wa3mllckai5din6afvope/node_modules/@radix-ui/react-primitive/dist/index.mjs
|
|
279
279
|
var React8 = __toESM(require("react"), 1);
|
|
280
280
|
var ReactDOM = __toESM(require("react-dom"), 1);
|
|
281
281
|
|
|
282
|
-
// ../node_modules/.pnpm/@radix-ui+react-slot@1.2.3_@types+react@
|
|
282
|
+
// ../node_modules/.pnpm/@radix-ui+react-slot@1.2.3_@types+react@19.1.8_react@19.1.0/node_modules/@radix-ui/react-slot/dist/index.mjs
|
|
283
283
|
var React7 = __toESM(require("react"), 1);
|
|
284
284
|
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
285
285
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -365,7 +365,7 @@ function getElementRef(element) {
|
|
|
365
365
|
return element.props.ref || element.ref;
|
|
366
366
|
}
|
|
367
367
|
|
|
368
|
-
// ../node_modules/.pnpm/@radix-ui+react-primitive@2.1.3_@types+react-dom@19.1.6_@types+react@
|
|
368
|
+
// ../node_modules/.pnpm/@radix-ui+react-primitive@2.1.3_@types+react-dom@19.1.6_@types+react@19.1.8__@types+react@19._sqnj4wa3mllckai5din6afvope/node_modules/@radix-ui/react-primitive/dist/index.mjs
|
|
369
369
|
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
370
370
|
var NODES = [
|
|
371
371
|
"a",
|
|
@@ -400,7 +400,7 @@ var Primitive = NODES.reduce((primitive, node) => {
|
|
|
400
400
|
return { ...primitive, [node]: Node };
|
|
401
401
|
}, {});
|
|
402
402
|
|
|
403
|
-
// ../node_modules/.pnpm/@radix-ui+react-switch@1.2.5_@types+react-dom@19.1.6_@types+react@
|
|
403
|
+
// ../node_modules/.pnpm/@radix-ui+react-switch@1.2.5_@types+react-dom@19.1.6_@types+react@19.1.8__@types+react@19.1.8_uhx276sbw7dr3tfricp4xfbxsq/node_modules/@radix-ui/react-switch/dist/index.mjs
|
|
404
404
|
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
405
405
|
var SWITCH_NAME = "Switch";
|
|
406
406
|
var [createSwitchContext, createSwitchScope] = createContextScope(SWITCH_NAME);
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
"use client";
|
|
4
4
|
import {
|
|
5
5
|
Switch
|
|
6
|
-
} from "../../chunk-
|
|
7
|
-
import "../../chunk-
|
|
8
|
-
import "../../chunk-
|
|
6
|
+
} from "../../chunk-6EZVNJHQ.mjs";
|
|
7
|
+
import "../../chunk-KWNH6C27.mjs";
|
|
8
|
+
import "../../chunk-RPEGNKJH.mjs";
|
|
9
9
|
import "../../chunk-4J6OC4ZQ.mjs";
|
|
10
10
|
export {
|
|
11
11
|
Switch
|
|
@@ -88,10 +88,17 @@ declare enum AppEnv {
|
|
|
88
88
|
Live = "live"
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
+
interface Feature {
|
|
92
|
+
id: string;
|
|
93
|
+
name: string;
|
|
94
|
+
type: "boolean" | "continuous_use" | "single_use" | "credit_system";
|
|
95
|
+
}
|
|
91
96
|
interface ProductItem {
|
|
97
|
+
type?: "feature" | "priced_feature" | "price";
|
|
92
98
|
feature_id?: string;
|
|
93
99
|
included_usage?: number | typeof Infinite;
|
|
94
100
|
interval?: ProductItemIntervalType;
|
|
101
|
+
feature?: Feature;
|
|
95
102
|
usage_model?: UsageModel;
|
|
96
103
|
price?: number;
|
|
97
104
|
billing_units?: number;
|
|
@@ -123,10 +130,12 @@ interface Product {
|
|
|
123
130
|
free_trial: FreeTrial | null;
|
|
124
131
|
scenario?: ProductScenario;
|
|
125
132
|
base_variant_id: string | null;
|
|
126
|
-
properties
|
|
127
|
-
is_free
|
|
128
|
-
is_one_off
|
|
129
|
-
interval_group
|
|
133
|
+
properties: {
|
|
134
|
+
is_free: boolean;
|
|
135
|
+
is_one_off: boolean;
|
|
136
|
+
interval_group: string;
|
|
137
|
+
has_trial: boolean;
|
|
138
|
+
has_prepaid: boolean;
|
|
130
139
|
};
|
|
131
140
|
display?: {
|
|
132
141
|
name?: string;
|
|
@@ -203,11 +212,20 @@ interface Customer {
|
|
|
203
212
|
features: Record<string, CustomerFeature>;
|
|
204
213
|
invoices?: CustomerInvoice[];
|
|
205
214
|
}
|
|
206
|
-
|
|
207
|
-
name
|
|
208
|
-
email
|
|
209
|
-
fingerprint
|
|
210
|
-
}
|
|
215
|
+
declare const CustomerDataSchema: z.ZodObject<{
|
|
216
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
217
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
218
|
+
fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
219
|
+
}, "strip", z.ZodTypeAny, {
|
|
220
|
+
name?: string | null | undefined;
|
|
221
|
+
email?: string | null | undefined;
|
|
222
|
+
fingerprint?: string | null | undefined;
|
|
223
|
+
}, {
|
|
224
|
+
name?: string | null | undefined;
|
|
225
|
+
email?: string | null | undefined;
|
|
226
|
+
fingerprint?: string | null | undefined;
|
|
227
|
+
}>;
|
|
228
|
+
type CustomerData = z.infer<typeof CustomerDataSchema>;
|
|
211
229
|
declare const CreateCustomerParamsSchema: z.ZodObject<{
|
|
212
230
|
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
213
231
|
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -216,15 +234,15 @@ declare const CreateCustomerParamsSchema: z.ZodObject<{
|
|
|
216
234
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
217
235
|
expand: z.ZodOptional<z.ZodArray<z.ZodEnum<["invoices", "rewards", "trials_used", "entities", "referrals", "payment_method"]>, "many">>;
|
|
218
236
|
}, "strip", z.ZodTypeAny, {
|
|
219
|
-
name?: string | null | undefined;
|
|
220
237
|
id?: string | null | undefined;
|
|
238
|
+
name?: string | null | undefined;
|
|
221
239
|
email?: string | null | undefined;
|
|
222
240
|
fingerprint?: string | null | undefined;
|
|
223
241
|
metadata?: Record<string, any> | undefined;
|
|
224
242
|
expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
|
|
225
243
|
}, {
|
|
226
|
-
name?: string | null | undefined;
|
|
227
244
|
id?: string | null | undefined;
|
|
245
|
+
name?: string | null | undefined;
|
|
228
246
|
email?: string | null | undefined;
|
|
229
247
|
fingerprint?: string | null | undefined;
|
|
230
248
|
metadata?: Record<string, any> | undefined;
|
|
@@ -245,4 +263,4 @@ interface CustomerInvoice {
|
|
|
245
263
|
hosted_invoice_url: string;
|
|
246
264
|
}
|
|
247
265
|
|
|
248
|
-
export type { BillingPortalResult as B, CustomerData as C, Product as P, CreateCustomerParams as a, Customer as b, CustomerExpandOption as c, CustomerProduct as d, CustomerFeature as e, CustomerInvoice as f,
|
|
266
|
+
export type { BillingPortalResult as B, CustomerData as C, Product as P, CreateCustomerParams as a, Customer as b, CustomerExpandOption as c, CustomerProduct as d, CustomerFeature as e, CustomerInvoice as f, ProductItem as g, CheckFeaturePreview as h, CheckFeatureResult as i, CheckProductResult as j, ProductScenario as k };
|
|
@@ -88,10 +88,17 @@ declare enum AppEnv {
|
|
|
88
88
|
Live = "live"
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
+
interface Feature {
|
|
92
|
+
id: string;
|
|
93
|
+
name: string;
|
|
94
|
+
type: "boolean" | "continuous_use" | "single_use" | "credit_system";
|
|
95
|
+
}
|
|
91
96
|
interface ProductItem {
|
|
97
|
+
type?: "feature" | "priced_feature" | "price";
|
|
92
98
|
feature_id?: string;
|
|
93
99
|
included_usage?: number | typeof Infinite;
|
|
94
100
|
interval?: ProductItemIntervalType;
|
|
101
|
+
feature?: Feature;
|
|
95
102
|
usage_model?: UsageModel;
|
|
96
103
|
price?: number;
|
|
97
104
|
billing_units?: number;
|
|
@@ -123,10 +130,12 @@ interface Product {
|
|
|
123
130
|
free_trial: FreeTrial | null;
|
|
124
131
|
scenario?: ProductScenario;
|
|
125
132
|
base_variant_id: string | null;
|
|
126
|
-
properties
|
|
127
|
-
is_free
|
|
128
|
-
is_one_off
|
|
129
|
-
interval_group
|
|
133
|
+
properties: {
|
|
134
|
+
is_free: boolean;
|
|
135
|
+
is_one_off: boolean;
|
|
136
|
+
interval_group: string;
|
|
137
|
+
has_trial: boolean;
|
|
138
|
+
has_prepaid: boolean;
|
|
130
139
|
};
|
|
131
140
|
display?: {
|
|
132
141
|
name?: string;
|
|
@@ -203,11 +212,20 @@ interface Customer {
|
|
|
203
212
|
features: Record<string, CustomerFeature>;
|
|
204
213
|
invoices?: CustomerInvoice[];
|
|
205
214
|
}
|
|
206
|
-
|
|
207
|
-
name
|
|
208
|
-
email
|
|
209
|
-
fingerprint
|
|
210
|
-
}
|
|
215
|
+
declare const CustomerDataSchema: z.ZodObject<{
|
|
216
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
217
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
218
|
+
fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
219
|
+
}, "strip", z.ZodTypeAny, {
|
|
220
|
+
name?: string | null | undefined;
|
|
221
|
+
email?: string | null | undefined;
|
|
222
|
+
fingerprint?: string | null | undefined;
|
|
223
|
+
}, {
|
|
224
|
+
name?: string | null | undefined;
|
|
225
|
+
email?: string | null | undefined;
|
|
226
|
+
fingerprint?: string | null | undefined;
|
|
227
|
+
}>;
|
|
228
|
+
type CustomerData = z.infer<typeof CustomerDataSchema>;
|
|
211
229
|
declare const CreateCustomerParamsSchema: z.ZodObject<{
|
|
212
230
|
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
213
231
|
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -216,15 +234,15 @@ declare const CreateCustomerParamsSchema: z.ZodObject<{
|
|
|
216
234
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
217
235
|
expand: z.ZodOptional<z.ZodArray<z.ZodEnum<["invoices", "rewards", "trials_used", "entities", "referrals", "payment_method"]>, "many">>;
|
|
218
236
|
}, "strip", z.ZodTypeAny, {
|
|
219
|
-
name?: string | null | undefined;
|
|
220
237
|
id?: string | null | undefined;
|
|
238
|
+
name?: string | null | undefined;
|
|
221
239
|
email?: string | null | undefined;
|
|
222
240
|
fingerprint?: string | null | undefined;
|
|
223
241
|
metadata?: Record<string, any> | undefined;
|
|
224
242
|
expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
|
|
225
243
|
}, {
|
|
226
|
-
name?: string | null | undefined;
|
|
227
244
|
id?: string | null | undefined;
|
|
245
|
+
name?: string | null | undefined;
|
|
228
246
|
email?: string | null | undefined;
|
|
229
247
|
fingerprint?: string | null | undefined;
|
|
230
248
|
metadata?: Record<string, any> | undefined;
|
|
@@ -245,4 +263,4 @@ interface CustomerInvoice {
|
|
|
245
263
|
hosted_invoice_url: string;
|
|
246
264
|
}
|
|
247
265
|
|
|
248
|
-
export type { BillingPortalResult as B, CustomerData as C, Product as P, CreateCustomerParams as a, Customer as b, CustomerExpandOption as c, CustomerProduct as d, CustomerFeature as e, CustomerInvoice as f,
|
|
266
|
+
export type { BillingPortalResult as B, CustomerData as C, Product as P, CreateCustomerParams as a, Customer as b, CustomerExpandOption as c, CustomerProduct as d, CustomerFeature as e, CustomerInvoice as f, ProductItem as g, CheckFeaturePreview as h, CheckFeatureResult as i, CheckProductResult as j, ProductScenario as k };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as CustomerProduct, e as CustomerFeature, f as CustomerInvoice } from './cusTypes-
|
|
1
|
+
import { d as CustomerProduct, e as CustomerFeature, f as CustomerInvoice } from './cusTypes-DCeNEQLu.mjs';
|
|
2
2
|
|
|
3
3
|
interface DeleteEntityResult {
|
|
4
4
|
success: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as Customer } from '../cusTypes-
|
|
2
|
-
import { E as Entity } from '../entTypes-
|
|
1
|
+
import { b as Customer } from '../cusTypes-DCeNEQLu.mjs';
|
|
2
|
+
import { E as Entity } from '../entTypes-CJhJFCKD.mjs';
|
|
3
3
|
import 'zod';
|
|
4
4
|
|
|
5
5
|
interface AllowedParams {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as Customer } from '../cusTypes-
|
|
2
|
-
import { E as Entity } from '../entTypes-
|
|
1
|
+
import { b as Customer } from '../cusTypes-DCeNEQLu.js';
|
|
2
|
+
import { E as Entity } from '../entTypes-BJD_Hxbp.js';
|
|
3
3
|
import 'zod';
|
|
4
4
|
|
|
5
5
|
interface AllowedParams {
|
|
@@ -1,20 +1,35 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { CheckParams, TrackParams, CancelParams, OpenBillingPortalParams, SetupPaymentParams } from '../client/types/clientGenTypes.mjs';
|
|
2
|
+
import { R as Result, a as CheckResult, A as AutumnPromise, T as TrackResult, C as CancelResult, S as SetupPaymentResult } from '../response-HZAWTgGp.mjs';
|
|
3
|
+
import { A as AutumnError } from '../error-DHbclCVh.mjs';
|
|
4
|
+
import { C as CheckoutResult } from '../attachTypes-DqI7qtXD.mjs';
|
|
5
|
+
import { B as BillingPortalResult } from '../cusTypes-DCeNEQLu.mjs';
|
|
6
|
+
import { AttachParams, CheckoutParams } from '../client/types/clientAttachTypes.mjs';
|
|
4
7
|
import 'zod';
|
|
5
|
-
import '../error-DHbclCVh.mjs';
|
|
6
|
-
import 'react';
|
|
7
8
|
|
|
8
9
|
/**
|
|
9
10
|
* @deprecated The functions exported from this hook can now be found in useCustomer
|
|
10
11
|
*/
|
|
11
12
|
declare const useAutumn: () => {
|
|
12
|
-
attach: (params: AttachParams) => Promise<
|
|
13
|
+
attach: (params: AttachParams) => Promise<Result<{
|
|
14
|
+
customer_id: string;
|
|
15
|
+
code: string;
|
|
16
|
+
message: string;
|
|
17
|
+
product_ids: string[];
|
|
18
|
+
customer_data?: any;
|
|
19
|
+
checkout_url?: string | undefined;
|
|
20
|
+
} | CheckResult, AutumnError>>;
|
|
13
21
|
check: (params: CheckParams) => AutumnPromise<CheckResult>;
|
|
14
22
|
track: (params: TrackParams) => AutumnPromise<TrackResult>;
|
|
15
23
|
cancel: (params: CancelParams) => AutumnPromise<CancelResult>;
|
|
16
24
|
openBillingPortal: (params?: OpenBillingPortalParams) => AutumnPromise<BillingPortalResult>;
|
|
17
25
|
setupPayment: (params?: SetupPaymentParams) => AutumnPromise<SetupPaymentResult>;
|
|
26
|
+
checkout: (params: CheckoutParams) => Promise<{
|
|
27
|
+
data: null;
|
|
28
|
+
error: AutumnError;
|
|
29
|
+
} | {
|
|
30
|
+
data: CheckoutResult;
|
|
31
|
+
error: null;
|
|
32
|
+
}>;
|
|
18
33
|
};
|
|
19
34
|
|
|
20
35
|
export { useAutumn };
|
|
@@ -1,20 +1,35 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { CheckParams, TrackParams, CancelParams, OpenBillingPortalParams, SetupPaymentParams } from '../client/types/clientGenTypes.js';
|
|
2
|
+
import { R as Result, a as CheckResult, A as AutumnPromise, T as TrackResult, C as CancelResult, S as SetupPaymentResult } from '../response-Dek2TEnE.js';
|
|
3
|
+
import { A as AutumnError } from '../error-DHbclCVh.js';
|
|
4
|
+
import { C as CheckoutResult } from '../attachTypes-Cexub7bN.js';
|
|
5
|
+
import { B as BillingPortalResult } from '../cusTypes-DCeNEQLu.js';
|
|
6
|
+
import { AttachParams, CheckoutParams } from '../client/types/clientAttachTypes.js';
|
|
4
7
|
import 'zod';
|
|
5
|
-
import '../error-DHbclCVh.js';
|
|
6
|
-
import 'react';
|
|
7
8
|
|
|
8
9
|
/**
|
|
9
10
|
* @deprecated The functions exported from this hook can now be found in useCustomer
|
|
10
11
|
*/
|
|
11
12
|
declare const useAutumn: () => {
|
|
12
|
-
attach: (params: AttachParams) => Promise<
|
|
13
|
+
attach: (params: AttachParams) => Promise<Result<{
|
|
14
|
+
customer_id: string;
|
|
15
|
+
code: string;
|
|
16
|
+
message: string;
|
|
17
|
+
product_ids: string[];
|
|
18
|
+
customer_data?: any;
|
|
19
|
+
checkout_url?: string | undefined;
|
|
20
|
+
} | CheckResult, AutumnError>>;
|
|
13
21
|
check: (params: CheckParams) => AutumnPromise<CheckResult>;
|
|
14
22
|
track: (params: TrackParams) => AutumnPromise<TrackResult>;
|
|
15
23
|
cancel: (params: CancelParams) => AutumnPromise<CancelResult>;
|
|
16
24
|
openBillingPortal: (params?: OpenBillingPortalParams) => AutumnPromise<BillingPortalResult>;
|
|
17
25
|
setupPayment: (params?: SetupPaymentParams) => AutumnPromise<SetupPaymentResult>;
|
|
26
|
+
checkout: (params: CheckoutParams) => Promise<{
|
|
27
|
+
data: null;
|
|
28
|
+
error: AutumnError;
|
|
29
|
+
} | {
|
|
30
|
+
data: CheckoutResult;
|
|
31
|
+
error: null;
|
|
32
|
+
}>;
|
|
18
33
|
};
|
|
19
34
|
|
|
20
35
|
export { useAutumn };
|