@influenzanet/case-web-app-core 2.8.9-staging → 2.9.1-staging
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/build/index.es.js +13 -7
- package/build/index.es.js.map +1 -1
- package/build/index.js +13 -7
- package/build/index.js.map +1 -1
- package/build/types/pagesConfig.d.ts +2 -1
- package/package.json +1 -1
package/build/index.es.js
CHANGED
|
@@ -22736,7 +22736,7 @@ var VerifyWhatsApp = function () {
|
|
|
22736
22736
|
if (!open) {
|
|
22737
22737
|
return null;
|
|
22738
22738
|
}
|
|
22739
|
-
return (jsxs(Dialog, __assign({ open: open, title: t('verifyWhatsApp.title'), ariaLabelledBy: "verify-whatsapp-title", onClose: close
|
|
22739
|
+
return (jsxs(Dialog, __assign({ open: open, title: t('verifyWhatsApp.title'), ariaLabelledBy: "verify-whatsapp-title", onClose: close }, { children: [jsxs("div", __assign({ className: "".concat(defaultDialogPaddingXClass, " py-4") }, { children: [jsx("div", __assign({ className: "mb-4" }, { children: jsx("p", __assign({ className: "mb-2" }, { children: t("verifyWhatsApp.info") }), void 0) }), void 0), error && (jsx(AlertBox, { type: "danger", content: error, className: "mb-3" }, void 0)), jsx("div", __assign({ className: "mb-3" }, { children: jsx(TextField, { id: "verification-code", name: "verificationCode", label: t('verifyWhatsApp.codeInputLabel'), placeholder: t('verifyWhatsApp.codeInputPlaceholder'), value: verificationCode, onChange: function (event) { return setVerificationCode(event.target.value); }, maxLength: 6, autoComplete: "off" }, void 0) }), void 0)] }), void 0), jsxs("div", __assign({ className: "d-flex justify-content-between align-items-center gap-3 p-3 border-top" }, { children: [jsx(DialogBtn, { type: "button", onClick: resendCode, label: t('verifyWhatsApp.resendBtn'), loading: resendLoading, disabled: loading || !phoneNumber }, void 0), jsxs("div", __assign({ className: "d-flex gap-3" }, { children: [jsx(DialogBtn, { type: "button", onClick: close, label: t('verifyWhatsApp.cancelBtn'), disabled: loading || resendLoading }, void 0), jsx(DialogBtn, { type: "button", onClick: verifyCode, color: "primary", label: t('verifyWhatsApp.submitBtn'), loading: loading, disabled: !verificationCode.trim() || resendLoading }, void 0)] }), void 0)] }), void 0)] }), void 0));
|
|
22740
22740
|
};
|
|
22741
22741
|
|
|
22742
22742
|
var GlobalDialogs = function (props) {
|
|
@@ -28894,8 +28894,13 @@ var ContentRenderer = function (props) {
|
|
|
28894
28894
|
return null;
|
|
28895
28895
|
}
|
|
28896
28896
|
var itemConfig = item.config;
|
|
28897
|
-
|
|
28897
|
+
if (!itemConfig || !itemConfig.componentName) {
|
|
28898
|
+
console.warn("Extension item config is invalid: ".concat(JSON.stringify(item)));
|
|
28899
|
+
return null;
|
|
28900
|
+
}
|
|
28901
|
+
var currentExtensionComponent = props.extensions.filter(function (ext) { return ext.name === itemConfig.componentName; });
|
|
28898
28902
|
if (!currentExtensionComponent || currentExtensionComponent.length < 1) {
|
|
28903
|
+
console.warn("No extension found with name: ".concat(itemConfig.componentName));
|
|
28899
28904
|
return null;
|
|
28900
28905
|
}
|
|
28901
28906
|
var Component = currentExtensionComponent[0].component;
|
|
@@ -34554,23 +34559,24 @@ var InternalNavigator = function (props) {
|
|
|
34554
34559
|
};
|
|
34555
34560
|
|
|
34556
34561
|
var PhoneVerificationBanner = function () {
|
|
34557
|
-
var t = useTranslation(
|
|
34562
|
+
var t = useTranslation().t;
|
|
34558
34563
|
var isAuth = useIsAuthenticated();
|
|
34559
34564
|
var history = useHistory();
|
|
34560
34565
|
var currentUser = useSelector(function (state) { return state.user.currentUser; });
|
|
34561
|
-
if (!isAuth) {
|
|
34566
|
+
if (!isAuth || !currentUser) {
|
|
34567
|
+
return null;
|
|
34568
|
+
}
|
|
34569
|
+
if (!currentUser.contactInfos || !Array.isArray(currentUser.contactInfos)) {
|
|
34562
34570
|
return null;
|
|
34563
34571
|
}
|
|
34564
|
-
// Check if user has an unverified phone number
|
|
34565
34572
|
var phoneInfo = currentUser.contactInfos.find(function (info) { return info.type === 'phone'; });
|
|
34566
|
-
// Don't show banner if no phone or phone is already verified
|
|
34567
34573
|
if (!phoneInfo || (phoneInfo.confirmedAt && phoneInfo.confirmedAt > 0)) {
|
|
34568
34574
|
return null;
|
|
34569
34575
|
}
|
|
34570
34576
|
var handleGoToProfile = function () {
|
|
34571
34577
|
history.push('/settings');
|
|
34572
34578
|
};
|
|
34573
|
-
return (jsx("div", __assign({ className: "alert alert-warning mb-0", role: "alert", style: { borderRadius: 0 } }, { children: jsx("div", __assign({ className: "container" }, { children: jsxs("div", __assign({ className: "row align-items-center" }, { children: [jsxs("div", __assign({ className: "col-12 col-md-9" }, { children: [jsx("span", __assign({ className: "material-icons align-middle me-2", style: { fontSize: '1.5rem' } }, { children: "warning" }), void 0), jsx("strong", { children: t('
|
|
34579
|
+
return (jsx("div", __assign({ className: "alert alert-warning mb-0", role: "alert", style: { borderRadius: 0 } }, { children: jsx("div", __assign({ className: "container" }, { children: jsxs("div", __assign({ className: "row align-items-center" }, { children: [jsxs("div", __assign({ className: "col-12 col-md-9" }, { children: [jsx("span", __assign({ className: "material-icons align-middle me-2", style: { fontSize: '1.5rem' } }, { children: "warning" }), void 0), jsx("strong", { children: t('phoneVerificationBanner.title') }, void 0), ' ', t('phoneVerificationBanner.message')] }), void 0), jsx("div", __assign({ className: "col-12 col-md-3 text-md-end mt-2 mt-md-0" }, { children: jsx("button", __assign({ className: "btn btn-sm btn-dark", onClick: handleGoToProfile }, { children: t('phoneVerificationBanner.button') }), void 0) }), void 0)] }), void 0) }), void 0) }), void 0));
|
|
34574
34580
|
};
|
|
34575
34581
|
|
|
34576
34582
|
var coreReduxActions = {
|