create-bw-app 0.23.0 → 0.23.2

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,7 +1,7 @@
1
1
  {
2
2
  "name": "create-bw-app",
3
3
  "private": false,
4
- "version": "0.23.0",
4
+ "version": "0.23.2",
5
5
  "type": "module",
6
6
  "bin": {
7
7
  "create-bw-app": "bin/create-bw-app.mjs",
package/src/constants.mjs CHANGED
@@ -173,16 +173,16 @@ export const PLATFORM_STARTER_FILES = [
173
173
  ];
174
174
 
175
175
  export const APP_DEPENDENCY_DEFAULTS = {
176
- "@brightweblabs/app-shell": "^0.10.0",
177
- "@brightweblabs/core-auth": "^0.9.2",
176
+ "@brightweblabs/app-shell": "^0.10.1",
177
+ "@brightweblabs/core-auth": "^0.9.3",
178
178
  "@brightweblabs/infra": "^0.7.0",
179
- "@brightweblabs/module-admin": "^0.8.1",
180
- "@brightweblabs/module-crm": "^0.13.0",
181
- "@brightweblabs/module-marketing": "^0.3.0",
182
- "@brightweblabs/module-orgs": "^0.3.17",
183
- "@brightweblabs/module-projects": "^0.12.0",
179
+ "@brightweblabs/module-admin": "^0.8.2",
180
+ "@brightweblabs/module-crm": "^0.13.1",
181
+ "@brightweblabs/module-marketing": "^0.3.1",
182
+ "@brightweblabs/module-orgs": "^0.3.18",
183
+ "@brightweblabs/module-projects": "^0.12.3",
184
184
  "@brightweblabs/theme": "^0.7.1",
185
- "@brightweblabs/ui": "^1.4.1",
185
+ "@brightweblabs/ui": "^1.4.2",
186
186
  "geist": "1.7.2",
187
187
  "lucide-react": "^1.8.0",
188
188
  "next": "^16.0.0",
package/src/generator.mjs CHANGED
@@ -1031,8 +1031,9 @@ export function createModuleToolbarControlsConfig(selectedModules) {
1031
1031
  entries.push(' crm: () => <CrmToolbarControls />,');
1032
1032
  }
1033
1033
  if (selectedModules.includes("projects")) {
1034
- imports.push('import { ProjectsToolbarControls } from "@brightweblabs/module-projects/ui";');
1034
+ imports.push('import { ProjectBoardToolbarControls, ProjectsToolbarControls } from "@brightweblabs/module-projects/ui";');
1035
1035
  entries.push(' projects: () => <ProjectsToolbarControls />,');
1036
+ entries.push(' "project-board": () => <ProjectBoardToolbarControls />,');
1036
1037
  }
1037
1038
  if (selectedModules.includes("marketing")) {
1038
1039
  imports.push('import { MarketingToolbarControls } from "@brightweblabs/module-marketing/ui";');
package/src/upgrade.mjs CHANGED
@@ -37,7 +37,10 @@ export async function upgradeBrightwebApp(moduleKey, argvOptions = {}, runtimeOp
37
37
  const key = Object.keys(catalog).find((candidate) => catalog[candidate].packageName === update.packageName);
38
38
  if (key) catalog[key].version = cleanVersion(update.to) || catalog[key].version;
39
39
  }
40
- const moduleKeys = moduleKey ? [moduleKey] : Object.keys(appManifest.modules);
40
+ const installedMigrationKeys = Object.keys(appManifest.migrationCursor ?? {}).filter((key) => catalog[key]);
41
+ const moduleKeys = moduleKey
42
+ ? [moduleKey]
43
+ : Array.from(new Set([...installedMigrationKeys, ...Object.keys(appManifest.modules)]));
41
44
  const uncursored = [];
42
45
  for (const key of moduleKeys) {
43
46
  if (appManifest.migrationCursor?.[key] == null && (await getModuleMigrations(key, catalog[key])).length > 0) uncursored.push(key);
@@ -4,7 +4,7 @@ import type { ReactNode } from "react";
4
4
  import { resolveShellToolbarSurface, type ShellToolbarRouteConfig, type ShellToolbarSurface } from "@brightweblabs/app-shell";
5
5
  import { AdminToolbarControls } from "@brightweblabs/module-admin/ui";
6
6
  import { CrmToolbarControls } from "@brightweblabs/module-crm/ui";
7
- import { ProjectsToolbarControls } from "@brightweblabs/module-projects/ui";
7
+ import { ProjectBoardToolbarControls, ProjectsToolbarControls } from "@brightweblabs/module-projects/ui";
8
8
  import { MarketingToolbarControls } from "@brightweblabs/module-marketing/ui";
9
9
 
10
10
  // MANAGED BY BRIGHTWEB — regenerated when modules are added, removed, or updated.
@@ -12,6 +12,7 @@ const toolbarControlBySurface: Partial<Record<ShellToolbarSurface, () => ReactNo
12
12
  "admin-users": () => <AdminToolbarControls />,
13
13
  crm: () => <CrmToolbarControls />,
14
14
  projects: () => <ProjectsToolbarControls />,
15
+ "project-board": () => <ProjectBoardToolbarControls />,
15
16
  marketing: () => <MarketingToolbarControls />,
16
17
  };
17
18