autumn-js 0.0.74 → 0.0.77-beta.1
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/react/AutumnContext.mjs +4 -4
- package/dist/libraries/react/BaseAutumnProvider.css +1267 -0
- package/dist/libraries/react/BaseAutumnProvider.js +1 -1
- package/dist/libraries/react/BaseAutumnProvider.mjs +9 -9
- package/dist/libraries/react/ReactAutumnProvider.css +1267 -0
- package/dist/libraries/react/ReactAutumnProvider.js +1 -1
- package/dist/libraries/react/ReactAutumnProvider.mjs +9 -9
- package/dist/libraries/react/{chunk-MF3MHICX.mjs → chunk-455VJ2NN.mjs} +49 -44
- package/dist/libraries/react/{chunk-6N2SUOJ6.mjs → chunk-UMZA5GHL.mjs} +1 -1
- package/dist/libraries/react/{chunk-PFTFPWFN.mjs → chunk-WI6WFW54.mjs} +1 -1
- package/dist/libraries/react/{chunk-D3H6GCJ4.mjs → chunk-XXMAVKQ4.mjs} +2 -2
- package/dist/libraries/react/client/ReactAutumnClient.mjs +3 -3
- package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.css +1267 -0
- package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.js +1 -1
- package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.mjs +9 -9
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.css +1267 -0
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.js +37 -32
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.mjs +9 -9
- package/dist/libraries/react/hooks/useAutumn.css +1267 -0
- package/dist/libraries/react/hooks/useAutumn.js +1 -1
- package/dist/libraries/react/hooks/useAutumn.mjs +9 -9
- package/dist/libraries/react/hooks/useAutumnBase.css +1267 -0
- package/dist/libraries/react/hooks/useAutumnBase.js +1 -1
- package/dist/libraries/react/hooks/useAutumnBase.mjs +9 -9
- package/dist/libraries/react/hooks/useCustomer.css +1267 -0
- package/dist/libraries/react/hooks/useCustomer.js +1 -1
- package/dist/libraries/react/hooks/useCustomer.mjs +9 -9
- package/dist/libraries/react/hooks/useCustomerBase.css +1267 -0
- package/dist/libraries/react/hooks/useCustomerBase.js +1 -1
- package/dist/libraries/react/hooks/useCustomerBase.mjs +9 -9
- package/dist/libraries/react/hooks/useEntity.css +1267 -0
- package/dist/libraries/react/hooks/useEntity.js +1 -1
- package/dist/libraries/react/hooks/useEntity.mjs +9 -9
- package/dist/libraries/react/hooks/useEntityBase.css +1267 -0
- package/dist/libraries/react/hooks/useEntityBase.js +1 -1
- package/dist/libraries/react/hooks/useEntityBase.mjs +9 -9
- package/dist/libraries/react/hooks/usePricingTable.mjs +6 -6
- package/dist/libraries/react/hooks/usePricingTableBase.mjs +5 -5
- package/dist/libraries/react/hooks/useProductsBase.mjs +4 -4
- package/dist/libraries/react/index.js +62 -33
- package/dist/libraries/react/index.mjs +62 -33
- package/dist/libraries/react/utils/inject-css.d.mts +3 -0
- package/dist/libraries/react/utils/inject-css.d.ts +3 -0
- package/dist/libraries/react/utils/inject-css.js +1275 -0
- package/dist/libraries/react/utils/inject-css.mjs +1249 -0
- package/dist/styles/global.css +59 -33
- package/package.json +6 -4
- package/postcss.config.js +19 -1
- package/scripts/post-build.js +25 -0
- package/tsup.config.ts +6 -2
- package/tsup.dev.config.ts +7 -2
- package/dist/libraries/react/{chunk-TLRISML2.mjs → chunk-4CRZJJPY.mjs} +7 -7
package/dist/styles/global.css
CHANGED
|
@@ -28,6 +28,8 @@
|
|
|
28
28
|
font-feature-settings: normal;
|
|
29
29
|
font-variation-settings: normal;
|
|
30
30
|
-webkit-tap-highlight-color: transparent;
|
|
31
|
+
}
|
|
32
|
+
.au-root {
|
|
31
33
|
margin: 0;
|
|
32
34
|
line-height: inherit;
|
|
33
35
|
}
|
|
@@ -189,11 +191,6 @@ textarea:where(.au-root, .au-root *) {
|
|
|
189
191
|
opacity: 1;
|
|
190
192
|
color: #9ca3af;
|
|
191
193
|
}
|
|
192
|
-
:where(.au-root, .au-root *) input::-moz-placeholder,
|
|
193
|
-
:where(.au-root, .au-root *) textarea::-moz-placeholder {
|
|
194
|
-
opacity: 1;
|
|
195
|
-
color: #9ca3af;
|
|
196
|
-
}
|
|
197
194
|
:where(.au-root, .au-root *) input::placeholder,
|
|
198
195
|
:where(.au-root, .au-root *) textarea::placeholder {
|
|
199
196
|
opacity: 1;
|
|
@@ -427,6 +424,10 @@ video:where(.au-root, .au-root *) {
|
|
|
427
424
|
.au-grid {
|
|
428
425
|
display: grid;
|
|
429
426
|
}
|
|
427
|
+
.au-size-4 {
|
|
428
|
+
width: 1rem;
|
|
429
|
+
height: 1rem;
|
|
430
|
+
}
|
|
430
431
|
.\!au-h-3 {
|
|
431
432
|
height: 0.75rem !important;
|
|
432
433
|
}
|
|
@@ -445,6 +446,9 @@ video:where(.au-root, .au-root *) {
|
|
|
445
446
|
.au-h-6 {
|
|
446
447
|
height: 1.5rem;
|
|
447
448
|
}
|
|
449
|
+
.au-h-7 {
|
|
450
|
+
height: 1.75rem;
|
|
451
|
+
}
|
|
448
452
|
.au-h-8 {
|
|
449
453
|
height: 2rem;
|
|
450
454
|
}
|
|
@@ -496,10 +500,26 @@ video:where(.au-root, .au-root *) {
|
|
|
496
500
|
.au-flex-grow {
|
|
497
501
|
flex-grow: 1;
|
|
498
502
|
}
|
|
503
|
+
.au--translate-y-12 {
|
|
504
|
+
--tw-translate-y: -3rem;
|
|
505
|
+
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));
|
|
506
|
+
}
|
|
507
|
+
.au--translate-y-6 {
|
|
508
|
+
--tw-translate-y: -1.5rem;
|
|
509
|
+
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));
|
|
510
|
+
}
|
|
499
511
|
.au-translate-x-\[-50\%\] {
|
|
500
512
|
--tw-translate-x: -50%;
|
|
501
513
|
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));
|
|
502
514
|
}
|
|
515
|
+
.au-translate-y-0 {
|
|
516
|
+
--tw-translate-y: 0px;
|
|
517
|
+
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));
|
|
518
|
+
}
|
|
519
|
+
.au-translate-y-6 {
|
|
520
|
+
--tw-translate-y: 1.5rem;
|
|
521
|
+
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));
|
|
522
|
+
}
|
|
503
523
|
.au-translate-y-\[-50\%\] {
|
|
504
524
|
--tw-translate-y: -50%;
|
|
505
525
|
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));
|
|
@@ -522,6 +542,9 @@ video:where(.au-root, .au-root *) {
|
|
|
522
542
|
.au-grid-cols-1 {
|
|
523
543
|
grid-template-columns: repeat(1, minmax(0, 1fr));
|
|
524
544
|
}
|
|
545
|
+
.au-grid-cols-2 {
|
|
546
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
547
|
+
}
|
|
525
548
|
.au-flex-row {
|
|
526
549
|
flex-direction: row;
|
|
527
550
|
}
|
|
@@ -537,6 +560,9 @@ video:where(.au-root, .au-root *) {
|
|
|
537
560
|
.au-items-center {
|
|
538
561
|
align-items: center;
|
|
539
562
|
}
|
|
563
|
+
.au-justify-end {
|
|
564
|
+
justify-content: flex-end;
|
|
565
|
+
}
|
|
540
566
|
.au-justify-center {
|
|
541
567
|
justify-content: center;
|
|
542
568
|
}
|
|
@@ -627,6 +653,10 @@ video:where(.au-root, .au-root *) {
|
|
|
627
653
|
.au-bg-background {
|
|
628
654
|
background-color: hsl(var(--au-background));
|
|
629
655
|
}
|
|
656
|
+
.au-bg-black {
|
|
657
|
+
--tw-bg-opacity: 1;
|
|
658
|
+
background-color: rgb(0 0 0 / var(--tw-bg-opacity));
|
|
659
|
+
}
|
|
630
660
|
.au-bg-black\/80 {
|
|
631
661
|
background-color: rgb(0 0 0 / 0.8);
|
|
632
662
|
}
|
|
@@ -648,6 +678,10 @@ video:where(.au-root, .au-root *) {
|
|
|
648
678
|
.au-p-6 {
|
|
649
679
|
padding: 1.5rem;
|
|
650
680
|
}
|
|
681
|
+
.\!au-py-10 {
|
|
682
|
+
padding-top: 2.5rem !important;
|
|
683
|
+
padding-bottom: 2.5rem !important;
|
|
684
|
+
}
|
|
651
685
|
.au-px-3 {
|
|
652
686
|
padding-left: 0.75rem;
|
|
653
687
|
padding-right: 0.75rem;
|
|
@@ -664,6 +698,10 @@ video:where(.au-root, .au-root *) {
|
|
|
664
698
|
padding-left: 2rem;
|
|
665
699
|
padding-right: 2rem;
|
|
666
700
|
}
|
|
701
|
+
.au-py-0 {
|
|
702
|
+
padding-top: 0px;
|
|
703
|
+
padding-bottom: 0px;
|
|
704
|
+
}
|
|
667
705
|
.au-py-2 {
|
|
668
706
|
padding-top: 0.5rem;
|
|
669
707
|
padding-bottom: 0.5rem;
|
|
@@ -694,6 +732,9 @@ video:where(.au-root, .au-root *) {
|
|
|
694
732
|
.au-pt-4 {
|
|
695
733
|
padding-top: 1rem;
|
|
696
734
|
}
|
|
735
|
+
.au-text-left {
|
|
736
|
+
text-align: left;
|
|
737
|
+
}
|
|
697
738
|
.au-text-center {
|
|
698
739
|
text-align: center;
|
|
699
740
|
}
|
|
@@ -799,6 +840,10 @@ video:where(.au-root, .au-root *) {
|
|
|
799
840
|
--tw-shadow-color: #a8a29e;
|
|
800
841
|
--tw-shadow: var(--tw-shadow-colored);
|
|
801
842
|
}
|
|
843
|
+
.au-shadow-zinc-800 {
|
|
844
|
+
--tw-shadow-color: #27272a;
|
|
845
|
+
--tw-shadow: var(--tw-shadow-colored);
|
|
846
|
+
}
|
|
802
847
|
.au-ring-0 {
|
|
803
848
|
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
804
849
|
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
@@ -823,18 +868,6 @@ video:where(.au-root, .au-root *) {
|
|
|
823
868
|
transform,
|
|
824
869
|
filter,
|
|
825
870
|
-webkit-backdrop-filter;
|
|
826
|
-
transition-property:
|
|
827
|
-
color,
|
|
828
|
-
background-color,
|
|
829
|
-
border-color,
|
|
830
|
-
text-decoration-color,
|
|
831
|
-
fill,
|
|
832
|
-
stroke,
|
|
833
|
-
opacity,
|
|
834
|
-
box-shadow,
|
|
835
|
-
transform,
|
|
836
|
-
filter,
|
|
837
|
-
-webkit-backdrop-filter;
|
|
838
871
|
transition-property:
|
|
839
872
|
color,
|
|
840
873
|
background-color,
|
|
@@ -860,19 +893,6 @@ video:where(.au-root, .au-root *) {
|
|
|
860
893
|
filter,
|
|
861
894
|
backdrop-filter,
|
|
862
895
|
-webkit-backdrop-filter;
|
|
863
|
-
transition-property:
|
|
864
|
-
color,
|
|
865
|
-
background-color,
|
|
866
|
-
border-color,
|
|
867
|
-
text-decoration-color,
|
|
868
|
-
fill,
|
|
869
|
-
stroke,
|
|
870
|
-
opacity,
|
|
871
|
-
box-shadow,
|
|
872
|
-
transform,
|
|
873
|
-
filter,
|
|
874
|
-
backdrop-filter,
|
|
875
|
-
-webkit-backdrop-filter;
|
|
876
896
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
877
897
|
transition-duration: 150ms;
|
|
878
898
|
}
|
|
@@ -920,6 +940,12 @@ video:where(.au-root, .au-root *) {
|
|
|
920
940
|
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));
|
|
921
941
|
}
|
|
922
942
|
}
|
|
943
|
+
.au-slide-in-from-left-1 {
|
|
944
|
+
--tw-enter-translate-x: -0.25rem;
|
|
945
|
+
}
|
|
946
|
+
.au-slide-out-to-left-1 {
|
|
947
|
+
--tw-exit-translate-x: -0.25rem;
|
|
948
|
+
}
|
|
923
949
|
.au-duration-200 {
|
|
924
950
|
animation-duration: 200ms;
|
|
925
951
|
}
|
|
@@ -1017,7 +1043,7 @@ video:where(.au-root, .au-root *) {
|
|
|
1017
1043
|
opacity: 1;
|
|
1018
1044
|
}
|
|
1019
1045
|
.hover\:au-brightness-90:hover {
|
|
1020
|
-
--tw-brightness: brightness(
|
|
1046
|
+
--tw-brightness: brightness(.9);
|
|
1021
1047
|
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
|
|
1022
1048
|
}
|
|
1023
1049
|
.focus\:au-outline-none:focus {
|
|
@@ -1129,10 +1155,10 @@ video:where(.au-root, .au-root *) {
|
|
|
1129
1155
|
--tw-enter-opacity: 0;
|
|
1130
1156
|
}
|
|
1131
1157
|
.data-\[state\=closed\]\:au-zoom-out-95[data-state=closed] {
|
|
1132
|
-
--tw-exit-scale:
|
|
1158
|
+
--tw-exit-scale: .95;
|
|
1133
1159
|
}
|
|
1134
1160
|
.data-\[state\=open\]\:au-zoom-in-95[data-state=open] {
|
|
1135
|
-
--tw-enter-scale:
|
|
1161
|
+
--tw-enter-scale: .95;
|
|
1136
1162
|
}
|
|
1137
1163
|
.data-\[state\=closed\]\:au-slide-out-to-left-1\/2[data-state=closed] {
|
|
1138
1164
|
--tw-exit-translate-x: -50%;
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "autumn-js",
|
|
3
3
|
"description": "Autumn JS Library",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.77-beta.1",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"cli": "tsx src/cli/index.ts",
|
|
8
8
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
9
|
-
"publish-beta": "
|
|
10
|
-
"build": "rm -rf dist && tsup",
|
|
9
|
+
"publish-beta": "pnpm publish --tag beta",
|
|
10
|
+
"build": "rm -rf dist && tsup && node scripts/post-build.js",
|
|
11
11
|
"dev-old": "tsx scripts/sync-registry.ts sync && (tsx scripts/sync-registry.ts watch & nodemon --watch src --ext ts,tsx,css --exec \"tsup --config tsup.dev.config.ts\")",
|
|
12
|
-
"dev": "(tsx scripts/sync-registry.ts watch & nodemon --watch src --ext ts,tsx,css --exec \"tsup --config tsup.dev.config.ts\")",
|
|
12
|
+
"dev": "(tsx scripts/sync-registry.ts watch & nodemon --watch src --ext ts,tsx,css --exec \"tsup --config tsup.dev.config.ts && node scripts/post-build.js\")",
|
|
13
13
|
"sync-registry": "tsx scripts/sync-registry.ts sync",
|
|
14
14
|
"watch-registry": "tsx scripts/sync-registry.ts watch"
|
|
15
15
|
},
|
|
@@ -85,6 +85,7 @@
|
|
|
85
85
|
"clsx": "^2.1.1",
|
|
86
86
|
"esbuild-plugin-alias": "^0.2.1",
|
|
87
87
|
"esbuild-plugin-path-alias": "^1.0.7",
|
|
88
|
+
"esbuild-postcss": "^0.0.4",
|
|
88
89
|
"express": "^5.1.0",
|
|
89
90
|
"fastify": "^5.3.3",
|
|
90
91
|
"hono": "^4.7.9",
|
|
@@ -94,6 +95,7 @@
|
|
|
94
95
|
"nodemon": "^3.1.10",
|
|
95
96
|
"postcss": "^8.5.6",
|
|
96
97
|
"postcss-nested": "^7.0.2",
|
|
98
|
+
"postcss-prefix-selector": "^2.1.1",
|
|
97
99
|
"tailwind-merge": "^2.6.0",
|
|
98
100
|
"tailwindcss": "^3.4.1",
|
|
99
101
|
"tailwindcss-animate": "^1.0.7",
|
package/postcss.config.js
CHANGED
|
@@ -2,6 +2,24 @@ module.exports = {
|
|
|
2
2
|
plugins: {
|
|
3
3
|
tailwindcss: {},
|
|
4
4
|
autoprefixer: {},
|
|
5
|
-
|
|
5
|
+
"postcss-nested": {},
|
|
6
|
+
// 'postcss-prefix-selector': {
|
|
7
|
+
// prefix: '.au-root',
|
|
8
|
+
// transform: function (prefix, selector, prefixedSelector) {
|
|
9
|
+
// if (selector.match(/^(html|body)/)) {
|
|
10
|
+
// return selector.replace(/^([^\s]*)/, `$1 ${prefix}`);
|
|
11
|
+
// }
|
|
12
|
+
|
|
13
|
+
// if (selector.match(/^(::?[\w-]+)/)) {
|
|
14
|
+
// return `${prefix}${selector}`;
|
|
15
|
+
// }
|
|
16
|
+
|
|
17
|
+
// if (selector.includes('*')) {
|
|
18
|
+
// return prefixedSelector;
|
|
19
|
+
// }
|
|
20
|
+
|
|
21
|
+
// return prefixedSelector;
|
|
22
|
+
// },
|
|
23
|
+
// },
|
|
6
24
|
}
|
|
7
25
|
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
const fs = require('fs');
|
|
2
|
+
const path = require('path');
|
|
3
|
+
|
|
4
|
+
// Post-build processing: replace CSS selectors with .au-root prefix
|
|
5
|
+
function processCssFiles() {
|
|
6
|
+
const cssFilePath = path.join(__dirname, '../dist/styles/global.css');
|
|
7
|
+
|
|
8
|
+
if (fs.existsSync(cssFilePath)) {
|
|
9
|
+
console.log('📄 Processing CSS file:', cssFilePath);
|
|
10
|
+
|
|
11
|
+
const builtCss = fs.readFileSync(cssFilePath, 'utf8');
|
|
12
|
+
const updatedCss = builtCss.replace(
|
|
13
|
+
/(\*,\n::before,\n::after)/g,
|
|
14
|
+
'.au-root *,\n.au-root ::before,\n.au-root ::after'
|
|
15
|
+
);
|
|
16
|
+
|
|
17
|
+
fs.writeFileSync(cssFilePath, updatedCss);
|
|
18
|
+
console.log('✅ CSS selectors updated with .au-root prefix');
|
|
19
|
+
} else {
|
|
20
|
+
console.log('⚠️ CSS file not found:', cssFilePath);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
// Run the processing
|
|
25
|
+
processCssFiles();
|
package/tsup.config.ts
CHANGED
|
@@ -36,8 +36,10 @@ const reactConfigs: Options[] = [
|
|
|
36
36
|
external: ["react", "react/jsx-runtime", "react-dom"],
|
|
37
37
|
bundle: true,
|
|
38
38
|
banner: {
|
|
39
|
-
js: '"use client";\nrequire("../../styles/global.css");',
|
|
39
|
+
// js: '"use client";\nrequire("../../styles/global.css");',
|
|
40
|
+
js: '"use client";',
|
|
40
41
|
},
|
|
42
|
+
injectStyle: true,
|
|
41
43
|
esbuildOptions(options) {
|
|
42
44
|
options.plugins = options.plugins || [];
|
|
43
45
|
options.plugins.push(alias(pathAliases));
|
|
@@ -54,8 +56,10 @@ const reactConfigs: Options[] = [
|
|
|
54
56
|
external: ["react", "react/jsx-runtime", "react-dom"],
|
|
55
57
|
bundle: true,
|
|
56
58
|
banner: {
|
|
57
|
-
js: '"use client";\nimport "../../styles/global.css";',
|
|
59
|
+
// js: '"use client";\nimport "../../styles/global.css";',
|
|
60
|
+
js: '"use client";',
|
|
58
61
|
},
|
|
62
|
+
injectStyle: true,
|
|
59
63
|
esbuildOptions(options) {
|
|
60
64
|
options.plugins = options.plugins || [];
|
|
61
65
|
options.plugins.push(alias(pathAliases));
|
package/tsup.dev.config.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { defineConfig, Options } from "tsup";
|
|
2
2
|
import * as path from "path";
|
|
3
3
|
import alias from "esbuild-plugin-alias";
|
|
4
|
+
import fs from "fs";
|
|
4
5
|
|
|
5
6
|
// Path aliases that match tsconfig.json
|
|
6
7
|
const pathAliases = {
|
|
@@ -35,8 +36,10 @@ const reactConfigs: Options[] = [
|
|
|
35
36
|
external: ["react", "react/jsx-runtime", "react-dom"],
|
|
36
37
|
bundle: true,
|
|
37
38
|
banner: {
|
|
38
|
-
js: '"use client";\nrequire("../../styles/global.css");',
|
|
39
|
+
// js: '"use client";\nrequire("../../styles/global.css");',
|
|
40
|
+
js: '"use client";',
|
|
39
41
|
},
|
|
42
|
+
injectStyle: true,
|
|
40
43
|
esbuildOptions(options) {
|
|
41
44
|
options.plugins = options.plugins || [];
|
|
42
45
|
options.plugins.push(alias(pathAliases));
|
|
@@ -53,8 +56,10 @@ const reactConfigs: Options[] = [
|
|
|
53
56
|
external: ["react", "react/jsx-runtime", "react-dom"],
|
|
54
57
|
bundle: true,
|
|
55
58
|
banner: {
|
|
56
|
-
js: '"use client";\nimport "../../styles/global.css";',
|
|
59
|
+
// js: '"use client";\nimport "../../styles/global.css";',
|
|
60
|
+
js: '"use client";',
|
|
57
61
|
},
|
|
62
|
+
injectStyle: true,
|
|
58
63
|
esbuildOptions(options) {
|
|
59
64
|
options.plugins = options.plugins || [];
|
|
60
65
|
options.plugins.push(alias(pathAliases));
|
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
AutumnError,
|
|
5
|
-
toContainerResult
|
|
6
|
-
} from "./chunk-EH2VPTFH.mjs";
|
|
7
|
-
import {
|
|
8
|
-
logFetchError
|
|
9
|
-
} from "./chunk-CIBQ4BJU.mjs";
|
|
10
3
|
import {
|
|
11
4
|
listProductsMethod
|
|
12
5
|
} from "./chunk-YUV2Y2RW.mjs";
|
|
@@ -14,6 +7,13 @@ import {
|
|
|
14
7
|
createCode,
|
|
15
8
|
redeemCode
|
|
16
9
|
} from "./chunk-3EYF7OI5.mjs";
|
|
10
|
+
import {
|
|
11
|
+
AutumnError,
|
|
12
|
+
toContainerResult
|
|
13
|
+
} from "./chunk-EH2VPTFH.mjs";
|
|
14
|
+
import {
|
|
15
|
+
logFetchError
|
|
16
|
+
} from "./chunk-CIBQ4BJU.mjs";
|
|
17
17
|
import {
|
|
18
18
|
getPricingTableMethod
|
|
19
19
|
} from "./chunk-NZ5PEXT2.mjs";
|