dauth-context-react 6.4.0 → 6.5.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.mjs CHANGED
@@ -11,7 +11,8 @@ import {
11
11
  // src/initialDauthState.ts
12
12
  var initialDauthState = {
13
13
  user: {
14
- language: (typeof window !== "undefined" ? window.document.documentElement.getAttribute("lang") : null) || "es"
14
+ language: (typeof window !== "undefined" ? window.document.documentElement.getAttribute("lang") : null) || "es",
15
+ theme: "system"
15
16
  },
16
17
  domain: {},
17
18
  isLoading: true,
@@ -2216,10 +2217,12 @@ var DauthProvider = (props) => {
2216
2217
  telPrefix,
2217
2218
  telSuffix,
2218
2219
  language,
2220
+ theme,
2219
2221
  avatar,
2220
2222
  birthDate,
2221
2223
  country,
2222
- metadata
2224
+ metadata,
2225
+ customFields
2223
2226
  } = fields;
2224
2227
  const user = {
2225
2228
  name,
@@ -2228,10 +2231,12 @@ var DauthProvider = (props) => {
2228
2231
  telPrefix,
2229
2232
  telSuffix,
2230
2233
  language,
2234
+ theme,
2231
2235
  avatar,
2232
2236
  birthDate,
2233
2237
  country,
2234
- metadata
2238
+ metadata,
2239
+ customFields
2235
2240
  };
2236
2241
  return updateUserAction(ctx, user);
2237
2242
  },