@influenzanet/case-web-app-core 2.7.3 → 2.7.4-staging.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
2
2
  import * as React$1 from 'react';
3
3
  import React__default$1, { Component, useEffect, useCallback, useRef, useState, useContext as useContext$1, useMemo, useLayoutEffect, useReducer, createContext, forwardRef as forwardRef$2, useImperativeHandle, createElement } from 'react';
4
- import { LoadingPlaceholder, SimpleHeader, Footer, Avatar, containerClassName, ChevronUp, ChevronDown, Dialog, defaultDialogPaddingXClass, Checkbox, AlertBox, TextField, DialogBtn, useFetchTextFile, TextLink, ConsentDialog, ConfirmDialog, SelectField, AvatarSelector, EditBtn, SurveyList as SurveyList$1, getExternalOrLocalContentURL, ReportList as ReportList$1, TitleBar, ComposedLineAndScatterChartLoader, MapWithTimeSliderLoader, LinkList, handleOpenExternalPage, LogoCredits, SimpleCard, AccordionList, LoginCard, VideoPlayer, ImageContainer, ActionCard, MarkdownRenderer, ImageCard, TeaserImage, MarkdownLoader, getLocalizedString, SurveyView } from 'case-web-ui';
4
+ import { LoadingPlaceholder, SimpleHeader, Footer, Avatar, containerClassName, ChevronUp, ChevronDown, Dialog, defaultDialogPaddingXClass, Checkbox, AlertBox, TextField, DialogBtn, useFetchTextFile, TextLink, ConsentDialog, ConfirmDialog, SelectField, MarkdownRenderer, AvatarSelector, EditBtn, SurveyList as SurveyList$1, getExternalOrLocalContentURL, ReportList as ReportList$1, TitleBar, ComposedLineAndScatterChartLoader, MapWithTimeSliderLoader, LinkList, handleOpenExternalPage, LogoCredits, SimpleCard, AccordionList, LoginCard, VideoPlayer, ImageContainer, ActionCard, ImageCard, TeaserImage, MarkdownLoader, getLocalizedString, SurveyView } from 'case-web-ui';
5
5
  import { useTranslation, Trans, initReactI18next } from 'react-i18next';
6
6
  import { useSelector, useDispatch } from 'react-redux';
7
7
  import { createStore, combineReducers, applyMiddleware, compose } from 'redux';
@@ -19025,6 +19025,7 @@ var EditProfile = function (props) {
19025
19025
  props.onClose();
19026
19026
  };
19027
19027
  var isNewProfile = profile.id.length < 1;
19028
+ var consentText = t('dialogs:editProfile.consentCheckboxText');
19028
19029
  return (jsx(Dialog, __assign({ open: props.open, onClose: close, title: isNewProfile ?
19029
19030
  t('dialogs:editProfile.new.title') : t('dialogs:editProfile.edit.title'), ariaLabelledBy: "editProfileDialogTitle" }, { children: jsxs("div", __assign({ className: clsx(defaultDialogPaddingXClass, 'py-3', 'bg-grey-1') }, { children: [jsx("label", __assign({ className: "mb-1 form-label", htmlFor: "consent" }, { children: t('dialogs:editProfile.consentCheckboxLabel') }), void 0), jsx(Checkbox, __assign({ id: "consent", name: "consent", checked: profile.consentConfirmedAt > 0, onChange: function (value) {
19030
19031
  if (value) {
@@ -19037,7 +19038,7 @@ var EditProfile = function (props) {
19037
19038
  return __assign(__assign({}, prev), { consentConfirmedAt: 0 });
19038
19039
  });
19039
19040
  }
19040
- } }, { children: t('dialogs:editProfile.consentCheckboxText') }), void 0), jsx(TextField, { className: "my-2", id: "nickname", name: "nickname", maxLength: 35, required: true, label: t('dialogs:editProfile.aliasInputLabel'), placeholder: t('dialogs:editProfile.aliasInputPlaceholder'), value: profile.alias, autoComplete: "off", onChange: function (event) {
19041
+ } }, { children: jsx(MarkdownRenderer, { className: "p-0 flex-grow-1", markdown: consentText }, void 0) }), void 0), jsx(TextField, { className: "my-2", id: "nickname", name: "nickname", maxLength: 35, required: true, label: t('dialogs:editProfile.aliasInputLabel'), placeholder: t('dialogs:editProfile.aliasInputPlaceholder'), value: profile.alias, autoComplete: "off", onChange: function (event) {
19041
19042
  var value = event.target.value;
19042
19043
  setProfile(function (prev) { return __assign(__assign({}, prev), { alias: value }); });
19043
19044
  } }, void 0), jsx(AvatarSelector, { avatars: avatars, className: "", title: t('dialogs:editProfile.avatarSelectorLabel'), selectedAvatarId: profile.avatarId, onSelectAvatar: function (avatar) {