@morphika/andami 0.2.9 → 0.2.10
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 +8 -3
- package/admin/backups.ts +7 -0
- package/app/admin/backups/page.tsx +1 -0
- package/app/admin/layout.tsx +327 -274
- package/app/api/admin/backups/export/route.ts +76 -0
- package/app/api/admin/backups/prepare-export/route.ts +56 -0
- package/app/api/admin/backups/restore/route.ts +131 -0
- package/app/api/admin/backups/restore-data/route.ts +424 -0
- package/app/api/admin/backups/status/route.ts +35 -0
- package/app/api/custom-sections/[id]/route.ts +9 -5
- package/components/admin/backups/BackupsPage.tsx +1581 -0
- package/components/builder/CustomSectionInstanceCard.tsx +7 -3
- package/components/builder/ReadOnlyFrame.tsx +4 -2
- package/components/builder/settings-panel/CustomSectionSettings.tsx +5 -3
- package/lib/backup/export.ts +377 -0
- package/lib/backup/manifest.ts +121 -0
- package/lib/backup/r2-helpers.ts +294 -0
- package/lib/backup/restore.ts +266 -0
- package/lib/backup/sanity-ops.ts +194 -0
- package/lib/builder/serializer/normalizers.ts +1 -0
- package/lib/builder/store-canvas.ts +4 -0
- package/lib/builder/store.ts +1 -0
- package/lib/builder/types.ts +4 -0
- package/lib/security.ts +30 -0
- package/lib/security.ts.new +27 -0
- package/lib/storage/types.ts +33 -1
- package/lib/version.ts +7 -4
- package/package.json +17 -1
package/README.md
CHANGED
|
@@ -13,6 +13,7 @@ A reusable Visual Page Builder framework for Next.js. Build custom websites with
|
|
|
13
13
|
- **Navigation Builder** — Visual 12-column grid editor with drag & drop
|
|
14
14
|
- **Animation System** — Enter animations, hover effects (CSS + WebGL shaders), page transitions
|
|
15
15
|
- **Asset Management** — Cloudflare R2 storage with browser, thumbnails, and CDN serving
|
|
16
|
+
- **Full Site Backups** — Client-side ZIP export/restore. Browser talks directly to R2 (public CDN + presigned PUT URLs); Vercel only sees lightweight JSON, so backups never hit the 4.5 MB / 10s serverless limits
|
|
16
17
|
- **Setup Wizard** — Guided onboarding for new sites
|
|
17
18
|
- **Sanity v3 CMS** — Structured content with custom schemas, GROQ queries, and ISR
|
|
18
19
|
- **Vercel-Optimized** — Sanity CDN for public queries, 24h ISR, R2 direct CDN shortcut, bot guard middleware, aggressive robots.txt with crawl-delay — all tuned to minimize serverless CPU on Hobby tier
|
|
@@ -36,17 +37,21 @@ Next.js 16 (App Router) · Sanity v3 · Tailwind CSS v4 · Zustand · @dnd-kit
|
|
|
36
37
|
|
|
37
38
|
| Doc | Description |
|
|
38
39
|
|-----|-------------|
|
|
39
|
-
| [
|
|
40
|
+
| [Quick Start](docs/QUICK-START.md) | 5-minute quickstart |
|
|
40
41
|
| [Configuration](docs/CONFIGURATION.md) | `site.config.ts` reference |
|
|
41
42
|
| [Architecture](docs/ARCHITECTURE.md) | Technical architecture and data flow |
|
|
42
43
|
| [Blocks](docs/BLOCKS.md) | All block types with fields and options |
|
|
43
44
|
| [Builder](docs/BUILDER.md) | Page builder UI, interactions, store |
|
|
45
|
+
| [Canvas](docs/CANVAS.md) | Infinite canvas, zoom/pan, device frames |
|
|
44
46
|
| [CMS](docs/CMS.md) | Sanity schemas and GROQ queries |
|
|
47
|
+
| [Navigation](docs/NAVIGATION.md) | Navigation builder, grid editor, styling |
|
|
45
48
|
| [Assets](docs/ASSETS.md) | Storage, providers, thumbnails |
|
|
49
|
+
| [Backups](docs/BACKUPS.md) | Full site backup & restore (V2 client-side architecture) |
|
|
50
|
+
| [Thumbnails](docs/THUMBNAILS.md) | Thumbnail system and CLI tool |
|
|
46
51
|
| [Customization](docs/CUSTOMIZATION.md) | Custom blocks, fonts, styles |
|
|
52
|
+
| [Security](docs/SECURITY.md) | Auth, CSRF, input validation, encryption |
|
|
47
53
|
| [Deployment](docs/DEPLOYMENT.md) | Vercel, domains, R2 setup |
|
|
48
|
-
| [
|
|
49
|
-
| [Development](docs/DEVELOPMENT.md) | Framework + instance dev workflow |
|
|
54
|
+
| [Package Dev](docs/PACKAGE-DEV.md) | Dev workflow, npm link, publishing |
|
|
50
55
|
|
|
51
56
|
## License
|
|
52
57
|
|
package/admin/backups.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @morphika/andami/admin/backups — Backups page + types.
|
|
3
|
+
*/
|
|
4
|
+
export { default as BackupsPage } from "../app/admin/backups/page";
|
|
5
|
+
|
|
6
|
+
export type { BackupManifest, BackupStatus } from "../lib/backup/manifest";
|
|
7
|
+
export type { ExportData } from "../lib/backup/export";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "../../../components/admin/backups/BackupsPage";
|