@infuro/cms-core 1.0.44 → 1.0.46
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/README.md +19 -2
- package/dist/admin.cjs +1413 -620
- package/dist/admin.d.cts +8 -2
- package/dist/admin.d.ts +8 -2
- package/dist/admin.js +1414 -621
- package/dist/api.cjs +40 -37
- package/dist/api.d.cts +3 -1
- package/dist/api.d.ts +3 -1
- package/dist/api.js +8 -5
- package/dist/auth.cjs +23 -23
- package/dist/auth.d.cts +1 -0
- package/dist/auth.d.ts +1 -0
- package/dist/auth.js +2 -2
- package/dist/chunk-2KUCQVAQ.js +936 -0
- package/dist/chunk-3K5AIEIZ.js +256 -0
- package/dist/{chunk-I6NH72MO.js → chunk-57O3HZPG.js} +9 -1
- package/dist/chunk-7PMHZRF3.cjs +872 -0
- package/dist/chunk-BXYZDMTZ.cjs +953 -0
- package/dist/chunk-CQHXW4TR.js +107 -0
- package/dist/{chunk-NNQBWDCI.js → chunk-CRYKVJTO.js} +55 -959
- package/dist/chunk-DBPSJYLZ.js +47 -0
- package/dist/{chunk-TAHX46EI.cjs → chunk-FBKDMRQL.cjs} +9 -1
- package/dist/chunk-GUSHM5HN.js +862 -0
- package/dist/chunk-HY3AXLOI.cjs +265 -0
- package/dist/chunk-L3525VXI.js +243 -0
- package/dist/{chunk-ZMRQ72F6.cjs → chunk-NBY4NVTY.cjs} +3 -3
- package/dist/chunk-OY2YTBMP.cjs +50 -0
- package/dist/{chunk-BLR6H5GL.js → chunk-SF2XKMCI.js} +3 -3
- package/dist/{chunk-22FFHLTO.cjs → chunk-TCSGFAWB.cjs} +56 -970
- package/dist/{chunk-P2IWWBJV.cjs → chunk-UDVLFVEC.cjs} +1314 -601
- package/dist/{chunk-SQGBHYJF.js → chunk-UKC3HYXI.js} +1245 -548
- package/dist/chunk-V25RDUOU.cjs +248 -0
- package/dist/chunk-XMRMZ6NQ.cjs +109 -0
- package/dist/cli.cjs +9 -4
- package/dist/cli.js +9 -4
- package/dist/{email-queue-TPZWLTIV.cjs → email-queue-6NJY6HNM.cjs} +7 -5
- package/dist/email-queue-OI2HSCGE.js +4 -0
- package/dist/erp-order-invoice-3GXDE443.js +3 -0
- package/dist/erp-order-invoice-EYYNR526.cjs +24 -0
- package/dist/index.cjs +426 -359
- package/dist/index.d.cts +308 -20
- package/dist/index.d.ts +308 -20
- package/dist/index.js +31 -110
- package/dist/migrations/1781800000000-CustomerPhoneNullable.ts +53 -0
- package/dist/migrations/1781810000000-OrderItemsVariantId.ts +44 -0
- package/dist/migrations/1781900000000-UserInviteStatusToken.ts +46 -0
- package/dist/migrations/1782000000000-ComboSlug.ts +58 -0
- package/dist/migrations/1782100000000-DiscountDeviceType.ts +20 -0
- package/dist/order-inventory-2MYRKEPC.cjs +39 -0
- package/dist/order-inventory-76V4XIGW.js +2 -0
- package/dist/order-notification-dispatcher-SBQAMM5V.cjs +21 -0
- package/dist/{order-notification-dispatcher-XWIJYDGA.js → order-notification-dispatcher-ZJZB2HUN.js} +5 -2
- package/dist/retire-soft-deleted-unique-5VXBA5XX.cjs +15 -0
- package/dist/retire-soft-deleted-unique-NXQIH4BC.js +2 -0
- package/dist/send-order-placed-emails-B5ZVJT7T.cjs +15 -0
- package/dist/send-order-placed-emails-WPI37KRZ.js +6 -0
- package/package.json +5 -4
- package/src/admin/admin.css +27 -24
- package/dist/chunk-5ELSW2UP.js +0 -150
- package/dist/chunk-PNOKNSG2.cjs +0 -222
- package/dist/chunk-WEMDMVHQ.js +0 -216
- package/dist/chunk-XW5ATPRW.cjs +0 -155
- package/dist/email-queue-CGZBVVAS.js +0 -2
- package/dist/erp-order-invoice-3YISSOWW.js +0 -3
- package/dist/erp-order-invoice-ZR5F2KTA.cjs +0 -12
- package/dist/order-notification-dispatcher-RU7BTGGX.cjs +0 -18
package/README.md
CHANGED
|
@@ -406,10 +406,21 @@ export async function middleware(request: NextRequest) {
|
|
|
406
406
|
}
|
|
407
407
|
|
|
408
408
|
export const config = {
|
|
409
|
-
|
|
409
|
+
// Next.js matchers don't support lookaheads — don't match /api here or large
|
|
410
|
+
// uploads break FormData. API auth still runs in route handlers.
|
|
411
|
+
// Also set experimental.proxyClientMaxBodySize: '100mb' in next.config.
|
|
412
|
+
matcher: ['/admin/:path*'],
|
|
410
413
|
};
|
|
411
414
|
```
|
|
412
415
|
|
|
416
|
+
Also raise Next.js body limits in `next.config` (needed if middleware/proxy ever matches upload routes):
|
|
417
|
+
|
|
418
|
+
```ts
|
|
419
|
+
experimental: {
|
|
420
|
+
proxyClientMaxBodySize: '100mb',
|
|
421
|
+
},
|
|
422
|
+
```
|
|
423
|
+
|
|
413
424
|
### 12. Add providers
|
|
414
425
|
|
|
415
426
|
Wrap your root layout with session and theme providers:
|
|
@@ -424,7 +435,7 @@ import { Toaster } from "sonner";
|
|
|
424
435
|
export function Providers({ children }: { children: React.ReactNode }) {
|
|
425
436
|
return (
|
|
426
437
|
<SessionProvider>
|
|
427
|
-
<ThemeProvider attribute="class" defaultTheme="
|
|
438
|
+
<ThemeProvider attribute="class" defaultTheme="light" forcedTheme="light" enableSystem={false} enableColorScheme>
|
|
428
439
|
{children}
|
|
429
440
|
<Toaster position="top-right" />
|
|
430
441
|
</ThemeProvider>
|
|
@@ -624,6 +635,12 @@ createCmsMiddleware({
|
|
|
624
635
|
|
|
625
636
|
## Tailwind Config
|
|
626
637
|
|
|
638
|
+
Admin is light-only. With **Tailwind v4**, add this so `dark:` utilities follow the `.dark` class (not the OS preference); otherwise headings/labels can render white-on-white when the browser is in dark mode:
|
|
639
|
+
|
|
640
|
+
```css
|
|
641
|
+
@custom-variant dark (&:where(.dark, .dark *));
|
|
642
|
+
```
|
|
643
|
+
|
|
627
644
|
The admin panel and UI components use shadcn/ui and require CSS variable-based color mappings. Your `tailwind.config.js` needs these in `theme.extend.colors`:
|
|
628
645
|
|
|
629
646
|
```js
|