@authowl/react 0.21.0 → 0.21.2

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.d.cts CHANGED
@@ -15,6 +15,7 @@ type Ctx = {
15
15
  /** Project public config (methods, social providers, branding). */
16
16
  config: PublicConfig | null;
17
17
  configState: ConfigState;
18
+ retryPublicConfig: () => void;
18
19
  /** Resolved component locale (drives every t() call and the dir attribute). */
19
20
  locale: Locale;
20
21
  };
@@ -81,6 +82,8 @@ type UsePublicConfigResult = {
81
82
  config: PublicConfig | null;
82
83
  isLoading: boolean;
83
84
  isError: boolean;
85
+ /** Retry the project configuration request without remounting the provider. */
86
+ retry: () => void;
84
87
  };
85
88
  /** The project's fetched public config (enabled methods, social providers, branding). */
86
89
  declare function usePublicConfig(): UsePublicConfigResult;
package/dist/index.d.ts CHANGED
@@ -15,6 +15,7 @@ type Ctx = {
15
15
  /** Project public config (methods, social providers, branding). */
16
16
  config: PublicConfig | null;
17
17
  configState: ConfigState;
18
+ retryPublicConfig: () => void;
18
19
  /** Resolved component locale (drives every t() call and the dir attribute). */
19
20
  locale: Locale;
20
21
  };
@@ -81,6 +82,8 @@ type UsePublicConfigResult = {
81
82
  config: PublicConfig | null;
82
83
  isLoading: boolean;
83
84
  isError: boolean;
85
+ /** Retry the project configuration request without remounting the provider. */
86
+ retry: () => void;
84
87
  };
85
88
  /** The project's fetched public config (enabled methods, social providers, branding). */
86
89
  declare function usePublicConfig(): UsePublicConfigResult;