create-bw-app 0.24.4 → 0.24.6
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
package/src/constants.mjs
CHANGED
|
@@ -175,14 +175,14 @@ export const PLATFORM_STARTER_FILES = [
|
|
|
175
175
|
];
|
|
176
176
|
|
|
177
177
|
export const APP_DEPENDENCY_DEFAULTS = {
|
|
178
|
-
"@brightweblabs/app-shell": "^0.
|
|
178
|
+
"@brightweblabs/app-shell": "^0.12.0",
|
|
179
179
|
"@brightweblabs/core-auth": "^0.10.3",
|
|
180
180
|
"@brightweblabs/infra": "^0.7.0",
|
|
181
|
-
"@brightweblabs/module-admin": "^0.8.
|
|
182
|
-
"@brightweblabs/module-crm": "^0.15.
|
|
183
|
-
"@brightweblabs/module-marketing": "^0.4.
|
|
184
|
-
"@brightweblabs/module-orgs": "^0.4.
|
|
185
|
-
"@brightweblabs/module-projects": "^0.
|
|
181
|
+
"@brightweblabs/module-admin": "^0.8.11",
|
|
182
|
+
"@brightweblabs/module-crm": "^0.15.7",
|
|
183
|
+
"@brightweblabs/module-marketing": "^0.4.6",
|
|
184
|
+
"@brightweblabs/module-orgs": "^0.4.6",
|
|
185
|
+
"@brightweblabs/module-projects": "^0.15.0",
|
|
186
186
|
"@brightweblabs/theme": "^0.7.4",
|
|
187
187
|
"@brightweblabs/ui": "^1.4.7",
|
|
188
188
|
"geist": "1.7.2",
|
package/src/update.mjs
CHANGED
|
@@ -612,6 +612,7 @@ export async function buildBrightwebAppUpdatePlan(argvOptions = {}, runtimeOptio
|
|
|
612
612
|
manifest,
|
|
613
613
|
installedModules,
|
|
614
614
|
installedBrightwebPackages: Array.from(installedBrightwebPackagesMap.keys()).sort(),
|
|
615
|
+
targetVersions: canonicalVersions,
|
|
615
616
|
packageUpdates: packageJsonUpdate.packageUpdates,
|
|
616
617
|
configFilesToWrite: fileWrites.filter((entry) => entry.type === "config").map((entry) => entry.relativePath),
|
|
617
618
|
starterFilesMissing: starterFilesMissing.map((entry) => entry.relativePath),
|
package/src/upgrade.mjs
CHANGED
|
@@ -33,6 +33,10 @@ export async function upgradeBrightwebApp(moduleKey, argvOptions = {}, runtimeOp
|
|
|
33
33
|
plan.starterFilesMissing = Array.from(new Set([...plan.starterFilesMissing, ...missing]));
|
|
34
34
|
|
|
35
35
|
const catalog = await loadModuleCatalog({ targetDir, workspaceRoot });
|
|
36
|
+
for (const entry of Object.values(catalog)) {
|
|
37
|
+
const targetVersion = plan.targetVersions?.[entry.packageName];
|
|
38
|
+
if (targetVersion) entry.version = cleanVersion(targetVersion) || entry.version;
|
|
39
|
+
}
|
|
36
40
|
for (const update of plan.packageUpdates) {
|
|
37
41
|
const key = Object.keys(catalog).find((candidate) => catalog[candidate].packageName === update.packageName);
|
|
38
42
|
if (key) catalog[key].version = cleanVersion(update.to) || catalog[key].version;
|
|
@@ -60,7 +64,8 @@ export async function upgradeBrightwebApp(moduleKey, argvOptions = {}, runtimeOp
|
|
|
60
64
|
await applyMigrationWrites(migrationPlan.writes);
|
|
61
65
|
appManifest.migrationCursor = migrationPlan.nextCursor;
|
|
62
66
|
for (const [key, entry] of Object.entries(appManifest.modules)) {
|
|
63
|
-
|
|
67
|
+
const packageName = catalog[key]?.packageName;
|
|
68
|
+
if (catalog[key]?.packageRoot || plan.targetVersions?.[packageName]) entry.version = catalog[key].version;
|
|
64
69
|
}
|
|
65
70
|
for (const write of plan.fileWrites) {
|
|
66
71
|
const relativePath = write.relativePath;
|
|
@@ -11,7 +11,13 @@ async function getJson(path: string, signal?: AbortSignal) {
|
|
|
11
11
|
const dashboardClient: DashboardDataClient = {
|
|
12
12
|
getProjects: (options) => getJson("/api/dashboard/projects", options?.signal),
|
|
13
13
|
getCrm: (options) => getJson("/api/dashboard/crm", options?.signal),
|
|
14
|
-
getTasks: (options) =>
|
|
14
|
+
getTasks: (options) => {
|
|
15
|
+
const params = new URLSearchParams();
|
|
16
|
+
if (options?.page) params.set("page", String(options.page));
|
|
17
|
+
if (options?.pageSize) params.set("pageSize", String(options.pageSize));
|
|
18
|
+
const query = params.size ? `?${params.toString()}` : "";
|
|
19
|
+
return getJson(`/api/dashboard/tasks${query}`, options?.signal);
|
|
20
|
+
},
|
|
15
21
|
};
|
|
16
22
|
|
|
17
23
|
export function DashboardLiveMount() {
|