@aws-amplify/ui 6.0.3 → 6.0.5
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.
|
@@ -34,6 +34,7 @@ const LEGACY_WAIT_CONFIG = {
|
|
|
34
34
|
actions: ['configure'],
|
|
35
35
|
target: 'getConfig',
|
|
36
36
|
},
|
|
37
|
+
SIGN_OUT: '#authenticator.signOut',
|
|
37
38
|
},
|
|
38
39
|
};
|
|
39
40
|
// setup step proceeds directly to configure
|
|
@@ -59,7 +60,7 @@ function createAuthenticatorMachine(options) {
|
|
|
59
60
|
idle: {
|
|
60
61
|
invoke: {
|
|
61
62
|
src: 'handleGetCurrentUser',
|
|
62
|
-
onDone: { actions: 'setUser', target: '
|
|
63
|
+
onDone: { actions: 'setUser', target: 'setup' },
|
|
63
64
|
onError: { target: 'setup' },
|
|
64
65
|
},
|
|
65
66
|
},
|
|
@@ -70,10 +71,17 @@ function createAuthenticatorMachine(options) {
|
|
|
70
71
|
getConfig: {
|
|
71
72
|
invoke: {
|
|
72
73
|
src: 'getAmplifyConfig',
|
|
73
|
-
onDone:
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
74
|
+
onDone: [
|
|
75
|
+
{
|
|
76
|
+
actions: ['applyAmplifyConfig', 'setHasSetup'],
|
|
77
|
+
cond: 'hasUser',
|
|
78
|
+
target: '#authenticator.authenticated',
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
actions: ['applyAmplifyConfig', 'setHasSetup'],
|
|
82
|
+
target: 'goToInitialState',
|
|
83
|
+
},
|
|
84
|
+
],
|
|
77
85
|
},
|
|
78
86
|
},
|
|
79
87
|
goToInitialState: {
|
|
@@ -332,7 +340,7 @@ function createAuthenticatorMachine(options) {
|
|
|
332
340
|
configure: assign((_, event) => {
|
|
333
341
|
const { services: customServices, ...config } = !isEmptyObject(overrideConfigServices)
|
|
334
342
|
? overrideConfigServices
|
|
335
|
-
: event.data;
|
|
343
|
+
: event.data ?? {};
|
|
336
344
|
return {
|
|
337
345
|
services: { ...defaultServices, ...customServices },
|
|
338
346
|
config,
|
|
@@ -346,6 +354,9 @@ function createAuthenticatorMachine(options) {
|
|
|
346
354
|
isInitialStateSignUp: ({ config }) => config.initialState === 'signUp',
|
|
347
355
|
isInitialStateResetPassword: ({ config }) => config.initialState === 'forgotPassword',
|
|
348
356
|
shouldSetup: ({ hasSetup }) => !hasSetup,
|
|
357
|
+
hasUser: ({ user }) => {
|
|
358
|
+
return !!user;
|
|
359
|
+
},
|
|
349
360
|
},
|
|
350
361
|
services: {
|
|
351
362
|
getAmplifyConfig: ({ services }) => services.getAmplifyConfig(),
|
package/dist/index.js
CHANGED
|
@@ -4630,6 +4630,7 @@ const LEGACY_WAIT_CONFIG = {
|
|
|
4630
4630
|
actions: ['configure'],
|
|
4631
4631
|
target: 'getConfig',
|
|
4632
4632
|
},
|
|
4633
|
+
SIGN_OUT: '#authenticator.signOut',
|
|
4633
4634
|
},
|
|
4634
4635
|
};
|
|
4635
4636
|
// setup step proceeds directly to configure
|
|
@@ -4655,7 +4656,7 @@ function createAuthenticatorMachine(options) {
|
|
|
4655
4656
|
idle: {
|
|
4656
4657
|
invoke: {
|
|
4657
4658
|
src: 'handleGetCurrentUser',
|
|
4658
|
-
onDone: { actions: 'setUser', target: '
|
|
4659
|
+
onDone: { actions: 'setUser', target: 'setup' },
|
|
4659
4660
|
onError: { target: 'setup' },
|
|
4660
4661
|
},
|
|
4661
4662
|
},
|
|
@@ -4666,10 +4667,17 @@ function createAuthenticatorMachine(options) {
|
|
|
4666
4667
|
getConfig: {
|
|
4667
4668
|
invoke: {
|
|
4668
4669
|
src: 'getAmplifyConfig',
|
|
4669
|
-
onDone:
|
|
4670
|
-
|
|
4671
|
-
|
|
4672
|
-
|
|
4670
|
+
onDone: [
|
|
4671
|
+
{
|
|
4672
|
+
actions: ['applyAmplifyConfig', 'setHasSetup'],
|
|
4673
|
+
cond: 'hasUser',
|
|
4674
|
+
target: '#authenticator.authenticated',
|
|
4675
|
+
},
|
|
4676
|
+
{
|
|
4677
|
+
actions: ['applyAmplifyConfig', 'setHasSetup'],
|
|
4678
|
+
target: 'goToInitialState',
|
|
4679
|
+
},
|
|
4680
|
+
],
|
|
4673
4681
|
},
|
|
4674
4682
|
},
|
|
4675
4683
|
goToInitialState: {
|
|
@@ -4928,7 +4936,7 @@ function createAuthenticatorMachine(options) {
|
|
|
4928
4936
|
configure: xstate.assign((_, event) => {
|
|
4929
4937
|
const { services: customServices, ...config } = !isEmptyObject(overrideConfigServices)
|
|
4930
4938
|
? overrideConfigServices
|
|
4931
|
-
: event.data;
|
|
4939
|
+
: event.data ?? {};
|
|
4932
4940
|
return {
|
|
4933
4941
|
services: { ...defaultServices, ...customServices },
|
|
4934
4942
|
config,
|
|
@@ -4942,6 +4950,9 @@ function createAuthenticatorMachine(options) {
|
|
|
4942
4950
|
isInitialStateSignUp: ({ config }) => config.initialState === 'signUp',
|
|
4943
4951
|
isInitialStateResetPassword: ({ config }) => config.initialState === 'forgotPassword',
|
|
4944
4952
|
shouldSetup: ({ hasSetup }) => !hasSetup,
|
|
4953
|
+
hasUser: ({ user }) => {
|
|
4954
|
+
return !!user;
|
|
4955
|
+
},
|
|
4945
4956
|
},
|
|
4946
4957
|
services: {
|
|
4947
4958
|
getAmplifyConfig: ({ services }) => services.getAmplifyConfig(),
|
package/dist/styles/liveness.css
CHANGED
|
@@ -206,7 +206,7 @@
|
|
|
206
206
|
content: "";
|
|
207
207
|
width: 100%;
|
|
208
208
|
height: 100%;
|
|
209
|
-
background: var(--amplify-colors-primary-
|
|
209
|
+
background: var(--amplify-colors-primary-80);
|
|
210
210
|
left: -100%;
|
|
211
211
|
transform: translate(var(--percentage), 0);
|
|
212
212
|
transition: var(--amplify-liveness-match-indicator-transition);
|
|
@@ -307,7 +307,7 @@
|
|
|
307
307
|
|
|
308
308
|
.amplify-liveness-start-screen-warning {
|
|
309
309
|
color: var(--amplify-colors-blue-90);
|
|
310
|
-
background-color: var(--amplify-colors-blue-
|
|
310
|
+
background-color: var(--amplify-colors-blue-10);
|
|
311
311
|
align-items: center;
|
|
312
312
|
z-index: 3;
|
|
313
313
|
}
|
|
@@ -349,13 +349,12 @@
|
|
|
349
349
|
|
|
350
350
|
.amplify-liveness-popover {
|
|
351
351
|
position: relative;
|
|
352
|
-
cursor: pointer;
|
|
353
352
|
}
|
|
354
353
|
|
|
355
354
|
.amplify-liveness-popover__anchor {
|
|
356
355
|
position: absolute;
|
|
357
356
|
top: 26px;
|
|
358
|
-
left:
|
|
357
|
+
left: 20px;
|
|
359
358
|
z-index: 3;
|
|
360
359
|
border-style: solid;
|
|
361
360
|
border-width: 0 9px 9px 9px;
|
|
@@ -365,7 +364,7 @@
|
|
|
365
364
|
.amplify-liveness-popover__anchor-secondary {
|
|
366
365
|
position: absolute;
|
|
367
366
|
top: 24px;
|
|
368
|
-
left:
|
|
367
|
+
left: 19px;
|
|
369
368
|
z-index: 2;
|
|
370
369
|
border-style: solid;
|
|
371
370
|
border-width: 0 10px 10px 10px;
|
|
@@ -378,6 +377,7 @@
|
|
|
378
377
|
color: var(--amplify-colors-font-primary);
|
|
379
378
|
flex-direction: row;
|
|
380
379
|
font-size: var(--amplify-font-sizes-xs);
|
|
380
|
+
font-weight: var(--amplify-font-weights-normal);
|
|
381
381
|
padding: var(--amplify-space-small);
|
|
382
382
|
top: 33px;
|
|
383
383
|
width: 240px;
|
|
@@ -207,7 +207,7 @@
|
|
|
207
207
|
content: "";
|
|
208
208
|
width: 100%;
|
|
209
209
|
height: 100%;
|
|
210
|
-
background: var(--amplify-colors-primary-
|
|
210
|
+
background: var(--amplify-colors-primary-80);
|
|
211
211
|
left: -100%;
|
|
212
212
|
transform: translate(var(--percentage), 0);
|
|
213
213
|
transition: var(--amplify-liveness-match-indicator-transition);
|
|
@@ -308,7 +308,7 @@
|
|
|
308
308
|
|
|
309
309
|
.amplify-liveness-start-screen-warning {
|
|
310
310
|
color: var(--amplify-colors-blue-90);
|
|
311
|
-
background-color: var(--amplify-colors-blue-
|
|
311
|
+
background-color: var(--amplify-colors-blue-10);
|
|
312
312
|
align-items: center;
|
|
313
313
|
z-index: 3;
|
|
314
314
|
}
|
|
@@ -350,13 +350,12 @@
|
|
|
350
350
|
|
|
351
351
|
.amplify-liveness-popover {
|
|
352
352
|
position: relative;
|
|
353
|
-
cursor: pointer;
|
|
354
353
|
}
|
|
355
354
|
|
|
356
355
|
.amplify-liveness-popover__anchor {
|
|
357
356
|
position: absolute;
|
|
358
357
|
top: 26px;
|
|
359
|
-
left:
|
|
358
|
+
left: 20px;
|
|
360
359
|
z-index: 3;
|
|
361
360
|
border-style: solid;
|
|
362
361
|
border-width: 0 9px 9px 9px;
|
|
@@ -366,7 +365,7 @@
|
|
|
366
365
|
.amplify-liveness-popover__anchor-secondary {
|
|
367
366
|
position: absolute;
|
|
368
367
|
top: 24px;
|
|
369
|
-
left:
|
|
368
|
+
left: 19px;
|
|
370
369
|
z-index: 2;
|
|
371
370
|
border-style: solid;
|
|
372
371
|
border-width: 0 10px 10px 10px;
|
|
@@ -379,6 +378,7 @@
|
|
|
379
378
|
color: var(--amplify-colors-font-primary);
|
|
380
379
|
flex-direction: row;
|
|
381
380
|
font-size: var(--amplify-font-sizes-xs);
|
|
381
|
+
font-weight: var(--amplify-font-weights-normal);
|
|
382
382
|
padding: var(--amplify-space-small);
|
|
383
383
|
top: 33px;
|
|
384
384
|
width: 240px;
|
package/dist/styles.css
CHANGED
|
@@ -4112,7 +4112,7 @@ html[dir=rtl] .amplify-field-group__inner-start {
|
|
|
4112
4112
|
content: "";
|
|
4113
4113
|
width: 100%;
|
|
4114
4114
|
height: 100%;
|
|
4115
|
-
background: var(--amplify-colors-primary-
|
|
4115
|
+
background: var(--amplify-colors-primary-80);
|
|
4116
4116
|
left: -100%;
|
|
4117
4117
|
transform: translate(var(--percentage), 0);
|
|
4118
4118
|
transition: var(--amplify-liveness-match-indicator-transition);
|
|
@@ -4213,7 +4213,7 @@ html[dir=rtl] .amplify-field-group__inner-start {
|
|
|
4213
4213
|
|
|
4214
4214
|
.amplify-liveness-start-screen-warning {
|
|
4215
4215
|
color: var(--amplify-colors-blue-90);
|
|
4216
|
-
background-color: var(--amplify-colors-blue-
|
|
4216
|
+
background-color: var(--amplify-colors-blue-10);
|
|
4217
4217
|
align-items: center;
|
|
4218
4218
|
z-index: 3;
|
|
4219
4219
|
}
|
|
@@ -4255,13 +4255,12 @@ html[dir=rtl] .amplify-field-group__inner-start {
|
|
|
4255
4255
|
|
|
4256
4256
|
.amplify-liveness-popover {
|
|
4257
4257
|
position: relative;
|
|
4258
|
-
cursor: pointer;
|
|
4259
4258
|
}
|
|
4260
4259
|
|
|
4261
4260
|
.amplify-liveness-popover__anchor {
|
|
4262
4261
|
position: absolute;
|
|
4263
4262
|
top: 26px;
|
|
4264
|
-
left:
|
|
4263
|
+
left: 20px;
|
|
4265
4264
|
z-index: 3;
|
|
4266
4265
|
border-style: solid;
|
|
4267
4266
|
border-width: 0 9px 9px 9px;
|
|
@@ -4271,7 +4270,7 @@ html[dir=rtl] .amplify-field-group__inner-start {
|
|
|
4271
4270
|
.amplify-liveness-popover__anchor-secondary {
|
|
4272
4271
|
position: absolute;
|
|
4273
4272
|
top: 24px;
|
|
4274
|
-
left:
|
|
4273
|
+
left: 19px;
|
|
4275
4274
|
z-index: 2;
|
|
4276
4275
|
border-style: solid;
|
|
4277
4276
|
border-width: 0 10px 10px 10px;
|
|
@@ -4284,6 +4283,7 @@ html[dir=rtl] .amplify-field-group__inner-start {
|
|
|
4284
4283
|
color: var(--amplify-colors-font-primary);
|
|
4285
4284
|
flex-direction: row;
|
|
4286
4285
|
font-size: var(--amplify-font-sizes-xs);
|
|
4286
|
+
font-weight: var(--amplify-font-weights-normal);
|
|
4287
4287
|
padding: var(--amplify-space-small);
|
|
4288
4288
|
top: 33px;
|
|
4289
4289
|
width: 240px;
|
package/dist/styles.layer.css
CHANGED
|
@@ -4113,7 +4113,7 @@ html[dir=rtl] .amplify-field-group__inner-start {
|
|
|
4113
4113
|
content: "";
|
|
4114
4114
|
width: 100%;
|
|
4115
4115
|
height: 100%;
|
|
4116
|
-
background: var(--amplify-colors-primary-
|
|
4116
|
+
background: var(--amplify-colors-primary-80);
|
|
4117
4117
|
left: -100%;
|
|
4118
4118
|
transform: translate(var(--percentage), 0);
|
|
4119
4119
|
transition: var(--amplify-liveness-match-indicator-transition);
|
|
@@ -4214,7 +4214,7 @@ html[dir=rtl] .amplify-field-group__inner-start {
|
|
|
4214
4214
|
|
|
4215
4215
|
.amplify-liveness-start-screen-warning {
|
|
4216
4216
|
color: var(--amplify-colors-blue-90);
|
|
4217
|
-
background-color: var(--amplify-colors-blue-
|
|
4217
|
+
background-color: var(--amplify-colors-blue-10);
|
|
4218
4218
|
align-items: center;
|
|
4219
4219
|
z-index: 3;
|
|
4220
4220
|
}
|
|
@@ -4256,13 +4256,12 @@ html[dir=rtl] .amplify-field-group__inner-start {
|
|
|
4256
4256
|
|
|
4257
4257
|
.amplify-liveness-popover {
|
|
4258
4258
|
position: relative;
|
|
4259
|
-
cursor: pointer;
|
|
4260
4259
|
}
|
|
4261
4260
|
|
|
4262
4261
|
.amplify-liveness-popover__anchor {
|
|
4263
4262
|
position: absolute;
|
|
4264
4263
|
top: 26px;
|
|
4265
|
-
left:
|
|
4264
|
+
left: 20px;
|
|
4266
4265
|
z-index: 3;
|
|
4267
4266
|
border-style: solid;
|
|
4268
4267
|
border-width: 0 9px 9px 9px;
|
|
@@ -4272,7 +4271,7 @@ html[dir=rtl] .amplify-field-group__inner-start {
|
|
|
4272
4271
|
.amplify-liveness-popover__anchor-secondary {
|
|
4273
4272
|
position: absolute;
|
|
4274
4273
|
top: 24px;
|
|
4275
|
-
left:
|
|
4274
|
+
left: 19px;
|
|
4276
4275
|
z-index: 2;
|
|
4277
4276
|
border-style: solid;
|
|
4278
4277
|
border-width: 0 10px 10px 10px;
|
|
@@ -4285,6 +4284,7 @@ html[dir=rtl] .amplify-field-group__inner-start {
|
|
|
4285
4284
|
color: var(--amplify-colors-font-primary);
|
|
4286
4285
|
flex-direction: row;
|
|
4287
4286
|
font-size: var(--amplify-font-sizes-xs);
|
|
4287
|
+
font-weight: var(--amplify-font-weights-normal);
|
|
4288
4288
|
padding: var(--amplify-space-small);
|
|
4289
4289
|
top: 33px;
|
|
4290
4290
|
width: 240px;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-amplify/ui",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.5",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "dist/esm/index.mjs",
|
|
6
6
|
"exports": {
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"csstype": "^3.1.1",
|
|
48
48
|
"lodash": "4.17.21",
|
|
49
|
-
"style-dictionary": "3.
|
|
49
|
+
"style-dictionary": "3.9.1",
|
|
50
50
|
"tslib": "^2.5.2"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
@@ -62,6 +62,7 @@
|
|
|
62
62
|
"@types/lodash": "^4.14.170",
|
|
63
63
|
"@types/webpack-env": "^1.16.2",
|
|
64
64
|
"autoprefixer": "^10.3.1",
|
|
65
|
+
"glob": "^10.3.10",
|
|
65
66
|
"postcss": "^8.4.31",
|
|
66
67
|
"sass": "^1.35.2"
|
|
67
68
|
},
|