@webiny/app-admin 5.39.3 → 5.40.0-beta.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/base/ui/Brand.d.ts +12 -2
- package/base/ui/CenteredView.d.ts +6 -1
- package/base/ui/Dashboard.d.ts +12 -2
- package/base/ui/FileManager.d.ts +6 -1
- package/base/ui/Layout.d.ts +12 -2
- package/base/ui/LocaleSelector.d.ts +12 -2
- package/base/ui/LoginScreen.d.ts +6 -1
- package/base/ui/Logo.d.ts +12 -2
- package/base/ui/Navigation.d.ts +18 -3
- package/base/ui/NotFound.d.ts +12 -2
- package/base/ui/Search.d.ts +12 -2
- package/base/ui/UserMenu.d.ts +42 -7
- package/components/AppInstaller/AppInstaller.js +2 -4
- package/components/AppInstaller/AppInstaller.js.map +1 -1
- package/components/OptionsMenu/OptionsMenu.styled.d.ts +1 -1
- package/hooks/index.d.ts +1 -0
- package/hooks/index.js +11 -0
- package/hooks/index.js.map +1 -1
- package/hooks/useStateIfMounted.d.ts +2 -0
- package/hooks/useStateIfMounted.js +26 -0
- package/hooks/useStateIfMounted.js.map +1 -0
- package/package.json +18 -18
- package/plugins/globalSearch/SearchBar.d.ts +6 -1
package/base/ui/Brand.d.ts
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const Brand: import("@webiny/app").
|
|
3
|
-
|
|
2
|
+
export declare const Brand: import("@webiny/app").GenericComponent<any> & {
|
|
3
|
+
original: import("@webiny/app").GenericComponent<any>;
|
|
4
|
+
originalName: string;
|
|
5
|
+
} & {
|
|
6
|
+
createDecorator: (decorator: import("@webiny/app").Decorator<(props: any) => JSX.Element | null>) => (props: unknown) => JSX.Element;
|
|
7
|
+
};
|
|
8
|
+
export declare const BrandRenderer: import("@webiny/app").GenericComponent<any> & {
|
|
9
|
+
original: import("@webiny/app").GenericComponent<any>;
|
|
10
|
+
originalName: string;
|
|
11
|
+
} & {
|
|
12
|
+
createDecorator: (decorator: import("@webiny/app").Decorator<(props: any) => JSX.Element | null>) => (props: unknown) => JSX.Element;
|
|
13
|
+
};
|
|
@@ -3,4 +3,9 @@ export interface CenteredViewProps {
|
|
|
3
3
|
children: React.ReactNode;
|
|
4
4
|
maxWidth?: number | string;
|
|
5
5
|
}
|
|
6
|
-
export declare const CenteredView: import("../../index").
|
|
6
|
+
export declare const CenteredView: import("../../index").GenericComponent<CenteredViewProps> & {
|
|
7
|
+
original: import("../../index").GenericComponent<CenteredViewProps>;
|
|
8
|
+
originalName: string;
|
|
9
|
+
} & {
|
|
10
|
+
createDecorator: (decorator: import("../../index").Decorator<(props: CenteredViewProps) => JSX.Element | null>) => (props: unknown) => JSX.Element;
|
|
11
|
+
};
|
package/base/ui/Dashboard.d.ts
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const Dashboard: import("@webiny/app").
|
|
3
|
-
|
|
2
|
+
export declare const Dashboard: import("@webiny/app").GenericComponent<any> & {
|
|
3
|
+
original: import("@webiny/app").GenericComponent<any>;
|
|
4
|
+
originalName: string;
|
|
5
|
+
} & {
|
|
6
|
+
createDecorator: (decorator: import("@webiny/app").Decorator<(props: any) => JSX.Element | null>) => (props: unknown) => JSX.Element;
|
|
7
|
+
};
|
|
8
|
+
export declare const DashboardRenderer: import("@webiny/app").GenericComponent<any> & {
|
|
9
|
+
original: import("@webiny/app").GenericComponent<any>;
|
|
10
|
+
originalName: string;
|
|
11
|
+
} & {
|
|
12
|
+
createDecorator: (decorator: import("@webiny/app").Decorator<(props: any) => JSX.Element | null>) => (props: unknown) => JSX.Element;
|
|
13
|
+
};
|
package/base/ui/FileManager.d.ts
CHANGED
|
@@ -63,6 +63,11 @@ export declare type FileManagerProps = {
|
|
|
63
63
|
} & MultipleProps;
|
|
64
64
|
declare type DistributiveOmit<T, K extends keyof T> = T extends unknown ? Omit<T, K> : never;
|
|
65
65
|
export declare type FileManagerRendererProps = DistributiveOmit<FileManagerProps, "render" | "children">;
|
|
66
|
-
export declare const FileManagerRenderer: import("@webiny/react-composition").
|
|
66
|
+
export declare const FileManagerRenderer: import("@webiny/react-composition").GenericComponent<FileManagerRendererProps> & {
|
|
67
|
+
original: import("@webiny/react-composition").GenericComponent<FileManagerRendererProps>;
|
|
68
|
+
originalName: string;
|
|
69
|
+
} & {
|
|
70
|
+
createDecorator: (decorator: import("@webiny/react-composition").Decorator<(props: FileManagerRendererProps) => JSX.Element | null>) => (props: unknown) => JSX.Element;
|
|
71
|
+
};
|
|
67
72
|
export declare const FileManager: ({ children, render, onChange, ...rest }: FileManagerProps) => JSX.Element;
|
|
68
73
|
export {};
|
package/base/ui/Layout.d.ts
CHANGED
|
@@ -3,5 +3,15 @@ export interface LayoutProps {
|
|
|
3
3
|
title?: string;
|
|
4
4
|
children: React.ReactNode;
|
|
5
5
|
}
|
|
6
|
-
export declare const Layout: import("@webiny/app").
|
|
7
|
-
|
|
6
|
+
export declare const Layout: import("@webiny/app").GenericComponent<LayoutProps> & {
|
|
7
|
+
original: import("@webiny/app").GenericComponent<LayoutProps>;
|
|
8
|
+
originalName: string;
|
|
9
|
+
} & {
|
|
10
|
+
createDecorator: (decorator: import("@webiny/app").Decorator<(props: LayoutProps) => JSX.Element | null>) => (props: unknown) => JSX.Element;
|
|
11
|
+
};
|
|
12
|
+
export declare const LayoutRenderer: import("@webiny/app").GenericComponent<LayoutProps> & {
|
|
13
|
+
original: import("@webiny/app").GenericComponent<LayoutProps>;
|
|
14
|
+
originalName: string;
|
|
15
|
+
} & {
|
|
16
|
+
createDecorator: (decorator: import("@webiny/app").Decorator<(props: LayoutProps) => JSX.Element | null>) => (props: unknown) => JSX.Element;
|
|
17
|
+
};
|
|
@@ -1,3 +1,13 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const LocaleSelector: import("@webiny/app").
|
|
3
|
-
|
|
2
|
+
export declare const LocaleSelector: import("@webiny/app").GenericComponent<any> & {
|
|
3
|
+
original: import("@webiny/app").GenericComponent<any>;
|
|
4
|
+
originalName: string;
|
|
5
|
+
} & {
|
|
6
|
+
createDecorator: (decorator: import("@webiny/app").Decorator<(props: any) => JSX.Element | null>) => (props: unknown) => JSX.Element;
|
|
7
|
+
};
|
|
8
|
+
export declare const LocaleSelectorRenderer: import("@webiny/app").GenericComponent<any> & {
|
|
9
|
+
original: import("@webiny/app").GenericComponent<any>;
|
|
10
|
+
originalName: string;
|
|
11
|
+
} & {
|
|
12
|
+
createDecorator: (decorator: import("@webiny/app").Decorator<(props: any) => JSX.Element | null>) => (props: unknown) => JSX.Element;
|
|
13
|
+
};
|
package/base/ui/LoginScreen.d.ts
CHANGED
|
@@ -3,4 +3,9 @@ export interface LoginScreenProps {
|
|
|
3
3
|
children: React.ReactNode;
|
|
4
4
|
}
|
|
5
5
|
export declare const LoginScreen: ({ children }: LoginScreenProps) => JSX.Element;
|
|
6
|
-
export declare const LoginScreenRenderer: import("@webiny/app").
|
|
6
|
+
export declare const LoginScreenRenderer: import("@webiny/app").GenericComponent<LoginScreenProps> & {
|
|
7
|
+
original: import("@webiny/app").GenericComponent<LoginScreenProps>;
|
|
8
|
+
originalName: string;
|
|
9
|
+
} & {
|
|
10
|
+
createDecorator: (decorator: import("@webiny/app").Decorator<(props: LoginScreenProps) => JSX.Element | null>) => (props: unknown) => JSX.Element;
|
|
11
|
+
};
|
package/base/ui/Logo.d.ts
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const Logo: import("@webiny/app").
|
|
3
|
-
|
|
2
|
+
export declare const Logo: import("@webiny/app").GenericComponent<any> & {
|
|
3
|
+
original: import("@webiny/app").GenericComponent<any>;
|
|
4
|
+
originalName: string;
|
|
5
|
+
} & {
|
|
6
|
+
createDecorator: (decorator: import("@webiny/app").Decorator<(props: any) => JSX.Element | null>) => (props: unknown) => JSX.Element;
|
|
7
|
+
};
|
|
8
|
+
export declare const LogoRenderer: import("@webiny/app").GenericComponent<any> & {
|
|
9
|
+
original: import("@webiny/app").GenericComponent<any>;
|
|
10
|
+
originalName: string;
|
|
11
|
+
} & {
|
|
12
|
+
createDecorator: (decorator: import("@webiny/app").Decorator<(props: any) => JSX.Element | null>) => (props: unknown) => JSX.Element;
|
|
13
|
+
};
|
|
4
14
|
interface AddLogoProps {
|
|
5
15
|
logo: JSX.Element;
|
|
6
16
|
}
|
package/base/ui/Navigation.d.ts
CHANGED
|
@@ -11,7 +11,12 @@ interface NavigationProviderProps {
|
|
|
11
11
|
}
|
|
12
12
|
export declare const NavigationProvider: (Component: React.ComponentType<unknown>) => ({ children }: NavigationProviderProps) => JSX.Element;
|
|
13
13
|
export declare const Navigation: () => JSX.Element;
|
|
14
|
-
export declare const NavigationRenderer: import("@webiny/app").
|
|
14
|
+
export declare const NavigationRenderer: import("@webiny/app").GenericComponent<any> & {
|
|
15
|
+
original: import("@webiny/app").GenericComponent<any>;
|
|
16
|
+
originalName: string;
|
|
17
|
+
} & {
|
|
18
|
+
createDecorator: (decorator: import("@webiny/app").Decorator<(props: any) => JSX.Element | null>) => (props: unknown) => JSX.Element;
|
|
19
|
+
};
|
|
15
20
|
interface MenuItemContext {
|
|
16
21
|
menuItem?: MenuData;
|
|
17
22
|
depth: number;
|
|
@@ -21,7 +26,17 @@ export declare function useMenuItem(): MenuItemContext;
|
|
|
21
26
|
export interface MenuItemsProps {
|
|
22
27
|
menuItems: MenuData[];
|
|
23
28
|
}
|
|
24
|
-
export declare const MenuItems: import("@webiny/app").
|
|
29
|
+
export declare const MenuItems: import("@webiny/app").GenericComponent<MenuItemsProps> & {
|
|
30
|
+
original: import("@webiny/app").GenericComponent<MenuItemsProps>;
|
|
31
|
+
originalName: string;
|
|
32
|
+
} & {
|
|
33
|
+
createDecorator: (decorator: import("@webiny/app").Decorator<(props: MenuItemsProps) => JSX.Element | null>) => (props: unknown) => JSX.Element;
|
|
34
|
+
};
|
|
25
35
|
export declare const MenuItem: () => JSX.Element;
|
|
26
|
-
export declare const MenuItemRenderer: import("@webiny/app").
|
|
36
|
+
export declare const MenuItemRenderer: import("@webiny/app").GenericComponent<any> & {
|
|
37
|
+
original: import("@webiny/app").GenericComponent<any>;
|
|
38
|
+
originalName: string;
|
|
39
|
+
} & {
|
|
40
|
+
createDecorator: (decorator: import("@webiny/app").Decorator<(props: any) => JSX.Element | null>) => (props: unknown) => JSX.Element;
|
|
41
|
+
};
|
|
27
42
|
export {};
|
package/base/ui/NotFound.d.ts
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const NotFound: import("@webiny/app").
|
|
3
|
-
|
|
2
|
+
export declare const NotFound: import("@webiny/app").GenericComponent<any> & {
|
|
3
|
+
original: import("@webiny/app").GenericComponent<any>;
|
|
4
|
+
originalName: string;
|
|
5
|
+
} & {
|
|
6
|
+
createDecorator: (decorator: import("@webiny/app").Decorator<(props: any) => JSX.Element | null>) => (props: unknown) => JSX.Element;
|
|
7
|
+
};
|
|
8
|
+
export declare const NotFoundRenderer: import("@webiny/app").GenericComponent<any> & {
|
|
9
|
+
original: import("@webiny/app").GenericComponent<any>;
|
|
10
|
+
originalName: string;
|
|
11
|
+
} & {
|
|
12
|
+
createDecorator: (decorator: import("@webiny/app").Decorator<(props: any) => JSX.Element | null>) => (props: unknown) => JSX.Element;
|
|
13
|
+
};
|
package/base/ui/Search.d.ts
CHANGED
|
@@ -17,8 +17,18 @@ interface SearchProviderProps {
|
|
|
17
17
|
[key: string]: any;
|
|
18
18
|
}
|
|
19
19
|
export declare const SearchProvider: (Component: React.ComponentType) => ({ children, ...props }: SearchProviderProps) => JSX.Element;
|
|
20
|
-
export declare const Search: import("@webiny/app").
|
|
21
|
-
|
|
20
|
+
export declare const Search: import("@webiny/app").GenericComponent<any> & {
|
|
21
|
+
original: import("@webiny/app").GenericComponent<any>;
|
|
22
|
+
originalName: string;
|
|
23
|
+
} & {
|
|
24
|
+
createDecorator: (decorator: import("@webiny/app").Decorator<(props: any) => JSX.Element | null>) => (props: unknown) => JSX.Element;
|
|
25
|
+
};
|
|
26
|
+
export declare const SearchRenderer: import("@webiny/app").GenericComponent<any> & {
|
|
27
|
+
original: import("@webiny/app").GenericComponent<any>;
|
|
28
|
+
originalName: string;
|
|
29
|
+
} & {
|
|
30
|
+
createDecorator: (decorator: import("@webiny/app").Decorator<(props: any) => JSX.Element | null>) => (props: unknown) => JSX.Element;
|
|
31
|
+
};
|
|
22
32
|
export declare type SearchOptionProps = SearchOptionData;
|
|
23
33
|
export declare const SearchOption: (props: SearchOptionProps) => null;
|
|
24
34
|
export {};
|
package/base/ui/UserMenu.d.ts
CHANGED
|
@@ -16,20 +16,55 @@ interface UserMenuProviderProps {
|
|
|
16
16
|
[key: string]: any;
|
|
17
17
|
}
|
|
18
18
|
export declare const UserMenuProvider: (Component: React.ComponentType) => ({ children, ...props }: UserMenuProviderProps) => JSX.Element;
|
|
19
|
-
export declare const UserMenu: import("@webiny/app").
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
export declare const UserMenu: import("@webiny/app").GenericComponent<any> & {
|
|
20
|
+
original: import("@webiny/app").GenericComponent<any>;
|
|
21
|
+
originalName: string;
|
|
22
|
+
} & {
|
|
23
|
+
createDecorator: (decorator: import("@webiny/app").Decorator<(props: any) => JSX.Element | null>) => (props: unknown) => JSX.Element;
|
|
24
|
+
};
|
|
25
|
+
export declare const UserMenuRenderer: import("@webiny/app").GenericComponent<any> & {
|
|
26
|
+
original: import("@webiny/app").GenericComponent<any>;
|
|
27
|
+
originalName: string;
|
|
28
|
+
} & {
|
|
29
|
+
createDecorator: (decorator: import("@webiny/app").Decorator<(props: any) => JSX.Element | null>) => (props: unknown) => JSX.Element;
|
|
30
|
+
};
|
|
31
|
+
export declare const UserMenuHandle: import("@webiny/app").GenericComponent<any> & {
|
|
32
|
+
original: import("@webiny/app").GenericComponent<any>;
|
|
33
|
+
originalName: string;
|
|
34
|
+
} & {
|
|
35
|
+
createDecorator: (decorator: import("@webiny/app").Decorator<(props: any) => JSX.Element | null>) => (props: unknown) => JSX.Element;
|
|
36
|
+
};
|
|
37
|
+
export declare const UserMenuHandleRenderer: import("@webiny/app").GenericComponent<any> & {
|
|
38
|
+
original: import("@webiny/app").GenericComponent<any>;
|
|
39
|
+
originalName: string;
|
|
40
|
+
} & {
|
|
41
|
+
createDecorator: (decorator: import("@webiny/app").Decorator<(props: any) => JSX.Element | null>) => (props: unknown) => JSX.Element;
|
|
42
|
+
};
|
|
23
43
|
export interface UserMenuItemProps {
|
|
24
44
|
menuItem: UserMenuItemData;
|
|
25
45
|
}
|
|
26
|
-
export declare const UserMenuItem: import("@webiny/app").
|
|
27
|
-
|
|
46
|
+
export declare const UserMenuItem: import("@webiny/app").GenericComponent<UserMenuItemProps> & {
|
|
47
|
+
original: import("@webiny/app").GenericComponent<UserMenuItemProps>;
|
|
48
|
+
originalName: string;
|
|
49
|
+
} & {
|
|
50
|
+
createDecorator: (decorator: import("@webiny/app").Decorator<(props: UserMenuItemProps) => JSX.Element | null>) => (props: unknown) => JSX.Element;
|
|
51
|
+
};
|
|
52
|
+
export declare const UserMenuItemRenderer: import("@webiny/app").GenericComponent<any> & {
|
|
53
|
+
original: import("@webiny/app").GenericComponent<any>;
|
|
54
|
+
originalName: string;
|
|
55
|
+
} & {
|
|
56
|
+
createDecorator: (decorator: import("@webiny/app").Decorator<(props: any) => JSX.Element | null>) => (props: unknown) => JSX.Element;
|
|
57
|
+
};
|
|
28
58
|
export declare const AddUserMenuItem: (props: UserMenuItemProps["menuItem"]) => null;
|
|
29
59
|
export declare type UserMenuItemContext = UserMenuItemData;
|
|
30
60
|
export declare function useUserMenuItem(): UserMenuItemData;
|
|
31
61
|
export interface UserMenuItemsProps {
|
|
32
62
|
menuItems: UserMenuItemData[];
|
|
33
63
|
}
|
|
34
|
-
export declare const UserMenuItems: import("@webiny/app").
|
|
64
|
+
export declare const UserMenuItems: import("@webiny/app").GenericComponent<UserMenuItemsProps> & {
|
|
65
|
+
original: import("@webiny/app").GenericComponent<UserMenuItemsProps>;
|
|
66
|
+
originalName: string;
|
|
67
|
+
} & {
|
|
68
|
+
createDecorator: (decorator: import("@webiny/app").Decorator<(props: UserMenuItemsProps) => JSX.Element | null>) => (props: unknown) => JSX.Element;
|
|
69
|
+
};
|
|
35
70
|
export {};
|
|
@@ -18,12 +18,10 @@ var _Elevation = require("@webiny/ui/Elevation");
|
|
|
18
18
|
var _useInstaller2 = require("./useInstaller");
|
|
19
19
|
var _Sidebar = _interopRequireDefault(require("./Sidebar"));
|
|
20
20
|
var _styled = require("./styled");
|
|
21
|
-
var _config = require("@webiny/app/config");
|
|
22
21
|
var AppInstaller = function AppInstaller(_ref) {
|
|
23
22
|
var children = _ref.children;
|
|
24
23
|
var tenantId = _store.default.get("webiny_tenant") || "root";
|
|
25
24
|
var lsKey = "webiny_installation_".concat(tenantId);
|
|
26
|
-
var wbyVersion = _config.config.getKey("WEBINY_VERSION", process.env.REACT_APP_WEBINY_VERSION);
|
|
27
25
|
var isRootTenant = tenantId === "root";
|
|
28
26
|
/*
|
|
29
27
|
* This flag allows us to avoid rendering the <iframe> when the app is tested with Cypress
|
|
@@ -32,10 +30,10 @@ var AppInstaller = function AppInstaller(_ref) {
|
|
|
32
30
|
*/
|
|
33
31
|
var isCypressTest = window && window.Cypress;
|
|
34
32
|
var markInstallerAsCompleted = function markInstallerAsCompleted() {
|
|
35
|
-
_store.default.set(lsKey,
|
|
33
|
+
_store.default.set(lsKey, true);
|
|
36
34
|
};
|
|
37
35
|
var isInstallerCompleted = function isInstallerCompleted() {
|
|
38
|
-
return _store.default.get(lsKey) ===
|
|
36
|
+
return _store.default.get(lsKey) === true;
|
|
39
37
|
};
|
|
40
38
|
var _useState = (0, _react.useState)(false),
|
|
41
39
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_store","_interopRequireDefault","_","_appSecurity","_Progress","_Button","_SplitView","_Elevation","_useInstaller2","_Sidebar","_styled","_config","AppInstaller","_ref","children","tenantId","localStorage","get","lsKey","concat","wbyVersion","appConfig","getKey","process","env","REACT_APP_WEBINY_VERSION","isRootTenant","isCypressTest","window","Cypress","markInstallerAsCompleted","set","isInstallerCompleted","_useState","useState","_useState2","_slicedToArray2","default","finished","setFinished","_useSecurity","useSecurity","identity","_useInstaller","useInstaller","isInstalled","loading","installers","installer","isFirstInstall","showNextInstaller","showLogin","onUser","useEffect","createElement","LoginScreen","renderLayout","content","secure","arguments","length","undefined","Tags","tags","SplitView","className","installerSplitView","LeftPanel","span","allInstallers","RightPanel","renderBody","Wrapper","InstallContent","InnerContent","CircularProgress","label","render","onInstalled","Elevation","z","SuccessDialog","height","width","frameBorder","style","opacity","src","ButtonPrimary","onClick","exports"],"sources":["AppInstaller.tsx"],"sourcesContent":["import React, { useEffect, useState } from \"react\";\nimport { default as localStorage } from \"store\";\nimport { LoginScreen, Tags } from \"~/index\";\nimport { useSecurity } from \"@webiny/app-security\";\nimport { CircularProgress } from \"@webiny/ui/Progress\";\nimport { ButtonPrimary } from \"@webiny/ui/Button\";\nimport { SplitView, LeftPanel, RightPanel } from \"../SplitView\";\nimport { Elevation } from \"@webiny/ui/Elevation\";\nimport { useInstaller } from \"./useInstaller\";\nimport Sidebar from \"./Sidebar\";\n\ndeclare global {\n interface Window {\n Cypress: any;\n }\n}\n\nimport { Wrapper, InnerContent, InstallContent, installerSplitView, SuccessDialog } from \"./styled\";\nimport { config as appConfig } from \"@webiny/app/config\";\n\ninterface AppInstallerProps {\n children: React.ReactNode;\n}\n\nexport const AppInstaller = ({ children }: AppInstallerProps) => {\n const tenantId = localStorage.get(\"webiny_tenant\") || \"root\";\n const lsKey = `webiny_installation_${tenantId}`;\n const wbyVersion = appConfig.getKey(\"WEBINY_VERSION\", process.env.REACT_APP_WEBINY_VERSION);\n const isRootTenant = tenantId === \"root\";\n /*\n * This flag allows us to avoid rendering the <iframe> when the app is tested with Cypress\n * (Cypress doesn't work with cross domains because of security-related implications).\n * @see https://docs.cypress.io/guides/guides/web-security#Insecure-Content\n */\n const isCypressTest = window && window.Cypress;\n\n const markInstallerAsCompleted = () => {\n localStorage.set(lsKey, wbyVersion);\n };\n\n const isInstallerCompleted = () => {\n return localStorage.get(lsKey) === wbyVersion;\n };\n\n const [finished, setFinished] = useState(false);\n const { identity } = useSecurity();\n const { loading, installers, installer, isFirstInstall, showNextInstaller, showLogin, onUser } =\n useInstaller({ isInstalled: isInstallerCompleted() });\n\n useEffect(() => {\n if (identity) {\n onUser();\n }\n }, [identity]);\n\n if (isInstallerCompleted()) {\n return <LoginScreen>{children}</LoginScreen>;\n }\n\n const renderLayout = (content: React.ReactNode, secure = false): React.ReactElement => {\n return (\n <Tags tags={{ installer: true }}>\n <SplitView className={installerSplitView}>\n <LeftPanel span={2}>\n <Sidebar\n allInstallers={installers}\n installer={installer}\n showLogin={showLogin}\n />\n </LeftPanel>\n <RightPanel span={10}>\n {!showLogin && !secure && content}\n {(showLogin || secure) && <LoginScreen>{content}</LoginScreen>}\n </RightPanel>\n </SplitView>\n </Tags>\n );\n };\n\n const renderBody = (content: React.ReactNode): React.ReactElement => {\n return (\n <Wrapper>\n <InstallContent>\n <InnerContent>{content}</InnerContent>\n </InstallContent>\n </Wrapper>\n );\n };\n\n // Loading installers data\n if (loading) {\n return <CircularProgress label={\"Checking apps...\"} />;\n }\n\n // This means there are no installers to run or installation was finished\n if (!loading && (installers.length === 0 || finished)) {\n markInstallerAsCompleted();\n return <LoginScreen>{children}</LoginScreen>;\n }\n\n if (installer) {\n return renderLayout(\n renderBody(installer.render({ onInstalled: showNextInstaller })),\n installer.secure\n );\n }\n\n return renderLayout(\n renderBody(\n <Elevation z={1}>\n <SuccessDialog>\n <p>You have successfully installed all new applications!</p>\n {!isCypressTest && isRootTenant && isFirstInstall ? (\n <iframe\n height=\"0\"\n width=\"0\"\n frameBorder=\"0\"\n style={{ opacity: \"0\" }}\n src=\"https://www.webiny.com/thank-you/new-install\"\n ></iframe>\n ) : null}\n <ButtonPrimary\n data-testid={\"open-webiny-cms-admin-button\"}\n onClick={() => {\n markInstallerAsCompleted();\n setFinished(true);\n }}\n >\n Finish install\n </ButtonPrimary>\n </SuccessDialog>\n </Elevation>\n ),\n true\n );\n};\n"],"mappings":";;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,CAAA,GAAAH,OAAA;AACA,IAAAI,YAAA,GAAAJ,OAAA;AACA,IAAAK,SAAA,GAAAL,OAAA;AACA,IAAAM,OAAA,GAAAN,OAAA;AACA,IAAAO,UAAA,GAAAP,OAAA;AACA,IAAAQ,UAAA,GAAAR,OAAA;AACA,IAAAS,cAAA,GAAAT,OAAA;AACA,IAAAU,QAAA,GAAAR,sBAAA,CAAAF,OAAA;AAQA,IAAAW,OAAA,GAAAX,OAAA;AACA,IAAAY,OAAA,GAAAZ,OAAA;AAMO,IAAMa,YAAY,GAAG,SAAfA,YAAYA,CAAAC,IAAA,EAAwC;EAAA,IAAlCC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;EACnC,IAAMC,QAAQ,GAAGC,cAAY,CAACC,GAAG,CAAC,eAAe,CAAC,IAAI,MAAM;EAC5D,IAAMC,KAAK,0BAAAC,MAAA,CAA0BJ,QAAQ,CAAE;EAC/C,IAAMK,UAAU,GAAGC,cAAS,CAACC,MAAM,CAAC,gBAAgB,EAAEC,OAAO,CAACC,GAAG,CAACC,wBAAwB,CAAC;EAC3F,IAAMC,YAAY,GAAGX,QAAQ,KAAK,MAAM;EACxC;AACJ;AACA;AACA;AACA;EACI,IAAMY,aAAa,GAAGC,MAAM,IAAIA,MAAM,CAACC,OAAO;EAE9C,IAAMC,wBAAwB,GAAG,SAA3BA,wBAAwBA,CAAA,EAAS;IACnCd,cAAY,CAACe,GAAG,CAACb,KAAK,EAA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CAAC;AACL,CAAC;AAACmD,OAAA,CAAA9E,YAAA,GAAAA,YAAA"}
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_store","_interopRequireDefault","_","_appSecurity","_Progress","_Button","_SplitView","_Elevation","_useInstaller2","_Sidebar","_styled","AppInstaller","_ref","children","tenantId","localStorage","get","lsKey","concat","isRootTenant","isCypressTest","window","Cypress","markInstallerAsCompleted","set","isInstallerCompleted","_useState","useState","_useState2","_slicedToArray2","default","finished","setFinished","_useSecurity","useSecurity","identity","_useInstaller","useInstaller","isInstalled","loading","installers","installer","isFirstInstall","showNextInstaller","showLogin","onUser","useEffect","createElement","LoginScreen","renderLayout","content","secure","arguments","length","undefined","Tags","tags","SplitView","className","installerSplitView","LeftPanel","span","allInstallers","RightPanel","renderBody","Wrapper","InstallContent","InnerContent","CircularProgress","label","render","onInstalled","Elevation","z","SuccessDialog","height","width","frameBorder","style","opacity","src","ButtonPrimary","onClick","exports"],"sources":["AppInstaller.tsx"],"sourcesContent":["import React, { useEffect, useState } from \"react\";\nimport { default as localStorage } from \"store\";\nimport { LoginScreen, Tags } from \"~/index\";\nimport { useSecurity } from \"@webiny/app-security\";\nimport { CircularProgress } from \"@webiny/ui/Progress\";\nimport { ButtonPrimary } from \"@webiny/ui/Button\";\nimport { SplitView, LeftPanel, RightPanel } from \"../SplitView\";\nimport { Elevation } from \"@webiny/ui/Elevation\";\nimport { useInstaller } from \"./useInstaller\";\nimport Sidebar from \"./Sidebar\";\n\ndeclare global {\n interface Window {\n Cypress: any;\n }\n}\n\nimport { Wrapper, InnerContent, InstallContent, installerSplitView, SuccessDialog } from \"./styled\";\n\ninterface AppInstallerProps {\n children: React.ReactNode;\n}\n\nexport const AppInstaller = ({ children }: AppInstallerProps) => {\n const tenantId = localStorage.get(\"webiny_tenant\") || \"root\";\n const lsKey = `webiny_installation_${tenantId}`;\n const isRootTenant = tenantId === \"root\";\n /*\n * This flag allows us to avoid rendering the <iframe> when the app is tested with Cypress\n * (Cypress doesn't work with cross domains because of security-related implications).\n * @see https://docs.cypress.io/guides/guides/web-security#Insecure-Content\n */\n const isCypressTest = window && window.Cypress;\n\n const markInstallerAsCompleted = () => {\n localStorage.set(lsKey, true);\n };\n\n const isInstallerCompleted = () => {\n return localStorage.get(lsKey) === true;\n };\n\n const [finished, setFinished] = useState(false);\n const { identity } = useSecurity();\n const { loading, installers, installer, isFirstInstall, showNextInstaller, showLogin, onUser } =\n useInstaller({ isInstalled: isInstallerCompleted() });\n\n useEffect(() => {\n if (identity) {\n onUser();\n }\n }, [identity]);\n\n if (isInstallerCompleted()) {\n return <LoginScreen>{children}</LoginScreen>;\n }\n\n const renderLayout = (content: React.ReactNode, secure = false): React.ReactElement => {\n return (\n <Tags tags={{ installer: true }}>\n <SplitView className={installerSplitView}>\n <LeftPanel span={2}>\n <Sidebar\n allInstallers={installers}\n installer={installer}\n showLogin={showLogin}\n />\n </LeftPanel>\n <RightPanel span={10}>\n {!showLogin && !secure && content}\n {(showLogin || secure) && <LoginScreen>{content}</LoginScreen>}\n </RightPanel>\n </SplitView>\n </Tags>\n );\n };\n\n const renderBody = (content: React.ReactNode): React.ReactElement => {\n return (\n <Wrapper>\n <InstallContent>\n <InnerContent>{content}</InnerContent>\n </InstallContent>\n </Wrapper>\n );\n };\n\n // Loading installers data\n if (loading) {\n return <CircularProgress label={\"Checking apps...\"} />;\n }\n\n // This means there are no installers to run or installation was finished\n if (!loading && (installers.length === 0 || finished)) {\n markInstallerAsCompleted();\n return <LoginScreen>{children}</LoginScreen>;\n }\n\n if (installer) {\n return renderLayout(\n renderBody(installer.render({ onInstalled: showNextInstaller })),\n installer.secure\n );\n }\n\n return renderLayout(\n renderBody(\n <Elevation z={1}>\n <SuccessDialog>\n <p>You have successfully installed all new applications!</p>\n {!isCypressTest && isRootTenant && isFirstInstall ? (\n <iframe\n height=\"0\"\n width=\"0\"\n frameBorder=\"0\"\n style={{ opacity: \"0\" }}\n src=\"https://www.webiny.com/thank-you/new-install\"\n ></iframe>\n ) : null}\n <ButtonPrimary\n data-testid={\"open-webiny-cms-admin-button\"}\n onClick={() => {\n markInstallerAsCompleted();\n setFinished(true);\n }}\n >\n Finish install\n </ButtonPrimary>\n </SuccessDialog>\n </Elevation>\n ),\n true\n );\n};\n"],"mappings":";;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,CAAA,GAAAH,OAAA;AACA,IAAAI,YAAA,GAAAJ,OAAA;AACA,IAAAK,SAAA,GAAAL,OAAA;AACA,IAAAM,OAAA,GAAAN,OAAA;AACA,IAAAO,UAAA,GAAAP,OAAA;AACA,IAAAQ,UAAA,GAAAR,OAAA;AACA,IAAAS,cAAA,GAAAT,OAAA;AACA,IAAAU,QAAA,GAAAR,sBAAA,CAAAF,OAAA;AAQA,IAAAW,OAAA,GAAAX,OAAA;AAMO,IAAMY,YAAY,GAAG,SAAfA,YAAYA,CAAAC,IAAA,EAAwC;EAAA,IAAlCC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;EACnC,IAAMC,QAAQ,GAAGC,cAAY,CAACC,GAAG,CAAC,eAAe,CAAC,IAAI,MAAM;EAC5D,IAAMC,KAAK,0BAAAC,MAAA,CAA0BJ,QAAQ,CAAE;EAC/C,IAAMK,YAAY,GAAGL,QAAQ,KAAK,MAAM;EACxC;AACJ;AACA;AACA;AACA;EACI,IAAMM,aAAa,GAAGC,MAAM,IAAIA,MAAM,CAACC,OAAO;EAE9C,IAAMC,wBAAwB,GAAG,SAA3BA,wBAAwBA,CAAA,EAAS;IACnCR,cAAY,CAACS,GAAG,CAACP,KAAK,EAAE,IAAI,CAAC;EACjC,CAAC;EAED,IAAMQ,oBAAoB,GAAG,SAAvBA,oBAAoBA,CAAA,EAAS;IAC/B,OAAOV,cAAY,CAACC,GAAG,CAACC,KAAK,CAAC,KAAK,IAAI;EAC3C,CAAC;EAED,IAAAS,SAAA,GAA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,oBAAO1B,MAAA,CAAAiC,OAAA,CAAAiB,aAAA,CAAC7C,CAAA,CAAA8C,WAAW,QAAEnC,QAAsB,CAAC;EAChD;EAEA,IAAI4B,SAAS,EAAE;IACX,OAAOQ,YAAY,CACfe,UAAU,CAACvB,SAAS,CAAC6B,MAAM,CAAC;MAAEC,WAAW,EAAE5B;IAAkB,CAAC,CAAC,CAAC,EAChEF,SAAS,CAACU,MACd,CAAC;EACL;EAEA,OAAOF,YAAY,CACfe,UAAU,eACNnE,MAAA,CAAAiC,OAAA,CAAAiB,aAAA,CAACxC,UAAA,CAAAiE,SAAS;IAACC,CAAC,EAAE;EAAE,gBACZ5E,MAAA,CAAAiC,OAAA,CAAAiB,aAAA,CAACrC,OAAA,CAAAgE,aAAa,qBACV7E,MAAA,CAAAiC,OAAA,CAAAiB,aAAA,YAAG,uDAAwD,CAAC,EAC3D,CAAC3B,aAAa,IAAID,YAAY,IAAIuB,cAAc,gBAC7C7C,MAAA,CAAAiC,OAAA,CAAAiB,aAAA;IACI4B,MAAM,EAAC,GAAG;IACVC,KAAK,EAAC,GAAG;IACTC,WAAW,EAAC,GAAG;IACfC,KAAK,EAAE;MAAEC,OAAO,EAAE;IAAI,CAAE;IACxBC,GAAG,EAAC;EAA8C,CAC7C,CAAC,GACV,IAAI,eACRnF,MAAA,CAAAiC,OAAA,CAAAiB,aAAA,CAAC1C,OAAA,CAAA4E,aAAa;IACV,eAAa,8BAA+B;IAC5CC,OAAO,EAAE,SAAAA,QAAA,EAAM;MACX3D,wBAAwB,CAAC,CAAC;MAC1BS,WAAW,CAAC,IAAI,CAAC;IACrB;EAAE,GACL,gBAEc,CACJ,CACR,CACf,CAAC,EACD,IACJ,CAAC;AACL,CAAC;AAACmD,OAAA,CAAAxE,YAAA,GAAAA,YAAA"}
|
|
@@ -18,7 +18,7 @@ export declare const Menu: import("@emotion/styled").StyledComponent<Pick<import
|
|
|
18
18
|
onOpen?: (() => void) | undefined;
|
|
19
19
|
onClose?: (() => void) | undefined;
|
|
20
20
|
"data-testid"?: string | undefined;
|
|
21
|
-
}, "anchor" | "className" | "disabled" | "data-testid" | keyof import("@rmwc/menu").MenuProps
|
|
21
|
+
}, "anchor" | "className" | "disabled" | "data-testid" | "handle" | keyof import("@rmwc/menu").MenuProps>> & Partial<Pick<Partial<import("@rmwc/menu").MenuProps & {
|
|
22
22
|
children: import("react").ReactNode;
|
|
23
23
|
handle?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
24
24
|
anchor?: "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "bottomEnd" | "bottomStart" | "topEnd" | "topStart" | undefined;
|
package/hooks/index.d.ts
CHANGED
package/hooks/index.js
CHANGED
|
@@ -80,6 +80,17 @@ Object.keys(_useIsMounted).forEach(function (key) {
|
|
|
80
80
|
}
|
|
81
81
|
});
|
|
82
82
|
});
|
|
83
|
+
var _useStateIfMounted = require("./useStateIfMounted");
|
|
84
|
+
Object.keys(_useStateIfMounted).forEach(function (key) {
|
|
85
|
+
if (key === "default" || key === "__esModule") return;
|
|
86
|
+
if (key in exports && exports[key] === _useStateIfMounted[key]) return;
|
|
87
|
+
Object.defineProperty(exports, key, {
|
|
88
|
+
enumerable: true,
|
|
89
|
+
get: function get() {
|
|
90
|
+
return _useStateIfMounted[key];
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
});
|
|
83
94
|
var _createGenericContext = require("./createGenericContext");
|
|
84
95
|
Object.keys(_createGenericContext).forEach(function (key) {
|
|
85
96
|
if (key === "default" || key === "__esModule") return;
|
package/hooks/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_useConfirmationDialog","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_useDialog","_useSnackbar","_useKeyHandler","_useShiftKey","_useModKey","_useIsMounted","_createGenericContext"],"sources":["index.ts"],"sourcesContent":["export * from \"./useConfirmationDialog\";\nexport * from \"./useDialog\";\nexport * from \"./useSnackbar\";\nexport * from \"./useKeyHandler\";\nexport * from \"./useShiftKey\";\nexport * from \"./useModKey\";\nexport * from \"./useIsMounted\";\nexport * from \"./createGenericContext\";\n"],"mappings":";;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,sBAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,sBAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAT,sBAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,UAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,UAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,UAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAC,UAAA,CAAAL,GAAA;IAAA;EAAA;AAAA;AACA,IAAAM,YAAA,GAAAV,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAQ,YAAA,EAAAP,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAM,YAAA,CAAAN,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAE,YAAA,CAAAN,GAAA;IAAA;EAAA;AAAA;AACA,IAAAO,cAAA,GAAAX,OAAA;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AD,GAAA,MAAAU,aAAA,CAAAV,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAM,aAAA,CAAAV,GAAA;IAAA;EAAA;AAAA;AACA,IAAAW,
|
|
1
|
+
{"version":3,"names":["_useConfirmationDialog","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_useDialog","_useSnackbar","_useKeyHandler","_useShiftKey","_useModKey","_useIsMounted","_useStateIfMounted","_createGenericContext"],"sources":["index.ts"],"sourcesContent":["export * from \"./useConfirmationDialog\";\nexport * from \"./useDialog\";\nexport * from \"./useSnackbar\";\nexport * from \"./useKeyHandler\";\nexport * from \"./useShiftKey\";\nexport * from \"./useModKey\";\nexport * from \"./useIsMounted\";\nexport * from \"./useStateIfMounted\";\nexport * from \"./createGenericContext\";\n"],"mappings":";;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,sBAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,sBAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAT,sBAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,UAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,UAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,UAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAA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,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAQ,qBAAA,CAAAZ,GAAA;IAAA;EAAA;AAAA"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.useStateIfMounted = useStateIfMounted;
|
|
8
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
9
|
+
var _react = require("react");
|
|
10
|
+
var _useIsMounted2 = require("./useIsMounted");
|
|
11
|
+
function useStateIfMounted(defaultState) {
|
|
12
|
+
var _useState = (0, _react.useState)(defaultState),
|
|
13
|
+
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
14
|
+
state = _useState2[0],
|
|
15
|
+
setState = _useState2[1];
|
|
16
|
+
var _useIsMounted = (0, _useIsMounted2.useIsMounted)(),
|
|
17
|
+
isMounted = _useIsMounted.isMounted;
|
|
18
|
+
var setStateIfMounted = (0, _react.useCallback)(function (state) {
|
|
19
|
+
if (isMounted()) {
|
|
20
|
+
setState(state);
|
|
21
|
+
}
|
|
22
|
+
}, [isMounted]);
|
|
23
|
+
return [state, setStateIfMounted];
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
//# sourceMappingURL=useStateIfMounted.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","require","_useIsMounted2","useStateIfMounted","defaultState","_useState","useState","_useState2","_slicedToArray2","default","state","setState","_useIsMounted","useIsMounted","isMounted","setStateIfMounted","useCallback"],"sources":["useStateIfMounted.ts"],"sourcesContent":["import { useState, useCallback } from \"react\";\nimport { useIsMounted } from \"./useIsMounted\";\n\nexport function useStateIfMounted<T>(\n defaultState: T\n): [T, React.Dispatch<React.SetStateAction<T>>] {\n const [state, setState] = useState<T>(defaultState);\n const { isMounted } = useIsMounted();\n\n const setStateIfMounted = useCallback(\n (state: React.SetStateAction<T>) => {\n if (isMounted()) {\n setState(state);\n }\n },\n [isMounted]\n );\n\n return [state, setStateIfMounted];\n}\n"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,cAAA,GAAAD,OAAA;AAEO,SAASE,iBAAiBA,CAC7BC,YAAe,EAC6B;EAC5C,IAAAC,SAAA,GAA0B,IAAAC,eAAQ,EAAIF,YAAY,CAAC;IAAAG,UAAA,OAAAC,eAAA,CAAAC,OAAA,EAAAJ,SAAA;IAA5CK,KAAK,GAAAH,UAAA;IAAEI,QAAQ,GAAAJ,UAAA;EACtB,IAAAK,aAAA,GAAsB,IAAAC,2BAAY,EAAC,CAAC;IAA5BC,SAAS,GAAAF,aAAA,CAATE,SAAS;EAEjB,IAAMC,iBAAiB,GAAG,IAAAC,kBAAW,EACjC,UAACN,KAA8B,EAAK;IAChC,IAAII,SAAS,CAAC,CAAC,EAAE;MACbH,QAAQ,CAACD,KAAK,CAAC;IACnB;EACJ,CAAC,EACD,CAACI,SAAS,CACd,CAAC;EAED,OAAO,CAACJ,KAAK,EAAEK,iBAAiB,CAAC;AACrC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/app-admin",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.40.0-beta.0",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"description": "A collection of plugins that together form a complete admin interface, customizable and extensible with Webiny apps and plugins.",
|
|
6
6
|
"repository": {
|
|
@@ -20,20 +20,20 @@
|
|
|
20
20
|
"@svgr/webpack": "6.5.1",
|
|
21
21
|
"@types/mime": "2.0.3",
|
|
22
22
|
"@types/react": "17.0.39",
|
|
23
|
-
"@webiny/app": "5.
|
|
24
|
-
"@webiny/app-security": "5.
|
|
25
|
-
"@webiny/app-theme": "5.
|
|
26
|
-
"@webiny/app-wcp": "5.
|
|
27
|
-
"@webiny/form": "5.
|
|
28
|
-
"@webiny/lexical-editor": "5.
|
|
29
|
-
"@webiny/plugins": "5.
|
|
30
|
-
"@webiny/react-composition": "5.
|
|
31
|
-
"@webiny/react-router": "5.
|
|
32
|
-
"@webiny/telemetry": "5.
|
|
33
|
-
"@webiny/ui": "5.
|
|
34
|
-
"@webiny/ui-composer": "5.
|
|
35
|
-
"@webiny/utils": "5.
|
|
36
|
-
"@webiny/validation": "5.
|
|
23
|
+
"@webiny/app": "5.40.0-beta.0",
|
|
24
|
+
"@webiny/app-security": "5.40.0-beta.0",
|
|
25
|
+
"@webiny/app-theme": "5.40.0-beta.0",
|
|
26
|
+
"@webiny/app-wcp": "5.40.0-beta.0",
|
|
27
|
+
"@webiny/form": "5.40.0-beta.0",
|
|
28
|
+
"@webiny/lexical-editor": "5.40.0-beta.0",
|
|
29
|
+
"@webiny/plugins": "5.40.0-beta.0",
|
|
30
|
+
"@webiny/react-composition": "5.40.0-beta.0",
|
|
31
|
+
"@webiny/react-router": "5.40.0-beta.0",
|
|
32
|
+
"@webiny/telemetry": "5.40.0-beta.0",
|
|
33
|
+
"@webiny/ui": "5.40.0-beta.0",
|
|
34
|
+
"@webiny/ui-composer": "5.40.0-beta.0",
|
|
35
|
+
"@webiny/utils": "5.40.0-beta.0",
|
|
36
|
+
"@webiny/validation": "5.40.0-beta.0",
|
|
37
37
|
"apollo-cache": "1.3.5",
|
|
38
38
|
"apollo-client": "2.6.10",
|
|
39
39
|
"apollo-link": "1.2.14",
|
|
@@ -65,8 +65,8 @@
|
|
|
65
65
|
"@types/graphlib": "2.1.8",
|
|
66
66
|
"@types/is-hotkey": "0.1.7",
|
|
67
67
|
"@types/store": "2.0.2",
|
|
68
|
-
"@webiny/cli": "5.
|
|
69
|
-
"@webiny/project-utils": "5.
|
|
68
|
+
"@webiny/cli": "5.40.0-beta.0",
|
|
69
|
+
"@webiny/project-utils": "5.40.0-beta.0",
|
|
70
70
|
"babel-plugin-emotion": "9.2.11",
|
|
71
71
|
"rimraf": "3.0.2",
|
|
72
72
|
"ttypescript": "1.5.15",
|
|
@@ -92,5 +92,5 @@
|
|
|
92
92
|
]
|
|
93
93
|
}
|
|
94
94
|
},
|
|
95
|
-
"gitHead": "
|
|
95
|
+
"gitHead": "d716758f56ca020dfaf8147cd908dddfaaf0937f"
|
|
96
96
|
}
|
|
@@ -12,5 +12,10 @@ export interface SearchBarState {
|
|
|
12
12
|
current?: AdminGlobalSearchPlugin;
|
|
13
13
|
};
|
|
14
14
|
}
|
|
15
|
-
declare const _default: import("../../index").
|
|
15
|
+
declare const _default: import("../../index").GenericComponent<any> & {
|
|
16
|
+
original: import("../../index").GenericComponent<any>;
|
|
17
|
+
originalName: string;
|
|
18
|
+
} & {
|
|
19
|
+
createDecorator: (decorator: import("../../index").Decorator<(props: any) => JSX.Element | null>) => (props: unknown) => JSX.Element;
|
|
20
|
+
};
|
|
16
21
|
export default _default;
|