create-bw-app 0.20.0 → 0.21.0
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
|
@@ -171,16 +171,16 @@ export const PLATFORM_STARTER_FILES = [
|
|
|
171
171
|
];
|
|
172
172
|
|
|
173
173
|
export const APP_DEPENDENCY_DEFAULTS = {
|
|
174
|
-
"@brightweblabs/app-shell": "^0.8.
|
|
175
|
-
"@brightweblabs/core-auth": "^0.
|
|
176
|
-
"@brightweblabs/infra": "^0.4.
|
|
177
|
-
"@brightweblabs/module-admin": "^0.
|
|
178
|
-
"@brightweblabs/module-crm": "^0.10.
|
|
179
|
-
"@brightweblabs/module-marketing": "^0.2.
|
|
180
|
-
"@brightweblabs/module-orgs": "^0.3.
|
|
181
|
-
"@brightweblabs/module-projects": "^0.9.
|
|
182
|
-
"@brightweblabs/theme": "^0.
|
|
183
|
-
"@brightweblabs/ui": "^1.
|
|
174
|
+
"@brightweblabs/app-shell": "^0.8.1",
|
|
175
|
+
"@brightweblabs/core-auth": "^0.8.0",
|
|
176
|
+
"@brightweblabs/infra": "^0.4.1",
|
|
177
|
+
"@brightweblabs/module-admin": "^0.6.0",
|
|
178
|
+
"@brightweblabs/module-crm": "^0.10.2",
|
|
179
|
+
"@brightweblabs/module-marketing": "^0.2.11",
|
|
180
|
+
"@brightweblabs/module-orgs": "^0.3.12",
|
|
181
|
+
"@brightweblabs/module-projects": "^0.9.3",
|
|
182
|
+
"@brightweblabs/theme": "^0.6.0",
|
|
183
|
+
"@brightweblabs/ui": "^1.3.0",
|
|
184
184
|
"geist": "1.7.2",
|
|
185
185
|
"lucide-react": "^1.8.0",
|
|
186
186
|
"next": "^16.0.0",
|
package/src/generator.mjs
CHANGED
|
@@ -1088,7 +1088,7 @@ export function createOptionalModuleRouteFiles(selectedModules) {
|
|
|
1088
1088
|
|
|
1089
1089
|
if (adminEnabled) {
|
|
1090
1090
|
dependencyImports.push(
|
|
1091
|
-
'import { getAdminUserInvitationDetails, registerUserFromAdminInvitation } from "@brightweblabs/module-admin";',
|
|
1091
|
+
'import { acceptAdminUserInvitation, getAdminUserInvitationDetails, registerUserFromAdminInvitation } from "@brightweblabs/module-admin";',
|
|
1092
1092
|
);
|
|
1093
1093
|
}
|
|
1094
1094
|
if (orgsEnabled) {
|
|
@@ -1107,6 +1107,7 @@ export function createOptionalModuleRouteFiles(selectedModules) {
|
|
|
1107
1107
|
'import { requireServerUserAccess } from "@brightweblabs/core-auth/server";',
|
|
1108
1108
|
'import { requireServiceRoleClient } from "@brightweblabs/infra/server";',
|
|
1109
1109
|
"import {",
|
|
1110
|
+
" acceptAdminUserInvitation,",
|
|
1110
1111
|
" getAdminUserInvitationDetails,",
|
|
1111
1112
|
" registerUserFromAdminInvitation,",
|
|
1112
1113
|
'} from "@brightweblabs/module-admin";',
|
|
@@ -1132,6 +1133,7 @@ export function createOptionalModuleRouteFiles(selectedModules) {
|
|
|
1132
1133
|
" ensureCrmContactForProfile,",
|
|
1133
1134
|
" }),",
|
|
1134
1135
|
" registerAdminInvitation: registerUserFromAdminInvitation,",
|
|
1136
|
+
" acceptAdminInvitation: acceptAdminUserInvitation,",
|
|
1135
1137
|
" acceptOrganizationInvitation: (client: never, input: {",
|
|
1136
1138
|
" invitationId: string;",
|
|
1137
1139
|
" profileId: string;",
|
|
@@ -1174,6 +1176,7 @@ export function createOptionalModuleRouteFiles(selectedModules) {
|
|
|
1174
1176
|
" ensureCrmContactForProfile,",
|
|
1175
1177
|
" }),",
|
|
1176
1178
|
" registerAdminInvitation: registerUserFromAdminInvitation,",
|
|
1179
|
+
...(adminEnabled ? [" acceptAdminInvitation: acceptAdminUserInvitation,"] : []),
|
|
1177
1180
|
" acceptOrganizationInvitation: (client: never, input: {",
|
|
1178
1181
|
" invitationId: string;",
|
|
1179
1182
|
" profileId: string;",
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { requireServerUserAccess } from "@brightweblabs/core-auth/server";
|
|
2
2
|
import { requireServiceRoleClient } from "@brightweblabs/infra/server";
|
|
3
3
|
import {
|
|
4
|
+
acceptAdminUserInvitation,
|
|
4
5
|
getAdminUserInvitationDetails,
|
|
5
6
|
registerUserFromAdminInvitation,
|
|
6
7
|
} from "@brightweblabs/module-admin";
|
|
@@ -26,6 +27,7 @@ export const invitationHttpDependencies = {
|
|
|
26
27
|
ensureCrmContactForProfile,
|
|
27
28
|
}),
|
|
28
29
|
registerAdminInvitation: registerUserFromAdminInvitation,
|
|
30
|
+
acceptAdminInvitation: acceptAdminUserInvitation,
|
|
29
31
|
acceptOrganizationInvitation: (client: never, input: {
|
|
30
32
|
invitationId: string;
|
|
31
33
|
profileId: string;
|