@nextblock-cms/db 0.2.14 → 0.2.15

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nextblock-cms/db",
3
- "version": "0.2.14",
3
+ "version": "0.2.15",
4
4
  "main": "index.cjs.js",
5
5
  "module": "index.es.js",
6
6
  "types": "index.d.ts",
@@ -110,7 +110,7 @@ BEGIN
110
110
  {
111
111
  "block_type": "text",
112
112
  "content": {
113
- "html_content": "<div class='p-6 border border-white/30 rounded-3xl bg-slate-900/70 backdrop-blur space-y-4 text-white shadow-2xl'><div><p class='text-xs text-white/70 uppercase tracking-wide'>Why teams switch</p><p class='text-2xl font-semibold mt-2'>100% Lighthouse</p><p class='text-sm text-white/80'>Edge-rendered marketing sites, launches, and docs with uncompromising performance.</p></div><ul class='space-y-2 text-sm text-white/80'><li>Next.js 15 with ISR and edge caching</li><li>Supabase auth, data, and storage</li><li>Notion-style block editor powered by Tiptap</li></ul><div class='rounded-3xl overflow-hidden border border-white/20'><img src='/images/NBcover.webp' alt='Nextblock cover showcasing dashboards and blocks' class='w-full h-auto object-cover' /></div></div>"
113
+ "html_content": "<div class='p-6 border border-white/30 rounded-3xl bg-slate-900/70 backdrop-blur space-y-4 text-white shadow-2xl'><div><p class='text-xs text-white/70 uppercase tracking-wide'>Why teams switch</p><p class='text-2xl font-semibold mt-2'>100% Lighthouse</p><p class='text-sm text-white/80'>Edge-rendered marketing sites, launches, and docs with uncompromising performance.</p></div><ul class='space-y-2 text-sm text-white/80'><li>Next.js 16 with ISR and edge caching</li><li>Supabase auth, data, and storage</li><li>Notion-style block editor powered by Tiptap</li></ul><div class='rounded-3xl overflow-hidden border border-white/20'><img src='/images/NBcover.webp' alt='Nextblock cover showcasing dashboards and blocks' class='w-full h-auto object-cover' /></div></div>"
114
114
  }
115
115
  }
116
116
  ]
@@ -202,7 +202,7 @@ BEGIN
202
202
  {
203
203
  "block_type": "text",
204
204
  "content": {
205
- "html_content": "<div class='grid md:grid-cols-2 gap-6 mt-8 text-white'><div class='p-6 rounded-2xl border border-white/20 bg-white/5'><h3 class='text-lg font-semibold mb-4'>For Content Creators & Editors</h3><ul class='space-y-3 text-sm text-white/80'><li><strong>Intuitive Block Editor:</strong> Drag-and-drop layouts with a Notion-like interface.</li><li><strong>Rich Content Blocks:</strong> Deploy heroes, galleries, testimonials, and more in one click.</li><li><strong>Effortless Media Management:</strong> Organize assets with folders, tags, and bulk actions.</li><li><strong>Worry-Free Revisions:</strong> Automatic version history with instant restore.</li><li><strong>Built-in Bilingual Support:</strong> Publish multi-language content from a single workspace.</li><li><strong>Real-time Collaboration Prep:</strong> Presence indicators and content locks prevent collisions.</li></ul></div><div class='p-6 rounded-2xl border border-white/25 bg-gradient-to-br from-white/10 to-white/5'><h3 class='text-lg font-semibold mb-4'>For Developers & Agencies</h3><ul class='space-y-3 text-sm text-white/80'><li><strong>Next.js 15 Core:</strong> Server Components, ISR, and Edge Functions ready out of the box.</li><li><strong>Supabase Integration:</strong> Postgres, auth, storage, and real-time APIs without glue code.</li><li><strong>Monorepo Ready:</strong> Nx-powered dev experience for scalable architectures.</li><li><strong>Extensible Block SDK:</strong> Ship fully typed custom blocks and widgets.</li><li><strong>Powerful CLI:</strong> Scaffold projects, modules, and admin flows from the terminal.</li><li><strong>Full Self-Hosting Control:</strong> Deploy anywhere for complete ownership.</li></ul></div></div>"
205
+ "html_content": "<div class='grid md:grid-cols-2 gap-6 mt-8 text-white'><div class='p-6 rounded-2xl border border-white/20 bg-white/5'><h3 class='text-lg font-semibold mb-4'>For Content Creators & Editors</h3><ul class='space-y-3 text-sm text-white/80'><li><strong>Intuitive Block Editor:</strong> Drag-and-drop layouts with a Notion-like interface.</li><li><strong>Rich Content Blocks:</strong> Deploy heroes, galleries, testimonials, and more in one click.</li><li><strong>Effortless Media Management:</strong> Organize assets with folders, tags, and bulk actions.</li><li><strong>Worry-Free Revisions:</strong> Automatic version history with instant restore.</li><li><strong>Built-in Bilingual Support:</strong> Publish multi-language content from a single workspace.</li><li><strong>Real-time Collaboration Prep:</strong> Presence indicators and content locks prevent collisions.</li></ul></div><div class='p-6 rounded-2xl border border-white/25 bg-gradient-to-br from-white/10 to-white/5'><h3 class='text-lg font-semibold mb-4'>For Developers & Agencies</h3><ul class='space-y-3 text-sm text-white/80'><li><strong>Next.js 16 Core:</strong> Server Components, ISR, and Edge Functions ready out of the box.</li><li><strong>Supabase Integration:</strong> Postgres, auth, storage, and real-time APIs without glue code.</li><li><strong>Monorepo Ready:</strong> Nx-powered dev experience for scalable architectures.</li><li><strong>Extensible Block SDK:</strong> Ship fully typed custom blocks and widgets.</li><li><strong>Powerful CLI:</strong> Scaffold projects, modules, and admin flows from the terminal.</li><li><strong>Full Self-Hosting Control:</strong> Deploy anywhere for complete ownership.</li></ul></div></div>"
206
206
  }
207
207
  }
208
208
  ]
@@ -492,7 +492,7 @@ BEGIN
492
492
  { "block_type": "text", "content": { "html_content": "<div class='flex flex-wrap justify-center gap-6 text-sm uppercase tracking-wide text-muted-foreground mt-6'><a href='https://github.com/Webman-Dev' target='_blank' rel='noopener noreferrer'>GitHub</a><a href='https://x.com/NextBlockCMS' target='_blank' rel='noopener noreferrer'>X</a><a href='https://www.linkedin.com/in/nextblock/' target='_blank' rel='noopener noreferrer'>LinkedIn</a><a href='https://dev.to/nextblockcms' target='_blank' rel='noopener noreferrer'>Dev.to</a><a href='https://www.npmjs.com/~nextblockcms' target='_blank' rel='noopener noreferrer'>npm</a></div>" } }
493
493
  ],
494
494
  [
495
- { "block_type": "text", "content": { "html_content": "<div class='p-6 border border-white/30 rounded-3xl bg-slate-900/70 backdrop-blur space-y-4 text-white shadow-2xl'><div><p class='text-xs text-white/70 uppercase tracking-wide'>Pourquoi migrer</p><p class='text-2xl font-semibold mt-2'>100% Lighthouse</p><p class='text-sm text-white/80'>Sites marketing et docs rendus à l'edge avec des performances irréprochables.</p></div><ul class='space-y-2 text-sm text-white/80'><li>Next.js 15 avec ISR et cache edge</li><li>Supabase pour l'auth, les données et le stockage</li><li>Éditeur de blocs type Notion sur Tiptap</li></ul><div class='rounded-3xl overflow-hidden border border-white/20'><img src='/images/NBcover.webp' alt='Couverture Nextblock avec tableaux de bord et blocs' class='w-full h-auto object-cover' /></div></div>" } }
495
+ { "block_type": "text", "content": { "html_content": "<div class='p-6 border border-white/30 rounded-3xl bg-slate-900/70 backdrop-blur space-y-4 text-white shadow-2xl'><div><p class='text-xs text-white/70 uppercase tracking-wide'>Pourquoi migrer</p><p class='text-2xl font-semibold mt-2'>100% Lighthouse</p><p class='text-sm text-white/80'>Sites marketing et docs rendus à l'edge avec des performances irréprochables.</p></div><ul class='space-y-2 text-sm text-white/80'><li>Next.js 16 avec ISR et cache edge</li><li>Supabase pour l'auth, les données et le stockage</li><li>Éditeur de blocs type Notion sur Tiptap</li></ul><div class='rounded-3xl overflow-hidden border border-white/20'><img src='/images/NBcover.webp' alt='Couverture Nextblock avec tableaux de bord et blocs' class='w-full h-auto object-cover' /></div></div>" } }
496
496
  ]
497
497
  ]
498
498
  }$$::jsonb,
@@ -543,7 +543,7 @@ BEGIN
543
543
  { "block_type": "heading", "content": { "level": 2, "text_content": "Conçu avec les meilleurs outils.", "textAlign": "center" } },
544
544
  { "block_type": "text", "content": { "html_content": "<p class='text-white/80 text-center max-w-2xl mx-auto'>Chaque couche de NextBlock repose sur des technologies éprouvées pour offrir une expérience familière, performante et fiable.</p><div class='grid grid-cols-2 sm:grid-cols-4 lg:grid-cols-8 gap-4 mt-8 text-sm font-semibold text-center text-white'><div class='p-3 rounded-xl border border-white/30 bg-white/5'>Next.js</div><div class='p-3 rounded-xl border border-white/30 bg-white/5'>React</div><div class='p-3 rounded-xl border border-white/30 bg-white/5'>Supabase</div><div class='p-3 rounded-xl border border-white/30 bg-white/5'>Tailwind CSS</div><div class='p-3 rounded-xl border border-white/30 bg-white/5'>shadcn/ui</div><div class='p-3 rounded-xl border border-white/30 bg-white/5'>Tiptap</div><div class='p-3 rounded-xl border border-white/30 bg-white/5'>Vercel</div><div class='p-3 rounded-xl border border-white/30 bg-white/5'>Nx</div></div>" } },
545
545
  { "block_type": "heading", "content": { "level": 2, "text_content": "Puissant pour les développeurs. Intuitif pour les éditeurs.", "textAlign": "center" } },
546
- { "block_type": "text", "content": { "html_content": "<div class='grid md:grid-cols-2 gap-6 mt-8 text-white'><div class='p-6 rounded-2xl border border-white/20 bg-white/5'><h3 class='text-lg font-semibold mb-4'>Pour les créateurs de contenu</h3><ul class='space-y-3 text-sm text-white/80'><li><strong>Éditeur de blocs :</strong> glisser-déposer façon Notion.</li><li><strong>Blocs riches :</strong> héros, galeries, témoignages.</li><li><strong>Médiathèque :</strong> dossiers, tags et actions groupées.</li><li><strong>Versions sécurisées :</strong> historique et restauration instantanée.</li><li><strong>Support bilingue :</strong> gérez plusieurs langues depuis un seul espace.</li><li><strong>Collaboration prête :</strong> présences et verrous pour éviter les conflits.</li></ul></div><div class='p-6 rounded-2xl border border-white/25 bg-gradient-to-br from-white/10 to-white/5'><h3 class='text-lg font-semibold mb-4'>Pour développeurs et agences</h3><ul class='space-y-3 text-sm text-white/80'><li><strong>Next.js 15 :</strong> Server Components, ISR et Edge prêts à l'emploi.</li><li><strong>Supabase :</strong> Postgres, auth, stockage, temps réel.</li><li><strong>Monorepo Nx :</strong> dépendances lisibles et centrales.</li><li><strong>SDK de blocs :</strong> widgets typés et extensibles.</li><li><strong>CLI :</strong> générez modules et flux admin en minutes.</li><li><strong>Auto-hébergement :</strong> gardez la maîtrise de vos données.</li></ul></div></div>" } }
546
+ { "block_type": "text", "content": { "html_content": "<div class='grid md:grid-cols-2 gap-6 mt-8 text-white'><div class='p-6 rounded-2xl border border-white/20 bg-white/5'><h3 class='text-lg font-semibold mb-4'>Pour les créateurs de contenu</h3><ul class='space-y-3 text-sm text-white/80'><li><strong>Éditeur de blocs :</strong> glisser-déposer façon Notion.</li><li><strong>Blocs riches :</strong> héros, galeries, témoignages.</li><li><strong>Médiathèque :</strong> dossiers, tags et actions groupées.</li><li><strong>Versions sécurisées :</strong> historique et restauration instantanée.</li><li><strong>Support bilingue :</strong> gérez plusieurs langues depuis un seul espace.</li><li><strong>Collaboration prête :</strong> présences et verrous pour éviter les conflits.</li></ul></div><div class='p-6 rounded-2xl border border-white/25 bg-gradient-to-br from-white/10 to-white/5'><h3 class='text-lg font-semibold mb-4'>Pour développeurs et agences</h3><ul class='space-y-3 text-sm text-white/80'><li><strong>Next.js 16 :</strong> Server Components, ISR et Edge prêts à l'emploi.</li><li><strong>Supabase :</strong> Postgres, auth, stockage, temps réel.</li><li><strong>Monorepo Nx :</strong> dépendances lisibles et centrales.</li><li><strong>SDK de blocs :</strong> widgets typés et extensibles.</li><li><strong>CLI :</strong> générez modules et flux admin en minutes.</li><li><strong>Auto-hébergement :</strong> gardez la maîtrise de vos données.</li></ul></div></div>" } }
547
547
  ]
548
548
  ]
549
549
  }$$::jsonb,
@@ -35,7 +35,7 @@ SELECT
35
35
  <p>Within <code>apps/nextblock/app/cms</code>, each feature area—pages, posts, media, navigation, users, settings—follows a predictable file pattern: a list page, creation and edit routes, server actions, and scoped client components. The root CMS layout enforces authentication, builds the shell (sidebar, responsive header, profile menu), and injects role-aware navigation. That means writers can jump straight into the block editor while admins unlock additional menus such as language management or user provisioning, all without duplicating layout logic.</p>
36
36
  <p>Server actions wrap Supabase calls so mutations never leak credentials into the browser. Media uploads coordinate with Cloudflare R2, navigation management includes drag-and-drop ordering, and every table interaction respects the row-level security policies defined in the Supabase migrations—e.g., only admins and writers can mutate pages or posts while anonymous traffic can only read published content.</p>
37
37
  <h3>Tech Stack and Runtime</h3>
38
- <p>The stack highlighted in the project README—Next.js 15, Supabase, Tailwind CSS, and shadcn/ui—was selected to balance developer velocity with runtime performance. Next.js App Router unlocks Server Components, streaming, and incremental static regeneration so marketing experiences remain edge-fast. Supabase covers Postgres, Auth, and Storage, shrinking the operational footprint while still allowing custom SQL migrations. Tailwind plus shadcn/ui provide composable building blocks so the CMS interface, marketing site, and generated client projects all inherit the same visual language.</p>
38
+ <p>The stack highlighted in the project README—Next.js 16, Supabase, Tailwind CSS, and shadcn/ui—was selected to balance developer velocity with runtime performance. Next.js App Router unlocks Server Components, streaming, and incremental static regeneration so marketing experiences remain edge-fast. Supabase covers Postgres, Auth, and Storage, shrinking the operational footprint while still allowing custom SQL migrations. Tailwind plus shadcn/ui provide composable building blocks so the CMS interface, marketing site, and generated client projects all inherit the same visual language.</p>
39
39
  <p>Nx tooling ties it together. Common commands such as <code>nx serve nextblock</code>, <code>nx build nextblock</code>, or workspace-wide tasks like <code>nx run-many -t lint --all</code> respect dependency caching, so even large rebuilds feel snappy during the 100-day roadmap.</p>
40
40
  <pre><code>nx serve nextblock
41
41
  nx run-many -t build --all
@@ -74,7 +74,7 @@ SELECT
74
74
  </aside>
75
75
  </div>
76
76
  <h3>Stack technique et exécution</h3>
77
- <p>Le stack—Next.js 15, Supabase, Tailwind CSS, shadcn/ui—équilibre vélocité et performance. L'App Router active les Server Components et l'ISR pour un rendu edge rapide. Supabase gère Postgres/Auth/Storage, réduisant l'opérationnel tout en gardant la liberté SQL. Tailwind + shadcn/ui fournissent des blocs réutilisables pour le CMS, le site marketing et les projets générés.</p>
77
+ <p>Le stack—Next.js 16, Supabase, Tailwind CSS, shadcn/ui—équilibre vélocité et performance. L'App Router active les Server Components et l'ISR pour un rendu edge rapide. Supabase gère Postgres/Auth/Storage, réduisant l'opérationnel tout en gardant la liberté SQL. Tailwind + shadcn/ui fournissent des blocs réutilisables pour le CMS, le site marketing et les projets générés.</p>
78
78
  <pre><code>nx serve nextblock
79
79
  nx run-many -t build --all
80
80
  supabase db push