@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 CHANGED
@@ -253,7 +253,8 @@ function useBuildUserManagement({
253
253
  id: userExists.uid
254
254
  };
255
255
  await dataSourceDelegate.deleteEntity({
256
- entity
256
+ entity,
257
+ pathSegments: void 0
257
258
  }).then(() => {
258
259
  console.debug("Deleted previous user", userExists);
259
260
  }).catch((e_3) => {
@@ -263,6 +264,10 @@ function useBuildUserManagement({
263
264
  return dataSourceDelegate.saveEntity({
264
265
  status: "existing",
265
266
  path: usersPath,
267
+ // `usersPath` / `rolesPath` are configurable path strings this hook never parses.
268
+ // Segments are left undefined rather than split out of one: absent means "not known
269
+ // here", and a split would be wrong for any configured id containing "/".
270
+ pathSegments: void 0,
266
271
  entityId: email,
267
272
  values: removeUndefined(data)
268
273
  }).then(() => user);
@@ -278,6 +283,10 @@ function useBuildUserManagement({
278
283
  return dataSourceDelegate.saveEntity({
279
284
  status: "existing",
280
285
  path: rolesPath,
286
+ // `usersPath` / `rolesPath` are configurable path strings this hook never parses.
287
+ // Segments are left undefined rather than split out of one: absent means "not known
288
+ // here", and a split would be wrong for any configured id containing "/".
289
+ pathSegments: void 0,
281
290
  entityId: id,
282
291
  values: removeUndefined(roleData)
283
292
  }).then(() => {
@@ -297,7 +306,8 @@ function useBuildUserManagement({
297
306
  values: {}
298
307
  };
299
308
  await dataSourceDelegate.deleteEntity({
300
- entity: entity_0
309
+ entity: entity_0,
310
+ pathSegments: void 0
301
311
  });
302
312
  }, [usersPath, dataSourceDelegate?.initialised]);
303
313
  const deleteRole = useCallback(async (role_0) => {
@@ -313,7 +323,8 @@ function useBuildUserManagement({
313
323
  values: {}
314
324
  };
315
325
  await dataSourceDelegate.deleteEntity({
316
- entity: entity_1
326
+ entity: entity_1,
327
+ pathSegments: void 0
317
328
  });
318
329
  }, [rolesPath, dataSourceDelegate?.initialised]);
319
330
  const collectionPermissions = useCallback(({