@pelcro/react-pelcro-js 3.25.0-beta.3 → 3.25.0-beta.4
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.js +4 -25
- package/dist/index.esm.js +4 -25
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -3596,8 +3596,7 @@ var gift$3 = {
|
|
|
3596
3596
|
enterEmail: "Please enter the gift recipient's email.",
|
|
3597
3597
|
invalidDate: "The gift date needs to be between today and a year from now.",
|
|
3598
3598
|
giftDateInfo: "The recipient will receive a gift email notification with your message on the date you select in order to redeem the gift.",
|
|
3599
|
-
giftMessageInfo: "Leave a message to the recipient and don't forget to sign your name."
|
|
3600
|
-
giftMessageAllowedCharacters: "Special characters and emojis are not allowed."
|
|
3599
|
+
giftMessageInfo: "Leave a message to the recipient and don't forget to sign your name."
|
|
3601
3600
|
}
|
|
3602
3601
|
};
|
|
3603
3602
|
var redeem$3 = {
|
|
@@ -4595,8 +4594,7 @@ var gift$2 = {
|
|
|
4595
4594
|
enterEmail: "Veuillez entrer l’adresse courriel du destinataire du cadeau.",
|
|
4596
4595
|
invalidDate: "La date du cadeau doit être comprise entre aujourd'hui et un an.",
|
|
4597
4596
|
giftDateInfo: "Le destinataire recevra un courriel à la date déterminée afin d'activer leur abonnement cadeau.",
|
|
4598
|
-
giftMessageInfo: "Laissez un message au destinataire sans oublier de signer votre nom."
|
|
4599
|
-
giftMessageAllowedCharacters: "Les caractères spéciaux et les emojis ne sont pas autorisés."
|
|
4597
|
+
giftMessageInfo: "Laissez un message au destinataire sans oublier de signer votre nom."
|
|
4600
4598
|
}
|
|
4601
4599
|
};
|
|
4602
4600
|
var redeem$2 = {
|
|
@@ -5477,8 +5475,7 @@ var gift$1 = {
|
|
|
5477
5475
|
enterEmail: "선물을 받을 분의 이메일을 입력해주세요.",
|
|
5478
5476
|
invalidDate: "선물 날짜는 오늘로부터 1년 이내여야 합니다.",
|
|
5479
5477
|
giftDateInfo: "받는 분이 선물을 사용하실 수 있도록, 선택된 날짜에 귀하의 선물 메시지가 담겨 있는 이메일 알림이 전송됩니다.",
|
|
5480
|
-
giftMessageInfo: "받는 분을 위한 선물 메시지와 서명을 남기는 것을 잊지 마시기 바랍니다."
|
|
5481
|
-
giftMessageAllowedCharacters: "특수문자 및 이모티콘 사용 불가."
|
|
5478
|
+
giftMessageInfo: "받는 분을 위한 선물 메시지와 서명을 남기는 것을 잊지 마시기 바랍니다."
|
|
5482
5479
|
}
|
|
5483
5480
|
};
|
|
5484
5481
|
var redeem$1 = {
|
|
@@ -6462,8 +6459,7 @@ var gift = {
|
|
|
6462
6459
|
enterEmail: "Por favor, ingresa el correo del destinatario del regalo",
|
|
6463
6460
|
invalidDate: "La fecha del regalo debe ser entre hoy y un año a partir de ahora.",
|
|
6464
6461
|
giftDateInfo: "El destinatario recibirá un correo de notificación del regalo con tu mensaje en la fecha que seleccionaste en la orden para redimir el regalo.",
|
|
6465
|
-
giftMessageInfo: "Deja un mensaje para el destinatario y no olvides firmar con tu nombre."
|
|
6466
|
-
giftMessageAllowedCharacters: "No se permiten caracteres especiales ni emojis."
|
|
6462
|
+
giftMessageInfo: "Deja un mensaje para el destinatario y no olvides firmar con tu nombre."
|
|
6467
6463
|
}
|
|
6468
6464
|
};
|
|
6469
6465
|
var redeem = {
|
|
@@ -9707,13 +9703,6 @@ function generatePassword() {
|
|
|
9707
9703
|
}
|
|
9708
9704
|
return retVal;
|
|
9709
9705
|
}
|
|
9710
|
-
function isStringValid(str) {
|
|
9711
|
-
// Define the regular expression to match only letters, numbers and spaces
|
|
9712
|
-
var regex = /^(?:[\p{L}\p{N}\p{Pc}\p{Zs}\n]+$|^[\\\p{Script=Hangul}\p{Pc}\p{Zs}\n]+)$/mu;
|
|
9713
|
-
|
|
9714
|
-
// Test the string against the regular expression
|
|
9715
|
-
return regex.test(str);
|
|
9716
|
-
}
|
|
9717
9706
|
|
|
9718
9707
|
const resources = {
|
|
9719
9708
|
en: {
|
|
@@ -26677,16 +26666,6 @@ const GiftCreateContainer = _ref => {
|
|
|
26677
26666
|
return onFailure();
|
|
26678
26667
|
}
|
|
26679
26668
|
}
|
|
26680
|
-
if (giftRecipient.giftMessage && !isStringValid(giftRecipient.giftMessage)) {
|
|
26681
|
-
dispatch({
|
|
26682
|
-
type: SHOW_ALERT,
|
|
26683
|
-
payload: {
|
|
26684
|
-
type: "error",
|
|
26685
|
-
content: t("gift.messages.giftMessageAllowedCharacters")
|
|
26686
|
-
}
|
|
26687
|
-
});
|
|
26688
|
-
return onFailure();
|
|
26689
|
-
}
|
|
26690
26669
|
set({
|
|
26691
26670
|
giftRecipient
|
|
26692
26671
|
});
|
package/dist/index.esm.js
CHANGED
|
@@ -3566,8 +3566,7 @@ var gift$3 = {
|
|
|
3566
3566
|
enterEmail: "Please enter the gift recipient's email.",
|
|
3567
3567
|
invalidDate: "The gift date needs to be between today and a year from now.",
|
|
3568
3568
|
giftDateInfo: "The recipient will receive a gift email notification with your message on the date you select in order to redeem the gift.",
|
|
3569
|
-
giftMessageInfo: "Leave a message to the recipient and don't forget to sign your name."
|
|
3570
|
-
giftMessageAllowedCharacters: "Special characters and emojis are not allowed."
|
|
3569
|
+
giftMessageInfo: "Leave a message to the recipient and don't forget to sign your name."
|
|
3571
3570
|
}
|
|
3572
3571
|
};
|
|
3573
3572
|
var redeem$3 = {
|
|
@@ -4565,8 +4564,7 @@ var gift$2 = {
|
|
|
4565
4564
|
enterEmail: "Veuillez entrer l’adresse courriel du destinataire du cadeau.",
|
|
4566
4565
|
invalidDate: "La date du cadeau doit être comprise entre aujourd'hui et un an.",
|
|
4567
4566
|
giftDateInfo: "Le destinataire recevra un courriel à la date déterminée afin d'activer leur abonnement cadeau.",
|
|
4568
|
-
giftMessageInfo: "Laissez un message au destinataire sans oublier de signer votre nom."
|
|
4569
|
-
giftMessageAllowedCharacters: "Les caractères spéciaux et les emojis ne sont pas autorisés."
|
|
4567
|
+
giftMessageInfo: "Laissez un message au destinataire sans oublier de signer votre nom."
|
|
4570
4568
|
}
|
|
4571
4569
|
};
|
|
4572
4570
|
var redeem$2 = {
|
|
@@ -5447,8 +5445,7 @@ var gift$1 = {
|
|
|
5447
5445
|
enterEmail: "선물을 받을 분의 이메일을 입력해주세요.",
|
|
5448
5446
|
invalidDate: "선물 날짜는 오늘로부터 1년 이내여야 합니다.",
|
|
5449
5447
|
giftDateInfo: "받는 분이 선물을 사용하실 수 있도록, 선택된 날짜에 귀하의 선물 메시지가 담겨 있는 이메일 알림이 전송됩니다.",
|
|
5450
|
-
giftMessageInfo: "받는 분을 위한 선물 메시지와 서명을 남기는 것을 잊지 마시기 바랍니다."
|
|
5451
|
-
giftMessageAllowedCharacters: "특수문자 및 이모티콘 사용 불가."
|
|
5448
|
+
giftMessageInfo: "받는 분을 위한 선물 메시지와 서명을 남기는 것을 잊지 마시기 바랍니다."
|
|
5452
5449
|
}
|
|
5453
5450
|
};
|
|
5454
5451
|
var redeem$1 = {
|
|
@@ -6432,8 +6429,7 @@ var gift = {
|
|
|
6432
6429
|
enterEmail: "Por favor, ingresa el correo del destinatario del regalo",
|
|
6433
6430
|
invalidDate: "La fecha del regalo debe ser entre hoy y un año a partir de ahora.",
|
|
6434
6431
|
giftDateInfo: "El destinatario recibirá un correo de notificación del regalo con tu mensaje en la fecha que seleccionaste en la orden para redimir el regalo.",
|
|
6435
|
-
giftMessageInfo: "Deja un mensaje para el destinatario y no olvides firmar con tu nombre."
|
|
6436
|
-
giftMessageAllowedCharacters: "No se permiten caracteres especiales ni emojis."
|
|
6432
|
+
giftMessageInfo: "Deja un mensaje para el destinatario y no olvides firmar con tu nombre."
|
|
6437
6433
|
}
|
|
6438
6434
|
};
|
|
6439
6435
|
var redeem = {
|
|
@@ -9677,13 +9673,6 @@ function generatePassword() {
|
|
|
9677
9673
|
}
|
|
9678
9674
|
return retVal;
|
|
9679
9675
|
}
|
|
9680
|
-
function isStringValid(str) {
|
|
9681
|
-
// Define the regular expression to match only letters, numbers and spaces
|
|
9682
|
-
var regex = /^(?:[\p{L}\p{N}\p{Pc}\p{Zs}\n]+$|^[\\\p{Script=Hangul}\p{Pc}\p{Zs}\n]+)$/mu;
|
|
9683
|
-
|
|
9684
|
-
// Test the string against the regular expression
|
|
9685
|
-
return regex.test(str);
|
|
9686
|
-
}
|
|
9687
9676
|
|
|
9688
9677
|
const resources = {
|
|
9689
9678
|
en: {
|
|
@@ -26647,16 +26636,6 @@ const GiftCreateContainer = _ref => {
|
|
|
26647
26636
|
return onFailure();
|
|
26648
26637
|
}
|
|
26649
26638
|
}
|
|
26650
|
-
if (giftRecipient.giftMessage && !isStringValid(giftRecipient.giftMessage)) {
|
|
26651
|
-
dispatch({
|
|
26652
|
-
type: SHOW_ALERT,
|
|
26653
|
-
payload: {
|
|
26654
|
-
type: "error",
|
|
26655
|
-
content: t("gift.messages.giftMessageAllowedCharacters")
|
|
26656
|
-
}
|
|
26657
|
-
});
|
|
26658
|
-
return onFailure();
|
|
26659
|
-
}
|
|
26660
26639
|
set({
|
|
26661
26640
|
giftRecipient
|
|
26662
26641
|
});
|