@e-llm-studio/requirement-ai 0.0.151 → 0.0.153
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/RequirementAIWrapper/RequirementAIWrapper.js +1 -1
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/UserStoryCard.js +1 -1
- package/dist/cjs/features/RequirementAI/components/cra/PartialRequirementContent.js +1 -1
- package/dist/cjs/features/RequirementAI/components/segment/Segment.js +1 -1
- package/dist/cjs/features/RequirementAI/components/segment/segment.module.css.js +1 -1
- package/dist/cjs/features/RequirementAI/components/story-screen/SubfeatureBlock.js +1 -1
- package/dist/cjs/features/RequirementAI/components/story-screen/UserStoryScreen.js +1 -1
- package/dist/cjs/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.js +1 -1
- package/dist/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.js +1 -1
- package/dist/features/RequirementAI/components/UserStoryCard/UserStoryCard.js +1 -1
- package/dist/features/RequirementAI/components/cra/PartialRequirementContent.js +1 -1
- package/dist/features/RequirementAI/components/segment/Segment.js +1 -1
- package/dist/features/RequirementAI/components/segment/segment.module.css.js +1 -1
- package/dist/features/RequirementAI/components/story-screen/SubfeatureBlock.js +1 -1
- package/dist/features/RequirementAI/components/story-screen/UserStoryScreen.js +1 -1
- package/dist/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.js +1 -1
- package/dist/types/src/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.d.ts +2 -2
- package/dist/types/src/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/UserStoryCard.d.ts +6 -1
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/UserStoryCard.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/cra/PartialRequirementContent.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/segment/ExampleComponentWrapper.d.ts +1 -1
- package/dist/types/src/features/RequirementAI/components/segment/ExampleComponentWrapper.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/story-screen/SubfeatureBlock.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/story-screen/UserStoryScreen.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/cjs/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.js
CHANGED
|
@@ -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"),i=require("../../store/ref.context.js"),r=n.createContext(null);exports.default=function(o){var s=o.children,a=o.userStory,u=o.setUserStory,c=o.aiReasoning,l=o.setAiReasoning,g=o.citations,
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),n=require("react"),i=require("../../store/ref.context.js"),r=n.createContext(null);exports.default=function(o){var s=o.children,a=o.userStory,u=o.setUserStory,c=o.aiReasoning,l=o.setAiReasoning,g=o.citations,d=o.setCitations,f=o.apiCachingConfig,h=o.customStyles,m=o.customIcons,p=o.searchQueryList,C=o.searchQueryReasoningIdList,v=o.citationConfig,y=o.chatHistory,x=o.chatCitationConfigs,S=o.gptCitationConfigs,I=o.aiReasoningAccordionOpenStates,R=o.persistedDataFiles,A=o.inlineUpdateComponentConfig,q=o.handleViewGlossary,_=o.segmentDataList,b=o.getSegmentExampleComponent,D=o.handleFetchSegmentDetails,L=n.useState(0),j=L[0],w=L[1],F=n.useMemo(function(){if(0===a.length||0===c.length)return Array(a.length).fill(0);var e=Array.from({length:a.length},function(){return[]});return c.forEach(function(t){var n=Number(t.relevance_score);if(!(isNaN(n)||n<=0)){var i="ai_reasoning$".concat(t.id),r=a.findIndex(function(e){var t;return e.value.includes(i)||(null===(t=e.sub_features)||void 0===t?void 0:t.some(function(e){return e.value.includes(i)}))});-1!==r&&e[r].push(n)}}),e.map(function(e){return 0===e.length?0:Math.round(e.reduce(function(e,t){return e+t},0)/e.length)})},[a,c]),E=n.useCallback(function(e){var t,n=a.findIndex(function(t){return t.artifactId===e});return-1===n?0:null!==(t=F[n])&&void 0!==t?t:0},[a,F]);return console.log("**** RequirementAIWrapper: ",_,q,b,D),t.jsx(r.Provider,e.__assign({value:{chatHistory:y,userStory:a,setUserStory:u,aiReasoning:c,setAiReasoning:l,citations:g,setCitations:d,apiCachingConfig:f,customStyles:h,customIcons:m,searchQueryList:p,searchQueryReasoningIdList:C,citationConfig:v,getAvgScoreForStory:E,chatCitationConfigs:x,gptCitationConfigs:S,aiReasoningAccordionOpenStates:I,persistedDataFiles:R,currentHighlightIndex:j,setCurrentHighlightIndex:w,inlineUpdateComponentConfig:A,handleViewGlossary:q,segmentDataList:_,getSegmentExampleComponent:b,handleFetchSegmentDetails:D}},{children:t.jsx(i.RefProvider,{children:s})}))},exports.useRequirementAI=function(){var e=n.useContext(r);if(!e)throw new Error("useRequirementAI must be used within RequirementAIWrapper");return e};
|
|
2
2
|
//# sourceMappingURL=RequirementAIWrapper.js.map
|
|
@@ -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"),s=require("lucide-react"),r=require("showdown"),i=require("@mui/material"),l=require("uuid"),o=require("./UserStoryCard.module.css.js"),a=require("../../utils/helpers.js"),u=require("../../utils/user-story.utils.js"),d=require("../../shared/AtomicButton.js"),c=require("../RichTextEditor/RichTextEditor.js"),v=require("../userstory-with-citation/UserStoryWithCitation.js"),f=require("../RequirementAIWrapper/RequirementAIWrapper.js"),y=require("../story-screen/BigEnoughPanel.js");function g(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var _=g(r);function h(t){for(var r,o=[],a=/<learned>(.*?)<\/learned>/g,u=0,d=0;null!==(r=a.exec(t));){var c=r[1],v=r.index;v>u&&o.push(n.jsx("span",{children:t.slice(u,v)},"text-pre-".concat(d++))),o.push(n.jsx(i.Tooltip,e.__assign({title:c,placement:"top"},{children:n.jsx(s.Info,{size:16,className:"inline-block mx-1 text-blue-500 hover:text-blue-700 cursor"})}),"tooltip-".concat(l.v4()))),u=a.lastIndex}return u<(null==t?void 0:t.length)&&o.push(n.jsx("span",{children:t.slice(u)},"text-post-".concat(d++))),o}function p(n,t,s){var r;if(!n)return{};if(t)return e.__assign({},n.parentConfig);var i=e.__assign({},n.childConfig);return s&&(null===(r=n.subFeatureOverrides)||void 0===r?void 0:r[s])?e.__assign(e.__assign({},i),n.subFeatureOverrides[s]):i}var m=function(t){var r,i=t.displayName,l=f.useRequirementAI().customStyles,a=null===(r=null==l?void 0:l.userStoryCardStyles)||void 0===r?void 0:r.showDisplayName;return n.jsxs("div",e.__assign({className:o.default.displayName,style:null==a?void 0:a.wrapper},{children:[n.jsx(s.Bookmark,{className:o.default.displayNameIcon,style:null==a?void 0:a.displayNameIcon}),n.jsxs("span",e.__assign({style:null==a?void 0:a.label},{children:[i,":"]}))]}))},S=function(r){var l,g,x,C,j,I,w=r.isUserStoryCurrentlyUpdated,N=r.artifactId,b=r.artifactTitleId,U=r.parentUserStory,D=r.currentUserStory,B=r.onUserStoryChange,M=r.parentIndex,k=r.currentIndex,q=r.enableDownload,A=r.isDiffEditReviewMode,E=r.showUserStoryDiff,R=r.handleDownloadUserStory,P=r.handleOpenSendDialog,T=r.updateUserStoryArtifact,H=r.selectedArtifactId,L=r.isDisplayHighlightControl,W=r.elementDisplayConfig,z=r._resolvedConfig,O=r.showWrapper,F=void 0!==O&&O,V=f.useRequirementAI(),G=V.searchQueryList,Q=V.citations,J=V.customStyles,K=null==J?void 0:J.userStoryCardStyles,X=null===(l=null==J?void 0:J.userStoryScreenStyles)||void 0===l?void 0:l.userStoryContentStyles,Y=null==K?void 0:K.progressHeaderStyles,Z=t.useState(e.__assign(e.__assign({},structuredClone(D)),{value:a.formatMarkdown(D.value)||""})),$=Z[0],ee=Z[1],ne=t.useState({userStory:!1}),te=ne[0],se=ne[1],re=f.useRequirementAI(),ie=re.userStory,le=re.customIcons,oe=t.useState(""===M||H===D.artifactId),ae=oe[0],ue=oe[1],de=t.useState(!1);de[0];var ce=de[1],ve=t.useState(null),fe=ve[0],ye=ve[1],ge=t.useState(!1),_e=ge[0],he=ge[1],pe=t.useRef(null),me=t.useState(!1);me[0];var Se=me[1],xe=t.useRef(null);t.useEffect(function(){w&&ue(w)},[w]),t.useEffect(function(){ee(e.__assign(e.__assign({},structuredClone(D)),{value:a.formatMarkdown(D.value)||""}))},[D]),t.useEffect(function(){G.length>0?ue(!0):H&&ue(H===D.artifactId)},[G,H,D.artifactId]);var Ce=function(){ye(null)},je=function(){ue(function(e){return!e})};var Ie=null!=(null==D?void 0:D.big_enough)&&!Number.isNaN(D.big_enough)&&!!(null==D?void 0:D.big_enough_decision_factors),we=null!=z?z:p(W,""===M);return n.jsxs("div",e.__assign({className:o.default.card,style:null==K?void 0:K.cardStyle,id:"story-card-".concat(D.title),"data-expanded":ae},{children:[n.jsxs("div",e.__assign({className:o.default.titleSection,style:null==K?void 0:K.titleSection},{children:[n.jsxs("div",e.__assign({className:o.default.titleRow,style:null==K?void 0:K.titleRow,onClick:je},{children:[n.jsxs("div",e.__assign({className:o.default.titleLeft,style:null==K?void 0:K.titleLeft,onMouseEnter:function(){return Se(!0)},onMouseLeave:function(){return Se(!1)}},{children:[n.jsx(m,{displayName:b}),n.jsx("h2",e.__assign({className:o.default.storyTitle,style:null==K?void 0:K.storyTitle},{children:h(D.title)}),D.artifactId)]})),n.jsxs("div",e.__assign({className:o.default.titleActions,style:null==K?void 0:K.titleActions,onClick:function(e){return e.stopPropagation()}},{children:[(we.showProgressPercentage||we.showGapBox)&&F&&n.jsxs("div",e.__assign({className:o.default.progressHeader,style:null==Y?void 0:Y.wrapper},{children:[we.showProgressPercentage&&n.jsxs("div",e.__assign({className:o.default.progressPercentage,style:null==Y?void 0:Y.percentage},{children:[null!==(x=null!==(g=null==D?void 0:D.confidenceScore)&&void 0!==g?g:null==we?void 0:we.confidenceValue)&&void 0!==x?x:"0","%"]})),we.showGapBox&&n.jsxs("div",e.__assign({className:o.default.gapBox,style:null==Y?void 0:Y.gapBox},{children:[null!==(j=null!==(C=null==D?void 0:D.gapValue)&&void 0!==C?C:null==we?void 0:we.gapBoxValue)&&void 0!==j?j:"2"," ","Gaps"]}))]})),Ie&&n.jsx(y.BigEnoughPanel,{customIcons:null==le?void 0:le.userStoryIcons,customStyles:null==K?void 0:K.aiReasoningCitaionStyles,currentUserStory:D,panelStyles:null==K?void 0:K.BigEnoughStyles}),!te.userStory&&n.jsxs(n.Fragment,{children:[!1!==(null==we?void 0:we.showShareButton)&&n.jsx("button",e.__assign({className:o.default.iconButton,style:null==K?void 0:K.iconButton,onClick:function(e){ye(e.currentTarget)}},{children:n.jsx(s.ExternalLink,{size:16})})),n.jsxs(i.Menu,e.__assign({id:"user-story-share-menu",anchorEl:fe,open:!!fe,onClose:function(){return ye(null)},style:null==K?void 0:K.userStoryShareMenu},{children:[q&&n.jsx(i.MenuItem,e.__assign({style:null==K?void 0:K.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 ce(!0),R?[4,Promise.all([R("pdf"),R("doc")])]:[2];case 1:return e.sent(),ce(!1),[2]}})})}},{children:n.jsxs("div",e.__assign({ref:pe,className:o.default.menuItemContent,style:null==K?void 0:K.menuItemContent},{children:[n.jsx(s.Download,{size:16,color:null==K?void 0:K.menuIconColor}),n.jsx("p",e.__assign({style:null==K?void 0:K.menuLabel},{children:"Download"}))]}))})),n.jsx(i.MenuItem,e.__assign({style:null==K?void 0:K.userStoryMenuItem,onClick:function(){return e.__awaiter(void 0,void 0,void 0,function(){var n;return e.__generator(this,function(t){return n=D,U&&(n=e.__assign(e.__assign({},D),{value:"".concat(u.replaceTitleSection(null==U?void 0:U.value,D.title)," \n").concat(D.value)})),null==P||P(!0,[n],D.artifactId),Ce(),[2]})})}},{children:n.jsxs("div",e.__assign({style:null==K?void 0:K.menuItemContent,className:o.default.menuItemContentPadded},{children:[n.jsx(s.Share2,{size:16,color:null==K?void 0:K.menuIconColor}),n.jsx("p",e.__assign({style:null==K?void 0:K.menuLabel},{children:"Send"}))]}))})),n.jsx(i.MenuItem,e.__assign({style:null==K?void 0:K.userStoryMenuItem,onClick:function(){return e.__awaiter(void 0,void 0,void 0,function(){var n,t,s,r,i;return e.__generator(this,function(e){switch(e.label){case 0:n=new _.default.Converter,t=n.makeHtml(a.formatMarkdown(D.value)||D.value),s=function(e){var n=(new _.default.Converter).makeHtml(e),t=document.createElement("div");return t.innerHTML=n,t.textContent||t.innerText||""}(a.formatMarkdown(D.value)||D.value),r=new ClipboardItem({"text/plain":new Blob([s],{type:"text/plain"}),"text/html":new Blob([t],{type:"text/html"})}),e.label=1;case 1:return e.trys.push([1,3,4,5]),[4,navigator.clipboard.write([r])];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 Ce(),[7];case 5:return[2]}})})}},{children:n.jsxs("div",e.__assign({style:null==K?void 0:K.menuItemContent,className:o.default.menuItemContentPadded},{children:[n.jsx(s.Copy,{size:16,color:null==K?void 0:K.menuIconColor}),n.jsx("p",e.__assign({style:null==K?void 0:K.menuLabel},{children:"Copy"}))]}))}))]}))]}),te.userStory&&ae?n.jsx(d.default,{type:"outline",children:"Cancel",style:null==K?void 0:K.cancelButton,onClick:function(){var n;null===(n=xe.current)||void 0===n||n.abort(),se(function(n){return e.__assign(e.__assign({},n),{userStory:!1})})}}):n.jsx(n.Fragment,{}),te.userStory&&ae?n.jsx(d.default,{type:"fill",children:_e?n.jsxs("span",e.__assign({className:o.default.savingSpinner,style:null==K?void 0:K.savingSpinner},{children:[n.jsx(s.LoaderCircle,{className:o.default.spinAnimation,style:null==K?void 0:K.spinAnimation}),n.jsx("span",{children:"Saving..."})]})):"Save",isDisable:_e,style:_e?null==K?void 0:K.savingButton:null==K?void 0:K.saveButton,onClick:function(){return e.__awaiter(void 0,void 0,void 0,function(){var n;return e.__generator(this,function(t){switch(t.label){case 0:return he(!0),"userStory"==="userStory"&&(B($),console.log("I am changing RTE editor values",$)),[4,T(Q,ie,N,null===(n=xe.current)||void 0===n?void 0:n.signal)];case 1:return t.sent(),se(function(n){return e.__assign(e.__assign({},n),{userStory:!1})}),he(!1),[2]}})})}}):!A&&!E&&ae&&!1!==(null==we?void 0:we.showEditButton)&&n.jsx("button",e.__assign({className:o.default.iconButton,style:null==K?void 0:K.editButton,onClick:function(){return se(function(n){return e.__assign(e.__assign({},n),{userStory:!0})})}},{children:n.jsx(s.PencilIcon,{color:null==K?void 0:K.pencilIconColor,size:16})})),n.jsx("button",e.__assign({type:"button",onClick:function(e){e.stopPropagation(),je()},style:null==K?void 0:K.chevronButton,className:o.default.chevronButton},{children:ae?n.jsx(s.ChevronUp,{className:o.default.chevronIcon,color:null==K?void 0:K.chevronIconColor}):n.jsx(s.ChevronDown,{className:o.default.chevronIcon,color:null==K?void 0:K.chevronIconColor})}))]}))]})),n.jsx("div",{className:o.default.divider,style:null==K?void 0:K.dividerStyle})]})),ae&&n.jsx("div",e.__assign({className:o.default.cardContent,style:null==K?void 0:K.cardContentStyle},{children:n.jsxs("div",e.__assign({className:o.default.contentInner,style:null==K?void 0:K.contentInner},{children:[n.jsxs("div",e.__assign({className:o.default.descriptionSection,style:null==K?void 0:K.descriptionSection},{children:[n.jsx("div",{className:o.default.justifyBetween,style:null==K?void 0:K.justifyBetween}),te.userStory?n.jsx(c.default,{minHeight:"100%",height:"100%",type:"string",value:a.formatMarkdown(D.value)||"",handleUpdateState:function(n,t){var s=a.indentMarkdown(t);ee(function(n){return e.__assign(e.__assign({},n),{value:s||""})})},doNotShowBorderInViewMode:!1,onBlur:function(){},mode:te.userStory?"edit":"readOnly"}):n.jsx(v.default,{showUserStoryDiff:E,isParent:""===M,message:a.formatMarkdown(D.value)||"",artifactId:D.artifactId,customStyles:X,isDisplayHighlightControl:L})]})),null===(I=$.sub_features)||void 0===I?void 0:I.map(function(t,s){var r=p(W,!1,t.artifactId);return n.jsx(S,{artifactId:N,isUserStoryCurrentlyUpdated:w,artifactTitleId:"".concat(b,"-").concat(String.fromCharCode(65+s)),parentUserStory:D,parentIndex:"".concat(M).concat(M&&".").concat(k),currentIndex:"".concat(s+1),doNotShowBorderInViewMode:!1,currentUserStory:t,onUserStoryChange:function(n){return function(n,t){var s=e.__spreadArray([],D.sub_features||[],!0);s[n]=t,B(e.__assign(e.__assign({},D),{sub_features:s}))}(s,n)},enableDownload:!0,isDiffEditReviewMode:A,showUserStoryDiff:E,updateUserStoryArtifact:T,handleDownloadUserStory:R,handleOpenSendDialog:P,isDisplayHighlightControl:L,elementDisplayConfig:W,_resolvedConfig:r},t.artifactId)})]}))}))]}))};exports.StoryCard=S,exports.UserStoryCardWrapper=function(t){var r=t.artifactTitleIDs,i=t.isDiffEditReviewMode,l=t.showUserStoryDiff,a=t.updateUserStoryArtifact,u=t.isUserStoryCurrentlyUpdated,d=t.artifactId,c=t.handleOpenSendDialog,v=t.handleDownloadUserStory,y=t.selectedArtifactId,g=t.isDisplayHighlightControl,_=t.elementDisplayConfig,h=t.showWrapper,m=f.useRequirementAI(),x=m.userStory,C=m.setUserStory,j=m.customStyles,I=m.searchQueryList,w=m.currentHighlightIndex,N=m.setCurrentHighlightIndex,b=null==j?void 0:j.userStoryCardStyles,U=0===w,D=w===I.length-1;return n.jsxs("div",e.__assign({className:o.default.userStoryCardWrapper,style:g?e.__assign(e.__assign({},null==b?void 0:b.userStoryCardWrapper),{position:"relative"}):null==b?void 0:b.userStoryCardWrapper},{children:[g&&n.jsx(n.Fragment,{children:I.length>0&&n.jsx("div",e.__assign({className:o.default.wrapper},{children:n.jsx("div",e.__assign({className:o.default.highlightNavigation},{children:n.jsxs("div",e.__assign({className:o.default.navigationContainer},{children:[n.jsxs("span",e.__assign({className:o.default.navCounter},{children:[w+1," of ",I.length]})),n.jsxs("div",e.__assign({className:o.default.navButtons},{children:[n.jsx("button",e.__assign({onClick:function(){w>0&&N(function(e){return e-1})},className:o.default.navButton,disabled:U},{children:n.jsx(s.ChevronUpIcon,{size:20,className:o.default.navIcon})})),n.jsx("button",e.__assign({onClick:function(){w<I.length-1&&N(function(e){return e+1})},className:o.default.navButton,disabled:D},{children:n.jsx(s.ChevronDownIcon,{size:20,className:o.default.navIcon})}))]}))]}))}))}))}),x.map(function(t,s){var o=p(_,!0);return n.jsx(S,{isUserStoryCurrentlyUpdated:u,artifactId:d,artifactTitleId:r[s]||"",currentUserStory:t,onUserStoryChange:function(n){C(function(t){return t[s]=n,e.__spreadArray([],t,!0)})},parentIndex:"",currentIndex:"".concat(s+1),doNotShowBorderInViewMode:!0,enableDownload:!0,isDiffEditReviewMode:i,showUserStoryDiff:l,updateUserStoryArtifact:a,handleOpenSendDialog:c,handleDownloadUserStory:v,selectedArtifactId:y,isDisplayHighlightControl:g,elementDisplayConfig:_,_resolvedConfig:o,showWrapper:h},t.artifactId)})]}))},exports.default=S,exports.replaceLearnedTagsWithInfo=h;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),n=require("react"),s=require("lucide-react"),r=require("showdown"),i=require("@mui/material"),l=require("uuid"),a=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"),v=require("../userstory-with-citation/UserStoryWithCitation.js"),f=require("../RequirementAIWrapper/RequirementAIWrapper.js"),g=require("../story-screen/BigEnoughPanel.js");function h(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var y=h(r);function _(n){for(var r,a=[],o=/<learned>(.*?)<\/learned>/g,u=0,d=0;null!==(r=o.exec(n));){var c=r[1],v=r.index;v>u&&a.push(t.jsx("span",{children:n.slice(u,v)},"text-pre-".concat(d++))),a.push(t.jsx(i.Tooltip,e.__assign({title:c,placement:"top"},{children:t.jsx(s.Info,{size:16,className:"inline-block mx-1 text-blue-500 hover:text-blue-700 cursor"})}),"tooltip-".concat(l.v4()))),u=o.lastIndex}return u<(null==n?void 0:n.length)&&a.push(t.jsx("span",{children:n.slice(u)},"text-post-".concat(d++))),a}function m(t,n,s){var r;if(!t)return{};if(n)return e.__assign({},t.parentConfig);var i=e.__assign({},t.childConfig);return s&&(null===(r=t.subFeatureOverrides)||void 0===r?void 0:r[s])?e.__assign(e.__assign({},i),t.subFeatureOverrides[s]):i}var p=function(n){var r,i=n.displayName,l=f.useRequirementAI().customStyles,o=null===(r=null==l?void 0:l.userStoryCardStyles)||void 0===r?void 0:r.showDisplayName;return t.jsxs("div",e.__assign({className:a.default.displayName,style:null==o?void 0:o.wrapper},{children:[t.jsx(s.Bookmark,{className:a.default.displayNameIcon,style:null==o?void 0:o.displayNameIcon}),t.jsxs("span",e.__assign({style:null==o?void 0:o.label},{children:[i,":"]}))]}))},S=function(r){var l,h,x,C,j,I,w=r.isUserStoryCurrentlyUpdated,N=r.artifactId,D=r.artifactTitleId,b=r.parentUserStory,U=r.currentUserStory,B=r.onUserStoryChange,M=r.parentIndex,k=r.currentIndex,E=r.enableDownload,q=r.isDiffEditReviewMode,A=r.showUserStoryDiff,R=r.handleDownloadUserStory,L=r.handleOpenSendDialog,P=r.updateUserStoryArtifact,T=r.selectedArtifactId,H=r.isDisplayHighlightControl,F=r.elementDisplayConfig,V=r._resolvedConfig,W=r.showWrapper,z=void 0!==W&&W,G=r.handleViewGlossary,O=r.segmentDataList,Q=r.getSegmentExampleComponent,J=r.handleFetchSegmentDetails,K=f.useRequirementAI(),X=K.searchQueryList,Y=K.citations,Z=K.customStyles,$=null==Z?void 0:Z.userStoryCardStyles,ee=null===(l=null==Z?void 0:Z.userStoryScreenStyles)||void 0===l?void 0:l.userStoryContentStyles,te=null==$?void 0:$.progressHeaderStyles,ne=n.useState(e.__assign(e.__assign({},structuredClone(U)),{value:o.formatMarkdown(U.value)||""})),se=ne[0],re=ne[1],ie=n.useState({userStory:!1}),le=ie[0],ae=ie[1],oe=f.useRequirementAI(),ue=oe.userStory,de=oe.customIcons,ce=n.useState(""===M||T===U.artifactId),ve=ce[0],fe=ce[1],ge=n.useState(!1);ge[0];var he=ge[1],ye=n.useState(null),_e=ye[0],me=ye[1],pe=n.useState(!1),Se=pe[0],xe=pe[1],Ce=n.useRef(null),je=n.useState(!1);je[0];var Ie=je[1],we=n.useRef(null);n.useEffect(function(){w&&fe(w)},[w]),n.useEffect(function(){re(e.__assign(e.__assign({},structuredClone(U)),{value:o.formatMarkdown(U.value)||""}))},[U]),n.useEffect(function(){X.length>0?fe(!0):T&&fe(T===U.artifactId)},[X,T,U.artifactId]);var Ne=function(){me(null)},De=function(){fe(function(e){return!e})};var be=null!=(null==U?void 0:U.big_enough)&&!Number.isNaN(U.big_enough)&&!!(null==U?void 0:U.big_enough_decision_factors),Ue=null!=V?V:m(F,""===M);return t.jsxs("div",e.__assign({className:a.default.card,style:null==$?void 0:$.cardStyle,id:"story-card-".concat(U.title),"data-expanded":ve},{children:[t.jsxs("div",e.__assign({className:a.default.titleSection,style:null==$?void 0:$.titleSection},{children:[t.jsxs("div",e.__assign({className:a.default.titleRow,style:null==$?void 0:$.titleRow,onClick:De},{children:[t.jsxs("div",e.__assign({className:a.default.titleLeft,style:null==$?void 0:$.titleLeft,onMouseEnter:function(){return Ie(!0)},onMouseLeave:function(){return Ie(!1)}},{children:[t.jsx(p,{displayName:D}),t.jsx("h2",e.__assign({className:a.default.storyTitle,style:null==$?void 0:$.storyTitle},{children:_(U.title)}),U.artifactId)]})),t.jsxs("div",e.__assign({className:a.default.titleActions,style:null==$?void 0:$.titleActions,onClick:function(e){return e.stopPropagation()}},{children:[(Ue.showProgressPercentage||Ue.showGapBox)&&z&&t.jsxs("div",e.__assign({className:a.default.progressHeader,style:null==te?void 0:te.wrapper},{children:[Ue.showProgressPercentage&&t.jsxs("div",e.__assign({className:a.default.progressPercentage,style:null==te?void 0:te.percentage},{children:[null!==(x=null!==(h=null==U?void 0:U.confidenceScore)&&void 0!==h?h:null==Ue?void 0:Ue.confidenceValue)&&void 0!==x?x:"0","%"]})),Ue.showGapBox&&t.jsxs("div",e.__assign({className:a.default.gapBox,style:null==te?void 0:te.gapBox},{children:[null!==(j=null!==(C=null==U?void 0:U.gapValue)&&void 0!==C?C:null==Ue?void 0:Ue.gapBoxValue)&&void 0!==j?j:"2"," ","Gaps"]}))]})),be&&t.jsx(g.BigEnoughPanel,{customIcons:null==de?void 0:de.userStoryIcons,customStyles:null==$?void 0:$.aiReasoningCitaionStyles,currentUserStory:U,panelStyles:null==$?void 0:$.BigEnoughStyles}),!le.userStory&&t.jsxs(t.Fragment,{children:[!1!==(null==Ue?void 0:Ue.showShareButton)&&t.jsx("button",e.__assign({className:a.default.iconButton,style:null==$?void 0:$.iconButton,onClick:function(e){me(e.currentTarget)}},{children:t.jsx(s.ExternalLink,{size:16})})),t.jsxs(i.Menu,e.__assign({id:"user-story-share-menu",anchorEl:_e,open:!!_e,onClose:function(){return me(null)},style:null==$?void 0:$.userStoryShareMenu},{children:[E&&t.jsx(i.MenuItem,e.__assign({style:null==$?void 0:$.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 he(!0),R?[4,Promise.all([R("pdf"),R("doc")])]:[2];case 1:return e.sent(),he(!1),[2]}})})}},{children:t.jsxs("div",e.__assign({ref:Ce,className:a.default.menuItemContent,style:null==$?void 0:$.menuItemContent},{children:[t.jsx(s.Download,{size:16,color:null==$?void 0:$.menuIconColor}),t.jsx("p",e.__assign({style:null==$?void 0:$.menuLabel},{children:"Download"}))]}))})),t.jsx(i.MenuItem,e.__assign({style:null==$?void 0:$.userStoryMenuItem,onClick:function(){return e.__awaiter(void 0,void 0,void 0,function(){var t;return e.__generator(this,function(n){return t=U,b&&(t=e.__assign(e.__assign({},U),{value:"".concat(u.replaceTitleSection(null==b?void 0:b.value,U.title)," \n").concat(U.value)})),null==L||L(!0,[t],U.artifactId),Ne(),[2]})})}},{children:t.jsxs("div",e.__assign({style:null==$?void 0:$.menuItemContent,className:a.default.menuItemContentPadded},{children:[t.jsx(s.Share2,{size:16,color:null==$?void 0:$.menuIconColor}),t.jsx("p",e.__assign({style:null==$?void 0:$.menuLabel},{children:"Send"}))]}))})),t.jsx(i.MenuItem,e.__assign({style:null==$?void 0:$.userStoryMenuItem,onClick:function(){return e.__awaiter(void 0,void 0,void 0,function(){var t,n,s,r,i;return e.__generator(this,function(e){switch(e.label){case 0:t=new y.default.Converter,n=t.makeHtml(o.formatMarkdown(U.value)||U.value),s=function(e){var t=(new y.default.Converter).makeHtml(e),n=document.createElement("div");return n.innerHTML=t,n.textContent||n.innerText||""}(o.formatMarkdown(U.value)||U.value),r=new ClipboardItem({"text/plain":new Blob([s],{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([r])];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 Ne(),[7];case 5:return[2]}})})}},{children:t.jsxs("div",e.__assign({style:null==$?void 0:$.menuItemContent,className:a.default.menuItemContentPadded},{children:[t.jsx(s.Copy,{size:16,color:null==$?void 0:$.menuIconColor}),t.jsx("p",e.__assign({style:null==$?void 0:$.menuLabel},{children:"Copy"}))]}))}))]}))]}),le.userStory&&ve?t.jsx(d.default,{type:"outline",children:"Cancel",style:null==$?void 0:$.cancelButton,onClick:function(){var t;null===(t=we.current)||void 0===t||t.abort(),ae(function(t){return e.__assign(e.__assign({},t),{userStory:!1})})}}):t.jsx(t.Fragment,{}),le.userStory&&ve?t.jsx(d.default,{type:"fill",children:Se?t.jsxs("span",e.__assign({className:a.default.savingSpinner,style:null==$?void 0:$.savingSpinner},{children:[t.jsx(s.LoaderCircle,{className:a.default.spinAnimation,style:null==$?void 0:$.spinAnimation}),t.jsx("span",{children:"Saving..."})]})):"Save",isDisable:Se,style:Se?null==$?void 0:$.savingButton:null==$?void 0:$.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 xe(!0),"userStory"==="userStory"&&(B(se),console.log("I am changing RTE editor values",se)),[4,P(Y,ue,N,null===(t=we.current)||void 0===t?void 0:t.signal)];case 1:return n.sent(),ae(function(t){return e.__assign(e.__assign({},t),{userStory:!1})}),xe(!1),[2]}})})}}):!q&&!A&&ve&&!1!==(null==Ue?void 0:Ue.showEditButton)&&t.jsx("button",e.__assign({className:a.default.iconButton,style:null==$?void 0:$.editButton,onClick:function(){return ae(function(t){return e.__assign(e.__assign({},t),{userStory:!0})})}},{children:t.jsx(s.PencilIcon,{color:null==$?void 0:$.pencilIconColor,size:16})})),t.jsx("button",e.__assign({type:"button",onClick:function(e){e.stopPropagation(),De()},style:null==$?void 0:$.chevronButton,className:a.default.chevronButton},{children:ve?t.jsx(s.ChevronUp,{className:a.default.chevronIcon,color:null==$?void 0:$.chevronIconColor}):t.jsx(s.ChevronDown,{className:a.default.chevronIcon,color:null==$?void 0:$.chevronIconColor})}))]}))]})),t.jsx("div",{className:a.default.divider,style:null==$?void 0:$.dividerStyle})]})),ve&&t.jsx("div",e.__assign({className:a.default.cardContent,style:null==$?void 0:$.cardContentStyle},{children:t.jsxs("div",e.__assign({className:a.default.contentInner,style:null==$?void 0:$.contentInner},{children:[t.jsxs("div",e.__assign({className:a.default.descriptionSection,style:null==$?void 0:$.descriptionSection},{children:[t.jsx("div",{className:a.default.justifyBetween,style:null==$?void 0:$.justifyBetween}),le.userStory?t.jsx(c.default,{minHeight:"100%",height:"100%",type:"string",value:o.formatMarkdown(U.value)||"",handleUpdateState:function(t,n){var s=o.indentMarkdown(n);re(function(t){return e.__assign(e.__assign({},t),{value:s||""})})},doNotShowBorderInViewMode:!1,onBlur:function(){},mode:le.userStory?"edit":"readOnly"}):t.jsx(v.default,{showUserStoryDiff:A,isParent:""===M,message:o.formatMarkdown(U.value)||"",artifactId:U.artifactId,customStyles:ee,isDisplayHighlightControl:H,getSegmentExampleComponent:Q,handleViewGlossary:G,segmentDataList:O,handleFetchSegmentDetails:J})]})),null===(I=se.sub_features)||void 0===I?void 0:I.map(function(n,s){var r=m(F,!1,n.artifactId);return t.jsx(S,{artifactId:N,isUserStoryCurrentlyUpdated:w,artifactTitleId:"".concat(D,"-").concat(String.fromCharCode(65+s)),parentUserStory:U,parentIndex:"".concat(M).concat(M&&".").concat(k),currentIndex:"".concat(s+1),doNotShowBorderInViewMode:!1,currentUserStory:n,onUserStoryChange:function(t){return function(t,n){var s=e.__spreadArray([],U.sub_features||[],!0);s[t]=n,B(e.__assign(e.__assign({},U),{sub_features:s}))}(s,t)},enableDownload:!0,isDiffEditReviewMode:q,showUserStoryDiff:A,updateUserStoryArtifact:P,handleDownloadUserStory:R,handleOpenSendDialog:L,isDisplayHighlightControl:H,elementDisplayConfig:F,_resolvedConfig:r,getSegmentExampleComponent:Q,handleViewGlossary:G,segmentDataList:O,handleFetchSegmentDetails:J},n.artifactId)})]}))}))]}))};exports.StoryCard=S,exports.UserStoryCardWrapper=function(n){var r=n.artifactTitleIDs,i=n.isDiffEditReviewMode,l=n.showUserStoryDiff,o=n.updateUserStoryArtifact,u=n.isUserStoryCurrentlyUpdated,d=n.artifactId,c=n.handleOpenSendDialog,v=n.handleDownloadUserStory,g=n.selectedArtifactId,h=n.isDisplayHighlightControl,y=n.elementDisplayConfig,_=n.showWrapper,p=f.useRequirementAI(),x=p.userStory,C=p.setUserStory,j=p.customStyles,I=p.searchQueryList,w=p.currentHighlightIndex,N=p.setCurrentHighlightIndex,D=p.segmentDataList,b=p.handleViewGlossary,U=p.getSegmentExampleComponent,B=p.handleFetchSegmentDetails,M=null==j?void 0:j.userStoryCardStyles,k=0===w,E=w===I.length-1;return t.jsxs("div",e.__assign({className:a.default.userStoryCardWrapper,style:h?e.__assign(e.__assign({},null==M?void 0:M.userStoryCardWrapper),{position:"relative"}):null==M?void 0:M.userStoryCardWrapper},{children:[h&&t.jsx(t.Fragment,{children:I.length>0&&t.jsx("div",e.__assign({className:a.default.wrapper},{children:t.jsx("div",e.__assign({className:a.default.highlightNavigation},{children:t.jsxs("div",e.__assign({className:a.default.navigationContainer},{children:[t.jsxs("span",e.__assign({className:a.default.navCounter},{children:[w+1," of ",I.length]})),t.jsxs("div",e.__assign({className:a.default.navButtons},{children:[t.jsx("button",e.__assign({onClick:function(){w>0&&N(function(e){return e-1})},className:a.default.navButton,disabled:k},{children:t.jsx(s.ChevronUpIcon,{size:20,className:a.default.navIcon})})),t.jsx("button",e.__assign({onClick:function(){w<I.length-1&&N(function(e){return e+1})},className:a.default.navButton,disabled:E},{children:t.jsx(s.ChevronDownIcon,{size:20,className:a.default.navIcon})}))]}))]}))}))}))}),x.map(function(n,s){var a=m(y,!0);return t.jsx(S,{isUserStoryCurrentlyUpdated:u,artifactId:d,artifactTitleId:r[s]||"",currentUserStory:n,onUserStoryChange:function(t){C(function(n){return n[s]=t,e.__spreadArray([],n,!0)})},parentIndex:"",currentIndex:"".concat(s+1),doNotShowBorderInViewMode:!0,enableDownload:!0,isDiffEditReviewMode:i,showUserStoryDiff:l,updateUserStoryArtifact:o,handleOpenSendDialog:c,handleDownloadUserStory:v,selectedArtifactId:g,isDisplayHighlightControl:h,elementDisplayConfig:y,_resolvedConfig:a,showWrapper:_,getSegmentExampleComponent:U,handleViewGlossary:b,segmentDataList:D,handleFetchSegmentDetails:B},n.artifactId)})]}))},exports.default=S,exports.replaceLearnedTagsWithInfo=_;
|
|
2
2
|
//# sourceMappingURL=UserStoryCard.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),i=require("react"),n=require("lucide-react"),l=require("../../utils/user-story.utils.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),i=require("react"),n=require("lucide-react"),l=require("../../utils/user-story.utils.js"),a=require("../userstory-with-citation/UserStoryWithCitation.js"),s=require("./PartialRequirementContent.module.css.js"),o=require("@mui/material"),r=require("../RequirementAIWrapper/RequirementAIWrapper.js"),d=require("../RichTextEditor/RichTextEditor.js"),u=function(u){var v,c,m,g,y,_,p,C,f,h,S,q,x,j,R,P,w,B,b=u.loadingPartialRequirements,N=u.localUserStory,D=u.setLocalUserStory,E=u.onCraFlowDiffAgentAction,A=u.disableEditing,k=u.isCraflow,T=void 0===k||k,U=u.onCraAccept,F=u.onCraReject,W=i.useState(!1),L=W[0],I=W[1],M=i.useState(""),z=M[0],V=M[1],G=r.useRequirementAI(),H=G.customStyles,O=G.segmentDataList,X=G.handleViewGlossary,J=G.getSegmentExampleComponent,K=G.handleFetchSegmentDetails;i.useEffect(function(){A&&I(!1)},[A]),i.useEffect(function(){var e;V(null===(e=null==N?void 0:N[0])||void 0===e?void 0:e.value)},[N]);if(b)return t.jsx("div",e.__assign({className:s.default.skeletonWrapper,style:null===(v=null==H?void 0:H.PartialRequirementContentStyles)||void 0===v?void 0:v.skeletonWrapper},{children:[1,2,3,4,5].map(function(e){var i;return t.jsx("div",{className:s.default.skeletonLine,style:null===(i=null==H?void 0:H.PartialRequirementContentStyles)||void 0===i?void 0:i.skeletonLine},e)})}));var Q=!z||""===z.trim();return t.jsxs("div",e.__assign({className:s.default.wrapper,style:null===(c=null==H?void 0:H.PartialRequirementContentStyles)||void 0===c?void 0:c.wrapper},{children:[t.jsx("div",e.__assign({className:s.default.actionBar,style:null===(m=null==H?void 0:H.PartialRequirementContentStyles)||void 0===m?void 0:m.actionBar},{children:L?t.jsxs(t.Fragment,{children:[t.jsxs("span",e.__assign({className:s.default.editingBadge,style:null===(p=null==H?void 0:H.PartialRequirementContentStyles)||void 0===p?void 0:p.editingBadge},{children:[t.jsx("span",{className:s.default.editingDot,style:null===(C=null==H?void 0:H.PartialRequirementContentStyles)||void 0===C?void 0:C.editingDot}),"Editing"]})),t.jsx("div",{className:s.default.btnDivider,style:null===(f=null==H?void 0:H.PartialRequirementContentStyles)||void 0===f?void 0:f.btnDivider}),t.jsx(o.Tooltip,e.__assign({title:Q?"This field cannot be empty":"Save changes",slotProps:{tooltip:{sx:e.__assign({},null===(h=null==H?void 0:H.PartialRequirementContentStyles)||void 0===h?void 0:h.headerTooltip)}}},{children:t.jsx("span",{children:t.jsx("button",e.__assign({className:s.default.saveBtn,style:e.__assign(e.__assign(e.__assign({},null===(S=null==H?void 0:H.PartialRequirementContentStyles)||void 0===S?void 0:S.actionBtn),null===(q=null==H?void 0:H.PartialRequirementContentStyles)||void 0===q?void 0:q.saveBtn),{opacity:Q?.5:1,cursor:Q?"not-allowed":"pointer"}),onClick:function(){Q||(D(function(t){var i=e.__assign(e.__assign({},t[0]),{value:z});return null==E||E("accept",[i]),[i]}),I(!1))},disabled:Q},{children:t.jsx(n.Save,{size:16})}))})})),t.jsx("button",e.__assign({className:s.default.cancelBtn,style:e.__assign(e.__assign({},null===(x=null==H?void 0:H.PartialRequirementContentStyles)||void 0===x?void 0:x.actionBtn),null===(j=null==H?void 0:H.PartialRequirementContentStyles)||void 0===j?void 0:j.cancelBtn),onClick:function(){var e;V(null===(e=null==N?void 0:N[0])||void 0===e?void 0:e.value),I(!1)},title:"Discard changes","aria-label":"Discard changes"},{children:t.jsx(n.X,{size:16})}))]}):t.jsx(o.Tooltip,e.__assign({title:A?"Editing is disabled":"Edit",slotProps:{tooltip:{sx:e.__assign({},null===(g=null==H?void 0:H.PartialRequirementContentStyles)||void 0===g?void 0:g.headerTooltip)}}},{children:t.jsx("span",{children:t.jsx("button",e.__assign({className:s.default.editBtn,style:e.__assign(e.__assign(e.__assign({},null===(y=null==H?void 0:H.PartialRequirementContentStyles)||void 0===y?void 0:y.actionBtn),null===(_=null==H?void 0:H.PartialRequirementContentStyles)||void 0===_?void 0:_.editBtn),{opacity:A?.5:1,cursor:A?"not-allowed":"pointer"}),onClick:function(){A||I(!0)},disabled:A,"aria-label":"Edit requirement"},{children:t.jsx(n.Pencil,{size:16})}))})}))})),L?t.jsx("div",e.__assign({className:s.default.editorContainer,style:null===(R=null==H?void 0:H.PartialRequirementContentStyles)||void 0===R?void 0:R.editorContainer},{children:t.jsx(d.default,{minHeight:"100%",height:"100%",type:"string",value:l.formatMarkdown((null===(P=null==N?void 0:N[0])||void 0===P?void 0:P.value)||""),handleUpdateState:function(e,t){V(t)},doNotShowBorderInViewMode:!1,mode:"edit"})})):t.jsx("div",e.__assign({className:s.default.viewContainer,style:null===(w=null==H?void 0:H.PartialRequirementContentStyles)||void 0===w?void 0:w.viewContainer},{children:t.jsx(a.default,{message:l.formatMarkdown((null===(B=null==N?void 0:N[0])||void 0===B?void 0:B.value)||""),craFlowConfig:{isCraflow:!0,craUserStory:N,setCraUserStory:D,onCraFlowDiffAgentAction:E,displayActionButtons:!L},isCraflow:T,onCraAccept:U,onCraReject:F,customStyles:null==H?void 0:H.UserStoryWithCitationCustomStyles,getSegmentExampleComponent:J,handleViewGlossary:X,segmentDataList:O,handleFetchSegmentDetails:K})}))]}))};exports.PartialRequirementContent=u,exports.default=u;
|
|
2
2
|
//# sourceMappingURL=PartialRequirementContent.js.map
|
|
@@ -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"),a=require("lucide-react"),s=require("../../../UserStoryImport/lib/cn.js"),l=require("./segment.module.css.js"),o=require("./ExampleComponentWrapper.js"),i=require("../ai-reasoning/AiReasoningCitationContent.js");function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var c=r(t);exports.default=function(t){var r=t.id,u=void 0===r?"Segment":r,d=t.label;t.originalValue,t.decisionStrength;var m=t.aiReason,g=t.customStyles,p=t.customIcons,f=t.aiReasoningCitationCustomStyles,_=t.segmentExampleComponent,v=t.handleViewGlossary,x=c.default.useState(!1),j=x[0],y=x[1],h=c.default.useState(!1),C=h[0],b=h[1];return n.jsxs("div",e.__assign({className:"".concat(l.default.segmentWrapper),style:e.__assign({},null==g?void 0:g.segmentWrapper)},{children:[n.jsxs("div",e.__assign({className:"".concat(l.default.segmentContainer),style:e.__assign({},null==g?void 0:g.container)},{children:[n.jsxs("span",e.__assign({className:"".concat(l.default.segmentLabel),style:e.__assign({},null==g?void 0:g.label)},{children:[u," ","{".concat(d,"}")]})),n.jsx("button",e.__assign({className:"".concat(l.default.segmentExplanationButtonContainer),style:e.__assign({},null==g?void 0:g.buttonContainer),onClick:function(){y(function(e){return!e}),b(!1)}},{children:n.jsx(a.ChevronDown,{className:s.cn("".concat(l.default.cheveronIcon),j&&"".concat(l.default.cheveronIconRotated)),style:e.__assign({},null==g?void 0:g.cheveronIcon)})}))]})),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),t=require("react"),a=require("lucide-react"),s=require("../../../UserStoryImport/lib/cn.js"),l=require("./segment.module.css.js"),o=require("./ExampleComponentWrapper.js"),i=require("../ai-reasoning/AiReasoningCitationContent.js");function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var c=r(t);exports.default=function(t){var r=t.id,u=void 0===r?"Segment":r,d=t.label;t.originalValue,t.decisionStrength;var m=t.aiReason,g=t.customStyles,p=t.customIcons,f=t.aiReasoningCitationCustomStyles,_=t.segmentExampleComponent,v=t.handleViewGlossary,x=c.default.useState(!1),j=x[0],y=x[1],h=c.default.useState(!1),C=h[0],b=h[1];return n.jsxs("div",e.__assign({className:"".concat(l.default.segmentWrapper),style:e.__assign({},null==g?void 0:g.segmentWrapper)},{children:[n.jsxs("div",e.__assign({className:"".concat(l.default.segmentContainer),style:e.__assign({},null==g?void 0:g.container)},{children:[n.jsxs("span",e.__assign({className:"".concat(l.default.segmentLabel),style:e.__assign({},null==g?void 0:g.label)},{children:[u," ","{".concat(d,"}")]})),n.jsx("button",e.__assign({className:"".concat(l.default.segmentExplanationButtonContainer),style:e.__assign({},null==g?void 0:g.buttonContainer),onClick:function(){y(function(e){return!e}),b(!1)}},{children:n.jsx(a.ChevronDown,{className:s.cn("".concat(l.default.cheveronIcon),j&&"".concat(l.default.cheveronIconRotated)),style:e.__assign({},null==g?void 0:g.cheveronIcon)})}))]})),C?n.jsx(o.default,{label:null!=d?d:"",segmentExampleComponent:_,customStyles:null==g?void 0:g.segmentExample,handleCancelExample:function(){b(!1)}}):m&&j&&n.jsx(i.default,{aiReason:m,customStyles:f,customIcons:p,isSegmentExplanation:!0,handleViewGlossary:function(){y(!1),null==v||v()},handleViewExample:function(){b(!0)}})]}))};
|
|
2
2
|
//# sourceMappingURL=Segment.js.map
|
|
@@ -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 t=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;t&&e.setAttribute("nonce",t),e.appendChild(document.createTextNode(
|
|
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 t=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;t&&e.setAttribute("nonce",t),e.appendChild(document.createTextNode('.segment-module_segmentWrapper__PVOuq{display:flex;flex-direction:column;gap:8px}.segment-module_segmentContainer__wBEel{align-items:center;background-color:#eff6ff;border:1px dashed #bfdbfe;border-radius:4px;color:#3b82f6;display:flex;gap:8px;padding:8px;width:"fit-content"}.segment-module_segmentLabel__-y8Su{color:#3b82f6;font-size:14px;font-weight:600;line-height:21px;text-transform:uppercase}.segment-module_segmentButtonContainer__X76sx{background-color:initial;border:none;cursor:pointer;padding:0}.segment-module_cheveronIcon__1njFy{color:#3b82f6;height:16px;transition:all .2s ease-in-out;width:16px}.segment-module_cheveronIconRotated__qDYj7{transform:rotate(180deg)}.segment-module_exampleWrapper__ptZzj{align-items:flex-start;display:flex;flex-direction:column;gap:12px}.segment-module_uppercase__hjgxG{text-transform:uppercase}.segment-module_exampleContainer__9tMXx{align-items:flex-start;border:2px dashed #e2e8f0;border-radius:8px;display:flex;flex-direction:column;gap:8px;padding:16px;width:100%}.segment-module_exampleHeader__9P11O{align-items:center;align-self:stretch;display:flex;justify-content:space-between}.segment-module_exampleHeaderText__MWMG0{color:#334155;font-size:14px;font-weight:600;line-height:21px;margin:0}.segment-module_cancelButton__-F5aZ{align-items:center;align-self:stretch;background-color:initial;border:none;color:#334155;cursor:pointer;display:flex;height:fit-content;justify-content:space-between;padding:4px;transition:all .2s ease-in-out}.segment-module_cancelButton__-F5aZ:hover{background-color:#eff6ff}'));const n=document.head||document.getElementsByTagName("head")[0]||document.documentElement;n&&n.appendChild(e)}(),exports.default={segmentWrapper:"segment-module_segmentWrapper__PVOuq",segmentContainer:"segment-module_segmentContainer__wBEel",segmentLabel:"segment-module_segmentLabel__-y8Su",segmentButtonContainer:"segment-module_segmentButtonContainer__X76sx",cheveronIcon:"segment-module_cheveronIcon__1njFy",cheveronIconRotated:"segment-module_cheveronIconRotated__qDYj7",exampleWrapper:"segment-module_exampleWrapper__ptZzj",uppercase:"segment-module_uppercase__hjgxG",exampleContainer:"segment-module_exampleContainer__9tMXx",exampleHeader:"segment-module_exampleHeader__9P11O",exampleHeaderText:"segment-module_exampleHeaderText__MWMG0",cancelButton:"segment-module_cancelButton__-F5aZ"};
|
|
2
2
|
//# sourceMappingURL=segment.module.css.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("react"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),n=require("react"),s=require("lucide-react"),i=require("../RequirementAIWrapper/RequirementAIWrapper.js"),a=require("../../utils/helpers.js"),r=require("../RichTextEditor/RichTextEditor.js"),o=require("../userstory-with-citation/UserStoryWithCitation.js"),l=require("../../shared/AtomicButton.js"),u=require("./SubfeatureBlock.module.css.js");exports.default=function(d){var c,f,g=d.parentArtifactId,v=d.artifactId,_=d.title,m=d.content,p=d.isEditingModeOn,h=d.setIsEditingModeOn,y=d.isCitationLoadingDisplay,x=void 0!==y&&y,j=i.useRequirementAI(),S=j.userStory,I=j.setUserStory,q=j.customStyles,b=j.customIcons,C=j.segmentDataList,N=j.handleViewGlossary,B=j.getSegmentExampleComponent,w=j.handleFetchSegmentDetails,k=null===(c=null==q?void 0:q.userStoryScreenStyles)||void 0===c?void 0:c.subFeatureBlock,A=null===(f=null==q?void 0:q.userStoryScreenStyles)||void 0===f?void 0:f.userStoryContentStyles,D=n.useState(!0),E=D[0],W=D[1],F=n.useState(!1),M=F[0],P=F[1],R=n.useState(S),L=R[0],O=R[1];n.useEffect(function(){O(S)},[S]);return t.jsxs("div",e.__assign({className:u.default.container,style:null==k?void 0:k.container},{children:[t.jsxs("button",e.__assign({onClick:function(){W(function(e){return!e})},className:u.default.toggleButton,style:null==k?void 0:k.toggleButton},{children:[t.jsx("h1",e.__assign({className:u.default.title,style:null==k?void 0:k.title},{children:_})),t.jsxs("div",e.__assign({className:u.default.subFeatureToolbar,style:null==k?void 0:k.subFeatureToolbar},{children:[E&&t.jsx("div",e.__assign({className:u.default.actionBar,style:null==k?void 0:k.actionBar},{children:M?t.jsxs("div",e.__assign({className:u.default.editingActions},{children:[t.jsx(l.default,{type:"outline",children:"Cancel",onClick:function(e){e.stopPropagation(),P(!1),h(!1)}}),t.jsx(l.default,{type:"fill",children:"Save",onClick:function(e){e.stopPropagation(),I(L),P(!1),h(!1)}})]})):!p&&t.jsx("div",e.__assign({className:u.default.viewActions},{children:t.jsx("button",e.__assign({className:u.default.editButton,style:null==k?void 0:k.editButton,onClick:function(e){e.stopPropagation(),P(!0),h(!0)}},{children:t.jsx(s.PencilIcon,{size:16})}))}))})),t.jsx(s.ChevronDown,{className:"".concat(u.default.chevron," ").concat(E?u.default.chevronOpen:""),style:null==k?void 0:k.chevron})]}))]})),E&&t.jsx(t.Fragment,{children:M?t.jsx("div",e.__assign({className:u.default.editorWrapper,style:null==k?void 0:k.editorWrapper},{children:t.jsx(r.default,{minHeight:"100%",height:"100%",type:"string",value:a.formatMarkdown(m)||"",handleUpdateState:function(t,n){var s=a.indentMarkdown(n);O(function(t){var n=e.__spreadArray([],t,!0),i=n.findIndex(function(e){return e.artifactId===g});if(-1===i)return n;var a=n[i].sub_features;if(a){var r=a.findIndex(function(e){return e.artifactId===v});-1!==r&&(n[i]=e.__assign(e.__assign({},n[i]),{sub_features:a.map(function(t,n){return n===r?e.__assign(e.__assign({},t),{value:s}):t})}))}return n})},doNotShowBorderInViewMode:!1,onBlur:function(){},mode:"edit"})})):t.jsx("div",e.__assign({className:u.default.contentWrapper,style:null==k?void 0:k.contentWrapper},{children:t.jsx(o.default,{message:m,isCitationLoadingDisplay:x,customStyles:e.__assign({},A),customIcons:e.__assign({},null==b?void 0:b.userStoryIcons),getSegmentExampleComponent:B,handleViewGlossary:N,segmentDataList:C,handleFetchSegmentDetails:w})}))})]}),v)};
|
|
2
2
|
//# sourceMappingURL=SubfeatureBlock.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("react"),s=require("react-resizable-panels"),i=require("lucide-react"),l=require("../../utils/helpers.js"),r=require("./SubfeatureBlock.js"),o=require("./UserStoryScreen.module.css.js"),a=require("../RequirementAIWrapper/RequirementAIWrapper.js"),d=n.createContext(null),u=function(){var e=n.useContext(d);if(!e)throw new Error("UserStoryScreen must be used inside its provider");return e},c=function(n){var s,i,l=n.AtomicButton,r=u(),d=r.selectedStreamingStoryIndex,c=r.isCitationLoadingNotStarted,m=r.classNames,g=r.scenario,y=a.useRequirementAI(),f=y.userStory,x=y.customStyles,p=null==x?void 0:x.userStoryScreenStyles;return(null==f?void 0:f.length)?t.jsxs("div",e.__assign({className:"".concat(o.default.header," ").concat(null!==(s=null==m?void 0:m.header)&&void 0!==s?s:""),style:null==p?void 0:p.header},{children:[t.jsxs("div",e.__assign({className:o.default.headerLeftContainer},{children:[t.jsx("span",e.__assign({className:o.default.headerTitle,style:null==p?void 0:p.headerTitle},{children:null===(i=f[d])||void 0===i?void 0:i.title})),"streaming"===g&&t.jsxs("span",e.__assign({className:o.default.headerSubtitle,style:null==p?void 0:p.headerSubtitle},{children:[t.jsx("span",e.__assign({className:o.default.streamingText,style:null==p?void 0:p.streamingText},{children:c?"Generating Requirement Doc":"Hang tight! We're loading the citations."}))," • Review & edit blocks as we build"]}))]})),t.jsx(v,{AtomicButton:l})]})):t.jsx(S,{classNames:m})},v=function(n){var s=n.AtomicButton,l=u(),r=l.isEditing,d=l.isEditingModeOn,c=l.setIsEditing,v=l.setIsEditingModeOn,S=l.userStoryCopy,m=a.useRequirementAI(),g=m.userStory,y=m.setUserStory,f=m.customStyles,x=null==f?void 0:f.userStoryScreenStyles;return(null==g?void 0:g.length)?r?t.jsxs("div",e.__assign({className:o.default.actions,style:null==x?void 0:x.actions},{children:[t.jsx(s,e.__assign({type:"outline",onClick:function(){c(!1),v(!1)},style:null==x?void 0:x.cancelAtomicButton},{children:"Cancel"})),t.jsx(s,e.__assign({type:"fill",onClick:function(){y(S),c(!1),v(!1)},style:null==x?void 0:x.saveAtomicButton},{children:"Save"}))]})):d?null:t.jsx("div",e.__assign({className:o.default.editToggleWrapper},{children:t.jsx("button",e.__assign({className:o.default.editToggleBtn,style:null==x?void 0:x.editToggleBtn,onClick:function(){c(!0),v(!0)}},{children:t.jsx(i.PencilIcon,{size:16})}))})):null},S=function(n){var s,i=n.classNames;return t.jsxs("div",e.__assign({className:"".concat(o.default.header," ").concat(null!==(s=null==i?void 0:i.header)&&void 0!==s?s:"")},{children:[t.jsx("div",{className:o.default.skeletonTitle}),t.jsx("div",{className:o.default.skeletonSubtitle})]}))},m=function(){var n,s=a.useRequirementAI().customStyles,i=null===(n=null==s?void 0:s.userStoryScreenStyles)||void 0===n?void 0:n.accordionSkeleton;return t.jsxs("div",e.__assign({className:o.default.accordionSkeleton,style:null==i?void 0:i.wrapper},{children:[t.jsx("div",{className:o.default.skeletonLine,style:null==i?void 0:i.line}),t.jsx("div",{className:o.default.skeletonBox,style:null==i?void 0:i.box})]}))},g=function(){var n,s=a.useRequirementAI().customStyles,i=null===(n=null==s?void 0:s.userStoryScreenStyles)||void 0===n?void 0:n.subFeatureSkeleton;return t.jsxs("div",e.__assign({className:o.default.subFeatureSkeleton,style:null==i?void 0:i.wrapper},{children:[t.jsx("div",{className:o.default.skeletonLine,style:null==i?void 0:i.line}),t.jsx("div",{className:o.default.skeletonLine,style:null==i?void 0:i.line}),t.jsx("div",{className:o.default.skeletonLine,style:null==i?void 0:i.line})]}))},y=Object.assign(function(i){var l,r,u,c,v,S=i.scenario,m=i.isCitationLoadingNotStarted,g=i.children,y=i.classNames,f=i.artifactTitleIds,x=a.useRequirementAI(),p=x.userStory,_=x.customStyles,h=n.useState(0),j=h[0],I=h[1],b=n.useState(!0),N=b[0],C=b[1],E=n.useState(!1),B=E[0],R=E[1],A=n.useState(!1),q=A[0],k=A[1],T=n.useState(!1),w=T[0],L=T[1],P=n.useState(!1),M=P[0],z=P[1],O=n.useState(p),W=O[0],H=O[1],U=n.useRef(null),F=n.useRef(null);return n.useEffect(function(){H(p)},[p]),n.useEffect(function(){R(!0);var e=setTimeout(function(){return R(!1)},2e3);return function(){return clearTimeout(e)}},[null===(r=null===(l=null==p?void 0:p[j])||void 0===l?void 0:l.sub_features)||void 0===r?void 0:r.length]),n.useEffect(function(){var e=F.current;if(e){var t=function(){k(e.scrollHeight-e.scrollTop-e.clientHeight<20)};return e.addEventListener("scroll",t),function(){return e.removeEventListener("scroll",t)}}},[null==p?void 0:p[j]]),t.jsx(d.Provider,e.__assign({value:{scenario:S,isCitationLoadingNotStarted:m,selectedStreamingStoryIndex:j,setSelectedStreamingStoryIndex:I,isSidebarExpanded:N,setIsSidebarExpanded:C,sidebarPanelRef:U,isEditing:w,setIsEditing:L,isEditingModeOn:M,setIsEditingModeOn:z,userStoryCopy:W,setUserStoryCopy:H,scrollContainerRef:F,isAtBottom:q,isScrollBtnBouncing:B,scrollToBottom:function(){F.current&&F.current.scrollTo({top:F.current.scrollHeight,behavior:"smooth"})},classNames:y,artifactTitleIds:f}},{children:t.jsx("div",e.__assign({className:"".concat(o.default.container," ").concat(null!==(u=null==y?void 0:y.container)&&void 0!==u?u:""),style:e.__assign({},null===(c=null==_?void 0:_.userStoryScreenStyles)||void 0===c?void 0:c.wrapperContainer)},{children:t.jsx(s.PanelGroup,e.__assign({direction:"horizontal",className:o.default.panelGroup,style:null===(v=null==_?void 0:_.userStoryScreenStyles)||void 0===v?void 0:v.panelGroup},{children:g}))}))}))},{Sidebar:function(n){var i,l=n.Component,r=u(),d=r.selectedStreamingStoryIndex,c=r.setSelectedStreamingStoryIndex,v=r.isSidebarExpanded,S=r.setIsSidebarExpanded,m=r.sidebarPanelRef,g=r.scenario,y=r.artifactTitleIds,f=a.useRequirementAI(),x=f.userStory,p=f.customStyles;return t.jsx(s.Panel,e.__assign({ref:m,defaultSize:25,minSize:15,collapsible:!0,collapsedSize:0,onCollapse:function(){return S(!1)},onExpand:function(){return S(!0)},id:"streaming-sidebar",order:1,className:o.default.sidebarPanel,style:null===(i=null==p?void 0:p.userStoryScreenStyles)||void 0===i?void 0:i.sidebarPanel},{children:t.jsx(l,{streamingUserStories:x,selectedStreamingStoryIndex:d,setSelectedStreamingStoryIndex:c,isSidebarExpanded:v,isStreamingScreen:"streaming"===g,artifactTitleIds:y})}))},SidebarToggle:function(n){var i=n.OpenIcon,l=n.CloseIcon,r=u(),d=r.isSidebarExpanded;r.setIsSidebarExpanded;var c=r.sidebarPanelRef,v=a.useRequirementAI().customStyles,S=null==v?void 0:v.userStoryScreenStyles;return t.jsx(s.PanelResizeHandle,e.__assign({className:o.default.resizeHandle,style:null==S?void 0:S.resizeHandle},{children:t.jsx("button",e.__assign({className:o.default.sidebarToggleBtn,onClick:function(e){e.stopPropagation(),function(){var e,t;d?null===(e=c.current)||void 0===e||e.collapse():null===(t=c.current)||void 0===t||t.expand()}()},style:null==S?void 0:S.sidebarToggleBtn},{children:d?t.jsx(l,{}):t.jsx(i,{})}))}))},Content:function(n){var i,l=n.children,r=n.AtomicButton,d=u(),v=d.scrollContainerRef,S=d.classNames,m=a.useRequirementAI().customStyles,g=null==m?void 0:m.userStoryScreenStyles;return t.jsx(s.Panel,e.__assign({minSize:0,id:"streaming-content",order:2,className:o.default.contentPanel,style:null==g?void 0:g.contentPanel},{children:t.jsxs("div",e.__assign({ref:v,className:"".concat(o.default.scrollContainer," ").concat(null!==(i=null==S?void 0:S.scrollContainer)&&void 0!==i?i:""),style:null==g?void 0:g.scrollContainer},{children:[t.jsx(c,{AtomicButton:r}),l]}))}))},Body:function(e){var n=e.children,s=a.useRequirementAI(),i=s.userStory;return s.setUserStory,(null==i?void 0:i.length)?t.jsx(t.Fragment,{children:n}):null},Story:function(n){var s,i,l,r=n.Component,d=u(),c=d.selectedStreamingStoryIndex,v=d.isEditing,S=d.scenario,m=a.useRequirementAI(),g=m.userStory,y=m.customStyles,f=m.customIcons,x=m.segmentDataList,p=m.handleViewGlossary,_=m.getSegmentExampleComponent,h=null==y?void 0:y.userStoryScreenStyles,j=null==h?void 0:h.userStoryContentStyles;return v?null:t.jsx("div",e.__assign({className:o.default.storyWrapper,style:null==h?void 0:h.storyWrapper},{children:t.jsx(r,{message:null===(s=g[c])||void 0===s?void 0:s.value,aiReasoningsForBlock:(null===(i=g[c])||void 0===i?void 0:i.aiReasoning)||[],isCitationLoadingDisplay:"streaming"===S,customStyles:e.__assign({},j),customIcons:e.__assign({},null==f?void 0:f.userStoryIcons),artifactId:null===(l=g[c])||void 0===l?void 0:l.artifactId,getSegmentExampleComponent:_,handleViewGlossary:p,segmentDataList:x})}))},Editor:function(n){var s,i=n.Component,r=n.onBlur,d=u(),c=d.selectedStreamingStoryIndex,v=d.isEditing,S=d.setUserStoryCopy,m=a.useRequirementAI(),g=m.userStory,y=m.customStyles,f=null==y?void 0:y.textEditorStyles;if(!v)return null;return t.jsx("div",e.__assign({className:o.default.editorWrapper,style:null==f?void 0:f.wrapper},{children:t.jsx(i,{minHeight:"100%",height:"100%",type:"string",value:l.formatMarkdown(null===(s=g[c])||void 0===s?void 0:s.value)||"",handleUpdateState:function(t,n){var s,i=l.indentMarkdown(n),r=null===(s=g[c])||void 0===s?void 0:s.storyNumber;S(function(t){var n=e.__spreadArray([],t,!0),s=n.findIndex(function(e){return e.storyNumber===r});return-1===s||(n[s]=e.__assign(e.__assign({},n[s]),{value:i})),n})},doNotShowBorderInViewMode:!1,onBlur:r,mode:"edit",customStyles:f})}))},SubFeatures:function(){var n,s=u(),i=s.selectedStreamingStoryIndex,l=s.isEditingModeOn,d=s.setIsEditingModeOn,c=s.scenario,v=s.isCitationLoadingNotStarted,S=a.useRequirementAI().userStory,y=(null===(n=null==S?void 0:S[i])||void 0===n?void 0:n.sub_features)||[];return 0===y.length&&"streaming"===c?t.jsx(m,{}):t.jsxs(t.Fragment,{children:[y.map(function(e){return t.jsx(r.default,{parentArtifactId:null==S?void 0:S[i].artifactId,artifactId:e.artifactId,title:e.title,content:e.value,aiReasoning:e.aiReasoning||[],isEditingModeOn:l,setIsEditingModeOn:d,isCitationLoadingDisplay:"streaming"===c},e.artifactId)}),"streaming"===c&&v&&t.jsx("div",e.__assign({className:o.default.subFeatureSkeletonWrapper},{children:t.jsx(g,{})}))]})},ScrollButton:function(){var n=u(),s=n.isAtBottom,l=n.isSidebarExpanded,r=n.scrollToBottom,d=n.isScrollBtnBouncing,c=a.useRequirementAI(),v=c.userStory,S=c.customStyles,m=null==S?void 0:S.userStoryScreenStyles;return!(null==v?void 0:v.length)||s?null:t.jsx("div",e.__assign({className:"".concat(o.default.scrollBtnWrapper," ").concat(l?o.default.scrollExpanded:o.default.scrollCollapsed),style:null==m?void 0:m.scrollBtnWrapper},{children:t.jsx("button",e.__assign({onClick:r,className:"".concat(o.default.scrollBtn," ").concat(d?o.default.bounce:""),style:null==m?void 0:m.scrollBtn,"aria-label":"Scroll to bottom"},{children:t.jsx(i.ChevronDown,{size:20})}))}))}});exports.default=y;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),n=require("react"),s=require("react-resizable-panels"),l=require("lucide-react"),i=require("../../utils/helpers.js"),r=require("./SubfeatureBlock.js"),o=require("./UserStoryScreen.module.css.js"),a=require("../RequirementAIWrapper/RequirementAIWrapper.js"),d=n.createContext(null),u=function(){var e=n.useContext(d);if(!e)throw new Error("UserStoryScreen must be used inside its provider");return e},c=function(n){var s,l,i=n.AtomicButton,r=u(),d=r.selectedStreamingStoryIndex,c=r.isCitationLoadingNotStarted,m=r.classNames,g=r.scenario,y=a.useRequirementAI(),f=y.userStory,x=y.customStyles,p=null==x?void 0:x.userStoryScreenStyles;return(null==f?void 0:f.length)?t.jsxs("div",e.__assign({className:"".concat(o.default.header," ").concat(null!==(s=null==m?void 0:m.header)&&void 0!==s?s:""),style:null==p?void 0:p.header},{children:[t.jsxs("div",e.__assign({className:o.default.headerLeftContainer},{children:[t.jsx("span",e.__assign({className:o.default.headerTitle,style:null==p?void 0:p.headerTitle},{children:null===(l=f[d])||void 0===l?void 0:l.title})),"streaming"===g&&t.jsxs("span",e.__assign({className:o.default.headerSubtitle,style:null==p?void 0:p.headerSubtitle},{children:[t.jsx("span",e.__assign({className:o.default.streamingText,style:null==p?void 0:p.streamingText},{children:c?"Generating Requirement Doc":"Hang tight! We're loading the citations."}))," • Review & edit blocks as we build"]}))]})),t.jsx(v,{AtomicButton:i})]})):t.jsx(S,{classNames:m})},v=function(n){var s=n.AtomicButton,i=u(),r=i.isEditing,d=i.isEditingModeOn,c=i.setIsEditing,v=i.setIsEditingModeOn,S=i.userStoryCopy,m=a.useRequirementAI(),g=m.userStory,y=m.setUserStory,f=m.customStyles,x=null==f?void 0:f.userStoryScreenStyles;return(null==g?void 0:g.length)?r?t.jsxs("div",e.__assign({className:o.default.actions,style:null==x?void 0:x.actions},{children:[t.jsx(s,e.__assign({type:"outline",onClick:function(){c(!1),v(!1)},style:null==x?void 0:x.cancelAtomicButton},{children:"Cancel"})),t.jsx(s,e.__assign({type:"fill",onClick:function(){y(S),c(!1),v(!1)},style:null==x?void 0:x.saveAtomicButton},{children:"Save"}))]})):d?null:t.jsx("div",e.__assign({className:o.default.editToggleWrapper},{children:t.jsx("button",e.__assign({className:o.default.editToggleBtn,style:null==x?void 0:x.editToggleBtn,onClick:function(){c(!0),v(!0)}},{children:t.jsx(l.PencilIcon,{size:16})}))})):null},S=function(n){var s,l=n.classNames;return t.jsxs("div",e.__assign({className:"".concat(o.default.header," ").concat(null!==(s=null==l?void 0:l.header)&&void 0!==s?s:"")},{children:[t.jsx("div",{className:o.default.skeletonTitle}),t.jsx("div",{className:o.default.skeletonSubtitle})]}))},m=function(){var n,s=a.useRequirementAI().customStyles,l=null===(n=null==s?void 0:s.userStoryScreenStyles)||void 0===n?void 0:n.accordionSkeleton;return t.jsxs("div",e.__assign({className:o.default.accordionSkeleton,style:null==l?void 0:l.wrapper},{children:[t.jsx("div",{className:o.default.skeletonLine,style:null==l?void 0:l.line}),t.jsx("div",{className:o.default.skeletonBox,style:null==l?void 0:l.box})]}))},g=function(){var n,s=a.useRequirementAI().customStyles,l=null===(n=null==s?void 0:s.userStoryScreenStyles)||void 0===n?void 0:n.subFeatureSkeleton;return t.jsxs("div",e.__assign({className:o.default.subFeatureSkeleton,style:null==l?void 0:l.wrapper},{children:[t.jsx("div",{className:o.default.skeletonLine,style:null==l?void 0:l.line}),t.jsx("div",{className:o.default.skeletonLine,style:null==l?void 0:l.line}),t.jsx("div",{className:o.default.skeletonLine,style:null==l?void 0:l.line})]}))},y=Object.assign(function(l){var i,r,u,c,v,S=l.scenario,m=l.isCitationLoadingNotStarted,g=l.children,y=l.classNames,f=l.artifactTitleIds,x=a.useRequirementAI(),p=x.userStory,h=x.customStyles,_=n.useState(0),j=_[0],I=_[1],b=n.useState(!0),N=b[0],C=b[1],E=n.useState(!1),B=E[0],R=E[1],A=n.useState(!1),q=A[0],k=A[1],T=n.useState(!1),w=T[0],L=T[1],P=n.useState(!1),M=P[0],z=P[1],O=n.useState(p),W=O[0],F=O[1],D=n.useRef(null),H=n.useRef(null);return n.useEffect(function(){F(p)},[p]),n.useEffect(function(){R(!0);var e=setTimeout(function(){return R(!1)},2e3);return function(){return clearTimeout(e)}},[null===(r=null===(i=null==p?void 0:p[j])||void 0===i?void 0:i.sub_features)||void 0===r?void 0:r.length]),n.useEffect(function(){var e=H.current;if(e){var t=function(){k(e.scrollHeight-e.scrollTop-e.clientHeight<20)};return e.addEventListener("scroll",t),function(){return e.removeEventListener("scroll",t)}}},[null==p?void 0:p[j]]),t.jsx(d.Provider,e.__assign({value:{scenario:S,isCitationLoadingNotStarted:m,selectedStreamingStoryIndex:j,setSelectedStreamingStoryIndex:I,isSidebarExpanded:N,setIsSidebarExpanded:C,sidebarPanelRef:D,isEditing:w,setIsEditing:L,isEditingModeOn:M,setIsEditingModeOn:z,userStoryCopy:W,setUserStoryCopy:F,scrollContainerRef:H,isAtBottom:q,isScrollBtnBouncing:B,scrollToBottom:function(){H.current&&H.current.scrollTo({top:H.current.scrollHeight,behavior:"smooth"})},classNames:y,artifactTitleIds:f}},{children:t.jsx("div",e.__assign({className:"".concat(o.default.container," ").concat(null!==(u=null==y?void 0:y.container)&&void 0!==u?u:""),style:e.__assign({},null===(c=null==h?void 0:h.userStoryScreenStyles)||void 0===c?void 0:c.wrapperContainer)},{children:t.jsx(s.PanelGroup,e.__assign({direction:"horizontal",className:o.default.panelGroup,style:null===(v=null==h?void 0:h.userStoryScreenStyles)||void 0===v?void 0:v.panelGroup},{children:g}))}))}))},{Sidebar:function(n){var l,i=n.Component,r=u(),d=r.selectedStreamingStoryIndex,c=r.setSelectedStreamingStoryIndex,v=r.isSidebarExpanded,S=r.setIsSidebarExpanded,m=r.sidebarPanelRef,g=r.scenario,y=r.artifactTitleIds,f=a.useRequirementAI(),x=f.userStory,p=f.customStyles;return t.jsx(s.Panel,e.__assign({ref:m,defaultSize:25,minSize:15,collapsible:!0,collapsedSize:0,onCollapse:function(){return S(!1)},onExpand:function(){return S(!0)},id:"streaming-sidebar",order:1,className:o.default.sidebarPanel,style:null===(l=null==p?void 0:p.userStoryScreenStyles)||void 0===l?void 0:l.sidebarPanel},{children:t.jsx(i,{streamingUserStories:x,selectedStreamingStoryIndex:d,setSelectedStreamingStoryIndex:c,isSidebarExpanded:v,isStreamingScreen:"streaming"===g,artifactTitleIds:y})}))},SidebarToggle:function(n){var l=n.OpenIcon,i=n.CloseIcon,r=u(),d=r.isSidebarExpanded;r.setIsSidebarExpanded;var c=r.sidebarPanelRef,v=a.useRequirementAI().customStyles,S=null==v?void 0:v.userStoryScreenStyles;return t.jsx(s.PanelResizeHandle,e.__assign({className:o.default.resizeHandle,style:null==S?void 0:S.resizeHandle},{children:t.jsx("button",e.__assign({className:o.default.sidebarToggleBtn,onClick:function(e){e.stopPropagation(),function(){var e,t;d?null===(e=c.current)||void 0===e||e.collapse():null===(t=c.current)||void 0===t||t.expand()}()},style:null==S?void 0:S.sidebarToggleBtn},{children:d?t.jsx(i,{}):t.jsx(l,{})}))}))},Content:function(n){var l,i=n.children,r=n.AtomicButton,d=u(),v=d.scrollContainerRef,S=d.classNames,m=a.useRequirementAI().customStyles,g=null==m?void 0:m.userStoryScreenStyles;return t.jsx(s.Panel,e.__assign({minSize:0,id:"streaming-content",order:2,className:o.default.contentPanel,style:null==g?void 0:g.contentPanel},{children:t.jsxs("div",e.__assign({ref:v,className:"".concat(o.default.scrollContainer," ").concat(null!==(l=null==S?void 0:S.scrollContainer)&&void 0!==l?l:""),style:null==g?void 0:g.scrollContainer},{children:[t.jsx(c,{AtomicButton:r}),i]}))}))},Body:function(e){var n=e.children,s=a.useRequirementAI(),l=s.userStory;return s.setUserStory,(null==l?void 0:l.length)?t.jsx(t.Fragment,{children:n}):null},Story:function(n){var s,l,i,r=n.Component,d=u(),c=d.selectedStreamingStoryIndex,v=d.isEditing,S=d.scenario,m=a.useRequirementAI(),g=m.userStory,y=m.customStyles,f=m.customIcons,x=m.segmentDataList,p=m.handleViewGlossary,h=m.getSegmentExampleComponent,_=m.handleFetchSegmentDetails,j=null==y?void 0:y.userStoryScreenStyles,I=null==j?void 0:j.userStoryContentStyles;return v?null:t.jsx("div",e.__assign({className:o.default.storyWrapper,style:null==j?void 0:j.storyWrapper},{children:t.jsx(r,{message:null===(s=g[c])||void 0===s?void 0:s.value,aiReasoningsForBlock:(null===(l=g[c])||void 0===l?void 0:l.aiReasoning)||[],isCitationLoadingDisplay:"streaming"===S,customStyles:e.__assign({},I),customIcons:e.__assign({},null==f?void 0:f.userStoryIcons),artifactId:null===(i=g[c])||void 0===i?void 0:i.artifactId,getSegmentExampleComponent:h,handleViewGlossary:p,segmentDataList:x,handleFetchSegmentDetails:_})}))},Editor:function(n){var s,l=n.Component,r=n.onBlur,d=u(),c=d.selectedStreamingStoryIndex,v=d.isEditing,S=d.setUserStoryCopy,m=a.useRequirementAI(),g=m.userStory,y=m.customStyles,f=null==y?void 0:y.textEditorStyles;if(!v)return null;return t.jsx("div",e.__assign({className:o.default.editorWrapper,style:null==f?void 0:f.wrapper},{children:t.jsx(l,{minHeight:"100%",height:"100%",type:"string",value:i.formatMarkdown(null===(s=g[c])||void 0===s?void 0:s.value)||"",handleUpdateState:function(t,n){var s,l=i.indentMarkdown(n),r=null===(s=g[c])||void 0===s?void 0:s.storyNumber;S(function(t){var n=e.__spreadArray([],t,!0),s=n.findIndex(function(e){return e.storyNumber===r});return-1===s||(n[s]=e.__assign(e.__assign({},n[s]),{value:l})),n})},doNotShowBorderInViewMode:!1,onBlur:r,mode:"edit",customStyles:f})}))},SubFeatures:function(){var n,s=u(),l=s.selectedStreamingStoryIndex,i=s.isEditingModeOn,d=s.setIsEditingModeOn,c=s.scenario,v=s.isCitationLoadingNotStarted,S=a.useRequirementAI().userStory,y=(null===(n=null==S?void 0:S[l])||void 0===n?void 0:n.sub_features)||[];return 0===y.length&&"streaming"===c?t.jsx(m,{}):t.jsxs(t.Fragment,{children:[y.map(function(e){return t.jsx(r.default,{parentArtifactId:null==S?void 0:S[l].artifactId,artifactId:e.artifactId,title:e.title,content:e.value,aiReasoning:e.aiReasoning||[],isEditingModeOn:i,setIsEditingModeOn:d,isCitationLoadingDisplay:"streaming"===c},e.artifactId)}),"streaming"===c&&v&&t.jsx("div",e.__assign({className:o.default.subFeatureSkeletonWrapper},{children:t.jsx(g,{})}))]})},ScrollButton:function(){var n=u(),s=n.isAtBottom,i=n.isSidebarExpanded,r=n.scrollToBottom,d=n.isScrollBtnBouncing,c=a.useRequirementAI(),v=c.userStory,S=c.customStyles,m=null==S?void 0:S.userStoryScreenStyles;return!(null==v?void 0:v.length)||s?null:t.jsx("div",e.__assign({className:"".concat(o.default.scrollBtnWrapper," ").concat(i?o.default.scrollExpanded:o.default.scrollCollapsed),style:null==m?void 0:m.scrollBtnWrapper},{children:t.jsx("button",e.__assign({onClick:r,className:"".concat(o.default.scrollBtn," ").concat(d?o.default.bounce:""),style:null==m?void 0:m.scrollBtn,"aria-label":"Scroll to bottom"},{children:t.jsx(l.ChevronDown,{size:20})}))}))}});exports.default=y;
|
|
2
2
|
//# sourceMappingURL=UserStoryScreen.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"),i=require("react"),t=require("react-markdown"),o=require("rehype-raw"),a=require("./UserStoryWithCitation.module.css.js"),l=require("../../shared/useMarkdownSearch.js"),r=require("lucide-react"),d=require("@mui/material"),s=require("../../shared/UpdatedAnimationContent.js"),c=require("../../shared/GeneratedCodeCitation.js"),u=require("../../shared/CitationLoadingIndicator.js"),v=require("../RequirementAIWrapper/RequirementAIWrapper.js"),g=require("../../icons/CognitiveDecision.js"),h=require("../../icons/BrainRed.js"),f=require("../ai-reasoning/AiReasoningCitation.js"),m=require("../../icons/RelevanceScoreIcon.js"),p=require("../RecommendationBlock/RecommendationBlock.js"),C=require("../UserStoryCard/AttachedContext.js"),_=require("../ai-reasoning/AiReasoningCitationContent.js"),x=require("./components/InlineUpdatedComponent.js"),y=require("../segment/Segment.js");function j(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var S=j(t),R=j(o),I=i.createContext(!1),w=i.createContext({expandedInfo:null,setExpanded:function(){},reasonToRow:{current:new Map}}),b=i.createContext({rowId:""}),N=function(t){var o,l=t.aiReason,r=t.isHighConfidence,d=t.customStyle,s=t.customIcons,c=i.useContext(w),u=c.expandedInfo,v=c.setExpanded,f=c.reasonToRow,m=i.useContext(b).rowId,p=String(l.id);m&&f.current.set(p,m);var C=(null===(o=null==u?void 0:u.aiReason)||void 0===o?void 0:o.id)===l.id,_=r?(null==s?void 0:s.highConfidence)||n.jsx(g.default,{}):(null==s?void 0:s.lowConfidence)||n.jsx(h.default,{});return n.jsxs("button",e.__assign({className:a.default.aiReasoningButton,style:d,onClick:function(e){e.stopPropagation(),e.preventDefault(),v(C?null:m,C?null:l)}},{children:[_,C?n.jsx("i",{className:"pi pi-angle-up ".concat(r?a.default.aiReasoningIconHighConfidence:a.default.aiReasoningIconLowConfidence)}):n.jsx("i",{className:"pi pi-angle-down ".concat(r?a.default.aiReasoningIconHighConfidence:a.default.aiReasoningIconLowConfidence)})]}))},q=function(t){var o,l,r=t.children,d=t.node,s=t.customStyles,c=t.customIcons,u=i.useRef(Math.random().toString(36).slice(2)).current,v=i.useContext(w).expandedInfo,g=(null==v?void 0:v.rowId)===u,h=Array.isArray(null==d?void 0:d.children)?d.children.filter(function(e){return"element"===e.type}).length:1,f=null!==(l=null===(o=null==d?void 0:d.properties)||void 0===o?void 0:o.style)&&void 0!==l?l:void 0;return n.jsxs(b.Provider,e.__assign({value:{rowId:u}},{children:[n.jsx("tr",e.__assign({style:f?{cssText:f}:void 0},{children:r})),g&&(null==v?void 0:v.aiReason)&&n.jsx("tr",e.__assign({style:{width:"100%"}},{children:n.jsx("td",e.__assign({colSpan:h||1,className:a.default.tableExpandedCell},{children:n.jsx("div",e.__assign({className:a.default.tableExpandedCellInner},{children:n.jsx("div",e.__assign({className:a.default.tableExpandedCellContent},{children:n.jsx(_.default,{aiReason:v.aiReason,customIcons:c,customStyles:{aiReasoningContent:null==s?void 0:s.aiReasoningContent,aiReasoningAccordion:null==s?void 0:s.aiReasoningAccordion,aiReasoningMarkdown:null==s?void 0:s.aiReasoningMarkdown,aiReasoningPill:null==s?void 0:s.aiReasoningPill,webCitation:null==s?void 0:s.webCitation,stormeeCitation:null==s?void 0:s.stormeeCitation,waveformCitation:null==s?void 0:s.waveformCitation,imageCitation:null==s?void 0:s.imageCitation,fileCitation:null==s?void 0:s.fileCitation,appModCitation:null==s?void 0:s.appModCitation,rcaCitation:null==s?void 0:s.rcaCitation,readFileCitation:null==s?void 0:s.readFileCitation,loadingCitations:null==s?void 0:s.loadingCitations,chatCitation:null==s?void 0:s.chatCitation}})}))}))}))}))]}))};exports.default=function(t){var o,g=t.message,h=t.isParent,_=t.scenario,j=t.showUserStoryDiff,b=void 0!==j&&j,A=t.aiReasoningsForBlock,E=t.isCitationLoadingDisplay,k=void 0!==E&&E,M=t.className;t.highConfidenceIcon,t.lowConfidenceIcon;var T=t.customStyles,U=t.customIcons,L=t.aiReasoningDiffView,P=t.userStoryCitations,D=t.artifactId,F=t.isCraflow,H=t.onCraAccept,$=t.onCraReject,O=t.craFlowConfig,B=t.isDisplayHighlightControl,G=void 0!==B&&B;t.segmentExampleComponent;var W=t.handleFetchSegmentDetails,z=t.handleViewGlossary,V=t.getSegmentExampleComponent,Q=t.segmentDataList,J=i.useRef(null),K=v.useRequirementAI(),X=K.userStory,Y=K.inlineUpdateComponentConfig,Z=K.getAvgScoreForStory,ee=K.setUserStory,ne=K.aiReasoning,ie=K.setAiReasoning,te=K.customIcons,oe=K.searchQueryList,ae=K.searchQueryReasoningIdList,le=K.currentHighlightIndex,re=null!=U?U:null==te?void 0:te.userStoryIcons;null==T||T.searchHighlight;var de=l.useMarkdownSearch(J),se=de.search,ce=de.clear,ue=i.useState("1"),ve=ue[0],ge=ue[1],he=i.useState(null),fe=he[0],me=he[1],pe=i.useRef(new Map),Ce=i.useCallback(function(e,n){me(e&&n?{rowId:e,aiReason:n}:null)},[]),_e=D?Z(D):0,xe=i.useState([]),ye=xe[0],je=xe[1],Se=function(e){var n=e;return n=function(e){for(var n,i=/<updated[^>]*>[\s\S]*?<\/updated>/gi,t=[],o=new RegExp(i.source,i.flags);null!==(n=o.exec(e));){var a=n[0],l=a.match(/<deleted>([\s\S]*?)<\/deleted>/i),r=a.match(/<changed>([\s\S]*?)<\/changed>/i),d=function(e){return(e.match(/^\s*\d+\.\s/gm)||[]).length};t.push({index:n.index,endIndex:n.index+n[0].length,deletedItemCount:d((null==l?void 0:l[1])||""),changedItemCount:d((null==r?void 0:r[1])||"")})}if(0===t.length)return e;for(var s=e,c=function(e){var n=t[e],i=n.changedItemCount-n.deletedItemCount;if(0===i)return"continue";for(var o=!1,a=0,l=s.substring(0,n.index).split("\n").reverse();a<l.length;a++){var r=l[a].trim();if(""!==r){/^\d+\.\s/.test(r)&&(o=!0);break}}if(!o)return"continue";var d=n.endIndex,c=e+1<t.length?t[e+1].index:s.length,u=s.substring(d,c);u=u.replace(/^(\s*)(\d+)\.\s/gm,function(e,n,t){return"".concat(n).concat(parseInt(t,10)+i,". ")}),s=s.substring(0,d)+u+s.substring(c)},u=t.length-1;u>=0;u--)c(u);return s}(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 t=btoa(encodeURIComponent(i.trim()));return"\n\n<generatedCode".concat(n,' data-raw="').concat(t,'"></generatedCode>\n\n')})).replace(/^(\s*[-*]|\s*\d+\.)\s*\n?\s*(<updated\b)/gm,"$1 $2")).replace(/<updated([^>]*)>([\s\S]*?)<\/updated>/gi,function(e,i,t,o){var a=n.substring(0,o),l=a.lastIndexOf("\n"),r=/^\s+[-*]\s/.test(a.substring(l+1))||/^\s+\d+\.\s/.test(a.substring(l+1)),d=/^\s*(\d+\.|\s*[-*])\s+$/.test(a.substring(l+1));if(r||d){var s=t;return s=(s=(s=(s=s.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(s,"</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},Re=i.useMemo(function(){return g?Se(g):g},[g]);i.useEffect(function(){je(A||ne)},[A,ne]);var Ie=i.useMemo(function(){return{upt:function(i){var t;i.node;var o=i.children,a=e.__rest(i,["node","children"]),l=null==a?void 0:a.id,r=l?null===(t=l.split("$"))||void 0===t?void 0:t[1]:null,d=ne.find(function(e){return e.id.toString()===r});return d?n.jsx(x.default,e.__assign({aiReason:d,customStyles:null==T?void 0:T.inlineUpdatedComponent,handleClickCognitiveDecision:null==Y?void 0:Y.handleClickCognitiveDecision,handleClickUpdatedPill:null==Y?void 0:Y.handleClickUpdatedPill},{children:o})):o},del:function(i){i.node;var t=i.children,o=e.__rest(i,["node","children"]);return n.jsx("span",e.__assign({className:a.default.deleted,style:null==T?void 0:T.deleted},o,{children:t}))},ins:function(i){var t=i.children,o=e.__rest(i,["children"]);return n.jsx("span",e.__assign({className:a.default.inserted,style:null==T?void 0:T.inserted},o,{children:t}))},h1:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("h1",e.__assign({className:a.default.heading1,style:null==T?void 0:T.heading1},{children:t.children}))},h2:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("h2",e.__assign({className:a.default.heading2,style:null==T?void 0:T.heading2},{children:t.children}))},h3:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("h3",e.__assign({className:a.default.heading3,style:null==T?void 0:T.heading3},{children:t.children}))},b:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("b",e.__assign({className:a.default.bold,style:null==T?void 0:T.bold},{children:null==t?void 0:t.children}))},p:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("p",e.__assign({},t,{className:a.default.paragraph,style:null==T?void 0:T.paragraph},{children:t.children}))},updated:function(i){var t=i.node,o=e.__rest(i,["node"]);return n.jsx(s.default,e.__assign({},o,{showUserStoryDiff:b,currentUpdatedTagId:ve,setCurrentUpdatedTagId:ge,userStory:X,setUserStory:ee,setAiReasoning:ie,node:t,isCraflow:F,onCraAccept:H,onCraReject:$,customStyles:null==T?void 0:T.updatedContent,craFlowConfig:O}))},ol:function(i){var t,o,l,r=i.node,d=e.__rest(i,["node"]),s=null!==(l=null!==(o=null===(t=null==r?void 0:r.properties)||void 0===t?void 0:t.start)&&void 0!==o?o:null==d?void 0:d.start)&&void 0!==l?l:void 0;return n.jsx("ol",e.__assign({className:a.default.orderedList,style:null==T?void 0:T.olist},s?{start:Number(s)}:{},{children:null==d?void 0:d.children}))},ul:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("ul",e.__assign({className:a.default.unorderedList,style:null==T?void 0:T.ulist},{children:null==t?void 0:t.children}))},table:function(i){var t=i.children;return n.jsx("div",e.__assign({className:a.default.tableWrapper},{children:n.jsx("table",e.__assign({className:a.default.table,style:null==T?void 0:T.table},{children:t}))}))},tr:function(e){var i=e.node,t=e.children;return n.jsx(q,{node:i,children:t,customStyles:T})},td:function(i){var t,o=i.node,a=i.children,l=null!==(t=null==o?void 0:o.properties)&&void 0!==t?t:{},r=l.style,d=e.__rest(l,["style"]);return n.jsx(I.Provider,e.__assign({value:!0},{children:n.jsx("td",e.__assign({},d,{style:r?{cssText:r}:void 0},{children:a}))}))},th:function(i){var t,o=i.node,a=i.children,l=null!==(t=null==o?void 0:o.properties)&&void 0!==t?t:{},r=l.style,d=e.__rest(l,["style"]);return n.jsx(I.Provider,e.__assign({value:!0},{children:n.jsx("th",e.__assign({},d,{style:r?{cssText:r}:void 0},{children:a}))}))},recommendation:function(i){var t;i.node;var o=e.__rest(i,["node"]),a="The AI has selected this content based on: ".concat((null===(t=null==o?void 0:o.children)||void 0===t?void 0:t[0])||"");return n.jsx(p.default,e.__assign({},o,{customStyles:null==T?void 0:T.recommendationBlock,label:a}))},a:function(t){var o,a,l;t.inline,t.children,t.node;var r=e.__rest(t,["inline","children","node"]),d=i.useContext(I)||"true"==(null==r?void 0:r.table),s="".concat(null==r?void 0:r.href),c=null===(o=s.split("$"))||void 0===o?void 0:o[0],u=null===(a=s.split("$"))||void 0===a?void 0:a[1];if("ai_reasoning"===c){var v=(null!==(l=b?L:ne)&&void 0!==l?l:[]).find(function(e){return e.id.toString()===decodeURIComponent(u)}),g=ae.includes(u);if(v)return d?n.jsx(N,{aiReason:v,customStyle:null==T?void 0:T.tableAiReasoning,customIcons:re,isHighConfidence:v.relevance_score>=f.SHOW_CONFIDENCE_SCORE_THRESHOLD_IN_AI_REASONING}):n.jsx(f.default,{aiReason:v,isSourceHasHighlight:g,customIcons:re,customStyles:{aiReasoningContent:null==T?void 0:T.aiReasoningContent,aiReasoningAccordion:null==T?void 0:T.aiReasoningAccordion,aiReasoningMarkdown:null==T?void 0:T.aiReasoningMarkdown,aiReasoningPill:null==T?void 0:T.aiReasoningPill,webCitation:null==T?void 0:T.webCitation,stormeeCitation:null==T?void 0:T.stormeeCitation,waveformCitation:null==T?void 0:T.waveformCitation,imageCitation:null==T?void 0:T.imageCitation,fileCitation:null==T?void 0:T.fileCitation,appModCitation:null==T?void 0:T.appModCitation,rcaCitation:null==T?void 0:T.rcaCitation,readFileCitation:null==T?void 0:T.readFileCitation,loadingCitations:null==T?void 0:T.loadingCitations,chatCitation:null==T?void 0:T.chatCitation,bigEnoughCitation:null==T?void 0:T.bigEnoughCitation}})}return null},code:function(i){i.inline;var t=i.children,o=i.className;return i.node,e.__rest(i,["inline","children","className","node"]),/language-(\w+)/.exec(o||"")||(null==o?void 0:o.includes("language-"))?n.jsx("div",{children:n.jsx("code",e.__assign({className:a.default.blockCode,style:null==T?void 0:T.code},{children:t}))}):n.jsx("code",e.__assign({className:a.default.inlineCode,style:null==T?void 0:T.code},{children:t}))},learned:function(i){var t=i.children;return n.jsx(d.Tooltip,e.__assign({title:t,placement:"top"},{children:n.jsx(r.Info,{size:16,className:a.default.learned})}))},generatedcode:function(i){i.node;var t=e.__rest(i,["node"]),o=(null==t?void 0:t.language)||"python",a=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}(t);return n.jsx(c.default,{title:"Generated Code",code:a,language:o,customStyles:{pill:null==T?void 0:T.generatedCodePill,content:null==T?void 0:T.generatedCodeContent}})},segment:function(i){var t,o,a,l,r,d,s,c,u,v;i.node;var g=i.children,h=e.__rest(i,["node","children"]),f=(null==h?void 0:h.id)||"Segment",m=(null==h?void 0:h.decisionstrength)||"80",p=null==Q?void 0:Q.find(function(e){return String(e.segment_id)===String(f)}),C={id:f,reason:null!==(t=null==p?void 0:p.reason)&&void 0!==t?t:"",gap:null!==(o=null==p?void 0:p.gap)&&void 0!==o?o:"",explanation:null!==(a=null==p?void 0:p.explanation)&&void 0!==a?a:"",relevance_score:null!==(l=null==p?void 0:p.relevance_score)&&void 0!==l?l:0,isOpen:!1},_=void 0;return W&&W(f),f&&p&&V&&(_=V(f,"".concat(g),p.segment_type)),n.jsx(y.default,{id:f,label:null==p?void 0:p.segment_name,originalValue:g,decisionStrength:m,aiReason:C,customIcons:U,aiReasoningCitationCustomStyles:T,segmentExampleComponent:_,handleViewGlossary:z,customStyles:{container:null===(r=null==T?void 0:T.segment)||void 0===r?void 0:r.container,label:null===(d=null==T?void 0:T.segment)||void 0===d?void 0:d.label,decisionStrength:null===(s=null==T?void 0:T.segment)||void 0===s?void 0:s.decisionStrength,buttonContainer:null===(c=null==T?void 0:T.segment)||void 0===c?void 0:c.buttonContainer,cheveronIcon:null===(u=null==T?void 0:T.segment)||void 0===u?void 0:u.cheveronIcon,segmentExample:null===(v=null==T?void 0:T.segment)||void 0===v?void 0:v.segmentExample}})}}},[ye,O,ne,P,ve,b,g,U,oe,ae,T]);return i.useEffect(function(){if(J.current){if(oe.length){var e;if(0===ae.length||G)requestAnimationFrame(function(){se([oe[le].replace(/\*/g,"")])});else{var n=J.current,i=new MutationObserver(function(){clearTimeout(e),e=setTimeout(function(){i.disconnect(),requestAnimationFrame(function(){se([oe[le].replace(/\*/g,"")])})},50)});i.observe(n,{childList:!0,subtree:!0})}return function(){clearTimeout(e)}}ce()}},[oe,ae,le,G]),n.jsx(w.Provider,e.__assign({value:{expandedInfo:fe,setExpanded:Ce,reasonToRow:pe}},{children:n.jsxs("div",e.__assign({ref:J,className:"".concat(a.default.container," ").concat("approving"!==_?a.default.wrapper:""," ").concat(M||""),style:null==T?void 0:T.container},{children:[n.jsx(S.default,e.__assign({components:Ie,rehypePlugins:[R.default]},{children:Re})),_e>0&&n.jsx("div",e.__assign({className:a.default.confidenceScoreContainer,style:null==T?void 0:T.confidenceScoreContainer},{children:n.jsxs("span",e.__assign({className:a.default.confidenceScore,style:null==T?void 0:T.confidenceScore},{children:[n.jsx(m.default,{size:14,color:(null==T?void 0:T.confidenceScoreIconColor)||"#166534"}),_e,"%"]}))})),k&&n.jsx("div",e.__assign({className:a.default.citationLoader,style:null==T?void 0:T.citationLoaderContainer},{children:n.jsx(u.default,{customStyles:{container:null==T?void 0:T.citationLoadingContainer,icon:null==T?void 0:T.citationLoadingIcon,text:null==T?void 0:T.citationLoadingText}})})),h&&n.jsx("div",e.__assign({style:e.__assign({},null===(o=null==T?void 0:T.attachedContext)||void 0===o?void 0:o.wrapper),className:"flex mt-5"},{children:n.jsx(C.default,{})}))]}))}))};
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),i=require("react"),t=require("react-markdown"),o=require("rehype-raw"),a=require("./UserStoryWithCitation.module.css.js"),l=require("../../shared/useMarkdownSearch.js"),r=require("lucide-react"),d=require("@mui/material"),s=require("../../shared/UpdatedAnimationContent.js"),c=require("../../shared/GeneratedCodeCitation.js"),u=require("../../shared/CitationLoadingIndicator.js"),v=require("../RequirementAIWrapper/RequirementAIWrapper.js"),g=require("../../icons/CognitiveDecision.js"),h=require("../../icons/BrainRed.js"),f=require("../ai-reasoning/AiReasoningCitation.js"),m=require("../../icons/RelevanceScoreIcon.js"),p=require("../RecommendationBlock/RecommendationBlock.js"),C=require("../UserStoryCard/AttachedContext.js"),_=require("../ai-reasoning/AiReasoningCitationContent.js"),x=require("./components/InlineUpdatedComponent.js"),y=require("../segment/Segment.js");function j(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var S=j(t),R=j(o),I=i.createContext(!1),w=i.createContext({expandedInfo:null,setExpanded:function(){},reasonToRow:{current:new Map}}),b=i.createContext({rowId:""}),N=function(t){var o,l=t.aiReason,r=t.isHighConfidence,d=t.customStyle,s=t.customIcons,c=i.useContext(w),u=c.expandedInfo,v=c.setExpanded,f=c.reasonToRow,m=i.useContext(b).rowId,p=String(l.id);m&&f.current.set(p,m);var C=(null===(o=null==u?void 0:u.aiReason)||void 0===o?void 0:o.id)===l.id,_=r?(null==s?void 0:s.highConfidence)||n.jsx(g.default,{}):(null==s?void 0:s.lowConfidence)||n.jsx(h.default,{});return n.jsxs("button",e.__assign({className:a.default.aiReasoningButton,style:d,onClick:function(e){e.stopPropagation(),e.preventDefault(),v(C?null:m,C?null:l)}},{children:[_,C?n.jsx("i",{className:"pi pi-angle-up ".concat(r?a.default.aiReasoningIconHighConfidence:a.default.aiReasoningIconLowConfidence)}):n.jsx("i",{className:"pi pi-angle-down ".concat(r?a.default.aiReasoningIconHighConfidence:a.default.aiReasoningIconLowConfidence)})]}))},q=function(t){var o,l,r=t.children,d=t.node,s=t.customStyles,c=t.customIcons,u=i.useRef(Math.random().toString(36).slice(2)).current,v=i.useContext(w).expandedInfo,g=(null==v?void 0:v.rowId)===u,h=Array.isArray(null==d?void 0:d.children)?d.children.filter(function(e){return"element"===e.type}).length:1,f=null!==(l=null===(o=null==d?void 0:d.properties)||void 0===o?void 0:o.style)&&void 0!==l?l:void 0;return n.jsxs(b.Provider,e.__assign({value:{rowId:u}},{children:[n.jsx("tr",e.__assign({style:f?{cssText:f}:void 0},{children:r})),g&&(null==v?void 0:v.aiReason)&&n.jsx("tr",e.__assign({style:{width:"100%"}},{children:n.jsx("td",e.__assign({colSpan:h||1,className:a.default.tableExpandedCell},{children:n.jsx("div",e.__assign({className:a.default.tableExpandedCellInner},{children:n.jsx("div",e.__assign({className:a.default.tableExpandedCellContent},{children:n.jsx(_.default,{aiReason:v.aiReason,customIcons:c,customStyles:{aiReasoningContent:null==s?void 0:s.aiReasoningContent,aiReasoningAccordion:null==s?void 0:s.aiReasoningAccordion,aiReasoningMarkdown:null==s?void 0:s.aiReasoningMarkdown,aiReasoningPill:null==s?void 0:s.aiReasoningPill,webCitation:null==s?void 0:s.webCitation,stormeeCitation:null==s?void 0:s.stormeeCitation,waveformCitation:null==s?void 0:s.waveformCitation,imageCitation:null==s?void 0:s.imageCitation,fileCitation:null==s?void 0:s.fileCitation,appModCitation:null==s?void 0:s.appModCitation,rcaCitation:null==s?void 0:s.rcaCitation,readFileCitation:null==s?void 0:s.readFileCitation,loadingCitations:null==s?void 0:s.loadingCitations,chatCitation:null==s?void 0:s.chatCitation}})}))}))}))}))]}))};exports.default=function(t){var o,g=t.message,h=t.isParent,_=t.scenario,j=t.showUserStoryDiff,b=void 0!==j&&j,A=t.aiReasoningsForBlock,E=t.isCitationLoadingDisplay,k=void 0!==E&&E,M=t.className;t.highConfidenceIcon,t.lowConfidenceIcon;var T=t.customStyles,U=t.customIcons,L=t.aiReasoningDiffView,P=t.userStoryCitations,D=t.artifactId,F=t.isCraflow,H=t.onCraAccept,$=t.onCraReject,O=t.craFlowConfig,W=t.isDisplayHighlightControl,B=void 0!==W&&W;t.segmentExampleComponent;var G=t.handleFetchSegmentDetails,z=t.handleViewGlossary,V=t.getSegmentExampleComponent,Q=t.segmentDataList,J=i.useRef(null),K=v.useRequirementAI(),X=K.userStory,Y=K.inlineUpdateComponentConfig,Z=K.getAvgScoreForStory,ee=K.setUserStory,ne=K.aiReasoning,ie=K.setAiReasoning,te=K.customIcons,oe=K.searchQueryList,ae=K.searchQueryReasoningIdList,le=K.currentHighlightIndex,re=null!=U?U:null==te?void 0:te.userStoryIcons;null==T||T.searchHighlight;var de=l.useMarkdownSearch(J),se=de.search,ce=de.clear,ue=i.useState("1"),ve=ue[0],ge=ue[1],he=i.useState(null),fe=he[0],me=he[1],pe=i.useRef(new Map),Ce=i.useCallback(function(e,n){me(e&&n?{rowId:e,aiReason:n}:null)},[]),_e=D?Z(D):0,xe=i.useState([]),ye=xe[0],je=xe[1],Se=function(e){var n=e;return n=function(e){for(var n,i=/<updated[^>]*>[\s\S]*?<\/updated>/gi,t=[],o=new RegExp(i.source,i.flags);null!==(n=o.exec(e));){var a=n[0],l=a.match(/<deleted>([\s\S]*?)<\/deleted>/i),r=a.match(/<changed>([\s\S]*?)<\/changed>/i),d=function(e){return(e.match(/^\s*\d+\.\s/gm)||[]).length};t.push({index:n.index,endIndex:n.index+n[0].length,deletedItemCount:d((null==l?void 0:l[1])||""),changedItemCount:d((null==r?void 0:r[1])||"")})}if(0===t.length)return e;for(var s=e,c=function(e){var n=t[e],i=n.changedItemCount-n.deletedItemCount;if(0===i)return"continue";for(var o=!1,a=0,l=s.substring(0,n.index).split("\n").reverse();a<l.length;a++){var r=l[a].trim();if(""!==r){/^\d+\.\s/.test(r)&&(o=!0);break}}if(!o)return"continue";var d=n.endIndex,c=e+1<t.length?t[e+1].index:s.length,u=s.substring(d,c);u=u.replace(/^(\s*)(\d+)\.\s/gm,function(e,n,t){return"".concat(n).concat(parseInt(t,10)+i,". ")}),s=s.substring(0,d)+u+s.substring(c)},u=t.length-1;u>=0;u--)c(u);return s}(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 t=btoa(encodeURIComponent(i.trim()));return"\n\n<generatedCode".concat(n,' data-raw="').concat(t,'"></generatedCode>\n\n')})).replace(/^(\s*[-*]|\s*\d+\.)\s*\n?\s*(<updated\b)/gm,"$1 $2")).replace(/<updated([^>]*)>([\s\S]*?)<\/updated>/gi,function(e,i,t,o){var a=n.substring(0,o),l=a.lastIndexOf("\n"),r=/^\s+[-*]\s/.test(a.substring(l+1))||/^\s+\d+\.\s/.test(a.substring(l+1)),d=/^\s*(\d+\.|\s*[-*])\s+$/.test(a.substring(l+1));if(r||d){var s=t;return s=(s=(s=(s=s.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(s,"</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},Re=i.useMemo(function(){return g?Se(g):g},[g]);i.useEffect(function(){je(A||ne)},[A,ne]);var Ie=i.useMemo(function(){return{upt:function(i){var t;i.node;var o=i.children,a=e.__rest(i,["node","children"]),l=null==a?void 0:a.id,r=l?null===(t=l.split("$"))||void 0===t?void 0:t[1]:null,d=ne.find(function(e){return e.id.toString()===r});return d?n.jsx(x.default,e.__assign({aiReason:d,customStyles:null==T?void 0:T.inlineUpdatedComponent,handleClickCognitiveDecision:null==Y?void 0:Y.handleClickCognitiveDecision,handleClickUpdatedPill:null==Y?void 0:Y.handleClickUpdatedPill},{children:o})):o},del:function(i){i.node;var t=i.children,o=e.__rest(i,["node","children"]);return n.jsx("span",e.__assign({className:a.default.deleted,style:null==T?void 0:T.deleted},o,{children:t}))},ins:function(i){var t=i.children,o=e.__rest(i,["children"]);return n.jsx("span",e.__assign({className:a.default.inserted,style:null==T?void 0:T.inserted},o,{children:t}))},h1:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("h1",e.__assign({className:a.default.heading1,style:null==T?void 0:T.heading1},{children:t.children}))},h2:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("h2",e.__assign({className:a.default.heading2,style:null==T?void 0:T.heading2},{children:t.children}))},h3:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("h3",e.__assign({className:a.default.heading3,style:null==T?void 0:T.heading3},{children:t.children}))},b:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("b",e.__assign({className:a.default.bold,style:null==T?void 0:T.bold},{children:null==t?void 0:t.children}))},p:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("p",e.__assign({},t,{className:a.default.paragraph,style:null==T?void 0:T.paragraph},{children:t.children}))},updated:function(i){var t=i.node,o=e.__rest(i,["node"]);return n.jsx(s.default,e.__assign({},o,{showUserStoryDiff:b,currentUpdatedTagId:ve,setCurrentUpdatedTagId:ge,userStory:X,setUserStory:ee,setAiReasoning:ie,node:t,isCraflow:F,onCraAccept:H,onCraReject:$,customStyles:null==T?void 0:T.updatedContent,craFlowConfig:O}))},ol:function(i){var t,o,l,r=i.node,d=e.__rest(i,["node"]),s=null!==(l=null!==(o=null===(t=null==r?void 0:r.properties)||void 0===t?void 0:t.start)&&void 0!==o?o:null==d?void 0:d.start)&&void 0!==l?l:void 0;return n.jsx("ol",e.__assign({className:a.default.orderedList,style:null==T?void 0:T.olist},s?{start:Number(s)}:{},{children:null==d?void 0:d.children}))},ul:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("ul",e.__assign({className:a.default.unorderedList,style:null==T?void 0:T.ulist},{children:null==t?void 0:t.children}))},table:function(i){var t=i.children;return n.jsx("div",e.__assign({className:a.default.tableWrapper},{children:n.jsx("table",e.__assign({className:a.default.table,style:null==T?void 0:T.table},{children:t}))}))},tr:function(e){var i=e.node,t=e.children;return n.jsx(q,{node:i,children:t,customStyles:T})},td:function(i){var t,o=i.node,a=i.children,l=null!==(t=null==o?void 0:o.properties)&&void 0!==t?t:{},r=l.style,d=e.__rest(l,["style"]);return n.jsx(I.Provider,e.__assign({value:!0},{children:n.jsx("td",e.__assign({},d,{style:r?{cssText:r}:void 0},{children:a}))}))},th:function(i){var t,o=i.node,a=i.children,l=null!==(t=null==o?void 0:o.properties)&&void 0!==t?t:{},r=l.style,d=e.__rest(l,["style"]);return n.jsx(I.Provider,e.__assign({value:!0},{children:n.jsx("th",e.__assign({},d,{style:r?{cssText:r}:void 0},{children:a}))}))},recommendation:function(i){var t;i.node;var o=e.__rest(i,["node"]),a="The AI has selected this content based on: ".concat((null===(t=null==o?void 0:o.children)||void 0===t?void 0:t[0])||"");return n.jsx(p.default,e.__assign({},o,{customStyles:null==T?void 0:T.recommendationBlock,label:a}))},a:function(t){var o,a,l;t.inline,t.children,t.node;var r=e.__rest(t,["inline","children","node"]),d=i.useContext(I)||"true"==(null==r?void 0:r.table),s="".concat(null==r?void 0:r.href),c=null===(o=s.split("$"))||void 0===o?void 0:o[0],u=null===(a=s.split("$"))||void 0===a?void 0:a[1];if("ai_reasoning"===c){var v=(null!==(l=b?L:ne)&&void 0!==l?l:[]).find(function(e){return e.id.toString()===decodeURIComponent(u)}),g=ae.includes(u);if(v)return d?n.jsx(N,{aiReason:v,customStyle:null==T?void 0:T.tableAiReasoning,customIcons:re,isHighConfidence:v.relevance_score>=f.SHOW_CONFIDENCE_SCORE_THRESHOLD_IN_AI_REASONING}):n.jsx(f.default,{aiReason:v,isSourceHasHighlight:g,customIcons:re,customStyles:{aiReasoningContent:null==T?void 0:T.aiReasoningContent,aiReasoningAccordion:null==T?void 0:T.aiReasoningAccordion,aiReasoningMarkdown:null==T?void 0:T.aiReasoningMarkdown,aiReasoningPill:null==T?void 0:T.aiReasoningPill,webCitation:null==T?void 0:T.webCitation,stormeeCitation:null==T?void 0:T.stormeeCitation,waveformCitation:null==T?void 0:T.waveformCitation,imageCitation:null==T?void 0:T.imageCitation,fileCitation:null==T?void 0:T.fileCitation,appModCitation:null==T?void 0:T.appModCitation,rcaCitation:null==T?void 0:T.rcaCitation,readFileCitation:null==T?void 0:T.readFileCitation,loadingCitations:null==T?void 0:T.loadingCitations,chatCitation:null==T?void 0:T.chatCitation,bigEnoughCitation:null==T?void 0:T.bigEnoughCitation}})}return null},code:function(i){i.inline;var t=i.children,o=i.className;return i.node,e.__rest(i,["inline","children","className","node"]),/language-(\w+)/.exec(o||"")||(null==o?void 0:o.includes("language-"))?n.jsx("div",{children:n.jsx("code",e.__assign({className:a.default.blockCode,style:null==T?void 0:T.code},{children:t}))}):n.jsx("code",e.__assign({className:a.default.inlineCode,style:null==T?void 0:T.code},{children:t}))},learned:function(i){var t=i.children;return n.jsx(d.Tooltip,e.__assign({title:t,placement:"top"},{children:n.jsx(r.Info,{size:16,className:a.default.learned})}))},generatedcode:function(i){i.node;var t=e.__rest(i,["node"]),o=(null==t?void 0:t.language)||"python",a=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}(t);return n.jsx(c.default,{title:"Generated Code",code:a,language:o,customStyles:{pill:null==T?void 0:T.generatedCodePill,content:null==T?void 0:T.generatedCodeContent}})},segment:function(i){var t,o,a,l,r,d,s,c,u,v,g;i.node;var h=i.children,f=e.__rest(i,["node","children"]),m=(null==f?void 0:f.id)||"Segment",p=(null==f?void 0:f.decisionstrength)||"80",C=null==Q?void 0:Q.find(function(e){return String(e.segment_id)===String(m)}),_={id:m,reason:null!==(t=null==C?void 0:C.reason)&&void 0!==t?t:"",gap:null!==(o=null==C?void 0:C.gap)&&void 0!==o?o:"",explanation:null!==(a=null==C?void 0:C.explanation)&&void 0!==a?a:"",relevance_score:null!==(l=null==C?void 0:C.relevance_score)&&void 0!==l?l:0,isOpen:!1},x=void 0;return G&&!C&&G(m),m&&C&&V&&(x=V(m,"".concat(h),C.segment_type)),n.jsx(y.default,{id:m,label:null==C?void 0:C.segment_name,originalValue:h,decisionStrength:p,aiReason:_,customIcons:U,aiReasoningCitationCustomStyles:T,segmentExampleComponent:x,handleViewGlossary:z,customStyles:{segmentWrapper:null===(r=null==T?void 0:T.segment)||void 0===r?void 0:r.segmentWrapper,container:null===(d=null==T?void 0:T.segment)||void 0===d?void 0:d.container,label:null===(s=null==T?void 0:T.segment)||void 0===s?void 0:s.label,decisionStrength:null===(c=null==T?void 0:T.segment)||void 0===c?void 0:c.decisionStrength,buttonContainer:null===(u=null==T?void 0:T.segment)||void 0===u?void 0:u.buttonContainer,cheveronIcon:null===(v=null==T?void 0:T.segment)||void 0===v?void 0:v.cheveronIcon,segmentExample:null===(g=null==T?void 0:T.segment)||void 0===g?void 0:g.segmentExample}})}}},[ye,O,ne,P,ve,b,g,U,oe,ae,T]);return i.useEffect(function(){if(J.current){if(oe.length){var e;if(0===ae.length||B)requestAnimationFrame(function(){se([oe[le].replace(/\*/g,"")])});else{var n=J.current,i=new MutationObserver(function(){clearTimeout(e),e=setTimeout(function(){i.disconnect(),requestAnimationFrame(function(){se([oe[le].replace(/\*/g,"")])})},50)});i.observe(n,{childList:!0,subtree:!0})}return function(){clearTimeout(e)}}ce()}},[oe,ae,le,B]),n.jsx(w.Provider,e.__assign({value:{expandedInfo:fe,setExpanded:Ce,reasonToRow:pe}},{children:n.jsxs("div",e.__assign({ref:J,className:"".concat(a.default.container," ").concat("approving"!==_?a.default.wrapper:""," ").concat(M||""),style:null==T?void 0:T.container},{children:[n.jsx(S.default,e.__assign({components:Ie,rehypePlugins:[R.default]},{children:Re})),_e>0&&n.jsx("div",e.__assign({className:a.default.confidenceScoreContainer,style:null==T?void 0:T.confidenceScoreContainer},{children:n.jsxs("span",e.__assign({className:a.default.confidenceScore,style:null==T?void 0:T.confidenceScore},{children:[n.jsx(m.default,{size:14,color:(null==T?void 0:T.confidenceScoreIconColor)||"#166534"}),_e,"%"]}))})),k&&n.jsx("div",e.__assign({className:a.default.citationLoader,style:null==T?void 0:T.citationLoaderContainer},{children:n.jsx(u.default,{customStyles:{container:null==T?void 0:T.citationLoadingContainer,icon:null==T?void 0:T.citationLoadingIcon,text:null==T?void 0:T.citationLoadingText}})})),h&&n.jsx("div",e.__assign({style:e.__assign({},null===(o=null==T?void 0:T.attachedContext)||void 0===o?void 0:o.wrapper),className:"flex mt-5"},{children:n.jsx(C.default,{})}))]}))}))};
|
|
2
2
|
//# sourceMappingURL=UserStoryWithCitation.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as
|
|
1
|
+
import{__assign as e}from"tslib";import{jsx as t}from"react/jsx-runtime";import{createContext as n,useState as i,useMemo as r,useCallback as o,useContext as a}from"react";import{RefProvider as s}from"../../store/ref.context.js";var u=n(null),c=function(n){var a=n.children,c=n.userStory,l=n.setUserStory,g=n.aiReasoning,f=n.setAiReasoning,h=n.citations,d=n.setCitations,m=n.apiCachingConfig,p=n.customStyles,C=n.customIcons,v=n.searchQueryList,y=n.searchQueryReasoningIdList,S=n.citationConfig,I=n.chatHistory,R=n.chatCitationConfigs,A=n.gptCitationConfigs,x=n.aiReasoningAccordionOpenStates,D=n.persistedDataFiles,L=n.inlineUpdateComponentConfig,w=n.handleViewGlossary,F=n.segmentDataList,b=n.getSegmentExampleComponent,E=n.handleFetchSegmentDetails,H=i(0),Q=H[0],U=H[1],q=r(function(){if(0===c.length||0===g.length)return Array(c.length).fill(0);var e=Array.from({length:c.length},function(){return[]});return g.forEach(function(t){var n=Number(t.relevance_score);if(!(isNaN(n)||n<=0)){var i="ai_reasoning$".concat(t.id),r=c.findIndex(function(e){var t;return e.value.includes(i)||(null===(t=e.sub_features)||void 0===t?void 0:t.some(function(e){return e.value.includes(i)}))});-1!==r&&e[r].push(n)}}),e.map(function(e){return 0===e.length?0:Math.round(e.reduce(function(e,t){return e+t},0)/e.length)})},[c,g]),N=o(function(e){var t,n=c.findIndex(function(t){return t.artifactId===e});return-1===n?0:null!==(t=q[n])&&void 0!==t?t:0},[c,q]);return console.log("**** RequirementAIWrapper: ",F,w,b,E),t(u.Provider,e({value:{chatHistory:I,userStory:c,setUserStory:l,aiReasoning:g,setAiReasoning:f,citations:h,setCitations:d,apiCachingConfig:m,customStyles:p,customIcons:C,searchQueryList:v,searchQueryReasoningIdList:y,citationConfig:S,getAvgScoreForStory:N,chatCitationConfigs:R,gptCitationConfigs:A,aiReasoningAccordionOpenStates:x,persistedDataFiles:D,currentHighlightIndex:Q,setCurrentHighlightIndex:U,inlineUpdateComponentConfig:L,handleViewGlossary:w,segmentDataList:F,getSegmentExampleComponent:b,handleFetchSegmentDetails:E}},{children:t(s,{children:a})}))},l=function(){var e=a(u);if(!e)throw new Error("useRequirementAI must be used within RequirementAIWrapper");return e};export{c as default,l as useRequirementAI};
|
|
2
2
|
//# sourceMappingURL=RequirementAIWrapper.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e,__awaiter as t,__generator as n,__spreadArray 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{ExternalLink as d,Download as c,Share2 as v,Copy as y,LoaderCircle as h,PencilIcon as f,ChevronUp as m,ChevronDown as p,ChevronUpIcon as S,ChevronDownIcon as g,Info as C,Bookmark as I}from"lucide-react";import w from"showdown";import{Menu as N,MenuItem as b,Tooltip as U}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 A}from"../../utils/user-story.utils.js";import M from"../../shared/AtomicButton.js";import E from"../RichTextEditor/RichTextEditor.js";import H from"../userstory-with-citation/UserStoryWithCitation.js";import{useRequirementAI as P}from"../RequirementAIWrapper/RequirementAIWrapper.js";import{BigEnoughPanel as R}from"../story-screen/BigEnoughPanel.js";function T(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(U,e({title:s,placement:"top"},{children:l(C,{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}function j(t,n,r){var o;if(!t)return{};if(n)return e({},t.parentConfig);var l=e({},t.childConfig);return r&&(null===(o=t.subFeatureOverrides)||void 0===o?void 0:o[r])?e(e({},l),t.subFeatureOverrides[r]):l}var _=function(t){var n,r=t.displayName,i=P().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(I,{className:x.displayNameIcon,style:null==a?void 0:a.displayNameIcon}),o("span",e({style:null==a?void 0:a.label},{children:[r,":"]}))]}))},L=function(S){var g,C,I,U,D,W,z=S.isUserStoryCurrentlyUpdated,O=S.artifactId,V=S.artifactTitleId,F=S.parentUserStory,G=S.currentUserStory,q=S.onUserStoryChange,Q=S.parentIndex,J=S.currentIndex,K=S.enableDownload,X=S.isDiffEditReviewMode,Y=S.showUserStoryDiff,Z=S.handleDownloadUserStory,$=S.handleOpenSendDialog,ee=S.updateUserStoryArtifact,te=S.selectedArtifactId,ne=S.isDisplayHighlightControl,re=S.elementDisplayConfig,oe=S._resolvedConfig,le=S.showWrapper,ie=void 0!==le&&le,ae=P(),se=ae.searchQueryList,ue=ae.citations,de=ae.customStyles,ce=null==de?void 0:de.userStoryCardStyles,ve=null===(g=null==de?void 0:de.userStoryScreenStyles)||void 0===g?void 0:g.userStoryContentStyles,ye=null==ce?void 0:ce.progressHeaderStyles,he=a(e(e({},structuredClone(G)),{value:B(G.value)||""})),fe=he[0],me=he[1],pe=a({userStory:!1}),Se=pe[0],ge=pe[1],Ce=P(),Ie=Ce.userStory,we=Ce.customIcons,Ne=a(""===Q||te===G.artifactId),be=Ne[0],Ue=Ne[1],De=a(!1);De[0];var xe=De[1],Be=a(null),ke=Be[0],Ae=Be[1],Me=a(!1),Ee=Me[0],He=Me[1],Pe=s(null),Re=a(!1);Re[0];var Te=Re[1],je=s(null);u(function(){z&&Ue(z)},[z]),u(function(){me(e(e({},structuredClone(G)),{value:B(G.value)||""}))},[G]),u(function(){se.length>0?Ue(!0):te&&Ue(te===G.artifactId)},[se,te,G.artifactId]);var _e=function(){Ae(null)},Le=function(){Ue(function(e){return!e})};var We=null!=(null==G?void 0:G.big_enough)&&!Number.isNaN(G.big_enough)&&!!(null==G?void 0:G.big_enough_decision_factors),ze=null!=oe?oe:j(re,""===Q);return o("div",e({className:x.card,style:null==ce?void 0:ce.cardStyle,id:"story-card-".concat(G.title),"data-expanded":be},{children:[o("div",e({className:x.titleSection,style:null==ce?void 0:ce.titleSection},{children:[o("div",e({className:x.titleRow,style:null==ce?void 0:ce.titleRow,onClick:Le},{children:[o("div",e({className:x.titleLeft,style:null==ce?void 0:ce.titleLeft,onMouseEnter:function(){return Te(!0)},onMouseLeave:function(){return Te(!1)}},{children:[l(_,{displayName:V}),l("h2",e({className:x.storyTitle,style:null==ce?void 0:ce.storyTitle},{children:T(G.title)}),G.artifactId)]})),o("div",e({className:x.titleActions,style:null==ce?void 0:ce.titleActions,onClick:function(e){return e.stopPropagation()}},{children:[(ze.showProgressPercentage||ze.showGapBox)&&ie&&o("div",e({className:x.progressHeader,style:null==ye?void 0:ye.wrapper},{children:[ze.showProgressPercentage&&o("div",e({className:x.progressPercentage,style:null==ye?void 0:ye.percentage},{children:[null!==(I=null!==(C=null==G?void 0:G.confidenceScore)&&void 0!==C?C:null==ze?void 0:ze.confidenceValue)&&void 0!==I?I:"0","%"]})),ze.showGapBox&&o("div",e({className:x.gapBox,style:null==ye?void 0:ye.gapBox},{children:[null!==(D=null!==(U=null==G?void 0:G.gapValue)&&void 0!==U?U:null==ze?void 0:ze.gapBoxValue)&&void 0!==D?D:"2"," ","Gaps"]}))]})),We&&l(R,{customIcons:null==we?void 0:we.userStoryIcons,customStyles:null==ce?void 0:ce.aiReasoningCitaionStyles,currentUserStory:G,panelStyles:null==ce?void 0:ce.BigEnoughStyles}),!Se.userStory&&o(i,{children:[!1!==(null==ze?void 0:ze.showShareButton)&&l("button",e({className:x.iconButton,style:null==ce?void 0:ce.iconButton,onClick:function(e){Ae(e.currentTarget)}},{children:l(d,{size:16})})),o(N,e({id:"user-story-share-menu",anchorEl:ke,open:!!ke,onClose:function(){return Ae(null)},style:null==ce?void 0:ce.userStoryShareMenu},{children:[K&&l(b,e({style:null==ce?void 0:ce.userStoryMenuItem,onClick:function(){return t(void 0,void 0,void 0,function(){return n(this,function(e){switch(e.label){case 0:return xe(!0),Z?[4,Promise.all([Z("pdf"),Z("doc")])]:[2];case 1:return e.sent(),xe(!1),[2]}})})}},{children:o("div",e({ref:Pe,className:x.menuItemContent,style:null==ce?void 0:ce.menuItemContent},{children:[l(c,{size:16,color:null==ce?void 0:ce.menuIconColor}),l("p",e({style:null==ce?void 0:ce.menuLabel},{children:"Download"}))]}))})),l(b,e({style:null==ce?void 0:ce.userStoryMenuItem,onClick:function(){return t(void 0,void 0,void 0,function(){var t;return n(this,function(n){return t=G,F&&(t=e(e({},G),{value:"".concat(A(null==F?void 0:F.value,G.title)," \n").concat(G.value)})),null==$||$(!0,[t],G.artifactId),_e(),[2]})})}},{children:o("div",e({style:null==ce?void 0:ce.menuItemContent,className:x.menuItemContentPadded},{children:[l(v,{size:16,color:null==ce?void 0:ce.menuIconColor}),l("p",e({style:null==ce?void 0:ce.menuLabel},{children:"Send"}))]}))})),l(b,e({style:null==ce?void 0:ce.userStoryMenuItem,onClick:function(){return t(void 0,void 0,void 0,function(){var e,t,r,o,l;return n(this,function(n){switch(n.label){case 0:e=new w.Converter,t=e.makeHtml(B(G.value)||G.value),r=function(e){var t=(new w.Converter).makeHtml(e),n=document.createElement("div");return n.innerHTML=t,n.textContent||n.innerText||""}(B(G.value)||G.value),o=new ClipboardItem({"text/plain":new Blob([r],{type:"text/plain"}),"text/html":new Blob([t],{type:"text/html"})}),n.label=1;case 1:return n.trys.push([1,3,4,5]),[4,navigator.clipboard.write([o])];case 2:return n.sent(),console.log("Copied User Story"),[3,5];case 3:return l=n.sent(),console.error("Failed to copy user story:",l),[3,5];case 4:return _e(),[7];case 5:return[2]}})})}},{children:o("div",e({style:null==ce?void 0:ce.menuItemContent,className:x.menuItemContentPadded},{children:[l(y,{size:16,color:null==ce?void 0:ce.menuIconColor}),l("p",e({style:null==ce?void 0:ce.menuLabel},{children:"Copy"}))]}))}))]}))]}),Se.userStory&&be?l(M,{type:"outline",children:"Cancel",style:null==ce?void 0:ce.cancelButton,onClick:function(){var t;null===(t=je.current)||void 0===t||t.abort(),ge(function(t){return e(e({},t),{userStory:!1})})}}):l(i,{}),Se.userStory&&be?l(M,{type:"fill",children:Ee?o("span",e({className:x.savingSpinner,style:null==ce?void 0:ce.savingSpinner},{children:[l(h,{className:x.spinAnimation,style:null==ce?void 0:ce.spinAnimation}),l("span",{children:"Saving..."})]})):"Save",isDisable:Ee,style:Ee?null==ce?void 0:ce.savingButton:null==ce?void 0:ce.saveButton,onClick:function(){return t(void 0,void 0,void 0,function(){var t;return n(this,function(n){switch(n.label){case 0:return He(!0),"userStory"==="userStory"&&(q(fe),console.log("I am changing RTE editor values",fe)),[4,ee(ue,Ie,O,null===(t=je.current)||void 0===t?void 0:t.signal)];case 1:return n.sent(),ge(function(t){return e(e({},t),{userStory:!1})}),He(!1),[2]}})})}}):!X&&!Y&&be&&!1!==(null==ze?void 0:ze.showEditButton)&&l("button",e({className:x.iconButton,style:null==ce?void 0:ce.editButton,onClick:function(){return ge(function(t){return e(e({},t),{userStory:!0})})}},{children:l(f,{color:null==ce?void 0:ce.pencilIconColor,size:16})})),l("button",e({type:"button",onClick:function(e){e.stopPropagation(),Le()},style:null==ce?void 0:ce.chevronButton,className:x.chevronButton},{children:l(be?m:p,{className:x.chevronIcon,color:null==ce?void 0:ce.chevronIconColor})}))]}))]})),l("div",{className:x.divider,style:null==ce?void 0:ce.dividerStyle})]})),be&&l("div",e({className:x.cardContent,style:null==ce?void 0:ce.cardContentStyle},{children:o("div",e({className:x.contentInner,style:null==ce?void 0:ce.contentInner},{children:[o("div",e({className:x.descriptionSection,style:null==ce?void 0:ce.descriptionSection},{children:[l("div",{className:x.justifyBetween,style:null==ce?void 0:ce.justifyBetween}),Se.userStory?l(E,{minHeight:"100%",height:"100%",type:"string",value:B(G.value)||"",handleUpdateState:function(t,n){var r=k(n);me(function(t){return e(e({},t),{value:r||""})})},doNotShowBorderInViewMode:!1,onBlur:function(){},mode:Se.userStory?"edit":"readOnly"}):l(H,{showUserStoryDiff:Y,isParent:""===Q,message:B(G.value)||"",artifactId:G.artifactId,customStyles:ve,isDisplayHighlightControl:ne})]})),null===(W=fe.sub_features)||void 0===W?void 0:W.map(function(t,n){var o=j(re,!1,t.artifactId);return l(L,{artifactId:O,isUserStoryCurrentlyUpdated:z,artifactTitleId:"".concat(V,"-").concat(String.fromCharCode(65+n)),parentUserStory:G,parentIndex:"".concat(Q).concat(Q&&".").concat(J),currentIndex:"".concat(n+1),doNotShowBorderInViewMode:!1,currentUserStory:t,onUserStoryChange:function(t){return function(t,n){var o=r([],G.sub_features||[],!0);o[t]=n,q(e(e({},G),{sub_features:o}))}(n,t)},enableDownload:!0,isDiffEditReviewMode:X,showUserStoryDiff:Y,updateUserStoryArtifact:ee,handleDownloadUserStory:Z,handleOpenSendDialog:$,isDisplayHighlightControl:ne,elementDisplayConfig:re,_resolvedConfig:o},t.artifactId)})]}))}))]}))},W=function(t){var n=t.artifactTitleIDs,a=t.isDiffEditReviewMode,s=t.showUserStoryDiff,u=t.updateUserStoryArtifact,d=t.isUserStoryCurrentlyUpdated,c=t.artifactId,v=t.handleOpenSendDialog,y=t.handleDownloadUserStory,h=t.selectedArtifactId,f=t.isDisplayHighlightControl,m=t.elementDisplayConfig,p=t.showWrapper,C=P(),I=C.userStory,w=C.setUserStory,N=C.customStyles,b=C.searchQueryList,U=C.currentHighlightIndex,D=C.setCurrentHighlightIndex,B=null==N?void 0:N.userStoryCardStyles,k=0===U,A=U===b.length-1;return o("div",e({className:x.userStoryCardWrapper,style:f?e(e({},null==B?void 0:B.userStoryCardWrapper),{position:"relative"}):null==B?void 0:B.userStoryCardWrapper},{children:[f&&l(i,{children:b.length>0&&l("div",e({className:x.wrapper},{children:l("div",e({className:x.highlightNavigation},{children:o("div",e({className:x.navigationContainer},{children:[o("span",e({className:x.navCounter},{children:[U+1," of ",b.length]})),o("div",e({className:x.navButtons},{children:[l("button",e({onClick:function(){U>0&&D(function(e){return e-1})},className:x.navButton,disabled:k},{children:l(S,{size:20,className:x.navIcon})})),l("button",e({onClick:function(){U<b.length-1&&D(function(e){return e+1})},className:x.navButton,disabled:A},{children:l(g,{size:20,className:x.navIcon})}))]}))]}))}))}))}),I.map(function(e,t){var o=j(m,!0);return l(L,{isUserStoryCurrentlyUpdated:d,artifactId:c,artifactTitleId:n[t]||"",currentUserStory:e,onUserStoryChange:function(e){w(function(n){return n[t]=e,r([],n,!0)})},parentIndex:"",currentIndex:"".concat(t+1),doNotShowBorderInViewMode:!0,enableDownload:!0,isDiffEditReviewMode:a,showUserStoryDiff:s,updateUserStoryArtifact:u,handleOpenSendDialog:v,handleDownloadUserStory:y,selectedArtifactId:h,isDisplayHighlightControl:f,elementDisplayConfig:m,_resolvedConfig:o,showWrapper:p},e.artifactId)})]}))};export{L as StoryCard,W as UserStoryCardWrapper,L as default,T as replaceLearnedTagsWithInfo};
|
|
1
|
+
import{__assign as e,__awaiter as t,__generator as n,__spreadArray 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{ExternalLink as d,Download as c,Share2 as v,Copy as m,LoaderCircle as h,PencilIcon as y,ChevronUp as p,ChevronDown as f,ChevronUpIcon as S,ChevronDownIcon as g,Info as C,Bookmark as I}from"lucide-react";import w from"showdown";import{Menu as N,MenuItem as D,Tooltip as b}from"@mui/material";import{v4 as x}from"uuid";import U from"./UserStoryCard.module.css.js";import{formatMarkdown as B,indentMarkdown as E}from"../../utils/helpers.js";import{replaceTitleSection as k}from"../../utils/user-story.utils.js";import A from"../../shared/AtomicButton.js";import L from"../RichTextEditor/RichTextEditor.js";import M from"../userstory-with-citation/UserStoryWithCitation.js";import{useRequirementAI as H}from"../RequirementAIWrapper/RequirementAIWrapper.js";import{BigEnoughPanel as P}from"../story-screen/BigEnoughPanel.js";function R(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(C,{size:16,className:"inline-block mx-1 text-blue-500 hover:text-blue-700 cursor"})}),"tooltip-".concat(x()))),i=o.lastIndex}return i<(null==t?void 0:t.length)&&r.push(l("span",{children:t.slice(i)},"text-post-".concat(a++))),r}function T(t,n,r){var o;if(!t)return{};if(n)return e({},t.parentConfig);var l=e({},t.childConfig);return r&&(null===(o=t.subFeatureOverrides)||void 0===o?void 0:o[r])?e(e({},l),t.subFeatureOverrides[r]):l}var j=function(t){var n,r=t.displayName,i=H().customStyles,a=null===(n=null==i?void 0:i.userStoryCardStyles)||void 0===n?void 0:n.showDisplayName;return o("div",e({className:U.displayName,style:null==a?void 0:a.wrapper},{children:[l(I,{className:U.displayNameIcon,style:null==a?void 0:a.displayNameIcon}),o("span",e({style:null==a?void 0:a.label},{children:[r,":"]}))]}))},V=function(S){var g,C,I,b,x,_,W=S.isUserStoryCurrentlyUpdated,z=S.artifactId,F=S.artifactTitleId,G=S.parentUserStory,O=S.currentUserStory,q=S.onUserStoryChange,Q=S.parentIndex,J=S.currentIndex,K=S.enableDownload,X=S.isDiffEditReviewMode,Y=S.showUserStoryDiff,Z=S.handleDownloadUserStory,$=S.handleOpenSendDialog,ee=S.updateUserStoryArtifact,te=S.selectedArtifactId,ne=S.isDisplayHighlightControl,re=S.elementDisplayConfig,oe=S._resolvedConfig,le=S.showWrapper,ie=void 0!==le&&le,ae=S.handleViewGlossary,se=S.segmentDataList,ue=S.getSegmentExampleComponent,de=S.handleFetchSegmentDetails,ce=H(),ve=ce.searchQueryList,me=ce.citations,he=ce.customStyles,ye=null==he?void 0:he.userStoryCardStyles,pe=null===(g=null==he?void 0:he.userStoryScreenStyles)||void 0===g?void 0:g.userStoryContentStyles,fe=null==ye?void 0:ye.progressHeaderStyles,Se=a(e(e({},structuredClone(O)),{value:B(O.value)||""})),ge=Se[0],Ce=Se[1],Ie=a({userStory:!1}),we=Ie[0],Ne=Ie[1],De=H(),be=De.userStory,xe=De.customIcons,Ue=a(""===Q||te===O.artifactId),Be=Ue[0],Ee=Ue[1],ke=a(!1);ke[0];var Ae=ke[1],Le=a(null),Me=Le[0],He=Le[1],Pe=a(!1),Re=Pe[0],Te=Pe[1],je=s(null),Ve=a(!1);Ve[0];var _e=Ve[1],We=s(null);u(function(){W&&Ee(W)},[W]),u(function(){Ce(e(e({},structuredClone(O)),{value:B(O.value)||""}))},[O]),u(function(){ve.length>0?Ee(!0):te&&Ee(te===O.artifactId)},[ve,te,O.artifactId]);var ze=function(){He(null)},Fe=function(){Ee(function(e){return!e})};var Ge=null!=(null==O?void 0:O.big_enough)&&!Number.isNaN(O.big_enough)&&!!(null==O?void 0:O.big_enough_decision_factors),Oe=null!=oe?oe:T(re,""===Q);return o("div",e({className:U.card,style:null==ye?void 0:ye.cardStyle,id:"story-card-".concat(O.title),"data-expanded":Be},{children:[o("div",e({className:U.titleSection,style:null==ye?void 0:ye.titleSection},{children:[o("div",e({className:U.titleRow,style:null==ye?void 0:ye.titleRow,onClick:Fe},{children:[o("div",e({className:U.titleLeft,style:null==ye?void 0:ye.titleLeft,onMouseEnter:function(){return _e(!0)},onMouseLeave:function(){return _e(!1)}},{children:[l(j,{displayName:F}),l("h2",e({className:U.storyTitle,style:null==ye?void 0:ye.storyTitle},{children:R(O.title)}),O.artifactId)]})),o("div",e({className:U.titleActions,style:null==ye?void 0:ye.titleActions,onClick:function(e){return e.stopPropagation()}},{children:[(Oe.showProgressPercentage||Oe.showGapBox)&&ie&&o("div",e({className:U.progressHeader,style:null==fe?void 0:fe.wrapper},{children:[Oe.showProgressPercentage&&o("div",e({className:U.progressPercentage,style:null==fe?void 0:fe.percentage},{children:[null!==(I=null!==(C=null==O?void 0:O.confidenceScore)&&void 0!==C?C:null==Oe?void 0:Oe.confidenceValue)&&void 0!==I?I:"0","%"]})),Oe.showGapBox&&o("div",e({className:U.gapBox,style:null==fe?void 0:fe.gapBox},{children:[null!==(x=null!==(b=null==O?void 0:O.gapValue)&&void 0!==b?b:null==Oe?void 0:Oe.gapBoxValue)&&void 0!==x?x:"2"," ","Gaps"]}))]})),Ge&&l(P,{customIcons:null==xe?void 0:xe.userStoryIcons,customStyles:null==ye?void 0:ye.aiReasoningCitaionStyles,currentUserStory:O,panelStyles:null==ye?void 0:ye.BigEnoughStyles}),!we.userStory&&o(i,{children:[!1!==(null==Oe?void 0:Oe.showShareButton)&&l("button",e({className:U.iconButton,style:null==ye?void 0:ye.iconButton,onClick:function(e){He(e.currentTarget)}},{children:l(d,{size:16})})),o(N,e({id:"user-story-share-menu",anchorEl:Me,open:!!Me,onClose:function(){return He(null)},style:null==ye?void 0:ye.userStoryShareMenu},{children:[K&&l(D,e({style:null==ye?void 0:ye.userStoryMenuItem,onClick:function(){return t(void 0,void 0,void 0,function(){return n(this,function(e){switch(e.label){case 0:return Ae(!0),Z?[4,Promise.all([Z("pdf"),Z("doc")])]:[2];case 1:return e.sent(),Ae(!1),[2]}})})}},{children:o("div",e({ref:je,className:U.menuItemContent,style:null==ye?void 0:ye.menuItemContent},{children:[l(c,{size:16,color:null==ye?void 0:ye.menuIconColor}),l("p",e({style:null==ye?void 0:ye.menuLabel},{children:"Download"}))]}))})),l(D,e({style:null==ye?void 0:ye.userStoryMenuItem,onClick:function(){return t(void 0,void 0,void 0,function(){var t;return n(this,function(n){return t=O,G&&(t=e(e({},O),{value:"".concat(k(null==G?void 0:G.value,O.title)," \n").concat(O.value)})),null==$||$(!0,[t],O.artifactId),ze(),[2]})})}},{children:o("div",e({style:null==ye?void 0:ye.menuItemContent,className:U.menuItemContentPadded},{children:[l(v,{size:16,color:null==ye?void 0:ye.menuIconColor}),l("p",e({style:null==ye?void 0:ye.menuLabel},{children:"Send"}))]}))})),l(D,e({style:null==ye?void 0:ye.userStoryMenuItem,onClick:function(){return t(void 0,void 0,void 0,function(){var e,t,r,o,l;return n(this,function(n){switch(n.label){case 0:e=new w.Converter,t=e.makeHtml(B(O.value)||O.value),r=function(e){var t=(new w.Converter).makeHtml(e),n=document.createElement("div");return n.innerHTML=t,n.textContent||n.innerText||""}(B(O.value)||O.value),o=new ClipboardItem({"text/plain":new Blob([r],{type:"text/plain"}),"text/html":new Blob([t],{type:"text/html"})}),n.label=1;case 1:return n.trys.push([1,3,4,5]),[4,navigator.clipboard.write([o])];case 2:return n.sent(),console.log("Copied User Story"),[3,5];case 3:return l=n.sent(),console.error("Failed to copy user story:",l),[3,5];case 4:return ze(),[7];case 5:return[2]}})})}},{children:o("div",e({style:null==ye?void 0:ye.menuItemContent,className:U.menuItemContentPadded},{children:[l(m,{size:16,color:null==ye?void 0:ye.menuIconColor}),l("p",e({style:null==ye?void 0:ye.menuLabel},{children:"Copy"}))]}))}))]}))]}),we.userStory&&Be?l(A,{type:"outline",children:"Cancel",style:null==ye?void 0:ye.cancelButton,onClick:function(){var t;null===(t=We.current)||void 0===t||t.abort(),Ne(function(t){return e(e({},t),{userStory:!1})})}}):l(i,{}),we.userStory&&Be?l(A,{type:"fill",children:Re?o("span",e({className:U.savingSpinner,style:null==ye?void 0:ye.savingSpinner},{children:[l(h,{className:U.spinAnimation,style:null==ye?void 0:ye.spinAnimation}),l("span",{children:"Saving..."})]})):"Save",isDisable:Re,style:Re?null==ye?void 0:ye.savingButton:null==ye?void 0:ye.saveButton,onClick:function(){return t(void 0,void 0,void 0,function(){var t;return n(this,function(n){switch(n.label){case 0:return Te(!0),"userStory"==="userStory"&&(q(ge),console.log("I am changing RTE editor values",ge)),[4,ee(me,be,z,null===(t=We.current)||void 0===t?void 0:t.signal)];case 1:return n.sent(),Ne(function(t){return e(e({},t),{userStory:!1})}),Te(!1),[2]}})})}}):!X&&!Y&&Be&&!1!==(null==Oe?void 0:Oe.showEditButton)&&l("button",e({className:U.iconButton,style:null==ye?void 0:ye.editButton,onClick:function(){return Ne(function(t){return e(e({},t),{userStory:!0})})}},{children:l(y,{color:null==ye?void 0:ye.pencilIconColor,size:16})})),l("button",e({type:"button",onClick:function(e){e.stopPropagation(),Fe()},style:null==ye?void 0:ye.chevronButton,className:U.chevronButton},{children:l(Be?p:f,{className:U.chevronIcon,color:null==ye?void 0:ye.chevronIconColor})}))]}))]})),l("div",{className:U.divider,style:null==ye?void 0:ye.dividerStyle})]})),Be&&l("div",e({className:U.cardContent,style:null==ye?void 0:ye.cardContentStyle},{children:o("div",e({className:U.contentInner,style:null==ye?void 0:ye.contentInner},{children:[o("div",e({className:U.descriptionSection,style:null==ye?void 0:ye.descriptionSection},{children:[l("div",{className:U.justifyBetween,style:null==ye?void 0:ye.justifyBetween}),we.userStory?l(L,{minHeight:"100%",height:"100%",type:"string",value:B(O.value)||"",handleUpdateState:function(t,n){var r=E(n);Ce(function(t){return e(e({},t),{value:r||""})})},doNotShowBorderInViewMode:!1,onBlur:function(){},mode:we.userStory?"edit":"readOnly"}):l(M,{showUserStoryDiff:Y,isParent:""===Q,message:B(O.value)||"",artifactId:O.artifactId,customStyles:pe,isDisplayHighlightControl:ne,getSegmentExampleComponent:ue,handleViewGlossary:ae,segmentDataList:se,handleFetchSegmentDetails:de})]})),null===(_=ge.sub_features)||void 0===_?void 0:_.map(function(t,n){var o=T(re,!1,t.artifactId);return l(V,{artifactId:z,isUserStoryCurrentlyUpdated:W,artifactTitleId:"".concat(F,"-").concat(String.fromCharCode(65+n)),parentUserStory:O,parentIndex:"".concat(Q).concat(Q&&".").concat(J),currentIndex:"".concat(n+1),doNotShowBorderInViewMode:!1,currentUserStory:t,onUserStoryChange:function(t){return function(t,n){var o=r([],O.sub_features||[],!0);o[t]=n,q(e(e({},O),{sub_features:o}))}(n,t)},enableDownload:!0,isDiffEditReviewMode:X,showUserStoryDiff:Y,updateUserStoryArtifact:ee,handleDownloadUserStory:Z,handleOpenSendDialog:$,isDisplayHighlightControl:ne,elementDisplayConfig:re,_resolvedConfig:o,getSegmentExampleComponent:ue,handleViewGlossary:ae,segmentDataList:se,handleFetchSegmentDetails:de},t.artifactId)})]}))}))]}))},_=function(t){var n=t.artifactTitleIDs,a=t.isDiffEditReviewMode,s=t.showUserStoryDiff,u=t.updateUserStoryArtifact,d=t.isUserStoryCurrentlyUpdated,c=t.artifactId,v=t.handleOpenSendDialog,m=t.handleDownloadUserStory,h=t.selectedArtifactId,y=t.isDisplayHighlightControl,p=t.elementDisplayConfig,f=t.showWrapper,C=H(),I=C.userStory,w=C.setUserStory,N=C.customStyles,D=C.searchQueryList,b=C.currentHighlightIndex,x=C.setCurrentHighlightIndex,B=C.segmentDataList,E=C.handleViewGlossary,k=C.getSegmentExampleComponent,A=C.handleFetchSegmentDetails,L=null==N?void 0:N.userStoryCardStyles,M=0===b,P=b===D.length-1;return o("div",e({className:U.userStoryCardWrapper,style:y?e(e({},null==L?void 0:L.userStoryCardWrapper),{position:"relative"}):null==L?void 0:L.userStoryCardWrapper},{children:[y&&l(i,{children:D.length>0&&l("div",e({className:U.wrapper},{children:l("div",e({className:U.highlightNavigation},{children:o("div",e({className:U.navigationContainer},{children:[o("span",e({className:U.navCounter},{children:[b+1," of ",D.length]})),o("div",e({className:U.navButtons},{children:[l("button",e({onClick:function(){b>0&&x(function(e){return e-1})},className:U.navButton,disabled:M},{children:l(S,{size:20,className:U.navIcon})})),l("button",e({onClick:function(){b<D.length-1&&x(function(e){return e+1})},className:U.navButton,disabled:P},{children:l(g,{size:20,className:U.navIcon})}))]}))]}))}))}))}),I.map(function(e,t){var o=T(p,!0);return l(V,{isUserStoryCurrentlyUpdated:d,artifactId:c,artifactTitleId:n[t]||"",currentUserStory:e,onUserStoryChange:function(e){w(function(n){return n[t]=e,r([],n,!0)})},parentIndex:"",currentIndex:"".concat(t+1),doNotShowBorderInViewMode:!0,enableDownload:!0,isDiffEditReviewMode:a,showUserStoryDiff:s,updateUserStoryArtifact:u,handleOpenSendDialog:v,handleDownloadUserStory:m,selectedArtifactId:h,isDisplayHighlightControl:y,elementDisplayConfig:p,_resolvedConfig:o,showWrapper:f,getSegmentExampleComponent:k,handleViewGlossary:E,segmentDataList:B,handleFetchSegmentDetails:A},e.artifactId)})]}))};export{V as StoryCard,_ as UserStoryCardWrapper,V as default,R as replaceLearnedTagsWithInfo};
|
|
2
2
|
//# sourceMappingURL=UserStoryCard.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e}from"tslib";import{jsx as t,jsxs as i,Fragment as
|
|
1
|
+
import{__assign as e}from"tslib";import{jsx as t,jsxs as i,Fragment as n}from"react/jsx-runtime";import{useState as l,useEffect as o}from"react";import{Pencil as a,Save as r,X as d}from"lucide-react";import{formatMarkdown as s}from"../../utils/user-story.utils.js";import u from"../userstory-with-citation/UserStoryWithCitation.js";import v from"./PartialRequirementContent.module.css.js";import{Tooltip as c}from"@mui/material";import{useRequirementAI as m}from"../RequirementAIWrapper/RequirementAIWrapper.js";import p from"../RichTextEditor/RichTextEditor.js";var y=function(y){var C,h,S,f,g,R,q,P,w,B,b,N,D,A,E,j,x,k,U=y.loadingPartialRequirements,W=y.localUserStory,F=y.setLocalUserStory,L=y.onCraFlowDiffAgentAction,T=y.disableEditing,z=y.isCraflow,I=void 0===z||z,V=y.onCraAccept,G=y.onCraReject,H=l(!1),M=H[0],J=H[1],K=l(""),O=K[0],Q=K[1],X=m(),Y=X.customStyles,Z=X.segmentDataList,$=X.handleViewGlossary,_=X.getSegmentExampleComponent,ee=X.handleFetchSegmentDetails;o(function(){T&&J(!1)},[T]),o(function(){var e;Q(null===(e=null==W?void 0:W[0])||void 0===e?void 0:e.value)},[W]);if(U)return t("div",e({className:v.skeletonWrapper,style:null===(C=null==Y?void 0:Y.PartialRequirementContentStyles)||void 0===C?void 0:C.skeletonWrapper},{children:[1,2,3,4,5].map(function(e){var i;return t("div",{className:v.skeletonLine,style:null===(i=null==Y?void 0:Y.PartialRequirementContentStyles)||void 0===i?void 0:i.skeletonLine},e)})}));var te=!O||""===O.trim();return i("div",e({className:v.wrapper,style:null===(h=null==Y?void 0:Y.PartialRequirementContentStyles)||void 0===h?void 0:h.wrapper},{children:[t("div",e({className:v.actionBar,style:null===(S=null==Y?void 0:Y.PartialRequirementContentStyles)||void 0===S?void 0:S.actionBar},{children:M?i(n,{children:[i("span",e({className:v.editingBadge,style:null===(q=null==Y?void 0:Y.PartialRequirementContentStyles)||void 0===q?void 0:q.editingBadge},{children:[t("span",{className:v.editingDot,style:null===(P=null==Y?void 0:Y.PartialRequirementContentStyles)||void 0===P?void 0:P.editingDot}),"Editing"]})),t("div",{className:v.btnDivider,style:null===(w=null==Y?void 0:Y.PartialRequirementContentStyles)||void 0===w?void 0:w.btnDivider}),t(c,e({title:te?"This field cannot be empty":"Save changes",slotProps:{tooltip:{sx:e({},null===(B=null==Y?void 0:Y.PartialRequirementContentStyles)||void 0===B?void 0:B.headerTooltip)}}},{children:t("span",{children:t("button",e({className:v.saveBtn,style:e(e(e({},null===(b=null==Y?void 0:Y.PartialRequirementContentStyles)||void 0===b?void 0:b.actionBtn),null===(N=null==Y?void 0:Y.PartialRequirementContentStyles)||void 0===N?void 0:N.saveBtn),{opacity:te?.5:1,cursor:te?"not-allowed":"pointer"}),onClick:function(){te||(F(function(t){var i=e(e({},t[0]),{value:O});return null==L||L("accept",[i]),[i]}),J(!1))},disabled:te},{children:t(r,{size:16})}))})})),t("button",e({className:v.cancelBtn,style:e(e({},null===(D=null==Y?void 0:Y.PartialRequirementContentStyles)||void 0===D?void 0:D.actionBtn),null===(A=null==Y?void 0:Y.PartialRequirementContentStyles)||void 0===A?void 0:A.cancelBtn),onClick:function(){var e;Q(null===(e=null==W?void 0:W[0])||void 0===e?void 0:e.value),J(!1)},title:"Discard changes","aria-label":"Discard changes"},{children:t(d,{size:16})}))]}):t(c,e({title:T?"Editing is disabled":"Edit",slotProps:{tooltip:{sx:e({},null===(f=null==Y?void 0:Y.PartialRequirementContentStyles)||void 0===f?void 0:f.headerTooltip)}}},{children:t("span",{children:t("button",e({className:v.editBtn,style:e(e(e({},null===(g=null==Y?void 0:Y.PartialRequirementContentStyles)||void 0===g?void 0:g.actionBtn),null===(R=null==Y?void 0:Y.PartialRequirementContentStyles)||void 0===R?void 0:R.editBtn),{opacity:T?.5:1,cursor:T?"not-allowed":"pointer"}),onClick:function(){T||J(!0)},disabled:T,"aria-label":"Edit requirement"},{children:t(a,{size:16})}))})}))})),t("div",M?e({className:v.editorContainer,style:null===(E=null==Y?void 0:Y.PartialRequirementContentStyles)||void 0===E?void 0:E.editorContainer},{children:t(p,{minHeight:"100%",height:"100%",type:"string",value:s((null===(j=null==W?void 0:W[0])||void 0===j?void 0:j.value)||""),handleUpdateState:function(e,t){Q(t)},doNotShowBorderInViewMode:!1,mode:"edit"})}):e({className:v.viewContainer,style:null===(x=null==Y?void 0:Y.PartialRequirementContentStyles)||void 0===x?void 0:x.viewContainer},{children:t(u,{message:s((null===(k=null==W?void 0:W[0])||void 0===k?void 0:k.value)||""),craFlowConfig:{isCraflow:!0,craUserStory:W,setCraUserStory:F,onCraFlowDiffAgentAction:L,displayActionButtons:!M},isCraflow:I,onCraAccept:V,onCraReject:G,customStyles:null==Y?void 0:Y.UserStoryWithCitationCustomStyles,getSegmentExampleComponent:_,handleViewGlossary:$,segmentDataList:Z,handleFetchSegmentDetails:ee})}))]}))};export{y as PartialRequirementContent,y as default};
|
|
2
2
|
//# sourceMappingURL=PartialRequirementContent.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e}from"tslib";import{jsxs as n,jsx as t}from"react/jsx-runtime";import o from"react";import{ChevronDown as a}from"lucide-react";import{cn as l}from"../../../UserStoryImport/lib/cn.js";import s from"./segment.module.css.js";import i from"./ExampleComponentWrapper.js";import r from"../ai-reasoning/AiReasoningCitationContent.js";var c=function(c){var m=c.id,u=void 0===m?"Segment":m,p=c.label;c.originalValue,c.decisionStrength;var d=c.aiReason,g=c.customStyles,f=c.customIcons,v=c.aiReasoningCitationCustomStyles,h=c.segmentExampleComponent,y=c.handleViewGlossary,C=o.useState(!1),x=C[0],S=C[1],b=o.useState(!1),E=b[0],I=b[1];return n("div",e({className:"".concat(s.segmentWrapper),style:e({},null==g?void 0:g.segmentWrapper)},{children:[n("div",e({className:"".concat(s.segmentContainer),style:e({},null==g?void 0:g.container)},{children:[n("span",e({className:"".concat(s.segmentLabel),style:e({},null==g?void 0:g.label)},{children:[u," ","{".concat(p,"}")]})),t("button",e({className:"".concat(s.segmentExplanationButtonContainer),style:e({},null==g?void 0:g.buttonContainer),onClick:function(){S(function(e){return!e}),I(!1)}},{children:t(a,{className:l("".concat(s.cheveronIcon),x&&"".concat(s.cheveronIconRotated)),style:e({},null==g?void 0:g.cheveronIcon)})}))]})),
|
|
1
|
+
import{__assign as e}from"tslib";import{jsxs as n,jsx as t}from"react/jsx-runtime";import o from"react";import{ChevronDown as a}from"lucide-react";import{cn as l}from"../../../UserStoryImport/lib/cn.js";import s from"./segment.module.css.js";import i from"./ExampleComponentWrapper.js";import r from"../ai-reasoning/AiReasoningCitationContent.js";var c=function(c){var m=c.id,u=void 0===m?"Segment":m,p=c.label;c.originalValue,c.decisionStrength;var d=c.aiReason,g=c.customStyles,f=c.customIcons,v=c.aiReasoningCitationCustomStyles,h=c.segmentExampleComponent,y=c.handleViewGlossary,C=o.useState(!1),x=C[0],S=C[1],b=o.useState(!1),E=b[0],I=b[1];return n("div",e({className:"".concat(s.segmentWrapper),style:e({},null==g?void 0:g.segmentWrapper)},{children:[n("div",e({className:"".concat(s.segmentContainer),style:e({},null==g?void 0:g.container)},{children:[n("span",e({className:"".concat(s.segmentLabel),style:e({},null==g?void 0:g.label)},{children:[u," ","{".concat(p,"}")]})),t("button",e({className:"".concat(s.segmentExplanationButtonContainer),style:e({},null==g?void 0:g.buttonContainer),onClick:function(){S(function(e){return!e}),I(!1)}},{children:t(a,{className:l("".concat(s.cheveronIcon),x&&"".concat(s.cheveronIconRotated)),style:e({},null==g?void 0:g.cheveronIcon)})}))]})),E?t(i,{label:null!=p?p:"",segmentExampleComponent:h,customStyles:null==g?void 0:g.segmentExample,handleCancelExample:function(){I(!1)}}):d&&x&&t(r,{aiReason:d,customStyles:v,customIcons:f,isSegmentExplanation:!0,handleViewGlossary:function(){S(!1),null==y||y()},handleViewExample:function(){I(!0)}})]}))};export{c as default};
|
|
2
2
|
//# sourceMappingURL=Segment.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var e={segmentWrapper:"segment-module_segmentWrapper__PVOuq",segmentContainer:"segment-module_segmentContainer__wBEel",segmentLabel:"segment-module_segmentLabel__-y8Su",segmentButtonContainer:"segment-module_segmentButtonContainer__X76sx",cheveronIcon:"segment-module_cheveronIcon__1njFy",cheveronIconRotated:"segment-module_cheveronIconRotated__qDYj7",exampleWrapper:"segment-module_exampleWrapper__ptZzj",uppercase:"segment-module_uppercase__hjgxG",exampleContainer:"segment-module_exampleContainer__9tMXx",exampleHeader:"segment-module_exampleHeader__9P11O",exampleHeaderText:"segment-module_exampleHeaderText__MWMG0",cancelButton:"segment-module_cancelButton__-F5aZ"};!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const t=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;t&&e.setAttribute("nonce",t),e.appendChild(document.createTextNode(
|
|
1
|
+
var e={segmentWrapper:"segment-module_segmentWrapper__PVOuq",segmentContainer:"segment-module_segmentContainer__wBEel",segmentLabel:"segment-module_segmentLabel__-y8Su",segmentButtonContainer:"segment-module_segmentButtonContainer__X76sx",cheveronIcon:"segment-module_cheveronIcon__1njFy",cheveronIconRotated:"segment-module_cheveronIconRotated__qDYj7",exampleWrapper:"segment-module_exampleWrapper__ptZzj",uppercase:"segment-module_uppercase__hjgxG",exampleContainer:"segment-module_exampleContainer__9tMXx",exampleHeader:"segment-module_exampleHeader__9P11O",exampleHeaderText:"segment-module_exampleHeaderText__MWMG0",cancelButton:"segment-module_cancelButton__-F5aZ"};!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const t=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;t&&e.setAttribute("nonce",t),e.appendChild(document.createTextNode('.segment-module_segmentWrapper__PVOuq{display:flex;flex-direction:column;gap:8px}.segment-module_segmentContainer__wBEel{align-items:center;background-color:#eff6ff;border:1px dashed #bfdbfe;border-radius:4px;color:#3b82f6;display:flex;gap:8px;padding:8px;width:"fit-content"}.segment-module_segmentLabel__-y8Su{color:#3b82f6;font-size:14px;font-weight:600;line-height:21px;text-transform:uppercase}.segment-module_segmentButtonContainer__X76sx{background-color:initial;border:none;cursor:pointer;padding:0}.segment-module_cheveronIcon__1njFy{color:#3b82f6;height:16px;transition:all .2s ease-in-out;width:16px}.segment-module_cheveronIconRotated__qDYj7{transform:rotate(180deg)}.segment-module_exampleWrapper__ptZzj{align-items:flex-start;display:flex;flex-direction:column;gap:12px}.segment-module_uppercase__hjgxG{text-transform:uppercase}.segment-module_exampleContainer__9tMXx{align-items:flex-start;border:2px dashed #e2e8f0;border-radius:8px;display:flex;flex-direction:column;gap:8px;padding:16px;width:100%}.segment-module_exampleHeader__9P11O{align-items:center;align-self:stretch;display:flex;justify-content:space-between}.segment-module_exampleHeaderText__MWMG0{color:#334155;font-size:14px;font-weight:600;line-height:21px;margin:0}.segment-module_cancelButton__-F5aZ{align-items:center;align-self:stretch;background-color:initial;border:none;color:#334155;cursor:pointer;display:flex;height:fit-content;justify-content:space-between;padding:4px;transition:all .2s ease-in-out}.segment-module_cancelButton__-F5aZ:hover{background-color:#eff6ff}'));const n=document.head||document.getElementsByTagName("head")[0]||document.documentElement;n&&n.appendChild(e)}();export{e as default};
|
|
2
2
|
//# sourceMappingURL=segment.module.css.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as t,__spreadArray as e}from"tslib";import{jsxs as
|
|
1
|
+
import{__assign as t,__spreadArray as e}from"tslib";import{jsxs as n,jsx as i,Fragment as o}from"react/jsx-runtime";import{useState as r,useEffect as l}from"react";import{PencilIcon as a,ChevronDown as s}from"lucide-react";import{useRequirementAI as c}from"../RequirementAIWrapper/RequirementAIWrapper.js";import{formatMarkdown as u,indentMarkdown as d}from"../../utils/helpers.js";import m from"../RichTextEditor/RichTextEditor.js";import p from"../userstory-with-citation/UserStoryWithCitation.js";import f from"../../shared/AtomicButton.js";import v from"./SubfeatureBlock.module.css.js";var h=function(h){var y,g,S=h.parentArtifactId,I=h.artifactId,N=h.title,b=h.content,B=h.isEditingModeOn,C=h.setIsEditingModeOn,x=h.isCitationLoadingDisplay,j=void 0!==x&&x,W=c(),k=W.userStory,w=W.setUserStory,A=W.customStyles,D=W.customIcons,E=W.segmentDataList,F=W.handleViewGlossary,L=W.getSegmentExampleComponent,R=W.handleFetchSegmentDetails,T=null===(y=null==A?void 0:A.userStoryScreenStyles)||void 0===y?void 0:y.subFeatureBlock,M=null===(g=null==A?void 0:A.userStoryScreenStyles)||void 0===g?void 0:g.userStoryContentStyles,O=r(!0),P=O[0],U=O[1],V=r(!1),q=V[0],G=V[1],_=r(k),z=_[0],H=_[1];l(function(){H(k)},[k]);return n("div",t({className:v.container,style:null==T?void 0:T.container},{children:[n("button",t({onClick:function(){U(function(t){return!t})},className:v.toggleButton,style:null==T?void 0:T.toggleButton},{children:[i("h1",t({className:v.title,style:null==T?void 0:T.title},{children:N})),n("div",t({className:v.subFeatureToolbar,style:null==T?void 0:T.subFeatureToolbar},{children:[P&&i("div",t({className:v.actionBar,style:null==T?void 0:T.actionBar},{children:q?n("div",t({className:v.editingActions},{children:[i(f,{type:"outline",children:"Cancel",onClick:function(t){t.stopPropagation(),G(!1),C(!1)}}),i(f,{type:"fill",children:"Save",onClick:function(t){t.stopPropagation(),w(z),G(!1),C(!1)}})]})):!B&&i("div",t({className:v.viewActions},{children:i("button",t({className:v.editButton,style:null==T?void 0:T.editButton,onClick:function(t){t.stopPropagation(),G(!0),C(!0)}},{children:i(a,{size:16})}))}))})),i(s,{className:"".concat(v.chevron," ").concat(P?v.chevronOpen:""),style:null==T?void 0:T.chevron})]}))]})),P&&i(o,{children:i("div",q?t({className:v.editorWrapper,style:null==T?void 0:T.editorWrapper},{children:i(m,{minHeight:"100%",height:"100%",type:"string",value:u(b)||"",handleUpdateState:function(n,i){var o=d(i);H(function(n){var i=e([],n,!0),r=i.findIndex(function(t){return t.artifactId===S});if(-1===r)return i;var l=i[r].sub_features;if(l){var a=l.findIndex(function(t){return t.artifactId===I});-1!==a&&(i[r]=t(t({},i[r]),{sub_features:l.map(function(e,n){return n===a?t(t({},e),{value:o}):e})}))}return i})},doNotShowBorderInViewMode:!1,onBlur:function(){},mode:"edit"})}):t({className:v.contentWrapper,style:null==T?void 0:T.contentWrapper},{children:i(p,{message:b,isCitationLoadingDisplay:j,customStyles:t({},M),customIcons:t({},null==D?void 0:D.userStoryIcons),getSegmentExampleComponent:L,handleViewGlossary:F,segmentDataList:E,handleFetchSegmentDetails:R})}))})]}),I)};export{h as default};
|
|
2
2
|
//# sourceMappingURL=SubfeatureBlock.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e,__spreadArray as t}from"tslib";import{jsx as n,jsxs as l,Fragment as i}from"react/jsx-runtime";import{createContext as o,useState as r,useRef as s,useEffect as a,useContext as d}from"react";import{PanelGroup as c,Panel as u,PanelResizeHandle as v}from"react-resizable-panels";import{PencilIcon as S,ChevronDown as m}from"lucide-react";import{formatMarkdown as y,indentMarkdown as
|
|
1
|
+
import{__assign as e,__spreadArray as t}from"tslib";import{jsx as n,jsxs as l,Fragment as i}from"react/jsx-runtime";import{createContext as o,useState as r,useRef as s,useEffect as a,useContext as d}from"react";import{PanelGroup as c,Panel as u,PanelResizeHandle as v}from"react-resizable-panels";import{PencilIcon as S,ChevronDown as m}from"lucide-react";import{formatMarkdown as y,indentMarkdown as g}from"../../utils/helpers.js";import p from"./SubfeatureBlock.js";import f from"./UserStoryScreen.module.css.js";import{useRequirementAI as h}from"../RequirementAIWrapper/RequirementAIWrapper.js";var b=o(null),N=function(){var e=d(b);if(!e)throw new Error("UserStoryScreen must be used inside its provider");return e},I=function(t){var i,o,r=t.AtomicButton,s=N(),a=s.selectedStreamingStoryIndex,d=s.isCitationLoadingNotStarted,c=s.classNames,u=s.scenario,v=h(),S=v.userStory,m=v.customStyles,y=null==m?void 0:m.userStoryScreenStyles;return(null==S?void 0:S.length)?l("div",e({className:"".concat(f.header," ").concat(null!==(i=null==c?void 0:c.header)&&void 0!==i?i:""),style:null==y?void 0:y.header},{children:[l("div",e({className:f.headerLeftContainer},{children:[n("span",e({className:f.headerTitle,style:null==y?void 0:y.headerTitle},{children:null===(o=S[a])||void 0===o?void 0:o.title})),"streaming"===u&&l("span",e({className:f.headerSubtitle,style:null==y?void 0:y.headerSubtitle},{children:[n("span",e({className:f.streamingText,style:null==y?void 0:y.streamingText},{children:d?"Generating Requirement Doc":"Hang tight! We're loading the citations."}))," • Review & edit blocks as we build"]}))]})),n(C,{AtomicButton:r})]})):n(x,{classNames:c})},C=function(t){var i=t.AtomicButton,o=N(),r=o.isEditing,s=o.isEditingModeOn,a=o.setIsEditing,d=o.setIsEditingModeOn,c=o.userStoryCopy,u=h(),v=u.userStory,m=u.setUserStory,y=u.customStyles,g=null==y?void 0:y.userStoryScreenStyles;return(null==v?void 0:v.length)?r?l("div",e({className:f.actions,style:null==g?void 0:g.actions},{children:[n(i,e({type:"outline",onClick:function(){a(!1),d(!1)},style:null==g?void 0:g.cancelAtomicButton},{children:"Cancel"})),n(i,e({type:"fill",onClick:function(){m(c),a(!1),d(!1)},style:null==g?void 0:g.saveAtomicButton},{children:"Save"}))]})):s?null:n("div",e({className:f.editToggleWrapper},{children:n("button",e({className:f.editToggleBtn,style:null==g?void 0:g.editToggleBtn,onClick:function(){a(!0),d(!0)}},{children:n(S,{size:16})}))})):null},x=function(t){var i,o=t.classNames;return l("div",e({className:"".concat(f.header," ").concat(null!==(i=null==o?void 0:o.header)&&void 0!==i?i:"")},{children:[n("div",{className:f.skeletonTitle}),n("div",{className:f.skeletonSubtitle})]}))},B=function(){var t,i=h().customStyles,o=null===(t=null==i?void 0:i.userStoryScreenStyles)||void 0===t?void 0:t.accordionSkeleton;return l("div",e({className:f.accordionSkeleton,style:null==o?void 0:o.wrapper},{children:[n("div",{className:f.skeletonLine,style:null==o?void 0:o.line}),n("div",{className:f.skeletonBox,style:null==o?void 0:o.box})]}))},E=function(){var t,i=h().customStyles,o=null===(t=null==i?void 0:i.userStoryScreenStyles)||void 0===t?void 0:t.subFeatureSkeleton;return l("div",e({className:f.subFeatureSkeleton,style:null==o?void 0:o.wrapper},{children:[n("div",{className:f.skeletonLine,style:null==o?void 0:o.line}),n("div",{className:f.skeletonLine,style:null==o?void 0:o.line}),n("div",{className:f.skeletonLine,style:null==o?void 0:o.line})]}))},T=Object.assign(function(t){var l,i,o,d,u,v=t.scenario,S=t.isCitationLoadingNotStarted,m=t.children,y=t.classNames,g=t.artifactTitleIds,p=h(),N=p.userStory,I=p.customStyles,C=r(0),x=C[0],B=C[1],E=r(!0),T=E[0],k=E[1],L=r(!1),R=L[0],w=L[1],A=r(!1),z=A[0],O=A[1],W=r(!1),M=W[0],P=W[1],U=r(!1),D=U[0],F=U[1],H=r(N),j=H[0],G=H[1],q=s(null),V=s(null);return a(function(){G(N)},[N]),a(function(){w(!0);var e=setTimeout(function(){return w(!1)},2e3);return function(){return clearTimeout(e)}},[null===(i=null===(l=null==N?void 0:N[x])||void 0===l?void 0:l.sub_features)||void 0===i?void 0:i.length]),a(function(){var e=V.current;if(e){var t=function(){O(e.scrollHeight-e.scrollTop-e.clientHeight<20)};return e.addEventListener("scroll",t),function(){return e.removeEventListener("scroll",t)}}},[null==N?void 0:N[x]]),n(b.Provider,e({value:{scenario:v,isCitationLoadingNotStarted:S,selectedStreamingStoryIndex:x,setSelectedStreamingStoryIndex:B,isSidebarExpanded:T,setIsSidebarExpanded:k,sidebarPanelRef:q,isEditing:M,setIsEditing:P,isEditingModeOn:D,setIsEditingModeOn:F,userStoryCopy:j,setUserStoryCopy:G,scrollContainerRef:V,isAtBottom:z,isScrollBtnBouncing:R,scrollToBottom:function(){V.current&&V.current.scrollTo({top:V.current.scrollHeight,behavior:"smooth"})},classNames:y,artifactTitleIds:g}},{children:n("div",e({className:"".concat(f.container," ").concat(null!==(o=null==y?void 0:y.container)&&void 0!==o?o:""),style:e({},null===(d=null==I?void 0:I.userStoryScreenStyles)||void 0===d?void 0:d.wrapperContainer)},{children:n(c,e({direction:"horizontal",className:f.panelGroup,style:null===(u=null==I?void 0:I.userStoryScreenStyles)||void 0===u?void 0:u.panelGroup},{children:m}))}))}))},{Sidebar:function(t){var l,i=t.Component,o=N(),r=o.selectedStreamingStoryIndex,s=o.setSelectedStreamingStoryIndex,a=o.isSidebarExpanded,d=o.setIsSidebarExpanded,c=o.sidebarPanelRef,v=o.scenario,S=o.artifactTitleIds,m=h(),y=m.userStory,g=m.customStyles;return n(u,e({ref:c,defaultSize:25,minSize:15,collapsible:!0,collapsedSize:0,onCollapse:function(){return d(!1)},onExpand:function(){return d(!0)},id:"streaming-sidebar",order:1,className:f.sidebarPanel,style:null===(l=null==g?void 0:g.userStoryScreenStyles)||void 0===l?void 0:l.sidebarPanel},{children:n(i,{streamingUserStories:y,selectedStreamingStoryIndex:r,setSelectedStreamingStoryIndex:s,isSidebarExpanded:a,isStreamingScreen:"streaming"===v,artifactTitleIds:S})}))},SidebarToggle:function(t){var l=t.OpenIcon,i=t.CloseIcon,o=N(),r=o.isSidebarExpanded;o.setIsSidebarExpanded;var s=o.sidebarPanelRef,a=h().customStyles,d=null==a?void 0:a.userStoryScreenStyles;return n(v,e({className:f.resizeHandle,style:null==d?void 0:d.resizeHandle},{children:n("button",e({className:f.sidebarToggleBtn,onClick:function(e){e.stopPropagation(),function(){var e,t;r?null===(e=s.current)||void 0===e||e.collapse():null===(t=s.current)||void 0===t||t.expand()}()},style:null==d?void 0:d.sidebarToggleBtn},{children:n(r?i:l,{})}))}))},Content:function(t){var i,o=t.children,r=t.AtomicButton,s=N(),a=s.scrollContainerRef,d=s.classNames,c=h().customStyles,v=null==c?void 0:c.userStoryScreenStyles;return n(u,e({minSize:0,id:"streaming-content",order:2,className:f.contentPanel,style:null==v?void 0:v.contentPanel},{children:l("div",e({ref:a,className:"".concat(f.scrollContainer," ").concat(null!==(i=null==d?void 0:d.scrollContainer)&&void 0!==i?i:""),style:null==v?void 0:v.scrollContainer},{children:[n(I,{AtomicButton:r}),o]}))}))},Body:function(e){var t=e.children,l=h(),o=l.userStory;return l.setUserStory,(null==o?void 0:o.length)?n(i,{children:t}):null},Story:function(t){var l,i,o,r=t.Component,s=N(),a=s.selectedStreamingStoryIndex,d=s.isEditing,c=s.scenario,u=h(),v=u.userStory,S=u.customStyles,m=u.customIcons,y=u.segmentDataList,g=u.handleViewGlossary,p=u.getSegmentExampleComponent,b=u.handleFetchSegmentDetails,I=null==S?void 0:S.userStoryScreenStyles,C=null==I?void 0:I.userStoryContentStyles;return d?null:n("div",e({className:f.storyWrapper,style:null==I?void 0:I.storyWrapper},{children:n(r,{message:null===(l=v[a])||void 0===l?void 0:l.value,aiReasoningsForBlock:(null===(i=v[a])||void 0===i?void 0:i.aiReasoning)||[],isCitationLoadingDisplay:"streaming"===c,customStyles:e({},C),customIcons:e({},null==m?void 0:m.userStoryIcons),artifactId:null===(o=v[a])||void 0===o?void 0:o.artifactId,getSegmentExampleComponent:p,handleViewGlossary:g,segmentDataList:y,handleFetchSegmentDetails:b})}))},Editor:function(l){var i,o=l.Component,r=l.onBlur,s=N(),a=s.selectedStreamingStoryIndex,d=s.isEditing,c=s.setUserStoryCopy,u=h(),v=u.userStory,S=u.customStyles,m=null==S?void 0:S.textEditorStyles;if(!d)return null;return n("div",e({className:f.editorWrapper,style:null==m?void 0:m.wrapper},{children:n(o,{minHeight:"100%",height:"100%",type:"string",value:y(null===(i=v[a])||void 0===i?void 0:i.value)||"",handleUpdateState:function(n,l){var i,o=g(l),r=null===(i=v[a])||void 0===i?void 0:i.storyNumber;c(function(n){var l=t([],n,!0),i=l.findIndex(function(e){return e.storyNumber===r});return-1===i||(l[i]=e(e({},l[i]),{value:o})),l})},doNotShowBorderInViewMode:!1,onBlur:r,mode:"edit",customStyles:m})}))},SubFeatures:function(){var t,o=N(),r=o.selectedStreamingStoryIndex,s=o.isEditingModeOn,a=o.setIsEditingModeOn,d=o.scenario,c=o.isCitationLoadingNotStarted,u=h().userStory,v=(null===(t=null==u?void 0:u[r])||void 0===t?void 0:t.sub_features)||[];return 0===v.length&&"streaming"===d?n(B,{}):l(i,{children:[v.map(function(e){return n(p,{parentArtifactId:null==u?void 0:u[r].artifactId,artifactId:e.artifactId,title:e.title,content:e.value,aiReasoning:e.aiReasoning||[],isEditingModeOn:s,setIsEditingModeOn:a,isCitationLoadingDisplay:"streaming"===d},e.artifactId)}),"streaming"===d&&c&&n("div",e({className:f.subFeatureSkeletonWrapper},{children:n(E,{})}))]})},ScrollButton:function(){var t=N(),l=t.isAtBottom,i=t.isSidebarExpanded,o=t.scrollToBottom,r=t.isScrollBtnBouncing,s=h(),a=s.userStory,d=s.customStyles,c=null==d?void 0:d.userStoryScreenStyles;return!(null==a?void 0:a.length)||l?null:n("div",e({className:"".concat(f.scrollBtnWrapper," ").concat(i?f.scrollExpanded:f.scrollCollapsed),style:null==c?void 0:c.scrollBtnWrapper},{children:n("button",e({onClick:o,className:"".concat(f.scrollBtn," ").concat(r?f.bounce:""),style:null==c?void 0:c.scrollBtn,"aria-label":"Scroll to bottom"},{children:n(m,{size:20})}))}))}});export{T as default};
|
|
2
2
|
//# sourceMappingURL=UserStoryScreen.js.map
|
package/dist/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__rest as n,__assign as e}from"tslib";import{jsx as i,jsxs as o}from"react/jsx-runtime";import{createContext as t,useRef as l,useState as a,useCallback as r,useMemo as d,useEffect as c,useContext as s}from"react";import u from"react-markdown";import v from"rehype-raw";import g from"./UserStoryWithCitation.module.css.js";import{useMarkdownSearch as m}from"../../shared/useMarkdownSearch.js";import{Info as h}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 R from"../../icons/CognitiveDecision.js";import w from"../../icons/BrainRed.js";import I,{SHOW_CONFIDENCE_SCORE_THRESHOLD_IN_AI_REASONING as b}from"../ai-reasoning/AiReasoningCitation.js";import x from"../../icons/RelevanceScoreIcon.js";import N from"../RecommendationBlock/RecommendationBlock.js";import A from"../UserStoryCard/AttachedContext.js";import j from"../ai-reasoning/AiReasoningCitationContent.js";import k from"./components/InlineUpdatedComponent.js";import U from"../segment/Segment.js";var E=t(!1),L=t({expandedInfo:null,setExpanded:function(){},reasonToRow:{current:new Map}}),T=t({rowId:""}),P=function(n){var t,l=n.aiReason,a=n.isHighConfidence,r=n.customStyle,d=n.customIcons,c=s(L),u=c.expandedInfo,v=c.setExpanded,m=c.reasonToRow,h=s(T).rowId,p=String(l.id);h&&m.current.set(p,h);var f=(null===(t=null==u?void 0:u.aiReason)||void 0===t?void 0:t.id)===l.id,C=a?(null==d?void 0:d.highConfidence)||i(R,{}):(null==d?void 0:d.lowConfidence)||i(w,{});return o("button",e({className:g.aiReasoningButton,style:r,onClick:function(n){n.stopPropagation(),n.preventDefault(),v(f?null:h,f?null:l)}},{children:[C,i("i",f?{className:"pi pi-angle-up ".concat(a?g.aiReasoningIconHighConfidence:g.aiReasoningIconLowConfidence)}:{className:"pi pi-angle-down ".concat(a?g.aiReasoningIconHighConfidence:g.aiReasoningIconLowConfidence)})]}))},M=function(n){var t,a,r=n.children,d=n.node,c=n.customStyles,u=n.customIcons,v=l(Math.random().toString(36).slice(2)).current,m=s(L).expandedInfo,h=(null==m?void 0:m.rowId)===v,p=Array.isArray(null==d?void 0:d.children)?d.children.filter(function(n){return"element"===n.type}).length:1,f=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(T.Provider,e({value:{rowId:v}},{children:[i("tr",e({style:f?{cssText:f}:void 0},{children:r})),h&&(null==m?void 0:m.aiReason)&&i("tr",e({style:{width:"100%"}},{children:i("td",e({colSpan:p||1,className:g.tableExpandedCell},{children:i("div",e({className:g.tableExpandedCellInner},{children:i("div",e({className:g.tableExpandedCellContent},{children:i(j,{aiReason:m.aiReason,customIcons:u,customStyles:{aiReasoningContent:null==c?void 0:c.aiReasoningContent,aiReasoningAccordion:null==c?void 0:c.aiReasoningAccordion,aiReasoningMarkdown:null==c?void 0:c.aiReasoningMarkdown,aiReasoningPill:null==c?void 0:c.aiReasoningPill,webCitation:null==c?void 0:c.webCitation,stormeeCitation:null==c?void 0:c.stormeeCitation,waveformCitation:null==c?void 0:c.waveformCitation,imageCitation:null==c?void 0:c.imageCitation,fileCitation:null==c?void 0:c.fileCitation,appModCitation:null==c?void 0:c.appModCitation,rcaCitation:null==c?void 0:c.rcaCitation,readFileCitation:null==c?void 0:c.readFileCitation,loadingCitations:null==c?void 0:c.loadingCitations,chatCitation:null==c?void 0:c.chatCitation}})}))}))}))}))]}))};var $=function(t){var R,w=t.message,j=t.isParent,T=t.scenario,$=t.showUserStoryDiff,D=void 0!==$&&$,F=t.aiReasoningsForBlock,H=t.isCitationLoadingDisplay,_=void 0!==H&&H,B=t.className;t.highConfidenceIcon,t.lowConfidenceIcon;var q=t.customStyles,z=t.customIcons,G=t.aiReasoningDiffView,V=t.userStoryCitations,W=t.artifactId,O=t.isCraflow,Q=t.onCraAccept,J=t.onCraReject,K=t.craFlowConfig,X=t.isDisplayHighlightControl,Y=void 0!==X&&X;t.segmentExampleComponent;var Z=t.handleFetchSegmentDetails,nn=t.handleViewGlossary,en=t.getSegmentExampleComponent,on=t.segmentDataList,tn=l(null),ln=S(),an=ln.userStory,rn=ln.inlineUpdateComponentConfig,dn=ln.getAvgScoreForStory,cn=ln.setUserStory,sn=ln.aiReasoning,un=ln.setAiReasoning,vn=ln.customIcons,gn=ln.searchQueryList,mn=ln.searchQueryReasoningIdList,hn=ln.currentHighlightIndex,pn=null!=z?z:null==vn?void 0:vn.userStoryIcons;null==q||q.searchHighlight;var fn=m(tn),Cn=fn.search,yn=fn.clear,Sn=a("1"),Rn=Sn[0],wn=Sn[1],In=a(null),bn=In[0],xn=In[1],Nn=l(new Map),An=r(function(n,e){xn(n&&e?{rowId:n,aiReason:e}:null)},[]),jn=W?dn(W):0,kn=a([]),Un=kn[0],En=kn[1],Ln=function(n){var e=n;return e=function(n){for(var e,i=/<updated[^>]*>[\s\S]*?<\/updated>/gi,o=[],t=new RegExp(i.source,i.flags);null!==(e=t.exec(n));){var l=e[0],a=l.match(/<deleted>([\s\S]*?)<\/deleted>/i),r=l.match(/<changed>([\s\S]*?)<\/changed>/i),d=function(n){return(n.match(/^\s*\d+\.\s/gm)||[]).length};o.push({index:e.index,endIndex:e.index+e[0].length,deletedItemCount:d((null==a?void 0:a[1])||""),changedItemCount:d((null==r?void 0:r[1])||"")})}if(0===o.length)return n;for(var c=n,s=function(n){var e=o[n],i=e.changedItemCount-e.deletedItemCount;if(0===i)return"continue";for(var t=!1,l=0,a=c.substring(0,e.index).split("\n").reverse();l<a.length;l++){var r=a[l].trim();if(""!==r){/^\d+\.\s/.test(r)&&(t=!0);break}}if(!t)return"continue";var d=e.endIndex,s=n+1<o.length?o[n+1].index:c.length,u=c.substring(d,s);u=u.replace(/^(\s*)(\d+)\.\s/gm,function(n,e,o){return"".concat(e).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}(e=(e=(e=(e=e.replace(/<deleted>([\s\S]*?)<\/deleted>/gi,function(n,e){var i=e.replace(/ai_reasoning\$(\d+)/g,function(n,e){return"ai_reasoning$".concat(e,"-legacy")});return"<deleted>".concat(i,"</deleted>")})).replace(/<generatedCode([^>]*)>([\s\S]*?)<\/generatedCode>/gi,function(n,e,i){var o=btoa(encodeURIComponent(i.trim()));return"\n\n<generatedCode".concat(e,' 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(n,i,o,t){var l=e.substring(0,t),a=l.lastIndexOf("\n"),r=/^\s+[-*]\s/.test(l.substring(a+1))||/^\s+\d+\.\s/.test(l.substring(a+1)),d=/^\s*(\d+\.|\s*[-*])\s+$/.test(l.substring(a+1));if(r||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 n})),e=function(n){var e=n.replace(/<deleted>([\s\S]*?)<\/deleted>/gi,function(n,e){var i=e.replace(/\n{2,}/g,"\n");return console.log("[normalizeCustomTags] collapseNewlines in <deleted>",{hadChange:i!==e}),"<deleted>".concat(i,"</deleted>")});return e.replace(/<changed>([\s\S]*?)<\/changed>/gi,function(n,e){var i=e.replace(/\n{2,}/g,"\n");return console.log("[normalizeCustomTags] collapseNewlines in <changed>",{hadChange:i!==e,preview:e.substring(0,120)}),"<changed>".concat(i,"</changed>")})}(e),e},Tn=d(function(){return w?Ln(w):w},[w]);c(function(){En(F||sn)},[F,sn]);var Pn=d(function(){return{upt:function(o){var t;o.node;var l=o.children,a=n(o,["node","children"]),r=null==a?void 0:a.id,d=r?null===(t=r.split("$"))||void 0===t?void 0:t[1]:null,c=sn.find(function(n){return n.id.toString()===d});return c?i(k,e({aiReason:c,customStyles:null==q?void 0:q.inlineUpdatedComponent,handleClickCognitiveDecision:null==rn?void 0:rn.handleClickCognitiveDecision,handleClickUpdatedPill:null==rn?void 0:rn.handleClickUpdatedPill},{children:l})):l},del:function(o){o.node;var t=o.children,l=n(o,["node","children"]);return i("span",e({className:g.deleted,style:null==q?void 0:q.deleted},l,{children:t}))},ins:function(o){var t=o.children,l=n(o,["children"]);return i("span",e({className:g.inserted,style:null==q?void 0:q.inserted},l,{children:t}))},h1:function(o){o.node;var t=n(o,["node"]);return i("h1",e({className:g.heading1,style:null==q?void 0:q.heading1},{children:t.children}))},h2:function(o){o.node;var t=n(o,["node"]);return i("h2",e({className:g.heading2,style:null==q?void 0:q.heading2},{children:t.children}))},h3:function(o){o.node;var t=n(o,["node"]);return i("h3",e({className:g.heading3,style:null==q?void 0:q.heading3},{children:t.children}))},b:function(o){o.node;var t=n(o,["node"]);return i("b",e({className:g.bold,style:null==q?void 0:q.bold},{children:null==t?void 0:t.children}))},p:function(o){o.node;var t=n(o,["node"]);return i("p",e({},t,{className:g.paragraph,style:null==q?void 0:q.paragraph},{children:t.children}))},updated:function(o){var t=o.node,l=n(o,["node"]);return i(f,e({},l,{showUserStoryDiff:D,currentUpdatedTagId:Rn,setCurrentUpdatedTagId:wn,userStory:an,setUserStory:cn,setAiReasoning:un,node:t,isCraflow:O,onCraAccept:Q,onCraReject:J,customStyles:null==q?void 0:q.updatedContent,craFlowConfig:K}))},ol:function(o){var t,l,a,r=o.node,d=n(o,["node"]),c=null!==(a=null!==(l=null===(t=null==r?void 0:r.properties)||void 0===t?void 0:t.start)&&void 0!==l?l:null==d?void 0:d.start)&&void 0!==a?a:void 0;return i("ol",e({className:g.orderedList,style:null==q?void 0:q.olist},c?{start:Number(c)}:{},{children:null==d?void 0:d.children}))},ul:function(o){o.node;var t=n(o,["node"]);return i("ul",e({className:g.unorderedList,style:null==q?void 0:q.ulist},{children:null==t?void 0:t.children}))},table:function(n){var o=n.children;return i("div",e({className:g.tableWrapper},{children:i("table",e({className:g.table,style:null==q?void 0:q.table},{children:o}))}))},tr:function(n){var e=n.node,o=n.children;return i(M,{node:e,children:o,customStyles:q})},td:function(o){var t,l=o.node,a=o.children,r=null!==(t=null==l?void 0:l.properties)&&void 0!==t?t:{},d=r.style,c=n(r,["style"]);return i(E.Provider,e({value:!0},{children:i("td",e({},c,{style:d?{cssText:d}:void 0},{children:a}))}))},th:function(o){var t,l=o.node,a=o.children,r=null!==(t=null==l?void 0:l.properties)&&void 0!==t?t:{},d=r.style,c=n(r,["style"]);return i(E.Provider,e({value:!0},{children:i("th",e({},c,{style:d?{cssText:d}:void 0},{children:a}))}))},recommendation:function(o){var t;o.node;var l=n(o,["node"]),a="The AI has selected this content based on: ".concat((null===(t=null==l?void 0:l.children)||void 0===t?void 0:t[0])||"");return i(N,e({},l,{customStyles:null==q?void 0:q.recommendationBlock,label:a}))},a:function(e){var o,t,l;e.inline,e.children,e.node;var a=n(e,["inline","children","node"]),r=s(E)||"true"==(null==a?void 0:a.table),d="".concat(null==a?void 0:a.href),c=null===(o=d.split("$"))||void 0===o?void 0:o[0],u=null===(t=d.split("$"))||void 0===t?void 0:t[1];if("ai_reasoning"===c){var v=(null!==(l=D?G:sn)&&void 0!==l?l:[]).find(function(n){return n.id.toString()===decodeURIComponent(u)}),g=mn.includes(u);if(v)return r?i(P,{aiReason:v,customStyle:null==q?void 0:q.tableAiReasoning,customIcons:pn,isHighConfidence:v.relevance_score>=b}):i(I,{aiReason:v,isSourceHasHighlight:g,customIcons:pn,customStyles:{aiReasoningContent:null==q?void 0:q.aiReasoningContent,aiReasoningAccordion:null==q?void 0:q.aiReasoningAccordion,aiReasoningMarkdown:null==q?void 0:q.aiReasoningMarkdown,aiReasoningPill:null==q?void 0:q.aiReasoningPill,webCitation:null==q?void 0:q.webCitation,stormeeCitation:null==q?void 0:q.stormeeCitation,waveformCitation:null==q?void 0:q.waveformCitation,imageCitation:null==q?void 0:q.imageCitation,fileCitation:null==q?void 0:q.fileCitation,appModCitation:null==q?void 0:q.appModCitation,rcaCitation:null==q?void 0:q.rcaCitation,readFileCitation:null==q?void 0:q.readFileCitation,loadingCitations:null==q?void 0:q.loadingCitations,chatCitation:null==q?void 0:q.chatCitation,bigEnoughCitation:null==q?void 0:q.bigEnoughCitation}})}return null},code:function(o){o.inline;var t=o.children,l=o.className;return o.node,n(o,["inline","children","className","node"]),/language-(\w+)/.exec(l||"")||(null==l?void 0:l.includes("language-"))?i("div",{children:i("code",e({className:g.blockCode,style:null==q?void 0:q.code},{children:t}))}):i("code",e({className:g.inlineCode,style:null==q?void 0:q.code},{children:t}))},learned:function(n){var o=n.children;return i(p,e({title:o,placement:"top"},{children:i(h,{size:16,className:g.learned})}))},generatedcode:function(e){e.node;var o=n(e,["node"]),t=(null==o?void 0:o.language)||"python",l=function(n){var e="";try{if(n["data-raw"])e=decodeURIComponent(atob(n["data-raw"]));else{var i=function(n){var e;return"string"==typeof n?n:Array.isArray(n)?n.map(i).join(""):(null===(e=null==n?void 0:n.props)||void 0===e?void 0:e.children)?i(n.props.children):""};e=i(n.children)}}catch(i){console.error("Error decoding generated code:",i),e=String(n.children)}return e}(o);return i(C,{title:"Generated Code",code:l,language:t,customStyles:{pill:null==q?void 0:q.generatedCodePill,content:null==q?void 0:q.generatedCodeContent}})},segment:function(e){var o,t,l,a,r,d,c,s,u,v;e.node;var g=e.children,m=n(e,["node","children"]),h=(null==m?void 0:m.id)||"Segment",p=(null==m?void 0:m.decisionstrength)||"80",f=null==on?void 0:on.find(function(n){return String(n.segment_id)===String(h)}),C={id:h,reason:null!==(o=null==f?void 0:f.reason)&&void 0!==o?o:"",gap:null!==(t=null==f?void 0:f.gap)&&void 0!==t?t:"",explanation:null!==(l=null==f?void 0:f.explanation)&&void 0!==l?l:"",relevance_score:null!==(a=null==f?void 0:f.relevance_score)&&void 0!==a?a:0,isOpen:!1},y=void 0;return Z&&Z(h),h&&f&&en&&(y=en(h,"".concat(g),f.segment_type)),i(U,{id:h,label:null==f?void 0:f.segment_name,originalValue:g,decisionStrength:p,aiReason:C,customIcons:z,aiReasoningCitationCustomStyles:q,segmentExampleComponent:y,handleViewGlossary:nn,customStyles:{container:null===(r=null==q?void 0:q.segment)||void 0===r?void 0:r.container,label:null===(d=null==q?void 0:q.segment)||void 0===d?void 0:d.label,decisionStrength:null===(c=null==q?void 0:q.segment)||void 0===c?void 0:c.decisionStrength,buttonContainer:null===(s=null==q?void 0:q.segment)||void 0===s?void 0:s.buttonContainer,cheveronIcon:null===(u=null==q?void 0:q.segment)||void 0===u?void 0:u.cheveronIcon,segmentExample:null===(v=null==q?void 0:q.segment)||void 0===v?void 0:v.segmentExample}})}}},[Un,K,sn,V,Rn,D,w,z,gn,mn,q]);return c(function(){if(tn.current){if(gn.length){var n;if(0===mn.length||Y)requestAnimationFrame(function(){Cn([gn[hn].replace(/\*/g,"")])});else{var e=tn.current,i=new MutationObserver(function(){clearTimeout(n),n=setTimeout(function(){i.disconnect(),requestAnimationFrame(function(){Cn([gn[hn].replace(/\*/g,"")])})},50)});i.observe(e,{childList:!0,subtree:!0})}return function(){clearTimeout(n)}}yn()}},[gn,mn,hn,Y]),i(L.Provider,e({value:{expandedInfo:bn,setExpanded:An,reasonToRow:Nn}},{children:o("div",e({ref:tn,className:"".concat(g.container," ").concat("approving"!==T?g.wrapper:""," ").concat(B||""),style:null==q?void 0:q.container},{children:[i(u,e({components:Pn,rehypePlugins:[v]},{children:Tn})),jn>0&&i("div",e({className:g.confidenceScoreContainer,style:null==q?void 0:q.confidenceScoreContainer},{children:o("span",e({className:g.confidenceScore,style:null==q?void 0:q.confidenceScore},{children:[i(x,{size:14,color:(null==q?void 0:q.confidenceScoreIconColor)||"#166534"}),jn,"%"]}))})),_&&i("div",e({className:g.citationLoader,style:null==q?void 0:q.citationLoaderContainer},{children:i(y,{customStyles:{container:null==q?void 0:q.citationLoadingContainer,icon:null==q?void 0:q.citationLoadingIcon,text:null==q?void 0:q.citationLoadingText}})})),j&&i("div",e({style:e({},null===(R=null==q?void 0:q.attachedContext)||void 0===R?void 0:R.wrapper),className:"flex mt-5"},{children:i(A,{})}))]}))}))};export{$ as default};
|
|
1
|
+
import{__rest as n,__assign as e}from"tslib";import{jsx as i,jsxs as o}from"react/jsx-runtime";import{createContext as t,useRef as l,useState as a,useCallback as r,useMemo as d,useEffect as s,useContext as c}from"react";import u from"react-markdown";import v from"rehype-raw";import g from"./UserStoryWithCitation.module.css.js";import{useMarkdownSearch as m}from"../../shared/useMarkdownSearch.js";import{Info as h}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 R from"../../icons/CognitiveDecision.js";import w from"../../icons/BrainRed.js";import I,{SHOW_CONFIDENCE_SCORE_THRESHOLD_IN_AI_REASONING as b}from"../ai-reasoning/AiReasoningCitation.js";import x from"../../icons/RelevanceScoreIcon.js";import N from"../RecommendationBlock/RecommendationBlock.js";import A from"../UserStoryCard/AttachedContext.js";import j from"../ai-reasoning/AiReasoningCitationContent.js";import k from"./components/InlineUpdatedComponent.js";import U from"../segment/Segment.js";var E=t(!1),L=t({expandedInfo:null,setExpanded:function(){},reasonToRow:{current:new Map}}),T=t({rowId:""}),P=function(n){var t,l=n.aiReason,a=n.isHighConfidence,r=n.customStyle,d=n.customIcons,s=c(L),u=s.expandedInfo,v=s.setExpanded,m=s.reasonToRow,h=c(T).rowId,p=String(l.id);h&&m.current.set(p,h);var f=(null===(t=null==u?void 0:u.aiReason)||void 0===t?void 0:t.id)===l.id,C=a?(null==d?void 0:d.highConfidence)||i(R,{}):(null==d?void 0:d.lowConfidence)||i(w,{});return o("button",e({className:g.aiReasoningButton,style:r,onClick:function(n){n.stopPropagation(),n.preventDefault(),v(f?null:h,f?null:l)}},{children:[C,i("i",f?{className:"pi pi-angle-up ".concat(a?g.aiReasoningIconHighConfidence:g.aiReasoningIconLowConfidence)}:{className:"pi pi-angle-down ".concat(a?g.aiReasoningIconHighConfidence:g.aiReasoningIconLowConfidence)})]}))},M=function(n){var t,a,r=n.children,d=n.node,s=n.customStyles,u=n.customIcons,v=l(Math.random().toString(36).slice(2)).current,m=c(L).expandedInfo,h=(null==m?void 0:m.rowId)===v,p=Array.isArray(null==d?void 0:d.children)?d.children.filter(function(n){return"element"===n.type}).length:1,f=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(T.Provider,e({value:{rowId:v}},{children:[i("tr",e({style:f?{cssText:f}:void 0},{children:r})),h&&(null==m?void 0:m.aiReason)&&i("tr",e({style:{width:"100%"}},{children:i("td",e({colSpan:p||1,className:g.tableExpandedCell},{children:i("div",e({className:g.tableExpandedCellInner},{children:i("div",e({className:g.tableExpandedCellContent},{children:i(j,{aiReason:m.aiReason,customIcons:u,customStyles:{aiReasoningContent:null==s?void 0:s.aiReasoningContent,aiReasoningAccordion:null==s?void 0:s.aiReasoningAccordion,aiReasoningMarkdown:null==s?void 0:s.aiReasoningMarkdown,aiReasoningPill:null==s?void 0:s.aiReasoningPill,webCitation:null==s?void 0:s.webCitation,stormeeCitation:null==s?void 0:s.stormeeCitation,waveformCitation:null==s?void 0:s.waveformCitation,imageCitation:null==s?void 0:s.imageCitation,fileCitation:null==s?void 0:s.fileCitation,appModCitation:null==s?void 0:s.appModCitation,rcaCitation:null==s?void 0:s.rcaCitation,readFileCitation:null==s?void 0:s.readFileCitation,loadingCitations:null==s?void 0:s.loadingCitations,chatCitation:null==s?void 0:s.chatCitation}})}))}))}))}))]}))};var $=function(t){var R,w=t.message,j=t.isParent,T=t.scenario,$=t.showUserStoryDiff,D=void 0!==$&&$,F=t.aiReasoningsForBlock,H=t.isCitationLoadingDisplay,_=void 0!==H&&H,B=t.className;t.highConfidenceIcon,t.lowConfidenceIcon;var W=t.customStyles,q=t.customIcons,z=t.aiReasoningDiffView,G=t.userStoryCitations,V=t.artifactId,O=t.isCraflow,Q=t.onCraAccept,J=t.onCraReject,K=t.craFlowConfig,X=t.isDisplayHighlightControl,Y=void 0!==X&&X;t.segmentExampleComponent;var Z=t.handleFetchSegmentDetails,nn=t.handleViewGlossary,en=t.getSegmentExampleComponent,on=t.segmentDataList,tn=l(null),ln=S(),an=ln.userStory,rn=ln.inlineUpdateComponentConfig,dn=ln.getAvgScoreForStory,sn=ln.setUserStory,cn=ln.aiReasoning,un=ln.setAiReasoning,vn=ln.customIcons,gn=ln.searchQueryList,mn=ln.searchQueryReasoningIdList,hn=ln.currentHighlightIndex,pn=null!=q?q:null==vn?void 0:vn.userStoryIcons;null==W||W.searchHighlight;var fn=m(tn),Cn=fn.search,yn=fn.clear,Sn=a("1"),Rn=Sn[0],wn=Sn[1],In=a(null),bn=In[0],xn=In[1],Nn=l(new Map),An=r(function(n,e){xn(n&&e?{rowId:n,aiReason:e}:null)},[]),jn=V?dn(V):0,kn=a([]),Un=kn[0],En=kn[1],Ln=function(n){var e=n;return e=function(n){for(var e,i=/<updated[^>]*>[\s\S]*?<\/updated>/gi,o=[],t=new RegExp(i.source,i.flags);null!==(e=t.exec(n));){var l=e[0],a=l.match(/<deleted>([\s\S]*?)<\/deleted>/i),r=l.match(/<changed>([\s\S]*?)<\/changed>/i),d=function(n){return(n.match(/^\s*\d+\.\s/gm)||[]).length};o.push({index:e.index,endIndex:e.index+e[0].length,deletedItemCount:d((null==a?void 0:a[1])||""),changedItemCount:d((null==r?void 0:r[1])||"")})}if(0===o.length)return n;for(var s=n,c=function(n){var e=o[n],i=e.changedItemCount-e.deletedItemCount;if(0===i)return"continue";for(var t=!1,l=0,a=s.substring(0,e.index).split("\n").reverse();l<a.length;l++){var r=a[l].trim();if(""!==r){/^\d+\.\s/.test(r)&&(t=!0);break}}if(!t)return"continue";var d=e.endIndex,c=n+1<o.length?o[n+1].index:s.length,u=s.substring(d,c);u=u.replace(/^(\s*)(\d+)\.\s/gm,function(n,e,o){return"".concat(e).concat(parseInt(o,10)+i,". ")}),s=s.substring(0,d)+u+s.substring(c)},u=o.length-1;u>=0;u--)c(u);return s}(e=(e=(e=(e=e.replace(/<deleted>([\s\S]*?)<\/deleted>/gi,function(n,e){var i=e.replace(/ai_reasoning\$(\d+)/g,function(n,e){return"ai_reasoning$".concat(e,"-legacy")});return"<deleted>".concat(i,"</deleted>")})).replace(/<generatedCode([^>]*)>([\s\S]*?)<\/generatedCode>/gi,function(n,e,i){var o=btoa(encodeURIComponent(i.trim()));return"\n\n<generatedCode".concat(e,' 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(n,i,o,t){var l=e.substring(0,t),a=l.lastIndexOf("\n"),r=/^\s+[-*]\s/.test(l.substring(a+1))||/^\s+\d+\.\s/.test(l.substring(a+1)),d=/^\s*(\d+\.|\s*[-*])\s+$/.test(l.substring(a+1));if(r||d){var s=o;return s=(s=(s=(s=s.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(s,"</updated>")}return n})),e=function(n){var e=n.replace(/<deleted>([\s\S]*?)<\/deleted>/gi,function(n,e){var i=e.replace(/\n{2,}/g,"\n");return console.log("[normalizeCustomTags] collapseNewlines in <deleted>",{hadChange:i!==e}),"<deleted>".concat(i,"</deleted>")});return e.replace(/<changed>([\s\S]*?)<\/changed>/gi,function(n,e){var i=e.replace(/\n{2,}/g,"\n");return console.log("[normalizeCustomTags] collapseNewlines in <changed>",{hadChange:i!==e,preview:e.substring(0,120)}),"<changed>".concat(i,"</changed>")})}(e),e},Tn=d(function(){return w?Ln(w):w},[w]);s(function(){En(F||cn)},[F,cn]);var Pn=d(function(){return{upt:function(o){var t;o.node;var l=o.children,a=n(o,["node","children"]),r=null==a?void 0:a.id,d=r?null===(t=r.split("$"))||void 0===t?void 0:t[1]:null,s=cn.find(function(n){return n.id.toString()===d});return s?i(k,e({aiReason:s,customStyles:null==W?void 0:W.inlineUpdatedComponent,handleClickCognitiveDecision:null==rn?void 0:rn.handleClickCognitiveDecision,handleClickUpdatedPill:null==rn?void 0:rn.handleClickUpdatedPill},{children:l})):l},del:function(o){o.node;var t=o.children,l=n(o,["node","children"]);return i("span",e({className:g.deleted,style:null==W?void 0:W.deleted},l,{children:t}))},ins:function(o){var t=o.children,l=n(o,["children"]);return i("span",e({className:g.inserted,style:null==W?void 0:W.inserted},l,{children:t}))},h1:function(o){o.node;var t=n(o,["node"]);return i("h1",e({className:g.heading1,style:null==W?void 0:W.heading1},{children:t.children}))},h2:function(o){o.node;var t=n(o,["node"]);return i("h2",e({className:g.heading2,style:null==W?void 0:W.heading2},{children:t.children}))},h3:function(o){o.node;var t=n(o,["node"]);return i("h3",e({className:g.heading3,style:null==W?void 0:W.heading3},{children:t.children}))},b:function(o){o.node;var t=n(o,["node"]);return i("b",e({className:g.bold,style:null==W?void 0:W.bold},{children:null==t?void 0:t.children}))},p:function(o){o.node;var t=n(o,["node"]);return i("p",e({},t,{className:g.paragraph,style:null==W?void 0:W.paragraph},{children:t.children}))},updated:function(o){var t=o.node,l=n(o,["node"]);return i(f,e({},l,{showUserStoryDiff:D,currentUpdatedTagId:Rn,setCurrentUpdatedTagId:wn,userStory:an,setUserStory:sn,setAiReasoning:un,node:t,isCraflow:O,onCraAccept:Q,onCraReject:J,customStyles:null==W?void 0:W.updatedContent,craFlowConfig:K}))},ol:function(o){var t,l,a,r=o.node,d=n(o,["node"]),s=null!==(a=null!==(l=null===(t=null==r?void 0:r.properties)||void 0===t?void 0:t.start)&&void 0!==l?l:null==d?void 0:d.start)&&void 0!==a?a:void 0;return i("ol",e({className:g.orderedList,style:null==W?void 0:W.olist},s?{start:Number(s)}:{},{children:null==d?void 0:d.children}))},ul:function(o){o.node;var t=n(o,["node"]);return i("ul",e({className:g.unorderedList,style:null==W?void 0:W.ulist},{children:null==t?void 0:t.children}))},table:function(n){var o=n.children;return i("div",e({className:g.tableWrapper},{children:i("table",e({className:g.table,style:null==W?void 0:W.table},{children:o}))}))},tr:function(n){var e=n.node,o=n.children;return i(M,{node:e,children:o,customStyles:W})},td:function(o){var t,l=o.node,a=o.children,r=null!==(t=null==l?void 0:l.properties)&&void 0!==t?t:{},d=r.style,s=n(r,["style"]);return i(E.Provider,e({value:!0},{children:i("td",e({},s,{style:d?{cssText:d}:void 0},{children:a}))}))},th:function(o){var t,l=o.node,a=o.children,r=null!==(t=null==l?void 0:l.properties)&&void 0!==t?t:{},d=r.style,s=n(r,["style"]);return i(E.Provider,e({value:!0},{children:i("th",e({},s,{style:d?{cssText:d}:void 0},{children:a}))}))},recommendation:function(o){var t;o.node;var l=n(o,["node"]),a="The AI has selected this content based on: ".concat((null===(t=null==l?void 0:l.children)||void 0===t?void 0:t[0])||"");return i(N,e({},l,{customStyles:null==W?void 0:W.recommendationBlock,label:a}))},a:function(e){var o,t,l;e.inline,e.children,e.node;var a=n(e,["inline","children","node"]),r=c(E)||"true"==(null==a?void 0:a.table),d="".concat(null==a?void 0:a.href),s=null===(o=d.split("$"))||void 0===o?void 0:o[0],u=null===(t=d.split("$"))||void 0===t?void 0:t[1];if("ai_reasoning"===s){var v=(null!==(l=D?z:cn)&&void 0!==l?l:[]).find(function(n){return n.id.toString()===decodeURIComponent(u)}),g=mn.includes(u);if(v)return r?i(P,{aiReason:v,customStyle:null==W?void 0:W.tableAiReasoning,customIcons:pn,isHighConfidence:v.relevance_score>=b}):i(I,{aiReason:v,isSourceHasHighlight:g,customIcons:pn,customStyles:{aiReasoningContent:null==W?void 0:W.aiReasoningContent,aiReasoningAccordion:null==W?void 0:W.aiReasoningAccordion,aiReasoningMarkdown:null==W?void 0:W.aiReasoningMarkdown,aiReasoningPill:null==W?void 0:W.aiReasoningPill,webCitation:null==W?void 0:W.webCitation,stormeeCitation:null==W?void 0:W.stormeeCitation,waveformCitation:null==W?void 0:W.waveformCitation,imageCitation:null==W?void 0:W.imageCitation,fileCitation:null==W?void 0:W.fileCitation,appModCitation:null==W?void 0:W.appModCitation,rcaCitation:null==W?void 0:W.rcaCitation,readFileCitation:null==W?void 0:W.readFileCitation,loadingCitations:null==W?void 0:W.loadingCitations,chatCitation:null==W?void 0:W.chatCitation,bigEnoughCitation:null==W?void 0:W.bigEnoughCitation}})}return null},code:function(o){o.inline;var t=o.children,l=o.className;return o.node,n(o,["inline","children","className","node"]),/language-(\w+)/.exec(l||"")||(null==l?void 0:l.includes("language-"))?i("div",{children:i("code",e({className:g.blockCode,style:null==W?void 0:W.code},{children:t}))}):i("code",e({className:g.inlineCode,style:null==W?void 0:W.code},{children:t}))},learned:function(n){var o=n.children;return i(p,e({title:o,placement:"top"},{children:i(h,{size:16,className:g.learned})}))},generatedcode:function(e){e.node;var o=n(e,["node"]),t=(null==o?void 0:o.language)||"python",l=function(n){var e="";try{if(n["data-raw"])e=decodeURIComponent(atob(n["data-raw"]));else{var i=function(n){var e;return"string"==typeof n?n:Array.isArray(n)?n.map(i).join(""):(null===(e=null==n?void 0:n.props)||void 0===e?void 0:e.children)?i(n.props.children):""};e=i(n.children)}}catch(i){console.error("Error decoding generated code:",i),e=String(n.children)}return e}(o);return i(C,{title:"Generated Code",code:l,language:t,customStyles:{pill:null==W?void 0:W.generatedCodePill,content:null==W?void 0:W.generatedCodeContent}})},segment:function(e){var o,t,l,a,r,d,s,c,u,v,g;e.node;var m=e.children,h=n(e,["node","children"]),p=(null==h?void 0:h.id)||"Segment",f=(null==h?void 0:h.decisionstrength)||"80",C=null==on?void 0:on.find(function(n){return String(n.segment_id)===String(p)}),y={id:p,reason:null!==(o=null==C?void 0:C.reason)&&void 0!==o?o:"",gap:null!==(t=null==C?void 0:C.gap)&&void 0!==t?t:"",explanation:null!==(l=null==C?void 0:C.explanation)&&void 0!==l?l:"",relevance_score:null!==(a=null==C?void 0:C.relevance_score)&&void 0!==a?a:0,isOpen:!1},S=void 0;return Z&&!C&&Z(p),p&&C&&en&&(S=en(p,"".concat(m),C.segment_type)),i(U,{id:p,label:null==C?void 0:C.segment_name,originalValue:m,decisionStrength:f,aiReason:y,customIcons:q,aiReasoningCitationCustomStyles:W,segmentExampleComponent:S,handleViewGlossary:nn,customStyles:{segmentWrapper:null===(r=null==W?void 0:W.segment)||void 0===r?void 0:r.segmentWrapper,container:null===(d=null==W?void 0:W.segment)||void 0===d?void 0:d.container,label:null===(s=null==W?void 0:W.segment)||void 0===s?void 0:s.label,decisionStrength:null===(c=null==W?void 0:W.segment)||void 0===c?void 0:c.decisionStrength,buttonContainer:null===(u=null==W?void 0:W.segment)||void 0===u?void 0:u.buttonContainer,cheveronIcon:null===(v=null==W?void 0:W.segment)||void 0===v?void 0:v.cheveronIcon,segmentExample:null===(g=null==W?void 0:W.segment)||void 0===g?void 0:g.segmentExample}})}}},[Un,K,cn,G,Rn,D,w,q,gn,mn,W]);return s(function(){if(tn.current){if(gn.length){var n;if(0===mn.length||Y)requestAnimationFrame(function(){Cn([gn[hn].replace(/\*/g,"")])});else{var e=tn.current,i=new MutationObserver(function(){clearTimeout(n),n=setTimeout(function(){i.disconnect(),requestAnimationFrame(function(){Cn([gn[hn].replace(/\*/g,"")])})},50)});i.observe(e,{childList:!0,subtree:!0})}return function(){clearTimeout(n)}}yn()}},[gn,mn,hn,Y]),i(L.Provider,e({value:{expandedInfo:bn,setExpanded:An,reasonToRow:Nn}},{children:o("div",e({ref:tn,className:"".concat(g.container," ").concat("approving"!==T?g.wrapper:""," ").concat(B||""),style:null==W?void 0:W.container},{children:[i(u,e({components:Pn,rehypePlugins:[v]},{children:Tn})),jn>0&&i("div",e({className:g.confidenceScoreContainer,style:null==W?void 0:W.confidenceScoreContainer},{children:o("span",e({className:g.confidenceScore,style:null==W?void 0:W.confidenceScore},{children:[i(x,{size:14,color:(null==W?void 0:W.confidenceScoreIconColor)||"#166534"}),jn,"%"]}))})),_&&i("div",e({className:g.citationLoader,style:null==W?void 0:W.citationLoaderContainer},{children:i(y,{customStyles:{container:null==W?void 0:W.citationLoadingContainer,icon:null==W?void 0:W.citationLoadingIcon,text:null==W?void 0:W.citationLoadingText}})})),j&&i("div",e({style:e({},null===(R=null==W?void 0:W.attachedContext)||void 0===R?void 0:R.wrapper),className:"flex mt-5"},{children:i(A,{})}))]}))}))};export{$ as default};
|
|
2
2
|
//# sourceMappingURL=UserStoryWithCitation.js.map
|
|
@@ -321,6 +321,7 @@ interface IRequirementAIContext {
|
|
|
321
321
|
handleClickUpdatedPill?: ((anchorEl: HTMLElement, aiReason: TAIReasoning) => void) | undefined;
|
|
322
322
|
};
|
|
323
323
|
handleViewGlossary?: () => void;
|
|
324
|
+
handleFetchSegmentDetails?: (segmentId: string) => Promise<void>;
|
|
324
325
|
segmentDataList?: TSegment[];
|
|
325
326
|
getSegmentExampleComponent?: (segmentId: string, originalValue: string, segmentType: TSegmentType) => JSX.Element;
|
|
326
327
|
}
|
|
@@ -353,13 +354,12 @@ export interface RequirementAIWrapperProps {
|
|
|
353
354
|
handleClickCognitiveDecision?: ((anchorEl: HTMLElement, aiReason: TAIReasoning) => void) | undefined;
|
|
354
355
|
handleClickUpdatedPill?: ((anchorEl: HTMLElement, aiReason: TAIReasoning) => void) | undefined;
|
|
355
356
|
};
|
|
356
|
-
segmentExampleComponent?: () => React.ReactNode;
|
|
357
357
|
handleFetchSegmentDetails?: (segmentId: string) => Promise<void>;
|
|
358
358
|
handleViewGlossary?: () => void;
|
|
359
359
|
segmentDataList?: TSegment[];
|
|
360
360
|
getSegmentExampleComponent?: (segmentId: string, originalValue: string, segmentType: TSegmentType) => JSX.Element;
|
|
361
361
|
}
|
|
362
|
-
declare const RequirementAIWrapper: ({ children, userStory, setUserStory, aiReasoning, setAiReasoning, citations, setCitations, apiCachingConfig, customStyles, customIcons, searchQueryList, searchQueryReasoningIdList, citationConfig, chatHistory, chatCitationConfigs, gptCitationConfigs, aiReasoningAccordionOpenStates, persistedDataFiles, inlineUpdateComponentConfig, handleViewGlossary, segmentDataList, getSegmentExampleComponent }: RequirementAIWrapperProps) => import("react/jsx-runtime").JSX.Element;
|
|
362
|
+
declare const RequirementAIWrapper: ({ children, userStory, setUserStory, aiReasoning, setAiReasoning, citations, setCitations, apiCachingConfig, customStyles, customIcons, searchQueryList, searchQueryReasoningIdList, citationConfig, chatHistory, chatCitationConfigs, gptCitationConfigs, aiReasoningAccordionOpenStates, persistedDataFiles, inlineUpdateComponentConfig, handleViewGlossary, segmentDataList, getSegmentExampleComponent, handleFetchSegmentDetails }: RequirementAIWrapperProps) => import("react/jsx-runtime").JSX.Element;
|
|
363
363
|
export declare const useRequirementAI: () => IRequirementAIContext;
|
|
364
364
|
export default RequirementAIWrapper;
|
|
365
365
|
//# sourceMappingURL=RequirementAIWrapper.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequirementAIWrapper.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAA6B,SAAS,EAAkC,MAAM,OAAO,CAAC;AACpG,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AACnF,OAAO,EACL,uBAAuB,EACvB,0BAA0B,EAC1B,wBAAwB,EACxB,uB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;IAC7B,0BAA0B,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,WAAW,EAAE,YAAY,KAAK,GAAG,CAAC,OAAO,CAAC;CACnH;AAID,QAAA,MAAM,oBAAoB,kZAuBvB,yBAAyB,4CA0E3B,CAAC;AAEF,eAAO,MAAM,gBAAgB,6BAU5B,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
1
|
+
{"version":3,"file":"RequirementAIWrapper.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAA6B,SAAS,EAAkC,MAAM,OAAO,CAAC;AACpG,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AACnF,OAAO,EACL,uBAAuB,EACvB,0BAA0B,EAC1B,wBAAwB,EACxB,uBAAuB,EACvB,wBAAwB,EACxB,uBAAuB,EACvB,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACnB,oBAAoB,EACpB,qBAAqB,EACrB,0BAA0B,EAC1B,aAAa,EACb,qBAAqB,EACrB,YAAY,EACZ,cAAc,EACd,sBAAsB,EACvB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAE3G,OAAO,EAAE,4BAA4B,EAAE,2BAA2B,EAAE,MAAM,sCAAsC,CAAC;AACjH,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,8CAA8C,CAAC;AAC7G,OAAO,EAAE,iCAAiC,EAAE,MAAM,kDAAkD,CAAC;AACrG,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAElE,MAAM,WAAW,yBAAyB;IACxC,qBAAqB,CAAC,EAAE;QACtB,gBAAgB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;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qBAAqB,CAAC,aAAa,CAAC,CAAC;IACnD,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,8BAA8B,CAAC,EAAE,0BAA0B,CAAC;IAC5D,kBAAkB,CAAC,EAAE,eAAe,GAAG,IAAI,CAAC;IAC5C,2BAA2B,CAAC,EAAE;QAC5B,4BAA4B,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE,YAAY,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC;QACrG,sBAAsB,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE,YAAY,KAAK,IAAI,CAAC,GAAG,SAAS,CAAA;KAC/F,CAAA;IACD,yBAAyB,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACjE,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAC;IAChC,eAAe,CAAC,EAAE,QAAQ,EAAE,CAAC;IAC7B,0BAA0B,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,WAAW,EAAE,YAAY,KAAK,GAAG,CAAC,OAAO,CAAC;CACnH;AAID,QAAA,MAAM,oBAAoB,6aAwBvB,yBAAyB,4CA6E3B,CAAC;AAEF,eAAO,MAAM,gBAAgB,6BAU5B,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { IUserStory } from "../../interfaces/userstory.interface";
|
|
3
3
|
import { UserStoryCitations } from "../../interfaces/citation.interface";
|
|
4
|
+
import { TSegment, TSegmentType } from "../../types/segment.type";
|
|
4
5
|
interface CardDisplayConfig {
|
|
5
6
|
showShareButton?: boolean;
|
|
6
7
|
showEditButton?: boolean;
|
|
@@ -36,9 +37,13 @@ interface StoryCardProps {
|
|
|
36
37
|
elementDisplayConfig?: ElementDisplayConfig;
|
|
37
38
|
_resolvedConfig?: CardDisplayConfig;
|
|
38
39
|
showWrapper?: boolean;
|
|
40
|
+
handleFetchSegmentDetails?: (segmentId: string) => Promise<void>;
|
|
41
|
+
handleViewGlossary?: () => void;
|
|
42
|
+
segmentDataList?: TSegment[];
|
|
43
|
+
getSegmentExampleComponent?: (segmentId: string, originalValue: string, segmentType: TSegmentType) => JSX.Element;
|
|
39
44
|
}
|
|
40
45
|
export declare function replaceLearnedTagsWithInfo(content: string): React.ReactNode[];
|
|
41
|
-
export declare const StoryCard: ({ isUserStoryCurrentlyUpdated, artifactId, artifactTitleId, parentUserStory, currentUserStory, onUserStoryChange, parentIndex, currentIndex, enableDownload, isDiffEditReviewMode, showUserStoryDiff, handleDownloadUserStory, handleOpenSendDialog, updateUserStoryArtifact, selectedArtifactId, isDisplayHighlightControl, elementDisplayConfig, _resolvedConfig, showWrapper, }: StoryCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
46
|
+
export declare const StoryCard: ({ isUserStoryCurrentlyUpdated, artifactId, artifactTitleId, parentUserStory, currentUserStory, onUserStoryChange, parentIndex, currentIndex, enableDownload, isDiffEditReviewMode, showUserStoryDiff, handleDownloadUserStory, handleOpenSendDialog, updateUserStoryArtifact, selectedArtifactId, isDisplayHighlightControl, elementDisplayConfig, _resolvedConfig, showWrapper, handleViewGlossary, segmentDataList, getSegmentExampleComponent, handleFetchSegmentDetails }: StoryCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
42
47
|
interface IProps {
|
|
43
48
|
isUserStoryCurrentlyUpdated?: boolean;
|
|
44
49
|
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;
|
|
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;AAGzE,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAGlE,UAAU,iBAAiB;IACvB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,eAAe,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAElC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACjC;AAED,MAAM,WAAW,oBAAoB;IACjC,YAAY,CAAC,EAAE,iBAAiB,CAAC;IACjC,WAAW,CAAC,EAAE,iBAAiB,CAAC;IAChC,mBAAmB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC;CAC3D;AAED,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,EAA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gB,EAAE,MAAM,EAAE,CAAC;IAC3B,oBAAoB,EAAE,OAAO,CAAC;IAC9B,iBAAiB,EAAE,OAAO,CAAC;IAC3B,uBAAuB,EAAE,CAAC,YAAY,EAAE,kBAAkB,GAAG,IAAI,EAAE,sBAAsB,EAAE,UAAU,EAAE,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,CAAC,EAAG,WAAW,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;IACpK,oBAAoB,CAAC,EAAE,CAAC,eAAe,EAAE,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,EAAE,UAAU,EAAE,MAAM,EAAE,kBAAkB,CAAC,EAAE,MAAM,EAAE,EAAE,aAAa,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IACrK,uBAAuB,CAAC,EAAE,CAAC,QAAQ,EAAE,KAAK,GAAG,KAAK,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACrE,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,yBAAyB,CAAC,EAAE,OAAO,CAAC;IACpC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;IAC5C,WAAW,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,eAAO,MAAM,oBAAoB,qQAAsQ,MAAM,4CAkG5S,CAAA;AAED,eAAe,SAAS,CAAC"}
|
package/dist/types/src/features/RequirementAI/components/cra/PartialRequirementContent.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PartialRequirementContent.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/cra/PartialRequirementContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,cAAc,EAAuB,MAAM,OAAO,CAAC;AAG7E,OAA+B,EAAE,iCAAiC,EAAE,MAAM,kDAAkD,CAAC;AAG7H,OAAO,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AAIlE,MAAM,MAAM,8BAA8B,GAAG;IACzC,0BAA0B,EAAE,OAAO,CAAC;IACpC,cAAc,EAAE,UAAU,EAAE,CAAC;IAC7B,iBAAiB,EAAE,QAAQ,CAAC,cAAc,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC;IAC1D,wBAAwB,CAAC,EAAE,CACvB,MAAM,EAAE,QAAQ,GAAG,QAAQ,EAC3B,WAAW,EAAE,UAAU,EAAE,KACxB,IAAI,CAAC;IACV,cAAc,EAAE,OAAO,CAAC;IACxB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,WAAW,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,eAAe,CAAC,EAAE,iCAAiC,CAAC;CACvD,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,KAAK,CAAC,EAAE,CAC5C,8BAA8B,
|
|
1
|
+
{"version":3,"file":"PartialRequirementContent.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/cra/PartialRequirementContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,cAAc,EAAuB,MAAM,OAAO,CAAC;AAG7E,OAA+B,EAAE,iCAAiC,EAAE,MAAM,kDAAkD,CAAC;AAG7H,OAAO,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AAIlE,MAAM,MAAM,8BAA8B,GAAG;IACzC,0BAA0B,EAAE,OAAO,CAAC;IACpC,cAAc,EAAE,UAAU,EAAE,CAAC;IAC7B,iBAAiB,EAAE,QAAQ,CAAC,cAAc,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC;IAC1D,wBAAwB,CAAC,EAAE,CACvB,MAAM,EAAE,QAAQ,GAAG,QAAQ,EAC3B,WAAW,EAAE,UAAU,EAAE,KACxB,IAAI,CAAC;IACV,cAAc,EAAE,OAAO,CAAC;IACxB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,WAAW,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,eAAe,CAAC,EAAE,iCAAiC,CAAC;CACvD,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,KAAK,CAAC,EAAE,CAC5C,8BAA8B,CA4M7B,CAAC;AAEN,eAAe,yBAAyB,CAAC"}
|
package/dist/types/src/features/RequirementAI/components/segment/ExampleComponentWrapper.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { SegmentExampleStyles } from '../../types/aiReasoning.type';
|
|
3
3
|
interface ExampleComponentWrapperProps {
|
|
4
4
|
label: string;
|
|
5
|
-
segmentExampleComponent
|
|
5
|
+
segmentExampleComponent?: JSX.Element;
|
|
6
6
|
customStyles?: SegmentExampleStyles;
|
|
7
7
|
handleCancelExample: () => void;
|
|
8
8
|
}
|
package/dist/types/src/features/RequirementAI/components/segment/ExampleComponentWrapper.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExampleComponentWrapper.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/segment/ExampleComponentWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAEpE,UAAU,4BAA4B;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,uBAAuB,EAAE,GAAG,CAAC,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ExampleComponentWrapper.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/segment/ExampleComponentWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAEpE,UAAU,4BAA4B;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,uBAAuB,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IACtC,YAAY,CAAC,EAAE,oBAAoB,CAAC;IACpC,mBAAmB,EAAE,MAAM,IAAI,CAAC;CACnC;AAED,QAAA,MAAM,uBAAuB,EAAG,KAAK,CAAC,EAAE,CAAC,4BAA4B,CAyDpE,CAAA;AAED,eAAe,uBAAuB,CAAA"}
|
package/dist/types/src/features/RequirementAI/components/story-screen/SubfeatureBlock.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SubfeatureBlock.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/story-screen/SubfeatureBlock.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAuB,MAAM,OAAO,CAAC;AAStE,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAK5D,UAAU,MAAM;IACd,gBAAgB,EAAE,MAAM,CAAA;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,YAAY,EAAE,CAAC;IAC7B,eAAe,EAAE,OAAO,CAAC;IACzB,kBAAkB,EAAE,QAAQ,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;IACtD,wBAAwB,CAAC,EAAE,OAAO,CAAC;CACpC;AAED,QAAA,MAAM,eAAe,qHAQlB,MAAM,
|
|
1
|
+
{"version":3,"file":"SubfeatureBlock.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/story-screen/SubfeatureBlock.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAuB,MAAM,OAAO,CAAC;AAStE,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAK5D,UAAU,MAAM;IACd,gBAAgB,EAAE,MAAM,CAAA;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,YAAY,EAAE,CAAC;IAC7B,eAAe,EAAE,OAAO,CAAC;IACzB,kBAAkB,EAAE,QAAQ,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;IACtD,wBAAwB,CAAC,EAAE,OAAO,CAAC;CACpC;AAED,QAAA,MAAM,eAAe,qHAQlB,MAAM,4CAoKR,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
package/dist/types/src/features/RequirementAI/components/story-screen/UserStoryScreen.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserStoryScreen.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/story-screen/UserStoryScreen.tsx"],"names":[],"mappings":"AAAA,OAAO,KAMN,MAAM,OAAO,CAAC;AAef,KAAK,yBAAyB,GAAG;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AA+CF,UAAU,SAAS;IACjB,QAAQ,EAAE,WAAW,GAAG,OAAO,CAAC;IAChC,2BAA2B,EAAE,OAAO,CAAC;IACrC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,UAAU,CAAC,EAAE,yBAAyB,CAAC;IACvC,gBAAgB,EAAE,MAAM,EAAE,CAAC;CAC5B;AAgGD,UAAU,YAAY;IACpB,SAAS,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;CACrC;AA4CD,UAAU,kBAAkB;IAC1B,QAAQ,EAAE,KAAK,CAAC,aAAa,CAAC;IAC9B,SAAS,EAAE,KAAK,CAAC,aAAa,CAAC;CAChC;AAmCD,UAAU,YAAY;IACpB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,YAAY,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;CACxC;AAqJD,UAAU,SAAS;IACjB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAiBD,UAAU,UAAU;IAClB,SAAS,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;IACpC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;
|
|
1
|
+
{"version":3,"file":"UserStoryScreen.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/story-screen/UserStoryScreen.tsx"],"names":[],"mappings":"AAAA,OAAO,KAMN,MAAM,OAAO,CAAC;AAef,KAAK,yBAAyB,GAAG;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AA+CF,UAAU,SAAS;IACjB,QAAQ,EAAE,WAAW,GAAG,OAAO,CAAC;IAChC,2BAA2B,EAAE,OAAO,CAAC;IACrC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,UAAU,CAAC,EAAE,yBAAyB,CAAC;IACvC,gBAAgB,EAAE,MAAM,EAAE,CAAC;CAC5B;AAgGD,UAAU,YAAY;IACpB,SAAS,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;CACrC;AA4CD,UAAU,kBAAkB;IAC1B,QAAQ,EAAE,KAAK,CAAC,aAAa,CAAC;IAC9B,SAAS,EAAE,KAAK,CAAC,aAAa,CAAC;CAChC;AAmCD,UAAU,YAAY;IACpB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,YAAY,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;CACxC;AAqJD,UAAU,SAAS;IACjB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAiBD,UAAU,UAAU;IAClB,SAAS,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;IACpC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAwCD,UAAU,WAAW;IACnB,SAAS,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;IACpC,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;CACrB;AAoLD,QAAA,MAAM,eAAe,wFAzjBlB,SAAS;6BA4FoB,YAAY;6CA+CI,kBAAkB;0CAsCrB,YAAY;yBAuJ7B,SAAS;2BAoBP,UAAU;oCA2CD,WAAW;;;CA2LhD,CAAC;AAEH,eAAe,eAAe,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserStoryWithCitation.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqG,MAAM,OAAO,CAAC;AAW1H,OAAO,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,wBAAwB,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,0BAA0B,EAAE,aAAa,EAAE,qBAAqB,EAAE,YAAY,EAAE,cAAc,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAC7Y,OAA+B,EAAE,2BAA2B,EAAE,4BAA4B,EAAE,MAAM,sCAAsC,CAAC;AAUzI,OAAO,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AAKlE,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAiBlE,MAAM,WAAW,iCAAiC;IAChD,eAAe,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACtC,SAAS,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAChC,eAAe,CAAC,EAAE;QAChB,OAAO,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;KAC/B,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C,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;IAE1C,yBAAyB,CAAC,EAAE,OAAO,CAAC;IAEpC,aAAa,CAAC,EAAE;QACd,SAAS,EAAE,OAAO,CAAC;QACnB,YAAY,EAAE,UAAU,EAAE,CAAC;QAC3B,eAAe,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC;QACpE,wBAAwB,CAAC,EAAE,CAAC,MAAM,EAAE,QAAQ,GAAG,QAAQ,EAAE,WAAW,EAAE,UAAU,EAAE,KAAK,IAAI,CAAC;QAC5F,oBAAoB,EAAE,OAAO,CAAC;KAC/B,CAAC;IACF,uBAAuB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1C,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAC;IAChC,0BAA0B,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,WAAW,EAAE,YAAY,KAAK,GAAG,CAAC,OAAO,CAAC;IAClH,eAAe,CAAC,EAAE,QAAQ,EAAE,CAAC;CAC9B;AA0RD,QAAA,MAAM,sBAAsB,6aAgCzB,2BAA2B,
|
|
1
|
+
{"version":3,"file":"UserStoryWithCitation.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqG,MAAM,OAAO,CAAC;AAW1H,OAAO,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,wBAAwB,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,0BAA0B,EAAE,aAAa,EAAE,qBAAqB,EAAE,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