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.
- package/dist/libraries/backend/better-auth.d.mts +2 -1
- package/dist/libraries/backend/better-auth.d.ts +2 -1
- package/dist/libraries/react/AutumnContext.mjs +4 -4
- package/dist/libraries/react/BaseAutumnProvider.mjs +6 -6
- package/dist/libraries/react/ReactAutumnProvider.mjs +7 -7
- package/dist/libraries/react/{chunk-MHAXHLX4.mjs → chunk-2LS46JI3.mjs} +7 -7
- package/dist/libraries/react/{chunk-HSSN3DVD.mjs → chunk-35JJUJGK.mjs} +1 -1
- package/dist/libraries/react/{chunk-EUDPGYST.mjs → chunk-3VPXKYJ3.mjs} +3 -3
- package/dist/libraries/react/{chunk-2LZIBRD4.mjs → chunk-5RG2M33M.mjs} +4 -4
- package/dist/libraries/react/{chunk-4KLTPVNG.mjs → chunk-5SVQ3PPG.mjs} +6 -6
- package/dist/libraries/react/{chunk-P2R2JPDF.mjs → chunk-7K7ME43L.mjs} +1 -1
- package/dist/libraries/react/{chunk-2GEDBGON.mjs → chunk-7NRUXGKJ.mjs} +12 -12
- package/dist/libraries/react/{chunk-QX2NP5QY.mjs → chunk-BFQ772QL.mjs} +452 -449
- package/dist/libraries/react/{chunk-WRKSH6S6.mjs → chunk-DIDEEVJB.mjs} +2 -2
- package/dist/libraries/react/{chunk-74O4DLZY.mjs → chunk-DTAJR247.mjs} +1 -1
- package/dist/libraries/react/{chunk-733BYSMJ.mjs → chunk-HEKBPI6U.mjs} +2 -2
- package/dist/libraries/react/{chunk-YSD4K25G.mjs → chunk-IZEOJCTN.mjs} +1 -1
- package/dist/libraries/react/{chunk-4QVAJKUF.mjs → chunk-KAQC7WDQ.mjs} +5 -5
- package/dist/libraries/react/{chunk-J4VVJBJY.mjs → chunk-P2SWE4OD.mjs} +1 -1
- package/dist/libraries/react/{chunk-QEWVBDWJ.mjs → chunk-Q7N6ARDI.mjs} +1 -1
- package/dist/libraries/react/{chunk-I274Z7T2.mjs → chunk-SFI5BHCB.mjs} +11 -11
- package/dist/libraries/react/{chunk-WL6GWGY5.mjs → chunk-XHXYZVYG.mjs} +1 -1
- package/dist/libraries/react/{chunk-5TLRC3ED.mjs → chunk-Z5BMY5OQ.mjs} +18 -18
- package/dist/libraries/react/{chunk-NZC2FJEG.mjs → chunk-ZQPCEJFK.mjs} +1 -1
- package/dist/libraries/react/client/ReactAutumnClient.mjs +3 -3
- package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.css +6 -67
- package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.d.mts +1 -1
- package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.d.ts +1 -1
- package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.js +4908 -4905
- package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.mjs +25 -25
- package/dist/libraries/react/components/paywall-dialog/paywall-dialog-synced.css +6 -67
- package/dist/libraries/react/components/paywall-dialog/paywall-dialog-synced.js +114 -114
- package/dist/libraries/react/components/paywall-dialog/paywall-dialog-synced.mjs +25 -25
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.css +6 -67
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.js +564 -561
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.mjs +25 -25
- package/dist/libraries/react/components/ui/accordion.js +8 -8
- package/dist/libraries/react/components/ui/accordion.mjs +3 -3
- package/dist/libraries/react/components/ui/dialog.js +9 -9
- package/dist/libraries/react/components/ui/dialog.mjs +4 -4
- package/dist/libraries/react/components/ui/popover.js +12 -12
- package/dist/libraries/react/components/ui/popover.mjs +5 -5
- package/dist/libraries/react/components/ui/switch.js +4 -4
- package/dist/libraries/react/components/ui/switch.mjs +3 -3
- package/dist/libraries/react/hooks/useAnalytics.mjs +5 -5
- package/dist/libraries/react/hooks/useCustomer.mjs +6 -6
- package/dist/libraries/react/hooks/useCustomerBase.mjs +5 -5
- package/dist/libraries/react/hooks/useEntity.mjs +6 -6
- package/dist/libraries/react/hooks/useEntityBase.mjs +5 -5
- package/dist/libraries/react/hooks/usePaywall.mjs +5 -5
- package/dist/libraries/react/hooks/usePricingTable.mjs +5 -5
- package/dist/libraries/react/index.js +565 -562
- package/dist/libraries/react/index.mjs +565 -562
- package/dist/styles/global.css +6 -67
- package/package.json +1 -1
- package/tsup.config.ts +193 -186
- package/dist/libraries/react/{chunk-VKSWZMFC.mjs → chunk-TLAWG4JC.mjs} +8 -8
package/dist/styles/global.css
CHANGED
|
@@ -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
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
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
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
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
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
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
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
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
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
|
-
|
|
94
|
-
|
|
100
|
+
treeshake: true,
|
|
101
|
+
target: "es2020",
|
|
95
102
|
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
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
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
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
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
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
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
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
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
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
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
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 {
|