@coraltravelcenter/b2c-landing-builder 3.0.0 → 3.2.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.
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@coraltravelcenter/b2c-landing-builder",
3
- "version": "3.0.0",
3
+ "version": "3.2.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@coraltravelcenter/b2c-landing-builder",
9
- "version": "3.0.0",
9
+ "version": "3.2.0",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
12
  "@babel/parser": "7.28.6",
@@ -14,7 +14,7 @@
14
14
  "open": "11.0.2",
15
15
  "sharp": "0.35.4",
16
16
  "typograf": "7.7.0",
17
- "vite": "8.2.1",
17
+ "vite": "8.3.5",
18
18
  "vite-plugin-monkey": "8.1.0"
19
19
  },
20
20
  "bin": {
@@ -27,7 +27,8 @@
27
27
  "vue": "3.5.41"
28
28
  },
29
29
  "engines": {
30
- "node": ">=20.19.0"
30
+ "node": ">=24.22.1",
31
+ "npm": ">=11.21.1"
31
32
  }
32
33
  },
33
34
  "node_modules/@babel/helper-string-parser": {
@@ -669,18 +670,34 @@
669
670
  "license": "MIT"
670
671
  },
671
672
  "node_modules/@oxc-project/types": {
672
- "version": "0.143.0",
673
- "resolved": "https://registry.npmjs.org/@oxc-project/types/-/types-0.143.0.tgz",
674
- "integrity": "sha512-u6JZdLBTLotrNC9Vd6vPssINdzcCzleKAH6EJKImQb7GtYvX5keN2dxkoK44stCc4tffE6QQRtZTXVSzsLUlWA==",
673
+ "version": "0.155.0",
674
+ "resolved": "https://registry.npmjs.org/@oxc-project/types/-/types-0.155.0.tgz",
675
+ "integrity": "sha512-SeE8JPwW1xs1tHeNycjUtUBdhorRa8o4jlvjwk49R7/Z291i+4DQa7JJIgOm/TaYQZx+QrPQbVJ/9c8dMIZN8Q==",
675
676
  "license": "MIT",
676
677
  "funding": {
677
- "url": "https://github.com/sponsors/Boshen"
678
+ "url": "https://github.com/sponsors/oxc-project"
679
+ }
680
+ },
681
+ "node_modules/@rolldown/binding-android-arm-eabi": {
682
+ "version": "1.2.15",
683
+ "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm-eabi/-/binding-android-arm-eabi-1.2.15.tgz",
684
+ "integrity": "sha512-aLcgK9gIJ3YRvrrtfSBbRa27F5WrpiTaPulnFpsHPxpUHgFlSgnU4854MHwoRGEBhfRJDWCS2WQ7lIjskE9Olw==",
685
+ "cpu": [
686
+ "arm"
687
+ ],
688
+ "license": "MIT",
689
+ "optional": true,
690
+ "os": [
691
+ "android"
692
+ ],
693
+ "engines": {
694
+ "node": "^20.19.0 || >=22.12.0"
678
695
  }
679
696
  },
680
697
  "node_modules/@rolldown/binding-android-arm64": {
681
- "version": "1.2.3",
682
- "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm64/-/binding-android-arm64-1.2.3.tgz",
683
- "integrity": "sha512-zrJtHDcaZJ1Fp7xf4hNl+7seH9Cn/N5TwLYkhgXREtBwAd/jaqW3uqeHxpDugJLVICWg4eW44kOQEGJ1r6jCGw==",
698
+ "version": "1.2.15",
699
+ "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm64/-/binding-android-arm64-1.2.15.tgz",
700
+ "integrity": "sha512-xD7DdZCrbThKuxNg7ooQmvp07ys4J/pnSEMTG3/OdOWl6daC67m/Q4fL78sRHMxTH/N4fGUbYhcPM0MF5WFHkg==",
684
701
  "cpu": [
685
702
  "arm64"
686
703
  ],
@@ -694,9 +711,9 @@
694
711
  }
695
712
  },
696
713
  "node_modules/@rolldown/binding-darwin-arm64": {
697
- "version": "1.2.3",
698
- "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-arm64/-/binding-darwin-arm64-1.2.3.tgz",
699
- "integrity": "sha512-ieIiibVCp0tX7TLu2cafoNPv8wJyYi01ekXpbf8q2j7F4rGAhhXb/eQh7ge9DRBY78GwmRQtvjZDux7EDbA8kA==",
714
+ "version": "1.2.15",
715
+ "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-arm64/-/binding-darwin-arm64-1.2.15.tgz",
716
+ "integrity": "sha512-m2WuQ6r0B4OTYxyPpNLtXaMRbRDUbG8YQV2Q3KTdSSK8Th6KHCnC8jVCJt8bvYeSB5WivkkNbc85mKadaSdOxA==",
700
717
  "cpu": [
701
718
  "arm64"
702
719
  ],
@@ -710,9 +727,9 @@
710
727
  }
711
728
  },
712
729
  "node_modules/@rolldown/binding-darwin-x64": {
713
- "version": "1.2.3",
714
- "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-x64/-/binding-darwin-x64-1.2.3.tgz",
715
- "integrity": "sha512-Zh9tCon19eDXJoihx0rqKhMUlMYqzwj3aPsSuHmI4RWZh62dWUL+DJN4C5YQya5TcQBJU/Fe8+rY0jhXTQITqA==",
730
+ "version": "1.2.15",
731
+ "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-x64/-/binding-darwin-x64-1.2.15.tgz",
732
+ "integrity": "sha512-5RtnsHM36nodM9WbMy+zip0LGS/G+y5wro5RHrpOlr4ac24+1zSi9kiV2MP1myZeZ/ifEHfulQcWjnAXzc2C2A==",
716
733
  "cpu": [
717
734
  "x64"
718
735
  ],
@@ -726,9 +743,9 @@
726
743
  }
727
744
  },
728
745
  "node_modules/@rolldown/binding-freebsd-x64": {
729
- "version": "1.2.3",
730
- "resolved": "https://registry.npmjs.org/@rolldown/binding-freebsd-x64/-/binding-freebsd-x64-1.2.3.tgz",
731
- "integrity": "sha512-nGbJWewA1wrXXZiQhjAT5rhibGfns5ZNkDVqxsO6zJ3f3YvpoDNNmGMSbbhLuXKjNScaBJVOAboztAWVespQMg==",
746
+ "version": "1.2.15",
747
+ "resolved": "https://registry.npmjs.org/@rolldown/binding-freebsd-x64/-/binding-freebsd-x64-1.2.15.tgz",
748
+ "integrity": "sha512-g3l09pyFqhu+135JKkbkwiKGQmwU5hUMUPJ4VdBADvuqR8d33L6H578rh8m7rtxbdp+VmX/+nzI7nvhSZlzpUQ==",
732
749
  "cpu": [
733
750
  "x64"
734
751
  ],
@@ -742,9 +759,9 @@
742
759
  }
743
760
  },
744
761
  "node_modules/@rolldown/binding-linux-arm-gnueabihf": {
745
- "version": "1.2.3",
746
- "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-1.2.3.tgz",
747
- "integrity": "sha512-QNniJr5Kml0kDEB98jiDOJjXNroxIIi0IXIbdYzY26Xt1pVbeP62+KnoIZLwirOymX/0jDk/2gI/bNUv7A7OIw==",
762
+ "version": "1.2.15",
763
+ "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-1.2.15.tgz",
764
+ "integrity": "sha512-nIe3VugI97nGQtspPxDqA4sXMUpeiocKIP/CqpY/u/vgbT+alX+cVxu1C/oVBPKg4feNTmYovE91v4DgXvXNwQ==",
748
765
  "cpu": [
749
766
  "arm"
750
767
  ],
@@ -758,9 +775,9 @@
758
775
  }
759
776
  },
760
777
  "node_modules/@rolldown/binding-linux-arm64-gnu": {
761
- "version": "1.2.3",
762
- "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.2.3.tgz",
763
- "integrity": "sha512-TkqEAcmmvH3I/q4114NB4RVt6241Dao48pF45uLcFGrwAaIn0iITgTAKP/dLjbN0R4buJjGb91+UHSoFmpgIWw==",
778
+ "version": "1.2.15",
779
+ "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.2.15.tgz",
780
+ "integrity": "sha512-iTBjXx+B5QSvgI89lJfmqh4wTh8NabR1YZIIN3hNx4zSG0EVfVqkOvLulNpG4251pbd6/IAmZ/LefVk1Y4rPhw==",
764
781
  "cpu": [
765
782
  "arm64"
766
783
  ],
@@ -777,9 +794,9 @@
777
794
  }
778
795
  },
779
796
  "node_modules/@rolldown/binding-linux-arm64-musl": {
780
- "version": "1.2.3",
781
- "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.2.3.tgz",
782
- "integrity": "sha512-NHqjnxpsndf4MPymxteFAWHHfkTL8HjWh1KB7z23ofZ6QO2euONuxDXjat69dKZRALnGypg8k8SsK8vZJoXv1Q==",
797
+ "version": "1.2.15",
798
+ "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.2.15.tgz",
799
+ "integrity": "sha512-uN26XOnVR7rqQupG3V9oAG2EGGatWjcJHOeDOHUFCh4TBWmP2tHTFoVN13aYbwfm0aHqJAEmcwhAu6sooIjfqQ==",
783
800
  "cpu": [
784
801
  "arm64"
785
802
  ],
@@ -796,9 +813,9 @@
796
813
  }
797
814
  },
798
815
  "node_modules/@rolldown/binding-linux-ppc64-gnu": {
799
- "version": "1.2.3",
800
- "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-1.2.3.tgz",
801
- "integrity": "sha512-6tbrbwfz5GB9DQ4Jwo6hy9v+vR31xZlvzZ6n5Xut6Hhx5PvrA9q/HsK8KMaYQp063iqZGXwNvZtYNLD7EM/x0w==",
816
+ "version": "1.2.15",
817
+ "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-1.2.15.tgz",
818
+ "integrity": "sha512-9nWkcdd+H+XhaA3fQIwpHnKIrfx/PQ6rO0pivr78Og07tXlUlctBBJoEYLPfhTmCR/QxEVdn6uPjHV5SymPhdw==",
802
819
  "cpu": [
803
820
  "ppc64"
804
821
  ],
@@ -815,9 +832,9 @@
815
832
  }
816
833
  },
817
834
  "node_modules/@rolldown/binding-linux-s390x-gnu": {
818
- "version": "1.2.3",
819
- "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-1.2.3.tgz",
820
- "integrity": "sha512-oyuXxXmoZHjXC917IAPFAAv4wWAa0cM9afk8nx1+9/jNNOX1uPf8yDA6p7G0RypOfw/X0PQt5IfoquY1um+zSg==",
835
+ "version": "1.2.15",
836
+ "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-1.2.15.tgz",
837
+ "integrity": "sha512-Ggh0ciFjLwIusLSLz7LZYEaGdxOAUJXI+Qu5JCbhPJJHEt8vP+IjRATTJheiJsdzzTYgUiHUiw3X1Ea3ZpMBdA==",
821
838
  "cpu": [
822
839
  "s390x"
823
840
  ],
@@ -834,9 +851,9 @@
834
851
  }
835
852
  },
836
853
  "node_modules/@rolldown/binding-linux-x64-gnu": {
837
- "version": "1.2.3",
838
- "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.2.3.tgz",
839
- "integrity": "sha512-TytMwF2KVGqP2tgd0I1OY0PAv78dZRAYcF5ssDzjM34SUXCED3uXvSd5+lHoC0bTD6eEdFz7LdQNCO1y0oVk9w==",
854
+ "version": "1.2.15",
855
+ "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.2.15.tgz",
856
+ "integrity": "sha512-FHg60rS6DBePAYZ9X9F67x+JObFdmgn6tupA1C/a3B+CufFmTD4mX+e8M75tCiAO3foR/6xwVBI0KQiI7sn/rw==",
840
857
  "cpu": [
841
858
  "x64"
842
859
  ],
@@ -853,9 +870,9 @@
853
870
  }
854
871
  },
855
872
  "node_modules/@rolldown/binding-linux-x64-musl": {
856
- "version": "1.2.3",
857
- "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-musl/-/binding-linux-x64-musl-1.2.3.tgz",
858
- "integrity": "sha512-/E9m3qstrJFVPoULV25mVQblSNExY2+kBsYe4sy0Tn0yOOgJ8wZbZt3KnRbF/XeU2Gl1STKUQnDNTqhIE5MD4A==",
873
+ "version": "1.2.15",
874
+ "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-musl/-/binding-linux-x64-musl-1.2.15.tgz",
875
+ "integrity": "sha512-/cvV/7v5VGz/moiz0XKRj2dE8DzsKyhIu1KpOvJGPjRywg3yscON889UGvAe8zfiJLHup7VLjBduoGWi3HusWQ==",
859
876
  "cpu": [
860
877
  "x64"
861
878
  ],
@@ -872,9 +889,9 @@
872
889
  }
873
890
  },
874
891
  "node_modules/@rolldown/binding-openharmony-arm64": {
875
- "version": "1.2.3",
876
- "resolved": "https://registry.npmjs.org/@rolldown/binding-openharmony-arm64/-/binding-openharmony-arm64-1.2.3.tgz",
877
- "integrity": "sha512-Kr0OcsoQI816i6HOl3vFHpd1K0eZyh76zgfj4c1nTyaTsd5r2Mj1lwM4R90y/qaCfmTn9eHy0SKwi98eitRxug==",
892
+ "version": "1.2.15",
893
+ "resolved": "https://registry.npmjs.org/@rolldown/binding-openharmony-arm64/-/binding-openharmony-arm64-1.2.15.tgz",
894
+ "integrity": "sha512-MyzC5Hrv/sm+Z7TSGKP/j8001RO2xQm1zOpCNVL4j0cY/VhBZviludA2YFQ7i4lH6ZAXxQm0lcMdBzM+99mE7w==",
878
895
  "cpu": [
879
896
  "arm64"
880
897
  ],
@@ -888,9 +905,9 @@
888
905
  }
889
906
  },
890
907
  "node_modules/@rolldown/binding-win32-arm64-msvc": {
891
- "version": "1.2.3",
892
- "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.2.3.tgz",
893
- "integrity": "sha512-hOtMwTqnME+/gJcH/PCZ0wn0zPUjiWOgkHpxbSJpfGKMezHltx1S7/k1SitzVa7Ww2cqrDDaFbZEhcJZO8o+Jw==",
908
+ "version": "1.2.15",
909
+ "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.2.15.tgz",
910
+ "integrity": "sha512-+PgYiS+AH5omy6L45ZLxybasauJaj3M8buoT83D+nzPmCayXlxUV9hydhciCKVyIg0B/v0BtXPDE1uGqNwCPpg==",
894
911
  "cpu": [
895
912
  "arm64"
896
913
  ],
@@ -904,9 +921,9 @@
904
921
  }
905
922
  },
906
923
  "node_modules/@rolldown/binding-win32-x64-msvc": {
907
- "version": "1.2.3",
908
- "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.2.3.tgz",
909
- "integrity": "sha512-ekcqMMkI2PlhYnfzQnB/cEdYUVVJViWvoUyLrbzgDoi3Snfc1mVBwdnc306ufA5ejy8JSPjT2RlW1nQSjW7efg==",
924
+ "version": "1.2.15",
925
+ "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.2.15.tgz",
926
+ "integrity": "sha512-HFZd2QNQYn1JbIi+Hpd7H+r/lkWxcfIu28nirZ6eCn2LafuvmExMlb/P96Sfx5tf7pPArw39IdhmCF8vmV+NhQ==",
910
927
  "cpu": [
911
928
  "x64"
912
929
  ],
@@ -1010,6 +1027,9 @@
1010
1027
  "cpu": [
1011
1028
  "arm"
1012
1029
  ],
1030
+ "libc": [
1031
+ "glibc"
1032
+ ],
1013
1033
  "license": "MIT",
1014
1034
  "optional": true,
1015
1035
  "os": [
@@ -1023,6 +1043,9 @@
1023
1043
  "cpu": [
1024
1044
  "arm"
1025
1045
  ],
1046
+ "libc": [
1047
+ "musl"
1048
+ ],
1026
1049
  "license": "MIT",
1027
1050
  "optional": true,
1028
1051
  "os": [
@@ -1036,6 +1059,9 @@
1036
1059
  "cpu": [
1037
1060
  "arm64"
1038
1061
  ],
1062
+ "libc": [
1063
+ "glibc"
1064
+ ],
1039
1065
  "license": "MIT",
1040
1066
  "optional": true,
1041
1067
  "os": [
@@ -1049,6 +1075,9 @@
1049
1075
  "cpu": [
1050
1076
  "arm64"
1051
1077
  ],
1078
+ "libc": [
1079
+ "musl"
1080
+ ],
1052
1081
  "license": "MIT",
1053
1082
  "optional": true,
1054
1083
  "os": [
@@ -1062,6 +1091,9 @@
1062
1091
  "cpu": [
1063
1092
  "loong64"
1064
1093
  ],
1094
+ "libc": [
1095
+ "glibc"
1096
+ ],
1065
1097
  "license": "MIT",
1066
1098
  "optional": true,
1067
1099
  "os": [
@@ -1075,6 +1107,9 @@
1075
1107
  "cpu": [
1076
1108
  "loong64"
1077
1109
  ],
1110
+ "libc": [
1111
+ "musl"
1112
+ ],
1078
1113
  "license": "MIT",
1079
1114
  "optional": true,
1080
1115
  "os": [
@@ -1088,6 +1123,9 @@
1088
1123
  "cpu": [
1089
1124
  "ppc64"
1090
1125
  ],
1126
+ "libc": [
1127
+ "glibc"
1128
+ ],
1091
1129
  "license": "MIT",
1092
1130
  "optional": true,
1093
1131
  "os": [
@@ -1101,6 +1139,9 @@
1101
1139
  "cpu": [
1102
1140
  "ppc64"
1103
1141
  ],
1142
+ "libc": [
1143
+ "musl"
1144
+ ],
1104
1145
  "license": "MIT",
1105
1146
  "optional": true,
1106
1147
  "os": [
@@ -1114,6 +1155,9 @@
1114
1155
  "cpu": [
1115
1156
  "riscv64"
1116
1157
  ],
1158
+ "libc": [
1159
+ "glibc"
1160
+ ],
1117
1161
  "license": "MIT",
1118
1162
  "optional": true,
1119
1163
  "os": [
@@ -1127,6 +1171,9 @@
1127
1171
  "cpu": [
1128
1172
  "riscv64"
1129
1173
  ],
1174
+ "libc": [
1175
+ "musl"
1176
+ ],
1130
1177
  "license": "MIT",
1131
1178
  "optional": true,
1132
1179
  "os": [
@@ -1140,6 +1187,9 @@
1140
1187
  "cpu": [
1141
1188
  "s390x"
1142
1189
  ],
1190
+ "libc": [
1191
+ "glibc"
1192
+ ],
1143
1193
  "license": "MIT",
1144
1194
  "optional": true,
1145
1195
  "os": [
@@ -1153,6 +1203,9 @@
1153
1203
  "cpu": [
1154
1204
  "x64"
1155
1205
  ],
1206
+ "libc": [
1207
+ "glibc"
1208
+ ],
1156
1209
  "license": "MIT",
1157
1210
  "optional": true,
1158
1211
  "os": [
@@ -1166,6 +1219,9 @@
1166
1219
  "cpu": [
1167
1220
  "x64"
1168
1221
  ],
1222
+ "libc": [
1223
+ "musl"
1224
+ ],
1169
1225
  "license": "MIT",
1170
1226
  "optional": true,
1171
1227
  "os": [
@@ -2590,9 +2646,9 @@
2590
2646
  "optional": true
2591
2647
  },
2592
2648
  "node_modules/nanoid": {
2593
- "version": "3.3.18",
2594
- "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.18.tgz",
2595
- "integrity": "sha512-DTg4MJbGMWkfi6VZFdNt2/caMbQy4Ou+Op/hJQvGEWcnVfoA1QA+xzRKAzw9jD6+GVOOeYr/mIcuDSdug6F6+w==",
2649
+ "version": "3.3.20",
2650
+ "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.20.tgz",
2651
+ "integrity": "sha512-uKdg2G3GNCKQn9byYOpxbGqrT2fGO5KRt5J/8b3pok8rT6qxGWF6hxMyJiEYtAf+FVyYuD9hRaDqX5uPFYJ4ZQ==",
2596
2652
  "funding": [
2597
2653
  {
2598
2654
  "type": "github",
@@ -2687,9 +2743,9 @@
2687
2743
  "license": "ISC"
2688
2744
  },
2689
2745
  "node_modules/picomatch": {
2690
- "version": "4.0.5",
2691
- "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.5.tgz",
2692
- "integrity": "sha512-RvwwcruNjI1ncT5xRakeyS9Lf8lcItv34KD+aif+VH9kduAyfYBipGh12274xtenIPZ119/R9BdTBa8gAwSh0A==",
2746
+ "version": "4.0.7",
2747
+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.7.tgz",
2748
+ "integrity": "sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==",
2693
2749
  "license": "MIT",
2694
2750
  "engines": {
2695
2751
  "node": ">=12"
@@ -2699,9 +2755,9 @@
2699
2755
  }
2700
2756
  },
2701
2757
  "node_modules/postcss": {
2702
- "version": "8.5.26",
2703
- "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.26.tgz",
2704
- "integrity": "sha512-u82N74LFzG8ca+dD8puPnplTXoGH4fTPpVGuIbt36G3qvNlkvfD0lEAZSxaly3KX8TS/L1A1gsCEmvKmBcVbkQ==",
2758
+ "version": "8.5.31",
2759
+ "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.31.tgz",
2760
+ "integrity": "sha512-YUbWYCgErwnMAVkjUnYa+KlMBzGpHwiIt/DE7f0G33AuX2LH9UcTk6KgWxd3zRU+pN3u/C+Xl3EnMLM4Hea7Sg==",
2705
2761
  "funding": [
2706
2762
  {
2707
2763
  "type": "opencollective",
@@ -2718,9 +2774,9 @@
2718
2774
  ],
2719
2775
  "license": "MIT",
2720
2776
  "dependencies": {
2721
- "nanoid": "^3.3.17",
2777
+ "nanoid": "^3.3.20",
2722
2778
  "picocolors": "^1.1.1",
2723
- "source-map-js": "^1.2.1"
2779
+ "source-map-js": "^1.2.2"
2724
2780
  },
2725
2781
  "engines": {
2726
2782
  "node": "^10 || ^12 || >=14"
@@ -3002,12 +3058,12 @@
3002
3058
  }
3003
3059
  },
3004
3060
  "node_modules/rolldown": {
3005
- "version": "1.2.3",
3006
- "resolved": "https://registry.npmjs.org/rolldown/-/rolldown-1.2.3.tgz",
3007
- "integrity": "sha512-rn9wpmxplLf7NLNyCk9FyWh3FM43DbY8jOzCdEPzH7uflhTftRbCEpqi6Ly2osgoU8OwObtmavMbWLaWy4LX7A==",
3061
+ "version": "1.2.15",
3062
+ "resolved": "https://registry.npmjs.org/rolldown/-/rolldown-1.2.15.tgz",
3063
+ "integrity": "sha512-6odND+fel5zVw3I4Yc2e69gvguDnX0CAAGiNDZSq4ik5WUcaLrkD2GLuog0XcODbor31hZ5ayEMgVDno+KPV5g==",
3008
3064
  "license": "MIT",
3009
3065
  "dependencies": {
3010
- "@oxc-project/types": "=0.143.0",
3066
+ "@oxc-project/types": "=0.155.0",
3011
3067
  "@rolldown/pluginutils": "^1.0.0"
3012
3068
  },
3013
3069
  "bin": {
@@ -3017,20 +3073,21 @@
3017
3073
  "node": "^20.19.0 || >=22.12.0"
3018
3074
  },
3019
3075
  "optionalDependencies": {
3020
- "@rolldown/binding-android-arm64": "1.2.3",
3021
- "@rolldown/binding-darwin-arm64": "1.2.3",
3022
- "@rolldown/binding-darwin-x64": "1.2.3",
3023
- "@rolldown/binding-freebsd-x64": "1.2.3",
3024
- "@rolldown/binding-linux-arm-gnueabihf": "1.2.3",
3025
- "@rolldown/binding-linux-arm64-gnu": "1.2.3",
3026
- "@rolldown/binding-linux-arm64-musl": "1.2.3",
3027
- "@rolldown/binding-linux-ppc64-gnu": "1.2.3",
3028
- "@rolldown/binding-linux-s390x-gnu": "1.2.3",
3029
- "@rolldown/binding-linux-x64-gnu": "1.2.3",
3030
- "@rolldown/binding-linux-x64-musl": "1.2.3",
3031
- "@rolldown/binding-openharmony-arm64": "1.2.3",
3032
- "@rolldown/binding-win32-arm64-msvc": "1.2.3",
3033
- "@rolldown/binding-win32-x64-msvc": "1.2.3"
3076
+ "@rolldown/binding-android-arm-eabi": "1.2.15",
3077
+ "@rolldown/binding-android-arm64": "1.2.15",
3078
+ "@rolldown/binding-darwin-arm64": "1.2.15",
3079
+ "@rolldown/binding-darwin-x64": "1.2.15",
3080
+ "@rolldown/binding-freebsd-x64": "1.2.15",
3081
+ "@rolldown/binding-linux-arm-gnueabihf": "1.2.15",
3082
+ "@rolldown/binding-linux-arm64-gnu": "1.2.15",
3083
+ "@rolldown/binding-linux-arm64-musl": "1.2.15",
3084
+ "@rolldown/binding-linux-ppc64-gnu": "1.2.15",
3085
+ "@rolldown/binding-linux-s390x-gnu": "1.2.15",
3086
+ "@rolldown/binding-linux-x64-gnu": "1.2.15",
3087
+ "@rolldown/binding-linux-x64-musl": "1.2.15",
3088
+ "@rolldown/binding-openharmony-arm64": "1.2.15",
3089
+ "@rolldown/binding-win32-arm64-msvc": "1.2.15",
3090
+ "@rolldown/binding-win32-x64-msvc": "1.2.15"
3034
3091
  }
3035
3092
  },
3036
3093
  "node_modules/rollup": {
@@ -3214,9 +3271,9 @@
3214
3271
  }
3215
3272
  },
3216
3273
  "node_modules/source-map-js": {
3217
- "version": "1.2.1",
3218
- "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz",
3219
- "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==",
3274
+ "version": "1.2.2",
3275
+ "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.2.tgz",
3276
+ "integrity": "sha512-KGj/8Y43x35aZVDtt+J4mK1hoLGHULMYfSkODJNQjNDC3oW1PqPoxMwo0pLUsWM/UEGzON/NxeHywEfNXNP3Vw==",
3220
3277
  "license": "BSD-3-Clause",
3221
3278
  "engines": {
3222
3279
  "node": ">=0.10.0"
@@ -3291,15 +3348,15 @@
3291
3348
  }
3292
3349
  },
3293
3350
  "node_modules/vite": {
3294
- "version": "8.2.1",
3295
- "resolved": "https://registry.npmjs.org/vite/-/vite-8.2.1.tgz",
3296
- "integrity": "sha512-EU/eS7BH3XROHh2YnBefjM6DBKA6ZeMZEYQbj7NLWg5wHYlhB8B/Mayd5XsgWq+NFYccDOTemRpdETWR6Ka/lw==",
3351
+ "version": "8.3.5",
3352
+ "resolved": "https://registry.npmjs.org/vite/-/vite-8.3.5.tgz",
3353
+ "integrity": "sha512-z1YpjieJ9g0ebTmQpLBv/oq9E3F9EIlOe+7LahW8SrE3LTiG3udBRUXQOlYXP9b+IC2q2phHeVxj9xGlw34OEQ==",
3297
3354
  "license": "MIT",
3298
3355
  "dependencies": {
3299
3356
  "lightningcss": "^1.33.0",
3300
- "picomatch": "^4.0.5",
3301
- "postcss": "^8.5.25",
3302
- "rolldown": "~1.2.1",
3357
+ "picomatch": "^4.0.7",
3358
+ "postcss": "^8.5.30",
3359
+ "rolldown": "~1.2.14",
3303
3360
  "tinyglobby": "^0.2.17"
3304
3361
  },
3305
3362
  "bin": {
@@ -3316,7 +3373,7 @@
3316
3373
  },
3317
3374
  "peerDependencies": {
3318
3375
  "@types/node": "^20.19.0 || >=22.12.0",
3319
- "@vitejs/devtools": "^0.4.0",
3376
+ "@vitejs/devtools": "^0.7.1 || ^0.8.0",
3320
3377
  "esbuild": "^0.27.0 || ^0.28.0",
3321
3378
  "jiti": ">=1.21.0",
3322
3379
  "less": "^4.0.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coraltravelcenter/b2c-landing-builder",
3
- "version": "3.0.0",
3
+ "version": "3.2.0",
4
4
  "description": "CLI and build toolkit for B2C landing projects",
5
5
  "type": "module",
6
6
  "bin": {
@@ -19,7 +19,8 @@
19
19
  "src/vite/"
20
20
  ],
21
21
  "engines": {
22
- "node": ">=20.19.0"
22
+ "node": ">=24.22.1",
23
+ "npm": ">=11.21.1"
23
24
  },
24
25
  "scripts": {
25
26
  "dev": "node scripts/run-fixture.mjs dev",
@@ -35,7 +36,7 @@
35
36
  "open": "11.0.2",
36
37
  "sharp": "0.35.4",
37
38
  "typograf": "7.7.0",
38
- "vite": "8.2.1",
39
+ "vite": "8.3.5",
39
40
  "vite-plugin-monkey": "8.1.0"
40
41
  },
41
42
  "devDependencies": {
@@ -51,5 +52,6 @@
51
52
  "publishConfig": {
52
53
  "access": "public"
53
54
  },
54
- "license": "MIT"
55
+ "license": "MIT",
56
+ "packageManager": "npm@11.21.1"
55
57
  }
@@ -2,23 +2,26 @@ import fs from "node:fs";
2
2
  import path from "node:path";
3
3
 
4
4
  import {assertBlockKey, readOrder, writeOrder} from "./utils.mjs";
5
+ import {resolvePreset} from "../config/resolve-preset.mjs";
5
6
  import {resolveScriptStack} from "../config/script-stack.mjs";
6
7
 
7
8
  function displayPath(root, filePath) {
8
9
  return path.relative(root, filePath).split(path.sep).join("/");
9
10
  }
10
11
 
11
- function markupTemplate(key, format) {
12
- return format === "pug" ? `section.${key}\n` : `<section class="${key}">\n</section>\n`;
12
+ function markupTemplate(key, format, brandClass) {
13
+ return format === "pug"
14
+ ? `section.${brandClass}.${key}\n`
15
+ : `<section class="${brandClass} ${key}">\n</section>\n`;
13
16
  }
14
17
 
15
18
  function styleTemplate(key) {
16
19
  return `.${key} {\n}\n`;
17
20
  }
18
21
 
19
- function scriptTemplate(key) {
22
+ function scriptTemplate(key, extension) {
20
23
  const functionName = key.replace(/-+/g, "_");
21
- return `export default function ${functionName}() {\n const block = document.querySelector(".${key}");\n if (!block) return;\n}\n`;
24
+ return `export default function ${functionName}()${extension === "ts" ? ": void" : ""} {\n}\n`;
22
25
  }
23
26
 
24
27
  export function addBlock(key, config, root = process.cwd(), {log = console.log} = {}) {
@@ -26,14 +29,24 @@ export function addBlock(key, config, root = process.cwd(), {log = console.log}
26
29
  const {order, orderPath} = readOrder(root);
27
30
  if (order.blocks.includes(key)) throw new Error(`Block already exists in src/order.json: ${key}`);
28
31
 
32
+ const preset = resolvePreset(config.site.preset);
33
+ const brandClass = preset.id === "coral" ? "corallium" : "sunmarino";
29
34
  const scriptStack = resolveScriptStack(config.stack.script);
35
+ const markup = config.stack.markup === "mix" ? "html" : config.stack.markup;
36
+ const markupPath = path.resolve(root, "src/markup", `${key}.${markup}`);
30
37
  const files = [
31
- [path.resolve(root, "src/markup", `${key}.${config.stack.markup}`), markupTemplate(key, config.stack.markup)],
38
+ [markupPath, markupTemplate(key, markup, brandClass)],
32
39
  [path.resolve(root, "src/styles", `${key}.${config.stack.styles}`), styleTemplate(key)],
33
- [path.resolve(root, "src/scripts", `${key}.${scriptStack.extension}`), scriptTemplate(key)],
40
+ [path.resolve(root, "src/scripts", `${key}.${scriptStack.extension}`), scriptTemplate(key, scriptStack.extension)],
34
41
  ];
35
- const collision = files.find(([filePath]) => fs.existsSync(filePath));
36
- if (collision) throw new Error(`Cannot add block; target already exists: ${displayPath(root, collision[0])}`);
42
+ const markupCollisions = config.stack.markup === "mix"
43
+ ? ["html", "pug"].map((extension) => path.resolve(root, "src/markup", `${key}.${extension}`))
44
+ : [markupPath];
45
+ const collisionPath = [
46
+ ...markupCollisions,
47
+ ...files.slice(1).map(([filePath]) => filePath),
48
+ ].find((filePath) => fs.existsSync(filePath));
49
+ if (collisionPath) throw new Error(`Cannot add block; target already exists: ${displayPath(root, collisionPath)}`);
37
50
 
38
51
  for (const [filePath, source] of files) {
39
52
  fs.mkdirSync(path.dirname(filePath), {recursive: true});