@linktr.ee/linkapp 0.0.22 → 0.0.24

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 (76) hide show
  1. package/dev-server/README.md +5 -5
  2. package/dev-server/{vite-env.d.ts → env.d.ts} +1 -1
  3. package/dev-server/featured/main.tsx +32 -311
  4. package/dev-server/package.json +5 -6
  5. package/dev-server/postcss/tailwind-source-fallback.js +94 -0
  6. package/dev-server/postcss.config.mjs +28 -3
  7. package/dev-server/preview/Preview.tsx +114 -339
  8. package/dev-server/preview/preview.css +3 -0
  9. package/dev-server/rsbuild.config.ts +45 -0
  10. package/dev-server/shared/theme-presets.ts +315 -0
  11. package/dev-server/shared/theme-utils.ts +38 -0
  12. package/dev-server/sheet/main.tsx +44 -0
  13. package/dev-server/{classic.html → sheet.html} +2 -2
  14. package/dist/commands/add.d.ts.map +1 -1
  15. package/dist/commands/add.js +20 -12
  16. package/dist/commands/add.js.map +1 -1
  17. package/dist/commands/build.d.ts.map +1 -1
  18. package/dist/commands/build.js +55 -36
  19. package/dist/commands/build.js.map +1 -1
  20. package/dist/commands/deploy.d.ts.map +1 -1
  21. package/dist/commands/deploy.js +58 -45
  22. package/dist/commands/deploy.js.map +1 -1
  23. package/dist/commands/dev.d.ts.map +1 -1
  24. package/dist/commands/dev.js +541 -128
  25. package/dist/commands/dev.js.map +1 -1
  26. package/dist/commands/login.d.ts.map +1 -1
  27. package/dist/commands/login.js +19 -9
  28. package/dist/commands/login.js.map +1 -1
  29. package/dist/commands/logout.d.ts.map +1 -1
  30. package/dist/commands/logout.js +9 -4
  31. package/dist/commands/logout.js.map +1 -1
  32. package/dist/commands/test-url-match-rules.d.ts.map +1 -1
  33. package/dist/commands/test-url-match-rules.js +24 -13
  34. package/dist/commands/test-url-match-rules.js.map +1 -1
  35. package/dist/lib/build/detect-layouts.d.ts +1 -1
  36. package/dist/lib/build/detect-layouts.d.ts.map +1 -1
  37. package/dist/lib/build/detect-layouts.js +8 -7
  38. package/dist/lib/build/detect-layouts.js.map +1 -1
  39. package/dist/lib/deploy/pack-project.js +1 -1
  40. package/dist/lib/deploy/pack-project.js.map +1 -1
  41. package/dist/lib/deploy/validation.d.ts.map +1 -1
  42. package/dist/lib/deploy/validation.js +8 -5
  43. package/dist/lib/deploy/validation.js.map +1 -1
  44. package/dist/lib/rsbuild/config-factory.d.ts +24 -0
  45. package/dist/lib/rsbuild/config-factory.d.ts.map +1 -0
  46. package/dist/lib/rsbuild/config-factory.js +135 -0
  47. package/dist/lib/rsbuild/config-factory.js.map +1 -0
  48. package/dist/lib/rsbuild/plugins/asset-versioning.d.ts +11 -0
  49. package/dist/lib/rsbuild/plugins/asset-versioning.d.ts.map +1 -0
  50. package/dist/lib/rsbuild/plugins/asset-versioning.js +62 -0
  51. package/dist/lib/rsbuild/plugins/asset-versioning.js.map +1 -0
  52. package/dist/lib/rsbuild/plugins/copy-public.d.ts +11 -0
  53. package/dist/lib/rsbuild/plugins/copy-public.d.ts.map +1 -0
  54. package/dist/lib/rsbuild/plugins/copy-public.js +32 -0
  55. package/dist/lib/rsbuild/plugins/copy-public.js.map +1 -0
  56. package/dist/lib/rsbuild/postcss/tailwind-source-fallback.d.ts +12 -0
  57. package/dist/lib/rsbuild/postcss/tailwind-source-fallback.d.ts.map +1 -0
  58. package/dist/lib/rsbuild/postcss/tailwind-source-fallback.js +60 -0
  59. package/dist/lib/rsbuild/postcss/tailwind-source-fallback.js.map +1 -0
  60. package/dist/lib/utils/setup-runtime.d.ts.map +1 -1
  61. package/dist/lib/utils/setup-runtime.js +60 -26
  62. package/dist/lib/utils/setup-runtime.js.map +1 -1
  63. package/dist/lib/vite/config-factory.d.ts.map +1 -1
  64. package/dist/lib/vite/config-factory.js +5 -1
  65. package/dist/lib/vite/config-factory.js.map +1 -1
  66. package/dist/lib/vite/plugins/copy-public.d.ts +12 -0
  67. package/dist/lib/vite/plugins/copy-public.d.ts.map +1 -0
  68. package/dist/lib/vite/plugins/copy-public.js +31 -0
  69. package/dist/lib/vite/plugins/copy-public.js.map +1 -0
  70. package/dist/schema/config.schema.d.ts +18 -1
  71. package/dist/schema/config.schema.d.ts.map +1 -1
  72. package/dist/schema/config.schema.js +1 -0
  73. package/dist/schema/config.schema.js.map +1 -1
  74. package/package.json +7 -3
  75. package/dev-server/classic/main.tsx +0 -346
  76. package/dev-server/vite.config.ts +0 -34
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@linktr.ee/linkapp",
3
- "version": "0.0.22",
3
+ "version": "0.0.24",
4
4
  "description": "Development, build, and deployment tooling for LinkApps",
5
5
  "type": "module",
6
6
  "bin": {
@@ -46,13 +46,18 @@
46
46
  "@ngrok/ngrok": "^1.4.1",
47
47
  "@radix-ui/react-dialog": "^1.1.15",
48
48
  "@radix-ui/react-tabs": "^1.1.7",
49
- "@vitejs/plugin-react": "^4.3.4",
49
+ "@rsbuild/core": "^1.1.14",
50
+ "@rsbuild/plugin-react": "^1.1.0",
51
+ "@tailwindcss/postcss": "^4.1.14",
52
+ "postcss": "^8.5.6",
50
53
  "archiver": "^7.0.1",
51
54
  "axios": "^1.7.9",
52
55
  "cac": "^6.7.14",
56
+ "chokidar": "^3.6.0",
53
57
  "class-variance-authority": "^0.7.1",
54
58
  "clsx": "^2.1.1",
55
59
  "connect": "^3.7.0",
60
+ "detect-port": "^2.1.0",
56
61
  "form-data": "^4.0.1",
57
62
  "fs-extra": "^11.2.0",
58
63
  "jiti": "^2.6.1",
@@ -65,7 +70,6 @@
65
70
  "react": "^19.1.0",
66
71
  "react-dom": "^19.1.0",
67
72
  "tailwind-merge": "^3.3.1",
68
- "vite": "^6.0.3",
69
73
  "zod": "^4.1.12"
70
74
  },
71
75
  "devDependencies": {
@@ -1,346 +0,0 @@
1
- import Classic from "@/app/classic";
2
- import { StrictMode } from "react";
3
- import { createRoot } from "react-dom/client";
4
- import "@/app/globals.css";
5
-
6
- // Conditionally import Layout if it exists
7
- const layoutModules = import.meta.glob("@/app/layout.{ts,tsx}", {
8
- eager: true,
9
- });
10
- const Layout = Object.values(layoutModules)[0]?.default as
11
- | React.ComponentType<{ children: React.ReactNode; theme?: any }>
12
- | undefined;
13
-
14
- // Declare global window property for theme application
15
- declare global {
16
- interface Window {
17
- __linkapp_applyTheme?: (variables: Record<string, string>) => void
18
- }
19
- }
20
-
21
- // Preview props injected by dev server via Vite define
22
- declare const __PREVIEW_PROPS__: Record<string, unknown>;
23
-
24
- // Theme presets matching Preview.tsx
25
- const THEME_PRESETS: Record<string, Record<string, string>> = {
26
- default: {
27
- "--button-style-text": "#000000",
28
- "--button-style-background": "#ffffff",
29
- "--button-style-background-hover": "color-mix(in srgb, #ffffff 93%, #000000 7%)",
30
- "--button-style-border": "none",
31
- "--button-style-border-color": "transparent",
32
- "--button-style-shadow": "none",
33
- "--button-style-shadow-color": "#000000",
34
- "--button-style-contrast-color": "#000000",
35
- "--button-style-radius": "8px",
36
- "--button-style-inner-radius": "min(8px, max(4px, calc(8px - 8px)))",
37
- "--button-style-skeleton-color": "rgba(0, 0, 0, 0.05)",
38
- "--link-gap": "14px",
39
- "--link-inner-padding": "7px",
40
- "--link-preview-thumbnail-width": "160px",
41
- "--linkRadius": "8px",
42
- "--profile-container-desktop-width": "580px",
43
- "--profileBackground": "#eceef1",
44
- "--background-contrast-color": "#000000",
45
- "--bodyText": "#000000",
46
- "--profileTitleText": "#000000",
47
- "--profileDescriptionText": "#000000",
48
- "--defaultAvatarBackground": "#000000",
49
- "--defaultAvatarText": "#ffffff",
50
- "--socialLinkFill": "#000000",
51
- "--linkBackground": "#ffffff",
52
- "--linkText": "#000000",
53
- "--linkHoverBackground": "color-mix(in srgb, #ffffff 93%, #000000 7%)",
54
- "--linkHoverText": "#000000",
55
- "--linkShadow": "#000000",
56
- "--bannerBackground": "#ffffff",
57
- "--bannerText": "#000000",
58
- "--desktop-frame-color": "color-mix(in srgb, #eceef1 88%, black 12%)",
59
- "--profileFontFamilyPrimary": 'Link Sans Product, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif',
60
- "--profileFontFamilySecondary": 'Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif',
61
- "--header-font-family": 'Link Sans Product, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif',
62
- "--profileFontWeightNormal": "500",
63
- "--profileFontWeightBold": "700",
64
- "--profileDescriptionFontWeight": "500",
65
- "--linkTextFontWeight": "500",
66
- "--headerFontWeight": "700",
67
- "--header-font-weight": "600",
68
- "--embedLinkTextFontWeight": "500",
69
- "--signupSubmitTextFontWeight": "700",
70
- "--bannerFontWeight": "700",
71
- "--headerFontSize": "normal",
72
- "--header-bio-font-size": "16px",
73
- "--embedLinkTextFontSize": "14px",
74
- "--signupSubmitTextFontSize": "14px",
75
- "--linkHeaderFontSize": "14px",
76
- "--bannerFontSize": "14px",
77
- "--profileDescriptionLineHeight": "1.5",
78
- "--headerLineHeight": "1.5",
79
- "--header-text-color": "#000000",
80
- },
81
- dark: {
82
- "--button-style-text": "#ffffff",
83
- "--button-style-background": "#1f2937",
84
- "--button-style-background-hover": "color-mix(in srgb, #1f2937 93%, #ffffff 7%)",
85
- "--button-style-border": "none",
86
- "--button-style-border-color": "transparent",
87
- "--button-style-shadow": "none",
88
- "--button-style-shadow-color": "#000000",
89
- "--button-style-contrast-color": "#ffffff",
90
- "--button-style-radius": "8px",
91
- "--button-style-inner-radius": "min(8px, max(4px, calc(8px - 8px)))",
92
- "--button-style-skeleton-color": "rgba(255, 255, 255, 0.1)",
93
- "--link-gap": "14px",
94
- "--link-inner-padding": "7px",
95
- "--link-preview-thumbnail-width": "160px",
96
- "--linkRadius": "8px",
97
- "--profile-container-desktop-width": "580px",
98
- "--profileBackground": "#111827",
99
- "--background-contrast-color": "#ffffff",
100
- "--bodyText": "#ffffff",
101
- "--profileTitleText": "#ffffff",
102
- "--profileDescriptionText": "#ffffff",
103
- "--defaultAvatarBackground": "#ffffff",
104
- "--defaultAvatarText": "#000000",
105
- "--socialLinkFill": "#ffffff",
106
- "--linkBackground": "#1f2937",
107
- "--linkText": "#ffffff",
108
- "--linkHoverBackground": "color-mix(in srgb, #1f2937 93%, #ffffff 7%)",
109
- "--linkHoverText": "#ffffff",
110
- "--linkShadow": "#000000",
111
- "--bannerBackground": "#1f2937",
112
- "--bannerText": "#ffffff",
113
- "--desktop-frame-color": "color-mix(in srgb, #111827 88%, white 12%)",
114
- "--profileFontFamilyPrimary": 'Link Sans Product, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif',
115
- "--profileFontFamilySecondary": 'Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif',
116
- "--header-font-family": 'Link Sans Product, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif',
117
- "--profileFontWeightNormal": "500",
118
- "--profileFontWeightBold": "700",
119
- "--profileDescriptionFontWeight": "500",
120
- "--linkTextFontWeight": "500",
121
- "--headerFontWeight": "700",
122
- "--header-font-weight": "600",
123
- "--embedLinkTextFontWeight": "500",
124
- "--signupSubmitTextFontWeight": "700",
125
- "--bannerFontWeight": "700",
126
- "--headerFontSize": "normal",
127
- "--header-bio-font-size": "16px",
128
- "--embedLinkTextFontSize": "14px",
129
- "--signupSubmitTextFontSize": "14px",
130
- "--linkHeaderFontSize": "14px",
131
- "--bannerFontSize": "14px",
132
- "--profileDescriptionLineHeight": "1.5",
133
- "--headerLineHeight": "1.5",
134
- "--header-text-color": "#ffffff",
135
- },
136
- purple: {
137
- "--button-style-text": "#ffffff",
138
- "--button-style-background": "#7c3aed",
139
- "--button-style-background-hover": "color-mix(in srgb, #7c3aed 93%, #ffffff 7%)",
140
- "--button-style-border": "none",
141
- "--button-style-border-color": "transparent",
142
- "--button-style-shadow": "none",
143
- "--button-style-shadow-color": "#000000",
144
- "--button-style-contrast-color": "#ede9fe",
145
- "--button-style-radius": "16px",
146
- "--button-style-inner-radius": "min(16px, max(4px, calc(16px - 8px)))",
147
- "--button-style-skeleton-color": "rgba(124, 58, 237, 0.1)",
148
- "--link-gap": "14px",
149
- "--link-inner-padding": "7px",
150
- "--link-preview-thumbnail-width": "160px",
151
- "--linkRadius": "16px",
152
- "--profile-container-desktop-width": "580px",
153
- "--profileBackground": "#faf5ff",
154
- "--background-contrast-color": "#1f2937",
155
- "--bodyText": "#1f2937",
156
- "--profileTitleText": "#1f2937",
157
- "--profileDescriptionText": "#1f2937",
158
- "--defaultAvatarBackground": "#7c3aed",
159
- "--defaultAvatarText": "#ffffff",
160
- "--socialLinkFill": "#1f2937",
161
- "--linkBackground": "#7c3aed",
162
- "--linkText": "#ffffff",
163
- "--linkHoverBackground": "color-mix(in srgb, #7c3aed 93%, #ffffff 7%)",
164
- "--linkHoverText": "#ffffff",
165
- "--linkShadow": "#7c3aed",
166
- "--bannerBackground": "#7c3aed",
167
- "--bannerText": "#ffffff",
168
- "--desktop-frame-color": "color-mix(in srgb, #faf5ff 88%, black 12%)",
169
- "--profileFontFamilyPrimary": 'Link Sans Product, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif',
170
- "--profileFontFamilySecondary": 'Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif',
171
- "--header-font-family": 'Link Sans Product, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif',
172
- "--profileFontWeightNormal": "500",
173
- "--profileFontWeightBold": "700",
174
- "--profileDescriptionFontWeight": "500",
175
- "--linkTextFontWeight": "500",
176
- "--headerFontWeight": "700",
177
- "--header-font-weight": "600",
178
- "--embedLinkTextFontWeight": "500",
179
- "--signupSubmitTextFontWeight": "700",
180
- "--bannerFontWeight": "700",
181
- "--headerFontSize": "normal",
182
- "--header-bio-font-size": "16px",
183
- "--embedLinkTextFontSize": "14px",
184
- "--signupSubmitTextFontSize": "14px",
185
- "--linkHeaderFontSize": "14px",
186
- "--bannerFontSize": "14px",
187
- "--profileDescriptionLineHeight": "1.5",
188
- "--headerLineHeight": "1.5",
189
- "--header-text-color": "#1f2937",
190
- },
191
- outline: {
192
- "--button-style-text": "#000000",
193
- "--button-style-background": "transparent",
194
- "--button-style-background-hover": "rgba(0, 0, 0, 0.05)",
195
- "--button-style-border": "2px solid currentColor",
196
- "--button-style-border-color": "#000000",
197
- "--button-style-shadow": "none",
198
- "--button-style-shadow-color": "#000000",
199
- "--button-style-contrast-color": "#ffffff",
200
- "--button-style-radius": "24px",
201
- "--button-style-inner-radius": "min(24px, max(4px, calc(24px - 8px)))",
202
- "--button-style-skeleton-color": "rgba(0, 0, 0, 0.05)",
203
- "--link-gap": "14px",
204
- "--link-inner-padding": "7px",
205
- "--link-preview-thumbnail-width": "160px",
206
- "--linkRadius": "24px",
207
- "--profile-container-desktop-width": "580px",
208
- "--profileBackground": "#ffffff",
209
- "--background-contrast-color": "#000000",
210
- "--bodyText": "#000000",
211
- "--profileTitleText": "#000000",
212
- "--profileDescriptionText": "#000000",
213
- "--defaultAvatarBackground": "#000000",
214
- "--defaultAvatarText": "#ffffff",
215
- "--socialLinkFill": "#000000",
216
- "--linkBackground": "transparent",
217
- "--linkText": "#000000",
218
- "--linkHoverBackground": "rgba(0, 0, 0, 0.05)",
219
- "--linkHoverText": "#000000",
220
- "--linkShadow": "#000000",
221
- "--bannerBackground": "#ffffff",
222
- "--bannerText": "#000000",
223
- "--desktop-frame-color": "color-mix(in srgb, #ffffff 88%, black 12%)",
224
- "--profileFontFamilyPrimary": 'Link Sans Product, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif',
225
- "--profileFontFamilySecondary": 'Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif',
226
- "--header-font-family": 'Link Sans Product, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif',
227
- "--profileFontWeightNormal": "500",
228
- "--profileFontWeightBold": "700",
229
- "--profileDescriptionFontWeight": "500",
230
- "--linkTextFontWeight": "500",
231
- "--headerFontWeight": "700",
232
- "--header-font-weight": "600",
233
- "--embedLinkTextFontWeight": "500",
234
- "--signupSubmitTextFontWeight": "700",
235
- "--bannerFontWeight": "700",
236
- "--headerFontSize": "normal",
237
- "--header-bio-font-size": "16px",
238
- "--embedLinkTextFontSize": "14px",
239
- "--signupSubmitTextFontSize": "14px",
240
- "--linkHeaderFontSize": "14px",
241
- "--bannerFontSize": "14px",
242
- "--profileDescriptionLineHeight": "1.5",
243
- "--headerLineHeight": "1.5",
244
- "--header-text-color": "#000000",
245
- },
246
- rounded: {
247
- "--button-style-text": "#ffffff",
248
- "--button-style-background": "#059669",
249
- "--button-style-background-hover": "color-mix(in srgb, #059669 93%, #ffffff 7%)",
250
- "--button-style-border": "none",
251
- "--button-style-border-color": "transparent",
252
- "--button-style-shadow": "none",
253
- "--button-style-shadow-color": "#000000",
254
- "--button-style-contrast-color": "#d1fae5",
255
- "--button-style-radius": "28px",
256
- "--button-style-inner-radius": "28px",
257
- "--button-style-skeleton-color": "rgba(5, 150, 105, 0.1)",
258
- "--link-gap": "14px",
259
- "--link-inner-padding": "7px",
260
- "--link-preview-thumbnail-width": "160px",
261
- "--linkRadius": "28px",
262
- "--profile-container-desktop-width": "580px",
263
- "--profileBackground": "#ecfdf5",
264
- "--background-contrast-color": "#1f2937",
265
- "--bodyText": "#1f2937",
266
- "--profileTitleText": "#1f2937",
267
- "--profileDescriptionText": "#1f2937",
268
- "--defaultAvatarBackground": "#059669",
269
- "--defaultAvatarText": "#ffffff",
270
- "--socialLinkFill": "#1f2937",
271
- "--linkBackground": "#059669",
272
- "--linkText": "#ffffff",
273
- "--linkHoverBackground": "color-mix(in srgb, #059669 93%, #ffffff 7%)",
274
- "--linkHoverText": "#ffffff",
275
- "--linkShadow": "#059669",
276
- "--bannerBackground": "#059669",
277
- "--bannerText": "#ffffff",
278
- "--desktop-frame-color": "color-mix(in srgb, #ecfdf5 88%, black 12%)",
279
- "--profileFontFamilyPrimary": 'Link Sans Product, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif',
280
- "--profileFontFamilySecondary": 'Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif',
281
- "--header-font-family": 'Link Sans Product, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif',
282
- "--profileFontWeightNormal": "500",
283
- "--profileFontWeightBold": "700",
284
- "--profileDescriptionFontWeight": "500",
285
- "--linkTextFontWeight": "500",
286
- "--headerFontWeight": "700",
287
- "--header-font-weight": "600",
288
- "--embedLinkTextFontWeight": "500",
289
- "--signupSubmitTextFontWeight": "700",
290
- "--bannerFontWeight": "700",
291
- "--headerFontSize": "normal",
292
- "--header-bio-font-size": "16px",
293
- "--embedLinkTextFontSize": "14px",
294
- "--signupSubmitTextFontSize": "14px",
295
- "--linkHeaderFontSize": "14px",
296
- "--bannerFontSize": "14px",
297
- "--profileDescriptionLineHeight": "1.5",
298
- "--headerLineHeight": "1.5",
299
- "--header-text-color": "#1f2937",
300
- },
301
- };
302
-
303
- // Get theme from URL parameter
304
- const params = new URLSearchParams(window.location.search);
305
- const themeParam = params.get('theme') || 'default';
306
- const themeVariables = THEME_PRESETS[themeParam] || THEME_PRESETS.default;
307
-
308
- const previewProps = __PREVIEW_PROPS__ || {};
309
-
310
- // Merge theme from URL with preview props
311
- const mergedProps = {
312
- ...previewProps,
313
- theme: {
314
- cssVariables: themeVariables,
315
- // Legacy properties (deprecated) - derived from cssVariables
316
- textColor: themeVariables["--button-style-text"] || "#000000",
317
- backgroundColor: themeVariables["--button-style-background"] || "#ffffff",
318
- borderRadius: themeVariables["--button-style-inner-radius"] || "12px",
319
- borderColor: themeVariables["--button-style-border-color"] || "#e5e7eb",
320
- backgroundHover: themeVariables["--button-style-background-hover"] || "#f3f4f6",
321
- contrastColor: themeVariables["--button-style-contrast-color"] || "#ffffff",
322
- textHoverColor: themeVariables["--linkHoverText"] || "#111827",
323
- },
324
- };
325
-
326
- // Apply theme CSS variables on mount
327
- if (themeVariables && window.__linkapp_applyTheme) {
328
- window.__linkapp_applyTheme(themeVariables);
329
- }
330
-
331
- const rootElement = document.getElementById("root");
332
- if (!rootElement) {
333
- throw new Error("Root element not found");
334
- }
335
-
336
- createRoot(rootElement).render(
337
- <StrictMode>
338
- {Layout ? (
339
- <Layout theme={mergedProps.theme}>
340
- <Classic {...mergedProps} />
341
- </Layout>
342
- ) : (
343
- <Classic {...mergedProps} />
344
- )}
345
- </StrictMode>,
346
- );
@@ -1,34 +0,0 @@
1
- import { defineConfig } from 'vite'
2
- import react from '@vitejs/plugin-react'
3
- import tailwindcss from '@tailwindcss/vite'
4
- import { resolve } from 'path'
5
-
6
- export default defineConfig({
7
- plugins: [react(), tailwindcss()],
8
- root: resolve(__dirname),
9
- server: {
10
- port: 3000,
11
- strictPort: true,
12
- },
13
- resolve: {
14
- alias: {
15
- '@': resolve(__dirname, '..'),
16
- '@/components': resolve(__dirname, 'components'),
17
- '@/lib': resolve(__dirname, 'lib'),
18
- },
19
- },
20
- // Define fallback values - these will be overridden by dev.ts
21
- define: {
22
- __PREVIEW_PROPS__: 'undefined',
23
- __SETTINGS_CONFIG__: 'undefined',
24
- },
25
- build: {
26
- rollupOptions: {
27
- input: {
28
- main: resolve(__dirname, 'index.html'),
29
- classic: resolve(__dirname, 'classic.html'),
30
- featured: resolve(__dirname, 'featured.html'),
31
- },
32
- },
33
- },
34
- })