@baseplate-dev/plugin-auth 2.0.4 → 2.0.5
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/dist/local-auth/admin/web.d.ts.map +1 -1
- package/dist/local-auth/admin/web.js +7 -4
- package/dist/local-auth/admin/web.js.map +1 -1
- package/dist/web/assets/{__federation_expose_local-authAdminWeb-RscG4AiS.js → __federation_expose_local-authAdminWeb-B6PdHqzu.js} +5 -5
- package/dist/web/assets/__federation_expose_local-authAdminWeb-B6PdHqzu.js.map +1 -0
- package/dist/web/assets/remoteEntry.js +1 -1
- package/package.json +11 -11
- package/dist/web/assets/__federation_expose_local-authAdminWeb-RscG4AiS.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"web.d.ts","sourceRoot":"","sources":["../../../src/local-auth/admin/web.ts"],"names":[],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"web.d.ts","sourceRoot":"","sources":["../../../src/local-auth/admin/web.ts"],"names":[],"mappings":";;;;AAWA,wBAsCG"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createPlatformPluginExport } from '@baseplate-dev/project-builder-lib';
|
|
1
|
+
import { createPlatformPluginExport, ModelUtils, } from '@baseplate-dev/project-builder-lib';
|
|
2
2
|
import { adminCrudActionWebSpec, adminCrudColumnWebSpec, } from '@baseplate-dev/project-builder-lib/web';
|
|
3
3
|
import { LOCAL_AUTH_MODELS } from '#src/local-auth/constants/model-names.js';
|
|
4
4
|
export default createPlatformPluginExport({
|
|
@@ -12,21 +12,24 @@ export default createPlatformPluginExport({
|
|
|
12
12
|
pluginKey,
|
|
13
13
|
name: 'manage-roles',
|
|
14
14
|
label: 'Manage Roles',
|
|
15
|
-
isAvailableForModel: (
|
|
15
|
+
isAvailableForModel: (definition, modelId) => ModelUtils.byIdOrThrow(definition, modelId).name ===
|
|
16
|
+
LOCAL_AUTH_MODELS.user,
|
|
16
17
|
getNewAction: () => ({ type: 'manage-roles', position: 'dropdown' }),
|
|
17
18
|
});
|
|
18
19
|
adminCrudActionWeb.registerActionWebConfig({
|
|
19
20
|
pluginKey,
|
|
20
21
|
name: 'reset-password',
|
|
21
22
|
label: 'Reset Password',
|
|
22
|
-
isAvailableForModel: (
|
|
23
|
+
isAvailableForModel: (definition, modelId) => ModelUtils.byIdOrThrow(definition, modelId).name ===
|
|
24
|
+
LOCAL_AUTH_MODELS.user,
|
|
23
25
|
getNewAction: () => ({ type: 'reset-password', position: 'dropdown' }),
|
|
24
26
|
});
|
|
25
27
|
adminCrudColumnWeb.registerColumnWebConfig({
|
|
26
28
|
pluginKey,
|
|
27
29
|
name: 'roles',
|
|
28
30
|
label: 'Roles',
|
|
29
|
-
isAvailableForModel: (
|
|
31
|
+
isAvailableForModel: (definition, modelId) => ModelUtils.byIdOrThrow(definition, modelId).name ===
|
|
32
|
+
LOCAL_AUTH_MODELS.user,
|
|
30
33
|
getNewColumn: () => ({ type: 'roles', label: 'Roles' }),
|
|
31
34
|
});
|
|
32
35
|
return {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"web.js","sourceRoot":"","sources":["../../../src/local-auth/admin/web.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"web.js","sourceRoot":"","sources":["../../../src/local-auth/admin/web.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,0BAA0B,EAC1B,UAAU,GACX,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,sBAAsB,EACtB,sBAAsB,GACvB,MAAM,wCAAwC,CAAC;AAEhD,OAAO,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAE7E,eAAe,0BAA0B,CAAC;IACxC,YAAY,EAAE;QACZ,kBAAkB,EAAE,sBAAsB;QAC1C,kBAAkB,EAAE,sBAAsB;KAC3C;IACD,OAAO,EAAE,EAAE;IACX,UAAU,EAAE,CAAC,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,EAAE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Shared } from './__federation_fn_import-v1QB_w7U.js';
|
|
2
2
|
import { L as LOCAL_AUTH_MODELS } from './model-names-CEoSIalq.js';
|
|
3
3
|
|
|
4
|
-
const {createPlatformPluginExport} = await importShared('@baseplate-dev/project-builder-lib');
|
|
4
|
+
const {createPlatformPluginExport,ModelUtils} = await importShared('@baseplate-dev/project-builder-lib');
|
|
5
5
|
|
|
6
6
|
const {adminCrudActionWebSpec,adminCrudColumnWebSpec} = await importShared('@baseplate-dev/project-builder-lib/web');
|
|
7
7
|
const web = createPlatformPluginExport({
|
|
@@ -15,21 +15,21 @@ const web = createPlatformPluginExport({
|
|
|
15
15
|
pluginKey,
|
|
16
16
|
name: "manage-roles",
|
|
17
17
|
label: "Manage Roles",
|
|
18
|
-
isAvailableForModel: (
|
|
18
|
+
isAvailableForModel: (definition, modelId) => ModelUtils.byIdOrThrow(definition, modelId).name === LOCAL_AUTH_MODELS.user,
|
|
19
19
|
getNewAction: () => ({ type: "manage-roles", position: "dropdown" })
|
|
20
20
|
});
|
|
21
21
|
adminCrudActionWeb.registerActionWebConfig({
|
|
22
22
|
pluginKey,
|
|
23
23
|
name: "reset-password",
|
|
24
24
|
label: "Reset Password",
|
|
25
|
-
isAvailableForModel: (
|
|
25
|
+
isAvailableForModel: (definition, modelId) => ModelUtils.byIdOrThrow(definition, modelId).name === LOCAL_AUTH_MODELS.user,
|
|
26
26
|
getNewAction: () => ({ type: "reset-password", position: "dropdown" })
|
|
27
27
|
});
|
|
28
28
|
adminCrudColumnWeb.registerColumnWebConfig({
|
|
29
29
|
pluginKey,
|
|
30
30
|
name: "roles",
|
|
31
31
|
label: "Roles",
|
|
32
|
-
isAvailableForModel: (
|
|
32
|
+
isAvailableForModel: (definition, modelId) => ModelUtils.byIdOrThrow(definition, modelId).name === LOCAL_AUTH_MODELS.user,
|
|
33
33
|
getNewColumn: () => ({ type: "roles", label: "Roles" })
|
|
34
34
|
});
|
|
35
35
|
return {};
|
|
@@ -37,4 +37,4 @@ const web = createPlatformPluginExport({
|
|
|
37
37
|
});
|
|
38
38
|
|
|
39
39
|
export { web as default };
|
|
40
|
-
//# sourceMappingURL=__federation_expose_local-authAdminWeb-
|
|
40
|
+
//# sourceMappingURL=__federation_expose_local-authAdminWeb-B6PdHqzu.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"__federation_expose_local-authAdminWeb-B6PdHqzu.js","sources":["../../../src/local-auth/admin/web.ts"],"sourcesContent":["import {\n createPlatformPluginExport,\n ModelUtils,\n} from '@baseplate-dev/project-builder-lib';\nimport {\n adminCrudActionWebSpec,\n adminCrudColumnWebSpec,\n} from '@baseplate-dev/project-builder-lib/web';\n\nimport { LOCAL_AUTH_MODELS } from '#src/local-auth/constants/model-names.js';\n\nexport default createPlatformPluginExport({\n dependencies: {\n adminCrudActionWeb: adminCrudActionWebSpec,\n adminCrudColumnWeb: adminCrudColumnWebSpec,\n },\n exports: {},\n initialize: ({ adminCrudActionWeb, adminCrudColumnWeb }, { pluginKey }) => {\n adminCrudActionWeb.registerActionWebConfig({\n pluginKey,\n name: 'manage-roles',\n label: 'Manage Roles',\n isAvailableForModel: (definition, modelId) =>\n ModelUtils.byIdOrThrow(definition, modelId).name ===\n LOCAL_AUTH_MODELS.user,\n getNewAction: () => ({ type: 'manage-roles', position: 'dropdown' }),\n });\n\n adminCrudActionWeb.registerActionWebConfig({\n pluginKey,\n name: 'reset-password',\n label: 'Reset Password',\n isAvailableForModel: (definition, modelId) =>\n ModelUtils.byIdOrThrow(definition, modelId).name ===\n LOCAL_AUTH_MODELS.user,\n getNewAction: () => ({ type: 'reset-password', position: 'dropdown' }),\n });\n\n adminCrudColumnWeb.registerColumnWebConfig({\n pluginKey,\n name: 'roles',\n label: 'Roles',\n isAvailableForModel: (definition, modelId) =>\n ModelUtils.byIdOrThrow(definition, modelId).name ===\n LOCAL_AUTH_MODELS.user,\n getNewColumn: () => ({ type: 'roles', label: 'Roles' }),\n });\n return {};\n },\n});\n"],"names":[],"mapp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CAAC,UAAA,EAAY,OAChC,KAAA,UAAA,CAAW,YAAY,UAAY,EAAA,OAAO,CAAE,CAAA,IAAA,KAC5C,iBAAkB,CAAA,IAAA;AAAA,MACpB,cAAc,OAAO,EAAE,IAAM,EAAA,OAAA,EAAS,OAAO,OAAQ,EAAA;AAAA,KACtD,CAAA;AACD,IAAA,OAAO,EAAC;AAAA;AAEZ,CAAC,CAAA;;;;"}
|
|
@@ -21,7 +21,7 @@ const currentImports = {};
|
|
|
21
21
|
return __federation_import('./__federation_expose_local-authCoreCommon-BtQr1I4Q.js').then(module =>Object.keys(module).every(item => exportSet.has(item)) ? () => module.default : () => module)},
|
|
22
22
|
"local-auth/admin/web":()=>{
|
|
23
23
|
dynamicLoadingCss(["style-Cu4lNOci.css"], false, 'local-auth/admin/web');
|
|
24
|
-
return __federation_import('./__federation_expose_local-authAdminWeb-
|
|
24
|
+
return __federation_import('./__federation_expose_local-authAdminWeb-B6PdHqzu.js').then(module =>Object.keys(module).every(item => exportSet.has(item)) ? () => module.default : () => module)},
|
|
25
25
|
"local-auth/admin/common":()=>{
|
|
26
26
|
dynamicLoadingCss(["style-Cu4lNOci.css"], false, 'local-auth/admin/common');
|
|
27
27
|
return __federation_import('./__federation_expose_local-authAdminCommon-DyMAwXJ7.js').then(module =>Object.keys(module).every(item => exportSet.has(item)) ? () => module.default : () => module)},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@baseplate-dev/plugin-auth",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.5",
|
|
4
4
|
"description": "Contains the auth plugin for Baseplate",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"authentication",
|
|
@@ -36,11 +36,11 @@
|
|
|
36
36
|
"react-hook-form": "7.60.0",
|
|
37
37
|
"react-icons": "5.5.0",
|
|
38
38
|
"zod": "3.25.76",
|
|
39
|
-
"@baseplate-dev/core-generators": "0.3.
|
|
40
|
-
"@baseplate-dev/fastify-generators": "0.3.
|
|
41
|
-
"@baseplate-dev/react-generators": "0.3.
|
|
42
|
-
"@baseplate-dev/ui-components": "0.3.
|
|
43
|
-
"@baseplate-dev/utils": "0.3.
|
|
39
|
+
"@baseplate-dev/core-generators": "0.3.5",
|
|
40
|
+
"@baseplate-dev/fastify-generators": "0.3.5",
|
|
41
|
+
"@baseplate-dev/react-generators": "0.3.5",
|
|
42
|
+
"@baseplate-dev/ui-components": "0.3.5",
|
|
43
|
+
"@baseplate-dev/utils": "0.3.5"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@originjs/vite-plugin-federation": "1.3.6",
|
|
@@ -57,13 +57,13 @@
|
|
|
57
57
|
"typescript": "5.8.3",
|
|
58
58
|
"vite": "6.3.5",
|
|
59
59
|
"vitest": "3.2.4",
|
|
60
|
-
"@baseplate-dev/project-builder-lib": "0.3.
|
|
61
|
-
"@baseplate-dev/sync": "0.3.
|
|
62
|
-
"@baseplate-dev/tools": "0.3.
|
|
60
|
+
"@baseplate-dev/project-builder-lib": "0.3.5",
|
|
61
|
+
"@baseplate-dev/sync": "0.3.5",
|
|
62
|
+
"@baseplate-dev/tools": "0.3.5"
|
|
63
63
|
},
|
|
64
64
|
"peerDependencies": {
|
|
65
|
-
"@baseplate-dev/project-builder-lib": "0.3.
|
|
66
|
-
"@baseplate-dev/sync": "0.3.
|
|
65
|
+
"@baseplate-dev/project-builder-lib": "0.3.5",
|
|
66
|
+
"@baseplate-dev/sync": "0.3.5"
|
|
67
67
|
},
|
|
68
68
|
"engines": {
|
|
69
69
|
"node": "^22.0.0"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"__federation_expose_local-authAdminWeb-RscG4AiS.js","sources":["../../../src/local-auth/admin/web.ts"],"sourcesContent":["import { createPlatformPluginExport } from '@baseplate-dev/project-builder-lib';\nimport {\n adminCrudActionWebSpec,\n adminCrudColumnWebSpec,\n} from '@baseplate-dev/project-builder-lib/web';\n\nimport { LOCAL_AUTH_MODELS } from '#src/local-auth/constants/model-names.js';\n\nexport default createPlatformPluginExport({\n dependencies: {\n adminCrudActionWeb: adminCrudActionWebSpec,\n adminCrudColumnWeb: adminCrudColumnWebSpec,\n },\n exports: {},\n initialize: ({ adminCrudActionWeb, adminCrudColumnWeb }, { pluginKey }) => {\n adminCrudActionWeb.registerActionWebConfig({\n pluginKey,\n name: 'manage-roles',\n label: 'Manage Roles',\n isAvailableForModel: (_, modelId) => modelId === LOCAL_AUTH_MODELS.user,\n getNewAction: () => ({ type: 'manage-roles', position: 'dropdown' }),\n });\n\n adminCrudActionWeb.registerActionWebConfig({\n pluginKey,\n name: 'reset-password',\n label: 'Reset Password',\n isAvailableForModel: (_, modelId) => modelId === LOCAL_AUTH_MODELS.user,\n getNewAction: () => ({ type: 'reset-password', position: 'dropdown' }),\n });\n\n adminCrudColumnWeb.registerColumnWebConfig({\n pluginKey,\n name: 'roles',\n label: 'Roles',\n isAvailableForModel: (_, modelId) => modelId === LOCAL_AUTH_MODELS.user,\n getNewColumn: () => ({ type: 'roles', label: 'Roles' }),\n });\n return {};\n },\n});\n"],"names":[],"mappings":";;;AAAA,MAAA,CAAA,0BAAA,CAAA,GAAA,MAAA,YAAA,CAAA,oCAAA,CAAA;;AACA,MAAA,CAAA,sBAAA,CAAA,sBAAA,CAAA,GAAA,MAAA,YAAA,CAAA,wCAAA,CAAA;AAOA,YAAe,0BAA2B,CAAA;AAAA,EACxC,YAAc,EAAA;AAAA,IACZ,kBAAoB,EAAA,sBAAA;AAAA,IACpB,kBAAoB,EAAA;AAAA,GACtB;AAAA,EACA,SAAS,EAAC;AAAA,EACV,UAAA,EAAY,CAAC,EAAE,kBAAA,EAAoB,oBAAsB,EAAA,EAAE,WAAgB,KAAA;AACzE,IAAA,kBAAA,CAAmB,uBAAwB,CAAA;AAAA,MACzC,SAAA;AAAA,MACA,IAAM,EAAA,cAAA;AAAA,MACN,KAAO,EAAA,cAAA;AAAA,MACP,mBAAqB,EAA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