@aws-amplify/ui-svelte 0.0.0-next-5fb24a8-20220106211328 → 0.0.0-next-3785286-20220106221746
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/components/authStore.js +3 -2
- package/dist/styles.css +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createAuthenticatorMachine,
|
|
1
|
+
import { createAuthenticatorMachine, getSendEventAliases, translate, getServiceContextFacade, } from '@aws-amplify/ui';
|
|
2
2
|
import { interpret } from 'xstate';
|
|
3
3
|
import { writable, get } from 'svelte/store';
|
|
4
4
|
let _facade = writable(null);
|
|
@@ -10,6 +10,7 @@ export const user = writable(null);
|
|
|
10
10
|
export const validationErrors = writable(null);
|
|
11
11
|
export const codeDeliveryDetails = writable(null);
|
|
12
12
|
const _sendEventAliases = writable(null);
|
|
13
|
+
const contextFacade = getServiceContextFacade;
|
|
13
14
|
/** @deprecated For internal use only */
|
|
14
15
|
export const authState = writable(null);
|
|
15
16
|
export function setupMachine(initialState, loginMechanisms, services, signUpAttributes, socialProviders) {
|
|
@@ -25,7 +26,7 @@ export function setupMachine(initialState, loginMechanisms, services, signUpAttr
|
|
|
25
26
|
}).start();
|
|
26
27
|
const subscription = authService.subscribe((state) => {
|
|
27
28
|
authState.update(() => state);
|
|
28
|
-
_facade.update(() =>
|
|
29
|
+
_facade.update(() => contextFacade(state));
|
|
29
30
|
setError();
|
|
30
31
|
setRoute();
|
|
31
32
|
setHasValidationErrors();
|
package/dist/styles.css
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-amplify/ui-svelte",
|
|
3
|
-
"version": "0.0.0-next-
|
|
3
|
+
"version": "0.0.0-next-3785286-20220106221746",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"svelte": "dist/index.js",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"aws-amplify": "^4.2.2"
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@aws-amplify/ui": "^0.0.0-next-
|
|
56
|
+
"@aws-amplify/ui": "^0.0.0-next-3785286-20220106221746",
|
|
57
57
|
"@rollup/plugin-replace": "^3.0.0",
|
|
58
58
|
"nanoid": "^3.1.30",
|
|
59
59
|
"qrcode": "^1.5.0",
|