autumn-js 0.1.61 → 0.1.63

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 (35) hide show
  1. package/dist/libraries/backend/better-auth.js +3 -2
  2. package/dist/libraries/backend/better-auth.mjs +3 -2
  3. package/dist/libraries/backend/hono.js +4 -3
  4. package/dist/libraries/backend/hono.mjs +4 -3
  5. package/dist/libraries/react/{chunk-7N75YTVM.mjs → chunk-2GEDBGON.mjs} +6 -6
  6. package/dist/libraries/react/{chunk-C3LUB2Q3.mjs → chunk-2LZIBRD4.mjs} +6 -6
  7. package/dist/libraries/react/{chunk-2ZZJUGBO.mjs → chunk-2OHJ6PS6.mjs} +10 -10
  8. package/dist/libraries/react/{chunk-BQ3TB6LH.mjs → chunk-3KUDUUB6.mjs} +450 -452
  9. package/dist/libraries/react/{chunk-EMHT2HX4.mjs → chunk-47KEC6LH.mjs} +8 -8
  10. package/dist/libraries/react/{chunk-Y626BPVN.mjs → chunk-4KLTPVNG.mjs} +9 -9
  11. package/dist/libraries/react/{chunk-MJF25D7E.mjs → chunk-4QVAJKUF.mjs} +32 -32
  12. package/dist/libraries/react/{chunk-36POY2CM.mjs → chunk-5TLRC3ED.mjs} +4 -4
  13. package/dist/libraries/react/{chunk-ACRIHVEO.mjs → chunk-DXHYWJOY.mjs} +3 -3
  14. package/dist/libraries/react/{chunk-6I5DGTWH.mjs → chunk-QEWVBDWJ.mjs} +2 -2
  15. package/dist/libraries/react/{chunk-WA7QZHL5.mjs → chunk-SWSFJTEQ.mjs} +1 -1
  16. package/dist/libraries/react/{chunk-CWQ4UVCS.mjs → chunk-YCHPTRJA.mjs} +13 -13
  17. package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.js +68 -68
  18. package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.mjs +15 -15
  19. package/dist/libraries/react/components/paywall-dialog/paywall-dialog-synced.js +66 -66
  20. package/dist/libraries/react/components/paywall-dialog/paywall-dialog-synced.mjs +15 -15
  21. package/dist/libraries/react/components/pricing-table/pricing-table-synced.js +67 -67
  22. package/dist/libraries/react/components/pricing-table/pricing-table-synced.mjs +15 -15
  23. package/dist/libraries/react/components/ui/accordion.js +23 -23
  24. package/dist/libraries/react/components/ui/accordion.mjs +5 -5
  25. package/dist/libraries/react/components/ui/button.js +3 -3
  26. package/dist/libraries/react/components/ui/button.mjs +2 -2
  27. package/dist/libraries/react/components/ui/dialog.js +49 -49
  28. package/dist/libraries/react/components/ui/dialog.mjs +6 -6
  29. package/dist/libraries/react/components/ui/popover.js +47 -47
  30. package/dist/libraries/react/components/ui/popover.mjs +6 -6
  31. package/dist/libraries/react/components/ui/switch.js +12 -12
  32. package/dist/libraries/react/components/ui/switch.mjs +4 -4
  33. package/dist/libraries/react/index.js +67 -67
  34. package/dist/libraries/react/index.mjs +67 -67
  35. package/package.json +1 -1
@@ -1933,7 +1933,9 @@ var handleReq = async ({
1933
1933
  url: options?.url,
1934
1934
  secretKey: options?.secretKey
1935
1935
  });
1936
- const router = createRouterWithOptions({ suppressLogs: options?.suppressLogs });
1936
+ const router = createRouterWithOptions({
1937
+ suppressLogs: options?.suppressLogs
1938
+ });
1937
1939
  let searchParams = {};
1938
1940
  try {
1939
1941
  const req = ctx.request;
@@ -2047,7 +2049,6 @@ var autumn = (options) => {
2047
2049
  body: CheckoutParamsSchema2
2048
2050
  },
2049
2051
  async (ctx) => {
2050
- console.log("Body: ", ctx.body);
2051
2052
  return await handleReq({ ctx, options, method: "POST" });
2052
2053
  }
2053
2054
  ),
@@ -222,7 +222,9 @@ var handleReq = async ({
222
222
  url: options?.url,
223
223
  secretKey: options?.secretKey
224
224
  });
225
- const router = createRouterWithOptions({ suppressLogs: options?.suppressLogs });
225
+ const router = createRouterWithOptions({
226
+ suppressLogs: options?.suppressLogs
227
+ });
226
228
  let searchParams = {};
227
229
  try {
228
230
  const req = ctx.request;
@@ -336,7 +338,6 @@ var autumn = (options) => {
336
338
  body: CheckoutParamsSchema
337
339
  },
338
340
  async (ctx) => {
339
- console.log("Body: ", ctx.body);
340
341
  return await handleReq({ ctx, options, method: "POST" });
341
342
  }
342
343
  ),
@@ -1643,10 +1643,11 @@ var secretKeyCheck = (secretKey) => {
1643
1643
  var autumnHandler = (options) => {
1644
1644
  const autumn = new Autumn({
1645
1645
  url: options.url || autumnApiUrl,
1646
- version: options.version
1646
+ version: options.version,
1647
+ secretKey: options.secretKey
1647
1648
  });
1648
1649
  const router = createRouterWithOptions();
1649
- let { found, error: resError } = secretKeyCheck(options?.secretKey);
1650
+ const { found, error: resError } = secretKeyCheck(options?.secretKey);
1650
1651
  return async (c, next) => {
1651
1652
  if (!found && !options.secretKey) {
1652
1653
  return c.json(resError, 500);
@@ -1665,7 +1666,7 @@ var autumnHandler = (options) => {
1665
1666
  } catch (error) {
1666
1667
  }
1667
1668
  }
1668
- let result = await handler({
1669
+ const result = await handler({
1669
1670
  autumn,
1670
1671
  body,
1671
1672
  path: c.req.path,
@@ -23,10 +23,11 @@ import { findRoute } from "rou3";
23
23
  var autumnHandler = (options) => {
24
24
  const autumn = new Autumn({
25
25
  url: options.url || autumnApiUrl,
26
- version: options.version
26
+ version: options.version,
27
+ secretKey: options.secretKey
27
28
  });
28
29
  const router = createRouterWithOptions();
29
- let { found, error: resError } = secretKeyCheck(options?.secretKey);
30
+ const { found, error: resError } = secretKeyCheck(options?.secretKey);
30
31
  return async (c, next) => {
31
32
  if (!found && !options.secretKey) {
32
33
  return c.json(resError, 500);
@@ -45,7 +46,7 @@ var autumnHandler = (options) => {
45
46
  } catch (error) {
46
47
  }
47
48
  }
48
- let result = await handler({
49
+ const result = await handler({
49
50
  autumn,
50
51
  body,
51
52
  path: c.req.path,
@@ -2,9 +2,9 @@
2
2
 
3
3
  import {
4
4
  createSlot
5
- } from "./chunk-ACRIHVEO.mjs";
5
+ } from "./chunk-DXHYWJOY.mjs";
6
6
 
7
- // ../node_modules/.pnpm/@radix-ui+react-context@1.1.2_@types+react@19.1.10_react@19.2.3/node_modules/@radix-ui/react-context/dist/index.mjs
7
+ // ../node_modules/.pnpm/@radix-ui+react-context@1.1.2_@types+react@19.1.10_react@19.1.1/node_modules/@radix-ui/react-context/dist/index.mjs
8
8
  import * as React from "react";
9
9
  import { jsx } from "react/jsx-runtime";
10
10
  function createContext2(rootComponentName, defaultContext) {
@@ -91,15 +91,15 @@ function composeEventHandlers(originalEventHandler, ourEventHandler, { checkForD
91
91
  };
92
92
  }
93
93
 
94
- // ../node_modules/.pnpm/@radix-ui+react-use-controllable-state@1.2.2_@types+react@19.1.10_react@19.2.3/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs
94
+ // ../node_modules/.pnpm/@radix-ui+react-use-controllable-state@1.2.2_@types+react@19.1.10_react@19.1.1/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs
95
95
  import * as React3 from "react";
96
96
 
97
- // ../node_modules/.pnpm/@radix-ui+react-use-layout-effect@1.1.1_@types+react@19.1.10_react@19.2.3/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs
97
+ // ../node_modules/.pnpm/@radix-ui+react-use-layout-effect@1.1.1_@types+react@19.1.10_react@19.1.1/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs
98
98
  import * as React2 from "react";
99
99
  var useLayoutEffect2 = globalThis?.document ? React2.useLayoutEffect : () => {
100
100
  };
101
101
 
102
- // ../node_modules/.pnpm/@radix-ui+react-use-controllable-state@1.2.2_@types+react@19.1.10_react@19.2.3/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs
102
+ // ../node_modules/.pnpm/@radix-ui+react-use-controllable-state@1.2.2_@types+react@19.1.10_react@19.1.1/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs
103
103
  import * as React22 from "react";
104
104
  var useInsertionEffect = React3[" useInsertionEffect ".trim().toString()] || useLayoutEffect2;
105
105
  function useControllableState({
@@ -167,7 +167,7 @@ function isFunction(value) {
167
167
  }
168
168
  var SYNC_STATE = Symbol("RADIX:SYNC_STATE");
169
169
 
170
- // ../node_modules/.pnpm/@radix-ui+react-primitive@2.1.3_@types+react-dom@19.2.3_@types+react@19.1.10__@types+re_f8fc61f39a09b99c4b88664f4d20e190/node_modules/@radix-ui/react-primitive/dist/index.mjs
170
+ // ../node_modules/.pnpm/@radix-ui+react-primitive@2.1.3_@types+react-dom@19.1.9_@types+react@19.1.10__@types+react@19_xx37pthzbhildnk4zsozp4vigu/node_modules/@radix-ui/react-primitive/dist/index.mjs
171
171
  import * as React4 from "react";
172
172
  import * as ReactDOM from "react-dom";
173
173
  import { jsx as jsx2 } from "react/jsx-runtime";
@@ -2,16 +2,16 @@
2
2
 
3
3
  import {
4
4
  useSize
5
- } from "./chunk-6I5DGTWH.mjs";
5
+ } from "./chunk-QEWVBDWJ.mjs";
6
6
  import {
7
7
  Primitive,
8
8
  composeEventHandlers,
9
9
  createContextScope,
10
10
  useControllableState
11
- } from "./chunk-7N75YTVM.mjs";
11
+ } from "./chunk-2GEDBGON.mjs";
12
12
  import {
13
13
  useComposedRefs
14
- } from "./chunk-ACRIHVEO.mjs";
14
+ } from "./chunk-DXHYWJOY.mjs";
15
15
  import {
16
16
  cn
17
17
  } from "./chunk-4J6OC4ZQ.mjs";
@@ -19,10 +19,10 @@ import {
19
19
  // src/libraries/react/components/ui/switch.tsx
20
20
  import * as React3 from "react";
21
21
 
22
- // ../node_modules/.pnpm/@radix-ui+react-switch@1.2.5_@types+react-dom@19.2.3_@types+react@19.1.10__@types+react_df0c661b2d4b00af83e83e256ae42763/node_modules/@radix-ui/react-switch/dist/index.mjs
22
+ // ../node_modules/.pnpm/@radix-ui+react-switch@1.2.5_@types+react-dom@19.1.9_@types+react@19.1.10__@types+react@19.1._mh2w7rehnd5adfujfuln6l4w5m/node_modules/@radix-ui/react-switch/dist/index.mjs
23
23
  import * as React2 from "react";
24
24
 
25
- // ../node_modules/.pnpm/@radix-ui+react-use-previous@1.1.1_@types+react@19.1.10_react@19.2.3/node_modules/@radix-ui/react-use-previous/dist/index.mjs
25
+ // ../node_modules/.pnpm/@radix-ui+react-use-previous@1.1.1_@types+react@19.1.10_react@19.1.1/node_modules/@radix-ui/react-use-previous/dist/index.mjs
26
26
  import * as React from "react";
27
27
  function usePrevious(value) {
28
28
  const ref = React.useRef({ value, previous: value });
@@ -35,7 +35,7 @@ function usePrevious(value) {
35
35
  }, [value]);
36
36
  }
37
37
 
38
- // ../node_modules/.pnpm/@radix-ui+react-switch@1.2.5_@types+react-dom@19.2.3_@types+react@19.1.10__@types+react_df0c661b2d4b00af83e83e256ae42763/node_modules/@radix-ui/react-switch/dist/index.mjs
38
+ // ../node_modules/.pnpm/@radix-ui+react-switch@1.2.5_@types+react-dom@19.1.9_@types+react@19.1.10__@types+react@19.1._mh2w7rehnd5adfujfuln6l4w5m/node_modules/@radix-ui/react-switch/dist/index.mjs
39
39
  import { jsx, jsxs } from "react/jsx-runtime";
40
40
  var SWITCH_NAME = "Switch";
41
41
  var [createSwitchContext, createSwitchScope] = createContextScope(SWITCH_NAME);
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
 
3
3
 
4
- // ../node_modules/.pnpm/lucide-react@0.523.0_react@19.2.3/node_modules/lucide-react/dist/esm/createLucideIcon.js
4
+ // ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.1/node_modules/lucide-react/dist/esm/createLucideIcon.js
5
5
  import { forwardRef as forwardRef2, createElement as createElement2 } from "react";
6
6
 
7
- // ../node_modules/.pnpm/lucide-react@0.523.0_react@19.2.3/node_modules/lucide-react/dist/esm/shared/src/utils.js
7
+ // ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.1/node_modules/lucide-react/dist/esm/shared/src/utils.js
8
8
  var toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
9
9
  var toCamelCase = (string) => string.replace(
10
10
  /^([A-Z])|[\s-_]+(\w)/g,
@@ -25,10 +25,10 @@ var hasA11yProp = (props) => {
25
25
  }
26
26
  };
27
27
 
28
- // ../node_modules/.pnpm/lucide-react@0.523.0_react@19.2.3/node_modules/lucide-react/dist/esm/Icon.js
28
+ // ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.1/node_modules/lucide-react/dist/esm/Icon.js
29
29
  import { forwardRef, createElement } from "react";
30
30
 
31
- // ../node_modules/.pnpm/lucide-react@0.523.0_react@19.2.3/node_modules/lucide-react/dist/esm/defaultAttributes.js
31
+ // ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.1/node_modules/lucide-react/dist/esm/defaultAttributes.js
32
32
  var defaultAttributes = {
33
33
  xmlns: "http://www.w3.org/2000/svg",
34
34
  width: 24,
@@ -41,7 +41,7 @@ var defaultAttributes = {
41
41
  strokeLinejoin: "round"
42
42
  };
43
43
 
44
- // ../node_modules/.pnpm/lucide-react@0.523.0_react@19.2.3/node_modules/lucide-react/dist/esm/Icon.js
44
+ // ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.1/node_modules/lucide-react/dist/esm/Icon.js
45
45
  var Icon = forwardRef(
46
46
  ({
47
47
  color = "currentColor",
@@ -72,7 +72,7 @@ var Icon = forwardRef(
72
72
  )
73
73
  );
74
74
 
75
- // ../node_modules/.pnpm/lucide-react@0.523.0_react@19.2.3/node_modules/lucide-react/dist/esm/createLucideIcon.js
75
+ // ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.1/node_modules/lucide-react/dist/esm/createLucideIcon.js
76
76
  var createLucideIcon = (iconName, iconNode) => {
77
77
  const Component = forwardRef2(
78
78
  ({ className, ...props }, ref) => createElement2(Icon, {
@@ -90,22 +90,22 @@ var createLucideIcon = (iconName, iconNode) => {
90
90
  return Component;
91
91
  };
92
92
 
93
- // ../node_modules/.pnpm/lucide-react@0.523.0_react@19.2.3/node_modules/lucide-react/dist/esm/icons/arrow-right.js
93
+ // ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.1/node_modules/lucide-react/dist/esm/icons/arrow-right.js
94
94
  var __iconNode = [
95
95
  ["path", { d: "M5 12h14", key: "1ays0h" }],
96
96
  ["path", { d: "m12 5 7 7-7 7", key: "xquz4c" }]
97
97
  ];
98
98
  var ArrowRight = createLucideIcon("arrow-right", __iconNode);
99
99
 
100
- // ../node_modules/.pnpm/lucide-react@0.523.0_react@19.2.3/node_modules/lucide-react/dist/esm/icons/chevron-down.js
100
+ // ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.1/node_modules/lucide-react/dist/esm/icons/chevron-down.js
101
101
  var __iconNode2 = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]];
102
102
  var ChevronDown = createLucideIcon("chevron-down", __iconNode2);
103
103
 
104
- // ../node_modules/.pnpm/lucide-react@0.523.0_react@19.2.3/node_modules/lucide-react/dist/esm/icons/loader-circle.js
104
+ // ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.1/node_modules/lucide-react/dist/esm/icons/loader-circle.js
105
105
  var __iconNode3 = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]];
106
106
  var LoaderCircle = createLucideIcon("loader-circle", __iconNode3);
107
107
 
108
- // ../node_modules/.pnpm/lucide-react@0.523.0_react@19.2.3/node_modules/lucide-react/dist/esm/icons/x.js
108
+ // ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.1/node_modules/lucide-react/dist/esm/icons/x.js
109
109
  var __iconNode4 = [
110
110
  ["path", { d: "M18 6 6 18", key: "1bl5f8" }],
111
111
  ["path", { d: "m6 6 12 12", key: "d8bk6v" }]