create-nextblock 0.12.3 → 0.12.4

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": "create-nextblock",
3
- "version": "0.12.3",
3
+ "version": "0.12.4",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -30,11 +30,20 @@ export type OnboardingStatus = {
30
30
  dismissed: boolean;
31
31
  };
32
32
 
33
- // Seeded defaults (libs/db migrations 008 + 010). The branding/copyright steps count as
34
- // "done" only when the value has been customized away from these — a fresh install ships
35
- // with the seeds, so a plain presence check would mark every step complete immediately.
33
+ // Seeded defaults (libs/db baseline seed 00000000000003 + migration 00000000000004). The
34
+ // branding/copyright steps count as "done" only when the value has been customized away from
35
+ // these — a fresh install ships with the seeds, so a plain presence check would mark every
36
+ // step complete immediately.
36
37
  const SEEDED_SITE_TITLE = 'NextBlock™ CMS';
37
- const SEEDED_LOGO_OBJECT_KEY = 'images/nextblock-logo-small.webp';
38
+ // Every object_key a fresh install may ship as the DEFAULT logo — the original baseline WebP
39
+ // and the migration-00000000000004 email-safe PNG (which repoints the seeded default). A logo
40
+ // counts as customized only when it is none of these; a new default swap must be added here or
41
+ // branding falsely reads as done out of the box. Mirrors BUNDLED_PUBLIC_MEDIA_KEYS in
42
+ // lib/media/resolveMediaUrl.ts.
43
+ const SEEDED_LOGO_OBJECT_KEYS = new Set<string>([
44
+ 'images/nextblock-logo-small.webp',
45
+ 'images/nextblock-logo-button-tiny.png',
46
+ ]);
38
47
  const SEEDED_COPYRIGHT: Record<string, string> = {
39
48
  en: '© {year} Nextblock CMS. All rights reserved.',
40
49
  fr: '© {year} Nextblock CMS. Tous droits réservés.',
@@ -88,7 +97,7 @@ export async function getOnboardingStatus(opts: {
88
97
  const siteTitle = typeof siteTitleRaw === 'string' ? siteTitleRaw.trim() : '';
89
98
  const siteTitleCustomized = siteTitle.length > 0 && siteTitle !== SEEDED_SITE_TITLE;
90
99
  const logoObjectKey = extractLogoObjectKey(logoRow);
91
- const logoCustomized = Boolean(logoObjectKey) && logoObjectKey !== SEEDED_LOGO_OBJECT_KEY;
100
+ const logoCustomized = Boolean(logoObjectKey) && !SEEDED_LOGO_OBJECT_KEYS.has(logoObjectKey ?? '');
92
101
 
93
102
  // Branding is "done" once the user renames the site or uploads their own logo — not merely
94
103
  // because the seeded NextBlock title/logo exist.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nextblock-cms/template",
3
- "version": "0.12.3",
3
+ "version": "0.12.4",
4
4
  "private": true,
5
5
  "scripts": {
6
6
  "dev": "next dev",