frst-components 0.21.82 → 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
@@ -3506,6 +3506,7 @@ const useInputHook = ({ limit, placeholder, onSendMentions, onContentFormat, onC
3506
3506
  if ((!value || value.length <= 0) && !focus && !replyMentionedUser) {
3507
3507
  divInputRef.current.innerText = placeholder;
3508
3508
  setPlaceholder(true);
3509
+ resizeDiv();
3509
3510
  }
3510
3511
  }, [value]);
3511
3512
  React.useEffect(() => {
@@ -4812,7 +4813,7 @@ const InputReply = ({ placeHolderText, getSearchUsers, onClickPublishButton, par
4812
4813
  const response = await getSearchUsers(value);
4813
4814
  setUsers(response?.data?.results || response);
4814
4815
  };
4815
- 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) => {
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) => {
4816
4817
  handleSearchUsers(e);
4817
4818
  }, value: comment, placeholder: placeHolderText, limit: limitInput, showCharacterCounter: true, onContentUnformat: (unformattedValue) => setCommentData(unformattedValue), onContentFormat: (formattedValue) => setCaptureFormattedValue(formattedValue), onSendMentions: (mentions) => setCaptureMentions(mentions), users: users,
4818
4819
  //replyMentionedUser={!userMentionedOnReplied && user}
@@ -14920,18 +14921,10 @@ styled__default["default"].div `
14920
14921
  function FeedInteraction(props) {
14921
14922
  const [openReview, setOpenReview] = React.useState(false);
14922
14923
  const [openComments, setOpenComments] = React.useState(false);
14923
- // const [loadCommentsText, setLoadCommentsText] = useState(props.commentList?.length < 2 ? false : true);
14924
- // const [showMoreComments, setShowMoreComments] = useState(false);
14925
- // const [focusComment, setFocusComment] = useState(false);
14926
- // const [commentData, setCommentData] = useState('');
14927
14924
  const [isVisibleComments, setIsVisibleComments] = React.useState(!props?.hideComments);
14928
14925
  React.useEffect(() => {
14929
14926
  setIsVisibleComments(!props?.hideComments);
14930
14927
  }, [props?.hideComments]);
14931
- // const [stateLatestComment, setStateLatestComment] = useState(props.latestComment)
14932
- // useEffect(() => {
14933
- // setStateLatestComment(props.latestComment)
14934
- // }, [props.latestComment]);
14935
14928
  const [stateTotalComments, setStateTotalComments] = React.useState(props.qtdComments);
14936
14929
  React.useEffect(() => {
14937
14930
  setStateTotalComments(props.qtdComments);
@@ -14944,19 +14937,6 @@ function FeedInteraction(props) {
14944
14937
  setOpenComments(!openComments);
14945
14938
  setOpenReview(false);
14946
14939
  };
14947
- // const OnLoadCommentsClick = () => {
14948
- // setLoadCommentsText(false)
14949
- // setShowMoreComments(true)
14950
- // }
14951
- // const OnChangeComment = (e) => {
14952
- // setCommentData(e.target.value)
14953
- // setFocusComment(true)
14954
- // }
14955
- // const HandleSaveComment = () => {
14956
- // props.handleSaveCommentBtn(commentData)
14957
- // setCommentData('')
14958
- // setFocusComment(false)
14959
- // }
14960
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) ?
14961
14941
  jsxRuntime.jsxs(infoContent, { children: [props.qtdLikes ?
14962
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/feedInte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.d.ts","sourceRoot":"","sources":["../../../../src/components/input-comment/useInputHook.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAE3D,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAE/B,UAAU,UAAU;IAChB,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IACnB,cAAc,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,IAAI,CAAA;IAC5C,eAAe,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAA;IAC1C,iBAAiB,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAA;IAC5C,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAAA;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,kBAAkB,CAAC,EAAE,IAAI,CAAA;CAC5B;AAED,eAAO,MAAM,YAAY,oHAAqH,UAAU;yBA2HxH,mBAAmB;;;;;;;;;;8BA/Ed,IAAI;;;;CAkPxC,CAAA"}
1
+ {"version":3,"file":"useInputHook.d.ts","sourceRoot":"","sources":["../../../../src/components/input-comment/useInputHook.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAE3D,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAE/B,UAAU,UAAU;IAChB,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IACnB,cAAc,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,IAAI,CAAA;IAC5C,eAAe,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAA;IAC1C,iBAAiB,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAA;IAC5C,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAAA;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,kBAAkB,CAAC,EAAE,IAAI,CAAA;CAC5B;AAED,eAAO,MAAM,YAAY,oHAAqH,UAAU;yBA2HxH,mBAAmB;;;;;;;;;;8BA/Ed,IAAI;;;;CAiPxC,CAAA"}
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.82",
4
+ "version": "0.21.84",
5
5
  "private": false,
6
6
  "main": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",