frst-components 0.21.66 → 0.21.67

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.
Files changed (2) hide show
  1. package/dist/index.js +5 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -4683,7 +4683,7 @@ const InputReply = ({ placeHolderText, getSearchUsers, onClickPublishButton, par
4683
4683
  const [users, setUsers] = React.useState([]);
4684
4684
  const [isLoading, setIsLoading] = React.useState(false);
4685
4685
  const inputRef = React.useRef(null);
4686
- const user = {
4686
+ ({
4687
4687
  user_uuid: replyMentionedUser.uuid,
4688
4688
  name: replyMentionedUser.name,
4689
4689
  profile: {
@@ -4691,7 +4691,7 @@ const InputReply = ({ placeHolderText, getSearchUsers, onClickPublishButton, par
4691
4691
  company_name: replyMentionedUser.company_name,
4692
4692
  role_name: replyMentionedUser.role_name
4693
4693
  }
4694
- };
4694
+ });
4695
4695
  const [userMentionedOnReplied, setUserMentionedOnReply] = React.useState(false);
4696
4696
  const handleClickOutside = (event) => {
4697
4697
  if (inputRef.current && !inputRef.current.contains(event.target) && comment.length === 0) {
@@ -4732,7 +4732,9 @@ const InputReply = ({ placeHolderText, getSearchUsers, onClickPublishButton, par
4732
4732
  };
4733
4733
  return (jsxRuntime.jsxs(Container$g, { children: [jsxRuntime.jsx(Avatar, { src: imgProfile, size: "32px", style: { marginTop: '55px', marginRight: '8px' } }), jsxRuntime.jsxs(InputContainer, { ref: inputRef, style: { ...styles }, children: [jsxRuntime.jsx(InputComment$1, { styles: { width: '100%', marginTop: '22.5px' }, className: "userComment", onChange: (e) => {
4734
4734
  handleSearchUsers(e);
4735
- }, value: comment, placeholder: placeHolderText, limit: limitInput, showCharacterCounter: true, onContentUnformat: (unformattedValue) => setCommentData(unformattedValue), onContentFormat: (formattedValue) => setCaptureFormattedValue(formattedValue), onSendMentions: (mentions) => setCaptureMentions(mentions), users: users, replyMentionedUser: !userMentionedOnReplied && user, group_uuid: group_uuid }), jsxRuntime.jsx(MiniButton, { disabled: comment.length <= 0 || isLoading, label: publishButtonText, onClick: () => handlePublish(), variant: "primary", styles: { marginLeft: 'auto', marginTop: '15px' } }), isLoading && jsxRuntime.jsx(Loading, {})] })] }));
4735
+ }, value: comment, placeholder: placeHolderText, limit: limitInput, showCharacterCounter: true, onContentUnformat: (unformattedValue) => setCommentData(unformattedValue), onContentFormat: (formattedValue) => setCaptureFormattedValue(formattedValue), onSendMentions: (mentions) => setCaptureMentions(mentions), users: users,
4736
+ //replyMentionedUser={!userMentionedOnReplied && user}
4737
+ group_uuid: group_uuid }), jsxRuntime.jsx(MiniButton, { disabled: comment.length <= 0 || isLoading, label: publishButtonText, onClick: () => handlePublish(), variant: "primary", styles: { marginLeft: 'auto', marginTop: '15px' } }), isLoading && jsxRuntime.jsx(Loading, {})] })] }));
4736
4738
  };
4737
4739
 
4738
4740
  const ThreadComments = ({ mainComment, listReplyComments, placeHolderText, onClickPublishButton, showReplysButtonText, publishButtonText, limitInputs, answerButtonText, loggedUserProfileImg, group_uuid, getSearchUsers, showMoreButtonText, showLessButtonText, styles, relationToPhaseText }) => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "frst-components",
3
3
  "homepage": "http://FRST-Falconi.github.io/storybook.frstfalconi.com",
4
- "version": "0.21.66",
4
+ "version": "0.21.67",
5
5
  "private": false,
6
6
  "main": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",