@e-llm-studio/requirement-ai 0.0.24 → 0.0.25

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.
Files changed (24) hide show
  1. package/dist/cjs/features/RequirementAI/components/RichTextEditor/RichTextEditor.js +1 -1
  2. package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/GapFilterItem.js +1 -1
  3. package/dist/cjs/features/RequirementAI/components/story-screen/StreamingScreenSidebar.js +1 -1
  4. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.js +1 -1
  5. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/components/ApprovalSidebarItem/ApprovalSidebarItem.js +1 -1
  6. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.js +1 -1
  7. package/dist/cjs/features/RequirementAI/shared/UpdatedAnimationContent.js +1 -1
  8. package/dist/features/RequirementAI/components/RichTextEditor/RichTextEditor.js +1 -1
  9. package/dist/features/RequirementAI/components/lsc-reason-gap/GapFilterItem.js +1 -1
  10. package/dist/features/RequirementAI/components/story-screen/StreamingScreenSidebar.js +1 -1
  11. package/dist/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.js +1 -1
  12. package/dist/features/RequirementAI/components/userstory-approval-screen/components/ApprovalSidebarItem/ApprovalSidebarItem.js +1 -1
  13. package/dist/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.js +1 -1
  14. package/dist/features/RequirementAI/shared/UpdatedAnimationContent.js +1 -1
  15. package/dist/types/src/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.d.ts +223 -220
  16. package/dist/types/src/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.d.ts.map +1 -1
  17. package/dist/types/src/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.d.ts.map +1 -1
  18. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.d.ts +40 -37
  19. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.d.ts.map +1 -1
  20. package/dist/types/src/features/RequirementAI/shared/UpdatedAnimationContent.d.ts +40 -1
  21. package/dist/types/src/features/RequirementAI/shared/UpdatedAnimationContent.d.ts.map +1 -1
  22. package/dist/types/src/index.d.ts +2 -0
  23. package/dist/types/src/index.d.ts.map +1 -1
  24. package/package.json +1 -1
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),r=require("react"),n=require("./Editor/constants/editorConfig.js"),o=require("./Editor/Editor.js"),i=require("@lexical/markdown"),u=require("../../store/ref.context.js");exports.default=function(a){var s=a.type,d=a.value,c=a.handleUpdateState,l=a.onBlur,f=a.placeholder,g=a.minHeight,h=a.height,v=a.mode,m=a.doNotShowBorderInViewMode,p=r.useRef(null),w=r.useState({type:s,value:d}),E=w[0],S=w[1],R=r.useState(0),x=R[0],_=R[1],j=u.useRefStore(),q=j.contentRef;j.setContentRef;r.useEffect(function(){S(function(t){return e.__assign(e.__assign({},t),{value:d})})},[d]);return r.useEffect(function(){var e=function(){q&&q.current&&_(q.current.clientHeight-60)};return e(),window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}},[q]),t.jsx(t.Fragment,{children:t.jsx(o.default,{minHeight:g,height:h,placeholder:f||"Enter some text...",onChange:function(e,t,r){e.read(function(){var e=i.$convertToMarkdownString(i.TRANSFORMERS);console.log("testing::markdown::edit",e),function(e,t){c(e,t)}("prompt",e)})},toolbarConfig:n.DEFAULT_TOOLBAR_CONFIG,editorRef:p,mode:v,initialString:{type:E.type,value:E.value},dynamicHeight:x,onBlur:l,doNotShowBorderInViewMode:m||!1})})};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),r=require("react"),n=require("./Editor/constants/editorConfig.js"),i=require("./Editor/Editor.js"),o=require("@lexical/markdown"),u=require("../../store/ref.context.js");exports.default=function(a){var s=a.type,d=a.value,c=a.handleUpdateState,l=a.onBlur,f=a.placeholder,h=a.minHeight,g=a.height,v=a.mode,p=a.doNotShowBorderInViewMode,m=r.useRef(null),w=r.useState({type:s,value:d}),E=w[0],S=w[1],R=r.useState(0),x=R[0],_=R[1],j=u.useRefStore(),q=j.contentRef;j.setContentRef;r.useEffect(function(){S(function(t){return e.__assign(e.__assign({},t),{value:d})})},[d]);return r.useEffect(function(){var e=function(){q&&q.current&&_(q.current.clientHeight-60)};return e(),window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}},[q]),t.jsx(t.Fragment,{children:t.jsx(i.default,{minHeight:h,height:g,placeholder:f||"Enter some text...",onChange:function(e,t,r){e.read(function(){!function(e,t){c(e,t)}("prompt",o.$convertToMarkdownString(o.TRANSFORMERS))})},toolbarConfig:n.DEFAULT_TOOLBAR_CONFIG,editorRef:m,mode:v,initialString:{type:E.type,value:E.value},dynamicHeight:x,onBlur:l,doNotShowBorderInViewMode:p||!1})})};
2
2
  //# sourceMappingURL=RichTextEditor.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),s=require("react/jsx-runtime"),o=require("lucide-react"),t=require("react"),n=require("@mui/material"),i=require("./GapFilterItem.module.css.js"),l=require("../ai-reasoning/AiReasoningCitationContent.js"),a=require("../../icons/CognitiveDecision.js"),r=function(e){return e>90?{borderColor:"#22c55e",backgroundColor:"#f0fdf4",color:"#16a34a",className:i.default.scoreBadgeHigh}:e>=70&&e<=90?{borderColor:"#eab308",backgroundColor:"#fefce8",color:"#a16207",className:i.default.scoreBadgeMedium}:{borderColor:"#ef4444",backgroundColor:"#fef2f2",color:"#dc2626",className:i.default.scoreBadgeLow}};exports.GapFilterItem=function(c){c.mode;var d=c.index,u=c.isSelected,m=c.onClick,g=c.item,f=c.onFixClick,_=c.onRedirect,v=c.aiReason;c.panelRef;var p=c.id,x=c.isGenerating,h=void 0!==x&&x,j=c.customStyles,N=c.customIcons,y=t.useState(!1),C=y[0],R=y[1],S=(null==N?void 0:N.highConfidence)||s.jsx(a.default,{});t.useMemo(function(){return g.components?g.components.split("||"):[]},[g.components]);var T=t.useMemo(function(){return g.score&&isNaN(parseInt(g.score))?0:g.score?parseInt(g.score):0},[g.score]),b=r(T);return console.log("testing::reasoning\n",v),s.jsx("div",e.__assign({className:i.default.outerWrapper,onClick:m,style:null==j?void 0:j.itemOuterWrapper},{children:s.jsxs("div",e.__assign({className:i.default.innerCard,style:null==j?void 0:j.itemInnerCard},{children:[s.jsxs("div",e.__assign({className:i.default.contentBlock,style:null==j?void 0:j.contentBlock},{children:[s.jsxs("div",e.__assign({className:i.default.topRow,style:null==j?void 0:j.itemTopRow},{children:[s.jsx("div",e.__assign({className:[i.default.questionText,u?i.default.questionTextSelected:i.default.questionTextDefault].join(" "),style:e.__assign(e.__assign({},null==j?void 0:j.itemQuestionText),u?null==j?void 0:j.itemQuestionTextSelected:null==j?void 0:j.itemQuestionTextDefault)},{children:s.jsx(n.Tooltip,e.__assign({title:g.question||"",placement:"top"},{children:s.jsx("span",{className:i.default.questionSpan,style:null==j?void 0:j.itemQuestionSpan})}))})),s.jsxs("div",e.__assign({className:i.default.actionsRow,style:null==j?void 0:j.itemActionsRow},{children:[T>0&&s.jsx("div",e.__assign({className:[i.default.scoreBadge,b.className].join(" "),style:e.__assign(e.__assign(e.__assign(e.__assign({},null==j?void 0:j.itemScoreBadge),T>90?null==j?void 0:j.itemScoreBadgeHigh:{}),T>=70&&T<=90?null==j?void 0:j.itemScoreBadgeMedium:{}),T<70?null==j?void 0:j.itemScoreBadgeLow:{})},{children:"".concat(T,"%")})),g.showFix&&s.jsx("button",e.__assign({className:i.default.fixButton,onClick:function(e){e.stopPropagation(),f()},style:null==j?void 0:j.itemFixButton},{children:"Fix"})),g.showRedirect&&s.jsx(o.SquareArrowOutUpRight,{color:"#3b82f6",size:14,className:i.default.redirectIcon,onClick:function(e){e.stopPropagation(),_()},style:null==j?void 0:j.itemRedirectIcon})]}))]})),s.jsxs("div",e.__assign({className:[i.default.bottomRow,u?i.default.bottomRowSelected:i.default.bottomRowDefault].join(" "),style:u?e.__assign(e.__assign({},null==j?void 0:j.itemBottomRow),null==j?void 0:j.bottomRowSelected):e.__assign(e.__assign({},null==j?void 0:j.itemBottomRow),null==j?void 0:j.bottomRowDefault)},{children:[s.jsxs("span",e.__assign({className:i.default.gapTextSpan,style:null==j?void 0:j.itemGapText},{children:[(null==g?void 0:g.headerText)?s.jsx("span",e.__assign({className:i.default.gapHeaderText,style:null==j?void 0:j.itemGapHeaderText},{children:g.headerText})):s.jsxs("span",e.__assign({className:i.default.gapHeaderText,style:null==j?void 0:j.itemGapHeaderText},{children:["Gap ",d+1,"."]}))," ",g.text]})),p&&s.jsxs("span",e.__assign({onClick:function(e){e.stopPropagation(),h||R(!C)},className:[i.default.reasoningToggle,h?i.default.reasoningToggleDisabled:i.default.reasoningToggleActive].join(" "),style:null==j?void 0:j.itemReasoningToggle},{children:[S,C?s.jsx(o.ChevronUp,{className:i.default.chevronIcon,style:null==j?void 0:j.chevronIcon}):s.jsx(o.ChevronDown,{className:i.default.chevronIcon,style:null==j?void 0:j.chevronIcon})]}))]}))]})),C&&s.jsx(l.default,{aiReason:{id:"1",reason:v.Reasoning||"",gap:v.Gap||"",relevance_score:Number(v.Confidence_score),explanation:v.explanation||""},onSelectProceed:f,customStyles:null==j?void 0:j.aiReasoningStyles,customIcons:N})]}))}))},exports.getScoreColorStyles=r;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),s=require("react/jsx-runtime"),o=require("lucide-react"),t=require("react"),i=require("@mui/material"),n=require("./GapFilterItem.module.css.js"),a=require("../ai-reasoning/AiReasoningCitationContent.js"),l=require("../../icons/CognitiveDecision.js"),r=function(e){return e>90?{borderColor:"#22c55e",backgroundColor:"#f0fdf4",color:"#16a34a",className:n.default.scoreBadgeHigh}:e>=70&&e<=90?{borderColor:"#eab308",backgroundColor:"#fefce8",color:"#a16207",className:n.default.scoreBadgeMedium}:{borderColor:"#ef4444",backgroundColor:"#fef2f2",color:"#dc2626",className:n.default.scoreBadgeLow}};exports.GapFilterItem=function(c){c.mode;var d=c.index,u=c.isSelected,m=c.onClick,g=c.item,f=c.onFixClick,_=c.onRedirect,v=c.aiReason;c.panelRef;var p=c.id,x=c.isGenerating,h=void 0!==x&&x,j=c.customStyles,N=c.customIcons,y=t.useState(!1),C=y[0],R=y[1],S=(null==N?void 0:N.highConfidence)||s.jsx(l.default,{});t.useMemo(function(){return g.components?g.components.split("||"):[]},[g.components]);var T=t.useMemo(function(){return g.score&&isNaN(parseInt(g.score))?0:g.score?parseInt(g.score):0},[g.score]),b=r(T);return s.jsx("div",e.__assign({className:n.default.outerWrapper,onClick:m,style:null==j?void 0:j.itemOuterWrapper},{children:s.jsxs("div",e.__assign({className:n.default.innerCard,style:null==j?void 0:j.itemInnerCard},{children:[s.jsxs("div",e.__assign({className:n.default.contentBlock,style:null==j?void 0:j.contentBlock},{children:[s.jsxs("div",e.__assign({className:n.default.topRow,style:null==j?void 0:j.itemTopRow},{children:[s.jsx("div",e.__assign({className:[n.default.questionText,u?n.default.questionTextSelected:n.default.questionTextDefault].join(" "),style:e.__assign(e.__assign({},null==j?void 0:j.itemQuestionText),u?null==j?void 0:j.itemQuestionTextSelected:null==j?void 0:j.itemQuestionTextDefault)},{children:s.jsx(i.Tooltip,e.__assign({title:g.question||"",placement:"top"},{children:s.jsx("span",{className:n.default.questionSpan,style:null==j?void 0:j.itemQuestionSpan})}))})),s.jsxs("div",e.__assign({className:n.default.actionsRow,style:null==j?void 0:j.itemActionsRow},{children:[T>0&&s.jsx("div",e.__assign({className:[n.default.scoreBadge,b.className].join(" "),style:e.__assign(e.__assign(e.__assign(e.__assign({},null==j?void 0:j.itemScoreBadge),T>90?null==j?void 0:j.itemScoreBadgeHigh:{}),T>=70&&T<=90?null==j?void 0:j.itemScoreBadgeMedium:{}),T<70?null==j?void 0:j.itemScoreBadgeLow:{})},{children:"".concat(T,"%")})),g.showFix&&s.jsx("button",e.__assign({className:n.default.fixButton,onClick:function(e){e.stopPropagation(),f()},style:null==j?void 0:j.itemFixButton},{children:"Fix"})),g.showRedirect&&s.jsx(o.SquareArrowOutUpRight,{color:"#3b82f6",size:14,className:n.default.redirectIcon,onClick:function(e){e.stopPropagation(),_()},style:null==j?void 0:j.itemRedirectIcon})]}))]})),s.jsxs("div",e.__assign({className:[n.default.bottomRow,u?n.default.bottomRowSelected:n.default.bottomRowDefault].join(" "),style:u?e.__assign(e.__assign({},null==j?void 0:j.itemBottomRow),null==j?void 0:j.bottomRowSelected):e.__assign(e.__assign({},null==j?void 0:j.itemBottomRow),null==j?void 0:j.bottomRowDefault)},{children:[s.jsxs("span",e.__assign({className:n.default.gapTextSpan,style:null==j?void 0:j.itemGapText},{children:[(null==g?void 0:g.headerText)?s.jsx("span",e.__assign({className:n.default.gapHeaderText,style:null==j?void 0:j.itemGapHeaderText},{children:g.headerText})):s.jsxs("span",e.__assign({className:n.default.gapHeaderText,style:null==j?void 0:j.itemGapHeaderText},{children:["Gap ",d+1,"."]}))," ",g.text]})),p&&s.jsxs("span",e.__assign({onClick:function(e){e.stopPropagation(),h||R(!C)},className:[n.default.reasoningToggle,h?n.default.reasoningToggleDisabled:n.default.reasoningToggleActive].join(" "),style:null==j?void 0:j.itemReasoningToggle},{children:[S,C?s.jsx(o.ChevronUp,{className:n.default.chevronIcon,style:null==j?void 0:j.chevronIcon}):s.jsx(o.ChevronDown,{className:n.default.chevronIcon,style:null==j?void 0:j.chevronIcon})]}))]}))]})),C&&s.jsx(a.default,{aiReason:{id:"1",reason:v.Reasoning||"",gap:v.Gap||"",relevance_score:Number(v.Confidence_score),explanation:v.explanation||""},onSelectProceed:f,customStyles:null==j?void 0:j.aiReasoningStyles,customIcons:N})]}))}))},exports.getScoreColorStyles=r;
2
2
  //# sourceMappingURL=GapFilterItem.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),s=require("react/jsx-runtime"),t=require("../RequirementAIWrapper/RequirementAIWrapper.js"),a=require("lucide-react"),l=require("react"),i=require("./ReplaceLearnedTags.js"),n=require("./StreamingScreenSidebar.module.css.js"),r=function(t){var a=t.customStyles;return s.jsxs("div",e.__assign({className:n.default.skeleton,style:a},{children:[s.jsx("div",{className:n.default.skeletonLineSmall,style:null==a?void 0:a.skeletonLine}),s.jsx("div",{className:n.default.skeletonLineLarge,style:null==a?void 0:a.skeletonLine})]}))};exports.default=function(d){var o,c,u=d.isSidebarExpanded,m=d.selectedStreamingStoryIndex,v=d.setSelectedStreamingStoryIndex,f=d.streamingUserStories,_=d.isStreamingScreen,g=d.artifactTitleIds,y=t.useRequirementAI().customStyles,p=null===(o=null==y?void 0:y.userStoryScreenStyles)||void 0===o?void 0:o.streamingSidebar,x=l.useState({}),j=x[0],h=x[1],S=null===(c=f||[])||void 0===c?void 0:c.map(function(e,s){return{artifactTitleId:g[s]||"",artifactId:e.artifactId,title:e.title,description:(null==e?void 0:e.description)||""}});return s.jsx("div",e.__assign({className:"".concat(n.default.container," ").concat(u?n.default.expanded:n.default.collapsed),style:null==p?void 0:p.container},{children:s.jsxs("div",e.__assign({className:n.default.sidebar,style:null==p?void 0:p.sidebarInner},{children:[s.jsx("div",e.__assign({className:n.default.header,style:null==p?void 0:p.header},{children:s.jsx("h2",e.__assign({className:n.default.title,style:null==p?void 0:p.title},{children:"User stories"}))})),s.jsx("div",{children:S.length>0?s.jsx(s.Fragment,{children:S.map(function(t,l){return s.jsx("div",e.__assign({onClick:function(){v(l)},className:"".concat(n.default.storyItem," ").concat(l===S.length-1?n.default.borderBottom:""," ").concat(m===l?n.default.activeStory:""),style:e.__assign(e.__assign({},null==p?void 0:p.storyItem),m===l?null==p?void 0:p.activeStory:{})},{children:s.jsxs("div",e.__assign({className:n.default.storyContent,style:null==p?void 0:p.storyContent},{children:[s.jsxs("div",e.__assign({className:n.default.storyHeader,style:null==p?void 0:p.storyHeader},{children:[s.jsx("span",e.__assign({className:n.default.iconGroup},{children:s.jsx(a.Bookmark,{className:n.default.bookmarkIcon,style:null==p?void 0:p.bookmarkIcon})})),_&&s.jsx("span",e.__assign({className:n.default.badge,style:null==p?void 0:p.badge},{children:"Generating..."}))]})),s.jsxs("span",e.__assign({className:n.default.storyTitle,style:null==p?void 0:p.storyTitle},{children:[s.jsxs("span",{children:[l+1,"."]}),i.replaceLearnedTagsWithInfo(t.title)]})),s.jsxs("span",e.__assign({className:n.default.description,style:null==p?void 0:p.description},{children:[(r=t.artifactId,d=t.description,j[r]?d:d.length>116?d.slice(0,116)+"...":d),t.description.length>116&&s.jsx("button",e.__assign({onClick:function(s){s.stopPropagation(),function(s){h(function(t){var a;return e.__assign(e.__assign({},t),((a={})[s]=!t[s],a))})}(t.artifactId)},className:n.default.moreButton,style:null==p?void 0:p.moreButton},{children:j[t.artifactId]?"less":"more"}))]}))]}))}),t.artifactId);var r,d})}):s.jsx(r,{customStyles:null==p?void 0:p.skeleton})})]}))}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),s=require("react/jsx-runtime"),t=require("../RequirementAIWrapper/RequirementAIWrapper.js"),a=require("lucide-react"),l=require("react"),i=require("./ReplaceLearnedTags.js"),n=require("./StreamingScreenSidebar.module.css.js"),r=function(t){var a=t.customStyles;return s.jsxs("div",e.__assign({className:n.default.skeleton,style:a},{children:[s.jsx("div",{className:n.default.skeletonLineSmall,style:null==a?void 0:a.skeletonLine}),s.jsx("div",{className:n.default.skeletonLineLarge,style:null==a?void 0:a.skeletonLine})]}))};exports.default=function(d){var o,c,u=d.isSidebarExpanded,m=d.selectedStreamingStoryIndex,v=d.setSelectedStreamingStoryIndex,f=d.streamingUserStories,_=d.isStreamingScreen,g=d.artifactTitleIds,y=t.useRequirementAI().customStyles,p=null===(o=null==y?void 0:y.userStoryScreenStyles)||void 0===o?void 0:o.streamingSidebar,x=l.useState({}),j=x[0],h=x[1],S=null===(c=f||[])||void 0===c?void 0:c.map(function(e,s){return{artifactTitleId:g[s]||"",artifactId:e.artifactId,title:e.title,description:(null==e?void 0:e.description)||""}});return s.jsx("div",e.__assign({className:"".concat(n.default.container," ").concat(u?n.default.expanded:n.default.collapsed),style:null==p?void 0:p.container},{children:s.jsxs("div",e.__assign({className:n.default.sidebar,style:null==p?void 0:p.sidebarInner},{children:[s.jsx("div",e.__assign({className:n.default.header,style:null==p?void 0:p.header},{children:s.jsx("h2",e.__assign({className:n.default.title,style:null==p?void 0:p.title},{children:"User stories"}))})),s.jsx("div",{children:S.length>0?s.jsx(s.Fragment,{children:S.map(function(t,l){return s.jsx("div",e.__assign({onClick:function(){v(l)},className:"".concat(n.default.storyItem," ").concat(l===S.length-1?n.default.borderBottom:""," ").concat(m===l?n.default.activeStory:""),style:e.__assign(e.__assign({},null==p?void 0:p.storyItem),m===l?null==p?void 0:p.activeStory:{})},{children:s.jsxs("div",e.__assign({className:n.default.storyContent,style:null==p?void 0:p.storyContent},{children:[s.jsxs("div",e.__assign({className:n.default.storyHeader,style:null==p?void 0:p.storyHeader},{children:[s.jsx("span",e.__assign({className:n.default.iconGroup},{children:s.jsx(a.Bookmark,{className:n.default.bookmarkIcon,style:null==p?void 0:p.bookmarkIcon})})),_&&s.jsx("span",e.__assign({className:n.default.badge,style:null==p?void 0:p.badge},{children:"Generating..."}))]})),s.jsxs("span",e.__assign({className:n.default.storyTitle,style:null==p?void 0:p.storyTitle},{children:[s.jsxs("span",{children:[l+1,"."]}),i.replaceLearnedTagsWithInfo(t.title)]})),s.jsxs("span",e.__assign({className:n.default.description,style:null==p?void 0:p.description},{children:[(r=t.artifactId,d=t.description,j[r]?d:d.length>116?d.slice(0,116):d),t.description.length>116&&s.jsx("button",e.__assign({onClick:function(s){s.stopPropagation(),function(s){h(function(t){var a;return e.__assign(e.__assign({},t),((a={})[s]=!t[s],a))})}(t.artifactId)},className:n.default.moreButton,style:null==p?void 0:p.moreButton},{children:j[t.artifactId]?"less":"..."}))]}))]}))}),t.artifactId);var r,d})}):s.jsx(r,{customStyles:null==p?void 0:p.skeleton})})]}))}))};
2
2
  //# sourceMappingURL=StreamingScreenSidebar.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),r=require("react"),a=require("../RequirementAIWrapper/RequirementAIWrapper.js"),n=require("../../utils/userstory-approval-transform.utils.js"),o=require("../../utils/userstory-approval.utils.js"),i=require("../../hooks/useApprovalStatus.js"),l=require("./components/ContentSegment/ContentSegment.js"),s=require("./components/ApprovalBadge/ApprovalBadge.js"),d=require("./UserStoryApprovalScreen.module.css.js"),c=require("../../icons/CheckIcon.js"),u=require("../../icons/BookmarkIcon.js"),v=require("./components/ApprovalSidebar/ApprovalSidebar.js"),p=require("lucide-react"),g=require("./UserStoryApprovalContext.js"),S={showApproveAllButton:!0,allowEditing:!0,allowDeletion:!0,showSidebar:!1,containerHeight:"calc(100vh - 100px)",useFullWidth:!1},f={approveAll:"Approve All",approved:"Approved",approve:"Approve",correctMe:"Correct Me",delete:"Delete",save:"Save",cancel:"Cancel",savingArtifact:"Saving Artifact...",artifactSavedTitle:"Artifact Saved Successfully",artifactSavedMessage:"Your changes have been saved.",saveFailedTitle:"Failed to Save the Artifact",saveFailedMessage:"An error occurred while saving your changes.",emptyContentWarning:"Saving empty content is not allowed",unsavedChangesWarning:"Please save the updated changes to proceed with Approve All"},h=Object.assign(function(l){var s,c=l.artifactTitleIds,u=l.config,v=void 0===u?{}:u,p=l.callbacks,h=void 0===p?{}:p,m=l.labels,A=void 0===m?{}:m,_=l.isDisabled,y=void 0!==_&&_,b=l.children,I=l.classNames,C=a.useRequirementAI(),x=C.userStory,j=C.customStyles,U=e.__assign(e.__assign({},S),v),w=e.__assign(e.__assign({},f),A),k=r.useState([]),E=k[0],q=k[1],N=r.useState(""),F=N[0],T=N[1],D=r.useState(""),R=D[0],B=D[1],M=r.useState(!1),P=M[0],W=M[1],O=r.useState(!0),V=O[0],z=O[1],L=r.useRef(void 0),H=r.useCallback(function(e,t,r,a){h.onShowNotification?h.onShowNotification(e,t,r,a):console.log("[".concat(e.toUpperCase(),"] ").concat(t,": ").concat(r))},[h]),G=r.useCallback(function(e){h.onScrollToElement?h.onScrollToElement(e):(e.style.scrollMarginTop="20px",e.scrollIntoView({behavior:"smooth",block:"start"}))},[h]),Y=r.useMemo(function(){var e=E.findIndex(function(e){return e.artifactId===F});return e>=0?e:0},[E,F]),J=E[Y];r.useEffect(function(){L.current=J},[J]),r.useEffect(function(){var e;if(null==x?void 0:x.length){null===(e=h.onInitialize)||void 0===e||e.call(h),1===x.length&&z(!1);var t=n.createUserStoriesForApproval(n.cloneUserStories(x));q(t),t.length>0&&!F&&T(t[0].artifactId)}},[x]),r.useEffect(function(){if(J){var e=o.getFirstNonApprovedSegmentId(J,"");B(e)}},[null==J?void 0:J.artifactId]);var K=r.useCallback(function(t,r){q(function(a){var n=e.__spreadArray([],a,!0);if("APPROVED"===r.approval_status&&"APPROVED"!==a[t].approval_status){var i=o.getFirstUnapprovedStoryId(a,r.artifactId);i&&T(i)}return n[t]=r,n})},[]),Q=r.useCallback(function(e){var t=L.current;if(t){var r=o.getFirstNonApprovedSegmentId(t,e);"NA"!==r&&(B(""),setTimeout(function(){B(r)},0))}},[]);i.useApprovalStatus({userStoryForApproval:E,selectedUserStoryForApproval:J,userStoryIndex:Y,callbacks:h,labels:w,onSaveUserStory:K});var X=e.__assign({height:U.containerHeight},U.useFullWidth?{width:"100%",marginLeft:0,marginRight:0}:{width:"calc(100% + 40px)",marginLeft:"-20px",marginRight:"-20px"}),Z={userStoryForApproval:E,setUserStoryForApproval:q,selectedStoryArtifactId:F,setSelectedStoryArtifactId:T,selectedUserStoryIndex:Y,selectedUserStoryForApproval:J,currentContentId:R,setCurrentContentId:B,isEditingSegment:P,setIsEditingSegment:W,isSidebarExpanded:V,setIsSidebarExpanded:z,artifactTitleIds:c,config:U,labels:w,callbacks:h,isDisabled:y,handleSaveUserStory:K,handleUpdateContentId:Q,showNotification:H,scrollToElement:G};return t.jsx(g.UserStoryApprovalScreenContext.Provider,e.__assign({value:Z},{children:t.jsx("div",e.__assign({className:"".concat(d.default.container," ").concat((null==I?void 0:I.container)||""),style:e.__assign(e.__assign({},X),null===(s=null==j?void 0:j.approvalScreen)||void 0===s?void 0:s.wrapperContainer)},{children:b}))}))},{Sidebar:function(e){var r=e.Component,a=e.config,n=e.className,o=g.useUserStoryApprovalScreen(),i=o.isSidebarExpanded,l=o.selectedStoryArtifactId,s=o.setSelectedStoryArtifactId,d=o.userStoryForApproval,c=o.isEditingSegment,u=o.artifactTitleIds;return r?t.jsx(r,{isSidebarExpanded:i,selectedStoryArtifactId:l,setSelectedStoryArtifactId:s,userStoryForApproval:d,isEditingAnUserStorySegment:c,artifactTitleIds:u}):t.jsx(v.ApprovalSidebar,{config:a,className:n})},SidebarToggle:function(r){var a=r.OpenIcon,n=r.CloseIcon,o=r.className,i=void 0===o?"":o,l=g.useUserStoryApprovalScreen(),s=l.isSidebarExpanded,c=l.setIsSidebarExpanded,u=a||p.SidebarOpenIcon,v=n||p.SidebarCloseIcon;return t.jsx("div",e.__assign({className:"".concat(d.default.sidebarToggleWrapper," ").concat(i)},{children:t.jsx("button",e.__assign({onClick:function(){return c(function(e){return!e})},className:d.default.sidebarToggleBtn,"aria-label":s?"Collapse sidebar":"Expand sidebar",type:"button"},{children:s?t.jsx(v,{}):t.jsx(u,{})}))}))},Content:function(n){var i,l,v,p,S,f,h,m,A,_,y,b,I,C,x,j,U,w,k,E,q,N=n.children,F=n.ButtonComponent,T=n.hideApproveAll,D=void 0!==T&&T,R=n.pageTitle,B=void 0===R?"Review Generated Requirements":R,M=n.pageDescription,P=void 0===M?"This page displays automatically generated requirements for your project. Use this screen to review, refine, correct, or approve all generated requirements.":M,W=g.useUserStoryApprovalScreen(),O=W.selectedUserStoryForApproval,V=W.selectedUserStoryIndex,z=W.artifactTitleIds,L=W.labels,H=W.config,G=W.isDisabled,Y=W.isEditingSegment,J=W.handleSaveUserStory,K=W.setCurrentContentId,Q=W.showNotification,X=a.useRequirementAI().customStyles,Z=r.useCallback(function(){if(console.log("testing::handleApproveAll called",O),O)if(Y)Q("warn","Warning!",L.unsavedChangesWarning,3e3);else{var e=o.approveAllSegments(O);J(V,e),K("")}},[O,V,Y,L,J,K,Q]);if(!O)return null;var $=z[V]||"",ee="APPROVED"===O.approval_status;return t.jsxs("div",e.__assign({className:d.default.content,style:e.__assign({},null===(l=null===(i=null==X?void 0:X.approvalScreen)||void 0===i?void 0:i.content)||void 0===l?void 0:l.content),"data-lsc-ui-page-title":B,"data-lsc-ui-page-description":P},{children:[t.jsxs("div",e.__assign({className:d.default.header,style:e.__assign({},null===(S=null===(p=null===(v=null==X?void 0:X.approvalScreen)||void 0===v?void 0:v.body)||void 0===p?void 0:p.contentSegment)||void 0===S?void 0:S.header)},{children:[t.jsxs("div",e.__assign({className:d.default.headerLeft,style:e.__assign({},null===(h=null===(f=null==X?void 0:X.approvalScreen)||void 0===f?void 0:f.content)||void 0===h?void 0:h.headerLeft)},{children:[t.jsxs("div",e.__assign({className:d.default.headerMeta,style:e.__assign({},null===(_=null===(A=null===(m=null==X?void 0:X.approvalScreen)||void 0===m?void 0:m.body)||void 0===A?void 0:A.contentSegment)||void 0===_?void 0:_.headerMeta)},{children:[t.jsx(u.BookmarkIcon,{size:16,color:(null===(I=null===(b=null===(y=null==X?void 0:X.approvalScreen)||void 0===y?void 0:y.body)||void 0===b?void 0:b.contentSegment)||void 0===I?void 0:I.bookMarkColor)||"#8C8C8C"}),t.jsx("h2",e.__assign({className:d.default.headerArtifactId,style:e.__assign({},null===(j=null===(x=null===(C=null==X?void 0:X.approvalScreen)||void 0===C?void 0:C.body)||void 0===x?void 0:x.contentSegment)||void 0===j?void 0:j.headerArtifactId)},{children:$}))]})),t.jsx("p",e.__assign({className:d.default.headerTitle,style:e.__assign({},null===(k=null===(w=null===(U=null==X?void 0:X.approvalScreen)||void 0===U?void 0:U.body)||void 0===w?void 0:w.contentSegment)||void 0===k?void 0:k.headerTitle)},{children:null==O?void 0:O.title}))]})),!D&&H.showApproveAllButton&&t.jsx("div",e.__assign({className:d.default.headerRight},{children:ee?t.jsx(s.ApprovalBadge,{status:"APPROVED",label:L.approved}):F?t.jsx(F,e.__assign({type:"fill",onClick:Z,isDisable:G,className:d.default.approveAllButton,overrideStyles:!0,lscUIAgent:{id:"approve-all",lscUIType:"button",lscUILabel:L.approveAll,lscUIDescription:"Clicks this button to approve all generated requirements on the page in a single action.",lscUIWhenToApply:"Apply when the user wants to accept all requirements without reviewing them individually, or when they say phrases like 'approve everything', 'finalize all', 'accept all', or 'this looks good, approve all'."}},{children:t.jsxs("div",e.__assign({className:d.default.approveAllContent},{children:[t.jsx(c.CheckIcon,{size:16,color:"white"}),t.jsx("span",{children:L.approveAll})]}))})):t.jsxs("button",e.__assign({onClick:Z,disabled:G,className:d.default.approveAllButtonDefault,style:e.__assign({},null===(q=null===(E=null==X?void 0:X.approvalScreen)||void 0===E?void 0:E.content)||void 0===q?void 0:q.approveAllButtonDefault)},{children:[t.jsx(c.CheckIcon,{size:16,color:"white"}),t.jsx("span",{children:L.approveAll})]}))}))]})),N]}))},Body:function(n){var o,i,s,c=n.children,u=n.EditorComponent,v=n.ViewerComponent,p=g.useUserStoryApprovalScreen(),S=p.selectedUserStoryForApproval,f=p.selectedUserStoryIndex,h=p.artifactTitleIds,m=p.handleSaveUserStory,A=a.useRequirementAI().customStyles,_=r.useCallback(function(e){m(f,e)},[f,m]),y=r.useCallback(function(t,r){var a;if(S){var n=e.__assign(e.__assign({},S),{sub_features:null===(a=S.sub_features)||void 0===a?void 0:a.map(function(e,a){return a===t?r:e})});m(f,n)}},[S,f,m]),b=r.useCallback(function(t){var r;if(S){var a=e.__assign(e.__assign({},S),{sub_features:null===(r=S.sub_features)||void 0===r?void 0:r.filter(function(e,r){return r!==t})});m(f,a)}},[S,f,m]);if(!S)return null;var I=h[f]||"";return t.jsxs("div",e.__assign({className:d.default.body,style:e.__assign({},null===(i=null===(o=null==A?void 0:A.approvalScreen)||void 0===o?void 0:o.body)||void 0===i?void 0:i.container)},{children:[t.jsx(l.ContentSegment,{userStoryForApproval:S,artifactTitleId:I,onSaveMainStoryContent:_,EditorComponent:u,ViewerComponent:v}),null===(s=S.sub_features)||void 0===s?void 0:s.map(function(e,r){return t.jsx(l.ContentSegment,{userStoryForApproval:e,artifactTitleId:"".concat(I," - ").concat(String.fromCharCode(65+r)),isSubFeature:!0,subFeatureIndex:r,onSaveSubFeature:y,onDeleteSubFeature:b,EditorComponent:u,ViewerComponent:v},e.artifactId)}),c]}))}});exports.default=h;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),r=require("react"),a=require("../RequirementAIWrapper/RequirementAIWrapper.js"),n=require("../../utils/userstory-approval-transform.utils.js"),o=require("../../utils/userstory-approval.utils.js"),i=require("../../hooks/useApprovalStatus.js"),s=require("./components/ContentSegment/ContentSegment.js"),l=require("./components/ApprovalBadge/ApprovalBadge.js"),d=require("./UserStoryApprovalScreen.module.css.js"),c=require("../../icons/CheckIcon.js"),u=require("../../icons/BookmarkIcon.js"),v=require("./components/ApprovalSidebar/ApprovalSidebar.js"),p=require("lucide-react"),S=require("./UserStoryApprovalContext.js"),g={showApproveAllButton:!0,allowEditing:!0,allowDeletion:!0,showSidebar:!1,containerHeight:"calc(100vh - 100px)",useFullWidth:!1},f={approveAll:"Approve All",approved:"Approved",approve:"Approve",correctMe:"Correct Me",delete:"Delete",save:"Save",cancel:"Cancel",savingArtifact:"Saving Artifact...",artifactSavedTitle:"Artifact Saved Successfully",artifactSavedMessage:"Your changes have been saved.",saveFailedTitle:"Failed to Save the Artifact",saveFailedMessage:"An error occurred while saving your changes.",emptyContentWarning:"Saving empty content is not allowed",unsavedChangesWarning:"Please save the updated changes to proceed with Approve All"},h=Object.assign(function(s){var l,c=s.artifactTitleIds,u=s.config,v=void 0===u?{}:u,p=s.callbacks,h=void 0===p?{}:p,m=s.labels,_=void 0===m?{}:m,y=s.isDisabled,A=void 0!==y&&y,b=s.children,I=s.classNames,C=a.useRequirementAI(),x=C.userStory,j=C.customStyles,U=e.__assign(e.__assign({},g),v),w=e.__assign(e.__assign({},f),_),k=r.useState([]),E=k[0],q=k[1],N=r.useState(""),F=N[0],T=N[1],D=r.useState(""),R=D[0],B=D[1],M=r.useState(!1),P=M[0],W=M[1],O=r.useState(!0),V=O[0],z=O[1],L=r.useRef(void 0),H=r.useCallback(function(e,t,r,a){h.onShowNotification?h.onShowNotification(e,t,r,a):console.log("[".concat(e.toUpperCase(),"] ").concat(t,": ").concat(r))},[h]),G=r.useCallback(function(e){h.onScrollToElement?h.onScrollToElement(e):(e.style.scrollMarginTop="20px",e.scrollIntoView({behavior:"smooth",block:"start"}))},[h]),Y=r.useMemo(function(){var e=E.findIndex(function(e){return e.artifactId===F});return e>=0?e:0},[E,F]),J=E[Y];r.useEffect(function(){L.current=J},[J]),r.useEffect(function(){var e;if(null==x?void 0:x.length){null===(e=h.onInitialize)||void 0===e||e.call(h),1===x.length&&z(!1);var t=n.createUserStoriesForApproval(n.cloneUserStories(x));q(t),t.length>0&&!F&&T(t[0].artifactId)}},[x]),r.useEffect(function(){if(J){var e=o.getFirstNonApprovedSegmentId(J,"");B(e)}},[null==J?void 0:J.artifactId]);var K=r.useCallback(function(t,r){q(function(a){var n=e.__spreadArray([],a,!0);if("APPROVED"===r.approval_status&&"APPROVED"!==a[t].approval_status){var i=o.getFirstUnapprovedStoryId(a,r.artifactId);i&&T(i)}return n[t]=r,n})},[]),Q=r.useCallback(function(e){var t=L.current;if(t){var r=o.getFirstNonApprovedSegmentId(t,e);"NA"!==r&&(B(""),setTimeout(function(){B(r)},0))}},[]);i.useApprovalStatus({userStoryForApproval:E,selectedUserStoryForApproval:J,userStoryIndex:Y,callbacks:h,labels:w,onSaveUserStory:K});var X=e.__assign({height:U.containerHeight},U.useFullWidth?{width:"100%",marginLeft:0,marginRight:0}:{width:"calc(100% + 40px)",marginLeft:"-20px",marginRight:"-20px"}),Z={userStoryForApproval:E,setUserStoryForApproval:q,selectedStoryArtifactId:F,setSelectedStoryArtifactId:T,selectedUserStoryIndex:Y,selectedUserStoryForApproval:J,currentContentId:R,setCurrentContentId:B,isEditingSegment:P,setIsEditingSegment:W,isSidebarExpanded:V,setIsSidebarExpanded:z,artifactTitleIds:c,config:U,labels:w,callbacks:h,isDisabled:A,handleSaveUserStory:K,handleUpdateContentId:Q,showNotification:H,scrollToElement:G};return t.jsx(S.UserStoryApprovalScreenContext.Provider,e.__assign({value:Z},{children:t.jsx("div",e.__assign({className:"".concat(d.default.container," ").concat((null==I?void 0:I.container)||""),style:e.__assign(e.__assign({},X),null===(l=null==j?void 0:j.approvalScreen)||void 0===l?void 0:l.wrapperContainer)},{children:b}))}))},{Sidebar:function(e){var r=e.Component,a=e.config,n=e.className,o=S.useUserStoryApprovalScreen(),i=o.isSidebarExpanded,s=o.selectedStoryArtifactId,l=o.setSelectedStoryArtifactId,d=o.userStoryForApproval,c=o.isEditingSegment,u=o.artifactTitleIds;return r?t.jsx(r,{isSidebarExpanded:i,selectedStoryArtifactId:s,setSelectedStoryArtifactId:l,userStoryForApproval:d,isEditingAnUserStorySegment:c,artifactTitleIds:u}):t.jsx(v.ApprovalSidebar,{config:a,className:n})},SidebarToggle:function(r){var a=r.OpenIcon,n=r.CloseIcon,o=r.className,i=void 0===o?"":o,s=S.useUserStoryApprovalScreen(),l=s.isSidebarExpanded,c=s.setIsSidebarExpanded,u=a||p.SidebarOpenIcon,v=n||p.SidebarCloseIcon;return t.jsx("div",e.__assign({className:"".concat(d.default.sidebarToggleWrapper," ").concat(i)},{children:t.jsx("button",e.__assign({onClick:function(){return c(function(e){return!e})},className:d.default.sidebarToggleBtn,"aria-label":l?"Collapse sidebar":"Expand sidebar",type:"button"},{children:l?t.jsx(v,{}):t.jsx(u,{})}))}))},Content:function(n){var i,s,v,p,g,f,h,m,_,y,A,b,I,C,x,j,U,w,k,E,q,N=n.children,F=n.ButtonComponent,T=n.hideApproveAll,D=void 0!==T&&T,R=n.pageTitle,B=void 0===R?"Review Generated Requirements":R,M=n.pageDescription,P=void 0===M?"This page displays automatically generated requirements for your project. Use this screen to review, refine, correct, or approve all generated requirements.":M,W=S.useUserStoryApprovalScreen(),O=W.selectedUserStoryForApproval,V=W.selectedUserStoryIndex,z=W.artifactTitleIds,L=W.labels,H=W.config,G=W.isDisabled,Y=W.isEditingSegment,J=W.handleSaveUserStory,K=W.setCurrentContentId,Q=W.showNotification,X=a.useRequirementAI().customStyles,Z=r.useCallback(function(){if(O)if(Y)Q("warn","Warning!",L.unsavedChangesWarning,3e3);else{var e=o.approveAllSegments(O);J(V,e),K("")}},[O,V,Y,L,J,K,Q]);if(!O)return null;var $=z[V]||"",ee="APPROVED"===O.approval_status;return t.jsxs("div",e.__assign({className:d.default.content,style:e.__assign({},null===(s=null===(i=null==X?void 0:X.approvalScreen)||void 0===i?void 0:i.content)||void 0===s?void 0:s.content),"data-lsc-ui-page-title":B,"data-lsc-ui-page-description":P},{children:[t.jsxs("div",e.__assign({className:d.default.header,style:e.__assign({},null===(g=null===(p=null===(v=null==X?void 0:X.approvalScreen)||void 0===v?void 0:v.body)||void 0===p?void 0:p.contentSegment)||void 0===g?void 0:g.header)},{children:[t.jsxs("div",e.__assign({className:d.default.headerLeft,style:e.__assign({},null===(h=null===(f=null==X?void 0:X.approvalScreen)||void 0===f?void 0:f.content)||void 0===h?void 0:h.headerLeft)},{children:[t.jsxs("div",e.__assign({className:d.default.headerMeta,style:e.__assign({},null===(y=null===(_=null===(m=null==X?void 0:X.approvalScreen)||void 0===m?void 0:m.body)||void 0===_?void 0:_.contentSegment)||void 0===y?void 0:y.headerMeta)},{children:[t.jsx(u.BookmarkIcon,{size:16,color:(null===(I=null===(b=null===(A=null==X?void 0:X.approvalScreen)||void 0===A?void 0:A.body)||void 0===b?void 0:b.contentSegment)||void 0===I?void 0:I.bookMarkColor)||"#8C8C8C"}),t.jsx("h2",e.__assign({className:d.default.headerArtifactId,style:e.__assign({},null===(j=null===(x=null===(C=null==X?void 0:X.approvalScreen)||void 0===C?void 0:C.body)||void 0===x?void 0:x.contentSegment)||void 0===j?void 0:j.headerArtifactId)},{children:$}))]})),t.jsx("p",e.__assign({className:d.default.headerTitle,style:e.__assign({},null===(k=null===(w=null===(U=null==X?void 0:X.approvalScreen)||void 0===U?void 0:U.body)||void 0===w?void 0:w.contentSegment)||void 0===k?void 0:k.headerTitle)},{children:null==O?void 0:O.title}))]})),!D&&H.showApproveAllButton&&t.jsx("div",e.__assign({className:d.default.headerRight},{children:ee?t.jsx(l.ApprovalBadge,{status:"APPROVED",label:L.approved}):F?t.jsx(F,e.__assign({type:"fill",onClick:Z,isDisable:G,className:d.default.approveAllButton,overrideStyles:!0,lscUIAgent:{id:"approve-all",lscUIType:"button",lscUILabel:L.approveAll,lscUIDescription:"Clicks this button to approve all generated requirements on the page in a single action.",lscUIWhenToApply:"Apply when the user wants to accept all requirements without reviewing them individually, or when they say phrases like 'approve everything', 'finalize all', 'accept all', or 'this looks good, approve all'."}},{children:t.jsxs("div",e.__assign({className:d.default.approveAllContent},{children:[t.jsx(c.CheckIcon,{size:16,color:"white"}),t.jsx("span",{children:L.approveAll})]}))})):t.jsxs("button",e.__assign({onClick:Z,disabled:G,className:d.default.approveAllButtonDefault,style:e.__assign({},null===(q=null===(E=null==X?void 0:X.approvalScreen)||void 0===E?void 0:E.content)||void 0===q?void 0:q.approveAllButtonDefault)},{children:[t.jsx(c.CheckIcon,{size:16,color:"white"}),t.jsx("span",{children:L.approveAll})]}))}))]})),N]}))},Body:function(n){var o,i,l,c=n.children,u=n.EditorComponent,v=n.ViewerComponent,p=S.useUserStoryApprovalScreen(),g=p.selectedUserStoryForApproval,f=p.selectedUserStoryIndex,h=p.artifactTitleIds,m=p.handleSaveUserStory,_=a.useRequirementAI().customStyles,y=r.useCallback(function(e){m(f,e)},[f,m]),A=r.useCallback(function(t,r){var a;if(g){var n=e.__assign(e.__assign({},g),{sub_features:null===(a=g.sub_features)||void 0===a?void 0:a.map(function(e,a){return a===t?r:e})});m(f,n)}},[g,f,m]),b=r.useCallback(function(t){var r;if(g){var a=e.__assign(e.__assign({},g),{sub_features:null===(r=g.sub_features)||void 0===r?void 0:r.filter(function(e,r){return r!==t})});m(f,a)}},[g,f,m]);if(!g)return null;var I=h[f]||"";return t.jsxs("div",e.__assign({className:d.default.body,style:e.__assign({},null===(i=null===(o=null==_?void 0:_.approvalScreen)||void 0===o?void 0:o.body)||void 0===i?void 0:i.container)},{children:[t.jsx(s.ContentSegment,{userStoryForApproval:g,artifactTitleId:I,onSaveMainStoryContent:y,EditorComponent:u,ViewerComponent:v}),null===(l=g.sub_features)||void 0===l?void 0:l.map(function(e,r){return t.jsx(s.ContentSegment,{userStoryForApproval:e,artifactTitleId:"".concat(I," - ").concat(String.fromCharCode(65+r)),isSubFeature:!0,subFeatureIndex:r,onSaveSubFeature:A,onDeleteSubFeature:b,EditorComponent:u,ViewerComponent:v},e.artifactId)}),c]}))}});exports.default=h;
2
2
  //# sourceMappingURL=UserStoryApprovalScreen.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),i=require("react/jsx-runtime"),l=require("react"),o=require("../../../../icons/BookmarkIcon.js"),s=require("../ApprovalStatusBadge/ApprovalStatusBadge.js"),a=require("../../../../utils/learned-tag.utils.js"),n=require("./ApprovalSidebarItem.module.css.js"),d=require("../../../RequirementAIWrapper/RequirementAIWrapper.js"),r=require("../../../../icons/RelevanceScoreIcon.js"),t=function(t){var v,u,c,p,m,_,g,b,S,f,I,j,x,h,C,q,y,N,k,B,A,R,w,L,T,W,z,G,M,P,E,F,O,D,H,J=t.artifactTitleId,K=t.artifactId,Q=t.title,U=t.description,V=t.approvalStatus,X=t.index,Y=t.isLast,Z=t.isSelected,$=t.isEditingSegment,ee=t.onSelect,ie=t.onNavigationBlocked,le=t.sidebarConfig,oe=t.className,se=void 0===oe?"":oe,ae=l.useState(!1),ne=ae[0],de=ae[1],re=d.useRequirementAI(),te=re.customStyles,ve=(0,re.getAvgScoreForStory)(K),ue=le.descriptionCharLimit,ce=le.TooltipComponent,pe=le.InfoIconComponent,me=l.useCallback(function(){$?null==ie||ie():ee(K)},[K,$,ee,ie]),_e=l.useCallback(function(e){e.stopPropagation(),de(function(e){return!e})},[]),ge=ne?U:(null!==(v=null==U?void 0:U.length)&&void 0!==v?v:0)>ue?U.slice(0,ue)+"...":U,be=U.length>ue,Se=[n.default.item,Y?n.default.itemLast:"",Z?n.default.itemSelected:"",se].filter(Boolean).join(" ");return i.jsx("div",e.__assign({className:Se,style:e.__assign({},null===(p=null===(c=null===(u=null==te?void 0:te.approvalScreen)||void 0===u?void 0:u.sidebar)||void 0===c?void 0:c.sidebarItem)||void 0===p?void 0:p.container),onClick:me,role:"option","aria-selected":Z},{children:i.jsxs("div",e.__assign({className:n.default.itemContent,style:e.__assign({},null===(g=null===(_=null===(m=null==te?void 0:te.approvalScreen)||void 0===m?void 0:m.sidebar)||void 0===_?void 0:_.sidebarItem)||void 0===g?void 0:g.itemContent)},{children:[i.jsxs("div",e.__assign({className:n.default.topRow,style:e.__assign({},null===(f=null===(S=null===(b=null==te?void 0:te.approvalScreen)||void 0===b?void 0:b.sidebar)||void 0===S?void 0:S.sidebarItem)||void 0===f?void 0:f.topRow)},{children:[i.jsxs("span",e.__assign({className:n.default.artifactIdGroup,style:e.__assign({},null===(x=null===(j=null===(I=null==te?void 0:te.approvalScreen)||void 0===I?void 0:I.sidebar)||void 0===j?void 0:j.sidebarItem)||void 0===x?void 0:x.artifactIdGroup)},{children:[i.jsx(o.BookmarkIcon,{size:20,color:(null===(q=null===(C=null===(h=null==te?void 0:te.approvalScreen)||void 0===h?void 0:h.sidebar)||void 0===C?void 0:C.sidebarItem)||void 0===q?void 0:q.bookMarkColor)||"#8C8C8C"}),i.jsx("span",{children:J})]})),i.jsxs("div",e.__assign({className:n.default.scoreBadgeContainer},{children:[ve>0&&i.jsxs("span",e.__assign({className:n.default.confidenceScore,style:null===(k=null===(N=null===(y=null==te?void 0:te.approvalScreen)||void 0===y?void 0:y.sidebar)||void 0===N?void 0:N.sidebarItem)||void 0===k?void 0:k.confidenceScore},{children:[i.jsx(r.default,{size:14,color:(null===(w=null===(R=null===(A=null===(B=null==te?void 0:te.approvalScreen)||void 0===B?void 0:B.sidebar)||void 0===A?void 0:A.sidebarItem)||void 0===R?void 0:R.confidenceScoreIcon)||void 0===w?void 0:w.color)||"#166534"}),ve,"%"]})),i.jsx(s.ApprovalStatusBadge,{status:V})]}))]})),i.jsxs("span",e.__assign({className:n.default.titleRow,style:e.__assign({},null===(W=null===(T=null===(L=null==te?void 0:te.approvalScreen)||void 0===L?void 0:L.sidebar)||void 0===T?void 0:T.sidebarItem)||void 0===W?void 0:W.titleRow)},{children:[i.jsx("span",e.__assign({className:n.default.titleIndex,style:e.__assign({},null===(M=null===(G=null===(z=null==te?void 0:te.approvalScreen)||void 0===z?void 0:z.sidebar)||void 0===G?void 0:G.sidebarItem)||void 0===M?void 0:M.titleIndex)},{children:"".concat(X+1,".")})),i.jsx("span",{children:a.replaceLearnedTagsWithInfo(Q,ce,pe)})]})),U&&i.jsxs("span",e.__assign({className:n.default.description,style:e.__assign({},null===(F=null===(E=null===(P=null==te?void 0:te.approvalScreen)||void 0===P?void 0:P.sidebar)||void 0===E?void 0:E.sidebarItem)||void 0===F?void 0:F.description)},{children:[ge,be&&i.jsx("button",e.__assign({onClick:_e,className:n.default.moreButton,style:e.__assign({},null===(H=null===(D=null===(O=null==te?void 0:te.approvalScreen)||void 0===O?void 0:O.sidebar)||void 0===D?void 0:D.sidebarItem)||void 0===H?void 0:H.moreButton),"aria-label":ne?"Show less":"Show more"},{children:ne?"less":"more"}))]}))]}))}))};exports.ApprovalSidebarItem=t,exports.default=t;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),i=require("react/jsx-runtime"),l=require("react"),o=require("../../../../icons/BookmarkIcon.js"),s=require("../ApprovalStatusBadge/ApprovalStatusBadge.js"),a=require("../../../../utils/learned-tag.utils.js"),n=require("./ApprovalSidebarItem.module.css.js"),d=require("../../../RequirementAIWrapper/RequirementAIWrapper.js"),r=require("../../../../icons/RelevanceScoreIcon.js"),t=function(t){var v,u,c,p,m,_,g,b,S,f,I,j,x,h,C,q,y,N,k,B,A,R,w,L,T,W,z,G,M,P,E,F,O,D,H,J=t.artifactTitleId,K=t.artifactId,Q=t.title,U=t.description,V=t.approvalStatus,X=t.index,Y=t.isLast,Z=t.isSelected,$=t.isEditingSegment,ee=t.onSelect,ie=t.onNavigationBlocked,le=t.sidebarConfig,oe=t.className,se=void 0===oe?"":oe,ae=l.useState(!1),ne=ae[0],de=ae[1],re=d.useRequirementAI(),te=re.customStyles,ve=(0,re.getAvgScoreForStory)(K),ue=le.descriptionCharLimit,ce=le.TooltipComponent,pe=le.InfoIconComponent,me=l.useCallback(function(){$?null==ie||ie():ee(K)},[K,$,ee,ie]),_e=l.useCallback(function(e){e.stopPropagation(),de(function(e){return!e})},[]),ge=ne?U:(null!==(v=null==U?void 0:U.length)&&void 0!==v?v:0)>ue?U.slice(0,ue):U,be=U.length>ue,Se=[n.default.item,Y?n.default.itemLast:"",Z?n.default.itemSelected:"",se].filter(Boolean).join(" ");return i.jsx("div",e.__assign({className:Se,style:e.__assign({},null===(p=null===(c=null===(u=null==te?void 0:te.approvalScreen)||void 0===u?void 0:u.sidebar)||void 0===c?void 0:c.sidebarItem)||void 0===p?void 0:p.container),onClick:me,role:"option","aria-selected":Z},{children:i.jsxs("div",e.__assign({className:n.default.itemContent,style:e.__assign({},null===(g=null===(_=null===(m=null==te?void 0:te.approvalScreen)||void 0===m?void 0:m.sidebar)||void 0===_?void 0:_.sidebarItem)||void 0===g?void 0:g.itemContent)},{children:[i.jsxs("div",e.__assign({className:n.default.topRow,style:e.__assign({},null===(f=null===(S=null===(b=null==te?void 0:te.approvalScreen)||void 0===b?void 0:b.sidebar)||void 0===S?void 0:S.sidebarItem)||void 0===f?void 0:f.topRow)},{children:[i.jsxs("span",e.__assign({className:n.default.artifactIdGroup,style:e.__assign({},null===(x=null===(j=null===(I=null==te?void 0:te.approvalScreen)||void 0===I?void 0:I.sidebar)||void 0===j?void 0:j.sidebarItem)||void 0===x?void 0:x.artifactIdGroup)},{children:[i.jsx(o.BookmarkIcon,{size:20,color:(null===(q=null===(C=null===(h=null==te?void 0:te.approvalScreen)||void 0===h?void 0:h.sidebar)||void 0===C?void 0:C.sidebarItem)||void 0===q?void 0:q.bookMarkColor)||"#8C8C8C"}),i.jsx("span",{children:J})]})),i.jsxs("div",e.__assign({className:n.default.scoreBadgeContainer},{children:[ve>0&&i.jsxs("span",e.__assign({className:n.default.confidenceScore,style:null===(k=null===(N=null===(y=null==te?void 0:te.approvalScreen)||void 0===y?void 0:y.sidebar)||void 0===N?void 0:N.sidebarItem)||void 0===k?void 0:k.confidenceScore},{children:[i.jsx(r.default,{size:14,color:(null===(w=null===(R=null===(A=null===(B=null==te?void 0:te.approvalScreen)||void 0===B?void 0:B.sidebar)||void 0===A?void 0:A.sidebarItem)||void 0===R?void 0:R.confidenceScoreIcon)||void 0===w?void 0:w.color)||"#166534"}),ve,"%"]})),i.jsx(s.ApprovalStatusBadge,{status:V})]}))]})),i.jsxs("span",e.__assign({className:n.default.titleRow,style:e.__assign({},null===(W=null===(T=null===(L=null==te?void 0:te.approvalScreen)||void 0===L?void 0:L.sidebar)||void 0===T?void 0:T.sidebarItem)||void 0===W?void 0:W.titleRow)},{children:[i.jsx("span",e.__assign({className:n.default.titleIndex,style:e.__assign({},null===(M=null===(G=null===(z=null==te?void 0:te.approvalScreen)||void 0===z?void 0:z.sidebar)||void 0===G?void 0:G.sidebarItem)||void 0===M?void 0:M.titleIndex)},{children:"".concat(X+1,".")})),i.jsx("span",{children:a.replaceLearnedTagsWithInfo(Q,ce,pe)})]})),U&&i.jsxs("span",e.__assign({className:n.default.description,style:e.__assign({},null===(F=null===(E=null===(P=null==te?void 0:te.approvalScreen)||void 0===P?void 0:P.sidebar)||void 0===E?void 0:E.sidebarItem)||void 0===F?void 0:F.description)},{children:[ge,be&&i.jsx("button",e.__assign({onClick:_e,className:n.default.moreButton,style:e.__assign({},null===(H=null===(D=null===(O=null==te?void 0:te.approvalScreen)||void 0===O?void 0:O.sidebar)||void 0===D?void 0:D.sidebarItem)||void 0===H?void 0:H.moreButton),"aria-label":ne?"Show less":"Show more"},{children:ne?"less":"..."}))]}))]}))}))};exports.ApprovalSidebarItem=t,exports.default=t;
2
2
  //# sourceMappingURL=ApprovalSidebarItem.js.map
@@ -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"),r=require("rehype-raw"),o=require("./UserStoryWithCitation.module.css.js"),a=require("../../shared/useMarkdownSearch.js"),l=require("lucide-react"),s=require("@mui/material"),d=require("../../shared/UpdatedAnimationContent.js"),c=require("../../shared/GeneratedCodeCitation.js"),u=require("../../shared/CitationLoadingIndicator.js"),v=require("../RequirementAIWrapper/RequirementAIWrapper.js"),g=require("../ai-reasoning/AiReasoningCitation.js"),f=require("../../icons/RelevanceScoreIcon.js");function h(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var _=h(t),p=h(r),m=i.createContext(!1),x=i.createContext({expandedInfo:null,setExpanded:function(){},reasonToRow:{current:new Map}}),C=i.createContext({rowId:""}),y=function(t){var r,a,l=t.children,s=t.node,d=i.useRef(Math.random().toString(36).slice(2)).current,c=i.useContext(x).expandedInfo,u=(null==c?void 0:c.rowId)===d,v=Array.isArray(null==s?void 0:s.children)?s.children.filter(function(e){return"element"===e.type}).length:1,g=null!==(a=null===(r=null==s?void 0:s.properties)||void 0===r?void 0:r.style)&&void 0!==a?a:void 0;return n.jsxs(C.Provider,e.__assign({value:{rowId:d}},{children:[n.jsx("tr",e.__assign({style:g?{cssText:g}:void 0},{children:l})),u&&(null==c?void 0:c.aiReason)&&n.jsx("tr",e.__assign({style:{width:"100%"}},{children:n.jsx("td",e.__assign({colSpan:v||1,className:o.default.tableExpandedCell},{children:n.jsx("div",e.__assign({className:o.default.tableExpandedCellInner},{children:n.jsx("div",{className:o.default.tableExpandedCellContent})}))}))}))]}))};exports.default=function(t){var r=t.message,h=t.scenario,C=t.showUserStoryDiff,j=void 0!==C&&C,S=t.aiReasoningsForBlock,R=t.isCitationLoadingDisplay,w=void 0!==R&&R,I=t.className;t.highConfidenceIcon,t.lowConfidenceIcon;var b=t.customStyles,N=t.customIcons,q=t.aiReasoningDiffView,A=t.userStoryCitations,M=t.artifactId,T=i.useRef(null),L=v.useRequirementAI(),U=L.userStory,E=L.getAvgScoreForStory,P=L.setUserStory,k=L.aiReasoning,F=L.setAiReasoning,$=L.customIcons,D=L.searchQueryList,W=L.searchQueryReasoningIdList,H=null!=N?N:null==$?void 0:$.userStoryIcons,z=null==b?void 0:b.searchHighlight,G=a.useMarkdownSearch(T,z),O=G.search,Q=G.clear,B=i.useState("1"),V=B[0],J=B[1],K=i.useState(null),X=K[0],Y=K[1],Z=i.useRef(new Map),ee=i.useCallback(function(e,n){Y(e&&n?{rowId:e,aiReason:n}:null)},[]),ne=M?E(M):0;console.log("testing::avgScore",M,ne);var ie=i.useState([]),te=ie[0],re=ie[1],oe=function(e){var n=new RegExp("<(/?(".concat(["updated","deleted","changed"].join("|"),"))>"),"g"),i=e.replace(n,"\n\n<$1>\n\n");return i=(i=i.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')})};i.useMemo(function(){return r?oe(r):r},[r]),i.useEffect(function(){re(S||k)},[S,k]);var ae=i.useMemo(function(){return{h1:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("h1",e.__assign({className:o.default.heading1,style:null==b?void 0:b.heading1},{children:t.children}))},h2:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("h2",e.__assign({className:o.default.heading2,style:null==b?void 0:b.heading2},{children:t.children}))},h3:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("h3",e.__assign({className:o.default.heading3,style:null==b?void 0:b.heading3},{children:t.children}))},b:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("b",e.__assign({className:o.default.bold,style:null==b?void 0:b.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:o.default.paragraph,style:null==b?void 0:b.paragraph},{children:t.children}))},updated:function(i){var t=i.node,r=e.__rest(i,["node"]);return n.jsx(d.default,e.__assign({showUserStoryDiff:j,currentUpdatedTagId:V,setCurrentUpdatedTagId:J,userStory:U,setUserStory:P,setAiReasoning:F,node:t,customStyle:null==b?void 0:b.updatedContent},r))},ol:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("ol",e.__assign({className:o.default.orderedList,style:null==b?void 0:b.olist},{children:null==t?void 0:t.children}))},ul:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("ul",e.__assign({className:o.default.unorderedList,style:null==b?void 0:b.ulist},{children:null==t?void 0:t.children}))},table:function(i){var t=i.children;return n.jsx("div",e.__assign({className:o.default.tableWrapper},{children:n.jsx("table",e.__assign({className:o.default.table,style:null==b?void 0:b.table},{children:t}))}))},tr:y,td:function(i){var t,r=i.node,o=i.children,a=null!==(t=null==r?void 0:r.properties)&&void 0!==t?t:{},l=a.style,s=e.__rest(a,["style"]);return n.jsx(m.Provider,e.__assign({value:!0},{children:n.jsx("td",e.__assign({},s,{style:l?{cssText:l}:void 0},{children:o}))}))},th:function(i){var t,r=i.node,o=i.children,a=null!==(t=null==r?void 0:r.properties)&&void 0!==t?t:{},l=a.style,s=e.__rest(a,["style"]);return n.jsx(m.Provider,e.__assign({value:!0},{children:n.jsx("th",e.__assign({},s,{style:l?{cssText:l}:void 0},{children:o}))}))},a:function(t){var r,o,a;t.inline,t.children,t.node;var l=e.__rest(t,["inline","children","node"]),s=i.useContext(m)||"true"==(null==l?void 0:l.table),d="".concat(null==l?void 0:l.href),c=null===(r=d.split("$"))||void 0===r?void 0:r[0],u=null===(o=d.split("$"))||void 0===o?void 0:o[1];if("ai_reasoning"===c){var v=(null!==(a=j?q:k)&&void 0!==a?a:[]).find(function(e){return e.id.toString()===decodeURIComponent(u)});if(v&&v.reason.length>0&&v.gap.length>0)return n.jsx(g.default,{title:"Source",aiReason:v,isSourceHasHighlight:!1,isTable:s,customIcons:H,customStyles:{aiReasoningContent:null==b?void 0:b.aiReasoningContent,aiReasoningAccordion:null==b?void 0:b.aiReasoningAccordion,aiReasoningMarkdown:null==b?void 0:b.aiReasoningMarkdown,aiReasoningPill:null==b?void 0:b.aiReasoningPill,webCitation:null==b?void 0:b.webCitation,stormeeCitation:null==b?void 0:b.stormeeCitation,waveformCitation:null==b?void 0:b.waveformCitation,imageCitation:null==b?void 0:b.imageCitation,fileCitation:null==b?void 0:b.fileCitation,appModCitation:null==b?void 0:b.appModCitation,rcaCitation:null==b?void 0:b.rcaCitation,readFileCitation:null==b?void 0:b.readFileCitation}})}return null},code:function(i){i.inline;var t=i.children,r=i.className;return i.node,e.__rest(i,["inline","children","className","node"]),/language-(\w+)/.exec(r||"")||(null==r?void 0:r.includes("language-"))?n.jsx("div",{children:n.jsx("code",e.__assign({className:o.default.blockCode,style:null==b?void 0:b.code},{children:t}))}):n.jsx("code",e.__assign({className:o.default.inlineCode,style:null==b?void 0:b.code},{children:t}))},learned:function(i){var t=i.children;return n.jsx(s.Tooltip,e.__assign({title:t,placement:"top"},{children:n.jsx(l.Info,{size:16,className:o.default.learned})}))},generatedcode:function(i){i.node;var t=e.__rest(i,["node"]),r=(null==t?void 0:t.language)||"python",o=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:o,language:r,customStyles:{pill:null==b?void 0:b.generatedCodePill,content:null==b?void 0:b.generatedCodeContent}})}}},[te,k,A,V,j,r,N]);return i.useEffect(function(){if(T.current){if(null==D?void 0:D.length){var e;if(0===(null==W?void 0:W.length))requestAnimationFrame(function(){O(D.map(function(e){return e.replace(/\*/g,"")}))});else{var n=T.current,i=new MutationObserver(function(){clearTimeout(e),e=setTimeout(function(){i.disconnect(),requestAnimationFrame(function(){O(D.map(function(e){return e.replace(/\*/g,"")}))})},50)});i.observe(n,{childList:!0,subtree:!0})}return function(){clearTimeout(e)}}Q()}},[D,W]),n.jsx(x.Provider,e.__assign({value:{expandedInfo:X,setExpanded:ee,reasonToRow:Z}},{children:n.jsxs("div",e.__assign({ref:T,className:"".concat(o.default.container," ").concat("approving"!==h?o.default.wrapper:""," ").concat(I||""),style:null==b?void 0:b.container},{children:[n.jsx(_.default,e.__assign({components:ae,rehypePlugins:[p.default]},{children:oe(r)})),ne>0&&n.jsx("div",e.__assign({className:o.default.confidenceScoreContainer,style:null==b?void 0:b.confidenceScoreContainer},{children:n.jsxs("span",e.__assign({className:o.default.confidenceScore,style:null==b?void 0:b.confidenceScore},{children:[n.jsx(f.default,{size:14,color:(null==b?void 0:b.confidenceScoreIconColor)||"#166534"}),ne,"%"]}))})),w&&n.jsx("div",e.__assign({className:o.default.citationLoader,style:null==b?void 0:b.citationLoaderContainer},{children:n.jsx(u.default,{customStyles:{container:null==b?void 0:b.citationLoadingContainer,icon:null==b?void 0:b.citationLoadingIcon,text:null==b?void 0:b.citationLoadingText}})}))]}))}))};
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"),r=require("rehype-raw"),o=require("./UserStoryWithCitation.module.css.js"),a=require("../../shared/useMarkdownSearch.js"),l=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"),f=require("../ai-reasoning/AiReasoningCitation.js"),g=require("../../icons/RelevanceScoreIcon.js");function h(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var _=h(t),p=h(r),m=i.createContext(!1),x=i.createContext({expandedInfo:null,setExpanded:function(){},reasonToRow:{current:new Map}}),C=i.createContext({rowId:""}),y=function(t){var r,a,l=t.children,d=t.node,s=i.useRef(Math.random().toString(36).slice(2)).current,c=i.useContext(x).expandedInfo,u=(null==c?void 0:c.rowId)===s,v=Array.isArray(null==d?void 0:d.children)?d.children.filter(function(e){return"element"===e.type}).length:1,f=null!==(a=null===(r=null==d?void 0:d.properties)||void 0===r?void 0:r.style)&&void 0!==a?a:void 0;return n.jsxs(C.Provider,e.__assign({value:{rowId:s}},{children:[n.jsx("tr",e.__assign({style:f?{cssText:f}:void 0},{children:l})),u&&(null==c?void 0:c.aiReason)&&n.jsx("tr",e.__assign({style:{width:"100%"}},{children:n.jsx("td",e.__assign({colSpan:v||1,className:o.default.tableExpandedCell},{children:n.jsx("div",e.__assign({className:o.default.tableExpandedCellInner},{children:n.jsx("div",{className:o.default.tableExpandedCellContent})}))}))}))]}))};exports.default=function(t){var r=t.message,h=t.scenario,C=t.showUserStoryDiff,j=void 0!==C&&C,S=t.aiReasoningsForBlock,R=t.isCitationLoadingDisplay,w=void 0!==R&&R,I=t.className;t.highConfidenceIcon,t.lowConfidenceIcon;var b=t.customStyles,N=t.customIcons,q=t.aiReasoningDiffView,A=t.userStoryCitations,M=t.artifactId,T=i.useRef(null),L=v.useRequirementAI(),U=L.userStory,E=L.getAvgScoreForStory,P=L.setUserStory,k=L.aiReasoning,F=L.setAiReasoning,$=L.customIcons,D=L.searchQueryList,W=L.searchQueryReasoningIdList,H=null!=N?N:null==$?void 0:$.userStoryIcons,z=null==b?void 0:b.searchHighlight,G=a.useMarkdownSearch(T,z),O=G.search,Q=G.clear,B=i.useState("1"),V=B[0],J=B[1],K=i.useState(null),X=K[0],Y=K[1],Z=i.useRef(new Map),ee=i.useCallback(function(e,n){Y(e&&n?{rowId:e,aiReason:n}:null)},[]),ne=M?E(M):0,ie=i.useState([]),te=ie[0],re=ie[1],oe=function(e){var n=new RegExp("<(/?(".concat(["updated","deleted","changed"].join("|"),"))>"),"g"),i=e.replace(n,"\n\n<$1>\n\n");return i=(i=i.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')})};i.useMemo(function(){return r?oe(r):r},[r]),i.useEffect(function(){re(S||k)},[S,k]);var ae=i.useMemo(function(){return{h1:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("h1",e.__assign({className:o.default.heading1,style:null==b?void 0:b.heading1},{children:t.children}))},h2:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("h2",e.__assign({className:o.default.heading2,style:null==b?void 0:b.heading2},{children:t.children}))},h3:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("h3",e.__assign({className:o.default.heading3,style:null==b?void 0:b.heading3},{children:t.children}))},b:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("b",e.__assign({className:o.default.bold,style:null==b?void 0:b.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:o.default.paragraph,style:null==b?void 0:b.paragraph},{children:t.children}))},updated:function(i){var t=i.node,r=e.__rest(i,["node"]);return n.jsx(s.default,e.__assign({showUserStoryDiff:j,currentUpdatedTagId:V,setCurrentUpdatedTagId:J,userStory:U,setUserStory:P,setAiReasoning:F,node:t,customStyle:null==b?void 0:b.updatedContent},r))},ol:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("ol",e.__assign({className:o.default.orderedList,style:null==b?void 0:b.olist},{children:null==t?void 0:t.children}))},ul:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("ul",e.__assign({className:o.default.unorderedList,style:null==b?void 0:b.ulist},{children:null==t?void 0:t.children}))},table:function(i){var t=i.children;return n.jsx("div",e.__assign({className:o.default.tableWrapper},{children:n.jsx("table",e.__assign({className:o.default.table,style:null==b?void 0:b.table},{children:t}))}))},tr:y,td:function(i){var t,r=i.node,o=i.children,a=null!==(t=null==r?void 0:r.properties)&&void 0!==t?t:{},l=a.style,d=e.__rest(a,["style"]);return n.jsx(m.Provider,e.__assign({value:!0},{children:n.jsx("td",e.__assign({},d,{style:l?{cssText:l}:void 0},{children:o}))}))},th:function(i){var t,r=i.node,o=i.children,a=null!==(t=null==r?void 0:r.properties)&&void 0!==t?t:{},l=a.style,d=e.__rest(a,["style"]);return n.jsx(m.Provider,e.__assign({value:!0},{children:n.jsx("th",e.__assign({},d,{style:l?{cssText:l}:void 0},{children:o}))}))},a:function(t){var r,o,a;t.inline,t.children,t.node;var l=e.__rest(t,["inline","children","node"]),d=i.useContext(m)||"true"==(null==l?void 0:l.table),s="".concat(null==l?void 0:l.href),c=null===(r=s.split("$"))||void 0===r?void 0:r[0],u=null===(o=s.split("$"))||void 0===o?void 0:o[1];if("ai_reasoning"===c){var v=(null!==(a=j?q:k)&&void 0!==a?a:[]).find(function(e){return e.id.toString()===decodeURIComponent(u)});if(v&&v.reason.length>0&&v.gap.length>0)return n.jsx(f.default,{title:"Source",aiReason:v,isSourceHasHighlight:!1,isTable:d,customIcons:H,customStyles:{aiReasoningContent:null==b?void 0:b.aiReasoningContent,aiReasoningAccordion:null==b?void 0:b.aiReasoningAccordion,aiReasoningMarkdown:null==b?void 0:b.aiReasoningMarkdown,aiReasoningPill:null==b?void 0:b.aiReasoningPill,webCitation:null==b?void 0:b.webCitation,stormeeCitation:null==b?void 0:b.stormeeCitation,waveformCitation:null==b?void 0:b.waveformCitation,imageCitation:null==b?void 0:b.imageCitation,fileCitation:null==b?void 0:b.fileCitation,appModCitation:null==b?void 0:b.appModCitation,rcaCitation:null==b?void 0:b.rcaCitation,readFileCitation:null==b?void 0:b.readFileCitation}})}return null},code:function(i){i.inline;var t=i.children,r=i.className;return i.node,e.__rest(i,["inline","children","className","node"]),/language-(\w+)/.exec(r||"")||(null==r?void 0:r.includes("language-"))?n.jsx("div",{children:n.jsx("code",e.__assign({className:o.default.blockCode,style:null==b?void 0:b.code},{children:t}))}):n.jsx("code",e.__assign({className:o.default.inlineCode,style:null==b?void 0:b.code},{children:t}))},learned:function(i){var t=i.children;return n.jsx(d.Tooltip,e.__assign({title:t,placement:"top"},{children:n.jsx(l.Info,{size:16,className:o.default.learned})}))},generatedcode:function(i){i.node;var t=e.__rest(i,["node"]),r=(null==t?void 0:t.language)||"python",o=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:o,language:r,customStyles:{pill:null==b?void 0:b.generatedCodePill,content:null==b?void 0:b.generatedCodeContent}})}}},[te,k,A,V,j,r,N]);return i.useEffect(function(){if(T.current){if(null==D?void 0:D.length){var e;if(0===(null==W?void 0:W.length))requestAnimationFrame(function(){O(D.map(function(e){return e.replace(/\*/g,"")}))});else{var n=T.current,i=new MutationObserver(function(){clearTimeout(e),e=setTimeout(function(){i.disconnect(),requestAnimationFrame(function(){O(D.map(function(e){return e.replace(/\*/g,"")}))})},50)});i.observe(n,{childList:!0,subtree:!0})}return function(){clearTimeout(e)}}Q()}},[D,W]),n.jsx(x.Provider,e.__assign({value:{expandedInfo:X,setExpanded:ee,reasonToRow:Z}},{children:n.jsxs("div",e.__assign({ref:T,className:"".concat(o.default.container," ").concat("approving"!==h?o.default.wrapper:""," ").concat(I||""),style:null==b?void 0:b.container},{children:[n.jsx(_.default,e.__assign({components:ae,rehypePlugins:[p.default]},{children:oe(r)})),ne>0&&n.jsx("div",e.__assign({className:o.default.confidenceScoreContainer,style:null==b?void 0:b.confidenceScoreContainer},{children:n.jsxs("span",e.__assign({className:o.default.confidenceScore,style:null==b?void 0:b.confidenceScore},{children:[n.jsx(g.default,{size:14,color:(null==b?void 0:b.confidenceScoreIconColor)||"#166534"}),ne,"%"]}))})),w&&n.jsx("div",e.__assign({className:o.default.citationLoader,style:null==b?void 0:b.citationLoaderContainer},{children:n.jsx(u.default,{customStyles:{container:null==b?void 0:b.citationLoadingContainer,icon:null==b?void 0:b.citationLoadingIcon,text:null==b?void 0:b.citationLoadingText}})}))]}))}))};
2
2
  //# sourceMappingURL=UserStoryWithCitation.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),r=require("lucide-react"),t=require("react"),i=require("./UpdatedAnimationContent.module.css.js");exports.default=function(u){var a,l,s,o,d,c,f=u.showUserStoryDiff,v=void 0!==f&&f,m=u.currentUpdatedTagId,g=u.setCurrentUpdatedTagId;u.node;var p=u.userStory,h=u.setUserStory,_=u.setAiReasoning,y=u.customStyle,N=e.__rest(u,["showUserStoryDiff","currentUpdatedTagId","setCurrentUpdatedTagId","node","userStory","setUserStory","setAiReasoning","customStyle"]),S=t.useState(!1),x=S[0],j=S[1],T=t.useRef(null),b=t.useRef(null);t.useEffect(function(){if(b.current){var e=setTimeout(function(){var e=b.current;e&&(e.style.scrollMarginBottom="20px",e.scrollIntoView({behavior:"smooth",block:"end"}))},200);return function(){return clearTimeout(e)}}},[m]);var M=null===(s=null===(l=null===(a=null==N?void 0:N.children)||void 0===a?void 0:a.filter(function(e){return"string"!=typeof e}).find(function(e){return"deleted"===(null==e?void 0:e.type)}))||void 0===l?void 0:l.props)||void 0===s?void 0:s.children,w=null===(c=null===(d=null===(o=null==N?void 0:N.children)||void 0===o?void 0:o.filter(function(e){return"string"!=typeof e}).find(function(e){return"changed"===(null==e?void 0:e.type)}))||void 0===d?void 0:d.props)||void 0===c?void 0:c.children;function U(n,r,t){var i=JSON.parse(JSON.stringify(n)),u=function(e,n){var r=function(e){for(var t=0,i=e;t<i.length;t++){var u=i[t];if((new DOMParser).parseFromString(u.value,"text/html").querySelector('updated[id="'.concat(n,'"]')))return u;if(u.sub_features&&u.sub_features.length>0){var a=r(u.sub_features);if(a)return a}}return null};return r(e)}(i,r);if(!u)return console.warn("No user story found with updated id: ".concat(r)),!1;var a=(new DOMParser).parseFromString(u.value,"text/html"),l=a.querySelector('updated[id="'.concat(r,'"]'));if(!l)return console.warn("No <updated> block found with id: ".concat(r)),!1;var s,o=l.innerHTML,d=l.querySelector("deleted"),c=l.querySelector("changed"),f=d?d.innerHTML.trim():null,v=c?c.innerHTML.trim():null,m="";if("reject"===t){var p=(s=(f||v||"").match(/ai_reasoning\$(\d+)/))?parseInt(s[1],10):null;null!==p&&_(function(n){var r=n.map(function(n){return e.__assign({},n)}),t="".concat(p,"-legacy"),i=r.find(function(e){var n;return(null===(n=e.id)||void 0===n?void 0:n.toString())===t});if(i){var u=i.id.toString().replace("-legacy","");r=r.filter(function(e){return e.id.toString()!==u}),i.id=u}return e.__spreadArray([],r,!0)})}"accept"===t?m=f&&v?v:f&&!v?"":!f&&v?v:o:"reject"===t&&(m=f&&v||f&&!v?f:!f&&v?"":o);var y=a.createElement("div");y.innerHTML=m;var N=Array.from(y.childNodes);l.replaceWith.apply(l,N);var S=new XMLSerializer;return u.value=S.serializeToString(a),h(i),g(function(e){return Number.isNaN(Number(e))?e:String(Number(e)+1)}),!0}return n.jsxs("div",e.__assign({style:y},N,{className:i.default.container,onMouseEnter:function(){T.current&&(clearTimeout(T.current),T.current=null),j(!0)},onMouseLeave:function(){T.current=setTimeout(function(){j(!1),T.current=null},2e3)},ref:(null==N?void 0:N.id)===m?b:null},{children:[x&&!v&&n.jsxs("span",e.__assign({className:i.default.hoverActions,onMouseEnter:function(){return j(!0)}},{children:[n.jsx("button",e.__assign({className:i.default.actionButton,onClick:function(){U(p,null==N?void 0:N.id,"reject"),j(!1)}},{children:n.jsx(r.Undo,{className:i.default.hw})})),n.jsx("span",{className:i.default.divider}),n.jsx("button",e.__assign({className:i.default.actionButton,onClick:function(){U(p,null==N?void 0:N.id,"accept"),j(!1)}},{children:n.jsx(r.ThumbsUp,{className:i.default.hw})}))]})),M&&n.jsxs("div",e.__assign({className:i.default.deletedContainer},{children:[n.jsx(r.Minus,{className:i.default.deletedIcon}),n.jsx("div",e.__assign({className:i.default.deletedText},{children:M}))]})),w&&n.jsxs("div",e.__assign({className:i.default.changedContainer},{children:[n.jsx(r.Plus,{className:i.default.changedIcon}),n.jsx("div",e.__assign({className:i.default.changedText},{children:w}))]}))]}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),t=require("lucide-react"),r=require("react"),l=require("./UpdatedAnimationContent.module.css.js");exports.default=function(o){var i,u,s,a,d,c,v,f,p=o.showUserStoryDiff,g=void 0!==p&&p,h=o.currentUpdatedTagId,m=o.setCurrentUpdatedTagId;o.node;var y=o.userStory,_=o.setUserStory,S=o.setAiReasoning,x=o.customStyles,N=o.customIcons,j=e.__rest(o,["showUserStoryDiff","currentUpdatedTagId","setCurrentUpdatedTagId","node","userStory","setUserStory","setAiReasoning","customStyles","customIcons"]),T=r.useState(!1),I=T[0],M=T[1],b=r.useState(null),C=b[0],w=b[1],U=r.useRef(null),q=r.useRef(null),z=null!==(i=null==x?void 0:x.iconSize)&&void 0!==i?i:16,L=null!==(u=null==x?void 0:x.actionIconSize)&&void 0!==u?u:z;r.useEffect(function(){if(q.current){var e=setTimeout(function(){var e=q.current;e&&(e.style.scrollMarginBottom="20px",e.scrollIntoView({behavior:"smooth",block:"end"}))},200);return function(){return clearTimeout(e)}}},[h]);var A=null===(d=null===(a=null===(s=null==j?void 0:j.children)||void 0===s?void 0:s.filter(function(e){return"string"!=typeof e}).find(function(e){return"deleted"===(null==e?void 0:e.type)}))||void 0===a?void 0:a.props)||void 0===d?void 0:d.children,E=null===(f=null===(v=null===(c=null==j?void 0:j.children)||void 0===c?void 0:c.filter(function(e){return"string"!=typeof e}).find(function(e){return"changed"===(null==e?void 0:e.type)}))||void 0===v?void 0:v.props)||void 0===f?void 0:f.children;function B(n,t,r){var l=JSON.parse(JSON.stringify(n)),o=function(e,n){var t=function(e){for(var r=0,l=e;r<l.length;r++){var o=l[r];if((new DOMParser).parseFromString(o.value,"text/html").querySelector('updated[id="'.concat(n,'"]')))return o;if(o.sub_features&&o.sub_features.length>0){var i=t(o.sub_features);if(i)return i}}return null};return t(e)}(l,t);if(!o)return console.warn("No user story found with updated id: ".concat(t)),!1;var i=(new DOMParser).parseFromString(o.value,"text/html"),u=i.querySelector('updated[id="'.concat(t,'"]'));if(!u)return console.warn("No <updated> block found with id: ".concat(t)),!1;var s,a=u.innerHTML,d=u.querySelector("deleted"),c=u.querySelector("changed"),v=d?d.innerHTML.trim():null,f=c?c.innerHTML.trim():null,p="";if("reject"===r){var g=(s=(v||f||"").match(/ai_reasoning\$(\d+)/))?parseInt(s[1],10):null;null!==g&&S(function(n){var t=n.map(function(n){return e.__assign({},n)}),r="".concat(g,"-legacy"),l=t.find(function(e){var n;return(null===(n=e.id)||void 0===n?void 0:n.toString())===r});if(l){var o=l.id.toString().replace("-legacy","");t=t.filter(function(e){return e.id.toString()!==o}),l.id=o}return e.__spreadArray([],t,!0)})}"accept"===r?p=v&&f?f:v&&!f?"":!v&&f?f:a:"reject"===r&&(p=v&&f||v&&!f?v:!v&&f?"":a);var h=i.createElement("div");h.innerHTML=p;var y=Array.from(h.childNodes);u.replaceWith.apply(u,y);var x=new XMLSerializer;return o.value=x.serializeToString(i),_(l),m(function(e){return Number.isNaN(Number(e))?e:String(Number(e)+1)}),!0}var H=function(n){var t=(null==x?void 0:x.actionButton)||{},r=C===n&&(null==x?void 0:x.actionButtonHover)||{};return e.__assign(e.__assign({},t),r)};return n.jsxs("div",e.__assign({},j,{className:l.default.container,style:null==x?void 0:x.container,onMouseEnter:function(){U.current&&(clearTimeout(U.current),U.current=null),M(!0)},onMouseLeave:function(){U.current=setTimeout(function(){M(!1),U.current=null},2e3)},ref:(null==j?void 0:j.id)===h?q:null},{children:[I&&!g&&n.jsxs("span",e.__assign({className:l.default.hoverActions,style:null==x?void 0:x.hoverActions,onMouseEnter:function(){return M(!0)}},{children:[n.jsx("button",e.__assign({className:l.default.actionButton,style:H("undo"),onMouseEnter:function(){return w("undo")},onMouseLeave:function(){return w(null)},onClick:function(){B(y,null==j?void 0:j.id,"reject"),M(!1)}},{children:(null==N?void 0:N.undo)?N.undo:n.jsx(t.Undo,{size:L,color:null==x?void 0:x.undoIconColor,className:l.default.hw})})),n.jsx("span",{className:l.default.divider,style:null==x?void 0:x.divider}),n.jsx("button",e.__assign({className:l.default.actionButton,style:H("accept"),onMouseEnter:function(){return w("accept")},onMouseLeave:function(){return w(null)},onClick:function(){B(y,null==j?void 0:j.id,"accept"),M(!1)}},{children:(null==N?void 0:N.accept)?N.accept:n.jsx(t.ThumbsUp,{size:L,color:null==x?void 0:x.thumbsUpIconColor,className:l.default.hw})}))]})),A&&n.jsxs("div",e.__assign({className:l.default.deletedContainer,style:null==x?void 0:x.deletedContainer},{children:[n.jsx("span",e.__assign({style:null==x?void 0:x.deletedIconWrapper},{children:(null==N?void 0:N.deleted)?N.deleted:n.jsx(t.Minus,{size:z,color:null==x?void 0:x.deletedIconColor,className:l.default.deletedIcon})})),n.jsx("div",e.__assign({className:l.default.deletedText,style:null==x?void 0:x.deletedText},{children:A}))]})),E&&n.jsxs("div",e.__assign({className:l.default.changedContainer,style:null==x?void 0:x.changedContainer},{children:[n.jsx("span",e.__assign({style:null==x?void 0:x.changedIconWrapper},{children:(null==N?void 0:N.changed)?N.changed:n.jsx(t.Plus,{size:z,color:null==x?void 0:x.changedIconColor,className:l.default.changedIcon})})),n.jsx("div",e.__assign({className:l.default.changedText,style:null==x?void 0:x.changedText},{children:E}))]}))]}))};
2
2
  //# sourceMappingURL=UpdatedAnimationContent.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"tslib";import{jsx as t,Fragment as o}from"react/jsx-runtime";import{useRef as r,useState as n,useEffect as i}from"react";import{DEFAULT_TOOLBAR_CONFIG as a}from"./Editor/constants/editorConfig.js";import d from"./Editor/Editor.js";import{$convertToMarkdownString as m,TRANSFORMERS as l}from"@lexical/markdown";import{useRefStore as u}from"../../store/ref.context.js";var c=function(c){var f=c.type,p=c.value,s=c.handleUpdateState,h=c.onBlur,g=c.placeholder,v=c.minHeight,w=c.height,E=c.mode,x=c.doNotShowBorderInViewMode,y=r(null),j=n({type:f,value:p}),B=j[0],C=j[1],H=n(0),S=H[0],R=H[1],b=u(),k=b.contentRef;b.setContentRef;i(function(){C(function(t){return e(e({},t),{value:p})})},[p]);return i(function(){var e=function(){k&&k.current&&R(k.current.clientHeight-60)};return e(),window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}},[k]),t(o,{children:t(d,{minHeight:v,height:w,placeholder:g||"Enter some text...",onChange:function(e,t,o){e.read(function(){var e=m(l);console.log("testing::markdown::edit",e),function(e,t){s(e,t)}("prompt",e)})},toolbarConfig:a,editorRef:y,mode:E,initialString:{type:B.type,value:B.value},dynamicHeight:S,onBlur:h,doNotShowBorderInViewMode:x||!1})})};export{c as default};
1
+ import{__assign as e}from"tslib";import{jsx as t,Fragment as o}from"react/jsx-runtime";import{useRef as r,useState as n,useEffect as i}from"react";import{DEFAULT_TOOLBAR_CONFIG as a}from"./Editor/constants/editorConfig.js";import d from"./Editor/Editor.js";import{$convertToMarkdownString as m,TRANSFORMERS as u}from"@lexical/markdown";import{useRefStore as f}from"../../store/ref.context.js";var c=function(c){var l=c.type,p=c.value,h=c.handleUpdateState,s=c.onBlur,v=c.placeholder,g=c.minHeight,w=c.height,E=c.mode,x=c.doNotShowBorderInViewMode,y=r(null),j=n({type:l,value:p}),B=j[0],C=j[1],H=n(0),S=H[0],R=H[1],b=f(),z=b.contentRef;b.setContentRef;i(function(){C(function(t){return e(e({},t),{value:p})})},[p]);return i(function(){var e=function(){z&&z.current&&R(z.current.clientHeight-60)};return e(),window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}},[z]),t(o,{children:t(d,{minHeight:g,height:w,placeholder:v||"Enter some text...",onChange:function(e,t,o){e.read(function(){!function(e,t){h(e,t)}("prompt",m(u))})},toolbarConfig:a,editorRef:y,mode:E,initialString:{type:B.type,value:B.value},dynamicHeight:S,onBlur:s,doNotShowBorderInViewMode:x||!1})})};export{c as default};
2
2
  //# sourceMappingURL=RichTextEditor.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"tslib";import{jsx as o,jsxs as n}from"react/jsx-runtime";import{SquareArrowOutUpRight as i,ChevronUp as t,ChevronDown as l}from"lucide-react";import{useState as a,useMemo as s}from"react";import{Tooltip as r}from"@mui/material";import c from"./GapFilterItem.module.css.js";import d from"../ai-reasoning/AiReasoningCitationContent.js";import m from"../../icons/CognitiveDecision.js";var u=function(e){return e>90?{borderColor:"#22c55e",backgroundColor:"#f0fdf4",color:"#16a34a",className:c.scoreBadgeHigh}:e>=70&&e<=90?{borderColor:"#eab308",backgroundColor:"#fefce8",color:"#a16207",className:c.scoreBadgeMedium}:{borderColor:"#ef4444",backgroundColor:"#fef2f2",color:"#dc2626",className:c.scoreBadgeLow}},p=function(p){p.mode;var v=p.index,g=p.isSelected,f=p.onClick,x=p.item,h=p.onFixClick,N=p.onRedirect,R=p.aiReason;p.panelRef;var y=p.id,C=p.isGenerating,T=void 0!==C&&C,b=p.customStyles,S=p.customIcons,w=a(!1),B=w[0],k=w[1],I=(null==S?void 0:S.highConfidence)||o(m,{});s(function(){return x.components?x.components.split("||"):[]},[x.components]);var j=s(function(){return x.score&&isNaN(parseInt(x.score))?0:x.score?parseInt(x.score):0},[x.score]),G=u(j);return console.log("testing::reasoning\n",R),o("div",e({className:c.outerWrapper,onClick:f,style:null==b?void 0:b.itemOuterWrapper},{children:n("div",e({className:c.innerCard,style:null==b?void 0:b.itemInnerCard},{children:[n("div",e({className:c.contentBlock,style:null==b?void 0:b.contentBlock},{children:[n("div",e({className:c.topRow,style:null==b?void 0:b.itemTopRow},{children:[o("div",e({className:[c.questionText,g?c.questionTextSelected:c.questionTextDefault].join(" "),style:e(e({},null==b?void 0:b.itemQuestionText),g?null==b?void 0:b.itemQuestionTextSelected:null==b?void 0:b.itemQuestionTextDefault)},{children:o(r,e({title:x.question||"",placement:"top"},{children:o("span",{className:c.questionSpan,style:null==b?void 0:b.itemQuestionSpan})}))})),n("div",e({className:c.actionsRow,style:null==b?void 0:b.itemActionsRow},{children:[j>0&&o("div",e({className:[c.scoreBadge,G.className].join(" "),style:e(e(e(e({},null==b?void 0:b.itemScoreBadge),j>90?null==b?void 0:b.itemScoreBadgeHigh:{}),j>=70&&j<=90?null==b?void 0:b.itemScoreBadgeMedium:{}),j<70?null==b?void 0:b.itemScoreBadgeLow:{})},{children:"".concat(j,"%")})),x.showFix&&o("button",e({className:c.fixButton,onClick:function(e){e.stopPropagation(),h()},style:null==b?void 0:b.itemFixButton},{children:"Fix"})),x.showRedirect&&o(i,{color:"#3b82f6",size:14,className:c.redirectIcon,onClick:function(e){e.stopPropagation(),N()},style:null==b?void 0:b.itemRedirectIcon})]}))]})),n("div",e({className:[c.bottomRow,g?c.bottomRowSelected:c.bottomRowDefault].join(" "),style:e(e({},null==b?void 0:b.itemBottomRow),g?null==b?void 0:b.bottomRowSelected:null==b?void 0:b.bottomRowDefault)},{children:[n("span",e({className:c.gapTextSpan,style:null==b?void 0:b.itemGapText},{children:[(null==x?void 0:x.headerText)?o("span",e({className:c.gapHeaderText,style:null==b?void 0:b.itemGapHeaderText},{children:x.headerText})):n("span",e({className:c.gapHeaderText,style:null==b?void 0:b.itemGapHeaderText},{children:["Gap ",v+1,"."]}))," ",x.text]})),y&&n("span",e({onClick:function(e){e.stopPropagation(),T||k(!B)},className:[c.reasoningToggle,T?c.reasoningToggleDisabled:c.reasoningToggleActive].join(" "),style:null==b?void 0:b.itemReasoningToggle},{children:[I,o(B?t:l,{className:c.chevronIcon,style:null==b?void 0:b.chevronIcon})]}))]}))]})),B&&o(d,{aiReason:{id:"1",reason:R.Reasoning||"",gap:R.Gap||"",relevance_score:Number(R.Confidence_score),explanation:R.explanation||""},onSelectProceed:h,customStyles:null==b?void 0:b.aiReasoningStyles,customIcons:S})]}))}))};export{p as GapFilterItem,u as getScoreColorStyles};
1
+ import{__assign as e}from"tslib";import{jsx as o,jsxs as i}from"react/jsx-runtime";import{SquareArrowOutUpRight as n,ChevronUp as t,ChevronDown as l}from"lucide-react";import{useState as a,useMemo as s}from"react";import{Tooltip as r}from"@mui/material";import c from"./GapFilterItem.module.css.js";import d from"../ai-reasoning/AiReasoningCitationContent.js";import m from"../../icons/CognitiveDecision.js";var u=function(e){return e>90?{borderColor:"#22c55e",backgroundColor:"#f0fdf4",color:"#16a34a",className:c.scoreBadgeHigh}:e>=70&&e<=90?{borderColor:"#eab308",backgroundColor:"#fefce8",color:"#a16207",className:c.scoreBadgeMedium}:{borderColor:"#ef4444",backgroundColor:"#fef2f2",color:"#dc2626",className:c.scoreBadgeLow}},p=function(p){p.mode;var v=p.index,g=p.isSelected,f=p.onClick,x=p.item,h=p.onFixClick,N=p.onRedirect,R=p.aiReason;p.panelRef;var y=p.id,C=p.isGenerating,T=void 0!==C&&C,b=p.customStyles,S=p.customIcons,w=a(!1),B=w[0],k=w[1],I=(null==S?void 0:S.highConfidence)||o(m,{});s(function(){return x.components?x.components.split("||"):[]},[x.components]);var j=s(function(){return x.score&&isNaN(parseInt(x.score))?0:x.score?parseInt(x.score):0},[x.score]),G=u(j);return o("div",e({className:c.outerWrapper,onClick:f,style:null==b?void 0:b.itemOuterWrapper},{children:i("div",e({className:c.innerCard,style:null==b?void 0:b.itemInnerCard},{children:[i("div",e({className:c.contentBlock,style:null==b?void 0:b.contentBlock},{children:[i("div",e({className:c.topRow,style:null==b?void 0:b.itemTopRow},{children:[o("div",e({className:[c.questionText,g?c.questionTextSelected:c.questionTextDefault].join(" "),style:e(e({},null==b?void 0:b.itemQuestionText),g?null==b?void 0:b.itemQuestionTextSelected:null==b?void 0:b.itemQuestionTextDefault)},{children:o(r,e({title:x.question||"",placement:"top"},{children:o("span",{className:c.questionSpan,style:null==b?void 0:b.itemQuestionSpan})}))})),i("div",e({className:c.actionsRow,style:null==b?void 0:b.itemActionsRow},{children:[j>0&&o("div",e({className:[c.scoreBadge,G.className].join(" "),style:e(e(e(e({},null==b?void 0:b.itemScoreBadge),j>90?null==b?void 0:b.itemScoreBadgeHigh:{}),j>=70&&j<=90?null==b?void 0:b.itemScoreBadgeMedium:{}),j<70?null==b?void 0:b.itemScoreBadgeLow:{})},{children:"".concat(j,"%")})),x.showFix&&o("button",e({className:c.fixButton,onClick:function(e){e.stopPropagation(),h()},style:null==b?void 0:b.itemFixButton},{children:"Fix"})),x.showRedirect&&o(n,{color:"#3b82f6",size:14,className:c.redirectIcon,onClick:function(e){e.stopPropagation(),N()},style:null==b?void 0:b.itemRedirectIcon})]}))]})),i("div",e({className:[c.bottomRow,g?c.bottomRowSelected:c.bottomRowDefault].join(" "),style:e(e({},null==b?void 0:b.itemBottomRow),g?null==b?void 0:b.bottomRowSelected:null==b?void 0:b.bottomRowDefault)},{children:[i("span",e({className:c.gapTextSpan,style:null==b?void 0:b.itemGapText},{children:[(null==x?void 0:x.headerText)?o("span",e({className:c.gapHeaderText,style:null==b?void 0:b.itemGapHeaderText},{children:x.headerText})):i("span",e({className:c.gapHeaderText,style:null==b?void 0:b.itemGapHeaderText},{children:["Gap ",v+1,"."]}))," ",x.text]})),y&&i("span",e({onClick:function(e){e.stopPropagation(),T||k(!B)},className:[c.reasoningToggle,T?c.reasoningToggleDisabled:c.reasoningToggleActive].join(" "),style:null==b?void 0:b.itemReasoningToggle},{children:[I,o(B?t:l,{className:c.chevronIcon,style:null==b?void 0:b.chevronIcon})]}))]}))]})),B&&o(d,{aiReason:{id:"1",reason:R.Reasoning||"",gap:R.Gap||"",relevance_score:Number(R.Confidence_score),explanation:R.explanation||""},onSelectProceed:h,customStyles:null==b?void 0:b.aiReasoningStyles,customIcons:S})]}))}))};export{p as GapFilterItem,u as getScoreColorStyles};
2
2
  //# sourceMappingURL=GapFilterItem.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"tslib";import{jsx as t,jsxs as i,Fragment as l}from"react/jsx-runtime";import{useRequirementAI as n}from"../RequirementAIWrapper/RequirementAIWrapper.js";import{Bookmark as r}from"lucide-react";import{useState as o}from"react";import{replaceLearnedTagsWithInfo as s}from"./ReplaceLearnedTags.js";import a from"./StreamingScreenSidebar.module.css.js";var c=function(l){var n=l.customStyles;return i("div",e({className:a.skeleton,style:n},{children:[t("div",{className:a.skeletonLineSmall,style:null==n?void 0:n.skeletonLine}),t("div",{className:a.skeletonLineLarge,style:null==n?void 0:n.skeletonLine})]}))},d=function(d){var m,u,v=d.isSidebarExpanded,p=d.selectedStreamingStoryIndex,y=d.setSelectedStreamingStoryIndex,f=d.streamingUserStories,h=d.isStreamingScreen,S=d.artifactTitleIds,I=n().customStyles,g=null===(m=null==I?void 0:I.userStoryScreenStyles)||void 0===m?void 0:m.streamingSidebar,N=o({}),b=N[0],k=N[1],x=null===(u=f||[])||void 0===u?void 0:u.map(function(e,t){return{artifactTitleId:S[t]||"",artifactId:e.artifactId,title:e.title,description:(null==e?void 0:e.description)||""}});return t("div",e({className:"".concat(a.container," ").concat(v?a.expanded:a.collapsed),style:null==g?void 0:g.container},{children:i("div",e({className:a.sidebar,style:null==g?void 0:g.sidebarInner},{children:[t("div",e({className:a.header,style:null==g?void 0:g.header},{children:t("h2",e({className:a.title,style:null==g?void 0:g.title},{children:"User stories"}))})),t("div",{children:x.length>0?t(l,{children:x.map(function(l,n){return t("div",e({onClick:function(){y(n)},className:"".concat(a.storyItem," ").concat(n===x.length-1?a.borderBottom:""," ").concat(p===n?a.activeStory:""),style:e(e({},null==g?void 0:g.storyItem),p===n?null==g?void 0:g.activeStory:{})},{children:i("div",e({className:a.storyContent,style:null==g?void 0:g.storyContent},{children:[i("div",e({className:a.storyHeader,style:null==g?void 0:g.storyHeader},{children:[t("span",e({className:a.iconGroup},{children:t(r,{className:a.bookmarkIcon,style:null==g?void 0:g.bookmarkIcon})})),h&&t("span",e({className:a.badge,style:null==g?void 0:g.badge},{children:"Generating..."}))]})),i("span",e({className:a.storyTitle,style:null==g?void 0:g.storyTitle},{children:[i("span",{children:[n+1,"."]}),s(l.title)]})),i("span",e({className:a.description,style:null==g?void 0:g.description},{children:[(o=l.artifactId,c=l.description,b[o]?c:c.length>116?c.slice(0,116)+"...":c),l.description.length>116&&t("button",e({onClick:function(t){t.stopPropagation(),function(t){k(function(i){var l;return e(e({},i),((l={})[t]=!i[t],l))})}(l.artifactId)},className:a.moreButton,style:null==g?void 0:g.moreButton},{children:b[l.artifactId]?"less":"more"}))]}))]}))}),l.artifactId);var o,c})}):t(c,{customStyles:null==g?void 0:g.skeleton})})]}))}))};export{d as default};
1
+ import{__assign as e}from"tslib";import{jsx as t,jsxs as i,Fragment as l}from"react/jsx-runtime";import{useRequirementAI as n}from"../RequirementAIWrapper/RequirementAIWrapper.js";import{Bookmark as r}from"lucide-react";import{useState as s}from"react";import{replaceLearnedTagsWithInfo as o}from"./ReplaceLearnedTags.js";import a from"./StreamingScreenSidebar.module.css.js";var c=function(l){var n=l.customStyles;return i("div",e({className:a.skeleton,style:n},{children:[t("div",{className:a.skeletonLineSmall,style:null==n?void 0:n.skeletonLine}),t("div",{className:a.skeletonLineLarge,style:null==n?void 0:n.skeletonLine})]}))},d=function(d){var m,u,v=d.isSidebarExpanded,p=d.selectedStreamingStoryIndex,y=d.setSelectedStreamingStoryIndex,f=d.streamingUserStories,h=d.isStreamingScreen,S=d.artifactTitleIds,I=n().customStyles,g=null===(m=null==I?void 0:I.userStoryScreenStyles)||void 0===m?void 0:m.streamingSidebar,N=s({}),b=N[0],k=N[1],x=null===(u=f||[])||void 0===u?void 0:u.map(function(e,t){return{artifactTitleId:S[t]||"",artifactId:e.artifactId,title:e.title,description:(null==e?void 0:e.description)||""}});return t("div",e({className:"".concat(a.container," ").concat(v?a.expanded:a.collapsed),style:null==g?void 0:g.container},{children:i("div",e({className:a.sidebar,style:null==g?void 0:g.sidebarInner},{children:[t("div",e({className:a.header,style:null==g?void 0:g.header},{children:t("h2",e({className:a.title,style:null==g?void 0:g.title},{children:"User stories"}))})),t("div",{children:x.length>0?t(l,{children:x.map(function(l,n){return t("div",e({onClick:function(){y(n)},className:"".concat(a.storyItem," ").concat(n===x.length-1?a.borderBottom:""," ").concat(p===n?a.activeStory:""),style:e(e({},null==g?void 0:g.storyItem),p===n?null==g?void 0:g.activeStory:{})},{children:i("div",e({className:a.storyContent,style:null==g?void 0:g.storyContent},{children:[i("div",e({className:a.storyHeader,style:null==g?void 0:g.storyHeader},{children:[t("span",e({className:a.iconGroup},{children:t(r,{className:a.bookmarkIcon,style:null==g?void 0:g.bookmarkIcon})})),h&&t("span",e({className:a.badge,style:null==g?void 0:g.badge},{children:"Generating..."}))]})),i("span",e({className:a.storyTitle,style:null==g?void 0:g.storyTitle},{children:[i("span",{children:[n+1,"."]}),o(l.title)]})),i("span",e({className:a.description,style:null==g?void 0:g.description},{children:[(s=l.artifactId,c=l.description,b[s]?c:c.length>116?c.slice(0,116):c),l.description.length>116&&t("button",e({onClick:function(t){t.stopPropagation(),function(t){k(function(i){var l;return e(e({},i),((l={})[t]=!i[t],l))})}(l.artifactId)},className:a.moreButton,style:null==g?void 0:g.moreButton},{children:b[l.artifactId]?"less":"..."}))]}))]}))}),l.artifactId);var s,c})}):t(c,{customStyles:null==g?void 0:g.skeleton})})]}))}))};export{d as default};
2
2
  //# sourceMappingURL=StreamingScreenSidebar.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e,__spreadArray as t}from"tslib";import{jsx as o,jsxs as r}from"react/jsx-runtime";import{useState as n,useRef as a,useCallback as i,useMemo as l,useEffect as s}from"react";import{useRequirementAI as d}from"../RequirementAIWrapper/RequirementAIWrapper.js";import{createUserStoriesForApproval as c,cloneUserStories as v}from"../../utils/userstory-approval-transform.utils.js";import{getFirstNonApprovedSegmentId as p,getFirstUnapprovedStoryId as u,approveAllSegments as f}from"../../utils/userstory-approval.utils.js";import{useApprovalStatus as m}from"../../hooks/useApprovalStatus.js";import{ContentSegment as S}from"./components/ContentSegment/ContentSegment.js";import{ApprovalBadge as h}from"./components/ApprovalBadge/ApprovalBadge.js";import g from"./UserStoryApprovalScreen.module.css.js";import{CheckIcon as y}from"../../icons/CheckIcon.js";import{BookmarkIcon as A}from"../../icons/BookmarkIcon.js";import{ApprovalSidebar as b}from"./components/ApprovalSidebar/ApprovalSidebar.js";import{SidebarOpenIcon as I,SidebarCloseIcon as C}from"lucide-react";import{UserStoryApprovalScreenContext as w,useUserStoryApprovalScreen as T}from"./UserStoryApprovalContext.js";var E={showApproveAllButton:!0,allowEditing:!0,allowDeletion:!0,showSidebar:!1,containerHeight:"calc(100vh - 100px)",useFullWidth:!1},N={approveAll:"Approve All",approved:"Approved",approve:"Approve",correctMe:"Correct Me",delete:"Delete",save:"Save",cancel:"Cancel",savingArtifact:"Saving Artifact...",artifactSavedTitle:"Artifact Saved Successfully",artifactSavedMessage:"Your changes have been saved.",saveFailedTitle:"Failed to Save the Artifact",saveFailedMessage:"An error occurred while saving your changes.",emptyContentWarning:"Saving empty content is not allowed",unsavedChangesWarning:"Please save the updated changes to proceed with Approve All"},U=Object.assign(function(r){var f,S=r.artifactTitleIds,h=r.config,y=void 0===h?{}:h,A=r.callbacks,b=void 0===A?{}:A,I=r.labels,C=void 0===I?{}:I,T=r.isDisabled,U=void 0!==T&&T,x=r.children,F=r.classNames,k=d(),D=k.userStory,j=k.customStyles,B=e(e({},E),y),R=e(e({},N),C),P=n([]),W=P[0],M=P[1],V=n(""),_=V[0],q=V[1],O=n(""),z=O[0],L=O[1],H=n(!1),G=H[0],Y=H[1],J=n(!0),K=J[0],Q=J[1],X=a(void 0),Z=i(function(e,t,o,r){b.onShowNotification?b.onShowNotification(e,t,o,r):console.log("[".concat(e.toUpperCase(),"] ").concat(t,": ").concat(o))},[b]),$=i(function(e){b.onScrollToElement?b.onScrollToElement(e):(e.style.scrollMarginTop="20px",e.scrollIntoView({behavior:"smooth",block:"start"}))},[b]),ee=l(function(){var e=W.findIndex(function(e){return e.artifactId===_});return e>=0?e:0},[W,_]),te=W[ee];s(function(){X.current=te},[te]),s(function(){var e;if(null==D?void 0:D.length){null===(e=b.onInitialize)||void 0===e||e.call(b),1===D.length&&Q(!1);var t=c(v(D));M(t),t.length>0&&!_&&q(t[0].artifactId)}},[D]),s(function(){if(te){var e=p(te,"");L(e)}},[null==te?void 0:te.artifactId]);var oe=i(function(e,o){M(function(r){var n=t([],r,!0);if("APPROVED"===o.approval_status&&"APPROVED"!==r[e].approval_status){var a=u(r,o.artifactId);a&&q(a)}return n[e]=o,n})},[]),re=i(function(e){var t=X.current;if(t){var o=p(t,e);"NA"!==o&&(L(""),setTimeout(function(){L(o)},0))}},[]);m({userStoryForApproval:W,selectedUserStoryForApproval:te,userStoryIndex:ee,callbacks:b,labels:R,onSaveUserStory:oe});var ne=e({height:B.containerHeight},B.useFullWidth?{width:"100%",marginLeft:0,marginRight:0}:{width:"calc(100% + 40px)",marginLeft:"-20px",marginRight:"-20px"}),ae={userStoryForApproval:W,setUserStoryForApproval:M,selectedStoryArtifactId:_,setSelectedStoryArtifactId:q,selectedUserStoryIndex:ee,selectedUserStoryForApproval:te,currentContentId:z,setCurrentContentId:L,isEditingSegment:G,setIsEditingSegment:Y,isSidebarExpanded:K,setIsSidebarExpanded:Q,artifactTitleIds:S,config:B,labels:R,callbacks:b,isDisabled:U,handleSaveUserStory:oe,handleUpdateContentId:re,showNotification:Z,scrollToElement:$};return o(w.Provider,e({value:ae},{children:o("div",e({className:"".concat(g.container," ").concat((null==F?void 0:F.container)||""),style:e(e({},ne),null===(f=null==j?void 0:j.approvalScreen)||void 0===f?void 0:f.wrapperContainer)},{children:x}))}))},{Sidebar:function(e){var t=e.Component,r=e.config,n=e.className,a=T(),i=a.isSidebarExpanded,l=a.selectedStoryArtifactId,s=a.setSelectedStoryArtifactId,d=a.userStoryForApproval,c=a.isEditingSegment,v=a.artifactTitleIds;return t?o(t,{isSidebarExpanded:i,selectedStoryArtifactId:l,setSelectedStoryArtifactId:s,userStoryForApproval:d,isEditingAnUserStorySegment:c,artifactTitleIds:v}):o(b,{config:r,className:n})},SidebarToggle:function(t){var r=t.OpenIcon,n=t.CloseIcon,a=t.className,i=void 0===a?"":a,l=T(),s=l.isSidebarExpanded,d=l.setIsSidebarExpanded,c=r||I,v=n||C;return o("div",e({className:"".concat(g.sidebarToggleWrapper," ").concat(i)},{children:o("button",e({onClick:function(){return d(function(e){return!e})},className:g.sidebarToggleBtn,"aria-label":s?"Collapse sidebar":"Expand sidebar",type:"button"},{children:o(s?v:c,{})}))}))},Content:function(t){var n,a,l,s,c,v,p,u,m,S,b,I,C,w,E,N,U,x,F,k,D,j=t.children,B=t.ButtonComponent,R=t.hideApproveAll,P=void 0!==R&&R,W=t.pageTitle,M=void 0===W?"Review Generated Requirements":W,V=t.pageDescription,_=void 0===V?"This page displays automatically generated requirements for your project. Use this screen to review, refine, correct, or approve all generated requirements.":V,q=T(),O=q.selectedUserStoryForApproval,z=q.selectedUserStoryIndex,L=q.artifactTitleIds,H=q.labels,G=q.config,Y=q.isDisabled,J=q.isEditingSegment,K=q.handleSaveUserStory,Q=q.setCurrentContentId,X=q.showNotification,Z=d().customStyles,$=i(function(){if(console.log("testing::handleApproveAll called",O),O)if(J)X("warn","Warning!",H.unsavedChangesWarning,3e3);else{var e=f(O);K(z,e),Q("")}},[O,z,J,H,K,Q,X]);if(!O)return null;var ee=L[z]||"",te="APPROVED"===O.approval_status;return r("div",e({className:g.content,style:e({},null===(a=null===(n=null==Z?void 0:Z.approvalScreen)||void 0===n?void 0:n.content)||void 0===a?void 0:a.content),"data-lsc-ui-page-title":M,"data-lsc-ui-page-description":_},{children:[r("div",e({className:g.header,style:e({},null===(c=null===(s=null===(l=null==Z?void 0:Z.approvalScreen)||void 0===l?void 0:l.body)||void 0===s?void 0:s.contentSegment)||void 0===c?void 0:c.header)},{children:[r("div",e({className:g.headerLeft,style:e({},null===(p=null===(v=null==Z?void 0:Z.approvalScreen)||void 0===v?void 0:v.content)||void 0===p?void 0:p.headerLeft)},{children:[r("div",e({className:g.headerMeta,style:e({},null===(S=null===(m=null===(u=null==Z?void 0:Z.approvalScreen)||void 0===u?void 0:u.body)||void 0===m?void 0:m.contentSegment)||void 0===S?void 0:S.headerMeta)},{children:[o(A,{size:16,color:(null===(C=null===(I=null===(b=null==Z?void 0:Z.approvalScreen)||void 0===b?void 0:b.body)||void 0===I?void 0:I.contentSegment)||void 0===C?void 0:C.bookMarkColor)||"#8C8C8C"}),o("h2",e({className:g.headerArtifactId,style:e({},null===(N=null===(E=null===(w=null==Z?void 0:Z.approvalScreen)||void 0===w?void 0:w.body)||void 0===E?void 0:E.contentSegment)||void 0===N?void 0:N.headerArtifactId)},{children:ee}))]})),o("p",e({className:g.headerTitle,style:e({},null===(F=null===(x=null===(U=null==Z?void 0:Z.approvalScreen)||void 0===U?void 0:U.body)||void 0===x?void 0:x.contentSegment)||void 0===F?void 0:F.headerTitle)},{children:null==O?void 0:O.title}))]})),!P&&G.showApproveAllButton&&o("div",e({className:g.headerRight},{children:te?o(h,{status:"APPROVED",label:H.approved}):B?o(B,e({type:"fill",onClick:$,isDisable:Y,className:g.approveAllButton,overrideStyles:!0,lscUIAgent:{id:"approve-all",lscUIType:"button",lscUILabel:H.approveAll,lscUIDescription:"Clicks this button to approve all generated requirements on the page in a single action.",lscUIWhenToApply:"Apply when the user wants to accept all requirements without reviewing them individually, or when they say phrases like 'approve everything', 'finalize all', 'accept all', or 'this looks good, approve all'."}},{children:r("div",e({className:g.approveAllContent},{children:[o(y,{size:16,color:"white"}),o("span",{children:H.approveAll})]}))})):r("button",e({onClick:$,disabled:Y,className:g.approveAllButtonDefault,style:e({},null===(D=null===(k=null==Z?void 0:Z.approvalScreen)||void 0===k?void 0:k.content)||void 0===D?void 0:D.approveAllButtonDefault)},{children:[o(y,{size:16,color:"white"}),o("span",{children:H.approveAll})]}))}))]})),j]}))},Body:function(t){var n,a,l,s=t.children,c=t.EditorComponent,v=t.ViewerComponent,p=T(),u=p.selectedUserStoryForApproval,f=p.selectedUserStoryIndex,m=p.artifactTitleIds,h=p.handleSaveUserStory,y=d().customStyles,A=i(function(e){h(f,e)},[f,h]),b=i(function(t,o){var r;if(u){var n=e(e({},u),{sub_features:null===(r=u.sub_features)||void 0===r?void 0:r.map(function(e,r){return r===t?o:e})});h(f,n)}},[u,f,h]),I=i(function(t){var o;if(u){var r=e(e({},u),{sub_features:null===(o=u.sub_features)||void 0===o?void 0:o.filter(function(e,o){return o!==t})});h(f,r)}},[u,f,h]);if(!u)return null;var C=m[f]||"";return r("div",e({className:g.body,style:e({},null===(a=null===(n=null==y?void 0:y.approvalScreen)||void 0===n?void 0:n.body)||void 0===a?void 0:a.container)},{children:[o(S,{userStoryForApproval:u,artifactTitleId:C,onSaveMainStoryContent:A,EditorComponent:c,ViewerComponent:v}),null===(l=u.sub_features)||void 0===l?void 0:l.map(function(e,t){return o(S,{userStoryForApproval:e,artifactTitleId:"".concat(C," - ").concat(String.fromCharCode(65+t)),isSubFeature:!0,subFeatureIndex:t,onSaveSubFeature:b,onDeleteSubFeature:I,EditorComponent:c,ViewerComponent:v},e.artifactId)}),s]}))}});export{U as default};
1
+ import{__assign as e,__spreadArray as t}from"tslib";import{jsx as o,jsxs as r}from"react/jsx-runtime";import{useState as n,useRef as i,useCallback as a,useMemo as l,useEffect as s}from"react";import{useRequirementAI as d}from"../RequirementAIWrapper/RequirementAIWrapper.js";import{createUserStoriesForApproval as c,cloneUserStories as v}from"../../utils/userstory-approval-transform.utils.js";import{getFirstNonApprovedSegmentId as p,getFirstUnapprovedStoryId as u,approveAllSegments as f}from"../../utils/userstory-approval.utils.js";import{useApprovalStatus as m}from"../../hooks/useApprovalStatus.js";import{ContentSegment as S}from"./components/ContentSegment/ContentSegment.js";import{ApprovalBadge as h}from"./components/ApprovalBadge/ApprovalBadge.js";import g from"./UserStoryApprovalScreen.module.css.js";import{CheckIcon as y}from"../../icons/CheckIcon.js";import{BookmarkIcon as A}from"../../icons/BookmarkIcon.js";import{ApprovalSidebar as b}from"./components/ApprovalSidebar/ApprovalSidebar.js";import{SidebarOpenIcon as I,SidebarCloseIcon as C}from"lucide-react";import{UserStoryApprovalScreenContext as w,useUserStoryApprovalScreen as T}from"./UserStoryApprovalContext.js";var E={showApproveAllButton:!0,allowEditing:!0,allowDeletion:!0,showSidebar:!1,containerHeight:"calc(100vh - 100px)",useFullWidth:!1},N={approveAll:"Approve All",approved:"Approved",approve:"Approve",correctMe:"Correct Me",delete:"Delete",save:"Save",cancel:"Cancel",savingArtifact:"Saving Artifact...",artifactSavedTitle:"Artifact Saved Successfully",artifactSavedMessage:"Your changes have been saved.",saveFailedTitle:"Failed to Save the Artifact",saveFailedMessage:"An error occurred while saving your changes.",emptyContentWarning:"Saving empty content is not allowed",unsavedChangesWarning:"Please save the updated changes to proceed with Approve All"},U=Object.assign(function(r){var f,S=r.artifactTitleIds,h=r.config,y=void 0===h?{}:h,A=r.callbacks,b=void 0===A?{}:A,I=r.labels,C=void 0===I?{}:I,T=r.isDisabled,U=void 0!==T&&T,x=r.children,F=r.classNames,k=d(),D=k.userStory,j=k.customStyles,B=e(e({},E),y),R=e(e({},N),C),P=n([]),W=P[0],M=P[1],V=n(""),_=V[0],q=V[1],O=n(""),z=O[0],L=O[1],H=n(!1),G=H[0],Y=H[1],J=n(!0),K=J[0],Q=J[1],X=i(void 0),Z=a(function(e,t,o,r){b.onShowNotification?b.onShowNotification(e,t,o,r):console.log("[".concat(e.toUpperCase(),"] ").concat(t,": ").concat(o))},[b]),$=a(function(e){b.onScrollToElement?b.onScrollToElement(e):(e.style.scrollMarginTop="20px",e.scrollIntoView({behavior:"smooth",block:"start"}))},[b]),ee=l(function(){var e=W.findIndex(function(e){return e.artifactId===_});return e>=0?e:0},[W,_]),te=W[ee];s(function(){X.current=te},[te]),s(function(){var e;if(null==D?void 0:D.length){null===(e=b.onInitialize)||void 0===e||e.call(b),1===D.length&&Q(!1);var t=c(v(D));M(t),t.length>0&&!_&&q(t[0].artifactId)}},[D]),s(function(){if(te){var e=p(te,"");L(e)}},[null==te?void 0:te.artifactId]);var oe=a(function(e,o){M(function(r){var n=t([],r,!0);if("APPROVED"===o.approval_status&&"APPROVED"!==r[e].approval_status){var i=u(r,o.artifactId);i&&q(i)}return n[e]=o,n})},[]),re=a(function(e){var t=X.current;if(t){var o=p(t,e);"NA"!==o&&(L(""),setTimeout(function(){L(o)},0))}},[]);m({userStoryForApproval:W,selectedUserStoryForApproval:te,userStoryIndex:ee,callbacks:b,labels:R,onSaveUserStory:oe});var ne=e({height:B.containerHeight},B.useFullWidth?{width:"100%",marginLeft:0,marginRight:0}:{width:"calc(100% + 40px)",marginLeft:"-20px",marginRight:"-20px"}),ie={userStoryForApproval:W,setUserStoryForApproval:M,selectedStoryArtifactId:_,setSelectedStoryArtifactId:q,selectedUserStoryIndex:ee,selectedUserStoryForApproval:te,currentContentId:z,setCurrentContentId:L,isEditingSegment:G,setIsEditingSegment:Y,isSidebarExpanded:K,setIsSidebarExpanded:Q,artifactTitleIds:S,config:B,labels:R,callbacks:b,isDisabled:U,handleSaveUserStory:oe,handleUpdateContentId:re,showNotification:Z,scrollToElement:$};return o(w.Provider,e({value:ie},{children:o("div",e({className:"".concat(g.container," ").concat((null==F?void 0:F.container)||""),style:e(e({},ne),null===(f=null==j?void 0:j.approvalScreen)||void 0===f?void 0:f.wrapperContainer)},{children:x}))}))},{Sidebar:function(e){var t=e.Component,r=e.config,n=e.className,i=T(),a=i.isSidebarExpanded,l=i.selectedStoryArtifactId,s=i.setSelectedStoryArtifactId,d=i.userStoryForApproval,c=i.isEditingSegment,v=i.artifactTitleIds;return t?o(t,{isSidebarExpanded:a,selectedStoryArtifactId:l,setSelectedStoryArtifactId:s,userStoryForApproval:d,isEditingAnUserStorySegment:c,artifactTitleIds:v}):o(b,{config:r,className:n})},SidebarToggle:function(t){var r=t.OpenIcon,n=t.CloseIcon,i=t.className,a=void 0===i?"":i,l=T(),s=l.isSidebarExpanded,d=l.setIsSidebarExpanded,c=r||I,v=n||C;return o("div",e({className:"".concat(g.sidebarToggleWrapper," ").concat(a)},{children:o("button",e({onClick:function(){return d(function(e){return!e})},className:g.sidebarToggleBtn,"aria-label":s?"Collapse sidebar":"Expand sidebar",type:"button"},{children:o(s?v:c,{})}))}))},Content:function(t){var n,i,l,s,c,v,p,u,m,S,b,I,C,w,E,N,U,x,F,k,D,j=t.children,B=t.ButtonComponent,R=t.hideApproveAll,P=void 0!==R&&R,W=t.pageTitle,M=void 0===W?"Review Generated Requirements":W,V=t.pageDescription,_=void 0===V?"This page displays automatically generated requirements for your project. Use this screen to review, refine, correct, or approve all generated requirements.":V,q=T(),O=q.selectedUserStoryForApproval,z=q.selectedUserStoryIndex,L=q.artifactTitleIds,H=q.labels,G=q.config,Y=q.isDisabled,J=q.isEditingSegment,K=q.handleSaveUserStory,Q=q.setCurrentContentId,X=q.showNotification,Z=d().customStyles,$=a(function(){if(O)if(J)X("warn","Warning!",H.unsavedChangesWarning,3e3);else{var e=f(O);K(z,e),Q("")}},[O,z,J,H,K,Q,X]);if(!O)return null;var ee=L[z]||"",te="APPROVED"===O.approval_status;return r("div",e({className:g.content,style:e({},null===(i=null===(n=null==Z?void 0:Z.approvalScreen)||void 0===n?void 0:n.content)||void 0===i?void 0:i.content),"data-lsc-ui-page-title":M,"data-lsc-ui-page-description":_},{children:[r("div",e({className:g.header,style:e({},null===(c=null===(s=null===(l=null==Z?void 0:Z.approvalScreen)||void 0===l?void 0:l.body)||void 0===s?void 0:s.contentSegment)||void 0===c?void 0:c.header)},{children:[r("div",e({className:g.headerLeft,style:e({},null===(p=null===(v=null==Z?void 0:Z.approvalScreen)||void 0===v?void 0:v.content)||void 0===p?void 0:p.headerLeft)},{children:[r("div",e({className:g.headerMeta,style:e({},null===(S=null===(m=null===(u=null==Z?void 0:Z.approvalScreen)||void 0===u?void 0:u.body)||void 0===m?void 0:m.contentSegment)||void 0===S?void 0:S.headerMeta)},{children:[o(A,{size:16,color:(null===(C=null===(I=null===(b=null==Z?void 0:Z.approvalScreen)||void 0===b?void 0:b.body)||void 0===I?void 0:I.contentSegment)||void 0===C?void 0:C.bookMarkColor)||"#8C8C8C"}),o("h2",e({className:g.headerArtifactId,style:e({},null===(N=null===(E=null===(w=null==Z?void 0:Z.approvalScreen)||void 0===w?void 0:w.body)||void 0===E?void 0:E.contentSegment)||void 0===N?void 0:N.headerArtifactId)},{children:ee}))]})),o("p",e({className:g.headerTitle,style:e({},null===(F=null===(x=null===(U=null==Z?void 0:Z.approvalScreen)||void 0===U?void 0:U.body)||void 0===x?void 0:x.contentSegment)||void 0===F?void 0:F.headerTitle)},{children:null==O?void 0:O.title}))]})),!P&&G.showApproveAllButton&&o("div",e({className:g.headerRight},{children:te?o(h,{status:"APPROVED",label:H.approved}):B?o(B,e({type:"fill",onClick:$,isDisable:Y,className:g.approveAllButton,overrideStyles:!0,lscUIAgent:{id:"approve-all",lscUIType:"button",lscUILabel:H.approveAll,lscUIDescription:"Clicks this button to approve all generated requirements on the page in a single action.",lscUIWhenToApply:"Apply when the user wants to accept all requirements without reviewing them individually, or when they say phrases like 'approve everything', 'finalize all', 'accept all', or 'this looks good, approve all'."}},{children:r("div",e({className:g.approveAllContent},{children:[o(y,{size:16,color:"white"}),o("span",{children:H.approveAll})]}))})):r("button",e({onClick:$,disabled:Y,className:g.approveAllButtonDefault,style:e({},null===(D=null===(k=null==Z?void 0:Z.approvalScreen)||void 0===k?void 0:k.content)||void 0===D?void 0:D.approveAllButtonDefault)},{children:[o(y,{size:16,color:"white"}),o("span",{children:H.approveAll})]}))}))]})),j]}))},Body:function(t){var n,i,l,s=t.children,c=t.EditorComponent,v=t.ViewerComponent,p=T(),u=p.selectedUserStoryForApproval,f=p.selectedUserStoryIndex,m=p.artifactTitleIds,h=p.handleSaveUserStory,y=d().customStyles,A=a(function(e){h(f,e)},[f,h]),b=a(function(t,o){var r;if(u){var n=e(e({},u),{sub_features:null===(r=u.sub_features)||void 0===r?void 0:r.map(function(e,r){return r===t?o:e})});h(f,n)}},[u,f,h]),I=a(function(t){var o;if(u){var r=e(e({},u),{sub_features:null===(o=u.sub_features)||void 0===o?void 0:o.filter(function(e,o){return o!==t})});h(f,r)}},[u,f,h]);if(!u)return null;var C=m[f]||"";return r("div",e({className:g.body,style:e({},null===(i=null===(n=null==y?void 0:y.approvalScreen)||void 0===n?void 0:n.body)||void 0===i?void 0:i.container)},{children:[o(S,{userStoryForApproval:u,artifactTitleId:C,onSaveMainStoryContent:A,EditorComponent:c,ViewerComponent:v}),null===(l=u.sub_features)||void 0===l?void 0:l.map(function(e,t){return o(S,{userStoryForApproval:e,artifactTitleId:"".concat(C," - ").concat(String.fromCharCode(65+t)),isSubFeature:!0,subFeatureIndex:t,onSaveSubFeature:b,onDeleteSubFeature:I,EditorComponent:c,ViewerComponent:v},e.artifactId)}),s]}))}});export{U as default};
2
2
  //# sourceMappingURL=UserStoryApprovalScreen.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as o}from"tslib";import{jsx as i,jsxs as e}from"react/jsx-runtime";import{useState as l,useCallback as d}from"react";import{BookmarkIcon as n}from"../../../../icons/BookmarkIcon.js";import{ApprovalStatusBadge as r}from"../ApprovalStatusBadge/ApprovalStatusBadge.js";import{replaceLearnedTagsWithInfo as a}from"../../../../utils/learned-tag.utils.js";import t from"./ApprovalSidebarItem.module.css.js";import{useRequirementAI as v}from"../../../RequirementAIWrapper/RequirementAIWrapper.js";import s from"../../../../icons/RelevanceScoreIcon.js";var c=function(c){var u,p,m,b,S,I,f,h,g,C,N,y,j,B,k,R,w,A,x,L,q,z,G,T,W,E,F,M,P,D,H,J,K,O,Q,U=c.artifactTitleId,V=c.artifactId,X=c.title,Y=c.description,Z=c.approvalStatus,$=c.index,_=c.isLast,oo=c.isSelected,io=c.isEditingSegment,eo=c.onSelect,lo=c.onNavigationBlocked,no=c.sidebarConfig,ro=c.className,ao=void 0===ro?"":ro,to=l(!1),vo=to[0],so=to[1],co=v(),uo=co.customStyles,po=(0,co.getAvgScoreForStory)(V),mo=no.descriptionCharLimit,bo=no.TooltipComponent,So=no.InfoIconComponent,Io=d(function(){io?null==lo||lo():eo(V)},[V,io,eo,lo]),fo=d(function(o){o.stopPropagation(),so(function(o){return!o})},[]),ho=vo?Y:(null!==(u=null==Y?void 0:Y.length)&&void 0!==u?u:0)>mo?Y.slice(0,mo)+"...":Y,go=Y.length>mo,Co=[t.item,_?t.itemLast:"",oo?t.itemSelected:"",ao].filter(Boolean).join(" ");return i("div",o({className:Co,style:o({},null===(b=null===(m=null===(p=null==uo?void 0:uo.approvalScreen)||void 0===p?void 0:p.sidebar)||void 0===m?void 0:m.sidebarItem)||void 0===b?void 0:b.container),onClick:Io,role:"option","aria-selected":oo},{children:e("div",o({className:t.itemContent,style:o({},null===(f=null===(I=null===(S=null==uo?void 0:uo.approvalScreen)||void 0===S?void 0:S.sidebar)||void 0===I?void 0:I.sidebarItem)||void 0===f?void 0:f.itemContent)},{children:[e("div",o({className:t.topRow,style:o({},null===(C=null===(g=null===(h=null==uo?void 0:uo.approvalScreen)||void 0===h?void 0:h.sidebar)||void 0===g?void 0:g.sidebarItem)||void 0===C?void 0:C.topRow)},{children:[e("span",o({className:t.artifactIdGroup,style:o({},null===(j=null===(y=null===(N=null==uo?void 0:uo.approvalScreen)||void 0===N?void 0:N.sidebar)||void 0===y?void 0:y.sidebarItem)||void 0===j?void 0:j.artifactIdGroup)},{children:[i(n,{size:20,color:(null===(R=null===(k=null===(B=null==uo?void 0:uo.approvalScreen)||void 0===B?void 0:B.sidebar)||void 0===k?void 0:k.sidebarItem)||void 0===R?void 0:R.bookMarkColor)||"#8C8C8C"}),i("span",{children:U})]})),e("div",o({className:t.scoreBadgeContainer},{children:[po>0&&e("span",o({className:t.confidenceScore,style:null===(x=null===(A=null===(w=null==uo?void 0:uo.approvalScreen)||void 0===w?void 0:w.sidebar)||void 0===A?void 0:A.sidebarItem)||void 0===x?void 0:x.confidenceScore},{children:[i(s,{size:14,color:(null===(G=null===(z=null===(q=null===(L=null==uo?void 0:uo.approvalScreen)||void 0===L?void 0:L.sidebar)||void 0===q?void 0:q.sidebarItem)||void 0===z?void 0:z.confidenceScoreIcon)||void 0===G?void 0:G.color)||"#166534"}),po,"%"]})),i(r,{status:Z})]}))]})),e("span",o({className:t.titleRow,style:o({},null===(E=null===(W=null===(T=null==uo?void 0:uo.approvalScreen)||void 0===T?void 0:T.sidebar)||void 0===W?void 0:W.sidebarItem)||void 0===E?void 0:E.titleRow)},{children:[i("span",o({className:t.titleIndex,style:o({},null===(P=null===(M=null===(F=null==uo?void 0:uo.approvalScreen)||void 0===F?void 0:F.sidebar)||void 0===M?void 0:M.sidebarItem)||void 0===P?void 0:P.titleIndex)},{children:"".concat($+1,".")})),i("span",{children:a(X,bo,So)})]})),Y&&e("span",o({className:t.description,style:o({},null===(J=null===(H=null===(D=null==uo?void 0:uo.approvalScreen)||void 0===D?void 0:D.sidebar)||void 0===H?void 0:H.sidebarItem)||void 0===J?void 0:J.description)},{children:[ho,go&&i("button",o({onClick:fo,className:t.moreButton,style:o({},null===(Q=null===(O=null===(K=null==uo?void 0:uo.approvalScreen)||void 0===K?void 0:K.sidebar)||void 0===O?void 0:O.sidebarItem)||void 0===Q?void 0:Q.moreButton),"aria-label":vo?"Show less":"Show more"},{children:vo?"less":"more"}))]}))]}))}))};export{c as ApprovalSidebarItem,c as default};
1
+ import{__assign as o}from"tslib";import{jsx as i,jsxs as e}from"react/jsx-runtime";import{useState as l,useCallback as d}from"react";import{BookmarkIcon as n}from"../../../../icons/BookmarkIcon.js";import{ApprovalStatusBadge as r}from"../ApprovalStatusBadge/ApprovalStatusBadge.js";import{replaceLearnedTagsWithInfo as a}from"../../../../utils/learned-tag.utils.js";import t from"./ApprovalSidebarItem.module.css.js";import{useRequirementAI as v}from"../../../RequirementAIWrapper/RequirementAIWrapper.js";import s from"../../../../icons/RelevanceScoreIcon.js";var c=function(c){var u,p,m,b,S,I,f,h,g,C,N,y,j,B,k,R,w,A,x,L,q,z,G,T,W,E,F,M,P,D,H,J,K,O,Q,U=c.artifactTitleId,V=c.artifactId,X=c.title,Y=c.description,Z=c.approvalStatus,$=c.index,_=c.isLast,oo=c.isSelected,io=c.isEditingSegment,eo=c.onSelect,lo=c.onNavigationBlocked,no=c.sidebarConfig,ro=c.className,ao=void 0===ro?"":ro,to=l(!1),vo=to[0],so=to[1],co=v(),uo=co.customStyles,po=(0,co.getAvgScoreForStory)(V),mo=no.descriptionCharLimit,bo=no.TooltipComponent,So=no.InfoIconComponent,Io=d(function(){io?null==lo||lo():eo(V)},[V,io,eo,lo]),fo=d(function(o){o.stopPropagation(),so(function(o){return!o})},[]),ho=vo?Y:(null!==(u=null==Y?void 0:Y.length)&&void 0!==u?u:0)>mo?Y.slice(0,mo):Y,go=Y.length>mo,Co=[t.item,_?t.itemLast:"",oo?t.itemSelected:"",ao].filter(Boolean).join(" ");return i("div",o({className:Co,style:o({},null===(b=null===(m=null===(p=null==uo?void 0:uo.approvalScreen)||void 0===p?void 0:p.sidebar)||void 0===m?void 0:m.sidebarItem)||void 0===b?void 0:b.container),onClick:Io,role:"option","aria-selected":oo},{children:e("div",o({className:t.itemContent,style:o({},null===(f=null===(I=null===(S=null==uo?void 0:uo.approvalScreen)||void 0===S?void 0:S.sidebar)||void 0===I?void 0:I.sidebarItem)||void 0===f?void 0:f.itemContent)},{children:[e("div",o({className:t.topRow,style:o({},null===(C=null===(g=null===(h=null==uo?void 0:uo.approvalScreen)||void 0===h?void 0:h.sidebar)||void 0===g?void 0:g.sidebarItem)||void 0===C?void 0:C.topRow)},{children:[e("span",o({className:t.artifactIdGroup,style:o({},null===(j=null===(y=null===(N=null==uo?void 0:uo.approvalScreen)||void 0===N?void 0:N.sidebar)||void 0===y?void 0:y.sidebarItem)||void 0===j?void 0:j.artifactIdGroup)},{children:[i(n,{size:20,color:(null===(R=null===(k=null===(B=null==uo?void 0:uo.approvalScreen)||void 0===B?void 0:B.sidebar)||void 0===k?void 0:k.sidebarItem)||void 0===R?void 0:R.bookMarkColor)||"#8C8C8C"}),i("span",{children:U})]})),e("div",o({className:t.scoreBadgeContainer},{children:[po>0&&e("span",o({className:t.confidenceScore,style:null===(x=null===(A=null===(w=null==uo?void 0:uo.approvalScreen)||void 0===w?void 0:w.sidebar)||void 0===A?void 0:A.sidebarItem)||void 0===x?void 0:x.confidenceScore},{children:[i(s,{size:14,color:(null===(G=null===(z=null===(q=null===(L=null==uo?void 0:uo.approvalScreen)||void 0===L?void 0:L.sidebar)||void 0===q?void 0:q.sidebarItem)||void 0===z?void 0:z.confidenceScoreIcon)||void 0===G?void 0:G.color)||"#166534"}),po,"%"]})),i(r,{status:Z})]}))]})),e("span",o({className:t.titleRow,style:o({},null===(E=null===(W=null===(T=null==uo?void 0:uo.approvalScreen)||void 0===T?void 0:T.sidebar)||void 0===W?void 0:W.sidebarItem)||void 0===E?void 0:E.titleRow)},{children:[i("span",o({className:t.titleIndex,style:o({},null===(P=null===(M=null===(F=null==uo?void 0:uo.approvalScreen)||void 0===F?void 0:F.sidebar)||void 0===M?void 0:M.sidebarItem)||void 0===P?void 0:P.titleIndex)},{children:"".concat($+1,".")})),i("span",{children:a(X,bo,So)})]})),Y&&e("span",o({className:t.description,style:o({},null===(J=null===(H=null===(D=null==uo?void 0:uo.approvalScreen)||void 0===D?void 0:D.sidebar)||void 0===H?void 0:H.sidebarItem)||void 0===J?void 0:J.description)},{children:[ho,go&&i("button",o({onClick:fo,className:t.moreButton,style:o({},null===(Q=null===(O=null===(K=null==uo?void 0:uo.approvalScreen)||void 0===K?void 0:K.sidebar)||void 0===O?void 0:O.sidebarItem)||void 0===Q?void 0:Q.moreButton),"aria-label":vo?"Show less":"Show more"},{children:vo?"less":"..."}))]}))]}))}))};export{c as ApprovalSidebarItem,c as default};
2
2
  //# sourceMappingURL=ApprovalSidebarItem.js.map
@@ -1,2 +1,2 @@
1
- import{__rest as e,__assign as n}from"tslib";import{jsx as i,jsxs as o}from"react/jsx-runtime";import{createContext as r,useRef as t,useState as l,useCallback as a,useMemo as d,useEffect as c,useContext as s}from"react";import u from"react-markdown";import v from"rehype-raw";import h from"./UserStoryWithCitation.module.css.js";import{useMarkdownSearch as m}from"../../shared/useMarkdownSearch.js";import{Info as p}from"lucide-react";import{Tooltip as f}from"@mui/material";import g from"../../shared/UpdatedAnimationContent.js";import y from"../../shared/GeneratedCodeCitation.js";import C from"../../shared/CitationLoadingIndicator.js";import{useRequirementAI as S}from"../RequirementAIWrapper/RequirementAIWrapper.js";import w from"../ai-reasoning/AiReasoningCitation.js";import I from"../../icons/RelevanceScoreIcon.js";var R=r(!1),b=r({expandedInfo:null,setExpanded:function(){},reasonToRow:{current:new Map}}),N=r({rowId:""}),x=function(e){var r,l,a=e.children,d=e.node,c=t(Math.random().toString(36).slice(2)).current,u=s(b).expandedInfo,v=(null==u?void 0:u.rowId)===c,m=Array.isArray(null==d?void 0:d.children)?d.children.filter(function(e){return"element"===e.type}).length:1,p=null!==(l=null===(r=null==d?void 0:d.properties)||void 0===r?void 0:r.style)&&void 0!==l?l:void 0;return o(N.Provider,n({value:{rowId:c}},{children:[i("tr",n({style:p?{cssText:p}:void 0},{children:a})),v&&(null==u?void 0:u.aiReason)&&i("tr",n({style:{width:"100%"}},{children:i("td",n({colSpan:m||1,className:h.tableExpandedCell},{children:i("div",n({className:h.tableExpandedCellInner},{children:i("div",{className:h.tableExpandedCellContent})}))}))}))]}))},A=function(r){var N=r.message,A=r.scenario,L=r.showUserStoryDiff,T=void 0!==L&&L,j=r.aiReasoningsForBlock,U=r.isCitationLoadingDisplay,M=void 0!==U&&U,P=r.className;r.highConfidenceIcon,r.lowConfidenceIcon;var E=r.customStyles,k=r.customIcons,F=r.aiReasoningDiffView,$=r.userStoryCitations,q=r.artifactId,D=t(null),W=S(),H=W.userStory,_=W.getAvgScoreForStory,z=W.setUserStory,G=W.aiReasoning,Q=W.setAiReasoning,B=W.customIcons,O=W.searchQueryList,V=W.searchQueryReasoningIdList,J=null!=k?k:null==B?void 0:B.userStoryIcons,K=null==E?void 0:E.searchHighlight,X=m(D,K),Y=X.search,Z=X.clear,ee=l("1"),ne=ee[0],ie=ee[1],oe=l(null),re=oe[0],te=oe[1],le=t(new Map),ae=a(function(e,n){te(e&&n?{rowId:e,aiReason:n}:null)},[]),de=q?_(q):0;console.log("testing::avgScore",q,de);var ce=l([]),se=ce[0],ue=ce[1],ve=function(e){var n=new RegExp("<(/?(".concat(["updated","deleted","changed"].join("|"),"))>"),"g"),i=e.replace(n,"\n\n<$1>\n\n");return i=(i=i.replace(/<deleted>([\s\S]*?)<\/deleted>/gi,function(e,n){var i=n.replace(/ai_reasoning\$(\d+)/g,function(e,n){return"ai_reasoning$".concat(n,"-legacy")});return"<deleted>".concat(i,"</deleted>")})).replace(/<generatedCode([^>]*)>([\s\S]*?)<\/generatedCode>/gi,function(e,n,i){var o=btoa(encodeURIComponent(i.trim()));return"\n\n<generatedCode".concat(n,' data-raw="').concat(o,'"></generatedCode>\n\n')})};d(function(){return N?ve(N):N},[N]),c(function(){ue(j||G)},[j,G]);var he=d(function(){return{h1:function(o){o.node;var r=e(o,["node"]);return i("h1",n({className:h.heading1,style:null==E?void 0:E.heading1},{children:r.children}))},h2:function(o){o.node;var r=e(o,["node"]);return i("h2",n({className:h.heading2,style:null==E?void 0:E.heading2},{children:r.children}))},h3:function(o){o.node;var r=e(o,["node"]);return i("h3",n({className:h.heading3,style:null==E?void 0:E.heading3},{children:r.children}))},b:function(o){o.node;var r=e(o,["node"]);return i("b",n({className:h.bold,style:null==E?void 0:E.bold},{children:null==r?void 0:r.children}))},p:function(o){o.node;var r=e(o,["node"]);return i("p",n({},r,{className:h.paragraph,style:null==E?void 0:E.paragraph},{children:r.children}))},updated:function(o){var r=o.node,t=e(o,["node"]);return i(g,n({showUserStoryDiff:T,currentUpdatedTagId:ne,setCurrentUpdatedTagId:ie,userStory:H,setUserStory:z,setAiReasoning:Q,node:r,customStyle:null==E?void 0:E.updatedContent},t))},ol:function(o){o.node;var r=e(o,["node"]);return i("ol",n({className:h.orderedList,style:null==E?void 0:E.olist},{children:null==r?void 0:r.children}))},ul:function(o){o.node;var r=e(o,["node"]);return i("ul",n({className:h.unorderedList,style:null==E?void 0:E.ulist},{children:null==r?void 0:r.children}))},table:function(e){var o=e.children;return i("div",n({className:h.tableWrapper},{children:i("table",n({className:h.table,style:null==E?void 0:E.table},{children:o}))}))},tr:x,td:function(o){var r,t=o.node,l=o.children,a=null!==(r=null==t?void 0:t.properties)&&void 0!==r?r:{},d=a.style,c=e(a,["style"]);return i(R.Provider,n({value:!0},{children:i("td",n({},c,{style:d?{cssText:d}:void 0},{children:l}))}))},th:function(o){var r,t=o.node,l=o.children,a=null!==(r=null==t?void 0:t.properties)&&void 0!==r?r:{},d=a.style,c=e(a,["style"]);return i(R.Provider,n({value:!0},{children:i("th",n({},c,{style:d?{cssText:d}:void 0},{children:l}))}))},a:function(n){var o,r,t;n.inline,n.children,n.node;var l=e(n,["inline","children","node"]),a=s(R)||"true"==(null==l?void 0:l.table),d="".concat(null==l?void 0:l.href),c=null===(o=d.split("$"))||void 0===o?void 0:o[0],u=null===(r=d.split("$"))||void 0===r?void 0:r[1];if("ai_reasoning"===c){var v=(null!==(t=T?F:G)&&void 0!==t?t:[]).find(function(e){return e.id.toString()===decodeURIComponent(u)});if(v&&v.reason.length>0&&v.gap.length>0)return i(w,{title:"Source",aiReason:v,isSourceHasHighlight:!1,isTable:a,customIcons:J,customStyles:{aiReasoningContent:null==E?void 0:E.aiReasoningContent,aiReasoningAccordion:null==E?void 0:E.aiReasoningAccordion,aiReasoningMarkdown:null==E?void 0:E.aiReasoningMarkdown,aiReasoningPill:null==E?void 0:E.aiReasoningPill,webCitation:null==E?void 0:E.webCitation,stormeeCitation:null==E?void 0:E.stormeeCitation,waveformCitation:null==E?void 0:E.waveformCitation,imageCitation:null==E?void 0:E.imageCitation,fileCitation:null==E?void 0:E.fileCitation,appModCitation:null==E?void 0:E.appModCitation,rcaCitation:null==E?void 0:E.rcaCitation,readFileCitation:null==E?void 0:E.readFileCitation}})}return null},code:function(o){o.inline;var r=o.children,t=o.className;return o.node,e(o,["inline","children","className","node"]),/language-(\w+)/.exec(t||"")||(null==t?void 0:t.includes("language-"))?i("div",{children:i("code",n({className:h.blockCode,style:null==E?void 0:E.code},{children:r}))}):i("code",n({className:h.inlineCode,style:null==E?void 0:E.code},{children:r}))},learned:function(e){var o=e.children;return i(f,n({title:o,placement:"top"},{children:i(p,{size:16,className:h.learned})}))},generatedcode:function(n){n.node;var o=e(n,["node"]),r=(null==o?void 0:o.language)||"python",t=function(e){var n="";try{if(e["data-raw"])n=decodeURIComponent(atob(e["data-raw"]));else{var i=function(e){var n;return"string"==typeof e?e:Array.isArray(e)?e.map(i).join(""):(null===(n=null==e?void 0:e.props)||void 0===n?void 0:n.children)?i(e.props.children):""};n=i(e.children)}}catch(i){console.error("Error decoding generated code:",i),n=String(e.children)}return n}(o);return i(y,{title:"Generated Code",code:t,language:r,customStyles:{pill:null==E?void 0:E.generatedCodePill,content:null==E?void 0:E.generatedCodeContent}})}}},[se,G,$,ne,T,N,k]);return c(function(){if(D.current){if(null==O?void 0:O.length){var e;if(0===(null==V?void 0:V.length))requestAnimationFrame(function(){Y(O.map(function(e){return e.replace(/\*/g,"")}))});else{var n=D.current,i=new MutationObserver(function(){clearTimeout(e),e=setTimeout(function(){i.disconnect(),requestAnimationFrame(function(){Y(O.map(function(e){return e.replace(/\*/g,"")}))})},50)});i.observe(n,{childList:!0,subtree:!0})}return function(){clearTimeout(e)}}Z()}},[O,V]),i(b.Provider,n({value:{expandedInfo:re,setExpanded:ae,reasonToRow:le}},{children:o("div",n({ref:D,className:"".concat(h.container," ").concat("approving"!==A?h.wrapper:""," ").concat(P||""),style:null==E?void 0:E.container},{children:[i(u,n({components:he,rehypePlugins:[v]},{children:ve(N)})),de>0&&i("div",n({className:h.confidenceScoreContainer,style:null==E?void 0:E.confidenceScoreContainer},{children:o("span",n({className:h.confidenceScore,style:null==E?void 0:E.confidenceScore},{children:[i(I,{size:14,color:(null==E?void 0:E.confidenceScoreIconColor)||"#166534"}),de,"%"]}))})),M&&i("div",n({className:h.citationLoader,style:null==E?void 0:E.citationLoaderContainer},{children:i(C,{customStyles:{container:null==E?void 0:E.citationLoadingContainer,icon:null==E?void 0:E.citationLoadingIcon,text:null==E?void 0:E.citationLoadingText}})}))]}))}))};export{A as default};
1
+ import{__rest as e,__assign as n}from"tslib";import{jsx as i,jsxs as o}from"react/jsx-runtime";import{createContext as r,useRef as t,useState as l,useCallback as a,useMemo as d,useEffect as c,useContext as s}from"react";import u from"react-markdown";import v from"rehype-raw";import h from"./UserStoryWithCitation.module.css.js";import{useMarkdownSearch as m}from"../../shared/useMarkdownSearch.js";import{Info as p}from"lucide-react";import{Tooltip as f}from"@mui/material";import g from"../../shared/UpdatedAnimationContent.js";import y from"../../shared/GeneratedCodeCitation.js";import C from"../../shared/CitationLoadingIndicator.js";import{useRequirementAI as S}from"../RequirementAIWrapper/RequirementAIWrapper.js";import w from"../ai-reasoning/AiReasoningCitation.js";import I from"../../icons/RelevanceScoreIcon.js";var R=r(!1),b=r({expandedInfo:null,setExpanded:function(){},reasonToRow:{current:new Map}}),N=r({rowId:""}),x=function(e){var r,l,a=e.children,d=e.node,c=t(Math.random().toString(36).slice(2)).current,u=s(b).expandedInfo,v=(null==u?void 0:u.rowId)===c,m=Array.isArray(null==d?void 0:d.children)?d.children.filter(function(e){return"element"===e.type}).length:1,p=null!==(l=null===(r=null==d?void 0:d.properties)||void 0===r?void 0:r.style)&&void 0!==l?l:void 0;return o(N.Provider,n({value:{rowId:c}},{children:[i("tr",n({style:p?{cssText:p}:void 0},{children:a})),v&&(null==u?void 0:u.aiReason)&&i("tr",n({style:{width:"100%"}},{children:i("td",n({colSpan:m||1,className:h.tableExpandedCell},{children:i("div",n({className:h.tableExpandedCellInner},{children:i("div",{className:h.tableExpandedCellContent})}))}))}))]}))},A=function(r){var N=r.message,A=r.scenario,L=r.showUserStoryDiff,T=void 0!==L&&L,j=r.aiReasoningsForBlock,U=r.isCitationLoadingDisplay,M=void 0!==U&&U,P=r.className;r.highConfidenceIcon,r.lowConfidenceIcon;var E=r.customStyles,k=r.customIcons,F=r.aiReasoningDiffView,$=r.userStoryCitations,q=r.artifactId,D=t(null),W=S(),H=W.userStory,_=W.getAvgScoreForStory,z=W.setUserStory,G=W.aiReasoning,Q=W.setAiReasoning,B=W.customIcons,O=W.searchQueryList,V=W.searchQueryReasoningIdList,J=null!=k?k:null==B?void 0:B.userStoryIcons,K=null==E?void 0:E.searchHighlight,X=m(D,K),Y=X.search,Z=X.clear,ee=l("1"),ne=ee[0],ie=ee[1],oe=l(null),re=oe[0],te=oe[1],le=t(new Map),ae=a(function(e,n){te(e&&n?{rowId:e,aiReason:n}:null)},[]),de=q?_(q):0,ce=l([]),se=ce[0],ue=ce[1],ve=function(e){var n=new RegExp("<(/?(".concat(["updated","deleted","changed"].join("|"),"))>"),"g"),i=e.replace(n,"\n\n<$1>\n\n");return i=(i=i.replace(/<deleted>([\s\S]*?)<\/deleted>/gi,function(e,n){var i=n.replace(/ai_reasoning\$(\d+)/g,function(e,n){return"ai_reasoning$".concat(n,"-legacy")});return"<deleted>".concat(i,"</deleted>")})).replace(/<generatedCode([^>]*)>([\s\S]*?)<\/generatedCode>/gi,function(e,n,i){var o=btoa(encodeURIComponent(i.trim()));return"\n\n<generatedCode".concat(n,' data-raw="').concat(o,'"></generatedCode>\n\n')})};d(function(){return N?ve(N):N},[N]),c(function(){ue(j||G)},[j,G]);var he=d(function(){return{h1:function(o){o.node;var r=e(o,["node"]);return i("h1",n({className:h.heading1,style:null==E?void 0:E.heading1},{children:r.children}))},h2:function(o){o.node;var r=e(o,["node"]);return i("h2",n({className:h.heading2,style:null==E?void 0:E.heading2},{children:r.children}))},h3:function(o){o.node;var r=e(o,["node"]);return i("h3",n({className:h.heading3,style:null==E?void 0:E.heading3},{children:r.children}))},b:function(o){o.node;var r=e(o,["node"]);return i("b",n({className:h.bold,style:null==E?void 0:E.bold},{children:null==r?void 0:r.children}))},p:function(o){o.node;var r=e(o,["node"]);return i("p",n({},r,{className:h.paragraph,style:null==E?void 0:E.paragraph},{children:r.children}))},updated:function(o){var r=o.node,t=e(o,["node"]);return i(g,n({showUserStoryDiff:T,currentUpdatedTagId:ne,setCurrentUpdatedTagId:ie,userStory:H,setUserStory:z,setAiReasoning:Q,node:r,customStyle:null==E?void 0:E.updatedContent},t))},ol:function(o){o.node;var r=e(o,["node"]);return i("ol",n({className:h.orderedList,style:null==E?void 0:E.olist},{children:null==r?void 0:r.children}))},ul:function(o){o.node;var r=e(o,["node"]);return i("ul",n({className:h.unorderedList,style:null==E?void 0:E.ulist},{children:null==r?void 0:r.children}))},table:function(e){var o=e.children;return i("div",n({className:h.tableWrapper},{children:i("table",n({className:h.table,style:null==E?void 0:E.table},{children:o}))}))},tr:x,td:function(o){var r,t=o.node,l=o.children,a=null!==(r=null==t?void 0:t.properties)&&void 0!==r?r:{},d=a.style,c=e(a,["style"]);return i(R.Provider,n({value:!0},{children:i("td",n({},c,{style:d?{cssText:d}:void 0},{children:l}))}))},th:function(o){var r,t=o.node,l=o.children,a=null!==(r=null==t?void 0:t.properties)&&void 0!==r?r:{},d=a.style,c=e(a,["style"]);return i(R.Provider,n({value:!0},{children:i("th",n({},c,{style:d?{cssText:d}:void 0},{children:l}))}))},a:function(n){var o,r,t;n.inline,n.children,n.node;var l=e(n,["inline","children","node"]),a=s(R)||"true"==(null==l?void 0:l.table),d="".concat(null==l?void 0:l.href),c=null===(o=d.split("$"))||void 0===o?void 0:o[0],u=null===(r=d.split("$"))||void 0===r?void 0:r[1];if("ai_reasoning"===c){var v=(null!==(t=T?F:G)&&void 0!==t?t:[]).find(function(e){return e.id.toString()===decodeURIComponent(u)});if(v&&v.reason.length>0&&v.gap.length>0)return i(w,{title:"Source",aiReason:v,isSourceHasHighlight:!1,isTable:a,customIcons:J,customStyles:{aiReasoningContent:null==E?void 0:E.aiReasoningContent,aiReasoningAccordion:null==E?void 0:E.aiReasoningAccordion,aiReasoningMarkdown:null==E?void 0:E.aiReasoningMarkdown,aiReasoningPill:null==E?void 0:E.aiReasoningPill,webCitation:null==E?void 0:E.webCitation,stormeeCitation:null==E?void 0:E.stormeeCitation,waveformCitation:null==E?void 0:E.waveformCitation,imageCitation:null==E?void 0:E.imageCitation,fileCitation:null==E?void 0:E.fileCitation,appModCitation:null==E?void 0:E.appModCitation,rcaCitation:null==E?void 0:E.rcaCitation,readFileCitation:null==E?void 0:E.readFileCitation}})}return null},code:function(o){o.inline;var r=o.children,t=o.className;return o.node,e(o,["inline","children","className","node"]),/language-(\w+)/.exec(t||"")||(null==t?void 0:t.includes("language-"))?i("div",{children:i("code",n({className:h.blockCode,style:null==E?void 0:E.code},{children:r}))}):i("code",n({className:h.inlineCode,style:null==E?void 0:E.code},{children:r}))},learned:function(e){var o=e.children;return i(f,n({title:o,placement:"top"},{children:i(p,{size:16,className:h.learned})}))},generatedcode:function(n){n.node;var o=e(n,["node"]),r=(null==o?void 0:o.language)||"python",t=function(e){var n="";try{if(e["data-raw"])n=decodeURIComponent(atob(e["data-raw"]));else{var i=function(e){var n;return"string"==typeof e?e:Array.isArray(e)?e.map(i).join(""):(null===(n=null==e?void 0:e.props)||void 0===n?void 0:n.children)?i(e.props.children):""};n=i(e.children)}}catch(i){console.error("Error decoding generated code:",i),n=String(e.children)}return n}(o);return i(y,{title:"Generated Code",code:t,language:r,customStyles:{pill:null==E?void 0:E.generatedCodePill,content:null==E?void 0:E.generatedCodeContent}})}}},[se,G,$,ne,T,N,k]);return c(function(){if(D.current){if(null==O?void 0:O.length){var e;if(0===(null==V?void 0:V.length))requestAnimationFrame(function(){Y(O.map(function(e){return e.replace(/\*/g,"")}))});else{var n=D.current,i=new MutationObserver(function(){clearTimeout(e),e=setTimeout(function(){i.disconnect(),requestAnimationFrame(function(){Y(O.map(function(e){return e.replace(/\*/g,"")}))})},50)});i.observe(n,{childList:!0,subtree:!0})}return function(){clearTimeout(e)}}Z()}},[O,V]),i(b.Provider,n({value:{expandedInfo:re,setExpanded:ae,reasonToRow:le}},{children:o("div",n({ref:D,className:"".concat(h.container," ").concat("approving"!==A?h.wrapper:""," ").concat(P||""),style:null==E?void 0:E.container},{children:[i(u,n({components:he,rehypePlugins:[v]},{children:ve(N)})),de>0&&i("div",n({className:h.confidenceScoreContainer,style:null==E?void 0:E.confidenceScoreContainer},{children:o("span",n({className:h.confidenceScore,style:null==E?void 0:E.confidenceScore},{children:[i(I,{size:14,color:(null==E?void 0:E.confidenceScoreIconColor)||"#166534"}),de,"%"]}))})),M&&i("div",n({className:h.citationLoader,style:null==E?void 0:E.citationLoaderContainer},{children:i(C,{customStyles:{container:null==E?void 0:E.citationLoadingContainer,icon:null==E?void 0:E.citationLoadingIcon,text:null==E?void 0:E.citationLoadingText}})}))]}))}))};export{A as default};
2
2
  //# sourceMappingURL=UserStoryWithCitation.js.map
@@ -1,2 +1,2 @@
1
- import{__rest as e,__assign as r,__spreadArray as n}from"tslib";import{jsxs as t,jsx as i}from"react/jsx-runtime";import{Undo as o,ThumbsUp as l,Minus as a,Plus as u}from"lucide-react";import{useState as c,useRef as d,useEffect as s}from"react";import f from"./UpdatedAnimationContent.module.css.js";var v=function(v){var m,p,h,g,y,N,S=v.showUserStoryDiff,T=void 0!==S&&S,b=v.currentUpdatedTagId,w=v.setCurrentUpdatedTagId;v.node;var M=v.userStory,U=v.setUserStory,I=v.setAiReasoning,x=v.customStyle,C=e(v,["showUserStoryDiff","currentUpdatedTagId","setCurrentUpdatedTagId","node","userStory","setUserStory","setAiReasoning","customStyle"]),L=c(!1),j=L[0],A=L[1],k=d(null),q=d(null);s(function(){if(q.current){var e=setTimeout(function(){var e=q.current;e&&(e.style.scrollMarginBottom="20px",e.scrollIntoView({behavior:"smooth",block:"end"}))},200);return function(){return clearTimeout(e)}}},[b]);var D=null===(h=null===(p=null===(m=null==C?void 0:C.children)||void 0===m?void 0:m.filter(function(e){return"string"!=typeof e}).find(function(e){return"deleted"===(null==e?void 0:e.type)}))||void 0===p?void 0:p.props)||void 0===h?void 0:h.children,H=null===(N=null===(y=null===(g=null==C?void 0:C.children)||void 0===g?void 0:g.filter(function(e){return"string"!=typeof e}).find(function(e){return"changed"===(null==e?void 0:e.type)}))||void 0===y?void 0:y.props)||void 0===N?void 0:N.children;function O(e,t,i){var o=JSON.parse(JSON.stringify(e)),l=function(e,r){var n=function(e){for(var t=0,i=e;t<i.length;t++){var o=i[t];if((new DOMParser).parseFromString(o.value,"text/html").querySelector('updated[id="'.concat(r,'"]')))return o;if(o.sub_features&&o.sub_features.length>0){var l=n(o.sub_features);if(l)return l}}return null};return n(e)}(o,t);if(!l)return console.warn("No user story found with updated id: ".concat(t)),!1;var a=(new DOMParser).parseFromString(l.value,"text/html"),u=a.querySelector('updated[id="'.concat(t,'"]'));if(!u)return console.warn("No <updated> block found with id: ".concat(t)),!1;var c,d=u.innerHTML,s=u.querySelector("deleted"),f=u.querySelector("changed"),v=s?s.innerHTML.trim():null,m=f?f.innerHTML.trim():null,p="";if("reject"===i){var h=(c=(v||m||"").match(/ai_reasoning\$(\d+)/))?parseInt(c[1],10):null;null!==h&&I(function(e){var t=e.map(function(e){return r({},e)}),i="".concat(h,"-legacy"),o=t.find(function(e){var r;return(null===(r=e.id)||void 0===r?void 0:r.toString())===i});if(o){var l=o.id.toString().replace("-legacy","");t=t.filter(function(e){return e.id.toString()!==l}),o.id=l}return n([],t,!0)})}"accept"===i?p=v&&m?m:v&&!m?"":!v&&m?m:d:"reject"===i&&(p=v&&m||v&&!m?v:!v&&m?"":d);var g=a.createElement("div");g.innerHTML=p;var y=Array.from(g.childNodes);u.replaceWith.apply(u,y);var N=new XMLSerializer;return l.value=N.serializeToString(a),U(o),w(function(e){return Number.isNaN(Number(e))?e:String(Number(e)+1)}),!0}return t("div",r({style:x},C,{className:f.container,onMouseEnter:function(){k.current&&(clearTimeout(k.current),k.current=null),A(!0)},onMouseLeave:function(){k.current=setTimeout(function(){A(!1),k.current=null},2e3)},ref:(null==C?void 0:C.id)===b?q:null},{children:[j&&!T&&t("span",r({className:f.hoverActions,onMouseEnter:function(){return A(!0)}},{children:[i("button",r({className:f.actionButton,onClick:function(){O(M,null==C?void 0:C.id,"reject"),A(!1)}},{children:i(o,{className:f.hw})})),i("span",{className:f.divider}),i("button",r({className:f.actionButton,onClick:function(){O(M,null==C?void 0:C.id,"accept"),A(!1)}},{children:i(l,{className:f.hw})}))]})),D&&t("div",r({className:f.deletedContainer},{children:[i(a,{className:f.deletedIcon}),i("div",r({className:f.deletedText},{children:D}))]})),H&&t("div",r({className:f.changedContainer},{children:[i(u,{className:f.changedIcon}),i("div",r({className:f.changedText},{children:H}))]}))]}))};export{v as default};
1
+ import{__rest as e,__assign as n,__spreadArray as r}from"tslib";import{jsxs as t,jsx as o}from"react/jsx-runtime";import{Undo as l,ThumbsUp as i,Minus as u,Plus as c}from"lucide-react";import{useState as d,useRef as a,useEffect as s}from"react";import v from"./UpdatedAnimationContent.module.css.js";var f=function(f){var m,p,h,y,g,S,N,I,T=f.showUserStoryDiff,M=void 0!==T&&T,b=f.currentUpdatedTagId,C=f.setCurrentUpdatedTagId;f.node;var w=f.userStory,U=f.setUserStory,x=f.setAiReasoning,z=f.customStyles,L=f.customIcons,A=e(f,["showUserStoryDiff","currentUpdatedTagId","setCurrentUpdatedTagId","node","userStory","setUserStory","setAiReasoning","customStyles","customIcons"]),j=d(!1),B=j[0],E=j[1],H=d(null),k=H[0],q=H[1],D=a(null),O=a(null),_=null!==(m=null==z?void 0:z.iconSize)&&void 0!==m?m:16,W=null!==(p=null==z?void 0:z.actionIconSize)&&void 0!==p?p:_;s(function(){if(O.current){var e=setTimeout(function(){var e=O.current;e&&(e.style.scrollMarginBottom="20px",e.scrollIntoView({behavior:"smooth",block:"end"}))},200);return function(){return clearTimeout(e)}}},[b]);var F=null===(g=null===(y=null===(h=null==A?void 0:A.children)||void 0===h?void 0:h.filter(function(e){return"string"!=typeof e}).find(function(e){return"deleted"===(null==e?void 0:e.type)}))||void 0===y?void 0:y.props)||void 0===g?void 0:g.children,J=null===(I=null===(N=null===(S=null==A?void 0:A.children)||void 0===S?void 0:S.filter(function(e){return"string"!=typeof e}).find(function(e){return"changed"===(null==e?void 0:e.type)}))||void 0===N?void 0:N.props)||void 0===I?void 0:I.children;function P(e,t,o){var l=JSON.parse(JSON.stringify(e)),i=function(e,n){var r=function(e){for(var t=0,o=e;t<o.length;t++){var l=o[t];if((new DOMParser).parseFromString(l.value,"text/html").querySelector('updated[id="'.concat(n,'"]')))return l;if(l.sub_features&&l.sub_features.length>0){var i=r(l.sub_features);if(i)return i}}return null};return r(e)}(l,t);if(!i)return console.warn("No user story found with updated id: ".concat(t)),!1;var u=(new DOMParser).parseFromString(i.value,"text/html"),c=u.querySelector('updated[id="'.concat(t,'"]'));if(!c)return console.warn("No <updated> block found with id: ".concat(t)),!1;var d,a=c.innerHTML,s=c.querySelector("deleted"),v=c.querySelector("changed"),f=s?s.innerHTML.trim():null,m=v?v.innerHTML.trim():null,p="";if("reject"===o){var h=(d=(f||m||"").match(/ai_reasoning\$(\d+)/))?parseInt(d[1],10):null;null!==h&&x(function(e){var t=e.map(function(e){return n({},e)}),o="".concat(h,"-legacy"),l=t.find(function(e){var n;return(null===(n=e.id)||void 0===n?void 0:n.toString())===o});if(l){var i=l.id.toString().replace("-legacy","");t=t.filter(function(e){return e.id.toString()!==i}),l.id=i}return r([],t,!0)})}"accept"===o?p=f&&m?m:f&&!m?"":!f&&m?m:a:"reject"===o&&(p=f&&m||f&&!m?f:!f&&m?"":a);var y=u.createElement("div");y.innerHTML=p;var g=Array.from(y.childNodes);c.replaceWith.apply(c,g);var S=new XMLSerializer;return i.value=S.serializeToString(u),U(l),C(function(e){return Number.isNaN(Number(e))?e:String(Number(e)+1)}),!0}var R=function(e){var r=(null==z?void 0:z.actionButton)||{},t=k===e&&(null==z?void 0:z.actionButtonHover)||{};return n(n({},r),t)};return t("div",n({},A,{className:v.container,style:null==z?void 0:z.container,onMouseEnter:function(){D.current&&(clearTimeout(D.current),D.current=null),E(!0)},onMouseLeave:function(){D.current=setTimeout(function(){E(!1),D.current=null},2e3)},ref:(null==A?void 0:A.id)===b?O:null},{children:[B&&!M&&t("span",n({className:v.hoverActions,style:null==z?void 0:z.hoverActions,onMouseEnter:function(){return E(!0)}},{children:[o("button",n({className:v.actionButton,style:R("undo"),onMouseEnter:function(){return q("undo")},onMouseLeave:function(){return q(null)},onClick:function(){P(w,null==A?void 0:A.id,"reject"),E(!1)}},{children:(null==L?void 0:L.undo)?L.undo:o(l,{size:W,color:null==z?void 0:z.undoIconColor,className:v.hw})})),o("span",{className:v.divider,style:null==z?void 0:z.divider}),o("button",n({className:v.actionButton,style:R("accept"),onMouseEnter:function(){return q("accept")},onMouseLeave:function(){return q(null)},onClick:function(){P(w,null==A?void 0:A.id,"accept"),E(!1)}},{children:(null==L?void 0:L.accept)?L.accept:o(i,{size:W,color:null==z?void 0:z.thumbsUpIconColor,className:v.hw})}))]})),F&&t("div",n({className:v.deletedContainer,style:null==z?void 0:z.deletedContainer},{children:[o("span",n({style:null==z?void 0:z.deletedIconWrapper},{children:(null==L?void 0:L.deleted)?L.deleted:o(u,{size:_,color:null==z?void 0:z.deletedIconColor,className:v.deletedIcon})})),o("div",n({className:v.deletedText,style:null==z?void 0:z.deletedText},{children:F}))]})),J&&t("div",n({className:v.changedContainer,style:null==z?void 0:z.changedContainer},{children:[o("span",n({style:null==z?void 0:z.changedIconWrapper},{children:(null==L?void 0:L.changed)?L.changed:o(c,{size:_,color:null==z?void 0:z.changedIconColor,className:v.changedIcon})})),o("div",n({className:v.changedText,style:null==z?void 0:z.changedText},{children:J}))]}))]}))};export{f as default};
2
2
  //# sourceMappingURL=UpdatedAnimationContent.js.map
@@ -2,6 +2,228 @@ import React, { ReactNode } from "react";
2
2
  import { IUserStory } from "../../interfaces/userstory.interface";
3
3
  import { AiReasonAccordionStyles, AiReasoningContentStyles, AppModCitationStyleGroup, CitationStyleGroup, FileCitationStyles, ImageCitationStyles, MarkdownCustomStyles, RCACitationStyleGroup, ReadFileCitationStyleGroup, StormeeCitationStyles, TAIReasoning, UserStoryIcons, WaveformCitationStyles } from "../../types/aiReasoning.type";
4
4
  import { CitationConfig, UserStoryCitations } from "../../interfaces/citation.interface";
5
+ import { UpdatedAnimatedContentStyles, UpdatedAnimatedContentIcons } from "../../shared/UpdatedAnimationContent";
6
+ export interface RequirementAICustomStyles {
7
+ userStoryScreenStyles?: {
8
+ wrapperContainer?: React.CSSProperties;
9
+ header?: React.CSSProperties;
10
+ panelGroup?: React.CSSProperties;
11
+ sidebarPanel?: React.CSSProperties;
12
+ resizeHandle?: React.CSSProperties;
13
+ contentPanel?: React.CSSProperties;
14
+ headerTitle?: React.CSSProperties;
15
+ headerSubtitle?: React.CSSProperties;
16
+ streamingText?: React.CSSProperties;
17
+ scrollContainer?: React.CSSProperties;
18
+ sidebarToggleBtn?: React.CSSProperties;
19
+ actions?: React.CSSProperties;
20
+ cancelAtomicButton?: React.CSSProperties;
21
+ saveAtomicButton?: React.CSSProperties;
22
+ editToggleBtn?: React.CSSProperties;
23
+ storyWrapper?: React.CSSProperties;
24
+ scrollBtnWrapper?: React.CSSProperties;
25
+ scrollBtn?: React.CSSProperties;
26
+ accordionSkeleton?: {
27
+ wrapper?: React.CSSProperties;
28
+ line?: React.CSSProperties;
29
+ box?: React.CSSProperties;
30
+ };
31
+ subFeatureSkeleton?: {
32
+ wrapper?: React.CSSProperties;
33
+ line?: React.CSSProperties;
34
+ };
35
+ userStoryContentStyles?: {
36
+ searchHighlight?: React.CSSProperties;
37
+ container?: React.CSSProperties;
38
+ tableAiReasoning?: React.CSSProperties;
39
+ heading1?: React.CSSProperties;
40
+ heading2?: React.CSSProperties;
41
+ heading3?: React.CSSProperties;
42
+ paragraph?: React.CSSProperties;
43
+ table?: React.CSSProperties;
44
+ ulist?: React.CSSProperties;
45
+ olist?: React.CSSProperties;
46
+ code?: React.CSSProperties;
47
+ bold?: React.CSSProperties;
48
+ updatedContent?: UpdatedAnimatedContentStyles;
49
+ updatedContentIcons?: UpdatedAnimatedContentIcons;
50
+ aiReasoningCitation?: React.CSSProperties;
51
+ aiReasoningPill?: React.CSSProperties;
52
+ aiReasoningContent?: AiReasoningContentStyles;
53
+ aiReasoningAccordion?: AiReasonAccordionStyles;
54
+ aiReasoningMarkdown?: MarkdownCustomStyles;
55
+ generatedCodePill?: React.CSSProperties;
56
+ generatedCodeContent?: React.CSSProperties;
57
+ citationLoadingContainer?: React.CSSProperties;
58
+ citationLoadingIcon?: React.CSSProperties;
59
+ citationLoadingText?: React.CSSProperties;
60
+ citationLoaderContainer?: React.CSSProperties;
61
+ webCitation?: CitationStyleGroup;
62
+ stormeeCitation?: StormeeCitationStyles;
63
+ waveformCitation?: WaveformCitationStyles;
64
+ imageCitation?: ImageCitationStyles;
65
+ fileCitation?: FileCitationStyles;
66
+ appModCitation?: AppModCitationStyleGroup;
67
+ rcaCitation?: RCACitationStyleGroup;
68
+ readFileCitation?: ReadFileCitationStyleGroup;
69
+ confidenceScoreContainer?: React.CSSProperties;
70
+ confidenceScore?: React.CSSProperties;
71
+ confidenceScoreIconColor?: string;
72
+ };
73
+ streamingSidebar?: {
74
+ container?: React.CSSProperties;
75
+ sidebarInner?: React.CSSProperties;
76
+ storyContent?: React.CSSProperties;
77
+ header?: React.CSSProperties;
78
+ title?: React.CSSProperties;
79
+ storyItem?: React.CSSProperties;
80
+ activeStory?: React.CSSProperties;
81
+ storyHeader?: React.CSSProperties;
82
+ storyTitle?: React.CSSProperties;
83
+ description?: React.CSSProperties;
84
+ moreButton?: React.CSSProperties;
85
+ badge?: React.CSSProperties;
86
+ bookmarkIcon?: React.CSSProperties;
87
+ skeleton?: React.CSSProperties;
88
+ skeletonLine?: React.CSSProperties;
89
+ };
90
+ subFeatureBlock?: {
91
+ container?: React.CSSProperties;
92
+ toggleButton?: React.CSSProperties;
93
+ title?: React.CSSProperties;
94
+ chevron?: React.CSSProperties;
95
+ actionBar?: React.CSSProperties;
96
+ editButton?: React.CSSProperties;
97
+ editorWrapper?: React.CSSProperties;
98
+ contentWrapper?: React.CSSProperties;
99
+ subFeatureToolbar?: React.CSSProperties;
100
+ };
101
+ };
102
+ textEditorStyles?: {
103
+ wrapper?: React.CSSProperties;
104
+ textArea?: React.CSSProperties;
105
+ tooltextArea?: React.CSSProperties;
106
+ toolbar?: React.CSSProperties;
107
+ toolbarButton?: React.CSSProperties;
108
+ activeToolButton?: React.CSSProperties;
109
+ toolbarButtonHover?: React.CSSProperties;
110
+ toolbarButtonDisabled?: React.CSSProperties;
111
+ toolIconColors?: {
112
+ undoIcon?: string;
113
+ redoIcon?: string;
114
+ boldIcon?: string;
115
+ codeIcon?: string;
116
+ };
117
+ };
118
+ approvalScreen?: {
119
+ wrapperContainer?: React.CSSProperties;
120
+ sidebar?: {
121
+ container?: React.CSSProperties;
122
+ innerContainer?: React.CSSProperties;
123
+ header?: React.CSSProperties;
124
+ headerIcon?: React.CSSProperties;
125
+ headerTitle?: React.CSSProperties;
126
+ storyList?: React.CSSProperties;
127
+ sidebarItem?: {
128
+ container?: React.CSSProperties;
129
+ itemContent?: React.CSSProperties;
130
+ topRow?: React.CSSProperties;
131
+ artifactIdGroup?: React.CSSProperties;
132
+ bookMarkColor?: string;
133
+ approvalStatusBadge?: {
134
+ badgeApproved?: React.CSSProperties;
135
+ badgeInProgress?: React.CSSProperties;
136
+ badgeNotApproved?: React.CSSProperties;
137
+ };
138
+ titleRow?: React.CSSProperties;
139
+ titleIndex?: React.CSSProperties;
140
+ description?: React.CSSProperties;
141
+ moreButton?: React.CSSProperties;
142
+ confidenceScore?: React.CSSProperties;
143
+ confidenceScoreIcon?: {
144
+ color?: string;
145
+ };
146
+ scoreBadgeContainer?: React.CSSProperties;
147
+ };
148
+ };
149
+ body?: {
150
+ container?: React.CSSProperties;
151
+ contentSegment?: {
152
+ container?: React.CSSProperties;
153
+ header?: React.CSSProperties;
154
+ headerContent?: React.CSSProperties;
155
+ headerMeta?: React.CSSProperties;
156
+ bookMarkColor?: string;
157
+ headerArtifactId?: React.CSSProperties;
158
+ headerTitle?: React.CSSProperties;
159
+ headerToggle?: React.CSSProperties;
160
+ contentWrapper?: React.CSSProperties;
161
+ contentBlock?: {
162
+ currentSegementContainer?: React.CSSProperties;
163
+ containerDefault?: React.CSSProperties;
164
+ approvedBadge?: React.CSSProperties;
165
+ checkIconColor?: string;
166
+ contentArea?: React.CSSProperties;
167
+ actionsContainer?: React.CSSProperties;
168
+ actionsRow?: React.CSSProperties;
169
+ actionButton?: React.CSSProperties;
170
+ actionText?: React.CSSProperties;
171
+ pencilIcon?: string;
172
+ approveButton?: React.CSSProperties;
173
+ approveText?: React.CSSProperties;
174
+ approveIconStyle?: React.CSSProperties;
175
+ approveColor?: string;
176
+ approveIconColor?: string;
177
+ disableApproveIconColor?: string;
178
+ deleteButton?: React.CSSProperties;
179
+ deleteIconColor?: string;
180
+ editActionsContainer?: React.CSSProperties;
181
+ outlineButton?: React.CSSProperties;
182
+ cancelButton?: React.CSSProperties;
183
+ saveButton?: React.CSSProperties;
184
+ };
185
+ };
186
+ };
187
+ content?: {
188
+ content?: React.CSSProperties;
189
+ headerLeft?: React.CSSProperties;
190
+ approvalBadge?: React.CSSProperties;
191
+ approveAllButtonDefault?: React.CSSProperties;
192
+ };
193
+ };
194
+ atomicButton?: React.CSSProperties;
195
+ userStoryCardStyles?: {
196
+ userStoryCardWrapper?: React.CSSProperties;
197
+ cardStyle?: React.CSSProperties;
198
+ titleSection?: React.CSSProperties;
199
+ titleRow?: React.CSSProperties;
200
+ titleLeft?: React.CSSProperties;
201
+ showDisplayName?: {
202
+ wrapper?: React.CSSProperties;
203
+ displayNameIcon?: React.CSSProperties;
204
+ label?: React.CSSProperties;
205
+ };
206
+ storyTitle?: React.CSSProperties;
207
+ titleActions?: React.CSSProperties;
208
+ iconButton?: React.CSSProperties;
209
+ userStoryShareMenu?: React.CSSProperties;
210
+ userStoryMenuItem?: React.CSSProperties;
211
+ menuItemContent?: React.CSSProperties;
212
+ menuIconColor?: string;
213
+ menuLabel?: React.CSSProperties;
214
+ cancelButton?: React.CSSProperties;
215
+ saveButton?: React.CSSProperties;
216
+ editButton?: React.CSSProperties;
217
+ pencilIconColor?: string;
218
+ chevronButton?: React.CSSProperties;
219
+ chevronIconColor?: string;
220
+ dividerStyle?: React.CSSProperties;
221
+ cardContentStyle?: React.CSSProperties;
222
+ contentInner?: React.CSSProperties;
223
+ descriptionSection?: React.CSSProperties;
224
+ justifyBetween?: React.CSSProperties;
225
+ };
226
+ }
5
227
  interface IRequirementAIContext {
6
228
  userStory: IUserStory[];
7
229
  setUserStory: React.Dispatch<React.SetStateAction<IUserStory[]>>;
@@ -21,226 +243,7 @@ interface IRequirementAIContext {
21
243
  useGetVideoSignedUrlMutation: (gsUtilPath: string) => any;
22
244
  useGetVideoSignedUrlQuery: (gsUtilPath: string, cacheKey: string[]) => any;
23
245
  };
24
- customStyles?: {
25
- userStoryScreenStyles?: {
26
- wrapperContainer?: React.CSSProperties;
27
- header?: React.CSSProperties;
28
- panelGroup?: React.CSSProperties;
29
- sidebarPanel?: React.CSSProperties;
30
- resizeHandle?: React.CSSProperties;
31
- contentPanel?: React.CSSProperties;
32
- headerTitle?: React.CSSProperties;
33
- headerSubtitle?: React.CSSProperties;
34
- streamingText?: React.CSSProperties;
35
- scrollContainer?: React.CSSProperties;
36
- sidebarToggleBtn?: React.CSSProperties;
37
- actions?: React.CSSProperties;
38
- cancelAtomicButton?: React.CSSProperties;
39
- saveAtomicButton?: React.CSSProperties;
40
- editToggleBtn?: React.CSSProperties;
41
- storyWrapper?: React.CSSProperties;
42
- scrollBtnWrapper?: React.CSSProperties;
43
- scrollBtn?: React.CSSProperties;
44
- accordionSkeleton?: {
45
- wrapper?: React.CSSProperties;
46
- line?: React.CSSProperties;
47
- box?: React.CSSProperties;
48
- };
49
- subFeatureSkeleton?: {
50
- wrapper?: React.CSSProperties;
51
- line?: React.CSSProperties;
52
- };
53
- userStoryContentStyles?: {
54
- searchHighlight?: React.CSSProperties;
55
- container?: React.CSSProperties;
56
- tableAiReasoning?: React.CSSProperties;
57
- heading1?: React.CSSProperties;
58
- heading2?: React.CSSProperties;
59
- heading3?: React.CSSProperties;
60
- paragraph?: React.CSSProperties;
61
- table?: React.CSSProperties;
62
- ulist?: React.CSSProperties;
63
- olist?: React.CSSProperties;
64
- code?: React.CSSProperties;
65
- bold?: React.CSSProperties;
66
- updatedContent?: React.CSSProperties;
67
- aiReasoningCitation?: React.CSSProperties;
68
- aiReasoningPill?: React.CSSProperties;
69
- aiReasoningContent?: AiReasoningContentStyles;
70
- aiReasoningAccordion?: AiReasonAccordionStyles;
71
- aiReasoningMarkdown?: MarkdownCustomStyles;
72
- generatedCodePill?: React.CSSProperties;
73
- generatedCodeContent?: React.CSSProperties;
74
- citationLoadingContainer?: React.CSSProperties;
75
- citationLoadingIcon?: React.CSSProperties;
76
- citationLoadingText?: React.CSSProperties;
77
- citationLoaderContainer?: React.CSSProperties;
78
- webCitation?: CitationStyleGroup;
79
- stormeeCitation?: StormeeCitationStyles;
80
- waveformCitation?: WaveformCitationStyles;
81
- imageCitation?: ImageCitationStyles;
82
- fileCitation?: FileCitationStyles;
83
- appModCitation?: AppModCitationStyleGroup;
84
- rcaCitation?: RCACitationStyleGroup;
85
- readFileCitation?: ReadFileCitationStyleGroup;
86
- confidenceScoreContainer?: React.CSSProperties;
87
- confidenceScore?: React.CSSProperties;
88
- confidenceScoreIconColor?: string;
89
- };
90
- streamingSidebar?: {
91
- container?: React.CSSProperties;
92
- sidebarInner?: React.CSSProperties;
93
- storyContent?: React.CSSProperties;
94
- header?: React.CSSProperties;
95
- title?: React.CSSProperties;
96
- storyItem?: React.CSSProperties;
97
- activeStory?: React.CSSProperties;
98
- storyHeader?: React.CSSProperties;
99
- storyTitle?: React.CSSProperties;
100
- description?: React.CSSProperties;
101
- moreButton?: React.CSSProperties;
102
- badge?: React.CSSProperties;
103
- bookmarkIcon?: React.CSSProperties;
104
- skeleton?: React.CSSProperties;
105
- skeletonLine?: React.CSSProperties;
106
- };
107
- subFeatureBlock?: {
108
- container?: React.CSSProperties;
109
- toggleButton?: React.CSSProperties;
110
- title?: React.CSSProperties;
111
- chevron?: React.CSSProperties;
112
- actionBar?: React.CSSProperties;
113
- editButton?: React.CSSProperties;
114
- editorWrapper?: React.CSSProperties;
115
- contentWrapper?: React.CSSProperties;
116
- subFeatureToolbar?: React.CSSProperties;
117
- };
118
- };
119
- textEditorStyles?: {
120
- wrapper?: React.CSSProperties;
121
- textArea?: React.CSSProperties;
122
- tooltextArea?: React.CSSProperties;
123
- toolbar?: React.CSSProperties;
124
- toolbarButton?: React.CSSProperties;
125
- activeToolButton?: React.CSSProperties;
126
- toolbarButtonHover?: React.CSSProperties;
127
- toolbarButtonDisabled?: React.CSSProperties;
128
- toolIconColors?: {
129
- undoIcon?: string;
130
- redoIcon?: string;
131
- boldIcon?: string;
132
- codeIcon?: string;
133
- };
134
- };
135
- approvalScreen?: {
136
- wrapperContainer?: React.CSSProperties;
137
- sidebar?: {
138
- container?: React.CSSProperties;
139
- innerContainer?: React.CSSProperties;
140
- header?: React.CSSProperties;
141
- headerIcon?: React.CSSProperties;
142
- headerTitle?: React.CSSProperties;
143
- storyList?: React.CSSProperties;
144
- sidebarItem?: {
145
- container?: React.CSSProperties;
146
- itemContent?: React.CSSProperties;
147
- topRow?: React.CSSProperties;
148
- artifactIdGroup?: React.CSSProperties;
149
- bookMarkColor?: string;
150
- approvalStatusBadge?: {
151
- badgeApproved?: React.CSSProperties;
152
- badgeInProgress?: React.CSSProperties;
153
- badgeNotApproved?: React.CSSProperties;
154
- };
155
- titleRow?: React.CSSProperties;
156
- titleIndex?: React.CSSProperties;
157
- description?: React.CSSProperties;
158
- moreButton?: React.CSSProperties;
159
- confidenceScore?: React.CSSProperties;
160
- confidenceScoreIcon?: {
161
- color?: string;
162
- };
163
- scoreBadgeContainer?: React.CSSProperties;
164
- };
165
- };
166
- body?: {
167
- container?: React.CSSProperties;
168
- contentSegment?: {
169
- container?: React.CSSProperties;
170
- header?: React.CSSProperties;
171
- headerContent?: React.CSSProperties;
172
- headerMeta?: React.CSSProperties;
173
- bookMarkColor?: string;
174
- headerArtifactId?: React.CSSProperties;
175
- headerTitle?: React.CSSProperties;
176
- headerToggle?: React.CSSProperties;
177
- contentWrapper?: React.CSSProperties;
178
- contentBlock?: {
179
- currentSegementContainer?: React.CSSProperties;
180
- containerDefault?: React.CSSProperties;
181
- approvedBadge?: React.CSSProperties;
182
- checkIconColor?: string;
183
- contentArea?: React.CSSProperties;
184
- actionsContainer?: React.CSSProperties;
185
- actionsRow?: React.CSSProperties;
186
- actionButton?: React.CSSProperties;
187
- actionText?: React.CSSProperties;
188
- pencilIcon?: string;
189
- approveButton?: React.CSSProperties;
190
- approveText?: React.CSSProperties;
191
- approveIconStyle?: React.CSSProperties;
192
- approveColor?: string;
193
- approveIconColor?: string;
194
- disableApproveIconColor?: string;
195
- deleteButton?: React.CSSProperties;
196
- deleteIconColor?: string;
197
- editActionsContainer?: React.CSSProperties;
198
- outlineButton?: React.CSSProperties;
199
- cancelButton?: React.CSSProperties;
200
- saveButton?: React.CSSProperties;
201
- };
202
- };
203
- };
204
- content?: {
205
- content?: React.CSSProperties;
206
- headerLeft?: React.CSSProperties;
207
- approvalBadge?: React.CSSProperties;
208
- approveAllButtonDefault?: React.CSSProperties;
209
- };
210
- };
211
- atomicButton?: React.CSSProperties;
212
- userStoryCardStyles?: {
213
- userStoryCardWrapper?: React.CSSProperties;
214
- cardStyle?: React.CSSProperties;
215
- titleSection?: React.CSSProperties;
216
- titleRow?: React.CSSProperties;
217
- titleLeft?: React.CSSProperties;
218
- showDisplayName?: {
219
- wrapper?: React.CSSProperties;
220
- displayNameIcon?: React.CSSProperties;
221
- label?: React.CSSProperties;
222
- };
223
- storyTitle?: React.CSSProperties;
224
- titleActions?: React.CSSProperties;
225
- iconButton?: React.CSSProperties;
226
- userStoryShareMenu?: React.CSSProperties;
227
- userStoryMenuItem?: React.CSSProperties;
228
- menuItemContent?: React.CSSProperties;
229
- menuIconColor?: string;
230
- menuLabel?: React.CSSProperties;
231
- cancelButton?: React.CSSProperties;
232
- saveButton?: React.CSSProperties;
233
- editButton?: React.CSSProperties;
234
- pencilIconColor?: string;
235
- chevronButton?: React.CSSProperties;
236
- chevronIconColor?: string;
237
- dividerStyle?: React.CSSProperties;
238
- cardContentStyle?: React.CSSProperties;
239
- contentInner?: React.CSSProperties;
240
- descriptionSection?: React.CSSProperties;
241
- justifyBetween?: React.CSSProperties;
242
- };
243
- };
246
+ customStyles?: RequirementAICustomStyles;
244
247
  customIcons?: {
245
248
  userStoryIcons?: UserStoryIcons;
246
249
  };
@@ -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,SAA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E,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC;IAEjE,WAAW,EAAE,YAAY,EAAE,CAAC;IAC5B,cAAc,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,YAAY,EAAE,CAAC,CAAC,CAAC;IAErE,SAAS,EAAE,kBAAkB,CAAC;IAC9B,YAAY,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,kBAAkB,CAAC,CAAC,CAAC;IAEvE,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,0BAA0B,EAAE,MAAM,EAAE,CAAC;IAErC,gBAAgB,EAAE,qBAAqB,CAAC,kBAAkB,CAAC,CAAC;IAC5D,YAAY,CAAC,EAAE,qBAAqB,CAAC,cAAc,CAAC,CAAC;IACrD,WAAW,CAAC,EAAE,qBAAqB,CAAC,aAAa,CAAC,CAAC;IACnD,cAAc,CAAC,EAAE,cAAc,CAAC;CACjC;AAID,QAAA,MAAM,oBAAoB,0MAcvB,yBAAyB,4CA6D3B,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,EAAwB,MAAM,OAAO,CAAC;AAC1F,OAAO,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AAClE,OAAO,EACL,uBAAuB,EACvB,wBAAwB,EACxB,wBAAwB,EACxB,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACnB,oBAAoB,EACpB,qBAAqB,EACrB,0BAA0B,EAC1B,qBAAqB,EACrB,YAAY,EACZ,cAAc,EACd,sBAAsB,EACvB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EA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,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,kBAAkB,CAAC,CAAC,CAAC;IAEvE,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,0BAA0B,EAAE,MAAM,EAAE,CAAC;IAErC,gBAAgB,EAAE,qBAAqB,CAAC,kBAAkB,CAAC,CAAC;IAC5D,YAAY,CAAC,EAAE,qBAAqB,CAAC,cAAc,CAAC,CAAC;IACrD,WAAW,CAAC,EAAE,qBAAqB,CAAC,aAAa,CAAC,CAAC;IACnD,cAAc,CAAC,EAAE,cAAc,CAAC;CACjC;AAID,QAAA,MAAM,oBAAoB,0MAcvB,yBAAyB,4CA6D3B,CAAC;AAEF,eAAO,MAAM,gBAAgB,6BAU5B,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"UserStoryApprovalScreen.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.tsx"],"names":[],"mappings":"AAAA,OAAO,KAQN,MAAM,OAAO,CAAC;AAEf,OAAO,EAEL,6BAA6B,EAC7B,gCAAgC,EAChC,6BAA6B,EAC7B,iCAAiC,EAEjC,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AA0D9C,UAAU,SAAS;IACjB;;;OAGG;IACH,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B,4BAA4B;IAC5B,MAAM,CAAC,EAAE,6BAA6B,CAAC;IACvC,mEAAmE;IACnE,SAAS,CAAC,EAAE,gCAAgC,CAAC;IAC7C,8CAA8C;IAC9C,MAAM,CAAC,EAAE,OAAO,CAAC,6BAA6B,CAAC,CAAC;IAChD,4EAA4E;IAC5E,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,0BAA0B;IAC1B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,yBAAyB;IACzB,UAAU,CAAC,EAAE,iCAAiC,CAAC;CAChD;AA+ND,UAAU,YAAY;IACpB;;;;OAIG;IACH,SAAS,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;IACrC;;;OAGG;IACH,MAAM,CAAC,EAAE,qBAAqB,CAAC;IAC/B,wBAAwB;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAkCD,UAAU,kBAAkB;IAC1B,mDAAmD;IACnD,QAAQ,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC/B,mDAAmD;IACnD,SAAS,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAChC,oCAAoC;IACpC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AA2BD,UAAU,YAAY;IACpB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,wDAAwD;IACxD,eAAe,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;IAC3C,6CAA6C;IAC7C,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,mCAAmC;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yCAAyC;IACzC,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAmID,UAAU,SAAS;IACjB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,eAAe,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;IAC3C,eAAe,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;CAC5C;AA0FD,QAAA,MAAM,uBAAuB;;;;;CAK3B,CAAC;AAEH,eAAe,uBAAuB,CAAC"}
1
+ {"version":3,"file":"UserStoryApprovalScreen.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.tsx"],"names":[],"mappings":"AAAA,OAAO,KAQN,MAAM,OAAO,CAAC;AAEf,OAAO,EAEL,6BAA6B,EAC7B,gCAAgC,EAChC,6BAA6B,EAC7B,iCAAiC,EAEjC,qBAAqB,EACtB,MAAM,sC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,eAAe,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;IAC3C,eAAe,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;CAC5C;AA0FD,QAAA,MAAM,uBAAuB;;;;;CAK3B,CAAC;AAEH,eAAe,uBAAuB,CAAC"}
@@ -1,5 +1,44 @@
1
1
  /// <reference types="react" />
2
2
  import { AiReasonAccordionStyles, AiReasoningContentStyles, AppModCitationStyleGroup, CitationStyleGroup, FileCitationStyles, ImageCitationStyles, MarkdownCustomStyles, RCACitationStyleGroup, ReadFileCitationStyleGroup, StormeeCitationStyles, TAIReasoning, UserStoryIcons, WaveformCitationStyles } from "../../types/aiReasoning.type";
3
+ import { UpdatedAnimatedContentIcons, UpdatedAnimatedContentStyles } from "../../shared/UpdatedAnimationContent";
4
+ export interface UserStoryWithCitationCustomStyles {
5
+ searchHighlight?: React.CSSProperties;
6
+ container?: React.CSSProperties;
7
+ tableAiReasoning?: React.CSSProperties;
8
+ heading1?: React.CSSProperties;
9
+ heading2?: React.CSSProperties;
10
+ heading3?: React.CSSProperties;
11
+ paragraph?: React.CSSProperties;
12
+ table?: React.CSSProperties;
13
+ ulist?: React.CSSProperties;
14
+ olist?: React.CSSProperties;
15
+ code?: React.CSSProperties;
16
+ bold?: React.CSSProperties;
17
+ updatedContent?: UpdatedAnimatedContentStyles;
18
+ updatedContentIcons?: UpdatedAnimatedContentIcons;
19
+ aiReasoningCitation?: React.CSSProperties;
20
+ aiReasoningPill?: React.CSSProperties;
21
+ aiReasoningContent?: AiReasoningContentStyles;
22
+ aiReasoningAccordion?: AiReasonAccordionStyles;
23
+ aiReasoningMarkdown?: MarkdownCustomStyles;
24
+ generatedCodePill?: React.CSSProperties;
25
+ generatedCodeContent?: React.CSSProperties;
26
+ citationLoadingContainer?: React.CSSProperties;
27
+ citationLoaderContainer?: React.CSSProperties;
28
+ citationLoadingIcon?: React.CSSProperties;
29
+ citationLoadingText?: React.CSSProperties;
30
+ webCitation?: CitationStyleGroup;
31
+ stormeeCitation?: StormeeCitationStyles;
32
+ waveformCitation?: WaveformCitationStyles;
33
+ imageCitation?: ImageCitationStyles;
34
+ fileCitation?: FileCitationStyles;
35
+ appModCitation?: AppModCitationStyleGroup;
36
+ rcaCitation?: RCACitationStyleGroup;
37
+ readFileCitation?: ReadFileCitationStyleGroup;
38
+ confidenceScoreContainer?: React.CSSProperties;
39
+ confidenceScore?: React.CSSProperties;
40
+ confidenceScoreIconColor?: string;
41
+ }
3
42
  interface UserStoryWithCitationsProps {
4
43
  message: string;
5
44
  scenario?: "approving";
@@ -11,43 +50,7 @@ interface UserStoryWithCitationsProps {
11
50
  isParent?: boolean;
12
51
  highConfidenceIcon?: React.ReactNode;
13
52
  lowConfidenceIcon?: React.ReactNode;
14
- customStyles?: {
15
- searchHighlight?: React.CSSProperties;
16
- container?: React.CSSProperties;
17
- tableAiReasoning?: React.CSSProperties;
18
- heading1?: React.CSSProperties;
19
- heading2?: React.CSSProperties;
20
- heading3?: React.CSSProperties;
21
- paragraph?: React.CSSProperties;
22
- table?: React.CSSProperties;
23
- ulist?: React.CSSProperties;
24
- olist?: React.CSSProperties;
25
- code?: React.CSSProperties;
26
- bold?: React.CSSProperties;
27
- updatedContent?: React.CSSProperties;
28
- aiReasoningCitation?: React.CSSProperties;
29
- aiReasoningPill?: React.CSSProperties;
30
- aiReasoningContent?: AiReasoningContentStyles;
31
- aiReasoningAccordion?: AiReasonAccordionStyles;
32
- aiReasoningMarkdown?: MarkdownCustomStyles;
33
- generatedCodePill?: React.CSSProperties;
34
- generatedCodeContent?: React.CSSProperties;
35
- citationLoadingContainer?: React.CSSProperties;
36
- citationLoaderContainer?: React.CSSProperties;
37
- citationLoadingIcon?: React.CSSProperties;
38
- citationLoadingText?: React.CSSProperties;
39
- webCitation?: CitationStyleGroup;
40
- stormeeCitation?: StormeeCitationStyles;
41
- waveformCitation?: WaveformCitationStyles;
42
- imageCitation?: ImageCitationStyles;
43
- fileCitation?: FileCitationStyles;
44
- appModCitation?: AppModCitationStyleGroup;
45
- rcaCitation?: RCACitationStyleGroup;
46
- readFileCitation?: ReadFileCitationStyleGroup;
47
- confidenceScoreContainer?: React.CSSProperties;
48
- confidenceScore?: React.CSSProperties;
49
- confidenceScoreIconColor?: string;
50
- };
53
+ customStyles?: UserStoryWithCitationCustomStyles;
51
54
  customIcons?: UserStoryIcons;
52
55
  aiReasoningDiffView?: TAIReasoning[];
53
56
  userStoryCitations?: any;
@@ -1 +1 @@
1
- {"version":3,"file":"UserStoryWithCitation.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.tsx"],"names":[],"mappings":";AAWA,OAAO,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,wBAAwB,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,0BAA0B,EAAE,qBAAqB,EAAE,YAAY,EAAE,cAAc,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AA0B9U,UAAU,2BAA2B;IACnC,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,WAAW,CAAC;IACvB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,oBAAoB,CAAC,EAAE,YAAY,EAAE,CAAC;IACtC,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,kBAAkB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACrC,iBAAiB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACpC,YAAY,CAAC,EAAE;QACb,eAAe,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QACtC,SAAS,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QAChC,gBAAgB,CAAC,EAAE,KAA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kBAAkB,CAAC;QAClC,cAAc,CAAC,EAAE,wBAAwB,CAAC;QAC1C,WAAW,CAAC,EAAE,qBAAqB,CAAC;QACpC,gBAAgB,CAAC,EAAE,0BAA0B,CAAC;QAC9C,wBAAwB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QAC/C,eAAe,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QACtC,wBAAwB,CAAC,EAAE,MAAM,CAAC;KACnC,CAAC;IAEF,WAAW,CAAC,EAAE,cAAc,CAAC;IAI7B,mBAAmB,CAAC,EAAE,YAAY,EAAE,CAAC;IACrC,kBAAkB,CAAC,EAAE,GAAG,CAAC;CAK1B;AAmHD,QAAA,MAAM,sBAAsB,+NAWzB,2BAA2B,4CAqX7B,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
1
+ {"version":3,"file":"UserStoryWithCitation.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.tsx"],"names":[],"mappings":";AAWA,OAAO,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,wBAAwB,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,0BAA0B,EAAE,qBAAqB,EAAE,YAAY,EAAE,cAAc,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAC9U,OAA+B,EAAE,2BAA2B,EAAE,4BAA4B,EAAE,MAAM,sCAAsC,CAAC;AAyBzI,MAAM,WAAW,iCAAiC;IAChD,eAAe,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACtC,SAAS,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAChC,gBAAgB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACvC,QAAQ,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC/B,QAAQ,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC/B,QAAQ,CAAC,EAAE,KAAK,CAAC,aAAa,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;IAC9C,wBAAwB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC/C,eAAe,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACtC,wBAAwB,CAAC,EAAE,MAAM,CAAC;CACnC;AAED,UAAU,2BAA2B;IACnC,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,WAAW,CAAC;IACvB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,oBAAoB,CAAC,EAAE,YAAY,EAAE,CAAC;IACtC,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,kBAAkB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACrC,iBAAiB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACpC,YAAY,CAAC,EAAE,iCAAiC,CAAC;IAEjD,WAAW,CAAC,EAAE,cAAc,CAAC;IAI7B,mBAAmB,CAAC,EAAE,YAAY,EAAE,CAAC;IACrC,kBAAkB,CAAC,EAAE,GAAG,CAAC;CAK1B;AAmHD,QAAA,MAAM,sBAAsB,+NAWzB,2BAA2B,4CAqX7B,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
@@ -1,3 +1,42 @@
1
- declare const UpdatedAnimatedContent: ({ showUserStoryDiff, currentUpdatedTagId, setCurrentUpdatedTagId, node, userStory, setUserStory, setAiReasoning, customStyle, ...props }: any) => import("react/jsx-runtime").JSX.Element | null;
1
+ /// <reference types="react" />
2
+ import { IUserStory } from '../interfaces/userstory.interface';
3
+ export interface UpdatedAnimatedContentStyles {
4
+ container?: React.CSSProperties;
5
+ hoverActions?: React.CSSProperties;
6
+ actionButton?: React.CSSProperties;
7
+ actionButtonHover?: React.CSSProperties;
8
+ divider?: React.CSSProperties;
9
+ deletedContainer?: React.CSSProperties;
10
+ deletedIconWrapper?: React.CSSProperties;
11
+ deletedText?: React.CSSProperties;
12
+ changedContainer?: React.CSSProperties;
13
+ changedIconWrapper?: React.CSSProperties;
14
+ changedText?: React.CSSProperties;
15
+ undoIconColor?: string;
16
+ thumbsUpIconColor?: string;
17
+ deletedIconColor?: string;
18
+ changedIconColor?: string;
19
+ iconSize?: number;
20
+ actionIconSize?: number;
21
+ }
22
+ export interface UpdatedAnimatedContentIcons {
23
+ undo?: React.ReactNode;
24
+ accept?: React.ReactNode;
25
+ deleted?: React.ReactNode;
26
+ changed?: React.ReactNode;
27
+ }
28
+ interface UpdatedAnimatedContentProps {
29
+ showUserStoryDiff?: boolean;
30
+ currentUpdatedTagId: string;
31
+ setCurrentUpdatedTagId: React.Dispatch<React.SetStateAction<string>>;
32
+ node: any;
33
+ userStory: IUserStory[];
34
+ setUserStory: React.Dispatch<React.SetStateAction<IUserStory[]>>;
35
+ setAiReasoning: React.Dispatch<React.SetStateAction<any[]>>;
36
+ customStyles?: UpdatedAnimatedContentStyles;
37
+ customIcons?: UpdatedAnimatedContentIcons;
38
+ [key: string]: any;
39
+ }
40
+ declare const UpdatedAnimatedContent: ({ showUserStoryDiff, currentUpdatedTagId, setCurrentUpdatedTagId, node, userStory, setUserStory, setAiReasoning, customStyles, customIcons, ...props }: UpdatedAnimatedContentProps) => import("react/jsx-runtime").JSX.Element;
2
41
  export default UpdatedAnimatedContent;
3
42
  //# sourceMappingURL=UpdatedAnimationContent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"UpdatedAnimationContent.d.ts","sourceRoot":"","sources":["../../../../../../src/features/RequirementAI/shared/UpdatedAnimationContent.tsx"],"names":[],"mappings":"AAOA,QAAA,MAAM,sBAAsB,6IAAoJ,GAAG,mDA0PlL,CAAA;AAED,eAAe,sBAAsB,CAAA"}
1
+ {"version":3,"file":"UpdatedAnimationContent.d.ts","sourceRoot":"","sources":["../../../../../../src/features/RequirementAI/shared/UpdatedAnimationContent.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,UAA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AC,CAAC,CAAC;IACrE,IAAI,EAAE,GAAG,CAAC;IACV,SAAS,EAAE,UAAU,EAAE,CAAC;IACxB,YAAY,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC;IACjE,cAAc,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;IAC5D,YAAY,CAAC,EAAE,4BAA4B,CAAC;IAC5C,WAAW,CAAC,EAAE,2BAA2B,CAAC;IAC1C,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACtB;AAED,QAAA,MAAM,sBAAsB,2JAWzB,2BAA2B,4CA6U7B,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
@@ -47,6 +47,8 @@ export { processAIReasoningFromBlocks, extractBlockStreams, processUserStoryValu
47
47
  export type { IUserStory } from "./features/RequirementAI/interfaces/userstory.interface";
48
48
  export type { UserStoryCitations, ImageCitationsForFile, FileImageData, IChatHistoryItem } from "./features/RequirementAI/interfaces/citation.interface";
49
49
  export type { TAIReasoning, AiReasoningCitationStyles, AiReasoningContentStyles, AiReasoningCustomStyles, StormeeCitationStyles, VideoPlayerStyles, WaveformCitationStyles, UserStoryIcons, MarkdownCustomStyles, ExpandedOLCustomStyles, AiReasonAccordionStyles, SearchWaveformStyles, CitationStyleGroup, ImageCitationStyles, FileCitationStyles, } from "./features/RequirementAI/types/aiReasoning.type";
50
+ export type { UserStoryWithCitationCustomStyles } from "./features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation";
51
+ export type { RequirementAICustomStyles } from "./features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper";
50
52
  export type { GapFilterStyles } from "./features/RequirementAI/types/gapFilterStyles.type";
51
53
  export type { IGetCitationsByBlock, BlockStreamItem, SetRedisParams, } from "./features/RequirementAI/types/streaming-block.type";
52
54
  export { handleDiffEditApplied, handleDiscardAll, handleAcceptAll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AAkB,GAClB,MAAM,iDAAiD,CAAC;AAE3D,YAAY,EAAE,iCAAiC,EAAE,MAAM,mFAAmF,CAAC;AAC3I,YAAY,EAAE,yBAAyB,EAAE,MAAM,+EAA+E,CAAC;AAE/H,YAAY,EAAE,eAAe,EAAE,MAAM,qDAAqD,CAAA;AAE1F,YAAY,EACV,oBAAoB,EACpB,eAAe,EACf,cAAc,GACf,MAAM,qDAAqD,CAAC;AAE7D,OAAO,EACL,qBAAqB,EACrB,gBAAgB,EAChB,sBAAsB,EACvB,MAAM,gDAAgD,CAAC;AAExD,OAAO,EAAE,cAAc,EAAE,MAAM,mEAAmE,CAAC;AAEnG,OAAO,EAAE,qBAAqB,EAAE,MAAM,sDAAsD,CAAC;AAE7F,OAAO,EAAE,oBAAoB,EAAE,MAAM,iEAAiE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@e-llm-studio/requirement-ai",
3
- "version": "0.0.24",
3
+ "version": "0.0.25",
4
4
  "author": "Saptyadeep Bhattacharjee",
5
5
  "description": "",
6
6
  "license": "MIT",