@e-llm-studio/requirement-ai 0.0.65 → 0.0.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.
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/UserStoryCard.js +1 -1
- package/dist/cjs/features/RequirementAI/shared/AtomicButton.js +1 -1
- package/dist/features/RequirementAI/components/UserStoryCard/UserStoryCard.js +1 -1
- package/dist/features/RequirementAI/shared/AtomicButton.js +1 -1
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/UserStoryCard.d.ts +2 -2
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/UserStoryCard.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/shared/AtomicButton.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),n=require("react"),r=require("lucide-react"),s=require("showdown"),o=require("@mui/material"),i=require("uuid"),a=require("./UserStoryCard.module.css.js"),l=require("../../utils/helpers.js"),u=require("../../utils/user-story.utils.js"),d=require("../../shared/AtomicButton.js"),c=require("../RichTextEditor/RichTextEditor.js"),f=require("../userstory-with-citation/UserStoryWithCitation.js"),v=require("../RequirementAIWrapper/RequirementAIWrapper.js");function y(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var _=y(s);function m(n){for(var s,a=[],l=/<learned>(.*?)<\/learned>/g,u=0,d=0;null!==(s=l.exec(n));){var c=s[1],f=s.index;f>u&&a.push(t.jsx("span",{children:n.slice(u,f)},"text-pre-".concat(d++))),a.push(t.jsx(o.Tooltip,e.__assign({title:c,placement:"top"},{children:t.jsx(r.Info,{size:16,className:"inline-block mx-1 text-blue-500 hover:text-blue-700 cursor"})}),"tooltip-".concat(i.v4()))),u=l.lastIndex}return u<(null==n?void 0:n.length)&&a.push(t.jsx("span",{children:n.slice(u)},"text-post-".concat(d++))),a}var h=function(n){var s,o=n.displayName,i=v.useRequirementAI().customStyles,l=null===(s=null==i?void 0:i.userStoryCardStyles)||void 0===s?void 0:s.showDisplayName;return t.jsxs("div",e.__assign({className:a.default.displayName,style:null==l?void 0:l.wrapper},{children:[t.jsx(r.Bookmark,{className:a.default.displayNameIcon,style:null==l?void 0:l.displayNameIcon}),t.jsxs("span",e.__assign({style:null==l?void 0:l.label},{children:[o,":"]}))]}))},S=function(s){var i,y,p=s.isUserStoryCurrentlyUpdated,x=s.artifactId,g=s.artifactTitleId,I=s.parentUserStory,j=s.currentUserStory,C=s.onUserStoryChange,w=s.parentIndex,U=s.currentIndex,N=s.enableDownload,b=s.isDiffEditReviewMode,D=s.showUserStoryDiff,M=s.handleDownloadUserStory,k=s.handleOpenSendDialog,q=s.updateUserStoryArtifact,A=s.selectedArtifactId,B=v.useRequirementAI(),R=B.searchQueryList,T=B.citations,E=B.customStyles,L=null==E?void 0:E.userStoryCardStyles,P=null===(i=null==E?void 0:E.userStoryScreenStyles)||void 0===i?void 0:i.userStoryContentStyles,W=n.useState(e.__assign(e.__assign({},structuredClone(j)),{value:l.formatMarkdown(j.value)||""})),z=W[0],O=W[1],H=n.useState({userStory:!1}),F=H[0],V=H[1],Q=v.useRequirementAI().userStory,G=n.useState(""===w||A===j.artifactId),J=G[0],K=G[1],X=n.useState(!1);X[0];var Y=X[1],Z=n.useState(null),$=Z[0],ee=Z[1],te=n.useState(!1),ne=te[0],re=te[1],se=n.useRef(null),oe=n.useState(!1);oe[0];var ie=oe[1];n.useEffect(function(){p&&K(p)},[p]),n.useEffect(function(){O(e.__assign(e.__assign({},structuredClone(j)),{value:l.formatMarkdown(j.value)||""}))},[j]),n.useEffect(function(){R.length>0?K(!0):A&&K(A===j.artifactId)},[R,A,j.artifactId]);var ae=function(){ee(null)},le=function(){K(function(e){return!e})};return t.jsxs("div",e.__assign({className:a.default.card,style:null==L?void 0:L.cardStyle},{children:[t.jsxs("div",e.__assign({className:a.default.titleSection,style:null==L?void 0:L.titleSection},{children:[t.jsxs("div",e.__assign({className:a.default.titleRow,style:null==L?void 0:L.titleRow,onClick:le},{children:[t.jsxs("div",e.__assign({className:a.default.titleLeft,style:null==L?void 0:L.titleLeft,onMouseEnter:function(){return ie(!0)},onMouseLeave:function(){return ie(!1)}},{children:[t.jsx(h,{displayName:g}),t.jsx("h2",e.__assign({className:a.default.storyTitle,style:null==L?void 0:L.storyTitle},{children:m(j.title)}),j.artifactId)]})),t.jsxs("div",e.__assign({className:a.default.titleActions,style:null==L?void 0:L.titleActions,onClick:function(e){return e.stopPropagation()}},{children:[!F.userStory&&t.jsxs(t.Fragment,{children:[t.jsx("button",e.__assign({className:a.default.iconButton,style:null==L?void 0:L.iconButton,onClick:function(e){ee(e.currentTarget)}},{children:t.jsx(r.ExternalLink,{size:16})})),t.jsxs(o.Menu,e.__assign({id:"user-story-share-menu",anchorEl:$,open:!!$,onClose:function(){return ee(null)},style:null==L?void 0:L.userStoryShareMenu},{children:[N&&t.jsx(o.MenuItem,e.__assign({style:null==L?void 0:L.userStoryMenuItem,onClick:function(){return e.__awaiter(void 0,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return Y(!0),M?[4,Promise.all([M("pdf"),M("doc")])]:[2];case 1:return e.sent(),Y(!1),[2]}})})}},{children:t.jsxs("div",e.__assign({ref:se,className:a.default.menuItemContent,style:null==L?void 0:L.menuItemContent},{children:[t.jsx(r.Download,{size:16,color:null==L?void 0:L.menuIconColor}),t.jsx("p",e.__assign({style:null==L?void 0:L.menuLabel},{children:"Download"}))]}))})),t.jsx(o.MenuItem,e.__assign({style:null==L?void 0:L.userStoryMenuItem,onClick:function(){return e.__awaiter(void 0,void 0,void 0,function(){var t;return e.__generator(this,function(n){return t=j,I&&(t=e.__assign(e.__assign({},j),{value:"".concat(u.replaceTitleSection(null==I?void 0:I.value,j.title)," \n").concat(j.value)})),null==k||k(!0,[t],j.artifactId),ae(),[2]})})}},{children:t.jsxs("div",e.__assign({style:null==L?void 0:L.menuItemContent,className:a.default.menuItemContentPadded},{children:[t.jsx(r.Share2,{size:16,color:null==L?void 0:L.menuIconColor}),t.jsx("p",e.__assign({style:null==L?void 0:L.menuLabel},{children:"Send"}))]}))})),t.jsx(o.MenuItem,e.__assign({style:null==L?void 0:L.userStoryMenuItem,onClick:function(){return e.__awaiter(void 0,void 0,void 0,function(){var t,n,r,s,o;return e.__generator(this,function(e){switch(e.label){case 0:t=new _.default.Converter,n=t.makeHtml(l.formatMarkdown(j.value)||j.value),r=function(e){var t=(new _.default.Converter).makeHtml(e),n=document.createElement("div");return n.innerHTML=t,n.textContent||n.innerText||""}(l.formatMarkdown(j.value)||j.value),s=new ClipboardItem({"text/plain":new Blob([r],{type:"text/plain"}),"text/html":new Blob([n],{type:"text/html"})}),e.label=1;case 1:return e.trys.push([1,3,4,5]),[4,navigator.clipboard.write([s])];case 2:return e.sent(),console.log("Copied User Story"),[3,5];case 3:return o=e.sent(),console.error("Failed to copy user story:",o),[3,5];case 4:return ae(),[7];case 5:return[2]}})})}},{children:t.jsxs("div",e.__assign({style:null==L?void 0:L.menuItemContent,className:a.default.menuItemContentPadded},{children:[t.jsx(r.Copy,{size:16,color:null==L?void 0:L.menuIconColor}),t.jsx("p",e.__assign({style:null==L?void 0:L.menuLabel},{children:"Copy"}))]}))}))]}))]}),F.userStory&&J?t.jsx(d.default,{isDisable:ne,type:"outline",children:"Cancel",style:null==L?void 0:L.cancelButton,onClick:function(){V(function(t){return e.__assign(e.__assign({},t),{userStory:!1})})}}):t.jsx(t.Fragment,{}),F.userStory&&J?t.jsx(d.default,{type:"fill",children:ne?t.jsxs("span",e.__assign({className:a.default.savingSpinner},{children:[t.jsx(r.LoaderCircle,{className:a.default.spinAnimation}),t.jsx("span",{children:"Saving..."})]})):"Save",isDisable:ne,style:null==L?void 0:L.saveButton,onClick:function(){return e.__awaiter(void 0,void 0,void 0,function(){return e.__generator(this,function(t){switch(t.label){case 0:return re(!0),"userStory"==="userStory"&&(C(z),console.log("I am changing RTE editor values",z)),[4,q(T,Q,x)];case 1:return t.sent(),V(function(t){return e.__assign(e.__assign({},t),{userStory:!1})}),re(!1),[2]}})})}}):!b&&!D&&J&&t.jsx("button",e.__assign({className:a.default.iconButton,style:null==L?void 0:L.editButton,onClick:function(){return V(function(t){return e.__assign(e.__assign({},t),{userStory:!0})})}},{children:t.jsx(r.PencilIcon,{color:null==L?void 0:L.pencilIconColor,size:16})})),t.jsx("button",e.__assign({type:"button",onClick:function(e){e.stopPropagation(),le()},style:null==L?void 0:L.chevronButton,className:a.default.chevronButton},{children:J?t.jsx(r.ChevronUp,{className:a.default.chevronIcon,color:null==L?void 0:L.chevronIconColor}):t.jsx(r.ChevronDown,{className:a.default.chevronIcon,color:null==L?void 0:L.chevronIconColor})}))]}))]})),t.jsx("div",{className:a.default.divider,style:null==L?void 0:L.dividerStyle})]})),J&&t.jsx("div",e.__assign({className:a.default.cardContent,style:null==L?void 0:L.cardContentStyle},{children:t.jsxs("div",e.__assign({className:a.default.contentInner,style:null==L?void 0:L.contentInner},{children:[t.jsxs("div",e.__assign({className:a.default.descriptionSection,style:null==L?void 0:L.descriptionSection},{children:[t.jsx("div",{className:a.default.justifyBetween,style:null==L?void 0:L.justifyBetween}),F.userStory?t.jsx(c.default,{minHeight:"100%",height:"100%",type:"string",value:l.formatMarkdown(j.value)||"",handleUpdateState:function(t,n){var r=l.indentMarkdown(n);O(function(t){return e.__assign(e.__assign({},t),{value:r||""})})},doNotShowBorderInViewMode:!1,onBlur:function(){},mode:F.userStory?"edit":"readOnly"}):t.jsx(f.default,{showUserStoryDiff:D,isParent:""===w,message:l.formatMarkdown(j.value)||"",artifactId:j.artifactId,customStyles:P})]})),null===(y=z.sub_features)||void 0===y?void 0:y.map(function(n,r){return t.jsx(S,{artifactId:x,isUserStoryCurrentlyUpdated:p,artifactTitleId:"".concat(g,"-").concat(String.fromCharCode(65+r)),parentUserStory:j,parentIndex:"".concat(w).concat(w&&".").concat(U),currentIndex:"".concat(r+1),doNotShowBorderInViewMode:!1,currentUserStory:n,onUserStoryChange:function(t){return function(t,n){var r=e.__spreadArray([],j.sub_features||[],!0);r[t]=n,C(e.__assign(e.__assign({},j),{sub_features:r}))}(r,t)},enableDownload:!0,isDiffEditReviewMode:b,showUserStoryDiff:D,updateUserStoryArtifact:q,handleDownloadUserStory:M,handleOpenSendDialog:k},n.artifactId)})]}))}))]}))};exports.StoryCard=S,exports.UserStoryCardWrapper=function(n){var r=n.artifactTitleIDs,s=n.isDiffEditReviewMode,o=n.showUserStoryDiff,i=n.updateUserStoryArtifact,l=n.isUserStoryCurrentlyUpdated,u=n.artifactId,d=n.handleOpenSendDialog,c=n.handleDownloadUserStory,f=n.selectedArtifactId,y=v.useRequirementAI(),_=y.userStory,m=y.setUserStory,h=y.customStyles,p=null==h?void 0:h.userStoryCardStyles;return t.jsx("div",e.__assign({className:a.default.userStoryCardWrapper,style:null==p?void 0:p.userStoryCardWrapper},{children:_.map(function(n,a){return t.jsx(S,{isUserStoryCurrentlyUpdated:l,artifactId:u,artifactTitleId:r[a]||"",currentUserStory:n,onUserStoryChange:function(t){m(function(n){return n[a]=t,e.__spreadArray([],n,!0)})},parentIndex:"",currentIndex:"".concat(a+1),doNotShowBorderInViewMode:!0,enableDownload:!0,isDiffEditReviewMode:s,showUserStoryDiff:o,updateUserStoryArtifact:i,handleOpenSendDialog:d,handleDownloadUserStory:c,selectedArtifactId:f},n.artifactId)})}))},exports.default=S,exports.replaceLearnedTagsWithInfo=m;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),n=require("react"),r=require("lucide-react"),s=require("showdown"),o=require("@mui/material"),i=require("uuid"),a=require("./UserStoryCard.module.css.js"),l=require("../../utils/helpers.js"),u=require("../../utils/user-story.utils.js"),d=require("../../shared/AtomicButton.js"),c=require("../RichTextEditor/RichTextEditor.js"),f=require("../userstory-with-citation/UserStoryWithCitation.js"),v=require("../RequirementAIWrapper/RequirementAIWrapper.js");function y(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var _=y(s);function m(n){for(var s,a=[],l=/<learned>(.*?)<\/learned>/g,u=0,d=0;null!==(s=l.exec(n));){var c=s[1],f=s.index;f>u&&a.push(t.jsx("span",{children:n.slice(u,f)},"text-pre-".concat(d++))),a.push(t.jsx(o.Tooltip,e.__assign({title:c,placement:"top"},{children:t.jsx(r.Info,{size:16,className:"inline-block mx-1 text-blue-500 hover:text-blue-700 cursor"})}),"tooltip-".concat(i.v4()))),u=l.lastIndex}return u<(null==n?void 0:n.length)&&a.push(t.jsx("span",{children:n.slice(u)},"text-post-".concat(d++))),a}var h=function(n){var s,o=n.displayName,i=v.useRequirementAI().customStyles,l=null===(s=null==i?void 0:i.userStoryCardStyles)||void 0===s?void 0:s.showDisplayName;return t.jsxs("div",e.__assign({className:a.default.displayName,style:null==l?void 0:l.wrapper},{children:[t.jsx(r.Bookmark,{className:a.default.displayNameIcon,style:null==l?void 0:l.displayNameIcon}),t.jsxs("span",e.__assign({style:null==l?void 0:l.label},{children:[o,":"]}))]}))},S=function(s){var i,y,p=s.isUserStoryCurrentlyUpdated,x=s.artifactId,g=s.artifactTitleId,I=s.parentUserStory,j=s.currentUserStory,C=s.onUserStoryChange,w=s.parentIndex,U=s.currentIndex,N=s.enableDownload,b=s.isDiffEditReviewMode,D=s.showUserStoryDiff,M=s.handleDownloadUserStory,k=s.handleOpenSendDialog,q=s.updateUserStoryArtifact,A=s.selectedArtifactId,B=v.useRequirementAI(),R=B.searchQueryList,T=B.citations,E=B.customStyles,L=null==E?void 0:E.userStoryCardStyles,P=null===(i=null==E?void 0:E.userStoryScreenStyles)||void 0===i?void 0:i.userStoryContentStyles,W=n.useState(e.__assign(e.__assign({},structuredClone(j)),{value:l.formatMarkdown(j.value)||""})),z=W[0],O=W[1],H=n.useState({userStory:!1}),F=H[0],V=H[1],Q=v.useRequirementAI().userStory,G=n.useState(""===w||A===j.artifactId),J=G[0],K=G[1],X=n.useState(!1);X[0];var Y=X[1],Z=n.useState(null),$=Z[0],ee=Z[1],te=n.useState(!1),ne=te[0],re=te[1],se=n.useRef(null),oe=n.useState(!1);oe[0];var ie=oe[1],ae=n.useRef(null);n.useEffect(function(){p&&K(p)},[p]),n.useEffect(function(){O(e.__assign(e.__assign({},structuredClone(j)),{value:l.formatMarkdown(j.value)||""}))},[j]),n.useEffect(function(){R.length>0?K(!0):A&&K(A===j.artifactId)},[R,A,j.artifactId]);var le=function(){ee(null)},ue=function(){K(function(e){return!e})};return t.jsxs("div",e.__assign({className:a.default.card,style:null==L?void 0:L.cardStyle},{children:[t.jsxs("div",e.__assign({className:a.default.titleSection,style:null==L?void 0:L.titleSection},{children:[t.jsxs("div",e.__assign({className:a.default.titleRow,style:null==L?void 0:L.titleRow,onClick:ue},{children:[t.jsxs("div",e.__assign({className:a.default.titleLeft,style:null==L?void 0:L.titleLeft,onMouseEnter:function(){return ie(!0)},onMouseLeave:function(){return ie(!1)}},{children:[t.jsx(h,{displayName:g}),t.jsx("h2",e.__assign({className:a.default.storyTitle,style:null==L?void 0:L.storyTitle},{children:m(j.title)}),j.artifactId)]})),t.jsxs("div",e.__assign({className:a.default.titleActions,style:null==L?void 0:L.titleActions,onClick:function(e){return e.stopPropagation()}},{children:[!F.userStory&&t.jsxs(t.Fragment,{children:[t.jsx("button",e.__assign({className:a.default.iconButton,style:null==L?void 0:L.iconButton,onClick:function(e){ee(e.currentTarget)}},{children:t.jsx(r.ExternalLink,{size:16})})),t.jsxs(o.Menu,e.__assign({id:"user-story-share-menu",anchorEl:$,open:!!$,onClose:function(){return ee(null)},style:null==L?void 0:L.userStoryShareMenu},{children:[N&&t.jsx(o.MenuItem,e.__assign({style:null==L?void 0:L.userStoryMenuItem,onClick:function(){return e.__awaiter(void 0,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return Y(!0),M?[4,Promise.all([M("pdf"),M("doc")])]:[2];case 1:return e.sent(),Y(!1),[2]}})})}},{children:t.jsxs("div",e.__assign({ref:se,className:a.default.menuItemContent,style:null==L?void 0:L.menuItemContent},{children:[t.jsx(r.Download,{size:16,color:null==L?void 0:L.menuIconColor}),t.jsx("p",e.__assign({style:null==L?void 0:L.menuLabel},{children:"Download"}))]}))})),t.jsx(o.MenuItem,e.__assign({style:null==L?void 0:L.userStoryMenuItem,onClick:function(){return e.__awaiter(void 0,void 0,void 0,function(){var t;return e.__generator(this,function(n){return t=j,I&&(t=e.__assign(e.__assign({},j),{value:"".concat(u.replaceTitleSection(null==I?void 0:I.value,j.title)," \n").concat(j.value)})),null==k||k(!0,[t],j.artifactId),le(),[2]})})}},{children:t.jsxs("div",e.__assign({style:null==L?void 0:L.menuItemContent,className:a.default.menuItemContentPadded},{children:[t.jsx(r.Share2,{size:16,color:null==L?void 0:L.menuIconColor}),t.jsx("p",e.__assign({style:null==L?void 0:L.menuLabel},{children:"Send"}))]}))})),t.jsx(o.MenuItem,e.__assign({style:null==L?void 0:L.userStoryMenuItem,onClick:function(){return e.__awaiter(void 0,void 0,void 0,function(){var t,n,r,s,o;return e.__generator(this,function(e){switch(e.label){case 0:t=new _.default.Converter,n=t.makeHtml(l.formatMarkdown(j.value)||j.value),r=function(e){var t=(new _.default.Converter).makeHtml(e),n=document.createElement("div");return n.innerHTML=t,n.textContent||n.innerText||""}(l.formatMarkdown(j.value)||j.value),s=new ClipboardItem({"text/plain":new Blob([r],{type:"text/plain"}),"text/html":new Blob([n],{type:"text/html"})}),e.label=1;case 1:return e.trys.push([1,3,4,5]),[4,navigator.clipboard.write([s])];case 2:return e.sent(),console.log("Copied User Story"),[3,5];case 3:return o=e.sent(),console.error("Failed to copy user story:",o),[3,5];case 4:return le(),[7];case 5:return[2]}})})}},{children:t.jsxs("div",e.__assign({style:null==L?void 0:L.menuItemContent,className:a.default.menuItemContentPadded},{children:[t.jsx(r.Copy,{size:16,color:null==L?void 0:L.menuIconColor}),t.jsx("p",e.__assign({style:null==L?void 0:L.menuLabel},{children:"Copy"}))]}))}))]}))]}),F.userStory&&J?t.jsx(d.default,{isDisable:ne,type:"outline",children:"Cancel",style:null==L?void 0:L.cancelButton,onClick:function(){var t;null===(t=ae.current)||void 0===t||t.abort(),V(function(t){return e.__assign(e.__assign({},t),{userStory:!1})})}}):t.jsx(t.Fragment,{}),F.userStory&&J?t.jsx(d.default,{type:"fill",children:ne?t.jsxs("span",e.__assign({className:a.default.savingSpinner},{children:[t.jsx(r.LoaderCircle,{className:a.default.spinAnimation}),t.jsx("span",{children:"Saving..."})]})):"Save",isDisable:ne,style:null==L?void 0:L.saveButton,onClick:function(){return e.__awaiter(void 0,void 0,void 0,function(){var t;return e.__generator(this,function(n){switch(n.label){case 0:return re(!0),"userStory"==="userStory"&&(C(z),console.log("I am changing RTE editor values",z)),[4,q(T,Q,x,null===(t=ae.current)||void 0===t?void 0:t.signal)];case 1:return n.sent(),V(function(t){return e.__assign(e.__assign({},t),{userStory:!1})}),re(!1),[2]}})})}}):!b&&!D&&J&&t.jsx("button",e.__assign({className:a.default.iconButton,style:null==L?void 0:L.editButton,onClick:function(){return V(function(t){return e.__assign(e.__assign({},t),{userStory:!0})})}},{children:t.jsx(r.PencilIcon,{color:null==L?void 0:L.pencilIconColor,size:16})})),t.jsx("button",e.__assign({type:"button",onClick:function(e){e.stopPropagation(),ue()},style:null==L?void 0:L.chevronButton,className:a.default.chevronButton},{children:J?t.jsx(r.ChevronUp,{className:a.default.chevronIcon,color:null==L?void 0:L.chevronIconColor}):t.jsx(r.ChevronDown,{className:a.default.chevronIcon,color:null==L?void 0:L.chevronIconColor})}))]}))]})),t.jsx("div",{className:a.default.divider,style:null==L?void 0:L.dividerStyle})]})),J&&t.jsx("div",e.__assign({className:a.default.cardContent,style:null==L?void 0:L.cardContentStyle},{children:t.jsxs("div",e.__assign({className:a.default.contentInner,style:null==L?void 0:L.contentInner},{children:[t.jsxs("div",e.__assign({className:a.default.descriptionSection,style:null==L?void 0:L.descriptionSection},{children:[t.jsx("div",{className:a.default.justifyBetween,style:null==L?void 0:L.justifyBetween}),F.userStory?t.jsx(c.default,{minHeight:"100%",height:"100%",type:"string",value:l.formatMarkdown(j.value)||"",handleUpdateState:function(t,n){var r=l.indentMarkdown(n);O(function(t){return e.__assign(e.__assign({},t),{value:r||""})})},doNotShowBorderInViewMode:!1,onBlur:function(){},mode:F.userStory?"edit":"readOnly"}):t.jsx(f.default,{showUserStoryDiff:D,isParent:""===w,message:l.formatMarkdown(j.value)||"",artifactId:j.artifactId,customStyles:P})]})),null===(y=z.sub_features)||void 0===y?void 0:y.map(function(n,r){return t.jsx(S,{artifactId:x,isUserStoryCurrentlyUpdated:p,artifactTitleId:"".concat(g,"-").concat(String.fromCharCode(65+r)),parentUserStory:j,parentIndex:"".concat(w).concat(w&&".").concat(U),currentIndex:"".concat(r+1),doNotShowBorderInViewMode:!1,currentUserStory:n,onUserStoryChange:function(t){return function(t,n){var r=e.__spreadArray([],j.sub_features||[],!0);r[t]=n,C(e.__assign(e.__assign({},j),{sub_features:r}))}(r,t)},enableDownload:!0,isDiffEditReviewMode:b,showUserStoryDiff:D,updateUserStoryArtifact:q,handleDownloadUserStory:M,handleOpenSendDialog:k},n.artifactId)})]}))}))]}))};exports.StoryCard=S,exports.UserStoryCardWrapper=function(n){var r=n.artifactTitleIDs,s=n.isDiffEditReviewMode,o=n.showUserStoryDiff,i=n.updateUserStoryArtifact,l=n.isUserStoryCurrentlyUpdated,u=n.artifactId,d=n.handleOpenSendDialog,c=n.handleDownloadUserStory,f=n.selectedArtifactId,y=v.useRequirementAI(),_=y.userStory,m=y.setUserStory,h=y.customStyles,p=null==h?void 0:h.userStoryCardStyles;return t.jsx("div",e.__assign({className:a.default.userStoryCardWrapper,style:null==p?void 0:p.userStoryCardWrapper},{children:_.map(function(n,a){return t.jsx(S,{isUserStoryCurrentlyUpdated:l,artifactId:u,artifactTitleId:r[a]||"",currentUserStory:n,onUserStoryChange:function(t){m(function(n){return n[a]=t,e.__spreadArray([],n,!0)})},parentIndex:"",currentIndex:"".concat(a+1),doNotShowBorderInViewMode:!0,enableDownload:!0,isDiffEditReviewMode:s,showUserStoryDiff:o,updateUserStoryArtifact:i,handleOpenSendDialog:d,handleDownloadUserStory:c,selectedArtifactId:f},n.artifactId)})}))},exports.default=S,exports.replaceLearnedTagsWithInfo=m;
|
|
2
2
|
//# sourceMappingURL=UserStoryCard.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),s=require("react/jsx-runtime"),i=require("./AtomicButton.module.css.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),s=require("react/jsx-runtime"),i=require("./AtomicButton.module.css.js"),l=require("@mui/material"),t=require("../components/RequirementAIWrapper/RequirementAIWrapper.js");exports.default=function(a){var r,o=a.onClick,n=a.isDisable,c=void 0!==n&&n,d=a.children,u=a.type,p=void 0===u?"fill":u,_=a.className,y=void 0===_?"":_,I=a.overrideStyles,m=void 0!==I&&I,b=a.style,v=a.lscUIAgent,f=t.useRequirementAI().customStyles,g="fill"===p?i.default.fill:i.default.outline,U=m?"".concat(y," ").concat(g).trim():"".concat(y," ").concat(i.default.base," ").concat(g).trim();return s.jsx(l.Button,e.__assign({className:U,onClick:o,disabled:c,style:e.__assign(e.__assign({},null==f?void 0:f.atomicButton),b),sx:e.__assign({},c&&"fill"===p&&(null===(r=null==f?void 0:f.userStoryCardStyles)||void 0===r?void 0:r.fillDisabled)?{"&.Mui-disabled":{background:"".concat(f.userStoryCardStyles.fillDisabled.backgroundColor," !important"),color:"".concat(f.userStoryCardStyles.fillDisabled.color," !important"),pointerEvents:"all !important",cursor:"".concat(f.userStoryCardStyles.fillDisabled.cursor," !important")}}:{})},v?e.__assign(e.__assign(e.__assign(e.__assign(e.__assign(e.__assign(e.__assign({},v.id?{id:v.id}:{}),v.lscUIType?{"data-lsc-ui-type":v.lscUIType}:{}),v.lscUILabel?{"data-lsc-ui-label":v.lscUILabel}:{}),v.lscUIDescription?{"data-lsc-ui-description":v.lscUIDescription}:{}),v.lscUIWhenToApply?{"data-lsc-ui-when-to-apply":v.lscUIWhenToApply}:{}),v.lscUIInteractionDelayInSeconds?{"data-lsc-ui-interaction-delay-in-seconds":v.lscUIInteractionDelayInSeconds}:{}),v.lscUIInteractBehaviorControl?{"data-lsc-ui-interact-behavior-control":v.lscUIInteractBehaviorControl}:{}):{},{children:d}))};
|
|
2
2
|
//# sourceMappingURL=AtomicButton.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e,__spreadArray as t,__awaiter as n,__generator as r}from"tslib";import{jsx as o,jsxs as l,Fragment as i}from"react/jsx-runtime";import{useState as a,useRef as s,useEffect as u}from"react";import{ExternalLink as c,Download as d,Share2 as v,Copy as y,LoaderCircle as f,PencilIcon as m,ChevronUp as p,ChevronDown as h,Info as S,Bookmark as I}from"lucide-react";import C from"showdown";import{Menu as w,MenuItem as U,Tooltip as N}from"@mui/material";import{v4 as b}from"uuid";import g from"./UserStoryCard.module.css.js";import{formatMarkdown as D,indentMarkdown as x}from"../../utils/helpers.js";import{replaceTitleSection as B}from"../../utils/user-story.utils.js";import M from"../../shared/AtomicButton.js";import k from"../RichTextEditor/RichTextEditor.js";import A from"../userstory-with-citation/UserStoryWithCitation.js";import{useRequirementAI as T}from"../RequirementAIWrapper/RequirementAIWrapper.js";function R(t){for(var n,r=[],l=/<learned>(.*?)<\/learned>/g,i=0,a=0;null!==(n=l.exec(t));){var s=n[1],u=n.index;u>i&&r.push(o("span",{children:t.slice(i,u)},"text-pre-".concat(a++))),r.push(o(N,e({title:s,placement:"top"},{children:o(S,{size:16,className:"inline-block mx-1 text-blue-500 hover:text-blue-700 cursor"})}),"tooltip-".concat(b()))),i=l.lastIndex}return i<(null==t?void 0:t.length)&&r.push(o("span",{children:t.slice(i)},"text-post-".concat(a++))),r}var j=function(t){var n,r=t.displayName,i=T().customStyles,a=null===(n=null==i?void 0:i.userStoryCardStyles)||void 0===n?void 0:n.showDisplayName;return l("div",e({className:g.displayName,style:null==a?void 0:a.wrapper},{children:[o(I,{className:g.displayNameIcon,style:null==a?void 0:a.displayNameIcon}),l("span",e({style:null==a?void 0:a.label},{children:[r,":"]}))]}))},E=function(S){var I,N,b=S.isUserStoryCurrentlyUpdated,L=S.artifactId,z=S.artifactTitleId,P=S.parentUserStory,O=S.currentUserStory,W=S.onUserStoryChange,H=S.parentIndex,V=S.currentIndex,_=S.enableDownload,q=S.isDiffEditReviewMode,F=S.showUserStoryDiff,Q=S.handleDownloadUserStory,G=S.handleOpenSendDialog,J=S.updateUserStoryArtifact,K=S.selectedArtifactId,X=T(),Y=X.searchQueryList,Z=X.citations,$=X.customStyles,ee=null==$?void 0:$.userStoryCardStyles,te=null===(I=null==$?void 0:$.userStoryScreenStyles)||void 0===I?void 0:I.userStoryContentStyles,ne=a(e(e({},structuredClone(O)),{value:D(O.value)||""})),re=ne[0],oe=ne[1],le=a({userStory:!1}),ie=le[0],ae=le[1],se=T().userStory,ue=a(""===H||K===O.artifactId),ce=ue[0],de=ue[1],ve=a(!1);ve[0];var ye=ve[1],fe=a(null),me=fe[0],pe=fe[1],he=a(!1),Se=he[0],Ie=he[1],Ce=s(null),we=a(!1);we[0];var Ue=we[1];u(function(){b&&de(b)},[b]),u(function(){oe(e(e({},structuredClone(O)),{value:D(O.value)||""}))},[O]),u(function(){Y.length>0?de(!0):K&&de(K===O.artifactId)},[Y,K,O.artifactId]);var
|
|
1
|
+
import{__assign as e,__spreadArray as t,__awaiter as n,__generator as r}from"tslib";import{jsx as o,jsxs as l,Fragment as i}from"react/jsx-runtime";import{useState as a,useRef as s,useEffect as u}from"react";import{ExternalLink as c,Download as d,Share2 as v,Copy as y,LoaderCircle as f,PencilIcon as m,ChevronUp as p,ChevronDown as h,Info as S,Bookmark as I}from"lucide-react";import C from"showdown";import{Menu as w,MenuItem as U,Tooltip as N}from"@mui/material";import{v4 as b}from"uuid";import g from"./UserStoryCard.module.css.js";import{formatMarkdown as D,indentMarkdown as x}from"../../utils/helpers.js";import{replaceTitleSection as B}from"../../utils/user-story.utils.js";import M from"../../shared/AtomicButton.js";import k from"../RichTextEditor/RichTextEditor.js";import A from"../userstory-with-citation/UserStoryWithCitation.js";import{useRequirementAI as T}from"../RequirementAIWrapper/RequirementAIWrapper.js";function R(t){for(var n,r=[],l=/<learned>(.*?)<\/learned>/g,i=0,a=0;null!==(n=l.exec(t));){var s=n[1],u=n.index;u>i&&r.push(o("span",{children:t.slice(i,u)},"text-pre-".concat(a++))),r.push(o(N,e({title:s,placement:"top"},{children:o(S,{size:16,className:"inline-block mx-1 text-blue-500 hover:text-blue-700 cursor"})}),"tooltip-".concat(b()))),i=l.lastIndex}return i<(null==t?void 0:t.length)&&r.push(o("span",{children:t.slice(i)},"text-post-".concat(a++))),r}var j=function(t){var n,r=t.displayName,i=T().customStyles,a=null===(n=null==i?void 0:i.userStoryCardStyles)||void 0===n?void 0:n.showDisplayName;return l("div",e({className:g.displayName,style:null==a?void 0:a.wrapper},{children:[o(I,{className:g.displayNameIcon,style:null==a?void 0:a.displayNameIcon}),l("span",e({style:null==a?void 0:a.label},{children:[r,":"]}))]}))},E=function(S){var I,N,b=S.isUserStoryCurrentlyUpdated,L=S.artifactId,z=S.artifactTitleId,P=S.parentUserStory,O=S.currentUserStory,W=S.onUserStoryChange,H=S.parentIndex,V=S.currentIndex,_=S.enableDownload,q=S.isDiffEditReviewMode,F=S.showUserStoryDiff,Q=S.handleDownloadUserStory,G=S.handleOpenSendDialog,J=S.updateUserStoryArtifact,K=S.selectedArtifactId,X=T(),Y=X.searchQueryList,Z=X.citations,$=X.customStyles,ee=null==$?void 0:$.userStoryCardStyles,te=null===(I=null==$?void 0:$.userStoryScreenStyles)||void 0===I?void 0:I.userStoryContentStyles,ne=a(e(e({},structuredClone(O)),{value:D(O.value)||""})),re=ne[0],oe=ne[1],le=a({userStory:!1}),ie=le[0],ae=le[1],se=T().userStory,ue=a(""===H||K===O.artifactId),ce=ue[0],de=ue[1],ve=a(!1);ve[0];var ye=ve[1],fe=a(null),me=fe[0],pe=fe[1],he=a(!1),Se=he[0],Ie=he[1],Ce=s(null),we=a(!1);we[0];var Ue=we[1],Ne=s(null);u(function(){b&&de(b)},[b]),u(function(){oe(e(e({},structuredClone(O)),{value:D(O.value)||""}))},[O]),u(function(){Y.length>0?de(!0):K&&de(K===O.artifactId)},[Y,K,O.artifactId]);var be=function(){pe(null)},ge=function(){de(function(e){return!e})};return l("div",e({className:g.card,style:null==ee?void 0:ee.cardStyle},{children:[l("div",e({className:g.titleSection,style:null==ee?void 0:ee.titleSection},{children:[l("div",e({className:g.titleRow,style:null==ee?void 0:ee.titleRow,onClick:ge},{children:[l("div",e({className:g.titleLeft,style:null==ee?void 0:ee.titleLeft,onMouseEnter:function(){return Ue(!0)},onMouseLeave:function(){return Ue(!1)}},{children:[o(j,{displayName:z}),o("h2",e({className:g.storyTitle,style:null==ee?void 0:ee.storyTitle},{children:R(O.title)}),O.artifactId)]})),l("div",e({className:g.titleActions,style:null==ee?void 0:ee.titleActions,onClick:function(e){return e.stopPropagation()}},{children:[!ie.userStory&&l(i,{children:[o("button",e({className:g.iconButton,style:null==ee?void 0:ee.iconButton,onClick:function(e){pe(e.currentTarget)}},{children:o(c,{size:16})})),l(w,e({id:"user-story-share-menu",anchorEl:me,open:!!me,onClose:function(){return pe(null)},style:null==ee?void 0:ee.userStoryShareMenu},{children:[_&&o(U,e({style:null==ee?void 0:ee.userStoryMenuItem,onClick:function(){return n(void 0,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return ye(!0),Q?[4,Promise.all([Q("pdf"),Q("doc")])]:[2];case 1:return e.sent(),ye(!1),[2]}})})}},{children:l("div",e({ref:Ce,className:g.menuItemContent,style:null==ee?void 0:ee.menuItemContent},{children:[o(d,{size:16,color:null==ee?void 0:ee.menuIconColor}),o("p",e({style:null==ee?void 0:ee.menuLabel},{children:"Download"}))]}))})),o(U,e({style:null==ee?void 0:ee.userStoryMenuItem,onClick:function(){return n(void 0,void 0,void 0,function(){var t;return r(this,function(n){return t=O,P&&(t=e(e({},O),{value:"".concat(B(null==P?void 0:P.value,O.title)," \n").concat(O.value)})),null==G||G(!0,[t],O.artifactId),be(),[2]})})}},{children:l("div",e({style:null==ee?void 0:ee.menuItemContent,className:g.menuItemContentPadded},{children:[o(v,{size:16,color:null==ee?void 0:ee.menuIconColor}),o("p",e({style:null==ee?void 0:ee.menuLabel},{children:"Send"}))]}))})),o(U,e({style:null==ee?void 0:ee.userStoryMenuItem,onClick:function(){return n(void 0,void 0,void 0,function(){var e,t,n,o,l;return r(this,function(r){switch(r.label){case 0:e=new C.Converter,t=e.makeHtml(D(O.value)||O.value),n=function(e){var t=(new C.Converter).makeHtml(e),n=document.createElement("div");return n.innerHTML=t,n.textContent||n.innerText||""}(D(O.value)||O.value),o=new ClipboardItem({"text/plain":new Blob([n],{type:"text/plain"}),"text/html":new Blob([t],{type:"text/html"})}),r.label=1;case 1:return r.trys.push([1,3,4,5]),[4,navigator.clipboard.write([o])];case 2:return r.sent(),console.log("Copied User Story"),[3,5];case 3:return l=r.sent(),console.error("Failed to copy user story:",l),[3,5];case 4:return be(),[7];case 5:return[2]}})})}},{children:l("div",e({style:null==ee?void 0:ee.menuItemContent,className:g.menuItemContentPadded},{children:[o(y,{size:16,color:null==ee?void 0:ee.menuIconColor}),o("p",e({style:null==ee?void 0:ee.menuLabel},{children:"Copy"}))]}))}))]}))]}),ie.userStory&&ce?o(M,{isDisable:Se,type:"outline",children:"Cancel",style:null==ee?void 0:ee.cancelButton,onClick:function(){var t;null===(t=Ne.current)||void 0===t||t.abort(),ae(function(t){return e(e({},t),{userStory:!1})})}}):o(i,{}),ie.userStory&&ce?o(M,{type:"fill",children:Se?l("span",e({className:g.savingSpinner},{children:[o(f,{className:g.spinAnimation}),o("span",{children:"Saving..."})]})):"Save",isDisable:Se,style:null==ee?void 0:ee.saveButton,onClick:function(){return n(void 0,void 0,void 0,function(){var t;return r(this,function(n){switch(n.label){case 0:return Ie(!0),"userStory"==="userStory"&&(W(re),console.log("I am changing RTE editor values",re)),[4,J(Z,se,L,null===(t=Ne.current)||void 0===t?void 0:t.signal)];case 1:return n.sent(),ae(function(t){return e(e({},t),{userStory:!1})}),Ie(!1),[2]}})})}}):!q&&!F&&ce&&o("button",e({className:g.iconButton,style:null==ee?void 0:ee.editButton,onClick:function(){return ae(function(t){return e(e({},t),{userStory:!0})})}},{children:o(m,{color:null==ee?void 0:ee.pencilIconColor,size:16})})),o("button",e({type:"button",onClick:function(e){e.stopPropagation(),ge()},style:null==ee?void 0:ee.chevronButton,className:g.chevronButton},{children:o(ce?p:h,{className:g.chevronIcon,color:null==ee?void 0:ee.chevronIconColor})}))]}))]})),o("div",{className:g.divider,style:null==ee?void 0:ee.dividerStyle})]})),ce&&o("div",e({className:g.cardContent,style:null==ee?void 0:ee.cardContentStyle},{children:l("div",e({className:g.contentInner,style:null==ee?void 0:ee.contentInner},{children:[l("div",e({className:g.descriptionSection,style:null==ee?void 0:ee.descriptionSection},{children:[o("div",{className:g.justifyBetween,style:null==ee?void 0:ee.justifyBetween}),ie.userStory?o(k,{minHeight:"100%",height:"100%",type:"string",value:D(O.value)||"",handleUpdateState:function(t,n){var r=x(n);oe(function(t){return e(e({},t),{value:r||""})})},doNotShowBorderInViewMode:!1,onBlur:function(){},mode:ie.userStory?"edit":"readOnly"}):o(A,{showUserStoryDiff:F,isParent:""===H,message:D(O.value)||"",artifactId:O.artifactId,customStyles:te})]})),null===(N=re.sub_features)||void 0===N?void 0:N.map(function(n,r){return o(E,{artifactId:L,isUserStoryCurrentlyUpdated:b,artifactTitleId:"".concat(z,"-").concat(String.fromCharCode(65+r)),parentUserStory:O,parentIndex:"".concat(H).concat(H&&".").concat(V),currentIndex:"".concat(r+1),doNotShowBorderInViewMode:!1,currentUserStory:n,onUserStoryChange:function(n){return function(n,r){var o=t([],O.sub_features||[],!0);o[n]=r,W(e(e({},O),{sub_features:o}))}(r,n)},enableDownload:!0,isDiffEditReviewMode:q,showUserStoryDiff:F,updateUserStoryArtifact:J,handleDownloadUserStory:Q,handleOpenSendDialog:G},n.artifactId)})]}))}))]}))},L=function(n){var r=n.artifactTitleIDs,l=n.isDiffEditReviewMode,i=n.showUserStoryDiff,a=n.updateUserStoryArtifact,s=n.isUserStoryCurrentlyUpdated,u=n.artifactId,c=n.handleOpenSendDialog,d=n.handleDownloadUserStory,v=n.selectedArtifactId,y=T(),f=y.userStory,m=y.setUserStory,p=y.customStyles,h=null==p?void 0:p.userStoryCardStyles;return o("div",e({className:g.userStoryCardWrapper,style:null==h?void 0:h.userStoryCardWrapper},{children:f.map(function(e,n){return o(E,{isUserStoryCurrentlyUpdated:s,artifactId:u,artifactTitleId:r[n]||"",currentUserStory:e,onUserStoryChange:function(e){m(function(r){return r[n]=e,t([],r,!0)})},parentIndex:"",currentIndex:"".concat(n+1),doNotShowBorderInViewMode:!0,enableDownload:!0,isDiffEditReviewMode:l,showUserStoryDiff:i,updateUserStoryArtifact:a,handleOpenSendDialog:c,handleDownloadUserStory:d,selectedArtifactId:v},e.artifactId)})}))};export{E as StoryCard,L as UserStoryCardWrapper,E as default,R as replaceLearnedTagsWithInfo};
|
|
2
2
|
//# sourceMappingURL=UserStoryCard.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as l}from"tslib";import{jsx as t}from"react/jsx-runtime";import
|
|
1
|
+
import{__assign as l}from"tslib";import{jsx as t}from"react/jsx-runtime";import o from"./AtomicButton.module.css.js";import{Button as i}from"@mui/material";import{useRequirementAI as e}from"../components/RequirementAIWrapper/RequirementAIWrapper.js";var r=function(r){var a,c=r.onClick,s=r.isDisable,n=void 0!==s&&s,d=r.children,u=r.type,p=void 0===u?"fill":u,m=r.className,y=void 0===m?"":m,I=r.overrideStyles,b=void 0!==I&&I,f=r.style,v=r.lscUIAgent,U=e().customStyles,S="fill"===p?o.fill:o.outline,C=b?"".concat(y," ").concat(S).trim():"".concat(y," ").concat(o.base," ").concat(S).trim();return t(i,l({className:C,onClick:c,disabled:n,style:l(l({},null==U?void 0:U.atomicButton),f),sx:l({},n&&"fill"===p&&(null===(a=null==U?void 0:U.userStoryCardStyles)||void 0===a?void 0:a.fillDisabled)?{"&.Mui-disabled":{background:"".concat(U.userStoryCardStyles.fillDisabled.backgroundColor," !important"),color:"".concat(U.userStoryCardStyles.fillDisabled.color," !important"),pointerEvents:"all !important",cursor:"".concat(U.userStoryCardStyles.fillDisabled.cursor," !important")}}:{})},v?l(l(l(l(l(l(l({},v.id?{id:v.id}:{}),v.lscUIType?{"data-lsc-ui-type":v.lscUIType}:{}),v.lscUILabel?{"data-lsc-ui-label":v.lscUILabel}:{}),v.lscUIDescription?{"data-lsc-ui-description":v.lscUIDescription}:{}),v.lscUIWhenToApply?{"data-lsc-ui-when-to-apply":v.lscUIWhenToApply}:{}),v.lscUIInteractionDelayInSeconds?{"data-lsc-ui-interaction-delay-in-seconds":v.lscUIInteractionDelayInSeconds}:{}),v.lscUIInteractBehaviorControl?{"data-lsc-ui-interact-behavior-control":v.lscUIInteractBehaviorControl}:{}):{},{children:d}))};export{r as default};
|
|
2
2
|
//# sourceMappingURL=AtomicButton.js.map
|
|
@@ -17,7 +17,7 @@ interface StoryCardProps {
|
|
|
17
17
|
showUserStoryDiff: boolean;
|
|
18
18
|
handleDownloadUserStory?: (filetype: "pdf" | "doc") => Promise<void>;
|
|
19
19
|
handleOpenSendDialog?: (sendEmailDialog: boolean, userStoryToSend: IUserStory[], artifactId: string, initSelectedEmails?: string[], autoSendEmail?: boolean) => void;
|
|
20
|
-
updateUserStoryArtifact: (citationsObj: UserStoryCitations | null, userStoryWithCitations: IUserStory[], artifactId: string) => Promise<any>;
|
|
20
|
+
updateUserStoryArtifact: (citationsObj: UserStoryCitations | null, userStoryWithCitations: IUserStory[], artifactId: string, signal?: AbortSignal) => Promise<any>;
|
|
21
21
|
selectedArtifactId?: string;
|
|
22
22
|
}
|
|
23
23
|
export declare function replaceLearnedTagsWithInfo(content: string): React.ReactNode[];
|
|
@@ -28,7 +28,7 @@ interface IProps {
|
|
|
28
28
|
artifactTitleIDs: string[];
|
|
29
29
|
isDiffEditReviewMode: boolean;
|
|
30
30
|
showUserStoryDiff: boolean;
|
|
31
|
-
updateUserStoryArtifact: (citationsObj: UserStoryCitations | null, userStoryWithCitations: IUserStory[], artifactId: string) => Promise<any>;
|
|
31
|
+
updateUserStoryArtifact: (citationsObj: UserStoryCitations | null, userStoryWithCitations: IUserStory[], artifactId: string, signal?: AbortSignal) => Promise<any>;
|
|
32
32
|
handleOpenSendDialog?: (sendEmailDialog: boolean, userStoryToSend: IUserStory[], artifactId: string, initSelectedEmails?: string[], autoSendEmail?: boolean) => void;
|
|
33
33
|
handleDownloadUserStory?: (filetype: "pdf" | "doc") => Promise<void>;
|
|
34
34
|
selectedArtifactId?: string;
|
package/dist/types/src/features/RequirementAI/components/UserStoryCard/UserStoryCard.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserStoryCard.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/UserStoryCard/UserStoryCard.tsx"],"names":[],"mappings":";AAiBA,OAAO,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AAOlE,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAIzE,UAAU,cAAc;IACpB,2BAA2B,CAAC,EAAE,OAAO,CAAC;IACtC,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,UAAU,CAAC;IAC7B,gBAAgB,EAAE,UAAU,CAAC;IAC7B,iBAAiB,EAAE,CAAC,UAAU,EAAE,UAAU,KAAK,IAAI,CAAC;IACpD,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,yBAAyB,EAAE,OAAO,CAAC;IACnC,cAAc,EAAE,OAAO,CAAC;IACxB,eAAe,EAAE,MAAM,CAAC;IACxB,oBAAoB,EAAE,OAAO,CAAC;IAC9B,2CAA2C;IAC3C,iBAAiB,EAAE,OAAO,CAAC;IAC3B,uBAAuB,CAAC,EAAE,CAAC,QAAQ,EAAE,KAAK,GAAG,KAAK,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACrE,oBAAoB,CAAC,EAAE,CAAC,eAAe,EAAE,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,EAAE,UAAU,EAAE,MAAM,EAAE,kBAAkB,CAAC,EAAE,MAAM,EAAE,EAAE,aAAa,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IACrK,uBAAuB,EAAE,CAAC,YAAY,EAAE,kBAAkB,GAAG,IAAI,EAAE,sBAAsB,EAAE,UAAU,EAAE,EAAE,UAAU,EAAE,MAAM,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"UserStoryCard.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/UserStoryCard/UserStoryCard.tsx"],"names":[],"mappings":";AAiBA,OAAO,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AAOlE,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAIzE,UAAU,cAAc;IACpB,2BAA2B,CAAC,EAAE,OAAO,CAAC;IACtC,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,UAAU,CAAC;IAC7B,gBAAgB,EAAE,UAAU,CAAC;IAC7B,iBAAiB,EAAE,CAAC,UAAU,EAAE,UAAU,KAAK,IAAI,CAAC;IACpD,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,yBAAyB,EAAE,OAAO,CAAC;IACnC,cAAc,EAAE,OAAO,CAAC;IACxB,eAAe,EAAE,MAAM,CAAC;IACxB,oBAAoB,EAAE,OAAO,CAAC;IAC9B,2CAA2C;IAC3C,iBAAiB,EAAE,OAAO,CAAC;IAC3B,uBAAuB,CAAC,EAAE,CAAC,QAAQ,EAAE,KAAK,GAAG,KAAK,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACrE,oBAAoB,CAAC,EAAE,CAAC,eAAe,EAAE,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,EAAE,UAAU,EAAE,MAAM,EAAE,kBAAkB,CAAC,EAAE,MAAM,EAAE,EAAE,aAAa,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IACrK,uBAAuB,EAAE,CAAC,YAAY,EAAE,kBAAkB,GAAG,IAAI,EAAE,sBAAsB,EAAE,UAAU,EAAE,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,WAAW,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;IACnK,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC/B;AAID,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,EAAE,CAwC7E;AAkBD,eAAO,MAAM,SAAS,uSAgBnB,cAAc,4CAoUhB,CAAC;AAEF,UAAU,MAAM;IACZ,2BAA2B,CAAC,EAAE,OAAO,CAAC;IACtC,UAAU,EAAE,MAAM,CAAC;IACnB,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B,oBAAoB,EAAE,OAAO,CAAC;IAC9B,iBAAiB,EAAE,OAAO,CAAC;IAC3B,uBAAuB,EAAE,CAAC,YAAY,EAAE,kBAAkB,GAAG,IAAI,EAAE,sBAAsB,EAAE,UAAU,EAAE,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,CAAC,EAAG,WAAW,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;IACpK,oBAAoB,CAAC,EAAE,CAAC,eAAe,EAAE,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,EAAE,UAAU,EAAE,MAAM,EAAE,kBAAkB,CAAC,EAAE,MAAM,EAAE,EAAE,aAAa,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IACrK,uBAAuB,CAAC,EAAE,CAAC,QAAQ,EAAE,KAAK,GAAG,KAAK,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACrE,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED,eAAO,MAAM,oBAAoB,uMAAwM,MAAM,4CAiC9O,CAAA;AAED,eAAe,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AtomicButton.d.ts","sourceRoot":"","sources":["../../../../../../src/features/RequirementAI/shared/AtomicButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,UAAU,iBAAiB;IACzB,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC,CAAC;IAC7D,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,UAAU,CAAC,EAAE;QACX,EAAE,CAAC,EAAE,MAAM,CAAC;QACZ,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAC1B,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAC1B,8BAA8B,CAAC,EAAE,MAAM,CAAC;QACxC,4BAA4B,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;KAC/C,CAAC;CACH;AAED,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,
|
|
1
|
+
{"version":3,"file":"AtomicButton.d.ts","sourceRoot":"","sources":["../../../../../../src/features/RequirementAI/shared/AtomicButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,UAAU,iBAAiB;IACzB,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC,CAAC;IAC7D,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,UAAU,CAAC,EAAE;QACX,EAAE,CAAC,EAAE,MAAM,CAAC;QACZ,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAC1B,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAC1B,8BAA8B,CAAC,EAAE,MAAM,CAAC;QACxC,4BAA4B,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;KAC/C,CAAC;CACH;AAED,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CA2E7C,CAAC;AAEF,eAAe,YAAY,CAAC"}
|