@e-llm-studio/requirement-ai 0.0.158 → 0.0.159

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"),i=require("react/jsx-runtime"),l=require("@mui/material"),o=require("../../../utils/css.utils.js"),n=require("./InlineUpdatedComponent.module.css.js"),t=require("../../../icons/CognitiveDecision.js"),r=require("lucide-react"),d=require("react");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=a(d);exports.default=function(a){var u,c,v,p,_,f,m,x,h,g,j,y,C,b,k=a.aiReason,q=a.children,D=a.customStyles,N=a.handleClickCognitiveDecision,S=a.handleClickUpdatedPill,T=d.useRef(),O=d.useRef(function(){null==S||S(T.current,k)}),P=d.useMemo(function(){var i=function(l,o){return s.default.Children.map(l,function(l){var n;if(!s.default.isValidElement(l))return l;var t=(null===(n=l.props)||void 0===n?void 0:n.children)?i(l.props.children,o):l.props.children,r=s.default.cloneElement(l,e.__assign(e.__assign({},l.props),{children:t}));return o(r)})};return i(q,function(e){return s.default.cloneElement(e,{onclick:O.current})})},[q]),W=(null===(u=k.deviation_details)||void 0===u?void 0:u.resolved)?"#303030":null===(p=null===(v=null===(c=k.deviation_details)||void 0===c?void 0:c.evaluation_outputs)||void 0===v?void 0:v.metadata)||void 0===p?void 0:p.label_color,w={color:W||"#000000",background:o.hexToOpacity(W||"#000000",25),border:"1px solid ".concat(o.hexToOpacity(W||"#000000",75))},E=W||"#000000",I=o.hexToOpacity(W||"#000000",25),R={background:o.hexToOpacity(W||"#000000",75)},U=i.jsx(i.Fragment,{}),A=null===(_=k.deviation_details)||void 0===_?void 0:_.resolved;return"accepted"===A?U=i.jsx(r.Check,{color:"#16A34A"}):"rejected"===A?U=i.jsx(r.X,{color:"#DC2626"}):"reverted"===A&&(U=i.jsx(r.Undo2,{color:"#475569"})),i.jsxs(i.Fragment,{children:[i.jsx("div",e.__assign({className:n.default.resolvedStatus,style:null==D?void 0:D.resolvedIcon},{children:U})),i.jsx("div",e.__assign({ref:T,id:k.id.toString(),onClick:function(e){e.stopPropagation(),null==S||S(e.currentTarget,k)},className:n.default.pillWrapper,style:null==D?void 0:D.pillStyleWrapper},{children:i.jsxs("div",e.__assign({className:"".concat(n.default.pillComponent),style:e.__assign(e.__assign({},null===(f=null==D?void 0:D.pillComponent)||void 0===f?void 0:f.commonStyle),w)},{children:[i.jsx("span",{children:(null===(h=null===(x=null===(m=k.deviation_details)||void 0===m?void 0:m.evaluation_outputs)||void 0===x?void 0:x.metadata)||void 0===h?void 0:h.label_text)||""}),i.jsx(l.Divider,{className:n.default.dividerStyle,style:R}),i.jsx("span",{children:(null===(g=k.deviation_details)||void 0===g?void 0:g.resolved)?U:null===(y=null===(j=null==k?void 0:k.deviation_details)||void 0===j?void 0:j.evaluation_outputs)||void 0===y?void 0:y.output_value}),i.jsx(l.Divider,{className:n.default.dividerStyle,style:R}),i.jsx("span",e.__assign({onClick:function(e){e.stopPropagation(),null==N||N(e.currentTarget,k)},className:n.default.cognitiveDecisionWrapper,style:null===(C=null==D?void 0:D.cognitiveDecisionIcon)||void 0===C?void 0:C.wrapper},{children:i.jsx(t.default,{color:E,backgroundColor:I})})),i.jsx("span",e.__assign({className:n.default.chevronWrapper,style:null===(b=null==D?void 0:D.Chevron)||void 0===b?void 0:b.wrapper},{children:i.jsx(r.ChevronDown,{color:W})}))]}))})),P]})};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),i=require("react/jsx-runtime"),l=require("@mui/material"),o=require("../../../utils/css.utils.js"),n=require("./InlineUpdatedComponent.module.css.js"),t=require("../../../icons/CognitiveDecision.js"),r=require("lucide-react"),d=require("react");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=a(d);exports.default=function(a){var u,c,v,p,_,f,m,x,g,h,j,y,C,b,k=a.aiReason,q=a.children,D=a.customStyles,N=a.handleClickCognitiveDecision,S=a.handleClickUpdatedPill,T=d.useRef(),I=d.useRef(function(){null==S||S(T.current,k)}),O=d.useMemo(function(){var i=function(l,o){return s.default.Children.map(l,function(l){var n;if(!s.default.isValidElement(l))return l;var t=(null===(n=l.props)||void 0===n?void 0:n.children)?i(l.props.children,o):l.props.children,r=s.default.cloneElement(l,e.__assign(e.__assign({},l.props),{children:t}));return o(r)})};return i(q,function(e){return s.default.cloneElement(e,{onclick:I.current})})},[q]),E=(null===(u=k.deviation_details)||void 0===u?void 0:u.resolved)?"#303030":null===(p=null===(v=null===(c=k.deviation_details)||void 0===c?void 0:c.evaluation_outputs)||void 0===v?void 0:v.metadata)||void 0===p?void 0:p.label_color,P={color:E||"#000000",background:o.hexToOpacity(E||"#000000",25),border:"1px solid ".concat(o.hexToOpacity(E||"#000000",75))},W=E||"#000000",w=o.hexToOpacity(E||"#000000",25),R={background:o.hexToOpacity(E||"#000000",75)},U=i.jsx(i.Fragment,{}),A=null===(_=k.deviation_details)||void 0===_?void 0:_.resolved;return"accepted"===A?U=i.jsx(r.Check,{color:"#16A34A"}):"rejected"===A?U=i.jsx(r.X,{color:"#DC2626"}):"reverted"===A&&(U=i.jsx(r.Undo2,{color:"#475569"})),console.log("TESTING::Inline-update::component",k,q),i.jsxs(i.Fragment,{children:[i.jsx("div",e.__assign({className:n.default.resolvedStatus,style:null==D?void 0:D.resolvedIcon},{children:U})),i.jsx("div",e.__assign({ref:T,id:k.id.toString(),onClick:function(e){e.stopPropagation(),null==S||S(e.currentTarget,k)},className:n.default.pillWrapper,style:null==D?void 0:D.pillStyleWrapper},{children:i.jsxs("div",e.__assign({className:"".concat(n.default.pillComponent),style:e.__assign(e.__assign({},null===(f=null==D?void 0:D.pillComponent)||void 0===f?void 0:f.commonStyle),P)},{children:[i.jsx("span",{children:(null===(g=null===(x=null===(m=k.deviation_details)||void 0===m?void 0:m.evaluation_outputs)||void 0===x?void 0:x.metadata)||void 0===g?void 0:g.label_text)||""}),i.jsx(l.Divider,{className:n.default.dividerStyle,style:R}),i.jsx("span",{children:(null===(h=k.deviation_details)||void 0===h?void 0:h.resolved)?U:null===(y=null===(j=null==k?void 0:k.deviation_details)||void 0===j?void 0:j.evaluation_outputs)||void 0===y?void 0:y.output_value}),i.jsx(l.Divider,{className:n.default.dividerStyle,style:R}),i.jsx("span",e.__assign({onClick:function(e){e.stopPropagation(),null==N||N(e.currentTarget,k)},className:n.default.cognitiveDecisionWrapper,style:null===(C=null==D?void 0:D.cognitiveDecisionIcon)||void 0===C?void 0:C.wrapper},{children:i.jsx(t.default,{color:W,backgroundColor:w})})),i.jsx("span",e.__assign({className:n.default.chevronWrapper,style:null===(b=null==D?void 0:D.Chevron)||void 0===b?void 0:b.wrapper},{children:i.jsx(r.ChevronDown,{color:E})}))]}))})),O]})};
2
2
  //# sourceMappingURL=InlineUpdatedComponent.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as o}from"tslib";import{jsx as l,Fragment as i,jsxs as e}from"react/jsx-runtime";import{Divider as n}from"@mui/material";import{hexToOpacity as r}from"../../../utils/css.utils.js";import t from"./InlineUpdatedComponent.module.css.js";import d from"../../../icons/CognitiveDecision.js";import{Check as a,X as c,Undo2 as s,ChevronDown as v}from"lucide-react";import u,{useRef as p,useMemo as m}from"react";var f=function(f){var h,C,g,y,_,k,b,N,S,j,D,x,W,E,I=f.aiReason,P=f.children,w=f.customStyles,A=f.handleClickCognitiveDecision,T=f.handleClickUpdatedPill,U=p(),R=p(function(){null==T||T(U.current,I)}),V=m(function(){var l=function(i,e){return u.Children.map(i,function(i){var n;if(!u.isValidElement(i))return i;var r=(null===(n=i.props)||void 0===n?void 0:n.children)?l(i.props.children,e):i.props.children,t=u.cloneElement(i,o(o({},i.props),{children:r}));return e(t)})};return l(P,function(o){return u.cloneElement(o,{onclick:R.current})})},[P]),q=(null===(h=I.deviation_details)||void 0===h?void 0:h.resolved)?"#303030":null===(y=null===(g=null===(C=I.deviation_details)||void 0===C?void 0:C.evaluation_outputs)||void 0===g?void 0:g.metadata)||void 0===y?void 0:y.label_color,z={color:q||"#000000",background:r(q||"#000000",25),border:"1px solid ".concat(r(q||"#000000",75))},B=q||"#000000",F=r(q||"#000000",25),G={background:r(q||"#000000",75)},H=l(i,{}),J=null===(_=I.deviation_details)||void 0===_?void 0:_.resolved;return"accepted"===J?H=l(a,{color:"#16A34A"}):"rejected"===J?H=l(c,{color:"#DC2626"}):"reverted"===J&&(H=l(s,{color:"#475569"})),e(i,{children:[l("div",o({className:t.resolvedStatus,style:null==w?void 0:w.resolvedIcon},{children:H})),l("div",o({ref:U,id:I.id.toString(),onClick:function(o){o.stopPropagation(),null==T||T(o.currentTarget,I)},className:t.pillWrapper,style:null==w?void 0:w.pillStyleWrapper},{children:e("div",o({className:"".concat(t.pillComponent),style:o(o({},null===(k=null==w?void 0:w.pillComponent)||void 0===k?void 0:k.commonStyle),z)},{children:[l("span",{children:(null===(S=null===(N=null===(b=I.deviation_details)||void 0===b?void 0:b.evaluation_outputs)||void 0===N?void 0:N.metadata)||void 0===S?void 0:S.label_text)||""}),l(n,{className:t.dividerStyle,style:G}),l("span",{children:(null===(j=I.deviation_details)||void 0===j?void 0:j.resolved)?H:null===(x=null===(D=null==I?void 0:I.deviation_details)||void 0===D?void 0:D.evaluation_outputs)||void 0===x?void 0:x.output_value}),l(n,{className:t.dividerStyle,style:G}),l("span",o({onClick:function(o){o.stopPropagation(),null==A||A(o.currentTarget,I)},className:t.cognitiveDecisionWrapper,style:null===(W=null==w?void 0:w.cognitiveDecisionIcon)||void 0===W?void 0:W.wrapper},{children:l(d,{color:B,backgroundColor:F})})),l("span",o({className:t.chevronWrapper,style:null===(E=null==w?void 0:w.Chevron)||void 0===E?void 0:E.wrapper},{children:l(v,{color:q})}))]}))})),V]})};export{f as default};
1
+ import{__assign as o}from"tslib";import{jsx as l,Fragment as i,jsxs as e}from"react/jsx-runtime";import{Divider as n}from"@mui/material";import{hexToOpacity as r}from"../../../utils/css.utils.js";import t from"./InlineUpdatedComponent.module.css.js";import d from"../../../icons/CognitiveDecision.js";import{Check as a,X as c,Undo2 as s,ChevronDown as v}from"lucide-react";import u,{useRef as p,useMemo as m}from"react";var f=function(f){var h,g,C,y,_,k,N,S,b,j,D,I,x,E,T=f.aiReason,W=f.children,P=f.customStyles,w=f.handleClickCognitiveDecision,A=f.handleClickUpdatedPill,U=p(),G=p(function(){null==A||A(U.current,T)}),R=m(function(){var l=function(i,e){return u.Children.map(i,function(i){var n;if(!u.isValidElement(i))return i;var r=(null===(n=i.props)||void 0===n?void 0:n.children)?l(i.props.children,e):i.props.children,t=u.cloneElement(i,o(o({},i.props),{children:r}));return e(t)})};return l(W,function(o){return u.cloneElement(o,{onclick:G.current})})},[W]),V=(null===(h=T.deviation_details)||void 0===h?void 0:h.resolved)?"#303030":null===(y=null===(C=null===(g=T.deviation_details)||void 0===g?void 0:g.evaluation_outputs)||void 0===C?void 0:C.metadata)||void 0===y?void 0:y.label_color,q={color:V||"#000000",background:r(V||"#000000",25),border:"1px solid ".concat(r(V||"#000000",75))},z=V||"#000000",B=r(V||"#000000",25),F={background:r(V||"#000000",75)},H=l(i,{}),J=null===(_=T.deviation_details)||void 0===_?void 0:_.resolved;return"accepted"===J?H=l(a,{color:"#16A34A"}):"rejected"===J?H=l(c,{color:"#DC2626"}):"reverted"===J&&(H=l(s,{color:"#475569"})),console.log("TESTING::Inline-update::component",T,W),e(i,{children:[l("div",o({className:t.resolvedStatus,style:null==P?void 0:P.resolvedIcon},{children:H})),l("div",o({ref:U,id:T.id.toString(),onClick:function(o){o.stopPropagation(),null==A||A(o.currentTarget,T)},className:t.pillWrapper,style:null==P?void 0:P.pillStyleWrapper},{children:e("div",o({className:"".concat(t.pillComponent),style:o(o({},null===(k=null==P?void 0:P.pillComponent)||void 0===k?void 0:k.commonStyle),q)},{children:[l("span",{children:(null===(b=null===(S=null===(N=T.deviation_details)||void 0===N?void 0:N.evaluation_outputs)||void 0===S?void 0:S.metadata)||void 0===b?void 0:b.label_text)||""}),l(n,{className:t.dividerStyle,style:F}),l("span",{children:(null===(j=T.deviation_details)||void 0===j?void 0:j.resolved)?H:null===(I=null===(D=null==T?void 0:T.deviation_details)||void 0===D?void 0:D.evaluation_outputs)||void 0===I?void 0:I.output_value}),l(n,{className:t.dividerStyle,style:F}),l("span",o({onClick:function(o){o.stopPropagation(),null==w||w(o.currentTarget,T)},className:t.cognitiveDecisionWrapper,style:null===(x=null==P?void 0:P.cognitiveDecisionIcon)||void 0===x?void 0:x.wrapper},{children:l(d,{color:z,backgroundColor:B})})),l("span",o({className:t.chevronWrapper,style:null===(E=null==P?void 0:P.Chevron)||void 0===E?void 0:E.wrapper},{children:l(v,{color:V})}))]}))})),R]})};export{f as default};
2
2
  //# sourceMappingURL=InlineUpdatedComponent.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"InlineUpdatedComponent.d.ts","sourceRoot":"","sources":["../../../../../../../../src/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAE/D,OAAO,EAAE,iCAAiC,EAAE,MAAM,0BAA0B,CAAC;AAI7E,OAAO,KAAmD,MAAM,OAAO,CAAC;AAExE,UAAU,MAAM;IACd,QAAQ,EAAE,YAAY,CAAC;IACvB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,YAAY,CAAC,EAAE,iCAAiC,CAAC,wBAAwB,CAAC,CAAC;IAC3E,4BAA4B,CAAC,EAAE,CAC7B,QAAQ,EAAE,WAAW,EACrB,QAAQ,EAAE,YAAY,KACnB,IAAI,CAAC;IACV,sBAAsB,CAAC,EAAE,CACvB,QAAQ,EAAE,WAAW,EACrB,QAAQ,EAAE,YAAY,KACnB,IAAI,CAAC;CACX;AAGD,QAAA,MAAM,sBAAsB,+FAAgG,MAAM,4CAmGjI,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
1
+ {"version":3,"file":"InlineUpdatedComponent.d.ts","sourceRoot":"","sources":["../../../../../../../../src/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAE/D,OAAO,EAAE,iCAAiC,EAAE,MAAM,0BAA0B,CAAC;AAI7E,OAAO,KAAmD,MAAM,OAAO,CAAC;AAExE,UAAU,MAAM;IACd,QAAQ,EAAE,YAAY,CAAC;IACvB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,YAAY,CAAC,EAAE,iCAAiC,CAAC,wBAAwB,CAAC,CAAC;IAC3E,4BAA4B,CAAC,EAAE,CAC7B,QAAQ,EAAE,WAAW,EACrB,QAAQ,EAAE,YAAY,KACnB,IAAI,CAAC;IACV,sBAAsB,CAAC,EAAE,CACvB,QAAQ,EAAE,WAAW,EACrB,QAAQ,EAAE,YAAY,KACnB,IAAI,CAAC;CACX;AAGD,QAAA,MAAM,sBAAsB,+FAAgG,MAAM,4CAqGjI,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@e-llm-studio/requirement-ai",
3
- "version": "0.0.158",
3
+ "version": "0.0.159",
4
4
  "author": "Saptyadeep Bhattacharjee",
5
5
  "description": "",
6
6
  "license": "MIT",