@viswa-test/requirement-ai 0.0.1 → 0.0.2

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.
@@ -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"),i=require("./GapFilterItem.js"),l=require("./CustomChatCrRedirection.js"),a=require("./gapFilterSvgs.js"),c=require("./GapFilterBlock.module.css.js");require("react-markdown"),require("rehype-raw"),require("../RequirementAIWrapper/RequirementAIWrapper.js");var d=require("./helper.js"),s=["critical","recommendation","warning"];function u(e){return(null==e?void 0:e.trim())?e.includes("%")?e:e.replace(/([0-9]+(?:\.[0-9]+)?)/g,"$1%"):""}function g(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,i=o.children,l=e.__rest(o,["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"],g=l["data-is-completed"];return{text:i,headerText:l.headertext,tags:l.tags,dataAttrs:s,decisionStrength:u,attrs:a,type:"gapfilteritem"===t.type?"gapfilteritem":"crredirection",score:l.score,isCompleted:g,pendingCount:l.pendingcount,question:l.question,components:l.components,showFix:null!==(n=l.showfix)&&void 0!==n&&n,showRedirect:null!==(r=l.showredirect)&&void 0!==r&&r}})}var 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]"}};exports.GapFilterBlock=function(v){var m=v.isDefaultOpen,f=v.processItemId,C=v.mode;v.node;var b=v.children,y=v.type,h=v.supportedmodes,x=void 0===h?"":h,S=v["decision-strength"],I=void 0===S?"":S,j=v.pendingdata,R=void 0===j?"":j,_=v.isGeneratingGap,k=void 0!==_&&_,F=v.selectedGapItemId,T=void 0===F?"":F,A=v.onItemSelect,q=v.onHandleSend,w=v.onModeAction,G=v.msg,B=v.panelRef,D=v.getAccordionState,N=v.setAccordionState,E=v.registerGapFilterBlockCount,W=v.getShowGapReviewButtonType,O=v.customStyles,M=v.customIcons,H=v.cognitiveDecisionHeaders,z=v.onRedirectClick,U=v.severityconfig,J=U||"",L=y,P=u(I),V=n.useState(function(){var e,t=null!==(e=null==D?void 0:D(L))&&void 0!==e?e:"";return"true"!==m||t?t:L}),$=V[0],K=V[1],Q=function(e){K(e),null==N||N(L,e)},X=g(b),Y=n.useMemo(function(){return X.reduce(function(e,t){var n,r,o,i=null!==(n=t.tags)&&void 0!==n?n:"Uncategorized",l=null!==(o=null===(r=t.dataAttrs)||void 0===r?void 0:r.categoryid)&&void 0!==o?o:"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},[])},[X]),Z={critical:{labelColor:"#d92d20",badgeBackgroundColor:"#fee4e2",badgeTextColor:"#b42318",icon:t.jsx(a.SirenIcon,{}),label:"risk-gap"===C?"Critical":"Must Clarify",decisionStrength:"< 70%"},warning:{labelColor:"#dc6803",badgeBackgroundColor:"#fef0c7",badgeTextColor:"#b54708",icon:t.jsx(a.WarningIcon,{}),label:"risk-gap"===C?"Warning":"Should Clarify",decisionStrength:"70–90%"},recommendation:{labelColor:"#039855",badgeBackgroundColor:"#d1fadf",badgeTextColor:"#027a48",icon:t.jsx(a.SupportIcon,{}),label:"risk-gap"===C?"Just a Suggestion":"Nice to Clarify",decisionStrength:"> 90%"},default:{labelColor:"#4b5563",badgeBackgroundColor:"#f3f4f6",badgeTextColor:"#4b5563",icon:t.jsx(a.SupportIcon,{}),label:"",decisionStrength:""}},ee=n.useMemo(function(){try{return J?JSON.parse(J):null}catch(e){return console.warn("Failed to parse data_sources:",e),null}},[J]),te=n.useMemo(function(){var e;if(!ee)return null;var t=d.generateColorPalette(null!==(e=ee.labelColor)&&void 0!==e?e:"");return{badgeTextColor:t.badgeText,labelColor:t.badgeText,label:null==ee?void 0:ee.label}},[ee]);console.log(" newSeverityConfig ",te,U);var ne=n.useMemo(function(){var e,t,n,o,i,l,a,c,d=(c=L,s.includes(c)?Z[L]:null);return{labelColor:null!==(t=null!==(e=null==te?void 0:te.labelColor)&&void 0!==e?e:null==d?void 0:d.labelColor)&&void 0!==t?t:"#4b5563",badgeBackgroundColor:null!==(n=null==d?void 0:d.badgeBackgroundColor)&&void 0!==n?n:"#f3f4f6",badgeTextColor:null!==(i=null!==(o=null==te?void 0:te.badgeTextColor)&&void 0!==o?o:null==d?void 0:d.badgeTextColor)&&void 0!==i?i:"#4b5563",label:null!==(a=null!==(l=null==te?void 0:te.label)&&void 0!==l?l:null==d?void 0:d.label)&&void 0!==a?a:r.capitalize(L),decisionStrength:P||(null==d?void 0:d.decisionStrength)||""}},[L,P,ee,Z]);n.useEffect(function(){null==E||E(L,X.length)},[L,X.length,E]);var re=function(t,n,r){if(void 0===r&&(r={}),!k){var o="".concat(Y[t].categoryId,"-").concat(n);null==A||A(o);var i=e.__assign(e.__assign({},Y[t].items[n].dataAttrs),r);null==w||w(x,i)}};return W&&W(),t.jsx(o.GapFilterContentWrapper,e.__assign({mode:C,type:L,config:ne,count:X.length,handleReviewClick:function(){X.length>0&&Q(L)},openAccordion:$,onAccordionChange:function(e){Q($===e?"":e)},shouldShowReviewButton:!1,pendingData:R,customStyles:O},{children:Y.map(function(n,r){return t.jsxs("div",e.__assign({className:c.default.categoryGroup,style:null==O?void 0:O.categoryGroup},{children:["gapfilteritem"===n.type&&"Uncategorized"!==n.categoryName&&t.jsx("p",e.__assign({className:c.default.categoryLabel,style:null==O?void 0:O.categoryLabel},{children:n.categoryName})),n.items.map(function(o,a){var d,s,u,g,v=o.attrs||{},m=null===(d=o.dataAttrs)||void 0===d?void 0:d["cognitive-reasoning"],b=v.id||(null===(s=o.dataAttrs)||void 0===s?void 0:s.id)||"",y="I"===b[0]?"UI_REF":"CHAT_REF",h=null===(u=null==G?void 0:G.contextAwareAgentReasoning)||void 0===u?void 0:u[m],x=o.isCompleted,S="true"===v.isDefaultOpen||"true"===v.isdefaultopen;return"gapfilteritem"===o.type?t.jsx("div",e.__assign({className:[c.default.gapFilterItemWrapper,"Uncategorized"!==n.categoryName?c.default.gapFilterItemWrapperIndented:""].join(" "),style:null==O?void 0:O.blockContainer},{children:t.jsx(i.GapFilterItem,{isDefaultOpen:S,isCompleted:x,mode:C,index:a,isSelected:T==="".concat(n.categoryId,"-").concat(a),onClick:function(){return re(r,a)},onFixClick:function(){return re(r,a,{triggerFrom:"fix"})},onRedirect:function(){return re(r,a,{triggerFrom:"redirect"})},item:o,isGenerating:k,aiReason:h,panelRef:null!=B?B:{current:null},id:m,customStyles:O,customIcons:M,cognitiveDecisionHeaders:H})}),a):t.jsx("div",e.__assign({className:c.default.crRedirectionGroup,style:null==O?void 0:O.crRedirectionGroup},{children:t.jsx("div",e.__assign({className:c.default.crRedirectionInner,style:null==O?void 0:O.crRedirectionInner},{children:t.jsx(l.CustomChatCrRedirection,{isDefaultOpen:S,processItemId:f,isCompleted:x,mode:C,msg:G,type:y,text:o.text,headerText:o.headerText,decisionStrength:o.decisionStrength,id:b,gapType:L,onHandleSend:q,isGenerating:k,aiReason:h,onRedirectClick:z,statusUi:null!==(g=p[L])&&void 0!==g?g:p.recommendation,panelRef:null!=B?B:{current:null},customStyles:O,customIcons:M,cognitiveDecisionHeaders:H})}))}),a)})]}),"".concat(n.categoryName,"-").concat(r))})}))},exports.normalizeDecisionStrength=u;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),o=require("react"),n=require("lodash"),r=require("./GapFilterContentWrapper.js"),i=require("./GapFilterItem.js"),l=require("./CustomChatCrRedirection.js"),a=require("./gapFilterSvgs.js"),d=require("./GapFilterBlock.module.css.js");require("react-markdown"),require("rehype-raw"),require("../RequirementAIWrapper/RequirementAIWrapper.js");var c=require("./helper.js"),s=["critical","recommendation","warning"];function u(e){return(null==e?void 0:e.trim())?e.includes("%")?e:e.replace(/([0-9]+(?:\.[0-9]+)?)/g,"$1%"):""}function g(t){return o.Children.toArray(t).filter(function(e){return o.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 o,n,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 d,c,s=(d=l,c={},Object.keys(d).forEach(function(e){e.startsWith("data-")&&(c[e.replace(/^data-/,"")]=d[e])}),c),u=l["decision-strength"],g=l["data-is-completed"];return{text:i,headerText:l.headertext,tags:l.tags,dataAttrs:s,decisionStrength:u,attrs:a,type:"gapfilteritem"===t.type?"gapfilteritem":"crredirection",score:l.score,isCompleted:g,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 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]"}};exports.GapFilterBlock=function(v){var m=v.isDefaultOpen,f=v.processItemId,b=v.mode;v.node;var C=v.children,y=v.type,h=v.supportedmodes,x=void 0===h?"":h,S=v["decision-strength"],I=void 0===S?"":S,j=v.pendingdata,k=void 0===j?"":j,R=v.isGeneratingGap,_=void 0!==R&&R,F=v.selectedGapItemId,B=void 0===F?"":F,T=v.onItemSelect,A=v.onHandleSend,q=v.onModeAction,G=v.msg,w=v.panelRef,D=v.getAccordionState,N=v.setAccordionState,E=v.registerGapFilterBlockCount,W=v.getShowGapReviewButtonType,O=v.customStyles,H=v.customIcons,M=v.cognitiveDecisionHeaders,z=v.onRedirectClick,U=v.labelcolor,L=v.label;console.log("labelcolor ",U,"label ",L);var P=y,J=u(I),V=o.useState(function(){var e,t=null!==(e=null==D?void 0:D(P))&&void 0!==e?e:"";return"true"!==m||t?t:P}),$=V[0],K=V[1],Q=function(e){K(e),null==N||N(P,e)},X=g(C),Y=o.useMemo(function(){return X.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},[])},[X]),Z={critical:{labelColor:"#d92d20",badgeBackgroundColor:"#fee4e2",badgeTextColor:"#b42318",icon:t.jsx(a.SirenIcon,{}),label:"risk-gap"===b?"Critical":"Must Clarify",decisionStrength:"< 70%"},warning:{labelColor:"#dc6803",badgeBackgroundColor:"#fef0c7",badgeTextColor:"#b54708",icon:t.jsx(a.WarningIcon,{}),label:"risk-gap"===b?"Warning":"Should Clarify",decisionStrength:"70–90%"},recommendation:{labelColor:"#039855",badgeBackgroundColor:"#d1fadf",badgeTextColor:"#027a48",icon:t.jsx(a.SupportIcon,{}),label:"risk-gap"===b?"Just a Suggestion":"Nice to Clarify",decisionStrength:"> 90%"},default:{labelColor:"#4b5563",badgeBackgroundColor:"#f3f4f6",badgeTextColor:"#4b5563",icon:t.jsx(a.SupportIcon,{}),label:"",decisionStrength:""}},ee=o.useMemo(function(){if(!U)return null;var e=c.generateColorPalette(null!=U?U:"");return{badgeTextColor:null==e?void 0:e.badgeText,labelColor:null==e?void 0:e.badgeText,label:L,badgeBackgroundColor:e.badgeBg}},[U,L]);console.log(" newSeverityConfig ",ee);var te=o.useMemo(function(){var e,t,o,r,i,l,a,d,c,u=(c=P,s.includes(c)?Z[P]:null);return{labelColor:null!==(t=null!==(e=null==ee?void 0:ee.labelColor)&&void 0!==e?e:null==u?void 0:u.labelColor)&&void 0!==t?t:"#4b5563",badgeBackgroundColor:null!==(r=null!==(o=null==ee?void 0:ee.badgeBackgroundColor)&&void 0!==o?o:null==u?void 0:u.badgeBackgroundColor)&&void 0!==r?r:"#f3f4f6",badgeTextColor:null!==(l=null!==(i=null==ee?void 0:ee.badgeTextColor)&&void 0!==i?i:null==u?void 0:u.badgeTextColor)&&void 0!==l?l:"#4b5563",label:null!==(d=null!==(a=null==ee?void 0:ee.label)&&void 0!==a?a:null==u?void 0:u.label)&&void 0!==d?d:n.capitalize(P),decisionStrength:J||(null==u?void 0:u.decisionStrength)||""}},[P,J,Z]);o.useEffect(function(){null==E||E(P,X.length)},[P,X.length,E]);var oe=function(t,o,n){if(void 0===n&&(n={}),!_){var r="".concat(Y[t].categoryId,"-").concat(o);null==T||T(r);var i=e.__assign(e.__assign({},Y[t].items[o].dataAttrs),n);null==q||q(x,i)}};return W&&W(),t.jsx(r.GapFilterContentWrapper,e.__assign({mode:b,type:P,config:te,count:X.length,handleReviewClick:function(){X.length>0&&Q(P)},openAccordion:$,onAccordionChange:function(e){Q($===e?"":e)},shouldShowReviewButton:!1,pendingData:k,customStyles:O},{children:Y.map(function(o,n){return t.jsxs("div",e.__assign({className:d.default.categoryGroup,style:null==O?void 0:O.categoryGroup},{children:["gapfilteritem"===o.type&&"Uncategorized"!==o.categoryName&&t.jsx("p",e.__assign({className:d.default.categoryLabel,style:null==O?void 0:O.categoryLabel},{children:o.categoryName})),o.items.map(function(r,a){var c,s,u,g,v=r.attrs||{},m=null===(c=r.dataAttrs)||void 0===c?void 0:c["cognitive-reasoning"],C=v.id||(null===(s=r.dataAttrs)||void 0===s?void 0:s.id)||"",y="I"===C[0]?"UI_REF":"CHAT_REF",h=null===(u=null==G?void 0:G.contextAwareAgentReasoning)||void 0===u?void 0:u[m],x=r.isCompleted,S="true"===v.isDefaultOpen||"true"===v.isdefaultopen;return"gapfilteritem"===r.type?t.jsx("div",e.__assign({className:[d.default.gapFilterItemWrapper,"Uncategorized"!==o.categoryName?d.default.gapFilterItemWrapperIndented:""].join(" "),style:null==O?void 0:O.blockContainer},{children:t.jsx(i.GapFilterItem,{isDefaultOpen:S,isCompleted:x,mode:b,index:a,isSelected:B==="".concat(o.categoryId,"-").concat(a),onClick:function(){return oe(n,a)},onFixClick:function(){return oe(n,a,{triggerFrom:"fix"})},onRedirect:function(){return oe(n,a,{triggerFrom:"redirect"})},item:r,isGenerating:_,aiReason:h,panelRef:null!=w?w:{current:null},id:m,customStyles:O,customIcons:H,cognitiveDecisionHeaders:M})}),a):t.jsx("div",e.__assign({className:d.default.crRedirectionGroup,style:null==O?void 0:O.crRedirectionGroup},{children:t.jsx("div",e.__assign({className:d.default.crRedirectionInner,style:null==O?void 0:O.crRedirectionInner},{children:t.jsx(l.CustomChatCrRedirection,{isDefaultOpen:S,processItemId:f,isCompleted:x,mode:b,msg:G,type:y,text:r.text,headerText:r.headerText,decisionStrength:r.decisionStrength,id:C,gapType:P,onHandleSend:A,isGenerating:_,aiReason:h,onRedirectClick:z,statusUi:null!==(g=p[P])&&void 0!==g?g:p.recommendation,panelRef:null!=w?w:{current:null},customStyles:O,customIcons:H,cognitiveDecisionHeaders:M})}))}),a)})]}),"".concat(o.categoryName,"-").concat(n))})}))},exports.normalizeDecisionStrength=u;
2
2
  //# sourceMappingURL=GapFilterBlock.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 l,Children as a,isValidElement as c}from"react";import{capitalize as d}from"lodash";import{GapFilterContentWrapper as u}from"./GapFilterContentWrapper.js";import{GapFilterItem as s}from"./GapFilterItem.js";import{CustomChatCrRedirection as g}from"./CustomChatCrRedirection.js";import{SirenIcon as p,WarningIcon as m,SupportIcon as v}from"./gapFilterSvgs.js";import f from"./GapFilterBlock.module.css.js";import"react-markdown";import"rehype-raw";import"../RequirementAIWrapper/RequirementAIWrapper.js";import{generateColorPalette as b}from"./helper.js";var C=["critical","recommendation","warning"];function y(e){return(null==e?void 0:e.trim())?e.includes("%")?e:e.replace(/([0-9]+(?:\.[0-9]+)?)/g,"$1%"):""}function h(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,u=(c=l,d={},Object.keys(c).forEach(function(e){e.startsWith("data-")&&(d[e.replace(/^data-/,"")]=c[e])}),d),s=l["decision-strength"],g=l["data-is-completed"];return{text:i,headerText:l.headertext,tags:l.tags,dataAttrs:u,decisionStrength:s,attrs:a,type:"gapfilteritem"===e.type?"gapfilteritem":"crredirection",score:l.score,isCompleted:g,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 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]"}},S=function(t){var a=t.isDefaultOpen,c=t.processItemId,S=t.mode;t.node;var I=t.children,R=t.type,k=t.supportedmodes,F=void 0===k?"":k,T=t["decision-strength"],A=void 0===T?"":T,w=t.pendingdata,B=void 0===w?"":w,G=t.isGeneratingGap,D=void 0!==G&&G,N=t.selectedGapItemId,j=void 0===N?"":N,E=t.onItemSelect,W=t.onHandleSend,O=t.onModeAction,H=t.msg,U=t.panelRef,q=t.getAccordionState,z=t.setAccordionState,_=t.registerGapFilterBlockCount,J=t.getShowGapReviewButtonType,L=t.customStyles,M=t.customIcons,$=t.cognitiveDecisionHeaders,K=t.onRedirectClick,P=t.severityconfig,Q=P||"",V=R,X=y(A),Y=r(function(){var e,t=null!==(e=null==q?void 0:q(V))&&void 0!==e?e:"";return"true"!==a||t?t:V}),Z=Y[0],ee=Y[1],te=function(e){ee(e),null==z||z(V,e)},oe=h(I),ne=i(function(){return oe.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},[])},[oe]),re={critical:{labelColor:"#d92d20",badgeBackgroundColor:"#fee4e2",badgeTextColor:"#b42318",icon:o(p,{}),label:"risk-gap"===S?"Critical":"Must Clarify",decisionStrength:"< 70%"},warning:{labelColor:"#dc6803",badgeBackgroundColor:"#fef0c7",badgeTextColor:"#b54708",icon:o(m,{}),label:"risk-gap"===S?"Warning":"Should Clarify",decisionStrength:"70–90%"},recommendation:{labelColor:"#039855",badgeBackgroundColor:"#d1fadf",badgeTextColor:"#027a48",icon:o(v,{}),label:"risk-gap"===S?"Just a Suggestion":"Nice to Clarify",decisionStrength:"> 90%"},default:{labelColor:"#4b5563",badgeBackgroundColor:"#f3f4f6",badgeTextColor:"#4b5563",icon:o(v,{}),label:"",decisionStrength:""}},ie=i(function(){try{return Q?JSON.parse(Q):null}catch(e){return console.warn("Failed to parse data_sources:",e),null}},[Q]),le=i(function(){var e;if(!ie)return null;var t=b(null!==(e=ie.labelColor)&&void 0!==e?e:"");return{badgeTextColor:t.badgeText,labelColor:t.badgeText,label:null==ie?void 0:ie.label}},[ie]);console.log(" newSeverityConfig ",le,P);var ae=i(function(){var e,t,o,n,r,i,l,a,c=(a=V,C.includes(a)?re[V]:null);return{labelColor:null!==(t=null!==(e=null==le?void 0:le.labelColor)&&void 0!==e?e:null==c?void 0:c.labelColor)&&void 0!==t?t:"#4b5563",badgeBackgroundColor:null!==(o=null==c?void 0:c.badgeBackgroundColor)&&void 0!==o?o:"#f3f4f6",badgeTextColor:null!==(r=null!==(n=null==le?void 0:le.badgeTextColor)&&void 0!==n?n:null==c?void 0:c.badgeTextColor)&&void 0!==r?r:"#4b5563",label:null!==(l=null!==(i=null==le?void 0:le.label)&&void 0!==i?i:null==c?void 0:c.label)&&void 0!==l?l:d(V),decisionStrength:X||(null==c?void 0:c.decisionStrength)||""}},[V,X,ie,re]);l(function(){null==_||_(V,oe.length)},[V,oe.length,_]);var ce=function(t,o,n){if(void 0===n&&(n={}),!D){var r="".concat(ne[t].categoryId,"-").concat(o);null==E||E(r);var i=e(e({},ne[t].items[o].dataAttrs),n);null==O||O(F,i)}};return J&&J(),o(u,e({mode:S,type:V,config:ae,count:oe.length,handleReviewClick:function(){oe.length>0&&te(V)},openAccordion:Z,onAccordionChange:function(e){te(Z===e?"":e)},shouldShowReviewButton:!1,pendingData:B,customStyles:L},{children:ne.map(function(t,r){return n("div",e({className:f.categoryGroup,style:null==L?void 0:L.categoryGroup},{children:["gapfilteritem"===t.type&&"Uncategorized"!==t.categoryName&&o("p",e({className:f.categoryLabel,style:null==L?void 0:L.categoryLabel},{children:t.categoryName})),t.items.map(function(n,i){var l,a,d,u,p=n.attrs||{},m=null===(l=n.dataAttrs)||void 0===l?void 0:l["cognitive-reasoning"],v=p.id||(null===(a=n.dataAttrs)||void 0===a?void 0:a.id)||"",b="I"===v[0]?"UI_REF":"CHAT_REF",C=null===(d=null==H?void 0:H.contextAwareAgentReasoning)||void 0===d?void 0:d[m],y=n.isCompleted,h="true"===p.isDefaultOpen||"true"===p.isdefaultopen;return"gapfilteritem"===n.type?o("div",e({className:[f.gapFilterItemWrapper,"Uncategorized"!==t.categoryName?f.gapFilterItemWrapperIndented:""].join(" "),style:null==L?void 0:L.blockContainer},{children:o(s,{isDefaultOpen:h,isCompleted:y,mode:S,index:i,isSelected:j==="".concat(t.categoryId,"-").concat(i),onClick:function(){return ce(r,i)},onFixClick:function(){return ce(r,i,{triggerFrom:"fix"})},onRedirect:function(){return ce(r,i,{triggerFrom:"redirect"})},item:n,isGenerating:D,aiReason:C,panelRef:null!=U?U:{current:null},id:m,customStyles:L,customIcons:M,cognitiveDecisionHeaders:$})}),i):o("div",e({className:f.crRedirectionGroup,style:null==L?void 0:L.crRedirectionGroup},{children:o("div",e({className:f.crRedirectionInner,style:null==L?void 0:L.crRedirectionInner},{children:o(g,{isDefaultOpen:h,processItemId:c,isCompleted:y,mode:S,msg:H,type:b,text:n.text,headerText:n.headerText,decisionStrength:n.decisionStrength,id:v,gapType:V,onHandleSend:W,isGenerating:D,aiReason:C,onRedirectClick:K,statusUi:null!==(u=x[V])&&void 0!==u?u:x.recommendation,panelRef:null!=U?U:{current:null},customStyles:L,customIcons:M,cognitiveDecisionHeaders:$})}))}),i)})]}),"".concat(t.categoryName,"-").concat(r))})}))};export{S as GapFilterBlock,y 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 d}from"react";import{capitalize as c}from"lodash";import{GapFilterContentWrapper as u}from"./GapFilterContentWrapper.js";import{GapFilterItem as s}from"./GapFilterItem.js";import{CustomChatCrRedirection as g}from"./CustomChatCrRedirection.js";import{SirenIcon as p,WarningIcon as m,SupportIcon as v}from"./gapFilterSvgs.js";import f from"./GapFilterBlock.module.css.js";import"react-markdown";import"rehype-raw";import"../RequirementAIWrapper/RequirementAIWrapper.js";import{generateColorPalette as b}from"./helper.js";var C=["critical","recommendation","warning"];function y(e){return(null==e?void 0:e.trim())?e.includes("%")?e:e.replace(/([0-9]+(?:\.[0-9]+)?)/g,"$1%"):""}function h(e){return a.toArray(e).filter(function(e){return d(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 d,c,u=(d=l,c={},Object.keys(d).forEach(function(e){e.startsWith("data-")&&(c[e.replace(/^data-/,"")]=d[e])}),c),s=l["decision-strength"],g=l["data-is-completed"];return{text:i,headerText:l.headertext,tags:l.tags,dataAttrs:u,decisionStrength:s,attrs:a,type:"gapfilteritem"===e.type?"gapfilteritem":"crredirection",score:l.score,isCompleted:g,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 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]"}},S=function(t){var a=t.isDefaultOpen,d=t.processItemId,S=t.mode;t.node;var k=t.children,I=t.type,R=t.supportedmodes,T=void 0===R?"":R,A=t["decision-strength"],B=void 0===A?"":A,F=t.pendingdata,w=void 0===F?"":F,G=t.isGeneratingGap,D=void 0!==G&&G,N=t.selectedGapItemId,j=void 0===N?"":N,E=t.onItemSelect,W=t.onHandleSend,H=t.onModeAction,O=t.msg,U=t.panelRef,q=t.getAccordionState,z=t.setAccordionState,L=t.registerGapFilterBlockCount,M=t.getShowGapReviewButtonType,_=t.customStyles,J=t.customIcons,$=t.cognitiveDecisionHeaders,K=t.onRedirectClick,P=t.labelcolor,Q=t.label;console.log("labelcolor ",P,"label ",Q);var V=I,X=y(B),Y=r(function(){var e,t=null!==(e=null==q?void 0:q(V))&&void 0!==e?e:"";return"true"!==a||t?t:V}),Z=Y[0],ee=Y[1],te=function(e){ee(e),null==z||z(V,e)},oe=h(k),ne=i(function(){return oe.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},[])},[oe]),re={critical:{labelColor:"#d92d20",badgeBackgroundColor:"#fee4e2",badgeTextColor:"#b42318",icon:o(p,{}),label:"risk-gap"===S?"Critical":"Must Clarify",decisionStrength:"< 70%"},warning:{labelColor:"#dc6803",badgeBackgroundColor:"#fef0c7",badgeTextColor:"#b54708",icon:o(m,{}),label:"risk-gap"===S?"Warning":"Should Clarify",decisionStrength:"70–90%"},recommendation:{labelColor:"#039855",badgeBackgroundColor:"#d1fadf",badgeTextColor:"#027a48",icon:o(v,{}),label:"risk-gap"===S?"Just a Suggestion":"Nice to Clarify",decisionStrength:"> 90%"},default:{labelColor:"#4b5563",badgeBackgroundColor:"#f3f4f6",badgeTextColor:"#4b5563",icon:o(v,{}),label:"",decisionStrength:""}},ie=i(function(){if(!P)return null;var e=b(null!=P?P:"");return{badgeTextColor:null==e?void 0:e.badgeText,labelColor:null==e?void 0:e.badgeText,label:Q,badgeBackgroundColor:e.badgeBg}},[P,Q]);console.log(" newSeverityConfig ",ie);var le=i(function(){var e,t,o,n,r,i,l,a,d,u=(d=V,C.includes(d)?re[V]:null);return{labelColor:null!==(t=null!==(e=null==ie?void 0:ie.labelColor)&&void 0!==e?e:null==u?void 0:u.labelColor)&&void 0!==t?t:"#4b5563",badgeBackgroundColor:null!==(n=null!==(o=null==ie?void 0:ie.badgeBackgroundColor)&&void 0!==o?o:null==u?void 0:u.badgeBackgroundColor)&&void 0!==n?n:"#f3f4f6",badgeTextColor:null!==(i=null!==(r=null==ie?void 0:ie.badgeTextColor)&&void 0!==r?r:null==u?void 0:u.badgeTextColor)&&void 0!==i?i:"#4b5563",label:null!==(a=null!==(l=null==ie?void 0:ie.label)&&void 0!==l?l:null==u?void 0:u.label)&&void 0!==a?a:c(V),decisionStrength:X||(null==u?void 0:u.decisionStrength)||""}},[V,X,re]);l(function(){null==L||L(V,oe.length)},[V,oe.length,L]);var ae=function(t,o,n){if(void 0===n&&(n={}),!D){var r="".concat(ne[t].categoryId,"-").concat(o);null==E||E(r);var i=e(e({},ne[t].items[o].dataAttrs),n);null==H||H(T,i)}};return M&&M(),o(u,e({mode:S,type:V,config:le,count:oe.length,handleReviewClick:function(){oe.length>0&&te(V)},openAccordion:Z,onAccordionChange:function(e){te(Z===e?"":e)},shouldShowReviewButton:!1,pendingData:w,customStyles:_},{children:ne.map(function(t,r){return n("div",e({className:f.categoryGroup,style:null==_?void 0:_.categoryGroup},{children:["gapfilteritem"===t.type&&"Uncategorized"!==t.categoryName&&o("p",e({className:f.categoryLabel,style:null==_?void 0:_.categoryLabel},{children:t.categoryName})),t.items.map(function(n,i){var l,a,c,u,p=n.attrs||{},m=null===(l=n.dataAttrs)||void 0===l?void 0:l["cognitive-reasoning"],v=p.id||(null===(a=n.dataAttrs)||void 0===a?void 0:a.id)||"",b="I"===v[0]?"UI_REF":"CHAT_REF",C=null===(c=null==O?void 0:O.contextAwareAgentReasoning)||void 0===c?void 0:c[m],y=n.isCompleted,h="true"===p.isDefaultOpen||"true"===p.isdefaultopen;return"gapfilteritem"===n.type?o("div",e({className:[f.gapFilterItemWrapper,"Uncategorized"!==t.categoryName?f.gapFilterItemWrapperIndented:""].join(" "),style:null==_?void 0:_.blockContainer},{children:o(s,{isDefaultOpen:h,isCompleted:y,mode:S,index:i,isSelected:j==="".concat(t.categoryId,"-").concat(i),onClick:function(){return ae(r,i)},onFixClick:function(){return ae(r,i,{triggerFrom:"fix"})},onRedirect:function(){return ae(r,i,{triggerFrom:"redirect"})},item:n,isGenerating:D,aiReason:C,panelRef:null!=U?U:{current:null},id:m,customStyles:_,customIcons:J,cognitiveDecisionHeaders:$})}),i):o("div",e({className:f.crRedirectionGroup,style:null==_?void 0:_.crRedirectionGroup},{children:o("div",e({className:f.crRedirectionInner,style:null==_?void 0:_.crRedirectionInner},{children:o(g,{isDefaultOpen:h,processItemId:d,isCompleted:y,mode:S,msg:O,type:b,text:n.text,headerText:n.headerText,decisionStrength:n.decisionStrength,id:v,gapType:V,onHandleSend:W,isGenerating:D,aiReason:C,onRedirectClick:K,statusUi:null!==(u=x[V])&&void 0!==u?u:x.recommendation,panelRef:null!=U?U:{current:null},customStyles:_,customIcons:J,cognitiveDecisionHeaders:$})}))}),i)})]}),"".concat(t.categoryName,"-").concat(r))})}))};export{S as GapFilterBlock,y as normalizeDecisionStrength};
2
2
  //# sourceMappingURL=GapFilterBlock.js.map
@@ -22,7 +22,8 @@ export interface GapFilterBlockProps {
22
22
  type?: GapFilterType;
23
23
  supportedmodes?: string;
24
24
  'decision-strength'?: string;
25
- severityconfig?: string;
25
+ labelcolor?: string;
26
+ label?: string;
26
27
  pendingdata?: string;
27
28
  isGeneratingGap?: boolean;
28
29
  selectedGapItemId?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"GapFilterBlock.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/lsc-reason-gap/GapFilterBlock.tsx"],"names":[],"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EAAE,MAAM,CAAC;IAGjB,GAAG,EAAE,GAAG,CAAC;IACT,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;IAChC,YAAY,CAAC,EAAE,eAAe,CAAC;IAC/B,WAAW,CAAC,EAAE,cAAc,CAAC;IAC7B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,wBAAwB,CAAC,EAAE,SAAS,CAAA;CACrC;AAED,eAAO,MAAM,yBAAyB,EAAE,KAAK,CAAC,EAAE,CAAC,8BAA8B,CA8H9E,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,EAAE,SAAS,EAAgB,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAQvF,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;AA+FD,MAAM,WAAW,mB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,CAAC;IAC7B,wBAAwB,CAAC,EAAE,SAAS,CAAC;IACnC,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE;QAC5B,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,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAoRxD,CAAC;AAIF,MAAM,WAAW,8BAA8B;IAC7C,IAAI,EAAE,KAAK,GAAG,UAAU,CAAC;IACzB,QAAQ,EAAE,MAAM,CAAC;IAGjB,GAAG,EAAE,GAAG,CAAC;IACT,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;IAChC,YAAY,CAAC,EAAE,eAAe,CAAC;IAC/B,WAAW,CAAC,EAAE,cAAc,CAAC;IAC7B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,wBAAwB,CAAC,EAAE,SAAS,CAAA;CACrC;AAED,eAAO,MAAM,yBAAyB,EAAE,KAAK,CAAC,EAAE,CAAC,8BAA8B,CA8H9E,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@viswa-test/requirement-ai",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "author": "Viswa Koduru",
5
5
  "description": "",
6
6
  "license": "MIT",