frst-components 0.21.83 → 0.21.84
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/dist/index.js
CHANGED
|
@@ -4813,7 +4813,7 @@ const InputReply = ({ placeHolderText, getSearchUsers, onClickPublishButton, par
|
|
|
4813
4813
|
const response = await getSearchUsers(value);
|
|
4814
4814
|
setUsers(response?.data?.results || response);
|
|
4815
4815
|
};
|
|
4816
|
-
return (jsxRuntime.jsxs(Container$g, { children: [jsxRuntime.jsx(Avatar, { src: imgProfile, size: "32px", style: { marginTop: '
|
|
4816
|
+
return (jsxRuntime.jsxs(Container$g, { children: [jsxRuntime.jsx(Avatar, { src: imgProfile, size: "32px", style: { marginTop: '50px', marginRight: '8px' } }), jsxRuntime.jsxs(InputContainer, { ref: inputRef, style: { ...styles }, children: [jsxRuntime.jsx(InputComment$1, { styles: { width: '100%', marginTop: '22.5px' }, className: "userComment", onChange: (e) => {
|
|
4817
4817
|
handleSearchUsers(e);
|
|
4818
4818
|
}, value: comment, placeholder: placeHolderText, limit: limitInput, showCharacterCounter: true, onContentUnformat: (unformattedValue) => setCommentData(unformattedValue), onContentFormat: (formattedValue) => setCaptureFormattedValue(formattedValue), onSendMentions: (mentions) => setCaptureMentions(mentions), users: users,
|
|
4819
4819
|
//replyMentionedUser={!userMentionedOnReplied && user}
|
|
@@ -14921,18 +14921,10 @@ styled__default["default"].div `
|
|
|
14921
14921
|
function FeedInteraction(props) {
|
|
14922
14922
|
const [openReview, setOpenReview] = React.useState(false);
|
|
14923
14923
|
const [openComments, setOpenComments] = React.useState(false);
|
|
14924
|
-
// const [loadCommentsText, setLoadCommentsText] = useState(props.commentList?.length < 2 ? false : true);
|
|
14925
|
-
// const [showMoreComments, setShowMoreComments] = useState(false);
|
|
14926
|
-
// const [focusComment, setFocusComment] = useState(false);
|
|
14927
|
-
// const [commentData, setCommentData] = useState('');
|
|
14928
14924
|
const [isVisibleComments, setIsVisibleComments] = React.useState(!props?.hideComments);
|
|
14929
14925
|
React.useEffect(() => {
|
|
14930
14926
|
setIsVisibleComments(!props?.hideComments);
|
|
14931
14927
|
}, [props?.hideComments]);
|
|
14932
|
-
// const [stateLatestComment, setStateLatestComment] = useState(props.latestComment)
|
|
14933
|
-
// useEffect(() => {
|
|
14934
|
-
// setStateLatestComment(props.latestComment)
|
|
14935
|
-
// }, [props.latestComment]);
|
|
14936
14928
|
const [stateTotalComments, setStateTotalComments] = React.useState(props.qtdComments);
|
|
14937
14929
|
React.useEffect(() => {
|
|
14938
14930
|
setStateTotalComments(props.qtdComments);
|
|
@@ -14945,19 +14937,6 @@ function FeedInteraction(props) {
|
|
|
14945
14937
|
setOpenComments(!openComments);
|
|
14946
14938
|
setOpenReview(false);
|
|
14947
14939
|
};
|
|
14948
|
-
// const OnLoadCommentsClick = () => {
|
|
14949
|
-
// setLoadCommentsText(false)
|
|
14950
|
-
// setShowMoreComments(true)
|
|
14951
|
-
// }
|
|
14952
|
-
// const OnChangeComment = (e) => {
|
|
14953
|
-
// setCommentData(e.target.value)
|
|
14954
|
-
// setFocusComment(true)
|
|
14955
|
-
// }
|
|
14956
|
-
// const HandleSaveComment = () => {
|
|
14957
|
-
// props.handleSaveCommentBtn(commentData)
|
|
14958
|
-
// setCommentData('')
|
|
14959
|
-
// setFocusComment(false)
|
|
14960
|
-
// }
|
|
14961
14940
|
return (jsxRuntime.jsx(styled.ThemeProvider, { theme: FRSTTheme, children: jsxRuntime.jsxs(Container$2, { style: { ...props.style }, id: props.id, children: [!props.textTotalView && (props.qtdLikes || stateTotalComments) ?
|
|
14962
14941
|
jsxRuntime.jsxs(infoContent, { children: [props.qtdLikes ?
|
|
14963
14942
|
jsxRuntime.jsxs(info, { style: { left: 0 }, children: [" ", jsxRuntime.jsx(ThumbsUpCovered, {}), " \u00A0", props.qtdLikes] })
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/FI/feedInteraction/index.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/FI/feedInteraction/index.tsx"],"names":[],"mappings":";AAcA,UAAU,gBAAgB;IACtB,EAAE,EAAE,MAAM,CAAA;IACV,QAAQ,EAAE,MAAM,CAAA;IAChB,WAAW,EAAE,MAAM,CAAA;IACnB,SAAS,EAAE,MAAM,CAAA;IACjB,WAAW,EAAE,MAAM,CAAA;IACnB,YAAY,EAAE,MAAM,CAAA;IACpB,cAAc,EAAE,MAAM,CAAA;IACtB,mBAAmB,EAAE,MAAM,CAAA;IAC3B,OAAO,EAAE,OAAO,CAAA;IAChB,iBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,cAAe,CAAC,EAAE,MAAM,CAAA;IACxB,YAAa,CAAC,EAAE,OAAO,CAAA;IACvB,gBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,UAAW,CAAC,EAAE,MAAM,CAAA;IACpB,oBAAqB,CAAC,EAAE,MAAM,CAAA;IAC9B,oBAAqB,CAAC,EAAE,OAAO,CAAA;IAE/B,KAAM,CAAC,EAAE,KAAK,CAAC,aAAa,CAAA;IAC5B,eAAgB,CAAC,EAAE,MAAM,IAAI,CAAA;IAC7B,mBAAmB,CAAC,EAAE,GAAG,CAAA;IACzB,sBAAsB,CAAC,EAAE,GAAG,CAAA;IAC5B,sBAAuB,CAAC,EAAE,GAAG,CAAA;IAE7B,YAAa,CAAC,EAAE,GAAG,CAAA;IAEnB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,yBAAyB,CAAC,EAAE,MAAM,IAAI,CAAA;IAEtC,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,iBAAiB,CAAC,EAAE,GAAG,CAAA;CAC1B;AAED,MAAM,CAAC,OAAO,UAAU,eAAe,CAAG,KAAK,EAAG,gBAAgB,eAyGjE"}
|