@pelcro/react-pelcro-js 3.0.0-beta.6 → 3.0.0-beta.9

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
@@ -4397,6 +4397,7 @@ var labels$7 = {
4397
4397
  paid: "Paid",
4398
4398
  open: "Open",
4399
4399
  draft: "Draft",
4400
+ scheduled: "Scheduled",
4400
4401
  uncollectible: "Uncollectible",
4401
4402
  "void": "Void",
4402
4403
  pastDue: "Past due",
@@ -4487,6 +4488,7 @@ var labels$6 = {
4487
4488
  paid: "Paid",
4488
4489
  open: "open",
4489
4490
  draft: "Draft",
4491
+ scheduled: "Scheduled",
4490
4492
  uncollectible: "Uncollectible",
4491
4493
  "void": "Void",
4492
4494
  pastDue: "Past due",
@@ -4647,13 +4649,13 @@ var verifyEmail_en = {
4647
4649
  };
4648
4650
 
4649
4651
  var labels$2 = {
4650
- title: "Vérifiez votre e-mail",
4651
- instructions: "Vous êtes en route!\nConfirmons votre adresse e-mail.\nCliquez sur le lien de vérification que nous vous avons envoyé par e-mail:",
4652
- resend: "Ré-envoyer l'email"
4652
+ title: "Confirmez votre courriel",
4653
+ instructions: "Confirmez votre courriel.\nVeuillez cliquer sur le lien de vérification, qui vous a été envoyé à:",
4654
+ resend: "Renvoyer le courriel"
4653
4655
  };
4654
4656
  var messages = {
4655
4657
  resent: "Renvoyé avec succès",
4656
- success: "Email vérifié avec succès!"
4658
+ success: "Adresse courriel vérifiée avec succès"
4657
4659
  };
4658
4660
  var verifyEmail_fr = {
4659
4661
  labels: labels$2,
@@ -22190,10 +22192,10 @@ const DonationsMenu = () => {
22190
22192
  };
22191
22193
 
22192
22194
  function getDonationSubs() {
22193
- var _window$Pelcro$subscr, _window$Pelcro$subscr2, _window$Pelcro$subscr3, _window$Pelcro$user$r;
22195
+ var _window$Pelcro$subscr, _window$Pelcro$subscr2, _window$Pelcro$subscr3, _window$Pelcro$user$r, _window$Pelcro$user$r2;
22194
22196
 
22195
- const donations = (_window$Pelcro$subscr = (_window$Pelcro$subscr2 = window.Pelcro.subscription) === null || _window$Pelcro$subscr2 === void 0 ? void 0 : (_window$Pelcro$subscr3 = _window$Pelcro$subscr2.list()) === null || _window$Pelcro$subscr3 === void 0 ? void 0 : _window$Pelcro$subscr3.filter(sub => sub.plan.is_donation)) !== null && _window$Pelcro$subscr !== void 0 ? _window$Pelcro$subscr : [];
22196
- const canceledDonations = (_window$Pelcro$user$r = window.Pelcro.user.read().expired_subscriptions) !== null && _window$Pelcro$user$r !== void 0 ? _window$Pelcro$user$r : [];
22197
+ const donations = (_window$Pelcro$subscr = (_window$Pelcro$subscr2 = window.Pelcro.subscription) === null || _window$Pelcro$subscr2 === void 0 ? void 0 : (_window$Pelcro$subscr3 = _window$Pelcro$subscr2.list()) === null || _window$Pelcro$subscr3 === void 0 ? void 0 : _window$Pelcro$subscr3.filter(sub => sub.plan.is_donation && !sub.is_gift_donor)) !== null && _window$Pelcro$subscr !== void 0 ? _window$Pelcro$subscr : [];
22198
+ const canceledDonations = (_window$Pelcro$user$r = (_window$Pelcro$user$r2 = window.Pelcro.user.read().expired_subscriptions) === null || _window$Pelcro$user$r2 === void 0 ? void 0 : _window$Pelcro$user$r2.filter(sub => sub.plan.is_donation && !sub.is_gift_donor)) !== null && _window$Pelcro$user$r !== void 0 ? _window$Pelcro$user$r : [];
22197
22199
  return [...donations, ...canceledDonations];
22198
22200
  }
22199
22201
 
@@ -22308,6 +22310,14 @@ function getInvoiceStatus(invoice) {
22308
22310
  title: translations.draft
22309
22311
  };
22310
22312
 
22313
+ case "scheduled":
22314
+ return {
22315
+ textColor: "plc-text-blue-700",
22316
+ bgColor: "plc-bg-blue-100",
22317
+ icon: /*#__PURE__*/React__default['default'].createElement(SvgCalendar, null),
22318
+ title: translations.scheduled
22319
+ };
22320
+
22311
22321
  case "uncollectible":
22312
22322
  return {
22313
22323
  textColor: "plc-text-red-700",
@@ -22906,10 +22916,10 @@ function hasInvoices() {
22906
22916
  }
22907
22917
 
22908
22918
  function hasDonationSubs() {
22909
- var _window$Pelcro$subscr, _window$Pelcro$subscr2, _window$Pelcro$subscr3, _window$Pelcro$user$r4;
22919
+ var _window$Pelcro$subscr, _window$Pelcro$subscr2, _window$Pelcro$subscr3, _window$Pelcro$user$r4, _window$Pelcro$user$r5;
22910
22920
 
22911
- const donations = (_window$Pelcro$subscr = (_window$Pelcro$subscr2 = window.Pelcro.subscription) === null || _window$Pelcro$subscr2 === void 0 ? void 0 : (_window$Pelcro$subscr3 = _window$Pelcro$subscr2.list()) === null || _window$Pelcro$subscr3 === void 0 ? void 0 : _window$Pelcro$subscr3.filter(sub => sub.plan.is_donation)) !== null && _window$Pelcro$subscr !== void 0 ? _window$Pelcro$subscr : [];
22912
- const canceledDonations = (_window$Pelcro$user$r4 = window.Pelcro.user.read().expired_subscriptions) !== null && _window$Pelcro$user$r4 !== void 0 ? _window$Pelcro$user$r4 : [];
22921
+ const donations = (_window$Pelcro$subscr = (_window$Pelcro$subscr2 = window.Pelcro.subscription) === null || _window$Pelcro$subscr2 === void 0 ? void 0 : (_window$Pelcro$subscr3 = _window$Pelcro$subscr2.list()) === null || _window$Pelcro$subscr3 === void 0 ? void 0 : _window$Pelcro$subscr3.filter(sub => sub.plan.is_donation && !sub.is_gift_donor)) !== null && _window$Pelcro$subscr !== void 0 ? _window$Pelcro$subscr : [];
22922
+ const canceledDonations = (_window$Pelcro$user$r4 = (_window$Pelcro$user$r5 = window.Pelcro.user.read().expired_subscriptions) === null || _window$Pelcro$user$r5 === void 0 ? void 0 : _window$Pelcro$user$r5.filter(sub => sub.plan.is_donation && !sub.is_gift_donor)) !== null && _window$Pelcro$user$r4 !== void 0 ? _window$Pelcro$user$r4 : [];
22913
22923
  return donations.length > 0 || canceledDonations.length > 0;
22914
22924
  }
22915
22925
 
package/dist/index.esm.js CHANGED
@@ -4367,6 +4367,7 @@ var labels$7 = {
4367
4367
  paid: "Paid",
4368
4368
  open: "Open",
4369
4369
  draft: "Draft",
4370
+ scheduled: "Scheduled",
4370
4371
  uncollectible: "Uncollectible",
4371
4372
  "void": "Void",
4372
4373
  pastDue: "Past due",
@@ -4457,6 +4458,7 @@ var labels$6 = {
4457
4458
  paid: "Paid",
4458
4459
  open: "open",
4459
4460
  draft: "Draft",
4461
+ scheduled: "Scheduled",
4460
4462
  uncollectible: "Uncollectible",
4461
4463
  "void": "Void",
4462
4464
  pastDue: "Past due",
@@ -4617,13 +4619,13 @@ var verifyEmail_en = {
4617
4619
  };
4618
4620
 
4619
4621
  var labels$2 = {
4620
- title: "Vérifiez votre e-mail",
4621
- instructions: "Vous êtes en route!\nConfirmons votre adresse e-mail.\nCliquez sur le lien de vérification que nous vous avons envoyé par e-mail:",
4622
- resend: "Ré-envoyer l'email"
4622
+ title: "Confirmez votre courriel",
4623
+ instructions: "Confirmez votre courriel.\nVeuillez cliquer sur le lien de vérification, qui vous a été envoyé à:",
4624
+ resend: "Renvoyer le courriel"
4623
4625
  };
4624
4626
  var messages = {
4625
4627
  resent: "Renvoyé avec succès",
4626
- success: "Email vérifié avec succès!"
4628
+ success: "Adresse courriel vérifiée avec succès"
4627
4629
  };
4628
4630
  var verifyEmail_fr = {
4629
4631
  labels: labels$2,
@@ -22160,10 +22162,10 @@ const DonationsMenu = () => {
22160
22162
  };
22161
22163
 
22162
22164
  function getDonationSubs() {
22163
- var _window$Pelcro$subscr, _window$Pelcro$subscr2, _window$Pelcro$subscr3, _window$Pelcro$user$r;
22165
+ var _window$Pelcro$subscr, _window$Pelcro$subscr2, _window$Pelcro$subscr3, _window$Pelcro$user$r, _window$Pelcro$user$r2;
22164
22166
 
22165
- const donations = (_window$Pelcro$subscr = (_window$Pelcro$subscr2 = window.Pelcro.subscription) === null || _window$Pelcro$subscr2 === void 0 ? void 0 : (_window$Pelcro$subscr3 = _window$Pelcro$subscr2.list()) === null || _window$Pelcro$subscr3 === void 0 ? void 0 : _window$Pelcro$subscr3.filter(sub => sub.plan.is_donation)) !== null && _window$Pelcro$subscr !== void 0 ? _window$Pelcro$subscr : [];
22166
- const canceledDonations = (_window$Pelcro$user$r = window.Pelcro.user.read().expired_subscriptions) !== null && _window$Pelcro$user$r !== void 0 ? _window$Pelcro$user$r : [];
22167
+ const donations = (_window$Pelcro$subscr = (_window$Pelcro$subscr2 = window.Pelcro.subscription) === null || _window$Pelcro$subscr2 === void 0 ? void 0 : (_window$Pelcro$subscr3 = _window$Pelcro$subscr2.list()) === null || _window$Pelcro$subscr3 === void 0 ? void 0 : _window$Pelcro$subscr3.filter(sub => sub.plan.is_donation && !sub.is_gift_donor)) !== null && _window$Pelcro$subscr !== void 0 ? _window$Pelcro$subscr : [];
22168
+ const canceledDonations = (_window$Pelcro$user$r = (_window$Pelcro$user$r2 = window.Pelcro.user.read().expired_subscriptions) === null || _window$Pelcro$user$r2 === void 0 ? void 0 : _window$Pelcro$user$r2.filter(sub => sub.plan.is_donation && !sub.is_gift_donor)) !== null && _window$Pelcro$user$r !== void 0 ? _window$Pelcro$user$r : [];
22167
22169
  return [...donations, ...canceledDonations];
22168
22170
  }
22169
22171
 
@@ -22278,6 +22280,14 @@ function getInvoiceStatus(invoice) {
22278
22280
  title: translations.draft
22279
22281
  };
22280
22282
 
22283
+ case "scheduled":
22284
+ return {
22285
+ textColor: "plc-text-blue-700",
22286
+ bgColor: "plc-bg-blue-100",
22287
+ icon: /*#__PURE__*/React__default.createElement(SvgCalendar, null),
22288
+ title: translations.scheduled
22289
+ };
22290
+
22281
22291
  case "uncollectible":
22282
22292
  return {
22283
22293
  textColor: "plc-text-red-700",
@@ -22876,10 +22886,10 @@ function hasInvoices() {
22876
22886
  }
22877
22887
 
22878
22888
  function hasDonationSubs() {
22879
- var _window$Pelcro$subscr, _window$Pelcro$subscr2, _window$Pelcro$subscr3, _window$Pelcro$user$r4;
22889
+ var _window$Pelcro$subscr, _window$Pelcro$subscr2, _window$Pelcro$subscr3, _window$Pelcro$user$r4, _window$Pelcro$user$r5;
22880
22890
 
22881
- const donations = (_window$Pelcro$subscr = (_window$Pelcro$subscr2 = window.Pelcro.subscription) === null || _window$Pelcro$subscr2 === void 0 ? void 0 : (_window$Pelcro$subscr3 = _window$Pelcro$subscr2.list()) === null || _window$Pelcro$subscr3 === void 0 ? void 0 : _window$Pelcro$subscr3.filter(sub => sub.plan.is_donation)) !== null && _window$Pelcro$subscr !== void 0 ? _window$Pelcro$subscr : [];
22882
- const canceledDonations = (_window$Pelcro$user$r4 = window.Pelcro.user.read().expired_subscriptions) !== null && _window$Pelcro$user$r4 !== void 0 ? _window$Pelcro$user$r4 : [];
22891
+ const donations = (_window$Pelcro$subscr = (_window$Pelcro$subscr2 = window.Pelcro.subscription) === null || _window$Pelcro$subscr2 === void 0 ? void 0 : (_window$Pelcro$subscr3 = _window$Pelcro$subscr2.list()) === null || _window$Pelcro$subscr3 === void 0 ? void 0 : _window$Pelcro$subscr3.filter(sub => sub.plan.is_donation && !sub.is_gift_donor)) !== null && _window$Pelcro$subscr !== void 0 ? _window$Pelcro$subscr : [];
22892
+ const canceledDonations = (_window$Pelcro$user$r4 = (_window$Pelcro$user$r5 = window.Pelcro.user.read().expired_subscriptions) === null || _window$Pelcro$user$r5 === void 0 ? void 0 : _window$Pelcro$user$r5.filter(sub => sub.plan.is_donation && !sub.is_gift_donor)) !== null && _window$Pelcro$user$r4 !== void 0 ? _window$Pelcro$user$r4 : [];
22883
22893
  return donations.length > 0 || canceledDonations.length > 0;
22884
22894
  }
22885
22895
 
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.0.0-beta.6",
4
+ "version": "3.0.0-beta.9",
5
5
  "license": "MIT",
6
6
  "private": false,
7
7
  "main": "dist/index.cjs.js",