@e-llm-studio/requirement-ai 0.0.12 → 0.0.13
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/ai-reasoning/AiReasonMarkdownWrapper.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/AppModCitationContent.module.css.js +2 -0
- package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/AppModCitationContent.module.css.js.map +1 -0
- package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/AppmodCitationContent.js +2 -0
- package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/AppmodCitationContent.js.map +1 -0
- package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/AppmodCitationRenderer.js +2 -0
- package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/AppmodCitationRenderer.js.map +1 -0
- package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/components/CodeLinkHandler.js +2 -0
- package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/components/CodeLinkHandler.js.map +1 -0
- package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/components/CodeLinkHandler.module.css.js +2 -0
- package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/components/CodeLinkHandler.module.css.js.map +1 -0
- package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/icons/AppmodIcon.js +2 -0
- package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/icons/AppmodIcon.js.map +1 -0
- package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/icons/ChatBubbleIcon.js +2 -0
- package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/icons/ChatBubbleIcon.js.map +1 -0
- package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/icons/SparkleIcon.js +2 -0
- package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/icons/SparkleIcon.js.map +1 -0
- package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/types.js +2 -0
- package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/types.js.map +1 -0
- package/dist/cjs/features/RequirementAI/components/citations/rca-citation/RCACitationContent.js +2 -0
- package/dist/cjs/features/RequirementAI/components/citations/rca-citation/RCACitationContent.js.map +1 -0
- package/dist/cjs/features/RequirementAI/components/citations/rca-citation/RCACitationContent.module.css.js +2 -0
- package/dist/cjs/features/RequirementAI/components/citations/rca-citation/RCACitationContent.module.css.js.map +1 -0
- package/dist/cjs/features/RequirementAI/components/citations/rca-citation/RCACitationRenderer.js +2 -0
- package/dist/cjs/features/RequirementAI/components/citations/rca-citation/RCACitationRenderer.js.map +1 -0
- package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.js +2 -0
- package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.js.map +1 -0
- package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.module.css.js +2 -0
- package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.module.css.js.map +1 -0
- package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationRenderer.js +2 -0
- package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationRenderer.js.map +1 -0
- package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/icons/ExternalLinkIcon.js +2 -0
- package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/icons/ExternalLinkIcon.js.map +1 -0
- package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/icons/FileCodeIcon.js +2 -0
- package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/icons/FileCodeIcon.js.map +1 -0
- package/dist/cjs/features/RequirementAI/components/citations/web-citation/ImagePreviewDialog.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/web-citation/WebCitation.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/web-citation/WebCitationRenderer.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/web-citation/WebCitationWithImageContent.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/web-citation/WebCitationWithImageRenderer.js +1 -1
- package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.js +1 -1
- package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/GapFilterContentWrapper.js +1 -1
- package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/GapFilterItem.js +1 -1
- package/dist/cjs/features/RequirementAI/shared/ExpandableOl.js +1 -1
- package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/AIConfidenceDisplay.js +2 -0
- package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/AIConfidenceDisplay.js.map +1 -0
- package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/AIConfidenceDisplay.module.css.js +2 -0
- package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/AIConfidenceDisplay.module.css.js.map +1 -0
- package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/icons/RelevanceScoreIcon.js +1 -1
- package/dist/features/RequirementAI/components/ai-reasoning/AiReasonMarkdownWrapper.js +1 -1
- package/dist/features/RequirementAI/components/citations/appmod-citation/AppModCitationContent.module.css.js +2 -0
- package/dist/features/RequirementAI/components/citations/appmod-citation/AppModCitationContent.module.css.js.map +1 -0
- package/dist/features/RequirementAI/components/citations/appmod-citation/AppmodCitationContent.js +2 -0
- package/dist/features/RequirementAI/components/citations/appmod-citation/AppmodCitationContent.js.map +1 -0
- package/dist/features/RequirementAI/components/citations/appmod-citation/AppmodCitationRenderer.js +2 -0
- package/dist/features/RequirementAI/components/citations/appmod-citation/AppmodCitationRenderer.js.map +1 -0
- package/dist/features/RequirementAI/components/citations/appmod-citation/components/CodeLinkHandler.js +2 -0
- package/dist/features/RequirementAI/components/citations/appmod-citation/components/CodeLinkHandler.js.map +1 -0
- package/dist/features/RequirementAI/components/citations/appmod-citation/components/CodeLinkHandler.module.css.js +2 -0
- package/dist/features/RequirementAI/components/citations/appmod-citation/components/CodeLinkHandler.module.css.js.map +1 -0
- package/dist/features/RequirementAI/components/citations/appmod-citation/icons/AppmodIcon.js +2 -0
- package/dist/features/RequirementAI/components/citations/appmod-citation/icons/AppmodIcon.js.map +1 -0
- package/dist/features/RequirementAI/components/citations/appmod-citation/icons/ChatBubbleIcon.js +2 -0
- package/dist/features/RequirementAI/components/citations/appmod-citation/icons/ChatBubbleIcon.js.map +1 -0
- package/dist/features/RequirementAI/components/citations/appmod-citation/icons/SparkleIcon.js +2 -0
- package/dist/features/RequirementAI/components/citations/appmod-citation/icons/SparkleIcon.js.map +1 -0
- package/dist/features/RequirementAI/components/citations/appmod-citation/types.js +2 -0
- package/dist/features/RequirementAI/components/citations/appmod-citation/types.js.map +1 -0
- package/dist/features/RequirementAI/components/citations/rca-citation/RCACitationContent.js +2 -0
- package/dist/features/RequirementAI/components/citations/rca-citation/RCACitationContent.js.map +1 -0
- package/dist/features/RequirementAI/components/citations/rca-citation/RCACitationContent.module.css.js +2 -0
- package/dist/features/RequirementAI/components/citations/rca-citation/RCACitationContent.module.css.js.map +1 -0
- package/dist/features/RequirementAI/components/citations/rca-citation/RCACitationRenderer.js +2 -0
- package/dist/features/RequirementAI/components/citations/rca-citation/RCACitationRenderer.js.map +1 -0
- package/dist/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.js +2 -0
- package/dist/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.js.map +1 -0
- package/dist/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.module.css.js +2 -0
- package/dist/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.module.css.js.map +1 -0
- package/dist/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationRenderer.js +2 -0
- package/dist/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationRenderer.js.map +1 -0
- package/dist/features/RequirementAI/components/citations/readfile-citation/icons/ExternalLinkIcon.js +2 -0
- package/dist/features/RequirementAI/components/citations/readfile-citation/icons/ExternalLinkIcon.js.map +1 -0
- package/dist/features/RequirementAI/components/citations/readfile-citation/icons/FileCodeIcon.js +2 -0
- package/dist/features/RequirementAI/components/citations/readfile-citation/icons/FileCodeIcon.js.map +1 -0
- package/dist/features/RequirementAI/components/citations/web-citation/ImagePreviewDialog.js +1 -1
- package/dist/features/RequirementAI/components/citations/web-citation/WebCitation.js +1 -1
- package/dist/features/RequirementAI/components/citations/web-citation/WebCitationRenderer.js +1 -1
- package/dist/features/RequirementAI/components/citations/web-citation/WebCitationWithImageContent.js +1 -1
- package/dist/features/RequirementAI/components/citations/web-citation/WebCitationWithImageRenderer.js +1 -1
- package/dist/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.js +1 -1
- package/dist/features/RequirementAI/components/lsc-reason-gap/GapFilterContentWrapper.js +1 -1
- package/dist/features/RequirementAI/components/lsc-reason-gap/GapFilterItem.js +1 -1
- package/dist/features/RequirementAI/shared/ExpandableOl.js +1 -1
- package/dist/features/RequirementAiCitations/AiReasoning/components/AIConfidenceDisplay.js +2 -0
- package/dist/features/RequirementAiCitations/AiReasoning/components/AIConfidenceDisplay.js.map +1 -0
- package/dist/features/RequirementAiCitations/AiReasoning/components/AIConfidenceDisplay.module.css.js +2 -0
- package/dist/features/RequirementAiCitations/AiReasoning/components/AIConfidenceDisplay.module.css.js.map +1 -0
- package/dist/features/RequirementAiCitations/AiReasoning/components/icons/RelevanceScoreIcon.js +1 -1
- package/dist/types/src/RequirementAiTest.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/ai-reasoning/AiReasonMarkdownWrapper.d.ts +2 -2
- package/dist/types/src/features/RequirementAI/components/ai-reasoning/AiReasonMarkdownWrapper.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/citations/appmod-citation/AppmodCitationContent.d.ts +14 -0
- package/dist/types/src/features/RequirementAI/components/citations/appmod-citation/AppmodCitationContent.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/citations/appmod-citation/AppmodCitationRenderer.d.ts +5 -0
- package/dist/types/src/features/RequirementAI/components/citations/appmod-citation/AppmodCitationRenderer.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/citations/appmod-citation/components/CodeLinkHandler.d.ts +14 -0
- package/dist/types/src/features/RequirementAI/components/citations/appmod-citation/components/CodeLinkHandler.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/citations/appmod-citation/icons/AppmodIcon.d.ts +4 -0
- package/dist/types/src/features/RequirementAI/components/citations/appmod-citation/icons/AppmodIcon.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/citations/appmod-citation/icons/ChatBubbleIcon.d.ts +4 -0
- package/dist/types/src/features/RequirementAI/components/citations/appmod-citation/icons/ChatBubbleIcon.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/citations/appmod-citation/icons/ChevronDown.d.ts +4 -0
- package/dist/types/src/features/RequirementAI/components/citations/appmod-citation/icons/ChevronDown.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/citations/appmod-citation/icons/ChevronUpIcon.d.ts +4 -0
- package/dist/types/src/features/RequirementAI/components/citations/appmod-citation/icons/ChevronUpIcon.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/citations/appmod-citation/icons/ExternalLinkIcon.d.ts +4 -0
- package/dist/types/src/features/RequirementAI/components/citations/appmod-citation/icons/ExternalLinkIcon.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/citations/appmod-citation/icons/MessageCircleIcon.d.ts +4 -0
- package/dist/types/src/features/RequirementAI/components/citations/appmod-citation/icons/MessageCircleIcon.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/citations/appmod-citation/icons/NotebookIcon.d.ts +4 -0
- package/dist/types/src/features/RequirementAI/components/citations/appmod-citation/icons/NotebookIcon.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/citations/appmod-citation/icons/SparkleIcon.d.ts +7 -0
- package/dist/types/src/features/RequirementAI/components/citations/appmod-citation/icons/SparkleIcon.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/citations/appmod-citation/types.d.ts +121 -0
- package/dist/types/src/features/RequirementAI/components/citations/appmod-citation/types.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/citations/file-citation/FileCitationContent.d.ts +2 -2
- package/dist/types/src/features/RequirementAI/components/citations/file-citation/FileCitationContent.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/citations/rca-citation/RCACitationContent.d.ts +13 -0
- package/dist/types/src/features/RequirementAI/components/citations/rca-citation/RCACitationContent.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/citations/rca-citation/RCACitationRenderer.d.ts +5 -0
- package/dist/types/src/features/RequirementAI/components/citations/rca-citation/RCACitationRenderer.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/citations/rca-citation/types.d.ts +60 -0
- package/dist/types/src/features/RequirementAI/components/citations/rca-citation/types.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.d.ts +15 -0
- package/dist/types/src/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationRenderer.d.ts +5 -0
- package/dist/types/src/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationRenderer.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/citations/readfile-citation/icons/ExternalLinkIcon.d.ts +8 -0
- package/dist/types/src/features/RequirementAI/components/citations/readfile-citation/icons/ExternalLinkIcon.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/citations/readfile-citation/icons/FileCodeIcon.d.ts +8 -0
- package/dist/types/src/features/RequirementAI/components/citations/readfile-citation/icons/FileCodeIcon.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/citations/readfile-citation/types.d.ts +68 -0
- package/dist/types/src/features/RequirementAI/components/citations/readfile-citation/types.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/citations/web-citation/ImagePreviewDialog.d.ts +1 -0
- package/dist/types/src/features/RequirementAI/components/citations/web-citation/ImagePreviewDialog.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/citations/web-citation/WebCitation.d.ts +3 -2
- package/dist/types/src/features/RequirementAI/components/citations/web-citation/WebCitation.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/citations/web-citation/WebCitationWithImageContent.d.ts +2 -1
- package/dist/types/src/features/RequirementAI/components/citations/web-citation/WebCitationWithImageContent.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/citations/web-citation/WebCitationWithImageRenderer.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/lsc-reason-gap/GapFilterContentWrapper.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/lsc-reason-gap/GapFilterItem.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/interfaces/citation.interface.d.ts +2 -1
- package/dist/types/src/features/RequirementAI/interfaces/citation.interface.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/shared/ExpandableOl.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/types/aiReasoning.type.d.ts +13 -0
- package/dist/types/src/features/RequirementAI/types/aiReasoning.type.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/types/citation.type.d.ts +12 -4
- package/dist/types/src/features/RequirementAI/types/citation.type.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/types/gapFilterStyles.type.d.ts +6 -1
- package/dist/types/src/features/RequirementAI/types/gapFilterStyles.type.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/AIConfidenceDisplay.d.ts +1 -0
- package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/AIConfidenceDisplay.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/AiReasonMarkdownWrapper.d.ts +1 -1
- package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/AiReasonMarkdownWrapper.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/icons/RelevanceScoreIcon.d.ts +1 -0
- package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/icons/RelevanceScoreIcon.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAiCitations/AiReasoning/types/interface.d.ts +12 -3
- package/dist/types/src/features/RequirementAiCitations/AiReasoning/types/interface.d.ts.map +1 -1
- package/package.json +3 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),i=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),i=require("react/jsx-runtime"),t=require("react"),n=require("react-markdown"),a=require("rehype-raw"),o=require("lucide-react"),l=require("@mui/material"),s=require("./AiReasonMarkdownWrapper.module.css.js"),r=require("../../shared/ExpandableOl.js"),d=require("../citations/web-citation/WebCitationWithImageRenderer.js"),c=require("../citations/web-citation/WebCitationRenderer.js"),u=require("../citations/image-citation/ImageCitationRenderer.js"),_=require("../citations/file-citation/FileCitationRender.js"),m=require("../RequirementAIWrapper/RequirementAIWrapper.js"),v=require("../citations/stormee-citation/StormeeCitationRenderer.js"),f=require("../citations/audio-citation/WaveformCitationRenderer.js"),p=require("../citations/appmod-citation/AppmodCitationRenderer.js"),j=require("../citations/rca-citation/RCACitationRenderer.js"),h=require("../citations/readfile-citation/ReadFileCitationRenderer.js");function x(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var g=x(n),b=x(a);exports.AiReasonMarkdownWrapper=function(n){var a=n.message,x=n.isExpandableOrderedListEnabled,y=n.customStyles,q=n.citationStyles,I=n.customIcons,R=n.onSelectProceed,C=n.isDisableProceedButton,S=t.useRef(null),M=m.useRequirementAI().citations,k=t.useMemo(function(){return{h1:function(t){t.node;var n=e.__rest(t,["node"]);return i.jsx("h1",e.__assign({className:s.default.h1,style:null==y?void 0:y.h1},{children:null==n?void 0:n.children}))},h2:function(t){t.node;var n=e.__rest(t,["node"]);return i.jsx("h2",e.__assign({className:s.default.h2,style:null==y?void 0:y.h2},{children:null==n?void 0:n.children}))},h3:function(t){t.node;var n=e.__rest(t,["node"]);return i.jsx("h2",e.__assign({className:s.default.h3,style:null==y?void 0:y.h3},{children:null==n?void 0:n.children}))},b:function(t){return t.node,e.__rest(t,["node"]),i.jsx("b",{className:s.default.bold,style:null==y?void 0:y.b})},p:function(t){t.node;var n=e.__rest(t,["node"]);return i.jsx("p",e.__assign({},n,{className:s.default.paragraph,style:null==y?void 0:y.p},{children:null==n?void 0:n.children}))},ol:function(t){t.node;var n=e.__rest(t,["node"]);return x?i.jsx(r.default,e.__assign({customStyles:null==y?void 0:y.expandOlStyle,onProceed:R,isProceedDisabled:C},{children:null==n?void 0:n.children})):i.jsx("ol",e.__assign({className:s.default.orderedList,style:null==y?void 0:y.ol},{children:null==n?void 0:n.children}))},ul:function(t){t.node;var n=e.__rest(t,["node"]);return i.jsx("ul",e.__assign({className:s.default.unorderedList},{children:null==n?void 0:n.children}))},a:function(n){var a,o,l,s,r,m,x,g,b,y;n.inline;var R=n.children;n.node;var C=e.__rest(n,["inline","children","node"]);null==C||C.table;var S="".concat(null==C?void 0:C.href),k=null===(a=S.split("$"))||void 0===a?void 0:a[0],w=null===(o=S.split("$"))||void 0===o?void 0:o[1],N=("appmod_citation"===k?(null==M?void 0:M.appmod_citations)||[]:"image_citation"===k?(null==M?void 0:M.image_citations)||[]:"audio_citation"===k?(null==M?void 0:M.audio_citations)||[]:"document_citation"===k?(null==M?void 0:M.file_citations)||[]:"rca_citation"===k?(null==M?void 0:M.rca_citations)||[]:"web_citation"===k?(null==M?void 0:M.web_citations)||[]:"code_generated"===k?(null==M?void 0:M.code_generated)||[]:"readfile_citation"===k&&(null==M?void 0:M.readfile_citations)||[]).find(function(e){return e.citation_number===decodeURIComponent(w)});return"image_citation"!==k||N?"web_citation"===(null===(l=null==N?void 0:N.customMetadata)||void 0===l?void 0:l.type)?(null===(s=N.customMetadata)||void 0===s?void 0:s.screenshot_url)?i.jsx(d.default,{title:R,citation:N,customStyles:null==q?void 0:q.webCitation,customIcons:I}):i.jsx(c.default,{label:R,url:null===(r=N.customMetadata)||void 0===r?void 0:r.link,customStyles:null==q?void 0:q.webCitation,customIcons:I}):"audio_transcript"===(null===(m=null==N?void 0:N.customMetadata)||void 0===m?void 0:m.type)?"stormee"===(null==N?void 0:N.customMetadata.audio_citation_mode)?i.jsx(t.Suspense,e.__assign({fallback:i.jsx(i.Fragment,{})},{children:i.jsx(v.default,{title:"".concat(R),citation:N,customStyles:null==q?void 0:q.stormeeCitation,customIcons:I})})):i.jsx(t.Suspense,e.__assign({fallback:i.jsx(i.Fragment,{})},{children:i.jsx(f.default,{title:"".concat(R),citation:N,customStyles:null==q?void 0:q.waveformCitation,customIcons:I})})):"image_citation"===(null==N?void 0:N.customMetadata.type)?i.jsx(t.Suspense,e.__assign({fallback:i.jsx(i.Fragment,{})},{children:i.jsx(u.default,{title:"".concat(R),citation:N,customIcons:I})})):"book_citation_doc"===(null===(x=null==N?void 0:N.customMetadata)||void 0===x?void 0:x.type)||"book_citation_pdf"===(null==N?void 0:N.customMetadata.type)?i.jsx(t.Suspense,e.__assign({fallback:i.jsx(i.Fragment,{})},{children:i.jsx(_.default,{title:"".concat(R),citation:N,customIcons:I})})):"app_mod_rag_question"===(null===(g=null==N?void 0:N.customMetadata)||void 0===g?void 0:g.type)?i.jsx(t.Suspense,e.__assign({fallback:i.jsx(i.Fragment,{})},{children:i.jsx(p.default,{title:"".concat(R),citation:N,customIcons:I})})):"rca_citation"===(null===(b=null==N?void 0:N.customMetadata)||void 0===b?void 0:b.type)?i.jsx(t.Suspense,e.__assign({fallback:i.jsx(i.Fragment,{})},{children:i.jsx(j.default,{title:"".concat(R),citation:N,customIcons:I})})):"readfile_citation"===(null===(y=null==N?void 0:N.customMetadata)||void 0===y?void 0:y.type)?i.jsx(t.Suspense,e.__assign({fallback:i.jsx(i.Fragment,{})},{children:i.jsx(h.default,{title:"".concat(R),citation:N,customIcons:I})})):null:null},code:function(t){t.inline;var n=t.children,a=t.className;return t.node,e.__rest(t,["inline","children","className","node"]),/language-(\w+)/.exec(a||"")||(null==a?void 0:a.includes("language-"))?i.jsx("div",{children:i.jsx("code",e.__assign({className:s.default.blockCode},{children:n}))}):i.jsx("code",e.__assign({className:s.default.inlineCode,style:null==y?void 0:y.code},{children:n}))},learned:function(t){var n=t.children;return i.jsx(i.Fragment,{children:i.jsx(l.Tooltip,e.__assign({title:n,placement:"top"},{children:i.jsx(o.Info,{size:16,className:s.default.learnedIcon})}))})}}},[M,x]);return i.jsx("div",e.__assign({ref:S,className:"w-full"},{children:i.jsx(g.default,e.__assign({components:k,rehypePlugins:[b.default]},{children:a}))}))};
|
|
2
2
|
//# sourceMappingURL=AiReasonMarkdownWrapper.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});!function(){if("undefined"==typeof document)return;const t=document.createElement("style");t.type="text/css";const o=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;o&&t.setAttribute("nonce",o),t.appendChild(document.createTextNode(".AppModCitationContent-module_container__1xtAs{background-color:#f9fafb;border:1px solid #e5e7eb;border-radius:12px;color:#1f2937;display:flex;flex-direction:column;gap:16px;padding:16px 24px;width:100%}.AppModCitationContent-module_header__IeZE7{align-items:center;background-color:#fff;border:1px solid #e5e7eb;border-radius:12px;display:flex;flex-direction:row;gap:12px;justify-content:space-between;overflow:auto;padding:16px;width:100%}.AppModCitationContent-module_headerLeft__G7-35{align-items:center;display:flex;flex-direction:row;gap:8px}.AppModCitationContent-module_headerIcon__O4LnW{color:#1f2937;height:24px;width:24px}.AppModCitationContent-module_headerTitle__5Dq1f{color:#1f2937;font-size:14px;font-weight:600}.AppModCitationContent-module_questionContainer__6I-z9{align-items:flex-end;display:flex;flex-direction:column;width:100%}.AppModCitationContent-module_questionLabel__YCafM{color:#6b7280;font-size:12px;margin-bottom:4px}.AppModCitationContent-module_questionText__rP1IB{background-color:#fff;border:1px solid #e5e7eb;border-radius:8px;color:#1f2937;max-width:fit-content;padding:16px;text-align:justify}.AppModCitationContent-module_answerIconRow__Rj9KV{display:flex;flex-direction:row;justify-content:flex-start;width:100%}.AppModCitationContent-module_answerContainer__S3wvq{text-align:justify}.AppModCitationContent-module_loadingText__Beq8T{animation:AppModCitationContent-module_pulse__mtrYX 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes AppModCitationContent-module_pulse__mtrYX{0%,to{opacity:1}50%{opacity:.5}}.AppModCitationContent-module_errorText__smgrK{color:#dc2626}.AppModCitationContent-module_markdownContent__0mTD6{font-size:14px;line-height:1.6}.AppModCitationContent-module_heading1__-7eiM{color:#1f2937;font-size:24px;font-weight:700;margin-bottom:8px}.AppModCitationContent-module_heading2__noC-I{color:#1f2937;font-size:20px;font-weight:700;margin-bottom:8px}.AppModCitationContent-module_heading3__WLrMU{color:#1f2937;font-size:18px;font-weight:700;padding:4px 0}.AppModCitationContent-module_heading4__-5Itm{color:#1f2937;font-size:16px;font-weight:700;padding:4px 0}.AppModCitationContent-module_heading5__7VnDs{color:#1f2937;font-size:16px;font-weight:700}.AppModCitationContent-module_heading6__XZFnq{color:#6932e2;font-size:14px;font-weight:700;line-height:1.5;margin-bottom:8px;margin-top:12px}.AppModCitationContent-module_orderedList__U8rDR{list-style-position:outside;list-style-type:decimal;margin-bottom:16px;margin-left:16px;padding-left:24px}.AppModCitationContent-module_unorderedList__KZqQI{color:#1f2937;display:flex;flex-direction:column;font-size:14px;list-style-type:disc;margin-left:24px;overflow:auto;width:100%}.AppModCitationContent-module_listItem__azue-{color:#1f2937;font-size:14px;list-style-type:inherit;margin-left:24px;margin-top:4px}.AppModCitationContent-module_paragraph__cTK0G{color:#1f2937;font-size:14px;margin-bottom:8px}.AppModCitationContent-module_strong__Xl0Md{font-weight:700}.AppModCitationContent-module_emphasis__AY1-H{font-style:italic}.AppModCitationContent-module_inlineCode__-RsaD{background-color:#f3f4f6;border-radius:4px;color:#1f2937;display:inline;font-family:Source Code Pro,monospace;font-size:.95em;padding:2px 4px;white-space:normal;word-break:break-all}.AppModCitationContent-module_codeBlock__nE4xi{background-color:initial;display:block;min-width:fit-content;overflow:hidden;padding:8px;white-space:pre-wrap;width:100%;word-break:break-word}.AppModCitationContent-module_preBlock__hP-NM{background-color:initial;border-radius:4px;font-family:Source Code Pro,monospace;font-size:14px;white-space:pre-wrap;word-break:break-word}.AppModCitationContent-module_blockquote__wIA4u{border-left:4px solid #e5e7eb;font-style:italic;margin:8px 0;padding-left:16px}.AppModCitationContent-module_tableWrapper__QoOZO{overflow-x:auto;width:100%}.AppModCitationContent-module_table__-Ps6M{border:1px solid #e5e7eb;border-collapse:collapse;margin:16px 0;width:100%}.AppModCitationContent-module_tableHead__BKTXh{background-color:#f3f4f6}.AppModCitationContent-module_tableRow__OPcye{border-bottom:1px solid #e5e7eb}.AppModCitationContent-module_tableRow__OPcye:hover{background-color:#f3f4f6}.AppModCitationContent-module_tableHeader__UCiHb{background-color:#f3f4f6;font-weight:700;text-align:left}.AppModCitationContent-module_tableCell__W7wAz,.AppModCitationContent-module_tableHeader__UCiHb{color:#1f2937;padding:8px 16px;white-space:normal;word-break:break-word}.AppModCitationContent-module_details__2ON5i{background-color:initial;border-radius:8px;font-size:14px;overflow:auto;padding:8px 0}.AppModCitationContent-module_summary__vtqBZ{align-items:center;border-radius:4px;cursor:pointer;display:flex;font-size:14px;font-weight:600;gap:8px;justify-content:space-between;list-style:none;padding-bottom:4px;text-align:justify;user-select:none}.AppModCitationContent-module_summary__vtqBZ::-webkit-details-marker{display:none}.AppModCitationContent-module_assistantName__raxXk{font-weight:600}.AppModCitationContent-module_assistantNameInner__hRLWV{color:#3b82f6}"));const e=document.head||document.getElementsByTagName("head")[0]||document.documentElement;e&&e.appendChild(t)}(),exports.default={container:"AppModCitationContent-module_container__1xtAs",header:"AppModCitationContent-module_header__IeZE7",headerLeft:"AppModCitationContent-module_headerLeft__G7-35",headerIcon:"AppModCitationContent-module_headerIcon__O4LnW",headerTitle:"AppModCitationContent-module_headerTitle__5Dq1f",questionContainer:"AppModCitationContent-module_questionContainer__6I-z9",questionLabel:"AppModCitationContent-module_questionLabel__YCafM",questionText:"AppModCitationContent-module_questionText__rP1IB",answerIconRow:"AppModCitationContent-module_answerIconRow__Rj9KV",answerContainer:"AppModCitationContent-module_answerContainer__S3wvq",loadingText:"AppModCitationContent-module_loadingText__Beq8T",pulse:"AppModCitationContent-module_pulse__mtrYX",errorText:"AppModCitationContent-module_errorText__smgrK",markdownContent:"AppModCitationContent-module_markdownContent__0mTD6",heading1:"AppModCitationContent-module_heading1__-7eiM",heading2:"AppModCitationContent-module_heading2__noC-I",heading3:"AppModCitationContent-module_heading3__WLrMU",heading4:"AppModCitationContent-module_heading4__-5Itm",heading5:"AppModCitationContent-module_heading5__7VnDs",heading6:"AppModCitationContent-module_heading6__XZFnq",orderedList:"AppModCitationContent-module_orderedList__U8rDR",unorderedList:"AppModCitationContent-module_unorderedList__KZqQI",listItem:"AppModCitationContent-module_listItem__azue-",paragraph:"AppModCitationContent-module_paragraph__cTK0G",strong:"AppModCitationContent-module_strong__Xl0Md",emphasis:"AppModCitationContent-module_emphasis__AY1-H",inlineCode:"AppModCitationContent-module_inlineCode__-RsaD",codeBlock:"AppModCitationContent-module_codeBlock__nE4xi",preBlock:"AppModCitationContent-module_preBlock__hP-NM",blockquote:"AppModCitationContent-module_blockquote__wIA4u",tableWrapper:"AppModCitationContent-module_tableWrapper__QoOZO",table:"AppModCitationContent-module_table__-Ps6M",tableHead:"AppModCitationContent-module_tableHead__BKTXh",tableBody:"AppModCitationContent-module_tableBody__t55D5",tableRow:"AppModCitationContent-module_tableRow__OPcye",tableHeader:"AppModCitationContent-module_tableHeader__UCiHb",tableCell:"AppModCitationContent-module_tableCell__W7wAz",details:"AppModCitationContent-module_details__2ON5i",summary:"AppModCitationContent-module_summary__vtqBZ",assistantName:"AppModCitationContent-module_assistantName__raxXk",assistantNameInner:"AppModCitationContent-module_assistantNameInner__hRLWV"};
|
|
2
|
+
//# sourceMappingURL=AppModCitationContent.module.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AppModCitationContent.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),s=require("react"),a=require("react-markdown"),l=require("rehype-raw"),i=require("./AppModCitationContent.module.css.js"),r=require("./components/CodeLinkHandler.js"),d=require("./types.js"),t=require("../../../../RequirementAiCitations/AiReasoning/components/AIConfidenceDisplay.js"),o=require("./icons/SparkleIcon.js");function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var c=u(a),_=u(l),h=function(s,a,l,t){var o=(null==a?void 0:a.highlight)||d.DEFAULT_HIGHLIGHT_THEME,u=function(){return s?{backgroundColor:o.background,color:o.text,padding:"2px 3px",borderRadius:"2px",boxDecorationBreak:"clone",WebkitBoxDecorationBreak:"clone"}:{}},c=function(){return e.__assign(e.__assign({},u()),{display:"inline"})};return{h1:function(l){var r,d=l.children;return n.jsx("h1",e.__assign({className:i.default.heading1,style:null===(r=null==a?void 0:a.markdown)||void 0===r?void 0:r.heading1},{children:s?n.jsx("span",e.__assign({style:u()},{children:d})):d}))},h2:function(l){var r,d=l.children;return n.jsx("h2",e.__assign({className:i.default.heading2,style:null===(r=null==a?void 0:a.markdown)||void 0===r?void 0:r.heading2},{children:s?n.jsx("span",e.__assign({style:u()},{children:d})):d}))},h3:function(l){var r,d=l.children;return n.jsx("h3",e.__assign({className:i.default.heading3,style:null===(r=null==a?void 0:a.markdown)||void 0===r?void 0:r.heading3},{children:s?n.jsx("span",e.__assign({style:u()},{children:d})):d}))},h4:function(l){var r,d=l.children;return n.jsx("h4",e.__assign({className:i.default.heading4,style:null===(r=null==a?void 0:a.markdown)||void 0===r?void 0:r.heading4},{children:s?n.jsx("span",e.__assign({style:u()},{children:d})):d}))},h5:function(l){var r,d=l.children;return n.jsx("h5",e.__assign({className:i.default.heading5,style:null===(r=null==a?void 0:a.markdown)||void 0===r?void 0:r.heading5},{children:s?n.jsx("span",e.__assign({style:u()},{children:d})):d}))},h6:function(l){var r,d=l.children;return n.jsx("h6",e.__assign({className:i.default.heading6,style:null===(r=null==a?void 0:a.markdown)||void 0===r?void 0:r.heading6},{children:s?n.jsx("span",e.__assign({style:u()},{children:d})):d}))},p:function(l){var r,d=l.children;return n.jsx("p",e.__assign({className:i.default.paragraph,style:null===(r=null==a?void 0:a.markdown)||void 0===r?void 0:r.paragraph},{children:s?n.jsx("span",e.__assign({style:c()},{children:d})):d}))},ol:function(s){var l,r=s.children;return n.jsx("ol",e.__assign({className:i.default.orderedList,style:null===(l=null==a?void 0:a.markdown)||void 0===l?void 0:l.list},{children:r}))},ul:function(s){var l,r=s.children;return n.jsx("ul",e.__assign({className:i.default.unorderedList,style:null===(l=null==a?void 0:a.markdown)||void 0===l?void 0:l.list},{children:r}))},li:function(l){var r,d=l.children;return n.jsx("li",e.__assign({className:i.default.listItem,style:null===(r=null==a?void 0:a.markdown)||void 0===r?void 0:r.listItem},{children:s?n.jsx("span",e.__assign({style:c()},{children:d})):d}))},strong:function(l){var r,d=l.children;return n.jsx("strong",e.__assign({className:i.default.strong,style:e.__assign(e.__assign({},null===(r=null==a?void 0:a.markdown)||void 0===r?void 0:r.strong),s?u():{})},{children:d}))},em:function(l){var r,d=l.children;return n.jsx("em",e.__assign({className:i.default.emphasis,style:e.__assign(e.__assign({},null===(r=null==a?void 0:a.markdown)||void 0===r?void 0:r.emphasis),s?u():{})},{children:d}))},a:function(i){var d,u=i.children,c=i.href;return n.jsx(r.default,e.__assign({href:c,codeLinkConfig:t,isHighlighted:s,highlightTheme:o,customLinkStyles:null===(d=null==a?void 0:a.markdown)||void 0===d?void 0:d.link,customIcon:null==l?void 0:l.appModCitationIcon},{children:u}))},code:function(l){var r,d,t=l.children,u=l.className,c=null==u?void 0:u.includes("language-"),_=s?{backgroundColor:o.codeBackground,color:o.codeText,border:"1px solid ".concat(o.codeBorder)}:{};return c?n.jsx("div",{children:n.jsx("code",e.__assign({className:i.default.codeBlock,style:e.__assign(e.__assign({},null===(d=null==a?void 0:a.markdown)||void 0===d?void 0:d.codeBlock),_)},{children:t}))}):n.jsx("code",e.__assign({className:i.default.inlineCode,style:e.__assign(e.__assign({},null===(r=null==a?void 0:a.markdown)||void 0===r?void 0:r.code),_)},{children:t}))},pre:function(s){var a=s.children;return n.jsx("pre",e.__assign({className:i.default.preBlock},{children:a}))},blockquote:function(l){var r,d=l.children;return n.jsx("blockquote",e.__assign({className:i.default.blockquote,style:e.__assign(e.__assign({},null===(r=null==a?void 0:a.markdown)||void 0===r?void 0:r.blockquote),s?{borderColor:o.border}:{})},{children:s?n.jsx("span",e.__assign({style:c()},{children:d})):d}))},table:function(l){var r,d=l.children;return n.jsx("div",e.__assign({className:i.default.tableWrapper},{children:n.jsx("table",e.__assign({className:i.default.table,style:e.__assign(e.__assign({},null===(r=null==a?void 0:a.markdown)||void 0===r?void 0:r.table),s?u():{})},{children:d}))}))},thead:function(s){var a=s.children;return n.jsx("thead",e.__assign({className:i.default.tableHead},{children:a}))},tbody:function(s){var a=s.children;return n.jsx("tbody",e.__assign({className:i.default.tableBody},{children:a}))},tr:function(a){var l=a.children;return n.jsx("tr",e.__assign({className:i.default.tableRow,style:s?u():{}},{children:l}))},th:function(l){var r,d=l.children;return n.jsx("th",e.__assign({className:i.default.tableHeader,style:e.__assign(e.__assign({},null===(r=null==a?void 0:a.markdown)||void 0===r?void 0:r.tableHeader),s?u():{})},{children:d}))},td:function(l){var r,d=l.children;return n.jsx("td",e.__assign({className:i.default.tableCell,style:e.__assign(e.__assign({},null===(r=null==a?void 0:a.markdown)||void 0===r?void 0:r.tableCell),s?u():{})},{children:d}))},details:function(s){var a=s.children;return n.jsx("details",e.__assign({className:i.default.details},{children:a}))},summary:function(a){var l=a.children,r=function(e){var n;return"string"==typeof e?e:Array.isArray(e)?e.map(r).join(""):(null===(n=null==e?void 0:e.props)||void 0===n?void 0:n.children)?r(e.props.children):""},d=r(l).replace(/:$/,"").trim();return n.jsx("summary",e.__assign({className:i.default.summary,style:s?u():{}},{children:d}))}}};exports.default=function(a){var l,r,d=a.citation,u=a.customStyles,g=a.customIcons,v=a.codeLinkConfig,m=a.isLoading,f=void 0!==m&&m,p=s.useRef(null),x=d.description||"",y=d.customMetadata.question||"",j=d.customMetadata.highlighted_text,b=d.customMetadata.relevance_score,k=s.useMemo(function(){return h(!1,u,g,v)},[u,g,v]),N=s.useMemo(function(){return h(!0,u,g,v)},[u,g,v]),w=(null==g?void 0:g.appModCitationIcon)||n.jsx("div",{children:n.jsx(o.SparkleIcon,{className:i.default.headerIcon})});return n.jsxs("div",e.__assign({ref:p,className:i.default.container,style:null==u?void 0:u.container},{children:[n.jsxs("div",e.__assign({className:i.default.header,style:null==u?void 0:u.header},{children:[n.jsxs("div",e.__assign({className:i.default.headerLeft,style:null==u?void 0:u.headerLeft},{children:[n.jsx("span",e.__assign({style:null==u?void 0:u.headerIcon},{children:w})),n.jsx("span",e.__assign({className:i.default.headerTitle,style:null==u?void 0:u.headerTitle},{children:"AskMod Response"}))]})),t.renderAIConfidenceDisplay(b,null==u?void 0:u.confidenceDisplay)]})),n.jsxs("div",e.__assign({className:i.default.questionContainer,style:null==u?void 0:u.questionContainer},{children:[n.jsx("p",e.__assign({className:i.default.questionLabel,style:null==u?void 0:u.questionLabel},{children:"Me"})),n.jsx("div",e.__assign({className:i.default.questionText,style:null==u?void 0:u.questionText},{children:y||"Ask question to get response"}))]})),n.jsx("div",e.__assign({className:i.default.answerIconRow,style:null==u?void 0:u.answerIconRow},{children:n.jsxs("p",e.__assign({className:i.default.assistantName,style:null==u?void 0:u.assistantName},{children:["Askmod",n.jsx("span",e.__assign({className:i.default.assistantNameInner,style:null==u?void 0:u.assistantNameInner},{children:".AI"}))]}))})),n.jsx("div",e.__assign({className:i.default.answerContainer,style:null==u?void 0:u.answerContainer},{children:f?n.jsx("span",e.__assign({className:i.default.loadingText,style:null===(l=null==u?void 0:u.loading)||void 0===l?void 0:l.text},{children:"Generating..."})):x?function(s,a){var l,r=(void 0===(l=s.replace(/\\n/g,"\n"))&&(l=""),l.replace(/<details\b([^>]*)>/gi,function(e,n){return/\bopen\b/i.test(n)?"<details open>":"<details>"}).replace(/<summary\b[^>]*>\s*<codebasename>([^<]*)<\/codebasename>\s*<\/summary>/gi,function(e,n){return'<summary class="codebase-summary codebasename">From '.concat(n.trim()," codebase</summary>")}).replace(/<\/summary>/g,"</summary>\n").replace(/```codebasename\s*([\s\S]{0,2000}?)```/gi,function(e,n){return"<codebasename>".concat(n.trim(),"</codebasename>")}).trim());if(a&&r.includes(a)){var d=r.indexOf(a),t=r.substring(0,d),o=r.substring(d,d+a.length),u=r.substring(d+a.length),h=!o.trim();return n.jsxs("div",e.__assign({className:i.default.markdownContent},{children:[t&&n.jsx(c.default,e.__assign({rehypePlugins:[_.default],components:k},{children:t})),o&&!h&&n.jsx(c.default,e.__assign({rehypePlugins:[_.default],components:N},{children:o})),o&&h&&o,u&&n.jsx(c.default,e.__assign({rehypePlugins:[_.default],components:k},{children:u}))]}))}return n.jsx(c.default,e.__assign({className:i.default.markdownContent,rehypePlugins:[_.default],components:k},{children:r}))}(x,j):n.jsx("span",e.__assign({className:i.default.errorText,style:null===(r=null==u?void 0:u.error)||void 0===r?void 0:r.text},{children:"Oops! Can't generate your response now."}))}))]}))};
|
|
2
|
+
//# sourceMappingURL=AppmodCitationContent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AppmodCitationContent.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),n=require("lucide-react"),i=require("../../../../CitationRenderer/CitationRenderer.js"),o=require("./AppmodCitationContent.js");exports.default=function(r){var a=r.title,s=r.citation,l=r.customStyles,c=r.customIcons,p=r.codeLinkConfig,u=r.isLoading,d=void 0!==u&&u,m=(null==c?void 0:c.appModCitationIcon)||t.jsx(n.SparkleIcon,{className:"inline align-super mb-1 ml-1",style:{width:"12px",height:"12px"}}),g=a+"";return t.jsx(i.default,{inLineCitation:!0,citationTitle:g,citationIcon:t.jsx(t.Fragment,{}),citationComponent:t.jsx(o.default,{citation:s,customStyles:l,customIcons:c,codeLinkConfig:p,isLoading:d}),chevronDownComponent:m,chevronUpComponent:m,styles:{pillButton:e.__assign({fontSize:"13px",margin:"0px",padding:"0px 4px",color:"#3b82f6",cursor:"pointer",verticalAlign:"baseline",whiteSpace:"normal",wordBreak:"break-all",display:"inline-flex",alignItems:"unset",background:"transparent",border:"none"},null==l?void 0:l.pill),citationContent:{width:"100%",background:"transparent",minHeight:"10px",height:"fit-content"}}})};
|
|
2
|
+
//# sourceMappingURL=AppmodCitationRenderer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AppmodCitationRenderer.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),i=require("./CodeLinkHandler.module.css.js"),t=require("lucide-react"),a=require("../../../../../CodeCitation/CodeCitation.js"),o=require("../types.js");exports.default=function(r){var l,s,d=r.href,c=r.children,u=r.codeLinkConfig,f=r.isHighlighted,h=void 0!==f&&f,p=r.highlightTheme,m=void 0===p?o.DEFAULT_HIGHLIGHT_THEME:p,C=r.customLinkStyles,g=r.customIcon;if(!d)return n.jsx("span",{children:c});var v,x,b=function(e){try{var n=new URL(e,"http://example.com"),i=n.searchParams.get("startLine"),t=n.searchParams.get("endLine"),a=n.searchParams.get("validation");n.searchParams.delete("startLine"),n.searchParams.delete("endLine"),n.searchParams.delete("validation");var o=n.pathname+n.search;return{filePath:decodeURIComponent(o.replace(/^\//,"")),fullPath:decodeURIComponent(e),startLine:i,endLine:t,validation:a}}catch(n){return{filePath:e,fullPath:e,startLine:null,endLine:null,validation:null}}}(d),k="string"==typeof c?c.split("\n").length>1?"Generated Code":c:(null===(l=null==c?void 0:c.props)||void 0===l?void 0:l.children)||d||"Generated Code";if("vscode"===(null==u?void 0:u.mode)){var L=h?{backgroundColor:m.linkBackground,borderColor:m.linkBorder}:void 0,w=h?{color:m.linkText}:void 0,y=h?{color:m.linkIconColor}:void 0,I=g||n.jsx(t.ExternalLinkIcon,{className:i.default.linkIcon,style:y});return n.jsx("a",e.__assign({href:d,title:d,onClick:function(e){e.preventDefault(),(null==u?void 0:u.onCodeLinkClick)&&u.onCodeLinkClick({filePath:b.filePath,startLine:b.startLine,endLine:b.endLine,validation:b.validation})},className:i.default.linkContainer,style:C},{children:n.jsxs("span",e.__assign({className:i.default.linkWrapper,style:L},{children:[I,n.jsx("span",e.__assign({className:i.default.linkText,style:w},{children:c}))]}))}))}if("web"===(null==u?void 0:u.mode)&&u.webConfig){var P=(v=b.filePath,(x=/\.(\w+)$/.exec(v))?x[1]:"plaintext");return n.jsx(a.default,{baseUrlForCodeRetrieval:u.baseUrlForCodeRetrieval||"",filepath:b.fullPath,assistantName:u.webConfig.assistantName,organizationName:u.webConfig.organizationName,userId:u.webConfig.userId,taskId:u.webConfig.taskId,repoUrl:u.webConfig.repoUrl,inLineCitation:!0,citationTitle:k,filename:"Generated Code"!==k?b.filePath:".".concat(P),fileSummarySectionTitle:"File Summary",citationContainerTitle:"Code Preview",showFileSummaryIButton:!0,showFullscreenIcon:!0,showThemeToggle:!0,isDarkModeEnabled:null===(s=u.webConfig.isDarkModeEnabled)||void 0===s||s,chevronUpComponent:u.webConfig.chevronUpComponent||n.jsx(t.ChevronUpIcon,{}),chevronDownComponent:u.webConfig.chevronDownComponent||n.jsx(t.ChevronDownIcon,{}),isHighlightingEnabled:!0,editorHeight:"95%",editorWidth:"100%",startIndex:b.startLine?Number(b.startLine):void 0,endIndex:b.endLine?Number(b.endLine):void 0,datasource:u.webConfig.datasource,styles:{pillButton:e.__assign({display:"inline-flex",alignItems:"center",fontFamily:"Plus Jakarta Sans, sans-serif",backgroundColor:"transparent",padding:"0px",fontSize:"13px",borderRadius:"9999px",cursor:"pointer",color:"#d63384",border:"none",textDecoration:"none",wordBreak:"break-word",whiteSpace:"normal"},C),citationWrapper:{justifyContent:"flex-start",width:"100%"},citationContent:{width:"100%",height:"500px",backgroundColor:"#eff6ff",border:"1px solid #000",padding:"8px",borderRadius:"4px"},citationContainerTitle:{fontFamily:"Plus Jakarta Sans, sans-serif",display:"flex",justifyContent:"space-between",alignItems:"center",color:"#000",fontSize:"16px",fontWeight:"bold",marginBottom:"8px"}}})}return n.jsx("a",e.__assign({href:d,target:"_blank",rel:"noopener noreferrer",className:i.default.regularLink,style:C},{children:c}))};
|
|
2
|
+
//# sourceMappingURL=CodeLinkHandler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CodeLinkHandler.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const n=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;n&&e.setAttribute("nonce",n),e.appendChild(document.createTextNode(".CodeLinkHandler-module_linkContainer__rVaxi{cursor:pointer;display:inline-flex;margin:4px 0;max-width:100%;outline:none;overflow:hidden;text-decoration:none}.CodeLinkHandler-module_linkWrapper__AiS4T{align-items:center;background-color:#f3f4f6;border:1px solid #e5e7eb;border-radius:8px;color:#1f2937;cursor:pointer;display:inline-flex;font-size:12px;font-weight:500;gap:6px;max-width:100%;overflow:hidden;padding:3px 8px;transition:background-color .15s ease}.CodeLinkHandler-module_linkWrapper__AiS4T:hover{background-color:#e5e7eb}.CodeLinkHandler-module_linkIcon__LqcsR{color:#6b7280;flex-shrink:0;height:12px;width:12px}.CodeLinkHandler-module_linkText__yk709{max-width:400px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.CodeLinkHandler-module_regularLink__r1JiU{color:#3b82f6;text-decoration:underline}.CodeLinkHandler-module_regularLink__r1JiU:hover{color:#2563eb}@media (max-width:640px){.CodeLinkHandler-module_linkText__yk709{max-width:80vw}}"));const o=document.head||document.getElementsByTagName("head")[0]||document.documentElement;o&&o.appendChild(e)}(),exports.default={linkContainer:"CodeLinkHandler-module_linkContainer__rVaxi",linkWrapper:"CodeLinkHandler-module_linkWrapper__AiS4T",linkIcon:"CodeLinkHandler-module_linkIcon__LqcsR",linkText:"CodeLinkHandler-module_linkText__yk709",regularLink:"CodeLinkHandler-module_regularLink__r1JiU"};
|
|
2
|
+
//# sourceMappingURL=CodeLinkHandler.module.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CodeLinkHandler.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/icons/AppmodIcon.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("react/jsx-runtime");exports.AppModIcon=function(t){var o=t.className,s=t.style;return r.jsxs("svg",e.__assign({className:o,style:s,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[r.jsx("path",{d:"M12 2L2 7L12 12L22 7L12 2Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),r.jsx("path",{d:"M2 17L12 22L22 17",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),r.jsx("path",{d:"M2 12L12 17L22 12",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}))};
|
|
2
|
+
//# sourceMappingURL=AppmodIcon.js.map
|
package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/icons/AppmodIcon.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AppmodIcon.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/icons/ChatBubbleIcon.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime");exports.ChatBubbleIcon=function(r){var s=r.className,a=r.style;return t.jsx("svg",e.__assign({className:s,style:a,width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",xmlns:"http://www.w3.org/2000/svg"},{children:t.jsx("path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"})}))};
|
|
2
|
+
//# sourceMappingURL=ChatBubbleIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChatBubbleIcon.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/icons/SparkleIcon.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),s=require("react/jsx-runtime");exports.SparkleIcon=function(r){var t=r.className,i=r.style;return s.jsx("svg",e.__assign({className:t,style:i,width:"12",height:"12",viewBox:"0 0 24 24",fill:"#3b82f6",xmlns:"http://www.w3.org/2000/svg"},{children:s.jsx("path",{d:"M12 0L14.59 9.41L24 12L14.59 14.59L12 24L9.41 14.59L0 12L9.41 9.41L12 0Z"})}))};
|
|
2
|
+
//# sourceMappingURL=SparkleIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SparkleIcon.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.DEFAULT_HIGHLIGHT_THEME={background:"#fef3c7",text:"#92400e",border:"#fcd34d",linkBackground:"#fef3c7",linkText:"#92400e",linkBorder:"#fcd34d",linkIconColor:"#d97706",codeBackground:"#fef3c7",codeText:"#92400e",codeBorder:"#fcd34d"};
|
|
2
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/cjs/features/RequirementAI/components/citations/rca-citation/RCACitationContent.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),s=require("react/jsx-runtime"),a=require("lucide-react"),n=require("react"),t=require("../appmod-citation/icons/AppmodIcon.js"),l=require("../appmod-citation/types.js"),i=require("./RCACitationContent.module.css.js"),o=require("../../../../RequirementAiCitations/AiReasoning/components/AIConfidenceDisplay.js");function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var d=r(n),c=function(a,n,t){if(!n||!a.includes(n))return a;var i=a.split(n),o={backgroundColor:l.DEFAULT_HIGHLIGHT_THEME.background,color:l.DEFAULT_HIGHLIGHT_THEME.text,padding:"2px 3px",borderRadius:"2px"};return s.jsx(s.Fragment,{children:i.map(function(a,l){return s.jsxs(d.default.Fragment,{children:[a,l<i.length-1&&s.jsx("span",e.__assign({style:e.__assign(e.__assign({},o),t)},{children:n}))]},l)})})},u=function(n){var t=n.extracts,l=n.customStyles,o=n.customIcon;return t&&0!==t.length?s.jsxs("div",e.__assign({className:i.default.extractPanel,style:null==l?void 0:l.extractPanel},{children:[s.jsxs("div",e.__assign({className:i.default.extractPanelHeader,style:null==l?void 0:l.extractPanelHeader},{children:[s.jsx("span",e.__assign({style:null==l?void 0:l.extractPanelHeaderIcon},{children:o||s.jsx(a.NotebookIcon,{className:i.default.extractPanelHeaderIcon})})),s.jsx("span",e.__assign({className:i.default.extractPanelHeaderTitle,style:null==l?void 0:l.extractPanelHeaderTitle},{children:"Extracted from Requirement Finalization"}))]})),s.jsx("div",e.__assign({className:i.default.extractList,style:null==l?void 0:l.extractList},{children:t.map(function(a,n){return s.jsxs("div",e.__assign({className:i.default.extractItem,style:null==l?void 0:l.extractItem},{children:[s.jsx("p",e.__assign({className:i.default.extractSubheading,style:null==l?void 0:l.extractSubheading},{children:a.subheading})),s.jsx("p",e.__assign({className:i.default.extractContent,style:null==l?void 0:l.extractContent},{children:a.content}))]}),n)})}))]})):null};exports.default=function(l){var r,d=l.citation,_=l.customStyles,x=l.customIcons,v=l.isLoading,g=void 0!==v&&v,h=n.useRef(null),m=d.customMetadata.assistant_answer||"",f=d.customMetadata.assistant_question||"",j=d.customMetadata.assistant_answer_highlight_content,p=d.customMetadata.relevance_score,y=d.customMetadata.requirement_plan_extract||[],I=(null==x?void 0:x.rcaNotebookIcon)||s.jsx(a.NotebookIcon,{className:i.default.headerIcon}),N=(null==x?void 0:x.rcaMessageIcon)||s.jsx(a.MessageCircleIcon,{className:i.default.conversationPanelHeaderIcon}),q=(null==x?void 0:x.rcaQuestionIcon)||s.jsx(t.AppModIcon,{className:i.default.questionIcon}),H=(null==_?void 0:_.highlight)?{backgroundColor:_.highlight.background,color:_.highlight.text}:void 0;return s.jsxs("div",e.__assign({ref:h,className:i.default.container,style:null==_?void 0:_.container},{children:[s.jsxs("div",e.__assign({className:i.default.header,style:null==_?void 0:_.header},{children:[s.jsxs("div",e.__assign({className:i.default.headerLeft,style:null==_?void 0:_.headerLeft},{children:[s.jsx("span",e.__assign({style:null==_?void 0:_.headerIcon},{children:I})),s.jsx("span",e.__assign({className:i.default.headerTitle,style:null==_?void 0:_.headerTitle},{children:"Requirement Clarification"}))]})),o.renderAIConfidenceDisplay(p,null==_?void 0:_.confidenceDisplay)]})),s.jsxs("div",e.__assign({className:i.default.rcaContainer,style:null==_?void 0:_.rcaContainer},{children:[s.jsxs("div",e.__assign({className:i.default.conversationPanel,style:null==_?void 0:_.conversationPanel},{children:[s.jsxs("div",e.__assign({className:i.default.conversationPanelHeader,style:null==_?void 0:_.conversationPanelHeader},{children:[s.jsx("span",e.__assign({style:null==_?void 0:_.conversationPanelHeaderIcon},{children:N})),s.jsx("span",e.__assign({className:i.default.conversationPanelHeaderTitle,style:null==_?void 0:_.conversationPanelHeaderTitle},{children:"User Conversation"}))]})),s.jsxs("div",e.__assign({className:i.default.questionRow,style:null==_?void 0:_.questionRow},{children:[s.jsx("span",e.__assign({style:null==_?void 0:_.questionIcon},{children:q})),s.jsx("span",e.__assign({className:i.default.questionText,style:null==_?void 0:_.questionText},{children:f||"Ask question to get response"}))]})),s.jsx("p",e.__assign({className:i.default.answerLabel,style:null==_?void 0:_.answerLabel},{children:"Me"})),s.jsx("div",e.__assign({className:i.default.answerBox,style:null==_?void 0:_.answerBox},{children:g?s.jsx("span",e.__assign({className:i.default.loadingText,style:null===(r=null==_?void 0:_.loading)||void 0===r?void 0:r.text},{children:"Generating..."})):c(m,j,H)}))]})),y.length>0&&s.jsx(u,{extracts:y,customStyles:_,customIcon:I})]}))]}))};
|
|
2
|
+
//# sourceMappingURL=RCACitationContent.js.map
|
package/dist/cjs/features/RequirementAI/components/citations/rca-citation/RCACitationContent.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RCACitationContent.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});!function(){if("undefined"==typeof document)return;const t=document.createElement("style");t.type="text/css";const e=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;e&&t.setAttribute("nonce",e),t.appendChild(document.createTextNode(".RCACitationContent-module_container__EBiUm{background-color:#f9fafb;border:1px solid #e5e7eb;border-radius:12px;color:#1f2937;display:flex;flex-direction:column;gap:16px;padding:16px 24px;width:100%}.RCACitationContent-module_header__4xHts{align-items:center;background-color:#fff;border:1px solid #e5e7eb;border-radius:12px;display:flex;flex-direction:row;gap:12px;justify-content:space-between;overflow:auto;padding:16px;width:100%}.RCACitationContent-module_headerLeft__wcRrs{align-items:center;display:flex;flex-direction:row;gap:8px}.RCACitationContent-module_headerIcon__z7JMj{color:#1f2937;height:24px;width:24px}.RCACitationContent-module_headerTitle__y9M-Z{color:#1f2937;font-size:14px;font-weight:600}.RCACitationContent-module_rcaContainer__HdfF3{display:flex;gap:8px;justify-content:space-between}.RCACitationContent-module_conversationPanel__VTze-{border:1px solid #e5e7eb;border-radius:8px;display:flex;flex-direction:column;gap:16px;padding:16px 24px;width:50%}.RCACitationContent-module_conversationPanelHeader__NMi1u{align-items:center;display:flex;flex-direction:row;gap:8px;justify-content:flex-start;margin-bottom:16px;width:100%}.RCACitationContent-module_conversationPanelHeaderIcon__lbtQ4{height:20px;width:20px}.RCACitationContent-module_conversationPanelHeaderTitle__xYFGA{font-weight:600}.RCACitationContent-module_questionRow__7CdSr{align-items:center;display:flex;flex-direction:row;gap:8px;justify-content:flex-start;width:100%}.RCACitationContent-module_questionIcon__ecZ3A{height:20px;width:20px}.RCACitationContent-module_questionText__czjMK{color:#1f2937}.RCACitationContent-module_answerLabel__UUXwf{color:#1f2937;font-weight:500}.RCACitationContent-module_answerBox__b6gFS{background-color:#fff;border:1px solid #e5e7eb;border-radius:8px;overflow:auto;padding:16px;text-align:justify}.RCACitationContent-module_extractPanel__qUSEr{border:1px solid #e5e7eb;border-radius:8px;overflow:auto;padding:16px;width:50%}.RCACitationContent-module_extractPanelHeader__fbV0E{align-items:center;display:flex;flex-direction:row;gap:8px;justify-content:flex-start;margin-bottom:16px;width:100%}.RCACitationContent-module_extractPanelHeaderIcon__Cfnh-{height:20px;width:20px}.RCACitationContent-module_extractPanelHeaderTitle__uTdC8{font-weight:600}.RCACitationContent-module_extractList__lxS-f{display:flex;flex-direction:column;gap:16px}.RCACitationContent-module_extractSubheading__wDUB7{font-weight:600;margin-bottom:4px}.RCACitationContent-module_extractContent__dlMXg{color:#1f2937;font-size:12px;line-height:1.6}.RCACitationContent-module_loadingText__jbTWw{animation:RCACitationContent-module_pulse__QitZL 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes RCACitationContent-module_pulse__QitZL{0%,to{opacity:1}50%{opacity:.5}}@media (max-width:640px){.RCACitationContent-module_rcaContainer__HdfF3{flex-direction:column}.RCACitationContent-module_conversationPanel__VTze-,.RCACitationContent-module_extractPanel__qUSEr{width:100%}}"));const n=document.head||document.getElementsByTagName("head")[0]||document.documentElement;n&&n.appendChild(t)}(),exports.default={container:"RCACitationContent-module_container__EBiUm",header:"RCACitationContent-module_header__4xHts",headerLeft:"RCACitationContent-module_headerLeft__wcRrs",headerIcon:"RCACitationContent-module_headerIcon__z7JMj",headerTitle:"RCACitationContent-module_headerTitle__y9M-Z",rcaContainer:"RCACitationContent-module_rcaContainer__HdfF3",conversationPanel:"RCACitationContent-module_conversationPanel__VTze-",conversationPanelHeader:"RCACitationContent-module_conversationPanelHeader__NMi1u",conversationPanelHeaderIcon:"RCACitationContent-module_conversationPanelHeaderIcon__lbtQ4",conversationPanelHeaderTitle:"RCACitationContent-module_conversationPanelHeaderTitle__xYFGA",questionRow:"RCACitationContent-module_questionRow__7CdSr",questionIcon:"RCACitationContent-module_questionIcon__ecZ3A",questionText:"RCACitationContent-module_questionText__czjMK",answerLabel:"RCACitationContent-module_answerLabel__UUXwf",answerBox:"RCACitationContent-module_answerBox__b6gFS",extractPanel:"RCACitationContent-module_extractPanel__qUSEr",extractPanelHeader:"RCACitationContent-module_extractPanelHeader__fbV0E",extractPanelHeaderIcon:"RCACitationContent-module_extractPanelHeaderIcon__Cfnh-",extractPanelHeaderTitle:"RCACitationContent-module_extractPanelHeaderTitle__uTdC8",extractList:"RCACitationContent-module_extractList__lxS-f",extractItem:"RCACitationContent-module_extractItem__IjEE-",extractSubheading:"RCACitationContent-module_extractSubheading__wDUB7",extractContent:"RCACitationContent-module_extractContent__dlMXg",loadingText:"RCACitationContent-module_loadingText__jbTWw",pulse:"RCACitationContent-module_pulse__QitZL"};
|
|
2
|
+
//# sourceMappingURL=RCACitationContent.module.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RCACitationContent.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/cjs/features/RequirementAI/components/citations/rca-citation/RCACitationRenderer.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("tslib"),e=require("react/jsx-runtime"),n=require("../../../../CitationRenderer/CitationRenderer.js"),i=require("../appmod-citation/icons/ChatBubbleIcon.js"),o=require("./RCACitationContent.js");exports.default=function(r){var a=r.title,s=r.citation,l=r.customStyles,c=r.customIcons,u=r.isLoading,p=void 0!==u&&u,d=(null==c?void 0:c.rcaCitationIcon)||e.jsx(i.ChatBubbleIcon,{className:"inline align-super mb-1 ml-1",style:{width:"12px",height:"12px"}}),m=a+"";return e.jsx(n.default,{inLineCitation:!0,citationTitle:m,citationIcon:e.jsx(e.Fragment,{}),citationComponent:e.jsx(o.default,{citation:s,customStyles:l,customIcons:c,isLoading:p}),chevronDownComponent:d,chevronUpComponent:d,styles:{pillButton:t.__assign({fontSize:"13px",margin:"0px",padding:"0px 4px",color:"#3b82f6",cursor:"pointer",verticalAlign:"baseline",whiteSpace:"normal",wordBreak:"break-all",display:"inline-flex",alignItems:"unset",background:"transparent",border:"none"},null==l?void 0:l.pill),citationContent:{width:"100%",background:"transparent",minHeight:"10px",height:"fit-content"}}})};
|
|
2
|
+
//# sourceMappingURL=RCACitationRenderer.js.map
|
package/dist/cjs/features/RequirementAI/components/citations/rca-citation/RCACitationRenderer.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RCACitationRenderer.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),n=require("react"),i=require("@monaco-editor/react"),r=require("monaco-editor"),a=require("./ReadFileCitationContent.module.css.js"),l=require("./icons/ExternalLinkIcon.js");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function s(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var c=o(i),u=s(r);i.loader.config({monaco:u});var d={border:"#3c3c3c",headerBg:"#252526",inactiveText:"#858585",background:"#1e1e1e",foreground:"#cccccc",highlightBg:"rgba(59, 130, 246, 0.15)",highlightGutter:"#3b82f6",hoverBg:"rgba(255, 255, 255, 0.1)"},h={theme:"vs-dark",fontSize:13,fontFamily:"Consolas, 'Courier New', monospace",maxHeight:300,minHeight:80},g={js:"javascript",ts:"typescript",jsx:"javascript",tsx:"typescript",py:"python",rb:"ruby",java:"java",cpp:"cpp",c:"c",go:"go",rust:"rust",json:"json",html:"html",css:"css",scss:"scss",md:"markdown",sql:"sql",sh:"shell",bash:"shell",yaml:"yaml",yml:"yaml"};exports.default=function(i){var r=i.citation,o=i.customStyles,s=i.customColors,f=i.customIcons,m=i.editorConfig,v=i.fileCallback,p=n.useMemo(function(){return e.__assign(e.__assign({},d),s)},[s]),b=n.useMemo(function(){return e.__assign(e.__assign({},h),m)},[m]),_=n.useRef(null),y=n.useRef(!1),x=r.customMetadata.content||"",j=r.customMetadata.highlighted_text,C=n.useMemo(function(){if(!j)return{};try{var e=j.trim();return e.startsWith("```")&&(e=(e=e.replace(/^```\w*\n?/,"")).replace(/\n?```\s*$/,"")),JSON.parse(e.trim())}catch(e){return console.error("Failed to parse highlight string:",e),{}}},[j]),N=n.useMemo(function(){for(var e=[],t=x.split("```"),n=1;n<t.length;n+=2){var i=t[n];if(null==i?void 0:i.trim()){var r=i.match(/<file_path>\s*([\s\S]*?)\s*<\/file_path>/),a=r?r[1].trim():"",l=i.match(/<code>\s*([\s\S]*?)\s*<\/code>/),o=l?l[1].trim():"",s=i.match(/^(\w+)\s/),c=s?s[1]:"javascript";a&&o&&e.push({filePath:a,code:o,language:c})}}return e},[x]),O=n.useCallback(function(e){return(C[e]||[]).map(function(e){var t=e.split("-").map(Number),n=t[0];return[n+1,(t.length>1?t[1]:n)+1]})},[C]),k=n.useMemo(function(){for(var e=0;e<N.length;e++){if(O(N[e].filePath).length>0)return e}return-1},[N,O]),w=k>=0,L=n.useCallback(function(e,t){return O(e).map(function(e){var n=e[0],i=e[1];return n>t?[0,0]:[n,Math.min(i,t)]}).filter(function(e){var t=e[0],n=e[1];return t>0&&n>=t})},[O]),M=n.useCallback(function(e){var t=20*e.split("\n").length+16+4;return Math.min(Math.max(t,b.minHeight),b.maxHeight)},[b.minHeight,b.maxHeight]);n.useEffect(function(){if(w&&!y.current&&N.length>0&&(null==v?void 0:v.autoOpenFirstHighlighted)&&(null==v?void 0:v.onOpenFile)){var e=N[k],t=e.code.split("\n").length,n=L(e.filePath,t),i=setTimeout(function(){v.onOpenFile({filePath:e.filePath,ranges:n.length>0?n:null})},300);return y.current=!0,function(){return clearTimeout(i)}}},[w,k,N,L,v]),n.useEffect(function(){y.current=!1},[x]),n.useEffect(function(){if(!(k<0)){var e=setTimeout(function(){_.current&&_.current.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})},350);return function(){return clearTimeout(e)}}},[k,j]);var S=n.useCallback(function(e,t){if(null==v?void 0:v.onOpenFile){var n=L(e,t);v.onOpenFile({filePath:e,ranges:n.length>0?n:null})}},[L,v]),F=n.useCallback(function(e,t,n){var i=L(t,n);if(0!==i.length){var r=i.map(function(e){var t=e[0],n=e[1];return{range:new u.Range(t,1,n,1),options:{isWholeLine:!0,className:a.default.highlightedLine,linesDecorationsClassName:a.default.highlightedLineDecoration}}});e.createDecorationsCollection(r);var l=i[0];l&&e.revealLineInCenter(l[0])}},[L]),P=!!(null==v?void 0:v.onOpenFile),B=(null==f?void 0:f.readFileCitationIcon)||t.jsx(l.default,{style:{width:"14px",height:"14px"}});return 0===N.length?t.jsx("div",e.__assign({className:a.default.emptyState,style:e.__assign({color:p.inactiveText},null==o?void 0:o.emptyState)},{children:"No code content available"})):t.jsx("div",e.__assign({className:a.default.container,style:null==o?void 0:o.container},{children:N.map(function(n,i){var r,l,s=O(n.filePath),u=s.length>0,d=i===k,h=M(n.code),f=n.filePath.split("/").pop(),m=n.code.split("\n").length;return t.jsxs("div",e.__assign({ref:d?_:void 0,"data-highlighted":u?"true":void 0,"data-first-highlighted":d?"true":void 0,className:a.default.blockContainer,style:e.__assign({border:"1px solid ".concat(p.border)},null==o?void 0:o.blockContainer)},{children:[t.jsxs("div",e.__assign({className:a.default.header,style:e.__assign({backgroundColor:u?p.highlightBg:p.headerBg,borderBottom:"1px solid ".concat(p.border),color:u?p.highlightGutter:p.foreground},u?null==o?void 0:o.headerHighlighted:null==o?void 0:o.header)},{children:[t.jsxs("div",e.__assign({className:a.default.headerLeft},{children:[t.jsx("span",e.__assign({className:a.default.fileName,title:n.filePath,style:null==o?void 0:o.fileName},{children:f})),P&&t.jsx("button",e.__assign({className:a.default.openFileButton,onClick:function(){return S(n.filePath,m)},title:"Open in editor","aria-label":"Open ".concat(f," in editor"),style:null==o?void 0:o.openFileButton},{children:B}))]})),u&&t.jsx("span",e.__assign({className:a.default.lineRanges,style:null==o?void 0:o.lineRanges},{children:(l=s,l.map(function(e){var t=e[0],n=e[1];return t===n?"L".concat(t):"L".concat(t,"-").concat(n)}).join(", "))}))]})),t.jsx("div",e.__assign({className:a.default.editorWrapper,style:e.__assign({height:"".concat(h,"px"),backgroundColor:p.background},null==o?void 0:o.editorWrapper)},{children:t.jsx(c.default,{height:"100%",language:(r=n.language,g[r.toLowerCase()]||r),value:n.code,theme:b.theme,onMount:function(e){return F(e,n.filePath,m)},options:{readOnly:!0,domReadOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,fontSize:b.fontSize,lineHeight:20,fontFamily:b.fontFamily,lineNumbers:"on",folding:!1,lineDecorationsWidth:10,lineNumbersMinChars:4,renderLineHighlight:"none",scrollbar:{vertical:"auto",horizontal:"auto",verticalScrollbarSize:8,horizontalScrollbarSize:8,useShadows:!1,alwaysConsumeMouseWheel:!1},automaticLayout:!0,wordWrap:"off",contextmenu:!1,selectOnLineNumbers:!0,glyphMargin:!1,padding:{top:8,bottom:8},overviewRulerBorder:!1,hideCursorInOverviewRuler:!0,overviewRulerLanes:0,renderWhitespace:"none",guides:{indentation:!1},cursorStyle:"line",cursorBlinking:"solid",fixedOverflowWidgets:!0},loading:t.jsx("div",e.__assign({className:a.default.loadingEditor,style:{color:p.inactiveText}},{children:"Loading editor..."}))})}))]}),i)})}))};
|
|
2
|
+
//# sourceMappingURL=ReadFileCitationContent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReadFileCitationContent.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const t=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;t&&e.setAttribute("nonce",t),e.appendChild(document.createTextNode(".ReadFileCitationContent-module_container__Oi3tV{display:flex;flex-direction:column;gap:12px;margin-top:4px}.ReadFileCitationContent-module_blockContainer__yGEX8{border-radius:4px;overflow:hidden}.ReadFileCitationContent-module_header__39-AD{align-items:center;display:flex;font-family:monospace;font-size:12px;gap:8px;justify-content:space-between;padding:6px 12px}.ReadFileCitationContent-module_headerLeft__WOyMV{align-items:center;display:flex;flex:1;gap:8px;min-width:0}.ReadFileCitationContent-module_fileName__ql9Qu{opacity:.9;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ReadFileCitationContent-module_openFileButton__oqea1{align-items:center;background:none;border:none;border-radius:4px;color:inherit;cursor:pointer;display:flex;justify-content:center;opacity:.7;padding:2px;transition:opacity .15s ease,background-color .15s ease}.ReadFileCitationContent-module_openFileButton__oqea1:hover{background-color:#ffffff1a;opacity:1}.ReadFileCitationContent-module_lineRanges__RIofb{flex-shrink:0;font-size:11px;max-width:300px;opacity:.7;overflow-x:auto;white-space:nowrap}.ReadFileCitationContent-module_editorWrapper__ab5Sg{overflow:hidden}.ReadFileCitationContent-module_highlightedLine__w6iv-{background-color:#3b82f626!important}.ReadFileCitationContent-module_highlightedLineDecoration__EykBL{background-color:#3b82f6;margin-left:0;width:3px!important}.ReadFileCitationContent-module_emptyState__34kcg{font-size:14px;padding:12px;text-align:center}.ReadFileCitationContent-module_loadingEditor__aOHYT{align-items:center;display:flex;font-size:14px;height:64px;justify-content:center}"));const n=document.head||document.getElementsByTagName("head")[0]||document.documentElement;n&&n.appendChild(e)}(),exports.default={container:"ReadFileCitationContent-module_container__Oi3tV",blockContainer:"ReadFileCitationContent-module_blockContainer__yGEX8",header:"ReadFileCitationContent-module_header__39-AD",headerLeft:"ReadFileCitationContent-module_headerLeft__WOyMV",fileName:"ReadFileCitationContent-module_fileName__ql9Qu",openFileButton:"ReadFileCitationContent-module_openFileButton__oqea1",lineRanges:"ReadFileCitationContent-module_lineRanges__RIofb",editorWrapper:"ReadFileCitationContent-module_editorWrapper__ab5Sg",highlightedLine:"ReadFileCitationContent-module_highlightedLine__w6iv-",highlightedLineDecoration:"ReadFileCitationContent-module_highlightedLineDecoration__EykBL",emptyState:"ReadFileCitationContent-module_emptyState__34kcg",loadingEditor:"ReadFileCitationContent-module_loadingEditor__aOHYT"};
|
|
2
|
+
//# sourceMappingURL=ReadFileCitationContent.module.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReadFileCitationContent.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),i=require("../../../../CitationRenderer/CitationRenderer.js"),n=require("./icons/FileCodeIcon.js"),o=require("./ReadFileCitationContent.js");exports.default=function(r){var a=r.title,l=r.citation,s=r.customStyles,c=r.customColors,u=r.customIcons,d=r.editorConfig,p=r.fileCallback,m=(null==u?void 0:u.readFileCitationIcon)||t.jsx(n.default,{className:"inline align-super mb-1 ml-1",style:{width:"12px",height:"12px"}}),C=a+"";return t.jsx(i.default,{inLineCitation:!0,citationTitle:C,citationIcon:t.jsx(t.Fragment,{}),citationComponent:t.jsx(o.default,{citation:l,customStyles:s,customColors:c,customIcons:u,editorConfig:d,fileCallback:p}),chevronDownComponent:m,chevronUpComponent:m,styles:{pillButton:e.__assign({fontSize:"13px",margin:"0px",padding:"0px 4px",color:"#3b82f6",cursor:"pointer",verticalAlign:"baseline",whiteSpace:"normal",wordBreak:"break-all",display:"inline-flex",alignItems:"unset",background:"transparent",border:"none"},null==s?void 0:s.pill),citationContent:{width:"100%",background:"transparent",minHeight:"10px",height:"fit-content"}}})};
|
|
2
|
+
//# sourceMappingURL=ReadFileCitationRenderer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReadFileCitationRenderer.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),s=require("react/jsx-runtime");exports.default=function(r){var t=r.className,i=r.style;return s.jsxs("svg",e.__assign({className:t,style:i,width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg"},{children:[s.jsx("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),s.jsx("polyline",{points:"15 3 21 3 21 9"}),s.jsx("line",{x1:"10",y1:"14",x2:"21",y2:"3"})]}))};
|
|
2
|
+
//# sourceMappingURL=ExternalLinkIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExternalLinkIcon.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/icons/FileCodeIcon.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),s=require("react/jsx-runtime");exports.default=function(t){var r=t.className,i=t.style;return s.jsxs("svg",e.__assign({className:r,style:i,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg"},{children:[s.jsx("path",{d:"M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z"}),s.jsx("polyline",{points:"14 2 14 8 20 8"}),s.jsx("path",{d:"m10 13-2 2 2 2"}),s.jsx("path",{d:"m14 17 2-2-2-2"})]}))};
|
|
2
|
+
//# sourceMappingURL=FileCodeIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FileCodeIcon.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/cjs/features/RequirementAI/components/citations/web-citation/ImagePreviewDialog.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),s=require("react/jsx-runtime"),l=require("@mui/material"),a=require("./ImagePreviewDialog.module.css.js");exports.default=function(i){var r=i.open,n=i.handleClose,t=i.CloseIcon,o=i.src,c=i.styles;return s.jsx(l.Dialog,e.__assign({maxWidth:"lg",onClose:n,open:r},{children:s.jsxs("div",e.__assign({className:a.default.container,style:null==c?void 0:c.container},{children:[s.jsxs("div",e.__assign({className:a.default.header,style:null==c?void 0:c.header},{children:[s.jsx("h1",e.__assign({className:a.default.title,style:null==c?void 0:c.title},{children:"Image Preview"})),s.jsx("div",e.__assign({className:a.default.closeIconWrapper,style:null==c?void 0:c.closeIconWrapper,onClick:n},{children:s.jsx(t,{className:a.default.closeIcon})}))]})),s.jsx("img",{src:o,alt:"Preview",className:a.default.image,style:null==c?void 0:c.image})]}))}))};
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),s=require("react/jsx-runtime"),l=require("@mui/material"),a=require("./ImagePreviewDialog.module.css.js");exports.default=function(i){var r=i.open,n=i.handleClose,t=i.CloseIcon,o=i.src,c=i.styles;return s.jsx(l.Dialog,e.__assign({maxWidth:"lg",onClose:n,open:r},{children:s.jsxs("div",e.__assign({className:a.default.container,style:null==c?void 0:c.container},{children:[s.jsxs("div",e.__assign({className:a.default.header,style:null==c?void 0:c.header},{children:[s.jsx("h1",e.__assign({className:a.default.title,style:null==c?void 0:c.title},{children:"Image Preview"})),s.jsx("div",e.__assign({className:a.default.closeIconWrapper,style:null==c?void 0:c.closeIconWrapper,onClick:n},{children:s.jsx(t,{className:a.default.closeIcon,style:null==c?void 0:c.closeIcon})}))]})),s.jsx("img",{src:o,alt:"Preview",className:a.default.image,style:null==c?void 0:c.image})]}))}))};
|
|
2
2
|
//# sourceMappingURL=ImagePreviewDialog.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("react/jsx-runtime"),t=require("./WebCitationIcon.js"),s=require("./Webcitation.module.css.js");exports.default=function(
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("react/jsx-runtime"),t=require("./WebCitationIcon.js"),s=require("./Webcitation.module.css.js");exports.default=function(i){var l=i.label,n=i.url,o=i.customStyles,u=i.customIcons,a=(null==u?void 0:u.webCitationIcon)||r.jsx(t.default,{});return r.jsxs("a",e.__assign({className:s.default.link,style:null==o?void 0:o.headerLink,target:"_blank",rel:"noopener noreferrer",href:n},{children:[l,a]}))};
|
|
2
2
|
//# sourceMappingURL=WebCitation.js.map
|
package/dist/cjs/features/RequirementAI/components/citations/web-citation/WebCitationRenderer.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),i=require("./WebCitationIcon.js"),n=require("./WebCitation.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),i=require("./WebCitationIcon.js"),n=require("./WebCitation.js"),o=require("../../../../CitationRenderer/CitationRenderer.js");exports.default=function(r){var l=r.label,s=r.url,a=r.customStyles,u=r.customIcons,d=(null==u?void 0:u.webCitationIcon)||t.jsx(i.default,{});return t.jsx(o.default,{inLineCitation:!0,citationTitle:l,chevronDownComponent:d,chevronUpComponent:d,citationComponent:t.jsxs("div",e.__assign({className:"p-4 border rounded-lg bg-white mt-2",style:null==a?void 0:a.content},{children:[t.jsx("p",e.__assign({className:"text-sm text-gray-600 mb-2",style:null==a?void 0:a.footerText},{children:"Source Link:"})),t.jsx(n.default,{label:l,url:s,customStyles:a,customIcons:u})]})),styles:{pillButton:e.__assign({margin:"0px",padding:"0px 4px",fontSize:"14px",color:"#2546F0",cursor:"pointer",verticalAlign:"middle",display:"inline-flex",alignItems:"center",background:"#E9ECFD",border:"1px solid #D4DBFF",borderRadius:"2px",gap:"4px"},null==a?void 0:a.pill)}})};
|
|
2
2
|
//# sourceMappingURL=WebCitationRenderer.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),s=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),s=require("react/jsx-runtime"),l=require("@mui/material"),i=require("lucide-react"),t=require("react"),r=require("./WebCitationWithImageContent.module.css.js"),a=require("../../RequirementAIWrapper/RequirementAIWrapper.js"),n=require("./ImagePreviewDialog.js"),o=require("./FullScreenIcon.js");exports.default=function(u){var d,c,g,v,m,f,h,y,_,p,j,x,S,P,k,q=a.useRequirementAI().apiCachingConfig,I=q.queryClient,L=q.useGetSignedUrlQuery,C=q.useGetSignedUrlMutation,N=["getSignedUrl",u.gsUtilPath],U=L(u.gsUtilPath,N).data,b=C(u.gsUtilPath),F=b.mutate,W=b.isPending,w=t.useState(!1),R=w[0],A=w[1],D=(null===(d=u.customIcons)||void 0===d?void 0:d.FullScreenIcon)||s.jsx(o.default,{});return t.useEffect(function(){u.gsUtilPath?I.getQueryData(N)||W||F({gsUtilPath:u.gsUtilPath}):console.error("error","Error","Please provide valid gsUtilPath.")},[u.gsUtilPath,I,N,F,W]),s.jsxs("div",e.__assign({className:r.default.container,style:null===(c=u.customStyles)||void 0===c?void 0:c.content},{children:[s.jsx("div",e.__assign({className:r.default.header,style:null===(g=u.customStyles)||void 0===g?void 0:g.header},{children:s.jsx("div",e.__assign({className:r.default.headerLeft,style:null===(v=u.customStyles)||void 0===v?void 0:v.headerLeft},{children:s.jsx("a",e.__assign({className:r.default.headerLink,style:null===(m=u.customStyles)||void 0===m?void 0:m.headerLink,target:"_blank",rel:"noopener noreferrer",href:u.url},{children:u.label}))}))})),W?s.jsxs("div",e.__assign({className:r.default.loadingContainer,style:null===(f=u.customStyles)||void 0===f?void 0:f.loadingContainer},{children:[s.jsx(l.CircularProgress,{size:48,thickness:4,sx:{color:"#4F85FF","& .MuiCircularProgress-circle":{strokeLinecap:"round"}}}),s.jsx("span",e.__assign({className:r.default.loadingLabel,style:null===(h=u.customStyles)||void 0===h?void 0:h.loadingLabel},{children:"Loading Image..."}))]})):U&&s.jsxs("div",e.__assign({className:r.default.imageWrapper,style:null===(y=u.customStyles)||void 0===y?void 0:y.imageWrapper},{children:[s.jsx("img",{src:U,alt:"images",className:r.default.image,style:null===(_=u.customStyles)||void 0===_?void 0:_.image,onError:function(e){e.target.src="path/to/fallback-image.png",console.error("Failed to load image from signed URL")}}),s.jsx("div",e.__assign({className:r.default.fullscreenButton,style:null===(p=u.customStyles)||void 0===p?void 0:p.fullscreenButton,onClick:function(){return A(!0)}},{children:D})),s.jsx(n.default,{open:R,handleClose:function(){return A(!1)},src:U,CloseIcon:null==u?void 0:u.PreviewDialogCloseIcon,styles:null===(j=u.customStyles)||void 0===j?void 0:j.previewDialog})]})),s.jsx("div",e.__assign({className:r.default.footer,style:null===(x=u.customStyles)||void 0===x?void 0:x.footer},{children:s.jsxs("div",e.__assign({className:r.default.footerInner,style:null===(S=u.customStyles)||void 0===S?void 0:S.footerText},{children:[s.jsx("span",{children:"Open link in new tab to read in detail"}),s.jsxs("a",e.__assign({className:r.default.visitLink,style:null===(P=u.customStyles)||void 0===P?void 0:P.footerLink,href:u.url,target:"_blank",rel:"noopener noreferrer"},{children:[s.jsx("span",{children:"Visit Link"}),s.jsx(i.SquareArrowOutUpRight,{className:r.default.visitLinkIcon,style:null===(k=u.customStyles)||void 0===k?void 0:k.visitLinkIcon})]}))]}))}))]}))};
|
|
2
2
|
//# sourceMappingURL=WebCitationWithImageContent.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),i=require("./WebCitationWithImageContent.js"),n=require("./WebCitationIcon.js"),o=require("../../../../CitationRenderer/CitationRenderer.js");exports.default=function(r){var l,a,s,u,
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),i=require("./WebCitationWithImageContent.js"),n=require("./WebCitationIcon.js"),o=require("../../../../CitationRenderer/CitationRenderer.js");exports.default=function(r){var l,a,s,u,c=r.title,d=r.citation,p=r.customStyles,v=r.customIcons,m=(null==v?void 0:v.webCitationIcon)||t.jsx(n.default,{});return t.jsx(o.default,{inLineCitation:!0,citationTitle:c,chevronDownComponent:m,chevronUpComponent:m,citationComponent:t.jsx(i.default,{gsUtilPath:(null===(l=d.customMetadata)||void 0===l?void 0:l.screenshot_url)||(null===(a=d.customMetadata)||void 0===a?void 0:a.gs_util_url)||"",relevanceScore:null===(s=d.customMetadata)||void 0===s?void 0:s.relevance_score,url:(null===(u=d.customMetadata)||void 0===u?void 0:u.link)||"",label:c,PreviewDialogCloseIcon:function(){return t.jsx("span",{children:"X"})},customStyles:p,customIcons:v}),styles:{pillButton:e.__assign({margin:"0px 10px",padding:"0px 4px",fontSize:"14px",color:"#2546F0",cursor:"pointer",verticalAlign:"middle",display:"inline-flex",alignItems:"center",background:"#E9ECFD",border:"1px solid #D4DBFF",borderRadius:"2px",gap:"4px"},null==p?void 0:p.pill),citationContent:e.__assign({width:"100%",background:"transparent",marginTop:"10px"},null==p?void 0:p.content)}})};
|
|
2
2
|
//# sourceMappingURL=WebCitationWithImageRenderer.js.map
|
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"),t=require("./CustomChatCrRedirection.module.css.js"),a=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,m=o.isGenerating,j=void 0!==m&&m,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:[t.default.outerWrapper,j?t.default.outerWrapperDisabled:""].join(" "),style:e.__assign(e.__assign({},null==y?void 0:y.redirectionOuterWrapper),j?null==y?void 0:y.redirectionOuterWrapperDisabled:{})},{children:[i.jsxs("div",e.__assign({className:[t.default.card,j?t.default.cardDisabled:t.default.cardInteractive].join(" "),style:e.__assign(e.__assign({},null==y?void 0:y.redirectionCard),j?null==y?void 0:y.redirectionCardDisabled:null==y?void 0:y.redirectionCardInteractive)},{children:[i.jsxs("div",e.__assign({className:t.default.leftSide,style:null==y?void 0:y.redirectionLeftSide},{children:[i.jsxs("span",e.__assign({className:t.default.textBlock,style:null==y?void 0:y.redirectionTextBlock},{children:[_&&i.jsxs("span",e.__assign({className:t.default.headerText,style:null==y?void 0:y.redirectionHeaderText},{children:[_,v?" ":""]})),v]})),i.jsxs("span",e.__assign({onClick:function(e){e.stopPropagation(),j||S(!D)},className:[t.default.reasoningToggle,j?t.default.reasoningToggleDisabled:t.default.reasoningToggleActive].join(" "),style:e.__assign(e.__assign({},null==y?void 0:y.reasoningToggle),j?null==y?void 0:y.reasoningToggleDisabled:null==y?void 0:y.reasoningToggleActive)},{children:[N,D?i.jsx(s.ChevronUp,{className:t.default.chevronIcon,style:null==y?void 0:y.chevronIcon}):i.jsx(s.ChevronDown,{className:t.default.chevronIcon,style:null==y?void 0:y.chevronIcon})]}))]})),"risk-gap"===r&&i.jsxs("div",e.__assign({className:t.default.rightSide,style:null==y?void 0:y.redirectionRightSide},{children:[i.jsx("button",e.__assign({disabled:j,className:[t.default.fixButton,j?t.default.fixButtonDisabled:""].join(" "),style:e.__assign(e.__assign({},null==y?void 0:y.redirectionFixButton),j?null==y?void 0:y.fixButtonDisabled:{}),onClick:function(e){e.stopPropagation(),j||R()}},{children:"Fix"})),i.jsx(s.SquareArrowOutUpRight,{onClick:j?void 0:function(){j||null==p||p({type:c,id:u,aiReason:g,msg:d,meta:{headerText:_,decisionStrength:f,text:v}})},size:18,className:[j?t.default.redirectIconDisabled:t.default.redirectIcon].join(" "),style:e.__assign({},j?null==y?void 0:y.redirectIconDisabled:null==y?void 0:y.redirectIcon)})]})),"cra"===r&&i.jsx("div",e.__assign({className:t.default.rightSide,style:null==y?void 0:y.redirectionRightSide},{children:i.jsx("button",e.__assign({disabled:j,className:[t.default.clarifyButton,j?t.default.fixButtonDisabled:""].join(" "),style:e.__assign(e.__assign({},null==y?void 0:y.redirectionClarifyButton),j?null==y?void 0:y.fixButtonDisabled:{}),onClick:function(e){e.stopPropagation(),j||R()}},{children:"Clarify"}))}))]})),D&&i.jsx(a.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,customIcons:C})]}))};
|
|
2
2
|
//# sourceMappingURL=CustomChatCrRedirection.js.map
|
package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/GapFilterContentWrapper.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),i=require("../../shared/Accordian.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),i=require("../../shared/Accordian.js"),r=require("lucide-react"),l=require("./GapFilterContentWrapper.module.css.js");exports.GapFilterContentWrapper=function(t){var a=t.mode,s=t.type,o=t.config,c=t.count,d=t.openAccordion,g=t.children,u=t.shouldShowReviewButton,h=void 0!==u&&u,v=t.onAccordionChange;t.handleReviewClick;var _=t.pendingData,m=t.customStyles;return n.jsx(i.Accordion,e.__assign({type:"single",collapsible:!0,className:l.default.accordion,value:d,onValueChange:function(e){return v(e)},style:null==m?void 0:m.accordion},{children:n.jsxs(i.AccordionItem,e.__assign({value:s,className:l.default.accordionItem,style:null==m?void 0:m.accordionItem},{children:[n.jsx(i.AccordionTrigger,e.__assign({chevronPosition:"end",className:l.default.accordionTrigger,hideChevron:h,style:null==m?void 0:m.accordionTrigger},{children:n.jsxs("div",e.__assign({className:l.default.triggerInner,style:null==m?void 0:m.triggerInner},{children:[n.jsxs("div",e.__assign({className:l.default.triggerLeft,style:null==m?void 0:m.triggerLeft},{children:[n.jsxs("p",e.__assign({className:l.default.triggerLabel,style:e.__assign({color:o.labelColor},function(){switch(s){case"critical":return null==m?void 0:m.triggerLabelCritical;case"warning":return null==m?void 0:m.triggerLabelWarning;case"recommendation":return null==m?void 0:m.triggerLabelRecommendation;default:return{}}}())},{children:[o.label,n.jsxs("span",e.__assign({className:l.default.triggerLabelCount,style:null==m?void 0:m.triggerLabelCount},{children:["(",c,")"]}))]})),_.length>0&&n.jsxs("span",e.__assign({className:l.default.triggerPending,style:null==m?void 0:m.triggerPending},{children:["(",_,")"]}))]})),"risk-gap"===a&&n.jsx("div",e.__assign({className:l.default.triggerRight,style:null==m?void 0:m.triggerRight},{children:n.jsxs("p",e.__assign({className:l.default.decisionStrengthBadge,style:e.__assign({backgroundColor:o.badgeBackgroundColor,color:o.badgeTextColor},function(){switch(s){case"critical":return null==m?void 0:m.decisionStrengthBadgeCritical;case"warning":return null==m?void 0:m.decisionStrengthBadgeWarning;case"recommendation":return null==m?void 0:m.decisionStrengthBadgeRecommendation;default:return{}}}())},{children:[n.jsx(r.Sparkles,{className:l.default.decisionStrengthIcon,style:null==m?void 0:m.decisionStrengthIcon}),o.decisionStrength]}))}))]}))})),n.jsx(i.AccordionContent,e.__assign({className:l.default.accordionContent,style:null==m?void 0:m.accordionContent},{children:n.jsx("div",e.__assign({className:l.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"),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(
|
|
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(c){c.mode;var d=c.index,u=c.isSelected,m=c.onClick,g=c.item,f=c.onFixClick,_=c.onRedirect,v=c.aiReason;c.panelRef;var p=c.id,x=c.isGenerating,h=void 0!==x&&x,j=c.customStyles,N=c.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 g.components?g.components.split("||"):[]},[g.components]);var T=t.useMemo(function(){return g.score&&isNaN(parseInt(g.score))?0:g.score?parseInt(g.score):0},[g.score]),b=r(T);return console.log("testing::reasoning\n",v),s.jsx("div",e.__assign({className:i.default.outerWrapper,onClick:m,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:g.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,"%")})),g.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"})),g.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==g?void 0:g.headerText)?s.jsx("span",e.__assign({className:i.default.gapHeaderText,style:null==j?void 0:j.itemGapHeaderText},{children:g.headerText})):s.jsxs("span",e.__assign({className:i.default.gapHeaderText,style:null==j?void 0:j.itemGapHeaderText},{children:["Gap ",d+1,"."]}))," ",g.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,customIcons:N})]}))}))},exports.getScoreColorStyles=r;
|
|
2
2
|
//# sourceMappingURL=GapFilterItem.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),l=require("react"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),l=require("react"),s=require("lucide-react"),n=require("./ExpandableOl.module.css.js");exports.default=function(i){var r=i.children,o=i.onProceed,a=i.isProceedDisabled,d=i.defaultVisibleItems,c=void 0===d?2:d,u=i.customStyles,_=l.useState(!1),p=_[0],y=_[1],g=l.Children.toArray(r),h=g.length>c,m=p?g:g.slice(0,c);return t.jsxs(t.Fragment,{children:[t.jsx("ol",e.__assign({className:n.default.list,style:null==u?void 0:u.listStyle},{children:m.map(function(s,i){var r=i===m.length-1;return l.isValidElement(s)?r&&h?l.cloneElement(s,{style:e.__assign(e.__assign({},s.props.style),null==u?void 0:u.itemStyle),children:t.jsxs(t.Fragment,{children:[t.jsx("span",e.__assign({style:null==u?void 0:u.itemTextStyle},{children:s.props.children})),!p&&t.jsx("button",e.__assign({type:"button",onClick:function(){return y(!0)},className:n.default.toggleButton,style:null==u?void 0:u.moreButton},{children:"..."})),p&&t.jsx("button",e.__assign({type:"button",onClick:function(){return y(!1)},className:n.default.toggleButton,style:null==u?void 0:u.toggleButton},{children:"see less"}))]})}):l.cloneElement(s,{style:e.__assign(e.__assign({},s.props.style),null==u?void 0:u.itemStyle),children:t.jsx("span",e.__assign({style:null==u?void 0:u.itemTextStyle},{children:s.props.children}))}):t.jsx("li",e.__assign({style:null==u?void 0:u.itemStyle},{children:t.jsx("span",e.__assign({style:null==u?void 0:u.itemTextStyle},{children:s}))}),i)})})),o&&t.jsx("div",e.__assign({className:n.default.proceedContainer},{children:t.jsxs("button",e.__assign({type:"button",disabled:a,onClick:function(e){e.stopPropagation(),a||o()},className:"".concat(n.default.proceedButton," ").concat(a?n.default.proceedDisabled:n.default.proceedEnabled),style:a?null==u?void 0:u.disableProceedStyle:null==u?void 0:u.enableProceedStyle},{children:[t.jsx("span",{children:"Select this option"}),t.jsx(s.ArrowRight,{size:15,strokeWidth:1.5})]}))}))]})};
|
|
2
2
|
//# sourceMappingURL=ExpandableOl.js.map
|
package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/AIConfidenceDisplay.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),l=require("react/jsx-runtime"),s=require("./AIConfidenceDisplay.module.css.js"),n=require("./icons/RelevanceScoreIcon.js");exports.renderAIConfidenceDisplay=function(i,r){var o;return"number"!=typeof i||isNaN(i)?null:l.jsxs("div",e.__assign({className:s.default.container,style:null==r?void 0:r.container},{children:[l.jsx(n.default,{size:20,color:null===(o=null==r?void 0:r.icon)||void 0===o?void 0:o.color}),l.jsxs("span",e.__assign({className:s.default.label,style:null==r?void 0:r.label},{children:["AI Relevance: ",i,"%"]}))]}))};
|
|
2
|
+
//# sourceMappingURL=AIConfidenceDisplay.js.map
|
package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/AIConfidenceDisplay.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AIConfidenceDisplay.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const n=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;n&&e.setAttribute("nonce",n),e.appendChild(document.createTextNode(".AIConfidenceDisplay-module_container__PWAM-{align-items:center;background-color:#fff;border:2px solid #ac93f6;border-radius:9999px;color:#1f2937;display:flex;flex-direction:row;font-weight:500;gap:.5rem;justify-content:center;margin-left:1.5rem;padding:.25rem .75rem}.AIConfidenceDisplay-module_icon__tie4K{flex-shrink:0}.AIConfidenceDisplay-module_label__Xo5J8{white-space:nowrap}"));const o=document.head||document.getElementsByTagName("head")[0]||document.documentElement;o&&o.appendChild(e)}(),exports.default={container:"AIConfidenceDisplay-module_container__PWAM-",icon:"AIConfidenceDisplay-module_icon__tie4K",label:"AIConfidenceDisplay-module_label__Xo5J8"};
|
|
2
|
+
//# sourceMappingURL=AIConfidenceDisplay.module.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AIConfidenceDisplay.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/icons/RelevanceScoreIcon.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("react/jsx-runtime");exports.default=function(t){var i=t.size,s=t.color,C=void 0===s?"currentColor":s;return r.jsxs("svg",e.__assign({width:i||15,height:i||15,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[r.jsx("path",{d:"M9.2482 4.85862C9.18364 4.54279 8.73237 4.54279 8.66782 4.85862C8.27178 6.79626 6.75753 8.31052 4.81988 8.70656C4.50405 8.77111 4.50405 9.22238 4.81988 9.28693C6.75753 9.68297 8.27178 11.1972 8.66782 13.1349C8.73237 13.4507 9.18364 13.4507 9.2482 13.1349C9.64424 11.1972 11.1585 9.68297 13.0961 9.28693C13.412 9.22238 13.412 8.77111 13.0961 8.70656C11.1585 8.31052 9.64424 6.79626 9.2482 4.85862Z",fill:C}),r.jsx("path",{d:"M3.87303 1.72074C3.86876 1.69986 3.83892 1.69986 3.83465 1.72074C3.6131 2.80472 2.76598 3.65183 1.682 3.87339C1.66112 3.87766 1.66112 3.9075 1.682 3.91177C2.76598 4.13332 3.6131 4.98044 3.83465 6.06441C3.83892 6.0853 3.86876 6.0853 3.87303 6.06441C4.09459 4.98044 4.9417 4.13332 6.02568 3.91177C6.04656 3.9075 6.04656 3.87766 6.02568 3.87339C4.9417 3.65183 4.09459 2.80472 3.87303 1.72074Z",fill:C})]}))};
|
|
2
2
|
//# sourceMappingURL=RelevanceScoreIcon.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__rest as i,__assign as
|
|
1
|
+
import{__rest as i,__assign as t}from"tslib";import{jsx as o,Fragment as e}from"react/jsx-runtime";import{useRef as n,useMemo as l,Suspense as a}from"react";import c from"react-markdown";import r from"rehype-raw";import{Info as d}from"lucide-react";import{Tooltip as s}from"@mui/material";import u from"./AiReasonMarkdownWrapper.module.css.js";import m from"../../shared/ExpandableOl.js";import v from"../citations/web-citation/WebCitationWithImageRenderer.js";import p from"../citations/web-citation/WebCitationRenderer.js";import f from"../citations/image-citation/ImageCitationRenderer.js";import h from"../citations/file-citation/FileCitationRender.js";import{useRequirementAI as _}from"../RequirementAIWrapper/RequirementAIWrapper.js";import b from"../citations/stormee-citation/StormeeCitationRenderer.js";import y from"../citations/audio-citation/WaveformCitationRenderer.js";import g from"../citations/appmod-citation/AppmodCitationRenderer.js";import C from"../citations/rca-citation/RCACitationRenderer.js";import I from"../citations/readfile-citation/ReadFileCitationRenderer.js";var R=function(R){var j=R.message,k=R.isExpandableOrderedListEnabled,w=R.customStyles,N=R.citationStyles,M=R.customIcons,S=R.onSelectProceed,W=R.isDisableProceedButton,x=n(null),A=_().citations,P=l(function(){return{h1:function(e){e.node;var n=i(e,["node"]);return o("h1",t({className:u.h1,style:null==w?void 0:w.h1},{children:null==n?void 0:n.children}))},h2:function(e){e.node;var n=i(e,["node"]);return o("h2",t({className:u.h2,style:null==w?void 0:w.h2},{children:null==n?void 0:n.children}))},h3:function(e){e.node;var n=i(e,["node"]);return o("h2",t({className:u.h3,style:null==w?void 0:w.h3},{children:null==n?void 0:n.children}))},b:function(t){return t.node,i(t,["node"]),o("b",{className:u.bold,style:null==w?void 0:w.b})},p:function(e){e.node;var n=i(e,["node"]);return o("p",t({},n,{className:u.paragraph,style:null==w?void 0:w.p},{children:null==n?void 0:n.children}))},ol:function(e){e.node;var n=i(e,["node"]);return k?o(m,t({customStyles:null==w?void 0:w.expandOlStyle,onProceed:S,isProceedDisabled:W},{children:null==n?void 0:n.children})):o("ol",t({className:u.orderedList,style:null==w?void 0:w.ol},{children:null==n?void 0:n.children}))},ul:function(e){e.node;var n=i(e,["node"]);return o("ul",t({className:u.unorderedList},{children:null==n?void 0:n.children}))},a:function(n){var l,c,r,d,s,u,m,_,R,j;n.inline;var k=n.children;n.node;var w=i(n,["inline","children","node"]);null==w||w.table;var S="".concat(null==w?void 0:w.href),W=null===(l=S.split("$"))||void 0===l?void 0:l[0],x=null===(c=S.split("$"))||void 0===c?void 0:c[1],P=("appmod_citation"===W?(null==A?void 0:A.appmod_citations)||[]:"image_citation"===W?(null==A?void 0:A.image_citations)||[]:"audio_citation"===W?(null==A?void 0:A.audio_citations)||[]:"document_citation"===W?(null==A?void 0:A.file_citations)||[]:"rca_citation"===W?(null==A?void 0:A.rca_citations)||[]:"web_citation"===W?(null==A?void 0:A.web_citations)||[]:"code_generated"===W?(null==A?void 0:A.code_generated)||[]:"readfile_citation"===W&&(null==A?void 0:A.readfile_citations)||[]).find(function(i){return i.citation_number===decodeURIComponent(x)});return"image_citation"!==W||P?"web_citation"===(null===(r=null==P?void 0:P.customMetadata)||void 0===r?void 0:r.type)?(null===(d=P.customMetadata)||void 0===d?void 0:d.screenshot_url)?o(v,{title:k,citation:P,customStyles:null==N?void 0:N.webCitation,customIcons:M}):o(p,{label:k,url:null===(s=P.customMetadata)||void 0===s?void 0:s.link,customStyles:null==N?void 0:N.webCitation,customIcons:M}):"audio_transcript"===(null===(u=null==P?void 0:P.customMetadata)||void 0===u?void 0:u.type)?"stormee"===(null==P?void 0:P.customMetadata.audio_citation_mode)?o(a,t({fallback:o(e,{})},{children:o(b,{title:"".concat(k),citation:P,customStyles:null==N?void 0:N.stormeeCitation,customIcons:M})})):o(a,t({fallback:o(e,{})},{children:o(y,{title:"".concat(k),citation:P,customStyles:null==N?void 0:N.waveformCitation,customIcons:M})})):"image_citation"===(null==P?void 0:P.customMetadata.type)?o(a,t({fallback:o(e,{})},{children:o(f,{title:"".concat(k),citation:P,customIcons:M})})):"book_citation_doc"===(null===(m=null==P?void 0:P.customMetadata)||void 0===m?void 0:m.type)||"book_citation_pdf"===(null==P?void 0:P.customMetadata.type)?o(a,t({fallback:o(e,{})},{children:o(h,{title:"".concat(k),citation:P,customIcons:M})})):"app_mod_rag_question"===(null===(_=null==P?void 0:P.customMetadata)||void 0===_?void 0:_.type)?o(a,t({fallback:o(e,{})},{children:o(g,{title:"".concat(k),citation:P,customIcons:M})})):"rca_citation"===(null===(R=null==P?void 0:P.customMetadata)||void 0===R?void 0:R.type)?o(a,t({fallback:o(e,{})},{children:o(C,{title:"".concat(k),citation:P,customIcons:M})})):"readfile_citation"===(null===(j=null==P?void 0:P.customMetadata)||void 0===j?void 0:j.type)?o(a,t({fallback:o(e,{})},{children:o(I,{title:"".concat(k),citation:P,customIcons:M})})):null:null},code:function(e){e.inline;var n=e.children,l=e.className;return e.node,i(e,["inline","children","className","node"]),/language-(\w+)/.exec(l||"")||(null==l?void 0:l.includes("language-"))?o("div",{children:o("code",t({className:u.blockCode},{children:n}))}):o("code",t({className:u.inlineCode,style:null==w?void 0:w.code},{children:n}))},learned:function(i){var n=i.children;return o(e,{children:o(s,t({title:n,placement:"top"},{children:o(d,{size:16,className:u.learnedIcon})}))})}}},[A,k]);return o("div",t({ref:x,className:"w-full"},{children:o(c,t({components:P,rehypePlugins:[r]},{children:j}))}))};export{R as AiReasonMarkdownWrapper};
|
|
2
2
|
//# sourceMappingURL=AiReasonMarkdownWrapper.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var t={container:"AppModCitationContent-module_container__1xtAs",header:"AppModCitationContent-module_header__IeZE7",headerLeft:"AppModCitationContent-module_headerLeft__G7-35",headerIcon:"AppModCitationContent-module_headerIcon__O4LnW",headerTitle:"AppModCitationContent-module_headerTitle__5Dq1f",questionContainer:"AppModCitationContent-module_questionContainer__6I-z9",questionLabel:"AppModCitationContent-module_questionLabel__YCafM",questionText:"AppModCitationContent-module_questionText__rP1IB",answerIconRow:"AppModCitationContent-module_answerIconRow__Rj9KV",answerContainer:"AppModCitationContent-module_answerContainer__S3wvq",loadingText:"AppModCitationContent-module_loadingText__Beq8T",pulse:"AppModCitationContent-module_pulse__mtrYX",errorText:"AppModCitationContent-module_errorText__smgrK",markdownContent:"AppModCitationContent-module_markdownContent__0mTD6",heading1:"AppModCitationContent-module_heading1__-7eiM",heading2:"AppModCitationContent-module_heading2__noC-I",heading3:"AppModCitationContent-module_heading3__WLrMU",heading4:"AppModCitationContent-module_heading4__-5Itm",heading5:"AppModCitationContent-module_heading5__7VnDs",heading6:"AppModCitationContent-module_heading6__XZFnq",orderedList:"AppModCitationContent-module_orderedList__U8rDR",unorderedList:"AppModCitationContent-module_unorderedList__KZqQI",listItem:"AppModCitationContent-module_listItem__azue-",paragraph:"AppModCitationContent-module_paragraph__cTK0G",strong:"AppModCitationContent-module_strong__Xl0Md",emphasis:"AppModCitationContent-module_emphasis__AY1-H",inlineCode:"AppModCitationContent-module_inlineCode__-RsaD",codeBlock:"AppModCitationContent-module_codeBlock__nE4xi",preBlock:"AppModCitationContent-module_preBlock__hP-NM",blockquote:"AppModCitationContent-module_blockquote__wIA4u",tableWrapper:"AppModCitationContent-module_tableWrapper__QoOZO",table:"AppModCitationContent-module_table__-Ps6M",tableHead:"AppModCitationContent-module_tableHead__BKTXh",tableBody:"AppModCitationContent-module_tableBody__t55D5",tableRow:"AppModCitationContent-module_tableRow__OPcye",tableHeader:"AppModCitationContent-module_tableHeader__UCiHb",tableCell:"AppModCitationContent-module_tableCell__W7wAz",details:"AppModCitationContent-module_details__2ON5i",summary:"AppModCitationContent-module_summary__vtqBZ",assistantName:"AppModCitationContent-module_assistantName__raxXk",assistantNameInner:"AppModCitationContent-module_assistantNameInner__hRLWV"};!function(){if("undefined"==typeof document)return;const t=document.createElement("style");t.type="text/css";const o=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;o&&t.setAttribute("nonce",o),t.appendChild(document.createTextNode(".AppModCitationContent-module_container__1xtAs{background-color:#f9fafb;border:1px solid #e5e7eb;border-radius:12px;color:#1f2937;display:flex;flex-direction:column;gap:16px;padding:16px 24px;width:100%}.AppModCitationContent-module_header__IeZE7{align-items:center;background-color:#fff;border:1px solid #e5e7eb;border-radius:12px;display:flex;flex-direction:row;gap:12px;justify-content:space-between;overflow:auto;padding:16px;width:100%}.AppModCitationContent-module_headerLeft__G7-35{align-items:center;display:flex;flex-direction:row;gap:8px}.AppModCitationContent-module_headerIcon__O4LnW{color:#1f2937;height:24px;width:24px}.AppModCitationContent-module_headerTitle__5Dq1f{color:#1f2937;font-size:14px;font-weight:600}.AppModCitationContent-module_questionContainer__6I-z9{align-items:flex-end;display:flex;flex-direction:column;width:100%}.AppModCitationContent-module_questionLabel__YCafM{color:#6b7280;font-size:12px;margin-bottom:4px}.AppModCitationContent-module_questionText__rP1IB{background-color:#fff;border:1px solid #e5e7eb;border-radius:8px;color:#1f2937;max-width:fit-content;padding:16px;text-align:justify}.AppModCitationContent-module_answerIconRow__Rj9KV{display:flex;flex-direction:row;justify-content:flex-start;width:100%}.AppModCitationContent-module_answerContainer__S3wvq{text-align:justify}.AppModCitationContent-module_loadingText__Beq8T{animation:AppModCitationContent-module_pulse__mtrYX 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes AppModCitationContent-module_pulse__mtrYX{0%,to{opacity:1}50%{opacity:.5}}.AppModCitationContent-module_errorText__smgrK{color:#dc2626}.AppModCitationContent-module_markdownContent__0mTD6{font-size:14px;line-height:1.6}.AppModCitationContent-module_heading1__-7eiM{color:#1f2937;font-size:24px;font-weight:700;margin-bottom:8px}.AppModCitationContent-module_heading2__noC-I{color:#1f2937;font-size:20px;font-weight:700;margin-bottom:8px}.AppModCitationContent-module_heading3__WLrMU{color:#1f2937;font-size:18px;font-weight:700;padding:4px 0}.AppModCitationContent-module_heading4__-5Itm{color:#1f2937;font-size:16px;font-weight:700;padding:4px 0}.AppModCitationContent-module_heading5__7VnDs{color:#1f2937;font-size:16px;font-weight:700}.AppModCitationContent-module_heading6__XZFnq{color:#6932e2;font-size:14px;font-weight:700;line-height:1.5;margin-bottom:8px;margin-top:12px}.AppModCitationContent-module_orderedList__U8rDR{list-style-position:outside;list-style-type:decimal;margin-bottom:16px;margin-left:16px;padding-left:24px}.AppModCitationContent-module_unorderedList__KZqQI{color:#1f2937;display:flex;flex-direction:column;font-size:14px;list-style-type:disc;margin-left:24px;overflow:auto;width:100%}.AppModCitationContent-module_listItem__azue-{color:#1f2937;font-size:14px;list-style-type:inherit;margin-left:24px;margin-top:4px}.AppModCitationContent-module_paragraph__cTK0G{color:#1f2937;font-size:14px;margin-bottom:8px}.AppModCitationContent-module_strong__Xl0Md{font-weight:700}.AppModCitationContent-module_emphasis__AY1-H{font-style:italic}.AppModCitationContent-module_inlineCode__-RsaD{background-color:#f3f4f6;border-radius:4px;color:#1f2937;display:inline;font-family:Source Code Pro,monospace;font-size:.95em;padding:2px 4px;white-space:normal;word-break:break-all}.AppModCitationContent-module_codeBlock__nE4xi{background-color:initial;display:block;min-width:fit-content;overflow:hidden;padding:8px;white-space:pre-wrap;width:100%;word-break:break-word}.AppModCitationContent-module_preBlock__hP-NM{background-color:initial;border-radius:4px;font-family:Source Code Pro,monospace;font-size:14px;white-space:pre-wrap;word-break:break-word}.AppModCitationContent-module_blockquote__wIA4u{border-left:4px solid #e5e7eb;font-style:italic;margin:8px 0;padding-left:16px}.AppModCitationContent-module_tableWrapper__QoOZO{overflow-x:auto;width:100%}.AppModCitationContent-module_table__-Ps6M{border:1px solid #e5e7eb;border-collapse:collapse;margin:16px 0;width:100%}.AppModCitationContent-module_tableHead__BKTXh{background-color:#f3f4f6}.AppModCitationContent-module_tableRow__OPcye{border-bottom:1px solid #e5e7eb}.AppModCitationContent-module_tableRow__OPcye:hover{background-color:#f3f4f6}.AppModCitationContent-module_tableHeader__UCiHb{background-color:#f3f4f6;font-weight:700;text-align:left}.AppModCitationContent-module_tableCell__W7wAz,.AppModCitationContent-module_tableHeader__UCiHb{color:#1f2937;padding:8px 16px;white-space:normal;word-break:break-word}.AppModCitationContent-module_details__2ON5i{background-color:initial;border-radius:8px;font-size:14px;overflow:auto;padding:8px 0}.AppModCitationContent-module_summary__vtqBZ{align-items:center;border-radius:4px;cursor:pointer;display:flex;font-size:14px;font-weight:600;gap:8px;justify-content:space-between;list-style:none;padding-bottom:4px;text-align:justify;user-select:none}.AppModCitationContent-module_summary__vtqBZ::-webkit-details-marker{display:none}.AppModCitationContent-module_assistantName__raxXk{font-weight:600}.AppModCitationContent-module_assistantNameInner__hRLWV{color:#3b82f6}"));const e=document.head||document.getElementsByTagName("head")[0]||document.documentElement;e&&e.appendChild(t)}();export{t as default};
|
|
2
|
+
//# sourceMappingURL=AppModCitationContent.module.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AppModCitationContent.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|