@swan-io/shared-business 9.2.0 → 10.0.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": "
|
|
3
|
+
"version": "10.0.0",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">=20.9.0",
|
|
6
6
|
"yarn": "^1.22.0"
|
|
@@ -29,30 +29,30 @@
|
|
|
29
29
|
"@swan-io/lake": "*"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@formatjs/intl": "^2.10.
|
|
32
|
+
"@formatjs/intl": "^2.10.9",
|
|
33
33
|
"@placekit/client-js": "^2.3.0",
|
|
34
34
|
"@swan-io/boxed": "^3.0.0",
|
|
35
35
|
"@swan-io/request": "^1.0.6",
|
|
36
36
|
"@swan-io/use-form": "^3.1.0",
|
|
37
|
-
"dayjs": "^1.11.
|
|
37
|
+
"dayjs": "^1.11.13",
|
|
38
38
|
"iban": "^0.0.14",
|
|
39
39
|
"react": "^18.3.1",
|
|
40
40
|
"react-atomic-state": "^2.0.0",
|
|
41
41
|
"react-dom": "^18.3.1",
|
|
42
|
-
"react-dropzone": "^14.2.
|
|
43
|
-
"react-native-web": "^0.19.
|
|
42
|
+
"react-dropzone": "^14.2.10",
|
|
43
|
+
"react-native-web": "^0.19.13",
|
|
44
44
|
"rifm": "^0.12.1",
|
|
45
|
-
"ts-pattern": "^5.
|
|
45
|
+
"ts-pattern": "^5.5.0",
|
|
46
46
|
"uuid": "^10.0.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@swan-io/lake": "*",
|
|
50
50
|
"@types/iban": "0.0.35",
|
|
51
|
-
"@types/react": "^18.3.
|
|
52
|
-
"@types/react-dom": "^18.3.
|
|
51
|
+
"@types/react": "^18.3.11",
|
|
52
|
+
"@types/react-dom": "^18.3.1",
|
|
53
53
|
"@types/react-native": "^0.72.8",
|
|
54
54
|
"@types/uuid": "^10.0.0",
|
|
55
|
-
"jsdom": "^
|
|
56
|
-
"vitest": "^2.
|
|
55
|
+
"jsdom": "^25.0.1",
|
|
56
|
+
"vitest": "^2.1.3"
|
|
57
57
|
}
|
|
58
58
|
}
|
|
@@ -69,7 +69,7 @@ export const SupportChat = ({ children, accentColor, type, additionalInfo }) =>
|
|
|
69
69
|
});
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
catch
|
|
72
|
+
catch {
|
|
73
73
|
// nothing
|
|
74
74
|
}
|
|
75
75
|
});
|
|
@@ -79,7 +79,7 @@ export const SupportChat = ({ children, accentColor, type, additionalInfo }) =>
|
|
|
79
79
|
zE("webWidget", "show");
|
|
80
80
|
zE("webWidget", "open");
|
|
81
81
|
}
|
|
82
|
-
catch
|
|
82
|
+
catch {
|
|
83
83
|
// nothing
|
|
84
84
|
}
|
|
85
85
|
}, []);
|
|
@@ -33,7 +33,7 @@ const styles = StyleSheet.create({
|
|
|
33
33
|
pageTitle: {
|
|
34
34
|
...getTextStyle("sans", 20),
|
|
35
35
|
color: colors.swan[500],
|
|
36
|
-
fontWeight: "
|
|
36
|
+
fontWeight: "600",
|
|
37
37
|
},
|
|
38
38
|
sectionTitle: {
|
|
39
39
|
...getTextStyle("sans", 14),
|
|
@@ -41,11 +41,11 @@ const styles = StyleSheet.create({
|
|
|
41
41
|
fontWeight: "600",
|
|
42
42
|
},
|
|
43
43
|
lineName: {
|
|
44
|
-
...getTextStyle("sans",
|
|
44
|
+
...getTextStyle("sans", 14),
|
|
45
45
|
color: colors.gray[700],
|
|
46
46
|
},
|
|
47
47
|
lineValue: {
|
|
48
|
-
...getTextStyle("sans",
|
|
48
|
+
...getTextStyle("sans", 14),
|
|
49
49
|
color: colors.swan[500],
|
|
50
50
|
fontWeight: "600",
|
|
51
51
|
},
|
|
@@ -91,7 +91,7 @@ export const TransactionStatementV1 = ({ partnerLogoUrl, generationDate, executi
|
|
|
91
91
|
: debtorAccountNumber }), isNotNullishOrEmpty(debtorBankName) && (_jsx(Line, { name: t("transactionStatement.debtor.bankName"), value: debtorBankName })), isNotNullishOrEmpty(debtorBankIdentifier) && (_jsx(Line, { name: t("transactionStatement.debtor.bankIdentifier"), value: debtorBankIdentifier }))] }), _jsx(Space, { height: 24 }), _jsx(Text, { style: styles.sectionTitle, children: t("transactionStatement.title.creditor") }), _jsx(Space, { height: 8 }), _jsxs(Stack, { space: 8, children: [_jsx(Line, { name: t("transactionStatement.creditor.name"), value: creditorName }), _jsx(Line, { name: t("transactionStatement.creditor.accountNumber"), value: IBAN.isValid(creditorAccountNumber)
|
|
92
92
|
? IBAN.printFormat(creditorAccountNumber)
|
|
93
93
|
: creditorAccountNumber }), isNotNullishOrEmpty(creditorBankName) && (_jsx(Line, { name: t("transactionStatement.creditor.bankName"), value: creditorBankName })), isNotNullishOrEmpty(creditorBankIdentifier) && (_jsx(Line, { name: t("transactionStatement.creditor.bankIdentifier"), value: creditorBankIdentifier }))] }), _jsx(Fill, { minHeight: 8 }), _jsx(Text, { style: styles.generationInfos, children: t("transactionStatement.generationDate", { date: generationDate }) }), _jsx(Space, { height: 8 }), match(type)
|
|
94
|
-
.with("SepaCreditTransferOut", "
|
|
94
|
+
.with("SepaCreditTransferOut", "InternationalCreditTransferOut", () => (_jsx(Text, { style: styles.generationInfos, children: t("transactionStatement.generationInfos") })))
|
|
95
95
|
.otherwise(() => null), _jsx(Separator, { space: 24 }), _jsx(Text, { style: styles.footer, children: t("transactionStatement.footer") })] }));
|
|
96
96
|
};
|
|
97
97
|
export const TransactionStatement = (props) => match(props)
|
package/src/locales/en.json
CHANGED
|
@@ -152,9 +152,9 @@
|
|
|
152
152
|
"rejection.NotReachableConsentStatusRejection": "Couldn't change consent status",
|
|
153
153
|
"rejection.NotSupportedCountryRejection": "Unsupported country",
|
|
154
154
|
"rejection.OnboardingNotCompletedRejection": "Incomplete onboarding process",
|
|
155
|
-
"rejection.OtpIncorrectCodeRejection": "The key isn’t correct, please try again",
|
|
156
|
-
"rejection.OtpExpiredRejection": "The code is expired, please restart the process",
|
|
157
155
|
"rejection.OtpAttemptsExceededRejection": "Too many incorrect code, please restart the process",
|
|
156
|
+
"rejection.OtpExpiredRejection": "The code is expired, please restart the process",
|
|
157
|
+
"rejection.OtpIncorrectCodeRejection": "The key isn’t correct, please try again",
|
|
158
158
|
"rejection.PINNotReadyRejection": "PIN isn't ready",
|
|
159
159
|
"rejection.PaymentMandateMandateNotFoundRejection": "Couldn't find payment mandate",
|
|
160
160
|
"rejection.PaymentMandateReferenceAlreadyUsedRejection": "Payment mandates require unique reference numbers",
|