@aws-amplify/ui-react-core 3.0.4 → 3.0.6
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.
|
@@ -4,8 +4,8 @@ import { getCurrentUser } from 'aws-amplify/auth';
|
|
|
4
4
|
import { createAuthenticatorMachine, listenToAuthHub, defaultAuthHubHandler } from '@aws-amplify/ui';
|
|
5
5
|
import { AuthenticatorContext } from './AuthenticatorContext.mjs';
|
|
6
6
|
|
|
7
|
-
const createHubHandler = (options) =>
|
|
8
|
-
|
|
7
|
+
const createHubHandler = (options) => (data, service) => {
|
|
8
|
+
defaultAuthHubHandler(data, service, options);
|
|
9
9
|
};
|
|
10
10
|
function AuthenticatorProvider({ children, }) {
|
|
11
11
|
// `authStatus` is exposed by `useAuthenticator` but should not be derived directly from the
|
package/dist/index.js
CHANGED
|
@@ -38,8 +38,8 @@ var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
|
38
38
|
*/
|
|
39
39
|
const AuthenticatorContext = React__default["default"].createContext(null);
|
|
40
40
|
|
|
41
|
-
const createHubHandler = (options) =>
|
|
42
|
-
|
|
41
|
+
const createHubHandler = (options) => (data, service) => {
|
|
42
|
+
ui.defaultAuthHubHandler(data, service, options);
|
|
43
43
|
};
|
|
44
44
|
function AuthenticatorProvider({ children, }) {
|
|
45
45
|
// `authStatus` is exposed by `useAuthenticator` but should not be derived directly from the
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-amplify/ui-react-core",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.6",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "dist/esm/index.mjs",
|
|
6
6
|
"react-native": "src/index.ts",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"typecheck": "tsc --noEmit"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@aws-amplify/ui": "6.0.
|
|
36
|
+
"@aws-amplify/ui": "6.0.6",
|
|
37
37
|
"@xstate/react": "^3.2.2",
|
|
38
38
|
"lodash": "4.17.21",
|
|
39
39
|
"react-hook-form": "^7.43.5",
|
|
@@ -16,8 +16,8 @@ type Options = Parameters<AuthMachineHubHandler>[2];
|
|
|
16
16
|
|
|
17
17
|
const createHubHandler =
|
|
18
18
|
(options: Options): AuthMachineHubHandler =>
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
(data, service) => {
|
|
20
|
+
defaultAuthHubHandler(data, service, options);
|
|
21
21
|
};
|
|
22
22
|
|
|
23
23
|
export default function AuthenticatorProvider({
|