@webiny/app-admin-cognito 5.40.6 → 5.41.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.
@@ -2,19 +2,43 @@ import React from "react";
2
2
  export interface ContainerProps {
3
3
  children: React.ReactNode;
4
4
  }
5
- export declare const Container: import("@webiny/app-admin").GenericComponent<ContainerProps> & {
6
- original: import("@webiny/app-admin").GenericComponent<ContainerProps>;
5
+ export declare const Container: (({ children }: ContainerProps) => React.JSX.Element) & {
6
+ original: ({ children }: ContainerProps) => React.JSX.Element;
7
7
  originalName: string;
8
8
  displayName: string;
9
9
  } & {
10
- createDecorator: (decorator: import("@webiny/app-admin").Decorator<(props: ContainerProps) => JSX.Element | null>) => (props: unknown) => React.JSX.Element;
10
+ original: (({ children }: ContainerProps) => React.JSX.Element) & {
11
+ original: ({ children }: ContainerProps) => React.JSX.Element;
12
+ originalName: string;
13
+ displayName: string;
14
+ };
15
+ originalName: string;
16
+ displayName: string;
17
+ } & {
18
+ createDecorator: (decorator: import("@webiny/app-admin").ComponentDecorator<(({ children }: ContainerProps) => React.JSX.Element) & {
19
+ original: ({ children }: ContainerProps) => React.JSX.Element;
20
+ originalName: string;
21
+ displayName: string;
22
+ }>) => (props: unknown) => React.JSX.Element;
11
23
  };
12
24
  export declare const FederatedProviders: {
13
- Container: import("@webiny/app-admin").GenericComponent<ContainerProps> & {
14
- original: import("@webiny/app-admin").GenericComponent<ContainerProps>;
25
+ Container: (({ children }: ContainerProps) => React.JSX.Element) & {
26
+ original: ({ children }: ContainerProps) => React.JSX.Element;
27
+ originalName: string;
28
+ displayName: string;
29
+ } & {
30
+ original: (({ children }: ContainerProps) => React.JSX.Element) & {
31
+ original: ({ children }: ContainerProps) => React.JSX.Element;
32
+ originalName: string;
33
+ displayName: string;
34
+ };
15
35
  originalName: string;
16
36
  displayName: string;
17
37
  } & {
18
- createDecorator: (decorator: import("@webiny/app-admin").Decorator<(props: ContainerProps) => JSX.Element | null>) => (props: unknown) => React.JSX.Element;
38
+ createDecorator: (decorator: import("@webiny/app-admin").ComponentDecorator<(({ children }: ContainerProps) => React.JSX.Element) & {
39
+ original: ({ children }: ContainerProps) => React.JSX.Element;
40
+ originalName: string;
41
+ displayName: string;
42
+ }>) => (props: unknown) => React.JSX.Element;
19
43
  };
20
44
  };
@@ -13,39 +13,99 @@ export interface TitleProps {
13
13
  description?: React.ReactNode;
14
14
  }
15
15
  export declare const View: {
16
- Container: import("@webiny/app-admin").GenericComponent<ContainerProps> & {
17
- original: import("@webiny/app-admin").GenericComponent<ContainerProps>;
16
+ Container: (({ children }: ContainerProps) => React.JSX.Element) & {
17
+ original: ({ children }: ContainerProps) => React.JSX.Element;
18
18
  originalName: string;
19
19
  displayName: string;
20
20
  } & {
21
- createDecorator: (decorator: import("@webiny/app-admin").Decorator<(props: ContainerProps) => JSX.Element | null>) => (props: unknown) => React.JSX.Element;
21
+ original: (({ children }: ContainerProps) => React.JSX.Element) & {
22
+ original: ({ children }: ContainerProps) => React.JSX.Element;
23
+ originalName: string;
24
+ displayName: string;
25
+ };
26
+ originalName: string;
27
+ displayName: string;
28
+ } & {
29
+ createDecorator: (decorator: import("@webiny/app-admin").ComponentDecorator<(({ children }: ContainerProps) => React.JSX.Element) & {
30
+ original: ({ children }: ContainerProps) => React.JSX.Element;
31
+ originalName: string;
32
+ displayName: string;
33
+ }>) => (props: unknown) => React.JSX.Element;
22
34
  };
23
- Logo: import("@webiny/app-admin").GenericComponent<any> & {
24
- original: import("@webiny/app-admin").GenericComponent<any>;
35
+ Logo: (() => React.JSX.Element) & {
36
+ original: () => React.JSX.Element;
37
+ originalName: string;
38
+ displayName: string;
39
+ } & {
40
+ original: (() => React.JSX.Element) & {
41
+ original: () => React.JSX.Element;
42
+ originalName: string;
43
+ displayName: string;
44
+ };
25
45
  originalName: string;
26
46
  displayName: string;
27
47
  } & {
28
- createDecorator: (decorator: import("@webiny/app-admin").Decorator<(props: any) => JSX.Element | null>) => (props: unknown) => React.JSX.Element;
48
+ createDecorator: (decorator: import("@webiny/app-admin").ComponentDecorator<(() => React.JSX.Element) & {
49
+ original: () => React.JSX.Element;
50
+ originalName: string;
51
+ displayName: string;
52
+ }>) => (props: unknown) => React.JSX.Element;
29
53
  };
30
- Content: import("@webiny/app-admin").GenericComponent<ContentProps> & {
31
- original: import("@webiny/app-admin").GenericComponent<ContentProps>;
54
+ Content: (({ children }: ContentProps) => React.JSX.Element) & {
55
+ original: ({ children }: ContentProps) => React.JSX.Element;
32
56
  originalName: string;
33
57
  displayName: string;
34
58
  } & {
35
- createDecorator: (decorator: import("@webiny/app-admin").Decorator<(props: ContentProps) => JSX.Element | null>) => (props: unknown) => React.JSX.Element;
59
+ original: (({ children }: ContentProps) => React.JSX.Element) & {
60
+ original: ({ children }: ContentProps) => React.JSX.Element;
61
+ originalName: string;
62
+ displayName: string;
63
+ };
64
+ originalName: string;
65
+ displayName: string;
66
+ } & {
67
+ createDecorator: (decorator: import("@webiny/app-admin").ComponentDecorator<(({ children }: ContentProps) => React.JSX.Element) & {
68
+ original: ({ children }: ContentProps) => React.JSX.Element;
69
+ originalName: string;
70
+ displayName: string;
71
+ }>) => (props: unknown) => React.JSX.Element;
36
72
  };
37
- Title: import("@webiny/app-admin").GenericComponent<TitleProps> & {
38
- original: import("@webiny/app-admin").GenericComponent<TitleProps>;
73
+ Title: (({ title, description }: TitleProps) => React.JSX.Element) & {
74
+ original: ({ title, description }: TitleProps) => React.JSX.Element;
75
+ originalName: string;
76
+ displayName: string;
77
+ } & {
78
+ original: (({ title, description }: TitleProps) => React.JSX.Element) & {
79
+ original: ({ title, description }: TitleProps) => React.JSX.Element;
80
+ originalName: string;
81
+ displayName: string;
82
+ };
39
83
  originalName: string;
40
84
  displayName: string;
41
85
  } & {
42
- createDecorator: (decorator: import("@webiny/app-admin").Decorator<(props: TitleProps) => JSX.Element | null>) => (props: unknown) => React.JSX.Element;
86
+ createDecorator: (decorator: import("@webiny/app-admin").ComponentDecorator<(({ title, description }: TitleProps) => React.JSX.Element) & {
87
+ original: ({ title, description }: TitleProps) => React.JSX.Element;
88
+ originalName: string;
89
+ displayName: string;
90
+ }>) => (props: unknown) => React.JSX.Element;
43
91
  };
44
- Footer: import("@webiny/app-admin").GenericComponent<FooterProps> & {
45
- original: import("@webiny/app-admin").GenericComponent<FooterProps>;
92
+ Footer: (({ children }: FooterProps) => React.JSX.Element) & {
93
+ original: ({ children }: FooterProps) => React.JSX.Element;
94
+ originalName: string;
95
+ displayName: string;
96
+ } & {
97
+ original: (({ children }: FooterProps) => React.JSX.Element) & {
98
+ original: ({ children }: FooterProps) => React.JSX.Element;
99
+ originalName: string;
100
+ displayName: string;
101
+ };
46
102
  originalName: string;
47
103
  displayName: string;
48
104
  } & {
49
- createDecorator: (decorator: import("@webiny/app-admin").Decorator<(props: FooterProps) => JSX.Element | null>) => (props: unknown) => React.JSX.Element;
105
+ createDecorator: (decorator: import("@webiny/app-admin").ComponentDecorator<(({ children }: FooterProps) => React.JSX.Element) & {
106
+ original: ({ children }: FooterProps) => React.JSX.Element;
107
+ originalName: string;
108
+ displayName: string;
109
+ }>) => (props: unknown) => React.JSX.Element;
50
110
  };
51
111
  };
@@ -3,7 +3,7 @@ export declare const federatedIdentityProviders: Record<string, string>;
3
3
  export interface SignInProps {
4
4
  signIn: () => void;
5
5
  }
6
- export declare type FederatedIdentityProvider = {
6
+ export type FederatedIdentityProvider = {
7
7
  name: string;
8
8
  component: React.FunctionComponent<SignInProps>;
9
9
  };
package/index.d.ts CHANGED
@@ -4,57 +4,141 @@ import ApolloClient from "apollo-client";
4
4
  import { FederatedIdentityProvider } from "./federatedIdentityProviders";
5
5
  export declare const Components: {
6
6
  View: {
7
- Container: import("@webiny/react-composition").GenericComponent<import("./components/View").ContainerProps> & {
8
- original: import("@webiny/react-composition").GenericComponent<import("./components/View").ContainerProps>;
7
+ Container: (({ children }: import("./components/View").ContainerProps) => React.JSX.Element) & {
8
+ original: ({ children }: import("./components/View").ContainerProps) => React.JSX.Element;
9
9
  originalName: string;
10
10
  displayName: string;
11
11
  } & {
12
- createDecorator: (decorator: import("@webiny/react-composition").Decorator<(props: import("./components/View").ContainerProps) => JSX.Element | null>) => (props: unknown) => React.JSX.Element;
12
+ original: (({ children }: import("./components/View").ContainerProps) => React.JSX.Element) & {
13
+ original: ({ children }: import("./components/View").ContainerProps) => React.JSX.Element;
14
+ originalName: string;
15
+ displayName: string;
16
+ };
17
+ originalName: string;
18
+ displayName: string;
19
+ } & {
20
+ createDecorator: (decorator: import("@webiny/react-composition").ComponentDecorator<(({ children }: import("./components/View").ContainerProps) => React.JSX.Element) & {
21
+ original: ({ children }: import("./components/View").ContainerProps) => React.JSX.Element;
22
+ originalName: string;
23
+ displayName: string;
24
+ }>) => (props: unknown) => React.JSX.Element;
13
25
  };
14
- Logo: import("@webiny/react-composition").GenericComponent<any> & {
15
- original: import("@webiny/react-composition").GenericComponent<any>;
26
+ Logo: (() => React.JSX.Element) & {
27
+ original: () => React.JSX.Element;
16
28
  originalName: string;
17
29
  displayName: string;
18
30
  } & {
19
- createDecorator: (decorator: import("@webiny/react-composition").Decorator<(props: any) => JSX.Element | null>) => (props: unknown) => React.JSX.Element;
31
+ original: (() => React.JSX.Element) & {
32
+ original: () => React.JSX.Element;
33
+ originalName: string;
34
+ displayName: string;
35
+ };
36
+ originalName: string;
37
+ displayName: string;
38
+ } & {
39
+ createDecorator: (decorator: import("@webiny/react-composition").ComponentDecorator<(() => React.JSX.Element) & {
40
+ original: () => React.JSX.Element;
41
+ originalName: string;
42
+ displayName: string;
43
+ }>) => (props: unknown) => React.JSX.Element;
20
44
  };
21
- Content: import("@webiny/react-composition").GenericComponent<import("./components/View").ContentProps> & {
22
- original: import("@webiny/react-composition").GenericComponent<import("./components/View").ContentProps>;
45
+ Content: (({ children }: import("./components/View").ContentProps) => React.JSX.Element) & {
46
+ original: ({ children }: import("./components/View").ContentProps) => React.JSX.Element;
23
47
  originalName: string;
24
48
  displayName: string;
25
49
  } & {
26
- createDecorator: (decorator: import("@webiny/react-composition").Decorator<(props: import("./components/View").ContentProps) => JSX.Element | null>) => (props: unknown) => React.JSX.Element;
50
+ original: (({ children }: import("./components/View").ContentProps) => React.JSX.Element) & {
51
+ original: ({ children }: import("./components/View").ContentProps) => React.JSX.Element;
52
+ originalName: string;
53
+ displayName: string;
54
+ };
55
+ originalName: string;
56
+ displayName: string;
57
+ } & {
58
+ createDecorator: (decorator: import("@webiny/react-composition").ComponentDecorator<(({ children }: import("./components/View").ContentProps) => React.JSX.Element) & {
59
+ original: ({ children }: import("./components/View").ContentProps) => React.JSX.Element;
60
+ originalName: string;
61
+ displayName: string;
62
+ }>) => (props: unknown) => React.JSX.Element;
27
63
  };
28
- Title: import("@webiny/react-composition").GenericComponent<import("./components/View").TitleProps> & {
29
- original: import("@webiny/react-composition").GenericComponent<import("./components/View").TitleProps>;
64
+ Title: (({ title, description }: import("./components/View").TitleProps) => React.JSX.Element) & {
65
+ original: ({ title, description }: import("./components/View").TitleProps) => React.JSX.Element;
66
+ originalName: string;
67
+ displayName: string;
68
+ } & {
69
+ original: (({ title, description }: import("./components/View").TitleProps) => React.JSX.Element) & {
70
+ original: ({ title, description }: import("./components/View").TitleProps) => React.JSX.Element;
71
+ originalName: string;
72
+ displayName: string;
73
+ };
30
74
  originalName: string;
31
75
  displayName: string;
32
76
  } & {
33
- createDecorator: (decorator: import("@webiny/react-composition").Decorator<(props: import("./components/View").TitleProps) => JSX.Element | null>) => (props: unknown) => React.JSX.Element;
77
+ createDecorator: (decorator: import("@webiny/react-composition").ComponentDecorator<(({ title, description }: import("./components/View").TitleProps) => React.JSX.Element) & {
78
+ original: ({ title, description }: import("./components/View").TitleProps) => React.JSX.Element;
79
+ originalName: string;
80
+ displayName: string;
81
+ }>) => (props: unknown) => React.JSX.Element;
34
82
  };
35
- Footer: import("@webiny/react-composition").GenericComponent<import("./components/View").FooterProps> & {
36
- original: import("@webiny/react-composition").GenericComponent<import("./components/View").FooterProps>;
83
+ Footer: (({ children }: import("./components/View").FooterProps) => React.JSX.Element) & {
84
+ original: ({ children }: import("./components/View").FooterProps) => React.JSX.Element;
85
+ originalName: string;
86
+ displayName: string;
87
+ } & {
88
+ original: (({ children }: import("./components/View").FooterProps) => React.JSX.Element) & {
89
+ original: ({ children }: import("./components/View").FooterProps) => React.JSX.Element;
90
+ originalName: string;
91
+ displayName: string;
92
+ };
37
93
  originalName: string;
38
94
  displayName: string;
39
95
  } & {
40
- createDecorator: (decorator: import("@webiny/react-composition").Decorator<(props: import("./components/View").FooterProps) => JSX.Element | null>) => (props: unknown) => React.JSX.Element;
96
+ createDecorator: (decorator: import("@webiny/react-composition").ComponentDecorator<(({ children }: import("./components/View").FooterProps) => React.JSX.Element) & {
97
+ original: ({ children }: import("./components/View").FooterProps) => React.JSX.Element;
98
+ originalName: string;
99
+ displayName: string;
100
+ }>) => (props: unknown) => React.JSX.Element;
41
101
  };
42
102
  };
43
103
  FederatedProviders: {
44
- Container: import("@webiny/react-composition").GenericComponent<import("./components/FederatedProviders").ContainerProps> & {
45
- original: import("@webiny/react-composition").GenericComponent<import("./components/FederatedProviders").ContainerProps>;
104
+ Container: (({ children }: import("./components/FederatedProviders").ContainerProps) => React.JSX.Element) & {
105
+ original: ({ children }: import("./components/FederatedProviders").ContainerProps) => React.JSX.Element;
46
106
  originalName: string;
47
107
  displayName: string;
48
108
  } & {
49
- createDecorator: (decorator: import("@webiny/react-composition").Decorator<(props: import("./components/FederatedProviders").ContainerProps) => JSX.Element | null>) => (props: unknown) => React.JSX.Element;
109
+ original: (({ children }: import("./components/FederatedProviders").ContainerProps) => React.JSX.Element) & {
110
+ original: ({ children }: import("./components/FederatedProviders").ContainerProps) => React.JSX.Element;
111
+ originalName: string;
112
+ displayName: string;
113
+ };
114
+ originalName: string;
115
+ displayName: string;
116
+ } & {
117
+ createDecorator: (decorator: import("@webiny/react-composition").ComponentDecorator<(({ children }: import("./components/FederatedProviders").ContainerProps) => React.JSX.Element) & {
118
+ original: ({ children }: import("./components/FederatedProviders").ContainerProps) => React.JSX.Element;
119
+ originalName: string;
120
+ displayName: string;
121
+ }>) => (props: unknown) => React.JSX.Element;
50
122
  };
51
123
  };
52
- SignIn: import("@webiny/react-composition").GenericComponent<import("./views/SignIn").SignInProps> & {
53
- original: import("@webiny/react-composition").GenericComponent<import("./views/SignIn").SignInProps>;
124
+ SignIn: ((props: import("./views/SignIn").SignInProps) => React.JSX.Element | null) & {
125
+ original: (props: import("./views/SignIn").SignInProps) => React.JSX.Element | null;
54
126
  originalName: string;
55
127
  displayName: string;
56
128
  } & {
57
- createDecorator: (decorator: import("@webiny/react-composition").Decorator<(props: import("./views/SignIn").SignInProps) => React.JSX.Element | null>) => (props: unknown) => React.JSX.Element;
129
+ original: ((props: import("./views/SignIn").SignInProps) => React.JSX.Element | null) & {
130
+ original: (props: import("./views/SignIn").SignInProps) => React.JSX.Element | null;
131
+ originalName: string;
132
+ displayName: string;
133
+ };
134
+ originalName: string;
135
+ displayName: string;
136
+ } & {
137
+ createDecorator: (decorator: import("@webiny/react-composition").ComponentDecorator<((props: import("./views/SignIn").SignInProps) => React.JSX.Element | null) & {
138
+ original: (props: import("./views/SignIn").SignInProps) => React.JSX.Element | null;
139
+ originalName: string;
140
+ displayName: string;
141
+ }>) => (props: unknown) => React.JSX.Element;
58
142
  };
59
143
  };
60
144
  export interface AuthenticationProps {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webiny/app-admin-cognito",
3
- "version": "5.40.6",
3
+ "version": "5.41.0-beta.0",
4
4
  "main": "index.js",
5
5
  "repository": {
6
6
  "type": "git",
@@ -15,15 +15,15 @@
15
15
  "@apollo/react-hooks": "3.1.5",
16
16
  "@aws-amplify/auth": "5.1.9",
17
17
  "@emotion/styled": "11.10.6",
18
- "@webiny/app": "5.40.6",
19
- "@webiny/app-admin": "5.40.6",
20
- "@webiny/app-cognito-authenticator": "5.40.6",
21
- "@webiny/app-security": "5.40.6",
22
- "@webiny/form": "5.40.6",
23
- "@webiny/plugins": "5.40.6",
24
- "@webiny/react-composition": "5.40.6",
25
- "@webiny/ui": "5.40.6",
26
- "@webiny/validation": "5.40.6",
18
+ "@webiny/app": "5.41.0-beta.0",
19
+ "@webiny/app-admin": "5.41.0-beta.0",
20
+ "@webiny/app-cognito-authenticator": "5.41.0-beta.0",
21
+ "@webiny/app-security": "5.41.0-beta.0",
22
+ "@webiny/form": "5.41.0-beta.0",
23
+ "@webiny/plugins": "5.41.0-beta.0",
24
+ "@webiny/react-composition": "5.41.0-beta.0",
25
+ "@webiny/ui": "5.41.0-beta.0",
26
+ "@webiny/validation": "5.41.0-beta.0",
27
27
  "apollo-client": "2.6.10",
28
28
  "apollo-link-context": "1.0.20",
29
29
  "emotion": "10.0.27",
@@ -38,11 +38,11 @@
38
38
  "@babel/preset-env": "7.24.3",
39
39
  "@babel/preset-react": "7.24.1",
40
40
  "@babel/preset-typescript": "7.24.1",
41
- "@webiny/cli": "5.40.6",
42
- "@webiny/project-utils": "5.40.6",
41
+ "@webiny/cli": "5.41.0-beta.0",
42
+ "@webiny/project-utils": "5.41.0-beta.0",
43
43
  "rimraf": "5.0.5",
44
44
  "ttypescript": "1.5.15",
45
- "typescript": "4.7.4"
45
+ "typescript": "4.9.5"
46
46
  },
47
47
  "publishConfig": {
48
48
  "access": "public",
@@ -62,5 +62,5 @@
62
62
  ]
63
63
  }
64
64
  },
65
- "gitHead": "f9da84b373e62f9f269599c4301e5e4418a98d51"
65
+ "gitHead": "9ce5e75fc577aa4de2cf08d5ca734b3c98fe65b6"
66
66
  }
package/views/SignIn.d.ts CHANGED
@@ -15,10 +15,22 @@ export interface SignInProps {
15
15
  export interface SignInDefaultContentProps extends SignInProps {
16
16
  error?: Error | null;
17
17
  }
18
- export declare const SignIn: import("@webiny/app-admin").GenericComponent<SignInProps> & {
19
- original: import("@webiny/app-admin").GenericComponent<SignInProps>;
18
+ export declare const SignIn: ((props: SignInProps) => React.JSX.Element | null) & {
19
+ original: (props: SignInProps) => React.JSX.Element | null;
20
20
  originalName: string;
21
21
  displayName: string;
22
22
  } & {
23
- createDecorator: (decorator: import("@webiny/app-admin").Decorator<(props: SignInProps) => React.JSX.Element | null>) => (props: unknown) => React.JSX.Element;
23
+ original: ((props: SignInProps) => React.JSX.Element | null) & {
24
+ original: (props: SignInProps) => React.JSX.Element | null;
25
+ originalName: string;
26
+ displayName: string;
27
+ };
28
+ originalName: string;
29
+ displayName: string;
30
+ } & {
31
+ createDecorator: (decorator: import("@webiny/app-admin").ComponentDecorator<((props: SignInProps) => React.JSX.Element | null) & {
32
+ original: (props: SignInProps) => React.JSX.Element | null;
33
+ originalName: string;
34
+ displayName: string;
35
+ }>) => (props: unknown) => React.JSX.Element;
24
36
  };