@e-llm-studio/citation 0.0.182-0 → 0.0.183
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/CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.js +2 -0
- package/dist/cjs/features/CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.js.map +1 -0
- package/dist/cjs/features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.js +1 -1
- package/dist/cjs/features/PdfViewer/usePdfHighlight.js +1 -1
- package/dist/features/CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.js +2 -0
- package/dist/features/CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.js.map +1 -0
- package/dist/features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.js +1 -1
- package/dist/features/PdfViewer/usePdfHighlight.js +1 -1
- package/dist/types/src/features/CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.d.ts +16 -0
- package/dist/types/src/features/CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.d.ts.map +1 -0
- package/dist/types/src/features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.d.ts.map +1 -1
- package/dist/types/src/features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningTest.d.ts +2 -0
- package/dist/types/src/features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningTest.d.ts.map +1 -1
- package/dist/types/src/features/SplitterCitations/SplitterCitationsTest.d.ts.map +1 -1
- package/package.json +10 -14
|
@@ -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
|
package/dist/cjs/features/CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CognitiveInternalgptCoreComponent.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/cjs/features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),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
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),r=require("react"),n=require("@react-pdf-viewer/search"),o=require("@react-pdf-viewer/page-navigation"),i=require("@react-pdf-viewer/zoom"),a=require("@react-pdf-viewer/highlight");exports.PdfHighlightControls=function(u,l,c,s,g,p,v,f){void 0===v&&(v="yellow"),void 0===f&&(f="#F6D739");var h=r.useState(0),d=h[0],m=h[1],_=r.useRef(!1),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),r=require("react"),n=require("@react-pdf-viewer/search"),o=require("@react-pdf-viewer/page-navigation"),i=require("@react-pdf-viewer/zoom"),a=require("@react-pdf-viewer/highlight");exports.PdfHighlightControls=function(u,l,c,s,g,p,v,f){void 0===v&&(v="yellow"),void 0===f&&(f="#F6D739");var h=r.useState(0),d=h[0],m=h[1],_=r.useRef(!1),y=r.useState(0),x=y[0],T=y[1];r.useRef([]);var I=function(e){if(!e)return[];return e.replace(/\]\s*\n\s*\(/g,"](").split(/\n+/).map(function(e){var t=e.trim(),r=(t=(t=t.replace(/[\u200B-\u200D\uFEFF]/g,"").replace(/[\u00A0\u2009\u202F]/g," ")).replace(/^[-•]\s+/,"")).match(/^((\d+(?:\.\d+)*[.)]?)|[A-Za-z][.)]|\([A-Za-z0-9]+\)|(?:i|ii|iii|iv|v|vi|vii|viii|ix|x)[.)])\s*/i);return r?t.slice(r[0].length).trim():t}).flatMap(function(e){var t=e.match(/^\s*\|(.+)\|\s*$/);return t?t[1].split("|").map(function(e){return e.trim()}).filter(Boolean):[e]}).map(function(e){return e.replace(/&[#\w]+;/g,function(e){return t=e,(r=document.createElement("textarea")).innerHTML=t,r.value;var t,r}).replace(/<br\s*\/?>/gi,"\n").replace(/\[([^\]]+)\]\(([^)]+)\)/g,"$1").replace(/[^\S\n]+/g," ").trim()}).flatMap(function(e){return e.split(/\n+/)}).flatMap(function(e){for(var t,r=[],n=/([*_]{1,3})([^*_]+)\1|([*_]{1,3})/g,o=0;null!==(t=n.exec(e));){var i=e.slice(o,t.index).trim();i&&r.push(i),t[2]&&r.push(t[2].trim()),o=t.index+t[0].length}var a=e.slice(o).trim();return a&&r.push(a),r.flatMap(function(e){return e.split(/[\u2013\u2014-]/g)}).flatMap(function(e){return e.split(/\n+/)}).map(function(e){return e.replace(/[*_]+/g,"").replace(/`([^`]+)`/g,"$1").replace(/[^\S\n]+/g," ").trim()})})},b=Object.keys(l).map(Number).sort(function(e,t){return e-t}),q=r.useMemo(function(){return g?p.length:g?0:Object.values(l).filter(function(e){return e>0}).length},[p,l]),S=function(e){if(c.current){var t=c.current.querySelectorAll(".rpv-search__highlights"),r=new Set;t.forEach(function(t){var n=t.getAttribute("data-testid"),o=parseInt((null==n?void 0:n.replace("search__highlights-",""))||"-1"),i=t.querySelectorAll(".rpv-search__highlight");o===e&&(i.forEach(function(e){var t=e,n=(t.getAttribute("title")||"").toLowerCase(),o=t.style.top,i="".concat(n,"_#$_").concat(o);r.has(i)?t.style.display="none":(r.add(i),t.style.display="")}),console.groupCollapsed("[debug: PDF highlight text]"),console.log("input->",u),console.log("processed text->",A),console.groupEnd())})}},j=function(e){c.current&&c.current.querySelectorAll(".rpv-search__highlights").forEach(function(t){var r=t.getAttribute("data-testid"),n=parseInt((null==r?void 0:r.replace(/search__highlights-/g,""))||"-1"),o=t.querySelectorAll(".rpv-search__highlight");e.has(n)||o.forEach(function(e){e.style.display="none"})})},A=u.map(function(e){return I(e)}).flat(),P=n.searchPlugin({keyword:A}),w=o.pageNavigationPlugin(),B=i.zoomPlugin(),C=P.jumpToMatch,M=w.jumpToPage,E=B.zoomTo,F=B.ZoomInButton,H=B.ZoomOutButton,O=B.ZoomPopover,R=a.highlightPlugin({renderHighlights:function(r){return t.jsx(t.Fragment,{children:p.map(function(t,r){return e.__assign(e.__assign({},t),{originalIndex:r})}).filter(function(e){return e.pageNumber?e.pageNumber-1===r.pageIndex:e.pageIndex===r.pageIndex}).map(function(e){var r=e.originalIndex,n=r===x;return t.jsx("div",{style:{position:"absolute",left:"".concat(e.left,"%"),top:"".concat(e.top,"%"),width:"".concat(e.width,"%"),height:"".concat(e.height,"%"),background:n?f:v,opacity:n?.7:.4,transition:"background 0.2s, opacity 0.2s"}},r)})})}}),Z=function(){if(!_.current)try{C(0),_.current=!0;var e=p[0];e&&g&&k(e.pageIndex,e.top)}catch(e){requestAnimationFrame(Z)}},N=function(e,t){if(c.current&&c.current.querySelector(".rpv-core__viewer")){var r=-1,n=function(){var o,i,a=null===(o=c.current)||void 0===o?void 0:o.querySelector(".rpv-core__inner-pages");if(a){if(a.scrollTop!==r)return r=a.scrollTop,void setTimeout(n,100);var u=null===(i=c.current)||void 0===i?void 0:i.querySelector('[data-testid="core__page-layer-'.concat(e,'"]'));if(u){var l=u.querySelectorAll(".rpv-search__highlight")[t];if(l){var s=a.getBoundingClientRect(),g=l.getBoundingClientRect(),p=a.scrollTop+(g.top-s.top)-a.clientHeight/2+g.height/2;a.scrollTo({top:p,behavior:"smooth"})}}}};setTimeout(n,300)}},k=function(e,t){if(c.current){var r=0,n=function(){var o,i;if(!(++r>60)){var a=null===(o=c.current)||void 0===o?void 0:o.querySelector(".rpv-core__inner-pages");if(a){var u=null===(i=c.current)||void 0===i?void 0:i.querySelector('[data-testid="core__page-layer-'.concat(e,'"]'));if(u){var l=u.getBoundingClientRect();if(0!==l.height){var s=a.getBoundingClientRect(),g=t/100*l.height,p=l.top-s.top+g;a.scrollTo({top:a.scrollTop+p-40,behavior:"smooth"})}else setTimeout(n,100)}else setTimeout(n,100)}else setTimeout(n,100)}};setTimeout(n,100)}},z=r.useMemo(function(){var e={};return b.forEach(function(t,r){var n=l[t];n>0&&(e[n]||(e[n]=[]),e[n].push(r))}),e},[b,l]),$=function(e){var t=l[b[e]];return(z[t]||[]).indexOf(e)},D=function(e,t){if(c.current){var r=-1,n=0,o=function(){var i,a;if(!(++n>60)){var u=null===(i=c.current)||void 0===i?void 0:i.querySelector(".rpv-core__inner-pages");if(u){if(u.scrollTop!==r)return r=u.scrollTop,void setTimeout(o,100);var l=null===(a=c.current)||void 0===a?void 0:a.querySelector('[data-testid="core__page-layer-'.concat(e,'"]'));if(l){var s=l.getBoundingClientRect();if(0!==s.height){var g=u.getBoundingClientRect(),p=t/100*s.height,v=s.top-g.top+p;u.scrollTo({top:u.scrollTop+v-40,behavior:"instant"})}else setTimeout(o,100)}else setTimeout(o,100)}else setTimeout(o,100)}};setTimeout(o,100)}};return{setHighlightIndex:m,highlightIndex:d,cursorIndex:x,setCursorIndex:T,orderedKeys:b,totalHighlights:q,getValidPosition:function(e){if(g)return e+1;if(!l)return 0;for(var t=0,r=0;r<=e;r++)l[b[r]]>0&&t++;return t},tryJump:Z,jumpToPage:M,zoomTo:E,hideNonTargetHighlights:j,deduplicateHighlights:S,scrollToCoord:k,scrollToCoordAfterNav:D,plugins:[g?R:P,w,B],controls:{ZoomInButton:F,ZoomOutButton:H,ZoomPopover:O,goToNext:function(){if(g&&p)for(var e=x+1;e<p.length;e++){var t=p[e],r=p[x];return T(e),void(t.pageIndex!==r.pageIndex?(M(t.pageIndex),D(t.pageIndex,t.top)):k(t.pageIndex,t.top))}else{var n=function(e){var t=b[e];if(l[t]>0){var r=l[t]-1,n=$(e);return T(e),M(l[t]-1),N(r,n),setTimeout(function(){S(r)},500),1===Object.keys(l).length&&j(s),{value:void 0}}};for(e=x+1;e<b.length;e++){var o=n(e);if("object"==typeof o)return o.value}}},goToPrevious:function(){if(g&&p)for(var e=x-1;e>=0;e--){var t=p[e],r=p[x];return T(e),void(t.pageIndex!==r.pageIndex?(M(t.pageIndex),D(t.pageIndex,t.top)):k(t.pageIndex,t.top))}else{var n=function(e){var t=b[e];if(l[t]>0){var r=l[t]-1,n=$(e);return T(e),M(l[t]-1),N(r,n),setTimeout(function(){S(r)},500),1===Object.keys(l).length&&j(s),{value:void 0}}};for(e=x-1;e>=0;e--){var o=n(e);if("object"==typeof o)return o.value}}}}}};
|
|
2
2
|
//# sourceMappingURL=usePdfHighlight.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":""}
|
package/dist/features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
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
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e}from"tslib";import{jsx as t,Fragment as r}from"react/jsx-runtime";import{useState as o,useRef as n,useMemo as i}from"react";import{searchPlugin as a}from"@react-pdf-viewer/search";import{pageNavigationPlugin as u}from"@react-pdf-viewer/page-navigation";import{zoomPlugin as c}from"@react-pdf-viewer/zoom";import{highlightPlugin as l}from"@react-pdf-viewer/highlight";var p=function(p,s,g,f,v,d,
|
|
1
|
+
import{__assign as e}from"tslib";import{jsx as t,Fragment as r}from"react/jsx-runtime";import{useState as o,useRef as n,useMemo as i}from"react";import{searchPlugin as a}from"@react-pdf-viewer/search";import{pageNavigationPlugin as u}from"@react-pdf-viewer/page-navigation";import{zoomPlugin as c}from"@react-pdf-viewer/zoom";import{highlightPlugin as l}from"@react-pdf-viewer/highlight";var p=function(p,s,g,f,v,h,d,m){void 0===d&&(d="yellow"),void 0===m&&(m="#F6D739");var y=o(0),T=y[0],_=y[1],x=n(!1),I=o(0),b=I[0],S=I[1];n([]);var q=function(e){if(!e)return[];return e.replace(/\]\s*\n\s*\(/g,"](").split(/\n+/).map(function(e){var t=e.trim(),r=(t=(t=t.replace(/[\u200B-\u200D\uFEFF]/g,"").replace(/[\u00A0\u2009\u202F]/g," ")).replace(/^[-•]\s+/,"")).match(/^((\d+(?:\.\d+)*[.)]?)|[A-Za-z][.)]|\([A-Za-z0-9]+\)|(?:i|ii|iii|iv|v|vi|vii|viii|ix|x)[.)])\s*/i);return r?t.slice(r[0].length).trim():t}).flatMap(function(e){var t=e.match(/^\s*\|(.+)\|\s*$/);return t?t[1].split("|").map(function(e){return e.trim()}).filter(Boolean):[e]}).map(function(e){return e.replace(/&[#\w]+;/g,function(e){return t=e,(r=document.createElement("textarea")).innerHTML=t,r.value;var t,r}).replace(/<br\s*\/?>/gi,"\n").replace(/\[([^\]]+)\]\(([^)]+)\)/g,"$1").replace(/[^\S\n]+/g," ").trim()}).flatMap(function(e){return e.split(/\n+/)}).flatMap(function(e){for(var t,r=[],o=/([*_]{1,3})([^*_]+)\1|([*_]{1,3})/g,n=0;null!==(t=o.exec(e));){var i=e.slice(n,t.index).trim();i&&r.push(i),t[2]&&r.push(t[2].trim()),n=t.index+t[0].length}var a=e.slice(n).trim();return a&&r.push(a),r.flatMap(function(e){return e.split(/[\u2013\u2014-]/g)}).flatMap(function(e){return e.split(/\n+/)}).map(function(e){return e.replace(/[*_]+/g,"").replace(/`([^`]+)`/g,"$1").replace(/[^\S\n]+/g," ").trim()})})},A=Object.keys(s).map(Number).sort(function(e,t){return e-t}),w=i(function(){return v?h.length:v?0:Object.values(s).filter(function(e){return e>0}).length},[h,s]),B=function(e){if(g.current){var t=g.current.querySelectorAll(".rpv-search__highlights"),r=new Set;t.forEach(function(t){var o=t.getAttribute("data-testid"),n=parseInt((null==o?void 0:o.replace("search__highlights-",""))||"-1"),i=t.querySelectorAll(".rpv-search__highlight");n===e&&(i.forEach(function(e){var t=e,o=(t.getAttribute("title")||"").toLowerCase(),n=t.style.top,i="".concat(o,"_#$_").concat(n);r.has(i)?t.style.display="none":(r.add(i),t.style.display="")}),console.groupCollapsed("[debug: PDF highlight text]"),console.log("input->",p),console.log("processed text->",j),console.groupEnd())})}},C=function(e){g.current&&g.current.querySelectorAll(".rpv-search__highlights").forEach(function(t){var r=t.getAttribute("data-testid"),o=parseInt((null==r?void 0:r.replace(/search__highlights-/g,""))||"-1"),n=t.querySelectorAll(".rpv-search__highlight");e.has(o)||n.forEach(function(e){e.style.display="none"})})},j=p.map(function(e){return q(e)}).flat(),E=a({keyword:j}),Z=u(),F=c(),H=E.jumpToMatch,M=Z.jumpToPage,O=F.zoomTo,P=F.ZoomInButton,k=F.ZoomOutButton,N=F.ZoomPopover,R=l({renderHighlights:function(o){return t(r,{children:h.map(function(t,r){return e(e({},t),{originalIndex:r})}).filter(function(e){return e.pageNumber?e.pageNumber-1===o.pageIndex:e.pageIndex===o.pageIndex}).map(function(e){var r=e.originalIndex,o=r===b;return t("div",{style:{position:"absolute",left:"".concat(e.left,"%"),top:"".concat(e.top,"%"),width:"".concat(e.width,"%"),height:"".concat(e.height,"%"),background:o?m:d,opacity:o?.7:.4,transition:"background 0.2s, opacity 0.2s"}},r)})})}}),z=function(){if(!x.current)try{H(0),x.current=!0;var e=h[0];e&&v&&D(e.pageIndex,e.top)}catch(e){requestAnimationFrame(z)}},$=function(e,t){if(g.current&&g.current.querySelector(".rpv-core__viewer")){var r=-1,o=function(){var n,i,a=null===(n=g.current)||void 0===n?void 0:n.querySelector(".rpv-core__inner-pages");if(a){if(a.scrollTop!==r)return r=a.scrollTop,void setTimeout(o,100);var u=null===(i=g.current)||void 0===i?void 0:i.querySelector('[data-testid="core__page-layer-'.concat(e,'"]'));if(u){var c=u.querySelectorAll(".rpv-search__highlight")[t];if(c){var l=a.getBoundingClientRect(),p=c.getBoundingClientRect(),s=a.scrollTop+(p.top-l.top)-a.clientHeight/2+p.height/2;a.scrollTo({top:s,behavior:"smooth"})}}}};setTimeout(o,300)}},D=function(e,t){if(g.current){var r=0,o=function(){var n,i;if(!(++r>60)){var a=null===(n=g.current)||void 0===n?void 0:n.querySelector(".rpv-core__inner-pages");if(a){var u=null===(i=g.current)||void 0===i?void 0:i.querySelector('[data-testid="core__page-layer-'.concat(e,'"]'));if(u){var c=u.getBoundingClientRect();if(0!==c.height){var l=a.getBoundingClientRect(),p=t/100*c.height,s=c.top-l.top+p;a.scrollTo({top:a.scrollTop+s-40,behavior:"smooth"})}else setTimeout(o,100)}else setTimeout(o,100)}else setTimeout(o,100)}};setTimeout(o,100)}},L=i(function(){var e={};return A.forEach(function(t,r){var o=s[t];o>0&&(e[o]||(e[o]=[]),e[o].push(r))}),e},[A,s]),J=function(e){var t=s[A[e]];return(L[t]||[]).indexOf(e)},K=function(e,t){if(g.current){var r=-1,o=0,n=function(){var i,a;if(!(++o>60)){var u=null===(i=g.current)||void 0===i?void 0:i.querySelector(".rpv-core__inner-pages");if(u){if(u.scrollTop!==r)return r=u.scrollTop,void setTimeout(n,100);var c=null===(a=g.current)||void 0===a?void 0:a.querySelector('[data-testid="core__page-layer-'.concat(e,'"]'));if(c){var l=c.getBoundingClientRect();if(0!==l.height){var p=u.getBoundingClientRect(),s=t/100*l.height,f=l.top-p.top+s;u.scrollTo({top:u.scrollTop+f-40,behavior:"instant"})}else setTimeout(n,100)}else setTimeout(n,100)}else setTimeout(n,100)}};setTimeout(n,100)}};return{setHighlightIndex:_,highlightIndex:T,cursorIndex:b,setCursorIndex:S,orderedKeys:A,totalHighlights:w,getValidPosition:function(e){if(v)return e+1;if(!s)return 0;for(var t=0,r=0;r<=e;r++)s[A[r]]>0&&t++;return t},tryJump:z,jumpToPage:M,zoomTo:O,hideNonTargetHighlights:C,deduplicateHighlights:B,scrollToCoord:D,scrollToCoordAfterNav:K,plugins:[v?R:E,Z,F],controls:{ZoomInButton:P,ZoomOutButton:k,ZoomPopover:N,goToNext:function(){if(v&&h)for(var e=b+1;e<h.length;e++){var t=h[e],r=h[b];return S(e),void(t.pageIndex!==r.pageIndex?(M(t.pageIndex),K(t.pageIndex,t.top)):D(t.pageIndex,t.top))}else{var o=function(e){var t=A[e];if(s[t]>0){var r=s[t]-1,o=J(e);return S(e),M(s[t]-1),$(r,o),setTimeout(function(){B(r)},500),1===Object.keys(s).length&&C(f),{value:void 0}}};for(e=b+1;e<A.length;e++){var n=o(e);if("object"==typeof n)return n.value}}},goToPrevious:function(){if(v&&h)for(var e=b-1;e>=0;e--){var t=h[e],r=h[b];return S(e),void(t.pageIndex!==r.pageIndex?(M(t.pageIndex),K(t.pageIndex,t.top)):D(t.pageIndex,t.top))}else{var o=function(e){var t=A[e];if(s[t]>0){var r=s[t]-1,o=J(e);return S(e),M(s[t]-1),$(r,o),setTimeout(function(){B(r)},500),1===Object.keys(s).length&&C(f),{value:void 0}}};for(e=b-1;e>=0;e--){var n=o(e);if("object"==typeof n)return n.value}}}}}};export{p as PdfHighlightControls};
|
|
2
2
|
//# sourceMappingURL=usePdfHighlight.js.map
|
package/dist/types/src/features/CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.d.ts
ADDED
|
@@ -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":";
|
|
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"}
|
package/dist/types/src/features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningTest.d.ts
CHANGED
|
@@ -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":"
|
|
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,
|
|
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.
|
|
3
|
+
"version": "0.0.183",
|
|
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",
|