@e-llm-studio/requirement-ai 0.0.64 → 0.0.65
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/chat-citation/ChatCitationRenderer.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.module.css.js +1 -1
- package/dist/features/RequirementAI/components/ai-reasoning/AiReasonMarkdownWrapper.js +1 -1
- package/dist/features/RequirementAI/components/citations/chat-citation/ChatCitationRenderer.js +1 -1
- package/dist/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.js +1 -1
- package/dist/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.module.css.js +1 -1
- package/dist/types/src/features/RequirementAI/components/ai-reasoning/AiReasonMarkdownWrapper.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/citations/chat-citation/ChatCitationRenderer.d.ts +3 -3
- package/dist/types/src/features/RequirementAI/components/citations/chat-citation/ChatCitationRenderer.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/citations/readfile-citation/types.d.ts +17 -0
- package/dist/types/src/features/RequirementAI/components/citations/readfile-citation/types.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/types/aiReasoning.type.d.ts +6 -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 +2 -0
- package/dist/types/src/features/RequirementAI/types/citation.type.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var i=require("tslib"),t=require("react/jsx-runtime"),e=require("react"),n=require("react-markdown"),o=require("rehype-raw"),a=require("lucide-react"),l=require("@mui/material"),s=require("./AiReasonMarkdownWrapper.module.css.js"),d=require("../../shared/ExpandableOl.js"),r=require("../citations/web-citation/WebCitationWithImageRenderer.js"),c=require("../citations/web-citation/WebCitationRenderer.js"),u=require("../citations/image-citation/ImageCitationRenderer.js"),v=require("../citations/file-citation/FileCitationRender.js"),_=require("../RequirementAIWrapper/RequirementAIWrapper.js"),m=require("../citations/stormee-citation/StormeeCitationRenderer.js"),p=require("../citations/audio-citation/WaveformCitationRenderer.js"),f=require("../citations/appmod-citation/AppmodCitationRenderer.js"),g=require("../citations/rca-citation/RCACitationRenderer.js"),h=require("../citations/readfile-citation/ReadFileCitationRenderer.js"),j=require("../citations/chat-citation/ChatCitationRenderer.js"),C=require("@e-llm-studio/citation");function x(i){return i&&"object"==typeof i&&"default"in i?i:{default:i}}var b=x(n),y=x(o),S=["appmode_citation","image_citation","audio_citation","document_citation","rca_citation","web_citation","code_generated","chat_citation","readfile_citation"],I=function(t,e,n){return i.__spreadArray([],t.map(function(t,o){var a=o>=e&&o<=n;return i.__assign(i.__assign({},t),{highlighted_text:a?t.message:""})}),!0)};exports.AiReasonMarkdownWrapper=function(n){var o=n.label,x=n.message,q=n.isExpandableOrderedListEnabled,M=n.customStyles,R=n.citationStyles,k=n.customIcons,w=n.onSelectProceed,N=n.isDisableProceedButton,F=e.useRef(null),W=_.useRequirementAI(),P=W.citations,A=W.citationConfig,L=W.chatHistory,T=W.chatCitationConfigs,D=W.gptCitationConfigs,O=e.useMemo(function(){return{h1:function(e){e.node;var n=i.__rest(e,["node"]);return t.jsx("h1",i.__assign({className:s.default.h1,style:null==M?void 0:M.h1},{children:null==n?void 0:n.children}))},h2:function(e){e.node;var n=i.__rest(e,["node"]);return t.jsx("h2",i.__assign({className:s.default.h2,style:null==M?void 0:M.h2},{children:null==n?void 0:n.children}))},h3:function(e){e.node;var n=i.__rest(e,["node"]);return t.jsx("h2",i.__assign({className:s.default.h3,style:null==M?void 0:M.h3},{children:null==n?void 0:n.children}))},b:function(e){return e.node,i.__rest(e,["node"]),t.jsx("b",{className:s.default.bold,style:null==M?void 0:M.b})},p:function(e){e.node;var n=i.__rest(e,["node"]);return t.jsx("p",i.__assign({},n,{className:s.default.paragraph,style:null==M?void 0:M.p},{children:null==n?void 0:n.children}))},ol:function(e){e.node;var n=i.__rest(e,["node"]);return q?t.jsx(d.default,i.__assign({label:o,customStyles:null==M?void 0:M.expandOlStyle,onProceed:w,isProceedDisabled:N,aiReasoningCitation:P,citationStyles:R,customIcons:k},{children:null==n?void 0:n.children})):t.jsx("ol",i.__assign({className:s.default.orderedList,style:null==M?void 0:M.ol},{children:null==n?void 0:n.children}))},ul:function(e){e.node;var n=i.__rest(e,["node"]);return t.jsx("ul",i.__assign({className:s.default.unorderedList},{children:null==n?void 0:n.children}))},a:function(n){var o,d,_,x,b,y,q,w,N,F,W,O,z,E,U,G,H,$,B,X,J,K,Q,V,Y,Z;n.inline;var ii=n.children;n.node;var ti=i.__rest(n,["inline","children","node"]),ei="true"===(null==ti?void 0:ti.table),ni="".concat(null==ti?void 0:ti.href),oi=null===(o=ni.split("$"))||void 0===o?void 0:o[0],ai=null===(d=ni.split("$"))||void 0===d?void 0:d[1],li=("appmode_citation"===oi||"appmode_citations"===oi?(null==P?void 0:P.appmod_citations)||[]:"image_citation"===oi||"image_citations"===oi?(null==P?void 0:P.image_citations)||[]:"audio_citation"===oi||"audio_citations"===oi?(null==P?void 0:P.audio_citations)||[]:"document_citation"===oi||"document_citations"===oi?(null==P?void 0:P.file_citations)||[]:"rca_citation"===oi||"rca_citations"===oi?(null==P?void 0:P.rca_citations)||[]:"web_citation"===oi||"web_citations"===oi?(null==P?void 0:P.web_citations)||[]:"code_generated"===oi?(null==P?void 0:P.code_generated)||[]:"readfile_citation"===oi||"readfile_citations"===oi?(null==P?void 0:P.readfile_citations)||[]:("gpt_citation"===oi||"gpt_citations"===oi)&&(null==P?void 0:P.gpt_citations)||[]).find(function(i){return i.citation_number===decodeURIComponent(ai)}),si=S.includes(oi);if("chat_citation"===oi){if(!L||0===L.length)return null;var di=ai.split("-").map(Number),ri=di[0],ci=di[1];return ri=ri>0?ri-1:ri,ci=ci<L.length-1?ci+1:ci,t.jsx(j.default,{customIcon:null==k?void 0:k.chatCitationIcon,title:ii,chatHistory:I(L,ri,ci),isTable:ei,chatCitationProps:null==T?void 0:T.chatCitationProps,onCitationClick:null==T?void 0:T.handleCitationClicked,customStyles:null==R?void 0:R.chatCitation})}if("gpt_citation"===oi&&li)return t.jsx(C.NonWebReasoningComponent,i.__assign({item:{text:"",dataSource:null===(x=null===(_=li.customMetadata)||void 0===_?void 0:_.data_sources)||void 0===x?void 0:x[0],trainingDataTitle:null===(y=null===(b=li.customMetadata)||void 0===b?void 0:b.training_data_title)||void 0===y?void 0:y[0],paraphrase:null===(w=null===(q=li.customMetadata)||void 0===q?void 0:q.paraphrase)||void 0===w?void 0:w[0]},headerTitle:(null==D?void 0:D.title)||"GPT - Gemini 2.5 Flash",iconsConfig:{ChevronDownIcon:a.ChevronDown,ChevronUpIcon:a.ChevronUp,MaximizeIcon:a.Maximize2,CloseIcon:a.X}},null==D?void 0:D.gptCitationProps));if("image_citation"===oi&&!li)return null;if("web_citation"===(null===(N=null==li?void 0:li.customMetadata)||void 0===N?void 0:N.type))return(null===(F=li.customMetadata)||void 0===F?void 0:F.screenshot_url)?t.jsx(r.default,{title:ii,citation:li,customStyles:null==R?void 0:R.webCitation,customIcons:k}):t.jsx(c.default,{label:ii,url:null===(W=li.customMetadata)||void 0===W?void 0:W.link,customStyles:null==R?void 0:R.webCitation,customIcons:k});if("audio_transcript"===(null===(O=null==li?void 0:li.customMetadata)||void 0===O?void 0:O.type))return"stormee"===(null==li?void 0:li.customMetadata.audio_citation_mode)?t.jsx(e.Suspense,i.__assign({fallback:t.jsx(t.Fragment,{})},{children:t.jsx(m.default,{title:"".concat(ii),citation:li,customStyles:null==R?void 0:R.stormeeCitation,customIcons:k})})):t.jsx(e.Suspense,i.__assign({fallback:t.jsx(t.Fragment,{})},{children:t.jsx(p.default,{title:"".concat(ii),citation:li,customStyles:null==R?void 0:R.waveformCitation,customIcons:k})}));if("image_citation"===(null==li?void 0:li.customMetadata.type))return t.jsx(e.Suspense,i.__assign({fallback:t.jsx(t.Fragment,{})},{children:t.jsx(u.default,{title:"".concat(ii),citation:li,customIcons:k,customStyles:null==R?void 0:R.imageCitation})}));if("book_citation_doc"===(null===(z=null==li?void 0:li.customMetadata)||void 0===z?void 0:z.type)||"book_citation_pdf"===(null==li?void 0:li.customMetadata.type))return t.jsx(e.Suspense,i.__assign({fallback:t.jsx(t.Fragment,{})},{children:t.jsx(v.default,{title:"".concat(ii),citation:li,customIcons:k,customStyles:null==R?void 0:R.fileCitation})}));if("app_mod_rag_question"===(null===(E=null==li?void 0:li.customMetadata)||void 0===E?void 0:E.type))return t.jsx(e.Suspense,i.__assign({fallback:t.jsx(t.Fragment,{})},{children:t.jsx(f.default,{title:"".concat(ii),citation:li,customIcons:k,customStyles:null==R?void 0:R.appModCitation,codeLinkConfig:null===(U=null==A?void 0:A.appMod)||void 0===U?void 0:U.codeLinkConfig,isLoading:null===(G=null==A?void 0:A.appMod)||void 0===G?void 0:G.isLoading})}));if("rca_citation"===(null===(H=null==li?void 0:li.customMetadata)||void 0===H?void 0:H.type))return t.jsx(e.Suspense,i.__assign({fallback:t.jsx(t.Fragment,{})},{children:t.jsx(g.default,{title:"".concat(ii),citation:li,customIcons:k,customStyles:null==R?void 0:R.rcaCitation})}));if("readfile_citation"===(null===($=null==li?void 0:li.customMetadata)||void 0===$?void 0:$.type))return t.jsx(e.Suspense,i.__assign({fallback:t.jsx(t.Fragment,{})},{children:t.jsx(h.default,{title:"".concat(ii),citation:li,customIcons:k,customStyles:null==R?void 0:R.readFileCitation,fileCallback:null===(B=null==A?void 0:A.readFile)||void 0===B?void 0:B.fileCallback,editorConfig:null===(X=null==A?void 0:A.readFile)||void 0===X?void 0:X.editorConfig,customColors:null===(J=null==A?void 0:A.readFile)||void 0===J?void 0:J.customColors})}));if(si&&!li){var ui=null!==(K=null==k?void 0:k.citationLoadingIcon)&&void 0!==K?K:t.jsx("span",{className:s.default.citationSpinner,style:null===(Q=null==R?void 0:R.loadingCitations)||void 0===Q?void 0:Q.citationSpinner});return t.jsx(l.Tooltip,i.__assign({title:null!==(Y=null===(V=null==R?void 0:R.loadingCitations)||void 0===V?void 0:V.tooltipTitle)&&void 0!==Y?Y:"".concat(oi," loading..."),arrow:!0},{children:t.jsxs("span",i.__assign({className:s.default.citationSpinnerWrapper,style:null===(Z=null==R?void 0:R.loadingCitations)||void 0===Z?void 0:Z.citationSpinnerWrapper},{children:[ii,ui]}))}))}return t.jsx("span",i.__assign({},ti,{className:s.default.paragraph,style:null==M?void 0:M.p},{children:null==ti?void 0:ti.children}))},code:function(e){e.inline;var n=e.children,o=e.className;return e.node,i.__rest(e,["inline","children","className","node"]),/language-(\w+)/.exec(o||"")||(null==o?void 0:o.includes("language-"))?t.jsx("div",{children:t.jsx("code",i.__assign({className:s.default.blockCode},{children:n}))}):t.jsx("code",i.__assign({className:s.default.inlineCode,style:null==M?void 0:M.code},{children:n}))},learned:function(e){var n=e.children;return t.jsx(t.Fragment,{children:t.jsx(l.Tooltip,i.__assign({title:n,placement:"top"},{children:t.jsx(a.Info,{size:16,className:s.default.learnedIcon})}))})}}},[P,q,A,L]);return t.jsx("div",i.__assign({ref:F,className:"w-full"},{children:t.jsx(b.default,i.__assign({components:O,rehypePlugins:[y.default]},{children:x}))}))},exports.formatChatData=I;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var i=require("tslib"),t=require("react/jsx-runtime"),e=require("react"),n=require("react-markdown"),o=require("rehype-raw"),a=require("lucide-react"),l=require("@mui/material"),s=require("./AiReasonMarkdownWrapper.module.css.js"),d=require("../../shared/ExpandableOl.js"),r=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"),v=require("../RequirementAIWrapper/RequirementAIWrapper.js"),m=require("../citations/stormee-citation/StormeeCitationRenderer.js"),p=require("../citations/audio-citation/WaveformCitationRenderer.js"),f=require("../citations/appmod-citation/AppmodCitationRenderer.js"),g=require("../citations/rca-citation/RCACitationRenderer.js"),h=require("../citations/readfile-citation/ReadFileCitationRenderer.js"),j=require("../citations/chat-citation/ChatCitationRenderer.js"),C=require("@e-llm-studio/citation");function x(i){return i&&"object"==typeof i&&"default"in i?i:{default:i}}var b=x(n),y=x(o),S=["appmode_citation","appmode_citations","appmod_citation","appmod_citations","image_citation","image_citations","audio_citation","audio_citations","document_citation","document_citations","rca_citation","rca_citations","web_citation","web_citations","code_generated","chat_citation","readfile_citation","readfile_citations","gpt_citation","gpt_citations"],I=function(t,e,n){return i.__spreadArray([],t.map(function(t,o){var a=o>=e&&o<=n;return i.__assign(i.__assign({},t),{highlighted_text:a?t.message:""})}),!0)};exports.AiReasonMarkdownWrapper=function(n){var o=n.label,x=n.message,q=n.isExpandableOrderedListEnabled,M=n.customStyles,R=n.citationStyles,k=n.customIcons,w=n.onSelectProceed,N=n.isDisableProceedButton,F=e.useRef(null),W=v.useRequirementAI(),P=W.citations,A=W.citationConfig,L=W.chatHistory,T=W.chatCitationConfigs,D=W.gptCitationConfigs,O=e.useMemo(function(){return{h1:function(e){e.node;var n=i.__rest(e,["node"]);return t.jsx("h1",i.__assign({className:s.default.h1,style:null==M?void 0:M.h1},{children:null==n?void 0:n.children}))},h2:function(e){e.node;var n=i.__rest(e,["node"]);return t.jsx("h2",i.__assign({className:s.default.h2,style:null==M?void 0:M.h2},{children:null==n?void 0:n.children}))},h3:function(e){e.node;var n=i.__rest(e,["node"]);return t.jsx("h2",i.__assign({className:s.default.h3,style:null==M?void 0:M.h3},{children:null==n?void 0:n.children}))},b:function(e){return e.node,i.__rest(e,["node"]),t.jsx("b",{className:s.default.bold,style:null==M?void 0:M.b})},p:function(e){e.node;var n=i.__rest(e,["node"]);return t.jsx("p",i.__assign({},n,{className:s.default.paragraph,style:null==M?void 0:M.p},{children:null==n?void 0:n.children}))},ol:function(e){e.node;var n=i.__rest(e,["node"]);return q?t.jsx(d.default,i.__assign({label:o,customStyles:null==M?void 0:M.expandOlStyle,onProceed:w,isProceedDisabled:N,aiReasoningCitation:P,citationStyles:R,customIcons:k},{children:null==n?void 0:n.children})):t.jsx("ol",i.__assign({className:s.default.orderedList,style:null==M?void 0:M.ol},{children:null==n?void 0:n.children}))},ul:function(e){e.node;var n=i.__rest(e,["node"]);return t.jsx("ul",i.__assign({className:s.default.unorderedList},{children:null==n?void 0:n.children}))},a:function(n){var o,d,v,x,b,y,q,w,N,F,W,O,z,E,U,G,H,$,B,X,J,K,Q,V,Y,Z;n.inline;var ii=n.children;n.node;var ti=i.__rest(n,["inline","children","node"]),ei="true"===(null==ti?void 0:ti.table),ni="".concat(null==ti?void 0:ti.href),oi=null===(o=ni.split("$"))||void 0===o?void 0:o[0],ai=null===(d=ni.split("$"))||void 0===d?void 0:d[1],li=("appmode_citation"===oi||"appmode_citations"===oi?(null==P?void 0:P.appmod_citations)||[]:"image_citation"===oi||"image_citations"===oi?(null==P?void 0:P.image_citations)||[]:"audio_citation"===oi||"audio_citations"===oi?(null==P?void 0:P.audio_citations)||[]:"document_citation"===oi||"document_citations"===oi?(null==P?void 0:P.file_citations)||[]:"rca_citation"===oi||"rca_citations"===oi?(null==P?void 0:P.rca_citations)||[]:"web_citation"===oi||"web_citations"===oi?(null==P?void 0:P.web_citations)||[]:"code_generated"===oi?(null==P?void 0:P.code_generated)||[]:"readfile_citation"===oi||"readfile_citations"===oi?(null==P?void 0:P.readfile_citations)||[]:("gpt_citation"===oi||"gpt_citations"===oi)&&(null==P?void 0:P.gpt_citations)||[]).find(function(i){return i.citation_number===decodeURIComponent(ai)}),si=S.includes(oi);if("chat_citation"===oi){if(!L||0===L.length)return null;var di=ai.split("-").map(Number),ri=di[0],ci=di[1];return ri=ri>0?ri-1:ri,ci=ci<L.length-1?ci+1:ci,t.jsx(j.default,{customIcon:null==k?void 0:k.chatCitationIcon,title:ii,chatHistory:I(L,ri,ci),isTable:ei,chatCitationProps:null==T?void 0:T.chatCitationProps,onCitationClick:null==T?void 0:T.handleCitationClicked,customStyles:null==R?void 0:R.chatCitation})}if("gpt_citation"===oi&&li)return t.jsx(C.NonWebReasoningComponent,i.__assign({item:{text:"",dataSource:null===(x=null===(v=li.customMetadata)||void 0===v?void 0:v.data_sources)||void 0===x?void 0:x[0],trainingDataTitle:null===(y=null===(b=li.customMetadata)||void 0===b?void 0:b.training_data_title)||void 0===y?void 0:y[0],paraphrase:null===(w=null===(q=li.customMetadata)||void 0===q?void 0:q.paraphrase)||void 0===w?void 0:w[0]},headerTitle:(null==D?void 0:D.title)||"GPT - Gemini 2.5 Flash",iconsConfig:{ChevronDownIcon:a.ChevronDown,ChevronUpIcon:a.ChevronUp,MaximizeIcon:a.Maximize2,CloseIcon:a.X}},null==D?void 0:D.gptCitationProps));if("image_citation"===oi&&!li)return null;if("web_citation"===(null===(N=null==li?void 0:li.customMetadata)||void 0===N?void 0:N.type))return(null===(F=li.customMetadata)||void 0===F?void 0:F.screenshot_url)?t.jsx(r.default,{title:ii,citation:li,customStyles:null==R?void 0:R.webCitation,customIcons:k}):t.jsx(c.default,{label:ii,url:null===(W=li.customMetadata)||void 0===W?void 0:W.link,customStyles:null==R?void 0:R.webCitation,customIcons:k});if("audio_transcript"===(null===(O=null==li?void 0:li.customMetadata)||void 0===O?void 0:O.type))return"stormee"===(null==li?void 0:li.customMetadata.audio_citation_mode)?t.jsx(e.Suspense,i.__assign({fallback:t.jsx(t.Fragment,{})},{children:t.jsx(m.default,{title:"".concat(ii),citation:li,customStyles:null==R?void 0:R.stormeeCitation,customIcons:k})})):t.jsx(e.Suspense,i.__assign({fallback:t.jsx(t.Fragment,{})},{children:t.jsx(p.default,{title:"".concat(ii),citation:li,customStyles:null==R?void 0:R.waveformCitation,customIcons:k})}));if("image_citation"===(null==li?void 0:li.customMetadata.type))return t.jsx(e.Suspense,i.__assign({fallback:t.jsx(t.Fragment,{})},{children:t.jsx(u.default,{title:"".concat(ii),citation:li,customIcons:k,customStyles:null==R?void 0:R.imageCitation})}));if("book_citation_doc"===(null===(z=null==li?void 0:li.customMetadata)||void 0===z?void 0:z.type)||"book_citation_pdf"===(null==li?void 0:li.customMetadata.type))return t.jsx(e.Suspense,i.__assign({fallback:t.jsx(t.Fragment,{})},{children:t.jsx(_.default,{title:"".concat(ii),citation:li,customIcons:k,customStyles:null==R?void 0:R.fileCitation})}));if("app_mod_rag_question"===(null===(E=null==li?void 0:li.customMetadata)||void 0===E?void 0:E.type))return t.jsx(e.Suspense,i.__assign({fallback:t.jsx(t.Fragment,{})},{children:t.jsx(f.default,{title:"".concat(ii),citation:li,customIcons:k,customStyles:null==R?void 0:R.appModCitation,codeLinkConfig:null===(U=null==A?void 0:A.appMod)||void 0===U?void 0:U.codeLinkConfig,isLoading:null===(G=null==A?void 0:A.appMod)||void 0===G?void 0:G.isLoading})}));if("rca_citation"===(null===(H=null==li?void 0:li.customMetadata)||void 0===H?void 0:H.type))return t.jsx(e.Suspense,i.__assign({fallback:t.jsx(t.Fragment,{})},{children:t.jsx(g.default,{title:"".concat(ii),citation:li,customIcons:k,customStyles:null==R?void 0:R.rcaCitation})}));if("readfile_citation"===(null===($=null==li?void 0:li.customMetadata)||void 0===$?void 0:$.type))return t.jsx(e.Suspense,i.__assign({fallback:t.jsx(t.Fragment,{})},{children:t.jsx(h.default,{title:"".concat(ii),citation:li,customIcons:k,customStyles:null==R?void 0:R.readFileCitation,fileCallback:null===(B=null==A?void 0:A.readFile)||void 0===B?void 0:B.fileCallback,editorConfig:null===(X=null==A?void 0:A.readFile)||void 0===X?void 0:X.editorConfig,customColors:null===(J=null==A?void 0:A.readFile)||void 0===J?void 0:J.customColors})}));if(si&&!li){var ui=null!==(K=null==k?void 0:k.citationLoadingIcon)&&void 0!==K?K:t.jsx("span",{className:s.default.citationSpinner,style:null===(Q=null==R?void 0:R.loadingCitations)||void 0===Q?void 0:Q.citationSpinner});return t.jsx(l.Tooltip,i.__assign({title:null!==(Y=null===(V=null==R?void 0:R.loadingCitations)||void 0===V?void 0:V.tooltipTitle)&&void 0!==Y?Y:"".concat(oi," loading..."),arrow:!0},{children:t.jsxs("span",i.__assign({className:s.default.citationSpinnerWrapper,style:null===(Z=null==R?void 0:R.loadingCitations)||void 0===Z?void 0:Z.citationSpinnerWrapper},{children:[ii,ui]}))}))}return t.jsx("span",i.__assign({},ti,{className:s.default.paragraph,style:null==M?void 0:M.p},{children:null==ti?void 0:ti.children}))},code:function(e){e.inline;var n=e.children,o=e.className;return e.node,i.__rest(e,["inline","children","className","node"]),/language-(\w+)/.exec(o||"")||(null==o?void 0:o.includes("language-"))?t.jsx("div",{children:t.jsx("code",i.__assign({className:s.default.blockCode},{children:n}))}):t.jsx("code",i.__assign({className:s.default.inlineCode,style:null==M?void 0:M.code},{children:n}))},learned:function(e){var n=e.children;return t.jsx(t.Fragment,{children:t.jsx(l.Tooltip,i.__assign({title:n,placement:"top"},{children:t.jsx(a.Info,{size:16,className:s.default.learnedIcon})}))})}}},[P,q,A,L]);return t.jsx("div",i.__assign({ref:F,className:"w-full"},{children:t.jsx(b.default,i.__assign({components:O,rehypePlugins:[y.default]},{children:x}))}))},exports.formatChatData=I;
|
|
2
2
|
//# sourceMappingURL=AiReasonMarkdownWrapper.js.map
|
package/dist/cjs/features/RequirementAI/components/citations/chat-citation/ChatCitationRenderer.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("tslib"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("tslib"),n=require("react/jsx-runtime"),e=require("@e-llm-studio/citation"),i=require("dayjs"),r=require("../../../utils/helpers.js"),o=require("react");function a(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var l=a(i),s=a(o),u=function(t){var n,e;return null!==(e=null!==(n=t.message)&&void 0!==n?n:t.content)&&void 0!==e?e:""},c=function(t){var n;return null!==(n=t.highlighted_text)&&void 0!==n?n:""},m=function(t,n){if(t.length!==n.length)return!1;for(var e=0;e<t.length;e+=1){var i=t[e],r=n[e];if(i.role!==r.role)return!1;if(u(i)!==u(r))return!1;if(c(i)!==c(r))return!1;if((i.timeStamp?String(i.timeStamp):"")!==(r.timeStamp?String(r.timeStamp):""))return!1}return!0},d=function(t){var n;return null==t?"":"string"==typeof t||"number"==typeof t?String(t):Array.isArray(t)?t.map(d).join(""):s.default.isValidElement(t)?d(null===(n=t.props)||void 0===n?void 0:n.children):""},f=o.memo(function(i){var a,s,d=o.useCallback(function(){var t;null===(t=i.onCitationClick)||void 0===t||t.call(i,i.isTable)},[i.onCitationClick,i.isTable]),f=i.chatCitationProps,p=null!=f?f:{},h=p.chatContainer,v=p.rootContainer,g=t.__rest(p,["chatContainer","rootContainer"]),C=o.useRef(null),_=o.useRef([]);C.current&&m(C.current,i.chatHistory)||(C.current=i.chatHistory,_.current=i.chatHistory.map(function(n){var e=u(n),i=c(n);return t.__assign(t.__assign({},n),{message:r.stripHtmlAndMetadata(e),timeStamp:l.default(n.timeStamp),highlighted_text:r.stripHtmlAndMetadata(i)})}));var y=_.current,S=o.useMemo(function(){return t.__assign({relevanceScore:100},v)},[v]),b=o.useMemo(function(){return t.__assign(t.__assign({summarizedTab:{chip:{show:!1,isActive:!1}},detailedTab:{chip:{isActive:!0}}},h),{chatData:y})},[h,y]),x=o.useMemo(function(){var n,e;return{pillButton:t.__assign({fontSize:"14px",margin:"0px",background:"#ffffff",color:"#526eff",cursor:"pointer",verticalAlign:"middle",whiteSpace:"nowrap",display:"inline-flex",alignItems:"center",border:"none"},null===(n=i.customStyles)||void 0===n?void 0:n.pill),citationContent:t.__assign({width:"100%",background:"transparent",minHeight:"10px",height:"fit-content",color:"black"},null===(e=i.customStyles)||void 0===e?void 0:e.content)}},[i.customStyles]),j=o.useMemo(function(){return n.jsx(e.ChatCitation,t.__assign({rootContainer:S,chatContainer:b},g))},[S,b]);return n.jsx("span",t.__assign({onClickCapture:d},{children:n.jsx(e.CitationRenderer,{inLineCitation:!0,citationTitle:i.title,chevronUpComponent:null===(a=i.customIcon)||void 0===a?void 0:a.chevronUp,chevronDownComponent:null===(s=i.customIcon)||void 0===s?void 0:s.chevronDown,citationComponent:j,styles:x})}))},function(t,n){return t.isTable===n.isTable&&(t.onCitationClick===n.onCitationClick&&(t.customIcon===n.customIcon&&(t.customStyles===n.customStyles&&(t.chatCitationProps===n.chatCitationProps&&(!!m(t.chatHistory,n.chatHistory)&&d(t.title)===d(n.title))))))});exports.default=f;
|
|
2
2
|
//# sourceMappingURL=ChatCitationRenderer.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),t=require("react"),i=require("monaco-editor"),r=require("./ReadFileCitationContent.module.css.js"),o=require("./icons/ExternalLinkIcon.js");function a(e){if(e&&e.__esModule)return e;var n=Object.create(null);return e&&Object.keys(e).forEach(function(t){if("default"!==t){var i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,i.get?i:{enumerable:!0,get:function(){return e[t]}})}}),n.default=e,Object.freeze(n)}var l=a(i);"undefined"!=typeof self&&(self.MonacoEnvironment=e.__assign(e.__assign({},self.MonacoEnvironment),{getWorker:function(){return{postMessage:function(){},terminate:function(){},addEventListener:function(){},removeEventListener:function(){},dispatchEvent:function(){return!0},onmessage:null,onerror:null,onmessageerror:null}}}));var s=!1,u=function(){if(!s&&"undefined"!=typeof document)try{var e=document.createElement("div");e.style.cssText="position:absolute;top:-9999px;left:-9999px;width:1px;height:1px;overflow:hidden;visibility:hidden;pointer-events:none;",document.body.appendChild(e),l.editor.create(e,{value:"",language:"plaintext",automaticLayout:!1,minimap:{enabled:!1},scrollbar:{vertical:"hidden",horizontal:"hidden"},overviewRulerLanes:0,lineNumbers:"off",glyphMargin:!1,folding:!1,lineDecorationsWidth:0,lineNumbersMinChars:0}).dispose(),document.body.removeChild(e),s=!0}catch(e){s=!0}};u(),"undefined"!=typeof window&&(window.addEventListener("error",function(e){var n=e.message||"";if(n.includes("Worker")||n.includes("Monaco"))return e.preventDefault(),e.stopImmediatePropagation(),!1},!0),window.addEventListener("unhandledrejection",function(e){var n,t=(null===(n=e.reason)||void 0===n?void 0:n.message)||String(e.reason||"");(t.includes("Worker")||t.includes("Monaco"))&&(e.preventDefault(),e.stopImmediatePropagation())},!0));var c={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)"},d={theme:"vs-dark",fontSize:13,fontFamily:"Consolas, 'Courier New', monospace",maxHeight:300,minHeight:80},h={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"},f=function(e){return h[e.toLowerCase()]||e},g=function(i){var o=i.code,a=i.language,s=i.theme,c=i.fontSize,d=i.fontFamily,h=i.height,g=i.highlightRanges,m=i.backgroundColor,v=i.editorWrapperStyle,p=t.useRef(null),b=t.useRef(null),y=t.useRef(!1);return t.useEffect(function(){y.current=!1,u();var e=setTimeout(function(){var e=p.current;if(e&&!y.current&&!b.current)try{l.editor.setTheme(s);var n=l.editor.create(e,{value:o,language:f(a),readOnly:!0,domReadOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,fontSize:c,lineHeight:20,fontFamily:d,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});if(b.current=n,g.length>0){var t=g.map(function(e){var n=e[0],t=e[1];return{range:new l.Range(n,1,t,1),options:{isWholeLine:!0,className:r.default.highlightedLine,linesDecorationsClassName:r.default.highlightedLineDecoration}}});n.createDecorationsCollection(t);var i=g[0];i&&requestAnimationFrame(function(){!y.current&&b.current&&n.revealLineInCenter(i[0])})}}catch(e){}},50);return function(){if(y.current=!0,clearTimeout(e),b.current){try{b.current.dispose()}catch(e){}b.current=null}}},[]),t.useEffect(function(){try{l.editor.setTheme(s)}catch(e){}},[s]),n.jsx("div",e.__assign({className:r.default.editorWrapper,style:e.__assign({height:"".concat(h,"px"),backgroundColor:m},v)},{children:n.jsx("div",{ref:p,style:{width:"100%",height:"100%"}})}))};exports.default=function(i){var a=i.citation,l=i.customStyles,s=i.customColors,u=i.customIcons,h=i.editorConfig,f=i.fileCallback,m=t.useMemo(function(){return e.__assign(e.__assign({},c),s)},[s]),v=t.useMemo(function(){return e.__assign(e.__assign({},d),h)},[h]),p=t.useRef(null),b=t.useRef(!1),y=a.customMetadata.content||"",_=a.customMetadata.highlighted_text,x=t.useMemo(function(){if(!_)return{};try{var e=_.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=t.useMemo(function(){for(var e,n=[],t=/```(\w+)?\s*<file_path>([\s\S]*?)<\/file_path>\s*<code>([\s\S]*?)<\/code>\s*```/g;null!==(e=t.exec(y));){var i=e[1]||"javascript",r=e[2].trim(),o=e[3].trim();r&&o&&n.push({filePath:r,code:o,language:i})}return n},[y]),C=t.useCallback(function(e){return(x[e]||[]).map(function(e){var n=e.split("-").map(Number),t=n[0];return[t,n.length>1?n[1]:t]})},[x]),w=t.useMemo(function(){for(var e=0;e<j.length;e++){if(C(j[e].filePath).length>0)return e}return-1},[j,C]),k=w>=0,M=t.useCallback(function(e,n){return C(e).map(function(e){var t=e[0],i=e[1];return t>n?[0,0]:[t,Math.min(i,n)]}).filter(function(e){var n=e[0],t=e[1];return n>0&&t>=n})},[C]),N=t.useCallback(function(e){var n=20*e.split("\n").length+16+4;return Math.min(Math.max(n,v.minHeight),v.maxHeight)},[v.minHeight,v.maxHeight]);t.useEffect(function(){if(k&&!b.current&&j.length>0&&(null==f?void 0:f.autoOpenFirstHighlighted)&&(null==f?void 0:f.onOpenFile)){var e=j[w],n=M(e.filePath,e.code.split("\n").length);b.current=!0;var t=setTimeout(function(){f.onOpenFile({filePath:e.filePath,ranges:n.length>0?n:null})},300);return function(){return clearTimeout(t)}}},[k,w,j,M,f]),t.useEffect(function(){b.current=!1},[y]),t.useEffect(function(){if(!(w<0)){var e=setTimeout(function(){var e;null===(e=p.current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})},350);return function(){return clearTimeout(e)}}},[w,_]);var L=t.useCallback(function(e,n){if(null==f?void 0:f.onOpenFile){var t=M(e,n);f.onOpenFile({filePath:e,ranges:t.length>0?t:null})}},[M,f]),O=!!(null==f?void 0:f.onOpenFile),S=(null==u?void 0:u.readFileCitationIcon)||n.jsx(o.default,{style:{width:"14px",height:"14px"}});return 0===j.length?n.jsx("div",e.__assign({className:r.default.emptyState,style:e.__assign({color:m.inactiveText},null==l?void 0:l.emptyState)},{children:"No code content available"})):n.jsx("div",e.__assign({className:r.default.container,style:null==l?void 0:l.container},{children:j.map(function(t,i){var o,a=C(t.filePath),s=a.length>0,u=i===w,c=N(t.code),d=t.filePath.split("/").pop(),h=t.code.split("\n").length,f=M(t.filePath,h);return n.jsxs("div",e.__assign({ref:u?p:void 0,"data-highlighted":s?"true":void 0,"data-first-highlighted":u?"true":void 0,className:r.default.blockContainer,style:e.__assign({border:"1px solid ".concat(m.border)},null==l?void 0:l.blockContainer)},{children:[n.jsxs("div",e.__assign({className:r.default.header,style:e.__assign({backgroundColor:s?m.highlightBg:m.headerBg,borderBottom:"1px solid ".concat(m.border),color:s?m.highlightGutter:m.foreground},s?null==l?void 0:l.headerHighlighted:null==l?void 0:l.header)},{children:[n.jsxs("div",e.__assign({className:r.default.headerLeft},{children:[n.jsx("span",e.__assign({className:r.default.fileName,title:t.filePath,style:null==l?void 0:l.fileName},{children:d})),O&&n.jsx("button",e.__assign({className:r.default.openFileButton,onClick:function(){return L(t.filePath,h)},title:"Open in editor","aria-label":"Open ".concat(d," in editor"),style:null==l?void 0:l.openFileButton},{children:S}))]})),s&&n.jsx("span",e.__assign({className:r.default.lineRanges,style:null==l?void 0:l.lineRanges},{children:(o=a,o.map(function(e){var n=e[0],t=e[1];return n===t?"L".concat(n):"L".concat(n,"-").concat(t)}).join(", "))}))]})),n.jsx(g,{code:t.code,language:t.language,theme:v.theme,fontSize:v.fontSize,fontFamily:v.fontFamily,height:c,highlightRanges:f,backgroundColor:m.background,editorWrapperStyle:null==l?void 0:l.editorWrapper})]}),i)})}))};
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),t=require("react"),i=require("react-dom"),a=require("monaco-editor"),r=require("./ReadFileCitationContent.module.css.js"),l=require("./icons/ExternalLinkIcon.js"),o=require("lucide-react");function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function u(e){if(e&&e.__esModule)return e;var n=Object.create(null);return e&&Object.keys(e).forEach(function(t){if("default"!==t){var i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,i.get?i:{enumerable:!0,get:function(){return e[t]}})}}),n.default=e,Object.freeze(n)}var c=s(i),d=u(a);"undefined"!=typeof self&&(self.MonacoEnvironment=e.__assign(e.__assign({},self.MonacoEnvironment),{getWorker:function(){return{postMessage:function(){},terminate:function(){},addEventListener:function(){},removeEventListener:function(){},dispatchEvent:function(){return!0},onmessage:null,onerror:null,onmessageerror:null}}}));var h=!1,f=function(){if(!h&&"undefined"!=typeof document)try{var e=document.createElement("div");e.style.cssText="position:absolute;top:-9999px;left:-9999px;width:1px;height:1px;overflow:hidden;visibility:hidden;pointer-events:none;",document.body.appendChild(e),d.editor.create(e,{value:"",language:"plaintext",automaticLayout:!1,minimap:{enabled:!1},scrollbar:{vertical:"hidden",horizontal:"hidden"},overviewRulerLanes:0,lineNumbers:"off",glyphMargin:!1,folding:!1,lineDecorationsWidth:0,lineNumbersMinChars:0}).dispose(),document.body.removeChild(e),h=!0}catch(e){h=!0}};f(),"undefined"!=typeof window&&(window.addEventListener("error",function(e){var n=e.message||"";if(n.includes("Worker")||n.includes("Monaco"))return e.preventDefault(),e.stopImmediatePropagation(),!1},!0),window.addEventListener("unhandledrejection",function(e){var n,t=(null===(n=e.reason)||void 0===n?void 0:n.message)||String(e.reason||"");(t.includes("Worker")||t.includes("Monaco"))&&(e.preventDefault(),e.stopImmediatePropagation())},!0));var g={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)"},m={theme:"vs-dark",fontSize:13,fontFamily:"Consolas, 'Courier New', monospace",maxHeight:300,minHeight:80},v={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"},p=function(e){return v[e.toLowerCase()]||e},y=function(i){var a=i.code,l=i.language,o=i.theme,s=i.fontSize,u=i.fontFamily,c=i.height,h=i.blueHighlightRanges,g=i.yellowHighlightRanges,m=i.backgroundColor,v=i.editorWrapperStyle,y=t.useRef(null),_=t.useRef(null),b=t.useRef(!1);return t.useEffect(function(){b.current=!1,f();var e=setTimeout(function(){var e,n=y.current;if(n&&!b.current&&!_.current)try{d.editor.setTheme(o);var t=d.editor.create(n,{value:a,language:p(l),readOnly:!0,domReadOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,fontSize:s,lineHeight:20,fontFamily:u,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});_.current=t;var i=[];h.forEach(function(e){var n=e[0],t=e[1];i.push({range:new d.Range(n,1,t,1),options:{isWholeLine:!0,className:r.default.highlightedLine,linesDecorationsClassName:r.default.highlightedLineDecoration}})}),g.forEach(function(e){var n=e[0],t=e[1];i.push({range:new d.Range(n,1,t,1),options:{isWholeLine:!0,className:r.default.yellowHighlightedLine,linesDecorationsClassName:r.default.yellowHighlightedLineDecoration}})}),i.length>0&&t.createDecorationsCollection(i);var c=null!==(e=g[0])&&void 0!==e?e:h[0];c&&requestAnimationFrame(function(){!b.current&&_.current&&t.revealLineInCenter(c[0])})}catch(e){}},50);return function(){if(b.current=!0,clearTimeout(e),_.current){try{_.current.dispose()}catch(e){}_.current=null}}},[]),t.useEffect(function(){try{d.editor.setTheme(o)}catch(e){}},[o]),n.jsx("div",e.__assign({className:r.default.editorWrapper,style:e.__assign({height:"".concat(c,"px"),backgroundColor:m},v)},{children:n.jsx("div",{ref:y,style:{width:"100%",height:"100%"}})}))};exports.default=function(i){var a=i.citation,s=i.customStyles,u=i.customColors,d=i.customIcons,h=i.editorConfig,f=i.fileCallback,v=t.useMemo(function(){return e.__assign(e.__assign({},g),u)},[u]),p=t.useMemo(function(){return e.__assign(e.__assign({},m),h)},[h]),_=t.useState(!1),b=_[0],x=_[1],j=t.useRef(null),C=t.useRef(!1),w=a.customMetadata.content||"",N=a.customMetadata.highlighted_text,k=a.customMetadata.start_line,M=a.customMetadata.end_line,L=t.useMemo(function(){if(!N)return{};try{var e=N.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),{}}},[N]),O=t.useMemo(function(){for(var e,n=[],t=/```(\w+)?\s*<file_path>([\s\S]*?)<\/file_path>\s*<code>([\s\S]*?)<\/code>\s*```/g;null!==(e=t.exec(w));){var i=e[1]||"javascript",a=e[2].trim(),r=e[3].trim();a&&r&&n.push({filePath:a,code:r,language:i})}return n},[w]),E=t.useCallback(function(e){return(L[e]||[]).map(function(e){var n=e.split("-").map(Number),t=n[0];return[t,n.length>1?n[1]:t]})},[L]),S=t.useMemo(function(){for(var e=0;e<O.length;e++){if(E(O[e].filePath).length>0)return e}return-1},[O,E]),R=S>=0,F=t.useCallback(function(e,n){return E(e).map(function(e){var t=e[0],i=e[1];return t>n?[0,0]:[t,Math.min(i,n)]}).filter(function(e){var n=e[0],t=e[1];return n>0&&t>=n})},[E]),P=t.useCallback(function(e){if(null==k||null==M)return[];var n=Math.max(1,0===k?1:k),t=Math.min(M,e);return n>t?[]:[[n,t]]},[k,M]);t.useEffect(function(){if(R&&!C.current&&O.length>0&&(null==f?void 0:f.autoOpenFirstHighlighted)&&(null==f?void 0:f.onOpenFile)){var e=O[S],n=F(e.filePath,e.code.split("\n").length);C.current=!0;var t=setTimeout(function(){f.onOpenFile({filePath:e.filePath,ranges:n.length>0?n:null})},300);return function(){return clearTimeout(t)}}},[R,S,O,F,f]),t.useEffect(function(){C.current=!1},[w]),t.useEffect(function(){if(!(S<0)){var e=setTimeout(function(){var e;null===(e=j.current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})},350);return function(){return clearTimeout(e)}}},[S,N]);var B=t.useCallback(function(e,n){if(null==f?void 0:f.onOpenFile){var t=F(e,n);f.onOpenFile({filePath:e,ranges:t.length>0?t:null})}},[F,f]),H=t.useCallback(function(){(null==f?void 0:f.onExpandClick)?f.onExpandClick({blocks:O,highlightMap:L}):x(!0)},[f,O,L]),W=!!(null==f?void 0:f.onOpenFile),z=(null==d?void 0:d.readFileCitationIcon)||n.jsx(l.default,{style:{width:"14px",height:"14px"}}),T=function(t){return O.map(function(i,a){var l,u,c=E(i.filePath),d=c.length>0,h=a===S,f=t?600:p.maxHeight,g=(l=20*i.code.split("\n").length+16+4,Math.min(Math.max(l,p.minHeight),f)),m=i.filePath.split("/").pop(),_=i.code.split("\n").length,b=F(i.filePath,_),x=P(_);return n.jsxs("div",e.__assign({ref:!t&&h?j:void 0,"data-highlighted":d?"true":void 0,"data-first-highlighted":h?"true":void 0,className:r.default.blockContainer,style:e.__assign({border:"1px solid ".concat(v.border)},null==s?void 0:s.blockContainer)},{children:[n.jsxs("div",e.__assign({className:r.default.header,style:e.__assign({backgroundColor:d?v.highlightBg:v.headerBg,borderBottom:"1px solid ".concat(v.border),color:d?v.highlightGutter:v.foreground},d?null==s?void 0:s.headerHighlighted:null==s?void 0:s.header)},{children:[n.jsxs("div",e.__assign({className:r.default.headerLeft},{children:[n.jsx("span",e.__assign({className:r.default.fileName,title:i.filePath,style:null==s?void 0:s.fileName},{children:m})),W&&n.jsx("button",e.__assign({className:r.default.openFileButton,onClick:function(){return B(i.filePath,_)},title:"Open in editor","aria-label":"Open ".concat(m," in editor"),style:null==s?void 0:s.openFileButton},{children:z}))]})),n.jsxs("div",e.__assign({className:r.default.headerRight},{children:[d&&n.jsx("span",e.__assign({className:r.default.lineRanges,style:null==s?void 0:s.lineRanges},{children:(u=c,u.map(function(e){var n=e[0],t=e[1];return n===t?"L".concat(n):"L".concat(n,"-").concat(t)}).join(", "))})),!t&&0===a&&n.jsx("button",e.__assign({className:r.default.expandButton,style:null==s?void 0:s.expandButton,onClick:H,title:"Expand","aria-label":"Expand code view"},{children:n.jsx(o.Maximize2,{size:13})}))]}))]})),n.jsx(y,{code:i.code,language:i.language,theme:p.theme,fontSize:p.fontSize,fontFamily:p.fontFamily,height:g,blueHighlightRanges:x,yellowHighlightRanges:b,backgroundColor:v.background,editorWrapperStyle:null==s?void 0:s.editorWrapper})]}),a)})};if(0===O.length)return n.jsx("div",e.__assign({className:r.default.emptyState,style:e.__assign({color:v.inactiveText},null==s?void 0:s.emptyState)},{children:"No code content available"}));var q=b?c.default.createPortal(n.jsx("div",e.__assign({className:r.default.modalOverlay,style:null==s?void 0:s.modalOverlay,onClick:function(e){e.target===e.currentTarget&&x(!1)}},{children:n.jsxs("div",e.__assign({className:r.default.modalContent,style:null==s?void 0:s.modalContent},{children:[n.jsxs("div",e.__assign({className:r.default.modalHeader,style:null==s?void 0:s.modalHeader},{children:[n.jsx("span",e.__assign({className:r.default.modalTitle,style:null==s?void 0:s.modalTitle},{children:1===O.length?O[0].filePath:"".concat(O.length," files")})),n.jsx("button",e.__assign({className:r.default.modalCloseButton,style:null==s?void 0:s.modalCloseButton,onClick:function(){return x(!1)},"aria-label":"Close expanded view"},{children:n.jsx(o.X,{size:16})}))]})),n.jsx("div",e.__assign({className:r.default.modalBody},{children:n.jsx("div",e.__assign({className:r.default.container,style:null==s?void 0:s.container},{children:T(!0)}))}))]}))})),document.body):null;return n.jsxs(n.Fragment,{children:[q,n.jsx("div",e.__assign({className:r.default.container,style:null==s?void 0:s.container},{children:T(!1)}))]})};
|
|
2
2
|
//# sourceMappingURL=ReadFileCitationContent.js.map
|
|
@@ -1,2 +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
|
|
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_yellowHighlightedLine__bZ6XP{background-color:#eab30833!important}.ReadFileCitationContent-module_yellowHighlightedLineDecoration__Ru91N{background-color:#eab308;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}.ReadFileCitationContent-module_headerRight__Hetda{align-items:center;display:flex;flex-shrink:0;gap:6px}.ReadFileCitationContent-module_expandButton__wjkgL{align-items:center;background:none;border:none;border-radius:4px;color:inherit;cursor:pointer;display:flex;flex-shrink:0;justify-content:center;opacity:.7;padding:2px;transition:opacity .15s ease,background-color .15s ease}.ReadFileCitationContent-module_expandButton__wjkgL:hover{background-color:#ffffff1a;opacity:1}.ReadFileCitationContent-module_modalOverlay__ZJSqk{align-items:center;background-color:#000000b3;box-sizing:border-box;display:flex;inset:0;justify-content:center;padding:24px;position:fixed;z-index:9999}.ReadFileCitationContent-module_modalContent__PA-tB{background:#1e1e1e;border:1px solid #3c3c3c;border-radius:6px;display:flex;flex-direction:column;max-height:90vh;max-width:900px;overflow:hidden;width:100%}.ReadFileCitationContent-module_modalHeader__9Jcjf{align-items:center;background:#252526;border-bottom:1px solid #3c3c3c;display:flex;flex-shrink:0;justify-content:space-between;padding:10px 14px}.ReadFileCitationContent-module_modalTitle__M60Jk{color:#ccc;font-family:monospace;font-size:13px;opacity:.85}.ReadFileCitationContent-module_modalCloseButton__4bymQ{align-items:center;background:none;border:none;border-radius:4px;color:#ccc;cursor:pointer;display:flex;justify-content:center;opacity:.7;padding:2px;transition:opacity .15s ease,background-color .15s ease}.ReadFileCitationContent-module_modalCloseButton__4bymQ:hover{background-color:#ffffff1a;opacity:1}.ReadFileCitationContent-module_modalBody__Oo7OO{flex:1;overflow-y:auto;padding:12px}"));const o=document.head||document.getElementsByTagName("head")[0]||document.documentElement;o&&o.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",yellowHighlightedLine:"ReadFileCitationContent-module_yellowHighlightedLine__bZ6XP",yellowHighlightedLineDecoration:"ReadFileCitationContent-module_yellowHighlightedLineDecoration__Ru91N",emptyState:"ReadFileCitationContent-module_emptyState__34kcg",loadingEditor:"ReadFileCitationContent-module_loadingEditor__aOHYT",headerRight:"ReadFileCitationContent-module_headerRight__Hetda",expandButton:"ReadFileCitationContent-module_expandButton__wjkgL",modalOverlay:"ReadFileCitationContent-module_modalOverlay__ZJSqk",modalContent:"ReadFileCitationContent-module_modalContent__PA-tB",modalHeader:"ReadFileCitationContent-module_modalHeader__9Jcjf",modalTitle:"ReadFileCitationContent-module_modalTitle__M60Jk",modalCloseButton:"ReadFileCitationContent-module_modalCloseButton__4bymQ",modalBody:"ReadFileCitationContent-module_modalBody__Oo7OO"};
|
|
2
2
|
//# sourceMappingURL=ReadFileCitationContent.module.css.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__rest as i,__assign as t,__spreadArray as o}from"tslib";import{jsx as n,Fragment as e,jsxs as
|
|
1
|
+
import{__rest as i,__assign as t,__spreadArray as o}from"tslib";import{jsx as n,Fragment as e,jsxs as a}from"react/jsx-runtime";import{useRef as l,useMemo as c,Suspense as d}from"react";import r from"react-markdown";import s from"rehype-raw";import{ChevronDown as u,ChevronUp as m,Maximize2 as v,X as p,Info as f}from"lucide-react";import{Tooltip as h}from"@mui/material";import _ from"./AiReasonMarkdownWrapper.module.css.js";import g from"../../shared/ExpandableOl.js";import C from"../citations/web-citation/WebCitationWithImageRenderer.js";import b from"../citations/web-citation/WebCitationRenderer.js";import y from"../citations/image-citation/ImageCitationRenderer.js";import I from"../citations/file-citation/FileCitationRender.js";import{useRequirementAI as S}from"../RequirementAIWrapper/RequirementAIWrapper.js";import k from"../citations/stormee-citation/StormeeCitationRenderer.js";import M from"../citations/audio-citation/WaveformCitationRenderer.js";import w from"../citations/appmod-citation/AppmodCitationRenderer.js";import N from"../citations/rca-citation/RCACitationRenderer.js";import R from"../citations/readfile-citation/ReadFileCitationRenderer.js";import j from"../citations/chat-citation/ChatCitationRenderer.js";import{NonWebReasoningComponent as x}from"@e-llm-studio/citation";var P=["appmode_citation","appmode_citations","appmod_citation","appmod_citations","image_citation","image_citations","audio_citation","audio_citations","document_citation","document_citations","rca_citation","rca_citations","web_citation","web_citations","code_generated","chat_citation","readfile_citation","readfile_citations","gpt_citation","gpt_citations"],W=function(i,n,e){return o([],i.map(function(i,o){var a=o>=n&&o<=e;return t(t({},i),{highlighted_text:a?i.message:""})}),!0)},L=function(o){var L=o.label,F=o.message,A=o.isExpandableOrderedListEnabled,T=o.customStyles,D=o.citationStyles,q=o.customIcons,E=o.onSelectProceed,O=o.isDisableProceedButton,z=l(null),G=S(),H=G.citations,U=G.citationConfig,$=G.chatHistory,B=G.chatCitationConfigs,J=G.gptCitationConfigs,K=c(function(){return{h1:function(o){o.node;var e=i(o,["node"]);return n("h1",t({className:_.h1,style:null==T?void 0:T.h1},{children:null==e?void 0:e.children}))},h2:function(o){o.node;var e=i(o,["node"]);return n("h2",t({className:_.h2,style:null==T?void 0:T.h2},{children:null==e?void 0:e.children}))},h3:function(o){o.node;var e=i(o,["node"]);return n("h2",t({className:_.h3,style:null==T?void 0:T.h3},{children:null==e?void 0:e.children}))},b:function(t){return t.node,i(t,["node"]),n("b",{className:_.bold,style:null==T?void 0:T.b})},p:function(o){o.node;var e=i(o,["node"]);return n("p",t({},e,{className:_.paragraph,style:null==T?void 0:T.p},{children:null==e?void 0:e.children}))},ol:function(o){o.node;var e=i(o,["node"]);return A?n(g,t({label:L,customStyles:null==T?void 0:T.expandOlStyle,onProceed:E,isProceedDisabled:O,aiReasoningCitation:H,citationStyles:D,customIcons:q},{children:null==e?void 0:e.children})):n("ol",t({className:_.orderedList,style:null==T?void 0:T.ol},{children:null==e?void 0:e.children}))},ul:function(o){o.node;var e=i(o,["node"]);return n("ul",t({className:_.unorderedList},{children:null==e?void 0:e.children}))},a:function(o){var l,c,r,s,f,g,S,L,F,A,E,O,z,G,K,Q,V,X,Y,Z,ii,ti,oi,ni,ei,ai;o.inline;var li=o.children;o.node;var ci=i(o,["inline","children","node"]),di="true"===(null==ci?void 0:ci.table),ri="".concat(null==ci?void 0:ci.href),si=null===(l=ri.split("$"))||void 0===l?void 0:l[0],ui=null===(c=ri.split("$"))||void 0===c?void 0:c[1],mi=("appmode_citation"===si||"appmode_citations"===si?(null==H?void 0:H.appmod_citations)||[]:"image_citation"===si||"image_citations"===si?(null==H?void 0:H.image_citations)||[]:"audio_citation"===si||"audio_citations"===si?(null==H?void 0:H.audio_citations)||[]:"document_citation"===si||"document_citations"===si?(null==H?void 0:H.file_citations)||[]:"rca_citation"===si||"rca_citations"===si?(null==H?void 0:H.rca_citations)||[]:"web_citation"===si||"web_citations"===si?(null==H?void 0:H.web_citations)||[]:"code_generated"===si?(null==H?void 0:H.code_generated)||[]:"readfile_citation"===si||"readfile_citations"===si?(null==H?void 0:H.readfile_citations)||[]:("gpt_citation"===si||"gpt_citations"===si)&&(null==H?void 0:H.gpt_citations)||[]).find(function(i){return i.citation_number===decodeURIComponent(ui)}),vi=P.includes(si);if("chat_citation"===si){if(!$||0===$.length)return null;var pi=ui.split("-").map(Number),fi=pi[0],hi=pi[1];return fi=fi>0?fi-1:fi,hi=hi<$.length-1?hi+1:hi,n(j,{customIcon:null==q?void 0:q.chatCitationIcon,title:li,chatHistory:W($,fi,hi),isTable:di,chatCitationProps:null==B?void 0:B.chatCitationProps,onCitationClick:null==B?void 0:B.handleCitationClicked,customStyles:null==D?void 0:D.chatCitation})}if("gpt_citation"===si&&mi)return n(x,t({item:{text:"",dataSource:null===(s=null===(r=mi.customMetadata)||void 0===r?void 0:r.data_sources)||void 0===s?void 0:s[0],trainingDataTitle:null===(g=null===(f=mi.customMetadata)||void 0===f?void 0:f.training_data_title)||void 0===g?void 0:g[0],paraphrase:null===(L=null===(S=mi.customMetadata)||void 0===S?void 0:S.paraphrase)||void 0===L?void 0:L[0]},headerTitle:(null==J?void 0:J.title)||"GPT - Gemini 2.5 Flash",iconsConfig:{ChevronDownIcon:u,ChevronUpIcon:m,MaximizeIcon:v,CloseIcon:p}},null==J?void 0:J.gptCitationProps));if("image_citation"===si&&!mi)return null;if("web_citation"===(null===(F=null==mi?void 0:mi.customMetadata)||void 0===F?void 0:F.type))return(null===(A=mi.customMetadata)||void 0===A?void 0:A.screenshot_url)?n(C,{title:li,citation:mi,customStyles:null==D?void 0:D.webCitation,customIcons:q}):n(b,{label:li,url:null===(E=mi.customMetadata)||void 0===E?void 0:E.link,customStyles:null==D?void 0:D.webCitation,customIcons:q});if("audio_transcript"===(null===(O=null==mi?void 0:mi.customMetadata)||void 0===O?void 0:O.type))return"stormee"===(null==mi?void 0:mi.customMetadata.audio_citation_mode)?n(d,t({fallback:n(e,{})},{children:n(k,{title:"".concat(li),citation:mi,customStyles:null==D?void 0:D.stormeeCitation,customIcons:q})})):n(d,t({fallback:n(e,{})},{children:n(M,{title:"".concat(li),citation:mi,customStyles:null==D?void 0:D.waveformCitation,customIcons:q})}));if("image_citation"===(null==mi?void 0:mi.customMetadata.type))return n(d,t({fallback:n(e,{})},{children:n(y,{title:"".concat(li),citation:mi,customIcons:q,customStyles:null==D?void 0:D.imageCitation})}));if("book_citation_doc"===(null===(z=null==mi?void 0:mi.customMetadata)||void 0===z?void 0:z.type)||"book_citation_pdf"===(null==mi?void 0:mi.customMetadata.type))return n(d,t({fallback:n(e,{})},{children:n(I,{title:"".concat(li),citation:mi,customIcons:q,customStyles:null==D?void 0:D.fileCitation})}));if("app_mod_rag_question"===(null===(G=null==mi?void 0:mi.customMetadata)||void 0===G?void 0:G.type))return n(d,t({fallback:n(e,{})},{children:n(w,{title:"".concat(li),citation:mi,customIcons:q,customStyles:null==D?void 0:D.appModCitation,codeLinkConfig:null===(K=null==U?void 0:U.appMod)||void 0===K?void 0:K.codeLinkConfig,isLoading:null===(Q=null==U?void 0:U.appMod)||void 0===Q?void 0:Q.isLoading})}));if("rca_citation"===(null===(V=null==mi?void 0:mi.customMetadata)||void 0===V?void 0:V.type))return n(d,t({fallback:n(e,{})},{children:n(N,{title:"".concat(li),citation:mi,customIcons:q,customStyles:null==D?void 0:D.rcaCitation})}));if("readfile_citation"===(null===(X=null==mi?void 0:mi.customMetadata)||void 0===X?void 0:X.type))return n(d,t({fallback:n(e,{})},{children:n(R,{title:"".concat(li),citation:mi,customIcons:q,customStyles:null==D?void 0:D.readFileCitation,fileCallback:null===(Y=null==U?void 0:U.readFile)||void 0===Y?void 0:Y.fileCallback,editorConfig:null===(Z=null==U?void 0:U.readFile)||void 0===Z?void 0:Z.editorConfig,customColors:null===(ii=null==U?void 0:U.readFile)||void 0===ii?void 0:ii.customColors})}));if(vi&&!mi){var _i=null!==(ti=null==q?void 0:q.citationLoadingIcon)&&void 0!==ti?ti:n("span",{className:_.citationSpinner,style:null===(oi=null==D?void 0:D.loadingCitations)||void 0===oi?void 0:oi.citationSpinner});return n(h,t({title:null!==(ei=null===(ni=null==D?void 0:D.loadingCitations)||void 0===ni?void 0:ni.tooltipTitle)&&void 0!==ei?ei:"".concat(si," loading..."),arrow:!0},{children:a("span",t({className:_.citationSpinnerWrapper,style:null===(ai=null==D?void 0:D.loadingCitations)||void 0===ai?void 0:ai.citationSpinnerWrapper},{children:[li,_i]}))}))}return n("span",t({},ci,{className:_.paragraph,style:null==T?void 0:T.p},{children:null==ci?void 0:ci.children}))},code:function(o){o.inline;var e=o.children,a=o.className;return o.node,i(o,["inline","children","className","node"]),/language-(\w+)/.exec(a||"")||(null==a?void 0:a.includes("language-"))?n("div",{children:n("code",t({className:_.blockCode},{children:e}))}):n("code",t({className:_.inlineCode,style:null==T?void 0:T.code},{children:e}))},learned:function(i){var o=i.children;return n(e,{children:n(h,t({title:o,placement:"top"},{children:n(f,{size:16,className:_.learnedIcon})}))})}}},[H,A,U,$]);return n("div",t({ref:z,className:"w-full"},{children:n(r,t({components:K,rehypePlugins:[s]},{children:F}))}))};export{L as AiReasonMarkdownWrapper,W as formatChatData};
|
|
2
2
|
//# sourceMappingURL=AiReasonMarkdownWrapper.js.map
|
package/dist/features/RequirementAI/components/citations/chat-citation/ChatCitationRenderer.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__rest as t,
|
|
1
|
+
import{__rest as t,__assign as n}from"tslib";import{jsx as i}from"react/jsx-runtime";import{ChatCitation as o,CitationRenderer as r}from"@e-llm-studio/citation";import e from"dayjs";import{stripHtmlAndMetadata as a}from"../../../utils/helpers.js";import c,{memo as l,useCallback as u,useRef as s,useMemo as m}from"react";var p=function(t){var n,i;return null!==(i=null!==(n=t.message)&&void 0!==n?n:t.content)&&void 0!==i?i:""},f=function(t){var n;return null!==(n=t.highlighted_text)&&void 0!==n?n:""},h=function(t,n){if(t.length!==n.length)return!1;for(var i=0;i<t.length;i+=1){var o=t[i],r=n[i];if(o.role!==r.role)return!1;if(p(o)!==p(r))return!1;if(f(o)!==f(r))return!1;if((o.timeStamp?String(o.timeStamp):"")!==(r.timeStamp?String(r.timeStamp):""))return!1}return!0},v=function(t){var n;return null==t?"":"string"==typeof t||"number"==typeof t?String(t):Array.isArray(t)?t.map(v).join(""):c.isValidElement(t)?v(null===(n=t.props)||void 0===n?void 0:n.children):""},d=l(function(c){var l,v,d=u(function(){var t;null===(t=c.onCitationClick)||void 0===t||t.call(c,c.isTable)},[c.onCitationClick,c.isTable]),C=c.chatCitationProps,g=null!=C?C:{},y=g.chatContainer,S=g.rootContainer,b=t(g,["chatContainer","rootContainer"]),k=s(null),x=s([]);k.current&&h(k.current,c.chatHistory)||(k.current=c.chatHistory,x.current=c.chatHistory.map(function(t){var i=p(t),o=f(t);return n(n({},t),{message:a(i),timeStamp:e(t.timeStamp),highlighted_text:a(o)})}));var T=x.current,w=m(function(){return n({relevanceScore:100},S)},[S]),H=m(function(){return n(n({summarizedTab:{chip:{show:!1,isActive:!1}},detailedTab:{chip:{isActive:!0}}},y),{chatData:T})},[y,T]),A=m(function(){var t,i;return{pillButton:n({fontSize:"14px",margin:"0px",background:"#ffffff",color:"#526eff",cursor:"pointer",verticalAlign:"middle",whiteSpace:"nowrap",display:"inline-flex",alignItems:"center",border:"none"},null===(t=c.customStyles)||void 0===t?void 0:t.pill),citationContent:n({width:"100%",background:"transparent",minHeight:"10px",height:"fit-content",color:"black"},null===(i=c.customStyles)||void 0===i?void 0:i.content)}},[c.customStyles]),I=m(function(){return i(o,n({rootContainer:w,chatContainer:H},b))},[w,H]);return i("span",n({onClickCapture:d},{children:i(r,{inLineCitation:!0,citationTitle:c.title,chevronUpComponent:null===(l=c.customIcon)||void 0===l?void 0:l.chevronUp,chevronDownComponent:null===(v=c.customIcon)||void 0===v?void 0:v.chevronDown,citationComponent:I,styles:A})}))},function(t,n){return t.isTable===n.isTable&&(t.onCitationClick===n.onCitationClick&&(t.customIcon===n.customIcon&&(t.customStyles===n.customStyles&&(t.chatCitationProps===n.chatCitationProps&&(!!h(t.chatHistory,n.chatHistory)&&v(t.title)===v(n.title))))))});export{d as default};
|
|
2
2
|
//# sourceMappingURL=ChatCitationRenderer.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e}from"tslib";import{jsx as n,jsxs as t}from"react/jsx-runtime";import{useMemo as
|
|
1
|
+
import{__assign as e}from"tslib";import{jsx as n,jsxs as t,Fragment as i}from"react/jsx-runtime";import{useMemo as o,useState as r,useRef as l,useCallback as a,useEffect as c}from"react";import s from"react-dom";import*as u from"monaco-editor";import d from"./ReadFileCitationContent.module.css.js";import h from"./icons/ExternalLinkIcon.js";import{X as m,Maximize2 as g}from"lucide-react";"undefined"!=typeof self&&(self.MonacoEnvironment=e(e({},self.MonacoEnvironment),{getWorker:function(){return{postMessage:function(){},terminate:function(){},addEventListener:function(){},removeEventListener:function(){},dispatchEvent:function(){return!0},onmessage:null,onerror:null,onmessageerror:null}}}));var f=!1,v=function(){if(!f&&"undefined"!=typeof document)try{var e=document.createElement("div");e.style.cssText="position:absolute;top:-9999px;left:-9999px;width:1px;height:1px;overflow:hidden;visibility:hidden;pointer-events:none;",document.body.appendChild(e),u.editor.create(e,{value:"",language:"plaintext",automaticLayout:!1,minimap:{enabled:!1},scrollbar:{vertical:"hidden",horizontal:"hidden"},overviewRulerLanes:0,lineNumbers:"off",glyphMargin:!1,folding:!1,lineDecorationsWidth:0,lineNumbersMinChars:0}).dispose(),document.body.removeChild(e),f=!0}catch(e){f=!0}};v(),"undefined"!=typeof window&&(window.addEventListener("error",function(e){var n=e.message||"";if(n.includes("Worker")||n.includes("Monaco"))return e.preventDefault(),e.stopImmediatePropagation(),!1},!0),window.addEventListener("unhandledrejection",function(e){var n,t=(null===(n=e.reason)||void 0===n?void 0:n.message)||String(e.reason||"");(t.includes("Worker")||t.includes("Monaco"))&&(e.preventDefault(),e.stopImmediatePropagation())},!0));var p={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)"},y={theme:"vs-dark",fontSize:13,fontFamily:"Consolas, 'Courier New', monospace",maxHeight:300,minHeight:80},b={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"},C=function(e){return b[e.toLowerCase()]||e},x=function(t){var i=t.code,o=t.language,r=t.theme,a=t.fontSize,s=t.fontFamily,h=t.height,m=t.blueHighlightRanges,g=t.yellowHighlightRanges,f=t.backgroundColor,p=t.editorWrapperStyle,y=l(null),b=l(null),x=l(!1);return c(function(){x.current=!1,v();var e=setTimeout(function(){var e,n=y.current;if(n&&!x.current&&!b.current)try{u.editor.setTheme(r);var t=u.editor.create(n,{value:i,language:C(o),readOnly:!0,domReadOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,fontSize:a,lineHeight:20,fontFamily:s,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});b.current=t;var l=[];m.forEach(function(e){var n=e[0],t=e[1];l.push({range:new u.Range(n,1,t,1),options:{isWholeLine:!0,className:d.highlightedLine,linesDecorationsClassName:d.highlightedLineDecoration}})}),g.forEach(function(e){var n=e[0],t=e[1];l.push({range:new u.Range(n,1,t,1),options:{isWholeLine:!0,className:d.yellowHighlightedLine,linesDecorationsClassName:d.yellowHighlightedLineDecoration}})}),l.length>0&&t.createDecorationsCollection(l);var c=null!==(e=g[0])&&void 0!==e?e:m[0];c&&requestAnimationFrame(function(){!x.current&&b.current&&t.revealLineInCenter(c[0])})}catch(e){}},50);return function(){if(x.current=!0,clearTimeout(e),b.current){try{b.current.dispose()}catch(e){}b.current=null}}},[]),c(function(){try{u.editor.setTheme(r)}catch(e){}},[r]),n("div",e({className:d.editorWrapper,style:e({height:"".concat(h,"px"),backgroundColor:f},p)},{children:n("div",{ref:y,style:{width:"100%",height:"100%"}})}))},N=function(u){var f=u.citation,v=u.customStyles,b=u.customColors,C=u.customIcons,N=u.editorConfig,w=u.fileCallback,k=o(function(){return e(e({},p),b)},[b]),L=o(function(){return e(e({},y),N)},[N]),M=r(!1),S=M[0],F=M[1],B=l(null),H=l(!1),O=f.customMetadata.content||"",W=f.customMetadata.highlighted_text,E=f.customMetadata.start_line,P=f.customMetadata.end_line,R=o(function(){if(!W)return{};try{var e=W.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),{}}},[W]),j=o(function(){for(var e,n=[],t=/```(\w+)?\s*<file_path>([\s\S]*?)<\/file_path>\s*<code>([\s\S]*?)<\/code>\s*```/g;null!==(e=t.exec(O));){var i=e[1]||"javascript",o=e[2].trim(),r=e[3].trim();o&&r&&n.push({filePath:o,code:r,language:i})}return n},[O]),T=a(function(e){return(R[e]||[]).map(function(e){var n=e.split("-").map(Number),t=n[0];return[t,n.length>1?n[1]:t]})},[R]),z=o(function(){for(var e=0;e<j.length;e++){if(T(j[e].filePath).length>0)return e}return-1},[j,T]),D=z>=0,I=a(function(e,n){return T(e).map(function(e){var t=e[0],i=e[1];return t>n?[0,0]:[t,Math.min(i,n)]}).filter(function(e){var n=e[0],t=e[1];return n>0&&t>=n})},[T]),_=a(function(e){if(null==E||null==P)return[];var n=Math.max(1,0===E?1:E),t=Math.min(P,e);return n>t?[]:[[n,t]]},[E,P]);c(function(){if(D&&!H.current&&j.length>0&&(null==w?void 0:w.autoOpenFirstHighlighted)&&(null==w?void 0:w.onOpenFile)){var e=j[z],n=I(e.filePath,e.code.split("\n").length);H.current=!0;var t=setTimeout(function(){w.onOpenFile({filePath:e.filePath,ranges:n.length>0?n:null})},300);return function(){return clearTimeout(t)}}},[D,z,j,I,w]),c(function(){H.current=!1},[O]),c(function(){if(!(z<0)){var e=setTimeout(function(){var e;null===(e=B.current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})},350);return function(){return clearTimeout(e)}}},[z,W]);var q=a(function(e,n){if(null==w?void 0:w.onOpenFile){var t=I(e,n);w.onOpenFile({filePath:e,ranges:t.length>0?t:null})}},[I,w]),G=a(function(){(null==w?void 0:w.onExpandClick)?w.onExpandClick({blocks:j,highlightMap:R}):F(!0)},[w,j,R]),A=!!(null==w?void 0:w.onOpenFile),J=(null==C?void 0:C.readFileCitationIcon)||n(h,{style:{width:"14px",height:"14px"}}),V=function(i){return j.map(function(o,r){var l,a,c=T(o.filePath),s=c.length>0,u=r===z,h=i?600:L.maxHeight,m=(l=20*o.code.split("\n").length+16+4,Math.min(Math.max(l,L.minHeight),h)),f=o.filePath.split("/").pop(),p=o.code.split("\n").length,y=I(o.filePath,p),b=_(p);return t("div",e({ref:!i&&u?B:void 0,"data-highlighted":s?"true":void 0,"data-first-highlighted":u?"true":void 0,className:d.blockContainer,style:e({border:"1px solid ".concat(k.border)},null==v?void 0:v.blockContainer)},{children:[t("div",e({className:d.header,style:e({backgroundColor:s?k.highlightBg:k.headerBg,borderBottom:"1px solid ".concat(k.border),color:s?k.highlightGutter:k.foreground},s?null==v?void 0:v.headerHighlighted:null==v?void 0:v.header)},{children:[t("div",e({className:d.headerLeft},{children:[n("span",e({className:d.fileName,title:o.filePath,style:null==v?void 0:v.fileName},{children:f})),A&&n("button",e({className:d.openFileButton,onClick:function(){return q(o.filePath,p)},title:"Open in editor","aria-label":"Open ".concat(f," in editor"),style:null==v?void 0:v.openFileButton},{children:J}))]})),t("div",e({className:d.headerRight},{children:[s&&n("span",e({className:d.lineRanges,style:null==v?void 0:v.lineRanges},{children:(a=c,a.map(function(e){var n=e[0],t=e[1];return n===t?"L".concat(n):"L".concat(n,"-").concat(t)}).join(", "))})),!i&&0===r&&n("button",e({className:d.expandButton,style:null==v?void 0:v.expandButton,onClick:G,title:"Expand","aria-label":"Expand code view"},{children:n(g,{size:13})}))]}))]})),n(x,{code:o.code,language:o.language,theme:L.theme,fontSize:L.fontSize,fontFamily:L.fontFamily,height:m,blueHighlightRanges:b,yellowHighlightRanges:y,backgroundColor:k.background,editorWrapperStyle:null==v?void 0:v.editorWrapper})]}),r)})};if(0===j.length)return n("div",e({className:d.emptyState,style:e({color:k.inactiveText},null==v?void 0:v.emptyState)},{children:"No code content available"}));var $=S?s.createPortal(n("div",e({className:d.modalOverlay,style:null==v?void 0:v.modalOverlay,onClick:function(e){e.target===e.currentTarget&&F(!1)}},{children:t("div",e({className:d.modalContent,style:null==v?void 0:v.modalContent},{children:[t("div",e({className:d.modalHeader,style:null==v?void 0:v.modalHeader},{children:[n("span",e({className:d.modalTitle,style:null==v?void 0:v.modalTitle},{children:1===j.length?j[0].filePath:"".concat(j.length," files")})),n("button",e({className:d.modalCloseButton,style:null==v?void 0:v.modalCloseButton,onClick:function(){return F(!1)},"aria-label":"Close expanded view"},{children:n(m,{size:16})}))]})),n("div",e({className:d.modalBody},{children:n("div",e({className:d.container,style:null==v?void 0:v.container},{children:V(!0)}))}))]}))})),document.body):null;return t(i,{children:[$,n("div",e({className:d.container,style:null==v?void 0:v.container},{children:V(!1)}))]})};export{N as default};
|
|
2
2
|
//# sourceMappingURL=ReadFileCitationContent.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var e={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"};!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
|
|
1
|
+
var e={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",yellowHighlightedLine:"ReadFileCitationContent-module_yellowHighlightedLine__bZ6XP",yellowHighlightedLineDecoration:"ReadFileCitationContent-module_yellowHighlightedLineDecoration__Ru91N",emptyState:"ReadFileCitationContent-module_emptyState__34kcg",loadingEditor:"ReadFileCitationContent-module_loadingEditor__aOHYT",headerRight:"ReadFileCitationContent-module_headerRight__Hetda",expandButton:"ReadFileCitationContent-module_expandButton__wjkgL",modalOverlay:"ReadFileCitationContent-module_modalOverlay__ZJSqk",modalContent:"ReadFileCitationContent-module_modalContent__PA-tB",modalHeader:"ReadFileCitationContent-module_modalHeader__9Jcjf",modalTitle:"ReadFileCitationContent-module_modalTitle__M60Jk",modalCloseButton:"ReadFileCitationContent-module_modalCloseButton__4bymQ",modalBody:"ReadFileCitationContent-module_modalBody__Oo7OO"};!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_yellowHighlightedLine__bZ6XP{background-color:#eab30833!important}.ReadFileCitationContent-module_yellowHighlightedLineDecoration__Ru91N{background-color:#eab308;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}.ReadFileCitationContent-module_headerRight__Hetda{align-items:center;display:flex;flex-shrink:0;gap:6px}.ReadFileCitationContent-module_expandButton__wjkgL{align-items:center;background:none;border:none;border-radius:4px;color:inherit;cursor:pointer;display:flex;flex-shrink:0;justify-content:center;opacity:.7;padding:2px;transition:opacity .15s ease,background-color .15s ease}.ReadFileCitationContent-module_expandButton__wjkgL:hover{background-color:#ffffff1a;opacity:1}.ReadFileCitationContent-module_modalOverlay__ZJSqk{align-items:center;background-color:#000000b3;box-sizing:border-box;display:flex;inset:0;justify-content:center;padding:24px;position:fixed;z-index:9999}.ReadFileCitationContent-module_modalContent__PA-tB{background:#1e1e1e;border:1px solid #3c3c3c;border-radius:6px;display:flex;flex-direction:column;max-height:90vh;max-width:900px;overflow:hidden;width:100%}.ReadFileCitationContent-module_modalHeader__9Jcjf{align-items:center;background:#252526;border-bottom:1px solid #3c3c3c;display:flex;flex-shrink:0;justify-content:space-between;padding:10px 14px}.ReadFileCitationContent-module_modalTitle__M60Jk{color:#ccc;font-family:monospace;font-size:13px;opacity:.85}.ReadFileCitationContent-module_modalCloseButton__4bymQ{align-items:center;background:none;border:none;border-radius:4px;color:#ccc;cursor:pointer;display:flex;justify-content:center;opacity:.7;padding:2px;transition:opacity .15s ease,background-color .15s ease}.ReadFileCitationContent-module_modalCloseButton__4bymQ:hover{background-color:#ffffff1a;opacity:1}.ReadFileCitationContent-module_modalBody__Oo7OO{flex:1;overflow-y:auto;padding:12px}"));const o=document.head||document.getElementsByTagName("head")[0]||document.documentElement;o&&o.appendChild(e)}();export{e as default};
|
|
2
2
|
//# sourceMappingURL=ReadFileCitationContent.module.css.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AiReasonMarkdownWrapper.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/ai-reasoning/AiReasonMarkdownWrapper.tsx"],"names":[],"mappings":"AAqCA,OAAO,EACL,yBAAyB,EAEzB,cAAc,EACd,oBAAoB,EACrB,MAAM,8BAA8B,CAAC;AAItC,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;
|
|
1
|
+
{"version":3,"file":"AiReasonMarkdownWrapper.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/ai-reasoning/AiReasonMarkdownWrapper.tsx"],"names":[],"mappings":"AAqCA,OAAO,EACL,yBAAyB,EAEzB,cAAc,EACd,oBAAoB,EACrB,MAAM,8BAA8B,CAAC;AAItC,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AAkDvE,eAAO,MAAM,cAAc,gBACZ,gBAAgB,EAAE,cACnB,MAAM,YACR,MAAM,KACf,gBAAgB,EAUlB,CAAC;AAEF,eAAO,MAAM,uBAAuB;;aAWzB,MAAM;;;;;6BAKS,IAAI;;6CAwT7B,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { IChatHistoryItem } from "../../../interfaces/citation.interface";
|
|
3
2
|
import { CitationStyleGroup } from "../../../types/aiReasoning.type";
|
|
3
|
+
import React from "react";
|
|
4
4
|
interface IProps {
|
|
5
5
|
title: string;
|
|
6
6
|
chatHistory: IChatHistoryItem[];
|
|
@@ -13,6 +13,6 @@ interface IProps {
|
|
|
13
13
|
customStyles?: CitationStyleGroup;
|
|
14
14
|
chatCitationProps?: any;
|
|
15
15
|
}
|
|
16
|
-
declare const
|
|
17
|
-
export default
|
|
16
|
+
declare const _default: React.MemoExoticComponent<(props: IProps) => import("react/jsx-runtime").JSX.Element>;
|
|
17
|
+
export default _default;
|
|
18
18
|
//# sourceMappingURL=ChatCitationRenderer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatCitationRenderer.d.ts","sourceRoot":"","sources":["../../../../../../../../src/features/RequirementAI/components/citations/chat-citation/ChatCitationRenderer.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ChatCitationRenderer.d.ts","sourceRoot":"","sources":["../../../../../../../../src/features/RequirementAI/components/citations/chat-citation/ChatCitationRenderer.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAC;AAE1E,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,KAA6C,MAAM,OAAO,CAAC;AAElE,UAAU,MAAM;IACd,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,gBAAgB,EAAE,CAAC;IAChC,OAAO,EAAE,OAAO,CAAC;IACjB,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IAC7C,UAAU,CAAC,EAAE;QACX,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;QAC5B,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;KAC/B,CAAC;IACF,YAAY,CAAC,EAAE,kBAAkB,CAAC;IAClC,iBAAiB,CAAC,EAAE,GAAG,CAAC;CACzB;;AA4ID,wBASG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReadFileCitationContent.d.ts","sourceRoot":"","sources":["../../../../../../../../src/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"ReadFileCitationContent.d.ts","sourceRoot":"","sources":["../../../../../../../../src/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAIjF,OAAO,EACL,sBAAsB,EACtB,4BAA4B,EAC5B,4BAA4B,EAC7B,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,0BAA0B,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AA+F7F,UAAU,4BAA4B;IACpC,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,YAAY,CAAC,EAAE,0BAA0B,CAAC;IAC1C,YAAY,CAAC,EAAE,sBAAsB,CAAC;IACtC,WAAW,CAAC,EAAE,cAAc,CAAC;IAC7B,YAAY,CAAC,EAAE,4BAA4B,CAAC;IAC5C,YAAY,CAAC,EAAE,4BAA4B,CAAC;CAC7C;AAqOD,QAAA,MAAM,uBAAuB,EAAE,KAAK,CAAC,EAAE,CAAC,4BAA4B,CAyVnE,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
|
package/dist/types/src/features/RequirementAI/components/citations/readfile-citation/types.d.ts
CHANGED
|
@@ -37,6 +37,23 @@ export interface ReadFileCitationFileCallback {
|
|
|
37
37
|
* Default: false
|
|
38
38
|
*/
|
|
39
39
|
autoOpenFirstHighlighted?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Override the expand button behaviour.
|
|
42
|
+
* When provided, this is called instead of opening the built-in modal.
|
|
43
|
+
* Receives the parsed code blocks and highlight map so the consumer can
|
|
44
|
+
* render their own expanded view (e.g. a side panel, a drawer, etc.).
|
|
45
|
+
*
|
|
46
|
+
* @param blocks - all parsed code blocks in the citation
|
|
47
|
+
* @param highlightMap - map of filePath → line-range strings (e.g. { "src/foo.ts": ["10-25"] })
|
|
48
|
+
*/
|
|
49
|
+
onExpandClick?: (params: {
|
|
50
|
+
blocks: Array<{
|
|
51
|
+
filePath: string;
|
|
52
|
+
code: string;
|
|
53
|
+
language: string;
|
|
54
|
+
}>;
|
|
55
|
+
highlightMap: Record<string, string[]>;
|
|
56
|
+
}) => void;
|
|
40
57
|
}
|
|
41
58
|
export interface ReadFileCitationRendererProps {
|
|
42
59
|
title: string;
|
package/dist/types/src/features/RequirementAI/components/citations/readfile-citation/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../src/features/RequirementAI/components/citations/readfile-citation/types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAC7F,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAEhE,MAAM,WAAW,sBAAsB;IACrC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,4BAA4B;IAC3C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAID;;;GAGG;AACH,MAAM,WAAW,4BAA4B;IAC3C;;;;;OAKG;IACH,UAAU,CAAC,EAAE,CAAC,MAAM,EAAE;QACpB,QAAQ,EAAE,MAAM,CAAC;QACjB,MAAM,EAAE,KAAK,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,GAAG,IAAI,CAAC;KACxC,KAAK,IAAI,CAAC;IAEX;;;OAGG;IACH,wBAAwB,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../src/features/RequirementAI/components/citations/readfile-citation/types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B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AW,6BAA6B;IAC5C,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,YAAY,CAAC,EAAE,0BAA0B,CAAC;IAC1C,YAAY,CAAC,EAAE,sBAAsB,CAAC;IACtC,WAAW,CAAC,EAAE,cAAc,CAAC;IAC7B,YAAY,CAAC,EAAE,4BAA4B,CAAC;IAC5C;;;;OAIG;IACH,YAAY,CAAC,EAAE,4BAA4B,CAAC;CAC7C"}
|
|
@@ -201,6 +201,12 @@ export interface ReadFileCitationStyleGroup extends CitationStyleGroup {
|
|
|
201
201
|
editorWrapper?: CSSProperties;
|
|
202
202
|
emptyState?: CSSProperties;
|
|
203
203
|
openFileButton?: CSSProperties;
|
|
204
|
+
expandButton?: CSSProperties;
|
|
205
|
+
modalOverlay?: CSSProperties;
|
|
206
|
+
modalContent?: CSSProperties;
|
|
207
|
+
modalHeader?: CSSProperties;
|
|
208
|
+
modalTitle?: CSSProperties;
|
|
209
|
+
modalCloseButton?: CSSProperties;
|
|
204
210
|
}
|
|
205
211
|
export interface CitationLoadingStyles {
|
|
206
212
|
citationSpinnerWrapper?: React.CSSProperties;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aiReasoning.type.d.ts","sourceRoot":"","sources":["../../../../../../src/features/RequirementAI/types/aiReasoning.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC7C,OAAO,EACL,uBAAuB,EACvB,cAAc,EACf,MAAM,+CAA+C,CAAC;AAEvD,MAAM,MAAM,YAAY,GAAG;IACzB,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;IACZ,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,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AmB,CAAC,EAAE,OAAO,CAAC;IAC9B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,0BAA0B,CAAC,EAAE,OAAO,CAAC;CACtC,CAAA"}
|
|
1
|
+
{"version":3,"file":"aiReasoning.type.d.ts","sourceRoot":"","sources":["../../../../../../src/features/RequirementAI/types/aiReasoning.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC7C,OAAO,EACL,uBAAuB,EACvB,cAAc,EACf,MAAM,+CAA+C,CAAC;AAEvD,MAAM,MAAM,YAAY,GAAG;IACzB,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;IACZ,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAC9B,UAAU,GACV,SAAS,GACT,KAAK,GACL,OAAO,GACP,MAAM,GACN,YAAY,GACZ,YAAY,GACZ,KAAK,GACL,MAAM,CAAC;AAEX,MAAM,WAAW,oBAAoB;IACnC,EAAE,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACzB,EAAE,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACzB,EAAE,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACzB,CAAC,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACxB,CAAC,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACxB,IAAI,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC3B,EAAE,CAAC,EAAE,KAAK,CAAC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,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACnC,mBAAmB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACtC,cAAc,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACjC,kBAAkB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACrC,eAAe,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAClC,eAAe,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAClC,cAAc,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACjC,eAAe,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAClC,oBAAoB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvC,mBAAmB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACtC,gBAAgB,CAAC,EAAE;QACjB,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;QAC5B,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;KAC/B,CAAC;CACH;AAED,MAAM,WAAW,SAAS;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,MAAM,0BAA0B,GAAG;IACvC,4BAA4B,CAAC,EAAE,OAAO,CAAC;IACvC,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,0BAA0B,CAAC,EAAE,OAAO,CAAC;CACtC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"citation.type.d.ts","sourceRoot":"","sources":["../../../../../../src/features/RequirementAI/types/citation.type.ts"],"names":[],"mappings":"AAAA,KAAK,cAAc,GAAG;IACpB,eAAe,EAAE,MAAM,CAAC;IACxB,KAAK,CAAC,EAAE,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B,gBAAgB,CAAC;AAErB,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;CAClB"}
|
|
1
|
+
{"version":3,"file":"citation.type.d.ts","sourceRoot":"","sources":["../../../../../../src/features/RequirementAI/types/citation.type.ts"],"names":[],"mappings":"AAAA,KAAK,cAAc,GAAG;IACpB,eAAe,EAAE,MAAM,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,cAAc,GAAG;IACzC,cAAc,EAAE;QACd,IAAI,EAAE,MAAM,CAAC;QACb,WAAW,EAAE,MAAM,CAAC;QACpB,eAAe,CAAC,EAAE,MAAM,CAAC;QACzB,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,IAAI,EAAE,cAAc,CAAC;KACtB,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,cAAc,GAAG;IACnD,cAAc,EAAE;QACd,IAAI,EAAE,MAAM,CAAC;QACb,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,IAAI,EAAE,gBAAgB,CAAC;QACvB,eAAe,CAAC,EAAE,MAAM,CAAC;KAC1B,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,cAAc,GAAG;IACzC,cAAc,EAAE;QACd,IAAI,EAAE,cAAc,CAAA;QACpB,YAAY,EAAE,MAAM,EAAE,CAAC;QACvB,mBAAmB,EAAE,MAAM,EAAE,CAAC;QAC9B,UAAU,EAAE,MAAM,EAAE,CAAA;KACrB,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,cAAc,GAAG;IAC1C,cAAc,EAAE;QACd,SAAS,EAAE,MAAM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