@e-llm-studio/requirement-ai 0.0.11 → 0.0.12

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 (22) hide show
  1. package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.js +1 -1
  2. package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/GapFilterBlock.js +1 -1
  3. package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/GapFilterContentWrapper.js +1 -1
  4. package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/GapFilterItem.js +1 -1
  5. package/dist/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.js +1 -1
  6. package/dist/features/RequirementAI/components/lsc-reason-gap/GapFilterBlock.js +1 -1
  7. package/dist/features/RequirementAI/components/lsc-reason-gap/GapFilterContentWrapper.js +1 -1
  8. package/dist/features/RequirementAI/components/lsc-reason-gap/GapFilterItem.js +1 -1
  9. package/dist/types/src/RequirementAiTest.d.ts.map +1 -1
  10. package/dist/types/src/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.d.ts +5 -1
  11. package/dist/types/src/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.d.ts.map +1 -1
  12. package/dist/types/src/features/RequirementAI/components/lsc-reason-gap/GapFilterBlock.d.ts +8 -2
  13. package/dist/types/src/features/RequirementAI/components/lsc-reason-gap/GapFilterBlock.d.ts.map +1 -1
  14. package/dist/types/src/features/RequirementAI/components/lsc-reason-gap/GapFilterContentWrapper.d.ts +3 -1
  15. package/dist/types/src/features/RequirementAI/components/lsc-reason-gap/GapFilterContentWrapper.d.ts.map +1 -1
  16. package/dist/types/src/features/RequirementAI/components/lsc-reason-gap/GapFilterItem.d.ts +5 -1
  17. package/dist/types/src/features/RequirementAI/components/lsc-reason-gap/GapFilterItem.d.ts.map +1 -1
  18. package/dist/types/src/features/RequirementAI/types/gapFilterStyles.type.d.ts +73 -0
  19. package/dist/types/src/features/RequirementAI/types/gapFilterStyles.type.d.ts.map +1 -0
  20. package/dist/types/src/index.d.ts +1 -0
  21. package/dist/types/src/index.d.ts.map +1 -1
  22. package/package.json +6 -1
@@ -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("lucide-react"),o=require("./CustomChatCrRedirection.module.css.js"),a=require("../ai-reasoning/AiReasoningCitationContent.js"),s=require("../../icons/CognitiveDecision.js"),r=require("../RequirementAIWrapper/RequirementAIWrapper.js");exports.CustomChatCrRedirection=function(c){var u=c.mode,l=c.msg,d=c.type,g=c.id,f=c.aiReason,m=c.text,p=c.headerText,h=c.decisionStrength;c.statusUi,c.panelRef;var x=c.onHandleSend,j=c.onRedirectClick,_=c.gapType,v=c.isGenerating,C=void 0!==v&&v,w=i.useState(!1),R=w[0],S=w[1];console.log("testing::reasoning",f);var b=function(){"cra"===u?null==x||x("Discuss ambiguities on ".concat(m)):null==x||x("Deep Dive into ".concat(_," ").concat(p,": ").concat(m))};return console.log("testing::aiReasoning",f),n.jsxs("div",e.__assign({className:[o.default.outerWrapper,C?o.default.outerWrapperDisabled:""].join(" ")},{children:[n.jsxs("div",e.__assign({className:[o.default.card,C?o.default.cardDisabled:o.default.cardInteractive].join(" ")},{children:[n.jsxs("div",e.__assign({className:o.default.leftSide},{children:[n.jsxs("span",e.__assign({className:o.default.textBlock},{children:[p&&n.jsxs("span",e.__assign({className:o.default.headerText},{children:[p,m?" ":""]})),m]})),n.jsxs("span",e.__assign({onClick:function(e){e.stopPropagation(),C||S(!R)},className:[o.default.reasoningToggle,C?o.default.reasoningToggleDisabled:o.default.reasoningToggleActive].join(" ")},{children:[n.jsx(s.default,{}),R?n.jsx(t.ChevronUp,{className:o.default.chevronIcon}):n.jsx(t.ChevronDown,{className:o.default.chevronIcon})]}))]})),"risk-gap"===u&&n.jsxs("div",e.__assign({className:o.default.rightSide},{children:[n.jsx("button",e.__assign({disabled:C,className:[o.default.fixButton,C?o.default.fixButtonDisabled:""].join(" "),onClick:function(e){e.stopPropagation(),C||b()}},{children:"Fix"})),n.jsx(t.SquareArrowOutUpRight,{onClick:C?void 0:function(){C||null==j||j({type:d,id:g,aiReason:f,msg:l,meta:{headerText:p,decisionStrength:h,text:m}})},size:18,className:[C?o.default.redirectIconDisabled:o.default.redirectIcon].join(" ")})]})),"cra"===u&&n.jsx("div",e.__assign({className:o.default.rightSide},{children:n.jsx("button",e.__assign({disabled:C,className:[o.default.clarifyButton,C?o.default.fixButtonDisabled:""].join(" "),onClick:function(e){e.stopPropagation(),C||b()}},{children:"Clarify"}))}))]})),R&&n.jsx(r.default,e.__assign({searchQueryList:[""],searchQueryReasoningIdList:[],userStory:[],aiReasoning:[],citations:{},apiCachingConfig:{queryClient:void 0,useGetSignedUrlQuery:function(e,n){throw new Error("Function not implemented.")},useGetSignedUrlMutation:function(e){throw new Error("Function not implemented.")},useExtractAudioPeaksMutation:function(e){throw new Error("Function not implemented.")},useExtractAudioPeaksQuery:function(e,n){throw new Error("Function not implemented.")},useGetVideoSignedUrlMutation:function(e){throw new Error("Function not implemented.")},useGetVideoSignedUrlQuery:function(e,n){throw new Error("Function not implemented.")}},customIcons:void 0,setUserStory:function(e){throw new Error("Function not implemented.")},setAiReasoning:function(e){throw new Error("Function not implemented.")},setCitations:function(e){throw new Error("Function not implemented.")}},{children:n.jsx(a.default,{aiReason:{id:"1",reason:f.Reasoning||"",gap:f.Gap||"",relevance_score:Number(f.Confidence_score),explanation:f.explanation||""},onSelectProceed:b})}))]}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),i=require("react/jsx-runtime"),n=require("react"),s=require("lucide-react"),a=require("./CustomChatCrRedirection.module.css.js"),t=require("../ai-reasoning/AiReasoningCitationContent.js"),l=require("../../icons/CognitiveDecision.js");exports.CustomChatCrRedirection=function(o){var r=o.mode,d=o.msg,c=o.type,u=o.id,g=o.aiReason,v=o.text,_=o.headerText,f=o.decisionStrength;o.statusUi,o.panelRef;var x=o.onHandleSend,p=o.onRedirectClick,h=o.gapType,j=o.isGenerating,m=void 0!==j&&j,y=o.customStyles,C=o.customIcons,b=n.useState(!1),D=b[0],S=b[1];console.log("testing::reasoning",g);var N=(null==C?void 0:C.highConfidence)||i.jsx(l.default,{}),R=function(){"cra"===r?null==x||x("Discuss ambiguities on ".concat(v)):null==x||x("Deep Dive into ".concat(h," ").concat(_,": ").concat(v))};return console.log("testing::aiReasoning",g),i.jsxs("div",e.__assign({className:[a.default.outerWrapper,m?a.default.outerWrapperDisabled:""].join(" "),style:e.__assign(e.__assign({},null==y?void 0:y.redirectionOuterWrapper),m?null==y?void 0:y.redirectionOuterWrapperDisabled:{})},{children:[i.jsxs("div",e.__assign({className:[a.default.card,m?a.default.cardDisabled:a.default.cardInteractive].join(" "),style:e.__assign(e.__assign({},null==y?void 0:y.redirectionCard),m?null==y?void 0:y.redirectionCardDisabled:null==y?void 0:y.redirectionCardInteractive)},{children:[i.jsxs("div",e.__assign({className:a.default.leftSide,style:null==y?void 0:y.redirectionLeftSide},{children:[i.jsxs("span",e.__assign({className:a.default.textBlock,style:null==y?void 0:y.redirectionTextBlock},{children:[_&&i.jsxs("span",e.__assign({className:a.default.headerText,style:null==y?void 0:y.redirectionHeaderText},{children:[_,v?" ":""]})),v]})),i.jsxs("span",e.__assign({onClick:function(e){e.stopPropagation(),m||S(!D)},className:[a.default.reasoningToggle,m?a.default.reasoningToggleDisabled:a.default.reasoningToggleActive].join(" "),style:e.__assign(e.__assign({},null==y?void 0:y.reasoningToggle),m?null==y?void 0:y.reasoningToggleDisabled:null==y?void 0:y.reasoningToggleActive)},{children:[N,D?i.jsx(s.ChevronUp,{className:a.default.chevronIcon,style:null==y?void 0:y.chevronIcon}):i.jsx(s.ChevronDown,{className:a.default.chevronIcon,style:null==y?void 0:y.chevronIcon})]}))]})),"risk-gap"===r&&i.jsxs("div",e.__assign({className:a.default.rightSide,style:null==y?void 0:y.redirectionRightSide},{children:[i.jsx("button",e.__assign({disabled:m,className:[a.default.fixButton,m?a.default.fixButtonDisabled:""].join(" "),style:e.__assign(e.__assign({},null==y?void 0:y.redirectionFixButton),m?null==y?void 0:y.fixButtonDisabled:{}),onClick:function(e){e.stopPropagation(),m||R()}},{children:"Fix"})),i.jsx(s.SquareArrowOutUpRight,{onClick:m?void 0:function(){m||null==p||p({type:c,id:u,aiReason:g,msg:d,meta:{headerText:_,decisionStrength:f,text:v}})},size:18,className:[m?a.default.redirectIconDisabled:a.default.redirectIcon].join(" "),style:e.__assign({},m?null==y?void 0:y.redirectIconDisabled:null==y?void 0:y.redirectIcon)})]})),"cra"===r&&i.jsx("div",e.__assign({className:a.default.rightSide,style:null==y?void 0:y.redirectionRightSide},{children:i.jsx("button",e.__assign({disabled:m,className:[a.default.clarifyButton,m?a.default.fixButtonDisabled:""].join(" "),style:e.__assign(e.__assign({},null==y?void 0:y.redirectionClarifyButton),m?null==y?void 0:y.fixButtonDisabled:{}),onClick:function(e){e.stopPropagation(),m||R()}},{children:"Clarify"}))}))]})),D&&i.jsx(t.default,{aiReason:{id:"1",reason:g.Reasoning||"",gap:g.Gap||"",relevance_score:Number(g.Confidence_score),explanation:g.explanation||""},onSelectProceed:R,customStyles:null==y?void 0:y.aiReasoningStyles})]}))};
2
2
  //# sourceMappingURL=CustomChatCrRedirection.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),n=require("react"),r=require("lodash"),o=require("./GapFilterContentWrapper.js"),a=require("./GapFilterItem.js"),i=require("./CustomChatCrRedirection.js"),l=require("./gapFilterSvgs.js"),d=require("./GapFilterBlock.module.css.js");require("react-markdown"),require("rehype-raw");var c=["critical","recommendation","warning"];function s(e){return(null==e?void 0:e.trim())?e.includes("%")?e:e.replace(/([0-9]+(?:\.[0-9]+)?)/g,"$1%"):""}function u(t){return n.Children.toArray(t).filter(function(e){return n.isValidElement(e)}).filter(function(e){var t;return"gapfilteritem"===e.type||"crredirection"===e.type||"function"==typeof e.type&&"crredirection"===e.type.name||(null===(t=e.key)||void 0===t?void 0:t.includes("crredirection"))}).map(function(t){var n,r,o=t.props,a=o.children,i=e.__rest(o,["children"]),l={};Object.keys(i).forEach(function(e){e.startsWith("data-")||(l[e]=i[e])});var d,c,s=(d=i,c={},Object.keys(d).forEach(function(e){e.startsWith("data-")&&(c[e.replace(/^data-/,"")]=d[e])}),c),u=i["decision-strength"];return{text:a,headerText:i.headertext,tags:i.tags,dataAttrs:s,decisionStrength:u,attrs:l,type:"gapfilteritem"===t.type?"gapfilteritem":"crredirection",score:i.score,pendingCount:i.pendingcount,question:i.question,components:i.components,showFix:null!==(n=i.showfix)&&void 0!==n&&n,showRedirect:null!==(r=i.showredirect)&&void 0!==r&&r}})}var g={critical:{labelColor:"#d92d20",badgeBackgroundColor:"#fee4e2",badgeTextColor:"#b42318",icon:t.jsx(l.SirenIcon,{}),label:"Critical",decisionStrength:"< 70%"},warning:{labelColor:"#dc6803",badgeBackgroundColor:"#fef0c7",badgeTextColor:"#b54708",icon:t.jsx(l.WarningIcon,{}),label:"Warning",decisionStrength:"70–90%"},recommendation:{labelColor:"#039855",badgeBackgroundColor:"#d1fadf",badgeTextColor:"#027a48",icon:t.jsx(l.SupportIcon,{}),label:"Just a Suggestion",decisionStrength:"> 90%"},default:{labelColor:"#4b5563",badgeBackgroundColor:"#f3f4f6",badgeTextColor:"#4b5563",icon:t.jsx(l.SupportIcon,{}),label:"",decisionStrength:""}},p={critical:{labelColor:"text-gray-900",badgeBg:"bg-[#FEE4E2]",badgeText:"text-[#B42318]",iconColor:"text-[#D92D20]"},warning:{labelColor:"text-gray-900",badgeBg:"bg-[#FEF0C7]",badgeText:"text-[#B54708]",iconColor:"text-[#DC6803]"},recommendation:{labelColor:"text-gray-900",badgeBg:"bg-[#D1FADF]",badgeText:"text-[#027A48]",iconColor:"text-[#039855]"}};function f(){return t.jsx("div",e.__assign({className:d.default.skeletonWrapper},{children:t.jsx("div",e.__assign({className:d.default.skeletonInner},{children:t.jsx("div",e.__assign({className:d.default.skeletonCard},{children:t.jsxs("div",e.__assign({className:d.default.skeletonRow},{children:[t.jsxs("div",e.__assign({className:d.default.skeletonTextGroup},{children:[t.jsx("div",{className:"".concat(d.default.skeletonLine," ").concat(d.default.skeletonLineLong)}),t.jsx("div",{className:"".concat(d.default.skeletonLine," ").concat(d.default.skeletonLineMedium)})]})),t.jsxs("div",e.__assign({className:d.default.skeletonButtonGroup},{children:[t.jsx("div",{className:d.default.skeletonButton}),t.jsx("div",{className:d.default.skeletonIcon})]}))]}))}))}))}))}exports.GapFilterBlock=function(l){var m=l.mode;l.node;var x=l.children,v=l.type,h=l.supportedmodes,b=void 0===h?"":h,C=l["decision-strength"],y=void 0===C?"":C,_=l.pendingdata,j=void 0===_?"":_,k=l.isGeneratingGap,S=void 0!==k&&k,F=l.selectedGapItemId,I=void 0===F?"":F,N=l.onItemSelect,B=l.onHandleSend,R=l.onModeAction,T=l.msg,G=l.panelRef,w=l.getAccordionState,A=l.setAccordionState,q=l.registerGapFilterBlockCount,E=l.getShowGapReviewButtonType,W=v,D=s(y),L=n.useState(function(){var e;return null!==(e=null==w?void 0:w(W))&&void 0!==e?e:""}),z=L[0],M=L[1],U=function(e){M(e),null==A||A(W,e)},H=u(x),O=n.useMemo(function(){return H.reduce(function(e,t){var n,r,o,a=null!==(n=t.tags)&&void 0!==n?n:"Uncategorized",i=null!==(o=null===(r=t.dataAttrs)||void 0===r?void 0:r.categoryid)&&void 0!==o?o:"1",l=e.find(function(e){return e.categoryName===a});return l||(l={categoryName:a,categoryId:i,type:t.type,items:[]},e.push(l)),l.items.push(t),e},[])},[H]),J=n.useMemo(function(){return e=W,c.includes(e)?{labelColor:g[W].labelColor,badgeBackgroundColor:g[W].badgeBackgroundColor,badgeTextColor:g[W].badgeTextColor,label:g[W].label,decisionStrength:D||g[W].decisionStrength}:{labelColor:g.default.labelColor,badgeBackgroundColor:g.default.badgeBackgroundColor,badgeTextColor:g.default.badgeTextColor,label:r.capitalize(W),decisionStrength:D||""};var e},[W,D]);n.useEffect(function(){null==q||q(W,H.length)},[W,H.length,q]);var P=function(t,n,r){if(void 0===r&&(r={}),!S){var o="".concat(O[t].categoryId,"-").concat(n);null==N||N(o);var a=e.__assign(e.__assign({},O[t].items[n].dataAttrs),r);null==R||R(b,a)}},V=!!E&&E()===W;return t.jsxs(o.GapFilterContentWrapper,e.__assign({mode:m,type:W,config:J,count:H.length,handleReviewClick:function(){H.length>0&&U(W)},openAccordion:z,onAccordionChange:function(e){U(z===e?"":e)},shouldShowReviewButton:V,pendingData:j},{children:[O.map(function(n,r){return t.jsxs("div",e.__assign({className:d.default.categoryGroup},{children:["gapfilteritem"===n.type&&"Uncategorized"!==n.categoryName&&t.jsx("p",e.__assign({className:d.default.categoryLabel},{children:n.categoryName})),n.items.map(function(o,l){var c,s,u,g,f=o.attrs||{},x=null===(c=o.dataAttrs)||void 0===c?void 0:c["cognitive-reasoning"],v=f.id||(null===(s=o.dataAttrs)||void 0===s?void 0:s.id)||"",h="I"===v[0]?"UI_REF":"CHAT_REF",b=null===(u=null==T?void 0:T.contextAwareAgentReasoning)||void 0===u?void 0:u[x];return"gapfilteritem"===o.type?t.jsx("div",e.__assign({className:[d.default.gapFilterItemWrapper,"Uncategorized"!==n.categoryName?d.default.gapFilterItemWrapperIndented:""].join(" ")},{children:t.jsx(a.GapFilterItem,{mode:m,index:l,isSelected:I==="".concat(n.categoryId,"-").concat(l),onClick:function(){return P(r,l)},onFixClick:function(){return P(r,l,{triggerFrom:"fix"})},onRedirect:function(){return P(r,l,{triggerFrom:"redirect"})},item:o,isGenerating:S,aiReason:b,panelRef:null!=G?G:{current:null},id:x})}),l):(console.log("testing::reasoningId",o.type),t.jsx("div",e.__assign({className:d.default.crRedirectionGroup},{children:t.jsx("div",e.__assign({className:d.default.crRedirectionInner},{children:t.jsx(i.CustomChatCrRedirection,{mode:m,msg:T,type:h,text:o.text,headerText:o.headerText,decisionStrength:o.decisionStrength,id:v,gapType:W,onHandleSend:B,isGenerating:S,aiReason:b,statusUi:null!==(g=p[W])&&void 0!==g?g:p.recommendation,panelRef:null!=G?G:{current:null}})}))}),l))})]}),"".concat(n.categoryName,"-").concat(r))}),S&&t.jsx(f,{})]}))},exports.normalizeDecisionStrength=s;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),n=require("react"),o=require("lodash"),r=require("./GapFilterContentWrapper.js"),i=require("./GapFilterItem.js"),l=require("./CustomChatCrRedirection.js"),a=require("./gapFilterSvgs.js"),s=require("./GapFilterBlock.module.css.js");require("react-markdown"),require("rehype-raw"),require("../RequirementAIWrapper/RequirementAIWrapper.js");var d=["critical","recommendation","warning"];function c(e){return(null==e?void 0:e.trim())?e.includes("%")?e:e.replace(/([0-9]+(?:\.[0-9]+)?)/g,"$1%"):""}function u(t){return n.Children.toArray(t).filter(function(e){return n.isValidElement(e)}).filter(function(e){var t;return"gapfilteritem"===e.type||"crredirection"===e.type||"function"==typeof e.type&&"crredirection"===e.type.name||(null===(t=e.key)||void 0===t?void 0:t.includes("crredirection"))}).map(function(t){var n,o,r=t.props,i=r.children,l=e.__rest(r,["children"]),a={};Object.keys(l).forEach(function(e){e.startsWith("data-")||(a[e]=l[e])});var s,d,c=(s=l,d={},Object.keys(s).forEach(function(e){e.startsWith("data-")&&(d[e.replace(/^data-/,"")]=s[e])}),d),u=l["decision-strength"];return{text:i,headerText:l.headertext,tags:l.tags,dataAttrs:c,decisionStrength:u,attrs:a,type:"gapfilteritem"===t.type?"gapfilteritem":"crredirection",score:l.score,pendingCount:l.pendingcount,question:l.question,components:l.components,showFix:null!==(n=l.showfix)&&void 0!==n&&n,showRedirect:null!==(o=l.showredirect)&&void 0!==o&&o}})}var g={critical:{labelColor:"text-gray-900",badgeBg:"bg-[#FEE4E2]",badgeText:"text-[#B42318]",iconColor:"text-[#D92D20]"},warning:{labelColor:"text-gray-900",badgeBg:"bg-[#FEF0C7]",badgeText:"text-[#B54708]",iconColor:"text-[#DC6803]"},recommendation:{labelColor:"text-gray-900",badgeBg:"bg-[#D1FADF]",badgeText:"text-[#027A48]",iconColor:"text-[#039855]"}};function p(n){var o=n.customStyles;return t.jsx("div",e.__assign({className:s.default.skeletonWrapper,style:null==o?void 0:o.skeletonWrapper},{children:t.jsx("div",e.__assign({className:s.default.skeletonInner,style:null==o?void 0:o.skeletonInner},{children:t.jsx("div",e.__assign({className:s.default.skeletonCard,style:null==o?void 0:o.skeletonCard},{children:t.jsxs("div",e.__assign({className:s.default.skeletonRow,style:null==o?void 0:o.skeletonRow},{children:[t.jsxs("div",e.__assign({className:s.default.skeletonTextGroup,style:null==o?void 0:o.skeletonGroup},{children:[t.jsx("div",{className:"".concat(s.default.skeletonLine," ").concat(s.default.skeletonLineLong),style:null==o?void 0:o.skeletonLineLong}),t.jsx("div",{className:"".concat(s.default.skeletonLine," ").concat(s.default.skeletonLineMedium),style:null==o?void 0:o.skeletonLineMedium})]})),t.jsxs("div",e.__assign({className:s.default.skeletonButtonGroup,style:null==o?void 0:o.skeletonButtonGroup},{children:[t.jsx("div",{className:s.default.skeletonButton,style:null==o?void 0:o.skeletonButton}),t.jsx("div",{className:s.default.skeletonIcon,style:null==o?void 0:o.skeletonIcon})]}))]}))}))}))}))}exports.GapFilterBlock=function(m){var f=m.mode;m.node;var v=m.children,y=m.type,x=m.supportedmodes,h=void 0===x?"":x,C=m["decision-strength"],b=void 0===C?"":C,k=m.pendingdata,j=void 0===k?"":k,_=m.isGeneratingGap,S=void 0!==_&&_,I=m.selectedGapItemId,R=void 0===I?"":I,B=m.onItemSelect,N=m.onHandleSend,F=m.onModeAction,G=m.msg,A=m.panelRef,T=m.getAccordionState,w=m.setAccordionState,q=m.registerGapFilterBlockCount,W=m.getShowGapReviewButtonType,E=m.customStyles,L=m.customIcons,D=y,M=c(b),z=n.useState(function(){var e;return null!==(e=null==T?void 0:T(D))&&void 0!==e?e:""}),U=z[0],H=z[1],O=function(e){H(e),null==w||w(D,e)},J=u(v),P=n.useMemo(function(){return J.reduce(function(e,t){var n,o,r,i=null!==(n=t.tags)&&void 0!==n?n:"Uncategorized",l=null!==(r=null===(o=t.dataAttrs)||void 0===o?void 0:o.categoryid)&&void 0!==r?r:"1",a=e.find(function(e){return e.categoryName===i});return a||(a={categoryName:i,categoryId:l,type:t.type,items:[]},e.push(a)),a.items.push(t),e},[])},[J]),V={critical:{labelColor:"#d92d20",badgeBackgroundColor:"#fee4e2",badgeTextColor:"#b42318",icon:t.jsx(a.SirenIcon,{}),label:"risk-gap"===f?"Critical":"Must Clarify",decisionStrength:"< 70%"},warning:{labelColor:"#dc6803",badgeBackgroundColor:"#fef0c7",badgeTextColor:"#b54708",icon:t.jsx(a.WarningIcon,{}),label:"risk-gap"===f?"Warning":"Should Clarify",decisionStrength:"70–90%"},recommendation:{labelColor:"#039855",badgeBackgroundColor:"#d1fadf",badgeTextColor:"#027a48",icon:t.jsx(a.SupportIcon,{}),label:"risk-gap"===f?"Just a Suggestion":"Nice to Clarify",decisionStrength:"> 90%"},default:{labelColor:"#4b5563",badgeBackgroundColor:"#f3f4f6",badgeTextColor:"#4b5563",icon:t.jsx(a.SupportIcon,{}),label:"",decisionStrength:""}},$=n.useMemo(function(){return e=D,d.includes(e)?{labelColor:V[D].labelColor,badgeBackgroundColor:V[D].badgeBackgroundColor,badgeTextColor:V[D].badgeTextColor,label:V[D].label,decisionStrength:M||V[D].decisionStrength}:{labelColor:V.default.labelColor,badgeBackgroundColor:V.default.badgeBackgroundColor,badgeTextColor:V.default.badgeTextColor,label:o.capitalize(D),decisionStrength:M||""};var e},[D,M]);n.useEffect(function(){null==q||q(D,J.length)},[D,J.length,q]);var K=function(t,n,o){if(void 0===o&&(o={}),!S){var r="".concat(P[t].categoryId,"-").concat(n);null==B||B(r);var i=e.__assign(e.__assign({},P[t].items[n].dataAttrs),o);null==F||F(h,i)}};return W&&W(),t.jsxs(r.GapFilterContentWrapper,e.__assign({mode:f,type:D,config:$,count:J.length,handleReviewClick:function(){J.length>0&&O(D)},openAccordion:U,onAccordionChange:function(e){O(U===e?"":e)},shouldShowReviewButton:!1,pendingData:j,customStyles:E},{children:[P.map(function(n,o){return t.jsxs("div",e.__assign({className:s.default.categoryGroup,style:null==E?void 0:E.categoryGroup},{children:["gapfilteritem"===n.type&&"Uncategorized"!==n.categoryName&&t.jsx("p",e.__assign({className:s.default.categoryLabel,style:null==E?void 0:E.categoryLabel},{children:n.categoryName})),n.items.map(function(r,a){var d,c,u,p,m=r.attrs||{},v=null===(d=r.dataAttrs)||void 0===d?void 0:d["cognitive-reasoning"],y=m.id||(null===(c=r.dataAttrs)||void 0===c?void 0:c.id)||"",x="I"===y[0]?"UI_REF":"CHAT_REF",h=null===(u=null==G?void 0:G.contextAwareAgentReasoning)||void 0===u?void 0:u[v];return"gapfilteritem"===r.type?t.jsx("div",e.__assign({className:[s.default.gapFilterItemWrapper,"Uncategorized"!==n.categoryName?s.default.gapFilterItemWrapperIndented:""].join(" "),style:null==E?void 0:E.blockContainer},{children:t.jsx(i.GapFilterItem,{mode:f,index:a,isSelected:R==="".concat(n.categoryId,"-").concat(a),onClick:function(){return K(o,a)},onFixClick:function(){return K(o,a,{triggerFrom:"fix"})},onRedirect:function(){return K(o,a,{triggerFrom:"redirect"})},item:r,isGenerating:S,aiReason:h,panelRef:null!=A?A:{current:null},id:v,customStyles:E,customIcons:L})}),a):(console.log("testing::reasoningId",r.type),t.jsx("div",e.__assign({className:s.default.crRedirectionGroup,style:null==E?void 0:E.crRedirectionGroup},{children:t.jsx("div",e.__assign({className:s.default.crRedirectionInner,style:null==E?void 0:E.crRedirectionInner},{children:t.jsx(l.CustomChatCrRedirection,{mode:f,msg:G,type:x,text:r.text,headerText:r.headerText,decisionStrength:r.decisionStrength,id:y,gapType:D,onHandleSend:N,isGenerating:S,aiReason:h,statusUi:null!==(p=g[D])&&void 0!==p?p:g.recommendation,panelRef:null!=A?A:{current:null},customStyles:E,customIcons:L})}))}),a))})]}),"".concat(n.categoryName,"-").concat(o))}),S&&t.jsx(p,{customStyles:E})]}))},exports.normalizeDecisionStrength=c;
2
2
  //# sourceMappingURL=GapFilterBlock.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),s=require("react/jsx-runtime"),a=require("../../shared/Accordian.js"),n=require("lucide-react"),r=require("./GapFilterContentWrapper.module.css.js");exports.GapFilterContentWrapper=function(i){var l=i.mode,c=i.type,o=i.config,t=i.count,d=i.openAccordion,g=i.children,u=i.shouldShowReviewButton,h=void 0!==u&&u,_=i.onAccordionChange;i.handleReviewClick;var p=i.pendingData;return s.jsx(a.Accordion,e.__assign({type:"single",collapsible:!0,className:r.default.accordion,value:d,onValueChange:function(e){return _(e)}},{children:s.jsxs(a.AccordionItem,e.__assign({value:c,className:r.default.accordionItem},{children:[s.jsx(a.AccordionTrigger,e.__assign({chevronPosition:"end",className:r.default.accordionTrigger,hideChevron:h},{children:s.jsxs("div",e.__assign({className:r.default.triggerInner},{children:[s.jsxs("div",e.__assign({className:r.default.triggerLeft},{children:[s.jsxs("p",e.__assign({className:r.default.triggerLabel,style:{color:o.labelColor}},{children:[o.label,s.jsxs("span",e.__assign({className:r.default.triggerLabelCount},{children:["(",t,")"]}))]})),p.length>0&&s.jsxs("span",e.__assign({className:r.default.triggerPending},{children:["(",p,")"]}))]})),"risk-gap"===l&&s.jsx("div",e.__assign({className:r.default.triggerRight},{children:s.jsxs("p",e.__assign({className:r.default.decisionStrengthBadge,style:{backgroundColor:o.badgeBackgroundColor,color:o.badgeTextColor}},{children:[s.jsx(n.Sparkles,{className:r.default.decisionStrengthIcon}),o.decisionStrength]}))}))]}))})),s.jsx(a.AccordionContent,e.__assign({className:r.default.accordionContent},{children:s.jsx("div",e.__assign({className:r.default.accordionContentInner},{children:g}))}))]}))}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),i=require("../../shared/Accordian.js"),s=require("lucide-react"),r=require("./GapFilterContentWrapper.module.css.js");exports.GapFilterContentWrapper=function(l){var a=l.mode,o=l.type,t=l.config,c=l.count,d=l.openAccordion,g=l.children,u=l.shouldShowReviewButton,_=void 0!==u&&u,h=l.onAccordionChange;l.handleReviewClick;var v=l.pendingData,m=l.customStyles;return n.jsx(i.Accordion,e.__assign({type:"single",collapsible:!0,className:r.default.accordion,value:d,onValueChange:function(e){return h(e)},style:null==m?void 0:m.accordion},{children:n.jsxs(i.AccordionItem,e.__assign({value:o,className:r.default.accordionItem,style:null==m?void 0:m.accordionItem},{children:[n.jsx(i.AccordionTrigger,e.__assign({chevronPosition:"end",className:r.default.accordionTrigger,hideChevron:_,style:null==m?void 0:m.accordionTrigger},{children:n.jsxs("div",e.__assign({className:r.default.triggerInner,style:null==m?void 0:m.triggerInner},{children:[n.jsxs("div",e.__assign({className:r.default.triggerLeft,style:null==m?void 0:m.triggerLeft},{children:[n.jsxs("p",e.__assign({className:r.default.triggerLabel,style:e.__assign(e.__assign({},null==m?void 0:m.triggerLabel),{color:t.labelColor})},{children:[t.label,n.jsxs("span",e.__assign({className:r.default.triggerLabelCount,style:null==m?void 0:m.triggerLabelCount},{children:["(",c,")"]}))]})),v.length>0&&n.jsxs("span",e.__assign({className:r.default.triggerPending,style:null==m?void 0:m.triggerPending},{children:["(",v,")"]}))]})),"risk-gap"===a&&n.jsx("div",e.__assign({className:r.default.triggerRight,style:null==m?void 0:m.triggerRight},{children:n.jsxs("p",e.__assign({className:r.default.decisionStrengthBadge,style:e.__assign({backgroundColor:t.badgeBackgroundColor,color:t.badgeTextColor},null==m?void 0:m.decisionStrengthBadge)},{children:[n.jsx(s.Sparkles,{className:r.default.decisionStrengthIcon,style:null==m?void 0:m.decisionStrengthIcon}),t.decisionStrength]}))}))]}))})),n.jsx(i.AccordionContent,e.__assign({className:r.default.accordionContent,style:null==m?void 0:m.accordionContent},{children:n.jsx("div",e.__assign({className:r.default.accordionContentInner,style:null==m?void 0:m.accordionContentInner},{children:g}))}))]}))}))};
2
2
  //# sourceMappingURL=GapFilterContentWrapper.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),o=require("lucide-react"),t=require("react"),s=require("@mui/material"),i=require("./GapFilterItem.module.css.js"),a=require("../ai-reasoning/AiReasoningCitationContent.js"),r=require("../../icons/CognitiveDecision.js"),c=require("../RequirementAIWrapper/RequirementAIWrapper.js"),l=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(u){u.mode;var d=u.index,f=u.isSelected,m=u.onClick,g=u.item,p=u.onFixClick,x=u.onRedirect,h=u.aiReason;u.panelRef;var _=u.id,j=u.isGenerating,w=void 0!==j&&j,v=t.useState(!1),C=v[0],N=v[1];t.useMemo(function(){return g.components?g.components.split("||"):[]},[g.components]);var q=t.useMemo(function(){return g.score&&isNaN(parseInt(g.score))?0:g.score?parseInt(g.score):0},[g.score]),R=l(q);return console.log("testing::reasoning\n",h),n.jsx("div",e.__assign({className:i.default.outerWrapper,onClick:m},{children:n.jsxs("div",e.__assign({className:i.default.innerCard},{children:[n.jsxs("div",e.__assign({className:i.default.contentBlock},{children:[n.jsxs("div",e.__assign({className:i.default.topRow},{children:[n.jsx("div",e.__assign({className:[i.default.questionText,f?i.default.questionTextSelected:i.default.questionTextDefault].join(" ")},{children:n.jsx(s.Tooltip,e.__assign({title:g.question||"",placement:"top"},{children:n.jsx("span",{className:i.default.questionSpan})}))})),n.jsxs("div",e.__assign({className:i.default.actionsRow},{children:[q>0&&n.jsx("div",e.__assign({className:[i.default.scoreBadge,R.className].join(" ")},{children:"".concat(q,"%")})),g.showFix&&n.jsx("button",e.__assign({className:i.default.fixButton,onClick:function(e){e.stopPropagation(),p()}},{children:"Fix"})),g.showRedirect&&n.jsx(o.SquareArrowOutUpRight,{color:"#3b82f6",size:14,className:i.default.redirectIcon,onClick:function(e){e.stopPropagation(),x()}})]}))]})),n.jsxs("div",e.__assign({className:[i.default.bottomRow,f?i.default.bottomRowSelected:i.default.bottomRowDefault].join(" ")},{children:[n.jsxs("span",e.__assign({className:i.default.gapTextSpan},{children:[(null==g?void 0:g.headerText)?n.jsx("span",e.__assign({className:i.default.gapHeaderText},{children:g.headerText})):n.jsxs("span",e.__assign({className:i.default.gapHeaderText},{children:["Gap ",d+1,"."]}))," ",g.text]})),_&&n.jsxs("span",e.__assign({onClick:function(e){e.stopPropagation(),w||N(!C)},className:[i.default.reasoningToggle,w?i.default.reasoningToggleDisabled:i.default.reasoningToggleActive].join(" ")},{children:[n.jsx(r.default,{}),C?n.jsx(o.ChevronUp,{className:i.default.chevronIcon}):n.jsx(o.ChevronDown,{className:i.default.chevronIcon})]}))]}))]})),C&&n.jsx(c.default,e.__assign({searchQueryList:[""],searchQueryReasoningIdList:[],userStory:[],aiReasoning:[],citations:{},apiCachingConfig:{queryClient:void 0,useGetSignedUrlQuery:function(e,n){throw new Error("Function not implemented.")},useGetSignedUrlMutation:function(e){throw new Error("Function not implemented.")},useExtractAudioPeaksMutation:function(e){throw new Error("Function not implemented.")},useExtractAudioPeaksQuery:function(e,n){throw new Error("Function not implemented.")},useGetVideoSignedUrlMutation:function(e){throw new Error("Function not implemented.")},useGetVideoSignedUrlQuery:function(e,n){throw new Error("Function not implemented.")}},customIcons:void 0,setUserStory:function(e){throw new Error("Function not implemented.")},setAiReasoning:function(e){throw new Error("Function not implemented.")},setCitations:function(e){throw new Error("Function not implemented.")}},{children:n.jsx(a.default,{aiReason:{id:"1",reason:h.Reasoning||"",gap:h.Gap||"",relevance_score:Number(h.Confidence_score),explanation:h.explanation||""},onSelectProceed:p})}))]}))}))},exports.getScoreColorStyles=l;
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(d){d.mode;var c=d.index,u=d.isSelected,g=d.onClick,m=d.item,f=d.onFixClick,_=d.onRedirect,v=d.aiReason;d.panelRef;var p=d.id,x=d.isGenerating,h=void 0!==x&&x,j=d.customStyles,N=d.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 m.components?m.components.split("||"):[]},[m.components]);var T=t.useMemo(function(){return m.score&&isNaN(parseInt(m.score))?0:m.score?parseInt(m.score):0},[m.score]),b=r(T);return console.log("testing::reasoning\n",v),s.jsx("div",e.__assign({className:i.default.outerWrapper,onClick:g,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:m.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,"%")})),m.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"})),m.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==m?void 0:m.headerText)?s.jsx("span",e.__assign({className:i.default.gapHeaderText,style:null==j?void 0:j.itemGapHeaderText},{children:m.headerText})):s.jsxs("span",e.__assign({className:i.default.gapHeaderText,style:null==j?void 0:j.itemGapHeaderText},{children:["Gap ",c+1,"."]}))," ",m.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})]}))}))},exports.getScoreColorStyles=r;
2
2
  //# sourceMappingURL=GapFilterItem.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"tslib";import{jsxs as n,jsx as i}from"react/jsx-runtime";import{useState as o}from"react";import{ChevronUp as t,ChevronDown as r,SquareArrowOutUpRight as a}from"lucide-react";import s from"./CustomChatCrRedirection.module.css.js";import c from"../ai-reasoning/AiReasoningCitationContent.js";import l from"../../icons/CognitiveDecision.js";import d from"../RequirementAIWrapper/RequirementAIWrapper.js";function u(u){var m=u.mode,p=u.msg,g=u.type,f=u.id,h=u.aiReason,v=u.text,w=u.headerText,C=u.decisionStrength;u.statusUi,u.panelRef;var x=u.onHandleSend,R=u.onRedirectClick,b=u.gapType,y=u.isGenerating,N=void 0!==y&&y,S=o(!1),j=S[0],E=S[1];console.log("testing::reasoning",h);var D=function(){"cra"===m?null==x||x("Discuss ambiguities on ".concat(v)):null==x||x("Deep Dive into ".concat(b," ").concat(w,": ").concat(v))};return console.log("testing::aiReasoning",h),n("div",e({className:[s.outerWrapper,N?s.outerWrapperDisabled:""].join(" ")},{children:[n("div",e({className:[s.card,N?s.cardDisabled:s.cardInteractive].join(" ")},{children:[n("div",e({className:s.leftSide},{children:[n("span",e({className:s.textBlock},{children:[w&&n("span",e({className:s.headerText},{children:[w,v?" ":""]})),v]})),n("span",e({onClick:function(e){e.stopPropagation(),N||E(!j)},className:[s.reasoningToggle,N?s.reasoningToggleDisabled:s.reasoningToggleActive].join(" ")},{children:[i(l,{}),i(j?t:r,{className:s.chevronIcon})]}))]})),"risk-gap"===m&&n("div",e({className:s.rightSide},{children:[i("button",e({disabled:N,className:[s.fixButton,N?s.fixButtonDisabled:""].join(" "),onClick:function(e){e.stopPropagation(),N||D()}},{children:"Fix"})),i(a,{onClick:N?void 0:function(){N||null==R||R({type:g,id:f,aiReason:h,msg:p,meta:{headerText:w,decisionStrength:C,text:v}})},size:18,className:[N?s.redirectIconDisabled:s.redirectIcon].join(" ")})]})),"cra"===m&&i("div",e({className:s.rightSide},{children:i("button",e({disabled:N,className:[s.clarifyButton,N?s.fixButtonDisabled:""].join(" "),onClick:function(e){e.stopPropagation(),N||D()}},{children:"Clarify"}))}))]})),j&&i(d,e({searchQueryList:[""],searchQueryReasoningIdList:[],userStory:[],aiReasoning:[],citations:{},apiCachingConfig:{queryClient:void 0,useGetSignedUrlQuery:function(e,n){throw new Error("Function not implemented.")},useGetSignedUrlMutation:function(e){throw new Error("Function not implemented.")},useExtractAudioPeaksMutation:function(e){throw new Error("Function not implemented.")},useExtractAudioPeaksQuery:function(e,n){throw new Error("Function not implemented.")},useGetVideoSignedUrlMutation:function(e){throw new Error("Function not implemented.")},useGetVideoSignedUrlQuery:function(e,n){throw new Error("Function not implemented.")}},customIcons:void 0,setUserStory:function(e){throw new Error("Function not implemented.")},setAiReasoning:function(e){throw new Error("Function not implemented.")},setCitations:function(e){throw new Error("Function not implemented.")}},{children:i(c,{aiReason:{id:"1",reason:h.Reasoning||"",gap:h.Gap||"",relevance_score:Number(h.Confidence_score),explanation:h.explanation||""},onSelectProceed:D})}))]}))}export{u as CustomChatCrRedirection};
1
+ import{__assign as e}from"tslib";import{jsx as i,jsxs as n}from"react/jsx-runtime";import{useState as o}from"react";import{ChevronUp as t,ChevronDown as l,SquareArrowOutUpRight as r}from"lucide-react";import a from"./CustomChatCrRedirection.module.css.js";import s from"../ai-reasoning/AiReasoningCitationContent.js";import c from"../../icons/CognitiveDecision.js";function d(d){var u=d.mode,g=d.msg,v=d.type,m=d.id,p=d.aiReason,f=d.text,h=d.headerText,y=d.decisionStrength;d.statusUi,d.panelRef;var b=d.onHandleSend,x=d.onRedirectClick,C=d.gapType,D=d.isGenerating,N=void 0!==D&&D,S=d.customStyles,R=d.customIcons,T=o(!1),j=T[0],B=T[1];console.log("testing::reasoning",p);var I=(null==R?void 0:R.highConfidence)||i(c,{}),k=function(){"cra"===u?null==b||b("Discuss ambiguities on ".concat(f)):null==b||b("Deep Dive into ".concat(C," ").concat(h,": ").concat(f))};return console.log("testing::aiReasoning",p),n("div",e({className:[a.outerWrapper,N?a.outerWrapperDisabled:""].join(" "),style:e(e({},null==S?void 0:S.redirectionOuterWrapper),N?null==S?void 0:S.redirectionOuterWrapperDisabled:{})},{children:[n("div",e({className:[a.card,N?a.cardDisabled:a.cardInteractive].join(" "),style:e(e({},null==S?void 0:S.redirectionCard),N?null==S?void 0:S.redirectionCardDisabled:null==S?void 0:S.redirectionCardInteractive)},{children:[n("div",e({className:a.leftSide,style:null==S?void 0:S.redirectionLeftSide},{children:[n("span",e({className:a.textBlock,style:null==S?void 0:S.redirectionTextBlock},{children:[h&&n("span",e({className:a.headerText,style:null==S?void 0:S.redirectionHeaderText},{children:[h,f?" ":""]})),f]})),n("span",e({onClick:function(e){e.stopPropagation(),N||B(!j)},className:[a.reasoningToggle,N?a.reasoningToggleDisabled:a.reasoningToggleActive].join(" "),style:e(e({},null==S?void 0:S.reasoningToggle),N?null==S?void 0:S.reasoningToggleDisabled:null==S?void 0:S.reasoningToggleActive)},{children:[I,i(j?t:l,{className:a.chevronIcon,style:null==S?void 0:S.chevronIcon})]}))]})),"risk-gap"===u&&n("div",e({className:a.rightSide,style:null==S?void 0:S.redirectionRightSide},{children:[i("button",e({disabled:N,className:[a.fixButton,N?a.fixButtonDisabled:""].join(" "),style:e(e({},null==S?void 0:S.redirectionFixButton),N?null==S?void 0:S.fixButtonDisabled:{}),onClick:function(e){e.stopPropagation(),N||k()}},{children:"Fix"})),i(r,{onClick:N?void 0:function(){N||null==x||x({type:v,id:m,aiReason:p,msg:g,meta:{headerText:h,decisionStrength:y,text:f}})},size:18,className:[N?a.redirectIconDisabled:a.redirectIcon].join(" "),style:e({},N?null==S?void 0:S.redirectIconDisabled:null==S?void 0:S.redirectIcon)})]})),"cra"===u&&i("div",e({className:a.rightSide,style:null==S?void 0:S.redirectionRightSide},{children:i("button",e({disabled:N,className:[a.clarifyButton,N?a.fixButtonDisabled:""].join(" "),style:e(e({},null==S?void 0:S.redirectionClarifyButton),N?null==S?void 0:S.fixButtonDisabled:{}),onClick:function(e){e.stopPropagation(),N||k()}},{children:"Clarify"}))}))]})),j&&i(s,{aiReason:{id:"1",reason:p.Reasoning||"",gap:p.Gap||"",relevance_score:Number(p.Confidence_score),explanation:p.explanation||""},onSelectProceed:k,customStyles:null==S?void 0:S.aiReasoningStyles})]}))}export{d as CustomChatCrRedirection};
2
2
  //# sourceMappingURL=CustomChatCrRedirection.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e,__rest as t}from"tslib";import{jsx as o,jsxs as n}from"react/jsx-runtime";import{useState as r,useMemo as i,useEffect as a,Children as l,isValidElement as c}from"react";import{capitalize as d}from"lodash";import{GapFilterContentWrapper as s}from"./GapFilterContentWrapper.js";import{GapFilterItem as g}from"./GapFilterItem.js";import{CustomChatCrRedirection as u}from"./CustomChatCrRedirection.js";import{SirenIcon as m,WarningIcon as p,SupportIcon as f}from"./gapFilterSvgs.js";import v from"./GapFilterBlock.module.css.js";import"react-markdown";import"rehype-raw";var h=["critical","recommendation","warning"];function b(e){return(null==e?void 0:e.trim())?e.includes("%")?e:e.replace(/([0-9]+(?:\.[0-9]+)?)/g,"$1%"):""}function C(e){return l.toArray(e).filter(function(e){return c(e)}).filter(function(e){var t;return"gapfilteritem"===e.type||"crredirection"===e.type||"function"==typeof e.type&&"crredirection"===e.type.name||(null===(t=e.key)||void 0===t?void 0:t.includes("crredirection"))}).map(function(e){var o,n,r=e.props,i=r.children,a=t(r,["children"]),l={};Object.keys(a).forEach(function(e){e.startsWith("data-")||(l[e]=a[e])});var c,d,s=(c=a,d={},Object.keys(c).forEach(function(e){e.startsWith("data-")&&(d[e.replace(/^data-/,"")]=c[e])}),d),g=a["decision-strength"];return{text:i,headerText:a.headertext,tags:a.tags,dataAttrs:s,decisionStrength:g,attrs:l,type:"gapfilteritem"===e.type?"gapfilteritem":"crredirection",score:a.score,pendingCount:a.pendingcount,question:a.question,components:a.components,showFix:null!==(o=a.showfix)&&void 0!==o&&o,showRedirect:null!==(n=a.showredirect)&&void 0!==n&&n}})}var y={critical:{labelColor:"#d92d20",badgeBackgroundColor:"#fee4e2",badgeTextColor:"#b42318",icon:o(m,{}),label:"Critical",decisionStrength:"< 70%"},warning:{labelColor:"#dc6803",badgeBackgroundColor:"#fef0c7",badgeTextColor:"#b54708",icon:o(p,{}),label:"Warning",decisionStrength:"70–90%"},recommendation:{labelColor:"#039855",badgeBackgroundColor:"#d1fadf",badgeTextColor:"#027a48",icon:o(f,{}),label:"Just a Suggestion",decisionStrength:"> 90%"},default:{labelColor:"#4b5563",badgeBackgroundColor:"#f3f4f6",badgeTextColor:"#4b5563",icon:o(f,{}),label:"",decisionStrength:""}},x={critical:{labelColor:"text-gray-900",badgeBg:"bg-[#FEE4E2]",badgeText:"text-[#B42318]",iconColor:"text-[#D92D20]"},warning:{labelColor:"text-gray-900",badgeBg:"bg-[#FEF0C7]",badgeText:"text-[#B54708]",iconColor:"text-[#DC6803]"},recommendation:{labelColor:"text-gray-900",badgeBg:"bg-[#D1FADF]",badgeText:"text-[#027A48]",iconColor:"text-[#039855]"}};function k(){return o("div",e({className:v.skeletonWrapper},{children:o("div",e({className:v.skeletonInner},{children:o("div",e({className:v.skeletonCard},{children:n("div",e({className:v.skeletonRow},{children:[n("div",e({className:v.skeletonTextGroup},{children:[o("div",{className:"".concat(v.skeletonLine," ").concat(v.skeletonLineLong)}),o("div",{className:"".concat(v.skeletonLine," ").concat(v.skeletonLineMedium)})]})),n("div",e({className:v.skeletonButtonGroup},{children:[o("div",{className:v.skeletonButton}),o("div",{className:v.skeletonIcon})]}))]}))}))}))}))}var N=function(t){var l=t.mode;t.node;var c=t.children,m=t.type,p=t.supportedmodes,f=void 0===p?"":p,N=t["decision-strength"],S=void 0===N?"":N,B=t.pendingdata,F=void 0===B?"":B,T=t.isGeneratingGap,R=void 0!==T&&T,w=t.selectedGapItemId,A=void 0===w?"":w,I=t.onItemSelect,G=t.onHandleSend,j=t.onModeAction,E=t.msg,W=t.panelRef,D=t.getAccordionState,L=t.setAccordionState,U=t.registerGapFilterBlockCount,z=t.getShowGapReviewButtonType,H=m,q=b(S),M=r(function(){var e;return null!==(e=null==D?void 0:D(H))&&void 0!==e?e:""}),O=M[0],_=M[1],J=function(e){_(e),null==L||L(H,e)},$=C(c),K=i(function(){return $.reduce(function(e,t){var o,n,r,i=null!==(o=t.tags)&&void 0!==o?o:"Uncategorized",a=null!==(r=null===(n=t.dataAttrs)||void 0===n?void 0:n.categoryid)&&void 0!==r?r:"1",l=e.find(function(e){return e.categoryName===i});return l||(l={categoryName:i,categoryId:a,type:t.type,items:[]},e.push(l)),l.items.push(t),e},[])},[$]),P=i(function(){return e=H,h.includes(e)?{labelColor:y[H].labelColor,badgeBackgroundColor:y[H].badgeBackgroundColor,badgeTextColor:y[H].badgeTextColor,label:y[H].label,decisionStrength:q||y[H].decisionStrength}:{labelColor:y.default.labelColor,badgeBackgroundColor:y.default.badgeBackgroundColor,badgeTextColor:y.default.badgeTextColor,label:d(H),decisionStrength:q||""};var e},[H,q]);a(function(){null==U||U(H,$.length)},[H,$.length,U]);var Q=function(t,o,n){if(void 0===n&&(n={}),!R){var r="".concat(K[t].categoryId,"-").concat(o);null==I||I(r);var i=e(e({},K[t].items[o].dataAttrs),n);null==j||j(f,i)}},V=!!z&&z()===H;return n(s,e({mode:l,type:H,config:P,count:$.length,handleReviewClick:function(){$.length>0&&J(H)},openAccordion:O,onAccordionChange:function(e){J(O===e?"":e)},shouldShowReviewButton:V,pendingData:F},{children:[K.map(function(t,r){return n("div",e({className:v.categoryGroup},{children:["gapfilteritem"===t.type&&"Uncategorized"!==t.categoryName&&o("p",e({className:v.categoryLabel},{children:t.categoryName})),t.items.map(function(n,i){var a,c,d,s,m=n.attrs||{},p=null===(a=n.dataAttrs)||void 0===a?void 0:a["cognitive-reasoning"],f=m.id||(null===(c=n.dataAttrs)||void 0===c?void 0:c.id)||"",h="I"===f[0]?"UI_REF":"CHAT_REF",b=null===(d=null==E?void 0:E.contextAwareAgentReasoning)||void 0===d?void 0:d[p];return"gapfilteritem"===n.type?o("div",e({className:[v.gapFilterItemWrapper,"Uncategorized"!==t.categoryName?v.gapFilterItemWrapperIndented:""].join(" ")},{children:o(g,{mode:l,index:i,isSelected:A==="".concat(t.categoryId,"-").concat(i),onClick:function(){return Q(r,i)},onFixClick:function(){return Q(r,i,{triggerFrom:"fix"})},onRedirect:function(){return Q(r,i,{triggerFrom:"redirect"})},item:n,isGenerating:R,aiReason:b,panelRef:null!=W?W:{current:null},id:p})}),i):(console.log("testing::reasoningId",n.type),o("div",e({className:v.crRedirectionGroup},{children:o("div",e({className:v.crRedirectionInner},{children:o(u,{mode:l,msg:E,type:h,text:n.text,headerText:n.headerText,decisionStrength:n.decisionStrength,id:f,gapType:H,onHandleSend:G,isGenerating:R,aiReason:b,statusUi:null!==(s=x[H])&&void 0!==s?s:x.recommendation,panelRef:null!=W?W:{current:null}})}))}),i))})]}),"".concat(t.categoryName,"-").concat(r))}),R&&o(k,{})]}))};export{N as GapFilterBlock,b as normalizeDecisionStrength};
1
+ import{__assign as e,__rest as t}from"tslib";import{jsx as o,jsxs as n}from"react/jsx-runtime";import{useState as r,useMemo as i,useEffect as l,Children as a,isValidElement as c}from"react";import{capitalize as d}from"lodash";import{GapFilterContentWrapper as s}from"./GapFilterContentWrapper.js";import{GapFilterItem as u}from"./GapFilterItem.js";import{CustomChatCrRedirection as g}from"./CustomChatCrRedirection.js";import{SirenIcon as m,WarningIcon as p,SupportIcon as v}from"./gapFilterSvgs.js";import f from"./GapFilterBlock.module.css.js";import"react-markdown";import"rehype-raw";import"../RequirementAIWrapper/RequirementAIWrapper.js";var y=["critical","recommendation","warning"];function h(e){return(null==e?void 0:e.trim())?e.includes("%")?e:e.replace(/([0-9]+(?:\.[0-9]+)?)/g,"$1%"):""}function b(e){return a.toArray(e).filter(function(e){return c(e)}).filter(function(e){var t;return"gapfilteritem"===e.type||"crredirection"===e.type||"function"==typeof e.type&&"crredirection"===e.type.name||(null===(t=e.key)||void 0===t?void 0:t.includes("crredirection"))}).map(function(e){var o,n,r=e.props,i=r.children,l=t(r,["children"]),a={};Object.keys(l).forEach(function(e){e.startsWith("data-")||(a[e]=l[e])});var c,d,s=(c=l,d={},Object.keys(c).forEach(function(e){e.startsWith("data-")&&(d[e.replace(/^data-/,"")]=c[e])}),d),u=l["decision-strength"];return{text:i,headerText:l.headertext,tags:l.tags,dataAttrs:s,decisionStrength:u,attrs:a,type:"gapfilteritem"===e.type?"gapfilteritem":"crredirection",score:l.score,pendingCount:l.pendingcount,question:l.question,components:l.components,showFix:null!==(o=l.showfix)&&void 0!==o&&o,showRedirect:null!==(n=l.showredirect)&&void 0!==n&&n}})}var C={critical:{labelColor:"text-gray-900",badgeBg:"bg-[#FEE4E2]",badgeText:"text-[#B42318]",iconColor:"text-[#D92D20]"},warning:{labelColor:"text-gray-900",badgeBg:"bg-[#FEF0C7]",badgeText:"text-[#B54708]",iconColor:"text-[#DC6803]"},recommendation:{labelColor:"text-gray-900",badgeBg:"bg-[#D1FADF]",badgeText:"text-[#027A48]",iconColor:"text-[#039855]"}};function k(t){var r=t.customStyles;return o("div",e({className:f.skeletonWrapper,style:null==r?void 0:r.skeletonWrapper},{children:o("div",e({className:f.skeletonInner,style:null==r?void 0:r.skeletonInner},{children:o("div",e({className:f.skeletonCard,style:null==r?void 0:r.skeletonCard},{children:n("div",e({className:f.skeletonRow,style:null==r?void 0:r.skeletonRow},{children:[n("div",e({className:f.skeletonTextGroup,style:null==r?void 0:r.skeletonGroup},{children:[o("div",{className:"".concat(f.skeletonLine," ").concat(f.skeletonLineLong),style:null==r?void 0:r.skeletonLineLong}),o("div",{className:"".concat(f.skeletonLine," ").concat(f.skeletonLineMedium),style:null==r?void 0:r.skeletonLineMedium})]})),n("div",e({className:f.skeletonButtonGroup,style:null==r?void 0:r.skeletonButtonGroup},{children:[o("div",{className:f.skeletonButton,style:null==r?void 0:r.skeletonButton}),o("div",{className:f.skeletonIcon,style:null==r?void 0:r.skeletonIcon})]}))]}))}))}))}))}var x=function(t){var a=t.mode;t.node;var c=t.children,x=t.type,S=t.supportedmodes,I=void 0===S?"":S,N=t["decision-strength"],R=void 0===N?"":N,B=t.pendingdata,A=void 0===B?"":B,F=t.isGeneratingGap,G=void 0!==F&&F,T=t.selectedGapItemId,w=void 0===T?"":T,j=t.onItemSelect,L=t.onHandleSend,W=t.onModeAction,E=t.msg,D=t.panelRef,U=t.getAccordionState,q=t.setAccordionState,M=t.registerGapFilterBlockCount,z=t.getShowGapReviewButtonType,H=t.customStyles,O=t.customIcons,_=x,J=h(R),$=r(function(){var e;return null!==(e=null==U?void 0:U(_))&&void 0!==e?e:""}),K=$[0],P=$[1],Q=function(e){P(e),null==q||q(_,e)},V=b(c),X=i(function(){return V.reduce(function(e,t){var o,n,r,i=null!==(o=t.tags)&&void 0!==o?o:"Uncategorized",l=null!==(r=null===(n=t.dataAttrs)||void 0===n?void 0:n.categoryid)&&void 0!==r?r:"1",a=e.find(function(e){return e.categoryName===i});return a||(a={categoryName:i,categoryId:l,type:t.type,items:[]},e.push(a)),a.items.push(t),e},[])},[V]),Y={critical:{labelColor:"#d92d20",badgeBackgroundColor:"#fee4e2",badgeTextColor:"#b42318",icon:o(m,{}),label:"risk-gap"===a?"Critical":"Must Clarify",decisionStrength:"< 70%"},warning:{labelColor:"#dc6803",badgeBackgroundColor:"#fef0c7",badgeTextColor:"#b54708",icon:o(p,{}),label:"risk-gap"===a?"Warning":"Should Clarify",decisionStrength:"70–90%"},recommendation:{labelColor:"#039855",badgeBackgroundColor:"#d1fadf",badgeTextColor:"#027a48",icon:o(v,{}),label:"risk-gap"===a?"Just a Suggestion":"Nice to Clarify",decisionStrength:"> 90%"},default:{labelColor:"#4b5563",badgeBackgroundColor:"#f3f4f6",badgeTextColor:"#4b5563",icon:o(v,{}),label:"",decisionStrength:""}},Z=i(function(){return e=_,y.includes(e)?{labelColor:Y[_].labelColor,badgeBackgroundColor:Y[_].badgeBackgroundColor,badgeTextColor:Y[_].badgeTextColor,label:Y[_].label,decisionStrength:J||Y[_].decisionStrength}:{labelColor:Y.default.labelColor,badgeBackgroundColor:Y.default.badgeBackgroundColor,badgeTextColor:Y.default.badgeTextColor,label:d(_),decisionStrength:J||""};var e},[_,J]);l(function(){null==M||M(_,V.length)},[_,V.length,M]);var ee=function(t,o,n){if(void 0===n&&(n={}),!G){var r="".concat(X[t].categoryId,"-").concat(o);null==j||j(r);var i=e(e({},X[t].items[o].dataAttrs),n);null==W||W(I,i)}};return z&&z(),n(s,e({mode:a,type:_,config:Z,count:V.length,handleReviewClick:function(){V.length>0&&Q(_)},openAccordion:K,onAccordionChange:function(e){Q(K===e?"":e)},shouldShowReviewButton:!1,pendingData:A,customStyles:H},{children:[X.map(function(t,r){return n("div",e({className:f.categoryGroup,style:null==H?void 0:H.categoryGroup},{children:["gapfilteritem"===t.type&&"Uncategorized"!==t.categoryName&&o("p",e({className:f.categoryLabel,style:null==H?void 0:H.categoryLabel},{children:t.categoryName})),t.items.map(function(n,i){var l,c,d,s,m=n.attrs||{},p=null===(l=n.dataAttrs)||void 0===l?void 0:l["cognitive-reasoning"],v=m.id||(null===(c=n.dataAttrs)||void 0===c?void 0:c.id)||"",y="I"===v[0]?"UI_REF":"CHAT_REF",h=null===(d=null==E?void 0:E.contextAwareAgentReasoning)||void 0===d?void 0:d[p];return"gapfilteritem"===n.type?o("div",e({className:[f.gapFilterItemWrapper,"Uncategorized"!==t.categoryName?f.gapFilterItemWrapperIndented:""].join(" "),style:null==H?void 0:H.blockContainer},{children:o(u,{mode:a,index:i,isSelected:w==="".concat(t.categoryId,"-").concat(i),onClick:function(){return ee(r,i)},onFixClick:function(){return ee(r,i,{triggerFrom:"fix"})},onRedirect:function(){return ee(r,i,{triggerFrom:"redirect"})},item:n,isGenerating:G,aiReason:h,panelRef:null!=D?D:{current:null},id:p,customStyles:H,customIcons:O})}),i):(console.log("testing::reasoningId",n.type),o("div",e({className:f.crRedirectionGroup,style:null==H?void 0:H.crRedirectionGroup},{children:o("div",e({className:f.crRedirectionInner,style:null==H?void 0:H.crRedirectionInner},{children:o(g,{mode:a,msg:E,type:y,text:n.text,headerText:n.headerText,decisionStrength:n.decisionStrength,id:v,gapType:_,onHandleSend:L,isGenerating:G,aiReason:h,statusUi:null!==(s=C[_])&&void 0!==s?s:C.recommendation,panelRef:null!=D?D:{current:null},customStyles:H,customIcons:O})}))}),i))})]}),"".concat(t.categoryName,"-").concat(r))}),G&&o(k,{customStyles:H})]}))};export{x as GapFilterBlock,h as normalizeDecisionStrength};
2
2
  //# sourceMappingURL=GapFilterBlock.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"tslib";import{jsx as r,jsxs as n}from"react/jsx-runtime";import{Accordion as o,AccordionItem as i,AccordionTrigger as a,AccordionContent as c}from"../../shared/Accordian.js";import{Sparkles as l}from"lucide-react";import t from"./GapFilterContentWrapper.module.css.js";var s=function(s){var d=s.mode,g=s.type,h=s.config,m=s.count,p=s.openAccordion,u=s.children,v=s.shouldShowReviewButton,N=void 0!==v&&v,C=s.onAccordionChange;s.handleReviewClick;var b=s.pendingData;return r(o,e({type:"single",collapsible:!0,className:t.accordion,value:p,onValueChange:function(e){return C(e)}},{children:n(i,e({value:g,className:t.accordionItem},{children:[r(a,e({chevronPosition:"end",className:t.accordionTrigger,hideChevron:N},{children:n("div",e({className:t.triggerInner},{children:[n("div",e({className:t.triggerLeft},{children:[n("p",e({className:t.triggerLabel,style:{color:h.labelColor}},{children:[h.label,n("span",e({className:t.triggerLabelCount},{children:["(",m,")"]}))]})),b.length>0&&n("span",e({className:t.triggerPending},{children:["(",b,")"]}))]})),"risk-gap"===d&&r("div",e({className:t.triggerRight},{children:n("p",e({className:t.decisionStrengthBadge,style:{backgroundColor:h.badgeBackgroundColor,color:h.badgeTextColor}},{children:[r(l,{className:t.decisionStrengthIcon}),h.decisionStrength]}))}))]}))})),r(c,e({className:t.accordionContent},{children:r("div",e({className:t.accordionContentInner},{children:u}))}))]}))}))};export{s as GapFilterContentWrapper};
1
+ import{__assign as e}from"tslib";import{jsx as n,jsxs as r}from"react/jsx-runtime";import{Accordion as o,AccordionItem as l,AccordionTrigger as i,AccordionContent as t}from"../../shared/Accordian.js";import{Sparkles as c}from"lucide-react";import a from"./GapFilterContentWrapper.module.css.js";var d=function(d){var s=d.mode,g=d.type,u=d.config,h=d.count,m=d.openAccordion,v=d.children,p=d.shouldShowReviewButton,y=void 0!==p&&p,C=d.onAccordionChange;d.handleReviewClick;var N=d.pendingData,b=d.customStyles;return n(o,e({type:"single",collapsible:!0,className:a.accordion,value:m,onValueChange:function(e){return C(e)},style:null==b?void 0:b.accordion},{children:r(l,e({value:g,className:a.accordionItem,style:null==b?void 0:b.accordionItem},{children:[n(i,e({chevronPosition:"end",className:a.accordionTrigger,hideChevron:y,style:null==b?void 0:b.accordionTrigger},{children:r("div",e({className:a.triggerInner,style:null==b?void 0:b.triggerInner},{children:[r("div",e({className:a.triggerLeft,style:null==b?void 0:b.triggerLeft},{children:[r("p",e({className:a.triggerLabel,style:e(e({},null==b?void 0:b.triggerLabel),{color:u.labelColor})},{children:[u.label,r("span",e({className:a.triggerLabelCount,style:null==b?void 0:b.triggerLabelCount},{children:["(",h,")"]}))]})),N.length>0&&r("span",e({className:a.triggerPending,style:null==b?void 0:b.triggerPending},{children:["(",N,")"]}))]})),"risk-gap"===s&&n("div",e({className:a.triggerRight,style:null==b?void 0:b.triggerRight},{children:r("p",e({className:a.decisionStrengthBadge,style:e({backgroundColor:u.badgeBackgroundColor,color:u.badgeTextColor},null==b?void 0:b.decisionStrengthBadge)},{children:[n(c,{className:a.decisionStrengthIcon,style:null==b?void 0:b.decisionStrengthIcon}),u.decisionStrength]}))}))]}))})),n(t,e({className:a.accordionContent,style:null==b?void 0:b.accordionContent},{children:n("div",e({className:a.accordionContentInner,style:null==b?void 0:b.accordionContentInner},{children:v}))}))]}))}))};export{d as GapFilterContentWrapper};
2
2
  //# sourceMappingURL=GapFilterContentWrapper.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 r,ChevronUp as t,ChevronDown as i}from"lucide-react";import{useState as a,useMemo as c}from"react";import{Tooltip as s}from"@mui/material";import l from"./GapFilterItem.module.css.js";import d from"../ai-reasoning/AiReasoningCitationContent.js";import m from"../../icons/CognitiveDecision.js";import u from"../RequirementAIWrapper/RequirementAIWrapper.js";var p=function(e){return e>90?{borderColor:"#22c55e",backgroundColor:"#f0fdf4",color:"#16a34a",className:l.scoreBadgeHigh}:e>=70&&e<=90?{borderColor:"#eab308",backgroundColor:"#fefce8",color:"#a16207",className:l.scoreBadgeMedium}:{borderColor:"#ef4444",backgroundColor:"#fef2f2",color:"#dc2626",className:l.scoreBadgeLow}},f=function(f){f.mode;var g=f.index,h=f.isSelected,w=f.onClick,N=f.item,C=f.onFixClick,v=f.onRedirect,x=f.aiReason;f.panelRef;var R=f.id,b=f.isGenerating,F=void 0!==b&&b,k=a(!1),S=k[0],E=k[1];c(function(){return N.components?N.components.split("||"):[]},[N.components]);var T=c(function(){return N.score&&isNaN(parseInt(N.score))?0:N.score?parseInt(N.score):0},[N.score]),j=p(T);return console.log("testing::reasoning\n",x),o("div",e({className:l.outerWrapper,onClick:w},{children:n("div",e({className:l.innerCard},{children:[n("div",e({className:l.contentBlock},{children:[n("div",e({className:l.topRow},{children:[o("div",e({className:[l.questionText,h?l.questionTextSelected:l.questionTextDefault].join(" ")},{children:o(s,e({title:N.question||"",placement:"top"},{children:o("span",{className:l.questionSpan})}))})),n("div",e({className:l.actionsRow},{children:[T>0&&o("div",e({className:[l.scoreBadge,j.className].join(" ")},{children:"".concat(T,"%")})),N.showFix&&o("button",e({className:l.fixButton,onClick:function(e){e.stopPropagation(),C()}},{children:"Fix"})),N.showRedirect&&o(r,{color:"#3b82f6",size:14,className:l.redirectIcon,onClick:function(e){e.stopPropagation(),v()}})]}))]})),n("div",e({className:[l.bottomRow,h?l.bottomRowSelected:l.bottomRowDefault].join(" ")},{children:[n("span",e({className:l.gapTextSpan},{children:[(null==N?void 0:N.headerText)?o("span",e({className:l.gapHeaderText},{children:N.headerText})):n("span",e({className:l.gapHeaderText},{children:["Gap ",g+1,"."]}))," ",N.text]})),R&&n("span",e({onClick:function(e){e.stopPropagation(),F||E(!S)},className:[l.reasoningToggle,F?l.reasoningToggleDisabled:l.reasoningToggleActive].join(" ")},{children:[o(m,{}),o(S?t:i,{className:l.chevronIcon})]}))]}))]})),S&&o(u,e({searchQueryList:[""],searchQueryReasoningIdList:[],userStory:[],aiReasoning:[],citations:{},apiCachingConfig:{queryClient:void 0,useGetSignedUrlQuery:function(e,o){throw new Error("Function not implemented.")},useGetSignedUrlMutation:function(e){throw new Error("Function not implemented.")},useExtractAudioPeaksMutation:function(e){throw new Error("Function not implemented.")},useExtractAudioPeaksQuery:function(e,o){throw new Error("Function not implemented.")},useGetVideoSignedUrlMutation:function(e){throw new Error("Function not implemented.")},useGetVideoSignedUrlQuery:function(e,o){throw new Error("Function not implemented.")}},customIcons:void 0,setUserStory:function(e){throw new Error("Function not implemented.")},setAiReasoning:function(e){throw new Error("Function not implemented.")},setCitations:function(e){throw new Error("Function not implemented.")}},{children:o(d,{aiReason:{id:"1",reason:x.Reasoning||"",gap:x.Gap||"",relevance_score:Number(x.Confidence_score),explanation:x.explanation||""},onSelectProceed:C})}))]}))}))};export{f as GapFilterItem,p 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 console.log("testing::reasoning\n",R),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})]}))}))};export{p as GapFilterItem,u as getScoreColorStyles};
2
2
  //# sourceMappingURL=GapFilterItem.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"RequirementAiTest.d.ts","sourceRoot":"","sources":["../../../src/RequirementAiTest.tsx"],"names":[],"mappings":"AAwBA,QAAA,MAAM,iBAAiB,+CAwgDtB,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
1
+ {"version":3,"file":"RequirementAiTest.d.ts","sourceRoot":"","sources":["../../../src/RequirementAiTest.tsx"],"names":[],"mappings":"AAwBA,QAAA,MAAM,iBAAiB,+CA8iDtB,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
@@ -1,5 +1,7 @@
1
1
  /// <reference types="react" />
2
+ import { UserStoryIcons } from '../../types/aiReasoning.type';
2
3
  import { AIReasoningType } from './GapFilterBlock';
4
+ import { GapFilterStyles } from '../../types/gapFilterStyles.type';
3
5
  export type RefType = 'CHAT_REF' | 'UI_REF';
4
6
  export interface StatusUIConfig {
5
7
  labelColor: string;
@@ -26,6 +28,8 @@ interface CustomChatCrRedirectionProps extends InlineRefIconProps {
26
28
  onHandleSend?: (userMessage: string) => void;
27
29
  gapType?: string;
28
30
  isGenerating?: boolean;
31
+ customStyles?: GapFilterStyles;
32
+ customIcons?: UserStoryIcons;
29
33
  /**
30
34
  * Library consumers provide this instead of the internal microFrontendApi.
31
35
  * Called when the redirect icon (SquareArrowOutUpRight) is clicked.
@@ -43,6 +47,6 @@ interface CustomChatCrRedirectionProps extends InlineRefIconProps {
43
47
  };
44
48
  }) => void;
45
49
  }
46
- export declare function CustomChatCrRedirection({ mode, msg, type, id, aiReason, text, headerText, decisionStrength, statusUi, panelRef, onHandleSend, onRedirectClick, gapType, isGenerating, }: CustomChatCrRedirectionProps): import("react/jsx-runtime").JSX.Element;
50
+ export declare function CustomChatCrRedirection({ mode, msg, type, id, aiReason, text, headerText, decisionStrength, statusUi, panelRef, onHandleSend, onRedirectClick, gapType, isGenerating, customStyles, customIcons }: CustomChatCrRedirectionProps): import("react/jsx-runtime").JSX.Element;
47
51
  export {};
48
52
  //# sourceMappingURL=CustomChatCrRedirection.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CustomChatCrRedirection.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.tsx"],"names":[],"mappings":";AAQA,OAAO,EA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,CAAC,EACtC,IAAI,EACJ,GAAG,EACH,IAAI,EACJ,EAAE,EACF,QAAQ,EACR,IAAI,EACJ,UAAU,EACV,gBAAgB,EAChB,QAAQ,EACR,QAAQ,EACR,YAAY,EACZ,eAAe,EACf,OAAO,EACP,YAAoB,GACrB,EAAE,4BAA4B,2CAkM9B"}
1
+ {"version":3,"file":"CustomChatCrRedirection.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAInE,MAAM,MAAM,OAAO,GAAG,UAAU,GAAG,QAAQ,CAAC;AAE5C,MAAM,WAAW,cAAc;IAC7B,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,kBAAkB;IACjC,GAAG,EAAE,GAAG,CAAC;IACT,IAAI,EAAE,OAAO,CAAC;IACd,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,eAAe,CAAC;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;IAC/B,IAAI,EAAE,KAAK,GAAG,UAAU,CAAA;CACzB;AAED,UAAU,4BAA6B,SAAQ,kBAAkB;IAC/D,QAAQ,EAAE;QACR,OAAO,EAAE,MAAM,CAAC;QAChB,SAAS,EAAE,MAAM,CAAC;KACnB,CAAC;IACF,YAAY,CAAC,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,YAAY,CAAC,EAAE,eAAe,CAAA;IAC9B,WAAW,CAAC,EAAE,cAAc,CAAA;IAC5B;;;;OAIG;IACH,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE;QAC1B,IAAI,EAAE,OAAO,CAAC;QACd,EAAE,EAAE,MAAM,CAAC;QACX,QAAQ,EAAE,eAAe,CAAC;QAC1B,GAAG,EAAE,GAAG,CAAC;QACT,IAAI,EAAE;YAAE,UAAU,CAAC,EAAE,MAAM,CAAC;YAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;YAAC,IAAI,EAAE,MAAM,CAAA;SAAE,CAAC;KACxE,KAAK,IAAI,CAAC;CACZ;AAID,wBAAgB,uBAAuB,CAAC,EACtC,IAAI,EACJ,GAAG,EACH,IAAI,EACJ,EAAE,EACF,QAAQ,EACR,IAAI,EACJ,UAAU,EACV,gBAAgB,EAChB,QAAQ,EACR,QAAQ,EACR,YAAY,EACZ,eAAe,EACf,OAAO,EACP,YAAoB,EACpB,YAAY,EACZ,WAAW,EACZ,EAAE,4BAA4B,2CAoK9B"}
@@ -1,4 +1,6 @@
1
1
  import React from 'react';
2
+ import { GapFilterStyles } from '../../types/gapFilterStyles.type';
3
+ import { UserStoryIcons } from '../../types/aiReasoning.type';
2
4
  export type GapFilterType = 'critical' | 'warning' | 'recommendation';
3
5
  export type RefType = 'CHAT_REF' | 'UI_REF';
4
6
  export interface AIReasoningType {
@@ -24,20 +26,24 @@ export interface GapFilterBlockProps {
24
26
  onItemSelect?: (id: string) => void;
25
27
  onHandleSend?: (message: string) => void;
26
28
  onModeAction?: (supportedmodes: string, payload: Record<string, any>) => void;
27
- msg?: any;
29
+ msg: any;
28
30
  panelRef?: React.RefObject<any>;
29
31
  getAccordionState?: (type: string) => string;
30
32
  setAccordionState?: (type: string, value: string) => void;
31
33
  registerGapFilterBlockCount?: (type: GapFilterType, count: number) => void;
32
34
  getShowGapReviewButtonType?: () => GapFilterType | null;
35
+ customStyles?: GapFilterStyles;
36
+ customIcons?: UserStoryIcons;
33
37
  }
34
38
  export declare const GapFilterBlock: React.FC<GapFilterBlockProps>;
35
39
  export interface GapFilterMarkdownRendererProps {
36
40
  mode: "cra" | "risk-gap";
37
41
  markdown: string;
38
- msg?: any;
42
+ msg: any;
39
43
  isGeneratingGap?: boolean;
40
44
  panelRef?: React.RefObject<any>;
45
+ customStyles?: GapFilterStyles;
46
+ customIcons?: UserStoryIcons;
41
47
  }
42
48
  export declare const GapFilterMarkdownRenderer: React.FC<GapFilterMarkdownRendererProps>;
43
49
  //# sourceMappingURL=GapFilterBlock.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"GapFilterBlock.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/lsc-reason-gap/GapFilterBlock.tsx"],"names":[],"mappings":"AACA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAgBjF,MAAM,MAAM,aAAa,GAAG,UAAU,GAAG,SAAS,GAAG,gBAAgB,CAAC;AACtE,MAAM,MAAM,OAAO,GAAG,UAAU,GAAG,QAAQ,CAAC;AAQ5C,MAAM,WAAW,eAAe;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACrC,qBAAqB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC5C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAcD,wBAAgB,yBAAyB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAI7D;AAkID,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,KAAK,GAAG,UAAU,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AO,CAAC;IAC1B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;CACjC;AAED,eAAO,MAAM,yBAAyB,EAAE,KAAK,CAAC,EAAE,CAAC,8BAA8B,CA0D9E,CAAC"}
1
+ {"version":3,"file":"GapFilterBlock.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/lsc-reason-gap/GapFilterBlock.tsx"],"names":[],"mappings":"AACA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAajF,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,EAAgB,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAO5E,MAAM,MAAM,aAAa,GAAG,UAAU,GAAG,SAAS,GAAG,gBAAgB,CAAC;AACtE,MAAM,MAAM,OAAO,GAAG,UAAU,GAAG,QAAQ,CAAC;AAQ5C,MAAM,WAAW,eAAe;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACrC,qBAAqB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC5C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAcD,wBAAgB,yBAAyB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAI7D;AA6FD,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,KAAK,GAAG,UAAU,CAAA;IACxB,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,mBAAmB,CAAC,EAAE,MAA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C,EAAE,cAAc,CAAA;CAC7B;AAED,eAAO,MAAM,yBAAyB,EAAE,KAAK,CAAC,EAAE,CAAC,8BAA8B,CAqH9E,CAAC"}
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  import { GapFilterType } from './GapFilterBlock';
3
+ import { GapFilterStyles } from '../../types/gapFilterStyles.type';
3
4
  export interface GapFilterConfig {
4
5
  label: string;
5
6
  decisionStrength: string;
@@ -18,7 +19,8 @@ type GapFilterContentProps = {
18
19
  handleReviewClick: () => void;
19
20
  pendingData: string;
20
21
  mode: "cra" | "risk-gap";
22
+ customStyles?: GapFilterStyles;
21
23
  };
22
- export declare const GapFilterContentWrapper: ({ mode, type, config, count, openAccordion, children, shouldShowReviewButton, onAccordionChange, handleReviewClick, pendingData, }: GapFilterContentProps) => import("react/jsx-runtime").JSX.Element;
24
+ export declare const GapFilterContentWrapper: ({ mode, type, config, count, openAccordion, children, shouldShowReviewButton, onAccordionChange, handleReviewClick, pendingData, customStyles }: GapFilterContentProps) => import("react/jsx-runtime").JSX.Element;
23
25
  export {};
24
26
  //# sourceMappingURL=GapFilterContentWrapper.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"GapFilterContentWrapper.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/lsc-reason-gap/GapFilterContentWrapper.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAMjD,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,gBAAgB,EAAE,MAAM,CAAC;IAEzB,UAAU,EAAE,MAAM,CAAC;IACnB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,KAAK,qBAAqB,GAAG;IAC3B,IAAI,EAAE,aAAa,CAAC;IACpB,MAAM,EAAE,eAAe,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,sBAAsB,EAAE,OAAO,CAAC;IAChC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,iBAAiB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,iBAAiB,EAAE,MAAM,IAAI,CAAC;IAC9B,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,KAAK,GAAG,UAAU,CAAA;CACzB,CAAC;AAEF,eAAO,MAAM,uBAAuB,uIAWjC,qBAAqB,4CAqEvB,CAAC"}
1
+ {"version":3,"file":"GapFilterContentWrapper.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/lsc-reason-gap/GapFilterContentWrapper.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAGjD,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAInE,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,gBAAgB,EAAE,MAAM,CAAC;IAEzB,UAAU,EAAE,MAAM,CAAC;IACnB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,KAAK,qBAAqB,GAAG;IAC3B,IAAI,EAAE,aAAa,CAAC;IACpB,MAAM,EAAE,eAAe,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,sBAAsB,EAAE,OAAO,CAAC;IAChC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,iBAAiB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,iBAAiB,EAAE,MAAM,IAAI,CAAC;IAC9B,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,KAAK,GAAG,UAAU,CAAC;IACzB,YAAY,CAAC,EAAE,eAAe,CAAA;CAC/B,CAAC;AAEF,eAAO,MAAM,uBAAuB,oJAYjC,qBAAqB,4CAwEvB,CAAC"}
@@ -1,5 +1,7 @@
1
1
  /// <reference types="react" />
2
+ import { UserStoryIcons } from '../../types/aiReasoning.type';
2
3
  import { AIReasoningType } from './GapFilterBlock';
4
+ import { GapFilterStyles } from '../../types/gapFilterStyles.type';
3
5
  export interface IGapFilterItem {
4
6
  text: string;
5
7
  headerText?: string;
@@ -25,6 +27,8 @@ type GapFilterItemProps = {
25
27
  panelRef: React.RefObject<any>;
26
28
  id: string;
27
29
  isGenerating?: boolean;
30
+ customStyles?: GapFilterStyles;
31
+ customIcons?: UserStoryIcons;
28
32
  };
29
33
  export declare const getScoreColorStyles: (score: number) => {
30
34
  borderColor: string;
@@ -32,6 +36,6 @@ export declare const getScoreColorStyles: (score: number) => {
32
36
  color: string;
33
37
  className: string;
34
38
  };
35
- export declare const GapFilterItem: ({ mode, index, isSelected, onClick, item, onFixClick, onRedirect, aiReason, panelRef, id, isGenerating, }: GapFilterItemProps) => import("react/jsx-runtime").JSX.Element;
39
+ export declare const GapFilterItem: ({ mode, index, isSelected, onClick, item, onFixClick, onRedirect, aiReason, panelRef, id, isGenerating, customStyles, customIcons, }: GapFilterItemProps) => import("react/jsx-runtime").JSX.Element;
36
40
  export {};
37
41
  //# sourceMappingURL=GapFilterItem.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"GapFilterItem.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/lsc-reason-gap/GapFilterItem.tsx"],"names":[],"mappings":";AAeA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAKnD,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,EAAE;QACT,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;KACrB,CAAC;IACF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAID,KAAK,kBAAkB,GAAG;IACxB,IAAI,EAAE,KAAK,GAAG,UAAU,CAAA;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,OAAO,CAAC;IACpB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,IAAI,EAAE,cAAc,CAAC;IACrB,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,QAAQ,EAAE,eAAe,CAAC;IAC1B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC;AAIF,eAAO,MAAM,mBAAmB,UACvB,MAAM,KACZ;IAAE,WAAW,EAAE,MAAM,CAAC;IAAC,eAAe,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAsBlF,CAAC;AAIF,eAAO,MAAM,aAAa,8GAYvB,kBAAkB,4CAuLpB,CAAC"}
1
+ {"version":3,"file":"GapFilterItem.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/lsc-reason-gap/GapFilterItem.tsx"],"names":[],"mappings":";AAUA,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAKnE,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,EAAE;QACT,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;KACrB,CAAC;IACF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAID,KAAK,kBAAkB,GAAG;IACxB,IAAI,EAAE,KAAK,GAAG,UAAU,CAAA;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,OAAO,CAAC;IACpB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,IAAI,EAAE,cAAc,CAAC;IACrB,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,QAAQ,EAAE,eAAe,CAAC;IAC1B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,YAAY,CAAC,EAAE,eAAe,CAAC;IAC/B,WAAW,CAAC,EAAE,cAAc,CAAC;CAC9B,CAAC;AAIF,eAAO,MAAM,mBAAmB,UACvB,MAAM,KACZ;IAAE,WAAW,EAAE,MAAM,CAAC;IAAC,eAAe,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAsBlF,CAAC;AAIF,eAAO,MAAM,aAAa,yIAcvB,kBAAkB,4CA+IpB,CAAC"}
@@ -0,0 +1,73 @@
1
+ /// <reference types="react" />
2
+ import { AiReasoningCustomStyles } from "./aiReasoning.type";
3
+ export interface GapFilterStyles {
4
+ blockContainer?: React.CSSProperties;
5
+ categoryGroup?: React.CSSProperties;
6
+ categoryLabel?: React.CSSProperties;
7
+ accordion?: React.CSSProperties;
8
+ accordionItem?: React.CSSProperties;
9
+ accordionTrigger?: React.CSSProperties;
10
+ triggerInner?: React.CSSProperties;
11
+ triggerLeft?: React.CSSProperties;
12
+ triggerLabel?: React.CSSProperties;
13
+ triggerLabelCount?: React.CSSProperties;
14
+ triggerPending?: React.CSSProperties;
15
+ triggerRight?: React.CSSProperties;
16
+ decisionStrengthBadge?: React.CSSProperties;
17
+ decisionStrengthIcon?: React.CSSProperties;
18
+ accordionContent?: React.CSSProperties;
19
+ accordionContentInner?: React.CSSProperties;
20
+ itemOuterWrapper?: React.CSSProperties;
21
+ itemInnerCard?: React.CSSProperties;
22
+ contentBlock?: React.CSSProperties;
23
+ itemTopRow?: React.CSSProperties;
24
+ itemQuestionText?: React.CSSProperties;
25
+ itemQuestionTextSelected?: React.CSSProperties;
26
+ itemQuestionTextDefault?: React.CSSProperties;
27
+ itemQuestionSpan?: React.CSSProperties;
28
+ itemActionsRow?: React.CSSProperties;
29
+ itemScoreBadge?: React.CSSProperties;
30
+ itemFixButton?: React.CSSProperties;
31
+ itemScoreBadgeHigh?: React.CSSProperties;
32
+ itemScoreBadgeMedium?: React.CSSProperties;
33
+ itemScoreBadgeLow?: React.CSSProperties;
34
+ itemRedirectIcon?: React.CSSProperties;
35
+ itemBottomRow?: React.CSSProperties;
36
+ bottomRowSelected?: React.CSSProperties;
37
+ bottomRowDefault?: React.CSSProperties;
38
+ itemGapText?: React.CSSProperties;
39
+ itemGapHeaderText?: React.CSSProperties;
40
+ itemReasoningToggle?: React.CSSProperties;
41
+ chevronIcon?: React.CSSProperties;
42
+ crRedirectionGroup?: React.CSSProperties;
43
+ crRedirectionInner?: React.CSSProperties;
44
+ redirectionOuterWrapper?: React.CSSProperties;
45
+ redirectionOuterWrapperDisabled?: React.CSSProperties;
46
+ redirectionCard?: React.CSSProperties;
47
+ redirectionCardDisabled?: React.CSSProperties;
48
+ redirectionCardInteractive?: React.CSSProperties;
49
+ redirectionLeftSide?: React.CSSProperties;
50
+ redirectionTextBlock?: React.CSSProperties;
51
+ redirectionHeaderText?: React.CSSProperties;
52
+ reasoningToggle?: React.CSSProperties;
53
+ reasoningToggleDisabled?: React.CSSProperties;
54
+ reasoningToggleActive?: React.CSSProperties;
55
+ redirectionRightSide?: React.CSSProperties;
56
+ redirectionFixButton?: React.CSSProperties;
57
+ fixButtonDisabled?: React.CSSProperties;
58
+ redirectIconDisabled?: React.CSSProperties;
59
+ redirectIcon?: React.CSSProperties;
60
+ redirectionClarifyButton?: React.CSSProperties;
61
+ skeletonWrapper?: React.CSSProperties;
62
+ skeletonCard?: React.CSSProperties;
63
+ skeletonInner?: React.CSSProperties;
64
+ skeletonRow?: React.CSSProperties;
65
+ skeletonGroup?: React.CSSProperties;
66
+ skeletonLineLong?: React.CSSProperties;
67
+ skeletonLineMedium?: React.CSSProperties;
68
+ skeletonButtonGroup?: React.CSSProperties;
69
+ skeletonButton?: React.CSSProperties;
70
+ skeletonIcon?: React.CSSProperties;
71
+ aiReasoningStyles?: AiReasoningCustomStyles;
72
+ }
73
+ //# sourceMappingURL=gapFilterStyles.type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gapFilterStyles.type.d.ts","sourceRoot":"","sources":["../../../../../../src/features/RequirementAI/types/gapFilterStyles.type.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAE7D,MAAM,WAAW,eAAe;IAG7B,cAAc,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACrC,aAAa,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACpC,aAAa,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAGpC,SAAS,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAChC,aAAa,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACpC,gBAAgB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACvC,YAAY,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACnC,WAA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CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAG/C,eAAe,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACtC,YAAY,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACnC,aAAa,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACpC,WAAW,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAClC,aAAa,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACpC,gBAAgB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACvC,kBAAkB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACzC,mBAAmB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC1C,cAAc,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACrC,YAAY,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAEnC,iBAAiB,CAAC,EAAG,uBAAuB,CAAA;CAC9C"}
@@ -37,6 +37,7 @@ export { processAIReasoningFromBlocks, extractBlockStreams, processUserStoryValu
37
37
  export type { IUserStory } from "./features/RequirementAI/interfaces/userstory.interface";
38
38
  export type { UserStoryCitations, ImageCitationsForFile, FileImageData, IChatHistoryItem } from "./features/RequirementAI/interfaces/citation.interface";
39
39
  export type { TAIReasoning, AiReasoningCitationStyles, AiReasoningContentStyles, AiReasoningCustomStyles, StormeeCitationStyles, VideoPlayerStyles, WaveformCitationStyles, UserStoryIcons, MarkdownCustomStyles, ExpandedOLCustomStyles, AiReasonAccordionStyles, SearchWaveformStyles, CitationStyleGroup, ImageCitationStyles, FileCitationStyles, } from "./features/RequirementAI/types/aiReasoning.type";
40
+ export type { GapFilterStyles } from "./features/RequirementAI/types/gapFilterStyles.type";
40
41
  export type { IGetCitationsByBlock, BlockStreamItem, SetRedisParams, } from "./features/RequirementAI/types/streaming-block.type";
41
42
  export { handleDiffEditApplied, handleDiscardAll, handleAcceptAllChanges } from "./features/RequirementAI/utils/diff-edit.utils";
42
43
  export { GapFilterBlock } from "./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AAC;AAEnG,OAAO,EAAE,qBAAqB,EAAE,MAAM,sDAAsD,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@e-llm-studio/requirement-ai",
3
- "version": "0.0.11",
3
+ "version": "0.0.12",
4
4
  "author": "Saptyadeep Bhattacharjee",
5
5
  "description": "",
6
6
  "license": "MIT",
@@ -182,6 +182,11 @@
182
182
  "require": "./dist/cjs/features/RequirementAI/types/streaming-block.type.js",
183
183
  "types": "./dist/types/src/features/RequirementAI/types/streaming-block.type.d.ts"
184
184
  },
185
+ "./GapFilterStyles": {
186
+ "import": "./dist/features/RequirementAI/types/gapFilterStyles.type.js",
187
+ "require": "./dist/cjs/features/RequirementAI/types/gapFilterStyles.type.js",
188
+ "types": "./dist/types/src/features/RequirementAI/types/gapFilterStyles.type.d.ts"
189
+ },
185
190
  "./useStreamContentHandler": {
186
191
  "import": "./dist/features/RequirementAI/hooks/useStreamContentHandler.js",
187
192
  "require": "./dist/cjs/features/RequirementAI/hooks/useStreamContentHandler.js",