@e-llm-studio/citation 0.0.193 → 0.0.195
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/IngestionStatus/IngestionStatusComponent.js +2 -0
- package/dist/cjs/features/IngestionStatus/IngestionStatusComponent.js.map +1 -0
- package/dist/cjs/features/IngestionStatus/ingestion.module.css.js +2 -0
- package/dist/cjs/features/IngestionStatus/ingestion.module.css.js.map +1 -0
- package/dist/cjs/features/IngestionStatus/useIngestionStatus.js +2 -0
- package/dist/cjs/features/IngestionStatus/useIngestionStatus.js.map +1 -0
- package/dist/cjs/features/SplitterCitations/SplitterCitationsComponent.js +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/features/IngestionStatus/IngestionStatusComponent.js +2 -0
- package/dist/features/IngestionStatus/IngestionStatusComponent.js.map +1 -0
- package/dist/features/IngestionStatus/ingestion.module.css.js +2 -0
- package/dist/features/IngestionStatus/ingestion.module.css.js.map +1 -0
- package/dist/features/IngestionStatus/useIngestionStatus.js +2 -0
- package/dist/features/IngestionStatus/useIngestionStatus.js.map +1 -0
- package/dist/features/SplitterCitations/SplitterCitationsComponent.js +1 -1
- package/dist/index.js +1 -1
- package/dist/types/src/features/IngestionStatus/IngestionStatusComponent.d.ts +26 -0
- package/dist/types/src/features/IngestionStatus/IngestionStatusComponent.d.ts.map +1 -0
- package/dist/types/src/features/IngestionStatus/IngestionStatusComponentTest.d.ts +7 -0
- package/dist/types/src/features/IngestionStatus/IngestionStatusComponentTest.d.ts.map +1 -0
- package/dist/types/src/features/IngestionStatus/useIngestionStatus.d.ts +40 -0
- package/dist/types/src/features/IngestionStatus/useIngestionStatus.d.ts.map +1 -0
- package/dist/types/src/features/SplitterCitations/SplitterCitationsComponent.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +2 -0
- package/dist/types/src/index.d.ts.map +1 -1
- package/package.json +6 -1
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),s=require("react/jsx-runtime"),n=require("./ingestion.module.css.js"),t=require("./useIngestionStatus.js"),r={ingested:{label:"Ingested",className:n.default.ingested},failed:{label:"Ingestion Failed",className:n.default.failed},in_progress:{label:"Ingesting...",className:n.default.inProgress},pending:{label:"Pending",className:n.default.pending}};var a=function(t){var a=t.status,l=t.label,i=t.percentage,o=t.customConfig;if(o)return s.jsx("span",e.__assign({className:n.default.chip,style:{border:"1px solid ".concat(o.borderColor),background:o.background,color:o.color}},{children:null!=l?l:o.label}));if("custom"===a)return null;var u=r[a];if(!u)return null;var c="in_progress"===a&&void 0!==i;return s.jsx("span",e.__assign({className:"".concat(n.default.chip," ").concat(u.className)},{children:c?s.jsxs(s.Fragment,{children:[null!=l?l:"Ingesting",s.jsx("span",{className:n.default.dot}),"".concat(i,"%")]}):null!=l?l:u.label}))},l=new Set(["DONE","COMPLETED","FAILED"]);exports.IngestionStatusChip=a,exports.IngestionStatusComponent=function(e){var n,r,i,o,u=e.ingestionId,c=e.status,d=e.wsBaseUrl,g=e.showPercentage,p=void 0===g||g,f=e.statusMap,v=e.customStatusConfigs,m=!!c&&l.has(c.toUpperCase()),b=t.useIngestionWebSocket(!m&&u?u:null,d).data,x=m?c:null!==(r=null!==(n=null==b?void 0:b.ingestionStatus)&&void 0!==n?n:c)&&void 0!==r?r:"",C=x?function(e,s){if(!e)return"custom";if(s){if(void 0!==s[e])return s[e];var n=e.toUpperCase();if(void 0!==s[n])return s[n]}return"custom"}(x,f):"pending",I=v?null!==(o=null!==(i=v[C])&&void 0!==i?i:v[x])&&void 0!==o?o:v[x.toUpperCase()]:void 0,j=!m&&void 0!==(null==b?void 0:b.currentProgress)&&p?b.currentProgress:void 0;return s.jsx(a,{status:C,percentage:j,customConfig:I})};
|
|
2
|
+
//# sourceMappingURL=IngestionStatusComponent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IngestionStatusComponent.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const o=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;o&&e.setAttribute("nonce",o),e.appendChild(document.createTextNode(".ingestion-module_chip__LgrR-{align-items:center;border-radius:var(--tag-rounded-border-radius,12px);display:inline-flex;font-size:12px;font-weight:500;gap:6px;line-height:20px;padding:2px 10px;white-space:nowrap;width:fit-content}.ingestion-module_dot__Euc3-{border-radius:50%;flex-shrink:0;height:6px;width:6px}.ingestion-module_ingested__1eMKY{background:var(--green-50,#f0fdf4);border:1px solid var(--green-200,#bbf7d0);color:#15803d}.ingestion-module_ingested__1eMKY .ingestion-module_dot__Euc3-{background-color:#16a34a}.ingestion-module_failed__NUIrq{background:var(--red-50,#fef2f2);border:1px solid var(--red-200,#fecaca);color:#b91c1c}.ingestion-module_failed__NUIrq .ingestion-module_dot__Euc3-{background-color:#b91c1c}.ingestion-module_inProgress__EBGaw{background:var(--blue-50,#eff6ff);border:1px solid var(--blue-200,#bfdbfe);color:#1d4ed8}.ingestion-module_inProgress__EBGaw .ingestion-module_dot__Euc3-{animation:ingestion-module_pulse__vyf36 1.4s ease-in-out infinite;background-color:#3b82f6}.ingestion-module_pending__3SnDm{background:var(--gray-50,#f9fafb);border:1px solid var(--gray-200,#e5e7eb);color:#374151}.ingestion-module_pending__3SnDm .ingestion-module_dot__Euc3-{background-color:#9ca3af}@keyframes ingestion-module_pulse__vyf36{0%,to{opacity:1}50%{opacity:.3}}"));const n=document.head||document.getElementsByTagName("head")[0]||document.documentElement;n&&n.appendChild(e)}(),exports.default={chip:"ingestion-module_chip__LgrR-",dot:"ingestion-module_dot__Euc3-",ingested:"ingestion-module_ingested__1eMKY",failed:"ingestion-module_failed__NUIrq",inProgress:"ingestion-module_inProgress__EBGaw",pulse:"ingestion-module_pulse__vyf36",pending:"ingestion-module_pending__3SnDm"};
|
|
2
|
+
//# sourceMappingURL=ingestion.module.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ingestion.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=new Set(["DONE","COMPLETED","FAILED"]),n=new Map;exports.useIngestionWebSocket=function(r,o){var c=e.useState(null),a=c[0],u=c[1],l=e.useState(!1),s=l[0],i=l[1],S=e.useState(null),d=S[0],f=S[1],v=e.useRef(null),p=e.useCallback(function(){var e;null===(e=v.current)||void 0===e||e.close(),v.current=null,i(!1)},[]);return e.useEffect(function(){if(r){f(null),u(null);var e=n.get(r);e&&e.readyState!==WebSocket.CLOSED&&e.close();var c=new WebSocket("".concat(o,"/").concat(r));n.set(r,c),v.current=c,c.onopen=function(){return i(!0)};var a=setInterval(function(){c.readyState===WebSocket.OPEN&&c.send(JSON.stringify({type:"ping"}))},5e3);return c.onmessage=function(e){var o;try{var l=JSON.parse(e.data);u(l),t.has(null===(o=l.ingestionStatus)||void 0===o?void 0:o.toUpperCase())&&(clearInterval(a),c.close(),n.delete(r))}catch(e){f("Failed to parse WebSocket message")}},c.onerror=function(){return f("WebSocket connection error")},c.onclose=function(){return i(!1)},function(){clearInterval(a),c.close(),n.delete(r)}}},[r,o]),{data:a,connected:s,error:d,disconnect:p}};
|
|
2
|
+
//# sourceMappingURL=useIngestionStatus.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useIngestionStatus.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),n=require("react"),a=require("lucide-react"),i=require("./Splitter.module.css.js"),s=function(){return t.jsxs("svg",e.__assign({width:"21",height:"54",viewBox:"0 0 20 54",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[t.jsx("path",{d:"M0.260742 1.57324L15.4268 10.8262C17.9563 12.3695 19.4999 15.1188 19.5 18.082V37.0273C19.4999 40.16 17.7767 43.0386 15.0156 44.5186L0.236328 52.4404L-0.5 52.835V1.10938L0.260742 1.57324Z",fill:"#F8FAFC",stroke:"#E0E0E0"}),t.jsx("path",{d:"M7.5 32L12.5 27L7.5 22",stroke:"#111827",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})]}))},l=function(){return t.jsxs("svg",e.__assign({width:"21",height:"54",viewBox:"0 0 21 54",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[t.jsx("path",{d:"M1.26074 1.57324L16.4268 10.8262C18.9563 12.3695 20.4999 15.1188 20.5 18.082V37.0273C20.4999 40.16 18.7767 43.0386 16.0156 44.5186L1.23633 52.4404L0.5 52.835V1.10938L1.26074 1.57324Z",fill:"#F8FAFC",stroke:"#E0E0E0"}),t.jsx("path",{d:"M13.5 32L8.5 27L13.5 22",stroke:"black",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})]}))},o=function(){return t.jsxs("svg",e.__assign({xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 12 12",fill:"none"},{children:[t.jsx("path",{d:"M7.58186 3.15354C7.51731 2.83771 7.06604 2.83771 7.00148 3.15354C6.60544 5.09119 5.09119 6.60544 3.15355 7.00148C2.83771 7.06603 2.83771 7.5173 3.15355 7.58185C5.09119 7.97789 6.60544 9.49215 7.00148 11.4298C7.06604 11.7456 7.51731 11.7456 7.58186 11.4298C7.9779 9.49215 9.49215 7.97789 11.4298 7.58185C11.7456 7.5173 11.7456 7.06603 11.4298 7.00148C9.49215 6.60544 7.9779 5.09119 7.58186 3.15354Z",fill:"#087443"}),t.jsx("path",{d:"M2.20669 0.0156637C2.20243 -0.00522128 2.17258 -0.0052212 2.16832 0.0156638C1.94676 1.09964 1.09964 1.94676 0.0156679 2.16831C-0.0052166 2.17258 -0.0052166 2.20242 0.0156679 2.20669C1.09964 2.42825 1.94676 3.27536 2.16832 4.35934C2.17258 4.38022 2.20243 4.38022 2.20669 4.35934C2.42825 3.27536 3.27537 2.42824 4.35934 2.20669C4.38023 2.20242 4.38023 2.17258 4.35934 2.16831C3.27537 1.94676 2.42825 1.09964 2.20669 0.0156637Z",fill:"#087443"})]}))},c=function(){return t.jsx("svg",e.__assign({xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 16 16",fill:"none"},{children:t.jsx("path",{d:"M3.125 2.75C3.02554 2.75 2.93016 2.78951 2.85983 2.85983C2.78951 2.93016 2.75 3.02554 2.75 3.125V6.125C2.75 6.22446 2.71049 6.31984 2.64017 6.39016C2.56984 6.46049 2.47446 6.5 2.375 6.5C2.27554 6.5 2.18016 6.46049 2.10983 6.39016C2.03951 6.31984 2 6.22446 2 6.125V3.125C2 2.82663 2.11853 2.54048 2.3295 2.3295C2.54048 2.11853 2.82663 2 3.125 2H6.125C6.22446 2 6.31984 2.03951 6.39016 2.10983C6.46049 2.18016 6.5 2.27554 6.5 2.375C6.5 2.47446 6.46049 2.56984 6.39016 2.64017C6.31984 2.71049 6.22446 2.75 6.125 2.75H3.125ZM9.5 2.375C9.5 2.27554 9.53951 2.18016 9.60983 2.10983C9.68016 2.03951 9.77554 2 9.875 2H12.875C13.1734 2 13.4595 2.11853 13.6705 2.3295C13.8815 2.54048 14 2.82663 14 3.125V6.125C14 6.22446 13.9605 6.31984 13.8902 6.39016C13.8198 6.46049 13.7245 6.5 13.625 6.5C13.5255 6.5 13.4302 6.46049 13.3598 6.39016C13.2895 6.31984 13.25 6.22446 13.25 6.125V3.125C13.25 3.02554 13.2105 2.93016 13.1402 2.85983C13.0698 2.78951 12.9745 2.75 12.875 2.75H9.875C9.77554 2.75 9.68016 2.71049 9.60983 2.64017C9.53951 2.56984 9.5 2.47446 9.5 2.375ZM2.375 9.5C2.47446 9.5 2.56984 9.53951 2.64017 9.60983C2.71049 9.68016 2.75 9.77554 2.75 9.875V12.875C2.75 12.9745 2.78951 13.0698 2.85983 13.1402C2.93016 13.2105 3.02554 13.25 3.125 13.25H6.125C6.22446 13.25 6.31984 13.2895 6.39016 13.3598C6.46049 13.4302 6.5 13.5255 6.5 13.625C6.5 13.7245 6.46049 13.8198 6.39016 13.8902C6.31984 13.9605 6.22446 14 6.125 14H3.125C2.82663 14 2.54048 13.8815 2.3295 13.6705C2.11853 13.4595 2 13.1734 2 12.875V9.875C2 9.77554 2.03951 9.68016 2.10983 9.60983C2.18016 9.53951 2.27554 9.5 2.375 9.5ZM13.625 9.5C13.7245 9.5 13.8198 9.53951 13.8902 9.60983C13.9605 9.68016 14 9.77554 14 9.875V12.875C14 13.1734 13.8815 13.4595 13.6705 13.6705C13.4595 13.8815 13.1734 14 12.875 14H9.875C9.77554 14 9.68016 13.9605 9.60983 13.8902C9.53951 13.8198 9.5 13.7245 9.5 13.625C9.5 13.5255 9.53951 13.4302 9.60983 13.3598C9.68016 13.2895 9.77554 13.25 9.875 13.25H12.875C12.9745 13.25 13.0698 13.2105 13.1402 13.1402C13.2105 13.0698 13.25 12.9745 13.25 12.875V9.875C13.25 9.77554 13.2895 9.68016 13.3598 9.60983C13.4302 9.53951 13.5255 9.5 13.625 9.5Z",fill:"#7A5AF8",stroke:"#7A5AF8","stroke-width":"0.5"})}))};exports.default=function(r){var d=r.left,u=r.right,f=r.defaultLeftWidth,h=void 0===f?50:f,x=r.minLeftWidth,g=void 0===x?250:x,v=r.minRightWidth,C=void 0===v?250:v,p=r.className,_=void 0===p?"":p,m=r.height,j=void 0===m?"400px":m,w=r.width,N=void 0===w?"100%":w,H=r.header,L=r.onLeftWidthChange,B=r.openInFullscreen,A=void 0!==B&&B,k=r.onFullscreenClose,M=n.useState(h),V=M[0],b=M[1],E=n.useState(h),S=E[0],F=E[1],z=n.useState(!1),y=z[0],R=z[1],D=n.useState(!1),O=D[0],P=D[1],q=n.useState(!1),T=q[0],Z=q[1],I=n.useState(0),W=I[0],X=I[1],U=n.useState(0),Y=U[0],G=U[1],J=n.useState(A),K=J[0],Q=J[1],$=n.useRef(null),ee=n.useRef(null),te=n.useRef(null),ne=n.useRef(null);n.useEffect(function(){var e=$.current;e&&(K?(e.showModal(),requestAnimationFrame(function(){if(ne.current){var e=ne.current.getBoundingClientRect().width;G(e),b(h),F(h),P(!1),Z(!1)}})):(e.close(),b(h),F(h),P(!1),Z(!1),null==k||k()))},[K]),n.useEffect(function(){var e=ne.current;if(e&&K){var t,n=new ResizeObserver(function(e){var n=e[0];t=requestAnimationFrame(function(){G(n.contentRect.width)})});return n.observe(e),function(){cancelAnimationFrame(t),n.disconnect()}}},[K]),n.useEffect(function(){var e=ee.current;if(e){var t,n=new ResizeObserver(function(e){var n=e[0];t=requestAnimationFrame(function(){X(n.contentRect.width)})});return n.observe(e),X(e.getBoundingClientRect().width),function(){cancelAnimationFrame(t),n.disconnect()}}},[]);var ae=W>0&&W<500,ie=function(e){e.preventDefault(),R(!0)};n.useEffect(function(){var e=function(e){if(y)if(ae&&te.current){var t=te.current.getBoundingClientRect(),n=t.height,a=e.clientY-t.top;if(a>=g&&n-a-4>=C)F(a/n*100)}else if(!ae){var i=K?ne.current:ee.current;if(!i)return;var s=i.getBoundingClientRect(),l=s.width,o=e.clientX-s.left;if(o>=g&&l-o-4>=C)b(o/l*100),null==L||L(o)}},t=function(){R(!1)};return y&&(document.addEventListener("mousemove",e),document.addEventListener("mouseup",t)),function(){document.removeEventListener("mousemove",e),document.removeEventListener("mouseup",t)}},[y,ae,K,g,C,L]);var se,le=function(){O?(b(50),F(50),P(!1)):P(!0)},oe=function(){T?(b(50),F(50),Z(!1)):Z(!0)},ce=K?Y:W,re=V/100*ce,de=ce-re-4,ue=K?500:250;se=ae?T?{flex:1}:{height:"".concat(S,"%")}:T?{flex:1}:{width:"".concat(V,"%")};var fe,he=!ae&&!O&&re<=Math.max(g+10,ue),xe=!ae&&!T&&de<=Math.max(C+10,ue),ge=function(e){return e>=80?i.default.confidenceScoreHigh:e>=60?i.default.confidenceScoreMedium:i.default.confidenceScoreLow},ve="number"==typeof j?"".concat(j,"px"):j,Ce="number"==typeof N?"".concat(N,"px"):N;return t.jsxs(t.Fragment,{children:[t.jsxs("div",e.__assign({ref:ee,className:"".concat(i.default.container," ").concat(ae?i.default.containerVertical:i.default.containerHorizontal," ").concat(_),style:{height:ae?"auto":ve,width:Ce}},{children:[H&&t.jsxs("div",e.__assign({className:i.default.header},{children:[t.jsxs("div",e.__assign({className:i.default.headerLeft},{children:[H.showDocIcon&&t.jsx(a.FileText,{className:i.default.headerIcon}),t.jsx("div",e.__assign({className:i.default.headerTitle},{children:H.title&&t.jsx("span",e.__assign({className:i.default.headerTitleText},{children:H.title}))}))]})),t.jsxs("div",e.__assign({className:i.default.headerActions},{children:[void 0!==H.confidenceScore&&t.jsxs("div",e.__assign({className:"".concat(i.default.confidenceScore," ").concat(ge(H.confidenceScore))},{children:[t.jsx("div",e.__assign({style:{width:"16px",height:"16px"}},{children:t.jsx(o,{})})),t.jsxs("div",{children:[Math.round(H.confidenceScore),"%"]})]})),t.jsx("button",e.__assign({className:i.default.fullscreenButton,onClick:function(){return Q(!0)},title:"Open fullscreen"},{children:t.jsx(c,{})}))]}))]})),(fe=!1,t.jsxs("div",e.__assign({ref:fe?void 0:te,className:"".concat(i.default.contentArea," ").concat(ae?i.default.contentAreaVertical:i.default.contentAreaHorizontal)},{children:[!O&&t.jsx("div",e.__assign({className:"".concat(i.default.panel," ").concat(ae?i.default.panelVertical:""),style:e.__assign(e.__assign({},se),ae?{height:ve}:{})},{children:d})),O&&t.jsx("button",e.__assign({onClick:le,className:"".concat(i.default.expandButton," ").concat(ae?i.default.expandButtonVertical:i.default.expandButtonHorizontal),title:ae?"Expand top panel (50/50)":"Expand left panel (50/50)"},{children:ae?t.jsx(a.ChevronDown,{size:14}):t.jsx(s,{})})),!O&&!T&&t.jsxs("div",e.__assign({onMouseDown:ie,className:"".concat(i.default.divider," ").concat(ae?i.default.dividerVertical:i.default.dividerHorizontal," ").concat(y?i.default.dividerDragging:i.default.dividerIdle)},{children:[t.jsx("div",{className:"".concat(i.default.dividerHitArea," ").concat(ae?i.default.dividerHitAreaVertical:i.default.dividerHitAreaHorizontal)}),he&&t.jsx("button",e.__assign({onClick:function(e){e.stopPropagation(),le()},onMouseDown:function(e){return e.stopPropagation()},className:i.default.collapseButton,title:"Collapse left panel"},{children:t.jsx(l,{})})),xe&&t.jsx("button",e.__assign({onClick:function(e){e.stopPropagation(),oe()},onMouseDown:function(e){return e.stopPropagation()},className:i.default.collapseButton,title:"Collapse right panel"},{children:t.jsx(s,{})}))]})),!T&&t.jsx("div",e.__assign({className:"".concat(i.default.panel," ").concat(ae?i.default.panelVertical:""),style:e.__assign({flex:1},ae?{height:ve}:{})},{children:u})),T&&t.jsx("button",e.__assign({onClick:oe,className:"".concat(i.default.expandButton," ").concat(ae?i.default.expandButtonBottomVertical:i.default.expandButtonRightHorizontal),title:ae?"Expand bottom panel (50/50)":"Expand right panel (50/50)"},{children:ae?t.jsx(a.ChevronUp,{size:14}):t.jsx(l,{})})),y&&t.jsx("div",{className:"".concat(i.default.dragOverlay," ").concat(ae?i.default.dragOverlayVertical:i.default.dragOverlayHorizontal)})]})))]})),t.jsx("dialog",e.__assign({ref:$,className:i.default.dialogOverlay,onClose:function(){return Q(!1)}},{children:t.jsxs("div",e.__assign({ref:ne,className:i.default.dialogContent},{children:[H&&t.jsxs("div",e.__assign({className:i.default.header},{children:[t.jsxs("div",e.__assign({className:i.default.headerLeft},{children:[H.showDocIcon&&t.jsx(a.FileText,{className:i.default.headerIcon}),t.jsx("div",e.__assign({className:i.default.headerTitle},{children:H.title&&t.jsx(t.Fragment,{children:t.jsx("span",e.__assign({className:i.default.headerTitleText},{children:H.title}))})}))]})),t.jsxs("div",e.__assign({className:i.default.headerActions},{children:[void 0!==H.confidenceScore&&t.jsxs("div",e.__assign({className:"".concat(i.default.confidenceScore," ").concat(ge(H.confidenceScore))},{children:[t.jsx("div",e.__assign({style:{width:"16px",height:"16px"}},{children:t.jsx(o,{})})),t.jsxs("div",{children:[Math.round(H.confidenceScore),"%"]})]})),t.jsx("button",e.__assign({className:i.default.fullscreenButton,onClick:function(){return Q(!1)},title:"Close fullscreen"},{children:t.jsx(a.X,{size:20,color:"#5928ed"})}))]}))]})),t.jsxs("div",e.__assign({className:"".concat(i.default.contentArea," ").concat(i.default.contentAreaHorizontal," ").concat(i.default.dialogContentArea)},{children:[!O&&t.jsx("div",e.__assign({className:i.default.panel,style:se},{children:d})),O&&t.jsx("button",e.__assign({onClick:le,className:"".concat(i.default.expandButton," ").concat(i.default.expandButtonHorizontal),title:"Expand left panel (50/50)"},{children:t.jsx(s,{})})),!O&&!T&&t.jsxs("div",e.__assign({onMouseDown:ie,className:"".concat(i.default.divider," ").concat(i.default.dividerHorizontal," ").concat(y?i.default.dividerDragging:i.default.dividerIdle)},{children:[t.jsx("div",{className:"".concat(i.default.dividerHitArea," ").concat(i.default.dividerHitAreaHorizontal)}),he&&t.jsx("button",e.__assign({onClick:function(e){e.stopPropagation(),le()},onMouseDown:function(e){return e.stopPropagation()},className:i.default.collapseButton,title:"Collapse left panel"},{children:t.jsx(l,{})})),xe&&t.jsx("button",e.__assign({onClick:function(e){e.stopPropagation(),oe()},onMouseDown:function(e){return e.stopPropagation()},className:i.default.collapseButton,title:"Collapse right panel"},{children:t.jsx(s,{})}))]})),!T&&t.jsx("div",e.__assign({className:i.default.panel,style:{flex:1}},{children:u})),T&&t.jsx("button",e.__assign({onClick:oe,className:"".concat(i.default.expandButton," ").concat(i.default.expandButtonRightHorizontal),title:"Expand right panel (50/50)"},{children:t.jsx(l,{})})),y&&t.jsx("div",{className:"".concat(i.default.dragOverlay," ").concat(i.default.dragOverlayHorizontal)})]}))]}))}))]})};
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),n=require("react"),a=require("lucide-react"),s=require("./Splitter.module.css.js"),i=function(){return t.jsxs("svg",e.__assign({width:"21",height:"54",viewBox:"0 0 20 54",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[t.jsx("path",{d:"M0.260742 1.57324L15.4268 10.8262C17.9563 12.3695 19.4999 15.1188 19.5 18.082V37.0273C19.4999 40.16 17.7767 43.0386 15.0156 44.5186L0.236328 52.4404L-0.5 52.835V1.10938L0.260742 1.57324Z",fill:"#F8FAFC",stroke:"#E0E0E0"}),t.jsx("path",{d:"M7.5 32L12.5 27L7.5 22",stroke:"#111827",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})]}))},o=function(){return t.jsxs("svg",e.__assign({width:"21",height:"54",viewBox:"0 0 21 54",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[t.jsx("path",{d:"M1.26074 1.57324L16.4268 10.8262C18.9563 12.3695 20.4999 15.1188 20.5 18.082V37.0273C20.4999 40.16 18.7767 43.0386 16.0156 44.5186L1.23633 52.4404L0.5 52.835V1.10938L1.26074 1.57324Z",fill:"#F8FAFC",stroke:"#E0E0E0"}),t.jsx("path",{d:"M13.5 32L8.5 27L13.5 22",stroke:"black",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})]}))},l=function(){return t.jsxs("svg",e.__assign({xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 12 12",fill:"none"},{children:[t.jsx("path",{d:"M7.58186 3.15354C7.51731 2.83771 7.06604 2.83771 7.00148 3.15354C6.60544 5.09119 5.09119 6.60544 3.15355 7.00148C2.83771 7.06603 2.83771 7.5173 3.15355 7.58185C5.09119 7.97789 6.60544 9.49215 7.00148 11.4298C7.06604 11.7456 7.51731 11.7456 7.58186 11.4298C7.9779 9.49215 9.49215 7.97789 11.4298 7.58185C11.7456 7.5173 11.7456 7.06603 11.4298 7.00148C9.49215 6.60544 7.9779 5.09119 7.58186 3.15354Z",fill:"#087443"}),t.jsx("path",{d:"M2.20669 0.0156637C2.20243 -0.00522128 2.17258 -0.0052212 2.16832 0.0156638C1.94676 1.09964 1.09964 1.94676 0.0156679 2.16831C-0.0052166 2.17258 -0.0052166 2.20242 0.0156679 2.20669C1.09964 2.42825 1.94676 3.27536 2.16832 4.35934C2.17258 4.38022 2.20243 4.38022 2.20669 4.35934C2.42825 3.27536 3.27537 2.42824 4.35934 2.20669C4.38023 2.20242 4.38023 2.17258 4.35934 2.16831C3.27537 1.94676 2.42825 1.09964 2.20669 0.0156637Z",fill:"#087443"})]}))},c=function(){return t.jsx("svg",e.__assign({xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 16 16",fill:"none"},{children:t.jsx("path",{d:"M3.125 2.75C3.02554 2.75 2.93016 2.78951 2.85983 2.85983C2.78951 2.93016 2.75 3.02554 2.75 3.125V6.125C2.75 6.22446 2.71049 6.31984 2.64017 6.39016C2.56984 6.46049 2.47446 6.5 2.375 6.5C2.27554 6.5 2.18016 6.46049 2.10983 6.39016C2.03951 6.31984 2 6.22446 2 6.125V3.125C2 2.82663 2.11853 2.54048 2.3295 2.3295C2.54048 2.11853 2.82663 2 3.125 2H6.125C6.22446 2 6.31984 2.03951 6.39016 2.10983C6.46049 2.18016 6.5 2.27554 6.5 2.375C6.5 2.47446 6.46049 2.56984 6.39016 2.64017C6.31984 2.71049 6.22446 2.75 6.125 2.75H3.125ZM9.5 2.375C9.5 2.27554 9.53951 2.18016 9.60983 2.10983C9.68016 2.03951 9.77554 2 9.875 2H12.875C13.1734 2 13.4595 2.11853 13.6705 2.3295C13.8815 2.54048 14 2.82663 14 3.125V6.125C14 6.22446 13.9605 6.31984 13.8902 6.39016C13.8198 6.46049 13.7245 6.5 13.625 6.5C13.5255 6.5 13.4302 6.46049 13.3598 6.39016C13.2895 6.31984 13.25 6.22446 13.25 6.125V3.125C13.25 3.02554 13.2105 2.93016 13.1402 2.85983C13.0698 2.78951 12.9745 2.75 12.875 2.75H9.875C9.77554 2.75 9.68016 2.71049 9.60983 2.64017C9.53951 2.56984 9.5 2.47446 9.5 2.375ZM2.375 9.5C2.47446 9.5 2.56984 9.53951 2.64017 9.60983C2.71049 9.68016 2.75 9.77554 2.75 9.875V12.875C2.75 12.9745 2.78951 13.0698 2.85983 13.1402C2.93016 13.2105 3.02554 13.25 3.125 13.25H6.125C6.22446 13.25 6.31984 13.2895 6.39016 13.3598C6.46049 13.4302 6.5 13.5255 6.5 13.625C6.5 13.7245 6.46049 13.8198 6.39016 13.8902C6.31984 13.9605 6.22446 14 6.125 14H3.125C2.82663 14 2.54048 13.8815 2.3295 13.6705C2.11853 13.4595 2 13.1734 2 12.875V9.875C2 9.77554 2.03951 9.68016 2.10983 9.60983C2.18016 9.53951 2.27554 9.5 2.375 9.5ZM13.625 9.5C13.7245 9.5 13.8198 9.53951 13.8902 9.60983C13.9605 9.68016 14 9.77554 14 9.875V12.875C14 13.1734 13.8815 13.4595 13.6705 13.6705C13.4595 13.8815 13.1734 14 12.875 14H9.875C9.77554 14 9.68016 13.9605 9.60983 13.8902C9.53951 13.8198 9.5 13.7245 9.5 13.625C9.5 13.5255 9.53951 13.4302 9.60983 13.3598C9.68016 13.2895 9.77554 13.25 9.875 13.25H12.875C12.9745 13.25 13.0698 13.2105 13.1402 13.1402C13.2105 13.0698 13.25 12.9745 13.25 12.875V9.875C13.25 9.77554 13.2895 9.68016 13.3598 9.60983C13.4302 9.53951 13.5255 9.5 13.625 9.5Z",fill:"#7A5AF8",stroke:"#7A5AF8","stroke-width":"0.5"})}))};exports.default=function(d){var r=d.left,u=d.right,f=d.defaultLeftWidth,h=void 0===f?50:f,x=d.minLeftWidth,g=void 0===x?250:x,v=d.minRightWidth,C=void 0===v?250:v,p=d.className,_=void 0===p?"":p,m=d.height,j=void 0===m?"400px":m,w=d.width,N=void 0===w?"100%":w,H=d.header,L=d.onLeftWidthChange,k=d.openInFullscreen,M=void 0!==k&&k,A=d.onFullscreenClose,B=n.useState(h),b=B[0],F=B[1],S=n.useState(!1),E=S[0],z=S[1],y=n.useState(!1),R=y[0],V=y[1],D=n.useState(!1),O=D[0],P=D[1],q=n.useState(0),T=q[0],Z=q[1],I=n.useState(0),W=I[0],X=I[1],G=n.useState(M),J=G[0],K=G[1],Q=n.useRef(null),U=n.useRef(null),Y=n.useRef(null);n.useEffect(function(){var e=Q.current;e&&(J?(e.showModal(),requestAnimationFrame(function(){if(Y.current){var e=Y.current.getBoundingClientRect().width;X(e),F(h),V(!1),P(!1)}})):(e.close(),F(h),V(!1),P(!1),null==A||A()))},[J]),n.useEffect(function(){var e=Y.current;if(e&&J){var t,n=new ResizeObserver(function(e){var n=e[0];t=requestAnimationFrame(function(){X(n.contentRect.width)})});return n.observe(e),function(){cancelAnimationFrame(t),n.disconnect()}}},[J]),n.useEffect(function(){var e=U.current;if(e){var t,n=new ResizeObserver(function(e){var n=e[0];t=requestAnimationFrame(function(){Z(n.contentRect.width)})});return n.observe(e),Z(e.getBoundingClientRect().width),function(){cancelAnimationFrame(t),n.disconnect()}}},[]);var $=function(e){e.preventDefault(),z(!0)};n.useEffect(function(){var e=function(e){if(E){var t=J?Y.current:U.current;if(t){var n=t.getBoundingClientRect(),a=n.width,s=e.clientX-n.left;if(s>=g&&a-s-4>=C)F(s/a*100),null==L||L(s)}}},t=function(){z(!1)};return E&&(document.addEventListener("mousemove",e),document.addEventListener("mouseup",t)),function(){document.removeEventListener("mousemove",e),document.removeEventListener("mouseup",t)}},[E,J,g,C,L]);var ee=function(){R?(F(50),V(!1)):V(!0)},te=function(){O?(F(50),P(!1)):P(!0)},ne=J?W:T,ae=b/100*ne,se=ne-ae-4,ie=J?500:250,oe=O?{flex:1}:{width:"".concat(b,"%")},le=!R&&ae<=Math.max(g+10,ie),ce=!O&&se<=Math.max(C+10,ie),de=function(e){return e>=80?s.default.confidenceScoreHigh:e>=60?s.default.confidenceScoreMedium:s.default.confidenceScoreLow},re="number"==typeof j?"".concat(j,"px"):j,ue="number"==typeof N?"".concat(N,"px"):N;return t.jsxs(t.Fragment,{children:[t.jsxs("div",e.__assign({ref:U,className:"".concat(s.default.container," ").concat(s.default.containerHorizontal," ").concat(_),style:{height:re,width:ue}},{children:[H&&t.jsxs("div",e.__assign({className:s.default.header},{children:[t.jsxs("div",e.__assign({className:s.default.headerLeft},{children:[H.showDocIcon&&t.jsx(a.FileText,{className:s.default.headerIcon}),t.jsx("div",e.__assign({className:s.default.headerTitle},{children:H.title&&t.jsx("span",e.__assign({className:s.default.headerTitleText},{children:H.title}))}))]})),t.jsxs("div",e.__assign({className:s.default.headerActions},{children:[void 0!==H.confidenceScore&&t.jsxs("div",e.__assign({className:"".concat(s.default.confidenceScore," ").concat(de(H.confidenceScore))},{children:[t.jsx("div",e.__assign({style:{width:"16px",height:"16px"}},{children:t.jsx(l,{})})),t.jsxs("div",{children:[Math.round(H.confidenceScore),"%"]})]})),t.jsx("button",e.__assign({className:s.default.fullscreenButton,onClick:function(){return K(!0)},title:"Open fullscreen"},{children:t.jsx(c,{})}))]}))]})),t.jsxs("div",e.__assign({className:"".concat(s.default.contentArea," ").concat(s.default.contentAreaHorizontal)},{children:[!R&&t.jsx("div",e.__assign({className:s.default.panel,style:oe},{children:r})),R&&t.jsx("button",e.__assign({onClick:ee,className:"".concat(s.default.expandButton," ").concat(s.default.expandButtonHorizontal),title:"Expand left panel (50/50)"},{children:t.jsx(i,{})})),!R&&!O&&t.jsxs("div",e.__assign({onMouseDown:$,className:"".concat(s.default.divider," ").concat(s.default.dividerHorizontal," ").concat(E?s.default.dividerDragging:s.default.dividerIdle)},{children:[t.jsx("div",{className:"".concat(s.default.dividerHitArea," ").concat(s.default.dividerHitAreaHorizontal)}),le&&t.jsx("button",e.__assign({onClick:function(e){e.stopPropagation(),ee()},onMouseDown:function(e){return e.stopPropagation()},className:s.default.collapseButton,title:"Collapse left panel"},{children:t.jsx(o,{})})),ce&&t.jsx("button",e.__assign({onClick:function(e){e.stopPropagation(),te()},onMouseDown:function(e){return e.stopPropagation()},className:s.default.collapseButton,title:"Collapse right panel"},{children:t.jsx(i,{})}))]})),!O&&t.jsx("div",e.__assign({className:s.default.panel,style:{flex:1}},{children:u})),O&&t.jsx("button",e.__assign({onClick:te,className:"".concat(s.default.expandButton," ").concat(s.default.expandButtonRightHorizontal),title:"Expand right panel (50/50)"},{children:t.jsx(o,{})})),E&&t.jsx("div",{className:"".concat(s.default.dragOverlay," ").concat(s.default.dragOverlayHorizontal)})]}))]})),t.jsx("dialog",e.__assign({ref:Q,className:s.default.dialogOverlay,onClose:function(){return K(!1)}},{children:t.jsxs("div",e.__assign({ref:Y,className:s.default.dialogContent},{children:[H&&t.jsxs("div",e.__assign({className:s.default.header},{children:[t.jsxs("div",e.__assign({className:s.default.headerLeft},{children:[H.showDocIcon&&t.jsx(a.FileText,{className:s.default.headerIcon}),t.jsx("div",e.__assign({className:s.default.headerTitle},{children:H.title&&t.jsx(t.Fragment,{children:t.jsx("span",e.__assign({className:s.default.headerTitleText},{children:H.title}))})}))]})),t.jsxs("div",e.__assign({className:s.default.headerActions},{children:[void 0!==H.confidenceScore&&t.jsxs("div",e.__assign({className:"".concat(s.default.confidenceScore," ").concat(de(H.confidenceScore))},{children:[t.jsx("div",e.__assign({style:{width:"16px",height:"16px"}},{children:t.jsx(l,{})})),t.jsxs("div",{children:[Math.round(H.confidenceScore),"%"]})]})),t.jsx("button",e.__assign({className:s.default.fullscreenButton,onClick:function(){return K(!1)},title:"Close fullscreen"},{children:t.jsx(a.X,{size:20,color:"#5928ed"})}))]}))]})),t.jsxs("div",e.__assign({className:"".concat(s.default.contentArea," ").concat(s.default.contentAreaHorizontal," ").concat(s.default.dialogContentArea)},{children:[!R&&t.jsx("div",e.__assign({className:s.default.panel,style:oe},{children:r})),R&&t.jsx("button",e.__assign({onClick:ee,className:"".concat(s.default.expandButton," ").concat(s.default.expandButtonHorizontal),title:"Expand left panel (50/50)"},{children:t.jsx(i,{})})),!R&&!O&&t.jsxs("div",e.__assign({onMouseDown:$,className:"".concat(s.default.divider," ").concat(s.default.dividerHorizontal," ").concat(E?s.default.dividerDragging:s.default.dividerIdle)},{children:[t.jsx("div",{className:"".concat(s.default.dividerHitArea," ").concat(s.default.dividerHitAreaHorizontal)}),le&&t.jsx("button",e.__assign({onClick:function(e){e.stopPropagation(),ee()},onMouseDown:function(e){return e.stopPropagation()},className:s.default.collapseButton,title:"Collapse left panel"},{children:t.jsx(o,{})})),ce&&t.jsx("button",e.__assign({onClick:function(e){e.stopPropagation(),te()},onMouseDown:function(e){return e.stopPropagation()},className:s.default.collapseButton,title:"Collapse right panel"},{children:t.jsx(i,{})}))]})),!O&&t.jsx("div",e.__assign({className:s.default.panel,style:{flex:1}},{children:u})),O&&t.jsx("button",e.__assign({onClick:te,className:"".concat(s.default.expandButton," ").concat(s.default.expandButtonRightHorizontal),title:"Expand right panel (50/50)"},{children:t.jsx(o,{})})),E&&t.jsx("div",{className:"".concat(s.default.dragOverlay," ").concat(s.default.dragOverlayHorizontal)})]}))]}))}))]})};
|
|
2
2
|
//# sourceMappingURL=SplitterCitationsComponent.js.map
|
package/dist/cjs/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./features/CodeCitation/CodeCitation.js"),t=require("./features/ProjectAccordion/ProjectAccordion.js"),i=require("./features/BookCitation/BookCitation.js"),o=require("./features/Bookemon/Bookemon.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./features/CodeCitation/CodeCitation.js"),t=require("./features/ProjectAccordion/ProjectAccordion.js"),i=require("./features/BookCitation/BookCitation.js"),o=require("./features/Bookemon/Bookemon.js"),n=require("./features/PdfEditorCitation/PdfEditorCitation.js"),r=require("./features/CitationRenderer/CitationRenderer.js"),a=require("./features/CitationRenderer/MarkdownRenderer.js"),s=require("./features/CodeCitation/_components/CodeEditor.js"),u=require("./features/PaginatedTable/PaginatedTable.js"),C=require("./features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.js"),d=require("./features/ChatCitation/ChatCitationRenderer.js"),f=require("./features/CognitiveDecisioning/CognitiveDecisioningWrapper.js"),p=require("./features/PdfViewer/PdfViewer.js"),l=require("./features/CognitiveDecisioning/FaqCitation/FaqCitation.js"),g=require("./features/RequirementAiCitations/ImageCitation/ImageCitationContent.js"),x=require("./features/RequirementAiCitations/VideoCitation/VideoCitationContent.js"),q=require("./features/RequirementAiCitations/FileCitation/FileCitationContent.js"),j=require("./features/RequirementAiCitations/WebCitation/WebCitationWithImageContent.js"),c=require("./features/MarkdownWithImageCitation/MarkdownWithImageCitation.js"),m=require("./features/RequirementAiCitations/AiReasoning/AiReasoningCitation.js"),I=require("./features/TableCitation/TableCitationContent.js"),R=require("./features/CitationViewer/CitationsViewer.js"),S=require("./features/ExcelCitation/ExcelCitations.js"),T=require("./features/ScannedDocCitation/ScannedDocCitation.js"),E=require("./features/ChatDrawer/ChatDrawer.js"),D=require("./features/ChatDrawer/constants/ChatDrawer.js"),A=require("./features/SplitterCitations/SplitterCitationsComponent.js"),P=require("./features/CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.js"),w=require("./features/TextualGuidelines/TextualGuideLinesComponent.js"),h=require("./features/IngestionStatus/IngestionStatusComponent.js");exports.CodeCitation=e.default,exports.ProjectAccordian=t.default,exports.BookCitation=i.default,exports.Bookemon=o.default,exports.PdfCitation=n.PdfEditorCitation,exports.CitationRenderer=r.default,exports.MarkdownRenderer=a.default,Object.defineProperty(exports,"DiagnosticSeverity",{enumerable:!0,get:function(){return s.DiagnosticSeverity}}),exports.PaginatedTable=u.default,exports.InternalgptReasoningComponent=C.default,exports.NonWebReasoningComponent=C.default,exports.ChatCitation=d.default,exports.CognitiveDecisioningCard=f.default,exports.PdfViewer=p.default,exports.FaqCitation=l.default,exports.ImageCitationContent=g.default,exports.VideoCitationContent=x.default,exports.FileCitationContent=q.default,exports.WebCitationWithImageContent=j.default,exports.MarkdownWithImageCitation=c.default,exports.AiReasoningCitation=m.default,exports.TableCitationContent=I.default,exports.CitationsViewer=R.default,exports.ExcelCitation=S.default,exports.ScannedDocCitation=T.default,exports.ChatDrawer=E.default,exports.FILE_INGESTION_STATUS=D.FILE_INGESTION_STATUS,exports.SUMMARY_EXPAND_HEIGHT_NUDGE=D.SUMMARY_EXPAND_HEIGHT_NUDGE,exports.TRUNCATE_THRESHOLD=D.TRUNCATE_THRESHOLD,exports.SplitterCitationsComponent=A.default,exports.CognitiveInternalgptCoreComponent=P.default,exports.TextualGuideLinesComponent=w.default,exports.IngestionStatusChip=h.IngestionStatusChip,exports.IngestionStatusComponent=h.IngestionStatusComponent;
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as e}from"tslib";import{jsx as n,jsxs as s,Fragment as r}from"react/jsx-runtime";import t from"./ingestion.module.css.js";import{useIngestionWebSocket as o}from"./useIngestionStatus.js";var a={ingested:{label:"Ingested",className:t.ingested},failed:{label:"Ingestion Failed",className:t.failed},in_progress:{label:"Ingesting...",className:t.inProgress},pending:{label:"Pending",className:t.pending}};var i=function(o){var i=o.status,l=o.label,u=o.percentage,c=o.customConfig;if(c)return n("span",e({className:t.chip,style:{border:"1px solid ".concat(c.borderColor),background:c.background,color:c.color}},{children:null!=l?l:c.label}));if("custom"===i)return null;var d=a[i];if(!d)return null;var g="in_progress"===i&&void 0!==u;return n("span",e({className:"".concat(t.chip," ").concat(d.className)},{children:g?s(r,{children:[null!=l?l:"Ingesting",n("span",{className:t.dot}),"".concat(u,"%")]}):null!=l?l:d.label}))},l=new Set(["DONE","COMPLETED","FAILED"]),u=function(e){var s,r,t,a,u=e.ingestionId,c=e.status,d=e.wsBaseUrl,g=e.showPercentage,p=void 0===g||g,m=e.statusMap,v=e.customStatusConfigs,f=!!c&&l.has(c.toUpperCase()),b=o(!f&&u?u:null,d).data,N=f?c:null!==(r=null!==(s=null==b?void 0:b.ingestionStatus)&&void 0!==s?s:c)&&void 0!==r?r:"",C=N?function(e,n){if(!e)return"custom";if(n){if(void 0!==n[e])return n[e];var s=e.toUpperCase();if(void 0!==n[s])return n[s]}return"custom"}(N,m):"pending",h=v?null!==(a=null!==(t=v[C])&&void 0!==t?t:v[N])&&void 0!==a?a:v[N.toUpperCase()]:void 0,I=!f&&void 0!==(null==b?void 0:b.currentProgress)&&p?b.currentProgress:void 0;return n(i,{status:C,percentage:I,customConfig:h})};export{i as IngestionStatusChip,u as IngestionStatusComponent};
|
|
2
|
+
//# sourceMappingURL=IngestionStatusComponent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IngestionStatusComponent.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var e={chip:"ingestion-module_chip__LgrR-",dot:"ingestion-module_dot__Euc3-",ingested:"ingestion-module_ingested__1eMKY",failed:"ingestion-module_failed__NUIrq",inProgress:"ingestion-module_inProgress__EBGaw",pulse:"ingestion-module_pulse__vyf36",pending:"ingestion-module_pending__3SnDm"};!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const n=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;n&&e.setAttribute("nonce",n),e.appendChild(document.createTextNode(".ingestion-module_chip__LgrR-{align-items:center;border-radius:var(--tag-rounded-border-radius,12px);display:inline-flex;font-size:12px;font-weight:500;gap:6px;line-height:20px;padding:2px 10px;white-space:nowrap;width:fit-content}.ingestion-module_dot__Euc3-{border-radius:50%;flex-shrink:0;height:6px;width:6px}.ingestion-module_ingested__1eMKY{background:var(--green-50,#f0fdf4);border:1px solid var(--green-200,#bbf7d0);color:#15803d}.ingestion-module_ingested__1eMKY .ingestion-module_dot__Euc3-{background-color:#16a34a}.ingestion-module_failed__NUIrq{background:var(--red-50,#fef2f2);border:1px solid var(--red-200,#fecaca);color:#b91c1c}.ingestion-module_failed__NUIrq .ingestion-module_dot__Euc3-{background-color:#b91c1c}.ingestion-module_inProgress__EBGaw{background:var(--blue-50,#eff6ff);border:1px solid var(--blue-200,#bfdbfe);color:#1d4ed8}.ingestion-module_inProgress__EBGaw .ingestion-module_dot__Euc3-{animation:ingestion-module_pulse__vyf36 1.4s ease-in-out infinite;background-color:#3b82f6}.ingestion-module_pending__3SnDm{background:var(--gray-50,#f9fafb);border:1px solid var(--gray-200,#e5e7eb);color:#374151}.ingestion-module_pending__3SnDm .ingestion-module_dot__Euc3-{background-color:#9ca3af}@keyframes ingestion-module_pulse__vyf36{0%,to{opacity:1}50%{opacity:.3}}"));const o=document.head||document.getElementsByTagName("head")[0]||document.documentElement;o&&o.appendChild(e)}();export{e as default};
|
|
2
|
+
//# sourceMappingURL=ingestion.module.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ingestion.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{useState as e,useRef as n,useCallback as t,useEffect as r}from"react";var o=new Set(["DONE","COMPLETED","FAILED"]),c=new Map;function a(a,l){var u=e(null),i=u[0],s=u[1],v=e(!1),d=v[0],f=v[1],S=e(null),p=S[0],g=S[1],E=n(null),O=t(function(){var e;null===(e=E.current)||void 0===e||e.close(),E.current=null,f(!1)},[]);return r(function(){if(a){g(null),s(null);var e=c.get(a);e&&e.readyState!==WebSocket.CLOSED&&e.close();var n=new WebSocket("".concat(l,"/").concat(a));c.set(a,n),E.current=n,n.onopen=function(){return f(!0)};var t=setInterval(function(){n.readyState===WebSocket.OPEN&&n.send(JSON.stringify({type:"ping"}))},5e3);return n.onmessage=function(e){var r;try{var l=JSON.parse(e.data);s(l),o.has(null===(r=l.ingestionStatus)||void 0===r?void 0:r.toUpperCase())&&(clearInterval(t),n.close(),c.delete(a))}catch(e){g("Failed to parse WebSocket message")}},n.onerror=function(){return g("WebSocket connection error")},n.onclose=function(){return f(!1)},function(){clearInterval(t),n.close(),c.delete(a)}}},[a,l]),{data:i,connected:d,error:p,disconnect:O}}export{a as useIngestionWebSocket};
|
|
2
|
+
//# sourceMappingURL=useIngestionStatus.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useIngestionStatus.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e}from"tslib";import{jsxs as n,Fragment as t,jsx as i}from"react/jsx-runtime";import{useState as o,useRef as c,useEffect as a}from"react";import{FileText as r,X as l,ChevronDown as d,ChevronUp as s}from"lucide-react";import u from"./Splitter.module.css.js";var h=function(){return n("svg",e({width:"21",height:"54",viewBox:"0 0 20 54",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[i("path",{d:"M0.260742 1.57324L15.4268 10.8262C17.9563 12.3695 19.4999 15.1188 19.5 18.082V37.0273C19.4999 40.16 17.7767 43.0386 15.0156 44.5186L0.236328 52.4404L-0.5 52.835V1.10938L0.260742 1.57324Z",fill:"#F8FAFC",stroke:"#E0E0E0"}),i("path",{d:"M7.5 32L12.5 27L7.5 22",stroke:"#111827",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})]}))},v=function(){return n("svg",e({width:"21",height:"54",viewBox:"0 0 21 54",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[i("path",{d:"M1.26074 1.57324L16.4268 10.8262C18.9563 12.3695 20.4999 15.1188 20.5 18.082V37.0273C20.4999 40.16 18.7767 43.0386 16.0156 44.5186L1.23633 52.4404L0.5 52.835V1.10938L1.26074 1.57324Z",fill:"#F8FAFC",stroke:"#E0E0E0"}),i("path",{d:"M13.5 32L8.5 27L13.5 22",stroke:"black",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})]}))},f=function(){return n("svg",e({xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 12 12",fill:"none"},{children:[i("path",{d:"M7.58186 3.15354C7.51731 2.83771 7.06604 2.83771 7.00148 3.15354C6.60544 5.09119 5.09119 6.60544 3.15355 7.00148C2.83771 7.06603 2.83771 7.5173 3.15355 7.58185C5.09119 7.97789 6.60544 9.49215 7.00148 11.4298C7.06604 11.7456 7.51731 11.7456 7.58186 11.4298C7.9779 9.49215 9.49215 7.97789 11.4298 7.58185C11.7456 7.5173 11.7456 7.06603 11.4298 7.00148C9.49215 6.60544 7.9779 5.09119 7.58186 3.15354Z",fill:"#087443"}),i("path",{d:"M2.20669 0.0156637C2.20243 -0.00522128 2.17258 -0.0052212 2.16832 0.0156638C1.94676 1.09964 1.09964 1.94676 0.0156679 2.16831C-0.0052166 2.17258 -0.0052166 2.20242 0.0156679 2.20669C1.09964 2.42825 1.94676 3.27536 2.16832 4.35934C2.17258 4.38022 2.20243 4.38022 2.20669 4.35934C2.42825 3.27536 3.27537 2.42824 4.35934 2.20669C4.38023 2.20242 4.38023 2.17258 4.35934 2.16831C3.27537 1.94676 2.42825 1.09964 2.20669 0.0156637Z",fill:"#087443"})]}))},p=function(){return i("svg",e({xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 16 16",fill:"none"},{children:i("path",{d:"M3.125 2.75C3.02554 2.75 2.93016 2.78951 2.85983 2.85983C2.78951 2.93016 2.75 3.02554 2.75 3.125V6.125C2.75 6.22446 2.71049 6.31984 2.64017 6.39016C2.56984 6.46049 2.47446 6.5 2.375 6.5C2.27554 6.5 2.18016 6.46049 2.10983 6.39016C2.03951 6.31984 2 6.22446 2 6.125V3.125C2 2.82663 2.11853 2.54048 2.3295 2.3295C2.54048 2.11853 2.82663 2 3.125 2H6.125C6.22446 2 6.31984 2.03951 6.39016 2.10983C6.46049 2.18016 6.5 2.27554 6.5 2.375C6.5 2.47446 6.46049 2.56984 6.39016 2.64017C6.31984 2.71049 6.22446 2.75 6.125 2.75H3.125ZM9.5 2.375C9.5 2.27554 9.53951 2.18016 9.60983 2.10983C9.68016 2.03951 9.77554 2 9.875 2H12.875C13.1734 2 13.4595 2.11853 13.6705 2.3295C13.8815 2.54048 14 2.82663 14 3.125V6.125C14 6.22446 13.9605 6.31984 13.8902 6.39016C13.8198 6.46049 13.7245 6.5 13.625 6.5C13.5255 6.5 13.4302 6.46049 13.3598 6.39016C13.2895 6.31984 13.25 6.22446 13.25 6.125V3.125C13.25 3.02554 13.2105 2.93016 13.1402 2.85983C13.0698 2.78951 12.9745 2.75 12.875 2.75H9.875C9.77554 2.75 9.68016 2.71049 9.60983 2.64017C9.53951 2.56984 9.5 2.47446 9.5 2.375ZM2.375 9.5C2.47446 9.5 2.56984 9.53951 2.64017 9.60983C2.71049 9.68016 2.75 9.77554 2.75 9.875V12.875C2.75 12.9745 2.78951 13.0698 2.85983 13.1402C2.93016 13.2105 3.02554 13.25 3.125 13.25H6.125C6.22446 13.25 6.31984 13.2895 6.39016 13.3598C6.46049 13.4302 6.5 13.5255 6.5 13.625C6.5 13.7245 6.46049 13.8198 6.39016 13.8902C6.31984 13.9605 6.22446 14 6.125 14H3.125C2.82663 14 2.54048 13.8815 2.3295 13.6705C2.11853 13.4595 2 13.1734 2 12.875V9.875C2 9.77554 2.03951 9.68016 2.10983 9.60983C2.18016 9.53951 2.27554 9.5 2.375 9.5ZM13.625 9.5C13.7245 9.5 13.8198 9.53951 13.8902 9.60983C13.9605 9.68016 14 9.77554 14 9.875V12.875C14 13.1734 13.8815 13.4595 13.6705 13.6705C13.4595 13.8815 13.1734 14 12.875 14H9.875C9.77554 14 9.68016 13.9605 9.60983 13.8902C9.53951 13.8198 9.5 13.7245 9.5 13.625C9.5 13.5255 9.53951 13.4302 9.60983 13.3598C9.68016 13.2895 9.77554 13.25 9.875 13.25H12.875C12.9745 13.25 13.0698 13.2105 13.1402 13.1402C13.2105 13.0698 13.25 12.9745 13.25 12.875V9.875C13.25 9.77554 13.2895 9.68016 13.3598 9.60983C13.4302 9.53951 13.5255 9.5 13.625 9.5Z",fill:"#7A5AF8",stroke:"#7A5AF8","stroke-width":"0.5"})}))},C=function(C){var m=C.left,g=C.right,w=C.defaultLeftWidth,x=void 0===w?50:w,N=C.minLeftWidth,H=void 0===N?250:N,L=C.minRightWidth,B=void 0===L?250:L,A=C.className,k=void 0===A?"":A,M=C.height,V=void 0===M?"400px":M,b=C.width,z=void 0===b?"100%":b,E=C.header,y=C.onLeftWidthChange,F=C.openInFullscreen,S=void 0!==F&&F,D=C.onFullscreenClose,R=o(x),O=R[0],P=R[1],Z=o(x),I=Z[0],T=Z[1],W=o(!1),j=W[0],q=W[1],X=o(!1),Y=X[0],G=X[1],J=o(!1),K=J[0],Q=J[1],U=o(0),$=U[0],_=U[1],ee=o(0),ne=ee[0],te=ee[1],ie=o(S),oe=ie[0],ce=ie[1],ae=c(null),re=c(null),le=c(null),de=c(null);a(function(){var e=ae.current;e&&(oe?(e.showModal(),requestAnimationFrame(function(){if(de.current){var e=de.current.getBoundingClientRect().width;te(e),P(x),T(x),G(!1),Q(!1)}})):(e.close(),P(x),T(x),G(!1),Q(!1),null==D||D()))},[oe]),a(function(){var e=de.current;if(e&&oe){var n,t=new ResizeObserver(function(e){var t=e[0];n=requestAnimationFrame(function(){te(t.contentRect.width)})});return t.observe(e),function(){cancelAnimationFrame(n),t.disconnect()}}},[oe]),a(function(){var e=re.current;if(e){var n,t=new ResizeObserver(function(e){var t=e[0];n=requestAnimationFrame(function(){_(t.contentRect.width)})});return t.observe(e),_(e.getBoundingClientRect().width),function(){cancelAnimationFrame(n),t.disconnect()}}},[]);var se=$>0&&$<500,ue=function(e){e.preventDefault(),q(!0)};a(function(){var e=function(e){if(j)if(se&&le.current){var n=le.current.getBoundingClientRect(),t=n.height,i=e.clientY-n.top;if(i>=H&&t-i-4>=B)T(i/t*100)}else if(!se){var o=oe?de.current:re.current;if(!o)return;var c=o.getBoundingClientRect(),a=c.width,r=e.clientX-c.left;if(r>=H&&a-r-4>=B)P(r/a*100),null==y||y(r)}},n=function(){q(!1)};return j&&(document.addEventListener("mousemove",e),document.addEventListener("mouseup",n)),function(){document.removeEventListener("mousemove",e),document.removeEventListener("mouseup",n)}},[j,se,oe,H,B,y]);var he,ve=function(){Y?(P(50),T(50),G(!1)):G(!0)},fe=function(){K?(P(50),T(50),Q(!1)):Q(!0)},pe=oe?ne:$,Ce=O/100*pe,me=pe-Ce-4,ge=oe?500:250;he=se?K?{flex:1}:{height:"".concat(I,"%")}:K?{flex:1}:{width:"".concat(O,"%")};var we,xe=!se&&!Y&&Ce<=Math.max(H+10,ge),Ne=!se&&!K&&me<=Math.max(B+10,ge),He=function(e){return e>=80?u.confidenceScoreHigh:e>=60?u.confidenceScoreMedium:u.confidenceScoreLow},Le="number"==typeof V?"".concat(V,"px"):V,Be="number"==typeof z?"".concat(z,"px"):z;return n(t,{children:[n("div",e({ref:re,className:"".concat(u.container," ").concat(se?u.containerVertical:u.containerHorizontal," ").concat(k),style:{height:se?"auto":Le,width:Be}},{children:[E&&n("div",e({className:u.header},{children:[n("div",e({className:u.headerLeft},{children:[E.showDocIcon&&i(r,{className:u.headerIcon}),i("div",e({className:u.headerTitle},{children:E.title&&i("span",e({className:u.headerTitleText},{children:E.title}))}))]})),n("div",e({className:u.headerActions},{children:[void 0!==E.confidenceScore&&n("div",e({className:"".concat(u.confidenceScore," ").concat(He(E.confidenceScore))},{children:[i("div",e({style:{width:"16px",height:"16px"}},{children:i(f,{})})),n("div",{children:[Math.round(E.confidenceScore),"%"]})]})),i("button",e({className:u.fullscreenButton,onClick:function(){return ce(!0)},title:"Open fullscreen"},{children:i(p,{})}))]}))]})),(we=!1,n("div",e({ref:we?void 0:le,className:"".concat(u.contentArea," ").concat(se?u.contentAreaVertical:u.contentAreaHorizontal)},{children:[!Y&&i("div",e({className:"".concat(u.panel," ").concat(se?u.panelVertical:""),style:e(e({},he),se?{height:Le}:{})},{children:m})),Y&&i("button",e({onClick:ve,className:"".concat(u.expandButton," ").concat(se?u.expandButtonVertical:u.expandButtonHorizontal),title:se?"Expand top panel (50/50)":"Expand left panel (50/50)"},{children:se?i(d,{size:14}):i(h,{})})),!Y&&!K&&n("div",e({onMouseDown:ue,className:"".concat(u.divider," ").concat(se?u.dividerVertical:u.dividerHorizontal," ").concat(j?u.dividerDragging:u.dividerIdle)},{children:[i("div",{className:"".concat(u.dividerHitArea," ").concat(se?u.dividerHitAreaVertical:u.dividerHitAreaHorizontal)}),xe&&i("button",e({onClick:function(e){e.stopPropagation(),ve()},onMouseDown:function(e){return e.stopPropagation()},className:u.collapseButton,title:"Collapse left panel"},{children:i(v,{})})),Ne&&i("button",e({onClick:function(e){e.stopPropagation(),fe()},onMouseDown:function(e){return e.stopPropagation()},className:u.collapseButton,title:"Collapse right panel"},{children:i(h,{})}))]})),!K&&i("div",e({className:"".concat(u.panel," ").concat(se?u.panelVertical:""),style:e({flex:1},se?{height:Le}:{})},{children:g})),K&&i("button",e({onClick:fe,className:"".concat(u.expandButton," ").concat(se?u.expandButtonBottomVertical:u.expandButtonRightHorizontal),title:se?"Expand bottom panel (50/50)":"Expand right panel (50/50)"},{children:se?i(s,{size:14}):i(v,{})})),j&&i("div",{className:"".concat(u.dragOverlay," ").concat(se?u.dragOverlayVertical:u.dragOverlayHorizontal)})]})))]})),i("dialog",e({ref:ae,className:u.dialogOverlay,onClose:function(){return ce(!1)}},{children:n("div",e({ref:de,className:u.dialogContent},{children:[E&&n("div",e({className:u.header},{children:[n("div",e({className:u.headerLeft},{children:[E.showDocIcon&&i(r,{className:u.headerIcon}),i("div",e({className:u.headerTitle},{children:E.title&&i(t,{children:i("span",e({className:u.headerTitleText},{children:E.title}))})}))]})),n("div",e({className:u.headerActions},{children:[void 0!==E.confidenceScore&&n("div",e({className:"".concat(u.confidenceScore," ").concat(He(E.confidenceScore))},{children:[i("div",e({style:{width:"16px",height:"16px"}},{children:i(f,{})})),n("div",{children:[Math.round(E.confidenceScore),"%"]})]})),i("button",e({className:u.fullscreenButton,onClick:function(){return ce(!1)},title:"Close fullscreen"},{children:i(l,{size:20,color:"#5928ed"})}))]}))]})),n("div",e({className:"".concat(u.contentArea," ").concat(u.contentAreaHorizontal," ").concat(u.dialogContentArea)},{children:[!Y&&i("div",e({className:u.panel,style:he},{children:m})),Y&&i("button",e({onClick:ve,className:"".concat(u.expandButton," ").concat(u.expandButtonHorizontal),title:"Expand left panel (50/50)"},{children:i(h,{})})),!Y&&!K&&n("div",e({onMouseDown:ue,className:"".concat(u.divider," ").concat(u.dividerHorizontal," ").concat(j?u.dividerDragging:u.dividerIdle)},{children:[i("div",{className:"".concat(u.dividerHitArea," ").concat(u.dividerHitAreaHorizontal)}),xe&&i("button",e({onClick:function(e){e.stopPropagation(),ve()},onMouseDown:function(e){return e.stopPropagation()},className:u.collapseButton,title:"Collapse left panel"},{children:i(v,{})})),Ne&&i("button",e({onClick:function(e){e.stopPropagation(),fe()},onMouseDown:function(e){return e.stopPropagation()},className:u.collapseButton,title:"Collapse right panel"},{children:i(h,{})}))]})),!K&&i("div",e({className:u.panel,style:{flex:1}},{children:g})),K&&i("button",e({onClick:fe,className:"".concat(u.expandButton," ").concat(u.expandButtonRightHorizontal),title:"Expand right panel (50/50)"},{children:i(v,{})})),j&&i("div",{className:"".concat(u.dragOverlay," ").concat(u.dragOverlayHorizontal)})]}))]}))}))]})};export{C as default};
|
|
1
|
+
import{__assign as e}from"tslib";import{jsxs as n,Fragment as t,jsx as o}from"react/jsx-runtime";import{useState as i,useRef as c,useEffect as a}from"react";import{FileText as r,X as l}from"lucide-react";import d from"./Splitter.module.css.js";var s=function(){return n("svg",e({width:"21",height:"54",viewBox:"0 0 20 54",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[o("path",{d:"M0.260742 1.57324L15.4268 10.8262C17.9563 12.3695 19.4999 15.1188 19.5 18.082V37.0273C19.4999 40.16 17.7767 43.0386 15.0156 44.5186L0.236328 52.4404L-0.5 52.835V1.10938L0.260742 1.57324Z",fill:"#F8FAFC",stroke:"#E0E0E0"}),o("path",{d:"M7.5 32L12.5 27L7.5 22",stroke:"#111827",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})]}))},u=function(){return n("svg",e({width:"21",height:"54",viewBox:"0 0 21 54",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[o("path",{d:"M1.26074 1.57324L16.4268 10.8262C18.9563 12.3695 20.4999 15.1188 20.5 18.082V37.0273C20.4999 40.16 18.7767 43.0386 16.0156 44.5186L1.23633 52.4404L0.5 52.835V1.10938L1.26074 1.57324Z",fill:"#F8FAFC",stroke:"#E0E0E0"}),o("path",{d:"M13.5 32L8.5 27L13.5 22",stroke:"black",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})]}))},h=function(){return n("svg",e({xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 12 12",fill:"none"},{children:[o("path",{d:"M7.58186 3.15354C7.51731 2.83771 7.06604 2.83771 7.00148 3.15354C6.60544 5.09119 5.09119 6.60544 3.15355 7.00148C2.83771 7.06603 2.83771 7.5173 3.15355 7.58185C5.09119 7.97789 6.60544 9.49215 7.00148 11.4298C7.06604 11.7456 7.51731 11.7456 7.58186 11.4298C7.9779 9.49215 9.49215 7.97789 11.4298 7.58185C11.7456 7.5173 11.7456 7.06603 11.4298 7.00148C9.49215 6.60544 7.9779 5.09119 7.58186 3.15354Z",fill:"#087443"}),o("path",{d:"M2.20669 0.0156637C2.20243 -0.00522128 2.17258 -0.0052212 2.16832 0.0156638C1.94676 1.09964 1.09964 1.94676 0.0156679 2.16831C-0.0052166 2.17258 -0.0052166 2.20242 0.0156679 2.20669C1.09964 2.42825 1.94676 3.27536 2.16832 4.35934C2.17258 4.38022 2.20243 4.38022 2.20669 4.35934C2.42825 3.27536 3.27537 2.42824 4.35934 2.20669C4.38023 2.20242 4.38023 2.17258 4.35934 2.16831C3.27537 1.94676 2.42825 1.09964 2.20669 0.0156637Z",fill:"#087443"})]}))},v=function(){return o("svg",e({xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 16 16",fill:"none"},{children:o("path",{d:"M3.125 2.75C3.02554 2.75 2.93016 2.78951 2.85983 2.85983C2.78951 2.93016 2.75 3.02554 2.75 3.125V6.125C2.75 6.22446 2.71049 6.31984 2.64017 6.39016C2.56984 6.46049 2.47446 6.5 2.375 6.5C2.27554 6.5 2.18016 6.46049 2.10983 6.39016C2.03951 6.31984 2 6.22446 2 6.125V3.125C2 2.82663 2.11853 2.54048 2.3295 2.3295C2.54048 2.11853 2.82663 2 3.125 2H6.125C6.22446 2 6.31984 2.03951 6.39016 2.10983C6.46049 2.18016 6.5 2.27554 6.5 2.375C6.5 2.47446 6.46049 2.56984 6.39016 2.64017C6.31984 2.71049 6.22446 2.75 6.125 2.75H3.125ZM9.5 2.375C9.5 2.27554 9.53951 2.18016 9.60983 2.10983C9.68016 2.03951 9.77554 2 9.875 2H12.875C13.1734 2 13.4595 2.11853 13.6705 2.3295C13.8815 2.54048 14 2.82663 14 3.125V6.125C14 6.22446 13.9605 6.31984 13.8902 6.39016C13.8198 6.46049 13.7245 6.5 13.625 6.5C13.5255 6.5 13.4302 6.46049 13.3598 6.39016C13.2895 6.31984 13.25 6.22446 13.25 6.125V3.125C13.25 3.02554 13.2105 2.93016 13.1402 2.85983C13.0698 2.78951 12.9745 2.75 12.875 2.75H9.875C9.77554 2.75 9.68016 2.71049 9.60983 2.64017C9.53951 2.56984 9.5 2.47446 9.5 2.375ZM2.375 9.5C2.47446 9.5 2.56984 9.53951 2.64017 9.60983C2.71049 9.68016 2.75 9.77554 2.75 9.875V12.875C2.75 12.9745 2.78951 13.0698 2.85983 13.1402C2.93016 13.2105 3.02554 13.25 3.125 13.25H6.125C6.22446 13.25 6.31984 13.2895 6.39016 13.3598C6.46049 13.4302 6.5 13.5255 6.5 13.625C6.5 13.7245 6.46049 13.8198 6.39016 13.8902C6.31984 13.9605 6.22446 14 6.125 14H3.125C2.82663 14 2.54048 13.8815 2.3295 13.6705C2.11853 13.4595 2 13.1734 2 12.875V9.875C2 9.77554 2.03951 9.68016 2.10983 9.60983C2.18016 9.53951 2.27554 9.5 2.375 9.5ZM13.625 9.5C13.7245 9.5 13.8198 9.53951 13.8902 9.60983C13.9605 9.68016 14 9.77554 14 9.875V12.875C14 13.1734 13.8815 13.4595 13.6705 13.6705C13.4595 13.8815 13.1734 14 12.875 14H9.875C9.77554 14 9.68016 13.9605 9.60983 13.8902C9.53951 13.8198 9.5 13.7245 9.5 13.625C9.5 13.5255 9.53951 13.4302 9.60983 13.3598C9.68016 13.2895 9.77554 13.25 9.875 13.25H12.875C12.9745 13.25 13.0698 13.2105 13.1402 13.1402C13.2105 13.0698 13.25 12.9745 13.25 12.875V9.875C13.25 9.77554 13.2895 9.68016 13.3598 9.60983C13.4302 9.53951 13.5255 9.5 13.625 9.5Z",fill:"#7A5AF8",stroke:"#7A5AF8","stroke-width":"0.5"})}))},C=function(C){var f=C.left,m=C.right,p=C.defaultLeftWidth,g=void 0===p?50:p,w=C.minLeftWidth,N=void 0===w?250:w,x=C.minRightWidth,H=void 0===x?250:x,L=C.className,k=void 0===L?"":L,A=C.height,M=void 0===A?"400px":A,B=C.width,b=void 0===B?"100%":B,z=C.header,F=C.onLeftWidthChange,y=C.openInFullscreen,E=void 0!==y&&y,S=C.onFullscreenClose,V=i(g),D=V[0],R=V[1],O=i(!1),P=O[0],Z=O[1],I=i(!1),T=I[0],W=I[1],j=i(!1),q=j[0],X=j[1],G=i(0),J=G[0],K=G[1],Q=i(0),U=Q[0],Y=Q[1],$=i(E),_=$[0],ee=$[1],ne=c(null),te=c(null),oe=c(null);a(function(){var e=ne.current;e&&(_?(e.showModal(),requestAnimationFrame(function(){if(oe.current){var e=oe.current.getBoundingClientRect().width;Y(e),R(g),W(!1),X(!1)}})):(e.close(),R(g),W(!1),X(!1),null==S||S()))},[_]),a(function(){var e=oe.current;if(e&&_){var n,t=new ResizeObserver(function(e){var t=e[0];n=requestAnimationFrame(function(){Y(t.contentRect.width)})});return t.observe(e),function(){cancelAnimationFrame(n),t.disconnect()}}},[_]),a(function(){var e=te.current;if(e){var n,t=new ResizeObserver(function(e){var t=e[0];n=requestAnimationFrame(function(){K(t.contentRect.width)})});return t.observe(e),K(e.getBoundingClientRect().width),function(){cancelAnimationFrame(n),t.disconnect()}}},[]);var ie=function(e){e.preventDefault(),Z(!0)};a(function(){var e=function(e){if(P){var n=_?oe.current:te.current;if(n){var t=n.getBoundingClientRect(),o=t.width,i=e.clientX-t.left;if(i>=N&&o-i-4>=H)R(i/o*100),null==F||F(i)}}},n=function(){Z(!1)};return P&&(document.addEventListener("mousemove",e),document.addEventListener("mouseup",n)),function(){document.removeEventListener("mousemove",e),document.removeEventListener("mouseup",n)}},[P,_,N,H,F]);var ce=function(){T?(R(50),W(!1)):W(!0)},ae=function(){q?(R(50),X(!1)):X(!0)},re=_?U:J,le=D/100*re,de=re-le-4,se=_?500:250,ue=q?{flex:1}:{width:"".concat(D,"%")},he=!T&&le<=Math.max(N+10,se),ve=!q&&de<=Math.max(H+10,se),Ce=function(e){return e>=80?d.confidenceScoreHigh:e>=60?d.confidenceScoreMedium:d.confidenceScoreLow},fe="number"==typeof M?"".concat(M,"px"):M,me="number"==typeof b?"".concat(b,"px"):b;return n(t,{children:[n("div",e({ref:te,className:"".concat(d.container," ").concat(d.containerHorizontal," ").concat(k),style:{height:fe,width:me}},{children:[z&&n("div",e({className:d.header},{children:[n("div",e({className:d.headerLeft},{children:[z.showDocIcon&&o(r,{className:d.headerIcon}),o("div",e({className:d.headerTitle},{children:z.title&&o("span",e({className:d.headerTitleText},{children:z.title}))}))]})),n("div",e({className:d.headerActions},{children:[void 0!==z.confidenceScore&&n("div",e({className:"".concat(d.confidenceScore," ").concat(Ce(z.confidenceScore))},{children:[o("div",e({style:{width:"16px",height:"16px"}},{children:o(h,{})})),n("div",{children:[Math.round(z.confidenceScore),"%"]})]})),o("button",e({className:d.fullscreenButton,onClick:function(){return ee(!0)},title:"Open fullscreen"},{children:o(v,{})}))]}))]})),n("div",e({className:"".concat(d.contentArea," ").concat(d.contentAreaHorizontal)},{children:[!T&&o("div",e({className:d.panel,style:ue},{children:f})),T&&o("button",e({onClick:ce,className:"".concat(d.expandButton," ").concat(d.expandButtonHorizontal),title:"Expand left panel (50/50)"},{children:o(s,{})})),!T&&!q&&n("div",e({onMouseDown:ie,className:"".concat(d.divider," ").concat(d.dividerHorizontal," ").concat(P?d.dividerDragging:d.dividerIdle)},{children:[o("div",{className:"".concat(d.dividerHitArea," ").concat(d.dividerHitAreaHorizontal)}),he&&o("button",e({onClick:function(e){e.stopPropagation(),ce()},onMouseDown:function(e){return e.stopPropagation()},className:d.collapseButton,title:"Collapse left panel"},{children:o(u,{})})),ve&&o("button",e({onClick:function(e){e.stopPropagation(),ae()},onMouseDown:function(e){return e.stopPropagation()},className:d.collapseButton,title:"Collapse right panel"},{children:o(s,{})}))]})),!q&&o("div",e({className:d.panel,style:{flex:1}},{children:m})),q&&o("button",e({onClick:ae,className:"".concat(d.expandButton," ").concat(d.expandButtonRightHorizontal),title:"Expand right panel (50/50)"},{children:o(u,{})})),P&&o("div",{className:"".concat(d.dragOverlay," ").concat(d.dragOverlayHorizontal)})]}))]})),o("dialog",e({ref:ne,className:d.dialogOverlay,onClose:function(){return ee(!1)}},{children:n("div",e({ref:oe,className:d.dialogContent},{children:[z&&n("div",e({className:d.header},{children:[n("div",e({className:d.headerLeft},{children:[z.showDocIcon&&o(r,{className:d.headerIcon}),o("div",e({className:d.headerTitle},{children:z.title&&o(t,{children:o("span",e({className:d.headerTitleText},{children:z.title}))})}))]})),n("div",e({className:d.headerActions},{children:[void 0!==z.confidenceScore&&n("div",e({className:"".concat(d.confidenceScore," ").concat(Ce(z.confidenceScore))},{children:[o("div",e({style:{width:"16px",height:"16px"}},{children:o(h,{})})),n("div",{children:[Math.round(z.confidenceScore),"%"]})]})),o("button",e({className:d.fullscreenButton,onClick:function(){return ee(!1)},title:"Close fullscreen"},{children:o(l,{size:20,color:"#5928ed"})}))]}))]})),n("div",e({className:"".concat(d.contentArea," ").concat(d.contentAreaHorizontal," ").concat(d.dialogContentArea)},{children:[!T&&o("div",e({className:d.panel,style:ue},{children:f})),T&&o("button",e({onClick:ce,className:"".concat(d.expandButton," ").concat(d.expandButtonHorizontal),title:"Expand left panel (50/50)"},{children:o(s,{})})),!T&&!q&&n("div",e({onMouseDown:ie,className:"".concat(d.divider," ").concat(d.dividerHorizontal," ").concat(P?d.dividerDragging:d.dividerIdle)},{children:[o("div",{className:"".concat(d.dividerHitArea," ").concat(d.dividerHitAreaHorizontal)}),he&&o("button",e({onClick:function(e){e.stopPropagation(),ce()},onMouseDown:function(e){return e.stopPropagation()},className:d.collapseButton,title:"Collapse left panel"},{children:o(u,{})})),ve&&o("button",e({onClick:function(e){e.stopPropagation(),ae()},onMouseDown:function(e){return e.stopPropagation()},className:d.collapseButton,title:"Collapse right panel"},{children:o(s,{})}))]})),!q&&o("div",e({className:d.panel,style:{flex:1}},{children:m})),q&&o("button",e({onClick:ae,className:"".concat(d.expandButton," ").concat(d.expandButtonRightHorizontal),title:"Expand right panel (50/50)"},{children:o(u,{})})),P&&o("div",{className:"".concat(d.dragOverlay," ").concat(d.dragOverlayHorizontal)})]}))]}))}))]})};export{C as default};
|
|
2
2
|
//# sourceMappingURL=SplitterCitationsComponent.js.map
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{default as CodeCitation}from"./features/CodeCitation/CodeCitation.js";export{default as ProjectAccordian}from"./features/ProjectAccordion/ProjectAccordion.js";export{default as BookCitation}from"./features/BookCitation/BookCitation.js";export{default as Bookemon}from"./features/Bookemon/Bookemon.js";export{PdfEditorCitation as PdfCitation}from"./features/PdfEditorCitation/PdfEditorCitation.js";export{default as CitationRenderer}from"./features/CitationRenderer/CitationRenderer.js";export{default as MarkdownRenderer}from"./features/CitationRenderer/MarkdownRenderer.js";export{DiagnosticSeverity}from"./features/CodeCitation/_components/CodeEditor.js";export{default as PaginatedTable}from"./features/PaginatedTable/PaginatedTable.js";export{default as InternalgptReasoningComponent,default as NonWebReasoningComponent}from"./features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.js";export{default as ChatCitation}from"./features/ChatCitation/ChatCitationRenderer.js";export{default as CognitiveDecisioningCard}from"./features/CognitiveDecisioning/CognitiveDecisioningWrapper.js";export{default as PdfViewer}from"./features/PdfViewer/PdfViewer.js";export{default as FaqCitation}from"./features/CognitiveDecisioning/FaqCitation/FaqCitation.js";export{default as ImageCitationContent}from"./features/RequirementAiCitations/ImageCitation/ImageCitationContent.js";export{default as VideoCitationContent}from"./features/RequirementAiCitations/VideoCitation/VideoCitationContent.js";export{default as FileCitationContent}from"./features/RequirementAiCitations/FileCitation/FileCitationContent.js";export{default as WebCitationWithImageContent}from"./features/RequirementAiCitations/WebCitation/WebCitationWithImageContent.js";export{default as MarkdownWithImageCitation}from"./features/MarkdownWithImageCitation/MarkdownWithImageCitation.js";export{default as AiReasoningCitation}from"./features/RequirementAiCitations/AiReasoning/AiReasoningCitation.js";export{default as TableCitationContent}from"./features/TableCitation/TableCitationContent.js";export{default as CitationsViewer}from"./features/CitationViewer/CitationsViewer.js";export{default as ExcelCitation}from"./features/ExcelCitation/ExcelCitations.js";export{default as ScannedDocCitation}from"./features/ScannedDocCitation/ScannedDocCitation.js";export{default as ChatDrawer}from"./features/ChatDrawer/ChatDrawer.js";export{FILE_INGESTION_STATUS,SUMMARY_EXPAND_HEIGHT_NUDGE,TRUNCATE_THRESHOLD}from"./features/ChatDrawer/constants/ChatDrawer.js";export{default as SplitterCitationsComponent}from"./features/SplitterCitations/SplitterCitationsComponent.js";export{default as CognitiveInternalgptCoreComponent}from"./features/CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.js";export{default as TextualGuideLinesComponent}from"./features/TextualGuidelines/TextualGuideLinesComponent.js";
|
|
1
|
+
export{default as CodeCitation}from"./features/CodeCitation/CodeCitation.js";export{default as ProjectAccordian}from"./features/ProjectAccordion/ProjectAccordion.js";export{default as BookCitation}from"./features/BookCitation/BookCitation.js";export{default as Bookemon}from"./features/Bookemon/Bookemon.js";export{PdfEditorCitation as PdfCitation}from"./features/PdfEditorCitation/PdfEditorCitation.js";export{default as CitationRenderer}from"./features/CitationRenderer/CitationRenderer.js";export{default as MarkdownRenderer}from"./features/CitationRenderer/MarkdownRenderer.js";export{DiagnosticSeverity}from"./features/CodeCitation/_components/CodeEditor.js";export{default as PaginatedTable}from"./features/PaginatedTable/PaginatedTable.js";export{default as InternalgptReasoningComponent,default as NonWebReasoningComponent}from"./features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.js";export{default as ChatCitation}from"./features/ChatCitation/ChatCitationRenderer.js";export{default as CognitiveDecisioningCard}from"./features/CognitiveDecisioning/CognitiveDecisioningWrapper.js";export{default as PdfViewer}from"./features/PdfViewer/PdfViewer.js";export{default as FaqCitation}from"./features/CognitiveDecisioning/FaqCitation/FaqCitation.js";export{default as ImageCitationContent}from"./features/RequirementAiCitations/ImageCitation/ImageCitationContent.js";export{default as VideoCitationContent}from"./features/RequirementAiCitations/VideoCitation/VideoCitationContent.js";export{default as FileCitationContent}from"./features/RequirementAiCitations/FileCitation/FileCitationContent.js";export{default as WebCitationWithImageContent}from"./features/RequirementAiCitations/WebCitation/WebCitationWithImageContent.js";export{default as MarkdownWithImageCitation}from"./features/MarkdownWithImageCitation/MarkdownWithImageCitation.js";export{default as AiReasoningCitation}from"./features/RequirementAiCitations/AiReasoning/AiReasoningCitation.js";export{default as TableCitationContent}from"./features/TableCitation/TableCitationContent.js";export{default as CitationsViewer}from"./features/CitationViewer/CitationsViewer.js";export{default as ExcelCitation}from"./features/ExcelCitation/ExcelCitations.js";export{default as ScannedDocCitation}from"./features/ScannedDocCitation/ScannedDocCitation.js";export{default as ChatDrawer}from"./features/ChatDrawer/ChatDrawer.js";export{FILE_INGESTION_STATUS,SUMMARY_EXPAND_HEIGHT_NUDGE,TRUNCATE_THRESHOLD}from"./features/ChatDrawer/constants/ChatDrawer.js";export{default as SplitterCitationsComponent}from"./features/SplitterCitations/SplitterCitationsComponent.js";export{default as CognitiveInternalgptCoreComponent}from"./features/CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.js";export{default as TextualGuideLinesComponent}from"./features/TextualGuidelines/TextualGuideLinesComponent.js";export{IngestionStatusChip,IngestionStatusComponent}from"./features/IngestionStatus/IngestionStatusComponent.js";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface CustomChipConfig {
|
|
3
|
+
label: string;
|
|
4
|
+
borderColor: string;
|
|
5
|
+
background: string;
|
|
6
|
+
color: string;
|
|
7
|
+
dotColor?: string;
|
|
8
|
+
}
|
|
9
|
+
interface IngestionStatusChipProps {
|
|
10
|
+
status: string;
|
|
11
|
+
label?: string;
|
|
12
|
+
percentage?: number;
|
|
13
|
+
customConfig?: CustomChipConfig;
|
|
14
|
+
}
|
|
15
|
+
export declare const IngestionStatusChip: React.FC<IngestionStatusChipProps>;
|
|
16
|
+
interface IngestionStatusComponentProps {
|
|
17
|
+
ingestionId?: string;
|
|
18
|
+
status?: string;
|
|
19
|
+
wsBaseUrl?: string;
|
|
20
|
+
showPercentage?: boolean;
|
|
21
|
+
statusMap?: Record<string, string>;
|
|
22
|
+
customStatusConfigs?: Record<string, CustomChipConfig>;
|
|
23
|
+
}
|
|
24
|
+
export declare const IngestionStatusComponent: React.FC<IngestionStatusComponentProps>;
|
|
25
|
+
export {};
|
|
26
|
+
//# sourceMappingURL=IngestionStatusComponent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IngestionStatusComponent.d.ts","sourceRoot":"","sources":["../../../../../src/features/IngestionStatus/IngestionStatusComponent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAe1B,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAYD,UAAU,wBAAwB;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,gBAAgB,CAAC;CACjC;AAED,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CAwClE,CAAC;AAKF,UAAU,6BAA6B;IACrC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACnC,mBAAmB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;CACxD;AAED,eAAO,MAAM,wBAAwB,EAAE,KAAK,CAAC,EAAE,CAAC,6BAA6B,CAmC5E,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const DEFAULT_STATUS_MAP: Record<string, string>;
|
|
2
|
+
interface IngestionStatusComponentTestProps {
|
|
3
|
+
wsBaseUrl?: string;
|
|
4
|
+
}
|
|
5
|
+
declare const IngestionStatusComponentTest: ({ wsBaseUrl }: IngestionStatusComponentTestProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export default IngestionStatusComponentTest;
|
|
7
|
+
//# sourceMappingURL=IngestionStatusComponentTest.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IngestionStatusComponentTest.d.ts","sourceRoot":"","sources":["../../../../../src/features/IngestionStatus/IngestionStatusComponentTest.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAQrD,CAAC;AAqBF,UAAU,iCAAiC;IACzC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,QAAA,MAAM,4BAA4B,kBAAmB,iCAAiC,4CA6FrF,CAAC;AAEF,eAAe,4BAA4B,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export interface ArtifactLayer {
|
|
2
|
+
label: string;
|
|
3
|
+
layerStatus: string;
|
|
4
|
+
currentProgress: number;
|
|
5
|
+
chunks: {
|
|
6
|
+
total: number;
|
|
7
|
+
completed: number;
|
|
8
|
+
failed: number;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export interface Artifact {
|
|
12
|
+
artifactId: string;
|
|
13
|
+
name: string;
|
|
14
|
+
status: string;
|
|
15
|
+
artifactSize: string;
|
|
16
|
+
layers: ArtifactLayer[];
|
|
17
|
+
}
|
|
18
|
+
export interface WebSocketIngestionData {
|
|
19
|
+
ingestionStatus: string;
|
|
20
|
+
ingestionId: string;
|
|
21
|
+
currentProgress: number;
|
|
22
|
+
createdAt: string;
|
|
23
|
+
completedAt?: string | null;
|
|
24
|
+
eta?: string | null;
|
|
25
|
+
artifacts: Artifact[];
|
|
26
|
+
total_artifacts?: number;
|
|
27
|
+
layer_orchestration_count?: number;
|
|
28
|
+
artifactStatus?: {
|
|
29
|
+
"in-progress": number;
|
|
30
|
+
completed: number;
|
|
31
|
+
queued: number;
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export declare function useIngestionWebSocket(ingestionId: string | null, wsBaseUrl?: string): {
|
|
35
|
+
data: WebSocketIngestionData | null;
|
|
36
|
+
connected: boolean;
|
|
37
|
+
error: string | null;
|
|
38
|
+
disconnect: () => void;
|
|
39
|
+
};
|
|
40
|
+
//# sourceMappingURL=useIngestionStatus.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useIngestionStatus.d.ts","sourceRoot":"","sources":["../../../../../src/features/IngestionStatus/useIngestionStatus.tsx"],"names":[],"mappings":"AAEA,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,MAAM,CAAC;IACxB,MAAM,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;CAC9D;AAED,MAAM,WAAW,QAAQ;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,aAAa,EAAE,CAAC;CACzB;AAED,MAAM,WAAW,sBAAsB;IACrC,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,MAAM,CAAC;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,SAAS,EAAE,QAAQ,EAAE,CAAC;IACtB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC,cAAc,CAAC,EAAE;QACf,aAAa,EAAE,MAAM,CAAC;QACtB,SAAS,EAAE,MAAM,CAAC;QAClB,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;CACH;AAID,wBAAgB,qBAAqB,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI,EAAE,SAAS,CAAC,EAAE,MAAM;;;;;EA4DnF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SplitterCitationsComponent.d.ts","sourceRoot":"","sources":["../../../../../src/features/SplitterCitations/SplitterCitationsComponent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AA8B3D,UAAU,cAAc;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,UAAU,aAAa;IACrB,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;CAChC;AAEA,QAAA,MAAM,0BAA0B,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,
|
|
1
|
+
{"version":3,"file":"SplitterCitationsComponent.d.ts","sourceRoot":"","sources":["../../../../../src/features/SplitterCitations/SplitterCitationsComponent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AA8B3D,UAAU,cAAc;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,UAAU,aAAa;IACrB,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;CAChC;AAEA,QAAA,MAAM,0BAA0B,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CA0YxD,CAAC;AACF,eAAe,0BAA0B,CAAC"}
|
|
@@ -29,4 +29,6 @@ export { default as SplitterCitationsComponent } from './features/SplitterCitati
|
|
|
29
29
|
export { default as CognitiveInternalgptCoreComponent } from "./features/CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent";
|
|
30
30
|
export { default as InternalgptReasoningComponent } from "./features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent";
|
|
31
31
|
export { default as TextualGuideLinesComponent } from "./features/TextualGuidelines/TextualGuideLinesComponent";
|
|
32
|
+
export { IngestionStatusComponent } from "./features/IngestionStatus/IngestionStatusComponent";
|
|
33
|
+
export { IngestionStatusChip } from "./features/IngestionStatus/IngestionStatusComponent";
|
|
32
34
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,8CAA8C,CAAC;AAC3F,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,iBAAiB,IAAI,WAAW,EAAE,MAAM,gDAAgD,CAAC;AAClG,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,8CAA8C,CAAC;AAC3F,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,8CAA8C,CAAC;AAC3F,OAAO,EAAE,kBAAkB,IAAI,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AAC1G,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,0CAA0C,CAAC;AACrF,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,iFAAiF,CAAC;AACtI,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,8CAA8C,CAAC;AACvF,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,6DAA6D,CAAC;AAClH,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,yDAAyD,CAAC;AAEjG,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,sEAAsE,CAAC;AACvH,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,sEAAsE,CAAC;AACvH,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,oEAAoE,CAAC;AACpH,OAAO,EAAE,OAAO,IAAI,2BAA2B,EAAE,MAAM,2EAA2E,CAAC;AACnI,OAAO,EAAE,OAAO,IAAI,yBAAyB,EAAE,MAAM,gEAAgE,CAAC;AACtH,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,mEAAmE,CAAC;AACnH,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAC,MAAM,+CAA+C,CAAC;AAC/F,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,2CAA2C,CAAC;AACvF,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,yCAAyC,CAAC;AACnF,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,kDAAkD,CAAC;AACjG,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,kCAAkC,CAAC;AACzE,YAAY,EAAE,eAAe,EAAE,MAAM,8CAA8C,CAAC;AACpF,OAAO,EAAE,qBAAqB,EAAE,2BAA2B,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAC;AACpI,OAAO,EAAE,OAAO,IAAI,0BAA0B,EAAC,MAAM,yDAAyD,CAAA;AAC9G,OAAO,EAAC,OAAO,IAAI,iCAAiC,EAAC,MAAM,4EAA4E,CAAC;AACxI,OAAO,EAAC,OAAO,IAAI,6BAA6B,EAAC,MAAM,iFAAiF,CAAC;AACzI,OAAO,EAAC,OAAO,IAAI,0BAA0B,EAAC,MAAM,yDAAyD,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,8CAA8C,CAAC;AAC3F,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,iBAAiB,IAAI,WAAW,EAAE,MAAM,gDAAgD,CAAC;AAClG,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,8CAA8C,CAAC;AAC3F,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,8CAA8C,CAAC;AAC3F,OAAO,EAAE,kBAAkB,IAAI,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AAC1G,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,0CAA0C,CAAC;AACrF,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,iFAAiF,CAAC;AACtI,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,8CAA8C,CAAC;AACvF,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,6DAA6D,CAAC;AAClH,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,yDAAyD,CAAC;AAEjG,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,sEAAsE,CAAC;AACvH,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,sEAAsE,CAAC;AACvH,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,oEAAoE,CAAC;AACpH,OAAO,EAAE,OAAO,IAAI,2BAA2B,EAAE,MAAM,2EAA2E,CAAC;AACnI,OAAO,EAAE,OAAO,IAAI,yBAAyB,EAAE,MAAM,gEAAgE,CAAC;AACtH,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,mEAAmE,CAAC;AACnH,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAC,MAAM,+CAA+C,CAAC;AAC/F,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,2CAA2C,CAAC;AACvF,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,yCAAyC,CAAC;AACnF,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,kDAAkD,CAAC;AACjG,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,kCAAkC,CAAC;AACzE,YAAY,EAAE,eAAe,EAAE,MAAM,8CAA8C,CAAC;AACpF,OAAO,EAAE,qBAAqB,EAAE,2BAA2B,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAC;AACpI,OAAO,EAAE,OAAO,IAAI,0BAA0B,EAAC,MAAM,yDAAyD,CAAA;AAC9G,OAAO,EAAC,OAAO,IAAI,iCAAiC,EAAC,MAAM,4EAA4E,CAAC;AACxI,OAAO,EAAC,OAAO,IAAI,6BAA6B,EAAC,MAAM,iFAAiF,CAAC;AACzI,OAAO,EAAC,OAAO,IAAI,0BAA0B,EAAC,MAAM,yDAAyD,CAAC;AAC9G,OAAO,EAAC,wBAAwB,EAAC,MAAM,qDAAqD,CAAC;AAC7F,OAAO,EAAC,mBAAmB,EAAC,MAAM,qDAAqD,CAAA"}
|
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.195",
|
|
4
4
|
"author": "Devesh Patel",
|
|
5
5
|
"description": "",
|
|
6
6
|
"license": "MIT",
|
|
@@ -136,6 +136,11 @@
|
|
|
136
136
|
"import": "./dist/features/TextualGuidelines/TextualGuideLinesComponent.js",
|
|
137
137
|
"require": "./dist/cjs/features/TextualGuidelines/TextualGuideLinesComponent.js",
|
|
138
138
|
"types": "./dist/types/src/features/TextualGuidelines/TextualGuideLinesComponent.d.ts"
|
|
139
|
+
},
|
|
140
|
+
"./IngestionStatusComponent": {
|
|
141
|
+
"import": "./dist/features/IngestionStatus/IngestionStatusComponent.js",
|
|
142
|
+
"require": "./dist/cjs/features/IngestionStatus/IngestionStatusComponent.js",
|
|
143
|
+
"types": "./dist/types/src/features/IngestionStatus/IngestionStatusComponent.d.ts"
|
|
139
144
|
}
|
|
140
145
|
},
|
|
141
146
|
"repository": {
|