@e-llm-studio/requirement-ai 0.0.90 → 0.0.92
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/components/UserStoryCard/UserStoryCard.module.css.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/AppmodCitationContent.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/AppmodCitationRenderer.js +1 -1
- package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.js +1 -1
- package/dist/cjs/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.js +1 -1
- package/dist/features/RequirementAI/components/UserStoryCard/UserStoryCard.js +1 -1
- package/dist/features/RequirementAI/components/UserStoryCard/UserStoryCard.module.css.js +1 -1
- package/dist/features/RequirementAI/components/citations/appmod-citation/AppmodCitationContent.js +1 -1
- package/dist/features/RequirementAI/components/citations/appmod-citation/AppmodCitationRenderer.js +1 -1
- package/dist/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.js +1 -1
- package/dist/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.js +1 -1
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/UserStoryCard.d.ts +2 -1
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/UserStoryCard.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/citations/appmod-citation/AppmodCitationContent.d.ts +1 -0
- package/dist/types/src/features/RequirementAI/components/citations/appmod-citation/AppmodCitationContent.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/citations/appmod-citation/AppmodCitationRenderer.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/citations/appmod-citation/types.d.ts +1 -0
- package/dist/types/src/features/RequirementAI/components/citations/appmod-citation/types.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.d.ts +2 -1
- package/dist/types/src/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/types/gapFilterStyles.type.d.ts +1 -0
- package/dist/types/src/features/RequirementAI/types/gapFilterStyles.type.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"),i=require("@mui/material"),a=require("uuid"),o=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 h(n){for(var s,o=[],l=/<learned>(.*?)<\/learned>/g,u=0,d=0;null!==(s=l.exec(n));){var c=s[1],f=s.index;f>u&&o.push(t.jsx("span",{children:n.slice(u,f)},"text-pre-".concat(d++))),o.push(t.jsx(i.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(a.v4()))),u=l.lastIndex}return u<(null==n?void 0:n.length)&&o.push(t.jsx("span",{children:n.slice(u)},"text-post-".concat(d++))),o}var m=function(n){var s,i=n.displayName,a=v.useRequirementAI().customStyles,l=null===(s=null==a?void 0:a.userStoryCardStyles)||void 0===s?void 0:s.showDisplayName;return t.jsxs("div",e.__assign({className:o.default.displayName,style:null==l?void 0:l.wrapper},{children:[t.jsx(r.Bookmark,{className:o.default.displayNameIcon,style:null==l?void 0:l.displayNameIcon}),t.jsxs("span",e.__assign({style:null==l?void 0:l.label},{children:[i,":"]}))]}))},p=function(s){var a,y,g=s.isUserStoryCurrentlyUpdated,S=s.artifactId,x=s.artifactTitleId,j=s.parentUserStory,I=s.currentUserStory,C=s.onUserStoryChange,w=s.parentIndex,N=s.currentIndex,U=s.enableDownload,b=s.isDiffEditReviewMode,D=s.showUserStoryDiff,M=s.handleDownloadUserStory,k=s.handleOpenSendDialog,B=s.updateUserStoryArtifact,q=s.selectedArtifactId,A=s.elementDisplayConfig,R=v.useRequirementAI(),E=R.searchQueryList,T=R.citations,L=R.customStyles,z=null==L?void 0:L.userStoryCardStyles,P=null===(a=null==L?void 0:L.userStoryScreenStyles)||void 0===a?void 0:a.userStoryContentStyles,W=n.useState(e.__assign(e.__assign({},structuredClone(I)),{value:l.formatMarkdown(I.value)||""})),H=W[0],O=W[1],F=n.useState({userStory:!1}),V=F[0],Q=F[1],G=v.useRequirementAI().userStory,J=n.useState(""===w||q===I.artifactId),K=J[0],X=J[1],Y=n.useState(!1);Y[0];var Z=Y[1],$=n.useState(null),ee=$[0],te=$[1],ne=n.useState(!1),re=ne[0],se=ne[1],ie=n.useRef(null),ae=n.useState(!1);ae[0];var oe=ae[1],le=n.useRef(null);n.useEffect(function(){g&&X(g)},[g]),n.useEffect(function(){O(e.__assign(e.__assign({},structuredClone(I)),{value:l.formatMarkdown(I.value)||""}))},[I]),n.useEffect(function(){E.length>0?X(!0):q&&X(q===I.artifactId)},[E,q,I.artifactId]);var ue=function(){te(null)},de=function(){X(function(e){return!e})};return t.jsxs("div",e.__assign({className:o.default.card,style:null==z?void 0:z.cardStyle},{children:[t.jsxs("div",e.__assign({className:o.default.titleSection,style:null==z?void 0:z.titleSection},{children:[t.jsxs("div",e.__assign({className:o.default.titleRow,style:null==z?void 0:z.titleRow,onClick:de},{children:[t.jsxs("div",e.__assign({className:o.default.titleLeft,style:null==z?void 0:z.titleLeft,onMouseEnter:function(){return oe(!0)},onMouseLeave:function(){return oe(!1)}},{children:[t.jsx(m,{displayName:x}),t.jsx("h2",e.__assign({className:o.default.storyTitle,style:null==z?void 0:z.storyTitle},{children:h(I.title)}),I.artifactId)]})),t.jsxs("div",e.__assign({className:o.default.titleActions,style:null==z?void 0:z.titleActions,onClick:function(e){return e.stopPropagation()}},{children:[!V.userStory&&t.jsxs(t.Fragment,{children:[!1!==(null==A?void 0:A.showShareButton)&&t.jsx("button",e.__assign({className:o.default.iconButton,style:null==z?void 0:z.iconButton,onClick:function(e){te(e.currentTarget)}},{children:t.jsx(r.ExternalLink,{size:16})})),t.jsxs(i.Menu,e.__assign({id:"user-story-share-menu",anchorEl:ee,open:!!ee,onClose:function(){return te(null)},style:null==z?void 0:z.userStoryShareMenu},{children:[U&&t.jsx(i.MenuItem,e.__assign({style:null==z?void 0:z.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 Z(!0),M?[4,Promise.all([M("pdf"),M("doc")])]:[2];case 1:return e.sent(),Z(!1),[2]}})})}},{children:t.jsxs("div",e.__assign({ref:ie,className:o.default.menuItemContent,style:null==z?void 0:z.menuItemContent},{children:[t.jsx(r.Download,{size:16,color:null==z?void 0:z.menuIconColor}),t.jsx("p",e.__assign({style:null==z?void 0:z.menuLabel},{children:"Download"}))]}))})),t.jsx(i.MenuItem,e.__assign({style:null==z?void 0:z.userStoryMenuItem,onClick:function(){return e.__awaiter(void 0,void 0,void 0,function(){var t;return e.__generator(this,function(n){return t=I,j&&(t=e.__assign(e.__assign({},I),{value:"".concat(u.replaceTitleSection(null==j?void 0:j.value,I.title)," \n").concat(I.value)})),null==k||k(!0,[t],I.artifactId),ue(),[2]})})}},{children:t.jsxs("div",e.__assign({style:null==z?void 0:z.menuItemContent,className:o.default.menuItemContentPadded},{children:[t.jsx(r.Share2,{size:16,color:null==z?void 0:z.menuIconColor}),t.jsx("p",e.__assign({style:null==z?void 0:z.menuLabel},{children:"Send"}))]}))})),t.jsx(i.MenuItem,e.__assign({style:null==z?void 0:z.userStoryMenuItem,onClick:function(){return e.__awaiter(void 0,void 0,void 0,function(){var t,n,r,s,i;return e.__generator(this,function(e){switch(e.label){case 0:t=new _.default.Converter,n=t.makeHtml(l.formatMarkdown(I.value)||I.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(I.value)||I.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 i=e.sent(),console.error("Failed to copy user story:",i),[3,5];case 4:return ue(),[7];case 5:return[2]}})})}},{children:t.jsxs("div",e.__assign({style:null==z?void 0:z.menuItemContent,className:o.default.menuItemContentPadded},{children:[t.jsx(r.Copy,{size:16,color:null==z?void 0:z.menuIconColor}),t.jsx("p",e.__assign({style:null==z?void 0:z.menuLabel},{children:"Copy"}))]}))}))]}))]}),V.userStory&&K?t.jsx(d.default,{type:"outline",children:"Cancel",style:null==z?void 0:z.cancelButton,onClick:function(){var t;null===(t=le.current)||void 0===t||t.abort(),Q(function(t){return e.__assign(e.__assign({},t),{userStory:!1})})}}):t.jsx(t.Fragment,{}),V.userStory&&K?t.jsx(d.default,{type:"fill",children:re?t.jsxs("span",e.__assign({className:o.default.savingSpinner},{children:[t.jsx(r.LoaderCircle,{className:o.default.spinAnimation}),t.jsx("span",{children:"Saving..."})]})):"Save",isDisable:re,style:re?null==z?void 0:z.savingButton:null==z?void 0:z.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 se(!0),"userStory"==="userStory"&&(C(H),console.log("I am changing RTE editor values",H)),[4,B(T,G,S,null===(t=le.current)||void 0===t?void 0:t.signal)];case 1:return n.sent(),Q(function(t){return e.__assign(e.__assign({},t),{userStory:!1})}),se(!1),[2]}})})}}):!b&&!D&&K&&!1!==(null==A?void 0:A.showEditButton)&&t.jsx("button",e.__assign({className:o.default.iconButton,style:null==z?void 0:z.editButton,onClick:function(){return Q(function(t){return e.__assign(e.__assign({},t),{userStory:!0})})}},{children:t.jsx(r.PencilIcon,{color:null==z?void 0:z.pencilIconColor,size:16})})),t.jsx("button",e.__assign({type:"button",onClick:function(e){e.stopPropagation(),de()},style:null==z?void 0:z.chevronButton,className:o.default.chevronButton},{children:K?t.jsx(r.ChevronUp,{className:o.default.chevronIcon,color:null==z?void 0:z.chevronIconColor}):t.jsx(r.ChevronDown,{className:o.default.chevronIcon,color:null==z?void 0:z.chevronIconColor})}))]}))]})),t.jsx("div",{className:o.default.divider,style:null==z?void 0:z.dividerStyle})]})),K&&t.jsx("div",e.__assign({className:o.default.cardContent,style:null==z?void 0:z.cardContentStyle},{children:t.jsxs("div",e.__assign({className:o.default.contentInner,style:null==z?void 0:z.contentInner},{children:[t.jsxs("div",e.__assign({className:o.default.descriptionSection,style:null==z?void 0:z.descriptionSection},{children:[t.jsx("div",{className:o.default.justifyBetween,style:null==z?void 0:z.justifyBetween}),V.userStory?t.jsx(c.default,{minHeight:"100%",height:"100%",type:"string",value:l.formatMarkdown(I.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:V.userStory?"edit":"readOnly"}):t.jsx(f.default,{showUserStoryDiff:D,isParent:""===w,message:l.formatMarkdown(I.value)||"",artifactId:I.artifactId,customStyles:P})]})),null===(y=H.sub_features)||void 0===y?void 0:y.map(function(n,r){return t.jsx(p,{artifactId:S,isUserStoryCurrentlyUpdated:g,artifactTitleId:"".concat(x,"-").concat(String.fromCharCode(65+r)),parentUserStory:I,parentIndex:"".concat(w).concat(w&&".").concat(N),currentIndex:"".concat(r+1),doNotShowBorderInViewMode:!1,currentUserStory:n,onUserStoryChange:function(t){return function(t,n){var r=e.__spreadArray([],I.sub_features||[],!0);r[t]=n,C(e.__assign(e.__assign({},I),{sub_features:r}))}(r,t)},enableDownload:!0,isDiffEditReviewMode:b,showUserStoryDiff:D,updateUserStoryArtifact:B,handleDownloadUserStory:M,handleOpenSendDialog:k,elementDisplayConfig:A},n.artifactId)})]}))}))]}))};exports.StoryCard=p,exports.UserStoryCardWrapper=function(n){var s=n.artifactTitleIDs,i=n.isDiffEditReviewMode,a=n.showUserStoryDiff,l=n.updateUserStoryArtifact,u=n.isUserStoryCurrentlyUpdated,d=n.artifactId,c=n.handleOpenSendDialog,f=n.handleDownloadUserStory,y=n.selectedArtifactId,_=n.isDisplayHighlightControl,h=n.elementDisplayConfig,m=v.useRequirementAI(),g=m.userStory,S=m.setUserStory,x=m.customStyles,j=m.searchQueryList,I=m.currentHighlightIndex,C=m.setCurrentHighlightIndex,w=null==x?void 0:x.userStoryCardStyles;return t.jsxs("div",e.__assign({className:o.default.userStoryCardWrapper,style:_?e.__assign(e.__assign({},null==w?void 0:w.userStoryCardWrapper),{position:"relative"}):null==w?void 0:w.userStoryCardWrapper},{children:[_&&t.jsx(t.Fragment,{children:j.length>1&&t.jsx("div",e.__assign({className:o.default.wrapper},{children:t.jsxs("div",e.__assign({className:o.default.navigationContainer},{children:[t.jsx("button",e.__assign({onClick:function(){C(function(e){return 0===e?j.length-1:e-1})},className:o.default.navButton},{children:t.jsx(r.ChevronUpIcon,{size:20,className:o.default.navIcon})})),t.jsxs("span",e.__assign({className:o.default.navCounter},{children:[I+1,"/",j.length]})),t.jsx("button",e.__assign({onClick:function(){C(function(e){return e===j.length-1?0:e+1})},className:o.default.navButton},{children:t.jsx(r.ChevronDownIcon,{size:20,className:o.default.navIcon})}))]}))}))}),g.map(function(n,r){return t.jsx(p,{isUserStoryCurrentlyUpdated:u,artifactId:d,artifactTitleId:s[r]||"",currentUserStory:n,onUserStoryChange:function(t){S(function(n){return n[r]=t,e.__spreadArray([],n,!0)})},parentIndex:"",currentIndex:"".concat(r+1),doNotShowBorderInViewMode:!0,enableDownload:!0,isDiffEditReviewMode:i,showUserStoryDiff:a,updateUserStoryArtifact:l,handleOpenSendDialog:c,handleDownloadUserStory:f,selectedArtifactId:y,elementDisplayConfig:h},n.artifactId)})]}))},exports.default=p,exports.replaceLearnedTagsWithInfo=h;
|
|
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"),i=require("@mui/material"),a=require("uuid"),l=require("./UserStoryCard.module.css.js"),o=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 h=y(s);function _(n){for(var s,l=[],o=/<learned>(.*?)<\/learned>/g,u=0,d=0;null!==(s=o.exec(n));){var c=s[1],f=s.index;f>u&&l.push(t.jsx("span",{children:n.slice(u,f)},"text-pre-".concat(d++))),l.push(t.jsx(i.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(a.v4()))),u=o.lastIndex}return u<(null==n?void 0:n.length)&&l.push(t.jsx("span",{children:n.slice(u)},"text-post-".concat(d++))),l}var m=function(n){var s,i=n.displayName,a=v.useRequirementAI().customStyles,o=null===(s=null==a?void 0:a.userStoryCardStyles)||void 0===s?void 0:s.showDisplayName;return t.jsxs("div",e.__assign({className:l.default.displayName,style:null==o?void 0:o.wrapper},{children:[t.jsx(r.Bookmark,{className:l.default.displayNameIcon,style:null==o?void 0:o.displayNameIcon}),t.jsxs("span",e.__assign({style:null==o?void 0:o.label},{children:[i,":"]}))]}))},g=function(s){var a,y,p=s.isUserStoryCurrentlyUpdated,S=s.artifactId,x=s.artifactTitleId,C=s.parentUserStory,j=s.currentUserStory,I=s.onUserStoryChange,w=s.parentIndex,N=s.currentIndex,U=s.enableDownload,D=s.isDiffEditReviewMode,b=s.showUserStoryDiff,M=s.handleDownloadUserStory,k=s.handleOpenSendDialog,B=s.updateUserStoryArtifact,q=s.selectedArtifactId,A=s.isDisplayHighlightControl,R=s.elementDisplayConfig,E=v.useRequirementAI(),T=E.searchQueryList,L=E.citations,H=E.customStyles,z=null==H?void 0:H.userStoryCardStyles,P=null===(a=null==H?void 0:H.userStoryScreenStyles)||void 0===a?void 0:a.userStoryContentStyles,W=n.useState(e.__assign(e.__assign({},structuredClone(j)),{value:o.formatMarkdown(j.value)||""})),O=W[0],F=W[1],V=n.useState({userStory:!1}),Q=V[0],G=V[1],J=v.useRequirementAI().userStory,K=n.useState(""===w||q===j.artifactId),X=K[0],Y=K[1],Z=n.useState(!1);Z[0];var $=Z[1],ee=n.useState(null),te=ee[0],ne=ee[1],re=n.useState(!1),se=re[0],ie=re[1],ae=n.useRef(null),le=n.useState(!1);le[0];var oe=le[1],ue=n.useRef(null);n.useEffect(function(){p&&Y(p)},[p]),n.useEffect(function(){F(e.__assign(e.__assign({},structuredClone(j)),{value:o.formatMarkdown(j.value)||""}))},[j]),n.useEffect(function(){T.length>0?Y(!0):q&&Y(q===j.artifactId)},[T,q,j.artifactId]);var de=function(){ne(null)},ce=function(){Y(function(e){return!e})};return t.jsxs("div",e.__assign({className:l.default.card,style:null==z?void 0:z.cardStyle},{children:[t.jsxs("div",e.__assign({className:l.default.titleSection,style:null==z?void 0:z.titleSection},{children:[t.jsxs("div",e.__assign({className:l.default.titleRow,style:null==z?void 0:z.titleRow,onClick:ce},{children:[t.jsxs("div",e.__assign({className:l.default.titleLeft,style:null==z?void 0:z.titleLeft,onMouseEnter:function(){return oe(!0)},onMouseLeave:function(){return oe(!1)}},{children:[t.jsx(m,{displayName:x}),t.jsx("h2",e.__assign({className:l.default.storyTitle,style:null==z?void 0:z.storyTitle},{children:_(j.title)}),j.artifactId)]})),t.jsxs("div",e.__assign({className:l.default.titleActions,style:null==z?void 0:z.titleActions,onClick:function(e){return e.stopPropagation()}},{children:[!Q.userStory&&t.jsxs(t.Fragment,{children:[!1!==(null==R?void 0:R.showShareButton)&&t.jsx("button",e.__assign({className:l.default.iconButton,style:null==z?void 0:z.iconButton,onClick:function(e){ne(e.currentTarget)}},{children:t.jsx(r.ExternalLink,{size:16})})),t.jsxs(i.Menu,e.__assign({id:"user-story-share-menu",anchorEl:te,open:!!te,onClose:function(){return ne(null)},style:null==z?void 0:z.userStoryShareMenu},{children:[U&&t.jsx(i.MenuItem,e.__assign({style:null==z?void 0:z.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 $(!0),M?[4,Promise.all([M("pdf"),M("doc")])]:[2];case 1:return e.sent(),$(!1),[2]}})})}},{children:t.jsxs("div",e.__assign({ref:ae,className:l.default.menuItemContent,style:null==z?void 0:z.menuItemContent},{children:[t.jsx(r.Download,{size:16,color:null==z?void 0:z.menuIconColor}),t.jsx("p",e.__assign({style:null==z?void 0:z.menuLabel},{children:"Download"}))]}))})),t.jsx(i.MenuItem,e.__assign({style:null==z?void 0:z.userStoryMenuItem,onClick:function(){return e.__awaiter(void 0,void 0,void 0,function(){var t;return e.__generator(this,function(n){return t=j,C&&(t=e.__assign(e.__assign({},j),{value:"".concat(u.replaceTitleSection(null==C?void 0:C.value,j.title)," \n").concat(j.value)})),null==k||k(!0,[t],j.artifactId),de(),[2]})})}},{children:t.jsxs("div",e.__assign({style:null==z?void 0:z.menuItemContent,className:l.default.menuItemContentPadded},{children:[t.jsx(r.Share2,{size:16,color:null==z?void 0:z.menuIconColor}),t.jsx("p",e.__assign({style:null==z?void 0:z.menuLabel},{children:"Send"}))]}))})),t.jsx(i.MenuItem,e.__assign({style:null==z?void 0:z.userStoryMenuItem,onClick:function(){return e.__awaiter(void 0,void 0,void 0,function(){var t,n,r,s,i;return e.__generator(this,function(e){switch(e.label){case 0:t=new h.default.Converter,n=t.makeHtml(o.formatMarkdown(j.value)||j.value),r=function(e){var t=(new h.default.Converter).makeHtml(e),n=document.createElement("div");return n.innerHTML=t,n.textContent||n.innerText||""}(o.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 i=e.sent(),console.error("Failed to copy user story:",i),[3,5];case 4:return de(),[7];case 5:return[2]}})})}},{children:t.jsxs("div",e.__assign({style:null==z?void 0:z.menuItemContent,className:l.default.menuItemContentPadded},{children:[t.jsx(r.Copy,{size:16,color:null==z?void 0:z.menuIconColor}),t.jsx("p",e.__assign({style:null==z?void 0:z.menuLabel},{children:"Copy"}))]}))}))]}))]}),Q.userStory&&X?t.jsx(d.default,{type:"outline",children:"Cancel",style:null==z?void 0:z.cancelButton,onClick:function(){var t;null===(t=ue.current)||void 0===t||t.abort(),G(function(t){return e.__assign(e.__assign({},t),{userStory:!1})})}}):t.jsx(t.Fragment,{}),Q.userStory&&X?t.jsx(d.default,{type:"fill",children:se?t.jsxs("span",e.__assign({className:l.default.savingSpinner},{children:[t.jsx(r.LoaderCircle,{className:l.default.spinAnimation}),t.jsx("span",{children:"Saving..."})]})):"Save",isDisable:se,style:se?null==z?void 0:z.savingButton:null==z?void 0:z.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 ie(!0),"userStory"==="userStory"&&(I(O),console.log("I am changing RTE editor values",O)),[4,B(L,J,S,null===(t=ue.current)||void 0===t?void 0:t.signal)];case 1:return n.sent(),G(function(t){return e.__assign(e.__assign({},t),{userStory:!1})}),ie(!1),[2]}})})}}):!D&&!b&&X&&!1!==(null==R?void 0:R.showEditButton)&&t.jsx("button",e.__assign({className:l.default.iconButton,style:null==z?void 0:z.editButton,onClick:function(){return G(function(t){return e.__assign(e.__assign({},t),{userStory:!0})})}},{children:t.jsx(r.PencilIcon,{color:null==z?void 0:z.pencilIconColor,size:16})})),t.jsx("button",e.__assign({type:"button",onClick:function(e){e.stopPropagation(),ce()},style:null==z?void 0:z.chevronButton,className:l.default.chevronButton},{children:X?t.jsx(r.ChevronUp,{className:l.default.chevronIcon,color:null==z?void 0:z.chevronIconColor}):t.jsx(r.ChevronDown,{className:l.default.chevronIcon,color:null==z?void 0:z.chevronIconColor})}))]}))]})),t.jsx("div",{className:l.default.divider,style:null==z?void 0:z.dividerStyle})]})),X&&t.jsx("div",e.__assign({className:l.default.cardContent,style:null==z?void 0:z.cardContentStyle},{children:t.jsxs("div",e.__assign({className:l.default.contentInner,style:null==z?void 0:z.contentInner},{children:[t.jsxs("div",e.__assign({className:l.default.descriptionSection,style:null==z?void 0:z.descriptionSection},{children:[t.jsx("div",{className:l.default.justifyBetween,style:null==z?void 0:z.justifyBetween}),Q.userStory?t.jsx(c.default,{minHeight:"100%",height:"100%",type:"string",value:o.formatMarkdown(j.value)||"",handleUpdateState:function(t,n){var r=o.indentMarkdown(n);F(function(t){return e.__assign(e.__assign({},t),{value:r||""})})},doNotShowBorderInViewMode:!1,onBlur:function(){},mode:Q.userStory?"edit":"readOnly"}):t.jsx(f.default,{showUserStoryDiff:b,isParent:""===w,message:o.formatMarkdown(j.value)||"",artifactId:j.artifactId,customStyles:P,isDisplayHighlightControl:A})]})),null===(y=O.sub_features)||void 0===y?void 0:y.map(function(n,r){return t.jsx(g,{artifactId:S,isUserStoryCurrentlyUpdated:p,artifactTitleId:"".concat(x,"-").concat(String.fromCharCode(65+r)),parentUserStory:j,parentIndex:"".concat(w).concat(w&&".").concat(N),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,I(e.__assign(e.__assign({},j),{sub_features:r}))}(r,t)},enableDownload:!0,isDiffEditReviewMode:D,showUserStoryDiff:b,updateUserStoryArtifact:B,handleDownloadUserStory:M,handleOpenSendDialog:k,isDisplayHighlightControl:A,elementDisplayConfig:R},n.artifactId)})]}))}))]}))};exports.StoryCard=g,exports.UserStoryCardWrapper=function(n){var s=n.artifactTitleIDs,i=n.isDiffEditReviewMode,a=n.showUserStoryDiff,o=n.updateUserStoryArtifact,u=n.isUserStoryCurrentlyUpdated,d=n.artifactId,c=n.handleOpenSendDialog,f=n.handleDownloadUserStory,y=n.selectedArtifactId,h=n.isDisplayHighlightControl,_=n.elementDisplayConfig,m=v.useRequirementAI(),p=m.userStory,S=m.setUserStory,x=m.customStyles,C=m.searchQueryList,j=m.currentHighlightIndex,I=m.setCurrentHighlightIndex,w=null==x?void 0:x.userStoryCardStyles,N=0===j,U=j===C.length-1;return t.jsxs("div",e.__assign({className:l.default.userStoryCardWrapper,style:h?e.__assign(e.__assign({},null==w?void 0:w.userStoryCardWrapper),{position:"relative"}):null==w?void 0:w.userStoryCardWrapper},{children:[h&&t.jsx(t.Fragment,{children:C.length>1&&t.jsx("div",e.__assign({className:l.default.wrapper},{children:t.jsx("div",e.__assign({className:l.default.highlightNavigation},{children:t.jsxs("div",e.__assign({className:l.default.navigationContainer},{children:[t.jsxs("span",e.__assign({className:l.default.navCounter},{children:[j+1," of ",C.length]})),t.jsxs("div",e.__assign({className:l.default.navButtons},{children:[t.jsx("button",e.__assign({onClick:function(){j>0&&I(function(e){return e-1})},className:l.default.navButton,disabled:N},{children:t.jsx(r.ChevronUpIcon,{size:20,className:l.default.navIcon})})),t.jsx("button",e.__assign({onClick:function(){j<C.length-1&&I(function(e){return e+1})},className:l.default.navButton,disabled:U},{children:t.jsx(r.ChevronDownIcon,{size:20,className:l.default.navIcon})}))]}))]}))}))}))}),p.map(function(n,r){return t.jsx(g,{isUserStoryCurrentlyUpdated:u,artifactId:d,artifactTitleId:s[r]||"",currentUserStory:n,onUserStoryChange:function(t){S(function(n){return n[r]=t,e.__spreadArray([],n,!0)})},parentIndex:"",currentIndex:"".concat(r+1),doNotShowBorderInViewMode:!0,enableDownload:!0,isDiffEditReviewMode:i,showUserStoryDiff:a,updateUserStoryArtifact:o,handleOpenSendDialog:c,handleDownloadUserStory:f,selectedArtifactId:y,isDisplayHighlightControl:h,elementDisplayConfig:_},n.artifactId)})]}))},exports.default=g,exports.replaceLearnedTagsWithInfo=_;
|
|
2
2
|
//# sourceMappingURL=UserStoryCard.js.map
|
package/dist/cjs/features/RequirementAI/components/UserStoryCard/UserStoryCard.module.css.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const r=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;r&&e.setAttribute("nonce",r),e.appendChild(document.createTextNode(".UserStoryCard-module_card__9pErS{border:1px solid #e5e5e5;border-radius:.75rem;display:flex;flex:1;flex-direction:column;margin-bottom:auto;margin-left:auto;margin-right:auto;width:100%}.UserStoryCard-module_titleSection__pGbpL{cursor:pointer;padding:.5rem 1rem;width:100%}.UserStoryCard-module_titleRow__TyEN9{align-items:center;display:flex;justify-content:space-between;margin-top:.5rem;width:100%}.UserStoryCard-module_titleLeft__fzF6u{align-items:center;display:flex;font-family:Inter,sans-serif;gap:.5rem;max-width:66.666%}.UserStoryCard-module_titleActions__Dabx1{align-items:center;display:flex;gap:.5rem;width:fit-content}.UserStoryCard-module_divider__xG-FC{background-color:#ffffff4d;border-radius:9999px;height:.25rem;width:4rem}.UserStoryCard-module_displayName__Jj-HK{align-items:center;color:#4b5563;display:inline-flex;font-size:.875rem;font-weight:500;gap:.5rem}.UserStoryCard-module_displayNameIcon__-SCM3{height:1rem;width:1rem}.UserStoryCard-module_storyTitle__FDX4p{color:#374151;flex:1;font-size:1rem;font-weight:600}.UserStoryCard-module_iconButton__DkfRA{align-items:center;background-color:#fff;border:1px solid #d1d5db;border-radius:.3rem;box-shadow:0 1px 2px #0000000d;cursor:pointer;display:flex;justify-content:center;padding:.4rem .8rem}.UserStoryCard-module_iconButton__DkfRA:hover{background-color:#f9fafb}.UserStoryCard-module_chevronButton__nxxYC{background:none;border:none;cursor:pointer;margin-left:.5rem;padding:.25rem}.UserStoryCard-module_chevronIcon__Azswy{color:#4b5563;height:1.5rem;width:1.5rem}.UserStoryCard-module_cardContent__rR2g3{border-top:1px solid #e5e5e5;max-height:fit-content;opacity:1;padding:1.5rem 2rem 2rem;transition:all .3s ease-in-out;width:100%}.UserStoryCard-module_contentInner__AYQbu{display:flex;flex-direction:column;gap:2.5rem;width:100%}.UserStoryCard-module_descriptionSection__5j6cg{align-items:flex-end;display:flex;flex-direction:column;gap:1rem;width:100%}.UserStoryCard-module_justifyBetween__cD-EG{display:flex;justify-content:space-between}.UserStoryCard-module_savingSpinner__UmbEq{align-items:center;color:#fff;display:flex;flex-direction:row;gap:.5rem}.UserStoryCard-module_spinAnimation__INSou{animation:UserStoryCard-module_spin__afcZ6 1s linear infinite}@keyframes UserStoryCard-module_spin__afcZ6{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.UserStoryCard-module_menuItemContent__U-ZxP{align-items:center;display:flex;flex-direction:row;gap:.5rem;margin-left:.25rem}.UserStoryCard-module_wrapper__ahzRY{display:flex;justify-content:flex-end;margin-bottom:5px;width:100
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const r=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;r&&e.setAttribute("nonce",r),e.appendChild(document.createTextNode(".UserStoryCard-module_card__9pErS{border:1px solid #e5e5e5;border-radius:.75rem;display:flex;flex:1;flex-direction:column;margin-bottom:auto;margin-left:auto;margin-right:auto;width:100%}.UserStoryCard-module_titleSection__pGbpL{cursor:pointer;padding:.5rem 1rem;width:100%}.UserStoryCard-module_titleRow__TyEN9{align-items:center;display:flex;justify-content:space-between;margin-top:.5rem;width:100%}.UserStoryCard-module_titleLeft__fzF6u{align-items:center;display:flex;font-family:Inter,sans-serif;gap:.5rem;max-width:66.666%}.UserStoryCard-module_titleActions__Dabx1{align-items:center;display:flex;gap:.5rem;width:fit-content}.UserStoryCard-module_divider__xG-FC{background-color:#ffffff4d;border-radius:9999px;height:.25rem;width:4rem}.UserStoryCard-module_displayName__Jj-HK{align-items:center;color:#4b5563;display:inline-flex;font-size:.875rem;font-weight:500;gap:.5rem}.UserStoryCard-module_displayNameIcon__-SCM3{height:1rem;width:1rem}.UserStoryCard-module_storyTitle__FDX4p{color:#374151;flex:1;font-size:1rem;font-weight:600}.UserStoryCard-module_iconButton__DkfRA{align-items:center;background-color:#fff;border:1px solid #d1d5db;border-radius:.3rem;box-shadow:0 1px 2px #0000000d;cursor:pointer;display:flex;justify-content:center;padding:.4rem .8rem}.UserStoryCard-module_iconButton__DkfRA:hover{background-color:#f9fafb}.UserStoryCard-module_chevronButton__nxxYC{background:none;border:none;cursor:pointer;margin-left:.5rem;padding:.25rem}.UserStoryCard-module_chevronIcon__Azswy{color:#4b5563;height:1.5rem;width:1.5rem}.UserStoryCard-module_cardContent__rR2g3{border-top:1px solid #e5e5e5;max-height:fit-content;opacity:1;padding:1.5rem 2rem 2rem;transition:all .3s ease-in-out;width:100%}.UserStoryCard-module_contentInner__AYQbu{display:flex;flex-direction:column;gap:2.5rem;width:100%}.UserStoryCard-module_descriptionSection__5j6cg{align-items:flex-end;display:flex;flex-direction:column;gap:1rem;width:100%}.UserStoryCard-module_justifyBetween__cD-EG{display:flex;justify-content:space-between}.UserStoryCard-module_savingSpinner__UmbEq{align-items:center;color:#fff;display:flex;flex-direction:row;gap:.5rem}.UserStoryCard-module_spinAnimation__INSou{animation:UserStoryCard-module_spin__afcZ6 1s linear infinite}@keyframes UserStoryCard-module_spin__afcZ6{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.UserStoryCard-module_menuItemContent__U-ZxP{align-items:center;display:flex;flex-direction:row;gap:.5rem;margin-left:.25rem}.UserStoryCard-module_wrapper__ahzRY{background-color:#fff;border-bottom:1px solid hsla(0,0%,50%,.126);display:flex;justify-content:flex-end;margin-bottom:4px;padding:5px 10px 5px 0;position:sticky;top:0;width:100%;z-index:1000}.UserStoryCard-module_highlightNavigation__vv8RW{width:max-content}.UserStoryCard-module_navigationContainer__2UcOj{align-items:center;border:1px solid hsla(0,0%,50%,.126);border-radius:10px;display:inline-flex;gap:8px;padding:6px 8px}.UserStoryCard-module_navButton__EWoVi{align-items:center;background:none;border:none;color:#374151;cursor:pointer;display:flex;justify-content:center;padding:2px;transition:color .15s ease}.UserStoryCard-module_navIcon__3ZSIH{height:20px;width:20px}.UserStoryCard-module_navCounter__sIIeS{color:#4b5563;font-size:17px;font-weight:500;letter-spacing:.01em;min-width:28px;text-align:center}.UserStoryCard-module_navButtons__6oLaN{display:flex;gap:0}.UserStoryCard-module_navButton__EWoVi:disabled{cursor:not-allowed;opacity:.4}.UserStoryCard-module_menuItemContentPadded__w6udq{align-items:center;display:flex;flex-direction:row;gap:.5rem;padding-left:.25rem}.UserStoryCard-module_userStoryCardWrapper__0gC-E{width:100%}"));const t=document.head||document.getElementsByTagName("head")[0]||document.documentElement;t&&t.appendChild(e)}(),exports.default={card:"UserStoryCard-module_card__9pErS",titleSection:"UserStoryCard-module_titleSection__pGbpL",titleRow:"UserStoryCard-module_titleRow__TyEN9",titleLeft:"UserStoryCard-module_titleLeft__fzF6u",titleActions:"UserStoryCard-module_titleActions__Dabx1",divider:"UserStoryCard-module_divider__xG-FC",displayName:"UserStoryCard-module_displayName__Jj-HK",displayNameIcon:"UserStoryCard-module_displayNameIcon__-SCM3",storyTitle:"UserStoryCard-module_storyTitle__FDX4p",iconButton:"UserStoryCard-module_iconButton__DkfRA",chevronButton:"UserStoryCard-module_chevronButton__nxxYC",chevronIcon:"UserStoryCard-module_chevronIcon__Azswy",cardContent:"UserStoryCard-module_cardContent__rR2g3",contentInner:"UserStoryCard-module_contentInner__AYQbu",descriptionSection:"UserStoryCard-module_descriptionSection__5j6cg",justifyBetween:"UserStoryCard-module_justifyBetween__cD-EG",savingSpinner:"UserStoryCard-module_savingSpinner__UmbEq",spinAnimation:"UserStoryCard-module_spinAnimation__INSou",spin:"UserStoryCard-module_spin__afcZ6",menuItemContent:"UserStoryCard-module_menuItemContent__U-ZxP",wrapper:"UserStoryCard-module_wrapper__ahzRY",highlightNavigation:"UserStoryCard-module_highlightNavigation__vv8RW",navigationContainer:"UserStoryCard-module_navigationContainer__2UcOj",navButton:"UserStoryCard-module_navButton__EWoVi",navIcon:"UserStoryCard-module_navIcon__3ZSIH",navCounter:"UserStoryCard-module_navCounter__sIIeS",navButtons:"UserStoryCard-module_navButtons__6oLaN",menuItemContentPadded:"UserStoryCard-module_menuItemContentPadded__w6udq",userStoryCardWrapper:"UserStoryCard-module_userStoryCardWrapper__0gC-E"};
|
|
2
2
|
//# sourceMappingURL=UserStoryCard.module.css.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),s=require("react"),a=require("react-markdown"),i=require("rehype-raw"),l=require("./AppModCitationContent.module.css.js"),r=require("./components/CodeLinkHandler.js"),d=require("./types.js"),t=require("../../../../RequirementAiCitations/AiReasoning/components/AIConfidenceDisplay.js"),o=require("./icons/SparkleIcon.js");function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var c=u(a),_=u(i),h=function(s,a,i,t){var o=(null==a?void 0:a.highlight)||d.DEFAULT_HIGHLIGHT_THEME,u=function(){return s?{backgroundColor:o.background,color:o.text,padding:"2px 3px",borderRadius:"2px",boxDecorationBreak:"clone",WebkitBoxDecorationBreak:"clone"}:{}},c=function(){return e.__assign(e.__assign({},u()),{display:"inline"})};return{h1:function(i){var r,d=i.children;return n.jsx("h1",e.__assign({className:l.default.heading1,style:null===(r=null==a?void 0:a.markdown)||void 0===r?void 0:r.heading1},{children:s?n.jsx("span",e.__assign({style:u()},{children:d})):d}))},h2:function(i){var r,d=i.children;return n.jsx("h2",e.__assign({className:l.default.heading2,style:null===(r=null==a?void 0:a.markdown)||void 0===r?void 0:r.heading2},{children:s?n.jsx("span",e.__assign({style:u()},{children:d})):d}))},h3:function(i){var r,d=i.children;return n.jsx("h3",e.__assign({className:l.default.heading3,style:null===(r=null==a?void 0:a.markdown)||void 0===r?void 0:r.heading3},{children:s?n.jsx("span",e.__assign({style:u()},{children:d})):d}))},h4:function(i){var r,d=i.children;return n.jsx("h4",e.__assign({className:l.default.heading4,style:null===(r=null==a?void 0:a.markdown)||void 0===r?void 0:r.heading4},{children:s?n.jsx("span",e.__assign({style:u()},{children:d})):d}))},h5:function(i){var r,d=i.children;return n.jsx("h5",e.__assign({className:l.default.heading5,style:null===(r=null==a?void 0:a.markdown)||void 0===r?void 0:r.heading5},{children:s?n.jsx("span",e.__assign({style:u()},{children:d})):d}))},h6:function(i){var r,d=i.children;return n.jsx("h6",e.__assign({className:l.default.heading6,style:null===(r=null==a?void 0:a.markdown)||void 0===r?void 0:r.heading6},{children:s?n.jsx("span",e.__assign({style:u()},{children:d})):d}))},p:function(i){var r,d=i.children;return n.jsx("p",e.__assign({className:l.default.paragraph,style:null===(r=null==a?void 0:a.markdown)||void 0===r?void 0:r.paragraph},{children:s?n.jsx("span",e.__assign({style:c()},{children:d})):d}))},ol:function(s){var i,r=s.children;return n.jsx("ol",e.__assign({className:l.default.orderedList,style:null===(i=null==a?void 0:a.markdown)||void 0===i?void 0:i.list},{children:r}))},ul:function(s){var i,r=s.children;return n.jsx("ul",e.__assign({className:l.default.unorderedList,style:null===(i=null==a?void 0:a.markdown)||void 0===i?void 0:i.list},{children:r}))},li:function(i){var r,d=i.children;return n.jsx("li",e.__assign({className:l.default.listItem,style:null===(r=null==a?void 0:a.markdown)||void 0===r?void 0:r.listItem},{children:s?n.jsx("span",e.__assign({style:c()},{children:d})):d}))},strong:function(i){var r,d=i.children;return n.jsx("strong",e.__assign({className:l.default.strong,style:e.__assign(e.__assign({},null===(r=null==a?void 0:a.markdown)||void 0===r?void 0:r.strong),s?u():{})},{children:d}))},em:function(i){var r,d=i.children;return n.jsx("em",e.__assign({className:l.default.emphasis,style:e.__assign(e.__assign({},null===(r=null==a?void 0:a.markdown)||void 0===r?void 0:r.emphasis),s?u():{})},{children:d}))},a:function(l){var d=l.children,u=l.href;return n.jsx(r.default,e.__assign({href:u,codeLinkConfig:t,isHighlighted:s,highlightTheme:o,customStyles:null==a?void 0:a.markdown,customIcon:null==i?void 0:i.appModCitationLinkIcon},{children:d}))},code:function(i){var r,d,t=i.children,u=i.className,c=null==u?void 0:u.includes("language-"),_=s?{backgroundColor:o.codeBackground,color:o.codeText,border:"1px solid ".concat(o.codeBorder)}:{};return c?n.jsx("div",{children:n.jsx("code",e.__assign({className:l.default.codeBlock,style:e.__assign(e.__assign({},null===(d=null==a?void 0:a.markdown)||void 0===d?void 0:d.codeBlock),_)},{children:t}))}):n.jsx("code",e.__assign({className:l.default.inlineCode,style:e.__assign(e.__assign({},null===(r=null==a?void 0:a.markdown)||void 0===r?void 0:r.code),_)},{children:t}))},pre:function(s){var a=s.children;return n.jsx("pre",e.__assign({className:l.default.preBlock},{children:a}))},blockquote:function(i){var r,d=i.children;return n.jsx("blockquote",e.__assign({className:l.default.blockquote,style:e.__assign(e.__assign({},null===(r=null==a?void 0:a.markdown)||void 0===r?void 0:r.blockquote),s?{borderColor:o.border}:{})},{children:s?n.jsx("span",e.__assign({style:c()},{children:d})):d}))},table:function(i){var r,d=i.children;return n.jsx("div",e.__assign({className:l.default.tableWrapper},{children:n.jsx("table",e.__assign({className:l.default.table,style:e.__assign(e.__assign({},null===(r=null==a?void 0:a.markdown)||void 0===r?void 0:r.table),s?u():{})},{children:d}))}))},thead:function(s){var a=s.children;return n.jsx("thead",e.__assign({className:l.default.tableHead},{children:a}))},tbody:function(s){var a=s.children;return n.jsx("tbody",e.__assign({className:l.default.tableBody},{children:a}))},tr:function(a){var i=a.children;return n.jsx("tr",e.__assign({className:l.default.tableRow,style:s?u():{}},{children:i}))},th:function(i){var r,d=i.children;return n.jsx("th",e.__assign({className:l.default.tableHeader,style:e.__assign(e.__assign({},null===(r=null==a?void 0:a.markdown)||void 0===r?void 0:r.tableHeader),s?u():{})},{children:d}))},td:function(i){var r,d=i.children;return n.jsx("td",e.__assign({className:l.default.tableCell,style:e.__assign(e.__assign({},null===(r=null==a?void 0:a.markdown)||void 0===r?void 0:r.tableCell),s?u():{})},{children:d}))},details:function(s){var a=s.children;return n.jsx("details",e.__assign({className:l.default.details},{children:a}))},summary:function(a){var i=a.children,r=function(e){var n;return"string"==typeof e?e:Array.isArray(e)?e.map(r).join(""):(null===(n=null==e?void 0:e.props)||void 0===n?void 0:n.children)?r(e.props.children):""},d=r(i).replace(/:$/,"").trim();return n.jsx("summary",e.__assign({className:l.default.summary,style:s?u():{}},{children:d}))}}};exports.default=function(a){var i,r,d=a.citation,u=a.customStyles,m=a.customIcons,v=a.codeLinkConfig,g=a.isLoading,f=void 0!==g&&g,p=s.useRef(null),x=s.useRef(null),y=d.description||"",j=d.customMetadata.question||"",b=d.customMetadata.highlighted_text,k=d.customMetadata.relevance_score,N=s.useMemo(function(){return h(!1,u,m,v)},[u,m,v]),w=s.useMemo(function(){return h(!0,u,m,v)},[u,m,v]);s.useEffect(function(){if((null==b?void 0:b.trim())&&(null==y?void 0:y.trim())&&!f){var e=x.current;if(e){var n=function(){e.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})},s=window.requestAnimationFrame(function(){n(),window.setTimeout(n,120)});return function(){window.cancelAnimationFrame(s)}}}},[y,b,f]);var q=(null==m?void 0:m.appModCitationIcon)||n.jsx("div",{children:n.jsx(o.SparkleIcon,{className:l.default.headerIcon})});return n.jsxs("div",e.__assign({ref:p,className:l.default.container,style:null==u?void 0:u.container},{children:[n.jsxs("div",e.__assign({className:l.default.header,style:null==u?void 0:u.header},{children:[n.jsxs("div",e.__assign({className:l.default.headerLeft,style:null==u?void 0:u.headerLeft},{children:[n.jsx("span",e.__assign({style:null==u?void 0:u.headerIcon},{children:q})),n.jsx("span",e.__assign({className:l.default.headerTitle,style:null==u?void 0:u.headerTitle},{children:"AskMod Response"}))]})),t.renderAIConfidenceDisplay(k,null==u?void 0:u.confidenceDisplay)]})),n.jsxs("div",e.__assign({className:l.default.questionContainer,style:null==u?void 0:u.questionContainer},{children:[n.jsx("p",e.__assign({className:l.default.questionLabel,style:null==u?void 0:u.questionLabel},{children:"Me"})),n.jsx("div",e.__assign({className:l.default.questionText,style:null==u?void 0:u.questionText},{children:j||"Ask question to get response"}))]})),n.jsx("div",e.__assign({className:l.default.answerIconRow,style:null==u?void 0:u.answerIconRow},{children:n.jsxs("p",e.__assign({className:l.default.assistantName,style:null==u?void 0:u.assistantName},{children:["Askmod",n.jsx("span",e.__assign({className:l.default.assistantNameInner,style:null==u?void 0:u.assistantNameInner},{children:".AI"}))]}))})),n.jsx("div",e.__assign({className:l.default.answerContainer,style:null==u?void 0:u.answerContainer},{children:f?n.jsx("span",e.__assign({className:l.default.loadingText,style:null===(i=null==u?void 0:u.loading)||void 0===i?void 0:i.text},{children:"Generating..."})):y?function(s,a){var i,r=(void 0===(i=s.replace(/\\n/g,"\n"))&&(i=""),i.replace(/<details\b([^>]*)>/gi,function(e,n){return/\bopen\b/i.test(n)?"<details open>":"<details>"}).replace(/<summary\b[^>]*>\s*<codebasename>([^<]*)<\/codebasename>\s*<\/summary>/gi,function(e,n){return'<summary class="codebase-summary codebasename">From '.concat(n.trim()," codebase</summary>")}).replace(/<\/summary>/g,"</summary>\n").replace(/```codebasename\s*([\s\S]{0,2000}?)```/gi,function(e,n){return"<codebasename>".concat(n.trim(),"</codebasename>")}).trim());if(a&&r.includes(a)){var d=r.indexOf(a),t=r.substring(0,d),o=r.substring(d,d+a.length),u=r.substring(d+a.length),h=!o.trim();return n.jsxs("div",e.__assign({className:l.default.markdownContent},{children:[t&&n.jsx(c.default,e.__assign({rehypePlugins:[_.default],components:N},{children:t})),o&&!h&&n.jsx("div",e.__assign({ref:x,"data-appmod-highlight-anchor":"true"},{children:n.jsx(c.default,e.__assign({rehypePlugins:[_.default],components:w},{children:o}))})),o&&h&&o,u&&n.jsx(c.default,e.__assign({rehypePlugins:[_.default],components:N},{children:u}))]}))}return n.jsx(c.default,e.__assign({className:l.default.markdownContent,rehypePlugins:[_.default],components:N},{children:r}))}(y,b):n.jsx("span",e.__assign({className:l.default.errorText,style:null===(r=null==u?void 0:u.error)||void 0===r?void 0:r.text},{children:"Oops! Can't generate your response now."}))}))]}))};
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),s=require("react"),a=require("react-markdown"),i=require("rehype-raw"),l=require("./AppModCitationContent.module.css.js"),r=require("./components/CodeLinkHandler.js"),d=require("./types.js"),t=require("../../../../RequirementAiCitations/AiReasoning/components/AIConfidenceDisplay.js"),o=require("./icons/SparkleIcon.js");function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var c=u(a),_=u(i),h=function(s,a,i,t){var o=(null==a?void 0:a.highlight)||d.DEFAULT_HIGHLIGHT_THEME,u=function(){return s?{backgroundColor:o.background,color:o.text,padding:"2px 3px",borderRadius:"2px",boxDecorationBreak:"clone",WebkitBoxDecorationBreak:"clone"}:{}},c=function(){return e.__assign(e.__assign({},u()),{display:"inline"})};return{h1:function(i){var r,d=i.children;return n.jsx("h1",e.__assign({className:l.default.heading1,style:null===(r=null==a?void 0:a.markdown)||void 0===r?void 0:r.heading1},{children:s?n.jsx("span",e.__assign({style:u()},{children:d})):d}))},h2:function(i){var r,d=i.children;return n.jsx("h2",e.__assign({className:l.default.heading2,style:null===(r=null==a?void 0:a.markdown)||void 0===r?void 0:r.heading2},{children:s?n.jsx("span",e.__assign({style:u()},{children:d})):d}))},h3:function(i){var r,d=i.children;return n.jsx("h3",e.__assign({className:l.default.heading3,style:null===(r=null==a?void 0:a.markdown)||void 0===r?void 0:r.heading3},{children:s?n.jsx("span",e.__assign({style:u()},{children:d})):d}))},h4:function(i){var r,d=i.children;return n.jsx("h4",e.__assign({className:l.default.heading4,style:null===(r=null==a?void 0:a.markdown)||void 0===r?void 0:r.heading4},{children:s?n.jsx("span",e.__assign({style:u()},{children:d})):d}))},h5:function(i){var r,d=i.children;return n.jsx("h5",e.__assign({className:l.default.heading5,style:null===(r=null==a?void 0:a.markdown)||void 0===r?void 0:r.heading5},{children:s?n.jsx("span",e.__assign({style:u()},{children:d})):d}))},h6:function(i){var r,d=i.children;return n.jsx("h6",e.__assign({className:l.default.heading6,style:null===(r=null==a?void 0:a.markdown)||void 0===r?void 0:r.heading6},{children:s?n.jsx("span",e.__assign({style:u()},{children:d})):d}))},p:function(i){var r,d=i.children;return n.jsx("p",e.__assign({className:l.default.paragraph,style:null===(r=null==a?void 0:a.markdown)||void 0===r?void 0:r.paragraph},{children:s?n.jsx("span",e.__assign({style:c()},{children:d})):d}))},ol:function(s){var i,r=s.children;return n.jsx("ol",e.__assign({className:l.default.orderedList,style:null===(i=null==a?void 0:a.markdown)||void 0===i?void 0:i.list},{children:r}))},ul:function(s){var i,r=s.children;return n.jsx("ul",e.__assign({className:l.default.unorderedList,style:null===(i=null==a?void 0:a.markdown)||void 0===i?void 0:i.list},{children:r}))},li:function(i){var r,d=i.children;return n.jsx("li",e.__assign({className:l.default.listItem,style:null===(r=null==a?void 0:a.markdown)||void 0===r?void 0:r.listItem},{children:s?n.jsx("span",e.__assign({style:c()},{children:d})):d}))},strong:function(i){var r,d=i.children;return n.jsx("strong",e.__assign({className:l.default.strong,style:e.__assign(e.__assign({},null===(r=null==a?void 0:a.markdown)||void 0===r?void 0:r.strong),s?u():{})},{children:d}))},em:function(i){var r,d=i.children;return n.jsx("em",e.__assign({className:l.default.emphasis,style:e.__assign(e.__assign({},null===(r=null==a?void 0:a.markdown)||void 0===r?void 0:r.emphasis),s?u():{})},{children:d}))},a:function(l){var d=l.children,u=l.href;return n.jsx(r.default,e.__assign({href:u,codeLinkConfig:t,isHighlighted:s,highlightTheme:o,customStyles:null==a?void 0:a.markdown,customIcon:null==i?void 0:i.appModCitationLinkIcon},{children:d}))},code:function(i){var r,d,t=i.children,u=i.className,c=null==u?void 0:u.includes("language-"),_=s?{backgroundColor:o.codeBackground,color:o.codeText,border:"1px solid ".concat(o.codeBorder)}:{};return c?n.jsx("div",{children:n.jsx("code",e.__assign({className:l.default.codeBlock,style:e.__assign(e.__assign({},null===(d=null==a?void 0:a.markdown)||void 0===d?void 0:d.codeBlock),_)},{children:t}))}):n.jsx("code",e.__assign({className:l.default.inlineCode,style:e.__assign(e.__assign({},null===(r=null==a?void 0:a.markdown)||void 0===r?void 0:r.code),_)},{children:t}))},pre:function(s){var a=s.children;return n.jsx("pre",e.__assign({className:l.default.preBlock},{children:a}))},blockquote:function(i){var r,d=i.children;return n.jsx("blockquote",e.__assign({className:l.default.blockquote,style:e.__assign(e.__assign({},null===(r=null==a?void 0:a.markdown)||void 0===r?void 0:r.blockquote),s?{borderColor:o.border}:{})},{children:s?n.jsx("span",e.__assign({style:c()},{children:d})):d}))},table:function(i){var r,d=i.children;return n.jsx("div",e.__assign({className:l.default.tableWrapper},{children:n.jsx("table",e.__assign({className:l.default.table,style:e.__assign(e.__assign({},null===(r=null==a?void 0:a.markdown)||void 0===r?void 0:r.table),s?u():{})},{children:d}))}))},thead:function(s){var a=s.children;return n.jsx("thead",e.__assign({className:l.default.tableHead},{children:a}))},tbody:function(s){var a=s.children;return n.jsx("tbody",e.__assign({className:l.default.tableBody},{children:a}))},tr:function(a){var i=a.children;return n.jsx("tr",e.__assign({className:l.default.tableRow,style:s?u():{}},{children:i}))},th:function(i){var r,d=i.children;return n.jsx("th",e.__assign({className:l.default.tableHeader,style:e.__assign(e.__assign({},null===(r=null==a?void 0:a.markdown)||void 0===r?void 0:r.tableHeader),s?u():{})},{children:d}))},td:function(i){var r,d=i.children;return n.jsx("td",e.__assign({className:l.default.tableCell,style:e.__assign(e.__assign({},null===(r=null==a?void 0:a.markdown)||void 0===r?void 0:r.tableCell),s?u():{})},{children:d}))},details:function(s){var a=s.children;return n.jsx("details",e.__assign({className:l.default.details},{children:a}))},summary:function(a){var i=a.children,r=function(e){var n;return"string"==typeof e?e:Array.isArray(e)?e.map(r).join(""):(null===(n=null==e?void 0:e.props)||void 0===n?void 0:n.children)?r(e.props.children):""},d=r(i).replace(/:$/,"").trim();return n.jsx("summary",e.__assign({className:l.default.summary,style:s?u():{}},{children:d}))}}};exports.default=function(a){var i,r,d=a.citation,u=a.customStyles,m=a.customIcons,v=a.codeLinkConfig,g=a.isLoading,f=void 0!==g&&g,p=a.shouldAutoScroll,x=void 0!==p&&p,y=s.useRef(null),j=s.useRef(null),b=d.description||"",k=d.customMetadata.question||"",N=d.customMetadata.highlighted_text,w=d.customMetadata.relevance_score,q=s.useMemo(function(){return h(!1,u,m,v)},[u,m,v]),C=s.useMemo(function(){return h(!0,u,m,v)},[u,m,v]);s.useEffect(function(){if(x&&(null==N?void 0:N.trim())&&(null==b?void 0:b.trim())&&!f){var e=j.current;if(e){var n=function(){e.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})},s=window.requestAnimationFrame(function(){n(),window.setTimeout(n,120)});return function(){window.cancelAnimationFrame(s)}}}},[b,N,f,x]);var I=(null==m?void 0:m.appModCitationIcon)||n.jsx("div",{children:n.jsx(o.SparkleIcon,{className:l.default.headerIcon})});return n.jsxs("div",e.__assign({ref:y,className:l.default.container,style:null==u?void 0:u.container},{children:[n.jsxs("div",e.__assign({className:l.default.header,style:null==u?void 0:u.header},{children:[n.jsxs("div",e.__assign({className:l.default.headerLeft,style:null==u?void 0:u.headerLeft},{children:[n.jsx("span",e.__assign({style:null==u?void 0:u.headerIcon},{children:I})),n.jsx("span",e.__assign({className:l.default.headerTitle,style:null==u?void 0:u.headerTitle},{children:"AskMod Response"}))]})),t.renderAIConfidenceDisplay(w,null==u?void 0:u.confidenceDisplay)]})),n.jsxs("div",e.__assign({className:l.default.questionContainer,style:null==u?void 0:u.questionContainer},{children:[n.jsx("p",e.__assign({className:l.default.questionLabel,style:null==u?void 0:u.questionLabel},{children:"Me"})),n.jsx("div",e.__assign({className:l.default.questionText,style:null==u?void 0:u.questionText},{children:k||"Ask question to get response"}))]})),n.jsx("div",e.__assign({className:l.default.answerIconRow,style:null==u?void 0:u.answerIconRow},{children:n.jsxs("p",e.__assign({className:l.default.assistantName,style:null==u?void 0:u.assistantName},{children:["Askmod",n.jsx("span",e.__assign({className:l.default.assistantNameInner,style:null==u?void 0:u.assistantNameInner},{children:".AI"}))]}))})),n.jsx("div",e.__assign({className:l.default.answerContainer,style:null==u?void 0:u.answerContainer},{children:f?n.jsx("span",e.__assign({className:l.default.loadingText,style:null===(i=null==u?void 0:u.loading)||void 0===i?void 0:i.text},{children:"Generating..."})):b?function(s,a){var i,r=(void 0===(i=s.replace(/\\n/g,"\n"))&&(i=""),i.replace(/<details\b([^>]*)>/gi,function(e,n){return/\bopen\b/i.test(n)?"<details open>":"<details>"}).replace(/<summary\b[^>]*>\s*<codebasename>([^<]*)<\/codebasename>\s*<\/summary>/gi,function(e,n){return'<summary class="codebase-summary codebasename">From '.concat(n.trim()," codebase</summary>")}).replace(/<\/summary>/g,"</summary>\n").replace(/```codebasename\s*([\s\S]{0,2000}?)```/gi,function(e,n){return"<codebasename>".concat(n.trim(),"</codebasename>")}).trim());if(a&&r.includes(a)){var d=r.indexOf(a),t=r.substring(0,d),o=r.substring(d,d+a.length),u=r.substring(d+a.length),h=!o.trim();return n.jsxs("div",e.__assign({className:l.default.markdownContent},{children:[t&&n.jsx(c.default,e.__assign({rehypePlugins:[_.default],components:q},{children:t})),o&&!h&&n.jsx("div",e.__assign({ref:j,"data-appmod-highlight-anchor":"true"},{children:n.jsx(c.default,e.__assign({rehypePlugins:[_.default],components:C},{children:o}))})),o&&h&&o,u&&n.jsx(c.default,e.__assign({rehypePlugins:[_.default],components:q},{children:u}))]}))}return n.jsx(c.default,e.__assign({className:l.default.markdownContent,rehypePlugins:[_.default],components:q},{children:r}))}(b,N):n.jsx("span",e.__assign({className:l.default.errorText,style:null===(r=null==u?void 0:u.error)||void 0===r?void 0:r.text},{children:"Oops! Can't generate your response now."}))}))]}))};
|
|
2
2
|
//# sourceMappingURL=AppmodCitationContent.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),n=require("lucide-react"),i=require("../../../../CitationRenderer/CitationRenderer.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),n=require("lucide-react"),i=require("react"),o=require("../../../../CitationRenderer/CitationRenderer.js"),r=require("./AppmodCitationContent.js");exports.default=function(a){var l=a.title,s=a.citation,c=a.customStyles,u=a.customIcons,p=a.codeLinkConfig,d=a.isLoading,g=void 0!==d&&d,m=a.isOpen,x=i.useState(!1),f=x[0],C=x[1],h=void 0!==m,b=h?!!m:f,v=i.useCallback(function(){h||C(function(e){return!e})},[h]),j=(null==u?void 0:u.appModCitationIcon)||t.jsx(n.SparkleIcon,{className:"inline align-super mb-1 ml-1",style:{width:"12px",height:"12px"}}),k=l+"";return t.jsx(o.default,{inLineCitation:!0,citationTitle:k,citationIcon:t.jsx(t.Fragment,{}),citationComponent:t.jsx(r.default,{citation:s,customStyles:c,customIcons:u,codeLinkConfig:p,isLoading:g,shouldAutoScroll:b}),isOpen:b,onToggle:v,chevronDownComponent:j,chevronUpComponent:j,styles:{pillButton:e.__assign({fontSize:"13px",margin:"0px",padding:"0px 4px",color:"#3b82f6",cursor:"pointer",verticalAlign:"baseline",whiteSpace:"normal",wordBreak:"break-all",display:"inline-flex",alignItems:"unset",background:"transparent",border:"none"},null==c?void 0:c.pill),citationContent:{width:"100%",background:"transparent",minHeight:"10px",height:"fit-content"}}})};
|
|
2
2
|
//# sourceMappingURL=AppmodCitationRenderer.js.map
|
package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),i=require("react/jsx-runtime"),n=require("react"),s=require("lucide-react"),l=require("./CustomChatCrRedirection.module.css.js"),a=require("../ai-reasoning/AiReasoningCitationContent.js"),o=require("../../icons/CognitiveDecision.js");exports.CustomChatCrRedirection=function(
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),i=require("react/jsx-runtime"),n=require("react"),s=require("lucide-react"),l=require("./CustomChatCrRedirection.module.css.js"),a=require("../ai-reasoning/AiReasoningCitationContent.js"),o=require("../../icons/CognitiveDecision.js"),t=require("@mui/material");exports.CustomChatCrRedirection=function(r){var d=r.isDefaultOpen,c=r.processItemId,u=r.isCompleted,g=r.mode,v=r.msg,p=r.type,_=r.id,f=r.aiReason,x=r.text,m=r.headerText,h=r.decisionStrength;r.statusUi,r.panelRef;var j=r.onHandleSend,y=r.onRedirectClick,C=r.gapType,b=r.isGenerating,D=void 0!==b&&b,N=r.customStyles,I=r.customIcons,S=r.cognitiveDecisionHeaders,T=n.useState(d),R=T[0],k=T[1],q=(null==I?void 0:I.highConfidence)||i.jsx(o.default,{}),B=function(){"cra"===g?null==j||j("Discuss ambiguities on ".concat(x),_):null==j||j("Deep Dive into ".concat(C," ").concat(m,": ").concat(x),_)};return i.jsxs("div",e.__assign({className:[l.default.outerWrapper,D?l.default.outerWrapperDisabled:""].join(" "),style:e.__assign(e.__assign({},null==N?void 0:N.redirectionOuterWrapper),D?null==N?void 0:N.redirectionOuterWrapperDisabled:{})},{children:[i.jsxs("div",e.__assign({className:[l.default.card,D?l.default.cardDisabled:l.default.cardInteractive].join(" "),style:e.__assign(e.__assign({},null==N?void 0:N.redirectionCard),D?null==N?void 0:N.redirectionCardDisabled:null==N?void 0:N.redirectionCardInteractive)},{children:[i.jsxs("div",e.__assign({className:l.default.leftSide,style:null==N?void 0:N.redirectionLeftSide},{children:[i.jsx(t.Tooltip,e.__assign({title:m+" "+x,placement:"top",slotProps:{tooltip:{sx:e.__assign({},null==N?void 0:N.headerTooltip)}}},{children:i.jsxs("span",e.__assign({className:l.default.textBlock,style:null==N?void 0:N.redirectionTextBlock},{children:[m&&i.jsxs("span",e.__assign({className:l.default.headerText,style:null==N?void 0:N.redirectionHeaderText},{children:[m,x?" ":""]})),x]}))})),i.jsxs("span",e.__assign({onClick:function(e){e.stopPropagation(),D||k(!R)},className:[l.default.reasoningToggle,D?l.default.reasoningToggleDisabled:l.default.reasoningToggleActive].join(" "),style:e.__assign(e.__assign({},null==N?void 0:N.reasoningToggle),D?null==N?void 0:N.reasoningToggleDisabled:null==N?void 0:N.reasoningToggleActive)},{children:[q,R?i.jsx(s.ChevronUp,{className:l.default.chevronIcon,style:null==N?void 0:N.chevronIcon}):i.jsx(s.ChevronDown,{className:l.default.chevronIcon,style:null==N?void 0:N.chevronIcon})]}))]})),u?i.jsx("div",e.__assign({className:l.default.completeTickWrapper,style:null==N?void 0:N.completeTickWrapper},{children:i.jsx(s.Check,{color:(null==N?void 0:N.checkColor)||"green"})})):i.jsxs(i.Fragment,{children:["risk-gap"===g&&i.jsxs("div",e.__assign({className:l.default.rightSide,style:null==N?void 0:N.redirectionRightSide},{children:[i.jsx("button",e.__assign({disabled:D,className:[l.default.fixButton,D?l.default.fixButtonDisabled:""].join(" "),style:e.__assign(e.__assign({},null==N?void 0:N.redirectionFixButton),D?null==N?void 0:N.fixButtonDisabled:{}),onClick:function(e){e.stopPropagation(),D||B()}},{children:"Fix"})),i.jsx(s.SquareArrowOutUpRight,{onClick:D?void 0:function(){D||null==y||y({type:p,id:_,aiReason:f,msg:v,meta:{headerText:m,decisionStrength:h,text:x}})},size:18,className:[D?l.default.redirectIconDisabled:l.default.redirectIcon].join(" "),style:e.__assign({},D?null==N?void 0:N.redirectIconDisabled:null==N?void 0:N.redirectIcon)})]})),"cra"===g&&!d&&i.jsx("div",e.__assign({className:l.default.rightSide,style:null==N?void 0:N.redirectionRightSide},{children:c===_?i.jsx("div",e.__assign({className:l.default.loaderWrapper,style:null==N?void 0:N.loaderWrapper},{children:i.jsx(s.Loader2,{size:16,className:l.default.loaderIcon,color:"grey",style:e.__assign({animation:"spin 1s linear infinite"},null==N?void 0:N.loaderIcon)})})):i.jsx("button",e.__assign({className:[l.default.clarifyButton].join(" "),style:e.__assign({color:D?"grey":""},null==N?void 0:N.redirectionClarifyButton),disabled:D,onClick:function(e){e.stopPropagation(),B()}},{children:"Clarify"}))}))]})]})),R&&i.jsx(a.default,{label:"cra"===g?"Clarify":"Select this option",aiReason:{id:"1",reason:(null==f?void 0:f.Reasoning)||"",gap:(null==f?void 0:f.Gap)||"",relevance_score:Number(null==f?void 0:f.Confidence_score),explanation:(null==f?void 0:f.explanation)||""},onSelectProceed:B,customStyles:null==N?void 0:N.aiReasoningStyles,customIcons:I,cognitiveDecisionHeaders:S})]}))};
|
|
2
2
|
//# sourceMappingURL=CustomChatCrRedirection.js.map
|
package/dist/cjs/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),t=require("react"),i=require("react-markdown"),r=require("rehype-raw"),a=require("./UserStoryWithCitation.module.css.js"),o=require("../../shared/useMarkdownSearch.js"),l=require("lucide-react"),s=require("@mui/material"),d=require("../../shared/UpdatedAnimationContent.js"),c=require("../../shared/GeneratedCodeCitation.js"),u=require("../../shared/CitationLoadingIndicator.js"),g=require("../RequirementAIWrapper/RequirementAIWrapper.js"),v=require("../ai-reasoning/AiReasoningCitation.js"),f=require("../../icons/RelevanceScoreIcon.js"),h=require("../RecommendationBlock/RecommendationBlock.js"),p=require("../UserStoryCard/AttachedContext.js");function _(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var m=_(i),C=_(r),x=t.createContext(!1),y=t.createContext({expandedInfo:null,setExpanded:function(){},reasonToRow:{current:new Map}}),j=t.createContext({rowId:""}),S=function(i){var r,o,l=i.children,s=i.node,d=t.useRef(Math.random().toString(36).slice(2)).current,c=t.useContext(y).expandedInfo,u=(null==c?void 0:c.rowId)===d,g=Array.isArray(null==s?void 0:s.children)?s.children.filter(function(e){return"element"===e.type}).length:1,v=null!==(o=null===(r=null==s?void 0:s.properties)||void 0===r?void 0:r.style)&&void 0!==o?o:void 0;return n.jsxs(j.Provider,e.__assign({value:{rowId:d}},{children:[n.jsx("tr",e.__assign({style:v?{cssText:v}:void 0},{children:l})),u&&(null==c?void 0:c.aiReason)&&n.jsx("tr",e.__assign({style:{width:"100%"}},{children:n.jsx("td",e.__assign({colSpan:g||1,className:a.default.tableExpandedCell},{children:n.jsx("div",e.__assign({className:a.default.tableExpandedCellInner},{children:n.jsx("div",{className:a.default.tableExpandedCellContent})}))}))}))]}))};exports.default=function(i){var r=i.message,_=i.isParent,j=i.scenario,b=i.showUserStoryDiff,I=void 0!==b&&b,w=i.aiReasoningsForBlock,R=i.isCitationLoadingDisplay,N=void 0!==R&&R,q=i.className;i.highConfidenceIcon,i.lowConfidenceIcon;var A=i.customStyles,T=i.customIcons,M=i.aiReasoningDiffView,k=i.userStoryCitations,L=i.artifactId,U=i.isCraflow,$=i.onCraAccept,P=i.onCraReject,E=t.useRef(null),F=g.useRequirementAI(),z=F.userStory,B=F.getAvgScoreForStory,D=F.setUserStory,H=F.aiReasoning,W=F.setAiReasoning,O=F.customIcons,G=F.searchQueryList,Q=F.searchQueryReasoningIdList,V=F.currentHighlightIndex,J=null!=T?T:null==O?void 0:O.userStoryIcons;null==A||A.searchHighlight;var K=o.useMarkdownSearch(E),X=K.search,Y=K.clear,Z=t.useState("1"),ee=Z[0],ne=Z[1],te=t.useState(null),ie=te[0],re=te[1],ae=t.useRef(new Map),oe=t.useCallback(function(e,n){re(e&&n?{rowId:e,aiReason:n}:null)},[]),le=L?B(L):0,se=t.useState([]),de=se[0],ce=se[1],ue=function(e){var n=e;return n=function(e){for(var n,t=/<updated[^>]*>[\s\S]*?<\/updated>/gi,i=[],r=new RegExp(t.source,t.flags);null!==(n=r.exec(e));){var a=n[0],o=a.match(/<deleted>([\s\S]*?)<\/deleted>/i),l=a.match(/<changed>([\s\S]*?)<\/changed>/i),s=function(e){return(e.match(/^\s*\d+\.\s/gm)||[]).length};i.push({index:n.index,endIndex:n.index+n[0].length,deletedItemCount:s((null==o?void 0:o[1])||""),changedItemCount:s((null==l?void 0:l[1])||"")})}if(0===i.length)return e;for(var d=e,c=function(e){var n=i[e],t=n.changedItemCount-n.deletedItemCount;if(0===t)return"continue";for(var r=!1,a=0,o=d.substring(0,n.index).split("\n").reverse();a<o.length;a++){var l=o[a].trim();if(""!==l){/^\d+\.\s/.test(l)&&(r=!0);break}}if(!r)return"continue";var s=n.endIndex,c=e+1<i.length?i[e+1].index:d.length,u=d.substring(s,c);u=u.replace(/^(\s*)(\d+)\.\s/gm,function(e,n,i){return"".concat(n).concat(parseInt(i,10)+t,". ")}),d=d.substring(0,s)+u+d.substring(c)},u=i.length-1;u>=0;u--)c(u);return d}(n=(n=(n=(n=n.replace(/<deleted>([\s\S]*?)<\/deleted>/gi,function(e,n){var t=n.replace(/ai_reasoning\$(\d+)/g,function(e,n){return"ai_reasoning$".concat(n,"-legacy")});return"<deleted>".concat(t,"</deleted>")})).replace(/<generatedCode([^>]*)>([\s\S]*?)<\/generatedCode>/gi,function(e,n,t){var i=btoa(encodeURIComponent(t.trim()));return"\n\n<generatedCode".concat(n,' data-raw="').concat(i,'"></generatedCode>\n\n')})).replace(/^(\s*[-*]|\s*\d+\.)\s*\n?\s*(<updated\b)/gm,"$1 $2")).replace(/<updated([^>]*)>([\s\S]*?)<\/updated>/gi,function(e,t,i,r){var a=n.substring(0,r),o=a.lastIndexOf("\n"),l=/^\s+[-*]\s/.test(a.substring(o+1))||/^\s+\d+\.\s/.test(a.substring(o+1)),s=/^\s*(\d+\.|\s*[-*])\s+$/.test(a.substring(o+1));if(l||s){var d=i;return d=(d=(d=(d=d.replace(/(<deleted>)\s*\n?\s*[-*]\s+/gi,"$1\n")).replace(/(<changed>)\s*\n?\s*[-*]\s+/gi,"$1\n")).replace(/(<deleted>)\s*\n?\s*\d+\.\s+/gi,"$1\n")).replace(/(<changed>)\s*\n?\s*\d+\.\s+/gi,"$1\n"),"<updated".concat(t,">").concat(d,"</updated>")}return e})),n=function(e){var n=e.replace(/<deleted>([\s\S]*?)<\/deleted>/gi,function(e,n){var t=n.replace(/\n{2,}/g,"\n");return console.log("[normalizeCustomTags] collapseNewlines in <deleted>",{hadChange:t!==n}),"<deleted>".concat(t,"</deleted>")});return n.replace(/<changed>([\s\S]*?)<\/changed>/gi,function(e,n){var t=n.replace(/\n{2,}/g,"\n");return console.log("[normalizeCustomTags] collapseNewlines in <changed>",{hadChange:t!==n,preview:n.substring(0,120)}),"<changed>".concat(t,"</changed>")})}(n),n},ge=t.useMemo(function(){return r?ue(r):r},[r]);t.useEffect(function(){ce(w||H)},[w,H]);var ve=t.useMemo(function(){return{h1:function(t){t.node;var i=e.__rest(t,["node"]);return n.jsx("h1",e.__assign({className:a.default.heading1,style:null==A?void 0:A.heading1},{children:i.children}))},h2:function(t){t.node;var i=e.__rest(t,["node"]);return n.jsx("h2",e.__assign({className:a.default.heading2,style:null==A?void 0:A.heading2},{children:i.children}))},h3:function(t){t.node;var i=e.__rest(t,["node"]);return n.jsx("h3",e.__assign({className:a.default.heading3,style:null==A?void 0:A.heading3},{children:i.children}))},b:function(t){t.node;var i=e.__rest(t,["node"]);return n.jsx("b",e.__assign({className:a.default.bold,style:null==A?void 0:A.bold},{children:null==i?void 0:i.children}))},p:function(t){t.node;var i=e.__rest(t,["node"]);return n.jsx("p",e.__assign({},i,{className:a.default.paragraph,style:null==A?void 0:A.paragraph},{children:i.children}))},updated:function(t){var i=t.node,r=e.__rest(t,["node"]);return n.jsx(d.default,e.__assign({},r,{showUserStoryDiff:I,currentUpdatedTagId:ee,setCurrentUpdatedTagId:ne,userStory:z,setUserStory:D,setAiReasoning:W,node:i,isCraflow:U,onCraAccept:$,onCraReject:P,customStyles:null==A?void 0:A.updatedContent}))},ol:function(t){var i,r,o,l=t.node,s=e.__rest(t,["node"]),d=null!==(o=null!==(r=null===(i=null==l?void 0:l.properties)||void 0===i?void 0:i.start)&&void 0!==r?r:null==s?void 0:s.start)&&void 0!==o?o:void 0;return n.jsx("ol",e.__assign({className:a.default.orderedList,style:null==A?void 0:A.olist},d?{start:Number(d)}:{},{children:null==s?void 0:s.children}))},ul:function(t){t.node;var i=e.__rest(t,["node"]);return n.jsx("ul",e.__assign({className:a.default.unorderedList,style:null==A?void 0:A.ulist},{children:null==i?void 0:i.children}))},table:function(t){var i=t.children;return n.jsx("div",e.__assign({className:a.default.tableWrapper},{children:n.jsx("table",e.__assign({className:a.default.table,style:null==A?void 0:A.table},{children:i}))}))},tr:S,td:function(t){var i,r=t.node,a=t.children,o=null!==(i=null==r?void 0:r.properties)&&void 0!==i?i:{},l=o.style,s=e.__rest(o,["style"]);return n.jsx(x.Provider,e.__assign({value:!0},{children:n.jsx("td",e.__assign({},s,{style:l?{cssText:l}:void 0},{children:a}))}))},th:function(t){var i,r=t.node,a=t.children,o=null!==(i=null==r?void 0:r.properties)&&void 0!==i?i:{},l=o.style,s=e.__rest(o,["style"]);return n.jsx(x.Provider,e.__assign({value:!0},{children:n.jsx("th",e.__assign({},s,{style:l?{cssText:l}:void 0},{children:a}))}))},recommendation:function(t){var i;t.node;var r=e.__rest(t,["node"]),a="The AI has selected this content based on: ".concat((null===(i=null==r?void 0:r.children)||void 0===i?void 0:i[0])||"");return n.jsx(h.default,e.__assign({},r,{customStyles:null==A?void 0:A.recommendationBlock,label:a}))},a:function(i){var r,a,o;i.inline,i.children,i.node;var l=e.__rest(i,["inline","children","node"]);t.useContext(x)||null==l||l.table;var s="".concat(null==l?void 0:l.href),d=null===(r=s.split("$"))||void 0===r?void 0:r[0],c=null===(a=s.split("$"))||void 0===a?void 0:a[1];if("ai_reasoning"===d){var u=(null!==(o=I?M:H)&&void 0!==o?o:[]).find(function(e){return e.id.toString()===decodeURIComponent(c)}),g=Q.includes(c);if(u)return n.jsx(v.default,{aiReason:u,isSourceHasHighlight:g,customIcons:J,customStyles:{aiReasoningContent:null==A?void 0:A.aiReasoningContent,aiReasoningAccordion:null==A?void 0:A.aiReasoningAccordion,aiReasoningMarkdown:null==A?void 0:A.aiReasoningMarkdown,aiReasoningPill:null==A?void 0:A.aiReasoningPill,webCitation:null==A?void 0:A.webCitation,stormeeCitation:null==A?void 0:A.stormeeCitation,waveformCitation:null==A?void 0:A.waveformCitation,imageCitation:null==A?void 0:A.imageCitation,fileCitation:null==A?void 0:A.fileCitation,appModCitation:null==A?void 0:A.appModCitation,rcaCitation:null==A?void 0:A.rcaCitation,readFileCitation:null==A?void 0:A.readFileCitation,loadingCitations:null==A?void 0:A.loadingCitations,chatCitation:null==A?void 0:A.chatCitation}})}return null},code:function(t){t.inline;var i=t.children,r=t.className;return t.node,e.__rest(t,["inline","children","className","node"]),/language-(\w+)/.exec(r||"")||(null==r?void 0:r.includes("language-"))?n.jsx("div",{children:n.jsx("code",e.__assign({className:a.default.blockCode,style:null==A?void 0:A.code},{children:i}))}):n.jsx("code",e.__assign({className:a.default.inlineCode,style:null==A?void 0:A.code},{children:i}))},learned:function(t){var i=t.children;return n.jsx(s.Tooltip,e.__assign({title:i,placement:"top"},{children:n.jsx(l.Info,{size:16,className:a.default.learned})}))},generatedcode:function(t){t.node;var i=e.__rest(t,["node"]),r=(null==i?void 0:i.language)||"python",a=function(e){var n="";try{if(e["data-raw"])n=decodeURIComponent(atob(e["data-raw"]));else{var t=function(e){var n;return"string"==typeof e?e:Array.isArray(e)?e.map(t).join(""):(null===(n=null==e?void 0:e.props)||void 0===n?void 0:n.children)?t(e.props.children):""};n=t(e.children)}}catch(t){console.error("Error decoding generated code:",t),n=String(e.children)}return n}(i);return n.jsx(c.default,{title:"Generated Code",code:a,language:r,customStyles:{pill:null==A?void 0:A.generatedCodePill,content:null==A?void 0:A.generatedCodeContent}})}}},[de,H,k,ee,I,r,T,G,Q]);return t.useEffect(function(){if(E.current){if(G.length){var e;if(0===Q.length)requestAnimationFrame(function(){X([G[V].replace(/\*/g,"")])});else{var n=E.current,t=new MutationObserver(function(){clearTimeout(e),e=setTimeout(function(){t.disconnect(),requestAnimationFrame(function(){X([G[V].replace(/\*/g,"")])})},50)});t.observe(n,{childList:!0,subtree:!0})}return function(){clearTimeout(e)}}Y()}},[G,Q,V]),n.jsx(y.Provider,e.__assign({value:{expandedInfo:ie,setExpanded:oe,reasonToRow:ae}},{children:n.jsxs("div",e.__assign({ref:E,className:"".concat(a.default.container," ").concat("approving"!==j?a.default.wrapper:""," ").concat(q||""),style:null==A?void 0:A.container},{children:[n.jsx(m.default,e.__assign({components:ve,rehypePlugins:[C.default]},{children:ge})),le>0&&n.jsx("div",e.__assign({className:a.default.confidenceScoreContainer,style:null==A?void 0:A.confidenceScoreContainer},{children:n.jsxs("span",e.__assign({className:a.default.confidenceScore,style:null==A?void 0:A.confidenceScore},{children:[n.jsx(f.default,{size:14,color:(null==A?void 0:A.confidenceScoreIconColor)||"#166534"}),le,"%"]}))})),N&&n.jsx("div",e.__assign({className:a.default.citationLoader,style:null==A?void 0:A.citationLoaderContainer},{children:n.jsx(u.default,{customStyles:{container:null==A?void 0:A.citationLoadingContainer,icon:null==A?void 0:A.citationLoadingIcon,text:null==A?void 0:A.citationLoadingText}})})),_&&n.jsx("div",e.__assign({className:"flex mt-5"},{children:n.jsx(p.default,{})}))]}))}))};
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),t=require("react"),i=require("react-markdown"),r=require("rehype-raw"),a=require("./UserStoryWithCitation.module.css.js"),o=require("../../shared/useMarkdownSearch.js"),l=require("lucide-react"),s=require("@mui/material"),d=require("../../shared/UpdatedAnimationContent.js"),c=require("../../shared/GeneratedCodeCitation.js"),u=require("../../shared/CitationLoadingIndicator.js"),g=require("../RequirementAIWrapper/RequirementAIWrapper.js"),v=require("../ai-reasoning/AiReasoningCitation.js"),h=require("../../icons/RelevanceScoreIcon.js"),f=require("../RecommendationBlock/RecommendationBlock.js"),p=require("../UserStoryCard/AttachedContext.js");function _(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var m=_(i),C=_(r),x=t.createContext(!1),y=t.createContext({expandedInfo:null,setExpanded:function(){},reasonToRow:{current:new Map}}),j=t.createContext({rowId:""}),S=function(i){var r,o,l=i.children,s=i.node,d=t.useRef(Math.random().toString(36).slice(2)).current,c=t.useContext(y).expandedInfo,u=(null==c?void 0:c.rowId)===d,g=Array.isArray(null==s?void 0:s.children)?s.children.filter(function(e){return"element"===e.type}).length:1,v=null!==(o=null===(r=null==s?void 0:s.properties)||void 0===r?void 0:r.style)&&void 0!==o?o:void 0;return n.jsxs(j.Provider,e.__assign({value:{rowId:d}},{children:[n.jsx("tr",e.__assign({style:v?{cssText:v}:void 0},{children:l})),u&&(null==c?void 0:c.aiReason)&&n.jsx("tr",e.__assign({style:{width:"100%"}},{children:n.jsx("td",e.__assign({colSpan:g||1,className:a.default.tableExpandedCell},{children:n.jsx("div",e.__assign({className:a.default.tableExpandedCellInner},{children:n.jsx("div",{className:a.default.tableExpandedCellContent})}))}))}))]}))};exports.default=function(i){var r=i.message,_=i.isParent,j=i.scenario,b=i.showUserStoryDiff,I=void 0!==b&&b,w=i.aiReasoningsForBlock,R=i.isCitationLoadingDisplay,N=void 0!==R&&R,q=i.className;i.highConfidenceIcon,i.lowConfidenceIcon;var A=i.customStyles,T=i.customIcons,M=i.aiReasoningDiffView,k=i.userStoryCitations,L=i.artifactId,U=i.isCraflow,$=i.onCraAccept,P=i.onCraReject,E=i.isDisplayHighlightControl,F=void 0!==E&&E,D=t.useRef(null),H=g.useRequirementAI(),z=H.userStory,B=H.getAvgScoreForStory,W=H.setUserStory,O=H.aiReasoning,G=H.setAiReasoning,Q=H.customIcons,V=H.searchQueryList,J=H.searchQueryReasoningIdList,K=H.currentHighlightIndex,X=null!=T?T:null==Q?void 0:Q.userStoryIcons;null==A||A.searchHighlight;var Y=o.useMarkdownSearch(D),Z=Y.search,ee=Y.clear,ne=t.useState("1"),te=ne[0],ie=ne[1],re=t.useState(null),ae=re[0],oe=re[1],le=t.useRef(new Map),se=t.useCallback(function(e,n){oe(e&&n?{rowId:e,aiReason:n}:null)},[]),de=L?B(L):0,ce=t.useState([]),ue=ce[0],ge=ce[1],ve=function(e){var n=e;return n=function(e){for(var n,t=/<updated[^>]*>[\s\S]*?<\/updated>/gi,i=[],r=new RegExp(t.source,t.flags);null!==(n=r.exec(e));){var a=n[0],o=a.match(/<deleted>([\s\S]*?)<\/deleted>/i),l=a.match(/<changed>([\s\S]*?)<\/changed>/i),s=function(e){return(e.match(/^\s*\d+\.\s/gm)||[]).length};i.push({index:n.index,endIndex:n.index+n[0].length,deletedItemCount:s((null==o?void 0:o[1])||""),changedItemCount:s((null==l?void 0:l[1])||"")})}if(0===i.length)return e;for(var d=e,c=function(e){var n=i[e],t=n.changedItemCount-n.deletedItemCount;if(0===t)return"continue";for(var r=!1,a=0,o=d.substring(0,n.index).split("\n").reverse();a<o.length;a++){var l=o[a].trim();if(""!==l){/^\d+\.\s/.test(l)&&(r=!0);break}}if(!r)return"continue";var s=n.endIndex,c=e+1<i.length?i[e+1].index:d.length,u=d.substring(s,c);u=u.replace(/^(\s*)(\d+)\.\s/gm,function(e,n,i){return"".concat(n).concat(parseInt(i,10)+t,". ")}),d=d.substring(0,s)+u+d.substring(c)},u=i.length-1;u>=0;u--)c(u);return d}(n=(n=(n=(n=n.replace(/<deleted>([\s\S]*?)<\/deleted>/gi,function(e,n){var t=n.replace(/ai_reasoning\$(\d+)/g,function(e,n){return"ai_reasoning$".concat(n,"-legacy")});return"<deleted>".concat(t,"</deleted>")})).replace(/<generatedCode([^>]*)>([\s\S]*?)<\/generatedCode>/gi,function(e,n,t){var i=btoa(encodeURIComponent(t.trim()));return"\n\n<generatedCode".concat(n,' data-raw="').concat(i,'"></generatedCode>\n\n')})).replace(/^(\s*[-*]|\s*\d+\.)\s*\n?\s*(<updated\b)/gm,"$1 $2")).replace(/<updated([^>]*)>([\s\S]*?)<\/updated>/gi,function(e,t,i,r){var a=n.substring(0,r),o=a.lastIndexOf("\n"),l=/^\s+[-*]\s/.test(a.substring(o+1))||/^\s+\d+\.\s/.test(a.substring(o+1)),s=/^\s*(\d+\.|\s*[-*])\s+$/.test(a.substring(o+1));if(l||s){var d=i;return d=(d=(d=(d=d.replace(/(<deleted>)\s*\n?\s*[-*]\s+/gi,"$1\n")).replace(/(<changed>)\s*\n?\s*[-*]\s+/gi,"$1\n")).replace(/(<deleted>)\s*\n?\s*\d+\.\s+/gi,"$1\n")).replace(/(<changed>)\s*\n?\s*\d+\.\s+/gi,"$1\n"),"<updated".concat(t,">").concat(d,"</updated>")}return e})),n=function(e){var n=e.replace(/<deleted>([\s\S]*?)<\/deleted>/gi,function(e,n){var t=n.replace(/\n{2,}/g,"\n");return console.log("[normalizeCustomTags] collapseNewlines in <deleted>",{hadChange:t!==n}),"<deleted>".concat(t,"</deleted>")});return n.replace(/<changed>([\s\S]*?)<\/changed>/gi,function(e,n){var t=n.replace(/\n{2,}/g,"\n");return console.log("[normalizeCustomTags] collapseNewlines in <changed>",{hadChange:t!==n,preview:n.substring(0,120)}),"<changed>".concat(t,"</changed>")})}(n),n},he=t.useMemo(function(){return r?ve(r):r},[r]);t.useEffect(function(){ge(w||O)},[w,O]);var fe=t.useMemo(function(){return{h1:function(t){t.node;var i=e.__rest(t,["node"]);return n.jsx("h1",e.__assign({className:a.default.heading1,style:null==A?void 0:A.heading1},{children:i.children}))},h2:function(t){t.node;var i=e.__rest(t,["node"]);return n.jsx("h2",e.__assign({className:a.default.heading2,style:null==A?void 0:A.heading2},{children:i.children}))},h3:function(t){t.node;var i=e.__rest(t,["node"]);return n.jsx("h3",e.__assign({className:a.default.heading3,style:null==A?void 0:A.heading3},{children:i.children}))},b:function(t){t.node;var i=e.__rest(t,["node"]);return n.jsx("b",e.__assign({className:a.default.bold,style:null==A?void 0:A.bold},{children:null==i?void 0:i.children}))},p:function(t){t.node;var i=e.__rest(t,["node"]);return n.jsx("p",e.__assign({},i,{className:a.default.paragraph,style:null==A?void 0:A.paragraph},{children:i.children}))},updated:function(t){var i=t.node,r=e.__rest(t,["node"]);return n.jsx(d.default,e.__assign({},r,{showUserStoryDiff:I,currentUpdatedTagId:te,setCurrentUpdatedTagId:ie,userStory:z,setUserStory:W,setAiReasoning:G,node:i,isCraflow:U,onCraAccept:$,onCraReject:P,customStyles:null==A?void 0:A.updatedContent}))},ol:function(t){var i,r,o,l=t.node,s=e.__rest(t,["node"]),d=null!==(o=null!==(r=null===(i=null==l?void 0:l.properties)||void 0===i?void 0:i.start)&&void 0!==r?r:null==s?void 0:s.start)&&void 0!==o?o:void 0;return n.jsx("ol",e.__assign({className:a.default.orderedList,style:null==A?void 0:A.olist},d?{start:Number(d)}:{},{children:null==s?void 0:s.children}))},ul:function(t){t.node;var i=e.__rest(t,["node"]);return n.jsx("ul",e.__assign({className:a.default.unorderedList,style:null==A?void 0:A.ulist},{children:null==i?void 0:i.children}))},table:function(t){var i=t.children;return n.jsx("div",e.__assign({className:a.default.tableWrapper},{children:n.jsx("table",e.__assign({className:a.default.table,style:null==A?void 0:A.table},{children:i}))}))},tr:S,td:function(t){var i,r=t.node,a=t.children,o=null!==(i=null==r?void 0:r.properties)&&void 0!==i?i:{},l=o.style,s=e.__rest(o,["style"]);return n.jsx(x.Provider,e.__assign({value:!0},{children:n.jsx("td",e.__assign({},s,{style:l?{cssText:l}:void 0},{children:a}))}))},th:function(t){var i,r=t.node,a=t.children,o=null!==(i=null==r?void 0:r.properties)&&void 0!==i?i:{},l=o.style,s=e.__rest(o,["style"]);return n.jsx(x.Provider,e.__assign({value:!0},{children:n.jsx("th",e.__assign({},s,{style:l?{cssText:l}:void 0},{children:a}))}))},recommendation:function(t){var i;t.node;var r=e.__rest(t,["node"]),a="The AI has selected this content based on: ".concat((null===(i=null==r?void 0:r.children)||void 0===i?void 0:i[0])||"");return n.jsx(f.default,e.__assign({},r,{customStyles:null==A?void 0:A.recommendationBlock,label:a}))},a:function(i){var r,a,o;i.inline,i.children,i.node;var l=e.__rest(i,["inline","children","node"]);t.useContext(x)||null==l||l.table;var s="".concat(null==l?void 0:l.href),d=null===(r=s.split("$"))||void 0===r?void 0:r[0],c=null===(a=s.split("$"))||void 0===a?void 0:a[1];if("ai_reasoning"===d){var u=(null!==(o=I?M:O)&&void 0!==o?o:[]).find(function(e){return e.id.toString()===decodeURIComponent(c)}),g=J.includes(c);if(u)return n.jsx(v.default,{aiReason:u,isSourceHasHighlight:g,customIcons:X,customStyles:{aiReasoningContent:null==A?void 0:A.aiReasoningContent,aiReasoningAccordion:null==A?void 0:A.aiReasoningAccordion,aiReasoningMarkdown:null==A?void 0:A.aiReasoningMarkdown,aiReasoningPill:null==A?void 0:A.aiReasoningPill,webCitation:null==A?void 0:A.webCitation,stormeeCitation:null==A?void 0:A.stormeeCitation,waveformCitation:null==A?void 0:A.waveformCitation,imageCitation:null==A?void 0:A.imageCitation,fileCitation:null==A?void 0:A.fileCitation,appModCitation:null==A?void 0:A.appModCitation,rcaCitation:null==A?void 0:A.rcaCitation,readFileCitation:null==A?void 0:A.readFileCitation,loadingCitations:null==A?void 0:A.loadingCitations,chatCitation:null==A?void 0:A.chatCitation}})}return null},code:function(t){t.inline;var i=t.children,r=t.className;return t.node,e.__rest(t,["inline","children","className","node"]),/language-(\w+)/.exec(r||"")||(null==r?void 0:r.includes("language-"))?n.jsx("div",{children:n.jsx("code",e.__assign({className:a.default.blockCode,style:null==A?void 0:A.code},{children:i}))}):n.jsx("code",e.__assign({className:a.default.inlineCode,style:null==A?void 0:A.code},{children:i}))},learned:function(t){var i=t.children;return n.jsx(s.Tooltip,e.__assign({title:i,placement:"top"},{children:n.jsx(l.Info,{size:16,className:a.default.learned})}))},generatedcode:function(t){t.node;var i=e.__rest(t,["node"]),r=(null==i?void 0:i.language)||"python",a=function(e){var n="";try{if(e["data-raw"])n=decodeURIComponent(atob(e["data-raw"]));else{var t=function(e){var n;return"string"==typeof e?e:Array.isArray(e)?e.map(t).join(""):(null===(n=null==e?void 0:e.props)||void 0===n?void 0:n.children)?t(e.props.children):""};n=t(e.children)}}catch(t){console.error("Error decoding generated code:",t),n=String(e.children)}return n}(i);return n.jsx(c.default,{title:"Generated Code",code:a,language:r,customStyles:{pill:null==A?void 0:A.generatedCodePill,content:null==A?void 0:A.generatedCodeContent}})}}},[ue,O,k,te,I,r,T,V,J]);return t.useEffect(function(){if(D.current){if(V.length){var e;if(0===J.length||F)requestAnimationFrame(function(){Z([V[K].replace(/\*/g,"")])});else{var n=D.current,t=new MutationObserver(function(){clearTimeout(e),e=setTimeout(function(){t.disconnect(),requestAnimationFrame(function(){Z([V[K].replace(/\*/g,"")])})},50)});t.observe(n,{childList:!0,subtree:!0})}return function(){clearTimeout(e)}}ee()}},[V,J,K,F]),n.jsx(y.Provider,e.__assign({value:{expandedInfo:ae,setExpanded:se,reasonToRow:le}},{children:n.jsxs("div",e.__assign({ref:D,className:"".concat(a.default.container," ").concat("approving"!==j?a.default.wrapper:""," ").concat(q||""),style:null==A?void 0:A.container},{children:[n.jsx(m.default,e.__assign({components:fe,rehypePlugins:[C.default]},{children:he})),de>0&&n.jsx("div",e.__assign({className:a.default.confidenceScoreContainer,style:null==A?void 0:A.confidenceScoreContainer},{children:n.jsxs("span",e.__assign({className:a.default.confidenceScore,style:null==A?void 0:A.confidenceScore},{children:[n.jsx(h.default,{size:14,color:(null==A?void 0:A.confidenceScoreIconColor)||"#166534"}),de,"%"]}))})),N&&n.jsx("div",e.__assign({className:a.default.citationLoader,style:null==A?void 0:A.citationLoaderContainer},{children:n.jsx(u.default,{customStyles:{container:null==A?void 0:A.citationLoadingContainer,icon:null==A?void 0:A.citationLoadingIcon,text:null==A?void 0:A.citationLoadingText}})})),_&&n.jsx("div",e.__assign({className:"flex mt-5"},{children:n.jsx(p.default,{})}))]}))}))};
|
|
2
2
|
//# sourceMappingURL=UserStoryWithCitation.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e,__spreadArray as t,__awaiter as n,__generator as r}from"tslib";import{jsxs as o,jsx as l,Fragment as i}from"react/jsx-runtime";import{useState as a,useRef as s,useEffect as u}from"react";import{ChevronUpIcon as c,ChevronDownIcon as d,ExternalLink as v,Download as y,Share2 as m,Copy as f,LoaderCircle as h,PencilIcon as p,ChevronUp as S,ChevronDown as C,Info as I,Bookmark as w}from"lucide-react";import g from"showdown";import{Menu as N,MenuItem as U,Tooltip as b}from"@mui/material";import{v4 as D}from"uuid";import x from"./UserStoryCard.module.css.js";import{formatMarkdown as B,indentMarkdown as k}from"../../utils/helpers.js";import{replaceTitleSection as M}from"../../utils/user-story.utils.js";import A from"../../shared/AtomicButton.js";import T from"../RichTextEditor/RichTextEditor.js";import E from"../userstory-with-citation/UserStoryWithCitation.js";import{useRequirementAI as R}from"../RequirementAIWrapper/RequirementAIWrapper.js";function j(t){for(var n,r=[],o=/<learned>(.*?)<\/learned>/g,i=0,a=0;null!==(n=o.exec(t));){var s=n[1],u=n.index;u>i&&r.push(l("span",{children:t.slice(i,u)},"text-pre-".concat(a++))),r.push(l(b,e({title:s,placement:"top"},{children:l(I,{size:16,className:"inline-block mx-1 text-blue-500 hover:text-blue-700 cursor"})}),"tooltip-".concat(D()))),i=o.lastIndex}return i<(null==t?void 0:t.length)&&r.push(l("span",{children:t.slice(i)},"text-post-".concat(a++))),r}var L=function(t){var n,r=t.displayName,i=R().customStyles,a=null===(n=null==i?void 0:i.userStoryCardStyles)||void 0===n?void 0:n.showDisplayName;return o("div",e({className:x.displayName,style:null==a?void 0:a.wrapper},{children:[l(w,{className:x.displayNameIcon,style:null==a?void 0:a.displayNameIcon}),o("span",e({style:null==a?void 0:a.label},{children:[r,":"]}))]}))},z=function(c){var d,I,w=c.isUserStoryCurrentlyUpdated,b=c.artifactId,D=c.artifactTitleId,H=c.parentUserStory,P=c.currentUserStory,W=c.onUserStoryChange,O=c.parentIndex,V=c.currentIndex,_=c.enableDownload,q=c.isDiffEditReviewMode,Q=c.showUserStoryDiff,F=c.handleDownloadUserStory,G=c.handleOpenSendDialog,J=c.updateUserStoryArtifact,K=c.selectedArtifactId,X=c.elementDisplayConfig,Y=R(),Z=Y.searchQueryList,$=Y.citations,ee=Y.customStyles,te=null==ee?void 0:ee.userStoryCardStyles,ne=null===(d=null==ee?void 0:ee.userStoryScreenStyles)||void 0===d?void 0:d.userStoryContentStyles,re=a(e(e({},structuredClone(P)),{value:B(P.value)||""})),oe=re[0],le=re[1],ie=a({userStory:!1}),ae=ie[0],se=ie[1],ue=R().userStory,ce=a(""===O||K===P.artifactId),de=ce[0],ve=ce[1],ye=a(!1);ye[0];var me=ye[1],fe=a(null),he=fe[0],pe=fe[1],Se=a(!1),Ce=Se[0],Ie=Se[1],we=s(null),ge=a(!1);ge[0];var Ne=ge[1],Ue=s(null);u(function(){w&&ve(w)},[w]),u(function(){le(e(e({},structuredClone(P)),{value:B(P.value)||""}))},[P]),u(function(){Z.length>0?ve(!0):K&&ve(K===P.artifactId)},[Z,K,P.artifactId]);var be=function(){pe(null)},De=function(){ve(function(e){return!e})};return o("div",e({className:x.card,style:null==te?void 0:te.cardStyle},{children:[o("div",e({className:x.titleSection,style:null==te?void 0:te.titleSection},{children:[o("div",e({className:x.titleRow,style:null==te?void 0:te.titleRow,onClick:De},{children:[o("div",e({className:x.titleLeft,style:null==te?void 0:te.titleLeft,onMouseEnter:function(){return Ne(!0)},onMouseLeave:function(){return Ne(!1)}},{children:[l(L,{displayName:D}),l("h2",e({className:x.storyTitle,style:null==te?void 0:te.storyTitle},{children:j(P.title)}),P.artifactId)]})),o("div",e({className:x.titleActions,style:null==te?void 0:te.titleActions,onClick:function(e){return e.stopPropagation()}},{children:[!ae.userStory&&o(i,{children:[!1!==(null==X?void 0:X.showShareButton)&&l("button",e({className:x.iconButton,style:null==te?void 0:te.iconButton,onClick:function(e){pe(e.currentTarget)}},{children:l(v,{size:16})})),o(N,e({id:"user-story-share-menu",anchorEl:he,open:!!he,onClose:function(){return pe(null)},style:null==te?void 0:te.userStoryShareMenu},{children:[_&&l(U,e({style:null==te?void 0:te.userStoryMenuItem,onClick:function(){return n(void 0,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return me(!0),F?[4,Promise.all([F("pdf"),F("doc")])]:[2];case 1:return e.sent(),me(!1),[2]}})})}},{children:o("div",e({ref:we,className:x.menuItemContent,style:null==te?void 0:te.menuItemContent},{children:[l(y,{size:16,color:null==te?void 0:te.menuIconColor}),l("p",e({style:null==te?void 0:te.menuLabel},{children:"Download"}))]}))})),l(U,e({style:null==te?void 0:te.userStoryMenuItem,onClick:function(){return n(void 0,void 0,void 0,function(){var t;return r(this,function(n){return t=P,H&&(t=e(e({},P),{value:"".concat(M(null==H?void 0:H.value,P.title)," \n").concat(P.value)})),null==G||G(!0,[t],P.artifactId),be(),[2]})})}},{children:o("div",e({style:null==te?void 0:te.menuItemContent,className:x.menuItemContentPadded},{children:[l(m,{size:16,color:null==te?void 0:te.menuIconColor}),l("p",e({style:null==te?void 0:te.menuLabel},{children:"Send"}))]}))})),l(U,e({style:null==te?void 0:te.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 g.Converter,t=e.makeHtml(B(P.value)||P.value),n=function(e){var t=(new g.Converter).makeHtml(e),n=document.createElement("div");return n.innerHTML=t,n.textContent||n.innerText||""}(B(P.value)||P.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:o("div",e({style:null==te?void 0:te.menuItemContent,className:x.menuItemContentPadded},{children:[l(f,{size:16,color:null==te?void 0:te.menuIconColor}),l("p",e({style:null==te?void 0:te.menuLabel},{children:"Copy"}))]}))}))]}))]}),ae.userStory&&de?l(A,{type:"outline",children:"Cancel",style:null==te?void 0:te.cancelButton,onClick:function(){var t;null===(t=Ue.current)||void 0===t||t.abort(),se(function(t){return e(e({},t),{userStory:!1})})}}):l(i,{}),ae.userStory&&de?l(A,{type:"fill",children:Ce?o("span",e({className:x.savingSpinner},{children:[l(h,{className:x.spinAnimation}),l("span",{children:"Saving..."})]})):"Save",isDisable:Ce,style:Ce?null==te?void 0:te.savingButton:null==te?void 0:te.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(oe),console.log("I am changing RTE editor values",oe)),[4,J($,ue,b,null===(t=Ue.current)||void 0===t?void 0:t.signal)];case 1:return n.sent(),se(function(t){return e(e({},t),{userStory:!1})}),Ie(!1),[2]}})})}}):!q&&!Q&&de&&!1!==(null==X?void 0:X.showEditButton)&&l("button",e({className:x.iconButton,style:null==te?void 0:te.editButton,onClick:function(){return se(function(t){return e(e({},t),{userStory:!0})})}},{children:l(p,{color:null==te?void 0:te.pencilIconColor,size:16})})),l("button",e({type:"button",onClick:function(e){e.stopPropagation(),De()},style:null==te?void 0:te.chevronButton,className:x.chevronButton},{children:l(de?S:C,{className:x.chevronIcon,color:null==te?void 0:te.chevronIconColor})}))]}))]})),l("div",{className:x.divider,style:null==te?void 0:te.dividerStyle})]})),de&&l("div",e({className:x.cardContent,style:null==te?void 0:te.cardContentStyle},{children:o("div",e({className:x.contentInner,style:null==te?void 0:te.contentInner},{children:[o("div",e({className:x.descriptionSection,style:null==te?void 0:te.descriptionSection},{children:[l("div",{className:x.justifyBetween,style:null==te?void 0:te.justifyBetween}),ae.userStory?l(T,{minHeight:"100%",height:"100%",type:"string",value:B(P.value)||"",handleUpdateState:function(t,n){var r=k(n);le(function(t){return e(e({},t),{value:r||""})})},doNotShowBorderInViewMode:!1,onBlur:function(){},mode:ae.userStory?"edit":"readOnly"}):l(E,{showUserStoryDiff:Q,isParent:""===O,message:B(P.value)||"",artifactId:P.artifactId,customStyles:ne})]})),null===(I=oe.sub_features)||void 0===I?void 0:I.map(function(n,r){return l(z,{artifactId:b,isUserStoryCurrentlyUpdated:w,artifactTitleId:"".concat(D,"-").concat(String.fromCharCode(65+r)),parentUserStory:P,parentIndex:"".concat(O).concat(O&&".").concat(V),currentIndex:"".concat(r+1),doNotShowBorderInViewMode:!1,currentUserStory:n,onUserStoryChange:function(n){return function(n,r){var o=t([],P.sub_features||[],!0);o[n]=r,W(e(e({},P),{sub_features:o}))}(r,n)},enableDownload:!0,isDiffEditReviewMode:q,showUserStoryDiff:Q,updateUserStoryArtifact:J,handleDownloadUserStory:F,handleOpenSendDialog:G,elementDisplayConfig:X},n.artifactId)})]}))}))]}))},H=function(n){var r=n.artifactTitleIDs,a=n.isDiffEditReviewMode,s=n.showUserStoryDiff,u=n.updateUserStoryArtifact,v=n.isUserStoryCurrentlyUpdated,y=n.artifactId,m=n.handleOpenSendDialog,f=n.handleDownloadUserStory,h=n.selectedArtifactId,p=n.isDisplayHighlightControl,S=n.elementDisplayConfig,C=R(),I=C.userStory,w=C.setUserStory,g=C.customStyles,N=C.searchQueryList,U=C.currentHighlightIndex,b=C.setCurrentHighlightIndex,D=null==g?void 0:g.userStoryCardStyles;return o("div",e({className:x.userStoryCardWrapper,style:p?e(e({},null==D?void 0:D.userStoryCardWrapper),{position:"relative"}):null==D?void 0:D.userStoryCardWrapper},{children:[p&&l(i,{children:N.length>1&&l("div",e({className:x.wrapper},{children:o("div",e({className:x.navigationContainer},{children:[l("button",e({onClick:function(){b(function(e){return 0===e?N.length-1:e-1})},className:x.navButton},{children:l(c,{size:20,className:x.navIcon})})),o("span",e({className:x.navCounter},{children:[U+1,"/",N.length]})),l("button",e({onClick:function(){b(function(e){return e===N.length-1?0:e+1})},className:x.navButton},{children:l(d,{size:20,className:x.navIcon})}))]}))}))}),I.map(function(e,n){return l(z,{isUserStoryCurrentlyUpdated:v,artifactId:y,artifactTitleId:r[n]||"",currentUserStory:e,onUserStoryChange:function(e){w(function(r){return r[n]=e,t([],r,!0)})},parentIndex:"",currentIndex:"".concat(n+1),doNotShowBorderInViewMode:!0,enableDownload:!0,isDiffEditReviewMode:a,showUserStoryDiff:s,updateUserStoryArtifact:u,handleOpenSendDialog:m,handleDownloadUserStory:f,selectedArtifactId:h,elementDisplayConfig:S},e.artifactId)})]}))};export{z as StoryCard,H as UserStoryCardWrapper,z as default,j as replaceLearnedTagsWithInfo};
|
|
1
|
+
import{__assign as e,__spreadArray as t,__awaiter as n,__generator as r}from"tslib";import{jsxs as o,jsx as i,Fragment as l}from"react/jsx-runtime";import{useState as a,useRef as s,useEffect as u}from"react";import{ChevronUpIcon as c,ChevronDownIcon as d,ExternalLink as v,Download as y,Share2 as h,Copy as m,LoaderCircle as f,PencilIcon as p,ChevronUp as S,ChevronDown as C,Info as I,Bookmark as g}from"lucide-react";import w from"showdown";import{Menu as N,MenuItem as U,Tooltip as D}from"@mui/material";import{v4 as b}from"uuid";import x from"./UserStoryCard.module.css.js";import{formatMarkdown as B,indentMarkdown as k}from"../../utils/helpers.js";import{replaceTitleSection as M}from"../../utils/user-story.utils.js";import A from"../../shared/AtomicButton.js";import T from"../RichTextEditor/RichTextEditor.js";import E from"../userstory-with-citation/UserStoryWithCitation.js";import{useRequirementAI as H}from"../RequirementAIWrapper/RequirementAIWrapper.js";function R(t){for(var n,r=[],o=/<learned>(.*?)<\/learned>/g,l=0,a=0;null!==(n=o.exec(t));){var s=n[1],u=n.index;u>l&&r.push(i("span",{children:t.slice(l,u)},"text-pre-".concat(a++))),r.push(i(D,e({title:s,placement:"top"},{children:i(I,{size:16,className:"inline-block mx-1 text-blue-500 hover:text-blue-700 cursor"})}),"tooltip-".concat(b()))),l=o.lastIndex}return l<(null==t?void 0:t.length)&&r.push(i("span",{children:t.slice(l)},"text-post-".concat(a++))),r}var j=function(t){var n,r=t.displayName,l=H().customStyles,a=null===(n=null==l?void 0:l.userStoryCardStyles)||void 0===n?void 0:n.showDisplayName;return o("div",e({className:x.displayName,style:null==a?void 0:a.wrapper},{children:[i(g,{className:x.displayNameIcon,style:null==a?void 0:a.displayNameIcon}),o("span",e({style:null==a?void 0:a.label},{children:[r,":"]}))]}))},L=function(c){var d,I,g=c.isUserStoryCurrentlyUpdated,D=c.artifactId,b=c.artifactTitleId,z=c.parentUserStory,P=c.currentUserStory,W=c.onUserStoryChange,O=c.parentIndex,V=c.currentIndex,_=c.enableDownload,q=c.isDiffEditReviewMode,Q=c.showUserStoryDiff,F=c.handleDownloadUserStory,G=c.handleOpenSendDialog,J=c.updateUserStoryArtifact,K=c.selectedArtifactId,X=c.isDisplayHighlightControl,Y=c.elementDisplayConfig,Z=H(),$=Z.searchQueryList,ee=Z.citations,te=Z.customStyles,ne=null==te?void 0:te.userStoryCardStyles,re=null===(d=null==te?void 0:te.userStoryScreenStyles)||void 0===d?void 0:d.userStoryContentStyles,oe=a(e(e({},structuredClone(P)),{value:B(P.value)||""})),ie=oe[0],le=oe[1],ae=a({userStory:!1}),se=ae[0],ue=ae[1],ce=H().userStory,de=a(""===O||K===P.artifactId),ve=de[0],ye=de[1],he=a(!1);he[0];var me=he[1],fe=a(null),pe=fe[0],Se=fe[1],Ce=a(!1),Ie=Ce[0],ge=Ce[1],we=s(null),Ne=a(!1);Ne[0];var Ue=Ne[1],De=s(null);u(function(){g&&ye(g)},[g]),u(function(){le(e(e({},structuredClone(P)),{value:B(P.value)||""}))},[P]),u(function(){$.length>0?ye(!0):K&&ye(K===P.artifactId)},[$,K,P.artifactId]);var be=function(){Se(null)},xe=function(){ye(function(e){return!e})};return o("div",e({className:x.card,style:null==ne?void 0:ne.cardStyle},{children:[o("div",e({className:x.titleSection,style:null==ne?void 0:ne.titleSection},{children:[o("div",e({className:x.titleRow,style:null==ne?void 0:ne.titleRow,onClick:xe},{children:[o("div",e({className:x.titleLeft,style:null==ne?void 0:ne.titleLeft,onMouseEnter:function(){return Ue(!0)},onMouseLeave:function(){return Ue(!1)}},{children:[i(j,{displayName:b}),i("h2",e({className:x.storyTitle,style:null==ne?void 0:ne.storyTitle},{children:R(P.title)}),P.artifactId)]})),o("div",e({className:x.titleActions,style:null==ne?void 0:ne.titleActions,onClick:function(e){return e.stopPropagation()}},{children:[!se.userStory&&o(l,{children:[!1!==(null==Y?void 0:Y.showShareButton)&&i("button",e({className:x.iconButton,style:null==ne?void 0:ne.iconButton,onClick:function(e){Se(e.currentTarget)}},{children:i(v,{size:16})})),o(N,e({id:"user-story-share-menu",anchorEl:pe,open:!!pe,onClose:function(){return Se(null)},style:null==ne?void 0:ne.userStoryShareMenu},{children:[_&&i(U,e({style:null==ne?void 0:ne.userStoryMenuItem,onClick:function(){return n(void 0,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return me(!0),F?[4,Promise.all([F("pdf"),F("doc")])]:[2];case 1:return e.sent(),me(!1),[2]}})})}},{children:o("div",e({ref:we,className:x.menuItemContent,style:null==ne?void 0:ne.menuItemContent},{children:[i(y,{size:16,color:null==ne?void 0:ne.menuIconColor}),i("p",e({style:null==ne?void 0:ne.menuLabel},{children:"Download"}))]}))})),i(U,e({style:null==ne?void 0:ne.userStoryMenuItem,onClick:function(){return n(void 0,void 0,void 0,function(){var t;return r(this,function(n){return t=P,z&&(t=e(e({},P),{value:"".concat(M(null==z?void 0:z.value,P.title)," \n").concat(P.value)})),null==G||G(!0,[t],P.artifactId),be(),[2]})})}},{children:o("div",e({style:null==ne?void 0:ne.menuItemContent,className:x.menuItemContentPadded},{children:[i(h,{size:16,color:null==ne?void 0:ne.menuIconColor}),i("p",e({style:null==ne?void 0:ne.menuLabel},{children:"Send"}))]}))})),i(U,e({style:null==ne?void 0:ne.userStoryMenuItem,onClick:function(){return n(void 0,void 0,void 0,function(){var e,t,n,o,i;return r(this,function(r){switch(r.label){case 0:e=new w.Converter,t=e.makeHtml(B(P.value)||P.value),n=function(e){var t=(new w.Converter).makeHtml(e),n=document.createElement("div");return n.innerHTML=t,n.textContent||n.innerText||""}(B(P.value)||P.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 i=r.sent(),console.error("Failed to copy user story:",i),[3,5];case 4:return be(),[7];case 5:return[2]}})})}},{children:o("div",e({style:null==ne?void 0:ne.menuItemContent,className:x.menuItemContentPadded},{children:[i(m,{size:16,color:null==ne?void 0:ne.menuIconColor}),i("p",e({style:null==ne?void 0:ne.menuLabel},{children:"Copy"}))]}))}))]}))]}),se.userStory&&ve?i(A,{type:"outline",children:"Cancel",style:null==ne?void 0:ne.cancelButton,onClick:function(){var t;null===(t=De.current)||void 0===t||t.abort(),ue(function(t){return e(e({},t),{userStory:!1})})}}):i(l,{}),se.userStory&&ve?i(A,{type:"fill",children:Ie?o("span",e({className:x.savingSpinner},{children:[i(f,{className:x.spinAnimation}),i("span",{children:"Saving..."})]})):"Save",isDisable:Ie,style:Ie?null==ne?void 0:ne.savingButton:null==ne?void 0:ne.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 ge(!0),"userStory"==="userStory"&&(W(ie),console.log("I am changing RTE editor values",ie)),[4,J(ee,ce,D,null===(t=De.current)||void 0===t?void 0:t.signal)];case 1:return n.sent(),ue(function(t){return e(e({},t),{userStory:!1})}),ge(!1),[2]}})})}}):!q&&!Q&&ve&&!1!==(null==Y?void 0:Y.showEditButton)&&i("button",e({className:x.iconButton,style:null==ne?void 0:ne.editButton,onClick:function(){return ue(function(t){return e(e({},t),{userStory:!0})})}},{children:i(p,{color:null==ne?void 0:ne.pencilIconColor,size:16})})),i("button",e({type:"button",onClick:function(e){e.stopPropagation(),xe()},style:null==ne?void 0:ne.chevronButton,className:x.chevronButton},{children:i(ve?S:C,{className:x.chevronIcon,color:null==ne?void 0:ne.chevronIconColor})}))]}))]})),i("div",{className:x.divider,style:null==ne?void 0:ne.dividerStyle})]})),ve&&i("div",e({className:x.cardContent,style:null==ne?void 0:ne.cardContentStyle},{children:o("div",e({className:x.contentInner,style:null==ne?void 0:ne.contentInner},{children:[o("div",e({className:x.descriptionSection,style:null==ne?void 0:ne.descriptionSection},{children:[i("div",{className:x.justifyBetween,style:null==ne?void 0:ne.justifyBetween}),se.userStory?i(T,{minHeight:"100%",height:"100%",type:"string",value:B(P.value)||"",handleUpdateState:function(t,n){var r=k(n);le(function(t){return e(e({},t),{value:r||""})})},doNotShowBorderInViewMode:!1,onBlur:function(){},mode:se.userStory?"edit":"readOnly"}):i(E,{showUserStoryDiff:Q,isParent:""===O,message:B(P.value)||"",artifactId:P.artifactId,customStyles:re,isDisplayHighlightControl:X})]})),null===(I=ie.sub_features)||void 0===I?void 0:I.map(function(n,r){return i(L,{artifactId:D,isUserStoryCurrentlyUpdated:g,artifactTitleId:"".concat(b,"-").concat(String.fromCharCode(65+r)),parentUserStory:P,parentIndex:"".concat(O).concat(O&&".").concat(V),currentIndex:"".concat(r+1),doNotShowBorderInViewMode:!1,currentUserStory:n,onUserStoryChange:function(n){return function(n,r){var o=t([],P.sub_features||[],!0);o[n]=r,W(e(e({},P),{sub_features:o}))}(r,n)},enableDownload:!0,isDiffEditReviewMode:q,showUserStoryDiff:Q,updateUserStoryArtifact:J,handleDownloadUserStory:F,handleOpenSendDialog:G,isDisplayHighlightControl:X,elementDisplayConfig:Y},n.artifactId)})]}))}))]}))},z=function(n){var r=n.artifactTitleIDs,a=n.isDiffEditReviewMode,s=n.showUserStoryDiff,u=n.updateUserStoryArtifact,v=n.isUserStoryCurrentlyUpdated,y=n.artifactId,h=n.handleOpenSendDialog,m=n.handleDownloadUserStory,f=n.selectedArtifactId,p=n.isDisplayHighlightControl,S=n.elementDisplayConfig,C=H(),I=C.userStory,g=C.setUserStory,w=C.customStyles,N=C.searchQueryList,U=C.currentHighlightIndex,D=C.setCurrentHighlightIndex,b=null==w?void 0:w.userStoryCardStyles,B=0===U,k=U===N.length-1;return o("div",e({className:x.userStoryCardWrapper,style:p?e(e({},null==b?void 0:b.userStoryCardWrapper),{position:"relative"}):null==b?void 0:b.userStoryCardWrapper},{children:[p&&i(l,{children:N.length>1&&i("div",e({className:x.wrapper},{children:i("div",e({className:x.highlightNavigation},{children:o("div",e({className:x.navigationContainer},{children:[o("span",e({className:x.navCounter},{children:[U+1," of ",N.length]})),o("div",e({className:x.navButtons},{children:[i("button",e({onClick:function(){U>0&&D(function(e){return e-1})},className:x.navButton,disabled:B},{children:i(c,{size:20,className:x.navIcon})})),i("button",e({onClick:function(){U<N.length-1&&D(function(e){return e+1})},className:x.navButton,disabled:k},{children:i(d,{size:20,className:x.navIcon})}))]}))]}))}))}))}),I.map(function(e,n){return i(L,{isUserStoryCurrentlyUpdated:v,artifactId:y,artifactTitleId:r[n]||"",currentUserStory:e,onUserStoryChange:function(e){g(function(r){return r[n]=e,t([],r,!0)})},parentIndex:"",currentIndex:"".concat(n+1),doNotShowBorderInViewMode:!0,enableDownload:!0,isDiffEditReviewMode:a,showUserStoryDiff:s,updateUserStoryArtifact:u,handleOpenSendDialog:h,handleDownloadUserStory:m,selectedArtifactId:f,isDisplayHighlightControl:p,elementDisplayConfig:S},e.artifactId)})]}))};export{L as StoryCard,z as UserStoryCardWrapper,L as default,R as replaceLearnedTagsWithInfo};
|
|
2
2
|
//# sourceMappingURL=UserStoryCard.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var e={card:"UserStoryCard-module_card__9pErS",titleSection:"UserStoryCard-module_titleSection__pGbpL",titleRow:"UserStoryCard-module_titleRow__TyEN9",titleLeft:"UserStoryCard-module_titleLeft__fzF6u",titleActions:"UserStoryCard-module_titleActions__Dabx1",divider:"UserStoryCard-module_divider__xG-FC",displayName:"UserStoryCard-module_displayName__Jj-HK",displayNameIcon:"UserStoryCard-module_displayNameIcon__-SCM3",storyTitle:"UserStoryCard-module_storyTitle__FDX4p",iconButton:"UserStoryCard-module_iconButton__DkfRA",chevronButton:"UserStoryCard-module_chevronButton__nxxYC",chevronIcon:"UserStoryCard-module_chevronIcon__Azswy",cardContent:"UserStoryCard-module_cardContent__rR2g3",contentInner:"UserStoryCard-module_contentInner__AYQbu",descriptionSection:"UserStoryCard-module_descriptionSection__5j6cg",justifyBetween:"UserStoryCard-module_justifyBetween__cD-EG",savingSpinner:"UserStoryCard-module_savingSpinner__UmbEq",spinAnimation:"UserStoryCard-module_spinAnimation__INSou",spin:"UserStoryCard-module_spin__afcZ6",menuItemContent:"UserStoryCard-module_menuItemContent__U-ZxP",wrapper:"UserStoryCard-module_wrapper__ahzRY",navigationContainer:"UserStoryCard-module_navigationContainer__2UcOj",navButton:"UserStoryCard-module_navButton__EWoVi",navIcon:"UserStoryCard-module_navIcon__3ZSIH",navCounter:"UserStoryCard-module_navCounter__sIIeS",menuItemContentPadded:"UserStoryCard-module_menuItemContentPadded__w6udq",userStoryCardWrapper:"UserStoryCard-module_userStoryCardWrapper__0gC-E"};!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const r=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;r&&e.setAttribute("nonce",r),e.appendChild(document.createTextNode(".UserStoryCard-module_card__9pErS{border:1px solid #e5e5e5;border-radius:.75rem;display:flex;flex:1;flex-direction:column;margin-bottom:auto;margin-left:auto;margin-right:auto;width:100%}.UserStoryCard-module_titleSection__pGbpL{cursor:pointer;padding:.5rem 1rem;width:100%}.UserStoryCard-module_titleRow__TyEN9{align-items:center;display:flex;justify-content:space-between;margin-top:.5rem;width:100%}.UserStoryCard-module_titleLeft__fzF6u{align-items:center;display:flex;font-family:Inter,sans-serif;gap:.5rem;max-width:66.666%}.UserStoryCard-module_titleActions__Dabx1{align-items:center;display:flex;gap:.5rem;width:fit-content}.UserStoryCard-module_divider__xG-FC{background-color:#ffffff4d;border-radius:9999px;height:.25rem;width:4rem}.UserStoryCard-module_displayName__Jj-HK{align-items:center;color:#4b5563;display:inline-flex;font-size:.875rem;font-weight:500;gap:.5rem}.UserStoryCard-module_displayNameIcon__-SCM3{height:1rem;width:1rem}.UserStoryCard-module_storyTitle__FDX4p{color:#374151;flex:1;font-size:1rem;font-weight:600}.UserStoryCard-module_iconButton__DkfRA{align-items:center;background-color:#fff;border:1px solid #d1d5db;border-radius:.3rem;box-shadow:0 1px 2px #0000000d;cursor:pointer;display:flex;justify-content:center;padding:.4rem .8rem}.UserStoryCard-module_iconButton__DkfRA:hover{background-color:#f9fafb}.UserStoryCard-module_chevronButton__nxxYC{background:none;border:none;cursor:pointer;margin-left:.5rem;padding:.25rem}.UserStoryCard-module_chevronIcon__Azswy{color:#4b5563;height:1.5rem;width:1.5rem}.UserStoryCard-module_cardContent__rR2g3{border-top:1px solid #e5e5e5;max-height:fit-content;opacity:1;padding:1.5rem 2rem 2rem;transition:all .3s ease-in-out;width:100%}.UserStoryCard-module_contentInner__AYQbu{display:flex;flex-direction:column;gap:2.5rem;width:100%}.UserStoryCard-module_descriptionSection__5j6cg{align-items:flex-end;display:flex;flex-direction:column;gap:1rem;width:100%}.UserStoryCard-module_justifyBetween__cD-EG{display:flex;justify-content:space-between}.UserStoryCard-module_savingSpinner__UmbEq{align-items:center;color:#fff;display:flex;flex-direction:row;gap:.5rem}.UserStoryCard-module_spinAnimation__INSou{animation:UserStoryCard-module_spin__afcZ6 1s linear infinite}@keyframes UserStoryCard-module_spin__afcZ6{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.UserStoryCard-module_menuItemContent__U-ZxP{align-items:center;display:flex;flex-direction:row;gap:.5rem;margin-left:.25rem}.UserStoryCard-module_wrapper__ahzRY{display:flex;justify-content:flex-end;margin-bottom:5px;width:100
|
|
1
|
+
var e={card:"UserStoryCard-module_card__9pErS",titleSection:"UserStoryCard-module_titleSection__pGbpL",titleRow:"UserStoryCard-module_titleRow__TyEN9",titleLeft:"UserStoryCard-module_titleLeft__fzF6u",titleActions:"UserStoryCard-module_titleActions__Dabx1",divider:"UserStoryCard-module_divider__xG-FC",displayName:"UserStoryCard-module_displayName__Jj-HK",displayNameIcon:"UserStoryCard-module_displayNameIcon__-SCM3",storyTitle:"UserStoryCard-module_storyTitle__FDX4p",iconButton:"UserStoryCard-module_iconButton__DkfRA",chevronButton:"UserStoryCard-module_chevronButton__nxxYC",chevronIcon:"UserStoryCard-module_chevronIcon__Azswy",cardContent:"UserStoryCard-module_cardContent__rR2g3",contentInner:"UserStoryCard-module_contentInner__AYQbu",descriptionSection:"UserStoryCard-module_descriptionSection__5j6cg",justifyBetween:"UserStoryCard-module_justifyBetween__cD-EG",savingSpinner:"UserStoryCard-module_savingSpinner__UmbEq",spinAnimation:"UserStoryCard-module_spinAnimation__INSou",spin:"UserStoryCard-module_spin__afcZ6",menuItemContent:"UserStoryCard-module_menuItemContent__U-ZxP",wrapper:"UserStoryCard-module_wrapper__ahzRY",highlightNavigation:"UserStoryCard-module_highlightNavigation__vv8RW",navigationContainer:"UserStoryCard-module_navigationContainer__2UcOj",navButton:"UserStoryCard-module_navButton__EWoVi",navIcon:"UserStoryCard-module_navIcon__3ZSIH",navCounter:"UserStoryCard-module_navCounter__sIIeS",navButtons:"UserStoryCard-module_navButtons__6oLaN",menuItemContentPadded:"UserStoryCard-module_menuItemContentPadded__w6udq",userStoryCardWrapper:"UserStoryCard-module_userStoryCardWrapper__0gC-E"};!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const r=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;r&&e.setAttribute("nonce",r),e.appendChild(document.createTextNode(".UserStoryCard-module_card__9pErS{border:1px solid #e5e5e5;border-radius:.75rem;display:flex;flex:1;flex-direction:column;margin-bottom:auto;margin-left:auto;margin-right:auto;width:100%}.UserStoryCard-module_titleSection__pGbpL{cursor:pointer;padding:.5rem 1rem;width:100%}.UserStoryCard-module_titleRow__TyEN9{align-items:center;display:flex;justify-content:space-between;margin-top:.5rem;width:100%}.UserStoryCard-module_titleLeft__fzF6u{align-items:center;display:flex;font-family:Inter,sans-serif;gap:.5rem;max-width:66.666%}.UserStoryCard-module_titleActions__Dabx1{align-items:center;display:flex;gap:.5rem;width:fit-content}.UserStoryCard-module_divider__xG-FC{background-color:#ffffff4d;border-radius:9999px;height:.25rem;width:4rem}.UserStoryCard-module_displayName__Jj-HK{align-items:center;color:#4b5563;display:inline-flex;font-size:.875rem;font-weight:500;gap:.5rem}.UserStoryCard-module_displayNameIcon__-SCM3{height:1rem;width:1rem}.UserStoryCard-module_storyTitle__FDX4p{color:#374151;flex:1;font-size:1rem;font-weight:600}.UserStoryCard-module_iconButton__DkfRA{align-items:center;background-color:#fff;border:1px solid #d1d5db;border-radius:.3rem;box-shadow:0 1px 2px #0000000d;cursor:pointer;display:flex;justify-content:center;padding:.4rem .8rem}.UserStoryCard-module_iconButton__DkfRA:hover{background-color:#f9fafb}.UserStoryCard-module_chevronButton__nxxYC{background:none;border:none;cursor:pointer;margin-left:.5rem;padding:.25rem}.UserStoryCard-module_chevronIcon__Azswy{color:#4b5563;height:1.5rem;width:1.5rem}.UserStoryCard-module_cardContent__rR2g3{border-top:1px solid #e5e5e5;max-height:fit-content;opacity:1;padding:1.5rem 2rem 2rem;transition:all .3s ease-in-out;width:100%}.UserStoryCard-module_contentInner__AYQbu{display:flex;flex-direction:column;gap:2.5rem;width:100%}.UserStoryCard-module_descriptionSection__5j6cg{align-items:flex-end;display:flex;flex-direction:column;gap:1rem;width:100%}.UserStoryCard-module_justifyBetween__cD-EG{display:flex;justify-content:space-between}.UserStoryCard-module_savingSpinner__UmbEq{align-items:center;color:#fff;display:flex;flex-direction:row;gap:.5rem}.UserStoryCard-module_spinAnimation__INSou{animation:UserStoryCard-module_spin__afcZ6 1s linear infinite}@keyframes UserStoryCard-module_spin__afcZ6{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.UserStoryCard-module_menuItemContent__U-ZxP{align-items:center;display:flex;flex-direction:row;gap:.5rem;margin-left:.25rem}.UserStoryCard-module_wrapper__ahzRY{background-color:#fff;border-bottom:1px solid hsla(0,0%,50%,.126);display:flex;justify-content:flex-end;margin-bottom:4px;padding:5px 10px 5px 0;position:sticky;top:0;width:100%;z-index:1000}.UserStoryCard-module_highlightNavigation__vv8RW{width:max-content}.UserStoryCard-module_navigationContainer__2UcOj{align-items:center;border:1px solid hsla(0,0%,50%,.126);border-radius:10px;display:inline-flex;gap:8px;padding:6px 8px}.UserStoryCard-module_navButton__EWoVi{align-items:center;background:none;border:none;color:#374151;cursor:pointer;display:flex;justify-content:center;padding:2px;transition:color .15s ease}.UserStoryCard-module_navIcon__3ZSIH{height:20px;width:20px}.UserStoryCard-module_navCounter__sIIeS{color:#4b5563;font-size:17px;font-weight:500;letter-spacing:.01em;min-width:28px;text-align:center}.UserStoryCard-module_navButtons__6oLaN{display:flex;gap:0}.UserStoryCard-module_navButton__EWoVi:disabled{cursor:not-allowed;opacity:.4}.UserStoryCard-module_menuItemContentPadded__w6udq{align-items:center;display:flex;flex-direction:row;gap:.5rem;padding-left:.25rem}.UserStoryCard-module_userStoryCardWrapper__0gC-E{width:100%}"));const t=document.head||document.getElementsByTagName("head")[0]||document.documentElement;t&&t.appendChild(e)}();export{e as default};
|
|
2
2
|
//# sourceMappingURL=UserStoryCard.module.css.js.map
|
package/dist/features/RequirementAI/components/citations/appmod-citation/AppmodCitationContent.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e}from"tslib";import{jsx as n,jsxs as l}from"react/jsx-runtime";import{useRef as r,useMemo as i,useEffect as o}from"react";import a from"react-markdown";import d from"rehype-raw";import t from"./AppModCitationContent.module.css.js";import s from"./components/CodeLinkHandler.js";import{DEFAULT_HIGHLIGHT_THEME as c}from"./types.js";import{renderAIConfidenceDisplay as u}from"../../../../RequirementAiCitations/AiReasoning/components/AIConfidenceDisplay.js";import{SparkleIcon as m}from"./icons/SparkleIcon.js";var h=function(l,r,i,o){var a=(null==r?void 0:r.highlight)||c,d=function(){return l?{backgroundColor:a.background,color:a.text,padding:"2px 3px",borderRadius:"2px",boxDecorationBreak:"clone",WebkitBoxDecorationBreak:"clone"}:{}},u=function(){return e(e({},d()),{display:"inline"})};return{h1:function(i){var o,a=i.children;return n("h1",e({className:t.heading1,style:null===(o=null==r?void 0:r.markdown)||void 0===o?void 0:o.heading1},{children:l?n("span",e({style:d()},{children:a})):a}))},h2:function(i){var o,a=i.children;return n("h2",e({className:t.heading2,style:null===(o=null==r?void 0:r.markdown)||void 0===o?void 0:o.heading2},{children:l?n("span",e({style:d()},{children:a})):a}))},h3:function(i){var o,a=i.children;return n("h3",e({className:t.heading3,style:null===(o=null==r?void 0:r.markdown)||void 0===o?void 0:o.heading3},{children:l?n("span",e({style:d()},{children:a})):a}))},h4:function(i){var o,a=i.children;return n("h4",e({className:t.heading4,style:null===(o=null==r?void 0:r.markdown)||void 0===o?void 0:o.heading4},{children:l?n("span",e({style:d()},{children:a})):a}))},h5:function(i){var o,a=i.children;return n("h5",e({className:t.heading5,style:null===(o=null==r?void 0:r.markdown)||void 0===o?void 0:o.heading5},{children:l?n("span",e({style:d()},{children:a})):a}))},h6:function(i){var o,a=i.children;return n("h6",e({className:t.heading6,style:null===(o=null==r?void 0:r.markdown)||void 0===o?void 0:o.heading6},{children:l?n("span",e({style:d()},{children:a})):a}))},p:function(i){var o,a=i.children;return n("p",e({className:t.paragraph,style:null===(o=null==r?void 0:r.markdown)||void 0===o?void 0:o.paragraph},{children:l?n("span",e({style:u()},{children:a})):a}))},ol:function(l){var i,o=l.children;return n("ol",e({className:t.orderedList,style:null===(i=null==r?void 0:r.markdown)||void 0===i?void 0:i.list},{children:o}))},ul:function(l){var i,o=l.children;return n("ul",e({className:t.unorderedList,style:null===(i=null==r?void 0:r.markdown)||void 0===i?void 0:i.list},{children:o}))},li:function(i){var o,a=i.children;return n("li",e({className:t.listItem,style:null===(o=null==r?void 0:r.markdown)||void 0===o?void 0:o.listItem},{children:l?n("span",e({style:u()},{children:a})):a}))},strong:function(i){var o,a=i.children;return n("strong",e({className:t.strong,style:e(e({},null===(o=null==r?void 0:r.markdown)||void 0===o?void 0:o.strong),l?d():{})},{children:a}))},em:function(i){var o,a=i.children;return n("em",e({className:t.emphasis,style:e(e({},null===(o=null==r?void 0:r.markdown)||void 0===o?void 0:o.emphasis),l?d():{})},{children:a}))},a:function(d){var t=d.children,c=d.href;return n(s,e({href:c,codeLinkConfig:o,isHighlighted:l,highlightTheme:a,customStyles:null==r?void 0:r.markdown,customIcon:null==i?void 0:i.appModCitationLinkIcon},{children:t}))},code:function(i){var o,d,s=i.children,c=i.className,u=null==c?void 0:c.includes("language-"),m=l?{backgroundColor:a.codeBackground,color:a.codeText,border:"1px solid ".concat(a.codeBorder)}:{};return u?n("div",{children:n("code",e({className:t.codeBlock,style:e(e({},null===(d=null==r?void 0:r.markdown)||void 0===d?void 0:d.codeBlock),m)},{children:s}))}):n("code",e({className:t.inlineCode,style:e(e({},null===(o=null==r?void 0:r.markdown)||void 0===o?void 0:o.code),m)},{children:s}))},pre:function(l){var r=l.children;return n("pre",e({className:t.preBlock},{children:r}))},blockquote:function(i){var o,d=i.children;return n("blockquote",e({className:t.blockquote,style:e(e({},null===(o=null==r?void 0:r.markdown)||void 0===o?void 0:o.blockquote),l?{borderColor:a.border}:{})},{children:l?n("span",e({style:u()},{children:d})):d}))},table:function(i){var o,a=i.children;return n("div",e({className:t.tableWrapper},{children:n("table",e({className:t.table,style:e(e({},null===(o=null==r?void 0:r.markdown)||void 0===o?void 0:o.table),l?d():{})},{children:a}))}))},thead:function(l){var r=l.children;return n("thead",e({className:t.tableHead},{children:r}))},tbody:function(l){var r=l.children;return n("tbody",e({className:t.tableBody},{children:r}))},tr:function(r){var i=r.children;return n("tr",e({className:t.tableRow,style:l?d():{}},{children:i}))},th:function(i){var o,a=i.children;return n("th",e({className:t.tableHeader,style:e(e({},null===(o=null==r?void 0:r.markdown)||void 0===o?void 0:o.tableHeader),l?d():{})},{children:a}))},td:function(i){var o,a=i.children;return n("td",e({className:t.tableCell,style:e(e({},null===(o=null==r?void 0:r.markdown)||void 0===o?void 0:o.tableCell),l?d():{})},{children:a}))},details:function(l){var r=l.children;return n("details",e({className:t.details},{children:r}))},summary:function(r){var i=r.children,o=function(e){var n;return"string"==typeof e?e:Array.isArray(e)?e.map(o).join(""):(null===(n=null==e?void 0:e.props)||void 0===n?void 0:n.children)?o(e.props.children):""},a=o(i).replace(/:$/,"").trim();return n("summary",e({className:t.summary,style:l?d():{}},{children:a}))}}},v=function(s){var c,v,p=s.citation,y=s.customStyles,f=s.customIcons,g=s.codeLinkConfig,b=s.isLoading,N=void 0!==b&&b,k=r(null),
|
|
1
|
+
import{__assign as e}from"tslib";import{jsx as n,jsxs as l}from"react/jsx-runtime";import{useRef as r,useMemo as i,useEffect as o}from"react";import a from"react-markdown";import d from"rehype-raw";import t from"./AppModCitationContent.module.css.js";import s from"./components/CodeLinkHandler.js";import{DEFAULT_HIGHLIGHT_THEME as c}from"./types.js";import{renderAIConfidenceDisplay as u}from"../../../../RequirementAiCitations/AiReasoning/components/AIConfidenceDisplay.js";import{SparkleIcon as m}from"./icons/SparkleIcon.js";var h=function(l,r,i,o){var a=(null==r?void 0:r.highlight)||c,d=function(){return l?{backgroundColor:a.background,color:a.text,padding:"2px 3px",borderRadius:"2px",boxDecorationBreak:"clone",WebkitBoxDecorationBreak:"clone"}:{}},u=function(){return e(e({},d()),{display:"inline"})};return{h1:function(i){var o,a=i.children;return n("h1",e({className:t.heading1,style:null===(o=null==r?void 0:r.markdown)||void 0===o?void 0:o.heading1},{children:l?n("span",e({style:d()},{children:a})):a}))},h2:function(i){var o,a=i.children;return n("h2",e({className:t.heading2,style:null===(o=null==r?void 0:r.markdown)||void 0===o?void 0:o.heading2},{children:l?n("span",e({style:d()},{children:a})):a}))},h3:function(i){var o,a=i.children;return n("h3",e({className:t.heading3,style:null===(o=null==r?void 0:r.markdown)||void 0===o?void 0:o.heading3},{children:l?n("span",e({style:d()},{children:a})):a}))},h4:function(i){var o,a=i.children;return n("h4",e({className:t.heading4,style:null===(o=null==r?void 0:r.markdown)||void 0===o?void 0:o.heading4},{children:l?n("span",e({style:d()},{children:a})):a}))},h5:function(i){var o,a=i.children;return n("h5",e({className:t.heading5,style:null===(o=null==r?void 0:r.markdown)||void 0===o?void 0:o.heading5},{children:l?n("span",e({style:d()},{children:a})):a}))},h6:function(i){var o,a=i.children;return n("h6",e({className:t.heading6,style:null===(o=null==r?void 0:r.markdown)||void 0===o?void 0:o.heading6},{children:l?n("span",e({style:d()},{children:a})):a}))},p:function(i){var o,a=i.children;return n("p",e({className:t.paragraph,style:null===(o=null==r?void 0:r.markdown)||void 0===o?void 0:o.paragraph},{children:l?n("span",e({style:u()},{children:a})):a}))},ol:function(l){var i,o=l.children;return n("ol",e({className:t.orderedList,style:null===(i=null==r?void 0:r.markdown)||void 0===i?void 0:i.list},{children:o}))},ul:function(l){var i,o=l.children;return n("ul",e({className:t.unorderedList,style:null===(i=null==r?void 0:r.markdown)||void 0===i?void 0:i.list},{children:o}))},li:function(i){var o,a=i.children;return n("li",e({className:t.listItem,style:null===(o=null==r?void 0:r.markdown)||void 0===o?void 0:o.listItem},{children:l?n("span",e({style:u()},{children:a})):a}))},strong:function(i){var o,a=i.children;return n("strong",e({className:t.strong,style:e(e({},null===(o=null==r?void 0:r.markdown)||void 0===o?void 0:o.strong),l?d():{})},{children:a}))},em:function(i){var o,a=i.children;return n("em",e({className:t.emphasis,style:e(e({},null===(o=null==r?void 0:r.markdown)||void 0===o?void 0:o.emphasis),l?d():{})},{children:a}))},a:function(d){var t=d.children,c=d.href;return n(s,e({href:c,codeLinkConfig:o,isHighlighted:l,highlightTheme:a,customStyles:null==r?void 0:r.markdown,customIcon:null==i?void 0:i.appModCitationLinkIcon},{children:t}))},code:function(i){var o,d,s=i.children,c=i.className,u=null==c?void 0:c.includes("language-"),m=l?{backgroundColor:a.codeBackground,color:a.codeText,border:"1px solid ".concat(a.codeBorder)}:{};return u?n("div",{children:n("code",e({className:t.codeBlock,style:e(e({},null===(d=null==r?void 0:r.markdown)||void 0===d?void 0:d.codeBlock),m)},{children:s}))}):n("code",e({className:t.inlineCode,style:e(e({},null===(o=null==r?void 0:r.markdown)||void 0===o?void 0:o.code),m)},{children:s}))},pre:function(l){var r=l.children;return n("pre",e({className:t.preBlock},{children:r}))},blockquote:function(i){var o,d=i.children;return n("blockquote",e({className:t.blockquote,style:e(e({},null===(o=null==r?void 0:r.markdown)||void 0===o?void 0:o.blockquote),l?{borderColor:a.border}:{})},{children:l?n("span",e({style:u()},{children:d})):d}))},table:function(i){var o,a=i.children;return n("div",e({className:t.tableWrapper},{children:n("table",e({className:t.table,style:e(e({},null===(o=null==r?void 0:r.markdown)||void 0===o?void 0:o.table),l?d():{})},{children:a}))}))},thead:function(l){var r=l.children;return n("thead",e({className:t.tableHead},{children:r}))},tbody:function(l){var r=l.children;return n("tbody",e({className:t.tableBody},{children:r}))},tr:function(r){var i=r.children;return n("tr",e({className:t.tableRow,style:l?d():{}},{children:i}))},th:function(i){var o,a=i.children;return n("th",e({className:t.tableHeader,style:e(e({},null===(o=null==r?void 0:r.markdown)||void 0===o?void 0:o.tableHeader),l?d():{})},{children:a}))},td:function(i){var o,a=i.children;return n("td",e({className:t.tableCell,style:e(e({},null===(o=null==r?void 0:r.markdown)||void 0===o?void 0:o.tableCell),l?d():{})},{children:a}))},details:function(l){var r=l.children;return n("details",e({className:t.details},{children:r}))},summary:function(r){var i=r.children,o=function(e){var n;return"string"==typeof e?e:Array.isArray(e)?e.map(o).join(""):(null===(n=null==e?void 0:e.props)||void 0===n?void 0:n.children)?o(e.props.children):""},a=o(i).replace(/:$/,"").trim();return n("summary",e({className:t.summary,style:l?d():{}},{children:a}))}}},v=function(s){var c,v,p=s.citation,y=s.customStyles,f=s.customIcons,g=s.codeLinkConfig,b=s.isLoading,N=void 0!==b&&b,k=s.shouldAutoScroll,w=void 0!==k&&k,C=r(null),x=r(null),I=p.description||"",q=p.customMetadata.question||"",A=p.customMetadata.highlighted_text,L=p.customMetadata.relevance_score,B=i(function(){return h(!1,y,f,g)},[y,f,g]),T=i(function(){return h(!0,y,f,g)},[y,f,g]);o(function(){if(w&&(null==A?void 0:A.trim())&&(null==I?void 0:I.trim())&&!N){var e=x.current;if(e){var n=function(){e.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})},l=window.requestAnimationFrame(function(){n(),window.setTimeout(n,120)});return function(){window.cancelAnimationFrame(l)}}}},[I,A,N,w]);var M=(null==f?void 0:f.appModCitationIcon)||n("div",{children:n(m,{className:t.headerIcon})});return l("div",e({ref:C,className:t.container,style:null==y?void 0:y.container},{children:[l("div",e({className:t.header,style:null==y?void 0:y.header},{children:[l("div",e({className:t.headerLeft,style:null==y?void 0:y.headerLeft},{children:[n("span",e({style:null==y?void 0:y.headerIcon},{children:M})),n("span",e({className:t.headerTitle,style:null==y?void 0:y.headerTitle},{children:"AskMod Response"}))]})),u(L,null==y?void 0:y.confidenceDisplay)]})),l("div",e({className:t.questionContainer,style:null==y?void 0:y.questionContainer},{children:[n("p",e({className:t.questionLabel,style:null==y?void 0:y.questionLabel},{children:"Me"})),n("div",e({className:t.questionText,style:null==y?void 0:y.questionText},{children:q||"Ask question to get response"}))]})),n("div",e({className:t.answerIconRow,style:null==y?void 0:y.answerIconRow},{children:l("p",e({className:t.assistantName,style:null==y?void 0:y.assistantName},{children:["Askmod",n("span",e({className:t.assistantNameInner,style:null==y?void 0:y.assistantNameInner},{children:".AI"}))]}))})),n("div",e({className:t.answerContainer,style:null==y?void 0:y.answerContainer},{children:N?n("span",e({className:t.loadingText,style:null===(c=null==y?void 0:y.loading)||void 0===c?void 0:c.text},{children:"Generating..."})):I?function(r,i){var o,s=(void 0===(o=r.replace(/\\n/g,"\n"))&&(o=""),o.replace(/<details\b([^>]*)>/gi,function(e,n){return/\bopen\b/i.test(n)?"<details open>":"<details>"}).replace(/<summary\b[^>]*>\s*<codebasename>([^<]*)<\/codebasename>\s*<\/summary>/gi,function(e,n){return'<summary class="codebase-summary codebasename">From '.concat(n.trim()," codebase</summary>")}).replace(/<\/summary>/g,"</summary>\n").replace(/```codebasename\s*([\s\S]{0,2000}?)```/gi,function(e,n){return"<codebasename>".concat(n.trim(),"</codebasename>")}).trim());if(i&&s.includes(i)){var c=s.indexOf(i),u=s.substring(0,c),m=s.substring(c,c+i.length),h=s.substring(c+i.length),v=!m.trim();return l("div",e({className:t.markdownContent},{children:[u&&n(a,e({rehypePlugins:[d],components:B},{children:u})),m&&!v&&n("div",e({ref:x,"data-appmod-highlight-anchor":"true"},{children:n(a,e({rehypePlugins:[d],components:T},{children:m}))})),m&&v&&m,h&&n(a,e({rehypePlugins:[d],components:B},{children:h}))]}))}return n(a,e({className:t.markdownContent,rehypePlugins:[d],components:B},{children:s}))}(I,A):n("span",e({className:t.errorText,style:null===(v=null==y?void 0:y.error)||void 0===v?void 0:v.text},{children:"Oops! Can't generate your response now."}))}))]}))};export{v as default};
|
|
2
2
|
//# sourceMappingURL=AppmodCitationContent.js.map
|
package/dist/features/RequirementAI/components/citations/appmod-citation/AppmodCitationRenderer.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as t}from"tslib";import{jsx as
|
|
1
|
+
import{__assign as t}from"tslib";import{jsx as n,Fragment as i}from"react/jsx-runtime";import{SparkleIcon as o}from"lucide-react";import{useState as e,useCallback as r}from"react";import a from"../../../../CitationRenderer/CitationRenderer.js";import l from"./AppmodCitationContent.js";var c=function(c){var p=c.title,s=c.citation,m=c.customStyles,d=c.customIcons,u=c.codeLinkConfig,f=c.isLoading,g=void 0!==f&&f,C=c.isOpen,h=e(!1),x=h[0],v=h[1],b=void 0!==C,k=b?!!C:x,w=r(function(){b||v(function(t){return!t})},[b]),y=(null==d?void 0:d.appModCitationIcon)||n(o,{className:"inline align-super mb-1 ml-1",style:{width:"12px",height:"12px"}});return n(a,{inLineCitation:!0,citationTitle:p+"",citationIcon:n(i,{}),citationComponent:n(l,{citation:s,customStyles:m,customIcons:d,codeLinkConfig:u,isLoading:g,shouldAutoScroll:k}),isOpen:k,onToggle:w,chevronDownComponent:y,chevronUpComponent:y,styles:{pillButton:t({fontSize:"13px",margin:"0px",padding:"0px 4px",color:"#3b82f6",cursor:"pointer",verticalAlign:"baseline",whiteSpace:"normal",wordBreak:"break-all",display:"inline-flex",alignItems:"unset",background:"transparent",border:"none"},null==m?void 0:m.pill),citationContent:{width:"100%",background:"transparent",minHeight:"10px",height:"fit-content"}}})};export{c as default};
|
|
2
2
|
//# sourceMappingURL=AppmodCitationRenderer.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e}from"tslib";import{jsx as i,jsxs as o,Fragment as n}from"react/jsx-runtime";import{useState as l}from"react";import{ChevronUp as
|
|
1
|
+
import{__assign as e}from"tslib";import{jsx as i,jsxs as o,Fragment as n}from"react/jsx-runtime";import{useState as l}from"react";import{ChevronUp as t,ChevronDown as r,Check as a,SquareArrowOutUpRight as c,Loader2 as s}from"lucide-react";import d from"./CustomChatCrRedirection.module.css.js";import u from"../ai-reasoning/AiReasoningCitationContent.js";import p from"../../icons/CognitiveDecision.js";import{Tooltip as m}from"@mui/material";function v(v){var g=v.isDefaultOpen,h=v.processItemId,f=v.isCompleted,y=v.mode,C=v.msg,b=v.type,x=v.id,D=v.aiReason,N=v.text,T=v.headerText,I=v.decisionStrength;v.statusUi,v.panelRef;var S=v.onHandleSend,k=v.onRedirectClick,R=v.gapType,j=v.isGenerating,B=void 0!==j&&j,W=v.customStyles,P=v.customIcons,H=v.cognitiveDecisionHeaders,A=l(g),O=A[0],z=A[1],F=(null==P?void 0:P.highConfidence)||i(p,{}),G=function(){"cra"===y?null==S||S("Discuss ambiguities on ".concat(N),x):null==S||S("Deep Dive into ".concat(R," ").concat(T,": ").concat(N),x)};return o("div",e({className:[d.outerWrapper,B?d.outerWrapperDisabled:""].join(" "),style:e(e({},null==W?void 0:W.redirectionOuterWrapper),B?null==W?void 0:W.redirectionOuterWrapperDisabled:{})},{children:[o("div",e({className:[d.card,B?d.cardDisabled:d.cardInteractive].join(" "),style:e(e({},null==W?void 0:W.redirectionCard),B?null==W?void 0:W.redirectionCardDisabled:null==W?void 0:W.redirectionCardInteractive)},{children:[o("div",e({className:d.leftSide,style:null==W?void 0:W.redirectionLeftSide},{children:[i(m,e({title:T+" "+N,placement:"top",slotProps:{tooltip:{sx:e({},null==W?void 0:W.headerTooltip)}}},{children:o("span",e({className:d.textBlock,style:null==W?void 0:W.redirectionTextBlock},{children:[T&&o("span",e({className:d.headerText,style:null==W?void 0:W.redirectionHeaderText},{children:[T,N?" ":""]})),N]}))})),o("span",e({onClick:function(e){e.stopPropagation(),B||z(!O)},className:[d.reasoningToggle,B?d.reasoningToggleDisabled:d.reasoningToggleActive].join(" "),style:e(e({},null==W?void 0:W.reasoningToggle),B?null==W?void 0:W.reasoningToggleDisabled:null==W?void 0:W.reasoningToggleActive)},{children:[F,i(O?t:r,{className:d.chevronIcon,style:null==W?void 0:W.chevronIcon})]}))]})),f?i("div",e({className:d.completeTickWrapper,style:null==W?void 0:W.completeTickWrapper},{children:i(a,{color:(null==W?void 0:W.checkColor)||"green"})})):o(n,{children:["risk-gap"===y&&o("div",e({className:d.rightSide,style:null==W?void 0:W.redirectionRightSide},{children:[i("button",e({disabled:B,className:[d.fixButton,B?d.fixButtonDisabled:""].join(" "),style:e(e({},null==W?void 0:W.redirectionFixButton),B?null==W?void 0:W.fixButtonDisabled:{}),onClick:function(e){e.stopPropagation(),B||G()}},{children:"Fix"})),i(c,{onClick:B?void 0:function(){B||null==k||k({type:b,id:x,aiReason:D,msg:C,meta:{headerText:T,decisionStrength:I,text:N}})},size:18,className:[B?d.redirectIconDisabled:d.redirectIcon].join(" "),style:e({},B?null==W?void 0:W.redirectIconDisabled:null==W?void 0:W.redirectIcon)})]})),"cra"===y&&!g&&i("div",e({className:d.rightSide,style:null==W?void 0:W.redirectionRightSide},{children:h===x?i("div",e({className:d.loaderWrapper,style:null==W?void 0:W.loaderWrapper},{children:i(s,{size:16,className:d.loaderIcon,color:"grey",style:e({animation:"spin 1s linear infinite"},null==W?void 0:W.loaderIcon)})})):i("button",e({className:[d.clarifyButton].join(" "),style:e({color:B?"grey":""},null==W?void 0:W.redirectionClarifyButton),disabled:B,onClick:function(e){e.stopPropagation(),G()}},{children:"Clarify"}))}))]})]})),O&&i(u,{label:"cra"===y?"Clarify":"Select this option",aiReason:{id:"1",reason:(null==D?void 0:D.Reasoning)||"",gap:(null==D?void 0:D.Gap)||"",relevance_score:Number(null==D?void 0:D.Confidence_score),explanation:(null==D?void 0:D.explanation)||""},onSelectProceed:G,customStyles:null==W?void 0:W.aiReasoningStyles,customIcons:P,cognitiveDecisionHeaders:H})]}))}export{v as CustomChatCrRedirection};
|
|
2
2
|
//# sourceMappingURL=CustomChatCrRedirection.js.map
|
package/dist/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__rest as e,__assign as n}from"tslib";import{jsx as i,jsxs as o}from"react/jsx-runtime";import{createContext as t,useRef as r,useState as a,useCallback as l,useMemo as d,useEffect as c,useContext as s}from"react";import u from"react-markdown";import v from"rehype-raw";import h from"./UserStoryWithCitation.module.css.js";import{useMarkdownSearch as g}from"../../shared/useMarkdownSearch.js";import{Info as m}from"lucide-react";import{Tooltip as p}from"@mui/material";import f from"../../shared/UpdatedAnimationContent.js";import C from"../../shared/GeneratedCodeCitation.js";import y from"../../shared/CitationLoadingIndicator.js";import{useRequirementAI as S}from"../RequirementAIWrapper/RequirementAIWrapper.js";import I from"../ai-reasoning/AiReasoningCitation.js";import b from"../../icons/RelevanceScoreIcon.js";import w from"../RecommendationBlock/RecommendationBlock.js";import R from"../UserStoryCard/AttachedContext.js";var x=t(!1),N=t({expandedInfo:null,setExpanded:function(){},reasonToRow:{current:new Map}}),A=t({rowId:""}),j=function(e){var t,a,l=e.children,d=e.node,c=r(Math.random().toString(36).slice(2)).current,u=s(N).expandedInfo,v=(null==u?void 0:u.rowId)===c,g=Array.isArray(null==d?void 0:d.children)?d.children.filter(function(e){return"element"===e.type}).length:1,m=null!==(a=null===(t=null==d?void 0:d.properties)||void 0===t?void 0:t.style)&&void 0!==a?a:void 0;return o(A.Provider,n({value:{rowId:c}},{children:[i("tr",n({style:m?{cssText:m}:void 0},{children:l})),v&&(null==u?void 0:u.aiReason)&&i("tr",n({style:{width:"100%"}},{children:i("td",n({colSpan:g||1,className:h.tableExpandedCell},{children:i("div",n({className:h.tableExpandedCellInner},{children:i("div",{className:h.tableExpandedCellContent})}))}))}))]}))};var T=function(t){var A=t.message,T=t.isParent,L=t.scenario,U=t.showUserStoryDiff,$=void 0!==U&&U,k=t.aiReasoningsForBlock,M=t.isCitationLoadingDisplay,P=void 0!==M&&M,E=t.className;t.highConfidenceIcon,t.lowConfidenceIcon;var F=t.customStyles,q=t.customIcons,z=t.aiReasoningDiffView,B=t.userStoryCitations,D=t.artifactId,H=t.isCraflow,W=t.onCraAccept,_=t.onCraReject,G=r(null),O=S(),Q=O.userStory,V=O.getAvgScoreForStory,J=O.setUserStory,K=O.aiReasoning,X=O.setAiReasoning,Y=O.customIcons,Z=O.searchQueryList,ee=O.searchQueryReasoningIdList,ne=O.currentHighlightIndex,ie=null!=q?q:null==Y?void 0:Y.userStoryIcons;null==F||F.searchHighlight;var oe=g(G),te=oe.search,re=oe.clear,ae=a("1"),le=ae[0],de=ae[1],ce=a(null),se=ce[0],ue=ce[1],ve=r(new Map),he=l(function(e,n){ue(e&&n?{rowId:e,aiReason:n}:null)},[]),ge=D?V(D):0,me=a([]),pe=me[0],fe=me[1],Ce=function(e){var n=e;return n=function(e){for(var n,i=/<updated[^>]*>[\s\S]*?<\/updated>/gi,o=[],t=new RegExp(i.source,i.flags);null!==(n=t.exec(e));){var r=n[0],a=r.match(/<deleted>([\s\S]*?)<\/deleted>/i),l=r.match(/<changed>([\s\S]*?)<\/changed>/i),d=function(e){return(e.match(/^\s*\d+\.\s/gm)||[]).length};o.push({index:n.index,endIndex:n.index+n[0].length,deletedItemCount:d((null==a?void 0:a[1])||""),changedItemCount:d((null==l?void 0:l[1])||"")})}if(0===o.length)return e;for(var c=e,s=function(e){var n=o[e],i=n.changedItemCount-n.deletedItemCount;if(0===i)return"continue";for(var t=!1,r=0,a=c.substring(0,n.index).split("\n").reverse();r<a.length;r++){var l=a[r].trim();if(""!==l){/^\d+\.\s/.test(l)&&(t=!0);break}}if(!t)return"continue";var d=n.endIndex,s=e+1<o.length?o[e+1].index:c.length,u=c.substring(d,s);u=u.replace(/^(\s*)(\d+)\.\s/gm,function(e,n,o){return"".concat(n).concat(parseInt(o,10)+i,". ")}),c=c.substring(0,d)+u+c.substring(s)},u=o.length-1;u>=0;u--)s(u);return c}(n=(n=(n=(n=n.replace(/<deleted>([\s\S]*?)<\/deleted>/gi,function(e,n){var i=n.replace(/ai_reasoning\$(\d+)/g,function(e,n){return"ai_reasoning$".concat(n,"-legacy")});return"<deleted>".concat(i,"</deleted>")})).replace(/<generatedCode([^>]*)>([\s\S]*?)<\/generatedCode>/gi,function(e,n,i){var o=btoa(encodeURIComponent(i.trim()));return"\n\n<generatedCode".concat(n,' data-raw="').concat(o,'"></generatedCode>\n\n')})).replace(/^(\s*[-*]|\s*\d+\.)\s*\n?\s*(<updated\b)/gm,"$1 $2")).replace(/<updated([^>]*)>([\s\S]*?)<\/updated>/gi,function(e,i,o,t){var r=n.substring(0,t),a=r.lastIndexOf("\n"),l=/^\s+[-*]\s/.test(r.substring(a+1))||/^\s+\d+\.\s/.test(r.substring(a+1)),d=/^\s*(\d+\.|\s*[-*])\s+$/.test(r.substring(a+1));if(l||d){var c=o;return c=(c=(c=(c=c.replace(/(<deleted>)\s*\n?\s*[-*]\s+/gi,"$1\n")).replace(/(<changed>)\s*\n?\s*[-*]\s+/gi,"$1\n")).replace(/(<deleted>)\s*\n?\s*\d+\.\s+/gi,"$1\n")).replace(/(<changed>)\s*\n?\s*\d+\.\s+/gi,"$1\n"),"<updated".concat(i,">").concat(c,"</updated>")}return e})),n=function(e){var n=e.replace(/<deleted>([\s\S]*?)<\/deleted>/gi,function(e,n){var i=n.replace(/\n{2,}/g,"\n");return console.log("[normalizeCustomTags] collapseNewlines in <deleted>",{hadChange:i!==n}),"<deleted>".concat(i,"</deleted>")});return n.replace(/<changed>([\s\S]*?)<\/changed>/gi,function(e,n){var i=n.replace(/\n{2,}/g,"\n");return console.log("[normalizeCustomTags] collapseNewlines in <changed>",{hadChange:i!==n,preview:n.substring(0,120)}),"<changed>".concat(i,"</changed>")})}(n),n},ye=d(function(){return A?Ce(A):A},[A]);c(function(){fe(k||K)},[k,K]);var Se=d(function(){return{h1:function(o){o.node;var t=e(o,["node"]);return i("h1",n({className:h.heading1,style:null==F?void 0:F.heading1},{children:t.children}))},h2:function(o){o.node;var t=e(o,["node"]);return i("h2",n({className:h.heading2,style:null==F?void 0:F.heading2},{children:t.children}))},h3:function(o){o.node;var t=e(o,["node"]);return i("h3",n({className:h.heading3,style:null==F?void 0:F.heading3},{children:t.children}))},b:function(o){o.node;var t=e(o,["node"]);return i("b",n({className:h.bold,style:null==F?void 0:F.bold},{children:null==t?void 0:t.children}))},p:function(o){o.node;var t=e(o,["node"]);return i("p",n({},t,{className:h.paragraph,style:null==F?void 0:F.paragraph},{children:t.children}))},updated:function(o){var t=o.node,r=e(o,["node"]);return i(f,n({},r,{showUserStoryDiff:$,currentUpdatedTagId:le,setCurrentUpdatedTagId:de,userStory:Q,setUserStory:J,setAiReasoning:X,node:t,isCraflow:H,onCraAccept:W,onCraReject:_,customStyles:null==F?void 0:F.updatedContent}))},ol:function(o){var t,r,a,l=o.node,d=e(o,["node"]),c=null!==(a=null!==(r=null===(t=null==l?void 0:l.properties)||void 0===t?void 0:t.start)&&void 0!==r?r:null==d?void 0:d.start)&&void 0!==a?a:void 0;return i("ol",n({className:h.orderedList,style:null==F?void 0:F.olist},c?{start:Number(c)}:{},{children:null==d?void 0:d.children}))},ul:function(o){o.node;var t=e(o,["node"]);return i("ul",n({className:h.unorderedList,style:null==F?void 0:F.ulist},{children:null==t?void 0:t.children}))},table:function(e){var o=e.children;return i("div",n({className:h.tableWrapper},{children:i("table",n({className:h.table,style:null==F?void 0:F.table},{children:o}))}))},tr:j,td:function(o){var t,r=o.node,a=o.children,l=null!==(t=null==r?void 0:r.properties)&&void 0!==t?t:{},d=l.style,c=e(l,["style"]);return i(x.Provider,n({value:!0},{children:i("td",n({},c,{style:d?{cssText:d}:void 0},{children:a}))}))},th:function(o){var t,r=o.node,a=o.children,l=null!==(t=null==r?void 0:r.properties)&&void 0!==t?t:{},d=l.style,c=e(l,["style"]);return i(x.Provider,n({value:!0},{children:i("th",n({},c,{style:d?{cssText:d}:void 0},{children:a}))}))},recommendation:function(o){var t;o.node;var r=e(o,["node"]),a="The AI has selected this content based on: ".concat((null===(t=null==r?void 0:r.children)||void 0===t?void 0:t[0])||"");return i(w,n({},r,{customStyles:null==F?void 0:F.recommendationBlock,label:a}))},a:function(n){var o,t,r;n.inline,n.children,n.node;var a=e(n,["inline","children","node"]);s(x)||null==a||a.table;var l="".concat(null==a?void 0:a.href),d=null===(o=l.split("$"))||void 0===o?void 0:o[0],c=null===(t=l.split("$"))||void 0===t?void 0:t[1];if("ai_reasoning"===d){var u=(null!==(r=$?z:K)&&void 0!==r?r:[]).find(function(e){return e.id.toString()===decodeURIComponent(c)}),v=ee.includes(c);if(u)return i(I,{aiReason:u,isSourceHasHighlight:v,customIcons:ie,customStyles:{aiReasoningContent:null==F?void 0:F.aiReasoningContent,aiReasoningAccordion:null==F?void 0:F.aiReasoningAccordion,aiReasoningMarkdown:null==F?void 0:F.aiReasoningMarkdown,aiReasoningPill:null==F?void 0:F.aiReasoningPill,webCitation:null==F?void 0:F.webCitation,stormeeCitation:null==F?void 0:F.stormeeCitation,waveformCitation:null==F?void 0:F.waveformCitation,imageCitation:null==F?void 0:F.imageCitation,fileCitation:null==F?void 0:F.fileCitation,appModCitation:null==F?void 0:F.appModCitation,rcaCitation:null==F?void 0:F.rcaCitation,readFileCitation:null==F?void 0:F.readFileCitation,loadingCitations:null==F?void 0:F.loadingCitations,chatCitation:null==F?void 0:F.chatCitation}})}return null},code:function(o){o.inline;var t=o.children,r=o.className;return o.node,e(o,["inline","children","className","node"]),/language-(\w+)/.exec(r||"")||(null==r?void 0:r.includes("language-"))?i("div",{children:i("code",n({className:h.blockCode,style:null==F?void 0:F.code},{children:t}))}):i("code",n({className:h.inlineCode,style:null==F?void 0:F.code},{children:t}))},learned:function(e){var o=e.children;return i(p,n({title:o,placement:"top"},{children:i(m,{size:16,className:h.learned})}))},generatedcode:function(n){n.node;var o=e(n,["node"]),t=(null==o?void 0:o.language)||"python",r=function(e){var n="";try{if(e["data-raw"])n=decodeURIComponent(atob(e["data-raw"]));else{var i=function(e){var n;return"string"==typeof e?e:Array.isArray(e)?e.map(i).join(""):(null===(n=null==e?void 0:e.props)||void 0===n?void 0:n.children)?i(e.props.children):""};n=i(e.children)}}catch(i){console.error("Error decoding generated code:",i),n=String(e.children)}return n}(o);return i(C,{title:"Generated Code",code:r,language:t,customStyles:{pill:null==F?void 0:F.generatedCodePill,content:null==F?void 0:F.generatedCodeContent}})}}},[pe,K,B,le,$,A,q,Z,ee]);return c(function(){if(G.current){if(Z.length){var e;if(0===ee.length)requestAnimationFrame(function(){te([Z[ne].replace(/\*/g,"")])});else{var n=G.current,i=new MutationObserver(function(){clearTimeout(e),e=setTimeout(function(){i.disconnect(),requestAnimationFrame(function(){te([Z[ne].replace(/\*/g,"")])})},50)});i.observe(n,{childList:!0,subtree:!0})}return function(){clearTimeout(e)}}re()}},[Z,ee,ne]),i(N.Provider,n({value:{expandedInfo:se,setExpanded:he,reasonToRow:ve}},{children:o("div",n({ref:G,className:"".concat(h.container," ").concat("approving"!==L?h.wrapper:""," ").concat(E||""),style:null==F?void 0:F.container},{children:[i(u,n({components:Se,rehypePlugins:[v]},{children:ye})),ge>0&&i("div",n({className:h.confidenceScoreContainer,style:null==F?void 0:F.confidenceScoreContainer},{children:o("span",n({className:h.confidenceScore,style:null==F?void 0:F.confidenceScore},{children:[i(b,{size:14,color:(null==F?void 0:F.confidenceScoreIconColor)||"#166534"}),ge,"%"]}))})),P&&i("div",n({className:h.citationLoader,style:null==F?void 0:F.citationLoaderContainer},{children:i(y,{customStyles:{container:null==F?void 0:F.citationLoadingContainer,icon:null==F?void 0:F.citationLoadingIcon,text:null==F?void 0:F.citationLoadingText}})})),T&&i("div",n({className:"flex mt-5"},{children:i(R,{})}))]}))}))};export{T as default};
|
|
1
|
+
import{__rest as e,__assign as n}from"tslib";import{jsx as i,jsxs as o}from"react/jsx-runtime";import{createContext as t,useRef as r,useState as l,useCallback as a,useMemo as d,useEffect as c,useContext as s}from"react";import u from"react-markdown";import v from"rehype-raw";import h from"./UserStoryWithCitation.module.css.js";import{useMarkdownSearch as g}from"../../shared/useMarkdownSearch.js";import{Info as m}from"lucide-react";import{Tooltip as p}from"@mui/material";import f from"../../shared/UpdatedAnimationContent.js";import C from"../../shared/GeneratedCodeCitation.js";import y from"../../shared/CitationLoadingIndicator.js";import{useRequirementAI as S}from"../RequirementAIWrapper/RequirementAIWrapper.js";import I from"../ai-reasoning/AiReasoningCitation.js";import b from"../../icons/RelevanceScoreIcon.js";import w from"../RecommendationBlock/RecommendationBlock.js";import R from"../UserStoryCard/AttachedContext.js";var x=t(!1),N=t({expandedInfo:null,setExpanded:function(){},reasonToRow:{current:new Map}}),A=t({rowId:""}),j=function(e){var t,l,a=e.children,d=e.node,c=r(Math.random().toString(36).slice(2)).current,u=s(N).expandedInfo,v=(null==u?void 0:u.rowId)===c,g=Array.isArray(null==d?void 0:d.children)?d.children.filter(function(e){return"element"===e.type}).length:1,m=null!==(l=null===(t=null==d?void 0:d.properties)||void 0===t?void 0:t.style)&&void 0!==l?l:void 0;return o(A.Provider,n({value:{rowId:c}},{children:[i("tr",n({style:m?{cssText:m}:void 0},{children:a})),v&&(null==u?void 0:u.aiReason)&&i("tr",n({style:{width:"100%"}},{children:i("td",n({colSpan:g||1,className:h.tableExpandedCell},{children:i("div",n({className:h.tableExpandedCellInner},{children:i("div",{className:h.tableExpandedCellContent})}))}))}))]}))};var T=function(t){var A=t.message,T=t.isParent,L=t.scenario,U=t.showUserStoryDiff,$=void 0!==U&&U,k=t.aiReasoningsForBlock,M=t.isCitationLoadingDisplay,P=void 0!==M&&M,E=t.className;t.highConfidenceIcon,t.lowConfidenceIcon;var F=t.customStyles,D=t.customIcons,H=t.aiReasoningDiffView,q=t.userStoryCitations,z=t.artifactId,B=t.isCraflow,W=t.onCraAccept,_=t.onCraReject,G=t.isDisplayHighlightControl,O=void 0!==G&&G,Q=r(null),V=S(),J=V.userStory,K=V.getAvgScoreForStory,X=V.setUserStory,Y=V.aiReasoning,Z=V.setAiReasoning,ee=V.customIcons,ne=V.searchQueryList,ie=V.searchQueryReasoningIdList,oe=V.currentHighlightIndex,te=null!=D?D:null==ee?void 0:ee.userStoryIcons;null==F||F.searchHighlight;var re=g(Q),le=re.search,ae=re.clear,de=l("1"),ce=de[0],se=de[1],ue=l(null),ve=ue[0],he=ue[1],ge=r(new Map),me=a(function(e,n){he(e&&n?{rowId:e,aiReason:n}:null)},[]),pe=z?K(z):0,fe=l([]),Ce=fe[0],ye=fe[1],Se=function(e){var n=e;return n=function(e){for(var n,i=/<updated[^>]*>[\s\S]*?<\/updated>/gi,o=[],t=new RegExp(i.source,i.flags);null!==(n=t.exec(e));){var r=n[0],l=r.match(/<deleted>([\s\S]*?)<\/deleted>/i),a=r.match(/<changed>([\s\S]*?)<\/changed>/i),d=function(e){return(e.match(/^\s*\d+\.\s/gm)||[]).length};o.push({index:n.index,endIndex:n.index+n[0].length,deletedItemCount:d((null==l?void 0:l[1])||""),changedItemCount:d((null==a?void 0:a[1])||"")})}if(0===o.length)return e;for(var c=e,s=function(e){var n=o[e],i=n.changedItemCount-n.deletedItemCount;if(0===i)return"continue";for(var t=!1,r=0,l=c.substring(0,n.index).split("\n").reverse();r<l.length;r++){var a=l[r].trim();if(""!==a){/^\d+\.\s/.test(a)&&(t=!0);break}}if(!t)return"continue";var d=n.endIndex,s=e+1<o.length?o[e+1].index:c.length,u=c.substring(d,s);u=u.replace(/^(\s*)(\d+)\.\s/gm,function(e,n,o){return"".concat(n).concat(parseInt(o,10)+i,". ")}),c=c.substring(0,d)+u+c.substring(s)},u=o.length-1;u>=0;u--)s(u);return c}(n=(n=(n=(n=n.replace(/<deleted>([\s\S]*?)<\/deleted>/gi,function(e,n){var i=n.replace(/ai_reasoning\$(\d+)/g,function(e,n){return"ai_reasoning$".concat(n,"-legacy")});return"<deleted>".concat(i,"</deleted>")})).replace(/<generatedCode([^>]*)>([\s\S]*?)<\/generatedCode>/gi,function(e,n,i){var o=btoa(encodeURIComponent(i.trim()));return"\n\n<generatedCode".concat(n,' data-raw="').concat(o,'"></generatedCode>\n\n')})).replace(/^(\s*[-*]|\s*\d+\.)\s*\n?\s*(<updated\b)/gm,"$1 $2")).replace(/<updated([^>]*)>([\s\S]*?)<\/updated>/gi,function(e,i,o,t){var r=n.substring(0,t),l=r.lastIndexOf("\n"),a=/^\s+[-*]\s/.test(r.substring(l+1))||/^\s+\d+\.\s/.test(r.substring(l+1)),d=/^\s*(\d+\.|\s*[-*])\s+$/.test(r.substring(l+1));if(a||d){var c=o;return c=(c=(c=(c=c.replace(/(<deleted>)\s*\n?\s*[-*]\s+/gi,"$1\n")).replace(/(<changed>)\s*\n?\s*[-*]\s+/gi,"$1\n")).replace(/(<deleted>)\s*\n?\s*\d+\.\s+/gi,"$1\n")).replace(/(<changed>)\s*\n?\s*\d+\.\s+/gi,"$1\n"),"<updated".concat(i,">").concat(c,"</updated>")}return e})),n=function(e){var n=e.replace(/<deleted>([\s\S]*?)<\/deleted>/gi,function(e,n){var i=n.replace(/\n{2,}/g,"\n");return console.log("[normalizeCustomTags] collapseNewlines in <deleted>",{hadChange:i!==n}),"<deleted>".concat(i,"</deleted>")});return n.replace(/<changed>([\s\S]*?)<\/changed>/gi,function(e,n){var i=n.replace(/\n{2,}/g,"\n");return console.log("[normalizeCustomTags] collapseNewlines in <changed>",{hadChange:i!==n,preview:n.substring(0,120)}),"<changed>".concat(i,"</changed>")})}(n),n},Ie=d(function(){return A?Se(A):A},[A]);c(function(){ye(k||Y)},[k,Y]);var be=d(function(){return{h1:function(o){o.node;var t=e(o,["node"]);return i("h1",n({className:h.heading1,style:null==F?void 0:F.heading1},{children:t.children}))},h2:function(o){o.node;var t=e(o,["node"]);return i("h2",n({className:h.heading2,style:null==F?void 0:F.heading2},{children:t.children}))},h3:function(o){o.node;var t=e(o,["node"]);return i("h3",n({className:h.heading3,style:null==F?void 0:F.heading3},{children:t.children}))},b:function(o){o.node;var t=e(o,["node"]);return i("b",n({className:h.bold,style:null==F?void 0:F.bold},{children:null==t?void 0:t.children}))},p:function(o){o.node;var t=e(o,["node"]);return i("p",n({},t,{className:h.paragraph,style:null==F?void 0:F.paragraph},{children:t.children}))},updated:function(o){var t=o.node,r=e(o,["node"]);return i(f,n({},r,{showUserStoryDiff:$,currentUpdatedTagId:ce,setCurrentUpdatedTagId:se,userStory:J,setUserStory:X,setAiReasoning:Z,node:t,isCraflow:B,onCraAccept:W,onCraReject:_,customStyles:null==F?void 0:F.updatedContent}))},ol:function(o){var t,r,l,a=o.node,d=e(o,["node"]),c=null!==(l=null!==(r=null===(t=null==a?void 0:a.properties)||void 0===t?void 0:t.start)&&void 0!==r?r:null==d?void 0:d.start)&&void 0!==l?l:void 0;return i("ol",n({className:h.orderedList,style:null==F?void 0:F.olist},c?{start:Number(c)}:{},{children:null==d?void 0:d.children}))},ul:function(o){o.node;var t=e(o,["node"]);return i("ul",n({className:h.unorderedList,style:null==F?void 0:F.ulist},{children:null==t?void 0:t.children}))},table:function(e){var o=e.children;return i("div",n({className:h.tableWrapper},{children:i("table",n({className:h.table,style:null==F?void 0:F.table},{children:o}))}))},tr:j,td:function(o){var t,r=o.node,l=o.children,a=null!==(t=null==r?void 0:r.properties)&&void 0!==t?t:{},d=a.style,c=e(a,["style"]);return i(x.Provider,n({value:!0},{children:i("td",n({},c,{style:d?{cssText:d}:void 0},{children:l}))}))},th:function(o){var t,r=o.node,l=o.children,a=null!==(t=null==r?void 0:r.properties)&&void 0!==t?t:{},d=a.style,c=e(a,["style"]);return i(x.Provider,n({value:!0},{children:i("th",n({},c,{style:d?{cssText:d}:void 0},{children:l}))}))},recommendation:function(o){var t;o.node;var r=e(o,["node"]),l="The AI has selected this content based on: ".concat((null===(t=null==r?void 0:r.children)||void 0===t?void 0:t[0])||"");return i(w,n({},r,{customStyles:null==F?void 0:F.recommendationBlock,label:l}))},a:function(n){var o,t,r;n.inline,n.children,n.node;var l=e(n,["inline","children","node"]);s(x)||null==l||l.table;var a="".concat(null==l?void 0:l.href),d=null===(o=a.split("$"))||void 0===o?void 0:o[0],c=null===(t=a.split("$"))||void 0===t?void 0:t[1];if("ai_reasoning"===d){var u=(null!==(r=$?H:Y)&&void 0!==r?r:[]).find(function(e){return e.id.toString()===decodeURIComponent(c)}),v=ie.includes(c);if(u)return i(I,{aiReason:u,isSourceHasHighlight:v,customIcons:te,customStyles:{aiReasoningContent:null==F?void 0:F.aiReasoningContent,aiReasoningAccordion:null==F?void 0:F.aiReasoningAccordion,aiReasoningMarkdown:null==F?void 0:F.aiReasoningMarkdown,aiReasoningPill:null==F?void 0:F.aiReasoningPill,webCitation:null==F?void 0:F.webCitation,stormeeCitation:null==F?void 0:F.stormeeCitation,waveformCitation:null==F?void 0:F.waveformCitation,imageCitation:null==F?void 0:F.imageCitation,fileCitation:null==F?void 0:F.fileCitation,appModCitation:null==F?void 0:F.appModCitation,rcaCitation:null==F?void 0:F.rcaCitation,readFileCitation:null==F?void 0:F.readFileCitation,loadingCitations:null==F?void 0:F.loadingCitations,chatCitation:null==F?void 0:F.chatCitation}})}return null},code:function(o){o.inline;var t=o.children,r=o.className;return o.node,e(o,["inline","children","className","node"]),/language-(\w+)/.exec(r||"")||(null==r?void 0:r.includes("language-"))?i("div",{children:i("code",n({className:h.blockCode,style:null==F?void 0:F.code},{children:t}))}):i("code",n({className:h.inlineCode,style:null==F?void 0:F.code},{children:t}))},learned:function(e){var o=e.children;return i(p,n({title:o,placement:"top"},{children:i(m,{size:16,className:h.learned})}))},generatedcode:function(n){n.node;var o=e(n,["node"]),t=(null==o?void 0:o.language)||"python",r=function(e){var n="";try{if(e["data-raw"])n=decodeURIComponent(atob(e["data-raw"]));else{var i=function(e){var n;return"string"==typeof e?e:Array.isArray(e)?e.map(i).join(""):(null===(n=null==e?void 0:e.props)||void 0===n?void 0:n.children)?i(e.props.children):""};n=i(e.children)}}catch(i){console.error("Error decoding generated code:",i),n=String(e.children)}return n}(o);return i(C,{title:"Generated Code",code:r,language:t,customStyles:{pill:null==F?void 0:F.generatedCodePill,content:null==F?void 0:F.generatedCodeContent}})}}},[Ce,Y,q,ce,$,A,D,ne,ie]);return c(function(){if(Q.current){if(ne.length){var e;if(0===ie.length||O)requestAnimationFrame(function(){le([ne[oe].replace(/\*/g,"")])});else{var n=Q.current,i=new MutationObserver(function(){clearTimeout(e),e=setTimeout(function(){i.disconnect(),requestAnimationFrame(function(){le([ne[oe].replace(/\*/g,"")])})},50)});i.observe(n,{childList:!0,subtree:!0})}return function(){clearTimeout(e)}}ae()}},[ne,ie,oe,O]),i(N.Provider,n({value:{expandedInfo:ve,setExpanded:me,reasonToRow:ge}},{children:o("div",n({ref:Q,className:"".concat(h.container," ").concat("approving"!==L?h.wrapper:""," ").concat(E||""),style:null==F?void 0:F.container},{children:[i(u,n({components:be,rehypePlugins:[v]},{children:Ie})),pe>0&&i("div",n({className:h.confidenceScoreContainer,style:null==F?void 0:F.confidenceScoreContainer},{children:o("span",n({className:h.confidenceScore,style:null==F?void 0:F.confidenceScore},{children:[i(b,{size:14,color:(null==F?void 0:F.confidenceScoreIconColor)||"#166534"}),pe,"%"]}))})),P&&i("div",n({className:h.citationLoader,style:null==F?void 0:F.citationLoaderContainer},{children:i(y,{customStyles:{container:null==F?void 0:F.citationLoadingContainer,icon:null==F?void 0:F.citationLoadingIcon,text:null==F?void 0:F.citationLoadingText}})})),T&&i("div",n({className:"flex mt-5"},{children:i(R,{})}))]}))}))};export{T as default};
|
|
2
2
|
//# sourceMappingURL=UserStoryWithCitation.js.map
|
|
@@ -19,13 +19,14 @@ interface StoryCardProps {
|
|
|
19
19
|
handleOpenSendDialog?: (sendEmailDialog: boolean, userStoryToSend: IUserStory[], artifactId: string, initSelectedEmails?: string[], autoSendEmail?: boolean) => void;
|
|
20
20
|
updateUserStoryArtifact: (citationsObj: UserStoryCitations | null, userStoryWithCitations: IUserStory[], artifactId: string, signal?: AbortSignal) => Promise<any>;
|
|
21
21
|
selectedArtifactId?: string;
|
|
22
|
+
isDisplayHighlightControl?: boolean;
|
|
22
23
|
elementDisplayConfig?: {
|
|
23
24
|
showShareButton?: boolean;
|
|
24
25
|
showEditButton?: boolean;
|
|
25
26
|
};
|
|
26
27
|
}
|
|
27
28
|
export declare function replaceLearnedTagsWithInfo(content: string): React.ReactNode[];
|
|
28
|
-
export declare const StoryCard: ({ isUserStoryCurrentlyUpdated, artifactId, artifactTitleId, parentUserStory, currentUserStory, onUserStoryChange, parentIndex, currentIndex, enableDownload, isDiffEditReviewMode, showUserStoryDiff, handleDownloadUserStory, handleOpenSendDialog, updateUserStoryArtifact, selectedArtifactId, elementDisplayConfig }: StoryCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
export declare const StoryCard: ({ isUserStoryCurrentlyUpdated, artifactId, artifactTitleId, parentUserStory, currentUserStory, onUserStoryChange, parentIndex, currentIndex, enableDownload, isDiffEditReviewMode, showUserStoryDiff, handleDownloadUserStory, handleOpenSendDialog, updateUserStoryArtifact, selectedArtifactId, isDisplayHighlightControl, elementDisplayConfig }: StoryCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
29
30
|
interface IProps {
|
|
30
31
|
isUserStoryCurrentlyUpdated?: boolean;
|
|
31
32
|
artifactId: 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":";AAmBA,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;IAC5B,oBAAoB,CAAC,EAAE;QACnB,eAAe,CAAC,EAAE,OAAO,CAAC;QAC1B,cAAc,CAAC,EAAE,OAAO,CAAC;KAC5B,CAAC;CACL;AAID,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,EAAE,CAwC7E;AAkBD,eAAO,MAAM,SAAS,
|
|
1
|
+
{"version":3,"file":"UserStoryCard.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/UserStoryCard/UserStoryCard.tsx"],"names":[],"mappings":";AAmBA,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,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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;IAC5B,yBAAyB,CAAC,EAAE,OAAO,CAAC;IACpC,oBAAoB,CAAC,EAAE;QACnB,eAAe,CAAC,EAAE,OAAO,CAAC;QAC1B,cAAc,CAAC,EAAE,OAAO,CAAC;KAC5B,CAAC;CACL;AAED,eAAO,MAAM,oBAAoB,wPAAyP,MAAM,4CA0F/R,CAAA;AAED,eAAe,SAAS,CAAC"}
|
|
@@ -8,6 +8,7 @@ interface AppModCitationContentProps {
|
|
|
8
8
|
customIcons?: UserStoryIcons;
|
|
9
9
|
codeLinkConfig?: CodeLinkConfig;
|
|
10
10
|
isLoading?: boolean;
|
|
11
|
+
shouldAutoScroll?: boolean;
|
|
11
12
|
}
|
|
12
13
|
declare const AppModCitationContent: React.FC<AppModCitationContentProps>;
|
|
13
14
|
export default AppModCitationContent;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppmodCitationContent.d.ts","sourceRoot":"","sources":["../../../../../../../../src/features/RequirementAI/components/citations/appmod-citation/AppmodCitationContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqC,MAAM,OAAO,CAAC;AAK1D,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EACL,wBAAwB,EACxB,cAAc,EACf,MAAM,iCAAiC,CAAC;AAEzC,OAAO,EACL,cAAc,EAEf,MAAM,SAAS,CAAC;AAIjB,UAAU,0BAA0B;IAClC,QAAQ,EAAE,YAAY,CAAC;IACvB,YAAY,CAAC,EAAE,wBAAwB,CAAC;IACxC,WAAW,CAAC,EAAE,cAAc,CAAC;IAC7B,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,SAAS,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"AppmodCitationContent.d.ts","sourceRoot":"","sources":["../../../../../../../../src/features/RequirementAI/components/citations/appmod-citation/AppmodCitationContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqC,MAAM,OAAO,CAAC;AAK1D,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EACL,wBAAwB,EACxB,cAAc,EACf,MAAM,iCAAiC,CAAC;AAEzC,OAAO,EACL,cAAc,EAEf,MAAM,SAAS,CAAC;AAIjB,UAAU,0BAA0B;IAClC,QAAQ,EAAE,YAAY,CAAC;IACvB,YAAY,CAAC,EAAE,wBAAwB,CAAC;IACxC,WAAW,CAAC,EAAE,cAAc,CAAC;IAC7B,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AA8SD,QAAA,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,0BAA0B,CAuM/D,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppmodCitationRenderer.d.ts","sourceRoot":"","sources":["../../../../../../../../src/features/RequirementAI/components/citations/appmod-citation/AppmodCitationRenderer.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"AppmodCitationRenderer.d.ts","sourceRoot":"","sources":["../../../../../../../../src/features/RequirementAI/components/citations/appmod-citation/AppmodCitationRenderer.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAC;AAEtD,QAAA,MAAM,sBAAsB,EAAE,KAAK,CAAC,EAAE,CAAC,2BAA2B,CAuEjE,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
|
package/dist/types/src/features/RequirementAI/components/citations/appmod-citation/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../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AC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAKD,MAAM,WAAW,uBAAuB;IACtC,SAAS,CAAC,EAAE,aAAa,CAAC;IAC1B,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB;AAGD,eAAO,MAAM,uBAAuB,EAAE,cAWrC,CAAC;AAIF,MAAM,WAAW,mBAAmB;IAElC,YAAY,CAAC,EAAE,SAAS,CAAC;IAGzB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,WAAW,CAAC,EAAE,SAAS,CAAC;IAGxB,UAAU,CAAC,EAAE,SAAS,CAAC;IAGvB,cAAc,CAAC,EAAE,SAAS,CAAC;IAG3B,gBAAgB,CAAC,EAAE,SAAS,CAAC;CAC9B;AAGD,MAAM,WAAW,2BAA2B;IAE1C,KAAK,EAAE,MAAM,CAAC;IAGd,QAAQ,EAAE,YAAY,CAAC;IAGvB,YAAY,CAAC,EAAE,wBAAwB,CAAC;IAGxC,WAAW,CAAC,EAAE,cAAc,CAAC;IAG7B,cAAc,CAAC,EAAE,cAAc,CAAC;IAGhC,SAAS,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../src/features/RequirementAI/components/citations/appmod-citation/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,wBAAwB,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAE3F,MAAM,WAAW,cAAc;IAC7B;;;;OAIG;IACH,IAAI,EAAE,KAAK,GAAG,QAAQ,CAAC;IAEvB;;OAEG;IACH,uBA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AC;AAIF,MAAM,WAAW,mBAAmB;IAElC,YAAY,CAAC,EAAE,SAAS,CAAC;IAGzB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,WAAW,CAAC,EAAE,SAAS,CAAC;IAGxB,UAAU,CAAC,EAAE,SAAS,CAAC;IAGvB,cAAc,CAAC,EAAE,SAAS,CAAC;IAG3B,gBAAgB,CAAC,EAAE,SAAS,CAAC;CAC9B;AAGD,MAAM,WAAW,2BAA2B;IAE1C,KAAK,EAAE,MAAM,CAAC;IAGd,QAAQ,EAAE,YAAY,CAAC;IAGvB,YAAY,CAAC,EAAE,wBAAwB,CAAC;IAGxC,WAAW,CAAC,EAAE,cAAc,CAAC;IAG7B,cAAc,CAAC,EAAE,cAAc,CAAC;IAGhC,SAAS,CAAC,EAAE,OAAO,CAAC;IAGpB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomChatCrRedirection.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAEzE,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"CustomChatCrRedirection.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAEzE,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAKnE,MAAM,MAAM,OAAO,GAAG,UAAU,GAAG,QAAQ,CAAC;AAE5C,MAAM,WA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YAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;YAAC,IAAI,EAAE,MAAM,CAAA;SAAE,CAAC;KACxE,KAAK,IAAI,CAAC;CACZ;AAID,wBAAgB,uBAAuB,CAAC,EACtC,aAAa,EACb,aAAa,EACb,WAAW,EACX,IAAI,EACJ,GAAG,EACH,IAAI,EACJ,EAAE,EACF,QAAQ,EACR,IAAI,EACJ,UAAU,EACV,gBAAgB,EAChB,QAAQ,EACR,QAAQ,EACR,YAAY,EACZ,eAAe,EACf,OAAO,EACP,YAAoB,EACpB,YAAY,EACZ,WAAW,EACX,wBAAwB,GACzB,EAAE,4BAA4B,2CAyM9B"}
|
|
@@ -62,7 +62,8 @@ interface UserStoryWithCitationsProps {
|
|
|
62
62
|
isCraflow?: boolean;
|
|
63
63
|
onCraAccept?: (updatedId: string) => void;
|
|
64
64
|
onCraReject?: (updatedId: string) => void;
|
|
65
|
+
isDisplayHighlightControl?: boolean;
|
|
65
66
|
}
|
|
66
|
-
declare const UserStoryWithCitations: ({ message, isParent, scenario, showUserStoryDiff, aiReasoningsForBlock, isCitationLoadingDisplay, className, highConfidenceIcon, lowConfidenceIcon, customStyles, customIcons, aiReasoningDiffView, userStoryCitations, artifactId, isCraflow, onCraAccept, onCraReject, }: UserStoryWithCitationsProps) => import("react/jsx-runtime").JSX.Element;
|
|
67
|
+
declare const UserStoryWithCitations: ({ message, isParent, scenario, showUserStoryDiff, aiReasoningsForBlock, isCitationLoadingDisplay, className, highConfidenceIcon, lowConfidenceIcon, customStyles, customIcons, aiReasoningDiffView, userStoryCitations, artifactId, isCraflow, onCraAccept, onCraReject, isDisplayHighlightControl, }: UserStoryWithCitationsProps) => import("react/jsx-runtime").JSX.Element;
|
|
67
68
|
export default UserStoryWithCitations;
|
|
68
69
|
//# sourceMappingURL=UserStoryWithCitation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserStoryWithCitation.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/Requir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IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,kBAAkB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACrC,iBAAiB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACpC,YAAY,CAAC,EAAE,iCAAiC,CAAC;IAEjD,WAAW,CAAC,EAAE,cAAc,CAAC;IAI7B,mBAAmB,CAAC,EAAE,YAAY,EAAE,CAAC;IACrC,kBAAkB,CAAC,EAAE,GAAG,CAAC;IAKzB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,WAAW,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,WAAW,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"UserStoryWithCitation.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.tsx"],"names":[],"mappings":";AAWA,OAAO,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,wBAAwB,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,0BAA0B,EAAE,qBAAqB,EAAE,YAAY,EAAE,cAAc,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACrW,OAA+B,EAAE,2BAA2B,EAAE,4BAA4B,EAAE,MAAM,sCAAsC,CAAC;AA2BzI,MAAM,WAAW,iCAAiC;IAChD,eAAe,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACtC,SAAS,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAChC,gBAAgB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACvC,QAAQ,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC/B,QAAQ,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC/B,QAAQ,CAAC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-1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gapFilterStyles.type.d.ts","sourceRoot":"","sources":["../../../../../../src/features/RequirementAI/types/gapFilterStyles.type.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAE7D,MAAM,WAAW,eAAe;IAG7B,cAAc,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACrC,aAAa,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACpC,aAAa,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAGpC,SAAS,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAChC,aAAa,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACpC,gBAAgB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACvC,YAAY,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACnC,WAAW,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAClC,oBAAoB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC3C,mBAAmB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC1C,0BAA0B,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACjD,6BAA6B,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACpD,4BAA4B,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACnD,mCAAmC,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC1D,iBAAiB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACxC,cAAc,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACrC,YAAY,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACnC,qBAAqB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5C,oBAAoB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC3C,gBAAgB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACvC,qBAAqB,CAAC,EAAE,KAA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aAAa,CAAC;IAC1C,cAAc,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACrC,YAAY,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAEnC,iBAAiB,CAAC,EAAG,uBAAuB,CAAA;IAE5C,UAAU,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACjC,aAAa,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAEpC,mBAAmB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC1C,UAAU,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"gapFilterStyles.type.d.ts","sourceRoot":"","sources":["../../../../../../src/features/RequirementAI/types/gapFilterStyles.type.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAE7D,MAAM,WAAW,eAAe;IAG7B,cAAc,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACrC,aAAa,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACpC,aAAa,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAGpC,SAAS,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAChC,aAAa,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACpC,gBAAgB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACvC,YAAY,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACnC,WAAW,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAClC,oBAAoB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC3C,mBAAmB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC1C,0BAA0B,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACjD,6BAA6B,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACpD,4BAA4B,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACnD,mCAAmC,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC1D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