@pelcro/react-pelcro-js 3.25.0-beta.2 → 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 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: {
@@ -18039,7 +18028,6 @@ const PaymentMethodContainerWithoutStripe = _ref => {
18039
18028
  console.log("State", state);
18040
18029
  const isUsingExistingPaymentMethod = Boolean(selectedPaymentMethodId);
18041
18030
  if (isUsingExistingPaymentMethod) {
18042
- appendCybersourceFingerprintScripts();
18043
18031
  // no need to create a new source using cybersrce
18044
18032
  return handleCybersourcePayment(null, state);
18045
18033
  }
@@ -18250,7 +18238,6 @@ const PaymentMethodContainerWithoutStripe = _ref => {
18250
18238
  }
18251
18239
  });
18252
18240
  }
18253
- appendCybersourceFingerprintScripts();
18254
18241
  const {
18255
18242
  key: jwk
18256
18243
  } = res;
@@ -18794,6 +18781,9 @@ const PaymentMethodContainerWithoutStripe = _ref => {
18794
18781
  if (cardProcessor === "cybersource" && !selectedPaymentMethodId && window.FLEX) {
18795
18782
  initCybersourceScript();
18796
18783
  }
18784
+ if (cardProcessor === "cybersource") {
18785
+ appendCybersourceFingerprintScripts();
18786
+ }
18797
18787
  });
18798
18788
  }, [selectedPaymentMethodId]);
18799
18789
  const initPaymentRequest = (state, dispatch) => {
@@ -26676,16 +26666,6 @@ const GiftCreateContainer = _ref => {
26676
26666
  return onFailure();
26677
26667
  }
26678
26668
  }
26679
- if (giftRecipient.giftMessage && !isStringValid(giftRecipient.giftMessage)) {
26680
- dispatch({
26681
- type: SHOW_ALERT,
26682
- payload: {
26683
- type: "error",
26684
- content: t("gift.messages.giftMessageAllowedCharacters")
26685
- }
26686
- });
26687
- return onFailure();
26688
- }
26689
26669
  set({
26690
26670
  giftRecipient
26691
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: {
@@ -18009,7 +17998,6 @@ const PaymentMethodContainerWithoutStripe = _ref => {
18009
17998
  console.log("State", state);
18010
17999
  const isUsingExistingPaymentMethod = Boolean(selectedPaymentMethodId);
18011
18000
  if (isUsingExistingPaymentMethod) {
18012
- appendCybersourceFingerprintScripts();
18013
18001
  // no need to create a new source using cybersrce
18014
18002
  return handleCybersourcePayment(null, state);
18015
18003
  }
@@ -18220,7 +18208,6 @@ const PaymentMethodContainerWithoutStripe = _ref => {
18220
18208
  }
18221
18209
  });
18222
18210
  }
18223
- appendCybersourceFingerprintScripts();
18224
18211
  const {
18225
18212
  key: jwk
18226
18213
  } = res;
@@ -18764,6 +18751,9 @@ const PaymentMethodContainerWithoutStripe = _ref => {
18764
18751
  if (cardProcessor === "cybersource" && !selectedPaymentMethodId && window.FLEX) {
18765
18752
  initCybersourceScript();
18766
18753
  }
18754
+ if (cardProcessor === "cybersource") {
18755
+ appendCybersourceFingerprintScripts();
18756
+ }
18767
18757
  });
18768
18758
  }, [selectedPaymentMethodId]);
18769
18759
  const initPaymentRequest = (state, dispatch) => {
@@ -26646,16 +26636,6 @@ const GiftCreateContainer = _ref => {
26646
26636
  return onFailure();
26647
26637
  }
26648
26638
  }
26649
- if (giftRecipient.giftMessage && !isStringValid(giftRecipient.giftMessage)) {
26650
- dispatch({
26651
- type: SHOW_ALERT,
26652
- payload: {
26653
- type: "error",
26654
- content: t("gift.messages.giftMessageAllowedCharacters")
26655
- }
26656
- });
26657
- return onFailure();
26658
- }
26659
26639
  set({
26660
26640
  giftRecipient
26661
26641
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pelcro/react-pelcro-js",
3
3
  "description": "Pelcro's React UI Elements",
4
- "version": "3.25.0-beta.2",
4
+ "version": "3.25.0-beta.4",
5
5
  "license": "MIT",
6
6
  "private": false,
7
7
  "main": "dist/index.cjs.js",