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.
Files changed (259) hide show
  1. package/dist/libraries/backend/better-auth.d.mts +28 -4
  2. package/dist/libraries/backend/better-auth.d.ts +28 -4
  3. package/dist/libraries/backend/better-auth.js +76 -83
  4. package/dist/libraries/backend/better-auth.mjs +7 -7
  5. package/dist/libraries/backend/{chunk-NW6B7QXB.mjs → chunk-2RZ2FZX2.mjs} +6 -6
  6. package/dist/libraries/backend/{chunk-33NT3WE5.mjs → chunk-3OLXYDCU.mjs} +1 -1
  7. package/dist/libraries/backend/{chunk-AKV5N4WO.mjs → chunk-5EKNB4IJ.mjs} +1 -1
  8. package/dist/libraries/backend/{chunk-CEZHD5H6.mjs → chunk-5H6HVCOP.mjs} +1 -1
  9. package/dist/libraries/backend/{chunk-J3L3OBSS.mjs → chunk-HHMIVOXX.mjs} +18 -1
  10. package/dist/libraries/backend/{chunk-6VS7TU7O.mjs → chunk-IOSEAUDJ.mjs} +57 -81
  11. package/dist/libraries/backend/{chunk-RA4AC56B.mjs → chunk-K7JGEYUX.mjs} +1 -1
  12. package/dist/libraries/backend/convex.js +73 -80
  13. package/dist/libraries/backend/convex.mjs +7 -7
  14. package/dist/libraries/backend/elysia.js +73 -80
  15. package/dist/libraries/backend/elysia.mjs +7 -7
  16. package/dist/libraries/backend/express.d.mts +1 -1
  17. package/dist/libraries/backend/express.d.ts +1 -1
  18. package/dist/libraries/backend/express.js +73 -80
  19. package/dist/libraries/backend/express.mjs +7 -7
  20. package/dist/libraries/backend/fastify.js +73 -80
  21. package/dist/libraries/backend/fastify.mjs +7 -7
  22. package/dist/libraries/backend/hono.js +73 -80
  23. package/dist/libraries/backend/hono.mjs +7 -7
  24. package/dist/libraries/backend/next.js +284 -268
  25. package/dist/libraries/backend/next.mjs +216 -193
  26. package/dist/libraries/backend/react-router.js +73 -80
  27. package/dist/libraries/backend/react-router.mjs +7 -7
  28. package/dist/libraries/backend/{referralTypes-D1Q2i3mG.d.ts → referralTypes-CnYanpMd.d.ts} +205 -104
  29. package/dist/libraries/backend/{referralTypes-Dfg6if8j.d.mts → referralTypes-jA7MQ1y5.d.mts} +205 -104
  30. package/dist/libraries/backend/remix_dep.js +73 -80
  31. package/dist/libraries/backend/remix_dep.mjs +7 -7
  32. package/dist/libraries/backend/routes/backendRouter.js +73 -80
  33. package/dist/libraries/backend/routes/backendRouter.mjs +7 -7
  34. package/dist/libraries/backend/routes/entityRoutes.js +56 -80
  35. package/dist/libraries/backend/routes/entityRoutes.mjs +3 -3
  36. package/dist/libraries/backend/routes/genRoutes.js +73 -80
  37. package/dist/libraries/backend/routes/genRoutes.mjs +3 -3
  38. package/dist/libraries/backend/routes/productRoutes.js +56 -80
  39. package/dist/libraries/backend/routes/productRoutes.mjs +3 -3
  40. package/dist/libraries/backend/routes/referralRoutes.js +56 -80
  41. package/dist/libraries/backend/routes/referralRoutes.mjs +3 -3
  42. package/dist/libraries/backend/supabase.js +73 -80
  43. package/dist/libraries/backend/supabase.mjs +7 -7
  44. package/dist/libraries/backend/tanstack.js +73 -80
  45. package/dist/libraries/backend/tanstack.mjs +7 -7
  46. package/dist/libraries/backend/utils/backendRes.js +56 -80
  47. package/dist/libraries/backend/utils/backendRes.mjs +1 -1
  48. package/dist/libraries/backend/utils/withAuth.d.mts +1 -1
  49. package/dist/libraries/backend/utils/withAuth.d.ts +1 -1
  50. package/dist/libraries/backend/utils/withAuth.js +56 -80
  51. package/dist/libraries/backend/utils/withAuth.mjs +2 -2
  52. package/dist/libraries/react/AutumnContext.d.mts +5 -4
  53. package/dist/libraries/react/AutumnContext.d.ts +5 -4
  54. package/dist/libraries/react/AutumnContext.js +63 -82
  55. package/dist/libraries/react/AutumnContext.mjs +5 -5
  56. package/dist/libraries/react/BaseAutumnProvider.d.mts +5 -4
  57. package/dist/libraries/react/BaseAutumnProvider.d.ts +5 -4
  58. package/dist/libraries/react/BaseAutumnProvider.js +96 -111
  59. package/dist/libraries/react/BaseAutumnProvider.mjs +9 -9
  60. package/dist/libraries/react/{ReactAutumnClient-YzfxjqPK.d.mts → ReactAutumnClient-BGI56QI_.d.mts} +21 -10
  61. package/dist/libraries/react/{ReactAutumnClient-DBbq29Nn.d.ts → ReactAutumnClient-CEv9YGLM.d.ts} +21 -10
  62. package/dist/libraries/react/ReactAutumnProvider.d.mts +1 -1
  63. package/dist/libraries/react/ReactAutumnProvider.d.ts +1 -1
  64. package/dist/libraries/react/ReactAutumnProvider.js +96 -111
  65. package/dist/libraries/react/ReactAutumnProvider.mjs +10 -10
  66. package/dist/libraries/react/attachTypes-Cexub7bN.d.ts +58 -0
  67. package/dist/libraries/react/attachTypes-DqI7qtXD.d.mts +58 -0
  68. package/dist/libraries/react/{chunk-VUBJ6JM3.mjs → chunk-253MTZP3.mjs} +7 -2
  69. package/dist/libraries/react/{chunk-5NDO7C7R.mjs → chunk-3N6WLQH3.mjs} +1 -1
  70. package/dist/libraries/react/{chunk-H2NGSCWI.mjs → chunk-473LVTGN.mjs} +2 -2
  71. package/dist/libraries/react/{chunk-LXSKONN2.mjs → chunk-4A53GN44.mjs} +5 -5
  72. package/dist/libraries/react/{chunk-TPKQIL3N.mjs → chunk-4BQDSIWM.mjs} +5 -8
  73. package/dist/libraries/react/{chunk-X6RY6VG5.mjs → chunk-4VXBAIPC.mjs} +2 -2
  74. package/dist/libraries/react/{chunk-OAWFFAKA.mjs → chunk-6EZVNJHQ.mjs} +6 -6
  75. package/dist/libraries/react/{chunk-3VHO7VUQ.mjs → chunk-ASL5VH2W.mjs} +4 -3
  76. package/dist/libraries/react/{chunk-QBBE72EF.mjs → chunk-CBPZVSMZ.mjs} +12 -7
  77. package/dist/libraries/react/chunk-CUWUAQML.mjs +179 -0
  78. package/dist/libraries/react/chunk-DJIRJJNG.mjs +34 -0
  79. package/dist/libraries/react/{chunk-ALIGIMSK.mjs → chunk-E5EYSQYJ.mjs} +65 -87
  80. package/dist/libraries/react/{chunk-5URK7LI3.mjs → chunk-EBQBPZCM.mjs} +3 -3
  81. package/dist/libraries/react/{chunk-AL3VJLFU.mjs → chunk-EV5RNY5U.mjs} +1 -1
  82. package/dist/libraries/react/chunk-G6NOGGDA.mjs +695 -0
  83. package/dist/libraries/react/{chunk-OAPUYXBO.mjs → chunk-KWNH6C27.mjs} +6 -6
  84. package/dist/libraries/react/{chunk-JI7WQ6AC.mjs → chunk-MNOH7Q3B.mjs} +2 -2
  85. package/dist/libraries/react/{chunk-SY5GNYZ7.mjs → chunk-P5MIFIIO.mjs} +2 -2
  86. package/dist/libraries/react/{chunk-T73WQC2X.mjs → chunk-PIENO233.mjs} +1 -1
  87. package/dist/libraries/react/chunk-QUO2CYKM.mjs +30 -0
  88. package/dist/libraries/react/{chunk-BCMBFJ7E.mjs → chunk-RCTILKK3.mjs} +70 -37
  89. package/dist/libraries/react/{chunk-ZVQKDPUP.mjs → chunk-RPEGNKJH.mjs} +3 -3
  90. package/dist/libraries/react/{chunk-SDMBKRAI.mjs → chunk-WAFSQH6N.mjs} +37 -37
  91. package/dist/libraries/react/{chunk-GQ3TAHSV.mjs → chunk-ZFIJI37N.mjs} +1 -1
  92. package/dist/libraries/react/{chunk-CE33P32V.mjs → chunk-ZITEHPEQ.mjs} +30 -24
  93. package/dist/libraries/react/client/ReactAutumnClient.d.mts +5 -5
  94. package/dist/libraries/react/client/ReactAutumnClient.d.ts +5 -5
  95. package/dist/libraries/react/client/ReactAutumnClient.js +63 -82
  96. package/dist/libraries/react/client/ReactAutumnClient.mjs +4 -4
  97. package/dist/libraries/react/client/clientCompMethods.d.mts +5 -5
  98. package/dist/libraries/react/client/clientCompMethods.d.ts +5 -5
  99. package/dist/libraries/react/client/clientCusMethods.d.mts +5 -5
  100. package/dist/libraries/react/client/clientCusMethods.d.ts +5 -5
  101. package/dist/libraries/react/client/clientEntityMethods.d.mts +5 -5
  102. package/dist/libraries/react/client/clientEntityMethods.d.ts +5 -5
  103. package/dist/libraries/react/client/clientGenMethods.d.mts +9 -7
  104. package/dist/libraries/react/client/clientGenMethods.d.ts +9 -7
  105. package/dist/libraries/react/client/clientGenMethods.js +8 -2
  106. package/dist/libraries/react/client/clientGenMethods.mjs +3 -1
  107. package/dist/libraries/react/client/clientProdMethods.d.mts +5 -5
  108. package/dist/libraries/react/client/clientProdMethods.d.ts +5 -5
  109. package/dist/libraries/react/client/clientReferralMethods.d.mts +5 -5
  110. package/dist/libraries/react/client/clientReferralMethods.d.ts +5 -5
  111. package/dist/libraries/react/client/types/clientAttachTypes.d.mts +115 -0
  112. package/dist/libraries/react/client/types/clientAttachTypes.d.ts +115 -0
  113. package/dist/libraries/react/client/types/clientAttachTypes.js +68 -0
  114. package/dist/libraries/react/client/types/clientAttachTypes.mjs +42 -0
  115. package/dist/libraries/react/client/types/clientGenTypes.d.mts +10 -81
  116. package/dist/libraries/react/client/types/clientGenTypes.d.ts +10 -81
  117. package/dist/libraries/react/client/types/clientGenTypes.js +1 -24
  118. package/dist/libraries/react/client/types/clientGenTypes.mjs +1 -22
  119. package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.css +213 -4
  120. package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.d.mts +5 -32
  121. package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.d.ts +5 -32
  122. package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.js +720 -371
  123. package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.mjs +28 -31
  124. package/dist/libraries/react/components/attach-dialog/lib/attach-content.d.mts +3 -2
  125. package/dist/libraries/react/components/attach-dialog/lib/attach-content.d.ts +3 -2
  126. package/dist/libraries/react/components/attach-dialog/lib/attach-content.js +70 -37
  127. package/dist/libraries/react/components/attach-dialog/lib/attach-content.mjs +1 -1
  128. package/dist/libraries/react/components/check-dialog/check-dialog-synced.d.mts +1 -1
  129. package/dist/libraries/react/components/check-dialog/check-dialog-synced.d.ts +1 -1
  130. package/dist/libraries/react/components/check-dialog/check-dialog-synced.js +43 -43
  131. package/dist/libraries/react/components/check-dialog/check-dialog-synced.mjs +5 -5
  132. package/dist/libraries/react/components/check-dialog/lib/check-content.d.mts +1 -1
  133. package/dist/libraries/react/components/check-dialog/lib/check-content.d.ts +1 -1
  134. package/dist/libraries/react/components/pricing-table/lib/pricing-table-content.d.mts +3 -1
  135. package/dist/libraries/react/components/pricing-table/lib/pricing-table-content.d.ts +3 -1
  136. package/dist/libraries/react/components/pricing-table/lib/pricing-table-content.js +12 -7
  137. package/dist/libraries/react/components/pricing-table/lib/pricing-table-content.mjs +1 -1
  138. package/dist/libraries/react/components/pricing-table/pricing-table-synced.css +213 -4
  139. package/dist/libraries/react/components/pricing-table/pricing-table-synced.d.mts +1 -1
  140. package/dist/libraries/react/components/pricing-table/pricing-table-synced.d.ts +1 -1
  141. package/dist/libraries/react/components/pricing-table/pricing-table-synced.js +794 -456
  142. package/dist/libraries/react/components/pricing-table/pricing-table-synced.mjs +27 -24
  143. package/dist/libraries/react/components/ui/accordion.d.mts +9 -0
  144. package/dist/libraries/react/components/ui/accordion.d.ts +9 -0
  145. package/dist/libraries/react/components/ui/accordion.js +2721 -0
  146. package/dist/libraries/react/components/ui/accordion.mjs +15 -0
  147. package/dist/libraries/react/components/ui/button.d.mts +1 -1
  148. package/dist/libraries/react/components/ui/button.d.ts +1 -1
  149. package/dist/libraries/react/components/ui/button.js +3 -3
  150. package/dist/libraries/react/components/ui/button.mjs +2 -2
  151. package/dist/libraries/react/components/ui/dialog.js +43 -43
  152. package/dist/libraries/react/components/ui/dialog.mjs +3 -3
  153. package/dist/libraries/react/components/ui/input.d.mts +5 -0
  154. package/dist/libraries/react/components/ui/input.d.ts +5 -0
  155. package/dist/libraries/react/components/ui/input.js +2587 -0
  156. package/dist/libraries/react/components/ui/input.mjs +9 -0
  157. package/dist/libraries/react/components/ui/popover.d.mts +9 -0
  158. package/dist/libraries/react/components/ui/popover.d.ts +9 -0
  159. package/dist/libraries/react/components/ui/popover.js +2594 -0
  160. package/dist/libraries/react/components/ui/popover.mjs +15 -0
  161. package/dist/libraries/react/components/ui/switch.js +12 -12
  162. package/dist/libraries/react/components/ui/switch.mjs +3 -3
  163. package/dist/libraries/react/{cusTypes-CFofdxsA.d.ts → cusTypes-DCeNEQLu.d.mts} +30 -12
  164. package/dist/libraries/react/{cusTypes-CFofdxsA.d.mts → cusTypes-DCeNEQLu.d.ts} +30 -12
  165. package/dist/libraries/react/{entTypes-BhUZh8uE.d.ts → entTypes-BJD_Hxbp.d.ts} +1 -1
  166. package/dist/libraries/react/{entTypes-BeWtfIqo.d.mts → entTypes-CJhJFCKD.d.mts} +1 -1
  167. package/dist/libraries/react/hooks/handleAllowed.d.mts +2 -2
  168. package/dist/libraries/react/hooks/handleAllowed.d.ts +2 -2
  169. package/dist/libraries/react/hooks/useAutumn.d.mts +21 -6
  170. package/dist/libraries/react/hooks/useAutumn.d.ts +21 -6
  171. package/dist/libraries/react/hooks/useAutumn.js +94 -110
  172. package/dist/libraries/react/hooks/useAutumn.mjs +8 -8
  173. package/dist/libraries/react/hooks/useAutumnBase.d.mts +24 -9
  174. package/dist/libraries/react/hooks/useAutumnBase.d.ts +24 -9
  175. package/dist/libraries/react/hooks/useAutumnBase.js +94 -110
  176. package/dist/libraries/react/hooks/useAutumnBase.mjs +7 -7
  177. package/dist/libraries/react/hooks/useCustomer.d.mts +7 -5
  178. package/dist/libraries/react/hooks/useCustomer.d.ts +7 -5
  179. package/dist/libraries/react/hooks/useCustomer.js +96 -111
  180. package/dist/libraries/react/hooks/useCustomer.mjs +9 -9
  181. package/dist/libraries/react/hooks/useCustomerBase.d.mts +8 -5
  182. package/dist/libraries/react/hooks/useCustomerBase.d.ts +8 -5
  183. package/dist/libraries/react/hooks/useCustomerBase.js +96 -111
  184. package/dist/libraries/react/hooks/useCustomerBase.mjs +8 -8
  185. package/dist/libraries/react/hooks/useEntity.d.mts +14 -7
  186. package/dist/libraries/react/hooks/useEntity.d.ts +14 -7
  187. package/dist/libraries/react/hooks/useEntity.js +94 -110
  188. package/dist/libraries/react/hooks/useEntity.mjs +9 -9
  189. package/dist/libraries/react/hooks/useEntityBase.d.mts +16 -7
  190. package/dist/libraries/react/hooks/useEntityBase.d.ts +16 -7
  191. package/dist/libraries/react/hooks/useEntityBase.js +94 -110
  192. package/dist/libraries/react/hooks/useEntityBase.mjs +8 -8
  193. package/dist/libraries/react/hooks/usePricingTable.d.mts +1 -1
  194. package/dist/libraries/react/hooks/usePricingTable.d.ts +1 -1
  195. package/dist/libraries/react/hooks/usePricingTable.js +66 -88
  196. package/dist/libraries/react/hooks/usePricingTable.mjs +7 -7
  197. package/dist/libraries/react/hooks/usePricingTableBase.d.mts +6 -6
  198. package/dist/libraries/react/hooks/usePricingTableBase.d.ts +6 -6
  199. package/dist/libraries/react/hooks/usePricingTableBase.js +66 -88
  200. package/dist/libraries/react/hooks/usePricingTableBase.mjs +6 -6
  201. package/dist/libraries/react/hooks/useProductsBase.js +63 -82
  202. package/dist/libraries/react/hooks/useProductsBase.mjs +5 -5
  203. package/dist/libraries/react/index.d.mts +217 -106
  204. package/dist/libraries/react/index.d.ts +217 -106
  205. package/dist/libraries/react/index.js +801 -463
  206. package/dist/libraries/react/index.mjs +792 -454
  207. package/dist/libraries/react/{response-CxMWdpyl.d.ts → response-Dek2TEnE.d.ts} +2 -25
  208. package/dist/libraries/react/{response-AGK9KlYm.d.mts → response-HZAWTgGp.d.mts} +2 -25
  209. package/dist/next/{AutumnProvider-Xl1mqxls.d.mts → AutumnProvider-CHFySjFm.d.mts} +30 -12
  210. package/dist/next/{AutumnProvider-Xl1mqxls.d.ts → AutumnProvider-CHFySjFm.d.ts} +30 -12
  211. package/dist/next/AutumnProvider.d.mts +1 -1
  212. package/dist/next/AutumnProvider.d.ts +1 -1
  213. package/dist/next/client/NextAutumnClient.d.mts +25 -14
  214. package/dist/next/client/NextAutumnClient.d.ts +25 -14
  215. package/dist/next/client/NextAutumnClient.js +13 -2
  216. package/dist/next/client/NextAutumnClient.mjs +13 -2
  217. package/dist/next/client/NextAutumnProvider.d.mts +1 -1
  218. package/dist/next/client/NextAutumnProvider.d.ts +1 -1
  219. package/dist/next/client/attachTypes-BL6x9Zbx.d.ts +58 -0
  220. package/dist/next/client/attachTypes-BPYeJ6E4.d.mts +58 -0
  221. package/dist/next/client/{clientGenTypes-D8f8BwMo.d.ts → clientAttachTypes-Dj6U8D7o.d.ts} +114 -96
  222. package/dist/next/client/{clientGenTypes-BcRfHmUS.d.mts → clientAttachTypes-fN66J754.d.mts} +114 -96
  223. package/dist/next/client/clientUtils.d.mts +2 -2
  224. package/dist/next/client/clientUtils.d.ts +2 -2
  225. package/dist/next/client/{cusTypes-Gh2wfcmj.d.mts → cusTypes-BoVZ2omf.d.mts} +30 -12
  226. package/dist/next/client/{cusTypes-Gh2wfcmj.d.ts → cusTypes-BoVZ2omf.d.ts} +30 -12
  227. package/dist/next/client/{entTypes-B_w6I3y-.d.ts → entTypes-BrHkjvC9.d.ts} +1 -1
  228. package/dist/next/client/{entTypes-C_xS1VPE.d.mts → entTypes-Li6ZrG0C.d.mts} +1 -1
  229. package/dist/next/client/hooks/useAutumn.d.mts +19 -5
  230. package/dist/next/client/hooks/useAutumn.d.ts +19 -5
  231. package/dist/next/client/hooks/useCustomer.d.mts +5 -4
  232. package/dist/next/client/hooks/useCustomer.d.ts +5 -4
  233. package/dist/next/client/hooks/useEntity.d.mts +12 -6
  234. package/dist/next/client/hooks/useEntity.d.ts +12 -6
  235. package/dist/next/client/hooks/usePricingTable.d.mts +1 -1
  236. package/dist/next/client/hooks/usePricingTable.d.ts +1 -1
  237. package/dist/next/client/types.d.mts +2 -2
  238. package/dist/next/client/types.d.ts +2 -2
  239. package/dist/next/index.d.mts +213 -107
  240. package/dist/next/index.d.ts +213 -107
  241. package/dist/next/server/auth/withNextAuth.d.mts +1 -1
  242. package/dist/next/server/auth/withNextAuth.d.ts +1 -1
  243. package/dist/next/server/componentActions.d.mts +1 -1
  244. package/dist/next/server/componentActions.d.ts +1 -1
  245. package/dist/next/server/cusActions.d.mts +185 -106
  246. package/dist/next/server/cusActions.d.ts +185 -106
  247. package/dist/next/server/{cusTypes-DVA6iu7V.d.mts → cusTypes-Bh_pVAJp.d.mts} +34 -12
  248. package/dist/next/server/{cusTypes-DVA6iu7V.d.ts → cusTypes-Bh_pVAJp.d.ts} +34 -12
  249. package/dist/next/server/genActions.d.mts +3 -4
  250. package/dist/next/server/genActions.d.ts +3 -4
  251. package/dist/sdk/index.d.mts +223 -137
  252. package/dist/sdk/index.d.ts +223 -137
  253. package/dist/sdk/index.js +55 -80
  254. package/dist/sdk/index.mjs +54 -81
  255. package/dist/styles/global.css +213 -4
  256. package/dist/utils/encryptUtils.js +56 -80
  257. package/dist/utils/encryptUtils.mjs +56 -80
  258. package/package.json +10 -15
  259. package/dist/libraries/react/chunk-LKV32IPT.mjs +0 -548
@@ -0,0 +1,15 @@
1
+ "use client";
2
+
3
+ import {
4
+ Popover,
5
+ PopoverAnchor,
6
+ PopoverContent,
7
+ PopoverTrigger
8
+ } from "../../chunk-DJIRJJNG.mjs";
9
+ import "../../chunk-4J6OC4ZQ.mjs";
10
+ export {
11
+ Popover,
12
+ PopoverAnchor,
13
+ PopoverContent,
14
+ PopoverTrigger
15
+ };
@@ -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@18.3.23__@types+react@18.3._6zzey5cj563f4jvdnd6324q4ry/node_modules/@radix-ui/react-switch/dist/index.mjs
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@18.3.23_react@19.1.0/node_modules/@radix-ui/react-compose-refs/dist/index.mjs
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@18.3.23_react@19.1.0/node_modules/@radix-ui/react-context/dist/index.mjs
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@18.3.23_react@19.1.0/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs
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@18.3.23_react@19.1.0/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs
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@18.3.23_react@19.1.0/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs
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@18.3.23_react@19.1.0/node_modules/@radix-ui/react-use-previous/dist/index.mjs
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@18.3.23_react@19.1.0/node_modules/@radix-ui/react-use-size/dist/index.mjs
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@18.3.23__@types+react@18_nioct6cchui7iasnxutwakzwo4/node_modules/@radix-ui/react-primitive/dist/index.mjs
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@18.3.23_react@19.1.0/node_modules/@radix-ui/react-slot/dist/index.mjs
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@18.3.23__@types+react@18_nioct6cchui7iasnxutwakzwo4/node_modules/@radix-ui/react-primitive/dist/index.mjs
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@18.3.23__@types+react@18.3._6zzey5cj563f4jvdnd6324q4ry/node_modules/@radix-ui/react-switch/dist/index.mjs
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-OAWFFAKA.mjs";
7
- import "../../chunk-OAPUYXBO.mjs";
8
- import "../../chunk-ZVQKDPUP.mjs";
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?: boolean;
128
- is_one_off?: boolean;
129
- interval_group?: string;
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
- interface CustomerData {
207
- name?: string;
208
- email?: string;
209
- fingerprint?: string;
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, CheckFeaturePreview as g, CheckProductPreview as h, ProductItem as i, CheckFeatureResult as j, CheckProductResult as k, ProductScenario as l };
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?: boolean;
128
- is_one_off?: boolean;
129
- interval_group?: string;
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
- interface CustomerData {
207
- name?: string;
208
- email?: string;
209
- fingerprint?: string;
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, CheckFeaturePreview as g, CheckProductPreview as h, ProductItem as i, CheckFeatureResult as j, CheckProductResult as k, ProductScenario as l };
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-CFofdxsA.js';
1
+ import { d as CustomerProduct, e as CustomerFeature, f as CustomerInvoice } from './cusTypes-DCeNEQLu.js';
2
2
 
3
3
  interface DeleteEntityResult {
4
4
  success: boolean;
@@ -1,4 +1,4 @@
1
- import { d as CustomerProduct, e as CustomerFeature, f as CustomerInvoice } from './cusTypes-CFofdxsA.mjs';
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-CFofdxsA.mjs';
2
- import { E as Entity } from '../entTypes-BeWtfIqo.mjs';
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-CFofdxsA.js';
2
- import { E as Entity } from '../entTypes-BhUZh8uE.js';
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 { A as AutumnPromise, b as CheckResult, T as TrackResult, C as CancelResult, S as SetupPaymentResult } from '../response-AGK9KlYm.mjs';
2
- import { B as BillingPortalResult } from '../cusTypes-CFofdxsA.mjs';
3
- import { AttachParams, CheckParams, TrackParams, CancelParams, OpenBillingPortalParams, SetupPaymentParams } from '../client/types/clientGenTypes.mjs';
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<any>;
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 { A as AutumnPromise, b as CheckResult, T as TrackResult, C as CancelResult, S as SetupPaymentResult } from '../response-CxMWdpyl.js';
2
- import { B as BillingPortalResult } from '../cusTypes-CFofdxsA.js';
3
- import { AttachParams, CheckParams, TrackParams, CancelParams, OpenBillingPortalParams, SetupPaymentParams } from '../client/types/clientGenTypes.js';
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<any>;
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 };