@swan-io/shared-business 15.4.0 → 15.5.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swan-io/shared-business",
3
- "version": "15.4.0",
3
+ "version": "15.5.0",
4
4
  "engines": {
5
5
  "node": ">22.12.0"
6
6
  },
@@ -28,7 +28,7 @@
28
28
  "react": ">=19.0.0",
29
29
  "react-dom": ">=19.0.0",
30
30
  "react-native-web": ">=0.21.2",
31
- "@swan-io/lake": "15.4.0"
31
+ "@swan-io/lake": "15.5.0"
32
32
  },
33
33
  "dependencies": {
34
34
  "@formatjs/intl": "^4.1.16",
@@ -53,6 +53,6 @@
53
53
  "react-dom": "^19.2.7",
54
54
  "react-native-web": "^0.21.2",
55
55
  "type-fest": "^5.8.0",
56
- "@swan-io/lake": "15.4.0"
56
+ "@swan-io/lake": "15.5.0"
57
57
  }
58
58
  }
@@ -15,7 +15,7 @@ export const CountryPicker = ({ ref, onValueChange, value, countries, readOnly,
15
15
  value: cca3,
16
16
  };
17
17
  })
18
- .sort((a, b) => a.name.localeCompare(b.name));
18
+ .toSorted((a, b) => a.name.localeCompare(b.name));
19
19
  }, [countries]);
20
20
  return (_jsx(LakeSelect, { readOnly: readOnly, id: id, ref: ref, error: error, items: items, placeholder: placeholder, value: value, onValueChange: onValueChange, disabled: disabled, hideErrors: hideErrors }));
21
21
  };
@@ -82,7 +82,7 @@ export const SupportingDocumentCollection = ({ ref, documents, generateUpload, u
82
82
  purposeDetails: info === null || info === void 0 ? void 0 : info.purposeDetails,
83
83
  };
84
84
  });
85
- return entries.sort((a, b) => (b.priority > a.priority ? -1 : 1));
85
+ return entries.toSorted((a, b) => (b.priority > a.priority ? -1 : 1));
86
86
  }, [documentPurposes, documents, addedDocuments]);
87
87
  const filesByRequiredPurpose = useRef(new Map(Array.filterMap(orderedDocumentPurposes, ({ isRequired, purpose, files }) => isRequired ? Option.Some([purpose, files]) : Option.None())));
88
88
  const filesUploaderRefByPurpose = useRef({});
@@ -25,7 +25,7 @@ const unsortedBusinessActivities = [
25
25
  { text: t("businessActivity.transportation"), value: "Transportation" },
26
26
  ];
27
27
  export const businessActivities = [
28
- ...unsortedBusinessActivities.sort((a, b) => a.text.localeCompare(b.text)),
28
+ ...unsortedBusinessActivities.toSorted((a, b) => a.text.localeCompare(b.text)),
29
29
  { text: t("businessActivity.other"), value: "Other" },
30
30
  ];
31
31
  export const monthlyPaymentVolumes = [
@@ -2004,12 +2004,12 @@ export const countries = readonlyCountries
2004
2004
  countriesByCCA3[country.cca3] = country;
2005
2005
  return country;
2006
2006
  })
2007
- .sort((countryA, countryB) => {
2007
+ .toSorted((countryA, countryB) => {
2008
2008
  return countryA.name.localeCompare(countryB.name);
2009
2009
  });
2010
2010
  export const nationalities = countries
2011
2011
  .filter(country => country.isNationality)
2012
- .sort((countryA, countryB) => {
2012
+ .toSorted((countryA, countryB) => {
2013
2013
  return countryA.name.localeCompare(countryB.name);
2014
2014
  });
2015
2015
  export const getCountryByCCA2 = (cca2) => countriesByCCA2[cca2];
@@ -20,7 +20,7 @@
20
20
  "accountStatement.fees": "Gebühr",
21
21
  "accountStatement.from": "Von",
22
22
  "accountStatement.iban": "IBAN",
23
- "accountStatement.internationalCreditTransfer": "Internationale Überweisung",
23
+ "accountStatement.internationalCreditTransfer": "Internationaler Kredittransfer",
24
24
  "accountStatement.openingBalance": "Anfangssaldo",
25
25
  "accountStatement.operationCount": "# Vorgang",
26
26
  "accountStatement.page": "Seite",
@@ -163,7 +163,7 @@
163
163
  "forecastYearlyIncome.from500001To1000000": "€ 500.000,- tot € 1.000.000",
164
164
  "forecastYearlyIncome.moreThan5000000": "Meer dan € 5.000.000",
165
165
  "monthlyPaymentVolume.between10000And50000": "€ 10.000,- tot € 50.000,- per maand",
166
- "monthlyPaymentVolume.between50000And100000": "€ 50.000,- tot € 100.000,- per maand",
166
+ "monthlyPaymentVolume.between50000And100000": "Tussen € 50.000,- en € 100.000,- per maand",
167
167
  "monthlyPaymentVolume.lessThan10000": "Minder dan € 10.000,- per maand",
168
168
  "monthlyPaymentVolume.moreThan100000": "Meer dan € 100.000,- per maand",
169
169
  "registrationPage.defaultNumberLabel": "Registratienummer",
@@ -20,7 +20,7 @@
20
20
  "accountStatement.fees": "Taxa",
21
21
  "accountStatement.from": "De",
22
22
  "accountStatement.iban": "IBAN",
23
- "accountStatement.internationalCreditTransfer": "Transferência de crédito internacional",
23
+ "accountStatement.internationalCreditTransfer": "Transferência internacional de crédito",
24
24
  "accountStatement.openingBalance": "Saldo inicial",
25
25
  "accountStatement.operationCount": "# operação",
26
26
  "accountStatement.page": "Página",