@e-llm-studio/citation 0.0.182-0 → 0.0.184-0

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.
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),s=require("react"),i=require("lucide-react"),t=require("./CognitiveNonWebSearchReasoning.module.css.js"),a=function(s){return s.split(/(\*\*.*?\*\*|__.*?__)/g).map(function(s,i){return s.startsWith("**")&&s.endsWith("**")||s.startsWith("__")&&s.endsWith("__")?n.jsx("strong",e.__assign({className:t.default.boldText},{children:s.slice(2,-2)}),i):s})};exports.default=function(l){var r=l.item,o=l.headerTitle;l.index;var d=l.iconsConfig,c=l.DocumentTitle,u=l.previewCallback,h=l.bodyHeight,g=l.disableMaximize,f=void 0!==g&&g,x=l.splitterCustomStyle,_=void 0!==x&&x,m=r.dataSource,p=r.confidence_score,v=r.trainingDataTitle,j=null==d?void 0:d.ChevronDownIcon,b=null==d?void 0:d.ChevronUpIcon,N=null==d?void 0:d.MaximizeIcon,C=null==d?void 0:d.CloseIcon,y=s.useMemo(function(){var n=(m?m.replace(/\\n/g,"\n").replace(/\n+/g,"\n"):"").split(/(<highlight>[\s\S]*?<\/highlight>)/g),s=0,i=n.map(function(e){var n=e.startsWith("<highlight>"),i={text:n?e.replace(/<\/?highlight>/g,""):e,isHighlight:n,highlightIndex:n?s:-1};return n&&s++,i}),t=i.filter(function(e){return e.isHighlight}).length,a=[],l=[];return i.forEach(function(n){var s=n.text,i=n.isHighlight,t=n.highlightIndex;s.split("\n").forEach(function(n,s){s>0&&((l.length>0||a.length>0)&&a.push(e.__spreadArray([],l,!0)),l=[]),n&&l.push({text:n,isHighlight:i,highlightIndex:t})})}),l.length>0&&a.push(e.__spreadArray([],l,!0)),{processedLines:a.map(function(e){var n=e.map(function(e){return e.text}).join(""),s=n.match(/^(\s*)(-|\*|\d+\.)\s+(.*)$/);return{segments:e,isListItem:!!s,isHeader:!!n.match(/^(Title|Description|Training-basis):\s*(.*)$/i),indent:(null==s?void 0:s[1])||"",content:(null==s?void 0:s[3])||n}}),totalHighlights:t}},[m]),I=y.processedLines,k=y.totalHighlights,w=s.useState(0),H=w[0],T=w[1],L=s.useRef(null),z=s.useRef(null),R=s.useRef(null),S=s.useRef([]),D=s.useRef([]);s.useEffect(function(){S.current=S.current.slice(0,k),D.current=D.current.slice(0,k)},[k]),s.useEffect(function(){if(k>0){T(0);var e=setTimeout(function(){var e;null===(e=S.current[0])||void 0===e||e.scrollIntoView({behavior:"smooth",block:"center"})},50);return function(){return clearTimeout(e)}}},[k]);var B=function(e,n){setTimeout(function(){var s=n?D.current[e]:S.current[e];null==s||s.scrollIntoView({behavior:"smooth",block:"center"})},50)},F=function(e){if(void 0===e&&(e=!1),k){var n=H>0?H-1:k-1;T(n),B(n,e)}},A=function(e){if(void 0===e&&(e=!1),k){var n=H<k-1?H+1:0;T(n),B(n,e)}},E=function(s){var i=s?D:S,l=0;return I.map(function(s,r){s.isHeader&&(l=0),s.isListItem&&(l+=1);var o=function(){return s.segments.map(function(l,r){var o=l.isHighlight&&l.highlightIndex===H,d=l.text;return s.isListItem&&0===r&&(d=l.text.replace(/^(\s*)(-|\*|\d+\.)\s+/,"")),l.isHighlight?n.jsx("span",e.__assign({ref:function(e){e&&(i.current[l.highlightIndex]=e)},className:"".concat(t.default.highlight).concat(o?" ".concat(t.default.highlightActive):"")},{children:a(d)}),r):n.jsx("span",{children:a(d)},r)})};return s.isHeader?n.jsx("span",e.__assign({className:t.default.headerLine},{children:o()}),r):s.isListItem?n.jsxs("span",e.__assign({className:t.default.listItemLine,style:{paddingLeft:s.indent?"1rem":"0"}},{children:[n.jsxs("span",e.__assign({className:t.default.listCounter},{children:[l,"."]})),n.jsx("span",{children:o()})]}),r):n.jsx("span",e.__assign({className:t.default.blockLine},{children:o()}),r)})},W=function(s){return k>1?n.jsxs("div",e.__assign({className:s?t.default.modalNavContainer:t.default.navigationContainer},{children:[b&&n.jsx("button",e.__assign({onClick:function(){return F(s)},className:s?t.default.modalNavButton:t.default.navButton},{children:n.jsx(b,{className:t.default.navIcon})})),n.jsxs("span",e.__assign({className:t.default.navCounter},{children:[H+1,"/",k]})),j&&n.jsx("button",e.__assign({onClick:function(){return A(s)},className:s?t.default.modalNavButton:t.default.navButton},{children:n.jsx(j,{className:t.default.navIcon})}))]})):null},q=null!=p?n.jsxs("span",e.__assign({className:t.default.confidenceBadge},{children:[n.jsx("span",e.__assign({className:t.default.confidenceStar},{children:"✦"})),n.jsxs("span",e.__assign({className:t.default.confidenceScore},{children:[p,"%"]}))]})):null,M=_?{backgroundColor:"white",padding:"1rem 1.5rem"}:void 0,U=n.jsxs(n.Fragment,{children:[v&&n.jsx("div",e.__assign({className:t.default.footer,style:M},{children:n.jsx("span",e.__assign({className:t.default.trainingTitle},{children:v}))})),c&&n.jsx("div",e.__assign({className:t.default.modalFooterSource,style:M},{children:n.jsxs("button",e.__assign({type:"button",onClick:function(){return null==u?void 0:u()},className:t.default.trainingTitleLink},{children:[c,n.jsx(i.ExternalLink,{size:16,color:"#2563eb"})]}))}))]});return n.jsxs(n.Fragment,{children:[n.jsxs("div",e.__assign({className:t.default.expandedContainer,style:e.__assign(e.__assign({},h?{height:"".concat(h),display:"flex",flexDirection:"column"}:void 0),_?{border:"none",borderRadius:0,marginLeft:"0px",marginTop:"0px"}:void 0)},{children:[n.jsxs("div",e.__assign({className:t.default.expandedHeader,style:_?{backgroundColor:"white",padding:"0.5rem 1.5rem"}:void 0},{children:[n.jsx("span",e.__assign({className:t.default.headerTitle},{children:o})),n.jsxs("div",e.__assign({className:t.default.headerActions},{children:[_?k>1&&n.jsxs(n.Fragment,{children:[n.jsxs("span",e.__assign({style:{fontSize:"12px",color:"#888"}},{children:[H+1," / ",k]})),n.jsx("button",e.__assign({onClick:function(){return F(!0)},disabled:H<=0,style:{padding:"2px 4px",cursor:H<=0?"not-allowed":"pointer",opacity:H<=0?.4:1,border:"1px solid #ddd",borderRadius:"3px",background:"white",display:"flex",alignItems:"center"}},{children:n.jsx(i.ChevronUp,{size:14,color:"#64748b"})})),n.jsx("button",e.__assign({onClick:function(){return A(!0)},disabled:H>=k-1,style:{padding:"2px 4px",cursor:H>=k-1?"not-allowed":"pointer",opacity:H>=k-1?.4:1,border:"1px solid #ddd",borderRadius:"3px",background:"white",display:"flex",alignItems:"center"}},{children:n.jsx(i.ChevronDown,{size:14,color:"#64748b"})}))]}):W(!0),q,!f&&N&&n.jsx("button",e.__assign({onClick:function(){var e;return null===(e=R.current)||void 0===e?void 0:e.showModal()},className:t.default.maximizeButton,title:"View fullscreen"},{children:n.jsx(N,{className:t.default.maximizeIcon})}))]}))]})),n.jsx("div",e.__assign({ref:L,className:t.default.contentArea,style:e.__assign(e.__assign({},h?{flex:1,maxHeight:"none",overflowY:"auto",minHeight:0}:void 0),_?{padding:"1rem 1.5rem"}:void 0)},{children:n.jsx("div",e.__assign({className:t.default.contentInner},{children:E(!1)}))})),U]})),!f&&n.jsx("dialog",e.__assign({ref:R,className:t.default.modalDialog,onClick:function(e){var n;e.target===R.current&&(null===(n=R.current)||void 0===n||n.close())}},{children:n.jsxs("div",e.__assign({className:t.default.modalContainer},{children:[n.jsxs("div",e.__assign({className:t.default.modalHeader},{children:[n.jsx("span",e.__assign({className:t.default.modalHeaderTitle},{children:o})),n.jsxs("div",e.__assign({className:t.default.modalHeaderActions},{children:[_?k>1&&n.jsxs(n.Fragment,{children:[n.jsxs("span",e.__assign({style:{fontSize:"12px",color:"#888"}},{children:[H+1," / ",k]})),"just chill",n.jsx("button",e.__assign({onClick:function(){return F(!0)},disabled:H<=0,style:{padding:"2px 4px",cursor:H<=0?"not-allowed":"pointer",opacity:H<=0?.4:1,border:"1px solid #ddd",borderRadius:"3px",background:"white",display:"flex",alignItems:"center"}},{children:n.jsx(i.ChevronUp,{size:14,color:"#64748b"})})),n.jsx("button",e.__assign({onClick:function(){return A(!0)},disabled:H>=k-1,style:{padding:"2px 4px",cursor:H>=k-1?"not-allowed":"pointer",opacity:H>=k-1?.4:1,border:"1px solid #ddd",borderRadius:"3px",background:"white",display:"flex",alignItems:"center"}},{children:n.jsx(i.ChevronDown,{size:14,color:"#64748b"})}))]}):W(!0),q,C&&n.jsx("button",e.__assign({onClick:function(){var e;return null===(e=R.current)||void 0===e?void 0:e.close()},className:t.default.closeButton,title:"Close"},{children:n.jsx(C,{className:t.default.closeIcon})}))]}))]})),n.jsx("div",e.__assign({ref:z,className:t.default.modalContent},{children:n.jsx("div",e.__assign({className:t.default.modalContentInner},{children:E(!0)}))})),v&&n.jsx("div",e.__assign({className:t.default.modalFooter},{children:n.jsx("span",e.__assign({className:t.default.trainingTitle},{children:v}))})),c&&n.jsx("div",e.__assign({className:t.default.modalFooterSource},{children:n.jsxs("button",e.__assign({type:"button",onClick:function(){var e;null==u||u(),null===(e=R.current)||void 0===e||e.close()},className:t.default.trainingTitleLink},{children:[c,n.jsx(i.ExternalLink,{size:16,color:"#2563eb"})]}))}))]}))}))]})};
2
+ //# sourceMappingURL=CognitiveInternalgptCoreComponent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CognitiveInternalgptCoreComponent.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),s=require("react"),a=require("./CognitiveNonWebSearchReasoning.module.css.js"),t=require("lucide-react");exports.default=function(i){var l=i.item,c=i.index,r=i.iconsConfig,d=i.headerTitle,o=void 0===d?"GPT - Gemini 2.5 Flash":d,u=i.previewCallback,h=i.DocumentTitle,f=null==r?void 0:r.ChevronDownIcon,g=null==r?void 0:r.ChevronUpIcon,_=null==r?void 0:r.MaximizeIcon,m=null==r?void 0:r.CloseIcon,x=s.useState(!1),v=x[0],j=x[1],p=s.useState(0),N=p[0],I=p[1],C=s.useRef(null),b=s.useRef(null),T=s.useRef(null),k=s.useRef([]),H=s.useRef([]),L=s.useMemo(function(){return l.dataSource?l.dataSource.replace(/\\n/g,"\n").replace(/\n+/g,"\n"):""},[l.dataSource]),S=s.useMemo(function(){var e=L.split(/(<highlight>[\s\S]*?<\/highlight>)/g)||[],n=e.filter(function(e){return e.startsWith("<highlight>")}).length,s=0;return{parts:e.map(function(e,n){var a=e.startsWith("<highlight>"),t={text:a?e.replace(/<\/?highlight>/g,""):e,isHighlight:a,highlightIndex:a?s:-1,idx:n};return a&&s++,t}),totalHighlights:n}},[L]),B=S.parts,y=S.totalHighlights,D=function(e,n){void 0===n&&(n=!1);var s=n?H.current[e]:k.current[e],a=n?b.current:C.current;s&&a&&s.scrollIntoView({behavior:"smooth",block:"center"})},R=function(e){if(void 0===e&&(e=!1),y){var n=N>0?N-1:y-1;I(n),setTimeout(function(){return D(n,e)},50)}},W=function(e){if(void 0===e&&(e=!1),y){var n=N<y-1?N+1:0;I(n),setTimeout(function(){return D(n,e)},50)}};s.useEffect(function(){k.current=k.current.slice(0,y),H.current=H.current.slice(0,y)},[y]),s.useEffect(function(){var e;return v&&y>0&&(I(0),e=setTimeout(function(){return D(0)},50)),function(){e&&clearTimeout(e)}},[v,y]);var w=function(s){return s.split(/(\*\*.*?\*\*|__.*?__)/g).map(function(s,t){return s.startsWith("**")&&s.endsWith("**")||s.startsWith("__")&&s.endsWith("__")?n.jsx("strong",e.__assign({className:a.default.boldText},{children:s.slice(2,-2)}),t):s})},A=s.useMemo(function(){var n=[],s=[];return B.forEach(function(a){var t=a.text,i=a.isHighlight,l=a.highlightIndex;t.split("\n").forEach(function(a,t){t>0&&((s.length>0||n.length>0)&&n.push({segments:e.__spreadArray([],s,!0),isListItem:!1,isHeader:!1,indent:"",content:""}),s=[]),a&&s.push({text:a,isHighlight:i,highlightIndex:l})})}),s.length>0&&n.push({segments:e.__spreadArray([],s,!0),isListItem:!1,isHeader:!1,indent:"",content:""}),n.map(function(n){var s=n.segments.map(function(e){return e.text}).join(""),a=s.match(/^(\s*)(-|\*|\d+\.)\s+(.*)$/),t=s.match(/^(Title|Description|Training-basis):\s*(.*)$/i);return e.__assign(e.__assign({},n),{isListItem:!!a,isHeader:!!t,indent:(null==a?void 0:a[1])||"",content:(null==a?void 0:a[3])||s})})},[B]),E=function(s){void 0===s&&(s=!1);var t=0;return A.map(function(i,l){i.isHeader&&(t=0),i.isListItem&&(t+=1);var c=function(){return i.segments.map(function(t,l){var c=t.isHighlight&&t.highlightIndex===N,r=t.text;return i.isListItem&&0===l&&(r=t.text.replace(/^(\s*)(-|\*|\d+\.)\s+/,"")),t.isHighlight?n.jsx("span",e.__assign({ref:function(e){e&&(s?H.current[t.highlightIndex]=e:k.current[t.highlightIndex]=e)},className:"".concat(a.default.highlight).concat(c?" ".concat(a.default.highlightActive):"")},{children:w(r)}),l):n.jsx("span",{children:w(r)},l)})};return i.isHeader?n.jsx("span",e.__assign({className:a.default.headerLine},{children:c()}),l):i.isListItem?n.jsxs("span",e.__assign({className:a.default.listItemLine,style:{paddingLeft:i.indent?"1rem":"0"}},{children:[n.jsxs("span",e.__assign({className:a.default.listCounter},{children:[t,"."]})),n.jsx("span",{children:c()})]}),l):n.jsx("span",e.__assign({className:a.default.blockLine},{children:c()}),l)})};return n.jsxs("div",e.__assign({className:a.default.container},{children:[n.jsxs("div",e.__assign({className:a.default.itemRow},{children:["number"==typeof c&&n.jsxs("span",e.__assign({className:a.default.indexNumber},{children:[c+1,"."]})),n.jsxs("div",e.__assign({className:a.default.textContent},{children:[n.jsx("span",{children:null==l?void 0:l.text}),(null==l?void 0:l.paraphrase)&&n.jsxs("button",e.__assign({type:"button",onClick:function(){return j(!v)},className:a.default.paraphraseButton},{children:[n.jsxs("span",e.__assign({className:a.default.paraphraseText},{children:[n.jsx("span",e.__assign({className:a.default.paraphraseStar},{children:"✦"})),l.paraphrase]})),f&&n.jsx(f,{className:"".concat(a.default.chevronIcon).concat(v?" ".concat(a.default.chevronIconRotated):"")})]}))]}))]})),v&&n.jsxs("div",e.__assign({className:a.default.expandedContainer},{children:[n.jsxs("div",e.__assign({className:a.default.expandedHeader},{children:[n.jsx("span",e.__assign({className:a.default.headerTitle},{children:o})),n.jsxs("div",e.__assign({className:a.default.headerActions},{children:[y>1&&n.jsxs("div",e.__assign({className:a.default.navigationContainer},{children:[g&&n.jsx("button",e.__assign({onClick:function(){return R(!1)},className:a.default.navButton},{children:n.jsx(g,{className:a.default.navIcon})})),n.jsxs("span",e.__assign({className:a.default.navCounter},{children:[N+1,"/",y]})),f&&n.jsx("button",e.__assign({onClick:function(){return W(!1)},className:a.default.navButton},{children:n.jsx(f,{className:a.default.navIcon})}))]})),null!=(null==l?void 0:l.confidence_score)&&n.jsxs("span",e.__assign({className:a.default.confidenceBadge},{children:[n.jsx("span",e.__assign({className:a.default.confidenceStar},{children:"✦"})),n.jsxs("span",e.__assign({className:a.default.confidenceScore},{children:[null==l?void 0:l.confidence_score,"%"]}))]})),_&&n.jsx("button",e.__assign({onClick:function(){var e;null===(e=T.current)||void 0===e||e.showModal()},className:a.default.maximizeButton,title:"View fullscreen"},{children:n.jsx(_,{className:a.default.maximizeIcon})}))]}))]})),n.jsx("div",e.__assign({ref:C,className:a.default.contentArea},{children:n.jsx("div",e.__assign({className:a.default.contentInner},{children:E(!1)}))})),l.trainingDataTitle&&n.jsx("div",e.__assign({className:a.default.footer},{children:n.jsx("span",e.__assign({className:a.default.trainingTitle},{children:l.trainingDataTitle}))})),h&&n.jsx("div",e.__assign({className:a.default.modalFooterSource},{children:n.jsxs("button",e.__assign({type:"button",onClick:function(){null==u||u()},className:a.default.trainingTitleLink},{children:[h,n.jsx(t.ExternalLink,{size:16,color:"#2563eb"})]}))}))]})),n.jsx("dialog",e.__assign({ref:T,className:a.default.modalDialog,onClick:function(e){var n;e.target===T.current&&(null===(n=T.current)||void 0===n||n.close())}},{children:n.jsxs("div",e.__assign({className:a.default.modalContainer},{children:[n.jsxs("div",e.__assign({className:a.default.modalHeader},{children:[n.jsx("span",e.__assign({className:a.default.modalHeaderTitle},{children:o})),n.jsxs("div",e.__assign({className:a.default.modalHeaderActions},{children:[y>1&&n.jsxs("div",e.__assign({className:a.default.modalNavContainer},{children:[g&&n.jsx("button",e.__assign({onClick:function(){return R(!0)},className:a.default.modalNavButton},{children:n.jsx(g,{className:a.default.navIcon})})),n.jsxs("span",e.__assign({className:a.default.navCounter},{children:[N+1,"/",y]})),f&&n.jsx("button",e.__assign({onClick:function(){return W(!0)},className:a.default.modalNavButton},{children:n.jsx(f,{className:a.default.navIcon})}))]})),null!=(null==l?void 0:l.confidence_score)&&n.jsxs("span",e.__assign({className:a.default.confidenceBadge},{children:[n.jsx("span",e.__assign({className:a.default.confidenceStar},{children:"✦"})),n.jsxs("span",e.__assign({className:a.default.confidenceScore},{children:[null==l?void 0:l.confidence_score,"%"]}))]})),m&&n.jsx("button",e.__assign({onClick:function(){var e;null===(e=T.current)||void 0===e||e.close()},className:a.default.closeButton,title:"Close"},{children:n.jsx(m,{className:a.default.closeIcon})}))]}))]})),n.jsx("div",e.__assign({ref:b,className:a.default.modalContent},{children:n.jsx("div",e.__assign({className:a.default.modalContentInner},{children:E(!0)}))})),l.trainingDataTitle&&n.jsx("div",e.__assign({className:a.default.modalFooter},{children:n.jsx("span",e.__assign({className:a.default.trainingTitle},{children:l.trainingDataTitle}))})),h&&n.jsx("div",e.__assign({className:a.default.modalFooterSource},{children:n.jsxs("button",e.__assign({type:"button",onClick:function(){var e;null==u||u(),null===(e=T.current)||void 0===e||e.close()},className:a.default.trainingTitleLink},{children:[h,n.jsx(t.ExternalLink,{size:16,color:"#2563eb"})]}))}))]}))}))]}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),a=require("react/jsx-runtime"),s=require("react"),n=require("./CognitiveNonWebSearchReasoning.module.css.js"),t=require("./CognitiveInternalgptCoreComponent.js");exports.default=function(i){var r=i.item,l=i.index,c=i.iconsConfig,o=i.headerTitle,u=void 0===o?"GPT - Gemini 2.5 Flash":o,d=i.previewCallback,p=i.DocumentTitle,h=null==c?void 0:c.ChevronDownIcon,m=s.useState(!1),x=m[0],f=m[1];return a.jsxs("div",e.__assign({className:n.default.container},{children:[a.jsxs("div",e.__assign({className:n.default.itemRow},{children:["number"==typeof l&&a.jsxs("span",e.__assign({className:n.default.indexNumber},{children:[l+1,"."]})),a.jsxs("div",e.__assign({className:n.default.textContent},{children:[a.jsx("span",{children:null==r?void 0:r.text}),(null==r?void 0:r.paraphrase)&&a.jsxs("button",e.__assign({type:"button",onClick:function(){return f(!x)},className:n.default.paraphraseButton},{children:[a.jsxs("span",e.__assign({className:n.default.paraphraseText},{children:[a.jsx("span",e.__assign({className:n.default.paraphraseStar},{children:"✦"})),r.paraphrase]})),h&&a.jsx(h,{className:"".concat(n.default.chevronIcon).concat(x?" ".concat(n.default.chevronIconRotated):"")})]}))]}))]})),x&&a.jsx(t.default,{item:r,headerTitle:u,iconsConfig:c,DocumentTitle:p,previewCallback:d})]}))};
2
2
  //# sourceMappingURL=CognitiveInternalgptReasoningComponent.js.map
@@ -0,0 +1,2 @@
1
+ import{__spreadArray as e,__assign as n}from"tslib";import{jsxs as i,jsx as t,Fragment as l}from"react/jsx-runtime";import{useMemo as r,useState as o,useRef as a,useEffect as c}from"react";import{ExternalLink as s,ChevronUp as d,ChevronDown as u}from"lucide-react";import h from"./CognitiveNonWebSearchReasoning.module.css.js";var m=function(e){return e.split(/(\*\*.*?\*\*|__.*?__)/g).map(function(e,i){return e.startsWith("**")&&e.endsWith("**")||e.startsWith("__")&&e.endsWith("__")?t("strong",n({className:h.boldText},{children:e.slice(2,-2)}),i):e})},p=function(p){var g=p.item,v=p.headerTitle;p.index;var f=p.iconsConfig,b=p.DocumentTitle,x=p.previewCallback,N=p.bodyHeight,C=p.disableMaximize,I=void 0!==C&&C,y=p.splitterCustomStyle,k=void 0!==y&&y,H=g.dataSource,w=g.confidence_score,T=g.trainingDataTitle,L=null==f?void 0:f.ChevronDownIcon,z=null==f?void 0:f.ChevronUpIcon,S=null==f?void 0:f.MaximizeIcon,_=null==f?void 0:f.CloseIcon,B=r(function(){var n=(H?H.replace(/\\n/g,"\n").replace(/\n+/g,"\n"):"").split(/(<highlight>[\s\S]*?<\/highlight>)/g),i=0,t=n.map(function(e){var n=e.startsWith("<highlight>"),t={text:n?e.replace(/<\/?highlight>/g,""):e,isHighlight:n,highlightIndex:n?i:-1};return n&&i++,t}),l=t.filter(function(e){return e.isHighlight}).length,r=[],o=[];return t.forEach(function(n){var i=n.text,t=n.isHighlight,l=n.highlightIndex;i.split("\n").forEach(function(n,i){i>0&&((o.length>0||r.length>0)&&r.push(e([],o,!0)),o=[]),n&&o.push({text:n,isHighlight:t,highlightIndex:l})})}),o.length>0&&r.push(e([],o,!0)),{processedLines:r.map(function(e){var n=e.map(function(e){return e.text}).join(""),i=n.match(/^(\s*)(-|\*|\d+\.)\s+(.*)$/);return{segments:e,isListItem:!!i,isHeader:!!n.match(/^(Title|Description|Training-basis):\s*(.*)$/i),indent:(null==i?void 0:i[1])||"",content:(null==i?void 0:i[3])||n}}),totalHighlights:l}},[H]),D=B.processedLines,R=B.totalHighlights,W=o(0),j=W[0],A=W[1],F=a(null),M=a(null),V=a(null),E=a([]),$=a([]);c(function(){E.current=E.current.slice(0,R),$.current=$.current.slice(0,R)},[R]),c(function(){if(R>0){A(0);var e=setTimeout(function(){var e;null===(e=E.current[0])||void 0===e||e.scrollIntoView({behavior:"smooth",block:"center"})},50);return function(){return clearTimeout(e)}}},[R]);var U=function(e,n){setTimeout(function(){var i=n?$.current[e]:E.current[e];null==i||i.scrollIntoView({behavior:"smooth",block:"center"})},50)},Y=function(e){if(void 0===e&&(e=!1),R){var n=j>0?j-1:R-1;A(n),U(n,e)}},q=function(e){if(void 0===e&&(e=!1),R){var n=j<R-1?j+1:0;A(n),U(n,e)}},G=function(e){var l=e?$:E,r=0;return D.map(function(e,o){e.isHeader&&(r=0),e.isListItem&&(r+=1);var a=function(){return e.segments.map(function(i,r){var o=i.isHighlight&&i.highlightIndex===j,a=i.text;return e.isListItem&&0===r&&(a=i.text.replace(/^(\s*)(-|\*|\d+\.)\s+/,"")),i.isHighlight?t("span",n({ref:function(e){e&&(l.current[i.highlightIndex]=e)},className:"".concat(h.highlight).concat(o?" ".concat(h.highlightActive):"")},{children:m(a)}),r):t("span",{children:m(a)},r)})};return e.isHeader?t("span",n({className:h.headerLine},{children:a()}),o):e.isListItem?i("span",n({className:h.listItemLine,style:{paddingLeft:e.indent?"1rem":"0"}},{children:[i("span",n({className:h.listCounter},{children:[r,"."]})),t("span",{children:a()})]}),o):t("span",n({className:h.blockLine},{children:a()}),o)})},J=function(e){return R>1?i("div",n({className:e?h.modalNavContainer:h.navigationContainer},{children:[z&&t("button",n({onClick:function(){return Y(e)},className:e?h.modalNavButton:h.navButton},{children:t(z,{className:h.navIcon})})),i("span",n({className:h.navCounter},{children:[j+1,"/",R]})),L&&t("button",n({onClick:function(){return q(e)},className:e?h.modalNavButton:h.navButton},{children:t(L,{className:h.navIcon})}))]})):null},K=null!=w?i("span",n({className:h.confidenceBadge},{children:[t("span",n({className:h.confidenceStar},{children:"✦"})),i("span",n({className:h.confidenceScore},{children:[w,"%"]}))]})):null,O=k?{backgroundColor:"white",padding:"1rem 1.5rem"}:void 0,P=i(l,{children:[T&&t("div",n({className:h.footer,style:O},{children:t("span",n({className:h.trainingTitle},{children:T}))})),b&&t("div",n({className:h.modalFooterSource,style:O},{children:i("button",n({type:"button",onClick:function(){return null==x?void 0:x()},className:h.trainingTitleLink},{children:[b,t(s,{size:16,color:"#2563eb"})]}))}))]});return i(l,{children:[i("div",n({className:h.expandedContainer,style:n(n({},N?{height:"".concat(N),display:"flex",flexDirection:"column"}:void 0),k?{border:"none",borderRadius:0,marginLeft:"0px",marginTop:"0px"}:void 0)},{children:[i("div",n({className:h.expandedHeader,style:k?{backgroundColor:"white",padding:"0.5rem 1.5rem"}:void 0},{children:[t("span",n({className:h.headerTitle},{children:v})),i("div",n({className:h.headerActions},{children:[k?R>1&&i(l,{children:[i("span",n({style:{fontSize:"12px",color:"#888"}},{children:[j+1," / ",R]})),t("button",n({onClick:function(){return Y(!0)},disabled:j<=0,style:{padding:"2px 4px",cursor:j<=0?"not-allowed":"pointer",opacity:j<=0?.4:1,border:"1px solid #ddd",borderRadius:"3px",background:"white",display:"flex",alignItems:"center"}},{children:t(d,{size:14,color:"#64748b"})})),t("button",n({onClick:function(){return q(!0)},disabled:j>=R-1,style:{padding:"2px 4px",cursor:j>=R-1?"not-allowed":"pointer",opacity:j>=R-1?.4:1,border:"1px solid #ddd",borderRadius:"3px",background:"white",display:"flex",alignItems:"center"}},{children:t(u,{size:14,color:"#64748b"})}))]}):J(!0),K,!I&&S&&t("button",n({onClick:function(){var e;return null===(e=V.current)||void 0===e?void 0:e.showModal()},className:h.maximizeButton,title:"View fullscreen"},{children:t(S,{className:h.maximizeIcon})}))]}))]})),t("div",n({ref:F,className:h.contentArea,style:n(n({},N?{flex:1,maxHeight:"none",overflowY:"auto",minHeight:0}:void 0),k?{padding:"1rem 1.5rem"}:void 0)},{children:t("div",n({className:h.contentInner},{children:G(!1)}))})),P]})),!I&&t("dialog",n({ref:V,className:h.modalDialog,onClick:function(e){var n;e.target===V.current&&(null===(n=V.current)||void 0===n||n.close())}},{children:i("div",n({className:h.modalContainer},{children:[i("div",n({className:h.modalHeader},{children:[t("span",n({className:h.modalHeaderTitle},{children:v})),i("div",n({className:h.modalHeaderActions},{children:[k?R>1&&i(l,{children:[i("span",n({style:{fontSize:"12px",color:"#888"}},{children:[j+1," / ",R]})),"just chill",t("button",n({onClick:function(){return Y(!0)},disabled:j<=0,style:{padding:"2px 4px",cursor:j<=0?"not-allowed":"pointer",opacity:j<=0?.4:1,border:"1px solid #ddd",borderRadius:"3px",background:"white",display:"flex",alignItems:"center"}},{children:t(d,{size:14,color:"#64748b"})})),t("button",n({onClick:function(){return q(!0)},disabled:j>=R-1,style:{padding:"2px 4px",cursor:j>=R-1?"not-allowed":"pointer",opacity:j>=R-1?.4:1,border:"1px solid #ddd",borderRadius:"3px",background:"white",display:"flex",alignItems:"center"}},{children:t(u,{size:14,color:"#64748b"})}))]}):J(!0),K,_&&t("button",n({onClick:function(){var e;return null===(e=V.current)||void 0===e?void 0:e.close()},className:h.closeButton,title:"Close"},{children:t(_,{className:h.closeIcon})}))]}))]})),t("div",n({ref:M,className:h.modalContent},{children:t("div",n({className:h.modalContentInner},{children:G(!0)}))})),T&&t("div",n({className:h.modalFooter},{children:t("span",n({className:h.trainingTitle},{children:T}))})),b&&t("div",n({className:h.modalFooterSource},{children:i("button",n({type:"button",onClick:function(){var e;null==x||x(),null===(e=V.current)||void 0===e||e.close()},className:h.trainingTitleLink},{children:[b,t(s,{size:16,color:"#2563eb"})]}))}))]}))}))]})};export{p as default};
2
+ //# sourceMappingURL=CognitiveInternalgptCoreComponent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CognitiveInternalgptCoreComponent.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- import{__spreadArray as n,__assign as e}from"tslib";import{jsxs as i,jsx as t}from"react/jsx-runtime";import{useState as a,useRef as c,useMemo as l,useEffect as r}from"react";import s from"./CognitiveNonWebSearchReasoning.module.css.js";import{ExternalLink as o}from"lucide-react";var d=function(d){var h=d.item,u=d.index,m=d.iconsConfig,v=d.headerTitle,g=void 0===v?"GPT - Gemini 2.5 Flash":v,p=d.previewCallback,f=d.DocumentTitle,N=null==m?void 0:m.ChevronDownIcon,I=null==m?void 0:m.ChevronUpIcon,C=null==m?void 0:m.MaximizeIcon,x=null==m?void 0:m.CloseIcon,b=a(!1),T=b[0],H=b[1],k=a(0),L=k[0],S=k[1],_=c(null),B=c(null),D=c(null),W=c([]),w=c([]),y=l(function(){return h.dataSource?h.dataSource.replace(/\\n/g,"\n").replace(/\n+/g,"\n"):""},[h.dataSource]),z=l(function(){var n=y.split(/(<highlight>[\s\S]*?<\/highlight>)/g)||[],e=n.filter(function(n){return n.startsWith("<highlight>")}).length,i=0;return{parts:n.map(function(n,e){var t=n.startsWith("<highlight>"),a={text:t?n.replace(/<\/?highlight>/g,""):n,isHighlight:t,highlightIndex:t?i:-1,idx:e};return t&&i++,a}),totalHighlights:e}},[y]),A=z.parts,F=z.totalHighlights,j=function(n,e){void 0===e&&(e=!1);var i=e?w.current[n]:W.current[n],t=e?B.current:_.current;i&&t&&i.scrollIntoView({behavior:"smooth",block:"center"})},R=function(n){if(void 0===n&&(n=!1),F){var e=L>0?L-1:F-1;S(e),setTimeout(function(){return j(e,n)},50)}},E=function(n){if(void 0===n&&(n=!1),F){var e=L<F-1?L+1:0;S(e),setTimeout(function(){return j(e,n)},50)}};r(function(){W.current=W.current.slice(0,F),w.current=w.current.slice(0,F)},[F]),r(function(){var n;return T&&F>0&&(S(0),n=setTimeout(function(){return j(0)},50)),function(){n&&clearTimeout(n)}},[T,F]);var G=function(n){return n.split(/(\*\*.*?\*\*|__.*?__)/g).map(function(n,i){return n.startsWith("**")&&n.endsWith("**")||n.startsWith("__")&&n.endsWith("__")?t("strong",e({className:s.boldText},{children:n.slice(2,-2)}),i):n})},M=l(function(){var i=[],t=[];return A.forEach(function(e){var a=e.text,c=e.isHighlight,l=e.highlightIndex;a.split("\n").forEach(function(e,a){a>0&&((t.length>0||i.length>0)&&i.push({segments:n([],t,!0),isListItem:!1,isHeader:!1,indent:"",content:""}),t=[]),e&&t.push({text:e,isHighlight:c,highlightIndex:l})})}),t.length>0&&i.push({segments:n([],t,!0),isListItem:!1,isHeader:!1,indent:"",content:""}),i.map(function(n){var i=n.segments.map(function(n){return n.text}).join(""),t=i.match(/^(\s*)(-|\*|\d+\.)\s+(.*)$/),a=i.match(/^(Title|Description|Training-basis):\s*(.*)$/i);return e(e({},n),{isListItem:!!t,isHeader:!!a,indent:(null==t?void 0:t[1])||"",content:(null==t?void 0:t[3])||i})})},[A]),V=function(n){void 0===n&&(n=!1);var a=0;return M.map(function(c,l){c.isHeader&&(a=0),c.isListItem&&(a+=1);var r=function(){return c.segments.map(function(i,a){var l=i.isHighlight&&i.highlightIndex===L,r=i.text;return c.isListItem&&0===a&&(r=i.text.replace(/^(\s*)(-|\*|\d+\.)\s+/,"")),i.isHighlight?t("span",e({ref:function(e){e&&(n?w.current[i.highlightIndex]=e:W.current[i.highlightIndex]=e)},className:"".concat(s.highlight).concat(l?" ".concat(s.highlightActive):"")},{children:G(r)}),a):t("span",{children:G(r)},a)})};return c.isHeader?t("span",e({className:s.headerLine},{children:r()}),l):c.isListItem?i("span",e({className:s.listItemLine,style:{paddingLeft:c.indent?"1rem":"0"}},{children:[i("span",e({className:s.listCounter},{children:[a,"."]})),t("span",{children:r()})]}),l):t("span",e({className:s.blockLine},{children:r()}),l)})};return i("div",e({className:s.container},{children:[i("div",e({className:s.itemRow},{children:["number"==typeof u&&i("span",e({className:s.indexNumber},{children:[u+1,"."]})),i("div",e({className:s.textContent},{children:[t("span",{children:null==h?void 0:h.text}),(null==h?void 0:h.paraphrase)&&i("button",e({type:"button",onClick:function(){return H(!T)},className:s.paraphraseButton},{children:[i("span",e({className:s.paraphraseText},{children:[t("span",e({className:s.paraphraseStar},{children:"✦"})),h.paraphrase]})),N&&t(N,{className:"".concat(s.chevronIcon).concat(T?" ".concat(s.chevronIconRotated):"")})]}))]}))]})),T&&i("div",e({className:s.expandedContainer},{children:[i("div",e({className:s.expandedHeader},{children:[t("span",e({className:s.headerTitle},{children:g})),i("div",e({className:s.headerActions},{children:[F>1&&i("div",e({className:s.navigationContainer},{children:[I&&t("button",e({onClick:function(){return R(!1)},className:s.navButton},{children:t(I,{className:s.navIcon})})),i("span",e({className:s.navCounter},{children:[L+1,"/",F]})),N&&t("button",e({onClick:function(){return E(!1)},className:s.navButton},{children:t(N,{className:s.navIcon})}))]})),null!=(null==h?void 0:h.confidence_score)&&i("span",e({className:s.confidenceBadge},{children:[t("span",e({className:s.confidenceStar},{children:"✦"})),i("span",e({className:s.confidenceScore},{children:[null==h?void 0:h.confidence_score,"%"]}))]})),C&&t("button",e({onClick:function(){var n;null===(n=D.current)||void 0===n||n.showModal()},className:s.maximizeButton,title:"View fullscreen"},{children:t(C,{className:s.maximizeIcon})}))]}))]})),t("div",e({ref:_,className:s.contentArea},{children:t("div",e({className:s.contentInner},{children:V(!1)}))})),h.trainingDataTitle&&t("div",e({className:s.footer},{children:t("span",e({className:s.trainingTitle},{children:h.trainingDataTitle}))})),f&&t("div",e({className:s.modalFooterSource},{children:i("button",e({type:"button",onClick:function(){null==p||p()},className:s.trainingTitleLink},{children:[f,t(o,{size:16,color:"#2563eb"})]}))}))]})),t("dialog",e({ref:D,className:s.modalDialog,onClick:function(n){var e;n.target===D.current&&(null===(e=D.current)||void 0===e||e.close())}},{children:i("div",e({className:s.modalContainer},{children:[i("div",e({className:s.modalHeader},{children:[t("span",e({className:s.modalHeaderTitle},{children:g})),i("div",e({className:s.modalHeaderActions},{children:[F>1&&i("div",e({className:s.modalNavContainer},{children:[I&&t("button",e({onClick:function(){return R(!0)},className:s.modalNavButton},{children:t(I,{className:s.navIcon})})),i("span",e({className:s.navCounter},{children:[L+1,"/",F]})),N&&t("button",e({onClick:function(){return E(!0)},className:s.modalNavButton},{children:t(N,{className:s.navIcon})}))]})),null!=(null==h?void 0:h.confidence_score)&&i("span",e({className:s.confidenceBadge},{children:[t("span",e({className:s.confidenceStar},{children:"✦"})),i("span",e({className:s.confidenceScore},{children:[null==h?void 0:h.confidence_score,"%"]}))]})),x&&t("button",e({onClick:function(){var n;null===(n=D.current)||void 0===n||n.close()},className:s.closeButton,title:"Close"},{children:t(x,{className:s.closeIcon})}))]}))]})),t("div",e({ref:B,className:s.modalContent},{children:t("div",e({className:s.modalContentInner},{children:V(!0)}))})),h.trainingDataTitle&&t("div",e({className:s.modalFooter},{children:t("span",e({className:s.trainingTitle},{children:h.trainingDataTitle}))})),f&&t("div",e({className:s.modalFooterSource},{children:i("button",e({type:"button",onClick:function(){var n;null==p||p(),null===(n=D.current)||void 0===n||n.close()},className:s.trainingTitleLink},{children:[f,t(o,{size:16,color:"#2563eb"})]}))}))]}))}))]}))};export{d as default};
1
+ import{__assign as e}from"tslib";import{jsxs as n,jsx as a}from"react/jsx-runtime";import{useState as r}from"react";import t from"./CognitiveNonWebSearchReasoning.module.css.js";import o from"./CognitiveInternalgptCoreComponent.js";var i=function(i){var c=i.item,l=i.index,s=i.iconsConfig,m=i.headerTitle,p=void 0===m?"GPT - Gemini 2.5 Flash":m,d=i.previewCallback,h=i.DocumentTitle,u=null==s?void 0:s.ChevronDownIcon,v=r(!1),f=v[0],C=v[1];return n("div",e({className:t.container},{children:[n("div",e({className:t.itemRow},{children:["number"==typeof l&&n("span",e({className:t.indexNumber},{children:[l+1,"."]})),n("div",e({className:t.textContent},{children:[a("span",{children:null==c?void 0:c.text}),(null==c?void 0:c.paraphrase)&&n("button",e({type:"button",onClick:function(){return C(!f)},className:t.paraphraseButton},{children:[n("span",e({className:t.paraphraseText},{children:[a("span",e({className:t.paraphraseStar},{children:"✦"})),c.paraphrase]})),u&&a(u,{className:"".concat(t.chevronIcon).concat(f?" ".concat(t.chevronIconRotated):"")})]}))]}))]})),f&&a(o,{item:c,headerTitle:p,iconsConfig:s,DocumentTitle:h,previewCallback:d})]}))};export{i as default};
2
2
  //# sourceMappingURL=CognitiveInternalgptReasoningComponent.js.map
@@ -0,0 +1,16 @@
1
+ /// <reference types="react" />
2
+ import type { INonReasoningSource, NonWebReasoningIconsConfig } from "./CognitiveInternalgptReasoningComponent";
3
+ export type CognitiveInternalgptCoreProps = {
4
+ item: INonReasoningSource;
5
+ headerTitle: string;
6
+ index?: number;
7
+ iconsConfig?: NonWebReasoningIconsConfig;
8
+ DocumentTitle?: string;
9
+ previewCallback?: () => void;
10
+ bodyHeight?: string;
11
+ disableMaximize?: boolean;
12
+ splitterCustomStyle?: boolean;
13
+ };
14
+ declare const CognitiveInternalgptCoreComponent: React.FC<CognitiveInternalgptCoreProps>;
15
+ export default CognitiveInternalgptCoreComponent;
16
+ //# sourceMappingURL=CognitiveInternalgptCoreComponent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CognitiveInternalgptCoreComponent.d.ts","sourceRoot":"","sources":["../../../../../src/features/CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.tsx"],"names":[],"mappings":";AAGA,OAAO,KAAK,EAAE,mBAAmB,EAAE,0BAA0B,EAAE,MAAM,0CAA0C,CAAC;AAgBhH,MAAM,MAAM,6BAA6B,GAAG;IAC1C,IAAI,EAAE,mBAAmB,CAAC;IAC1B,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,0BAA0B,CAAC;IACzC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B,CAAC;AAiBF,QAAA,MAAM,iCAAiC,EAAE,KAAK,CAAC,EAAE,CAAC,6BAA6B,CA4V9E,CAAC;AAEF,eAAe,iCAAiC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"CognitiveInternalgptReasoningComponent.d.ts","sourceRoot":"","sources":["../../../../../src/features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.tsx"],"names":[],"mappings":";AAKA,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACvC,eAAe,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IACpC,aAAa,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IAClC,YAAY,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IACjC,SAAS,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,EAAE,mBAAmB,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,0BAA0B,CAAC;IACzC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,QAAA,MAAM,6BAA6B,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAsdjE,CAAC;AAEF,eAAe,6BAA6B,CAAC"}
1
+ {"version":3,"file":"CognitiveInternalgptReasoningComponent.d.ts","sourceRoot":"","sources":["../../../../../src/features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.tsx"],"names":[],"mappings":";AAIA,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACvC,eAAe,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IACpC,aAAa,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IAClC,YAAY,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IACjC,SAAS,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,EAAE,mBAAmB,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,0BAA0B,CAAC;IACzC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,QAAA,MAAM,6BAA6B,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAkDjE,CAAC;AAEF,eAAe,6BAA6B,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { INonReasoningSource } from "./CognitiveInternalgptReasoningComponent";
2
+ export declare const dummyNonWebReasoningData: INonReasoningSource;
1
3
  declare const InternalgptReasoningTest: () => import("react/jsx-runtime").JSX.Element;
2
4
  export default InternalgptReasoningTest;
3
5
  //# sourceMappingURL=CognitiveInternalgptReasoningTest.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CognitiveInternalgptReasoningTest.d.ts","sourceRoot":"","sources":["../../../../../src/features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningTest.tsx"],"names":[],"mappings":"AAWA,QAAA,MAAM,wBAAwB,+CA0B7B,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
1
+ {"version":3,"file":"CognitiveInternalgptReasoningTest.d.ts","sourceRoot":"","sources":["../../../../../src/features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningTest.tsx"],"names":[],"mappings":"AACA,OAAsC,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAI9G,eAAO,MAAM,wBAAwB,EAAE,mBAOtC,CAAC;AASF,QAAA,MAAM,wBAAwB,+CAgD7B,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"SplitterCitationsTest.d.ts","sourceRoot":"","sources":["../../../../../src/features/SplitterCitations/SplitterCitationsTest.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,QAAA,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAiBlC,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
1
+ {"version":3,"file":"SplitterCitationsTest.d.ts","sourceRoot":"","sources":["../../../../../src/features/SplitterCitations/SplitterCitationsTest.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAcxC,QAAA,MAAM,qBAAqB,EAAE,KAAK,CAAC,EA0ClC,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@e-llm-studio/citation",
3
- "version": "0.0.182-0",
3
+ "version": "0.0.184-0",
4
4
  "author": "Devesh Patel",
5
5
  "description": "",
6
6
  "license": "MIT",
@@ -77,6 +77,11 @@
77
77
  "require": "./dist/cjs/features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.js",
78
78
  "types": "./dist/types/src/features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.d.ts"
79
79
  },
80
+ "./CognitiveInternalgptCoreComponent": {
81
+ "import": "./dist/features/CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.js",
82
+ "require": "./dist/cjs/features/CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.js",
83
+ "types": "./dist/types/src/features/CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.d.ts"
84
+ },
80
85
  "./CitationViewer": {
81
86
  "import": "./dist/features/CitationViewer/CitationsViewer.js",
82
87
  "require": "./dist/cjs/features/CitationViewer/CitationsViewer.js",
@@ -238,21 +243,9 @@
238
243
  "react-dom": ">=16.8.0 <19.0.0",
239
244
  "react-player": "^3.4.0",
240
245
  "react-reader": "^2.0.13",
241
- "wavesurfer.js": "^7.12.1",
242
- "lucide-react": "^0.474.0",
243
- "react-markdown": ">=8.0.0",
244
- "react-resizable-panels": ">=2.0.0"
246
+ "wavesurfer.js": "^7.12.1"
245
247
  },
246
248
  "peerDependenciesMeta": {
247
- "lucide-react": {
248
- "optional": false
249
- },
250
- "react-markdown": {
251
- "optional": false
252
- },
253
- "react-resizable-panels": {
254
- "optional": false
255
- },
256
249
  "@mui/icons-material": {
257
250
  "optional": true
258
251
  },
@@ -292,7 +285,10 @@
292
285
  "axios": "^1.7.9",
293
286
  "dayjs": "^1.11.19",
294
287
  "dompurify": "^3.3.1",
288
+ "lucide-react": "^0.562.0",
295
289
  "pdf-collaborative-tool": "^0.7.0",
290
+ "react-markdown": "^8.0.7",
291
+ "react-resizable-panels": "^3.0.6",
296
292
  "react-syntax-highlighter": "^15.6.1",
297
293
  "react-virtualized-auto-sizer": "^1.0.26",
298
294
  "react-window": "^1.8.11",