dce-reactkit 3.5.14 → 3.6.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.
@@ -32,6 +32,12 @@ declare let sessionExpiredMessage: string | undefined;
32
32
  * @returns session expired message
33
33
  */
34
34
  export declare const getSessionExpiredMessage: () => string;
35
+ declare let darkModeOn: boolean;
36
+ /**
37
+ * Get whether dark mode is enabled or not
38
+ * @returns true if dark mode is enabled
39
+ */
40
+ export declare const isDarkModeOn: () => boolean;
35
41
  /**
36
42
  * Initialize the client-side version of reactkit
37
43
  * @author Gabe Abrams
@@ -42,5 +48,6 @@ export declare const getSessionExpiredMessage: () => string;
42
48
  declare const initClient: (opts: {
43
49
  sendRequest: SendRequestFunction;
44
50
  sessionExpiredMessage?: string;
51
+ darkModeOn?: boolean;
45
52
  }) => void;
46
53
  export default initClient;
@@ -7,7 +7,6 @@ import React from 'react';
7
7
  import Variant from '../types/Variant';
8
8
  type Props = {
9
9
  children: React.ReactNode;
10
- dark?: boolean;
11
10
  };
12
11
  /**
13
12
  * Redirect to a new page
@@ -51,7 +50,7 @@ export declare const confirm: (title: string, text: string, opts?: {
51
50
  * @param error the error to show
52
51
  * @param [errorTitle] title of the error box
53
52
  */
54
- export declare const showFatalError: (error: any, errorTitle?: string) => undefined;
53
+ export declare const showFatalError: (error: any, errorTitle?: string) => Promise<void>;
55
54
  /**
56
55
  * Add a handler for when a fatal error occurs
57
56
  * @author Gabe Abrams
@@ -61,6 +60,6 @@ export declare const addFatalErrorHandler: (handler: () => void) => void;
61
60
  * Show the "session expired" message
62
61
  * @author Gabe Abrams
63
62
  */
64
- export declare const showSessionExpiredMessage: () => undefined;
63
+ export declare const showSessionExpiredMessage: () => void;
65
64
  declare const AppWrapper: React.FC<Props>;
66
65
  export default AppWrapper;