sbwb-ds 1.0.94 → 1.0.95
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/sbwb-ds.js
CHANGED
|
@@ -52224,7 +52224,7 @@ const Ime = ({
|
|
|
52224
52224
|
/* @__PURE__ */ I(dhe, { children: t })
|
|
52225
52225
|
] }),
|
|
52226
52226
|
/* @__PURE__ */ X(mhe, { isEditing: v, children: [
|
|
52227
|
-
|
|
52227
|
+
d ? null : h && /* @__PURE__ */ I(y, { onClick: b }),
|
|
52228
52228
|
/* @__PURE__ */ I(x, { onClick: () => c(e) }),
|
|
52229
52229
|
h ? /* @__PURE__ */ I(w, { onClick: l }) : null
|
|
52230
52230
|
] })
|
package/dist/sbwb-ds.umd.cjs
CHANGED
|
@@ -2783,7 +2783,7 @@ echarts.use([`+H+"]);":"Unknown series "+k))}return}if(h==="tooltip"){if(w){proc
|
|
|
2783
2783
|
display: flex;
|
|
2784
2784
|
flex-direction: column;
|
|
2785
2785
|
gap: 4px;
|
|
2786
|
-
`,of=({id:e,name:r,keyName:t,date:n,text:a,avatarImg:i,title:o,onClickEdit:s,onClickDelete:l,onClickReply:c,isReply:u,isAuthor:h=!0,onSaveEditedComment:f,hiddenEditButton:d})=>{const[v,p]=N.useState(!1),[g,m]=N.useState(a),y=be.EditSm,w=be.DeleteFILL0Sm,x=be.ReplySm,_=be.FiberManualRecordFill1Sm,b=()=>{p(!0),s&&s()},M=()=>{p(!1),f(e,g)},L=()=>{m(a),p(!1)};return X(Aie,{isReply:u,children:[i?I(rV,{children:I(Oie,{src:i})}):I(rV,{children:I(_,{})}),X("div",{style:{width:"100%"},children:[X(Fie,{children:[X(Pie,{children:[I(Nie,{children:r}),I(Bie,{children:t})]}),X(zie,{isEditing:v,children:[
|
|
2786
|
+
`,of=({id:e,name:r,keyName:t,date:n,text:a,avatarImg:i,title:o,onClickEdit:s,onClickDelete:l,onClickReply:c,isReply:u,isAuthor:h=!0,onSaveEditedComment:f,hiddenEditButton:d})=>{const[v,p]=N.useState(!1),[g,m]=N.useState(a),y=be.EditSm,w=be.DeleteFILL0Sm,x=be.ReplySm,_=be.FiberManualRecordFill1Sm,b=()=>{p(!0),s&&s()},M=()=>{p(!1),f(e,g)},L=()=>{m(a),p(!1)};return X(Aie,{isReply:u,children:[i?I(rV,{children:I(Oie,{src:i})}):I(rV,{children:I(_,{})}),X("div",{style:{width:"100%"},children:[X(Fie,{children:[X(Pie,{children:[I(Nie,{children:r}),I(Bie,{children:t})]}),X(zie,{isEditing:v,children:[d?null:h&&I(y,{onClick:b}),I(x,{onClick:()=>c(e)}),h?I(w,{onClick:l}):null]})]}),X(Iie,{children:[I($ie,{children:o}),I(Rie,{children:n})]}),v?X(Wie,{children:[I(Gh,{id:"textarea-"+e,value:g,onChange:E=>m(E.target.value),width:"230px",height:"100%",minHeight:"98px",size:"Small"}),X(Gie,{children:[I(Sn,{variant:"delete",onClick:L}),I(Sn,{variant:"check_circle",onClick:M})]})]}):I(Zie,{children:g})]})]})},Uie=T.h2`
|
|
2787
2787
|
color: ${S.colors.neutralColors.colorNeutralDark};
|
|
2788
2788
|
font-size: 18px;
|
|
2789
2789
|
font-style: normal;
|
package/package.json
CHANGED
|
@@ -86,9 +86,9 @@ const HistoryComment = ({
|
|
|
86
86
|
</C.NameContainer>
|
|
87
87
|
|
|
88
88
|
<C.IconsContainer isEditing={isEditing}>
|
|
89
|
-
{!hiddenEditButton
|
|
90
|
-
<EditIcon onClick={handleEditClick} />
|
|
91
|
-
|
|
89
|
+
{!hiddenEditButton
|
|
90
|
+
? isAuthor && <EditIcon onClick={handleEditClick} />
|
|
91
|
+
: null}
|
|
92
92
|
<ReplyIcon onClick={() => onClickReply(id)} />
|
|
93
93
|
{isAuthor ? <DeleteIcon onClick={onClickDelete} /> : null}
|
|
94
94
|
</C.IconsContainer>
|