@e-llm-studio/citation 0.0.194 → 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.
Files changed (23) hide show
  1. package/dist/cjs/features/IngestionStatus/IngestionStatusComponent.js +2 -0
  2. package/dist/cjs/features/IngestionStatus/IngestionStatusComponent.js.map +1 -0
  3. package/dist/cjs/features/IngestionStatus/ingestion.module.css.js +2 -0
  4. package/dist/cjs/features/IngestionStatus/ingestion.module.css.js.map +1 -0
  5. package/dist/cjs/features/IngestionStatus/useIngestionStatus.js +2 -0
  6. package/dist/cjs/features/IngestionStatus/useIngestionStatus.js.map +1 -0
  7. package/dist/cjs/index.js +1 -1
  8. package/dist/features/IngestionStatus/IngestionStatusComponent.js +2 -0
  9. package/dist/features/IngestionStatus/IngestionStatusComponent.js.map +1 -0
  10. package/dist/features/IngestionStatus/ingestion.module.css.js +2 -0
  11. package/dist/features/IngestionStatus/ingestion.module.css.js.map +1 -0
  12. package/dist/features/IngestionStatus/useIngestionStatus.js +2 -0
  13. package/dist/features/IngestionStatus/useIngestionStatus.js.map +1 -0
  14. package/dist/index.js +1 -1
  15. package/dist/types/src/features/IngestionStatus/IngestionStatusComponent.d.ts +26 -0
  16. package/dist/types/src/features/IngestionStatus/IngestionStatusComponent.d.ts.map +1 -0
  17. package/dist/types/src/features/IngestionStatus/IngestionStatusComponentTest.d.ts +7 -0
  18. package/dist/types/src/features/IngestionStatus/IngestionStatusComponentTest.d.ts.map +1 -0
  19. package/dist/types/src/features/IngestionStatus/useIngestionStatus.d.ts +40 -0
  20. package/dist/types/src/features/IngestionStatus/useIngestionStatus.d.ts.map +1 -0
  21. package/dist/types/src/index.d.ts +2 -0
  22. package/dist/types/src/index.d.ts.map +1 -1
  23. 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":""}
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"),r=require("./features/PdfEditorCitation/PdfEditorCitation.js"),n=require("./features/CitationRenderer/CitationRenderer.js"),a=require("./features/CitationRenderer/MarkdownRenderer.js"),s=require("./features/CodeCitation/_components/CodeEditor.js"),C=require("./features/PaginatedTable/PaginatedTable.js"),u=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"),R=require("./features/TableCitation/TableCitationContent.js"),T=require("./features/CitationViewer/CitationsViewer.js"),I=require("./features/ExcelCitation/ExcelCitations.js"),E=require("./features/ScannedDocCitation/ScannedDocCitation.js"),D=require("./features/ChatDrawer/ChatDrawer.js"),A=require("./features/ChatDrawer/constants/ChatDrawer.js"),S=require("./features/SplitterCitations/SplitterCitationsComponent.js"),P=require("./features/CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.js"),w=require("./features/TextualGuidelines/TextualGuideLinesComponent.js");exports.CodeCitation=e.default,exports.ProjectAccordian=t.default,exports.BookCitation=i.default,exports.Bookemon=o.default,exports.PdfCitation=r.PdfEditorCitation,exports.CitationRenderer=n.default,exports.MarkdownRenderer=a.default,Object.defineProperty(exports,"DiagnosticSeverity",{enumerable:!0,get:function(){return s.DiagnosticSeverity}}),exports.PaginatedTable=C.default,exports.InternalgptReasoningComponent=u.default,exports.NonWebReasoningComponent=u.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=R.default,exports.CitationsViewer=T.default,exports.ExcelCitation=I.default,exports.ScannedDocCitation=E.default,exports.ChatDrawer=D.default,exports.FILE_INGESTION_STATUS=A.FILE_INGESTION_STATUS,exports.SUMMARY_EXPAND_HEIGHT_NUDGE=A.SUMMARY_EXPAND_HEIGHT_NUDGE,exports.TRUNCATE_THRESHOLD=A.TRUNCATE_THRESHOLD,exports.SplitterCitationsComponent=S.default,exports.CognitiveInternalgptCoreComponent=P.default,exports.TextualGuideLinesComponent=w.default;
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":""}
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"}
@@ -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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,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.194",
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": {