@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.
- package/dist/cjs/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.js +1 -1
- package/dist/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.js +1 -1
- package/dist/types/src/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -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,
|
|
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,
|
|
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,
|
|
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"}
|