@aws-amplify/ui-vue 4.2.0 → 4.2.2
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/verify-user.vue.d.ts.map +1 -1
- package/dist/index.cjs +12 -12
- package/dist/index.js +84 -52
- package/dist/style.css +1 -1
- package/dist/version.d.ts +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -46,7 +46,7 @@ function _sfc_render$3(_ctx, _cache) {
|
|
|
46
46
|
renderSlot(_ctx.$slots, "default")
|
|
47
47
|
]);
|
|
48
48
|
}
|
|
49
|
-
var __unplugin_components_2 = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["render", _sfc_render$3]]);
|
|
49
|
+
var __unplugin_components_2$1 = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["render", _sfc_render$3]]);
|
|
50
50
|
const _hoisted_1$c = ["type", "data-fullwidth", "data-size", "data-fontWeight", "data-variation", "data-loading", "data-disabled", "disabled"];
|
|
51
51
|
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
52
52
|
__name: "amplify-button",
|
|
@@ -726,6 +726,33 @@ const getErrors = (errors) => {
|
|
|
726
726
|
return [errors];
|
|
727
727
|
}
|
|
728
728
|
};
|
|
729
|
+
const censorAllButFirstAndLast = (value) => {
|
|
730
|
+
const split = value.trim().split("");
|
|
731
|
+
for (let i = 0; i < split.length; i++) {
|
|
732
|
+
if (i > 0 && i < split.length - 1) {
|
|
733
|
+
split[i] = "*";
|
|
734
|
+
}
|
|
735
|
+
}
|
|
736
|
+
return split.join("");
|
|
737
|
+
};
|
|
738
|
+
const censorPhoneNumber = (val) => {
|
|
739
|
+
if (val.length < 4) {
|
|
740
|
+
return val;
|
|
741
|
+
}
|
|
742
|
+
const split = val.split("");
|
|
743
|
+
for (let i = 0; i < split.length - 4; i++) {
|
|
744
|
+
split[i] = "*";
|
|
745
|
+
}
|
|
746
|
+
return split.join("");
|
|
747
|
+
};
|
|
748
|
+
const censorEmail = (val) => {
|
|
749
|
+
const splitEmail = val.split("@");
|
|
750
|
+
const censoredName = censorAllButFirstAndLast(splitEmail[0]);
|
|
751
|
+
return `${censoredName}@${splitEmail[1]}`;
|
|
752
|
+
};
|
|
753
|
+
const censorContactMethod = (type, value) => {
|
|
754
|
+
return type === "Phone Number" ? censorPhoneNumber(value) : censorEmail(value);
|
|
755
|
+
};
|
|
729
756
|
const hasSpecialChars = (password) => ALLOWED_SPECIAL_CHARACTERS.some((char) => password.includes(char));
|
|
730
757
|
const getTotpCodeURL = (issuer, username, secret) => encodeURI(`otpauth://totp/${issuer}:${username}?secret=${secret}&issuer=${issuer}`);
|
|
731
758
|
function trimValues(values, ...ignored) {
|
|
@@ -1970,7 +1997,7 @@ const heDict$1 = {
|
|
|
1970
1997
|
"Enter your Email": "\u05D4\u05DB\u05E0\u05E1 \u05D0\u05EA \u05D4\u05DE\u05D9\u05D9\u05DC \u05E9\u05DC\u05DA",
|
|
1971
1998
|
"Enter your phone number": "\u05D4\u05DB\u05E0\u05E1 \u05D0\u05EA \u05DE\u05E1\u05E4\u05E8 \u05D4\u05D8\u05DC\u05E4\u05D5\u05DF \u05E9\u05DC\u05DA",
|
|
1972
1999
|
"Enter your username": "\u05D4\u05DB\u05E0\u05E1 \u05D0\u05EA \u05E9\u05DD \u05D4\u05DE\u05EA\u05DE\u05E9 \u05E9\u05DC\u05DA",
|
|
1973
|
-
"Forgot your password?": "\u05E9\u05D7\
|
|
2000
|
+
"Forgot your password?": "\u05E9\u05DB\u05D7\u05EA \u05E1\u05D9\u05E1\u05DE\u05D0 ?",
|
|
1974
2001
|
"Hide password": "\u05D4\u05E1\u05EA\u05E8 \u05E1\u05D9\u05E1\u05DE\u05D0",
|
|
1975
2002
|
Loading: "\u05D8\u05D5\u05E2\u05DF",
|
|
1976
2003
|
"New password": "\u05E1\u05D9\u05E1\u05DE\u05D0 \u05D7\u05D3\u05E9\u05D4",
|
|
@@ -9338,14 +9365,14 @@ const stopActor = (machineId) => stop(machineId);
|
|
|
9338
9365
|
const LEGACY_WAIT_CONFIG = {
|
|
9339
9366
|
on: {
|
|
9340
9367
|
INIT: {
|
|
9341
|
-
actions:
|
|
9368
|
+
actions: "configure",
|
|
9342
9369
|
target: "getConfig"
|
|
9343
9370
|
},
|
|
9344
9371
|
SIGN_OUT: "#authenticator.signOut"
|
|
9345
9372
|
}
|
|
9346
9373
|
};
|
|
9347
9374
|
const NEXT_WAIT_CONFIG = {
|
|
9348
|
-
always: { actions:
|
|
9375
|
+
always: { actions: "configure", target: "getConfig" }
|
|
9349
9376
|
};
|
|
9350
9377
|
function createAuthenticatorMachine(options) {
|
|
9351
9378
|
const { useNextWaitConfig, ...overrideConfigServices } = options != null ? options : {};
|
|
@@ -9470,6 +9497,11 @@ function createAuthenticatorMachine(options) {
|
|
|
9470
9497
|
cond: "hasCompletedAttributeConfirmation",
|
|
9471
9498
|
target: "#authenticator.getCurrentUser"
|
|
9472
9499
|
},
|
|
9500
|
+
{
|
|
9501
|
+
cond: "isShouldConfirmUserAttributeStep",
|
|
9502
|
+
actions: "setActorDoneData",
|
|
9503
|
+
target: "#authenticator.verifyUserAttributesActor"
|
|
9504
|
+
},
|
|
9473
9505
|
{
|
|
9474
9506
|
cond: "isConfirmUserAttributeStep",
|
|
9475
9507
|
target: "#authenticator.verifyUserAttributesActor"
|
|
@@ -10157,7 +10189,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
10157
10189
|
return (_ctx, _cache) => {
|
|
10158
10190
|
const _component_base_label = __unplugin_components_0;
|
|
10159
10191
|
const _component_base_input = _sfc_main$s;
|
|
10160
|
-
const _component_base_wrapper = __unplugin_components_2;
|
|
10192
|
+
const _component_base_wrapper = __unplugin_components_2$1;
|
|
10161
10193
|
return openBlock(), createBlock(_component_base_wrapper, {
|
|
10162
10194
|
class: normalizeClass([
|
|
10163
10195
|
unref(ComponentClassName).Flex,
|
|
@@ -10310,7 +10342,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
10310
10342
|
return (_ctx, _cache) => {
|
|
10311
10343
|
const _component_base_label = __unplugin_components_0;
|
|
10312
10344
|
const _component_base_select = _sfc_main$p;
|
|
10313
|
-
const _component_base_wrapper = __unplugin_components_2;
|
|
10345
|
+
const _component_base_wrapper = __unplugin_components_2$1;
|
|
10314
10346
|
const _component_base_input = _sfc_main$s;
|
|
10315
10347
|
return openBlock(), createBlock(_component_base_wrapper, { class: "amplify-flex amplify-field amplify-textfield amplify-phonenumberfield" }, {
|
|
10316
10348
|
default: withCtx(() => [
|
|
@@ -10588,7 +10620,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
10588
10620
|
const signInWithGoogle = computed(() => getSignInWithFederationText2(route, "google"));
|
|
10589
10621
|
const orText = computed(() => getOrText());
|
|
10590
10622
|
return (_ctx, _cache) => {
|
|
10591
|
-
const _component_base_wrapper = __unplugin_components_2;
|
|
10623
|
+
const _component_base_wrapper = __unplugin_components_2$1;
|
|
10592
10624
|
return unref(shouldShowFederatedSignIn) ? (openBlock(), createBlock(_component_base_wrapper, {
|
|
10593
10625
|
key: 0,
|
|
10594
10626
|
class: "amplify-flex amplify-authenticator__federated-buttons"
|
|
@@ -10671,7 +10703,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
10671
10703
|
const _component_base_field_set = _sfc_main$t;
|
|
10672
10704
|
const _component_base_alert = _sfc_main$u;
|
|
10673
10705
|
const _component_amplify_button = _sfc_main$v;
|
|
10674
|
-
const _component_base_wrapper = __unplugin_components_2;
|
|
10706
|
+
const _component_base_wrapper = __unplugin_components_2$1;
|
|
10675
10707
|
const _component_base_form = _sfc_main$x;
|
|
10676
10708
|
const _component_base_footer = _sfc_main$y;
|
|
10677
10709
|
return renderSlot(_ctx.$slots, "signInSlotI", normalizeProps(guardReactiveProps(_ctx.$attrs)), () => [
|
|
@@ -10798,7 +10830,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
10798
10830
|
const _component_base_field_set = _sfc_main$t;
|
|
10799
10831
|
const _component_base_alert = _sfc_main$u;
|
|
10800
10832
|
const _component_amplify_button = _sfc_main$v;
|
|
10801
|
-
const _component_base_wrapper = __unplugin_components_2;
|
|
10833
|
+
const _component_base_wrapper = __unplugin_components_2$1;
|
|
10802
10834
|
const _component_base_form = _sfc_main$x;
|
|
10803
10835
|
const _component_base_footer = _sfc_main$y;
|
|
10804
10836
|
return renderSlot(_ctx.$slots, "signUpSlotI", normalizeProps(guardReactiveProps(_ctx.$attrs)), () => [
|
|
@@ -10866,7 +10898,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
10866
10898
|
});
|
|
10867
10899
|
const _sfc_main$g = {};
|
|
10868
10900
|
function _sfc_render$1(_ctx, _cache) {
|
|
10869
|
-
const _component_base_wrapper = __unplugin_components_2;
|
|
10901
|
+
const _component_base_wrapper = __unplugin_components_2$1;
|
|
10870
10902
|
return openBlock(), createBlock(_component_base_wrapper, {
|
|
10871
10903
|
tabindex: "0",
|
|
10872
10904
|
"aria-orientation": "horizontal",
|
|
@@ -10911,7 +10943,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
10911
10943
|
};
|
|
10912
10944
|
}
|
|
10913
10945
|
});
|
|
10914
|
-
const VERSION = "4.2.
|
|
10946
|
+
const VERSION = "4.2.2";
|
|
10915
10947
|
const _sfc_main$e = {};
|
|
10916
10948
|
function _sfc_render(_ctx, _cache) {
|
|
10917
10949
|
return renderSlot(_ctx.$slots, "textI", normalizeProps(guardReactiveProps(_ctx.$attrs)), () => [
|
|
@@ -10920,7 +10952,7 @@ function _sfc_render(_ctx, _cache) {
|
|
|
10920
10952
|
], 16)
|
|
10921
10953
|
]);
|
|
10922
10954
|
}
|
|
10923
|
-
var
|
|
10955
|
+
var __unplugin_components_2 = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render", _sfc_render]]);
|
|
10924
10956
|
const _sfc_main$d = defineComponent({
|
|
10925
10957
|
props: {
|
|
10926
10958
|
level: {
|
|
@@ -10972,12 +11004,12 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
10972
11004
|
};
|
|
10973
11005
|
return (_ctx, _cache) => {
|
|
10974
11006
|
const _component_base_heading = _sfc_main$d;
|
|
10975
|
-
const _component_base_text =
|
|
11007
|
+
const _component_base_text = __unplugin_components_2;
|
|
10976
11008
|
const _component_base_field_set = _sfc_main$t;
|
|
10977
11009
|
const _component_base_alert = _sfc_main$u;
|
|
10978
11010
|
const _component_amplify_button = _sfc_main$v;
|
|
10979
11011
|
const _component_base_footer = _sfc_main$y;
|
|
10980
|
-
const _component_base_wrapper = __unplugin_components_2;
|
|
11012
|
+
const _component_base_wrapper = __unplugin_components_2$1;
|
|
10981
11013
|
const _component_base_form = _sfc_main$x;
|
|
10982
11014
|
return renderSlot(_ctx.$slots, "confirmSignUpSlotI", normalizeProps(guardReactiveProps(_ctx.$attrs)), () => [
|
|
10983
11015
|
createVNode(_component_base_wrapper, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
|
|
@@ -11089,7 +11121,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
11089
11121
|
};
|
|
11090
11122
|
return (_ctx, _cache) => {
|
|
11091
11123
|
const _component_base_heading = _sfc_main$d;
|
|
11092
|
-
const _component_base_wrapper = __unplugin_components_2;
|
|
11124
|
+
const _component_base_wrapper = __unplugin_components_2$1;
|
|
11093
11125
|
const _component_base_alert = _sfc_main$u;
|
|
11094
11126
|
const _component_amplify_button = _sfc_main$v;
|
|
11095
11127
|
const _component_base_footer = _sfc_main$y;
|
|
@@ -13236,7 +13268,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
13236
13268
|
};
|
|
13237
13269
|
return (_ctx, _cache) => {
|
|
13238
13270
|
const _component_base_heading = _sfc_main$d;
|
|
13239
|
-
const _component_base_wrapper = __unplugin_components_2;
|
|
13271
|
+
const _component_base_wrapper = __unplugin_components_2$1;
|
|
13240
13272
|
const _component_base_alert = _sfc_main$u;
|
|
13241
13273
|
const _component_amplify_button = _sfc_main$v;
|
|
13242
13274
|
const _component_base_footer = _sfc_main$y;
|
|
@@ -13395,7 +13427,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
13395
13427
|
}
|
|
13396
13428
|
return (_ctx, _cache) => {
|
|
13397
13429
|
const _component_base_heading = _sfc_main$d;
|
|
13398
|
-
const _component_base_wrapper = __unplugin_components_2;
|
|
13430
|
+
const _component_base_wrapper = __unplugin_components_2$1;
|
|
13399
13431
|
const _component_base_alert = _sfc_main$u;
|
|
13400
13432
|
const _component_amplify_button = _sfc_main$v;
|
|
13401
13433
|
const _component_base_footer = _sfc_main$y;
|
|
@@ -13519,7 +13551,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
13519
13551
|
const _component_base_alert = _sfc_main$u;
|
|
13520
13552
|
const _component_amplify_button = _sfc_main$v;
|
|
13521
13553
|
const _component_base_footer = _sfc_main$y;
|
|
13522
|
-
const _component_base_wrapper = __unplugin_components_2;
|
|
13554
|
+
const _component_base_wrapper = __unplugin_components_2$1;
|
|
13523
13555
|
const _component_base_form = _sfc_main$x;
|
|
13524
13556
|
return renderSlot(_ctx.$slots, "forgotPasswordSlotI", normalizeProps(guardReactiveProps(_ctx.$attrs)), () => [
|
|
13525
13557
|
createVNode(_component_base_form, mergeProps(_ctx.$attrs, {
|
|
@@ -13630,7 +13662,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
13630
13662
|
}
|
|
13631
13663
|
return (_ctx, _cache) => {
|
|
13632
13664
|
const _component_base_heading = _sfc_main$d;
|
|
13633
|
-
const _component_base_wrapper = __unplugin_components_2;
|
|
13665
|
+
const _component_base_wrapper = __unplugin_components_2$1;
|
|
13634
13666
|
const _component_base_alert = _sfc_main$u;
|
|
13635
13667
|
const _component_amplify_button = _sfc_main$v;
|
|
13636
13668
|
const _component_base_footer = _sfc_main$y;
|
|
@@ -13745,9 +13777,9 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
13745
13777
|
return (_ctx, _cache) => {
|
|
13746
13778
|
const _component_base_heading = _sfc_main$d;
|
|
13747
13779
|
const _component_base_label = __unplugin_components_0;
|
|
13780
|
+
const _component_base_text = __unplugin_components_2;
|
|
13748
13781
|
const _component_base_input = _sfc_main$s;
|
|
13749
|
-
const
|
|
13750
|
-
const _component_base_wrapper = __unplugin_components_2;
|
|
13782
|
+
const _component_base_wrapper = __unplugin_components_2$1;
|
|
13751
13783
|
const _component_base_alert = _sfc_main$u;
|
|
13752
13784
|
const _component_amplify_button = _sfc_main$v;
|
|
13753
13785
|
const _component_base_footer = _sfc_main$y;
|
|
@@ -13794,35 +13826,35 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
13794
13826
|
}, {
|
|
13795
13827
|
default: withCtx(() => [
|
|
13796
13828
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(unverifiedUserAttributes), (value, key) => {
|
|
13797
|
-
return openBlock(),
|
|
13798
|
-
|
|
13799
|
-
|
|
13800
|
-
|
|
13801
|
-
|
|
13802
|
-
|
|
13803
|
-
|
|
13804
|
-
|
|
13805
|
-
|
|
13806
|
-
|
|
13807
|
-
|
|
13808
|
-
|
|
13809
|
-
|
|
13810
|
-
|
|
13811
|
-
|
|
13812
|
-
|
|
13813
|
-
|
|
13814
|
-
|
|
13815
|
-
|
|
13816
|
-
|
|
13817
|
-
|
|
13818
|
-
|
|
13819
|
-
|
|
13820
|
-
|
|
13821
|
-
|
|
13822
|
-
|
|
13823
|
-
|
|
13824
|
-
|
|
13825
|
-
|
|
13829
|
+
return openBlock(), createElementBlock(Fragment, { key: value }, [
|
|
13830
|
+
value ? (openBlock(), createBlock(_component_base_label, {
|
|
13831
|
+
key: 0,
|
|
13832
|
+
class: "amplify-flex amplify-radio",
|
|
13833
|
+
"data-amplify-verify-label": ""
|
|
13834
|
+
}, {
|
|
13835
|
+
default: withCtx(() => [
|
|
13836
|
+
createVNode(_component_base_text, { class: "amplify-text amplify-radio__label" }, {
|
|
13837
|
+
default: withCtx(() => [
|
|
13838
|
+
createTextVNode(toDisplayString(unref(translate)(unref(defaultFormFieldOptions)[key].label)) + ": " + toDisplayString(unref(censorContactMethod)(unref(defaultFormFieldOptions)[key].label, value)), 1)
|
|
13839
|
+
]),
|
|
13840
|
+
_: 2
|
|
13841
|
+
}, 1024),
|
|
13842
|
+
createVNode(_component_base_input, {
|
|
13843
|
+
class: "amplify-input amplify-field-group__control amplify-visually-hidden amplify-radio__input",
|
|
13844
|
+
"aria-invalid": "false",
|
|
13845
|
+
"data-amplify-verify-input": "",
|
|
13846
|
+
name: "unverifiedAttr",
|
|
13847
|
+
type: "radio",
|
|
13848
|
+
value: key
|
|
13849
|
+
}, null, 8, ["value"]),
|
|
13850
|
+
createVNode(_component_base_text, {
|
|
13851
|
+
class: "amplify-flex amplify-radio__button",
|
|
13852
|
+
"aria-hidden": "true"
|
|
13853
|
+
})
|
|
13854
|
+
]),
|
|
13855
|
+
_: 2
|
|
13856
|
+
}, 1024)) : createCommentVNode("", true)
|
|
13857
|
+
], 64);
|
|
13826
13858
|
}), 128))
|
|
13827
13859
|
]),
|
|
13828
13860
|
_: 1
|
|
@@ -13906,7 +13938,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
13906
13938
|
};
|
|
13907
13939
|
return (_ctx, _cache) => {
|
|
13908
13940
|
const _component_base_heading = _sfc_main$d;
|
|
13909
|
-
const _component_base_wrapper = __unplugin_components_2;
|
|
13941
|
+
const _component_base_wrapper = __unplugin_components_2$1;
|
|
13910
13942
|
const _component_base_alert = _sfc_main$u;
|
|
13911
13943
|
const _component_amplify_button = _sfc_main$v;
|
|
13912
13944
|
const _component_base_footer = _sfc_main$y;
|
|
@@ -14337,7 +14369,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
14337
14369
|
return (_ctx, _cache) => {
|
|
14338
14370
|
const _component_base_label = __unplugin_components_0;
|
|
14339
14371
|
const _component_base_input = _sfc_main$s;
|
|
14340
|
-
const _component_base_wrapper = __unplugin_components_2;
|
|
14372
|
+
const _component_base_wrapper = __unplugin_components_2$1;
|
|
14341
14373
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
14342
14374
|
createVNode(_component_base_label, {
|
|
14343
14375
|
class: normalizeClass(["amplify-label", { "amplify-visually-hidden": __props.hideLabel }]),
|