@aws-amplify/ui-vue 3.1.16 → 3.1.18
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/index.cjs +13 -12
- package/dist/index.js +334 -390
- package/dist/src/components/__tests__/authenticator.spec.d.ts +2 -0
- package/dist/src/components/__tests__/authenticator.spec.d.ts.map +1 -0
- package/dist/src/components/authenticator.vue.d.ts.map +1 -1
- package/dist/src/components/confirm-reset-password.vue.d.ts.map +1 -1
- package/dist/src/components/confirm-sign-in.vue.d.ts.map +1 -1
- package/dist/src/components/confirm-sign-up.vue.d.ts.map +1 -1
- package/dist/src/components/confirm-verify-user.vue.d.ts.map +1 -1
- package/dist/src/components/federated-sign-in.vue.d.ts.map +1 -1
- package/dist/src/components/force-new-password.vue.d.ts.map +1 -1
- package/dist/src/components/primitives/base-form-field.vue.d.ts.map +1 -1
- package/dist/src/components/reset-password.vue.d.ts.map +1 -1
- package/dist/src/components/setup-totp.vue.d.ts.map +1 -1
- package/dist/src/components/sign-in.vue.d.ts.map +1 -1
- package/dist/src/components/sign-up.vue.d.ts.map +1 -1
- package/dist/src/components/verify-user.vue.d.ts.map +1 -1
- package/dist/src/composables/__tests__/useAuth.spec.d.ts +2 -0
- package/dist/src/composables/__tests__/useAuth.spec.d.ts.map +1 -0
- package/dist/src/composables/__tests__/useAuthenticator.spec.d.ts +2 -0
- package/dist/src/composables/__tests__/useAuthenticator.spec.d.ts.map +1 -0
- package/dist/src/composables/useAuth.d.ts +2 -12
- package/dist/src/composables/useAuth.d.ts.map +1 -1
- package/dist/src/types/index.d.ts +7 -1
- package/dist/src/types/index.d.ts.map +1 -1
- package/dist/src/version.d.ts +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"authenticator.spec.d.ts","sourceRoot":"","sources":["../../../../src/components/__tests__/authenticator.spec.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authenticator.vue.d.ts","sourceRoot":"","sources":["../../../src/components/authenticator.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"authenticator.vue.d.ts","sourceRoot":"","sources":["../../../src/components/authenticator.vue"],"names":[],"mappings":"AA0BA,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyab,CAAC;AACH,eAAe,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"confirm-reset-password.vue.d.ts","sourceRoot":"","sources":["../../../src/components/confirm-reset-password.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"confirm-reset-password.vue.d.ts","sourceRoot":"","sources":["../../../src/components/confirm-reset-password.vue"],"names":[],"mappings":"AAWA,QAAA,MAAM,SAAS;;;;;MAoIb,CAAC;AACH,eAAe,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"confirm-sign-in.vue.d.ts","sourceRoot":"","sources":["../../../src/components/confirm-sign-in.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"confirm-sign-in.vue.d.ts","sourceRoot":"","sources":["../../../src/components/confirm-sign-in.vue"],"names":[],"mappings":"AAWA,QAAA,MAAM,SAAS;;;;;MAsIb,CAAC;AACH,eAAe,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"confirm-sign-up.vue.d.ts","sourceRoot":"","sources":["../../../src/components/confirm-sign-up.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"confirm-sign-up.vue.d.ts","sourceRoot":"","sources":["../../../src/components/confirm-sign-up.vue"],"names":[],"mappings":"AAUA,QAAA,MAAM,SAAS;;;;;MA4Ib,CAAC;AACH,eAAe,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"confirm-verify-user.vue.d.ts","sourceRoot":"","sources":["../../../src/components/confirm-verify-user.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"confirm-verify-user.vue.d.ts","sourceRoot":"","sources":["../../../src/components/confirm-verify-user.vue"],"names":[],"mappings":"AAWA,QAAA,MAAM,SAAS;;;;;MAmIb,CAAC;AACH,eAAe,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"federated-sign-in.vue.d.ts","sourceRoot":"","sources":["../../../src/components/federated-sign-in.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"federated-sign-in.vue.d.ts","sourceRoot":"","sources":["../../../src/components/federated-sign-in.vue"],"names":[],"mappings":"AAsEA,QAAA,MAAM,SAAS;;4PAuFb,CAAC;AACH,eAAe,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"force-new-password.vue.d.ts","sourceRoot":"","sources":["../../../src/components/force-new-password.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"force-new-password.vue.d.ts","sourceRoot":"","sources":["../../../src/components/force-new-password.vue"],"names":[],"mappings":"AAWA,QAAA,MAAM,SAAS;;;;;MA+Ib,CAAC;AACH,eAAe,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-form-field.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/primitives/base-form-field.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"base-form-field.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/primitives/base-form-field.vue"],"names":[],"mappings":"AASA,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;EA0Db,CAAC;AACH,eAAe,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reset-password.vue.d.ts","sourceRoot":"","sources":["../../../src/components/reset-password.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"reset-password.vue.d.ts","sourceRoot":"","sources":["../../../src/components/reset-password.vue"],"names":[],"mappings":"AAUA,QAAA,MAAM,SAAS;;;;;MA4Hb,CAAC;AACH,eAAe,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setup-totp.vue.d.ts","sourceRoot":"","sources":["../../../src/components/setup-totp.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"setup-totp.vue.d.ts","sourceRoot":"","sources":["../../../src/components/setup-totp.vue"],"names":[],"mappings":"AAyBA,QAAA,MAAM,SAAS;;;;;MA+Lb,CAAC;AACH,eAAe,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sign-in.vue.d.ts","sourceRoot":"","sources":["../../../src/components/sign-in.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sign-in.vue.d.ts","sourceRoot":"","sources":["../../../src/components/sign-in.vue"],"names":[],"mappings":"AAcA,QAAA,MAAM,SAAS;;;;;;MAyIb,CAAC;AACH,eAAe,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sign-up.vue.d.ts","sourceRoot":"","sources":["../../../src/components/sign-up.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sign-up.vue.d.ts","sourceRoot":"","sources":["../../../src/components/sign-up.vue"],"names":[],"mappings":"AAWA,QAAA,MAAM,SAAS;;;;MAkGb,CAAC;AACH,eAAe,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verify-user.vue.d.ts","sourceRoot":"","sources":["../../../src/components/verify-user.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"verify-user.vue.d.ts","sourceRoot":"","sources":["../../../src/components/verify-user.vue"],"names":[],"mappings":"AAWA,QAAA,MAAM,SAAS;;;;;MA0Lb,CAAC;AACH,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAuth.spec.d.ts","sourceRoot":"","sources":["../../../../src/composables/__tests__/useAuth.spec.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAuthenticator.spec.d.ts","sourceRoot":"","sources":["../../../../src/composables/__tests__/useAuthenticator.spec.ts"],"names":[],"mappings":""}
|
|
@@ -1,14 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export declare const useAuth: (serv?: InterpretService) => {
|
|
4
|
-
state: Ref<import("xstate").State<import("@aws-amplify/ui").AuthContext, import("@aws-amplify/ui").AuthEvent, any, {
|
|
5
|
-
value: any;
|
|
6
|
-
context: import("@aws-amplify/ui").AuthContext;
|
|
7
|
-
}, import("xstate").TypegenDisabled>>;
|
|
8
|
-
send: (event: import("xstate").SingleOrArray<import("xstate").Event<import("@aws-amplify/ui").AuthEvent>> | import("xstate").SCXML.Event<import("@aws-amplify/ui").AuthEvent>, payload?: import("xstate").EventData | undefined) => import("xstate").State<import("@aws-amplify/ui").AuthContext, import("@aws-amplify/ui").AuthEvent, any, {
|
|
9
|
-
value: any;
|
|
10
|
-
context: import("@aws-amplify/ui").AuthContext;
|
|
11
|
-
}, import("xstate").TypegenDisabled>;
|
|
12
|
-
};
|
|
1
|
+
import { UseAuth } from '../types';
|
|
2
|
+
export declare const useAuth: () => UseAuth;
|
|
13
3
|
export declare const useAuthenticator: () => any;
|
|
14
4
|
//# sourceMappingURL=useAuth.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAuth.d.ts","sourceRoot":"","sources":["../../../src/composables/useAuth.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useAuth.d.ts","sourceRoot":"","sources":["../../../src/composables/useAuth.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAGnC,eAAO,MAAM,OAAO,QAA8B,OAgChD,CAAC;AAEH,eAAO,MAAM,gBAAgB,WAwB3B,CAAC"}
|
|
@@ -1,6 +1,12 @@
|
|
|
1
|
-
import { AuthContext, AuthEvent, DefaultFormFieldOptions, SignInState, SignUpState } from '@aws-amplify/ui';
|
|
1
|
+
import { AuthContext, AuthEvent, AuthInterpreter, AuthMachineSend, AuthMachineState, AuthStatus, DefaultFormFieldOptions, SignInState, SignUpState } from '@aws-amplify/ui';
|
|
2
2
|
import { ComputedRef, InjectionKey, Ref, Slot } from 'vue';
|
|
3
3
|
import { Interpreter } from 'xstate';
|
|
4
|
+
export interface UseAuth {
|
|
5
|
+
authStatus: Ref<AuthStatus>;
|
|
6
|
+
send: AuthMachineSend;
|
|
7
|
+
service: AuthInterpreter;
|
|
8
|
+
state: Ref<AuthMachineState>;
|
|
9
|
+
}
|
|
4
10
|
export interface SignUpSetupReturnTypes {
|
|
5
11
|
onHaveAccountClicked: () => void;
|
|
6
12
|
onSignUpSubmit: (e: Event) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,SAAS,EACT,uBAAuB,EACvB,WAAW,EACX,WAAW,EACZ,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAErC,MAAM,WAAW,sBAAsB;IACrC,oBAAoB,EAAE,MAAM,IAAI,CAAC;IACjC,cAAc,EAAE,CAAC,CAAC,EAAE,KAAK,KAAK,IAAI,CAAC;IACnC,OAAO,EAAE,CAAC,CAAC,EAAE,KAAK,KAAK,IAAI,CAAC;IAC5B,KAAK,EAAE,GAAG,CAAC;IACX,UAAU,EAAE,WAAW,CAAC,WAAW,CAAC,CAAC;IACrC,KAAK,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACnB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,gBAAgB,EAAE,MAAM,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,kBAAkB,EAAE,CAAC,CAAC,EAAE,KAAK,KAAK,IAAI,CAAC;IACvC,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,MAAM,EAAE,CAAC,CAAC,EAAE,KAAK,KAAK,IAAI,CAAC;IAC3B,UAAU,EAAE,WAAW,CAAC,WAAW,CAAC,CAAC;IACrC,oBAAoB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC7C,aAAa,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACnC,QAAQ,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC9B,UAAU,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAChC,uBAAuB,EAAE,uBAAuB,CAAC;CAClD;AAED,MAAM,MAAM,gBAAgB,GAAG,WAAW,CACxC,WAAW,EACX,GAAG,EACH,SAAS,EACT;IACE,KAAK,EAAE,GAAG,CAAC;IACX,OAAO,EAAE,WAAW,CAAC;CACtB,CACF,CAAC;AAEF,eAAO,MAAM,iCAAiC,EAAE,YAAY,CAAC,gBAAgB,CAChD,CAAC"}
|
package/dist/src/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "3.1.
|
|
1
|
+
export declare const VERSION = "3.1.18";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-amplify/ui-vue",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.18",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"test:watch": "yarn test --watch"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@aws-amplify/ui": "5.6.
|
|
40
|
+
"@aws-amplify/ui": "5.6.4",
|
|
41
41
|
"@vue/tsconfig": "^0.1.3",
|
|
42
42
|
"@vueuse/core": "7.5.5",
|
|
43
43
|
"@xstate/vue": "0.8.1",
|