@firecms/user_management 3.0.0-canary.279 → 3.0.0-canary.280

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
@@ -2075,61 +2075,73 @@ const UsersView = function UsersView2(t0) {
2075
2075
  return t9;
2076
2076
  };
2077
2077
  function useUserManagementPlugin(t0) {
2078
- const $ = c(12);
2078
+ const $ = c(15);
2079
2079
  const {
2080
2080
  userManagement
2081
2081
  } = t0;
2082
2082
  const noUsers = userManagement.users.length === 0;
2083
2083
  const noRoles = userManagement.roles.length === 0;
2084
2084
  let t1;
2085
- if ($[0] !== noRoles || $[1] !== noUsers || $[2] !== userManagement) {
2086
- t1 = noUsers || noRoles ? /* @__PURE__ */ jsx(IntroWidget, { noUsers, noRoles, userManagement }) : void 0;
2087
- $[0] = noRoles;
2088
- $[1] = noUsers;
2089
- $[2] = userManagement;
2090
- $[3] = t1;
2085
+ if ($[0] !== userManagement) {
2086
+ t1 = {
2087
+ ...userManagement
2088
+ };
2089
+ $[0] = userManagement;
2090
+ $[1] = t1;
2091
2091
  } else {
2092
- t1 = $[3];
2092
+ t1 = $[1];
2093
2093
  }
2094
2094
  let t2;
2095
- if ($[4] !== t1) {
2096
- t2 = {
2097
- additionalChildrenStart: t1
2098
- };
2099
- $[4] = t1;
2095
+ if ($[2] !== noRoles || $[3] !== noUsers || $[4] !== userManagement) {
2096
+ t2 = noUsers || noRoles ? /* @__PURE__ */ jsx(IntroWidget, { noUsers, noRoles, userManagement }) : void 0;
2097
+ $[2] = noRoles;
2098
+ $[3] = noUsers;
2099
+ $[4] = userManagement;
2100
2100
  $[5] = t2;
2101
2101
  } else {
2102
2102
  t2 = $[5];
2103
2103
  }
2104
2104
  let t3;
2105
- if ($[6] !== userManagement) {
2105
+ if ($[6] !== t2) {
2106
2106
  t3 = {
2107
- Component: UserManagementProvider,
2108
- props: {
2109
- userManagement
2110
- }
2107
+ additionalChildrenStart: t2
2111
2108
  };
2112
- $[6] = userManagement;
2109
+ $[6] = t2;
2113
2110
  $[7] = t3;
2114
2111
  } else {
2115
2112
  t3 = $[7];
2116
2113
  }
2117
2114
  let t4;
2118
- if ($[8] !== t2 || $[9] !== t3 || $[10] !== userManagement.loading) {
2115
+ if ($[8] !== userManagement) {
2119
2116
  t4 = {
2117
+ Component: UserManagementProvider,
2118
+ props: {
2119
+ userManagement
2120
+ }
2121
+ };
2122
+ $[8] = userManagement;
2123
+ $[9] = t4;
2124
+ } else {
2125
+ t4 = $[9];
2126
+ }
2127
+ let t5;
2128
+ if ($[10] !== t1 || $[11] !== t3 || $[12] !== t4 || $[13] !== userManagement.loading) {
2129
+ t5 = {
2120
2130
  key: "user_management",
2121
2131
  loading: userManagement.loading,
2122
- homePage: t2,
2123
- provider: t3
2132
+ userManagement: t1,
2133
+ homePage: t3,
2134
+ provider: t4
2124
2135
  };
2125
- $[8] = t2;
2126
- $[9] = t3;
2127
- $[10] = userManagement.loading;
2128
- $[11] = t4;
2136
+ $[10] = t1;
2137
+ $[11] = t3;
2138
+ $[12] = t4;
2139
+ $[13] = userManagement.loading;
2140
+ $[14] = t5;
2129
2141
  } else {
2130
- t4 = $[11];
2142
+ t5 = $[14];
2131
2143
  }
2132
- return t4;
2144
+ return t5;
2133
2145
  }
2134
2146
  function IntroWidget(t0) {
2135
2147
  const $ = c(17);