autumn-js 0.1.39 → 0.1.41-beta.0

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 (57) hide show
  1. package/dist/libraries/backend/better-auth.d.mts +2 -1
  2. package/dist/libraries/backend/better-auth.d.ts +2 -1
  3. package/dist/libraries/react/AutumnContext.mjs +4 -4
  4. package/dist/libraries/react/BaseAutumnProvider.mjs +6 -6
  5. package/dist/libraries/react/ReactAutumnProvider.mjs +7 -7
  6. package/dist/libraries/react/{chunk-MHAXHLX4.mjs → chunk-2LS46JI3.mjs} +7 -7
  7. package/dist/libraries/react/{chunk-HSSN3DVD.mjs → chunk-35JJUJGK.mjs} +1 -1
  8. package/dist/libraries/react/{chunk-EUDPGYST.mjs → chunk-3VPXKYJ3.mjs} +3 -3
  9. package/dist/libraries/react/{chunk-2LZIBRD4.mjs → chunk-5RG2M33M.mjs} +4 -4
  10. package/dist/libraries/react/{chunk-4KLTPVNG.mjs → chunk-5SVQ3PPG.mjs} +6 -6
  11. package/dist/libraries/react/{chunk-P2R2JPDF.mjs → chunk-7K7ME43L.mjs} +1 -1
  12. package/dist/libraries/react/{chunk-2GEDBGON.mjs → chunk-7NRUXGKJ.mjs} +12 -12
  13. package/dist/libraries/react/{chunk-QX2NP5QY.mjs → chunk-BFQ772QL.mjs} +452 -449
  14. package/dist/libraries/react/{chunk-WRKSH6S6.mjs → chunk-DIDEEVJB.mjs} +2 -2
  15. package/dist/libraries/react/{chunk-74O4DLZY.mjs → chunk-DTAJR247.mjs} +1 -1
  16. package/dist/libraries/react/{chunk-733BYSMJ.mjs → chunk-HEKBPI6U.mjs} +2 -2
  17. package/dist/libraries/react/{chunk-YSD4K25G.mjs → chunk-IZEOJCTN.mjs} +1 -1
  18. package/dist/libraries/react/{chunk-4QVAJKUF.mjs → chunk-KAQC7WDQ.mjs} +5 -5
  19. package/dist/libraries/react/{chunk-J4VVJBJY.mjs → chunk-P2SWE4OD.mjs} +1 -1
  20. package/dist/libraries/react/{chunk-QEWVBDWJ.mjs → chunk-Q7N6ARDI.mjs} +1 -1
  21. package/dist/libraries/react/{chunk-I274Z7T2.mjs → chunk-SFI5BHCB.mjs} +11 -11
  22. package/dist/libraries/react/{chunk-WL6GWGY5.mjs → chunk-XHXYZVYG.mjs} +1 -1
  23. package/dist/libraries/react/{chunk-5TLRC3ED.mjs → chunk-Z5BMY5OQ.mjs} +18 -18
  24. package/dist/libraries/react/{chunk-NZC2FJEG.mjs → chunk-ZQPCEJFK.mjs} +1 -1
  25. package/dist/libraries/react/client/ReactAutumnClient.mjs +3 -3
  26. package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.css +6 -67
  27. package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.d.mts +1 -1
  28. package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.d.ts +1 -1
  29. package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.js +4908 -4905
  30. package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.mjs +25 -25
  31. package/dist/libraries/react/components/paywall-dialog/paywall-dialog-synced.css +6 -67
  32. package/dist/libraries/react/components/paywall-dialog/paywall-dialog-synced.js +114 -114
  33. package/dist/libraries/react/components/paywall-dialog/paywall-dialog-synced.mjs +25 -25
  34. package/dist/libraries/react/components/pricing-table/pricing-table-synced.css +6 -67
  35. package/dist/libraries/react/components/pricing-table/pricing-table-synced.js +564 -561
  36. package/dist/libraries/react/components/pricing-table/pricing-table-synced.mjs +25 -25
  37. package/dist/libraries/react/components/ui/accordion.js +8 -8
  38. package/dist/libraries/react/components/ui/accordion.mjs +3 -3
  39. package/dist/libraries/react/components/ui/dialog.js +9 -9
  40. package/dist/libraries/react/components/ui/dialog.mjs +4 -4
  41. package/dist/libraries/react/components/ui/popover.js +12 -12
  42. package/dist/libraries/react/components/ui/popover.mjs +5 -5
  43. package/dist/libraries/react/components/ui/switch.js +4 -4
  44. package/dist/libraries/react/components/ui/switch.mjs +3 -3
  45. package/dist/libraries/react/hooks/useAnalytics.mjs +5 -5
  46. package/dist/libraries/react/hooks/useCustomer.mjs +6 -6
  47. package/dist/libraries/react/hooks/useCustomerBase.mjs +5 -5
  48. package/dist/libraries/react/hooks/useEntity.mjs +6 -6
  49. package/dist/libraries/react/hooks/useEntityBase.mjs +5 -5
  50. package/dist/libraries/react/hooks/usePaywall.mjs +5 -5
  51. package/dist/libraries/react/hooks/usePricingTable.mjs +5 -5
  52. package/dist/libraries/react/index.js +565 -562
  53. package/dist/libraries/react/index.mjs +565 -562
  54. package/dist/styles/global.css +6 -67
  55. package/package.json +1 -1
  56. package/tsup.config.ts +193 -186
  57. package/dist/libraries/react/{chunk-VKSWZMFC.mjs → chunk-TLAWG4JC.mjs} +8 -8
@@ -414,12 +414,6 @@ video:where(.au-root, .au-root *) {
414
414
  .au-mb-8 {
415
415
  margin-bottom: 2rem;
416
416
  }
417
- .au-mr-2 {
418
- margin-right: 0.5rem;
419
- }
420
- .au-mt-0 {
421
- margin-top: 0px;
422
- }
423
417
  .au-mt-0\.5 {
424
418
  margin-top: 0.125rem;
425
419
  }
@@ -450,10 +444,6 @@ video:where(.au-root, .au-root *) {
450
444
  .au-grid {
451
445
  display: grid;
452
446
  }
453
- .au-size-4 {
454
- width: 1rem;
455
- height: 1rem;
456
- }
457
447
  .\!au-h-3 {
458
448
  height: 0.75rem !important;
459
449
  }
@@ -475,9 +465,6 @@ video:where(.au-root, .au-root *) {
475
465
  .au-h-5 {
476
466
  height: 1.25rem;
477
467
  }
478
- .au-h-6 {
479
- height: 1.5rem;
480
- }
481
468
  .au-h-7 {
482
469
  height: 1.75rem;
483
470
  }
@@ -502,15 +489,9 @@ video:where(.au-root, .au-root *) {
502
489
  .au-w-4 {
503
490
  width: 1rem;
504
491
  }
505
- .au-w-6 {
506
- width: 1.5rem;
507
- }
508
492
  .au-w-72 {
509
493
  width: 18rem;
510
494
  }
511
- .au-w-8 {
512
- width: 2rem;
513
- }
514
495
  .au-w-80 {
515
496
  width: 20rem;
516
497
  }
@@ -550,26 +531,10 @@ video:where(.au-root, .au-root *) {
550
531
  .au-origin-\[--radix-popover-content-transform-origin\] {
551
532
  transform-origin: var(--radix-popover-content-transform-origin);
552
533
  }
553
- .au--translate-y-12 {
554
- --tw-translate-y: -3rem;
555
- transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
556
- }
557
- .au--translate-y-6 {
558
- --tw-translate-y: -1.5rem;
559
- transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
560
- }
561
534
  .au-translate-x-\[-50\%\] {
562
535
  --tw-translate-x: -50%;
563
536
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
564
537
  }
565
- .au-translate-y-0 {
566
- --tw-translate-y: 0px;
567
- transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
568
- }
569
- .au-translate-y-6 {
570
- --tw-translate-y: 1.5rem;
571
- transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
572
- }
573
538
  .au-translate-y-\[-50\%\] {
574
539
  --tw-translate-y: -50%;
575
540
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
@@ -590,18 +555,15 @@ video:where(.au-root, .au-root *) {
590
555
  .au-animate-spin {
591
556
  animation: au-spin 1s linear infinite;
592
557
  }
558
+ .au-cursor-not-allowed {
559
+ cursor: not-allowed;
560
+ }
593
561
  .au-cursor-pointer {
594
562
  cursor: pointer;
595
563
  }
596
564
  .au-grid-cols-1 {
597
565
  grid-template-columns: repeat(1, minmax(0, 1fr));
598
566
  }
599
- .au-grid-cols-2 {
600
- grid-template-columns: repeat(2, minmax(0, 1fr));
601
- }
602
- .au-flex-row {
603
- flex-direction: row;
604
- }
605
567
  .au-flex-col {
606
568
  flex-direction: column;
607
569
  }
@@ -647,11 +609,6 @@ video:where(.au-root, .au-root *) {
647
609
  margin-right: calc(0.5rem * var(--tw-space-x-reverse));
648
610
  margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse)));
649
611
  }
650
- .au-space-y-1 > :not([hidden]) ~ :not([hidden]) {
651
- --tw-space-y-reverse: 0;
652
- margin-top: calc(0.25rem * calc(1 - var(--tw-space-y-reverse)));
653
- margin-bottom: calc(0.25rem * var(--tw-space-y-reverse));
654
- }
655
612
  .au-space-y-1\.5 > :not([hidden]) ~ :not([hidden]) {
656
613
  --tw-space-y-reverse: 0;
657
614
  margin-top: calc(0.375rem * calc(1 - var(--tw-space-y-reverse)));
@@ -726,10 +683,6 @@ video:where(.au-root, .au-root *) {
726
683
  .au-bg-background {
727
684
  background-color: hsl(var(--au-background));
728
685
  }
729
- .au-bg-black {
730
- --tw-bg-opacity: 1;
731
- background-color: rgb(0 0 0 / var(--tw-bg-opacity, 1));
732
- }
733
686
  .au-bg-black\/40 {
734
687
  background-color: rgb(0 0 0 / 0.4);
735
688
  }
@@ -816,9 +769,6 @@ video:where(.au-root, .au-root *) {
816
769
  padding-top: 1.5rem;
817
770
  padding-bottom: 1.5rem;
818
771
  }
819
- .au-pb-0 {
820
- padding-bottom: 0px;
821
- }
822
772
  .au-pb-2 {
823
773
  padding-bottom: 0.5rem;
824
774
  }
@@ -915,16 +865,15 @@ video:where(.au-root, .au-root *) {
915
865
  .au-text-secondary-foreground {
916
866
  color: hsl(var(--au-secondary-foreground));
917
867
  }
918
- .au-text-zinc-400 {
919
- --tw-text-opacity: 1;
920
- color: rgb(161 161 170 / var(--tw-text-opacity, 1));
921
- }
922
868
  .au-underline-offset-4 {
923
869
  text-underline-offset: 4px;
924
870
  }
925
871
  .au-opacity-70 {
926
872
  opacity: 0.7;
927
873
  }
874
+ .au-opacity-80 {
875
+ opacity: 0.8;
876
+ }
928
877
  .au-shadow {
929
878
  --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
930
879
  --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
@@ -969,10 +918,6 @@ video:where(.au-root, .au-root *) {
969
918
  --tw-shadow-color: #a8a29e;
970
919
  --tw-shadow: var(--tw-shadow-colored);
971
920
  }
972
- .au-shadow-zinc-800 {
973
- --tw-shadow-color: #27272a;
974
- --tw-shadow: var(--tw-shadow-colored);
975
- }
976
921
  .au-outline-none {
977
922
  outline: 2px solid transparent;
978
923
  outline-offset: 2px;
@@ -1060,12 +1005,6 @@ video:where(.au-root, .au-root *) {
1060
1005
  transform: translate3d(var(--tw-exit-translate-x, 0), var(--tw-exit-translate-y, 0), 0) scale3d(var(--tw-exit-scale, 1), var(--tw-exit-scale, 1), var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0));
1061
1006
  }
1062
1007
  }
1063
- .au-slide-in-from-left-1 {
1064
- --tw-enter-translate-x: -0.25rem;
1065
- }
1066
- .au-slide-out-to-left-1 {
1067
- --tw-exit-translate-x: -0.25rem;
1068
- }
1069
1008
  .au-duration-200 {
1070
1009
  animation-duration: 200ms;
1071
1010
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "autumn-js",
3
3
  "description": "Autumn JS Library",
4
- "version": "0.1.39",
4
+ "version": "0.1.41-beta.0",
5
5
  "repository": "github:useautumn/autumn-js",
6
6
  "homepage": "https://docs.useautumn.com",
7
7
  "main": "./dist/sdk/index.js",
package/tsup.config.ts CHANGED
@@ -1,206 +1,213 @@
1
- import { defineConfig, Options } from "tsup";
2
- import * as path from "path";
3
1
  import alias from "esbuild-plugin-path-alias";
2
+ import * as path from "path";
3
+ import { defineConfig, type Options } from "tsup";
4
4
 
5
5
  // Path aliases that match tsconfig.json
6
6
  const pathAliases = {
7
- "@": path.resolve("./src/libraries/react"),
8
- "@sdk": path.resolve("./src/sdk"),
9
- "@styles": path.resolve("./src/styles"),
7
+ "@": path.resolve("./src/libraries/react"),
8
+ "@sdk": path.resolve("./src/sdk"),
9
+ "@styles": path.resolve("./src/styles"),
10
10
  };
11
11
 
12
12
  const reactConfigs: Options[] = [
13
- // Backend
14
- {
15
- entry: ["src/libraries/backend/**/*.{ts,tsx}"],
16
- format: ["cjs", "esm"],
17
- dts: true,
18
- clean: false, // Don't clean on subsequent builds
19
- outDir: "./dist/libraries/backend",
20
- external: ["react", "react/jsx-runtime", "react-dom"],
21
- bundle: true,
22
- skipNodeModulesBundle: true,
23
- esbuildOptions(options) {
24
- options.plugins = options.plugins || [];
25
- options.plugins.push(alias(pathAliases));
26
- options.define = {
27
- ...options.define,
28
- };
29
- },
30
- },
13
+ // Backend
14
+ {
15
+ entry: ["src/libraries/backend/**/*.{ts,tsx}"],
16
+ format: ["cjs", "esm"],
17
+ dts: true,
18
+ clean: false, // Don't clean on subsequent builds
19
+ outDir: "./dist/libraries/backend",
20
+ external: [
21
+ "react",
22
+ "react/jsx-runtime",
23
+ "react-dom",
24
+ "better-auth",
25
+ "better-call",
26
+ "jotai",
27
+ ],
28
+ bundle: true,
29
+ skipNodeModulesBundle: true,
30
+ esbuildOptions(options) {
31
+ options.plugins = options.plugins || [];
32
+ options.plugins.push(alias(pathAliases));
33
+ options.define = {
34
+ ...options.define,
35
+ };
36
+ },
37
+ },
31
38
 
32
- // React - Index file with CSS import (CommonJS)
33
- {
34
- entry: ["src/libraries/react/index.ts"],
35
- format: ["cjs", "esm"],
36
- dts: true,
37
- clean: false,
38
- outDir: "./dist/libraries/react",
39
- external: ["react", "react/jsx-runtime", "react-dom"],
40
- bundle: true,
41
- banner: {
42
- js: '"use client";',
43
- },
44
- injectStyle: true,
45
- esbuildOptions(options) {
46
- options.plugins = options.plugins || [];
47
- options.plugins.push(alias(pathAliases));
48
- options.define = {
49
- ...options.define,
50
- __dirname: "import.meta.dirname",
51
- __filename: "import.meta.filename",
52
- };
53
- },
54
- },
39
+ // React - Index file with CSS import (CommonJS)
40
+ {
41
+ entry: ["src/libraries/react/index.ts"],
42
+ format: ["cjs", "esm"],
43
+ dts: true,
44
+ clean: false,
45
+ outDir: "./dist/libraries/react",
46
+ external: ["react", "react/jsx-runtime", "react-dom"],
47
+ bundle: true,
48
+ banner: {
49
+ js: '"use client";',
50
+ },
51
+ injectStyle: true,
52
+ esbuildOptions(options) {
53
+ options.plugins = options.plugins || [];
54
+ options.plugins.push(alias(pathAliases));
55
+ options.define = {
56
+ ...options.define,
57
+ __dirname: "import.meta.dirname",
58
+ __filename: "import.meta.filename",
59
+ };
60
+ },
61
+ },
55
62
 
56
- // React - Other files without CSS import
57
- {
58
- entry: [
59
- "src/libraries/react/**/*.{ts,tsx}",
60
- "!src/libraries/react/index.ts",
61
- ],
62
- format: ["cjs", "esm"],
63
- dts: true,
64
- clean: false,
65
- outDir: "./dist/libraries/react",
66
- external: ["react", "react/jsx-runtime", "react-dom"],
67
- bundle: true,
68
- banner: {
69
- js: '"use client";\n',
70
- },
71
- esbuildOptions(options) {
72
- options.plugins = options.plugins || [];
73
- options.plugins.push(alias(pathAliases));
74
- options.define = {
75
- ...options.define,
76
- __dirname: "import.meta.dirname",
77
- __filename: "import.meta.filename",
78
- };
79
- },
80
- },
63
+ // React - Other files without CSS import
64
+ {
65
+ entry: [
66
+ "src/libraries/react/**/*.{ts,tsx}",
67
+ "!src/libraries/react/index.ts",
68
+ ],
69
+ format: ["cjs", "esm"],
70
+ dts: true,
71
+ clean: false,
72
+ outDir: "./dist/libraries/react",
73
+ external: ["react", "react/jsx-runtime", "react-dom"],
74
+ bundle: true,
75
+ banner: {
76
+ js: '"use client";\n',
77
+ },
78
+ esbuildOptions(options) {
79
+ options.plugins = options.plugins || [];
80
+ options.plugins.push(alias(pathAliases));
81
+ options.define = {
82
+ ...options.define,
83
+ __dirname: "import.meta.dirname",
84
+ __filename: "import.meta.filename",
85
+ };
86
+ },
87
+ },
81
88
  ];
82
89
 
83
90
  export default defineConfig([
84
- {
85
- format: ["cjs", "esm"],
86
- entry: ["./src/sdk/index.ts"],
87
- skipNodeModulesBundle: true,
88
- dts: true,
89
- shims: true,
90
- clean: false,
91
- outDir: "./dist/sdk",
91
+ {
92
+ format: ["cjs", "esm"],
93
+ entry: ["./src/sdk/index.ts"],
94
+ skipNodeModulesBundle: true,
95
+ dts: true,
96
+ shims: true,
97
+ clean: false,
98
+ outDir: "./dist/sdk",
92
99
 
93
- treeshake: true,
94
- target: "es2020",
100
+ treeshake: true,
101
+ target: "es2020",
95
102
 
96
- esbuildOptions(options) {
97
- options.plugins = options.plugins || [];
98
- options.plugins.push(alias(pathAliases));
99
- options.define = {
100
- ...options.define,
101
- __dirname: "import.meta.dirname",
102
- __filename: "import.meta.filename",
103
- };
104
- },
105
- },
103
+ esbuildOptions(options) {
104
+ options.plugins = options.plugins || [];
105
+ options.plugins.push(alias(pathAliases));
106
+ options.define = {
107
+ ...options.define,
108
+ __dirname: "import.meta.dirname",
109
+ __filename: "import.meta.filename",
110
+ };
111
+ },
112
+ },
106
113
 
107
- // GLOBAL
108
- {
109
- entry: ["src/utils/*.{ts,tsx}"],
110
- format: ["cjs", "esm"],
111
- dts: true,
112
- clean: true,
113
- bundle: true,
114
- outDir: "./dist/utils", // Fixed wildcard path to specific directory
115
- external: ["react", "react/jsx-runtime", "react-dom"],
116
- esbuildOptions(options) {
117
- options.plugins = options.plugins || [];
118
- options.plugins.push(alias(pathAliases));
119
- options.define = {
120
- ...options.define,
121
- __dirname: "import.meta.dirname",
122
- __filename: "import.meta.filename",
123
- };
124
- },
125
- },
114
+ // GLOBAL
115
+ {
116
+ entry: ["src/utils/*.{ts,tsx}"],
117
+ format: ["cjs", "esm"],
118
+ dts: true,
119
+ clean: true,
120
+ bundle: true,
121
+ outDir: "./dist/utils", // Fixed wildcard path to specific directory
122
+ external: ["react", "react/jsx-runtime", "react-dom"],
123
+ esbuildOptions(options) {
124
+ options.plugins = options.plugins || [];
125
+ options.plugins.push(alias(pathAliases));
126
+ options.define = {
127
+ ...options.define,
128
+ __dirname: "import.meta.dirname",
129
+ __filename: "import.meta.filename",
130
+ };
131
+ },
132
+ },
126
133
 
127
- // SDK
128
- {
129
- entry: ["src/next/*.{ts,tsx}"],
130
- format: ["cjs", "esm"],
131
- dts: true,
132
- clean: false, // Don't clean on subsequent builds
133
- outDir: "./dist/next",
134
- external: ["react", "react/jsx-runtime", "react-dom"],
135
- bundle: false,
136
- esbuildOptions(options) {
137
- options.plugins = options.plugins || [];
138
- options.plugins.push(alias(pathAliases));
139
- options.define = {
140
- ...options.define,
141
- __dirname: "import.meta.dirname",
142
- __filename: "import.meta.filename",
143
- };
144
- },
145
- },
146
- ...reactConfigs,
134
+ // SDK
135
+ {
136
+ entry: ["src/next/*.{ts,tsx}"],
137
+ format: ["cjs", "esm"],
138
+ dts: true,
139
+ clean: false, // Don't clean on subsequent builds
140
+ outDir: "./dist/next",
141
+ external: ["react", "react/jsx-runtime", "react-dom"],
142
+ bundle: false,
143
+ esbuildOptions(options) {
144
+ options.plugins = options.plugins || [];
145
+ options.plugins.push(alias(pathAliases));
146
+ options.define = {
147
+ ...options.define,
148
+ __dirname: "import.meta.dirname",
149
+ __filename: "import.meta.filename",
150
+ };
151
+ },
152
+ },
153
+ ...reactConfigs,
147
154
 
148
- // React client components
149
- {
150
- entry: ["src/next/client/**/*.ts", "src/next/client/**/*.tsx"],
151
- format: ["cjs", "esm"],
152
- dts: true,
153
- clean: true,
154
- outDir: "./dist/next/client",
155
- external: ["react", "react/jsx-runtime", "react-dom"],
156
- bundle: false,
157
- banner: {
158
- js: '"use client";\n',
159
- },
160
- esbuildOptions(options) {
161
- options.plugins = options.plugins || [];
162
- options.plugins.push(alias(pathAliases));
163
- options.platform = "browser";
164
- options.format = "esm";
165
- },
166
- },
155
+ // React client components
156
+ {
157
+ entry: ["src/next/client/**/*.ts", "src/next/client/**/*.tsx"],
158
+ format: ["cjs", "esm"],
159
+ dts: true,
160
+ clean: true,
161
+ outDir: "./dist/next/client",
162
+ external: ["react", "react/jsx-runtime", "react-dom"],
163
+ bundle: false,
164
+ banner: {
165
+ js: '"use client";\n',
166
+ },
167
+ esbuildOptions(options) {
168
+ options.plugins = options.plugins || [];
169
+ options.plugins.push(alias(pathAliases));
170
+ options.platform = "browser";
171
+ options.format = "esm";
172
+ },
173
+ },
167
174
 
168
- // Styles - Properly process CSS with PostCSS and Tailwind
169
- {
170
- entry: ["src/styles/global.css"],
171
- format: ["esm", "cjs"],
172
- outDir: "./dist/styles",
173
- clean: false,
174
- bundle: true,
175
- },
175
+ // Styles - Properly process CSS with PostCSS and Tailwind
176
+ {
177
+ entry: ["src/styles/global.css"],
178
+ format: ["esm", "cjs"],
179
+ outDir: "./dist/styles",
180
+ clean: false,
181
+ bundle: true,
182
+ },
176
183
 
177
- // React server components
178
- {
179
- entry: ["src/next/server/**/*.{ts,tsx}"],
180
- format: ["cjs", "esm"],
181
- dts: true,
182
- clean: true,
183
- outDir: "./dist/next/server",
184
- external: [
185
- "react",
186
- "react/jsx-runtime",
187
- "react-dom",
188
- "@clerk/backend",
189
- "better-auth",
190
- "@supabase/ssr",
191
- ],
192
- bundle: false,
193
- banner: {
194
- js: '"use server";',
195
- },
196
- esbuildOptions(options) {
197
- options.plugins = options.plugins || [];
198
- options.plugins.push(alias(pathAliases));
199
- options.banner = {
200
- js: '"use server";',
201
- };
202
- options.platform = "node";
203
- options.format = "esm";
204
- },
205
- },
184
+ // React server components
185
+ {
186
+ entry: ["src/next/server/**/*.{ts,tsx}"],
187
+ format: ["cjs", "esm"],
188
+ dts: true,
189
+ clean: true,
190
+ outDir: "./dist/next/server",
191
+ external: [
192
+ "react",
193
+ "react/jsx-runtime",
194
+ "react-dom",
195
+ "@clerk/backend",
196
+ "better-auth",
197
+ "@supabase/ssr",
198
+ ],
199
+ bundle: false,
200
+ banner: {
201
+ js: '"use server";',
202
+ },
203
+ esbuildOptions(options) {
204
+ options.plugins = options.plugins || [];
205
+ options.plugins.push(alias(pathAliases));
206
+ options.banner = {
207
+ js: '"use server";',
208
+ };
209
+ options.platform = "node";
210
+ options.format = "esm";
211
+ },
212
+ },
206
213
  ]);
@@ -1,13 +1,5 @@
1
1
  "use client";
2
2
 
3
- import {
4
- createCustomerMethod
5
- } from "./chunk-WFFVOEUG.mjs";
6
- import {
7
- createEntityMethod,
8
- deleteEntityMethod,
9
- getEntityMethod
10
- } from "./chunk-OYBOLAL5.mjs";
11
3
  import {
12
4
  attachMethod,
13
5
  cancelMethod,
@@ -35,6 +27,14 @@ import {
35
27
  AutumnError,
36
28
  toContainerResult
37
29
  } from "./chunk-SFOIZTAS.mjs";
30
+ import {
31
+ createCustomerMethod
32
+ } from "./chunk-WFFVOEUG.mjs";
33
+ import {
34
+ createEntityMethod,
35
+ deleteEntityMethod,
36
+ getEntityMethod
37
+ } from "./chunk-OYBOLAL5.mjs";
38
38
 
39
39
  // src/libraries/react/client/ReactAutumnClient.tsx
40
40
  var AutumnClient = class {