@firecms/user_management 3.4.0-canary.f6a889a → 3.4.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/dist/index.es.js +14 -3
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +14 -3
- package/dist/index.umd.js.map +1 -1
- package/package.json +4 -4
- package/src/hooks/useBuildUserManagement.tsx +11 -3
package/dist/index.umd.js
CHANGED
|
@@ -265,7 +265,8 @@
|
|
|
265
265
|
id: userExists.uid
|
|
266
266
|
};
|
|
267
267
|
await dataSourceDelegate.deleteEntity({
|
|
268
|
-
entity
|
|
268
|
+
entity,
|
|
269
|
+
pathSegments: void 0
|
|
269
270
|
}).then(() => {
|
|
270
271
|
console.debug("Deleted previous user", userExists);
|
|
271
272
|
}).catch((e_3) => {
|
|
@@ -275,6 +276,10 @@
|
|
|
275
276
|
return dataSourceDelegate.saveEntity({
|
|
276
277
|
status: "existing",
|
|
277
278
|
path: usersPath,
|
|
279
|
+
// `usersPath` / `rolesPath` are configurable path strings this hook never parses.
|
|
280
|
+
// Segments are left undefined rather than split out of one: absent means "not known
|
|
281
|
+
// here", and a split would be wrong for any configured id containing "/".
|
|
282
|
+
pathSegments: void 0,
|
|
278
283
|
entityId: email,
|
|
279
284
|
values: core.removeUndefined(data)
|
|
280
285
|
}).then(() => user);
|
|
@@ -290,6 +295,10 @@
|
|
|
290
295
|
return dataSourceDelegate.saveEntity({
|
|
291
296
|
status: "existing",
|
|
292
297
|
path: rolesPath,
|
|
298
|
+
// `usersPath` / `rolesPath` are configurable path strings this hook never parses.
|
|
299
|
+
// Segments are left undefined rather than split out of one: absent means "not known
|
|
300
|
+
// here", and a split would be wrong for any configured id containing "/".
|
|
301
|
+
pathSegments: void 0,
|
|
293
302
|
entityId: id,
|
|
294
303
|
values: core.removeUndefined(roleData)
|
|
295
304
|
}).then(() => {
|
|
@@ -309,7 +318,8 @@
|
|
|
309
318
|
values: {}
|
|
310
319
|
};
|
|
311
320
|
await dataSourceDelegate.deleteEntity({
|
|
312
|
-
entity: entity_0
|
|
321
|
+
entity: entity_0,
|
|
322
|
+
pathSegments: void 0
|
|
313
323
|
});
|
|
314
324
|
}, [usersPath, dataSourceDelegate?.initialised]);
|
|
315
325
|
const deleteRole = React.useCallback(async (role_0) => {
|
|
@@ -325,7 +335,8 @@
|
|
|
325
335
|
values: {}
|
|
326
336
|
};
|
|
327
337
|
await dataSourceDelegate.deleteEntity({
|
|
328
|
-
entity: entity_1
|
|
338
|
+
entity: entity_1,
|
|
339
|
+
pathSegments: void 0
|
|
329
340
|
});
|
|
330
341
|
}, [rolesPath, dataSourceDelegate?.initialised]);
|
|
331
342
|
const collectionPermissions = React.useCallback(({
|