@e-llm-studio/requirement-ai 0.0.44 → 0.0.46
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/lsc-reason-gap/CustomChatCrRedirection.js +1 -1
- package/dist/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.js +1 -1
- package/dist/types/src/features/PdfViewer/usePdfHighlight.d.ts +1 -0
- package/dist/types/src/features/PdfViewer/usePdfHighlight.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
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"),
|
|
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"),l=require("./CustomChatCrRedirection.module.css.js"),a=require("../ai-reasoning/AiReasoningCitationContent.js"),o=require("../../icons/CognitiveDecision.js");exports.CustomChatCrRedirection=function(t){var r=t.isDefaultOpen,d=t.processItemId,c=t.isCompleted,u=t.mode,g=t.msg,v=t.type,_=t.id,p=t.aiReason,f=t.text,x=t.headerText,m=t.decisionStrength;t.statusUi,t.panelRef;var h=t.onHandleSend,j=t.onRedirectClick,y=t.gapType,C=t.isGenerating,b=void 0!==C&&C,D=t.customStyles,N=t.customIcons,I=t.cognitiveDecisionHeaders,S=n.useState(r),R=S[0],T=S[1];console.log("testing::reasoning",p);var k=(null==N?void 0:N.highConfidence)||i.jsx(o.default,{}),q=function(){"cra"===u?null==h||h("Discuss ambiguities on ".concat(f),_):null==h||h("Deep Dive into ".concat(y," ").concat(x,": ").concat(f),_)};return console.log("testing::aiReasoning",p),i.jsxs("div",e.__assign({className:[l.default.outerWrapper,b?l.default.outerWrapperDisabled:""].join(" "),style:e.__assign(e.__assign({},null==D?void 0:D.redirectionOuterWrapper),b?null==D?void 0:D.redirectionOuterWrapperDisabled:{})},{children:[i.jsxs("div",e.__assign({className:[l.default.card,b?l.default.cardDisabled:l.default.cardInteractive].join(" "),style:e.__assign(e.__assign({},null==D?void 0:D.redirectionCard),b?null==D?void 0:D.redirectionCardDisabled:null==D?void 0:D.redirectionCardInteractive)},{children:[i.jsxs("div",e.__assign({className:l.default.leftSide,style:null==D?void 0:D.redirectionLeftSide},{children:[i.jsxs("span",e.__assign({className:l.default.textBlock,style:null==D?void 0:D.redirectionTextBlock},{children:[x&&i.jsxs("span",e.__assign({className:l.default.headerText,style:null==D?void 0:D.redirectionHeaderText},{children:[x,f?" ":""]})),f]})),i.jsxs("span",e.__assign({onClick:function(e){e.stopPropagation(),b||T(!R)},className:[l.default.reasoningToggle,b?l.default.reasoningToggleDisabled:l.default.reasoningToggleActive].join(" "),style:e.__assign(e.__assign({},null==D?void 0:D.reasoningToggle),b?null==D?void 0:D.reasoningToggleDisabled:null==D?void 0:D.reasoningToggleActive)},{children:[k,R?i.jsx(s.ChevronUp,{className:l.default.chevronIcon,style:null==D?void 0:D.chevronIcon}):i.jsx(s.ChevronDown,{className:l.default.chevronIcon,style:null==D?void 0:D.chevronIcon})]}))]})),c?i.jsx("div",e.__assign({className:l.default.completeTickWrapper,style:null==D?void 0:D.completeTickWrapper},{children:i.jsx(s.Check,{color:(null==D?void 0:D.checkColor)||"green"})})):i.jsxs(i.Fragment,{children:["risk-gap"===u&&i.jsxs("div",e.__assign({className:l.default.rightSide,style:null==D?void 0:D.redirectionRightSide},{children:[i.jsx("button",e.__assign({disabled:b,className:[l.default.fixButton,b?l.default.fixButtonDisabled:""].join(" "),style:e.__assign(e.__assign({},null==D?void 0:D.redirectionFixButton),b?null==D?void 0:D.fixButtonDisabled:{}),onClick:function(e){e.stopPropagation(),b||q()}},{children:"Fix"})),i.jsx(s.SquareArrowOutUpRight,{onClick:b?void 0:function(){b||null==j||j({type:v,id:_,aiReason:p,msg:g,meta:{headerText:x,decisionStrength:m,text:f}})},size:18,className:[b?l.default.redirectIconDisabled:l.default.redirectIcon].join(" "),style:e.__assign({},b?null==D?void 0:D.redirectIconDisabled:null==D?void 0:D.redirectIcon)})]})),"cra"===u&&!r&&i.jsx("div",e.__assign({className:l.default.rightSide,style:null==D?void 0:D.redirectionRightSide},{children:d===_?i.jsx("div",e.__assign({className:l.default.loaderWrapper,style:null==D?void 0:D.loaderWrapper},{children:i.jsx(s.Loader2,{size:16,className:l.default.loaderIcon,color:"grey",style:e.__assign({animation:"spin 1s linear infinite"},null==D?void 0:D.loaderIcon)})})):i.jsx("button",e.__assign({className:[l.default.clarifyButton].join(" "),style:e.__assign({color:b?"grey":""},null==D?void 0:D.redirectionClarifyButton),disabled:b,onClick:function(e){e.stopPropagation(),q()}},{children:"Clarify"}))}))]})]})),R&&i.jsx(a.default,{aiReason:{id:"1",reason:(null==p?void 0:p.Reasoning)||"",gap:(null==p?void 0:p.Gap)||"",relevance_score:Number(null==p?void 0:p.Confidence_score),explanation:(null==p?void 0:p.explanation)||""},onSelectProceed:q,customStyles:null==D?void 0:D.aiReasoningStyles,customIcons:N,cognitiveDecisionHeaders:I})]}))};
|
|
2
2
|
//# sourceMappingURL=CustomChatCrRedirection.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e}from"tslib";import{jsx as i,jsxs as n,Fragment as o}from"react/jsx-runtime";import{useState as l}from"react";import{ChevronUp as r,ChevronDown as t,Check as a,SquareArrowOutUpRight as s,Loader2 as c}from"lucide-react";import d from"./CustomChatCrRedirection.module.css.js";import u from"../ai-reasoning/AiReasoningCitationContent.js";import
|
|
1
|
+
import{__assign as e}from"tslib";import{jsx as i,jsxs as n,Fragment as o}from"react/jsx-runtime";import{useState as l}from"react";import{ChevronUp as r,ChevronDown as t,Check as a,SquareArrowOutUpRight as s,Loader2 as c}from"lucide-react";import d from"./CustomChatCrRedirection.module.css.js";import u from"../ai-reasoning/AiReasoningCitationContent.js";import v from"../../icons/CognitiveDecision.js";function g(g){var p=g.isDefaultOpen,m=g.processItemId,h=g.isCompleted,f=g.mode,y=g.msg,C=g.type,b=g.id,x=g.aiReason,D=g.text,N=g.headerText,I=g.decisionStrength;g.statusUi,g.panelRef;var T=g.onHandleSend,S=g.onRedirectClick,R=g.gapType,k=g.isGenerating,j=void 0!==k&&k,B=g.customStyles,W=g.customIcons,H=g.cognitiveDecisionHeaders,P=l(p),A=P[0],O=P[1];console.log("testing::reasoning",x);var z=(null==W?void 0:W.highConfidence)||i(v,{}),F=function(){"cra"===f?null==T||T("Discuss ambiguities on ".concat(D),b):null==T||T("Deep Dive into ".concat(R," ").concat(N,": ").concat(D),b)};return console.log("testing::aiReasoning",x),n("div",e({className:[d.outerWrapper,j?d.outerWrapperDisabled:""].join(" "),style:e(e({},null==B?void 0:B.redirectionOuterWrapper),j?null==B?void 0:B.redirectionOuterWrapperDisabled:{})},{children:[n("div",e({className:[d.card,j?d.cardDisabled:d.cardInteractive].join(" "),style:e(e({},null==B?void 0:B.redirectionCard),j?null==B?void 0:B.redirectionCardDisabled:null==B?void 0:B.redirectionCardInteractive)},{children:[n("div",e({className:d.leftSide,style:null==B?void 0:B.redirectionLeftSide},{children:[n("span",e({className:d.textBlock,style:null==B?void 0:B.redirectionTextBlock},{children:[N&&n("span",e({className:d.headerText,style:null==B?void 0:B.redirectionHeaderText},{children:[N,D?" ":""]})),D]})),n("span",e({onClick:function(e){e.stopPropagation(),j||O(!A)},className:[d.reasoningToggle,j?d.reasoningToggleDisabled:d.reasoningToggleActive].join(" "),style:e(e({},null==B?void 0:B.reasoningToggle),j?null==B?void 0:B.reasoningToggleDisabled:null==B?void 0:B.reasoningToggleActive)},{children:[z,i(A?r:t,{className:d.chevronIcon,style:null==B?void 0:B.chevronIcon})]}))]})),h?i("div",e({className:d.completeTickWrapper,style:null==B?void 0:B.completeTickWrapper},{children:i(a,{color:(null==B?void 0:B.checkColor)||"green"})})):n(o,{children:["risk-gap"===f&&n("div",e({className:d.rightSide,style:null==B?void 0:B.redirectionRightSide},{children:[i("button",e({disabled:j,className:[d.fixButton,j?d.fixButtonDisabled:""].join(" "),style:e(e({},null==B?void 0:B.redirectionFixButton),j?null==B?void 0:B.fixButtonDisabled:{}),onClick:function(e){e.stopPropagation(),j||F()}},{children:"Fix"})),i(s,{onClick:j?void 0:function(){j||null==S||S({type:C,id:b,aiReason:x,msg:y,meta:{headerText:N,decisionStrength:I,text:D}})},size:18,className:[j?d.redirectIconDisabled:d.redirectIcon].join(" "),style:e({},j?null==B?void 0:B.redirectIconDisabled:null==B?void 0:B.redirectIcon)})]})),"cra"===f&&!p&&i("div",e({className:d.rightSide,style:null==B?void 0:B.redirectionRightSide},{children:m===b?i("div",e({className:d.loaderWrapper,style:null==B?void 0:B.loaderWrapper},{children:i(c,{size:16,className:d.loaderIcon,color:"grey",style:e({animation:"spin 1s linear infinite"},null==B?void 0:B.loaderIcon)})})):i("button",e({className:[d.clarifyButton].join(" "),style:e({color:j?"grey":""},null==B?void 0:B.redirectionClarifyButton),disabled:j,onClick:function(e){e.stopPropagation(),F()}},{children:"Clarify"}))}))]})]})),A&&i(u,{aiReason:{id:"1",reason:(null==x?void 0:x.Reasoning)||"",gap:(null==x?void 0:x.Gap)||"",relevance_score:Number(null==x?void 0:x.Confidence_score),explanation:(null==x?void 0:x.explanation)||""},onSelectProceed:F,customStyles:null==B?void 0:B.aiReasoningStyles,customIcons:W,cognitiveDecisionHeaders:H})]}))}export{g as CustomChatCrRedirection};
|
|
2
2
|
//# sourceMappingURL=CustomChatCrRedirection.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usePdfHighlight.d.ts","sourceRoot":"","sources":["../../../../../src/features/PdfViewer/usePdfHighlight.tsx"],"names":[],"mappings":"AAKA,eAAO,MAAM,oBAAoB,kBAChB,MAAM,EAAE,kBACP,OAAO,MAAM,EAAE,MAAM,CAAC;;;;;;;+BAgBJ,MAAM;;;;;;;;;;;;CAmFzC,CAAC"}
|
|
1
|
+
{"version":3,"file":"usePdfHighlight.d.ts","sourceRoot":"","sources":["../../../../../src/features/PdfViewer/usePdfHighlight.tsx"],"names":[],"mappings":";AAKA,eAAO,MAAM,oBAAoB,kBAChB,MAAM,EAAE,kBACP,OAAO,MAAM,EAAE,MAAM,CAAC;;;;;;;+BAgBJ,MAAM;;;;;;;;;;;;CAmFzC,CAAC"}
|